vue-data-ui 3.0.23 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-B1Op9F3x.js → Arrow-xQM7mBzd.js} +1 -1
- package/dist/{BaseDraggableDialog-B4OaMIom.js → BaseDraggableDialog-B2BQC0-h.js} +72 -59
- package/dist/{BaseIcon-CgUOIGjr.js → BaseIcon-DLesaZpW.js} +1 -1
- package/dist/{useLoading-D7YHNtLX.js → BaseScanner-BgWxam9d.js} +11 -11
- package/dist/{ColorPicker-C0nf8VH0.js → ColorPicker-BKvJvFtX.js} +2 -2
- package/dist/DataTable-BAf4Obr9.js +140 -0
- package/dist/{Legend-CyYXMSsW.js → Legend-8_V5egWW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-D63qeScu.js → NonSvgPenAndPaper-Cq4fHmA0.js} +3 -3
- package/dist/{PackageVersion-B6M-3jRt.js → PackageVersion-Cv_ypT0N.js} +1 -1
- package/dist/{PenAndPaper-zym5uEeN.js → PenAndPaper-B6OvfyHH.js} +3 -3
- package/dist/{Shape-CYVs2kYz.js → Shape-Cjca5zta.js} +1 -1
- package/dist/{Slicer-BTIFUO4x.js → Slicer-6w3K8gAc.js} +2 -2
- package/dist/{SparkTooltip-CNz7AYUL.js → SparkTooltip-BV4Z-NMp.js} +1 -1
- package/dist/{Title-D_e0SFWS.js → Title-Dz-j6ERs.js} +1 -1
- package/dist/{Tooltip-DjVoFYj1.js → Tooltip-BTGOEC7w.js} +1 -1
- package/dist/{UserOptions-z0NWZ7aQ.js → UserOptions-CsDlFB0L.js} +2 -2
- package/dist/{dom-to-png-DD0au3Qz.js → dom-to-png-BOu5-Ohz.js} +1 -1
- package/dist/{img-z5p1gGfY.js → img-gBDz7xQQ.js} +1 -1
- package/dist/{index-BEuUtONc.js → index-BKQqb9lF.js} +37 -2
- package/dist/{pdf-BmUjVBni.js → pdf-Cjsn5GEE.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +35 -0
- package/dist/types/vue-data-ui.d.ts +35 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-CchB8S-o.js → useAutoSizeLabelsInsideViewbox-IO2dh0Uq.js} +1 -1
- package/dist/{useNestedProp-DhLFhguL.js → useNestedProp-aBOhgs4U.js} +1 -1
- package/dist/{usePrinter-DiB0_UNt.js → usePrinter-BzuXiubT.js} +2 -2
- package/dist/useTableResponsive-Cbx-ACcP.js +22 -0
- package/dist/{vue-data-ui-DJIAas-7.js → vue-data-ui-B6eM6hF3.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-DBeWmnvH.js +1369 -0
- package/dist/{vue-ui-accordion-B4YfUjZ5.js → vue-ui-accordion-B5QeV3BK.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CkXXNN79.js → vue-ui-age-pyramid-rZFdUsgz.js} +333 -286
- package/dist/{vue-ui-annotator-DnSsIkvU.js → vue-ui-annotator-CCCuslrT.js} +2 -2
- package/dist/{vue-ui-bullet-kZkBsWPY.js → vue-ui-bullet-DhJf9mvK.js} +8 -8
- package/dist/{vue-ui-candlestick-CIn0xZm0.js → vue-ui-candlestick-CGVtDKqZ.js} +453 -406
- package/dist/{vue-ui-carousel-table-f1FDOAqH.js → vue-ui-carousel-table-DLAR3WY8.js} +4 -4
- package/dist/{vue-ui-chestnut-B-jSj7FT.js → vue-ui-chestnut-BXnSxoXB.js} +563 -520
- package/dist/vue-ui-chord-DH_MwAKX.js +1100 -0
- package/dist/vue-ui-circle-pack-Cx_E1R63.js +755 -0
- package/dist/{vue-ui-cursor-DdBrui6i.js → vue-ui-cursor-CEvH1qDS.js} +2 -2
- package/dist/{vue-ui-dashboard-DSUfW7mI.js → vue-ui-dashboard-CvduVgEy.js} +62 -62
- package/dist/{vue-ui-digits-Cb3Wq5WR.js → vue-ui-digits-PTozKs3l.js} +2 -2
- package/dist/{vue-ui-donut-BCZqlAO3.js → vue-ui-donut-CsEtKJJD.js} +477 -431
- package/dist/{vue-ui-donut-evolution-HmQBq9VP.js → vue-ui-donut-evolution-DD7o-CxF.js} +482 -435
- package/dist/{vue-ui-dumbbell-B5w2oqNO.js → vue-ui-dumbbell-DfPYl3fu.js} +443 -398
- package/dist/vue-ui-flow-CSTTZHwg.js +900 -0
- package/dist/vue-ui-funnel-C-NUZqIo.js +666 -0
- package/dist/vue-ui-galaxy-BwsZnU6T.js +744 -0
- package/dist/{vue-ui-gauge-C_KLPWk2.js → vue-ui-gauge-D9MUneq0.js} +8 -8
- package/dist/{vue-ui-gizmo-CsPX25Ti.js → vue-ui-gizmo-Dnzs9wSf.js} +4 -4
- package/dist/{vue-ui-heatmap-BHq6hBaL.js → vue-ui-heatmap-CYaQIhy8.js} +501 -461
- package/dist/{vue-ui-history-plot-DgpYiaUD.js → vue-ui-history-plot-DMTFzl-_.js} +408 -361
- package/dist/{vue-ui-kpi-DOgibU7W.js → vue-ui-kpi-CkPotdff.js} +3 -3
- package/dist/{vue-ui-mini-loader-BjsQAxDx.js → vue-ui-mini-loader-CCE-bDOJ.js} +2 -2
- package/dist/vue-ui-molecule-DaN5lroq.js +702 -0
- package/dist/{vue-ui-mood-radar-DMwVl3wz.js → vue-ui-mood-radar-tM0mmZh8.js} +342 -291
- package/dist/{vue-ui-nested-donuts-H0GzIAF0.js → vue-ui-nested-donuts-RB4r6beI.js} +548 -502
- package/dist/{vue-ui-onion-A6nKcus1.js → vue-ui-onion-CxDozHg3.js} +363 -317
- package/dist/vue-ui-parallel-coordinate-plot-CK9nNExU.js +979 -0
- package/dist/vue-ui-quadrant-C7tLJYn7.js +1483 -0
- package/dist/{vue-ui-quick-chart-mwXE3w_o.js → vue-ui-quick-chart-MUBAkrHb.js} +7 -7
- package/dist/vue-ui-radar-Br4K80I9.js +858 -0
- package/dist/{vue-ui-rating-CleNHFo5.js → vue-ui-rating-NtvT9r_M.js} +2 -2
- package/dist/{vue-ui-relation-circle-CMCH7Ia6.js → vue-ui-relation-circle-CPQjAy1g.js} +8 -8
- package/dist/vue-ui-ridgeline-C2M_Cjlh.js +1204 -0
- package/dist/vue-ui-rings-DEru-cWN.js +785 -0
- package/dist/{vue-ui-scatter-kv28dsT3.js → vue-ui-scatter-CJKkiKle.js} +594 -548
- package/dist/{vue-ui-skeleton-DCNOYh9x.js → vue-ui-skeleton--twnjS2t.js} +3 -3
- package/dist/{vue-ui-smiley-DcS0CM-z.js → vue-ui-smiley-CNccdPZ7.js} +2 -2
- package/dist/{vue-ui-spark-trend-LHgReXth.js → vue-ui-spark-trend-9BFkkC0u.js} +4 -4
- package/dist/{vue-ui-sparkbar-Da315uRq.js → vue-ui-sparkbar-RYAThoA4.js} +4 -4
- package/dist/{vue-ui-sparkgauge-BeAkjGap.js → vue-ui-sparkgauge-DkPlmgMF.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-Cy19W3y1.js → vue-ui-sparkhistogram-6EkCyYRF.js} +5 -5
- package/dist/{vue-ui-sparkline-IjlQWgs3.js → vue-ui-sparkline-Bl3nj8zd.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-CoFgOa3r.js → vue-ui-sparkstackbar-B88lA7iy.js} +4 -4
- package/dist/{vue-ui-stackbar-fbCs4sHF.js → vue-ui-stackbar-Csj7NhT6.js} +525 -479
- package/dist/{vue-ui-strip-plot-Cm8Zr6RE.js → vue-ui-strip-plot-yY9NsUUI.js} +390 -343
- package/dist/{vue-ui-table-q7jWgS26.js → vue-ui-table-Dg6U31ex.js} +3 -3
- package/dist/{vue-ui-table-heatmap-CsK9gR1G.js → vue-ui-table-heatmap-BWU7CAWP.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CXTPucPr.js → vue-ui-table-sparkline-DV4Y9aRL.js} +4 -4
- package/dist/{vue-ui-thermometer-BFxdNgrd.js → vue-ui-thermometer-C3fKamV-.js} +8 -8
- package/dist/{vue-ui-timer-BsoeDFjK.js → vue-ui-timer-6VAK9XyF.js} +5 -5
- package/dist/{vue-ui-tiremarks-BW_jSayT.js → vue-ui-tiremarks-BB-KAkF7.js} +7 -7
- package/dist/vue-ui-treemap-GrXkD_3Z.js +1092 -0
- package/dist/{vue-ui-vertical-bar-OrLV4CxH.js → vue-ui-vertical-bar-Mmz6u4aX.js} +504 -461
- package/dist/{vue-ui-waffle-BA6rNfVs.js → vue-ui-waffle-DzPVRUOA.js} +416 -370
- package/dist/{vue-ui-wheel-B_BkI-5f.js → vue-ui-wheel-idRCvS5t.js} +7 -7
- package/dist/vue-ui-word-cloud-B2641uNP.js +811 -0
- package/dist/{vue-ui-world-B4mKuSSn.js → vue-ui-world-D6s5Eph8.js} +512 -466
- package/dist/{vue-ui-xy-m1SWJk77.js → vue-ui-xy-BKTGSvfU.js} +1551 -1500
- package/dist/vue-ui-xy-canvas-BOQyxVRl.js +1291 -0
- package/package.json +1 -1
- package/dist/DataTable-nO6ydJO2.js +0 -133
- package/dist/vue-ui-3d-bar-B56WqLJ-.js +0 -1323
- package/dist/vue-ui-chord-Ck4yV3Tb.js +0 -1049
- package/dist/vue-ui-circle-pack-BAfRk_Hd.js +0 -709
- package/dist/vue-ui-flow-BXkxtUoF.js +0 -852
- package/dist/vue-ui-funnel-DFvDO--q.js +0 -620
- package/dist/vue-ui-galaxy-BXNLLc3U.js +0 -691
- package/dist/vue-ui-molecule-BtyMTwEn.js +0 -656
- package/dist/vue-ui-parallel-coordinate-plot-DZ9_0F5c.js +0 -927
- package/dist/vue-ui-quadrant-CUggSeUN.js +0 -1432
- package/dist/vue-ui-radar-BRKZ8e_X.js +0 -807
- package/dist/vue-ui-ridgeline-xW7UrSfR.js +0 -1157
- package/dist/vue-ui-rings-D3NfFMaO.js +0 -739
- package/dist/vue-ui-treemap-DhAYSVB9.js +0 -1046
- package/dist/vue-ui-word-cloud-CrSLGFOK.js +0 -765
- package/dist/vue-ui-xy-canvas-CX2JT6T3.js +0 -1243
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { _ as
|
|
13
|
-
const
|
|
1
|
+
import { defineAsyncComponent as z, computed as x, ref as c, toRefs as jt, watch as te, onMounted as el, shallowRef as yt, onBeforeUnmount as tl, createElementBlock as r, openBlock as u, unref as i, normalizeStyle as ve, normalizeClass as M, createBlock as B, createCommentVNode as $, createElementVNode as p, createVNode as Pe, createSlots as bt, withCtx as C, renderSlot as _, normalizeProps as H, guardReactiveProps as J, Fragment as A, renderList as T, toDisplayString as F, withDirectives as gt, vShow as mt, Teleport as ll, resolveDynamicComponent as al, mergeProps as ol, createTextVNode as wt, nextTick as kt } from "vue";
|
|
2
|
+
import { u as sl, c as ul, t as nl, a as rl, p as Ve, b as il, C as ze, o as dl, f as K, d as vl, G as E, e as cl, m as Me, i as O, X as hl, s as fl, L as $t, q as Be, r as Q, k as le, y as Ct, v as pl, w as yl, z as bl, T as Lt, h as Ee } from "./index-BKQqb9lF.js";
|
|
3
|
+
import { t as gl, u as ml } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as wl, B as kl } from "./BaseScanner-BgWxam9d.js";
|
|
5
|
+
import { u as $l } from "./usePrinter-BzuXiubT.js";
|
|
6
|
+
import { u as xt } from "./useNestedProp-aBOhgs4U.js";
|
|
7
|
+
import { u as Cl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { u as Ll } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
+
import xl from "./img-gBDz7xQQ.js";
|
|
10
|
+
import _l from "./Title-Dz-j6ERs.js";
|
|
11
|
+
import Al from "./Legend-8_V5egWW.js";
|
|
12
|
+
import { _ as Tl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
const Nl = ["id"], Fl = ["id"], Ol = ["xmlns", "viewBox"], Sl = ["width", "height"], Il = ["id"], Dl = ["offset", "stop-color"], Pl = ["offset", "stop-opacity"], Vl = ["id"], zl = ["id"], Ml = ["id"], Bl = ["flood-color"], El = ["id", "d"], Ul = ["d", "fill", "stroke", "stroke-width", "filter"], Rl = ["d", "fill", "stroke", "stroke-width"], Gl = { key: 1 }, Yl = ["d", "fill"], Wl = { key: 2 }, Xl = ["font-size", "font-weight", "fill", "dy"], ql = ["href"], Hl = ["x", "y", "font-size", "font-weight", "fill"], Jl = { key: 3 }, Kl = ["filter"], Ql = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], Zl = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], jl = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], ea = ["d", "fill", "onMouseenter", "onClick", "onMouseleave"], ta = {
|
|
14
14
|
key: 4,
|
|
15
15
|
class: "vue-data-ui-watermark"
|
|
16
|
-
},
|
|
16
|
+
}, la = ["id"], aa = {
|
|
17
17
|
key: 0,
|
|
18
18
|
class: "vue-ui-nested-donuts-legend-title"
|
|
19
|
-
},
|
|
19
|
+
}, oa = ["onClick"], sa = ["innerHTML"], ua = {
|
|
20
20
|
__name: "vue-ui-nested-donuts",
|
|
21
21
|
props: {
|
|
22
22
|
config: {
|
|
@@ -33,19 +33,19 @@ const La = ["id"], Ca = ["id"], _a = ["xmlns", "viewBox"], xa = ["width", "heigh
|
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
emits: ["selectLegend", "selectDatapoint"],
|
|
36
|
-
setup(
|
|
37
|
-
const
|
|
36
|
+
setup(_t, { expose: At, emit: Tt }) {
|
|
37
|
+
const Nt = z(() => import("./Tooltip-BTGOEC7w.js")), Ft = z(() => import("./BaseIcon-DLesaZpW.js")), Ot = z(() => import("./vue-ui-accordion-B5QeV3BK.js")), St = z(() => import("./DataTable-BAf4Obr9.js")), It = z(() => import("./UserOptions-CsDlFB0L.js")), Dt = z(() => import("./PenAndPaper-B6OvfyHH.js")), Pt = z(() => import("./PackageVersion-Cv_ypT0N.js")), Vt = z(() => import("./BaseDraggableDialog-B2BQC0-h.js")), { vue_ui_nested_donuts: zt } = sl(), g = _t, ce = x({
|
|
38
38
|
get() {
|
|
39
39
|
return !!g.dataset && g.dataset.length;
|
|
40
40
|
},
|
|
41
|
-
set(
|
|
42
|
-
return
|
|
41
|
+
set(l) {
|
|
42
|
+
return l;
|
|
43
43
|
}
|
|
44
|
-
}), f = c(
|
|
45
|
-
function
|
|
46
|
-
G.value =
|
|
44
|
+
}), f = c(ul()), he = c(!1), fe = c(""), pe = c(null), Ue = c(0), I = c(null), Re = c(null), ye = c(null), Ge = c(null), Ye = c(null), We = c(0), Xe = c(0), qe = c(0), U = c(!0), R = c([]), Z = c([]), He = c(!1), j = c(null), G = c(!1);
|
|
45
|
+
function Je(l) {
|
|
46
|
+
G.value = l, Ue.value += 1;
|
|
47
47
|
}
|
|
48
|
-
const e = c(
|
|
48
|
+
const e = c(we()), Ke = {
|
|
49
49
|
name: "",
|
|
50
50
|
series: [
|
|
51
51
|
{
|
|
@@ -64,17 +64,17 @@ const La = ["id"], Ca = ["id"], _a = ["xmlns", "viewBox"], xa = ["width", "heigh
|
|
|
64
64
|
color: "#CACACA"
|
|
65
65
|
}
|
|
66
66
|
]
|
|
67
|
-
}, { loading:
|
|
68
|
-
...
|
|
67
|
+
}, { loading: be, FINAL_DATASET: Y, manualLoading: ge } = wl({
|
|
68
|
+
...jt(g),
|
|
69
69
|
FINAL_CONFIG: e,
|
|
70
|
-
prepareConfig:
|
|
70
|
+
prepareConfig: we,
|
|
71
71
|
callback: () => {
|
|
72
72
|
Promise.resolve().then(async () => {
|
|
73
|
-
await
|
|
73
|
+
await et();
|
|
74
74
|
});
|
|
75
75
|
},
|
|
76
|
-
skeletonDataset: [
|
|
77
|
-
skeletonConfig:
|
|
76
|
+
skeletonDataset: [Ke, Ke],
|
|
77
|
+
skeletonConfig: nl({
|
|
78
78
|
defaultConfig: e.value,
|
|
79
79
|
userConfig: {
|
|
80
80
|
useCssAnimation: !1,
|
|
@@ -100,91 +100,91 @@ const La = ["id"], Ca = ["id"], _a = ["xmlns", "viewBox"], xa = ["width", "heigh
|
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
})
|
|
103
|
-
}), { userOptionsVisible:
|
|
103
|
+
}), { userOptionsVisible: me, setUserOptionsVisibility: Qe, keepUserOptionState: Ze } = Cl({ config: e.value }), { svgRef: ae } = Ll({
|
|
104
104
|
config: e.value.style.chart.title
|
|
105
105
|
});
|
|
106
|
-
function
|
|
107
|
-
const
|
|
106
|
+
function we() {
|
|
107
|
+
const l = xt({
|
|
108
108
|
userConfig: g.config,
|
|
109
|
-
defaultConfig:
|
|
109
|
+
defaultConfig: zt
|
|
110
110
|
});
|
|
111
111
|
let s = {};
|
|
112
|
-
return
|
|
113
|
-
|
|
114
|
-
userConfig:
|
|
115
|
-
defaultConfig:
|
|
112
|
+
return l.theme ? s = {
|
|
113
|
+
...xt({
|
|
114
|
+
userConfig: il.vue_ui_nested_donuts[l.theme] || g.config,
|
|
115
|
+
defaultConfig: l
|
|
116
116
|
}),
|
|
117
|
-
customPalette:
|
|
118
|
-
} : s =
|
|
117
|
+
customPalette: rl[l.theme] || Ve
|
|
118
|
+
} : s = l, g.config && ze(g.config, "events.datapointEnter") ? s.events.datapointEnter = g.config.events.datapointEnter : s.events.datapointEnter = null, g.config && ze(g.config, "events.datapointLeave") ? s.events.datapointLeave = g.config.events.datapointLeave : s.events.datapointLeave = null, g.config && ze(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
|
-
(
|
|
123
|
-
|
|
122
|
+
(l) => {
|
|
123
|
+
be.value || (e.value = we()), me.value = !e.value.userOptions.showOnChartHover, tt(), We.value += 1, Xe.value += 1, qe.value += 1, m.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, m.value.showTable = e.value.table.show, m.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
|
|
128
|
-
const { top:
|
|
127
|
+
const je = x(() => {
|
|
128
|
+
const { top: l, right: s, bottom: a, left: o } = e.value.style.chart.padding;
|
|
129
129
|
return {
|
|
130
|
-
css: `padding:${
|
|
131
|
-
top:
|
|
130
|
+
css: `padding:${l}px ${s}px ${a}px ${o}px`,
|
|
131
|
+
top: l,
|
|
132
132
|
right: s,
|
|
133
|
-
bottom:
|
|
133
|
+
bottom: a,
|
|
134
134
|
left: o
|
|
135
135
|
};
|
|
136
136
|
});
|
|
137
|
-
function
|
|
137
|
+
function Mt(l, s = 1e3, a = 50) {
|
|
138
138
|
return new Promise((o) => {
|
|
139
|
-
const t =
|
|
139
|
+
const t = l.length;
|
|
140
140
|
R.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 k = performance.now();
|
|
145
145
|
function d(b) {
|
|
146
|
-
const N = Math.min((b -
|
|
147
|
-
R.value[y] =
|
|
148
|
-
const
|
|
149
|
-
let
|
|
150
|
-
g.dataset.forEach((
|
|
151
|
-
const
|
|
152
|
-
(
|
|
146
|
+
const N = Math.min((b - k) / s, 1), Te = Lt(N), Ne = v * Te;
|
|
147
|
+
R.value[y] = Ne, R.value = [...R.value];
|
|
148
|
+
const ie = [];
|
|
149
|
+
let Fe = 0;
|
|
150
|
+
g.dataset.forEach((de, Oe) => {
|
|
151
|
+
const Jt = Ee(de.series.reduce(
|
|
152
|
+
(Ie, De) => Ie + Ee(E(De.values).reduce((Qt, Zt) => Qt + Zt, 0)),
|
|
153
153
|
0
|
|
154
|
-
)),
|
|
155
|
-
|
|
154
|
+
)), Kt = Ee(R.value.slice(Fe, Fe + de.series.length).reduce((Ie, De) => Ie + De, 0)), Se = Jt - Kt;
|
|
155
|
+
Se > Number.MIN_VALUE && ie.push({
|
|
156
156
|
name: "__ghost__",
|
|
157
|
-
arcOf:
|
|
158
|
-
arcOfId: `${f.value}_${
|
|
159
|
-
id: `ghost_${f.value}_${
|
|
157
|
+
arcOf: de.name,
|
|
158
|
+
arcOfId: `${f.value}_${Oe}`,
|
|
159
|
+
id: `ghost_${f.value}_${Oe}`,
|
|
160
160
|
seriesIndex: -1,
|
|
161
|
-
datasetIndex:
|
|
161
|
+
datasetIndex: Oe,
|
|
162
162
|
color: "transparent",
|
|
163
|
-
value:
|
|
164
|
-
fullValue:
|
|
163
|
+
value: Se,
|
|
164
|
+
fullValue: Se,
|
|
165
165
|
absoluteValues: [],
|
|
166
166
|
ghost: !0
|
|
167
|
-
}),
|
|
168
|
-
}), Z.value =
|
|
167
|
+
}), Fe += de.series.length;
|
|
168
|
+
}), Z.value = ie, N < 1 ? requestAnimationFrame(d) : (n += 1, n === t && o());
|
|
169
169
|
}
|
|
170
170
|
requestAnimationFrame(d);
|
|
171
|
-
}, y *
|
|
171
|
+
}, y * a);
|
|
172
172
|
});
|
|
173
173
|
});
|
|
174
174
|
}
|
|
175
|
-
async function
|
|
175
|
+
async function et() {
|
|
176
176
|
if (e.value.startAnimation?.show) {
|
|
177
|
-
const s =
|
|
178
|
-
(
|
|
177
|
+
const s = Y.value.flatMap((a) => a.series).map(
|
|
178
|
+
(a) => E(a.values).reduce((o, t) => o + t, 0)
|
|
179
179
|
);
|
|
180
|
-
R.value = s.map(() => 0),
|
|
181
|
-
const t =
|
|
182
|
-
(n, v) => n + E(v.values).reduce((y,
|
|
180
|
+
R.value = s.map(() => 0), U.value = !0, Z.value = Y.value.map((a, o) => {
|
|
181
|
+
const t = a.series.reduce(
|
|
182
|
+
(n, v) => n + E(v.values).reduce((y, k) => y + k, 0),
|
|
183
183
|
0
|
|
184
184
|
);
|
|
185
185
|
return {
|
|
186
186
|
name: "__ghost__",
|
|
187
|
-
arcOf:
|
|
187
|
+
arcOf: a.name,
|
|
188
188
|
arcOfId: `${f.value}_${o}`,
|
|
189
189
|
id: `ghost_${f.value}_${o}`,
|
|
190
190
|
seriesIndex: -1,
|
|
@@ -195,58 +195,58 @@ const La = ["id"], Ca = ["id"], _a = ["xmlns", "viewBox"], xa = ["width", "heigh
|
|
|
195
195
|
absoluteValues: [],
|
|
196
196
|
ghost: !0
|
|
197
197
|
};
|
|
198
|
-
}), await
|
|
198
|
+
}), await kt(), Mt(
|
|
199
199
|
s,
|
|
200
200
|
e.value.startAnimation.durationMs,
|
|
201
201
|
e.value.startAnimation.staggerMs
|
|
202
202
|
).then(() => {
|
|
203
|
-
|
|
203
|
+
U.value = !1, Z.value = [];
|
|
204
204
|
});
|
|
205
205
|
} else
|
|
206
|
-
|
|
206
|
+
U.value = !1;
|
|
207
207
|
}
|
|
208
|
-
|
|
209
|
-
|
|
208
|
+
el(async () => {
|
|
209
|
+
He.value = !0, tt(), await et();
|
|
210
210
|
});
|
|
211
|
-
const P =
|
|
212
|
-
function
|
|
213
|
-
if (
|
|
211
|
+
const P = yt(null), W = yt(null), X = x(() => !!e.value.debug);
|
|
212
|
+
function tt() {
|
|
213
|
+
if (dl(g.dataset) ? (K({
|
|
214
214
|
componentName: "VueUiNestedDonuts",
|
|
215
215
|
type: "dataset",
|
|
216
216
|
debug: X.value
|
|
217
|
-
}),
|
|
218
|
-
const
|
|
219
|
-
const { width: s, height:
|
|
220
|
-
chart:
|
|
221
|
-
title: e.value.style.chart.title.text ?
|
|
222
|
-
legend: e.value.style.chart.legend.show ?
|
|
223
|
-
source:
|
|
224
|
-
noTitle:
|
|
225
|
-
padding:
|
|
217
|
+
}), ce.value = !1, ge.value = !0) : ge.value = e.value.loading, e.value.responsive) {
|
|
218
|
+
const l = gl(() => {
|
|
219
|
+
const { width: s, height: a } = ml({
|
|
220
|
+
chart: I.value,
|
|
221
|
+
title: e.value.style.chart.title.text ? Re.value : null,
|
|
222
|
+
legend: e.value.style.chart.legend.show ? ye.value : null,
|
|
223
|
+
source: Ge.value,
|
|
224
|
+
noTitle: Ye.value,
|
|
225
|
+
padding: je.value
|
|
226
226
|
});
|
|
227
227
|
requestAnimationFrame(() => {
|
|
228
|
-
h.value.width = s, h.value.height =
|
|
228
|
+
h.value.width = s, h.value.height = a;
|
|
229
229
|
});
|
|
230
230
|
});
|
|
231
|
-
P.value && (
|
|
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
|
-
|
|
235
|
-
P.value && (
|
|
234
|
+
tl(() => {
|
|
235
|
+
P.value && (W.value && P.value.unobserve(W.value), P.value.disconnect());
|
|
236
236
|
});
|
|
237
|
-
const { isPrinting:
|
|
237
|
+
const { isPrinting: lt, isImaging: at, generatePdf: ot, generateImage: st } = $l({
|
|
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
|
+
}), Bt = x(() => e.value.userOptions.show && !e.value.style.chart.title.text), Et = x(() => vl(e.value.customPalette)), m = c({
|
|
242
242
|
dataLabels: {
|
|
243
243
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
244
244
|
},
|
|
245
245
|
showTable: e.value.table.show,
|
|
246
246
|
showTooltip: e.value.style.chart.tooltip.show
|
|
247
247
|
});
|
|
248
|
-
|
|
249
|
-
|
|
248
|
+
te(e, () => {
|
|
249
|
+
m.value = {
|
|
250
250
|
dataLabels: {
|
|
251
251
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
252
252
|
},
|
|
@@ -257,43 +257,43 @@ const La = ["id"], Ca = ["id"], _a = ["xmlns", "viewBox"], xa = ["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:
|
|
260
|
+
}), ut = Tt;
|
|
261
|
+
function Ut({ datapoint: l, index: s, seriesIndex: a }) {
|
|
262
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: a }), ut("selectDatapoint", { datapoint: l, index: s });
|
|
263
263
|
}
|
|
264
|
-
function
|
|
265
|
-
from:
|
|
264
|
+
function nt({
|
|
265
|
+
from: l,
|
|
266
266
|
to: s,
|
|
267
|
-
duration:
|
|
267
|
+
duration: a,
|
|
268
268
|
onUpdate: o,
|
|
269
269
|
onDone: t,
|
|
270
|
-
easing: n =
|
|
270
|
+
easing: n = Lt
|
|
271
271
|
}) {
|
|
272
272
|
const v = performance.now();
|
|
273
|
-
function y(
|
|
274
|
-
const d = Math.min((
|
|
273
|
+
function y(k) {
|
|
274
|
+
const d = Math.min((k - v) / a, 1), b = n(d), N = l + (s - l) * b;
|
|
275
275
|
o(N, 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 = x(() => {
|
|
280
|
+
be.value, Y.value.forEach((s, a) => {
|
|
281
281
|
[null, void 0].includes(s.name) && K({
|
|
282
282
|
componentName: "VueUiNestedDonuts",
|
|
283
283
|
type: "datasetSerieAttribute",
|
|
284
284
|
property: "name",
|
|
285
|
-
index:
|
|
285
|
+
index: a,
|
|
286
286
|
debug: X.value
|
|
287
287
|
}), [null, void 0].includes(s.series) ? K({
|
|
288
288
|
componentName: "VueUiNestedDonuts",
|
|
289
289
|
type: "datasetSerieAttribute",
|
|
290
290
|
property: "series",
|
|
291
|
-
index:
|
|
291
|
+
index: a,
|
|
292
292
|
debug: X.value
|
|
293
293
|
}) : s.series.length === 0 ? K({
|
|
294
294
|
componentName: "VueUiNestedDonuts",
|
|
295
295
|
type: "datasetAttributeEmpty",
|
|
296
|
-
property: `series at index ${
|
|
296
|
+
property: `series at index ${a}`,
|
|
297
297
|
debug: X.value
|
|
298
298
|
}) : s.series.forEach((o, t) => {
|
|
299
299
|
[null, void 0].includes(o.name) && K({
|
|
@@ -313,110 +313,110 @@ const La = ["id"], Ca = ["id"], _a = ["xmlns", "viewBox"], xa = ["width", "heigh
|
|
|
313
313
|
});
|
|
314
314
|
});
|
|
315
315
|
});
|
|
316
|
-
let
|
|
317
|
-
return
|
|
316
|
+
let l = 0;
|
|
317
|
+
return Y.value.map((s, a) => ({
|
|
318
318
|
...s,
|
|
319
319
|
total: s.series.filter((o) => !L.value.includes(o.id)).map((o) => E(o.values).reduce((t, n) => t + n, 0)).reduce((o, t) => o + t, 0),
|
|
320
|
-
datasetIndex:
|
|
321
|
-
id: `${f.value}_${
|
|
320
|
+
datasetIndex: a,
|
|
321
|
+
id: `${f.value}_${a}`,
|
|
322
322
|
series: s.series.map((o, t) => {
|
|
323
323
|
const n = E(o.values).reduce((v, y) => v + y, 0);
|
|
324
324
|
return {
|
|
325
325
|
name: o.name,
|
|
326
326
|
arcOf: s.name,
|
|
327
|
-
arcOfId: `${f.value}_${
|
|
328
|
-
id: `${f.value}_${
|
|
327
|
+
arcOfId: `${f.value}_${a}`,
|
|
328
|
+
id: `${f.value}_${a}_${t}`,
|
|
329
329
|
seriesIndex: t,
|
|
330
|
-
datasetIndex:
|
|
331
|
-
color:
|
|
332
|
-
value:
|
|
330
|
+
datasetIndex: a,
|
|
331
|
+
color: cl(o.color) || Et.value[t] || Ve[t % Ve.length],
|
|
332
|
+
value: U.value ? R.value[l++] ?? 0 : n,
|
|
333
333
|
absoluteValues: o.values || []
|
|
334
334
|
};
|
|
335
335
|
})
|
|
336
336
|
}));
|
|
337
337
|
});
|
|
338
|
-
|
|
339
|
-
Array.isArray(
|
|
338
|
+
te(() => g.dataset, (l) => {
|
|
339
|
+
Array.isArray(l) && l.length > 0 && (ge.value = !1);
|
|
340
340
|
}, { immediate: !0 });
|
|
341
|
-
const
|
|
342
|
-
const
|
|
341
|
+
const D = x(() => Math.min(h.value.height, h.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)), rt = x(() => [...S.value].map((l, s) => {
|
|
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
|
-
...
|
|
345
|
-
total:
|
|
346
|
-
series:
|
|
344
|
+
...l,
|
|
345
|
+
total: a,
|
|
346
|
+
series: l.series.filter((o) => !L.value.includes(o.id)).map((o) => ({
|
|
347
347
|
...o,
|
|
348
|
-
proportion: o.value /
|
|
348
|
+
proportion: o.value / a
|
|
349
349
|
}))
|
|
350
350
|
};
|
|
351
351
|
}));
|
|
352
|
-
function
|
|
352
|
+
function Rt(l, s, a) {
|
|
353
353
|
let o = 0;
|
|
354
|
-
for (let t = 0; t <
|
|
355
|
-
|
|
354
|
+
for (let t = 0; t < l.length; t += 1)
|
|
355
|
+
a.includes(l[t]) && (o += 1);
|
|
356
356
|
return o < s;
|
|
357
357
|
}
|
|
358
|
-
const
|
|
359
|
-
|
|
360
|
-
() =>
|
|
361
|
-
(
|
|
358
|
+
const w = c(rt.value);
|
|
359
|
+
te(
|
|
360
|
+
() => rt.value,
|
|
361
|
+
(l) => w.value = l
|
|
362
362
|
);
|
|
363
|
-
function
|
|
364
|
-
|
|
363
|
+
function ke(l) {
|
|
364
|
+
ut("selectLegend", l);
|
|
365
365
|
const s = g.dataset.flatMap(
|
|
366
|
-
(d, b) => d.series.map((N,
|
|
367
|
-
value: E(N.values).reduce((
|
|
368
|
-
id: `${f.value}_${b}_${
|
|
366
|
+
(d, b) => d.series.map((N, Te) => ({
|
|
367
|
+
value: E(N.values).reduce((Ne, ie) => Ne + ie, 0),
|
|
368
|
+
id: `${f.value}_${b}_${Te}`,
|
|
369
369
|
arcOfId: `${f.value}_${b}`
|
|
370
370
|
}))
|
|
371
|
-
).find((d) => d.id ===
|
|
371
|
+
).find((d) => d.id === l.id);
|
|
372
372
|
if (!s) return;
|
|
373
|
-
const
|
|
373
|
+
const a = S.value.flatMap((d) => d.series).find((d) => d.id === l.id)?.value ?? 0, o = w.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), k = Rt(
|
|
380
380
|
y,
|
|
381
381
|
y.length - 1,
|
|
382
382
|
L.value
|
|
383
383
|
);
|
|
384
|
-
L.value.includes(
|
|
384
|
+
L.value.includes(l.id) ? (L.value = L.value.filter((d) => d !== l.id), e.value.serieToggleAnimation.show ? nt({
|
|
385
385
|
from: n,
|
|
386
|
-
to:
|
|
386
|
+
to: a,
|
|
387
387
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
388
388
|
onUpdate: (d) => {
|
|
389
|
-
|
|
389
|
+
w.value = w.value.map((b) => ({
|
|
390
390
|
...b,
|
|
391
|
-
series: b.series.map((N) => N.id ===
|
|
391
|
+
series: b.series.map((N) => N.id === l.id ? { ...N, value: d } : N)
|
|
392
392
|
}));
|
|
393
393
|
}
|
|
394
|
-
}) :
|
|
394
|
+
}) : w.value = w.value.map((d) => ({
|
|
395
395
|
...d,
|
|
396
|
-
series: d.series.map((b) => b.id ===
|
|
397
|
-
}))) :
|
|
396
|
+
series: d.series.map((b) => b.id === l.id ? { ...b, value: a } : b)
|
|
397
|
+
}))) : k && (e.value.serieToggleAnimation.show ? nt({
|
|
398
398
|
from: n,
|
|
399
399
|
to: 0,
|
|
400
400
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
401
401
|
onUpdate: (d) => {
|
|
402
|
-
|
|
402
|
+
w.value = w.value.map((b) => ({
|
|
403
403
|
...b,
|
|
404
|
-
series: b.series.map((N) => N.id ===
|
|
404
|
+
series: b.series.map((N) => N.id === l.id ? { ...N, value: d } : N)
|
|
405
405
|
}));
|
|
406
406
|
},
|
|
407
407
|
onDone: () => {
|
|
408
|
-
L.value.push(
|
|
408
|
+
L.value.push(l.id);
|
|
409
409
|
}
|
|
410
|
-
}) : (
|
|
410
|
+
}) : (w.value = w.value.map((d) => ({
|
|
411
411
|
...d,
|
|
412
|
-
series: d.series.map((b) => b.id ===
|
|
413
|
-
})), L.value.push(
|
|
412
|
+
series: d.series.map((b) => b.id === l.id ? { ...b, value: 0 } : b)
|
|
413
|
+
})), L.value.push(l.id)));
|
|
414
414
|
}
|
|
415
|
-
const
|
|
416
|
-
const
|
|
417
|
-
...
|
|
418
|
-
value:
|
|
419
|
-
})), v =
|
|
415
|
+
const oe = x(() => D.value / S.value.length * e.value.style.chart.layout.donut.spacingRatio), it = x(() => w.value.map((l, s) => D.value - s * D.value / S.value.length)), q = x(() => w.value.map((l, s) => {
|
|
416
|
+
const a = Math.abs(l.series.map((k) => k.value).reduce((k, d) => k + d, 0)) > 0, o = D.value - s * D.value / w.value.length, t = U.value ? Z.value.find((k) => k.datasetIndex === s) : null, n = [...l.series, ...t ? [t] : []].map((k) => ({
|
|
417
|
+
...k,
|
|
418
|
+
value: k.value < 1e-11 ? Number.MIN_VALUE : k.value
|
|
419
|
+
})), v = Me(
|
|
420
420
|
{ series: [
|
|
421
421
|
{ name: "_", color: e.value.style.chart.layout.donut.emptyFill, value: 1 }
|
|
422
422
|
] },
|
|
@@ -429,17 +429,17 @@ const La = ["id"], Ca = ["id"], _a = ["xmlns", "viewBox"], xa = ["width", "heigh
|
|
|
429
429
|
1,
|
|
430
430
|
360,
|
|
431
431
|
105.25,
|
|
432
|
-
|
|
432
|
+
oe.value
|
|
433
433
|
), y = `M ${h.value.width / 2},${h.value.height / 2 + o}
|
|
434
434
|
a ${o},${o} 0 1,1 0,${-2 * o}
|
|
435
435
|
a ${o},${o} 0 1,1 0,${2 * o}`;
|
|
436
436
|
return {
|
|
437
|
-
...
|
|
438
|
-
hasData:
|
|
437
|
+
...l,
|
|
438
|
+
hasData: a,
|
|
439
439
|
radius: o,
|
|
440
440
|
skeleton: v,
|
|
441
441
|
fullCirclePath: y,
|
|
442
|
-
donut:
|
|
442
|
+
donut: Me(
|
|
443
443
|
{ series: n },
|
|
444
444
|
h.value.width / 2,
|
|
445
445
|
h.value.height / 2,
|
|
@@ -450,57 +450,57 @@ const La = ["id"], Ca = ["id"], _a = ["xmlns", "viewBox"], xa = ["width", "heigh
|
|
|
450
450
|
1,
|
|
451
451
|
360,
|
|
452
452
|
105.25,
|
|
453
|
-
|
|
453
|
+
oe.value
|
|
454
454
|
)
|
|
455
455
|
};
|
|
456
|
-
})),
|
|
457
|
-
const
|
|
456
|
+
})), dt = x(() => [...S.value].map((l, s) => {
|
|
457
|
+
const a = s * D.value / S.value.length;
|
|
458
458
|
return {
|
|
459
|
-
sizeRatio:
|
|
460
|
-
donut:
|
|
459
|
+
sizeRatio: a,
|
|
460
|
+
donut: Me(
|
|
461
461
|
{ series: [{ value: 1 }] },
|
|
462
462
|
h.value.width / 2,
|
|
463
463
|
h.value.height / 2,
|
|
464
|
-
|
|
465
|
-
|
|
464
|
+
D.value - a,
|
|
465
|
+
D.value - a,
|
|
466
466
|
1.99999,
|
|
467
467
|
2,
|
|
468
468
|
1,
|
|
469
469
|
360,
|
|
470
470
|
105.25,
|
|
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:
|
|
474
|
+
})), vt = c(null), se = c(null), ue = c(null), $e = c(null);
|
|
475
|
+
function Gt({ datapoint: l, seriesIndex: s }) {
|
|
476
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: s }), he.value = !1, vt.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:
|
|
480
|
-
datapoint:
|
|
481
|
-
seriesIndex:
|
|
482
|
-
series:
|
|
478
|
+
function Yt({ datapoint: l, _relativeIndex: s, seriesIndex: a }) {
|
|
479
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: a }), vt.value = l.arcOfId, se.value = l.id, ue.value = a, pe.value = l.id, $e.value = {
|
|
480
|
+
datapoint: l,
|
|
481
|
+
seriesIndex: a,
|
|
482
|
+
series: w.value,
|
|
483
483
|
config: e.value
|
|
484
484
|
};
|
|
485
485
|
const o = e.value.style.chart.tooltip.customFormat;
|
|
486
|
-
if (
|
|
486
|
+
if (Ct(o) && bl(
|
|
487
487
|
() => o({
|
|
488
|
-
seriesIndex:
|
|
489
|
-
datapoint:
|
|
490
|
-
series:
|
|
488
|
+
seriesIndex: a,
|
|
489
|
+
datapoint: l,
|
|
490
|
+
series: w.value,
|
|
491
491
|
config: e.value
|
|
492
492
|
})
|
|
493
493
|
))
|
|
494
|
-
|
|
495
|
-
seriesIndex:
|
|
496
|
-
datapoint:
|
|
497
|
-
series:
|
|
494
|
+
fe.value = o({
|
|
495
|
+
seriesIndex: a,
|
|
496
|
+
datapoint: l,
|
|
497
|
+
series: w.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 = w.value.map((v) => v.series.find((y) => y.seriesIndex === a));
|
|
504
504
|
n.forEach((v, y) => {
|
|
505
505
|
if (!v) return "";
|
|
506
506
|
t += `
|
|
@@ -514,19 +514,19 @@ const La = ["id"], Ca = ["id"], _a = ["xmlns", "viewBox"], xa = ["width", "heigh
|
|
|
514
514
|
</span>
|
|
515
515
|
</div>
|
|
516
516
|
<span>
|
|
517
|
-
${e.value.style.chart.tooltip.showValue ? `<b>${
|
|
517
|
+
${e.value.style.chart.tooltip.showValue ? `<b>${le(
|
|
518
518
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
519
|
-
|
|
520
|
-
|
|
519
|
+
l.value,
|
|
520
|
+
O({
|
|
521
521
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
522
|
-
v:
|
|
522
|
+
v: l.value,
|
|
523
523
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
524
524
|
r: e.value.style.chart.tooltip.roundingValue
|
|
525
525
|
}),
|
|
526
|
-
{ datapoint:
|
|
526
|
+
{ datapoint: l, seriesIndex: a }
|
|
527
527
|
)}
|
|
528
528
|
</b>` : ""}
|
|
529
|
-
${e.value.style.chart.tooltip.showPercentage ? `(${
|
|
529
|
+
${e.value.style.chart.tooltip.showPercentage ? `(${O({
|
|
530
530
|
v: v.proportion * 100,
|
|
531
531
|
s: "%",
|
|
532
532
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
@@ -536,56 +536,56 @@ const La = ["id"], Ca = ["id"], _a = ["xmlns", "viewBox"], xa = ["width", "heigh
|
|
|
536
536
|
`;
|
|
537
537
|
});
|
|
538
538
|
} else
|
|
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;">${
|
|
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
|
-
|
|
542
|
-
|
|
541
|
+
l.value,
|
|
542
|
+
O({
|
|
543
543
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
544
|
-
v:
|
|
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
|
-
{ datapoint:
|
|
549
|
-
)}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? t += `<span>(${
|
|
550
|
-
v:
|
|
548
|
+
{ datapoint: l, seriesIndex: a }
|
|
549
|
+
)}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? t += `<span>(${O({
|
|
550
|
+
v: l.proportion * 100,
|
|
551
551
|
s: "%",
|
|
552
552
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
553
|
-
})})</span></div>` : t += `<b>${
|
|
554
|
-
v:
|
|
553
|
+
})})</span></div>` : t += `<b>${O({
|
|
554
|
+
v: l.proportion * 100,
|
|
555
555
|
s: "%",
|
|
556
556
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
557
557
|
})}</b></div>`);
|
|
558
|
-
|
|
558
|
+
fe.value = `<div style="font-size:${e.value.style.chart.tooltip.fontSize}px">${t}</div>`;
|
|
559
559
|
}
|
|
560
|
-
|
|
560
|
+
he.value = !0;
|
|
561
561
|
}
|
|
562
|
-
function
|
|
563
|
-
return
|
|
562
|
+
function Ce(l) {
|
|
563
|
+
return l.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
564
564
|
}
|
|
565
|
-
function
|
|
565
|
+
function ct(l, s) {
|
|
566
566
|
if (!e.value.useBlurOnHover)
|
|
567
567
|
return "";
|
|
568
568
|
if (e.value.style.chart.tooltip.showAllItemsAtIndex && L.value.length === 0)
|
|
569
|
-
return [null, void 0].includes(
|
|
569
|
+
return [null, void 0].includes(ue.value) || ue.value === s ? "" : `url(#blur_${f.value})`;
|
|
570
570
|
if (!e.value.style.chart.tooltip.showAllItemsAtIndex || L.value.length)
|
|
571
|
-
return [null, void 0].includes(
|
|
571
|
+
return [null, void 0].includes(se.value) || se.value === l.id ? "" : `url(#blur_${f.value})`;
|
|
572
572
|
}
|
|
573
|
-
const
|
|
574
|
-
const
|
|
573
|
+
const Le = x(() => S.value.map((l, s) => {
|
|
574
|
+
const a = l.series.filter(
|
|
575
575
|
(t) => !L.value.includes(t.id)
|
|
576
|
-
), o =
|
|
577
|
-
const n =
|
|
576
|
+
), o = U.value ? a.map((t) => {
|
|
577
|
+
const n = Y.value[s].series.findIndex(
|
|
578
578
|
(v) => v.name === t.name
|
|
579
579
|
);
|
|
580
580
|
return E(
|
|
581
|
-
|
|
581
|
+
Y.value[s].series[n].values
|
|
582
582
|
).reduce((v, y) => v + y, 0);
|
|
583
|
-
}).reduce((t, n) => t + n, 0) :
|
|
584
|
-
return
|
|
585
|
-
const v = E(
|
|
586
|
-
(
|
|
583
|
+
}).reduce((t, n) => t + n, 0) : a.map((t) => t.value).reduce((t, n) => t + n, 0);
|
|
584
|
+
return l.series.map((t, n) => {
|
|
585
|
+
const v = E(Y.value[s].series[n].values).reduce(
|
|
586
|
+
(k, d) => k + d,
|
|
587
587
|
0
|
|
588
|
-
), y =
|
|
588
|
+
), y = U.value ? v : t.value;
|
|
589
589
|
return {
|
|
590
590
|
name: t.name,
|
|
591
591
|
color: t.color,
|
|
@@ -597,53 +597,53 @@ const La = ["id"], Ca = ["id"], _a = ["xmlns", "viewBox"], xa = ["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: () => ke(t),
|
|
601
601
|
isSegregated: L.value.includes(t.id)
|
|
602
602
|
};
|
|
603
603
|
});
|
|
604
|
-
})),
|
|
604
|
+
})), Wt = x(() => ({
|
|
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
|
-
})),
|
|
612
|
-
const
|
|
613
|
-
name: `${
|
|
611
|
+
})), V = x(() => {
|
|
612
|
+
const l = w.value.flatMap((a) => a.series.map((o) => ({
|
|
613
|
+
name: `${a.name} - ${o.name}`,
|
|
614
614
|
color: o.color,
|
|
615
|
-
total:
|
|
616
|
-
}))), s =
|
|
617
|
-
return { head:
|
|
615
|
+
total: a.total
|
|
616
|
+
}))), s = w.value.flatMap((a) => a.series.map((o) => o.value));
|
|
617
|
+
return { head: l, body: s };
|
|
618
618
|
});
|
|
619
|
-
function
|
|
620
|
-
|
|
621
|
-
const s =
|
|
619
|
+
function xe(l = null) {
|
|
620
|
+
kt(() => {
|
|
621
|
+
const s = V.value.head.map((t, n) => [
|
|
622
622
|
[t.name],
|
|
623
|
-
[
|
|
623
|
+
[V.value.body[n]],
|
|
624
624
|
[
|
|
625
|
-
isNaN(
|
|
625
|
+
isNaN(V.value.body[n] / t.total) ? "-" : V.value.body[n] / t.total * 100
|
|
626
626
|
]
|
|
627
|
-
]),
|
|
627
|
+
]), a = [
|
|
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
|
-
|
|
631
|
+
].concat(s), o = pl(a);
|
|
632
|
+
l ? l(o) : yl({
|
|
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
|
|
639
|
-
const
|
|
638
|
+
const ne = x(() => {
|
|
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
|
-
], s =
|
|
644
|
-
const v =
|
|
643
|
+
], s = V.value.head.map((t, n) => {
|
|
644
|
+
const v = O({
|
|
645
645
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
646
|
-
v:
|
|
646
|
+
v: V.value.body[n],
|
|
647
647
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
648
648
|
r: e.value.table.td.roundingValue
|
|
649
649
|
});
|
|
@@ -653,13 +653,13 @@ const La = ["id"], Ca = ["id"], _a = ["xmlns", "viewBox"], xa = ["width", "heigh
|
|
|
653
653
|
name: t.name
|
|
654
654
|
},
|
|
655
655
|
v,
|
|
656
|
-
isNaN(
|
|
657
|
-
v:
|
|
656
|
+
isNaN(V.value.body[n] / t.total) ? "-" : O({
|
|
657
|
+
v: V.value.body[n] / t.total * 100,
|
|
658
658
|
s: "%",
|
|
659
659
|
r: e.value.table.td.roundingPercentage
|
|
660
660
|
})
|
|
661
661
|
];
|
|
662
|
-
}),
|
|
662
|
+
}), a = {
|
|
663
663
|
th: {
|
|
664
664
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
665
665
|
color: e.value.table.th.color,
|
|
@@ -678,88 +678,120 @@ const La = ["id"], Ca = ["id"], _a = ["xmlns", "viewBox"], xa = ["width", "heigh
|
|
|
678
678
|
e.value.table.columnNames.value,
|
|
679
679
|
e.value.table.columnNames.percentage
|
|
680
680
|
],
|
|
681
|
-
head:
|
|
681
|
+
head: l,
|
|
682
682
|
body: s,
|
|
683
|
-
config:
|
|
683
|
+
config: a
|
|
684
684
|
};
|
|
685
685
|
});
|
|
686
|
-
function
|
|
686
|
+
function Xt() {
|
|
687
687
|
return S.value;
|
|
688
688
|
}
|
|
689
|
-
function
|
|
690
|
-
|
|
689
|
+
function ht() {
|
|
690
|
+
m.value.showTable = !m.value.showTable;
|
|
691
691
|
}
|
|
692
|
-
function
|
|
693
|
-
|
|
692
|
+
function ft() {
|
|
693
|
+
m.value.dataLabels.show = !m.value.dataLabels.show;
|
|
694
694
|
}
|
|
695
|
-
function
|
|
696
|
-
|
|
695
|
+
function pt() {
|
|
696
|
+
m.value.showTooltip = !m.value.showTooltip;
|
|
697
697
|
}
|
|
698
|
-
const
|
|
699
|
-
function
|
|
700
|
-
|
|
698
|
+
const re = c(!1);
|
|
699
|
+
function _e() {
|
|
700
|
+
re.value = !re.value;
|
|
701
701
|
}
|
|
702
|
-
async function
|
|
703
|
-
if (!
|
|
704
|
-
const { width: s, height:
|
|
702
|
+
async function qt({ scale: l = 2 } = {}) {
|
|
703
|
+
if (!I.value) return;
|
|
704
|
+
const { width: s, height: a } = I.value.getBoundingClientRect(), o = s / a, { imageUri: t, base64: n } = await xl({ domElement: I.value, base64: !0, img: !0, scale: l });
|
|
705
705
|
return {
|
|
706
706
|
imageUri: t,
|
|
707
707
|
base64: n,
|
|
708
708
|
title: e.value.style.chart.title.text,
|
|
709
709
|
width: s,
|
|
710
|
-
height:
|
|
710
|
+
height: a,
|
|
711
711
|
aspectRatio: o
|
|
712
712
|
};
|
|
713
713
|
}
|
|
714
|
-
const
|
|
715
|
-
function
|
|
716
|
-
if (!
|
|
717
|
-
const { x:
|
|
718
|
-
|
|
714
|
+
const Ae = c(null);
|
|
715
|
+
function Ht() {
|
|
716
|
+
if (!Ae.value) return;
|
|
717
|
+
const { x: l, y: s, width: a, height: o } = Ae.value.getBBox();
|
|
718
|
+
ae.value && ae.value.setAttribute("viewBox", `${l} ${s} ${a + Math.min(0, l)} ${o + Math.min(0, s)}`);
|
|
719
719
|
}
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
720
|
+
const ee = x(() => {
|
|
721
|
+
const l = e.value.table.useDialog && !e.value.table.show, s = m.value.showTable;
|
|
722
|
+
return {
|
|
723
|
+
component: l ? Vt : Ot,
|
|
724
|
+
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
725
|
+
props: l ? {
|
|
726
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
727
|
+
color: e.value.table.th.color,
|
|
728
|
+
headerColor: e.value.table.th.color,
|
|
729
|
+
headerBg: e.value.table.th.backgroundColor,
|
|
730
|
+
isFullscreen: G.value,
|
|
731
|
+
fullscreenParent: I.value,
|
|
732
|
+
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
733
|
+
} : {
|
|
734
|
+
hideDetails: !0,
|
|
735
|
+
config: {
|
|
736
|
+
open: s,
|
|
737
|
+
maxHeight: 1e4,
|
|
738
|
+
body: {
|
|
739
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
740
|
+
color: e.value.style.chart.color
|
|
741
|
+
},
|
|
742
|
+
head: {
|
|
743
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
744
|
+
color: e.value.style.chart.color
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
}
|
|
748
|
+
};
|
|
749
|
+
});
|
|
750
|
+
return te(() => m.value.showTable, (l) => {
|
|
751
|
+
e.value.table.show || (l && e.value.table.useDialog && j.value ? j.value.open() : "close" in j.value && j.value.close());
|
|
752
|
+
}), At({
|
|
753
|
+
autoSize: Ht,
|
|
754
|
+
getData: Xt,
|
|
755
|
+
getImage: qt,
|
|
756
|
+
generatePdf: ot,
|
|
757
|
+
generateCsv: xe,
|
|
758
|
+
generateImage: st,
|
|
759
|
+
toggleTable: ht,
|
|
760
|
+
toggleLabels: ft,
|
|
761
|
+
toggleTooltip: pt,
|
|
762
|
+
toggleAnnotator: _e,
|
|
763
|
+
toggleFullscreen: Je
|
|
764
|
+
}), (l, s) => (u(), r("div", {
|
|
733
765
|
ref_key: "nestedDonutsChart",
|
|
734
|
-
ref:
|
|
735
|
-
class:
|
|
736
|
-
style:
|
|
766
|
+
ref: I,
|
|
767
|
+
class: M(`vue-ui-nested-donuts ${G.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
768
|
+
style: ve(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
737
769
|
id: `nested_donuts_${f.value}`,
|
|
738
|
-
onMouseenter: s[
|
|
739
|
-
onMouseleave: s[
|
|
770
|
+
onMouseenter: s[4] || (s[4] = () => i(Qe)(!0)),
|
|
771
|
+
onMouseleave: s[5] || (s[5] = () => i(Qe)(!1))
|
|
740
772
|
}, [
|
|
741
|
-
e.value.userOptions.buttons.annotator ? (u(),
|
|
773
|
+
e.value.userOptions.buttons.annotator ? (u(), B(i(Dt), {
|
|
742
774
|
key: 0,
|
|
743
|
-
svgRef: i(
|
|
775
|
+
svgRef: i(ae),
|
|
744
776
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
745
777
|
color: e.value.style.chart.color,
|
|
746
|
-
active:
|
|
747
|
-
onClose:
|
|
778
|
+
active: re.value,
|
|
779
|
+
onClose: _e
|
|
748
780
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : $("", !0),
|
|
749
|
-
|
|
781
|
+
Bt.value ? (u(), r("div", {
|
|
750
782
|
key: 1,
|
|
751
783
|
ref_key: "noTitle",
|
|
752
|
-
ref:
|
|
784
|
+
ref: Ye,
|
|
753
785
|
class: "vue-data-ui-no-title-space",
|
|
754
786
|
style: "height:36px; width: 100%;background:transparent"
|
|
755
787
|
}, null, 512)) : $("", !0),
|
|
756
788
|
e.value.style.chart.title.text ? (u(), r("div", {
|
|
757
789
|
key: 2,
|
|
758
790
|
ref_key: "chartTitle",
|
|
759
|
-
ref:
|
|
791
|
+
ref: Re
|
|
760
792
|
}, [
|
|
761
|
-
(u(),
|
|
762
|
-
key: `title_${
|
|
793
|
+
(u(), B(_l, {
|
|
794
|
+
key: `title_${We.value}`,
|
|
763
795
|
config: {
|
|
764
796
|
title: {
|
|
765
797
|
cy: "donut-div-title",
|
|
@@ -774,14 +806,14 @@ const La = ["id"], Ca = ["id"], _a = ["xmlns", "viewBox"], xa = ["width", "heigh
|
|
|
774
806
|
], 512)) : $("", !0),
|
|
775
807
|
p("div", {
|
|
776
808
|
id: `legend-top-${f.value}`
|
|
777
|
-
}, null, 8,
|
|
778
|
-
e.value.userOptions.show &&
|
|
809
|
+
}, null, 8, Fl),
|
|
810
|
+
e.value.userOptions.show && ce.value && (i(Ze) || i(me)) ? (u(), B(i(It), {
|
|
779
811
|
ref: "details",
|
|
780
|
-
key: `user_option_${
|
|
812
|
+
key: `user_option_${Ue.value}`,
|
|
781
813
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
782
814
|
color: e.value.style.chart.color,
|
|
783
|
-
isPrinting: i(
|
|
784
|
-
isImaging: i(
|
|
815
|
+
isPrinting: i(lt),
|
|
816
|
+
isImaging: i(at),
|
|
785
817
|
uid: f.value,
|
|
786
818
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
787
819
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -791,109 +823,109 @@ const La = ["id"], Ca = ["id"], _a = ["xmlns", "viewBox"], xa = ["width", "heigh
|
|
|
791
823
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
792
824
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
793
825
|
isFullscreen: G.value,
|
|
794
|
-
isTooltip:
|
|
826
|
+
isTooltip: m.value.showTooltip,
|
|
795
827
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
796
|
-
chartElement:
|
|
828
|
+
chartElement: I.value,
|
|
797
829
|
position: e.value.userOptions.position,
|
|
798
830
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
799
|
-
isAnnotation:
|
|
831
|
+
isAnnotation: re.value,
|
|
800
832
|
callbacks: e.value.userOptions.callbacks,
|
|
801
833
|
printScale: e.value.userOptions.print.scale,
|
|
802
|
-
onToggleFullscreen:
|
|
803
|
-
onGeneratePdf: i(
|
|
804
|
-
onGenerateCsv:
|
|
805
|
-
onGenerateImage: i(
|
|
806
|
-
onToggleTable:
|
|
807
|
-
onToggleLabels:
|
|
808
|
-
onToggleTooltip:
|
|
809
|
-
onToggleAnnotator:
|
|
810
|
-
style:
|
|
811
|
-
visibility: i(
|
|
834
|
+
onToggleFullscreen: Je,
|
|
835
|
+
onGeneratePdf: i(ot),
|
|
836
|
+
onGenerateCsv: xe,
|
|
837
|
+
onGenerateImage: i(st),
|
|
838
|
+
onToggleTable: ht,
|
|
839
|
+
onToggleLabels: ft,
|
|
840
|
+
onToggleTooltip: pt,
|
|
841
|
+
onToggleAnnotator: _e,
|
|
842
|
+
style: ve({
|
|
843
|
+
visibility: i(Ze) ? i(me) ? "visible" : "hidden" : "visible"
|
|
812
844
|
})
|
|
813
|
-
},
|
|
814
|
-
|
|
845
|
+
}, bt({ _: 2 }, [
|
|
846
|
+
l.$slots.menuIcon ? {
|
|
815
847
|
name: "menuIcon",
|
|
816
|
-
fn:
|
|
817
|
-
|
|
848
|
+
fn: C(({ isOpen: a, color: o }) => [
|
|
849
|
+
_(l.$slots, "menuIcon", H(J({ isOpen: a, color: o })), void 0, !0)
|
|
818
850
|
]),
|
|
819
851
|
key: "0"
|
|
820
852
|
} : void 0,
|
|
821
|
-
|
|
853
|
+
l.$slots.optionTooltip ? {
|
|
822
854
|
name: "optionTooltip",
|
|
823
|
-
fn:
|
|
824
|
-
|
|
855
|
+
fn: C(() => [
|
|
856
|
+
_(l.$slots, "optionTooltip", {}, void 0, !0)
|
|
825
857
|
]),
|
|
826
858
|
key: "1"
|
|
827
859
|
} : void 0,
|
|
828
|
-
|
|
860
|
+
l.$slots.optionPdf ? {
|
|
829
861
|
name: "optionPdf",
|
|
830
|
-
fn:
|
|
831
|
-
|
|
862
|
+
fn: C(() => [
|
|
863
|
+
_(l.$slots, "optionPdf", {}, void 0, !0)
|
|
832
864
|
]),
|
|
833
865
|
key: "2"
|
|
834
866
|
} : void 0,
|
|
835
|
-
|
|
867
|
+
l.$slots.optionCsv ? {
|
|
836
868
|
name: "optionCsv",
|
|
837
|
-
fn:
|
|
838
|
-
|
|
869
|
+
fn: C(() => [
|
|
870
|
+
_(l.$slots, "optionCsv", {}, void 0, !0)
|
|
839
871
|
]),
|
|
840
872
|
key: "3"
|
|
841
873
|
} : void 0,
|
|
842
|
-
|
|
874
|
+
l.$slots.optionImg ? {
|
|
843
875
|
name: "optionImg",
|
|
844
|
-
fn:
|
|
845
|
-
|
|
876
|
+
fn: C(() => [
|
|
877
|
+
_(l.$slots, "optionImg", {}, void 0, !0)
|
|
846
878
|
]),
|
|
847
879
|
key: "4"
|
|
848
880
|
} : void 0,
|
|
849
|
-
|
|
881
|
+
l.$slots.optionTable ? {
|
|
850
882
|
name: "optionTable",
|
|
851
|
-
fn:
|
|
852
|
-
|
|
883
|
+
fn: C(() => [
|
|
884
|
+
_(l.$slots, "optionTable", {}, void 0, !0)
|
|
853
885
|
]),
|
|
854
886
|
key: "5"
|
|
855
887
|
} : void 0,
|
|
856
|
-
|
|
888
|
+
l.$slots.optionLabels ? {
|
|
857
889
|
name: "optionLabels",
|
|
858
|
-
fn:
|
|
859
|
-
|
|
890
|
+
fn: C(() => [
|
|
891
|
+
_(l.$slots, "optionLabels", {}, void 0, !0)
|
|
860
892
|
]),
|
|
861
893
|
key: "6"
|
|
862
894
|
} : void 0,
|
|
863
|
-
|
|
895
|
+
l.$slots.optionFullscreen ? {
|
|
864
896
|
name: "optionFullscreen",
|
|
865
|
-
fn:
|
|
866
|
-
|
|
897
|
+
fn: C(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
898
|
+
_(l.$slots, "optionFullscreen", H(J({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
867
899
|
]),
|
|
868
900
|
key: "7"
|
|
869
901
|
} : void 0,
|
|
870
|
-
|
|
902
|
+
l.$slots.optionAnnotator ? {
|
|
871
903
|
name: "optionAnnotator",
|
|
872
|
-
fn:
|
|
873
|
-
|
|
904
|
+
fn: C(({ toggleAnnotator: a, isAnnotator: o }) => [
|
|
905
|
+
_(l.$slots, "optionAnnotator", H(J({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
|
|
874
906
|
]),
|
|
875
907
|
key: "8"
|
|
876
908
|
} : void 0
|
|
877
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"])) : $("", !0),
|
|
878
910
|
(u(), r("svg", {
|
|
879
911
|
ref_key: "svgRef",
|
|
880
|
-
ref:
|
|
881
|
-
xmlns: i(
|
|
882
|
-
class:
|
|
912
|
+
ref: ae,
|
|
913
|
+
xmlns: i(hl),
|
|
914
|
+
class: M({
|
|
883
915
|
"vue-data-ui-fullscreen--on": G.value,
|
|
884
916
|
"vue-data-ui-fulscreen--off": !G.value,
|
|
885
917
|
"vue-data-ui-svg": !0
|
|
886
918
|
}),
|
|
887
919
|
viewBox: `0 0 ${h.value.width <= 0 ? 1e-3 : h.value.width} ${h.value.height < 0 ? 1e-3 : h.value.height}`,
|
|
888
|
-
style:
|
|
920
|
+
style: ve(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${je.value.css}`)
|
|
889
921
|
}, [
|
|
890
922
|
p("g", {
|
|
891
923
|
ref_key: "G",
|
|
892
|
-
ref:
|
|
924
|
+
ref: Ae,
|
|
893
925
|
class: "vue-data-ui-g"
|
|
894
926
|
}, [
|
|
895
|
-
|
|
896
|
-
|
|
927
|
+
Pe(i(Pt)),
|
|
928
|
+
l.$slots["chart-background"] ? (u(), r("foreignObject", {
|
|
897
929
|
key: 0,
|
|
898
930
|
x: 0,
|
|
899
931
|
y: 0,
|
|
@@ -903,33 +935,33 @@ const La = ["id"], Ca = ["id"], _a = ["xmlns", "viewBox"], xa = ["width", "heigh
|
|
|
903
935
|
pointerEvents: "none"
|
|
904
936
|
}
|
|
905
937
|
}, [
|
|
906
|
-
|
|
907
|
-
], 8,
|
|
938
|
+
_(l.$slots, "chart-background", {}, void 0, !0)
|
|
939
|
+
], 8, Sl)) : $("", !0),
|
|
908
940
|
p("defs", null, [
|
|
909
|
-
(u(!0), r(A, null, T(
|
|
941
|
+
(u(!0), r(A, null, T(dt.value, (a, o) => (u(), r("radialGradient", {
|
|
910
942
|
id: `radial_${f.value}_${o}`
|
|
911
943
|
}, [
|
|
912
|
-
s[
|
|
944
|
+
s[6] || (s[6] = p("stop", {
|
|
913
945
|
offset: "0%",
|
|
914
946
|
"stop-color": "#FFFFFF",
|
|
915
947
|
"stop-opacity": "0"
|
|
916
948
|
}, null, -1)),
|
|
917
949
|
p("stop", {
|
|
918
|
-
offset: `${(1 -
|
|
919
|
-
"stop-color": i(
|
|
950
|
+
offset: `${(1 - oe.value / it.value[o]) * 100}%`,
|
|
951
|
+
"stop-color": i(fl)("#FFFFFF", 0),
|
|
920
952
|
"stop-opacity": "0"
|
|
921
|
-
}, null, 8,
|
|
953
|
+
}, null, 8, Dl),
|
|
922
954
|
p("stop", {
|
|
923
|
-
offset: `${(1 -
|
|
955
|
+
offset: `${(1 - oe.value / it.value[o] / 2) * 100}%`,
|
|
924
956
|
"stop-color": "#FFFFFF",
|
|
925
957
|
"stop-opacity": e.value.style.chart.gradientIntensity / 100
|
|
926
|
-
}, null, 8,
|
|
927
|
-
s[
|
|
958
|
+
}, null, 8, Pl),
|
|
959
|
+
s[7] || (s[7] = p("stop", {
|
|
928
960
|
offset: "100%",
|
|
929
961
|
"stop-color": "#FFFFFF",
|
|
930
962
|
"stop-opacity": "0"
|
|
931
963
|
}, null, -1))
|
|
932
|
-
], 8,
|
|
964
|
+
], 8, Il))), 256))
|
|
933
965
|
]),
|
|
934
966
|
p("defs", null, [
|
|
935
967
|
p("filter", {
|
|
@@ -943,12 +975,12 @@ const La = ["id"], Ca = ["id"], _a = ["xmlns", "viewBox"], xa = ["width", "heigh
|
|
|
943
975
|
in: "SourceGraphic",
|
|
944
976
|
stdDeviation: 2,
|
|
945
977
|
id: `blur_std_${f.value}`
|
|
946
|
-
}, null, 8,
|
|
947
|
-
s[
|
|
978
|
+
}, null, 8, zl),
|
|
979
|
+
s[8] || (s[8] = p("feColorMatrix", {
|
|
948
980
|
type: "saturate",
|
|
949
981
|
values: "0"
|
|
950
982
|
}, null, -1))
|
|
951
|
-
], 8,
|
|
983
|
+
], 8, Vl),
|
|
952
984
|
p("filter", {
|
|
953
985
|
id: `shadow_${f.value}`,
|
|
954
986
|
"color-interpolation-filters": "sRGB"
|
|
@@ -959,53 +991,53 @@ const La = ["id"], Ca = ["id"], _a = ["xmlns", "viewBox"], xa = ["width", "heigh
|
|
|
959
991
|
stdDeviation: "10",
|
|
960
992
|
"flood-opacity": "0.5",
|
|
961
993
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
962
|
-
}, null, 8,
|
|
963
|
-
], 8,
|
|
994
|
+
}, null, 8, Bl)
|
|
995
|
+
], 8, Ml)
|
|
964
996
|
]),
|
|
965
997
|
p("defs", null, [
|
|
966
|
-
(u(!0), r(A, null, T(
|
|
998
|
+
(u(!0), r(A, null, T(q.value, (a, o) => (u(), r("path", {
|
|
967
999
|
key: `path-full-${o}`,
|
|
968
1000
|
id: `path-full-${o}-${f.value}`,
|
|
969
|
-
d:
|
|
1001
|
+
d: a.fullCirclePath,
|
|
970
1002
|
fill: "none"
|
|
971
|
-
}, null, 8,
|
|
1003
|
+
}, null, 8, El))), 128))
|
|
972
1004
|
]),
|
|
973
|
-
(u(!0), r(A, null, T(
|
|
974
|
-
|
|
1005
|
+
(u(!0), r(A, null, T(q.value, (a, o) => (u(), r("g", null, [
|
|
1006
|
+
a.hasData ? (u(!0), r(A, { key: 0 }, T(a.donut.filter((t) => !t.ghost), (t, n) => (u(), r("g", null, [
|
|
975
1007
|
p("path", {
|
|
976
1008
|
class: "vue-ui-donut-arc-path",
|
|
977
1009
|
d: t.arcSlice,
|
|
978
1010
|
fill: t.color,
|
|
979
1011
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
980
1012
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
981
|
-
filter:
|
|
982
|
-
}, null, 8,
|
|
983
|
-
]))), 256)) : (u(!0), r(A, { key: 1 }, T(
|
|
1013
|
+
filter: ct(t, n)
|
|
1014
|
+
}, null, 8, Ul)
|
|
1015
|
+
]))), 256)) : (u(!0), r(A, { key: 1 }, T(a.skeleton, (t, n) => (u(), r("g", null, [
|
|
984
1016
|
p("path", {
|
|
985
1017
|
class: "vue-ui-donut-arc-path",
|
|
986
1018
|
d: t.arcSlice,
|
|
987
1019
|
fill: t.color,
|
|
988
1020
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
989
1021
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
990
|
-
}, null, 8,
|
|
1022
|
+
}, null, 8, Rl)
|
|
991
1023
|
]))), 256))
|
|
992
1024
|
]))), 256)),
|
|
993
|
-
e.value.style.chart.useGradient ? (u(), r("g",
|
|
994
|
-
(u(!0), r(A, null, T(
|
|
1025
|
+
e.value.style.chart.useGradient ? (u(), r("g", Gl, [
|
|
1026
|
+
(u(!0), r(A, null, T(dt.value, (a, o) => (u(), r("g", null, [
|
|
995
1027
|
p("path", {
|
|
996
|
-
d:
|
|
1028
|
+
d: a.donut.arcSlice,
|
|
997
1029
|
fill: `url(#radial_${f.value}_${o})`,
|
|
998
1030
|
stroke: "transparent",
|
|
999
1031
|
"stroke-width": "0"
|
|
1000
|
-
}, null, 8,
|
|
1032
|
+
}, null, 8, Yl)
|
|
1001
1033
|
]))), 256))
|
|
1002
1034
|
])) : $("", !0),
|
|
1003
|
-
e.value.style.chart.layout.labels.dataLabels.showDonutName ? (u(), r("g",
|
|
1004
|
-
e.value.style.chart.layout.labels.dataLabels.curvedDonutName ? (u(!0), r(A, { key: 0 }, T(
|
|
1005
|
-
(u(!0), r(A, null, T(
|
|
1035
|
+
e.value.style.chart.layout.labels.dataLabels.showDonutName ? (u(), r("g", Wl, [
|
|
1036
|
+
e.value.style.chart.layout.labels.dataLabels.curvedDonutName ? (u(!0), r(A, { key: 0 }, T(q.value, (a, o) => (u(), r("g", null, [
|
|
1037
|
+
(u(!0), r(A, null, T(a.donut, (t, n) => (u(), r("g", null, [
|
|
1006
1038
|
n === 0 && h.value.width && h.value.height ? (u(), r("text", {
|
|
1007
1039
|
key: 0,
|
|
1008
|
-
class:
|
|
1040
|
+
class: M({ animated: e.value.useCssAnimation }),
|
|
1009
1041
|
"text-anchor": "middle",
|
|
1010
1042
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1011
1043
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
|
|
@@ -1019,45 +1051,45 @@ const La = ["id"], Ca = ["id"], _a = ["xmlns", "viewBox"], xa = ["width", "heigh
|
|
|
1019
1051
|
method: "align",
|
|
1020
1052
|
spacing: "auto",
|
|
1021
1053
|
side: "right"
|
|
1022
|
-
},
|
|
1023
|
-
source:
|
|
1054
|
+
}, F(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? i($t)({
|
|
1055
|
+
source: a.name,
|
|
1024
1056
|
length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
|
|
1025
|
-
}) :
|
|
1026
|
-
], 10,
|
|
1057
|
+
}) : a.name), 9, ql)
|
|
1058
|
+
], 10, Xl)) : $("", !0)
|
|
1027
1059
|
]))), 256))
|
|
1028
|
-
]))), 256)) : (u(!0), r(A, { key: 1 }, T(
|
|
1029
|
-
(u(!0), r(A, null, T(
|
|
1060
|
+
]))), 256)) : (u(!0), r(A, { key: 1 }, T(q.value, (a, o) => (u(), r("g", null, [
|
|
1061
|
+
(u(!0), r(A, null, T(a.donut, (t, n) => (u(), r("g", null, [
|
|
1030
1062
|
n === 0 && h.value.width && h.value.height ? (u(), r("text", {
|
|
1031
1063
|
key: 0,
|
|
1032
|
-
class:
|
|
1064
|
+
class: M({ animated: e.value.useCssAnimation }),
|
|
1033
1065
|
x: h.value.width / 2,
|
|
1034
1066
|
y: t.startY - e.value.style.chart.layout.labels.dataLabels.fontSize + e.value.style.chart.layout.labels.dataLabels.donutNameOffsetY,
|
|
1035
1067
|
"text-anchor": "middle",
|
|
1036
1068
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1037
1069
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
|
|
1038
1070
|
fill: e.value.style.chart.layout.labels.dataLabels.color
|
|
1039
|
-
},
|
|
1040
|
-
source:
|
|
1071
|
+
}, F(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? i($t)({
|
|
1072
|
+
source: a.name,
|
|
1041
1073
|
length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
|
|
1042
|
-
}) :
|
|
1074
|
+
}) : a.name), 11, Hl)) : $("", !0)
|
|
1043
1075
|
]))), 256))
|
|
1044
1076
|
]))), 256))
|
|
1045
1077
|
])) : $("", !0),
|
|
1046
|
-
e.value.style.chart.layout.labels.dataLabels.show ? (u(), r("g",
|
|
1047
|
-
(u(!0), r(A, null, T(
|
|
1048
|
-
(u(!0), r(A, null, T(
|
|
1049
|
-
filter:
|
|
1078
|
+
e.value.style.chart.layout.labels.dataLabels.show ? (u(), r("g", Jl, [
|
|
1079
|
+
(u(!0), r(A, null, T(q.value, (a, o) => (u(), r("g", null, [
|
|
1080
|
+
(u(!0), r(A, null, T(a.donut.filter((t) => !t.ghost), (t, n) => (u(), r("g", {
|
|
1081
|
+
filter: ct(t, n)
|
|
1050
1082
|
}, [
|
|
1051
|
-
|
|
1052
|
-
class:
|
|
1053
|
-
opacity:
|
|
1083
|
+
gt(p("text", {
|
|
1084
|
+
class: M({ animated: e.value.useCssAnimation }),
|
|
1085
|
+
opacity: Ce(t) ? 1 : 0,
|
|
1054
1086
|
"text-anchor": i(Q)(t, !0).anchor,
|
|
1055
1087
|
x: i(Q)(
|
|
1056
1088
|
t,
|
|
1057
1089
|
!1,
|
|
1058
1090
|
e.value.style.chart.layout.labels.dataLabels.offsetX
|
|
1059
1091
|
).x || 0,
|
|
1060
|
-
y: i(
|
|
1092
|
+
y: i(Be)(
|
|
1061
1093
|
t,
|
|
1062
1094
|
e.value.style.chart.layout.labels.dataLabels.offsetY,
|
|
1063
1095
|
e.value.style.chart.layout.labels.dataLabels.offsetY
|
|
@@ -1065,26 +1097,26 @@ const La = ["id"], Ca = ["id"], _a = ["xmlns", "viewBox"], xa = ["width", "heigh
|
|
|
1065
1097
|
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
1066
1098
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1067
1099
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldPercentage ? "bold" : "normal"
|
|
1068
|
-
},
|
|
1100
|
+
}, F(i(O)({
|
|
1069
1101
|
v: t.proportion * 100,
|
|
1070
1102
|
s: "%",
|
|
1071
1103
|
r: e.value.style.chart.layout.labels.dataLabels.roundingPercentage
|
|
1072
|
-
})), 11,
|
|
1104
|
+
})), 11, Ql), [
|
|
1073
1105
|
[
|
|
1074
|
-
|
|
1075
|
-
|
|
1106
|
+
mt,
|
|
1107
|
+
m.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage
|
|
1076
1108
|
]
|
|
1077
1109
|
]),
|
|
1078
|
-
|
|
1079
|
-
class:
|
|
1080
|
-
opacity:
|
|
1110
|
+
gt(p("text", {
|
|
1111
|
+
class: M({ animated: e.value.useCssAnimation }),
|
|
1112
|
+
opacity: Ce(t) ? 1 : 0,
|
|
1081
1113
|
"text-anchor": i(Q)(t, !0).anchor,
|
|
1082
1114
|
x: i(Q)(
|
|
1083
1115
|
t,
|
|
1084
1116
|
!1,
|
|
1085
1117
|
e.value.style.chart.layout.labels.dataLabels.offsetX
|
|
1086
1118
|
).x || 0,
|
|
1087
|
-
y: i(
|
|
1119
|
+
y: i(Be)(
|
|
1088
1120
|
t,
|
|
1089
1121
|
e.value.style.chart.layout.labels.dataLabels.offsetY,
|
|
1090
1122
|
e.value.style.chart.layout.labels.dataLabels.offsetY
|
|
@@ -1092,32 +1124,32 @@ const La = ["id"], Ca = ["id"], _a = ["xmlns", "viewBox"], xa = ["width", "heigh
|
|
|
1092
1124
|
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
1093
1125
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1094
1126
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
|
|
1095
|
-
}, " (" +
|
|
1127
|
+
}, " (" + F(i(le)(
|
|
1096
1128
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
1097
1129
|
t.value,
|
|
1098
|
-
i(
|
|
1130
|
+
i(O)({
|
|
1099
1131
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1100
1132
|
v: t.value,
|
|
1101
1133
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
1102
1134
|
r: e.value.style.chart.layout.labels.dataLabels.roundingValue
|
|
1103
1135
|
}),
|
|
1104
1136
|
{ datapoint: t, seriesIndex: o, datapointIndex: n }
|
|
1105
|
-
)) + ") ", 11,
|
|
1137
|
+
)) + ") ", 11, Zl), [
|
|
1106
1138
|
[
|
|
1107
|
-
|
|
1108
|
-
|
|
1139
|
+
mt,
|
|
1140
|
+
m.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue
|
|
1109
1141
|
]
|
|
1110
1142
|
]),
|
|
1111
|
-
|
|
1143
|
+
Ce(t) && m.value.dataLabels.show && !e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue ? (u(), r("text", {
|
|
1112
1144
|
key: 0,
|
|
1113
|
-
class:
|
|
1145
|
+
class: M({ animated: e.value.useCssAnimation }),
|
|
1114
1146
|
"text-anchor": i(Q)(t, !0).anchor,
|
|
1115
1147
|
x: i(Q)(
|
|
1116
1148
|
t,
|
|
1117
1149
|
!1,
|
|
1118
1150
|
e.value.style.chart.layout.labels.dataLabels.offsetX
|
|
1119
1151
|
).x || 0,
|
|
1120
|
-
y: i(
|
|
1152
|
+
y: i(Be)(
|
|
1121
1153
|
t,
|
|
1122
1154
|
e.value.style.chart.layout.labels.dataLabels.offsetY,
|
|
1123
1155
|
e.value.style.chart.layout.labels.dataLabels.offsetY
|
|
@@ -1125,42 +1157,42 @@ const La = ["id"], Ca = ["id"], _a = ["xmlns", "viewBox"], xa = ["width", "heigh
|
|
|
1125
1157
|
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
1126
1158
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1127
1159
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
|
|
1128
|
-
},
|
|
1160
|
+
}, F(i(le)(
|
|
1129
1161
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
1130
1162
|
t.value,
|
|
1131
|
-
i(
|
|
1163
|
+
i(O)({
|
|
1132
1164
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1133
1165
|
v: t.value,
|
|
1134
1166
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
1135
1167
|
r: e.value.style.chart.layout.labels.dataLabels.roundingValue
|
|
1136
1168
|
}),
|
|
1137
1169
|
{ datapoint: t, seriesIndex: o, datapointIndex: n }
|
|
1138
|
-
)), 11,
|
|
1139
|
-
], 8,
|
|
1170
|
+
)), 11, jl)) : $("", !0)
|
|
1171
|
+
], 8, Kl))), 256))
|
|
1140
1172
|
]))), 256))
|
|
1141
1173
|
])) : $("", !0),
|
|
1142
|
-
(u(!0), r(A, null, T(
|
|
1143
|
-
(u(!0), r(A, null, T(
|
|
1174
|
+
(u(!0), r(A, null, T(q.value, (a, o) => (u(), r("g", null, [
|
|
1175
|
+
(u(!0), r(A, null, T(a.donut, (t, n) => (u(), r("g", null, [
|
|
1144
1176
|
p("path", {
|
|
1145
1177
|
d: t.arcSlice,
|
|
1146
|
-
fill:
|
|
1147
|
-
onMouseenter: (v) =>
|
|
1178
|
+
fill: pe.value === t.id ? e.value.style.chart.layout.donut.selectedColor : "transparent",
|
|
1179
|
+
onMouseenter: (v) => Yt({
|
|
1148
1180
|
datapoint: t,
|
|
1149
1181
|
seriesIndex: t.seriesIndex
|
|
1150
1182
|
}),
|
|
1151
|
-
onClick: (v) =>
|
|
1152
|
-
onMouseleave: (v) =>
|
|
1153
|
-
}, null, 40,
|
|
1183
|
+
onClick: (v) => Ut({ datapoint: t, index: n, seriesIndex: t.seriesIndex }),
|
|
1184
|
+
onMouseleave: (v) => Gt({ datapoint: t, seriesIndex: t.seriesIndex })
|
|
1185
|
+
}, null, 40, ea)
|
|
1154
1186
|
]))), 256))
|
|
1155
1187
|
]))), 256)),
|
|
1156
|
-
|
|
1188
|
+
_(l.$slots, "svg", { svg: h.value }, void 0, !0)
|
|
1157
1189
|
], 512)
|
|
1158
|
-
], 14,
|
|
1159
|
-
|
|
1160
|
-
|
|
1190
|
+
], 14, Ol)),
|
|
1191
|
+
l.$slots.watermark ? (u(), r("div", ta, [
|
|
1192
|
+
_(l.$slots, "watermark", H(J({ isPrinting: i(lt) || i(at) })), void 0, !0)
|
|
1161
1193
|
])) : $("", !0),
|
|
1162
|
-
|
|
1163
|
-
show:
|
|
1194
|
+
Pe(i(Nt), {
|
|
1195
|
+
show: m.value.showTooltip && he.value,
|
|
1164
1196
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1165
1197
|
color: e.value.style.chart.tooltip.color,
|
|
1166
1198
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -1170,62 +1202,62 @@ const La = ["id"], Ca = ["id"], _a = ["xmlns", "viewBox"], xa = ["width", "heigh
|
|
|
1170
1202
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
1171
1203
|
position: e.value.style.chart.tooltip.position,
|
|
1172
1204
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1173
|
-
parent:
|
|
1174
|
-
content:
|
|
1205
|
+
parent: I.value,
|
|
1206
|
+
content: fe.value,
|
|
1175
1207
|
isFullscreen: G.value,
|
|
1176
|
-
isCustom: i(
|
|
1208
|
+
isCustom: i(Ct)(e.value.style.chart.tooltip.customFormat),
|
|
1177
1209
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
1178
1210
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter
|
|
1179
1211
|
}, {
|
|
1180
|
-
"tooltip-before":
|
|
1181
|
-
|
|
1212
|
+
"tooltip-before": C(() => [
|
|
1213
|
+
_(l.$slots, "tooltip-before", H(J({ ...$e.value })), void 0, !0)
|
|
1182
1214
|
]),
|
|
1183
|
-
"tooltip-after":
|
|
1184
|
-
|
|
1215
|
+
"tooltip-after": C(() => [
|
|
1216
|
+
_(l.$slots, "tooltip-after", H(J({ ...$e.value })), void 0, !0)
|
|
1185
1217
|
]),
|
|
1186
1218
|
_: 3
|
|
1187
1219
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
|
|
1188
1220
|
p("div", {
|
|
1189
1221
|
id: `legend-bottom-${f.value}`
|
|
1190
|
-
}, null, 8,
|
|
1191
|
-
|
|
1222
|
+
}, null, 8, la),
|
|
1223
|
+
He.value ? (u(), B(ll, {
|
|
1192
1224
|
key: 5,
|
|
1193
1225
|
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${f.value}` : `#legend-bottom-${f.value}`
|
|
1194
1226
|
}, [
|
|
1195
1227
|
e.value.style.chart.legend.show ? (u(), r("div", {
|
|
1196
1228
|
key: 0,
|
|
1197
1229
|
ref_key: "chartLegend",
|
|
1198
|
-
ref:
|
|
1199
|
-
class:
|
|
1230
|
+
ref: ye,
|
|
1231
|
+
class: M({ "vue-ui-nested-donuts-legend": Le.value.length > 1 })
|
|
1200
1232
|
}, [
|
|
1201
|
-
(u(!0), r(A, null, T(
|
|
1202
|
-
key: `legend_${o}_${
|
|
1203
|
-
legendSet:
|
|
1204
|
-
config:
|
|
1205
|
-
onClickMarker: s[0] || (s[0] = ({ legend: t }) =>
|
|
1233
|
+
(u(!0), r(A, null, T(Le.value, (a, o) => (u(), B(Al, {
|
|
1234
|
+
key: `legend_${o}_${qe.value}`,
|
|
1235
|
+
legendSet: a,
|
|
1236
|
+
config: Wt.value,
|
|
1237
|
+
onClickMarker: s[0] || (s[0] = ({ legend: t }) => ke(t))
|
|
1206
1238
|
}, {
|
|
1207
|
-
legendTitle:
|
|
1208
|
-
t[0] && t[0].arcOf ? (u(), r("div",
|
|
1239
|
+
legendTitle: C(({ titleSet: t }) => [
|
|
1240
|
+
t[0] && t[0].arcOf ? (u(), r("div", aa, F(t[0].arcOf), 1)) : $("", !0)
|
|
1209
1241
|
]),
|
|
1210
|
-
item:
|
|
1242
|
+
item: C(({ legend: t, index: n }) => [
|
|
1211
1243
|
p("div", {
|
|
1212
|
-
onClick: (v) =>
|
|
1213
|
-
style:
|
|
1214
|
-
},
|
|
1244
|
+
onClick: (v) => ke(t),
|
|
1245
|
+
style: ve(`opacity:${L.value.includes(t.id) ? 0.5 : 1}`)
|
|
1246
|
+
}, F(t.name) + F(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + F(e.value.style.chart.legend.showValue ? i(le)(
|
|
1215
1247
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
1216
1248
|
t.value,
|
|
1217
|
-
i(
|
|
1249
|
+
i(O)({
|
|
1218
1250
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1219
1251
|
v: t.value,
|
|
1220
1252
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
1221
1253
|
r: e.value.style.chart.legend.roundingValue
|
|
1222
1254
|
}),
|
|
1223
1255
|
{ datapoint: t, seriesIndex: n }
|
|
1224
|
-
) : "") + " " +
|
|
1256
|
+
) : "") + " " + F(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)({
|
|
1225
1257
|
v: t.value / t.total * 100,
|
|
1226
1258
|
s: "%",
|
|
1227
1259
|
r: e.value.style.chart.legend.roundingPercentage
|
|
1228
|
-
})}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13,
|
|
1260
|
+
})}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, oa)
|
|
1229
1261
|
]),
|
|
1230
1262
|
_: 1
|
|
1231
1263
|
}, 8, ["legendSet", "config"]))), 128))
|
|
@@ -1234,62 +1266,76 @@ const La = ["id"], Ca = ["id"], _a = ["xmlns", "viewBox"], xa = ["width", "heigh
|
|
|
1234
1266
|
e.value.style.chart.legend.show ? $("", !0) : (u(), r("div", {
|
|
1235
1267
|
key: 6,
|
|
1236
1268
|
ref_key: "chartLegend",
|
|
1237
|
-
ref:
|
|
1269
|
+
ref: ye
|
|
1238
1270
|
}, [
|
|
1239
|
-
|
|
1271
|
+
_(l.$slots, "legend", { legend: Le.value }, void 0, !0)
|
|
1240
1272
|
], 512)),
|
|
1241
|
-
|
|
1273
|
+
l.$slots.source ? (u(), r("div", {
|
|
1242
1274
|
key: 7,
|
|
1243
1275
|
ref_key: "source",
|
|
1244
|
-
ref:
|
|
1276
|
+
ref: Ge,
|
|
1245
1277
|
dir: "auto"
|
|
1246
1278
|
}, [
|
|
1247
|
-
|
|
1279
|
+
_(l.$slots, "source", {}, void 0, !0)
|
|
1248
1280
|
], 512)) : $("", !0),
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
}, {
|
|
1265
|
-
content: _(() => [
|
|
1266
|
-
(u(), M(i(At), {
|
|
1267
|
-
key: `table_${Ue.value}`,
|
|
1268
|
-
colNames: oe.value.colNames,
|
|
1269
|
-
head: oe.value.head,
|
|
1270
|
-
body: oe.value.body,
|
|
1271
|
-
config: oe.value.config,
|
|
1272
|
-
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1273
|
-
onClose: s[1] || (s[1] = (l) => k.value.showTable = !1)
|
|
1281
|
+
ce.value ? (u(), B(al(ee.value.component), ol({ key: 8 }, ee.value.props, {
|
|
1282
|
+
ref_key: "tableUnit",
|
|
1283
|
+
ref: j,
|
|
1284
|
+
onClose: s[3] || (s[3] = (a) => m.value.showTable = !1)
|
|
1285
|
+
}), bt({
|
|
1286
|
+
content: C(() => [
|
|
1287
|
+
(u(), B(i(St), {
|
|
1288
|
+
key: `table_${Xe.value}`,
|
|
1289
|
+
colNames: ne.value.colNames,
|
|
1290
|
+
head: ne.value.head,
|
|
1291
|
+
body: ne.value.body,
|
|
1292
|
+
config: ne.value.config,
|
|
1293
|
+
title: e.value.table.useDialog ? "" : ee.value.title,
|
|
1294
|
+
withCloseButton: !e.value.table.useDialog,
|
|
1295
|
+
onClose: s[2] || (s[2] = (a) => m.value.showTable = !1)
|
|
1274
1296
|
}, {
|
|
1275
|
-
th:
|
|
1297
|
+
th: C(({ th: a }) => [
|
|
1276
1298
|
p("div", {
|
|
1277
|
-
innerHTML:
|
|
1299
|
+
innerHTML: a,
|
|
1278
1300
|
style: { display: "flex", "align-items": "center" }
|
|
1279
|
-
}, null, 8,
|
|
1301
|
+
}, null, 8, sa)
|
|
1280
1302
|
]),
|
|
1281
|
-
td:
|
|
1282
|
-
|
|
1303
|
+
td: C(({ td: a }) => [
|
|
1304
|
+
wt(F(a.name || a), 1)
|
|
1283
1305
|
]),
|
|
1284
1306
|
_: 1
|
|
1285
|
-
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
1307
|
+
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
1286
1308
|
]),
|
|
1287
|
-
_:
|
|
1288
|
-
},
|
|
1289
|
-
|
|
1290
|
-
|
|
1309
|
+
_: 2
|
|
1310
|
+
}, [
|
|
1311
|
+
e.value.table.useDialog ? {
|
|
1312
|
+
name: "title",
|
|
1313
|
+
fn: C(() => [
|
|
1314
|
+
wt(F(ee.value.title), 1)
|
|
1315
|
+
]),
|
|
1316
|
+
key: "0"
|
|
1317
|
+
} : void 0,
|
|
1318
|
+
e.value.table.useDialog ? {
|
|
1319
|
+
name: "actions",
|
|
1320
|
+
fn: C(() => [
|
|
1321
|
+
p("button", {
|
|
1322
|
+
tabindex: "0",
|
|
1323
|
+
class: "vue-ui-user-options-button",
|
|
1324
|
+
onClick: s[1] || (s[1] = (a) => xe(e.value.userOptions.callbacks.csv))
|
|
1325
|
+
}, [
|
|
1326
|
+
Pe(i(Ft), {
|
|
1327
|
+
name: "excel",
|
|
1328
|
+
stroke: ee.value.props.color
|
|
1329
|
+
}, null, 8, ["stroke"])
|
|
1330
|
+
])
|
|
1331
|
+
]),
|
|
1332
|
+
key: "1"
|
|
1333
|
+
} : void 0
|
|
1334
|
+
]), 1040)) : $("", !0),
|
|
1335
|
+
i(be) ? (u(), B(kl, { key: 9 })) : $("", !0)
|
|
1336
|
+
], 46, Nl));
|
|
1291
1337
|
}
|
|
1292
|
-
},
|
|
1338
|
+
}, ma = /* @__PURE__ */ Tl(ua, [["__scopeId", "data-v-0381ca3e"]]);
|
|
1293
1339
|
export {
|
|
1294
|
-
|
|
1340
|
+
ma as default
|
|
1295
1341
|
};
|