vue-data-ui 3.0.0-next.8 → 3.0.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 +32 -30
- package/dist/{Arrow-BRtNjitS.js → Arrow-r2f8Bpd-.js} +1 -1
- package/dist/{BaseDraggableDialog-CO9ok1PR.js → BaseDraggableDialog-CGGcf8d8.js} +4 -4
- package/dist/{BaseIcon-BuOIF6t5.js → BaseIcon-CXtL10fo.js} +1 -1
- package/dist/{ColorPicker-FH6oc0mS.js → ColorPicker-H91bBsqM.js} +2 -2
- package/dist/{DataTable-D36ZRtpU.js → DataTable-BSSXpM7w.js} +2 -2
- package/dist/{Legend-DInM-hku.js → Legend-BUk0WvWJ.js} +2 -2
- package/dist/{NonSvgPenAndPaper-B60MxEaz.js → NonSvgPenAndPaper-DQDgPoW8.js} +3 -3
- package/dist/{PackageVersion-CGQlqnmq.js → PackageVersion-CJ6Vd7V5.js} +3 -3
- package/dist/{PenAndPaper-B5slIHlh.js → PenAndPaper-D3zudcNI.js} +32 -32
- package/dist/{RecursiveCircles-Dn3TGoL6.js → RecursiveCircles-BcLb1aRS.js} +15 -13
- package/dist/RecursiveLabels-Bgcv0pzu.js +50 -0
- package/dist/{RecursiveLinks-ld_gDZH4.js → RecursiveLinks-00zGWPf9.js} +20 -18
- package/dist/{Shape-BGr3dQKt.js → Shape-BRzOzubn.js} +43 -37
- package/dist/Slicer-MID8pgT3.js +602 -0
- package/dist/{SparkTooltip-BWA23VgJ.js → SparkTooltip-DATI1fGZ.js} +7 -7
- package/dist/{Title-BSlAPr_H.js → Title-BGu6gEd2.js} +1 -1
- package/dist/{Tooltip-lPcsweXz.js → Tooltip-Bh2zYSoM.js} +23 -19
- package/dist/{UserOptions-Dn5TCQxg.js → UserOptions-Ck8fz9f4.js} +2 -2
- package/dist/{dom-to-png-Br-eVhJZ.js → dom-to-png-DhIh24Ti.js} +1 -1
- package/dist/{img-CgMUOQnb.js → img-DrR839Ot.js} +1 -1
- package/dist/{index-Cfm5-hMQ.js → index-BtNwOUja.js} +2885 -2010
- package/dist/{pdf-BMVHBLq5.js → pdf-DoShrdT5.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +753 -65
- package/dist/types/vue-data-ui.d.ts +753 -65
- package/dist/useAutoSizeLabelsInsideViewbox-FmDQyX4z.js +81 -0
- package/dist/useFitSvgText-2crs6Fv5.js +69 -0
- package/dist/useLoading-D7YHNtLX.js +29 -0
- package/dist/useNestedProp-f2H3m6Yj.js +13 -0
- package/dist/usePanZoom-BVca3eMk.js +122 -0
- package/dist/{usePrinter-B1Hgs47c.js → usePrinter-DUNjpQNe.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-CD674-M3.js → vue-data-ui-D7QVxNhO.js} +105 -100
- package/dist/vue-data-ui.js +26 -25
- package/dist/vue-ui-3d-bar-ITaF-6Kn.js +1323 -0
- package/dist/{vue-ui-accordion-CEDGlyKI.js → vue-ui-accordion-BKUrAowe.js} +3 -3
- package/dist/vue-ui-age-pyramid-DxsuDr6o.js +835 -0
- package/dist/{vue-ui-annotator-CosgP-Fl.js → vue-ui-annotator-B06QtxgJ.js} +12 -12
- package/dist/vue-ui-bullet-B7Fy45tA.js +571 -0
- package/dist/vue-ui-candlestick-Dw0U4uIQ.js +1000 -0
- package/dist/{vue-ui-carousel-table-BG1ItsAb.js → vue-ui-carousel-table-DGz0nw28.js} +29 -29
- package/dist/{vue-ui-chestnut-6uKesZW9.js → vue-ui-chestnut-CFfKYm9i.js} +664 -536
- package/dist/vue-ui-chord-EhlQhMSs.js +1038 -0
- package/dist/vue-ui-circle-pack-BHrrEUUd.js +709 -0
- package/dist/{vue-ui-cursor-CkVnNEGn.js → vue-ui-cursor-Dd-HtWzG.js} +2 -2
- package/dist/{vue-ui-dashboard-D07ivGS7.js → vue-ui-dashboard-6R8udDY3.js} +64 -64
- package/dist/{vue-ui-digits-Doidl3Lz.js → vue-ui-digits-zKn3uhGN.js} +2 -2
- package/dist/{vue-ui-donut-CWvzqAAa.js → vue-ui-donut-BtnIwS_E.js} +433 -424
- package/dist/vue-ui-donut-evolution-DHo1MuMM.js +1076 -0
- package/dist/vue-ui-dumbbell-Czi9r9Na.js +1120 -0
- package/dist/vue-ui-flow-jOfM0RZY.js +841 -0
- package/dist/{vue-ui-funnel-D1pFzjJa.js → vue-ui-funnel-tBvVpdhy.js} +16 -16
- package/dist/vue-ui-galaxy-IdoY2oqG.js +680 -0
- package/dist/vue-ui-gauge-DR6Xm_Hz.js +791 -0
- package/dist/vue-ui-gizmo-Dto73UsB.js +210 -0
- package/dist/vue-ui-heatmap-zmFv-0z1.js +1078 -0
- package/dist/vue-ui-history-plot-ILemyyYw.js +1074 -0
- package/dist/{vue-ui-kpi-DTeZbrJk.js → vue-ui-kpi-hmqSCvxr.js} +26 -26
- package/dist/{vue-ui-mini-loader-itpDcfZU.js → vue-ui-mini-loader-CbD-E8ci.js} +2 -2
- package/dist/vue-ui-molecule-mTy6YIm6.js +656 -0
- package/dist/vue-ui-mood-radar-BEnSYV3Q.js +785 -0
- package/dist/vue-ui-nested-donuts-CGE9dmJK.js +1284 -0
- package/dist/vue-ui-onion-Dh2J9GV0.js +776 -0
- package/dist/vue-ui-parallel-coordinate-plot-xsgmMIJK.js +916 -0
- package/dist/{vue-ui-quadrant-0milmSNS.js → vue-ui-quadrant-DA0Kw6eq.js} +512 -459
- package/dist/vue-ui-quick-chart-DKbxF5Yt.js +1762 -0
- package/dist/vue-ui-radar-BFY9bN_h.js +796 -0
- package/dist/{vue-ui-rating-C3QUdrMw.js → vue-ui-rating-Bh35aujf.js} +2 -2
- package/dist/vue-ui-relation-circle-B-05kQ_l.js +598 -0
- package/dist/vue-ui-ridgeline-CuGfF83t.js +1157 -0
- package/dist/vue-ui-rings-DrQXXzAM.js +728 -0
- package/dist/vue-ui-scatter-CWn9c7e9.js +1178 -0
- package/dist/{vue-ui-skeleton-P-1SRvsT.js → vue-ui-skeleton-oG4Bm5nL.js} +13 -13
- package/dist/{vue-ui-smiley-Cd1bhDuU.js → vue-ui-smiley-Cnwba_gV.js} +46 -46
- package/dist/vue-ui-spark-trend-D9iNCf4o.js +315 -0
- package/dist/vue-ui-sparkbar-iJkiubZC.js +351 -0
- package/dist/vue-ui-sparkgauge-BH3uA5rh.js +232 -0
- package/dist/vue-ui-sparkhistogram-B3kR62pf.js +380 -0
- package/dist/vue-ui-sparkline-DczR2ZAf.js +513 -0
- package/dist/vue-ui-sparkstackbar-Cg0ItRGH.js +421 -0
- package/dist/vue-ui-stackbar-d4PrzcGS.js +1371 -0
- package/dist/vue-ui-strip-plot-BXBpN5rl.js +916 -0
- package/dist/{vue-ui-table-B1tjuVi0.js → vue-ui-table-BXOLZXuz.js} +17 -17
- package/dist/{vue-ui-table-heatmap-BI8eIQG7.js → vue-ui-table-heatmap-7YT7VF2H.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CqBD7xhZ.js → vue-ui-table-sparkline-BfgqajJ2.js} +19 -16
- package/dist/vue-ui-thermometer-C7Tg6HLz.js +541 -0
- package/dist/{vue-ui-timer-sgO_Z6ja.js → vue-ui-timer-Ch5JP1pQ.js} +5 -5
- package/dist/vue-ui-tiremarks-fY-4pWAK.js +406 -0
- package/dist/vue-ui-treemap-DTSX6suB.js +1035 -0
- package/dist/{vue-ui-vertical-bar-BPay31_q.js → vue-ui-vertical-bar-C-i2dRnU.js} +107 -105
- package/dist/vue-ui-waffle-BbgLlhGH.js +910 -0
- package/dist/vue-ui-wheel-waZf462K.js +379 -0
- package/dist/vue-ui-word-cloud-DtLK91Dk.js +765 -0
- package/dist/{vue-ui-world-DWskeHfE.js → vue-ui-world-Cx4uuwTY.js} +364 -327
- package/dist/vue-ui-xy-DDOT8cyx.js +3808 -0
- package/dist/{vue-ui-xy-canvas-Dkmsguo1.js → vue-ui-xy-canvas-CUCsC8vD.js} +265 -264
- package/package.json +4 -4
- package/dist/RecursiveLabels-NTMB9w5C.js +0 -49
- package/dist/Slicer-O07lQwRC.js +0 -577
- package/dist/useLoading-Bt5Doa8m.js +0 -28
- package/dist/useNestedProp-Hh7nGEjp.js +0 -13
- package/dist/usePanZoom-BQMvRXEQ.js +0 -115
- package/dist/vue-ui-3d-bar-DWtJoryQ.js +0 -1227
- package/dist/vue-ui-age-pyramid-DbrA1G0r.js +0 -746
- package/dist/vue-ui-bullet-9IB3mGon.js +0 -513
- package/dist/vue-ui-candlestick-CWqPF_zW.js +0 -873
- package/dist/vue-ui-chord-Crd3l1b6.js +0 -949
- package/dist/vue-ui-circle-pack-CAm2gxBi.js +0 -673
- package/dist/vue-ui-donut-evolution-Djp_eBqw.js +0 -903
- package/dist/vue-ui-dumbbell-B7GySnYf.js +0 -753
- package/dist/vue-ui-flow-XDpZAYWI.js +0 -765
- package/dist/vue-ui-galaxy-DBQy21se.js +0 -617
- package/dist/vue-ui-gauge-FBZaUrBD.js +0 -738
- package/dist/vue-ui-gizmo-CDbPxUzE.js +0 -192
- package/dist/vue-ui-heatmap-DsDWxYOS.js +0 -877
- package/dist/vue-ui-history-plot-CzO1Z1FH.js +0 -924
- package/dist/vue-ui-molecule-Ddd3FgID.js +0 -597
- package/dist/vue-ui-mood-radar-24XAq8mg.js +0 -670
- package/dist/vue-ui-nested-donuts-DjWASp62.js +0 -1212
- package/dist/vue-ui-onion-B9thdF_c.js +0 -701
- package/dist/vue-ui-parallel-coordinate-plot-DT-GhOaA.js +0 -807
- package/dist/vue-ui-quick-chart-D0DukVN6.js +0 -1612
- package/dist/vue-ui-radar-DY8y6oRc.js +0 -741
- package/dist/vue-ui-relation-circle-8Gd7_fxt.js +0 -542
- package/dist/vue-ui-ridgeline-iPtG1McW.js +0 -969
- package/dist/vue-ui-rings-BXPo4MMo.js +0 -685
- package/dist/vue-ui-scatter-26d0eebx.js +0 -1045
- package/dist/vue-ui-spark-trend-Dt3ctzpl.js +0 -291
- package/dist/vue-ui-sparkbar-RrxErqrU.js +0 -301
- package/dist/vue-ui-sparkgauge-CyNi1b0O.js +0 -201
- package/dist/vue-ui-sparkhistogram-DPpZCPuE.js +0 -313
- package/dist/vue-ui-sparkline-BMjQ_uYx.js +0 -459
- package/dist/vue-ui-sparkstackbar-CjO8pfE-.js +0 -381
- package/dist/vue-ui-stackbar-wgyvMlE6.js +0 -1207
- package/dist/vue-ui-strip-plot-BF1o8lvY.js +0 -761
- package/dist/vue-ui-thermometer-CtuxuYVt.js +0 -495
- package/dist/vue-ui-tiremarks-DOwj4ZE-.js +0 -358
- package/dist/vue-ui-treemap-C4LtyFug.js +0 -965
- package/dist/vue-ui-waffle-D8mzGTeo.js +0 -863
- package/dist/vue-ui-wheel-C6uAotal.js +0 -352
- package/dist/vue-ui-word-cloud-Bge2211V.js +0 -659
- package/dist/vue-ui-xy-UzQacbnA.js +0 -2982
|
@@ -1,381 +0,0 @@
|
|
|
1
|
-
import { defineAsyncComponent as V, useSlots as pe, onMounted as G, computed as b, 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 D, withCtx as X, renderSlot as T, normalizeProps as J, guardReactiveProps as K } from "vue";
|
|
2
|
-
import { u as fe, c as Q, t as he, p as i, a as ye, d as F, b as me, o as be, e as Z, g as ke, f as U, X as _e, s as we, w as Ce, i as ee, x as xe } from "./index-Cfm5-hMQ.js";
|
|
3
|
-
import { u as te } from "./useNestedProp-Hh7nGEjp.js";
|
|
4
|
-
import { u as $e } from "./useChartAccessibility-9icAAmYg.js";
|
|
5
|
-
import { _ as Se } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
-
const Pe = ["xmlns", "viewBox"], ze = ["id"], Ae = ["stop-color"], De = ["stop-color"], Fe = ["stop-color"], Ne = {
|
|
7
|
-
id: "stackPill",
|
|
8
|
-
clipPathUnits: "objectBoundingBox"
|
|
9
|
-
}, Le = ["fill"], Be = {
|
|
10
|
-
key: 0,
|
|
11
|
-
"clip-path": "url(#stackPill)"
|
|
12
|
-
}, Oe = ["x", "width", "height", "fill"], Ve = ["x", "width", "height", "fill", "stroke"], Te = ["onClick", "x", "width", "height", "onMouseenter"], Ue = ["width", "height", "rx"], je = ["onClick"], Ee = { style: { display: "flex", "flex-direction": "row", "align-items": "center", gap: "4px", "justify-content": "center" } }, Me = ["height", "width"], Re = ["fill"], Ie = {
|
|
13
|
-
key: 4,
|
|
14
|
-
ref: "source",
|
|
15
|
-
dir: "auto"
|
|
16
|
-
}, We = {
|
|
17
|
-
__name: "vue-ui-sparkstackbar",
|
|
18
|
-
props: {
|
|
19
|
-
config: {
|
|
20
|
-
type: Object,
|
|
21
|
-
default() {
|
|
22
|
-
return {};
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
dataset: {
|
|
26
|
-
type: Array,
|
|
27
|
-
default() {
|
|
28
|
-
return [];
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
emits: ["selectDatapoint"],
|
|
33
|
-
setup(le, { emit: oe }) {
|
|
34
|
-
const ae = V(() => import("./PackageVersion-CGQlqnmq.js")), se = V(() => import("./vue-ui-skeleton-P-1SRvsT.js")), re = V(() => import("./Tooltip-lPcsweXz.js")), { vue_ui_sparkstackbar: ne } = fe(), u = le, ue = pe();
|
|
35
|
-
G(() => {
|
|
36
|
-
ue["chart-background"] && console.warn("VueUiSparkStackbar does not support the #chart-background slot.");
|
|
37
|
-
});
|
|
38
|
-
const j = b(() => !!u.dataset && u.dataset.length), E = d(null), M = d(Q()), N = d(!1), L = d(""), e = b({
|
|
39
|
-
get: () => R(),
|
|
40
|
-
set: (t) => t
|
|
41
|
-
}), { svgRef: ie } = $e({ config: e.value.style.title });
|
|
42
|
-
function R() {
|
|
43
|
-
const t = te({
|
|
44
|
-
userConfig: u.config,
|
|
45
|
-
defaultConfig: ne
|
|
46
|
-
});
|
|
47
|
-
return t.theme ? {
|
|
48
|
-
...te({
|
|
49
|
-
userConfig: ye.vue_ui_sparkstackbar[t.theme] || u.config,
|
|
50
|
-
defaultConfig: t
|
|
51
|
-
}),
|
|
52
|
-
customPalette: he[t.theme] || i
|
|
53
|
-
} : t;
|
|
54
|
-
}
|
|
55
|
-
q(() => u.config, (t) => {
|
|
56
|
-
e.value = R(), I();
|
|
57
|
-
}, { deep: !0 }), q(() => u.dataset, (t) => {
|
|
58
|
-
k.value = u.dataset.map((a, l) => ({
|
|
59
|
-
...a,
|
|
60
|
-
color: a.color ? F(a.color) : S.value[l] || i[l] || i[l % i.length]
|
|
61
|
-
}));
|
|
62
|
-
}, { deep: !0 });
|
|
63
|
-
const S = b(() => me(e.value.customPalette)), k = d(u.dataset.map((t, a) => ({
|
|
64
|
-
...t,
|
|
65
|
-
value: e.value.style.animation.show ? 0 : t.value || 0,
|
|
66
|
-
color: t.color ? F(t.color) : S.value[a] || i[a] || i[a % i.length]
|
|
67
|
-
}))), w = d(!0);
|
|
68
|
-
G(() => {
|
|
69
|
-
if (I(), e.value.style.animation.show) {
|
|
70
|
-
let h = function() {
|
|
71
|
-
o += l / t, o < l ? (k.value = k.value.map((n, c) => ({
|
|
72
|
-
...n,
|
|
73
|
-
value: n.value += a[c],
|
|
74
|
-
color: n.color ? F(n.color) : S.value[c] || i[c] || i[c % i.length]
|
|
75
|
-
})), requestAnimationFrame(h)) : (w.value = !1, k.value = u.dataset.map((n, c) => ({
|
|
76
|
-
...n,
|
|
77
|
-
value: n.value || 0,
|
|
78
|
-
color: n.color ? F(n.color) : S.value[c] || i[c] || i[c % i.length],
|
|
79
|
-
id: Q()
|
|
80
|
-
})));
|
|
81
|
-
};
|
|
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
|
-
let o = 0;
|
|
84
|
-
w.value = !0, h();
|
|
85
|
-
}
|
|
86
|
-
});
|
|
87
|
-
function I() {
|
|
88
|
-
be(u.dataset) ? Z({
|
|
89
|
-
componentName: "VueUiSparkStackbar",
|
|
90
|
-
type: "dataset"
|
|
91
|
-
}) : u.dataset.forEach((t, a) => {
|
|
92
|
-
ke({
|
|
93
|
-
datasetObject: t,
|
|
94
|
-
requiredAttributes: ["name", "value"]
|
|
95
|
-
}).forEach((l) => {
|
|
96
|
-
Z({
|
|
97
|
-
componentName: "VueUiSparkStackbar",
|
|
98
|
-
type: "datasetSerieAttribute",
|
|
99
|
-
property: l,
|
|
100
|
-
index: a
|
|
101
|
-
});
|
|
102
|
-
});
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
const g = d({
|
|
106
|
-
width: 500,
|
|
107
|
-
height: 16
|
|
108
|
-
}), f = d([]), W = b(() => u.dataset.map((t) => t.value || 0).filter((t, a) => !f.value.includes(a)).reduce((t, a) => t + a, 0)), P = b(() => k.value.map((t, a) => {
|
|
109
|
-
const l = t.value || 0, o = l / W.value, h = isNaN(o) ? 0 : o, n = h * g.value.width;
|
|
110
|
-
return {
|
|
111
|
-
...t,
|
|
112
|
-
value: l,
|
|
113
|
-
proportion: h,
|
|
114
|
-
width: n,
|
|
115
|
-
proportionLabel: U({
|
|
116
|
-
v: h * 100,
|
|
117
|
-
s: "%",
|
|
118
|
-
r: e.value.style.legend.percentage.rounding
|
|
119
|
-
})
|
|
120
|
-
};
|
|
121
|
-
})), B = b(() => P.value.filter((t, a) => !f.value.includes(a)));
|
|
122
|
-
function ce(t) {
|
|
123
|
-
f.value.includes(t) ? f.value = f.value.filter((a) => a !== t) : f.value.length < k.value.length - 1 && f.value.push(t);
|
|
124
|
-
}
|
|
125
|
-
const z = b(() => {
|
|
126
|
-
let t = 0;
|
|
127
|
-
const a = [];
|
|
128
|
-
for (let l = 0; l < B.value.length; l += 1)
|
|
129
|
-
a.push({
|
|
130
|
-
...B.value[l],
|
|
131
|
-
start: t
|
|
132
|
-
}), t += B.value[l].width;
|
|
133
|
-
return a;
|
|
134
|
-
}), de = oe;
|
|
135
|
-
function Y(t, a) {
|
|
136
|
-
de("selectDatapoint", { datapoint: t, index: a });
|
|
137
|
-
}
|
|
138
|
-
const O = d(null), A = d(!1), _ = d(null);
|
|
139
|
-
function ve({ datapoint: t, seriesIndex: a }) {
|
|
140
|
-
if (!e.value.style.tooltip.show)
|
|
141
|
-
return;
|
|
142
|
-
O.value = { datapoint: t, seriesIndex: a, config: e.value, series: P.value }, N.value = !0, _.value = a;
|
|
143
|
-
const l = e.value.style.tooltip.customFormat;
|
|
144
|
-
if (xe(l))
|
|
145
|
-
try {
|
|
146
|
-
const o = l({
|
|
147
|
-
seriesIndex: a,
|
|
148
|
-
datapoint: t,
|
|
149
|
-
series: P.value,
|
|
150
|
-
config: e.value
|
|
151
|
-
});
|
|
152
|
-
typeof o == "string" && (L.value = o, A.value = !0);
|
|
153
|
-
} catch {
|
|
154
|
-
console.warn("Custom format cannot be applied."), A.value = !1;
|
|
155
|
-
}
|
|
156
|
-
if (!A.value) {
|
|
157
|
-
let o = "";
|
|
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
|
-
e.value.style.legend.value.formatter,
|
|
160
|
-
t.value,
|
|
161
|
-
U({
|
|
162
|
-
p: e.value.style.legend.value.prefix,
|
|
163
|
-
v: t.value,
|
|
164
|
-
s: e.value.style.legend.value.suffix,
|
|
165
|
-
r: e.value.style.legend.value.rounding
|
|
166
|
-
}),
|
|
167
|
-
{
|
|
168
|
-
datapoint: t,
|
|
169
|
-
seriesIndex: a
|
|
170
|
-
}
|
|
171
|
-
)})</span>`, L.value = `<div>${o}</div>`;
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
return (t, a) => (s(), r("div", {
|
|
175
|
-
class: "vue-ui-spark-stackbar",
|
|
176
|
-
ref_key: "sparkstackbarChart",
|
|
177
|
-
ref: E,
|
|
178
|
-
style: v(`width:100%; background:${e.value.style.backgroundColor}`)
|
|
179
|
-
}, [
|
|
180
|
-
e.value.style.title.text ? (s(), r("div", {
|
|
181
|
-
key: 0,
|
|
182
|
-
style: v(`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}`)
|
|
183
|
-
}, [
|
|
184
|
-
p("div", {
|
|
185
|
-
class: "atom-title",
|
|
186
|
-
style: v(`font-size:${e.value.style.title.fontSize}px;color:${e.value.style.title.color};font-weight:${e.value.style.title.bold ? "bold" : "normal"}`)
|
|
187
|
-
}, C(e.value.style.title.text), 5),
|
|
188
|
-
e.value.style.title.subtitle.text ? (s(), r("div", {
|
|
189
|
-
key: 0,
|
|
190
|
-
class: "atom-subtitle",
|
|
191
|
-
style: v(`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"}`)
|
|
192
|
-
}, C(e.value.style.title.subtitle.text), 5)) : y("", !0)
|
|
193
|
-
], 4)) : y("", !0),
|
|
194
|
-
j.value ? (s(), r("svg", {
|
|
195
|
-
key: 1,
|
|
196
|
-
ref_key: "svgRef",
|
|
197
|
-
ref: ie,
|
|
198
|
-
xmlns: m(_e),
|
|
199
|
-
width: "100%",
|
|
200
|
-
viewBox: `0 0 ${g.value.width} ${g.value.height}`
|
|
201
|
-
}, [
|
|
202
|
-
H(m(ae)),
|
|
203
|
-
p("defs", null, [
|
|
204
|
-
(s(!0), r(x, null, $(z.value, (l, o) => (s(), r("linearGradient", {
|
|
205
|
-
key: `stack_gradient_${o}`,
|
|
206
|
-
gradientTransform: "rotate(90)",
|
|
207
|
-
id: `stack_gradient_${o}_${M.value}`
|
|
208
|
-
}, [
|
|
209
|
-
p("stop", {
|
|
210
|
-
offset: "0%",
|
|
211
|
-
"stop-color": l.color
|
|
212
|
-
}, null, 8, Ae),
|
|
213
|
-
p("stop", {
|
|
214
|
-
offset: "50%",
|
|
215
|
-
"stop-color": m(we)(m(Ce)(l.color, 0.05), 100 - e.value.style.bar.gradient.intensity)
|
|
216
|
-
}, null, 8, De),
|
|
217
|
-
p("stop", {
|
|
218
|
-
offset: "100%",
|
|
219
|
-
"stop-color": l.color
|
|
220
|
-
}, null, 8, Fe)
|
|
221
|
-
], 8, ze))), 128)),
|
|
222
|
-
p("clipPath", Ne, [
|
|
223
|
-
p("rect", {
|
|
224
|
-
x: "0.005",
|
|
225
|
-
y: "-2",
|
|
226
|
-
width: "0.99",
|
|
227
|
-
height: "5",
|
|
228
|
-
rx: "3",
|
|
229
|
-
ry: "3",
|
|
230
|
-
fill: e.value.style.backgroundColor
|
|
231
|
-
}, null, 8, Le)
|
|
232
|
-
])
|
|
233
|
-
]),
|
|
234
|
-
W.value > 0 ? (s(), r("g", Be, [
|
|
235
|
-
(s(!0), r(x, null, $(z.value, (l, o) => (s(), r("rect", {
|
|
236
|
-
key: `stack_underlayer_${o}`,
|
|
237
|
-
x: l.start,
|
|
238
|
-
y: 0,
|
|
239
|
-
width: l.width,
|
|
240
|
-
height: g.value.height,
|
|
241
|
-
fill: e.value.style.bar.gradient.underlayerColor,
|
|
242
|
-
class: D({ animated: !w.value }),
|
|
243
|
-
style: v({
|
|
244
|
-
opacity: _.value !== null && e.value.style.tooltip.show ? _.value === o ? 1 : 0.5 : 1
|
|
245
|
-
})
|
|
246
|
-
}, null, 14, Oe))), 128)),
|
|
247
|
-
(s(!0), r(x, null, $(z.value, (l, o) => (s(), r("rect", {
|
|
248
|
-
key: `stack_${o}`,
|
|
249
|
-
x: l.start,
|
|
250
|
-
y: 0,
|
|
251
|
-
width: l.width,
|
|
252
|
-
height: g.value.height,
|
|
253
|
-
fill: e.value.style.bar.gradient.show ? `url(#stack_gradient_${o}_${M.value})` : l.color,
|
|
254
|
-
stroke: e.value.style.backgroundColor,
|
|
255
|
-
"stroke-linecap": "round",
|
|
256
|
-
class: D({ animated: !w.value }),
|
|
257
|
-
style: v({
|
|
258
|
-
opacity: _.value !== null && e.value.style.tooltip.show ? _.value === o ? 1 : 0.5 : 1
|
|
259
|
-
})
|
|
260
|
-
}, null, 14, Ve))), 128)),
|
|
261
|
-
(s(!0), r(x, null, $(z.value, (l, o) => (s(), r("rect", {
|
|
262
|
-
key: `stack_trap_${o}`,
|
|
263
|
-
onClick: () => Y(l, o),
|
|
264
|
-
x: l.start,
|
|
265
|
-
y: 0,
|
|
266
|
-
width: l.width,
|
|
267
|
-
height: g.value.height,
|
|
268
|
-
fill: "transparent",
|
|
269
|
-
stroke: "none",
|
|
270
|
-
class: D({ animated: !w.value }),
|
|
271
|
-
onMouseenter: () => ve({ datapoint: l, seriesIndex: o }),
|
|
272
|
-
onMouseleave: a[0] || (a[0] = (h) => {
|
|
273
|
-
N.value = !1, _.value = null;
|
|
274
|
-
})
|
|
275
|
-
}, null, 42, Te))), 128))
|
|
276
|
-
])) : (s(), r("rect", {
|
|
277
|
-
key: 1,
|
|
278
|
-
x: 2,
|
|
279
|
-
y: 1,
|
|
280
|
-
width: g.value.width - 4,
|
|
281
|
-
height: g.value.height - 2,
|
|
282
|
-
stroke: "#CCCCCC",
|
|
283
|
-
"stroke-width": "2",
|
|
284
|
-
fill: "transparent",
|
|
285
|
-
rx: (g.value.height - 4) / 2
|
|
286
|
-
}, null, 8, Ue))
|
|
287
|
-
], 8, Pe)) : y("", !0),
|
|
288
|
-
j.value ? y("", !0) : (s(), ge(m(se), {
|
|
289
|
-
key: 2,
|
|
290
|
-
config: {
|
|
291
|
-
type: "sparkStackbar",
|
|
292
|
-
style: {
|
|
293
|
-
backgroundColor: e.value.style.backgroundColor,
|
|
294
|
-
sparkStackbar: {
|
|
295
|
-
color: "#CCCCCC"
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
}, null, 8, ["config"])),
|
|
300
|
-
e.value.style.legend.show ? (s(), r("div", {
|
|
301
|
-
key: 3,
|
|
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
|
-
class: "vue-ui-sparkstackbar-legend"
|
|
304
|
-
}, [
|
|
305
|
-
(s(!0), r(x, null, $(P.value, (l, o) => (s(), r("div", {
|
|
306
|
-
style: v(`font-size:${e.value.style.legend.fontSize}px;`),
|
|
307
|
-
class: D({ "vue-ui-sparkstackbar-legend-item": !0, "vue-ui-sparkstackbar-legend-item-unselected": f.value.includes(o) }),
|
|
308
|
-
onClick: (h) => {
|
|
309
|
-
ce(o), Y(l, o);
|
|
310
|
-
}
|
|
311
|
-
}, [
|
|
312
|
-
p("div", Ee, [
|
|
313
|
-
(s(), r("svg", {
|
|
314
|
-
height: `${e.value.style.legend.fontSize}px`,
|
|
315
|
-
width: `${e.value.style.legend.fontSize}px`,
|
|
316
|
-
viewBox: "0 0 10 10"
|
|
317
|
-
}, [
|
|
318
|
-
p("circle", {
|
|
319
|
-
cx: 5,
|
|
320
|
-
cy: 5,
|
|
321
|
-
r: 5,
|
|
322
|
-
fill: l.color
|
|
323
|
-
}, null, 8, Re)
|
|
324
|
-
], 8, Me)),
|
|
325
|
-
p("span", {
|
|
326
|
-
style: v(`color:${e.value.style.legend.name.color}; font-weight:${e.value.style.legend.name.bold ? "bold" : "normal"}`)
|
|
327
|
-
}, C(l.name), 5),
|
|
328
|
-
e.value.style.legend.percentage.show ? (s(), r("span", {
|
|
329
|
-
key: 0,
|
|
330
|
-
style: v(`font-weight:${e.value.style.legend.percentage.bold ? "bold" : "normal"};color:${e.value.style.legend.percentage.color}`)
|
|
331
|
-
}, C(f.value.includes(o) ? " - " : l.proportionLabel), 5)) : y("", !0),
|
|
332
|
-
e.value.style.legend.value.show ? (s(), r("span", {
|
|
333
|
-
key: 1,
|
|
334
|
-
style: v(`font-weight:${e.value.style.legend.value.bold ? "bold" : "normal"};color:${e.value.style.legend.value.color}`)
|
|
335
|
-
}, " (" + C(m(ee)(
|
|
336
|
-
e.value.style.legend.value.formatter,
|
|
337
|
-
l.value,
|
|
338
|
-
m(U)({
|
|
339
|
-
p: e.value.style.legend.value.prefix,
|
|
340
|
-
v: l.value,
|
|
341
|
-
s: e.value.style.legend.value.suffix,
|
|
342
|
-
r: e.value.style.legend.value.rounding
|
|
343
|
-
}),
|
|
344
|
-
{ datapoint: l, seriesIndex: o }
|
|
345
|
-
)) + ") ", 5)) : y("", !0)
|
|
346
|
-
])
|
|
347
|
-
], 14, je))), 256))
|
|
348
|
-
], 4)) : y("", !0),
|
|
349
|
-
H(m(re), {
|
|
350
|
-
show: N.value && e.value.style.tooltip.show,
|
|
351
|
-
parent: E.value,
|
|
352
|
-
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
353
|
-
color: e.value.style.tooltip.color,
|
|
354
|
-
fontSize: e.value.style.tooltip.fontSize,
|
|
355
|
-
borderRadius: e.value.style.tooltip.borderRadius,
|
|
356
|
-
borderColor: e.value.style.tooltip.borderColor,
|
|
357
|
-
borderWidth: e.value.style.tooltip.borderWidth,
|
|
358
|
-
backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
|
|
359
|
-
position: e.value.style.tooltip.position,
|
|
360
|
-
content: L.value,
|
|
361
|
-
isCustom: A.value,
|
|
362
|
-
offsetY: -124 + e.value.style.tooltip.offsetY,
|
|
363
|
-
blockShiftY: !0
|
|
364
|
-
}, {
|
|
365
|
-
"tooltip-before": X(() => [
|
|
366
|
-
T(t.$slots, "tooltip-before", J(K({ ...O.value })), void 0, !0)
|
|
367
|
-
]),
|
|
368
|
-
"tooltip-after": X(() => [
|
|
369
|
-
T(t.$slots, "tooltip-after", J(K({ ...O.value })), void 0, !0)
|
|
370
|
-
]),
|
|
371
|
-
_: 3
|
|
372
|
-
}, 8, ["show", "parent", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "content", "isCustom", "offsetY"]),
|
|
373
|
-
t.$slots.source ? (s(), r("div", Ie, [
|
|
374
|
-
T(t.$slots, "source", {}, void 0, !0)
|
|
375
|
-
], 512)) : y("", !0)
|
|
376
|
-
], 4));
|
|
377
|
-
}
|
|
378
|
-
}, Je = /* @__PURE__ */ Se(We, [["__scopeId", "data-v-bd91b3ec"]]);
|
|
379
|
-
export {
|
|
380
|
-
Je as default
|
|
381
|
-
};
|