vue-data-ui 2.16.6 → 2.17.1
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 +84 -53
- package/dist/{Arrow-DCqxVwey.js → Arrow-BDCVJzQB.js} +1 -1
- package/dist/{BaseDraggableDialog-6DIKXIBU.js → BaseDraggableDialog-BvuWrldK.js} +2 -2
- package/dist/{BaseIcon-Bn996RXm.js → BaseIcon-D9Tz8ARD.js} +1 -1
- package/dist/{ColorPicker-OFfLkKNb.js → ColorPicker-wGf46G2G.js} +2 -2
- package/dist/{DataTable-CHBLjKtZ.js → DataTable-Dt-TIOyY.js} +2 -2
- package/dist/{Legend-nBXoxXJH.js → Legend-3LNqqLDg.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Cls2idJS.js → NonSvgPenAndPaper-iDdMuUEo.js} +3 -3
- package/dist/{PackageVersion-Bg_9KCU-.js → PackageVersion-C-4Ee8BQ.js} +1 -1
- package/dist/{PenAndPaper-BPTpbnay.js → PenAndPaper-Cde-wJ3N.js} +32 -32
- package/dist/{Shape-Bnf512BA.js → Shape-C75836Jl.js} +1 -1
- package/dist/{Slicer-BrqtJG2E.js → Slicer-CpSu7plp.js} +2 -2
- package/dist/{SparkTooltip-C-rLATAw.js → SparkTooltip-B_GXa2tb.js} +1 -1
- package/dist/{Title-Gi81VwUM.js → Title-DpERl1yr.js} +1 -1
- package/dist/{Tooltip-CJxVw7-T.js → Tooltip-DA0bYKFG.js} +1 -1
- package/dist/{UserOptions-CBEK6_jo.js → UserOptions-DTEJ3UM_.js} +2 -2
- package/dist/{dom-to-png-CRHNL8VU.js → dom-to-png-DWDGYXFL.js} +1 -1
- package/dist/{img-BgOg8opa.js → img-utitT2Gd.js} +1 -1
- package/dist/{index-DvIXJm6t.js → index-CobsZUkv.js} +22 -8
- package/dist/{pdf-DhTxBrbJ.js → pdf-DWZ8IB56.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +999 -160
- package/dist/types/vue-data-ui.d.ts +999 -160
- package/dist/{useNestedProp-DrYHm61t.js → useNestedProp-BwL5wmVa.js} +1 -1
- package/dist/{usePrinter-CWnXbGMb.js → usePrinter-DPh6U_Qk.js} +2 -2
- package/dist/vue-data-ui-D7ZgRDQ_.js +312 -0
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-CtlB4p7i.js → vue-ui-3d-bar-ORUAjkg7.js} +246 -231
- package/dist/{vue-ui-accordion-D55kCO5G.js → vue-ui-accordion-UewqY6OI.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DSshyUn-.js → vue-ui-age-pyramid-Yl4aRpNc.js} +225 -210
- package/dist/{vue-ui-annotator-DQSMv_k2.js → vue-ui-annotator-B1gqiBqq.js} +2 -2
- package/dist/{vue-ui-bullet-FeScjj7q.js → vue-ui-bullet-C307lCPt.js} +168 -153
- package/dist/{vue-ui-candlestick-Drupgyoi.js → vue-ui-candlestick-BE6PcEdh.js} +218 -203
- package/dist/{vue-ui-carousel-table-BTZQRZfO.js → vue-ui-carousel-table-Cpvjr677.js} +4 -4
- package/dist/{vue-ui-chestnut-DLWjPwRL.js → vue-ui-chestnut-CUw74AgC.js} +412 -397
- package/dist/{vue-ui-chord-BgLbFBT9.js → vue-ui-chord-CCPGeAiY.js} +202 -187
- package/dist/{vue-ui-circle-pack-VXcRh2gy.js → vue-ui-circle-pack-dfyPiQmy.js} +222 -207
- package/dist/{vue-ui-cursor-DWmfnM25.js → vue-ui-cursor-C2zmfeoD.js} +2 -2
- package/dist/{vue-ui-dashboard-CGIocEHj.js → vue-ui-dashboard-CotAqRbX.js} +62 -62
- package/dist/{vue-ui-digits-BgQch3Fc.js → vue-ui-digits-7qJFCuoI.js} +2 -2
- package/dist/{vue-ui-donut-B59bCV5_.js → vue-ui-donut-D41WeqQU.js} +420 -411
- package/dist/{vue-ui-donut-evolution-CI8qBIQd.js → vue-ui-donut-evolution-Deg0dsYg.js} +352 -340
- package/dist/{vue-ui-dumbbell-CXv7sk88.js → vue-ui-dumbbell-DDwNoTPG.js} +214 -199
- package/dist/{vue-ui-flow-DxF0ELtv.js → vue-ui-flow-6oR7IMyi.js} +215 -200
- package/dist/{vue-ui-funnel-Bco8rqF8.js → vue-ui-funnel-BnXtOJmh.js} +212 -197
- package/dist/{vue-ui-galaxy-CaPJwwOj.js → vue-ui-galaxy-75XC8SpV.js} +213 -201
- package/dist/{vue-ui-gauge-D7arhDmb.js → vue-ui-gauge-w31j915C.js} +218 -203
- package/dist/{vue-ui-gizmo-Dwli-Mip.js → vue-ui-gizmo-bZqk6oZS.js} +3 -3
- package/dist/{vue-ui-heatmap-Cyn-ahGO.js → vue-ui-heatmap-BfU62tMW.js} +242 -223
- package/dist/{vue-ui-history-plot-C2AEToqx.js → vue-ui-history-plot-CFfco-Yj.js} +267 -252
- package/dist/{vue-ui-kpi-DKDibSdl.js → vue-ui-kpi-DaJ1U3wf.js} +3 -3
- package/dist/{vue-ui-mini-loader-B8OVutUx.js → vue-ui-mini-loader-CF_2jAI8.js} +2 -2
- package/dist/{vue-ui-molecule-BVSrqIGw.js → vue-ui-molecule-Tdk3Gd8M.js} +207 -192
- package/dist/{vue-ui-mood-radar-DvlyS3RN.js → vue-ui-mood-radar-Dg5wS7W5.js} +204 -189
- package/dist/{vue-ui-nested-donuts-D9ssSus6.js → vue-ui-nested-donuts-CpRe0sQB.js} +248 -240
- package/dist/{vue-ui-onion-Buu4VX3u.js → vue-ui-onion-B8o4ft2v.js} +184 -169
- package/dist/{vue-ui-parallel-coordinate-plot-DFLUvhxD.js → vue-ui-parallel-coordinate-plot-zW-CNqWC.js} +192 -177
- package/dist/{vue-ui-quadrant-BMC7NBGd.js → vue-ui-quadrant-DiRtZ16w.js} +259 -244
- package/dist/{vue-ui-quick-chart-DB9RKUkb.js → vue-ui-quick-chart-BRlYC_yT.js} +324 -309
- package/dist/{vue-ui-radar-68NMPxxQ.js → vue-ui-radar-DKgX1Ibx.js} +195 -180
- package/dist/{vue-ui-rating-swH9kRr3.js → vue-ui-rating-DlklKr-X.js} +2 -2
- package/dist/{vue-ui-relation-circle-CT-EdSjO.js → vue-ui-relation-circle-MHiAp8dC.js} +186 -171
- package/dist/{vue-ui-ridgeline-DftROPaX.js → vue-ui-ridgeline-DA8verAe.js} +227 -212
- package/dist/{vue-ui-rings-M-9dPI5D.js → vue-ui-rings-Dh6lFqun.js} +214 -202
- package/dist/{vue-ui-scatter-CsGhaFJh.js → vue-ui-scatter-CLC5sTOi.js} +270 -256
- package/dist/{vue-ui-skeleton-BAOt2neL.js → vue-ui-skeleton-8s4xts8z.js} +3 -3
- package/dist/{vue-ui-smiley-7_kIgPg-.js → vue-ui-smiley-utuzw8uI.js} +2 -2
- package/dist/{vue-ui-spark-trend-DHlQQpwz.js → vue-ui-spark-trend-BODEqGRr.js} +3 -3
- package/dist/{vue-ui-sparkbar-BnHhzuKf.js → vue-ui-sparkbar-B8MB-kn9.js} +3 -3
- package/dist/{vue-ui-sparkgauge-WtfkCK8g.js → vue-ui-sparkgauge-CuD7kTS3.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-B2u4XLVd.js → vue-ui-sparkhistogram-BYJszvna.js} +4 -4
- package/dist/{vue-ui-sparkline-DKIyUlSm.js → vue-ui-sparkline-D77GyWzG.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BLGz2qIb.js → vue-ui-sparkstackbar-DNb1yD64.js} +3 -3
- package/dist/{vue-ui-stackbar-BDpMsTYe.js → vue-ui-stackbar-C6rjCYDD.js} +251 -236
- package/dist/{vue-ui-strip-plot-5qDcYPnR.js → vue-ui-strip-plot-B6cYojHQ.js} +239 -224
- package/dist/{vue-ui-table-Bg5HIQ3O.js → vue-ui-table-IC7SmWVd.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DmjNy1q1.js → vue-ui-table-heatmap-DHFpJMpA.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CnkJkBk5.js → vue-ui-table-sparkline-D7wz-sCj.js} +4 -4
- package/dist/{vue-ui-thermometer-RlD-9mJf.js → vue-ui-thermometer-D-oiVT3n.js} +168 -153
- package/dist/{vue-ui-timer-Bes74INL.js → vue-ui-timer-C9jVyX5l.js} +5 -5
- package/dist/vue-ui-tiremarks-B1bM9Aoo.js +358 -0
- package/dist/{vue-ui-treemap-BG1Omm38.js → vue-ui-treemap-DX48YlU5.js} +374 -362
- package/dist/{vue-ui-vertical-bar-CwqQyZFX.js → vue-ui-vertical-bar-6SjKPQWR.js} +252 -237
- package/dist/{vue-ui-waffle-Ce3T4BPp.js → vue-ui-waffle-CYao9MMw.js} +232 -220
- package/dist/vue-ui-wheel-USuDhMwW.js +352 -0
- package/dist/vue-ui-word-cloud-TOBTs7yF.js +659 -0
- package/dist/{vue-ui-world-B9PxVO4n.js → vue-ui-world-C2qikqBa.js} +237 -222
- package/dist/{vue-ui-xy-DtJ7qJib.js → vue-ui-xy-DxwgKoO-.js} +557 -544
- package/dist/{vue-ui-xy-canvas-S6YpFgzs.js → vue-ui-xy-canvas-N69OpVn8.js} +395 -380
- package/package.json +1 -1
- package/dist/vue-data-ui-B8EWlMIK.js +0 -301
- package/dist/vue-ui-tiremarks-DiLS3akQ.js +0 -343
- package/dist/vue-ui-wheel-6B0WTkf2.js +0 -337
- package/dist/vue-ui-word-cloud-ByYZCOh7.js +0 -644
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as ct } from "./useNestedProp-
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
|
|
1
|
+
import { defineAsyncComponent as R, computed as k, ref as h, watch as lt, onMounted as at, nextTick as ot, shallowRef as st, onBeforeUnmount as zt, createElementBlock as i, openBlock as n, unref as r, normalizeStyle as ue, normalizeClass as U, createBlock as B, createCommentVNode as m, createVNode as ut, createSlots as Mt, withCtx as L, renderSlot as x, normalizeProps as X, guardReactiveProps as W, createElementVNode as g, Fragment as T, renderList as O, toDisplayString as A, withDirectives as nt, vShow as rt, createTextVNode as Et } from "vue";
|
|
2
|
+
import { u as Rt, c as Ut, t as Bt, p as xe, a as Gt, G as z, o as Yt, e as q, b as Xt, d as Wt, m as Ce, f as F, X as qt, s as Ht, L as Jt, k as _e, n as H, i as K, x as it, q as Kt, r as Qt, y as Zt, v as Te, T as dt } from "./index-CobsZUkv.js";
|
|
3
|
+
import { t as jt, u as el } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as ct } from "./useNestedProp-BwL5wmVa.js";
|
|
5
|
+
import { u as tl } from "./usePrinter-DPh6U_Qk.js";
|
|
6
|
+
import { u as ll } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as al } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import ol from "./Title-DpERl1yr.js";
|
|
9
|
+
import sl from "./Legend-3LNqqLDg.js";
|
|
10
|
+
import ul from "./img-utitT2Gd.js";
|
|
11
|
+
import { _ as nl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
+
const rl = ["id"], il = ["xmlns", "viewBox"], dl = ["width", "height"], cl = ["id"], vl = ["offset", "stop-color"], hl = ["offset", "stop-opacity"], fl = ["id"], pl = ["id"], yl = ["id"], bl = ["flood-color"], gl = ["d", "fill", "stroke", "stroke-width", "filter"], ml = ["d", "fill", "stroke", "stroke-width"], wl = { key: 1 }, $l = ["d", "fill"], kl = { key: 2 }, Ll = ["x", "y", "font-size", "font-weight", "fill"], xl = { key: 3 }, Cl = ["filter"], _l = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], Tl = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], Ol = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], Fl = ["d", "fill", "onMouseenter", "onClick"], Nl = {
|
|
12
13
|
key: 5,
|
|
13
14
|
class: "vue-data-ui-watermark"
|
|
14
|
-
},
|
|
15
|
+
}, Sl = {
|
|
15
16
|
key: 0,
|
|
16
17
|
class: "vue-ui-nested-donuts-legend-title"
|
|
17
|
-
},
|
|
18
|
+
}, Al = ["onClick"], Il = ["innerHTML"], Vl = {
|
|
18
19
|
__name: "vue-ui-nested-donuts",
|
|
19
20
|
props: {
|
|
20
21
|
config: {
|
|
@@ -32,37 +33,37 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
32
33
|
},
|
|
33
34
|
emits: ["selectLegend", "selectDatapoint"],
|
|
34
35
|
setup(vt, { expose: ht, emit: ft }) {
|
|
35
|
-
const pt =
|
|
36
|
-
function
|
|
37
|
-
|
|
36
|
+
const pt = R(() => import("./vue-ui-accordion-UewqY6OI.js")), yt = R(() => import("./DataTable-Dt-TIOyY.js")), bt = R(() => import("./PackageVersion-C-4Ee8BQ.js")), gt = R(() => import("./PenAndPaper-Cde-wJ3N.js")), mt = R(() => import("./vue-ui-skeleton-8s4xts8z.js")), wt = R(() => import("./Tooltip-DA0bYKFG.js")), $t = R(() => import("./UserOptions-DTEJ3UM_.js")), { vue_ui_nested_donuts: kt } = Rt(), C = vt, Q = k(() => !!C.dataset && C.dataset.length), y = h(Ut()), ne = h(!1), re = h(""), Lt = h(null), Oe = h(0), V = h(null), Fe = h(null), ie = h(null), Ne = h(null), Se = h(null), Ae = h(0), Ie = h(0), Ve = h(0), M = h(!0), E = h([]), J = h([]), G = h(!1);
|
|
37
|
+
function Pe(l) {
|
|
38
|
+
G.value = l, Oe.value += 1;
|
|
38
39
|
}
|
|
39
|
-
const e =
|
|
40
|
+
const e = k({
|
|
40
41
|
get: () => Ee(),
|
|
41
42
|
set: (l) => l
|
|
42
|
-
}), { userOptionsVisible:
|
|
43
|
+
}), { userOptionsVisible: de, setUserOptionsVisibility: De, keepUserOptionState: ze } = ll({ config: e.value }), { svgRef: Me } = al({
|
|
43
44
|
config: e.value.style.chart.title
|
|
44
45
|
});
|
|
45
46
|
function Ee() {
|
|
46
47
|
const l = ct({
|
|
47
48
|
userConfig: C.config,
|
|
48
|
-
defaultConfig:
|
|
49
|
+
defaultConfig: kt
|
|
49
50
|
});
|
|
50
51
|
return l.theme ? {
|
|
51
52
|
...ct({
|
|
52
|
-
userConfig:
|
|
53
|
+
userConfig: Gt.vue_ui_nested_donuts[l.theme] || C.config,
|
|
53
54
|
defaultConfig: l
|
|
54
55
|
}),
|
|
55
|
-
customPalette:
|
|
56
|
+
customPalette: Bt[l.theme] || xe
|
|
56
57
|
} : l;
|
|
57
58
|
}
|
|
58
59
|
lt(
|
|
59
60
|
() => C.config,
|
|
60
61
|
(l) => {
|
|
61
|
-
e.value = Ee(),
|
|
62
|
+
e.value = Ee(), de.value = !e.value.userOptions.showOnChartHover, ce(), Ae.value += 1, Ie.value += 1, Ve.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;
|
|
62
63
|
},
|
|
63
64
|
{ deep: !0 }
|
|
64
65
|
);
|
|
65
|
-
const
|
|
66
|
+
const Re = k(() => {
|
|
66
67
|
const { top: l, right: s, bottom: a, left: o } = e.value.style.chart.padding;
|
|
67
68
|
return {
|
|
68
69
|
css: `padding:${l}px ${s}px ${a}px ${o}px`,
|
|
@@ -72,37 +73,37 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
72
73
|
left: o
|
|
73
74
|
};
|
|
74
75
|
});
|
|
75
|
-
function
|
|
76
|
+
function xt(l, s = 1e3, a = 50) {
|
|
76
77
|
return new Promise((o) => {
|
|
77
78
|
const t = l.length;
|
|
78
|
-
|
|
79
|
+
E.value = Array(t).fill(0), J.value = [];
|
|
79
80
|
let u = 0;
|
|
80
81
|
l.forEach((c, v) => {
|
|
81
82
|
setTimeout(() => {
|
|
82
83
|
const N = performance.now();
|
|
83
84
|
function d(p) {
|
|
84
|
-
const _ = Math.min((p - N) / s, 1),
|
|
85
|
-
|
|
85
|
+
const _ = Math.min((p - N) / s, 1), be = dt(_), ge = c * be;
|
|
86
|
+
E.value[v] = ge, E.value = [...E.value];
|
|
86
87
|
const oe = [];
|
|
87
|
-
let
|
|
88
|
-
C.dataset.forEach((se,
|
|
89
|
-
const It =
|
|
90
|
-
(
|
|
88
|
+
let me = 0;
|
|
89
|
+
C.dataset.forEach((se, we) => {
|
|
90
|
+
const It = Te(se.series.reduce(
|
|
91
|
+
(ke, Le) => ke + Te(z(Le.values).reduce((Pt, Dt) => Pt + Dt, 0)),
|
|
91
92
|
0
|
|
92
|
-
)), Vt =
|
|
93
|
+
)), Vt = Te(E.value.slice(me, me + se.series.length).reduce((ke, Le) => ke + Le, 0)), $e = It - Vt;
|
|
93
94
|
$e > Number.MIN_VALUE && oe.push({
|
|
94
95
|
name: "__ghost__",
|
|
95
96
|
arcOf: se.name,
|
|
96
|
-
arcOfId: `${y.value}_${
|
|
97
|
-
id: `ghost_${y.value}_${
|
|
97
|
+
arcOfId: `${y.value}_${we}`,
|
|
98
|
+
id: `ghost_${y.value}_${we}`,
|
|
98
99
|
seriesIndex: -1,
|
|
99
|
-
datasetIndex:
|
|
100
|
+
datasetIndex: we,
|
|
100
101
|
color: "transparent",
|
|
101
102
|
value: $e,
|
|
102
103
|
fullValue: $e,
|
|
103
104
|
absoluteValues: [],
|
|
104
105
|
ghost: !0
|
|
105
|
-
}),
|
|
106
|
+
}), me += se.series.length;
|
|
106
107
|
}), J.value = oe, _ < 1 ? requestAnimationFrame(d) : (u += 1, u === t && o());
|
|
107
108
|
}
|
|
108
109
|
requestAnimationFrame(d);
|
|
@@ -111,13 +112,13 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
111
112
|
});
|
|
112
113
|
}
|
|
113
114
|
at(async () => {
|
|
114
|
-
if (
|
|
115
|
+
if (ce(), e.value.startAnimation?.show) {
|
|
115
116
|
const s = C.dataset.flatMap((a) => a.series).map(
|
|
116
|
-
(a) =>
|
|
117
|
+
(a) => z(a.values).reduce((o, t) => o + t, 0)
|
|
117
118
|
);
|
|
118
|
-
|
|
119
|
+
E.value = s.map(() => 0), M.value = !0, J.value = C.dataset.map((a, o) => {
|
|
119
120
|
const t = a.series.reduce(
|
|
120
|
-
(u, c) => u +
|
|
121
|
+
(u, c) => u + z(c.values).reduce((v, N) => v + N, 0),
|
|
121
122
|
0
|
|
122
123
|
);
|
|
123
124
|
return {
|
|
@@ -133,49 +134,49 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
133
134
|
absoluteValues: [],
|
|
134
135
|
ghost: !0
|
|
135
136
|
};
|
|
136
|
-
}), await ot(),
|
|
137
|
+
}), await ot(), xt(
|
|
137
138
|
s,
|
|
138
139
|
e.value.startAnimation.durationMs,
|
|
139
140
|
e.value.startAnimation.staggerMs
|
|
140
141
|
).then(() => {
|
|
141
|
-
|
|
142
|
+
M.value = !1, J.value = [];
|
|
142
143
|
});
|
|
143
144
|
} else
|
|
144
|
-
|
|
145
|
+
M.value = !1;
|
|
145
146
|
});
|
|
146
|
-
const
|
|
147
|
+
const P = st(null), Y = st(null);
|
|
147
148
|
at(() => {
|
|
148
|
-
|
|
149
|
+
ce();
|
|
149
150
|
});
|
|
150
|
-
function
|
|
151
|
-
if (
|
|
151
|
+
function ce() {
|
|
152
|
+
if (Yt(C.dataset) && q({
|
|
152
153
|
componentName: "VueUiNestedDonuts",
|
|
153
154
|
type: "dataset"
|
|
154
155
|
}), e.value.responsive) {
|
|
155
|
-
const l =
|
|
156
|
-
const { width: s, height: a } =
|
|
157
|
-
chart:
|
|
158
|
-
title: e.value.style.chart.title.text ?
|
|
159
|
-
legend: e.value.style.chart.legend.show ?
|
|
160
|
-
source:
|
|
161
|
-
noTitle:
|
|
162
|
-
padding:
|
|
156
|
+
const l = jt(() => {
|
|
157
|
+
const { width: s, height: a } = el({
|
|
158
|
+
chart: V.value,
|
|
159
|
+
title: e.value.style.chart.title.text ? Fe.value : null,
|
|
160
|
+
legend: e.value.style.chart.legend.show ? ie.value : null,
|
|
161
|
+
source: Ne.value,
|
|
162
|
+
noTitle: Se.value,
|
|
163
|
+
padding: Re.value
|
|
163
164
|
});
|
|
164
165
|
requestAnimationFrame(() => {
|
|
165
166
|
f.value.width = s, f.value.height = a;
|
|
166
167
|
});
|
|
167
168
|
});
|
|
168
|
-
|
|
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);
|
|
169
170
|
}
|
|
170
171
|
}
|
|
171
172
|
zt(() => {
|
|
172
|
-
|
|
173
|
+
P.value && (Y.value && P.value.unobserve(Y.value), P.value.disconnect());
|
|
173
174
|
});
|
|
174
|
-
const { isPrinting:
|
|
175
|
+
const { isPrinting: Ue, isImaging: Be, generatePdf: Ge, generateImage: Ye } = tl({
|
|
175
176
|
elementId: `nested_donuts_${y.value}`,
|
|
176
177
|
fileName: e.value.style.chart.title.text || "vue-ui-nested-donuts",
|
|
177
178
|
options: e.value.userOptions.print
|
|
178
|
-
}),
|
|
179
|
+
}), Ct = k(() => e.value.userOptions.show && !e.value.style.chart.title.text), _t = k(() => Xt(e.value.customPalette)), $ = h({
|
|
179
180
|
dataLabels: {
|
|
180
181
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
181
182
|
},
|
|
@@ -185,7 +186,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
185
186
|
width: e.value.style.chart.width,
|
|
186
187
|
height: e.value.style.chart.height
|
|
187
188
|
}), Xe = ft;
|
|
188
|
-
function
|
|
189
|
+
function Tt({ datapoint: l, index: s }) {
|
|
189
190
|
Xe("selectDatapoint", { datapoint: l, index: s });
|
|
190
191
|
}
|
|
191
192
|
function We({
|
|
@@ -203,30 +204,30 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
203
204
|
}
|
|
204
205
|
requestAnimationFrame(v);
|
|
205
206
|
}
|
|
206
|
-
const w = h([]), S =
|
|
207
|
+
const w = h([]), S = k(() => {
|
|
207
208
|
C.dataset.forEach((s, a) => {
|
|
208
|
-
[null, void 0].includes(s.name) &&
|
|
209
|
+
[null, void 0].includes(s.name) && q({
|
|
209
210
|
componentName: "VueUiNestedDonuts",
|
|
210
211
|
type: "datasetSerieAttribute",
|
|
211
212
|
property: "name",
|
|
212
213
|
index: a
|
|
213
|
-
}), [null, void 0].includes(s.series) ?
|
|
214
|
+
}), [null, void 0].includes(s.series) ? q({
|
|
214
215
|
componentName: "VueUiNestedDonuts",
|
|
215
216
|
type: "datasetSerieAttribute",
|
|
216
217
|
property: "series",
|
|
217
218
|
index: a
|
|
218
|
-
}) : s.series.length === 0 ?
|
|
219
|
+
}) : s.series.length === 0 ? q({
|
|
219
220
|
componentName: "VueUiNestedDonuts",
|
|
220
221
|
type: "datasetAttributeEmpty",
|
|
221
222
|
property: `series at index ${a}`
|
|
222
223
|
}) : s.series.forEach((o, t) => {
|
|
223
|
-
[null, void 0].includes(o.name) &&
|
|
224
|
+
[null, void 0].includes(o.name) && q({
|
|
224
225
|
componentName: "VueUiNestedDonuts",
|
|
225
226
|
type: "datasetSerieAttribute",
|
|
226
227
|
property: "name",
|
|
227
228
|
index: t,
|
|
228
229
|
key: "serie"
|
|
229
|
-
}), [null, void 0].includes(o.values) &&
|
|
230
|
+
}), [null, void 0].includes(o.values) && q({
|
|
230
231
|
componentName: "VueUiNestedDonuts",
|
|
231
232
|
type: "datasetSerieAttribute",
|
|
232
233
|
property: "values",
|
|
@@ -238,11 +239,11 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
238
239
|
let l = 0;
|
|
239
240
|
return C.dataset.map((s, a) => ({
|
|
240
241
|
...s,
|
|
241
|
-
total: s.series.filter((o) => !w.value.includes(o.id)).map((o) =>
|
|
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),
|
|
242
243
|
datasetIndex: a,
|
|
243
244
|
id: `${y.value}_${a}`,
|
|
244
245
|
series: s.series.map((o, t) => {
|
|
245
|
-
const u =
|
|
246
|
+
const u = z(o.values).reduce((c, v) => c + v, 0);
|
|
246
247
|
return {
|
|
247
248
|
name: o.name,
|
|
248
249
|
arcOf: s.name,
|
|
@@ -250,13 +251,13 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
250
251
|
id: `${y.value}_${a}_${t}`,
|
|
251
252
|
seriesIndex: t,
|
|
252
253
|
datasetIndex: a,
|
|
253
|
-
color:
|
|
254
|
-
value:
|
|
254
|
+
color: Wt(o.color) || _t.value[t] || xe[t % xe.length],
|
|
255
|
+
value: M.value ? E.value[l++] ?? 0 : u,
|
|
255
256
|
absoluteValues: o.values || []
|
|
256
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)), qe = k(() => [...S.value].map((l, s) => {
|
|
260
261
|
const a = l.series.filter((o) => !w.value.includes(o.id)).map((o) => o.value).reduce((o, t) => o + t, 0);
|
|
261
262
|
return {
|
|
262
263
|
...l,
|
|
@@ -267,7 +268,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
267
268
|
}))
|
|
268
269
|
};
|
|
269
270
|
}));
|
|
270
|
-
function
|
|
271
|
+
function Ot(l, s, a) {
|
|
271
272
|
let o = 0;
|
|
272
273
|
for (let t = 0; t < l.length; t += 1)
|
|
273
274
|
a.includes(l[t]) && (o += 1);
|
|
@@ -278,12 +279,12 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
278
279
|
() => qe.value,
|
|
279
280
|
(l) => b.value = l
|
|
280
281
|
);
|
|
281
|
-
function
|
|
282
|
+
function ve(l) {
|
|
282
283
|
Xe("selectLegend", l);
|
|
283
284
|
const s = C.dataset.flatMap(
|
|
284
|
-
(d, p) => d.series.map((_,
|
|
285
|
-
value:
|
|
286
|
-
id: `${y.value}_${p}_${
|
|
285
|
+
(d, p) => d.series.map((_, be) => ({
|
|
286
|
+
value: z(_.values).reduce((ge, oe) => ge + oe, 0),
|
|
287
|
+
id: `${y.value}_${p}_${be}`,
|
|
287
288
|
arcOfId: `${y.value}_${p}`
|
|
288
289
|
}))
|
|
289
290
|
).find((d) => d.id === l.id);
|
|
@@ -294,7 +295,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
294
295
|
(d) => d.id === s.arcOfId
|
|
295
296
|
);
|
|
296
297
|
if (!c) return;
|
|
297
|
-
const v = c.series.map((d) => d.id), N =
|
|
298
|
+
const v = c.series.map((d) => d.id), N = Ot(
|
|
298
299
|
v,
|
|
299
300
|
v.length - 1,
|
|
300
301
|
w.value
|
|
@@ -330,11 +331,11 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
330
331
|
series: d.series.map((p) => p.id === l.id ? { ...p, value: 0 } : p)
|
|
331
332
|
})), w.value.push(l.id)));
|
|
332
333
|
}
|
|
333
|
-
const Z =
|
|
334
|
-
const a = Math.abs(l.series.map((v) => v.value).reduce((v, N) => v + N, 0)) > 0, o =
|
|
334
|
+
const Z = k(() => I.value / S.value.length * e.value.style.chart.layout.donut.spacingRatio), He = k(() => b.value.map((l, s) => I.value - s * I.value / S.value.length)), j = k(() => b.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 / b.value.length, t = M.value ? J.value.find((v) => v.datasetIndex === s) : null, u = [...l.series, ...t ? [t] : []].map((v) => ({
|
|
335
336
|
...v,
|
|
336
337
|
value: v.value < 1e-11 ? Number.MIN_VALUE : v.value
|
|
337
|
-
})), c =
|
|
338
|
+
})), c = Ce(
|
|
338
339
|
{ series: [
|
|
339
340
|
{ name: "_", color: e.value.style.chart.layout.donut.emptyFill, value: 1 }
|
|
340
341
|
] },
|
|
@@ -354,7 +355,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
354
355
|
hasData: a,
|
|
355
356
|
radius: o,
|
|
356
357
|
skeleton: c,
|
|
357
|
-
donut:
|
|
358
|
+
donut: Ce(
|
|
358
359
|
{ series: u },
|
|
359
360
|
f.value.width / 2,
|
|
360
361
|
f.value.height / 2,
|
|
@@ -368,34 +369,34 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
368
369
|
Z.value
|
|
369
370
|
)
|
|
370
371
|
};
|
|
371
|
-
})), Je =
|
|
372
|
-
const a = s *
|
|
372
|
+
})), Je = k(() => [...S.value].map((l, s) => {
|
|
373
|
+
const a = s * I.value / S.value.length;
|
|
373
374
|
return {
|
|
374
375
|
sizeRatio: a,
|
|
375
|
-
donut:
|
|
376
|
+
donut: Ce(
|
|
376
377
|
{ series: [{ value: 1 }] },
|
|
377
378
|
f.value.width / 2,
|
|
378
379
|
f.value.height / 2,
|
|
379
|
-
|
|
380
|
-
|
|
380
|
+
I.value - a,
|
|
381
|
+
I.value - a,
|
|
381
382
|
1.99999,
|
|
382
383
|
2,
|
|
383
384
|
1,
|
|
384
385
|
360,
|
|
385
386
|
105.25,
|
|
386
|
-
|
|
387
|
+
I.value / S.value.length * e.value.style.chart.layout.donut.spacingRatio
|
|
387
388
|
)[0]
|
|
388
389
|
};
|
|
389
|
-
})), Ke = h(null), ee = h(null), te = h(null),
|
|
390
|
-
function
|
|
391
|
-
Ke.value = l.arcOfId, ee.value = l.id, te.value = a,
|
|
390
|
+
})), Ke = h(null), ee = h(null), te = h(null), he = h(null);
|
|
391
|
+
function Ft({ datapoint: l, _relativeIndex: s, seriesIndex: a }) {
|
|
392
|
+
Ke.value = l.arcOfId, ee.value = l.id, te.value = a, he.value = {
|
|
392
393
|
datapoint: l,
|
|
393
394
|
seriesIndex: a,
|
|
394
395
|
series: b.value,
|
|
395
396
|
config: e.value
|
|
396
397
|
};
|
|
397
398
|
const o = e.value.style.chart.tooltip.customFormat;
|
|
398
|
-
if (it(o) &&
|
|
399
|
+
if (it(o) && Zt(
|
|
399
400
|
() => o({
|
|
400
401
|
seriesIndex: a,
|
|
401
402
|
datapoint: l,
|
|
@@ -403,7 +404,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
403
404
|
config: e.value
|
|
404
405
|
})
|
|
405
406
|
))
|
|
406
|
-
|
|
407
|
+
re.value = o({
|
|
407
408
|
seriesIndex: a,
|
|
408
409
|
datapoint: l,
|
|
409
410
|
series: b.value,
|
|
@@ -467,11 +468,11 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
467
468
|
s: "%",
|
|
468
469
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
469
470
|
})}</b></div>`);
|
|
470
|
-
|
|
471
|
+
re.value = `<div style="font-size:${e.value.style.chart.tooltip.fontSize}px">${t}</div>`;
|
|
471
472
|
}
|
|
472
|
-
|
|
473
|
+
ne.value = !0;
|
|
473
474
|
}
|
|
474
|
-
function
|
|
475
|
+
function fe(l) {
|
|
475
476
|
return l.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
476
477
|
}
|
|
477
478
|
function Qe(l, s) {
|
|
@@ -482,22 +483,22 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
482
483
|
if (!e.value.style.chart.tooltip.showAllItemsAtIndex || w.value.length)
|
|
483
484
|
return [null, void 0].includes(ee.value) || ee.value === l.id ? "" : `url(#blur_${y.value})`;
|
|
484
485
|
}
|
|
485
|
-
const
|
|
486
|
+
const pe = k(() => S.value.map((l, s) => {
|
|
486
487
|
const a = l.series.filter(
|
|
487
488
|
(t) => !w.value.includes(t.id)
|
|
488
|
-
), o =
|
|
489
|
+
), o = M.value ? a.map((t) => {
|
|
489
490
|
const u = C.dataset[s].series.findIndex(
|
|
490
491
|
(c) => c.name === t.name
|
|
491
492
|
);
|
|
492
|
-
return
|
|
493
|
+
return z(
|
|
493
494
|
C.dataset[s].series[u].values
|
|
494
495
|
).reduce((c, v) => c + v, 0);
|
|
495
496
|
}).reduce((t, u) => t + u, 0) : a.map((t) => t.value).reduce((t, u) => t + u, 0);
|
|
496
497
|
return l.series.map((t, u) => {
|
|
497
|
-
const c =
|
|
498
|
+
const c = z(C.dataset[s].series[u].values).reduce(
|
|
498
499
|
(N, d) => N + d,
|
|
499
500
|
0
|
|
500
|
-
), v =
|
|
501
|
+
), v = M.value ? c : t.value;
|
|
501
502
|
return {
|
|
502
503
|
name: t.name,
|
|
503
504
|
color: t.color,
|
|
@@ -509,18 +510,18 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
509
510
|
datasetIndex: s,
|
|
510
511
|
total: o,
|
|
511
512
|
opacity: w.value.includes(t.id) ? 0.5 : 1,
|
|
512
|
-
segregate: () =>
|
|
513
|
+
segregate: () => ve(t),
|
|
513
514
|
isSegregated: w.value.includes(t.id)
|
|
514
515
|
};
|
|
515
516
|
});
|
|
516
|
-
})),
|
|
517
|
+
})), Nt = k(() => ({
|
|
517
518
|
cy: "nested-donuts-legend",
|
|
518
519
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
519
520
|
color: e.value.style.chart.legend.color,
|
|
520
521
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
521
522
|
paddingBottom: 12,
|
|
522
523
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
523
|
-
})),
|
|
524
|
+
})), D = k(() => {
|
|
524
525
|
const l = b.value.flatMap((a) => a.series.map((o) => ({
|
|
525
526
|
name: `${a.name} - ${o.name}`,
|
|
526
527
|
color: o.color,
|
|
@@ -530,32 +531,32 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
530
531
|
});
|
|
531
532
|
function Ze(l = null) {
|
|
532
533
|
ot(() => {
|
|
533
|
-
const s =
|
|
534
|
+
const s = D.value.head.map((t, u) => [
|
|
534
535
|
[t.name],
|
|
535
|
-
[
|
|
536
|
+
[D.value.body[u]],
|
|
536
537
|
[
|
|
537
|
-
isNaN(
|
|
538
|
+
isNaN(D.value.body[u] / t.total) ? "-" : D.value.body[u] / t.total * 100
|
|
538
539
|
]
|
|
539
540
|
]), a = [
|
|
540
541
|
[e.value.style.chart.title.text],
|
|
541
542
|
[e.value.style.chart.title.subtitle.text],
|
|
542
543
|
[[""], ["val"], ["%"]]
|
|
543
|
-
].concat(s), o =
|
|
544
|
-
l ? l(o) :
|
|
544
|
+
].concat(s), o = Kt(a);
|
|
545
|
+
l ? l(o) : Qt({
|
|
545
546
|
csvContent: o,
|
|
546
547
|
title: e.value.style.chart.title.text || "vue-ui-nested-donuts"
|
|
547
548
|
});
|
|
548
549
|
});
|
|
549
550
|
}
|
|
550
|
-
const le =
|
|
551
|
+
const le = k(() => {
|
|
551
552
|
const l = [
|
|
552
553
|
e.value.table.columnNames.series,
|
|
553
554
|
e.value.table.columnNames.value,
|
|
554
555
|
e.value.table.columnNames.percentage
|
|
555
|
-
], s =
|
|
556
|
+
], s = D.value.head.map((t, u) => {
|
|
556
557
|
const c = F({
|
|
557
558
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
558
|
-
v:
|
|
559
|
+
v: D.value.body[u],
|
|
559
560
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
560
561
|
r: e.value.table.td.roundingValue
|
|
561
562
|
});
|
|
@@ -565,8 +566,8 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
565
566
|
name: t.name
|
|
566
567
|
},
|
|
567
568
|
c,
|
|
568
|
-
isNaN(
|
|
569
|
-
v:
|
|
569
|
+
isNaN(D.value.body[u] / t.total) ? "-" : F({
|
|
570
|
+
v: D.value.body[u] / t.total * 100,
|
|
570
571
|
s: "%",
|
|
571
572
|
r: e.value.table.td.roundingPercentage
|
|
572
573
|
})
|
|
@@ -595,62 +596,76 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
595
596
|
config: a
|
|
596
597
|
};
|
|
597
598
|
});
|
|
598
|
-
function
|
|
599
|
+
function St() {
|
|
599
600
|
return S.value;
|
|
600
601
|
}
|
|
601
602
|
function je() {
|
|
602
|
-
|
|
603
|
+
$.value.showTable = !$.value.showTable;
|
|
603
604
|
}
|
|
604
605
|
function et() {
|
|
605
|
-
|
|
606
|
+
$.value.dataLabels.show = !$.value.dataLabels.show;
|
|
606
607
|
}
|
|
607
608
|
function tt() {
|
|
608
|
-
|
|
609
|
+
$.value.showTooltip = !$.value.showTooltip;
|
|
609
610
|
}
|
|
610
611
|
const ae = h(!1);
|
|
611
|
-
function
|
|
612
|
+
function ye() {
|
|
612
613
|
ae.value = !ae.value;
|
|
613
614
|
}
|
|
615
|
+
async function At({ scale: l = 2 } = {}) {
|
|
616
|
+
if (!V.value) return;
|
|
617
|
+
const { width: s, height: a } = V.value.getBoundingClientRect(), o = s / a, { imageUri: t, base64: u } = await ul({ domElement: V.value, base64: !0, img: !0, scale: l });
|
|
618
|
+
return {
|
|
619
|
+
imageUri: t,
|
|
620
|
+
base64: u,
|
|
621
|
+
title: e.value.style.chart.title.text,
|
|
622
|
+
width: s,
|
|
623
|
+
height: a,
|
|
624
|
+
aspectRatio: o
|
|
625
|
+
};
|
|
626
|
+
}
|
|
614
627
|
return ht({
|
|
615
|
-
getData:
|
|
628
|
+
getData: St,
|
|
629
|
+
getImage: At,
|
|
616
630
|
generatePdf: Ge,
|
|
617
631
|
generateCsv: Ze,
|
|
618
632
|
generateImage: Ye,
|
|
619
633
|
toggleTable: je,
|
|
620
634
|
toggleLabels: et,
|
|
621
635
|
toggleTooltip: tt,
|
|
622
|
-
toggleAnnotator:
|
|
636
|
+
toggleAnnotator: ye,
|
|
637
|
+
toggleFullscreen: Pe
|
|
623
638
|
}), (l, s) => (n(), i("div", {
|
|
624
639
|
ref_key: "nestedDonutsChart",
|
|
625
|
-
ref:
|
|
626
|
-
class: U(`vue-ui-nested-donuts ${
|
|
640
|
+
ref: V,
|
|
641
|
+
class: U(`vue-ui-nested-donuts ${G.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
627
642
|
style: ue(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
628
643
|
id: `nested_donuts_${y.value}`,
|
|
629
644
|
onMouseenter: s[3] || (s[3] = () => r(De)(!0)),
|
|
630
645
|
onMouseleave: s[4] || (s[4] = () => r(De)(!1))
|
|
631
646
|
}, [
|
|
632
|
-
e.value.userOptions.buttons.annotator ? (n(),
|
|
647
|
+
e.value.userOptions.buttons.annotator ? (n(), B(r(gt), {
|
|
633
648
|
key: 0,
|
|
634
649
|
svgRef: r(Me),
|
|
635
650
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
636
651
|
color: e.value.style.chart.color,
|
|
637
652
|
active: ae.value,
|
|
638
|
-
onClose:
|
|
653
|
+
onClose: ye
|
|
639
654
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : m("", !0),
|
|
640
|
-
|
|
655
|
+
Ct.value ? (n(), i("div", {
|
|
641
656
|
key: 1,
|
|
642
657
|
ref_key: "noTitle",
|
|
643
|
-
ref:
|
|
658
|
+
ref: Se,
|
|
644
659
|
class: "vue-data-ui-no-title-space",
|
|
645
660
|
style: "height:36px; width: 100%;background:transparent"
|
|
646
661
|
}, null, 512)) : m("", !0),
|
|
647
662
|
e.value.style.chart.title.text ? (n(), i("div", {
|
|
648
663
|
key: 2,
|
|
649
664
|
ref_key: "chartTitle",
|
|
650
|
-
ref:
|
|
665
|
+
ref: Fe
|
|
651
666
|
}, [
|
|
652
|
-
(n(),
|
|
653
|
-
key: `title_${
|
|
667
|
+
(n(), B(ol, {
|
|
668
|
+
key: `title_${Ae.value}`,
|
|
654
669
|
config: {
|
|
655
670
|
title: {
|
|
656
671
|
cy: "donut-div-title",
|
|
@@ -663,12 +678,12 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
663
678
|
}
|
|
664
679
|
}, null, 8, ["config"]))
|
|
665
680
|
], 512)) : m("", !0),
|
|
666
|
-
e.value.userOptions.show && Q.value && (r(ze) || r(
|
|
681
|
+
e.value.userOptions.show && Q.value && (r(ze) || r(de)) ? (n(), B(r($t), {
|
|
667
682
|
ref: "details",
|
|
668
|
-
key: `user_option_${
|
|
683
|
+
key: `user_option_${Oe.value}`,
|
|
669
684
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
670
685
|
color: e.value.style.chart.color,
|
|
671
|
-
isPrinting: r(
|
|
686
|
+
isPrinting: r(Ue),
|
|
672
687
|
isImaging: r(Be),
|
|
673
688
|
uid: y.value,
|
|
674
689
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
@@ -678,31 +693,31 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
678
693
|
hasTable: e.value.userOptions.buttons.table,
|
|
679
694
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
680
695
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
681
|
-
isFullscreen:
|
|
682
|
-
isTooltip:
|
|
696
|
+
isFullscreen: G.value,
|
|
697
|
+
isTooltip: $.value.showTooltip,
|
|
683
698
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
684
|
-
chartElement:
|
|
699
|
+
chartElement: V.value,
|
|
685
700
|
position: e.value.userOptions.position,
|
|
686
701
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
687
702
|
isAnnotation: ae.value,
|
|
688
703
|
callbacks: e.value.userOptions.callbacks,
|
|
689
704
|
printScale: e.value.userOptions.print.scale,
|
|
690
|
-
onToggleFullscreen:
|
|
705
|
+
onToggleFullscreen: Pe,
|
|
691
706
|
onGeneratePdf: r(Ge),
|
|
692
707
|
onGenerateCsv: Ze,
|
|
693
708
|
onGenerateImage: r(Ye),
|
|
694
709
|
onToggleTable: je,
|
|
695
710
|
onToggleLabels: et,
|
|
696
711
|
onToggleTooltip: tt,
|
|
697
|
-
onToggleAnnotator:
|
|
712
|
+
onToggleAnnotator: ye,
|
|
698
713
|
style: ue({
|
|
699
|
-
visibility: r(ze) ? r(
|
|
714
|
+
visibility: r(ze) ? r(de) ? "visible" : "hidden" : "visible"
|
|
700
715
|
})
|
|
701
716
|
}, Mt({ _: 2 }, [
|
|
702
717
|
l.$slots.menuIcon ? {
|
|
703
718
|
name: "menuIcon",
|
|
704
719
|
fn: L(({ isOpen: a, color: o }) => [
|
|
705
|
-
x(l.$slots, "menuIcon",
|
|
720
|
+
x(l.$slots, "menuIcon", X(W({ isOpen: a, color: o })), void 0, !0)
|
|
706
721
|
]),
|
|
707
722
|
key: "0"
|
|
708
723
|
} : void 0,
|
|
@@ -751,14 +766,14 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
751
766
|
l.$slots.optionFullscreen ? {
|
|
752
767
|
name: "optionFullscreen",
|
|
753
768
|
fn: L(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
754
|
-
x(l.$slots, "optionFullscreen",
|
|
769
|
+
x(l.$slots, "optionFullscreen", X(W({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
755
770
|
]),
|
|
756
771
|
key: "7"
|
|
757
772
|
} : void 0,
|
|
758
773
|
l.$slots.optionAnnotator ? {
|
|
759
774
|
name: "optionAnnotator",
|
|
760
775
|
fn: L(({ toggleAnnotator: a, isAnnotator: o }) => [
|
|
761
|
-
x(l.$slots, "optionAnnotator",
|
|
776
|
+
x(l.$slots, "optionAnnotator", X(W({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
|
|
762
777
|
]),
|
|
763
778
|
key: "8"
|
|
764
779
|
} : void 0
|
|
@@ -767,13 +782,13 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
767
782
|
key: 4,
|
|
768
783
|
ref_key: "svgRef",
|
|
769
784
|
ref: Me,
|
|
770
|
-
xmlns: r(
|
|
785
|
+
xmlns: r(qt),
|
|
771
786
|
class: U({
|
|
772
|
-
"vue-data-ui-fullscreen--on":
|
|
773
|
-
"vue-data-ui-fulscreen--off": !
|
|
787
|
+
"vue-data-ui-fullscreen--on": G.value,
|
|
788
|
+
"vue-data-ui-fulscreen--off": !G.value
|
|
774
789
|
}),
|
|
775
790
|
viewBox: `0 0 ${f.value.width <= 0 ? 1e-3 : f.value.width} ${f.value.height < 0 ? 1e-3 : f.value.height}`,
|
|
776
|
-
style: ue(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${
|
|
791
|
+
style: ue(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${Re.value.css}`)
|
|
777
792
|
}, [
|
|
778
793
|
ut(r(bt)),
|
|
779
794
|
l.$slots["chart-background"] ? (n(), i("foreignObject", {
|
|
@@ -787,7 +802,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
787
802
|
}
|
|
788
803
|
}, [
|
|
789
804
|
x(l.$slots, "chart-background", {}, void 0, !0)
|
|
790
|
-
], 8,
|
|
805
|
+
], 8, dl)) : m("", !0),
|
|
791
806
|
g("defs", null, [
|
|
792
807
|
(n(!0), i(T, null, O(Je.value, (a, o) => (n(), i("radialGradient", {
|
|
793
808
|
id: `radial_${y.value}_${o}`
|
|
@@ -799,20 +814,20 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
799
814
|
}, null, -1)),
|
|
800
815
|
g("stop", {
|
|
801
816
|
offset: `${(1 - Z.value / He.value[o]) * 100}%`,
|
|
802
|
-
"stop-color": r(
|
|
817
|
+
"stop-color": r(Ht)("#FFFFFF", 0),
|
|
803
818
|
"stop-opacity": "0"
|
|
804
|
-
}, null, 8,
|
|
819
|
+
}, null, 8, vl),
|
|
805
820
|
g("stop", {
|
|
806
821
|
offset: `${(1 - Z.value / He.value[o] / 2) * 100}%`,
|
|
807
822
|
"stop-color": "#FFFFFF",
|
|
808
823
|
"stop-opacity": e.value.style.chart.gradientIntensity / 100
|
|
809
|
-
}, null, 8,
|
|
824
|
+
}, null, 8, hl),
|
|
810
825
|
s[6] || (s[6] = g("stop", {
|
|
811
826
|
offset: "100%",
|
|
812
827
|
"stop-color": "#FFFFFF",
|
|
813
828
|
"stop-opacity": "0"
|
|
814
829
|
}, null, -1))
|
|
815
|
-
], 8,
|
|
830
|
+
], 8, cl))), 256))
|
|
816
831
|
]),
|
|
817
832
|
g("defs", null, [
|
|
818
833
|
g("filter", {
|
|
@@ -826,12 +841,12 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
826
841
|
in: "SourceGraphic",
|
|
827
842
|
stdDeviation: 2,
|
|
828
843
|
id: `blur_std_${y.value}`
|
|
829
|
-
}, null, 8,
|
|
844
|
+
}, null, 8, pl),
|
|
830
845
|
s[7] || (s[7] = g("feColorMatrix", {
|
|
831
846
|
type: "saturate",
|
|
832
847
|
values: "0"
|
|
833
848
|
}, null, -1))
|
|
834
|
-
], 8,
|
|
849
|
+
], 8, fl),
|
|
835
850
|
g("filter", {
|
|
836
851
|
id: `shadow_${y.value}`,
|
|
837
852
|
"color-interpolation-filters": "sRGB"
|
|
@@ -842,8 +857,8 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
842
857
|
stdDeviation: "10",
|
|
843
858
|
"flood-opacity": "0.5",
|
|
844
859
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
845
|
-
}, null, 8,
|
|
846
|
-
], 8,
|
|
860
|
+
}, null, 8, bl)
|
|
861
|
+
], 8, yl)
|
|
847
862
|
]),
|
|
848
863
|
(n(!0), i(T, null, O(j.value, (a, o) => (n(), i("g", null, [
|
|
849
864
|
a.hasData ? (n(!0), i(T, { key: 0 }, O(a.donut.filter((t) => !t.ghost), (t, u) => (n(), i("g", null, [
|
|
@@ -854,7 +869,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
854
869
|
stroke: e.value.style.chart.backgroundColor,
|
|
855
870
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
856
871
|
filter: Qe(t, u)
|
|
857
|
-
}, null, 8,
|
|
872
|
+
}, null, 8, gl)
|
|
858
873
|
]))), 256)) : (n(!0), i(T, { key: 1 }, O(a.skeleton, (t, u) => (n(), i("g", null, [
|
|
859
874
|
g("path", {
|
|
860
875
|
class: "vue-ui-donut-arc-path",
|
|
@@ -862,20 +877,20 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
862
877
|
fill: t.color,
|
|
863
878
|
stroke: e.value.style.chart.backgroundColor,
|
|
864
879
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
865
|
-
}, null, 8,
|
|
880
|
+
}, null, 8, ml)
|
|
866
881
|
]))), 256))
|
|
867
882
|
]))), 256)),
|
|
868
|
-
e.value.style.chart.useGradient ? (n(), i("g",
|
|
883
|
+
e.value.style.chart.useGradient ? (n(), i("g", wl, [
|
|
869
884
|
(n(!0), i(T, null, O(Je.value, (a, o) => (n(), i("g", null, [
|
|
870
885
|
g("path", {
|
|
871
886
|
d: a.donut.arcSlice,
|
|
872
887
|
fill: `url(#radial_${y.value}_${o})`,
|
|
873
888
|
stroke: "transparent",
|
|
874
889
|
"stroke-width": "0"
|
|
875
|
-
}, null, 8,
|
|
890
|
+
}, null, 8, $l)
|
|
876
891
|
]))), 256))
|
|
877
892
|
])) : m("", !0),
|
|
878
|
-
e.value.style.chart.layout.labels.dataLabels.showDonutName ? (n(), i("g",
|
|
893
|
+
e.value.style.chart.layout.labels.dataLabels.showDonutName ? (n(), i("g", kl, [
|
|
879
894
|
(n(!0), i(T, null, O(j.value, (a, o) => (n(), i("g", null, [
|
|
880
895
|
(n(!0), i(T, null, O(a.donut, (t, u) => (n(), i("g", null, [
|
|
881
896
|
u === 0 && f.value.width && f.value.height ? (n(), i("text", {
|
|
@@ -887,28 +902,28 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
887
902
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
888
903
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
|
|
889
904
|
fill: e.value.style.chart.layout.labels.dataLabels.color
|
|
890
|
-
},
|
|
905
|
+
}, A(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? r(Jt)({
|
|
891
906
|
source: a.name,
|
|
892
907
|
length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
|
|
893
|
-
}) : a.name), 11,
|
|
908
|
+
}) : a.name), 11, Ll)) : m("", !0)
|
|
894
909
|
]))), 256))
|
|
895
910
|
]))), 256))
|
|
896
911
|
])) : m("", !0),
|
|
897
|
-
e.value.style.chart.layout.labels.dataLabels.show ? (n(), i("g",
|
|
912
|
+
e.value.style.chart.layout.labels.dataLabels.show ? (n(), i("g", xl, [
|
|
898
913
|
(n(!0), i(T, null, O(j.value, (a, o) => (n(), i("g", null, [
|
|
899
914
|
(n(!0), i(T, null, O(a.donut.filter((t) => !t.ghost), (t, u) => (n(), i("g", {
|
|
900
915
|
filter: Qe(t, u)
|
|
901
916
|
}, [
|
|
902
917
|
nt(g("text", {
|
|
903
918
|
class: U({ animated: e.value.useCssAnimation }),
|
|
904
|
-
opacity:
|
|
905
|
-
"text-anchor": r(
|
|
906
|
-
x: r(
|
|
919
|
+
opacity: fe(t) ? 1 : 0,
|
|
920
|
+
"text-anchor": r(H)(t, !0).anchor,
|
|
921
|
+
x: r(H)(
|
|
907
922
|
t,
|
|
908
923
|
!1,
|
|
909
924
|
e.value.style.chart.layout.labels.dataLabels.offsetX
|
|
910
925
|
).x || 0,
|
|
911
|
-
y: r(
|
|
926
|
+
y: r(_e)(
|
|
912
927
|
t,
|
|
913
928
|
e.value.style.chart.layout.labels.dataLabels.offsetY,
|
|
914
929
|
e.value.style.chart.layout.labels.dataLabels.offsetY
|
|
@@ -916,26 +931,26 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
916
931
|
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
917
932
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
918
933
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldPercentage ? "bold" : "normal"
|
|
919
|
-
},
|
|
934
|
+
}, A(r(F)({
|
|
920
935
|
v: t.proportion * 100,
|
|
921
936
|
s: "%",
|
|
922
937
|
r: e.value.style.chart.layout.labels.dataLabels.roundingPercentage
|
|
923
|
-
})), 11,
|
|
938
|
+
})), 11, _l), [
|
|
924
939
|
[
|
|
925
940
|
rt,
|
|
926
|
-
|
|
941
|
+
$.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage
|
|
927
942
|
]
|
|
928
943
|
]),
|
|
929
944
|
nt(g("text", {
|
|
930
945
|
class: U({ animated: e.value.useCssAnimation }),
|
|
931
|
-
opacity:
|
|
932
|
-
"text-anchor": r(
|
|
933
|
-
x: r(
|
|
946
|
+
opacity: fe(t) ? 1 : 0,
|
|
947
|
+
"text-anchor": r(H)(t, !0).anchor,
|
|
948
|
+
x: r(H)(
|
|
934
949
|
t,
|
|
935
950
|
!1,
|
|
936
951
|
e.value.style.chart.layout.labels.dataLabels.offsetX
|
|
937
952
|
).x || 0,
|
|
938
|
-
y: r(
|
|
953
|
+
y: r(_e)(
|
|
939
954
|
t,
|
|
940
955
|
e.value.style.chart.layout.labels.dataLabels.offsetY,
|
|
941
956
|
e.value.style.chart.layout.labels.dataLabels.offsetY
|
|
@@ -943,7 +958,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
943
958
|
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
944
959
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
945
960
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
|
|
946
|
-
}, " (" +
|
|
961
|
+
}, " (" + A(r(K)(
|
|
947
962
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
948
963
|
t.value,
|
|
949
964
|
r(F)({
|
|
@@ -953,22 +968,22 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
953
968
|
r: e.value.style.chart.layout.labels.dataLabels.roundingValue
|
|
954
969
|
}),
|
|
955
970
|
{ datapoint: t, seriesIndex: o, datapointIndex: u }
|
|
956
|
-
)) + ") ", 11,
|
|
971
|
+
)) + ") ", 11, Tl), [
|
|
957
972
|
[
|
|
958
973
|
rt,
|
|
959
|
-
|
|
974
|
+
$.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue
|
|
960
975
|
]
|
|
961
976
|
]),
|
|
962
|
-
|
|
977
|
+
fe(t) && $.value.dataLabels.show && !e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue ? (n(), i("text", {
|
|
963
978
|
key: 0,
|
|
964
979
|
class: U({ animated: e.value.useCssAnimation }),
|
|
965
|
-
"text-anchor": r(
|
|
966
|
-
x: r(
|
|
980
|
+
"text-anchor": r(H)(t, !0).anchor,
|
|
981
|
+
x: r(H)(
|
|
967
982
|
t,
|
|
968
983
|
!1,
|
|
969
984
|
e.value.style.chart.layout.labels.dataLabels.offsetX
|
|
970
985
|
).x || 0,
|
|
971
|
-
y: r(
|
|
986
|
+
y: r(_e)(
|
|
972
987
|
t,
|
|
973
988
|
e.value.style.chart.layout.labels.dataLabels.offsetY,
|
|
974
989
|
e.value.style.chart.layout.labels.dataLabels.offsetY
|
|
@@ -976,7 +991,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
976
991
|
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
977
992
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
978
993
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
|
|
979
|
-
},
|
|
994
|
+
}, A(r(K)(
|
|
980
995
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
981
996
|
t.value,
|
|
982
997
|
r(F)({
|
|
@@ -986,8 +1001,8 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
986
1001
|
r: e.value.style.chart.layout.labels.dataLabels.roundingValue
|
|
987
1002
|
}),
|
|
988
1003
|
{ datapoint: t, seriesIndex: o, datapointIndex: u }
|
|
989
|
-
)), 11,
|
|
990
|
-
], 8,
|
|
1004
|
+
)), 11, Ol)) : m("", !0)
|
|
1005
|
+
], 8, Cl))), 256))
|
|
991
1006
|
]))), 256))
|
|
992
1007
|
])) : m("", !0),
|
|
993
1008
|
(n(!0), i(T, null, O(j.value, (a, o) => (n(), i("g", null, [
|
|
@@ -995,23 +1010,23 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
995
1010
|
g("path", {
|
|
996
1011
|
d: t.arcSlice,
|
|
997
1012
|
fill: Lt.value === o ? "rgba(0,0,0,0.1)" : "transparent",
|
|
998
|
-
onMouseenter: (c) =>
|
|
1013
|
+
onMouseenter: (c) => Ft({
|
|
999
1014
|
datapoint: t,
|
|
1000
1015
|
seriesIndex: t.seriesIndex
|
|
1001
1016
|
}),
|
|
1002
|
-
onClick: (c) =>
|
|
1017
|
+
onClick: (c) => Tt({ datapoint: t, index: u }),
|
|
1003
1018
|
onMouseleave: s[0] || (s[0] = (c) => {
|
|
1004
|
-
|
|
1019
|
+
ne.value = !1, Ke.value = null, ee.value = null, te.value = null;
|
|
1005
1020
|
})
|
|
1006
|
-
}, null, 40,
|
|
1021
|
+
}, null, 40, Fl)
|
|
1007
1022
|
]))), 256))
|
|
1008
1023
|
]))), 256)),
|
|
1009
1024
|
x(l.$slots, "svg", { svg: f.value }, void 0, !0)
|
|
1010
|
-
], 14,
|
|
1011
|
-
l.$slots.watermark ? (n(), i("div",
|
|
1012
|
-
x(l.$slots, "watermark",
|
|
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)
|
|
1013
1028
|
])) : m("", !0),
|
|
1014
|
-
Q.value ? m("", !0) : (n(),
|
|
1029
|
+
Q.value ? m("", !0) : (n(), B(r(mt), {
|
|
1015
1030
|
key: 6,
|
|
1016
1031
|
config: {
|
|
1017
1032
|
type: "donut",
|
|
@@ -1024,7 +1039,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
1024
1039
|
}
|
|
1025
1040
|
}, null, 8, ["config"])),
|
|
1026
1041
|
ut(r(wt), {
|
|
1027
|
-
show:
|
|
1042
|
+
show: $.value.showTooltip && ne.value,
|
|
1028
1043
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1029
1044
|
color: e.value.style.chart.tooltip.color,
|
|
1030
1045
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -1034,60 +1049,53 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
1034
1049
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
1035
1050
|
position: e.value.style.chart.tooltip.position,
|
|
1036
1051
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1037
|
-
parent:
|
|
1038
|
-
content:
|
|
1039
|
-
isFullscreen:
|
|
1052
|
+
parent: V.value,
|
|
1053
|
+
content: re.value,
|
|
1054
|
+
isFullscreen: G.value,
|
|
1040
1055
|
isCustom: r(it)(e.value.style.chart.tooltip.customFormat)
|
|
1041
1056
|
}, {
|
|
1042
1057
|
"tooltip-before": L(() => [
|
|
1043
|
-
x(l.$slots, "tooltip-before",
|
|
1058
|
+
x(l.$slots, "tooltip-before", X(W({ ...he.value })), void 0, !0)
|
|
1044
1059
|
]),
|
|
1045
1060
|
"tooltip-after": L(() => [
|
|
1046
|
-
x(l.$slots, "tooltip-after",
|
|
1061
|
+
x(l.$slots, "tooltip-after", X(W({ ...he.value })), void 0, !0)
|
|
1047
1062
|
]),
|
|
1048
1063
|
_: 3
|
|
1049
1064
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
1050
1065
|
e.value.style.chart.legend.show ? (n(), i("div", {
|
|
1051
1066
|
key: 7,
|
|
1052
1067
|
ref_key: "chartLegend",
|
|
1053
|
-
ref:
|
|
1054
|
-
class: U({ "vue-ui-nested-donuts-legend":
|
|
1068
|
+
ref: ie,
|
|
1069
|
+
class: U({ "vue-ui-nested-donuts-legend": pe.value.length > 1 })
|
|
1055
1070
|
}, [
|
|
1056
|
-
(n(!0), i(T, null, O(
|
|
1057
|
-
key: `legend_${o}_${
|
|
1071
|
+
(n(!0), i(T, null, O(pe.value, (a, o) => (n(), B(sl, {
|
|
1072
|
+
key: `legend_${o}_${Ve.value}`,
|
|
1058
1073
|
legendSet: a,
|
|
1059
|
-
config:
|
|
1060
|
-
onClickMarker: s[1] || (s[1] = ({ legend: t }) =>
|
|
1074
|
+
config: Nt.value,
|
|
1075
|
+
onClickMarker: s[1] || (s[1] = ({ legend: t }) => ve(t))
|
|
1061
1076
|
}, {
|
|
1062
1077
|
legendTitle: L(({ titleSet: t }) => [
|
|
1063
|
-
t[0] && t[0].arcOf ? (n(), i("div",
|
|
1078
|
+
t[0] && t[0].arcOf ? (n(), i("div", Sl, A(t[0].arcOf), 1)) : m("", !0)
|
|
1064
1079
|
]),
|
|
1065
1080
|
item: L(({ legend: t, index: u }) => [
|
|
1066
1081
|
g("div", {
|
|
1067
|
-
onClick: (c) =>
|
|
1082
|
+
onClick: (c) => ve(t),
|
|
1068
1083
|
style: ue(`opacity:${w.value.includes(t.id) ? 0.5 : 1}`)
|
|
1069
|
-
},
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
ne(" (" + I(isNaN(t.value / t.total) ? "-" : r(F)({
|
|
1085
|
-
v: t.value / t.total * 100,
|
|
1086
|
-
s: "%",
|
|
1087
|
-
r: e.value.style.chart.legend.roundingPercentage
|
|
1088
|
-
})) + ") ", 1)
|
|
1089
|
-
], 64))
|
|
1090
|
-
], 12, Nl)
|
|
1084
|
+
}, 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
|
+
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
1086
|
+
t.value,
|
|
1087
|
+
r(F)({
|
|
1088
|
+
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1089
|
+
v: t.value,
|
|
1090
|
+
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
1091
|
+
r: e.value.style.chart.legend.roundingValue
|
|
1092
|
+
}),
|
|
1093
|
+
{ datapoint: t, seriesIndex: u }
|
|
1094
|
+
) : "") + " " + A(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(F)({
|
|
1095
|
+
v: t.value / t.total * 100,
|
|
1096
|
+
s: "%",
|
|
1097
|
+
r: e.value.style.chart.legend.roundingPercentage
|
|
1098
|
+
})}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, Al)
|
|
1091
1099
|
]),
|
|
1092
1100
|
_: 2
|
|
1093
1101
|
}, 1032, ["legendSet", "config"]))), 128))
|
|
@@ -1095,23 +1103,23 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
1095
1103
|
e.value.style.chart.legend.show ? m("", !0) : (n(), i("div", {
|
|
1096
1104
|
key: 8,
|
|
1097
1105
|
ref_key: "chartLegend",
|
|
1098
|
-
ref:
|
|
1106
|
+
ref: ie
|
|
1099
1107
|
}, [
|
|
1100
|
-
x(l.$slots, "legend", { legend:
|
|
1108
|
+
x(l.$slots, "legend", { legend: pe.value }, void 0, !0)
|
|
1101
1109
|
], 512)),
|
|
1102
1110
|
l.$slots.source ? (n(), i("div", {
|
|
1103
1111
|
key: 9,
|
|
1104
1112
|
ref_key: "source",
|
|
1105
|
-
ref:
|
|
1113
|
+
ref: Ne,
|
|
1106
1114
|
dir: "auto"
|
|
1107
1115
|
}, [
|
|
1108
1116
|
x(l.$slots, "source", {}, void 0, !0)
|
|
1109
1117
|
], 512)) : m("", !0),
|
|
1110
|
-
Q.value ? (n(),
|
|
1118
|
+
Q.value ? (n(), B(r(pt), {
|
|
1111
1119
|
key: 10,
|
|
1112
1120
|
hideDetails: "",
|
|
1113
1121
|
config: {
|
|
1114
|
-
open:
|
|
1122
|
+
open: $.value.showTable,
|
|
1115
1123
|
maxHeight: 1e4,
|
|
1116
1124
|
body: {
|
|
1117
1125
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -1124,32 +1132,32 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
1124
1132
|
}
|
|
1125
1133
|
}, {
|
|
1126
1134
|
content: L(() => [
|
|
1127
|
-
(n(),
|
|
1128
|
-
key: `table_${
|
|
1135
|
+
(n(), B(r(yt), {
|
|
1136
|
+
key: `table_${Ie.value}`,
|
|
1129
1137
|
colNames: le.value.colNames,
|
|
1130
1138
|
head: le.value.head,
|
|
1131
1139
|
body: le.value.body,
|
|
1132
1140
|
config: le.value.config,
|
|
1133
1141
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1134
|
-
onClose: s[2] || (s[2] = (a) =>
|
|
1142
|
+
onClose: s[2] || (s[2] = (a) => $.value.showTable = !1)
|
|
1135
1143
|
}, {
|
|
1136
1144
|
th: L(({ th: a }) => [
|
|
1137
1145
|
g("div", {
|
|
1138
1146
|
innerHTML: a,
|
|
1139
1147
|
style: { display: "flex", "align-items": "center" }
|
|
1140
|
-
}, null, 8,
|
|
1148
|
+
}, null, 8, Il)
|
|
1141
1149
|
]),
|
|
1142
1150
|
td: L(({ td: a }) => [
|
|
1143
|
-
|
|
1151
|
+
Et(A(a.name || a), 1)
|
|
1144
1152
|
]),
|
|
1145
1153
|
_: 1
|
|
1146
1154
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
1147
1155
|
]),
|
|
1148
1156
|
_: 1
|
|
1149
1157
|
}, 8, ["config"])) : m("", !0)
|
|
1150
|
-
], 46,
|
|
1158
|
+
], 46, rl));
|
|
1151
1159
|
}
|
|
1152
|
-
},
|
|
1160
|
+
}, Wl = /* @__PURE__ */ nl(Vl, [["__scopeId", "data-v-4c602cbf"]]);
|
|
1153
1161
|
export {
|
|
1154
|
-
|
|
1162
|
+
Wl as default
|
|
1155
1163
|
};
|