vue-data-ui 3.1.17 → 3.1.18
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/{Arrow-DFX_NfRh.js → Arrow-BC5klzOh.js} +1 -1
- package/dist/{BaseDraggableDialog-CrCjMg89.js → BaseDraggableDialog-CkjMZyIs.js} +2 -2
- package/dist/{BaseIcon-7s-tCFcQ.js → BaseIcon-BPiT94Lb.js} +1 -1
- package/dist/{ColorPicker-BoLH_m_Z.js → ColorPicker-bx5e2RB2.js} +2 -2
- package/dist/{DataTable-Dw6dxJk3.js → DataTable-CywujQw9.js} +2 -2
- package/dist/{Legend-CjdnJGHq.js → Legend-h35dp0Qf.js} +2 -2
- package/dist/{NonSvgPenAndPaper-tX2IXHuz.js → NonSvgPenAndPaper-CvnlQ378.js} +3 -3
- package/dist/{PackageVersion-D1HToLlZ.js → PackageVersion-BzGzkGiC.js} +1 -1
- package/dist/{PenAndPaper-BKnXOYre.js → PenAndPaper-Deh70G9d.js} +3 -3
- package/dist/{Shape-6PexQroB.js → Shape-sVxD_SDm.js} +1 -1
- package/dist/{Slicer-BJkhMBk4.js → Slicer-CQB967He.js} +2 -2
- package/dist/{SparkTooltip-BtO1j0i1.js → SparkTooltip-DFRSPT3_.js} +1 -1
- package/dist/{Title-BVMfF0uu.js → Title-B_WMW2Bp.js} +1 -1
- package/dist/{Tooltip-DBvmoYXU.js → Tooltip-Db9jy0Iu.js} +1 -1
- package/dist/{UserOptions-CKzW9w0Q.js → UserOptions-CtECQwBN.js} +2 -2
- package/dist/{dom-to-png-D0wlWRL9.js → dom-to-png-BHpS3cMi.js} +1 -1
- package/dist/{img-CeCjiMpr.js → img-BArHHegM.js} +1 -1
- package/dist/{index-Lg17rmB1.js → index-smzxfsyV.js} +2 -2
- package/dist/{pdf-D5bgIg6W.js → pdf-D1L3r23x.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-BxqMb3sU.js → useAutoSizeLabelsInsideViewbox-DeqXeTNw.js} +1 -1
- package/dist/{useNestedProp-DpwLJMsW.js → useNestedProp-DeKmJzsE.js} +1 -1
- package/dist/{usePrinter-DGI4Mlad.js → usePrinter-nFj0xF0a.js} +2 -2
- package/dist/{vue-data-ui-lki09wwK.js → vue-data-ui-DcBYykse.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-8b3VZcUI.js → vue-ui-3d-bar-D4rc8PD3.js} +57 -57
- package/dist/{vue-ui-accordion-BJG-ogQj.js → vue-ui-accordion-7cfJUVx5.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Cr_dhyTO.js → vue-ui-age-pyramid-BXMIUNB_.js} +6 -6
- package/dist/{vue-ui-annotator-ttaqcMTz.js → vue-ui-annotator-aCDhQ-m2.js} +2 -2
- package/dist/{vue-ui-bullet-DXvTj07g.js → vue-ui-bullet-Cd_iix-z.js} +7 -7
- package/dist/{vue-ui-candlestick-B5NqFTXr.js → vue-ui-candlestick-C-TTTgiW.js} +7 -7
- package/dist/{vue-ui-carousel-table-B0bpCRFh.js → vue-ui-carousel-table-C58J4zpm.js} +4 -4
- package/dist/{vue-ui-chestnut-Cby7Wcbu.js → vue-ui-chestnut-C7u6GW-T.js} +5 -5
- package/dist/{vue-ui-chord-Cxg8nwzZ.js → vue-ui-chord-DxLU3Fg1.js} +8 -8
- package/dist/{vue-ui-circle-pack-Cc5e6dE3.js → vue-ui-circle-pack--a_KE7qz.js} +6 -6
- package/dist/{vue-ui-cursor-D6MvR7jD.js → vue-ui-cursor-DJQWAIj8.js} +2 -2
- package/dist/{vue-ui-dashboard-CaUM9n5b.js → vue-ui-dashboard-CIACUYB-.js} +67 -67
- package/dist/{vue-ui-digits-DsoHRv9p.js → vue-ui-digits-CLV8h-P8.js} +2 -2
- package/dist/{vue-ui-donut-evolution-CFu9WNVV.js → vue-ui-donut-evolution-XGJvBQIm.js} +8 -8
- package/dist/{vue-ui-donut-Dxsq1gpz.js → vue-ui-donut-sO6G5oor.js} +8 -8
- package/dist/{vue-ui-dumbbell-Cgb7ijQS.js → vue-ui-dumbbell-Bi11rDL7.js} +7 -7
- package/dist/{vue-ui-flow-Ucb9PdWP.js → vue-ui-flow-RP2v-aZJ.js} +7 -7
- package/dist/{vue-ui-funnel-CV29tksj.js → vue-ui-funnel-TVQXGyw7.js} +6 -6
- package/dist/{vue-ui-galaxy-CVJb9_hA.js → vue-ui-galaxy-CUURaWgH.js} +7 -7
- package/dist/{vue-ui-gauge-ofpIH29X.js → vue-ui-gauge-hTRlwARA.js} +125 -125
- package/dist/{vue-ui-gizmo-Ci9kN9VQ.js → vue-ui-gizmo-CZIgBvWV.js} +3 -3
- package/dist/{vue-ui-heatmap-BK_jorrw.js → vue-ui-heatmap-RKtFMgDP.js} +7 -7
- package/dist/{vue-ui-history-plot-Ce8BB4Tn.js → vue-ui-history-plot-fbTG7Mke.js} +7 -7
- package/dist/{vue-ui-kpi-DAHT9q6j.js → vue-ui-kpi-CfX-zUDS.js} +3 -3
- package/dist/{vue-ui-mini-loader-CuilTrcI.js → vue-ui-mini-loader-C1nANuMy.js} +2 -2
- package/dist/{vue-ui-molecule-C6suewK-.js → vue-ui-molecule-BU7T1ysb.js} +5 -5
- package/dist/{vue-ui-mood-radar-DPvGhgPI.js → vue-ui-mood-radar-Cb8cFWzE.js} +7 -7
- package/dist/{vue-ui-nested-donuts-BvPWp9Du.js → vue-ui-nested-donuts-DTZD8BTA.js} +7 -7
- package/dist/{vue-ui-onion-BZ0tfRV_.js → vue-ui-onion-5xmlEUsJ.js} +8 -8
- package/dist/{vue-ui-parallel-coordinate-plot-DqFj8hbo.js → vue-ui-parallel-coordinate-plot-Wc0TbyJH.js} +8 -8
- package/dist/{vue-ui-quadrant-Cg5e73ny.js → vue-ui-quadrant-BC99Cua7.js} +8 -8
- package/dist/{vue-ui-quick-chart-sABlk5nb.js → vue-ui-quick-chart-Cbv2UcEu.js} +6 -6
- package/dist/{vue-ui-radar-DYcoGzSu.js → vue-ui-radar-B-ey_fDA.js} +8 -8
- package/dist/{vue-ui-rating-1eguB-TH.js → vue-ui-rating-BNCKLcCa.js} +2 -2
- package/dist/{vue-ui-relation-circle-BeWuQDkk.js → vue-ui-relation-circle-CYFQcAgc.js} +7 -7
- package/dist/{vue-ui-ridgeline-CG7FefqU.js → vue-ui-ridgeline-B_6K1FTc.js} +8 -8
- package/dist/{vue-ui-rings-2eedFGuC.js → vue-ui-rings-D_BTgxYc.js} +8 -8
- package/dist/{vue-ui-scatter-CNtgNP5j.js → vue-ui-scatter-B69SYOfv.js} +8 -8
- package/dist/{vue-ui-skeleton-fqG3bKSz.js → vue-ui-skeleton-CpkwgALO.js} +3 -3
- package/dist/{vue-ui-smiley-D4bvSF9S.js → vue-ui-smiley-t16dEIoQ.js} +2 -2
- package/dist/vue-ui-spark-trend-DskdjYw4.js +336 -0
- package/dist/{vue-ui-sparkbar-D1FXZyQE.js → vue-ui-sparkbar-C-evQIq2.js} +81 -81
- package/dist/{vue-ui-sparkgauge-CHbbxg13.js → vue-ui-sparkgauge-DycVSHAs.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-BxYes64D.js → vue-ui-sparkhistogram-CZLnlSUD.js} +4 -4
- package/dist/{vue-ui-sparkline-CS3F5TFN.js → vue-ui-sparkline-C1nZRVTa.js} +169 -169
- package/dist/{vue-ui-sparkstackbar-CUSBwkUS.js → vue-ui-sparkstackbar-CUUeuwAI.js} +3 -3
- package/dist/{vue-ui-stackbar-CDihyp-i.js → vue-ui-stackbar-D27Wq8Y4.js} +9 -9
- package/dist/{vue-ui-strip-plot-D6MFuKnN.js → vue-ui-strip-plot-D-srKJUr.js} +7 -7
- package/dist/{vue-ui-table-COT59wVb.js → vue-ui-table-LcImk124.js} +4 -4
- package/dist/{vue-ui-table-heatmap--e8yw5yS.js → vue-ui-table-heatmap-BfXe_f0K.js} +5 -5
- package/dist/{vue-ui-table-sparkline-DnSLwUNN.js → vue-ui-table-sparkline-DyrnPNGv.js} +4 -4
- package/dist/{vue-ui-thermometer-ByiRARW0.js → vue-ui-thermometer-DxRDmz-L.js} +7 -7
- package/dist/{vue-ui-timer-DOQVdVN2.js → vue-ui-timer-Bbzb09O8.js} +5 -5
- package/dist/{vue-ui-tiremarks-BFXeJQNZ.js → vue-ui-tiremarks-DWy1Dkub.js} +6 -6
- package/dist/{vue-ui-treemap-s_O9rQUT.js → vue-ui-treemap-C3Ek_E4n.js} +8 -8
- package/dist/{vue-ui-vertical-bar-Bn-m5GKU.js → vue-ui-vertical-bar-CV3Mc1cX.js} +9 -9
- package/dist/{vue-ui-waffle-DmxaWHSw.js → vue-ui-waffle-D2mQJdcV.js} +8 -8
- package/dist/{vue-ui-wheel-zJ5U-h_D.js → vue-ui-wheel-zbog7bII.js} +6 -6
- package/dist/{vue-ui-word-cloud-BEnkOZdv.js → vue-ui-word-cloud-D9iZRkQP.js} +6 -6
- package/dist/{vue-ui-world-CkqoTL4V.js → vue-ui-world-D5dR5VdK.js} +6 -6
- package/dist/{vue-ui-xy-Uqdl2nk-.js → vue-ui-xy-Cll76_i9.js} +404 -414
- package/dist/{vue-ui-xy-canvas-cIU8Y1sD.js → vue-ui-xy-canvas-DJVXAfpL.js} +10 -10
- package/package.json +1 -1
- package/dist/vue-ui-spark-trend-GML5JJxY.js +0 -315
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineAsyncComponent as he, computed as h, ref as y, toRefs as Pe, watch as J, shallowRef as fe, onMounted as Re, onBeforeUnmount as ye, createElementBlock as c, openBlock as
|
|
2
|
-
import { u as Ge, c as je, t as Ue, b as Xe, C as be, a9 as
|
|
3
|
-
import { u as Le } from "./useNestedProp-
|
|
4
|
-
import { t as Qe, u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { _ as
|
|
9
|
-
const
|
|
1
|
+
import { defineAsyncComponent as he, computed as h, ref as y, toRefs as Pe, watch as J, shallowRef as fe, onMounted as Re, onBeforeUnmount as ye, createElementBlock as c, openBlock as n, normalizeStyle as D, renderSlot as S, createCommentVNode as f, createBlock as pe, normalizeProps as ge, guardReactiveProps as me, createElementVNode as p, toDisplayString as T, unref as s, createVNode as Fe, Fragment as Q, renderList as ee, withCtx as Ee, createTextVNode as Oe, nextTick as Be } from "vue";
|
|
2
|
+
import { u as Ge, c as je, t as Ue, b as Xe, C as be, a9 as ae, o as ke, f as xe, g as Ye, x as W, aa as qe, ab as Ze, X as Ke, s as P, V as _e, U as He, ac as we, k as te, i as le, ad as Je } from "./index-smzxfsyV.js";
|
|
3
|
+
import { u as Le } from "./useNestedProp-DeKmJzsE.js";
|
|
4
|
+
import { t as Qe, u as ea } from "./useResponsive-DfdjqQps.js";
|
|
5
|
+
import { u as aa } from "./useChartAccessibility-9icAAmYg.js";
|
|
6
|
+
import { u as ta, B as la } from "./BaseScanner-BgWxam9d.js";
|
|
7
|
+
import { u as ua } from "./useTimeLabels-BGFjWgrv.js";
|
|
8
|
+
import { _ as oa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
|
+
const sa = ["id"], na = ["xmlns", "viewBox"], ra = ["width", "height"], ia = ["id"], va = ["stop-color"], da = ["stop-color"], ca = ["id"], ha = ["stop-color"], fa = ["stop-color"], ya = ["id"], pa = ["stop-color"], ga = ["stop-color"], ma = { key: 1 }, ba = ["d", "fill"], ka = ["d", "fill"], xa = ["d", "stroke", "stroke-width"], _a = ["d", "stroke", "stroke-width"], wa = ["x", "y", "width", "height", "fill", "rx"], La = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Aa = ["x1", "x2", "y1", "y2", "stroke", "stroke-dasharray", "stroke-width"], $a = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Na = ["x", "y", "font-size", "font-weight", "fill"], Ma = ["x", "y", "height", "width", "onMouseenter", "onMouseleave", "onClick"], Ca = {
|
|
10
10
|
__name: "vue-ui-sparkline",
|
|
11
11
|
props: {
|
|
12
12
|
config: {
|
|
@@ -39,12 +39,12 @@ const st = ["id"], nt = ["xmlns", "viewBox"], rt = ["width", "height"], it = ["i
|
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
emits: ["hoverIndex", "selectDatapoint"],
|
|
42
|
-
setup(
|
|
43
|
-
const $e = he(() => import("./PackageVersion-
|
|
44
|
-
function Ce(
|
|
45
|
-
return Je(
|
|
42
|
+
setup($, { emit: Ae }) {
|
|
43
|
+
const $e = he(() => import("./PackageVersion-BzGzkGiC.js")), Ne = he(() => import("./SparkTooltip-DFRSPT3_.js")), { vue_ui_sparkline: Me } = Ge(), r = $, ue = h(() => Array.isArray(r.dataset) && r.dataset.length > 0), g = y(je()), R = y(null), oe = y(null), se = y(null), e = y(O());
|
|
44
|
+
function Ce(a) {
|
|
45
|
+
return Je(a).map((t) => ({ period: "-", value: t }));
|
|
46
46
|
}
|
|
47
|
-
const { loading: F, FINAL_DATASET:
|
|
47
|
+
const { loading: F, FINAL_DATASET: N, manualLoading: E } = ta({
|
|
48
48
|
...Pe(r),
|
|
49
49
|
FINAL_CONFIG: e,
|
|
50
50
|
prepareConfig: O,
|
|
@@ -71,81 +71,81 @@ const st = ["id"], nt = ["xmlns", "viewBox"], rt = ["width", "height"], it = ["i
|
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
})
|
|
74
|
-
}), { svgRef: ne } =
|
|
74
|
+
}), { svgRef: ne } = aa({ config: e.value.style.title });
|
|
75
75
|
function O() {
|
|
76
|
-
const
|
|
76
|
+
const a = Le({
|
|
77
77
|
userConfig: r.config,
|
|
78
78
|
defaultConfig: Me
|
|
79
79
|
});
|
|
80
|
-
let
|
|
81
|
-
return
|
|
80
|
+
let t = {};
|
|
81
|
+
return a.theme ? t = {
|
|
82
82
|
...Le({
|
|
83
|
-
userConfig: Xe.vue_ui_sparkline[
|
|
84
|
-
defaultConfig:
|
|
83
|
+
userConfig: Xe.vue_ui_sparkline[a.theme] || r.config,
|
|
84
|
+
defaultConfig: a
|
|
85
85
|
})
|
|
86
|
-
} :
|
|
86
|
+
} : t = a, r.config && be(r.config, "style.scaleMin") ? t.style.scaleMin = r.config.style.scaleMin : t.style.scaleMin = null, r.config && be(r.config, "style.scaleMax") ? t.style.scaleMax = r.config.style.scaleMax : t.style.scaleMax = null, t;
|
|
87
87
|
}
|
|
88
|
-
const
|
|
89
|
-
data:
|
|
88
|
+
const x = h(() => ae({
|
|
89
|
+
data: N.value,
|
|
90
90
|
threshold: e.value.downsample.threshold
|
|
91
91
|
}));
|
|
92
|
-
J(() => r.config, (
|
|
92
|
+
J(() => r.config, (a) => {
|
|
93
93
|
F.value || (e.value = O()), ie(), o.value.chartWidth = e.value.style.chartWidth;
|
|
94
|
-
}, { deep: !0 }), J(() => r.dataset, (
|
|
95
|
-
Array.isArray(
|
|
96
|
-
data:
|
|
97
|
-
...
|
|
98
|
-
value: [void 0].includes(
|
|
94
|
+
}, { deep: !0 }), J(() => r.dataset, (a) => {
|
|
95
|
+
Array.isArray(a) && a.length > 0 && (E.value = !1), m.value = ae({
|
|
96
|
+
data: N.value.map((t) => ({
|
|
97
|
+
...t,
|
|
98
|
+
value: [void 0].includes(t.value) ? null : t.value
|
|
99
99
|
})),
|
|
100
100
|
threshold: e.value.downsample.threshold
|
|
101
101
|
});
|
|
102
102
|
}, { deep: !0 });
|
|
103
103
|
const m = y(Ie());
|
|
104
104
|
function Ie() {
|
|
105
|
-
return
|
|
106
|
-
data:
|
|
107
|
-
...
|
|
105
|
+
return ae({
|
|
106
|
+
data: N.value.map((a) => e.value.style.animation.show && N.value.length > 1 ? {
|
|
107
|
+
...a,
|
|
108
108
|
value: null
|
|
109
109
|
} : {
|
|
110
|
-
...
|
|
111
|
-
value: [void 0].includes(
|
|
110
|
+
...a,
|
|
111
|
+
value: [void 0].includes(a.value) ? null : a.value
|
|
112
112
|
}),
|
|
113
113
|
threshold: e.value.downsample.threshold
|
|
114
114
|
});
|
|
115
115
|
}
|
|
116
|
-
const b = fe(null),
|
|
117
|
-
const
|
|
118
|
-
return `${
|
|
116
|
+
const b = fe(null), _ = fe(null), B = y(!1), M = y(0), G = y([]), j = y(""), U = h(() => {
|
|
117
|
+
const t = (x.value || []).map((u) => `${u.period}::${Number.isFinite(u.value) ? u.value : 0}`).join("|"), l = e.value?.style?.animation || {};
|
|
118
|
+
return `${t}#${!!l.show}#${l.animationFrames || 0}`;
|
|
119
119
|
});
|
|
120
120
|
function V() {
|
|
121
|
-
|
|
121
|
+
M.value && (cancelAnimationFrame(M.value), M.value = 0), G.value.forEach((a) => clearTimeout(a)), G.value = [], B.value = !1;
|
|
122
122
|
}
|
|
123
123
|
function X() {
|
|
124
|
-
const
|
|
125
|
-
if (l && l === j.value && (B.value || m.value.length ===
|
|
124
|
+
const a = e.value?.style?.animation || {}, t = x.value || [], l = U.value;
|
|
125
|
+
if (l && l === j.value && (B.value || m.value.length === t.length))
|
|
126
126
|
return;
|
|
127
|
-
if (V(), !
|
|
128
|
-
m.value =
|
|
127
|
+
if (V(), !a.show || F.value || t.length <= 1) {
|
|
128
|
+
m.value = t, j.value = l;
|
|
129
129
|
return;
|
|
130
130
|
}
|
|
131
131
|
B.value = !0, j.value = l, m.value = [];
|
|
132
|
-
const u = Math.max(1, Number(
|
|
132
|
+
const u = Math.max(1, Number(a.animationFrames) || 1), K = Math.max(1, Math.floor(u / t.length));
|
|
133
133
|
let H = 0;
|
|
134
134
|
const ce = () => {
|
|
135
135
|
if (l !== U.value) {
|
|
136
136
|
V();
|
|
137
137
|
return;
|
|
138
138
|
}
|
|
139
|
-
if (H <
|
|
140
|
-
m.value.push(
|
|
139
|
+
if (H < t.length) {
|
|
140
|
+
m.value.push(t[H]);
|
|
141
141
|
const We = setTimeout(() => {
|
|
142
|
-
|
|
142
|
+
M.value = requestAnimationFrame(ce);
|
|
143
143
|
}, K);
|
|
144
144
|
G.value.push(We), H += 1;
|
|
145
145
|
} else
|
|
146
|
-
m.value =
|
|
146
|
+
m.value = t, V();
|
|
147
147
|
};
|
|
148
|
-
|
|
148
|
+
M.value = requestAnimationFrame(ce);
|
|
149
149
|
}
|
|
150
150
|
J(U, () => {
|
|
151
151
|
X();
|
|
@@ -160,35 +160,35 @@ const st = ["id"], nt = ["xmlns", "viewBox"], rt = ["width", "height"], it = ["i
|
|
|
160
160
|
componentName: "VueUiSparkline",
|
|
161
161
|
type: "dataset",
|
|
162
162
|
debug: re.value
|
|
163
|
-
}), E.value = !0) : r.dataset.forEach((
|
|
163
|
+
}), E.value = !0) : r.dataset.forEach((a, t) => {
|
|
164
164
|
Ye({
|
|
165
|
-
datasetObject:
|
|
165
|
+
datasetObject: a,
|
|
166
166
|
requiredAttributes: ["period", "value"]
|
|
167
167
|
}).forEach((l) => {
|
|
168
168
|
xe({
|
|
169
169
|
componentName: "VueUiSparkline",
|
|
170
170
|
type: "datasetSerieAttribute",
|
|
171
171
|
property: l,
|
|
172
|
-
index:
|
|
172
|
+
index: t,
|
|
173
173
|
debug: re.value
|
|
174
174
|
});
|
|
175
175
|
});
|
|
176
176
|
}), ke(r.dataset) || (E.value = e.value.loading), e.value.responsive) {
|
|
177
|
-
const
|
|
178
|
-
const { width:
|
|
177
|
+
const a = Qe(() => {
|
|
178
|
+
const { width: t, height: l } = ea({
|
|
179
179
|
chart: R.value,
|
|
180
180
|
title: e.value.style.title.show && r.showInfo ? oe.value : null,
|
|
181
181
|
source: se.value
|
|
182
182
|
});
|
|
183
183
|
requestAnimationFrame(() => {
|
|
184
|
-
o.value.width =
|
|
184
|
+
o.value.width = t, o.value.height = l, o.value.chartWidth = e.value.style.chartWidth / 500 * t, o.value.padding = r.forcedPadding / 500 * t;
|
|
185
185
|
});
|
|
186
186
|
});
|
|
187
|
-
b.value && (
|
|
187
|
+
b.value && (_.value && b.value.unobserve(_.value), b.value.disconnect()), b.value = new ResizeObserver(a), _.value = R.value.parentNode, b.value.observe(_.value);
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
ye(() => {
|
|
191
|
-
b.value && (
|
|
191
|
+
b.value && (_.value && b.value.unobserve(_.value), b.value.disconnect());
|
|
192
192
|
});
|
|
193
193
|
const o = y({
|
|
194
194
|
height: 80 * r.heightRatio,
|
|
@@ -196,62 +196,62 @@ const st = ["id"], nt = ["xmlns", "viewBox"], rt = ["width", "height"], it = ["i
|
|
|
196
196
|
chartWidth: e.value.style.chartWidth,
|
|
197
197
|
padding: r.forcedPadding
|
|
198
198
|
}), Y = Ae, i = h(() => {
|
|
199
|
-
const { top:
|
|
199
|
+
const { top: a, right: t, bottom: l, left: u } = e.value.style.padding;
|
|
200
200
|
return {
|
|
201
|
-
top:
|
|
201
|
+
top: a,
|
|
202
202
|
left: u,
|
|
203
|
-
right: o.value.width -
|
|
203
|
+
right: o.value.width - t,
|
|
204
204
|
bottom: o.value.height - l,
|
|
205
205
|
start: r.showInfo && e.value.style.dataLabel.show && e.value.style.dataLabel.position === "left" ? o.value.width - o.value.chartWidth + u : o.value.padding + u,
|
|
206
|
-
width: r.showInfo && e.value.style.dataLabel.show ? o.value.chartWidth - u -
|
|
207
|
-
height: o.value.height -
|
|
206
|
+
width: r.showInfo && e.value.style.dataLabel.show ? o.value.chartWidth - u - t : o.value.width - o.value.padding - u - t,
|
|
207
|
+
height: o.value.height - a - l
|
|
208
208
|
};
|
|
209
|
-
}), q = h(() => [null, void 0].includes(e.value.style.scaleMin) ? Math.min(...m.value.map((
|
|
210
|
-
const
|
|
211
|
-
return Math.abs(
|
|
212
|
-
}), ve = h(() => Se.value +
|
|
213
|
-
function Z(
|
|
214
|
-
return isNaN(
|
|
209
|
+
}), q = h(() => [null, void 0].includes(e.value.style.scaleMin) ? Math.min(...m.value.map((a) => isNaN(a.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(a.value) ? 0 : a.value || 0)) : e.value.style.scaleMin), Se = h(() => [null, void 0].includes(e.value.style.scaleMax) ? Math.max(...m.value.map((a) => isNaN(a.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(a.value) ? 0 : a.value || 0)) : e.value.style.scaleMax), C = h(() => {
|
|
210
|
+
const a = q.value >= 0 ? 0 : q.value;
|
|
211
|
+
return Math.abs(a);
|
|
212
|
+
}), ve = h(() => Se.value + C.value), w = h(() => i.value.bottom - i.value.height * Z(C.value));
|
|
213
|
+
function Z(a) {
|
|
214
|
+
return isNaN(a / ve.value) ? 0 : a / ve.value;
|
|
215
215
|
}
|
|
216
|
-
const
|
|
217
|
-
values:
|
|
218
|
-
maxDatapoints:
|
|
216
|
+
const L = h(() => x.value.length - 1 || 1), z = h(() => ua({
|
|
217
|
+
values: x.value.map((a) => a.period),
|
|
218
|
+
maxDatapoints: x.value.length,
|
|
219
219
|
formatter: e.value.style.dataLabel.datetimeFormatter,
|
|
220
220
|
start: 0,
|
|
221
|
-
end:
|
|
222
|
-
})), d = h(() => m.value.map((
|
|
223
|
-
const l = isNaN(
|
|
221
|
+
end: x.value.length
|
|
222
|
+
})), d = h(() => m.value.map((a, t) => {
|
|
223
|
+
const l = isNaN(a.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(a.value) ? 0 : a.value || 0, u = i.value.width / L.value;
|
|
224
224
|
return {
|
|
225
225
|
absoluteValue: l,
|
|
226
|
-
period: z.value && z.value[
|
|
227
|
-
plotValue: l +
|
|
228
|
-
toMax: Z(l +
|
|
229
|
-
x: i.value.start +
|
|
230
|
-
y: i.value.bottom - i.value.height * Z(l +
|
|
231
|
-
id: `plot_${g.value}_${
|
|
232
|
-
color:
|
|
226
|
+
period: z.value && z.value[t] && z.value[t].text ? z.value[t].text : a.period,
|
|
227
|
+
plotValue: l + C.value,
|
|
228
|
+
toMax: Z(l + C.value),
|
|
229
|
+
x: i.value.start + t * u,
|
|
230
|
+
y: i.value.bottom - i.value.height * Z(l + C.value),
|
|
231
|
+
id: `plot_${g.value}_${t}`,
|
|
232
|
+
color: I.value ? e.value.style.bar.color : e.value.style.area.useGradient ? W(e.value.style.line.color, 0.05 * (1 - t / L.value)) : e.value.style.line.color,
|
|
233
233
|
width: u
|
|
234
234
|
};
|
|
235
235
|
})), Ve = h(() => {
|
|
236
|
-
const
|
|
236
|
+
const a = { x: d.value[0].x || 0, y: (o.value.height || 0) - 6 }, t = { x: d.value[d.value.length - 1].x || 0, y: (o.value.height || 0) - 6 }, l = [];
|
|
237
237
|
return d.value.forEach((u) => {
|
|
238
238
|
l.push(`${u.x || 0},${u.y || 0} `);
|
|
239
|
-
}), [
|
|
240
|
-
}), v = y(void 0),
|
|
241
|
-
function ze(
|
|
242
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint:
|
|
239
|
+
}), [a.x, a.y, ...l, t.x, t.y].toString();
|
|
240
|
+
}), v = y(void 0), A = y(void 0);
|
|
241
|
+
function ze(a, t) {
|
|
242
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: a, seriesIndex: t }), v.value = a, A.value || (A.value = a), Y("hoverIndex", { index: t });
|
|
243
243
|
}
|
|
244
|
-
function De(
|
|
245
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint:
|
|
244
|
+
function De(a, t) {
|
|
245
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: a, seriesIndex: t }), A.value = v.value, v.value = void 0, Y("hoverIndex", { index: void 0 });
|
|
246
246
|
}
|
|
247
247
|
const k = h(() => {
|
|
248
248
|
if (ue.value) {
|
|
249
|
-
const
|
|
249
|
+
const a = d.value.map((l) => l.absoluteValue), t = a.reduce((l, u) => l + u, 0);
|
|
250
250
|
return {
|
|
251
251
|
latest: d.value[d.value.length - 1] ? d.value[d.value.length - 1].absoluteValue : 0,
|
|
252
|
-
sum:
|
|
253
|
-
average:
|
|
254
|
-
median: Ze(
|
|
252
|
+
sum: t,
|
|
253
|
+
average: t / d.value.length,
|
|
254
|
+
median: Ze(a),
|
|
255
255
|
trend: qe(d.value.map(({ x: l, y: u, absoluteValue: K }) => ({
|
|
256
256
|
x: l,
|
|
257
257
|
y: u,
|
|
@@ -266,18 +266,18 @@ const st = ["id"], nt = ["xmlns", "viewBox"], rt = ["width", "height"], it = ["i
|
|
|
266
266
|
median: null,
|
|
267
267
|
trend: null
|
|
268
268
|
};
|
|
269
|
-
}), de = h(() => ue.value ? e.value.style.dataLabel.valueType === "latest" ? k.value.latest : e.value.style.dataLabel.valueType === "sum" ? k.value.sum : e.value.style.dataLabel.valueType === "average" ? k.value.average : 0 : 0),
|
|
270
|
-
function Te(
|
|
271
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint:
|
|
269
|
+
}), de = h(() => ue.value ? e.value.style.dataLabel.valueType === "latest" ? k.value.latest : e.value.style.dataLabel.valueType === "sum" ? k.value.sum : e.value.style.dataLabel.valueType === "average" ? k.value.average : 0 : 0), I = h(() => e.value.type && e.value.type === "bar");
|
|
270
|
+
function Te(a, t) {
|
|
271
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: a, seriesIndex: t }), Y("selectDatapoint", { datapoint: a, index: t });
|
|
272
272
|
}
|
|
273
|
-
return (
|
|
273
|
+
return (a, t) => (n(), c("div", {
|
|
274
274
|
ref_key: "sparklineChart",
|
|
275
275
|
ref: R,
|
|
276
276
|
class: "vue-ui-sparkline",
|
|
277
277
|
id: g.value,
|
|
278
278
|
style: D(`width:100%;font-family:${e.value.style.fontFamily};`)
|
|
279
279
|
}, [
|
|
280
|
-
|
|
280
|
+
S(a.$slots, "before", ge(me({
|
|
281
281
|
selected: v.value,
|
|
282
282
|
latest: k.value.latest,
|
|
283
283
|
sum: k.value.sum,
|
|
@@ -285,7 +285,7 @@ const st = ["id"], nt = ["xmlns", "viewBox"], rt = ["width", "height"], it = ["i
|
|
|
285
285
|
median: k.value.median,
|
|
286
286
|
trend: k.value.trend
|
|
287
287
|
})), void 0, !0),
|
|
288
|
-
e.value.style.title.show &&
|
|
288
|
+
e.value.style.title.show && $.showInfo ? (n(), c("div", {
|
|
289
289
|
key: 0,
|
|
290
290
|
ref_key: "chartTitle",
|
|
291
291
|
ref: oe,
|
|
@@ -296,16 +296,16 @@ const st = ["id"], nt = ["xmlns", "viewBox"], rt = ["width", "height"], it = ["i
|
|
|
296
296
|
style: D(`padding:${e.value.style.title.textAlign === "left" ? "0 0 0 12px" : e.value.style.title.textAlign === "right" ? "0 12px 0 0" : "0"}`)
|
|
297
297
|
}, T(v.value ? v.value.period : e.value.style.title.text), 5)
|
|
298
298
|
], 4)) : f("", !0),
|
|
299
|
-
(
|
|
299
|
+
(n(), c("svg", {
|
|
300
300
|
ref_key: "svgRef",
|
|
301
301
|
ref: ne,
|
|
302
|
-
xmlns:
|
|
302
|
+
xmlns: s(Ke),
|
|
303
303
|
viewBox: `0 0 ${o.value.width} ${o.value.height}`,
|
|
304
304
|
style: D(`background:${e.value.style.backgroundColor};overflow:visible`),
|
|
305
|
-
onMouseleave:
|
|
305
|
+
onMouseleave: t[0] || (t[0] = (l) => A.value = void 0)
|
|
306
306
|
}, [
|
|
307
|
-
Fe(
|
|
308
|
-
|
|
307
|
+
Fe(s($e)),
|
|
308
|
+
a.$slots["chart-background"] ? (n(), c("foreignObject", {
|
|
309
309
|
key: 0,
|
|
310
310
|
x: 0,
|
|
311
311
|
y: 0,
|
|
@@ -315,8 +315,8 @@ const st = ["id"], nt = ["xmlns", "viewBox"], rt = ["width", "height"], it = ["i
|
|
|
315
315
|
pointerEvents: "none"
|
|
316
316
|
}
|
|
317
317
|
}, [
|
|
318
|
-
|
|
319
|
-
], 8,
|
|
318
|
+
S(a.$slots, "chart-background", {}, void 0, !0)
|
|
319
|
+
], 8, ra)) : f("", !0),
|
|
320
320
|
p("defs", null, [
|
|
321
321
|
p("linearGradient", {
|
|
322
322
|
x1: "0%",
|
|
@@ -327,13 +327,13 @@ const st = ["id"], nt = ["xmlns", "viewBox"], rt = ["width", "height"], it = ["i
|
|
|
327
327
|
}, [
|
|
328
328
|
p("stop", {
|
|
329
329
|
offset: "0%",
|
|
330
|
-
"stop-color":
|
|
331
|
-
}, null, 8,
|
|
330
|
+
"stop-color": s(P)(s(W)(e.value.style.area.color, 0.05), e.value.style.area.opacity)
|
|
331
|
+
}, null, 8, va),
|
|
332
332
|
p("stop", {
|
|
333
333
|
offset: "100%",
|
|
334
|
-
"stop-color":
|
|
335
|
-
}, null, 8,
|
|
336
|
-
], 8,
|
|
334
|
+
"stop-color": s(P)(e.value.style.area.color, e.value.style.area.opacity)
|
|
335
|
+
}, null, 8, da)
|
|
336
|
+
], 8, ia),
|
|
337
337
|
p("linearGradient", {
|
|
338
338
|
x2: "0%",
|
|
339
339
|
y2: "100%",
|
|
@@ -342,12 +342,12 @@ const st = ["id"], nt = ["xmlns", "viewBox"], rt = ["width", "height"], it = ["i
|
|
|
342
342
|
p("stop", {
|
|
343
343
|
offset: "0%",
|
|
344
344
|
"stop-color": e.value.style.bar.color
|
|
345
|
-
}, null, 8,
|
|
345
|
+
}, null, 8, ha),
|
|
346
346
|
p("stop", {
|
|
347
347
|
offset: "100%",
|
|
348
|
-
"stop-color":
|
|
349
|
-
}, null, 8,
|
|
350
|
-
], 8,
|
|
348
|
+
"stop-color": s(W)(e.value.style.bar.color, 0.05)
|
|
349
|
+
}, null, 8, fa)
|
|
350
|
+
], 8, ca),
|
|
351
351
|
p("linearGradient", {
|
|
352
352
|
x2: "0%",
|
|
353
353
|
y2: "100%",
|
|
@@ -355,52 +355,52 @@ const st = ["id"], nt = ["xmlns", "viewBox"], rt = ["width", "height"], it = ["i
|
|
|
355
355
|
}, [
|
|
356
356
|
p("stop", {
|
|
357
357
|
offset: "0%",
|
|
358
|
-
"stop-color":
|
|
359
|
-
}, null, 8,
|
|
358
|
+
"stop-color": s(W)(e.value.style.bar.color, 0.05)
|
|
359
|
+
}, null, 8, pa),
|
|
360
360
|
p("stop", {
|
|
361
361
|
offset: "100%",
|
|
362
362
|
"stop-color": e.value.style.bar.color
|
|
363
|
-
}, null, 8,
|
|
364
|
-
], 8,
|
|
363
|
+
}, null, 8, ga)
|
|
364
|
+
], 8, ya)
|
|
365
365
|
]),
|
|
366
|
-
e.value.style.area.show && !
|
|
367
|
-
e.value.style.line.smooth ? (
|
|
366
|
+
e.value.style.area.show && !I.value && d.value[0] && d.value.length > 1 ? (n(), c("g", ma, [
|
|
367
|
+
e.value.style.line.smooth ? (n(), c("path", {
|
|
368
368
|
key: 0,
|
|
369
|
-
d: `M ${d.value[0].x},${i.value.bottom} ${
|
|
370
|
-
fill: e.value.style.area.useGradient ? `url(#sparkline_gradient_${g.value})` :
|
|
371
|
-
}, null, 8,
|
|
369
|
+
d: `M ${d.value[0].x},${i.value.bottom} ${s(_e)(d.value)} L ${d.value.at(-1).x},${i.value.bottom} Z`,
|
|
370
|
+
fill: e.value.style.area.useGradient ? `url(#sparkline_gradient_${g.value})` : s(P)(e.value.style.area.color, e.value.style.area.opacity)
|
|
371
|
+
}, null, 8, ba)) : (n(), c("path", {
|
|
372
372
|
key: 1,
|
|
373
373
|
d: `M${Ve.value}Z`,
|
|
374
|
-
fill: e.value.style.area.useGradient ? `url(#sparkline_gradient_${g.value})` :
|
|
375
|
-
}, null, 8,
|
|
374
|
+
fill: e.value.style.area.useGradient ? `url(#sparkline_gradient_${g.value})` : s(P)(e.value.style.area.color, e.value.style.area.opacity)
|
|
375
|
+
}, null, 8, ka))
|
|
376
376
|
])) : f("", !0),
|
|
377
|
-
e.value.style.line.smooth && !
|
|
377
|
+
e.value.style.line.smooth && !I.value ? (n(), c("path", {
|
|
378
378
|
key: 2,
|
|
379
|
-
d: `M ${
|
|
379
|
+
d: `M ${s(_e)(d.value) || "0,0"}`,
|
|
380
380
|
stroke: e.value.style.line.color,
|
|
381
381
|
fill: "none",
|
|
382
382
|
"stroke-width": e.value.style.line.strokeWidth,
|
|
383
383
|
"stroke-linecap": "round"
|
|
384
|
-
}, null, 8,
|
|
385
|
-
!e.value.style.line.smooth && !
|
|
384
|
+
}, null, 8, xa)) : f("", !0),
|
|
385
|
+
!e.value.style.line.smooth && !I.value ? (n(), c("path", {
|
|
386
386
|
key: 3,
|
|
387
|
-
d: `M ${
|
|
387
|
+
d: `M ${s(He)(d.value) || "0,0"}`,
|
|
388
388
|
stroke: e.value.style.line.color,
|
|
389
389
|
fill: "none",
|
|
390
390
|
"stroke-width": e.value.style.line.strokeWidth,
|
|
391
391
|
"stroke-linecap": "round"
|
|
392
|
-
}, null, 8,
|
|
393
|
-
(
|
|
394
|
-
|
|
392
|
+
}, null, 8, _a)) : f("", !0),
|
|
393
|
+
(n(!0), c(Q, null, ee(d.value, (l, u) => (n(), c("g", null, [
|
|
394
|
+
I.value ? (n(), c("rect", {
|
|
395
395
|
key: 0,
|
|
396
396
|
x: l.x - l.width / 2,
|
|
397
|
-
y: isNaN(l.absoluteValue > 0 ? l.y :
|
|
397
|
+
y: isNaN(l.absoluteValue > 0 ? l.y : w.value) ? 0 : l.absoluteValue > 0 ? l.y : w.value,
|
|
398
398
|
width: l.width,
|
|
399
|
-
height: isNaN(Math.abs(l.y -
|
|
399
|
+
height: isNaN(Math.abs(l.y - w.value)) ? 0 : Math.abs(l.y - w.value),
|
|
400
400
|
fill: l.absoluteValue > 0 ? `url(#sparkline_bar_gradient_pos_${g.value})` : `url(#sparkline_bar_gradient_neg_${g.value})`,
|
|
401
401
|
rx: e.value.style.bar.borderRadius
|
|
402
|
-
}, null, 8,
|
|
403
|
-
e.value.style.verticalIndicator.show && (v.value && l.id === v.value.id ||
|
|
402
|
+
}, null, 8, wa)) : f("", !0),
|
|
403
|
+
e.value.style.verticalIndicator.show && (v.value && l.id === v.value.id || $.selectedIndex === u) ? (n(), c("line", {
|
|
404
404
|
key: 1,
|
|
405
405
|
x1: l.x,
|
|
406
406
|
x2: l.x,
|
|
@@ -410,21 +410,21 @@ const st = ["id"], nt = ["xmlns", "viewBox"], rt = ["width", "height"], it = ["i
|
|
|
410
410
|
"stroke-width": e.value.style.verticalIndicator.strokeWidth,
|
|
411
411
|
"stroke-linecap": "round",
|
|
412
412
|
"stroke-dasharray": e.value.style.verticalIndicator.strokeDasharray || 0
|
|
413
|
-
}, null, 8,
|
|
413
|
+
}, null, 8, La)) : f("", !0)
|
|
414
414
|
]))), 256)),
|
|
415
|
-
q.value < 0 ? (
|
|
415
|
+
q.value < 0 ? (n(), c("line", {
|
|
416
416
|
key: 4,
|
|
417
417
|
x1: i.value.start,
|
|
418
418
|
x2: i.value.start + i.value.width,
|
|
419
|
-
y1:
|
|
420
|
-
y2:
|
|
419
|
+
y1: s(we)(w.value, i.value.bottom),
|
|
420
|
+
y2: s(we)(w.value, i.value.bottom),
|
|
421
421
|
stroke: e.value.style.zeroLine.color,
|
|
422
422
|
"stroke-dasharray": e.value.style.zeroLine.strokeWidth * 2,
|
|
423
423
|
"stroke-width": e.value.style.zeroLine.strokeWidth,
|
|
424
424
|
"stroke-linecap": "round"
|
|
425
|
-
}, null, 8,
|
|
426
|
-
e.value.style.plot.show ? (
|
|
427
|
-
v.value && l.id === v.value.id ||
|
|
425
|
+
}, null, 8, Aa)) : f("", !0),
|
|
426
|
+
e.value.style.plot.show ? (n(!0), c(Q, { key: 5 }, ee(d.value, (l, u) => (n(), c("g", null, [
|
|
427
|
+
v.value && l.id === v.value.id || $.selectedIndex === u || s(N).length === 1 ? (n(), c("circle", {
|
|
428
428
|
key: 0,
|
|
429
429
|
cx: l.x,
|
|
430
430
|
cy: l.y,
|
|
@@ -432,45 +432,45 @@ const st = ["id"], nt = ["xmlns", "viewBox"], rt = ["width", "height"], it = ["i
|
|
|
432
432
|
fill: l.color,
|
|
433
433
|
stroke: e.value.style.plot.stroke,
|
|
434
434
|
"stroke-width": e.value.style.plot.strokeWidth
|
|
435
|
-
}, null, 8, $
|
|
435
|
+
}, null, 8, $a)) : f("", !0)
|
|
436
436
|
]))), 256)) : f("", !0),
|
|
437
|
-
|
|
437
|
+
$.showInfo && e.value.style.dataLabel.show ? (n(), c("text", {
|
|
438
438
|
key: 6,
|
|
439
439
|
x: e.value.style.dataLabel.position === "left" ? 12 + e.value.style.dataLabel.offsetX : i.value.width + 12 + e.value.style.dataLabel.offsetX,
|
|
440
440
|
y: o.value.height / 2 + e.value.style.dataLabel.fontSize / 2.5 + e.value.style.dataLabel.offsetY,
|
|
441
441
|
"font-size": e.value.style.dataLabel.fontSize,
|
|
442
442
|
"font-weight": e.value.style.dataLabel.bold ? "bold" : "normal",
|
|
443
443
|
fill: e.value.style.dataLabel.color
|
|
444
|
-
}, T(v.value ?
|
|
444
|
+
}, T(v.value ? s(te)(
|
|
445
445
|
e.value.style.dataLabel.formatter,
|
|
446
446
|
v.value.absoluteValue,
|
|
447
|
-
|
|
447
|
+
s(le)({ p: e.value.style.dataLabel.prefix, v: v.value.absoluteValue, s: e.value.style.dataLabel.suffix, r: e.value.style.dataLabel.roundingValue }),
|
|
448
448
|
{ datapoint: v.value }
|
|
449
|
-
) :
|
|
449
|
+
) : s(te)(
|
|
450
450
|
e.value.style.dataLabel.formatter,
|
|
451
451
|
de.value,
|
|
452
|
-
|
|
453
|
-
)), 9,
|
|
454
|
-
(
|
|
455
|
-
x: l.x - (i.value.width / (
|
|
452
|
+
s(le)({ p: e.value.style.dataLabel.prefix, v: de.value, s: e.value.style.dataLabel.suffix, r: e.value.style.dataLabel.roundingValue })
|
|
453
|
+
)), 9, Na)) : f("", !0),
|
|
454
|
+
(n(!0), c(Q, null, ee(d.value, (l, u) => (n(), c("rect", {
|
|
455
|
+
x: l.x - (i.value.width / (L.value + 1) > o.value.padding ? o.value.padding : i.value.width / (L.value + 1)) / 2,
|
|
456
456
|
y: i.value.top - 6,
|
|
457
457
|
height: i.value.height + 6,
|
|
458
|
-
width: i.value.width / (
|
|
458
|
+
width: i.value.width / (L.value + 1) > o.value.padding ? o.value.padding : i.value.width / (L.value + 1),
|
|
459
459
|
fill: "transparent",
|
|
460
460
|
onMouseenter: () => ze(l, u),
|
|
461
461
|
onMouseleave: () => De(l, u),
|
|
462
462
|
onClick: () => Te(l, u)
|
|
463
|
-
}, null, 40,
|
|
464
|
-
|
|
465
|
-
], 44,
|
|
466
|
-
v.value && e.value.style.tooltip.show ? (
|
|
463
|
+
}, null, 40, Ma))), 256)),
|
|
464
|
+
S(a.$slots, "svg", { svg: o.value }, void 0, !0)
|
|
465
|
+
], 44, na)),
|
|
466
|
+
v.value && e.value.style.tooltip.show ? (n(), pe(s(Ne), {
|
|
467
467
|
key: 1,
|
|
468
468
|
x: v.value.x,
|
|
469
469
|
y: v.value.y,
|
|
470
|
-
prevX:
|
|
471
|
-
prevY:
|
|
470
|
+
prevX: A.value.x,
|
|
471
|
+
prevY: A.value.y,
|
|
472
472
|
offsetY: e.value.style.plot.radius * 3 + e.value.style.tooltip.offsetY,
|
|
473
|
-
svgRef:
|
|
473
|
+
svgRef: s(ne),
|
|
474
474
|
background: e.value.style.tooltip.backgroundColor,
|
|
475
475
|
color: e.value.style.tooltip.color,
|
|
476
476
|
fontSize: e.value.style.tooltip.fontSize,
|
|
@@ -480,11 +480,11 @@ const st = ["id"], nt = ["xmlns", "viewBox"], rt = ["width", "height"], it = ["i
|
|
|
480
480
|
backgroundOpacity: e.value.style.tooltip.backgroundOpacity
|
|
481
481
|
}, {
|
|
482
482
|
default: Ee(() => [
|
|
483
|
-
|
|
484
|
-
Oe(T(v.value.period) + ": " + T(
|
|
483
|
+
S(a.$slots, "tooltip", ge(me({ ...v.value })), () => [
|
|
484
|
+
Oe(T(v.value.period) + ": " + T(s(te)(
|
|
485
485
|
e.value.style.dataLabel.formatter,
|
|
486
486
|
v.value.absoluteValue,
|
|
487
|
-
|
|
487
|
+
s(le)({
|
|
488
488
|
p: e.value.style.dataLabel.prefix,
|
|
489
489
|
v: v.value.absoluteValue,
|
|
490
490
|
s: e.value.style.dataLabel.suffix,
|
|
@@ -496,18 +496,18 @@ const st = ["id"], nt = ["xmlns", "viewBox"], rt = ["width", "height"], it = ["i
|
|
|
496
496
|
]),
|
|
497
497
|
_: 3
|
|
498
498
|
}, 8, ["x", "y", "prevX", "prevY", "offsetY", "svgRef", "background", "color", "fontSize", "borderWidth", "borderColor", "borderRadius", "backgroundOpacity"])) : f("", !0),
|
|
499
|
-
|
|
499
|
+
a.$slots.source ? (n(), c("div", {
|
|
500
500
|
key: 2,
|
|
501
501
|
ref_key: "source",
|
|
502
502
|
ref: se,
|
|
503
503
|
dir: "auto"
|
|
504
504
|
}, [
|
|
505
|
-
|
|
505
|
+
S(a.$slots, "source", {}, void 0, !0)
|
|
506
506
|
], 512)) : f("", !0),
|
|
507
|
-
|
|
508
|
-
], 12,
|
|
507
|
+
s(F) ? (n(), pe(la, { key: 3 })) : f("", !0)
|
|
508
|
+
], 12, sa));
|
|
509
509
|
}
|
|
510
|
-
},
|
|
510
|
+
}, Ra = /* @__PURE__ */ oa(Ca, [["__scopeId", "data-v-9bb1ae10"]]);
|
|
511
511
|
export {
|
|
512
|
-
|
|
512
|
+
Ra as default
|
|
513
513
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineAsyncComponent as X, useSlots as be, onMounted as J, ref as v, toRefs as ke, watch as K, computed as $, createElementBlock as r, openBlock as s, normalizeStyle as p, createCommentVNode as f, createVNode as Q, createBlock as _e, createElementVNode as d, toDisplayString as F, unref as c, Fragment as k, renderList as A, normalizeClass as N, withCtx as Z, renderSlot as R, normalizeProps as ee, guardReactiveProps as te } from "vue";
|
|
2
|
-
import { u as xe, c as le, t as we, a as Ce, p as i, b as $e, e as D, d as Se, o as Fe, f as oe, g as Ae, i as U, X as De, s as ae, x as se, k as re, y as Ie } from "./index-
|
|
3
|
-
import { u as ne } from "./useNestedProp-
|
|
2
|
+
import { u as xe, c as le, t as we, a as Ce, p as i, b as $e, e as D, d as Se, o as Fe, f as oe, g as Ae, i as U, X as De, s as ae, x as se, k as re, y as Ie } from "./index-smzxfsyV.js";
|
|
3
|
+
import { u as ne } from "./useNestedProp-DeKmJzsE.js";
|
|
4
4
|
import { u as Pe } from "./useChartAccessibility-9icAAmYg.js";
|
|
5
5
|
import { u as ze, B as Be } from "./BaseScanner-BgWxam9d.js";
|
|
6
6
|
import { _ as Le } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -32,7 +32,7 @@ const Ne = ["xmlns", "viewBox"], Te = ["id"], Ee = ["stop-color"], Me = ["stop-c
|
|
|
32
32
|
},
|
|
33
33
|
emits: ["selectDatapoint"],
|
|
34
34
|
setup(ue, { emit: ie }) {
|
|
35
|
-
const ce = X(() => import("./PackageVersion-
|
|
35
|
+
const ce = X(() => import("./PackageVersion-BzGzkGiC.js")), de = X(() => import("./Tooltip-Db9jy0Iu.js")), { vue_ui_sparkstackbar: ve } = xe(), _ = ue, pe = be();
|
|
36
36
|
J(() => {
|
|
37
37
|
pe["chart-background"] && console.warn("VueUiSparkStackbar does not support the #chart-background slot.");
|
|
38
38
|
});
|