vue-data-ui 2.2.92 → 2.2.93
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/index-DZlxUin4.js +57288 -0
- package/dist/{index.es-Dc9Fd4o6.js → index.es-Cgqo-FBk.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/vue-data-ui.js +61 -455
- package/package.json +1 -1
- package/dist/data-table-d-VcuH-r.js +0 -1488
- package/dist/legend-DJCYLsl_.js +0 -61
- package/dist/themes-lgjsYHsH.js +0 -4967
- package/dist/title-BF-9Qcni.js +0 -56
- package/dist/tooltip-D85WEOKi.js +0 -94
- package/dist/user-options-DZgCz8UA.js +0 -415
- package/dist/vue-ui-3d-bar-DW7kGJSz.js +0 -20360
- package/dist/vue-ui-age-pyramid-4hcuKpFY.js +0 -781
- package/dist/vue-ui-annotator-C83FVvl8.js +0 -2175
- package/dist/vue-ui-candlestick-diclGj95.js +0 -807
- package/dist/vue-ui-chestnut-ACetHLdG.js +0 -1049
- package/dist/vue-ui-cursor-Rx7UNaYT.js +0 -229
- package/dist/vue-ui-dashboard-B3PlN0ks.js +0 -231
- package/dist/vue-ui-digits-CxMXID42.js +0 -154
- package/dist/vue-ui-donut-DMiwVXNd.js +0 -1534
- package/dist/vue-ui-dumbbell-B_X1T8TR.js +0 -621
- package/dist/vue-ui-flow-B72wzQ6V.js +0 -451
- package/dist/vue-ui-galaxy-DXX5yivT.js +0 -482
- package/dist/vue-ui-gauge-Cs9PDurH.js +0 -466
- package/dist/vue-ui-heatmap-PcoNSLdN.js +0 -581
- package/dist/vue-ui-kpi-DchEmPtB.js +0 -55
- package/dist/vue-ui-mini-loader-DltJLkqy.js +0 -131
- package/dist/vue-ui-molecule-CWvukBzs.js +0 -746
- package/dist/vue-ui-mood-radar-DEfdtIi8.js +0 -544
- package/dist/vue-ui-nested-donuts-9URpqgXE.js +0 -768
- package/dist/vue-ui-onion-C0eowUT6.js +0 -551
- package/dist/vue-ui-parallel-coordinate-plot-Bc_pAaPJ.js +0 -647
- package/dist/vue-ui-quadrant-_ddVAm9V.js +0 -1174
- package/dist/vue-ui-quick-chart-Cio0hDYO.js +0 -1310
- package/dist/vue-ui-radar-Dyg38i33.js +0 -853
- package/dist/vue-ui-rating-CE1Lmwd2.js +0 -271
- package/dist/vue-ui-relation-circle-BMlB3k3d.js +0 -303
- package/dist/vue-ui-rings-BuXeijvb.js +0 -507
- package/dist/vue-ui-scatter-B1hZfOua.js +0 -870
- package/dist/vue-ui-screenshot-0QXgxzGs.js +0 -160
- package/dist/vue-ui-smiley-B7kR7exr.js +0 -763
- package/dist/vue-ui-spark-trend-BmL2KiYL.js +0 -245
- package/dist/vue-ui-sparkgauge-BMzFv14L.js +0 -158
- package/dist/vue-ui-sparkhistogram-DWpOXqHm.js +0 -243
- package/dist/vue-ui-sparkstackbar-DB9VQXlc.js +0 -244
- package/dist/vue-ui-strip-plot-DyN6P0JO.js +0 -614
- package/dist/vue-ui-table-DM3zL89q.js +0 -2180
- package/dist/vue-ui-table-heatmap-gWx0Nslu.js +0 -237
- package/dist/vue-ui-thermometer-Bcqv5kd_.js +0 -384
- package/dist/vue-ui-timer-BIFxjujK.js +0 -451
- package/dist/vue-ui-tiremarks-zBwHpED_.js +0 -248
- package/dist/vue-ui-treemap-BaplVc_z.js +0 -719
- package/dist/vue-ui-vertical-bar-CdK6ZJPM.js +0 -734
- package/dist/vue-ui-waffle-COOzH7M3.js +0 -635
- package/dist/vue-ui-wheel-BEpuVTBk.js +0 -226
- package/dist/vue-ui-word-cloud-DNqxAAiX.js +0 -344
- package/dist/vue-ui-xy-_mHq-czW.js +0 -2058
- package/dist/vue-ui-xy-canvas-DqX8Gee5.js +0 -1003
|
@@ -1,244 +0,0 @@
|
|
|
1
|
-
import { computed as p, ref as m, onMounted as T, openBlock as n, createElementBlock as r, normalizeStyle as g, createElementVNode as u, toDisplayString as k, createCommentVNode as h, unref as b, Fragment as D, renderList as z, normalizeClass as A, createBlock as q } from "vue";
|
|
2
|
-
import { _ as H, e as F, f as X, p as d, g as J, h as P, i as K, j as E, k as Q, n as U, X as R, x as W, o as Y } from "./data-table-d-VcuH-r.js";
|
|
3
|
-
import { t as Z } from "./themes-lgjsYHsH.js";
|
|
4
|
-
import { u as I } from "./title-BF-9Qcni.js";
|
|
5
|
-
import { u as ee, S as te } from "./vue-ui-3d-bar-DW7kGJSz.js";
|
|
6
|
-
const le = ["xmlns", "viewBox"], ae = ["id"], oe = ["stop-color"], se = ["stop-color"], ne = ["stop-color"], re = {
|
|
7
|
-
id: "stackPill",
|
|
8
|
-
clipPathUnits: "objectBoundingBox"
|
|
9
|
-
}, ue = ["fill"], ie = { "clip-path": "url(#stackPill)" }, ce = ["height", "width", "fill"], de = ["onClick", "x", "width", "height", "fill", "stroke"], ve = ["onClick"], ge = { style: { display: "flex", "flex-direction": "row", "align-items": "center", gap: "4px", "justify-content": "center" } }, pe = ["height", "width"], he = ["fill"], ye = {
|
|
10
|
-
__name: "vue-ui-sparkstackbar",
|
|
11
|
-
props: {
|
|
12
|
-
config: {
|
|
13
|
-
type: Object,
|
|
14
|
-
default() {
|
|
15
|
-
return {};
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
dataset: {
|
|
19
|
-
type: Array,
|
|
20
|
-
default() {
|
|
21
|
-
return [];
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
emits: ["selectDatapoint"],
|
|
26
|
-
setup(O, { emit: V }) {
|
|
27
|
-
const i = O, { vue_ui_sparkstackbar: G } = ee(), N = p(() => !!i.dataset && i.dataset.length), B = m(F()), e = p(() => {
|
|
28
|
-
const t = I({
|
|
29
|
-
userConfig: i.config,
|
|
30
|
-
defaultConfig: G
|
|
31
|
-
});
|
|
32
|
-
return t.theme ? {
|
|
33
|
-
...I({
|
|
34
|
-
userConfig: Z.vue_ui_sparkstackbar[t.theme] || i.config,
|
|
35
|
-
defaultConfig: t
|
|
36
|
-
}),
|
|
37
|
-
customPalette: X[t.theme] || d
|
|
38
|
-
} : t;
|
|
39
|
-
}), x = p(() => J(e.value.customPalette)), y = m(i.dataset.map((t, a) => ({
|
|
40
|
-
...t,
|
|
41
|
-
value: e.value.style.animation.show ? 0 : t.value || 0,
|
|
42
|
-
color: t.color ? P(t.color) : x.value[a] || d[a] || d[a % d.length]
|
|
43
|
-
}))), _ = m(!0);
|
|
44
|
-
T(() => {
|
|
45
|
-
if (K(i.dataset) ? E({
|
|
46
|
-
componentName: "VueUiSparkStackbar",
|
|
47
|
-
type: "dataset"
|
|
48
|
-
}) : i.dataset.forEach((t, a) => {
|
|
49
|
-
Q({
|
|
50
|
-
datasetObject: t,
|
|
51
|
-
requiredAttributes: ["name", "value"]
|
|
52
|
-
}).forEach((l) => {
|
|
53
|
-
E({
|
|
54
|
-
componentName: "VueUiSparkStackbar",
|
|
55
|
-
type: "datasetSerieAttribute",
|
|
56
|
-
property: l,
|
|
57
|
-
index: a
|
|
58
|
-
});
|
|
59
|
-
});
|
|
60
|
-
}), e.value.style.animation.show) {
|
|
61
|
-
let S = function() {
|
|
62
|
-
o += l / t, o < l ? (y.value = y.value.map((s, c) => ({
|
|
63
|
-
...s,
|
|
64
|
-
value: s.value += a[c],
|
|
65
|
-
color: s.color ? P(s.color) : x.value[c] || d[c] || d[c % d.length]
|
|
66
|
-
})), requestAnimationFrame(S)) : (_.value = !1, y.value = i.dataset.map((s, c) => ({
|
|
67
|
-
...s,
|
|
68
|
-
value: s.value || 0,
|
|
69
|
-
color: s.color ? P(s.color) : x.value[c] || d[c] || d[c % d.length],
|
|
70
|
-
id: F()
|
|
71
|
-
})));
|
|
72
|
-
};
|
|
73
|
-
const t = e.value.style.animation.animationFrames, a = i.dataset.map((s, c) => s.value / t), l = i.dataset.map((s) => s.value || 0).reduce((s, c) => s + c, 0);
|
|
74
|
-
let o = 0;
|
|
75
|
-
_.value = !0, S();
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
|
-
const f = m({
|
|
79
|
-
width: 500,
|
|
80
|
-
height: 16
|
|
81
|
-
}), v = m([]), w = p(() => i.dataset.map((t) => t.value || 0).filter((t, a) => !v.value.includes(a)).reduce((t, a) => t + a, 0)), L = p(() => y.value.map((t, a) => ({
|
|
82
|
-
...t,
|
|
83
|
-
value: t.value || 0,
|
|
84
|
-
proportion: (t.value || 0) / w.value,
|
|
85
|
-
width: (t.value || 0) / w.value * f.value.width,
|
|
86
|
-
proportionLabel: U({
|
|
87
|
-
v: (t.value || 0) / w.value * 100,
|
|
88
|
-
s: "%",
|
|
89
|
-
r: e.value.style.legend.percentage.rounding
|
|
90
|
-
})
|
|
91
|
-
}))), $ = p(() => L.value.filter((t, a) => !v.value.includes(a)));
|
|
92
|
-
function M(t) {
|
|
93
|
-
v.value.includes(t) ? v.value = v.value.filter((a) => a !== t) : v.value.length < y.value.length - 1 && v.value.push(t);
|
|
94
|
-
}
|
|
95
|
-
const C = p(() => {
|
|
96
|
-
let t = 0;
|
|
97
|
-
const a = [];
|
|
98
|
-
for (let l = 0; l < $.value.length; l += 1)
|
|
99
|
-
a.push({
|
|
100
|
-
...$.value[l],
|
|
101
|
-
start: t
|
|
102
|
-
}), t += $.value[l].width;
|
|
103
|
-
return a;
|
|
104
|
-
});
|
|
105
|
-
function j(t, a) {
|
|
106
|
-
V("selectDatapoint", { datapoint: t, index: a });
|
|
107
|
-
}
|
|
108
|
-
return (t, a) => (n(), r("div", {
|
|
109
|
-
style: g(`width:100%; background:${e.value.style.backgroundColor}`)
|
|
110
|
-
}, [
|
|
111
|
-
e.value.style.title.text ? (n(), r("div", {
|
|
112
|
-
key: 0,
|
|
113
|
-
style: g(`width:calc(100% - 12px);background:${e.value.style.backgroundColor};margin:0 auto;margin:${e.value.style.title.margin};padding: 0 6px;text-align:${e.value.style.title.textAlign}`)
|
|
114
|
-
}, [
|
|
115
|
-
u("div", {
|
|
116
|
-
style: g(`font-size:${e.value.style.title.fontSize}px;color:${e.value.style.title.color};font-weight:${e.value.style.title.bold ? "bold" : "normal"}`)
|
|
117
|
-
}, k(e.value.style.title.text), 5),
|
|
118
|
-
e.value.style.title.subtitle.text ? (n(), r("div", {
|
|
119
|
-
key: 0,
|
|
120
|
-
style: g(`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"}`)
|
|
121
|
-
}, k(e.value.style.title.subtitle.text), 5)) : h("", !0)
|
|
122
|
-
], 4)) : h("", !0),
|
|
123
|
-
N.value ? (n(), r("svg", {
|
|
124
|
-
key: 1,
|
|
125
|
-
xmlns: b(R),
|
|
126
|
-
width: "100%",
|
|
127
|
-
viewBox: `0 0 ${f.value.width} ${f.value.height}`
|
|
128
|
-
}, [
|
|
129
|
-
u("defs", null, [
|
|
130
|
-
(n(!0), r(D, null, z(C.value, (l, o) => (n(), r("linearGradient", {
|
|
131
|
-
key: `stack_gradient_${o}`,
|
|
132
|
-
gradientTransform: "rotate(90)",
|
|
133
|
-
id: `stack_gradient_${o}_${B.value}`
|
|
134
|
-
}, [
|
|
135
|
-
u("stop", {
|
|
136
|
-
offset: "0%",
|
|
137
|
-
"stop-color": l.color
|
|
138
|
-
}, null, 8, oe),
|
|
139
|
-
u("stop", {
|
|
140
|
-
offset: "50%",
|
|
141
|
-
"stop-color": `${b(W)(l.color, 0.05)}${b(Y)[100 - e.value.style.bar.gradient.intensity]}`
|
|
142
|
-
}, null, 8, se),
|
|
143
|
-
u("stop", {
|
|
144
|
-
offset: "100%",
|
|
145
|
-
"stop-color": l.color
|
|
146
|
-
}, null, 8, ne)
|
|
147
|
-
], 8, ae))), 128)),
|
|
148
|
-
u("clipPath", re, [
|
|
149
|
-
u("rect", {
|
|
150
|
-
x: "0.005",
|
|
151
|
-
y: "-2",
|
|
152
|
-
width: "0.99",
|
|
153
|
-
height: "5",
|
|
154
|
-
rx: "3",
|
|
155
|
-
ry: "3",
|
|
156
|
-
fill: e.value.style.backgroundColor
|
|
157
|
-
}, null, 8, ue)
|
|
158
|
-
])
|
|
159
|
-
]),
|
|
160
|
-
u("g", ie, [
|
|
161
|
-
u("rect", {
|
|
162
|
-
x: 0,
|
|
163
|
-
y: 0,
|
|
164
|
-
height: f.value.height,
|
|
165
|
-
width: C.value.map((l) => l.width).reduce((l, o) => l + o, 0),
|
|
166
|
-
fill: e.value.style.bar.gradient.underlayerColor,
|
|
167
|
-
class: A({ animated: !_.value })
|
|
168
|
-
}, null, 10, ce),
|
|
169
|
-
(n(!0), r(D, null, z(C.value, (l, o) => (n(), r("rect", {
|
|
170
|
-
key: `stack_${o}`,
|
|
171
|
-
onClick: () => j(l, o),
|
|
172
|
-
x: l.start,
|
|
173
|
-
y: 0,
|
|
174
|
-
width: l.width,
|
|
175
|
-
height: f.value.height,
|
|
176
|
-
fill: e.value.style.bar.gradient.show ? `url(#stack_gradient_${o}_${B.value})` : l.color,
|
|
177
|
-
stroke: e.value.style.backgroundColor,
|
|
178
|
-
"stroke-linecap": "round",
|
|
179
|
-
class: A({ animated: !_.value })
|
|
180
|
-
}, null, 10, de))), 128))
|
|
181
|
-
])
|
|
182
|
-
], 8, le)) : h("", !0),
|
|
183
|
-
N.value ? h("", !0) : (n(), q(te, {
|
|
184
|
-
key: 2,
|
|
185
|
-
config: {
|
|
186
|
-
type: "sparkStackbar",
|
|
187
|
-
style: {
|
|
188
|
-
backgroundColor: e.value.style.backgroundColor,
|
|
189
|
-
sparkStackbar: {
|
|
190
|
-
color: "#CCCCCC"
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
}, null, 8, ["config"])),
|
|
195
|
-
e.value.style.legend.show ? (n(), r("div", {
|
|
196
|
-
key: 3,
|
|
197
|
-
style: g(`background:${e.value.style.backgroundColor};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"}`),
|
|
198
|
-
class: "vue-ui-sparkstackbar-legend"
|
|
199
|
-
}, [
|
|
200
|
-
(n(!0), r(D, null, z(L.value, (l, o) => (n(), r("div", {
|
|
201
|
-
style: g(`font-size:${e.value.style.legend.fontSize}px;`),
|
|
202
|
-
class: A({ "vue-ui-sparkstackbar-legend-item": !0, "vue-ui-sparkstackbar-legend-item-unselected": v.value.includes(o) }),
|
|
203
|
-
onClick: (S) => {
|
|
204
|
-
M(o), j(l, o);
|
|
205
|
-
}
|
|
206
|
-
}, [
|
|
207
|
-
u("div", ge, [
|
|
208
|
-
(n(), r("svg", {
|
|
209
|
-
height: `${e.value.style.legend.fontSize}px`,
|
|
210
|
-
width: `${e.value.style.legend.fontSize}px`,
|
|
211
|
-
viewBox: "0 0 10 10"
|
|
212
|
-
}, [
|
|
213
|
-
u("circle", {
|
|
214
|
-
cx: 5,
|
|
215
|
-
cy: 5,
|
|
216
|
-
r: 5,
|
|
217
|
-
fill: l.color
|
|
218
|
-
}, null, 8, he)
|
|
219
|
-
], 8, pe)),
|
|
220
|
-
u("span", {
|
|
221
|
-
style: g(`color:${e.value.style.legend.name.color}; font-weight:${e.value.style.legend.name.bold ? "bold" : "normal"}`)
|
|
222
|
-
}, k(l.name), 5),
|
|
223
|
-
e.value.style.legend.percentage.show ? (n(), r("span", {
|
|
224
|
-
key: 0,
|
|
225
|
-
style: g(`font-weight:${e.value.style.legend.percentage.bold ? "bold" : "normal"};color:${e.value.style.legend.percentage.color}`)
|
|
226
|
-
}, k(v.value.includes(o) ? " - " : l.proportionLabel), 5)) : h("", !0),
|
|
227
|
-
e.value.style.legend.value.show ? (n(), r("span", {
|
|
228
|
-
key: 1,
|
|
229
|
-
style: g(`font-weight:${e.value.style.legend.value.bold ? "bold" : "normal"};color:${e.value.style.legend.value.color}`)
|
|
230
|
-
}, " (" + k(b(U)({
|
|
231
|
-
p: e.value.style.legend.value.prefix,
|
|
232
|
-
v: l.value,
|
|
233
|
-
s: e.value.style.legend.value.suffix,
|
|
234
|
-
r: e.value.style.legend.value.rounding
|
|
235
|
-
})) + ") ", 5)) : h("", !0)
|
|
236
|
-
])
|
|
237
|
-
], 14, ve))), 256))
|
|
238
|
-
], 4)) : h("", !0)
|
|
239
|
-
], 4));
|
|
240
|
-
}
|
|
241
|
-
}, xe = /* @__PURE__ */ H(ye, [["__scopeId", "data-v-2006741b"]]);
|
|
242
|
-
export {
|
|
243
|
-
xe as default
|
|
244
|
-
};
|