vue-data-ui 3.6.0 → 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 +26 -26
- package/dist/{Arrow-BGVin3AS.js → Arrow-CWYIBV-7.js} +1 -1
- package/dist/{BaseDraggableDialog-DhKIof09.js → BaseDraggableDialog-CRF94NJQ.js} +2 -2
- package/dist/{BaseIcon-DLFL0M4-.js → BaseIcon-CofSxalQ.js} +1 -1
- package/dist/{ColorPicker-CjIJvLdc.js → ColorPicker-e1-OSGlQ.js} +10 -10
- package/dist/{DataTable-UCyd_BQI.js → DataTable-CHaOCmsE.js} +2 -2
- package/dist/{Legend-D9ZTJKjh.js → Legend-Web3GjlR.js} +2 -2
- package/dist/{NonSvgPenAndPaper-a2UzZL0y.js → NonSvgPenAndPaper-CjYFLlns.js} +3 -3
- package/dist/{PackageVersion-D_4Hr4S4.js → PackageVersion-Bq_mtsqr.js} +1 -1
- package/dist/{PenAndPaper-BJSMejV9.js → PenAndPaper-HCZQTkqi.js} +20 -20
- package/dist/{Shape-CNXKB8O0.js → Shape-DE6X_t31.js} +3 -3
- package/dist/{Slicer-CJfhtoVn.js → Slicer-BFBBG6xv.js} +23 -23
- package/dist/{SlicerPreview-wXjV4LWO.js → SlicerPreview-D76aSViW.js} +2 -2
- package/dist/{SparkTooltip-BEewz-_Q.js → SparkTooltip-B2rpVWE1.js} +6 -6
- package/dist/{Title-Bb1VWCtR.js → Title-DfFUb9hd.js} +1 -1
- package/dist/{Tooltip-oWCO1HKy.js → Tooltip-WD0Ros6G.js} +1 -1
- package/dist/{UserOptions-BqmUW9Kp.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 +1 -1
- 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 +1 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js → useAutoSizeLabelsInsideViewbox-DOALwU4q.js} +7 -7
- package/dist/{useNestedProp-CIoDlpHu.js → useNestedProp-CWo6bftQ.js} +1 -1
- 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-BWuOXu_s.js → vue-data-ui-ByLTJx5V.js} +78 -78
- package/dist/vue-data-ui.js +225 -205
- package/dist/{vue-ui-3d-bar-BNQAuLqF.js → vue-ui-3d-bar-Dkds4k5N.js} +546 -517
- package/dist/{vue-ui-accordion-SSLXLlNz.js → vue-ui-accordion-DSdZUn2C.js} +3 -3
- package/dist/vue-ui-age-pyramid-C-fwZRYE.js +960 -0
- package/dist/{vue-ui-annotator-34Ld0u5M.js → vue-ui-annotator-DRaH8hXn.js} +7 -7
- package/dist/vue-ui-bullet-BKVJRjGh.js +657 -0
- package/dist/{vue-ui-candlestick-BcChw-8c.js → vue-ui-candlestick-BKFWHU4O.js} +596 -561
- package/dist/{vue-ui-carousel-table-Cp_od0lI.js → vue-ui-carousel-table-VmPH6y2g.js} +48 -48
- package/dist/{vue-ui-chestnut-DTaIsP72.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-lW-dVs_k.js → vue-ui-cursor-BMe8ZiV6.js} +2 -2
- package/dist/{vue-ui-dashboard-DIymn9Cx.js → vue-ui-dashboard-eBXj-KCw.js} +140 -140
- package/dist/{vue-ui-digits-YHA3fA0j.js → vue-ui-digits-D382I0-w.js} +2 -2
- package/dist/{vue-ui-donut-BaDmbWLh.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-E33_xZte.js → vue-ui-gizmo-DtyEukIP.js} +3 -3
- package/dist/{vue-ui-heatmap-DJXMvFPp.js → vue-ui-heatmap-mkD6QkXo.js} +501 -466
- package/dist/vue-ui-history-plot-CyTaBaxA.js +1239 -0
- package/dist/{vue-ui-kpi-C-XuLBVQ.js → vue-ui-kpi-CKMZDc3n.js} +3 -3
- package/dist/{vue-ui-mini-loader-DawncJvl.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-B2bLWyCm.js → vue-ui-quadrant-CG6_CWsQ.js} +510 -481
- package/dist/{vue-ui-quick-chart-J_RmCwI_.js → vue-ui-quick-chart-DOeRhk7r.js} +795 -758
- package/dist/vue-ui-radar-DdHa9Hsh.js +1013 -0
- package/dist/{vue-ui-rating-CBS8zaQd.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-DsrlMELy.js → vue-ui-skeleton-CzzdmraB.js} +3 -3
- package/dist/{vue-ui-smiley-P_8WIBDD.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-CTtivaxm.js → vue-ui-strip-plot-CZQSL0GK.js} +343 -314
- package/dist/{vue-ui-table-CHt3AQiq.js → vue-ui-table-DMM090pe.js} +5 -5
- package/dist/vue-ui-table-heatmap-vQEFrjCX.js +307 -0
- package/dist/{vue-ui-table-sparkline-D5MckwMl.js → vue-ui-table-sparkline-CQJc0mJY.js} +292 -263
- package/dist/vue-ui-thermometer-D1uxoVeZ.js +613 -0
- package/dist/{vue-ui-timer-B-Xa6ALH.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-D9XQe_ud.js → vue-ui-vertical-bar-BSbDj5qZ.js} +520 -485
- package/dist/{vue-ui-waffle-Bk98w86A.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-xOY__pp8.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-DH-N_ePR.js +0 -54
- package/dist/vue-ui-age-pyramid-DsOlpJBh.js +0 -933
- package/dist/vue-ui-bullet-Ci4lO4_W.js +0 -630
- package/dist/vue-ui-chord-BKC--Nbq.js +0 -1153
- package/dist/vue-ui-circle-pack-B3sfU0Vo.js +0 -803
- package/dist/vue-ui-donut-evolution-BqUzmyW2.js +0 -1208
- package/dist/vue-ui-dumbbell-CWKTrzsm.js +0 -1231
- package/dist/vue-ui-flow-SMbuDPdL.js +0 -991
- package/dist/vue-ui-funnel-3fRlMBzq.js +0 -716
- package/dist/vue-ui-galaxy-CFZ1xYD5.js +0 -808
- package/dist/vue-ui-gauge-DJpbjfpL.js +0 -835
- package/dist/vue-ui-history-plot-CvPMx5Lg.js +0 -1204
- package/dist/vue-ui-molecule-CasngKZI.js +0 -753
- package/dist/vue-ui-mood-radar-DGz2TQi4.js +0 -903
- package/dist/vue-ui-nested-donuts-Bjjz2sWG.js +0 -1419
- package/dist/vue-ui-onion-DwTIY6i1.js +0 -915
- package/dist/vue-ui-parallel-coordinate-plot-DedxvtPN.js +0 -1051
- package/dist/vue-ui-radar-D1rz2RnH.js +0 -984
- package/dist/vue-ui-relation-circle-DUfRwwo1.js +0 -641
- package/dist/vue-ui-ridgeline-DKPWMWRc.js +0 -1273
- package/dist/vue-ui-rings-BY0EQGLb.js +0 -855
- package/dist/vue-ui-scatter-ky9p5Pgh.js +0 -1590
- package/dist/vue-ui-spark-trend-DkJn_3FI.js +0 -337
- package/dist/vue-ui-sparkbar-qB1fmgej.js +0 -352
- package/dist/vue-ui-sparkgauge-BezFN_Rc.js +0 -233
- package/dist/vue-ui-sparkhistogram-DGt5b8FR.js +0 -384
- package/dist/vue-ui-sparkline-D7Wx1ejg.js +0 -514
- package/dist/vue-ui-sparkstackbar-DtO7-yim.js +0 -441
- package/dist/vue-ui-stackbar-Dr48I48D.js +0 -1832
- package/dist/vue-ui-stackline-Juns5Yh4.js +0 -1928
- package/dist/vue-ui-table-heatmap-Cn-56b5F.js +0 -282
- package/dist/vue-ui-thermometer-BOidpwAZ.js +0 -584
- package/dist/vue-ui-tiremarks-BsTyVS2P.js +0 -450
- package/dist/vue-ui-treemap-BWTaY91B.js +0 -1330
- package/dist/vue-ui-wheel-nj73b_Dc.js +0 -663
- package/dist/vue-ui-word-cloud-Dcaogr-D.js +0 -875
- package/dist/vue-ui-xy-BT67faLv.js +0 -3424
- package/dist/vue-ui-xy-canvas-BoB7-4QK.js +0 -1564
|
@@ -0,0 +1,549 @@
|
|
|
1
|
+
import { defineAsyncComponent as he, computed as f, ref as y, toRefs as Xe, watch as J, shallowRef as ye, onMounted as Ye, onBeforeUnmount as pe, createElementBlock as c, openBlock as n, normalizeStyle as z, renderSlot as F, createCommentVNode as h, createBlock as ge, normalizeProps as be, guardReactiveProps as me, createElementVNode as p, toDisplayString as B, unref as u, createVNode as qe, Fragment as Q, renderList as ee, withCtx as Ze, createTextVNode as Ke, nextTick as He } from "vue";
|
|
2
|
+
import { c as Je, t as Qe, W as ke, aj as te, o as xe, g as Ae, k as et, h as E, m as tt, ak as at, X as lt, s as V, z as _e, B as ot, I as Ce, a as ae, d as le, al as rt } from "./lib-C5BH09_g.js";
|
|
3
|
+
import { t as ut, u as st } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as nt, a as oe } from "./useNestedProp-CWo6bftQ.js";
|
|
5
|
+
import { u as it, B as vt } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as dt } from "./useThemeCheck-DGJ31Vi5.js";
|
|
7
|
+
import { u as ct } from "./useTimeLabels-C5qMhpbe.js";
|
|
8
|
+
import { u as ft } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
+
import { _ as ht } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
+
const we = { style: { backgroundColor: "#1A1A1A", zeroLine: { color: "#5A5A5A" }, plot: { stroke: "#1A1A1A" }, verticalIndicator: { color: "#8A8A8A" }, dataLabel: { color: "#CCCCCC" }, title: { color: "#CCCCCC" }, tooltip: { color: "#CCCCCC", backgroundColor: "#1A1A1A", borderColor: "#5A5A5A", backgroundOpacity: 70 } } }, Le = { style: { backgroundColor: "#FFF8E1", line: { color: "#D32F2F" }, bar: { color: "#D32F2F", borderRadius: 0 }, zeroLine: { color: "#5D4037" }, plot: { stroke: "#FFF8E1" }, verticalIndicator: { color: "#FF9800" }, dataLabel: { color: "#424242" }, title: { color: "#424242" }, area: { color: "#E64A19" } } }, $e = { style: { backgroundColor: "#1E1E1E", line: { color: "#D32F2F" }, bar: { color: "#D32F2F", borderRadius: 0 }, zeroLine: { color: "#5D4037" }, plot: { stroke: "#1E1E1E" }, verticalIndicator: { color: "#B71C1C" }, dataLabel: { color: "#BDBDBD" }, title: { color: "#BDBDBD" }, area: { color: "#E64A19" } } }, Ne = { style: { backgroundColor: "#1A1A1A", line: { color: "#66CC66" }, bar: { color: "#66CC66", borderRadius: 0 }, zeroLine: { color: "#5F6A5F" }, plot: { stroke: "#1A1A1A" }, verticalIndicator: { color: "#66CC66" }, dataLabel: { color: "#AACCAA" }, title: { color: "#66CC66" }, area: { color: "#66CC66" } } }, Ie = { style: { backgroundColor: "#fbfafa", line: { color: "#B9B99D", smooth: !0 }, bar: { color: "#B9B99D", borderRadius: 3 }, zeroLine: { strokeWidth: 0 }, plot: { stroke: "#fbfafa" }, verticalIndicator: { color: "#B9B99D" }, dataLabel: { color: "#A0AC94" }, title: { color: "#8A9892" }, area: { color: "#B9B99D" } } }, Me = { style: { backgroundColor: "#f6f6fb", line: { color: "#4A6A75" }, bar: { color: "#4A6A75", borderRadius: 0 }, zeroLine: { color: "#9FA9BE" }, plot: { stroke: "#f6f6fb" }, verticalIndicator: { color: "#4A6A75" }, dataLabel: { color: "#61747E" }, title: { color: "#50606C" }, area: { color: "#4A6A75" } } }, Fe = {
|
|
11
|
+
default: {},
|
|
12
|
+
dark: we,
|
|
13
|
+
celebration: Le,
|
|
14
|
+
celebrationNight: $e,
|
|
15
|
+
hack: Ne,
|
|
16
|
+
zen: Ie,
|
|
17
|
+
concrete: Me
|
|
18
|
+
}, Zt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
19
|
+
__proto__: null,
|
|
20
|
+
celebration: Le,
|
|
21
|
+
celebrationNight: $e,
|
|
22
|
+
concrete: Me,
|
|
23
|
+
dark: we,
|
|
24
|
+
default: Fe,
|
|
25
|
+
hack: Ne,
|
|
26
|
+
zen: Ie
|
|
27
|
+
}, Symbol.toStringTag, { value: "Module" })), yt = ["id"], pt = ["xmlns", "viewBox"], gt = ["width", "height"], bt = ["id"], mt = ["stop-color"], kt = ["stop-color"], xt = ["id"], At = ["stop-color"], _t = ["stop-color"], Ct = ["id"], wt = ["stop-color"], Lt = ["stop-color"], $t = { key: 1 }, Nt = ["d", "fill"], It = ["d", "fill"], Mt = ["d", "stroke", "stroke-width"], Ft = ["d", "stroke", "stroke-width"], Dt = ["x", "y", "width", "height", "fill", "rx"], St = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], zt = ["x1", "x2", "y1", "y2", "stroke", "stroke-dasharray", "stroke-width"], Bt = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Et = ["x", "y", "font-size", "font-weight", "fill"], Vt = ["x", "y", "height", "width", "onMouseenter", "onMouseleave", "onClick"], Tt = {
|
|
28
|
+
__name: "vue-ui-sparkline",
|
|
29
|
+
props: {
|
|
30
|
+
config: {
|
|
31
|
+
type: Object,
|
|
32
|
+
default() {
|
|
33
|
+
return {};
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
dataset: {
|
|
37
|
+
type: Array,
|
|
38
|
+
default() {
|
|
39
|
+
return [];
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
showInfo: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
default: !0
|
|
45
|
+
},
|
|
46
|
+
selectedIndex: {
|
|
47
|
+
type: Number,
|
|
48
|
+
default: void 0
|
|
49
|
+
},
|
|
50
|
+
heightRatio: {
|
|
51
|
+
type: Number,
|
|
52
|
+
default: 1
|
|
53
|
+
},
|
|
54
|
+
forcedPadding: {
|
|
55
|
+
type: Number,
|
|
56
|
+
default: 30
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
emits: ["hoverIndex", "selectDatapoint"],
|
|
60
|
+
setup(L, { emit: De }) {
|
|
61
|
+
const Se = he(() => import("./PackageVersion-Bq_mtsqr.js")), ze = he(() => import("./SparkTooltip-B2rpVWE1.js")), { vue_ui_sparkline: Be } = nt(), { isThemeValid: Ee, warnInvalidTheme: Ve } = dt(), s = L, re = f(() => Array.isArray(s.dataset) && s.dataset.length > 0), g = y(Je()), T = y(null), ue = y(null), se = y(null), e = y(P());
|
|
62
|
+
function Te(t) {
|
|
63
|
+
return rt(t).map((a) => ({ period: "-", value: a }));
|
|
64
|
+
}
|
|
65
|
+
const { loading: R, FINAL_DATASET: $, manualLoading: W } = it({
|
|
66
|
+
...Xe(s),
|
|
67
|
+
FINAL_CONFIG: e,
|
|
68
|
+
prepareConfig: P,
|
|
69
|
+
callback: () => {
|
|
70
|
+
Promise.resolve().then(async () => {
|
|
71
|
+
await He(), X();
|
|
72
|
+
});
|
|
73
|
+
},
|
|
74
|
+
skeletonDataset: Te(12),
|
|
75
|
+
skeletonConfig: Qe({
|
|
76
|
+
defaultConfig: e.value,
|
|
77
|
+
userConfig: {
|
|
78
|
+
style: {
|
|
79
|
+
backgroundColor: "#99999930",
|
|
80
|
+
scaleMin: 0,
|
|
81
|
+
scaleMax: null,
|
|
82
|
+
animation: { show: !1 },
|
|
83
|
+
line: { color: "#AAAAAA" },
|
|
84
|
+
bar: { color: "#AAAAAA" },
|
|
85
|
+
area: { color: "#CACACA" },
|
|
86
|
+
zeroLine: { color: "#6A6A6A" },
|
|
87
|
+
dataLabel: { show: !1 },
|
|
88
|
+
tooltip: { show: !1 }
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
})
|
|
92
|
+
}), { svgRef: ne } = ft({ config: e.value.style.title });
|
|
93
|
+
function P() {
|
|
94
|
+
const t = oe({
|
|
95
|
+
userConfig: s.config,
|
|
96
|
+
defaultConfig: Be
|
|
97
|
+
});
|
|
98
|
+
let a = {};
|
|
99
|
+
const l = t.theme;
|
|
100
|
+
if (l)
|
|
101
|
+
if (!Ee.value(t))
|
|
102
|
+
Ve(t), a = t;
|
|
103
|
+
else {
|
|
104
|
+
const o = oe({
|
|
105
|
+
userConfig: Fe[l] || s.config,
|
|
106
|
+
defaultConfig: t
|
|
107
|
+
});
|
|
108
|
+
a = {
|
|
109
|
+
...oe({
|
|
110
|
+
userConfig: s.config,
|
|
111
|
+
defaultConfig: o
|
|
112
|
+
})
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
else
|
|
116
|
+
a = t;
|
|
117
|
+
return s.config && ke(s.config, "style.scaleMin") ? a.style.scaleMin = s.config.style.scaleMin : a.style.scaleMin = null, s.config && ke(s.config, "style.scaleMax") ? a.style.scaleMax = s.config.style.scaleMax : a.style.scaleMax = null, a;
|
|
118
|
+
}
|
|
119
|
+
const x = f(() => te({
|
|
120
|
+
data: $.value,
|
|
121
|
+
threshold: e.value.downsample.threshold
|
|
122
|
+
}));
|
|
123
|
+
J(() => s.config, (t) => {
|
|
124
|
+
R.value || (e.value = P()), ve(), r.value.chartWidth = e.value.style.chartWidth;
|
|
125
|
+
}, { deep: !0 }), J(() => s.dataset, (t) => {
|
|
126
|
+
Array.isArray(t) && t.length > 0 && (W.value = !1), b.value = te({
|
|
127
|
+
data: $.value.map((a) => ({
|
|
128
|
+
...a,
|
|
129
|
+
value: [void 0].includes(a.value) ? null : a.value
|
|
130
|
+
})),
|
|
131
|
+
threshold: e.value.downsample.threshold
|
|
132
|
+
});
|
|
133
|
+
}, { deep: !0 });
|
|
134
|
+
const b = y(Re());
|
|
135
|
+
function Re() {
|
|
136
|
+
return te({
|
|
137
|
+
data: $.value.map((t) => e.value.style.animation.show && $.value.length > 1 ? {
|
|
138
|
+
...t,
|
|
139
|
+
value: null
|
|
140
|
+
} : {
|
|
141
|
+
...t,
|
|
142
|
+
value: [void 0].includes(t.value) ? null : t.value
|
|
143
|
+
}),
|
|
144
|
+
threshold: e.value.downsample.threshold
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
const m = ye(null), A = ye(null), O = y(!1), N = y(0), j = y([]), G = y(""), U = f(() => {
|
|
148
|
+
const a = (x.value || []).map((o) => `${o.period}::${Number.isFinite(o.value) ? o.value : 0}`).join("|"), l = e.value?.style?.animation || {};
|
|
149
|
+
return `${a}#${!!l.show}#${l.animationFrames || 0}`;
|
|
150
|
+
});
|
|
151
|
+
function D() {
|
|
152
|
+
N.value && (cancelAnimationFrame(N.value), N.value = 0), j.value.forEach((t) => clearTimeout(t)), j.value = [], O.value = !1;
|
|
153
|
+
}
|
|
154
|
+
function X() {
|
|
155
|
+
const t = e.value?.style?.animation || {}, a = x.value || [], l = U.value;
|
|
156
|
+
if (l && l === G.value && (O.value || b.value.length === a.length))
|
|
157
|
+
return;
|
|
158
|
+
if (D(), !t.show || R.value || a.length <= 1) {
|
|
159
|
+
b.value = a, G.value = l;
|
|
160
|
+
return;
|
|
161
|
+
}
|
|
162
|
+
O.value = !0, G.value = l, b.value = [];
|
|
163
|
+
const o = Math.max(1, Number(t.animationFrames) || 1), K = Math.max(1, Math.floor(o / a.length));
|
|
164
|
+
let H = 0;
|
|
165
|
+
const fe = () => {
|
|
166
|
+
if (l !== U.value) {
|
|
167
|
+
D();
|
|
168
|
+
return;
|
|
169
|
+
}
|
|
170
|
+
if (H < a.length) {
|
|
171
|
+
b.value.push(a[H]);
|
|
172
|
+
const Ue = setTimeout(() => {
|
|
173
|
+
N.value = requestAnimationFrame(fe);
|
|
174
|
+
}, K);
|
|
175
|
+
j.value.push(Ue), H += 1;
|
|
176
|
+
} else
|
|
177
|
+
b.value = a, D();
|
|
178
|
+
};
|
|
179
|
+
N.value = requestAnimationFrame(fe);
|
|
180
|
+
}
|
|
181
|
+
J(U, () => {
|
|
182
|
+
X();
|
|
183
|
+
}), Ye(() => {
|
|
184
|
+
ve(), X();
|
|
185
|
+
}), pe(() => {
|
|
186
|
+
D();
|
|
187
|
+
});
|
|
188
|
+
const ie = f(() => !!e.value.debug);
|
|
189
|
+
function ve() {
|
|
190
|
+
if (xe(s.dataset) ? (Ae({
|
|
191
|
+
componentName: "VueUiSparkline",
|
|
192
|
+
type: "dataset",
|
|
193
|
+
debug: ie.value
|
|
194
|
+
}), W.value = !0) : s.dataset.forEach((t, a) => {
|
|
195
|
+
et({
|
|
196
|
+
datasetObject: t,
|
|
197
|
+
requiredAttributes: ["period", "value"]
|
|
198
|
+
}).forEach((l) => {
|
|
199
|
+
Ae({
|
|
200
|
+
componentName: "VueUiSparkline",
|
|
201
|
+
type: "datasetSerieAttribute",
|
|
202
|
+
property: l,
|
|
203
|
+
index: a,
|
|
204
|
+
debug: ie.value
|
|
205
|
+
});
|
|
206
|
+
});
|
|
207
|
+
}), xe(s.dataset) || (W.value = e.value.loading), e.value.responsive) {
|
|
208
|
+
const t = ut(() => {
|
|
209
|
+
const { width: a, height: l } = st({
|
|
210
|
+
chart: T.value,
|
|
211
|
+
title: e.value.style.title.show && s.showInfo ? ue.value : null,
|
|
212
|
+
source: se.value
|
|
213
|
+
});
|
|
214
|
+
requestAnimationFrame(() => {
|
|
215
|
+
r.value.width = a, r.value.height = l, r.value.chartWidth = e.value.style.chartWidth / 500 * a, r.value.padding = s.forcedPadding / 500 * a;
|
|
216
|
+
});
|
|
217
|
+
});
|
|
218
|
+
m.value && (A.value && m.value.unobserve(A.value), m.value.disconnect()), m.value = new ResizeObserver(t), A.value = T.value.parentNode, m.value.observe(A.value);
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
pe(() => {
|
|
222
|
+
m.value && (A.value && m.value.unobserve(A.value), m.value.disconnect());
|
|
223
|
+
});
|
|
224
|
+
const r = y({
|
|
225
|
+
height: 80 * s.heightRatio,
|
|
226
|
+
width: 500,
|
|
227
|
+
chartWidth: e.value.style.chartWidth,
|
|
228
|
+
padding: s.forcedPadding
|
|
229
|
+
}), Y = De, i = f(() => {
|
|
230
|
+
const { top: t, right: a, bottom: l, left: o } = e.value.style.padding;
|
|
231
|
+
return {
|
|
232
|
+
top: t,
|
|
233
|
+
left: o,
|
|
234
|
+
right: r.value.width - a,
|
|
235
|
+
bottom: r.value.height - l,
|
|
236
|
+
start: s.showInfo && e.value.style.dataLabel.show && e.value.style.dataLabel.position === "left" ? r.value.width - r.value.chartWidth + o : r.value.padding + o,
|
|
237
|
+
width: s.showInfo && e.value.style.dataLabel.show ? r.value.chartWidth - o - a : r.value.width - r.value.padding - o - a,
|
|
238
|
+
height: r.value.height - t - l
|
|
239
|
+
};
|
|
240
|
+
}), q = f(() => [null, void 0].includes(e.value.style.scaleMin) ? Math.min(...b.value.map((t) => isNaN(t.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t.value) ? 0 : t.value || 0)) : e.value.style.scaleMin), We = f(() => [null, void 0].includes(e.value.style.scaleMax) ? Math.max(...b.value.map((t) => isNaN(t.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t.value) ? 0 : t.value || 0)) : e.value.style.scaleMax), I = f(() => {
|
|
241
|
+
const t = q.value >= 0 ? 0 : q.value;
|
|
242
|
+
return Math.abs(t);
|
|
243
|
+
}), de = f(() => We.value + I.value), _ = f(() => i.value.bottom - i.value.height * Z(I.value));
|
|
244
|
+
function Z(t) {
|
|
245
|
+
return isNaN(t / de.value) ? 0 : t / de.value;
|
|
246
|
+
}
|
|
247
|
+
const C = f(() => x.value.length - 1 || 1), S = f(() => ct({
|
|
248
|
+
values: x.value.map((t) => t.period),
|
|
249
|
+
maxDatapoints: x.value.length,
|
|
250
|
+
formatter: e.value.style.dataLabel.datetimeFormatter,
|
|
251
|
+
start: 0,
|
|
252
|
+
end: x.value.length
|
|
253
|
+
})), d = f(() => b.value.map((t, a) => {
|
|
254
|
+
const l = isNaN(t.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t.value) ? 0 : t.value || 0, o = i.value.width / C.value;
|
|
255
|
+
return {
|
|
256
|
+
absoluteValue: l,
|
|
257
|
+
period: S.value && S.value[a] && S.value[a].text ? S.value[a].text : t.period,
|
|
258
|
+
plotValue: l + I.value,
|
|
259
|
+
toMax: Z(l + I.value),
|
|
260
|
+
x: i.value.start + a * o,
|
|
261
|
+
y: i.value.bottom - i.value.height * Z(l + I.value),
|
|
262
|
+
id: `plot_${g.value}_${a}`,
|
|
263
|
+
color: M.value ? e.value.style.bar.color : e.value.style.area.useGradient ? E(e.value.style.line.color, 0.05 * (1 - a / C.value)) : e.value.style.line.color,
|
|
264
|
+
width: o
|
|
265
|
+
};
|
|
266
|
+
})), Pe = f(() => {
|
|
267
|
+
const t = { x: d.value[0].x || 0, y: (r.value.height || 0) - 6 }, a = { x: d.value[d.value.length - 1].x || 0, y: (r.value.height || 0) - 6 }, l = [];
|
|
268
|
+
return d.value.forEach((o) => {
|
|
269
|
+
l.push(`${o.x || 0},${o.y || 0} `);
|
|
270
|
+
}), [t.x, t.y, ...l, a.x, a.y].toString();
|
|
271
|
+
}), v = y(void 0), w = y(void 0);
|
|
272
|
+
function Oe(t, a) {
|
|
273
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }), v.value = t, w.value || (w.value = t), Y("hoverIndex", { index: a });
|
|
274
|
+
}
|
|
275
|
+
function je(t, a) {
|
|
276
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a }), w.value = v.value, v.value = void 0, Y("hoverIndex", { index: void 0 });
|
|
277
|
+
}
|
|
278
|
+
const k = f(() => {
|
|
279
|
+
if (re.value) {
|
|
280
|
+
const t = d.value.map((l) => l.absoluteValue), a = t.reduce((l, o) => l + o, 0);
|
|
281
|
+
return {
|
|
282
|
+
latest: d.value[d.value.length - 1] ? d.value[d.value.length - 1].absoluteValue : 0,
|
|
283
|
+
sum: a,
|
|
284
|
+
average: a / d.value.length,
|
|
285
|
+
median: at(t),
|
|
286
|
+
trend: tt(d.value.map(({ x: l, y: o, absoluteValue: K }) => ({
|
|
287
|
+
x: l,
|
|
288
|
+
y: o,
|
|
289
|
+
value: K
|
|
290
|
+
}))).trend
|
|
291
|
+
};
|
|
292
|
+
} else
|
|
293
|
+
return {
|
|
294
|
+
latest: null,
|
|
295
|
+
sum: null,
|
|
296
|
+
average: null,
|
|
297
|
+
median: null,
|
|
298
|
+
trend: null
|
|
299
|
+
};
|
|
300
|
+
}), ce = f(() => re.value ? e.value.style.dataLabel.valueType === "latest" ? k.value.latest : e.value.style.dataLabel.valueType === "sum" ? k.value.sum : e.value.style.dataLabel.valueType === "average" ? k.value.average : 0 : 0), M = f(() => e.value.type && e.value.type === "bar");
|
|
301
|
+
function Ge(t, a) {
|
|
302
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: a }), Y("selectDatapoint", { datapoint: t, index: a });
|
|
303
|
+
}
|
|
304
|
+
return (t, a) => (n(), c("div", {
|
|
305
|
+
ref_key: "sparklineChart",
|
|
306
|
+
ref: T,
|
|
307
|
+
class: "vue-data-ui-component vue-ui-sparkline",
|
|
308
|
+
id: g.value,
|
|
309
|
+
style: z(`width:100%;font-family:${e.value.style.fontFamily};`)
|
|
310
|
+
}, [
|
|
311
|
+
F(t.$slots, "before", be(me({
|
|
312
|
+
selected: v.value,
|
|
313
|
+
latest: k.value.latest,
|
|
314
|
+
sum: k.value.sum,
|
|
315
|
+
average: k.value.average,
|
|
316
|
+
median: k.value.median,
|
|
317
|
+
trend: k.value.trend
|
|
318
|
+
})), void 0, !0),
|
|
319
|
+
e.value.style.title.show && L.showInfo ? (n(), c("div", {
|
|
320
|
+
key: 0,
|
|
321
|
+
ref_key: "chartTitle",
|
|
322
|
+
ref: ue,
|
|
323
|
+
class: "vue-ui-sparkline-title",
|
|
324
|
+
style: z(`display:flex;align-items:center;width:100%;color:${e.value.style.title.color};background:${e.value.style.backgroundColor};justify-content:${e.value.style.title.textAlign === "left" ? "flex-start" : e.value.style.title.textAlign === "right" ? "flex-end" : "center"};height:${e.value.style.title.fontSize * 2}px;font-size:${e.value.style.title.fontSize}px;font-weight:${e.value.style.title.bold ? "bold" : "normal"};`)
|
|
325
|
+
}, [
|
|
326
|
+
p("span", {
|
|
327
|
+
style: z(`padding:${e.value.style.title.textAlign === "left" ? "0 0 0 12px" : e.value.style.title.textAlign === "right" ? "0 12px 0 0" : "0"}`)
|
|
328
|
+
}, B(v.value ? v.value.period : e.value.style.title.text), 5)
|
|
329
|
+
], 4)) : h("", !0),
|
|
330
|
+
(n(), c("svg", {
|
|
331
|
+
ref_key: "svgRef",
|
|
332
|
+
ref: ne,
|
|
333
|
+
xmlns: u(lt),
|
|
334
|
+
viewBox: `0 0 ${r.value.width} ${r.value.height}`,
|
|
335
|
+
style: z(`background:${e.value.style.backgroundColor};overflow:visible`),
|
|
336
|
+
onMouseleave: a[0] || (a[0] = (l) => w.value = void 0)
|
|
337
|
+
}, [
|
|
338
|
+
qe(u(Se)),
|
|
339
|
+
t.$slots["chart-background"] ? (n(), c("foreignObject", {
|
|
340
|
+
key: 0,
|
|
341
|
+
x: 0,
|
|
342
|
+
y: 0,
|
|
343
|
+
width: r.value.width <= 0 ? 10 : r.value.width,
|
|
344
|
+
height: r.value.height <= 0 ? 10 : r.value.height,
|
|
345
|
+
style: {
|
|
346
|
+
pointerEvents: "none"
|
|
347
|
+
}
|
|
348
|
+
}, [
|
|
349
|
+
F(t.$slots, "chart-background", {}, void 0, !0)
|
|
350
|
+
], 8, gt)) : h("", !0),
|
|
351
|
+
p("defs", null, [
|
|
352
|
+
p("linearGradient", {
|
|
353
|
+
x1: "0%",
|
|
354
|
+
y1: "0%",
|
|
355
|
+
x2: "100%",
|
|
356
|
+
y2: "0%",
|
|
357
|
+
id: `sparkline_gradient_${g.value}`
|
|
358
|
+
}, [
|
|
359
|
+
p("stop", {
|
|
360
|
+
offset: "0%",
|
|
361
|
+
"stop-color": u(V)(u(E)(e.value.style.area.color, 0.05), e.value.style.area.opacity)
|
|
362
|
+
}, null, 8, mt),
|
|
363
|
+
p("stop", {
|
|
364
|
+
offset: "100%",
|
|
365
|
+
"stop-color": u(V)(e.value.style.area.color, e.value.style.area.opacity)
|
|
366
|
+
}, null, 8, kt)
|
|
367
|
+
], 8, bt),
|
|
368
|
+
p("linearGradient", {
|
|
369
|
+
x2: "0%",
|
|
370
|
+
y2: "100%",
|
|
371
|
+
id: `sparkline_bar_gradient_pos_${g.value}`
|
|
372
|
+
}, [
|
|
373
|
+
p("stop", {
|
|
374
|
+
offset: "0%",
|
|
375
|
+
"stop-color": e.value.style.bar.color
|
|
376
|
+
}, null, 8, At),
|
|
377
|
+
p("stop", {
|
|
378
|
+
offset: "100%",
|
|
379
|
+
"stop-color": u(E)(e.value.style.bar.color, 0.05)
|
|
380
|
+
}, null, 8, _t)
|
|
381
|
+
], 8, xt),
|
|
382
|
+
p("linearGradient", {
|
|
383
|
+
x2: "0%",
|
|
384
|
+
y2: "100%",
|
|
385
|
+
id: `sparkline_bar_gradient_neg_${g.value}`
|
|
386
|
+
}, [
|
|
387
|
+
p("stop", {
|
|
388
|
+
offset: "0%",
|
|
389
|
+
"stop-color": u(E)(e.value.style.bar.color, 0.05)
|
|
390
|
+
}, null, 8, wt),
|
|
391
|
+
p("stop", {
|
|
392
|
+
offset: "100%",
|
|
393
|
+
"stop-color": e.value.style.bar.color
|
|
394
|
+
}, null, 8, Lt)
|
|
395
|
+
], 8, Ct)
|
|
396
|
+
]),
|
|
397
|
+
e.value.style.area.show && !M.value && d.value[0] && d.value.length > 1 ? (n(), c("g", $t, [
|
|
398
|
+
e.value.style.line.smooth ? (n(), c("path", {
|
|
399
|
+
key: 0,
|
|
400
|
+
d: `M ${d.value[0].x},${i.value.bottom} ${u(_e)(d.value)} L ${d.value.at(-1).x},${i.value.bottom} Z`,
|
|
401
|
+
fill: e.value.style.area.useGradient ? `url(#sparkline_gradient_${g.value})` : u(V)(e.value.style.area.color, e.value.style.area.opacity)
|
|
402
|
+
}, null, 8, Nt)) : (n(), c("path", {
|
|
403
|
+
key: 1,
|
|
404
|
+
d: `M${Pe.value}Z`,
|
|
405
|
+
fill: e.value.style.area.useGradient ? `url(#sparkline_gradient_${g.value})` : u(V)(e.value.style.area.color, e.value.style.area.opacity)
|
|
406
|
+
}, null, 8, It))
|
|
407
|
+
])) : h("", !0),
|
|
408
|
+
e.value.style.line.smooth && !M.value ? (n(), c("path", {
|
|
409
|
+
key: 2,
|
|
410
|
+
d: `M ${u(_e)(d.value) || "0,0"}`,
|
|
411
|
+
stroke: e.value.style.line.color,
|
|
412
|
+
fill: "none",
|
|
413
|
+
"stroke-width": e.value.style.line.strokeWidth,
|
|
414
|
+
"stroke-linecap": "round"
|
|
415
|
+
}, null, 8, Mt)) : h("", !0),
|
|
416
|
+
!e.value.style.line.smooth && !M.value ? (n(), c("path", {
|
|
417
|
+
key: 3,
|
|
418
|
+
d: `M ${u(ot)(d.value) || "0,0"}`,
|
|
419
|
+
stroke: e.value.style.line.color,
|
|
420
|
+
fill: "none",
|
|
421
|
+
"stroke-width": e.value.style.line.strokeWidth,
|
|
422
|
+
"stroke-linecap": "round"
|
|
423
|
+
}, null, 8, Ft)) : h("", !0),
|
|
424
|
+
(n(!0), c(Q, null, ee(d.value, (l, o) => (n(), c("g", null, [
|
|
425
|
+
M.value ? (n(), c("rect", {
|
|
426
|
+
key: 0,
|
|
427
|
+
x: l.x - l.width / 2,
|
|
428
|
+
y: isNaN(l.absoluteValue > 0 ? l.y : _.value) ? 0 : l.absoluteValue > 0 ? l.y : _.value,
|
|
429
|
+
width: l.width,
|
|
430
|
+
height: isNaN(Math.abs(l.y - _.value)) ? 0 : Math.abs(l.y - _.value),
|
|
431
|
+
fill: l.absoluteValue > 0 ? `url(#sparkline_bar_gradient_pos_${g.value})` : `url(#sparkline_bar_gradient_neg_${g.value})`,
|
|
432
|
+
rx: e.value.style.bar.borderRadius
|
|
433
|
+
}, null, 8, Dt)) : h("", !0),
|
|
434
|
+
e.value.style.verticalIndicator.show && (v.value && l.id === v.value.id || L.selectedIndex === o) ? (n(), c("line", {
|
|
435
|
+
key: 1,
|
|
436
|
+
x1: l.x,
|
|
437
|
+
x2: l.x,
|
|
438
|
+
y1: i.value.top - 6,
|
|
439
|
+
y2: i.value.bottom,
|
|
440
|
+
stroke: e.value.style.verticalIndicator.color || l.color,
|
|
441
|
+
"stroke-width": e.value.style.verticalIndicator.strokeWidth,
|
|
442
|
+
"stroke-linecap": "round",
|
|
443
|
+
"stroke-dasharray": e.value.style.verticalIndicator.strokeDasharray || 0
|
|
444
|
+
}, null, 8, St)) : h("", !0)
|
|
445
|
+
]))), 256)),
|
|
446
|
+
q.value < 0 ? (n(), c("line", {
|
|
447
|
+
key: 4,
|
|
448
|
+
x1: i.value.start,
|
|
449
|
+
x2: i.value.start + i.value.width,
|
|
450
|
+
y1: u(Ce)(_.value, i.value.bottom),
|
|
451
|
+
y2: u(Ce)(_.value, i.value.bottom),
|
|
452
|
+
stroke: e.value.style.zeroLine.color,
|
|
453
|
+
"stroke-dasharray": e.value.style.zeroLine.strokeWidth * 2,
|
|
454
|
+
"stroke-width": e.value.style.zeroLine.strokeWidth,
|
|
455
|
+
"stroke-linecap": "round"
|
|
456
|
+
}, null, 8, zt)) : h("", !0),
|
|
457
|
+
e.value.style.plot.show ? (n(!0), c(Q, { key: 5 }, ee(d.value, (l, o) => (n(), c("g", null, [
|
|
458
|
+
v.value && l.id === v.value.id || L.selectedIndex === o || u($).length === 1 ? (n(), c("circle", {
|
|
459
|
+
key: 0,
|
|
460
|
+
cx: l.x,
|
|
461
|
+
cy: l.y,
|
|
462
|
+
r: e.value.style.plot.radius,
|
|
463
|
+
fill: l.color,
|
|
464
|
+
stroke: e.value.style.plot.stroke,
|
|
465
|
+
"stroke-width": e.value.style.plot.strokeWidth
|
|
466
|
+
}, null, 8, Bt)) : h("", !0)
|
|
467
|
+
]))), 256)) : h("", !0),
|
|
468
|
+
L.showInfo && e.value.style.dataLabel.show ? (n(), c("text", {
|
|
469
|
+
key: 6,
|
|
470
|
+
x: e.value.style.dataLabel.position === "left" ? 12 + e.value.style.dataLabel.offsetX : i.value.width + 12 + e.value.style.dataLabel.offsetX,
|
|
471
|
+
y: r.value.height / 2 + e.value.style.dataLabel.fontSize / 2.5 + e.value.style.dataLabel.offsetY,
|
|
472
|
+
"font-size": e.value.style.dataLabel.fontSize,
|
|
473
|
+
"font-weight": e.value.style.dataLabel.bold ? "bold" : "normal",
|
|
474
|
+
fill: e.value.style.dataLabel.color
|
|
475
|
+
}, B(v.value ? u(ae)(
|
|
476
|
+
e.value.style.dataLabel.formatter,
|
|
477
|
+
v.value.absoluteValue,
|
|
478
|
+
u(le)({ p: e.value.style.dataLabel.prefix, v: v.value.absoluteValue, s: e.value.style.dataLabel.suffix, r: e.value.style.dataLabel.roundingValue }),
|
|
479
|
+
{ datapoint: v.value }
|
|
480
|
+
) : u(ae)(
|
|
481
|
+
e.value.style.dataLabel.formatter,
|
|
482
|
+
ce.value,
|
|
483
|
+
u(le)({ p: e.value.style.dataLabel.prefix, v: ce.value, s: e.value.style.dataLabel.suffix, r: e.value.style.dataLabel.roundingValue })
|
|
484
|
+
)), 9, Et)) : h("", !0),
|
|
485
|
+
(n(!0), c(Q, null, ee(d.value, (l, o) => (n(), c("rect", {
|
|
486
|
+
x: l.x - (i.value.width / (C.value + 1) > r.value.padding ? r.value.padding : i.value.width / (C.value + 1)) / 2,
|
|
487
|
+
y: i.value.top - 6,
|
|
488
|
+
height: i.value.height + 6,
|
|
489
|
+
width: i.value.width / (C.value + 1) > r.value.padding ? r.value.padding : i.value.width / (C.value + 1),
|
|
490
|
+
fill: "transparent",
|
|
491
|
+
onMouseenter: () => Oe(l, o),
|
|
492
|
+
onMouseleave: () => je(l, o),
|
|
493
|
+
onClick: () => Ge(l, o)
|
|
494
|
+
}, null, 40, Vt))), 256)),
|
|
495
|
+
F(t.$slots, "svg", { svg: r.value }, void 0, !0)
|
|
496
|
+
], 44, pt)),
|
|
497
|
+
v.value && e.value.style.tooltip.show ? (n(), ge(u(ze), {
|
|
498
|
+
key: 1,
|
|
499
|
+
x: v.value.x,
|
|
500
|
+
y: v.value.y,
|
|
501
|
+
prevX: w.value.x,
|
|
502
|
+
prevY: w.value.y,
|
|
503
|
+
offsetY: e.value.style.plot.radius * 3 + e.value.style.tooltip.offsetY,
|
|
504
|
+
svgRef: u(ne),
|
|
505
|
+
background: e.value.style.tooltip.backgroundColor,
|
|
506
|
+
color: e.value.style.tooltip.color,
|
|
507
|
+
fontSize: e.value.style.tooltip.fontSize,
|
|
508
|
+
borderWidth: e.value.style.tooltip.borderWidth,
|
|
509
|
+
borderColor: e.value.style.tooltip.borderColor,
|
|
510
|
+
borderRadius: e.value.style.tooltip.borderRadius,
|
|
511
|
+
backgroundOpacity: e.value.style.tooltip.backgroundOpacity
|
|
512
|
+
}, {
|
|
513
|
+
default: Ze(() => [
|
|
514
|
+
F(t.$slots, "tooltip", be(me({ ...v.value })), () => [
|
|
515
|
+
Ke(B(v.value.period) + ": " + B(u(ae)(
|
|
516
|
+
e.value.style.dataLabel.formatter,
|
|
517
|
+
v.value.absoluteValue,
|
|
518
|
+
u(le)({
|
|
519
|
+
p: e.value.style.dataLabel.prefix,
|
|
520
|
+
v: v.value.absoluteValue,
|
|
521
|
+
s: e.value.style.dataLabel.suffix,
|
|
522
|
+
r: e.value.style.dataLabel.roundingValue
|
|
523
|
+
}),
|
|
524
|
+
{ datapoint: v.value }
|
|
525
|
+
)), 1)
|
|
526
|
+
], !0)
|
|
527
|
+
]),
|
|
528
|
+
_: 3
|
|
529
|
+
}, 8, ["x", "y", "prevX", "prevY", "offsetY", "svgRef", "background", "color", "fontSize", "borderWidth", "borderColor", "borderRadius", "backgroundOpacity"])) : h("", !0),
|
|
530
|
+
t.$slots.source ? (n(), c("div", {
|
|
531
|
+
key: 2,
|
|
532
|
+
ref_key: "source",
|
|
533
|
+
ref: se,
|
|
534
|
+
dir: "auto"
|
|
535
|
+
}, [
|
|
536
|
+
F(t.$slots, "source", {}, void 0, !0)
|
|
537
|
+
], 512)) : h("", !0),
|
|
538
|
+
u(R) ? (n(), ge(vt, { key: 3 })) : h("", !0)
|
|
539
|
+
], 12, yt));
|
|
540
|
+
}
|
|
541
|
+
}, Rt = /* @__PURE__ */ ht(Tt, [["__scopeId", "data-v-1b368031"]]), Kt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
542
|
+
__proto__: null,
|
|
543
|
+
default: Rt
|
|
544
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
545
|
+
export {
|
|
546
|
+
Zt as a,
|
|
547
|
+
Kt as b,
|
|
548
|
+
Rt as v
|
|
549
|
+
};
|