vue-data-ui 2.16.6 → 2.17.0
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/README.md +83 -53
- package/dist/{Arrow-DCqxVwey.js → Arrow-BAEkZGzL.js} +1 -1
- package/dist/{BaseDraggableDialog-6DIKXIBU.js → BaseDraggableDialog-ChCkcmj_.js} +2 -2
- package/dist/{BaseIcon-Bn996RXm.js → BaseIcon-naqtCxVi.js} +1 -1
- package/dist/{ColorPicker-OFfLkKNb.js → ColorPicker-CfIPgxcj.js} +2 -2
- package/dist/{DataTable-CHBLjKtZ.js → DataTable-D0VYDhfx.js} +2 -2
- package/dist/{Legend-nBXoxXJH.js → Legend-Bxlv67uY.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Cls2idJS.js → NonSvgPenAndPaper-b_oVy-Dd.js} +3 -3
- package/dist/{PackageVersion-Bg_9KCU-.js → PackageVersion-5TR4ocqp.js} +1 -1
- package/dist/{PenAndPaper-BPTpbnay.js → PenAndPaper-D6AqipIO.js} +32 -32
- package/dist/{Shape-Bnf512BA.js → Shape-DtFT5EJa.js} +1 -1
- package/dist/{Slicer-BrqtJG2E.js → Slicer-CL6-MRI6.js} +2 -2
- package/dist/{SparkTooltip-C-rLATAw.js → SparkTooltip-Bcv1aoA5.js} +1 -1
- package/dist/{Title-Gi81VwUM.js → Title-B-2bV0SW.js} +1 -1
- package/dist/{Tooltip-CJxVw7-T.js → Tooltip-CoQnTnr-.js} +1 -1
- package/dist/{UserOptions-CBEK6_jo.js → UserOptions-Dd34lEKb.js} +2 -2
- package/dist/{dom-to-png-CRHNL8VU.js → dom-to-png-2AA0wHlX.js} +1 -1
- package/dist/{img-BgOg8opa.js → img-Y_hYz-ZC.js} +1 -1
- package/dist/{index-DvIXJm6t.js → index-pPGk-uhD.js} +1 -1
- package/dist/{pdf-DhTxBrbJ.js → pdf-yfk3d1is.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1096 -160
- package/dist/types/vue-data-ui.d.ts +1096 -160
- package/dist/{useNestedProp-DrYHm61t.js → useNestedProp-DjACxgdZ.js} +1 -1
- package/dist/{usePrinter-CWnXbGMb.js → usePrinter-DDHcrl0A.js} +2 -2
- package/dist/vue-data-ui-CIWxgKjd.js +312 -0
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-CtlB4p7i.js → vue-ui-3d-bar-D5Wpdqfk.js} +228 -220
- package/dist/{vue-ui-accordion-D55kCO5G.js → vue-ui-accordion-CVnA550V.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DSshyUn-.js → vue-ui-age-pyramid-BuAl-zC5.js} +179 -171
- package/dist/{vue-ui-annotator-DQSMv_k2.js → vue-ui-annotator-gl2A20m3.js} +2 -2
- package/dist/{vue-ui-bullet-FeScjj7q.js → vue-ui-bullet-D-VMKpwe.js} +127 -119
- package/dist/{vue-ui-candlestick-Drupgyoi.js → vue-ui-candlestick-1r6YwiUV.js} +194 -186
- package/dist/{vue-ui-carousel-table-BTZQRZfO.js → vue-ui-carousel-table-B6UJoNtP.js} +4 -4
- package/dist/{vue-ui-chestnut-DLWjPwRL.js → vue-ui-chestnut-DnlBYpC5.js} +226 -218
- package/dist/{vue-ui-chord-BgLbFBT9.js → vue-ui-chord-D3kpzYjp.js} +175 -167
- package/dist/{vue-ui-circle-pack-VXcRh2gy.js → vue-ui-circle-pack-CHgdpoYu.js} +188 -180
- package/dist/{vue-ui-cursor-DWmfnM25.js → vue-ui-cursor-63EAvElT.js} +2 -2
- package/dist/{vue-ui-dashboard-CGIocEHj.js → vue-ui-dashboard-Da6CPET-.js} +62 -62
- package/dist/{vue-ui-digits-BgQch3Fc.js → vue-ui-digits-CA8pUKej.js} +2 -2
- package/dist/{vue-ui-donut-B59bCV5_.js → vue-ui-donut-CKa7nFjt.js} +329 -321
- package/dist/{vue-ui-donut-evolution-CI8qBIQd.js → vue-ui-donut-evolution-qeBEA4W8.js} +245 -237
- package/dist/{vue-ui-dumbbell-CXv7sk88.js → vue-ui-dumbbell-Bm0PvAKT.js} +144 -136
- package/dist/{vue-ui-flow-DxF0ELtv.js → vue-ui-flow-C2dqXvrU.js} +169 -161
- package/dist/{vue-ui-funnel-Bco8rqF8.js → vue-ui-funnel-Dvy5rRld.js} +132 -124
- package/dist/{vue-ui-galaxy-CaPJwwOj.js → vue-ui-galaxy-Y8LYp5n2.js} +168 -160
- package/dist/{vue-ui-gauge-D7arhDmb.js → vue-ui-gauge-BBo0jWAP.js} +164 -156
- package/dist/{vue-ui-gizmo-Dwli-Mip.js → vue-ui-gizmo-DjXfTOWn.js} +3 -3
- package/dist/{vue-ui-heatmap-Cyn-ahGO.js → vue-ui-heatmap-BbxRpltP.js} +240 -228
- package/dist/{vue-ui-history-plot-C2AEToqx.js → vue-ui-history-plot-ChYf3Nvc.js} +214 -206
- package/dist/{vue-ui-kpi-DKDibSdl.js → vue-ui-kpi-Vfc5-JnE.js} +3 -3
- package/dist/{vue-ui-mini-loader-B8OVutUx.js → vue-ui-mini-loader-C0-Nsz8K.js} +2 -2
- package/dist/{vue-ui-molecule-BVSrqIGw.js → vue-ui-molecule-B7Yu7vzF.js} +158 -150
- package/dist/{vue-ui-mood-radar-DvlyS3RN.js → vue-ui-mood-radar-C8JUTwNw.js} +128 -120
- package/dist/{vue-ui-nested-donuts-D9ssSus6.js → vue-ui-nested-donuts-D0RgFifU.js} +196 -188
- package/dist/{vue-ui-onion-Buu4VX3u.js → vue-ui-onion-D4U7TL_N.js} +166 -158
- package/dist/{vue-ui-parallel-coordinate-plot-DFLUvhxD.js → vue-ui-parallel-coordinate-plot-CXMT7Rjr.js} +186 -178
- package/dist/{vue-ui-quadrant-BMC7NBGd.js → vue-ui-quadrant-B13pTVVZ.js} +182 -174
- package/dist/{vue-ui-quick-chart-DB9RKUkb.js → vue-ui-quick-chart-C0UL4o63.js} +305 -297
- package/dist/{vue-ui-radar-68NMPxxQ.js → vue-ui-radar-XpdiXnhz.js} +167 -159
- package/dist/{vue-ui-rating-swH9kRr3.js → vue-ui-rating-CM8ZrUb1.js} +2 -2
- package/dist/{vue-ui-relation-circle-CT-EdSjO.js → vue-ui-relation-circle-CYoFNekk.js} +144 -136
- package/dist/{vue-ui-ridgeline-DftROPaX.js → vue-ui-ridgeline-QUquE6ck.js} +196 -188
- package/dist/{vue-ui-rings-M-9dPI5D.js → vue-ui-rings-DwT0IfOh.js} +145 -137
- package/dist/{vue-ui-scatter-CsGhaFJh.js → vue-ui-scatter-zDpy1udm.js} +179 -172
- package/dist/{vue-ui-skeleton-BAOt2neL.js → vue-ui-skeleton-DJPjyNYn.js} +3 -3
- package/dist/{vue-ui-smiley-7_kIgPg-.js → vue-ui-smiley-DoDXl6k0.js} +2 -2
- package/dist/{vue-ui-spark-trend-DHlQQpwz.js → vue-ui-spark-trend-CniV6Cpr.js} +3 -3
- package/dist/{vue-ui-sparkbar-BnHhzuKf.js → vue-ui-sparkbar-Ds2ITgwn.js} +3 -3
- package/dist/{vue-ui-sparkgauge-WtfkCK8g.js → vue-ui-sparkgauge-CosfK-kw.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-B2u4XLVd.js → vue-ui-sparkhistogram-C7O1wPAJ.js} +4 -4
- package/dist/{vue-ui-sparkline-DKIyUlSm.js → vue-ui-sparkline-B_iUj3F2.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BLGz2qIb.js → vue-ui-sparkstackbar-DBhWrysr.js} +3 -3
- package/dist/{vue-ui-stackbar-BDpMsTYe.js → vue-ui-stackbar-C3aV4IcL.js} +240 -232
- package/dist/{vue-ui-strip-plot-5qDcYPnR.js → vue-ui-strip-plot-Bvr1GAzH.js} +204 -196
- package/dist/{vue-ui-table-Bg5HIQ3O.js → vue-ui-table-DQKKRgyo.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DmjNy1q1.js → vue-ui-table-heatmap-Dyqj5XJC.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CnkJkBk5.js → vue-ui-table-sparkline-D4RubyLj.js} +4 -4
- package/dist/{vue-ui-thermometer-RlD-9mJf.js → vue-ui-thermometer-B0FKI5cG.js} +145 -137
- package/dist/{vue-ui-timer-Bes74INL.js → vue-ui-timer-DUCBRIl-.js} +5 -5
- package/dist/{vue-ui-tiremarks-DiLS3akQ.js → vue-ui-tiremarks-CRt4UQZD.js} +108 -100
- package/dist/vue-ui-treemap-CWP5nYDx.js +961 -0
- package/dist/{vue-ui-vertical-bar-CwqQyZFX.js → vue-ui-vertical-bar-C5fPYltO.js} +278 -270
- package/dist/{vue-ui-waffle-Ce3T4BPp.js → vue-ui-waffle-BpWLlfpg.js} +188 -180
- package/dist/{vue-ui-wheel-6B0WTkf2.js → vue-ui-wheel-CTzuCroy.js} +112 -104
- package/dist/{vue-ui-word-cloud-ByYZCOh7.js → vue-ui-word-cloud-BPokdaP1.js} +198 -190
- package/dist/{vue-ui-world-B9PxVO4n.js → vue-ui-world-CS6k-oil.js} +199 -191
- package/dist/{vue-ui-xy-DtJ7qJib.js → vue-ui-xy-CQ425kLR.js} +550 -544
- package/dist/{vue-ui-xy-canvas-S6YpFgzs.js → vue-ui-xy-canvas-D2IFwAr7.js} +306 -298
- package/package.json +1 -1
- package/dist/vue-data-ui-B8EWlMIK.js +0 -301
- package/dist/vue-ui-treemap-BG1Omm38.js +0 -953
|
@@ -1,20 +1,21 @@
|
|
|
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
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
|
|
1
|
+
import { defineAsyncComponent as U, computed as $, ref as h, watch as at, onMounted as ot, nextTick as st, shallowRef as ut, onBeforeUnmount as Mt, createElementBlock as i, openBlock as n, unref as r, normalizeStyle as ue, normalizeClass as R, createBlock as B, createCommentVNode as m, createVNode as nt, createSlots as Et, withCtx as L, renderSlot as x, normalizeProps as X, guardReactiveProps as W, createElementVNode as g, Fragment as T, renderList as O, toDisplayString as I, withDirectives as rt, vShow as it, createTextVNode as ne } from "vue";
|
|
2
|
+
import { u as Ut, c as Rt, t as Bt, p as Ce, a as Gt, G as D, o as Yt, e as q, b as Xt, d as Wt, m as _e, f as F, X as qt, s as Ht, L as Jt, k as Te, n as H, i as K, x as dt, q as Kt, r as Qt, y as Zt, v as Oe, T as ct } from "./index-pPGk-uhD.js";
|
|
3
|
+
import { t as jt, u as el } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as vt } from "./useNestedProp-DjACxgdZ.js";
|
|
5
|
+
import { u as tl } from "./usePrinter-DDHcrl0A.js";
|
|
6
|
+
import { u as ll } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as al } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import ol from "./Title-B-2bV0SW.js";
|
|
9
|
+
import sl from "./Legend-Bxlv67uY.js";
|
|
10
|
+
import ul from "./img-Y_hYz-ZC.js";
|
|
11
|
+
import { _ as nl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
+
const rl = ["id"], il = ["xmlns", "viewBox"], dl = ["width", "height"], cl = ["id"], vl = ["offset", "stop-color"], hl = ["offset", "stop-opacity"], fl = ["id"], pl = ["id"], yl = ["id"], bl = ["flood-color"], gl = ["d", "fill", "stroke", "stroke-width", "filter"], ml = ["d", "fill", "stroke", "stroke-width"], wl = { key: 1 }, kl = ["d", "fill"], $l = { key: 2 }, Ll = ["x", "y", "font-size", "font-weight", "fill"], xl = { key: 3 }, Cl = ["filter"], _l = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], Tl = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], Ol = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], Fl = ["d", "fill", "onMouseenter", "onClick"], Nl = {
|
|
12
13
|
key: 5,
|
|
13
14
|
class: "vue-data-ui-watermark"
|
|
14
|
-
},
|
|
15
|
+
}, Sl = {
|
|
15
16
|
key: 0,
|
|
16
17
|
class: "vue-ui-nested-donuts-legend-title"
|
|
17
|
-
},
|
|
18
|
+
}, Al = ["onClick"], Il = ["innerHTML"], Vl = {
|
|
18
19
|
__name: "vue-ui-nested-donuts",
|
|
19
20
|
props: {
|
|
20
21
|
config: {
|
|
@@ -31,38 +32,38 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
31
32
|
}
|
|
32
33
|
},
|
|
33
34
|
emits: ["selectLegend", "selectDatapoint"],
|
|
34
|
-
setup(
|
|
35
|
-
const
|
|
36
|
-
function
|
|
37
|
-
|
|
35
|
+
setup(ht, { expose: ft, emit: pt }) {
|
|
36
|
+
const yt = U(() => import("./vue-ui-accordion-CVnA550V.js")), bt = U(() => import("./DataTable-D0VYDhfx.js")), gt = U(() => import("./PackageVersion-5TR4ocqp.js")), mt = U(() => import("./PenAndPaper-D6AqipIO.js")), wt = U(() => import("./vue-ui-skeleton-DJPjyNYn.js")), kt = U(() => import("./Tooltip-CoQnTnr-.js")), $t = U(() => import("./UserOptions-Dd34lEKb.js")), { vue_ui_nested_donuts: Lt } = Ut(), C = ht, Q = $(() => !!C.dataset && C.dataset.length), y = h(Rt()), re = h(!1), ie = h(""), xt = h(null), Fe = h(0), z = h(null), Ne = h(null), de = h(null), Se = h(null), Ae = h(null), Ie = h(0), Ve = h(0), Pe = h(0), M = h(!0), E = h([]), J = h([]), G = h(!1);
|
|
37
|
+
function De(l) {
|
|
38
|
+
G.value = l, Fe.value += 1;
|
|
38
39
|
}
|
|
39
40
|
const e = $({
|
|
40
|
-
get: () =>
|
|
41
|
+
get: () => Ue(),
|
|
41
42
|
set: (l) => l
|
|
42
|
-
}), { userOptionsVisible: ce, setUserOptionsVisibility:
|
|
43
|
+
}), { userOptionsVisible: ce, setUserOptionsVisibility: ze, keepUserOptionState: Me } = ll({ config: e.value }), { svgRef: Ee } = al({
|
|
43
44
|
config: e.value.style.chart.title
|
|
44
45
|
});
|
|
45
|
-
function
|
|
46
|
-
const l =
|
|
46
|
+
function Ue() {
|
|
47
|
+
const l = vt({
|
|
47
48
|
userConfig: C.config,
|
|
48
|
-
defaultConfig:
|
|
49
|
+
defaultConfig: Lt
|
|
49
50
|
});
|
|
50
51
|
return l.theme ? {
|
|
51
|
-
...
|
|
52
|
-
userConfig:
|
|
52
|
+
...vt({
|
|
53
|
+
userConfig: Gt.vue_ui_nested_donuts[l.theme] || C.config,
|
|
53
54
|
defaultConfig: l
|
|
54
55
|
}),
|
|
55
|
-
customPalette:
|
|
56
|
+
customPalette: Bt[l.theme] || Ce
|
|
56
57
|
} : l;
|
|
57
58
|
}
|
|
58
|
-
|
|
59
|
+
at(
|
|
59
60
|
() => C.config,
|
|
60
61
|
(l) => {
|
|
61
|
-
e.value =
|
|
62
|
+
e.value = Ue(), ce.value = !e.value.userOptions.showOnChartHover, ve(), Ie.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
63
|
},
|
|
63
64
|
{ deep: !0 }
|
|
64
65
|
);
|
|
65
|
-
const
|
|
66
|
+
const Re = $(() => {
|
|
66
67
|
const { top: l, right: s, bottom: a, left: o } = e.value.style.chart.padding;
|
|
67
68
|
return {
|
|
68
69
|
css: `padding:${l}px ${s}px ${a}px ${o}px`,
|
|
@@ -75,21 +76,21 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
75
76
|
function Ct(l, s = 1e3, a = 50) {
|
|
76
77
|
return new Promise((o) => {
|
|
77
78
|
const t = l.length;
|
|
78
|
-
|
|
79
|
+
E.value = Array(t).fill(0), J.value = [];
|
|
79
80
|
let u = 0;
|
|
80
81
|
l.forEach((c, v) => {
|
|
81
82
|
setTimeout(() => {
|
|
82
83
|
const N = performance.now();
|
|
83
84
|
function d(p) {
|
|
84
|
-
const _ = Math.min((p - N) / s, 1), ge =
|
|
85
|
-
|
|
85
|
+
const _ = Math.min((p - N) / s, 1), ge = ct(_), me = c * ge;
|
|
86
|
+
E.value[v] = me, E.value = [...E.value];
|
|
86
87
|
const oe = [];
|
|
87
88
|
let we = 0;
|
|
88
89
|
C.dataset.forEach((se, ke) => {
|
|
89
|
-
const
|
|
90
|
-
(Le, xe) => Le + Oe(D(xe.values).reduce((
|
|
90
|
+
const Vt = Oe(se.series.reduce(
|
|
91
|
+
(Le, xe) => Le + Oe(D(xe.values).reduce((Dt, zt) => Dt + zt, 0)),
|
|
91
92
|
0
|
|
92
|
-
)),
|
|
93
|
+
)), Pt = Oe(E.value.slice(we, we + se.series.length).reduce((Le, xe) => Le + xe, 0)), $e = Vt - Pt;
|
|
93
94
|
$e > Number.MIN_VALUE && oe.push({
|
|
94
95
|
name: "__ghost__",
|
|
95
96
|
arcOf: se.name,
|
|
@@ -110,12 +111,12 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
110
111
|
});
|
|
111
112
|
});
|
|
112
113
|
}
|
|
113
|
-
|
|
114
|
+
ot(async () => {
|
|
114
115
|
if (ve(), e.value.startAnimation?.show) {
|
|
115
116
|
const s = C.dataset.flatMap((a) => a.series).map(
|
|
116
117
|
(a) => D(a.values).reduce((o, t) => o + t, 0)
|
|
117
118
|
);
|
|
118
|
-
|
|
119
|
+
E.value = s.map(() => 0), M.value = !0, J.value = C.dataset.map((a, o) => {
|
|
119
120
|
const t = a.series.reduce(
|
|
120
121
|
(u, c) => u + D(c.values).reduce((v, N) => v + N, 0),
|
|
121
122
|
0
|
|
@@ -133,49 +134,49 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
133
134
|
absoluteValues: [],
|
|
134
135
|
ghost: !0
|
|
135
136
|
};
|
|
136
|
-
}), await
|
|
137
|
+
}), await st(), Ct(
|
|
137
138
|
s,
|
|
138
139
|
e.value.startAnimation.durationMs,
|
|
139
140
|
e.value.startAnimation.staggerMs
|
|
140
141
|
).then(() => {
|
|
141
|
-
|
|
142
|
+
M.value = !1, J.value = [];
|
|
142
143
|
});
|
|
143
144
|
} else
|
|
144
|
-
|
|
145
|
+
M.value = !1;
|
|
145
146
|
});
|
|
146
|
-
const V =
|
|
147
|
-
|
|
147
|
+
const V = ut(null), Y = ut(null);
|
|
148
|
+
ot(() => {
|
|
148
149
|
ve();
|
|
149
150
|
});
|
|
150
151
|
function ve() {
|
|
151
|
-
if (
|
|
152
|
+
if (Yt(C.dataset) && q({
|
|
152
153
|
componentName: "VueUiNestedDonuts",
|
|
153
154
|
type: "dataset"
|
|
154
155
|
}), e.value.responsive) {
|
|
155
|
-
const l =
|
|
156
|
-
const { width: s, height: a } =
|
|
157
|
-
chart:
|
|
156
|
+
const l = jt(() => {
|
|
157
|
+
const { width: s, height: a } = el({
|
|
158
|
+
chart: z.value,
|
|
158
159
|
title: e.value.style.chart.title.text ? Ne.value : null,
|
|
159
160
|
legend: e.value.style.chart.legend.show ? de.value : null,
|
|
160
161
|
source: Se.value,
|
|
161
162
|
noTitle: Ae.value,
|
|
162
|
-
padding:
|
|
163
|
+
padding: Re.value
|
|
163
164
|
});
|
|
164
165
|
requestAnimationFrame(() => {
|
|
165
166
|
f.value.width = s, f.value.height = a;
|
|
166
167
|
});
|
|
167
168
|
});
|
|
168
|
-
V.value && (
|
|
169
|
+
V.value && (Y.value && V.value.unobserve(Y.value), V.value.disconnect()), V.value = new ResizeObserver(l), Y.value = z.value.parentNode, V.value.observe(Y.value);
|
|
169
170
|
}
|
|
170
171
|
}
|
|
171
|
-
|
|
172
|
-
V.value && (
|
|
172
|
+
Mt(() => {
|
|
173
|
+
V.value && (Y.value && V.value.unobserve(Y.value), V.value.disconnect());
|
|
173
174
|
});
|
|
174
|
-
const { isPrinting:
|
|
175
|
+
const { isPrinting: Be, isImaging: Ge, generatePdf: Ye, generateImage: Xe } = tl({
|
|
175
176
|
elementId: `nested_donuts_${y.value}`,
|
|
176
177
|
fileName: e.value.style.chart.title.text || "vue-ui-nested-donuts",
|
|
177
178
|
options: e.value.userOptions.print
|
|
178
|
-
}), _t = $(() => e.value.userOptions.show && !e.value.style.chart.title.text), Tt = $(() =>
|
|
179
|
+
}), _t = $(() => e.value.userOptions.show && !e.value.style.chart.title.text), Tt = $(() => Xt(e.value.customPalette)), k = h({
|
|
179
180
|
dataLabels: {
|
|
180
181
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
181
182
|
},
|
|
@@ -184,17 +185,17 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
184
185
|
}), f = h({
|
|
185
186
|
width: e.value.style.chart.width,
|
|
186
187
|
height: e.value.style.chart.height
|
|
187
|
-
}),
|
|
188
|
+
}), We = pt;
|
|
188
189
|
function Ot({ datapoint: l, index: s }) {
|
|
189
|
-
|
|
190
|
+
We("selectDatapoint", { datapoint: l, index: s });
|
|
190
191
|
}
|
|
191
|
-
function
|
|
192
|
+
function qe({
|
|
192
193
|
from: l,
|
|
193
194
|
to: s,
|
|
194
195
|
duration: a,
|
|
195
196
|
onUpdate: o,
|
|
196
197
|
onDone: t,
|
|
197
|
-
easing: u =
|
|
198
|
+
easing: u = ct
|
|
198
199
|
}) {
|
|
199
200
|
const c = performance.now();
|
|
200
201
|
function v(N) {
|
|
@@ -205,28 +206,28 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
205
206
|
}
|
|
206
207
|
const w = h([]), S = $(() => {
|
|
207
208
|
C.dataset.forEach((s, a) => {
|
|
208
|
-
[null, void 0].includes(s.name) &&
|
|
209
|
+
[null, void 0].includes(s.name) && q({
|
|
209
210
|
componentName: "VueUiNestedDonuts",
|
|
210
211
|
type: "datasetSerieAttribute",
|
|
211
212
|
property: "name",
|
|
212
213
|
index: a
|
|
213
|
-
}), [null, void 0].includes(s.series) ?
|
|
214
|
+
}), [null, void 0].includes(s.series) ? q({
|
|
214
215
|
componentName: "VueUiNestedDonuts",
|
|
215
216
|
type: "datasetSerieAttribute",
|
|
216
217
|
property: "series",
|
|
217
218
|
index: a
|
|
218
|
-
}) : s.series.length === 0 ?
|
|
219
|
+
}) : s.series.length === 0 ? q({
|
|
219
220
|
componentName: "VueUiNestedDonuts",
|
|
220
221
|
type: "datasetAttributeEmpty",
|
|
221
222
|
property: `series at index ${a}`
|
|
222
223
|
}) : s.series.forEach((o, t) => {
|
|
223
|
-
[null, void 0].includes(o.name) &&
|
|
224
|
+
[null, void 0].includes(o.name) && q({
|
|
224
225
|
componentName: "VueUiNestedDonuts",
|
|
225
226
|
type: "datasetSerieAttribute",
|
|
226
227
|
property: "name",
|
|
227
228
|
index: t,
|
|
228
229
|
key: "serie"
|
|
229
|
-
}), [null, void 0].includes(o.values) &&
|
|
230
|
+
}), [null, void 0].includes(o.values) && q({
|
|
230
231
|
componentName: "VueUiNestedDonuts",
|
|
231
232
|
type: "datasetSerieAttribute",
|
|
232
233
|
property: "values",
|
|
@@ -250,13 +251,13 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
250
251
|
id: `${y.value}_${a}_${t}`,
|
|
251
252
|
seriesIndex: t,
|
|
252
253
|
datasetIndex: a,
|
|
253
|
-
color:
|
|
254
|
-
value:
|
|
254
|
+
color: Wt(o.color) || Tt.value[t] || Ce[t % Ce.length],
|
|
255
|
+
value: M.value ? E.value[l++] ?? 0 : u,
|
|
255
256
|
absoluteValues: o.values || []
|
|
256
257
|
};
|
|
257
258
|
})
|
|
258
259
|
}));
|
|
259
|
-
}), A = $(() => Math.min(f.value.height, f.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)),
|
|
260
|
+
}), A = $(() => Math.min(f.value.height, f.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)), He = $(() => [...S.value].map((l, s) => {
|
|
260
261
|
const a = l.series.filter((o) => !w.value.includes(o.id)).map((o) => o.value).reduce((o, t) => o + t, 0);
|
|
261
262
|
return {
|
|
262
263
|
...l,
|
|
@@ -273,13 +274,13 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
273
274
|
a.includes(l[t]) && (o += 1);
|
|
274
275
|
return o < s;
|
|
275
276
|
}
|
|
276
|
-
const b = h(
|
|
277
|
-
|
|
278
|
-
() =>
|
|
277
|
+
const b = h(He.value);
|
|
278
|
+
at(
|
|
279
|
+
() => He.value,
|
|
279
280
|
(l) => b.value = l
|
|
280
281
|
);
|
|
281
282
|
function he(l) {
|
|
282
|
-
|
|
283
|
+
We("selectLegend", l);
|
|
283
284
|
const s = C.dataset.flatMap(
|
|
284
285
|
(d, p) => d.series.map((_, ge) => ({
|
|
285
286
|
value: D(_.values).reduce((me, oe) => me + oe, 0),
|
|
@@ -299,7 +300,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
299
300
|
v.length - 1,
|
|
300
301
|
w.value
|
|
301
302
|
);
|
|
302
|
-
w.value.includes(l.id) ? (w.value = w.value.filter((d) => d !== l.id), e.value.serieToggleAnimation.show ?
|
|
303
|
+
w.value.includes(l.id) ? (w.value = w.value.filter((d) => d !== l.id), e.value.serieToggleAnimation.show ? qe({
|
|
303
304
|
from: u,
|
|
304
305
|
to: a,
|
|
305
306
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
@@ -312,7 +313,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
312
313
|
}) : b.value = b.value.map((d) => ({
|
|
313
314
|
...d,
|
|
314
315
|
series: d.series.map((p) => p.id === l.id ? { ...p, value: a } : p)
|
|
315
|
-
}))) : N && (e.value.serieToggleAnimation.show ?
|
|
316
|
+
}))) : N && (e.value.serieToggleAnimation.show ? qe({
|
|
316
317
|
from: u,
|
|
317
318
|
to: 0,
|
|
318
319
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
@@ -330,8 +331,8 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
330
331
|
series: d.series.map((p) => p.id === l.id ? { ...p, value: 0 } : p)
|
|
331
332
|
})), w.value.push(l.id)));
|
|
332
333
|
}
|
|
333
|
-
const Z = $(() => A.value / S.value.length * e.value.style.chart.layout.donut.spacingRatio),
|
|
334
|
-
const a = Math.abs(l.series.map((v) => v.value).reduce((v, N) => v + N, 0)) > 0, o = A.value - s * A.value / b.value.length, t =
|
|
334
|
+
const Z = $(() => A.value / S.value.length * e.value.style.chart.layout.donut.spacingRatio), Je = $(() => b.value.map((l, s) => A.value - s * A.value / S.value.length)), j = $(() => b.value.map((l, s) => {
|
|
335
|
+
const a = Math.abs(l.series.map((v) => v.value).reduce((v, N) => v + N, 0)) > 0, o = A.value - s * A.value / b.value.length, t = M.value ? J.value.find((v) => v.datasetIndex === s) : null, u = [...l.series, ...t ? [t] : []].map((v) => ({
|
|
335
336
|
...v,
|
|
336
337
|
value: v.value < 1e-11 ? Number.MIN_VALUE : v.value
|
|
337
338
|
})), c = _e(
|
|
@@ -368,7 +369,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
368
369
|
Z.value
|
|
369
370
|
)
|
|
370
371
|
};
|
|
371
|
-
})),
|
|
372
|
+
})), Ke = $(() => [...S.value].map((l, s) => {
|
|
372
373
|
const a = s * A.value / S.value.length;
|
|
373
374
|
return {
|
|
374
375
|
sizeRatio: a,
|
|
@@ -386,16 +387,16 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
386
387
|
A.value / S.value.length * e.value.style.chart.layout.donut.spacingRatio
|
|
387
388
|
)[0]
|
|
388
389
|
};
|
|
389
|
-
})),
|
|
390
|
+
})), Qe = h(null), ee = h(null), te = h(null), fe = h(null);
|
|
390
391
|
function Nt({ datapoint: l, _relativeIndex: s, seriesIndex: a }) {
|
|
391
|
-
|
|
392
|
+
Qe.value = l.arcOfId, ee.value = l.id, te.value = a, fe.value = {
|
|
392
393
|
datapoint: l,
|
|
393
394
|
seriesIndex: a,
|
|
394
395
|
series: b.value,
|
|
395
396
|
config: e.value
|
|
396
397
|
};
|
|
397
398
|
const o = e.value.style.chart.tooltip.customFormat;
|
|
398
|
-
if (
|
|
399
|
+
if (dt(o) && Zt(
|
|
399
400
|
() => o({
|
|
400
401
|
seriesIndex: a,
|
|
401
402
|
datapoint: l,
|
|
@@ -474,7 +475,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
474
475
|
function pe(l) {
|
|
475
476
|
return l.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
476
477
|
}
|
|
477
|
-
function
|
|
478
|
+
function Ze(l, s) {
|
|
478
479
|
if (!e.value.useBlurOnHover)
|
|
479
480
|
return "";
|
|
480
481
|
if (e.value.style.chart.tooltip.showAllItemsAtIndex && w.value.length === 0)
|
|
@@ -485,7 +486,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
485
486
|
const ye = $(() => S.value.map((l, s) => {
|
|
486
487
|
const a = l.series.filter(
|
|
487
488
|
(t) => !w.value.includes(t.id)
|
|
488
|
-
), o =
|
|
489
|
+
), o = M.value ? a.map((t) => {
|
|
489
490
|
const u = C.dataset[s].series.findIndex(
|
|
490
491
|
(c) => c.name === t.name
|
|
491
492
|
);
|
|
@@ -497,7 +498,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
497
498
|
const c = D(C.dataset[s].series[u].values).reduce(
|
|
498
499
|
(N, d) => N + d,
|
|
499
500
|
0
|
|
500
|
-
), v =
|
|
501
|
+
), v = M.value ? c : t.value;
|
|
501
502
|
return {
|
|
502
503
|
name: t.name,
|
|
503
504
|
color: t.color,
|
|
@@ -528,8 +529,8 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
528
529
|
}))), s = b.value.flatMap((a) => a.series.map((o) => o.value));
|
|
529
530
|
return { head: l, body: s };
|
|
530
531
|
});
|
|
531
|
-
function
|
|
532
|
-
|
|
532
|
+
function je(l = null) {
|
|
533
|
+
st(() => {
|
|
533
534
|
const s = P.value.head.map((t, u) => [
|
|
534
535
|
[t.name],
|
|
535
536
|
[P.value.body[u]],
|
|
@@ -540,8 +541,8 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
540
541
|
[e.value.style.chart.title.text],
|
|
541
542
|
[e.value.style.chart.title.subtitle.text],
|
|
542
543
|
[[""], ["val"], ["%"]]
|
|
543
|
-
].concat(s), o =
|
|
544
|
-
l ? l(o) :
|
|
544
|
+
].concat(s), o = Kt(a);
|
|
545
|
+
l ? l(o) : Qt({
|
|
545
546
|
csvContent: o,
|
|
546
547
|
title: e.value.style.chart.title.text || "vue-ui-nested-donuts"
|
|
547
548
|
});
|
|
@@ -598,40 +599,47 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
598
599
|
function At() {
|
|
599
600
|
return S.value;
|
|
600
601
|
}
|
|
601
|
-
function
|
|
602
|
+
function et() {
|
|
602
603
|
k.value.showTable = !k.value.showTable;
|
|
603
604
|
}
|
|
604
|
-
function
|
|
605
|
+
function tt() {
|
|
605
606
|
k.value.dataLabels.show = !k.value.dataLabels.show;
|
|
606
607
|
}
|
|
607
|
-
function
|
|
608
|
+
function lt() {
|
|
608
609
|
k.value.showTooltip = !k.value.showTooltip;
|
|
609
610
|
}
|
|
610
611
|
const ae = h(!1);
|
|
611
612
|
function be() {
|
|
612
613
|
ae.value = !ae.value;
|
|
613
614
|
}
|
|
614
|
-
|
|
615
|
+
async function It({ scale: l = 2 } = {}) {
|
|
616
|
+
if (!z.value) return;
|
|
617
|
+
const { imageUri: s, base64: a } = await ul({ domElement: z.value, base64: !0, img: !0, scale: l });
|
|
618
|
+
return { imageUri: s, base64: a };
|
|
619
|
+
}
|
|
620
|
+
return ft({
|
|
615
621
|
getData: At,
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
622
|
+
getImage: It,
|
|
623
|
+
generatePdf: Ye,
|
|
624
|
+
generateCsv: je,
|
|
625
|
+
generateImage: Xe,
|
|
626
|
+
toggleTable: et,
|
|
627
|
+
toggleLabels: tt,
|
|
628
|
+
toggleTooltip: lt,
|
|
629
|
+
toggleAnnotator: be,
|
|
630
|
+
toggleFullscreen: De
|
|
623
631
|
}), (l, s) => (n(), i("div", {
|
|
624
632
|
ref_key: "nestedDonutsChart",
|
|
625
|
-
ref:
|
|
626
|
-
class:
|
|
633
|
+
ref: z,
|
|
634
|
+
class: R(`vue-ui-nested-donuts ${G.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
627
635
|
style: ue(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
628
636
|
id: `nested_donuts_${y.value}`,
|
|
629
|
-
onMouseenter: s[3] || (s[3] = () => r(
|
|
630
|
-
onMouseleave: s[4] || (s[4] = () => r(
|
|
637
|
+
onMouseenter: s[3] || (s[3] = () => r(ze)(!0)),
|
|
638
|
+
onMouseleave: s[4] || (s[4] = () => r(ze)(!1))
|
|
631
639
|
}, [
|
|
632
|
-
e.value.userOptions.buttons.annotator ? (n(),
|
|
640
|
+
e.value.userOptions.buttons.annotator ? (n(), B(r(mt), {
|
|
633
641
|
key: 0,
|
|
634
|
-
svgRef: r(
|
|
642
|
+
svgRef: r(Ee),
|
|
635
643
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
636
644
|
color: e.value.style.chart.color,
|
|
637
645
|
active: ae.value,
|
|
@@ -649,7 +657,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
649
657
|
ref_key: "chartTitle",
|
|
650
658
|
ref: Ne
|
|
651
659
|
}, [
|
|
652
|
-
(n(),
|
|
660
|
+
(n(), B(ol, {
|
|
653
661
|
key: `title_${Ie.value}`,
|
|
654
662
|
config: {
|
|
655
663
|
title: {
|
|
@@ -663,13 +671,13 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
663
671
|
}
|
|
664
672
|
}, null, 8, ["config"]))
|
|
665
673
|
], 512)) : m("", !0),
|
|
666
|
-
e.value.userOptions.show && Q.value && (r(
|
|
674
|
+
e.value.userOptions.show && Q.value && (r(Me) || r(ce)) ? (n(), B(r($t), {
|
|
667
675
|
ref: "details",
|
|
668
676
|
key: `user_option_${Fe.value}`,
|
|
669
677
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
670
678
|
color: e.value.style.chart.color,
|
|
671
|
-
isPrinting: r(
|
|
672
|
-
isImaging: r(
|
|
679
|
+
isPrinting: r(Be),
|
|
680
|
+
isImaging: r(Ge),
|
|
673
681
|
uid: y.value,
|
|
674
682
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
675
683
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -678,31 +686,31 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
678
686
|
hasTable: e.value.userOptions.buttons.table,
|
|
679
687
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
680
688
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
681
|
-
isFullscreen:
|
|
689
|
+
isFullscreen: G.value,
|
|
682
690
|
isTooltip: k.value.showTooltip,
|
|
683
691
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
684
|
-
chartElement:
|
|
692
|
+
chartElement: z.value,
|
|
685
693
|
position: e.value.userOptions.position,
|
|
686
694
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
687
695
|
isAnnotation: ae.value,
|
|
688
696
|
callbacks: e.value.userOptions.callbacks,
|
|
689
697
|
printScale: e.value.userOptions.print.scale,
|
|
690
|
-
onToggleFullscreen:
|
|
691
|
-
onGeneratePdf: r(
|
|
692
|
-
onGenerateCsv:
|
|
693
|
-
onGenerateImage: r(
|
|
694
|
-
onToggleTable:
|
|
695
|
-
onToggleLabels:
|
|
696
|
-
onToggleTooltip:
|
|
698
|
+
onToggleFullscreen: De,
|
|
699
|
+
onGeneratePdf: r(Ye),
|
|
700
|
+
onGenerateCsv: je,
|
|
701
|
+
onGenerateImage: r(Xe),
|
|
702
|
+
onToggleTable: et,
|
|
703
|
+
onToggleLabels: tt,
|
|
704
|
+
onToggleTooltip: lt,
|
|
697
705
|
onToggleAnnotator: be,
|
|
698
706
|
style: ue({
|
|
699
|
-
visibility: r(
|
|
707
|
+
visibility: r(Me) ? r(ce) ? "visible" : "hidden" : "visible"
|
|
700
708
|
})
|
|
701
|
-
},
|
|
709
|
+
}, Et({ _: 2 }, [
|
|
702
710
|
l.$slots.menuIcon ? {
|
|
703
711
|
name: "menuIcon",
|
|
704
712
|
fn: L(({ isOpen: a, color: o }) => [
|
|
705
|
-
x(l.$slots, "menuIcon",
|
|
713
|
+
x(l.$slots, "menuIcon", X(W({ isOpen: a, color: o })), void 0, !0)
|
|
706
714
|
]),
|
|
707
715
|
key: "0"
|
|
708
716
|
} : void 0,
|
|
@@ -751,14 +759,14 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
751
759
|
l.$slots.optionFullscreen ? {
|
|
752
760
|
name: "optionFullscreen",
|
|
753
761
|
fn: L(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
754
|
-
x(l.$slots, "optionFullscreen",
|
|
762
|
+
x(l.$slots, "optionFullscreen", X(W({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
755
763
|
]),
|
|
756
764
|
key: "7"
|
|
757
765
|
} : void 0,
|
|
758
766
|
l.$slots.optionAnnotator ? {
|
|
759
767
|
name: "optionAnnotator",
|
|
760
768
|
fn: L(({ toggleAnnotator: a, isAnnotator: o }) => [
|
|
761
|
-
x(l.$slots, "optionAnnotator",
|
|
769
|
+
x(l.$slots, "optionAnnotator", X(W({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
|
|
762
770
|
]),
|
|
763
771
|
key: "8"
|
|
764
772
|
} : void 0
|
|
@@ -766,16 +774,16 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
766
774
|
Q.value ? (n(), i("svg", {
|
|
767
775
|
key: 4,
|
|
768
776
|
ref_key: "svgRef",
|
|
769
|
-
ref:
|
|
770
|
-
xmlns: r(
|
|
771
|
-
class:
|
|
772
|
-
"vue-data-ui-fullscreen--on":
|
|
773
|
-
"vue-data-ui-fulscreen--off": !
|
|
777
|
+
ref: Ee,
|
|
778
|
+
xmlns: r(qt),
|
|
779
|
+
class: R({
|
|
780
|
+
"vue-data-ui-fullscreen--on": G.value,
|
|
781
|
+
"vue-data-ui-fulscreen--off": !G.value
|
|
774
782
|
}),
|
|
775
783
|
viewBox: `0 0 ${f.value.width <= 0 ? 1e-3 : f.value.width} ${f.value.height < 0 ? 1e-3 : f.value.height}`,
|
|
776
|
-
style: ue(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${
|
|
784
|
+
style: ue(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${Re.value.css}`)
|
|
777
785
|
}, [
|
|
778
|
-
|
|
786
|
+
nt(r(gt)),
|
|
779
787
|
l.$slots["chart-background"] ? (n(), i("foreignObject", {
|
|
780
788
|
key: 0,
|
|
781
789
|
x: 0,
|
|
@@ -787,9 +795,9 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
787
795
|
}
|
|
788
796
|
}, [
|
|
789
797
|
x(l.$slots, "chart-background", {}, void 0, !0)
|
|
790
|
-
], 8,
|
|
798
|
+
], 8, dl)) : m("", !0),
|
|
791
799
|
g("defs", null, [
|
|
792
|
-
(n(!0), i(T, null, O(
|
|
800
|
+
(n(!0), i(T, null, O(Ke.value, (a, o) => (n(), i("radialGradient", {
|
|
793
801
|
id: `radial_${y.value}_${o}`
|
|
794
802
|
}, [
|
|
795
803
|
s[5] || (s[5] = g("stop", {
|
|
@@ -798,21 +806,21 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
798
806
|
"stop-opacity": "0"
|
|
799
807
|
}, null, -1)),
|
|
800
808
|
g("stop", {
|
|
801
|
-
offset: `${(1 - Z.value /
|
|
802
|
-
"stop-color": r(
|
|
809
|
+
offset: `${(1 - Z.value / Je.value[o]) * 100}%`,
|
|
810
|
+
"stop-color": r(Ht)("#FFFFFF", 0),
|
|
803
811
|
"stop-opacity": "0"
|
|
804
|
-
}, null, 8,
|
|
812
|
+
}, null, 8, vl),
|
|
805
813
|
g("stop", {
|
|
806
|
-
offset: `${(1 - Z.value /
|
|
814
|
+
offset: `${(1 - Z.value / Je.value[o] / 2) * 100}%`,
|
|
807
815
|
"stop-color": "#FFFFFF",
|
|
808
816
|
"stop-opacity": e.value.style.chart.gradientIntensity / 100
|
|
809
|
-
}, null, 8,
|
|
817
|
+
}, null, 8, hl),
|
|
810
818
|
s[6] || (s[6] = g("stop", {
|
|
811
819
|
offset: "100%",
|
|
812
820
|
"stop-color": "#FFFFFF",
|
|
813
821
|
"stop-opacity": "0"
|
|
814
822
|
}, null, -1))
|
|
815
|
-
], 8,
|
|
823
|
+
], 8, cl))), 256))
|
|
816
824
|
]),
|
|
817
825
|
g("defs", null, [
|
|
818
826
|
g("filter", {
|
|
@@ -826,12 +834,12 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
826
834
|
in: "SourceGraphic",
|
|
827
835
|
stdDeviation: 2,
|
|
828
836
|
id: `blur_std_${y.value}`
|
|
829
|
-
}, null, 8,
|
|
837
|
+
}, null, 8, pl),
|
|
830
838
|
s[7] || (s[7] = g("feColorMatrix", {
|
|
831
839
|
type: "saturate",
|
|
832
840
|
values: "0"
|
|
833
841
|
}, null, -1))
|
|
834
|
-
], 8,
|
|
842
|
+
], 8, fl),
|
|
835
843
|
g("filter", {
|
|
836
844
|
id: `shadow_${y.value}`,
|
|
837
845
|
"color-interpolation-filters": "sRGB"
|
|
@@ -842,8 +850,8 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
842
850
|
stdDeviation: "10",
|
|
843
851
|
"flood-opacity": "0.5",
|
|
844
852
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
845
|
-
}, null, 8,
|
|
846
|
-
], 8,
|
|
853
|
+
}, null, 8, bl)
|
|
854
|
+
], 8, yl)
|
|
847
855
|
]),
|
|
848
856
|
(n(!0), i(T, null, O(j.value, (a, o) => (n(), i("g", null, [
|
|
849
857
|
a.hasData ? (n(!0), i(T, { key: 0 }, O(a.donut.filter((t) => !t.ghost), (t, u) => (n(), i("g", null, [
|
|
@@ -853,8 +861,8 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
853
861
|
fill: t.color,
|
|
854
862
|
stroke: e.value.style.chart.backgroundColor,
|
|
855
863
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
856
|
-
filter:
|
|
857
|
-
}, null, 8,
|
|
864
|
+
filter: Ze(t, u)
|
|
865
|
+
}, null, 8, gl)
|
|
858
866
|
]))), 256)) : (n(!0), i(T, { key: 1 }, O(a.skeleton, (t, u) => (n(), i("g", null, [
|
|
859
867
|
g("path", {
|
|
860
868
|
class: "vue-ui-donut-arc-path",
|
|
@@ -862,48 +870,48 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
862
870
|
fill: t.color,
|
|
863
871
|
stroke: e.value.style.chart.backgroundColor,
|
|
864
872
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
865
|
-
}, null, 8,
|
|
873
|
+
}, null, 8, ml)
|
|
866
874
|
]))), 256))
|
|
867
875
|
]))), 256)),
|
|
868
|
-
e.value.style.chart.useGradient ? (n(), i("g",
|
|
869
|
-
(n(!0), i(T, null, O(
|
|
876
|
+
e.value.style.chart.useGradient ? (n(), i("g", wl, [
|
|
877
|
+
(n(!0), i(T, null, O(Ke.value, (a, o) => (n(), i("g", null, [
|
|
870
878
|
g("path", {
|
|
871
879
|
d: a.donut.arcSlice,
|
|
872
880
|
fill: `url(#radial_${y.value}_${o})`,
|
|
873
881
|
stroke: "transparent",
|
|
874
882
|
"stroke-width": "0"
|
|
875
|
-
}, null, 8,
|
|
883
|
+
}, null, 8, kl)
|
|
876
884
|
]))), 256))
|
|
877
885
|
])) : m("", !0),
|
|
878
|
-
e.value.style.chart.layout.labels.dataLabels.showDonutName ? (n(), i("g",
|
|
886
|
+
e.value.style.chart.layout.labels.dataLabels.showDonutName ? (n(), i("g", $l, [
|
|
879
887
|
(n(!0), i(T, null, O(j.value, (a, o) => (n(), i("g", null, [
|
|
880
888
|
(n(!0), i(T, null, O(a.donut, (t, u) => (n(), i("g", null, [
|
|
881
889
|
u === 0 && f.value.width && f.value.height ? (n(), i("text", {
|
|
882
890
|
key: 0,
|
|
883
|
-
class:
|
|
891
|
+
class: R({ animated: e.value.useCssAnimation }),
|
|
884
892
|
x: f.value.width / 2,
|
|
885
893
|
y: t.startY - e.value.style.chart.layout.labels.dataLabels.fontSize + e.value.style.chart.layout.labels.dataLabels.donutNameOffsetY,
|
|
886
894
|
"text-anchor": "middle",
|
|
887
895
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
888
896
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
|
|
889
897
|
fill: e.value.style.chart.layout.labels.dataLabels.color
|
|
890
|
-
}, I(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? r(
|
|
898
|
+
}, I(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? r(Jt)({
|
|
891
899
|
source: a.name,
|
|
892
900
|
length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
|
|
893
|
-
}) : a.name), 11,
|
|
901
|
+
}) : a.name), 11, Ll)) : m("", !0)
|
|
894
902
|
]))), 256))
|
|
895
903
|
]))), 256))
|
|
896
904
|
])) : m("", !0),
|
|
897
|
-
e.value.style.chart.layout.labels.dataLabels.show ? (n(), i("g",
|
|
905
|
+
e.value.style.chart.layout.labels.dataLabels.show ? (n(), i("g", xl, [
|
|
898
906
|
(n(!0), i(T, null, O(j.value, (a, o) => (n(), i("g", null, [
|
|
899
907
|
(n(!0), i(T, null, O(a.donut.filter((t) => !t.ghost), (t, u) => (n(), i("g", {
|
|
900
|
-
filter:
|
|
908
|
+
filter: Ze(t, u)
|
|
901
909
|
}, [
|
|
902
|
-
|
|
903
|
-
class:
|
|
910
|
+
rt(g("text", {
|
|
911
|
+
class: R({ animated: e.value.useCssAnimation }),
|
|
904
912
|
opacity: pe(t) ? 1 : 0,
|
|
905
|
-
"text-anchor": r(
|
|
906
|
-
x: r(
|
|
913
|
+
"text-anchor": r(H)(t, !0).anchor,
|
|
914
|
+
x: r(H)(
|
|
907
915
|
t,
|
|
908
916
|
!1,
|
|
909
917
|
e.value.style.chart.layout.labels.dataLabels.offsetX
|
|
@@ -920,17 +928,17 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
920
928
|
v: t.proportion * 100,
|
|
921
929
|
s: "%",
|
|
922
930
|
r: e.value.style.chart.layout.labels.dataLabels.roundingPercentage
|
|
923
|
-
})), 11,
|
|
931
|
+
})), 11, _l), [
|
|
924
932
|
[
|
|
925
|
-
|
|
933
|
+
it,
|
|
926
934
|
k.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage
|
|
927
935
|
]
|
|
928
936
|
]),
|
|
929
|
-
|
|
930
|
-
class:
|
|
937
|
+
rt(g("text", {
|
|
938
|
+
class: R({ animated: e.value.useCssAnimation }),
|
|
931
939
|
opacity: pe(t) ? 1 : 0,
|
|
932
|
-
"text-anchor": r(
|
|
933
|
-
x: r(
|
|
940
|
+
"text-anchor": r(H)(t, !0).anchor,
|
|
941
|
+
x: r(H)(
|
|
934
942
|
t,
|
|
935
943
|
!1,
|
|
936
944
|
e.value.style.chart.layout.labels.dataLabels.offsetX
|
|
@@ -953,17 +961,17 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
953
961
|
r: e.value.style.chart.layout.labels.dataLabels.roundingValue
|
|
954
962
|
}),
|
|
955
963
|
{ datapoint: t, seriesIndex: o, datapointIndex: u }
|
|
956
|
-
)) + ") ", 11,
|
|
964
|
+
)) + ") ", 11, Tl), [
|
|
957
965
|
[
|
|
958
|
-
|
|
966
|
+
it,
|
|
959
967
|
k.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue
|
|
960
968
|
]
|
|
961
969
|
]),
|
|
962
970
|
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", {
|
|
963
971
|
key: 0,
|
|
964
|
-
class:
|
|
965
|
-
"text-anchor": r(
|
|
966
|
-
x: r(
|
|
972
|
+
class: R({ animated: e.value.useCssAnimation }),
|
|
973
|
+
"text-anchor": r(H)(t, !0).anchor,
|
|
974
|
+
x: r(H)(
|
|
967
975
|
t,
|
|
968
976
|
!1,
|
|
969
977
|
e.value.style.chart.layout.labels.dataLabels.offsetX
|
|
@@ -986,32 +994,32 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
986
994
|
r: e.value.style.chart.layout.labels.dataLabels.roundingValue
|
|
987
995
|
}),
|
|
988
996
|
{ datapoint: t, seriesIndex: o, datapointIndex: u }
|
|
989
|
-
)), 11,
|
|
990
|
-
], 8,
|
|
997
|
+
)), 11, Ol)) : m("", !0)
|
|
998
|
+
], 8, Cl))), 256))
|
|
991
999
|
]))), 256))
|
|
992
1000
|
])) : m("", !0),
|
|
993
1001
|
(n(!0), i(T, null, O(j.value, (a, o) => (n(), i("g", null, [
|
|
994
1002
|
(n(!0), i(T, null, O(a.donut, (t, u) => (n(), i("g", null, [
|
|
995
1003
|
g("path", {
|
|
996
1004
|
d: t.arcSlice,
|
|
997
|
-
fill:
|
|
1005
|
+
fill: xt.value === o ? "rgba(0,0,0,0.1)" : "transparent",
|
|
998
1006
|
onMouseenter: (c) => Nt({
|
|
999
1007
|
datapoint: t,
|
|
1000
1008
|
seriesIndex: t.seriesIndex
|
|
1001
1009
|
}),
|
|
1002
1010
|
onClick: (c) => Ot({ datapoint: t, index: u }),
|
|
1003
1011
|
onMouseleave: s[0] || (s[0] = (c) => {
|
|
1004
|
-
re.value = !1,
|
|
1012
|
+
re.value = !1, Qe.value = null, ee.value = null, te.value = null;
|
|
1005
1013
|
})
|
|
1006
|
-
}, null, 40,
|
|
1014
|
+
}, null, 40, Fl)
|
|
1007
1015
|
]))), 256))
|
|
1008
1016
|
]))), 256)),
|
|
1009
1017
|
x(l.$slots, "svg", { svg: f.value }, void 0, !0)
|
|
1010
|
-
], 14,
|
|
1011
|
-
l.$slots.watermark ? (n(), i("div",
|
|
1012
|
-
x(l.$slots, "watermark",
|
|
1018
|
+
], 14, il)) : m("", !0),
|
|
1019
|
+
l.$slots.watermark ? (n(), i("div", Nl, [
|
|
1020
|
+
x(l.$slots, "watermark", X(W({ isPrinting: r(Be) || r(Ge) })), void 0, !0)
|
|
1013
1021
|
])) : m("", !0),
|
|
1014
|
-
Q.value ? m("", !0) : (n(),
|
|
1022
|
+
Q.value ? m("", !0) : (n(), B(r(wt), {
|
|
1015
1023
|
key: 6,
|
|
1016
1024
|
config: {
|
|
1017
1025
|
type: "donut",
|
|
@@ -1023,7 +1031,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
1023
1031
|
}
|
|
1024
1032
|
}
|
|
1025
1033
|
}, null, 8, ["config"])),
|
|
1026
|
-
|
|
1034
|
+
nt(r(kt), {
|
|
1027
1035
|
show: k.value.showTooltip && re.value,
|
|
1028
1036
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1029
1037
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -1034,16 +1042,16 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
1034
1042
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
1035
1043
|
position: e.value.style.chart.tooltip.position,
|
|
1036
1044
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1037
|
-
parent:
|
|
1045
|
+
parent: z.value,
|
|
1038
1046
|
content: ie.value,
|
|
1039
|
-
isFullscreen:
|
|
1040
|
-
isCustom: r(
|
|
1047
|
+
isFullscreen: G.value,
|
|
1048
|
+
isCustom: r(dt)(e.value.style.chart.tooltip.customFormat)
|
|
1041
1049
|
}, {
|
|
1042
1050
|
"tooltip-before": L(() => [
|
|
1043
|
-
x(l.$slots, "tooltip-before",
|
|
1051
|
+
x(l.$slots, "tooltip-before", X(W({ ...fe.value })), void 0, !0)
|
|
1044
1052
|
]),
|
|
1045
1053
|
"tooltip-after": L(() => [
|
|
1046
|
-
x(l.$slots, "tooltip-after",
|
|
1054
|
+
x(l.$slots, "tooltip-after", X(W({ ...fe.value })), void 0, !0)
|
|
1047
1055
|
]),
|
|
1048
1056
|
_: 3
|
|
1049
1057
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
@@ -1051,16 +1059,16 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
1051
1059
|
key: 7,
|
|
1052
1060
|
ref_key: "chartLegend",
|
|
1053
1061
|
ref: de,
|
|
1054
|
-
class:
|
|
1062
|
+
class: R({ "vue-ui-nested-donuts-legend": ye.value.length > 1 })
|
|
1055
1063
|
}, [
|
|
1056
|
-
(n(!0), i(T, null, O(ye.value, (a, o) => (n(),
|
|
1064
|
+
(n(!0), i(T, null, O(ye.value, (a, o) => (n(), B(sl, {
|
|
1057
1065
|
key: `legend_${o}_${Pe.value}`,
|
|
1058
1066
|
legendSet: a,
|
|
1059
1067
|
config: St.value,
|
|
1060
1068
|
onClickMarker: s[1] || (s[1] = ({ legend: t }) => he(t))
|
|
1061
1069
|
}, {
|
|
1062
1070
|
legendTitle: L(({ titleSet: t }) => [
|
|
1063
|
-
t[0] && t[0].arcOf ? (n(), i("div",
|
|
1071
|
+
t[0] && t[0].arcOf ? (n(), i("div", Sl, I(t[0].arcOf), 1)) : m("", !0)
|
|
1064
1072
|
]),
|
|
1065
1073
|
item: L(({ legend: t, index: u }) => [
|
|
1066
1074
|
g("div", {
|
|
@@ -1087,7 +1095,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
1087
1095
|
r: e.value.style.chart.legend.roundingPercentage
|
|
1088
1096
|
})) + ") ", 1)
|
|
1089
1097
|
], 64))
|
|
1090
|
-
], 12,
|
|
1098
|
+
], 12, Al)
|
|
1091
1099
|
]),
|
|
1092
1100
|
_: 2
|
|
1093
1101
|
}, 1032, ["legendSet", "config"]))), 128))
|
|
@@ -1107,7 +1115,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
1107
1115
|
}, [
|
|
1108
1116
|
x(l.$slots, "source", {}, void 0, !0)
|
|
1109
1117
|
], 512)) : m("", !0),
|
|
1110
|
-
Q.value ? (n(),
|
|
1118
|
+
Q.value ? (n(), B(r(yt), {
|
|
1111
1119
|
key: 10,
|
|
1112
1120
|
hideDetails: "",
|
|
1113
1121
|
config: {
|
|
@@ -1124,7 +1132,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
1124
1132
|
}
|
|
1125
1133
|
}, {
|
|
1126
1134
|
content: L(() => [
|
|
1127
|
-
(n(),
|
|
1135
|
+
(n(), B(r(bt), {
|
|
1128
1136
|
key: `table_${Ve.value}`,
|
|
1129
1137
|
colNames: le.value.colNames,
|
|
1130
1138
|
head: le.value.head,
|
|
@@ -1137,7 +1145,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
1137
1145
|
g("div", {
|
|
1138
1146
|
innerHTML: a,
|
|
1139
1147
|
style: { display: "flex", "align-items": "center" }
|
|
1140
|
-
}, null, 8,
|
|
1148
|
+
}, null, 8, Il)
|
|
1141
1149
|
]),
|
|
1142
1150
|
td: L(({ td: a }) => [
|
|
1143
1151
|
ne(I(a.name || a), 1)
|
|
@@ -1147,9 +1155,9 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
1147
1155
|
]),
|
|
1148
1156
|
_: 1
|
|
1149
1157
|
}, 8, ["config"])) : m("", !0)
|
|
1150
|
-
], 46,
|
|
1158
|
+
], 46, rl));
|
|
1151
1159
|
}
|
|
1152
|
-
},
|
|
1160
|
+
}, Wl = /* @__PURE__ */ nl(Vl, [["__scopeId", "data-v-6a801edc"]]);
|
|
1153
1161
|
export {
|
|
1154
|
-
|
|
1162
|
+
Wl as default
|
|
1155
1163
|
};
|