vue-data-ui 3.0.0-next.6 → 3.0.0-next.60
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-Ul64M9UV.js → Arrow-Dt0ZxTK2.js} +1 -1
- package/dist/{BaseDraggableDialog-Q2ajCztp.js → BaseDraggableDialog-Bl-2tw3H.js} +2 -2
- package/dist/{BaseIcon-BKR7AGeP.js → BaseIcon-C3ljqn8J.js} +1 -1
- package/dist/{ColorPicker-BagIs8-K.js → ColorPicker-0d0whOB3.js} +2 -2
- package/dist/{DataTable-CDwApkI_.js → DataTable-C_tJHvMd.js} +2 -2
- package/dist/{Legend-BSLj7tYc.js → Legend-VD0VB7l7.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DjJe5fXu.js → NonSvgPenAndPaper-DQsHc_AG.js} +3 -3
- package/dist/{PackageVersion-BsKpz6KS.js → PackageVersion-5S8ajCUS.js} +1 -1
- package/dist/{PenAndPaper-BYRk8xrS.js → PenAndPaper-D6wazxlT.js} +3 -3
- package/dist/{Shape-DK7zYTKa.js → Shape-DDSX29LV.js} +43 -37
- package/dist/Slicer-D3SbIarX.js +602 -0
- package/dist/{SparkTooltip-Dy2sVTb_.js → SparkTooltip-BCdP3VDl.js} +1 -1
- package/dist/{Title-Cednydse.js → Title-DEKAfzRX.js} +1 -1
- package/dist/{Tooltip-DJlwW-XP.js → Tooltip-DJlC-n25.js} +23 -19
- package/dist/{UserOptions-DxIzWere.js → UserOptions-D2G7II3G.js} +2 -2
- package/dist/{dom-to-png-lZcM-YfK.js → dom-to-png-Y0tASTWQ.js} +1 -1
- package/dist/{img-DqlIAUF6.js → img-ChLGv8nO.js} +1 -1
- package/dist/{index-BQcLOx39.js → index-BLtc1AIS.js} +1707 -1131
- package/dist/{pdf-CjIXhsyg.js → pdf-DNiq-xsc.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +481 -21
- package/dist/types/vue-data-ui.d.ts +481 -21
- package/dist/useAutoSizeLabelsInsideViewbox-BJDcwsoB.js +41 -0
- package/dist/useNestedProp-DExlTpuj.js +13 -0
- package/dist/usePanZoom-BVca3eMk.js +122 -0
- package/dist/{usePrinter-BRY5saEA.js → usePrinter-fqbzwh0l.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-CWRlSsiN.js → vue-data-ui-B8bRwUEL.js} +105 -100
- package/dist/vue-data-ui.js +23 -22
- package/dist/vue-ui-3d-bar-Dddx5kJW.js +1323 -0
- package/dist/{vue-ui-accordion-Df-5BRRg.js → vue-ui-accordion-EMAj3Ykx.js} +3 -3
- package/dist/vue-ui-age-pyramid-CMzKOGfv.js +834 -0
- package/dist/{vue-ui-annotator-BxC5dcIv.js → vue-ui-annotator-BQxXVdZW.js} +2 -2
- package/dist/vue-ui-bullet-DIie_6-T.js +571 -0
- package/dist/vue-ui-candlestick-DU796IGE.js +999 -0
- package/dist/{vue-ui-carousel-table-NTDzafWQ.js → vue-ui-carousel-table-xDItqzuw.js} +29 -29
- package/dist/{vue-ui-chestnut-k21Qqjjq.js → vue-ui-chestnut-DnQ494SU.js} +5 -5
- package/dist/{vue-ui-chord-BVoA6nfI.js → vue-ui-chord-DTs9gQ-R.js} +8 -8
- package/dist/{vue-ui-circle-pack-CEBgImRX.js → vue-ui-circle-pack-D73gxFJW.js} +24 -24
- package/dist/{vue-ui-cursor-BQcz8xw2.js → vue-ui-cursor-CNXTFeSs.js} +2 -2
- package/dist/{vue-ui-dashboard-CyzEpJoI.js → vue-ui-dashboard-Duph5Yta.js} +62 -62
- package/dist/{vue-ui-digits-Dafw1UsT.js → vue-ui-digits-D7qOSGZ-.js} +2 -2
- package/dist/{vue-ui-donut-DKfux8XT.js → vue-ui-donut-EfxITdHJ.js} +320 -308
- package/dist/vue-ui-donut-evolution-H6nfW_kx.js +1075 -0
- package/dist/vue-ui-dumbbell-DCUR8kl_.js +1119 -0
- package/dist/vue-ui-flow-DUENWmgc.js +841 -0
- package/dist/{vue-ui-funnel-CuN8HWwP.js → vue-ui-funnel-BSGUxWhW.js} +16 -16
- package/dist/{vue-ui-galaxy-BHCLFlmy.js → vue-ui-galaxy-D8PBQfbb.js} +60 -58
- package/dist/vue-ui-gauge-C8v8wKJO.js +791 -0
- package/dist/{vue-ui-gizmo-DHEEfdp9.js → vue-ui-gizmo-DmguslRh.js} +3 -3
- package/dist/vue-ui-heatmap-BM5Gfdzz.js +1078 -0
- package/dist/vue-ui-history-plot-CF6SlpwK.js +1073 -0
- package/dist/{vue-ui-kpi-C4i2w_Yd.js → vue-ui-kpi-BCyX-Zu-.js} +7 -7
- package/dist/{vue-ui-mini-loader-BeetGv_m.js → vue-ui-mini-loader-ByMff4PK.js} +2 -2
- package/dist/{vue-ui-molecule-F_gDXjJr.js → vue-ui-molecule-Cxnf2xDy.js} +53 -51
- package/dist/{vue-ui-mood-radar-BJMOEqlu.js → vue-ui-mood-radar-DEfJWXE7.js} +15 -15
- package/dist/vue-ui-nested-donuts-Bt7Pw9l0.js +1286 -0
- package/dist/vue-ui-onion-Bk3KL1Nk.js +776 -0
- package/dist/vue-ui-parallel-coordinate-plot-BpKRlOYy.js +915 -0
- package/dist/{vue-ui-quadrant-DTyRC1_v.js → vue-ui-quadrant-D1dgOAp2.js} +59 -57
- package/dist/vue-ui-quick-chart-_I6OrH-J.js +1761 -0
- package/dist/{vue-ui-radar-De2iznwo.js → vue-ui-radar-BWnhxayf.js} +30 -28
- package/dist/{vue-ui-rating-CarXXyD-.js → vue-ui-rating-I08lL1Nb.js} +2 -2
- package/dist/{vue-ui-relation-circle-CKkK9D4E.js → vue-ui-relation-circle-CMF5FSha.js} +6 -6
- package/dist/vue-ui-ridgeline-prYrXNYF.js +1153 -0
- package/dist/vue-ui-rings-DmbUIw9S.js +728 -0
- package/dist/vue-ui-scatter-srTVLcUK.js +1178 -0
- package/dist/{vue-ui-skeleton-C7maR60-.js → vue-ui-skeleton-FanSnKr8.js} +3 -3
- package/dist/{vue-ui-smiley-DzCCn5Oc.js → vue-ui-smiley-CWA0Y6wM.js} +26 -26
- package/dist/{vue-ui-spark-trend-Db-Fnp8C.js → vue-ui-spark-trend-EiEzMoPj.js} +3 -3
- package/dist/vue-ui-sparkbar-CCe0U_o0.js +351 -0
- package/dist/{vue-ui-sparkgauge-DAQ4zozy.js → vue-ui-sparkgauge-Cdcirik_.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-CMEaO0CW.js → vue-ui-sparkhistogram-CEj9qz9m.js} +4 -4
- package/dist/vue-ui-sparkline-B2-YztKx.js +489 -0
- package/dist/vue-ui-sparkstackbar-BGMtc_HC.js +421 -0
- package/dist/vue-ui-stackbar-DrKaioRS.js +1370 -0
- package/dist/vue-ui-strip-plot-C4qWoDEh.js +915 -0
- package/dist/{vue-ui-table-Dck8Pyg9.js → vue-ui-table-CXqyTj_Z.js} +11 -11
- package/dist/{vue-ui-table-heatmap-DknIGf9_.js → vue-ui-table-heatmap-BZTn3qnM.js} +5 -5
- package/dist/{vue-ui-table-sparkline-G4HAzUt6.js → vue-ui-table-sparkline-CIBdN_KF.js} +14 -14
- package/dist/vue-ui-thermometer-DPIpWKUI.js +541 -0
- package/dist/{vue-ui-timer-Dmr-HCSc.js → vue-ui-timer-Cha-Gb1x.js} +5 -5
- package/dist/vue-ui-tiremarks-B4SjQyS7.js +406 -0
- package/dist/vue-ui-treemap-1twI_ag-.js +1035 -0
- package/dist/{vue-ui-vertical-bar--QFtoFje.js → vue-ui-vertical-bar-C31Jqkbw.js} +318 -302
- package/dist/vue-ui-waffle-DkZykFPK.js +910 -0
- package/dist/vue-ui-wheel-CYOrBHBD.js +379 -0
- package/dist/vue-ui-word-cloud-Clyg0CRZ.js +765 -0
- package/dist/{vue-ui-world-BcK_brDq.js → vue-ui-world-BYgMbS-e.js} +11 -9
- package/dist/vue-ui-xy-BMszd4wZ.js +3760 -0
- package/dist/{vue-ui-xy-canvas--88oKdGN.js → vue-ui-xy-canvas-DwXvZ311.js} +265 -264
- package/package.json +1 -1
- package/dist/Slicer-B_Hb6qSk.js +0 -577
- package/dist/useNestedProp-DefBVltl.js +0 -13
- package/dist/usePanZoom-BQMvRXEQ.js +0 -115
- package/dist/vue-ui-3d-bar-CJMZqDo1.js +0 -1227
- package/dist/vue-ui-age-pyramid-B6WAMtPk.js +0 -746
- package/dist/vue-ui-bullet-NmtltFbU.js +0 -513
- package/dist/vue-ui-candlestick-BzqQtynP.js +0 -873
- package/dist/vue-ui-donut-evolution-D7cNk_6l.js +0 -903
- package/dist/vue-ui-dumbbell--H80zebk.js +0 -753
- package/dist/vue-ui-flow-lk_HU5NB.js +0 -765
- package/dist/vue-ui-gauge-DWlCh2_B.js +0 -738
- package/dist/vue-ui-heatmap-BK6BNOY_.js +0 -877
- package/dist/vue-ui-history-plot-CGF6lE-7.js +0 -924
- package/dist/vue-ui-nested-donuts-BX0Z0rb1.js +0 -1177
- package/dist/vue-ui-onion-BhjUET_W.js +0 -701
- package/dist/vue-ui-parallel-coordinate-plot-n7QPVLrW.js +0 -807
- package/dist/vue-ui-quick-chart-5xX-yBIY.js +0 -1612
- package/dist/vue-ui-ridgeline-DQ8RQf3E.js +0 -969
- package/dist/vue-ui-rings-Cze6OsmO.js +0 -685
- package/dist/vue-ui-scatter-CwI3_Dn7.js +0 -1045
- package/dist/vue-ui-sparkbar-C6wsNMMO.js +0 -301
- package/dist/vue-ui-sparkline-R7pfxRWN.js +0 -459
- package/dist/vue-ui-sparkstackbar-DV_XqJQ2.js +0 -381
- package/dist/vue-ui-stackbar-gReSujA_.js +0 -1207
- package/dist/vue-ui-strip-plot-8fsm3nn2.js +0 -761
- package/dist/vue-ui-thermometer-BIkXa4hY.js +0 -495
- package/dist/vue-ui-tiremarks-YWbRk0dm.js +0 -358
- package/dist/vue-ui-treemap-D2OnG3Fh.js +0 -965
- package/dist/vue-ui-waffle-BdaCXuWc.js +0 -863
- package/dist/vue-ui-wheel-Bw3XSa8N.js +0 -352
- package/dist/vue-ui-word-cloud-BH8UZH_J.js +0 -659
- package/dist/vue-ui-xy-Be--zwe9.js +0 -2980
|
@@ -1,301 +0,0 @@
|
|
|
1
|
-
import { defineAsyncComponent as V, useSlots as R, onMounted as z, computed as g, ref as k, watch as L, nextTick as Y, createElementBlock as c, openBlock as u, normalizeStyle as p, unref as o, renderSlot as _, createCommentVNode as v, createBlock as Z, normalizeProps as ee, mergeProps as O, createElementVNode as d, toDisplayString as f, Fragment as T, renderList as te, createVNode as le } from "vue";
|
|
2
|
-
import { u as ae, c as oe, t as se, p as x, a as ne, b as ue, o as re, e as E, g as ie, d as ce, s as $, i as b, f as w, X as ve, w as de } from "./index-BQcLOx39.js";
|
|
3
|
-
import { u as B } from "./useNestedProp-DefBVltl.js";
|
|
4
|
-
const pe = ["onClick"], fe = { key: 1 }, ye = ["xmlns", "viewBox"], me = ["id"], ge = ["stop-color"], he = ["stop-color"], ke = ["height", "width", "fill", "rx"], xe = ["height", "width", "fill", "rx"], be = ["height", "width", "fill", "rx"], we = {
|
|
5
|
-
key: 2,
|
|
6
|
-
ref: "source",
|
|
7
|
-
dir: "auto"
|
|
8
|
-
}, Se = {
|
|
9
|
-
__name: "vue-ui-sparkbar",
|
|
10
|
-
props: {
|
|
11
|
-
config: {
|
|
12
|
-
type: Object,
|
|
13
|
-
default() {
|
|
14
|
-
return {};
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
dataset: {
|
|
18
|
-
type: Array,
|
|
19
|
-
default() {
|
|
20
|
-
return [];
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
/**
|
|
24
|
-
* Used in VueUiRadar's tooltip exclusively
|
|
25
|
-
*/
|
|
26
|
-
backgroundOpacity: {
|
|
27
|
-
type: Number,
|
|
28
|
-
default: null
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
emits: ["selectDatapoint"],
|
|
32
|
-
setup(C, { emit: M }) {
|
|
33
|
-
const U = V(() => import("./PackageVersion-BsKpz6KS.js")), j = V(() => import("./vue-ui-skeleton-C7maR60-.js")), { vue_ui_sparkbar: G } = ae(), a = C, W = R();
|
|
34
|
-
z(() => {
|
|
35
|
-
W["chart-background"] && console.warn("VueUiSparkbar does not support the #chart-background slot.");
|
|
36
|
-
});
|
|
37
|
-
const S = g(() => !!a.dataset && a.dataset.length), A = k(oe()), e = g({
|
|
38
|
-
get: () => N(),
|
|
39
|
-
set: (t) => t
|
|
40
|
-
});
|
|
41
|
-
function N() {
|
|
42
|
-
const t = B({
|
|
43
|
-
userConfig: a.config,
|
|
44
|
-
defaultConfig: G
|
|
45
|
-
});
|
|
46
|
-
return t.theme ? {
|
|
47
|
-
...B({
|
|
48
|
-
userConfig: ne.vue_ui_sparkbar[t.theme] || a.config,
|
|
49
|
-
defaultConfig: t
|
|
50
|
-
}),
|
|
51
|
-
customPalette: se[t.theme] || x
|
|
52
|
-
} : t;
|
|
53
|
-
}
|
|
54
|
-
L(() => a.config, (t) => {
|
|
55
|
-
e.value = N();
|
|
56
|
-
}, { deep: !0 });
|
|
57
|
-
const q = g(() => ue(e.value.customPalette)), y = k(a.dataset.map((t) => ({
|
|
58
|
-
...t,
|
|
59
|
-
value: e.value.style.animation.show ? 0 : t.value || 0,
|
|
60
|
-
formatter: t.formatter || null
|
|
61
|
-
}))), D = k(null);
|
|
62
|
-
z(async () => {
|
|
63
|
-
re(a.dataset) && E({
|
|
64
|
-
componentName: "VueUiSparkbar",
|
|
65
|
-
type: "dataset"
|
|
66
|
-
}), F();
|
|
67
|
-
});
|
|
68
|
-
function F() {
|
|
69
|
-
if (e.value.style.animation.show) {
|
|
70
|
-
let P = function() {
|
|
71
|
-
i += l / t, i < l ? (y.value = y.value.map((n, h) => ({
|
|
72
|
-
...n,
|
|
73
|
-
value: n.value += s[h]
|
|
74
|
-
})), D.value = requestAnimationFrame(P)) : y.value = a.dataset.map((n) => ({
|
|
75
|
-
...n,
|
|
76
|
-
value: n.value || 0,
|
|
77
|
-
formatter: n.formatter || null
|
|
78
|
-
}));
|
|
79
|
-
};
|
|
80
|
-
const t = e.value.style.animation.animationFrames, s = a.dataset.map((n, h) => n.value / t), l = a.dataset.map((n) => n.value || 0).reduce((n, h) => n + h, 0);
|
|
81
|
-
let i = 0;
|
|
82
|
-
P();
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
L(() => a.dataset, async (t) => {
|
|
86
|
-
cancelAnimationFrame(D.value), y.value = a.dataset.map((s) => ({
|
|
87
|
-
...s,
|
|
88
|
-
value: e.value.style.animation.show ? 0 : s.value || 0,
|
|
89
|
-
formatter: s.formatter || null
|
|
90
|
-
})), Y(F);
|
|
91
|
-
}, { deep: !0 });
|
|
92
|
-
const r = k({
|
|
93
|
-
width: 500,
|
|
94
|
-
height: 16
|
|
95
|
-
}), H = g(() => Math.max(...a.dataset.map((t) => t.value))), X = g(() => (a.dataset.forEach((t, s) => {
|
|
96
|
-
ie({
|
|
97
|
-
datasetObject: t,
|
|
98
|
-
requiredAttributes: ["name", "value"]
|
|
99
|
-
}).forEach((l) => {
|
|
100
|
-
E({
|
|
101
|
-
componentName: "VueUiSparkbar",
|
|
102
|
-
type: "datasetSerieAttribute",
|
|
103
|
-
property: l,
|
|
104
|
-
index: s
|
|
105
|
-
});
|
|
106
|
-
});
|
|
107
|
-
}), y.value.map((t, s) => ({
|
|
108
|
-
...t,
|
|
109
|
-
value: t.value || 0,
|
|
110
|
-
color: ce(t.color) || q.value[s] || x[s] || x[s % x.length]
|
|
111
|
-
}))));
|
|
112
|
-
function J(t) {
|
|
113
|
-
return t / H.value;
|
|
114
|
-
}
|
|
115
|
-
function I(t) {
|
|
116
|
-
return e.value.style.layout.independant ? t.target ? t.value / t.target : e.value.style.layout.percentage ? t.value > 100 ? 1 : t.value / 100 : e.value.style.layout.target === 0 ? 1 : t.value / e.value.style.layout.target : J(t.value);
|
|
117
|
-
}
|
|
118
|
-
function m(t) {
|
|
119
|
-
return e.value.style.layout.independant && t.target || e.value.style.layout.target;
|
|
120
|
-
}
|
|
121
|
-
const K = M;
|
|
122
|
-
function Q(t, s) {
|
|
123
|
-
K("selectDatapoint", { datapoint: t, index: s });
|
|
124
|
-
}
|
|
125
|
-
return (t, s) => (u(), c("div", {
|
|
126
|
-
class: "vue-ui-sparkbar",
|
|
127
|
-
style: p({
|
|
128
|
-
width: "100%",
|
|
129
|
-
fontFamily: e.value.style.fontFamily,
|
|
130
|
-
background: a.backgroundOpacity !== null ? o($)(e.value.style.backgroundColor, a.backgroundOpacity) : e.value.style.backgroundColor
|
|
131
|
-
})
|
|
132
|
-
}, [
|
|
133
|
-
t.$slots.title ? _(t.$slots, "title", ee(O({ key: 0 }, { title: { ...t.title, title: e.value.style.title.text, subtitle: e.value.style.title.subtitle.text } }))) : v("", !0),
|
|
134
|
-
!t.$slots.title && e.value.style.title.text ? (u(), c("div", {
|
|
135
|
-
key: 1,
|
|
136
|
-
class: "vue-ui-sparkbar-title-container",
|
|
137
|
-
style: p({
|
|
138
|
-
background: e.value.style.title.backgroundColor,
|
|
139
|
-
margin: e.value.style.title.margin,
|
|
140
|
-
textAlign: e.value.style.title.textAlign
|
|
141
|
-
})
|
|
142
|
-
}, [
|
|
143
|
-
d("div", {
|
|
144
|
-
class: "vue-ui-sparkbar-title",
|
|
145
|
-
style: p({
|
|
146
|
-
fontSize: e.value.style.title.fontSize + "px",
|
|
147
|
-
color: e.value.style.title.color,
|
|
148
|
-
fontWeight: e.value.style.title.bold ? "bold" : "normal"
|
|
149
|
-
})
|
|
150
|
-
}, f(e.value.style.title.text), 5),
|
|
151
|
-
e.value.style.title.subtitle.text ? (u(), c("div", {
|
|
152
|
-
key: 0,
|
|
153
|
-
class: "vue-ui-sparkbar-subtitle",
|
|
154
|
-
style: p({
|
|
155
|
-
fontSize: e.value.style.title.subtitle.fontSize + "px",
|
|
156
|
-
color: e.value.style.title.subtitle.color,
|
|
157
|
-
fontWeight: e.value.style.title.subtitle.bold ? "bold" : "normal"
|
|
158
|
-
})
|
|
159
|
-
}, f(e.value.style.title.subtitle.text), 5)) : v("", !0)
|
|
160
|
-
], 4)) : v("", !0),
|
|
161
|
-
(u(!0), c(T, null, te(X.value, (l, i) => (u(), c(T, null, [
|
|
162
|
-
S.value ? (u(), c("div", {
|
|
163
|
-
key: 0,
|
|
164
|
-
style: p(`display:flex !important;${["left", "right"].includes(e.value.style.labels.name.position) ? `flex-direction: ${e.value.style.labels.name.position === "right" ? "row-reverse" : "row"} !important` : "flex-direction:column !important"};gap:${e.value.style.gap}px !important;align-items:center;${C.dataset.length > 0 && i !== C.dataset.length - 1 ? "margin-bottom:6px" : ""}`),
|
|
165
|
-
onClick: () => Q(l, i)
|
|
166
|
-
}, [
|
|
167
|
-
_(t.$slots, "data-label", O({ ref_for: !0 }, { bar: {
|
|
168
|
-
...l,
|
|
169
|
-
target: m(l),
|
|
170
|
-
valueLabel: o(b)(
|
|
171
|
-
l.formatter,
|
|
172
|
-
l.value,
|
|
173
|
-
o(w)({
|
|
174
|
-
p: l.prefix || "",
|
|
175
|
-
v: l.value,
|
|
176
|
-
s: l.suffix || "",
|
|
177
|
-
r: l.rounding || 0
|
|
178
|
-
}),
|
|
179
|
-
{ datapoint: l, seriesIndex: i }
|
|
180
|
-
),
|
|
181
|
-
targetLabel: o(b)(
|
|
182
|
-
l.formatter,
|
|
183
|
-
m(l),
|
|
184
|
-
o(w)({
|
|
185
|
-
p: l.prefix || "",
|
|
186
|
-
v: m(l),
|
|
187
|
-
s: l.suffix || "",
|
|
188
|
-
r: l.rounding || 0
|
|
189
|
-
}),
|
|
190
|
-
{ datapoint: l, seriesIndex: i }
|
|
191
|
-
)
|
|
192
|
-
} })),
|
|
193
|
-
t.$slots["data-label"] ? v("", !0) : (u(), c("div", {
|
|
194
|
-
key: 0,
|
|
195
|
-
style: p({
|
|
196
|
-
width: e.value.style.labels.name.width,
|
|
197
|
-
color: e.value.style.labels.name.color,
|
|
198
|
-
fontSize: e.value.style.labels.fontSize + "px",
|
|
199
|
-
fontWeight: e.value.style.labels.name.bold ? "bold" : "normal",
|
|
200
|
-
textAlign: ["left", "right"].includes(e.value.style.labels.name.position) || ["top", "top-left"].includes(e.value.style.labels.name.position) ? "left" : e.value.style.labels.name.position === "top-center" ? "center" : "right"
|
|
201
|
-
})
|
|
202
|
-
}, [
|
|
203
|
-
d("span", null, f(l.name), 1),
|
|
204
|
-
e.value.style.labels.value.show ? (u(), c("span", {
|
|
205
|
-
key: 0,
|
|
206
|
-
style: p(`font-weight:${e.value.style.labels.value.bold ? "bold" : "normal"}`)
|
|
207
|
-
}, ": " + f(o(b)(
|
|
208
|
-
l.formatter,
|
|
209
|
-
l.value,
|
|
210
|
-
o(w)({
|
|
211
|
-
p: l.prefix || "",
|
|
212
|
-
v: l.value,
|
|
213
|
-
s: l.suffix || "",
|
|
214
|
-
r: l.rounding || 0
|
|
215
|
-
}),
|
|
216
|
-
{ datapoint: l, seriesIndex: i }
|
|
217
|
-
)), 5)) : v("", !0),
|
|
218
|
-
e.value.style.layout.showTargetValue ? (u(), c("span", fe, f(" " + e.value.style.layout.targetValueText) + " " + f(o(b)(
|
|
219
|
-
l.formatter,
|
|
220
|
-
m(l),
|
|
221
|
-
o(w)({
|
|
222
|
-
p: l.prefix || "",
|
|
223
|
-
v: m(l),
|
|
224
|
-
s: l.suffix || "",
|
|
225
|
-
r: l.rounding || 0
|
|
226
|
-
}),
|
|
227
|
-
{ datapoint: l, seriesIndex: i }
|
|
228
|
-
)), 1)) : v("", !0)
|
|
229
|
-
], 4)),
|
|
230
|
-
(u(), c("svg", {
|
|
231
|
-
xmlns: o(ve),
|
|
232
|
-
viewBox: `0 0 ${r.value.width} ${r.value.height}`,
|
|
233
|
-
width: "100%"
|
|
234
|
-
}, [
|
|
235
|
-
le(o(U)),
|
|
236
|
-
d("defs", null, [
|
|
237
|
-
d("linearGradient", {
|
|
238
|
-
x1: "0%",
|
|
239
|
-
y1: "0%",
|
|
240
|
-
x2: "100%",
|
|
241
|
-
y2: "0%",
|
|
242
|
-
id: `sparkbar_gradient_${i}_${A.value}`
|
|
243
|
-
}, [
|
|
244
|
-
d("stop", {
|
|
245
|
-
offset: "0%",
|
|
246
|
-
"stop-color": o($)(o(de)(l.color, 0.03), 100 - e.value.style.bar.gradient.intensity)
|
|
247
|
-
}, null, 8, ge),
|
|
248
|
-
d("stop", {
|
|
249
|
-
offset: "100%",
|
|
250
|
-
"stop-color": l.color
|
|
251
|
-
}, null, 8, he)
|
|
252
|
-
], 8, me)
|
|
253
|
-
]),
|
|
254
|
-
d("rect", {
|
|
255
|
-
height: r.value.height,
|
|
256
|
-
width: r.value.width,
|
|
257
|
-
x: 0,
|
|
258
|
-
y: 0,
|
|
259
|
-
fill: o($)(e.value.style.gutter.backgroundColor, e.value.style.gutter.opacity),
|
|
260
|
-
rx: r.value.height / 2
|
|
261
|
-
}, null, 8, ke),
|
|
262
|
-
d("rect", {
|
|
263
|
-
height: r.value.height,
|
|
264
|
-
width: r.value.width * I(l),
|
|
265
|
-
x: 0,
|
|
266
|
-
y: 0,
|
|
267
|
-
fill: e.value.style.bar.gradient.underlayerColor,
|
|
268
|
-
rx: r.value.height / 2
|
|
269
|
-
}, null, 8, xe),
|
|
270
|
-
d("rect", {
|
|
271
|
-
height: r.value.height,
|
|
272
|
-
width: r.value.width * I(l),
|
|
273
|
-
x: 0,
|
|
274
|
-
y: 0,
|
|
275
|
-
fill: e.value.style.bar.gradient.show ? `url(#sparkbar_gradient_${i}_${A.value})` : l.color,
|
|
276
|
-
rx: r.value.height / 2
|
|
277
|
-
}, null, 8, be)
|
|
278
|
-
], 8, ye))
|
|
279
|
-
], 12, pe)) : v("", !0)
|
|
280
|
-
], 64))), 256)),
|
|
281
|
-
t.$slots.source ? (u(), c("div", we, [
|
|
282
|
-
_(t.$slots, "source")
|
|
283
|
-
], 512)) : v("", !0),
|
|
284
|
-
S.value ? v("", !0) : (u(), Z(o(j), {
|
|
285
|
-
key: 3,
|
|
286
|
-
config: {
|
|
287
|
-
type: "sparkbar",
|
|
288
|
-
style: {
|
|
289
|
-
backgroundColor: e.value.style.backgroundColor,
|
|
290
|
-
sparkbar: {
|
|
291
|
-
color: "#CCCCCC"
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
}, null, 8, ["config"]))
|
|
296
|
-
], 4));
|
|
297
|
-
}
|
|
298
|
-
};
|
|
299
|
-
export {
|
|
300
|
-
Se as default
|
|
301
|
-
};
|