vue-data-ui 3.0.0-next.30 → 3.0.0-next.32
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-gZkDqarC.js → Arrow-DiI9PrPS.js} +1 -1
- package/dist/{BaseDraggableDialog-Cx7MDUn7.js → BaseDraggableDialog-C0Kz_kZp.js} +2 -2
- package/dist/{BaseIcon-DEGIw8ne.js → BaseIcon-B_tGgA4H.js} +1 -1
- package/dist/{ColorPicker-dVo9qgIk.js → ColorPicker-CNsQt00F.js} +2 -2
- package/dist/{DataTable-DjL9vVfm.js → DataTable-Cm1oLidx.js} +2 -2
- package/dist/{Legend-DNs8ZSxL.js → Legend-DlUDcF1t.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Bmu00306.js → NonSvgPenAndPaper-CLlxRJK1.js} +3 -3
- package/dist/{PackageVersion-SqC1iXfO.js → PackageVersion-DZMJZGOu.js} +1 -1
- package/dist/{PenAndPaper-C1bF0gIz.js → PenAndPaper-BDNLADWh.js} +3 -3
- package/dist/{Shape-CNmKltYG.js → Shape-Br_SZ_x0.js} +1 -1
- package/dist/Slicer-DMU3nifX.js +588 -0
- package/dist/{SparkTooltip-BuPeepCP.js → SparkTooltip-B6xp9zx_.js} +1 -1
- package/dist/{Title-B21jaJ0n.js → Title-B5lsq0cx.js} +1 -1
- package/dist/{Tooltip-C4HWh3fx.js → Tooltip-CrAURNKT.js} +23 -19
- package/dist/{UserOptions-DQDPN9YO.js → UserOptions-CksX2mn0.js} +2 -2
- package/dist/{dom-to-png-Z16yk8O6.js → dom-to-png-CIBDe8BB.js} +1 -1
- package/dist/{img-UQKhhbxb.js → img-CWXYkVMQ.js} +1 -1
- package/dist/{index-Bxh2efzz.js → index-DB4XIP_N.js} +16 -3
- package/dist/{pdf-D2K9GCDq.js → pdf-Dm-ieKMv.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +13 -1
- package/dist/types/vue-data-ui.d.ts +13 -1
- package/dist/{useNestedProp-BGEUK51b.js → useNestedProp-iTa19l34.js} +1 -1
- package/dist/{usePrinter-CfB_poc_.js → usePrinter-id381vkp.js} +2 -2
- package/dist/{vue-data-ui-Em_nyncZ.js → vue-data-ui-WdvK3lBL.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-KFXQhCpk.js → vue-ui-3d-bar-CtiAXSRA.js} +6 -6
- package/dist/{vue-ui-accordion-CXj3OfMj.js → vue-ui-accordion-DAT3uTMD.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Bygd_6Lj.js → vue-ui-age-pyramid-LuljyG04.js} +11 -9
- package/dist/{vue-ui-annotator-CaxhGvw9.js → vue-ui-annotator-CzHa2GlG.js} +2 -2
- package/dist/{vue-ui-bullet-xsVzeIGY.js → vue-ui-bullet-BEzXYrWC.js} +7 -7
- package/dist/{vue-ui-candlestick-DT3NblSj.js → vue-ui-candlestick-DSaFw3wl.js} +12 -10
- package/dist/{vue-ui-carousel-table-Bj6Blcps.js → vue-ui-carousel-table-D1CLPWmk.js} +4 -4
- package/dist/{vue-ui-chestnut-Bzi7pvOQ.js → vue-ui-chestnut-D3FNLdep.js} +5 -5
- package/dist/{vue-ui-chord-SN0lkfJI.js → vue-ui-chord-CFT-LcE4.js} +8 -8
- package/dist/{vue-ui-circle-pack-BwH7JGeH.js → vue-ui-circle-pack-Bl_cyLTg.js} +6 -6
- package/dist/{vue-ui-cursor-BLHqKKuQ.js → vue-ui-cursor-C2XYAY0n.js} +2 -2
- package/dist/{vue-ui-dashboard-C5ye3aO2.js → vue-ui-dashboard-4ZwAsn1N.js} +62 -62
- package/dist/{vue-ui-digits-fWW_yCiA.js → vue-ui-digits-Da5mTaOQ.js} +2 -2
- package/dist/{vue-ui-donut-VI_2cil0.js → vue-ui-donut-B6QlrBEH.js} +13 -11
- package/dist/{vue-ui-donut-evolution-BMDGbLPk.js → vue-ui-donut-evolution-Tv7oj7TE.js} +8 -8
- package/dist/{vue-ui-dumbbell-DYVwpQdP.js → vue-ui-dumbbell-LNnnDec4.js} +7 -7
- package/dist/{vue-ui-flow-BP3lwS2c.js → vue-ui-flow-B618L2Da.js} +12 -10
- package/dist/{vue-ui-funnel-C2gKEJrg.js → vue-ui-funnel-DS_tcSnW.js} +6 -6
- package/dist/{vue-ui-galaxy-CHu9EpUI.js → vue-ui-galaxy-C5qk-fEV.js} +51 -49
- package/dist/{vue-ui-gauge-DXoBEk4e.js → vue-ui-gauge-C33XPj6b.js} +6 -6
- package/dist/{vue-ui-gizmo-DpWaeVxb.js → vue-ui-gizmo-Cr6zUxnq.js} +3 -3
- package/dist/{vue-ui-heatmap-C6Xh5fmd.js → vue-ui-heatmap-ksiw1nTI.js} +32 -30
- package/dist/{vue-ui-history-plot-CH4RJSqN.js → vue-ui-history-plot-DM_vTyiY.js} +12 -10
- package/dist/{vue-ui-kpi-DJrypxm5.js → vue-ui-kpi-BgFQSUVT.js} +3 -3
- package/dist/{vue-ui-mini-loader-BMaEgYp1.js → vue-ui-mini-loader-BEpehl5X.js} +2 -2
- package/dist/{vue-ui-molecule-om_udncc.js → vue-ui-molecule-BIQFbPof.js} +35 -33
- package/dist/{vue-ui-mood-radar-BOd7BMa4.js → vue-ui-mood-radar-RShxk3Bz.js} +7 -7
- package/dist/{vue-ui-nested-donuts-B6krlgFx.js → vue-ui-nested-donuts-dMBxBBnZ.js} +62 -60
- package/dist/{vue-ui-onion-COQ1H7Ft.js → vue-ui-onion-ZVZ6wpNM.js} +46 -44
- package/dist/{vue-ui-parallel-coordinate-plot-CEKsfccd.js → vue-ui-parallel-coordinate-plot-1a3BGVsh.js} +69 -67
- package/dist/{vue-ui-quadrant-C88vkF8q.js → vue-ui-quadrant-XCnxKrJd.js} +59 -57
- package/dist/{vue-ui-quick-chart-CG2lY19C.js → vue-ui-quick-chart-BQJqdHxB.js} +11 -9
- package/dist/{vue-ui-radar-CUAYzxM4.js → vue-ui-radar-CeXlq2A-.js} +12 -10
- package/dist/{vue-ui-rating-DT0BLQ1G.js → vue-ui-rating-DTq-mZyU.js} +2 -2
- package/dist/{vue-ui-relation-circle-Ek_uAHpF.js → vue-ui-relation-circle-k8viefM-.js} +6 -6
- package/dist/{vue-ui-ridgeline-73OXSMcJ.js → vue-ui-ridgeline-B8oddwmZ.js} +8 -8
- package/dist/{vue-ui-rings-D1gK_JVs.js → vue-ui-rings-9XT1ePuY.js} +13 -11
- package/dist/{vue-ui-scatter-DCy4Vb84.js → vue-ui-scatter-oM-LVerf.js} +72 -70
- package/dist/{vue-ui-skeleton-DIb-2uan.js → vue-ui-skeleton-DDLBx4bb.js} +3 -3
- package/dist/{vue-ui-smiley-DiIu0kjQ.js → vue-ui-smiley-D5ybBkdY.js} +2 -2
- package/dist/{vue-ui-spark-trend-BPczzwfH.js → vue-ui-spark-trend-Tl-sOjqa.js} +3 -3
- package/dist/{vue-ui-sparkbar-B4LpToMU.js → vue-ui-sparkbar-Ce6dYcF4.js} +3 -3
- package/dist/{vue-ui-sparkgauge-D9KwmalJ.js → vue-ui-sparkgauge-DRHrbpSl.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-h7qmzAe1.js → vue-ui-sparkhistogram-DBtPWFim.js} +4 -4
- package/dist/{vue-ui-sparkline-DYYy38Fu.js → vue-ui-sparkline-DcF2ugGh.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-DIIyxzKM.js → vue-ui-sparkstackbar-C01iI0y3.js} +55 -53
- package/dist/{vue-ui-stackbar-BhPcAjIe.js → vue-ui-stackbar-BeCCgw_v.js} +196 -194
- package/dist/{vue-ui-strip-plot-9wxxXL3R.js → vue-ui-strip-plot-CsK2a1mH.js} +30 -28
- package/dist/{vue-ui-table-FAEiGW1W.js → vue-ui-table-COjBJDmq.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Cwbw5Rqy.js → vue-ui-table-heatmap-DfxMcAr9.js} +5 -5
- package/dist/{vue-ui-table-sparkline-DnZ44NiP.js → vue-ui-table-sparkline-0BC6BxKt.js} +4 -4
- package/dist/{vue-ui-thermometer-CHFtR_VC.js → vue-ui-thermometer-Bf2_qGBi.js} +6 -6
- package/dist/{vue-ui-timer-DWzZTLxC.js → vue-ui-timer-BC9tH4qB.js} +5 -5
- package/dist/{vue-ui-tiremarks-DTS-ZQRp.js → vue-ui-tiremarks-ya8ABi9I.js} +6 -6
- package/dist/{vue-ui-treemap-B5OdGgS-.js → vue-ui-treemap-BSHptMc8.js} +13 -11
- package/dist/{vue-ui-vertical-bar-CcjDg9Bc.js → vue-ui-vertical-bar-B_Oa-v87.js} +41 -39
- package/dist/{vue-ui-waffle-C1XVqncx.js → vue-ui-waffle-DHB8v3nh.js} +13 -11
- package/dist/{vue-ui-wheel-DEIJPpR4.js → vue-ui-wheel-Bi28_KVB.js} +6 -6
- package/dist/{vue-ui-word-cloud-CUzU4JpO.js → vue-ui-word-cloud-BcQ2cfcu.js} +12 -10
- package/dist/{vue-ui-world-D0pONCg9.js → vue-ui-world-aLL9NUDQ.js} +11 -9
- package/dist/vue-ui-xy-BxonzF88.js +3710 -0
- package/dist/{vue-ui-xy-canvas-Do-IpmFr.js → vue-ui-xy-canvas-sUpmc7gl.js} +30 -28
- package/package.json +1 -1
- package/dist/Slicer-DYffOkSj.js +0 -577
- package/dist/vue-ui-xy-EoeoBLu2.js +0 -3027
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineAsyncComponent as le, computed as h, ref as g, toRefs as $e, watch as ue, shallowRef as oe, onMounted as Ce, onBeforeUnmount as Me, createElementBlock as d, openBlock as r, normalizeStyle as V, renderSlot as M, createCommentVNode as y, createBlock as se, normalizeProps as ne, guardReactiveProps as re, createElementVNode as f, toDisplayString as z, unref as i, createVNode as Ie, Fragment as G, renderList as U, withCtx as Se, createTextVNode as Ve, nextTick as ze } from "vue";
|
|
2
|
-
import { u as De, c as We, A as Pe, a as Re, C as ie, a7 as j, o as ve, e as de, g as Te, w as D, a8 as Ee, a9 as Oe, X as Be, s as W, V as ce, U as Fe, aa as he, i as X, f as Y, ab as Ge } from "./index-
|
|
3
|
-
import { u as ye } from "./useNestedProp-
|
|
2
|
+
import { u as De, c as We, A as Pe, a as Re, C as ie, a7 as j, o as ve, e as de, g as Te, w as D, a8 as Ee, a9 as Oe, X as Be, s as W, V as ce, U as Fe, aa as he, i as X, f as Y, ab as Ge } from "./index-DB4XIP_N.js";
|
|
3
|
+
import { u as ye } from "./useNestedProp-iTa19l34.js";
|
|
4
4
|
import { t as Ue, u as je } from "./useResponsive-DfdjqQps.js";
|
|
5
5
|
import { u as Xe } from "./useChartAccessibility-9icAAmYg.js";
|
|
6
6
|
import { u as Ye, B as qe } from "./BaseScanner-DIK2NTdp.js";
|
|
@@ -40,7 +40,7 @@ const Je = ["id"], Ke = ["xmlns", "viewBox"], Qe = ["width", "height"], et = ["i
|
|
|
40
40
|
},
|
|
41
41
|
emits: ["hoverIndex", "selectDatapoint"],
|
|
42
42
|
setup(_, { emit: fe }) {
|
|
43
|
-
const pe = le(() => import("./PackageVersion-
|
|
43
|
+
const pe = le(() => import("./PackageVersion-DZMJZGOu.js")), ge = le(() => import("./SparkTooltip-B6xp9zx_.js")), { vue_ui_sparkline: be } = De(), n = _, q = h(() => Array.isArray(n.dataset) && n.dataset.length > 0), p = g(We()), P = g(null), Z = g(null), H = g(null), e = g(E());
|
|
44
44
|
function me(t) {
|
|
45
45
|
return Ge(t).map((a) => ({ period: "-", value: a }));
|
|
46
46
|
}
|
|
@@ -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-DB4XIP_N.js";
|
|
3
|
+
import { u as te } from "./useNestedProp-iTa19l34.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-DZMJZGOu.js")), se = V(() => import("./vue-ui-skeleton-DDLBx4bb.js")), re = V(() => import("./Tooltip-CrAURNKT.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
|
};
|