vue-data-ui 2.16.5 → 2.17.0
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 +85 -55
- package/dist/{Arrow-D9B36pfx.js → Arrow-BAEkZGzL.js} +1 -1
- package/dist/{BaseDraggableDialog-DloHiD4h.js → BaseDraggableDialog-ChCkcmj_.js} +2 -2
- package/dist/{BaseIcon-DJab5OQD.js → BaseIcon-naqtCxVi.js} +1 -1
- package/dist/{ColorPicker-Br0rMnNb.js → ColorPicker-CfIPgxcj.js} +2 -2
- package/dist/{DataTable-B6MXw9cG.js → DataTable-D0VYDhfx.js} +2 -2
- package/dist/{Legend-DoxQwq_u.js → Legend-Bxlv67uY.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DhbyLXKW.js → NonSvgPenAndPaper-b_oVy-Dd.js} +3 -3
- package/dist/{PackageVersion-DCreTQN4.js → PackageVersion-5TR4ocqp.js} +1 -1
- package/dist/{PenAndPaper-BS60tkQN.js → PenAndPaper-D6AqipIO.js} +32 -32
- package/dist/{Shape-CrstrfQ9.js → Shape-DtFT5EJa.js} +1 -1
- package/dist/{Slicer-Bd0AkciG.js → Slicer-CL6-MRI6.js} +2 -2
- package/dist/{SparkTooltip-B4j_rvhG.js → SparkTooltip-Bcv1aoA5.js} +1 -1
- package/dist/{Title-BQLtfM0P.js → Title-B-2bV0SW.js} +1 -1
- package/dist/{Tooltip-5JmGL7sR.js → Tooltip-CoQnTnr-.js} +1 -1
- package/dist/{UserOptions-DMGkAAIO.js → UserOptions-Dd34lEKb.js} +137 -129
- package/dist/{dom-to-png-g3Q8kjna.js → dom-to-png-2AA0wHlX.js} +1 -1
- package/dist/img-Y_hYz-ZC.js +27 -0
- package/dist/{index-CZNLCg7T.js → index-pPGk-uhD.js} +1 -1
- package/dist/{pdf-DJVOD0cz.js → pdf-yfk3d1is.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1098 -162
- package/dist/types/vue-data-ui.d.ts +1098 -162
- package/dist/{useNestedProp-BcPDA6Xr.js → useNestedProp-DjACxgdZ.js} +1 -1
- package/dist/{usePrinter-ButWuZVm.js → usePrinter-DDHcrl0A.js} +2 -2
- package/dist/vue-data-ui-CIWxgKjd.js +312 -0
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-o8P0DCbz.js → vue-ui-3d-bar-D5Wpdqfk.js} +244 -235
- package/dist/{vue-ui-accordion-CO4hmfuX.js → vue-ui-accordion-CVnA550V.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C9T5bAEl.js → vue-ui-age-pyramid-BuAl-zC5.js} +167 -158
- package/dist/{vue-ui-annotator-CyOygaxE.js → vue-ui-annotator-gl2A20m3.js} +2 -2
- package/dist/{vue-ui-bullet-CPT1jdcz.js → vue-ui-bullet-D-VMKpwe.js} +131 -122
- package/dist/{vue-ui-candlestick-BfZTMGE0.js → vue-ui-candlestick-1r6YwiUV.js} +248 -239
- package/dist/{vue-ui-carousel-table-Bam9qqkj.js → vue-ui-carousel-table-B6UJoNtP.js} +17 -16
- package/dist/{vue-ui-chestnut-BAIMBFaQ.js → vue-ui-chestnut-DnlBYpC5.js} +257 -248
- package/dist/{vue-ui-chord-92E1yKdu.js → vue-ui-chord-D3kpzYjp.js} +229 -220
- package/dist/{vue-ui-circle-pack-DxXPqA7Z.js → vue-ui-circle-pack-CHgdpoYu.js} +200 -191
- package/dist/{vue-ui-cursor-Bvy_o8wb.js → vue-ui-cursor-63EAvElT.js} +2 -2
- package/dist/{vue-ui-dashboard--QRCkp7q.js → vue-ui-dashboard-Da6CPET-.js} +62 -62
- package/dist/{vue-ui-digits-Dl8RHLvt.js → vue-ui-digits-CA8pUKej.js} +2 -2
- package/dist/{vue-ui-donut-BxSTOFDt.js → vue-ui-donut-CKa7nFjt.js} +352 -343
- package/dist/{vue-ui-donut-evolution-DNzTtWnJ.js → vue-ui-donut-evolution-qeBEA4W8.js} +267 -258
- package/dist/{vue-ui-dumbbell-D01p3t3P.js → vue-ui-dumbbell-Bm0PvAKT.js} +146 -137
- package/dist/{vue-ui-flow-BMvaRn7E.js → vue-ui-flow-C2dqXvrU.js} +171 -162
- package/dist/{vue-ui-funnel-Bd_3wouw.js → vue-ui-funnel-Dvy5rRld.js} +134 -125
- package/dist/{vue-ui-galaxy-D4HJH1qq.js → vue-ui-galaxy-Y8LYp5n2.js} +181 -172
- package/dist/{vue-ui-gauge-CgIlk2pu.js → vue-ui-gauge-BBo0jWAP.js} +166 -157
- package/dist/{vue-ui-gizmo-C1-QYvsn.js → vue-ui-gizmo-DjXfTOWn.js} +3 -3
- package/dist/{vue-ui-heatmap-tUn_BlSp.js → vue-ui-heatmap-BbxRpltP.js} +242 -229
- package/dist/{vue-ui-history-plot-TfVRzyIK.js → vue-ui-history-plot-ChYf3Nvc.js} +218 -209
- package/dist/{vue-ui-kpi-BuL8MAMD.js → vue-ui-kpi-Vfc5-JnE.js} +3 -3
- package/dist/{vue-ui-mini-loader-DIeG36P8.js → vue-ui-mini-loader-C0-Nsz8K.js} +2 -2
- package/dist/{vue-ui-molecule-8RJNzWIw.js → vue-ui-molecule-B7Yu7vzF.js} +155 -146
- package/dist/{vue-ui-mood-radar-DftzG_Bi.js → vue-ui-mood-radar-C8JUTwNw.js} +130 -121
- package/dist/{vue-ui-nested-donuts-B9JC_0xK.js → vue-ui-nested-donuts-D0RgFifU.js} +255 -246
- package/dist/{vue-ui-onion-DTjaH-Bu.js → vue-ui-onion-D4U7TL_N.js} +150 -141
- package/dist/{vue-ui-parallel-coordinate-plot-DwqfVqFB.js → vue-ui-parallel-coordinate-plot-CXMT7Rjr.js} +194 -185
- package/dist/{vue-ui-quadrant-Cv3VWA6d.js → vue-ui-quadrant-B13pTVVZ.js} +248 -239
- package/dist/{vue-ui-quick-chart-imc0KrbF.js → vue-ui-quick-chart-C0UL4o63.js} +328 -319
- package/dist/{vue-ui-radar-kNySclk1.js → vue-ui-radar-XpdiXnhz.js} +165 -156
- package/dist/{vue-ui-rating-DBhEbgwD.js → vue-ui-rating-CM8ZrUb1.js} +2 -2
- package/dist/{vue-ui-relation-circle-BJQhS0aG.js → vue-ui-relation-circle-CYoFNekk.js} +145 -136
- package/dist/{vue-ui-ridgeline-Bhd1Uwm8.js → vue-ui-ridgeline-QUquE6ck.js} +198 -189
- package/dist/{vue-ui-rings-C_IT2mi0.js → vue-ui-rings-DwT0IfOh.js} +136 -127
- package/dist/{vue-ui-scatter-i8XZreWa.js → vue-ui-scatter-zDpy1udm.js} +207 -199
- package/dist/{vue-ui-skeleton-D9B8DY_k.js → vue-ui-skeleton-DJPjyNYn.js} +3 -3
- package/dist/{vue-ui-smiley-gmdnUWcW.js → vue-ui-smiley-DoDXl6k0.js} +2 -2
- package/dist/{vue-ui-spark-trend-DOF3vl8_.js → vue-ui-spark-trend-CniV6Cpr.js} +3 -3
- package/dist/{vue-ui-sparkbar-BVOVq3dA.js → vue-ui-sparkbar-Ds2ITgwn.js} +3 -3
- package/dist/{vue-ui-sparkgauge-DVO2Z0Rg.js → vue-ui-sparkgauge-CosfK-kw.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-CbV86a2i.js → vue-ui-sparkhistogram-C7O1wPAJ.js} +4 -4
- package/dist/{vue-ui-sparkline-jDNAVZu-.js → vue-ui-sparkline-B_iUj3F2.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-auT8CUXm.js → vue-ui-sparkstackbar-DBhWrysr.js} +3 -3
- package/dist/{vue-ui-stackbar-DmO02We2.js → vue-ui-stackbar-C3aV4IcL.js} +242 -233
- package/dist/{vue-ui-strip-plot-B25s87lj.js → vue-ui-strip-plot-Bvr1GAzH.js} +204 -195
- package/dist/{vue-ui-table-B4xbQdK_.js → vue-ui-table-DQKKRgyo.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DI57VcvH.js → vue-ui-table-heatmap-Dyqj5XJC.js} +26 -25
- package/dist/{vue-ui-table-sparkline-DRgsZztN.js → vue-ui-table-sparkline-D4RubyLj.js} +8 -7
- package/dist/{vue-ui-thermometer-DkeT5DV_.js → vue-ui-thermometer-B0FKI5cG.js} +149 -140
- package/dist/{vue-ui-timer-uon_DLeH.js → vue-ui-timer-DUCBRIl-.js} +5 -5
- package/dist/{vue-ui-tiremarks-BV0qXRF2.js → vue-ui-tiremarks-CRt4UQZD.js} +114 -105
- package/dist/{vue-ui-treemap-DzJsjtz7.js → vue-ui-treemap-CWP5nYDx.js} +298 -289
- package/dist/{vue-ui-vertical-bar-CkLS_DGb.js → vue-ui-vertical-bar-C5fPYltO.js} +294 -285
- package/dist/{vue-ui-waffle-B2XiLGQx.js → vue-ui-waffle-BpWLlfpg.js} +190 -181
- package/dist/{vue-ui-wheel-BR1DDpKU.js → vue-ui-wheel-CTzuCroy.js} +96 -87
- package/dist/{vue-ui-word-cloud-BvOT6hu2.js → vue-ui-word-cloud-BPokdaP1.js} +212 -203
- package/dist/{vue-ui-world-BeP91MNX.js → vue-ui-world-CS6k-oil.js} +201 -192
- package/dist/{vue-ui-xy-BaR-ZDba.js → vue-ui-xy-CQ425kLR.js} +517 -510
- package/dist/{vue-ui-xy-canvas-B4ZmECCK.js → vue-ui-xy-canvas-D2IFwAr7.js} +364 -355
- package/package.json +1 -1
- package/dist/img-CTC5DLKL.js +0 -20
- package/dist/vue-data-ui-BB8Upnjm.js +0 -301
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
|
|
1
|
+
import { defineAsyncComponent as U, computed as $, ref as h, watch as at, onMounted as ot, nextTick as st, shallowRef as ut, onBeforeUnmount as Mt, createElementBlock as i, openBlock as n, unref as r, normalizeStyle as ue, normalizeClass as R, createBlock as B, createCommentVNode as m, createVNode as nt, createSlots as Et, withCtx as L, renderSlot as x, normalizeProps as X, guardReactiveProps as W, createElementVNode as g, Fragment as T, renderList as O, toDisplayString as I, withDirectives as rt, vShow as it, createTextVNode as ne } from "vue";
|
|
2
|
+
import { u as Ut, c as Rt, t as Bt, p as Ce, a as Gt, G as D, o as Yt, e as q, b as Xt, d as Wt, m as _e, f as F, X as qt, s as Ht, L as Jt, k as Te, n as H, i as K, x as dt, q as Kt, r as Qt, y as Zt, v as Oe, T as ct } from "./index-pPGk-uhD.js";
|
|
3
|
+
import { t as jt, u as el } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as vt } from "./useNestedProp-DjACxgdZ.js";
|
|
5
|
+
import { u as tl } from "./usePrinter-DDHcrl0A.js";
|
|
6
|
+
import { u as ll } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as al } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import ol from "./Title-B-2bV0SW.js";
|
|
9
|
+
import sl from "./Legend-Bxlv67uY.js";
|
|
10
|
+
import ul from "./img-Y_hYz-ZC.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 }, kl = ["d", "fill"], $l = { 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: {
|
|
@@ -31,38 +32,38 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
31
32
|
}
|
|
32
33
|
},
|
|
33
34
|
emits: ["selectLegend", "selectDatapoint"],
|
|
34
|
-
setup(
|
|
35
|
-
const
|
|
36
|
-
function
|
|
37
|
-
|
|
35
|
+
setup(ht, { expose: ft, emit: pt }) {
|
|
36
|
+
const yt = U(() => import("./vue-ui-accordion-CVnA550V.js")), bt = U(() => import("./DataTable-D0VYDhfx.js")), gt = U(() => import("./PackageVersion-5TR4ocqp.js")), mt = U(() => import("./PenAndPaper-D6AqipIO.js")), wt = U(() => import("./vue-ui-skeleton-DJPjyNYn.js")), kt = U(() => import("./Tooltip-CoQnTnr-.js")), $t = U(() => import("./UserOptions-Dd34lEKb.js")), { vue_ui_nested_donuts: Lt } = Ut(), C = ht, Q = $(() => !!C.dataset && C.dataset.length), y = h(Rt()), re = h(!1), ie = h(""), xt = h(null), Fe = h(0), z = h(null), Ne = h(null), de = h(null), Se = h(null), Ae = h(null), Ie = h(0), Ve = h(0), Pe = h(0), M = h(!0), E = h([]), J = h([]), G = h(!1);
|
|
37
|
+
function De(l) {
|
|
38
|
+
G.value = l, Fe.value += 1;
|
|
38
39
|
}
|
|
39
40
|
const e = $({
|
|
40
|
-
get: () =>
|
|
41
|
+
get: () => Ue(),
|
|
41
42
|
set: (l) => l
|
|
42
|
-
}), { userOptionsVisible: ce, setUserOptionsVisibility:
|
|
43
|
+
}), { userOptionsVisible: ce, setUserOptionsVisibility: ze, keepUserOptionState: Me } = ll({ config: e.value }), { svgRef: Ee } = al({
|
|
43
44
|
config: e.value.style.chart.title
|
|
44
45
|
});
|
|
45
|
-
function
|
|
46
|
-
const l =
|
|
46
|
+
function Ue() {
|
|
47
|
+
const l = vt({
|
|
47
48
|
userConfig: C.config,
|
|
48
|
-
defaultConfig:
|
|
49
|
+
defaultConfig: Lt
|
|
49
50
|
});
|
|
50
51
|
return l.theme ? {
|
|
51
|
-
...
|
|
52
|
-
userConfig:
|
|
52
|
+
...vt({
|
|
53
|
+
userConfig: Gt.vue_ui_nested_donuts[l.theme] || C.config,
|
|
53
54
|
defaultConfig: l
|
|
54
55
|
}),
|
|
55
|
-
customPalette:
|
|
56
|
+
customPalette: Bt[l.theme] || Ce
|
|
56
57
|
} : l;
|
|
57
58
|
}
|
|
58
|
-
|
|
59
|
+
at(
|
|
59
60
|
() => C.config,
|
|
60
61
|
(l) => {
|
|
61
|
-
e.value =
|
|
62
|
+
e.value = Ue(), ce.value = !e.value.userOptions.showOnChartHover, ve(), Ie.value += 1, Ve.value += 1, Pe.value += 1, k.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, k.value.showTable = e.value.table.show, k.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 = $(() => {
|
|
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`,
|
|
@@ -75,21 +76,21 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
75
76
|
function Ct(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
|
-
const
|
|
83
|
+
const N = performance.now();
|
|
83
84
|
function d(p) {
|
|
84
|
-
const _ = Math.min((p -
|
|
85
|
-
|
|
85
|
+
const _ = Math.min((p - N) / s, 1), ge = ct(_), me = c * ge;
|
|
86
|
+
E.value[v] = me, E.value = [...E.value];
|
|
86
87
|
const oe = [];
|
|
87
88
|
let we = 0;
|
|
88
89
|
C.dataset.forEach((se, ke) => {
|
|
89
|
-
const
|
|
90
|
-
(Le, xe) => Le +
|
|
90
|
+
const Vt = Oe(se.series.reduce(
|
|
91
|
+
(Le, xe) => Le + Oe(D(xe.values).reduce((Dt, zt) => Dt + zt, 0)),
|
|
91
92
|
0
|
|
92
|
-
)),
|
|
93
|
+
)), Pt = Oe(E.value.slice(we, we + se.series.length).reduce((Le, xe) => Le + xe, 0)), $e = Vt - Pt;
|
|
93
94
|
$e > Number.MIN_VALUE && oe.push({
|
|
94
95
|
name: "__ghost__",
|
|
95
96
|
arcOf: se.name,
|
|
@@ -110,14 +111,14 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
110
111
|
});
|
|
111
112
|
});
|
|
112
113
|
}
|
|
113
|
-
|
|
114
|
+
ot(async () => {
|
|
114
115
|
if (ve(), e.value.startAnimation?.show) {
|
|
115
116
|
const s = C.dataset.flatMap((a) => a.series).map(
|
|
116
117
|
(a) => D(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 + D(c.values).reduce((v,
|
|
121
|
+
(u, c) => u + D(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
|
|
137
|
+
}), await st(), Ct(
|
|
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 V =
|
|
147
|
-
|
|
147
|
+
const V = ut(null), Y = ut(null);
|
|
148
|
+
ot(() => {
|
|
148
149
|
ve();
|
|
149
150
|
});
|
|
150
151
|
function ve() {
|
|
151
|
-
if (
|
|
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 ?
|
|
156
|
+
const l = jt(() => {
|
|
157
|
+
const { width: s, height: a } = el({
|
|
158
|
+
chart: z.value,
|
|
159
|
+
title: e.value.style.chart.title.text ? Ne.value : null,
|
|
159
160
|
legend: e.value.style.chart.legend.show ? de.value : null,
|
|
160
|
-
source:
|
|
161
|
-
noTitle:
|
|
162
|
-
padding:
|
|
161
|
+
source: Se.value,
|
|
162
|
+
noTitle: Ae.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
|
-
V.value && (
|
|
169
|
+
V.value && (Y.value && V.value.unobserve(Y.value), V.value.disconnect()), V.value = new ResizeObserver(l), Y.value = z.value.parentNode, V.value.observe(Y.value);
|
|
169
170
|
}
|
|
170
171
|
}
|
|
171
|
-
|
|
172
|
-
V.value && (
|
|
172
|
+
Mt(() => {
|
|
173
|
+
V.value && (Y.value && V.value.unobserve(Y.value), V.value.disconnect());
|
|
173
174
|
});
|
|
174
|
-
const { isPrinting:
|
|
175
|
+
const { isPrinting: Be, isImaging: Ge, generatePdf: Ye, generateImage: Xe } = 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
|
-
}), _t = $(() => e.value.userOptions.show && !e.value.style.chart.title.text), Tt = $(() =>
|
|
179
|
+
}), _t = $(() => e.value.userOptions.show && !e.value.style.chart.title.text), Tt = $(() => Xt(e.value.customPalette)), k = h({
|
|
179
180
|
dataLabels: {
|
|
180
181
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
181
182
|
},
|
|
@@ -184,49 +185,49 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
184
185
|
}), f = h({
|
|
185
186
|
width: e.value.style.chart.width,
|
|
186
187
|
height: e.value.style.chart.height
|
|
187
|
-
}),
|
|
188
|
-
function
|
|
189
|
-
|
|
188
|
+
}), We = pt;
|
|
189
|
+
function Ot({ datapoint: l, index: s }) {
|
|
190
|
+
We("selectDatapoint", { datapoint: l, index: s });
|
|
190
191
|
}
|
|
191
|
-
function
|
|
192
|
+
function qe({
|
|
192
193
|
from: l,
|
|
193
194
|
to: s,
|
|
194
195
|
duration: a,
|
|
195
196
|
onUpdate: o,
|
|
196
197
|
onDone: t,
|
|
197
|
-
easing: u =
|
|
198
|
+
easing: u = ct
|
|
198
199
|
}) {
|
|
199
200
|
const c = performance.now();
|
|
200
|
-
function v(
|
|
201
|
-
const d = Math.min((
|
|
201
|
+
function v(N) {
|
|
202
|
+
const d = Math.min((N - c) / a, 1), p = u(d), _ = l + (s - l) * p;
|
|
202
203
|
o(_, d), d < 1 ? requestAnimationFrame(v) : (o(s, 1), t && t());
|
|
203
204
|
}
|
|
204
205
|
requestAnimationFrame(v);
|
|
205
206
|
}
|
|
206
|
-
const w = h([]),
|
|
207
|
+
const w = h([]), S = $(() => {
|
|
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",
|
|
@@ -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) || Tt.value[t] || Ce[t % Ce.length],
|
|
255
|
+
value: M.value ? E.value[l++] ?? 0 : u,
|
|
255
256
|
absoluteValues: o.values || []
|
|
256
257
|
};
|
|
257
258
|
})
|
|
258
259
|
}));
|
|
259
|
-
}),
|
|
260
|
+
}), A = $(() => Math.min(f.value.height, f.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)), He = $(() => [...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,19 +268,19 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
267
268
|
}))
|
|
268
269
|
};
|
|
269
270
|
}));
|
|
270
|
-
function
|
|
271
|
+
function Ft(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);
|
|
274
275
|
return o < s;
|
|
275
276
|
}
|
|
276
|
-
const b = h(
|
|
277
|
-
|
|
278
|
-
() =>
|
|
277
|
+
const b = h(He.value);
|
|
278
|
+
at(
|
|
279
|
+
() => He.value,
|
|
279
280
|
(l) => b.value = l
|
|
280
281
|
);
|
|
281
282
|
function he(l) {
|
|
282
|
-
|
|
283
|
+
We("selectLegend", l);
|
|
283
284
|
const s = C.dataset.flatMap(
|
|
284
285
|
(d, p) => d.series.map((_, ge) => ({
|
|
285
286
|
value: D(_.values).reduce((me, oe) => me + oe, 0),
|
|
@@ -288,18 +289,18 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
288
289
|
}))
|
|
289
290
|
).find((d) => d.id === l.id);
|
|
290
291
|
if (!s) return;
|
|
291
|
-
const a =
|
|
292
|
+
const a = S.value.flatMap((d) => d.series).find((d) => d.id === l.id)?.value ?? 0, o = b.value.flatMap((d) => d.series).find((d) => d.id === l.id);
|
|
292
293
|
let u = o ? o.value : 0;
|
|
293
|
-
const c =
|
|
294
|
+
const c = S.value.find(
|
|
294
295
|
(d) => d.id === s.arcOfId
|
|
295
296
|
);
|
|
296
297
|
if (!c) return;
|
|
297
|
-
const v = c.series.map((d) => d.id),
|
|
298
|
+
const v = c.series.map((d) => d.id), N = Ft(
|
|
298
299
|
v,
|
|
299
300
|
v.length - 1,
|
|
300
301
|
w.value
|
|
301
302
|
);
|
|
302
|
-
w.value.includes(l.id) ? (w.value = w.value.filter((d) => d !== l.id), e.value.serieToggleAnimation.show ?
|
|
303
|
+
w.value.includes(l.id) ? (w.value = w.value.filter((d) => d !== l.id), e.value.serieToggleAnimation.show ? qe({
|
|
303
304
|
from: u,
|
|
304
305
|
to: a,
|
|
305
306
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
@@ -312,7 +313,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
312
313
|
}) : b.value = b.value.map((d) => ({
|
|
313
314
|
...d,
|
|
314
315
|
series: d.series.map((p) => p.id === l.id ? { ...p, value: a } : p)
|
|
315
|
-
}))) :
|
|
316
|
+
}))) : N && (e.value.serieToggleAnimation.show ? qe({
|
|
316
317
|
from: u,
|
|
317
318
|
to: 0,
|
|
318
319
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
@@ -330,8 +331,8 @@ 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,
|
|
334
|
+
const Z = $(() => A.value / S.value.length * e.value.style.chart.layout.donut.spacingRatio), Je = $(() => b.value.map((l, s) => A.value - s * A.value / S.value.length)), j = $(() => b.value.map((l, s) => {
|
|
335
|
+
const a = Math.abs(l.series.map((v) => v.value).reduce((v, N) => v + N, 0)) > 0, o = A.value - s * A.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
338
|
})), c = _e(
|
|
@@ -368,34 +369,34 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
368
369
|
Z.value
|
|
369
370
|
)
|
|
370
371
|
};
|
|
371
|
-
})),
|
|
372
|
-
const a = s *
|
|
372
|
+
})), Ke = $(() => [...S.value].map((l, s) => {
|
|
373
|
+
const a = s * A.value / S.value.length;
|
|
373
374
|
return {
|
|
374
375
|
sizeRatio: a,
|
|
375
376
|
donut: _e(
|
|
376
377
|
{ series: [{ value: 1 }] },
|
|
377
378
|
f.value.width / 2,
|
|
378
379
|
f.value.height / 2,
|
|
379
|
-
|
|
380
|
-
|
|
380
|
+
A.value - a,
|
|
381
|
+
A.value - a,
|
|
381
382
|
1.99999,
|
|
382
383
|
2,
|
|
383
384
|
1,
|
|
384
385
|
360,
|
|
385
386
|
105.25,
|
|
386
|
-
|
|
387
|
+
A.value / S.value.length * e.value.style.chart.layout.donut.spacingRatio
|
|
387
388
|
)[0]
|
|
388
389
|
};
|
|
389
|
-
})),
|
|
390
|
-
function
|
|
391
|
-
|
|
390
|
+
})), Qe = h(null), ee = h(null), te = h(null), fe = h(null);
|
|
391
|
+
function Nt({ datapoint: l, _relativeIndex: s, seriesIndex: a }) {
|
|
392
|
+
Qe.value = l.arcOfId, ee.value = l.id, te.value = a, fe.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 (
|
|
399
|
+
if (dt(o) && Zt(
|
|
399
400
|
() => o({
|
|
400
401
|
seriesIndex: a,
|
|
401
402
|
datapoint: l,
|
|
@@ -429,7 +430,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
429
430
|
${e.value.style.chart.tooltip.showValue ? `<b>${K(
|
|
430
431
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
431
432
|
l.value,
|
|
432
|
-
|
|
433
|
+
F({
|
|
433
434
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
434
435
|
v: l.value,
|
|
435
436
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -438,7 +439,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
438
439
|
{ datapoint: l, seriesIndex: a }
|
|
439
440
|
)}
|
|
440
441
|
</b>` : ""}
|
|
441
|
-
${e.value.style.chart.tooltip.showPercentage ? `(${
|
|
442
|
+
${e.value.style.chart.tooltip.showPercentage ? `(${F({
|
|
442
443
|
v: c.proportion * 100,
|
|
443
444
|
s: "%",
|
|
444
445
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
@@ -451,18 +452,18 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
451
452
|
t += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.arcOf ?? ""} - ${l.name}</div>`, t += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${l.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (t += `<b>${K(
|
|
452
453
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
453
454
|
l.value,
|
|
454
|
-
|
|
455
|
+
F({
|
|
455
456
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
456
457
|
v: l.value,
|
|
457
458
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
458
459
|
r: e.value.style.chart.tooltip.roundingValue
|
|
459
460
|
}),
|
|
460
461
|
{ datapoint: l, seriesIndex: a }
|
|
461
|
-
)}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? t += `<span>(${
|
|
462
|
+
)}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? t += `<span>(${F({
|
|
462
463
|
v: l.proportion * 100,
|
|
463
464
|
s: "%",
|
|
464
465
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
465
|
-
})})</span></div>` : t += `<b>${
|
|
466
|
+
})})</span></div>` : t += `<b>${F({
|
|
466
467
|
v: l.proportion * 100,
|
|
467
468
|
s: "%",
|
|
468
469
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
@@ -474,7 +475,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
474
475
|
function pe(l) {
|
|
475
476
|
return l.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
476
477
|
}
|
|
477
|
-
function
|
|
478
|
+
function Ze(l, s) {
|
|
478
479
|
if (!e.value.useBlurOnHover)
|
|
479
480
|
return "";
|
|
480
481
|
if (e.value.style.chart.tooltip.showAllItemsAtIndex && w.value.length === 0)
|
|
@@ -482,10 +483,10 @@ 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 ye = $(() =>
|
|
486
|
+
const ye = $(() => 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
|
);
|
|
@@ -495,9 +496,9 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
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
498
|
const c = D(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,
|
|
@@ -513,7 +514,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
513
514
|
isSegregated: w.value.includes(t.id)
|
|
514
515
|
};
|
|
515
516
|
});
|
|
516
|
-
})),
|
|
517
|
+
})), St = $(() => ({
|
|
517
518
|
cy: "nested-donuts-legend",
|
|
518
519
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
519
520
|
color: e.value.style.chart.legend.color,
|
|
@@ -528,8 +529,8 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
528
529
|
}))), s = b.value.flatMap((a) => a.series.map((o) => o.value));
|
|
529
530
|
return { head: l, body: s };
|
|
530
531
|
});
|
|
531
|
-
function
|
|
532
|
-
|
|
532
|
+
function je(l = null) {
|
|
533
|
+
st(() => {
|
|
533
534
|
const s = P.value.head.map((t, u) => [
|
|
534
535
|
[t.name],
|
|
535
536
|
[P.value.body[u]],
|
|
@@ -540,8 +541,8 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
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
|
});
|
|
@@ -553,7 +554,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
553
554
|
e.value.table.columnNames.value,
|
|
554
555
|
e.value.table.columnNames.percentage
|
|
555
556
|
], s = P.value.head.map((t, u) => {
|
|
556
|
-
const c =
|
|
557
|
+
const c = F({
|
|
557
558
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
558
559
|
v: P.value.body[u],
|
|
559
560
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -565,7 +566,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
565
566
|
name: t.name
|
|
566
567
|
},
|
|
567
568
|
c,
|
|
568
|
-
isNaN(P.value.body[u] / t.total) ? "-" :
|
|
569
|
+
isNaN(P.value.body[u] / t.total) ? "-" : F({
|
|
569
570
|
v: P.value.body[u] / t.total * 100,
|
|
570
571
|
s: "%",
|
|
571
572
|
r: e.value.table.td.roundingPercentage
|
|
@@ -595,43 +596,50 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
595
596
|
config: a
|
|
596
597
|
};
|
|
597
598
|
});
|
|
598
|
-
function
|
|
599
|
-
return
|
|
599
|
+
function At() {
|
|
600
|
+
return S.value;
|
|
600
601
|
}
|
|
601
|
-
function
|
|
602
|
+
function et() {
|
|
602
603
|
k.value.showTable = !k.value.showTable;
|
|
603
604
|
}
|
|
604
|
-
function
|
|
605
|
+
function tt() {
|
|
605
606
|
k.value.dataLabels.show = !k.value.dataLabels.show;
|
|
606
607
|
}
|
|
607
|
-
function
|
|
608
|
+
function lt() {
|
|
608
609
|
k.value.showTooltip = !k.value.showTooltip;
|
|
609
610
|
}
|
|
610
611
|
const ae = h(!1);
|
|
611
612
|
function be() {
|
|
612
613
|
ae.value = !ae.value;
|
|
613
614
|
}
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
615
|
+
async function It({ scale: l = 2 } = {}) {
|
|
616
|
+
if (!z.value) return;
|
|
617
|
+
const { imageUri: s, base64: a } = await ul({ domElement: z.value, base64: !0, img: !0, scale: l });
|
|
618
|
+
return { imageUri: s, base64: a };
|
|
619
|
+
}
|
|
620
|
+
return ft({
|
|
621
|
+
getData: At,
|
|
622
|
+
getImage: It,
|
|
623
|
+
generatePdf: Ye,
|
|
624
|
+
generateCsv: je,
|
|
625
|
+
generateImage: Xe,
|
|
626
|
+
toggleTable: et,
|
|
627
|
+
toggleLabels: tt,
|
|
628
|
+
toggleTooltip: lt,
|
|
629
|
+
toggleAnnotator: be,
|
|
630
|
+
toggleFullscreen: De
|
|
623
631
|
}), (l, s) => (n(), i("div", {
|
|
624
632
|
ref_key: "nestedDonutsChart",
|
|
625
|
-
ref:
|
|
626
|
-
class:
|
|
633
|
+
ref: z,
|
|
634
|
+
class: R(`vue-ui-nested-donuts ${G.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
627
635
|
style: ue(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
628
636
|
id: `nested_donuts_${y.value}`,
|
|
629
|
-
onMouseenter: s[3] || (s[3] = () => r(
|
|
630
|
-
onMouseleave: s[4] || (s[4] = () => r(
|
|
637
|
+
onMouseenter: s[3] || (s[3] = () => r(ze)(!0)),
|
|
638
|
+
onMouseleave: s[4] || (s[4] = () => r(ze)(!1))
|
|
631
639
|
}, [
|
|
632
|
-
e.value.userOptions.buttons.annotator ? (n(),
|
|
640
|
+
e.value.userOptions.buttons.annotator ? (n(), B(r(mt), {
|
|
633
641
|
key: 0,
|
|
634
|
-
svgRef: r(
|
|
642
|
+
svgRef: r(Ee),
|
|
635
643
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
636
644
|
color: e.value.style.chart.color,
|
|
637
645
|
active: ae.value,
|
|
@@ -640,17 +648,17 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
640
648
|
_t.value ? (n(), i("div", {
|
|
641
649
|
key: 1,
|
|
642
650
|
ref_key: "noTitle",
|
|
643
|
-
ref:
|
|
651
|
+
ref: Ae,
|
|
644
652
|
class: "vue-data-ui-no-title-space",
|
|
645
653
|
style: "height:36px; width: 100%;background:transparent"
|
|
646
654
|
}, null, 512)) : m("", !0),
|
|
647
655
|
e.value.style.chart.title.text ? (n(), i("div", {
|
|
648
656
|
key: 2,
|
|
649
657
|
ref_key: "chartTitle",
|
|
650
|
-
ref:
|
|
658
|
+
ref: Ne
|
|
651
659
|
}, [
|
|
652
|
-
(n(),
|
|
653
|
-
key: `title_${
|
|
660
|
+
(n(), B(ol, {
|
|
661
|
+
key: `title_${Ie.value}`,
|
|
654
662
|
config: {
|
|
655
663
|
title: {
|
|
656
664
|
cy: "donut-div-title",
|
|
@@ -663,13 +671,13 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
663
671
|
}
|
|
664
672
|
}, null, 8, ["config"]))
|
|
665
673
|
], 512)) : m("", !0),
|
|
666
|
-
e.value.userOptions.show && Q.value && (r(
|
|
674
|
+
e.value.userOptions.show && Q.value && (r(Me) || r(ce)) ? (n(), B(r($t), {
|
|
667
675
|
ref: "details",
|
|
668
|
-
key: `user_option_${
|
|
676
|
+
key: `user_option_${Fe.value}`,
|
|
669
677
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
670
678
|
color: e.value.style.chart.color,
|
|
671
|
-
isPrinting: r(
|
|
672
|
-
isImaging: r(
|
|
679
|
+
isPrinting: r(Be),
|
|
680
|
+
isImaging: r(Ge),
|
|
673
681
|
uid: y.value,
|
|
674
682
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
675
683
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -678,30 +686,31 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
678
686
|
hasTable: e.value.userOptions.buttons.table,
|
|
679
687
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
680
688
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
681
|
-
isFullscreen:
|
|
689
|
+
isFullscreen: G.value,
|
|
682
690
|
isTooltip: k.value.showTooltip,
|
|
683
691
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
684
|
-
chartElement:
|
|
692
|
+
chartElement: z.value,
|
|
685
693
|
position: e.value.userOptions.position,
|
|
686
694
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
687
695
|
isAnnotation: ae.value,
|
|
688
696
|
callbacks: e.value.userOptions.callbacks,
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
697
|
+
printScale: e.value.userOptions.print.scale,
|
|
698
|
+
onToggleFullscreen: De,
|
|
699
|
+
onGeneratePdf: r(Ye),
|
|
700
|
+
onGenerateCsv: je,
|
|
701
|
+
onGenerateImage: r(Xe),
|
|
702
|
+
onToggleTable: et,
|
|
703
|
+
onToggleLabels: tt,
|
|
704
|
+
onToggleTooltip: lt,
|
|
696
705
|
onToggleAnnotator: be,
|
|
697
706
|
style: ue({
|
|
698
|
-
visibility: r(
|
|
707
|
+
visibility: r(Me) ? r(ce) ? "visible" : "hidden" : "visible"
|
|
699
708
|
})
|
|
700
|
-
},
|
|
709
|
+
}, Et({ _: 2 }, [
|
|
701
710
|
l.$slots.menuIcon ? {
|
|
702
711
|
name: "menuIcon",
|
|
703
712
|
fn: L(({ isOpen: a, color: o }) => [
|
|
704
|
-
x(l.$slots, "menuIcon",
|
|
713
|
+
x(l.$slots, "menuIcon", X(W({ isOpen: a, color: o })), void 0, !0)
|
|
705
714
|
]),
|
|
706
715
|
key: "0"
|
|
707
716
|
} : void 0,
|
|
@@ -750,31 +759,31 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
750
759
|
l.$slots.optionFullscreen ? {
|
|
751
760
|
name: "optionFullscreen",
|
|
752
761
|
fn: L(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
753
|
-
x(l.$slots, "optionFullscreen",
|
|
762
|
+
x(l.$slots, "optionFullscreen", X(W({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
754
763
|
]),
|
|
755
764
|
key: "7"
|
|
756
765
|
} : void 0,
|
|
757
766
|
l.$slots.optionAnnotator ? {
|
|
758
767
|
name: "optionAnnotator",
|
|
759
768
|
fn: L(({ toggleAnnotator: a, isAnnotator: o }) => [
|
|
760
|
-
x(l.$slots, "optionAnnotator",
|
|
769
|
+
x(l.$slots, "optionAnnotator", X(W({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
|
|
761
770
|
]),
|
|
762
771
|
key: "8"
|
|
763
772
|
} : void 0
|
|
764
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0),
|
|
773
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0),
|
|
765
774
|
Q.value ? (n(), i("svg", {
|
|
766
775
|
key: 4,
|
|
767
776
|
ref_key: "svgRef",
|
|
768
|
-
ref:
|
|
769
|
-
xmlns: r(
|
|
770
|
-
class:
|
|
771
|
-
"vue-data-ui-fullscreen--on":
|
|
772
|
-
"vue-data-ui-fulscreen--off": !
|
|
777
|
+
ref: Ee,
|
|
778
|
+
xmlns: r(qt),
|
|
779
|
+
class: R({
|
|
780
|
+
"vue-data-ui-fullscreen--on": G.value,
|
|
781
|
+
"vue-data-ui-fulscreen--off": !G.value
|
|
773
782
|
}),
|
|
774
783
|
viewBox: `0 0 ${f.value.width <= 0 ? 1e-3 : f.value.width} ${f.value.height < 0 ? 1e-3 : f.value.height}`,
|
|
775
|
-
style: ue(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${
|
|
784
|
+
style: ue(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${Re.value.css}`)
|
|
776
785
|
}, [
|
|
777
|
-
|
|
786
|
+
nt(r(gt)),
|
|
778
787
|
l.$slots["chart-background"] ? (n(), i("foreignObject", {
|
|
779
788
|
key: 0,
|
|
780
789
|
x: 0,
|
|
@@ -786,9 +795,9 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
786
795
|
}
|
|
787
796
|
}, [
|
|
788
797
|
x(l.$slots, "chart-background", {}, void 0, !0)
|
|
789
|
-
], 8,
|
|
798
|
+
], 8, dl)) : m("", !0),
|
|
790
799
|
g("defs", null, [
|
|
791
|
-
(n(!0), i(T, null,
|
|
800
|
+
(n(!0), i(T, null, O(Ke.value, (a, o) => (n(), i("radialGradient", {
|
|
792
801
|
id: `radial_${y.value}_${o}`
|
|
793
802
|
}, [
|
|
794
803
|
s[5] || (s[5] = g("stop", {
|
|
@@ -797,21 +806,21 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
797
806
|
"stop-opacity": "0"
|
|
798
807
|
}, null, -1)),
|
|
799
808
|
g("stop", {
|
|
800
|
-
offset: `${(1 - Z.value /
|
|
801
|
-
"stop-color": r(
|
|
809
|
+
offset: `${(1 - Z.value / Je.value[o]) * 100}%`,
|
|
810
|
+
"stop-color": r(Ht)("#FFFFFF", 0),
|
|
802
811
|
"stop-opacity": "0"
|
|
803
|
-
}, null, 8,
|
|
812
|
+
}, null, 8, vl),
|
|
804
813
|
g("stop", {
|
|
805
|
-
offset: `${(1 - Z.value /
|
|
814
|
+
offset: `${(1 - Z.value / Je.value[o] / 2) * 100}%`,
|
|
806
815
|
"stop-color": "#FFFFFF",
|
|
807
816
|
"stop-opacity": e.value.style.chart.gradientIntensity / 100
|
|
808
|
-
}, null, 8,
|
|
817
|
+
}, null, 8, hl),
|
|
809
818
|
s[6] || (s[6] = g("stop", {
|
|
810
819
|
offset: "100%",
|
|
811
820
|
"stop-color": "#FFFFFF",
|
|
812
821
|
"stop-opacity": "0"
|
|
813
822
|
}, null, -1))
|
|
814
|
-
], 8,
|
|
823
|
+
], 8, cl))), 256))
|
|
815
824
|
]),
|
|
816
825
|
g("defs", null, [
|
|
817
826
|
g("filter", {
|
|
@@ -825,12 +834,12 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
825
834
|
in: "SourceGraphic",
|
|
826
835
|
stdDeviation: 2,
|
|
827
836
|
id: `blur_std_${y.value}`
|
|
828
|
-
}, null, 8,
|
|
837
|
+
}, null, 8, pl),
|
|
829
838
|
s[7] || (s[7] = g("feColorMatrix", {
|
|
830
839
|
type: "saturate",
|
|
831
840
|
values: "0"
|
|
832
841
|
}, null, -1))
|
|
833
|
-
], 8,
|
|
842
|
+
], 8, fl),
|
|
834
843
|
g("filter", {
|
|
835
844
|
id: `shadow_${y.value}`,
|
|
836
845
|
"color-interpolation-filters": "sRGB"
|
|
@@ -841,68 +850,68 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
841
850
|
stdDeviation: "10",
|
|
842
851
|
"flood-opacity": "0.5",
|
|
843
852
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
844
|
-
}, null, 8,
|
|
845
|
-
], 8,
|
|
853
|
+
}, null, 8, bl)
|
|
854
|
+
], 8, yl)
|
|
846
855
|
]),
|
|
847
|
-
(n(!0), i(T, null,
|
|
848
|
-
a.hasData ? (n(!0), i(T, { key: 0 },
|
|
856
|
+
(n(!0), i(T, null, O(j.value, (a, o) => (n(), i("g", null, [
|
|
857
|
+
a.hasData ? (n(!0), i(T, { key: 0 }, O(a.donut.filter((t) => !t.ghost), (t, u) => (n(), i("g", null, [
|
|
849
858
|
g("path", {
|
|
850
859
|
class: "vue-ui-donut-arc-path",
|
|
851
860
|
d: t.arcSlice,
|
|
852
861
|
fill: t.color,
|
|
853
862
|
stroke: e.value.style.chart.backgroundColor,
|
|
854
863
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
855
|
-
filter:
|
|
856
|
-
}, null, 8,
|
|
857
|
-
]))), 256)) : (n(!0), i(T, { key: 1 },
|
|
864
|
+
filter: Ze(t, u)
|
|
865
|
+
}, null, 8, gl)
|
|
866
|
+
]))), 256)) : (n(!0), i(T, { key: 1 }, O(a.skeleton, (t, u) => (n(), i("g", null, [
|
|
858
867
|
g("path", {
|
|
859
868
|
class: "vue-ui-donut-arc-path",
|
|
860
869
|
d: t.arcSlice,
|
|
861
870
|
fill: t.color,
|
|
862
871
|
stroke: e.value.style.chart.backgroundColor,
|
|
863
872
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
864
|
-
}, null, 8,
|
|
873
|
+
}, null, 8, ml)
|
|
865
874
|
]))), 256))
|
|
866
875
|
]))), 256)),
|
|
867
|
-
e.value.style.chart.useGradient ? (n(), i("g",
|
|
868
|
-
(n(!0), i(T, null,
|
|
876
|
+
e.value.style.chart.useGradient ? (n(), i("g", wl, [
|
|
877
|
+
(n(!0), i(T, null, O(Ke.value, (a, o) => (n(), i("g", null, [
|
|
869
878
|
g("path", {
|
|
870
879
|
d: a.donut.arcSlice,
|
|
871
880
|
fill: `url(#radial_${y.value}_${o})`,
|
|
872
881
|
stroke: "transparent",
|
|
873
882
|
"stroke-width": "0"
|
|
874
|
-
}, null, 8,
|
|
883
|
+
}, null, 8, kl)
|
|
875
884
|
]))), 256))
|
|
876
885
|
])) : m("", !0),
|
|
877
|
-
e.value.style.chart.layout.labels.dataLabels.showDonutName ? (n(), i("g",
|
|
878
|
-
(n(!0), i(T, null,
|
|
879
|
-
(n(!0), i(T, null,
|
|
886
|
+
e.value.style.chart.layout.labels.dataLabels.showDonutName ? (n(), i("g", $l, [
|
|
887
|
+
(n(!0), i(T, null, O(j.value, (a, o) => (n(), i("g", null, [
|
|
888
|
+
(n(!0), i(T, null, O(a.donut, (t, u) => (n(), i("g", null, [
|
|
880
889
|
u === 0 && f.value.width && f.value.height ? (n(), i("text", {
|
|
881
890
|
key: 0,
|
|
882
|
-
class:
|
|
891
|
+
class: R({ animated: e.value.useCssAnimation }),
|
|
883
892
|
x: f.value.width / 2,
|
|
884
893
|
y: t.startY - e.value.style.chart.layout.labels.dataLabels.fontSize + e.value.style.chart.layout.labels.dataLabels.donutNameOffsetY,
|
|
885
894
|
"text-anchor": "middle",
|
|
886
895
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
887
896
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
|
|
888
897
|
fill: e.value.style.chart.layout.labels.dataLabels.color
|
|
889
|
-
},
|
|
898
|
+
}, I(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? r(Jt)({
|
|
890
899
|
source: a.name,
|
|
891
900
|
length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
|
|
892
|
-
}) : a.name), 11,
|
|
901
|
+
}) : a.name), 11, Ll)) : m("", !0)
|
|
893
902
|
]))), 256))
|
|
894
903
|
]))), 256))
|
|
895
904
|
])) : m("", !0),
|
|
896
|
-
e.value.style.chart.layout.labels.dataLabels.show ? (n(), i("g",
|
|
897
|
-
(n(!0), i(T, null,
|
|
898
|
-
(n(!0), i(T, null,
|
|
899
|
-
filter:
|
|
905
|
+
e.value.style.chart.layout.labels.dataLabels.show ? (n(), i("g", xl, [
|
|
906
|
+
(n(!0), i(T, null, O(j.value, (a, o) => (n(), i("g", null, [
|
|
907
|
+
(n(!0), i(T, null, O(a.donut.filter((t) => !t.ghost), (t, u) => (n(), i("g", {
|
|
908
|
+
filter: Ze(t, u)
|
|
900
909
|
}, [
|
|
901
|
-
|
|
902
|
-
class:
|
|
910
|
+
rt(g("text", {
|
|
911
|
+
class: R({ animated: e.value.useCssAnimation }),
|
|
903
912
|
opacity: pe(t) ? 1 : 0,
|
|
904
|
-
"text-anchor": r(
|
|
905
|
-
x: r(
|
|
913
|
+
"text-anchor": r(H)(t, !0).anchor,
|
|
914
|
+
x: r(H)(
|
|
906
915
|
t,
|
|
907
916
|
!1,
|
|
908
917
|
e.value.style.chart.layout.labels.dataLabels.offsetX
|
|
@@ -915,21 +924,21 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
915
924
|
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
916
925
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
917
926
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldPercentage ? "bold" : "normal"
|
|
918
|
-
},
|
|
927
|
+
}, I(r(F)({
|
|
919
928
|
v: t.proportion * 100,
|
|
920
929
|
s: "%",
|
|
921
930
|
r: e.value.style.chart.layout.labels.dataLabels.roundingPercentage
|
|
922
|
-
})), 11,
|
|
931
|
+
})), 11, _l), [
|
|
923
932
|
[
|
|
924
|
-
|
|
933
|
+
it,
|
|
925
934
|
k.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage
|
|
926
935
|
]
|
|
927
936
|
]),
|
|
928
|
-
|
|
929
|
-
class:
|
|
937
|
+
rt(g("text", {
|
|
938
|
+
class: R({ animated: e.value.useCssAnimation }),
|
|
930
939
|
opacity: pe(t) ? 1 : 0,
|
|
931
|
-
"text-anchor": r(
|
|
932
|
-
x: r(
|
|
940
|
+
"text-anchor": r(H)(t, !0).anchor,
|
|
941
|
+
x: r(H)(
|
|
933
942
|
t,
|
|
934
943
|
!1,
|
|
935
944
|
e.value.style.chart.layout.labels.dataLabels.offsetX
|
|
@@ -942,27 +951,27 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
942
951
|
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
943
952
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
944
953
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
|
|
945
|
-
}, " (" +
|
|
954
|
+
}, " (" + I(r(K)(
|
|
946
955
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
947
956
|
t.value,
|
|
948
|
-
r(
|
|
957
|
+
r(F)({
|
|
949
958
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
950
959
|
v: t.value,
|
|
951
960
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
952
961
|
r: e.value.style.chart.layout.labels.dataLabels.roundingValue
|
|
953
962
|
}),
|
|
954
963
|
{ datapoint: t, seriesIndex: o, datapointIndex: u }
|
|
955
|
-
)) + ") ", 11,
|
|
964
|
+
)) + ") ", 11, Tl), [
|
|
956
965
|
[
|
|
957
|
-
|
|
966
|
+
it,
|
|
958
967
|
k.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue
|
|
959
968
|
]
|
|
960
969
|
]),
|
|
961
970
|
pe(t) && k.value.dataLabels.show && !e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue ? (n(), i("text", {
|
|
962
971
|
key: 0,
|
|
963
|
-
class:
|
|
964
|
-
"text-anchor": r(
|
|
965
|
-
x: r(
|
|
972
|
+
class: R({ animated: e.value.useCssAnimation }),
|
|
973
|
+
"text-anchor": r(H)(t, !0).anchor,
|
|
974
|
+
x: r(H)(
|
|
966
975
|
t,
|
|
967
976
|
!1,
|
|
968
977
|
e.value.style.chart.layout.labels.dataLabels.offsetX
|
|
@@ -975,42 +984,42 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
975
984
|
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
976
985
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
977
986
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
|
|
978
|
-
},
|
|
987
|
+
}, I(r(K)(
|
|
979
988
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
980
989
|
t.value,
|
|
981
|
-
r(
|
|
990
|
+
r(F)({
|
|
982
991
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
983
992
|
v: t.value,
|
|
984
993
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
985
994
|
r: e.value.style.chart.layout.labels.dataLabels.roundingValue
|
|
986
995
|
}),
|
|
987
996
|
{ datapoint: t, seriesIndex: o, datapointIndex: u }
|
|
988
|
-
)), 11,
|
|
989
|
-
], 8,
|
|
997
|
+
)), 11, Ol)) : m("", !0)
|
|
998
|
+
], 8, Cl))), 256))
|
|
990
999
|
]))), 256))
|
|
991
1000
|
])) : m("", !0),
|
|
992
|
-
(n(!0), i(T, null,
|
|
993
|
-
(n(!0), i(T, null,
|
|
1001
|
+
(n(!0), i(T, null, O(j.value, (a, o) => (n(), i("g", null, [
|
|
1002
|
+
(n(!0), i(T, null, O(a.donut, (t, u) => (n(), i("g", null, [
|
|
994
1003
|
g("path", {
|
|
995
1004
|
d: t.arcSlice,
|
|
996
|
-
fill:
|
|
997
|
-
onMouseenter: (c) =>
|
|
1005
|
+
fill: xt.value === o ? "rgba(0,0,0,0.1)" : "transparent",
|
|
1006
|
+
onMouseenter: (c) => Nt({
|
|
998
1007
|
datapoint: t,
|
|
999
1008
|
seriesIndex: t.seriesIndex
|
|
1000
1009
|
}),
|
|
1001
|
-
onClick: (c) =>
|
|
1010
|
+
onClick: (c) => Ot({ datapoint: t, index: u }),
|
|
1002
1011
|
onMouseleave: s[0] || (s[0] = (c) => {
|
|
1003
|
-
re.value = !1,
|
|
1012
|
+
re.value = !1, Qe.value = null, ee.value = null, te.value = null;
|
|
1004
1013
|
})
|
|
1005
|
-
}, null, 40,
|
|
1014
|
+
}, null, 40, Fl)
|
|
1006
1015
|
]))), 256))
|
|
1007
1016
|
]))), 256)),
|
|
1008
1017
|
x(l.$slots, "svg", { svg: f.value }, void 0, !0)
|
|
1009
|
-
], 14,
|
|
1010
|
-
l.$slots.watermark ? (n(), i("div",
|
|
1011
|
-
x(l.$slots, "watermark",
|
|
1018
|
+
], 14, il)) : m("", !0),
|
|
1019
|
+
l.$slots.watermark ? (n(), i("div", Nl, [
|
|
1020
|
+
x(l.$slots, "watermark", X(W({ isPrinting: r(Be) || r(Ge) })), void 0, !0)
|
|
1012
1021
|
])) : m("", !0),
|
|
1013
|
-
Q.value ? m("", !0) : (n(),
|
|
1022
|
+
Q.value ? m("", !0) : (n(), B(r(wt), {
|
|
1014
1023
|
key: 6,
|
|
1015
1024
|
config: {
|
|
1016
1025
|
type: "donut",
|
|
@@ -1022,7 +1031,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
1022
1031
|
}
|
|
1023
1032
|
}
|
|
1024
1033
|
}, null, 8, ["config"])),
|
|
1025
|
-
|
|
1034
|
+
nt(r(kt), {
|
|
1026
1035
|
show: k.value.showTooltip && re.value,
|
|
1027
1036
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1028
1037
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -1033,16 +1042,16 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
1033
1042
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
1034
1043
|
position: e.value.style.chart.tooltip.position,
|
|
1035
1044
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1036
|
-
parent:
|
|
1045
|
+
parent: z.value,
|
|
1037
1046
|
content: ie.value,
|
|
1038
|
-
isFullscreen:
|
|
1039
|
-
isCustom: r(
|
|
1047
|
+
isFullscreen: G.value,
|
|
1048
|
+
isCustom: r(dt)(e.value.style.chart.tooltip.customFormat)
|
|
1040
1049
|
}, {
|
|
1041
1050
|
"tooltip-before": L(() => [
|
|
1042
|
-
x(l.$slots, "tooltip-before",
|
|
1051
|
+
x(l.$slots, "tooltip-before", X(W({ ...fe.value })), void 0, !0)
|
|
1043
1052
|
]),
|
|
1044
1053
|
"tooltip-after": L(() => [
|
|
1045
|
-
x(l.$slots, "tooltip-after",
|
|
1054
|
+
x(l.$slots, "tooltip-after", X(W({ ...fe.value })), void 0, !0)
|
|
1046
1055
|
]),
|
|
1047
1056
|
_: 3
|
|
1048
1057
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
@@ -1050,26 +1059,26 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
1050
1059
|
key: 7,
|
|
1051
1060
|
ref_key: "chartLegend",
|
|
1052
1061
|
ref: de,
|
|
1053
|
-
class:
|
|
1062
|
+
class: R({ "vue-ui-nested-donuts-legend": ye.value.length > 1 })
|
|
1054
1063
|
}, [
|
|
1055
|
-
(n(!0), i(T, null,
|
|
1064
|
+
(n(!0), i(T, null, O(ye.value, (a, o) => (n(), B(sl, {
|
|
1056
1065
|
key: `legend_${o}_${Pe.value}`,
|
|
1057
1066
|
legendSet: a,
|
|
1058
|
-
config:
|
|
1067
|
+
config: St.value,
|
|
1059
1068
|
onClickMarker: s[1] || (s[1] = ({ legend: t }) => he(t))
|
|
1060
1069
|
}, {
|
|
1061
1070
|
legendTitle: L(({ titleSet: t }) => [
|
|
1062
|
-
t[0] && t[0].arcOf ? (n(), i("div",
|
|
1071
|
+
t[0] && t[0].arcOf ? (n(), i("div", Sl, I(t[0].arcOf), 1)) : m("", !0)
|
|
1063
1072
|
]),
|
|
1064
1073
|
item: L(({ legend: t, index: u }) => [
|
|
1065
1074
|
g("div", {
|
|
1066
1075
|
onClick: (c) => he(t),
|
|
1067
1076
|
style: ue(`opacity:${w.value.includes(t.id) ? 0.5 : 1}`)
|
|
1068
1077
|
}, [
|
|
1069
|
-
ne(
|
|
1078
|
+
ne(I(t.name) + ": " + I(r(K)(
|
|
1070
1079
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
1071
1080
|
t.value,
|
|
1072
|
-
r(
|
|
1081
|
+
r(F)({
|
|
1073
1082
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1074
1083
|
v: t.value,
|
|
1075
1084
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -1080,13 +1089,13 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
1080
1089
|
w.value.includes(t.id) ? (n(), i(T, { key: 1 }, [
|
|
1081
1090
|
ne(" ( - % ) ")
|
|
1082
1091
|
], 64)) : (n(), i(T, { key: 0 }, [
|
|
1083
|
-
ne(" (" +
|
|
1092
|
+
ne(" (" + I(isNaN(t.value / t.total) ? "-" : r(F)({
|
|
1084
1093
|
v: t.value / t.total * 100,
|
|
1085
1094
|
s: "%",
|
|
1086
1095
|
r: e.value.style.chart.legend.roundingPercentage
|
|
1087
1096
|
})) + ") ", 1)
|
|
1088
1097
|
], 64))
|
|
1089
|
-
], 12,
|
|
1098
|
+
], 12, Al)
|
|
1090
1099
|
]),
|
|
1091
1100
|
_: 2
|
|
1092
1101
|
}, 1032, ["legendSet", "config"]))), 128))
|
|
@@ -1101,12 +1110,12 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
1101
1110
|
l.$slots.source ? (n(), i("div", {
|
|
1102
1111
|
key: 9,
|
|
1103
1112
|
ref_key: "source",
|
|
1104
|
-
ref:
|
|
1113
|
+
ref: Se,
|
|
1105
1114
|
dir: "auto"
|
|
1106
1115
|
}, [
|
|
1107
1116
|
x(l.$slots, "source", {}, void 0, !0)
|
|
1108
1117
|
], 512)) : m("", !0),
|
|
1109
|
-
Q.value ? (n(),
|
|
1118
|
+
Q.value ? (n(), B(r(yt), {
|
|
1110
1119
|
key: 10,
|
|
1111
1120
|
hideDetails: "",
|
|
1112
1121
|
config: {
|
|
@@ -1123,7 +1132,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
1123
1132
|
}
|
|
1124
1133
|
}, {
|
|
1125
1134
|
content: L(() => [
|
|
1126
|
-
(n(),
|
|
1135
|
+
(n(), B(r(bt), {
|
|
1127
1136
|
key: `table_${Ve.value}`,
|
|
1128
1137
|
colNames: le.value.colNames,
|
|
1129
1138
|
head: le.value.head,
|
|
@@ -1136,19 +1145,19 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
1136
1145
|
g("div", {
|
|
1137
1146
|
innerHTML: a,
|
|
1138
1147
|
style: { display: "flex", "align-items": "center" }
|
|
1139
|
-
}, null, 8,
|
|
1148
|
+
}, null, 8, Il)
|
|
1140
1149
|
]),
|
|
1141
1150
|
td: L(({ td: a }) => [
|
|
1142
|
-
ne(
|
|
1151
|
+
ne(I(a.name || a), 1)
|
|
1143
1152
|
]),
|
|
1144
1153
|
_: 1
|
|
1145
1154
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
1146
1155
|
]),
|
|
1147
1156
|
_: 1
|
|
1148
1157
|
}, 8, ["config"])) : m("", !0)
|
|
1149
|
-
], 46,
|
|
1158
|
+
], 46, rl));
|
|
1150
1159
|
}
|
|
1151
|
-
},
|
|
1160
|
+
}, Wl = /* @__PURE__ */ nl(Vl, [["__scopeId", "data-v-6a801edc"]]);
|
|
1152
1161
|
export {
|
|
1153
|
-
|
|
1162
|
+
Wl as default
|
|
1154
1163
|
};
|