vue-data-ui 3.0.0-next.1 → 3.0.0-next.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/README.md +16 -1
- package/dist/{Arrow-BKKETqRi.js → Arrow-Dck2Ea5K.js} +1 -1
- package/dist/{BaseDraggableDialog-Duz4Bd3A.js → BaseDraggableDialog-CatHZ1ns.js} +2 -2
- package/dist/{BaseIcon-BAHAKjob.js → BaseIcon-BmZ4MREl.js} +1 -1
- package/dist/{ColorPicker-oPTO1J9Q.js → ColorPicker-C1MXyD9Q.js} +2 -2
- package/dist/{DataTable-vByThHdN.js → DataTable-CgL0Rz0x.js} +2 -2
- package/dist/{Legend-CIElSUHU.js → Legend-CYbP3Kfg.js} +19 -18
- package/dist/{NonSvgPenAndPaper-CsY6Bf4e.js → NonSvgPenAndPaper-CcbcJm_U.js} +3 -3
- package/dist/{PackageVersion-B0wGS6pw.js → PackageVersion-CAkNkiIG.js} +1 -1
- package/dist/{PenAndPaper-7o0xS-d4.js → PenAndPaper-Cx1-5zdD.js} +3 -3
- package/dist/{Shape-Blrp5ZfP.js → Shape-DBXkGxKt.js} +1 -1
- package/dist/{Slicer-CcM8hzCn.js → Slicer-nrMi5hzj.js} +2 -2
- package/dist/{SparkTooltip-iaouYun8.js → SparkTooltip-fNzL4pIU.js} +1 -1
- package/dist/{Title-CWxjC3bE.js → Title-pVYRzQXY.js} +1 -1
- package/dist/Tooltip-NwATo4ZJ.js +157 -0
- package/dist/{UserOptions-BEBaPSlU.js → UserOptions-DAsRxxrf.js} +2 -2
- package/dist/{dom-to-png-CrAOuxmd.js → dom-to-png-BF_4H_6u.js} +1 -1
- package/dist/{img-D3JvqNF8.js → img-ku4zevVD.js} +1 -1
- package/dist/{index-BSa4GlHG.js → index-BzfnuLnw.js} +1170 -1128
- package/dist/{pdf-DROWzopj.js → pdf-CguiIsUc.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +33 -51
- package/dist/types/vue-data-ui.d.ts +33 -51
- package/dist/useLoading-Bt5Doa8m.js +28 -0
- package/dist/{useNestedProp-uR74_CFG.js → useNestedProp-DorElw91.js} +1 -1
- package/dist/{usePrinter-j3g1L2nh.js → usePrinter-C9qkgv0r.js} +2 -2
- package/dist/{vue-data-ui-BzMRz9Un.js → vue-data-ui-DQef_oFO.js} +63 -63
- package/dist/vue-data-ui.js +13 -13
- package/dist/{vue-ui-3d-bar-BAOGEe-m.js → vue-ui-3d-bar-DPSamIA-.js} +6 -6
- package/dist/{vue-ui-accordion-DzF-SPaZ.js → vue-ui-accordion-DgZK-qDz.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BRdQ44O4.js → vue-ui-age-pyramid-DVeGKvf9.js} +6 -6
- package/dist/{vue-ui-annotator-mjIKrhYa.js → vue-ui-annotator-6ikkK-FK.js} +2 -2
- package/dist/{vue-ui-bullet-CLYmLvSB.js → vue-ui-bullet-Bg4hfFk2.js} +7 -7
- package/dist/{vue-ui-candlestick-BFLmoEEN.js → vue-ui-candlestick-Bi59FGXn.js} +7 -7
- package/dist/{vue-ui-carousel-table-V89TMa5p.js → vue-ui-carousel-table-DitKhrFT.js} +4 -4
- package/dist/{vue-ui-chestnut-C7eNjkFo.js → vue-ui-chestnut-D8wGAZod.js} +6 -6
- package/dist/{vue-ui-chord-BuYDLE7K.js → vue-ui-chord-C-uTVCDP.js} +8 -8
- package/dist/{vue-ui-circle-pack-CCMbsOpk.js → vue-ui-circle-pack-CPy6xcxv.js} +26 -26
- package/dist/{vue-ui-cursor-BrKIImfp.js → vue-ui-cursor-Dd7vUd0q.js} +2 -2
- package/dist/{vue-ui-dashboard-WMKjx3iE.js → vue-ui-dashboard-CKurbu8M.js} +62 -62
- package/dist/{vue-ui-digits-BoYPIuXn.js → vue-ui-digits-DfdZI11G.js} +2 -2
- package/dist/{vue-ui-donut-evolution-DSG8NUG0.js → vue-ui-donut-evolution-CKbLO8yR.js} +8 -8
- package/dist/vue-ui-donut-tECBFvud.js +1532 -0
- package/dist/{vue-ui-dumbbell-BMveoLd_.js → vue-ui-dumbbell-DI5Lj3r_.js} +7 -7
- package/dist/{vue-ui-flow-Dnsik-8f.js → vue-ui-flow-CjU48s9z.js} +7 -7
- package/dist/{vue-ui-funnel-CQ0nHCvy.js → vue-ui-funnel-DM_5vHZ4.js} +6 -6
- package/dist/{vue-ui-galaxy-D5L31IXm.js → vue-ui-galaxy-ocvZgZJx.js} +5 -5
- package/dist/{vue-ui-gauge-BnuDe4Wj.js → vue-ui-gauge-DajNoY-D.js} +6 -6
- package/dist/{vue-ui-gizmo-DYYw-JEs.js → vue-ui-gizmo-DTnzeQbm.js} +3 -3
- package/dist/{vue-ui-heatmap-9KJYiKzE.js → vue-ui-heatmap-CfBS8jQe.js} +7 -7
- package/dist/{vue-ui-history-plot-QOaVWh5L.js → vue-ui-history-plot-BuOPWQoP.js} +7 -7
- package/dist/{vue-ui-kpi-EtTBwHGS.js → vue-ui-kpi-DLGHOIRj.js} +3 -3
- package/dist/{vue-ui-mini-loader-CRnUCpsm.js → vue-ui-mini-loader-CHAHi4c9.js} +2 -2
- package/dist/{vue-ui-molecule-Bfk3Vhbi.js → vue-ui-molecule-R5-oDFeW.js} +5 -5
- package/dist/{vue-ui-mood-radar-BfRkWvgp.js → vue-ui-mood-radar-Ddf2gaES.js} +7 -7
- package/dist/{vue-ui-nested-donuts-Ck9Zm1UU.js → vue-ui-nested-donuts-CksklV83.js} +269 -269
- package/dist/{vue-ui-onion-DF7Z21x-.js → vue-ui-onion-D2n4zUkV.js} +7 -7
- package/dist/{vue-ui-parallel-coordinate-plot-JVogg7k5.js → vue-ui-parallel-coordinate-plot-CNWQqlxf.js} +8 -8
- package/dist/{vue-ui-quadrant-DpFjMZoK.js → vue-ui-quadrant-CxNj2FEx.js} +8 -8
- package/dist/{vue-ui-quick-chart-NfXEFkoL.js → vue-ui-quick-chart-Bm_VmhJR.js} +6 -6
- package/dist/{vue-ui-radar-Dg8UovnR.js → vue-ui-radar-DSYMQJ6K.js} +7 -7
- package/dist/{vue-ui-rating-D3cpdLRt.js → vue-ui-rating-BiQpwXnc.js} +2 -2
- package/dist/{vue-ui-relation-circle-BZTTPLCi.js → vue-ui-relation-circle-Cdxe78Bm.js} +6 -6
- package/dist/{vue-ui-ridgeline-CtY_J3hk.js → vue-ui-ridgeline-DpeM2hRi.js} +8 -8
- package/dist/{vue-ui-rings-BiA-bRgU.js → vue-ui-rings-BenmQHKv.js} +8 -8
- package/dist/{vue-ui-scatter-C3sCChYD.js → vue-ui-scatter-mDMY1H6U.js} +8 -8
- package/dist/{vue-ui-skeleton-DY48gQ96.js → vue-ui-skeleton-Ch_XkFuP.js} +3 -3
- package/dist/{vue-ui-smiley-DopwmgcY.js → vue-ui-smiley-DTig5lTU.js} +2 -2
- package/dist/{vue-ui-spark-trend-DO7P-2x8.js → vue-ui-spark-trend-BkDsp8E0.js} +3 -3
- package/dist/{vue-ui-sparkbar-mqLbTvAg.js → vue-ui-sparkbar-CgqoyBOm.js} +3 -3
- package/dist/{vue-ui-sparkgauge-CdfZYUAZ.js → vue-ui-sparkgauge-B4jR_Y62.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-DAy--kFA.js → vue-ui-sparkhistogram-DfxjglLy.js} +4 -4
- package/dist/{vue-ui-sparkline-KkG0FnmI.js → vue-ui-sparkline-M3QR8xJE.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-LDRannBB.js → vue-ui-sparkstackbar-B2Ls-Mb8.js} +3 -3
- package/dist/{vue-ui-stackbar-Bys4yWs_.js → vue-ui-stackbar-DIHkn6__.js} +9 -9
- package/dist/{vue-ui-strip-plot-DUBqioS2.js → vue-ui-strip-plot-B_ZLbu2D.js} +7 -7
- package/dist/{vue-ui-table-CPWgP-71.js → vue-ui-table-BhymhDOh.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DfrMVDEE.js → vue-ui-table-heatmap-DokRh4dS.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CNC7Lp0t.js → vue-ui-table-sparkline-DxBZGKZJ.js} +4 -4
- package/dist/{vue-ui-thermometer-Bby5nWIi.js → vue-ui-thermometer-e2L6IdF-.js} +6 -6
- package/dist/{vue-ui-timer-ym9etXUy.js → vue-ui-timer-BG2EwK3o.js} +5 -5
- package/dist/{vue-ui-tiremarks-C0V_XedF.js → vue-ui-tiremarks-nzQH7woJ.js} +6 -6
- package/dist/{vue-ui-treemap-B5k0NEO3.js → vue-ui-treemap-CZxyi6fl.js} +8 -8
- package/dist/{vue-ui-vertical-bar-DRmHFEMu.js → vue-ui-vertical-bar-DahdX1Sn.js} +279 -273
- package/dist/{vue-ui-waffle-DrEQsTIO.js → vue-ui-waffle-D399D4UE.js} +8 -8
- package/dist/{vue-ui-wheel-BOTBLBOr.js → vue-ui-wheel-DtcwtHzJ.js} +6 -6
- package/dist/{vue-ui-word-cloud-Btay9XOs.js → vue-ui-word-cloud-CTDceQsf.js} +6 -6
- package/dist/{vue-ui-world-zBvIXrWH.js → vue-ui-world-BjNSbqMZ.js} +6 -6
- package/dist/vue-ui-xy-BkTP-JpK.js +2958 -0
- package/dist/{vue-ui-xy-canvas-CDjYeEkq.js → vue-ui-xy-canvas-BKAowbe0.js} +8 -8
- package/package.json +2 -2
- package/dist/Tooltip-Cq9HywcX.js +0 -149
- package/dist/useMouse-AicQS8Vf.js +0 -13
- package/dist/vue-ui-donut-DJVqqXEb.js +0 -1338
- package/dist/vue-ui-xy-C7uPPKm9.js +0 -3149
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineAsyncComponent as E, computed as k, ref as h, watch as
|
|
2
|
-
import { u as Ut, c as Gt, t as Yt, p as
|
|
1
|
+
import { defineAsyncComponent as E, computed as k, ref as h, watch as ot, onMounted as st, nextTick as ut, shallowRef as nt, 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 rt, createSlots as Et, withCtx as C, renderSlot as x, normalizeProps as X, guardReactiveProps as W, createElementVNode as p, Fragment as T, renderList as A, toDisplayString as S, withDirectives as it, vShow as dt, createTextVNode as Rt } from "vue";
|
|
2
|
+
import { u as Ut, c as Gt, t as Yt, p as Te, a as Xt, G as z, o as Wt, e as q, b as qt, d as Ht, m as Ae, f as O, X as Jt, s as Kt, L as Qt, k as Oe, n as H, i as K, x as ct, q as Zt, r as jt, y as el, v as Fe, T as vt } from "./index-BzfnuLnw.js";
|
|
3
3
|
import { t as tl, u as ll } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as al } from "./usePrinter-
|
|
4
|
+
import { u as ht } from "./useNestedProp-DorElw91.js";
|
|
5
|
+
import { u as al } from "./usePrinter-C9qkgv0r.js";
|
|
6
6
|
import { u as ol } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as sl } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import ul from "./Title-
|
|
9
|
-
import nl from "./Legend-
|
|
10
|
-
import rl from "./img-
|
|
8
|
+
import ul from "./Title-pVYRzQXY.js";
|
|
9
|
+
import nl from "./Legend-CYbP3Kfg.js";
|
|
10
|
+
import rl from "./img-ku4zevVD.js";
|
|
11
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"],
|
|
12
|
+
const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["id"], fl = ["offset", "stop-color"], yl = ["offset", "stop-opacity"], pl = ["id"], bl = ["id"], gl = ["id"], ml = ["flood-color"], wl = ["d", "fill", "stroke", "stroke-width", "filter"], $l = ["d", "fill", "stroke", "stroke-width"], kl = { key: 1 }, Cl = ["d", "fill"], xl = { key: 2 }, Ll = ["x", "y", "font-size", "font-weight", "fill"], _l = { key: 3 }, Tl = ["filter"], Al = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], Ol = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], Fl = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], Nl = ["d", "fill", "onMouseenter", "onClick"], Sl = {
|
|
13
13
|
key: 5,
|
|
14
14
|
class: "vue-data-ui-watermark"
|
|
15
15
|
}, Il = {
|
|
@@ -32,38 +32,38 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
emits: ["selectLegend", "selectDatapoint"],
|
|
35
|
-
setup(
|
|
36
|
-
const
|
|
37
|
-
function
|
|
35
|
+
setup(ft, { expose: yt, emit: pt }) {
|
|
36
|
+
const bt = E(() => import("./vue-ui-accordion-DgZK-qDz.js")), gt = E(() => import("./DataTable-CgL0Rz0x.js")), mt = E(() => import("./PackageVersion-CAkNkiIG.js")), wt = E(() => import("./PenAndPaper-Cx1-5zdD.js")), $t = E(() => import("./vue-ui-skeleton-Ch_XkFuP.js")), kt = E(() => import("./Tooltip-NwATo4ZJ.js")), Ct = E(() => import("./UserOptions-DAsRxxrf.js")), { vue_ui_nested_donuts: xt } = Ut(), L = ft, Q = k(() => !!L.dataset && L.dataset.length), b = h(Gt()), re = h(!1), ie = h(""), de = h(null), Ne = h(0), V = h(null), Se = h(null), ce = h(null), Ie = h(null), Ve = h(null), Pe = h(0), De = h(0), ze = h(0), M = h(!0), B = h([]), J = h([]), G = h(!1);
|
|
37
|
+
function Me(l) {
|
|
38
38
|
G.value = l, Ne.value += 1;
|
|
39
39
|
}
|
|
40
40
|
const e = k({
|
|
41
|
-
get: () =>
|
|
41
|
+
get: () => Re(),
|
|
42
42
|
set: (l) => l
|
|
43
|
-
}), { userOptionsVisible:
|
|
43
|
+
}), { userOptionsVisible: ve, setUserOptionsVisibility: Be, keepUserOptionState: Ee } = ol({ config: e.value }), { svgRef: Z } = sl({
|
|
44
44
|
config: e.value.style.chart.title
|
|
45
45
|
});
|
|
46
|
-
function
|
|
47
|
-
const l =
|
|
48
|
-
userConfig:
|
|
46
|
+
function Re() {
|
|
47
|
+
const l = ht({
|
|
48
|
+
userConfig: L.config,
|
|
49
49
|
defaultConfig: xt
|
|
50
50
|
});
|
|
51
51
|
return l.theme ? {
|
|
52
|
-
...
|
|
53
|
-
userConfig: Xt.vue_ui_nested_donuts[l.theme] ||
|
|
52
|
+
...ht({
|
|
53
|
+
userConfig: Xt.vue_ui_nested_donuts[l.theme] || L.config,
|
|
54
54
|
defaultConfig: l
|
|
55
55
|
}),
|
|
56
|
-
customPalette: Yt[l.theme] ||
|
|
56
|
+
customPalette: Yt[l.theme] || Te
|
|
57
57
|
} : l;
|
|
58
58
|
}
|
|
59
|
-
|
|
60
|
-
() =>
|
|
59
|
+
ot(
|
|
60
|
+
() => L.config,
|
|
61
61
|
(l) => {
|
|
62
|
-
e.value =
|
|
62
|
+
e.value = Re(), ve.value = !e.value.userOptions.showOnChartHover, he(), Pe.value += 1, De.value += 1, ze.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
|
);
|
|
66
|
-
const
|
|
66
|
+
const Ue = k(() => {
|
|
67
67
|
const { top: l, right: s, bottom: a, left: o } = e.value.style.chart.padding;
|
|
68
68
|
return {
|
|
69
69
|
css: `padding:${l}px ${s}px ${a}px ${o}px`,
|
|
@@ -73,37 +73,37 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
|
|
|
73
73
|
left: o
|
|
74
74
|
};
|
|
75
75
|
});
|
|
76
|
-
function
|
|
76
|
+
function Lt(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
|
-
const
|
|
84
|
-
function d(
|
|
85
|
-
const _ = Math.min((
|
|
86
|
-
B.value[v] =
|
|
83
|
+
const F = performance.now();
|
|
84
|
+
function d(y) {
|
|
85
|
+
const _ = Math.min((y - F) / s, 1), we = vt(_), $e = c * we;
|
|
86
|
+
B.value[v] = $e, B.value = [...B.value];
|
|
87
87
|
const se = [];
|
|
88
|
-
let
|
|
89
|
-
|
|
88
|
+
let ke = 0;
|
|
89
|
+
L.dataset.forEach((ue, Ce) => {
|
|
90
90
|
const Pt = Fe(ue.series.reduce(
|
|
91
|
-
(Le,
|
|
91
|
+
(Le, _e) => Le + Fe(z(_e.values).reduce((zt, Mt) => zt + Mt, 0)),
|
|
92
92
|
0
|
|
93
|
-
)), Dt = Fe(B.value.slice(
|
|
93
|
+
)), Dt = Fe(B.value.slice(ke, ke + ue.series.length).reduce((Le, _e) => Le + _e, 0)), xe = Pt - Dt;
|
|
94
94
|
xe > Number.MIN_VALUE && se.push({
|
|
95
95
|
name: "__ghost__",
|
|
96
96
|
arcOf: ue.name,
|
|
97
|
-
arcOfId: `${b.value}_${
|
|
98
|
-
id: `ghost_${b.value}_${
|
|
97
|
+
arcOfId: `${b.value}_${Ce}`,
|
|
98
|
+
id: `ghost_${b.value}_${Ce}`,
|
|
99
99
|
seriesIndex: -1,
|
|
100
|
-
datasetIndex:
|
|
100
|
+
datasetIndex: Ce,
|
|
101
101
|
color: "transparent",
|
|
102
102
|
value: xe,
|
|
103
103
|
fullValue: xe,
|
|
104
104
|
absoluteValues: [],
|
|
105
105
|
ghost: !0
|
|
106
|
-
}),
|
|
106
|
+
}), ke += ue.series.length;
|
|
107
107
|
}), J.value = se, _ < 1 ? requestAnimationFrame(d) : (u += 1, u === t && o());
|
|
108
108
|
}
|
|
109
109
|
requestAnimationFrame(d);
|
|
@@ -111,14 +111,14 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
|
|
|
111
111
|
});
|
|
112
112
|
});
|
|
113
113
|
}
|
|
114
|
-
|
|
115
|
-
if (
|
|
116
|
-
const s =
|
|
114
|
+
st(async () => {
|
|
115
|
+
if (he(), e.value.startAnimation?.show) {
|
|
116
|
+
const s = L.dataset.flatMap((a) => a.series).map(
|
|
117
117
|
(a) => z(a.values).reduce((o, t) => o + t, 0)
|
|
118
118
|
);
|
|
119
|
-
B.value = s.map(() => 0), M.value = !0, J.value =
|
|
119
|
+
B.value = s.map(() => 0), M.value = !0, J.value = L.dataset.map((a, o) => {
|
|
120
120
|
const t = a.series.reduce(
|
|
121
|
-
(u, c) => u + z(c.values).reduce((v,
|
|
121
|
+
(u, c) => u + z(c.values).reduce((v, F) => v + F, 0),
|
|
122
122
|
0
|
|
123
123
|
);
|
|
124
124
|
return {
|
|
@@ -134,7 +134,7 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
|
|
|
134
134
|
absoluteValues: [],
|
|
135
135
|
ghost: !0
|
|
136
136
|
};
|
|
137
|
-
}), await
|
|
137
|
+
}), await ut(), Lt(
|
|
138
138
|
s,
|
|
139
139
|
e.value.startAnimation.durationMs,
|
|
140
140
|
e.value.startAnimation.staggerMs
|
|
@@ -144,12 +144,12 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
|
|
|
144
144
|
} else
|
|
145
145
|
M.value = !1;
|
|
146
146
|
});
|
|
147
|
-
const P =
|
|
148
|
-
|
|
149
|
-
|
|
147
|
+
const P = nt(null), Y = nt(null);
|
|
148
|
+
st(() => {
|
|
149
|
+
he();
|
|
150
150
|
});
|
|
151
|
-
function
|
|
152
|
-
if (Wt(
|
|
151
|
+
function he() {
|
|
152
|
+
if (Wt(L.dataset) && q({
|
|
153
153
|
componentName: "VueUiNestedDonuts",
|
|
154
154
|
type: "dataset"
|
|
155
155
|
}), e.value.responsive) {
|
|
@@ -157,10 +157,10 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
|
|
|
157
157
|
const { width: s, height: a } = ll({
|
|
158
158
|
chart: V.value,
|
|
159
159
|
title: e.value.style.chart.title.text ? Se.value : null,
|
|
160
|
-
legend: e.value.style.chart.legend.show ?
|
|
161
|
-
source:
|
|
162
|
-
noTitle:
|
|
163
|
-
padding:
|
|
160
|
+
legend: e.value.style.chart.legend.show ? ce.value : null,
|
|
161
|
+
source: Ie.value,
|
|
162
|
+
noTitle: Ve.value,
|
|
163
|
+
padding: Ue.value
|
|
164
164
|
});
|
|
165
165
|
requestAnimationFrame(() => {
|
|
166
166
|
f.value.width = s, f.value.height = a;
|
|
@@ -172,7 +172,7 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
|
|
|
172
172
|
Bt(() => {
|
|
173
173
|
P.value && (Y.value && P.value.unobserve(Y.value), P.value.disconnect());
|
|
174
174
|
});
|
|
175
|
-
const { isPrinting:
|
|
175
|
+
const { isPrinting: Ge, isImaging: Ye, generatePdf: Xe, generateImage: We } = al({
|
|
176
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
|
|
@@ -185,27 +185,27 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["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
|
+
}), qe = pt;
|
|
189
|
+
function At({ datapoint: l, index: s }) {
|
|
190
|
+
qe("selectDatapoint", { datapoint: l, index: s });
|
|
191
191
|
}
|
|
192
|
-
function
|
|
192
|
+
function He({
|
|
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 = vt
|
|
199
199
|
}) {
|
|
200
200
|
const c = performance.now();
|
|
201
|
-
function v(
|
|
202
|
-
const d = Math.min((
|
|
201
|
+
function v(F) {
|
|
202
|
+
const d = Math.min((F - c) / a, 1), y = u(d), _ = l + (s - l) * y;
|
|
203
203
|
o(_, d), d < 1 ? requestAnimationFrame(v) : (o(s, 1), t && t());
|
|
204
204
|
}
|
|
205
205
|
requestAnimationFrame(v);
|
|
206
206
|
}
|
|
207
|
-
const w = h([]),
|
|
208
|
-
|
|
207
|
+
const w = h([]), N = k(() => {
|
|
208
|
+
L.dataset.forEach((s, a) => {
|
|
209
209
|
[null, void 0].includes(s.name) && q({
|
|
210
210
|
componentName: "VueUiNestedDonuts",
|
|
211
211
|
type: "datasetSerieAttribute",
|
|
@@ -237,7 +237,7 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
|
|
|
237
237
|
});
|
|
238
238
|
});
|
|
239
239
|
let l = 0;
|
|
240
|
-
return
|
|
240
|
+
return L.dataset.map((s, a) => ({
|
|
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,
|
|
@@ -251,13 +251,13 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
|
|
|
251
251
|
id: `${b.value}_${a}_${t}`,
|
|
252
252
|
seriesIndex: t,
|
|
253
253
|
datasetIndex: a,
|
|
254
|
-
color: Ht(o.color) || Tt.value[t] ||
|
|
254
|
+
color: Ht(o.color) || Tt.value[t] || Te[t % Te.length],
|
|
255
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)), Je = k(() => [...N.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,59 +268,59 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
|
|
|
268
268
|
}))
|
|
269
269
|
};
|
|
270
270
|
}));
|
|
271
|
-
function
|
|
271
|
+
function Ot(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 g = h(
|
|
278
|
-
|
|
279
|
-
() =>
|
|
277
|
+
const g = h(Je.value);
|
|
278
|
+
ot(
|
|
279
|
+
() => Je.value,
|
|
280
280
|
(l) => g.value = l
|
|
281
281
|
);
|
|
282
|
-
function
|
|
283
|
-
|
|
284
|
-
const s =
|
|
285
|
-
(d,
|
|
286
|
-
value: z(_.values).reduce((
|
|
287
|
-
id: `${b.value}_${
|
|
288
|
-
arcOfId: `${b.value}_${
|
|
282
|
+
function fe(l) {
|
|
283
|
+
qe("selectLegend", l);
|
|
284
|
+
const s = L.dataset.flatMap(
|
|
285
|
+
(d, y) => d.series.map((_, we) => ({
|
|
286
|
+
value: z(_.values).reduce(($e, se) => $e + se, 0),
|
|
287
|
+
id: `${b.value}_${y}_${we}`,
|
|
288
|
+
arcOfId: `${b.value}_${y}`
|
|
289
289
|
}))
|
|
290
290
|
).find((d) => d.id === l.id);
|
|
291
291
|
if (!s) return;
|
|
292
|
-
const a =
|
|
292
|
+
const a = N.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
|
-
const c =
|
|
294
|
+
const c = N.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),
|
|
298
|
+
const v = c.series.map((d) => d.id), F = Ot(
|
|
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 ? He({
|
|
304
304
|
from: u,
|
|
305
305
|
to: a,
|
|
306
306
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
307
307
|
onUpdate: (d) => {
|
|
308
|
-
g.value = g.value.map((
|
|
309
|
-
...
|
|
310
|
-
series:
|
|
308
|
+
g.value = g.value.map((y) => ({
|
|
309
|
+
...y,
|
|
310
|
+
series: y.series.map((_) => _.id === l.id ? { ..._, value: d } : _)
|
|
311
311
|
}));
|
|
312
312
|
}
|
|
313
313
|
}) : g.value = g.value.map((d) => ({
|
|
314
314
|
...d,
|
|
315
|
-
series: d.series.map((
|
|
316
|
-
}))) :
|
|
315
|
+
series: d.series.map((y) => y.id === l.id ? { ...y, value: a } : y)
|
|
316
|
+
}))) : F && (e.value.serieToggleAnimation.show ? He({
|
|
317
317
|
from: u,
|
|
318
318
|
to: 0,
|
|
319
319
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
320
320
|
onUpdate: (d) => {
|
|
321
|
-
g.value = g.value.map((
|
|
322
|
-
...
|
|
323
|
-
series:
|
|
321
|
+
g.value = g.value.map((y) => ({
|
|
322
|
+
...y,
|
|
323
|
+
series: y.series.map((_) => _.id === l.id ? { ..._, value: d } : _)
|
|
324
324
|
}));
|
|
325
325
|
},
|
|
326
326
|
onDone: () => {
|
|
@@ -328,14 +328,14 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
|
|
|
328
328
|
}
|
|
329
329
|
}) : (g.value = g.value.map((d) => ({
|
|
330
330
|
...d,
|
|
331
|
-
series: d.series.map((
|
|
331
|
+
series: d.series.map((y) => y.id === l.id ? { ...y, value: 0 } : y)
|
|
332
332
|
})), w.value.push(l.id)));
|
|
333
333
|
}
|
|
334
|
-
const j = k(() => I.value /
|
|
335
|
-
const a = Math.abs(l.series.map((v) => v.value).reduce((v,
|
|
334
|
+
const j = k(() => I.value / N.value.length * e.value.style.chart.layout.donut.spacingRatio), Ke = k(() => g.value.map((l, s) => I.value - s * I.value / N.value.length)), ee = k(() => g.value.map((l, s) => {
|
|
335
|
+
const a = Math.abs(l.series.map((v) => v.value).reduce((v, F) => v + F, 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 = Ae(
|
|
339
339
|
{ series: [
|
|
340
340
|
{ name: "_", color: e.value.style.chart.layout.donut.emptyFill, value: 1 }
|
|
341
341
|
] },
|
|
@@ -355,7 +355,7 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
|
|
|
355
355
|
hasData: a,
|
|
356
356
|
radius: o,
|
|
357
357
|
skeleton: c,
|
|
358
|
-
donut:
|
|
358
|
+
donut: Ae(
|
|
359
359
|
{ series: u },
|
|
360
360
|
f.value.width / 2,
|
|
361
361
|
f.value.height / 2,
|
|
@@ -369,11 +369,11 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
|
|
|
369
369
|
j.value
|
|
370
370
|
)
|
|
371
371
|
};
|
|
372
|
-
})),
|
|
373
|
-
const a = s * I.value /
|
|
372
|
+
})), Qe = k(() => [...N.value].map((l, s) => {
|
|
373
|
+
const a = s * I.value / N.value.length;
|
|
374
374
|
return {
|
|
375
375
|
sizeRatio: a,
|
|
376
|
-
donut:
|
|
376
|
+
donut: Ae(
|
|
377
377
|
{ series: [{ value: 1 }] },
|
|
378
378
|
f.value.width / 2,
|
|
379
379
|
f.value.height / 2,
|
|
@@ -384,19 +384,19 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
|
|
|
384
384
|
1,
|
|
385
385
|
360,
|
|
386
386
|
105.25,
|
|
387
|
-
I.value /
|
|
387
|
+
I.value / N.value.length * e.value.style.chart.layout.donut.spacingRatio
|
|
388
388
|
)[0]
|
|
389
389
|
};
|
|
390
|
-
})),
|
|
391
|
-
function
|
|
392
|
-
|
|
390
|
+
})), Ze = h(null), te = h(null), le = h(null), ye = h(null);
|
|
391
|
+
function Ft({ datapoint: l, _relativeIndex: s, seriesIndex: a }) {
|
|
392
|
+
Ze.value = l.arcOfId, te.value = l.id, le.value = a, de.value = l.id, ye.value = {
|
|
393
393
|
datapoint: l,
|
|
394
394
|
seriesIndex: a,
|
|
395
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 (ct(o) && el(
|
|
400
400
|
() => o({
|
|
401
401
|
seriesIndex: a,
|
|
402
402
|
datapoint: l,
|
|
@@ -430,7 +430,7 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
|
|
|
430
430
|
${e.value.style.chart.tooltip.showValue ? `<b>${K(
|
|
431
431
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
432
432
|
l.value,
|
|
433
|
-
|
|
433
|
+
O({
|
|
434
434
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
435
435
|
v: l.value,
|
|
436
436
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -439,7 +439,7 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
|
|
|
439
439
|
{ datapoint: l, seriesIndex: a }
|
|
440
440
|
)}
|
|
441
441
|
</b>` : ""}
|
|
442
|
-
${e.value.style.chart.tooltip.showPercentage ? `(${
|
|
442
|
+
${e.value.style.chart.tooltip.showPercentage ? `(${O({
|
|
443
443
|
v: c.proportion * 100,
|
|
444
444
|
s: "%",
|
|
445
445
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
@@ -452,18 +452,18 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
|
|
|
452
452
|
t += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.arcOf ?? ""} - ${l.name}</div>`, t += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${l.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (t += `<b>${K(
|
|
453
453
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
454
454
|
l.value,
|
|
455
|
-
|
|
455
|
+
O({
|
|
456
456
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
457
457
|
v: l.value,
|
|
458
458
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
459
459
|
r: e.value.style.chart.tooltip.roundingValue
|
|
460
460
|
}),
|
|
461
461
|
{ datapoint: l, seriesIndex: a }
|
|
462
|
-
)}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? t += `<span>(${
|
|
462
|
+
)}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? t += `<span>(${O({
|
|
463
463
|
v: l.proportion * 100,
|
|
464
464
|
s: "%",
|
|
465
465
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
466
|
-
})})</span></div>` : t += `<b>${
|
|
466
|
+
})})</span></div>` : t += `<b>${O({
|
|
467
467
|
v: l.proportion * 100,
|
|
468
468
|
s: "%",
|
|
469
469
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
@@ -475,7 +475,7 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
|
|
|
475
475
|
function pe(l) {
|
|
476
476
|
return l.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
477
477
|
}
|
|
478
|
-
function
|
|
478
|
+
function je(l, s) {
|
|
479
479
|
if (!e.value.useBlurOnHover)
|
|
480
480
|
return "";
|
|
481
481
|
if (e.value.style.chart.tooltip.showAllItemsAtIndex && w.value.length === 0)
|
|
@@ -483,20 +483,20 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
|
|
|
483
483
|
if (!e.value.style.chart.tooltip.showAllItemsAtIndex || w.value.length)
|
|
484
484
|
return [null, void 0].includes(te.value) || te.value === l.id ? "" : `url(#blur_${b.value})`;
|
|
485
485
|
}
|
|
486
|
-
const
|
|
486
|
+
const be = k(() => N.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) => {
|
|
490
|
-
const u =
|
|
490
|
+
const u = L.dataset[s].series.findIndex(
|
|
491
491
|
(c) => c.name === t.name
|
|
492
492
|
);
|
|
493
493
|
return z(
|
|
494
|
-
|
|
494
|
+
L.dataset[s].series[u].values
|
|
495
495
|
).reduce((c, v) => c + v, 0);
|
|
496
496
|
}).reduce((t, u) => t + u, 0) : a.map((t) => t.value).reduce((t, u) => t + u, 0);
|
|
497
497
|
return l.series.map((t, u) => {
|
|
498
|
-
const c = z(
|
|
499
|
-
(
|
|
498
|
+
const c = z(L.dataset[s].series[u].values).reduce(
|
|
499
|
+
(F, d) => F + d,
|
|
500
500
|
0
|
|
501
501
|
), v = M.value ? c : t.value;
|
|
502
502
|
return {
|
|
@@ -510,11 +510,11 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
|
|
|
510
510
|
datasetIndex: s,
|
|
511
511
|
total: o,
|
|
512
512
|
opacity: w.value.includes(t.id) ? 0.5 : 1,
|
|
513
|
-
segregate: () =>
|
|
513
|
+
segregate: () => fe(t),
|
|
514
514
|
isSegregated: w.value.includes(t.id)
|
|
515
515
|
};
|
|
516
516
|
});
|
|
517
|
-
})),
|
|
517
|
+
})), Nt = 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,
|
|
@@ -529,8 +529,8 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
|
|
|
529
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 et(l = null) {
|
|
533
|
+
ut(() => {
|
|
534
534
|
const s = D.value.head.map((t, u) => [
|
|
535
535
|
[t.name],
|
|
536
536
|
[D.value.body[u]],
|
|
@@ -554,7 +554,7 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
|
|
|
554
554
|
e.value.table.columnNames.value,
|
|
555
555
|
e.value.table.columnNames.percentage
|
|
556
556
|
], s = D.value.head.map((t, u) => {
|
|
557
|
-
const c =
|
|
557
|
+
const c = O({
|
|
558
558
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
559
559
|
v: D.value.body[u],
|
|
560
560
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -566,7 +566,7 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
|
|
|
566
566
|
name: t.name
|
|
567
567
|
},
|
|
568
568
|
c,
|
|
569
|
-
isNaN(D.value.body[u] / t.total) ? "-" :
|
|
569
|
+
isNaN(D.value.body[u] / t.total) ? "-" : O({
|
|
570
570
|
v: D.value.body[u] / t.total * 100,
|
|
571
571
|
s: "%",
|
|
572
572
|
r: e.value.table.td.roundingPercentage
|
|
@@ -596,20 +596,20 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
|
|
|
596
596
|
config: a
|
|
597
597
|
};
|
|
598
598
|
});
|
|
599
|
-
function
|
|
600
|
-
return
|
|
599
|
+
function St() {
|
|
600
|
+
return N.value;
|
|
601
601
|
}
|
|
602
|
-
function
|
|
602
|
+
function tt() {
|
|
603
603
|
$.value.showTable = !$.value.showTable;
|
|
604
604
|
}
|
|
605
|
-
function
|
|
605
|
+
function lt() {
|
|
606
606
|
$.value.dataLabels.show = !$.value.dataLabels.show;
|
|
607
607
|
}
|
|
608
|
-
function
|
|
608
|
+
function at() {
|
|
609
609
|
$.value.showTooltip = !$.value.showTooltip;
|
|
610
610
|
}
|
|
611
611
|
const oe = h(!1);
|
|
612
|
-
function
|
|
612
|
+
function ge() {
|
|
613
613
|
oe.value = !oe.value;
|
|
614
614
|
}
|
|
615
615
|
async function It({ scale: l = 2 } = {}) {
|
|
@@ -624,45 +624,45 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
|
|
|
624
624
|
aspectRatio: o
|
|
625
625
|
};
|
|
626
626
|
}
|
|
627
|
-
const
|
|
627
|
+
const me = h(null);
|
|
628
628
|
function Vt() {
|
|
629
|
-
if (!
|
|
630
|
-
const { x: l, y: s, width: a, height: o } =
|
|
629
|
+
if (!me.value) return;
|
|
630
|
+
const { x: l, y: s, width: a, height: o } = me.value.getBBox();
|
|
631
631
|
Z.value && Z.value.setAttribute("viewBox", `${l} ${s} ${a + Math.min(0, l)} ${o + Math.min(0, s)}`);
|
|
632
632
|
}
|
|
633
|
-
return
|
|
633
|
+
return yt({
|
|
634
634
|
autoSize: Vt,
|
|
635
|
-
getData:
|
|
635
|
+
getData: St,
|
|
636
636
|
getImage: It,
|
|
637
|
-
generatePdf:
|
|
638
|
-
generateCsv:
|
|
639
|
-
generateImage:
|
|
640
|
-
toggleTable:
|
|
641
|
-
toggleLabels:
|
|
642
|
-
toggleTooltip:
|
|
643
|
-
toggleAnnotator:
|
|
644
|
-
toggleFullscreen:
|
|
637
|
+
generatePdf: Xe,
|
|
638
|
+
generateCsv: et,
|
|
639
|
+
generateImage: We,
|
|
640
|
+
toggleTable: tt,
|
|
641
|
+
toggleLabels: lt,
|
|
642
|
+
toggleTooltip: at,
|
|
643
|
+
toggleAnnotator: ge,
|
|
644
|
+
toggleFullscreen: Me
|
|
645
645
|
}), (l, s) => (n(), i("div", {
|
|
646
646
|
ref_key: "nestedDonutsChart",
|
|
647
647
|
ref: V,
|
|
648
648
|
class: R(`vue-ui-nested-donuts ${G.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
649
649
|
style: ne(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
650
650
|
id: `nested_donuts_${b.value}`,
|
|
651
|
-
onMouseenter: s[3] || (s[3] = () => r(
|
|
652
|
-
onMouseleave: s[4] || (s[4] = () => r(
|
|
651
|
+
onMouseenter: s[3] || (s[3] = () => r(Be)(!0)),
|
|
652
|
+
onMouseleave: s[4] || (s[4] = () => r(Be)(!1))
|
|
653
653
|
}, [
|
|
654
|
-
e.value.userOptions.buttons.annotator ? (n(), U(r(
|
|
654
|
+
e.value.userOptions.buttons.annotator ? (n(), U(r(wt), {
|
|
655
655
|
key: 0,
|
|
656
656
|
svgRef: r(Z),
|
|
657
657
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
658
658
|
color: e.value.style.chart.color,
|
|
659
659
|
active: oe.value,
|
|
660
|
-
onClose:
|
|
660
|
+
onClose: ge
|
|
661
661
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : m("", !0),
|
|
662
662
|
_t.value ? (n(), i("div", {
|
|
663
663
|
key: 1,
|
|
664
664
|
ref_key: "noTitle",
|
|
665
|
-
ref:
|
|
665
|
+
ref: Ve,
|
|
666
666
|
class: "vue-data-ui-no-title-space",
|
|
667
667
|
style: "height:36px; width: 100%;background:transparent"
|
|
668
668
|
}, null, 512)) : m("", !0),
|
|
@@ -672,7 +672,7 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
|
|
|
672
672
|
ref: Se
|
|
673
673
|
}, [
|
|
674
674
|
(n(), U(ul, {
|
|
675
|
-
key: `title_${
|
|
675
|
+
key: `title_${Pe.value}`,
|
|
676
676
|
config: {
|
|
677
677
|
title: {
|
|
678
678
|
cy: "donut-div-title",
|
|
@@ -685,13 +685,13 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
|
|
|
685
685
|
}
|
|
686
686
|
}, null, 8, ["config"]))
|
|
687
687
|
], 512)) : m("", !0),
|
|
688
|
-
e.value.userOptions.show && Q.value && (r(
|
|
688
|
+
e.value.userOptions.show && Q.value && (r(Ee) || r(ve)) ? (n(), U(r(Ct), {
|
|
689
689
|
ref: "details",
|
|
690
690
|
key: `user_option_${Ne.value}`,
|
|
691
691
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
692
692
|
color: e.value.style.chart.color,
|
|
693
|
-
isPrinting: r(
|
|
694
|
-
isImaging: r(
|
|
693
|
+
isPrinting: r(Ge),
|
|
694
|
+
isImaging: r(Ye),
|
|
695
695
|
uid: b.value,
|
|
696
696
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
697
697
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -709,78 +709,78 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
|
|
|
709
709
|
isAnnotation: oe.value,
|
|
710
710
|
callbacks: e.value.userOptions.callbacks,
|
|
711
711
|
printScale: e.value.userOptions.print.scale,
|
|
712
|
-
onToggleFullscreen:
|
|
713
|
-
onGeneratePdf: r(
|
|
714
|
-
onGenerateCsv:
|
|
715
|
-
onGenerateImage: r(
|
|
716
|
-
onToggleTable:
|
|
717
|
-
onToggleLabels:
|
|
718
|
-
onToggleTooltip:
|
|
719
|
-
onToggleAnnotator:
|
|
712
|
+
onToggleFullscreen: Me,
|
|
713
|
+
onGeneratePdf: r(Xe),
|
|
714
|
+
onGenerateCsv: et,
|
|
715
|
+
onGenerateImage: r(We),
|
|
716
|
+
onToggleTable: tt,
|
|
717
|
+
onToggleLabels: lt,
|
|
718
|
+
onToggleTooltip: at,
|
|
719
|
+
onToggleAnnotator: ge,
|
|
720
720
|
style: ne({
|
|
721
|
-
visibility: r(
|
|
721
|
+
visibility: r(Ee) ? r(ve) ? "visible" : "hidden" : "visible"
|
|
722
722
|
})
|
|
723
723
|
}, Et({ _: 2 }, [
|
|
724
724
|
l.$slots.menuIcon ? {
|
|
725
725
|
name: "menuIcon",
|
|
726
|
-
fn:
|
|
727
|
-
|
|
726
|
+
fn: C(({ isOpen: a, color: o }) => [
|
|
727
|
+
x(l.$slots, "menuIcon", X(W({ isOpen: a, color: o })), void 0, !0)
|
|
728
728
|
]),
|
|
729
729
|
key: "0"
|
|
730
730
|
} : void 0,
|
|
731
731
|
l.$slots.optionTooltip ? {
|
|
732
732
|
name: "optionTooltip",
|
|
733
|
-
fn:
|
|
734
|
-
|
|
733
|
+
fn: C(() => [
|
|
734
|
+
x(l.$slots, "optionTooltip", {}, void 0, !0)
|
|
735
735
|
]),
|
|
736
736
|
key: "1"
|
|
737
737
|
} : void 0,
|
|
738
738
|
l.$slots.optionPdf ? {
|
|
739
739
|
name: "optionPdf",
|
|
740
|
-
fn:
|
|
741
|
-
|
|
740
|
+
fn: C(() => [
|
|
741
|
+
x(l.$slots, "optionPdf", {}, void 0, !0)
|
|
742
742
|
]),
|
|
743
743
|
key: "2"
|
|
744
744
|
} : void 0,
|
|
745
745
|
l.$slots.optionCsv ? {
|
|
746
746
|
name: "optionCsv",
|
|
747
|
-
fn:
|
|
748
|
-
|
|
747
|
+
fn: C(() => [
|
|
748
|
+
x(l.$slots, "optionCsv", {}, void 0, !0)
|
|
749
749
|
]),
|
|
750
750
|
key: "3"
|
|
751
751
|
} : void 0,
|
|
752
752
|
l.$slots.optionImg ? {
|
|
753
753
|
name: "optionImg",
|
|
754
|
-
fn:
|
|
755
|
-
|
|
754
|
+
fn: C(() => [
|
|
755
|
+
x(l.$slots, "optionImg", {}, void 0, !0)
|
|
756
756
|
]),
|
|
757
757
|
key: "4"
|
|
758
758
|
} : void 0,
|
|
759
759
|
l.$slots.optionTable ? {
|
|
760
760
|
name: "optionTable",
|
|
761
|
-
fn:
|
|
762
|
-
|
|
761
|
+
fn: C(() => [
|
|
762
|
+
x(l.$slots, "optionTable", {}, void 0, !0)
|
|
763
763
|
]),
|
|
764
764
|
key: "5"
|
|
765
765
|
} : void 0,
|
|
766
766
|
l.$slots.optionLabels ? {
|
|
767
767
|
name: "optionLabels",
|
|
768
|
-
fn:
|
|
769
|
-
|
|
768
|
+
fn: C(() => [
|
|
769
|
+
x(l.$slots, "optionLabels", {}, void 0, !0)
|
|
770
770
|
]),
|
|
771
771
|
key: "6"
|
|
772
772
|
} : void 0,
|
|
773
773
|
l.$slots.optionFullscreen ? {
|
|
774
774
|
name: "optionFullscreen",
|
|
775
|
-
fn:
|
|
776
|
-
|
|
775
|
+
fn: C(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
776
|
+
x(l.$slots, "optionFullscreen", X(W({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
777
777
|
]),
|
|
778
778
|
key: "7"
|
|
779
779
|
} : void 0,
|
|
780
780
|
l.$slots.optionAnnotator ? {
|
|
781
781
|
name: "optionAnnotator",
|
|
782
|
-
fn:
|
|
783
|
-
|
|
782
|
+
fn: C(({ toggleAnnotator: a, isAnnotator: o }) => [
|
|
783
|
+
x(l.$slots, "optionAnnotator", X(W({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
|
|
784
784
|
]),
|
|
785
785
|
key: "8"
|
|
786
786
|
} : void 0
|
|
@@ -796,14 +796,14 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
|
|
|
796
796
|
"vue-data-ui-svg": !0
|
|
797
797
|
}),
|
|
798
798
|
viewBox: `0 0 ${f.value.width <= 0 ? 1e-3 : f.value.width} ${f.value.height < 0 ? 1e-3 : f.value.height}`,
|
|
799
|
-
style: ne(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${
|
|
799
|
+
style: ne(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${Ue.value.css}`)
|
|
800
800
|
}, [
|
|
801
|
-
|
|
801
|
+
p("g", {
|
|
802
802
|
ref_key: "G",
|
|
803
|
-
ref:
|
|
803
|
+
ref: me,
|
|
804
804
|
class: "vue-data-ui-g"
|
|
805
805
|
}, [
|
|
806
|
-
|
|
806
|
+
rt(r(mt)),
|
|
807
807
|
l.$slots["chart-background"] ? (n(), i("foreignObject", {
|
|
808
808
|
key: 0,
|
|
809
809
|
x: 0,
|
|
@@ -814,57 +814,57 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
|
|
|
814
814
|
pointerEvents: "none"
|
|
815
815
|
}
|
|
816
816
|
}, [
|
|
817
|
-
|
|
817
|
+
x(l.$slots, "chart-background", {}, void 0, !0)
|
|
818
818
|
], 8, vl)) : m("", !0),
|
|
819
|
-
|
|
820
|
-
(n(!0), i(T, null,
|
|
819
|
+
p("defs", null, [
|
|
820
|
+
(n(!0), i(T, null, A(Qe.value, (a, o) => (n(), i("radialGradient", {
|
|
821
821
|
id: `radial_${b.value}_${o}`
|
|
822
822
|
}, [
|
|
823
|
-
s[5] || (s[5] =
|
|
823
|
+
s[5] || (s[5] = p("stop", {
|
|
824
824
|
offset: "0%",
|
|
825
825
|
"stop-color": "#FFFFFF",
|
|
826
826
|
"stop-opacity": "0"
|
|
827
827
|
}, null, -1)),
|
|
828
|
-
|
|
829
|
-
offset: `${(1 - j.value /
|
|
828
|
+
p("stop", {
|
|
829
|
+
offset: `${(1 - j.value / Ke.value[o]) * 100}%`,
|
|
830
830
|
"stop-color": r(Kt)("#FFFFFF", 0),
|
|
831
831
|
"stop-opacity": "0"
|
|
832
832
|
}, null, 8, fl),
|
|
833
|
-
|
|
834
|
-
offset: `${(1 - j.value /
|
|
833
|
+
p("stop", {
|
|
834
|
+
offset: `${(1 - j.value / Ke.value[o] / 2) * 100}%`,
|
|
835
835
|
"stop-color": "#FFFFFF",
|
|
836
836
|
"stop-opacity": e.value.style.chart.gradientIntensity / 100
|
|
837
|
-
}, null, 8,
|
|
838
|
-
s[6] || (s[6] =
|
|
837
|
+
}, null, 8, yl),
|
|
838
|
+
s[6] || (s[6] = p("stop", {
|
|
839
839
|
offset: "100%",
|
|
840
840
|
"stop-color": "#FFFFFF",
|
|
841
841
|
"stop-opacity": "0"
|
|
842
842
|
}, null, -1))
|
|
843
843
|
], 8, hl))), 256))
|
|
844
844
|
]),
|
|
845
|
-
|
|
846
|
-
|
|
845
|
+
p("defs", null, [
|
|
846
|
+
p("filter", {
|
|
847
847
|
id: `blur_${b.value}`,
|
|
848
848
|
x: "-50%",
|
|
849
849
|
y: "-50%",
|
|
850
850
|
width: "200%",
|
|
851
851
|
height: "200%"
|
|
852
852
|
}, [
|
|
853
|
-
|
|
853
|
+
p("feGaussianBlur", {
|
|
854
854
|
in: "SourceGraphic",
|
|
855
855
|
stdDeviation: 2,
|
|
856
856
|
id: `blur_std_${b.value}`
|
|
857
857
|
}, null, 8, bl),
|
|
858
|
-
s[7] || (s[7] =
|
|
858
|
+
s[7] || (s[7] = p("feColorMatrix", {
|
|
859
859
|
type: "saturate",
|
|
860
860
|
values: "0"
|
|
861
861
|
}, null, -1))
|
|
862
|
-
], 8,
|
|
863
|
-
|
|
862
|
+
], 8, pl),
|
|
863
|
+
p("filter", {
|
|
864
864
|
id: `shadow_${b.value}`,
|
|
865
865
|
"color-interpolation-filters": "sRGB"
|
|
866
866
|
}, [
|
|
867
|
-
|
|
867
|
+
p("feDropShadow", {
|
|
868
868
|
dx: "0",
|
|
869
869
|
dy: "0",
|
|
870
870
|
stdDeviation: "10",
|
|
@@ -873,39 +873,39 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
|
|
|
873
873
|
}, null, 8, ml)
|
|
874
874
|
], 8, gl)
|
|
875
875
|
]),
|
|
876
|
-
(n(!0), i(T, null,
|
|
877
|
-
a.hasData ? (n(!0), i(T, { key: 0 },
|
|
878
|
-
|
|
876
|
+
(n(!0), i(T, null, A(ee.value, (a, o) => (n(), i("g", null, [
|
|
877
|
+
a.hasData ? (n(!0), i(T, { key: 0 }, A(a.donut.filter((t) => !t.ghost), (t, u) => (n(), i("g", null, [
|
|
878
|
+
p("path", {
|
|
879
879
|
class: "vue-ui-donut-arc-path",
|
|
880
880
|
d: t.arcSlice,
|
|
881
881
|
fill: t.color,
|
|
882
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
882
|
+
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
883
883
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
884
|
-
filter:
|
|
884
|
+
filter: je(t, u)
|
|
885
885
|
}, null, 8, wl)
|
|
886
|
-
]))), 256)) : (n(!0), i(T, { key: 1 },
|
|
887
|
-
|
|
886
|
+
]))), 256)) : (n(!0), i(T, { key: 1 }, A(a.skeleton, (t, u) => (n(), i("g", null, [
|
|
887
|
+
p("path", {
|
|
888
888
|
class: "vue-ui-donut-arc-path",
|
|
889
889
|
d: t.arcSlice,
|
|
890
890
|
fill: t.color,
|
|
891
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
891
|
+
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
892
892
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
893
893
|
}, null, 8, $l)
|
|
894
894
|
]))), 256))
|
|
895
895
|
]))), 256)),
|
|
896
896
|
e.value.style.chart.useGradient ? (n(), i("g", kl, [
|
|
897
|
-
(n(!0), i(T, null,
|
|
898
|
-
|
|
897
|
+
(n(!0), i(T, null, A(Qe.value, (a, o) => (n(), i("g", null, [
|
|
898
|
+
p("path", {
|
|
899
899
|
d: a.donut.arcSlice,
|
|
900
900
|
fill: `url(#radial_${b.value}_${o})`,
|
|
901
901
|
stroke: "transparent",
|
|
902
902
|
"stroke-width": "0"
|
|
903
|
-
}, null, 8,
|
|
903
|
+
}, null, 8, Cl)
|
|
904
904
|
]))), 256))
|
|
905
905
|
])) : m("", !0),
|
|
906
|
-
e.value.style.chart.layout.labels.dataLabels.showDonutName ? (n(), i("g",
|
|
907
|
-
(n(!0), i(T, null,
|
|
908
|
-
(n(!0), i(T, null,
|
|
906
|
+
e.value.style.chart.layout.labels.dataLabels.showDonutName ? (n(), i("g", xl, [
|
|
907
|
+
(n(!0), i(T, null, A(ee.value, (a, o) => (n(), i("g", null, [
|
|
908
|
+
(n(!0), i(T, null, A(a.donut, (t, u) => (n(), i("g", null, [
|
|
909
909
|
u === 0 && f.value.width && f.value.height ? (n(), i("text", {
|
|
910
910
|
key: 0,
|
|
911
911
|
class: R({ animated: e.value.useCssAnimation }),
|
|
@@ -915,19 +915,19 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
|
|
|
915
915
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
916
916
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
|
|
917
917
|
fill: e.value.style.chart.layout.labels.dataLabels.color
|
|
918
|
-
},
|
|
918
|
+
}, S(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? r(Qt)({
|
|
919
919
|
source: a.name,
|
|
920
920
|
length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
|
|
921
|
-
}) : a.name), 11,
|
|
921
|
+
}) : a.name), 11, Ll)) : m("", !0)
|
|
922
922
|
]))), 256))
|
|
923
923
|
]))), 256))
|
|
924
924
|
])) : m("", !0),
|
|
925
925
|
e.value.style.chart.layout.labels.dataLabels.show ? (n(), i("g", _l, [
|
|
926
|
-
(n(!0), i(T, null,
|
|
927
|
-
(n(!0), i(T, null,
|
|
928
|
-
filter:
|
|
926
|
+
(n(!0), i(T, null, A(ee.value, (a, o) => (n(), i("g", null, [
|
|
927
|
+
(n(!0), i(T, null, A(a.donut.filter((t) => !t.ghost), (t, u) => (n(), i("g", {
|
|
928
|
+
filter: je(t, u)
|
|
929
929
|
}, [
|
|
930
|
-
|
|
930
|
+
it(p("text", {
|
|
931
931
|
class: R({ animated: e.value.useCssAnimation }),
|
|
932
932
|
opacity: pe(t) ? 1 : 0,
|
|
933
933
|
"text-anchor": r(H)(t, !0).anchor,
|
|
@@ -944,17 +944,17 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
|
|
|
944
944
|
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
945
945
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
946
946
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldPercentage ? "bold" : "normal"
|
|
947
|
-
},
|
|
947
|
+
}, S(r(O)({
|
|
948
948
|
v: t.proportion * 100,
|
|
949
949
|
s: "%",
|
|
950
950
|
r: e.value.style.chart.layout.labels.dataLabels.roundingPercentage
|
|
951
|
-
})), 11,
|
|
951
|
+
})), 11, Al), [
|
|
952
952
|
[
|
|
953
|
-
|
|
953
|
+
dt,
|
|
954
954
|
$.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage
|
|
955
955
|
]
|
|
956
956
|
]),
|
|
957
|
-
|
|
957
|
+
it(p("text", {
|
|
958
958
|
class: R({ animated: e.value.useCssAnimation }),
|
|
959
959
|
opacity: pe(t) ? 1 : 0,
|
|
960
960
|
"text-anchor": r(H)(t, !0).anchor,
|
|
@@ -971,19 +971,19 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
|
|
|
971
971
|
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
972
972
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
973
973
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
|
|
974
|
-
}, " (" +
|
|
974
|
+
}, " (" + S(r(K)(
|
|
975
975
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
976
976
|
t.value,
|
|
977
|
-
r(
|
|
977
|
+
r(O)({
|
|
978
978
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
979
979
|
v: t.value,
|
|
980
980
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
981
981
|
r: e.value.style.chart.layout.labels.dataLabels.roundingValue
|
|
982
982
|
}),
|
|
983
983
|
{ datapoint: t, seriesIndex: o, datapointIndex: u }
|
|
984
|
-
)) + ") ", 11,
|
|
984
|
+
)) + ") ", 11, Ol), [
|
|
985
985
|
[
|
|
986
|
-
|
|
986
|
+
dt,
|
|
987
987
|
$.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue
|
|
988
988
|
]
|
|
989
989
|
]),
|
|
@@ -1004,43 +1004,43 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
|
|
|
1004
1004
|
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
1005
1005
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1006
1006
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
|
|
1007
|
-
},
|
|
1007
|
+
}, S(r(K)(
|
|
1008
1008
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
1009
1009
|
t.value,
|
|
1010
|
-
r(
|
|
1010
|
+
r(O)({
|
|
1011
1011
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1012
1012
|
v: t.value,
|
|
1013
1013
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
1014
1014
|
r: e.value.style.chart.layout.labels.dataLabels.roundingValue
|
|
1015
1015
|
}),
|
|
1016
1016
|
{ datapoint: t, seriesIndex: o, datapointIndex: u }
|
|
1017
|
-
)), 11,
|
|
1017
|
+
)), 11, Fl)) : m("", !0)
|
|
1018
1018
|
], 8, Tl))), 256))
|
|
1019
1019
|
]))), 256))
|
|
1020
1020
|
])) : m("", !0),
|
|
1021
|
-
(n(!0), i(T, null,
|
|
1022
|
-
(n(!0), i(T, null,
|
|
1023
|
-
|
|
1021
|
+
(n(!0), i(T, null, A(ee.value, (a, o) => (n(), i("g", null, [
|
|
1022
|
+
(n(!0), i(T, null, A(a.donut, (t, u) => (n(), i("g", null, [
|
|
1023
|
+
p("path", {
|
|
1024
1024
|
d: t.arcSlice,
|
|
1025
|
-
fill:
|
|
1026
|
-
onMouseenter: (c) =>
|
|
1025
|
+
fill: de.value === t.id ? e.value.style.chart.layout.donut.selectedColor : "transparent",
|
|
1026
|
+
onMouseenter: (c) => Ft({
|
|
1027
1027
|
datapoint: t,
|
|
1028
1028
|
seriesIndex: t.seriesIndex
|
|
1029
1029
|
}),
|
|
1030
|
-
onClick: (c) =>
|
|
1030
|
+
onClick: (c) => At({ datapoint: t, index: u }),
|
|
1031
1031
|
onMouseleave: s[0] || (s[0] = (c) => {
|
|
1032
|
-
re.value = !1,
|
|
1032
|
+
re.value = !1, Ze.value = null, te.value = null, le.value = null, de.value = null;
|
|
1033
1033
|
})
|
|
1034
|
-
}, null, 40,
|
|
1034
|
+
}, null, 40, Nl)
|
|
1035
1035
|
]))), 256))
|
|
1036
1036
|
]))), 256)),
|
|
1037
|
-
|
|
1037
|
+
x(l.$slots, "svg", { svg: f.value }, void 0, !0)
|
|
1038
1038
|
], 512)
|
|
1039
1039
|
], 14, cl)) : m("", !0),
|
|
1040
|
-
l.$slots.watermark ? (n(), i("div",
|
|
1041
|
-
|
|
1040
|
+
l.$slots.watermark ? (n(), i("div", Sl, [
|
|
1041
|
+
x(l.$slots, "watermark", X(W({ isPrinting: r(Ge) || r(Ye) })), void 0, !0)
|
|
1042
1042
|
])) : m("", !0),
|
|
1043
|
-
Q.value ? m("", !0) : (n(), U(r(
|
|
1043
|
+
Q.value ? m("", !0) : (n(), U(r($t), {
|
|
1044
1044
|
key: 6,
|
|
1045
1045
|
config: {
|
|
1046
1046
|
type: "donut",
|
|
@@ -1052,7 +1052,7 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
|
|
|
1052
1052
|
}
|
|
1053
1053
|
}
|
|
1054
1054
|
}, null, 8, ["config"])),
|
|
1055
|
-
|
|
1055
|
+
rt(r(kt), {
|
|
1056
1056
|
show: $.value.showTooltip && re.value,
|
|
1057
1057
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1058
1058
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -1066,46 +1066,46 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
|
|
|
1066
1066
|
parent: V.value,
|
|
1067
1067
|
content: ie.value,
|
|
1068
1068
|
isFullscreen: G.value,
|
|
1069
|
-
isCustom: r(
|
|
1069
|
+
isCustom: r(ct)(e.value.style.chart.tooltip.customFormat)
|
|
1070
1070
|
}, {
|
|
1071
|
-
"tooltip-before":
|
|
1072
|
-
|
|
1071
|
+
"tooltip-before": C(() => [
|
|
1072
|
+
x(l.$slots, "tooltip-before", X(W({ ...ye.value })), void 0, !0)
|
|
1073
1073
|
]),
|
|
1074
|
-
"tooltip-after":
|
|
1075
|
-
|
|
1074
|
+
"tooltip-after": C(() => [
|
|
1075
|
+
x(l.$slots, "tooltip-after", X(W({ ...ye.value })), void 0, !0)
|
|
1076
1076
|
]),
|
|
1077
1077
|
_: 3
|
|
1078
1078
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
1079
1079
|
e.value.style.chart.legend.show ? (n(), i("div", {
|
|
1080
1080
|
key: 7,
|
|
1081
1081
|
ref_key: "chartLegend",
|
|
1082
|
-
ref:
|
|
1083
|
-
class: R({ "vue-ui-nested-donuts-legend":
|
|
1082
|
+
ref: ce,
|
|
1083
|
+
class: R({ "vue-ui-nested-donuts-legend": be.value.length > 1 })
|
|
1084
1084
|
}, [
|
|
1085
|
-
(n(!0), i(T, null,
|
|
1086
|
-
key: `legend_${o}_${
|
|
1085
|
+
(n(!0), i(T, null, A(be.value, (a, o) => (n(), U(nl, {
|
|
1086
|
+
key: `legend_${o}_${ze.value}`,
|
|
1087
1087
|
legendSet: a,
|
|
1088
|
-
config:
|
|
1089
|
-
onClickMarker: s[1] || (s[1] = ({ legend: t }) =>
|
|
1088
|
+
config: Nt.value,
|
|
1089
|
+
onClickMarker: s[1] || (s[1] = ({ legend: t }) => fe(t))
|
|
1090
1090
|
}, {
|
|
1091
|
-
legendTitle:
|
|
1092
|
-
t[0] && t[0].arcOf ? (n(), i("div", Il,
|
|
1091
|
+
legendTitle: C(({ titleSet: t }) => [
|
|
1092
|
+
t[0] && t[0].arcOf ? (n(), i("div", Il, S(t[0].arcOf), 1)) : m("", !0)
|
|
1093
1093
|
]),
|
|
1094
|
-
item:
|
|
1095
|
-
|
|
1096
|
-
onClick: (c) =>
|
|
1094
|
+
item: C(({ legend: t, index: u }) => [
|
|
1095
|
+
p("div", {
|
|
1096
|
+
onClick: (c) => fe(t),
|
|
1097
1097
|
style: ne(`opacity:${w.value.includes(t.id) ? 0.5 : 1}`)
|
|
1098
|
-
},
|
|
1098
|
+
}, S(t.name) + S(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + S(e.value.style.chart.legend.showValue ? r(K)(
|
|
1099
1099
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
1100
1100
|
t.value,
|
|
1101
|
-
r(
|
|
1101
|
+
r(O)({
|
|
1102
1102
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1103
1103
|
v: t.value,
|
|
1104
1104
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
1105
1105
|
r: e.value.style.chart.legend.roundingValue
|
|
1106
1106
|
}),
|
|
1107
1107
|
{ datapoint: t, seriesIndex: u }
|
|
1108
|
-
) : "") + " " +
|
|
1108
|
+
) : "") + " " + S(e.value.style.chart.legend.showPercentage ? w.value.includes(t.id) ? `${e.value.style.chart.legend.showValue ? "(" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(t.value / t.total) ? "-" : r(O)({
|
|
1109
1109
|
v: t.value / t.total * 100,
|
|
1110
1110
|
s: "%",
|
|
1111
1111
|
r: e.value.style.chart.legend.roundingPercentage
|
|
@@ -1117,19 +1117,19 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
|
|
|
1117
1117
|
e.value.style.chart.legend.show ? m("", !0) : (n(), i("div", {
|
|
1118
1118
|
key: 8,
|
|
1119
1119
|
ref_key: "chartLegend",
|
|
1120
|
-
ref:
|
|
1120
|
+
ref: ce
|
|
1121
1121
|
}, [
|
|
1122
|
-
|
|
1122
|
+
x(l.$slots, "legend", { legend: be.value }, void 0, !0)
|
|
1123
1123
|
], 512)),
|
|
1124
1124
|
l.$slots.source ? (n(), i("div", {
|
|
1125
1125
|
key: 9,
|
|
1126
1126
|
ref_key: "source",
|
|
1127
|
-
ref:
|
|
1127
|
+
ref: Ie,
|
|
1128
1128
|
dir: "auto"
|
|
1129
1129
|
}, [
|
|
1130
|
-
|
|
1130
|
+
x(l.$slots, "source", {}, void 0, !0)
|
|
1131
1131
|
], 512)) : m("", !0),
|
|
1132
|
-
Q.value ? (n(), U(r(
|
|
1132
|
+
Q.value ? (n(), U(r(bt), {
|
|
1133
1133
|
key: 10,
|
|
1134
1134
|
hideDetails: "",
|
|
1135
1135
|
config: {
|
|
@@ -1145,9 +1145,9 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
|
|
|
1145
1145
|
}
|
|
1146
1146
|
}
|
|
1147
1147
|
}, {
|
|
1148
|
-
content:
|
|
1149
|
-
(n(), U(r(
|
|
1150
|
-
key: `table_${
|
|
1148
|
+
content: C(() => [
|
|
1149
|
+
(n(), U(r(gt), {
|
|
1150
|
+
key: `table_${De.value}`,
|
|
1151
1151
|
colNames: ae.value.colNames,
|
|
1152
1152
|
head: ae.value.head,
|
|
1153
1153
|
body: ae.value.body,
|
|
@@ -1155,14 +1155,14 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
|
|
|
1155
1155
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1156
1156
|
onClose: s[2] || (s[2] = (a) => $.value.showTable = !1)
|
|
1157
1157
|
}, {
|
|
1158
|
-
th:
|
|
1159
|
-
|
|
1158
|
+
th: C(({ th: a }) => [
|
|
1159
|
+
p("div", {
|
|
1160
1160
|
innerHTML: a,
|
|
1161
1161
|
style: { display: "flex", "align-items": "center" }
|
|
1162
1162
|
}, null, 8, Pl)
|
|
1163
1163
|
]),
|
|
1164
|
-
td:
|
|
1165
|
-
Rt(
|
|
1164
|
+
td: C(({ td: a }) => [
|
|
1165
|
+
Rt(S(a.name || a), 1)
|
|
1166
1166
|
]),
|
|
1167
1167
|
_: 1
|
|
1168
1168
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
@@ -1171,7 +1171,7 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
|
|
|
1171
1171
|
}, 8, ["config"])) : m("", !0)
|
|
1172
1172
|
], 46, dl));
|
|
1173
1173
|
}
|
|
1174
|
-
}, Hl = /* @__PURE__ */ il(Dl, [["__scopeId", "data-v-
|
|
1174
|
+
}, Hl = /* @__PURE__ */ il(Dl, [["__scopeId", "data-v-89767698"]]);
|
|
1175
1175
|
export {
|
|
1176
1176
|
Hl as default
|
|
1177
1177
|
};
|