vue-data-ui 2.12.5 → 2.12.7-beta.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 +56 -1
- package/dist/{Arrow-CD7YT-M0.js → Arrow-CmqjRRUl.js} +1 -1
- package/dist/BaseDraggableDialog-BMlyvt7E.js +180 -0
- package/dist/{BaseIcon-CgSWwnK7.js → BaseIcon-CZdMutjs.js} +1 -1
- package/dist/{ColorPicker-w8R8Tqdv.js → ColorPicker-DvVKgyAl.js} +23 -24
- package/dist/{DataTable-CicthvOV.js → DataTable-Cv9CIz-a.js} +11 -11
- package/dist/{Legend-0UY0Mmli.js → Legend-DFunFf8i.js} +8 -8
- package/dist/NonSvgPenAndPaper-pVuHj6_A.js +467 -0
- package/dist/PackageVersion-CLY-udAA.js +10 -0
- package/dist/{PenAndPaper-DLsvRwoD.js → PenAndPaper-B9na2mbr.js} +8 -10
- package/dist/RecursiveCircles-Dn3TGoL6.js +96 -0
- package/dist/RecursiveLabels-NTMB9w5C.js +49 -0
- package/dist/RecursiveLinks-ld_gDZH4.js +64 -0
- package/dist/{Shape-DICeBEtN.js → Shape-D3w9qas1.js} +2 -2
- package/dist/{Slicer-D1nsbsWE.js → Slicer-ncY8krrM.js} +2 -2
- package/dist/SparkTooltip-CwThutH2.js +68 -0
- package/dist/{Title-xO1jFsSw.js → Title-B5qqUI3M.js} +2 -2
- package/dist/Tooltip-C9rxJ-Ru.js +149 -0
- package/dist/{usePrinter-CcgJXHIK.js → UserOptions-Ddy6CuLC.js} +172 -231
- package/dist/{dom-to-png-CS4NRYd_.js → dom-to-png-DDlooC9r.js} +1 -1
- package/dist/{img-CsXjm5I4.js → img-m9g7lR5d.js} +1 -1
- package/dist/{index-vjCxtaM0.js → index-BiHmNd1-.js} +153 -118
- package/dist/{pdf-DHexTTpK.js → pdf-BqM953uL.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +96 -2
- package/dist/types/vue-data-ui.d.ts +96 -2
- package/dist/useChartAccessibility-9icAAmYg.js +12 -0
- package/dist/useMouse-AicQS8Vf.js +13 -0
- package/dist/{useNestedProp-Du1hnYFA.js → useNestedProp-tRqS0ZAM.js} +1 -1
- package/dist/{usePanZoom-CUkkqW81.js → usePanZoom-BQMvRXEQ.js} +16 -17
- package/dist/usePrinter-CRCbl1WG.js +53 -0
- package/dist/vClickOutside-C6WiFswA.js +13 -0
- package/dist/{vue-data-ui-BOrA3Tc9.js → vue-data-ui-D9uTDt73.js} +63 -63
- package/dist/vue-data-ui.js +42 -40
- package/dist/{vue-ui-3d-bar-Z8yAd4bw.js → vue-ui-3d-bar-rtuSc8FS.js} +397 -402
- package/dist/{vue-ui-accordion-CAN430Oy.js → vue-ui-accordion-CmCs2yR2.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C6PZU9Ez.js → vue-ui-age-pyramid-BrzMSiyu.js} +215 -218
- package/dist/{vue-ui-annotator-CqoDLx3t.js → vue-ui-annotator-CYxmTpf6.js} +2 -2
- package/dist/{vue-ui-bullet-DZC3aY3d.js → vue-ui-bullet-D25qNQfb.js} +137 -140
- package/dist/{vue-ui-candlestick-B5mq_lgW.js → vue-ui-candlestick-BuerNa-r.js} +265 -271
- package/dist/{vue-ui-carousel-table-CBwerU49.js → vue-ui-carousel-table-aN0HLsOO.js} +137 -137
- package/dist/{vue-ui-chestnut-COyOAY28.js → vue-ui-chestnut-oUj2ocsZ.js} +397 -400
- package/dist/{vue-ui-chord-Cw0F_jHM.js → vue-ui-chord-C4evlXYB.js} +356 -365
- package/dist/vue-ui-circle-pack-CWrNiKTY.js +656 -0
- package/dist/{vue-ui-cursor-CWXqmlVy.js → vue-ui-cursor-DgpSttlt.js} +2 -2
- package/dist/{vue-ui-dashboard-Ba2tF4md.js → vue-ui-dashboard-BN2ha1Eh.js} +62 -62
- package/dist/{vue-ui-digits-BV7yyUdY.js → vue-ui-digits-BhjAxXgm.js} +2 -2
- package/dist/vue-ui-donut-D3_z61HI.js +1291 -0
- package/dist/vue-ui-donut-evolution-oKtmZPx4.js +864 -0
- package/dist/{vue-ui-dumbbell-SDCcLJIc.js → vue-ui-dumbbell-C8Lokx-F.js} +265 -270
- package/dist/{vue-ui-flow-CrqGSDNK.js → vue-ui-flow-BVRkH0PS.js} +291 -300
- package/dist/{vue-ui-funnel-CcDOoxp8.js → vue-ui-funnel-DFxcmAB5.js} +216 -219
- package/dist/{vue-ui-galaxy-jlDp0DRJ.js → vue-ui-galaxy-CGE0hlBC.js} +227 -235
- package/dist/{vue-ui-gauge-8t8rWb1C.js → vue-ui-gauge-B48eMvOR.js} +240 -243
- package/dist/{vue-ui-gizmo-CFwdrMYP.js → vue-ui-gizmo-zTKNpjvv.js} +57 -58
- package/dist/{vue-ui-heatmap-BT-mIeZp.js → vue-ui-heatmap-UNfTt8SM.js} +239 -242
- package/dist/{vue-ui-history-plot-crLloc7J.js → vue-ui-history-plot-CbCWmvtg.js} +257 -262
- package/dist/{vue-ui-kpi-96v4ZIYo.js → vue-ui-kpi-Drf_lrlh.js} +29 -30
- package/dist/{vue-ui-mini-loader-rBHBxNIT.js → vue-ui-mini-loader-DU3G6BVs.js} +2 -2
- package/dist/vue-ui-molecule-B5MOXYEA.js +580 -0
- package/dist/{vue-ui-mood-radar-DrVSXIY4.js → vue-ui-mood-radar-CC_CVLvn.js} +180 -186
- package/dist/{vue-ui-nested-donuts-C9Ah9lgv.js → vue-ui-nested-donuts-D_H962kk.js} +366 -374
- package/dist/{vue-ui-onion-DwNPyn4X.js → vue-ui-onion-P8k6T724.js} +252 -258
- package/dist/{vue-ui-parallel-coordinate-plot-tSuK6xWu.js → vue-ui-parallel-coordinate-plot-B5Los0vX.js} +296 -303
- package/dist/{vue-ui-quadrant-C0Kaoo7K.js → vue-ui-quadrant-B3wzCTxK.js} +402 -409
- package/dist/{vue-ui-quick-chart-xMh_Ygct.js → vue-ui-quick-chart-oucj6hXk.js} +611 -616
- package/dist/{vue-ui-radar-C1jSDQt_.js → vue-ui-radar-Cjqlyu6d.js} +270 -277
- package/dist/{vue-ui-rating-6Kb7hsKF.js → vue-ui-rating-gryk_h_6.js} +2 -2
- package/dist/vue-ui-relation-circle-ielvWC-1.js +525 -0
- package/dist/{vue-ui-ridgeline-BBvPVQjC.js → vue-ui-ridgeline-Dydqo68b.js} +321 -326
- package/dist/{vue-ui-rings-B92cXv7f.js → vue-ui-rings-BRBXektJ.js} +262 -269
- package/dist/{vue-ui-scatter-Bt1aty87.js → vue-ui-scatter-Df-BM7Ts.js} +372 -379
- package/dist/{vue-ui-skeleton-DfOIDTJM.js → vue-ui-skeleton-CbYQYRvD.js} +19 -19
- package/dist/{vue-ui-smiley-sVgBnkbx.js → vue-ui-smiley-BfHaQMaW.js} +2 -2
- package/dist/{vue-ui-spark-trend-D6uzJ4Qd.js → vue-ui-spark-trend-z3fUChs_.js} +114 -117
- package/dist/{vue-ui-sparkbar-D4c2EE7J.js → vue-ui-sparkbar-ChtFIugH.js} +104 -106
- package/dist/{vue-ui-sparkgauge-DaQ6iz98.js → vue-ui-sparkgauge-DtpODCww.js} +72 -74
- package/dist/{vue-ui-sparkhistogram-D_YnmM2T.js → vue-ui-sparkhistogram-C3XnYiXI.js} +83 -86
- package/dist/vue-ui-sparkline-CoL8jiX8.js +459 -0
- package/dist/{vue-ui-sparkstackbar-DecnmqgJ.js → vue-ui-sparkstackbar-CYk3mZJH.js} +102 -105
- package/dist/{vue-ui-stackbar-D1eNs1j_.js → vue-ui-stackbar-D9LGbuG5.js} +433 -437
- package/dist/{vue-ui-strip-plot-iPZ8Hhmr.js → vue-ui-strip-plot-C5r1Ee2R.js} +245 -252
- package/dist/{vue-ui-table-BFjE28sw.js → vue-ui-table-DBaT_TfA.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DipFDu39.js → vue-ui-table-heatmap-CYW4YfKN.js} +93 -94
- package/dist/{vue-ui-table-sparkline-CGAecOZh.js → vue-ui-table-sparkline-Di0MYR4p.js} +212 -212
- package/dist/{vue-ui-thermometer-Cx_yr-hs.js → vue-ui-thermometer-BF1btHY2.js} +154 -157
- package/dist/{vue-ui-timer-ClVmS8MH.js → vue-ui-timer-D9FfRWN5.js} +180 -181
- package/dist/vue-ui-tiremarks-CQ0lk8fJ.js +341 -0
- package/dist/vue-ui-treemap-1Lx7YRtc.js +947 -0
- package/dist/{vue-ui-vertical-bar-BHYCnFEN.js → vue-ui-vertical-bar-DdVVQ1ED.js} +397 -403
- package/dist/{vue-ui-waffle-DEPUbrOt.js → vue-ui-waffle-BhnuPiRD.js} +317 -324
- package/dist/vue-ui-wheel-BIjJ0fg8.js +335 -0
- package/dist/vue-ui-word-cloud-3-r8HwO_.js +642 -0
- package/dist/{vue-ui-world-DStJ5i0i.js → vue-ui-world-CPIGEswq.js} +430 -442
- package/dist/{vue-ui-xy-CEop49z6.js → vue-ui-xy-9e_epIN4.js} +845 -846
- package/dist/vue-ui-xy-canvas-DcGgQ7s4.js +1206 -0
- package/package.json +6 -6
- package/dist/BaseDraggableDialog-BjFEob7i.js +0 -186
- package/dist/PackageVersion-Cw2caN1c.js +0 -10
- package/dist/Tooltip-LKe8L-Mg.js +0 -158
- package/dist/useChartAccessibility-BWojgys7.js +0 -13
- package/dist/vue-ui-circle-pack-BtpaZLYs.js +0 -659
- package/dist/vue-ui-donut-CRdQFQgA.js +0 -1292
- package/dist/vue-ui-donut-evolution-De3-5OgR.js +0 -871
- package/dist/vue-ui-molecule-DSr_bHGG.js +0 -782
- package/dist/vue-ui-relation-circle-fh0Hl9m0.js +0 -528
- package/dist/vue-ui-sparkline-C2HuTMDz.js +0 -519
- package/dist/vue-ui-tiremarks-4Sa3RCSv.js +0 -344
- package/dist/vue-ui-treemap-CD5pPg7v.js +0 -956
- package/dist/vue-ui-wheel-qU0bgJsi.js +0 -338
- package/dist/vue-ui-word-cloud-z2ZguOdy.js +0 -648
- package/dist/vue-ui-xy-canvas-DV0BVdZb.js +0 -1673
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import { useSlots as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
|
|
5
|
-
import { _ as ve } from "./PackageVersion-Cw2caN1c.js";
|
|
6
|
-
const de = ["onClick"], fe = { key: 1 }, pe = ["xmlns", "viewBox"], ye = ["id"], me = ["stop-color"], ge = ["stop-color"], he = ["height", "width", "fill", "rx"], ke = ["height", "width", "fill", "rx"], xe = ["height", "width", "fill", "rx"], be = {
|
|
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-BiHmNd1-.js";
|
|
3
|
+
import { u as B } from "./useNestedProp-tRqS0ZAM.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 = {
|
|
7
5
|
key: 2,
|
|
8
6
|
ref: "source",
|
|
9
7
|
dir: "auto"
|
|
10
|
-
},
|
|
8
|
+
}, Se = {
|
|
11
9
|
__name: "vue-ui-sparkbar",
|
|
12
10
|
props: {
|
|
13
11
|
config: {
|
|
@@ -31,112 +29,112 @@ const de = ["onClick"], fe = { key: 1 }, pe = ["xmlns", "viewBox"], ye = ["id"],
|
|
|
31
29
|
}
|
|
32
30
|
},
|
|
33
31
|
emits: ["selectDatapoint"],
|
|
34
|
-
setup(
|
|
35
|
-
const { vue_ui_sparkbar:
|
|
36
|
-
|
|
37
|
-
|
|
32
|
+
setup(C, { emit: M }) {
|
|
33
|
+
const U = V(() => import("./PackageVersion-CLY-udAA.js")), j = V(() => import("./vue-ui-skeleton-CbYQYRvD.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.");
|
|
38
36
|
});
|
|
39
|
-
const S = g(() => !!a.dataset && a.dataset.length), A = k(
|
|
37
|
+
const S = g(() => !!a.dataset && a.dataset.length), A = k(oe()), e = g({
|
|
40
38
|
get: () => N(),
|
|
41
39
|
set: (t) => t
|
|
42
40
|
});
|
|
43
41
|
function N() {
|
|
44
|
-
const t =
|
|
42
|
+
const t = B({
|
|
45
43
|
userConfig: a.config,
|
|
46
|
-
defaultConfig:
|
|
44
|
+
defaultConfig: G
|
|
47
45
|
});
|
|
48
46
|
return t.theme ? {
|
|
49
|
-
...
|
|
50
|
-
userConfig:
|
|
47
|
+
...B({
|
|
48
|
+
userConfig: ne.vue_ui_sparkbar[t.theme] || a.config,
|
|
51
49
|
defaultConfig: t
|
|
52
50
|
}),
|
|
53
|
-
customPalette:
|
|
51
|
+
customPalette: se[t.theme] || x
|
|
54
52
|
} : t;
|
|
55
53
|
}
|
|
56
|
-
|
|
54
|
+
L(() => a.config, (t) => {
|
|
57
55
|
e.value = N();
|
|
58
56
|
}, { deep: !0 });
|
|
59
|
-
const
|
|
57
|
+
const q = g(() => ue(e.value.customPalette)), y = k(a.dataset.map((t) => ({
|
|
60
58
|
...t,
|
|
61
59
|
value: e.value.style.animation.show ? 0 : t.value || 0,
|
|
62
60
|
formatter: t.formatter || null
|
|
63
61
|
}))), D = k(null);
|
|
64
|
-
|
|
65
|
-
|
|
62
|
+
z(async () => {
|
|
63
|
+
re(a.dataset) && E({
|
|
66
64
|
componentName: "VueUiSparkbar",
|
|
67
65
|
type: "dataset"
|
|
68
66
|
}), F();
|
|
69
67
|
});
|
|
70
68
|
function F() {
|
|
71
69
|
if (e.value.style.animation.show) {
|
|
72
|
-
let
|
|
73
|
-
i += l / t, i < l ? (y.value = y.value.map((
|
|
74
|
-
...
|
|
75
|
-
value:
|
|
76
|
-
})), D.value = requestAnimationFrame(
|
|
77
|
-
...
|
|
78
|
-
value:
|
|
79
|
-
formatter:
|
|
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
|
|
80
78
|
}));
|
|
81
79
|
};
|
|
82
|
-
const t = e.value.style.animation.animationFrames,
|
|
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);
|
|
83
81
|
let i = 0;
|
|
84
|
-
|
|
82
|
+
P();
|
|
85
83
|
}
|
|
86
84
|
}
|
|
87
|
-
|
|
88
|
-
cancelAnimationFrame(D.value), y.value = a.dataset.map((
|
|
89
|
-
...
|
|
90
|
-
value: e.value.style.animation.show ? 0 :
|
|
91
|
-
formatter:
|
|
92
|
-
})),
|
|
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);
|
|
93
91
|
}, { deep: !0 });
|
|
94
|
-
const
|
|
92
|
+
const r = k({
|
|
95
93
|
width: 500,
|
|
96
94
|
height: 16
|
|
97
|
-
}),
|
|
98
|
-
|
|
95
|
+
}), H = g(() => Math.max(...a.dataset.map((t) => t.value))), X = g(() => (a.dataset.forEach((t, s) => {
|
|
96
|
+
ie({
|
|
99
97
|
datasetObject: t,
|
|
100
98
|
requiredAttributes: ["name", "value"]
|
|
101
99
|
}).forEach((l) => {
|
|
102
|
-
|
|
100
|
+
E({
|
|
103
101
|
componentName: "VueUiSparkbar",
|
|
104
102
|
type: "datasetSerieAttribute",
|
|
105
103
|
property: l,
|
|
106
|
-
index:
|
|
104
|
+
index: s
|
|
107
105
|
});
|
|
108
106
|
});
|
|
109
|
-
}), y.value.map((t,
|
|
107
|
+
}), y.value.map((t, s) => ({
|
|
110
108
|
...t,
|
|
111
109
|
value: t.value || 0,
|
|
112
|
-
color:
|
|
110
|
+
color: ce(t.color) || q.value[s] || x[s] || x[s % x.length]
|
|
113
111
|
}))));
|
|
114
|
-
function
|
|
115
|
-
return t /
|
|
112
|
+
function J(t) {
|
|
113
|
+
return t / H.value;
|
|
116
114
|
}
|
|
117
115
|
function I(t) {
|
|
118
|
-
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 :
|
|
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);
|
|
119
117
|
}
|
|
120
118
|
function m(t) {
|
|
121
119
|
return e.value.style.layout.independant && t.target || e.value.style.layout.target;
|
|
122
120
|
}
|
|
123
|
-
const
|
|
124
|
-
function
|
|
125
|
-
|
|
121
|
+
const K = M;
|
|
122
|
+
function Q(t, s) {
|
|
123
|
+
K("selectDatapoint", { datapoint: t, index: s });
|
|
126
124
|
}
|
|
127
|
-
return (t,
|
|
125
|
+
return (t, s) => (u(), c("div", {
|
|
128
126
|
class: "vue-ui-sparkbar",
|
|
129
|
-
style:
|
|
127
|
+
style: p({
|
|
130
128
|
width: "100%",
|
|
131
129
|
fontFamily: e.value.style.fontFamily,
|
|
132
|
-
background: a.backgroundOpacity !== null ?
|
|
130
|
+
background: a.backgroundOpacity !== null ? o($)(e.value.style.backgroundColor, a.backgroundOpacity) : e.value.style.backgroundColor
|
|
133
131
|
})
|
|
134
132
|
}, [
|
|
135
|
-
t.$slots.title ?
|
|
136
|
-
!t.$slots.title && e.value.style.title.text ? (
|
|
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", {
|
|
137
135
|
key: 1,
|
|
138
136
|
class: "vue-ui-sparkbar-title-container",
|
|
139
|
-
style:
|
|
137
|
+
style: p({
|
|
140
138
|
background: e.value.style.title.backgroundColor,
|
|
141
139
|
margin: e.value.style.title.margin,
|
|
142
140
|
textAlign: e.value.style.title.textAlign
|
|
@@ -144,35 +142,35 @@ const de = ["onClick"], fe = { key: 1 }, pe = ["xmlns", "viewBox"], ye = ["id"],
|
|
|
144
142
|
}, [
|
|
145
143
|
d("div", {
|
|
146
144
|
class: "vue-ui-sparkbar-title",
|
|
147
|
-
style:
|
|
145
|
+
style: p({
|
|
148
146
|
fontSize: e.value.style.title.fontSize + "px",
|
|
149
147
|
color: e.value.style.title.color,
|
|
150
148
|
fontWeight: e.value.style.title.bold ? "bold" : "normal"
|
|
151
149
|
})
|
|
152
|
-
},
|
|
153
|
-
e.value.style.title.subtitle.text ? (
|
|
150
|
+
}, f(e.value.style.title.text), 5),
|
|
151
|
+
e.value.style.title.subtitle.text ? (u(), c("div", {
|
|
154
152
|
key: 0,
|
|
155
153
|
class: "vue-ui-sparkbar-subtitle",
|
|
156
|
-
style:
|
|
154
|
+
style: p({
|
|
157
155
|
fontSize: e.value.style.title.subtitle.fontSize + "px",
|
|
158
156
|
color: e.value.style.title.subtitle.color,
|
|
159
157
|
fontWeight: e.value.style.title.subtitle.bold ? "bold" : "normal"
|
|
160
158
|
})
|
|
161
|
-
},
|
|
159
|
+
}, f(e.value.style.title.subtitle.text), 5)) : v("", !0)
|
|
162
160
|
], 4)) : v("", !0),
|
|
163
|
-
(
|
|
164
|
-
S.value ? (
|
|
161
|
+
(u(!0), c(T, null, te(X.value, (l, i) => (u(), c(T, null, [
|
|
162
|
+
S.value ? (u(), c("div", {
|
|
165
163
|
key: 0,
|
|
166
|
-
style:
|
|
167
|
-
onClick: () =>
|
|
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)
|
|
168
166
|
}, [
|
|
169
|
-
|
|
167
|
+
_(t.$slots, "data-label", O({ ref_for: !0 }, { bar: {
|
|
170
168
|
...l,
|
|
171
169
|
target: m(l),
|
|
172
|
-
valueLabel:
|
|
170
|
+
valueLabel: o(b)(
|
|
173
171
|
l.formatter,
|
|
174
172
|
l.value,
|
|
175
|
-
|
|
173
|
+
o(w)({
|
|
176
174
|
p: l.prefix || "",
|
|
177
175
|
v: l.value,
|
|
178
176
|
s: l.suffix || "",
|
|
@@ -180,10 +178,10 @@ const de = ["onClick"], fe = { key: 1 }, pe = ["xmlns", "viewBox"], ye = ["id"],
|
|
|
180
178
|
}),
|
|
181
179
|
{ datapoint: l, seriesIndex: i }
|
|
182
180
|
),
|
|
183
|
-
targetLabel:
|
|
181
|
+
targetLabel: o(b)(
|
|
184
182
|
l.formatter,
|
|
185
183
|
m(l),
|
|
186
|
-
|
|
184
|
+
o(w)({
|
|
187
185
|
p: l.prefix || "",
|
|
188
186
|
v: m(l),
|
|
189
187
|
s: l.suffix || "",
|
|
@@ -192,9 +190,9 @@ const de = ["onClick"], fe = { key: 1 }, pe = ["xmlns", "viewBox"], ye = ["id"],
|
|
|
192
190
|
{ datapoint: l, seriesIndex: i }
|
|
193
191
|
)
|
|
194
192
|
} })),
|
|
195
|
-
t.$slots["data-label"] ? v("", !0) : (
|
|
193
|
+
t.$slots["data-label"] ? v("", !0) : (u(), c("div", {
|
|
196
194
|
key: 0,
|
|
197
|
-
style:
|
|
195
|
+
style: p({
|
|
198
196
|
width: e.value.style.labels.name.width,
|
|
199
197
|
color: e.value.style.labels.name.color,
|
|
200
198
|
fontSize: e.value.style.labels.fontSize + "px",
|
|
@@ -202,14 +200,14 @@ const de = ["onClick"], fe = { key: 1 }, pe = ["xmlns", "viewBox"], ye = ["id"],
|
|
|
202
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"
|
|
203
201
|
})
|
|
204
202
|
}, [
|
|
205
|
-
d("span", null,
|
|
206
|
-
e.value.style.labels.value.show ? (
|
|
203
|
+
d("span", null, f(l.name), 1),
|
|
204
|
+
e.value.style.labels.value.show ? (u(), c("span", {
|
|
207
205
|
key: 0,
|
|
208
|
-
style:
|
|
209
|
-
}, ": " +
|
|
206
|
+
style: p(`font-weight:${e.value.style.labels.value.bold ? "bold" : "normal"}`)
|
|
207
|
+
}, ": " + f(o(b)(
|
|
210
208
|
l.formatter,
|
|
211
209
|
l.value,
|
|
212
|
-
|
|
210
|
+
o(w)({
|
|
213
211
|
p: l.prefix || "",
|
|
214
212
|
v: l.value,
|
|
215
213
|
s: l.suffix || "",
|
|
@@ -217,10 +215,10 @@ const de = ["onClick"], fe = { key: 1 }, pe = ["xmlns", "viewBox"], ye = ["id"],
|
|
|
217
215
|
}),
|
|
218
216
|
{ datapoint: l, seriesIndex: i }
|
|
219
217
|
)), 5)) : v("", !0),
|
|
220
|
-
e.value.style.layout.showTargetValue ? (
|
|
218
|
+
e.value.style.layout.showTargetValue ? (u(), c("span", fe, f(" " + e.value.style.layout.targetValueText) + " " + f(o(b)(
|
|
221
219
|
l.formatter,
|
|
222
220
|
m(l),
|
|
223
|
-
|
|
221
|
+
o(w)({
|
|
224
222
|
p: l.prefix || "",
|
|
225
223
|
v: m(l),
|
|
226
224
|
s: l.suffix || "",
|
|
@@ -229,12 +227,12 @@ const de = ["onClick"], fe = { key: 1 }, pe = ["xmlns", "viewBox"], ye = ["id"],
|
|
|
229
227
|
{ datapoint: l, seriesIndex: i }
|
|
230
228
|
)), 1)) : v("", !0)
|
|
231
229
|
], 4)),
|
|
232
|
-
(
|
|
233
|
-
xmlns:
|
|
234
|
-
viewBox: `0 0 ${
|
|
230
|
+
(u(), c("svg", {
|
|
231
|
+
xmlns: o(ve),
|
|
232
|
+
viewBox: `0 0 ${r.value.width} ${r.value.height}`,
|
|
235
233
|
width: "100%"
|
|
236
234
|
}, [
|
|
237
|
-
|
|
235
|
+
le(o(U)),
|
|
238
236
|
d("defs", null, [
|
|
239
237
|
d("linearGradient", {
|
|
240
238
|
x1: "0%",
|
|
@@ -245,45 +243,45 @@ const de = ["onClick"], fe = { key: 1 }, pe = ["xmlns", "viewBox"], ye = ["id"],
|
|
|
245
243
|
}, [
|
|
246
244
|
d("stop", {
|
|
247
245
|
offset: "0%",
|
|
248
|
-
"stop-color":
|
|
249
|
-
}, null, 8,
|
|
246
|
+
"stop-color": o($)(o(de)(l.color, 0.03), 100 - e.value.style.bar.gradient.intensity)
|
|
247
|
+
}, null, 8, ge),
|
|
250
248
|
d("stop", {
|
|
251
249
|
offset: "100%",
|
|
252
250
|
"stop-color": l.color
|
|
253
|
-
}, null, 8,
|
|
254
|
-
], 8,
|
|
251
|
+
}, null, 8, he)
|
|
252
|
+
], 8, me)
|
|
255
253
|
]),
|
|
256
254
|
d("rect", {
|
|
257
|
-
height:
|
|
258
|
-
width:
|
|
255
|
+
height: r.value.height,
|
|
256
|
+
width: r.value.width,
|
|
259
257
|
x: 0,
|
|
260
258
|
y: 0,
|
|
261
|
-
fill:
|
|
262
|
-
rx:
|
|
263
|
-
}, null, 8,
|
|
259
|
+
fill: o($)(e.value.style.gutter.backgroundColor, e.value.style.gutter.opacity),
|
|
260
|
+
rx: r.value.height / 2
|
|
261
|
+
}, null, 8, ke),
|
|
264
262
|
d("rect", {
|
|
265
|
-
height:
|
|
266
|
-
width:
|
|
263
|
+
height: r.value.height,
|
|
264
|
+
width: r.value.width * I(l),
|
|
267
265
|
x: 0,
|
|
268
266
|
y: 0,
|
|
269
267
|
fill: e.value.style.bar.gradient.underlayerColor,
|
|
270
|
-
rx:
|
|
271
|
-
}, null, 8,
|
|
268
|
+
rx: r.value.height / 2
|
|
269
|
+
}, null, 8, xe),
|
|
272
270
|
d("rect", {
|
|
273
|
-
height:
|
|
274
|
-
width:
|
|
271
|
+
height: r.value.height,
|
|
272
|
+
width: r.value.width * I(l),
|
|
275
273
|
x: 0,
|
|
276
274
|
y: 0,
|
|
277
275
|
fill: e.value.style.bar.gradient.show ? `url(#sparkbar_gradient_${i}_${A.value})` : l.color,
|
|
278
|
-
rx:
|
|
279
|
-
}, null, 8,
|
|
280
|
-
], 8,
|
|
281
|
-
], 12,
|
|
276
|
+
rx: r.value.height / 2
|
|
277
|
+
}, null, 8, be)
|
|
278
|
+
], 8, ye))
|
|
279
|
+
], 12, pe)) : v("", !0)
|
|
282
280
|
], 64))), 256)),
|
|
283
|
-
t.$slots.source ? (
|
|
284
|
-
|
|
281
|
+
t.$slots.source ? (u(), c("div", we, [
|
|
282
|
+
_(t.$slots, "source")
|
|
285
283
|
], 512)) : v("", !0),
|
|
286
|
-
S.value ? v("", !0) : (
|
|
284
|
+
S.value ? v("", !0) : (u(), Z(o(j), {
|
|
287
285
|
key: 3,
|
|
288
286
|
config: {
|
|
289
287
|
type: "sparkbar",
|
|
@@ -299,5 +297,5 @@ const de = ["onClick"], fe = { key: 1 }, pe = ["xmlns", "viewBox"], ye = ["id"],
|
|
|
299
297
|
}
|
|
300
298
|
};
|
|
301
299
|
export {
|
|
302
|
-
|
|
300
|
+
Se as default
|
|
303
301
|
};
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import { computed as s, onMounted as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as O } from "./
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
import { u as W } from "./useChartAccessibility-BWojgys7.js";
|
|
7
|
-
const Z = ["xmlns", "viewBox"], ee = ["width", "height"], te = ["id"], ae = ["stop-color"], le = ["stop-color"], oe = ["d", "stroke", "stroke-linecap"], se = ["d", "stroke", "stroke-linecap", "stroke-dashoffset"], ue = ["x", "y", "font-size", "fill", "font-weight"], ie = {
|
|
1
|
+
import { defineAsyncComponent as A, computed as s, onMounted as N, ref as M, watch as S, createElementBlock as r, openBlock as n, normalizeStyle as y, createCommentVNode as v, createBlock as U, toDisplayString as g, unref as i, createVNode as P, createElementVNode as d, renderSlot as z, normalizeClass as q } from "vue";
|
|
2
|
+
import { u as O } from "./useNestedProp-tRqS0ZAM.js";
|
|
3
|
+
import { u as T, o as V, e as j, g as X, c as H, a as Y, O as J, X as K, i as Q, v as m, f as W } from "./index-BiHmNd1-.js";
|
|
4
|
+
import { u as Z } from "./useChartAccessibility-9icAAmYg.js";
|
|
5
|
+
const ee = ["xmlns", "viewBox"], te = ["width", "height"], ae = ["id"], le = ["stop-color"], oe = ["stop-color"], se = ["d", "stroke", "stroke-linecap"], ue = ["d", "stroke", "stroke-linecap", "stroke-dashoffset"], ne = ["x", "y", "font-size", "fill", "font-weight"], ie = {
|
|
8
6
|
key: 4,
|
|
9
7
|
ref: "source",
|
|
10
8
|
dir: "auto"
|
|
11
|
-
},
|
|
9
|
+
}, fe = {
|
|
12
10
|
__name: "vue-ui-sparkgauge",
|
|
13
11
|
props: {
|
|
14
12
|
config: {
|
|
@@ -24,90 +22,90 @@ const Z = ["xmlns", "viewBox"], ee = ["width", "height"], te = ["id"], ae = ["st
|
|
|
24
22
|
}
|
|
25
23
|
}
|
|
26
24
|
},
|
|
27
|
-
setup(
|
|
28
|
-
const { vue_ui_sparkgauge:
|
|
29
|
-
|
|
25
|
+
setup(E) {
|
|
26
|
+
const F = A(() => import("./PackageVersion-CLY-udAA.js")), B = A(() => import("./vue-ui-skeleton-CbYQYRvD.js")), { vue_ui_sparkgauge: D } = T(), a = E, p = s(() => !!a.dataset && Object.keys(a.dataset).length);
|
|
27
|
+
N(() => {
|
|
30
28
|
h();
|
|
31
29
|
});
|
|
32
30
|
function h() {
|
|
33
|
-
|
|
31
|
+
V(a.dataset) ? j({
|
|
34
32
|
componentName: "VueUiSparkgauge",
|
|
35
33
|
type: "dataset"
|
|
36
|
-
}) :
|
|
34
|
+
}) : X({
|
|
37
35
|
datasetObject: a.dataset,
|
|
38
36
|
requiredAttributes: ["value", "min", "max"]
|
|
39
37
|
}).forEach((t) => {
|
|
40
|
-
|
|
38
|
+
j({
|
|
41
39
|
componentName: "VueUiSparkgauge",
|
|
42
40
|
type: "datasetAttribute",
|
|
43
41
|
property: t
|
|
44
42
|
});
|
|
45
43
|
});
|
|
46
44
|
}
|
|
47
|
-
const
|
|
48
|
-
get: () =>
|
|
45
|
+
const k = M(H()), e = s({
|
|
46
|
+
get: () => b(),
|
|
49
47
|
set: (t) => t
|
|
50
|
-
}), { svgRef:
|
|
51
|
-
function
|
|
48
|
+
}), { svgRef: G } = Z({ config: { text: a.dataset.title } });
|
|
49
|
+
function b() {
|
|
52
50
|
const t = O({
|
|
53
51
|
userConfig: a.config,
|
|
54
|
-
defaultConfig:
|
|
52
|
+
defaultConfig: D
|
|
55
53
|
});
|
|
56
54
|
return t.theme ? {
|
|
57
55
|
...O({
|
|
58
|
-
userConfig:
|
|
56
|
+
userConfig: Y.vue_ui_sparkgauge[t.theme] || a.config,
|
|
59
57
|
defaultConfig: t
|
|
60
58
|
})
|
|
61
59
|
} : t;
|
|
62
60
|
}
|
|
63
|
-
|
|
64
|
-
e.value =
|
|
61
|
+
S(() => a.config, (t) => {
|
|
62
|
+
e.value = b(), h();
|
|
65
63
|
}, { deep: !0 });
|
|
66
64
|
const u = s(() => ({
|
|
67
65
|
height: e.value.style.height,
|
|
68
66
|
width: 128,
|
|
69
67
|
base: e.value.style.basePosition
|
|
70
68
|
})), o = s(() => {
|
|
71
|
-
const t = a.dataset.min ?? 0,
|
|
69
|
+
const t = a.dataset.min ?? 0, c = a.dataset.max ?? 0, R = c - t;
|
|
72
70
|
return {
|
|
73
71
|
min: t,
|
|
74
|
-
max:
|
|
75
|
-
diff:
|
|
72
|
+
max: c,
|
|
73
|
+
diff: R
|
|
76
74
|
};
|
|
77
|
-
}), l =
|
|
78
|
-
|
|
79
|
-
|
|
75
|
+
}), l = M(e.value.style.animation.show ? o.value.min : a.dataset.value);
|
|
76
|
+
S(() => a.dataset.value, () => {
|
|
77
|
+
C(a.dataset.value || 0);
|
|
80
78
|
});
|
|
81
|
-
const _ = s(() => l.value > o.value.max ? o.value.max : l.value < o.value.min ? o.value.min : l.value),
|
|
82
|
-
|
|
83
|
-
|
|
79
|
+
const _ = s(() => l.value > o.value.max ? o.value.max : l.value < o.value.min ? o.value.min : l.value), x = s(() => o.value.diff / e.value.style.animation.speedMs);
|
|
80
|
+
N(() => {
|
|
81
|
+
C(a.dataset.value || 0);
|
|
84
82
|
});
|
|
85
|
-
function
|
|
86
|
-
function
|
|
87
|
-
l.value < t ? l.value = Math.min(l.value +
|
|
83
|
+
function C(t) {
|
|
84
|
+
function c() {
|
|
85
|
+
l.value < t ? l.value = Math.min(l.value + x.value, t) : l.value > t && (l.value = Math.max(l.value - x.value, t)), l.value !== t && requestAnimationFrame(c);
|
|
88
86
|
}
|
|
89
|
-
|
|
87
|
+
c();
|
|
90
88
|
}
|
|
91
|
-
const f = s(() => a.dataset.title ?? ""),
|
|
92
|
-
return (t,
|
|
89
|
+
const f = s(() => a.dataset.title ?? ""), $ = s(() => l.value >= 0 ? (_.value - o.value.min) / o.value.diff : (Math.abs(o.value.min) - Math.abs(_.value)) / o.value.diff), w = s(() => J(e.value.style.colors.min, e.value.style.colors.max, o.value.min, o.value.max, l.value)), L = s(() => e.value.style.dataLabel.autoColor ? w.value : e.value.style.dataLabel.color), I = s(() => e.value.style.track.autoColor ? w.value : e.value.style.track.color);
|
|
90
|
+
return (t, c) => (n(), r("div", {
|
|
93
91
|
class: "vue-ui-sparkgauge",
|
|
94
|
-
style:
|
|
92
|
+
style: y(`font-family:${e.value.style.fontFamily};width: 100%; background:${e.value.style.background}`)
|
|
95
93
|
}, [
|
|
96
|
-
e.value.style.title.show && f.value && e.value.style.title.position === "top" ? (
|
|
94
|
+
e.value.style.title.show && f.value && e.value.style.title.position === "top" ? (n(), r("div", {
|
|
97
95
|
key: 0,
|
|
98
96
|
class: "vue-data-ui-sparkgauge-label",
|
|
99
|
-
style:
|
|
100
|
-
},
|
|
101
|
-
p.value ? (
|
|
97
|
+
style: y(`font-size:${e.value.style.title.fontSize}px;text-align:${e.value.style.title.textAlign};font-weight:${e.value.style.title.bold ? "bold" : "normal"};color:${e.value.style.title.color}`)
|
|
98
|
+
}, g(f.value), 5)) : v("", !0),
|
|
99
|
+
p.value ? (n(), r("svg", {
|
|
102
100
|
key: 1,
|
|
103
101
|
ref_key: "svgRef",
|
|
104
|
-
ref:
|
|
105
|
-
xmlns:
|
|
102
|
+
ref: G,
|
|
103
|
+
xmlns: i(K),
|
|
106
104
|
viewBox: `0 0 ${u.value.width} ${u.value.height}`,
|
|
107
105
|
style: "overflow: visible; background:transparent; width:100%;"
|
|
108
106
|
}, [
|
|
109
|
-
|
|
110
|
-
t.$slots["chart-background"] ? (
|
|
107
|
+
P(i(F)),
|
|
108
|
+
t.$slots["chart-background"] ? (n(), r("foreignObject", {
|
|
111
109
|
key: 0,
|
|
112
110
|
x: 0,
|
|
113
111
|
y: 0,
|
|
@@ -117,11 +115,11 @@ const Z = ["xmlns", "viewBox"], ee = ["width", "height"], te = ["id"], ae = ["st
|
|
|
117
115
|
pointerEvents: "none"
|
|
118
116
|
}
|
|
119
117
|
}, [
|
|
120
|
-
|
|
121
|
-
], 8,
|
|
118
|
+
z(t.$slots, "chart-background")
|
|
119
|
+
], 8, te)) : v("", !0),
|
|
122
120
|
d("defs", null, [
|
|
123
121
|
d("linearGradient", {
|
|
124
|
-
id: `gradient_${
|
|
122
|
+
id: `gradient_${k.value}`,
|
|
125
123
|
x1: "-10%",
|
|
126
124
|
y1: "100%",
|
|
127
125
|
x2: "110%",
|
|
@@ -130,12 +128,12 @@ const Z = ["xmlns", "viewBox"], ee = ["width", "height"], te = ["id"], ae = ["st
|
|
|
130
128
|
d("stop", {
|
|
131
129
|
offset: "0%",
|
|
132
130
|
"stop-color": e.value.style.colors.min
|
|
133
|
-
}, null, 8,
|
|
131
|
+
}, null, 8, le),
|
|
134
132
|
d("stop", {
|
|
135
133
|
offset: "100%",
|
|
136
134
|
"stop-color": e.value.style.colors.max
|
|
137
|
-
}, null, 8,
|
|
138
|
-
], 8,
|
|
135
|
+
}, null, 8, oe)
|
|
136
|
+
], 8, ae)
|
|
139
137
|
]),
|
|
140
138
|
d("path", {
|
|
141
139
|
d: `M10 ${u.value.base} A 1 1 0 1 1 118 ${u.value.base}`,
|
|
@@ -143,19 +141,19 @@ const Z = ["xmlns", "viewBox"], ee = ["width", "height"], te = ["id"], ae = ["st
|
|
|
143
141
|
"stroke-width": 8,
|
|
144
142
|
"stroke-linecap": e.value.style.gutter.strokeLinecap,
|
|
145
143
|
fill: "none"
|
|
146
|
-
}, null, 8,
|
|
147
|
-
|
|
144
|
+
}, null, 8, se),
|
|
145
|
+
$.value !== 0 ? (n(), r("path", {
|
|
148
146
|
key: 1,
|
|
149
147
|
d: `M10 ${u.value.base} A 1 1 0 1 1 118 ${u.value.base}`,
|
|
150
|
-
stroke: e.value.style.colors.showGradient ? `url(#gradient_${
|
|
148
|
+
stroke: e.value.style.colors.showGradient ? `url(#gradient_${k.value})` : I.value,
|
|
151
149
|
"stroke-width": 8,
|
|
152
150
|
"stroke-linecap": e.value.style.track.strokeLinecap,
|
|
153
151
|
fill: "none",
|
|
154
152
|
"stroke-dasharray": 169.5,
|
|
155
|
-
"stroke-dashoffset": 169.5 - 169.5 *
|
|
156
|
-
class:
|
|
157
|
-
style:
|
|
158
|
-
}, null, 14,
|
|
153
|
+
"stroke-dashoffset": 169.5 - 169.5 * $.value,
|
|
154
|
+
class: q({ "vue-ui-sparkgauge-track": e.value.style.animation.show }),
|
|
155
|
+
style: y(e.value.style.animation.show ? `animation: vue-ui-sparkgauge-animation ${e.value.style.animation.speedMs}ms ease-in;` : "")
|
|
156
|
+
}, null, 14, ue)) : v("", !0),
|
|
159
157
|
d("text", {
|
|
160
158
|
"text-anchor": "middle",
|
|
161
159
|
x: u.value.width / 2,
|
|
@@ -163,19 +161,19 @@ const Z = ["xmlns", "viewBox"], ee = ["width", "height"], te = ["id"], ae = ["st
|
|
|
163
161
|
"font-size": e.value.style.dataLabel.fontSize,
|
|
164
162
|
fill: L.value,
|
|
165
163
|
"font-weight": e.value.style.dataLabel.bold ? "bold" : "normal"
|
|
166
|
-
},
|
|
164
|
+
}, g(i(Q)(
|
|
167
165
|
e.value.style.dataLabel.formatter,
|
|
168
|
-
|
|
169
|
-
|
|
166
|
+
i(m)(l.value),
|
|
167
|
+
i(W)({
|
|
170
168
|
p: e.value.style.dataLabel.prefix,
|
|
171
|
-
v:
|
|
169
|
+
v: i(m)(l.value),
|
|
172
170
|
s: e.value.style.dataLabel.suffix,
|
|
173
171
|
r: e.value.style.dataLabel.rounding
|
|
174
172
|
}),
|
|
175
|
-
{ datapoint:
|
|
176
|
-
)), 9,
|
|
177
|
-
], 8,
|
|
178
|
-
p.value ?
|
|
173
|
+
{ datapoint: i(m)(l.value), color: L.value }
|
|
174
|
+
)), 9, ne)
|
|
175
|
+
], 8, ee)) : v("", !0),
|
|
176
|
+
p.value ? v("", !0) : (n(), U(i(B), {
|
|
179
177
|
key: 2,
|
|
180
178
|
config: {
|
|
181
179
|
type: "gauge",
|
|
@@ -187,17 +185,17 @@ const Z = ["xmlns", "viewBox"], ee = ["width", "height"], te = ["id"], ae = ["st
|
|
|
187
185
|
}
|
|
188
186
|
}
|
|
189
187
|
}, null, 8, ["config"])),
|
|
190
|
-
e.value.style.title.show && f.value && e.value.style.title.position === "bottom" ? (
|
|
188
|
+
e.value.style.title.show && f.value && e.value.style.title.position === "bottom" ? (n(), r("div", {
|
|
191
189
|
key: 3,
|
|
192
190
|
class: "vue-data-ui-sparkgauge-label",
|
|
193
|
-
style:
|
|
194
|
-
},
|
|
195
|
-
t.$slots.source ? (
|
|
196
|
-
|
|
197
|
-
], 512)) :
|
|
191
|
+
style: y(`font-size:${e.value.style.title.fontSize}px;text-align:${e.value.style.title.textAlign};font-weight:${e.value.style.title.bold ? "bold" : "normal"};font-weight:${e.value.style.title.bold ? "bold" : "normal"};color:${e.value.style.title.color}`)
|
|
192
|
+
}, g(f.value), 5)) : v("", !0),
|
|
193
|
+
t.$slots.source ? (n(), r("div", ie, [
|
|
194
|
+
z(t.$slots, "source")
|
|
195
|
+
], 512)) : v("", !0)
|
|
198
196
|
], 4));
|
|
199
197
|
}
|
|
200
198
|
};
|
|
201
199
|
export {
|
|
202
|
-
|
|
200
|
+
fe as default
|
|
203
201
|
};
|