vue-data-ui 3.0.2 → 3.0.3
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-uNlT54JX.js → Arrow-CUUMjZed.js} +1 -1
- package/dist/{BaseDraggableDialog-CujvKo06.js → BaseDraggableDialog-DgADqZE_.js} +2 -2
- package/dist/{BaseIcon-B8CknCYk.js → BaseIcon-DLm6QTwr.js} +1 -1
- package/dist/{ColorPicker-Dmdfq2VV.js → ColorPicker-Crz_B792.js} +2 -2
- package/dist/{DataTable-osx68WLA.js → DataTable-CWzb1j8d.js} +2 -2
- package/dist/{Legend-CQsASoei.js → Legend-CevCqVZ5.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BWz0WtJG.js → NonSvgPenAndPaper-DOG92bzo.js} +3 -3
- package/dist/{PackageVersion-DZGrOKw5.js → PackageVersion-n4qokxnx.js} +1 -1
- package/dist/{PenAndPaper-CdXspg5R.js → PenAndPaper-C_R9vJkU.js} +3 -3
- package/dist/{Shape-0sW2StrO.js → Shape-BHVN6hj0.js} +1 -1
- package/dist/{Slicer-52shR-Vu.js → Slicer-BBjJsLlJ.js} +2 -2
- package/dist/{SparkTooltip-Dxrruu4s.js → SparkTooltip-BHlSggBm.js} +1 -1
- package/dist/{Title-CntvKJss.js → Title-CINHji0n.js} +1 -1
- package/dist/{Tooltip-DF8e4iB9.js → Tooltip-hfdFRoLp.js} +1 -1
- package/dist/{UserOptions-DQyIO0ts.js → UserOptions-r0epwyXR.js} +2 -2
- package/dist/{dom-to-png-KC3tMd8p.js → dom-to-png-m7MwDfMh.js} +1 -1
- package/dist/{img-Cv4nScI0.js → img-CBdOMFyn.js} +1 -1
- package/dist/{index-B9Ct1B_p.js → index-DrRiscPm.js} +908 -871
- package/dist/{pdf-D0GEfQrI.js → pdf-CITAFtf8.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +23 -0
- package/dist/types/vue-data-ui.d.ts +23 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DvdDLkzw.js → useAutoSizeLabelsInsideViewbox-C0d8h29h.js} +1 -1
- package/dist/{useNestedProp-C0gKxLur.js → useNestedProp-BXhArS-K.js} +1 -1
- package/dist/{usePrinter-DcZXg1hH.js → usePrinter-CZk2ISUm.js} +2 -2
- package/dist/{vue-data-ui-DZMDT7RA.js → vue-data-ui-omyV52aJ.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BnCv2CD_.js → vue-ui-3d-bar-ByS7XX4A.js} +6 -6
- package/dist/{vue-ui-accordion-B31QK9Hj.js → vue-ui-accordion-s_m_NJzJ.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Bc4V0a3k.js → vue-ui-age-pyramid-BJRjKF9G.js} +6 -6
- package/dist/{vue-ui-annotator-D8haGQiH.js → vue-ui-annotator-BcdnqcBy.js} +2 -2
- package/dist/{vue-ui-bullet-n7Y6jYLj.js → vue-ui-bullet-D82pT7tL.js} +199 -186
- package/dist/{vue-ui-candlestick-nCI5GlX7.js → vue-ui-candlestick-ThIDj7Q5.js} +7 -7
- package/dist/{vue-ui-carousel-table-JH2NjnOk.js → vue-ui-carousel-table-BHOAO0Gj.js} +4 -4
- package/dist/{vue-ui-chestnut-CQtV9AR4.js → vue-ui-chestnut-3sjb4gzU.js} +5 -5
- package/dist/{vue-ui-chord-CGi_iSaL.js → vue-ui-chord-CfVEqNV6.js} +377 -366
- package/dist/{vue-ui-circle-pack-C8v3Okle.js → vue-ui-circle-pack-u4ABWUZI.js} +6 -6
- package/dist/{vue-ui-cursor-0DHciy1D.js → vue-ui-cursor-ByfhuSzG.js} +2 -2
- package/dist/{vue-ui-dashboard-CDHJk8sC.js → vue-ui-dashboard-CBCck-UI.js} +62 -62
- package/dist/{vue-ui-digits-Bn1P1K9u.js → vue-ui-digits-BU-8e-1s.js} +2 -2
- package/dist/{vue-ui-donut-evolution-Crn7Nnpy.js → vue-ui-donut-evolution-B4lDDX7G.js} +388 -377
- package/dist/{vue-ui-donut-GqHffshG.js → vue-ui-donut-g5x3IpMV.js} +345 -334
- package/dist/{vue-ui-dumbbell-C__nFV3V.js → vue-ui-dumbbell-BJ8qcUud.js} +354 -343
- package/dist/{vue-ui-flow-7q9o4Jxp.js → vue-ui-flow-CRwGogHq.js} +299 -288
- package/dist/{vue-ui-funnel-DjmlAdRf.js → vue-ui-funnel-DzF_UOAJ.js} +6 -6
- package/dist/{vue-ui-galaxy-Crh7xV6s.js → vue-ui-galaxy-BqunXfkx.js} +252 -241
- package/dist/{vue-ui-gauge-PjjV3JmB.js → vue-ui-gauge-DPjvYyeF.js} +7 -7
- package/dist/{vue-ui-gizmo-DREMjBvZ.js → vue-ui-gizmo-CU7HsWOV.js} +3 -3
- package/dist/{vue-ui-heatmap-D2CF8Vn8.js → vue-ui-heatmap-CFh-br8X.js} +7 -7
- package/dist/{vue-ui-history-plot-DX31nVYa.js → vue-ui-history-plot-OdhJu988.js} +283 -270
- package/dist/{vue-ui-kpi-FtnzfW7L.js → vue-ui-kpi-CVp3sMeg.js} +3 -3
- package/dist/{vue-ui-mini-loader-DaHPhzVf.js → vue-ui-mini-loader-LtGcTTh2.js} +2 -2
- package/dist/{vue-ui-molecule--4MdUCOi.js → vue-ui-molecule-DklqwI8c.js} +5 -5
- package/dist/{vue-ui-mood-radar-Ci416qv5.js → vue-ui-mood-radar-CGuHZngw.js} +264 -253
- package/dist/{vue-ui-nested-donuts-DoVSN0qE.js → vue-ui-nested-donuts-CHrryP89.js} +377 -366
- package/dist/{vue-ui-onion-ChqyoLl8.js → vue-ui-onion-n74T6frI.js} +265 -254
- package/dist/{vue-ui-parallel-coordinate-plot-BPsH_W7X.js → vue-ui-parallel-coordinate-plot-DtQi0qWp.js} +276 -265
- package/dist/{vue-ui-quadrant-CLQqKyzu.js → vue-ui-quadrant-CZn3Ab1f.js} +356 -345
- package/dist/{vue-ui-quick-chart-DogHdO42.js → vue-ui-quick-chart-CUBOj0Y6.js} +639 -628
- package/dist/{vue-ui-radar-B4rGvzKn.js → vue-ui-radar-BAazL3Qv.js} +254 -243
- package/dist/{vue-ui-rating-BvopSHNQ.js → vue-ui-rating-CPa7MotU.js} +2 -2
- package/dist/{vue-ui-relation-circle-C6GEmCiw.js → vue-ui-relation-circle-g6pCa6y9.js} +7 -7
- package/dist/{vue-ui-ridgeline-BJVJ02bA.js → vue-ui-ridgeline-C_Mpseru.js} +8 -8
- package/dist/{vue-ui-rings-BRTxWhKI.js → vue-ui-rings-grCm0xEc.js} +250 -239
- package/dist/{vue-ui-scatter-D_BP7XBR.js → vue-ui-scatter-CEr615c-.js} +383 -372
- package/dist/{vue-ui-skeleton-C_nf6VDZ.js → vue-ui-skeleton-BaqJKjqR.js} +3 -3
- package/dist/{vue-ui-smiley-DHCpzxMs.js → vue-ui-smiley-DyIfQ5KW.js} +2 -2
- package/dist/{vue-ui-spark-trend-DfM5OJIx.js → vue-ui-spark-trend-CqVF6MXT.js} +3 -3
- package/dist/{vue-ui-sparkbar-BrvOwqG_.js → vue-ui-sparkbar-DwSd_DZu.js} +3 -3
- package/dist/{vue-ui-sparkgauge-Dp2OkGrS.js → vue-ui-sparkgauge-Bm4UGamr.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-K_7q57W8.js → vue-ui-sparkhistogram-DTZK4gCA.js} +4 -4
- package/dist/{vue-ui-sparkline-BiEu6kq8.js → vue-ui-sparkline-DGfIevXQ.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BNlyxt3y.js → vue-ui-sparkstackbar-RT_LpLKL.js} +3 -3
- package/dist/{vue-ui-stackbar-BKb_dgUq.js → vue-ui-stackbar-9Yxdd7ko.js} +443 -432
- package/dist/{vue-ui-strip-plot-D6dwyO-N.js → vue-ui-strip-plot--2bdwjUL.js} +7 -7
- package/dist/{vue-ui-table-B9UWta9o.js → vue-ui-table-BSNxwgTV.js} +4 -9
- package/dist/{vue-ui-table-heatmap-JkwDydPq.js → vue-ui-table-heatmap-BaK9FRE1.js} +5 -5
- package/dist/{vue-ui-table-sparkline-BOKgPT0e.js → vue-ui-table-sparkline-Dbi7H7Xb.js} +4 -4
- package/dist/{vue-ui-thermometer-Dj0CVTk3.js → vue-ui-thermometer-9EIYVN0g.js} +7 -7
- package/dist/{vue-ui-timer-B407nCRd.js → vue-ui-timer-OH8HQjpu.js} +5 -5
- package/dist/{vue-ui-tiremarks-C_betH5B.js → vue-ui-tiremarks-D6JpH-vv.js} +6 -6
- package/dist/{vue-ui-treemap-D0gScsaQ.js → vue-ui-treemap-DqEQgjj-.js} +356 -345
- package/dist/{vue-ui-vertical-bar-D3aoix_0.js → vue-ui-vertical-bar-BfnMDmGN.js} +9 -9
- package/dist/{vue-ui-waffle-hpsuszbt.js → vue-ui-waffle-BJu7n_i7.js} +306 -295
- package/dist/{vue-ui-wheel-0etwsu-o.js → vue-ui-wheel-KDWfx0os.js} +6 -6
- package/dist/{vue-ui-word-cloud-tsEprRhX.js → vue-ui-word-cloud-Dcg3uI2O.js} +6 -6
- package/dist/{vue-ui-world-BCtGvXjy.js → vue-ui-world-SYtMz1jo.js} +343 -329
- package/dist/{vue-ui-xy-canvas-B1s9twtZ.js → vue-ui-xy-canvas-BGJg2doK.js} +305 -294
- package/dist/{vue-ui-xy-BoT_c9bU.js → vue-ui-xy-qzB1oN1A.js} +1356 -1345
- package/package.json +1 -1
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { defineAsyncComponent as q, computed as C, ref 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 { u as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { _ as
|
|
13
|
-
const
|
|
1
|
+
import { defineAsyncComponent as q, computed as C, ref as c, toRefs as qt, watch as re, onMounted as Ht, shallowRef as ht, onBeforeUnmount as Jt, createElementBlock as r, openBlock as u, unref as i, normalizeStyle as ie, normalizeClass as z, createBlock as M, createCommentVNode as $, createElementVNode as p, createVNode as ft, createSlots as Kt, withCtx as _, renderSlot as x, normalizeProps as H, guardReactiveProps as J, Fragment as A, renderList as T, toDisplayString as O, withDirectives as pt, vShow as yt, Teleport as Qt, createTextVNode as Zt, nextTick as bt } from "vue";
|
|
2
|
+
import { u as jt, c as ea, t as ta, a as aa, p as Se, b as la, C as Ie, o as oa, f as K, d as sa, G as E, e as ua, m as Ve, i as F, X as na, s as ra, L as gt, q as Pe, r as Q, k as j, y as mt, v as ia, w as da, z as va, T as wt, h as De } from "./index-DrRiscPm.js";
|
|
3
|
+
import { t as ca, u as ha } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as fa, B as pa } from "./useLoading-D7YHNtLX.js";
|
|
5
|
+
import { u as ya } from "./usePrinter-CZk2ISUm.js";
|
|
6
|
+
import { u as $t } from "./useNestedProp-BXhArS-K.js";
|
|
7
|
+
import { u as ba } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { u as ga } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
+
import ma from "./img-CBdOMFyn.js";
|
|
10
|
+
import wa from "./Title-CINHji0n.js";
|
|
11
|
+
import $a from "./Legend-CevCqVZ5.js";
|
|
12
|
+
import { _ as ka } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
const La = ["id"], Ca = ["id"], _a = ["xmlns", "viewBox"], xa = ["width", "height"], Aa = ["id"], Ta = ["offset", "stop-color"], Na = ["offset", "stop-opacity"], Fa = ["id"], Oa = ["id"], Sa = ["id"], Ia = ["flood-color"], Va = ["id", "d"], Pa = ["d", "fill", "stroke", "stroke-width", "filter"], Da = ["d", "fill", "stroke", "stroke-width"], za = { key: 1 }, Ma = ["d", "fill"], Ea = { key: 2 }, Ba = ["font-size", "font-weight", "fill", "dy"], Ra = ["href"], Ua = ["x", "y", "font-size", "font-weight", "fill"], Ga = { key: 3 }, Ya = ["filter"], Xa = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], Wa = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], qa = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], Ha = ["d", "fill", "onMouseenter", "onClick", "onMouseleave"], Ja = {
|
|
14
14
|
key: 4,
|
|
15
15
|
class: "vue-data-ui-watermark"
|
|
16
|
-
},
|
|
16
|
+
}, Ka = ["id"], Qa = {
|
|
17
17
|
key: 0,
|
|
18
18
|
class: "vue-ui-nested-donuts-legend-title"
|
|
19
|
-
},
|
|
19
|
+
}, Za = ["onClick"], ja = ["innerHTML"], el = {
|
|
20
20
|
__name: "vue-ui-nested-donuts",
|
|
21
21
|
props: {
|
|
22
22
|
config: {
|
|
@@ -33,19 +33,19 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
emits: ["selectLegend", "selectDatapoint"],
|
|
36
|
-
setup(
|
|
37
|
-
const
|
|
36
|
+
setup(kt, { expose: Lt, emit: Ct }) {
|
|
37
|
+
const _t = q(() => import("./Tooltip-hfdFRoLp.js")), xt = q(() => import("./vue-ui-accordion-s_m_NJzJ.js")), At = q(() => import("./DataTable-CWzb1j8d.js")), Tt = q(() => import("./UserOptions-r0epwyXR.js")), Nt = q(() => import("./PenAndPaper-C_R9vJkU.js")), Ft = q(() => import("./PackageVersion-n4qokxnx.js")), { vue_ui_nested_donuts: Ot } = jt(), g = kt, de = C({
|
|
38
38
|
get() {
|
|
39
39
|
return !!g.dataset && g.dataset.length;
|
|
40
40
|
},
|
|
41
41
|
set(a) {
|
|
42
42
|
return a;
|
|
43
43
|
}
|
|
44
|
-
}),
|
|
45
|
-
function
|
|
44
|
+
}), f = c(ea()), ve = c(!1), ce = c(""), he = c(null), ze = c(0), V = c(null), Me = c(null), fe = c(null), Ee = c(null), Be = c(null), Re = c(0), Ue = c(0), Ge = c(0), B = c(!0), R = c([]), Z = c([]), Ye = c(!1), G = c(!1);
|
|
45
|
+
function Xe(a) {
|
|
46
46
|
G.value = a, ze.value += 1;
|
|
47
47
|
}
|
|
48
|
-
const e =
|
|
48
|
+
const e = c(ge()), We = {
|
|
49
49
|
name: "",
|
|
50
50
|
series: [
|
|
51
51
|
{
|
|
@@ -64,17 +64,17 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
64
64
|
color: "#CACACA"
|
|
65
65
|
}
|
|
66
66
|
]
|
|
67
|
-
}, { loading:
|
|
68
|
-
...
|
|
67
|
+
}, { loading: pe, FINAL_DATASET: U, manualLoading: ye } = fa({
|
|
68
|
+
...qt(g),
|
|
69
69
|
FINAL_CONFIG: e,
|
|
70
70
|
prepareConfig: ge,
|
|
71
71
|
callback: () => {
|
|
72
72
|
Promise.resolve().then(async () => {
|
|
73
|
-
await
|
|
73
|
+
await Ke();
|
|
74
74
|
});
|
|
75
75
|
},
|
|
76
|
-
skeletonDataset: [
|
|
77
|
-
skeletonConfig:
|
|
76
|
+
skeletonDataset: [We, We],
|
|
77
|
+
skeletonConfig: ta({
|
|
78
78
|
defaultConfig: e.value,
|
|
79
79
|
userConfig: {
|
|
80
80
|
useCssAnimation: !1,
|
|
@@ -100,31 +100,31 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
})
|
|
103
|
-
}), { userOptionsVisible: be, setUserOptionsVisibility:
|
|
103
|
+
}), { userOptionsVisible: be, setUserOptionsVisibility: qe, keepUserOptionState: He } = ba({ config: e.value }), { svgRef: ee } = ga({
|
|
104
104
|
config: e.value.style.chart.title
|
|
105
105
|
});
|
|
106
106
|
function ge() {
|
|
107
|
-
const a =
|
|
107
|
+
const a = $t({
|
|
108
108
|
userConfig: g.config,
|
|
109
|
-
defaultConfig:
|
|
109
|
+
defaultConfig: Ot
|
|
110
110
|
});
|
|
111
111
|
let s = {};
|
|
112
112
|
return a.theme ? s = {
|
|
113
|
-
|
|
114
|
-
userConfig:
|
|
113
|
+
...$t({
|
|
114
|
+
userConfig: la.vue_ui_nested_donuts[a.theme] || g.config,
|
|
115
115
|
defaultConfig: a
|
|
116
116
|
}),
|
|
117
|
-
customPalette:
|
|
117
|
+
customPalette: aa[a.theme] || Se
|
|
118
118
|
} : s = a, g.config && Ie(g.config, "events.datapointEnter") ? s.events.datapointEnter = g.config.events.datapointEnter : s.events.datapointEnter = null, g.config && Ie(g.config, "events.datapointLeave") ? s.events.datapointLeave = g.config.events.datapointLeave : s.events.datapointLeave = null, g.config && Ie(g.config, "events.datapointClick") ? s.events.datapointClick = g.config.events.datapointClick : s.events.datapointClick = null, s;
|
|
119
119
|
}
|
|
120
120
|
re(
|
|
121
121
|
() => g.config,
|
|
122
122
|
(a) => {
|
|
123
|
-
|
|
123
|
+
pe.value || (e.value = ge()), be.value = !e.value.userOptions.showOnChartHover, Qe(), Re.value += 1, Ue.value += 1, Ge.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, h.value.width = e.value.style.chart.width, h.value.height = e.value.style.chart.height;
|
|
124
124
|
},
|
|
125
125
|
{ deep: !0 }
|
|
126
126
|
);
|
|
127
|
-
const
|
|
127
|
+
const Je = C(() => {
|
|
128
128
|
const { top: a, right: s, bottom: l, left: o } = e.value.style.chart.padding;
|
|
129
129
|
return {
|
|
130
130
|
css: `padding:${a}px ${s}px ${l}px ${o}px`,
|
|
@@ -134,29 +134,29 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
134
134
|
left: o
|
|
135
135
|
};
|
|
136
136
|
});
|
|
137
|
-
function
|
|
137
|
+
function St(a, s = 1e3, l = 50) {
|
|
138
138
|
return new Promise((o) => {
|
|
139
139
|
const t = a.length;
|
|
140
|
-
|
|
141
|
-
let
|
|
142
|
-
a.forEach((v,
|
|
140
|
+
R.value = Array(t).fill(0), Z.value = [];
|
|
141
|
+
let n = 0;
|
|
142
|
+
a.forEach((v, y) => {
|
|
143
143
|
setTimeout(() => {
|
|
144
144
|
const w = performance.now();
|
|
145
145
|
function d(b) {
|
|
146
|
-
const N = Math.min((b - w) / s, 1),
|
|
147
|
-
|
|
146
|
+
const N = Math.min((b - w) / s, 1), _e = wt(N), xe = v * _e;
|
|
147
|
+
R.value[y] = xe, R.value = [...R.value];
|
|
148
148
|
const ue = [];
|
|
149
149
|
let Ae = 0;
|
|
150
150
|
g.dataset.forEach((ne, Te) => {
|
|
151
|
-
const
|
|
152
|
-
(Fe, Oe) => Fe + De(
|
|
151
|
+
const Gt = De(ne.series.reduce(
|
|
152
|
+
(Fe, Oe) => Fe + De(E(Oe.values).reduce((Xt, Wt) => Xt + Wt, 0)),
|
|
153
153
|
0
|
|
154
|
-
)),
|
|
154
|
+
)), Yt = De(R.value.slice(Ae, Ae + ne.series.length).reduce((Fe, Oe) => Fe + Oe, 0)), Ne = Gt - Yt;
|
|
155
155
|
Ne > Number.MIN_VALUE && ue.push({
|
|
156
156
|
name: "__ghost__",
|
|
157
157
|
arcOf: ne.name,
|
|
158
|
-
arcOfId: `${
|
|
159
|
-
id: `ghost_${
|
|
158
|
+
arcOfId: `${f.value}_${Te}`,
|
|
159
|
+
id: `ghost_${f.value}_${Te}`,
|
|
160
160
|
seriesIndex: -1,
|
|
161
161
|
datasetIndex: Te,
|
|
162
162
|
color: "transparent",
|
|
@@ -165,28 +165,28 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
165
165
|
absoluteValues: [],
|
|
166
166
|
ghost: !0
|
|
167
167
|
}), Ae += ne.series.length;
|
|
168
|
-
}), Z.value = ue, N < 1 ? requestAnimationFrame(d) : (
|
|
168
|
+
}), Z.value = ue, N < 1 ? requestAnimationFrame(d) : (n += 1, n === t && o());
|
|
169
169
|
}
|
|
170
170
|
requestAnimationFrame(d);
|
|
171
|
-
},
|
|
171
|
+
}, y * l);
|
|
172
172
|
});
|
|
173
173
|
});
|
|
174
174
|
}
|
|
175
|
-
async function
|
|
175
|
+
async function Ke() {
|
|
176
176
|
if (e.value.startAnimation?.show) {
|
|
177
|
-
const s =
|
|
178
|
-
(l) =>
|
|
177
|
+
const s = U.value.flatMap((l) => l.series).map(
|
|
178
|
+
(l) => E(l.values).reduce((o, t) => o + t, 0)
|
|
179
179
|
);
|
|
180
|
-
|
|
180
|
+
R.value = s.map(() => 0), B.value = !0, Z.value = U.value.map((l, o) => {
|
|
181
181
|
const t = l.series.reduce(
|
|
182
|
-
(
|
|
182
|
+
(n, v) => n + E(v.values).reduce((y, w) => y + w, 0),
|
|
183
183
|
0
|
|
184
184
|
);
|
|
185
185
|
return {
|
|
186
186
|
name: "__ghost__",
|
|
187
187
|
arcOf: l.name,
|
|
188
|
-
arcOfId: `${
|
|
189
|
-
id: `ghost_${
|
|
188
|
+
arcOfId: `${f.value}_${o}`,
|
|
189
|
+
id: `ghost_${f.value}_${o}`,
|
|
190
190
|
seriesIndex: -1,
|
|
191
191
|
datasetIndex: o,
|
|
192
192
|
color: "transparent",
|
|
@@ -195,50 +195,50 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
195
195
|
absoluteValues: [],
|
|
196
196
|
ghost: !0
|
|
197
197
|
};
|
|
198
|
-
}), await
|
|
198
|
+
}), await bt(), St(
|
|
199
199
|
s,
|
|
200
200
|
e.value.startAnimation.durationMs,
|
|
201
201
|
e.value.startAnimation.staggerMs
|
|
202
202
|
).then(() => {
|
|
203
|
-
|
|
203
|
+
B.value = !1, Z.value = [];
|
|
204
204
|
});
|
|
205
205
|
} else
|
|
206
|
-
|
|
206
|
+
B.value = !1;
|
|
207
207
|
}
|
|
208
|
-
|
|
209
|
-
|
|
208
|
+
Ht(async () => {
|
|
209
|
+
Ye.value = !0, Qe(), await Ke();
|
|
210
210
|
});
|
|
211
|
-
const P =
|
|
212
|
-
function
|
|
213
|
-
if (
|
|
211
|
+
const P = ht(null), Y = ht(null), X = C(() => !!e.value.debug);
|
|
212
|
+
function Qe() {
|
|
213
|
+
if (oa(g.dataset) ? (K({
|
|
214
214
|
componentName: "VueUiNestedDonuts",
|
|
215
215
|
type: "dataset",
|
|
216
216
|
debug: X.value
|
|
217
|
-
}), de.value = !1,
|
|
218
|
-
const a =
|
|
219
|
-
const { width: s, height: l } =
|
|
217
|
+
}), de.value = !1, ye.value = !0) : ye.value = e.value.loading, e.value.responsive) {
|
|
218
|
+
const a = ca(() => {
|
|
219
|
+
const { width: s, height: l } = ha({
|
|
220
220
|
chart: V.value,
|
|
221
221
|
title: e.value.style.chart.title.text ? Me.value : null,
|
|
222
222
|
legend: e.value.style.chart.legend.show ? fe.value : null,
|
|
223
223
|
source: Ee.value,
|
|
224
224
|
noTitle: Be.value,
|
|
225
|
-
padding:
|
|
225
|
+
padding: Je.value
|
|
226
226
|
});
|
|
227
227
|
requestAnimationFrame(() => {
|
|
228
|
-
|
|
228
|
+
h.value.width = s, h.value.height = l;
|
|
229
229
|
});
|
|
230
230
|
});
|
|
231
231
|
P.value && (Y.value && P.value.unobserve(Y.value), P.value.disconnect()), P.value = new ResizeObserver(a), Y.value = V.value.parentNode, P.value.observe(Y.value);
|
|
232
232
|
}
|
|
233
233
|
}
|
|
234
|
-
|
|
234
|
+
Jt(() => {
|
|
235
235
|
P.value && (Y.value && P.value.unobserve(Y.value), P.value.disconnect());
|
|
236
236
|
});
|
|
237
|
-
const { isPrinting:
|
|
238
|
-
elementId: `nested_donuts_${
|
|
237
|
+
const { isPrinting: Ze, isImaging: je, generatePdf: et, generateImage: tt } = ya({
|
|
238
|
+
elementId: `nested_donuts_${f.value}`,
|
|
239
239
|
fileName: e.value.style.chart.title.text || "vue-ui-nested-donuts",
|
|
240
240
|
options: e.value.userOptions.print
|
|
241
|
-
}),
|
|
241
|
+
}), It = C(() => e.value.userOptions.show && !e.value.style.chart.title.text), Vt = C(() => sa(e.value.customPalette)), k = c({
|
|
242
242
|
dataLabels: {
|
|
243
243
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
244
244
|
},
|
|
@@ -254,30 +254,30 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
254
254
|
showTooltip: e.value.style.chart.tooltip.show
|
|
255
255
|
};
|
|
256
256
|
}, { immediate: !0 });
|
|
257
|
-
const
|
|
257
|
+
const h = c({
|
|
258
258
|
width: e.value.style.chart.width,
|
|
259
259
|
height: e.value.style.chart.height
|
|
260
|
-
}),
|
|
261
|
-
function
|
|
262
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: a, seriesIndex: l }),
|
|
260
|
+
}), at = Ct;
|
|
261
|
+
function Pt({ datapoint: a, index: s, seriesIndex: l }) {
|
|
262
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: a, seriesIndex: l }), at("selectDatapoint", { datapoint: a, index: s });
|
|
263
263
|
}
|
|
264
|
-
function
|
|
264
|
+
function lt({
|
|
265
265
|
from: a,
|
|
266
266
|
to: s,
|
|
267
267
|
duration: l,
|
|
268
268
|
onUpdate: o,
|
|
269
269
|
onDone: t,
|
|
270
|
-
easing:
|
|
270
|
+
easing: n = wt
|
|
271
271
|
}) {
|
|
272
272
|
const v = performance.now();
|
|
273
|
-
function
|
|
274
|
-
const d = Math.min((w - v) / l, 1), b =
|
|
275
|
-
o(N, d), d < 1 ? requestAnimationFrame(
|
|
273
|
+
function y(w) {
|
|
274
|
+
const d = Math.min((w - v) / l, 1), b = n(d), N = a + (s - a) * b;
|
|
275
|
+
o(N, d), d < 1 ? requestAnimationFrame(y) : (o(s, 1), t && t());
|
|
276
276
|
}
|
|
277
|
-
requestAnimationFrame(
|
|
277
|
+
requestAnimationFrame(y);
|
|
278
278
|
}
|
|
279
|
-
const L =
|
|
280
|
-
|
|
279
|
+
const L = c([]), S = C(() => {
|
|
280
|
+
pe.value, U.value.forEach((s, l) => {
|
|
281
281
|
[null, void 0].includes(s.name) && K({
|
|
282
282
|
componentName: "VueUiNestedDonuts",
|
|
283
283
|
type: "datasetSerieAttribute",
|
|
@@ -314,31 +314,31 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
314
314
|
});
|
|
315
315
|
});
|
|
316
316
|
let a = 0;
|
|
317
|
-
return
|
|
317
|
+
return U.value.map((s, l) => ({
|
|
318
318
|
...s,
|
|
319
|
-
total: s.series.filter((o) => !L.value.includes(o.id)).map((o) =>
|
|
319
|
+
total: s.series.filter((o) => !L.value.includes(o.id)).map((o) => E(o.values).reduce((t, n) => t + n, 0)).reduce((o, t) => o + t, 0),
|
|
320
320
|
datasetIndex: l,
|
|
321
|
-
id: `${
|
|
321
|
+
id: `${f.value}_${l}`,
|
|
322
322
|
series: s.series.map((o, t) => {
|
|
323
|
-
const
|
|
323
|
+
const n = E(o.values).reduce((v, y) => v + y, 0);
|
|
324
324
|
return {
|
|
325
325
|
name: o.name,
|
|
326
326
|
arcOf: s.name,
|
|
327
|
-
arcOfId: `${
|
|
328
|
-
id: `${
|
|
327
|
+
arcOfId: `${f.value}_${l}`,
|
|
328
|
+
id: `${f.value}_${l}_${t}`,
|
|
329
329
|
seriesIndex: t,
|
|
330
330
|
datasetIndex: l,
|
|
331
|
-
color:
|
|
332
|
-
value:
|
|
331
|
+
color: ua(o.color) || Vt.value[t] || Se[t % Se.length],
|
|
332
|
+
value: B.value ? R.value[a++] ?? 0 : n,
|
|
333
333
|
absoluteValues: o.values || []
|
|
334
334
|
};
|
|
335
335
|
})
|
|
336
336
|
}));
|
|
337
337
|
});
|
|
338
338
|
re(() => g.dataset, (a) => {
|
|
339
|
-
Array.isArray(a) && a.length > 0 && (
|
|
339
|
+
Array.isArray(a) && a.length > 0 && (ye.value = !1);
|
|
340
340
|
}, { immediate: !0 });
|
|
341
|
-
const I = C(() => Math.min(
|
|
341
|
+
const I = C(() => Math.min(h.value.height, h.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)), ot = C(() => [...S.value].map((a, s) => {
|
|
342
342
|
const l = a.series.filter((o) => !L.value.includes(o.id)).map((o) => o.value).reduce((o, t) => o + t, 0);
|
|
343
343
|
return {
|
|
344
344
|
...a,
|
|
@@ -349,40 +349,40 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
349
349
|
}))
|
|
350
350
|
};
|
|
351
351
|
}));
|
|
352
|
-
function
|
|
352
|
+
function Dt(a, s, l) {
|
|
353
353
|
let o = 0;
|
|
354
354
|
for (let t = 0; t < a.length; t += 1)
|
|
355
355
|
l.includes(a[t]) && (o += 1);
|
|
356
356
|
return o < s;
|
|
357
357
|
}
|
|
358
|
-
const m =
|
|
358
|
+
const m = c(ot.value);
|
|
359
359
|
re(
|
|
360
|
-
() =>
|
|
360
|
+
() => ot.value,
|
|
361
361
|
(a) => m.value = a
|
|
362
362
|
);
|
|
363
363
|
function me(a) {
|
|
364
|
-
|
|
364
|
+
at("selectLegend", a);
|
|
365
365
|
const s = g.dataset.flatMap(
|
|
366
|
-
(d, b) => d.series.map((N,
|
|
367
|
-
value:
|
|
368
|
-
id: `${
|
|
369
|
-
arcOfId: `${
|
|
366
|
+
(d, b) => d.series.map((N, _e) => ({
|
|
367
|
+
value: E(N.values).reduce((xe, ue) => xe + ue, 0),
|
|
368
|
+
id: `${f.value}_${b}_${_e}`,
|
|
369
|
+
arcOfId: `${f.value}_${b}`
|
|
370
370
|
}))
|
|
371
371
|
).find((d) => d.id === a.id);
|
|
372
372
|
if (!s) return;
|
|
373
373
|
const l = S.value.flatMap((d) => d.series).find((d) => d.id === a.id)?.value ?? 0, o = m.value.flatMap((d) => d.series).find((d) => d.id === a.id);
|
|
374
|
-
let
|
|
374
|
+
let n = o ? o.value : 0;
|
|
375
375
|
const v = S.value.find(
|
|
376
376
|
(d) => d.id === s.arcOfId
|
|
377
377
|
);
|
|
378
378
|
if (!v) return;
|
|
379
|
-
const
|
|
380
|
-
|
|
381
|
-
|
|
379
|
+
const y = v.series.map((d) => d.id), w = Dt(
|
|
380
|
+
y,
|
|
381
|
+
y.length - 1,
|
|
382
382
|
L.value
|
|
383
383
|
);
|
|
384
|
-
L.value.includes(a.id) ? (L.value = L.value.filter((d) => d !== a.id), e.value.serieToggleAnimation.show ?
|
|
385
|
-
from:
|
|
384
|
+
L.value.includes(a.id) ? (L.value = L.value.filter((d) => d !== a.id), e.value.serieToggleAnimation.show ? lt({
|
|
385
|
+
from: n,
|
|
386
386
|
to: l,
|
|
387
387
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
388
388
|
onUpdate: (d) => {
|
|
@@ -394,8 +394,8 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
394
394
|
}) : m.value = m.value.map((d) => ({
|
|
395
395
|
...d,
|
|
396
396
|
series: d.series.map((b) => b.id === a.id ? { ...b, value: l } : b)
|
|
397
|
-
}))) : w && (e.value.serieToggleAnimation.show ?
|
|
398
|
-
from:
|
|
397
|
+
}))) : w && (e.value.serieToggleAnimation.show ? lt({
|
|
398
|
+
from: n,
|
|
399
399
|
to: 0,
|
|
400
400
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
401
401
|
onUpdate: (d) => {
|
|
@@ -412,16 +412,16 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
412
412
|
series: d.series.map((b) => b.id === a.id ? { ...b, value: 0 } : b)
|
|
413
413
|
})), L.value.push(a.id)));
|
|
414
414
|
}
|
|
415
|
-
const te = C(() => I.value / S.value.length * e.value.style.chart.layout.donut.spacingRatio),
|
|
416
|
-
const l = Math.abs(a.series.map((w) => w.value).reduce((w, d) => w + d, 0)) > 0, o = I.value - s * I.value / m.value.length, t =
|
|
415
|
+
const te = C(() => I.value / S.value.length * e.value.style.chart.layout.donut.spacingRatio), st = C(() => m.value.map((a, s) => I.value - s * I.value / S.value.length)), W = C(() => m.value.map((a, s) => {
|
|
416
|
+
const l = Math.abs(a.series.map((w) => w.value).reduce((w, d) => w + d, 0)) > 0, o = I.value - s * I.value / m.value.length, t = B.value ? Z.value.find((w) => w.datasetIndex === s) : null, n = [...a.series, ...t ? [t] : []].map((w) => ({
|
|
417
417
|
...w,
|
|
418
418
|
value: w.value < 1e-11 ? Number.MIN_VALUE : w.value
|
|
419
419
|
})), v = Ve(
|
|
420
420
|
{ series: [
|
|
421
421
|
{ name: "_", color: e.value.style.chart.layout.donut.emptyFill, value: 1 }
|
|
422
422
|
] },
|
|
423
|
-
|
|
424
|
-
|
|
423
|
+
h.value.width / 2,
|
|
424
|
+
h.value.height / 2,
|
|
425
425
|
o,
|
|
426
426
|
o,
|
|
427
427
|
1.99999,
|
|
@@ -430,7 +430,7 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
430
430
|
360,
|
|
431
431
|
105.25,
|
|
432
432
|
te.value
|
|
433
|
-
),
|
|
433
|
+
), y = `M ${h.value.width / 2},${h.value.height / 2 + o}
|
|
434
434
|
a ${o},${o} 0 1,1 0,${-2 * o}
|
|
435
435
|
a ${o},${o} 0 1,1 0,${2 * o}`;
|
|
436
436
|
return {
|
|
@@ -438,11 +438,11 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
438
438
|
hasData: l,
|
|
439
439
|
radius: o,
|
|
440
440
|
skeleton: v,
|
|
441
|
-
fullCirclePath:
|
|
441
|
+
fullCirclePath: y,
|
|
442
442
|
donut: Ve(
|
|
443
|
-
{ series:
|
|
444
|
-
|
|
445
|
-
|
|
443
|
+
{ series: n },
|
|
444
|
+
h.value.width / 2,
|
|
445
|
+
h.value.height / 2,
|
|
446
446
|
o,
|
|
447
447
|
o,
|
|
448
448
|
1.99999,
|
|
@@ -453,14 +453,14 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
453
453
|
te.value
|
|
454
454
|
)
|
|
455
455
|
};
|
|
456
|
-
})),
|
|
456
|
+
})), ut = C(() => [...S.value].map((a, s) => {
|
|
457
457
|
const l = s * I.value / S.value.length;
|
|
458
458
|
return {
|
|
459
459
|
sizeRatio: l,
|
|
460
460
|
donut: Ve(
|
|
461
461
|
{ series: [{ value: 1 }] },
|
|
462
|
-
|
|
463
|
-
|
|
462
|
+
h.value.width / 2,
|
|
463
|
+
h.value.height / 2,
|
|
464
464
|
I.value - l,
|
|
465
465
|
I.value - l,
|
|
466
466
|
1.99999,
|
|
@@ -471,19 +471,19 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
471
471
|
I.value / S.value.length * e.value.style.chart.layout.donut.spacingRatio
|
|
472
472
|
)[0]
|
|
473
473
|
};
|
|
474
|
-
})),
|
|
475
|
-
function
|
|
476
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: a, seriesIndex: s }), ve.value = !1,
|
|
474
|
+
})), nt = c(null), ae = c(null), le = c(null), we = c(null);
|
|
475
|
+
function zt({ datapoint: a, seriesIndex: s }) {
|
|
476
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: a, seriesIndex: s }), ve.value = !1, nt.value = null, he.value = null, ae.value = null, le.value = null;
|
|
477
477
|
}
|
|
478
|
-
function
|
|
479
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: a, seriesIndex: l }),
|
|
478
|
+
function Mt({ datapoint: a, _relativeIndex: s, seriesIndex: l }) {
|
|
479
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: a, seriesIndex: l }), nt.value = a.arcOfId, ae.value = a.id, le.value = l, he.value = a.id, we.value = {
|
|
480
480
|
datapoint: a,
|
|
481
481
|
seriesIndex: l,
|
|
482
482
|
series: m.value,
|
|
483
483
|
config: e.value
|
|
484
484
|
};
|
|
485
485
|
const o = e.value.style.chart.tooltip.customFormat;
|
|
486
|
-
if (
|
|
486
|
+
if (mt(o) && va(
|
|
487
487
|
() => o({
|
|
488
488
|
seriesIndex: l,
|
|
489
489
|
datapoint: a,
|
|
@@ -500,11 +500,11 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
500
500
|
else {
|
|
501
501
|
let t = "";
|
|
502
502
|
if (e.value.style.chart.tooltip.showAllItemsAtIndex && L.value.length === 0) {
|
|
503
|
-
const
|
|
504
|
-
|
|
503
|
+
const n = m.value.map((v) => v.series.find((y) => y.seriesIndex === l));
|
|
504
|
+
n.forEach((v, y) => {
|
|
505
505
|
if (!v) return "";
|
|
506
506
|
t += `
|
|
507
|
-
<div style="display:flex; flex-direction: column; justify-content:flex-start; align-items:flex-start;padding:6px 0; ${
|
|
507
|
+
<div style="display:flex; flex-direction: column; justify-content:flex-start; align-items:flex-start;padding:6px 0; ${y < n.length - 1 ? `border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor}` : ""}">
|
|
508
508
|
<div style="display:flex; flex-direction: row; gap: 3px; justify-content:flex-start; align-items:center;">
|
|
509
509
|
<svg viewBox="0 0 20 20" height="${e.value.style.chart.tooltip.fontSize}" width="${e.value.style.chart.tooltip.fontSize}">
|
|
510
510
|
<circle cx="10" cy="10" r="10" fill="${v.color}"/>
|
|
@@ -562,38 +562,38 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
562
562
|
function $e(a) {
|
|
563
563
|
return a.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
564
564
|
}
|
|
565
|
-
function
|
|
565
|
+
function rt(a, s) {
|
|
566
566
|
if (!e.value.useBlurOnHover)
|
|
567
567
|
return "";
|
|
568
568
|
if (e.value.style.chart.tooltip.showAllItemsAtIndex && L.value.length === 0)
|
|
569
|
-
return [null, void 0].includes(le.value) || le.value === s ? "" : `url(#blur_${
|
|
569
|
+
return [null, void 0].includes(le.value) || le.value === s ? "" : `url(#blur_${f.value})`;
|
|
570
570
|
if (!e.value.style.chart.tooltip.showAllItemsAtIndex || L.value.length)
|
|
571
|
-
return [null, void 0].includes(ae.value) || ae.value === a.id ? "" : `url(#blur_${
|
|
571
|
+
return [null, void 0].includes(ae.value) || ae.value === a.id ? "" : `url(#blur_${f.value})`;
|
|
572
572
|
}
|
|
573
573
|
const ke = C(() => S.value.map((a, s) => {
|
|
574
574
|
const l = a.series.filter(
|
|
575
575
|
(t) => !L.value.includes(t.id)
|
|
576
|
-
), o =
|
|
577
|
-
const
|
|
576
|
+
), o = B.value ? l.map((t) => {
|
|
577
|
+
const n = U.value[s].series.findIndex(
|
|
578
578
|
(v) => v.name === t.name
|
|
579
579
|
);
|
|
580
|
-
return
|
|
581
|
-
|
|
582
|
-
).reduce((v,
|
|
583
|
-
}).reduce((t,
|
|
584
|
-
return a.series.map((t,
|
|
585
|
-
const v =
|
|
580
|
+
return E(
|
|
581
|
+
U.value[s].series[n].values
|
|
582
|
+
).reduce((v, y) => v + y, 0);
|
|
583
|
+
}).reduce((t, n) => t + n, 0) : l.map((t) => t.value).reduce((t, n) => t + n, 0);
|
|
584
|
+
return a.series.map((t, n) => {
|
|
585
|
+
const v = E(U.value[s].series[n].values).reduce(
|
|
586
586
|
(w, d) => w + d,
|
|
587
587
|
0
|
|
588
|
-
),
|
|
588
|
+
), y = B.value ? v : t.value;
|
|
589
589
|
return {
|
|
590
590
|
name: t.name,
|
|
591
591
|
color: t.color,
|
|
592
|
-
value:
|
|
592
|
+
value: y,
|
|
593
593
|
shape: "circle",
|
|
594
594
|
arcOf: t.arcOf,
|
|
595
595
|
id: t.id,
|
|
596
|
-
seriesIndex:
|
|
596
|
+
seriesIndex: n,
|
|
597
597
|
datasetIndex: s,
|
|
598
598
|
total: o,
|
|
599
599
|
opacity: L.value.includes(t.id) ? 0.5 : 1,
|
|
@@ -601,7 +601,7 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
601
601
|
isSegregated: L.value.includes(t.id)
|
|
602
602
|
};
|
|
603
603
|
});
|
|
604
|
-
})),
|
|
604
|
+
})), Et = C(() => ({
|
|
605
605
|
cy: "nested-donuts-legend",
|
|
606
606
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
607
607
|
color: e.value.style.chart.legend.color,
|
|
@@ -616,20 +616,20 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
616
616
|
}))), s = m.value.flatMap((l) => l.series.map((o) => o.value));
|
|
617
617
|
return { head: a, body: s };
|
|
618
618
|
});
|
|
619
|
-
function
|
|
620
|
-
|
|
621
|
-
const s = D.value.head.map((t,
|
|
619
|
+
function it(a = null) {
|
|
620
|
+
bt(() => {
|
|
621
|
+
const s = D.value.head.map((t, n) => [
|
|
622
622
|
[t.name],
|
|
623
|
-
[D.value.body[
|
|
623
|
+
[D.value.body[n]],
|
|
624
624
|
[
|
|
625
|
-
isNaN(D.value.body[
|
|
625
|
+
isNaN(D.value.body[n] / t.total) ? "-" : D.value.body[n] / t.total * 100
|
|
626
626
|
]
|
|
627
627
|
]), l = [
|
|
628
628
|
[e.value.style.chart.title.text],
|
|
629
629
|
[e.value.style.chart.title.subtitle.text],
|
|
630
630
|
[[""], ["val"], ["%"]]
|
|
631
|
-
].concat(s), o =
|
|
632
|
-
a ? a(o) :
|
|
631
|
+
].concat(s), o = ia(l);
|
|
632
|
+
a ? a(o) : da({
|
|
633
633
|
csvContent: o,
|
|
634
634
|
title: e.value.style.chart.title.text || "vue-ui-nested-donuts"
|
|
635
635
|
});
|
|
@@ -640,10 +640,10 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
640
640
|
e.value.table.columnNames.series,
|
|
641
641
|
e.value.table.columnNames.value,
|
|
642
642
|
e.value.table.columnNames.percentage
|
|
643
|
-
], s = D.value.head.map((t,
|
|
643
|
+
], s = D.value.head.map((t, n) => {
|
|
644
644
|
const v = F({
|
|
645
645
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
646
|
-
v: D.value.body[
|
|
646
|
+
v: D.value.body[n],
|
|
647
647
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
648
648
|
r: e.value.table.td.roundingValue
|
|
649
649
|
});
|
|
@@ -653,8 +653,8 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
653
653
|
name: t.name
|
|
654
654
|
},
|
|
655
655
|
v,
|
|
656
|
-
isNaN(D.value.body[
|
|
657
|
-
v: D.value.body[
|
|
656
|
+
isNaN(D.value.body[n] / t.total) ? "-" : F({
|
|
657
|
+
v: D.value.body[n] / t.total * 100,
|
|
658
658
|
s: "%",
|
|
659
659
|
r: e.value.table.td.roundingPercentage
|
|
660
660
|
})
|
|
@@ -683,62 +683,62 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
683
683
|
config: l
|
|
684
684
|
};
|
|
685
685
|
});
|
|
686
|
-
function
|
|
686
|
+
function Bt() {
|
|
687
687
|
return S.value;
|
|
688
688
|
}
|
|
689
|
-
function
|
|
689
|
+
function dt() {
|
|
690
690
|
k.value.showTable = !k.value.showTable;
|
|
691
691
|
}
|
|
692
|
-
function
|
|
692
|
+
function vt() {
|
|
693
693
|
k.value.dataLabels.show = !k.value.dataLabels.show;
|
|
694
694
|
}
|
|
695
|
-
function
|
|
695
|
+
function ct() {
|
|
696
696
|
k.value.showTooltip = !k.value.showTooltip;
|
|
697
697
|
}
|
|
698
|
-
const se =
|
|
698
|
+
const se = c(!1);
|
|
699
699
|
function Le() {
|
|
700
700
|
se.value = !se.value;
|
|
701
701
|
}
|
|
702
|
-
async function
|
|
702
|
+
async function Rt({ scale: a = 2 } = {}) {
|
|
703
703
|
if (!V.value) return;
|
|
704
|
-
const { width: s, height: l } = V.value.getBoundingClientRect(), o = s / l, { imageUri: t, base64:
|
|
704
|
+
const { width: s, height: l } = V.value.getBoundingClientRect(), o = s / l, { imageUri: t, base64: n } = await ma({ domElement: V.value, base64: !0, img: !0, scale: a });
|
|
705
705
|
return {
|
|
706
706
|
imageUri: t,
|
|
707
|
-
base64:
|
|
707
|
+
base64: n,
|
|
708
708
|
title: e.value.style.chart.title.text,
|
|
709
709
|
width: s,
|
|
710
710
|
height: l,
|
|
711
711
|
aspectRatio: o
|
|
712
712
|
};
|
|
713
713
|
}
|
|
714
|
-
const Ce =
|
|
715
|
-
function
|
|
714
|
+
const Ce = c(null);
|
|
715
|
+
function Ut() {
|
|
716
716
|
if (!Ce.value) return;
|
|
717
717
|
const { x: a, y: s, width: l, height: o } = Ce.value.getBBox();
|
|
718
718
|
ee.value && ee.value.setAttribute("viewBox", `${a} ${s} ${l + Math.min(0, a)} ${o + Math.min(0, s)}`);
|
|
719
719
|
}
|
|
720
|
-
return
|
|
721
|
-
autoSize:
|
|
722
|
-
getData:
|
|
723
|
-
getImage:
|
|
724
|
-
generatePdf:
|
|
725
|
-
generateCsv:
|
|
726
|
-
generateImage:
|
|
727
|
-
toggleTable:
|
|
728
|
-
toggleLabels:
|
|
729
|
-
toggleTooltip:
|
|
720
|
+
return Lt({
|
|
721
|
+
autoSize: Ut,
|
|
722
|
+
getData: Bt,
|
|
723
|
+
getImage: Rt,
|
|
724
|
+
generatePdf: et,
|
|
725
|
+
generateCsv: it,
|
|
726
|
+
generateImage: tt,
|
|
727
|
+
toggleTable: dt,
|
|
728
|
+
toggleLabels: vt,
|
|
729
|
+
toggleTooltip: ct,
|
|
730
730
|
toggleAnnotator: Le,
|
|
731
|
-
toggleFullscreen:
|
|
732
|
-
}), (a, s) => (
|
|
731
|
+
toggleFullscreen: Xe
|
|
732
|
+
}), (a, s) => (u(), r("div", {
|
|
733
733
|
ref_key: "nestedDonutsChart",
|
|
734
734
|
ref: V,
|
|
735
735
|
class: z(`vue-ui-nested-donuts ${G.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
736
736
|
style: ie(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
737
|
-
id: `nested_donuts_${
|
|
738
|
-
onMouseenter: s[2] || (s[2] = () => i(
|
|
739
|
-
onMouseleave: s[3] || (s[3] = () => i(
|
|
737
|
+
id: `nested_donuts_${f.value}`,
|
|
738
|
+
onMouseenter: s[2] || (s[2] = () => i(qe)(!0)),
|
|
739
|
+
onMouseleave: s[3] || (s[3] = () => i(qe)(!1))
|
|
740
740
|
}, [
|
|
741
|
-
e.value.userOptions.buttons.annotator ? (
|
|
741
|
+
e.value.userOptions.buttons.annotator ? (u(), M(i(Nt), {
|
|
742
742
|
key: 0,
|
|
743
743
|
svgRef: i(ee),
|
|
744
744
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -746,19 +746,19 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
746
746
|
active: se.value,
|
|
747
747
|
onClose: Le
|
|
748
748
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : $("", !0),
|
|
749
|
-
|
|
749
|
+
It.value ? (u(), r("div", {
|
|
750
750
|
key: 1,
|
|
751
751
|
ref_key: "noTitle",
|
|
752
752
|
ref: Be,
|
|
753
753
|
class: "vue-data-ui-no-title-space",
|
|
754
754
|
style: "height:36px; width: 100%;background:transparent"
|
|
755
755
|
}, null, 512)) : $("", !0),
|
|
756
|
-
e.value.style.chart.title.text ? (
|
|
756
|
+
e.value.style.chart.title.text ? (u(), r("div", {
|
|
757
757
|
key: 2,
|
|
758
758
|
ref_key: "chartTitle",
|
|
759
759
|
ref: Me
|
|
760
760
|
}, [
|
|
761
|
-
(
|
|
761
|
+
(u(), M(wa, {
|
|
762
762
|
key: `title_${Re.value}`,
|
|
763
763
|
config: {
|
|
764
764
|
title: {
|
|
@@ -772,14 +772,17 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
772
772
|
}
|
|
773
773
|
}, null, 8, ["config"]))
|
|
774
774
|
], 512)) : $("", !0),
|
|
775
|
-
|
|
775
|
+
p("div", {
|
|
776
|
+
id: `legend-top-${f.value}`
|
|
777
|
+
}, null, 8, Ca),
|
|
778
|
+
e.value.userOptions.show && de.value && (i(He) || i(be)) ? (u(), M(i(Tt), {
|
|
776
779
|
ref: "details",
|
|
777
780
|
key: `user_option_${ze.value}`,
|
|
778
781
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
779
782
|
color: e.value.style.chart.color,
|
|
780
|
-
isPrinting: i(
|
|
781
|
-
isImaging: i(
|
|
782
|
-
uid:
|
|
783
|
+
isPrinting: i(Ze),
|
|
784
|
+
isImaging: i(je),
|
|
785
|
+
uid: f.value,
|
|
783
786
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
784
787
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
785
788
|
hasXls: e.value.userOptions.buttons.csv,
|
|
@@ -796,211 +799,211 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
796
799
|
isAnnotation: se.value,
|
|
797
800
|
callbacks: e.value.userOptions.callbacks,
|
|
798
801
|
printScale: e.value.userOptions.print.scale,
|
|
799
|
-
onToggleFullscreen:
|
|
800
|
-
onGeneratePdf: i(
|
|
801
|
-
onGenerateCsv:
|
|
802
|
-
onGenerateImage: i(
|
|
803
|
-
onToggleTable:
|
|
804
|
-
onToggleLabels:
|
|
805
|
-
onToggleTooltip:
|
|
802
|
+
onToggleFullscreen: Xe,
|
|
803
|
+
onGeneratePdf: i(et),
|
|
804
|
+
onGenerateCsv: it,
|
|
805
|
+
onGenerateImage: i(tt),
|
|
806
|
+
onToggleTable: dt,
|
|
807
|
+
onToggleLabels: vt,
|
|
808
|
+
onToggleTooltip: ct,
|
|
806
809
|
onToggleAnnotator: Le,
|
|
807
810
|
style: ie({
|
|
808
|
-
visibility: i(
|
|
811
|
+
visibility: i(He) ? i(be) ? "visible" : "hidden" : "visible"
|
|
809
812
|
})
|
|
810
|
-
},
|
|
813
|
+
}, Kt({ _: 2 }, [
|
|
811
814
|
a.$slots.menuIcon ? {
|
|
812
815
|
name: "menuIcon",
|
|
813
|
-
fn:
|
|
814
|
-
|
|
816
|
+
fn: _(({ isOpen: l, color: o }) => [
|
|
817
|
+
x(a.$slots, "menuIcon", H(J({ isOpen: l, color: o })), void 0, !0)
|
|
815
818
|
]),
|
|
816
819
|
key: "0"
|
|
817
820
|
} : void 0,
|
|
818
821
|
a.$slots.optionTooltip ? {
|
|
819
822
|
name: "optionTooltip",
|
|
820
|
-
fn:
|
|
821
|
-
|
|
823
|
+
fn: _(() => [
|
|
824
|
+
x(a.$slots, "optionTooltip", {}, void 0, !0)
|
|
822
825
|
]),
|
|
823
826
|
key: "1"
|
|
824
827
|
} : void 0,
|
|
825
828
|
a.$slots.optionPdf ? {
|
|
826
829
|
name: "optionPdf",
|
|
827
|
-
fn:
|
|
828
|
-
|
|
830
|
+
fn: _(() => [
|
|
831
|
+
x(a.$slots, "optionPdf", {}, void 0, !0)
|
|
829
832
|
]),
|
|
830
833
|
key: "2"
|
|
831
834
|
} : void 0,
|
|
832
835
|
a.$slots.optionCsv ? {
|
|
833
836
|
name: "optionCsv",
|
|
834
|
-
fn:
|
|
835
|
-
|
|
837
|
+
fn: _(() => [
|
|
838
|
+
x(a.$slots, "optionCsv", {}, void 0, !0)
|
|
836
839
|
]),
|
|
837
840
|
key: "3"
|
|
838
841
|
} : void 0,
|
|
839
842
|
a.$slots.optionImg ? {
|
|
840
843
|
name: "optionImg",
|
|
841
|
-
fn:
|
|
842
|
-
|
|
844
|
+
fn: _(() => [
|
|
845
|
+
x(a.$slots, "optionImg", {}, void 0, !0)
|
|
843
846
|
]),
|
|
844
847
|
key: "4"
|
|
845
848
|
} : void 0,
|
|
846
849
|
a.$slots.optionTable ? {
|
|
847
850
|
name: "optionTable",
|
|
848
|
-
fn:
|
|
849
|
-
|
|
851
|
+
fn: _(() => [
|
|
852
|
+
x(a.$slots, "optionTable", {}, void 0, !0)
|
|
850
853
|
]),
|
|
851
854
|
key: "5"
|
|
852
855
|
} : void 0,
|
|
853
856
|
a.$slots.optionLabels ? {
|
|
854
857
|
name: "optionLabels",
|
|
855
|
-
fn:
|
|
856
|
-
|
|
858
|
+
fn: _(() => [
|
|
859
|
+
x(a.$slots, "optionLabels", {}, void 0, !0)
|
|
857
860
|
]),
|
|
858
861
|
key: "6"
|
|
859
862
|
} : void 0,
|
|
860
863
|
a.$slots.optionFullscreen ? {
|
|
861
864
|
name: "optionFullscreen",
|
|
862
|
-
fn:
|
|
863
|
-
|
|
865
|
+
fn: _(({ toggleFullscreen: l, isFullscreen: o }) => [
|
|
866
|
+
x(a.$slots, "optionFullscreen", H(J({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
|
|
864
867
|
]),
|
|
865
868
|
key: "7"
|
|
866
869
|
} : void 0,
|
|
867
870
|
a.$slots.optionAnnotator ? {
|
|
868
871
|
name: "optionAnnotator",
|
|
869
|
-
fn:
|
|
870
|
-
|
|
872
|
+
fn: _(({ toggleAnnotator: l, isAnnotator: o }) => [
|
|
873
|
+
x(a.$slots, "optionAnnotator", H(J({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
|
|
871
874
|
]),
|
|
872
875
|
key: "8"
|
|
873
876
|
} : void 0
|
|
874
877
|
]), 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"])) : $("", !0),
|
|
875
|
-
(
|
|
878
|
+
(u(), r("svg", {
|
|
876
879
|
ref_key: "svgRef",
|
|
877
880
|
ref: ee,
|
|
878
|
-
xmlns: i(
|
|
881
|
+
xmlns: i(na),
|
|
879
882
|
class: z({
|
|
880
883
|
"vue-data-ui-fullscreen--on": G.value,
|
|
881
884
|
"vue-data-ui-fulscreen--off": !G.value,
|
|
882
885
|
"vue-data-ui-svg": !0
|
|
883
886
|
}),
|
|
884
|
-
viewBox: `0 0 ${
|
|
885
|
-
style: ie(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${
|
|
887
|
+
viewBox: `0 0 ${h.value.width <= 0 ? 1e-3 : h.value.width} ${h.value.height < 0 ? 1e-3 : h.value.height}`,
|
|
888
|
+
style: ie(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${Je.value.css}`)
|
|
886
889
|
}, [
|
|
887
|
-
|
|
890
|
+
p("g", {
|
|
888
891
|
ref_key: "G",
|
|
889
892
|
ref: Ce,
|
|
890
893
|
class: "vue-data-ui-g"
|
|
891
894
|
}, [
|
|
892
|
-
|
|
893
|
-
a.$slots["chart-background"] ? (
|
|
895
|
+
ft(i(Ft)),
|
|
896
|
+
a.$slots["chart-background"] ? (u(), r("foreignObject", {
|
|
894
897
|
key: 0,
|
|
895
898
|
x: 0,
|
|
896
899
|
y: 0,
|
|
897
|
-
width:
|
|
898
|
-
height:
|
|
900
|
+
width: h.value.width <= 0 ? 1e-3 : h.value.width,
|
|
901
|
+
height: h.value.height < 0 ? 1e-3 : h.value.height,
|
|
899
902
|
style: {
|
|
900
903
|
pointerEvents: "none"
|
|
901
904
|
}
|
|
902
905
|
}, [
|
|
903
|
-
|
|
904
|
-
], 8,
|
|
905
|
-
|
|
906
|
-
(
|
|
907
|
-
id: `radial_${
|
|
906
|
+
x(a.$slots, "chart-background", {}, void 0, !0)
|
|
907
|
+
], 8, xa)) : $("", !0),
|
|
908
|
+
p("defs", null, [
|
|
909
|
+
(u(!0), r(A, null, T(ut.value, (l, o) => (u(), r("radialGradient", {
|
|
910
|
+
id: `radial_${f.value}_${o}`
|
|
908
911
|
}, [
|
|
909
|
-
s[4] || (s[4] =
|
|
912
|
+
s[4] || (s[4] = p("stop", {
|
|
910
913
|
offset: "0%",
|
|
911
914
|
"stop-color": "#FFFFFF",
|
|
912
915
|
"stop-opacity": "0"
|
|
913
916
|
}, null, -1)),
|
|
914
|
-
|
|
915
|
-
offset: `${(1 - te.value /
|
|
916
|
-
"stop-color": i(
|
|
917
|
+
p("stop", {
|
|
918
|
+
offset: `${(1 - te.value / st.value[o]) * 100}%`,
|
|
919
|
+
"stop-color": i(ra)("#FFFFFF", 0),
|
|
917
920
|
"stop-opacity": "0"
|
|
918
|
-
}, null, 8,
|
|
919
|
-
|
|
920
|
-
offset: `${(1 - te.value /
|
|
921
|
+
}, null, 8, Ta),
|
|
922
|
+
p("stop", {
|
|
923
|
+
offset: `${(1 - te.value / st.value[o] / 2) * 100}%`,
|
|
921
924
|
"stop-color": "#FFFFFF",
|
|
922
925
|
"stop-opacity": e.value.style.chart.gradientIntensity / 100
|
|
923
|
-
}, null, 8,
|
|
924
|
-
s[5] || (s[5] =
|
|
926
|
+
}, null, 8, Na),
|
|
927
|
+
s[5] || (s[5] = p("stop", {
|
|
925
928
|
offset: "100%",
|
|
926
929
|
"stop-color": "#FFFFFF",
|
|
927
930
|
"stop-opacity": "0"
|
|
928
931
|
}, null, -1))
|
|
929
|
-
], 8,
|
|
932
|
+
], 8, Aa))), 256))
|
|
930
933
|
]),
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
id: `blur_${
|
|
934
|
+
p("defs", null, [
|
|
935
|
+
p("filter", {
|
|
936
|
+
id: `blur_${f.value}`,
|
|
934
937
|
x: "-50%",
|
|
935
938
|
y: "-50%",
|
|
936
939
|
width: "200%",
|
|
937
940
|
height: "200%"
|
|
938
941
|
}, [
|
|
939
|
-
|
|
942
|
+
p("feGaussianBlur", {
|
|
940
943
|
in: "SourceGraphic",
|
|
941
944
|
stdDeviation: 2,
|
|
942
|
-
id: `blur_std_${
|
|
943
|
-
}, null, 8,
|
|
944
|
-
s[6] || (s[6] =
|
|
945
|
+
id: `blur_std_${f.value}`
|
|
946
|
+
}, null, 8, Oa),
|
|
947
|
+
s[6] || (s[6] = p("feColorMatrix", {
|
|
945
948
|
type: "saturate",
|
|
946
949
|
values: "0"
|
|
947
950
|
}, null, -1))
|
|
948
|
-
], 8,
|
|
949
|
-
|
|
950
|
-
id: `shadow_${
|
|
951
|
+
], 8, Fa),
|
|
952
|
+
p("filter", {
|
|
953
|
+
id: `shadow_${f.value}`,
|
|
951
954
|
"color-interpolation-filters": "sRGB"
|
|
952
955
|
}, [
|
|
953
|
-
|
|
956
|
+
p("feDropShadow", {
|
|
954
957
|
dx: "0",
|
|
955
958
|
dy: "0",
|
|
956
959
|
stdDeviation: "10",
|
|
957
960
|
"flood-opacity": "0.5",
|
|
958
961
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
959
|
-
}, null, 8,
|
|
960
|
-
], 8,
|
|
962
|
+
}, null, 8, Ia)
|
|
963
|
+
], 8, Sa)
|
|
961
964
|
]),
|
|
962
|
-
|
|
963
|
-
(
|
|
965
|
+
p("defs", null, [
|
|
966
|
+
(u(!0), r(A, null, T(W.value, (l, o) => (u(), r("path", {
|
|
964
967
|
key: `path-full-${o}`,
|
|
965
|
-
id: `path-full-${o}-${
|
|
968
|
+
id: `path-full-${o}-${f.value}`,
|
|
966
969
|
d: l.fullCirclePath,
|
|
967
970
|
fill: "none"
|
|
968
|
-
}, null, 8,
|
|
971
|
+
}, null, 8, Va))), 128))
|
|
969
972
|
]),
|
|
970
|
-
(
|
|
971
|
-
l.hasData ? (
|
|
972
|
-
|
|
973
|
+
(u(!0), r(A, null, T(W.value, (l, o) => (u(), r("g", null, [
|
|
974
|
+
l.hasData ? (u(!0), r(A, { key: 0 }, T(l.donut.filter((t) => !t.ghost), (t, n) => (u(), r("g", null, [
|
|
975
|
+
p("path", {
|
|
973
976
|
class: "vue-ui-donut-arc-path",
|
|
974
977
|
d: t.arcSlice,
|
|
975
978
|
fill: t.color,
|
|
976
979
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
977
980
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
978
|
-
filter:
|
|
979
|
-
}, null, 8,
|
|
980
|
-
]))), 256)) : (
|
|
981
|
-
|
|
981
|
+
filter: rt(t, n)
|
|
982
|
+
}, null, 8, Pa)
|
|
983
|
+
]))), 256)) : (u(!0), r(A, { key: 1 }, T(l.skeleton, (t, n) => (u(), r("g", null, [
|
|
984
|
+
p("path", {
|
|
982
985
|
class: "vue-ui-donut-arc-path",
|
|
983
986
|
d: t.arcSlice,
|
|
984
987
|
fill: t.color,
|
|
985
988
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
986
989
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
987
|
-
}, null, 8,
|
|
990
|
+
}, null, 8, Da)
|
|
988
991
|
]))), 256))
|
|
989
992
|
]))), 256)),
|
|
990
|
-
e.value.style.chart.useGradient ? (
|
|
991
|
-
(
|
|
992
|
-
|
|
993
|
+
e.value.style.chart.useGradient ? (u(), r("g", za, [
|
|
994
|
+
(u(!0), r(A, null, T(ut.value, (l, o) => (u(), r("g", null, [
|
|
995
|
+
p("path", {
|
|
993
996
|
d: l.donut.arcSlice,
|
|
994
|
-
fill: `url(#radial_${
|
|
997
|
+
fill: `url(#radial_${f.value}_${o})`,
|
|
995
998
|
stroke: "transparent",
|
|
996
999
|
"stroke-width": "0"
|
|
997
|
-
}, null, 8,
|
|
1000
|
+
}, null, 8, Ma)
|
|
998
1001
|
]))), 256))
|
|
999
1002
|
])) : $("", !0),
|
|
1000
|
-
e.value.style.chart.layout.labels.dataLabels.showDonutName ? (
|
|
1001
|
-
e.value.style.chart.layout.labels.dataLabels.curvedDonutName ? (
|
|
1002
|
-
(
|
|
1003
|
-
|
|
1003
|
+
e.value.style.chart.layout.labels.dataLabels.showDonutName ? (u(), r("g", Ea, [
|
|
1004
|
+
e.value.style.chart.layout.labels.dataLabels.curvedDonutName ? (u(!0), r(A, { key: 0 }, T(W.value, (l, o) => (u(), r("g", null, [
|
|
1005
|
+
(u(!0), r(A, null, T(l.donut, (t, n) => (u(), r("g", null, [
|
|
1006
|
+
n === 0 && h.value.width && h.value.height ? (u(), r("text", {
|
|
1004
1007
|
key: 0,
|
|
1005
1008
|
class: z({ animated: e.value.useCssAnimation }),
|
|
1006
1009
|
"text-anchor": "middle",
|
|
@@ -1009,43 +1012,43 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
1009
1012
|
fill: e.value.style.chart.layout.labels.dataLabels.color,
|
|
1010
1013
|
dy: e.value.style.chart.layout.labels.dataLabels.donutNameOffsetY
|
|
1011
1014
|
}, [
|
|
1012
|
-
|
|
1013
|
-
href: `#path-full-${o}-${
|
|
1015
|
+
p("textPath", {
|
|
1016
|
+
href: `#path-full-${o}-${f.value}`,
|
|
1014
1017
|
startOffset: "50%",
|
|
1015
1018
|
"text-anchor": "middle",
|
|
1016
1019
|
method: "align",
|
|
1017
1020
|
spacing: "auto",
|
|
1018
1021
|
side: "right"
|
|
1019
|
-
}, O(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? i(
|
|
1022
|
+
}, O(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? i(gt)({
|
|
1020
1023
|
source: l.name,
|
|
1021
1024
|
length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
|
|
1022
|
-
}) : l.name), 9,
|
|
1023
|
-
], 10,
|
|
1025
|
+
}) : l.name), 9, Ra)
|
|
1026
|
+
], 10, Ba)) : $("", !0)
|
|
1024
1027
|
]))), 256))
|
|
1025
|
-
]))), 256)) : (
|
|
1026
|
-
(
|
|
1027
|
-
|
|
1028
|
+
]))), 256)) : (u(!0), r(A, { key: 1 }, T(W.value, (l, o) => (u(), r("g", null, [
|
|
1029
|
+
(u(!0), r(A, null, T(l.donut, (t, n) => (u(), r("g", null, [
|
|
1030
|
+
n === 0 && h.value.width && h.value.height ? (u(), r("text", {
|
|
1028
1031
|
key: 0,
|
|
1029
1032
|
class: z({ animated: e.value.useCssAnimation }),
|
|
1030
|
-
x:
|
|
1033
|
+
x: h.value.width / 2,
|
|
1031
1034
|
y: t.startY - e.value.style.chart.layout.labels.dataLabels.fontSize + e.value.style.chart.layout.labels.dataLabels.donutNameOffsetY,
|
|
1032
1035
|
"text-anchor": "middle",
|
|
1033
1036
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1034
1037
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
|
|
1035
1038
|
fill: e.value.style.chart.layout.labels.dataLabels.color
|
|
1036
|
-
}, O(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? i(
|
|
1039
|
+
}, O(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? i(gt)({
|
|
1037
1040
|
source: l.name,
|
|
1038
1041
|
length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
|
|
1039
|
-
}) : l.name), 11,
|
|
1042
|
+
}) : l.name), 11, Ua)) : $("", !0)
|
|
1040
1043
|
]))), 256))
|
|
1041
1044
|
]))), 256))
|
|
1042
1045
|
])) : $("", !0),
|
|
1043
|
-
e.value.style.chart.layout.labels.dataLabels.show ? (
|
|
1044
|
-
(
|
|
1045
|
-
(
|
|
1046
|
-
filter:
|
|
1046
|
+
e.value.style.chart.layout.labels.dataLabels.show ? (u(), r("g", Ga, [
|
|
1047
|
+
(u(!0), r(A, null, T(W.value, (l, o) => (u(), r("g", null, [
|
|
1048
|
+
(u(!0), r(A, null, T(l.donut.filter((t) => !t.ghost), (t, n) => (u(), r("g", {
|
|
1049
|
+
filter: rt(t, n)
|
|
1047
1050
|
}, [
|
|
1048
|
-
|
|
1051
|
+
pt(p("text", {
|
|
1049
1052
|
class: z({ animated: e.value.useCssAnimation }),
|
|
1050
1053
|
opacity: $e(t) ? 1 : 0,
|
|
1051
1054
|
"text-anchor": i(Q)(t, !0).anchor,
|
|
@@ -1066,13 +1069,13 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
1066
1069
|
v: t.proportion * 100,
|
|
1067
1070
|
s: "%",
|
|
1068
1071
|
r: e.value.style.chart.layout.labels.dataLabels.roundingPercentage
|
|
1069
|
-
})), 11,
|
|
1072
|
+
})), 11, Xa), [
|
|
1070
1073
|
[
|
|
1071
1074
|
yt,
|
|
1072
1075
|
k.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage
|
|
1073
1076
|
]
|
|
1074
1077
|
]),
|
|
1075
|
-
|
|
1078
|
+
pt(p("text", {
|
|
1076
1079
|
class: z({ animated: e.value.useCssAnimation }),
|
|
1077
1080
|
opacity: $e(t) ? 1 : 0,
|
|
1078
1081
|
"text-anchor": i(Q)(t, !0).anchor,
|
|
@@ -1098,14 +1101,14 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
1098
1101
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
1099
1102
|
r: e.value.style.chart.layout.labels.dataLabels.roundingValue
|
|
1100
1103
|
}),
|
|
1101
|
-
{ datapoint: t, seriesIndex: o, datapointIndex:
|
|
1102
|
-
)) + ") ", 11,
|
|
1104
|
+
{ datapoint: t, seriesIndex: o, datapointIndex: n }
|
|
1105
|
+
)) + ") ", 11, Wa), [
|
|
1103
1106
|
[
|
|
1104
1107
|
yt,
|
|
1105
1108
|
k.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue
|
|
1106
1109
|
]
|
|
1107
1110
|
]),
|
|
1108
|
-
$e(t) && k.value.dataLabels.show && !e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue ? (
|
|
1111
|
+
$e(t) && k.value.dataLabels.show && !e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue ? (u(), r("text", {
|
|
1109
1112
|
key: 0,
|
|
1110
1113
|
class: z({ animated: e.value.useCssAnimation }),
|
|
1111
1114
|
"text-anchor": i(Q)(t, !0).anchor,
|
|
@@ -1131,32 +1134,32 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
1131
1134
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
1132
1135
|
r: e.value.style.chart.layout.labels.dataLabels.roundingValue
|
|
1133
1136
|
}),
|
|
1134
|
-
{ datapoint: t, seriesIndex: o, datapointIndex:
|
|
1135
|
-
)), 11,
|
|
1136
|
-
], 8,
|
|
1137
|
+
{ datapoint: t, seriesIndex: o, datapointIndex: n }
|
|
1138
|
+
)), 11, qa)) : $("", !0)
|
|
1139
|
+
], 8, Ya))), 256))
|
|
1137
1140
|
]))), 256))
|
|
1138
1141
|
])) : $("", !0),
|
|
1139
|
-
(
|
|
1140
|
-
(
|
|
1141
|
-
|
|
1142
|
+
(u(!0), r(A, null, T(W.value, (l, o) => (u(), r("g", null, [
|
|
1143
|
+
(u(!0), r(A, null, T(l.donut, (t, n) => (u(), r("g", null, [
|
|
1144
|
+
p("path", {
|
|
1142
1145
|
d: t.arcSlice,
|
|
1143
1146
|
fill: he.value === t.id ? e.value.style.chart.layout.donut.selectedColor : "transparent",
|
|
1144
|
-
onMouseenter: (v) =>
|
|
1147
|
+
onMouseenter: (v) => Mt({
|
|
1145
1148
|
datapoint: t,
|
|
1146
1149
|
seriesIndex: t.seriesIndex
|
|
1147
1150
|
}),
|
|
1148
|
-
onClick: (v) =>
|
|
1149
|
-
onMouseleave: (v) =>
|
|
1150
|
-
}, null, 40,
|
|
1151
|
+
onClick: (v) => Pt({ datapoint: t, index: n, seriesIndex: t.seriesIndex }),
|
|
1152
|
+
onMouseleave: (v) => zt({ datapoint: t, seriesIndex: t.seriesIndex })
|
|
1153
|
+
}, null, 40, Ha)
|
|
1151
1154
|
]))), 256))
|
|
1152
1155
|
]))), 256)),
|
|
1153
|
-
|
|
1156
|
+
x(a.$slots, "svg", { svg: h.value }, void 0, !0)
|
|
1154
1157
|
], 512)
|
|
1155
|
-
], 14,
|
|
1156
|
-
a.$slots.watermark ? (
|
|
1157
|
-
|
|
1158
|
+
], 14, _a)),
|
|
1159
|
+
a.$slots.watermark ? (u(), r("div", Ja, [
|
|
1160
|
+
x(a.$slots, "watermark", H(J({ isPrinting: i(Ze) || i(je) })), void 0, !0)
|
|
1158
1161
|
])) : $("", !0),
|
|
1159
|
-
|
|
1162
|
+
ft(i(_t), {
|
|
1160
1163
|
show: k.value.showTooltip && ve.value,
|
|
1161
1164
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1162
1165
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -1170,72 +1173,80 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
1170
1173
|
parent: V.value,
|
|
1171
1174
|
content: ce.value,
|
|
1172
1175
|
isFullscreen: G.value,
|
|
1173
|
-
isCustom: i(
|
|
1176
|
+
isCustom: i(mt)(e.value.style.chart.tooltip.customFormat),
|
|
1174
1177
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
1175
1178
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter
|
|
1176
1179
|
}, {
|
|
1177
|
-
"tooltip-before":
|
|
1178
|
-
|
|
1180
|
+
"tooltip-before": _(() => [
|
|
1181
|
+
x(a.$slots, "tooltip-before", H(J({ ...we.value })), void 0, !0)
|
|
1179
1182
|
]),
|
|
1180
|
-
"tooltip-after":
|
|
1181
|
-
|
|
1183
|
+
"tooltip-after": _(() => [
|
|
1184
|
+
x(a.$slots, "tooltip-after", H(J({ ...we.value })), void 0, !0)
|
|
1182
1185
|
]),
|
|
1183
1186
|
_: 3
|
|
1184
1187
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
|
|
1185
|
-
|
|
1188
|
+
p("div", {
|
|
1189
|
+
id: `legend-bottom-${f.value}`
|
|
1190
|
+
}, null, 8, Ka),
|
|
1191
|
+
Ye.value ? (u(), M(Qt, {
|
|
1186
1192
|
key: 5,
|
|
1187
|
-
|
|
1188
|
-
ref: fe,
|
|
1189
|
-
class: z({ "vue-ui-nested-donuts-legend": ke.value.length > 1 })
|
|
1193
|
+
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${f.value}` : `#legend-bottom-${f.value}`
|
|
1190
1194
|
}, [
|
|
1191
|
-
|
|
1192
|
-
key:
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
},
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1195
|
+
e.value.style.chart.legend.show ? (u(), r("div", {
|
|
1196
|
+
key: 0,
|
|
1197
|
+
ref_key: "chartLegend",
|
|
1198
|
+
ref: fe,
|
|
1199
|
+
class: z({ "vue-ui-nested-donuts-legend": ke.value.length > 1 })
|
|
1200
|
+
}, [
|
|
1201
|
+
(u(!0), r(A, null, T(ke.value, (l, o) => (u(), M($a, {
|
|
1202
|
+
key: `legend_${o}_${Ge.value}`,
|
|
1203
|
+
legendSet: l,
|
|
1204
|
+
config: Et.value,
|
|
1205
|
+
onClickMarker: s[0] || (s[0] = ({ legend: t }) => me(t))
|
|
1206
|
+
}, {
|
|
1207
|
+
legendTitle: _(({ titleSet: t }) => [
|
|
1208
|
+
t[0] && t[0].arcOf ? (u(), r("div", Qa, O(t[0].arcOf), 1)) : $("", !0)
|
|
1209
|
+
]),
|
|
1210
|
+
item: _(({ legend: t, index: n }) => [
|
|
1211
|
+
p("div", {
|
|
1212
|
+
onClick: (v) => me(t),
|
|
1213
|
+
style: ie(`opacity:${L.value.includes(t.id) ? 0.5 : 1}`)
|
|
1214
|
+
}, O(t.name) + O(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + O(e.value.style.chart.legend.showValue ? i(j)(
|
|
1215
|
+
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
1216
|
+
t.value,
|
|
1217
|
+
i(F)({
|
|
1218
|
+
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1219
|
+
v: t.value,
|
|
1220
|
+
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
1221
|
+
r: e.value.style.chart.legend.roundingValue
|
|
1222
|
+
}),
|
|
1223
|
+
{ datapoint: t, seriesIndex: n }
|
|
1224
|
+
) : "") + " " + O(e.value.style.chart.legend.showPercentage ? L.value.includes(t.id) ? `${e.value.style.chart.legend.showValue ? "(" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(t.value / t.total) ? "-" : i(F)({
|
|
1225
|
+
v: t.value / t.total * 100,
|
|
1226
|
+
s: "%",
|
|
1227
|
+
r: e.value.style.chart.legend.roundingPercentage
|
|
1228
|
+
})}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, Za)
|
|
1229
|
+
]),
|
|
1230
|
+
_: 2
|
|
1231
|
+
}, 1032, ["legendSet", "config"]))), 128))
|
|
1232
|
+
], 2)) : $("", !0)
|
|
1233
|
+
], 8, ["to"])) : $("", !0),
|
|
1234
|
+
e.value.style.chart.legend.show ? $("", !0) : (u(), r("div", {
|
|
1224
1235
|
key: 6,
|
|
1225
1236
|
ref_key: "chartLegend",
|
|
1226
1237
|
ref: fe
|
|
1227
1238
|
}, [
|
|
1228
|
-
|
|
1239
|
+
x(a.$slots, "legend", { legend: ke.value }, void 0, !0)
|
|
1229
1240
|
], 512)),
|
|
1230
|
-
a.$slots.source ? (
|
|
1241
|
+
a.$slots.source ? (u(), r("div", {
|
|
1231
1242
|
key: 7,
|
|
1232
1243
|
ref_key: "source",
|
|
1233
1244
|
ref: Ee,
|
|
1234
1245
|
dir: "auto"
|
|
1235
1246
|
}, [
|
|
1236
|
-
|
|
1247
|
+
x(a.$slots, "source", {}, void 0, !0)
|
|
1237
1248
|
], 512)) : $("", !0),
|
|
1238
|
-
de.value ? (
|
|
1249
|
+
de.value ? (u(), M(i(xt), {
|
|
1239
1250
|
key: 8,
|
|
1240
1251
|
hideDetails: "",
|
|
1241
1252
|
config: {
|
|
@@ -1251,8 +1262,8 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
1251
1262
|
}
|
|
1252
1263
|
}
|
|
1253
1264
|
}, {
|
|
1254
|
-
content:
|
|
1255
|
-
(
|
|
1265
|
+
content: _(() => [
|
|
1266
|
+
(u(), M(i(At), {
|
|
1256
1267
|
key: `table_${Ue.value}`,
|
|
1257
1268
|
colNames: oe.value.colNames,
|
|
1258
1269
|
head: oe.value.head,
|
|
@@ -1261,24 +1272,24 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
1261
1272
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1262
1273
|
onClose: s[1] || (s[1] = (l) => k.value.showTable = !1)
|
|
1263
1274
|
}, {
|
|
1264
|
-
th:
|
|
1265
|
-
|
|
1275
|
+
th: _(({ th: l }) => [
|
|
1276
|
+
p("div", {
|
|
1266
1277
|
innerHTML: l,
|
|
1267
1278
|
style: { display: "flex", "align-items": "center" }
|
|
1268
|
-
}, null, 8,
|
|
1279
|
+
}, null, 8, ja)
|
|
1269
1280
|
]),
|
|
1270
|
-
td:
|
|
1271
|
-
|
|
1281
|
+
td: _(({ td: l }) => [
|
|
1282
|
+
Zt(O(l.name || l), 1)
|
|
1272
1283
|
]),
|
|
1273
1284
|
_: 1
|
|
1274
1285
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
1275
1286
|
]),
|
|
1276
1287
|
_: 1
|
|
1277
1288
|
}, 8, ["config"])) : $("", !0),
|
|
1278
|
-
i(
|
|
1279
|
-
], 46,
|
|
1289
|
+
i(pe) ? (u(), M(pa, { key: 9 })) : $("", !0)
|
|
1290
|
+
], 46, La));
|
|
1280
1291
|
}
|
|
1281
|
-
},
|
|
1292
|
+
}, hl = /* @__PURE__ */ ka(el, [["__scopeId", "data-v-8afc2b4d"]]);
|
|
1282
1293
|
export {
|
|
1283
|
-
|
|
1294
|
+
hl as default
|
|
1284
1295
|
};
|