vue-data-ui 3.1.0 → 3.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-DvG07exK.js → Arrow-BotYLY2I.js} +1 -1
- package/dist/{BaseDraggableDialog-O7900pGp.js → BaseDraggableDialog-Dkpr-qUQ.js} +2 -2
- package/dist/{BaseIcon-DHtro8us.js → BaseIcon-BLg8FaQ2.js} +5 -3
- package/dist/{ColorPicker-CpWzNn4r.js → ColorPicker-C2sMVpbA.js} +2 -2
- package/dist/{DataTable-DJjA2_wf.js → DataTable-BRN1-1ob.js} +2 -2
- package/dist/{Legend-2-dC7DVb.js → Legend-DLzeDl3-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DHeE4Yuv.js → NonSvgPenAndPaper-Dp53d2re.js} +3 -3
- package/dist/{PackageVersion-DU12WH3O.js → PackageVersion-Jz9FlNXl.js} +1 -1
- package/dist/{PenAndPaper-B7QEDgx4.js → PenAndPaper-TgGWddgD.js} +3 -3
- package/dist/{Shape-Dj2Hl33H.js → Shape-Bmpx9GRg.js} +1 -1
- package/dist/{Slicer-D99HytqX.js → Slicer-DeWHn8zH.js} +2 -2
- package/dist/{SparkTooltip-B-wL07rI.js → SparkTooltip-C6fJOQ0j.js} +1 -1
- package/dist/{Title-Dq2_Z9kR.js → Title-AGmmsSi_.js} +1 -1
- package/dist/{Tooltip-Y219DXZO.js → Tooltip-le0yZk_t.js} +1 -1
- package/dist/{UserOptions-BuGfCdAY.js → UserOptions-DEFwuQIo.js} +125 -108
- package/dist/{dom-to-png-BhciAKaM.js → dom-to-png-C7V0EktO.js} +1 -1
- package/dist/{img-JOqdlnUs.js → img-DvuphHeJ.js} +1 -1
- package/dist/{index-CDQbCd41.js → index-BFqW8WA0.js} +97 -74
- package/dist/pdf-Bdf65IBz.js +79 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +25 -2
- package/dist/types/vue-data-ui.d.ts +25 -2
- package/dist/{useAutoSizeLabelsInsideViewbox-Bky5KGFZ.js → useAutoSizeLabelsInsideViewbox-N1I6Rk6M.js} +1 -1
- package/dist/{useNestedProp-BPEHGiYX.js → useNestedProp-BSZCnuGl.js} +1 -1
- package/dist/{usePrinter-Bnl1YeUU.js → usePrinter-DDIKRiOp.js} +13 -12
- package/dist/useTableResponsive-Cbx-ACcP.js +22 -0
- package/dist/{vue-data-ui-DcNYz3cZ.js → vue-data-ui-vwh3dolO.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BNIFAeN-.js → vue-ui-3d-bar-DNw3RWRt.js} +371 -366
- package/dist/{vue-ui-accordion-Bf_LHFFX.js → vue-ui-accordion-Cv747Pg6.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Bz-l1afR.js → vue-ui-age-pyramid-B1Yun-v7.js} +200 -195
- package/dist/{vue-ui-annotator-BcfRH2BF.js → vue-ui-annotator-B_5hOApA.js} +2 -2
- package/dist/{vue-ui-bullet-DK1aM9fX.js → vue-ui-bullet-C2Aj7Lcx.js} +7 -7
- package/dist/{vue-ui-candlestick-D6mMjvtu.js → vue-ui-candlestick-BBYqZVUp.js} +225 -220
- package/dist/{vue-ui-carousel-table-Vp5f238W.js → vue-ui-carousel-table-DPIOnp9J.js} +4 -4
- package/dist/{vue-ui-chestnut-BKc4v-lf.js → vue-ui-chestnut-C4B0wEFn.js} +484 -487
- package/dist/{vue-ui-chord-CquhRjf0.js → vue-ui-chord-B9Zml1V7.js} +272 -266
- package/dist/{vue-ui-circle-pack-D6zLgxa3.js → vue-ui-circle-pack-CLn19BHH.js} +6 -6
- package/dist/{vue-ui-cursor-DIXb2S93.js → vue-ui-cursor-AVEV-uv3.js} +2 -2
- package/dist/vue-ui-dashboard-DwNYa1I4.js +412 -0
- package/dist/{vue-ui-digits-CLAIo9gW.js → vue-ui-digits-Dr4OHGU0.js} +2 -2
- package/dist/{vue-ui-donut-evolution-C3r0YhKz.js → vue-ui-donut-evolution-hJh-1Z48.js} +310 -304
- package/dist/{vue-ui-donut-C8h_tCSO.js → vue-ui-donut-xseR2SnT.js} +348 -343
- package/dist/{vue-ui-dumbbell-D-t4M00E.js → vue-ui-dumbbell-FdTx7uAG.js} +293 -287
- package/dist/{vue-ui-flow-D7_D_UNm.js → vue-ui-flow-Bh6FqlC1.js} +263 -257
- package/dist/{vue-ui-funnel-B0QOfZRz.js → vue-ui-funnel-BlsKhHbk.js} +206 -200
- package/dist/{vue-ui-galaxy-Ccw5uNes.js → vue-ui-galaxy-C0B8stYi.js} +243 -238
- package/dist/{vue-ui-gauge-DvW7nFmK.js → vue-ui-gauge-B1-UiZwV.js} +7 -7
- package/dist/{vue-ui-gizmo-WGQxvGPy.js → vue-ui-gizmo-Df_SCjOI.js} +3 -3
- package/dist/{vue-ui-heatmap-BQkLujyp.js → vue-ui-heatmap-NfRSd6fU.js} +370 -375
- package/dist/{vue-ui-history-plot-eU33r_Ot.js → vue-ui-history-plot-Ce-DJ8xC.js} +305 -299
- package/dist/{vue-ui-kpi-CKg2i71M.js → vue-ui-kpi-CH3rWyiG.js} +3 -3
- package/dist/{vue-ui-mini-loader-BmkGQsm_.js → vue-ui-mini-loader-D9EVnpxk.js} +2 -2
- package/dist/{vue-ui-molecule-Dlu0hjSg.js → vue-ui-molecule-C973vfYh.js} +188 -183
- package/dist/{vue-ui-mood-radar-DQaxfw9R.js → vue-ui-mood-radar-DdLxBhlO.js} +197 -192
- package/dist/{vue-ui-nested-donuts-Djj9Aw_i.js → vue-ui-nested-donuts-tARXMYzx.js} +326 -320
- package/dist/{vue-ui-onion-ZgsErXis.js → vue-ui-onion-BC9czZGG.js} +8 -8
- package/dist/{vue-ui-parallel-coordinate-plot-B5fB22Jc.js → vue-ui-parallel-coordinate-plot-CxDIkZKr.js} +401 -395
- package/dist/{vue-ui-quadrant-CMevCtXH.js → vue-ui-quadrant-Bpm5ZoTp.js} +339 -334
- package/dist/{vue-ui-quick-chart-DcparKSX.js → vue-ui-quick-chart-Bkc_JBCw.js} +6 -6
- package/dist/{vue-ui-radar-DFbxoKCK.js → vue-ui-radar-DVJQYNeL.js} +248 -243
- package/dist/{vue-ui-rating-ZUpxCWrk.js → vue-ui-rating-DITnRSiS.js} +2 -2
- package/dist/{vue-ui-relation-circle-eNKJY4Sx.js → vue-ui-relation-circle-D_OTYUmS.js} +7 -7
- package/dist/{vue-ui-ridgeline-D4shpQZd.js → vue-ui-ridgeline-Gc1c4LXq.js} +267 -263
- package/dist/{vue-ui-rings-TdTHMbsa.js → vue-ui-rings-CUT1N_kK.js} +229 -224
- package/dist/{vue-ui-scatter-CVuV9ljU.js → vue-ui-scatter-DwnZHy0V.js} +359 -354
- package/dist/{vue-ui-skeleton-CFxBU2-p.js → vue-ui-skeleton-CeyaKpZd.js} +3 -3
- package/dist/{vue-ui-smiley-Har3B3aQ.js → vue-ui-smiley-B9yNexWr.js} +2 -2
- package/dist/{vue-ui-spark-trend-FPk-XEwI.js → vue-ui-spark-trend-DTYVcrHV.js} +3 -3
- package/dist/{vue-ui-sparkbar-V3eJ0w0t.js → vue-ui-sparkbar-BzxynYoW.js} +3 -3
- package/dist/{vue-ui-sparkgauge-DKTGkWnJ.js → vue-ui-sparkgauge-DoznCX5h.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-DJsgFwHs.js → vue-ui-sparkhistogram-DoZpd0H2.js} +4 -4
- package/dist/{vue-ui-sparkline-Dmrm5SL5.js → vue-ui-sparkline-ZKit-hgG.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-B0Pl7VMI.js → vue-ui-sparkstackbar-DjoqH_Xs.js} +3 -3
- package/dist/{vue-ui-stackbar-CNsgBPhj.js → vue-ui-stackbar-J-gxI4Xn.js} +310 -304
- package/dist/{vue-ui-strip-plot-CYAWwYOM.js → vue-ui-strip-plot-CO7NVeFi.js} +246 -240
- package/dist/{vue-ui-table-heatmap-COI9LRqC.js → vue-ui-table-heatmap-BEFdai_O.js} +5 -5
- package/dist/{vue-ui-table-Dn6H98rP.js → vue-ui-table-rmbBw_0d.js} +3 -3
- package/dist/{vue-ui-table-sparkline-B7Gg5FfJ.js → vue-ui-table-sparkline-CjgaQXbc.js} +4 -4
- package/dist/{vue-ui-thermometer-Bgynq5El.js → vue-ui-thermometer--aqaJwFo.js} +7 -7
- package/dist/{vue-ui-timer-CXng51v5.js → vue-ui-timer-qFNHDcU_.js} +5 -5
- package/dist/{vue-ui-tiremarks-Cy1U3hO1.js → vue-ui-tiremarks-DA8fzQHo.js} +6 -6
- package/dist/{vue-ui-treemap-BsvIvRmE.js → vue-ui-treemap-DGC9zxon.js} +262 -256
- package/dist/{vue-ui-vertical-bar-DHqWeDIf.js → vue-ui-vertical-bar-DOCeCCqz.js} +297 -298
- package/dist/{vue-ui-waffle-D1Mscj3N.js → vue-ui-waffle-DD9jtkcQ.js} +257 -252
- package/dist/{vue-ui-wheel-DpV-N5tF.js → vue-ui-wheel-87VStrfJ.js} +6 -6
- package/dist/vue-ui-word-cloud-CCMfa9H1.js +817 -0
- package/dist/{vue-ui-world-DYz6zw3x.js → vue-ui-world-Cm3Hn1-2.js} +257 -252
- package/dist/{vue-ui-xy-B1nqNbzw.js → vue-ui-xy-C2SnbN6w.js} +1453 -1447
- package/dist/{vue-ui-xy-canvas-D4wd-Asd.js → vue-ui-xy-canvas-WxSJqoiF.js} +235 -229
- package/package.json +1 -1
- package/dist/pdf-Dd-LIJqz.js +0 -61
- package/dist/vue-ui-dashboard-DmiriAK7.js +0 -325
- package/dist/vue-ui-word-cloud-MaNQ3Kdk.js +0 -811
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { defineAsyncComponent as z, computed 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 z, computed as _, ref as c, toRefs as tl, watch as te, onMounted as ll, shallowRef as gt, onBeforeUnmount as al, createElementBlock as r, openBlock as u, unref as i, normalizeStyle as ve, normalizeClass as M, createBlock as B, createCommentVNode as k, createElementVNode as p, createVNode as Ve, createSlots as mt, withCtx as C, renderSlot as x, normalizeProps as H, guardReactiveProps as J, Fragment as A, renderList as T, toDisplayString as N, withDirectives as wt, vShow as kt, Teleport as ol, resolveDynamicComponent as sl, mergeProps as ul, createTextVNode as $t, nextTick as Ct } from "vue";
|
|
2
|
+
import { u as nl, c as rl, t as il, a as dl, p as ze, b as vl, C as Me, o as cl, f as K, d as hl, G as E, e as fl, m as Be, i as F, X as pl, s as yl, L as Lt, q as Ee, r as Q, k as le, y as _t, v as bl, w as gl, z as ml, T as xt, h as Re } from "./index-BFqW8WA0.js";
|
|
3
|
+
import { t as wl, u as kl } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as $l, B as Cl } from "./BaseScanner-BgWxam9d.js";
|
|
5
|
+
import { u as Ll } from "./usePrinter-DDIKRiOp.js";
|
|
6
|
+
import { u as At } from "./useNestedProp-BSZCnuGl.js";
|
|
7
|
+
import { u as _l } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { u as xl } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
+
import Al from "./img-DvuphHeJ.js";
|
|
10
|
+
import Tl from "./Title-AGmmsSi_.js";
|
|
11
|
+
import Ol from "./Legend-DLzeDl3-.js";
|
|
12
|
+
import { _ as Nl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
const Fl = ["id"], Sl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "height"], Pl = ["id"], Vl = ["offset", "stop-color"], zl = ["offset", "stop-opacity"], Ml = ["id"], Bl = ["id"], El = ["id"], Rl = ["flood-color"], Ul = ["id", "d"], Gl = ["d", "fill", "stroke", "stroke-width", "filter"], Yl = ["d", "fill", "stroke", "stroke-width"], Wl = { key: 1 }, Xl = ["d", "fill"], ql = { key: 2 }, Hl = ["font-size", "font-weight", "fill", "dy"], Jl = ["href"], Kl = ["x", "y", "font-size", "font-weight", "fill"], Ql = { key: 3 }, Zl = ["filter"], jl = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], ea = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], ta = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], la = ["d", "fill", "onMouseenter", "onClick", "onMouseleave"], aa = {
|
|
14
14
|
key: 4,
|
|
15
15
|
class: "vue-data-ui-watermark"
|
|
16
|
-
},
|
|
16
|
+
}, oa = ["id"], sa = {
|
|
17
17
|
key: 0,
|
|
18
18
|
class: "vue-ui-nested-donuts-legend-title"
|
|
19
|
-
},
|
|
19
|
+
}, ua = ["onClick"], na = ["innerHTML"], ra = {
|
|
20
20
|
__name: "vue-ui-nested-donuts",
|
|
21
21
|
props: {
|
|
22
22
|
config: {
|
|
@@ -33,19 +33,19 @@ const Nl = ["id"], Fl = ["id"], Ol = ["xmlns", "viewBox"], Sl = ["width", "heigh
|
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
emits: ["selectLegend", "selectDatapoint"],
|
|
36
|
-
setup(
|
|
37
|
-
const
|
|
36
|
+
setup(Tt, { expose: Ot, emit: Nt }) {
|
|
37
|
+
const Ft = z(() => import("./Tooltip-le0yZk_t.js")), St = z(() => import("./BaseIcon-BLg8FaQ2.js")), It = z(() => import("./vue-ui-accordion-Cv747Pg6.js")), Dt = z(() => import("./DataTable-BRN1-1ob.js")), Pt = z(() => import("./UserOptions-DEFwuQIo.js")), Vt = z(() => import("./PenAndPaper-TgGWddgD.js")), zt = z(() => import("./PackageVersion-Jz9FlNXl.js")), Mt = z(() => import("./BaseDraggableDialog-Dkpr-qUQ.js")), { vue_ui_nested_donuts: Bt } = nl(), g = Tt, ce = _({
|
|
38
38
|
get() {
|
|
39
39
|
return !!g.dataset && g.dataset.length;
|
|
40
40
|
},
|
|
41
41
|
set(l) {
|
|
42
42
|
return l;
|
|
43
43
|
}
|
|
44
|
-
}), f = c(
|
|
45
|
-
function
|
|
44
|
+
}), f = c(rl()), he = c(!1), fe = c(""), pe = c(null), Ue = c(0), I = c(null), Ge = c(null), ye = c(null), Ye = c(null), We = c(null), Xe = c(0), qe = c(0), He = c(0), R = c(!0), U = c([]), Z = c([]), Je = c(!1), j = c(null), be = c(null), G = c(!1);
|
|
45
|
+
function Ke(l) {
|
|
46
46
|
G.value = l, Ue.value += 1;
|
|
47
47
|
}
|
|
48
|
-
const e = c(
|
|
48
|
+
const e = c(ke()), Qe = {
|
|
49
49
|
name: "",
|
|
50
50
|
series: [
|
|
51
51
|
{
|
|
@@ -64,17 +64,17 @@ const Nl = ["id"], Fl = ["id"], Ol = ["xmlns", "viewBox"], Sl = ["width", "heigh
|
|
|
64
64
|
color: "#CACACA"
|
|
65
65
|
}
|
|
66
66
|
]
|
|
67
|
-
}, { loading:
|
|
68
|
-
...
|
|
67
|
+
}, { loading: ge, FINAL_DATASET: Y, manualLoading: me } = $l({
|
|
68
|
+
...tl(g),
|
|
69
69
|
FINAL_CONFIG: e,
|
|
70
|
-
prepareConfig:
|
|
70
|
+
prepareConfig: ke,
|
|
71
71
|
callback: () => {
|
|
72
72
|
Promise.resolve().then(async () => {
|
|
73
|
-
await
|
|
73
|
+
await tt();
|
|
74
74
|
});
|
|
75
75
|
},
|
|
76
|
-
skeletonDataset: [
|
|
77
|
-
skeletonConfig:
|
|
76
|
+
skeletonDataset: [Qe, Qe],
|
|
77
|
+
skeletonConfig: il({
|
|
78
78
|
defaultConfig: e.value,
|
|
79
79
|
userConfig: {
|
|
80
80
|
useCssAnimation: !1,
|
|
@@ -100,31 +100,31 @@ const Nl = ["id"], Fl = ["id"], Ol = ["xmlns", "viewBox"], Sl = ["width", "heigh
|
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
})
|
|
103
|
-
}), { userOptionsVisible:
|
|
103
|
+
}), { userOptionsVisible: we, setUserOptionsVisibility: Ze, keepUserOptionState: je } = _l({ config: e.value }), { svgRef: ae } = xl({
|
|
104
104
|
config: e.value.style.chart.title
|
|
105
105
|
});
|
|
106
|
-
function
|
|
107
|
-
const l =
|
|
106
|
+
function ke() {
|
|
107
|
+
const l = At({
|
|
108
108
|
userConfig: g.config,
|
|
109
|
-
defaultConfig:
|
|
109
|
+
defaultConfig: Bt
|
|
110
110
|
});
|
|
111
111
|
let s = {};
|
|
112
112
|
return l.theme ? s = {
|
|
113
|
-
...
|
|
114
|
-
userConfig:
|
|
113
|
+
...At({
|
|
114
|
+
userConfig: vl.vue_ui_nested_donuts[l.theme] || g.config,
|
|
115
115
|
defaultConfig: l
|
|
116
116
|
}),
|
|
117
|
-
customPalette:
|
|
118
|
-
} : s = l, g.config &&
|
|
117
|
+
customPalette: dl[l.theme] || ze
|
|
118
|
+
} : s = l, g.config && Me(g.config, "events.datapointEnter") ? s.events.datapointEnter = g.config.events.datapointEnter : s.events.datapointEnter = null, g.config && Me(g.config, "events.datapointLeave") ? s.events.datapointLeave = g.config.events.datapointLeave : s.events.datapointLeave = null, g.config && Me(g.config, "events.datapointClick") ? s.events.datapointClick = g.config.events.datapointClick : s.events.datapointClick = null, s;
|
|
119
119
|
}
|
|
120
120
|
te(
|
|
121
121
|
() => g.config,
|
|
122
122
|
(l) => {
|
|
123
|
-
|
|
123
|
+
ge.value || (e.value = ke()), we.value = !e.value.userOptions.showOnChartHover, lt(), Xe.value += 1, qe.value += 1, He.value += 1, $.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, $.value.showTable = e.value.table.show, $.value.showTooltip = e.value.style.chart.tooltip.show, h.value.width = e.value.style.chart.width, h.value.height = e.value.style.chart.height;
|
|
124
124
|
},
|
|
125
125
|
{ deep: !0 }
|
|
126
126
|
);
|
|
127
|
-
const
|
|
127
|
+
const et = _(() => {
|
|
128
128
|
const { top: l, right: s, bottom: a, left: o } = e.value.style.chart.padding;
|
|
129
129
|
return {
|
|
130
130
|
css: `padding:${l}px ${s}px ${a}px ${o}px`,
|
|
@@ -134,52 +134,52 @@ const Nl = ["id"], Fl = ["id"], Ol = ["xmlns", "viewBox"], Sl = ["width", "heigh
|
|
|
134
134
|
left: o
|
|
135
135
|
};
|
|
136
136
|
});
|
|
137
|
-
function
|
|
137
|
+
function Et(l, s = 1e3, a = 50) {
|
|
138
138
|
return new Promise((o) => {
|
|
139
139
|
const t = l.length;
|
|
140
|
-
|
|
140
|
+
U.value = Array(t).fill(0), Z.value = [];
|
|
141
141
|
let n = 0;
|
|
142
142
|
l.forEach((v, y) => {
|
|
143
143
|
setTimeout(() => {
|
|
144
|
-
const
|
|
144
|
+
const w = performance.now();
|
|
145
145
|
function d(b) {
|
|
146
|
-
const
|
|
147
|
-
|
|
146
|
+
const O = Math.min((b - w) / s, 1), Oe = xt(O), Ne = v * Oe;
|
|
147
|
+
U.value[y] = Ne, U.value = [...U.value];
|
|
148
148
|
const ie = [];
|
|
149
149
|
let Fe = 0;
|
|
150
|
-
g.dataset.forEach((de,
|
|
151
|
-
const
|
|
152
|
-
(
|
|
150
|
+
g.dataset.forEach((de, Se) => {
|
|
151
|
+
const Qt = Re(de.series.reduce(
|
|
152
|
+
(De, Pe) => De + Re(E(Pe.values).reduce((jt, el) => jt + el, 0)),
|
|
153
153
|
0
|
|
154
|
-
)),
|
|
155
|
-
|
|
154
|
+
)), Zt = Re(U.value.slice(Fe, Fe + de.series.length).reduce((De, Pe) => De + Pe, 0)), Ie = Qt - Zt;
|
|
155
|
+
Ie > Number.MIN_VALUE && ie.push({
|
|
156
156
|
name: "__ghost__",
|
|
157
157
|
arcOf: de.name,
|
|
158
|
-
arcOfId: `${f.value}_${
|
|
159
|
-
id: `ghost_${f.value}_${
|
|
158
|
+
arcOfId: `${f.value}_${Se}`,
|
|
159
|
+
id: `ghost_${f.value}_${Se}`,
|
|
160
160
|
seriesIndex: -1,
|
|
161
|
-
datasetIndex:
|
|
161
|
+
datasetIndex: Se,
|
|
162
162
|
color: "transparent",
|
|
163
|
-
value:
|
|
164
|
-
fullValue:
|
|
163
|
+
value: Ie,
|
|
164
|
+
fullValue: Ie,
|
|
165
165
|
absoluteValues: [],
|
|
166
166
|
ghost: !0
|
|
167
167
|
}), Fe += de.series.length;
|
|
168
|
-
}), Z.value = ie,
|
|
168
|
+
}), Z.value = ie, O < 1 ? requestAnimationFrame(d) : (n += 1, n === t && o());
|
|
169
169
|
}
|
|
170
170
|
requestAnimationFrame(d);
|
|
171
171
|
}, y * a);
|
|
172
172
|
});
|
|
173
173
|
});
|
|
174
174
|
}
|
|
175
|
-
async function
|
|
175
|
+
async function tt() {
|
|
176
176
|
if (e.value.startAnimation?.show) {
|
|
177
177
|
const s = Y.value.flatMap((a) => a.series).map(
|
|
178
178
|
(a) => E(a.values).reduce((o, t) => o + t, 0)
|
|
179
179
|
);
|
|
180
|
-
|
|
180
|
+
U.value = s.map(() => 0), R.value = !0, Z.value = Y.value.map((a, o) => {
|
|
181
181
|
const t = a.series.reduce(
|
|
182
|
-
(n, v) => n + E(v.values).reduce((y,
|
|
182
|
+
(n, v) => n + E(v.values).reduce((y, w) => y + w, 0),
|
|
183
183
|
0
|
|
184
184
|
);
|
|
185
185
|
return {
|
|
@@ -195,34 +195,34 @@ const Nl = ["id"], Fl = ["id"], Ol = ["xmlns", "viewBox"], Sl = ["width", "heigh
|
|
|
195
195
|
absoluteValues: [],
|
|
196
196
|
ghost: !0
|
|
197
197
|
};
|
|
198
|
-
}), await
|
|
198
|
+
}), await Ct(), Et(
|
|
199
199
|
s,
|
|
200
200
|
e.value.startAnimation.durationMs,
|
|
201
201
|
e.value.startAnimation.staggerMs
|
|
202
202
|
).then(() => {
|
|
203
|
-
|
|
203
|
+
R.value = !1, Z.value = [];
|
|
204
204
|
});
|
|
205
205
|
} else
|
|
206
|
-
|
|
206
|
+
R.value = !1;
|
|
207
207
|
}
|
|
208
|
-
|
|
209
|
-
|
|
208
|
+
ll(async () => {
|
|
209
|
+
Je.value = !0, lt(), await tt();
|
|
210
210
|
});
|
|
211
|
-
const P =
|
|
212
|
-
function
|
|
213
|
-
if (
|
|
211
|
+
const P = gt(null), W = gt(null), X = _(() => !!e.value.debug);
|
|
212
|
+
function lt() {
|
|
213
|
+
if (cl(g.dataset) ? (K({
|
|
214
214
|
componentName: "VueUiNestedDonuts",
|
|
215
215
|
type: "dataset",
|
|
216
216
|
debug: X.value
|
|
217
|
-
}), ce.value = !1,
|
|
218
|
-
const l =
|
|
219
|
-
const { width: s, height: a } =
|
|
217
|
+
}), ce.value = !1, me.value = !0) : me.value = e.value.loading, e.value.responsive) {
|
|
218
|
+
const l = wl(() => {
|
|
219
|
+
const { width: s, height: a } = kl({
|
|
220
220
|
chart: I.value,
|
|
221
|
-
title: e.value.style.chart.title.text ?
|
|
221
|
+
title: e.value.style.chart.title.text ? Ge.value : null,
|
|
222
222
|
legend: e.value.style.chart.legend.show ? ye.value : null,
|
|
223
|
-
source:
|
|
224
|
-
noTitle:
|
|
225
|
-
padding:
|
|
223
|
+
source: Ye.value,
|
|
224
|
+
noTitle: We.value,
|
|
225
|
+
padding: et.value
|
|
226
226
|
});
|
|
227
227
|
requestAnimationFrame(() => {
|
|
228
228
|
h.value.width = s, h.value.height = a;
|
|
@@ -231,14 +231,14 @@ const Nl = ["id"], Fl = ["id"], Ol = ["xmlns", "viewBox"], Sl = ["width", "heigh
|
|
|
231
231
|
P.value && (W.value && P.value.unobserve(W.value), P.value.disconnect()), P.value = new ResizeObserver(l), W.value = I.value.parentNode, P.value.observe(W.value);
|
|
232
232
|
}
|
|
233
233
|
}
|
|
234
|
-
|
|
234
|
+
al(() => {
|
|
235
235
|
P.value && (W.value && P.value.unobserve(W.value), P.value.disconnect());
|
|
236
236
|
});
|
|
237
|
-
const { isPrinting:
|
|
237
|
+
const { isPrinting: at, isImaging: ot, generatePdf: st, generateImage: ut } = Ll({
|
|
238
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
|
+
}), Rt = _(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ut = _(() => hl(e.value.customPalette)), $ = c({
|
|
242
242
|
dataLabels: {
|
|
243
243
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
244
244
|
},
|
|
@@ -246,7 +246,7 @@ const Nl = ["id"], Fl = ["id"], Ol = ["xmlns", "viewBox"], Sl = ["width", "heigh
|
|
|
246
246
|
showTooltip: e.value.style.chart.tooltip.show
|
|
247
247
|
});
|
|
248
248
|
te(e, () => {
|
|
249
|
-
|
|
249
|
+
$.value = {
|
|
250
250
|
dataLabels: {
|
|
251
251
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
252
252
|
},
|
|
@@ -257,27 +257,27 @@ const Nl = ["id"], Fl = ["id"], Ol = ["xmlns", "viewBox"], Sl = ["width", "heigh
|
|
|
257
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: l, seriesIndex: a }),
|
|
260
|
+
}), nt = Nt;
|
|
261
|
+
function Gt({ datapoint: l, index: s, seriesIndex: a }) {
|
|
262
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: a }), nt("selectDatapoint", { datapoint: l, index: s });
|
|
263
263
|
}
|
|
264
|
-
function
|
|
264
|
+
function rt({
|
|
265
265
|
from: l,
|
|
266
266
|
to: s,
|
|
267
267
|
duration: a,
|
|
268
268
|
onUpdate: o,
|
|
269
269
|
onDone: t,
|
|
270
|
-
easing: n =
|
|
270
|
+
easing: n = xt
|
|
271
271
|
}) {
|
|
272
272
|
const v = performance.now();
|
|
273
|
-
function y(
|
|
274
|
-
const d = Math.min((
|
|
275
|
-
o(
|
|
273
|
+
function y(w) {
|
|
274
|
+
const d = Math.min((w - v) / a, 1), b = n(d), O = l + (s - l) * b;
|
|
275
|
+
o(O, d), d < 1 ? requestAnimationFrame(y) : (o(s, 1), t && t());
|
|
276
276
|
}
|
|
277
277
|
requestAnimationFrame(y);
|
|
278
278
|
}
|
|
279
|
-
const L = c([]), S =
|
|
280
|
-
|
|
279
|
+
const L = c([]), S = _(() => {
|
|
280
|
+
ge.value, Y.value.forEach((s, a) => {
|
|
281
281
|
[null, void 0].includes(s.name) && K({
|
|
282
282
|
componentName: "VueUiNestedDonuts",
|
|
283
283
|
type: "datasetSerieAttribute",
|
|
@@ -328,17 +328,17 @@ const Nl = ["id"], Fl = ["id"], Ol = ["xmlns", "viewBox"], Sl = ["width", "heigh
|
|
|
328
328
|
id: `${f.value}_${a}_${t}`,
|
|
329
329
|
seriesIndex: t,
|
|
330
330
|
datasetIndex: a,
|
|
331
|
-
color:
|
|
332
|
-
value:
|
|
331
|
+
color: fl(o.color) || Ut.value[t] || ze[t % ze.length],
|
|
332
|
+
value: R.value ? U.value[l++] ?? 0 : n,
|
|
333
333
|
absoluteValues: o.values || []
|
|
334
334
|
};
|
|
335
335
|
})
|
|
336
336
|
}));
|
|
337
337
|
});
|
|
338
338
|
te(() => g.dataset, (l) => {
|
|
339
|
-
Array.isArray(l) && l.length > 0 && (
|
|
339
|
+
Array.isArray(l) && l.length > 0 && (me.value = !1);
|
|
340
340
|
}, { immediate: !0 });
|
|
341
|
-
const D =
|
|
341
|
+
const D = _(() => Math.min(h.value.height, h.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)), it = _(() => [...S.value].map((l, s) => {
|
|
342
342
|
const a = l.series.filter((o) => !L.value.includes(o.id)).map((o) => o.value).reduce((o, t) => o + t, 0);
|
|
343
343
|
return {
|
|
344
344
|
...l,
|
|
@@ -349,74 +349,74 @@ const Nl = ["id"], Fl = ["id"], Ol = ["xmlns", "viewBox"], Sl = ["width", "heigh
|
|
|
349
349
|
}))
|
|
350
350
|
};
|
|
351
351
|
}));
|
|
352
|
-
function
|
|
352
|
+
function Yt(l, s, a) {
|
|
353
353
|
let o = 0;
|
|
354
354
|
for (let t = 0; t < l.length; t += 1)
|
|
355
355
|
a.includes(l[t]) && (o += 1);
|
|
356
356
|
return o < s;
|
|
357
357
|
}
|
|
358
|
-
const
|
|
358
|
+
const m = c(it.value);
|
|
359
359
|
te(
|
|
360
|
-
() =>
|
|
361
|
-
(l) =>
|
|
360
|
+
() => it.value,
|
|
361
|
+
(l) => m.value = l
|
|
362
362
|
);
|
|
363
|
-
function
|
|
364
|
-
|
|
363
|
+
function $e(l) {
|
|
364
|
+
nt("selectLegend", l);
|
|
365
365
|
const s = g.dataset.flatMap(
|
|
366
|
-
(d, b) => d.series.map((
|
|
367
|
-
value: E(
|
|
368
|
-
id: `${f.value}_${b}_${
|
|
366
|
+
(d, b) => d.series.map((O, Oe) => ({
|
|
367
|
+
value: E(O.values).reduce((Ne, ie) => Ne + ie, 0),
|
|
368
|
+
id: `${f.value}_${b}_${Oe}`,
|
|
369
369
|
arcOfId: `${f.value}_${b}`
|
|
370
370
|
}))
|
|
371
371
|
).find((d) => d.id === l.id);
|
|
372
372
|
if (!s) return;
|
|
373
|
-
const a = S.value.flatMap((d) => d.series).find((d) => d.id === l.id)?.value ?? 0, o =
|
|
373
|
+
const a = S.value.flatMap((d) => d.series).find((d) => d.id === l.id)?.value ?? 0, o = m.value.flatMap((d) => d.series).find((d) => d.id === l.id);
|
|
374
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 y = v.series.map((d) => d.id),
|
|
379
|
+
const y = v.series.map((d) => d.id), w = Yt(
|
|
380
380
|
y,
|
|
381
381
|
y.length - 1,
|
|
382
382
|
L.value
|
|
383
383
|
);
|
|
384
|
-
L.value.includes(l.id) ? (L.value = L.value.filter((d) => d !== l.id), e.value.serieToggleAnimation.show ?
|
|
384
|
+
L.value.includes(l.id) ? (L.value = L.value.filter((d) => d !== l.id), e.value.serieToggleAnimation.show ? rt({
|
|
385
385
|
from: n,
|
|
386
386
|
to: a,
|
|
387
387
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
388
388
|
onUpdate: (d) => {
|
|
389
|
-
|
|
389
|
+
m.value = m.value.map((b) => ({
|
|
390
390
|
...b,
|
|
391
|
-
series: b.series.map((
|
|
391
|
+
series: b.series.map((O) => O.id === l.id ? { ...O, value: d } : O)
|
|
392
392
|
}));
|
|
393
393
|
}
|
|
394
|
-
}) :
|
|
394
|
+
}) : m.value = m.value.map((d) => ({
|
|
395
395
|
...d,
|
|
396
396
|
series: d.series.map((b) => b.id === l.id ? { ...b, value: a } : b)
|
|
397
|
-
}))) :
|
|
397
|
+
}))) : w && (e.value.serieToggleAnimation.show ? rt({
|
|
398
398
|
from: n,
|
|
399
399
|
to: 0,
|
|
400
400
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
401
401
|
onUpdate: (d) => {
|
|
402
|
-
|
|
402
|
+
m.value = m.value.map((b) => ({
|
|
403
403
|
...b,
|
|
404
|
-
series: b.series.map((
|
|
404
|
+
series: b.series.map((O) => O.id === l.id ? { ...O, value: d } : O)
|
|
405
405
|
}));
|
|
406
406
|
},
|
|
407
407
|
onDone: () => {
|
|
408
408
|
L.value.push(l.id);
|
|
409
409
|
}
|
|
410
|
-
}) : (
|
|
410
|
+
}) : (m.value = m.value.map((d) => ({
|
|
411
411
|
...d,
|
|
412
412
|
series: d.series.map((b) => b.id === l.id ? { ...b, value: 0 } : b)
|
|
413
413
|
})), L.value.push(l.id)));
|
|
414
414
|
}
|
|
415
|
-
const oe =
|
|
416
|
-
const a = Math.abs(l.series.map((
|
|
417
|
-
...
|
|
418
|
-
value:
|
|
419
|
-
})), v =
|
|
415
|
+
const oe = _(() => D.value / S.value.length * e.value.style.chart.layout.donut.spacingRatio), dt = _(() => m.value.map((l, s) => D.value - s * D.value / S.value.length)), q = _(() => m.value.map((l, s) => {
|
|
416
|
+
const a = Math.abs(l.series.map((w) => w.value).reduce((w, d) => w + d, 0)) > 0, o = D.value - s * D.value / m.value.length, t = R.value ? Z.value.find((w) => w.datasetIndex === s) : null, n = [...l.series, ...t ? [t] : []].map((w) => ({
|
|
417
|
+
...w,
|
|
418
|
+
value: w.value < 1e-11 ? Number.MIN_VALUE : w.value
|
|
419
|
+
})), v = Be(
|
|
420
420
|
{ series: [
|
|
421
421
|
{ name: "_", color: e.value.style.chart.layout.donut.emptyFill, value: 1 }
|
|
422
422
|
] },
|
|
@@ -439,7 +439,7 @@ const Nl = ["id"], Fl = ["id"], Ol = ["xmlns", "viewBox"], Sl = ["width", "heigh
|
|
|
439
439
|
radius: o,
|
|
440
440
|
skeleton: v,
|
|
441
441
|
fullCirclePath: y,
|
|
442
|
-
donut:
|
|
442
|
+
donut: Be(
|
|
443
443
|
{ series: n },
|
|
444
444
|
h.value.width / 2,
|
|
445
445
|
h.value.height / 2,
|
|
@@ -453,11 +453,11 @@ const Nl = ["id"], Fl = ["id"], Ol = ["xmlns", "viewBox"], Sl = ["width", "heigh
|
|
|
453
453
|
oe.value
|
|
454
454
|
)
|
|
455
455
|
};
|
|
456
|
-
})),
|
|
456
|
+
})), vt = _(() => [...S.value].map((l, s) => {
|
|
457
457
|
const a = s * D.value / S.value.length;
|
|
458
458
|
return {
|
|
459
459
|
sizeRatio: a,
|
|
460
|
-
donut:
|
|
460
|
+
donut: Be(
|
|
461
461
|
{ series: [{ value: 1 }] },
|
|
462
462
|
h.value.width / 2,
|
|
463
463
|
h.value.height / 2,
|
|
@@ -471,36 +471,36 @@ const Nl = ["id"], Fl = ["id"], Ol = ["xmlns", "viewBox"], Sl = ["width", "heigh
|
|
|
471
471
|
D.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: l, seriesIndex: s }), he.value = !1,
|
|
474
|
+
})), ct = c(null), se = c(null), ue = c(null), Ce = c(null);
|
|
475
|
+
function Wt({ datapoint: l, seriesIndex: s }) {
|
|
476
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: s }), he.value = !1, ct.value = null, pe.value = null, se.value = null, ue.value = null;
|
|
477
477
|
}
|
|
478
|
-
function
|
|
479
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: a }),
|
|
478
|
+
function Xt({ datapoint: l, _relativeIndex: s, seriesIndex: a }) {
|
|
479
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: a }), ct.value = l.arcOfId, se.value = l.id, ue.value = a, pe.value = l.id, Ce.value = {
|
|
480
480
|
datapoint: l,
|
|
481
481
|
seriesIndex: a,
|
|
482
|
-
series:
|
|
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 (_t(o) && ml(
|
|
487
487
|
() => o({
|
|
488
488
|
seriesIndex: a,
|
|
489
489
|
datapoint: l,
|
|
490
|
-
series:
|
|
490
|
+
series: m.value,
|
|
491
491
|
config: e.value
|
|
492
492
|
})
|
|
493
493
|
))
|
|
494
494
|
fe.value = o({
|
|
495
495
|
seriesIndex: a,
|
|
496
496
|
datapoint: l,
|
|
497
|
-
series:
|
|
497
|
+
series: m.value,
|
|
498
498
|
config: e.value
|
|
499
499
|
});
|
|
500
500
|
else {
|
|
501
501
|
let t = "";
|
|
502
502
|
if (e.value.style.chart.tooltip.showAllItemsAtIndex && L.value.length === 0) {
|
|
503
|
-
const n =
|
|
503
|
+
const n = m.value.map((v) => v.series.find((y) => y.seriesIndex === a));
|
|
504
504
|
n.forEach((v, y) => {
|
|
505
505
|
if (!v) return "";
|
|
506
506
|
t += `
|
|
@@ -517,7 +517,7 @@ const Nl = ["id"], Fl = ["id"], Ol = ["xmlns", "viewBox"], Sl = ["width", "heigh
|
|
|
517
517
|
${e.value.style.chart.tooltip.showValue ? `<b>${le(
|
|
518
518
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
519
519
|
l.value,
|
|
520
|
-
|
|
520
|
+
F({
|
|
521
521
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
522
522
|
v: l.value,
|
|
523
523
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -526,7 +526,7 @@ const Nl = ["id"], Fl = ["id"], Ol = ["xmlns", "viewBox"], Sl = ["width", "heigh
|
|
|
526
526
|
{ datapoint: l, seriesIndex: a }
|
|
527
527
|
)}
|
|
528
528
|
</b>` : ""}
|
|
529
|
-
${e.value.style.chart.tooltip.showPercentage ? `(${
|
|
529
|
+
${e.value.style.chart.tooltip.showPercentage ? `(${F({
|
|
530
530
|
v: v.proportion * 100,
|
|
531
531
|
s: "%",
|
|
532
532
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
@@ -539,18 +539,18 @@ const Nl = ["id"], Fl = ["id"], Ol = ["xmlns", "viewBox"], Sl = ["width", "heigh
|
|
|
539
539
|
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>${le(
|
|
540
540
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
541
541
|
l.value,
|
|
542
|
-
|
|
542
|
+
F({
|
|
543
543
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
544
544
|
v: l.value,
|
|
545
545
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
546
546
|
r: e.value.style.chart.tooltip.roundingValue
|
|
547
547
|
}),
|
|
548
548
|
{ datapoint: l, seriesIndex: a }
|
|
549
|
-
)}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? t += `<span>(${
|
|
549
|
+
)}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? t += `<span>(${F({
|
|
550
550
|
v: l.proportion * 100,
|
|
551
551
|
s: "%",
|
|
552
552
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
553
|
-
})})</span></div>` : t += `<b>${
|
|
553
|
+
})})</span></div>` : t += `<b>${F({
|
|
554
554
|
v: l.proportion * 100,
|
|
555
555
|
s: "%",
|
|
556
556
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
@@ -559,10 +559,10 @@ const Nl = ["id"], Fl = ["id"], Ol = ["xmlns", "viewBox"], Sl = ["width", "heigh
|
|
|
559
559
|
}
|
|
560
560
|
he.value = !0;
|
|
561
561
|
}
|
|
562
|
-
function
|
|
562
|
+
function Le(l) {
|
|
563
563
|
return l.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
564
564
|
}
|
|
565
|
-
function
|
|
565
|
+
function ht(l, s) {
|
|
566
566
|
if (!e.value.useBlurOnHover)
|
|
567
567
|
return "";
|
|
568
568
|
if (e.value.style.chart.tooltip.showAllItemsAtIndex && L.value.length === 0)
|
|
@@ -570,10 +570,10 @@ const Nl = ["id"], Fl = ["id"], Ol = ["xmlns", "viewBox"], Sl = ["width", "heigh
|
|
|
570
570
|
if (!e.value.style.chart.tooltip.showAllItemsAtIndex || L.value.length)
|
|
571
571
|
return [null, void 0].includes(se.value) || se.value === l.id ? "" : `url(#blur_${f.value})`;
|
|
572
572
|
}
|
|
573
|
-
const
|
|
573
|
+
const _e = _(() => S.value.map((l, s) => {
|
|
574
574
|
const a = l.series.filter(
|
|
575
575
|
(t) => !L.value.includes(t.id)
|
|
576
|
-
), o =
|
|
576
|
+
), o = R.value ? a.map((t) => {
|
|
577
577
|
const n = Y.value[s].series.findIndex(
|
|
578
578
|
(v) => v.name === t.name
|
|
579
579
|
);
|
|
@@ -583,9 +583,9 @@ const Nl = ["id"], Fl = ["id"], Ol = ["xmlns", "viewBox"], Sl = ["width", "heigh
|
|
|
583
583
|
}).reduce((t, n) => t + n, 0) : a.map((t) => t.value).reduce((t, n) => t + n, 0);
|
|
584
584
|
return l.series.map((t, n) => {
|
|
585
585
|
const v = E(Y.value[s].series[n].values).reduce(
|
|
586
|
-
(
|
|
586
|
+
(w, d) => w + d,
|
|
587
587
|
0
|
|
588
|
-
), y =
|
|
588
|
+
), y = R.value ? v : t.value;
|
|
589
589
|
return {
|
|
590
590
|
name: t.name,
|
|
591
591
|
color: t.color,
|
|
@@ -597,27 +597,27 @@ const Nl = ["id"], Fl = ["id"], Ol = ["xmlns", "viewBox"], Sl = ["width", "heigh
|
|
|
597
597
|
datasetIndex: s,
|
|
598
598
|
total: o,
|
|
599
599
|
opacity: L.value.includes(t.id) ? 0.5 : 1,
|
|
600
|
-
segregate: () =>
|
|
600
|
+
segregate: () => $e(t),
|
|
601
601
|
isSegregated: L.value.includes(t.id)
|
|
602
602
|
};
|
|
603
603
|
});
|
|
604
|
-
})),
|
|
604
|
+
})), qt = _(() => ({
|
|
605
605
|
cy: "nested-donuts-legend",
|
|
606
606
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
607
607
|
color: e.value.style.chart.legend.color,
|
|
608
608
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
609
609
|
paddingBottom: 12,
|
|
610
610
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
611
|
-
})), V =
|
|
612
|
-
const l =
|
|
611
|
+
})), V = _(() => {
|
|
612
|
+
const l = m.value.flatMap((a) => a.series.map((o) => ({
|
|
613
613
|
name: `${a.name} - ${o.name}`,
|
|
614
614
|
color: o.color,
|
|
615
615
|
total: a.total
|
|
616
|
-
}))), s =
|
|
616
|
+
}))), s = m.value.flatMap((a) => a.series.map((o) => o.value));
|
|
617
617
|
return { head: l, body: s };
|
|
618
618
|
});
|
|
619
619
|
function xe(l = null) {
|
|
620
|
-
|
|
620
|
+
Ct(() => {
|
|
621
621
|
const s = V.value.head.map((t, n) => [
|
|
622
622
|
[t.name],
|
|
623
623
|
[V.value.body[n]],
|
|
@@ -628,20 +628,20 @@ const Nl = ["id"], Fl = ["id"], Ol = ["xmlns", "viewBox"], Sl = ["width", "heigh
|
|
|
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
|
-
l ? l(o) :
|
|
631
|
+
].concat(s), o = bl(a);
|
|
632
|
+
l ? l(o) : gl({
|
|
633
633
|
csvContent: o,
|
|
634
634
|
title: e.value.style.chart.title.text || "vue-ui-nested-donuts"
|
|
635
635
|
});
|
|
636
636
|
});
|
|
637
637
|
}
|
|
638
|
-
const ne =
|
|
638
|
+
const ne = _(() => {
|
|
639
639
|
const l = [
|
|
640
640
|
e.value.table.columnNames.series,
|
|
641
641
|
e.value.table.columnNames.value,
|
|
642
642
|
e.value.table.columnNames.percentage
|
|
643
643
|
], s = V.value.head.map((t, n) => {
|
|
644
|
-
const v =
|
|
644
|
+
const v = F({
|
|
645
645
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
646
646
|
v: V.value.body[n],
|
|
647
647
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -653,7 +653,7 @@ const Nl = ["id"], Fl = ["id"], Ol = ["xmlns", "viewBox"], Sl = ["width", "heigh
|
|
|
653
653
|
name: t.name
|
|
654
654
|
},
|
|
655
655
|
v,
|
|
656
|
-
isNaN(V.value.body[n] / t.total) ? "-" :
|
|
656
|
+
isNaN(V.value.body[n] / t.total) ? "-" : F({
|
|
657
657
|
v: V.value.body[n] / t.total * 100,
|
|
658
658
|
s: "%",
|
|
659
659
|
r: e.value.table.td.roundingPercentage
|
|
@@ -683,25 +683,25 @@ const Nl = ["id"], Fl = ["id"], Ol = ["xmlns", "viewBox"], Sl = ["width", "heigh
|
|
|
683
683
|
config: a
|
|
684
684
|
};
|
|
685
685
|
});
|
|
686
|
-
function
|
|
686
|
+
function Ht() {
|
|
687
687
|
return S.value;
|
|
688
688
|
}
|
|
689
|
-
function ht() {
|
|
690
|
-
m.value.showTable = !m.value.showTable;
|
|
691
|
-
}
|
|
692
689
|
function ft() {
|
|
693
|
-
|
|
690
|
+
$.value.showTable = !$.value.showTable;
|
|
694
691
|
}
|
|
695
692
|
function pt() {
|
|
696
|
-
|
|
693
|
+
$.value.dataLabels.show = !$.value.dataLabels.show;
|
|
694
|
+
}
|
|
695
|
+
function yt() {
|
|
696
|
+
$.value.showTooltip = !$.value.showTooltip;
|
|
697
697
|
}
|
|
698
698
|
const re = c(!1);
|
|
699
|
-
function
|
|
699
|
+
function Ae() {
|
|
700
700
|
re.value = !re.value;
|
|
701
701
|
}
|
|
702
|
-
async function
|
|
702
|
+
async function Jt({ scale: l = 2 } = {}) {
|
|
703
703
|
if (!I.value) return;
|
|
704
|
-
const { width: s, height: a } = I.value.getBoundingClientRect(), o = s / a, { imageUri: t, base64: n } = await
|
|
704
|
+
const { width: s, height: a } = I.value.getBoundingClientRect(), o = s / a, { imageUri: t, base64: n } = await Al({ domElement: I.value, base64: !0, img: !0, scale: l });
|
|
705
705
|
return {
|
|
706
706
|
imageUri: t,
|
|
707
707
|
base64: n,
|
|
@@ -711,16 +711,16 @@ const Nl = ["id"], Fl = ["id"], Ol = ["xmlns", "viewBox"], Sl = ["width", "heigh
|
|
|
711
711
|
aspectRatio: o
|
|
712
712
|
};
|
|
713
713
|
}
|
|
714
|
-
const
|
|
715
|
-
function
|
|
716
|
-
if (!
|
|
717
|
-
const { x: l, y: s, width: a, height: o } =
|
|
714
|
+
const Te = c(null);
|
|
715
|
+
function Kt() {
|
|
716
|
+
if (!Te.value) return;
|
|
717
|
+
const { x: l, y: s, width: a, height: o } = Te.value.getBBox();
|
|
718
718
|
ae.value && ae.value.setAttribute("viewBox", `${l} ${s} ${a + Math.min(0, l)} ${o + Math.min(0, s)}`);
|
|
719
719
|
}
|
|
720
|
-
const ee =
|
|
721
|
-
const l = e.value.table.useDialog && !e.value.table.show, s =
|
|
720
|
+
const ee = _(() => {
|
|
721
|
+
const l = e.value.table.useDialog && !e.value.table.show, s = $.value.showTable;
|
|
722
722
|
return {
|
|
723
|
-
component: l ?
|
|
723
|
+
component: l ? Mt : It,
|
|
724
724
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
725
725
|
props: l ? {
|
|
726
726
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -747,51 +747,55 @@ const Nl = ["id"], Fl = ["id"], Ol = ["xmlns", "viewBox"], Sl = ["width", "heigh
|
|
|
747
747
|
}
|
|
748
748
|
};
|
|
749
749
|
});
|
|
750
|
-
|
|
750
|
+
te(() => $.value.showTable, (l) => {
|
|
751
751
|
e.value.table.show || (l && e.value.table.useDialog && j.value ? j.value.open() : "close" in j.value && j.value.close());
|
|
752
|
-
})
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
752
|
+
});
|
|
753
|
+
function bt() {
|
|
754
|
+
$.value.showTable = !1, be.value && be.value.setTableIconState(!1);
|
|
755
|
+
}
|
|
756
|
+
return Ot({
|
|
757
|
+
autoSize: Kt,
|
|
758
|
+
getData: Ht,
|
|
759
|
+
getImage: Jt,
|
|
760
|
+
generatePdf: st,
|
|
757
761
|
generateCsv: xe,
|
|
758
|
-
generateImage:
|
|
759
|
-
toggleTable:
|
|
760
|
-
toggleLabels:
|
|
761
|
-
toggleTooltip:
|
|
762
|
-
toggleAnnotator:
|
|
763
|
-
toggleFullscreen:
|
|
762
|
+
generateImage: ut,
|
|
763
|
+
toggleTable: ft,
|
|
764
|
+
toggleLabels: pt,
|
|
765
|
+
toggleTooltip: yt,
|
|
766
|
+
toggleAnnotator: Ae,
|
|
767
|
+
toggleFullscreen: Ke
|
|
764
768
|
}), (l, s) => (u(), r("div", {
|
|
765
769
|
ref_key: "nestedDonutsChart",
|
|
766
770
|
ref: I,
|
|
767
771
|
class: M(`vue-ui-nested-donuts ${G.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
768
772
|
style: ve(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
769
773
|
id: `nested_donuts_${f.value}`,
|
|
770
|
-
onMouseenter: s[
|
|
771
|
-
onMouseleave: s[
|
|
774
|
+
onMouseenter: s[2] || (s[2] = () => i(Ze)(!0)),
|
|
775
|
+
onMouseleave: s[3] || (s[3] = () => i(Ze)(!1))
|
|
772
776
|
}, [
|
|
773
|
-
e.value.userOptions.buttons.annotator ? (u(), B(i(
|
|
777
|
+
e.value.userOptions.buttons.annotator ? (u(), B(i(Vt), {
|
|
774
778
|
key: 0,
|
|
775
779
|
svgRef: i(ae),
|
|
776
780
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
777
781
|
color: e.value.style.chart.color,
|
|
778
782
|
active: re.value,
|
|
779
|
-
onClose:
|
|
780
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
781
|
-
|
|
783
|
+
onClose: Ae
|
|
784
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : k("", !0),
|
|
785
|
+
Rt.value ? (u(), r("div", {
|
|
782
786
|
key: 1,
|
|
783
787
|
ref_key: "noTitle",
|
|
784
|
-
ref:
|
|
788
|
+
ref: We,
|
|
785
789
|
class: "vue-data-ui-no-title-space",
|
|
786
790
|
style: "height:36px; width: 100%;background:transparent"
|
|
787
|
-
}, null, 512)) :
|
|
791
|
+
}, null, 512)) : k("", !0),
|
|
788
792
|
e.value.style.chart.title.text ? (u(), r("div", {
|
|
789
793
|
key: 2,
|
|
790
794
|
ref_key: "chartTitle",
|
|
791
|
-
ref:
|
|
795
|
+
ref: Ge
|
|
792
796
|
}, [
|
|
793
|
-
(u(), B(
|
|
794
|
-
key: `title_${
|
|
797
|
+
(u(), B(Tl, {
|
|
798
|
+
key: `title_${Xe.value}`,
|
|
795
799
|
config: {
|
|
796
800
|
title: {
|
|
797
801
|
cy: "donut-div-title",
|
|
@@ -803,17 +807,18 @@ const Nl = ["id"], Fl = ["id"], Ol = ["xmlns", "viewBox"], Sl = ["width", "heigh
|
|
|
803
807
|
}
|
|
804
808
|
}
|
|
805
809
|
}, null, 8, ["config"]))
|
|
806
|
-
], 512)) :
|
|
810
|
+
], 512)) : k("", !0),
|
|
807
811
|
p("div", {
|
|
808
812
|
id: `legend-top-${f.value}`
|
|
809
|
-
}, null, 8,
|
|
810
|
-
e.value.userOptions.show && ce.value && (i(
|
|
811
|
-
|
|
813
|
+
}, null, 8, Sl),
|
|
814
|
+
e.value.userOptions.show && ce.value && (i(je) || i(we)) ? (u(), B(i(Pt), {
|
|
815
|
+
ref_key: "userOptionsRef",
|
|
816
|
+
ref: be,
|
|
812
817
|
key: `user_option_${Ue.value}`,
|
|
813
818
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
814
819
|
color: e.value.style.chart.color,
|
|
815
|
-
isPrinting: i(
|
|
816
|
-
isImaging: i(
|
|
820
|
+
isPrinting: i(at),
|
|
821
|
+
isImaging: i(ot),
|
|
817
822
|
uid: f.value,
|
|
818
823
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
819
824
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -823,7 +828,7 @@ const Nl = ["id"], Fl = ["id"], Ol = ["xmlns", "viewBox"], Sl = ["width", "heigh
|
|
|
823
828
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
824
829
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
825
830
|
isFullscreen: G.value,
|
|
826
|
-
isTooltip:
|
|
831
|
+
isTooltip: $.value.showTooltip,
|
|
827
832
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
828
833
|
chartElement: I.value,
|
|
829
834
|
position: e.value.userOptions.position,
|
|
@@ -831,100 +836,101 @@ const Nl = ["id"], Fl = ["id"], Ol = ["xmlns", "viewBox"], Sl = ["width", "heigh
|
|
|
831
836
|
isAnnotation: re.value,
|
|
832
837
|
callbacks: e.value.userOptions.callbacks,
|
|
833
838
|
printScale: e.value.userOptions.print.scale,
|
|
834
|
-
|
|
835
|
-
|
|
839
|
+
tableDialog: e.value.table.useDialog,
|
|
840
|
+
onToggleFullscreen: Ke,
|
|
841
|
+
onGeneratePdf: i(st),
|
|
836
842
|
onGenerateCsv: xe,
|
|
837
|
-
onGenerateImage: i(
|
|
838
|
-
onToggleTable:
|
|
839
|
-
onToggleLabels:
|
|
840
|
-
onToggleTooltip:
|
|
841
|
-
onToggleAnnotator:
|
|
843
|
+
onGenerateImage: i(ut),
|
|
844
|
+
onToggleTable: ft,
|
|
845
|
+
onToggleLabels: pt,
|
|
846
|
+
onToggleTooltip: yt,
|
|
847
|
+
onToggleAnnotator: Ae,
|
|
842
848
|
style: ve({
|
|
843
|
-
visibility: i(
|
|
849
|
+
visibility: i(je) ? i(we) ? "visible" : "hidden" : "visible"
|
|
844
850
|
})
|
|
845
|
-
},
|
|
851
|
+
}, mt({ _: 2 }, [
|
|
846
852
|
l.$slots.menuIcon ? {
|
|
847
853
|
name: "menuIcon",
|
|
848
854
|
fn: C(({ isOpen: a, color: o }) => [
|
|
849
|
-
|
|
855
|
+
x(l.$slots, "menuIcon", H(J({ isOpen: a, color: o })), void 0, !0)
|
|
850
856
|
]),
|
|
851
857
|
key: "0"
|
|
852
858
|
} : void 0,
|
|
853
859
|
l.$slots.optionTooltip ? {
|
|
854
860
|
name: "optionTooltip",
|
|
855
861
|
fn: C(() => [
|
|
856
|
-
|
|
862
|
+
x(l.$slots, "optionTooltip", {}, void 0, !0)
|
|
857
863
|
]),
|
|
858
864
|
key: "1"
|
|
859
865
|
} : void 0,
|
|
860
866
|
l.$slots.optionPdf ? {
|
|
861
867
|
name: "optionPdf",
|
|
862
868
|
fn: C(() => [
|
|
863
|
-
|
|
869
|
+
x(l.$slots, "optionPdf", {}, void 0, !0)
|
|
864
870
|
]),
|
|
865
871
|
key: "2"
|
|
866
872
|
} : void 0,
|
|
867
873
|
l.$slots.optionCsv ? {
|
|
868
874
|
name: "optionCsv",
|
|
869
875
|
fn: C(() => [
|
|
870
|
-
|
|
876
|
+
x(l.$slots, "optionCsv", {}, void 0, !0)
|
|
871
877
|
]),
|
|
872
878
|
key: "3"
|
|
873
879
|
} : void 0,
|
|
874
880
|
l.$slots.optionImg ? {
|
|
875
881
|
name: "optionImg",
|
|
876
882
|
fn: C(() => [
|
|
877
|
-
|
|
883
|
+
x(l.$slots, "optionImg", {}, void 0, !0)
|
|
878
884
|
]),
|
|
879
885
|
key: "4"
|
|
880
886
|
} : void 0,
|
|
881
887
|
l.$slots.optionTable ? {
|
|
882
888
|
name: "optionTable",
|
|
883
889
|
fn: C(() => [
|
|
884
|
-
|
|
890
|
+
x(l.$slots, "optionTable", {}, void 0, !0)
|
|
885
891
|
]),
|
|
886
892
|
key: "5"
|
|
887
893
|
} : void 0,
|
|
888
894
|
l.$slots.optionLabels ? {
|
|
889
895
|
name: "optionLabels",
|
|
890
896
|
fn: C(() => [
|
|
891
|
-
|
|
897
|
+
x(l.$slots, "optionLabels", {}, void 0, !0)
|
|
892
898
|
]),
|
|
893
899
|
key: "6"
|
|
894
900
|
} : void 0,
|
|
895
901
|
l.$slots.optionFullscreen ? {
|
|
896
902
|
name: "optionFullscreen",
|
|
897
903
|
fn: C(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
898
|
-
|
|
904
|
+
x(l.$slots, "optionFullscreen", H(J({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
899
905
|
]),
|
|
900
906
|
key: "7"
|
|
901
907
|
} : void 0,
|
|
902
908
|
l.$slots.optionAnnotator ? {
|
|
903
909
|
name: "optionAnnotator",
|
|
904
910
|
fn: C(({ toggleAnnotator: a, isAnnotator: o }) => [
|
|
905
|
-
|
|
911
|
+
x(l.$slots, "optionAnnotator", H(J({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
|
|
906
912
|
]),
|
|
907
913
|
key: "8"
|
|
908
914
|
} : void 0
|
|
909
|
-
]), 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"])) :
|
|
915
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : k("", !0),
|
|
910
916
|
(u(), r("svg", {
|
|
911
917
|
ref_key: "svgRef",
|
|
912
918
|
ref: ae,
|
|
913
|
-
xmlns: i(
|
|
919
|
+
xmlns: i(pl),
|
|
914
920
|
class: M({
|
|
915
921
|
"vue-data-ui-fullscreen--on": G.value,
|
|
916
922
|
"vue-data-ui-fulscreen--off": !G.value,
|
|
917
923
|
"vue-data-ui-svg": !0
|
|
918
924
|
}),
|
|
919
925
|
viewBox: `0 0 ${h.value.width <= 0 ? 1e-3 : h.value.width} ${h.value.height < 0 ? 1e-3 : h.value.height}`,
|
|
920
|
-
style: ve(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${
|
|
926
|
+
style: ve(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${et.value.css}`)
|
|
921
927
|
}, [
|
|
922
928
|
p("g", {
|
|
923
929
|
ref_key: "G",
|
|
924
|
-
ref:
|
|
930
|
+
ref: Te,
|
|
925
931
|
class: "vue-data-ui-g"
|
|
926
932
|
}, [
|
|
927
|
-
|
|
933
|
+
Ve(i(zt)),
|
|
928
934
|
l.$slots["chart-background"] ? (u(), r("foreignObject", {
|
|
929
935
|
key: 0,
|
|
930
936
|
x: 0,
|
|
@@ -935,33 +941,33 @@ const Nl = ["id"], Fl = ["id"], Ol = ["xmlns", "viewBox"], Sl = ["width", "heigh
|
|
|
935
941
|
pointerEvents: "none"
|
|
936
942
|
}
|
|
937
943
|
}, [
|
|
938
|
-
|
|
939
|
-
], 8,
|
|
944
|
+
x(l.$slots, "chart-background", {}, void 0, !0)
|
|
945
|
+
], 8, Dl)) : k("", !0),
|
|
940
946
|
p("defs", null, [
|
|
941
|
-
(u(!0), r(A, null, T(
|
|
947
|
+
(u(!0), r(A, null, T(vt.value, (a, o) => (u(), r("radialGradient", {
|
|
942
948
|
id: `radial_${f.value}_${o}`
|
|
943
949
|
}, [
|
|
944
|
-
s[
|
|
950
|
+
s[4] || (s[4] = p("stop", {
|
|
945
951
|
offset: "0%",
|
|
946
952
|
"stop-color": "#FFFFFF",
|
|
947
953
|
"stop-opacity": "0"
|
|
948
954
|
}, null, -1)),
|
|
949
955
|
p("stop", {
|
|
950
|
-
offset: `${(1 - oe.value /
|
|
951
|
-
"stop-color": i(
|
|
956
|
+
offset: `${(1 - oe.value / dt.value[o]) * 100}%`,
|
|
957
|
+
"stop-color": i(yl)("#FFFFFF", 0),
|
|
952
958
|
"stop-opacity": "0"
|
|
953
|
-
}, null, 8,
|
|
959
|
+
}, null, 8, Vl),
|
|
954
960
|
p("stop", {
|
|
955
|
-
offset: `${(1 - oe.value /
|
|
961
|
+
offset: `${(1 - oe.value / dt.value[o] / 2) * 100}%`,
|
|
956
962
|
"stop-color": "#FFFFFF",
|
|
957
963
|
"stop-opacity": e.value.style.chart.gradientIntensity / 100
|
|
958
|
-
}, null, 8,
|
|
959
|
-
s[
|
|
964
|
+
}, null, 8, zl),
|
|
965
|
+
s[5] || (s[5] = p("stop", {
|
|
960
966
|
offset: "100%",
|
|
961
967
|
"stop-color": "#FFFFFF",
|
|
962
968
|
"stop-opacity": "0"
|
|
963
969
|
}, null, -1))
|
|
964
|
-
], 8,
|
|
970
|
+
], 8, Pl))), 256))
|
|
965
971
|
]),
|
|
966
972
|
p("defs", null, [
|
|
967
973
|
p("filter", {
|
|
@@ -975,12 +981,12 @@ const Nl = ["id"], Fl = ["id"], Ol = ["xmlns", "viewBox"], Sl = ["width", "heigh
|
|
|
975
981
|
in: "SourceGraphic",
|
|
976
982
|
stdDeviation: 2,
|
|
977
983
|
id: `blur_std_${f.value}`
|
|
978
|
-
}, null, 8,
|
|
979
|
-
s[
|
|
984
|
+
}, null, 8, Bl),
|
|
985
|
+
s[6] || (s[6] = p("feColorMatrix", {
|
|
980
986
|
type: "saturate",
|
|
981
987
|
values: "0"
|
|
982
988
|
}, null, -1))
|
|
983
|
-
], 8,
|
|
989
|
+
], 8, Ml),
|
|
984
990
|
p("filter", {
|
|
985
991
|
id: `shadow_${f.value}`,
|
|
986
992
|
"color-interpolation-filters": "sRGB"
|
|
@@ -991,8 +997,8 @@ const Nl = ["id"], Fl = ["id"], Ol = ["xmlns", "viewBox"], Sl = ["width", "heigh
|
|
|
991
997
|
stdDeviation: "10",
|
|
992
998
|
"flood-opacity": "0.5",
|
|
993
999
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
994
|
-
}, null, 8,
|
|
995
|
-
], 8,
|
|
1000
|
+
}, null, 8, Rl)
|
|
1001
|
+
], 8, El)
|
|
996
1002
|
]),
|
|
997
1003
|
p("defs", null, [
|
|
998
1004
|
(u(!0), r(A, null, T(q.value, (a, o) => (u(), r("path", {
|
|
@@ -1000,7 +1006,7 @@ const Nl = ["id"], Fl = ["id"], Ol = ["xmlns", "viewBox"], Sl = ["width", "heigh
|
|
|
1000
1006
|
id: `path-full-${o}-${f.value}`,
|
|
1001
1007
|
d: a.fullCirclePath,
|
|
1002
1008
|
fill: "none"
|
|
1003
|
-
}, null, 8,
|
|
1009
|
+
}, null, 8, Ul))), 128))
|
|
1004
1010
|
]),
|
|
1005
1011
|
(u(!0), r(A, null, T(q.value, (a, o) => (u(), r("g", null, [
|
|
1006
1012
|
a.hasData ? (u(!0), r(A, { key: 0 }, T(a.donut.filter((t) => !t.ghost), (t, n) => (u(), r("g", null, [
|
|
@@ -1010,8 +1016,8 @@ const Nl = ["id"], Fl = ["id"], Ol = ["xmlns", "viewBox"], Sl = ["width", "heigh
|
|
|
1010
1016
|
fill: t.color,
|
|
1011
1017
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1012
1018
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
1013
|
-
filter:
|
|
1014
|
-
}, null, 8,
|
|
1019
|
+
filter: ht(t, n)
|
|
1020
|
+
}, null, 8, Gl)
|
|
1015
1021
|
]))), 256)) : (u(!0), r(A, { key: 1 }, T(a.skeleton, (t, n) => (u(), r("g", null, [
|
|
1016
1022
|
p("path", {
|
|
1017
1023
|
class: "vue-ui-donut-arc-path",
|
|
@@ -1019,20 +1025,20 @@ const Nl = ["id"], Fl = ["id"], Ol = ["xmlns", "viewBox"], Sl = ["width", "heigh
|
|
|
1019
1025
|
fill: t.color,
|
|
1020
1026
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1021
1027
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
1022
|
-
}, null, 8,
|
|
1028
|
+
}, null, 8, Yl)
|
|
1023
1029
|
]))), 256))
|
|
1024
1030
|
]))), 256)),
|
|
1025
|
-
e.value.style.chart.useGradient ? (u(), r("g",
|
|
1026
|
-
(u(!0), r(A, null, T(
|
|
1031
|
+
e.value.style.chart.useGradient ? (u(), r("g", Wl, [
|
|
1032
|
+
(u(!0), r(A, null, T(vt.value, (a, o) => (u(), r("g", null, [
|
|
1027
1033
|
p("path", {
|
|
1028
1034
|
d: a.donut.arcSlice,
|
|
1029
1035
|
fill: `url(#radial_${f.value}_${o})`,
|
|
1030
1036
|
stroke: "transparent",
|
|
1031
1037
|
"stroke-width": "0"
|
|
1032
|
-
}, null, 8,
|
|
1038
|
+
}, null, 8, Xl)
|
|
1033
1039
|
]))), 256))
|
|
1034
|
-
])) :
|
|
1035
|
-
e.value.style.chart.layout.labels.dataLabels.showDonutName ? (u(), r("g",
|
|
1040
|
+
])) : k("", !0),
|
|
1041
|
+
e.value.style.chart.layout.labels.dataLabels.showDonutName ? (u(), r("g", ql, [
|
|
1036
1042
|
e.value.style.chart.layout.labels.dataLabels.curvedDonutName ? (u(!0), r(A, { key: 0 }, T(q.value, (a, o) => (u(), r("g", null, [
|
|
1037
1043
|
(u(!0), r(A, null, T(a.donut, (t, n) => (u(), r("g", null, [
|
|
1038
1044
|
n === 0 && h.value.width && h.value.height ? (u(), r("text", {
|
|
@@ -1051,11 +1057,11 @@ const Nl = ["id"], Fl = ["id"], Ol = ["xmlns", "viewBox"], Sl = ["width", "heigh
|
|
|
1051
1057
|
method: "align",
|
|
1052
1058
|
spacing: "auto",
|
|
1053
1059
|
side: "right"
|
|
1054
|
-
},
|
|
1060
|
+
}, N(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? i(Lt)({
|
|
1055
1061
|
source: a.name,
|
|
1056
1062
|
length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
|
|
1057
|
-
}) : a.name), 9,
|
|
1058
|
-
], 10,
|
|
1063
|
+
}) : a.name), 9, Jl)
|
|
1064
|
+
], 10, Hl)) : k("", !0)
|
|
1059
1065
|
]))), 256))
|
|
1060
1066
|
]))), 256)) : (u(!0), r(A, { key: 1 }, T(q.value, (a, o) => (u(), r("g", null, [
|
|
1061
1067
|
(u(!0), r(A, null, T(a.donut, (t, n) => (u(), r("g", null, [
|
|
@@ -1068,28 +1074,28 @@ const Nl = ["id"], Fl = ["id"], Ol = ["xmlns", "viewBox"], Sl = ["width", "heigh
|
|
|
1068
1074
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1069
1075
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
|
|
1070
1076
|
fill: e.value.style.chart.layout.labels.dataLabels.color
|
|
1071
|
-
},
|
|
1077
|
+
}, N(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? i(Lt)({
|
|
1072
1078
|
source: a.name,
|
|
1073
1079
|
length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
|
|
1074
|
-
}) : a.name), 11,
|
|
1080
|
+
}) : a.name), 11, Kl)) : k("", !0)
|
|
1075
1081
|
]))), 256))
|
|
1076
1082
|
]))), 256))
|
|
1077
|
-
])) :
|
|
1078
|
-
e.value.style.chart.layout.labels.dataLabels.show ? (u(), r("g",
|
|
1083
|
+
])) : k("", !0),
|
|
1084
|
+
e.value.style.chart.layout.labels.dataLabels.show ? (u(), r("g", Ql, [
|
|
1079
1085
|
(u(!0), r(A, null, T(q.value, (a, o) => (u(), r("g", null, [
|
|
1080
1086
|
(u(!0), r(A, null, T(a.donut.filter((t) => !t.ghost), (t, n) => (u(), r("g", {
|
|
1081
|
-
filter:
|
|
1087
|
+
filter: ht(t, n)
|
|
1082
1088
|
}, [
|
|
1083
|
-
|
|
1089
|
+
wt(p("text", {
|
|
1084
1090
|
class: M({ animated: e.value.useCssAnimation }),
|
|
1085
|
-
opacity:
|
|
1091
|
+
opacity: Le(t) ? 1 : 0,
|
|
1086
1092
|
"text-anchor": i(Q)(t, !0).anchor,
|
|
1087
1093
|
x: i(Q)(
|
|
1088
1094
|
t,
|
|
1089
1095
|
!1,
|
|
1090
1096
|
e.value.style.chart.layout.labels.dataLabels.offsetX
|
|
1091
1097
|
).x || 0,
|
|
1092
|
-
y: i(
|
|
1098
|
+
y: i(Ee)(
|
|
1093
1099
|
t,
|
|
1094
1100
|
e.value.style.chart.layout.labels.dataLabels.offsetY,
|
|
1095
1101
|
e.value.style.chart.layout.labels.dataLabels.offsetY
|
|
@@ -1097,26 +1103,26 @@ const Nl = ["id"], Fl = ["id"], Ol = ["xmlns", "viewBox"], Sl = ["width", "heigh
|
|
|
1097
1103
|
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
1098
1104
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1099
1105
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldPercentage ? "bold" : "normal"
|
|
1100
|
-
},
|
|
1106
|
+
}, N(i(F)({
|
|
1101
1107
|
v: t.proportion * 100,
|
|
1102
1108
|
s: "%",
|
|
1103
1109
|
r: e.value.style.chart.layout.labels.dataLabels.roundingPercentage
|
|
1104
|
-
})), 11,
|
|
1110
|
+
})), 11, jl), [
|
|
1105
1111
|
[
|
|
1106
|
-
|
|
1107
|
-
|
|
1112
|
+
kt,
|
|
1113
|
+
$.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage
|
|
1108
1114
|
]
|
|
1109
1115
|
]),
|
|
1110
|
-
|
|
1116
|
+
wt(p("text", {
|
|
1111
1117
|
class: M({ animated: e.value.useCssAnimation }),
|
|
1112
|
-
opacity:
|
|
1118
|
+
opacity: Le(t) ? 1 : 0,
|
|
1113
1119
|
"text-anchor": i(Q)(t, !0).anchor,
|
|
1114
1120
|
x: i(Q)(
|
|
1115
1121
|
t,
|
|
1116
1122
|
!1,
|
|
1117
1123
|
e.value.style.chart.layout.labels.dataLabels.offsetX
|
|
1118
1124
|
).x || 0,
|
|
1119
|
-
y: i(
|
|
1125
|
+
y: i(Ee)(
|
|
1120
1126
|
t,
|
|
1121
1127
|
e.value.style.chart.layout.labels.dataLabels.offsetY,
|
|
1122
1128
|
e.value.style.chart.layout.labels.dataLabels.offsetY
|
|
@@ -1124,23 +1130,23 @@ const Nl = ["id"], Fl = ["id"], Ol = ["xmlns", "viewBox"], Sl = ["width", "heigh
|
|
|
1124
1130
|
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
1125
1131
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1126
1132
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
|
|
1127
|
-
}, " (" +
|
|
1133
|
+
}, " (" + N(i(le)(
|
|
1128
1134
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
1129
1135
|
t.value,
|
|
1130
|
-
i(
|
|
1136
|
+
i(F)({
|
|
1131
1137
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1132
1138
|
v: t.value,
|
|
1133
1139
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
1134
1140
|
r: e.value.style.chart.layout.labels.dataLabels.roundingValue
|
|
1135
1141
|
}),
|
|
1136
1142
|
{ datapoint: t, seriesIndex: o, datapointIndex: n }
|
|
1137
|
-
)) + ") ", 11,
|
|
1143
|
+
)) + ") ", 11, ea), [
|
|
1138
1144
|
[
|
|
1139
|
-
|
|
1140
|
-
|
|
1145
|
+
kt,
|
|
1146
|
+
$.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue
|
|
1141
1147
|
]
|
|
1142
1148
|
]),
|
|
1143
|
-
|
|
1149
|
+
Le(t) && $.value.dataLabels.show && !e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue ? (u(), r("text", {
|
|
1144
1150
|
key: 0,
|
|
1145
1151
|
class: M({ animated: e.value.useCssAnimation }),
|
|
1146
1152
|
"text-anchor": i(Q)(t, !0).anchor,
|
|
@@ -1149,7 +1155,7 @@ const Nl = ["id"], Fl = ["id"], Ol = ["xmlns", "viewBox"], Sl = ["width", "heigh
|
|
|
1149
1155
|
!1,
|
|
1150
1156
|
e.value.style.chart.layout.labels.dataLabels.offsetX
|
|
1151
1157
|
).x || 0,
|
|
1152
|
-
y: i(
|
|
1158
|
+
y: i(Ee)(
|
|
1153
1159
|
t,
|
|
1154
1160
|
e.value.style.chart.layout.labels.dataLabels.offsetY,
|
|
1155
1161
|
e.value.style.chart.layout.labels.dataLabels.offsetY
|
|
@@ -1157,42 +1163,42 @@ const Nl = ["id"], Fl = ["id"], Ol = ["xmlns", "viewBox"], Sl = ["width", "heigh
|
|
|
1157
1163
|
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
1158
1164
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1159
1165
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
|
|
1160
|
-
},
|
|
1166
|
+
}, N(i(le)(
|
|
1161
1167
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
1162
1168
|
t.value,
|
|
1163
|
-
i(
|
|
1169
|
+
i(F)({
|
|
1164
1170
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1165
1171
|
v: t.value,
|
|
1166
1172
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
1167
1173
|
r: e.value.style.chart.layout.labels.dataLabels.roundingValue
|
|
1168
1174
|
}),
|
|
1169
1175
|
{ datapoint: t, seriesIndex: o, datapointIndex: n }
|
|
1170
|
-
)), 11,
|
|
1171
|
-
], 8,
|
|
1176
|
+
)), 11, ta)) : k("", !0)
|
|
1177
|
+
], 8, Zl))), 256))
|
|
1172
1178
|
]))), 256))
|
|
1173
|
-
])) :
|
|
1179
|
+
])) : k("", !0),
|
|
1174
1180
|
(u(!0), r(A, null, T(q.value, (a, o) => (u(), r("g", null, [
|
|
1175
1181
|
(u(!0), r(A, null, T(a.donut, (t, n) => (u(), r("g", null, [
|
|
1176
1182
|
p("path", {
|
|
1177
1183
|
d: t.arcSlice,
|
|
1178
1184
|
fill: pe.value === t.id ? e.value.style.chart.layout.donut.selectedColor : "transparent",
|
|
1179
|
-
onMouseenter: (v) =>
|
|
1185
|
+
onMouseenter: (v) => Xt({
|
|
1180
1186
|
datapoint: t,
|
|
1181
1187
|
seriesIndex: t.seriesIndex
|
|
1182
1188
|
}),
|
|
1183
|
-
onClick: (v) =>
|
|
1184
|
-
onMouseleave: (v) =>
|
|
1185
|
-
}, null, 40,
|
|
1189
|
+
onClick: (v) => Gt({ datapoint: t, index: n, seriesIndex: t.seriesIndex }),
|
|
1190
|
+
onMouseleave: (v) => Wt({ datapoint: t, seriesIndex: t.seriesIndex })
|
|
1191
|
+
}, null, 40, la)
|
|
1186
1192
|
]))), 256))
|
|
1187
1193
|
]))), 256)),
|
|
1188
|
-
|
|
1194
|
+
x(l.$slots, "svg", { svg: h.value }, void 0, !0)
|
|
1189
1195
|
], 512)
|
|
1190
|
-
], 14,
|
|
1191
|
-
l.$slots.watermark ? (u(), r("div",
|
|
1192
|
-
|
|
1193
|
-
])) :
|
|
1194
|
-
|
|
1195
|
-
show:
|
|
1196
|
+
], 14, Il)),
|
|
1197
|
+
l.$slots.watermark ? (u(), r("div", aa, [
|
|
1198
|
+
x(l.$slots, "watermark", H(J({ isPrinting: i(at) || i(ot) })), void 0, !0)
|
|
1199
|
+
])) : k("", !0),
|
|
1200
|
+
Ve(i(Ft), {
|
|
1201
|
+
show: $.value.showTooltip && he.value,
|
|
1196
1202
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1197
1203
|
color: e.value.style.chart.tooltip.color,
|
|
1198
1204
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -1205,22 +1211,22 @@ const Nl = ["id"], Fl = ["id"], Ol = ["xmlns", "viewBox"], Sl = ["width", "heigh
|
|
|
1205
1211
|
parent: I.value,
|
|
1206
1212
|
content: fe.value,
|
|
1207
1213
|
isFullscreen: G.value,
|
|
1208
|
-
isCustom: i(
|
|
1214
|
+
isCustom: i(_t)(e.value.style.chart.tooltip.customFormat),
|
|
1209
1215
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
1210
1216
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter
|
|
1211
1217
|
}, {
|
|
1212
1218
|
"tooltip-before": C(() => [
|
|
1213
|
-
|
|
1219
|
+
x(l.$slots, "tooltip-before", H(J({ ...Ce.value })), void 0, !0)
|
|
1214
1220
|
]),
|
|
1215
1221
|
"tooltip-after": C(() => [
|
|
1216
|
-
|
|
1222
|
+
x(l.$slots, "tooltip-after", H(J({ ...Ce.value })), void 0, !0)
|
|
1217
1223
|
]),
|
|
1218
1224
|
_: 3
|
|
1219
1225
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
|
|
1220
1226
|
p("div", {
|
|
1221
1227
|
id: `legend-bottom-${f.value}`
|
|
1222
|
-
}, null, 8,
|
|
1223
|
-
|
|
1228
|
+
}, null, 8, oa),
|
|
1229
|
+
Je.value ? (u(), B(ol, {
|
|
1224
1230
|
key: 5,
|
|
1225
1231
|
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${f.value}` : `#legend-bottom-${f.value}`
|
|
1226
1232
|
}, [
|
|
@@ -1228,80 +1234,80 @@ const Nl = ["id"], Fl = ["id"], Ol = ["xmlns", "viewBox"], Sl = ["width", "heigh
|
|
|
1228
1234
|
key: 0,
|
|
1229
1235
|
ref_key: "chartLegend",
|
|
1230
1236
|
ref: ye,
|
|
1231
|
-
class: M({ "vue-ui-nested-donuts-legend":
|
|
1237
|
+
class: M({ "vue-ui-nested-donuts-legend": _e.value.length > 1 })
|
|
1232
1238
|
}, [
|
|
1233
|
-
(u(!0), r(A, null, T(
|
|
1234
|
-
key: `legend_${o}_${
|
|
1239
|
+
(u(!0), r(A, null, T(_e.value, (a, o) => (u(), B(Ol, {
|
|
1240
|
+
key: `legend_${o}_${He.value}`,
|
|
1235
1241
|
legendSet: a,
|
|
1236
|
-
config:
|
|
1237
|
-
onClickMarker: s[0] || (s[0] = ({ legend: t }) =>
|
|
1242
|
+
config: qt.value,
|
|
1243
|
+
onClickMarker: s[0] || (s[0] = ({ legend: t }) => $e(t))
|
|
1238
1244
|
}, {
|
|
1239
1245
|
legendTitle: C(({ titleSet: t }) => [
|
|
1240
|
-
t[0] && t[0].arcOf ? (u(), r("div",
|
|
1246
|
+
t[0] && t[0].arcOf ? (u(), r("div", sa, N(t[0].arcOf), 1)) : k("", !0)
|
|
1241
1247
|
]),
|
|
1242
1248
|
item: C(({ legend: t, index: n }) => [
|
|
1243
1249
|
p("div", {
|
|
1244
|
-
onClick: (v) =>
|
|
1250
|
+
onClick: (v) => $e(t),
|
|
1245
1251
|
style: ve(`opacity:${L.value.includes(t.id) ? 0.5 : 1}`)
|
|
1246
|
-
},
|
|
1252
|
+
}, N(t.name) + N(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + N(e.value.style.chart.legend.showValue ? i(le)(
|
|
1247
1253
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
1248
1254
|
t.value,
|
|
1249
|
-
i(
|
|
1255
|
+
i(F)({
|
|
1250
1256
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1251
1257
|
v: t.value,
|
|
1252
1258
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
1253
1259
|
r: e.value.style.chart.legend.roundingValue
|
|
1254
1260
|
}),
|
|
1255
1261
|
{ datapoint: t, seriesIndex: n }
|
|
1256
|
-
) : "") + " " +
|
|
1262
|
+
) : "") + " " + N(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)({
|
|
1257
1263
|
v: t.value / t.total * 100,
|
|
1258
1264
|
s: "%",
|
|
1259
1265
|
r: e.value.style.chart.legend.roundingPercentage
|
|
1260
|
-
})}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13,
|
|
1266
|
+
})}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, ua)
|
|
1261
1267
|
]),
|
|
1262
1268
|
_: 1
|
|
1263
1269
|
}, 8, ["legendSet", "config"]))), 128))
|
|
1264
|
-
], 2)) :
|
|
1265
|
-
], 8, ["to"])) :
|
|
1266
|
-
e.value.style.chart.legend.show ?
|
|
1270
|
+
], 2)) : k("", !0)
|
|
1271
|
+
], 8, ["to"])) : k("", !0),
|
|
1272
|
+
e.value.style.chart.legend.show ? k("", !0) : (u(), r("div", {
|
|
1267
1273
|
key: 6,
|
|
1268
1274
|
ref_key: "chartLegend",
|
|
1269
1275
|
ref: ye
|
|
1270
1276
|
}, [
|
|
1271
|
-
|
|
1277
|
+
x(l.$slots, "legend", { legend: _e.value }, void 0, !0)
|
|
1272
1278
|
], 512)),
|
|
1273
1279
|
l.$slots.source ? (u(), r("div", {
|
|
1274
1280
|
key: 7,
|
|
1275
1281
|
ref_key: "source",
|
|
1276
|
-
ref:
|
|
1282
|
+
ref: Ye,
|
|
1277
1283
|
dir: "auto"
|
|
1278
1284
|
}, [
|
|
1279
|
-
|
|
1280
|
-
], 512)) :
|
|
1281
|
-
ce.value ? (u(), B(
|
|
1285
|
+
x(l.$slots, "source", {}, void 0, !0)
|
|
1286
|
+
], 512)) : k("", !0),
|
|
1287
|
+
ce.value ? (u(), B(sl(ee.value.component), ul({ key: 8 }, ee.value.props, {
|
|
1282
1288
|
ref_key: "tableUnit",
|
|
1283
1289
|
ref: j,
|
|
1284
|
-
onClose:
|
|
1285
|
-
}),
|
|
1290
|
+
onClose: bt
|
|
1291
|
+
}), mt({
|
|
1286
1292
|
content: C(() => [
|
|
1287
|
-
(u(), B(i(
|
|
1288
|
-
key: `table_${
|
|
1293
|
+
(u(), B(i(Dt), {
|
|
1294
|
+
key: `table_${qe.value}`,
|
|
1289
1295
|
colNames: ne.value.colNames,
|
|
1290
1296
|
head: ne.value.head,
|
|
1291
1297
|
body: ne.value.body,
|
|
1292
1298
|
config: ne.value.config,
|
|
1293
1299
|
title: e.value.table.useDialog ? "" : ee.value.title,
|
|
1294
1300
|
withCloseButton: !e.value.table.useDialog,
|
|
1295
|
-
onClose:
|
|
1301
|
+
onClose: bt
|
|
1296
1302
|
}, {
|
|
1297
1303
|
th: C(({ th: a }) => [
|
|
1298
1304
|
p("div", {
|
|
1299
1305
|
innerHTML: a,
|
|
1300
1306
|
style: { display: "flex", "align-items": "center" }
|
|
1301
|
-
}, null, 8,
|
|
1307
|
+
}, null, 8, na)
|
|
1302
1308
|
]),
|
|
1303
1309
|
td: C(({ td: a }) => [
|
|
1304
|
-
|
|
1310
|
+
$t(N(a.name || a), 1)
|
|
1305
1311
|
]),
|
|
1306
1312
|
_: 1
|
|
1307
1313
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
@@ -1311,7 +1317,7 @@ const Nl = ["id"], Fl = ["id"], Ol = ["xmlns", "viewBox"], Sl = ["width", "heigh
|
|
|
1311
1317
|
e.value.table.useDialog ? {
|
|
1312
1318
|
name: "title",
|
|
1313
1319
|
fn: C(() => [
|
|
1314
|
-
|
|
1320
|
+
$t(N(ee.value.title), 1)
|
|
1315
1321
|
]),
|
|
1316
1322
|
key: "0"
|
|
1317
1323
|
} : void 0,
|
|
@@ -1323,7 +1329,7 @@ const Nl = ["id"], Fl = ["id"], Ol = ["xmlns", "viewBox"], Sl = ["width", "heigh
|
|
|
1323
1329
|
class: "vue-ui-user-options-button",
|
|
1324
1330
|
onClick: s[1] || (s[1] = (a) => xe(e.value.userOptions.callbacks.csv))
|
|
1325
1331
|
}, [
|
|
1326
|
-
|
|
1332
|
+
Ve(i(St), {
|
|
1327
1333
|
name: "excel",
|
|
1328
1334
|
stroke: ee.value.props.color
|
|
1329
1335
|
}, null, 8, ["stroke"])
|
|
@@ -1331,11 +1337,11 @@ const Nl = ["id"], Fl = ["id"], Ol = ["xmlns", "viewBox"], Sl = ["width", "heigh
|
|
|
1331
1337
|
]),
|
|
1332
1338
|
key: "1"
|
|
1333
1339
|
} : void 0
|
|
1334
|
-
]), 1040)) :
|
|
1335
|
-
i(
|
|
1336
|
-
], 46,
|
|
1340
|
+
]), 1040)) : k("", !0),
|
|
1341
|
+
i(ge) ? (u(), B(Cl, { key: 9 })) : k("", !0)
|
|
1342
|
+
], 46, Fl));
|
|
1337
1343
|
}
|
|
1338
|
-
},
|
|
1344
|
+
}, ka = /* @__PURE__ */ Nl(ra, [["__scopeId", "data-v-43ccbed4"]]);
|
|
1339
1345
|
export {
|
|
1340
|
-
|
|
1346
|
+
ka as default
|
|
1341
1347
|
};
|