vue-data-ui 3.7.6 → 3.7.8
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-DwoTV5mg.js → PackageVersion-CJF7IH9q.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-age-pyramid.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-dashboard.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-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-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-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-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-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.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{vue-data-ui-CxY3FoZp.js → vue-data-ui-BwZpMZXM.js} +54 -54
- package/dist/vue-data-ui.js +55 -55
- package/dist/{vue-ui-3d-bar-DIBli46b.js → vue-ui-3d-bar-CXX2mSqh.js} +1 -1
- package/dist/{vue-ui-age-pyramid-Cn0tX34v.js → vue-ui-age-pyramid-C-Dl2XUx.js} +1 -1
- package/dist/{vue-ui-bullet-ByappHl2.js → vue-ui-bullet-Ccl0kzzA.js} +1 -1
- package/dist/{vue-ui-candlestick-CaX9Alej.js → vue-ui-candlestick-hISKdohk.js} +1 -1
- package/dist/{vue-ui-carousel-table-BLKFuHz-.js → vue-ui-carousel-table-Dyc_G3Kp.js} +1 -1
- package/dist/{vue-ui-chestnut-Cyq0Besb.js → vue-ui-chestnut-9TxPQCHg.js} +1 -1
- package/dist/{vue-ui-chord-DZXmMUIh.js → vue-ui-chord-C4OFq_OR.js} +1 -1
- package/dist/{vue-ui-circle-pack-DSq84IsF.js → vue-ui-circle-pack-DBv9FNgA.js} +1 -1
- package/dist/{vue-ui-dashboard-CmtCoi02.js → vue-ui-dashboard-CwKHLF_b.js} +54 -54
- package/dist/{vue-ui-donut-CzusFrIw.js → vue-ui-donut-BXH0Mym3.js} +1 -1
- package/dist/{vue-ui-donut-evolution-CpJbR5uV.js → vue-ui-donut-evolution-spIbl1c9.js} +1 -1
- package/dist/{vue-ui-dumbbell-Dzqd9E7F.js → vue-ui-dumbbell-DQW2t9iM.js} +1 -1
- package/dist/{vue-ui-flow-Chafwpi4.js → vue-ui-flow-Bt-rW9ny.js} +1 -1
- package/dist/{vue-ui-funnel-Ch4ECPWw.js → vue-ui-funnel-BWp3H6sk.js} +1 -1
- package/dist/{vue-ui-galaxy-DuTCQcw2.js → vue-ui-galaxy-CsJSZjb4.js} +1 -1
- package/dist/{vue-ui-gauge-CqfweycF.js → vue-ui-gauge-BbrLA9ay.js} +1 -1
- package/dist/{vue-ui-gizmo-DRIZ9jqs.js → vue-ui-gizmo-D-Z8QCwH.js} +1 -1
- package/dist/{vue-ui-heatmap-Dpf9ESfm.js → vue-ui-heatmap-C4F0oPir.js} +1 -1
- package/dist/{vue-ui-history-plot-CS2mQ6gy.js → vue-ui-history-plot-ChNfFFIF.js} +1 -1
- package/dist/{vue-ui-horizontal-bar-C1_GyvH6.js → vue-ui-horizontal-bar-BHhflQVv.js} +1 -1
- package/dist/{vue-ui-molecule-C2yuLBPe.js → vue-ui-molecule-BQasD0Pc.js} +1 -1
- package/dist/{vue-ui-mood-radar-D6_JKZD0.js → vue-ui-mood-radar-UnfXTNY5.js} +1 -1
- package/dist/{vue-ui-nested-donuts-DezXbn3L.js → vue-ui-nested-donuts-CxDSJ7UU.js} +1 -1
- package/dist/{vue-ui-onion-B2DOSZET.js → vue-ui-onion-_J9_80mF.js} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-Cm6Kic4U.js → vue-ui-parallel-coordinate-plot-CHiDNY-h.js} +1 -1
- package/dist/{vue-ui-quadrant-N0JObYc0.js → vue-ui-quadrant-DdwtJUik.js} +1 -1
- package/dist/{vue-ui-quick-chart-BqIXVDWU.js → vue-ui-quick-chart-BVtuoV8L.js} +175 -175
- package/dist/{vue-ui-radar-DIAlL-iA.js → vue-ui-radar-BiMDeEtu.js} +1 -1
- package/dist/{vue-ui-relation-circle-BfqW4U8_.js → vue-ui-relation-circle-DYAyIRP1.js} +1 -1
- package/dist/{vue-ui-ridgeline-dEWypag2.js → vue-ui-ridgeline-gN5fKjTd.js} +1 -1
- package/dist/{vue-ui-rings-CngJTPYC.js → vue-ui-rings-BMxHBIXK.js} +1 -1
- package/dist/{vue-ui-scatter-DrrI2Y5p.js → vue-ui-scatter-DTe8stzc.js} +1 -1
- package/dist/{vue-ui-skeleton-BG9YjwoO.js → vue-ui-skeleton-Rq_iY34o.js} +1 -1
- package/dist/{vue-ui-spark-trend-DBXVFfFJ.js → vue-ui-spark-trend-Bv_c68m9.js} +1 -1
- package/dist/{vue-ui-sparkbar-jWF3jfyJ.js → vue-ui-sparkbar-Bts-H5kW.js} +1 -1
- package/dist/{vue-ui-sparkgauge-DppgMczB.js → vue-ui-sparkgauge-qe1x-WYv.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-CYQ_swIb.js → vue-ui-sparkhistogram-C4AsZoTv.js} +1 -1
- package/dist/{vue-ui-sparkline-DR_E6OY3.js → vue-ui-sparkline-4rL3cNOp.js} +1 -1
- package/dist/{vue-ui-sparkstackbar-IwTxoPF7.js → vue-ui-sparkstackbar-nAPWa24t.js} +1 -1
- package/dist/{vue-ui-stackbar-DfmZsCGm.js → vue-ui-stackbar-DIrK_6U1.js} +1 -1
- package/dist/{vue-ui-stackline-M5CH8so-.js → vue-ui-stackline-DrjtZnvk.js} +1 -1
- package/dist/{vue-ui-strip-plot-CYDM4Qol.js → vue-ui-strip-plot-BvlJJ05r.js} +1 -1
- package/dist/{vue-ui-table-rpcOU1TS.js → vue-ui-table-BXTdd4rQ.js} +2 -2
- package/dist/{vue-ui-table-sparkline-D-jJvOFm.js → vue-ui-table-sparkline-D09d-TqT.js} +1 -1
- package/dist/{vue-ui-thermometer-Boubn9Xp.js → vue-ui-thermometer-D-3uy1Kn.js} +1 -1
- package/dist/{vue-ui-timer-CQSc8aJF.js → vue-ui-timer-fLkuH8-S.js} +1 -1
- package/dist/{vue-ui-tiremarks-BQpq2dib.js → vue-ui-tiremarks-CtDyYpos.js} +1 -1
- package/dist/{vue-ui-treemap-COMNOsed.js → vue-ui-treemap-Dt-wMdMI.js} +1 -1
- package/dist/{vue-ui-waffle-CePh_wup.js → vue-ui-waffle-D-F3_Adz.js} +1 -1
- package/dist/{vue-ui-wheel-CgXbmiWd.js → vue-ui-wheel-CCCqyGtv.js} +1 -1
- package/dist/vue-ui-word-cloud-IG1Vv_Bs.js +1016 -0
- package/dist/{vue-ui-world-DSoHB44E.js → vue-ui-world-DFb4FB41.js} +1 -1
- package/dist/{vue-ui-xy-DZWGoVqX.js → vue-ui-xy-CWpPVQDO.js} +3 -3
- package/package.json +1 -1
- package/dist/vue-ui-word-cloud-CqsMucKT.js +0 -904
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { c as
|
|
1
|
+
import { defineAsyncComponent as Fe, ref as A, computed as M, toRefs as La, watch as Te, shallowRef as Bt, onMounted as _a, onBeforeUnmount as Dt, nextTick as lt, watchEffect as za, createElementBlock as n, openBlock as o, normalizeStyle as D, normalizeClass as he, createBlock as Ie, createCommentVNode as m, createElementVNode as z, createVNode as Se, unref as s, withCtx as G, renderSlot as R, normalizeProps as Q, guardReactiveProps as K, createSlots as $a, toDisplayString as N, Fragment as x, renderList as F, Teleport as Ea, mergeProps as ot } from "vue";
|
|
2
|
+
import { c as Fa, t as Ta, i as Ia, p as ee, W as Nt, j as Oa, a5 as Pa, g as Ma, o as Ra, l as nt, Z as Ba, F as We, X as Da, _ as Na, $ as it, a0 as Oe, a as se, d as Z, U as Ut, z as Vt, M as ve, x as Ge, R as rt } from "./lib-C5BH09_g.js";
|
|
3
3
|
import { t as Ht, u as Ua } from "./useResponsive-DfdjqQps.js";
|
|
4
4
|
import { u as Va, a as ut } from "./useNestedProp-CRoetJdp.js";
|
|
5
5
|
import { u as Ha, B as qa } from "./BaseScanner-BgWxam9d.js";
|
|
@@ -17,81 +17,81 @@ const w = {
|
|
|
17
17
|
BAR: "BAR",
|
|
18
18
|
DONUT: "DONUT"
|
|
19
19
|
}, el = ["SERIE", "SERIES", "DATA", "VALUE", "VALUES", "NUM"];
|
|
20
|
-
function tl({ dataset:
|
|
20
|
+
function tl({ dataset: h, barLineSwitch: O = 6, debug: C = !0 }) {
|
|
21
21
|
let V = null, X = null, ce = 0;
|
|
22
|
-
if ((typeof
|
|
23
|
-
if (!ll(
|
|
22
|
+
if ((typeof h == "number" || typeof h == "string") && C && console.warn(`The provided dataset (${h}) is not sufficient to build a chart`), Xe(h) && (de(h) && (h.length < O ? V = w.BAR : V = w.LINE, X = h, ce = h.length), je(h))) {
|
|
23
|
+
if (!ll(h))
|
|
24
24
|
return C && console.warn("The objects in the dataset array have a different data structure. Either keys or value types are different."), !1;
|
|
25
|
-
const Ze = Object.keys(
|
|
25
|
+
const Ze = Object.keys(h[0]), Pe = Object.values(h[0]);
|
|
26
26
|
if (!Ze.some((j) => ol(j)))
|
|
27
27
|
return C && console.warn("The data type of the dataset objects in the array must contain one of the following keys: DATA, SERIES, VALUE, VALUES, NUM. Casing is not important."), !1;
|
|
28
|
-
qt(Pe, (j) => typeof j == "number") && (V = w.DONUT, X =
|
|
28
|
+
qt(Pe, (j) => typeof j == "number") && (V = w.DONUT, X = h), qt(Pe, (j) => Array.isArray(j) && de(j)) && (Wt(h) > O ? V = w.LINE : V = w.BAR, ce = Wt(h), X = h.map((j) => ({
|
|
29
29
|
...j,
|
|
30
30
|
data: nl(j, (q) => de(q))
|
|
31
|
-
}))),
|
|
31
|
+
}))), h = h.map((j) => Gt(j)), X = X.map((j) => Gt(j));
|
|
32
32
|
}
|
|
33
33
|
return {
|
|
34
|
-
dataset:
|
|
34
|
+
dataset: h,
|
|
35
35
|
type: V,
|
|
36
36
|
usableDataset: X,
|
|
37
37
|
maxSeriesLength: ce
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
|
-
function jt(
|
|
41
|
-
return !
|
|
40
|
+
function jt(h) {
|
|
41
|
+
return !h || Xe(h) && !h.length;
|
|
42
42
|
}
|
|
43
|
-
function Xe(
|
|
44
|
-
return Array.isArray(
|
|
43
|
+
function Xe(h) {
|
|
44
|
+
return Array.isArray(h);
|
|
45
45
|
}
|
|
46
|
-
function de(
|
|
47
|
-
if (!Xe(
|
|
48
|
-
const O =
|
|
46
|
+
function de(h) {
|
|
47
|
+
if (!Xe(h) || jt(h)) return !1;
|
|
48
|
+
const O = h.map((C) => Number(C));
|
|
49
49
|
return ![...new Set(O.flatMap((C) => typeof C == "number" && !isNaN(C)))].includes(!1);
|
|
50
50
|
}
|
|
51
|
-
function je(
|
|
52
|
-
return !Xe(
|
|
51
|
+
function je(h) {
|
|
52
|
+
return !Xe(h) || jt(h) || !![...new Set(h.flatMap((C) => typeof C == "object" && !Array.isArray(C)))].includes(!1) ? !1 : !h.map((C) => Object.keys(C).length > 0).includes(!1);
|
|
53
53
|
}
|
|
54
|
-
function al(
|
|
55
|
-
const C = Object.keys(
|
|
54
|
+
function al(h, O) {
|
|
55
|
+
const C = Object.keys(h).sort(), V = Object.keys(O).sort();
|
|
56
56
|
if (C.length !== V.length)
|
|
57
57
|
return !1;
|
|
58
58
|
for (let X = 0; X < C.length; X += 1) {
|
|
59
59
|
const ce = C[X], Ae = V[X];
|
|
60
|
-
if (ce !== Ae || typeof
|
|
60
|
+
if (ce !== Ae || typeof h[ce] != typeof O[Ae])
|
|
61
61
|
return !1;
|
|
62
62
|
}
|
|
63
63
|
return !0;
|
|
64
64
|
}
|
|
65
|
-
function ll(
|
|
66
|
-
if (
|
|
67
|
-
for (let O = 0; O <
|
|
68
|
-
for (let C = O + 1; C <
|
|
69
|
-
if (!al(
|
|
65
|
+
function ll(h) {
|
|
66
|
+
if (h.length <= 1) return !0;
|
|
67
|
+
for (let O = 0; O < h.length; O += 1)
|
|
68
|
+
for (let C = O + 1; C < h.length; C += 1)
|
|
69
|
+
if (!al(h[O], h[C]))
|
|
70
70
|
return !1;
|
|
71
71
|
return !0;
|
|
72
72
|
}
|
|
73
|
-
function ol(
|
|
74
|
-
return el.includes(
|
|
73
|
+
function ol(h) {
|
|
74
|
+
return el.includes(h.toUpperCase());
|
|
75
75
|
}
|
|
76
|
-
function qt(
|
|
76
|
+
function qt(h, O) {
|
|
77
77
|
let C = [];
|
|
78
|
-
for (let V = 0; V <
|
|
79
|
-
C.push(O(
|
|
78
|
+
for (let V = 0; V < h.length; V += 1)
|
|
79
|
+
C.push(O(h[V]));
|
|
80
80
|
return C.includes(!0);
|
|
81
81
|
}
|
|
82
|
-
function Wt(
|
|
83
|
-
return Math.max(...[...
|
|
82
|
+
function Wt(h) {
|
|
83
|
+
return Math.max(...[...h].flatMap((O) => Object.values(O).filter((C) => de(C)).map((C) => C.length)));
|
|
84
84
|
}
|
|
85
|
-
function nl(
|
|
86
|
-
return Object.values(
|
|
85
|
+
function nl(h, O) {
|
|
86
|
+
return Object.values(h).filter((C) => O(C))[0];
|
|
87
87
|
}
|
|
88
|
-
function Gt(
|
|
88
|
+
function Gt(h) {
|
|
89
89
|
const O = {};
|
|
90
|
-
for (let C in
|
|
91
|
-
|
|
90
|
+
for (let C in h)
|
|
91
|
+
h.hasOwnProperty(C) && (O[C.toUpperCase()] = h[C]);
|
|
92
92
|
return O;
|
|
93
93
|
}
|
|
94
|
-
const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A", xyAxisStroke: "#5A5A5A", xyGridStroke: "#4A4A4A", xyHighlighterColor: "#CCCCCC", zoomColor: "#4A4A4A", zoomHighlightColor: "#9A9A9A", zoomMinimap: { lineColor: "#424242", selectedColor: "#8A8A8A", indicatorColor: "#CCCCCC" }, tooltipBorderColor: "#5A5A5A", tooltipBackgroundOpacity: 70 }, Zt = { backgroundColor: "#FFF8E1", color: "#424242", xyAxisStroke: "#5D4037", xyGridStroke: "#5D403760", xyHighlighterColor: "#424242", zoomColor: "#5D4037", zoomHighlightColor: "#FF8A65", zoomMinimap: { lineColor: "#424242", selectedColor: "#FF8A65" }, tooltipBorderColor: "#FF8A65", tooltipBackgroundOpacity: 30 }, Yt = { backgroundColor: "#1E1E1E", color: "#BDBDBD", xyAxisStroke: "#5D4037", xyGridStroke: "#5D403780", xyHighlighterColor: "#FFF8E1", zoomColor: "#5D4037", zoomHighlightColor: "#FF8A65", zoomMinimap: { lineColor: "#FF6B6B", selectedColor: "#FF8A65", indicatorColor: "#FF8A65" }, tooltipBorderColor: "#FF8A65", tooltipBackgroundOpacity: 30 }, Jt = { backgroundColor: "#1A1A1A", color: "#99AA99", xyAxisStroke: "#5F6A5F", xyGridStroke: "#333333", xyHighlighterColor: "#66CC66", zoomColor: "#5F6A5F", zoomHighlightColor: "#66CC66", tooltipBorderColor: "#66CC66" }, Qt = { backgroundColor: "#fbfafa", color: "#8A9892", xyAxisStroke: "transparent", xyGridStroke: "transparent", xyHighlighterColor: "#8F837A", zoomColor: "#E0CFC3", zoomHighlightColor: "#8F837A" }, Kt = { backgroundColor: "#f6f6fb", color: "#50606C", xyAxisStroke: "#829C98", xyGridStroke: "#CCD6D3", xyHighlighterColor: "#7DA9B5", zoomColor: "#92B0AB", zoomHighlightColor: "#50606C" }, ea = {
|
|
94
|
+
const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A", xyAxisStroke: "#5A5A5A", xyGridStroke: "#4A4A4A", xyHighlighterColor: "#CCCCCC", zoomColor: "#4A4A4A", zoomHighlightColor: "#9A9A9A", zoomMinimap: { lineColor: "#424242", selectedColor: "#8A8A8A", indicatorColor: "#CCCCCC" }, tooltipBorderColor: "#5A5A5A", tooltipBackgroundOpacity: 70 }, Zt = { backgroundColor: "#FFF8E1", color: "#424242", donutStroke: "#FFF8E1", xyAxisStroke: "#5D4037", xyGridStroke: "#5D403760", xyHighlighterColor: "#424242", zoomColor: "#5D4037", zoomHighlightColor: "#FF8A65", zoomMinimap: { lineColor: "#424242", selectedColor: "#FF8A65" }, tooltipBorderColor: "#FF8A65", tooltipBackgroundOpacity: 30 }, Yt = { backgroundColor: "#1E1E1E", color: "#BDBDBD", donutStroke: "#1E1E1E", xyAxisStroke: "#5D4037", xyGridStroke: "#5D403780", xyHighlighterColor: "#FFF8E1", zoomColor: "#5D4037", zoomHighlightColor: "#FF8A65", zoomMinimap: { lineColor: "#FF6B6B", selectedColor: "#FF8A65", indicatorColor: "#FF8A65" }, tooltipBorderColor: "#FF8A65", tooltipBackgroundOpacity: 30 }, Jt = { backgroundColor: "#1A1A1A", color: "#99AA99", xyAxisStroke: "#5F6A5F", xyGridStroke: "#333333", donutStroke: "#1A1A1A", xyHighlighterColor: "#66CC66", zoomColor: "#5F6A5F", zoomHighlightColor: "#66CC66", tooltipBorderColor: "#66CC66" }, Qt = { backgroundColor: "#fbfafa", color: "#8A9892", donutStroke: "#fbfafa", xyAxisStroke: "transparent", xyGridStroke: "transparent", xyHighlighterColor: "#8F837A", zoomColor: "#E0CFC3", zoomHighlightColor: "#8F837A" }, Kt = { backgroundColor: "#f6f6fb", color: "#50606C", donutStroke: "#f6f6fb", xyAxisStroke: "#829C98", xyGridStroke: "#CCD6D3", xyHighlighterColor: "#7DA9B5", zoomColor: "#92B0AB", zoomHighlightColor: "#50606C" }, ea = {
|
|
95
95
|
default: {},
|
|
96
96
|
dark: Xt,
|
|
97
97
|
celebration: Zt,
|
|
@@ -108,7 +108,7 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
|
|
|
108
108
|
default: ea,
|
|
109
109
|
hack: Jt,
|
|
110
110
|
zen: Qt
|
|
111
|
-
}, Symbol.toStringTag, { value: "Module" })), il = ["id"], rl = ["id"], ul = ["xmlns", "viewBox"], sl = ["x", "y", "width", "height"], vl = ["x", "y", "width", "height"], dl = ["width", "height"], cl = ["id"],
|
|
111
|
+
}, Symbol.toStringTag, { value: "Module" })), il = ["id"], rl = ["id"], ul = ["xmlns", "viewBox"], sl = ["x", "y", "width", "height"], vl = ["x", "y", "width", "height"], dl = ["width", "height"], cl = ["id"], fl = ["id"], hl = ["id"], ml = ["flood-color"], gl = {
|
|
112
112
|
key: 0,
|
|
113
113
|
class: "donut-label-connectors"
|
|
114
114
|
}, pl = ["d", "stroke", "stroke-width", "filter"], yl = ["cx", "cy", "r", "fill", "filter"], xl = { class: "donut" }, kl = ["d", "fill", "stroke", "stroke-width", "filter"], bl = ["d", "onMouseenter", "onMouseout", "onClick"], Sl = {
|
|
@@ -120,7 +120,7 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
|
|
|
120
120
|
}, _l = ["x", "y", "font-size", "fill"], zl = ["x", "y", "font-size", "fill"], $l = {
|
|
121
121
|
key: 0,
|
|
122
122
|
class: "line-grid"
|
|
123
|
-
},
|
|
123
|
+
}, El = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Fl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Tl = {
|
|
124
124
|
key: 1,
|
|
125
125
|
class: "line-axis"
|
|
126
126
|
}, Il = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ol = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Pl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ml = ["x", "y", "font-size", "fill"], Rl = {
|
|
@@ -141,7 +141,7 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
|
|
|
141
141
|
}, lo = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], oo = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], no = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], io = ["x", "y", "font-size", "fill"], ro = {
|
|
142
142
|
key: 3,
|
|
143
143
|
class: "periodLabels"
|
|
144
|
-
}, uo = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], so = { key: 0 }, vo = ["font-size", "text-anchor", "fill", "transform"], co = ["font-size", "text-anchor", "fill", "transform", "innerHTML"],
|
|
144
|
+
}, uo = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], so = { key: 0 }, vo = ["font-size", "text-anchor", "fill", "transform"], co = ["font-size", "text-anchor", "fill", "transform", "innerHTML"], fo = { class: "plots" }, ho = ["x", "width", "height", "y", "fill", "stroke", "stroke-width"], mo = ["to"], go = ["from", "to"], po = {
|
|
145
145
|
key: 4,
|
|
146
146
|
class: "dataLabels"
|
|
147
147
|
}, yo = ["x", "y", "font-size", "fill"], xo = {
|
|
@@ -153,7 +153,7 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
|
|
|
153
153
|
}, So = ["font-size", "fill", "x", "y"], Ao = ["font-size", "fill", "x", "y"], wo = ["font-size", "fill", "transform"], Co = ["font-size", "fill", "transform"], Lo = {
|
|
154
154
|
key: 5,
|
|
155
155
|
class: "vue-data-ui-watermark"
|
|
156
|
-
}, _o = ["id"], zo = ["onClick"], $o = ["onClick"],
|
|
156
|
+
}, _o = ["id"], zo = ["onClick"], $o = ["onClick"], Eo = ["onClick"], Fo = {
|
|
157
157
|
key: 1,
|
|
158
158
|
class: "vue-ui-quick-chart-not-processable"
|
|
159
159
|
}, To = {
|
|
@@ -173,8 +173,8 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
|
|
|
173
173
|
}
|
|
174
174
|
},
|
|
175
175
|
emits: ["selectDatapoint", "selectLegend"],
|
|
176
|
-
setup(
|
|
177
|
-
const V =
|
|
176
|
+
setup(h, { expose: O, emit: C }) {
|
|
177
|
+
const V = Fe(() => import("./BaseIcon-CofSxalQ.js")), X = Fe(() => import("./PackageVersion-CJF7IH9q.js")), ce = Fe(() => import("./PenAndPaper-HCZQTkqi.js")), Ae = Fe(() => import("./Tooltip-WD0Ros6G.js")), st = Fe(() => import("./UserOptions-B3I-s3Lw.js")), { vue_ui_quick_chart: Ze } = Va(), { isThemeValid: Pe, warnInvalidTheme: j } = Xa(), q = h, ne = A(null), vt = A(null), dt = A(null), ct = A(null), Y = A(Fa()), me = A(!1), we = A(null), ge = A(""), oe = A(null), ft = A(null), ht = A(null), L = A([]), mt = A(0), Me = A(0), gt = A(!1), Ce = A(null), Le = A(null), ie = A(null), Re = A(null), pt = A(null), yt = A(null);
|
|
178
178
|
A("#FFFFFF");
|
|
179
179
|
const e = A(Ke()), Ye = M(() => !!e.value.debug), { loading: U, FINAL_DATASET: ta, manualLoading: xt } = Ha({
|
|
180
180
|
...La(q),
|
|
@@ -283,7 +283,7 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
|
|
|
283
283
|
showTooltip: e.value.showTooltip
|
|
284
284
|
};
|
|
285
285
|
}, { immediate: !0 });
|
|
286
|
-
const
|
|
286
|
+
const fe = Bt(null), ke = Bt(null);
|
|
287
287
|
_a(async () => {
|
|
288
288
|
gt.value = !0, wt();
|
|
289
289
|
});
|
|
@@ -295,19 +295,19 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
|
|
|
295
295
|
title: e.value.title ? vt.value : null,
|
|
296
296
|
legend: e.value.showLegend ? dt.value : null,
|
|
297
297
|
slicer: [w.BAR, w.LINE].includes($.value) && e.value.zoomXy && k.value.maxSeriesLength > 1 ? ct.value : null,
|
|
298
|
-
source:
|
|
299
|
-
noTitle:
|
|
298
|
+
source: ft.value,
|
|
299
|
+
noTitle: ht.value
|
|
300
300
|
});
|
|
301
301
|
requestAnimationFrame(() => {
|
|
302
302
|
S.value.width = u, S.value.height = t;
|
|
303
303
|
});
|
|
304
304
|
});
|
|
305
|
-
|
|
305
|
+
fe.value && (ke.value && fe.value.unobserve(ke.value), fe.value.disconnect()), fe.value = new ResizeObserver(a), ke.value = ne.value.parentNode, fe.value.observe(ke.value);
|
|
306
306
|
}
|
|
307
|
-
|
|
307
|
+
Ft();
|
|
308
308
|
}
|
|
309
309
|
Dt(() => {
|
|
310
|
-
|
|
310
|
+
fe.value && (ke.value && fe.value.unobserve(ke.value), fe.value.disconnect());
|
|
311
311
|
});
|
|
312
312
|
const na = M(() => {
|
|
313
313
|
switch ($.value) {
|
|
@@ -381,79 +381,79 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
|
|
|
381
381
|
}
|
|
382
382
|
const $t = M(() => e.value.donutThicknessRatio < 0.01 ? 0.01 : e.value.donutThicknessRatio > 0.4 ? 0.4 : e.value.donutThicknessRatio), T = M(() => {
|
|
383
383
|
if ($.value !== w.DONUT) return null;
|
|
384
|
-
const a = k.value.dataset.map((
|
|
385
|
-
...
|
|
386
|
-
value:
|
|
387
|
-
name:
|
|
384
|
+
const a = k.value.dataset.map((f, _) => ({
|
|
385
|
+
...f,
|
|
386
|
+
value: f.VALUE || f.DATA || f.SERIE || f.VALUES || f.NUM || 0,
|
|
387
|
+
name: f.NAME || f.DESCRIPTION || f.TITLE || f.LABEL || `Serie ${_}`,
|
|
388
388
|
id: `donut_${_}`
|
|
389
|
-
})).map((
|
|
390
|
-
...
|
|
391
|
-
color:
|
|
392
|
-
immutableValue:
|
|
389
|
+
})).map((f, _) => ({
|
|
390
|
+
...f,
|
|
391
|
+
color: f.COLOR ? nt(f.COLOR) : _e.value[_ + e.value.paletteStartIndex] || ee[_ + e.value.paletteStartIndex] || ee[(_ + e.value.paletteStartIndex) % ee.length],
|
|
392
|
+
immutableValue: f.value
|
|
393
393
|
}));
|
|
394
|
-
function u(
|
|
394
|
+
function u(f, _) {
|
|
395
395
|
return Z({
|
|
396
|
-
v: isNaN(
|
|
396
|
+
v: isNaN(f.value / Ct(_)) ? 0 : f.value / Ct(_) * 100,
|
|
397
397
|
s: "%",
|
|
398
398
|
r: e.value.dataLabelRoundingPercentage
|
|
399
399
|
});
|
|
400
400
|
}
|
|
401
|
-
function t(
|
|
402
|
-
return
|
|
401
|
+
function t(f) {
|
|
402
|
+
return f.proportion * 100 > e.value.donutHideLabelUnderPercentage;
|
|
403
403
|
}
|
|
404
|
-
function l(
|
|
405
|
-
const d = ze.value.dataset.find((g,
|
|
404
|
+
function l(f, _) {
|
|
405
|
+
const d = ze.value.dataset.find((g, E) => `donut_${E}` === f).VALUE;
|
|
406
406
|
return Math.abs(String(Number(d.toFixed(0))).length - String(Number(_.toFixed(0))).length);
|
|
407
407
|
}
|
|
408
|
-
function r({ datapoint:
|
|
409
|
-
we.value = { datapoint:
|
|
408
|
+
function r({ datapoint: f, seriesIndex: _ }) {
|
|
409
|
+
we.value = { datapoint: f, seriesIndex: _, config: e.value, dataset: a }, oe.value = f.id;
|
|
410
410
|
const d = e.value.tooltipCustomFormat;
|
|
411
|
-
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint:
|
|
412
|
-
datapoint:
|
|
411
|
+
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: f, seriesIndex: _ }), Ge(d) && rt(() => d({
|
|
412
|
+
datapoint: f,
|
|
413
413
|
seriesIndex: _,
|
|
414
414
|
series: a,
|
|
415
415
|
config: e.value
|
|
416
416
|
})))
|
|
417
417
|
ge.value = d({
|
|
418
|
-
datapoint:
|
|
418
|
+
datapoint: f,
|
|
419
419
|
seriesIndex: _,
|
|
420
420
|
series: a,
|
|
421
421
|
config: e.value
|
|
422
422
|
});
|
|
423
423
|
else {
|
|
424
424
|
let i = "";
|
|
425
|
-
i += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${
|
|
425
|
+
i += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${f.name}</div>`, i += `<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="${f.color}"/></svg>`, i += `<b>${se(
|
|
426
426
|
e.value.formatter,
|
|
427
|
-
|
|
427
|
+
f.value,
|
|
428
428
|
Z({
|
|
429
429
|
p: e.value.valuePrefix,
|
|
430
|
-
v:
|
|
430
|
+
v: f.value,
|
|
431
431
|
s: e.value.valueSuffix,
|
|
432
432
|
r: e.value.dataLabelRoundingValue
|
|
433
433
|
}),
|
|
434
|
-
{ datapoint:
|
|
435
|
-
)}</b>`, i += `<span>(${Z({ v:
|
|
434
|
+
{ datapoint: f, seriesIndex: _ }
|
|
435
|
+
)}</b>`, i += `<span>(${Z({ v: f.proportion * 100, s: "%", r: e.value.dataLabelRoundingPercentage })})</span></div>`, ge.value = `<div>${i}</div>`;
|
|
436
436
|
}
|
|
437
437
|
me.value = !0;
|
|
438
438
|
}
|
|
439
|
-
function p({ datapoint:
|
|
440
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint:
|
|
439
|
+
function p({ datapoint: f, seriesIndex: _ }) {
|
|
440
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: f, seriesIndex: _ }), me.value = !1, oe.value = null, re.value = null;
|
|
441
441
|
}
|
|
442
|
-
function b({ datapoint:
|
|
443
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint:
|
|
442
|
+
function b({ datapoint: f, seriesIndex: _ }) {
|
|
443
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: f, seriesIndex: _ }), ye("selectDatapoint", f);
|
|
444
444
|
}
|
|
445
445
|
const I = {
|
|
446
446
|
centerX: S.value.width / 2,
|
|
447
447
|
centerY: S.value.height / 2
|
|
448
|
-
}, P = a.filter((
|
|
449
|
-
...
|
|
450
|
-
proportion: (
|
|
451
|
-
value:
|
|
452
|
-
absoluteValue: ze.value.dataset.find((d, i) => `donut_${i}` ===
|
|
448
|
+
}, P = a.filter((f) => !L.value.includes(f.id)).map((f) => f.value || 0).reduce((f, _) => f + _, 0), ae = a.map((f, _) => ({
|
|
449
|
+
...f,
|
|
450
|
+
proportion: (f.value || 0) / P,
|
|
451
|
+
value: f.value || 0,
|
|
452
|
+
absoluteValue: ze.value.dataset.find((d, i) => `donut_${i}` === f.id).VALUE,
|
|
453
453
|
shape: "circle"
|
|
454
454
|
})), ue = S.value.width / 2, J = S.value.height / 2, W = S.value.height * e.value.donutRadiusRatio;
|
|
455
455
|
return {
|
|
456
|
-
dataset: ae.filter((
|
|
456
|
+
dataset: ae.filter((f) => !L.value.includes(f.id)),
|
|
457
457
|
legend: ae,
|
|
458
458
|
drawingArea: I,
|
|
459
459
|
displayArcPercentage: u,
|
|
@@ -467,7 +467,7 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
|
|
|
467
467
|
cy: J,
|
|
468
468
|
radius: W,
|
|
469
469
|
chart: Ba(
|
|
470
|
-
{ series: a.filter((
|
|
470
|
+
{ series: a.filter((f) => !L.value.includes(f.id)) },
|
|
471
471
|
ue,
|
|
472
472
|
J,
|
|
473
473
|
W,
|
|
@@ -485,12 +485,12 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
|
|
|
485
485
|
end: k.value.maxSeriesLength
|
|
486
486
|
});
|
|
487
487
|
function ua() {
|
|
488
|
-
|
|
488
|
+
Ft();
|
|
489
489
|
}
|
|
490
|
-
const
|
|
491
|
-
async function
|
|
490
|
+
const Et = A(null);
|
|
491
|
+
async function Ft() {
|
|
492
492
|
await lt(), await lt();
|
|
493
|
-
const { zoomStartIndex: a, zoomEndIndex: u } = e.value, t =
|
|
493
|
+
const { zoomStartIndex: a, zoomEndIndex: u } = e.value, t = Et.value;
|
|
494
494
|
(a != null || u != null) && t ? (a != null && t.setStartValue(a), u != null && t.setEndValue(sa(u + 1))) : (y.value = {
|
|
495
495
|
start: 0,
|
|
496
496
|
end: k.value.maxSeriesLength
|
|
@@ -579,7 +579,7 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
|
|
|
579
579
|
color: d.COLOR ? nt(d.COLOR) : _e.value[i + e.value.paletteStartIndex] || ee[i + e.value.paletteStartIndex] || ee[(i + e.value.paletteStartIndex) % ee.length],
|
|
580
580
|
values: d.values.slice(y.value.start, y.value.end),
|
|
581
581
|
absoluteValues: d.values,
|
|
582
|
-
absoluteIndices: d.values.map((g,
|
|
582
|
+
absoluteIndices: d.values.map((g, E) => E).slice(y.value.start, y.value.end)
|
|
583
583
|
})));
|
|
584
584
|
const r = {
|
|
585
585
|
max: Math.max(...l.filter((d) => !L.value.includes(d.id)).flatMap((d) => d.values)),
|
|
@@ -592,8 +592,8 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
|
|
|
592
592
|
})), ue = l.map((d, i) => ({
|
|
593
593
|
...d,
|
|
594
594
|
shape: "circle",
|
|
595
|
-
coordinates: d.values.map((g,
|
|
596
|
-
x: t.left + P * (
|
|
595
|
+
coordinates: d.values.map((g, E) => ({
|
|
596
|
+
x: t.left + P * (E + 1) - P / 2,
|
|
597
597
|
y: t.bottom - (g + b) / (p.max + b) * t.height,
|
|
598
598
|
value: g
|
|
599
599
|
}))
|
|
@@ -631,9 +631,9 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
|
|
|
631
631
|
config: e.value
|
|
632
632
|
});
|
|
633
633
|
else {
|
|
634
|
-
let
|
|
635
|
-
te.value[i[0].absoluteIndex] && (
|
|
636
|
-
|
|
634
|
+
let E = "";
|
|
635
|
+
te.value[i[0].absoluteIndex] && (E += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${te.value[i[0].absoluteIndex].text}</div>`), i.forEach((B, H) => {
|
|
636
|
+
E += `
|
|
637
637
|
<div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
|
|
638
638
|
<svg viewBox="0 0 12 12" height="14" width="12"><circle cx="6" cy="6" r="6" stroke="none" fill="${B.color}"/></svg>
|
|
639
639
|
<span>${B.name}:</span>
|
|
@@ -651,11 +651,11 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
|
|
|
651
651
|
</b>
|
|
652
652
|
</div>
|
|
653
653
|
`;
|
|
654
|
-
}), ge.value =
|
|
654
|
+
}), ge.value = E;
|
|
655
655
|
}
|
|
656
656
|
me.value = !0;
|
|
657
657
|
}
|
|
658
|
-
function
|
|
658
|
+
function f(d) {
|
|
659
659
|
const i = J(d);
|
|
660
660
|
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: i, seriesIndex: d + y.value.start }), oe.value = null, re.value = null, me.value = !1;
|
|
661
661
|
}
|
|
@@ -672,7 +672,7 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
|
|
|
672
672
|
slotSize: P,
|
|
673
673
|
yLabels: ae,
|
|
674
674
|
useTooltip: W,
|
|
675
|
-
killTooltip:
|
|
675
|
+
killTooltip: f,
|
|
676
676
|
selectDatapoint: _
|
|
677
677
|
};
|
|
678
678
|
}), v = M(() => {
|
|
@@ -714,7 +714,7 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
|
|
|
714
714
|
color: i.COLOR ? nt(i.COLOR) : _e.value[g + e.value.paletteStartIndex] || ee[g + e.value.paletteStartIndex] || ee[(g + e.value.paletteStartIndex) % ee.length],
|
|
715
715
|
values: i.values.slice(y.value.start, y.value.end),
|
|
716
716
|
absoluteValues: i.values,
|
|
717
|
-
absoluteIndices: i.values.map((
|
|
717
|
+
absoluteIndices: i.values.map((E, B) => B).slice(y.value.start, y.value.end)
|
|
718
718
|
})));
|
|
719
719
|
const r = {
|
|
720
720
|
max: Math.max(...l.filter((i) => !L.value.includes(i.id)).flatMap((i) => i.values)) < 0 ? 0 : Math.max(...l.filter((i) => !L.value.includes(i.id)).flatMap((i) => i.values)),
|
|
@@ -727,26 +727,26 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
|
|
|
727
727
|
})), ue = l.map((i, g) => ({
|
|
728
728
|
...i,
|
|
729
729
|
shape: "square",
|
|
730
|
-
coordinates: i.values.map((
|
|
731
|
-
const H = (
|
|
730
|
+
coordinates: i.values.map((E, B) => {
|
|
731
|
+
const H = (E + b) / (r.max + b) * t.height, le = Math.abs(E) / Math.abs(r.min) * (t.height - I), at = b / (r.max + b) * t.height, Ee = P / l.filter((pe) => !L.value.includes(pe.id)).length - e.value.barGap / l.filter((pe) => !L.value.includes(pe.id)).length;
|
|
732
732
|
return {
|
|
733
|
-
x: t.left + P * B +
|
|
734
|
-
y:
|
|
735
|
-
height:
|
|
736
|
-
value:
|
|
737
|
-
width:
|
|
733
|
+
x: t.left + P * B + Ee * g + e.value.barGap / 2,
|
|
734
|
+
y: E > 0 ? t.bottom - H : I,
|
|
735
|
+
height: E > 0 ? H - at : le,
|
|
736
|
+
value: E,
|
|
737
|
+
width: Ee
|
|
738
738
|
};
|
|
739
739
|
})
|
|
740
740
|
})), J = l.filter((i) => !L.value.includes(i.id)).map((i, g) => ({
|
|
741
741
|
...i,
|
|
742
|
-
coordinates: i.values.map((
|
|
743
|
-
const H = (
|
|
742
|
+
coordinates: i.values.map((E, B) => {
|
|
743
|
+
const H = (E + b) / (r.max + b) * t.height, le = Math.abs(E) / (r.max + b) * t.height, at = b / (r.max + b) * t.height, Ee = P / l.filter((pe) => !L.value.includes(pe.id)).length - e.value.barGap / l.filter((pe) => !L.value.includes(pe.id)).length;
|
|
744
744
|
return {
|
|
745
|
-
x: t.left + P * B +
|
|
746
|
-
y:
|
|
747
|
-
height:
|
|
748
|
-
value:
|
|
749
|
-
width:
|
|
745
|
+
x: t.left + P * B + Ee * g + e.value.barGap / 2,
|
|
746
|
+
y: E > 0 ? t.bottom - H : I,
|
|
747
|
+
height: E > 0 ? H - at : le,
|
|
748
|
+
value: E,
|
|
749
|
+
width: Ee
|
|
750
750
|
};
|
|
751
751
|
})
|
|
752
752
|
}));
|
|
@@ -757,18 +757,18 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
|
|
|
757
757
|
absoluteIndex: g.absoluteIndices[i]
|
|
758
758
|
})).filter((g) => !L.value.includes(g.id));
|
|
759
759
|
}
|
|
760
|
-
function
|
|
760
|
+
function f(i) {
|
|
761
761
|
oe.value = i, re.value = i;
|
|
762
762
|
const g = W(i);
|
|
763
763
|
we.value = { datapoint: g, seriesIndex: i, config: e.value, dataset: l };
|
|
764
|
-
const
|
|
765
|
-
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: g, seriesIndex: i + y.value.start }), Ge(
|
|
764
|
+
const E = e.value.tooltipCustomFormat;
|
|
765
|
+
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: g, seriesIndex: i + y.value.start }), Ge(E) && rt(() => E({
|
|
766
766
|
datapoint: g,
|
|
767
767
|
seriesIndex: i,
|
|
768
768
|
series: l,
|
|
769
769
|
config: e.value
|
|
770
770
|
})))
|
|
771
|
-
ge.value =
|
|
771
|
+
ge.value = E({
|
|
772
772
|
point: g,
|
|
773
773
|
seriesIndex: i,
|
|
774
774
|
series: l,
|
|
@@ -816,7 +816,7 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
|
|
|
816
816
|
extremes: r,
|
|
817
817
|
slotSize: P,
|
|
818
818
|
yLabels: ae,
|
|
819
|
-
useTooltip:
|
|
819
|
+
useTooltip: f,
|
|
820
820
|
killTooltip: _,
|
|
821
821
|
selectDatapoint: d
|
|
822
822
|
};
|
|
@@ -831,10 +831,10 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
|
|
|
831
831
|
l.style.animation = "none", l.style.transition = "none", l.style.opacity = u, l.style.transform = `scale(${t})`, l.style.transformBox = "fill-box", l.style.transformOrigin = "50% 50%";
|
|
832
832
|
});
|
|
833
833
|
}
|
|
834
|
-
function
|
|
834
|
+
function fa(a) {
|
|
835
835
|
return a.cx?.baseVal?.value ?? parseFloat(a.getAttribute("cx"));
|
|
836
836
|
}
|
|
837
|
-
function
|
|
837
|
+
function ha(a) {
|
|
838
838
|
const u = a.getAttribute("x");
|
|
839
839
|
if (u != null) return parseFloat(u);
|
|
840
840
|
const t = a.getCTM?.();
|
|
@@ -868,21 +868,21 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
|
|
|
868
868
|
labelStep: I = 0,
|
|
869
869
|
intraSeriesStep: P = 0
|
|
870
870
|
} = {}) {
|
|
871
|
-
const ae = Array.isArray(Ce?.value) ? Ce.value : [Ce?.value].filter(Boolean), ue = Array.isArray(Le?.value) ? Le.value : [Le?.value].filter(Boolean), J = [...ae, ...ue].filter(Boolean), W = ne?.value || null,
|
|
872
|
-
J.forEach(ca), It(
|
|
873
|
-
const d =
|
|
871
|
+
const ae = Array.isArray(Ce?.value) ? Ce.value : [Ce?.value].filter(Boolean), ue = Array.isArray(Le?.value) ? Le.value : [Le?.value].filter(Boolean), J = [...ae, ...ue].filter(Boolean), W = ne?.value || null, f = W ? Array.from(W.querySelectorAll(".vue-ui-quick-chart-plot")) : [], _ = W ? Array.from(W.querySelectorAll(".vue-ui-quick-chart-label")) : [];
|
|
872
|
+
J.forEach(ca), It(f, { fromOpacity: "0", fromScale: "0.75" }), It(_, { fromOpacity: "0", fromScale: "0.98" }), f.forEach((g) => g.classList.remove("quick-animation")), _.forEach((g) => g.classList.remove("quick-animation")), W && W.offsetWidth;
|
|
873
|
+
const d = f.length ? Ot(f, fa) : [], i = _.length ? Ot(_, ha) : [];
|
|
874
874
|
requestAnimationFrame(() => {
|
|
875
875
|
requestAnimationFrame(() => {
|
|
876
876
|
J.forEach((g) => {
|
|
877
877
|
g.style.transition = `stroke-dashoffset ${a}ms ${u}`, g.style.strokeDashoffset = "0";
|
|
878
|
-
}), d.forEach((g,
|
|
878
|
+
}), d.forEach((g, E) => {
|
|
879
879
|
g.items.forEach((B, H) => {
|
|
880
|
-
const le = r +
|
|
880
|
+
const le = r + E * b + H * P;
|
|
881
881
|
B.style.transition = `opacity ${t}ms ease-out ${le}ms, transform ${t}ms ease-out ${le}ms`, B.style.opacity = "1", B.style.transform = "scale(1)";
|
|
882
882
|
});
|
|
883
|
-
}), i.forEach((g,
|
|
883
|
+
}), i.forEach((g, E) => {
|
|
884
884
|
g.items.forEach((B, H) => {
|
|
885
|
-
const le = p +
|
|
885
|
+
const le = p + E * I + H * P;
|
|
886
886
|
B.style.transition = `opacity ${l}ms ease-out ${le}ms, transform ${l}ms ease-out ${le}ms`, B.style.opacity = "1", B.style.transform = "scale(1)";
|
|
887
887
|
});
|
|
888
888
|
});
|
|
@@ -992,7 +992,7 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
|
|
|
992
992
|
id: `${$.value}_${Y.value}`,
|
|
993
993
|
ref_key: "quickChart",
|
|
994
994
|
ref: ne,
|
|
995
|
-
class:
|
|
995
|
+
class: he({ "vue-data-ui-component": !0, "vue-ui-quick-chart": !0, "vue-data-ui-wrapper-fullscreen": He.value }),
|
|
996
996
|
style: D(`background:${e.value.backgroundColor};color:${e.value.color};font-family:${e.value.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
|
|
997
997
|
onMouseenter: u[2] || (u[2] = () => bt(!0)),
|
|
998
998
|
onMouseleave: u[3] || (u[3] = () => bt(!1))
|
|
@@ -1028,7 +1028,7 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
|
|
|
1028
1028
|
oa.value ? (o(), n("div", {
|
|
1029
1029
|
key: 1,
|
|
1030
1030
|
ref_key: "noTitle",
|
|
1031
|
-
ref:
|
|
1031
|
+
ref: ht,
|
|
1032
1032
|
class: "vue-data-ui-no-title-space",
|
|
1033
1033
|
style: "height:36px; width: 100%;background:transparent"
|
|
1034
1034
|
}, null, 512)) : m("", !0),
|
|
@@ -1182,7 +1182,7 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
|
|
|
1182
1182
|
in: "SourceGraphic",
|
|
1183
1183
|
stdDeviation: 2,
|
|
1184
1184
|
id: `blur_std_${Y.value}`
|
|
1185
|
-
}, null, 8,
|
|
1185
|
+
}, null, 8, fl),
|
|
1186
1186
|
u[4] || (u[4] = z("feColorMatrix", {
|
|
1187
1187
|
type: "saturate",
|
|
1188
1188
|
values: "0"
|
|
@@ -1199,11 +1199,11 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
|
|
|
1199
1199
|
"flood-opacity": "0.5",
|
|
1200
1200
|
"flood-color": e.value.donutShadowColor
|
|
1201
1201
|
}, null, 8, ml)
|
|
1202
|
-
], 8,
|
|
1202
|
+
], 8, hl)
|
|
1203
1203
|
]),
|
|
1204
1204
|
$.value === w.DONUT ? (o(), n(x, { key: 3 }, [
|
|
1205
1205
|
e.value.showDataLabels ? (o(), n("g", gl, [
|
|
1206
|
-
(o(!0), n(x, null,
|
|
1206
|
+
(o(!0), n(x, null, F(T.value.chart, (t, l) => (o(), n(x, null, [
|
|
1207
1207
|
T.value.isArcBigEnough(t) ? (o(), n("path", {
|
|
1208
1208
|
key: 0,
|
|
1209
1209
|
d: s(Na)(t, { x: S.value.width / 2, y: S.value.height / 2 }, 16, 16, !1, !1, S.value.height * $t.value, 12, e.value.donutCurvedMarkers),
|
|
@@ -1224,14 +1224,14 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
|
|
|
1224
1224
|
filter: e.value.donutUseShadow ? `url(#shadow_${Y.value})` : ""
|
|
1225
1225
|
}, null, 8, yl),
|
|
1226
1226
|
z("g", xl, [
|
|
1227
|
-
(o(!0), n(x, null,
|
|
1227
|
+
(o(!0), n(x, null, F(T.value.chart, (t, l) => (o(), n("path", {
|
|
1228
1228
|
d: t.arcSlice,
|
|
1229
1229
|
fill: t.color,
|
|
1230
1230
|
stroke: e.value.donutStroke || e.value.backgroundColor,
|
|
1231
1231
|
"stroke-width": e.value.donutStrokeWidth,
|
|
1232
1232
|
filter: $e(t.id)
|
|
1233
1233
|
}, null, 8, kl))), 256)),
|
|
1234
|
-
(o(!0), n(x, null,
|
|
1234
|
+
(o(!0), n(x, null, F(T.value.chart, (t, l) => (o(), n("path", {
|
|
1235
1235
|
d: t.arcSlice,
|
|
1236
1236
|
fill: "transparent",
|
|
1237
1237
|
onMouseenter: (r) => T.value.useTooltip({ datapoint: t, seriesIndex: l }),
|
|
@@ -1240,7 +1240,7 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
|
|
|
1240
1240
|
}, null, 40, bl))), 256))
|
|
1241
1241
|
]),
|
|
1242
1242
|
e.value.showDataLabels ? (o(), n("g", Sl, [
|
|
1243
|
-
(o(!0), n(x, null,
|
|
1243
|
+
(o(!0), n(x, null, F(T.value.chart, (t, l) => (o(), n(x, null, [
|
|
1244
1244
|
T.value.isArcBigEnough(t) ? (o(), n("circle", {
|
|
1245
1245
|
key: 0,
|
|
1246
1246
|
cx: s(Oe)(t).x,
|
|
@@ -1305,7 +1305,7 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
|
|
|
1305
1305
|
], 64)) : m("", !0),
|
|
1306
1306
|
$.value === w.LINE ? (o(), n(x, { key: 4 }, [
|
|
1307
1307
|
e.value.xyShowGrid ? (o(), n("g", $l, [
|
|
1308
|
-
(o(!0), n(x, null,
|
|
1308
|
+
(o(!0), n(x, null, F(c.value.yLabels, (t) => (o(), n(x, null, [
|
|
1309
1309
|
t.y <= c.value.drawingArea.bottom ? (o(), n("line", {
|
|
1310
1310
|
key: 0,
|
|
1311
1311
|
x1: c.value.drawingArea.left,
|
|
@@ -1315,9 +1315,9 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
|
|
|
1315
1315
|
stroke: e.value.xyGridStroke,
|
|
1316
1316
|
"stroke-width": e.value.xyGridStrokeWidth,
|
|
1317
1317
|
"stroke-linecap": "round"
|
|
1318
|
-
}, null, 8,
|
|
1318
|
+
}, null, 8, El)) : m("", !0)
|
|
1319
1319
|
], 64))), 256)),
|
|
1320
|
-
(o(!0), n(x, null,
|
|
1320
|
+
(o(!0), n(x, null, F(c.value.extremes.maxSeries + 1, (t, l) => (o(), n("line", {
|
|
1321
1321
|
x1: c.value.drawingArea.left + c.value.slotSize * l,
|
|
1322
1322
|
x2: c.value.drawingArea.left + c.value.slotSize * l,
|
|
1323
1323
|
y1: c.value.drawingArea.top,
|
|
@@ -1325,7 +1325,7 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
|
|
|
1325
1325
|
stroke: e.value.xyGridStroke,
|
|
1326
1326
|
"stroke-width": e.value.xyGridStrokeWidth,
|
|
1327
1327
|
"stroke-linecap": "round"
|
|
1328
|
-
}, null, 8,
|
|
1328
|
+
}, null, 8, Fl))), 256))
|
|
1329
1329
|
])) : m("", !0),
|
|
1330
1330
|
e.value.xyShowAxis ? (o(), n("g", Tl, [
|
|
1331
1331
|
z("line", {
|
|
@@ -1353,7 +1353,7 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
|
|
|
1353
1353
|
ref_key: "scaleLabels",
|
|
1354
1354
|
ref: Re
|
|
1355
1355
|
}, [
|
|
1356
|
-
(o(!0), n(x, null,
|
|
1356
|
+
(o(!0), n(x, null, F(c.value.yLabels, (t, l) => (o(), n(x, null, [
|
|
1357
1357
|
t.y <= c.value.drawingArea.bottom ? (o(), n("line", {
|
|
1358
1358
|
key: 0,
|
|
1359
1359
|
x1: t.x + 4,
|
|
@@ -1385,7 +1385,7 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
|
|
|
1385
1385
|
], 64))), 256))
|
|
1386
1386
|
], 512)) : m("", !0),
|
|
1387
1387
|
e.value.xyShowScale && e.value.xyPeriods.length ? (o(), n("g", Rl, [
|
|
1388
|
-
(o(!0), n(x, null,
|
|
1388
|
+
(o(!0), n(x, null, F(te.value.map((t) => t.text), (t, l) => (o(), n(x, null, [
|
|
1389
1389
|
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && l % Math.floor((y.value.end - y.value.start) / be.value) === 0 || y.value.end - y.value.start <= be.value ? (o(), n("line", {
|
|
1390
1390
|
key: 0,
|
|
1391
1391
|
x1: c.value.drawingArea.left + c.value.slotSize * (l + 1) - c.value.slotSize / 2,
|
|
@@ -1401,7 +1401,7 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
|
|
|
1401
1401
|
ref_key: "timeLabelsEls",
|
|
1402
1402
|
ref: ie
|
|
1403
1403
|
}, [
|
|
1404
|
-
(o(!0), n(x, null,
|
|
1404
|
+
(o(!0), n(x, null, F(te.value.map((t) => t.text), (t, l) => (o(), n(x, null, [
|
|
1405
1405
|
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && l % Math.floor((y.value.end - y.value.start) / be.value) === 0 || y.value.end - y.value.start <= be.value ? (o(), n("g", Dl, [
|
|
1406
1406
|
String(t).includes(`
|
|
1407
1407
|
`) ? (o(), n("text", {
|
|
@@ -1431,7 +1431,7 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
|
|
|
1431
1431
|
], 512)
|
|
1432
1432
|
])) : m("", !0),
|
|
1433
1433
|
z("g", Vl, [
|
|
1434
|
-
(o(!0), n(x, null,
|
|
1434
|
+
(o(!0), n(x, null, F(c.value.dataset, (t, l) => (o(), n("g", Hl, [
|
|
1435
1435
|
e.value.lineSmooth ? (o(), n(x, { key: 0 }, [
|
|
1436
1436
|
z("path", {
|
|
1437
1437
|
ref_for: !0,
|
|
@@ -1442,7 +1442,7 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
|
|
|
1442
1442
|
"stroke-width": e.value.lineStrokeWidth + 1,
|
|
1443
1443
|
"stroke-linecap": "round",
|
|
1444
1444
|
fill: "none",
|
|
1445
|
-
class:
|
|
1445
|
+
class: he({ "quick-animation": !s(U), "vue-data-ui-line-animated": e.value.lineAnimated && !s(U) }),
|
|
1446
1446
|
style: D({ transition: s(U) ? void 0 : "all 0.3s ease-in-out" })
|
|
1447
1447
|
}, null, 14, ql),
|
|
1448
1448
|
z("path", {
|
|
@@ -1454,7 +1454,7 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
|
|
|
1454
1454
|
"stroke-width": e.value.lineStrokeWidth,
|
|
1455
1455
|
"stroke-linecap": "round",
|
|
1456
1456
|
fill: "none",
|
|
1457
|
-
class:
|
|
1457
|
+
class: he({ "quick-animation": !s(U), "vue-data-ui-line-animated": e.value.lineAnimated && !s(U) }),
|
|
1458
1458
|
style: D({ transition: s(U) ? void 0 : "all 0.3s ease-in-out" })
|
|
1459
1459
|
}, null, 14, Wl)
|
|
1460
1460
|
], 64)) : (o(), n(x, { key: 1 }, [
|
|
@@ -1467,7 +1467,7 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
|
|
|
1467
1467
|
"stroke-width": e.value.lineStrokeWidth + 1,
|
|
1468
1468
|
"stroke-linecap": "round",
|
|
1469
1469
|
fill: "none",
|
|
1470
|
-
class:
|
|
1470
|
+
class: he({ "quick-animation": !s(U), "vue-data-ui-line-animated": e.value.lineAnimated && !s(U) }),
|
|
1471
1471
|
style: D({ transition: s(U) ? void 0 : "all 0.3s ease-in-out" })
|
|
1472
1472
|
}, null, 14, Gl),
|
|
1473
1473
|
z("path", {
|
|
@@ -1479,31 +1479,31 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
|
|
|
1479
1479
|
"stroke-width": e.value.lineStrokeWidth,
|
|
1480
1480
|
"stroke-linecap": "round",
|
|
1481
1481
|
fill: "none",
|
|
1482
|
-
class:
|
|
1482
|
+
class: he({ "quick-animation": !s(U), "vue-data-ui-line-animated": e.value.lineAnimated && !s(U) }),
|
|
1483
1483
|
style: D({ transition: s(U) ? void 0 : "all 0.3s ease-in-out" })
|
|
1484
1484
|
}, null, 14, jl)
|
|
1485
1485
|
], 64)),
|
|
1486
|
-
(o(!0), n(x, null,
|
|
1486
|
+
(o(!0), n(x, null, F(t.coordinates, (r, p) => (o(), n("circle", {
|
|
1487
1487
|
cx: r.x,
|
|
1488
1488
|
cy: s(ve)(r.y),
|
|
1489
1489
|
r: 3,
|
|
1490
1490
|
fill: t.color,
|
|
1491
1491
|
stroke: e.value.backgroundColor,
|
|
1492
1492
|
"stroke-width": "0.5",
|
|
1493
|
-
class:
|
|
1493
|
+
class: he({ "vue-ui-quick-chart-plot": !0, "quick-animation": !s(U) }),
|
|
1494
1494
|
style: D({ transition: s(U) ? void 0 : "all 0.3s ease-in-out" })
|
|
1495
1495
|
}, null, 14, Xl))), 256))
|
|
1496
1496
|
]))), 256))
|
|
1497
1497
|
]),
|
|
1498
1498
|
e.value.showDataLabels ? (o(), n("g", Zl, [
|
|
1499
|
-
(o(!0), n(x, null,
|
|
1500
|
-
(o(!0), n(x, null,
|
|
1499
|
+
(o(!0), n(x, null, F(c.value.dataset, (t, l) => (o(), n(x, null, [
|
|
1500
|
+
(o(!0), n(x, null, F(t.coordinates, (r, p) => (o(), n("text", {
|
|
1501
1501
|
"text-anchor": "middle",
|
|
1502
1502
|
"font-size": e.value.dataLabelFontSize,
|
|
1503
1503
|
fill: t.color,
|
|
1504
1504
|
x: r.x,
|
|
1505
1505
|
y: s(ve)(r.y) - e.value.dataLabelFontSize / 2,
|
|
1506
|
-
class:
|
|
1506
|
+
class: he({ "vue-ui-quick-chart-label": !0, "quick-animation": !s(U) }),
|
|
1507
1507
|
style: D({ transition: s(U) ? void 0 : "all 0.3s ease-in-out" })
|
|
1508
1508
|
}, N(s(se)(
|
|
1509
1509
|
e.value.formatter,
|
|
@@ -1519,7 +1519,7 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
|
|
|
1519
1519
|
], 64))), 256))
|
|
1520
1520
|
])) : m("", !0),
|
|
1521
1521
|
Qe.value ? (o(), n("g", Jl, [
|
|
1522
|
-
(o(!0), n(x, null,
|
|
1522
|
+
(o(!0), n(x, null, F(c.value.extremes.maxSeries, (t, l) => (o(), n("rect", {
|
|
1523
1523
|
x: c.value.drawingArea.left + l * c.value.slotSize,
|
|
1524
1524
|
y: c.value.drawingArea.top,
|
|
1525
1525
|
height: c.value.drawingArea.height <= 0 ? 1e-5 : c.value.drawingArea.height,
|
|
@@ -1534,7 +1534,7 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
|
|
|
1534
1534
|
], 64)) : m("", !0),
|
|
1535
1535
|
$.value === w.BAR ? (o(), n(x, { key: 5 }, [
|
|
1536
1536
|
e.value.xyShowGrid ? (o(), n("g", Kl, [
|
|
1537
|
-
(o(!0), n(x, null,
|
|
1537
|
+
(o(!0), n(x, null, F(v.value.yLabels, (t) => (o(), n(x, null, [
|
|
1538
1538
|
t.y <= v.value.drawingArea.bottom ? (o(), n("line", {
|
|
1539
1539
|
key: 0,
|
|
1540
1540
|
x1: v.value.drawingArea.left,
|
|
@@ -1546,7 +1546,7 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
|
|
|
1546
1546
|
"stroke-linecap": "round"
|
|
1547
1547
|
}, null, 8, eo)) : m("", !0)
|
|
1548
1548
|
], 64))), 256)),
|
|
1549
|
-
(o(!0), n(x, null,
|
|
1549
|
+
(o(!0), n(x, null, F(v.value.extremes.maxSeries + 1, (t, l) => (o(), n("line", {
|
|
1550
1550
|
x1: v.value.drawingArea.left + v.value.slotSize * l,
|
|
1551
1551
|
x2: v.value.drawingArea.left + v.value.slotSize * l,
|
|
1552
1552
|
y1: v.value.drawingArea.top,
|
|
@@ -1582,7 +1582,7 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
|
|
|
1582
1582
|
ref_key: "scaleLabels",
|
|
1583
1583
|
ref: Re
|
|
1584
1584
|
}, [
|
|
1585
|
-
(o(!0), n(x, null,
|
|
1585
|
+
(o(!0), n(x, null, F(v.value.yLabels, (t, l) => (o(), n(x, null, [
|
|
1586
1586
|
t.y <= v.value.drawingArea.bottom ? (o(), n("line", {
|
|
1587
1587
|
key: 0,
|
|
1588
1588
|
x1: t.x + 4,
|
|
@@ -1614,7 +1614,7 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
|
|
|
1614
1614
|
], 64))), 256))
|
|
1615
1615
|
], 512)) : m("", !0),
|
|
1616
1616
|
e.value.xyShowScale && e.value.xyPeriods.length ? (o(), n("g", ro, [
|
|
1617
|
-
(o(!0), n(x, null,
|
|
1617
|
+
(o(!0), n(x, null, F(e.value.xyPeriods.slice(y.value.start, y.value.end), (t, l) => (o(), n("line", {
|
|
1618
1618
|
x1: v.value.drawingArea.left + v.value.slotSize * (l + 1) - v.value.slotSize / 2,
|
|
1619
1619
|
x2: v.value.drawingArea.left + v.value.slotSize * (l + 1) - v.value.slotSize / 2,
|
|
1620
1620
|
y1: v.value.drawingArea.bottom,
|
|
@@ -1627,7 +1627,7 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
|
|
|
1627
1627
|
ref_key: "timeLabelsEls",
|
|
1628
1628
|
ref: ie
|
|
1629
1629
|
}, [
|
|
1630
|
-
(o(!0), n(x, null,
|
|
1630
|
+
(o(!0), n(x, null, F(te.value.map((t) => t.text), (t, l) => (o(), n(x, null, [
|
|
1631
1631
|
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && l % Math.floor((y.value.end - y.value.start) / be.value) === 0 || y.value.end - y.value.start <= be.value ? (o(), n("g", so, [
|
|
1632
1632
|
String(t).includes(`
|
|
1633
1633
|
`) ? (o(), n("text", {
|
|
@@ -1656,9 +1656,9 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
|
|
|
1656
1656
|
], 64))), 256))
|
|
1657
1657
|
], 512)
|
|
1658
1658
|
])) : m("", !0),
|
|
1659
|
-
z("g",
|
|
1660
|
-
(o(!0), n(x, null,
|
|
1661
|
-
(o(!0), n(x, null,
|
|
1659
|
+
z("g", fo, [
|
|
1660
|
+
(o(!0), n(x, null, F(v.value.dataset, (t, l) => (o(), n(x, null, [
|
|
1661
|
+
(o(!0), n(x, null, F(t.coordinates, (r, p) => (o(), n("rect", {
|
|
1662
1662
|
x: r.x,
|
|
1663
1663
|
width: r.width <= 0 ? 1e-5 : r.width,
|
|
1664
1664
|
height: s(ve)(r.height <= 0 ? 1e-5 : r.height),
|
|
@@ -1667,7 +1667,7 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
|
|
|
1667
1667
|
stroke: e.value.backgroundColor,
|
|
1668
1668
|
"stroke-width": e.value.barStrokeWidth,
|
|
1669
1669
|
"stroke-linecap": "round",
|
|
1670
|
-
class:
|
|
1670
|
+
class: he({ "vue-data-ui-bar-animated": e.value.barAnimated && r.value < 0 && !s(U) })
|
|
1671
1671
|
}, [
|
|
1672
1672
|
e.value.barAnimated && r.value > 0 && !s(De) && !s(Ne) ? (o(), n("animate", {
|
|
1673
1673
|
key: 0,
|
|
@@ -1683,12 +1683,12 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
|
|
|
1683
1683
|
to: v.value.absoluteZero - r.height,
|
|
1684
1684
|
dur: "0.5s"
|
|
1685
1685
|
}, null, 8, go)) : m("", !0)
|
|
1686
|
-
], 10,
|
|
1686
|
+
], 10, ho))), 256))
|
|
1687
1687
|
], 64))), 256))
|
|
1688
1688
|
]),
|
|
1689
1689
|
e.value.showDataLabels ? (o(), n("g", po, [
|
|
1690
|
-
(o(!0), n(x, null,
|
|
1691
|
-
(o(!0), n(x, null,
|
|
1690
|
+
(o(!0), n(x, null, F(v.value.dataset, (t, l) => (o(), n(x, null, [
|
|
1691
|
+
(o(!0), n(x, null, F(t.coordinates, (r, p) => (o(), n("text", {
|
|
1692
1692
|
x: r.x + r.width / 2,
|
|
1693
1693
|
y: s(ve)(r.y) - e.value.dataLabelFontSize / 2,
|
|
1694
1694
|
"text-anchor": "middle",
|
|
@@ -1709,7 +1709,7 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
|
|
|
1709
1709
|
], 64))), 256))
|
|
1710
1710
|
])) : m("", !0),
|
|
1711
1711
|
Qe.value ? (o(), n("g", xo, [
|
|
1712
|
-
(o(!0), n(x, null,
|
|
1712
|
+
(o(!0), n(x, null, F(v.value.extremes.maxSeries, (t, l) => (o(), n("rect", {
|
|
1713
1713
|
x: v.value.drawingArea.left + l * v.value.slotSize,
|
|
1714
1714
|
y: v.value.drawingArea.top,
|
|
1715
1715
|
height: v.value.drawingArea.height <= 0 ? 1e-5 : v.value.drawingArea.height,
|
|
@@ -1785,7 +1785,7 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
|
|
|
1785
1785
|
}, [
|
|
1786
1786
|
(o(), Ie(Qa, {
|
|
1787
1787
|
ref_key: "slicerComponent",
|
|
1788
|
-
ref:
|
|
1788
|
+
ref: Et,
|
|
1789
1789
|
key: `slicer_${Me.value}`,
|
|
1790
1790
|
background: e.value.zoomColor,
|
|
1791
1791
|
borderColor: e.value.backgroundColor,
|
|
@@ -1835,7 +1835,7 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
|
|
|
1835
1835
|
z("div", {
|
|
1836
1836
|
id: `legend-bottom-${Y.value}`
|
|
1837
1837
|
}, null, 8, _o),
|
|
1838
|
-
gt.value ? (o(), Ie(
|
|
1838
|
+
gt.value ? (o(), Ie(Ea, {
|
|
1839
1839
|
key: 7,
|
|
1840
1840
|
to: e.value.legendPosition === "top" ? `#legend-top-${Y.value}` : `#legend-bottom-${Y.value}`
|
|
1841
1841
|
}, [
|
|
@@ -1846,7 +1846,7 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
|
|
|
1846
1846
|
class: "vue-ui-quick-chart-legend",
|
|
1847
1847
|
style: D(`background:transparent;color:${e.value.color}`)
|
|
1848
1848
|
}, [
|
|
1849
|
-
$.value === w.DONUT ? (o(!0), n(x, { key: 0 },
|
|
1849
|
+
$.value === w.DONUT ? (o(!0), n(x, { key: 0 }, F(T.value.legend, (t, l) => (o(), n("div", {
|
|
1850
1850
|
class: "vue-ui-quick-chart-legend-item",
|
|
1851
1851
|
onClick: (r) => {
|
|
1852
1852
|
ia(t, T.value.dataset), ye("selectLegend", t);
|
|
@@ -1894,7 +1894,7 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
|
|
|
1894
1894
|
})) + ") ", 5))
|
|
1895
1895
|
], 64))
|
|
1896
1896
|
], 12, zo))), 256)) : m("", !0),
|
|
1897
|
-
$.value === w.LINE ? (o(!0), n(x, { key: 1 },
|
|
1897
|
+
$.value === w.LINE ? (o(!0), n(x, { key: 1 }, F(c.value.legend, (t, l) => (o(), n("div", {
|
|
1898
1898
|
class: "vue-ui-quick-chart-legend-item",
|
|
1899
1899
|
onClick: (r) => {
|
|
1900
1900
|
Lt(t.id, c.value.legend.length - 1), ye("selectLegend", t);
|
|
@@ -1915,7 +1915,7 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
|
|
|
1915
1915
|
}, N(t.name), 5)
|
|
1916
1916
|
], 64))
|
|
1917
1917
|
], 12, $o))), 256)) : m("", !0),
|
|
1918
|
-
$.value === w.BAR ? (o(!0), n(x, { key: 2 },
|
|
1918
|
+
$.value === w.BAR ? (o(!0), n(x, { key: 2 }, F(v.value.legend, (t, l) => (o(), n("div", {
|
|
1919
1919
|
class: "vue-ui-quick-chart-legend-item",
|
|
1920
1920
|
onClick: (r) => {
|
|
1921
1921
|
Lt(t.id, v.value.legend.length - 1), ye("selectLegend", t);
|
|
@@ -1935,13 +1935,13 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
|
|
|
1935
1935
|
style: D(`font-size:${e.value.legendFontSize}px`)
|
|
1936
1936
|
}, N(t.name), 5)
|
|
1937
1937
|
], 64))
|
|
1938
|
-
], 12,
|
|
1938
|
+
], 12, Eo))), 256)) : m("", !0)
|
|
1939
1939
|
], 4)) : m("", !0)
|
|
1940
1940
|
], 8, ["to"])) : m("", !0),
|
|
1941
1941
|
a.$slots.source ? (o(), n("div", {
|
|
1942
1942
|
key: 8,
|
|
1943
1943
|
ref_key: "source",
|
|
1944
|
-
ref:
|
|
1944
|
+
ref: ft,
|
|
1945
1945
|
dir: "auto"
|
|
1946
1946
|
}, [
|
|
1947
1947
|
R(a.$slots, "source", {}, void 0, !0)
|
|
@@ -1975,7 +1975,7 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
|
|
|
1975
1975
|
_: 3
|
|
1976
1976
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "smoothForce", "smoothSnapThreshold", "backdropFilter"]),
|
|
1977
1977
|
s(U) ? (o(), Ie(qa, { key: 9 })) : m("", !0)
|
|
1978
|
-
], 46, il)) : (o(), n("div",
|
|
1978
|
+
], 46, il)) : (o(), n("div", Fo, [
|
|
1979
1979
|
Se(s(V), {
|
|
1980
1980
|
name: "circleCancel",
|
|
1981
1981
|
stroke: "red"
|