vue-data-ui 3.1.17 → 3.1.18
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-DFX_NfRh.js → Arrow-BC5klzOh.js} +1 -1
- package/dist/{BaseDraggableDialog-CrCjMg89.js → BaseDraggableDialog-CkjMZyIs.js} +2 -2
- package/dist/{BaseIcon-7s-tCFcQ.js → BaseIcon-BPiT94Lb.js} +1 -1
- package/dist/{ColorPicker-BoLH_m_Z.js → ColorPicker-bx5e2RB2.js} +2 -2
- package/dist/{DataTable-Dw6dxJk3.js → DataTable-CywujQw9.js} +2 -2
- package/dist/{Legend-CjdnJGHq.js → Legend-h35dp0Qf.js} +2 -2
- package/dist/{NonSvgPenAndPaper-tX2IXHuz.js → NonSvgPenAndPaper-CvnlQ378.js} +3 -3
- package/dist/{PackageVersion-D1HToLlZ.js → PackageVersion-BzGzkGiC.js} +1 -1
- package/dist/{PenAndPaper-BKnXOYre.js → PenAndPaper-Deh70G9d.js} +3 -3
- package/dist/{Shape-6PexQroB.js → Shape-sVxD_SDm.js} +1 -1
- package/dist/{Slicer-BJkhMBk4.js → Slicer-CQB967He.js} +2 -2
- package/dist/{SparkTooltip-BtO1j0i1.js → SparkTooltip-DFRSPT3_.js} +1 -1
- package/dist/{Title-BVMfF0uu.js → Title-B_WMW2Bp.js} +1 -1
- package/dist/{Tooltip-DBvmoYXU.js → Tooltip-Db9jy0Iu.js} +1 -1
- package/dist/{UserOptions-CKzW9w0Q.js → UserOptions-CtECQwBN.js} +2 -2
- package/dist/{dom-to-png-D0wlWRL9.js → dom-to-png-BHpS3cMi.js} +1 -1
- package/dist/{img-CeCjiMpr.js → img-BArHHegM.js} +1 -1
- package/dist/{index-Lg17rmB1.js → index-smzxfsyV.js} +2 -2
- package/dist/{pdf-D5bgIg6W.js → pdf-D1L3r23x.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-BxqMb3sU.js → useAutoSizeLabelsInsideViewbox-DeqXeTNw.js} +1 -1
- package/dist/{useNestedProp-DpwLJMsW.js → useNestedProp-DeKmJzsE.js} +1 -1
- package/dist/{usePrinter-DGI4Mlad.js → usePrinter-nFj0xF0a.js} +2 -2
- package/dist/{vue-data-ui-lki09wwK.js → vue-data-ui-DcBYykse.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-8b3VZcUI.js → vue-ui-3d-bar-D4rc8PD3.js} +57 -57
- package/dist/{vue-ui-accordion-BJG-ogQj.js → vue-ui-accordion-7cfJUVx5.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Cr_dhyTO.js → vue-ui-age-pyramid-BXMIUNB_.js} +6 -6
- package/dist/{vue-ui-annotator-ttaqcMTz.js → vue-ui-annotator-aCDhQ-m2.js} +2 -2
- package/dist/{vue-ui-bullet-DXvTj07g.js → vue-ui-bullet-Cd_iix-z.js} +7 -7
- package/dist/{vue-ui-candlestick-B5NqFTXr.js → vue-ui-candlestick-C-TTTgiW.js} +7 -7
- package/dist/{vue-ui-carousel-table-B0bpCRFh.js → vue-ui-carousel-table-C58J4zpm.js} +4 -4
- package/dist/{vue-ui-chestnut-Cby7Wcbu.js → vue-ui-chestnut-C7u6GW-T.js} +5 -5
- package/dist/{vue-ui-chord-Cxg8nwzZ.js → vue-ui-chord-DxLU3Fg1.js} +8 -8
- package/dist/{vue-ui-circle-pack-Cc5e6dE3.js → vue-ui-circle-pack--a_KE7qz.js} +6 -6
- package/dist/{vue-ui-cursor-D6MvR7jD.js → vue-ui-cursor-DJQWAIj8.js} +2 -2
- package/dist/{vue-ui-dashboard-CaUM9n5b.js → vue-ui-dashboard-CIACUYB-.js} +67 -67
- package/dist/{vue-ui-digits-DsoHRv9p.js → vue-ui-digits-CLV8h-P8.js} +2 -2
- package/dist/{vue-ui-donut-evolution-CFu9WNVV.js → vue-ui-donut-evolution-XGJvBQIm.js} +8 -8
- package/dist/{vue-ui-donut-Dxsq1gpz.js → vue-ui-donut-sO6G5oor.js} +8 -8
- package/dist/{vue-ui-dumbbell-Cgb7ijQS.js → vue-ui-dumbbell-Bi11rDL7.js} +7 -7
- package/dist/{vue-ui-flow-Ucb9PdWP.js → vue-ui-flow-RP2v-aZJ.js} +7 -7
- package/dist/{vue-ui-funnel-CV29tksj.js → vue-ui-funnel-TVQXGyw7.js} +6 -6
- package/dist/{vue-ui-galaxy-CVJb9_hA.js → vue-ui-galaxy-CUURaWgH.js} +7 -7
- package/dist/{vue-ui-gauge-ofpIH29X.js → vue-ui-gauge-hTRlwARA.js} +125 -125
- package/dist/{vue-ui-gizmo-Ci9kN9VQ.js → vue-ui-gizmo-CZIgBvWV.js} +3 -3
- package/dist/{vue-ui-heatmap-BK_jorrw.js → vue-ui-heatmap-RKtFMgDP.js} +7 -7
- package/dist/{vue-ui-history-plot-Ce8BB4Tn.js → vue-ui-history-plot-fbTG7Mke.js} +7 -7
- package/dist/{vue-ui-kpi-DAHT9q6j.js → vue-ui-kpi-CfX-zUDS.js} +3 -3
- package/dist/{vue-ui-mini-loader-CuilTrcI.js → vue-ui-mini-loader-C1nANuMy.js} +2 -2
- package/dist/{vue-ui-molecule-C6suewK-.js → vue-ui-molecule-BU7T1ysb.js} +5 -5
- package/dist/{vue-ui-mood-radar-DPvGhgPI.js → vue-ui-mood-radar-Cb8cFWzE.js} +7 -7
- package/dist/{vue-ui-nested-donuts-BvPWp9Du.js → vue-ui-nested-donuts-DTZD8BTA.js} +7 -7
- package/dist/{vue-ui-onion-BZ0tfRV_.js → vue-ui-onion-5xmlEUsJ.js} +8 -8
- package/dist/{vue-ui-parallel-coordinate-plot-DqFj8hbo.js → vue-ui-parallel-coordinate-plot-Wc0TbyJH.js} +8 -8
- package/dist/{vue-ui-quadrant-Cg5e73ny.js → vue-ui-quadrant-BC99Cua7.js} +8 -8
- package/dist/{vue-ui-quick-chart-sABlk5nb.js → vue-ui-quick-chart-Cbv2UcEu.js} +6 -6
- package/dist/{vue-ui-radar-DYcoGzSu.js → vue-ui-radar-B-ey_fDA.js} +8 -8
- package/dist/{vue-ui-rating-1eguB-TH.js → vue-ui-rating-BNCKLcCa.js} +2 -2
- package/dist/{vue-ui-relation-circle-BeWuQDkk.js → vue-ui-relation-circle-CYFQcAgc.js} +7 -7
- package/dist/{vue-ui-ridgeline-CG7FefqU.js → vue-ui-ridgeline-B_6K1FTc.js} +8 -8
- package/dist/{vue-ui-rings-2eedFGuC.js → vue-ui-rings-D_BTgxYc.js} +8 -8
- package/dist/{vue-ui-scatter-CNtgNP5j.js → vue-ui-scatter-B69SYOfv.js} +8 -8
- package/dist/{vue-ui-skeleton-fqG3bKSz.js → vue-ui-skeleton-CpkwgALO.js} +3 -3
- package/dist/{vue-ui-smiley-D4bvSF9S.js → vue-ui-smiley-t16dEIoQ.js} +2 -2
- package/dist/vue-ui-spark-trend-DskdjYw4.js +336 -0
- package/dist/{vue-ui-sparkbar-D1FXZyQE.js → vue-ui-sparkbar-C-evQIq2.js} +81 -81
- package/dist/{vue-ui-sparkgauge-CHbbxg13.js → vue-ui-sparkgauge-DycVSHAs.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-BxYes64D.js → vue-ui-sparkhistogram-CZLnlSUD.js} +4 -4
- package/dist/{vue-ui-sparkline-CS3F5TFN.js → vue-ui-sparkline-C1nZRVTa.js} +169 -169
- package/dist/{vue-ui-sparkstackbar-CUSBwkUS.js → vue-ui-sparkstackbar-CUUeuwAI.js} +3 -3
- package/dist/{vue-ui-stackbar-CDihyp-i.js → vue-ui-stackbar-D27Wq8Y4.js} +9 -9
- package/dist/{vue-ui-strip-plot-D6MFuKnN.js → vue-ui-strip-plot-D-srKJUr.js} +7 -7
- package/dist/{vue-ui-table-COT59wVb.js → vue-ui-table-LcImk124.js} +4 -4
- package/dist/{vue-ui-table-heatmap--e8yw5yS.js → vue-ui-table-heatmap-BfXe_f0K.js} +5 -5
- package/dist/{vue-ui-table-sparkline-DnSLwUNN.js → vue-ui-table-sparkline-DyrnPNGv.js} +4 -4
- package/dist/{vue-ui-thermometer-ByiRARW0.js → vue-ui-thermometer-DxRDmz-L.js} +7 -7
- package/dist/{vue-ui-timer-DOQVdVN2.js → vue-ui-timer-Bbzb09O8.js} +5 -5
- package/dist/{vue-ui-tiremarks-BFXeJQNZ.js → vue-ui-tiremarks-DWy1Dkub.js} +6 -6
- package/dist/{vue-ui-treemap-s_O9rQUT.js → vue-ui-treemap-C3Ek_E4n.js} +8 -8
- package/dist/{vue-ui-vertical-bar-Bn-m5GKU.js → vue-ui-vertical-bar-CV3Mc1cX.js} +9 -9
- package/dist/{vue-ui-waffle-DmxaWHSw.js → vue-ui-waffle-D2mQJdcV.js} +8 -8
- package/dist/{vue-ui-wheel-zJ5U-h_D.js → vue-ui-wheel-zbog7bII.js} +6 -6
- package/dist/{vue-ui-word-cloud-BEnkOZdv.js → vue-ui-word-cloud-D9iZRkQP.js} +6 -6
- package/dist/{vue-ui-world-CkqoTL4V.js → vue-ui-world-D5dR5VdK.js} +6 -6
- package/dist/{vue-ui-xy-Uqdl2nk-.js → vue-ui-xy-Cll76_i9.js} +404 -414
- package/dist/{vue-ui-xy-canvas-cIU8Y1sD.js → vue-ui-xy-canvas-DJVXAfpL.js} +10 -10
- package/package.json +1 -1
- package/dist/vue-ui-spark-trend-GML5JJxY.js +0 -315
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineAsyncComponent as Z, useSlots as ee, onMounted as
|
|
2
|
-
import { u as ue, c as ie, t as re, a as ve, p as
|
|
3
|
-
import { u as
|
|
1
|
+
import { defineAsyncComponent as Z, useSlots as ee, onMounted as F, ref as x, toRefs as te, computed as w, watch as B, nextTick as le, createElementBlock as i, openBlock as n, normalizeStyle as d, unref as a, renderSlot as $, createCommentVNode as p, createBlock as ae, normalizeProps as oe, mergeProps as E, createElementVNode as v, toDisplayString as y, Fragment as M, renderList as se, createVNode as ne } from "vue";
|
|
2
|
+
import { u as ue, c as ie, t as re, a as ve, p as _, b as ce, d as de, o as pe, f as P, g as fe, e as ye, s as D, k as C, i as A, X as ge, x as me } from "./index-smzxfsyV.js";
|
|
3
|
+
import { u as V } from "./useNestedProp-DeKmJzsE.js";
|
|
4
4
|
import { u as he, B as xe } from "./BaseScanner-BgWxam9d.js";
|
|
5
|
-
const ke = ["onClick", "onMouseenter", "onMouseleave"], be = { key: 1 }, we = ["xmlns", "viewBox"],
|
|
5
|
+
const ke = ["onClick", "onMouseenter", "onMouseleave"], be = { key: 1 }, we = ["xmlns", "viewBox"], _e = ["id"], Ce = ["stop-color"], Ae = ["stop-color"], Se = ["height", "width", "fill", "rx"], $e = ["height", "width", "fill", "rx"], De = ["height", "width", "fill", "rx"], Ie = {
|
|
6
6
|
key: 2,
|
|
7
7
|
ref: "source",
|
|
8
8
|
dir: "auto"
|
|
@@ -30,15 +30,15 @@ const ke = ["onClick", "onMouseenter", "onMouseleave"], be = { key: 1 }, we = ["
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
emits: ["selectDatapoint"],
|
|
33
|
-
setup(
|
|
34
|
-
const U = Z(() => import("./PackageVersion-
|
|
35
|
-
|
|
33
|
+
setup(O, { emit: j }) {
|
|
34
|
+
const U = Z(() => import("./PackageVersion-BzGzkGiC.js")), { vue_ui_sparkbar: R } = ue(), f = O, W = ee();
|
|
35
|
+
F(() => {
|
|
36
36
|
W["chart-background"] && console.warn("VueUiSparkbar does not support the #chart-background slot.");
|
|
37
37
|
});
|
|
38
|
-
const
|
|
38
|
+
const I = x(ie()), e = x(S()), { loading: k, FINAL_DATASET: c } = he({
|
|
39
39
|
...te(f),
|
|
40
40
|
FINAL_CONFIG: e,
|
|
41
|
-
prepareConfig:
|
|
41
|
+
prepareConfig: S,
|
|
42
42
|
skeletonDataset: [
|
|
43
43
|
{ name: "_", value: 21, target: 25, color: "#808080" },
|
|
44
44
|
{ name: "_", value: 13, target: 25, color: "#ADADAD" },
|
|
@@ -63,109 +63,109 @@ const ke = ["onClick", "onMouseenter", "onMouseleave"], be = { key: 1 }, we = ["
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
})
|
|
66
|
-
}),
|
|
67
|
-
function
|
|
68
|
-
const t =
|
|
66
|
+
}), L = w(() => !!e.value.debug);
|
|
67
|
+
function S() {
|
|
68
|
+
const t = V({
|
|
69
69
|
userConfig: f.config,
|
|
70
70
|
defaultConfig: R
|
|
71
71
|
});
|
|
72
72
|
return t.theme ? {
|
|
73
|
-
...
|
|
74
|
-
userConfig:
|
|
73
|
+
...V({
|
|
74
|
+
userConfig: ce.vue_ui_sparkbar[t.theme] || f.config,
|
|
75
75
|
defaultConfig: t
|
|
76
76
|
}),
|
|
77
|
-
customPalette: ve[t.theme] ||
|
|
77
|
+
customPalette: ve[t.theme] || _
|
|
78
78
|
} : t;
|
|
79
79
|
}
|
|
80
|
-
|
|
81
|
-
e.value =
|
|
80
|
+
B(() => f.config, (t) => {
|
|
81
|
+
e.value = S();
|
|
82
82
|
}, { deep: !0 });
|
|
83
|
-
const G = w(() =>
|
|
83
|
+
const G = w(() => de(e.value.customPalette)), g = x(c.value.map((t) => ({
|
|
84
84
|
...t,
|
|
85
85
|
value: e.value.style.animation.show ? 0 : t.value || 0,
|
|
86
86
|
formatter: t.formatter || null
|
|
87
|
-
}))),
|
|
88
|
-
|
|
89
|
-
pe(f.dataset) &&
|
|
87
|
+
}))), T = x(null);
|
|
88
|
+
F(async () => {
|
|
89
|
+
pe(f.dataset) && P({
|
|
90
90
|
componentName: "VueUiSparkbar",
|
|
91
91
|
type: "dataset",
|
|
92
|
-
debug:
|
|
93
|
-
}),
|
|
92
|
+
debug: L.value
|
|
93
|
+
}), z();
|
|
94
94
|
});
|
|
95
|
-
function
|
|
95
|
+
function z() {
|
|
96
96
|
if (e.value.style.animation.show) {
|
|
97
97
|
let h = function() {
|
|
98
98
|
s += l / t, s < l ? (g.value = g.value.map((u, b) => ({
|
|
99
99
|
...u,
|
|
100
|
-
value: u.value +=
|
|
101
|
-
})),
|
|
100
|
+
value: u.value += o[b]
|
|
101
|
+
})), T.value = requestAnimationFrame(h)) : g.value = c.value.map((u) => ({
|
|
102
102
|
...u,
|
|
103
103
|
value: u.value || 0,
|
|
104
104
|
formatter: u.formatter || null
|
|
105
105
|
}));
|
|
106
106
|
};
|
|
107
|
-
const t = e.value.style.animation.animationFrames,
|
|
107
|
+
const t = e.value.style.animation.animationFrames, o = c.value.map((u, b) => u.value / t), l = c.value.map((u) => u.value || 0).reduce((u, b) => u + b, 0);
|
|
108
108
|
let s = 0;
|
|
109
109
|
h();
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
|
-
|
|
113
|
-
cancelAnimationFrame(
|
|
114
|
-
...
|
|
115
|
-
value: e.value.style.animation.show ? 0 :
|
|
116
|
-
formatter:
|
|
117
|
-
})), le(
|
|
112
|
+
B(() => c.value, async (t) => {
|
|
113
|
+
cancelAnimationFrame(T.value), g.value = c.value.map((o) => ({
|
|
114
|
+
...o,
|
|
115
|
+
value: e.value.style.animation.show ? 0 : o.value || 0,
|
|
116
|
+
formatter: o.formatter || null
|
|
117
|
+
})), le(z);
|
|
118
118
|
}, { deep: !0 });
|
|
119
119
|
const r = x({
|
|
120
120
|
width: 500,
|
|
121
121
|
height: 16
|
|
122
|
-
}), q = w(() => Math.max(...
|
|
122
|
+
}), q = w(() => Math.max(...c.value.map((t) => t.value))), H = w(() => (c.value.forEach((t, o) => {
|
|
123
123
|
fe({
|
|
124
124
|
datasetObject: t,
|
|
125
125
|
requiredAttributes: ["name", "value"]
|
|
126
126
|
}).forEach((l) => {
|
|
127
|
-
|
|
127
|
+
P({
|
|
128
128
|
componentName: "VueUiSparkbar",
|
|
129
129
|
type: "datasetSerieAttribute",
|
|
130
130
|
property: l,
|
|
131
|
-
index:
|
|
132
|
-
debug:
|
|
131
|
+
index: o,
|
|
132
|
+
debug: L.value
|
|
133
133
|
});
|
|
134
134
|
});
|
|
135
|
-
}), g.value.map((t,
|
|
135
|
+
}), g.value.map((t, o) => ({
|
|
136
136
|
...t,
|
|
137
137
|
value: t.value || 0,
|
|
138
|
-
color: ye(t.color) || G.value[
|
|
138
|
+
color: ye(t.color) || G.value[o] || _[o] || _[o % _.length]
|
|
139
139
|
}))));
|
|
140
140
|
function X(t) {
|
|
141
141
|
return t / q.value;
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function N(t) {
|
|
144
144
|
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 : X(t.value);
|
|
145
145
|
}
|
|
146
146
|
function m(t) {
|
|
147
147
|
return e.value.style.layout.independant && t.target || e.value.style.layout.target;
|
|
148
148
|
}
|
|
149
149
|
const J = j;
|
|
150
|
-
function K(t,
|
|
151
|
-
J("selectDatapoint", { datapoint: t, index:
|
|
150
|
+
function K(t, o) {
|
|
151
|
+
J("selectDatapoint", { datapoint: t, index: o }), e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: o });
|
|
152
152
|
}
|
|
153
|
-
function Q(t,
|
|
154
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex:
|
|
153
|
+
function Q(t, o) {
|
|
154
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: o });
|
|
155
155
|
}
|
|
156
|
-
function Y(t,
|
|
157
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex:
|
|
156
|
+
function Y(t, o) {
|
|
157
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: o });
|
|
158
158
|
}
|
|
159
|
-
return (t,
|
|
159
|
+
return (t, o) => (n(), i("div", {
|
|
160
160
|
class: "vue-ui-sparkbar",
|
|
161
161
|
style: d({
|
|
162
162
|
width: "100%",
|
|
163
163
|
position: "relative",
|
|
164
164
|
fontFamily: e.value.style.fontFamily,
|
|
165
|
-
background: f.backgroundOpacity !== null ?
|
|
165
|
+
background: f.backgroundOpacity !== null ? a(D)(e.value.style.backgroundColor, f.backgroundOpacity) : e.value.style.backgroundColor
|
|
166
166
|
})
|
|
167
167
|
}, [
|
|
168
|
-
t.$slots.title ?
|
|
168
|
+
t.$slots.title ? $(t.$slots, "title", oe(E({ key: 0 }, { title: { ...t.title, title: e.value.style.title.text, subtitle: e.value.style.title.subtitle.text } }))) : p("", !0),
|
|
169
169
|
!t.$slots.title && e.value.style.title.text ? (n(), i("div", {
|
|
170
170
|
key: 1,
|
|
171
171
|
class: "vue-ui-sparkbar-title-container",
|
|
@@ -191,24 +191,24 @@ const ke = ["onClick", "onMouseenter", "onMouseleave"], be = { key: 1 }, we = ["
|
|
|
191
191
|
color: e.value.style.title.subtitle.color,
|
|
192
192
|
fontWeight: e.value.style.title.subtitle.bold ? "bold" : "normal"
|
|
193
193
|
})
|
|
194
|
-
}, y(e.value.style.title.subtitle.text), 5)) :
|
|
195
|
-
], 4)) :
|
|
196
|
-
(n(!0), i(
|
|
197
|
-
style: d(`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;${
|
|
194
|
+
}, y(e.value.style.title.subtitle.text), 5)) : p("", !0)
|
|
195
|
+
], 4)) : p("", !0),
|
|
196
|
+
(n(!0), i(M, null, se(H.value, (l, s) => (n(), i("div", {
|
|
197
|
+
style: d(`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;${a(c).length > 0 && s !== a(c).length - 1 ? "margin-bottom:6px" : ""}`),
|
|
198
198
|
onClick: (h) => K(l, s),
|
|
199
199
|
onMouseenter: (h) => Q(l, s),
|
|
200
200
|
onMouseleave: (h) => Y(l, s)
|
|
201
201
|
}, [
|
|
202
|
-
|
|
202
|
+
a(k) ? p("", !0) : $(t.$slots, "data-label", E({
|
|
203
203
|
key: 0,
|
|
204
204
|
ref_for: !0
|
|
205
205
|
}, { bar: {
|
|
206
206
|
...l,
|
|
207
207
|
target: m(l),
|
|
208
|
-
valueLabel:
|
|
208
|
+
valueLabel: a(C)(
|
|
209
209
|
l.formatter,
|
|
210
210
|
l.value,
|
|
211
|
-
|
|
211
|
+
a(A)({
|
|
212
212
|
p: l.prefix || "",
|
|
213
213
|
v: l.value,
|
|
214
214
|
s: l.suffix || "",
|
|
@@ -216,10 +216,10 @@ const ke = ["onClick", "onMouseenter", "onMouseleave"], be = { key: 1 }, we = ["
|
|
|
216
216
|
}),
|
|
217
217
|
{ datapoint: l, seriesIndex: s }
|
|
218
218
|
),
|
|
219
|
-
targetLabel:
|
|
219
|
+
targetLabel: a(C)(
|
|
220
220
|
l.formatter,
|
|
221
221
|
m(l),
|
|
222
|
-
|
|
222
|
+
a(A)({
|
|
223
223
|
p: l.prefix || "",
|
|
224
224
|
v: m(l),
|
|
225
225
|
s: l.suffix || "",
|
|
@@ -228,7 +228,7 @@ const ke = ["onClick", "onMouseenter", "onMouseleave"], be = { key: 1 }, we = ["
|
|
|
228
228
|
{ datapoint: l, seriesIndex: s }
|
|
229
229
|
)
|
|
230
230
|
} })),
|
|
231
|
-
!t.$slots["data-label"] ||
|
|
231
|
+
!t.$slots["data-label"] || a(k) ? (n(), i("div", {
|
|
232
232
|
key: 1,
|
|
233
233
|
style: d({
|
|
234
234
|
display: "flex",
|
|
@@ -241,7 +241,7 @@ const ke = ["onClick", "onMouseenter", "onMouseleave"], be = { key: 1 }, we = ["
|
|
|
241
241
|
flexWrap: "wrap"
|
|
242
242
|
})
|
|
243
243
|
}, [
|
|
244
|
-
|
|
244
|
+
a(k) ? (n(), i("div", {
|
|
245
245
|
key: 0,
|
|
246
246
|
class: "vue-ui-sparkbar-skeleton-name",
|
|
247
247
|
style: d({
|
|
@@ -260,70 +260,70 @@ const ke = ["onClick", "onMouseenter", "onMouseleave"], be = { key: 1 }, we = ["
|
|
|
260
260
|
v("div", {
|
|
261
261
|
style: d({ height: "100%", width: "15px", borderRadius: e.value.style.labels.fontSize / 4 + "px", backgroundColor: "#6A6A6A80" })
|
|
262
262
|
}, null, 4)
|
|
263
|
-
], 4)) : (n(), i(
|
|
263
|
+
], 4)) : (n(), i(M, { key: 1 }, [
|
|
264
264
|
v("span", null, y(l.name), 1),
|
|
265
265
|
e.value.style.labels.value.show ? (n(), i("span", {
|
|
266
266
|
key: 0,
|
|
267
267
|
style: d(`font-weight:${e.value.style.labels.value.bold ? "bold" : "normal"}`)
|
|
268
|
-
}, ": " + y(
|
|
268
|
+
}, ": " + y(a(C)(
|
|
269
269
|
l.formatter,
|
|
270
270
|
l.value,
|
|
271
|
-
|
|
271
|
+
a(A)({
|
|
272
272
|
p: l.prefix || "",
|
|
273
273
|
v: l.value,
|
|
274
274
|
s: l.suffix || "",
|
|
275
275
|
r: l.rounding || 0
|
|
276
276
|
}),
|
|
277
277
|
{ datapoint: l, seriesIndex: s }
|
|
278
|
-
)), 5)) :
|
|
279
|
-
e.value.style.layout.showTargetValue ? (n(), i("span", be, y(" " + e.value.style.layout.targetValueText) + " " + y(
|
|
278
|
+
)), 5)) : p("", !0),
|
|
279
|
+
e.value.style.layout.showTargetValue ? (n(), i("span", be, y(" " + e.value.style.layout.targetValueText) + " " + y(a(C)(
|
|
280
280
|
l.formatter,
|
|
281
281
|
m(l),
|
|
282
|
-
|
|
282
|
+
a(A)({
|
|
283
283
|
p: l.prefix || "",
|
|
284
284
|
v: m(l),
|
|
285
285
|
s: l.suffix || "",
|
|
286
286
|
r: l.rounding || 0
|
|
287
287
|
}),
|
|
288
288
|
{ datapoint: l, seriesIndex: s }
|
|
289
|
-
)), 1)) :
|
|
289
|
+
)), 1)) : p("", !0)
|
|
290
290
|
], 64))
|
|
291
|
-
], 4)) :
|
|
291
|
+
], 4)) : p("", !0),
|
|
292
292
|
(n(), i("svg", {
|
|
293
|
-
xmlns:
|
|
293
|
+
xmlns: a(ge),
|
|
294
294
|
viewBox: `0 0 ${r.value.width} ${r.value.height}`,
|
|
295
295
|
width: "100%"
|
|
296
296
|
}, [
|
|
297
|
-
ne(
|
|
297
|
+
ne(a(U)),
|
|
298
298
|
v("defs", null, [
|
|
299
299
|
v("linearGradient", {
|
|
300
300
|
x1: "0%",
|
|
301
301
|
y1: "0%",
|
|
302
302
|
x2: "100%",
|
|
303
303
|
y2: "0%",
|
|
304
|
-
id: `sparkbar_gradient_${s}_${
|
|
304
|
+
id: `sparkbar_gradient_${s}_${I.value}`
|
|
305
305
|
}, [
|
|
306
306
|
v("stop", {
|
|
307
307
|
offset: "0%",
|
|
308
|
-
"stop-color":
|
|
309
|
-
}, null, 8,
|
|
308
|
+
"stop-color": a(D)(a(me)(l.color, 0.03), 100 - e.value.style.bar.gradient.intensity)
|
|
309
|
+
}, null, 8, Ce),
|
|
310
310
|
v("stop", {
|
|
311
311
|
offset: "100%",
|
|
312
312
|
"stop-color": l.color
|
|
313
313
|
}, null, 8, Ae)
|
|
314
|
-
], 8,
|
|
314
|
+
], 8, _e)
|
|
315
315
|
]),
|
|
316
316
|
v("rect", {
|
|
317
317
|
height: r.value.height,
|
|
318
318
|
width: r.value.width,
|
|
319
319
|
x: 0,
|
|
320
320
|
y: 0,
|
|
321
|
-
fill:
|
|
321
|
+
fill: a(D)(e.value.style.gutter.backgroundColor, e.value.style.gutter.opacity),
|
|
322
322
|
rx: r.value.height / 2
|
|
323
323
|
}, null, 8, Se),
|
|
324
324
|
v("rect", {
|
|
325
325
|
height: r.value.height,
|
|
326
|
-
width: r.value.width *
|
|
326
|
+
width: r.value.width * N(l),
|
|
327
327
|
x: 0,
|
|
328
328
|
y: 0,
|
|
329
329
|
fill: e.value.style.bar.gradient.underlayerColor,
|
|
@@ -331,18 +331,18 @@ const ke = ["onClick", "onMouseenter", "onMouseleave"], be = { key: 1 }, we = ["
|
|
|
331
331
|
}, null, 8, $e),
|
|
332
332
|
v("rect", {
|
|
333
333
|
height: r.value.height,
|
|
334
|
-
width: r.value.width *
|
|
334
|
+
width: r.value.width * N(l),
|
|
335
335
|
x: 0,
|
|
336
336
|
y: 0,
|
|
337
|
-
fill: e.value.style.bar.gradient.show ? `url(#sparkbar_gradient_${s}_${
|
|
337
|
+
fill: e.value.style.bar.gradient.show ? `url(#sparkbar_gradient_${s}_${I.value})` : l.color,
|
|
338
338
|
rx: r.value.height / 2
|
|
339
339
|
}, null, 8, De)
|
|
340
340
|
], 8, we))
|
|
341
341
|
], 44, ke))), 256)),
|
|
342
342
|
t.$slots.source ? (n(), i("div", Ie, [
|
|
343
|
-
|
|
344
|
-
], 512)) :
|
|
345
|
-
|
|
343
|
+
$(t.$slots, "source")
|
|
344
|
+
], 512)) : p("", !0),
|
|
345
|
+
a(k) ? (n(), ae(xe, { key: 3 })) : p("", !0)
|
|
346
346
|
], 4));
|
|
347
347
|
}
|
|
348
348
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineAsyncComponent as P, ref as b, toRefs as T, onMounted as N, computed as s, watch as M, createElementBlock as r, openBlock as u, normalizeStyle as g, createCommentVNode as d, createBlock as U, toDisplayString as k, unref as i, createVNode as q, createElementVNode as y, renderSlot as F, normalizeClass as V } from "vue";
|
|
2
|
-
import { u as B } from "./useNestedProp-
|
|
3
|
-
import { u as X, c as Y, t as H, b as J, o as K, f as E, g as Q, P as W, X as Z, k as ee, h as x, i as te } from "./index-
|
|
2
|
+
import { u as B } from "./useNestedProp-DeKmJzsE.js";
|
|
3
|
+
import { u as X, c as Y, t as H, b as J, o as K, f as E, g as Q, P as W, X as Z, k as ee, h as x, i as te } from "./index-smzxfsyV.js";
|
|
4
4
|
import { u as ae, B as le } from "./BaseScanner-BgWxam9d.js";
|
|
5
5
|
import { u as oe } from "./useChartAccessibility-9icAAmYg.js";
|
|
6
6
|
const se = ["xmlns", "viewBox"], ue = ["width", "height"], ie = ["id"], ne = ["stop-color"], re = ["stop-color"], ve = ["d", "stroke", "stroke-linecap"], ce = ["d", "stroke", "stroke-linecap", "stroke-dashoffset"], de = ["x", "y", "width", "height"], fe = ["x", "y", "font-size", "fill", "font-weight"], ye = {
|
|
@@ -24,7 +24,7 @@ const se = ["xmlns", "viewBox"], ue = ["width", "height"], ie = ["id"], ne = ["s
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
setup(D) {
|
|
27
|
-
const O = P(() => import("./PackageVersion-
|
|
27
|
+
const O = P(() => import("./PackageVersion-BzGzkGiC.js")), { vue_ui_sparkgauge: j } = X(), c = D, _ = b(Y()), e = b(p()), { loading: h, FINAL_DATASET: v } = ae({
|
|
28
28
|
...T(c),
|
|
29
29
|
FINAL_CONFIG: e,
|
|
30
30
|
prepareConfig: p,
|
|
@@ -53,7 +53,7 @@ const se = ["xmlns", "viewBox"], ue = ["width", "height"], ie = ["id"], ne = ["s
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
})
|
|
56
|
-
}), { svgRef: I } = oe({ config: { text: c.dataset
|
|
56
|
+
}), { svgRef: I } = oe({ config: { text: c.dataset?.title || "" } });
|
|
57
57
|
function p() {
|
|
58
58
|
const t = B({
|
|
59
59
|
userConfig: c.config,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { useCssVars as pe, computed as k, defineAsyncComponent as me, ref as y, toRefs as be, onMounted as U, watch as X, nextTick as j, createElementBlock as s, openBlock as a, normalizeStyle as S, createCommentVNode as c, createBlock as G, createElementVNode as g, createTextVNode as _e, toDisplayString as p, unref as n, createVNode as xe, renderSlot as q, Fragment as d, renderList as h, normalizeClass as Y } from "vue";
|
|
2
|
-
import { u as ke, c as Ce, t as Ae, b as we, o as $e, f as P, g as Le, s as m, k as J, i as K, X as ze, x as D } from "./index-
|
|
2
|
+
import { u as ke, c as Ce, t as Ae, b as we, o as $e, f as P, g as Le, s as m, k as J, i as K, X as ze, x as D } from "./index-smzxfsyV.js";
|
|
3
3
|
import { t as Se, u as Me } from "./useResponsive-DfdjqQps.js";
|
|
4
4
|
import { u as Fe, B as Ie } from "./BaseScanner-BgWxam9d.js";
|
|
5
5
|
import { u as Te } from "./useFitSvgText-2crs6Fv5.js";
|
|
6
|
-
import { u as Q } from "./useNestedProp-
|
|
6
|
+
import { u as Q } from "./useNestedProp-DeKmJzsE.js";
|
|
7
7
|
import { u as Ee } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import { _ as Ne } from "./Shape-
|
|
8
|
+
import { _ as Ne } from "./Shape-sVxD_SDm.js";
|
|
9
9
|
import { _ as De } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
10
|
const We = { key: 0 }, Ve = { key: 1 }, He = ["xmlns", "viewBox"], Oe = ["width", "height"], Re = ["id"], Be = ["stop-color"], Ue = ["stop-color"], Xe = ["id"], je = ["stop-color"], Ge = ["stop-color"], qe = ["id"], Ye = ["stop-color"], Pe = ["stop-color"], Je = ["height", "width", "fill", "x", "stroke", "stroke-width", "rx", "stroke-dasharray"], Ke = { key: 1 }, Qe = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "rx"], Ze = { key: 2 }, et = ["x", "y", "font-size", "font-weight", "fill"], tt = ["x", "y", "font-size", "fill"], lt = ["x", "y", "font-size", "fill"], at = ["height", "width", "x", "onMouseover", "onMouseleave", "onClick"], st = {
|
|
11
11
|
__name: "vue-ui-sparkhistogram",
|
|
@@ -28,7 +28,7 @@ const We = { key: 0 }, Ve = { key: 1 }, He = ["xmlns", "viewBox"], Oe = ["width"
|
|
|
28
28
|
pe((l) => ({
|
|
29
29
|
c8e2d1ee: ve.value
|
|
30
30
|
}));
|
|
31
|
-
const te = me(() => import("./PackageVersion-
|
|
31
|
+
const te = me(() => import("./PackageVersion-BzGzkGiC.js")), { vue_ui_sparkhistogram: le } = ke(), b = Z, _ = y(Ce()), W = y(null), V = y(null), M = y(null), C = y(null), w = y(null), e = y(T()), { loading: H, FINAL_DATASET: A } = Fe({
|
|
32
32
|
...be(b),
|
|
33
33
|
FINAL_CONFIG: e,
|
|
34
34
|
prepareConfig: T,
|