vue-data-ui 3.5.2 → 3.7.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 +36 -27
- package/dist/{Arrow-BGVin3AS.js → Arrow-CWYIBV-7.js} +1 -1
- package/dist/{BaseDraggableDialog-ymf2sfB8.js → BaseDraggableDialog-CRF94NJQ.js} +2 -2
- package/dist/{BaseIcon-BmMbm4d0.js → BaseIcon-CofSxalQ.js} +6 -5
- package/dist/{ColorPicker-ChuwChMo.js → ColorPicker-e1-OSGlQ.js} +10 -10
- package/dist/{DataTable-BT7VF2ua.js → DataTable-CHaOCmsE.js} +2 -2
- package/dist/{Legend-G6GMcdAc.js → Legend-Web3GjlR.js} +10 -10
- package/dist/{NonSvgPenAndPaper-DVgKKLIf.js → NonSvgPenAndPaper-CjYFLlns.js} +3 -3
- package/dist/{PackageVersion-Y7t79Jtq.js → PackageVersion-Bq_mtsqr.js} +1 -1
- package/dist/{PenAndPaper-SZQIAgkg.js → PenAndPaper-HCZQTkqi.js} +20 -20
- package/dist/{Shape-CNXKB8O0.js → Shape-DE6X_t31.js} +3 -3
- package/dist/{Slicer-D2wm0coO.js → Slicer-BFBBG6xv.js} +23 -23
- package/dist/{SlicerPreview-ij72TAs6.js → SlicerPreview-D76aSViW.js} +2 -2
- package/dist/{SparkTooltip-BEewz-_Q.js → SparkTooltip-B2rpVWE1.js} +6 -6
- package/dist/{Title-BzH_LEA3.js → Title-DfFUb9hd.js} +1 -1
- package/dist/{Tooltip-oWCO1HKy.js → Tooltip-WD0Ros6G.js} +1 -1
- package/dist/{UserOptions-CGnQt6Fd.js → UserOptions-B3I-s3Lw.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +3 -3
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +3 -3
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +3 -3
- package/dist/components/vue-ui-candlestick.js +3 -3
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +3 -3
- package/dist/components/vue-ui-chord.js +3 -3
- package/dist/components/vue-ui-circle-pack.js +3 -3
- package/dist/components/vue-ui-cursor.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 +2 -2
- package/dist/components/vue-ui-donut.js +3 -3
- package/dist/components/vue-ui-dumbbell.js +3 -3
- package/dist/components/vue-ui-flow.js +3 -3
- package/dist/components/vue-ui-funnel.js +2 -2
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.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-history-plot.js +3 -3
- package/dist/components/vue-ui-horizontal-bar.js +3 -3
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +3 -3
- package/dist/components/vue-ui-mood-radar.js +3 -3
- package/dist/components/vue-ui-nested-donuts.js +2 -2
- package/dist/components/vue-ui-onion.js +3 -3
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +3 -3
- package/dist/components/vue-ui-quick-chart.js +3 -3
- package/dist/components/vue-ui-radar.js +3 -3
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +3 -3
- package/dist/components/vue-ui-ridgeline.js +3 -3
- package/dist/components/vue-ui-rings.js +3 -3
- package/dist/components/vue-ui-scatter.js +3 -3
- 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 +2 -2
- package/dist/components/vue-ui-sparkgauge.js +3 -3
- package/dist/components/vue-ui-sparkhistogram.js +3 -3
- package/dist/components/vue-ui-sparkline.js +3 -3
- package/dist/components/vue-ui-sparkstackbar.js +2 -2
- package/dist/components/vue-ui-stackbar.js +3 -3
- package/dist/components/vue-ui-stackline.js +5 -0
- package/dist/components/vue-ui-strip-plot.js +3 -3
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +2 -2
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +3 -3
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +2 -2
- package/dist/components/vue-ui-treemap.js +3 -3
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +2 -2
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +3 -3
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +3 -3
- package/dist/components/vue-ui-xy.js +3 -3
- package/dist/{dom-to-png--BNgrTZV.js → dom-to-png-CH2DfsJe.js} +1 -1
- package/dist/{img-BecE5qXd.js → img-DUzJeMlr.js} +1 -1
- package/dist/{lib-C_mNZmhD.js → lib-C5BH09_g.js} +111 -110
- package/dist/{pdf-DuG5j3Wv.js → pdf-BSWQncok.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +303 -9
- package/dist/types/vue-ui-stackline.d.ts +18 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js → useAutoSizeLabelsInsideViewbox-DOALwU4q.js} +7 -7
- package/dist/{useNestedProp-CReNavA0.js → useNestedProp-CWo6bftQ.js} +535 -329
- package/dist/{usePrinter-DTzqpYKF.js → usePrinter-DCJzEiS8.js} +2 -2
- package/dist/useThemeCheck-DGJ31Vi5.js +32 -0
- package/dist/{useTimeLabels-BGFjWgrv.js → useTimeLabels-C5qMhpbe.js} +50 -49
- package/dist/{vue-data-ui-BRaq4hRp.js → vue-data-ui-ByLTJx5V.js} +79 -77
- package/dist/vue-data-ui.js +226 -204
- package/dist/{vue-ui-3d-bar-BB4ii8Nt.js → vue-ui-3d-bar-Dkds4k5N.js} +546 -517
- package/dist/{vue-ui-accordion-BmFTVF1a.js → vue-ui-accordion-DSdZUn2C.js} +3 -3
- package/dist/vue-ui-age-pyramid-C-fwZRYE.js +960 -0
- package/dist/{vue-ui-annotator-CcpaXBNK.js → vue-ui-annotator-DRaH8hXn.js} +7 -7
- package/dist/vue-ui-bullet-BKVJRjGh.js +657 -0
- package/dist/{vue-ui-candlestick-CMP7UL6z.js → vue-ui-candlestick-BKFWHU4O.js} +596 -561
- package/dist/{vue-ui-carousel-table-CzOcKsDj.js → vue-ui-carousel-table-VmPH6y2g.js} +48 -48
- package/dist/{vue-ui-chestnut-S787oASt.js → vue-ui-chestnut-DpMHe-OI.js} +534 -505
- package/dist/vue-ui-chord-Djdr0PY_.js +1182 -0
- package/dist/vue-ui-circle-pack-CyUqNJQt.js +832 -0
- package/dist/{vue-ui-cursor-C3yD_TUr.js → vue-ui-cursor-BMe8ZiV6.js} +2 -2
- package/dist/{vue-ui-dashboard-BfEcVRxQ.js → vue-ui-dashboard-eBXj-KCw.js} +140 -140
- package/dist/{vue-ui-digits-pRh179Gg.js → vue-ui-digits-D382I0-w.js} +2 -2
- package/dist/{vue-ui-donut-B_tEm4dT.js → vue-ui-donut-BLb0kj_P.js} +634 -602
- package/dist/vue-ui-donut-evolution-BqrldXpI.js +1243 -0
- package/dist/vue-ui-dumbbell-BuZT5a-d.js +1258 -0
- package/dist/vue-ui-flow-LLp6ntEP.js +1026 -0
- package/dist/vue-ui-funnel-pILUR-OG.js +743 -0
- package/dist/vue-ui-galaxy-X6yiw8kx.js +837 -0
- package/dist/vue-ui-gauge-DBh-vFb9.js +864 -0
- package/dist/{vue-ui-gizmo-BQzQlUJ8.js → vue-ui-gizmo-DtyEukIP.js} +3 -3
- package/dist/{vue-ui-heatmap-C9MhHWpp.js → vue-ui-heatmap-mkD6QkXo.js} +501 -466
- package/dist/vue-ui-history-plot-CyTaBaxA.js +1239 -0
- package/dist/{vue-ui-kpi-jcrPjW4C.js → vue-ui-kpi-CKMZDc3n.js} +3 -3
- package/dist/{vue-ui-mini-loader-DTM98mRN.js → vue-ui-mini-loader-BN72OfS0.js} +2 -2
- package/dist/vue-ui-molecule-UzQ3o5HW.js +782 -0
- package/dist/vue-ui-mood-radar-C2zkRLGy.js +930 -0
- package/dist/vue-ui-nested-donuts-B5OpvmJ9.js +1454 -0
- package/dist/vue-ui-onion-DbhIOGtF.js +944 -0
- package/dist/vue-ui-parallel-coordinate-plot-Dv_T4mWW.js +1080 -0
- package/dist/{vue-ui-quadrant-CeM23s0z.js → vue-ui-quadrant-CG6_CWsQ.js} +510 -481
- package/dist/{vue-ui-quick-chart-C0RMQzjC.js → vue-ui-quick-chart-DOeRhk7r.js} +795 -758
- package/dist/vue-ui-radar-DdHa9Hsh.js +1013 -0
- package/dist/{vue-ui-rating-tj97undO.js → vue-ui-rating-DtzmtJwF.js} +26 -26
- package/dist/vue-ui-relation-circle-B5lL4l9w.js +670 -0
- package/dist/vue-ui-ridgeline-3pk4Mlft.js +1302 -0
- package/dist/vue-ui-rings-DhyrjrZi.js +884 -0
- package/dist/vue-ui-scatter-DKCD70mi.js +1619 -0
- package/dist/{vue-ui-skeleton-87TORm6s.js → vue-ui-skeleton-CzzdmraB.js} +3 -3
- package/dist/{vue-ui-smiley-B74geHT3.js → vue-ui-smiley-OYyM-ukP.js} +2 -2
- package/dist/vue-ui-spark-trend-BMTcxeCT.js +364 -0
- package/dist/vue-ui-sparkbar-DVk1JiPL.js +381 -0
- package/dist/vue-ui-sparkgauge-Cq9Nw_xu.js +260 -0
- package/dist/vue-ui-sparkhistogram-PFHlCE_k.js +411 -0
- package/dist/vue-ui-sparkline-BHHwO_cV.js +549 -0
- package/dist/vue-ui-sparkstackbar-BosVkkiC.js +470 -0
- package/dist/vue-ui-stackbar-Djk5CPUy.js +1867 -0
- package/dist/vue-ui-stackline-mU4CSol9.js +1963 -0
- package/dist/{vue-ui-strip-plot-C1N2n39d.js → vue-ui-strip-plot-CZQSL0GK.js} +343 -314
- package/dist/{vue-ui-table-CcuoPHgI.js → vue-ui-table-DMM090pe.js} +5 -5
- package/dist/vue-ui-table-heatmap-vQEFrjCX.js +307 -0
- package/dist/{vue-ui-table-sparkline-BAxmZRff.js → vue-ui-table-sparkline-CQJc0mJY.js} +292 -263
- package/dist/vue-ui-thermometer-D1uxoVeZ.js +613 -0
- package/dist/{vue-ui-timer-BVsUQJz_.js → vue-ui-timer-jTnS3ES5.js} +25 -25
- package/dist/vue-ui-tiremarks-Bv-oIFVV.js +477 -0
- package/dist/vue-ui-treemap-B9MVtunp.js +1359 -0
- package/dist/{vue-ui-vertical-bar-B3gfBqD_.js → vue-ui-vertical-bar-BSbDj5qZ.js} +520 -485
- package/dist/{vue-ui-waffle-Bhlqo4xM.js → vue-ui-waffle-DIALVfvc.js} +376 -347
- package/dist/vue-ui-wheel-aUhrFpGk.js +690 -0
- package/dist/vue-ui-word-cloud-DZmMWsUu.js +904 -0
- package/dist/{vue-ui-world-C8KVyDim.js → vue-ui-world-CVLlgp2f.js} +57 -57
- package/dist/vue-ui-xy-Cy7mOurZ.js +3455 -0
- package/dist/vue-ui-xy-canvas-Cr13t9M5.js +1599 -0
- package/dist/vue_ui_vertical_bar-CELc39b8.js +18 -0
- package/package.json +5 -5
- package/dist/themes-AUNCOb2G.js +0 -53
- package/dist/vue-ui-age-pyramid-8bUepd28.js +0 -933
- package/dist/vue-ui-bullet-BvT4scFv.js +0 -630
- package/dist/vue-ui-chord-Dl9Y4mcz.js +0 -1153
- package/dist/vue-ui-circle-pack-CU09BzOV.js +0 -803
- package/dist/vue-ui-donut-evolution-DiGhMwMO.js +0 -1208
- package/dist/vue-ui-dumbbell-BlF3CLbN.js +0 -1231
- package/dist/vue-ui-flow-BQi5L8mJ.js +0 -991
- package/dist/vue-ui-funnel-CM_6Sare.js +0 -716
- package/dist/vue-ui-galaxy-BnZA62Li.js +0 -808
- package/dist/vue-ui-gauge-DAk72bez.js +0 -835
- package/dist/vue-ui-history-plot-BYQh3E8U.js +0 -1204
- package/dist/vue-ui-molecule-Bd1OXvl3.js +0 -753
- package/dist/vue-ui-mood-radar-DuoiTsYn.js +0 -903
- package/dist/vue-ui-nested-donuts-BTswQFjz.js +0 -1419
- package/dist/vue-ui-onion-D-1U2Qgl.js +0 -915
- package/dist/vue-ui-parallel-coordinate-plot-D-7VFHas.js +0 -1051
- package/dist/vue-ui-radar-BSfxyur3.js +0 -984
- package/dist/vue-ui-relation-circle-C7uV2mIj.js +0 -641
- package/dist/vue-ui-ridgeline-CYMfTlwI.js +0 -1273
- package/dist/vue-ui-rings-C96aj57d.js +0 -855
- package/dist/vue-ui-scatter-CtvOXUnx.js +0 -1590
- package/dist/vue-ui-spark-trend-6_Ibziyv.js +0 -337
- package/dist/vue-ui-sparkbar-BDCocMLI.js +0 -352
- package/dist/vue-ui-sparkgauge-CQ4Zk9-f.js +0 -233
- package/dist/vue-ui-sparkhistogram-BlTV9wfn.js +0 -384
- package/dist/vue-ui-sparkline-DWESyiqL.js +0 -514
- package/dist/vue-ui-sparkstackbar-DK_7X8mL.js +0 -441
- package/dist/vue-ui-stackbar-BWuw8ff4.js +0 -1827
- package/dist/vue-ui-table-heatmap-C9EMEM3Z.js +0 -282
- package/dist/vue-ui-thermometer-CDrM-WFq.js +0 -584
- package/dist/vue-ui-tiremarks-BQH2pNkG.js +0 -450
- package/dist/vue-ui-treemap-6WLoCHsH.js +0 -1330
- package/dist/vue-ui-wheel-CqHw1WuW.js +0 -663
- package/dist/vue-ui-word-cloud-CKuWZGLv.js +0 -875
- package/dist/vue-ui-xy-Cz2qIEfi.js +0 -3424
- package/dist/vue-ui-xy-canvas-y4h7gEFp.js +0 -1564
|
@@ -1,233 +0,0 @@
|
|
|
1
|
-
import { defineAsyncComponent as T, ref as b, toRefs as U, onMounted as N, computed as s, watch as M, createElementBlock as r, openBlock as u, normalizeStyle as g, createCommentVNode as d, createBlock as P, toDisplayString as k, unref as i, createVNode as q, createElementVNode as m, renderSlot as F, normalizeClass as V } from "vue";
|
|
2
|
-
import { u as X, a as B } from "./useNestedProp-CReNavA0.js";
|
|
3
|
-
import { c as Y, t as H, o as J, f as E, g as K, ae as Q, X as W, a as Z, x, d as ee } from "./lib-C_mNZmhD.js";
|
|
4
|
-
import { u as te, B as ae } from "./BaseScanner-BgWxam9d.js";
|
|
5
|
-
import { u as le } from "./useChartAccessibility-9icAAmYg.js";
|
|
6
|
-
import { t as oe } from "./themes-AUNCOb2G.js";
|
|
7
|
-
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"], me = {
|
|
8
|
-
key: 2,
|
|
9
|
-
ref: "source",
|
|
10
|
-
dir: "auto"
|
|
11
|
-
}, xe = {
|
|
12
|
-
__name: "vue-ui-sparkgauge",
|
|
13
|
-
props: {
|
|
14
|
-
config: {
|
|
15
|
-
type: Object,
|
|
16
|
-
default() {
|
|
17
|
-
return {};
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
dataset: {
|
|
21
|
-
type: Object,
|
|
22
|
-
default() {
|
|
23
|
-
return {};
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
setup(D) {
|
|
28
|
-
const O = T(() => import("./PackageVersion-Y7t79Jtq.js")), { vue_ui_sparkgauge: j } = X(), c = D, _ = b(Y()), e = b(p()), { loading: h, FINAL_DATASET: v } = te({
|
|
29
|
-
...U(c),
|
|
30
|
-
FINAL_CONFIG: e,
|
|
31
|
-
prepareConfig: p,
|
|
32
|
-
skeletonDataset: {
|
|
33
|
-
value: 0,
|
|
34
|
-
min: -1,
|
|
35
|
-
max: 1,
|
|
36
|
-
title: ""
|
|
37
|
-
},
|
|
38
|
-
skeletonConfig: H({
|
|
39
|
-
defaultConfig: e.value,
|
|
40
|
-
userConfig: {
|
|
41
|
-
style: {
|
|
42
|
-
animation: { show: !1 },
|
|
43
|
-
background: "#99999930",
|
|
44
|
-
colors: {
|
|
45
|
-
min: "#CACACA",
|
|
46
|
-
max: "#6A6A6A"
|
|
47
|
-
},
|
|
48
|
-
track: {
|
|
49
|
-
autoColor: !0
|
|
50
|
-
},
|
|
51
|
-
gutter: {
|
|
52
|
-
color: "#6A6A6A80"
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
})
|
|
57
|
-
}), { svgRef: I } = le({ config: { text: c.dataset?.title || "" } });
|
|
58
|
-
function p() {
|
|
59
|
-
const t = B({
|
|
60
|
-
userConfig: c.config,
|
|
61
|
-
defaultConfig: j
|
|
62
|
-
});
|
|
63
|
-
return t.theme ? {
|
|
64
|
-
...B({
|
|
65
|
-
userConfig: oe.vue_ui_sparkgauge[t.theme] || c.config,
|
|
66
|
-
defaultConfig: t
|
|
67
|
-
})
|
|
68
|
-
} : t;
|
|
69
|
-
}
|
|
70
|
-
N(() => {
|
|
71
|
-
A();
|
|
72
|
-
});
|
|
73
|
-
const w = s(() => e.value.debug);
|
|
74
|
-
function A() {
|
|
75
|
-
J(c.dataset) ? E({
|
|
76
|
-
componentName: "VueUiSparkgauge",
|
|
77
|
-
type: "dataset",
|
|
78
|
-
debug: w.value
|
|
79
|
-
}) : K({
|
|
80
|
-
datasetObject: c.dataset,
|
|
81
|
-
requiredAttributes: ["value", "min", "max"]
|
|
82
|
-
}).forEach((t) => {
|
|
83
|
-
E({
|
|
84
|
-
componentName: "VueUiSparkgauge",
|
|
85
|
-
type: "datasetAttribute",
|
|
86
|
-
property: t,
|
|
87
|
-
debug: w.value
|
|
88
|
-
});
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
M(() => c.config, (t) => {
|
|
92
|
-
e.value = p(), a.value = e.value.style.animation.show ? o.value.min : v.value.value, A();
|
|
93
|
-
}, { deep: !0 });
|
|
94
|
-
const l = s(() => ({
|
|
95
|
-
height: e.value.style.height,
|
|
96
|
-
width: 128,
|
|
97
|
-
base: e.value.style.basePosition
|
|
98
|
-
})), o = s(() => {
|
|
99
|
-
const t = v.value.min ?? 0, n = v.value.max ?? 0, f = n - t;
|
|
100
|
-
return {
|
|
101
|
-
min: t,
|
|
102
|
-
max: n,
|
|
103
|
-
diff: f
|
|
104
|
-
};
|
|
105
|
-
}), a = b(e.value.style.animation.show ? o.value.min : v.value.value);
|
|
106
|
-
M(() => v.value.value, () => {
|
|
107
|
-
$(v.value.value || 0);
|
|
108
|
-
});
|
|
109
|
-
const R = s(() => a.value > o.value.max ? o.value.max : a.value < o.value.min ? o.value.min : a.value), C = s(() => o.value.diff / e.value.style.animation.speedMs);
|
|
110
|
-
N(() => {
|
|
111
|
-
$(v.value.value || 0);
|
|
112
|
-
});
|
|
113
|
-
function $(t) {
|
|
114
|
-
function n() {
|
|
115
|
-
a.value < t ? a.value = Math.min(a.value + C.value, t) : a.value > t && (a.value = Math.max(a.value - C.value, t)), a.value !== t && requestAnimationFrame(n);
|
|
116
|
-
}
|
|
117
|
-
n();
|
|
118
|
-
}
|
|
119
|
-
const y = s(() => v.value.title ?? ""), L = s(() => {
|
|
120
|
-
const t = o.value.diff;
|
|
121
|
-
if (!isFinite(t) || t === 0) return 0;
|
|
122
|
-
const n = o.value.min, f = R.value;
|
|
123
|
-
return f >= 0 ? (f - n) / t : (Math.abs(n) - Math.abs(f)) / t;
|
|
124
|
-
}), S = s(() => Q(e.value.style.colors.min, e.value.style.colors.max, o.value.min, o.value.max, a.value)), z = s(() => e.value.style.dataLabel.autoColor ? S.value : e.value.style.dataLabel.color), G = s(() => e.value.style.track.autoColor ? S.value : e.value.style.track.color);
|
|
125
|
-
return (t, n) => (u(), r("div", {
|
|
126
|
-
class: "vue-data-ui-component vue-ui-sparkgauge",
|
|
127
|
-
style: g(`font-family:${e.value.style.fontFamily};width: 100%; background:${e.value.style.background}`)
|
|
128
|
-
}, [
|
|
129
|
-
e.value.style.title.show && y.value && e.value.style.title.position === "top" ? (u(), r("div", {
|
|
130
|
-
key: 0,
|
|
131
|
-
class: "vue-data-ui-sparkgauge-label",
|
|
132
|
-
style: g(`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}`)
|
|
133
|
-
}, k(y.value), 5)) : d("", !0),
|
|
134
|
-
(u(), r("svg", {
|
|
135
|
-
ref_key: "svgRef",
|
|
136
|
-
ref: I,
|
|
137
|
-
xmlns: i(W),
|
|
138
|
-
viewBox: `0 0 ${l.value.width} ${l.value.height}`,
|
|
139
|
-
style: "overflow: visible; background:transparent; width:100%;"
|
|
140
|
-
}, [
|
|
141
|
-
q(i(O)),
|
|
142
|
-
t.$slots["chart-background"] && !i(h) ? (u(), r("foreignObject", {
|
|
143
|
-
key: 0,
|
|
144
|
-
x: 0,
|
|
145
|
-
y: 0,
|
|
146
|
-
width: l.value.width,
|
|
147
|
-
height: l.value.height,
|
|
148
|
-
style: {
|
|
149
|
-
pointerEvents: "none"
|
|
150
|
-
}
|
|
151
|
-
}, [
|
|
152
|
-
F(t.$slots, "chart-background")
|
|
153
|
-
], 8, ue)) : d("", !0),
|
|
154
|
-
m("defs", null, [
|
|
155
|
-
m("linearGradient", {
|
|
156
|
-
id: `gradient_${_.value}`,
|
|
157
|
-
x1: "-10%",
|
|
158
|
-
y1: "100%",
|
|
159
|
-
x2: "110%",
|
|
160
|
-
y2: "100%"
|
|
161
|
-
}, [
|
|
162
|
-
m("stop", {
|
|
163
|
-
offset: "0%",
|
|
164
|
-
"stop-color": e.value.style.colors.min
|
|
165
|
-
}, null, 8, ne),
|
|
166
|
-
m("stop", {
|
|
167
|
-
offset: "100%",
|
|
168
|
-
"stop-color": e.value.style.colors.max
|
|
169
|
-
}, null, 8, re)
|
|
170
|
-
], 8, ie)
|
|
171
|
-
]),
|
|
172
|
-
m("path", {
|
|
173
|
-
d: `M10 ${l.value.base} A 1 1 0 1 1 118 ${l.value.base}`,
|
|
174
|
-
stroke: e.value.style.gutter.color,
|
|
175
|
-
"stroke-width": 8,
|
|
176
|
-
"stroke-linecap": e.value.style.gutter.strokeLinecap,
|
|
177
|
-
fill: "none"
|
|
178
|
-
}, null, 8, ve),
|
|
179
|
-
L.value !== 0 ? (u(), r("path", {
|
|
180
|
-
key: 1,
|
|
181
|
-
d: `M10 ${l.value.base} A 1 1 0 1 1 118 ${l.value.base}`,
|
|
182
|
-
stroke: e.value.style.colors.showGradient ? `url(#gradient_${_.value})` : G.value,
|
|
183
|
-
"stroke-width": 8,
|
|
184
|
-
"stroke-linecap": e.value.style.track.strokeLinecap,
|
|
185
|
-
fill: "none",
|
|
186
|
-
"stroke-dasharray": 169.5,
|
|
187
|
-
"stroke-dashoffset": 169.5 - 169.5 * L.value,
|
|
188
|
-
class: V({ "vue-ui-sparkgauge-track": e.value.style.animation.show }),
|
|
189
|
-
style: g(e.value.style.animation.show ? `animation: vue-ui-sparkgauge-animation ${e.value.style.animation.speedMs}ms ease-in;` : "")
|
|
190
|
-
}, null, 14, ce)) : d("", !0),
|
|
191
|
-
i(h) ? (u(), r("rect", {
|
|
192
|
-
key: 2,
|
|
193
|
-
x: l.value.width / 2 - e.value.style.dataLabel.fontSize / 2,
|
|
194
|
-
y: l.value.base + 6 + e.value.style.dataLabel.offsetY - e.value.style.dataLabel.fontSize,
|
|
195
|
-
width: e.value.style.dataLabel.fontSize,
|
|
196
|
-
height: e.value.style.dataLabel.fontSize,
|
|
197
|
-
fill: "#6A6A6A50",
|
|
198
|
-
rx: 3
|
|
199
|
-
}, null, 8, de)) : (u(), r("text", {
|
|
200
|
-
key: 3,
|
|
201
|
-
"text-anchor": "middle",
|
|
202
|
-
x: l.value.width / 2,
|
|
203
|
-
y: l.value.base + 6 + e.value.style.dataLabel.offsetY,
|
|
204
|
-
"font-size": e.value.style.dataLabel.fontSize,
|
|
205
|
-
fill: z.value,
|
|
206
|
-
"font-weight": e.value.style.dataLabel.bold ? "bold" : "normal"
|
|
207
|
-
}, k(i(Z)(
|
|
208
|
-
e.value.style.dataLabel.formatter,
|
|
209
|
-
i(x)(a.value),
|
|
210
|
-
i(ee)({
|
|
211
|
-
p: e.value.style.dataLabel.prefix,
|
|
212
|
-
v: i(x)(a.value),
|
|
213
|
-
s: e.value.style.dataLabel.suffix,
|
|
214
|
-
r: e.value.style.dataLabel.rounding
|
|
215
|
-
}),
|
|
216
|
-
{ datapoint: i(x)(a.value), color: z.value }
|
|
217
|
-
)), 9, fe))
|
|
218
|
-
], 8, se)),
|
|
219
|
-
e.value.style.title.show && y.value && e.value.style.title.position === "bottom" ? (u(), r("div", {
|
|
220
|
-
key: 1,
|
|
221
|
-
class: "vue-data-ui-sparkgauge-label",
|
|
222
|
-
style: g(`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}`)
|
|
223
|
-
}, k(y.value), 5)) : d("", !0),
|
|
224
|
-
t.$slots.source ? (u(), r("div", me, [
|
|
225
|
-
F(t.$slots, "source")
|
|
226
|
-
], 512)) : d("", !0),
|
|
227
|
-
i(h) ? (u(), P(ae, { key: 3 })) : d("", !0)
|
|
228
|
-
], 4));
|
|
229
|
-
}
|
|
230
|
-
};
|
|
231
|
-
export {
|
|
232
|
-
xe as default
|
|
233
|
-
};
|
|
@@ -1,384 +0,0 @@
|
|
|
1
|
-
import { useCssVars as be, computed as x, defineAsyncComponent as pe, ref as h, toRefs as me, onMounted as X, watch as j, nextTick as G, createElementBlock as s, openBlock as a, normalizeStyle as M, createCommentVNode as d, createBlock as q, createElementVNode as g, createTextVNode as _e, toDisplayString as b, unref as n, createVNode as ke, renderSlot as Y, Fragment as y, renderList as f, normalizeClass as P } from "vue";
|
|
2
|
-
import { c as xe, t as Ce, o as Ae, f as J, g as we, s as p, a as K, d as Q, X as Le, i as H } from "./lib-C_mNZmhD.js";
|
|
3
|
-
import { t as $e, u as ze } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as Se, a as Z } from "./useNestedProp-CReNavA0.js";
|
|
5
|
-
import { u as Me, B as Fe } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
-
import { u as Ie } from "./useFitSvgText-2crs6Fv5.js";
|
|
7
|
-
import { u as Te } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import { _ as Ee } from "./Shape-CNXKB8O0.js";
|
|
9
|
-
import { t as Ne } from "./themes-AUNCOb2G.js";
|
|
10
|
-
import { _ as De } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
-
const He = { key: 0 }, We = { key: 1 }, Ve = ["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 = {
|
|
12
|
-
__name: "vue-ui-sparkhistogram",
|
|
13
|
-
props: {
|
|
14
|
-
config: {
|
|
15
|
-
type: Object,
|
|
16
|
-
default() {
|
|
17
|
-
return {};
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
dataset: {
|
|
21
|
-
type: Array,
|
|
22
|
-
default() {
|
|
23
|
-
return [];
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
emits: ["selectDatapoint"],
|
|
28
|
-
setup(ee, { emit: te }) {
|
|
29
|
-
be((l) => ({
|
|
30
|
-
v151ed470: ce.value
|
|
31
|
-
}));
|
|
32
|
-
const le = pe(() => import("./PackageVersion-Y7t79Jtq.js")), { vue_ui_sparkhistogram: ae } = Se(), m = ee, _ = h(xe()), W = h(null), V = h(null), F = h(null), C = h(null), L = h(null), e = h(E()), { loading: O, FINAL_DATASET: A } = Me({
|
|
33
|
-
...me(m),
|
|
34
|
-
FINAL_CONFIG: e,
|
|
35
|
-
prepareConfig: E,
|
|
36
|
-
skeletonDataset: [
|
|
37
|
-
{ value: 1, intensity: 0.2, color: "#CACACA" },
|
|
38
|
-
{ value: 2, intensity: 0.3, color: "#CACACA" },
|
|
39
|
-
{ value: 3, intensity: 0.5, color: "#CACACA" },
|
|
40
|
-
{ value: 5, intensity: 0.7, color: "#CACACA" },
|
|
41
|
-
{ value: 8, intensity: 0.9, color: "#CACACA" },
|
|
42
|
-
{ value: 13, intensity: 0.95, color: "#CACACA" },
|
|
43
|
-
{ value: 21, intensity: 1, color: "#CACACA" },
|
|
44
|
-
{ value: 13, intensity: 0.95, color: "#CACACA" },
|
|
45
|
-
{ value: 8, intensity: 0.9, color: "#CACACA" },
|
|
46
|
-
{ value: 5, intensity: 0.7, color: "#CACACA" },
|
|
47
|
-
{ value: 3, intensity: 0.5, color: "#CACACA" },
|
|
48
|
-
{ value: 2, intensity: 0.3, color: "#CACACA" },
|
|
49
|
-
{ value: 1, intensity: 0.2, color: "#CACACA" }
|
|
50
|
-
],
|
|
51
|
-
skeletonConfig: Ce({
|
|
52
|
-
defaultConfig: e.value,
|
|
53
|
-
userConfig: {
|
|
54
|
-
style: {
|
|
55
|
-
animation: { show: !1 },
|
|
56
|
-
backgroundColor: "#99999930"
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
})
|
|
60
|
-
}), I = h(e.value.style.layout.width), T = h(e.value.style.layout.height), { svgRef: R } = Te({ config: e.value.style.title });
|
|
61
|
-
function E() {
|
|
62
|
-
const l = Z({
|
|
63
|
-
userConfig: m.config,
|
|
64
|
-
defaultConfig: ae
|
|
65
|
-
});
|
|
66
|
-
return l.theme ? {
|
|
67
|
-
...Z({
|
|
68
|
-
userConfig: Ne.vue_ui_sparkhistogram[l.theme] || m.config,
|
|
69
|
-
defaultConfig: l
|
|
70
|
-
})
|
|
71
|
-
} : l;
|
|
72
|
-
}
|
|
73
|
-
X(() => {
|
|
74
|
-
U();
|
|
75
|
-
});
|
|
76
|
-
const B = x(() => !!e.value.debug);
|
|
77
|
-
function U() {
|
|
78
|
-
if (Ae(m.dataset) ? J({
|
|
79
|
-
componentName: "VueUiSparkHistogram",
|
|
80
|
-
type: "dataset",
|
|
81
|
-
debug: B.value
|
|
82
|
-
}) : m.dataset.forEach((l, i) => {
|
|
83
|
-
we({
|
|
84
|
-
datasetObject: l,
|
|
85
|
-
requiredAttributes: ["value"]
|
|
86
|
-
}).forEach((t) => {
|
|
87
|
-
J({
|
|
88
|
-
componentName: "VueUiSparkHistogram",
|
|
89
|
-
type: "datasetSerieAttribute",
|
|
90
|
-
property: t,
|
|
91
|
-
index: i,
|
|
92
|
-
debug: B.value
|
|
93
|
-
});
|
|
94
|
-
});
|
|
95
|
-
}), e.value.responsive) {
|
|
96
|
-
const l = $e(() => {
|
|
97
|
-
const { width: i, height: t } = ze({
|
|
98
|
-
chart: F.value,
|
|
99
|
-
title: e.value.style.title.text ? V.value : null,
|
|
100
|
-
source: W.value
|
|
101
|
-
}), o = e.value.style.labels.timeLabel.show ? e.value.style.labels.timeLabel.fontSize * 2 : 0, c = e.value.style.labels.valueLabel.show ? e.value.style.labels.valueLabel.fontSize * 2 : 0;
|
|
102
|
-
requestAnimationFrame(() => {
|
|
103
|
-
I.value = Math.max(10, i), T.value = Math.max(10, t - 12 - o - c);
|
|
104
|
-
});
|
|
105
|
-
});
|
|
106
|
-
C.value && (L.value && C.value.unobserve(L.value), C.value.disconnect()), C.value = new ResizeObserver(l), L.value = F.value.parentNode, C.value.observe(L.value);
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
j(() => m.config, (l) => {
|
|
110
|
-
e.value = E(), U();
|
|
111
|
-
}, { deep: !0 });
|
|
112
|
-
const v = x(() => {
|
|
113
|
-
const l = e.value.style.labels.timeLabel.show ? e.value.style.labels.timeLabel.fontSize * 2 : 0, i = e.value.style.labels.valueLabel.show ? e.value.style.labels.valueLabel.fontSize * 2 : 0, t = T.value + l + i, o = I.value, c = e.value.style.layout.padding.top, $ = t - e.value.style.layout.padding.bottom, z = e.value.style.layout.padding.left, N = o - e.value.style.layout.padding.right, S = c + (t - c - e.value.style.layout.padding.bottom) / 2, D = t - e.value.style.layout.padding.top - e.value.style.layout.padding.bottom - l - i, w = o - e.value.style.layout.padding.left - e.value.style.layout.padding.right;
|
|
114
|
-
return {
|
|
115
|
-
bottom: $,
|
|
116
|
-
centerY: S,
|
|
117
|
-
drawingHeight: D,
|
|
118
|
-
drawingWidth: w,
|
|
119
|
-
height: t,
|
|
120
|
-
left: z,
|
|
121
|
-
right: N,
|
|
122
|
-
top: c,
|
|
123
|
-
width: o
|
|
124
|
-
};
|
|
125
|
-
}), se = x(() => Math.max(...A.value.map((l) => Math.abs(l.value || 0))));
|
|
126
|
-
function oe(l) {
|
|
127
|
-
return Math.abs(l) / se.value;
|
|
128
|
-
}
|
|
129
|
-
const u = x(() => A.value.map((l, i) => {
|
|
130
|
-
const t = oe(l.value || 0), o = v.value.drawingHeight * t, c = v.value.drawingWidth / A.value.length, $ = c * (e.value.style.bars.gap / 100), z = c - $, N = v.value.centerY - o / 2, S = v.value.left + ($ / 2 + i * c), D = v.value.left + i * c, w = typeof l.intensity > "u" ? 100 : Math.round(l.intensity * 100), ye = l.color ? l.color : l.value >= 0 ? p(e.value.style.bars.colors.positive, w) : p(e.value.style.bars.colors.negative, w), he = l.color ? l.color : l.value >= 0 ? e.value.style.bars.colors.positive : e.value.style.bars.colors.negative, fe = l.color ? `url(#gradient_datapoint_${i}_${_.value})` : l.value >= 0 ? `url(#gradient_positive_${i}_${_.value})` : `url(#gradient_negative_${i}_${_.value})`, ge = S + z / 2;
|
|
131
|
-
return {
|
|
132
|
-
...l,
|
|
133
|
-
color: ye,
|
|
134
|
-
gradient: fe,
|
|
135
|
-
height: o,
|
|
136
|
-
intensity: w,
|
|
137
|
-
proportion: t,
|
|
138
|
-
stroke: he,
|
|
139
|
-
textAnchor: ge,
|
|
140
|
-
trapX: D,
|
|
141
|
-
unitWidth: c,
|
|
142
|
-
width: z,
|
|
143
|
-
x: S,
|
|
144
|
-
y: N
|
|
145
|
-
};
|
|
146
|
-
}));
|
|
147
|
-
function ie(l, i) {
|
|
148
|
-
return K(
|
|
149
|
-
e.value.style.labels.value.formatter,
|
|
150
|
-
l.value,
|
|
151
|
-
Q({
|
|
152
|
-
p: e.value.style.labels.value.prefix,
|
|
153
|
-
v: l.value,
|
|
154
|
-
s: e.value.style.labels.value.suffix,
|
|
155
|
-
r: e.value.style.labels.value.rounding
|
|
156
|
-
}),
|
|
157
|
-
{ datapoint: l, seriesIndex: i }
|
|
158
|
-
);
|
|
159
|
-
}
|
|
160
|
-
const r = h(null), ue = te;
|
|
161
|
-
function ne(l, i) {
|
|
162
|
-
ue("selectDatapoint", { datapoint: l, index: i }), e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: i });
|
|
163
|
-
}
|
|
164
|
-
function re(l, i) {
|
|
165
|
-
r.value = i, e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: i });
|
|
166
|
-
}
|
|
167
|
-
function ve(l, i) {
|
|
168
|
-
r.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: i });
|
|
169
|
-
}
|
|
170
|
-
const ce = x(() => `${e.value.style.animation.speedMs}ms`), de = x(() => v.value.drawingWidth / A.value.length * 0.9), { fitText: k } = Ie({
|
|
171
|
-
svgRef: R,
|
|
172
|
-
unitWidth: de
|
|
173
|
-
});
|
|
174
|
-
return X(async () => {
|
|
175
|
-
await G(), k(".vue-ui-sparkhistogram-top-label", e.value.style.labels.value.minFontSize), k(".vue-ui-sparkhistogram-bottom-label", e.value.style.labels.valueLabel.minFontSize), k(".vue-ui-sparkhistogram-time-label", e.value.style.labels.timeLabel.minFontSize);
|
|
176
|
-
}), j([I, T, () => A.value], async () => {
|
|
177
|
-
await G(), k(".vue-ui-sparkhistogram-top-label", e.value.style.labels.value.minFontSize), k(".vue-ui-sparkhistogram-bottom-label", e.value.style.labels.valueLabel.minFontSize), k(".vue-ui-sparkhistogram-time-label", e.value.style.labels.timeLabel.minFontSize);
|
|
178
|
-
}), (l, i) => (a(), s("div", {
|
|
179
|
-
class: "vue-data-ui-component vue-ui-spark-histogram",
|
|
180
|
-
ref_key: "histogramChart",
|
|
181
|
-
ref: F,
|
|
182
|
-
style: M(`width:100%;background:${e.value.style.backgroundColor};font-family:${e.value.style.fontFamily}`),
|
|
183
|
-
onMouseleave: i[0] || (i[0] = (t) => r.value = null)
|
|
184
|
-
}, [
|
|
185
|
-
e.value.style.title.text ? (a(), s("div", {
|
|
186
|
-
key: 0,
|
|
187
|
-
ref_key: "chartTitle",
|
|
188
|
-
ref: V,
|
|
189
|
-
style: M(`width:calc(100% - 12px);background:transparent;margin:0 auto;margin:${e.value.style.title.margin};padding: 0 6px;text-align:${e.value.style.title.textAlign}`)
|
|
190
|
-
}, [
|
|
191
|
-
g("div", {
|
|
192
|
-
style: M(`font-size:${e.value.style.title.fontSize}px;color:${e.value.style.title.color};font-weight:${e.value.style.title.bold ? "bold" : "normal"}`)
|
|
193
|
-
}, [
|
|
194
|
-
_e(b(e.value.style.title.text) + " ", 1),
|
|
195
|
-
r.value !== null ? (a(), s("span", He, "- " + b(u.value[r.value].timeLabel || "") + " " + b(n(K)(
|
|
196
|
-
e.value.style.labels.value.formatter,
|
|
197
|
-
u.value[r.value].value,
|
|
198
|
-
n(Q)({
|
|
199
|
-
p: e.value.style.labels.value.prefix,
|
|
200
|
-
v: u.value[r.value].value,
|
|
201
|
-
s: e.value.style.labels.value.suffix,
|
|
202
|
-
r: e.value.style.labels.value.rounding
|
|
203
|
-
}),
|
|
204
|
-
{ datapoint: u.value[r.value], seriesIndex: r.value }
|
|
205
|
-
)), 1)) : d("", !0),
|
|
206
|
-
![void 0, null].includes(r.value) && ![null, void 0].includes(u.value[r.value].valueLabel) ? (a(), s("span", We, b(` (${u.value[r.value].valueLabel || 0})`), 1)) : d("", !0)
|
|
207
|
-
], 4),
|
|
208
|
-
e.value.style.title.subtitle.text ? (a(), s("div", {
|
|
209
|
-
key: 0,
|
|
210
|
-
style: M(`font-size:${e.value.style.title.subtitle.fontSize}px;color:${e.value.style.title.subtitle.color};font-weight:${e.value.style.title.subtitle.bold ? "bold" : "normal"}`)
|
|
211
|
-
}, b(e.value.style.title.subtitle.text), 5)) : d("", !0)
|
|
212
|
-
], 4)) : d("", !0),
|
|
213
|
-
(a(), s("svg", {
|
|
214
|
-
ref_key: "svgRef",
|
|
215
|
-
ref: R,
|
|
216
|
-
xmlns: n(Le),
|
|
217
|
-
viewBox: `0 0 ${v.value.width} ${v.value.height}`,
|
|
218
|
-
style: { overflow: "visible" }
|
|
219
|
-
}, [
|
|
220
|
-
ke(n(le)),
|
|
221
|
-
l.$slots["chart-background"] ? (a(), s("foreignObject", {
|
|
222
|
-
key: 0,
|
|
223
|
-
x: 0,
|
|
224
|
-
y: 0,
|
|
225
|
-
width: v.value.width,
|
|
226
|
-
height: v.value.height,
|
|
227
|
-
style: {
|
|
228
|
-
pointerEvents: "none"
|
|
229
|
-
}
|
|
230
|
-
}, [
|
|
231
|
-
Y(l.$slots, "chart-background", {}, void 0, !0)
|
|
232
|
-
], 8, Oe)) : d("", !0),
|
|
233
|
-
g("defs", null, [
|
|
234
|
-
(a(!0), s(y, null, f(u.value, (t, o) => (a(), s("radialGradient", {
|
|
235
|
-
id: `gradient_positive_${o}_${_.value}`,
|
|
236
|
-
cy: "50%",
|
|
237
|
-
cx: "50%",
|
|
238
|
-
r: "50%",
|
|
239
|
-
fx: "50%",
|
|
240
|
-
fy: "50%"
|
|
241
|
-
}, [
|
|
242
|
-
g("stop", {
|
|
243
|
-
offset: "0%",
|
|
244
|
-
"stop-color": n(p)(n(H)(e.value.style.bars.colors.positive, 0.05), t.intensity)
|
|
245
|
-
}, null, 8, Be),
|
|
246
|
-
g("stop", {
|
|
247
|
-
offset: "100%",
|
|
248
|
-
"stop-color": n(p)(e.value.style.bars.colors.positive, t.intensity)
|
|
249
|
-
}, null, 8, Ue)
|
|
250
|
-
], 8, Re))), 256)),
|
|
251
|
-
(a(!0), s(y, null, f(u.value, (t, o) => (a(), s("radialGradient", {
|
|
252
|
-
id: `gradient_negative_${o}_${_.value}`,
|
|
253
|
-
cy: "50%",
|
|
254
|
-
cx: "50%",
|
|
255
|
-
r: "50%",
|
|
256
|
-
fx: "50%",
|
|
257
|
-
fy: "50%"
|
|
258
|
-
}, [
|
|
259
|
-
g("stop", {
|
|
260
|
-
offset: "0%",
|
|
261
|
-
"stop-color": n(p)(n(H)(e.value.style.bars.colors.negative, 0.05), t.intensity)
|
|
262
|
-
}, null, 8, je),
|
|
263
|
-
g("stop", {
|
|
264
|
-
offset: "100%",
|
|
265
|
-
"stop-color": n(p)(e.value.style.bars.colors.negative, t.intensity)
|
|
266
|
-
}, null, 8, Ge)
|
|
267
|
-
], 8, Xe))), 256)),
|
|
268
|
-
(a(!0), s(y, null, f(u.value, (t, o) => (a(), s("radialGradient", {
|
|
269
|
-
id: `gradient_datapoint_${o}_${_.value}`,
|
|
270
|
-
cy: "50%",
|
|
271
|
-
cx: "50%",
|
|
272
|
-
r: "50%",
|
|
273
|
-
fx: "50%",
|
|
274
|
-
fy: "50%"
|
|
275
|
-
}, [
|
|
276
|
-
g("stop", {
|
|
277
|
-
offset: "0%",
|
|
278
|
-
"stop-color": n(p)(n(H)(t.color, 0.05), t.intensity)
|
|
279
|
-
}, null, 8, Ye),
|
|
280
|
-
g("stop", {
|
|
281
|
-
offset: "100%",
|
|
282
|
-
"stop-color": n(p)(t.color, t.intensity)
|
|
283
|
-
}, null, 8, Pe)
|
|
284
|
-
], 8, qe))), 256))
|
|
285
|
-
]),
|
|
286
|
-
(a(!0), s(y, null, f(u.value, (t, o) => (a(), s("g", null, [
|
|
287
|
-
r.value !== null && r.value === o ? (a(), s("rect", {
|
|
288
|
-
key: 0,
|
|
289
|
-
height: v.value.height,
|
|
290
|
-
width: t.unitWidth,
|
|
291
|
-
fill: e.value.style.selector.fill,
|
|
292
|
-
x: t.trapX,
|
|
293
|
-
y: 0,
|
|
294
|
-
stroke: e.value.style.selector.stroke,
|
|
295
|
-
"stroke-width": e.value.style.selector.strokeWidth,
|
|
296
|
-
rx: e.value.style.selector.borderRadius,
|
|
297
|
-
"stroke-dasharray": e.value.style.selector.strokeDasharray
|
|
298
|
-
}, null, 8, Je)) : d("", !0)
|
|
299
|
-
]))), 256)),
|
|
300
|
-
!e.value.style.bars.shape || e.value.style.bars.shape === "square" ? (a(), s("g", Ke, [
|
|
301
|
-
(a(!0), s(y, null, f(u.value, (t, o) => (a(), s("rect", {
|
|
302
|
-
x: t.x,
|
|
303
|
-
y: t.y,
|
|
304
|
-
height: t.height,
|
|
305
|
-
width: t.width,
|
|
306
|
-
fill: e.value.style.bars.colors.gradient.show ? t.gradient : t.color,
|
|
307
|
-
stroke: t.stroke,
|
|
308
|
-
"stroke-width": e.value.style.bars.strokeWidth,
|
|
309
|
-
rx: `${e.value.style.bars.borderRadius * t.proportion / 12}%`,
|
|
310
|
-
class: P({ "vue-ui-sparkhistogram-shape": e.value.style.animation.show })
|
|
311
|
-
}, null, 10, Qe))), 256))
|
|
312
|
-
])) : (a(), s("g", Ze, [
|
|
313
|
-
(a(!0), s(y, null, f(u.value, (t, o) => (a(), q(Ee, {
|
|
314
|
-
plot: { x: t.x + t.width / 2, y: t.y + t.height / 2 },
|
|
315
|
-
color: e.value.style.bars.colors.gradient.show ? t.gradient : t.color,
|
|
316
|
-
shape: e.value.style.bars.shape,
|
|
317
|
-
radius: Math.min(t.height * 0.4, t.width * 0.4),
|
|
318
|
-
class: P({ "vue-ui-sparkhistogram-shape": e.value.style.animation.show })
|
|
319
|
-
}, null, 8, ["plot", "color", "shape", "radius", "class"]))), 256))
|
|
320
|
-
])),
|
|
321
|
-
n(O) ? d("", !0) : (a(), s(y, { key: 3 }, [
|
|
322
|
-
(a(!0), s(y, null, f(u.value, (t, o) => (a(), s("g", null, [
|
|
323
|
-
e.value.style.labels.value.show ? (a(), s("text", {
|
|
324
|
-
key: 0,
|
|
325
|
-
class: "vue-ui-sparkhistogram-top-label",
|
|
326
|
-
"text-anchor": "middle",
|
|
327
|
-
x: t.textAnchor,
|
|
328
|
-
y: t.y - e.value.style.labels.value.fontSize / 3 + e.value.style.labels.value.offsetY,
|
|
329
|
-
"font-size": e.value.style.labels.value.fontSize,
|
|
330
|
-
"font-weight": e.value.style.labels.value.bold ? "bold" : "normal",
|
|
331
|
-
fill: e.value.style.labels.value.color
|
|
332
|
-
}, b(ie(t, o)), 9, et)) : d("", !0)
|
|
333
|
-
]))), 256)),
|
|
334
|
-
(a(!0), s(y, null, f(u.value, (t, o) => (a(), s("g", null, [
|
|
335
|
-
t.valueLabel && e.value.style.labels.valueLabel.show ? (a(), s("text", {
|
|
336
|
-
key: 0,
|
|
337
|
-
class: "vue-ui-sparkhistogram-bottom-label",
|
|
338
|
-
x: t.textAnchor,
|
|
339
|
-
y: t.y + t.height + e.value.style.labels.valueLabel.fontSize,
|
|
340
|
-
"font-size": e.value.style.labels.valueLabel.fontSize,
|
|
341
|
-
"text-anchor": "middle",
|
|
342
|
-
fill: e.value.style.labels.valueLabel.color
|
|
343
|
-
}, b(t.valueLabel), 9, tt)) : d("", !0)
|
|
344
|
-
]))), 256)),
|
|
345
|
-
(a(!0), s(y, null, f(u.value, (t, o) => (a(), s("g", null, [
|
|
346
|
-
t.timeLabel && e.value.style.labels.timeLabel.show ? (a(), s("text", {
|
|
347
|
-
key: 0,
|
|
348
|
-
class: "vue-ui-sparkhistogram-time-label",
|
|
349
|
-
x: t.textAnchor,
|
|
350
|
-
y: v.value.height,
|
|
351
|
-
"font-size": e.value.style.labels.timeLabel.fontSize,
|
|
352
|
-
fill: e.value.style.labels.timeLabel.color,
|
|
353
|
-
"text-anchor": "middle"
|
|
354
|
-
}, b(t.timeLabel), 9, lt)) : d("", !0)
|
|
355
|
-
]))), 256))
|
|
356
|
-
], 64)),
|
|
357
|
-
(a(!0), s(y, null, f(u.value, (t, o) => (a(), s("g", null, [
|
|
358
|
-
g("rect", {
|
|
359
|
-
height: v.value.height,
|
|
360
|
-
width: t.unitWidth,
|
|
361
|
-
fill: "transparent",
|
|
362
|
-
x: t.trapX,
|
|
363
|
-
y: 0,
|
|
364
|
-
onMouseover: (c) => re(t, o),
|
|
365
|
-
onMouseleave: (c) => ve(t, o),
|
|
366
|
-
onClick: () => ne(t, o)
|
|
367
|
-
}, null, 40, at)
|
|
368
|
-
]))), 256))
|
|
369
|
-
], 8, Ve)),
|
|
370
|
-
l.$slots.source ? (a(), s("div", {
|
|
371
|
-
key: 1,
|
|
372
|
-
ref_key: "source",
|
|
373
|
-
ref: W,
|
|
374
|
-
dir: "auto"
|
|
375
|
-
}, [
|
|
376
|
-
Y(l.$slots, "source", {}, void 0, !0)
|
|
377
|
-
], 512)) : d("", !0),
|
|
378
|
-
n(O) ? (a(), q(Fe, { key: 2 })) : d("", !0)
|
|
379
|
-
], 36));
|
|
380
|
-
}
|
|
381
|
-
}, ft = /* @__PURE__ */ De(st, [["__scopeId", "data-v-7f6b6b54"]]);
|
|
382
|
-
export {
|
|
383
|
-
ft as default
|
|
384
|
-
};
|