vue-data-ui 3.0.0-next.3 → 3.0.0-next.31
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/README.md +1 -1
- package/dist/{Arrow-C8ztMhxn.js → Arrow-CjrRAMiU.js} +1 -1
- package/dist/{BaseDraggableDialog-DoA1cXmQ.js → BaseDraggableDialog-Bat9k7_9.js} +2 -2
- package/dist/{BaseIcon-TJm1JI2f.js → BaseIcon-DGtQbkFy.js} +1 -1
- package/dist/{useLoading-Bt5Doa8m.js → BaseScanner-DIK2NTdp.js} +11 -11
- package/dist/{ColorPicker-DwhabPvD.js → ColorPicker-DowMg7RO.js} +2 -2
- package/dist/{DataTable-DObwKftY.js → DataTable-DAZn6udI.js} +2 -2
- package/dist/{Legend-C-EDWcHp.js → Legend-DCsRNGsk.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Cmy4Opaq.js → NonSvgPenAndPaper-BhfZ3RsC.js} +3 -3
- package/dist/{PackageVersion-B_SVQo0g.js → PackageVersion-CJPhC_FI.js} +1 -1
- package/dist/{PenAndPaper-CFbTGuB_.js → PenAndPaper-kGe5NPSy.js} +3 -3
- package/dist/{Shape-DGduPk8q.js → Shape-D6ahkZT8.js} +1 -1
- package/dist/{Slicer-VumiAmDi.js → Slicer-CUUN5Npc.js} +2 -2
- package/dist/{SparkTooltip-DrRmoIkR.js → SparkTooltip-1EkqR7Qj.js} +7 -7
- package/dist/{Title-Dahu_Ia-.js → Title-gfAAMBE3.js} +1 -1
- package/dist/{Tooltip-j8grOyYT.js → Tooltip-eZi8Q0Mr.js} +23 -19
- package/dist/{UserOptions-BOIQ8NtD.js → UserOptions-Dd0OHMn7.js} +2 -2
- package/dist/{dom-to-png-00aHI4Vj.js → dom-to-png-CwBiVDQT.js} +1 -1
- package/dist/{img-DFeNRkbq.js → img-FayRC7eM.js} +1 -1
- package/dist/{index-DKjAxJY6.js → index-CvyDwC1y.js} +1305 -1181
- package/dist/{pdf-COmwjbLG.js → pdf-B_EkQtoL.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +144 -15
- package/dist/types/vue-data-ui.d.ts +144 -15
- package/dist/{useNestedProp-Cmx8ApWu.js → useNestedProp-B-ULAHAH.js} +1 -1
- package/dist/{usePrinter-BefhLUKK.js → usePrinter-BAQfJI9j.js} +2 -2
- package/dist/useTimeLabelCollider-V7AOiPLB.js +71 -0
- package/dist/{useTimeLabels-Mrr0jrpL.js → useTimeLabels-DFkUfjfs.js} +211 -152
- package/dist/{vue-data-ui-kdcEQgS0.js → vue-data-ui-Drw9rZ27.js} +80 -74
- package/dist/vue-data-ui.js +58 -56
- package/dist/{vue-ui-3d-bar-Lv9eoXpT.js → vue-ui-3d-bar-Bu68MVtW.js} +6 -6
- package/dist/{vue-ui-accordion-BhrF0D_h.js → vue-ui-accordion-ErGvIA2d.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DN94DM1L.js → vue-ui-age-pyramid-CeTpdJmu.js} +11 -9
- package/dist/{vue-ui-annotator-D-YFzFco.js → vue-ui-annotator-DneaduAI.js} +2 -2
- package/dist/{vue-ui-bullet--c-hIC1J.js → vue-ui-bullet-gol3S_xU.js} +7 -7
- package/dist/vue-ui-candlestick-BIjOGylw.js +991 -0
- package/dist/{vue-ui-carousel-table-Bg4_nEqO.js → vue-ui-carousel-table-DMIknisD.js} +4 -4
- package/dist/{vue-ui-chestnut-D9BP8n-D.js → vue-ui-chestnut-BpaWvBdS.js} +5 -5
- package/dist/{vue-ui-chord-DDa4TTtv.js → vue-ui-chord-BxtcK3_z.js} +8 -8
- package/dist/{vue-ui-circle-pack-DWxEHCSN.js → vue-ui-circle-pack-C1VhKFJH.js} +26 -26
- package/dist/{vue-ui-cursor-BtLD4k-n.js → vue-ui-cursor-BfBzN6pL.js} +2 -2
- package/dist/{vue-ui-dashboard-DvyNEYA8.js → vue-ui-dashboard-BkJ-_5VM.js} +62 -62
- package/dist/{vue-ui-digits-XkSs-Fvw.js → vue-ui-digits-DiVIJnu1.js} +2 -2
- package/dist/{vue-ui-donut-BO2QuXBj.js → vue-ui-donut-Bzs1fvFg.js} +408 -381
- package/dist/vue-ui-donut-evolution-CphzEyQm.js +1072 -0
- package/dist/{vue-ui-dumbbell-jtJmPKky.js → vue-ui-dumbbell-DZ_K-uO1.js} +7 -7
- package/dist/{vue-ui-flow-D1hSlRXa.js → vue-ui-flow-B1Smp670.js} +12 -10
- package/dist/{vue-ui-funnel-BlLlAOtx.js → vue-ui-funnel-MxaU-Y6j.js} +6 -6
- package/dist/{vue-ui-galaxy-BZAhXSnB.js → vue-ui-galaxy-CuIvJuky.js} +51 -49
- package/dist/{vue-ui-gauge-FdnYVol9.js → vue-ui-gauge-CQa1ARJW.js} +6 -6
- package/dist/{vue-ui-gizmo-BXiMNDNp.js → vue-ui-gizmo-CYD2DkWS.js} +3 -3
- package/dist/{vue-ui-heatmap-BUmZvmK0.js → vue-ui-heatmap-DPKVxs97.js} +32 -30
- package/dist/{vue-ui-history-plot-CTT0NO2g.js → vue-ui-history-plot-CfaqUSG0.js} +12 -10
- package/dist/{vue-ui-kpi-BNNqPORJ.js → vue-ui-kpi-BF7LY0ml.js} +3 -3
- package/dist/{vue-ui-mini-loader-wa4WjqZj.js → vue-ui-mini-loader-paPzy6bc.js} +2 -2
- package/dist/{vue-ui-molecule-NGbWYvw-.js → vue-ui-molecule-s8MbsyOD.js} +35 -33
- package/dist/{vue-ui-mood-radar-Dz2YUYPG.js → vue-ui-mood-radar-DJVB6bAz.js} +7 -7
- package/dist/vue-ui-nested-donuts-Cj6UWI-E.js +1286 -0
- package/dist/{vue-ui-onion-DUeU3zvH.js → vue-ui-onion-CZPQVM2E.js} +46 -44
- package/dist/{vue-ui-parallel-coordinate-plot-5158EX3T.js → vue-ui-parallel-coordinate-plot-BFjFaGPP.js} +69 -67
- package/dist/{vue-ui-quadrant-BEaCxPxR.js → vue-ui-quadrant-BliWKYkH.js} +59 -57
- package/dist/{vue-ui-quick-chart-C3yTivjK.js → vue-ui-quick-chart-BnsIAVwN.js} +269 -265
- package/dist/{vue-ui-radar-CwRo-de_.js → vue-ui-radar-BKWpjRbP.js} +12 -10
- package/dist/{vue-ui-rating-nHTBjTie.js → vue-ui-rating-BfGF_GEg.js} +2 -2
- package/dist/{vue-ui-relation-circle-w7TYrdHz.js → vue-ui-relation-circle-5U3oW2sT.js} +6 -6
- package/dist/{vue-ui-ridgeline-Dk9xpHSw.js → vue-ui-ridgeline-Ch5zmtxC.js} +9 -9
- package/dist/{vue-ui-rings-tCL5utj_.js → vue-ui-rings-B0NyCg-p.js} +13 -11
- package/dist/{vue-ui-scatter-BJUJRCto.js → vue-ui-scatter-Xv9oRiGO.js} +72 -70
- package/dist/{vue-ui-skeleton-Cf09cngz.js → vue-ui-skeleton-B-AdrWNd.js} +3 -3
- package/dist/{vue-ui-smiley-BvoOjmJx.js → vue-ui-smiley-snwlluW9.js} +2 -2
- package/dist/{vue-ui-spark-trend-Bdz2gHnU.js → vue-ui-spark-trend-DSdhsrCl.js} +3 -3
- package/dist/{vue-ui-sparkbar-CS1FzyFk.js → vue-ui-sparkbar-eABecvjz.js} +3 -3
- package/dist/{vue-ui-sparkgauge-auWy_YMm.js → vue-ui-sparkgauge-DFsW13y7.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-yA_F8Ls5.js → vue-ui-sparkhistogram-DPzGXjFj.js} +4 -4
- package/dist/vue-ui-sparkline-B5OPRjNU.js +489 -0
- package/dist/{vue-ui-sparkstackbar-BhqOPIZT.js → vue-ui-sparkstackbar-CVBdITIs.js} +55 -53
- package/dist/vue-ui-stackbar-BTr1BBN4.js +1360 -0
- package/dist/{vue-ui-strip-plot-D7KgSU5y.js → vue-ui-strip-plot-54NtDb0A.js} +30 -28
- package/dist/{vue-ui-table-BDJg5T9l.js → vue-ui-table-B3FWWAuR.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Pp2gbL5G.js → vue-ui-table-heatmap-BTWwkQXu.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CmZBjiWv.js → vue-ui-table-sparkline-L_VfVY3_.js} +4 -4
- package/dist/{vue-ui-thermometer-ClY99Umm.js → vue-ui-thermometer-BYg-tLqb.js} +6 -6
- package/dist/{vue-ui-timer-_Bck3rxo.js → vue-ui-timer-Bsm1nthM.js} +5 -5
- package/dist/{vue-ui-tiremarks-C2CtoJT_.js → vue-ui-tiremarks-DDNjDbqV.js} +6 -6
- package/dist/{vue-ui-treemap-CM-zqI6U.js → vue-ui-treemap-4Rb7juUd.js} +13 -11
- package/dist/vue-ui-vertical-bar-BBUHbyBk.js +1108 -0
- package/dist/{vue-ui-waffle-B21kT4HO.js → vue-ui-waffle-B0pPICBw.js} +13 -11
- package/dist/{vue-ui-wheel-Dqv-ta7L.js → vue-ui-wheel-DsxxqjAU.js} +6 -6
- package/dist/{vue-ui-word-cloud-DHjvCwD8.js → vue-ui-word-cloud-Bcy11LqK.js} +12 -10
- package/dist/{vue-ui-world-h3Csu0YN.js → vue-ui-world-6gaLWJY0.js} +11 -9
- package/dist/vue-ui-xy-DH1dcD0K.js +3031 -0
- package/dist/{vue-ui-xy-canvas-sIRUM_Be.js → vue-ui-xy-canvas-dEh72fwk.js} +265 -264
- package/package.json +1 -1
- package/dist/vue-ui-candlestick-Dz0D7t8f.js +0 -873
- package/dist/vue-ui-donut-evolution-CQDtCf7k.js +0 -903
- package/dist/vue-ui-nested-donuts-ywwGdEJO.js +0 -1177
- package/dist/vue-ui-sparkline-B-sCAUEL.js +0 -459
- package/dist/vue-ui-stackbar-CZzqF-ZH.js +0 -1207
- package/dist/vue-ui-vertical-bar-CET-9MDi.js +0 -980
- package/dist/vue-ui-xy-CZ7mScyg.js +0 -2958
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineAsyncComponent as V, useSlots as pe, onMounted as G, computed as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as te } from "./useNestedProp-
|
|
1
|
+
import { defineAsyncComponent as V, useSlots as pe, onMounted as G, computed as k, ref as d, watch as q, createElementBlock as r, openBlock as s, normalizeStyle as v, createCommentVNode as y, createBlock as ge, createVNode as H, createElementVNode as p, toDisplayString as C, unref as m, Fragment as x, renderList as $, normalizeClass as A, withCtx as X, renderSlot as T, normalizeProps as J, guardReactiveProps as K } from "vue";
|
|
2
|
+
import { u as he, c as Q, t as fe, p as i, a as ye, d as D, b as me, o as ke, e as Z, g as be, f as U, X as _e, s as we, w as Ce, i as ee, x as xe } from "./index-CvyDwC1y.js";
|
|
3
|
+
import { u as te } from "./useNestedProp-B-ULAHAH.js";
|
|
4
4
|
import { u as $e } from "./useChartAccessibility-9icAAmYg.js";
|
|
5
5
|
import { _ as Se } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
-
const
|
|
6
|
+
const Fe = ["xmlns", "viewBox"], Pe = ["id"], ze = ["stop-color"], Ae = ["stop-color"], De = ["stop-color"], Ne = {
|
|
7
7
|
id: "stackPill",
|
|
8
8
|
clipPathUnits: "objectBoundingBox"
|
|
9
9
|
}, Le = ["fill"], Be = {
|
|
@@ -31,11 +31,11 @@ const Pe = ["xmlns", "viewBox"], ze = ["id"], Ae = ["stop-color"], De = ["stop-c
|
|
|
31
31
|
},
|
|
32
32
|
emits: ["selectDatapoint"],
|
|
33
33
|
setup(le, { emit: oe }) {
|
|
34
|
-
const ae = V(() => import("./PackageVersion-
|
|
34
|
+
const ae = V(() => import("./PackageVersion-CJPhC_FI.js")), se = V(() => import("./vue-ui-skeleton-B-AdrWNd.js")), re = V(() => import("./Tooltip-eZi8Q0Mr.js")), { vue_ui_sparkstackbar: ne } = he(), u = le, ue = pe();
|
|
35
35
|
G(() => {
|
|
36
36
|
ue["chart-background"] && console.warn("VueUiSparkStackbar does not support the #chart-background slot.");
|
|
37
37
|
});
|
|
38
|
-
const j =
|
|
38
|
+
const j = k(() => !!u.dataset && u.dataset.length), E = d(null), M = d(Q()), N = d(!1), L = d(""), e = k({
|
|
39
39
|
get: () => R(),
|
|
40
40
|
set: (t) => t
|
|
41
41
|
}), { svgRef: ie } = $e({ config: e.value.style.title });
|
|
@@ -49,47 +49,47 @@ const Pe = ["xmlns", "viewBox"], ze = ["id"], Ae = ["stop-color"], De = ["stop-c
|
|
|
49
49
|
userConfig: ye.vue_ui_sparkstackbar[t.theme] || u.config,
|
|
50
50
|
defaultConfig: t
|
|
51
51
|
}),
|
|
52
|
-
customPalette:
|
|
52
|
+
customPalette: fe[t.theme] || i
|
|
53
53
|
} : t;
|
|
54
54
|
}
|
|
55
55
|
q(() => u.config, (t) => {
|
|
56
56
|
e.value = R(), I();
|
|
57
57
|
}, { deep: !0 }), q(() => u.dataset, (t) => {
|
|
58
|
-
|
|
58
|
+
b.value = u.dataset.map((a, l) => ({
|
|
59
59
|
...a,
|
|
60
|
-
color: a.color ?
|
|
60
|
+
color: a.color ? D(a.color) : S.value[l] || i[l] || i[l % i.length]
|
|
61
61
|
}));
|
|
62
62
|
}, { deep: !0 });
|
|
63
|
-
const S =
|
|
63
|
+
const S = k(() => me(e.value.customPalette)), b = d(u.dataset.map((t, a) => ({
|
|
64
64
|
...t,
|
|
65
65
|
value: e.value.style.animation.show ? 0 : t.value || 0,
|
|
66
|
-
color: t.color ?
|
|
66
|
+
color: t.color ? D(t.color) : S.value[a] || i[a] || i[a % i.length]
|
|
67
67
|
}))), w = d(!0);
|
|
68
68
|
G(() => {
|
|
69
69
|
if (I(), e.value.style.animation.show) {
|
|
70
|
-
let
|
|
71
|
-
o += l / t, o < l ? (
|
|
70
|
+
let f = function() {
|
|
71
|
+
o += l / t, o < l ? (b.value = b.value.map((n, c) => ({
|
|
72
72
|
...n,
|
|
73
73
|
value: n.value += a[c],
|
|
74
|
-
color: n.color ?
|
|
75
|
-
})), requestAnimationFrame(
|
|
74
|
+
color: n.color ? D(n.color) : S.value[c] || i[c] || i[c % i.length]
|
|
75
|
+
})), requestAnimationFrame(f)) : (w.value = !1, b.value = u.dataset.map((n, c) => ({
|
|
76
76
|
...n,
|
|
77
77
|
value: n.value || 0,
|
|
78
|
-
color: n.color ?
|
|
78
|
+
color: n.color ? D(n.color) : S.value[c] || i[c] || i[c % i.length],
|
|
79
79
|
id: Q()
|
|
80
80
|
})));
|
|
81
81
|
};
|
|
82
82
|
const t = e.value.style.animation.animationFrames, a = u.dataset.map((n, c) => n.value / t), l = u.dataset.map((n) => n.value || 0).reduce((n, c) => n + c, 0);
|
|
83
83
|
let o = 0;
|
|
84
|
-
w.value = !0,
|
|
84
|
+
w.value = !0, f();
|
|
85
85
|
}
|
|
86
86
|
});
|
|
87
87
|
function I() {
|
|
88
|
-
|
|
88
|
+
ke(u.dataset) ? Z({
|
|
89
89
|
componentName: "VueUiSparkStackbar",
|
|
90
90
|
type: "dataset"
|
|
91
91
|
}) : u.dataset.forEach((t, a) => {
|
|
92
|
-
|
|
92
|
+
be({
|
|
93
93
|
datasetObject: t,
|
|
94
94
|
requiredAttributes: ["name", "value"]
|
|
95
95
|
}).forEach((l) => {
|
|
@@ -105,24 +105,24 @@ const Pe = ["xmlns", "viewBox"], ze = ["id"], Ae = ["stop-color"], De = ["stop-c
|
|
|
105
105
|
const g = d({
|
|
106
106
|
width: 500,
|
|
107
107
|
height: 16
|
|
108
|
-
}),
|
|
109
|
-
const l = t.value || 0, o = l / W.value,
|
|
108
|
+
}), h = d([]), W = k(() => u.dataset.map((t) => t.value || 0).filter((t, a) => !h.value.includes(a)).reduce((t, a) => t + a, 0)), F = k(() => b.value.map((t, a) => {
|
|
109
|
+
const l = t.value || 0, o = l / W.value, f = isNaN(o) ? 0 : o, n = f * g.value.width;
|
|
110
110
|
return {
|
|
111
111
|
...t,
|
|
112
112
|
value: l,
|
|
113
|
-
proportion:
|
|
113
|
+
proportion: f,
|
|
114
114
|
width: n,
|
|
115
115
|
proportionLabel: U({
|
|
116
|
-
v:
|
|
116
|
+
v: f * 100,
|
|
117
117
|
s: "%",
|
|
118
118
|
r: e.value.style.legend.percentage.rounding
|
|
119
119
|
})
|
|
120
120
|
};
|
|
121
|
-
})), B =
|
|
121
|
+
})), B = k(() => F.value.filter((t, a) => !h.value.includes(a)));
|
|
122
122
|
function ce(t) {
|
|
123
|
-
|
|
123
|
+
h.value.includes(t) ? h.value = h.value.filter((a) => a !== t) : h.value.length < b.value.length - 1 && h.value.push(t);
|
|
124
124
|
}
|
|
125
|
-
const
|
|
125
|
+
const P = k(() => {
|
|
126
126
|
let t = 0;
|
|
127
127
|
const a = [];
|
|
128
128
|
for (let l = 0; l < B.value.length; l += 1)
|
|
@@ -135,25 +135,25 @@ const Pe = ["xmlns", "viewBox"], ze = ["id"], Ae = ["stop-color"], De = ["stop-c
|
|
|
135
135
|
function Y(t, a) {
|
|
136
136
|
de("selectDatapoint", { datapoint: t, index: a });
|
|
137
137
|
}
|
|
138
|
-
const O = d(null),
|
|
138
|
+
const O = d(null), z = d(!1), _ = d(null);
|
|
139
139
|
function ve({ datapoint: t, seriesIndex: a }) {
|
|
140
140
|
if (!e.value.style.tooltip.show)
|
|
141
141
|
return;
|
|
142
|
-
O.value = { datapoint: t, seriesIndex: a, config: e.value, series:
|
|
142
|
+
O.value = { datapoint: t, seriesIndex: a, config: e.value, series: F.value }, N.value = !0, _.value = a;
|
|
143
143
|
const l = e.value.style.tooltip.customFormat;
|
|
144
144
|
if (xe(l))
|
|
145
145
|
try {
|
|
146
146
|
const o = l({
|
|
147
147
|
seriesIndex: a,
|
|
148
148
|
datapoint: t,
|
|
149
|
-
series:
|
|
149
|
+
series: F.value,
|
|
150
150
|
config: e.value
|
|
151
151
|
});
|
|
152
|
-
typeof o == "string" && (L.value = o,
|
|
152
|
+
typeof o == "string" && (L.value = o, z.value = !0);
|
|
153
153
|
} catch {
|
|
154
|
-
console.warn("Custom format cannot be applied."),
|
|
154
|
+
console.warn("Custom format cannot be applied."), z.value = !1;
|
|
155
155
|
}
|
|
156
|
-
if (!
|
|
156
|
+
if (!z.value) {
|
|
157
157
|
let o = "";
|
|
158
158
|
o += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`, o += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg>`, o += `<b>${t.proportionLabel}</b>`, o += `<span>(${ee(
|
|
159
159
|
e.value.style.legend.value.formatter,
|
|
@@ -201,7 +201,7 @@ const Pe = ["xmlns", "viewBox"], ze = ["id"], Ae = ["stop-color"], De = ["stop-c
|
|
|
201
201
|
}, [
|
|
202
202
|
H(m(ae)),
|
|
203
203
|
p("defs", null, [
|
|
204
|
-
(s(!0), r(x, null, $(
|
|
204
|
+
(s(!0), r(x, null, $(P.value, (l, o) => (s(), r("linearGradient", {
|
|
205
205
|
key: `stack_gradient_${o}`,
|
|
206
206
|
gradientTransform: "rotate(90)",
|
|
207
207
|
id: `stack_gradient_${o}_${M.value}`
|
|
@@ -209,16 +209,16 @@ const Pe = ["xmlns", "viewBox"], ze = ["id"], Ae = ["stop-color"], De = ["stop-c
|
|
|
209
209
|
p("stop", {
|
|
210
210
|
offset: "0%",
|
|
211
211
|
"stop-color": l.color
|
|
212
|
-
}, null, 8,
|
|
212
|
+
}, null, 8, ze),
|
|
213
213
|
p("stop", {
|
|
214
214
|
offset: "50%",
|
|
215
215
|
"stop-color": m(we)(m(Ce)(l.color, 0.05), 100 - e.value.style.bar.gradient.intensity)
|
|
216
|
-
}, null, 8,
|
|
216
|
+
}, null, 8, Ae),
|
|
217
217
|
p("stop", {
|
|
218
218
|
offset: "100%",
|
|
219
219
|
"stop-color": l.color
|
|
220
|
-
}, null, 8,
|
|
221
|
-
], 8,
|
|
220
|
+
}, null, 8, De)
|
|
221
|
+
], 8, Pe))), 128)),
|
|
222
222
|
p("clipPath", Ne, [
|
|
223
223
|
p("rect", {
|
|
224
224
|
x: "0.005",
|
|
@@ -232,19 +232,19 @@ const Pe = ["xmlns", "viewBox"], ze = ["id"], Ae = ["stop-color"], De = ["stop-c
|
|
|
232
232
|
])
|
|
233
233
|
]),
|
|
234
234
|
W.value > 0 ? (s(), r("g", Be, [
|
|
235
|
-
(s(!0), r(x, null, $(
|
|
235
|
+
(s(!0), r(x, null, $(P.value, (l, o) => (s(), r("rect", {
|
|
236
236
|
key: `stack_underlayer_${o}`,
|
|
237
237
|
x: l.start,
|
|
238
238
|
y: 0,
|
|
239
239
|
width: l.width,
|
|
240
240
|
height: g.value.height,
|
|
241
241
|
fill: e.value.style.bar.gradient.underlayerColor,
|
|
242
|
-
class:
|
|
242
|
+
class: A({ animated: !w.value }),
|
|
243
243
|
style: v({
|
|
244
244
|
opacity: _.value !== null && e.value.style.tooltip.show ? _.value === o ? 1 : 0.5 : 1
|
|
245
245
|
})
|
|
246
246
|
}, null, 14, Oe))), 128)),
|
|
247
|
-
(s(!0), r(x, null, $(
|
|
247
|
+
(s(!0), r(x, null, $(P.value, (l, o) => (s(), r("rect", {
|
|
248
248
|
key: `stack_${o}`,
|
|
249
249
|
x: l.start,
|
|
250
250
|
y: 0,
|
|
@@ -253,12 +253,12 @@ const Pe = ["xmlns", "viewBox"], ze = ["id"], Ae = ["stop-color"], De = ["stop-c
|
|
|
253
253
|
fill: e.value.style.bar.gradient.show ? `url(#stack_gradient_${o}_${M.value})` : l.color,
|
|
254
254
|
stroke: e.value.style.backgroundColor,
|
|
255
255
|
"stroke-linecap": "round",
|
|
256
|
-
class:
|
|
256
|
+
class: A({ animated: !w.value }),
|
|
257
257
|
style: v({
|
|
258
258
|
opacity: _.value !== null && e.value.style.tooltip.show ? _.value === o ? 1 : 0.5 : 1
|
|
259
259
|
})
|
|
260
260
|
}, null, 14, Ve))), 128)),
|
|
261
|
-
(s(!0), r(x, null, $(
|
|
261
|
+
(s(!0), r(x, null, $(P.value, (l, o) => (s(), r("rect", {
|
|
262
262
|
key: `stack_trap_${o}`,
|
|
263
263
|
onClick: () => Y(l, o),
|
|
264
264
|
x: l.start,
|
|
@@ -267,9 +267,9 @@ const Pe = ["xmlns", "viewBox"], ze = ["id"], Ae = ["stop-color"], De = ["stop-c
|
|
|
267
267
|
height: g.value.height,
|
|
268
268
|
fill: "transparent",
|
|
269
269
|
stroke: "none",
|
|
270
|
-
class:
|
|
270
|
+
class: A({ animated: !w.value }),
|
|
271
271
|
onMouseenter: () => ve({ datapoint: l, seriesIndex: o }),
|
|
272
|
-
onMouseleave: a[0] || (a[0] = (
|
|
272
|
+
onMouseleave: a[0] || (a[0] = (f) => {
|
|
273
273
|
N.value = !1, _.value = null;
|
|
274
274
|
})
|
|
275
275
|
}, null, 42, Te))), 128))
|
|
@@ -284,7 +284,7 @@ const Pe = ["xmlns", "viewBox"], ze = ["id"], Ae = ["stop-color"], De = ["stop-c
|
|
|
284
284
|
fill: "transparent",
|
|
285
285
|
rx: (g.value.height - 4) / 2
|
|
286
286
|
}, null, 8, Ue))
|
|
287
|
-
], 8,
|
|
287
|
+
], 8, Fe)) : y("", !0),
|
|
288
288
|
j.value ? y("", !0) : (s(), ge(m(se), {
|
|
289
289
|
key: 2,
|
|
290
290
|
config: {
|
|
@@ -302,10 +302,10 @@ const Pe = ["xmlns", "viewBox"], ze = ["id"], Ae = ["stop-color"], De = ["stop-c
|
|
|
302
302
|
style: v(`background:transparent;margin:0 auto;margin:${e.value.style.legend.margin};justify-content:${e.value.style.legend.textAlign === "left" ? "flex-start" : e.value.style.legend.textAlign === "right" ? "flex-end" : "center"}`),
|
|
303
303
|
class: "vue-ui-sparkstackbar-legend"
|
|
304
304
|
}, [
|
|
305
|
-
(s(!0), r(x, null, $(
|
|
305
|
+
(s(!0), r(x, null, $(F.value, (l, o) => (s(), r("div", {
|
|
306
306
|
style: v(`font-size:${e.value.style.legend.fontSize}px;`),
|
|
307
|
-
class:
|
|
308
|
-
onClick: (
|
|
307
|
+
class: A({ "vue-ui-sparkstackbar-legend-item": !0, "vue-ui-sparkstackbar-legend-item-unselected": h.value.includes(o) }),
|
|
308
|
+
onClick: (f) => {
|
|
309
309
|
ce(o), Y(l, o);
|
|
310
310
|
}
|
|
311
311
|
}, [
|
|
@@ -328,7 +328,7 @@ const Pe = ["xmlns", "viewBox"], ze = ["id"], Ae = ["stop-color"], De = ["stop-c
|
|
|
328
328
|
e.value.style.legend.percentage.show ? (s(), r("span", {
|
|
329
329
|
key: 0,
|
|
330
330
|
style: v(`font-weight:${e.value.style.legend.percentage.bold ? "bold" : "normal"};color:${e.value.style.legend.percentage.color}`)
|
|
331
|
-
}, C(
|
|
331
|
+
}, C(h.value.includes(o) ? " - " : l.proportionLabel), 5)) : y("", !0),
|
|
332
332
|
e.value.style.legend.value.show ? (s(), r("span", {
|
|
333
333
|
key: 1,
|
|
334
334
|
style: v(`font-weight:${e.value.style.legend.value.bold ? "bold" : "normal"};color:${e.value.style.legend.value.color}`)
|
|
@@ -358,9 +358,11 @@ const Pe = ["xmlns", "viewBox"], ze = ["id"], Ae = ["stop-color"], De = ["stop-c
|
|
|
358
358
|
backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
|
|
359
359
|
position: e.value.style.tooltip.position,
|
|
360
360
|
content: L.value,
|
|
361
|
-
isCustom:
|
|
361
|
+
isCustom: z.value,
|
|
362
362
|
offsetY: -124 + e.value.style.tooltip.offsetY,
|
|
363
|
-
blockShiftY: !0
|
|
363
|
+
blockShiftY: !0,
|
|
364
|
+
smooth: e.value.style.tooltip.smooth,
|
|
365
|
+
backdropFilter: e.value.style.tooltip.backdropFilter
|
|
364
366
|
}, {
|
|
365
367
|
"tooltip-before": X(() => [
|
|
366
368
|
T(t.$slots, "tooltip-before", J(K({ ...O.value })), void 0, !0)
|
|
@@ -369,13 +371,13 @@ const Pe = ["xmlns", "viewBox"], ze = ["id"], Ae = ["stop-color"], De = ["stop-c
|
|
|
369
371
|
T(t.$slots, "tooltip-after", J(K({ ...O.value })), void 0, !0)
|
|
370
372
|
]),
|
|
371
373
|
_: 3
|
|
372
|
-
}, 8, ["show", "parent", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "content", "isCustom", "offsetY"]),
|
|
374
|
+
}, 8, ["show", "parent", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "content", "isCustom", "offsetY", "smooth", "backdropFilter"]),
|
|
373
375
|
t.$slots.source ? (s(), r("div", Ie, [
|
|
374
376
|
T(t.$slots, "source", {}, void 0, !0)
|
|
375
377
|
], 512)) : y("", !0)
|
|
376
378
|
], 4));
|
|
377
379
|
}
|
|
378
|
-
}, Je = /* @__PURE__ */ Se(We, [["__scopeId", "data-v-
|
|
380
|
+
}, Je = /* @__PURE__ */ Se(We, [["__scopeId", "data-v-d2ef945d"]]);
|
|
379
381
|
export {
|
|
380
382
|
Je as default
|
|
381
383
|
};
|