vue-data-ui 3.9.13 → 3.9.15
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/{PackageVersion-D3cMhAlf.js → PackageVersion-BLzm8l_I.js} +1 -1
- package/dist/{Title-BhURirpm.js → Title-DGnfNZuO.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +27 -0
- package/dist/{useNestedProp--5lL-kf1.js → useNestedProp-OFRiX4kU.js} +109 -98
- package/dist/{vue-data-ui-DE3O1T8n.js → vue-data-ui-DLBPk_qz.js} +66 -66
- package/dist/vue-data-ui.js +68 -68
- package/dist/{vue-ui-3d-bar-CVvhPzdH.js → vue-ui-3d-bar-B3kUXUiU.js} +3 -3
- package/dist/{vue-ui-accordion-tQNKwbVi.js → vue-ui-accordion-DUuwVsuJ.js} +1 -1
- package/dist/{vue-ui-age-pyramid-DxTHqM7w.js → vue-ui-age-pyramid-ByKj9osZ.js} +3 -3
- package/dist/{vue-ui-annotator-Da5aL57a.js → vue-ui-annotator-BZuXK7ov.js} +2 -2
- package/dist/{vue-ui-bullet-DhpTML7L.js → vue-ui-bullet-DcFBb0YG.js} +3 -3
- package/dist/{vue-ui-candlestick-BDOKQqMm.js → vue-ui-candlestick-B0rV5Vhv.js} +3 -3
- package/dist/{vue-ui-carousel-table-BW6bKPsX.js → vue-ui-carousel-table-CKRr0PUC.js} +2 -2
- package/dist/{vue-ui-chestnut-Cc-lke6P.js → vue-ui-chestnut-CsTwZfmt.js} +2 -2
- package/dist/{vue-ui-chord-CB6w31Ex.js → vue-ui-chord-Ci7wdPU5.js} +3 -3
- package/dist/{vue-ui-circle-pack-CfihOmNV.js → vue-ui-circle-pack-CosGMpWi.js} +3 -3
- package/dist/{vue-ui-cursor-Dnpe76BQ.js → vue-ui-cursor-Druq_LcL.js} +2 -2
- package/dist/{vue-ui-dag-Dq3hKon7.js → vue-ui-dag-TkXJQIwo.js} +3 -3
- package/dist/{vue-ui-dashboard-eMwyGsuD.js → vue-ui-dashboard-C1PRSeLr.js} +64 -64
- package/dist/{vue-ui-digits-B5QhIbFD.js → vue-ui-digits-DDh5Vxvc.js} +1 -1
- package/dist/{vue-ui-donut-D3---CiY.js → vue-ui-donut-CKDYWkKE.js} +12 -9
- package/dist/{vue-ui-donut-evolution-C6H1Vr6m.js → vue-ui-donut-evolution-BvNNQtyL.js} +438 -444
- package/dist/{vue-ui-dumbbell-L1p0npq4.js → vue-ui-dumbbell-D4uWpexA.js} +3 -3
- package/dist/{vue-ui-flow-CgAIlvZF.js → vue-ui-flow-CTLxckNx.js} +3 -3
- package/dist/{vue-ui-funnel-CpgqO34n.js → vue-ui-funnel-BWyQixj8.js} +3 -3
- package/dist/{vue-ui-galaxy-DAi1I2Cr.js → vue-ui-galaxy-C0TDWUTS.js} +3 -3
- package/dist/{vue-ui-gauge-DY78U-uO.js → vue-ui-gauge-ChOANZyZ.js} +3 -3
- package/dist/{vue-ui-geo-Befu6fkT.js → vue-ui-geo-Cv7JzD1c.js} +3 -3
- package/dist/{vue-ui-gizmo-BM_oOeYY.js → vue-ui-gizmo-Cd8foemN.js} +2 -2
- package/dist/{vue-ui-heatmap-C_ze3bzX.js → vue-ui-heatmap-mxoacXPq.js} +4 -4
- package/dist/{vue-ui-history-plot-C-_zpLPH.js → vue-ui-history-plot-BsyGaRQT.js} +3 -3
- package/dist/{vue-ui-horizontal-bar-DvLMeP44.js → vue-ui-horizontal-bar-e_tYBG4d.js} +4 -4
- package/dist/{vue-ui-kpi-IcOqABQz.js → vue-ui-kpi-DQRm5B2_.js} +2 -2
- package/dist/{vue-ui-mini-loader-DxlOXn6v.js → vue-ui-mini-loader-CObyi21D.js} +1 -1
- package/dist/{vue-ui-molecule-N938wMMB.js → vue-ui-molecule-DjucsQhe.js} +2 -2
- package/dist/{vue-ui-mood-radar-D1hHnpLB.js → vue-ui-mood-radar-DOd2rxuT.js} +3 -3
- package/dist/{vue-ui-nested-donuts-DeTGEb4T.js → vue-ui-nested-donuts-DE7p2Fgp.js} +46 -46
- package/dist/{vue-ui-onion-BwY998zT.js → vue-ui-onion-BATuVto7.js} +41 -38
- package/dist/{vue-ui-parallel-coordinate-plot-B4v3AheY.js → vue-ui-parallel-coordinate-plot-BLp7NM3E.js} +3 -3
- package/dist/{vue-ui-quadrant-4f1p9gSO.js → vue-ui-quadrant-AW-eksks.js} +3 -3
- package/dist/{vue-ui-quick-chart-CGbEBTS1.js → vue-ui-quick-chart-BCnCOAxm.js} +2 -2
- package/dist/{vue-ui-radar-B15r4HoM.js → vue-ui-radar-B710xZlD.js} +3 -3
- package/dist/{vue-ui-rating-CaRZVE71.js → vue-ui-rating-iq2tKZ_U.js} +1 -1
- package/dist/{vue-ui-relation-circle-CFEL1uYt.js → vue-ui-relation-circle-C4noyjHV.js} +3 -3
- package/dist/{vue-ui-ridgeline-LGH61-xE.js → vue-ui-ridgeline-Ciih1SOm.js} +3 -3
- package/dist/{vue-ui-rings-DNdUdKax.js → vue-ui-rings-Bwak5MGF.js} +3 -3
- package/dist/{vue-ui-scatter-Duxs0Ie_.js → vue-ui-scatter-Bbk87yp_.js} +3 -3
- package/dist/{vue-ui-skeleton-UoBAzUyN.js → vue-ui-skeleton-DTP-lHk-.js} +2 -2
- package/dist/{vue-ui-smiley-BhpJbcM8.js → vue-ui-smiley-Ccv9c7pA.js} +1 -1
- package/dist/{vue-ui-spark-trend-2c75iF9Y.js → vue-ui-spark-trend-BEVWCHis.js} +2 -2
- package/dist/{vue-ui-sparkbar-B2E5nzBF.js → vue-ui-sparkbar-BHfJPNZl.js} +2 -2
- package/dist/{vue-ui-sparkgauge-DFkpaMkk.js → vue-ui-sparkgauge-3xNJCJ70.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-K6lo-KnY.js → vue-ui-sparkhistogram-_lV4WXS_.js} +2 -2
- package/dist/{vue-ui-sparkline-CsByZZt4.js → vue-ui-sparkline-BfFlV5kx.js} +2 -2
- package/dist/{vue-ui-sparkstackbar-ByUb6nk-.js → vue-ui-sparkstackbar-v3ayd3bl.js} +2 -2
- package/dist/{vue-ui-stackbar-D7SnQvr4.js → vue-ui-stackbar-YQygDhDd.js} +3 -3
- package/dist/{vue-ui-stackline-BnRxf3k_.js → vue-ui-stackline-x9MMyg_1.js} +3 -3
- package/dist/{vue-ui-strip-plot-CJWXdisu.js → vue-ui-strip-plot-Csh9RwiY.js} +3 -3
- package/dist/{vue-ui-table-BHWwypkc.js → vue-ui-table-BBmsVv1l.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DvHKKwJA.js → vue-ui-table-heatmap-B-T8pWI-.js} +1 -1
- package/dist/{vue-ui-table-sparkline-uK0q-dO9.js → vue-ui-table-sparkline-BmkIssWR.js} +2 -2
- package/dist/{vue-ui-thermometer-Bxn0JNeJ.js → vue-ui-thermometer-HNdHuF-6.js} +3 -3
- package/dist/{vue-ui-timer-7o5Jrxf3.js → vue-ui-timer-BHHgGQZo.js} +3 -3
- package/dist/{vue-ui-tiremarks-DHoUaHOe.js → vue-ui-tiremarks-H585-mQM.js} +3 -3
- package/dist/{vue-ui-treemap-B_4cIAAI.js → vue-ui-treemap-YXAtO95p.js} +3 -3
- package/dist/{vue-ui-waffle-CddfqNWD.js → vue-ui-waffle-BE8SWjIj.js} +12 -9
- package/dist/{vue-ui-wheel-CGYJA-33.js → vue-ui-wheel-DWxbunQa.js} +3 -3
- package/dist/{vue-ui-word-cloud-oszTieHn.js → vue-ui-word-cloud-JwfLrZoU.js} +3 -3
- package/dist/{vue-ui-world-DQjHEyKe.js → vue-ui-world-CkgiS9TT.js} +2 -2
- package/dist/{vue-ui-xy-D5A8tR-O.js → vue-ui-xy-COxHwrGr.js} +4 -4
- package/dist/{vue-ui-xy-canvas-Bzd8pZdH.js → vue-ui-xy-canvas-Cg7fpBqF.js} +3 -3
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import { defineAsyncComponent as B, computed as k, ref as v, toRefs as wl, watch
|
|
|
2
2
|
import { c as xl, t as Tl, i as Dl, j as Ee, a1 as Ve, o as Sl, g as K, k as Ol, a7 as U, m as Nl, a3 as Be, a as fe, d as N, X as Pl, s as Il, G as Ft, a5 as xt, a6 as be, p as Tt, y as Dt, v as El, r as Vl, _ as Bl, ag as St, U as ze } from "./lib-BwysEpWI.js";
|
|
3
3
|
import { b as zl } from "./labelUtils-PMU3ZGCb.js";
|
|
4
4
|
import { t as Ml, u as Ul } from "./useResponsive-DfdjqQps.js";
|
|
5
|
-
import { u as Rl, a as Me } from "./useNestedProp
|
|
5
|
+
import { u as Rl, a as Me } from "./useNestedProp-OFRiX4kU.js";
|
|
6
6
|
import { u as Gl, B as Yl } from "./BaseScanner-BMpwQAfz.js";
|
|
7
7
|
import { u as Wl } from "./usePrinter-BJzHDpYF.js";
|
|
8
8
|
import { u as Xl } from "./useSvgExport-ByUukOZt.js";
|
|
@@ -10,7 +10,7 @@ import { u as Hl } from "./useThemeCheck-DGJ31Vi5.js";
|
|
|
10
10
|
import { u as ql } from "./useUserOptionState-BIvW1Kz7.js";
|
|
11
11
|
import { u as jl } from "./useChartAccessibility-9icAAmYg.js";
|
|
12
12
|
import Jl from "./img-DKigoPDs.js";
|
|
13
|
-
import Kl from "./Title-
|
|
13
|
+
import Kl from "./Title-DGnfNZuO.js";
|
|
14
14
|
import Ql from "./Legend-D6z73edh.js";
|
|
15
15
|
import { _ as Zl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
16
|
const Ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", layout: { donut: { emptyFill: "#3A3A3A" }, labels: { dataLabels: { color: "#CCCCCC" } } }, legend: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, Nt = { style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", layout: { labels: { dataLabels: { color: "#424242" } } }, legend: { backgroundColor: "#FFF8E1", color: "#424242" }, title: { color: "#424242", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } } }, Pt = { style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", layout: { labels: { dataLabels: { color: "#BDBDBD" } } }, legend: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, tooltip: { backgroundColor: "#1E1E1E", backgroundOpacity: 30, color: "#FFF8E1", borderColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, td: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } } }, It = { style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", layout: { labels: { dataLabels: { color: "#AACCAA" } } }, legend: { backgroundColor: "#1A1A1A", color: "#99AA99" }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#2A2F2A", color: "#AACCAA", borderColor: "#66CC66" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } } }, Et = { style: { chart: { backgroundColor: "#fbfafa", color: "#8A9892", layout: { labels: { dataLabels: { color: "#A0AC94" } } }, legend: { backgroundColor: "#fbfafa", color: "#99AA99" }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#fbfafa", color: "#8A9892" } } }, table: { th: { backgroundColor: "#fbfafa", color: "#8F837A" }, td: { backgroundColor: "#fbfafa", color: "#8F837A" } } }, Vt = { style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", layout: { labels: { dataLabels: { color: "#61747E" } } }, legend: { backgroundColor: "#f6f6fb", color: "#61747E" }, title: { color: "#50606C", subtitle: { color: "#718890" } }, tooltip: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, table: { th: { backgroundColor: "#f6f6fb", color: "#50606C" }, td: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, Bt = {
|
|
@@ -54,7 +54,7 @@ const Ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
54
54
|
},
|
|
55
55
|
emits: ["selectLegend", "selectDatapoint"],
|
|
56
56
|
setup(zt, { expose: Mt, emit: Ut }) {
|
|
57
|
-
const Rt = B(() => import("./Tooltip-TDyKgLB6.js")), Gt = B(() => import("./BaseIcon-4i3dd7Ty.js")), Yt = B(() => import("./vue-ui-accordion-
|
|
57
|
+
const Rt = B(() => import("./Tooltip-TDyKgLB6.js")), Gt = B(() => import("./BaseIcon-4i3dd7Ty.js")), Yt = B(() => import("./vue-ui-accordion-DUuwVsuJ.js")), Wt = B(() => import("./DataTable-WrXCJkfE.js")), Xt = B(() => import("./UserOptions-CzJWRC4s.js")), Ht = B(() => import("./PenAndPaper-DxIUvoQ8.js")), qt = B(() => import("./PackageVersion-BLzm8l_I.js")), jt = B(() => import("./BaseDraggableDialog-CAJxIF6g.js")), { vue_ui_nested_donuts: Jt } = Rl(), { isThemeValid: Kt, warnInvalidTheme: Qt } = Hl(), w = zt, ge = k({
|
|
58
58
|
get() {
|
|
59
59
|
return !!w.dataset && w.dataset.length;
|
|
60
60
|
},
|
|
@@ -175,8 +175,8 @@ const Ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
175
175
|
t.forEach((d, f) => {
|
|
176
176
|
setTimeout(() => {
|
|
177
177
|
const $ = performance.now();
|
|
178
|
-
function i(
|
|
179
|
-
const F = Math.min((
|
|
178
|
+
function i(m) {
|
|
179
|
+
const F = Math.min((m - $) / s, 1), le = St(F), ae = d * le;
|
|
180
180
|
G.value[f] = ae, G.value = [...G.value];
|
|
181
181
|
const de = [];
|
|
182
182
|
let De = 0;
|
|
@@ -304,12 +304,12 @@ const Ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
304
304
|
}) {
|
|
305
305
|
const d = performance.now();
|
|
306
306
|
function f($) {
|
|
307
|
-
const i = Math.min(($ - d) / l, 1),
|
|
307
|
+
const i = Math.min(($ - d) / l, 1), m = u(i), F = t + (s - t) * m;
|
|
308
308
|
o(F, i), i < 1 ? requestAnimationFrame(f) : (o(s, 1), a && a());
|
|
309
309
|
}
|
|
310
310
|
requestAnimationFrame(f);
|
|
311
311
|
}
|
|
312
|
-
const
|
|
312
|
+
const C = v([]), D = k(() => {
|
|
313
313
|
we.value, W.value.forEach((s, l) => {
|
|
314
314
|
[null, void 0].includes(s.name) && K({
|
|
315
315
|
componentName: "VueUiNestedDonuts",
|
|
@@ -349,7 +349,7 @@ const Ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
349
349
|
let t = 0;
|
|
350
350
|
return W.value.map((s, l) => ({
|
|
351
351
|
...s,
|
|
352
|
-
total: s.series.filter((o) => !
|
|
352
|
+
total: s.series.filter((o) => !C.value.includes(o.id)).map((o) => U(o.values).reduce((a, u) => a + u, 0)).reduce((o, a) => o + a, 0),
|
|
353
353
|
datasetIndex: l,
|
|
354
354
|
id: `${b.value}_${l}`,
|
|
355
355
|
series: s.series.map((o, a) => {
|
|
@@ -372,11 +372,11 @@ const Ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
372
372
|
Array.isArray(t) && t.length > 0 && (Ae.value = !1);
|
|
373
373
|
}, { immediate: !0 });
|
|
374
374
|
const I = k(() => Math.min(h.value.height, h.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)), rt = k(() => [...D.value].map((t, s) => {
|
|
375
|
-
const l = t.series.filter((o) => !
|
|
375
|
+
const l = t.series.filter((o) => !C.value.includes(o.id)).map((o) => o.value).reduce((o, a) => o + a, 0);
|
|
376
376
|
return {
|
|
377
377
|
...t,
|
|
378
378
|
total: l,
|
|
379
|
-
series: t.series.filter((o) => !
|
|
379
|
+
series: t.series.filter((o) => !C.value.includes(o.id)).map((o) => ({
|
|
380
380
|
...o,
|
|
381
381
|
proportion: o.value / l
|
|
382
382
|
}))
|
|
@@ -396,10 +396,10 @@ const Ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
396
396
|
function X(t) {
|
|
397
397
|
nt("selectLegend", t);
|
|
398
398
|
const s = w.dataset.flatMap(
|
|
399
|
-
(i,
|
|
399
|
+
(i, m) => i.series.map((F, le) => ({
|
|
400
400
|
value: U(F.values).reduce((ae, de) => ae + de, 0),
|
|
401
|
-
id: `${b.value}_${
|
|
402
|
-
arcOfId: `${b.value}_${
|
|
401
|
+
id: `${b.value}_${m}_${le}`,
|
|
402
|
+
arcOfId: `${b.value}_${m}`
|
|
403
403
|
}))
|
|
404
404
|
).find((i) => i.id === t.id);
|
|
405
405
|
if (!s) return;
|
|
@@ -412,38 +412,38 @@ const Ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
412
412
|
const f = d.series.map((i) => i.id), $ = al(
|
|
413
413
|
f,
|
|
414
414
|
f.length - 1,
|
|
415
|
-
|
|
415
|
+
C.value
|
|
416
416
|
);
|
|
417
|
-
|
|
417
|
+
C.value.includes(t.id) ? (C.value = C.value.filter((i) => i !== t.id), e.value.serieToggleAnimation.show ? ut({
|
|
418
418
|
from: u,
|
|
419
419
|
to: l,
|
|
420
420
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
421
421
|
onUpdate: (i) => {
|
|
422
|
-
A.value = A.value.map((
|
|
423
|
-
...
|
|
424
|
-
series:
|
|
422
|
+
A.value = A.value.map((m) => ({
|
|
423
|
+
...m,
|
|
424
|
+
series: m.series.map((F) => F.id === t.id ? { ...F, value: i } : F)
|
|
425
425
|
}));
|
|
426
426
|
}
|
|
427
427
|
}) : A.value = A.value.map((i) => ({
|
|
428
428
|
...i,
|
|
429
|
-
series: i.series.map((
|
|
429
|
+
series: i.series.map((m) => m.id === t.id ? { ...m, value: l } : m)
|
|
430
430
|
}))) : $ && (e.value.serieToggleAnimation.show ? ut({
|
|
431
431
|
from: u,
|
|
432
432
|
to: 0,
|
|
433
433
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
434
434
|
onUpdate: (i) => {
|
|
435
|
-
A.value = A.value.map((
|
|
436
|
-
...
|
|
437
|
-
series:
|
|
435
|
+
A.value = A.value.map((m) => ({
|
|
436
|
+
...m,
|
|
437
|
+
series: m.series.map((F) => F.id === t.id ? { ...F, value: i } : F)
|
|
438
438
|
}));
|
|
439
439
|
},
|
|
440
440
|
onDone: () => {
|
|
441
|
-
|
|
441
|
+
C.value.push(t.id);
|
|
442
442
|
}
|
|
443
443
|
}) : (A.value = A.value.map((i) => ({
|
|
444
444
|
...i,
|
|
445
|
-
series: i.series.map((
|
|
446
|
-
})),
|
|
445
|
+
series: i.series.map((m) => m.id === t.id ? { ...m, value: 0 } : m)
|
|
446
|
+
})), C.value.push(t.id)));
|
|
447
447
|
}
|
|
448
448
|
function it(t) {
|
|
449
449
|
if (!D.value.length)
|
|
@@ -454,14 +454,14 @@ const Ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
454
454
|
function ol(t) {
|
|
455
455
|
const s = it(t);
|
|
456
456
|
s !== null && (Array.isArray(s) ? s.forEach((l) => {
|
|
457
|
-
|
|
458
|
-
}) :
|
|
457
|
+
C.value.includes(l.id) && X({ id: l.id });
|
|
458
|
+
}) : C.value.includes(s.id) && X({ id: s.id }));
|
|
459
459
|
}
|
|
460
460
|
function sl(t) {
|
|
461
461
|
const s = it(t);
|
|
462
462
|
s !== null && (Array.isArray(s) ? s.forEach((l) => {
|
|
463
|
-
|
|
464
|
-
}) :
|
|
463
|
+
C.value.includes(l.id) || X({ id: l.id });
|
|
464
|
+
}) : C.value.includes(s.id) || X({ id: s.id }));
|
|
465
465
|
}
|
|
466
466
|
const se = k(() => I.value / D.value.length * e.value.style.chart.layout.donut.spacingRatio), ct = k(() => A.value.map((t, s) => I.value - s * I.value / D.value.length)), J = k(() => A.value.map((t, s) => {
|
|
467
467
|
const l = Math.abs(t.series.map(($) => $.value).reduce(($, i) => $ + i, 0)) > 0, o = I.value - s * I.value / A.value.length, a = R.value ? Q.value.find(($) => $.datasetIndex === s) : null, u = [...t.series, ...a ? [a] : []].map(($) => ({
|
|
@@ -530,9 +530,9 @@ const Ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
530
530
|
val: t,
|
|
531
531
|
percentage: s,
|
|
532
532
|
showVal: l,
|
|
533
|
-
showPercentage: o
|
|
533
|
+
showPercentage: o,
|
|
534
|
+
config: a
|
|
534
535
|
}) {
|
|
535
|
-
const a = e.value.style.chart.layout.labels.dataLabels;
|
|
536
536
|
return zl({
|
|
537
537
|
config: a,
|
|
538
538
|
val: t,
|
|
@@ -565,7 +565,7 @@ const Ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
565
565
|
});
|
|
566
566
|
else {
|
|
567
567
|
let a = "";
|
|
568
|
-
if (e.value.style.chart.tooltip.showAllItemsAtIndex &&
|
|
568
|
+
if (e.value.style.chart.tooltip.showAllItemsAtIndex && C.value.length === 0) {
|
|
569
569
|
const u = A.value.map((d) => d.series.find((f) => f.seriesIndex === l));
|
|
570
570
|
u.forEach((d, f) => {
|
|
571
571
|
if (!d) return "";
|
|
@@ -582,6 +582,7 @@ const Ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
582
582
|
<span>
|
|
583
583
|
<b>
|
|
584
584
|
${ht({
|
|
585
|
+
config: e.value.style.chart.tooltip,
|
|
585
586
|
showVal: e.value.style.chart.tooltip.showValue,
|
|
586
587
|
showPercentage: e.value.style.chart.tooltip.showPercentage,
|
|
587
588
|
val: fe(
|
|
@@ -636,14 +637,14 @@ const Ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
636
637
|
function bt(t, s) {
|
|
637
638
|
if (!e.value.useBlurOnHover)
|
|
638
639
|
return "";
|
|
639
|
-
if (e.value.style.chart.tooltip.showAllItemsAtIndex &&
|
|
640
|
+
if (e.value.style.chart.tooltip.showAllItemsAtIndex && C.value.length === 0)
|
|
640
641
|
return [null, void 0].includes(ue.value) || ue.value === s ? "" : `url(#blur_${b.value})`;
|
|
641
|
-
if (!e.value.style.chart.tooltip.showAllItemsAtIndex ||
|
|
642
|
+
if (!e.value.style.chart.tooltip.showAllItemsAtIndex || C.value.length)
|
|
642
643
|
return [null, void 0].includes(ne.value) || ne.value === t.id ? "" : `url(#blur_${b.value})`;
|
|
643
644
|
}
|
|
644
645
|
const re = k(() => D.value.map((t, s) => {
|
|
645
646
|
const l = t.series.filter(
|
|
646
|
-
(a) => !
|
|
647
|
+
(a) => !C.value.includes(a.id)
|
|
647
648
|
), o = R.value ? l.map((a) => {
|
|
648
649
|
const u = W.value[s].series.findIndex(
|
|
649
650
|
(d) => d.name === a.name
|
|
@@ -656,9 +657,7 @@ const Ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
656
657
|
const d = U(W.value[s].series[u].values).reduce(
|
|
657
658
|
(le, ae) => le + ae,
|
|
658
659
|
0
|
|
659
|
-
), f = R.value ? d : a.value
|
|
660
|
-
console.log(m.value, a.id);
|
|
661
|
-
const $ = fe(
|
|
660
|
+
), f = R.value ? d : a.value, $ = fe(
|
|
662
661
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
663
662
|
f,
|
|
664
663
|
N({
|
|
@@ -668,16 +667,17 @@ const Ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
668
667
|
r: e.value.style.chart.legend.roundingValue
|
|
669
668
|
}),
|
|
670
669
|
{ datapoint: a, seriesIndex: u }
|
|
671
|
-
), i = isNaN(f / o) ||
|
|
670
|
+
), i = isNaN(f / o) || C.value.includes(a.id) ? "-" : N({
|
|
672
671
|
v: f / o * 100,
|
|
673
672
|
s: "%",
|
|
674
673
|
r: e.value.style.chart.legend.roundingPercentage
|
|
675
|
-
}),
|
|
674
|
+
}), m = ht({
|
|
676
675
|
val: $,
|
|
677
676
|
percentage: i,
|
|
678
677
|
showVal: e.value.style.chart.legend.showValue,
|
|
679
|
-
showPercentage: e.value.style.chart.legend.showPercentage
|
|
680
|
-
|
|
678
|
+
showPercentage: e.value.style.chart.legend.showPercentage,
|
|
679
|
+
config: e.value.style.chart.legend
|
|
680
|
+
}), F = `${a.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${m}`;
|
|
681
681
|
return {
|
|
682
682
|
name: a.name,
|
|
683
683
|
color: a.color,
|
|
@@ -690,9 +690,9 @@ const Ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
690
690
|
seriesIndex: u,
|
|
691
691
|
datasetIndex: s,
|
|
692
692
|
total: o,
|
|
693
|
-
opacity:
|
|
693
|
+
opacity: C.value.includes(a.id) ? 0.5 : 1,
|
|
694
694
|
segregate: () => X(a),
|
|
695
|
-
isSegregated:
|
|
695
|
+
isSegregated: C.value.includes(a.id)
|
|
696
696
|
};
|
|
697
697
|
});
|
|
698
698
|
})), rl = k(() => ({
|
|
@@ -1366,7 +1366,7 @@ const Ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1366
1366
|
item: p(({ legend: a, index: u }) => [
|
|
1367
1367
|
g("div", {
|
|
1368
1368
|
onClick: (d) => X(a),
|
|
1369
|
-
style: he(`opacity:${
|
|
1369
|
+
style: he(`opacity:${C.value.includes(a.id) ? 0.5 : 1}`)
|
|
1370
1370
|
}, M(a.display), 13, xa)
|
|
1371
1371
|
]),
|
|
1372
1372
|
_: 1
|
|
@@ -1445,7 +1445,7 @@ const Ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1445
1445
|
c(we) ? (n(), z(Yl, { key: 9 })) : L("", !0)
|
|
1446
1446
|
], 46, ea));
|
|
1447
1447
|
}
|
|
1448
|
-
}, Sa = /* @__PURE__ */ Zl(Da, [["__scopeId", "data-v-
|
|
1448
|
+
}, Sa = /* @__PURE__ */ Zl(Da, [["__scopeId", "data-v-80821f9a"]]), qa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1449
1449
|
__proto__: null,
|
|
1450
1450
|
default: Sa
|
|
1451
1451
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -2,7 +2,7 @@ import { defineAsyncComponent as S, computed as v, ref as u, toRefs as Nt, watch
|
|
|
2
2
|
import { c as jt, t as Ht, i as Wt, j as je, k as qt, o as He, g as de, m as Jt, a as ve, d as L, X as Kt, y as We, v as Qt, r as Zt, _ as eo } from "./lib-BwysEpWI.js";
|
|
3
3
|
import { b as to } from "./labelUtils-PMU3ZGCb.js";
|
|
4
4
|
import { t as oo, u as lo } from "./useResponsive-DfdjqQps.js";
|
|
5
|
-
import { u as ao, a as ge } from "./useNestedProp
|
|
5
|
+
import { u as ao, a as ge } from "./useNestedProp-OFRiX4kU.js";
|
|
6
6
|
import { u as no, B as ro } from "./BaseScanner-BMpwQAfz.js";
|
|
7
7
|
import { u as so } from "./usePrinter-BJzHDpYF.js";
|
|
8
8
|
import { u as uo } from "./useSvgExport-ByUukOZt.js";
|
|
@@ -11,7 +11,7 @@ import { u as co } from "./useUserOptionState-BIvW1Kz7.js";
|
|
|
11
11
|
import { u as vo } from "./useChartAccessibility-9icAAmYg.js";
|
|
12
12
|
import { u as go } from "./useAutoSizeLabelsInsideViewbox-DO2dxQ78.js";
|
|
13
13
|
import ho from "./img-DKigoPDs.js";
|
|
14
|
-
import fo from "./Title-
|
|
14
|
+
import fo from "./Title-DGnfNZuO.js";
|
|
15
15
|
import po from "./Legend-D6z73edh.js";
|
|
16
16
|
import { _ as bo } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
17
|
const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", layout: { gutter: { color: "#4A4A4A" }, labels: { color: "#CCCCCC" } }, legend: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, Je = { style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", useGradient: !1, layout: { gutter: { color: "#5D403730" }, labels: { color: "#424242" } }, legend: { backgroundColor: "#FFF8E1", color: "#424242" }, title: { color: "#424242", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } } }, Ke = { style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", useGradient: !1, layout: { gutter: { color: "#5D403730" }, labels: { color: "#BDBDBD" } }, legend: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, tooltip: { backgroundColor: "#1E1E1E", backgroundOpacity: 30, color: "#FFF8E1", borderColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, td: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } } }, Qe = { style: { chart: { backgroundColor: "#1A1A1A", useGradient: !1, color: "#99AA99", layout: { gutter: { color: "#2A2A2A" }, labels: { color: "#99CC99" } }, legend: { backgroundColor: "#1A1A1A", color: "#99AA99" }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#2A2F2A", color: "#AACCAA", borderColor: "#66CC66" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } } }, Ze = { style: { chart: { useGradient: !1, backgroundColor: "#fbfafa", color: "#8A9892", layout: { gutter: { color: "#F7EDE2" }, labels: { color: "#A0AC94" } }, legend: { backgroundColor: "#fbfafa", color: "#99AA99" }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#fbfafa", color: "#8A9892" } } }, table: { th: { backgroundColor: "#fbfafa", color: "#8F837A" }, td: { backgroundColor: "#fbfafa", color: "#8F837A" } } }, et = { style: { chart: { useGradient: !1, backgroundColor: "#f6f6fb", color: "#50606C", layout: { gutter: { color: "#DDDDDB" }, labels: { color: "#61747E" } }, legend: { backgroundColor: "#f6f6fb", color: "#61747E" }, title: { color: "#50606C", subtitle: { color: "#718890" } }, tooltip: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, table: { th: { backgroundColor: "#f6f6fb", color: "#50606C" }, td: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, tt = {
|
|
@@ -31,7 +31,7 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
31
31
|
default: tt,
|
|
32
32
|
hack: Qe,
|
|
33
33
|
zen: Ze
|
|
34
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
34
|
+
}, Symbol.toStringTag, { value: "Module" })), yo = ["id"], mo = ["id"], ko = ["xmlns", "viewBox"], Co = ["width", "height"], wo = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Ao = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], $o = ["id"], To = ["stdDeviation"], Fo = ["filter"], Oo = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Do = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "onMouseenter", "onMouseleave", "onClick"], xo = { key: 2 }, So = ["onMouseenter", "onMouseleave", "onClick"], _o = ["x", "y", "font-size", "fill", "font-weight"], Po = {
|
|
35
35
|
key: 4,
|
|
36
36
|
class: "vue-data-ui-watermark"
|
|
37
37
|
}, Bo = ["id"], Io = ["onClick"], Eo = ["innerHTML"], Mo = {
|
|
@@ -52,7 +52,7 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
52
52
|
},
|
|
53
53
|
emits: ["selectLegend"],
|
|
54
54
|
setup(ot, { expose: lt, emit: at }) {
|
|
55
|
-
const nt = S(() => import("./Tooltip-TDyKgLB6.js")), rt = S(() => import("./BaseIcon-4i3dd7Ty.js")), st = S(() => import("./vue-ui-accordion-
|
|
55
|
+
const nt = S(() => import("./Tooltip-TDyKgLB6.js")), rt = S(() => import("./BaseIcon-4i3dd7Ty.js")), st = S(() => import("./vue-ui-accordion-DUuwVsuJ.js")), ut = S(() => import("./DataTable-WrXCJkfE.js")), it = S(() => import("./UserOptions-CzJWRC4s.js")), ct = S(() => import("./PenAndPaper-DxIUvoQ8.js")), dt = S(() => import("./PackageVersion-BLzm8l_I.js")), vt = S(() => import("./BaseDraggableDialog-CAJxIF6g.js")), { vue_ui_onion: gt } = ao(), { isThemeValid: ht, warnInvalidTheme: ft } = io(), w = ot, he = v(() => !!w.dataset && w.dataset.length), A = u(jt()), pt = u(null), fe = u(0), J = u(!1), K = u(""), b = u([]), T = u(null), pe = u(null), be = u(null), ye = u(null), me = u(null), ke = u(0), Ce = u(0), we = u(0), F = u(!1), Ae = u(!1), R = u(null), e = u(ee()), { loading: $, FINAL_DATASET: $e, manualLoading: Q } = no({
|
|
56
56
|
...Nt(w),
|
|
57
57
|
FINAL_CONFIG: e,
|
|
58
58
|
prepareConfig: ee,
|
|
@@ -110,18 +110,18 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
110
110
|
};
|
|
111
111
|
}
|
|
112
112
|
V(() => w.config, (t) => {
|
|
113
|
-
$.value || (e.value = ee()), Z.value = !e.value.userOptions.showOnChartHover, Pe(), ke.value += 1, Ce.value += 1, we.value += 1,
|
|
113
|
+
$.value || (e.value = ee()), Z.value = !e.value.userOptions.showOnChartHover, Pe(), ke.value += 1, Ce.value += 1, we.value += 1, y.value.showTable = e.value.table.show, y.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
114
114
|
}, { deep: !0 });
|
|
115
115
|
const { isPrinting: Oe, isImaging: De, generatePdf: xe, generateImage: Se } = so({
|
|
116
116
|
elementId: `vue-ui-onion_${A.value}`,
|
|
117
117
|
fileName: e.value.style.chart.title.text || "vue-ui-onion",
|
|
118
118
|
options: e.value.userOptions.print
|
|
119
|
-
}), bt = v(() => e.value.userOptions.show && !e.value.style.chart.title.text),
|
|
119
|
+
}), bt = v(() => e.value.userOptions.show && !e.value.style.chart.title.text), yt = v(() => qt(e.value.customPalette)), y = u({
|
|
120
120
|
showTable: e.value.table.show,
|
|
121
121
|
showTooltip: e.value.style.chart.tooltip.show
|
|
122
122
|
});
|
|
123
123
|
V(e, () => {
|
|
124
|
-
|
|
124
|
+
y.value = {
|
|
125
125
|
showTable: e.value.table.show,
|
|
126
126
|
showTooltip: e.value.style.chart.tooltip.show
|
|
127
127
|
};
|
|
@@ -140,14 +140,14 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
140
140
|
Vt(() => {
|
|
141
141
|
Ae.value = !0, Pe();
|
|
142
142
|
});
|
|
143
|
-
const
|
|
143
|
+
const mt = v({
|
|
144
144
|
get: () => e.value.style.chart.layout.labels.fontSize,
|
|
145
145
|
set: (t) => t
|
|
146
146
|
}), { autoSizeLabels: _e } = go({
|
|
147
147
|
svgRef: Y,
|
|
148
148
|
fontSize: e.value.style.chart.layout.labels.fontSize,
|
|
149
149
|
minFontSize: e.value.style.chart.layout.labels.minFontSize,
|
|
150
|
-
sizeRef:
|
|
150
|
+
sizeRef: mt,
|
|
151
151
|
labelClass: ".vue-ui-onion-label"
|
|
152
152
|
}), kt = v(() => e.value.debug);
|
|
153
153
|
let te = null;
|
|
@@ -163,8 +163,8 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
163
163
|
chart: T.value,
|
|
164
164
|
title: e.value.style.chart.title.text ? pe.value : null,
|
|
165
165
|
legend: e.value.style.chart.legend.show ? be.value : null,
|
|
166
|
-
source:
|
|
167
|
-
noTitle:
|
|
166
|
+
source: ye.value,
|
|
167
|
+
noTitle: me.value
|
|
168
168
|
});
|
|
169
169
|
a -= 12, requestAnimationFrame(async () => {
|
|
170
170
|
n.value.width = o, n.value.height = a, n.value.padding.top = Math.max(o, a) * 0.125, n.value.padding.right = Math.max(o, a) * 0.125, n.value.padding.bottom = Math.max(o, a) * 0.125, n.value.padding.left = Math.max(o, a) * 0.125, n.value.minRadius = Math.min(o, a) * 0.125, te = setTimeout(() => {
|
|
@@ -208,7 +208,7 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
208
208
|
...t,
|
|
209
209
|
percentage: t.percentage || 0,
|
|
210
210
|
targetPercentage: t.percentage || 0,
|
|
211
|
-
color: Jt(t.color) ||
|
|
211
|
+
color: Jt(t.color) || yt.value[l] || je[l],
|
|
212
212
|
id: o,
|
|
213
213
|
shape: "circle",
|
|
214
214
|
opacity: b.value.includes(o) ? 0.5 : 1,
|
|
@@ -226,7 +226,7 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
226
226
|
s: t.suffix || "",
|
|
227
227
|
r: e.value.style.chart.legend.roundingValue
|
|
228
228
|
})
|
|
229
|
-
),
|
|
229
|
+
), m = L({
|
|
230
230
|
v: t.percentage ?? 0,
|
|
231
231
|
s: "%",
|
|
232
232
|
r: e.value.style.chart.legend.roundingPercentage
|
|
@@ -234,7 +234,8 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
234
234
|
showVal: o,
|
|
235
235
|
showPercentage: a,
|
|
236
236
|
val: i,
|
|
237
|
-
percentage:
|
|
237
|
+
percentage: m,
|
|
238
|
+
config: e.value.style.chart.legend
|
|
238
239
|
});
|
|
239
240
|
return {
|
|
240
241
|
...t,
|
|
@@ -285,12 +286,12 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
285
286
|
};
|
|
286
287
|
}));
|
|
287
288
|
function Ft(t, l) {
|
|
288
|
-
const o = 2 * Math.PI * t, a = o * 0.75, i = `${a} ${o}`,
|
|
289
|
+
const o = 2 * Math.PI * t, a = o * 0.75, i = `${a} ${o}`, m = a * (1 - l / 100);
|
|
289
290
|
return {
|
|
290
291
|
bgDashArray: `${a} ${o}`,
|
|
291
292
|
bgDashOffset: 0,
|
|
292
293
|
dashArray: i,
|
|
293
|
-
dashOffset:
|
|
294
|
+
dashOffset: m,
|
|
294
295
|
fullOffset: 0,
|
|
295
296
|
active: `
|
|
296
297
|
M ${h.value.centerX},${h.value.centerY - t}
|
|
@@ -355,8 +356,8 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
355
356
|
});
|
|
356
357
|
function ne(t = null) {
|
|
357
358
|
Xe(() => {
|
|
358
|
-
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], o = ae.value.head, a = ae.value.body, i = l.concat([o]).concat(a),
|
|
359
|
-
t ? t(
|
|
359
|
+
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], o = ae.value.head, a = ae.value.body, i = l.concat([o]).concat(a), m = Qt(i);
|
|
360
|
+
t ? t(m) : Zt({ csvContent: m, title: e.value.style.chart.title.text || "vue-ui-onion" });
|
|
360
361
|
});
|
|
361
362
|
}
|
|
362
363
|
const x = u(void 0), I = u(!1);
|
|
@@ -373,9 +374,9 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
373
374
|
val: t,
|
|
374
375
|
percentage: l,
|
|
375
376
|
showVal: o,
|
|
376
|
-
showPercentage: a
|
|
377
|
+
showPercentage: a,
|
|
378
|
+
config: i
|
|
377
379
|
}) {
|
|
378
|
-
const i = e.value.style.chart.layout.labels;
|
|
379
380
|
return to({
|
|
380
381
|
config: i,
|
|
381
382
|
val: t,
|
|
@@ -386,6 +387,7 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
386
387
|
}
|
|
387
388
|
function _t(t, l) {
|
|
388
389
|
const o = e.value.style.chart.layout.labels.value.show, a = e.value.style.chart.layout.labels.percentage.show, i = re({
|
|
390
|
+
config: e.value.style.chart.layout.labels,
|
|
389
391
|
showVal: o,
|
|
390
392
|
showPercentage: a,
|
|
391
393
|
val: ve(
|
|
@@ -418,14 +420,14 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
418
420
|
config: e.value
|
|
419
421
|
}, J.value = o;
|
|
420
422
|
let i = "";
|
|
421
|
-
const
|
|
422
|
-
if (We(
|
|
423
|
+
const m = e.value.style.chart.tooltip.customFormat;
|
|
424
|
+
if (We(m) && eo(() => m({
|
|
423
425
|
seriesIndex: a,
|
|
424
426
|
datapoint: t,
|
|
425
427
|
series: f.value,
|
|
426
428
|
config: e.value
|
|
427
429
|
})))
|
|
428
|
-
K.value =
|
|
430
|
+
K.value = m({
|
|
429
431
|
seriesIndex: a,
|
|
430
432
|
datapoint: t,
|
|
431
433
|
series: f.value,
|
|
@@ -434,6 +436,7 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
434
436
|
else {
|
|
435
437
|
const ie = e.value.style.chart.tooltip.showPercentage, zt = e.value.style.chart.tooltip.showValue;
|
|
436
438
|
i += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`, i += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${t.color}"/></svg>`, i += `<b>${re({
|
|
439
|
+
config: e.value.style.chart.tooltip,
|
|
437
440
|
showVal: zt,
|
|
438
441
|
showPercentage: ie,
|
|
439
442
|
val: `<span>${ve(
|
|
@@ -459,10 +462,10 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
459
462
|
}
|
|
460
463
|
}
|
|
461
464
|
function ze() {
|
|
462
|
-
|
|
465
|
+
y.value.showTable = !y.value.showTable;
|
|
463
466
|
}
|
|
464
467
|
function Ne() {
|
|
465
|
-
|
|
468
|
+
y.value.showTooltip = !y.value.showTooltip;
|
|
466
469
|
}
|
|
467
470
|
const H = u(!1);
|
|
468
471
|
function ue() {
|
|
@@ -470,10 +473,10 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
470
473
|
}
|
|
471
474
|
async function Pt({ scale: t = 2 } = {}) {
|
|
472
475
|
if (!T.value) return;
|
|
473
|
-
const { width: l, height: o } = T.value.getBoundingClientRect(), a = l / o, { imageUri: i, base64:
|
|
476
|
+
const { width: l, height: o } = T.value.getBoundingClientRect(), a = l / o, { imageUri: i, base64: m } = await ho({ domElement: T.value, base64: !0, img: !0, scale: t });
|
|
474
477
|
return {
|
|
475
478
|
imageUri: i,
|
|
476
|
-
base64:
|
|
479
|
+
base64: m,
|
|
477
480
|
title: e.value.style.chart.title.text,
|
|
478
481
|
width: l,
|
|
479
482
|
height: o,
|
|
@@ -481,7 +484,7 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
481
484
|
};
|
|
482
485
|
}
|
|
483
486
|
const N = v(() => {
|
|
484
|
-
const t = e.value.table.useDialog && !e.value.table.show, l =
|
|
487
|
+
const t = e.value.table.useDialog && !e.value.table.show, l = y.value.showTable;
|
|
485
488
|
return {
|
|
486
489
|
component: t ? vt : st,
|
|
487
490
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
@@ -510,7 +513,7 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
510
513
|
}
|
|
511
514
|
};
|
|
512
515
|
});
|
|
513
|
-
V(() =>
|
|
516
|
+
V(() => y.value.showTable, (t) => {
|
|
514
517
|
e.value.table.show || (t && e.value.table.useDialog && R.value ? R.value.open() : "close" in R.value && R.value.close());
|
|
515
518
|
});
|
|
516
519
|
const Bt = v(() => oe.value.map((t) => ({
|
|
@@ -583,7 +586,7 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
583
586
|
bt.value ? (r(), g("div", {
|
|
584
587
|
key: 1,
|
|
585
588
|
ref_key: "noTitle",
|
|
586
|
-
ref:
|
|
589
|
+
ref: me,
|
|
587
590
|
class: "vue-data-ui-no-title-space",
|
|
588
591
|
style: "height:36px; width: 100%;background:transparent"
|
|
589
592
|
}, null, 512)) : p("", !0),
|
|
@@ -609,7 +612,7 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
609
612
|
], 512)) : p("", !0),
|
|
610
613
|
P("div", {
|
|
611
614
|
id: `legend-top-${A.value}`
|
|
612
|
-
}, null, 8,
|
|
615
|
+
}, null, 8, mo),
|
|
613
616
|
e.value.userOptions.show && he.value && (s(Fe) || s(Z)) ? (r(), _(s(it), {
|
|
614
617
|
ref_key: "details",
|
|
615
618
|
ref: pt,
|
|
@@ -627,7 +630,7 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
627
630
|
hasTable: e.value.userOptions.buttons.table,
|
|
628
631
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
629
632
|
isFullscreen: I.value,
|
|
630
|
-
isTooltip:
|
|
633
|
+
isTooltip: y.value.showTooltip,
|
|
631
634
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
632
635
|
chartElement: T.value,
|
|
633
636
|
position: e.value.userOptions.position,
|
|
@@ -890,13 +893,13 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
890
893
|
t.$slots.source ? (r(), g("div", {
|
|
891
894
|
key: 6,
|
|
892
895
|
ref_key: "source",
|
|
893
|
-
ref:
|
|
896
|
+
ref: ye,
|
|
894
897
|
dir: "auto"
|
|
895
898
|
}, [
|
|
896
899
|
d(t.$slots, "source", {}, void 0, !0)
|
|
897
900
|
], 512)) : p("", !0),
|
|
898
901
|
ce(s(nt), {
|
|
899
|
-
show:
|
|
902
|
+
show: y.value.showTooltip && J.value,
|
|
900
903
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
901
904
|
color: e.value.style.chart.tooltip.color,
|
|
902
905
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -926,7 +929,7 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
926
929
|
he.value && e.value.userOptions.buttons.table ? (r(), _(Yt(N.value.component), Xt({ key: 7 }, N.value.props, {
|
|
927
930
|
ref_key: "tableUnit",
|
|
928
931
|
ref: R,
|
|
929
|
-
onClose: l[3] || (l[3] = (o) =>
|
|
932
|
+
onClose: l[3] || (l[3] = (o) => y.value.showTable = !1)
|
|
930
933
|
}), Ge({
|
|
931
934
|
content: c(() => [
|
|
932
935
|
(r(), _(s(ut), {
|
|
@@ -937,7 +940,7 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
937
940
|
config: j.value.config,
|
|
938
941
|
title: e.value.table.useDialog ? "" : N.value.title,
|
|
939
942
|
withCloseButton: !e.value.table.useDialog,
|
|
940
|
-
onClose: l[2] || (l[2] = (o) =>
|
|
943
|
+
onClose: l[2] || (l[2] = (o) => y.value.showTable = !1)
|
|
941
944
|
}, {
|
|
942
945
|
th: c(({ th: o }) => [
|
|
943
946
|
Ye(q(o), 1)
|
|
@@ -975,9 +978,9 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
975
978
|
} : void 0
|
|
976
979
|
]), 1040)) : p("", !0),
|
|
977
980
|
s($) ? (r(), _(ro, { key: 8 })) : p("", !0)
|
|
978
|
-
], 46,
|
|
981
|
+
], 46, yo));
|
|
979
982
|
}
|
|
980
|
-
}, Lo = /* @__PURE__ */ bo(Mo, [["__scopeId", "data-v-
|
|
983
|
+
}, Lo = /* @__PURE__ */ bo(Mo, [["__scopeId", "data-v-0e506fb5"]]), tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
981
984
|
__proto__: null,
|
|
982
985
|
default: Lo
|
|
983
986
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineAsyncComponent as L, computed as m, ref as d, toRefs as Vt, watch as ee, shallowRef as Ke, onMounted as Gt, onBeforeUnmount as Xt, watchEffect as Yt, createElementBlock as i, openBlock as n, unref as v, normalizeStyle as S, normalizeClass as X, createBlock as D, createCommentVNode as g, createElementVNode as I, createVNode as me, withCtx as h, renderSlot as p, normalizeProps as T, guardReactiveProps as z, createSlots as Qe, Fragment as w, renderList as P, toDisplayString as U, Teleport as qt, resolveDynamicComponent as Jt, mergeProps as Kt, createTextVNode as Ze, nextTick as Qt } from "vue";
|
|
2
2
|
import { c as be, t as Zt, i as ea, j as te, o as et, g as tt, l as ta, k as aa, m as oa, N as la, C as sa, A as na, ah as ra, X as ia, $ as ua, y as at, a2 as ae, v as ca, r as va, a as ot, d as lt, _ as da } from "./lib-BwysEpWI.js";
|
|
3
3
|
import { t as st, u as ha } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as pa, a as ge } from "./useNestedProp
|
|
4
|
+
import { u as pa, a as ge } from "./useNestedProp-OFRiX4kU.js";
|
|
5
5
|
import { u as fa } from "./usePrinter-BJzHDpYF.js";
|
|
6
6
|
import { u as ma, B as ba } from "./BaseScanner-BMpwQAfz.js";
|
|
7
7
|
import { u as ga } from "./useSvgExport-ByUukOZt.js";
|
|
@@ -9,7 +9,7 @@ import { u as ya } from "./useThemeCheck-DGJ31Vi5.js";
|
|
|
9
9
|
import { u as Ca } from "./useUserOptionState-BIvW1Kz7.js";
|
|
10
10
|
import { u as ka } from "./useChartAccessibility-9icAAmYg.js";
|
|
11
11
|
import { u as xa } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
12
|
-
import Aa from "./Title-
|
|
12
|
+
import Aa from "./Title-DGnfNZuO.js";
|
|
13
13
|
import wa from "./Legend-D6z73edh.js";
|
|
14
14
|
import { _ as $a } from "./Shape-DAHhCEdg.js";
|
|
15
15
|
import Fa from "./img-DKigoPDs.js";
|
|
@@ -52,7 +52,7 @@ const nt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", leg
|
|
|
52
52
|
},
|
|
53
53
|
emits: ["selectLegend", "selectDatapoint"],
|
|
54
54
|
setup(ht, { expose: pt, emit: ft }) {
|
|
55
|
-
const mt = L(() => import("./Tooltip-TDyKgLB6.js")), bt = L(() => import("./BaseIcon-4i3dd7Ty.js")), gt = L(() => import("./vue-ui-accordion-
|
|
55
|
+
const mt = L(() => import("./Tooltip-TDyKgLB6.js")), bt = L(() => import("./BaseIcon-4i3dd7Ty.js")), gt = L(() => import("./vue-ui-accordion-DUuwVsuJ.js")), yt = L(() => import("./DataTable-WrXCJkfE.js")), Ct = L(() => import("./PenAndPaper-DxIUvoQ8.js")), kt = L(() => import("./UserOptions-CzJWRC4s.js")), xt = L(() => import("./PackageVersion-BLzm8l_I.js")), At = L(() => import("./BaseDraggableDialog-CAJxIF6g.js")), { vue_ui_parallel_coordinate_plot: wt } = pa(), { isThemeValid: $t, warnInvalidTheme: Ft } = ya(), $ = ht, Y = m({
|
|
56
56
|
get() {
|
|
57
57
|
return !!$.dataset && $.dataset.length;
|
|
58
58
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineAsyncComponent as N, computed as g, ref as b, toRefs as It, watch as xe, shallowRef as ot, onMounted as Ht, onBeforeUnmount as Ut, createElementBlock as n, openBlock as s, unref as i, normalizeStyle as A, normalizeClass as B, createBlock as E, createCommentVNode as h, createElementVNode as d, createVNode as ne, withCtx as f, renderSlot as p, normalizeProps as T, guardReactiveProps as z, createSlots as ut, Fragment as S, renderList as Y, toDisplayString as k, Teleport as Qt, resolveDynamicComponent as Gt, mergeProps as jt, createTextVNode as st, nextTick as rt } from "vue";
|
|
2
2
|
import { c as nt, t as Jt, i as Zt, j as Ce, o as Kt, g as G, k as el, m as tl, ai as ll, a as P, d as R, X as al, s as ie, h as ol, aj as ul, $ as sl, x as rl, v as nl, r as il, y as vl, _ as cl } from "./lib-BwysEpWI.js";
|
|
3
3
|
import { t as dl, u as hl } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as bl, a as ke } from "./useNestedProp
|
|
4
|
+
import { u as bl, a as ke } from "./useNestedProp-OFRiX4kU.js";
|
|
5
5
|
import { u as yl, B as fl } from "./BaseScanner-BMpwQAfz.js";
|
|
6
6
|
import { u as pl } from "./usePrinter-BJzHDpYF.js";
|
|
7
7
|
import { u as gl } from "./useSvgExport-ByUukOZt.js";
|
|
@@ -9,7 +9,7 @@ import { u as ml } from "./useThemeCheck-DGJ31Vi5.js";
|
|
|
9
9
|
import { u as xl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
10
10
|
import { u as Cl } from "./useChartAccessibility-9icAAmYg.js";
|
|
11
11
|
import kl from "./img-DKigoPDs.js";
|
|
12
|
-
import $l from "./Title-
|
|
12
|
+
import $l from "./Title-DGnfNZuO.js";
|
|
13
13
|
import { _ as it } from "./Shape-DAHhCEdg.js";
|
|
14
14
|
import Ll from "./Legend-D6z73edh.js";
|
|
15
15
|
import { _ as wl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -62,7 +62,7 @@ const vt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
62
62
|
},
|
|
63
63
|
emits: ["selectPlot", "selectSide", "selectLegend"],
|
|
64
64
|
setup(pt, { expose: gt, emit: mt }) {
|
|
65
|
-
const xt = N(() => import("./Tooltip-TDyKgLB6.js")), Ct = N(() => import("./BaseIcon-4i3dd7Ty.js")), kt = N(() => import("./vue-ui-accordion-
|
|
65
|
+
const xt = N(() => import("./Tooltip-TDyKgLB6.js")), Ct = N(() => import("./BaseIcon-4i3dd7Ty.js")), kt = N(() => import("./vue-ui-accordion-DUuwVsuJ.js")), $t = N(() => import("./DataTable-WrXCJkfE.js")), Lt = N(() => import("./PenAndPaper-DxIUvoQ8.js")), wt = N(() => import("./UserOptions-CzJWRC4s.js")), At = N(() => import("./PackageVersion-BLzm8l_I.js")), _t = N(() => import("./BaseDraggableDialog-CAJxIF6g.js")), { vue_ui_quadrant: St } = bl(), { isThemeValid: qt, warnInvalidTheme: Tt } = ml(), W = pt, $e = g(() => !!W.dataset && W.dataset.length), L = b(nt()), ve = mt, ce = b(!1), de = b(""), Le = b(0), x = b(!1), X = b(null), we = b(null), Ae = b(null), _e = b(null), Se = b(null), qe = b(0), Te = b(0), ze = b(0), Fe = b(!1), j = b(null), he = b(null), e = b(fe()), { loading: Be, FINAL_DATASET: We } = yl({
|
|
66
66
|
...It(W),
|
|
67
67
|
FINAL_CONFIG: e,
|
|
68
68
|
prepareConfig: fe,
|