vue-data-ui 3.0.0-next.4 → 3.0.0-next.40
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-COeGcYaf.js → Arrow-CJMQcuGh.js} +1 -1
- package/dist/{BaseDraggableDialog-B6a_nUd1.js → BaseDraggableDialog-BorVmOH6.js} +2 -2
- package/dist/{BaseIcon-C_m_NEgt.js → BaseIcon-DEsg88EI.js} +1 -1
- package/dist/{useLoading-Bt5Doa8m.js → BaseScanner-DIK2NTdp.js} +11 -11
- package/dist/{ColorPicker-_xpvmgl6.js → ColorPicker-Co40B_SG.js} +2 -2
- package/dist/{DataTable-kd4xY9pT.js → DataTable-DY-e2LXS.js} +2 -2
- package/dist/{Legend-Bow74t3d.js → Legend-C7zp8-t4.js} +2 -2
- package/dist/{NonSvgPenAndPaper-cUcAGGV2.js → NonSvgPenAndPaper-C2R7jHOH.js} +3 -3
- package/dist/{PackageVersion-3ZfzB951.js → PackageVersion-B6kajKgU.js} +1 -1
- package/dist/{PenAndPaper-BZddJqUG.js → PenAndPaper-en69u8G0.js} +3 -3
- package/dist/{Shape-BsptIVCm.js → Shape-D2suYivy.js} +43 -37
- package/dist/Slicer-DlcITWn0.js +588 -0
- package/dist/{SparkTooltip-BdD0e0jv.js → SparkTooltip-BwDKg_cF.js} +7 -7
- package/dist/{Title-FiH2Kirc.js → Title-CBSyhlmd.js} +1 -1
- package/dist/{Tooltip-BLtR7DBZ.js → Tooltip-Dis_Iqvl.js} +23 -19
- package/dist/{UserOptions-DOwmMJId.js → UserOptions-BAGpDPid.js} +2 -2
- package/dist/{dom-to-png-DnsK-Zal.js → dom-to-png-Ov4kozad.js} +1 -1
- package/dist/{img-CP2uNkKq.js → img-lSctQ4V6.js} +1 -1
- package/dist/{index-BnnNoGGd.js → index-Dt40W2hN.js} +1533 -1265
- package/dist/{pdf-urw1sGoX.js → pdf-DtFuExHv.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +231 -10
- package/dist/types/vue-data-ui.d.ts +231 -10
- package/dist/{useNestedProp-B6Dz15k2.js → useNestedProp-CiNTcBth.js} +1 -1
- package/dist/{usePrinter-Dd-RkmL8.js → usePrinter-C4Hc_Nbf.js} +2 -2
- package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
- package/dist/{useTimeLabels-Mrr0jrpL.js → useTimeLabels-DkzmKfZn.js} +211 -152
- package/dist/{vue-data-ui-Dql75T3d.js → vue-data-ui-Bgp_em-v.js} +64 -64
- package/dist/vue-data-ui.js +26 -25
- package/dist/{vue-ui-3d-bar-CUDEgTKp.js → vue-ui-3d-bar-osKQ4IOP.js} +6 -6
- package/dist/{vue-ui-accordion-qNR0BQCP.js → vue-ui-accordion-BrdvtjzQ.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BFWU1VGZ.js → vue-ui-age-pyramid-CioF-ZZz.js} +11 -9
- package/dist/{vue-ui-annotator-CeMOjHpf.js → vue-ui-annotator-CSqAhQiG.js} +2 -2
- package/dist/vue-ui-bullet-CVDhxrNn.js +571 -0
- package/dist/vue-ui-candlestick--MPqDI4C.js +999 -0
- package/dist/{vue-ui-carousel-table-CAr64-2F.js → vue-ui-carousel-table-BVk7PLwZ.js} +4 -4
- package/dist/{vue-ui-chestnut-B0zNp1jY.js → vue-ui-chestnut-DEx9TbrF.js} +5 -5
- package/dist/{vue-ui-chord-C-_tz6Tb.js → vue-ui-chord-CA-KhxYT.js} +8 -8
- package/dist/{vue-ui-circle-pack-BSTkkKx-.js → vue-ui-circle-pack-DBathPgi.js} +26 -26
- package/dist/{vue-ui-cursor-Dqd6RkcK.js → vue-ui-cursor-DMgru1Ut.js} +2 -2
- package/dist/{vue-ui-dashboard-CspqjC6x.js → vue-ui-dashboard-DjR4GMXi.js} +62 -62
- package/dist/{vue-ui-digits-CazGAGyM.js → vue-ui-digits-Zyo5YPt9.js} +2 -2
- package/dist/{vue-ui-donut-BK35Gt-7.js → vue-ui-donut-CTkQZ2S_.js} +408 -381
- package/dist/vue-ui-donut-evolution-CqWJyBuS.js +1075 -0
- package/dist/{vue-ui-dumbbell-CJal89Ud.js → vue-ui-dumbbell-CqW_fq8N.js} +7 -7
- package/dist/vue-ui-flow-CrAhSPCS.js +841 -0
- package/dist/{vue-ui-funnel-Dm0LCakq.js → vue-ui-funnel-DhfW5rrz.js} +6 -6
- package/dist/{vue-ui-galaxy-C9poCSSD.js → vue-ui-galaxy-PAdaOeqx.js} +51 -49
- package/dist/{vue-ui-gauge-CYXXfMRC.js → vue-ui-gauge-O3pWOp6L.js} +6 -6
- package/dist/{vue-ui-gizmo-B-8rhor5.js → vue-ui-gizmo-euqtfneE.js} +3 -3
- package/dist/vue-ui-heatmap-DpJtmmha.js +1078 -0
- package/dist/{vue-ui-history-plot-C_Si7S5S.js → vue-ui-history-plot-D-ERYWqA.js} +12 -10
- package/dist/{vue-ui-kpi-BYYBkt55.js → vue-ui-kpi-BVPy5lir.js} +3 -3
- package/dist/{vue-ui-mini-loader-DmHE-wrb.js → vue-ui-mini-loader-C1jyLTN0.js} +2 -2
- package/dist/{vue-ui-molecule-I2ZUVtal.js → vue-ui-molecule-D5a1xiZe.js} +35 -33
- package/dist/{vue-ui-mood-radar-BYUr9rcv.js → vue-ui-mood-radar-BFoBLBHr.js} +7 -7
- package/dist/vue-ui-nested-donuts-C5EdQl9m.js +1286 -0
- package/dist/{vue-ui-onion-BpGz1RFC.js → vue-ui-onion-R8aDUWKW.js} +46 -44
- package/dist/vue-ui-parallel-coordinate-plot-BlyVabIZ.js +915 -0
- package/dist/{vue-ui-quadrant-CByC4r8k.js → vue-ui-quadrant-IUglavFx.js} +59 -57
- package/dist/vue-ui-quick-chart-BpNPyMU7.js +1761 -0
- package/dist/{vue-ui-radar-CBVb6GyN.js → vue-ui-radar-gw_Juu9G.js} +12 -10
- package/dist/{vue-ui-rating-Thf6P6AF.js → vue-ui-rating-1unEFc2G.js} +2 -2
- package/dist/{vue-ui-relation-circle-Blg3GkeU.js → vue-ui-relation-circle-BcfPtGPT.js} +6 -6
- package/dist/{vue-ui-ridgeline-D6kxALQN.js → vue-ui-ridgeline-MPTZgHBN.js} +12 -10
- package/dist/{vue-ui-rings-bBHc4cwe.js → vue-ui-rings-BathT6rc.js} +13 -11
- package/dist/{vue-ui-scatter-DS6-kGZL.js → vue-ui-scatter-c18cEUOV.js} +72 -70
- package/dist/{vue-ui-skeleton-gHkpLBcj.js → vue-ui-skeleton-B7-_d7dq.js} +3 -3
- package/dist/{vue-ui-smiley-S7qJ-dRf.js → vue-ui-smiley-BDXogV8H.js} +2 -2
- package/dist/{vue-ui-spark-trend-Co-sKoQX.js → vue-ui-spark-trend-DDTjw45H.js} +3 -3
- package/dist/{vue-ui-sparkbar-G1Jhr305.js → vue-ui-sparkbar-C_5eGtLa.js} +3 -3
- package/dist/{vue-ui-sparkgauge-Bzm5X8us.js → vue-ui-sparkgauge-DHY87x_9.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-IGnxrQK9.js → vue-ui-sparkhistogram-DS5XBE2H.js} +4 -4
- package/dist/vue-ui-sparkline-CSDFmjTw.js +489 -0
- package/dist/{vue-ui-sparkstackbar-C_cbbRT_.js → vue-ui-sparkstackbar-BlbqR90E.js} +55 -53
- package/dist/vue-ui-stackbar-BQhWHZhn.js +1370 -0
- package/dist/{vue-ui-strip-plot-Cw1CDIL0.js → vue-ui-strip-plot-DqW7c8P5.js} +30 -28
- package/dist/{vue-ui-table-C4A73F9D.js → vue-ui-table-CgQG6lgC.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DDlDAXMI.js → vue-ui-table-heatmap-BSvr6nNW.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CQDLqNvX.js → vue-ui-table-sparkline-w7bQM7Hk.js} +4 -4
- package/dist/{vue-ui-thermometer-DgBtT1Ts.js → vue-ui-thermometer-DXtr4W_t.js} +6 -6
- package/dist/{vue-ui-timer-DwL2EUHc.js → vue-ui-timer-DFF2z6Uo.js} +5 -5
- package/dist/{vue-ui-tiremarks-J9v9JAmf.js → vue-ui-tiremarks-a_a4b9HI.js} +6 -6
- package/dist/{vue-ui-treemap-BSPd3wFo.js → vue-ui-treemap-DLbstU3H.js} +13 -11
- package/dist/vue-ui-vertical-bar-B7NnA0GU.js +1108 -0
- package/dist/vue-ui-waffle-B9VX_YKC.js +910 -0
- package/dist/{vue-ui-wheel-B_r_vUFd.js → vue-ui-wheel-BuMOe8AU.js} +6 -6
- package/dist/{vue-ui-word-cloud-DqvRfwF3.js → vue-ui-word-cloud-CEZ2XSvH.js} +12 -10
- package/dist/{vue-ui-world-DguPtgux.js → vue-ui-world-BTXi0bm-.js} +11 -9
- package/dist/vue-ui-xy-DIstI78B.js +3755 -0
- package/dist/{vue-ui-xy-canvas-Cv4Fs6Jw.js → vue-ui-xy-canvas-u2RoNNiK.js} +265 -264
- package/package.json +1 -1
- package/dist/Slicer-i0BAmgHn.js +0 -577
- package/dist/vue-ui-bullet-CmNollxj.js +0 -513
- package/dist/vue-ui-candlestick-CkoAVYNh.js +0 -873
- package/dist/vue-ui-donut-evolution-SomhFGJh.js +0 -903
- package/dist/vue-ui-flow-BFsmk2iL.js +0 -765
- package/dist/vue-ui-heatmap-BQzObiF9.js +0 -877
- package/dist/vue-ui-nested-donuts-DEm7s2uC.js +0 -1177
- package/dist/vue-ui-parallel-coordinate-plot-SkVvzSSQ.js +0 -807
- package/dist/vue-ui-quick-chart-GEYFXShR.js +0 -1612
- package/dist/vue-ui-sparkline-ezu4qjgC.js +0 -459
- package/dist/vue-ui-stackbar-BD9gyxAb.js +0 -1207
- package/dist/vue-ui-vertical-bar-B5b5tXjT.js +0 -1029
- package/dist/vue-ui-waffle-Bh_gS8y2.js +0 -863
- package/dist/vue-ui-xy-MFNbJqgb.js +0 -2980
|
@@ -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-Dt40W2hN.js";
|
|
3
|
+
import { u as te } from "./useNestedProp-CiNTcBth.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-B6kajKgU.js")), se = V(() => import("./vue-ui-skeleton-B7-_d7dq.js")), re = V(() => import("./Tooltip-Dis_Iqvl.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
|
};
|