vue-data-ui 2.17.1 → 2.17.2
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-BDCVJzQB.js → Arrow-Dr2lyXds.js} +1 -1
- package/dist/{BaseDraggableDialog-BvuWrldK.js → BaseDraggableDialog-DQ6yA8di.js} +2 -2
- package/dist/{BaseIcon-D9Tz8ARD.js → BaseIcon-C2f-EcZc.js} +1 -1
- package/dist/{ColorPicker-wGf46G2G.js → ColorPicker-D-JmDe31.js} +2 -2
- package/dist/{DataTable-Dt-TIOyY.js → DataTable-6BxhjBzt.js} +2 -2
- package/dist/{Legend-3LNqqLDg.js → Legend-1R-B-7st.js} +11 -11
- package/dist/{NonSvgPenAndPaper-iDdMuUEo.js → NonSvgPenAndPaper-CLNy5uCL.js} +3 -3
- package/dist/{PackageVersion-C-4Ee8BQ.js → PackageVersion-CIX1W_aa.js} +1 -1
- package/dist/{PenAndPaper-Cde-wJ3N.js → PenAndPaper-CqJ4wudB.js} +3 -3
- package/dist/{Shape-C75836Jl.js → Shape-DJKQgAbU.js} +1 -1
- package/dist/{Slicer-CpSu7plp.js → Slicer-Dju6LE-h.js} +2 -2
- package/dist/{SparkTooltip-B_GXa2tb.js → SparkTooltip-D2mROH3o.js} +1 -1
- package/dist/{Title-DpERl1yr.js → Title-BQb7X_OR.js} +1 -1
- package/dist/{Tooltip-DA0bYKFG.js → Tooltip-BTnTpPdO.js} +1 -1
- package/dist/{UserOptions-DTEJ3UM_.js → UserOptions-lneAyZKu.js} +2 -2
- package/dist/{dom-to-png-DWDGYXFL.js → dom-to-png-C-9BWdwN.js} +1 -1
- package/dist/{img-utitT2Gd.js → img-D0DpKcFX.js} +1 -1
- package/dist/{index-CobsZUkv.js → index-JzUbx__y.js} +1 -1
- package/dist/{pdf-DWZ8IB56.js → pdf-BgVDfZPT.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +2 -0
- package/dist/types/vue-data-ui.d.ts +2 -0
- package/dist/{useNestedProp-BwL5wmVa.js → useNestedProp-D_jd2dz9.js} +1 -1
- package/dist/{usePrinter-DPh6U_Qk.js → usePrinter-CsyliflB.js} +2 -2
- package/dist/{vue-data-ui-D7ZgRDQ_.js → vue-data-ui-BMv8hEcb.js} +99 -97
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-ORUAjkg7.js → vue-ui-3d-bar-CrdssfKx.js} +6 -6
- package/dist/{vue-ui-accordion-UewqY6OI.js → vue-ui-accordion-CcTUbiHq.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Yl4aRpNc.js → vue-ui-age-pyramid-ZYFAAcwc.js} +6 -6
- package/dist/{vue-ui-annotator-B1gqiBqq.js → vue-ui-annotator-BEgBoRWQ.js} +2 -2
- package/dist/{vue-ui-bullet-C307lCPt.js → vue-ui-bullet-DYzLfkYB.js} +7 -7
- package/dist/{vue-ui-candlestick-BE6PcEdh.js → vue-ui-candlestick-Cdu2ozig.js} +7 -7
- package/dist/{vue-ui-carousel-table-Cpvjr677.js → vue-ui-carousel-table-Dce2wfVw.js} +4 -4
- package/dist/{vue-ui-chestnut-CUw74AgC.js → vue-ui-chestnut-CCMAbLrw.js} +5 -5
- package/dist/{vue-ui-chord-CCPGeAiY.js → vue-ui-chord-B8Sl_FwD.js} +8 -8
- package/dist/{vue-ui-circle-pack-dfyPiQmy.js → vue-ui-circle-pack-BX6_ToJl.js} +6 -6
- package/dist/{vue-ui-cursor-C2zmfeoD.js → vue-ui-cursor-CyaF0qp7.js} +2 -2
- package/dist/{vue-ui-dashboard-CotAqRbX.js → vue-ui-dashboard-BmL_vnj5.js} +62 -62
- package/dist/{vue-ui-digits-7qJFCuoI.js → vue-ui-digits-BRKjd-LQ.js} +2 -2
- package/dist/vue-ui-donut-LZR-vpdS.js +1338 -0
- package/dist/{vue-ui-donut-evolution-Deg0dsYg.js → vue-ui-donut-evolution-dax3dN9r.js} +8 -8
- package/dist/{vue-ui-dumbbell-DDwNoTPG.js → vue-ui-dumbbell-C7ZNBVSy.js} +7 -7
- package/dist/{vue-ui-flow-6oR7IMyi.js → vue-ui-flow-BeLwkeHo.js} +7 -7
- package/dist/{vue-ui-funnel-BnXtOJmh.js → vue-ui-funnel-BywaRLZR.js} +6 -6
- package/dist/{vue-ui-galaxy-75XC8SpV.js → vue-ui-galaxy-DYavEd4o.js} +5 -5
- package/dist/{vue-ui-gauge-w31j915C.js → vue-ui-gauge-DwQRlRWp.js} +6 -6
- package/dist/{vue-ui-gizmo-bZqk6oZS.js → vue-ui-gizmo-CjRczit6.js} +3 -3
- package/dist/{vue-ui-heatmap-BfU62tMW.js → vue-ui-heatmap-cRy0tcES.js} +7 -7
- package/dist/{vue-ui-history-plot-CFfco-Yj.js → vue-ui-history-plot-D8aTdU23.js} +7 -7
- package/dist/{vue-ui-kpi-DaJ1U3wf.js → vue-ui-kpi-B10h_Hbt.js} +3 -3
- package/dist/{vue-ui-mini-loader-CF_2jAI8.js → vue-ui-mini-loader-DNhr_0fr.js} +2 -2
- package/dist/{vue-ui-molecule-Tdk3Gd8M.js → vue-ui-molecule-4MeyWn0c.js} +5 -5
- package/dist/{vue-ui-mood-radar-Dg5wS7W5.js → vue-ui-mood-radar-DJmgRVT2.js} +7 -7
- package/dist/{vue-ui-nested-donuts-CpRe0sQB.js → vue-ui-nested-donuts-CgaPLxV2.js} +489 -475
- package/dist/{vue-ui-onion-B8o4ft2v.js → vue-ui-onion-swDxtTT3.js} +7 -7
- package/dist/{vue-ui-parallel-coordinate-plot-zW-CNqWC.js → vue-ui-parallel-coordinate-plot-DayzzOmK.js} +8 -8
- package/dist/{vue-ui-quadrant-DiRtZ16w.js → vue-ui-quadrant-CLf81ioF.js} +8 -8
- package/dist/{vue-ui-quick-chart-BRlYC_yT.js → vue-ui-quick-chart-smKrpIwq.js} +6 -6
- package/dist/{vue-ui-radar-DKgX1Ibx.js → vue-ui-radar-D8CIvG2q.js} +7 -7
- package/dist/{vue-ui-rating-DlklKr-X.js → vue-ui-rating-YZivkWBI.js} +2 -2
- package/dist/{vue-ui-relation-circle-MHiAp8dC.js → vue-ui-relation-circle-DsEYbNs_.js} +6 -6
- package/dist/{vue-ui-ridgeline-DA8verAe.js → vue-ui-ridgeline-Do6C5lMY.js} +8 -8
- package/dist/{vue-ui-rings-Dh6lFqun.js → vue-ui-rings-CMryJR1g.js} +8 -8
- package/dist/{vue-ui-scatter-CLC5sTOi.js → vue-ui-scatter-BtLKWQbX.js} +8 -8
- package/dist/{vue-ui-skeleton-8s4xts8z.js → vue-ui-skeleton-B4KQLEQy.js} +3 -3
- package/dist/{vue-ui-smiley-utuzw8uI.js → vue-ui-smiley-CZBuA-1x.js} +2 -2
- package/dist/{vue-ui-spark-trend-BODEqGRr.js → vue-ui-spark-trend-CdgyexDu.js} +3 -3
- package/dist/{vue-ui-sparkbar-B8MB-kn9.js → vue-ui-sparkbar-DuZulYgD.js} +3 -3
- package/dist/{vue-ui-sparkgauge-CuD7kTS3.js → vue-ui-sparkgauge-Di0FmUXs.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-BYJszvna.js → vue-ui-sparkhistogram-CHNHz9Gm.js} +4 -4
- package/dist/{vue-ui-sparkline-D77GyWzG.js → vue-ui-sparkline-TaWMi8gF.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-DNb1yD64.js → vue-ui-sparkstackbar-Bv2HEegT.js} +3 -3
- package/dist/{vue-ui-stackbar-C6rjCYDD.js → vue-ui-stackbar-Bk3Bbzjk.js} +9 -9
- package/dist/{vue-ui-strip-plot-B6cYojHQ.js → vue-ui-strip-plot-BNMDY4GI.js} +7 -7
- package/dist/{vue-ui-table-IC7SmWVd.js → vue-ui-table-JG0B8HuS.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DHFpJMpA.js → vue-ui-table-heatmap-CCdWeNZj.js} +5 -5
- package/dist/{vue-ui-table-sparkline-D7wz-sCj.js → vue-ui-table-sparkline-C1u_b0RG.js} +4 -4
- package/dist/{vue-ui-thermometer-D-oiVT3n.js → vue-ui-thermometer-DkldIXw7.js} +6 -6
- package/dist/{vue-ui-timer-C9jVyX5l.js → vue-ui-timer-0KDTN-Gt.js} +5 -5
- package/dist/{vue-ui-tiremarks-B1bM9Aoo.js → vue-ui-tiremarks-FPtGzTGi.js} +6 -6
- package/dist/{vue-ui-treemap-DX48YlU5.js → vue-ui-treemap-BA5wC5Bs.js} +8 -8
- package/dist/{vue-ui-vertical-bar-6SjKPQWR.js → vue-ui-vertical-bar-DUJWYMRn.js} +9 -9
- package/dist/{vue-ui-waffle-CYao9MMw.js → vue-ui-waffle-BIngg99N.js} +8 -8
- package/dist/{vue-ui-wheel-USuDhMwW.js → vue-ui-wheel-l5U2UH9c.js} +6 -6
- package/dist/{vue-ui-word-cloud-TOBTs7yF.js → vue-ui-word-cloud-CTKuxhFY.js} +6 -6
- package/dist/{vue-ui-world-C2qikqBa.js → vue-ui-world-Dx5O9Is5.js} +6 -6
- package/dist/{vue-ui-xy-DxwgKoO-.js → vue-ui-xy-JjA1CMAo.js} +17 -17
- package/dist/{vue-ui-xy-canvas-N69OpVn8.js → vue-ui-xy-canvas-CH82b2Lp.js} +8 -8
- package/package.json +1 -1
- package/dist/vue-ui-donut-D41WeqQU.js +0 -1325
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { _ as
|
|
12
|
-
const
|
|
1
|
+
import { defineAsyncComponent as E, computed as k, ref as h, watch as at, onMounted as ot, nextTick as st, shallowRef as ut, onBeforeUnmount as Bt, createElementBlock as i, openBlock as n, unref as r, normalizeStyle as ne, normalizeClass as R, createBlock as U, createCommentVNode as m, createVNode as nt, createSlots as Et, withCtx as x, renderSlot as L, normalizeProps as X, guardReactiveProps as W, createElementVNode as y, Fragment as T, renderList as O, toDisplayString as A, withDirectives as rt, vShow as it, createTextVNode as Rt } from "vue";
|
|
2
|
+
import { u as Ut, c as Gt, t as Yt, p as _e, a as Xt, G as z, o as Wt, e as q, b as qt, d as Ht, m as Te, f as F, X as Jt, s as Kt, L as Qt, k as Oe, n as H, i as K, x as dt, q as Zt, r as jt, y as el, v as Fe, T as ct } from "./index-JzUbx__y.js";
|
|
3
|
+
import { t as tl, u as ll } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as vt } from "./useNestedProp-D_jd2dz9.js";
|
|
5
|
+
import { u as al } from "./usePrinter-CsyliflB.js";
|
|
6
|
+
import { u as ol } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as sl } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import ul from "./Title-BQb7X_OR.js";
|
|
9
|
+
import nl from "./Legend-1R-B-7st.js";
|
|
10
|
+
import rl from "./img-D0DpKcFX.js";
|
|
11
|
+
import { _ as il } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
+
const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["id"], fl = ["offset", "stop-color"], pl = ["offset", "stop-opacity"], yl = ["id"], bl = ["id"], gl = ["id"], ml = ["flood-color"], wl = ["d", "fill", "stroke", "stroke-width", "filter"], $l = ["d", "fill", "stroke", "stroke-width"], kl = { key: 1 }, xl = ["d", "fill"], Ll = { key: 2 }, Cl = ["x", "y", "font-size", "font-weight", "fill"], _l = { key: 3 }, Tl = ["filter"], Ol = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], Fl = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], Nl = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], Sl = ["d", "fill", "onMouseenter", "onClick"], Al = {
|
|
13
13
|
key: 5,
|
|
14
14
|
class: "vue-data-ui-watermark"
|
|
15
|
-
},
|
|
15
|
+
}, Il = {
|
|
16
16
|
key: 0,
|
|
17
17
|
class: "vue-ui-nested-donuts-legend-title"
|
|
18
|
-
},
|
|
18
|
+
}, Vl = ["onClick"], Pl = ["innerHTML"], Dl = {
|
|
19
19
|
__name: "vue-ui-nested-donuts",
|
|
20
20
|
props: {
|
|
21
21
|
config: {
|
|
@@ -32,34 +32,34 @@ const rl = ["id"], il = ["xmlns", "viewBox"], dl = ["width", "height"], cl = ["i
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
emits: ["selectLegend", "selectDatapoint"],
|
|
35
|
-
setup(
|
|
36
|
-
const
|
|
37
|
-
function
|
|
38
|
-
G.value = l,
|
|
35
|
+
setup(ht, { expose: ft, emit: pt }) {
|
|
36
|
+
const yt = E(() => import("./vue-ui-accordion-CcTUbiHq.js")), bt = E(() => import("./DataTable-6BxhjBzt.js")), gt = E(() => import("./PackageVersion-CIX1W_aa.js")), mt = E(() => import("./PenAndPaper-CqJ4wudB.js")), wt = E(() => import("./vue-ui-skeleton-B4KQLEQy.js")), $t = E(() => import("./Tooltip-BTnTpPdO.js")), kt = E(() => import("./UserOptions-lneAyZKu.js")), { vue_ui_nested_donuts: xt } = Ut(), C = ht, Q = k(() => !!C.dataset && C.dataset.length), b = h(Gt()), re = h(!1), ie = h(""), Lt = h(null), Ne = h(0), V = h(null), Se = h(null), de = h(null), Ae = h(null), Ie = h(null), Ve = h(0), Pe = h(0), De = h(0), M = h(!0), B = h([]), J = h([]), G = h(!1);
|
|
37
|
+
function ze(l) {
|
|
38
|
+
G.value = l, Ne.value += 1;
|
|
39
39
|
}
|
|
40
40
|
const e = k({
|
|
41
41
|
get: () => Ee(),
|
|
42
42
|
set: (l) => l
|
|
43
|
-
}), { userOptionsVisible:
|
|
43
|
+
}), { userOptionsVisible: ce, setUserOptionsVisibility: Me, keepUserOptionState: Be } = ol({ config: e.value }), { svgRef: Z } = sl({
|
|
44
44
|
config: e.value.style.chart.title
|
|
45
45
|
});
|
|
46
46
|
function Ee() {
|
|
47
|
-
const l =
|
|
47
|
+
const l = vt({
|
|
48
48
|
userConfig: C.config,
|
|
49
|
-
defaultConfig:
|
|
49
|
+
defaultConfig: xt
|
|
50
50
|
});
|
|
51
51
|
return l.theme ? {
|
|
52
|
-
...
|
|
53
|
-
userConfig:
|
|
52
|
+
...vt({
|
|
53
|
+
userConfig: Xt.vue_ui_nested_donuts[l.theme] || C.config,
|
|
54
54
|
defaultConfig: l
|
|
55
55
|
}),
|
|
56
|
-
customPalette:
|
|
56
|
+
customPalette: Yt[l.theme] || _e
|
|
57
57
|
} : l;
|
|
58
58
|
}
|
|
59
|
-
|
|
59
|
+
at(
|
|
60
60
|
() => C.config,
|
|
61
61
|
(l) => {
|
|
62
|
-
e.value = Ee(),
|
|
62
|
+
e.value = Ee(), ce.value = !e.value.userOptions.showOnChartHover, ve(), Ve.value += 1, Pe.value += 1, De.value += 1, $.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, $.value.showTable = e.value.table.show, $.value.showTooltip = e.value.style.chart.tooltip.show, f.value.width = e.value.style.chart.width, f.value.height = e.value.style.chart.height;
|
|
63
63
|
},
|
|
64
64
|
{ deep: !0 }
|
|
65
65
|
);
|
|
@@ -73,50 +73,50 @@ const rl = ["id"], il = ["xmlns", "viewBox"], dl = ["width", "height"], cl = ["i
|
|
|
73
73
|
left: o
|
|
74
74
|
};
|
|
75
75
|
});
|
|
76
|
-
function
|
|
76
|
+
function Ct(l, s = 1e3, a = 50) {
|
|
77
77
|
return new Promise((o) => {
|
|
78
78
|
const t = l.length;
|
|
79
|
-
|
|
79
|
+
B.value = Array(t).fill(0), J.value = [];
|
|
80
80
|
let u = 0;
|
|
81
81
|
l.forEach((c, v) => {
|
|
82
82
|
setTimeout(() => {
|
|
83
83
|
const N = performance.now();
|
|
84
84
|
function d(p) {
|
|
85
|
-
const _ = Math.min((p - N) / s, 1),
|
|
86
|
-
|
|
87
|
-
const
|
|
88
|
-
let
|
|
89
|
-
C.dataset.forEach((
|
|
90
|
-
const
|
|
91
|
-
(
|
|
85
|
+
const _ = Math.min((p - N) / s, 1), me = ct(_), we = c * me;
|
|
86
|
+
B.value[v] = we, B.value = [...B.value];
|
|
87
|
+
const se = [];
|
|
88
|
+
let $e = 0;
|
|
89
|
+
C.dataset.forEach((ue, ke) => {
|
|
90
|
+
const Pt = Fe(ue.series.reduce(
|
|
91
|
+
(Le, Ce) => Le + Fe(z(Ce.values).reduce((zt, Mt) => zt + Mt, 0)),
|
|
92
92
|
0
|
|
93
|
-
)),
|
|
94
|
-
|
|
93
|
+
)), Dt = Fe(B.value.slice($e, $e + ue.series.length).reduce((Le, Ce) => Le + Ce, 0)), xe = Pt - Dt;
|
|
94
|
+
xe > Number.MIN_VALUE && se.push({
|
|
95
95
|
name: "__ghost__",
|
|
96
|
-
arcOf:
|
|
97
|
-
arcOfId: `${
|
|
98
|
-
id: `ghost_${
|
|
96
|
+
arcOf: ue.name,
|
|
97
|
+
arcOfId: `${b.value}_${ke}`,
|
|
98
|
+
id: `ghost_${b.value}_${ke}`,
|
|
99
99
|
seriesIndex: -1,
|
|
100
|
-
datasetIndex:
|
|
100
|
+
datasetIndex: ke,
|
|
101
101
|
color: "transparent",
|
|
102
|
-
value:
|
|
103
|
-
fullValue:
|
|
102
|
+
value: xe,
|
|
103
|
+
fullValue: xe,
|
|
104
104
|
absoluteValues: [],
|
|
105
105
|
ghost: !0
|
|
106
|
-
}),
|
|
107
|
-
}), J.value =
|
|
106
|
+
}), $e += ue.series.length;
|
|
107
|
+
}), J.value = se, _ < 1 ? requestAnimationFrame(d) : (u += 1, u === t && o());
|
|
108
108
|
}
|
|
109
109
|
requestAnimationFrame(d);
|
|
110
110
|
}, v * a);
|
|
111
111
|
});
|
|
112
112
|
});
|
|
113
113
|
}
|
|
114
|
-
|
|
115
|
-
if (
|
|
114
|
+
ot(async () => {
|
|
115
|
+
if (ve(), e.value.startAnimation?.show) {
|
|
116
116
|
const s = C.dataset.flatMap((a) => a.series).map(
|
|
117
117
|
(a) => z(a.values).reduce((o, t) => o + t, 0)
|
|
118
118
|
);
|
|
119
|
-
|
|
119
|
+
B.value = s.map(() => 0), M.value = !0, J.value = C.dataset.map((a, o) => {
|
|
120
120
|
const t = a.series.reduce(
|
|
121
121
|
(u, c) => u + z(c.values).reduce((v, N) => v + N, 0),
|
|
122
122
|
0
|
|
@@ -124,8 +124,8 @@ const rl = ["id"], il = ["xmlns", "viewBox"], dl = ["width", "height"], cl = ["i
|
|
|
124
124
|
return {
|
|
125
125
|
name: "__ghost__",
|
|
126
126
|
arcOf: a.name,
|
|
127
|
-
arcOfId: `${
|
|
128
|
-
id: `ghost_${
|
|
127
|
+
arcOfId: `${b.value}_${o}`,
|
|
128
|
+
id: `ghost_${b.value}_${o}`,
|
|
129
129
|
seriesIndex: -1,
|
|
130
130
|
datasetIndex: o,
|
|
131
131
|
color: "transparent",
|
|
@@ -134,7 +134,7 @@ const rl = ["id"], il = ["xmlns", "viewBox"], dl = ["width", "height"], cl = ["i
|
|
|
134
134
|
absoluteValues: [],
|
|
135
135
|
ghost: !0
|
|
136
136
|
};
|
|
137
|
-
}), await
|
|
137
|
+
}), await st(), Ct(
|
|
138
138
|
s,
|
|
139
139
|
e.value.startAnimation.durationMs,
|
|
140
140
|
e.value.startAnimation.staggerMs
|
|
@@ -144,22 +144,22 @@ const rl = ["id"], il = ["xmlns", "viewBox"], dl = ["width", "height"], cl = ["i
|
|
|
144
144
|
} else
|
|
145
145
|
M.value = !1;
|
|
146
146
|
});
|
|
147
|
-
const P =
|
|
148
|
-
|
|
149
|
-
|
|
147
|
+
const P = ut(null), Y = ut(null);
|
|
148
|
+
ot(() => {
|
|
149
|
+
ve();
|
|
150
150
|
});
|
|
151
|
-
function
|
|
152
|
-
if (
|
|
151
|
+
function ve() {
|
|
152
|
+
if (Wt(C.dataset) && q({
|
|
153
153
|
componentName: "VueUiNestedDonuts",
|
|
154
154
|
type: "dataset"
|
|
155
155
|
}), e.value.responsive) {
|
|
156
|
-
const l =
|
|
157
|
-
const { width: s, height: a } =
|
|
156
|
+
const l = tl(() => {
|
|
157
|
+
const { width: s, height: a } = ll({
|
|
158
158
|
chart: V.value,
|
|
159
|
-
title: e.value.style.chart.title.text ?
|
|
160
|
-
legend: e.value.style.chart.legend.show ?
|
|
161
|
-
source:
|
|
162
|
-
noTitle:
|
|
159
|
+
title: e.value.style.chart.title.text ? Se.value : null,
|
|
160
|
+
legend: e.value.style.chart.legend.show ? de.value : null,
|
|
161
|
+
source: Ae.value,
|
|
162
|
+
noTitle: Ie.value,
|
|
163
163
|
padding: Re.value
|
|
164
164
|
});
|
|
165
165
|
requestAnimationFrame(() => {
|
|
@@ -169,14 +169,14 @@ const rl = ["id"], il = ["xmlns", "viewBox"], dl = ["width", "height"], cl = ["i
|
|
|
169
169
|
P.value && (Y.value && P.value.unobserve(Y.value), P.value.disconnect()), P.value = new ResizeObserver(l), Y.value = V.value.parentNode, P.value.observe(Y.value);
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
|
-
|
|
172
|
+
Bt(() => {
|
|
173
173
|
P.value && (Y.value && P.value.unobserve(Y.value), P.value.disconnect());
|
|
174
174
|
});
|
|
175
|
-
const { isPrinting: Ue, isImaging:
|
|
176
|
-
elementId: `nested_donuts_${
|
|
175
|
+
const { isPrinting: Ue, isImaging: Ge, generatePdf: Ye, generateImage: Xe } = al({
|
|
176
|
+
elementId: `nested_donuts_${b.value}`,
|
|
177
177
|
fileName: e.value.style.chart.title.text || "vue-ui-nested-donuts",
|
|
178
178
|
options: e.value.userOptions.print
|
|
179
|
-
}),
|
|
179
|
+
}), _t = k(() => e.value.userOptions.show && !e.value.style.chart.title.text), Tt = k(() => qt(e.value.customPalette)), $ = h({
|
|
180
180
|
dataLabels: {
|
|
181
181
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
182
182
|
},
|
|
@@ -185,17 +185,17 @@ const rl = ["id"], il = ["xmlns", "viewBox"], dl = ["width", "height"], cl = ["i
|
|
|
185
185
|
}), f = h({
|
|
186
186
|
width: e.value.style.chart.width,
|
|
187
187
|
height: e.value.style.chart.height
|
|
188
|
-
}),
|
|
189
|
-
function
|
|
190
|
-
|
|
188
|
+
}), We = pt;
|
|
189
|
+
function Ot({ datapoint: l, index: s }) {
|
|
190
|
+
We("selectDatapoint", { datapoint: l, index: s });
|
|
191
191
|
}
|
|
192
|
-
function
|
|
192
|
+
function qe({
|
|
193
193
|
from: l,
|
|
194
194
|
to: s,
|
|
195
195
|
duration: a,
|
|
196
196
|
onUpdate: o,
|
|
197
197
|
onDone: t,
|
|
198
|
-
easing: u =
|
|
198
|
+
easing: u = ct
|
|
199
199
|
}) {
|
|
200
200
|
const c = performance.now();
|
|
201
201
|
function v(N) {
|
|
@@ -241,23 +241,23 @@ const rl = ["id"], il = ["xmlns", "viewBox"], dl = ["width", "height"], cl = ["i
|
|
|
241
241
|
...s,
|
|
242
242
|
total: s.series.filter((o) => !w.value.includes(o.id)).map((o) => z(o.values).reduce((t, u) => t + u, 0)).reduce((o, t) => o + t, 0),
|
|
243
243
|
datasetIndex: a,
|
|
244
|
-
id: `${
|
|
244
|
+
id: `${b.value}_${a}`,
|
|
245
245
|
series: s.series.map((o, t) => {
|
|
246
246
|
const u = z(o.values).reduce((c, v) => c + v, 0);
|
|
247
247
|
return {
|
|
248
248
|
name: o.name,
|
|
249
249
|
arcOf: s.name,
|
|
250
|
-
arcOfId: `${
|
|
251
|
-
id: `${
|
|
250
|
+
arcOfId: `${b.value}_${a}`,
|
|
251
|
+
id: `${b.value}_${a}_${t}`,
|
|
252
252
|
seriesIndex: t,
|
|
253
253
|
datasetIndex: a,
|
|
254
|
-
color:
|
|
255
|
-
value: M.value ?
|
|
254
|
+
color: Ht(o.color) || Tt.value[t] || _e[t % _e.length],
|
|
255
|
+
value: M.value ? B.value[l++] ?? 0 : u,
|
|
256
256
|
absoluteValues: o.values || []
|
|
257
257
|
};
|
|
258
258
|
})
|
|
259
259
|
}));
|
|
260
|
-
}), I = k(() => Math.min(f.value.height, f.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)),
|
|
260
|
+
}), I = k(() => Math.min(f.value.height, f.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)), He = k(() => [...S.value].map((l, s) => {
|
|
261
261
|
const a = l.series.filter((o) => !w.value.includes(o.id)).map((o) => o.value).reduce((o, t) => o + t, 0);
|
|
262
262
|
return {
|
|
263
263
|
...l,
|
|
@@ -268,57 +268,57 @@ const rl = ["id"], il = ["xmlns", "viewBox"], dl = ["width", "height"], cl = ["i
|
|
|
268
268
|
}))
|
|
269
269
|
};
|
|
270
270
|
}));
|
|
271
|
-
function
|
|
271
|
+
function Ft(l, s, a) {
|
|
272
272
|
let o = 0;
|
|
273
273
|
for (let t = 0; t < l.length; t += 1)
|
|
274
274
|
a.includes(l[t]) && (o += 1);
|
|
275
275
|
return o < s;
|
|
276
276
|
}
|
|
277
|
-
const
|
|
278
|
-
|
|
279
|
-
() =>
|
|
280
|
-
(l) =>
|
|
277
|
+
const g = h(He.value);
|
|
278
|
+
at(
|
|
279
|
+
() => He.value,
|
|
280
|
+
(l) => g.value = l
|
|
281
281
|
);
|
|
282
|
-
function
|
|
283
|
-
|
|
282
|
+
function he(l) {
|
|
283
|
+
We("selectLegend", l);
|
|
284
284
|
const s = C.dataset.flatMap(
|
|
285
|
-
(d, p) => d.series.map((_,
|
|
286
|
-
value: z(_.values).reduce((
|
|
287
|
-
id: `${
|
|
288
|
-
arcOfId: `${
|
|
285
|
+
(d, p) => d.series.map((_, me) => ({
|
|
286
|
+
value: z(_.values).reduce((we, se) => we + se, 0),
|
|
287
|
+
id: `${b.value}_${p}_${me}`,
|
|
288
|
+
arcOfId: `${b.value}_${p}`
|
|
289
289
|
}))
|
|
290
290
|
).find((d) => d.id === l.id);
|
|
291
291
|
if (!s) return;
|
|
292
|
-
const a = S.value.flatMap((d) => d.series).find((d) => d.id === l.id)?.value ?? 0, o =
|
|
292
|
+
const a = S.value.flatMap((d) => d.series).find((d) => d.id === l.id)?.value ?? 0, o = g.value.flatMap((d) => d.series).find((d) => d.id === l.id);
|
|
293
293
|
let u = o ? o.value : 0;
|
|
294
294
|
const c = S.value.find(
|
|
295
295
|
(d) => d.id === s.arcOfId
|
|
296
296
|
);
|
|
297
297
|
if (!c) return;
|
|
298
|
-
const v = c.series.map((d) => d.id), N =
|
|
298
|
+
const v = c.series.map((d) => d.id), N = Ft(
|
|
299
299
|
v,
|
|
300
300
|
v.length - 1,
|
|
301
301
|
w.value
|
|
302
302
|
);
|
|
303
|
-
w.value.includes(l.id) ? (w.value = w.value.filter((d) => d !== l.id), e.value.serieToggleAnimation.show ?
|
|
303
|
+
w.value.includes(l.id) ? (w.value = w.value.filter((d) => d !== l.id), e.value.serieToggleAnimation.show ? qe({
|
|
304
304
|
from: u,
|
|
305
305
|
to: a,
|
|
306
306
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
307
307
|
onUpdate: (d) => {
|
|
308
|
-
|
|
308
|
+
g.value = g.value.map((p) => ({
|
|
309
309
|
...p,
|
|
310
310
|
series: p.series.map((_) => _.id === l.id ? { ..._, value: d } : _)
|
|
311
311
|
}));
|
|
312
312
|
}
|
|
313
|
-
}) :
|
|
313
|
+
}) : g.value = g.value.map((d) => ({
|
|
314
314
|
...d,
|
|
315
315
|
series: d.series.map((p) => p.id === l.id ? { ...p, value: a } : p)
|
|
316
|
-
}))) : N && (e.value.serieToggleAnimation.show ?
|
|
316
|
+
}))) : N && (e.value.serieToggleAnimation.show ? qe({
|
|
317
317
|
from: u,
|
|
318
318
|
to: 0,
|
|
319
319
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
320
320
|
onUpdate: (d) => {
|
|
321
|
-
|
|
321
|
+
g.value = g.value.map((p) => ({
|
|
322
322
|
...p,
|
|
323
323
|
series: p.series.map((_) => _.id === l.id ? { ..._, value: d } : _)
|
|
324
324
|
}));
|
|
@@ -326,16 +326,16 @@ const rl = ["id"], il = ["xmlns", "viewBox"], dl = ["width", "height"], cl = ["i
|
|
|
326
326
|
onDone: () => {
|
|
327
327
|
w.value.push(l.id);
|
|
328
328
|
}
|
|
329
|
-
}) : (
|
|
329
|
+
}) : (g.value = g.value.map((d) => ({
|
|
330
330
|
...d,
|
|
331
331
|
series: d.series.map((p) => p.id === l.id ? { ...p, value: 0 } : p)
|
|
332
332
|
})), w.value.push(l.id)));
|
|
333
333
|
}
|
|
334
|
-
const
|
|
335
|
-
const a = Math.abs(l.series.map((v) => v.value).reduce((v, N) => v + N, 0)) > 0, o = I.value - s * I.value /
|
|
334
|
+
const j = k(() => I.value / S.value.length * e.value.style.chart.layout.donut.spacingRatio), Je = k(() => g.value.map((l, s) => I.value - s * I.value / S.value.length)), ee = k(() => g.value.map((l, s) => {
|
|
335
|
+
const a = Math.abs(l.series.map((v) => v.value).reduce((v, N) => v + N, 0)) > 0, o = I.value - s * I.value / g.value.length, t = M.value ? J.value.find((v) => v.datasetIndex === s) : null, u = [...l.series, ...t ? [t] : []].map((v) => ({
|
|
336
336
|
...v,
|
|
337
337
|
value: v.value < 1e-11 ? Number.MIN_VALUE : v.value
|
|
338
|
-
})), c =
|
|
338
|
+
})), c = Te(
|
|
339
339
|
{ series: [
|
|
340
340
|
{ name: "_", color: e.value.style.chart.layout.donut.emptyFill, value: 1 }
|
|
341
341
|
] },
|
|
@@ -348,14 +348,14 @@ const rl = ["id"], il = ["xmlns", "viewBox"], dl = ["width", "height"], cl = ["i
|
|
|
348
348
|
1,
|
|
349
349
|
360,
|
|
350
350
|
105.25,
|
|
351
|
-
|
|
351
|
+
j.value
|
|
352
352
|
);
|
|
353
353
|
return {
|
|
354
354
|
...l,
|
|
355
355
|
hasData: a,
|
|
356
356
|
radius: o,
|
|
357
357
|
skeleton: c,
|
|
358
|
-
donut:
|
|
358
|
+
donut: Te(
|
|
359
359
|
{ series: u },
|
|
360
360
|
f.value.width / 2,
|
|
361
361
|
f.value.height / 2,
|
|
@@ -366,14 +366,14 @@ const rl = ["id"], il = ["xmlns", "viewBox"], dl = ["width", "height"], cl = ["i
|
|
|
366
366
|
1,
|
|
367
367
|
360,
|
|
368
368
|
105.25,
|
|
369
|
-
|
|
369
|
+
j.value
|
|
370
370
|
)
|
|
371
371
|
};
|
|
372
|
-
})),
|
|
372
|
+
})), Ke = k(() => [...S.value].map((l, s) => {
|
|
373
373
|
const a = s * I.value / S.value.length;
|
|
374
374
|
return {
|
|
375
375
|
sizeRatio: a,
|
|
376
|
-
donut:
|
|
376
|
+
donut: Te(
|
|
377
377
|
{ series: [{ value: 1 }] },
|
|
378
378
|
f.value.width / 2,
|
|
379
379
|
f.value.height / 2,
|
|
@@ -387,33 +387,33 @@ const rl = ["id"], il = ["xmlns", "viewBox"], dl = ["width", "height"], cl = ["i
|
|
|
387
387
|
I.value / S.value.length * e.value.style.chart.layout.donut.spacingRatio
|
|
388
388
|
)[0]
|
|
389
389
|
};
|
|
390
|
-
})),
|
|
391
|
-
function
|
|
392
|
-
|
|
390
|
+
})), Qe = h(null), te = h(null), le = h(null), fe = h(null);
|
|
391
|
+
function Nt({ datapoint: l, _relativeIndex: s, seriesIndex: a }) {
|
|
392
|
+
Qe.value = l.arcOfId, te.value = l.id, le.value = a, fe.value = {
|
|
393
393
|
datapoint: l,
|
|
394
394
|
seriesIndex: a,
|
|
395
|
-
series:
|
|
395
|
+
series: g.value,
|
|
396
396
|
config: e.value
|
|
397
397
|
};
|
|
398
398
|
const o = e.value.style.chart.tooltip.customFormat;
|
|
399
|
-
if (
|
|
399
|
+
if (dt(o) && el(
|
|
400
400
|
() => o({
|
|
401
401
|
seriesIndex: a,
|
|
402
402
|
datapoint: l,
|
|
403
|
-
series:
|
|
403
|
+
series: g.value,
|
|
404
404
|
config: e.value
|
|
405
405
|
})
|
|
406
406
|
))
|
|
407
|
-
|
|
407
|
+
ie.value = o({
|
|
408
408
|
seriesIndex: a,
|
|
409
409
|
datapoint: l,
|
|
410
|
-
series:
|
|
410
|
+
series: g.value,
|
|
411
411
|
config: e.value
|
|
412
412
|
});
|
|
413
413
|
else {
|
|
414
414
|
let t = "";
|
|
415
415
|
if (e.value.style.chart.tooltip.showAllItemsAtIndex && w.value.length === 0) {
|
|
416
|
-
const u =
|
|
416
|
+
const u = g.value.map((c) => c.series.find((v) => v.seriesIndex === a));
|
|
417
417
|
u.forEach((c, v) => {
|
|
418
418
|
if (!c) return "";
|
|
419
419
|
t += `
|
|
@@ -468,22 +468,22 @@ const rl = ["id"], il = ["xmlns", "viewBox"], dl = ["width", "height"], cl = ["i
|
|
|
468
468
|
s: "%",
|
|
469
469
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
470
470
|
})}</b></div>`);
|
|
471
|
-
|
|
471
|
+
ie.value = `<div style="font-size:${e.value.style.chart.tooltip.fontSize}px">${t}</div>`;
|
|
472
472
|
}
|
|
473
|
-
|
|
473
|
+
re.value = !0;
|
|
474
474
|
}
|
|
475
|
-
function
|
|
475
|
+
function pe(l) {
|
|
476
476
|
return l.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
477
477
|
}
|
|
478
|
-
function
|
|
478
|
+
function Ze(l, s) {
|
|
479
479
|
if (!e.value.useBlurOnHover)
|
|
480
480
|
return "";
|
|
481
481
|
if (e.value.style.chart.tooltip.showAllItemsAtIndex && w.value.length === 0)
|
|
482
|
-
return [null, void 0].includes(
|
|
482
|
+
return [null, void 0].includes(le.value) || le.value === s ? "" : `url(#blur_${b.value})`;
|
|
483
483
|
if (!e.value.style.chart.tooltip.showAllItemsAtIndex || w.value.length)
|
|
484
|
-
return [null, void 0].includes(
|
|
484
|
+
return [null, void 0].includes(te.value) || te.value === l.id ? "" : `url(#blur_${b.value})`;
|
|
485
485
|
}
|
|
486
|
-
const
|
|
486
|
+
const ye = k(() => S.value.map((l, s) => {
|
|
487
487
|
const a = l.series.filter(
|
|
488
488
|
(t) => !w.value.includes(t.id)
|
|
489
489
|
), o = M.value ? a.map((t) => {
|
|
@@ -510,11 +510,11 @@ const rl = ["id"], il = ["xmlns", "viewBox"], dl = ["width", "height"], cl = ["i
|
|
|
510
510
|
datasetIndex: s,
|
|
511
511
|
total: o,
|
|
512
512
|
opacity: w.value.includes(t.id) ? 0.5 : 1,
|
|
513
|
-
segregate: () =>
|
|
513
|
+
segregate: () => he(t),
|
|
514
514
|
isSegregated: w.value.includes(t.id)
|
|
515
515
|
};
|
|
516
516
|
});
|
|
517
|
-
})),
|
|
517
|
+
})), St = k(() => ({
|
|
518
518
|
cy: "nested-donuts-legend",
|
|
519
519
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
520
520
|
color: e.value.style.chart.legend.color,
|
|
@@ -522,15 +522,15 @@ const rl = ["id"], il = ["xmlns", "viewBox"], dl = ["width", "height"], cl = ["i
|
|
|
522
522
|
paddingBottom: 12,
|
|
523
523
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
524
524
|
})), D = k(() => {
|
|
525
|
-
const l =
|
|
525
|
+
const l = g.value.flatMap((a) => a.series.map((o) => ({
|
|
526
526
|
name: `${a.name} - ${o.name}`,
|
|
527
527
|
color: o.color,
|
|
528
528
|
total: a.total
|
|
529
|
-
}))), s =
|
|
529
|
+
}))), s = g.value.flatMap((a) => a.series.map((o) => o.value));
|
|
530
530
|
return { head: l, body: s };
|
|
531
531
|
});
|
|
532
|
-
function
|
|
533
|
-
|
|
532
|
+
function je(l = null) {
|
|
533
|
+
st(() => {
|
|
534
534
|
const s = D.value.head.map((t, u) => [
|
|
535
535
|
[t.name],
|
|
536
536
|
[D.value.body[u]],
|
|
@@ -541,14 +541,14 @@ const rl = ["id"], il = ["xmlns", "viewBox"], dl = ["width", "height"], cl = ["i
|
|
|
541
541
|
[e.value.style.chart.title.text],
|
|
542
542
|
[e.value.style.chart.title.subtitle.text],
|
|
543
543
|
[[""], ["val"], ["%"]]
|
|
544
|
-
].concat(s), o =
|
|
545
|
-
l ? l(o) :
|
|
544
|
+
].concat(s), o = Zt(a);
|
|
545
|
+
l ? l(o) : jt({
|
|
546
546
|
csvContent: o,
|
|
547
547
|
title: e.value.style.chart.title.text || "vue-ui-nested-donuts"
|
|
548
548
|
});
|
|
549
549
|
});
|
|
550
550
|
}
|
|
551
|
-
const
|
|
551
|
+
const ae = k(() => {
|
|
552
552
|
const l = [
|
|
553
553
|
e.value.table.columnNames.series,
|
|
554
554
|
e.value.table.columnNames.value,
|
|
@@ -596,25 +596,25 @@ const rl = ["id"], il = ["xmlns", "viewBox"], dl = ["width", "height"], cl = ["i
|
|
|
596
596
|
config: a
|
|
597
597
|
};
|
|
598
598
|
});
|
|
599
|
-
function
|
|
599
|
+
function At() {
|
|
600
600
|
return S.value;
|
|
601
601
|
}
|
|
602
|
-
function
|
|
602
|
+
function et() {
|
|
603
603
|
$.value.showTable = !$.value.showTable;
|
|
604
604
|
}
|
|
605
|
-
function
|
|
605
|
+
function tt() {
|
|
606
606
|
$.value.dataLabels.show = !$.value.dataLabels.show;
|
|
607
607
|
}
|
|
608
|
-
function
|
|
608
|
+
function lt() {
|
|
609
609
|
$.value.showTooltip = !$.value.showTooltip;
|
|
610
610
|
}
|
|
611
|
-
const
|
|
612
|
-
function
|
|
613
|
-
|
|
611
|
+
const oe = h(!1);
|
|
612
|
+
function be() {
|
|
613
|
+
oe.value = !oe.value;
|
|
614
614
|
}
|
|
615
|
-
async function
|
|
615
|
+
async function It({ scale: l = 2 } = {}) {
|
|
616
616
|
if (!V.value) return;
|
|
617
|
-
const { width: s, height: a } = V.value.getBoundingClientRect(), o = s / a, { imageUri: t, base64: u } = await
|
|
617
|
+
const { width: s, height: a } = V.value.getBoundingClientRect(), o = s / a, { imageUri: t, base64: u } = await rl({ domElement: V.value, base64: !0, img: !0, scale: l });
|
|
618
618
|
return {
|
|
619
619
|
imageUri: t,
|
|
620
620
|
base64: u,
|
|
@@ -624,48 +624,55 @@ const rl = ["id"], il = ["xmlns", "viewBox"], dl = ["width", "height"], cl = ["i
|
|
|
624
624
|
aspectRatio: o
|
|
625
625
|
};
|
|
626
626
|
}
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
627
|
+
const ge = h(null);
|
|
628
|
+
function Vt() {
|
|
629
|
+
if (!ge.value) return;
|
|
630
|
+
const { x: l, y: s, width: a, height: o } = ge.value.getBBox();
|
|
631
|
+
Z.value && Z.value.setAttribute("viewBox", `${l} ${s} ${a + Math.min(0, l)} ${o + Math.min(0, s)}`);
|
|
632
|
+
}
|
|
633
|
+
return ft({
|
|
634
|
+
autoSize: Vt,
|
|
635
|
+
getData: At,
|
|
636
|
+
getImage: It,
|
|
637
|
+
generatePdf: Ye,
|
|
638
|
+
generateCsv: je,
|
|
639
|
+
generateImage: Xe,
|
|
640
|
+
toggleTable: et,
|
|
641
|
+
toggleLabels: tt,
|
|
642
|
+
toggleTooltip: lt,
|
|
643
|
+
toggleAnnotator: be,
|
|
644
|
+
toggleFullscreen: ze
|
|
638
645
|
}), (l, s) => (n(), i("div", {
|
|
639
646
|
ref_key: "nestedDonutsChart",
|
|
640
647
|
ref: V,
|
|
641
|
-
class:
|
|
642
|
-
style:
|
|
643
|
-
id: `nested_donuts_${
|
|
644
|
-
onMouseenter: s[3] || (s[3] = () => r(
|
|
645
|
-
onMouseleave: s[4] || (s[4] = () => r(
|
|
648
|
+
class: R(`vue-ui-nested-donuts ${G.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
649
|
+
style: ne(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
650
|
+
id: `nested_donuts_${b.value}`,
|
|
651
|
+
onMouseenter: s[3] || (s[3] = () => r(Me)(!0)),
|
|
652
|
+
onMouseleave: s[4] || (s[4] = () => r(Me)(!1))
|
|
646
653
|
}, [
|
|
647
|
-
e.value.userOptions.buttons.annotator ? (n(),
|
|
654
|
+
e.value.userOptions.buttons.annotator ? (n(), U(r(mt), {
|
|
648
655
|
key: 0,
|
|
649
|
-
svgRef: r(
|
|
656
|
+
svgRef: r(Z),
|
|
650
657
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
651
658
|
color: e.value.style.chart.color,
|
|
652
|
-
active:
|
|
653
|
-
onClose:
|
|
659
|
+
active: oe.value,
|
|
660
|
+
onClose: be
|
|
654
661
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : m("", !0),
|
|
655
|
-
|
|
662
|
+
_t.value ? (n(), i("div", {
|
|
656
663
|
key: 1,
|
|
657
664
|
ref_key: "noTitle",
|
|
658
|
-
ref:
|
|
665
|
+
ref: Ie,
|
|
659
666
|
class: "vue-data-ui-no-title-space",
|
|
660
667
|
style: "height:36px; width: 100%;background:transparent"
|
|
661
668
|
}, null, 512)) : m("", !0),
|
|
662
669
|
e.value.style.chart.title.text ? (n(), i("div", {
|
|
663
670
|
key: 2,
|
|
664
671
|
ref_key: "chartTitle",
|
|
665
|
-
ref:
|
|
672
|
+
ref: Se
|
|
666
673
|
}, [
|
|
667
|
-
(n(),
|
|
668
|
-
key: `title_${
|
|
674
|
+
(n(), U(ul, {
|
|
675
|
+
key: `title_${Ve.value}`,
|
|
669
676
|
config: {
|
|
670
677
|
title: {
|
|
671
678
|
cy: "donut-div-title",
|
|
@@ -678,14 +685,14 @@ const rl = ["id"], il = ["xmlns", "viewBox"], dl = ["width", "height"], cl = ["i
|
|
|
678
685
|
}
|
|
679
686
|
}, null, 8, ["config"]))
|
|
680
687
|
], 512)) : m("", !0),
|
|
681
|
-
e.value.userOptions.show && Q.value && (r(
|
|
688
|
+
e.value.userOptions.show && Q.value && (r(Be) || r(ce)) ? (n(), U(r(kt), {
|
|
682
689
|
ref: "details",
|
|
683
|
-
key: `user_option_${
|
|
690
|
+
key: `user_option_${Ne.value}`,
|
|
684
691
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
685
692
|
color: e.value.style.chart.color,
|
|
686
693
|
isPrinting: r(Ue),
|
|
687
|
-
isImaging: r(
|
|
688
|
-
uid:
|
|
694
|
+
isImaging: r(Ge),
|
|
695
|
+
uid: b.value,
|
|
689
696
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
690
697
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
691
698
|
hasXls: e.value.userOptions.buttons.csv,
|
|
@@ -699,81 +706,81 @@ const rl = ["id"], il = ["xmlns", "viewBox"], dl = ["width", "height"], cl = ["i
|
|
|
699
706
|
chartElement: V.value,
|
|
700
707
|
position: e.value.userOptions.position,
|
|
701
708
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
702
|
-
isAnnotation:
|
|
709
|
+
isAnnotation: oe.value,
|
|
703
710
|
callbacks: e.value.userOptions.callbacks,
|
|
704
711
|
printScale: e.value.userOptions.print.scale,
|
|
705
|
-
onToggleFullscreen:
|
|
706
|
-
onGeneratePdf: r(
|
|
707
|
-
onGenerateCsv:
|
|
708
|
-
onGenerateImage: r(
|
|
709
|
-
onToggleTable:
|
|
710
|
-
onToggleLabels:
|
|
711
|
-
onToggleTooltip:
|
|
712
|
-
onToggleAnnotator:
|
|
713
|
-
style:
|
|
714
|
-
visibility: r(
|
|
712
|
+
onToggleFullscreen: ze,
|
|
713
|
+
onGeneratePdf: r(Ye),
|
|
714
|
+
onGenerateCsv: je,
|
|
715
|
+
onGenerateImage: r(Xe),
|
|
716
|
+
onToggleTable: et,
|
|
717
|
+
onToggleLabels: tt,
|
|
718
|
+
onToggleTooltip: lt,
|
|
719
|
+
onToggleAnnotator: be,
|
|
720
|
+
style: ne({
|
|
721
|
+
visibility: r(Be) ? r(ce) ? "visible" : "hidden" : "visible"
|
|
715
722
|
})
|
|
716
|
-
},
|
|
723
|
+
}, Et({ _: 2 }, [
|
|
717
724
|
l.$slots.menuIcon ? {
|
|
718
725
|
name: "menuIcon",
|
|
719
|
-
fn:
|
|
720
|
-
|
|
726
|
+
fn: x(({ isOpen: a, color: o }) => [
|
|
727
|
+
L(l.$slots, "menuIcon", X(W({ isOpen: a, color: o })), void 0, !0)
|
|
721
728
|
]),
|
|
722
729
|
key: "0"
|
|
723
730
|
} : void 0,
|
|
724
731
|
l.$slots.optionTooltip ? {
|
|
725
732
|
name: "optionTooltip",
|
|
726
|
-
fn:
|
|
727
|
-
|
|
733
|
+
fn: x(() => [
|
|
734
|
+
L(l.$slots, "optionTooltip", {}, void 0, !0)
|
|
728
735
|
]),
|
|
729
736
|
key: "1"
|
|
730
737
|
} : void 0,
|
|
731
738
|
l.$slots.optionPdf ? {
|
|
732
739
|
name: "optionPdf",
|
|
733
|
-
fn:
|
|
734
|
-
|
|
740
|
+
fn: x(() => [
|
|
741
|
+
L(l.$slots, "optionPdf", {}, void 0, !0)
|
|
735
742
|
]),
|
|
736
743
|
key: "2"
|
|
737
744
|
} : void 0,
|
|
738
745
|
l.$slots.optionCsv ? {
|
|
739
746
|
name: "optionCsv",
|
|
740
|
-
fn:
|
|
741
|
-
|
|
747
|
+
fn: x(() => [
|
|
748
|
+
L(l.$slots, "optionCsv", {}, void 0, !0)
|
|
742
749
|
]),
|
|
743
750
|
key: "3"
|
|
744
751
|
} : void 0,
|
|
745
752
|
l.$slots.optionImg ? {
|
|
746
753
|
name: "optionImg",
|
|
747
|
-
fn:
|
|
748
|
-
|
|
754
|
+
fn: x(() => [
|
|
755
|
+
L(l.$slots, "optionImg", {}, void 0, !0)
|
|
749
756
|
]),
|
|
750
757
|
key: "4"
|
|
751
758
|
} : void 0,
|
|
752
759
|
l.$slots.optionTable ? {
|
|
753
760
|
name: "optionTable",
|
|
754
|
-
fn:
|
|
755
|
-
|
|
761
|
+
fn: x(() => [
|
|
762
|
+
L(l.$slots, "optionTable", {}, void 0, !0)
|
|
756
763
|
]),
|
|
757
764
|
key: "5"
|
|
758
765
|
} : void 0,
|
|
759
766
|
l.$slots.optionLabels ? {
|
|
760
767
|
name: "optionLabels",
|
|
761
|
-
fn:
|
|
762
|
-
|
|
768
|
+
fn: x(() => [
|
|
769
|
+
L(l.$slots, "optionLabels", {}, void 0, !0)
|
|
763
770
|
]),
|
|
764
771
|
key: "6"
|
|
765
772
|
} : void 0,
|
|
766
773
|
l.$slots.optionFullscreen ? {
|
|
767
774
|
name: "optionFullscreen",
|
|
768
|
-
fn:
|
|
769
|
-
|
|
775
|
+
fn: x(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
776
|
+
L(l.$slots, "optionFullscreen", X(W({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
770
777
|
]),
|
|
771
778
|
key: "7"
|
|
772
779
|
} : void 0,
|
|
773
780
|
l.$slots.optionAnnotator ? {
|
|
774
781
|
name: "optionAnnotator",
|
|
775
|
-
fn:
|
|
776
|
-
|
|
782
|
+
fn: x(({ toggleAnnotator: a, isAnnotator: o }) => [
|
|
783
|
+
L(l.$slots, "optionAnnotator", X(W({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
|
|
777
784
|
]),
|
|
778
785
|
key: "8"
|
|
779
786
|
} : void 0
|
|
@@ -781,252 +788,259 @@ const rl = ["id"], il = ["xmlns", "viewBox"], dl = ["width", "height"], cl = ["i
|
|
|
781
788
|
Q.value ? (n(), i("svg", {
|
|
782
789
|
key: 4,
|
|
783
790
|
ref_key: "svgRef",
|
|
784
|
-
ref:
|
|
785
|
-
xmlns: r(
|
|
786
|
-
class:
|
|
791
|
+
ref: Z,
|
|
792
|
+
xmlns: r(Jt),
|
|
793
|
+
class: R({
|
|
787
794
|
"vue-data-ui-fullscreen--on": G.value,
|
|
788
|
-
"vue-data-ui-fulscreen--off": !G.value
|
|
795
|
+
"vue-data-ui-fulscreen--off": !G.value,
|
|
796
|
+
"vue-data-ui-svg": !0
|
|
789
797
|
}),
|
|
790
798
|
viewBox: `0 0 ${f.value.width <= 0 ? 1e-3 : f.value.width} ${f.value.height < 0 ? 1e-3 : f.value.height}`,
|
|
791
|
-
style:
|
|
799
|
+
style: ne(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${Re.value.css}`)
|
|
792
800
|
}, [
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
y: 0,
|
|
798
|
-
width: f.value.width <= 0 ? 1e-3 : f.value.width,
|
|
799
|
-
height: f.value.height < 0 ? 1e-3 : f.value.height,
|
|
800
|
-
style: {
|
|
801
|
-
pointerEvents: "none"
|
|
802
|
-
}
|
|
801
|
+
y("g", {
|
|
802
|
+
ref_key: "G",
|
|
803
|
+
ref: ge,
|
|
804
|
+
class: "vue-data-ui-g"
|
|
803
805
|
}, [
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
}, null, -1)),
|
|
815
|
-
g("stop", {
|
|
816
|
-
offset: `${(1 - Z.value / He.value[o]) * 100}%`,
|
|
817
|
-
"stop-color": r(Ht)("#FFFFFF", 0),
|
|
818
|
-
"stop-opacity": "0"
|
|
819
|
-
}, null, 8, vl),
|
|
820
|
-
g("stop", {
|
|
821
|
-
offset: `${(1 - Z.value / He.value[o] / 2) * 100}%`,
|
|
822
|
-
"stop-color": "#FFFFFF",
|
|
823
|
-
"stop-opacity": e.value.style.chart.gradientIntensity / 100
|
|
824
|
-
}, null, 8, hl),
|
|
825
|
-
s[6] || (s[6] = g("stop", {
|
|
826
|
-
offset: "100%",
|
|
827
|
-
"stop-color": "#FFFFFF",
|
|
828
|
-
"stop-opacity": "0"
|
|
829
|
-
}, null, -1))
|
|
830
|
-
], 8, cl))), 256))
|
|
831
|
-
]),
|
|
832
|
-
g("defs", null, [
|
|
833
|
-
g("filter", {
|
|
834
|
-
id: `blur_${y.value}`,
|
|
835
|
-
x: "-50%",
|
|
836
|
-
y: "-50%",
|
|
837
|
-
width: "200%",
|
|
838
|
-
height: "200%"
|
|
839
|
-
}, [
|
|
840
|
-
g("feGaussianBlur", {
|
|
841
|
-
in: "SourceGraphic",
|
|
842
|
-
stdDeviation: 2,
|
|
843
|
-
id: `blur_std_${y.value}`
|
|
844
|
-
}, null, 8, pl),
|
|
845
|
-
s[7] || (s[7] = g("feColorMatrix", {
|
|
846
|
-
type: "saturate",
|
|
847
|
-
values: "0"
|
|
848
|
-
}, null, -1))
|
|
849
|
-
], 8, fl),
|
|
850
|
-
g("filter", {
|
|
851
|
-
id: `shadow_${y.value}`,
|
|
852
|
-
"color-interpolation-filters": "sRGB"
|
|
806
|
+
nt(r(gt)),
|
|
807
|
+
l.$slots["chart-background"] ? (n(), i("foreignObject", {
|
|
808
|
+
key: 0,
|
|
809
|
+
x: 0,
|
|
810
|
+
y: 0,
|
|
811
|
+
width: f.value.width <= 0 ? 1e-3 : f.value.width,
|
|
812
|
+
height: f.value.height < 0 ? 1e-3 : f.value.height,
|
|
813
|
+
style: {
|
|
814
|
+
pointerEvents: "none"
|
|
815
|
+
}
|
|
853
816
|
}, [
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
860
|
-
}, null, 8, bl)
|
|
861
|
-
], 8, yl)
|
|
862
|
-
]),
|
|
863
|
-
(n(!0), i(T, null, O(j.value, (a, o) => (n(), i("g", null, [
|
|
864
|
-
a.hasData ? (n(!0), i(T, { key: 0 }, O(a.donut.filter((t) => !t.ghost), (t, u) => (n(), i("g", null, [
|
|
865
|
-
g("path", {
|
|
866
|
-
class: "vue-ui-donut-arc-path",
|
|
867
|
-
d: t.arcSlice,
|
|
868
|
-
fill: t.color,
|
|
869
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
870
|
-
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
871
|
-
filter: Qe(t, u)
|
|
872
|
-
}, null, 8, gl)
|
|
873
|
-
]))), 256)) : (n(!0), i(T, { key: 1 }, O(a.skeleton, (t, u) => (n(), i("g", null, [
|
|
874
|
-
g("path", {
|
|
875
|
-
class: "vue-ui-donut-arc-path",
|
|
876
|
-
d: t.arcSlice,
|
|
877
|
-
fill: t.color,
|
|
878
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
879
|
-
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
880
|
-
}, null, 8, ml)
|
|
881
|
-
]))), 256))
|
|
882
|
-
]))), 256)),
|
|
883
|
-
e.value.style.chart.useGradient ? (n(), i("g", wl, [
|
|
884
|
-
(n(!0), i(T, null, O(Je.value, (a, o) => (n(), i("g", null, [
|
|
885
|
-
g("path", {
|
|
886
|
-
d: a.donut.arcSlice,
|
|
887
|
-
fill: `url(#radial_${y.value}_${o})`,
|
|
888
|
-
stroke: "transparent",
|
|
889
|
-
"stroke-width": "0"
|
|
890
|
-
}, null, 8, $l)
|
|
891
|
-
]))), 256))
|
|
892
|
-
])) : m("", !0),
|
|
893
|
-
e.value.style.chart.layout.labels.dataLabels.showDonutName ? (n(), i("g", kl, [
|
|
894
|
-
(n(!0), i(T, null, O(j.value, (a, o) => (n(), i("g", null, [
|
|
895
|
-
(n(!0), i(T, null, O(a.donut, (t, u) => (n(), i("g", null, [
|
|
896
|
-
u === 0 && f.value.width && f.value.height ? (n(), i("text", {
|
|
897
|
-
key: 0,
|
|
898
|
-
class: U({ animated: e.value.useCssAnimation }),
|
|
899
|
-
x: f.value.width / 2,
|
|
900
|
-
y: t.startY - e.value.style.chart.layout.labels.dataLabels.fontSize + e.value.style.chart.layout.labels.dataLabels.donutNameOffsetY,
|
|
901
|
-
"text-anchor": "middle",
|
|
902
|
-
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
903
|
-
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
|
|
904
|
-
fill: e.value.style.chart.layout.labels.dataLabels.color
|
|
905
|
-
}, A(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? r(Jt)({
|
|
906
|
-
source: a.name,
|
|
907
|
-
length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
|
|
908
|
-
}) : a.name), 11, Ll)) : m("", !0)
|
|
909
|
-
]))), 256))
|
|
910
|
-
]))), 256))
|
|
911
|
-
])) : m("", !0),
|
|
912
|
-
e.value.style.chart.layout.labels.dataLabels.show ? (n(), i("g", xl, [
|
|
913
|
-
(n(!0), i(T, null, O(j.value, (a, o) => (n(), i("g", null, [
|
|
914
|
-
(n(!0), i(T, null, O(a.donut.filter((t) => !t.ghost), (t, u) => (n(), i("g", {
|
|
915
|
-
filter: Qe(t, u)
|
|
817
|
+
L(l.$slots, "chart-background", {}, void 0, !0)
|
|
818
|
+
], 8, vl)) : m("", !0),
|
|
819
|
+
y("defs", null, [
|
|
820
|
+
(n(!0), i(T, null, O(Ke.value, (a, o) => (n(), i("radialGradient", {
|
|
821
|
+
id: `radial_${b.value}_${o}`
|
|
916
822
|
}, [
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
"
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
823
|
+
s[5] || (s[5] = y("stop", {
|
|
824
|
+
offset: "0%",
|
|
825
|
+
"stop-color": "#FFFFFF",
|
|
826
|
+
"stop-opacity": "0"
|
|
827
|
+
}, null, -1)),
|
|
828
|
+
y("stop", {
|
|
829
|
+
offset: `${(1 - j.value / Je.value[o]) * 100}%`,
|
|
830
|
+
"stop-color": r(Kt)("#FFFFFF", 0),
|
|
831
|
+
"stop-opacity": "0"
|
|
832
|
+
}, null, 8, fl),
|
|
833
|
+
y("stop", {
|
|
834
|
+
offset: `${(1 - j.value / Je.value[o] / 2) * 100}%`,
|
|
835
|
+
"stop-color": "#FFFFFF",
|
|
836
|
+
"stop-opacity": e.value.style.chart.gradientIntensity / 100
|
|
837
|
+
}, null, 8, pl),
|
|
838
|
+
s[6] || (s[6] = y("stop", {
|
|
839
|
+
offset: "100%",
|
|
840
|
+
"stop-color": "#FFFFFF",
|
|
841
|
+
"stop-opacity": "0"
|
|
842
|
+
}, null, -1))
|
|
843
|
+
], 8, hl))), 256))
|
|
844
|
+
]),
|
|
845
|
+
y("defs", null, [
|
|
846
|
+
y("filter", {
|
|
847
|
+
id: `blur_${b.value}`,
|
|
848
|
+
x: "-50%",
|
|
849
|
+
y: "-50%",
|
|
850
|
+
width: "200%",
|
|
851
|
+
height: "200%"
|
|
852
|
+
}, [
|
|
853
|
+
y("feGaussianBlur", {
|
|
854
|
+
in: "SourceGraphic",
|
|
855
|
+
stdDeviation: 2,
|
|
856
|
+
id: `blur_std_${b.value}`
|
|
857
|
+
}, null, 8, bl),
|
|
858
|
+
s[7] || (s[7] = y("feColorMatrix", {
|
|
859
|
+
type: "saturate",
|
|
860
|
+
values: "0"
|
|
861
|
+
}, null, -1))
|
|
862
|
+
], 8, yl),
|
|
863
|
+
y("filter", {
|
|
864
|
+
id: `shadow_${b.value}`,
|
|
865
|
+
"color-interpolation-filters": "sRGB"
|
|
866
|
+
}, [
|
|
867
|
+
y("feDropShadow", {
|
|
868
|
+
dx: "0",
|
|
869
|
+
dy: "0",
|
|
870
|
+
stdDeviation: "10",
|
|
871
|
+
"flood-opacity": "0.5",
|
|
872
|
+
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
873
|
+
}, null, 8, ml)
|
|
874
|
+
], 8, gl)
|
|
875
|
+
]),
|
|
876
|
+
(n(!0), i(T, null, O(ee.value, (a, o) => (n(), i("g", null, [
|
|
877
|
+
a.hasData ? (n(!0), i(T, { key: 0 }, O(a.donut.filter((t) => !t.ghost), (t, u) => (n(), i("g", null, [
|
|
878
|
+
y("path", {
|
|
879
|
+
class: "vue-ui-donut-arc-path",
|
|
880
|
+
d: t.arcSlice,
|
|
881
|
+
fill: t.color,
|
|
882
|
+
stroke: e.value.style.chart.backgroundColor,
|
|
883
|
+
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
884
|
+
filter: Ze(t, u)
|
|
885
|
+
}, null, 8, wl)
|
|
886
|
+
]))), 256)) : (n(!0), i(T, { key: 1 }, O(a.skeleton, (t, u) => (n(), i("g", null, [
|
|
887
|
+
y("path", {
|
|
888
|
+
class: "vue-ui-donut-arc-path",
|
|
889
|
+
d: t.arcSlice,
|
|
890
|
+
fill: t.color,
|
|
891
|
+
stroke: e.value.style.chart.backgroundColor,
|
|
892
|
+
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
893
|
+
}, null, 8, $l)
|
|
894
|
+
]))), 256))
|
|
895
|
+
]))), 256)),
|
|
896
|
+
e.value.style.chart.useGradient ? (n(), i("g", kl, [
|
|
897
|
+
(n(!0), i(T, null, O(Ke.value, (a, o) => (n(), i("g", null, [
|
|
898
|
+
y("path", {
|
|
899
|
+
d: a.donut.arcSlice,
|
|
900
|
+
fill: `url(#radial_${b.value}_${o})`,
|
|
901
|
+
stroke: "transparent",
|
|
902
|
+
"stroke-width": "0"
|
|
903
|
+
}, null, 8, xl)
|
|
904
|
+
]))), 256))
|
|
905
|
+
])) : m("", !0),
|
|
906
|
+
e.value.style.chart.layout.labels.dataLabels.showDonutName ? (n(), i("g", Ll, [
|
|
907
|
+
(n(!0), i(T, null, O(ee.value, (a, o) => (n(), i("g", null, [
|
|
908
|
+
(n(!0), i(T, null, O(a.donut, (t, u) => (n(), i("g", null, [
|
|
909
|
+
u === 0 && f.value.width && f.value.height ? (n(), i("text", {
|
|
910
|
+
key: 0,
|
|
911
|
+
class: R({ animated: e.value.useCssAnimation }),
|
|
912
|
+
x: f.value.width / 2,
|
|
913
|
+
y: t.startY - e.value.style.chart.layout.labels.dataLabels.fontSize + e.value.style.chart.layout.labels.dataLabels.donutNameOffsetY,
|
|
914
|
+
"text-anchor": "middle",
|
|
915
|
+
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
916
|
+
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
|
|
917
|
+
fill: e.value.style.chart.layout.labels.dataLabels.color
|
|
918
|
+
}, A(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? r(Qt)({
|
|
919
|
+
source: a.name,
|
|
920
|
+
length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
|
|
921
|
+
}) : a.name), 11, Cl)) : m("", !0)
|
|
922
|
+
]))), 256))
|
|
923
|
+
]))), 256))
|
|
924
|
+
])) : m("", !0),
|
|
925
|
+
e.value.style.chart.layout.labels.dataLabels.show ? (n(), i("g", _l, [
|
|
926
|
+
(n(!0), i(T, null, O(ee.value, (a, o) => (n(), i("g", null, [
|
|
927
|
+
(n(!0), i(T, null, O(a.donut.filter((t) => !t.ghost), (t, u) => (n(), i("g", {
|
|
928
|
+
filter: Ze(t, u)
|
|
929
|
+
}, [
|
|
930
|
+
rt(y("text", {
|
|
931
|
+
class: R({ animated: e.value.useCssAnimation }),
|
|
932
|
+
opacity: pe(t) ? 1 : 0,
|
|
933
|
+
"text-anchor": r(H)(t, !0).anchor,
|
|
934
|
+
x: r(H)(
|
|
935
|
+
t,
|
|
936
|
+
!1,
|
|
937
|
+
e.value.style.chart.layout.labels.dataLabels.offsetX
|
|
938
|
+
).x || 0,
|
|
939
|
+
y: r(Oe)(
|
|
940
|
+
t,
|
|
941
|
+
e.value.style.chart.layout.labels.dataLabels.offsetY,
|
|
942
|
+
e.value.style.chart.layout.labels.dataLabels.offsetY
|
|
943
|
+
),
|
|
944
|
+
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
945
|
+
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
946
|
+
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldPercentage ? "bold" : "normal"
|
|
947
|
+
}, A(r(F)({
|
|
948
|
+
v: t.proportion * 100,
|
|
949
|
+
s: "%",
|
|
950
|
+
r: e.value.style.chart.layout.labels.dataLabels.roundingPercentage
|
|
951
|
+
})), 11, Ol), [
|
|
952
|
+
[
|
|
953
|
+
it,
|
|
954
|
+
$.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage
|
|
955
|
+
]
|
|
956
|
+
]),
|
|
957
|
+
rt(y("text", {
|
|
958
|
+
class: R({ animated: e.value.useCssAnimation }),
|
|
959
|
+
opacity: pe(t) ? 1 : 0,
|
|
960
|
+
"text-anchor": r(H)(t, !0).anchor,
|
|
961
|
+
x: r(H)(
|
|
962
|
+
t,
|
|
963
|
+
!1,
|
|
964
|
+
e.value.style.chart.layout.labels.dataLabels.offsetX
|
|
965
|
+
).x || 0,
|
|
966
|
+
y: r(Oe)(
|
|
967
|
+
t,
|
|
968
|
+
e.value.style.chart.layout.labels.dataLabels.offsetY,
|
|
969
|
+
e.value.style.chart.layout.labels.dataLabels.offsetY
|
|
970
|
+
) + e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
971
|
+
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
972
|
+
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
973
|
+
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
|
|
974
|
+
}, " (" + A(r(K)(
|
|
975
|
+
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
976
|
+
t.value,
|
|
977
|
+
r(F)({
|
|
978
|
+
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
979
|
+
v: t.value,
|
|
980
|
+
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
981
|
+
r: e.value.style.chart.layout.labels.dataLabels.roundingValue
|
|
982
|
+
}),
|
|
983
|
+
{ datapoint: t, seriesIndex: o, datapointIndex: u }
|
|
984
|
+
)) + ") ", 11, Fl), [
|
|
985
|
+
[
|
|
986
|
+
it,
|
|
987
|
+
$.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue
|
|
988
|
+
]
|
|
989
|
+
]),
|
|
990
|
+
pe(t) && $.value.dataLabels.show && !e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue ? (n(), i("text", {
|
|
991
|
+
key: 0,
|
|
992
|
+
class: R({ animated: e.value.useCssAnimation }),
|
|
993
|
+
"text-anchor": r(H)(t, !0).anchor,
|
|
994
|
+
x: r(H)(
|
|
995
|
+
t,
|
|
996
|
+
!1,
|
|
997
|
+
e.value.style.chart.layout.labels.dataLabels.offsetX
|
|
998
|
+
).x || 0,
|
|
999
|
+
y: r(Oe)(
|
|
1000
|
+
t,
|
|
1001
|
+
e.value.style.chart.layout.labels.dataLabels.offsetY,
|
|
1002
|
+
e.value.style.chart.layout.labels.dataLabels.offsetY
|
|
1003
|
+
),
|
|
1004
|
+
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
1005
|
+
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1006
|
+
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
|
|
1007
|
+
}, A(r(K)(
|
|
1008
|
+
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
1009
|
+
t.value,
|
|
1010
|
+
r(F)({
|
|
1011
|
+
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1012
|
+
v: t.value,
|
|
1013
|
+
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
1014
|
+
r: e.value.style.chart.layout.labels.dataLabels.roundingValue
|
|
1015
|
+
}),
|
|
1016
|
+
{ datapoint: t, seriesIndex: o, datapointIndex: u }
|
|
1017
|
+
)), 11, Nl)) : m("", !0)
|
|
1018
|
+
], 8, Tl))), 256))
|
|
1019
|
+
]))), 256))
|
|
1020
|
+
])) : m("", !0),
|
|
1021
|
+
(n(!0), i(T, null, O(ee.value, (a, o) => (n(), i("g", null, [
|
|
1022
|
+
(n(!0), i(T, null, O(a.donut, (t, u) => (n(), i("g", null, [
|
|
1023
|
+
y("path", {
|
|
1024
|
+
d: t.arcSlice,
|
|
1025
|
+
fill: Lt.value === o ? "rgba(0,0,0,0.1)" : "transparent",
|
|
1026
|
+
onMouseenter: (c) => Nt({
|
|
1027
|
+
datapoint: t,
|
|
1028
|
+
seriesIndex: t.seriesIndex
|
|
1002
1029
|
}),
|
|
1003
|
-
{ datapoint: t,
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
seriesIndex: t.seriesIndex
|
|
1016
|
-
}),
|
|
1017
|
-
onClick: (c) => Tt({ datapoint: t, index: u }),
|
|
1018
|
-
onMouseleave: s[0] || (s[0] = (c) => {
|
|
1019
|
-
ne.value = !1, Ke.value = null, ee.value = null, te.value = null;
|
|
1020
|
-
})
|
|
1021
|
-
}, null, 40, Fl)
|
|
1022
|
-
]))), 256))
|
|
1023
|
-
]))), 256)),
|
|
1024
|
-
x(l.$slots, "svg", { svg: f.value }, void 0, !0)
|
|
1025
|
-
], 14, il)) : m("", !0),
|
|
1026
|
-
l.$slots.watermark ? (n(), i("div", Nl, [
|
|
1027
|
-
x(l.$slots, "watermark", X(W({ isPrinting: r(Ue) || r(Be) })), void 0, !0)
|
|
1030
|
+
onClick: (c) => Ot({ datapoint: t, index: u }),
|
|
1031
|
+
onMouseleave: s[0] || (s[0] = (c) => {
|
|
1032
|
+
re.value = !1, Qe.value = null, te.value = null, le.value = null;
|
|
1033
|
+
})
|
|
1034
|
+
}, null, 40, Sl)
|
|
1035
|
+
]))), 256))
|
|
1036
|
+
]))), 256)),
|
|
1037
|
+
L(l.$slots, "svg", { svg: f.value }, void 0, !0)
|
|
1038
|
+
], 512)
|
|
1039
|
+
], 14, cl)) : m("", !0),
|
|
1040
|
+
l.$slots.watermark ? (n(), i("div", Al, [
|
|
1041
|
+
L(l.$slots, "watermark", X(W({ isPrinting: r(Ue) || r(Ge) })), void 0, !0)
|
|
1028
1042
|
])) : m("", !0),
|
|
1029
|
-
Q.value ? m("", !0) : (n(),
|
|
1043
|
+
Q.value ? m("", !0) : (n(), U(r(wt), {
|
|
1030
1044
|
key: 6,
|
|
1031
1045
|
config: {
|
|
1032
1046
|
type: "donut",
|
|
@@ -1038,8 +1052,8 @@ const rl = ["id"], il = ["xmlns", "viewBox"], dl = ["width", "height"], cl = ["i
|
|
|
1038
1052
|
}
|
|
1039
1053
|
}
|
|
1040
1054
|
}, null, 8, ["config"])),
|
|
1041
|
-
|
|
1042
|
-
show: $.value.showTooltip &&
|
|
1055
|
+
nt(r($t), {
|
|
1056
|
+
show: $.value.showTooltip && re.value,
|
|
1043
1057
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1044
1058
|
color: e.value.style.chart.tooltip.color,
|
|
1045
1059
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -1050,37 +1064,37 @@ const rl = ["id"], il = ["xmlns", "viewBox"], dl = ["width", "height"], cl = ["i
|
|
|
1050
1064
|
position: e.value.style.chart.tooltip.position,
|
|
1051
1065
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1052
1066
|
parent: V.value,
|
|
1053
|
-
content:
|
|
1067
|
+
content: ie.value,
|
|
1054
1068
|
isFullscreen: G.value,
|
|
1055
|
-
isCustom: r(
|
|
1069
|
+
isCustom: r(dt)(e.value.style.chart.tooltip.customFormat)
|
|
1056
1070
|
}, {
|
|
1057
|
-
"tooltip-before":
|
|
1058
|
-
|
|
1071
|
+
"tooltip-before": x(() => [
|
|
1072
|
+
L(l.$slots, "tooltip-before", X(W({ ...fe.value })), void 0, !0)
|
|
1059
1073
|
]),
|
|
1060
|
-
"tooltip-after":
|
|
1061
|
-
|
|
1074
|
+
"tooltip-after": x(() => [
|
|
1075
|
+
L(l.$slots, "tooltip-after", X(W({ ...fe.value })), void 0, !0)
|
|
1062
1076
|
]),
|
|
1063
1077
|
_: 3
|
|
1064
1078
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
1065
1079
|
e.value.style.chart.legend.show ? (n(), i("div", {
|
|
1066
1080
|
key: 7,
|
|
1067
1081
|
ref_key: "chartLegend",
|
|
1068
|
-
ref:
|
|
1069
|
-
class:
|
|
1082
|
+
ref: de,
|
|
1083
|
+
class: R({ "vue-ui-nested-donuts-legend": ye.value.length > 1 })
|
|
1070
1084
|
}, [
|
|
1071
|
-
(n(!0), i(T, null, O(
|
|
1072
|
-
key: `legend_${o}_${
|
|
1085
|
+
(n(!0), i(T, null, O(ye.value, (a, o) => (n(), U(nl, {
|
|
1086
|
+
key: `legend_${o}_${De.value}`,
|
|
1073
1087
|
legendSet: a,
|
|
1074
|
-
config:
|
|
1075
|
-
onClickMarker: s[1] || (s[1] = ({ legend: t }) =>
|
|
1088
|
+
config: St.value,
|
|
1089
|
+
onClickMarker: s[1] || (s[1] = ({ legend: t }) => he(t))
|
|
1076
1090
|
}, {
|
|
1077
|
-
legendTitle:
|
|
1078
|
-
t[0] && t[0].arcOf ? (n(), i("div",
|
|
1091
|
+
legendTitle: x(({ titleSet: t }) => [
|
|
1092
|
+
t[0] && t[0].arcOf ? (n(), i("div", Il, A(t[0].arcOf), 1)) : m("", !0)
|
|
1079
1093
|
]),
|
|
1080
|
-
item:
|
|
1081
|
-
|
|
1082
|
-
onClick: (c) =>
|
|
1083
|
-
style:
|
|
1094
|
+
item: x(({ legend: t, index: u }) => [
|
|
1095
|
+
y("div", {
|
|
1096
|
+
onClick: (c) => he(t),
|
|
1097
|
+
style: ne(`opacity:${w.value.includes(t.id) ? 0.5 : 1}`)
|
|
1084
1098
|
}, A(t.name) + A(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + A(e.value.style.chart.legend.showValue ? r(K)(
|
|
1085
1099
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
1086
1100
|
t.value,
|
|
@@ -1095,7 +1109,7 @@ const rl = ["id"], il = ["xmlns", "viewBox"], dl = ["width", "height"], cl = ["i
|
|
|
1095
1109
|
v: t.value / t.total * 100,
|
|
1096
1110
|
s: "%",
|
|
1097
1111
|
r: e.value.style.chart.legend.roundingPercentage
|
|
1098
|
-
})}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13,
|
|
1112
|
+
})}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, Vl)
|
|
1099
1113
|
]),
|
|
1100
1114
|
_: 2
|
|
1101
1115
|
}, 1032, ["legendSet", "config"]))), 128))
|
|
@@ -1103,19 +1117,19 @@ const rl = ["id"], il = ["xmlns", "viewBox"], dl = ["width", "height"], cl = ["i
|
|
|
1103
1117
|
e.value.style.chart.legend.show ? m("", !0) : (n(), i("div", {
|
|
1104
1118
|
key: 8,
|
|
1105
1119
|
ref_key: "chartLegend",
|
|
1106
|
-
ref:
|
|
1120
|
+
ref: de
|
|
1107
1121
|
}, [
|
|
1108
|
-
|
|
1122
|
+
L(l.$slots, "legend", { legend: ye.value }, void 0, !0)
|
|
1109
1123
|
], 512)),
|
|
1110
1124
|
l.$slots.source ? (n(), i("div", {
|
|
1111
1125
|
key: 9,
|
|
1112
1126
|
ref_key: "source",
|
|
1113
|
-
ref:
|
|
1127
|
+
ref: Ae,
|
|
1114
1128
|
dir: "auto"
|
|
1115
1129
|
}, [
|
|
1116
|
-
|
|
1130
|
+
L(l.$slots, "source", {}, void 0, !0)
|
|
1117
1131
|
], 512)) : m("", !0),
|
|
1118
|
-
Q.value ? (n(),
|
|
1132
|
+
Q.value ? (n(), U(r(yt), {
|
|
1119
1133
|
key: 10,
|
|
1120
1134
|
hideDetails: "",
|
|
1121
1135
|
config: {
|
|
@@ -1131,33 +1145,33 @@ const rl = ["id"], il = ["xmlns", "viewBox"], dl = ["width", "height"], cl = ["i
|
|
|
1131
1145
|
}
|
|
1132
1146
|
}
|
|
1133
1147
|
}, {
|
|
1134
|
-
content:
|
|
1135
|
-
(n(),
|
|
1136
|
-
key: `table_${
|
|
1137
|
-
colNames:
|
|
1138
|
-
head:
|
|
1139
|
-
body:
|
|
1140
|
-
config:
|
|
1148
|
+
content: x(() => [
|
|
1149
|
+
(n(), U(r(bt), {
|
|
1150
|
+
key: `table_${Pe.value}`,
|
|
1151
|
+
colNames: ae.value.colNames,
|
|
1152
|
+
head: ae.value.head,
|
|
1153
|
+
body: ae.value.body,
|
|
1154
|
+
config: ae.value.config,
|
|
1141
1155
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1142
1156
|
onClose: s[2] || (s[2] = (a) => $.value.showTable = !1)
|
|
1143
1157
|
}, {
|
|
1144
|
-
th:
|
|
1145
|
-
|
|
1158
|
+
th: x(({ th: a }) => [
|
|
1159
|
+
y("div", {
|
|
1146
1160
|
innerHTML: a,
|
|
1147
1161
|
style: { display: "flex", "align-items": "center" }
|
|
1148
|
-
}, null, 8,
|
|
1162
|
+
}, null, 8, Pl)
|
|
1149
1163
|
]),
|
|
1150
|
-
td:
|
|
1151
|
-
|
|
1164
|
+
td: x(({ td: a }) => [
|
|
1165
|
+
Rt(A(a.name || a), 1)
|
|
1152
1166
|
]),
|
|
1153
1167
|
_: 1
|
|
1154
1168
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
1155
1169
|
]),
|
|
1156
1170
|
_: 1
|
|
1157
1171
|
}, 8, ["config"])) : m("", !0)
|
|
1158
|
-
], 46,
|
|
1172
|
+
], 46, dl));
|
|
1159
1173
|
}
|
|
1160
|
-
},
|
|
1174
|
+
}, Hl = /* @__PURE__ */ il(Dl, [["__scopeId", "data-v-49c37248"]]);
|
|
1161
1175
|
export {
|
|
1162
|
-
|
|
1176
|
+
Hl as default
|
|
1163
1177
|
};
|