vue-data-ui 2.14.1 → 2.14.3-beta.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 +17 -0
- package/dist/{Arrow-HJLeHmf6.js → Arrow-DrUXalK1.js} +1 -1
- package/dist/{BaseDraggableDialog-DxqOerJ8.js → BaseDraggableDialog-BBiAE4t8.js} +2 -2
- package/dist/{BaseIcon-61ZYnf6Y.js → BaseIcon-avTvifnO.js} +1 -1
- package/dist/{ColorPicker-DiOZ0dIA.js → ColorPicker-BAOfnFRQ.js} +2 -2
- package/dist/{DataTable-CvEYBbuI.js → DataTable-D8n1mvaG.js} +2 -2
- package/dist/{Legend-ChpNJ_NF.js → Legend-Cpx0xSce.js} +4 -4
- package/dist/{NonSvgPenAndPaper-cf1P3kEq.js → NonSvgPenAndPaper-ClnGCm8G.js} +3 -3
- package/dist/{PackageVersion-CczS07-5.js → PackageVersion-Bwu7jdjH.js} +2 -2
- package/dist/{PenAndPaper-CqPrXvIl.js → PenAndPaper-BzQcbTCN.js} +3 -3
- package/dist/{Shape-Bdn11q8F.js → Shape-D65xhJAN.js} +1 -1
- package/dist/{Slicer-D9JY91SV.js → Slicer-DjwiDPEk.js} +14 -14
- package/dist/{SparkTooltip-B6ZYyu7F.js → SparkTooltip-B8nH7aKM.js} +1 -1
- package/dist/{Title-CjfBFzRf.js → Title-B71Dk29x.js} +1 -1
- package/dist/{Tooltip-BZpxnTbb.js → Tooltip-BuP-Tir7.js} +1 -1
- package/dist/{UserOptions-DVYwPBK2.js → UserOptions-fd2DeGS7.js} +2 -2
- package/dist/{dom-to-png-Dya0UERi.js → dom-to-png-D7idYX2d.js} +1 -1
- package/dist/{img-CuEOfq14.js → img-CSeVuPYh.js} +1 -1
- package/dist/{index-BgrDsHvy.js → index-BzH6XFI9.js} +413 -394
- package/dist/{pdf-D10HhJgy.js → pdf-ksl9rS7r.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +4 -0
- package/dist/types/vue-data-ui.d.ts +4 -0
- package/dist/{useNestedProp-Cw4jG3FY.js → useNestedProp-CKM2gCr5.js} +1 -1
- package/dist/{usePrinter-DzxhXGdR.js → usePrinter-C653sJjz.js} +2 -2
- package/dist/{vue-data-ui-CMV-krGM.js → vue-data-ui-DdffTqYM.js} +63 -63
- package/dist/vue-data-ui.js +21 -21
- package/dist/{vue-ui-3d-bar-CP4gDeA9.js → vue-ui-3d-bar-vdc7daf_.js} +5 -5
- package/dist/{vue-ui-accordion-m8te3vGO.js → vue-ui-accordion-Cjq4hqGi.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C8uZPTAY.js → vue-ui-age-pyramid-CMFgIKLE.js} +5 -5
- package/dist/{vue-ui-annotator-CiIkCJ6S.js → vue-ui-annotator-BvODcd7y.js} +2 -2
- package/dist/{vue-ui-bullet-D7GCFc-g.js → vue-ui-bullet-BX73-v3g.js} +6 -6
- package/dist/{vue-ui-candlestick-B8jQjSpc.js → vue-ui-candlestick-Ogvne-GG.js} +6 -6
- package/dist/{vue-ui-carousel-table-Cm4mh1bm.js → vue-ui-carousel-table-DXeRsoL_.js} +4 -4
- package/dist/{vue-ui-chestnut-xJx3qXST.js → vue-ui-chestnut-DXDQOgbn.js} +4 -4
- package/dist/{vue-ui-chord-DeMiI8ma.js → vue-ui-chord-CWStby-a.js} +7 -7
- package/dist/{vue-ui-circle-pack-CIYfy0qC.js → vue-ui-circle-pack-C4kdJPNJ.js} +5 -5
- package/dist/{vue-ui-cursor-D9Z3w8f_.js → vue-ui-cursor-Du4IVYWM.js} +2 -2
- package/dist/{vue-ui-dashboard-f6jQBHYW.js → vue-ui-dashboard-XpoAcLb4.js} +62 -62
- package/dist/{vue-ui-digits-BT16JoAt.js → vue-ui-digits-Ce_eR3L5.js} +2 -2
- package/dist/{vue-ui-donut-u7q9NrFK.js → vue-ui-donut-D6VPixUt.js} +188 -188
- package/dist/{vue-ui-donut-evolution-BCMm8STJ.js → vue-ui-donut-evolution-C3MA75pG.js} +309 -293
- package/dist/{vue-ui-dumbbell-CoopXtZe.js → vue-ui-dumbbell-CeQOb65i.js} +6 -6
- package/dist/{vue-ui-flow-BFgXTv_3.js → vue-ui-flow-D-_7gBhg.js} +26 -26
- package/dist/{vue-ui-funnel-DKgnIXPL.js → vue-ui-funnel-BsXNYzPK.js} +5 -5
- package/dist/{vue-ui-galaxy-Cq6YBbi_.js → vue-ui-galaxy--N2CYrWl.js} +4 -4
- package/dist/{vue-ui-gauge-D-vM39d0.js → vue-ui-gauge-DhKGlAJd.js} +5 -5
- package/dist/{vue-ui-gizmo-D3RZqfAG.js → vue-ui-gizmo-Bcwgwj-f.js} +3 -3
- package/dist/{vue-ui-heatmap-DPL8z3cI.js → vue-ui-heatmap-BlY7-ZUF.js} +6 -6
- package/dist/{vue-ui-history-plot-CSXwsNpD.js → vue-ui-history-plot-typzqDiw.js} +234 -210
- package/dist/{vue-ui-kpi-b8tHwa8_.js → vue-ui-kpi-Cj_96Iru.js} +3 -3
- package/dist/{vue-ui-mini-loader-CdY-ZkhQ.js → vue-ui-mini-loader-Dr42qu-K.js} +2 -2
- package/dist/{vue-ui-molecule-3h00FH5s.js → vue-ui-molecule-DfQCNRcr.js} +16 -16
- package/dist/{vue-ui-mood-radar-D33gSEOC.js → vue-ui-mood-radar-ChryER9p.js} +19 -19
- package/dist/{vue-ui-nested-donuts-B0A0vXtk.js → vue-ui-nested-donuts-CWm-A-co.js} +90 -90
- package/dist/{vue-ui-onion-a8_JDLyl.js → vue-ui-onion-Bb8s5St0.js} +6 -6
- package/dist/{vue-ui-parallel-coordinate-plot-1LlN6F0r.js → vue-ui-parallel-coordinate-plot-DcD53HSq.js} +188 -171
- package/dist/{vue-ui-quadrant-N0rhTZ5W.js → vue-ui-quadrant-CpuFmTG9.js} +243 -225
- package/dist/{vue-ui-quick-chart-Wv8KVB-d.js → vue-ui-quick-chart-BHO_J8Tc.js} +369 -353
- package/dist/{vue-ui-radar-CzniRpn-.js → vue-ui-radar-LsSH7YAg.js} +45 -45
- package/dist/{vue-ui-rating-Cf_RDtUI.js → vue-ui-rating-rcN8C68M.js} +8 -8
- package/dist/{vue-ui-relation-circle-Bo_-vb66.js → vue-ui-relation-circle-CmZ8rXwC.js} +5 -5
- package/dist/{vue-ui-ridgeline-DjU5kQwH.js → vue-ui-ridgeline-CpXWT3tk.js} +185 -165
- package/dist/{vue-ui-rings-CpOhLhDo.js → vue-ui-rings-x_HCzzIw.js} +7 -7
- package/dist/{vue-ui-scatter-Diq2Iio2.js → vue-ui-scatter-DNgUU2mO.js} +49 -49
- package/dist/{vue-ui-skeleton-B8Wzi4Hi.js → vue-ui-skeleton-qa5B2MES.js} +3 -3
- package/dist/{vue-ui-smiley-O2q3w9fQ.js → vue-ui-smiley-C0DEaxQK.js} +2 -2
- package/dist/{vue-ui-spark-trend-BTnR034D.js → vue-ui-spark-trend-DjctYLri.js} +3 -3
- package/dist/{vue-ui-sparkbar-B5SlfKQN.js → vue-ui-sparkbar-Un3CJINy.js} +3 -3
- package/dist/{vue-ui-sparkgauge-B_BVnGgV.js → vue-ui-sparkgauge-BascS5LC.js} +8 -8
- package/dist/{vue-ui-sparkhistogram-CowIuwbW.js → vue-ui-sparkhistogram-CZYnWAUW.js} +4 -4
- package/dist/{vue-ui-sparkline-Ogfd0FmW.js → vue-ui-sparkline-DyIDPpiz.js} +11 -11
- package/dist/{vue-ui-sparkstackbar-B5SnjytL.js → vue-ui-sparkstackbar-Ctz_OFbi.js} +3 -3
- package/dist/{vue-ui-stackbar-Co6Ly31u.js → vue-ui-stackbar-DqIv6O-t.js} +417 -373
- package/dist/{vue-ui-strip-plot-B-dKieOC.js → vue-ui-strip-plot-BAfdL6Ih.js} +202 -184
- package/dist/{vue-ui-table-DlM8IVJC.js → vue-ui-table-CCMkrVp7.js} +3 -3
- package/dist/{vue-ui-table-heatmap-C-G1Vr3i.js → vue-ui-table-heatmap--gO5Zuyp.js} +18 -18
- package/dist/{vue-ui-table-sparkline-Dh3m5rHW.js → vue-ui-table-sparkline-5HTiQPhC.js} +4 -4
- package/dist/{vue-ui-thermometer-COAiS2i7.js → vue-ui-thermometer-BbxNtsdP.js} +5 -5
- package/dist/{vue-ui-timer-Bnxo2caA.js → vue-ui-timer-DwUmt-Jo.js} +5 -5
- package/dist/{vue-ui-tiremarks-D1gy7-Uu.js → vue-ui-tiremarks-YyiGuluO.js} +5 -5
- package/dist/{vue-ui-treemap-_qyTaKiq.js → vue-ui-treemap-hHSyoGry.js} +7 -7
- package/dist/{vue-ui-vertical-bar-CKbzxqWL.js → vue-ui-vertical-bar-Bjyjarmi.js} +8 -8
- package/dist/{vue-ui-waffle-_IX54mhp.js → vue-ui-waffle-B3lfeeZs.js} +246 -242
- package/dist/{vue-ui-wheel-BT1vFZGN.js → vue-ui-wheel-DrVnxe3n.js} +5 -5
- package/dist/{vue-ui-word-cloud-B0ZKf-0k.js → vue-ui-word-cloud-CRFfYl4B.js} +15 -15
- package/dist/{vue-ui-world-CBDKYFwQ.js → vue-ui-world-BeVT9bsc.js} +5 -5
- package/dist/{vue-ui-xy-ChqEX06H.js → vue-ui-xy-B6LjQd7h.js} +591 -570
- package/dist/{vue-ui-xy-canvas-Dca_tr3r.js → vue-ui-xy-canvas-DviTudRz.js} +7 -7
- package/package.json +1 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { defineAsyncComponent as R, computed as k, ref as v, watch as et, onMounted as tt, nextTick as lt, shallowRef as at, onBeforeUnmount as zt, createElementBlock as i, openBlock as n, unref as r, normalizeStyle as se, normalizeClass as B, createBlock as E, createCommentVNode as g, createVNode as ot, createSlots as Mt, withCtx as L, renderSlot as x, normalizeProps as Y, guardReactiveProps as X, createElementVNode as m, Fragment as T, renderList as F, toDisplayString as N, withDirectives as st, vShow as ut, createTextVNode as ue } from "vue";
|
|
2
|
-
import { u as Rt, c as Bt, t as Et, p as Ce, a as Ut, H as D, o as Gt, e as H, b as Yt, d as Xt, m as nt, f as O, X as Ht, s as rt,
|
|
2
|
+
import { u as Rt, c as Bt, t as Et, p as Ce, a as Ut, H as D, o as Gt, e as H, b as Yt, d as Xt, m as nt, f as O, X as Ht, s as rt, L as Wt, k as _e, n as W, i as K, x as it, q as qt, r as Jt, y as Kt, T as dt } from "./index-BzH6XFI9.js";
|
|
3
3
|
import { t as Qt, u as Zt } from "./useResponsive-JZ9xq-JV.js";
|
|
4
|
-
import { u as ct } from "./useNestedProp-
|
|
5
|
-
import { u as jt } from "./usePrinter-
|
|
4
|
+
import { u as ct } from "./useNestedProp-CKM2gCr5.js";
|
|
5
|
+
import { u as jt } from "./usePrinter-C653sJjz.js";
|
|
6
6
|
import { u as el } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as tl } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import ll from "./Title-
|
|
9
|
-
import al from "./Legend-
|
|
8
|
+
import ll from "./Title-B71Dk29x.js";
|
|
9
|
+
import al from "./Legend-Cpx0xSce.js";
|
|
10
10
|
import { _ as ol } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
-
const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["id"], il = ["offset", "stop-color"], dl = ["offset", "stop-opacity"], cl = ["id"], vl = ["id"],
|
|
11
|
+
const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["id"], il = ["offset", "stop-color"], dl = ["offset", "stop-opacity"], cl = ["id"], vl = ["id"], hl = ["id"], fl = ["flood-color"], pl = ["d", "fill", "stroke", "stroke-width", "filter"], yl = { key: 1 }, bl = ["d", "fill"], gl = { key: 2 }, ml = ["x", "y", "font-size", "font-weight", "fill"], wl = { key: 3 }, $l = ["filter"], kl = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], Ll = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], xl = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], Cl = ["d", "fill", "onMouseenter", "onClick"], _l = {
|
|
12
12
|
key: 5,
|
|
13
13
|
class: "vue-data-ui-watermark"
|
|
14
14
|
}, Tl = {
|
|
15
15
|
key: 0,
|
|
16
16
|
class: "vue-ui-nested-donuts-legend-title"
|
|
17
|
-
}, Ol = ["onClick"], Fl = ["innerHTML"],
|
|
17
|
+
}, Ol = ["onClick"], Fl = ["innerHTML"], Al = {
|
|
18
18
|
__name: "vue-ui-nested-donuts",
|
|
19
19
|
props: {
|
|
20
20
|
config: {
|
|
@@ -31,8 +31,8 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
emits: ["selectLegend", "selectDatapoint"],
|
|
34
|
-
setup(vt, { expose:
|
|
35
|
-
const pt = R(() => import("./vue-ui-accordion-
|
|
34
|
+
setup(vt, { expose: ht, emit: ft }) {
|
|
35
|
+
const pt = R(() => import("./vue-ui-accordion-Cjq4hqGi.js")), yt = R(() => import("./DataTable-D8n1mvaG.js")), bt = R(() => import("./PackageVersion-Bwu7jdjH.js")), gt = R(() => import("./PenAndPaper-BzQcbTCN.js")), mt = R(() => import("./vue-ui-skeleton-qa5B2MES.js")), wt = R(() => import("./Tooltip-BuP-Tir7.js")), $t = R(() => import("./UserOptions-fd2DeGS7.js")), { vue_ui_nested_donuts: kt } = Rt(), C = vt, Q = k(() => !!C.dataset && C.dataset.length), y = v(Bt()), ne = v(!1), re = v(""), Lt = v(null), Te = v(0), q = v(null), Oe = v(null), ie = v(null), Fe = v(null), Ae = v(null), Se = v(0), Ie = v(0), Ne = v(0), z = v(!0), M = v([]), J = v([]), U = v(!1);
|
|
36
36
|
function xt(l) {
|
|
37
37
|
U.value = l, Te.value += 1;
|
|
38
38
|
}
|
|
@@ -58,7 +58,7 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
58
58
|
et(
|
|
59
59
|
() => C.config,
|
|
60
60
|
(l) => {
|
|
61
|
-
e.value = ze(), de.value = !e.value.userOptions.showOnChartHover, ce(),
|
|
61
|
+
e.value = ze(), de.value = !e.value.userOptions.showOnChartHover, ce(), Se.value += 1, Ie.value += 1, Ne.value += 1, $.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, $.value.showTable = e.value.table.show, $.value.showTooltip = e.value.style.chart.tooltip.show, h.value.width = e.value.style.chart.width, h.value.height = e.value.style.chart.height;
|
|
62
62
|
},
|
|
63
63
|
{ deep: !0 }
|
|
64
64
|
);
|
|
@@ -75,14 +75,14 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
75
75
|
function Ct(l, s = 1e3, a = 50) {
|
|
76
76
|
return new Promise((o) => {
|
|
77
77
|
const t = l.length;
|
|
78
|
-
M.value = Array(t).fill(0),
|
|
78
|
+
M.value = Array(t).fill(0), J.value = [];
|
|
79
79
|
let u = 0;
|
|
80
|
-
l.forEach((c,
|
|
80
|
+
l.forEach((c, f) => {
|
|
81
81
|
setTimeout(() => {
|
|
82
82
|
const I = performance.now();
|
|
83
83
|
function d(p) {
|
|
84
84
|
const _ = Math.min((p - I) / s, 1), ge = dt(_), me = c * ge;
|
|
85
|
-
M.value[
|
|
85
|
+
M.value[f] = me, M.value = [...M.value];
|
|
86
86
|
const ae = [];
|
|
87
87
|
let we = 0;
|
|
88
88
|
C.dataset.forEach((oe, $e) => {
|
|
@@ -103,10 +103,10 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
103
103
|
absoluteValues: [],
|
|
104
104
|
ghost: !0
|
|
105
105
|
}), we += oe.series.length;
|
|
106
|
-
}),
|
|
106
|
+
}), J.value = ae, _ < 1 ? requestAnimationFrame(d) : (u += 1, u === t && o());
|
|
107
107
|
}
|
|
108
108
|
requestAnimationFrame(d);
|
|
109
|
-
},
|
|
109
|
+
}, f * a);
|
|
110
110
|
});
|
|
111
111
|
});
|
|
112
112
|
}
|
|
@@ -115,9 +115,9 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
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
|
-
M.value = s.map(() => 0), z.value = !0,
|
|
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, c) => u + D(c.values).reduce((
|
|
120
|
+
(u, c) => u + D(c.values).reduce((f, I) => f + I, 0),
|
|
121
121
|
0
|
|
122
122
|
);
|
|
123
123
|
return {
|
|
@@ -138,7 +138,7 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
138
138
|
e.value.startAnimation.durationMs,
|
|
139
139
|
e.value.startAnimation.staggerMs
|
|
140
140
|
).then(() => {
|
|
141
|
-
z.value = !1,
|
|
141
|
+
z.value = !1, J.value = [];
|
|
142
142
|
});
|
|
143
143
|
} else
|
|
144
144
|
z.value = !1;
|
|
@@ -158,11 +158,11 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
158
158
|
title: e.value.style.chart.title.text ? Oe.value : null,
|
|
159
159
|
legend: e.value.style.chart.legend.show ? ie.value : null,
|
|
160
160
|
source: Fe.value,
|
|
161
|
-
noTitle:
|
|
161
|
+
noTitle: Ae.value,
|
|
162
162
|
padding: Me.value
|
|
163
163
|
});
|
|
164
164
|
requestAnimationFrame(() => {
|
|
165
|
-
|
|
165
|
+
h.value.width = s, h.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);
|
|
@@ -181,10 +181,10 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
181
181
|
},
|
|
182
182
|
showTable: e.value.table.show,
|
|
183
183
|
showTooltip: e.value.style.chart.tooltip.show
|
|
184
|
-
}),
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
}), Ge =
|
|
184
|
+
}), h = v({
|
|
185
|
+
width: e.value.style.chart.width,
|
|
186
|
+
height: e.value.style.chart.height
|
|
187
|
+
}), Ge = ft;
|
|
188
188
|
function Ot({ datapoint: l, index: s }) {
|
|
189
189
|
Ge("selectDatapoint", { datapoint: l, index: s });
|
|
190
190
|
}
|
|
@@ -197,13 +197,13 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
197
197
|
easing: u = dt
|
|
198
198
|
}) {
|
|
199
199
|
const c = performance.now();
|
|
200
|
-
function
|
|
200
|
+
function f(I) {
|
|
201
201
|
const d = Math.min((I - c) / a, 1), p = u(d), _ = l + (s - l) * p;
|
|
202
|
-
o(_, d), d < 1 ? requestAnimationFrame(
|
|
202
|
+
o(_, d), d < 1 ? requestAnimationFrame(f) : (o(s, 1), t && t());
|
|
203
203
|
}
|
|
204
|
-
requestAnimationFrame(
|
|
204
|
+
requestAnimationFrame(f);
|
|
205
205
|
}
|
|
206
|
-
const w = v([]),
|
|
206
|
+
const w = v([]), A = k(() => {
|
|
207
207
|
C.dataset.forEach((s, a) => {
|
|
208
208
|
[null, void 0].includes(s.name) && H({
|
|
209
209
|
componentName: "VueUiNestedDonuts",
|
|
@@ -242,7 +242,7 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["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((c,
|
|
245
|
+
const u = D(o.values).reduce((c, f) => c + f, 0);
|
|
246
246
|
return {
|
|
247
247
|
name: o.name,
|
|
248
248
|
arcOf: s.name,
|
|
@@ -256,7 +256,7 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
256
256
|
};
|
|
257
257
|
})
|
|
258
258
|
}));
|
|
259
|
-
}),
|
|
259
|
+
}), S = k(() => Math.min(h.value.height, h.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)), Xe = k(() => [...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,
|
|
@@ -288,15 +288,15 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
288
288
|
}))
|
|
289
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 c =
|
|
293
|
+
const c = A.value.find(
|
|
294
294
|
(d) => d.id === s.arcOfId
|
|
295
295
|
);
|
|
296
296
|
if (!c) return;
|
|
297
|
-
const
|
|
298
|
-
|
|
299
|
-
|
|
297
|
+
const f = c.series.map((d) => d.id), I = Ft(
|
|
298
|
+
f,
|
|
299
|
+
f.length - 1,
|
|
300
300
|
w.value
|
|
301
301
|
);
|
|
302
302
|
w.value.includes(l.id) ? (w.value = w.value.filter((d) => d !== l.id), e.value.serieToggleAnimation.show ? Ye({
|
|
@@ -330,8 +330,8 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
330
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 =
|
|
333
|
+
const he = k(() => S.value / A.value.length * e.value.style.chart.layout.donut.spacingRatio), He = k(() => b.value.map((l, s) => S.value - s * S.value / A.value.length)), Z = k(() => b.value.map((l, s) => {
|
|
334
|
+
const a = S.value - s * S.value / b.value.length, o = z.value ? J.value.find((u) => u.datasetIndex === s) : null, t = [...l.series, ...o ? [o] : []].map((u) => ({
|
|
335
335
|
...u,
|
|
336
336
|
value: u.value < 1e-3 ? 1e-3 : u.value
|
|
337
337
|
}));
|
|
@@ -340,8 +340,8 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
340
340
|
radius: a,
|
|
341
341
|
donut: nt(
|
|
342
342
|
{ series: t },
|
|
343
|
-
|
|
344
|
-
|
|
343
|
+
h.value.width / 2,
|
|
344
|
+
h.value.height / 2,
|
|
345
345
|
a,
|
|
346
346
|
a,
|
|
347
347
|
1.99999,
|
|
@@ -349,37 +349,37 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
349
349
|
1,
|
|
350
350
|
360,
|
|
351
351
|
105.25,
|
|
352
|
-
|
|
352
|
+
he.value
|
|
353
353
|
)
|
|
354
354
|
};
|
|
355
|
-
})), We = k(() => [...
|
|
356
|
-
const a = s *
|
|
355
|
+
})), We = k(() => [...A.value].map((l, s) => {
|
|
356
|
+
const a = s * S.value / A.value.length;
|
|
357
357
|
return {
|
|
358
358
|
sizeRatio: a,
|
|
359
359
|
donut: nt(
|
|
360
360
|
{ series: [{ value: 1 }] },
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
361
|
+
h.value.width / 2,
|
|
362
|
+
h.value.height / 2,
|
|
363
|
+
S.value - a,
|
|
364
|
+
S.value - a,
|
|
365
365
|
1.99999,
|
|
366
366
|
2,
|
|
367
367
|
1,
|
|
368
368
|
360,
|
|
369
369
|
105.25,
|
|
370
|
-
|
|
370
|
+
S.value / A.value.length * e.value.style.chart.layout.donut.spacingRatio
|
|
371
371
|
)[0]
|
|
372
372
|
};
|
|
373
|
-
})), qe = v(null), j = v(null), ee = v(null),
|
|
374
|
-
function
|
|
375
|
-
qe.value = l.arcOfId, j.value = l.id, ee.value = a,
|
|
373
|
+
})), qe = v(null), j = v(null), ee = v(null), fe = v(null);
|
|
374
|
+
function At({ datapoint: l, _relativeIndex: s, seriesIndex: a }) {
|
|
375
|
+
qe.value = l.arcOfId, j.value = l.id, ee.value = a, fe.value = {
|
|
376
376
|
datapoint: l,
|
|
377
377
|
seriesIndex: a,
|
|
378
378
|
series: b.value,
|
|
379
379
|
config: e.value
|
|
380
380
|
};
|
|
381
381
|
const o = e.value.style.chart.tooltip.customFormat;
|
|
382
|
-
if (it(o) &&
|
|
382
|
+
if (it(o) && Kt(
|
|
383
383
|
() => o({
|
|
384
384
|
seriesIndex: a,
|
|
385
385
|
datapoint: l,
|
|
@@ -396,11 +396,11 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
396
396
|
else {
|
|
397
397
|
let t = "";
|
|
398
398
|
if (e.value.style.chart.tooltip.showAllItemsAtIndex && w.value.length === 0) {
|
|
399
|
-
const u = b.value.map((c) => c.series.find((
|
|
400
|
-
u.forEach((c,
|
|
399
|
+
const u = b.value.map((c) => c.series.find((f) => f.seriesIndex === a));
|
|
400
|
+
u.forEach((c, f) => {
|
|
401
401
|
if (!c) return "";
|
|
402
402
|
t += `
|
|
403
|
-
<div style="display:flex; flex-direction: column; justify-content:flex-start; align-items:flex-start;padding:6px 0; ${
|
|
403
|
+
<div style="display:flex; flex-direction: column; justify-content:flex-start; align-items:flex-start;padding:6px 0; ${f < u.length - 1 ? `border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor}` : ""}">
|
|
404
404
|
<div style="display:flex; flex-direction: row; gap: 3px; justify-content:flex-start; align-items:center;">
|
|
405
405
|
<svg viewBox="0 0 20 20" height="${e.value.style.chart.tooltip.fontSize}" width="${e.value.style.chart.tooltip.fontSize}">
|
|
406
406
|
<circle cx="10" cy="10" r="10" fill="${c.color}"/>
|
|
@@ -410,7 +410,7 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
410
410
|
</span>
|
|
411
411
|
</div>
|
|
412
412
|
<span>
|
|
413
|
-
${e.value.style.chart.tooltip.showValue ? `<b>${
|
|
413
|
+
${e.value.style.chart.tooltip.showValue ? `<b>${K(
|
|
414
414
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
415
415
|
l.value,
|
|
416
416
|
O({
|
|
@@ -432,7 +432,7 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
432
432
|
`;
|
|
433
433
|
});
|
|
434
434
|
} else
|
|
435
|
-
t += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.arcOf ?? ""} - ${l.name}</div>`, t += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${l.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (t += `<b>${
|
|
435
|
+
t += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.arcOf ?? ""} - ${l.name}</div>`, t += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${l.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (t += `<b>${K(
|
|
436
436
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
437
437
|
l.value,
|
|
438
438
|
O({
|
|
@@ -458,7 +458,7 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
458
458
|
function pe(l) {
|
|
459
459
|
return l.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
460
460
|
}
|
|
461
|
-
function
|
|
461
|
+
function Je(l, s) {
|
|
462
462
|
if (!e.value.useBlurOnHover)
|
|
463
463
|
return "";
|
|
464
464
|
if (e.value.style.chart.tooltip.showAllItemsAtIndex && w.value.length === 0)
|
|
@@ -466,7 +466,7 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
466
466
|
if (!e.value.style.chart.tooltip.showAllItemsAtIndex || w.value.length)
|
|
467
467
|
return [null, void 0].includes(j.value) || j.value === l.id ? "" : `url(#blur_${y.value})`;
|
|
468
468
|
}
|
|
469
|
-
const ye = k(() =>
|
|
469
|
+
const ye = k(() => A.value.map((l, s) => {
|
|
470
470
|
const a = l.series.filter(
|
|
471
471
|
(t) => !w.value.includes(t.id)
|
|
472
472
|
), o = z.value ? a.map((t) => {
|
|
@@ -475,17 +475,17 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
475
475
|
);
|
|
476
476
|
return D(
|
|
477
477
|
C.dataset[s].series[u].values
|
|
478
|
-
).reduce((c,
|
|
478
|
+
).reduce((c, f) => c + f, 0);
|
|
479
479
|
}).reduce((t, u) => t + u, 0) : a.map((t) => t.value).reduce((t, u) => t + u, 0);
|
|
480
480
|
return l.series.map((t, u) => {
|
|
481
481
|
const c = D(C.dataset[s].series[u].values).reduce(
|
|
482
482
|
(I, d) => I + d,
|
|
483
483
|
0
|
|
484
|
-
),
|
|
484
|
+
), f = z.value ? c : t.value;
|
|
485
485
|
return {
|
|
486
486
|
name: t.name,
|
|
487
487
|
color: t.color,
|
|
488
|
-
value:
|
|
488
|
+
value: f,
|
|
489
489
|
shape: "circle",
|
|
490
490
|
arcOf: t.arcOf,
|
|
491
491
|
id: t.id,
|
|
@@ -497,7 +497,7 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
497
497
|
isSegregated: w.value.includes(t.id)
|
|
498
498
|
};
|
|
499
499
|
});
|
|
500
|
-
})),
|
|
500
|
+
})), St = k(() => ({
|
|
501
501
|
cy: "nested-donuts-legend",
|
|
502
502
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
503
503
|
color: e.value.style.chart.legend.color,
|
|
@@ -512,7 +512,7 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
512
512
|
}))), s = b.value.flatMap((a) => a.series.map((o) => o.value));
|
|
513
513
|
return { head: l, body: s };
|
|
514
514
|
});
|
|
515
|
-
function
|
|
515
|
+
function Ke(l = null) {
|
|
516
516
|
lt(() => {
|
|
517
517
|
const s = P.value.head.map((t, u) => [
|
|
518
518
|
[t.name],
|
|
@@ -525,7 +525,7 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
525
525
|
[e.value.style.chart.title.subtitle.text],
|
|
526
526
|
[[""], ["val"], ["%"]]
|
|
527
527
|
].concat(s), o = qt(a);
|
|
528
|
-
l ? l(o) :
|
|
528
|
+
l ? l(o) : Jt({
|
|
529
529
|
csvContent: o,
|
|
530
530
|
title: e.value.style.chart.title.text || "vue-ui-nested-donuts"
|
|
531
531
|
});
|
|
@@ -580,7 +580,7 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
580
580
|
};
|
|
581
581
|
});
|
|
582
582
|
function It() {
|
|
583
|
-
return
|
|
583
|
+
return A.value;
|
|
584
584
|
}
|
|
585
585
|
function Qe() {
|
|
586
586
|
$.value.showTable = !$.value.showTable;
|
|
@@ -595,10 +595,10 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
595
595
|
function be() {
|
|
596
596
|
le.value = !le.value;
|
|
597
597
|
}
|
|
598
|
-
return
|
|
598
|
+
return ht({
|
|
599
599
|
getData: It,
|
|
600
600
|
generatePdf: Ee,
|
|
601
|
-
generateCsv:
|
|
601
|
+
generateCsv: Ke,
|
|
602
602
|
generateImage: Ue,
|
|
603
603
|
toggleTable: Qe,
|
|
604
604
|
toggleLabels: Ze,
|
|
@@ -624,7 +624,7 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
624
624
|
_t.value ? (n(), i("div", {
|
|
625
625
|
key: 1,
|
|
626
626
|
ref_key: "noTitle",
|
|
627
|
-
ref:
|
|
627
|
+
ref: Ae,
|
|
628
628
|
class: "vue-data-ui-no-title-space",
|
|
629
629
|
style: "height:36px; width: 100%;background:transparent"
|
|
630
630
|
}, null, 512)) : g("", !0),
|
|
@@ -634,7 +634,7 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
634
634
|
ref: Oe
|
|
635
635
|
}, [
|
|
636
636
|
(n(), E(ll, {
|
|
637
|
-
key: `title_${
|
|
637
|
+
key: `title_${Se.value}`,
|
|
638
638
|
config: {
|
|
639
639
|
title: {
|
|
640
640
|
cy: "donut-div-title",
|
|
@@ -672,7 +672,7 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
672
672
|
callbacks: e.value.userOptions.callbacks,
|
|
673
673
|
onToggleFullscreen: xt,
|
|
674
674
|
onGeneratePdf: r(Ee),
|
|
675
|
-
onGenerateCsv:
|
|
675
|
+
onGenerateCsv: Ke,
|
|
676
676
|
onGenerateImage: r(Ue),
|
|
677
677
|
onToggleTable: Qe,
|
|
678
678
|
onToggleLabels: Ze,
|
|
@@ -755,7 +755,7 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
755
755
|
"vue-data-ui-fullscreen--on": U.value,
|
|
756
756
|
"vue-data-ui-fulscreen--off": !U.value
|
|
757
757
|
}),
|
|
758
|
-
viewBox: `0 0 ${
|
|
758
|
+
viewBox: `0 0 ${h.value.width <= 0 ? 1e-3 : h.value.width} ${h.value.height < 0 ? 1e-3 : h.value.height}`,
|
|
759
759
|
style: se(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${Me.value.css}`)
|
|
760
760
|
}, [
|
|
761
761
|
ot(r(bt)),
|
|
@@ -763,8 +763,8 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
763
763
|
key: 0,
|
|
764
764
|
x: 0,
|
|
765
765
|
y: 0,
|
|
766
|
-
width:
|
|
767
|
-
height:
|
|
766
|
+
width: h.value.width <= 0 ? 1e-3 : h.value.width,
|
|
767
|
+
height: h.value.height < 0 ? 1e-3 : h.value.height,
|
|
768
768
|
style: {
|
|
769
769
|
pointerEvents: "none"
|
|
770
770
|
}
|
|
@@ -781,12 +781,12 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
781
781
|
"stop-opacity": "0"
|
|
782
782
|
}, null, -1)),
|
|
783
783
|
m("stop", {
|
|
784
|
-
offset: `${(1 -
|
|
784
|
+
offset: `${(1 - he.value / He.value[o]) * 100}%`,
|
|
785
785
|
"stop-color": r(rt)("#FFFFFF", 0),
|
|
786
786
|
"stop-opacity": "0"
|
|
787
787
|
}, null, 8, il),
|
|
788
788
|
m("stop", {
|
|
789
|
-
offset: `${(1 -
|
|
789
|
+
offset: `${(1 - he.value / He.value[o] / 2) * 100}%`,
|
|
790
790
|
"stop-color": "#FFFFFF",
|
|
791
791
|
"stop-opacity": e.value.style.chart.gradientIntensity / 100
|
|
792
792
|
}, null, 8, dl),
|
|
@@ -825,8 +825,8 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
825
825
|
stdDeviation: "10",
|
|
826
826
|
"flood-opacity": "0.5",
|
|
827
827
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
828
|
-
}, null, 8,
|
|
829
|
-
], 8,
|
|
828
|
+
}, null, 8, fl)
|
|
829
|
+
], 8, hl)
|
|
830
830
|
]),
|
|
831
831
|
(n(!0), i(T, null, F(Z.value, (a, o) => (n(), i("g", null, [
|
|
832
832
|
(n(!0), i(T, null, F(a.donut.filter((t) => !t.ghost), (t, u) => (n(), i("g", null, [
|
|
@@ -836,7 +836,7 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
836
836
|
fill: r(rt)(t.color, 80),
|
|
837
837
|
stroke: e.value.style.chart.backgroundColor,
|
|
838
838
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
839
|
-
filter:
|
|
839
|
+
filter: Je(t, u)
|
|
840
840
|
}, null, 8, pl)
|
|
841
841
|
]))), 256))
|
|
842
842
|
]))), 256)),
|
|
@@ -853,10 +853,10 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
853
853
|
e.value.style.chart.layout.labels.dataLabels.showDonutName ? (n(), i("g", gl, [
|
|
854
854
|
(n(!0), i(T, null, F(Z.value, (a, o) => (n(), i("g", null, [
|
|
855
855
|
(n(!0), i(T, null, F(a.donut, (t, u) => (n(), i("g", null, [
|
|
856
|
-
u === 0 &&
|
|
856
|
+
u === 0 && h.value.width && h.value.height ? (n(), i("text", {
|
|
857
857
|
key: 0,
|
|
858
858
|
class: B({ animated: e.value.useCssAnimation }),
|
|
859
|
-
x:
|
|
859
|
+
x: h.value.width / 2,
|
|
860
860
|
y: t.startY - e.value.style.chart.layout.labels.dataLabels.fontSize + e.value.style.chart.layout.labels.dataLabels.donutNameOffsetY,
|
|
861
861
|
"text-anchor": "middle",
|
|
862
862
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
@@ -872,7 +872,7 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
872
872
|
e.value.style.chart.layout.labels.dataLabels.show ? (n(), i("g", wl, [
|
|
873
873
|
(n(!0), i(T, null, F(Z.value, (a, o) => (n(), i("g", null, [
|
|
874
874
|
(n(!0), i(T, null, F(a.donut.filter((t) => !t.ghost), (t, u) => (n(), i("g", {
|
|
875
|
-
filter:
|
|
875
|
+
filter: Je(t, u)
|
|
876
876
|
}, [
|
|
877
877
|
st(m("text", {
|
|
878
878
|
class: B({ animated: e.value.useCssAnimation }),
|
|
@@ -918,7 +918,7 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
918
918
|
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
919
919
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
920
920
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
|
|
921
|
-
}, " (" + N(r(
|
|
921
|
+
}, " (" + N(r(K)(
|
|
922
922
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
923
923
|
t.value,
|
|
924
924
|
r(O)({
|
|
@@ -951,7 +951,7 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
951
951
|
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
952
952
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
953
953
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
|
|
954
|
-
}, N(r(
|
|
954
|
+
}, N(r(K)(
|
|
955
955
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
956
956
|
t.value,
|
|
957
957
|
r(O)({
|
|
@@ -970,7 +970,7 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
970
970
|
m("path", {
|
|
971
971
|
d: t.arcSlice,
|
|
972
972
|
fill: Lt.value === o ? "rgba(0,0,0,0.1)" : "transparent",
|
|
973
|
-
onMouseenter: (c) =>
|
|
973
|
+
onMouseenter: (c) => At({
|
|
974
974
|
datapoint: t,
|
|
975
975
|
seriesIndex: t.seriesIndex
|
|
976
976
|
}),
|
|
@@ -981,7 +981,7 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
981
981
|
}, null, 40, Cl)
|
|
982
982
|
]))), 256))
|
|
983
983
|
]))), 256)),
|
|
984
|
-
x(l.$slots, "svg", { svg:
|
|
984
|
+
x(l.$slots, "svg", { svg: h.value }, void 0, !0)
|
|
985
985
|
], 14, ul)) : g("", !0),
|
|
986
986
|
l.$slots.watermark ? (n(), i("div", _l, [
|
|
987
987
|
x(l.$slots, "watermark", Y(X({ isPrinting: r(Re) || r(Be) })), void 0, !0)
|
|
@@ -1015,10 +1015,10 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
1015
1015
|
isCustom: r(it)(e.value.style.chart.tooltip.customFormat)
|
|
1016
1016
|
}, {
|
|
1017
1017
|
"tooltip-before": L(() => [
|
|
1018
|
-
x(l.$slots, "tooltip-before", Y(X({ ...
|
|
1018
|
+
x(l.$slots, "tooltip-before", Y(X({ ...fe.value })), void 0, !0)
|
|
1019
1019
|
]),
|
|
1020
1020
|
"tooltip-after": L(() => [
|
|
1021
|
-
x(l.$slots, "tooltip-after", Y(X({ ...
|
|
1021
|
+
x(l.$slots, "tooltip-after", Y(X({ ...fe.value })), void 0, !0)
|
|
1022
1022
|
]),
|
|
1023
1023
|
_: 3
|
|
1024
1024
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
@@ -1031,7 +1031,7 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
1031
1031
|
(n(!0), i(T, null, F(ye.value, (a, o) => (n(), E(al, {
|
|
1032
1032
|
key: `legend_${o}_${Ne.value}`,
|
|
1033
1033
|
legendSet: a,
|
|
1034
|
-
config:
|
|
1034
|
+
config: St.value,
|
|
1035
1035
|
onClickMarker: s[1] || (s[1] = ({ legend: t }) => ve(t))
|
|
1036
1036
|
}, {
|
|
1037
1037
|
legendTitle: L(({ titleSet: t }) => [
|
|
@@ -1042,7 +1042,7 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
1042
1042
|
onClick: (c) => ve(t),
|
|
1043
1043
|
style: se(`opacity:${w.value.includes(t.id) ? 0.5 : 1}`)
|
|
1044
1044
|
}, [
|
|
1045
|
-
ue(N(t.name) + ": " + N(r(
|
|
1045
|
+
ue(N(t.name) + ": " + N(r(K)(
|
|
1046
1046
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
1047
1047
|
t.value,
|
|
1048
1048
|
r(O)({
|
|
@@ -1124,7 +1124,7 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
|
|
|
1124
1124
|
}, 8, ["config"])) : g("", !0)
|
|
1125
1125
|
], 46, sl));
|
|
1126
1126
|
}
|
|
1127
|
-
}, El = /* @__PURE__ */ ol(
|
|
1127
|
+
}, El = /* @__PURE__ */ ol(Al, [["__scopeId", "data-v-01b7bea5"]]);
|
|
1128
1128
|
export {
|
|
1129
1129
|
El as default
|
|
1130
1130
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineAsyncComponent as T, computed as h, ref as u, watch as Ce, shallowRef as xe, onMounted as Ze, onBeforeUnmount as et, createElementBlock as i, openBlock as s, unref as r, normalizeStyle as U, normalizeClass as G, createBlock as O, createCommentVNode as g, createElementVNode as I, createVNode as Te, createSlots as tt, withCtx as f, renderSlot as v, normalizeProps as S, guardReactiveProps as F, Fragment as D, renderList as L, toDisplayString as M, createTextVNode as at, nextTick as lt } from "vue";
|
|
2
|
-
import { u as ot, c as nt, t as st, p as Oe, a as rt, b as ut, o as it, e as Z, d as ct, X as vt, f as V, i as ee, x as Pe, q as dt, r as ht, y as ft } from "./index-
|
|
2
|
+
import { u as ot, c as nt, t as st, p as Oe, a as rt, b as ut, o as it, e as Z, d as ct, X as vt, f as V, i as ee, x as Pe, q as dt, r as ht, y as ft } from "./index-BzH6XFI9.js";
|
|
3
3
|
import { t as gt, u as pt } from "./useResponsive-JZ9xq-JV.js";
|
|
4
|
-
import { u as _e } from "./useNestedProp-
|
|
5
|
-
import { u as yt } from "./usePrinter-
|
|
4
|
+
import { u as _e } from "./useNestedProp-CKM2gCr5.js";
|
|
5
|
+
import { u as yt } from "./usePrinter-C653sJjz.js";
|
|
6
6
|
import { u as mt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as bt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import kt from "./Title-
|
|
9
|
-
import wt from "./Legend-
|
|
8
|
+
import kt from "./Title-B71Dk29x.js";
|
|
9
|
+
import wt from "./Legend-Cpx0xSce.js";
|
|
10
10
|
import { _ as $t } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
11
|
const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Pt = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], _t = ["id"], At = ["stdDeviation"], It = ["filter"], St = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Ft = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "onMouseenter"], Mt = { key: 2 }, Rt = ["onMouseenter"], Nt = ["x", "y", "font-size", "fill", "font-weight"], Dt = {
|
|
12
12
|
key: 5,
|
|
@@ -29,7 +29,7 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
|
|
|
29
29
|
},
|
|
30
30
|
emits: ["selectLegend"],
|
|
31
31
|
setup(Ae, { expose: Ie, emit: Se }) {
|
|
32
|
-
const Fe = T(() => import("./vue-ui-accordion-
|
|
32
|
+
const Fe = T(() => import("./vue-ui-accordion-Cjq4hqGi.js")), Me = T(() => import("./DataTable-D8n1mvaG.js")), Re = T(() => import("./PackageVersion-Bwu7jdjH.js")), Ne = T(() => import("./PenAndPaper-BzQcbTCN.js")), De = T(() => import("./vue-ui-skeleton-qa5B2MES.js")), Le = T(() => import("./Tooltip-BuP-Tir7.js")), Ve = T(() => import("./UserOptions-fd2DeGS7.js")), { vue_ui_onion: ze } = ot(), w = Ae, z = h(() => !!w.dataset && w.dataset.length), P = u(nt()), Ye = u(null), te = u(0), Y = u(!1), E = u(""), y = u([]), R = u(null), ae = u(null), le = u(null), oe = u(null), ne = u(null), se = u(0), re = u(0), ue = u(0), e = h({
|
|
33
33
|
get: () => de(),
|
|
34
34
|
set: (t) => t
|
|
35
35
|
}), { userOptionsVisible: H, setUserOptionsVisibility: ie, keepUserOptionState: ce } = mt({ config: e.value }), { svgRef: ve } = bt({ config: e.value.style.chart.title });
|