vue-data-ui 3.24.0 → 3.24.1
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/{PackageVersion-CrLLZ567.js → PackageVersion-DtE5p3O7.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-label.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{package-DwX5gXIb.js → package-Bat6pcGG.js} +1 -1
- package/dist/{render-common-DruozHP7.js → render-common-CSapi1Tq.js} +1 -1
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +2 -0
- package/dist/{useConfig-BtJSJ6AK.js → useConfig-DcMi9POF.js} +16 -10
- package/dist/{useObjectBindings-CgRKOMSB.js → useObjectBindings-C1q6rUju.js} +1 -1
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-C37q2rbt.js → vue-data-ui-C0fmRYow.js} +69 -69
- package/dist/vue-data-ui.js +70 -70
- package/dist/{vue-ui-3d-bar-B_z643_d.js → vue-ui-3d-bar-ChPC71Co.js} +2 -2
- package/dist/{vue-ui-accordion-BhOSscZB.js → vue-ui-accordion-JvX3LRnx.js} +1 -1
- package/dist/{vue-ui-age-pyramid-CS1J-mHZ.js → vue-ui-age-pyramid-BYbPULSz.js} +2 -2
- package/dist/{vue-ui-annotator-DmTbmRrw.js → vue-ui-annotator-CP_yXH6-.js} +2 -2
- package/dist/{vue-ui-bullet-BUuF_-rE.js → vue-ui-bullet-q_4VhquE.js} +2 -2
- package/dist/{vue-ui-bump-Dt13LCR2.js → vue-ui-bump-BDzA8rut.js} +2 -2
- package/dist/{vue-ui-candlestick-CgvK082R.js → vue-ui-candlestick-37VcRMeY.js} +2 -2
- package/dist/{vue-ui-carousel-table-C6IZZLpG.js → vue-ui-carousel-table-DqSCFkVD.js} +2 -2
- package/dist/{vue-ui-chestnut-B03dTYpe.js → vue-ui-chestnut-BKNzHCli.js} +2 -2
- package/dist/{vue-ui-chord-R7YLYkOS.js → vue-ui-chord-CaqZO79L.js} +2 -2
- package/dist/{vue-ui-circle-pack-CxIJbXSK.js → vue-ui-circle-pack-DuagAe7S.js} +2 -2
- package/dist/{vue-ui-cursor-Bqm8zbqD.js → vue-ui-cursor-UznztJgM.js} +2 -2
- package/dist/{vue-ui-dag-TqlqeLgZ.js → vue-ui-dag-DayEAerz.js} +2 -2
- package/dist/{vue-ui-dashboard-W0PV1gGV.js → vue-ui-dashboard-PVDbL2as.js} +65 -65
- package/dist/{vue-ui-digits-D3VKW9O0.js → vue-ui-digits-ANtccD2D.js} +2 -2
- package/dist/{vue-ui-donut-C_CUqRdv.js → vue-ui-donut-B2SN01C2.js} +2 -2
- package/dist/{vue-ui-donut-8W7ZV_hU.js → vue-ui-donut-BmIwx_4X.js} +2 -2
- package/dist/{vue-ui-donut-evolution-CHQHSkpq.js → vue-ui-donut-evolution-DmOcFGM2.js} +2 -2
- package/dist/{vue-ui-dumbbell-D3G5uL-P.js → vue-ui-dumbbell-BTYjJwdn.js} +2 -2
- package/dist/{vue-ui-flow-CjvO8Fsp.js → vue-ui-flow-Brgb7h1u.js} +2 -2
- package/dist/{vue-ui-funnel-eHR9hTpj.js → vue-ui-funnel-Bakw8upJ.js} +2 -2
- package/dist/{vue-ui-galaxy-DBarvxFP.js → vue-ui-galaxy-CHXQeZWX.js} +2 -2
- package/dist/{vue-ui-gauge-Cz6PC_H5.js → vue-ui-gauge-CyNuXMfH.js} +2 -2
- package/dist/{vue-ui-geo-BmjzP6NK.js → vue-ui-geo-CD0mHBGl.js} +2 -2
- package/dist/{vue-ui-gizmo-BChwImvX.js → vue-ui-gizmo-BPIlDZzj.js} +2 -2
- package/dist/{vue-ui-heatmap-h0_V5jv6.js → vue-ui-heatmap-DRBR2Nat.js} +3 -3
- package/dist/{vue-ui-hill-D_2DFdNy.js → vue-ui-hill-CpPVpCqp.js} +2 -2
- package/dist/{vue-ui-history-plot-Bis3f9Ub.js → vue-ui-history-plot-Dbgh6ZMG.js} +2 -2
- package/dist/{vue-ui-horizontal-bar-2AOgQ694.js → vue-ui-horizontal-bar-CcbktPgh.js} +3 -3
- package/dist/{vue-ui-kpi-k0yLSsqF.js → vue-ui-kpi-CCW0CCsE.js} +2 -2
- package/dist/{vue-ui-label-aHnVFvfK.js → vue-ui-label-C5KLiynU.js} +1 -1
- package/dist/{vue-ui-mini-loader-DUsSEO5b.js → vue-ui-mini-loader-Cciw-UGb.js} +1 -1
- package/dist/{vue-ui-molecule--1J4__BY.js → vue-ui-molecule-CAcS9ieT.js} +2 -2
- package/dist/{vue-ui-mood-radar-BEruKK_i.js → vue-ui-mood-radar-CH3rh85o.js} +2 -2
- package/dist/{vue-ui-nested-donuts-MBeHoc-t.js → vue-ui-nested-donuts-DszZU11H.js} +2 -2
- package/dist/{vue-ui-onion-j0eEGvru.js → vue-ui-onion-DB5c36QB.js} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-BvuYSu3N.js → vue-ui-parallel-coordinate-plot-X6D_5Mj4.js} +2 -2
- package/dist/{vue-ui-quadrant-DWtwr7JT.js → vue-ui-quadrant-C8Y-yWaA.js} +2 -2
- package/dist/{vue-ui-quick-chart-vhICAvQe.js → vue-ui-quick-chart-CCVKDf4q.js} +2 -2
- package/dist/{vue-ui-radar-e9eoRxOC.js → vue-ui-radar-1xUvbkGR.js} +2 -2
- package/dist/{vue-ui-rating-WsMfVsJN.js → vue-ui-rating-C7HEmcRF.js} +1 -1
- package/dist/{vue-ui-relation-circle-NgJ8121q.js → vue-ui-relation-circle-Be3arMpy.js} +2 -2
- package/dist/{vue-ui-ridgeline-BZ1Czz8V.js → vue-ui-ridgeline-hr0s0GV0.js} +2 -2
- package/dist/{vue-ui-rings-grgJPuxE.js → vue-ui-rings-DaXIzfV_.js} +4 -4
- package/dist/{vue-ui-scatter-DuqZxbZD.js → vue-ui-scatter-QNsbsTU3.js} +2 -2
- package/dist/{vue-ui-skeleton-CnexlOV6.js → vue-ui-skeleton-1fsWFan-.js} +2 -2
- package/dist/{vue-ui-smiley-Bvs5RJtM.js → vue-ui-smiley-CN4OtE_a.js} +1 -1
- package/dist/{vue-ui-spark-trend-C2knAS0F.js → vue-ui-spark-trend-CeuwSIJP.js} +2 -2
- package/dist/vue-ui-sparkbar-BykHIrxz.js +401 -0
- package/dist/{vue-ui-sparkgauge-CCkcq4Wh.js → vue-ui-sparkgauge-irYUg_Rc.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-B-fzheQo.js → vue-ui-sparkhistogram-DzNLp6Cm.js} +2 -2
- package/dist/{vue-ui-sparkline-DVYlqELY.js → vue-ui-sparkline-BJuiIvej.js} +2 -2
- package/dist/vue-ui-sparkstackbar-CocakHUY.js +738 -0
- package/dist/{vue-ui-stackbar-CIUS0xkc.js → vue-ui-stackbar-DHAf4jiH.js} +2 -2
- package/dist/{vue-ui-stackline-Dy4tIQwk.js → vue-ui-stackline-DhI6OUVZ.js} +2 -2
- package/dist/{vue-ui-strip-plot-Sshmlk9v.js → vue-ui-strip-plot-DxbyNG63.js} +2 -2
- package/dist/{vue-ui-table-DSUvcqI9.js → vue-ui-table-BjXS95bg.js} +3 -3
- package/dist/{vue-ui-table-heatmap-btnDozZ-.js → vue-ui-table-heatmap-CQGZCO11.js} +1 -1
- package/dist/{vue-ui-table-sparkline-C12IgrZG.js → vue-ui-table-sparkline-uZFaAqdt.js} +2 -2
- package/dist/{vue-ui-thermometer-3ZSPCE1q.js → vue-ui-thermometer-9U-zKD__.js} +2 -2
- package/dist/{vue-ui-timer-Birf1RVz.js → vue-ui-timer-Bm3CbIuS.js} +2 -2
- package/dist/{vue-ui-tiremarks-BuzKLW5l.js → vue-ui-tiremarks-CdRfwM99.js} +2 -2
- package/dist/{vue-ui-treemap-DMwq5MYv.js → vue-ui-treemap-5i3XHRb4.js} +2 -2
- package/dist/{vue-ui-waffle-wjn4e1mz.js → vue-ui-waffle-nSiwg2fY.js} +2 -2
- package/dist/{vue-ui-wheel-BS6f8xC-.js → vue-ui-wheel-dpWC3-wh.js} +2 -2
- package/dist/{vue-ui-word-cloud-BH1JB5hg.js → vue-ui-word-cloud-BVU-x59g.js} +2 -2
- package/dist/{vue-ui-world-DtNML6Oz.js → vue-ui-world-CwI1vCHG.js} +2 -2
- package/dist/{vue-ui-xy-B9S7cAhC.js → vue-ui-xy-BKb9YmVU.js} +3 -3
- package/dist/{vue-ui-xy-DNvRGCN_.js → vue-ui-xy-DqSbxddV.js} +2 -2
- package/dist/{vue-ui-xy-canvas-Hk0x8dd_.js → vue-ui-xy-canvas-Bs_O-0UT.js} +2 -2
- package/package.json +3 -3
- package/dist/vue-ui-sparkbar-Daxkni2h.js +0 -400
- package/dist/vue-ui-sparkstackbar-pip0BOeZ.js +0 -688
|
@@ -1,400 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { Ht as t, It as n, Jt as r, Nt as i, S as a, Ut as ee, X as o, Xt as s, i as c, mt as te, nt as l, q as u, t as ne, w as re } from "./lib-DfMn_3jf.js";
|
|
3
|
-
import { n as ie, t as ae } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { t as d } from "./useConfig-BtJSJ6AK.js";
|
|
5
|
-
import { n as f, t as oe } from "./BaseScanner-DZvpgOjM.js";
|
|
6
|
-
import { t as p } from "./useNestedProp-CLEe1P5W.js";
|
|
7
|
-
import { t as se } from "./useThemeCheck-C43Tcqmk.js";
|
|
8
|
-
import { t as ce } from "./DefGrad-DVBqDjhO.js";
|
|
9
|
-
import { t as le } from "./usePrefersMotion-BC-CsqR1.js";
|
|
10
|
-
import { t as ue } from "./vue_ui_sparkbar-z6qO--Kf.js";
|
|
11
|
-
import { Fragment as m, computed as h, createBlock as de, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createVNode as y, defineAsyncComponent as fe, guardReactiveProps as b, mergeProps as x, nextTick as pe, normalizeProps as me, normalizeStyle as S, onMounted as C, openBlock as w, ref as T, renderList as he, renderSlot as E, toDisplayString as D, toRefs as O, unref as k, useSlots as A, watch as j } from "vue";
|
|
12
|
-
//#region src/components/vue-ui-sparkbar.vue
|
|
13
|
-
var M = /* @__PURE__ */ e({ default: () => z }), N = [
|
|
14
|
-
"onClick",
|
|
15
|
-
"onMouseenter",
|
|
16
|
-
"onMouseleave"
|
|
17
|
-
], P = {
|
|
18
|
-
key: 1,
|
|
19
|
-
class: "vue-ui-sparkbar-datapoint-value"
|
|
20
|
-
}, F = ["xmlns", "viewBox"], I = [
|
|
21
|
-
"height",
|
|
22
|
-
"width",
|
|
23
|
-
"fill",
|
|
24
|
-
"rx"
|
|
25
|
-
], L = [
|
|
26
|
-
"height",
|
|
27
|
-
"width",
|
|
28
|
-
"fill",
|
|
29
|
-
"rx"
|
|
30
|
-
], R = [
|
|
31
|
-
"height",
|
|
32
|
-
"width",
|
|
33
|
-
"fill",
|
|
34
|
-
"rx"
|
|
35
|
-
], ge = {
|
|
36
|
-
key: 2,
|
|
37
|
-
ref: "source",
|
|
38
|
-
dir: "auto"
|
|
39
|
-
}, z = {
|
|
40
|
-
__name: "vue-ui-sparkbar",
|
|
41
|
-
props: {
|
|
42
|
-
config: {
|
|
43
|
-
type: Object,
|
|
44
|
-
default() {
|
|
45
|
-
return {};
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
dataset: {
|
|
49
|
-
type: Array,
|
|
50
|
-
default() {
|
|
51
|
-
return [];
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
backgroundOpacity: {
|
|
55
|
-
type: Number,
|
|
56
|
-
default: null
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
emits: ["selectDatapoint"],
|
|
60
|
-
setup(e, { emit: M }) {
|
|
61
|
-
let z = fe(() => import("./PackageVersion-CrLLZ567.js").then((e) => e.t)), { vue_ui_sparkbar: _e } = d(), { isThemeValid: ve, warnInvalidTheme: ye } = se(), B = le(), V = e, be = A(), H = T(u()), U = T(q()), W = h(() => U.value.debug);
|
|
62
|
-
C(() => {
|
|
63
|
-
be["chart-background"] && W.value && console.warn("VueUiSparkbar does not support the #chart-background slot.");
|
|
64
|
-
}), ie({
|
|
65
|
-
config: () => U.value,
|
|
66
|
-
dataset: () => V.dataset,
|
|
67
|
-
component: "VueUiSparkbar",
|
|
68
|
-
rules: [ae.noHint]
|
|
69
|
-
});
|
|
70
|
-
let xe = h(() => s({
|
|
71
|
-
defaultConfig: { style: {
|
|
72
|
-
backgroundColor: "#99999930",
|
|
73
|
-
animation: { show: !1 },
|
|
74
|
-
layout: { independant: !0 },
|
|
75
|
-
gutter: {
|
|
76
|
-
backgroundColor: "#6A6A6A",
|
|
77
|
-
opacity: 50
|
|
78
|
-
},
|
|
79
|
-
bar: { gradient: { underlayerColor: "#6A6A6A" } }
|
|
80
|
-
} },
|
|
81
|
-
userConfig: U.value.skeletonConfig ?? {}
|
|
82
|
-
})), { loading: G, FINAL_DATASET: K, manualLoading: Se } = f({
|
|
83
|
-
...O(V),
|
|
84
|
-
FINAL_CONFIG: U,
|
|
85
|
-
prepareConfig: q,
|
|
86
|
-
skeletonDataset: V.config?.skeletonDataset ?? [
|
|
87
|
-
{
|
|
88
|
-
name: "_",
|
|
89
|
-
value: 21,
|
|
90
|
-
target: 25,
|
|
91
|
-
color: "#808080"
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
name: "_",
|
|
95
|
-
value: 13,
|
|
96
|
-
target: 25,
|
|
97
|
-
color: "#ADADAD"
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
name: "_",
|
|
101
|
-
value: 8,
|
|
102
|
-
target: 25,
|
|
103
|
-
color: "#DBDBDB"
|
|
104
|
-
}
|
|
105
|
-
],
|
|
106
|
-
skeletonConfig: s({
|
|
107
|
-
defaultConfig: U.value,
|
|
108
|
-
userConfig: xe.value
|
|
109
|
-
})
|
|
110
|
-
});
|
|
111
|
-
function q() {
|
|
112
|
-
let e = p({
|
|
113
|
-
userConfig: V.config,
|
|
114
|
-
defaultConfig: _e
|
|
115
|
-
}), t = e.theme;
|
|
116
|
-
if (!t) return e;
|
|
117
|
-
if (!ve.value(e)) return ye(e), e;
|
|
118
|
-
let i = p({
|
|
119
|
-
userConfig: ue[t] || V.config,
|
|
120
|
-
defaultConfig: e
|
|
121
|
-
}), a = p({
|
|
122
|
-
userConfig: V.config,
|
|
123
|
-
defaultConfig: i
|
|
124
|
-
});
|
|
125
|
-
return {
|
|
126
|
-
...a,
|
|
127
|
-
customPalette: a.customPalette.length ? a.customPalette : r[t] || n
|
|
128
|
-
};
|
|
129
|
-
}
|
|
130
|
-
j(() => V.config, (e) => {
|
|
131
|
-
U.value = q();
|
|
132
|
-
}, { deep: !0 });
|
|
133
|
-
let Ce = h(() => re(U.value.customPalette)), J = T(K.value.map((e) => ({
|
|
134
|
-
...e,
|
|
135
|
-
value: U.value.style.animation.show ? 0 : e.value || 0,
|
|
136
|
-
formatter: e.formatter || null
|
|
137
|
-
}))), Y = T(null);
|
|
138
|
-
C(async () => {
|
|
139
|
-
i(V.dataset) && l({
|
|
140
|
-
componentName: "VueUiSparkbar",
|
|
141
|
-
type: "dataset",
|
|
142
|
-
debug: W.value
|
|
143
|
-
}), X();
|
|
144
|
-
});
|
|
145
|
-
function X() {
|
|
146
|
-
if (U.value.style.animation.show && !B.value) {
|
|
147
|
-
let e = U.value.style.animation.animationFrames, t = K.value.map((t, n) => t.value / e), n = K.value.map((e) => e.value || 0).reduce((e, t) => e + t, 0), r = 0;
|
|
148
|
-
function i() {
|
|
149
|
-
r += n / e, r < n ? (J.value = J.value.map((e, n) => ({
|
|
150
|
-
...e,
|
|
151
|
-
value: e.value += t[n]
|
|
152
|
-
})), Y.value = requestAnimationFrame(i)) : J.value = K.value.map((e) => ({
|
|
153
|
-
...e,
|
|
154
|
-
value: e.value || 0,
|
|
155
|
-
formatter: e.formatter || null
|
|
156
|
-
}));
|
|
157
|
-
}
|
|
158
|
-
i();
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
j(() => K.value, async (e) => {
|
|
162
|
-
cancelAnimationFrame(Y.value), J.value = K.value.map((e) => ({
|
|
163
|
-
...e,
|
|
164
|
-
value: U.value.style.animation.show && !B.value ? 0 : e.value || 0,
|
|
165
|
-
formatter: e.formatter || null
|
|
166
|
-
})), pe(X);
|
|
167
|
-
}, { deep: !0 });
|
|
168
|
-
let Z = T({
|
|
169
|
-
width: 500,
|
|
170
|
-
height: 16
|
|
171
|
-
}), we = h(() => Math.max(...K.value.map((e) => e.value))), Te = h(() => (W.value && K.value.forEach((e, t) => {
|
|
172
|
-
te({
|
|
173
|
-
datasetObject: e,
|
|
174
|
-
requiredAttributes: ["name", "value"]
|
|
175
|
-
}).forEach((e) => {
|
|
176
|
-
l({
|
|
177
|
-
componentName: "VueUiSparkbar",
|
|
178
|
-
type: "datasetSerieAttribute",
|
|
179
|
-
property: e,
|
|
180
|
-
index: t
|
|
181
|
-
});
|
|
182
|
-
});
|
|
183
|
-
}), J.value.map((e, t) => ({
|
|
184
|
-
...e,
|
|
185
|
-
value: e.value || 0,
|
|
186
|
-
color: a(e.color) || Ce.value[t] || n[t] || n[t % n.length]
|
|
187
|
-
}))));
|
|
188
|
-
function Ee(e) {
|
|
189
|
-
return e / we.value;
|
|
190
|
-
}
|
|
191
|
-
function Q(e) {
|
|
192
|
-
return U.value.style.layout.independant ? e.target ? e.value / e.target : U.value.style.layout.percentage ? e.value > 100 ? 1 : e.value / 100 : U.value.style.layout.target === 0 ? 1 : e.value / U.value.style.layout.target : Ee(e.value);
|
|
193
|
-
}
|
|
194
|
-
function $(e) {
|
|
195
|
-
return U.value.style.layout.independant && e.target || U.value.style.layout.target;
|
|
196
|
-
}
|
|
197
|
-
let De = M;
|
|
198
|
-
function Oe(e, t) {
|
|
199
|
-
De("selectDatapoint", {
|
|
200
|
-
datapoint: e,
|
|
201
|
-
index: t
|
|
202
|
-
}), U.value.events.datapointClick && U.value.events.datapointClick({
|
|
203
|
-
datapoint: e,
|
|
204
|
-
seriesIndex: t
|
|
205
|
-
});
|
|
206
|
-
}
|
|
207
|
-
function ke(e, t) {
|
|
208
|
-
U.value.events.datapointEnter && U.value.events.datapointEnter({
|
|
209
|
-
datapoint: e,
|
|
210
|
-
seriesIndex: t
|
|
211
|
-
});
|
|
212
|
-
}
|
|
213
|
-
function Ae(e, t) {
|
|
214
|
-
U.value.events.datapointLeave && U.value.events.datapointLeave({
|
|
215
|
-
datapoint: e,
|
|
216
|
-
seriesIndex: t
|
|
217
|
-
});
|
|
218
|
-
}
|
|
219
|
-
return (e, n) => (w(), _("div", {
|
|
220
|
-
class: "vue-data-ui-component vue-ui-sparkbar",
|
|
221
|
-
style: S({
|
|
222
|
-
width: "100%",
|
|
223
|
-
position: "relative",
|
|
224
|
-
fontFamily: U.value.style.fontFamily,
|
|
225
|
-
background: V.backgroundOpacity === null ? U.value.style.backgroundColor : k(t)(U.value.style.backgroundColor, V.backgroundOpacity)
|
|
226
|
-
})
|
|
227
|
-
}, [
|
|
228
|
-
e.$slots.title ? E(e.$slots, "title", me(b({ title: {
|
|
229
|
-
...e.title,
|
|
230
|
-
title: U.value.style.title.text,
|
|
231
|
-
subtitle: U.value.style.title.subtitle.text
|
|
232
|
-
} })), void 0, void 0, 0) : g("", !0),
|
|
233
|
-
!e.$slots.title && U.value.style.title.text ? (w(), _("div", {
|
|
234
|
-
key: 1,
|
|
235
|
-
class: "vue-ui-sparkbar-title-container",
|
|
236
|
-
style: S({
|
|
237
|
-
background: U.value.style.title.backgroundColor,
|
|
238
|
-
margin: U.value.style.title.margin,
|
|
239
|
-
textAlign: U.value.style.title.textAlign
|
|
240
|
-
})
|
|
241
|
-
}, [v("div", {
|
|
242
|
-
class: "vue-ui-sparkbar-title",
|
|
243
|
-
style: S({
|
|
244
|
-
fontSize: U.value.style.title.fontSize + "px",
|
|
245
|
-
color: U.value.style.title.color,
|
|
246
|
-
fontWeight: U.value.style.title.bold ? "bold" : "normal"
|
|
247
|
-
})
|
|
248
|
-
}, D(U.value.style.title.text), 5), U.value.style.title.subtitle.text ? (w(), _("div", {
|
|
249
|
-
key: 0,
|
|
250
|
-
class: "vue-ui-sparkbar-subtitle",
|
|
251
|
-
style: S({
|
|
252
|
-
fontSize: U.value.style.title.subtitle.fontSize + "px",
|
|
253
|
-
color: U.value.style.title.subtitle.color,
|
|
254
|
-
fontWeight: U.value.style.title.subtitle.bold ? "bold" : "normal"
|
|
255
|
-
})
|
|
256
|
-
}, D(U.value.style.title.subtitle.text), 5)) : g("", !0)], 4)) : g("", !0),
|
|
257
|
-
(w(!0), _(m, null, he(Te.value, (n, r) => (w(), _("div", {
|
|
258
|
-
style: S(`display:flex !important;${["left", "right"].includes(U.value.style.labels.name.position) ? `flex-direction: ${U.value.style.labels.name.position === "right" ? "row-reverse" : "row"} !important` : "flex-direction:column !important"};gap:${U.value.style.gap}px !important;align-items:center;${k(K).length > 0 && r !== k(K).length - 1 ? "margin-bottom:6px" : ""}`),
|
|
259
|
-
onClick: (e) => Oe(n, r),
|
|
260
|
-
onMouseenter: (e) => ke(n, r),
|
|
261
|
-
onMouseleave: (e) => Ae(n, r)
|
|
262
|
-
}, [
|
|
263
|
-
k(G) ? g("", !0) : E(e.$slots, "data-label", x({ ref_for: !0 }, { bar: {
|
|
264
|
-
...n,
|
|
265
|
-
target: $(n),
|
|
266
|
-
valueLabel: k(c)(n.formatter, n.value, k(o)({
|
|
267
|
-
p: n.prefix || "",
|
|
268
|
-
v: n.value,
|
|
269
|
-
s: n.suffix || "",
|
|
270
|
-
r: n.rounding || 0
|
|
271
|
-
}), {
|
|
272
|
-
datapoint: n,
|
|
273
|
-
seriesIndex: r
|
|
274
|
-
}),
|
|
275
|
-
targetLabel: k(c)(n.formatter, $(n), k(o)({
|
|
276
|
-
p: n.prefix || "",
|
|
277
|
-
v: $(n),
|
|
278
|
-
s: n.suffix || "",
|
|
279
|
-
r: n.rounding || 0
|
|
280
|
-
}), {
|
|
281
|
-
datapoint: n,
|
|
282
|
-
seriesIndex: r
|
|
283
|
-
})
|
|
284
|
-
} }), void 0, void 0, 0),
|
|
285
|
-
!e.$slots["data-label"] || k(G) ? (w(), _("div", {
|
|
286
|
-
key: 1,
|
|
287
|
-
style: S({
|
|
288
|
-
display: "flex",
|
|
289
|
-
justifyContent: ["right", "top-right"].includes(U.value.style.labels.name.position) ? "flex-end" : ["top-center"].includes(U.value.style.labels.name.position) ? "center" : "flex-start",
|
|
290
|
-
alignItems: "center",
|
|
291
|
-
width: U.value.style.labels.name.width,
|
|
292
|
-
color: U.value.style.labels.name.color,
|
|
293
|
-
fontSize: U.value.style.labels.fontSize + "px",
|
|
294
|
-
fontWeight: U.value.style.labels.name.bold ? "bold" : "normal",
|
|
295
|
-
flexWrap: "wrap"
|
|
296
|
-
})
|
|
297
|
-
}, [k(G) ? (w(), _("div", {
|
|
298
|
-
key: 0,
|
|
299
|
-
class: "vue-ui-sparkbar-skeleton-name",
|
|
300
|
-
style: S({
|
|
301
|
-
width: "60px",
|
|
302
|
-
height: U.value.style.labels.fontSize + "px",
|
|
303
|
-
borderRadius: U.value.style.labels.fontSize / 4 + "px",
|
|
304
|
-
display: "flex",
|
|
305
|
-
alignItems: "center",
|
|
306
|
-
justifyContent: "space-between",
|
|
307
|
-
marginTop: "5px"
|
|
308
|
-
})
|
|
309
|
-
}, [v("div", { style: S({
|
|
310
|
-
height: "100%",
|
|
311
|
-
width: "40px",
|
|
312
|
-
borderRadius: U.value.style.labels.fontSize / 4 + "px",
|
|
313
|
-
backgroundColor: "#6A6A6A80"
|
|
314
|
-
}) }, null, 4), v("div", { style: S({
|
|
315
|
-
height: "100%",
|
|
316
|
-
width: "15px",
|
|
317
|
-
borderRadius: U.value.style.labels.fontSize / 4 + "px",
|
|
318
|
-
backgroundColor: "#6A6A6A80"
|
|
319
|
-
}) }, null, 4)], 4)) : (w(), _(m, { key: 1 }, [
|
|
320
|
-
v("span", null, D(n.name), 1),
|
|
321
|
-
U.value.style.labels.value.show ? (w(), _("span", {
|
|
322
|
-
key: 0,
|
|
323
|
-
style: S(`font-weight:${U.value.style.labels.value.bold ? "bold" : "normal"}`),
|
|
324
|
-
class: "vue-ui-sparkbar-datapoint-name"
|
|
325
|
-
}, ": " + D(k(c)(n.formatter, n.value, k(o)({
|
|
326
|
-
p: n.prefix || "",
|
|
327
|
-
v: n.value,
|
|
328
|
-
s: n.suffix || "",
|
|
329
|
-
r: n.rounding || 0
|
|
330
|
-
}), {
|
|
331
|
-
datapoint: n,
|
|
332
|
-
seriesIndex: r
|
|
333
|
-
})), 5)) : g("", !0),
|
|
334
|
-
U.value.style.layout.showTargetValue ? (w(), _("span", P, D(" " + U.value.style.layout.targetValueText) + " " + D(k(c)(n.formatter, $(n), k(o)({
|
|
335
|
-
p: n.prefix || "",
|
|
336
|
-
v: $(n),
|
|
337
|
-
s: n.suffix || "",
|
|
338
|
-
r: n.rounding || 0
|
|
339
|
-
}), {
|
|
340
|
-
datapoint: n,
|
|
341
|
-
seriesIndex: r
|
|
342
|
-
})), 1)) : g("", !0)
|
|
343
|
-
], 64))], 4)) : g("", !0),
|
|
344
|
-
(w(), _("svg", {
|
|
345
|
-
role: "img",
|
|
346
|
-
xmlns: k(ne),
|
|
347
|
-
viewBox: `0 0 ${Z.value.width} ${Z.value.height}`,
|
|
348
|
-
width: "100%"
|
|
349
|
-
}, [
|
|
350
|
-
y(k(z)),
|
|
351
|
-
v("defs", null, [y(ce, {
|
|
352
|
-
t: "linear",
|
|
353
|
-
x1: "0%",
|
|
354
|
-
y1: "0%",
|
|
355
|
-
x2: "100%",
|
|
356
|
-
y2: "0%",
|
|
357
|
-
id: `sparkbar_gradient_${r}_${H.value}`,
|
|
358
|
-
stops: [[
|
|
359
|
-
"0%",
|
|
360
|
-
k(t)(k(ee)(n.color, .03), 100 - U.value.style.bar.gradient.intensity),
|
|
361
|
-
1
|
|
362
|
-
], [
|
|
363
|
-
"100%",
|
|
364
|
-
n.color,
|
|
365
|
-
1
|
|
366
|
-
]]
|
|
367
|
-
}, null, 8, ["id", "stops"])]),
|
|
368
|
-
v("rect", {
|
|
369
|
-
height: Z.value.height,
|
|
370
|
-
width: Z.value.width,
|
|
371
|
-
x: 0,
|
|
372
|
-
y: 0,
|
|
373
|
-
fill: k(t)(U.value.style.gutter.backgroundColor, U.value.style.gutter.opacity),
|
|
374
|
-
rx: Z.value.height / 2
|
|
375
|
-
}, null, 8, I),
|
|
376
|
-
v("rect", {
|
|
377
|
-
height: Z.value.height,
|
|
378
|
-
width: Z.value.width * Q(n),
|
|
379
|
-
x: 0,
|
|
380
|
-
y: 0,
|
|
381
|
-
fill: U.value.style.bar.gradient.underlayerColor,
|
|
382
|
-
rx: Z.value.height / 2
|
|
383
|
-
}, null, 8, L),
|
|
384
|
-
v("rect", {
|
|
385
|
-
height: Z.value.height,
|
|
386
|
-
width: Z.value.width * Q(n),
|
|
387
|
-
x: 0,
|
|
388
|
-
y: 0,
|
|
389
|
-
fill: U.value.style.bar.gradient.show ? `url(#sparkbar_gradient_${r}_${H.value})` : n.color,
|
|
390
|
-
rx: Z.value.height / 2
|
|
391
|
-
}, null, 8, R)
|
|
392
|
-
], 8, F))
|
|
393
|
-
], 44, N))), 256)),
|
|
394
|
-
e.$slots.source ? (w(), _("div", ge, [E(e.$slots, "source")], 512)) : g("", !0),
|
|
395
|
-
k(G) ? (w(), de(oe, { key: 3 })) : g("", !0)
|
|
396
|
-
], 4));
|
|
397
|
-
}
|
|
398
|
-
};
|
|
399
|
-
//#endregion
|
|
400
|
-
export { M as n, z as t };
|