vue-data-ui 3.2.2 → 3.2.4
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-BWqgcDpl.js → Arrow-Bb0bGghy.js} +1 -1
- package/dist/{BaseDraggableDialog-Cg4ZF9cb.js → BaseDraggableDialog-CHhZIht2.js} +2 -2
- package/dist/{BaseIcon-e63bhLIi.js → BaseIcon-Bz-1GQhu.js} +10 -3
- package/dist/ColorPicker-B-WUqMoV.js +238 -0
- package/dist/{DataTable-dv6G7Krn.js → DataTable-BvjacRbw.js} +2 -2
- package/dist/{Legend-CVcdvTLM.js → Legend-BpoFJ8fc.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DSmotL8i.js → NonSvgPenAndPaper-l9giyY1Z.js} +3 -3
- package/dist/{PackageVersion-C3Vg-vTM.js → PackageVersion-x4hg0tYe.js} +1 -1
- package/dist/{PenAndPaper-CplrzuG7.js → PenAndPaper-CR8q353D.js} +3 -3
- package/dist/{Shape-D_vfF7sk.js → Shape-C_C_OmqR.js} +1 -1
- package/dist/{Slicer-BO2wNLcR.js → Slicer-BA2GhOmY.js} +63 -63
- package/dist/{SparkTooltip-B82G5-BO.js → SparkTooltip-Dz1PDE_h.js} +1 -1
- package/dist/{Title-DlqxaiIs.js → Title-C__lOIPC.js} +1 -1
- package/dist/{Tooltip-BKqK7z38.js → Tooltip-BOXz8skU.js} +1 -1
- package/dist/{UserOptions-C9IFsUt0.js → UserOptions-DsTgvAok.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +5 -0
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-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-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-1edcjS0-.js → dom-to-png-BgvOdfyW.js} +1 -1
- package/dist/{img-A48JwXxj.js → img-DjWwQXVS.js} +1 -1
- package/dist/{lib-CDp2KgIU.js → lib-BEpWEyMm.js} +56 -56
- package/dist/{pdf-BZV8MuXM.js → pdf-YD0ShN36.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +15 -4
- package/dist/types/vue-ui-annotator.d.ts +14 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-C2IsrQqi.js → useAutoSizeLabelsInsideViewbox-BVJkib7z.js} +1 -1
- package/dist/{useNestedProp-Cwtenuui.js → useNestedProp-CLD3Gk9S.js} +17 -13
- package/dist/{usePrinter-DU_Pi3Rq.js → usePrinter-w23K-ezx.js} +2 -2
- package/dist/{vue-data-ui-BHJOTOQY.js → vue-data-ui-boJG_PFN.js} +64 -64
- package/dist/vue-data-ui.js +96 -96
- package/dist/{vue-ui-3d-bar-rxghnZJO.js → vue-ui-3d-bar-HrbA4DmH.js} +6 -6
- package/dist/vue-ui-accordion-Cv7OaVUI.js +78 -0
- package/dist/{vue-ui-age-pyramid-gT_SnI-F.js → vue-ui-age-pyramid-CS5384rT.js} +6 -6
- package/dist/vue-ui-annotator-DOO0qej9.js +2959 -0
- package/dist/{vue-ui-bullet-DREbhLhy.js → vue-ui-bullet-DaauvX3a.js} +15 -15
- package/dist/{vue-ui-candlestick-D4P15Ci1.js → vue-ui-candlestick-DQXu21Mp.js} +33 -33
- package/dist/{vue-ui-carousel-table-C24KX4gd.js → vue-ui-carousel-table-Bh8Vb6ce.js} +4 -4
- package/dist/{vue-ui-chestnut-BbQknrj0.js → vue-ui-chestnut-BgmAUlUz.js} +32 -32
- package/dist/{vue-ui-chord-BM4_D9kI.js → vue-ui-chord-3NX_jwG_.js} +53 -53
- package/dist/{vue-ui-circle-pack-S4Asc9CS.js → vue-ui-circle-pack-Berb37Aa.js} +29 -29
- package/dist/{vue-ui-cursor-F9MXsQ1K.js → vue-ui-cursor-Cbt_0B5t.js} +2 -2
- package/dist/{vue-ui-dashboard-D6LHLdFS.js → vue-ui-dashboard-BzU-96mz.js} +67 -67
- package/dist/{vue-ui-digits-B_8VzLOS.js → vue-ui-digits-ChAz3jSS.js} +2 -2
- package/dist/{vue-ui-donut-B7T8_tP1.js → vue-ui-donut-BBQNmH5y.js} +8 -8
- package/dist/{vue-ui-donut-evolution-DOn-7PnK.js → vue-ui-donut-evolution-BD3_nxd1.js} +55 -55
- package/dist/{vue-ui-dumbbell-Ch66pFUG.js → vue-ui-dumbbell-Ct-YAkFg.js} +7 -7
- package/dist/{vue-ui-flow-DPcsRLJJ.js → vue-ui-flow-CVHjWM9l.js} +63 -63
- package/dist/{vue-ui-funnel-BdcKoacQ.js → vue-ui-funnel-Co79mdnX.js} +36 -36
- package/dist/{vue-ui-galaxy-D3c-O1Op.js → vue-ui-galaxy-D-XFEUfD.js} +46 -46
- package/dist/{vue-ui-gauge-D1zbKzZQ.js → vue-ui-gauge-Cx6eQ1nL.js} +59 -59
- package/dist/{vue-ui-gizmo-CcrANrSX.js → vue-ui-gizmo-D2PHxbS3.js} +3 -3
- package/dist/{vue-ui-heatmap-CcvV9Y14.js → vue-ui-heatmap-D4KCpMN3.js} +7 -7
- package/dist/{vue-ui-history-plot-a0mLhd0L.js → vue-ui-history-plot-Q_Q9g2Es.js} +44 -44
- package/dist/{vue-ui-kpi-BwUpplcm.js → vue-ui-kpi-D7WXGb3K.js} +3 -3
- package/dist/{vue-ui-mini-loader-DBPZOqZA.js → vue-ui-mini-loader-CKMzFSG5.js} +2 -2
- package/dist/{vue-ui-molecule-xsgartoC.js → vue-ui-molecule-Bxs72uED.js} +5 -5
- package/dist/{vue-ui-mood-radar-kl2d5QsL.js → vue-ui-mood-radar-B5wYN9tI.js} +7 -7
- package/dist/{vue-ui-nested-donuts-D9I8_VnP.js → vue-ui-nested-donuts-pt6KriAc.js} +70 -70
- package/dist/{vue-ui-onion-BlxsHavW.js → vue-ui-onion-C8jid2_q.js} +8 -8
- package/dist/{vue-ui-parallel-coordinate-plot-DHH6lrbW.js → vue-ui-parallel-coordinate-plot-06wFGFFV.js} +35 -35
- package/dist/{vue-ui-quadrant-DyIQZUPC.js → vue-ui-quadrant-B2dS6aSz.js} +8 -8
- package/dist/{vue-ui-quick-chart-Jfr_Ezh9.js → vue-ui-quick-chart-CrkR07qv.js} +55 -55
- package/dist/{vue-ui-radar-BL_dJV12.js → vue-ui-radar-CkAX2pUE.js} +54 -54
- package/dist/{vue-ui-rating-LiragGSU.js → vue-ui-rating-C0Ubexdn.js} +2 -2
- package/dist/{vue-ui-relation-circle-BrR2W_6V.js → vue-ui-relation-circle-eROPsns9.js} +25 -25
- package/dist/{vue-ui-ridgeline-CpaOYplC.js → vue-ui-ridgeline-AkXpQ6zB.js} +27 -27
- package/dist/{vue-ui-rings-B9TGOwFE.js → vue-ui-rings-DEwCnnwC.js} +38 -38
- package/dist/{vue-ui-scatter-Bq4pSRu_.js → vue-ui-scatter-DzojJVhb.js} +49 -49
- package/dist/{vue-ui-skeleton-BlVnOk2o.js → vue-ui-skeleton-Bp8Ao16B.js} +3 -3
- package/dist/{vue-ui-smiley-DyP9gKYe.js → vue-ui-smiley-DxC8rN5b.js} +2 -2
- package/dist/{vue-ui-spark-trend-Pvdqnqia.js → vue-ui-spark-trend-DqKebrx9.js} +22 -22
- package/dist/{vue-ui-sparkbar-DF6eDrxt.js → vue-ui-sparkbar-BShmZ5Vp.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BR7oFSSF.js → vue-ui-sparkgauge-NX3Z_bFF.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-CkOGqy2h.js → vue-ui-sparkhistogram-TBxquo5S.js} +4 -4
- package/dist/{vue-ui-sparkline-DF8bLc-F.js → vue-ui-sparkline-Bw4jxjxk.js} +29 -29
- package/dist/{vue-ui-sparkstackbar-DMkn-0FV.js → vue-ui-sparkstackbar-D8YGkrZ9.js} +3 -3
- package/dist/{vue-ui-stackbar-CUXktGA-.js → vue-ui-stackbar-0Kag52U5.js} +38 -38
- package/dist/{vue-ui-strip-plot-ibdxtil6.js → vue-ui-strip-plot-CU0tiCsd.js} +7 -7
- package/dist/{vue-ui-table-BocHahKB.js → vue-ui-table-B4BTGeKs.js} +17 -17
- package/dist/{vue-ui-table-heatmap-B03YDYck.js → vue-ui-table-heatmap-D-iueyM0.js} +13 -13
- package/dist/{vue-ui-table-sparkline-8mOvfeTL.js → vue-ui-table-sparkline-BnqMY5lk.js} +4 -4
- package/dist/{vue-ui-thermometer-Dq_nJLiU.js → vue-ui-thermometer-Ct3Sr0M1.js} +7 -7
- package/dist/{vue-ui-timer-BLveMseW.js → vue-ui-timer-DsAVvm1H.js} +27 -27
- package/dist/{vue-ui-tiremarks-DMG1_YzV.js → vue-ui-tiremarks-DKNpl_8J.js} +6 -6
- package/dist/{vue-ui-treemap-io-J9w5R.js → vue-ui-treemap-Jdea_p8r.js} +8 -8
- package/dist/{vue-ui-vertical-bar-DqnTF6h2.js → vue-ui-vertical-bar-DE42y9ZI.js} +30 -30
- package/dist/{vue-ui-waffle-X9DHHqlw.js → vue-ui-waffle-CrYeU7zd.js} +75 -75
- package/dist/{vue-ui-wheel-BLBwVpV8.js → vue-ui-wheel-B4Be4Ol6.js} +6 -6
- package/dist/{vue-ui-word-cloud-0GXQqY8G.js → vue-ui-word-cloud-9QkLvAgs.js} +28 -28
- package/dist/{vue-ui-world-5OHPVwxv.js → vue-ui-world-DTwfuIIZ.js} +6 -6
- package/dist/{vue-ui-xy-HW0T1CD8.js → vue-ui-xy-BKzt6d8T.js} +9 -9
- package/dist/{vue-ui-xy-canvas-C4FbbXNQ.js → vue-ui-xy-canvas-BGzMXziC.js} +10 -10
- package/package.json +1 -1
- package/dist/ColorPicker-BO4ntExI.js +0 -135
- package/dist/vue-ui-accordion-BWnxgda4.js +0 -76
- package/dist/vue-ui-annotator-BkHDHfHG.js +0 -2182
|
@@ -1,6 +1,6 @@
|
|
|
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
|
|
2
|
-
import { c as Ge, t as je,
|
|
3
|
-
import { u as He, a as Le } from "./useNestedProp-
|
|
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 T, renderSlot as S, createCommentVNode as f, createBlock as pe, normalizeProps as ge, guardReactiveProps as me, createElementVNode as p, toDisplayString as D, unref as s, createVNode as Fe, Fragment as Q, renderList as ee, withCtx as Ee, createTextVNode as Be, nextTick as Oe } from "vue";
|
|
2
|
+
import { c as Ge, t as je, B as be, a1 as te, o as ke, f as xe, g as Ue, i as W, a2 as Xe, a3 as Ye, X as qe, s as P, U as _e, T as Ze, a4 as we, a as ae, d as le, a5 as Ke } from "./lib-BEpWEyMm.js";
|
|
3
|
+
import { u as He, a as Le } from "./useNestedProp-CLD3Gk9S.js";
|
|
4
4
|
import { t as Je, u as Qe } from "./useResponsive-DfdjqQps.js";
|
|
5
5
|
import { u as et } from "./useChartAccessibility-9icAAmYg.js";
|
|
6
6
|
import { u as tt, B as at } from "./BaseScanner-BgWxam9d.js";
|
|
@@ -41,17 +41,17 @@ const st = ["id"], nt = ["xmlns", "viewBox"], rt = ["width", "height"], it = ["i
|
|
|
41
41
|
},
|
|
42
42
|
emits: ["hoverIndex", "selectDatapoint"],
|
|
43
43
|
setup($, { emit: Ae }) {
|
|
44
|
-
const $e = he(() => import("./PackageVersion-
|
|
44
|
+
const $e = he(() => import("./PackageVersion-x4hg0tYe.js")), Ne = he(() => import("./SparkTooltip-Dz1PDE_h.js")), { vue_ui_sparkline: Me } = He(), r = $, ue = h(() => Array.isArray(r.dataset) && r.dataset.length > 0), g = y(Ge()), R = y(null), oe = y(null), se = y(null), e = y(B());
|
|
45
45
|
function Ce(t) {
|
|
46
46
|
return Ke(t).map((a) => ({ period: "-", value: a }));
|
|
47
47
|
}
|
|
48
48
|
const { loading: F, FINAL_DATASET: N, manualLoading: E } = tt({
|
|
49
49
|
...Pe(r),
|
|
50
50
|
FINAL_CONFIG: e,
|
|
51
|
-
prepareConfig:
|
|
51
|
+
prepareConfig: B,
|
|
52
52
|
callback: () => {
|
|
53
53
|
Promise.resolve().then(async () => {
|
|
54
|
-
await
|
|
54
|
+
await Oe(), X();
|
|
55
55
|
});
|
|
56
56
|
},
|
|
57
57
|
skeletonDataset: Ce(12),
|
|
@@ -73,7 +73,7 @@ const st = ["id"], nt = ["xmlns", "viewBox"], rt = ["width", "height"], it = ["i
|
|
|
73
73
|
}
|
|
74
74
|
})
|
|
75
75
|
}), { svgRef: ne } = et({ config: e.value.style.title });
|
|
76
|
-
function
|
|
76
|
+
function B() {
|
|
77
77
|
const t = Le({
|
|
78
78
|
userConfig: r.config,
|
|
79
79
|
defaultConfig: Me
|
|
@@ -91,7 +91,7 @@ const st = ["id"], nt = ["xmlns", "viewBox"], rt = ["width", "height"], it = ["i
|
|
|
91
91
|
threshold: e.value.downsample.threshold
|
|
92
92
|
}));
|
|
93
93
|
J(() => r.config, (t) => {
|
|
94
|
-
F.value || (e.value =
|
|
94
|
+
F.value || (e.value = B()), ie(), o.value.chartWidth = e.value.style.chartWidth;
|
|
95
95
|
}, { deep: !0 }), J(() => r.dataset, (t) => {
|
|
96
96
|
Array.isArray(t) && t.length > 0 && (E.value = !1), m.value = te({
|
|
97
97
|
data: N.value.map((a) => ({
|
|
@@ -114,22 +114,22 @@ const st = ["id"], nt = ["xmlns", "viewBox"], rt = ["width", "height"], it = ["i
|
|
|
114
114
|
threshold: e.value.downsample.threshold
|
|
115
115
|
});
|
|
116
116
|
}
|
|
117
|
-
const b = fe(null), _ = fe(null),
|
|
117
|
+
const b = fe(null), _ = fe(null), O = y(!1), M = y(0), G = y([]), j = y(""), U = h(() => {
|
|
118
118
|
const a = (x.value || []).map((u) => `${u.period}::${Number.isFinite(u.value) ? u.value : 0}`).join("|"), l = e.value?.style?.animation || {};
|
|
119
119
|
return `${a}#${!!l.show}#${l.animationFrames || 0}`;
|
|
120
120
|
});
|
|
121
121
|
function V() {
|
|
122
|
-
M.value && (cancelAnimationFrame(M.value), M.value = 0), G.value.forEach((t) => clearTimeout(t)), G.value = [],
|
|
122
|
+
M.value && (cancelAnimationFrame(M.value), M.value = 0), G.value.forEach((t) => clearTimeout(t)), G.value = [], O.value = !1;
|
|
123
123
|
}
|
|
124
124
|
function X() {
|
|
125
125
|
const t = e.value?.style?.animation || {}, a = x.value || [], l = U.value;
|
|
126
|
-
if (l && l === j.value && (
|
|
126
|
+
if (l && l === j.value && (O.value || m.value.length === a.length))
|
|
127
127
|
return;
|
|
128
128
|
if (V(), !t.show || F.value || a.length <= 1) {
|
|
129
129
|
m.value = a, j.value = l;
|
|
130
130
|
return;
|
|
131
131
|
}
|
|
132
|
-
|
|
132
|
+
O.value = !0, j.value = l, m.value = [];
|
|
133
133
|
const u = Math.max(1, Number(t.animationFrames) || 1), K = Math.max(1, Math.floor(u / a.length));
|
|
134
134
|
let H = 0;
|
|
135
135
|
const ce = () => {
|
|
@@ -139,10 +139,10 @@ const st = ["id"], nt = ["xmlns", "viewBox"], rt = ["width", "height"], it = ["i
|
|
|
139
139
|
}
|
|
140
140
|
if (H < a.length) {
|
|
141
141
|
m.value.push(a[H]);
|
|
142
|
-
const
|
|
142
|
+
const We = setTimeout(() => {
|
|
143
143
|
M.value = requestAnimationFrame(ce);
|
|
144
144
|
}, K);
|
|
145
|
-
G.value.push(
|
|
145
|
+
G.value.push(We), H += 1;
|
|
146
146
|
} else
|
|
147
147
|
m.value = a, V();
|
|
148
148
|
};
|
|
@@ -230,7 +230,7 @@ const st = ["id"], nt = ["xmlns", "viewBox"], rt = ["width", "height"], it = ["i
|
|
|
230
230
|
x: i.value.start + a * u,
|
|
231
231
|
y: i.value.bottom - i.value.height * Z(l + C.value),
|
|
232
232
|
id: `plot_${g.value}_${a}`,
|
|
233
|
-
color: I.value ? e.value.style.bar.color : e.value.style.area.useGradient ?
|
|
233
|
+
color: I.value ? e.value.style.bar.color : e.value.style.area.useGradient ? W(e.value.style.line.color, 0.05 * (1 - a / L.value)) : e.value.style.line.color,
|
|
234
234
|
width: u
|
|
235
235
|
};
|
|
236
236
|
})), Ve = h(() => {
|
|
@@ -242,7 +242,7 @@ const st = ["id"], nt = ["xmlns", "viewBox"], rt = ["width", "height"], it = ["i
|
|
|
242
242
|
function ze(t, a) {
|
|
243
243
|
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }), v.value = t, A.value || (A.value = t), Y("hoverIndex", { index: a });
|
|
244
244
|
}
|
|
245
|
-
function
|
|
245
|
+
function Te(t, a) {
|
|
246
246
|
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a }), A.value = v.value, v.value = void 0, Y("hoverIndex", { index: void 0 });
|
|
247
247
|
}
|
|
248
248
|
const k = h(() => {
|
|
@@ -268,7 +268,7 @@ const st = ["id"], nt = ["xmlns", "viewBox"], rt = ["width", "height"], it = ["i
|
|
|
268
268
|
trend: null
|
|
269
269
|
};
|
|
270
270
|
}), 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");
|
|
271
|
-
function
|
|
271
|
+
function De(t, a) {
|
|
272
272
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: a }), Y("selectDatapoint", { datapoint: t, index: a });
|
|
273
273
|
}
|
|
274
274
|
return (t, a) => (n(), c("div", {
|
|
@@ -276,7 +276,7 @@ const st = ["id"], nt = ["xmlns", "viewBox"], rt = ["width", "height"], it = ["i
|
|
|
276
276
|
ref: R,
|
|
277
277
|
class: "vue-ui-sparkline",
|
|
278
278
|
id: g.value,
|
|
279
|
-
style:
|
|
279
|
+
style: T(`width:100%;font-family:${e.value.style.fontFamily};`)
|
|
280
280
|
}, [
|
|
281
281
|
S(t.$slots, "before", ge(me({
|
|
282
282
|
selected: v.value,
|
|
@@ -291,18 +291,18 @@ const st = ["id"], nt = ["xmlns", "viewBox"], rt = ["width", "height"], it = ["i
|
|
|
291
291
|
ref_key: "chartTitle",
|
|
292
292
|
ref: oe,
|
|
293
293
|
class: "vue-ui-sparkline-title",
|
|
294
|
-
style:
|
|
294
|
+
style: T(`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"};`)
|
|
295
295
|
}, [
|
|
296
296
|
p("span", {
|
|
297
|
-
style:
|
|
298
|
-
},
|
|
297
|
+
style: T(`padding:${e.value.style.title.textAlign === "left" ? "0 0 0 12px" : e.value.style.title.textAlign === "right" ? "0 12px 0 0" : "0"}`)
|
|
298
|
+
}, D(v.value ? v.value.period : e.value.style.title.text), 5)
|
|
299
299
|
], 4)) : f("", !0),
|
|
300
300
|
(n(), c("svg", {
|
|
301
301
|
ref_key: "svgRef",
|
|
302
302
|
ref: ne,
|
|
303
303
|
xmlns: s(qe),
|
|
304
304
|
viewBox: `0 0 ${o.value.width} ${o.value.height}`,
|
|
305
|
-
style:
|
|
305
|
+
style: T(`background:${e.value.style.backgroundColor};overflow:visible`),
|
|
306
306
|
onMouseleave: a[0] || (a[0] = (l) => A.value = void 0)
|
|
307
307
|
}, [
|
|
308
308
|
Fe(s($e)),
|
|
@@ -328,7 +328,7 @@ const st = ["id"], nt = ["xmlns", "viewBox"], rt = ["width", "height"], it = ["i
|
|
|
328
328
|
}, [
|
|
329
329
|
p("stop", {
|
|
330
330
|
offset: "0%",
|
|
331
|
-
"stop-color": s(P)(s(
|
|
331
|
+
"stop-color": s(P)(s(W)(e.value.style.area.color, 0.05), e.value.style.area.opacity)
|
|
332
332
|
}, null, 8, vt),
|
|
333
333
|
p("stop", {
|
|
334
334
|
offset: "100%",
|
|
@@ -346,7 +346,7 @@ const st = ["id"], nt = ["xmlns", "viewBox"], rt = ["width", "height"], it = ["i
|
|
|
346
346
|
}, null, 8, ht),
|
|
347
347
|
p("stop", {
|
|
348
348
|
offset: "100%",
|
|
349
|
-
"stop-color": s(
|
|
349
|
+
"stop-color": s(W)(e.value.style.bar.color, 0.05)
|
|
350
350
|
}, null, 8, ft)
|
|
351
351
|
], 8, ct),
|
|
352
352
|
p("linearGradient", {
|
|
@@ -356,7 +356,7 @@ const st = ["id"], nt = ["xmlns", "viewBox"], rt = ["width", "height"], it = ["i
|
|
|
356
356
|
}, [
|
|
357
357
|
p("stop", {
|
|
358
358
|
offset: "0%",
|
|
359
|
-
"stop-color": s(
|
|
359
|
+
"stop-color": s(W)(e.value.style.bar.color, 0.05)
|
|
360
360
|
}, null, 8, pt),
|
|
361
361
|
p("stop", {
|
|
362
362
|
offset: "100%",
|
|
@@ -442,7 +442,7 @@ const st = ["id"], nt = ["xmlns", "viewBox"], rt = ["width", "height"], it = ["i
|
|
|
442
442
|
"font-size": e.value.style.dataLabel.fontSize,
|
|
443
443
|
"font-weight": e.value.style.dataLabel.bold ? "bold" : "normal",
|
|
444
444
|
fill: e.value.style.dataLabel.color
|
|
445
|
-
},
|
|
445
|
+
}, D(v.value ? s(ae)(
|
|
446
446
|
e.value.style.dataLabel.formatter,
|
|
447
447
|
v.value.absoluteValue,
|
|
448
448
|
s(le)({ p: e.value.style.dataLabel.prefix, v: v.value.absoluteValue, s: e.value.style.dataLabel.suffix, r: e.value.style.dataLabel.roundingValue }),
|
|
@@ -459,8 +459,8 @@ const st = ["id"], nt = ["xmlns", "viewBox"], rt = ["width", "height"], it = ["i
|
|
|
459
459
|
width: i.value.width / (L.value + 1) > o.value.padding ? o.value.padding : i.value.width / (L.value + 1),
|
|
460
460
|
fill: "transparent",
|
|
461
461
|
onMouseenter: () => ze(l, u),
|
|
462
|
-
onMouseleave: () =>
|
|
463
|
-
onClick: () =>
|
|
462
|
+
onMouseleave: () => Te(l, u),
|
|
463
|
+
onClick: () => De(l, u)
|
|
464
464
|
}, null, 40, Mt))), 256)),
|
|
465
465
|
S(t.$slots, "svg", { svg: o.value }, void 0, !0)
|
|
466
466
|
], 44, nt)),
|
|
@@ -482,7 +482,7 @@ const st = ["id"], nt = ["xmlns", "viewBox"], rt = ["width", "height"], it = ["i
|
|
|
482
482
|
}, {
|
|
483
483
|
default: Ee(() => [
|
|
484
484
|
S(t.$slots, "tooltip", ge(me({ ...v.value })), () => [
|
|
485
|
-
|
|
485
|
+
Be(D(v.value.period) + ": " + D(s(ae)(
|
|
486
486
|
e.value.style.dataLabel.formatter,
|
|
487
487
|
v.value.absoluteValue,
|
|
488
488
|
s(le)({
|
|
@@ -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 { c as le, t as xe, b as we, p as i, h as D, e as Ce, o as $e, f as oe, g as Se, d as U, X as Fe, s as ae, i as se, a as re, z as Ae } from "./lib-
|
|
3
|
-
import { u as De, a as ne } from "./useNestedProp-
|
|
2
|
+
import { c as le, t as xe, b as we, p as i, h as D, e as Ce, o as $e, f as oe, g as Se, d as U, X as Fe, s as ae, i as se, a as re, z as Ae } from "./lib-BEpWEyMm.js";
|
|
3
|
+
import { u as De, a as ne } from "./useNestedProp-CLD3Gk9S.js";
|
|
4
4
|
import { u as Ie } from "./useChartAccessibility-9icAAmYg.js";
|
|
5
5
|
import { t as ze } from "./themes-D3cUNuKw.js";
|
|
6
6
|
import { u as Pe, B as Be } from "./BaseScanner-BgWxam9d.js";
|
|
@@ -33,7 +33,7 @@ const Ne = ["xmlns", "viewBox"], Te = ["id"], Ee = ["stop-color"], Me = ["stop-c
|
|
|
33
33
|
},
|
|
34
34
|
emits: ["selectDatapoint"],
|
|
35
35
|
setup(ue, { emit: ie }) {
|
|
36
|
-
const ce = X(() => import("./PackageVersion-
|
|
36
|
+
const ce = X(() => import("./PackageVersion-x4hg0tYe.js")), de = X(() => import("./Tooltip-BOXz8skU.js")), { vue_ui_sparkstackbar: ve } = De(), _ = ue, pe = be();
|
|
37
37
|
J(() => {
|
|
38
38
|
pe["chart-background"] && console.warn("VueUiSparkStackbar does not support the #chart-background slot.");
|
|
39
39
|
});
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { defineAsyncComponent as H, useSlots as Sa, computed as p, ref as g, onMounted as At, toRefs as $a, watch as ze, shallowRef as Rt, onBeforeUnmount as
|
|
2
|
-
import { u as Aa, a as Vt } from "./useNestedProp-
|
|
3
|
-
import { c as Dt, t as Ra, b as
|
|
1
|
+
import { defineAsyncComponent as H, useSlots as Sa, computed as p, ref as g, onMounted as At, toRefs as $a, watch as ze, shallowRef as Rt, onBeforeUnmount as It, watchEffect as Nt, nextTick as Ot, createElementBlock as o, openBlock as r, unref as v, normalizeStyle as j, normalizeClass as le, createBlock as B, createCommentVNode as d, renderSlot as L, createElementVNode as D, createVNode as he, createSlots as Ye, withCtx as C, normalizeProps as W, guardReactiveProps as Y, Fragment as b, renderList as m, mergeProps as Ce, toDisplayString as T, Teleport as Ta, resolveDynamicComponent as Ma, createTextVNode as Pt } from "vue";
|
|
2
|
+
import { u as Aa, a as Vt } from "./useNestedProp-CLD3Gk9S.js";
|
|
3
|
+
import { c as Dt, t as Ra, b as Ia, p as _e, B as se, e as Na, o as Et, f as Ft, g as Oa, h as Pa, a8 as Se, a9 as Ut, C as Ht, X as Va, m as Da, a4 as $e, E as Bt, a as Te, d as ee, L as Ea, H as Fa, z as Wt, x as Ua, y as Ha, A as Ba } from "./lib-BEpWEyMm.js";
|
|
4
4
|
import { t as Xe, u as Wa } from "./useResponsive-DfdjqQps.js";
|
|
5
|
-
import { u as Ya } from "./usePrinter-
|
|
5
|
+
import { u as Ya } from "./usePrinter-w23K-ezx.js";
|
|
6
6
|
import { u as Xa, B as Ga } from "./BaseScanner-BgWxam9d.js";
|
|
7
7
|
import { u as Ja } from "./useTimeLabels-BGFjWgrv.js";
|
|
8
8
|
import { u as qa } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
9
|
import { u as Za } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
10
|
import { u as Ka } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
11
|
-
import Qa from "./img-
|
|
12
|
-
import ja from "./Title-
|
|
13
|
-
import { _ as el } from "./Shape-
|
|
11
|
+
import Qa from "./img-DjWwQXVS.js";
|
|
12
|
+
import ja from "./Title-C__lOIPC.js";
|
|
13
|
+
import { _ as el } from "./Shape-C_C_OmqR.js";
|
|
14
14
|
import { t as tl } from "./themes-D3cUNuKw.js";
|
|
15
|
-
import al from "./Legend-
|
|
16
|
-
import { S as ll } from "./Slicer-
|
|
15
|
+
import al from "./Legend-BpoFJ8fc.js";
|
|
16
|
+
import { S as ll } from "./Slicer-BA2GhOmY.js";
|
|
17
17
|
import { _ as sl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
|
-
const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "width", "height"], ul = { key: 1 }, cl = ["id"], hl = ["stop-color"], vl = ["stop-color"], dl = ["stop-color"], yl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], gl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], bl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], fl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ml = { key: 0 }, pl = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], xl = { key: 0 }, kl = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], wl = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Ll = { key: 0 }, zl = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Cl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], _l = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Sl = ["x", "y", "font-size", "fill", "font-weight"], $l = ["transform", "font-size", "fill", "font-weight"], Tl = ["x", "y", "font-size", "fill", "font-weight"], Ml = ["x", "y", "font-size", "font-weight", "fill"], Al = ["x", "y", "font-size", "fill", "font-weight"], Rl = ["x", "y", "font-size", "font-weight", "fill"],
|
|
18
|
+
const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "width", "height"], ul = { key: 1 }, cl = ["id"], hl = ["stop-color"], vl = ["stop-color"], dl = ["stop-color"], yl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], gl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], bl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], fl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ml = { key: 0 }, pl = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], xl = { key: 0 }, kl = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], wl = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Ll = { key: 0 }, zl = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Cl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], _l = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Sl = ["x", "y", "font-size", "fill", "font-weight"], $l = ["transform", "font-size", "fill", "font-weight"], Tl = ["x", "y", "font-size", "fill", "font-weight"], Ml = ["x", "y", "font-size", "font-weight", "fill"], Al = ["x", "y", "font-size", "fill", "font-weight"], Rl = ["x", "y", "font-size", "font-weight", "fill"], Il = ["x1", "x2", "y1", "y2", "stroke"], Nl = ["x", "y", "font-size", "font-weight", "fill"], Ol = ["x1", "x2", "y1", "y2", "stroke"], Pl = ["font-size", "font-weight", "fill", "text-anchor", "transform"], Vl = { key: 0 }, Dl = { key: 1 }, El = ["text-anchor", "font-size", "font-weight", "fill", "transform", "onClick"], Fl = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], Ul = { key: 0 }, Hl = { key: 1 }, Bl = ["font-size", "font-weight", "fill", "x", "y", "onClick"], Wl = ["font-size", "font-weight", "fill", "x", "y", "onClick", "innerHTML"], Yl = ["x", "y", "width", "height", "onClick", "onMouseenter", "onMouseleave", "fill"], Xl = ["x", "y", "width", "height", "onClick", "onMouseenter", "onMouseleave", "fill"], Gl = {
|
|
19
19
|
key: 3,
|
|
20
20
|
class: "vue-data-ui-watermark"
|
|
21
21
|
}, Jl = ["id"], ql = ["onClick"], Zl = ["innerHTML"], Kl = {
|
|
@@ -36,14 +36,14 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
36
36
|
},
|
|
37
37
|
emits: ["selectDatapoint", "selectLegend", "selectTimeLabel"],
|
|
38
38
|
setup(Me, { expose: Yt, emit: Xt }) {
|
|
39
|
-
const Gt = H(() => import("./Tooltip-
|
|
39
|
+
const Gt = H(() => import("./Tooltip-BOXz8skU.js")), Jt = H(() => import("./BaseIcon-Bz-1GQhu.js")), qt = H(() => import("./vue-ui-accordion-Cv7OaVUI.js")), Zt = H(() => import("./DataTable-BvjacRbw.js")), Kt = H(() => import("./PenAndPaper-CR8q353D.js")), Qt = H(() => import("./UserOptions-DsTgvAok.js")), jt = H(() => import("./PackageVersion-x4hg0tYe.js")), ea = H(() => import("./BaseDraggableDialog-CHhZIht2.js")), { vue_ui_stackbar: ta } = Aa(), aa = Sa(), f = Me, Ae = Xt, ve = p({
|
|
40
40
|
get() {
|
|
41
41
|
return !!f.dataset && f.dataset.length;
|
|
42
42
|
},
|
|
43
43
|
set(a) {
|
|
44
44
|
return a;
|
|
45
45
|
}
|
|
46
|
-
}), O = g(null), M = g(Dt()), Re = g(!1),
|
|
46
|
+
}), O = g(null), M = g(Dt()), Re = g(!1), Ie = g(null), Ne = g(""), S = g([]), Ge = g(0), Je = g(null), qe = g(null), Ze = g(null), Ke = g(null), Qe = g(0), re = g(!1), de = g(null), X = g(!1), je = g(0), la = g(0), sa = g(0), et = g(null), tt = g(!1), oe = g(null), Oe = g(null), Pe = g(null), Ve = g(null), G = g(null), J = g(null), ra = g(null), at = g(null);
|
|
47
47
|
At(() => {
|
|
48
48
|
tt.value = !0, Ue();
|
|
49
49
|
});
|
|
@@ -129,7 +129,7 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
129
129
|
userConfig: tl.vue_ui_stackbar[a.theme] || f.config,
|
|
130
130
|
defaultConfig: a
|
|
131
131
|
}),
|
|
132
|
-
customPalette:
|
|
132
|
+
customPalette: Ia[a.theme] || _e
|
|
133
133
|
} : l = a, f.config && se(f.config, "style.chart.grid.scale.scaleMin") ? l.style.chart.grid.scale.scaleMin = f.config.style.chart.grid.scale.scaleMin : l.style.chart.grid.scale.scaleMin = null, f.config && se(f.config, "style.chart.grid.scale.scaleMax") ? l.style.chart.grid.scale.scaleMax = f.config.style.chart.grid.scale.scaleMax : l.style.chart.grid.scale.scaleMax = null, f.config && se(f.config, "style.chart.zoom.startIndex") ? l.style.chart.zoom.startIndex = f.config.style.chart.zoom.startIndex : l.style.chart.zoom.startIndex = null, f.config && se(f.config, "style.chart.zoom.endIndex") ? l.style.chart.zoom.endIndex = f.config.style.chart.zoom.endIndex : l.style.chart.zoom.endIndex = null, f.config && se(f.config, "style.chart.bars.dataLabels.hideUnderValue") ? l.style.chart.bars.dataLabels.hideUnderValue = f.config.style.chart.bars.dataLabels.hideUnderValue : l.style.chart.bars.dataLabels.hideUnderValue = null, f.config && se(f.config, "style.chart.bars.dataLabels.hideUnderPercentage") ? l.style.chart.bars.dataLabels.hideUnderPercentage = f.config.style.chart.bars.dataLabels.hideUnderPercentage : l.style.chart.bars.dataLabels.hideUnderPercentage = null, l;
|
|
134
134
|
}
|
|
135
135
|
const ot = p(() => e.value.style.chart.bars.dataLabels.hideUnderValue !== null), nt = p(() => e.value.style.chart.bars.dataLabels.hideUnderPercentage !== null);
|
|
@@ -167,7 +167,7 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
167
167
|
bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
|
|
168
168
|
left: e.value.style.chart.padding.left / e.value.style.chart.width
|
|
169
169
|
}
|
|
170
|
-
}), oa = p(() =>
|
|
170
|
+
}), oa = p(() => Na(e.value.customPalette)), E = Rt(null), ae = Rt(null), vt = g(null);
|
|
171
171
|
At(() => {
|
|
172
172
|
Ue();
|
|
173
173
|
});
|
|
@@ -212,7 +212,7 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
212
212
|
}
|
|
213
213
|
He();
|
|
214
214
|
}
|
|
215
|
-
|
|
215
|
+
It(() => {
|
|
216
216
|
E.value && (ae.value && E.value.unobserve(ae.value), E.value.disconnect());
|
|
217
217
|
});
|
|
218
218
|
function na() {
|
|
@@ -230,7 +230,7 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
230
230
|
const be = g(0), fe = g(0), ia = Xe((a) => {
|
|
231
231
|
be.value = a;
|
|
232
232
|
}, 100);
|
|
233
|
-
|
|
233
|
+
Nt((a) => {
|
|
234
234
|
const l = e.value.orientation === "vertical" ? J.value : G.value;
|
|
235
235
|
if (!l) return;
|
|
236
236
|
const t = new ResizeObserver((s) => {
|
|
@@ -241,7 +241,7 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
241
241
|
const ua = Xe((a) => {
|
|
242
242
|
fe.value = a + e.value.style.chart.bars.totalValues.fontSize;
|
|
243
243
|
}, 100);
|
|
244
|
-
|
|
244
|
+
Nt((a) => {
|
|
245
245
|
if (e.value.orientation === "vertical") return;
|
|
246
246
|
const l = at.value;
|
|
247
247
|
if (!l) return;
|
|
@@ -249,7 +249,7 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
249
249
|
ua(s[0].contentRect.width);
|
|
250
250
|
});
|
|
251
251
|
t.observe(l), a(() => t.disconnect());
|
|
252
|
-
}),
|
|
252
|
+
}), It(() => {
|
|
253
253
|
be.value = 0, fe.value = 0;
|
|
254
254
|
});
|
|
255
255
|
const dt = p(() => {
|
|
@@ -318,7 +318,7 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
318
318
|
series: l.series.slice(h.value.start, h.value.end).map((t) => t < 0 ? t : 0)
|
|
319
319
|
})))
|
|
320
320
|
};
|
|
321
|
-
}),
|
|
321
|
+
}), N = p(() => {
|
|
322
322
|
const a = e.value.style.chart.grid.scale.scaleMax !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMax : Math.max(...me.value.positive), l = Math.min(...me.value.negative), t = e.value.style.chart.grid.scale.scaleMin !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMin : [-1 / 0, 1 / 0, NaN, void 0, null].includes(l) ? 0 : l, s = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? Ut(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks) : Ht(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
|
|
323
323
|
return s.ticks.map((c) => ({
|
|
324
324
|
zero: n.value.bottom - n.value.height * (Math.abs(s.min) / (s.max + Math.abs(s.min))),
|
|
@@ -338,16 +338,16 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
338
338
|
})), w = p(() => {
|
|
339
339
|
if (!ve.value && !ne.value) return [];
|
|
340
340
|
let a = Array(U.value).fill(0), l = Array(U.value).fill(0), t = Array(U.value).fill(0), s = Array(U.value).fill(0);
|
|
341
|
-
const c = Math.max(...me.value.positive) || 0, u = Math.min(...me.value.negative), _ = [-1 / 0, 1 / 0, NaN, void 0, null].includes(u) ? 0 : u, q = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? Ut(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : _ > 0 ? 0 : _, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : c < 0 ? 0 : c, e.value.style.chart.grid.scale.ticks) : Ht(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : _ > 0 ? 0 : _, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : c < 0 ? 0 : c, e.value.style.chart.grid.scale.ticks), { min: Z, max: K } = q, P = K + (Z >= 0 ? 0 : Math.abs(Z)) || 1, A = n.value.height, Le = n.value.width, Tt =
|
|
341
|
+
const c = Math.max(...me.value.positive) || 0, u = Math.min(...me.value.negative), _ = [-1 / 0, 1 / 0, NaN, void 0, null].includes(u) ? 0 : u, q = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? Ut(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : _ > 0 ? 0 : _, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : c < 0 ? 0 : c, e.value.style.chart.grid.scale.ticks) : Ht(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : _ > 0 ? 0 : _, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : c < 0 ? 0 : c, e.value.style.chart.grid.scale.ticks), { min: Z, max: K } = q, P = K + (Z >= 0 ? 0 : Math.abs(Z)) || 1, A = n.value.height, Le = n.value.width, Tt = N.value[0] ? N.value[0].zero : n.value.bottom, Mt = N.value[0] ? N.value[0].horizontal_zero : n.value.left;
|
|
342
342
|
return F.value.filter((ce) => !S.value.includes(ce.id)).map((ce) => {
|
|
343
343
|
const V = ce.series.slice(h.value.start, h.value.end), pa = ce.signedSeries.slice(h.value.start, h.value.end), xa = V.map((x, k) => n.value.left + y.value * k + y.value * e.value.style.chart.bars.gapRatio / 4), ka = V.map((x, k) => n.value.top + y.value * k + y.value * e.value.style.chart.bars.gapRatio / 4), wa = V.map((x, k) => {
|
|
344
344
|
const R = e.value.style.chart.bars.distributed ? (x || 0) / ie.value[k] : (x || 0) / P;
|
|
345
|
-
let Q,
|
|
346
|
-
return x > 0 ? (
|
|
345
|
+
let Q, I;
|
|
346
|
+
return x > 0 ? (I = A * R, Q = Tt - I - a[k], a[k] += I) : (I = A * R, Q = Tt + t[k], t[k] += Math.abs(I)), Q;
|
|
347
347
|
}), La = V.map((x, k) => {
|
|
348
348
|
const R = e.value.style.chart.bars.distributed ? (x || 0) / ie.value[k] : (x || 0) / P;
|
|
349
|
-
let Q,
|
|
350
|
-
return x > 0 ? (
|
|
349
|
+
let Q, I;
|
|
350
|
+
return x > 0 ? (I = Le * R, Q = Mt + l[k], l[k] += I) : (I = Le * R, Q = Mt - Math.abs(I) - s[k], s[k] += Math.abs(I)), Q;
|
|
351
351
|
}), za = V.map((x, k) => {
|
|
352
352
|
const R = e.value.style.chart.bars.distributed ? (x || 0) / ie.value[k] : (x || 0) / P;
|
|
353
353
|
return x > 0 ? A * R : A * Math.abs(R);
|
|
@@ -428,7 +428,7 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
428
428
|
function xt(a) {
|
|
429
429
|
de.value = a, Re.value = !0;
|
|
430
430
|
const l = e.value.style.chart.tooltip.customFormat, t = mt(a);
|
|
431
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a + h.value.start }),
|
|
431
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a + h.value.start }), Ie.value = {
|
|
432
432
|
datapoint: t,
|
|
433
433
|
seriesIndex: a,
|
|
434
434
|
config: e.value,
|
|
@@ -441,7 +441,7 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
441
441
|
series: w.value,
|
|
442
442
|
config: e.value
|
|
443
443
|
})))
|
|
444
|
-
|
|
444
|
+
Ne.value = l({
|
|
445
445
|
seriesIndex: a,
|
|
446
446
|
datapoint: t,
|
|
447
447
|
series: w.value,
|
|
@@ -478,7 +478,7 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
478
478
|
}) : ""}${P[1]}
|
|
479
479
|
</div>
|
|
480
480
|
`;
|
|
481
|
-
}),
|
|
481
|
+
}), Ne.value = `<div>${K}</div>`;
|
|
482
482
|
}
|
|
483
483
|
}
|
|
484
484
|
const va = p(() => te.value.width), da = p(() => te.value.height);
|
|
@@ -838,7 +838,7 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
838
838
|
}, null, 8, dl)
|
|
839
839
|
], 8, cl))), 256))
|
|
840
840
|
])) : d("", !0),
|
|
841
|
-
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (r(!0), o(b, { key: 2 }, m(
|
|
841
|
+
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (r(!0), o(b, { key: 2 }, m(N.value, (t, s) => (r(), o("line", {
|
|
842
842
|
x1: n.value.left,
|
|
843
843
|
x2: n.value.right,
|
|
844
844
|
y1: t.y,
|
|
@@ -868,7 +868,7 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
868
868
|
"stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
|
|
869
869
|
"stroke-linecap": "round"
|
|
870
870
|
}, null, 8, bl))), 256)) : d("", !0),
|
|
871
|
-
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "horizontal" ? (r(!0), o(b, { key: 5 }, m(
|
|
871
|
+
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "horizontal" ? (r(!0), o(b, { key: 5 }, m(N.value, (t, s) => (r(), o("line", {
|
|
872
872
|
x1: t.horizontal_x,
|
|
873
873
|
x2: t.horizontal_x,
|
|
874
874
|
y1: n.value.top,
|
|
@@ -1054,15 +1054,15 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
1054
1054
|
ref_key: "scaleLabels",
|
|
1055
1055
|
ref: G
|
|
1056
1056
|
}, [
|
|
1057
|
-
(r(!0), o(b, null, m(
|
|
1057
|
+
(r(!0), o(b, null, m(N.value, (t, s) => (r(), o("line", {
|
|
1058
1058
|
x1: n.value.left,
|
|
1059
1059
|
x2: n.value.left - 6,
|
|
1060
1060
|
y1: t.y,
|
|
1061
1061
|
y2: t.y,
|
|
1062
1062
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
1063
1063
|
"stroke-width": 1
|
|
1064
|
-
}, null, 8,
|
|
1065
|
-
(r(!0), o(b, null, m(
|
|
1064
|
+
}, null, 8, Il))), 256)),
|
|
1065
|
+
(r(!0), o(b, null, m(N.value, (t, s) => (r(), o("text", {
|
|
1066
1066
|
x: t.x,
|
|
1067
1067
|
y: t.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
1068
1068
|
"font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
@@ -1079,14 +1079,14 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
1079
1079
|
r: e.value.style.chart.grid.y.axisLabels.rounding
|
|
1080
1080
|
}),
|
|
1081
1081
|
{ datapoint: t }
|
|
1082
|
-
)), 9,
|
|
1082
|
+
)), 9, Nl))), 256))
|
|
1083
1083
|
], 512)) : d("", !0),
|
|
1084
1084
|
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (r(), o("g", {
|
|
1085
1085
|
key: 13,
|
|
1086
1086
|
ref_key: "scaleLabels",
|
|
1087
1087
|
ref: G
|
|
1088
1088
|
}, [
|
|
1089
|
-
(r(!0), o(b, null, m(
|
|
1089
|
+
(r(!0), o(b, null, m(N.value, (t, s) => (r(), o("line", {
|
|
1090
1090
|
x1: t.horizontal_x,
|
|
1091
1091
|
x2: t.horizontal_x,
|
|
1092
1092
|
y1: n.value.bottom,
|
|
@@ -1095,7 +1095,7 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
1095
1095
|
"stroke-width": 1,
|
|
1096
1096
|
"stroke-linecap": "round"
|
|
1097
1097
|
}, null, 8, Ol))), 256)),
|
|
1098
|
-
(r(!0), o(b, null, m(
|
|
1098
|
+
(r(!0), o(b, null, m(N.value, (t, s) => (r(), o("text", {
|
|
1099
1099
|
class: "vue-data-ui-time-label",
|
|
1100
1100
|
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
1101
1101
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
@@ -1306,7 +1306,7 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
1306
1306
|
position: e.value.style.chart.tooltip.position,
|
|
1307
1307
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1308
1308
|
parent: O.value,
|
|
1309
|
-
content:
|
|
1309
|
+
content: Ne.value,
|
|
1310
1310
|
isFullscreen: re.value,
|
|
1311
1311
|
isCustom: v(Wt)(e.value.style.chart.tooltip.customFormat),
|
|
1312
1312
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
@@ -1315,10 +1315,10 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
1315
1315
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
1316
1316
|
}, {
|
|
1317
1317
|
"tooltip-before": C(() => [
|
|
1318
|
-
L(a.$slots, "tooltip-before", W(Y({ ...
|
|
1318
|
+
L(a.$slots, "tooltip-before", W(Y({ ...Ie.value })), void 0, !0)
|
|
1319
1319
|
]),
|
|
1320
1320
|
"tooltip-after": C(() => [
|
|
1321
|
-
L(a.$slots, "tooltip-after", W(Y({ ...
|
|
1321
|
+
L(a.$slots, "tooltip-after", W(Y({ ...Ie.value })), void 0, !0)
|
|
1322
1322
|
]),
|
|
1323
1323
|
_: 3
|
|
1324
1324
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineAsyncComponent as L, computed as p, ref as i, toRefs as Tt, watch as q, shallowRef as Ve, onMounted as $t, onBeforeUnmount as Xe, watchEffect as St, createElementBlock as n, openBlock as r, unref as v, normalizeStyle as J, normalizeClass as E, createBlock as z, createCommentVNode as c, createVNode as be, createSlots as Ye, withCtx as b, renderSlot as y, normalizeProps as F, guardReactiveProps as I, createElementVNode as m, Fragment as g, renderList as _, toDisplayString as T, mergeProps as je, resolveDynamicComponent as Ot, createTextVNode as qe, nextTick as zt } from "vue";
|
|
2
|
-
import { c as ye, t as Pt, b as Dt, p as P, o as Je, f as me, g as Ke, e as Nt, h as Qe, q as Ft,
|
|
2
|
+
import { c as ye, t as Pt, b as Dt, p as P, o as Je, f as me, g as Ke, e as Nt, h as Qe, q as Ft, C as It, d as K, X as Mt, a as ge, L as Rt, ac as Wt, m as Bt, r as Et, z as Ze, D as Gt, x as Ht, y as Ut, A as Vt } from "./lib-BEpWEyMm.js";
|
|
3
3
|
import { t as et, u as Xt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as Yt, a as tt } from "./useNestedProp-
|
|
4
|
+
import { u as Yt, a as tt } from "./useNestedProp-CLD3Gk9S.js";
|
|
5
5
|
import { u as jt, B as qt } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
-
import { u as Jt } from "./usePrinter-
|
|
6
|
+
import { u as Jt } from "./usePrinter-w23K-ezx.js";
|
|
7
7
|
import { u as Kt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
8
|
import { u as Qt } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
9
|
import { u as Zt } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
10
|
-
import el from "./img-
|
|
11
|
-
import { _ as tl } from "./Shape-
|
|
12
|
-
import ll from "./Title-
|
|
10
|
+
import el from "./img-DjWwQXVS.js";
|
|
11
|
+
import { _ as tl } from "./Shape-C_C_OmqR.js";
|
|
12
|
+
import ll from "./Title-C__lOIPC.js";
|
|
13
13
|
import { t as al } from "./themes-D3cUNuKw.js";
|
|
14
14
|
import { _ as ol } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
15
|
const sl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "width", "height"], nl = { key: 1 }, il = { key: 0 }, vl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], cl = { key: 1 }, hl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], dl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], pl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], fl = ["x", "y", "fill", "font-size"], bl = ["transform", "font-size", "fill", "text-anchor"], yl = ["transform", "font-size", "fill", "text-anchor", "innerHTML"], ml = ["fill", "font-size", "transform"], gl = ["fill", "font-size", "x", "y"], xl = ["x1", "x2", "y1", "y2", "stroke"], kl = ["cx", "cy", "fill"], wl = ["cx", "cy", "fill"], Cl = ["id"], Al = ["stop-color"], Ll = ["stop-color"], _l = ["stop-color"], Tl = { key: 0 }, $l = ["x", "y", "font-size", "fill"], Sl = {
|
|
@@ -33,7 +33,7 @@ const sl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "width", "height"]
|
|
|
33
33
|
},
|
|
34
34
|
emits: ["selectDatapoint"],
|
|
35
35
|
setup(lt, { expose: at, emit: ot }) {
|
|
36
|
-
const st = L(() => import("./Tooltip-
|
|
36
|
+
const st = L(() => import("./Tooltip-BOXz8skU.js")), rt = L(() => import("./BaseIcon-Bz-1GQhu.js")), ut = L(() => import("./vue-ui-accordion-Cv7OaVUI.js")), nt = L(() => import("./DataTable-BvjacRbw.js")), it = L(() => import("./UserOptions-DsTgvAok.js")), vt = L(() => import("./PenAndPaper-CR8q353D.js")), ct = L(() => import("./PackageVersion-x4hg0tYe.js")), ht = L(() => import("./BaseDraggableDialog-CHhZIht2.js")), { vue_ui_strip_plot: dt } = Yt(), x = lt, pt = ot, G = p({
|
|
37
37
|
get() {
|
|
38
38
|
return !!x.dataset && x.dataset.length;
|
|
39
39
|
},
|