vue-data-ui 3.0.0-next.27 → 3.0.0-next.28
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-RGDVmFSH.js → Arrow-FEiXAF1f.js} +1 -1
- package/dist/{BaseDraggableDialog-2MH5hxMc.js → BaseDraggableDialog-B0E68Ss_.js} +2 -2
- package/dist/{BaseIcon-DLJ5Lzvf.js → BaseIcon-CNk8ZQxC.js} +1 -1
- package/dist/{ColorPicker-uH4pBeoc.js → ColorPicker-Bh0sQqJU.js} +2 -2
- package/dist/{DataTable-DWXGn13M.js → DataTable-BtWOpycK.js} +2 -2
- package/dist/{Legend-XvLWu-U4.js → Legend-DTMU8MPG.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DY6-8nWM.js → NonSvgPenAndPaper-DFdkMS2K.js} +3 -3
- package/dist/{PackageVersion-CcyOrmqr.js → PackageVersion-BcAEQLLi.js} +1 -1
- package/dist/{PenAndPaper-S1h1sM_v.js → PenAndPaper-CmO7bEfi.js} +3 -3
- package/dist/{Shape-B2NNkVEU.js → Shape-CQVlnhqo.js} +1 -1
- package/dist/{Slicer-C2128jWm.js → Slicer-DVW32UTi.js} +2 -2
- package/dist/{SparkTooltip-B0IgrAiC.js → SparkTooltip-BKSFRids.js} +1 -1
- package/dist/{Title-BT7bS0eb.js → Title-CGN9QiYI.js} +1 -1
- package/dist/{Tooltip-CbaafXw_.js → Tooltip-mMwokTkO.js} +1 -1
- package/dist/{UserOptions-C9lB05jb.js → UserOptions-DYn2297n.js} +2 -2
- package/dist/{dom-to-png-B5f_cRVB.js → dom-to-png-BVzHEl2w.js} +1 -1
- package/dist/{img-BScthXJW.js → img-ChuzqrF3.js} +1 -1
- package/dist/{index-DTJkgcxh.js → index-DwurWOmm.js} +14 -1
- package/dist/{pdf-DEfty6-G.js → pdf-C9A0Wlta.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +5 -0
- package/dist/types/vue-data-ui.d.ts +5 -0
- package/dist/{useNestedProp-DvwKj8Zn.js → useNestedProp-CFAjw-uI.js} +1 -1
- package/dist/{usePrinter-CbokYjoB.js → usePrinter-BvsDO5CU.js} +2 -2
- package/dist/{vue-data-ui-BubXK-EN.js → vue-data-ui-DnH55d6o.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BgbiwMsJ.js → vue-ui-3d-bar-BIPJDf4a.js} +6 -6
- package/dist/{vue-ui-accordion-BDuLBbkX.js → vue-ui-accordion-C7ba8AVe.js} +3 -3
- package/dist/{vue-ui-age-pyramid-B8esFXAj.js → vue-ui-age-pyramid-CIg_Ehbq.js} +6 -6
- package/dist/{vue-ui-annotator-BM2Fxwyn.js → vue-ui-annotator-C3nqKGzo.js} +2 -2
- package/dist/{vue-ui-bullet-C5r2tlAw.js → vue-ui-bullet-DK3bEHJG.js} +7 -7
- package/dist/{vue-ui-candlestick-DEqKEVdy.js → vue-ui-candlestick-HXpLcsDU.js} +7 -7
- package/dist/{vue-ui-carousel-table-CHABZSa7.js → vue-ui-carousel-table-BnplX7KO.js} +4 -4
- package/dist/{vue-ui-chestnut-CKmXKQ61.js → vue-ui-chestnut-sQskMYei.js} +5 -5
- package/dist/{vue-ui-chord-DW2ndivp.js → vue-ui-chord-CT-viUg5.js} +8 -8
- package/dist/{vue-ui-circle-pack-BKlgiMRS.js → vue-ui-circle-pack-BEjSuhTw.js} +6 -6
- package/dist/{vue-ui-cursor-BpctNjDR.js → vue-ui-cursor-DP40Z3Pg.js} +2 -2
- package/dist/{vue-ui-dashboard-C304-EeY.js → vue-ui-dashboard-CoukhCPg.js} +62 -62
- package/dist/{vue-ui-digits-anpApSWe.js → vue-ui-digits-FLazCL03.js} +2 -2
- package/dist/{vue-ui-donut-JzjQTiDx.js → vue-ui-donut-C_f5VCo9.js} +8 -8
- package/dist/{vue-ui-donut-evolution-nQbgWXs5.js → vue-ui-donut-evolution-C8eGM4Wc.js} +8 -8
- package/dist/{vue-ui-dumbbell-BgnmrlkA.js → vue-ui-dumbbell-Bcy0H0ej.js} +7 -7
- package/dist/{vue-ui-flow-DEPrQA-w.js → vue-ui-flow-PBHoj24k.js} +7 -7
- package/dist/{vue-ui-funnel-ojf0srk6.js → vue-ui-funnel--s2L_i_f.js} +6 -6
- package/dist/{vue-ui-galaxy-CYP_NOuc.js → vue-ui-galaxy-5iik4XcF.js} +5 -5
- package/dist/{vue-ui-gauge-PZkGA3xT.js → vue-ui-gauge-Cc8XdZEO.js} +6 -6
- package/dist/{vue-ui-gizmo-BVEf1l02.js → vue-ui-gizmo-D9YdWF0U.js} +3 -3
- package/dist/{vue-ui-heatmap-C0QKWdB2.js → vue-ui-heatmap-CNuiN6e-.js} +7 -7
- package/dist/{vue-ui-history-plot-DL6znOA2.js → vue-ui-history-plot-DTv_F82N.js} +7 -7
- package/dist/{vue-ui-kpi-k901VoIN.js → vue-ui-kpi-pLPQLsiF.js} +3 -3
- package/dist/{vue-ui-mini-loader-dO16jdj9.js → vue-ui-mini-loader-CDYKGa7j.js} +2 -2
- package/dist/{vue-ui-molecule-CgBLfrXa.js → vue-ui-molecule-BV9JjR8F.js} +5 -5
- package/dist/{vue-ui-mood-radar-BxwR2Ez7.js → vue-ui-mood-radar-Cknw3hKt.js} +7 -7
- package/dist/{vue-ui-nested-donuts-BIjRulQt.js → vue-ui-nested-donuts-C85ZFJ_q.js} +503 -501
- package/dist/{vue-ui-onion-CkoPdA0-.js → vue-ui-onion-C9cZNyC3.js} +7 -7
- package/dist/{vue-ui-parallel-coordinate-plot-CHQ4Brih.js → vue-ui-parallel-coordinate-plot-D7H2zhCF.js} +8 -8
- package/dist/{vue-ui-quadrant-CEQTH_Vf.js → vue-ui-quadrant-Cfvu8-h1.js} +8 -8
- package/dist/{vue-ui-quick-chart-DIoqKBCM.js → vue-ui-quick-chart-B3d2FDBP.js} +6 -6
- package/dist/{vue-ui-radar-Cft9wyK8.js → vue-ui-radar-CQcjyxwQ.js} +7 -7
- package/dist/{vue-ui-rating-OARiI9ot.js → vue-ui-rating-DEDPYi2F.js} +2 -2
- package/dist/{vue-ui-relation-circle-B-Zb1LQY.js → vue-ui-relation-circle-swVQdvQX.js} +6 -6
- package/dist/{vue-ui-ridgeline-v7NEDfRs.js → vue-ui-ridgeline-DU85JJKL.js} +8 -8
- package/dist/{vue-ui-rings-BQwfTTzr.js → vue-ui-rings-CwVJAUv8.js} +8 -8
- package/dist/{vue-ui-scatter-CHQCbV8M.js → vue-ui-scatter-Dqltdynp.js} +8 -8
- package/dist/{vue-ui-skeleton-CHJxsFpK.js → vue-ui-skeleton-C8QYEKxX.js} +3 -3
- package/dist/{vue-ui-smiley-CsWC9IZ1.js → vue-ui-smiley-BiPXfmqf.js} +2 -2
- package/dist/{vue-ui-spark-trend-BuamubwE.js → vue-ui-spark-trend-DkyWiTg0.js} +3 -3
- package/dist/{vue-ui-sparkbar-BHGRAUXV.js → vue-ui-sparkbar-CEjHYHRg.js} +3 -3
- package/dist/{vue-ui-sparkgauge-DUnltuDi.js → vue-ui-sparkgauge-CqsLMGbd.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-BMedlapo.js → vue-ui-sparkhistogram-BQeOmWdJ.js} +4 -4
- package/dist/{vue-ui-sparkline-BHNwaMiS.js → vue-ui-sparkline-BzskaXWk.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-vRQz_uQJ.js → vue-ui-sparkstackbar-WMpYFqmu.js} +3 -3
- package/dist/{vue-ui-stackbar-CQ6dTUhn.js → vue-ui-stackbar-BvA1pWBy.js} +9 -9
- package/dist/{vue-ui-strip-plot-CO2CPtr7.js → vue-ui-strip-plot-sPsAx0ly.js} +7 -7
- package/dist/{vue-ui-table-BLsZesaa.js → vue-ui-table-DFIQk2V5.js} +3 -3
- package/dist/{vue-ui-table-heatmap-CGDBekDd.js → vue-ui-table-heatmap-DP9OWEX0.js} +5 -5
- package/dist/{vue-ui-table-sparkline-DDBnNFfS.js → vue-ui-table-sparkline-DQBQeejJ.js} +4 -4
- package/dist/{vue-ui-thermometer-DCgjIlYn.js → vue-ui-thermometer-BfPYbE4s.js} +6 -6
- package/dist/{vue-ui-timer-BUTGgiXL.js → vue-ui-timer-B7vfnEvV.js} +5 -5
- package/dist/{vue-ui-tiremarks-Dbwy0DLv.js → vue-ui-tiremarks-BBSUpVrJ.js} +6 -6
- package/dist/{vue-ui-treemap-fZnaJFLV.js → vue-ui-treemap-BKrRAwDR.js} +8 -8
- package/dist/{vue-ui-vertical-bar-CC1RSDNH.js → vue-ui-vertical-bar-BcaY2dnD.js} +9 -9
- package/dist/{vue-ui-waffle-yCHIWPVz.js → vue-ui-waffle-CBPTLkE9.js} +8 -8
- package/dist/{vue-ui-wheel-BgCEnXux.js → vue-ui-wheel-CzCd72Xa.js} +6 -6
- package/dist/{vue-ui-word-cloud-DdYN7hGc.js → vue-ui-word-cloud-DQrrAfUw.js} +6 -6
- package/dist/{vue-ui-world-Drt14jLg.js → vue-ui-world-CSnvYru5.js} +6 -6
- package/dist/{vue-ui-xy-E2hScHc-.js → vue-ui-xy-D1ZyohhW.js} +8 -8
- package/dist/{vue-ui-xy-canvas-DYaSIflg.js → vue-ui-xy-canvas-CQWhSrqq.js} +8 -8
- package/package.json +1 -1
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { defineAsyncComponent as U, 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
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { u as
|
|
12
|
-
import { _ as
|
|
13
|
-
const
|
|
1
|
+
import { defineAsyncComponent as U, computed as C, ref as h, toRefs as Wt, watch as re, onMounted as qt, shallowRef as ct, onBeforeUnmount as Ht, createElementBlock as r, openBlock as n, unref as i, normalizeStyle as ie, normalizeClass as z, createBlock as G, createCommentVNode as $, createVNode as ht, createSlots as Jt, withCtx as x, renderSlot as _, normalizeProps as H, guardReactiveProps as J, createElementVNode as y, Fragment as A, renderList as T, toDisplayString as S, withDirectives as ft, vShow as yt, createTextVNode as Kt, nextTick as pt } from "vue";
|
|
2
|
+
import { u as Qt, c as Zt, A as jt, t as ea, p as Ie, a as ta, C as Fe, o as aa, e as K, b as la, G as M, d as oa, m as Ve, f as O, X as sa, s as ua, L as bt, k as Pe, n as Q, i as j, x as gt, q as na, r as ra, y as ia, T as mt, v as De } from "./index-DwurWOmm.js";
|
|
3
|
+
import { t as da, u as va } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as wt } from "./useNestedProp-CFAjw-uI.js";
|
|
5
|
+
import { u as ca } from "./usePrinter-BvsDO5CU.js";
|
|
6
|
+
import { u as ha } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as fa } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import ya from "./Title-CGN9QiYI.js";
|
|
9
|
+
import pa from "./Legend-DTMU8MPG.js";
|
|
10
|
+
import ba from "./img-ChuzqrF3.js";
|
|
11
|
+
import { u as ga, B as ma } from "./BaseScanner-DIK2NTdp.js";
|
|
12
|
+
import { _ as wa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["id"], xa = ["offset", "stop-color"], _a = ["offset", "stop-opacity"], Aa = ["id"], Ta = ["id"], Na = ["id"], Oa = ["flood-color"], Sa = ["id", "d"], Ia = ["d", "fill", "stroke", "stroke-width", "filter"], Fa = ["d", "fill", "stroke", "stroke-width"], Va = { key: 1 }, Pa = ["d", "fill"], Da = { key: 2 }, za = ["font-size", "font-weight", "fill", "dy"], Ma = ["href"], Ea = ["x", "y", "font-size", "font-weight", "fill"], Ba = { key: 3 }, Ra = ["filter"], Ua = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], Ga = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], Ya = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], Xa = ["d", "fill", "onMouseenter", "onClick", "onMouseleave"], Wa = {
|
|
14
14
|
key: 4,
|
|
15
15
|
class: "vue-data-ui-watermark"
|
|
16
|
-
},
|
|
16
|
+
}, qa = {
|
|
17
17
|
key: 0,
|
|
18
18
|
class: "vue-ui-nested-donuts-legend-title"
|
|
19
|
-
},
|
|
19
|
+
}, Ha = ["onClick"], Ja = ["innerHTML"], Ka = {
|
|
20
20
|
__name: "vue-ui-nested-donuts",
|
|
21
21
|
props: {
|
|
22
22
|
config: {
|
|
@@ -33,21 +33,21 @@ const ml = ["id"], wl = ["xmlns", "viewBox"], $l = ["width", "height"], kl = ["i
|
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
emits: ["selectLegend", "selectDatapoint"],
|
|
36
|
-
setup(
|
|
37
|
-
const
|
|
38
|
-
U(() => import("./vue-ui-skeleton-
|
|
39
|
-
const
|
|
36
|
+
setup($t, { expose: kt, emit: Lt }) {
|
|
37
|
+
const Ct = U(() => import("./vue-ui-accordion-C7ba8AVe.js")), xt = U(() => import("./DataTable-BtWOpycK.js")), _t = U(() => import("./PackageVersion-BcAEQLLi.js")), At = U(() => import("./PenAndPaper-CmO7bEfi.js"));
|
|
38
|
+
U(() => import("./vue-ui-skeleton-C8QYEKxX.js"));
|
|
39
|
+
const Tt = U(() => import("./Tooltip-mMwokTkO.js")), Nt = U(() => import("./UserOptions-DYn2297n.js")), { vue_ui_nested_donuts: Ot } = Qt(), g = $t, de = C({
|
|
40
40
|
get() {
|
|
41
|
-
return !!
|
|
41
|
+
return !!g.dataset && g.dataset.length;
|
|
42
42
|
},
|
|
43
|
-
set(
|
|
44
|
-
return
|
|
43
|
+
set(a) {
|
|
44
|
+
return a;
|
|
45
45
|
}
|
|
46
|
-
}), p = h(
|
|
47
|
-
function
|
|
48
|
-
Y.value =
|
|
46
|
+
}), p = h(Zt()), ve = h(!1), ce = h(""), he = h(null), ze = h(0), V = h(null), Me = h(null), fe = h(null), Ee = h(null), Be = h(null), Re = h(0), Ue = h(0), Ge = h(0), E = h(!0), B = h([]), Z = h([]), Y = h(!1);
|
|
47
|
+
function Ye(a) {
|
|
48
|
+
Y.value = a, ze.value += 1;
|
|
49
49
|
}
|
|
50
|
-
const e = h(ge()),
|
|
50
|
+
const e = h(ge()), Xe = {
|
|
51
51
|
name: "",
|
|
52
52
|
series: [
|
|
53
53
|
{
|
|
@@ -66,17 +66,17 @@ const ml = ["id"], wl = ["xmlns", "viewBox"], $l = ["width", "height"], kl = ["i
|
|
|
66
66
|
color: "#CACACA"
|
|
67
67
|
}
|
|
68
68
|
]
|
|
69
|
-
}, { loading: ye, FINAL_DATASET: R, manualLoading: pe } =
|
|
70
|
-
...
|
|
69
|
+
}, { loading: ye, FINAL_DATASET: R, manualLoading: pe } = ga({
|
|
70
|
+
...Wt(g),
|
|
71
71
|
FINAL_CONFIG: e,
|
|
72
72
|
prepareConfig: ge,
|
|
73
73
|
callback: () => {
|
|
74
74
|
Promise.resolve().then(async () => {
|
|
75
|
-
await
|
|
75
|
+
await Je();
|
|
76
76
|
});
|
|
77
77
|
},
|
|
78
|
-
skeletonDataset: [
|
|
79
|
-
skeletonConfig:
|
|
78
|
+
skeletonDataset: [Xe, Xe],
|
|
79
|
+
skeletonConfig: jt({
|
|
80
80
|
defaultConfig: e.value,
|
|
81
81
|
userConfig: {
|
|
82
82
|
useCssAnimation: !1,
|
|
@@ -102,57 +102,58 @@ const ml = ["id"], wl = ["xmlns", "viewBox"], $l = ["width", "height"], kl = ["i
|
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
})
|
|
105
|
-
}), { userOptionsVisible: be, setUserOptionsVisibility:
|
|
105
|
+
}), { userOptionsVisible: be, setUserOptionsVisibility: We, keepUserOptionState: qe } = ha({ config: e.value }), { svgRef: ee } = fa({
|
|
106
106
|
config: e.value.style.chart.title
|
|
107
107
|
});
|
|
108
108
|
function ge() {
|
|
109
|
-
const
|
|
110
|
-
userConfig:
|
|
111
|
-
defaultConfig:
|
|
109
|
+
const a = wt({
|
|
110
|
+
userConfig: g.config,
|
|
111
|
+
defaultConfig: Ot
|
|
112
112
|
});
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
113
|
+
let s = {};
|
|
114
|
+
return a.theme ? s = {
|
|
115
|
+
...wt({
|
|
116
|
+
userConfig: ta.vue_ui_nested_donuts[a.theme] || g.config,
|
|
117
|
+
defaultConfig: a
|
|
117
118
|
}),
|
|
118
|
-
customPalette:
|
|
119
|
-
} :
|
|
119
|
+
customPalette: ea[a.theme] || Ie
|
|
120
|
+
} : s = a, g.config && Fe(g.config, "events.datapointEnter") ? s.events.datapointEnter = g.config.events.datapointEnter : s.events.datapointEnter = null, g.config && Fe(g.config, "events.datapointLeave") ? s.events.datapointLeave = g.config.events.datapointLeave : s.events.datapointLeave = null, g.config && Fe(g.config, "events.datapointClick") ? s.events.datapointClick = g.config.events.datapointClick : s.events.datapointClick = null, s;
|
|
120
121
|
}
|
|
121
122
|
re(
|
|
122
|
-
() =>
|
|
123
|
-
(
|
|
124
|
-
ye.value || (e.value = ge()), be.value = !e.value.userOptions.showOnChartHover,
|
|
123
|
+
() => g.config,
|
|
124
|
+
(a) => {
|
|
125
|
+
ye.value || (e.value = ge()), be.value = !e.value.userOptions.showOnChartHover, Ke(), 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, c.value.width = e.value.style.chart.width, c.value.height = e.value.style.chart.height;
|
|
125
126
|
},
|
|
126
127
|
{ deep: !0 }
|
|
127
128
|
);
|
|
128
|
-
const
|
|
129
|
-
const { top:
|
|
129
|
+
const He = C(() => {
|
|
130
|
+
const { top: a, right: s, bottom: l, left: o } = e.value.style.chart.padding;
|
|
130
131
|
return {
|
|
131
|
-
css: `padding:${
|
|
132
|
-
top:
|
|
132
|
+
css: `padding:${a}px ${s}px ${l}px ${o}px`,
|
|
133
|
+
top: a,
|
|
133
134
|
right: s,
|
|
134
|
-
bottom:
|
|
135
|
-
left:
|
|
135
|
+
bottom: l,
|
|
136
|
+
left: o
|
|
136
137
|
};
|
|
137
138
|
});
|
|
138
|
-
function
|
|
139
|
-
return new Promise((
|
|
140
|
-
const t =
|
|
141
|
-
|
|
139
|
+
function St(a, s = 1e3, l = 50) {
|
|
140
|
+
return new Promise((o) => {
|
|
141
|
+
const t = a.length;
|
|
142
|
+
B.value = Array(t).fill(0), Z.value = [];
|
|
142
143
|
let u = 0;
|
|
143
|
-
|
|
144
|
+
a.forEach((v, f) => {
|
|
144
145
|
setTimeout(() => {
|
|
145
|
-
const
|
|
146
|
+
const w = performance.now();
|
|
146
147
|
function d(b) {
|
|
147
|
-
const
|
|
148
|
-
|
|
148
|
+
const N = Math.min((b - w) / s, 1), xe = mt(N), _e = v * xe;
|
|
149
|
+
B.value[f] = _e, B.value = [...B.value];
|
|
149
150
|
const ue = [];
|
|
150
151
|
let Ae = 0;
|
|
151
|
-
|
|
152
|
-
const
|
|
153
|
-
(Oe, Se) => Oe +
|
|
152
|
+
g.dataset.forEach((ne, Te) => {
|
|
153
|
+
const Ut = De(ne.series.reduce(
|
|
154
|
+
(Oe, Se) => Oe + De(M(Se.values).reduce((Yt, Xt) => Yt + Xt, 0)),
|
|
154
155
|
0
|
|
155
|
-
)),
|
|
156
|
+
)), Gt = De(B.value.slice(Ae, Ae + ne.series.length).reduce((Oe, Se) => Oe + Se, 0)), Ne = Ut - Gt;
|
|
156
157
|
Ne > Number.MIN_VALUE && ue.push({
|
|
157
158
|
name: "__ghost__",
|
|
158
159
|
arcOf: ne.name,
|
|
@@ -166,80 +167,80 @@ const ml = ["id"], wl = ["xmlns", "viewBox"], $l = ["width", "height"], kl = ["i
|
|
|
166
167
|
absoluteValues: [],
|
|
167
168
|
ghost: !0
|
|
168
169
|
}), Ae += ne.series.length;
|
|
169
|
-
}), Z.value = ue,
|
|
170
|
+
}), Z.value = ue, N < 1 ? requestAnimationFrame(d) : (u += 1, u === t && o());
|
|
170
171
|
}
|
|
171
172
|
requestAnimationFrame(d);
|
|
172
|
-
}, f *
|
|
173
|
+
}, f * l);
|
|
173
174
|
});
|
|
174
175
|
});
|
|
175
176
|
}
|
|
176
|
-
async function
|
|
177
|
+
async function Je() {
|
|
177
178
|
if (e.value.startAnimation?.show) {
|
|
178
|
-
const s = R.value.flatMap((
|
|
179
|
-
(
|
|
179
|
+
const s = R.value.flatMap((l) => l.series).map(
|
|
180
|
+
(l) => M(l.values).reduce((o, t) => o + t, 0)
|
|
180
181
|
);
|
|
181
|
-
|
|
182
|
-
const t =
|
|
183
|
-
(u,
|
|
182
|
+
B.value = s.map(() => 0), E.value = !0, Z.value = R.value.map((l, o) => {
|
|
183
|
+
const t = l.series.reduce(
|
|
184
|
+
(u, v) => u + M(v.values).reduce((f, w) => f + w, 0),
|
|
184
185
|
0
|
|
185
186
|
);
|
|
186
187
|
return {
|
|
187
188
|
name: "__ghost__",
|
|
188
|
-
arcOf:
|
|
189
|
-
arcOfId: `${p.value}_${
|
|
190
|
-
id: `ghost_${p.value}_${
|
|
189
|
+
arcOf: l.name,
|
|
190
|
+
arcOfId: `${p.value}_${o}`,
|
|
191
|
+
id: `ghost_${p.value}_${o}`,
|
|
191
192
|
seriesIndex: -1,
|
|
192
|
-
datasetIndex:
|
|
193
|
+
datasetIndex: o,
|
|
193
194
|
color: "transparent",
|
|
194
195
|
value: t,
|
|
195
196
|
fullValue: t,
|
|
196
197
|
absoluteValues: [],
|
|
197
198
|
ghost: !0
|
|
198
199
|
};
|
|
199
|
-
}), await
|
|
200
|
+
}), await pt(), St(
|
|
200
201
|
s,
|
|
201
202
|
e.value.startAnimation.durationMs,
|
|
202
203
|
e.value.startAnimation.staggerMs
|
|
203
204
|
).then(() => {
|
|
204
|
-
|
|
205
|
+
E.value = !1, Z.value = [];
|
|
205
206
|
});
|
|
206
207
|
} else
|
|
207
|
-
|
|
208
|
+
E.value = !1;
|
|
208
209
|
}
|
|
209
|
-
|
|
210
|
-
|
|
210
|
+
qt(async () => {
|
|
211
|
+
Ke(), await Je();
|
|
211
212
|
});
|
|
212
|
-
const P = ct(null), X = ct(null), W =
|
|
213
|
-
function
|
|
214
|
-
if (
|
|
213
|
+
const P = ct(null), X = ct(null), W = C(() => !!e.value.debug);
|
|
214
|
+
function Ke() {
|
|
215
|
+
if (aa(g.dataset) ? (K({
|
|
215
216
|
componentName: "VueUiNestedDonuts",
|
|
216
217
|
type: "dataset",
|
|
217
218
|
debug: W.value
|
|
218
219
|
}), de.value = !1, pe.value = !0) : pe.value = e.value.loading, e.value.responsive) {
|
|
219
|
-
const
|
|
220
|
-
const { width: s, height:
|
|
220
|
+
const a = da(() => {
|
|
221
|
+
const { width: s, height: l } = va({
|
|
221
222
|
chart: V.value,
|
|
222
|
-
title: e.value.style.chart.title.text ?
|
|
223
|
+
title: e.value.style.chart.title.text ? Me.value : null,
|
|
223
224
|
legend: e.value.style.chart.legend.show ? fe.value : null,
|
|
224
|
-
source:
|
|
225
|
+
source: Ee.value,
|
|
225
226
|
noTitle: Be.value,
|
|
226
|
-
padding:
|
|
227
|
+
padding: He.value
|
|
227
228
|
});
|
|
228
229
|
requestAnimationFrame(() => {
|
|
229
|
-
|
|
230
|
+
c.value.width = s, c.value.height = l;
|
|
230
231
|
});
|
|
231
232
|
});
|
|
232
|
-
P.value && (X.value && P.value.unobserve(X.value), P.value.disconnect()), P.value = new ResizeObserver(
|
|
233
|
+
P.value && (X.value && P.value.unobserve(X.value), P.value.disconnect()), P.value = new ResizeObserver(a), X.value = V.value.parentNode, P.value.observe(X.value);
|
|
233
234
|
}
|
|
234
235
|
}
|
|
235
|
-
|
|
236
|
+
Ht(() => {
|
|
236
237
|
P.value && (X.value && P.value.unobserve(X.value), P.value.disconnect());
|
|
237
238
|
});
|
|
238
|
-
const { isPrinting:
|
|
239
|
+
const { isPrinting: Qe, isImaging: Ze, generatePdf: je, generateImage: et } = ca({
|
|
239
240
|
elementId: `nested_donuts_${p.value}`,
|
|
240
241
|
fileName: e.value.style.chart.title.text || "vue-ui-nested-donuts",
|
|
241
242
|
options: e.value.userOptions.print
|
|
242
|
-
}),
|
|
243
|
+
}), It = C(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ft = C(() => la(e.value.customPalette)), k = h({
|
|
243
244
|
dataLabels: {
|
|
244
245
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
245
246
|
},
|
|
@@ -247,7 +248,7 @@ const ml = ["id"], wl = ["xmlns", "viewBox"], $l = ["width", "height"], kl = ["i
|
|
|
247
248
|
showTooltip: e.value.style.chart.tooltip.show
|
|
248
249
|
});
|
|
249
250
|
re(e, () => {
|
|
250
|
-
|
|
251
|
+
k.value = {
|
|
251
252
|
dataLabels: {
|
|
252
253
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
253
254
|
},
|
|
@@ -255,56 +256,56 @@ const ml = ["id"], wl = ["xmlns", "viewBox"], $l = ["width", "height"], kl = ["i
|
|
|
255
256
|
showTooltip: e.value.style.chart.tooltip.show
|
|
256
257
|
};
|
|
257
258
|
}, { immediate: !0 });
|
|
258
|
-
const
|
|
259
|
+
const c = h({
|
|
259
260
|
width: e.value.style.chart.width,
|
|
260
261
|
height: e.value.style.chart.height
|
|
261
|
-
}),
|
|
262
|
-
function
|
|
263
|
-
|
|
262
|
+
}), tt = Lt;
|
|
263
|
+
function Vt({ datapoint: a, index: s, seriesIndex: l }) {
|
|
264
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: a, seriesIndex: l }), tt("selectDatapoint", { datapoint: a, index: s });
|
|
264
265
|
}
|
|
265
|
-
function
|
|
266
|
-
from:
|
|
266
|
+
function at({
|
|
267
|
+
from: a,
|
|
267
268
|
to: s,
|
|
268
|
-
duration:
|
|
269
|
-
onUpdate:
|
|
269
|
+
duration: l,
|
|
270
|
+
onUpdate: o,
|
|
270
271
|
onDone: t,
|
|
271
|
-
easing: u =
|
|
272
|
+
easing: u = mt
|
|
272
273
|
}) {
|
|
273
|
-
const
|
|
274
|
-
function f(
|
|
275
|
-
const d = Math.min((
|
|
276
|
-
|
|
274
|
+
const v = performance.now();
|
|
275
|
+
function f(w) {
|
|
276
|
+
const d = Math.min((w - v) / l, 1), b = u(d), N = a + (s - a) * b;
|
|
277
|
+
o(N, d), d < 1 ? requestAnimationFrame(f) : (o(s, 1), t && t());
|
|
277
278
|
}
|
|
278
279
|
requestAnimationFrame(f);
|
|
279
280
|
}
|
|
280
|
-
const
|
|
281
|
-
ye.value, R.value.forEach((s,
|
|
281
|
+
const L = h([]), I = C(() => {
|
|
282
|
+
ye.value, R.value.forEach((s, l) => {
|
|
282
283
|
[null, void 0].includes(s.name) && K({
|
|
283
284
|
componentName: "VueUiNestedDonuts",
|
|
284
285
|
type: "datasetSerieAttribute",
|
|
285
286
|
property: "name",
|
|
286
|
-
index:
|
|
287
|
+
index: l,
|
|
287
288
|
debug: W.value
|
|
288
289
|
}), [null, void 0].includes(s.series) ? K({
|
|
289
290
|
componentName: "VueUiNestedDonuts",
|
|
290
291
|
type: "datasetSerieAttribute",
|
|
291
292
|
property: "series",
|
|
292
|
-
index:
|
|
293
|
+
index: l,
|
|
293
294
|
debug: W.value
|
|
294
295
|
}) : s.series.length === 0 ? K({
|
|
295
296
|
componentName: "VueUiNestedDonuts",
|
|
296
297
|
type: "datasetAttributeEmpty",
|
|
297
|
-
property: `series at index ${
|
|
298
|
+
property: `series at index ${l}`,
|
|
298
299
|
debug: W.value
|
|
299
|
-
}) : s.series.forEach((
|
|
300
|
-
[null, void 0].includes(
|
|
300
|
+
}) : s.series.forEach((o, t) => {
|
|
301
|
+
[null, void 0].includes(o.name) && K({
|
|
301
302
|
componentName: "VueUiNestedDonuts",
|
|
302
303
|
type: "datasetSerieAttribute",
|
|
303
304
|
property: "name",
|
|
304
305
|
index: t,
|
|
305
306
|
key: "serie",
|
|
306
307
|
debug: W.value
|
|
307
|
-
}), [null, void 0].includes(
|
|
308
|
+
}), [null, void 0].includes(o.values) && K({
|
|
308
309
|
componentName: "VueUiNestedDonuts",
|
|
309
310
|
type: "datasetSerieAttribute",
|
|
310
311
|
property: "values",
|
|
@@ -314,138 +315,138 @@ const ml = ["id"], wl = ["xmlns", "viewBox"], $l = ["width", "height"], kl = ["i
|
|
|
314
315
|
});
|
|
315
316
|
});
|
|
316
317
|
});
|
|
317
|
-
let
|
|
318
|
-
return R.value.map((s,
|
|
318
|
+
let a = 0;
|
|
319
|
+
return R.value.map((s, l) => ({
|
|
319
320
|
...s,
|
|
320
|
-
total: s.series.filter((
|
|
321
|
-
datasetIndex:
|
|
322
|
-
id: `${p.value}_${
|
|
323
|
-
series: s.series.map((
|
|
324
|
-
const u = M(
|
|
321
|
+
total: s.series.filter((o) => !L.value.includes(o.id)).map((o) => M(o.values).reduce((t, u) => t + u, 0)).reduce((o, t) => o + t, 0),
|
|
322
|
+
datasetIndex: l,
|
|
323
|
+
id: `${p.value}_${l}`,
|
|
324
|
+
series: s.series.map((o, t) => {
|
|
325
|
+
const u = M(o.values).reduce((v, f) => v + f, 0);
|
|
325
326
|
return {
|
|
326
|
-
name:
|
|
327
|
+
name: o.name,
|
|
327
328
|
arcOf: s.name,
|
|
328
|
-
arcOfId: `${p.value}_${
|
|
329
|
-
id: `${p.value}_${
|
|
329
|
+
arcOfId: `${p.value}_${l}`,
|
|
330
|
+
id: `${p.value}_${l}_${t}`,
|
|
330
331
|
seriesIndex: t,
|
|
331
|
-
datasetIndex:
|
|
332
|
-
color:
|
|
333
|
-
value:
|
|
334
|
-
absoluteValues:
|
|
332
|
+
datasetIndex: l,
|
|
333
|
+
color: oa(o.color) || Ft.value[t] || Ie[t % Ie.length],
|
|
334
|
+
value: E.value ? B.value[a++] ?? 0 : u,
|
|
335
|
+
absoluteValues: o.values || []
|
|
335
336
|
};
|
|
336
337
|
})
|
|
337
338
|
}));
|
|
338
339
|
});
|
|
339
|
-
re(() =>
|
|
340
|
-
Array.isArray(
|
|
340
|
+
re(() => g.dataset, (a) => {
|
|
341
|
+
Array.isArray(a) && a.length > 0 && (pe.value = !1);
|
|
341
342
|
}, { immediate: !0 });
|
|
342
|
-
const
|
|
343
|
-
const
|
|
343
|
+
const F = C(() => Math.min(c.value.height, c.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)), lt = C(() => [...I.value].map((a, s) => {
|
|
344
|
+
const l = a.series.filter((o) => !L.value.includes(o.id)).map((o) => o.value).reduce((o, t) => o + t, 0);
|
|
344
345
|
return {
|
|
345
|
-
...
|
|
346
|
-
total:
|
|
347
|
-
series:
|
|
348
|
-
...
|
|
349
|
-
proportion:
|
|
346
|
+
...a,
|
|
347
|
+
total: l,
|
|
348
|
+
series: a.series.filter((o) => !L.value.includes(o.id)).map((o) => ({
|
|
349
|
+
...o,
|
|
350
|
+
proportion: o.value / l
|
|
350
351
|
}))
|
|
351
352
|
};
|
|
352
353
|
}));
|
|
353
|
-
function
|
|
354
|
-
let
|
|
355
|
-
for (let t = 0; t <
|
|
356
|
-
|
|
357
|
-
return
|
|
354
|
+
function Pt(a, s, l) {
|
|
355
|
+
let o = 0;
|
|
356
|
+
for (let t = 0; t < a.length; t += 1)
|
|
357
|
+
l.includes(a[t]) && (o += 1);
|
|
358
|
+
return o < s;
|
|
358
359
|
}
|
|
359
|
-
const
|
|
360
|
+
const m = h(lt.value);
|
|
360
361
|
re(
|
|
361
362
|
() => lt.value,
|
|
362
|
-
(
|
|
363
|
+
(a) => m.value = a
|
|
363
364
|
);
|
|
364
|
-
function me(
|
|
365
|
-
|
|
366
|
-
const s =
|
|
367
|
-
(d, b) => d.series.map((
|
|
368
|
-
value: M(
|
|
365
|
+
function me(a) {
|
|
366
|
+
tt("selectLegend", a);
|
|
367
|
+
const s = g.dataset.flatMap(
|
|
368
|
+
(d, b) => d.series.map((N, xe) => ({
|
|
369
|
+
value: M(N.values).reduce((_e, ue) => _e + ue, 0),
|
|
369
370
|
id: `${p.value}_${b}_${xe}`,
|
|
370
371
|
arcOfId: `${p.value}_${b}`
|
|
371
372
|
}))
|
|
372
|
-
).find((d) => d.id ===
|
|
373
|
+
).find((d) => d.id === a.id);
|
|
373
374
|
if (!s) return;
|
|
374
|
-
const
|
|
375
|
-
let u =
|
|
376
|
-
const
|
|
375
|
+
const l = I.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);
|
|
376
|
+
let u = o ? o.value : 0;
|
|
377
|
+
const v = I.value.find(
|
|
377
378
|
(d) => d.id === s.arcOfId
|
|
378
379
|
);
|
|
379
|
-
if (!
|
|
380
|
-
const f =
|
|
380
|
+
if (!v) return;
|
|
381
|
+
const f = v.series.map((d) => d.id), w = Pt(
|
|
381
382
|
f,
|
|
382
383
|
f.length - 1,
|
|
383
|
-
|
|
384
|
+
L.value
|
|
384
385
|
);
|
|
385
|
-
|
|
386
|
+
L.value.includes(a.id) ? (L.value = L.value.filter((d) => d !== a.id), e.value.serieToggleAnimation.show ? at({
|
|
386
387
|
from: u,
|
|
387
|
-
to:
|
|
388
|
+
to: l,
|
|
388
389
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
389
390
|
onUpdate: (d) => {
|
|
390
|
-
|
|
391
|
+
m.value = m.value.map((b) => ({
|
|
391
392
|
...b,
|
|
392
|
-
series: b.series.map((
|
|
393
|
+
series: b.series.map((N) => N.id === a.id ? { ...N, value: d } : N)
|
|
393
394
|
}));
|
|
394
395
|
}
|
|
395
|
-
}) :
|
|
396
|
+
}) : m.value = m.value.map((d) => ({
|
|
396
397
|
...d,
|
|
397
|
-
series: d.series.map((b) => b.id ===
|
|
398
|
-
}))) :
|
|
398
|
+
series: d.series.map((b) => b.id === a.id ? { ...b, value: l } : b)
|
|
399
|
+
}))) : w && (e.value.serieToggleAnimation.show ? at({
|
|
399
400
|
from: u,
|
|
400
401
|
to: 0,
|
|
401
402
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
402
403
|
onUpdate: (d) => {
|
|
403
|
-
|
|
404
|
+
m.value = m.value.map((b) => ({
|
|
404
405
|
...b,
|
|
405
|
-
series: b.series.map((
|
|
406
|
+
series: b.series.map((N) => N.id === a.id ? { ...N, value: d } : N)
|
|
406
407
|
}));
|
|
407
408
|
},
|
|
408
409
|
onDone: () => {
|
|
409
|
-
|
|
410
|
+
L.value.push(a.id);
|
|
410
411
|
}
|
|
411
|
-
}) : (
|
|
412
|
+
}) : (m.value = m.value.map((d) => ({
|
|
412
413
|
...d,
|
|
413
|
-
series: d.series.map((b) => b.id ===
|
|
414
|
-
})),
|
|
414
|
+
series: d.series.map((b) => b.id === a.id ? { ...b, value: 0 } : b)
|
|
415
|
+
})), L.value.push(a.id)));
|
|
415
416
|
}
|
|
416
|
-
const te =
|
|
417
|
-
const
|
|
418
|
-
...
|
|
419
|
-
value:
|
|
420
|
-
})),
|
|
417
|
+
const te = C(() => F.value / I.value.length * e.value.style.chart.layout.donut.spacingRatio), ot = C(() => m.value.map((a, s) => F.value - s * F.value / I.value.length)), q = C(() => m.value.map((a, s) => {
|
|
418
|
+
const l = Math.abs(a.series.map((w) => w.value).reduce((w, d) => w + d, 0)) > 0, o = F.value - s * F.value / m.value.length, t = E.value ? Z.value.find((w) => w.datasetIndex === s) : null, u = [...a.series, ...t ? [t] : []].map((w) => ({
|
|
419
|
+
...w,
|
|
420
|
+
value: w.value < 1e-11 ? Number.MIN_VALUE : w.value
|
|
421
|
+
})), v = Ve(
|
|
421
422
|
{ series: [
|
|
422
423
|
{ name: "_", color: e.value.style.chart.layout.donut.emptyFill, value: 1 }
|
|
423
424
|
] },
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
425
|
+
c.value.width / 2,
|
|
426
|
+
c.value.height / 2,
|
|
427
|
+
o,
|
|
428
|
+
o,
|
|
428
429
|
1.99999,
|
|
429
430
|
2,
|
|
430
431
|
1,
|
|
431
432
|
360,
|
|
432
433
|
105.25,
|
|
433
434
|
te.value
|
|
434
|
-
), f = `M ${
|
|
435
|
-
a ${
|
|
436
|
-
a ${
|
|
435
|
+
), f = `M ${c.value.width / 2},${c.value.height / 2 + o}
|
|
436
|
+
a ${o},${o} 0 1,1 0,${-2 * o}
|
|
437
|
+
a ${o},${o} 0 1,1 0,${2 * o}`;
|
|
437
438
|
return {
|
|
438
|
-
...
|
|
439
|
-
hasData:
|
|
440
|
-
radius:
|
|
441
|
-
skeleton:
|
|
439
|
+
...a,
|
|
440
|
+
hasData: l,
|
|
441
|
+
radius: o,
|
|
442
|
+
skeleton: v,
|
|
442
443
|
fullCirclePath: f,
|
|
443
|
-
donut:
|
|
444
|
+
donut: Ve(
|
|
444
445
|
{ series: u },
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
446
|
+
c.value.width / 2,
|
|
447
|
+
c.value.height / 2,
|
|
448
|
+
o,
|
|
449
|
+
o,
|
|
449
450
|
1.99999,
|
|
450
451
|
2,
|
|
451
452
|
1,
|
|
@@ -454,78 +455,81 @@ const ml = ["id"], wl = ["xmlns", "viewBox"], $l = ["width", "height"], kl = ["i
|
|
|
454
455
|
te.value
|
|
455
456
|
)
|
|
456
457
|
};
|
|
457
|
-
})),
|
|
458
|
-
const
|
|
458
|
+
})), st = C(() => [...I.value].map((a, s) => {
|
|
459
|
+
const l = s * F.value / I.value.length;
|
|
459
460
|
return {
|
|
460
|
-
sizeRatio:
|
|
461
|
-
donut:
|
|
461
|
+
sizeRatio: l,
|
|
462
|
+
donut: Ve(
|
|
462
463
|
{ series: [{ value: 1 }] },
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
464
|
+
c.value.width / 2,
|
|
465
|
+
c.value.height / 2,
|
|
466
|
+
F.value - l,
|
|
467
|
+
F.value - l,
|
|
467
468
|
1.99999,
|
|
468
469
|
2,
|
|
469
470
|
1,
|
|
470
471
|
360,
|
|
471
472
|
105.25,
|
|
472
|
-
|
|
473
|
+
F.value / I.value.length * e.value.style.chart.layout.donut.spacingRatio
|
|
473
474
|
)[0]
|
|
474
475
|
};
|
|
475
|
-
})),
|
|
476
|
-
function
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
476
|
+
})), ut = h(null), ae = h(null), le = h(null), we = h(null);
|
|
477
|
+
function Dt({ datapoint: a, seriesIndex: s }) {
|
|
478
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: a, seriesIndex: s }), ve.value = !1, ut.value = null, he.value = null, ae.value = null, le.value = null;
|
|
479
|
+
}
|
|
480
|
+
function zt({ datapoint: a, _relativeIndex: s, seriesIndex: l }) {
|
|
481
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: a, seriesIndex: l }), ut.value = a.arcOfId, ae.value = a.id, le.value = l, he.value = a.id, we.value = {
|
|
482
|
+
datapoint: a,
|
|
483
|
+
seriesIndex: l,
|
|
484
|
+
series: m.value,
|
|
481
485
|
config: e.value
|
|
482
486
|
};
|
|
483
|
-
const
|
|
484
|
-
if (
|
|
485
|
-
() =>
|
|
486
|
-
seriesIndex:
|
|
487
|
-
datapoint:
|
|
488
|
-
series:
|
|
487
|
+
const o = e.value.style.chart.tooltip.customFormat;
|
|
488
|
+
if (gt(o) && ia(
|
|
489
|
+
() => o({
|
|
490
|
+
seriesIndex: l,
|
|
491
|
+
datapoint: a,
|
|
492
|
+
series: m.value,
|
|
489
493
|
config: e.value
|
|
490
494
|
})
|
|
491
495
|
))
|
|
492
|
-
|
|
493
|
-
seriesIndex:
|
|
494
|
-
datapoint:
|
|
495
|
-
series:
|
|
496
|
+
ce.value = o({
|
|
497
|
+
seriesIndex: l,
|
|
498
|
+
datapoint: a,
|
|
499
|
+
series: m.value,
|
|
496
500
|
config: e.value
|
|
497
501
|
});
|
|
498
502
|
else {
|
|
499
503
|
let t = "";
|
|
500
|
-
if (e.value.style.chart.tooltip.showAllItemsAtIndex &&
|
|
501
|
-
const u =
|
|
502
|
-
u.forEach((
|
|
503
|
-
if (!
|
|
504
|
+
if (e.value.style.chart.tooltip.showAllItemsAtIndex && L.value.length === 0) {
|
|
505
|
+
const u = m.value.map((v) => v.series.find((f) => f.seriesIndex === l));
|
|
506
|
+
u.forEach((v, f) => {
|
|
507
|
+
if (!v) return "";
|
|
504
508
|
t += `
|
|
505
509
|
<div style="display:flex; flex-direction: column; justify-content:flex-start; align-items:flex-start;padding:6px 0; ${f < u.length - 1 ? `border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor}` : ""}">
|
|
506
510
|
<div style="display:flex; flex-direction: row; gap: 3px; justify-content:flex-start; align-items:center;">
|
|
507
511
|
<svg viewBox="0 0 20 20" height="${e.value.style.chart.tooltip.fontSize}" width="${e.value.style.chart.tooltip.fontSize}">
|
|
508
|
-
<circle cx="10" cy="10" r="10" fill="${
|
|
512
|
+
<circle cx="10" cy="10" r="10" fill="${v.color}"/>
|
|
509
513
|
</svg>
|
|
510
514
|
<span>
|
|
511
|
-
${
|
|
515
|
+
${v.arcOf ?? ""} - ${v.name}
|
|
512
516
|
</span>
|
|
513
517
|
</div>
|
|
514
518
|
<span>
|
|
515
519
|
${e.value.style.chart.tooltip.showValue ? `<b>${j(
|
|
516
520
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
517
|
-
|
|
518
|
-
|
|
521
|
+
a.value,
|
|
522
|
+
O({
|
|
519
523
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
520
|
-
v:
|
|
524
|
+
v: a.value,
|
|
521
525
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
522
526
|
r: e.value.style.chart.tooltip.roundingValue
|
|
523
527
|
}),
|
|
524
|
-
{ datapoint:
|
|
528
|
+
{ datapoint: a, seriesIndex: l }
|
|
525
529
|
)}
|
|
526
530
|
</b>` : ""}
|
|
527
|
-
${e.value.style.chart.tooltip.showPercentage ? `(${
|
|
528
|
-
v:
|
|
531
|
+
${e.value.style.chart.tooltip.showPercentage ? `(${O({
|
|
532
|
+
v: v.proportion * 100,
|
|
529
533
|
s: "%",
|
|
530
534
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
531
535
|
})})` : ""}
|
|
@@ -534,56 +538,56 @@ const ml = ["id"], wl = ["xmlns", "viewBox"], $l = ["width", "height"], kl = ["i
|
|
|
534
538
|
`;
|
|
535
539
|
});
|
|
536
540
|
} else
|
|
537
|
-
t += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${
|
|
541
|
+
t += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${a.arcOf ?? ""} - ${a.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="${a.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (t += `<b>${j(
|
|
538
542
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
539
|
-
|
|
540
|
-
|
|
543
|
+
a.value,
|
|
544
|
+
O({
|
|
541
545
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
542
|
-
v:
|
|
546
|
+
v: a.value,
|
|
543
547
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
544
548
|
r: e.value.style.chart.tooltip.roundingValue
|
|
545
549
|
}),
|
|
546
|
-
{ datapoint:
|
|
547
|
-
)}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? t += `<span>(${
|
|
548
|
-
v:
|
|
550
|
+
{ datapoint: a, seriesIndex: l }
|
|
551
|
+
)}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? t += `<span>(${O({
|
|
552
|
+
v: a.proportion * 100,
|
|
549
553
|
s: "%",
|
|
550
554
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
551
|
-
})})</span></div>` : t += `<b>${
|
|
552
|
-
v:
|
|
555
|
+
})})</span></div>` : t += `<b>${O({
|
|
556
|
+
v: a.proportion * 100,
|
|
553
557
|
s: "%",
|
|
554
558
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
555
559
|
})}</b></div>`);
|
|
556
|
-
|
|
560
|
+
ce.value = `<div style="font-size:${e.value.style.chart.tooltip.fontSize}px">${t}</div>`;
|
|
557
561
|
}
|
|
558
|
-
|
|
562
|
+
ve.value = !0;
|
|
559
563
|
}
|
|
560
|
-
function $e(
|
|
561
|
-
return
|
|
564
|
+
function $e(a) {
|
|
565
|
+
return a.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
562
566
|
}
|
|
563
|
-
function
|
|
567
|
+
function nt(a, s) {
|
|
564
568
|
if (!e.value.useBlurOnHover)
|
|
565
569
|
return "";
|
|
566
|
-
if (e.value.style.chart.tooltip.showAllItemsAtIndex &&
|
|
567
|
-
return [null, void 0].includes(
|
|
568
|
-
if (!e.value.style.chart.tooltip.showAllItemsAtIndex ||
|
|
569
|
-
return [null, void 0].includes(
|
|
570
|
+
if (e.value.style.chart.tooltip.showAllItemsAtIndex && L.value.length === 0)
|
|
571
|
+
return [null, void 0].includes(le.value) || le.value === s ? "" : `url(#blur_${p.value})`;
|
|
572
|
+
if (!e.value.style.chart.tooltip.showAllItemsAtIndex || L.value.length)
|
|
573
|
+
return [null, void 0].includes(ae.value) || ae.value === a.id ? "" : `url(#blur_${p.value})`;
|
|
570
574
|
}
|
|
571
|
-
const ke =
|
|
572
|
-
const
|
|
573
|
-
(t) => !
|
|
574
|
-
),
|
|
575
|
+
const ke = C(() => I.value.map((a, s) => {
|
|
576
|
+
const l = a.series.filter(
|
|
577
|
+
(t) => !L.value.includes(t.id)
|
|
578
|
+
), o = E.value ? l.map((t) => {
|
|
575
579
|
const u = R.value[s].series.findIndex(
|
|
576
|
-
(
|
|
580
|
+
(v) => v.name === t.name
|
|
577
581
|
);
|
|
578
582
|
return M(
|
|
579
583
|
R.value[s].series[u].values
|
|
580
|
-
).reduce((
|
|
581
|
-
}).reduce((t, u) => t + u, 0) :
|
|
582
|
-
return
|
|
583
|
-
const
|
|
584
|
-
(
|
|
584
|
+
).reduce((v, f) => v + f, 0);
|
|
585
|
+
}).reduce((t, u) => t + u, 0) : l.map((t) => t.value).reduce((t, u) => t + u, 0);
|
|
586
|
+
return a.series.map((t, u) => {
|
|
587
|
+
const v = M(R.value[s].series[u].values).reduce(
|
|
588
|
+
(w, d) => w + d,
|
|
585
589
|
0
|
|
586
|
-
), f =
|
|
590
|
+
), f = E.value ? v : t.value;
|
|
587
591
|
return {
|
|
588
592
|
name: t.name,
|
|
589
593
|
color: t.color,
|
|
@@ -593,53 +597,53 @@ const ml = ["id"], wl = ["xmlns", "viewBox"], $l = ["width", "height"], kl = ["i
|
|
|
593
597
|
id: t.id,
|
|
594
598
|
seriesIndex: u,
|
|
595
599
|
datasetIndex: s,
|
|
596
|
-
total:
|
|
597
|
-
opacity:
|
|
600
|
+
total: o,
|
|
601
|
+
opacity: L.value.includes(t.id) ? 0.5 : 1,
|
|
598
602
|
segregate: () => me(t),
|
|
599
|
-
isSegregated:
|
|
603
|
+
isSegregated: L.value.includes(t.id)
|
|
600
604
|
};
|
|
601
605
|
});
|
|
602
|
-
})),
|
|
606
|
+
})), Mt = C(() => ({
|
|
603
607
|
cy: "nested-donuts-legend",
|
|
604
608
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
605
609
|
color: e.value.style.chart.legend.color,
|
|
606
610
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
607
611
|
paddingBottom: 12,
|
|
608
612
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
609
|
-
})), D =
|
|
610
|
-
const
|
|
611
|
-
name: `${
|
|
612
|
-
color:
|
|
613
|
-
total:
|
|
614
|
-
}))), s =
|
|
615
|
-
return { head:
|
|
613
|
+
})), D = C(() => {
|
|
614
|
+
const a = m.value.flatMap((l) => l.series.map((o) => ({
|
|
615
|
+
name: `${l.name} - ${o.name}`,
|
|
616
|
+
color: o.color,
|
|
617
|
+
total: l.total
|
|
618
|
+
}))), s = m.value.flatMap((l) => l.series.map((o) => o.value));
|
|
619
|
+
return { head: a, body: s };
|
|
616
620
|
});
|
|
617
|
-
function
|
|
618
|
-
|
|
621
|
+
function rt(a = null) {
|
|
622
|
+
pt(() => {
|
|
619
623
|
const s = D.value.head.map((t, u) => [
|
|
620
624
|
[t.name],
|
|
621
625
|
[D.value.body[u]],
|
|
622
626
|
[
|
|
623
627
|
isNaN(D.value.body[u] / t.total) ? "-" : D.value.body[u] / t.total * 100
|
|
624
628
|
]
|
|
625
|
-
]),
|
|
629
|
+
]), l = [
|
|
626
630
|
[e.value.style.chart.title.text],
|
|
627
631
|
[e.value.style.chart.title.subtitle.text],
|
|
628
632
|
[[""], ["val"], ["%"]]
|
|
629
|
-
].concat(s),
|
|
630
|
-
|
|
631
|
-
csvContent:
|
|
633
|
+
].concat(s), o = na(l);
|
|
634
|
+
a ? a(o) : ra({
|
|
635
|
+
csvContent: o,
|
|
632
636
|
title: e.value.style.chart.title.text || "vue-ui-nested-donuts"
|
|
633
637
|
});
|
|
634
638
|
});
|
|
635
639
|
}
|
|
636
|
-
const oe =
|
|
637
|
-
const
|
|
640
|
+
const oe = C(() => {
|
|
641
|
+
const a = [
|
|
638
642
|
e.value.table.columnNames.series,
|
|
639
643
|
e.value.table.columnNames.value,
|
|
640
644
|
e.value.table.columnNames.percentage
|
|
641
645
|
], s = D.value.head.map((t, u) => {
|
|
642
|
-
const
|
|
646
|
+
const v = O({
|
|
643
647
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
644
648
|
v: D.value.body[u],
|
|
645
649
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -650,14 +654,14 @@ const ml = ["id"], wl = ["xmlns", "viewBox"], $l = ["width", "height"], kl = ["i
|
|
|
650
654
|
color: t.color,
|
|
651
655
|
name: t.name
|
|
652
656
|
},
|
|
653
|
-
|
|
654
|
-
isNaN(D.value.body[u] / t.total) ? "-" :
|
|
657
|
+
v,
|
|
658
|
+
isNaN(D.value.body[u] / t.total) ? "-" : O({
|
|
655
659
|
v: D.value.body[u] / t.total * 100,
|
|
656
660
|
s: "%",
|
|
657
661
|
r: e.value.table.td.roundingPercentage
|
|
658
662
|
})
|
|
659
663
|
];
|
|
660
|
-
}),
|
|
664
|
+
}), l = {
|
|
661
665
|
th: {
|
|
662
666
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
663
667
|
color: e.value.table.th.color,
|
|
@@ -676,88 +680,88 @@ const ml = ["id"], wl = ["xmlns", "viewBox"], $l = ["width", "height"], kl = ["i
|
|
|
676
680
|
e.value.table.columnNames.value,
|
|
677
681
|
e.value.table.columnNames.percentage
|
|
678
682
|
],
|
|
679
|
-
head:
|
|
683
|
+
head: a,
|
|
680
684
|
body: s,
|
|
681
|
-
config:
|
|
685
|
+
config: l
|
|
682
686
|
};
|
|
683
687
|
});
|
|
684
|
-
function
|
|
685
|
-
return
|
|
686
|
-
}
|
|
687
|
-
function rt() {
|
|
688
|
-
$.value.showTable = !$.value.showTable;
|
|
688
|
+
function Et() {
|
|
689
|
+
return I.value;
|
|
689
690
|
}
|
|
690
691
|
function it() {
|
|
691
|
-
|
|
692
|
+
k.value.showTable = !k.value.showTable;
|
|
692
693
|
}
|
|
693
694
|
function dt() {
|
|
694
|
-
|
|
695
|
+
k.value.dataLabels.show = !k.value.dataLabels.show;
|
|
696
|
+
}
|
|
697
|
+
function vt() {
|
|
698
|
+
k.value.showTooltip = !k.value.showTooltip;
|
|
695
699
|
}
|
|
696
700
|
const se = h(!1);
|
|
697
701
|
function Le() {
|
|
698
702
|
se.value = !se.value;
|
|
699
703
|
}
|
|
700
|
-
async function
|
|
704
|
+
async function Bt({ scale: a = 2 } = {}) {
|
|
701
705
|
if (!V.value) return;
|
|
702
|
-
const { width: s, height:
|
|
706
|
+
const { width: s, height: l } = V.value.getBoundingClientRect(), o = s / l, { imageUri: t, base64: u } = await ba({ domElement: V.value, base64: !0, img: !0, scale: a });
|
|
703
707
|
return {
|
|
704
708
|
imageUri: t,
|
|
705
709
|
base64: u,
|
|
706
710
|
title: e.value.style.chart.title.text,
|
|
707
711
|
width: s,
|
|
708
|
-
height:
|
|
709
|
-
aspectRatio:
|
|
712
|
+
height: l,
|
|
713
|
+
aspectRatio: o
|
|
710
714
|
};
|
|
711
715
|
}
|
|
712
716
|
const Ce = h(null);
|
|
713
|
-
function
|
|
717
|
+
function Rt() {
|
|
714
718
|
if (!Ce.value) return;
|
|
715
|
-
const { x:
|
|
716
|
-
ee.value && ee.value.setAttribute("viewBox", `${
|
|
719
|
+
const { x: a, y: s, width: l, height: o } = Ce.value.getBBox();
|
|
720
|
+
ee.value && ee.value.setAttribute("viewBox", `${a} ${s} ${l + Math.min(0, a)} ${o + Math.min(0, s)}`);
|
|
717
721
|
}
|
|
718
|
-
return
|
|
719
|
-
autoSize:
|
|
720
|
-
getData:
|
|
721
|
-
getImage:
|
|
722
|
-
generatePdf:
|
|
723
|
-
generateCsv:
|
|
724
|
-
generateImage:
|
|
725
|
-
toggleTable:
|
|
726
|
-
toggleLabels:
|
|
727
|
-
toggleTooltip:
|
|
722
|
+
return kt({
|
|
723
|
+
autoSize: Rt,
|
|
724
|
+
getData: Et,
|
|
725
|
+
getImage: Bt,
|
|
726
|
+
generatePdf: je,
|
|
727
|
+
generateCsv: rt,
|
|
728
|
+
generateImage: et,
|
|
729
|
+
toggleTable: it,
|
|
730
|
+
toggleLabels: dt,
|
|
731
|
+
toggleTooltip: vt,
|
|
728
732
|
toggleAnnotator: Le,
|
|
729
|
-
toggleFullscreen:
|
|
730
|
-
}), (
|
|
733
|
+
toggleFullscreen: Ye
|
|
734
|
+
}), (a, s) => (n(), r("div", {
|
|
731
735
|
ref_key: "nestedDonutsChart",
|
|
732
736
|
ref: V,
|
|
733
737
|
class: z(`vue-ui-nested-donuts ${Y.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
734
738
|
style: ie(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
735
739
|
id: `nested_donuts_${p.value}`,
|
|
736
|
-
onMouseenter: s[
|
|
737
|
-
onMouseleave: s[
|
|
740
|
+
onMouseenter: s[2] || (s[2] = () => i(We)(!0)),
|
|
741
|
+
onMouseleave: s[3] || (s[3] = () => i(We)(!1))
|
|
738
742
|
}, [
|
|
739
|
-
e.value.userOptions.buttons.annotator ? (n(), G(i(
|
|
743
|
+
e.value.userOptions.buttons.annotator ? (n(), G(i(At), {
|
|
740
744
|
key: 0,
|
|
741
745
|
svgRef: i(ee),
|
|
742
746
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
743
747
|
color: e.value.style.chart.color,
|
|
744
748
|
active: se.value,
|
|
745
749
|
onClose: Le
|
|
746
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
747
|
-
|
|
750
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : $("", !0),
|
|
751
|
+
It.value ? (n(), r("div", {
|
|
748
752
|
key: 1,
|
|
749
753
|
ref_key: "noTitle",
|
|
750
754
|
ref: Be,
|
|
751
755
|
class: "vue-data-ui-no-title-space",
|
|
752
756
|
style: "height:36px; width: 100%;background:transparent"
|
|
753
|
-
}, null, 512)) :
|
|
757
|
+
}, null, 512)) : $("", !0),
|
|
754
758
|
e.value.style.chart.title.text ? (n(), r("div", {
|
|
755
759
|
key: 2,
|
|
756
760
|
ref_key: "chartTitle",
|
|
757
|
-
ref:
|
|
761
|
+
ref: Me
|
|
758
762
|
}, [
|
|
759
|
-
(n(), G(
|
|
760
|
-
key: `title_${
|
|
763
|
+
(n(), G(ya, {
|
|
764
|
+
key: `title_${Re.value}`,
|
|
761
765
|
config: {
|
|
762
766
|
title: {
|
|
763
767
|
cy: "donut-div-title",
|
|
@@ -769,14 +773,14 @@ const ml = ["id"], wl = ["xmlns", "viewBox"], $l = ["width", "height"], kl = ["i
|
|
|
769
773
|
}
|
|
770
774
|
}
|
|
771
775
|
}, null, 8, ["config"]))
|
|
772
|
-
], 512)) :
|
|
773
|
-
e.value.userOptions.show && de.value && (i(
|
|
776
|
+
], 512)) : $("", !0),
|
|
777
|
+
e.value.userOptions.show && de.value && (i(qe) || i(be)) ? (n(), G(i(Nt), {
|
|
774
778
|
ref: "details",
|
|
775
|
-
key: `user_option_${
|
|
779
|
+
key: `user_option_${ze.value}`,
|
|
776
780
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
777
781
|
color: e.value.style.chart.color,
|
|
778
|
-
isPrinting: i(
|
|
779
|
-
isImaging: i(
|
|
782
|
+
isPrinting: i(Qe),
|
|
783
|
+
isImaging: i(Ze),
|
|
780
784
|
uid: p.value,
|
|
781
785
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
782
786
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -786,7 +790,7 @@ const ml = ["id"], wl = ["xmlns", "viewBox"], $l = ["width", "height"], kl = ["i
|
|
|
786
790
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
787
791
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
788
792
|
isFullscreen: Y.value,
|
|
789
|
-
isTooltip:
|
|
793
|
+
isTooltip: k.value.showTooltip,
|
|
790
794
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
791
795
|
chartElement: V.value,
|
|
792
796
|
position: e.value.userOptions.position,
|
|
@@ -794,137 +798,137 @@ const ml = ["id"], wl = ["xmlns", "viewBox"], $l = ["width", "height"], kl = ["i
|
|
|
794
798
|
isAnnotation: se.value,
|
|
795
799
|
callbacks: e.value.userOptions.callbacks,
|
|
796
800
|
printScale: e.value.userOptions.print.scale,
|
|
797
|
-
onToggleFullscreen:
|
|
798
|
-
onGeneratePdf: i(
|
|
799
|
-
onGenerateCsv:
|
|
800
|
-
onGenerateImage: i(
|
|
801
|
-
onToggleTable:
|
|
802
|
-
onToggleLabels:
|
|
803
|
-
onToggleTooltip:
|
|
801
|
+
onToggleFullscreen: Ye,
|
|
802
|
+
onGeneratePdf: i(je),
|
|
803
|
+
onGenerateCsv: rt,
|
|
804
|
+
onGenerateImage: i(et),
|
|
805
|
+
onToggleTable: it,
|
|
806
|
+
onToggleLabels: dt,
|
|
807
|
+
onToggleTooltip: vt,
|
|
804
808
|
onToggleAnnotator: Le,
|
|
805
809
|
style: ie({
|
|
806
|
-
visibility: i(
|
|
810
|
+
visibility: i(qe) ? i(be) ? "visible" : "hidden" : "visible"
|
|
807
811
|
})
|
|
808
|
-
},
|
|
809
|
-
|
|
812
|
+
}, Jt({ _: 2 }, [
|
|
813
|
+
a.$slots.menuIcon ? {
|
|
810
814
|
name: "menuIcon",
|
|
811
|
-
fn:
|
|
812
|
-
|
|
815
|
+
fn: x(({ isOpen: l, color: o }) => [
|
|
816
|
+
_(a.$slots, "menuIcon", H(J({ isOpen: l, color: o })), void 0, !0)
|
|
813
817
|
]),
|
|
814
818
|
key: "0"
|
|
815
819
|
} : void 0,
|
|
816
|
-
|
|
820
|
+
a.$slots.optionTooltip ? {
|
|
817
821
|
name: "optionTooltip",
|
|
818
|
-
fn:
|
|
819
|
-
|
|
822
|
+
fn: x(() => [
|
|
823
|
+
_(a.$slots, "optionTooltip", {}, void 0, !0)
|
|
820
824
|
]),
|
|
821
825
|
key: "1"
|
|
822
826
|
} : void 0,
|
|
823
|
-
|
|
827
|
+
a.$slots.optionPdf ? {
|
|
824
828
|
name: "optionPdf",
|
|
825
|
-
fn:
|
|
826
|
-
|
|
829
|
+
fn: x(() => [
|
|
830
|
+
_(a.$slots, "optionPdf", {}, void 0, !0)
|
|
827
831
|
]),
|
|
828
832
|
key: "2"
|
|
829
833
|
} : void 0,
|
|
830
|
-
|
|
834
|
+
a.$slots.optionCsv ? {
|
|
831
835
|
name: "optionCsv",
|
|
832
|
-
fn:
|
|
833
|
-
|
|
836
|
+
fn: x(() => [
|
|
837
|
+
_(a.$slots, "optionCsv", {}, void 0, !0)
|
|
834
838
|
]),
|
|
835
839
|
key: "3"
|
|
836
840
|
} : void 0,
|
|
837
|
-
|
|
841
|
+
a.$slots.optionImg ? {
|
|
838
842
|
name: "optionImg",
|
|
839
|
-
fn:
|
|
840
|
-
|
|
843
|
+
fn: x(() => [
|
|
844
|
+
_(a.$slots, "optionImg", {}, void 0, !0)
|
|
841
845
|
]),
|
|
842
846
|
key: "4"
|
|
843
847
|
} : void 0,
|
|
844
|
-
|
|
848
|
+
a.$slots.optionTable ? {
|
|
845
849
|
name: "optionTable",
|
|
846
|
-
fn:
|
|
847
|
-
|
|
850
|
+
fn: x(() => [
|
|
851
|
+
_(a.$slots, "optionTable", {}, void 0, !0)
|
|
848
852
|
]),
|
|
849
853
|
key: "5"
|
|
850
854
|
} : void 0,
|
|
851
|
-
|
|
855
|
+
a.$slots.optionLabels ? {
|
|
852
856
|
name: "optionLabels",
|
|
853
|
-
fn:
|
|
854
|
-
|
|
857
|
+
fn: x(() => [
|
|
858
|
+
_(a.$slots, "optionLabels", {}, void 0, !0)
|
|
855
859
|
]),
|
|
856
860
|
key: "6"
|
|
857
861
|
} : void 0,
|
|
858
|
-
|
|
862
|
+
a.$slots.optionFullscreen ? {
|
|
859
863
|
name: "optionFullscreen",
|
|
860
|
-
fn:
|
|
861
|
-
|
|
864
|
+
fn: x(({ toggleFullscreen: l, isFullscreen: o }) => [
|
|
865
|
+
_(a.$slots, "optionFullscreen", H(J({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
|
|
862
866
|
]),
|
|
863
867
|
key: "7"
|
|
864
868
|
} : void 0,
|
|
865
|
-
|
|
869
|
+
a.$slots.optionAnnotator ? {
|
|
866
870
|
name: "optionAnnotator",
|
|
867
|
-
fn:
|
|
868
|
-
|
|
871
|
+
fn: x(({ toggleAnnotator: l, isAnnotator: o }) => [
|
|
872
|
+
_(a.$slots, "optionAnnotator", H(J({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
|
|
869
873
|
]),
|
|
870
874
|
key: "8"
|
|
871
875
|
} : void 0
|
|
872
|
-
]), 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"])) :
|
|
876
|
+
]), 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),
|
|
873
877
|
(n(), r("svg", {
|
|
874
878
|
ref_key: "svgRef",
|
|
875
879
|
ref: ee,
|
|
876
|
-
xmlns: i(
|
|
880
|
+
xmlns: i(sa),
|
|
877
881
|
class: z({
|
|
878
882
|
"vue-data-ui-fullscreen--on": Y.value,
|
|
879
883
|
"vue-data-ui-fulscreen--off": !Y.value,
|
|
880
884
|
"vue-data-ui-svg": !0
|
|
881
885
|
}),
|
|
882
|
-
viewBox: `0 0 ${
|
|
883
|
-
style: ie(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${
|
|
886
|
+
viewBox: `0 0 ${c.value.width <= 0 ? 1e-3 : c.value.width} ${c.value.height < 0 ? 1e-3 : c.value.height}`,
|
|
887
|
+
style: ie(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${He.value.css}`)
|
|
884
888
|
}, [
|
|
885
889
|
y("g", {
|
|
886
890
|
ref_key: "G",
|
|
887
891
|
ref: Ce,
|
|
888
892
|
class: "vue-data-ui-g"
|
|
889
893
|
}, [
|
|
890
|
-
|
|
891
|
-
|
|
894
|
+
ht(i(_t)),
|
|
895
|
+
a.$slots["chart-background"] ? (n(), r("foreignObject", {
|
|
892
896
|
key: 0,
|
|
893
897
|
x: 0,
|
|
894
898
|
y: 0,
|
|
895
|
-
width:
|
|
896
|
-
height:
|
|
899
|
+
width: c.value.width <= 0 ? 1e-3 : c.value.width,
|
|
900
|
+
height: c.value.height < 0 ? 1e-3 : c.value.height,
|
|
897
901
|
style: {
|
|
898
902
|
pointerEvents: "none"
|
|
899
903
|
}
|
|
900
904
|
}, [
|
|
901
|
-
|
|
902
|
-
], 8,
|
|
905
|
+
_(a.$slots, "chart-background", {}, void 0, !0)
|
|
906
|
+
], 8, La)) : $("", !0),
|
|
903
907
|
y("defs", null, [
|
|
904
|
-
(n(!0), r(
|
|
905
|
-
id: `radial_${p.value}_${
|
|
908
|
+
(n(!0), r(A, null, T(st.value, (l, o) => (n(), r("radialGradient", {
|
|
909
|
+
id: `radial_${p.value}_${o}`
|
|
906
910
|
}, [
|
|
907
|
-
s[
|
|
911
|
+
s[4] || (s[4] = y("stop", {
|
|
908
912
|
offset: "0%",
|
|
909
913
|
"stop-color": "#FFFFFF",
|
|
910
914
|
"stop-opacity": "0"
|
|
911
915
|
}, null, -1)),
|
|
912
916
|
y("stop", {
|
|
913
|
-
offset: `${(1 - te.value /
|
|
914
|
-
"stop-color": i(
|
|
917
|
+
offset: `${(1 - te.value / ot.value[o]) * 100}%`,
|
|
918
|
+
"stop-color": i(ua)("#FFFFFF", 0),
|
|
915
919
|
"stop-opacity": "0"
|
|
916
|
-
}, null, 8,
|
|
920
|
+
}, null, 8, xa),
|
|
917
921
|
y("stop", {
|
|
918
|
-
offset: `${(1 - te.value /
|
|
922
|
+
offset: `${(1 - te.value / ot.value[o] / 2) * 100}%`,
|
|
919
923
|
"stop-color": "#FFFFFF",
|
|
920
924
|
"stop-opacity": e.value.style.chart.gradientIntensity / 100
|
|
921
|
-
}, null, 8,
|
|
922
|
-
s[
|
|
925
|
+
}, null, 8, _a),
|
|
926
|
+
s[5] || (s[5] = y("stop", {
|
|
923
927
|
offset: "100%",
|
|
924
928
|
"stop-color": "#FFFFFF",
|
|
925
929
|
"stop-opacity": "0"
|
|
926
930
|
}, null, -1))
|
|
927
|
-
], 8,
|
|
931
|
+
], 8, Ca))), 256))
|
|
928
932
|
]),
|
|
929
933
|
y("defs", null, [
|
|
930
934
|
y("filter", {
|
|
@@ -938,12 +942,12 @@ const ml = ["id"], wl = ["xmlns", "viewBox"], $l = ["width", "height"], kl = ["i
|
|
|
938
942
|
in: "SourceGraphic",
|
|
939
943
|
stdDeviation: 2,
|
|
940
944
|
id: `blur_std_${p.value}`
|
|
941
|
-
}, null, 8,
|
|
942
|
-
s[
|
|
945
|
+
}, null, 8, Ta),
|
|
946
|
+
s[6] || (s[6] = y("feColorMatrix", {
|
|
943
947
|
type: "saturate",
|
|
944
948
|
values: "0"
|
|
945
949
|
}, null, -1))
|
|
946
|
-
], 8,
|
|
950
|
+
], 8, Aa),
|
|
947
951
|
y("filter", {
|
|
948
952
|
id: `shadow_${p.value}`,
|
|
949
953
|
"color-interpolation-filters": "sRGB"
|
|
@@ -954,51 +958,51 @@ const ml = ["id"], wl = ["xmlns", "viewBox"], $l = ["width", "height"], kl = ["i
|
|
|
954
958
|
stdDeviation: "10",
|
|
955
959
|
"flood-opacity": "0.5",
|
|
956
960
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
957
|
-
}, null, 8,
|
|
958
|
-
], 8,
|
|
961
|
+
}, null, 8, Oa)
|
|
962
|
+
], 8, Na)
|
|
959
963
|
]),
|
|
960
964
|
y("defs", null, [
|
|
961
|
-
(n(!0), r(
|
|
962
|
-
key: `path-full-${
|
|
963
|
-
id: `path-full-${
|
|
964
|
-
d:
|
|
965
|
+
(n(!0), r(A, null, T(q.value, (l, o) => (n(), r("path", {
|
|
966
|
+
key: `path-full-${o}`,
|
|
967
|
+
id: `path-full-${o}-${p.value}`,
|
|
968
|
+
d: l.fullCirclePath,
|
|
965
969
|
fill: "none"
|
|
966
|
-
}, null, 8,
|
|
970
|
+
}, null, 8, Sa))), 128))
|
|
967
971
|
]),
|
|
968
|
-
(n(!0), r(
|
|
969
|
-
|
|
972
|
+
(n(!0), r(A, null, T(q.value, (l, o) => (n(), r("g", null, [
|
|
973
|
+
l.hasData ? (n(!0), r(A, { key: 0 }, T(l.donut.filter((t) => !t.ghost), (t, u) => (n(), r("g", null, [
|
|
970
974
|
y("path", {
|
|
971
975
|
class: "vue-ui-donut-arc-path",
|
|
972
976
|
d: t.arcSlice,
|
|
973
977
|
fill: t.color,
|
|
974
978
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
975
979
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
976
|
-
filter:
|
|
977
|
-
}, null, 8,
|
|
978
|
-
]))), 256)) : (n(!0), r(
|
|
980
|
+
filter: nt(t, u)
|
|
981
|
+
}, null, 8, Ia)
|
|
982
|
+
]))), 256)) : (n(!0), r(A, { key: 1 }, T(l.skeleton, (t, u) => (n(), r("g", null, [
|
|
979
983
|
y("path", {
|
|
980
984
|
class: "vue-ui-donut-arc-path",
|
|
981
985
|
d: t.arcSlice,
|
|
982
986
|
fill: t.color,
|
|
983
987
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
984
988
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
985
|
-
}, null, 8,
|
|
989
|
+
}, null, 8, Fa)
|
|
986
990
|
]))), 256))
|
|
987
991
|
]))), 256)),
|
|
988
|
-
e.value.style.chart.useGradient ? (n(), r("g",
|
|
989
|
-
(n(!0), r(
|
|
992
|
+
e.value.style.chart.useGradient ? (n(), r("g", Va, [
|
|
993
|
+
(n(!0), r(A, null, T(st.value, (l, o) => (n(), r("g", null, [
|
|
990
994
|
y("path", {
|
|
991
|
-
d:
|
|
992
|
-
fill: `url(#radial_${p.value}_${
|
|
995
|
+
d: l.donut.arcSlice,
|
|
996
|
+
fill: `url(#radial_${p.value}_${o})`,
|
|
993
997
|
stroke: "transparent",
|
|
994
998
|
"stroke-width": "0"
|
|
995
|
-
}, null, 8,
|
|
999
|
+
}, null, 8, Pa)
|
|
996
1000
|
]))), 256))
|
|
997
|
-
])) :
|
|
998
|
-
e.value.style.chart.layout.labels.dataLabels.showDonutName ? (n(), r("g",
|
|
999
|
-
e.value.style.chart.layout.labels.dataLabels.curvedDonutName ? (n(!0), r(
|
|
1000
|
-
(n(!0), r(
|
|
1001
|
-
u === 0 &&
|
|
1001
|
+
])) : $("", !0),
|
|
1002
|
+
e.value.style.chart.layout.labels.dataLabels.showDonutName ? (n(), r("g", Da, [
|
|
1003
|
+
e.value.style.chart.layout.labels.dataLabels.curvedDonutName ? (n(!0), r(A, { key: 0 }, T(q.value, (l, o) => (n(), r("g", null, [
|
|
1004
|
+
(n(!0), r(A, null, T(l.donut, (t, u) => (n(), r("g", null, [
|
|
1005
|
+
u === 0 && c.value.width && c.value.height ? (n(), r("text", {
|
|
1002
1006
|
key: 0,
|
|
1003
1007
|
class: z({ animated: e.value.useCssAnimation }),
|
|
1004
1008
|
"text-anchor": "middle",
|
|
@@ -1008,42 +1012,42 @@ const ml = ["id"], wl = ["xmlns", "viewBox"], $l = ["width", "height"], kl = ["i
|
|
|
1008
1012
|
dy: e.value.style.chart.layout.labels.dataLabels.donutNameOffsetY
|
|
1009
1013
|
}, [
|
|
1010
1014
|
y("textPath", {
|
|
1011
|
-
href: `#path-full-${
|
|
1015
|
+
href: `#path-full-${o}-${p.value}`,
|
|
1012
1016
|
startOffset: "50%",
|
|
1013
1017
|
"text-anchor": "middle",
|
|
1014
1018
|
method: "align",
|
|
1015
1019
|
spacing: "auto",
|
|
1016
1020
|
side: "right"
|
|
1017
|
-
},
|
|
1018
|
-
source:
|
|
1021
|
+
}, S(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? i(bt)({
|
|
1022
|
+
source: l.name,
|
|
1019
1023
|
length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
|
|
1020
|
-
}) :
|
|
1021
|
-
], 10,
|
|
1024
|
+
}) : l.name), 9, Ma)
|
|
1025
|
+
], 10, za)) : $("", !0)
|
|
1022
1026
|
]))), 256))
|
|
1023
|
-
]))), 256)) : (n(!0), r(
|
|
1024
|
-
(n(!0), r(
|
|
1025
|
-
u === 0 &&
|
|
1027
|
+
]))), 256)) : (n(!0), r(A, { key: 1 }, T(q.value, (l, o) => (n(), r("g", null, [
|
|
1028
|
+
(n(!0), r(A, null, T(l.donut, (t, u) => (n(), r("g", null, [
|
|
1029
|
+
u === 0 && c.value.width && c.value.height ? (n(), r("text", {
|
|
1026
1030
|
key: 0,
|
|
1027
1031
|
class: z({ animated: e.value.useCssAnimation }),
|
|
1028
|
-
x:
|
|
1032
|
+
x: c.value.width / 2,
|
|
1029
1033
|
y: t.startY - e.value.style.chart.layout.labels.dataLabels.fontSize + e.value.style.chart.layout.labels.dataLabels.donutNameOffsetY,
|
|
1030
1034
|
"text-anchor": "middle",
|
|
1031
1035
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1032
1036
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
|
|
1033
1037
|
fill: e.value.style.chart.layout.labels.dataLabels.color
|
|
1034
|
-
},
|
|
1035
|
-
source:
|
|
1038
|
+
}, S(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? i(bt)({
|
|
1039
|
+
source: l.name,
|
|
1036
1040
|
length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
|
|
1037
|
-
}) :
|
|
1041
|
+
}) : l.name), 11, Ea)) : $("", !0)
|
|
1038
1042
|
]))), 256))
|
|
1039
1043
|
]))), 256))
|
|
1040
|
-
])) :
|
|
1041
|
-
e.value.style.chart.layout.labels.dataLabels.show ? (n(), r("g",
|
|
1042
|
-
(n(!0), r(
|
|
1043
|
-
(n(!0), r(
|
|
1044
|
-
filter:
|
|
1044
|
+
])) : $("", !0),
|
|
1045
|
+
e.value.style.chart.layout.labels.dataLabels.show ? (n(), r("g", Ba, [
|
|
1046
|
+
(n(!0), r(A, null, T(q.value, (l, o) => (n(), r("g", null, [
|
|
1047
|
+
(n(!0), r(A, null, T(l.donut.filter((t) => !t.ghost), (t, u) => (n(), r("g", {
|
|
1048
|
+
filter: nt(t, u)
|
|
1045
1049
|
}, [
|
|
1046
|
-
|
|
1050
|
+
ft(y("text", {
|
|
1047
1051
|
class: z({ animated: e.value.useCssAnimation }),
|
|
1048
1052
|
opacity: $e(t) ? 1 : 0,
|
|
1049
1053
|
"text-anchor": i(Q)(t, !0).anchor,
|
|
@@ -1052,7 +1056,7 @@ const ml = ["id"], wl = ["xmlns", "viewBox"], $l = ["width", "height"], kl = ["i
|
|
|
1052
1056
|
!1,
|
|
1053
1057
|
e.value.style.chart.layout.labels.dataLabels.offsetX
|
|
1054
1058
|
).x || 0,
|
|
1055
|
-
y: i(
|
|
1059
|
+
y: i(Pe)(
|
|
1056
1060
|
t,
|
|
1057
1061
|
e.value.style.chart.layout.labels.dataLabels.offsetY,
|
|
1058
1062
|
e.value.style.chart.layout.labels.dataLabels.offsetY
|
|
@@ -1060,17 +1064,17 @@ const ml = ["id"], wl = ["xmlns", "viewBox"], $l = ["width", "height"], kl = ["i
|
|
|
1060
1064
|
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
1061
1065
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1062
1066
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldPercentage ? "bold" : "normal"
|
|
1063
|
-
},
|
|
1067
|
+
}, S(i(O)({
|
|
1064
1068
|
v: t.proportion * 100,
|
|
1065
1069
|
s: "%",
|
|
1066
1070
|
r: e.value.style.chart.layout.labels.dataLabels.roundingPercentage
|
|
1067
|
-
})), 11,
|
|
1071
|
+
})), 11, Ua), [
|
|
1068
1072
|
[
|
|
1069
|
-
|
|
1070
|
-
|
|
1073
|
+
yt,
|
|
1074
|
+
k.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage
|
|
1071
1075
|
]
|
|
1072
1076
|
]),
|
|
1073
|
-
|
|
1077
|
+
ft(y("text", {
|
|
1074
1078
|
class: z({ animated: e.value.useCssAnimation }),
|
|
1075
1079
|
opacity: $e(t) ? 1 : 0,
|
|
1076
1080
|
"text-anchor": i(Q)(t, !0).anchor,
|
|
@@ -1079,7 +1083,7 @@ const ml = ["id"], wl = ["xmlns", "viewBox"], $l = ["width", "height"], kl = ["i
|
|
|
1079
1083
|
!1,
|
|
1080
1084
|
e.value.style.chart.layout.labels.dataLabels.offsetX
|
|
1081
1085
|
).x || 0,
|
|
1082
|
-
y: i(
|
|
1086
|
+
y: i(Pe)(
|
|
1083
1087
|
t,
|
|
1084
1088
|
e.value.style.chart.layout.labels.dataLabels.offsetY,
|
|
1085
1089
|
e.value.style.chart.layout.labels.dataLabels.offsetY
|
|
@@ -1087,23 +1091,23 @@ const ml = ["id"], wl = ["xmlns", "viewBox"], $l = ["width", "height"], kl = ["i
|
|
|
1087
1091
|
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
1088
1092
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1089
1093
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
|
|
1090
|
-
}, " (" +
|
|
1094
|
+
}, " (" + S(i(j)(
|
|
1091
1095
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
1092
1096
|
t.value,
|
|
1093
|
-
i(
|
|
1097
|
+
i(O)({
|
|
1094
1098
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1095
1099
|
v: t.value,
|
|
1096
1100
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
1097
1101
|
r: e.value.style.chart.layout.labels.dataLabels.roundingValue
|
|
1098
1102
|
}),
|
|
1099
|
-
{ datapoint: t, seriesIndex:
|
|
1100
|
-
)) + ") ", 11,
|
|
1103
|
+
{ datapoint: t, seriesIndex: o, datapointIndex: u }
|
|
1104
|
+
)) + ") ", 11, Ga), [
|
|
1101
1105
|
[
|
|
1102
|
-
|
|
1103
|
-
|
|
1106
|
+
yt,
|
|
1107
|
+
k.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue
|
|
1104
1108
|
]
|
|
1105
1109
|
]),
|
|
1106
|
-
$e(t) &&
|
|
1110
|
+
$e(t) && k.value.dataLabels.show && !e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue ? (n(), r("text", {
|
|
1107
1111
|
key: 0,
|
|
1108
1112
|
class: z({ animated: e.value.useCssAnimation }),
|
|
1109
1113
|
"text-anchor": i(Q)(t, !0).anchor,
|
|
@@ -1112,7 +1116,7 @@ const ml = ["id"], wl = ["xmlns", "viewBox"], $l = ["width", "height"], kl = ["i
|
|
|
1112
1116
|
!1,
|
|
1113
1117
|
e.value.style.chart.layout.labels.dataLabels.offsetX
|
|
1114
1118
|
).x || 0,
|
|
1115
|
-
y: i(
|
|
1119
|
+
y: i(Pe)(
|
|
1116
1120
|
t,
|
|
1117
1121
|
e.value.style.chart.layout.labels.dataLabels.offsetY,
|
|
1118
1122
|
e.value.style.chart.layout.labels.dataLabels.offsetY
|
|
@@ -1120,44 +1124,42 @@ const ml = ["id"], wl = ["xmlns", "viewBox"], $l = ["width", "height"], kl = ["i
|
|
|
1120
1124
|
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
1121
1125
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1122
1126
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
|
|
1123
|
-
},
|
|
1127
|
+
}, S(i(j)(
|
|
1124
1128
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
1125
1129
|
t.value,
|
|
1126
|
-
i(
|
|
1130
|
+
i(O)({
|
|
1127
1131
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1128
1132
|
v: t.value,
|
|
1129
1133
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
1130
1134
|
r: e.value.style.chart.layout.labels.dataLabels.roundingValue
|
|
1131
1135
|
}),
|
|
1132
|
-
{ datapoint: t, seriesIndex:
|
|
1133
|
-
)), 11,
|
|
1134
|
-
], 8,
|
|
1136
|
+
{ datapoint: t, seriesIndex: o, datapointIndex: u }
|
|
1137
|
+
)), 11, Ya)) : $("", !0)
|
|
1138
|
+
], 8, Ra))), 256))
|
|
1135
1139
|
]))), 256))
|
|
1136
|
-
])) :
|
|
1137
|
-
(n(!0), r(
|
|
1138
|
-
(n(!0), r(
|
|
1140
|
+
])) : $("", !0),
|
|
1141
|
+
(n(!0), r(A, null, T(q.value, (l, o) => (n(), r("g", null, [
|
|
1142
|
+
(n(!0), r(A, null, T(l.donut, (t, u) => (n(), r("g", null, [
|
|
1139
1143
|
y("path", {
|
|
1140
1144
|
d: t.arcSlice,
|
|
1141
1145
|
fill: he.value === t.id ? e.value.style.chart.layout.donut.selectedColor : "transparent",
|
|
1142
|
-
onMouseenter: (
|
|
1146
|
+
onMouseenter: (v) => zt({
|
|
1143
1147
|
datapoint: t,
|
|
1144
1148
|
seriesIndex: t.seriesIndex
|
|
1145
1149
|
}),
|
|
1146
|
-
onClick: (
|
|
1147
|
-
onMouseleave:
|
|
1148
|
-
|
|
1149
|
-
})
|
|
1150
|
-
}, null, 40, Gl)
|
|
1150
|
+
onClick: (v) => Vt({ datapoint: t, index: u, seriesIndex: t.seriesIndex }),
|
|
1151
|
+
onMouseleave: (v) => Dt({ datapoint: t, seriesIndex: t.seriesIndex })
|
|
1152
|
+
}, null, 40, Xa)
|
|
1151
1153
|
]))), 256))
|
|
1152
1154
|
]))), 256)),
|
|
1153
|
-
|
|
1155
|
+
_(a.$slots, "svg", { svg: c.value }, void 0, !0)
|
|
1154
1156
|
], 512)
|
|
1155
|
-
], 14,
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
])) :
|
|
1159
|
-
|
|
1160
|
-
show:
|
|
1157
|
+
], 14, ka)),
|
|
1158
|
+
a.$slots.watermark ? (n(), r("div", Wa, [
|
|
1159
|
+
_(a.$slots, "watermark", H(J({ isPrinting: i(Qe) || i(Ze) })), void 0, !0)
|
|
1160
|
+
])) : $("", !0),
|
|
1161
|
+
ht(i(Tt), {
|
|
1162
|
+
show: k.value.showTooltip && ve.value,
|
|
1161
1163
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1162
1164
|
color: e.value.style.chart.tooltip.color,
|
|
1163
1165
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -1168,15 +1170,15 @@ const ml = ["id"], wl = ["xmlns", "viewBox"], $l = ["width", "height"], kl = ["i
|
|
|
1168
1170
|
position: e.value.style.chart.tooltip.position,
|
|
1169
1171
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1170
1172
|
parent: V.value,
|
|
1171
|
-
content:
|
|
1173
|
+
content: ce.value,
|
|
1172
1174
|
isFullscreen: Y.value,
|
|
1173
|
-
isCustom: i(
|
|
1175
|
+
isCustom: i(gt)(e.value.style.chart.tooltip.customFormat)
|
|
1174
1176
|
}, {
|
|
1175
|
-
"tooltip-before":
|
|
1176
|
-
|
|
1177
|
+
"tooltip-before": x(() => [
|
|
1178
|
+
_(a.$slots, "tooltip-before", H(J({ ...we.value })), void 0, !0)
|
|
1177
1179
|
]),
|
|
1178
|
-
"tooltip-after":
|
|
1179
|
-
|
|
1180
|
+
"tooltip-after": x(() => [
|
|
1181
|
+
_(a.$slots, "tooltip-after", H(J({ ...we.value })), void 0, !0)
|
|
1180
1182
|
]),
|
|
1181
1183
|
_: 3
|
|
1182
1184
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
@@ -1186,58 +1188,58 @@ const ml = ["id"], wl = ["xmlns", "viewBox"], $l = ["width", "height"], kl = ["i
|
|
|
1186
1188
|
ref: fe,
|
|
1187
1189
|
class: z({ "vue-ui-nested-donuts-legend": ke.value.length > 1 })
|
|
1188
1190
|
}, [
|
|
1189
|
-
(n(!0), r(
|
|
1190
|
-
key: `legend_${
|
|
1191
|
-
legendSet:
|
|
1192
|
-
config:
|
|
1193
|
-
onClickMarker: s[
|
|
1191
|
+
(n(!0), r(A, null, T(ke.value, (l, o) => (n(), G(pa, {
|
|
1192
|
+
key: `legend_${o}_${Ge.value}`,
|
|
1193
|
+
legendSet: l,
|
|
1194
|
+
config: Mt.value,
|
|
1195
|
+
onClickMarker: s[0] || (s[0] = ({ legend: t }) => me(t))
|
|
1194
1196
|
}, {
|
|
1195
|
-
legendTitle:
|
|
1196
|
-
t[0] && t[0].arcOf ? (n(), r("div",
|
|
1197
|
+
legendTitle: x(({ titleSet: t }) => [
|
|
1198
|
+
t[0] && t[0].arcOf ? (n(), r("div", qa, S(t[0].arcOf), 1)) : $("", !0)
|
|
1197
1199
|
]),
|
|
1198
|
-
item:
|
|
1200
|
+
item: x(({ legend: t, index: u }) => [
|
|
1199
1201
|
y("div", {
|
|
1200
|
-
onClick: (
|
|
1201
|
-
style: ie(`opacity:${
|
|
1202
|
-
},
|
|
1202
|
+
onClick: (v) => me(t),
|
|
1203
|
+
style: ie(`opacity:${L.value.includes(t.id) ? 0.5 : 1}`)
|
|
1204
|
+
}, S(t.name) + S(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + S(e.value.style.chart.legend.showValue ? i(j)(
|
|
1203
1205
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
1204
1206
|
t.value,
|
|
1205
|
-
i(
|
|
1207
|
+
i(O)({
|
|
1206
1208
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1207
1209
|
v: t.value,
|
|
1208
1210
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
1209
1211
|
r: e.value.style.chart.legend.roundingValue
|
|
1210
1212
|
}),
|
|
1211
1213
|
{ datapoint: t, seriesIndex: u }
|
|
1212
|
-
) : "") + " " +
|
|
1214
|
+
) : "") + " " + S(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(O)({
|
|
1213
1215
|
v: t.value / t.total * 100,
|
|
1214
1216
|
s: "%",
|
|
1215
1217
|
r: e.value.style.chart.legend.roundingPercentage
|
|
1216
|
-
})}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13,
|
|
1218
|
+
})}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, Ha)
|
|
1217
1219
|
]),
|
|
1218
1220
|
_: 2
|
|
1219
1221
|
}, 1032, ["legendSet", "config"]))), 128))
|
|
1220
|
-
], 2)) :
|
|
1221
|
-
e.value.style.chart.legend.show ?
|
|
1222
|
+
], 2)) : $("", !0),
|
|
1223
|
+
e.value.style.chart.legend.show ? $("", !0) : (n(), r("div", {
|
|
1222
1224
|
key: 6,
|
|
1223
1225
|
ref_key: "chartLegend",
|
|
1224
1226
|
ref: fe
|
|
1225
1227
|
}, [
|
|
1226
|
-
|
|
1228
|
+
_(a.$slots, "legend", { legend: ke.value }, void 0, !0)
|
|
1227
1229
|
], 512)),
|
|
1228
|
-
|
|
1230
|
+
a.$slots.source ? (n(), r("div", {
|
|
1229
1231
|
key: 7,
|
|
1230
1232
|
ref_key: "source",
|
|
1231
|
-
ref:
|
|
1233
|
+
ref: Ee,
|
|
1232
1234
|
dir: "auto"
|
|
1233
1235
|
}, [
|
|
1234
|
-
|
|
1235
|
-
], 512)) :
|
|
1236
|
-
de.value ? (n(), G(i(
|
|
1236
|
+
_(a.$slots, "source", {}, void 0, !0)
|
|
1237
|
+
], 512)) : $("", !0),
|
|
1238
|
+
de.value ? (n(), G(i(Ct), {
|
|
1237
1239
|
key: 8,
|
|
1238
1240
|
hideDetails: "",
|
|
1239
1241
|
config: {
|
|
1240
|
-
open:
|
|
1242
|
+
open: k.value.showTable,
|
|
1241
1243
|
maxHeight: 1e4,
|
|
1242
1244
|
body: {
|
|
1243
1245
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -1249,34 +1251,34 @@ const ml = ["id"], wl = ["xmlns", "viewBox"], $l = ["width", "height"], kl = ["i
|
|
|
1249
1251
|
}
|
|
1250
1252
|
}
|
|
1251
1253
|
}, {
|
|
1252
|
-
content:
|
|
1253
|
-
(n(), G(i(
|
|
1254
|
-
key: `table_${
|
|
1254
|
+
content: x(() => [
|
|
1255
|
+
(n(), G(i(xt), {
|
|
1256
|
+
key: `table_${Ue.value}`,
|
|
1255
1257
|
colNames: oe.value.colNames,
|
|
1256
1258
|
head: oe.value.head,
|
|
1257
1259
|
body: oe.value.body,
|
|
1258
1260
|
config: oe.value.config,
|
|
1259
1261
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1260
|
-
onClose: s[
|
|
1262
|
+
onClose: s[1] || (s[1] = (l) => k.value.showTable = !1)
|
|
1261
1263
|
}, {
|
|
1262
|
-
th:
|
|
1264
|
+
th: x(({ th: l }) => [
|
|
1263
1265
|
y("div", {
|
|
1264
|
-
innerHTML:
|
|
1266
|
+
innerHTML: l,
|
|
1265
1267
|
style: { display: "flex", "align-items": "center" }
|
|
1266
|
-
}, null, 8,
|
|
1268
|
+
}, null, 8, Ja)
|
|
1267
1269
|
]),
|
|
1268
|
-
td:
|
|
1269
|
-
|
|
1270
|
+
td: x(({ td: l }) => [
|
|
1271
|
+
Kt(S(l.name || l), 1)
|
|
1270
1272
|
]),
|
|
1271
1273
|
_: 1
|
|
1272
1274
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
1273
1275
|
]),
|
|
1274
1276
|
_: 1
|
|
1275
|
-
}, 8, ["config"])) :
|
|
1276
|
-
i(ye) ? (n(), G(
|
|
1277
|
-
], 46,
|
|
1277
|
+
}, 8, ["config"])) : $("", !0),
|
|
1278
|
+
i(ye) ? (n(), G(ma, { key: 9 })) : $("", !0)
|
|
1279
|
+
], 46, $a));
|
|
1278
1280
|
}
|
|
1279
|
-
},
|
|
1281
|
+
}, il = /* @__PURE__ */ wa(Ka, [["__scopeId", "data-v-469c5bfc"]]);
|
|
1280
1282
|
export {
|
|
1281
|
-
|
|
1283
|
+
il as default
|
|
1282
1284
|
};
|