vue-data-ui 3.4.9 → 3.5.0
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 +88 -37
- package/dist/{PackageVersion-CTUqGqWV.js → PackageVersion-Cyx_s25h.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- 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-dashboard.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-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-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-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-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/style.css +1 -1
- package/dist/{vue-data-ui-DjxWWa78.js → vue-data-ui-DxgRqCAo.js} +104 -98
- package/dist/vue-data-ui.js +54 -54
- package/dist/{vue-ui-3d-bar-CLE7f9pl.js → vue-ui-3d-bar-DmNJp8SY.js} +1 -1
- package/dist/{vue-ui-age-pyramid-D73uIOPm.js → vue-ui-age-pyramid-CPAP3sNY.js} +1 -1
- package/dist/{vue-ui-bullet-Bybo0xK2.js → vue-ui-bullet-Ce6uvCQJ.js} +1 -1
- package/dist/{vue-ui-candlestick-D_FyMdqH.js → vue-ui-candlestick-DewevWV_.js} +1 -1
- package/dist/{vue-ui-carousel-table-BvMlNdVo.js → vue-ui-carousel-table-Dv1CDfE5.js} +1 -1
- package/dist/{vue-ui-chestnut-DA0g0bDV.js → vue-ui-chestnut-D9sdFZ4E.js} +1 -1
- package/dist/{vue-ui-chord-CDgzolI-.js → vue-ui-chord-BG4dxKNA.js} +1 -1
- package/dist/{vue-ui-circle-pack-BPDm-ro5.js → vue-ui-circle-pack-Be74QB_0.js} +1 -1
- package/dist/{vue-ui-dashboard-CeJwbiON.js → vue-ui-dashboard-C4BLwHey.js} +54 -54
- package/dist/{vue-ui-donut-DjQXHBJE.js → vue-ui-donut-BRGFcgxS.js} +542 -526
- package/dist/{vue-ui-donut-evolution-Ca3Svr0B.js → vue-ui-donut-evolution-DJ0C-7jH.js} +364 -348
- package/dist/{vue-ui-dumbbell-CxCE2luV.js → vue-ui-dumbbell-iQJ0BUhm.js} +1 -1
- package/dist/{vue-ui-flow-DEvwXd4W.js → vue-ui-flow-CTYFoib3.js} +1 -1
- package/dist/{vue-ui-funnel-Bgcx7xia.js → vue-ui-funnel-CG55Xcdy.js} +1 -1
- package/dist/{vue-ui-galaxy-BWr1EMob.js → vue-ui-galaxy-BQrxjKZJ.js} +221 -205
- package/dist/{vue-ui-gauge-DQricvo2.js → vue-ui-gauge-Tc-0NI0Y.js} +1 -1
- package/dist/{vue-ui-gizmo-C-fKe3io.js → vue-ui-gizmo-P8h-gnLd.js} +1 -1
- package/dist/{vue-ui-heatmap-B-o_i7Hu.js → vue-ui-heatmap-BZimPzsL.js} +1 -1
- package/dist/{vue-ui-history-plot-DzQ9DPUJ.js → vue-ui-history-plot-BVzbuqYY.js} +383 -367
- package/dist/{vue-ui-molecule-I2OhrCR2.js → vue-ui-molecule-BALqwB8c.js} +1 -1
- package/dist/{vue-ui-mood-radar-BAT7kZUy.js → vue-ui-mood-radar-QJ5nlZby.js} +1 -1
- package/dist/{vue-ui-nested-donuts-CjhJDAQi.js → vue-ui-nested-donuts-CmUabkkQ.js} +404 -384
- package/dist/{vue-ui-onion-DTY2p87s.js → vue-ui-onion-DAOCf3f8.js} +331 -309
- package/dist/{vue-ui-parallel-coordinate-plot-C8aWTcNn.js → vue-ui-parallel-coordinate-plot-D8jTuFjq.js} +378 -361
- package/dist/{vue-ui-quadrant-DGnasrCR.js → vue-ui-quadrant-CO52mSRY.js} +428 -411
- package/dist/{vue-ui-quick-chart-Cam_sWet.js → vue-ui-quick-chart-DEaVSldE.js} +1 -1
- package/dist/{vue-ui-radar-DNI9WI2R.js → vue-ui-radar-C5V4hhbW.js} +393 -374
- package/dist/{vue-ui-relation-circle-Dj1jhcsl.js → vue-ui-relation-circle-CbMM0Jka.js} +1 -1
- package/dist/{vue-ui-ridgeline-adIls6bj.js → vue-ui-ridgeline-CXCIRDq6.js} +454 -438
- package/dist/{vue-ui-rings-CnTMFK6R.js → vue-ui-rings-BpUcyqo7.js} +285 -263
- package/dist/{vue-ui-scatter-fzR2c0St.js → vue-ui-scatter--Dxe-hfO.js} +629 -613
- package/dist/{vue-ui-skeleton-DUdI2uOO.js → vue-ui-skeleton-BWq-VDzg.js} +1 -1
- package/dist/{vue-ui-spark-trend-DxpRfUJz.js → vue-ui-spark-trend-T4J_YOa_.js} +1 -1
- package/dist/{vue-ui-sparkbar-B44oER5n.js → vue-ui-sparkbar-DnKP55Vu.js} +1 -1
- package/dist/{vue-ui-sparkgauge-ix12NZ7M.js → vue-ui-sparkgauge-BDQLP-zi.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-Cs-QDYBR.js → vue-ui-sparkhistogram-Dm7QXrA-.js} +1 -1
- package/dist/{vue-ui-sparkline-Cb8ZmyUq.js → vue-ui-sparkline-tXGDLHRy.js} +1 -1
- package/dist/vue-ui-sparkstackbar-M53Nt07M.js +441 -0
- package/dist/{vue-ui-stackbar-DubS6Pg8.js → vue-ui-stackbar-CkBOjryQ.js} +437 -421
- package/dist/{vue-ui-strip-plot-BjG-Jxnb.js → vue-ui-strip-plot-BX9i3wMn.js} +1 -1
- package/dist/{vue-ui-table-DdBdLrAL.js → vue-ui-table-7r02N9R9.js} +2 -2
- package/dist/{vue-ui-table-sparkline-EpCo2Be5.js → vue-ui-table-sparkline-DZaAh10E.js} +1 -1
- package/dist/{vue-ui-thermometer-DTnfnf9z.js → vue-ui-thermometer-CFPt3MOv.js} +1 -1
- package/dist/{vue-ui-timer-Br3wp8hG.js → vue-ui-timer-Ds-MJoW2.js} +1 -1
- package/dist/{vue-ui-tiremarks-CrC_tlIx.js → vue-ui-tiremarks-2eIQ6vxu.js} +1 -1
- package/dist/{vue-ui-treemap-kyuyi2ES.js → vue-ui-treemap-BEvl8hiw.js} +500 -484
- package/dist/{vue-ui-vertical-bar-yfbEfLqy.js → vue-ui-vertical-bar-D8dtM8sw.js} +350 -334
- package/dist/{vue-ui-waffle-m-9sqQik.js → vue-ui-waffle-B3q-2SCR.js} +302 -286
- package/dist/{vue-ui-wheel-BasM7FWt.js → vue-ui-wheel-BpirIgAG.js} +1 -1
- package/dist/{vue-ui-word-cloud-vNwswYZD.js → vue-ui-word-cloud-ChT7uLbN.js} +1 -1
- package/dist/{vue-ui-world-BsCNyZy_.js → vue-ui-world-CdP4g_3_.js} +1 -1
- package/dist/{vue-ui-xy-CIrw1lWQ.js → vue-ui-xy-B68qQ-gX.js} +1089 -1073
- package/dist/{vue-ui-xy-canvas-DXnLFwW3.js → vue-ui-xy-canvas-DDngEA1s.js} +338 -322
- package/package.json +1 -1
- package/dist/vue-ui-sparkstackbar-BiRZ51OU.js +0 -424
package/package.json
CHANGED
|
@@ -1,424 +0,0 @@
|
|
|
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, G as Ae } from "./lib-C_mNZmhD.js";
|
|
3
|
-
import { u as De, a as ne } from "./useNestedProp-BjZe1Y85.js";
|
|
4
|
-
import { u as Ie } from "./useChartAccessibility-9icAAmYg.js";
|
|
5
|
-
import { t as Pe } from "./themes-AUNCOb2G.js";
|
|
6
|
-
import { u as ze, B as Be } from "./BaseScanner-BgWxam9d.js";
|
|
7
|
-
import { _ as Le } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
|
-
const Ne = ["xmlns", "viewBox"], Te = ["id"], Ee = ["stop-color"], Me = ["stop-color"], Oe = ["stop-color"], Ve = {
|
|
9
|
-
id: "stackPill",
|
|
10
|
-
clipPathUnits: "objectBoundingBox"
|
|
11
|
-
}, Re = ["fill"], Ue = {
|
|
12
|
-
key: 0,
|
|
13
|
-
"clip-path": "url(#stackPill)"
|
|
14
|
-
}, je = ["x", "width", "height", "fill"], Ge = ["x", "width", "height", "fill", "stroke"], We = ["x", "width", "height", "onClick", "onMouseenter", "onMouseleave"], Ye = ["width", "height", "rx"], qe = ["onClick"], He = { style: { display: "flex", "flex-direction": "row", "align-items": "center", gap: "4px", "justify-content": "center" } }, Xe = ["height", "width"], Je = ["id"], Ke = ["stop-color"], Qe = ["stop-color"], Ze = ["fill"], et = {
|
|
15
|
-
key: 2,
|
|
16
|
-
ref: "source",
|
|
17
|
-
dir: "auto"
|
|
18
|
-
}, tt = {
|
|
19
|
-
__name: "vue-ui-sparkstackbar",
|
|
20
|
-
props: {
|
|
21
|
-
config: {
|
|
22
|
-
type: Object,
|
|
23
|
-
default() {
|
|
24
|
-
return {};
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
dataset: {
|
|
28
|
-
type: Array,
|
|
29
|
-
default() {
|
|
30
|
-
return [];
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
emits: ["selectDatapoint"],
|
|
35
|
-
setup(ue, { emit: ie }) {
|
|
36
|
-
const ce = X(() => import("./PackageVersion-CTUqGqWV.js")), de = X(() => import("./Tooltip-oWCO1HKy.js")), { vue_ui_sparkstackbar: ve } = De(), _ = ue, pe = be();
|
|
37
|
-
J(() => {
|
|
38
|
-
pe["chart-background"] && console.warn("VueUiSparkStackbar does not support the #chart-background slot.");
|
|
39
|
-
});
|
|
40
|
-
const j = v(null), I = v(le()), T = v(!1), E = v(""), e = v(M()), { loading: x, FINAL_DATASET: m } = ze({
|
|
41
|
-
...ke(_),
|
|
42
|
-
FINAL_CONFIG: e,
|
|
43
|
-
prepareConfig: M,
|
|
44
|
-
skeletonDataset: [
|
|
45
|
-
{ name: "_", value: 8, color: "#808080" },
|
|
46
|
-
{ name: "_", value: 5, color: "#ADADAD" },
|
|
47
|
-
{ name: "_", value: 3, color: "#DBDBDB" }
|
|
48
|
-
],
|
|
49
|
-
skeletonConfig: xe({
|
|
50
|
-
defaultConfig: e.value,
|
|
51
|
-
userConfig: {
|
|
52
|
-
style: {
|
|
53
|
-
backgroundColor: "#99999930",
|
|
54
|
-
animation: { show: !1 },
|
|
55
|
-
bar: { gradient: { inderlayerColor: "#6A6A6A" } },
|
|
56
|
-
title: {
|
|
57
|
-
backgroundColor: "transparent"
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
})
|
|
62
|
-
}), { svgRef: ge } = Ie({ config: e.value.style.title });
|
|
63
|
-
function M() {
|
|
64
|
-
const t = ne({
|
|
65
|
-
userConfig: _.config,
|
|
66
|
-
defaultConfig: ve
|
|
67
|
-
});
|
|
68
|
-
return t.theme ? {
|
|
69
|
-
...ne({
|
|
70
|
-
userConfig: Pe.vue_ui_sparkstackbar[t.theme] || _.config,
|
|
71
|
-
defaultConfig: t
|
|
72
|
-
}),
|
|
73
|
-
customPalette: we[t.theme] || i
|
|
74
|
-
} : t;
|
|
75
|
-
}
|
|
76
|
-
K(() => _.config, (t) => {
|
|
77
|
-
e.value = M(), Y();
|
|
78
|
-
}, { deep: !0 }), K(() => m.value, (t) => {
|
|
79
|
-
b.value = m.value.map((a, l) => ({
|
|
80
|
-
...a,
|
|
81
|
-
color: a.color ? D(a.color) : S.value[l] || i[l] || i[l % i.length]
|
|
82
|
-
})), G();
|
|
83
|
-
}, { deep: !0 });
|
|
84
|
-
const S = $(() => Ce(e.value.customPalette)), b = v(m.value.map((t, a) => ({
|
|
85
|
-
...t,
|
|
86
|
-
value: e.value.style.animation.show ? 0 : t.value || 0,
|
|
87
|
-
color: t.color ? D(t.color) : S.value[a] || i[a] || i[a % i.length]
|
|
88
|
-
}))), w = v(!0);
|
|
89
|
-
function G() {
|
|
90
|
-
if (!e.value.style.animation.show) return;
|
|
91
|
-
const t = e.value.style.animation.animationFrames, a = m.value.map((n) => n.value || 0), l = a.map((n) => n / t), o = a.reduce((n, u) => n + u, 0);
|
|
92
|
-
let y = 0;
|
|
93
|
-
w.value = !0, b.value = m.value.map((n, u) => ({
|
|
94
|
-
...n,
|
|
95
|
-
value: 0,
|
|
96
|
-
color: n.color ? D(n.color) : S.value[u] || i[u] || i[u % i.length]
|
|
97
|
-
}));
|
|
98
|
-
function L() {
|
|
99
|
-
y += o / t, y < o ? (b.value = b.value.map((n, u) => ({
|
|
100
|
-
...n,
|
|
101
|
-
value: Math.min(n.value + l[u], a[u]),
|
|
102
|
-
color: n.color ? D(n.color) : S.value[u] || i[u] || i[u % i.length]
|
|
103
|
-
})), requestAnimationFrame(L)) : (w.value = !1, b.value = m.value.map((n, u) => ({
|
|
104
|
-
...n,
|
|
105
|
-
value: a[u],
|
|
106
|
-
color: n.color ? D(n.color) : S.value[u] || i[u] || i[u % i.length],
|
|
107
|
-
id: le()
|
|
108
|
-
})));
|
|
109
|
-
}
|
|
110
|
-
L();
|
|
111
|
-
}
|
|
112
|
-
J(() => {
|
|
113
|
-
Y();
|
|
114
|
-
});
|
|
115
|
-
const W = $(() => e.value.debug);
|
|
116
|
-
function Y() {
|
|
117
|
-
$e(_.dataset) ? oe({
|
|
118
|
-
componentName: "VueUiSparkStackbar",
|
|
119
|
-
type: "dataset",
|
|
120
|
-
debug: W.value
|
|
121
|
-
}) : _.dataset.forEach((t, a) => {
|
|
122
|
-
Se({
|
|
123
|
-
datasetObject: t,
|
|
124
|
-
requiredAttributes: ["name", "value"]
|
|
125
|
-
}).forEach((l) => {
|
|
126
|
-
oe({
|
|
127
|
-
componentName: "VueUiSparkStackbar",
|
|
128
|
-
type: "datasetSerieAttribute",
|
|
129
|
-
property: l,
|
|
130
|
-
index: a,
|
|
131
|
-
debug: W.value
|
|
132
|
-
});
|
|
133
|
-
});
|
|
134
|
-
}), G();
|
|
135
|
-
}
|
|
136
|
-
const g = v({
|
|
137
|
-
width: 500,
|
|
138
|
-
height: 16
|
|
139
|
-
}), h = v([]), q = $(() => m.value.map((t) => t.value || 0).filter((t, a) => !h.value.includes(a)).reduce((t, a) => t + a, 0)), P = $(() => b.value.map((t, a) => {
|
|
140
|
-
const l = t.value || 0, o = l / q.value, y = isNaN(o) ? 0 : o, L = y * g.value.width;
|
|
141
|
-
return {
|
|
142
|
-
...t,
|
|
143
|
-
value: l,
|
|
144
|
-
proportion: y,
|
|
145
|
-
width: L,
|
|
146
|
-
seriesIndex: a,
|
|
147
|
-
proportionLabel: U({
|
|
148
|
-
v: y * 100,
|
|
149
|
-
s: "%",
|
|
150
|
-
r: e.value.style.legend.percentage.rounding
|
|
151
|
-
})
|
|
152
|
-
};
|
|
153
|
-
})), O = $(() => P.value.filter((t, a) => !h.value.includes(a)));
|
|
154
|
-
function he(t) {
|
|
155
|
-
h.value.includes(t) ? h.value = h.value.filter((a) => a !== t) : h.value.length < b.value.length - 1 && h.value.push(t);
|
|
156
|
-
}
|
|
157
|
-
const z = $(() => {
|
|
158
|
-
let t = 0;
|
|
159
|
-
const a = [];
|
|
160
|
-
for (let l = 0; l < O.value.length; l += 1)
|
|
161
|
-
a.push({
|
|
162
|
-
...O.value[l],
|
|
163
|
-
start: t
|
|
164
|
-
}), t += O.value[l].width;
|
|
165
|
-
return a;
|
|
166
|
-
}), fe = ie;
|
|
167
|
-
function H(t, a, l = !1) {
|
|
168
|
-
fe("selectDatapoint", { datapoint: t, index: a }), e.value.events.datapointClick && !l && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.seriesIndex });
|
|
169
|
-
}
|
|
170
|
-
const V = v(null), B = v(!1), C = v(null);
|
|
171
|
-
function ye({ datapoint: t, seriesIndex: a }) {
|
|
172
|
-
T.value = !1, C.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.seriesIndex });
|
|
173
|
-
}
|
|
174
|
-
function me({ datapoint: t, seriesIndex: a }) {
|
|
175
|
-
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: t.seriesIndex }), !e.value.style.tooltip.show)
|
|
176
|
-
return;
|
|
177
|
-
V.value = { datapoint: t, seriesIndex: a, config: e.value, series: P.value }, T.value = !0, C.value = a;
|
|
178
|
-
const l = e.value.style.tooltip.customFormat;
|
|
179
|
-
if (Ae(l))
|
|
180
|
-
try {
|
|
181
|
-
const o = l({
|
|
182
|
-
seriesIndex: t.seriesIndex,
|
|
183
|
-
datapoint: t,
|
|
184
|
-
series: P.value,
|
|
185
|
-
config: e.value
|
|
186
|
-
});
|
|
187
|
-
typeof o == "string" && (E.value = o, B.value = !0);
|
|
188
|
-
} catch {
|
|
189
|
-
console.warn("Custom format cannot be applied."), B.value = !1;
|
|
190
|
-
}
|
|
191
|
-
if (!B.value) {
|
|
192
|
-
let o = "";
|
|
193
|
-
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>(${re(
|
|
194
|
-
e.value.style.legend.value.formatter,
|
|
195
|
-
t.value,
|
|
196
|
-
U({
|
|
197
|
-
p: e.value.style.legend.value.prefix,
|
|
198
|
-
v: t.value,
|
|
199
|
-
s: e.value.style.legend.value.suffix,
|
|
200
|
-
r: e.value.style.legend.value.rounding
|
|
201
|
-
}),
|
|
202
|
-
{
|
|
203
|
-
datapoint: t,
|
|
204
|
-
seriesIndex: a
|
|
205
|
-
}
|
|
206
|
-
)})</span>`, E.value = `<div>${o}</div>`;
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
return (t, a) => (s(), r("div", {
|
|
210
|
-
class: "vue-data-ui-component vue-ui-spark-stackbar",
|
|
211
|
-
ref_key: "sparkstackbarChart",
|
|
212
|
-
ref: j,
|
|
213
|
-
style: p(`width:100%; background:${e.value.style.backgroundColor}`)
|
|
214
|
-
}, [
|
|
215
|
-
e.value.style.title.text ? (s(), r("div", {
|
|
216
|
-
key: 0,
|
|
217
|
-
style: p(`width:calc(100% - 12px);background:transparent;margin:0 auto;margin:${e.value.style.title.margin};padding: 0 6px;text-align:${e.value.style.title.textAlign}`)
|
|
218
|
-
}, [
|
|
219
|
-
d("div", {
|
|
220
|
-
class: "atom-title",
|
|
221
|
-
style: p(`font-size:${e.value.style.title.fontSize}px;color:${e.value.style.title.color};font-weight:${e.value.style.title.bold ? "bold" : "normal"}`)
|
|
222
|
-
}, F(e.value.style.title.text), 5),
|
|
223
|
-
e.value.style.title.subtitle.text ? (s(), r("div", {
|
|
224
|
-
key: 0,
|
|
225
|
-
class: "atom-subtitle",
|
|
226
|
-
style: p(`font-size:${e.value.style.title.subtitle.fontSize}px;color:${e.value.style.title.subtitle.color};font-weight:${e.value.style.title.subtitle.bold ? "bold" : "normal"}`)
|
|
227
|
-
}, F(e.value.style.title.subtitle.text), 5)) : f("", !0)
|
|
228
|
-
], 4)) : f("", !0),
|
|
229
|
-
(s(), r("svg", {
|
|
230
|
-
ref_key: "svgRef",
|
|
231
|
-
ref: ge,
|
|
232
|
-
xmlns: c(Fe),
|
|
233
|
-
width: "100%",
|
|
234
|
-
viewBox: `0 0 ${g.value.width} ${g.value.height}`
|
|
235
|
-
}, [
|
|
236
|
-
Q(c(ce)),
|
|
237
|
-
d("defs", null, [
|
|
238
|
-
(s(!0), r(k, null, A(z.value, (l, o) => (s(), r("linearGradient", {
|
|
239
|
-
key: `stack_gradient_${o}`,
|
|
240
|
-
gradientTransform: "rotate(90)",
|
|
241
|
-
id: `stack_gradient_${o}_${I.value}`
|
|
242
|
-
}, [
|
|
243
|
-
d("stop", {
|
|
244
|
-
offset: "0%",
|
|
245
|
-
"stop-color": l.color
|
|
246
|
-
}, null, 8, Ee),
|
|
247
|
-
d("stop", {
|
|
248
|
-
offset: "50%",
|
|
249
|
-
"stop-color": c(ae)(c(se)(l.color, 0.05), 100 - e.value.style.bar.gradient.intensity)
|
|
250
|
-
}, null, 8, Me),
|
|
251
|
-
d("stop", {
|
|
252
|
-
offset: "100%",
|
|
253
|
-
"stop-color": l.color
|
|
254
|
-
}, null, 8, Oe)
|
|
255
|
-
], 8, Te))), 128)),
|
|
256
|
-
d("clipPath", Ve, [
|
|
257
|
-
d("rect", {
|
|
258
|
-
x: "0.005",
|
|
259
|
-
y: "-2",
|
|
260
|
-
width: "0.99",
|
|
261
|
-
height: "5",
|
|
262
|
-
rx: "3",
|
|
263
|
-
ry: "3",
|
|
264
|
-
fill: e.value.style.backgroundColor
|
|
265
|
-
}, null, 8, Re)
|
|
266
|
-
])
|
|
267
|
-
]),
|
|
268
|
-
q.value > 0 ? (s(), r("g", Ue, [
|
|
269
|
-
(s(!0), r(k, null, A(z.value, (l, o) => (s(), r("rect", {
|
|
270
|
-
key: `stack_underlayer_${o}`,
|
|
271
|
-
x: l.start,
|
|
272
|
-
y: 0,
|
|
273
|
-
width: l.width,
|
|
274
|
-
height: g.value.height,
|
|
275
|
-
fill: e.value.style.bar.gradient.underlayerColor,
|
|
276
|
-
class: N({ animated: !w.value && !c(x) }),
|
|
277
|
-
style: p({
|
|
278
|
-
opacity: C.value !== null && e.value.style.tooltip.show ? C.value === o ? 1 : 0.5 : 1
|
|
279
|
-
})
|
|
280
|
-
}, null, 14, je))), 128)),
|
|
281
|
-
(s(!0), r(k, null, A(z.value, (l, o) => (s(), r("rect", {
|
|
282
|
-
key: `stack_${o}`,
|
|
283
|
-
x: l.start,
|
|
284
|
-
y: 0,
|
|
285
|
-
width: l.width,
|
|
286
|
-
height: g.value.height,
|
|
287
|
-
fill: e.value.style.bar.gradient.show ? `url(#stack_gradient_${o}_${I.value})` : l.color,
|
|
288
|
-
stroke: e.value.style.backgroundColor,
|
|
289
|
-
"stroke-linecap": "round",
|
|
290
|
-
class: N({ animated: !w.value && !c(x) }),
|
|
291
|
-
style: p({
|
|
292
|
-
opacity: C.value !== null && e.value.style.tooltip.show ? C.value === o ? 1 : 0.5 : 1
|
|
293
|
-
})
|
|
294
|
-
}, null, 14, Ge))), 128)),
|
|
295
|
-
(s(!0), r(k, null, A(z.value, (l, o) => (s(), r("rect", {
|
|
296
|
-
key: `stack_trap_${o}`,
|
|
297
|
-
x: l.start,
|
|
298
|
-
y: 0,
|
|
299
|
-
width: l.width,
|
|
300
|
-
height: g.value.height,
|
|
301
|
-
fill: "transparent",
|
|
302
|
-
stroke: "none",
|
|
303
|
-
class: N({ animated: !w.value && !c(x) }),
|
|
304
|
-
onClick: () => H(l, o),
|
|
305
|
-
onMouseenter: () => me({ datapoint: l, seriesIndex: o }),
|
|
306
|
-
onMouseleave: (y) => ye({ datapoint: l, seriesIndex: o })
|
|
307
|
-
}, null, 42, We))), 128))
|
|
308
|
-
])) : (s(), r("rect", {
|
|
309
|
-
key: 1,
|
|
310
|
-
x: 2,
|
|
311
|
-
y: 1,
|
|
312
|
-
width: g.value.width - 4,
|
|
313
|
-
height: g.value.height - 2,
|
|
314
|
-
stroke: "#CCCCCC",
|
|
315
|
-
"stroke-width": "2",
|
|
316
|
-
fill: "transparent",
|
|
317
|
-
rx: (g.value.height - 4) / 2
|
|
318
|
-
}, null, 8, Ye))
|
|
319
|
-
], 8, Ne)),
|
|
320
|
-
e.value.style.legend.show ? (s(), r("div", {
|
|
321
|
-
key: 1,
|
|
322
|
-
style: p(`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"}`),
|
|
323
|
-
class: "vue-ui-sparkstackbar-legend"
|
|
324
|
-
}, [
|
|
325
|
-
(s(!0), r(k, null, A(P.value, (l, o) => (s(), r("div", {
|
|
326
|
-
style: p(`font-size:${e.value.style.legend.fontSize}px;`),
|
|
327
|
-
class: N({ "vue-ui-sparkstackbar-legend-item": !0, "vue-ui-sparkstackbar-legend-item-unselected": h.value.includes(o) }),
|
|
328
|
-
onClick: (y) => {
|
|
329
|
-
he(o), H(l, o, !0);
|
|
330
|
-
}
|
|
331
|
-
}, [
|
|
332
|
-
d("div", He, [
|
|
333
|
-
(s(), r("svg", {
|
|
334
|
-
height: `${e.value.style.legend.fontSize}px`,
|
|
335
|
-
width: `${e.value.style.legend.fontSize}px`,
|
|
336
|
-
viewBox: "0 0 10 10"
|
|
337
|
-
}, [
|
|
338
|
-
d("defs", null, [
|
|
339
|
-
d("radialGradient", {
|
|
340
|
-
id: `legend_grad_${o}-${I.value}`
|
|
341
|
-
}, [
|
|
342
|
-
d("stop", {
|
|
343
|
-
offset: "0%",
|
|
344
|
-
"stop-color": c(x) ? "#FFFFFF" : c(ae)(c(se)(l.color, 0.05), 100 - e.value.style.bar.gradient.intensity)
|
|
345
|
-
}, null, 8, Ke),
|
|
346
|
-
d("stop", {
|
|
347
|
-
offset: "100%",
|
|
348
|
-
"stop-color": l.color
|
|
349
|
-
}, null, 8, Qe)
|
|
350
|
-
], 8, Je)
|
|
351
|
-
]),
|
|
352
|
-
d("circle", {
|
|
353
|
-
cx: 5,
|
|
354
|
-
cy: 5,
|
|
355
|
-
r: 5,
|
|
356
|
-
fill: e.value.style.bar.gradient.show ? `url(#legend_grad_${o}-${I.value})` : l.color
|
|
357
|
-
}, null, 8, Ze)
|
|
358
|
-
], 8, Xe)),
|
|
359
|
-
c(x) ? f("", !0) : (s(), r(k, { key: 0 }, [
|
|
360
|
-
d("span", {
|
|
361
|
-
style: p(`color:${e.value.style.legend.name.color}; font-weight:${e.value.style.legend.name.bold ? "bold" : "normal"}`)
|
|
362
|
-
}, F(l.name), 5),
|
|
363
|
-
w.value ? f("", !0) : (s(), r(k, { key: 0 }, [
|
|
364
|
-
e.value.style.legend.percentage.show ? (s(), r("span", {
|
|
365
|
-
key: 0,
|
|
366
|
-
style: p(`font-weight:${e.value.style.legend.percentage.bold ? "bold" : "normal"};color:${e.value.style.legend.percentage.color}`)
|
|
367
|
-
}, F(h.value.includes(o) ? " - " : l.proportionLabel), 5)) : f("", !0),
|
|
368
|
-
e.value.style.legend.value.show ? (s(), r("span", {
|
|
369
|
-
key: 1,
|
|
370
|
-
style: p(`font-weight:${e.value.style.legend.value.bold ? "bold" : "normal"};color:${e.value.style.legend.value.color}`)
|
|
371
|
-
}, " (" + F(c(re)(
|
|
372
|
-
e.value.style.legend.value.formatter,
|
|
373
|
-
l.value,
|
|
374
|
-
c(U)({
|
|
375
|
-
p: e.value.style.legend.value.prefix,
|
|
376
|
-
v: l.value,
|
|
377
|
-
s: e.value.style.legend.value.suffix,
|
|
378
|
-
r: e.value.style.legend.value.rounding
|
|
379
|
-
}),
|
|
380
|
-
{ datapoint: l, seriesIndex: o }
|
|
381
|
-
)) + ") ", 5)) : f("", !0)
|
|
382
|
-
], 64))
|
|
383
|
-
], 64))
|
|
384
|
-
])
|
|
385
|
-
], 14, qe))), 256))
|
|
386
|
-
], 4)) : f("", !0),
|
|
387
|
-
Q(c(de), {
|
|
388
|
-
show: T.value && e.value.style.tooltip.show,
|
|
389
|
-
parent: j.value,
|
|
390
|
-
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
391
|
-
color: e.value.style.tooltip.color,
|
|
392
|
-
fontSize: e.value.style.tooltip.fontSize,
|
|
393
|
-
borderRadius: e.value.style.tooltip.borderRadius,
|
|
394
|
-
borderColor: e.value.style.tooltip.borderColor,
|
|
395
|
-
borderWidth: e.value.style.tooltip.borderWidth,
|
|
396
|
-
backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
|
|
397
|
-
position: e.value.style.tooltip.position,
|
|
398
|
-
content: E.value,
|
|
399
|
-
isCustom: B.value,
|
|
400
|
-
offsetY: -124 + e.value.style.tooltip.offsetY,
|
|
401
|
-
blockShiftY: !0,
|
|
402
|
-
smooth: e.value.style.tooltip.smooth,
|
|
403
|
-
backdropFilter: e.value.style.tooltip.backdropFilter,
|
|
404
|
-
smoothForce: e.value.style.tooltip.smoothForce,
|
|
405
|
-
smoothSnapThreshold: e.value.style.tooltip.smoothSnapThreshold
|
|
406
|
-
}, {
|
|
407
|
-
"tooltip-before": Z(() => [
|
|
408
|
-
R(t.$slots, "tooltip-before", ee(te({ ...V.value })), void 0, !0)
|
|
409
|
-
]),
|
|
410
|
-
"tooltip-after": Z(() => [
|
|
411
|
-
R(t.$slots, "tooltip-after", ee(te({ ...V.value })), void 0, !0)
|
|
412
|
-
]),
|
|
413
|
-
_: 3
|
|
414
|
-
}, 8, ["show", "parent", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "content", "isCustom", "offsetY", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
415
|
-
t.$slots.source ? (s(), r("div", et, [
|
|
416
|
-
R(t.$slots, "source", {}, void 0, !0)
|
|
417
|
-
], 512)) : f("", !0),
|
|
418
|
-
c(x) ? (s(), _e(Be, { key: 3 })) : f("", !0)
|
|
419
|
-
], 4));
|
|
420
|
-
}
|
|
421
|
-
}, it = /* @__PURE__ */ Le(tt, [["__scopeId", "data-v-ae2ae4f4"]]);
|
|
422
|
-
export {
|
|
423
|
-
it as default
|
|
424
|
-
};
|