vue-data-ui 2.15.1 → 2.15.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-DwANSJOY.js → Arrow-BWXCPv6v.js} +1 -1
- package/dist/{BaseDraggableDialog-DQdF6qOC.js → BaseDraggableDialog-BVDVgkJA.js} +2 -2
- package/dist/{BaseIcon-CYiu1cpW.js → BaseIcon-Bp7UPYnW.js} +1 -1
- package/dist/{ColorPicker-CnQrtzVM.js → ColorPicker-B5OAwv96.js} +2 -2
- package/dist/{DataTable-Cm_GJw0b.js → DataTable-93xWsJ6c.js} +2 -2
- package/dist/{Legend-CgtCMjDL.js → Legend-hctdyKA6.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CFa5qMqz.js → NonSvgPenAndPaper-CseO56IR.js} +3 -3
- package/dist/{PackageVersion-gLNy4C0t.js → PackageVersion-yIH1jHJc.js} +1 -1
- package/dist/{PenAndPaper-CF8MOhzS.js → PenAndPaper-D6C8iSCb.js} +3 -3
- package/dist/{Shape-DWUzGGp4.js → Shape-KmPcM_8X.js} +1 -1
- package/dist/{Slicer-DZ7IzAkP.js → Slicer-5-W1e_S-.js} +2 -2
- package/dist/{SparkTooltip-BdeQT9Z9.js → SparkTooltip-B9dKuZbW.js} +1 -1
- package/dist/{Title-CSUbkA4W.js → Title-D7i6kdEt.js} +1 -1
- package/dist/{Tooltip-wFU7JwQL.js → Tooltip-CgE5JMdg.js} +1 -1
- package/dist/{UserOptions-C72U1mPN.js → UserOptions-DjQRjUl1.js} +2 -2
- package/dist/{dom-to-png-DeqUSL_Y.js → dom-to-png-DyD8S_Jr.js} +1 -1
- package/dist/{img-zmN6-yO1.js → img-BUo2ttV5.js} +1 -1
- package/dist/{index-CFxgtqnt.js → index-0xl6yeT_.js} +5 -3
- package/dist/{pdf-M2xyR2QC.js → pdf-DXd78sXk.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +2 -0
- package/dist/types/vue-data-ui.d.ts +2 -0
- package/dist/{useNestedProp-Cwa5NEME.js → useNestedProp-BpsGhH52.js} +1 -1
- package/dist/{usePrinter-AfZAUxa7.js → usePrinter-G7F4lL2Z.js} +2 -2
- package/dist/{vue-data-ui-CJ7CvGLc.js → vue-data-ui-1c3WZYGe.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BOGfsBpk.js → vue-ui-3d-bar-BM1HD1_j.js} +5 -5
- package/dist/{vue-ui-accordion-un8Cf2VZ.js → vue-ui-accordion-gr1Dczju.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CWyGWQe8.js → vue-ui-age-pyramid-cFxPrty5.js} +5 -5
- package/dist/{vue-ui-annotator-CDhTSwXn.js → vue-ui-annotator-CoN1JEMD.js} +2 -2
- package/dist/{vue-ui-bullet-DiksLI4z.js → vue-ui-bullet-ClcGk_b0.js} +6 -6
- package/dist/{vue-ui-candlestick-C8IGwjcr.js → vue-ui-candlestick-DO-1KYTl.js} +6 -6
- package/dist/{vue-ui-carousel-table-CCvksAgG.js → vue-ui-carousel-table-9Ku_ebjG.js} +4 -4
- package/dist/{vue-ui-chestnut-DcUz8diI.js → vue-ui-chestnut-3Gjab_Sk.js} +4 -4
- package/dist/{vue-ui-chord-BlVV-YuE.js → vue-ui-chord-DeOUOOCR.js} +7 -7
- package/dist/{vue-ui-circle-pack-TjeTNtjm.js → vue-ui-circle-pack-BfdGvoPl.js} +5 -5
- package/dist/{vue-ui-cursor-CS3QT6QH.js → vue-ui-cursor-BAlIn5n7.js} +2 -2
- package/dist/{vue-ui-dashboard-D48zFeQp.js → vue-ui-dashboard-DYn5g5A0.js} +62 -62
- package/dist/{vue-ui-digits-DPnLXvr7.js → vue-ui-digits-COnU0Bjx.js} +2 -2
- package/dist/{vue-ui-donut-DVqw5vtF.js → vue-ui-donut-CVMUWBHY.js} +450 -428
- package/dist/{vue-ui-donut-evolution-DRtuLXs1.js → vue-ui-donut-evolution-DdODzbv7.js} +7 -7
- package/dist/{vue-ui-dumbbell-BUG2lBqH.js → vue-ui-dumbbell-zue1EgiF.js} +6 -6
- package/dist/{vue-ui-flow-DQnOvqqZ.js → vue-ui-flow-CT_KSVPw.js} +6 -6
- package/dist/{vue-ui-funnel-CWnwh3ot.js → vue-ui-funnel-B6y2syp1.js} +5 -5
- package/dist/{vue-ui-galaxy-Cw8wUzZc.js → vue-ui-galaxy-6hf2O-OT.js} +4 -4
- package/dist/{vue-ui-gauge-Ctj-2pjJ.js → vue-ui-gauge-D5sdINkF.js} +5 -5
- package/dist/{vue-ui-gizmo-CRR5ELx2.js → vue-ui-gizmo-l8GqobB9.js} +3 -3
- package/dist/{vue-ui-heatmap-CidNRz38.js → vue-ui-heatmap-oMWjyEU1.js} +6 -6
- package/dist/{vue-ui-history-plot-CXsCloRw.js → vue-ui-history-plot-CPDfop4z.js} +6 -6
- package/dist/{vue-ui-kpi-B_d2ZvBt.js → vue-ui-kpi-DdT8c2qN.js} +3 -3
- package/dist/{vue-ui-mini-loader-BZl8N6l8.js → vue-ui-mini-loader-sUauCnke.js} +2 -2
- package/dist/{vue-ui-molecule-Crjs9G1f.js → vue-ui-molecule-CGiz21KJ.js} +4 -4
- package/dist/{vue-ui-mood-radar-Cb3mGtHM.js → vue-ui-mood-radar-DuBZs64f.js} +6 -6
- package/dist/{vue-ui-nested-donuts-CXJOUrH9.js → vue-ui-nested-donuts-CjwnVuni.js} +350 -327
- package/dist/{vue-ui-onion-C5Gii_OS.js → vue-ui-onion-Dtb6f9Pj.js} +6 -6
- package/dist/{vue-ui-parallel-coordinate-plot-B47cE7x1.js → vue-ui-parallel-coordinate-plot-eUARPFQz.js} +7 -7
- package/dist/{vue-ui-quadrant-BoUV_9eX.js → vue-ui-quadrant-BENOLZTh.js} +7 -7
- package/dist/{vue-ui-quick-chart-Cdh-VrA5.js → vue-ui-quick-chart-BbiNJN8H.js} +5 -5
- package/dist/{vue-ui-radar-6qaFOhCO.js → vue-ui-radar-Ca928f5C.js} +6 -6
- package/dist/{vue-ui-rating-BVOAx0Z9.js → vue-ui-rating-Chk3Bc6U.js} +2 -2
- package/dist/{vue-ui-relation-circle-Dca25bGQ.js → vue-ui-relation-circle-GliccPBT.js} +5 -5
- package/dist/{vue-ui-ridgeline-8gaNTH3e.js → vue-ui-ridgeline-j8bwod-1.js} +7 -7
- package/dist/{vue-ui-rings-vP9LLpEg.js → vue-ui-rings-AHi_l7MY.js} +7 -7
- package/dist/{vue-ui-scatter-KVB6x4QY.js → vue-ui-scatter-cC3vGu_O.js} +7 -7
- package/dist/{vue-ui-skeleton-D6E8A35W.js → vue-ui-skeleton-1aUzcGMM.js} +3 -3
- package/dist/{vue-ui-smiley-DYTOHlaK.js → vue-ui-smiley-A-HBdymI.js} +2 -2
- package/dist/{vue-ui-spark-trend-BARGEqPt.js → vue-ui-spark-trend-Ctx6IJHJ.js} +3 -3
- package/dist/{vue-ui-sparkbar-Bu5AgACq.js → vue-ui-sparkbar-T2LuTMDI.js} +3 -3
- package/dist/{vue-ui-sparkgauge-Bw-TfafI.js → vue-ui-sparkgauge-FEVecElc.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-DFF1Q-Oh.js → vue-ui-sparkhistogram-Bu8hx-SD.js} +4 -4
- package/dist/{vue-ui-sparkline-BVi5o4JQ.js → vue-ui-sparkline-B0dlaC56.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-Dj5979cI.js → vue-ui-sparkstackbar-CvYbH--B.js} +3 -3
- package/dist/{vue-ui-stackbar-BS-i25iw.js → vue-ui-stackbar-CPsdBNF8.js} +8 -8
- package/dist/{vue-ui-strip-plot-EzMEy1tY.js → vue-ui-strip-plot-Dl7Zg_Ou.js} +6 -6
- package/dist/{vue-ui-table-D09r27CS.js → vue-ui-table-1A4jcDSx.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DmMBhZEy.js → vue-ui-table-heatmap-KzYY-CQt.js} +5 -5
- package/dist/{vue-ui-table-sparkline-DsahaIU8.js → vue-ui-table-sparkline-D9_N4McK.js} +4 -4
- package/dist/{vue-ui-thermometer-CIPWWgjC.js → vue-ui-thermometer-CJUIRDs5.js} +5 -5
- package/dist/{vue-ui-timer-By4e5K_e.js → vue-ui-timer-DjPOb80m.js} +5 -5
- package/dist/{vue-ui-tiremarks-D99xRKxa.js → vue-ui-tiremarks-mTtcrs7r.js} +5 -5
- package/dist/{vue-ui-treemap-BEVSWBXq.js → vue-ui-treemap-D8oyCUmA.js} +7 -7
- package/dist/{vue-ui-vertical-bar-CBDSbJ47.js → vue-ui-vertical-bar-CsNUVJfk.js} +8 -8
- package/dist/{vue-ui-waffle-CBtRK0VM.js → vue-ui-waffle-CEvNLzHh.js} +7 -7
- package/dist/{vue-ui-wheel-BeKXUTAO.js → vue-ui-wheel-Dw_Z669Z.js} +5 -5
- package/dist/{vue-ui-word-cloud-14WZg5tB.js → vue-ui-word-cloud-BsK5IGnI.js} +5 -5
- package/dist/{vue-ui-world-BRn7KBHE.js → vue-ui-world-_xucFe9e.js} +5 -5
- package/dist/{vue-ui-xy-Dcy4PxLW.js → vue-ui-xy-BE4LWW9m.js} +16 -16
- package/dist/{vue-ui-xy-canvas-CXYQlPPC.js → vue-ui-xy-canvas-3Fbzqt4p.js} +7 -7
- package/package.json +1 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineAsyncComponent as E, computed as
|
|
2
|
-
import { u as
|
|
1
|
+
import { defineAsyncComponent as E, computed as $, ref as h, watch as lt, onMounted as at, nextTick as ot, shallowRef as st, onBeforeUnmount as zt, createElementBlock as i, openBlock as n, unref as r, normalizeStyle as ue, normalizeClass as U, createBlock as R, createCommentVNode as m, createVNode as ut, createSlots as Mt, withCtx as L, renderSlot as x, normalizeProps as Y, guardReactiveProps as X, createElementVNode as g, Fragment as T, renderList as F, toDisplayString as S, withDirectives as nt, vShow as rt, createTextVNode as ne } from "vue";
|
|
2
|
+
import { u as Et, c as Ut, t as Rt, p as Ce, a as Bt, H as D, o as Gt, e as W, b as Yt, d as Xt, m as _e, f as N, X as Wt, s as Ht, L as qt, k as Te, n as H, i as K, x as it, q as Jt, r as Kt, y as Qt, v as Fe, T as dt } from "./index-0xl6yeT_.js";
|
|
3
3
|
import { t as Zt, u as jt } from "./useResponsive-JZ9xq-JV.js";
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as el } from "./usePrinter-
|
|
4
|
+
import { u as ct } from "./useNestedProp-BpsGhH52.js";
|
|
5
|
+
import { u as el } from "./usePrinter-G7F4lL2Z.js";
|
|
6
6
|
import { u as tl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as ll } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import al from "./Title-
|
|
9
|
-
import ol from "./Legend-
|
|
8
|
+
import al from "./Title-D7i6kdEt.js";
|
|
9
|
+
import ol from "./Legend-hctdyKA6.js";
|
|
10
10
|
import { _ as sl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
-
const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["id"], dl = ["offset", "stop-color"], cl = ["offset", "stop-opacity"], vl = ["id"], hl = ["id"], fl = ["id"], pl = ["flood-color"], yl = ["d", "fill", "stroke", "stroke-width", "filter"], bl = { key: 1 },
|
|
11
|
+
const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["id"], dl = ["offset", "stop-color"], cl = ["offset", "stop-opacity"], vl = ["id"], hl = ["id"], fl = ["id"], pl = ["flood-color"], yl = ["d", "fill", "stroke", "stroke-width", "filter"], bl = ["d", "fill", "stroke", "stroke-width"], gl = { key: 1 }, ml = ["d", "fill"], wl = { key: 2 }, kl = ["x", "y", "font-size", "font-weight", "fill"], $l = { key: 3 }, Ll = ["filter"], xl = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], Cl = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], _l = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], Tl = ["d", "fill", "onMouseenter", "onClick"], Fl = {
|
|
12
12
|
key: 5,
|
|
13
13
|
class: "vue-data-ui-watermark"
|
|
14
14
|
}, Nl = {
|
|
15
15
|
key: 0,
|
|
16
16
|
class: "vue-ui-nested-donuts-legend-title"
|
|
17
|
-
}, Ol = ["onClick"],
|
|
17
|
+
}, Ol = ["onClick"], Al = ["innerHTML"], Il = {
|
|
18
18
|
__name: "vue-ui-nested-donuts",
|
|
19
19
|
props: {
|
|
20
20
|
config: {
|
|
@@ -31,38 +31,38 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
emits: ["selectLegend", "selectDatapoint"],
|
|
34
|
-
setup(
|
|
35
|
-
const
|
|
36
|
-
function
|
|
34
|
+
setup(vt, { expose: ht, emit: ft }) {
|
|
35
|
+
const pt = E(() => import("./vue-ui-accordion-gr1Dczju.js")), yt = E(() => import("./DataTable-93xWsJ6c.js")), bt = E(() => import("./PackageVersion-yIH1jHJc.js")), gt = E(() => import("./PenAndPaper-D6C8iSCb.js")), mt = E(() => import("./vue-ui-skeleton-1aUzcGMM.js")), wt = E(() => import("./Tooltip-CgE5JMdg.js")), kt = E(() => import("./UserOptions-DjQRjUl1.js")), { vue_ui_nested_donuts: $t } = Et(), C = vt, Q = $(() => !!C.dataset && C.dataset.length), y = h(Ut()), re = h(!1), ie = h(""), Lt = h(null), Ne = h(0), q = h(null), Oe = h(null), de = h(null), Ae = h(null), Ie = h(null), Se = h(0), Ve = h(0), Pe = h(0), z = h(!0), M = h([]), J = h([]), B = h(!1);
|
|
36
|
+
function xt(l) {
|
|
37
37
|
B.value = l, Ne.value += 1;
|
|
38
38
|
}
|
|
39
|
-
const e =
|
|
40
|
-
get: () =>
|
|
39
|
+
const e = $({
|
|
40
|
+
get: () => Ee(),
|
|
41
41
|
set: (l) => l
|
|
42
|
-
}), { userOptionsVisible:
|
|
42
|
+
}), { userOptionsVisible: ce, setUserOptionsVisibility: De, keepUserOptionState: ze } = tl({ config: e.value }), { svgRef: Me } = ll({
|
|
43
43
|
config: e.value.style.chart.title
|
|
44
44
|
});
|
|
45
|
-
function
|
|
46
|
-
const l =
|
|
45
|
+
function Ee() {
|
|
46
|
+
const l = ct({
|
|
47
47
|
userConfig: C.config,
|
|
48
|
-
defaultConfig:
|
|
48
|
+
defaultConfig: $t
|
|
49
49
|
});
|
|
50
50
|
return l.theme ? {
|
|
51
|
-
...
|
|
52
|
-
userConfig:
|
|
51
|
+
...ct({
|
|
52
|
+
userConfig: Bt.vue_ui_nested_donuts[l.theme] || C.config,
|
|
53
53
|
defaultConfig: l
|
|
54
54
|
}),
|
|
55
|
-
customPalette:
|
|
55
|
+
customPalette: Rt[l.theme] || Ce
|
|
56
56
|
} : l;
|
|
57
57
|
}
|
|
58
|
-
|
|
58
|
+
lt(
|
|
59
59
|
() => C.config,
|
|
60
60
|
(l) => {
|
|
61
|
-
e.value =
|
|
61
|
+
e.value = Ee(), ce.value = !e.value.userOptions.showOnChartHover, ve(), Se.value += 1, Ve.value += 1, Pe.value += 1, k.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, k.value.showTable = e.value.table.show, k.value.showTooltip = e.value.style.chart.tooltip.show, f.value.width = e.value.style.chart.width, f.value.height = e.value.style.chart.height;
|
|
62
62
|
},
|
|
63
63
|
{ deep: !0 }
|
|
64
64
|
);
|
|
65
|
-
const
|
|
65
|
+
const Ue = $(() => {
|
|
66
66
|
const { top: l, right: s, bottom: a, left: o } = e.value.style.chart.padding;
|
|
67
67
|
return {
|
|
68
68
|
css: `padding:${l}px ${s}px ${a}px ${o}px`,
|
|
@@ -72,52 +72,52 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
72
72
|
left: o
|
|
73
73
|
};
|
|
74
74
|
});
|
|
75
|
-
function
|
|
75
|
+
function Ct(l, s = 1e3, a = 50) {
|
|
76
76
|
return new Promise((o) => {
|
|
77
77
|
const t = l.length;
|
|
78
78
|
M.value = Array(t).fill(0), J.value = [];
|
|
79
79
|
let u = 0;
|
|
80
|
-
l.forEach((
|
|
80
|
+
l.forEach((c, v) => {
|
|
81
81
|
setTimeout(() => {
|
|
82
|
-
const
|
|
83
|
-
function
|
|
84
|
-
const _ = Math.min((p -
|
|
85
|
-
M.value[
|
|
86
|
-
const
|
|
82
|
+
const O = performance.now();
|
|
83
|
+
function d(p) {
|
|
84
|
+
const _ = Math.min((p - O) / s, 1), ge = dt(_), me = c * ge;
|
|
85
|
+
M.value[v] = me, M.value = [...M.value];
|
|
86
|
+
const oe = [];
|
|
87
87
|
let we = 0;
|
|
88
|
-
C.dataset.forEach((
|
|
89
|
-
const
|
|
90
|
-
(Le, xe) => Le +
|
|
88
|
+
C.dataset.forEach((se, ke) => {
|
|
89
|
+
const St = Fe(se.series.reduce(
|
|
90
|
+
(Le, xe) => Le + Fe(D(xe.values).reduce((Pt, Dt) => Pt + Dt, 0)),
|
|
91
91
|
0
|
|
92
|
-
)),
|
|
93
|
-
|
|
92
|
+
)), Vt = Fe(M.value.slice(we, we + se.series.length).reduce((Le, xe) => Le + xe, 0)), $e = St - Vt;
|
|
93
|
+
$e > Number.MIN_VALUE && oe.push({
|
|
94
94
|
name: "__ghost__",
|
|
95
|
-
arcOf:
|
|
96
|
-
arcOfId: `${y.value}_${
|
|
97
|
-
id: `ghost_${y.value}_${
|
|
95
|
+
arcOf: se.name,
|
|
96
|
+
arcOfId: `${y.value}_${ke}`,
|
|
97
|
+
id: `ghost_${y.value}_${ke}`,
|
|
98
98
|
seriesIndex: -1,
|
|
99
|
-
datasetIndex:
|
|
99
|
+
datasetIndex: ke,
|
|
100
100
|
color: "transparent",
|
|
101
|
-
value:
|
|
102
|
-
fullValue:
|
|
101
|
+
value: $e,
|
|
102
|
+
fullValue: $e,
|
|
103
103
|
absoluteValues: [],
|
|
104
104
|
ghost: !0
|
|
105
|
-
}), we +=
|
|
106
|
-
}), J.value =
|
|
105
|
+
}), we += se.series.length;
|
|
106
|
+
}), J.value = oe, _ < 1 ? requestAnimationFrame(d) : (u += 1, u === t && o());
|
|
107
107
|
}
|
|
108
|
-
requestAnimationFrame(
|
|
109
|
-
},
|
|
108
|
+
requestAnimationFrame(d);
|
|
109
|
+
}, v * a);
|
|
110
110
|
});
|
|
111
111
|
});
|
|
112
112
|
}
|
|
113
|
-
|
|
114
|
-
if (
|
|
113
|
+
at(async () => {
|
|
114
|
+
if (ve(), e.value.startAnimation?.show) {
|
|
115
115
|
const s = C.dataset.flatMap((a) => a.series).map(
|
|
116
116
|
(a) => D(a.values).reduce((o, t) => o + t, 0)
|
|
117
117
|
);
|
|
118
118
|
M.value = s.map(() => 0), z.value = !0, J.value = C.dataset.map((a, o) => {
|
|
119
119
|
const t = a.series.reduce(
|
|
120
|
-
(u,
|
|
120
|
+
(u, c) => u + D(c.values).reduce((v, O) => v + O, 0),
|
|
121
121
|
0
|
|
122
122
|
);
|
|
123
123
|
return {
|
|
@@ -133,7 +133,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
133
133
|
absoluteValues: [],
|
|
134
134
|
ghost: !0
|
|
135
135
|
};
|
|
136
|
-
}), await
|
|
136
|
+
}), await ot(), Ct(
|
|
137
137
|
s,
|
|
138
138
|
e.value.startAnimation.durationMs,
|
|
139
139
|
e.value.startAnimation.staggerMs
|
|
@@ -143,12 +143,12 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
143
143
|
} else
|
|
144
144
|
z.value = !1;
|
|
145
145
|
});
|
|
146
|
-
const V =
|
|
147
|
-
|
|
148
|
-
|
|
146
|
+
const V = st(null), G = st(null);
|
|
147
|
+
at(() => {
|
|
148
|
+
ve();
|
|
149
149
|
});
|
|
150
|
-
function
|
|
151
|
-
if (
|
|
150
|
+
function ve() {
|
|
151
|
+
if (Gt(C.dataset) && W({
|
|
152
152
|
componentName: "VueUiNestedDonuts",
|
|
153
153
|
type: "dataset"
|
|
154
154
|
}), e.value.responsive) {
|
|
@@ -156,77 +156,77 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
156
156
|
const { width: s, height: a } = jt({
|
|
157
157
|
chart: q.value,
|
|
158
158
|
title: e.value.style.chart.title.text ? Oe.value : null,
|
|
159
|
-
legend: e.value.style.chart.legend.show ?
|
|
160
|
-
source:
|
|
161
|
-
noTitle:
|
|
162
|
-
padding:
|
|
159
|
+
legend: e.value.style.chart.legend.show ? de.value : null,
|
|
160
|
+
source: Ae.value,
|
|
161
|
+
noTitle: Ie.value,
|
|
162
|
+
padding: Ue.value
|
|
163
163
|
});
|
|
164
164
|
requestAnimationFrame(() => {
|
|
165
|
-
|
|
165
|
+
f.value.width = s, f.value.height = a;
|
|
166
166
|
});
|
|
167
167
|
});
|
|
168
168
|
V.value && (G.value && V.value.unobserve(G.value), V.value.disconnect()), V.value = new ResizeObserver(l), G.value = q.value.parentNode, V.value.observe(G.value);
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
|
-
|
|
171
|
+
zt(() => {
|
|
172
172
|
V.value && (G.value && V.value.unobserve(G.value), V.value.disconnect());
|
|
173
173
|
});
|
|
174
|
-
const { isPrinting:
|
|
174
|
+
const { isPrinting: Re, isImaging: Be, generatePdf: Ge, generateImage: Ye } = el({
|
|
175
175
|
elementId: `nested_donuts_${y.value}`,
|
|
176
176
|
fileName: e.value.style.chart.title.text || "vue-ui-nested-donuts",
|
|
177
177
|
options: e.value.userOptions.print
|
|
178
|
-
}),
|
|
178
|
+
}), _t = $(() => e.value.userOptions.show && !e.value.style.chart.title.text), Tt = $(() => Yt(e.value.customPalette)), k = h({
|
|
179
179
|
dataLabels: {
|
|
180
180
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
181
181
|
},
|
|
182
182
|
showTable: e.value.table.show,
|
|
183
183
|
showTooltip: e.value.style.chart.tooltip.show
|
|
184
|
-
}),
|
|
184
|
+
}), f = h({
|
|
185
185
|
width: e.value.style.chart.width,
|
|
186
186
|
height: e.value.style.chart.height
|
|
187
|
-
}),
|
|
188
|
-
function
|
|
189
|
-
|
|
187
|
+
}), Xe = ft;
|
|
188
|
+
function Ft({ datapoint: l, index: s }) {
|
|
189
|
+
Xe("selectDatapoint", { datapoint: l, index: s });
|
|
190
190
|
}
|
|
191
|
-
function
|
|
191
|
+
function We({
|
|
192
192
|
from: l,
|
|
193
193
|
to: s,
|
|
194
194
|
duration: a,
|
|
195
195
|
onUpdate: o,
|
|
196
196
|
onDone: t,
|
|
197
|
-
easing: u =
|
|
197
|
+
easing: u = dt
|
|
198
198
|
}) {
|
|
199
|
-
const
|
|
200
|
-
function
|
|
201
|
-
const
|
|
202
|
-
o(_,
|
|
199
|
+
const c = performance.now();
|
|
200
|
+
function v(O) {
|
|
201
|
+
const d = Math.min((O - c) / a, 1), p = u(d), _ = l + (s - l) * p;
|
|
202
|
+
o(_, d), d < 1 ? requestAnimationFrame(v) : (o(s, 1), t && t());
|
|
203
203
|
}
|
|
204
|
-
requestAnimationFrame(
|
|
204
|
+
requestAnimationFrame(v);
|
|
205
205
|
}
|
|
206
|
-
const w =
|
|
206
|
+
const w = h([]), A = $(() => {
|
|
207
207
|
C.dataset.forEach((s, a) => {
|
|
208
|
-
[null, void 0].includes(s.name) &&
|
|
208
|
+
[null, void 0].includes(s.name) && W({
|
|
209
209
|
componentName: "VueUiNestedDonuts",
|
|
210
210
|
type: "datasetSerieAttribute",
|
|
211
211
|
property: "name",
|
|
212
212
|
index: a
|
|
213
|
-
}), [null, void 0].includes(s.series) ?
|
|
213
|
+
}), [null, void 0].includes(s.series) ? W({
|
|
214
214
|
componentName: "VueUiNestedDonuts",
|
|
215
215
|
type: "datasetSerieAttribute",
|
|
216
216
|
property: "series",
|
|
217
217
|
index: a
|
|
218
|
-
}) : s.series.length === 0 ?
|
|
218
|
+
}) : s.series.length === 0 ? W({
|
|
219
219
|
componentName: "VueUiNestedDonuts",
|
|
220
220
|
type: "datasetAttributeEmpty",
|
|
221
221
|
property: `series at index ${a}`
|
|
222
222
|
}) : s.series.forEach((o, t) => {
|
|
223
|
-
[null, void 0].includes(o.name) &&
|
|
223
|
+
[null, void 0].includes(o.name) && W({
|
|
224
224
|
componentName: "VueUiNestedDonuts",
|
|
225
225
|
type: "datasetSerieAttribute",
|
|
226
226
|
property: "name",
|
|
227
227
|
index: t,
|
|
228
228
|
key: "serie"
|
|
229
|
-
}), [null, void 0].includes(o.values) &&
|
|
229
|
+
}), [null, void 0].includes(o.values) && W({
|
|
230
230
|
componentName: "VueUiNestedDonuts",
|
|
231
231
|
type: "datasetSerieAttribute",
|
|
232
232
|
property: "values",
|
|
@@ -242,7 +242,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
242
242
|
datasetIndex: a,
|
|
243
243
|
id: `${y.value}_${a}`,
|
|
244
244
|
series: s.series.map((o, t) => {
|
|
245
|
-
const u = D(o.values).reduce((
|
|
245
|
+
const u = D(o.values).reduce((c, v) => c + v, 0);
|
|
246
246
|
return {
|
|
247
247
|
name: o.name,
|
|
248
248
|
arcOf: s.name,
|
|
@@ -250,13 +250,13 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
250
250
|
id: `${y.value}_${a}_${t}`,
|
|
251
251
|
seriesIndex: t,
|
|
252
252
|
datasetIndex: a,
|
|
253
|
-
color:
|
|
253
|
+
color: Xt(o.color) || Tt.value[t] || Ce[t % Ce.length],
|
|
254
254
|
value: z.value ? M.value[l++] ?? 0 : u,
|
|
255
255
|
absoluteValues: o.values || []
|
|
256
256
|
};
|
|
257
257
|
})
|
|
258
258
|
}));
|
|
259
|
-
}),
|
|
259
|
+
}), I = $(() => Math.min(f.value.height, f.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)), He = $(() => [...A.value].map((l, s) => {
|
|
260
260
|
const a = l.series.filter((o) => !w.value.includes(o.id)).map((o) => o.value).reduce((o, t) => o + t, 0);
|
|
261
261
|
return {
|
|
262
262
|
...l,
|
|
@@ -267,82 +267,97 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
267
267
|
}))
|
|
268
268
|
};
|
|
269
269
|
}));
|
|
270
|
-
function
|
|
270
|
+
function Nt(l, s, a) {
|
|
271
271
|
let o = 0;
|
|
272
272
|
for (let t = 0; t < l.length; t += 1)
|
|
273
273
|
a.includes(l[t]) && (o += 1);
|
|
274
274
|
return o < s;
|
|
275
275
|
}
|
|
276
|
-
const b =
|
|
277
|
-
|
|
276
|
+
const b = h(He.value);
|
|
277
|
+
lt(
|
|
278
278
|
() => He.value,
|
|
279
279
|
(l) => b.value = l
|
|
280
280
|
);
|
|
281
|
-
function
|
|
282
|
-
|
|
281
|
+
function he(l) {
|
|
282
|
+
Xe("selectLegend", l);
|
|
283
283
|
const s = C.dataset.flatMap(
|
|
284
|
-
(
|
|
285
|
-
value: D(_.values).reduce((me,
|
|
284
|
+
(d, p) => d.series.map((_, ge) => ({
|
|
285
|
+
value: D(_.values).reduce((me, oe) => me + oe, 0),
|
|
286
286
|
id: `${y.value}_${p}_${ge}`,
|
|
287
287
|
arcOfId: `${y.value}_${p}`
|
|
288
288
|
}))
|
|
289
|
-
).find((
|
|
289
|
+
).find((d) => d.id === l.id);
|
|
290
290
|
if (!s) return;
|
|
291
|
-
const a =
|
|
291
|
+
const a = A.value.flatMap((d) => d.series).find((d) => d.id === l.id)?.value ?? 0, o = b.value.flatMap((d) => d.series).find((d) => d.id === l.id);
|
|
292
292
|
let u = o ? o.value : 0;
|
|
293
|
-
const
|
|
294
|
-
(
|
|
293
|
+
const c = A.value.find(
|
|
294
|
+
(d) => d.id === s.arcOfId
|
|
295
295
|
);
|
|
296
|
-
if (!
|
|
297
|
-
const
|
|
298
|
-
|
|
299
|
-
|
|
296
|
+
if (!c) return;
|
|
297
|
+
const v = c.series.map((d) => d.id), O = Nt(
|
|
298
|
+
v,
|
|
299
|
+
v.length - 1,
|
|
300
300
|
w.value
|
|
301
301
|
);
|
|
302
|
-
w.value.includes(l.id) ? (w.value = w.value.filter((
|
|
302
|
+
w.value.includes(l.id) ? (w.value = w.value.filter((d) => d !== l.id), e.value.serieToggleAnimation.show ? We({
|
|
303
303
|
from: u,
|
|
304
304
|
to: a,
|
|
305
305
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
306
|
-
onUpdate: (
|
|
306
|
+
onUpdate: (d) => {
|
|
307
307
|
b.value = b.value.map((p) => ({
|
|
308
308
|
...p,
|
|
309
|
-
series: p.series.map((_) => _.id === l.id ? { ..._, value:
|
|
309
|
+
series: p.series.map((_) => _.id === l.id ? { ..._, value: d } : _)
|
|
310
310
|
}));
|
|
311
311
|
}
|
|
312
|
-
}) : b.value = b.value.map((
|
|
313
|
-
...
|
|
314
|
-
series:
|
|
315
|
-
}))) :
|
|
312
|
+
}) : b.value = b.value.map((d) => ({
|
|
313
|
+
...d,
|
|
314
|
+
series: d.series.map((p) => p.id === l.id ? { ...p, value: a } : p)
|
|
315
|
+
}))) : O && (e.value.serieToggleAnimation.show ? We({
|
|
316
316
|
from: u,
|
|
317
317
|
to: 0,
|
|
318
318
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
319
|
-
onUpdate: (
|
|
319
|
+
onUpdate: (d) => {
|
|
320
320
|
b.value = b.value.map((p) => ({
|
|
321
321
|
...p,
|
|
322
|
-
series: p.series.map((_) => _.id === l.id ? { ..._, value:
|
|
322
|
+
series: p.series.map((_) => _.id === l.id ? { ..._, value: d } : _)
|
|
323
323
|
}));
|
|
324
324
|
},
|
|
325
325
|
onDone: () => {
|
|
326
326
|
w.value.push(l.id);
|
|
327
327
|
}
|
|
328
|
-
}) : (b.value = b.value.map((
|
|
329
|
-
...
|
|
330
|
-
series:
|
|
328
|
+
}) : (b.value = b.value.map((d) => ({
|
|
329
|
+
...d,
|
|
330
|
+
series: d.series.map((p) => p.id === l.id ? { ...p, value: 0 } : p)
|
|
331
331
|
})), w.value.push(l.id)));
|
|
332
332
|
}
|
|
333
|
-
const
|
|
334
|
-
const a = Math.abs(l.series.map((
|
|
335
|
-
...
|
|
336
|
-
value:
|
|
337
|
-
}))
|
|
333
|
+
const Z = $(() => I.value / A.value.length * e.value.style.chart.layout.donut.spacingRatio), qe = $(() => b.value.map((l, s) => I.value - s * I.value / A.value.length)), j = $(() => b.value.map((l, s) => {
|
|
334
|
+
const a = Math.abs(l.series.map((v) => v.value).reduce((v, O) => v + O, 0)) > 0, o = I.value - s * I.value / b.value.length, t = z.value ? J.value.find((v) => v.datasetIndex === s) : null, u = [...l.series, ...t ? [t] : []].map((v) => ({
|
|
335
|
+
...v,
|
|
336
|
+
value: v.value < 1e-11 ? Number.MIN_VALUE : v.value
|
|
337
|
+
})), c = _e(
|
|
338
|
+
{ series: [
|
|
339
|
+
{ name: "_", color: e.value.style.chart.layout.donut.emptyFill, value: 1 }
|
|
340
|
+
] },
|
|
341
|
+
f.value.width / 2,
|
|
342
|
+
f.value.height / 2,
|
|
343
|
+
o,
|
|
344
|
+
o,
|
|
345
|
+
1.99999,
|
|
346
|
+
2,
|
|
347
|
+
1,
|
|
348
|
+
360,
|
|
349
|
+
105.25,
|
|
350
|
+
Z.value
|
|
351
|
+
);
|
|
338
352
|
return {
|
|
339
353
|
...l,
|
|
340
354
|
hasData: a,
|
|
341
355
|
radius: o,
|
|
342
|
-
|
|
356
|
+
skeleton: c,
|
|
357
|
+
donut: _e(
|
|
343
358
|
{ series: u },
|
|
344
|
-
|
|
345
|
-
|
|
359
|
+
f.value.width / 2,
|
|
360
|
+
f.value.height / 2,
|
|
346
361
|
o,
|
|
347
362
|
o,
|
|
348
363
|
1.99999,
|
|
@@ -350,37 +365,37 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
350
365
|
1,
|
|
351
366
|
360,
|
|
352
367
|
105.25,
|
|
353
|
-
|
|
368
|
+
Z.value
|
|
354
369
|
)
|
|
355
370
|
};
|
|
356
|
-
})),
|
|
357
|
-
const a = s *
|
|
371
|
+
})), Je = $(() => [...A.value].map((l, s) => {
|
|
372
|
+
const a = s * I.value / A.value.length;
|
|
358
373
|
return {
|
|
359
374
|
sizeRatio: a,
|
|
360
|
-
donut:
|
|
375
|
+
donut: _e(
|
|
361
376
|
{ series: [{ value: 1 }] },
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
377
|
+
f.value.width / 2,
|
|
378
|
+
f.value.height / 2,
|
|
379
|
+
I.value - a,
|
|
380
|
+
I.value - a,
|
|
366
381
|
1.99999,
|
|
367
382
|
2,
|
|
368
383
|
1,
|
|
369
384
|
360,
|
|
370
385
|
105.25,
|
|
371
|
-
|
|
386
|
+
I.value / A.value.length * e.value.style.chart.layout.donut.spacingRatio
|
|
372
387
|
)[0]
|
|
373
388
|
};
|
|
374
|
-
})),
|
|
375
|
-
function
|
|
376
|
-
|
|
389
|
+
})), Ke = h(null), ee = h(null), te = h(null), fe = h(null);
|
|
390
|
+
function Ot({ datapoint: l, _relativeIndex: s, seriesIndex: a }) {
|
|
391
|
+
Ke.value = l.arcOfId, ee.value = l.id, te.value = a, fe.value = {
|
|
377
392
|
datapoint: l,
|
|
378
393
|
seriesIndex: a,
|
|
379
394
|
series: b.value,
|
|
380
395
|
config: e.value
|
|
381
396
|
};
|
|
382
397
|
const o = e.value.style.chart.tooltip.customFormat;
|
|
383
|
-
if (
|
|
398
|
+
if (it(o) && Qt(
|
|
384
399
|
() => o({
|
|
385
400
|
seriesIndex: a,
|
|
386
401
|
datapoint: l,
|
|
@@ -388,7 +403,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
388
403
|
config: e.value
|
|
389
404
|
})
|
|
390
405
|
))
|
|
391
|
-
|
|
406
|
+
ie.value = o({
|
|
392
407
|
seriesIndex: a,
|
|
393
408
|
datapoint: l,
|
|
394
409
|
series: b.value,
|
|
@@ -397,17 +412,17 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
397
412
|
else {
|
|
398
413
|
let t = "";
|
|
399
414
|
if (e.value.style.chart.tooltip.showAllItemsAtIndex && w.value.length === 0) {
|
|
400
|
-
const u = b.value.map((
|
|
401
|
-
u.forEach((
|
|
402
|
-
if (!
|
|
415
|
+
const u = b.value.map((c) => c.series.find((v) => v.seriesIndex === a));
|
|
416
|
+
u.forEach((c, v) => {
|
|
417
|
+
if (!c) return "";
|
|
403
418
|
t += `
|
|
404
|
-
<div style="display:flex; flex-direction: column; justify-content:flex-start; align-items:flex-start;padding:6px 0; ${
|
|
419
|
+
<div style="display:flex; flex-direction: column; justify-content:flex-start; align-items:flex-start;padding:6px 0; ${v < u.length - 1 ? `border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor}` : ""}">
|
|
405
420
|
<div style="display:flex; flex-direction: row; gap: 3px; justify-content:flex-start; align-items:center;">
|
|
406
421
|
<svg viewBox="0 0 20 20" height="${e.value.style.chart.tooltip.fontSize}" width="${e.value.style.chart.tooltip.fontSize}">
|
|
407
|
-
<circle cx="10" cy="10" r="10" fill="${
|
|
422
|
+
<circle cx="10" cy="10" r="10" fill="${c.color}"/>
|
|
408
423
|
</svg>
|
|
409
424
|
<span>
|
|
410
|
-
${
|
|
425
|
+
${c.arcOf ?? ""} - ${c.name}
|
|
411
426
|
</span>
|
|
412
427
|
</div>
|
|
413
428
|
<span>
|
|
@@ -424,7 +439,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
424
439
|
)}
|
|
425
440
|
</b>` : ""}
|
|
426
441
|
${e.value.style.chart.tooltip.showPercentage ? `(${N({
|
|
427
|
-
v:
|
|
442
|
+
v: c.proportion * 100,
|
|
428
443
|
s: "%",
|
|
429
444
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
430
445
|
})})` : ""}
|
|
@@ -452,41 +467,41 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
452
467
|
s: "%",
|
|
453
468
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
454
469
|
})}</b></div>`);
|
|
455
|
-
|
|
470
|
+
ie.value = `<div style="font-size:${e.value.style.chart.tooltip.fontSize}px">${t}</div>`;
|
|
456
471
|
}
|
|
457
|
-
|
|
472
|
+
re.value = !0;
|
|
458
473
|
}
|
|
459
474
|
function pe(l) {
|
|
460
475
|
return l.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
461
476
|
}
|
|
462
|
-
function
|
|
477
|
+
function Qe(l, s) {
|
|
463
478
|
if (!e.value.useBlurOnHover)
|
|
464
479
|
return "";
|
|
465
480
|
if (e.value.style.chart.tooltip.showAllItemsAtIndex && w.value.length === 0)
|
|
466
|
-
return [null, void 0].includes(
|
|
481
|
+
return [null, void 0].includes(te.value) || te.value === s ? "" : `url(#blur_${y.value})`;
|
|
467
482
|
if (!e.value.style.chart.tooltip.showAllItemsAtIndex || w.value.length)
|
|
468
|
-
return [null, void 0].includes(
|
|
483
|
+
return [null, void 0].includes(ee.value) || ee.value === l.id ? "" : `url(#blur_${y.value})`;
|
|
469
484
|
}
|
|
470
|
-
const ye =
|
|
485
|
+
const ye = $(() => A.value.map((l, s) => {
|
|
471
486
|
const a = l.series.filter(
|
|
472
487
|
(t) => !w.value.includes(t.id)
|
|
473
488
|
), o = z.value ? a.map((t) => {
|
|
474
489
|
const u = C.dataset[s].series.findIndex(
|
|
475
|
-
(
|
|
490
|
+
(c) => c.name === t.name
|
|
476
491
|
);
|
|
477
492
|
return D(
|
|
478
493
|
C.dataset[s].series[u].values
|
|
479
|
-
).reduce((
|
|
494
|
+
).reduce((c, v) => c + v, 0);
|
|
480
495
|
}).reduce((t, u) => t + u, 0) : a.map((t) => t.value).reduce((t, u) => t + u, 0);
|
|
481
496
|
return l.series.map((t, u) => {
|
|
482
|
-
const
|
|
483
|
-
(
|
|
497
|
+
const c = D(C.dataset[s].series[u].values).reduce(
|
|
498
|
+
(O, d) => O + d,
|
|
484
499
|
0
|
|
485
|
-
),
|
|
500
|
+
), v = z.value ? c : t.value;
|
|
486
501
|
return {
|
|
487
502
|
name: t.name,
|
|
488
503
|
color: t.color,
|
|
489
|
-
value:
|
|
504
|
+
value: v,
|
|
490
505
|
shape: "circle",
|
|
491
506
|
arcOf: t.arcOf,
|
|
492
507
|
id: t.id,
|
|
@@ -494,18 +509,18 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
494
509
|
datasetIndex: s,
|
|
495
510
|
total: o,
|
|
496
511
|
opacity: w.value.includes(t.id) ? 0.5 : 1,
|
|
497
|
-
segregate: () =>
|
|
512
|
+
segregate: () => he(t),
|
|
498
513
|
isSegregated: w.value.includes(t.id)
|
|
499
514
|
};
|
|
500
515
|
});
|
|
501
|
-
})),
|
|
516
|
+
})), At = $(() => ({
|
|
502
517
|
cy: "nested-donuts-legend",
|
|
503
518
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
504
519
|
color: e.value.style.chart.legend.color,
|
|
505
520
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
506
521
|
paddingBottom: 12,
|
|
507
522
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
508
|
-
})), P =
|
|
523
|
+
})), P = $(() => {
|
|
509
524
|
const l = b.value.flatMap((a) => a.series.map((o) => ({
|
|
510
525
|
name: `${a.name} - ${o.name}`,
|
|
511
526
|
color: o.color,
|
|
@@ -513,8 +528,8 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
513
528
|
}))), s = b.value.flatMap((a) => a.series.map((o) => o.value));
|
|
514
529
|
return { head: l, body: s };
|
|
515
530
|
});
|
|
516
|
-
function
|
|
517
|
-
|
|
531
|
+
function Ze(l = null) {
|
|
532
|
+
ot(() => {
|
|
518
533
|
const s = P.value.head.map((t, u) => [
|
|
519
534
|
[t.name],
|
|
520
535
|
[P.value.body[u]],
|
|
@@ -532,13 +547,13 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
532
547
|
});
|
|
533
548
|
});
|
|
534
549
|
}
|
|
535
|
-
const
|
|
550
|
+
const le = $(() => {
|
|
536
551
|
const l = [
|
|
537
552
|
e.value.table.columnNames.series,
|
|
538
553
|
e.value.table.columnNames.value,
|
|
539
554
|
e.value.table.columnNames.percentage
|
|
540
555
|
], s = P.value.head.map((t, u) => {
|
|
541
|
-
const
|
|
556
|
+
const c = N({
|
|
542
557
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
543
558
|
v: P.value.body[u],
|
|
544
559
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -549,7 +564,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
549
564
|
color: t.color,
|
|
550
565
|
name: t.name
|
|
551
566
|
},
|
|
552
|
-
|
|
567
|
+
c,
|
|
553
568
|
isNaN(P.value.body[u] / t.total) ? "-" : N({
|
|
554
569
|
v: P.value.body[u] / t.total * 100,
|
|
555
570
|
s: "%",
|
|
@@ -580,62 +595,62 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
580
595
|
config: a
|
|
581
596
|
};
|
|
582
597
|
});
|
|
583
|
-
function
|
|
584
|
-
return
|
|
585
|
-
}
|
|
586
|
-
function Ze() {
|
|
587
|
-
$.value.showTable = !$.value.showTable;
|
|
598
|
+
function It() {
|
|
599
|
+
return A.value;
|
|
588
600
|
}
|
|
589
601
|
function je() {
|
|
590
|
-
|
|
602
|
+
k.value.showTable = !k.value.showTable;
|
|
591
603
|
}
|
|
592
604
|
function et() {
|
|
593
|
-
|
|
605
|
+
k.value.dataLabels.show = !k.value.dataLabels.show;
|
|
594
606
|
}
|
|
595
|
-
|
|
607
|
+
function tt() {
|
|
608
|
+
k.value.showTooltip = !k.value.showTooltip;
|
|
609
|
+
}
|
|
610
|
+
const ae = h(!1);
|
|
596
611
|
function be() {
|
|
597
|
-
|
|
612
|
+
ae.value = !ae.value;
|
|
598
613
|
}
|
|
599
|
-
return
|
|
600
|
-
getData:
|
|
601
|
-
generatePdf:
|
|
602
|
-
generateCsv:
|
|
603
|
-
generateImage:
|
|
604
|
-
toggleTable:
|
|
605
|
-
toggleLabels:
|
|
606
|
-
toggleTooltip:
|
|
614
|
+
return ht({
|
|
615
|
+
getData: It,
|
|
616
|
+
generatePdf: Ge,
|
|
617
|
+
generateCsv: Ze,
|
|
618
|
+
generateImage: Ye,
|
|
619
|
+
toggleTable: je,
|
|
620
|
+
toggleLabels: et,
|
|
621
|
+
toggleTooltip: tt,
|
|
607
622
|
toggleAnnotator: be
|
|
608
|
-
}), (l, s) => (n(),
|
|
623
|
+
}), (l, s) => (n(), i("div", {
|
|
609
624
|
ref_key: "nestedDonutsChart",
|
|
610
625
|
ref: q,
|
|
611
626
|
class: U(`vue-ui-nested-donuts ${B.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
612
|
-
style:
|
|
627
|
+
style: ue(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
613
628
|
id: `nested_donuts_${y.value}`,
|
|
614
|
-
onMouseenter: s[3] || (s[3] = () => r(
|
|
615
|
-
onMouseleave: s[4] || (s[4] = () => r(
|
|
629
|
+
onMouseenter: s[3] || (s[3] = () => r(De)(!0)),
|
|
630
|
+
onMouseleave: s[4] || (s[4] = () => r(De)(!1))
|
|
616
631
|
}, [
|
|
617
|
-
e.value.userOptions.buttons.annotator ? (n(), R(r(
|
|
632
|
+
e.value.userOptions.buttons.annotator ? (n(), R(r(gt), {
|
|
618
633
|
key: 0,
|
|
619
|
-
svgRef: r(
|
|
634
|
+
svgRef: r(Me),
|
|
620
635
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
621
636
|
color: e.value.style.chart.color,
|
|
622
|
-
active:
|
|
637
|
+
active: ae.value,
|
|
623
638
|
onClose: be
|
|
624
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
625
|
-
|
|
639
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : m("", !0),
|
|
640
|
+
_t.value ? (n(), i("div", {
|
|
626
641
|
key: 1,
|
|
627
642
|
ref_key: "noTitle",
|
|
628
|
-
ref:
|
|
643
|
+
ref: Ie,
|
|
629
644
|
class: "vue-data-ui-no-title-space",
|
|
630
645
|
style: "height:36px; width: 100%;background:transparent"
|
|
631
|
-
}, null, 512)) :
|
|
632
|
-
e.value.style.chart.title.text ? (n(),
|
|
646
|
+
}, null, 512)) : m("", !0),
|
|
647
|
+
e.value.style.chart.title.text ? (n(), i("div", {
|
|
633
648
|
key: 2,
|
|
634
649
|
ref_key: "chartTitle",
|
|
635
650
|
ref: Oe
|
|
636
651
|
}, [
|
|
637
652
|
(n(), R(al, {
|
|
638
|
-
key: `title_${
|
|
653
|
+
key: `title_${Se.value}`,
|
|
639
654
|
config: {
|
|
640
655
|
title: {
|
|
641
656
|
cy: "donut-div-title",
|
|
@@ -647,14 +662,14 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
647
662
|
}
|
|
648
663
|
}
|
|
649
664
|
}, null, 8, ["config"]))
|
|
650
|
-
], 512)) :
|
|
651
|
-
e.value.userOptions.show && Q.value && (r(
|
|
665
|
+
], 512)) : m("", !0),
|
|
666
|
+
e.value.userOptions.show && Q.value && (r(ze) || r(ce)) ? (n(), R(r(kt), {
|
|
652
667
|
ref: "details",
|
|
653
668
|
key: `user_option_${Ne.value}`,
|
|
654
669
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
655
670
|
color: e.value.style.chart.color,
|
|
656
|
-
isPrinting: r(
|
|
657
|
-
isImaging: r(
|
|
671
|
+
isPrinting: r(Re),
|
|
672
|
+
isImaging: r(Be),
|
|
658
673
|
uid: y.value,
|
|
659
674
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
660
675
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -664,25 +679,25 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
664
679
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
665
680
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
666
681
|
isFullscreen: B.value,
|
|
667
|
-
isTooltip:
|
|
682
|
+
isTooltip: k.value.showTooltip,
|
|
668
683
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
669
684
|
chartElement: q.value,
|
|
670
685
|
position: e.value.userOptions.position,
|
|
671
686
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
672
|
-
isAnnotation:
|
|
687
|
+
isAnnotation: ae.value,
|
|
673
688
|
callbacks: e.value.userOptions.callbacks,
|
|
674
|
-
onToggleFullscreen:
|
|
675
|
-
onGeneratePdf: r(
|
|
676
|
-
onGenerateCsv:
|
|
677
|
-
onGenerateImage: r(
|
|
678
|
-
onToggleTable:
|
|
679
|
-
onToggleLabels:
|
|
680
|
-
onToggleTooltip:
|
|
689
|
+
onToggleFullscreen: xt,
|
|
690
|
+
onGeneratePdf: r(Ge),
|
|
691
|
+
onGenerateCsv: Ze,
|
|
692
|
+
onGenerateImage: r(Ye),
|
|
693
|
+
onToggleTable: je,
|
|
694
|
+
onToggleLabels: et,
|
|
695
|
+
onToggleTooltip: tt,
|
|
681
696
|
onToggleAnnotator: be,
|
|
682
|
-
style:
|
|
683
|
-
visibility: r(
|
|
697
|
+
style: ue({
|
|
698
|
+
visibility: r(ze) ? r(ce) ? "visible" : "hidden" : "visible"
|
|
684
699
|
})
|
|
685
|
-
},
|
|
700
|
+
}, Mt({ _: 2 }, [
|
|
686
701
|
l.$slots.menuIcon ? {
|
|
687
702
|
name: "menuIcon",
|
|
688
703
|
fn: L(({ isOpen: a, color: o }) => [
|
|
@@ -746,81 +761,81 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
746
761
|
]),
|
|
747
762
|
key: "8"
|
|
748
763
|
} : void 0
|
|
749
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
750
|
-
Q.value ? (n(),
|
|
764
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0),
|
|
765
|
+
Q.value ? (n(), i("svg", {
|
|
751
766
|
key: 4,
|
|
752
767
|
ref_key: "svgRef",
|
|
753
|
-
ref:
|
|
768
|
+
ref: Me,
|
|
754
769
|
xmlns: r(Wt),
|
|
755
770
|
class: U({
|
|
756
771
|
"vue-data-ui-fullscreen--on": B.value,
|
|
757
772
|
"vue-data-ui-fulscreen--off": !B.value
|
|
758
773
|
}),
|
|
759
|
-
viewBox: `0 0 ${
|
|
760
|
-
style:
|
|
774
|
+
viewBox: `0 0 ${f.value.width <= 0 ? 1e-3 : f.value.width} ${f.value.height < 0 ? 1e-3 : f.value.height}`,
|
|
775
|
+
style: ue(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${Ue.value.css}`)
|
|
761
776
|
}, [
|
|
762
|
-
|
|
763
|
-
l.$slots["chart-background"] ? (n(),
|
|
777
|
+
ut(r(bt)),
|
|
778
|
+
l.$slots["chart-background"] ? (n(), i("foreignObject", {
|
|
764
779
|
key: 0,
|
|
765
780
|
x: 0,
|
|
766
781
|
y: 0,
|
|
767
|
-
width:
|
|
768
|
-
height:
|
|
782
|
+
width: f.value.width <= 0 ? 1e-3 : f.value.width,
|
|
783
|
+
height: f.value.height < 0 ? 1e-3 : f.value.height,
|
|
769
784
|
style: {
|
|
770
785
|
pointerEvents: "none"
|
|
771
786
|
}
|
|
772
787
|
}, [
|
|
773
788
|
x(l.$slots, "chart-background", {}, void 0, !0)
|
|
774
|
-
], 8, rl)) :
|
|
775
|
-
|
|
776
|
-
(n(!0),
|
|
789
|
+
], 8, rl)) : m("", !0),
|
|
790
|
+
g("defs", null, [
|
|
791
|
+
(n(!0), i(T, null, F(Je.value, (a, o) => (n(), i("radialGradient", {
|
|
777
792
|
id: `radial_${y.value}_${o}`
|
|
778
793
|
}, [
|
|
779
|
-
s[5] || (s[5] =
|
|
794
|
+
s[5] || (s[5] = g("stop", {
|
|
780
795
|
offset: "0%",
|
|
781
796
|
"stop-color": "#FFFFFF",
|
|
782
797
|
"stop-opacity": "0"
|
|
783
798
|
}, null, -1)),
|
|
784
|
-
|
|
785
|
-
offset: `${(1 -
|
|
786
|
-
"stop-color": r(
|
|
799
|
+
g("stop", {
|
|
800
|
+
offset: `${(1 - Z.value / qe.value[o]) * 100}%`,
|
|
801
|
+
"stop-color": r(Ht)("#FFFFFF", 0),
|
|
787
802
|
"stop-opacity": "0"
|
|
788
803
|
}, null, 8, dl),
|
|
789
|
-
|
|
790
|
-
offset: `${(1 -
|
|
804
|
+
g("stop", {
|
|
805
|
+
offset: `${(1 - Z.value / qe.value[o] / 2) * 100}%`,
|
|
791
806
|
"stop-color": "#FFFFFF",
|
|
792
807
|
"stop-opacity": e.value.style.chart.gradientIntensity / 100
|
|
793
808
|
}, null, 8, cl),
|
|
794
|
-
s[6] || (s[6] =
|
|
809
|
+
s[6] || (s[6] = g("stop", {
|
|
795
810
|
offset: "100%",
|
|
796
811
|
"stop-color": "#FFFFFF",
|
|
797
812
|
"stop-opacity": "0"
|
|
798
813
|
}, null, -1))
|
|
799
814
|
], 8, il))), 256))
|
|
800
815
|
]),
|
|
801
|
-
|
|
802
|
-
|
|
816
|
+
g("defs", null, [
|
|
817
|
+
g("filter", {
|
|
803
818
|
id: `blur_${y.value}`,
|
|
804
819
|
x: "-50%",
|
|
805
820
|
y: "-50%",
|
|
806
821
|
width: "200%",
|
|
807
822
|
height: "200%"
|
|
808
823
|
}, [
|
|
809
|
-
|
|
824
|
+
g("feGaussianBlur", {
|
|
810
825
|
in: "SourceGraphic",
|
|
811
826
|
stdDeviation: 2,
|
|
812
827
|
id: `blur_std_${y.value}`
|
|
813
828
|
}, null, 8, hl),
|
|
814
|
-
s[7] || (s[7] =
|
|
829
|
+
s[7] || (s[7] = g("feColorMatrix", {
|
|
815
830
|
type: "saturate",
|
|
816
831
|
values: "0"
|
|
817
832
|
}, null, -1))
|
|
818
833
|
], 8, vl),
|
|
819
|
-
|
|
834
|
+
g("filter", {
|
|
820
835
|
id: `shadow_${y.value}`,
|
|
821
836
|
"color-interpolation-filters": "sRGB"
|
|
822
837
|
}, [
|
|
823
|
-
|
|
838
|
+
g("feDropShadow", {
|
|
824
839
|
dx: "0",
|
|
825
840
|
dy: "0",
|
|
826
841
|
stdDeviation: "10",
|
|
@@ -829,35 +844,43 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
829
844
|
}, null, 8, pl)
|
|
830
845
|
], 8, fl)
|
|
831
846
|
]),
|
|
832
|
-
(n(!0),
|
|
833
|
-
a.hasData ? (n(!0),
|
|
834
|
-
|
|
847
|
+
(n(!0), i(T, null, F(j.value, (a, o) => (n(), i("g", null, [
|
|
848
|
+
a.hasData ? (n(!0), i(T, { key: 0 }, F(a.donut.filter((t) => !t.ghost), (t, u) => (n(), i("g", null, [
|
|
849
|
+
g("path", {
|
|
835
850
|
class: "vue-ui-donut-arc-path",
|
|
836
851
|
d: t.arcSlice,
|
|
837
|
-
fill:
|
|
852
|
+
fill: t.color,
|
|
838
853
|
stroke: e.value.style.chart.backgroundColor,
|
|
839
854
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
840
|
-
filter:
|
|
855
|
+
filter: Qe(t, u)
|
|
841
856
|
}, null, 8, yl)
|
|
842
|
-
]))), 256)) :
|
|
857
|
+
]))), 256)) : (n(!0), i(T, { key: 1 }, F(a.skeleton, (t, u) => (n(), i("g", null, [
|
|
858
|
+
g("path", {
|
|
859
|
+
class: "vue-ui-donut-arc-path",
|
|
860
|
+
d: t.arcSlice,
|
|
861
|
+
fill: t.color,
|
|
862
|
+
stroke: e.value.style.chart.backgroundColor,
|
|
863
|
+
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
864
|
+
}, null, 8, bl)
|
|
865
|
+
]))), 256))
|
|
843
866
|
]))), 256)),
|
|
844
|
-
e.value.style.chart.useGradient ? (n(),
|
|
845
|
-
(n(!0),
|
|
846
|
-
|
|
867
|
+
e.value.style.chart.useGradient ? (n(), i("g", gl, [
|
|
868
|
+
(n(!0), i(T, null, F(Je.value, (a, o) => (n(), i("g", null, [
|
|
869
|
+
g("path", {
|
|
847
870
|
d: a.donut.arcSlice,
|
|
848
871
|
fill: `url(#radial_${y.value}_${o})`,
|
|
849
872
|
stroke: "transparent",
|
|
850
873
|
"stroke-width": "0"
|
|
851
|
-
}, null, 8,
|
|
874
|
+
}, null, 8, ml)
|
|
852
875
|
]))), 256))
|
|
853
|
-
])) :
|
|
854
|
-
e.value.style.chart.layout.labels.dataLabels.showDonutName ? (n(),
|
|
855
|
-
(n(!0),
|
|
856
|
-
(n(!0),
|
|
857
|
-
u === 0 &&
|
|
876
|
+
])) : m("", !0),
|
|
877
|
+
e.value.style.chart.layout.labels.dataLabels.showDonutName ? (n(), i("g", wl, [
|
|
878
|
+
(n(!0), i(T, null, F(j.value, (a, o) => (n(), i("g", null, [
|
|
879
|
+
(n(!0), i(T, null, F(a.donut, (t, u) => (n(), i("g", null, [
|
|
880
|
+
u === 0 && f.value.width && f.value.height ? (n(), i("text", {
|
|
858
881
|
key: 0,
|
|
859
882
|
class: U({ animated: e.value.useCssAnimation }),
|
|
860
|
-
x:
|
|
883
|
+
x: f.value.width / 2,
|
|
861
884
|
y: t.startY - e.value.style.chart.layout.labels.dataLabels.fontSize + e.value.style.chart.layout.labels.dataLabels.donutNameOffsetY,
|
|
862
885
|
"text-anchor": "middle",
|
|
863
886
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
@@ -866,25 +889,25 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
866
889
|
}, S(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? r(qt)({
|
|
867
890
|
source: a.name,
|
|
868
891
|
length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
|
|
869
|
-
}) : a.name), 11,
|
|
892
|
+
}) : a.name), 11, kl)) : m("", !0)
|
|
870
893
|
]))), 256))
|
|
871
894
|
]))), 256))
|
|
872
|
-
])) :
|
|
873
|
-
e.value.style.chart.layout.labels.dataLabels.show ? (n(),
|
|
874
|
-
(n(!0),
|
|
875
|
-
(n(!0),
|
|
876
|
-
filter:
|
|
895
|
+
])) : m("", !0),
|
|
896
|
+
e.value.style.chart.layout.labels.dataLabels.show ? (n(), i("g", $l, [
|
|
897
|
+
(n(!0), i(T, null, F(j.value, (a, o) => (n(), i("g", null, [
|
|
898
|
+
(n(!0), i(T, null, F(a.donut.filter((t) => !t.ghost), (t, u) => (n(), i("g", {
|
|
899
|
+
filter: Qe(t, u)
|
|
877
900
|
}, [
|
|
878
|
-
|
|
901
|
+
nt(g("text", {
|
|
879
902
|
class: U({ animated: e.value.useCssAnimation }),
|
|
880
903
|
opacity: pe(t) ? 1 : 0,
|
|
881
|
-
"text-anchor": r(
|
|
882
|
-
x: r(
|
|
904
|
+
"text-anchor": r(H)(t, !0).anchor,
|
|
905
|
+
x: r(H)(
|
|
883
906
|
t,
|
|
884
907
|
!1,
|
|
885
908
|
e.value.style.chart.layout.labels.dataLabels.offsetX
|
|
886
909
|
).x || 0,
|
|
887
|
-
y: r(
|
|
910
|
+
y: r(Te)(
|
|
888
911
|
t,
|
|
889
912
|
e.value.style.chart.layout.labels.dataLabels.offsetY,
|
|
890
913
|
e.value.style.chart.layout.labels.dataLabels.offsetY
|
|
@@ -896,22 +919,22 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
896
919
|
v: t.proportion * 100,
|
|
897
920
|
s: "%",
|
|
898
921
|
r: e.value.style.chart.layout.labels.dataLabels.roundingPercentage
|
|
899
|
-
})), 11,
|
|
922
|
+
})), 11, xl), [
|
|
900
923
|
[
|
|
901
|
-
|
|
902
|
-
|
|
924
|
+
rt,
|
|
925
|
+
k.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage
|
|
903
926
|
]
|
|
904
927
|
]),
|
|
905
|
-
|
|
928
|
+
nt(g("text", {
|
|
906
929
|
class: U({ animated: e.value.useCssAnimation }),
|
|
907
930
|
opacity: pe(t) ? 1 : 0,
|
|
908
|
-
"text-anchor": r(
|
|
909
|
-
x: r(
|
|
931
|
+
"text-anchor": r(H)(t, !0).anchor,
|
|
932
|
+
x: r(H)(
|
|
910
933
|
t,
|
|
911
934
|
!1,
|
|
912
935
|
e.value.style.chart.layout.labels.dataLabels.offsetX
|
|
913
936
|
).x || 0,
|
|
914
|
-
y: r(
|
|
937
|
+
y: r(Te)(
|
|
915
938
|
t,
|
|
916
939
|
e.value.style.chart.layout.labels.dataLabels.offsetY,
|
|
917
940
|
e.value.style.chart.layout.labels.dataLabels.offsetY
|
|
@@ -929,22 +952,22 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
929
952
|
r: e.value.style.chart.layout.labels.dataLabels.roundingValue
|
|
930
953
|
}),
|
|
931
954
|
{ datapoint: t, seriesIndex: o, datapointIndex: u }
|
|
932
|
-
)) + ") ", 11,
|
|
955
|
+
)) + ") ", 11, Cl), [
|
|
933
956
|
[
|
|
934
|
-
|
|
935
|
-
|
|
957
|
+
rt,
|
|
958
|
+
k.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue
|
|
936
959
|
]
|
|
937
960
|
]),
|
|
938
|
-
pe(t) &&
|
|
961
|
+
pe(t) && k.value.dataLabels.show && !e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue ? (n(), i("text", {
|
|
939
962
|
key: 0,
|
|
940
963
|
class: U({ animated: e.value.useCssAnimation }),
|
|
941
|
-
"text-anchor": r(
|
|
942
|
-
x: r(
|
|
964
|
+
"text-anchor": r(H)(t, !0).anchor,
|
|
965
|
+
x: r(H)(
|
|
943
966
|
t,
|
|
944
967
|
!1,
|
|
945
968
|
e.value.style.chart.layout.labels.dataLabels.offsetX
|
|
946
969
|
).x || 0,
|
|
947
|
-
y: r(
|
|
970
|
+
y: r(Te)(
|
|
948
971
|
t,
|
|
949
972
|
e.value.style.chart.layout.labels.dataLabels.offsetY,
|
|
950
973
|
e.value.style.chart.layout.labels.dataLabels.offsetY
|
|
@@ -962,32 +985,32 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
962
985
|
r: e.value.style.chart.layout.labels.dataLabels.roundingValue
|
|
963
986
|
}),
|
|
964
987
|
{ datapoint: t, seriesIndex: o, datapointIndex: u }
|
|
965
|
-
)), 11,
|
|
966
|
-
], 8,
|
|
988
|
+
)), 11, _l)) : m("", !0)
|
|
989
|
+
], 8, Ll))), 256))
|
|
967
990
|
]))), 256))
|
|
968
|
-
])) :
|
|
969
|
-
(n(!0),
|
|
970
|
-
(n(!0),
|
|
971
|
-
|
|
991
|
+
])) : m("", !0),
|
|
992
|
+
(n(!0), i(T, null, F(j.value, (a, o) => (n(), i("g", null, [
|
|
993
|
+
(n(!0), i(T, null, F(a.donut, (t, u) => (n(), i("g", null, [
|
|
994
|
+
g("path", {
|
|
972
995
|
d: t.arcSlice,
|
|
973
|
-
fill:
|
|
974
|
-
onMouseenter: (
|
|
996
|
+
fill: Lt.value === o ? "rgba(0,0,0,0.1)" : "transparent",
|
|
997
|
+
onMouseenter: (c) => Ot({
|
|
975
998
|
datapoint: t,
|
|
976
999
|
seriesIndex: t.seriesIndex
|
|
977
1000
|
}),
|
|
978
|
-
onClick: (
|
|
979
|
-
onMouseleave: s[0] || (s[0] = (
|
|
980
|
-
|
|
1001
|
+
onClick: (c) => Ft({ datapoint: t, index: u }),
|
|
1002
|
+
onMouseleave: s[0] || (s[0] = (c) => {
|
|
1003
|
+
re.value = !1, Ke.value = null, ee.value = null, te.value = null;
|
|
981
1004
|
})
|
|
982
|
-
}, null, 40,
|
|
1005
|
+
}, null, 40, Tl)
|
|
983
1006
|
]))), 256))
|
|
984
1007
|
]))), 256)),
|
|
985
|
-
x(l.$slots, "svg", { svg:
|
|
986
|
-
], 14, nl)) :
|
|
987
|
-
l.$slots.watermark ? (n(),
|
|
988
|
-
x(l.$slots, "watermark", Y(X({ isPrinting: r(
|
|
989
|
-
])) :
|
|
990
|
-
Q.value ?
|
|
1008
|
+
x(l.$slots, "svg", { svg: f.value }, void 0, !0)
|
|
1009
|
+
], 14, nl)) : m("", !0),
|
|
1010
|
+
l.$slots.watermark ? (n(), i("div", Fl, [
|
|
1011
|
+
x(l.$slots, "watermark", Y(X({ isPrinting: r(Re) || r(Be) })), void 0, !0)
|
|
1012
|
+
])) : m("", !0),
|
|
1013
|
+
Q.value ? m("", !0) : (n(), R(r(mt), {
|
|
991
1014
|
key: 6,
|
|
992
1015
|
config: {
|
|
993
1016
|
type: "donut",
|
|
@@ -999,8 +1022,8 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
999
1022
|
}
|
|
1000
1023
|
}
|
|
1001
1024
|
}, null, 8, ["config"])),
|
|
1002
|
-
|
|
1003
|
-
show:
|
|
1025
|
+
ut(r(wt), {
|
|
1026
|
+
show: k.value.showTooltip && re.value,
|
|
1004
1027
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1005
1028
|
color: e.value.style.chart.tooltip.color,
|
|
1006
1029
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -1011,9 +1034,9 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
1011
1034
|
position: e.value.style.chart.tooltip.position,
|
|
1012
1035
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1013
1036
|
parent: q.value,
|
|
1014
|
-
content:
|
|
1037
|
+
content: ie.value,
|
|
1015
1038
|
isFullscreen: B.value,
|
|
1016
|
-
isCustom: r(
|
|
1039
|
+
isCustom: r(it)(e.value.style.chart.tooltip.customFormat)
|
|
1017
1040
|
}, {
|
|
1018
1041
|
"tooltip-before": L(() => [
|
|
1019
1042
|
x(l.$slots, "tooltip-before", Y(X({ ...fe.value })), void 0, !0)
|
|
@@ -1023,27 +1046,27 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
1023
1046
|
]),
|
|
1024
1047
|
_: 3
|
|
1025
1048
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
1026
|
-
e.value.style.chart.legend.show ? (n(),
|
|
1049
|
+
e.value.style.chart.legend.show ? (n(), i("div", {
|
|
1027
1050
|
key: 7,
|
|
1028
1051
|
ref_key: "chartLegend",
|
|
1029
|
-
ref:
|
|
1052
|
+
ref: de,
|
|
1030
1053
|
class: U({ "vue-ui-nested-donuts-legend": ye.value.length > 1 })
|
|
1031
1054
|
}, [
|
|
1032
|
-
(n(!0),
|
|
1033
|
-
key: `legend_${o}_${
|
|
1055
|
+
(n(!0), i(T, null, F(ye.value, (a, o) => (n(), R(ol, {
|
|
1056
|
+
key: `legend_${o}_${Pe.value}`,
|
|
1034
1057
|
legendSet: a,
|
|
1035
|
-
config:
|
|
1036
|
-
onClickMarker: s[1] || (s[1] = ({ legend: t }) =>
|
|
1058
|
+
config: At.value,
|
|
1059
|
+
onClickMarker: s[1] || (s[1] = ({ legend: t }) => he(t))
|
|
1037
1060
|
}, {
|
|
1038
1061
|
legendTitle: L(({ titleSet: t }) => [
|
|
1039
|
-
t[0] && t[0].arcOf ? (n(),
|
|
1062
|
+
t[0] && t[0].arcOf ? (n(), i("div", Nl, S(t[0].arcOf), 1)) : m("", !0)
|
|
1040
1063
|
]),
|
|
1041
1064
|
item: L(({ legend: t, index: u }) => [
|
|
1042
|
-
|
|
1043
|
-
onClick: (
|
|
1044
|
-
style:
|
|
1065
|
+
g("div", {
|
|
1066
|
+
onClick: (c) => he(t),
|
|
1067
|
+
style: ue(`opacity:${w.value.includes(t.id) ? 0.5 : 1}`)
|
|
1045
1068
|
}, [
|
|
1046
|
-
|
|
1069
|
+
ne(S(t.name) + ": " + S(r(K)(
|
|
1047
1070
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
1048
1071
|
t.value,
|
|
1049
1072
|
r(N)({
|
|
@@ -1054,10 +1077,10 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
1054
1077
|
}),
|
|
1055
1078
|
{ datapoint: t, seriesIndex: u }
|
|
1056
1079
|
)) + " ", 1),
|
|
1057
|
-
w.value.includes(t.id) ? (n(),
|
|
1058
|
-
|
|
1059
|
-
], 64)) : (n(),
|
|
1060
|
-
|
|
1080
|
+
w.value.includes(t.id) ? (n(), i(T, { key: 1 }, [
|
|
1081
|
+
ne(" ( - % ) ")
|
|
1082
|
+
], 64)) : (n(), i(T, { key: 0 }, [
|
|
1083
|
+
ne(" (" + S(isNaN(t.value / t.total) ? "-" : r(N)({
|
|
1061
1084
|
v: t.value / t.total * 100,
|
|
1062
1085
|
s: "%",
|
|
1063
1086
|
r: e.value.style.chart.legend.roundingPercentage
|
|
@@ -1067,27 +1090,27 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
1067
1090
|
]),
|
|
1068
1091
|
_: 2
|
|
1069
1092
|
}, 1032, ["legendSet", "config"]))), 128))
|
|
1070
|
-
], 2)) :
|
|
1071
|
-
e.value.style.chart.legend.show ?
|
|
1093
|
+
], 2)) : m("", !0),
|
|
1094
|
+
e.value.style.chart.legend.show ? m("", !0) : (n(), i("div", {
|
|
1072
1095
|
key: 8,
|
|
1073
1096
|
ref_key: "chartLegend",
|
|
1074
|
-
ref:
|
|
1097
|
+
ref: de
|
|
1075
1098
|
}, [
|
|
1076
1099
|
x(l.$slots, "legend", { legend: ye.value }, void 0, !0)
|
|
1077
1100
|
], 512)),
|
|
1078
|
-
l.$slots.source ? (n(),
|
|
1101
|
+
l.$slots.source ? (n(), i("div", {
|
|
1079
1102
|
key: 9,
|
|
1080
1103
|
ref_key: "source",
|
|
1081
|
-
ref:
|
|
1104
|
+
ref: Ae,
|
|
1082
1105
|
dir: "auto"
|
|
1083
1106
|
}, [
|
|
1084
1107
|
x(l.$slots, "source", {}, void 0, !0)
|
|
1085
|
-
], 512)) :
|
|
1086
|
-
Q.value ? (n(), R(r(
|
|
1108
|
+
], 512)) : m("", !0),
|
|
1109
|
+
Q.value ? (n(), R(r(pt), {
|
|
1087
1110
|
key: 10,
|
|
1088
1111
|
hideDetails: "",
|
|
1089
1112
|
config: {
|
|
1090
|
-
open:
|
|
1113
|
+
open: k.value.showTable,
|
|
1091
1114
|
maxHeight: 1e4,
|
|
1092
1115
|
body: {
|
|
1093
1116
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -1100,32 +1123,32 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
1100
1123
|
}
|
|
1101
1124
|
}, {
|
|
1102
1125
|
content: L(() => [
|
|
1103
|
-
(n(), R(r(
|
|
1104
|
-
key: `table_${
|
|
1105
|
-
colNames:
|
|
1106
|
-
head:
|
|
1107
|
-
body:
|
|
1108
|
-
config:
|
|
1126
|
+
(n(), R(r(yt), {
|
|
1127
|
+
key: `table_${Ve.value}`,
|
|
1128
|
+
colNames: le.value.colNames,
|
|
1129
|
+
head: le.value.head,
|
|
1130
|
+
body: le.value.body,
|
|
1131
|
+
config: le.value.config,
|
|
1109
1132
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1110
|
-
onClose: s[2] || (s[2] = (a) =>
|
|
1133
|
+
onClose: s[2] || (s[2] = (a) => k.value.showTable = !1)
|
|
1111
1134
|
}, {
|
|
1112
1135
|
th: L(({ th: a }) => [
|
|
1113
|
-
|
|
1136
|
+
g("div", {
|
|
1114
1137
|
innerHTML: a,
|
|
1115
1138
|
style: { display: "flex", "align-items": "center" }
|
|
1116
|
-
}, null, 8,
|
|
1139
|
+
}, null, 8, Al)
|
|
1117
1140
|
]),
|
|
1118
1141
|
td: L(({ td: a }) => [
|
|
1119
|
-
|
|
1142
|
+
ne(S(a.name || a), 1)
|
|
1120
1143
|
]),
|
|
1121
1144
|
_: 1
|
|
1122
1145
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
1123
1146
|
]),
|
|
1124
1147
|
_: 1
|
|
1125
|
-
}, 8, ["config"])) :
|
|
1148
|
+
}, 8, ["config"])) : m("", !0)
|
|
1126
1149
|
], 46, ul));
|
|
1127
1150
|
}
|
|
1128
|
-
},
|
|
1151
|
+
}, Gl = /* @__PURE__ */ sl(Il, [["__scopeId", "data-v-0b97ffd5"]]);
|
|
1129
1152
|
export {
|
|
1130
|
-
|
|
1153
|
+
Gl as default
|
|
1131
1154
|
};
|