vue-data-ui 3.15.1 → 3.15.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{PackageVersion-CvM6L6jw.js → PackageVersion-B6IEJQ5U.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-bump.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-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-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/{vue-data-ui-DeuE4XnE.js → vue-data-ui-BDNyFPFq.js} +58 -58
- package/dist/vue-data-ui.js +59 -59
- package/dist/{vue-ui-3d-bar-Cj71KREQ.js → vue-ui-3d-bar-DUzNF952.js} +1 -1
- package/dist/{vue-ui-age-pyramid-CLa4q2zI.js → vue-ui-age-pyramid-r-KmE7L4.js} +1 -1
- package/dist/{vue-ui-bullet-DjNniV4s.js → vue-ui-bullet-DAVzj8Zi.js} +1 -1
- package/dist/{vue-ui-bump-CJX1t0HJ.js → vue-ui-bump-B9E1erCP.js} +1 -1
- package/dist/{vue-ui-candlestick-CSvLa3B2.js → vue-ui-candlestick-CPxzel3w.js} +1 -1
- package/dist/{vue-ui-carousel-table-D-jYM14F.js → vue-ui-carousel-table-GDTvdXbd.js} +1 -1
- package/dist/{vue-ui-chestnut-B9aa0mEA.js → vue-ui-chestnut-iD_E54CN.js} +1 -1
- package/dist/{vue-ui-chord-5DHOa_I5.js → vue-ui-chord-BC4tguYt.js} +1 -1
- package/dist/{vue-ui-circle-pack-CM6dlj4u.js → vue-ui-circle-pack-B-CPGgdt.js} +1 -1
- package/dist/{vue-ui-cursor-XOFzSAyd.js → vue-ui-cursor-IT1xvbk2.js} +1 -1
- package/dist/{vue-ui-dag-BXigWntn.js → vue-ui-dag-DCdotQVD.js} +1 -1
- package/dist/{vue-ui-dashboard-B7158Nfk.js → vue-ui-dashboard-Cq-7-wma.js} +55 -55
- package/dist/{vue-ui-donut-YtBa6CPZ.js → vue-ui-donut-DZEkSIQ1.js} +1 -1
- package/dist/{vue-ui-donut-evolution-Cf9DpNXl.js → vue-ui-donut-evolution-CcrcrKF2.js} +1 -1
- package/dist/{vue-ui-dumbbell-Bd16c4zX.js → vue-ui-dumbbell-D6rsNu3I.js} +1 -1
- package/dist/{vue-ui-flow-Bwfjd7VB.js → vue-ui-flow-CfEK1WcS.js} +1 -1
- package/dist/{vue-ui-funnel-D4tDXFp-.js → vue-ui-funnel-Cdh7YjHo.js} +1 -1
- package/dist/{vue-ui-galaxy-C5fAGWa0.js → vue-ui-galaxy-BV20Wouf.js} +1 -1
- package/dist/{vue-ui-gauge-DwMdki7P.js → vue-ui-gauge-CmV6TYbP.js} +1 -1
- package/dist/{vue-ui-geo-DxajUylC.js → vue-ui-geo-Cx8Kl369.js} +1 -1
- package/dist/{vue-ui-gizmo-DRc7RORS.js → vue-ui-gizmo-DjW_Zk-I.js} +1 -1
- package/dist/{vue-ui-heatmap-BYdD9fu1.js → vue-ui-heatmap-CmYavjF_.js} +1 -1
- package/dist/{vue-ui-history-plot-CEtyxTpT.js → vue-ui-history-plot-B6RR5_Pr.js} +1 -1
- package/dist/{vue-ui-horizontal-bar-BFLKoXji.js → vue-ui-horizontal-bar-YurxCHIZ.js} +1 -1
- package/dist/{vue-ui-molecule-BpMpSIK1.js → vue-ui-molecule-USv-Zjga.js} +1 -1
- package/dist/{vue-ui-mood-radar-Bvyg7afr.js → vue-ui-mood-radar-CH7gUd3S.js} +1 -1
- package/dist/{vue-ui-nested-donuts-DNZexAwg.js → vue-ui-nested-donuts-FJhK_VCm.js} +1 -1
- package/dist/{vue-ui-onion-BdvDJ81z.js → vue-ui-onion-BkB7pI6J.js} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-B7-nb29h.js → vue-ui-parallel-coordinate-plot-BcKuTS5G.js} +1 -1
- package/dist/{vue-ui-quadrant-Hr00AjZA.js → vue-ui-quadrant-Fa0Ql-oe.js} +1 -1
- package/dist/{vue-ui-quick-chart-3Dx6qjli.js → vue-ui-quick-chart-BoZswYC4.js} +1 -1
- package/dist/{vue-ui-radar-B3JLfrcF.js → vue-ui-radar-BVQtbLQl.js} +1 -1
- package/dist/{vue-ui-relation-circle-DAKHg2Q3.js → vue-ui-relation-circle-BKCKaCiY.js} +1 -1
- package/dist/{vue-ui-ridgeline-DwQjesS9.js → vue-ui-ridgeline-DGVeoRL_.js} +1 -1
- package/dist/{vue-ui-rings-D-iM8v_f.js → vue-ui-rings-CzohTeZg.js} +1 -1
- package/dist/{vue-ui-scatter-vXsVgfGT.js → vue-ui-scatter-Be9GWl3l.js} +1 -1
- package/dist/{vue-ui-skeleton-fx2Sa16V.js → vue-ui-skeleton-smOfSmjU.js} +1 -1
- package/dist/{vue-ui-spark-trend-dX60Ajul.js → vue-ui-spark-trend-_3ELEmlz.js} +1 -1
- package/dist/{vue-ui-sparkbar-CGCu289m.js → vue-ui-sparkbar-COFbNvl8.js} +1 -1
- package/dist/{vue-ui-sparkgauge-yPclzJ1-.js → vue-ui-sparkgauge-BVj5aBtN.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-BTTjGJdT.js → vue-ui-sparkhistogram-BpIUtNbm.js} +1 -1
- package/dist/{vue-ui-sparkline-h0so3EKa.js → vue-ui-sparkline-CgYlQI65.js} +350 -348
- package/dist/{vue-ui-sparkstackbar-CDVb8080.js → vue-ui-sparkstackbar-Di1Z6CpX.js} +1 -1
- package/dist/{vue-ui-stackbar-v9sfMD82.js → vue-ui-stackbar-DfpvPPd1.js} +1 -1
- package/dist/{vue-ui-stackline-C4kvaHcm.js → vue-ui-stackline-pnbcfPu2.js} +1 -1
- package/dist/{vue-ui-strip-plot-CwXUtv5i.js → vue-ui-strip-plot-CO47pgaw.js} +1 -1
- package/dist/{vue-ui-table-BZDF7J3E.js → vue-ui-table-DuVmmM6H.js} +2 -2
- package/dist/{vue-ui-table-sparkline-RG0NG8tu.js → vue-ui-table-sparkline-CuJ7Zsve.js} +1 -1
- package/dist/{vue-ui-thermometer-IUBaqKA_.js → vue-ui-thermometer-BRcNwZEw.js} +1 -1
- package/dist/{vue-ui-timer-DdPFUhpp.js → vue-ui-timer-D7msujhO.js} +1 -1
- package/dist/{vue-ui-tiremarks-BLIKh2NR.js → vue-ui-tiremarks-hx9IfotL.js} +1 -1
- package/dist/{vue-ui-treemap-BzkiRg8p.js → vue-ui-treemap-DWMchmZj.js} +1 -1
- package/dist/{vue-ui-waffle-UAlvcjmZ.js → vue-ui-waffle-MXpJ2_j4.js} +1 -1
- package/dist/{vue-ui-wheel-DZEYrAMf.js → vue-ui-wheel-rw2QWGiJ.js} +1 -1
- package/dist/{vue-ui-word-cloud-J3mpA3by.js → vue-ui-word-cloud-COBNp3Nn.js} +1 -1
- package/dist/{vue-ui-world-Bn-tAJ0w.js → vue-ui-world-D3B9gr4m.js} +1 -1
- package/dist/{vue-ui-xy-BHbBuU6j.js → vue-ui-xy-CnJ3_k9V.js} +1 -1
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { c as kt, t as ze, aA as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as Nt, a as
|
|
1
|
+
import { ref as g, onMounted as Le, onBeforeUnmount as le, computed as i, watch as x, nextTick as M, createElementBlock as c, createCommentVNode as m, openBlock as d, Fragment as K, renderList as te, createElementVNode as p, defineAsyncComponent as De, toRefs as pt, shallowRef as Be, watchEffect as yt, normalizeStyle as N, renderSlot as z, createBlock as ke, normalizeProps as Re, guardReactiveProps as Ee, toDisplayString as Q, unref as r, createVNode as gt, withCtx as bt, createTextVNode as mt } from "vue";
|
|
2
|
+
import { c as kt, t as ze, aA as Ce, o as Oe, g as Ve, l as Ct, h as J, n as At, ap as wt, X as xt, s as ee, A as qe, C as Lt, Q as je, a as Ae, d as we, aB as Mt } from "./lib-swBj76n5.js";
|
|
3
|
+
import { t as _t, u as $t } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Nt, a as xe } from "./useNestedProp-C4DkSVBD.js";
|
|
5
5
|
import { u as It, B as St } from "./BaseScanner-BMpwQAfz.js";
|
|
6
6
|
import { u as Ft } from "./useThemeCheck-D1ZYXUwG.js";
|
|
7
7
|
import { u as Tt } from "./useTimeLabels-C-A2uZKi.js";
|
|
8
8
|
import { u as Pt } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
9
|
import { _ as Dt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
-
const We = { style: { line: { color: "#2A2929" }, area: { color: "#65698E" }, bar: { color: "#2A2929" } } }, Ge = { style: { backgroundColor: "#1A1A1A", zeroLine: { color: "#5A5A5A" }, line: { color: "#65698E" }, area: { color: "#8D99AE" }, bar: { color: "#65698E" }, plot: { stroke: "#1A1A1A" }, verticalIndicator: { color: "#8A8A8A" }, dataLabel: { color: "#CCCCCC" }, title: { color: "#CCCCCC" }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#3A3A3A" } } }, Ke = { style: { backgroundColor: "#1A1A1A", zeroLine: { color: "#5A5A5A" }, plot: { stroke: "#1A1A1A" }, verticalIndicator: { color: "#8A8A8A" }, dataLabel: { color: "#CCCCCC" }, title: { color: "#CCCCCC" }, tooltip: { color: "#CCCCCC", backgroundColor: "#1A1A1A", borderColor: "#5A5A5A", backgroundOpacity: 70 } } }, Ue = { style: { backgroundColor: "#FFF8E1", line: { color: "#D32F2F" }, bar: { color: "#D32F2F", borderRadius: 0 }, zeroLine: { color: "#5D4037" }, plot: { stroke: "#FFF8E1" }, verticalIndicator: { color: "#FF9800" }, dataLabel: { color: "#424242" }, title: { color: "#424242" }, area: { color: "#E64A19" }, tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" } } }, Xe = { style: { backgroundColor: "#1E1E1E", line: { color: "#D32F2F" }, bar: { color: "#D32F2F", borderRadius: 0 }, zeroLine: { color: "#5D4037" }, plot: { stroke: "#1E1E1E" }, verticalIndicator: { color: "#B71C1C" }, dataLabel: { color: "#BDBDBD" }, title: { color: "#BDBDBD" }, area: { color: "#E64A19" }, tooltip: { backgroundColor: "#1E1E1E", backgroundOpacity: 30, color: "#FFF8E1", borderColor: "#FF8A65" } } }, Ye = { style: { backgroundColor: "#1A1A1A", line: { color: "#66CC66" }, bar: { color: "#66CC66", borderRadius: 0 }, zeroLine: { color: "#5F6A5F" }, plot: { stroke: "#1A1A1A" }, verticalIndicator: { color: "#66CC66" }, dataLabel: { color: "#AACCAA" }, title: { color: "#66CC66" }, area: { color: "#66CC66" }, tooltip: { backgroundColor: "#2A2F2A", color: "#AACCAA", borderColor: "#66CC66" } } }, Ze = { style: { backgroundColor: "#fbfafa", line: { color: "#B9B99D", smooth: !0 }, bar: { color: "#B9B99D", borderRadius: 3 }, zeroLine: { strokeWidth: 0 }, plot: { stroke: "#fbfafa" }, verticalIndicator: { color: "#B9B99D" }, dataLabel: { color: "#A0AC94" }, title: { color: "#8A9892" }, area: { color: "#B9B99D" }, tooltip: { backgroundColor: "#fbfafa", color: "#8A9892" } } },
|
|
10
|
+
const We = { style: { line: { color: "#2A2929" }, area: { color: "#65698E" }, bar: { color: "#2A2929" } } }, Ge = { style: { backgroundColor: "#1A1A1A", zeroLine: { color: "#5A5A5A" }, line: { color: "#65698E" }, area: { color: "#8D99AE" }, bar: { color: "#65698E" }, plot: { stroke: "#1A1A1A" }, verticalIndicator: { color: "#8A8A8A" }, dataLabel: { color: "#CCCCCC" }, title: { color: "#CCCCCC" }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#3A3A3A" } } }, Ke = { style: { backgroundColor: "#1A1A1A", zeroLine: { color: "#5A5A5A" }, plot: { stroke: "#1A1A1A" }, verticalIndicator: { color: "#8A8A8A" }, dataLabel: { color: "#CCCCCC" }, title: { color: "#CCCCCC" }, tooltip: { color: "#CCCCCC", backgroundColor: "#1A1A1A", borderColor: "#5A5A5A", backgroundOpacity: 70 } } }, Ue = { style: { backgroundColor: "#FFF8E1", line: { color: "#D32F2F" }, bar: { color: "#D32F2F", borderRadius: 0 }, zeroLine: { color: "#5D4037" }, plot: { stroke: "#FFF8E1" }, verticalIndicator: { color: "#FF9800" }, dataLabel: { color: "#424242" }, title: { color: "#424242" }, area: { color: "#E64A19" }, tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" } } }, Xe = { style: { backgroundColor: "#1E1E1E", line: { color: "#D32F2F" }, bar: { color: "#D32F2F", borderRadius: 0 }, zeroLine: { color: "#5D4037" }, plot: { stroke: "#1E1E1E" }, verticalIndicator: { color: "#B71C1C" }, dataLabel: { color: "#BDBDBD" }, title: { color: "#BDBDBD" }, area: { color: "#E64A19" }, tooltip: { backgroundColor: "#1E1E1E", backgroundOpacity: 30, color: "#FFF8E1", borderColor: "#FF8A65" } } }, Ye = { style: { backgroundColor: "#1A1A1A", line: { color: "#66CC66" }, bar: { color: "#66CC66", borderRadius: 0 }, zeroLine: { color: "#5F6A5F" }, plot: { stroke: "#1A1A1A" }, verticalIndicator: { color: "#66CC66" }, dataLabel: { color: "#AACCAA" }, title: { color: "#66CC66" }, area: { color: "#66CC66" }, tooltip: { backgroundColor: "#2A2F2A", color: "#AACCAA", borderColor: "#66CC66" } } }, Ze = { style: { backgroundColor: "#fbfafa", line: { color: "#B9B99D", smooth: !0 }, bar: { color: "#B9B99D", borderRadius: 3 }, zeroLine: { strokeWidth: 0 }, plot: { stroke: "#fbfafa" }, verticalIndicator: { color: "#B9B99D" }, dataLabel: { color: "#A0AC94" }, title: { color: "#8A9892" }, area: { color: "#B9B99D" }, tooltip: { backgroundColor: "#fbfafa", color: "#8A9892" } } }, He = { style: { backgroundColor: "#f6f6fb", line: { color: "#4A6A75" }, bar: { color: "#4A6A75", borderRadius: 0 }, zeroLine: { color: "#9FA9BE" }, plot: { stroke: "#f6f6fb" }, verticalIndicator: { color: "#4A6A75" }, dataLabel: { color: "#61747E" }, title: { color: "#50606C" }, area: { color: "#4A6A75" }, tooltip: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, Qe = {
|
|
11
11
|
default: {},
|
|
12
12
|
minimal: We,
|
|
13
13
|
minimalDark: Ge,
|
|
@@ -16,29 +16,29 @@ const We = { style: { line: { color: "#2A2929" }, area: { color: "#65698E" }, ba
|
|
|
16
16
|
celebrationNight: Xe,
|
|
17
17
|
hack: Ye,
|
|
18
18
|
zen: Ze,
|
|
19
|
-
concrete:
|
|
20
|
-
},
|
|
19
|
+
concrete: He
|
|
20
|
+
}, $l = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
21
21
|
__proto__: null,
|
|
22
22
|
celebration: Ue,
|
|
23
23
|
celebrationNight: Xe,
|
|
24
|
-
concrete:
|
|
24
|
+
concrete: He,
|
|
25
25
|
dark: Ke,
|
|
26
|
-
default:
|
|
26
|
+
default: Qe,
|
|
27
27
|
hack: Ye,
|
|
28
28
|
minimal: We,
|
|
29
29
|
minimalDark: Ge,
|
|
30
30
|
zen: Ze
|
|
31
31
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
32
32
|
function Bt() {
|
|
33
|
-
const
|
|
34
|
-
return
|
|
35
|
-
const b = window.matchMedia("(prefers-reduced-motion: reduce)"),
|
|
36
|
-
|
|
33
|
+
const n = g(!1);
|
|
34
|
+
return Le(() => {
|
|
35
|
+
const b = window.matchMedia("(prefers-reduced-motion: reduce)"), w = () => {
|
|
36
|
+
n.value = b.matches;
|
|
37
37
|
};
|
|
38
|
-
|
|
39
|
-
b.removeEventListener("change",
|
|
38
|
+
w(), b.addEventListener("change", w), le(() => {
|
|
39
|
+
b.removeEventListener("change", w);
|
|
40
40
|
});
|
|
41
|
-
}),
|
|
41
|
+
}), n;
|
|
42
42
|
}
|
|
43
43
|
const Rt = {
|
|
44
44
|
key: 0,
|
|
@@ -63,105 +63,107 @@ const Rt = {
|
|
|
63
63
|
loading: { type: Boolean, required: !0 },
|
|
64
64
|
isBar: { type: Boolean, required: !0 }
|
|
65
65
|
},
|
|
66
|
-
setup(
|
|
67
|
-
const b =
|
|
66
|
+
setup(n) {
|
|
67
|
+
const b = n, w = i(() => Math.min(b.pulseTrailLength, 45)), ae = i(() => !!b.pulse?.show && !b.isBar && !b.prefersReducedMotion && !b.loading && Number(b.pulsePathLength) > 0);
|
|
68
68
|
function T() {
|
|
69
|
-
const
|
|
70
|
-
|
|
69
|
+
const o = b.svgRef?.value;
|
|
70
|
+
o && (typeof o.pauseAnimations == "function" && o.pauseAnimations(), typeof o.setCurrentTime == "function" && o.setCurrentTime(0), typeof o.unpauseAnimations == "function" && o.unpauseAnimations());
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
if (typeof
|
|
74
|
-
const
|
|
75
|
-
if (!
|
|
76
|
-
const
|
|
77
|
-
return Number.isNaN(
|
|
72
|
+
function oe(o, I) {
|
|
73
|
+
if (typeof o != "string") return o;
|
|
74
|
+
const y = o.trim().match(/^([\d.]+)\s*(ms|s)$/);
|
|
75
|
+
if (!y) return o;
|
|
76
|
+
const k = Number(y[1]), X = y[2];
|
|
77
|
+
return Number.isNaN(k) ? o : `${k + I}${X}`;
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
return (
|
|
79
|
+
function ue(o) {
|
|
80
|
+
return (w.value - o) / w.value * b.pulse.radius;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
83
|
-
const
|
|
84
|
-
return `0;${
|
|
82
|
+
function U(o) {
|
|
83
|
+
const I = b.pulse.trail.opacity, y = (w.value - o) / w.value, k = o === 0 ? 1 : y * I;
|
|
84
|
+
return `0;${k};${k};0`;
|
|
85
85
|
}
|
|
86
|
-
return
|
|
86
|
+
return x(
|
|
87
87
|
() => b.loading,
|
|
88
|
-
async (
|
|
89
|
-
if (
|
|
88
|
+
async (o) => {
|
|
89
|
+
if (o) {
|
|
90
90
|
T();
|
|
91
91
|
return;
|
|
92
92
|
}
|
|
93
93
|
await M(), T();
|
|
94
94
|
}
|
|
95
|
-
),
|
|
95
|
+
), x(
|
|
96
96
|
() => b.pulsePathId,
|
|
97
97
|
async () => {
|
|
98
98
|
await M(), T();
|
|
99
99
|
}
|
|
100
|
-
),
|
|
100
|
+
), le(() => {
|
|
101
101
|
T();
|
|
102
|
-
}), (
|
|
103
|
-
(
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
g("animateMotion", {
|
|
111
|
-
begin: le(o.pulseBegin, f * 10),
|
|
112
|
-
dur: o.pulseDur,
|
|
113
|
-
repeatCount: o.pulseRepeatCount,
|
|
114
|
-
fill: o.pulseFillMode,
|
|
115
|
-
calcMode: o.pulseMotion.calcMode,
|
|
116
|
-
keySplines: o.pulseMotion.keySplines || void 0,
|
|
117
|
-
keyTimes: o.pulseMotion.keyTimes || void 0,
|
|
118
|
-
keyPoints: o.pulseKeyPoints,
|
|
119
|
-
rotate: "auto"
|
|
102
|
+
}), (o, I) => ae.value ? (d(), c("g", Rt, [
|
|
103
|
+
(d(!0), c(K, null, te(w.value, (y, k) => (d(), c(K, null, [
|
|
104
|
+
k % 3 === 0 ? (d(), c("circle", {
|
|
105
|
+
key: `sparkline_dot_${k}_${n.pulsePathId}`,
|
|
106
|
+
r: ue(k),
|
|
107
|
+
fill: n.pulse.color,
|
|
108
|
+
filter: `url(#sparkline_pulse_glow_${n.uid})`,
|
|
109
|
+
opacity: "0"
|
|
120
110
|
}, [
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
111
|
+
p("animateMotion", {
|
|
112
|
+
begin: oe(n.pulseBegin, k * 10),
|
|
113
|
+
dur: n.pulseDur,
|
|
114
|
+
repeatCount: n.pulseRepeatCount,
|
|
115
|
+
fill: n.pulseFillMode,
|
|
116
|
+
calcMode: n.pulseMotion.calcMode,
|
|
117
|
+
keySplines: n.pulseMotion.keySplines || void 0,
|
|
118
|
+
keyTimes: n.pulseMotion.keyTimes || void 0,
|
|
119
|
+
keyPoints: n.pulseKeyPoints,
|
|
120
|
+
rotate: "auto"
|
|
121
|
+
}, [
|
|
122
|
+
p("mpath", {
|
|
123
|
+
href: `#${n.pulsePathId}`
|
|
124
|
+
}, null, 8, Ot)
|
|
125
|
+
], 8, zt),
|
|
126
|
+
p("animate", {
|
|
127
|
+
attributeName: "opacity",
|
|
128
|
+
dur: n.pulseDur,
|
|
129
|
+
repeatCount: n.pulseRepeatCount,
|
|
130
|
+
fill: n.pulseFillMode,
|
|
131
|
+
values: U(k),
|
|
132
|
+
keyTimes: "0;0.1;0.9;1"
|
|
133
|
+
}, null, 8, Vt)
|
|
134
|
+
], 8, Et)) : m("", !0)
|
|
135
|
+
], 64))), 256)),
|
|
136
|
+
(d(), c("circle", {
|
|
137
|
+
key: `sparkline_halo_${n.pulsePathId}`,
|
|
138
|
+
r: Math.max(n.pulse.radius * 1.3),
|
|
139
|
+
fill: n.pulse.color,
|
|
138
140
|
opacity: "0"
|
|
139
141
|
}, [
|
|
140
|
-
|
|
141
|
-
begin:
|
|
142
|
-
dur:
|
|
143
|
-
repeatCount:
|
|
144
|
-
calcMode:
|
|
145
|
-
keySplines:
|
|
146
|
-
keyTimes:
|
|
147
|
-
keyPoints:
|
|
142
|
+
p("animateMotion", {
|
|
143
|
+
begin: n.pulseBegin,
|
|
144
|
+
dur: n.pulseDur,
|
|
145
|
+
repeatCount: n.pulseRepeatCount,
|
|
146
|
+
calcMode: n.pulseMotion.calcMode,
|
|
147
|
+
keySplines: n.pulseMotion.keySplines || void 0,
|
|
148
|
+
keyTimes: n.pulseMotion.keyTimes || void 0,
|
|
149
|
+
keyPoints: n.pulseKeyPoints,
|
|
148
150
|
rotate: "auto"
|
|
149
151
|
}, [
|
|
150
|
-
|
|
151
|
-
href: `#${
|
|
152
|
+
p("mpath", {
|
|
153
|
+
href: `#${n.pulsePathId}`
|
|
152
154
|
}, null, 8, Wt)
|
|
153
155
|
], 8, jt),
|
|
154
|
-
|
|
156
|
+
p("animate", {
|
|
155
157
|
attributeName: "opacity",
|
|
156
158
|
values: "0;0.35;0.35;0",
|
|
157
159
|
keyTimes: "0;0.15;0.85;1",
|
|
158
|
-
dur:
|
|
159
|
-
repeatCount:
|
|
160
|
+
dur: n.pulseDur,
|
|
161
|
+
repeatCount: n.pulseRepeatCount
|
|
160
162
|
}, null, 8, Gt)
|
|
161
163
|
], 8, qt))
|
|
162
|
-
])) :
|
|
164
|
+
])) : m("", !0);
|
|
163
165
|
}
|
|
164
|
-
}, Ut = ["id"], Xt = ["xmlns", "viewBox"], Yt = ["width", "height"], Zt = ["id"],
|
|
166
|
+
}, Ut = ["id"], Xt = ["xmlns", "viewBox"], Yt = ["width", "height"], Zt = ["id"], Ht = ["stop-color"], Qt = ["stop-color"], Jt = ["id"], el = ["stop-color"], tl = ["stop-color"], ll = ["id"], al = ["stop-color"], ol = ["stop-color"], ul = ["id"], nl = { key: 1 }, rl = ["d", "fill"], sl = ["d", "fill"], il = ["id", "d", "stroke", "stroke-width"], dl = ["id", "d", "stroke", "stroke-width"], cl = ["x", "y", "width", "height", "fill", "rx"], vl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], fl = ["x1", "x2", "y1", "y2", "stroke", "stroke-dasharray", "stroke-width"], hl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], pl = ["x", "y", "font-size", "font-weight", "fill"], yl = ["x", "y", "height", "width", "onMouseenter", "onMouseleave", "onClick"], gl = {
|
|
165
167
|
__name: "vue-ui-sparkline",
|
|
166
168
|
props: {
|
|
167
169
|
config: {
|
|
@@ -194,12 +196,12 @@ const Rt = {
|
|
|
194
196
|
}
|
|
195
197
|
},
|
|
196
198
|
emits: ["hoverIndex", "selectDatapoint"],
|
|
197
|
-
setup(
|
|
198
|
-
const
|
|
199
|
+
setup(n, { emit: b }) {
|
|
200
|
+
const w = De(() => import("./PackageVersion-B6IEJQ5U.js")), ae = De(() => import("./SparkTooltip-0RaBXTYZ.js")), { vue_ui_sparkline: T } = Nt(), { isThemeValid: oe, warnInvalidTheme: ue } = Ft(), U = Bt(), o = n, I = i(() => Array.isArray(o.dataset) && o.dataset.length > 0), y = g(kt()), k = g(null), X = g(null), ne = g(null), e = g(se());
|
|
199
201
|
function Je(t) {
|
|
200
|
-
return
|
|
202
|
+
return o.config?.skeletonDataset && Array.isArray(o.config.skeletonDataset) ? o.config.skeletonDataset.map((l) => ({ period: "-", value: l })) : Mt(t).map((l) => ({ period: "-", value: l }));
|
|
201
203
|
}
|
|
202
|
-
const et =
|
|
204
|
+
const et = i(() => ze({
|
|
203
205
|
defaultConfig: {
|
|
204
206
|
style: {
|
|
205
207
|
backgroundColor: "#99999930",
|
|
@@ -215,13 +217,13 @@ const Rt = {
|
|
|
215
217
|
}
|
|
216
218
|
},
|
|
217
219
|
userConfig: e.value.skeletonConfig ?? {}
|
|
218
|
-
})), { loading: C, FINAL_DATASET:
|
|
219
|
-
...pt(
|
|
220
|
+
})), { loading: C, FINAL_DATASET: O, manualLoading: re } = It({
|
|
221
|
+
...pt(o),
|
|
220
222
|
FINAL_CONFIG: e,
|
|
221
|
-
prepareConfig:
|
|
223
|
+
prepareConfig: se,
|
|
222
224
|
callback: () => {
|
|
223
225
|
Promise.resolve().then(async () => {
|
|
224
|
-
await M(),
|
|
226
|
+
await M(), he();
|
|
225
227
|
});
|
|
226
228
|
},
|
|
227
229
|
skeletonDataset: Je(12),
|
|
@@ -229,25 +231,25 @@ const Rt = {
|
|
|
229
231
|
defaultConfig: e.value,
|
|
230
232
|
userConfig: et.value
|
|
231
233
|
})
|
|
232
|
-
}), { svgRef:
|
|
233
|
-
function
|
|
234
|
-
const t =
|
|
235
|
-
userConfig:
|
|
236
|
-
defaultConfig:
|
|
234
|
+
}), { svgRef: Y } = Pt({ config: e.value.style.title });
|
|
235
|
+
function se() {
|
|
236
|
+
const t = xe({
|
|
237
|
+
userConfig: o.config,
|
|
238
|
+
defaultConfig: T
|
|
237
239
|
});
|
|
238
240
|
let l = {};
|
|
239
241
|
const a = t.theme;
|
|
240
242
|
if (a)
|
|
241
|
-
if (!
|
|
242
|
-
|
|
243
|
+
if (!oe.value(t))
|
|
244
|
+
ue(t), l = t;
|
|
243
245
|
else {
|
|
244
|
-
const u =
|
|
245
|
-
userConfig:
|
|
246
|
+
const u = xe({
|
|
247
|
+
userConfig: Qe[a] || o.config,
|
|
246
248
|
defaultConfig: t
|
|
247
249
|
});
|
|
248
250
|
l = {
|
|
249
|
-
...
|
|
250
|
-
userConfig:
|
|
251
|
+
...xe({
|
|
252
|
+
userConfig: o.config,
|
|
251
253
|
defaultConfig: u
|
|
252
254
|
})
|
|
253
255
|
};
|
|
@@ -256,29 +258,29 @@ const Rt = {
|
|
|
256
258
|
l = t;
|
|
257
259
|
return l;
|
|
258
260
|
}
|
|
259
|
-
const A =
|
|
260
|
-
function
|
|
261
|
-
if (!
|
|
262
|
-
|
|
261
|
+
const A = i(() => e.value?.style?.line.pulse || {}), tt = i(() => `${Math.max(200, Number(A.value.durationMs) || 4e3) / 1e3}s`), Z = g(0), lt = i(() => A.value?.begin || "0ms"), at = g("0;1"), ot = i(() => A.value?.loop === !1 ? "1" : "indefinite"), ut = i(() => A.value?.loop === !1 ? "freeze" : void 0), nt = i(() => A.value.trail.show && Me.value.lengthPx || 1), ie = i(() => !!A.value?.show && !S.value && !U.value && !C.value && (v.value?.length || 0) > 1);
|
|
262
|
+
function de() {
|
|
263
|
+
if (!ie.value) {
|
|
264
|
+
Z.value = 0;
|
|
263
265
|
return;
|
|
264
266
|
}
|
|
265
|
-
const t =
|
|
267
|
+
const t = Y.value;
|
|
266
268
|
if (!t) return;
|
|
267
|
-
const l = `#${
|
|
269
|
+
const l = `#${j.value}`, a = t.querySelector?.(l);
|
|
268
270
|
if (a && typeof a.getTotalLength == "function") {
|
|
269
271
|
const u = a.getTotalLength();
|
|
270
|
-
Number.isFinite(u) && u > 0 && (
|
|
272
|
+
Number.isFinite(u) && u > 0 && (Z.value = u);
|
|
271
273
|
return;
|
|
272
274
|
}
|
|
273
275
|
requestAnimationFrame(() => {
|
|
274
276
|
const u = t.querySelector?.(l);
|
|
275
277
|
if (u && typeof u.getTotalLength == "function") {
|
|
276
278
|
const F = u.getTotalLength();
|
|
277
|
-
Number.isFinite(F) && F > 0 && (
|
|
279
|
+
Number.isFinite(F) && F > 0 && (Z.value = F);
|
|
278
280
|
}
|
|
279
281
|
});
|
|
280
282
|
}
|
|
281
|
-
const rt =
|
|
283
|
+
const rt = i(() => {
|
|
282
284
|
const t = A.value?.easing || "ease-in-out", l = {
|
|
283
285
|
ease: [0.25, 0.1, 0.25, 1],
|
|
284
286
|
"ease-in": [0.42, 0, 1, 1],
|
|
@@ -298,7 +300,7 @@ const Rt = {
|
|
|
298
300
|
keySplines: (t === "cubic-bezier" ? Array.isArray(A.value?.cubicBezier) && A.value.cubicBezier.length === 4 ? A.value.cubicBezier : [0.4, 0, 0.2, 1] : l[t] || l["ease-in-out"]).join(" "),
|
|
299
301
|
keyTimes: "0;1"
|
|
300
302
|
};
|
|
301
|
-
}), Me =
|
|
303
|
+
}), Me = i(() => {
|
|
302
304
|
const t = A.value?.trail || {}, l = e.value.style.line.strokeWidth || 1;
|
|
303
305
|
return {
|
|
304
306
|
show: t.show !== !1,
|
|
@@ -308,25 +310,25 @@ const Rt = {
|
|
|
308
310
|
fadeIn: 0.5,
|
|
309
311
|
fadeOut: 0.2
|
|
310
312
|
};
|
|
311
|
-
}), P =
|
|
312
|
-
data:
|
|
313
|
+
}), P = i(() => Ce({
|
|
314
|
+
data: O.value,
|
|
313
315
|
threshold: e.value.downsample.threshold
|
|
314
316
|
}));
|
|
315
|
-
|
|
316
|
-
C.value || (e.value =
|
|
317
|
-
}, { deep: !0 }),
|
|
318
|
-
Array.isArray(t) && t.length > 0 && (
|
|
319
|
-
data:
|
|
317
|
+
x(() => o.config, (t) => {
|
|
318
|
+
C.value || (e.value = se()), Ie(), s.value.chartWidth = e.value.style.chartWidth;
|
|
319
|
+
}, { deep: !0 }), x(() => o.dataset, (t) => {
|
|
320
|
+
Array.isArray(t) && t.length > 0 && (re.value = !1), L.value = Ce({
|
|
321
|
+
data: O.value.map((l) => ({
|
|
320
322
|
...l,
|
|
321
323
|
value: [void 0].includes(l.value) ? null : l.value
|
|
322
324
|
})),
|
|
323
325
|
threshold: e.value.downsample.threshold
|
|
324
326
|
});
|
|
325
327
|
}, { deep: !0 });
|
|
326
|
-
const L =
|
|
328
|
+
const L = g(st());
|
|
327
329
|
function st() {
|
|
328
|
-
return
|
|
329
|
-
data:
|
|
330
|
+
return Ce({
|
|
331
|
+
data: O.value.map((t) => e.value.style.animation.show && O.value.length > 1 ? {
|
|
330
332
|
...t,
|
|
331
333
|
value: null
|
|
332
334
|
} : {
|
|
@@ -336,70 +338,70 @@ const Rt = {
|
|
|
336
338
|
threshold: e.value.downsample.threshold
|
|
337
339
|
});
|
|
338
340
|
}
|
|
339
|
-
const
|
|
341
|
+
const _ = Be(null), D = Be(null), V = g(!1), q = g(0), ce = g([]), ve = g(""), fe = i(() => {
|
|
340
342
|
const l = (P.value || []).map((u) => `${u.period}::${Number.isFinite(u.value) ? u.value : 0}`).join("|"), a = e.value?.style?.animation || {};
|
|
341
343
|
return `${l}#${!!a.show}#${a.animationFrames || 0}`;
|
|
342
344
|
});
|
|
343
|
-
function
|
|
344
|
-
|
|
345
|
+
function H() {
|
|
346
|
+
q.value && (cancelAnimationFrame(q.value), q.value = 0), ce.value.forEach((t) => clearTimeout(t)), ce.value = [], V.value = !1;
|
|
345
347
|
}
|
|
346
|
-
function
|
|
347
|
-
const t = e.value?.style?.animation || {}, l = P.value || [], a =
|
|
348
|
-
if (a && a ===
|
|
348
|
+
function he() {
|
|
349
|
+
const t = e.value?.style?.animation || {}, l = P.value || [], a = fe.value;
|
|
350
|
+
if (a && a === ve.value && (V.value || L.value.length === l.length))
|
|
349
351
|
return;
|
|
350
|
-
if (
|
|
351
|
-
L.value = l,
|
|
352
|
+
if (H(), !t.show || C.value || l.length <= 1) {
|
|
353
|
+
L.value = l, ve.value = a;
|
|
352
354
|
return;
|
|
353
355
|
}
|
|
354
|
-
|
|
356
|
+
V.value = !0, ve.value = a, L.value = [];
|
|
355
357
|
const u = Math.max(1, Number(t.animationFrames) || 1), F = Math.max(1, Math.floor(u / l.length));
|
|
356
|
-
let
|
|
358
|
+
let me = 0;
|
|
357
359
|
const Pe = () => {
|
|
358
|
-
if (a !==
|
|
359
|
-
|
|
360
|
+
if (a !== fe.value) {
|
|
361
|
+
H();
|
|
360
362
|
return;
|
|
361
363
|
}
|
|
362
|
-
if (
|
|
363
|
-
L.value.push(l[
|
|
364
|
+
if (me < l.length) {
|
|
365
|
+
L.value.push(l[me]);
|
|
364
366
|
const ht = setTimeout(() => {
|
|
365
|
-
|
|
367
|
+
q.value = requestAnimationFrame(Pe);
|
|
366
368
|
}, F);
|
|
367
|
-
|
|
369
|
+
ce.value.push(ht), me += 1;
|
|
368
370
|
} else
|
|
369
|
-
L.value = l,
|
|
371
|
+
L.value = l, H();
|
|
370
372
|
};
|
|
371
|
-
|
|
373
|
+
q.value = requestAnimationFrame(Pe);
|
|
372
374
|
}
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
}),
|
|
376
|
-
Ie(),
|
|
377
|
-
}),
|
|
378
|
-
|
|
375
|
+
x(fe, () => {
|
|
376
|
+
he();
|
|
377
|
+
}), Le(() => {
|
|
378
|
+
Ie(), he();
|
|
379
|
+
}), le(() => {
|
|
380
|
+
H();
|
|
379
381
|
});
|
|
380
|
-
const
|
|
381
|
-
|
|
382
|
+
const _e = g(0);
|
|
383
|
+
x(
|
|
382
384
|
() => C.value,
|
|
383
385
|
async (t) => {
|
|
384
|
-
t || (await M(),
|
|
386
|
+
t || (await M(), _e.value += 1);
|
|
385
387
|
}
|
|
386
|
-
),
|
|
387
|
-
() =>
|
|
388
|
+
), x(
|
|
389
|
+
() => V.value,
|
|
388
390
|
async (t) => {
|
|
389
|
-
t || C.value || (await M(),
|
|
391
|
+
t || C.value || (await M(), _e.value += 1);
|
|
390
392
|
}
|
|
391
393
|
);
|
|
392
|
-
const
|
|
393
|
-
async function
|
|
394
|
-
|
|
394
|
+
const j = i(() => `sparkline_line_path_${y.value}`), pe = g(!0);
|
|
395
|
+
async function $e() {
|
|
396
|
+
pe.value = !1, await M(), pe.value = !0, await M(), de();
|
|
395
397
|
}
|
|
396
|
-
const Ne =
|
|
398
|
+
const Ne = i(() => !!e.value.debug);
|
|
397
399
|
function Ie() {
|
|
398
|
-
if (Oe(
|
|
400
|
+
if (Oe(o.dataset) ? (Ve({
|
|
399
401
|
componentName: "VueUiSparkline",
|
|
400
402
|
type: "dataset",
|
|
401
403
|
debug: Ne.value
|
|
402
|
-
}),
|
|
404
|
+
}), re.value = !0) : o.dataset.forEach((t, l) => {
|
|
403
405
|
Ct({
|
|
404
406
|
datasetObject: t,
|
|
405
407
|
requiredAttributes: ["period", "value"]
|
|
@@ -412,47 +414,47 @@ const Rt = {
|
|
|
412
414
|
debug: Ne.value
|
|
413
415
|
});
|
|
414
416
|
});
|
|
415
|
-
}), Oe(
|
|
416
|
-
const t =
|
|
417
|
-
const { width: l, height: a } =
|
|
418
|
-
chart:
|
|
419
|
-
title: e.value.style.title.show &&
|
|
420
|
-
source:
|
|
417
|
+
}), Oe(o.dataset) || (re.value = e.value.loading), e.value.responsive) {
|
|
418
|
+
const t = _t(() => {
|
|
419
|
+
const { width: l, height: a } = $t({
|
|
420
|
+
chart: k.value,
|
|
421
|
+
title: e.value.style.title.show && o.showInfo ? X.value : null,
|
|
422
|
+
source: ne.value
|
|
421
423
|
});
|
|
422
424
|
requestAnimationFrame(() => {
|
|
423
|
-
|
|
425
|
+
s.value.width = l, s.value.height = a, s.value.chartWidth = e.value.style.chartWidth / 500 * l, s.value.padding = o.forcedPadding / 500 * l;
|
|
424
426
|
});
|
|
425
427
|
});
|
|
426
|
-
|
|
428
|
+
_.value && (D.value && _.value.unobserve(D.value), _.value.disconnect()), _.value = new ResizeObserver(t), D.value = k.value.parentNode, _.value.observe(D.value);
|
|
427
429
|
}
|
|
428
430
|
}
|
|
429
|
-
|
|
430
|
-
|
|
431
|
+
le(() => {
|
|
432
|
+
_.value && (D.value && _.value.unobserve(D.value), _.value.disconnect());
|
|
431
433
|
});
|
|
432
|
-
const
|
|
433
|
-
height: 80 *
|
|
434
|
+
const s = g({
|
|
435
|
+
height: 80 * o.heightRatio,
|
|
434
436
|
width: 500,
|
|
435
437
|
chartWidth: e.value.style.chartWidth,
|
|
436
|
-
padding:
|
|
437
|
-
}),
|
|
438
|
+
padding: o.forcedPadding
|
|
439
|
+
}), ye = b, f = i(() => {
|
|
438
440
|
const { top: t, right: l, bottom: a, left: u } = e.value.style.padding;
|
|
439
441
|
return {
|
|
440
442
|
top: t,
|
|
441
443
|
left: u,
|
|
442
|
-
right:
|
|
443
|
-
bottom:
|
|
444
|
-
start:
|
|
445
|
-
width:
|
|
446
|
-
height:
|
|
444
|
+
right: s.value.width - l,
|
|
445
|
+
bottom: s.value.height - a,
|
|
446
|
+
start: o.showInfo && e.value.style.dataLabel.show && e.value.style.dataLabel.position === "left" ? s.value.width - s.value.chartWidth + u : s.value.padding + u,
|
|
447
|
+
width: o.showInfo && e.value.style.dataLabel.show ? s.value.chartWidth - u - l : s.value.width - s.value.padding - u - l,
|
|
448
|
+
height: s.value.height - t - a
|
|
447
449
|
};
|
|
448
|
-
}),
|
|
449
|
-
const t =
|
|
450
|
+
}), ge = i(() => [null, void 0].includes(e.value.style.scaleMin) ? Math.min(...L.value.map((t) => isNaN(t.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t.value) ? 0 : t.value || 0)) : e.value.style.scaleMin), it = i(() => [null, void 0].includes(e.value.style.scaleMax) ? Math.max(...L.value.map((t) => isNaN(t.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t.value) ? 0 : t.value || 0)) : e.value.style.scaleMax), W = i(() => {
|
|
451
|
+
const t = ge.value >= 0 ? 0 : ge.value;
|
|
450
452
|
return Math.abs(t);
|
|
451
|
-
}), Se =
|
|
452
|
-
function
|
|
453
|
+
}), Se = i(() => it.value + W.value), B = i(() => f.value.bottom - f.value.height * be(W.value));
|
|
454
|
+
function be(t) {
|
|
453
455
|
return isNaN(t / Se.value) ? 0 : t / Se.value;
|
|
454
456
|
}
|
|
455
|
-
const R =
|
|
457
|
+
const R = i(() => P.value.length - 1 || 1), G = g([]);
|
|
456
458
|
let Fe = 0;
|
|
457
459
|
yt(() => {
|
|
458
460
|
const t = ++Fe;
|
|
@@ -464,43 +466,43 @@ const Rt = {
|
|
|
464
466
|
start: 0,
|
|
465
467
|
end: P.value.length
|
|
466
468
|
});
|
|
467
|
-
t === Fe && (
|
|
469
|
+
t === Fe && (G.value = l);
|
|
468
470
|
})();
|
|
469
471
|
});
|
|
470
|
-
const
|
|
471
|
-
const a = isNaN(t.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t.value) ? 0 : t.value || 0, u =
|
|
472
|
+
const v = i(() => L.value.map((t, l) => {
|
|
473
|
+
const a = isNaN(t.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t.value) ? 0 : t.value || 0, u = f.value.width / R.value;
|
|
472
474
|
return {
|
|
473
475
|
absoluteValue: a,
|
|
474
|
-
period:
|
|
475
|
-
plotValue: a +
|
|
476
|
-
toMax:
|
|
477
|
-
x:
|
|
478
|
-
y:
|
|
479
|
-
id: `plot_${
|
|
480
|
-
color: S.value ? e.value.style.bar.color : e.value.style.area.useGradient ?
|
|
476
|
+
period: G.value && G.value[l] && G.value[l].text ? G.value[l].text : t.period,
|
|
477
|
+
plotValue: a + W.value,
|
|
478
|
+
toMax: be(a + W.value),
|
|
479
|
+
x: f.value.start + l * u,
|
|
480
|
+
y: f.value.bottom - f.value.height * be(a + W.value),
|
|
481
|
+
id: `plot_${y.value}_${l}`,
|
|
482
|
+
color: S.value ? e.value.style.bar.color : e.value.style.area.useGradient ? J(e.value.style.line.color, 0.05 * (1 - l / R.value)) : e.value.style.line.color,
|
|
481
483
|
width: u
|
|
482
484
|
};
|
|
483
|
-
})), dt =
|
|
484
|
-
const t = { x:
|
|
485
|
-
return
|
|
485
|
+
})), dt = i(() => {
|
|
486
|
+
const t = { x: v.value[0].x || 0, y: (s.value.height || 0) - 6 }, l = { x: v.value[v.value.length - 1].x || 0, y: (s.value.height || 0) - 6 }, a = [];
|
|
487
|
+
return v.value.forEach((u) => {
|
|
486
488
|
a.push(`${u.x || 0},${u.y || 0} `);
|
|
487
489
|
}), [t.x, t.y, ...a, l.x, l.y].toString();
|
|
488
|
-
}),
|
|
490
|
+
}), h = g(void 0), E = g(void 0);
|
|
489
491
|
function ct(t, l) {
|
|
490
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: l }),
|
|
492
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: l }), h.value = t, E.value || (E.value = t), ye("hoverIndex", { index: l });
|
|
491
493
|
}
|
|
492
494
|
function vt(t, l) {
|
|
493
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: l }), E.value =
|
|
495
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: l }), E.value = h.value, h.value = void 0, ye("hoverIndex", { index: void 0 });
|
|
494
496
|
}
|
|
495
|
-
const
|
|
496
|
-
if (
|
|
497
|
-
const t =
|
|
497
|
+
const $ = i(() => {
|
|
498
|
+
if (I.value) {
|
|
499
|
+
const t = v.value.map((a) => a.absoluteValue), l = t.reduce((a, u) => a + u, 0);
|
|
498
500
|
return {
|
|
499
|
-
latest:
|
|
501
|
+
latest: v.value[v.value.length - 1] ? v.value[v.value.length - 1].absoluteValue : 0,
|
|
500
502
|
sum: l,
|
|
501
|
-
average: l /
|
|
503
|
+
average: l / v.value.length,
|
|
502
504
|
median: wt(t),
|
|
503
|
-
trend: At(
|
|
505
|
+
trend: At(v.value.map(({ x: a, y: u, absoluteValue: F }) => ({
|
|
504
506
|
x: a,
|
|
505
507
|
y: u,
|
|
506
508
|
value: F
|
|
@@ -514,203 +516,203 @@ const Rt = {
|
|
|
514
516
|
median: null,
|
|
515
517
|
trend: null
|
|
516
518
|
};
|
|
517
|
-
}), Te =
|
|
519
|
+
}), Te = i(() => I.value ? e.value.style.dataLabel.valueType === "latest" ? $.value.latest : e.value.style.dataLabel.valueType === "sum" ? $.value.sum : e.value.style.dataLabel.valueType === "average" ? $.value.average : 0 : 0), S = i(() => e.value.type && e.value.type === "bar");
|
|
518
520
|
function ft(t, l) {
|
|
519
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: l }),
|
|
521
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: l }), ye("selectDatapoint", { datapoint: t, index: l });
|
|
520
522
|
}
|
|
521
|
-
return
|
|
523
|
+
return x(
|
|
522
524
|
() => [
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
525
|
+
ie.value,
|
|
526
|
+
j.value,
|
|
527
|
+
v.value.length,
|
|
528
|
+
s.value.width,
|
|
529
|
+
s.value.height,
|
|
528
530
|
e.value?.style?.line?.smooth
|
|
529
531
|
],
|
|
530
532
|
async () => {
|
|
531
|
-
await M(),
|
|
533
|
+
await M(), de();
|
|
532
534
|
},
|
|
533
535
|
{ immediate: !0 }
|
|
534
|
-
),
|
|
535
|
-
await M(),
|
|
536
|
-
}),
|
|
536
|
+
), Le(async () => {
|
|
537
|
+
await M(), de();
|
|
538
|
+
}), x(
|
|
537
539
|
() => C.value,
|
|
538
540
|
async (t) => {
|
|
539
|
-
t || await
|
|
541
|
+
t || await $e();
|
|
540
542
|
}
|
|
541
|
-
),
|
|
542
|
-
() =>
|
|
543
|
+
), x(
|
|
544
|
+
() => V.value,
|
|
543
545
|
async (t) => {
|
|
544
|
-
t || C.value || await
|
|
546
|
+
t || C.value || await $e();
|
|
545
547
|
}
|
|
546
|
-
), (t, l) => (
|
|
548
|
+
), (t, l) => (d(), c("div", {
|
|
547
549
|
ref_key: "sparklineChart",
|
|
548
|
-
ref:
|
|
550
|
+
ref: k,
|
|
549
551
|
class: "vue-data-ui-component vue-ui-sparkline",
|
|
550
|
-
id:
|
|
552
|
+
id: y.value,
|
|
551
553
|
style: N(`width:100%;font-family:${e.value.style.fontFamily};`)
|
|
552
554
|
}, [
|
|
553
555
|
z(t.$slots, "before", Re(Ee({
|
|
554
|
-
selected:
|
|
555
|
-
latest:
|
|
556
|
-
sum:
|
|
557
|
-
average:
|
|
558
|
-
median:
|
|
559
|
-
trend:
|
|
556
|
+
selected: h.value,
|
|
557
|
+
latest: $.value.latest,
|
|
558
|
+
sum: $.value.sum,
|
|
559
|
+
average: $.value.average,
|
|
560
|
+
median: $.value.median,
|
|
561
|
+
trend: $.value.trend
|
|
560
562
|
})), void 0, !0),
|
|
561
|
-
e.value.style.title.show &&
|
|
563
|
+
e.value.style.title.show && n.showInfo ? (d(), c("div", {
|
|
562
564
|
key: 0,
|
|
563
565
|
ref_key: "chartTitle",
|
|
564
|
-
ref:
|
|
566
|
+
ref: X,
|
|
565
567
|
class: "vue-ui-sparkline-title",
|
|
566
568
|
style: N(`display:flex;align-items:center;width:100%;color:${e.value.style.title.color};background:${e.value.style.backgroundColor};justify-content:${e.value.style.title.textAlign === "left" ? "flex-start" : e.value.style.title.textAlign === "right" ? "flex-end" : "center"};height:${e.value.style.title.fontSize * 2}px;font-size:${e.value.style.title.fontSize}px;font-weight:${e.value.style.title.bold ? "bold" : "normal"};`)
|
|
567
569
|
}, [
|
|
568
|
-
|
|
570
|
+
p("span", {
|
|
569
571
|
style: N(`padding:${e.value.style.title.textAlign === "left" ? "0 0 0 12px" : e.value.style.title.textAlign === "right" ? "0 12px 0 0" : "0"}`)
|
|
570
|
-
},
|
|
571
|
-
], 4)) :
|
|
572
|
-
(
|
|
572
|
+
}, Q(h.value ? h.value.period : e.value.style.title.text), 5)
|
|
573
|
+
], 4)) : m("", !0),
|
|
574
|
+
(d(), c("svg", {
|
|
573
575
|
ref_key: "svgRef",
|
|
574
|
-
ref:
|
|
575
|
-
xmlns:
|
|
576
|
-
viewBox: `0 0 ${
|
|
576
|
+
ref: Y,
|
|
577
|
+
xmlns: r(xt),
|
|
578
|
+
viewBox: `0 0 ${s.value.width} ${s.value.height}`,
|
|
577
579
|
style: N(`background:${e.value.style.backgroundColor};overflow:visible`),
|
|
578
580
|
onMouseleave: l[0] || (l[0] = (a) => E.value = void 0)
|
|
579
581
|
}, [
|
|
580
|
-
gt(
|
|
581
|
-
t.$slots["chart-background"] ? (
|
|
582
|
+
gt(r(w)),
|
|
583
|
+
t.$slots["chart-background"] ? (d(), c("foreignObject", {
|
|
582
584
|
key: 0,
|
|
583
585
|
x: 0,
|
|
584
586
|
y: 0,
|
|
585
|
-
width:
|
|
586
|
-
height:
|
|
587
|
+
width: s.value.width <= 0 ? 10 : s.value.width,
|
|
588
|
+
height: s.value.height <= 0 ? 10 : s.value.height,
|
|
587
589
|
style: {
|
|
588
590
|
pointerEvents: "none"
|
|
589
591
|
}
|
|
590
592
|
}, [
|
|
591
593
|
z(t.$slots, "chart-background", {}, void 0, !0)
|
|
592
|
-
], 8, Yt)) :
|
|
593
|
-
|
|
594
|
-
|
|
594
|
+
], 8, Yt)) : m("", !0),
|
|
595
|
+
p("defs", null, [
|
|
596
|
+
p("linearGradient", {
|
|
595
597
|
x1: "0%",
|
|
596
598
|
y1: "0%",
|
|
597
599
|
x2: "100%",
|
|
598
600
|
y2: "0%",
|
|
599
|
-
id: `sparkline_gradient_${
|
|
601
|
+
id: `sparkline_gradient_${y.value}`
|
|
600
602
|
}, [
|
|
601
|
-
|
|
603
|
+
p("stop", {
|
|
602
604
|
offset: "0%",
|
|
603
|
-
"stop-color":
|
|
604
|
-
}, null, 8,
|
|
605
|
-
|
|
605
|
+
"stop-color": r(ee)(r(J)(e.value.style.area.color, 0.05), e.value.style.area.opacity)
|
|
606
|
+
}, null, 8, Ht),
|
|
607
|
+
p("stop", {
|
|
606
608
|
offset: "100%",
|
|
607
|
-
"stop-color":
|
|
608
|
-
}, null, 8,
|
|
609
|
+
"stop-color": r(ee)(e.value.style.area.color, e.value.style.area.opacity)
|
|
610
|
+
}, null, 8, Qt)
|
|
609
611
|
], 8, Zt),
|
|
610
|
-
|
|
612
|
+
p("linearGradient", {
|
|
611
613
|
x2: "0%",
|
|
612
614
|
y2: "100%",
|
|
613
|
-
id: `sparkline_bar_gradient_pos_${
|
|
615
|
+
id: `sparkline_bar_gradient_pos_${y.value}`
|
|
614
616
|
}, [
|
|
615
|
-
|
|
617
|
+
p("stop", {
|
|
616
618
|
offset: "0%",
|
|
617
619
|
"stop-color": e.value.style.bar.color
|
|
618
620
|
}, null, 8, el),
|
|
619
|
-
|
|
621
|
+
p("stop", {
|
|
620
622
|
offset: "100%",
|
|
621
|
-
"stop-color":
|
|
623
|
+
"stop-color": r(J)(e.value.style.bar.color, 0.05)
|
|
622
624
|
}, null, 8, tl)
|
|
623
625
|
], 8, Jt),
|
|
624
|
-
|
|
626
|
+
p("linearGradient", {
|
|
625
627
|
x2: "0%",
|
|
626
628
|
y2: "100%",
|
|
627
|
-
id: `sparkline_bar_gradient_neg_${
|
|
629
|
+
id: `sparkline_bar_gradient_neg_${y.value}`
|
|
628
630
|
}, [
|
|
629
|
-
|
|
631
|
+
p("stop", {
|
|
630
632
|
offset: "0%",
|
|
631
|
-
"stop-color":
|
|
633
|
+
"stop-color": r(J)(e.value.style.bar.color, 0.05)
|
|
632
634
|
}, null, 8, al),
|
|
633
|
-
|
|
635
|
+
p("stop", {
|
|
634
636
|
offset: "100%",
|
|
635
637
|
"stop-color": e.value.style.bar.color
|
|
636
638
|
}, null, 8, ol)
|
|
637
639
|
], 8, ll),
|
|
638
|
-
|
|
639
|
-
id: `sparkline_pulse_glow_${
|
|
640
|
+
p("filter", {
|
|
641
|
+
id: `sparkline_pulse_glow_${y.value}`,
|
|
640
642
|
filterUnits: "userSpaceOnUse",
|
|
641
643
|
x: "-50",
|
|
642
644
|
y: "-50",
|
|
643
645
|
width: "100",
|
|
644
646
|
height: "100"
|
|
645
647
|
}, [...l[1] || (l[1] = [
|
|
646
|
-
|
|
648
|
+
p("feGaussianBlur", {
|
|
647
649
|
in: "SourceGraphic",
|
|
648
650
|
stdDeviation: "3",
|
|
649
651
|
result: "blur"
|
|
650
652
|
}, null, -1),
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
653
|
+
p("feMerge", null, [
|
|
654
|
+
p("feMergeNode", { in: "blur" }),
|
|
655
|
+
p("feMergeNode", { in: "SourceGraphic" })
|
|
654
656
|
], -1)
|
|
655
657
|
])], 8, ul)
|
|
656
658
|
]),
|
|
657
|
-
e.value.style.area.show && !S.value &&
|
|
658
|
-
e.value.style.line.smooth ? (
|
|
659
|
+
e.value.style.area.show && !S.value && v.value[0] && v.value.length > 1 ? (d(), c("g", nl, [
|
|
660
|
+
e.value.style.line.smooth ? (d(), c("path", {
|
|
659
661
|
key: 0,
|
|
660
662
|
class: "vue-ui-sparkline-area",
|
|
661
|
-
d: `M ${
|
|
662
|
-
fill: e.value.style.area.useGradient ? `url(#sparkline_gradient_${
|
|
663
|
+
d: `M ${v.value[0].x},${f.value.bottom} ${r(qe)(v.value)} L ${v.value.at(-1).x},${f.value.bottom} Z`,
|
|
664
|
+
fill: e.value.style.area.useGradient ? `url(#sparkline_gradient_${y.value})` : r(ee)(e.value.style.area.color, e.value.style.area.opacity),
|
|
663
665
|
"stroke-linecap": "round",
|
|
664
666
|
"stroke-linejoin": "round",
|
|
665
667
|
style: N({
|
|
666
|
-
transition:
|
|
668
|
+
transition: r(C) ? void 0 : "all 0.2s"
|
|
667
669
|
})
|
|
668
|
-
}, null, 12, rl)) : (
|
|
670
|
+
}, null, 12, rl)) : (d(), c("path", {
|
|
669
671
|
key: 1,
|
|
670
672
|
class: "vue-ui-sparkline-area",
|
|
671
673
|
d: `M${dt.value}Z`,
|
|
672
|
-
fill: e.value.style.area.useGradient ? `url(#sparkline_gradient_${
|
|
674
|
+
fill: e.value.style.area.useGradient ? `url(#sparkline_gradient_${y.value})` : r(ee)(e.value.style.area.color, e.value.style.area.opacity),
|
|
673
675
|
"stroke-linecap": "round",
|
|
674
676
|
"stroke-linejoin": "round",
|
|
675
677
|
style: N({
|
|
676
|
-
transition:
|
|
678
|
+
transition: r(C) ? void 0 : "all 0.2s"
|
|
677
679
|
})
|
|
678
680
|
}, null, 12, sl))
|
|
679
|
-
])) :
|
|
680
|
-
e.value.style.line.smooth && !S.value ? (
|
|
681
|
+
])) : m("", !0),
|
|
682
|
+
e.value.style.line.smooth && !S.value ? (d(), c("path", {
|
|
681
683
|
key: 2,
|
|
682
684
|
class: "vue-ui-sparkline-path",
|
|
683
|
-
id:
|
|
684
|
-
d: `M ${
|
|
685
|
+
id: j.value,
|
|
686
|
+
d: `M ${r(qe)(v.value) || "0,0"}`,
|
|
685
687
|
stroke: e.value.style.line.color,
|
|
686
688
|
fill: "none",
|
|
687
689
|
"stroke-width": e.value.style.line.strokeWidth,
|
|
688
690
|
"stroke-linecap": "round",
|
|
689
691
|
"stroke-linejoin": "round",
|
|
690
692
|
style: N({
|
|
691
|
-
transition:
|
|
693
|
+
transition: r(C) ? void 0 : "all 0.2s"
|
|
692
694
|
})
|
|
693
|
-
}, null, 12, il)) :
|
|
694
|
-
!e.value.style.line.smooth && !S.value ? (
|
|
695
|
+
}, null, 12, il)) : m("", !0),
|
|
696
|
+
!e.value.style.line.smooth && !S.value ? (d(), c("path", {
|
|
695
697
|
key: 3,
|
|
696
698
|
class: "vue-ui-sparkline-path",
|
|
697
|
-
id:
|
|
698
|
-
d: `M ${
|
|
699
|
+
id: j.value,
|
|
700
|
+
d: `M ${r(Lt)(v.value) || "0,0"}`,
|
|
699
701
|
stroke: e.value.style.line.color,
|
|
700
702
|
fill: "none",
|
|
701
703
|
"stroke-width": e.value.style.line.strokeWidth,
|
|
702
704
|
"stroke-linecap": "round",
|
|
703
705
|
"stroke-linejoin": "round",
|
|
704
706
|
style: N({
|
|
705
|
-
transition:
|
|
707
|
+
transition: r(C) ? void 0 : "all 0.2s"
|
|
706
708
|
})
|
|
707
|
-
}, null, 12, dl)) :
|
|
708
|
-
|
|
709
|
+
}, null, 12, dl)) : m("", !0),
|
|
710
|
+
pe.value && ie.value ? (d(), ke(Kt, {
|
|
709
711
|
key: 4,
|
|
710
|
-
uid:
|
|
711
|
-
svgRef:
|
|
712
|
-
pulsePathId:
|
|
713
|
-
pulsePathLength:
|
|
712
|
+
uid: y.value,
|
|
713
|
+
svgRef: r(Y),
|
|
714
|
+
pulsePathId: j.value,
|
|
715
|
+
pulsePathLength: Z.value,
|
|
714
716
|
pulseDur: tt.value,
|
|
715
717
|
pulseBegin: lt.value,
|
|
716
718
|
pulseRepeatCount: ot.value,
|
|
@@ -720,45 +722,45 @@ const Rt = {
|
|
|
720
722
|
pulse: A.value,
|
|
721
723
|
pulseTrail: Me.value,
|
|
722
724
|
pulseTrailLength: nt.value,
|
|
723
|
-
prefersReducedMotion:
|
|
724
|
-
loading:
|
|
725
|
+
prefersReducedMotion: r(U),
|
|
726
|
+
loading: r(C),
|
|
725
727
|
isBar: S.value
|
|
726
|
-
}, null, 8, ["uid", "svgRef", "pulsePathId", "pulsePathLength", "pulseDur", "pulseBegin", "pulseRepeatCount", "pulseFillMode", "pulseKeyPoints", "pulseMotion", "pulse", "pulseTrail", "pulseTrailLength", "prefersReducedMotion", "loading", "isBar"])) :
|
|
727
|
-
(
|
|
728
|
-
S.value ? (
|
|
728
|
+
}, null, 8, ["uid", "svgRef", "pulsePathId", "pulsePathLength", "pulseDur", "pulseBegin", "pulseRepeatCount", "pulseFillMode", "pulseKeyPoints", "pulseMotion", "pulse", "pulseTrail", "pulseTrailLength", "prefersReducedMotion", "loading", "isBar"])) : m("", !0),
|
|
729
|
+
(d(!0), c(K, null, te(v.value, (a, u) => (d(), c("g", null, [
|
|
730
|
+
S.value ? (d(), c("rect", {
|
|
729
731
|
key: 0,
|
|
730
732
|
x: a.x - a.width / 2,
|
|
731
733
|
y: isNaN(a.absoluteValue > 0 ? a.y : B.value) ? 0 : a.absoluteValue > 0 ? a.y : B.value,
|
|
732
734
|
width: a.width,
|
|
733
735
|
height: isNaN(Math.abs(a.y - B.value)) ? 0 : Math.abs(a.y - B.value),
|
|
734
|
-
fill: a.absoluteValue > 0 ? `url(#sparkline_bar_gradient_pos_${
|
|
736
|
+
fill: a.absoluteValue > 0 ? `url(#sparkline_bar_gradient_pos_${y.value})` : `url(#sparkline_bar_gradient_neg_${y.value})`,
|
|
735
737
|
rx: e.value.style.bar.borderRadius
|
|
736
|
-
}, null, 8, cl)) :
|
|
737
|
-
e.value.style.verticalIndicator.show && (
|
|
738
|
+
}, null, 8, cl)) : m("", !0),
|
|
739
|
+
e.value.style.verticalIndicator.show && (h.value && a.id === h.value.id || n.selectedIndex === u) ? (d(), c("line", {
|
|
738
740
|
key: 1,
|
|
739
741
|
x1: a.x,
|
|
740
742
|
x2: a.x,
|
|
741
|
-
y1:
|
|
742
|
-
y2:
|
|
743
|
+
y1: f.value.top - 6,
|
|
744
|
+
y2: f.value.bottom,
|
|
743
745
|
stroke: e.value.style.verticalIndicator.color || a.color,
|
|
744
746
|
"stroke-width": e.value.style.verticalIndicator.strokeWidth,
|
|
745
747
|
"stroke-linecap": "round",
|
|
746
748
|
"stroke-dasharray": e.value.style.verticalIndicator.strokeDasharray || 0
|
|
747
|
-
}, null, 8, vl)) :
|
|
749
|
+
}, null, 8, vl)) : m("", !0)
|
|
748
750
|
]))), 256)),
|
|
749
|
-
|
|
751
|
+
ge.value < 0 ? (d(), c("line", {
|
|
750
752
|
key: 5,
|
|
751
|
-
x1:
|
|
752
|
-
x2:
|
|
753
|
-
y1:
|
|
754
|
-
y2:
|
|
753
|
+
x1: f.value.start,
|
|
754
|
+
x2: f.value.start + f.value.width,
|
|
755
|
+
y1: r(je)(B.value, f.value.bottom),
|
|
756
|
+
y2: r(je)(B.value, f.value.bottom),
|
|
755
757
|
stroke: e.value.style.zeroLine.color,
|
|
756
758
|
"stroke-dasharray": e.value.style.zeroLine.strokeWidth * 2,
|
|
757
759
|
"stroke-width": e.value.style.zeroLine.strokeWidth,
|
|
758
760
|
"stroke-linecap": "round"
|
|
759
|
-
}, null, 8, fl)) :
|
|
760
|
-
e.value.style.plot.show ? (
|
|
761
|
-
|
|
761
|
+
}, null, 8, fl)) : m("", !0),
|
|
762
|
+
e.value.style.plot.show ? (d(!0), c(K, { key: 6 }, te(v.value, (a, u) => (d(), c("g", null, [
|
|
763
|
+
h.value && a.id === h.value.id || n.selectedIndex === u || r(O).length === 1 ? (d(), c("circle", {
|
|
762
764
|
key: 0,
|
|
763
765
|
cx: a.x,
|
|
764
766
|
cy: a.y,
|
|
@@ -766,45 +768,45 @@ const Rt = {
|
|
|
766
768
|
fill: a.color,
|
|
767
769
|
stroke: e.value.style.plot.stroke,
|
|
768
770
|
"stroke-width": e.value.style.plot.strokeWidth
|
|
769
|
-
}, null, 8, hl)) :
|
|
770
|
-
]))), 256)) :
|
|
771
|
-
|
|
771
|
+
}, null, 8, hl)) : m("", !0)
|
|
772
|
+
]))), 256)) : m("", !0),
|
|
773
|
+
n.showInfo && e.value.style.dataLabel.show ? (d(), c("text", {
|
|
772
774
|
key: 7,
|
|
773
|
-
x: e.value.style.dataLabel.position === "left" ? 12 + e.value.style.dataLabel.offsetX :
|
|
774
|
-
y:
|
|
775
|
+
x: e.value.style.dataLabel.position === "left" ? 12 + e.value.style.dataLabel.offsetX : f.value.width + 12 + e.value.style.dataLabel.offsetX,
|
|
776
|
+
y: s.value.height / 2 + e.value.style.dataLabel.fontSize / 2.5 + e.value.style.dataLabel.offsetY,
|
|
775
777
|
"font-size": e.value.style.dataLabel.fontSize,
|
|
776
778
|
"font-weight": e.value.style.dataLabel.bold ? "bold" : "normal",
|
|
777
779
|
fill: e.value.style.dataLabel.color
|
|
778
|
-
},
|
|
780
|
+
}, Q(h.value ? r(Ae)(
|
|
779
781
|
e.value.style.dataLabel.formatter,
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
{ datapoint:
|
|
783
|
-
) :
|
|
782
|
+
h.value.absoluteValue,
|
|
783
|
+
r(we)({ p: e.value.style.dataLabel.prefix, v: h.value.absoluteValue, s: e.value.style.dataLabel.suffix, r: e.value.style.dataLabel.roundingValue }),
|
|
784
|
+
{ datapoint: h.value }
|
|
785
|
+
) : r(Ae)(
|
|
784
786
|
e.value.style.dataLabel.formatter,
|
|
785
787
|
Te.value,
|
|
786
|
-
|
|
787
|
-
)), 9, pl)) :
|
|
788
|
-
(
|
|
789
|
-
x: a.x - (
|
|
790
|
-
y:
|
|
791
|
-
height:
|
|
792
|
-
width:
|
|
788
|
+
r(we)({ p: e.value.style.dataLabel.prefix, v: Te.value, s: e.value.style.dataLabel.suffix, r: e.value.style.dataLabel.roundingValue })
|
|
789
|
+
)), 9, pl)) : m("", !0),
|
|
790
|
+
(d(!0), c(K, null, te(v.value, (a, u) => (d(), c("rect", {
|
|
791
|
+
x: a.x - (f.value.width / (R.value + 1) > s.value.padding ? s.value.padding : f.value.width / (R.value + 1)) / 2,
|
|
792
|
+
y: f.value.top - 6,
|
|
793
|
+
height: f.value.height + 6,
|
|
794
|
+
width: f.value.width / (R.value + 1) > s.value.padding ? s.value.padding : f.value.width / (R.value + 1),
|
|
793
795
|
fill: "transparent",
|
|
794
796
|
onMouseenter: () => ct(a, u),
|
|
795
797
|
onMouseleave: () => vt(a, u),
|
|
796
798
|
onClick: () => ft(a, u)
|
|
797
799
|
}, null, 40, yl))), 256)),
|
|
798
|
-
z(t.$slots, "svg", { svg:
|
|
800
|
+
z(t.$slots, "svg", { svg: s.value }, void 0, !0)
|
|
799
801
|
], 44, Xt)),
|
|
800
|
-
|
|
802
|
+
h.value && e.value.style.tooltip.show ? (d(), ke(r(ae), {
|
|
801
803
|
key: 1,
|
|
802
|
-
x:
|
|
803
|
-
y:
|
|
804
|
+
x: h.value.x,
|
|
805
|
+
y: h.value.y,
|
|
804
806
|
prevX: E.value.x,
|
|
805
807
|
prevY: E.value.y,
|
|
806
808
|
offsetY: e.value.style.plot.radius * 3 + e.value.style.tooltip.offsetY,
|
|
807
|
-
svgRef:
|
|
809
|
+
svgRef: r(Y),
|
|
808
810
|
background: e.value.style.tooltip.backgroundColor,
|
|
809
811
|
color: e.value.style.tooltip.color,
|
|
810
812
|
fontSize: e.value.style.tooltip.fontSize,
|
|
@@ -814,32 +816,32 @@ const Rt = {
|
|
|
814
816
|
backgroundOpacity: e.value.style.tooltip.backgroundOpacity
|
|
815
817
|
}, {
|
|
816
818
|
default: bt(() => [
|
|
817
|
-
z(t.$slots, "tooltip", Re(Ee({ ...
|
|
818
|
-
mt(
|
|
819
|
+
z(t.$slots, "tooltip", Re(Ee({ ...h.value })), () => [
|
|
820
|
+
mt(Q(h.value.period) + ": " + Q(r(Ae)(
|
|
819
821
|
e.value.style.dataLabel.formatter,
|
|
820
|
-
|
|
821
|
-
|
|
822
|
+
h.value.absoluteValue,
|
|
823
|
+
r(we)({
|
|
822
824
|
p: e.value.style.dataLabel.prefix,
|
|
823
|
-
v:
|
|
825
|
+
v: h.value.absoluteValue,
|
|
824
826
|
s: e.value.style.dataLabel.suffix,
|
|
825
827
|
r: e.value.style.dataLabel.roundingValue
|
|
826
828
|
}),
|
|
827
|
-
{ datapoint:
|
|
829
|
+
{ datapoint: h.value }
|
|
828
830
|
)), 1)
|
|
829
831
|
], !0)
|
|
830
832
|
]),
|
|
831
833
|
_: 3
|
|
832
|
-
}, 8, ["x", "y", "prevX", "prevY", "offsetY", "svgRef", "background", "color", "fontSize", "borderWidth", "borderColor", "borderRadius", "backgroundOpacity"])) :
|
|
833
|
-
t.$slots.source ? (
|
|
834
|
+
}, 8, ["x", "y", "prevX", "prevY", "offsetY", "svgRef", "background", "color", "fontSize", "borderWidth", "borderColor", "borderRadius", "backgroundOpacity"])) : m("", !0),
|
|
835
|
+
t.$slots.source ? (d(), c("div", {
|
|
834
836
|
key: 2,
|
|
835
837
|
ref_key: "source",
|
|
836
|
-
ref:
|
|
838
|
+
ref: ne,
|
|
837
839
|
dir: "auto"
|
|
838
840
|
}, [
|
|
839
841
|
z(t.$slots, "source", {}, void 0, !0)
|
|
840
|
-
], 512)) :
|
|
842
|
+
], 512)) : m("", !0),
|
|
841
843
|
z(t.$slots, "skeleton", {}, () => [
|
|
842
|
-
|
|
844
|
+
r(C) ? (d(), ke(St, { key: 0 })) : m("", !0)
|
|
843
845
|
], !0)
|
|
844
846
|
], 12, Ut));
|
|
845
847
|
}
|
|
@@ -848,7 +850,7 @@ const Rt = {
|
|
|
848
850
|
default: bl
|
|
849
851
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
850
852
|
export {
|
|
851
|
-
|
|
853
|
+
$l as a,
|
|
852
854
|
Nl as b,
|
|
853
855
|
bl as v
|
|
854
856
|
};
|