vue-data-ui 2.15.0 → 2.15.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/dist/{Arrow-DKw6950J.js → Arrow-DwANSJOY.js} +1 -1
- package/dist/{BaseDraggableDialog-BO8fFfAb.js → BaseDraggableDialog-DQdF6qOC.js} +2 -2
- package/dist/{BaseIcon-JM7bAYf6.js → BaseIcon-CYiu1cpW.js} +1 -1
- package/dist/{ColorPicker-CtdrdDuN.js → ColorPicker-CnQrtzVM.js} +2 -2
- package/dist/{DataTable-CD2q7tjj.js → DataTable-Cm_GJw0b.js} +2 -2
- package/dist/{Legend-R-8Q66YR.js → Legend-CgtCMjDL.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DXUlGXql.js → NonSvgPenAndPaper-CFa5qMqz.js} +3 -3
- package/dist/{PenAndPaper-lvQKUG-x.js → PenAndPaper-CF8MOhzS.js} +3 -3
- package/dist/{Shape-CY4386Ox.js → Shape-DWUzGGp4.js} +1 -1
- package/dist/{Slicer-DcqyQpMv.js → Slicer-DZ7IzAkP.js} +2 -2
- package/dist/{SparkTooltip-DQbXpDUg.js → SparkTooltip-BdeQT9Z9.js} +1 -1
- package/dist/{Title-DX1Pj6u8.js → Title-CSUbkA4W.js} +1 -1
- package/dist/{Tooltip-jN48xe9l.js → Tooltip-wFU7JwQL.js} +1 -1
- package/dist/{UserOptions-DYC8tFSC.js → UserOptions-C72U1mPN.js} +2 -2
- package/dist/{dom-to-png-DgmC_4tW.js → dom-to-png-DeqUSL_Y.js} +1 -1
- package/dist/{img-B90c22Kx.js → img-zmN6-yO1.js} +1 -1
- package/dist/{index-qLjCmB1J.js → index-CFxgtqnt.js} +1 -1
- package/dist/{pdf-FFi0pe-v.js → pdf-M2xyR2QC.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-Cv2n6auT.js → useNestedProp-Cwa5NEME.js} +1 -1
- package/dist/{usePrinter-Dh3NHc5Q.js → usePrinter-AfZAUxa7.js} +2 -2
- package/dist/{vue-data-ui-8wiBgcV4.js → vue-data-ui-CJ7CvGLc.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-DdUMyN0e.js → vue-ui-3d-bar-BOGfsBpk.js} +5 -5
- package/dist/{vue-ui-accordion-C9TQ7MO4.js → vue-ui-accordion-un8Cf2VZ.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Dhy5XNw5.js → vue-ui-age-pyramid-CWyGWQe8.js} +5 -5
- package/dist/{vue-ui-annotator-DV1apulf.js → vue-ui-annotator-CDhTSwXn.js} +2 -2
- package/dist/{vue-ui-bullet-BdI1gdbT.js → vue-ui-bullet-DiksLI4z.js} +6 -6
- package/dist/{vue-ui-candlestick-D38UytRA.js → vue-ui-candlestick-C8IGwjcr.js} +6 -6
- package/dist/{vue-ui-carousel-table-upPKN2Ap.js → vue-ui-carousel-table-CCvksAgG.js} +4 -4
- package/dist/{vue-ui-chestnut-D2Jw2GKp.js → vue-ui-chestnut-DcUz8diI.js} +4 -4
- package/dist/{vue-ui-chord-D-N7F12j.js → vue-ui-chord-BlVV-YuE.js} +7 -7
- package/dist/{vue-ui-circle-pack-CHDE9pKa.js → vue-ui-circle-pack-TjeTNtjm.js} +5 -5
- package/dist/{vue-ui-cursor-BshRfAz-.js → vue-ui-cursor-CS3QT6QH.js} +2 -2
- package/dist/{vue-ui-dashboard-DcxMfQbm.js → vue-ui-dashboard-D48zFeQp.js} +62 -62
- package/dist/{vue-ui-digits-CJrt5BJ1.js → vue-ui-digits-DPnLXvr7.js} +2 -2
- package/dist/{vue-ui-donut-CnL_oyDf.js → vue-ui-donut-DVqw5vtF.js} +98 -98
- package/dist/{vue-ui-donut-evolution-Ds3gml6r.js → vue-ui-donut-evolution-DRtuLXs1.js} +7 -7
- package/dist/{vue-ui-dumbbell-9LSenoFZ.js → vue-ui-dumbbell-BUG2lBqH.js} +6 -6
- package/dist/{vue-ui-flow-C22v5GN2.js → vue-ui-flow-DQnOvqqZ.js} +6 -6
- package/dist/{vue-ui-funnel-B1nlsC-X.js → vue-ui-funnel-CWnwh3ot.js} +5 -5
- package/dist/{vue-ui-galaxy-B6BpVGEN.js → vue-ui-galaxy-Cw8wUzZc.js} +4 -4
- package/dist/{vue-ui-gauge-CxIA82Oi.js → vue-ui-gauge-Ctj-2pjJ.js} +5 -5
- package/dist/{vue-ui-gizmo-DoKv0gEe.js → vue-ui-gizmo-CRR5ELx2.js} +2 -2
- package/dist/{vue-ui-heatmap-DHZfILtm.js → vue-ui-heatmap-CidNRz38.js} +6 -6
- package/dist/{vue-ui-history-plot-CA3K02gG.js → vue-ui-history-plot-CXsCloRw.js} +6 -6
- package/dist/{vue-ui-kpi-Cl4-a765.js → vue-ui-kpi-B_d2ZvBt.js} +3 -3
- package/dist/{vue-ui-mini-loader-otB8K5br.js → vue-ui-mini-loader-BZl8N6l8.js} +2 -2
- package/dist/{vue-ui-molecule-Cpzuuc_E.js → vue-ui-molecule-Crjs9G1f.js} +4 -4
- package/dist/{vue-ui-mood-radar-C9gjpo76.js → vue-ui-mood-radar-Cb3mGtHM.js} +6 -6
- package/dist/{vue-ui-nested-donuts-DIMdD7XN.js → vue-ui-nested-donuts-CXJOUrH9.js} +259 -258
- package/dist/{vue-ui-onion-DZuOWHN2.js → vue-ui-onion-C5Gii_OS.js} +6 -6
- package/dist/{vue-ui-parallel-coordinate-plot-DFaCAOJ4.js → vue-ui-parallel-coordinate-plot-B47cE7x1.js} +7 -7
- package/dist/{vue-ui-quadrant-B69rCR3d.js → vue-ui-quadrant-BoUV_9eX.js} +7 -7
- package/dist/{vue-ui-quick-chart-D3ViBIuY.js → vue-ui-quick-chart-Cdh-VrA5.js} +5 -5
- package/dist/{vue-ui-radar-CL29WxOp.js → vue-ui-radar-6qaFOhCO.js} +6 -6
- package/dist/{vue-ui-rating-CSUNb7yY.js → vue-ui-rating-BVOAx0Z9.js} +2 -2
- package/dist/{vue-ui-relation-circle-MKe1JnkD.js → vue-ui-relation-circle-Dca25bGQ.js} +5 -5
- package/dist/{vue-ui-ridgeline-WutbT4di.js → vue-ui-ridgeline-8gaNTH3e.js} +7 -7
- package/dist/{vue-ui-rings-DrZTS5Im.js → vue-ui-rings-vP9LLpEg.js} +7 -7
- package/dist/{vue-ui-scatter-BlLXM8Bx.js → vue-ui-scatter-KVB6x4QY.js} +7 -7
- package/dist/{vue-ui-skeleton-Cj6SRkhT.js → vue-ui-skeleton-D6E8A35W.js} +2 -2
- package/dist/{vue-ui-smiley-DUydiLLl.js → vue-ui-smiley-DYTOHlaK.js} +2 -2
- package/dist/{vue-ui-spark-trend-CvmlasIX.js → vue-ui-spark-trend-BARGEqPt.js} +3 -3
- package/dist/{vue-ui-sparkbar-Dz6SDThS.js → vue-ui-sparkbar-Bu5AgACq.js} +3 -3
- package/dist/{vue-ui-sparkgauge-D2JyRos2.js → vue-ui-sparkgauge-Bw-TfafI.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-BdI9frTN.js → vue-ui-sparkhistogram-DFF1Q-Oh.js} +4 -4
- package/dist/{vue-ui-sparkline-BAISGFMq.js → vue-ui-sparkline-BVi5o4JQ.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-Da7IAbHx.js → vue-ui-sparkstackbar-Dj5979cI.js} +3 -3
- package/dist/{vue-ui-stackbar-eMnoUkhf.js → vue-ui-stackbar-BS-i25iw.js} +8 -8
- package/dist/{vue-ui-strip-plot-DYUHvHpY.js → vue-ui-strip-plot-EzMEy1tY.js} +6 -6
- package/dist/{vue-ui-table-CB6cwGXN.js → vue-ui-table-D09r27CS.js} +3 -3
- package/dist/{vue-ui-table-heatmap-CPk8caYe.js → vue-ui-table-heatmap-DmMBhZEy.js} +5 -5
- package/dist/{vue-ui-table-sparkline-NBtUQVOW.js → vue-ui-table-sparkline-DsahaIU8.js} +4 -4
- package/dist/{vue-ui-thermometer-1QS5hzkW.js → vue-ui-thermometer-CIPWWgjC.js} +5 -5
- package/dist/{vue-ui-timer-C0n7n4ne.js → vue-ui-timer-By4e5K_e.js} +4 -4
- package/dist/{vue-ui-tiremarks-DfBTlpK1.js → vue-ui-tiremarks-D99xRKxa.js} +5 -5
- package/dist/{vue-ui-treemap-BTvd5pVa.js → vue-ui-treemap-BEVSWBXq.js} +7 -7
- package/dist/{vue-ui-vertical-bar-COH9EX2H.js → vue-ui-vertical-bar-CBDSbJ47.js} +8 -8
- package/dist/{vue-ui-waffle-BdDGN-F-.js → vue-ui-waffle-CBtRK0VM.js} +7 -7
- package/dist/{vue-ui-wheel-Cd8GfuiY.js → vue-ui-wheel-BeKXUTAO.js} +5 -5
- package/dist/{vue-ui-word-cloud-BquWmmCH.js → vue-ui-word-cloud-14WZg5tB.js} +5 -5
- package/dist/{vue-ui-world-BX4K7BvL.js → vue-ui-world-BRn7KBHE.js} +5 -5
- package/dist/{vue-ui-xy-jhm3Dnsm.js → vue-ui-xy-Dcy4PxLW.js} +15 -15
- package/dist/{vue-ui-xy-canvas-BwJTSCIj.js → vue-ui-xy-canvas-CXYQlPPC.js} +7 -7
- package/package.json +1 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { _ as
|
|
11
|
-
const
|
|
1
|
+
import { defineAsyncComponent as E, computed as k, ref as v, watch as tt, onMounted as lt, nextTick as at, shallowRef as ot, onBeforeUnmount as Mt, createElementBlock as d, openBlock as n, unref as r, normalizeStyle as se, normalizeClass as U, createBlock as R, createCommentVNode as g, createVNode as st, createSlots as Et, withCtx as L, renderSlot as x, normalizeProps as Y, guardReactiveProps as X, createElementVNode as m, Fragment as T, renderList as O, toDisplayString as S, withDirectives as ut, vShow as nt, createTextVNode as ue } from "vue";
|
|
2
|
+
import { u as Ut, c as Rt, t as Bt, p as Ce, a as Gt, H as D, o as Yt, e as H, b as Xt, d as Ht, m as rt, f as N, X as Wt, s as it, L as qt, k as _e, n as W, i as K, x as dt, q as Jt, r as Kt, y as Qt, v as Te, T as ct } from "./index-CFxgtqnt.js";
|
|
3
|
+
import { t as Zt, u as jt } from "./useResponsive-JZ9xq-JV.js";
|
|
4
|
+
import { u as vt } from "./useNestedProp-Cwa5NEME.js";
|
|
5
|
+
import { u as el } from "./usePrinter-AfZAUxa7.js";
|
|
6
|
+
import { u as tl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as ll } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import al from "./Title-CSUbkA4W.js";
|
|
9
|
+
import ol from "./Legend-CgtCMjDL.js";
|
|
10
|
+
import { _ as sl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
+
const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["id"], dl = ["offset", "stop-color"], cl = ["offset", "stop-opacity"], vl = ["id"], hl = ["id"], fl = ["id"], pl = ["flood-color"], yl = ["d", "fill", "stroke", "stroke-width", "filter"], bl = { key: 1 }, gl = ["d", "fill"], ml = { key: 2 }, wl = ["x", "y", "font-size", "font-weight", "fill"], $l = { key: 3 }, kl = ["filter"], Ll = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], xl = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], Cl = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], _l = ["d", "fill", "onMouseenter", "onClick"], Tl = {
|
|
12
12
|
key: 5,
|
|
13
13
|
class: "vue-data-ui-watermark"
|
|
14
|
-
},
|
|
14
|
+
}, Nl = {
|
|
15
15
|
key: 0,
|
|
16
16
|
class: "vue-ui-nested-donuts-legend-title"
|
|
17
17
|
}, Ol = ["onClick"], Fl = ["innerHTML"], Al = {
|
|
@@ -31,38 +31,38 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
emits: ["selectLegend", "selectDatapoint"],
|
|
34
|
-
setup(
|
|
35
|
-
const
|
|
36
|
-
function
|
|
37
|
-
|
|
34
|
+
setup(ht, { expose: ft, emit: pt }) {
|
|
35
|
+
const yt = E(() => import("./vue-ui-accordion-un8Cf2VZ.js")), bt = E(() => import("./DataTable-Cm_GJw0b.js")), gt = E(() => import("./PackageVersion-gLNy4C0t.js")), mt = E(() => import("./PenAndPaper-CF8MOhzS.js")), wt = E(() => import("./vue-ui-skeleton-D6E8A35W.js")), $t = E(() => import("./Tooltip-wFU7JwQL.js")), kt = E(() => import("./UserOptions-C72U1mPN.js")), { vue_ui_nested_donuts: Lt } = Ut(), C = ht, Q = k(() => !!C.dataset && C.dataset.length), y = v(Rt()), ne = v(!1), re = v(""), xt = v(null), Ne = v(0), q = v(null), Oe = v(null), ie = v(null), Fe = v(null), Ae = v(null), Ie = v(0), Se = v(0), Ve = v(0), z = v(!0), M = v([]), J = v([]), B = v(!1);
|
|
36
|
+
function Ct(l) {
|
|
37
|
+
B.value = l, Ne.value += 1;
|
|
38
38
|
}
|
|
39
39
|
const e = k({
|
|
40
|
-
get: () =>
|
|
40
|
+
get: () => Me(),
|
|
41
41
|
set: (l) => l
|
|
42
|
-
}), { userOptionsVisible: de, setUserOptionsVisibility:
|
|
42
|
+
}), { userOptionsVisible: de, setUserOptionsVisibility: Pe, keepUserOptionState: De } = tl({ config: e.value }), { svgRef: ze } = ll({
|
|
43
43
|
config: e.value.style.chart.title
|
|
44
44
|
});
|
|
45
|
-
function
|
|
46
|
-
const l =
|
|
45
|
+
function Me() {
|
|
46
|
+
const l = vt({
|
|
47
47
|
userConfig: C.config,
|
|
48
|
-
defaultConfig:
|
|
48
|
+
defaultConfig: Lt
|
|
49
49
|
});
|
|
50
50
|
return l.theme ? {
|
|
51
|
-
...
|
|
52
|
-
userConfig:
|
|
51
|
+
...vt({
|
|
52
|
+
userConfig: Gt.vue_ui_nested_donuts[l.theme] || C.config,
|
|
53
53
|
defaultConfig: l
|
|
54
54
|
}),
|
|
55
|
-
customPalette:
|
|
55
|
+
customPalette: Bt[l.theme] || Ce
|
|
56
56
|
} : l;
|
|
57
57
|
}
|
|
58
|
-
|
|
58
|
+
tt(
|
|
59
59
|
() => C.config,
|
|
60
60
|
(l) => {
|
|
61
|
-
e.value =
|
|
61
|
+
e.value = Me(), de.value = !e.value.userOptions.showOnChartHover, ce(), Ie.value += 1, Se.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, h.value.width = e.value.style.chart.width, h.value.height = e.value.style.chart.height;
|
|
62
62
|
},
|
|
63
63
|
{ deep: !0 }
|
|
64
64
|
);
|
|
65
|
-
const
|
|
65
|
+
const Ee = k(() => {
|
|
66
66
|
const { top: l, right: s, bottom: a, left: o } = e.value.style.chart.padding;
|
|
67
67
|
return {
|
|
68
68
|
css: `padding:${l}px ${s}px ${a}px ${o}px`,
|
|
@@ -72,25 +72,25 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
72
72
|
left: o
|
|
73
73
|
};
|
|
74
74
|
});
|
|
75
|
-
function
|
|
75
|
+
function _t(l, s = 1e3, a = 50) {
|
|
76
76
|
return new Promise((o) => {
|
|
77
77
|
const t = l.length;
|
|
78
78
|
M.value = Array(t).fill(0), J.value = [];
|
|
79
79
|
let u = 0;
|
|
80
|
-
l.forEach((
|
|
80
|
+
l.forEach((i, f) => {
|
|
81
81
|
setTimeout(() => {
|
|
82
82
|
const I = performance.now();
|
|
83
|
-
function
|
|
84
|
-
const _ = Math.min((p - I) / s, 1), ge =
|
|
83
|
+
function c(p) {
|
|
84
|
+
const _ = Math.min((p - I) / s, 1), ge = ct(_), me = i * ge;
|
|
85
85
|
M.value[f] = me, M.value = [...M.value];
|
|
86
86
|
const ae = [];
|
|
87
87
|
let we = 0;
|
|
88
88
|
C.dataset.forEach((oe, $e) => {
|
|
89
|
-
const
|
|
90
|
-
(Le, xe) => Le + D(xe.values).reduce((
|
|
89
|
+
const Vt = Te(oe.series.reduce(
|
|
90
|
+
(Le, xe) => Le + Te(D(xe.values).reduce((Dt, zt) => Dt + zt, 0)),
|
|
91
91
|
0
|
|
92
|
-
),
|
|
93
|
-
ke >
|
|
92
|
+
)), Pt = Te(M.value.slice(we, we + oe.series.length).reduce((Le, xe) => Le + xe, 0)), ke = Vt - Pt;
|
|
93
|
+
ke > Number.MIN_VALUE && ae.push({
|
|
94
94
|
name: "__ghost__",
|
|
95
95
|
arcOf: oe.name,
|
|
96
96
|
arcOfId: `${y.value}_${$e}`,
|
|
@@ -103,21 +103,21 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
103
103
|
absoluteValues: [],
|
|
104
104
|
ghost: !0
|
|
105
105
|
}), we += oe.series.length;
|
|
106
|
-
}), J.value = ae, _ < 1 ? requestAnimationFrame(
|
|
106
|
+
}), J.value = ae, _ < 1 ? requestAnimationFrame(c) : (u += 1, u === t && o());
|
|
107
107
|
}
|
|
108
|
-
requestAnimationFrame(
|
|
108
|
+
requestAnimationFrame(c);
|
|
109
109
|
}, f * a);
|
|
110
110
|
});
|
|
111
111
|
});
|
|
112
112
|
}
|
|
113
|
-
|
|
113
|
+
lt(async () => {
|
|
114
114
|
if (ce(), e.value.startAnimation?.show) {
|
|
115
115
|
const s = C.dataset.flatMap((a) => a.series).map(
|
|
116
116
|
(a) => D(a.values).reduce((o, t) => o + t, 0)
|
|
117
117
|
);
|
|
118
118
|
M.value = s.map(() => 0), z.value = !0, J.value = C.dataset.map((a, o) => {
|
|
119
119
|
const t = a.series.reduce(
|
|
120
|
-
(u,
|
|
120
|
+
(u, i) => u + D(i.values).reduce((f, I) => f + I, 0),
|
|
121
121
|
0
|
|
122
122
|
);
|
|
123
123
|
return {
|
|
@@ -133,7 +133,7 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
133
133
|
absoluteValues: [],
|
|
134
134
|
ghost: !0
|
|
135
135
|
};
|
|
136
|
-
}), await
|
|
136
|
+
}), await at(), _t(
|
|
137
137
|
s,
|
|
138
138
|
e.value.startAnimation.durationMs,
|
|
139
139
|
e.value.startAnimation.staggerMs
|
|
@@ -143,23 +143,23 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
143
143
|
} else
|
|
144
144
|
z.value = !1;
|
|
145
145
|
});
|
|
146
|
-
const V =
|
|
147
|
-
|
|
146
|
+
const V = ot(null), G = ot(null);
|
|
147
|
+
lt(() => {
|
|
148
148
|
ce();
|
|
149
149
|
});
|
|
150
150
|
function ce() {
|
|
151
|
-
if (
|
|
151
|
+
if (Yt(C.dataset) && H({
|
|
152
152
|
componentName: "VueUiNestedDonuts",
|
|
153
153
|
type: "dataset"
|
|
154
154
|
}), e.value.responsive) {
|
|
155
|
-
const l =
|
|
156
|
-
const { width: s, height: a } =
|
|
155
|
+
const l = Zt(() => {
|
|
156
|
+
const { width: s, height: a } = jt({
|
|
157
157
|
chart: q.value,
|
|
158
158
|
title: e.value.style.chart.title.text ? Oe.value : null,
|
|
159
159
|
legend: e.value.style.chart.legend.show ? ie.value : null,
|
|
160
160
|
source: Fe.value,
|
|
161
161
|
noTitle: Ae.value,
|
|
162
|
-
padding:
|
|
162
|
+
padding: Ee.value
|
|
163
163
|
});
|
|
164
164
|
requestAnimationFrame(() => {
|
|
165
165
|
h.value.width = s, h.value.height = a;
|
|
@@ -168,14 +168,14 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
168
168
|
V.value && (G.value && V.value.unobserve(G.value), V.value.disconnect()), V.value = new ResizeObserver(l), G.value = q.value.parentNode, V.value.observe(G.value);
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
|
-
|
|
171
|
+
Mt(() => {
|
|
172
172
|
V.value && (G.value && V.value.unobserve(G.value), V.value.disconnect());
|
|
173
173
|
});
|
|
174
|
-
const { isPrinting:
|
|
174
|
+
const { isPrinting: Ue, isImaging: Re, generatePdf: Be, generateImage: Ge } = el({
|
|
175
175
|
elementId: `nested_donuts_${y.value}`,
|
|
176
176
|
fileName: e.value.style.chart.title.text || "vue-ui-nested-donuts",
|
|
177
177
|
options: e.value.userOptions.print
|
|
178
|
-
}),
|
|
178
|
+
}), Tt = k(() => e.value.userOptions.show && !e.value.style.chart.title.text), Nt = k(() => Xt(e.value.customPalette)), $ = v({
|
|
179
179
|
dataLabels: {
|
|
180
180
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
181
181
|
},
|
|
@@ -184,26 +184,26 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
184
184
|
}), h = v({
|
|
185
185
|
width: e.value.style.chart.width,
|
|
186
186
|
height: e.value.style.chart.height
|
|
187
|
-
}),
|
|
187
|
+
}), Ye = pt;
|
|
188
188
|
function Ot({ datapoint: l, index: s }) {
|
|
189
|
-
|
|
189
|
+
Ye("selectDatapoint", { datapoint: l, index: s });
|
|
190
190
|
}
|
|
191
|
-
function
|
|
191
|
+
function Xe({
|
|
192
192
|
from: l,
|
|
193
193
|
to: s,
|
|
194
194
|
duration: a,
|
|
195
195
|
onUpdate: o,
|
|
196
196
|
onDone: t,
|
|
197
|
-
easing: u =
|
|
197
|
+
easing: u = ct
|
|
198
198
|
}) {
|
|
199
|
-
const
|
|
199
|
+
const i = performance.now();
|
|
200
200
|
function f(I) {
|
|
201
|
-
const
|
|
202
|
-
o(_,
|
|
201
|
+
const c = Math.min((I - i) / a, 1), p = u(c), _ = l + (s - l) * p;
|
|
202
|
+
o(_, c), c < 1 ? requestAnimationFrame(f) : (o(s, 1), t && t());
|
|
203
203
|
}
|
|
204
204
|
requestAnimationFrame(f);
|
|
205
205
|
}
|
|
206
|
-
const w = v([]),
|
|
206
|
+
const w = v([]), F = k(() => {
|
|
207
207
|
C.dataset.forEach((s, a) => {
|
|
208
208
|
[null, void 0].includes(s.name) && H({
|
|
209
209
|
componentName: "VueUiNestedDonuts",
|
|
@@ -242,7 +242,7 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
242
242
|
datasetIndex: a,
|
|
243
243
|
id: `${y.value}_${a}`,
|
|
244
244
|
series: s.series.map((o, t) => {
|
|
245
|
-
const u = D(o.values).reduce((
|
|
245
|
+
const u = D(o.values).reduce((i, f) => i + f, 0);
|
|
246
246
|
return {
|
|
247
247
|
name: o.name,
|
|
248
248
|
arcOf: s.name,
|
|
@@ -250,13 +250,13 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
250
250
|
id: `${y.value}_${a}_${t}`,
|
|
251
251
|
seriesIndex: t,
|
|
252
252
|
datasetIndex: a,
|
|
253
|
-
color:
|
|
253
|
+
color: Ht(o.color) || Nt.value[t] || Ce[t % Ce.length],
|
|
254
254
|
value: z.value ? M.value[l++] ?? 0 : u,
|
|
255
255
|
absoluteValues: o.values || []
|
|
256
256
|
};
|
|
257
257
|
})
|
|
258
258
|
}));
|
|
259
|
-
}),
|
|
259
|
+
}), A = k(() => Math.min(h.value.height, h.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)), He = k(() => [...F.value].map((l, s) => {
|
|
260
260
|
const a = l.series.filter((o) => !w.value.includes(o.id)).map((o) => o.value).reduce((o, t) => o + t, 0);
|
|
261
261
|
return {
|
|
262
262
|
...l,
|
|
@@ -273,77 +273,78 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
273
273
|
a.includes(l[t]) && (o += 1);
|
|
274
274
|
return o < s;
|
|
275
275
|
}
|
|
276
|
-
const b = v(
|
|
277
|
-
|
|
278
|
-
() =>
|
|
276
|
+
const b = v(He.value);
|
|
277
|
+
tt(
|
|
278
|
+
() => He.value,
|
|
279
279
|
(l) => b.value = l
|
|
280
280
|
);
|
|
281
281
|
function ve(l) {
|
|
282
|
-
|
|
282
|
+
Ye("selectLegend", l);
|
|
283
283
|
const s = C.dataset.flatMap(
|
|
284
|
-
(
|
|
284
|
+
(c, p) => c.series.map((_, ge) => ({
|
|
285
285
|
value: D(_.values).reduce((me, ae) => me + ae, 0),
|
|
286
286
|
id: `${y.value}_${p}_${ge}`,
|
|
287
287
|
arcOfId: `${y.value}_${p}`
|
|
288
288
|
}))
|
|
289
|
-
).find((
|
|
289
|
+
).find((c) => c.id === l.id);
|
|
290
290
|
if (!s) return;
|
|
291
|
-
const a =
|
|
291
|
+
const a = F.value.flatMap((c) => c.series).find((c) => c.id === l.id)?.value ?? 0, o = b.value.flatMap((c) => c.series).find((c) => c.id === l.id);
|
|
292
292
|
let u = o ? o.value : 0;
|
|
293
|
-
const
|
|
294
|
-
(
|
|
293
|
+
const i = F.value.find(
|
|
294
|
+
(c) => c.id === s.arcOfId
|
|
295
295
|
);
|
|
296
|
-
if (!
|
|
297
|
-
const f =
|
|
296
|
+
if (!i) return;
|
|
297
|
+
const f = i.series.map((c) => c.id), I = Ft(
|
|
298
298
|
f,
|
|
299
299
|
f.length - 1,
|
|
300
300
|
w.value
|
|
301
301
|
);
|
|
302
|
-
w.value.includes(l.id) ? (w.value = w.value.filter((
|
|
302
|
+
w.value.includes(l.id) ? (w.value = w.value.filter((c) => c !== l.id), e.value.serieToggleAnimation.show ? Xe({
|
|
303
303
|
from: u,
|
|
304
304
|
to: a,
|
|
305
305
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
306
|
-
onUpdate: (
|
|
306
|
+
onUpdate: (c) => {
|
|
307
307
|
b.value = b.value.map((p) => ({
|
|
308
308
|
...p,
|
|
309
|
-
series: p.series.map((_) => _.id === l.id ? { ..._, value:
|
|
309
|
+
series: p.series.map((_) => _.id === l.id ? { ..._, value: c } : _)
|
|
310
310
|
}));
|
|
311
311
|
}
|
|
312
|
-
}) : b.value = b.value.map((
|
|
313
|
-
...
|
|
314
|
-
series:
|
|
315
|
-
}))) : I && (e.value.serieToggleAnimation.show ?
|
|
312
|
+
}) : b.value = b.value.map((c) => ({
|
|
313
|
+
...c,
|
|
314
|
+
series: c.series.map((p) => p.id === l.id ? { ...p, value: a } : p)
|
|
315
|
+
}))) : I && (e.value.serieToggleAnimation.show ? Xe({
|
|
316
316
|
from: u,
|
|
317
317
|
to: 0,
|
|
318
318
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
319
|
-
onUpdate: (
|
|
319
|
+
onUpdate: (c) => {
|
|
320
320
|
b.value = b.value.map((p) => ({
|
|
321
321
|
...p,
|
|
322
|
-
series: p.series.map((_) => _.id === l.id ? { ..._, value:
|
|
322
|
+
series: p.series.map((_) => _.id === l.id ? { ..._, value: c } : _)
|
|
323
323
|
}));
|
|
324
324
|
},
|
|
325
325
|
onDone: () => {
|
|
326
326
|
w.value.push(l.id);
|
|
327
327
|
}
|
|
328
|
-
}) : (b.value = b.value.map((
|
|
329
|
-
...
|
|
330
|
-
series:
|
|
328
|
+
}) : (b.value = b.value.map((c) => ({
|
|
329
|
+
...c,
|
|
330
|
+
series: c.series.map((p) => p.id === l.id ? { ...p, value: 0 } : p)
|
|
331
331
|
})), w.value.push(l.id)));
|
|
332
332
|
}
|
|
333
|
-
const he = k(() =>
|
|
334
|
-
const a =
|
|
335
|
-
...
|
|
336
|
-
value:
|
|
333
|
+
const he = k(() => A.value / F.value.length * e.value.style.chart.layout.donut.spacingRatio), We = k(() => b.value.map((l, s) => A.value - s * A.value / F.value.length)), Z = k(() => b.value.map((l, s) => {
|
|
334
|
+
const a = Math.abs(l.series.map((i) => i.value).reduce((i, f) => i + f, 0)) > 0, o = A.value - s * A.value / b.value.length, t = z.value ? J.value.find((i) => i.datasetIndex === s) : null, u = [...l.series, ...t ? [t] : []].map((i) => ({
|
|
335
|
+
...i,
|
|
336
|
+
value: i.value < 1e-11 ? Number.MIN_VALUE : i.value
|
|
337
337
|
}));
|
|
338
338
|
return {
|
|
339
339
|
...l,
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
340
|
+
hasData: a,
|
|
341
|
+
radius: o,
|
|
342
|
+
donut: rt(
|
|
343
|
+
{ series: u },
|
|
343
344
|
h.value.width / 2,
|
|
344
345
|
h.value.height / 2,
|
|
345
|
-
|
|
346
|
-
|
|
346
|
+
o,
|
|
347
|
+
o,
|
|
347
348
|
1.99999,
|
|
348
349
|
2,
|
|
349
350
|
1,
|
|
@@ -352,34 +353,34 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
352
353
|
he.value
|
|
353
354
|
)
|
|
354
355
|
};
|
|
355
|
-
})),
|
|
356
|
-
const a = s *
|
|
356
|
+
})), qe = k(() => [...F.value].map((l, s) => {
|
|
357
|
+
const a = s * A.value / F.value.length;
|
|
357
358
|
return {
|
|
358
359
|
sizeRatio: a,
|
|
359
|
-
donut:
|
|
360
|
+
donut: rt(
|
|
360
361
|
{ series: [{ value: 1 }] },
|
|
361
362
|
h.value.width / 2,
|
|
362
363
|
h.value.height / 2,
|
|
363
|
-
|
|
364
|
-
|
|
364
|
+
A.value - a,
|
|
365
|
+
A.value - a,
|
|
365
366
|
1.99999,
|
|
366
367
|
2,
|
|
367
368
|
1,
|
|
368
369
|
360,
|
|
369
370
|
105.25,
|
|
370
|
-
|
|
371
|
+
A.value / F.value.length * e.value.style.chart.layout.donut.spacingRatio
|
|
371
372
|
)[0]
|
|
372
373
|
};
|
|
373
|
-
})),
|
|
374
|
+
})), Je = v(null), j = v(null), ee = v(null), fe = v(null);
|
|
374
375
|
function At({ datapoint: l, _relativeIndex: s, seriesIndex: a }) {
|
|
375
|
-
|
|
376
|
+
Je.value = l.arcOfId, j.value = l.id, ee.value = a, fe.value = {
|
|
376
377
|
datapoint: l,
|
|
377
378
|
seriesIndex: a,
|
|
378
379
|
series: b.value,
|
|
379
380
|
config: e.value
|
|
380
381
|
};
|
|
381
382
|
const o = e.value.style.chart.tooltip.customFormat;
|
|
382
|
-
if (
|
|
383
|
+
if (dt(o) && Qt(
|
|
383
384
|
() => o({
|
|
384
385
|
seriesIndex: a,
|
|
385
386
|
datapoint: l,
|
|
@@ -396,24 +397,24 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
396
397
|
else {
|
|
397
398
|
let t = "";
|
|
398
399
|
if (e.value.style.chart.tooltip.showAllItemsAtIndex && w.value.length === 0) {
|
|
399
|
-
const u = b.value.map((
|
|
400
|
-
u.forEach((
|
|
401
|
-
if (!
|
|
400
|
+
const u = b.value.map((i) => i.series.find((f) => f.seriesIndex === a));
|
|
401
|
+
u.forEach((i, f) => {
|
|
402
|
+
if (!i) return "";
|
|
402
403
|
t += `
|
|
403
404
|
<div style="display:flex; flex-direction: column; justify-content:flex-start; align-items:flex-start;padding:6px 0; ${f < u.length - 1 ? `border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor}` : ""}">
|
|
404
405
|
<div style="display:flex; flex-direction: row; gap: 3px; justify-content:flex-start; align-items:center;">
|
|
405
406
|
<svg viewBox="0 0 20 20" height="${e.value.style.chart.tooltip.fontSize}" width="${e.value.style.chart.tooltip.fontSize}">
|
|
406
|
-
<circle cx="10" cy="10" r="10" fill="${
|
|
407
|
+
<circle cx="10" cy="10" r="10" fill="${i.color}"/>
|
|
407
408
|
</svg>
|
|
408
409
|
<span>
|
|
409
|
-
${
|
|
410
|
+
${i.arcOf ?? ""} - ${i.name}
|
|
410
411
|
</span>
|
|
411
412
|
</div>
|
|
412
413
|
<span>
|
|
413
414
|
${e.value.style.chart.tooltip.showValue ? `<b>${K(
|
|
414
415
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
415
416
|
l.value,
|
|
416
|
-
|
|
417
|
+
N({
|
|
417
418
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
418
419
|
v: l.value,
|
|
419
420
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -422,8 +423,8 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
422
423
|
{ datapoint: l, seriesIndex: a }
|
|
423
424
|
)}
|
|
424
425
|
</b>` : ""}
|
|
425
|
-
${e.value.style.chart.tooltip.showPercentage ? `(${
|
|
426
|
-
v:
|
|
426
|
+
${e.value.style.chart.tooltip.showPercentage ? `(${N({
|
|
427
|
+
v: i.proportion * 100,
|
|
427
428
|
s: "%",
|
|
428
429
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
429
430
|
})})` : ""}
|
|
@@ -435,18 +436,18 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
435
436
|
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(
|
|
436
437
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
437
438
|
l.value,
|
|
438
|
-
|
|
439
|
+
N({
|
|
439
440
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
440
441
|
v: l.value,
|
|
441
442
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
442
443
|
r: e.value.style.chart.tooltip.roundingValue
|
|
443
444
|
}),
|
|
444
445
|
{ datapoint: l, seriesIndex: a }
|
|
445
|
-
)}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? t += `<span>(${
|
|
446
|
+
)}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? t += `<span>(${N({
|
|
446
447
|
v: l.proportion * 100,
|
|
447
448
|
s: "%",
|
|
448
449
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
449
|
-
})})</span></div>` : t += `<b>${
|
|
450
|
+
})})</span></div>` : t += `<b>${N({
|
|
450
451
|
v: l.proportion * 100,
|
|
451
452
|
s: "%",
|
|
452
453
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
@@ -458,7 +459,7 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
458
459
|
function pe(l) {
|
|
459
460
|
return l.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
460
461
|
}
|
|
461
|
-
function
|
|
462
|
+
function Ke(l, s) {
|
|
462
463
|
if (!e.value.useBlurOnHover)
|
|
463
464
|
return "";
|
|
464
465
|
if (e.value.style.chart.tooltip.showAllItemsAtIndex && w.value.length === 0)
|
|
@@ -466,22 +467,22 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
466
467
|
if (!e.value.style.chart.tooltip.showAllItemsAtIndex || w.value.length)
|
|
467
468
|
return [null, void 0].includes(j.value) || j.value === l.id ? "" : `url(#blur_${y.value})`;
|
|
468
469
|
}
|
|
469
|
-
const ye = k(() =>
|
|
470
|
+
const ye = k(() => F.value.map((l, s) => {
|
|
470
471
|
const a = l.series.filter(
|
|
471
472
|
(t) => !w.value.includes(t.id)
|
|
472
473
|
), o = z.value ? a.map((t) => {
|
|
473
474
|
const u = C.dataset[s].series.findIndex(
|
|
474
|
-
(
|
|
475
|
+
(i) => i.name === t.name
|
|
475
476
|
);
|
|
476
477
|
return D(
|
|
477
478
|
C.dataset[s].series[u].values
|
|
478
|
-
).reduce((
|
|
479
|
+
).reduce((i, f) => i + f, 0);
|
|
479
480
|
}).reduce((t, u) => t + u, 0) : a.map((t) => t.value).reduce((t, u) => t + u, 0);
|
|
480
481
|
return l.series.map((t, u) => {
|
|
481
|
-
const
|
|
482
|
-
(I,
|
|
482
|
+
const i = D(C.dataset[s].series[u].values).reduce(
|
|
483
|
+
(I, c) => I + c,
|
|
483
484
|
0
|
|
484
|
-
), f = z.value ?
|
|
485
|
+
), f = z.value ? i : t.value;
|
|
485
486
|
return {
|
|
486
487
|
name: t.name,
|
|
487
488
|
color: t.color,
|
|
@@ -497,7 +498,7 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
497
498
|
isSegregated: w.value.includes(t.id)
|
|
498
499
|
};
|
|
499
500
|
});
|
|
500
|
-
})),
|
|
501
|
+
})), It = k(() => ({
|
|
501
502
|
cy: "nested-donuts-legend",
|
|
502
503
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
503
504
|
color: e.value.style.chart.legend.color,
|
|
@@ -512,8 +513,8 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
512
513
|
}))), s = b.value.flatMap((a) => a.series.map((o) => o.value));
|
|
513
514
|
return { head: l, body: s };
|
|
514
515
|
});
|
|
515
|
-
function
|
|
516
|
-
|
|
516
|
+
function Qe(l = null) {
|
|
517
|
+
at(() => {
|
|
517
518
|
const s = P.value.head.map((t, u) => [
|
|
518
519
|
[t.name],
|
|
519
520
|
[P.value.body[u]],
|
|
@@ -524,8 +525,8 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
524
525
|
[e.value.style.chart.title.text],
|
|
525
526
|
[e.value.style.chart.title.subtitle.text],
|
|
526
527
|
[[""], ["val"], ["%"]]
|
|
527
|
-
].concat(s), o =
|
|
528
|
-
l ? l(o) :
|
|
528
|
+
].concat(s), o = Jt(a);
|
|
529
|
+
l ? l(o) : Kt({
|
|
529
530
|
csvContent: o,
|
|
530
531
|
title: e.value.style.chart.title.text || "vue-ui-nested-donuts"
|
|
531
532
|
});
|
|
@@ -537,7 +538,7 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
537
538
|
e.value.table.columnNames.value,
|
|
538
539
|
e.value.table.columnNames.percentage
|
|
539
540
|
], s = P.value.head.map((t, u) => {
|
|
540
|
-
const
|
|
541
|
+
const i = N({
|
|
541
542
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
542
543
|
v: P.value.body[u],
|
|
543
544
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -548,8 +549,8 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
548
549
|
color: t.color,
|
|
549
550
|
name: t.name
|
|
550
551
|
},
|
|
551
|
-
|
|
552
|
-
isNaN(P.value.body[u] / t.total) ? "-" :
|
|
552
|
+
i,
|
|
553
|
+
isNaN(P.value.body[u] / t.total) ? "-" : N({
|
|
553
554
|
v: P.value.body[u] / t.total * 100,
|
|
554
555
|
s: "%",
|
|
555
556
|
r: e.value.table.td.roundingPercentage
|
|
@@ -579,62 +580,62 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
579
580
|
config: a
|
|
580
581
|
};
|
|
581
582
|
});
|
|
582
|
-
function
|
|
583
|
-
return
|
|
583
|
+
function St() {
|
|
584
|
+
return F.value;
|
|
584
585
|
}
|
|
585
|
-
function
|
|
586
|
+
function Ze() {
|
|
586
587
|
$.value.showTable = !$.value.showTable;
|
|
587
588
|
}
|
|
588
|
-
function
|
|
589
|
+
function je() {
|
|
589
590
|
$.value.dataLabels.show = !$.value.dataLabels.show;
|
|
590
591
|
}
|
|
591
|
-
function
|
|
592
|
+
function et() {
|
|
592
593
|
$.value.showTooltip = !$.value.showTooltip;
|
|
593
594
|
}
|
|
594
595
|
const le = v(!1);
|
|
595
596
|
function be() {
|
|
596
597
|
le.value = !le.value;
|
|
597
598
|
}
|
|
598
|
-
return
|
|
599
|
-
getData:
|
|
600
|
-
generatePdf:
|
|
601
|
-
generateCsv:
|
|
602
|
-
generateImage:
|
|
603
|
-
toggleTable:
|
|
604
|
-
toggleLabels:
|
|
605
|
-
toggleTooltip:
|
|
599
|
+
return ft({
|
|
600
|
+
getData: St,
|
|
601
|
+
generatePdf: Be,
|
|
602
|
+
generateCsv: Qe,
|
|
603
|
+
generateImage: Ge,
|
|
604
|
+
toggleTable: Ze,
|
|
605
|
+
toggleLabels: je,
|
|
606
|
+
toggleTooltip: et,
|
|
606
607
|
toggleAnnotator: be
|
|
607
|
-
}), (l, s) => (n(),
|
|
608
|
+
}), (l, s) => (n(), d("div", {
|
|
608
609
|
ref_key: "nestedDonutsChart",
|
|
609
610
|
ref: q,
|
|
610
|
-
class:
|
|
611
|
+
class: U(`vue-ui-nested-donuts ${B.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
611
612
|
style: se(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
612
613
|
id: `nested_donuts_${y.value}`,
|
|
613
|
-
onMouseenter: s[3] || (s[3] = () => r(
|
|
614
|
-
onMouseleave: s[4] || (s[4] = () => r(
|
|
614
|
+
onMouseenter: s[3] || (s[3] = () => r(Pe)(!0)),
|
|
615
|
+
onMouseleave: s[4] || (s[4] = () => r(Pe)(!1))
|
|
615
616
|
}, [
|
|
616
|
-
e.value.userOptions.buttons.annotator ? (n(),
|
|
617
|
+
e.value.userOptions.buttons.annotator ? (n(), R(r(mt), {
|
|
617
618
|
key: 0,
|
|
618
|
-
svgRef: r(
|
|
619
|
+
svgRef: r(ze),
|
|
619
620
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
620
621
|
color: e.value.style.chart.color,
|
|
621
622
|
active: le.value,
|
|
622
623
|
onClose: be
|
|
623
624
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
|
|
624
|
-
|
|
625
|
+
Tt.value ? (n(), d("div", {
|
|
625
626
|
key: 1,
|
|
626
627
|
ref_key: "noTitle",
|
|
627
628
|
ref: Ae,
|
|
628
629
|
class: "vue-data-ui-no-title-space",
|
|
629
630
|
style: "height:36px; width: 100%;background:transparent"
|
|
630
631
|
}, null, 512)) : g("", !0),
|
|
631
|
-
e.value.style.chart.title.text ? (n(),
|
|
632
|
+
e.value.style.chart.title.text ? (n(), d("div", {
|
|
632
633
|
key: 2,
|
|
633
634
|
ref_key: "chartTitle",
|
|
634
635
|
ref: Oe
|
|
635
636
|
}, [
|
|
636
|
-
(n(),
|
|
637
|
-
key: `title_${
|
|
637
|
+
(n(), R(al, {
|
|
638
|
+
key: `title_${Ie.value}`,
|
|
638
639
|
config: {
|
|
639
640
|
title: {
|
|
640
641
|
cy: "donut-div-title",
|
|
@@ -647,13 +648,13 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
647
648
|
}
|
|
648
649
|
}, null, 8, ["config"]))
|
|
649
650
|
], 512)) : g("", !0),
|
|
650
|
-
e.value.userOptions.show && Q.value && (r(
|
|
651
|
+
e.value.userOptions.show && Q.value && (r(De) || r(de)) ? (n(), R(r(kt), {
|
|
651
652
|
ref: "details",
|
|
652
|
-
key: `user_option_${
|
|
653
|
+
key: `user_option_${Ne.value}`,
|
|
653
654
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
654
655
|
color: e.value.style.chart.color,
|
|
655
|
-
isPrinting: r(
|
|
656
|
-
isImaging: r(
|
|
656
|
+
isPrinting: r(Ue),
|
|
657
|
+
isImaging: r(Re),
|
|
657
658
|
uid: y.value,
|
|
658
659
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
659
660
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -662,7 +663,7 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
662
663
|
hasTable: e.value.userOptions.buttons.table,
|
|
663
664
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
664
665
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
665
|
-
isFullscreen:
|
|
666
|
+
isFullscreen: B.value,
|
|
666
667
|
isTooltip: $.value.showTooltip,
|
|
667
668
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
668
669
|
chartElement: q.value,
|
|
@@ -670,18 +671,18 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
670
671
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
671
672
|
isAnnotation: le.value,
|
|
672
673
|
callbacks: e.value.userOptions.callbacks,
|
|
673
|
-
onToggleFullscreen:
|
|
674
|
-
onGeneratePdf: r(
|
|
675
|
-
onGenerateCsv:
|
|
676
|
-
onGenerateImage: r(
|
|
677
|
-
onToggleTable:
|
|
678
|
-
onToggleLabels:
|
|
679
|
-
onToggleTooltip:
|
|
674
|
+
onToggleFullscreen: Ct,
|
|
675
|
+
onGeneratePdf: r(Be),
|
|
676
|
+
onGenerateCsv: Qe,
|
|
677
|
+
onGenerateImage: r(Ge),
|
|
678
|
+
onToggleTable: Ze,
|
|
679
|
+
onToggleLabels: je,
|
|
680
|
+
onToggleTooltip: et,
|
|
680
681
|
onToggleAnnotator: be,
|
|
681
682
|
style: se({
|
|
682
|
-
visibility: r(
|
|
683
|
+
visibility: r(De) ? r(de) ? "visible" : "hidden" : "visible"
|
|
683
684
|
})
|
|
684
|
-
},
|
|
685
|
+
}, Et({ _: 2 }, [
|
|
685
686
|
l.$slots.menuIcon ? {
|
|
686
687
|
name: "menuIcon",
|
|
687
688
|
fn: L(({ isOpen: a, color: o }) => [
|
|
@@ -746,20 +747,20 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
746
747
|
key: "8"
|
|
747
748
|
} : void 0
|
|
748
749
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0),
|
|
749
|
-
Q.value ? (n(),
|
|
750
|
+
Q.value ? (n(), d("svg", {
|
|
750
751
|
key: 4,
|
|
751
752
|
ref_key: "svgRef",
|
|
752
|
-
ref:
|
|
753
|
-
xmlns: r(
|
|
754
|
-
class:
|
|
755
|
-
"vue-data-ui-fullscreen--on":
|
|
756
|
-
"vue-data-ui-fulscreen--off": !
|
|
753
|
+
ref: ze,
|
|
754
|
+
xmlns: r(Wt),
|
|
755
|
+
class: U({
|
|
756
|
+
"vue-data-ui-fullscreen--on": B.value,
|
|
757
|
+
"vue-data-ui-fulscreen--off": !B.value
|
|
757
758
|
}),
|
|
758
759
|
viewBox: `0 0 ${h.value.width <= 0 ? 1e-3 : h.value.width} ${h.value.height < 0 ? 1e-3 : h.value.height}`,
|
|
759
|
-
style: se(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${
|
|
760
|
+
style: se(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${Ee.value.css}`)
|
|
760
761
|
}, [
|
|
761
|
-
|
|
762
|
-
l.$slots["chart-background"] ? (n(),
|
|
762
|
+
st(r(gt)),
|
|
763
|
+
l.$slots["chart-background"] ? (n(), d("foreignObject", {
|
|
763
764
|
key: 0,
|
|
764
765
|
x: 0,
|
|
765
766
|
y: 0,
|
|
@@ -770,9 +771,9 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
770
771
|
}
|
|
771
772
|
}, [
|
|
772
773
|
x(l.$slots, "chart-background", {}, void 0, !0)
|
|
773
|
-
], 8,
|
|
774
|
+
], 8, rl)) : g("", !0),
|
|
774
775
|
m("defs", null, [
|
|
775
|
-
(n(!0),
|
|
776
|
+
(n(!0), d(T, null, O(qe.value, (a, o) => (n(), d("radialGradient", {
|
|
776
777
|
id: `radial_${y.value}_${o}`
|
|
777
778
|
}, [
|
|
778
779
|
s[5] || (s[5] = m("stop", {
|
|
@@ -781,21 +782,21 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
781
782
|
"stop-opacity": "0"
|
|
782
783
|
}, null, -1)),
|
|
783
784
|
m("stop", {
|
|
784
|
-
offset: `${(1 - he.value /
|
|
785
|
-
"stop-color": r(
|
|
785
|
+
offset: `${(1 - he.value / We.value[o]) * 100}%`,
|
|
786
|
+
"stop-color": r(it)("#FFFFFF", 0),
|
|
786
787
|
"stop-opacity": "0"
|
|
787
|
-
}, null, 8,
|
|
788
|
+
}, null, 8, dl),
|
|
788
789
|
m("stop", {
|
|
789
|
-
offset: `${(1 - he.value /
|
|
790
|
+
offset: `${(1 - he.value / We.value[o] / 2) * 100}%`,
|
|
790
791
|
"stop-color": "#FFFFFF",
|
|
791
792
|
"stop-opacity": e.value.style.chart.gradientIntensity / 100
|
|
792
|
-
}, null, 8,
|
|
793
|
+
}, null, 8, cl),
|
|
793
794
|
s[6] || (s[6] = m("stop", {
|
|
794
795
|
offset: "100%",
|
|
795
796
|
"stop-color": "#FFFFFF",
|
|
796
797
|
"stop-opacity": "0"
|
|
797
798
|
}, null, -1))
|
|
798
|
-
], 8,
|
|
799
|
+
], 8, il))), 256))
|
|
799
800
|
]),
|
|
800
801
|
m("defs", null, [
|
|
801
802
|
m("filter", {
|
|
@@ -809,12 +810,12 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
809
810
|
in: "SourceGraphic",
|
|
810
811
|
stdDeviation: 2,
|
|
811
812
|
id: `blur_std_${y.value}`
|
|
812
|
-
}, null, 8,
|
|
813
|
+
}, null, 8, hl),
|
|
813
814
|
s[7] || (s[7] = m("feColorMatrix", {
|
|
814
815
|
type: "saturate",
|
|
815
816
|
values: "0"
|
|
816
817
|
}, null, -1))
|
|
817
|
-
], 8,
|
|
818
|
+
], 8, vl),
|
|
818
819
|
m("filter", {
|
|
819
820
|
id: `shadow_${y.value}`,
|
|
820
821
|
"color-interpolation-filters": "sRGB"
|
|
@@ -825,57 +826,57 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
825
826
|
stdDeviation: "10",
|
|
826
827
|
"flood-opacity": "0.5",
|
|
827
828
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
828
|
-
}, null, 8,
|
|
829
|
-
], 8,
|
|
829
|
+
}, null, 8, pl)
|
|
830
|
+
], 8, fl)
|
|
830
831
|
]),
|
|
831
|
-
(n(!0),
|
|
832
|
-
(n(!0),
|
|
832
|
+
(n(!0), d(T, null, O(Z.value, (a, o) => (n(), d("g", null, [
|
|
833
|
+
a.hasData ? (n(!0), d(T, { key: 0 }, O(a.donut.filter((t) => !t.ghost), (t, u) => (n(), d("g", null, [
|
|
833
834
|
m("path", {
|
|
834
835
|
class: "vue-ui-donut-arc-path",
|
|
835
836
|
d: t.arcSlice,
|
|
836
|
-
fill: r(
|
|
837
|
+
fill: r(it)(t.color, 80),
|
|
837
838
|
stroke: e.value.style.chart.backgroundColor,
|
|
838
839
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
839
|
-
filter:
|
|
840
|
-
}, null, 8,
|
|
841
|
-
]))), 256))
|
|
840
|
+
filter: Ke(t, u)
|
|
841
|
+
}, null, 8, yl)
|
|
842
|
+
]))), 256)) : g("", !0)
|
|
842
843
|
]))), 256)),
|
|
843
|
-
e.value.style.chart.useGradient ? (n(),
|
|
844
|
-
(n(!0),
|
|
844
|
+
e.value.style.chart.useGradient ? (n(), d("g", bl, [
|
|
845
|
+
(n(!0), d(T, null, O(qe.value, (a, o) => (n(), d("g", null, [
|
|
845
846
|
m("path", {
|
|
846
847
|
d: a.donut.arcSlice,
|
|
847
848
|
fill: `url(#radial_${y.value}_${o})`,
|
|
848
849
|
stroke: "transparent",
|
|
849
850
|
"stroke-width": "0"
|
|
850
|
-
}, null, 8,
|
|
851
|
+
}, null, 8, gl)
|
|
851
852
|
]))), 256))
|
|
852
853
|
])) : g("", !0),
|
|
853
|
-
e.value.style.chart.layout.labels.dataLabels.showDonutName ? (n(),
|
|
854
|
-
(n(!0),
|
|
855
|
-
(n(!0),
|
|
856
|
-
u === 0 && h.value.width && h.value.height ? (n(),
|
|
854
|
+
e.value.style.chart.layout.labels.dataLabels.showDonutName ? (n(), d("g", ml, [
|
|
855
|
+
(n(!0), d(T, null, O(Z.value, (a, o) => (n(), d("g", null, [
|
|
856
|
+
(n(!0), d(T, null, O(a.donut, (t, u) => (n(), d("g", null, [
|
|
857
|
+
u === 0 && h.value.width && h.value.height ? (n(), d("text", {
|
|
857
858
|
key: 0,
|
|
858
|
-
class:
|
|
859
|
+
class: U({ animated: e.value.useCssAnimation }),
|
|
859
860
|
x: h.value.width / 2,
|
|
860
861
|
y: t.startY - e.value.style.chart.layout.labels.dataLabels.fontSize + e.value.style.chart.layout.labels.dataLabels.donutNameOffsetY,
|
|
861
862
|
"text-anchor": "middle",
|
|
862
863
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
863
864
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
|
|
864
865
|
fill: e.value.style.chart.layout.labels.dataLabels.color
|
|
865
|
-
},
|
|
866
|
+
}, S(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? r(qt)({
|
|
866
867
|
source: a.name,
|
|
867
868
|
length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
|
|
868
|
-
}) : a.name), 11,
|
|
869
|
+
}) : a.name), 11, wl)) : g("", !0)
|
|
869
870
|
]))), 256))
|
|
870
871
|
]))), 256))
|
|
871
872
|
])) : g("", !0),
|
|
872
|
-
e.value.style.chart.layout.labels.dataLabels.show ? (n(),
|
|
873
|
-
(n(!0),
|
|
874
|
-
(n(!0),
|
|
875
|
-
filter:
|
|
873
|
+
e.value.style.chart.layout.labels.dataLabels.show ? (n(), d("g", $l, [
|
|
874
|
+
(n(!0), d(T, null, O(Z.value, (a, o) => (n(), d("g", null, [
|
|
875
|
+
(n(!0), d(T, null, O(a.donut.filter((t) => !t.ghost), (t, u) => (n(), d("g", {
|
|
876
|
+
filter: Ke(t, u)
|
|
876
877
|
}, [
|
|
877
|
-
|
|
878
|
-
class:
|
|
878
|
+
ut(m("text", {
|
|
879
|
+
class: U({ animated: e.value.useCssAnimation }),
|
|
879
880
|
opacity: pe(t) ? 1 : 0,
|
|
880
881
|
"text-anchor": r(W)(t, !0).anchor,
|
|
881
882
|
x: r(W)(
|
|
@@ -891,18 +892,18 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
891
892
|
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
892
893
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
893
894
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldPercentage ? "bold" : "normal"
|
|
894
|
-
},
|
|
895
|
+
}, S(r(N)({
|
|
895
896
|
v: t.proportion * 100,
|
|
896
897
|
s: "%",
|
|
897
898
|
r: e.value.style.chart.layout.labels.dataLabels.roundingPercentage
|
|
898
|
-
})), 11,
|
|
899
|
+
})), 11, Ll), [
|
|
899
900
|
[
|
|
900
|
-
|
|
901
|
+
nt,
|
|
901
902
|
$.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage
|
|
902
903
|
]
|
|
903
904
|
]),
|
|
904
|
-
|
|
905
|
-
class:
|
|
905
|
+
ut(m("text", {
|
|
906
|
+
class: U({ animated: e.value.useCssAnimation }),
|
|
906
907
|
opacity: pe(t) ? 1 : 0,
|
|
907
908
|
"text-anchor": r(W)(t, !0).anchor,
|
|
908
909
|
x: r(W)(
|
|
@@ -918,25 +919,25 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
918
919
|
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
919
920
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
920
921
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
|
|
921
|
-
}, " (" +
|
|
922
|
+
}, " (" + S(r(K)(
|
|
922
923
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
923
924
|
t.value,
|
|
924
|
-
r(
|
|
925
|
+
r(N)({
|
|
925
926
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
926
927
|
v: t.value,
|
|
927
928
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
928
929
|
r: e.value.style.chart.layout.labels.dataLabels.roundingValue
|
|
929
930
|
}),
|
|
930
931
|
{ datapoint: t, seriesIndex: o, datapointIndex: u }
|
|
931
|
-
)) + ") ", 11,
|
|
932
|
+
)) + ") ", 11, xl), [
|
|
932
933
|
[
|
|
933
|
-
|
|
934
|
+
nt,
|
|
934
935
|
$.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue
|
|
935
936
|
]
|
|
936
937
|
]),
|
|
937
|
-
pe(t) && $.value.dataLabels.show && !e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue ? (n(),
|
|
938
|
+
pe(t) && $.value.dataLabels.show && !e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue ? (n(), d("text", {
|
|
938
939
|
key: 0,
|
|
939
|
-
class:
|
|
940
|
+
class: U({ animated: e.value.useCssAnimation }),
|
|
940
941
|
"text-anchor": r(W)(t, !0).anchor,
|
|
941
942
|
x: r(W)(
|
|
942
943
|
t,
|
|
@@ -951,42 +952,42 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
951
952
|
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
952
953
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
953
954
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
|
|
954
|
-
},
|
|
955
|
+
}, S(r(K)(
|
|
955
956
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
956
957
|
t.value,
|
|
957
|
-
r(
|
|
958
|
+
r(N)({
|
|
958
959
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
959
960
|
v: t.value,
|
|
960
961
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
961
962
|
r: e.value.style.chart.layout.labels.dataLabels.roundingValue
|
|
962
963
|
}),
|
|
963
964
|
{ datapoint: t, seriesIndex: o, datapointIndex: u }
|
|
964
|
-
)), 11,
|
|
965
|
-
], 8,
|
|
965
|
+
)), 11, Cl)) : g("", !0)
|
|
966
|
+
], 8, kl))), 256))
|
|
966
967
|
]))), 256))
|
|
967
968
|
])) : g("", !0),
|
|
968
|
-
(n(!0),
|
|
969
|
-
(n(!0),
|
|
969
|
+
(n(!0), d(T, null, O(Z.value, (a, o) => (n(), d("g", null, [
|
|
970
|
+
(n(!0), d(T, null, O(a.donut, (t, u) => (n(), d("g", null, [
|
|
970
971
|
m("path", {
|
|
971
972
|
d: t.arcSlice,
|
|
972
|
-
fill:
|
|
973
|
-
onMouseenter: (
|
|
973
|
+
fill: xt.value === o ? "rgba(0,0,0,0.1)" : "transparent",
|
|
974
|
+
onMouseenter: (i) => At({
|
|
974
975
|
datapoint: t,
|
|
975
976
|
seriesIndex: t.seriesIndex
|
|
976
977
|
}),
|
|
977
|
-
onClick: (
|
|
978
|
-
onMouseleave: s[0] || (s[0] = (
|
|
979
|
-
ne.value = !1,
|
|
978
|
+
onClick: (i) => Ot({ datapoint: t, index: u }),
|
|
979
|
+
onMouseleave: s[0] || (s[0] = (i) => {
|
|
980
|
+
ne.value = !1, Je.value = null, j.value = null, ee.value = null;
|
|
980
981
|
})
|
|
981
|
-
}, null, 40,
|
|
982
|
+
}, null, 40, _l)
|
|
982
983
|
]))), 256))
|
|
983
984
|
]))), 256)),
|
|
984
985
|
x(l.$slots, "svg", { svg: h.value }, void 0, !0)
|
|
985
|
-
], 14,
|
|
986
|
-
l.$slots.watermark ? (n(),
|
|
987
|
-
x(l.$slots, "watermark", Y(X({ isPrinting: r(
|
|
986
|
+
], 14, nl)) : g("", !0),
|
|
987
|
+
l.$slots.watermark ? (n(), d("div", Tl, [
|
|
988
|
+
x(l.$slots, "watermark", Y(X({ isPrinting: r(Ue) || r(Re) })), void 0, !0)
|
|
988
989
|
])) : g("", !0),
|
|
989
|
-
Q.value ? g("", !0) : (n(),
|
|
990
|
+
Q.value ? g("", !0) : (n(), R(r(wt), {
|
|
990
991
|
key: 6,
|
|
991
992
|
config: {
|
|
992
993
|
type: "donut",
|
|
@@ -998,7 +999,7 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
998
999
|
}
|
|
999
1000
|
}
|
|
1000
1001
|
}, null, 8, ["config"])),
|
|
1001
|
-
|
|
1002
|
+
st(r($t), {
|
|
1002
1003
|
show: $.value.showTooltip && ne.value,
|
|
1003
1004
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1004
1005
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -1011,8 +1012,8 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
1011
1012
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1012
1013
|
parent: q.value,
|
|
1013
1014
|
content: re.value,
|
|
1014
|
-
isFullscreen:
|
|
1015
|
-
isCustom: r(
|
|
1015
|
+
isFullscreen: B.value,
|
|
1016
|
+
isCustom: r(dt)(e.value.style.chart.tooltip.customFormat)
|
|
1016
1017
|
}, {
|
|
1017
1018
|
"tooltip-before": L(() => [
|
|
1018
1019
|
x(l.$slots, "tooltip-before", Y(X({ ...fe.value })), void 0, !0)
|
|
@@ -1022,30 +1023,30 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
1022
1023
|
]),
|
|
1023
1024
|
_: 3
|
|
1024
1025
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
1025
|
-
e.value.style.chart.legend.show ? (n(),
|
|
1026
|
+
e.value.style.chart.legend.show ? (n(), d("div", {
|
|
1026
1027
|
key: 7,
|
|
1027
1028
|
ref_key: "chartLegend",
|
|
1028
1029
|
ref: ie,
|
|
1029
|
-
class:
|
|
1030
|
+
class: U({ "vue-ui-nested-donuts-legend": ye.value.length > 1 })
|
|
1030
1031
|
}, [
|
|
1031
|
-
(n(!0),
|
|
1032
|
-
key: `legend_${o}_${
|
|
1032
|
+
(n(!0), d(T, null, O(ye.value, (a, o) => (n(), R(ol, {
|
|
1033
|
+
key: `legend_${o}_${Ve.value}`,
|
|
1033
1034
|
legendSet: a,
|
|
1034
|
-
config:
|
|
1035
|
+
config: It.value,
|
|
1035
1036
|
onClickMarker: s[1] || (s[1] = ({ legend: t }) => ve(t))
|
|
1036
1037
|
}, {
|
|
1037
1038
|
legendTitle: L(({ titleSet: t }) => [
|
|
1038
|
-
t[0] && t[0].arcOf ? (n(),
|
|
1039
|
+
t[0] && t[0].arcOf ? (n(), d("div", Nl, S(t[0].arcOf), 1)) : g("", !0)
|
|
1039
1040
|
]),
|
|
1040
1041
|
item: L(({ legend: t, index: u }) => [
|
|
1041
1042
|
m("div", {
|
|
1042
|
-
onClick: (
|
|
1043
|
+
onClick: (i) => ve(t),
|
|
1043
1044
|
style: se(`opacity:${w.value.includes(t.id) ? 0.5 : 1}`)
|
|
1044
1045
|
}, [
|
|
1045
|
-
ue(
|
|
1046
|
+
ue(S(t.name) + ": " + S(r(K)(
|
|
1046
1047
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
1047
1048
|
t.value,
|
|
1048
|
-
r(
|
|
1049
|
+
r(N)({
|
|
1049
1050
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1050
1051
|
v: t.value,
|
|
1051
1052
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -1053,10 +1054,10 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
1053
1054
|
}),
|
|
1054
1055
|
{ datapoint: t, seriesIndex: u }
|
|
1055
1056
|
)) + " ", 1),
|
|
1056
|
-
w.value.includes(t.id) ? (n(),
|
|
1057
|
+
w.value.includes(t.id) ? (n(), d(T, { key: 1 }, [
|
|
1057
1058
|
ue(" ( - % ) ")
|
|
1058
|
-
], 64)) : (n(),
|
|
1059
|
-
ue(" (" +
|
|
1059
|
+
], 64)) : (n(), d(T, { key: 0 }, [
|
|
1060
|
+
ue(" (" + S(isNaN(t.value / t.total) ? "-" : r(N)({
|
|
1060
1061
|
v: t.value / t.total * 100,
|
|
1061
1062
|
s: "%",
|
|
1062
1063
|
r: e.value.style.chart.legend.roundingPercentage
|
|
@@ -1067,14 +1068,14 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
1067
1068
|
_: 2
|
|
1068
1069
|
}, 1032, ["legendSet", "config"]))), 128))
|
|
1069
1070
|
], 2)) : g("", !0),
|
|
1070
|
-
e.value.style.chart.legend.show ? g("", !0) : (n(),
|
|
1071
|
+
e.value.style.chart.legend.show ? g("", !0) : (n(), d("div", {
|
|
1071
1072
|
key: 8,
|
|
1072
1073
|
ref_key: "chartLegend",
|
|
1073
1074
|
ref: ie
|
|
1074
1075
|
}, [
|
|
1075
1076
|
x(l.$slots, "legend", { legend: ye.value }, void 0, !0)
|
|
1076
1077
|
], 512)),
|
|
1077
|
-
l.$slots.source ? (n(),
|
|
1078
|
+
l.$slots.source ? (n(), d("div", {
|
|
1078
1079
|
key: 9,
|
|
1079
1080
|
ref_key: "source",
|
|
1080
1081
|
ref: Fe,
|
|
@@ -1082,7 +1083,7 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
1082
1083
|
}, [
|
|
1083
1084
|
x(l.$slots, "source", {}, void 0, !0)
|
|
1084
1085
|
], 512)) : g("", !0),
|
|
1085
|
-
Q.value ? (n(),
|
|
1086
|
+
Q.value ? (n(), R(r(yt), {
|
|
1086
1087
|
key: 10,
|
|
1087
1088
|
hideDetails: "",
|
|
1088
1089
|
config: {
|
|
@@ -1099,8 +1100,8 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
1099
1100
|
}
|
|
1100
1101
|
}, {
|
|
1101
1102
|
content: L(() => [
|
|
1102
|
-
(n(),
|
|
1103
|
-
key: `table_${
|
|
1103
|
+
(n(), R(r(bt), {
|
|
1104
|
+
key: `table_${Se.value}`,
|
|
1104
1105
|
colNames: te.value.colNames,
|
|
1105
1106
|
head: te.value.head,
|
|
1106
1107
|
body: te.value.body,
|
|
@@ -1115,16 +1116,16 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
1115
1116
|
}, null, 8, Fl)
|
|
1116
1117
|
]),
|
|
1117
1118
|
td: L(({ td: a }) => [
|
|
1118
|
-
ue(
|
|
1119
|
+
ue(S(a.name || a), 1)
|
|
1119
1120
|
]),
|
|
1120
1121
|
_: 1
|
|
1121
1122
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
1122
1123
|
]),
|
|
1123
1124
|
_: 1
|
|
1124
1125
|
}, 8, ["config"])) : g("", !0)
|
|
1125
|
-
], 46,
|
|
1126
|
+
], 46, ul));
|
|
1126
1127
|
}
|
|
1127
|
-
},
|
|
1128
|
+
}, Bl = /* @__PURE__ */ sl(Al, [["__scopeId", "data-v-7c112c53"]]);
|
|
1128
1129
|
export {
|
|
1129
|
-
|
|
1130
|
+
Bl as default
|
|
1130
1131
|
};
|