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,514 +0,0 @@
|
|
|
1
|
-
import { defineAsyncComponent as he, computed as h, ref as y, toRefs as Pe, watch as J, shallowRef as fe, onMounted as Re, onBeforeUnmount as ye, createElementBlock as c, openBlock as n, normalizeStyle as D, renderSlot as S, createCommentVNode as f, createBlock as pe, normalizeProps as ge, guardReactiveProps as me, createElementVNode as p, toDisplayString as T, unref as s, createVNode as Fe, Fragment as Q, renderList as ee, withCtx as Ee, createTextVNode as Oe, nextTick as Be } from "vue";
|
|
2
|
-
import { c as Ge, t as je, O as be, af as te, o as ke, f as xe, g as Ue, i as W, L as Xe, ag as Ye, X as qe, s as P, z as _e, B as Ze, r as we, a as ae, d as le, ah as Ke } from "./lib-C_mNZmhD.js";
|
|
3
|
-
import { u as He, a as Le } from "./useNestedProp-CReNavA0.js";
|
|
4
|
-
import { t as Je, u as Qe } from "./useResponsive-DfdjqQps.js";
|
|
5
|
-
import { u as et } from "./useChartAccessibility-9icAAmYg.js";
|
|
6
|
-
import { u as tt, B as at } from "./BaseScanner-BgWxam9d.js";
|
|
7
|
-
import { t as lt } from "./themes-AUNCOb2G.js";
|
|
8
|
-
import { u as ut } from "./useTimeLabels-BGFjWgrv.js";
|
|
9
|
-
import { _ as ot } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
-
const st = ["id"], nt = ["xmlns", "viewBox"], rt = ["width", "height"], it = ["id"], vt = ["stop-color"], dt = ["stop-color"], ct = ["id"], ht = ["stop-color"], ft = ["stop-color"], yt = ["id"], pt = ["stop-color"], gt = ["stop-color"], mt = { key: 1 }, bt = ["d", "fill"], kt = ["d", "fill"], xt = ["d", "stroke", "stroke-width"], _t = ["d", "stroke", "stroke-width"], wt = ["x", "y", "width", "height", "fill", "rx"], Lt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], At = ["x1", "x2", "y1", "y2", "stroke", "stroke-dasharray", "stroke-width"], $t = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Nt = ["x", "y", "font-size", "font-weight", "fill"], Mt = ["x", "y", "height", "width", "onMouseenter", "onMouseleave", "onClick"], Ct = {
|
|
11
|
-
__name: "vue-ui-sparkline",
|
|
12
|
-
props: {
|
|
13
|
-
config: {
|
|
14
|
-
type: Object,
|
|
15
|
-
default() {
|
|
16
|
-
return {};
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
dataset: {
|
|
20
|
-
type: Array,
|
|
21
|
-
default() {
|
|
22
|
-
return [];
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
showInfo: {
|
|
26
|
-
type: Boolean,
|
|
27
|
-
default: !0
|
|
28
|
-
},
|
|
29
|
-
selectedIndex: {
|
|
30
|
-
type: Number,
|
|
31
|
-
default: void 0
|
|
32
|
-
},
|
|
33
|
-
heightRatio: {
|
|
34
|
-
type: Number,
|
|
35
|
-
default: 1
|
|
36
|
-
},
|
|
37
|
-
forcedPadding: {
|
|
38
|
-
type: Number,
|
|
39
|
-
default: 30
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
emits: ["hoverIndex", "selectDatapoint"],
|
|
43
|
-
setup($, { emit: Ae }) {
|
|
44
|
-
const $e = he(() => import("./PackageVersion-Y7t79Jtq.js")), Ne = he(() => import("./SparkTooltip-BEewz-_Q.js")), { vue_ui_sparkline: Me } = He(), r = $, ue = h(() => Array.isArray(r.dataset) && r.dataset.length > 0), g = y(Ge()), R = y(null), oe = y(null), se = y(null), e = y(O());
|
|
45
|
-
function Ce(t) {
|
|
46
|
-
return Ke(t).map((a) => ({ period: "-", value: a }));
|
|
47
|
-
}
|
|
48
|
-
const { loading: F, FINAL_DATASET: N, manualLoading: E } = tt({
|
|
49
|
-
...Pe(r),
|
|
50
|
-
FINAL_CONFIG: e,
|
|
51
|
-
prepareConfig: O,
|
|
52
|
-
callback: () => {
|
|
53
|
-
Promise.resolve().then(async () => {
|
|
54
|
-
await Be(), X();
|
|
55
|
-
});
|
|
56
|
-
},
|
|
57
|
-
skeletonDataset: Ce(12),
|
|
58
|
-
skeletonConfig: je({
|
|
59
|
-
defaultConfig: e.value,
|
|
60
|
-
userConfig: {
|
|
61
|
-
style: {
|
|
62
|
-
backgroundColor: "#99999930",
|
|
63
|
-
scaleMin: 0,
|
|
64
|
-
scaleMax: null,
|
|
65
|
-
animation: { show: !1 },
|
|
66
|
-
line: { color: "#AAAAAA" },
|
|
67
|
-
bar: { color: "#AAAAAA" },
|
|
68
|
-
area: { color: "#CACACA" },
|
|
69
|
-
zeroLine: { color: "#6A6A6A" },
|
|
70
|
-
dataLabel: { show: !1 },
|
|
71
|
-
tooltip: { show: !1 }
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
})
|
|
75
|
-
}), { svgRef: ne } = et({ config: e.value.style.title });
|
|
76
|
-
function O() {
|
|
77
|
-
const t = Le({
|
|
78
|
-
userConfig: r.config,
|
|
79
|
-
defaultConfig: Me
|
|
80
|
-
});
|
|
81
|
-
let a = {};
|
|
82
|
-
return t.theme ? a = {
|
|
83
|
-
...Le({
|
|
84
|
-
userConfig: lt.vue_ui_sparkline[t.theme] || r.config,
|
|
85
|
-
defaultConfig: t
|
|
86
|
-
})
|
|
87
|
-
} : a = t, r.config && be(r.config, "style.scaleMin") ? a.style.scaleMin = r.config.style.scaleMin : a.style.scaleMin = null, r.config && be(r.config, "style.scaleMax") ? a.style.scaleMax = r.config.style.scaleMax : a.style.scaleMax = null, a;
|
|
88
|
-
}
|
|
89
|
-
const x = h(() => te({
|
|
90
|
-
data: N.value,
|
|
91
|
-
threshold: e.value.downsample.threshold
|
|
92
|
-
}));
|
|
93
|
-
J(() => r.config, (t) => {
|
|
94
|
-
F.value || (e.value = O()), ie(), o.value.chartWidth = e.value.style.chartWidth;
|
|
95
|
-
}, { deep: !0 }), J(() => r.dataset, (t) => {
|
|
96
|
-
Array.isArray(t) && t.length > 0 && (E.value = !1), m.value = te({
|
|
97
|
-
data: N.value.map((a) => ({
|
|
98
|
-
...a,
|
|
99
|
-
value: [void 0].includes(a.value) ? null : a.value
|
|
100
|
-
})),
|
|
101
|
-
threshold: e.value.downsample.threshold
|
|
102
|
-
});
|
|
103
|
-
}, { deep: !0 });
|
|
104
|
-
const m = y(Ie());
|
|
105
|
-
function Ie() {
|
|
106
|
-
return te({
|
|
107
|
-
data: N.value.map((t) => e.value.style.animation.show && N.value.length > 1 ? {
|
|
108
|
-
...t,
|
|
109
|
-
value: null
|
|
110
|
-
} : {
|
|
111
|
-
...t,
|
|
112
|
-
value: [void 0].includes(t.value) ? null : t.value
|
|
113
|
-
}),
|
|
114
|
-
threshold: e.value.downsample.threshold
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
const b = fe(null), _ = fe(null), B = y(!1), M = y(0), G = y([]), j = y(""), U = h(() => {
|
|
118
|
-
const a = (x.value || []).map((u) => `${u.period}::${Number.isFinite(u.value) ? u.value : 0}`).join("|"), l = e.value?.style?.animation || {};
|
|
119
|
-
return `${a}#${!!l.show}#${l.animationFrames || 0}`;
|
|
120
|
-
});
|
|
121
|
-
function V() {
|
|
122
|
-
M.value && (cancelAnimationFrame(M.value), M.value = 0), G.value.forEach((t) => clearTimeout(t)), G.value = [], B.value = !1;
|
|
123
|
-
}
|
|
124
|
-
function X() {
|
|
125
|
-
const t = e.value?.style?.animation || {}, a = x.value || [], l = U.value;
|
|
126
|
-
if (l && l === j.value && (B.value || m.value.length === a.length))
|
|
127
|
-
return;
|
|
128
|
-
if (V(), !t.show || F.value || a.length <= 1) {
|
|
129
|
-
m.value = a, j.value = l;
|
|
130
|
-
return;
|
|
131
|
-
}
|
|
132
|
-
B.value = !0, j.value = l, m.value = [];
|
|
133
|
-
const u = Math.max(1, Number(t.animationFrames) || 1), K = Math.max(1, Math.floor(u / a.length));
|
|
134
|
-
let H = 0;
|
|
135
|
-
const ce = () => {
|
|
136
|
-
if (l !== U.value) {
|
|
137
|
-
V();
|
|
138
|
-
return;
|
|
139
|
-
}
|
|
140
|
-
if (H < a.length) {
|
|
141
|
-
m.value.push(a[H]);
|
|
142
|
-
const We = setTimeout(() => {
|
|
143
|
-
M.value = requestAnimationFrame(ce);
|
|
144
|
-
}, K);
|
|
145
|
-
G.value.push(We), H += 1;
|
|
146
|
-
} else
|
|
147
|
-
m.value = a, V();
|
|
148
|
-
};
|
|
149
|
-
M.value = requestAnimationFrame(ce);
|
|
150
|
-
}
|
|
151
|
-
J(U, () => {
|
|
152
|
-
X();
|
|
153
|
-
}), Re(() => {
|
|
154
|
-
ie(), X();
|
|
155
|
-
}), ye(() => {
|
|
156
|
-
V();
|
|
157
|
-
});
|
|
158
|
-
const re = h(() => !!e.value.debug);
|
|
159
|
-
function ie() {
|
|
160
|
-
if (ke(r.dataset) ? (xe({
|
|
161
|
-
componentName: "VueUiSparkline",
|
|
162
|
-
type: "dataset",
|
|
163
|
-
debug: re.value
|
|
164
|
-
}), E.value = !0) : r.dataset.forEach((t, a) => {
|
|
165
|
-
Ue({
|
|
166
|
-
datasetObject: t,
|
|
167
|
-
requiredAttributes: ["period", "value"]
|
|
168
|
-
}).forEach((l) => {
|
|
169
|
-
xe({
|
|
170
|
-
componentName: "VueUiSparkline",
|
|
171
|
-
type: "datasetSerieAttribute",
|
|
172
|
-
property: l,
|
|
173
|
-
index: a,
|
|
174
|
-
debug: re.value
|
|
175
|
-
});
|
|
176
|
-
});
|
|
177
|
-
}), ke(r.dataset) || (E.value = e.value.loading), e.value.responsive) {
|
|
178
|
-
const t = Je(() => {
|
|
179
|
-
const { width: a, height: l } = Qe({
|
|
180
|
-
chart: R.value,
|
|
181
|
-
title: e.value.style.title.show && r.showInfo ? oe.value : null,
|
|
182
|
-
source: se.value
|
|
183
|
-
});
|
|
184
|
-
requestAnimationFrame(() => {
|
|
185
|
-
o.value.width = a, o.value.height = l, o.value.chartWidth = e.value.style.chartWidth / 500 * a, o.value.padding = r.forcedPadding / 500 * a;
|
|
186
|
-
});
|
|
187
|
-
});
|
|
188
|
-
b.value && (_.value && b.value.unobserve(_.value), b.value.disconnect()), b.value = new ResizeObserver(t), _.value = R.value.parentNode, b.value.observe(_.value);
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
ye(() => {
|
|
192
|
-
b.value && (_.value && b.value.unobserve(_.value), b.value.disconnect());
|
|
193
|
-
});
|
|
194
|
-
const o = y({
|
|
195
|
-
height: 80 * r.heightRatio,
|
|
196
|
-
width: 500,
|
|
197
|
-
chartWidth: e.value.style.chartWidth,
|
|
198
|
-
padding: r.forcedPadding
|
|
199
|
-
}), Y = Ae, i = h(() => {
|
|
200
|
-
const { top: t, right: a, bottom: l, left: u } = e.value.style.padding;
|
|
201
|
-
return {
|
|
202
|
-
top: t,
|
|
203
|
-
left: u,
|
|
204
|
-
right: o.value.width - a,
|
|
205
|
-
bottom: o.value.height - l,
|
|
206
|
-
start: r.showInfo && e.value.style.dataLabel.show && e.value.style.dataLabel.position === "left" ? o.value.width - o.value.chartWidth + u : o.value.padding + u,
|
|
207
|
-
width: r.showInfo && e.value.style.dataLabel.show ? o.value.chartWidth - u - a : o.value.width - o.value.padding - u - a,
|
|
208
|
-
height: o.value.height - t - l
|
|
209
|
-
};
|
|
210
|
-
}), q = h(() => [null, void 0].includes(e.value.style.scaleMin) ? Math.min(...m.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), Se = h(() => [null, void 0].includes(e.value.style.scaleMax) ? Math.max(...m.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), C = h(() => {
|
|
211
|
-
const t = q.value >= 0 ? 0 : q.value;
|
|
212
|
-
return Math.abs(t);
|
|
213
|
-
}), ve = h(() => Se.value + C.value), w = h(() => i.value.bottom - i.value.height * Z(C.value));
|
|
214
|
-
function Z(t) {
|
|
215
|
-
return isNaN(t / ve.value) ? 0 : t / ve.value;
|
|
216
|
-
}
|
|
217
|
-
const L = h(() => x.value.length - 1 || 1), z = h(() => ut({
|
|
218
|
-
values: x.value.map((t) => t.period),
|
|
219
|
-
maxDatapoints: x.value.length,
|
|
220
|
-
formatter: e.value.style.dataLabel.datetimeFormatter,
|
|
221
|
-
start: 0,
|
|
222
|
-
end: x.value.length
|
|
223
|
-
})), d = h(() => m.value.map((t, a) => {
|
|
224
|
-
const l = isNaN(t.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t.value) ? 0 : t.value || 0, u = i.value.width / L.value;
|
|
225
|
-
return {
|
|
226
|
-
absoluteValue: l,
|
|
227
|
-
period: z.value && z.value[a] && z.value[a].text ? z.value[a].text : t.period,
|
|
228
|
-
plotValue: l + C.value,
|
|
229
|
-
toMax: Z(l + C.value),
|
|
230
|
-
x: i.value.start + a * u,
|
|
231
|
-
y: i.value.bottom - i.value.height * Z(l + C.value),
|
|
232
|
-
id: `plot_${g.value}_${a}`,
|
|
233
|
-
color: I.value ? e.value.style.bar.color : e.value.style.area.useGradient ? W(e.value.style.line.color, 0.05 * (1 - a / L.value)) : e.value.style.line.color,
|
|
234
|
-
width: u
|
|
235
|
-
};
|
|
236
|
-
})), Ve = h(() => {
|
|
237
|
-
const t = { x: d.value[0].x || 0, y: (o.value.height || 0) - 6 }, a = { x: d.value[d.value.length - 1].x || 0, y: (o.value.height || 0) - 6 }, l = [];
|
|
238
|
-
return d.value.forEach((u) => {
|
|
239
|
-
l.push(`${u.x || 0},${u.y || 0} `);
|
|
240
|
-
}), [t.x, t.y, ...l, a.x, a.y].toString();
|
|
241
|
-
}), v = y(void 0), A = y(void 0);
|
|
242
|
-
function ze(t, a) {
|
|
243
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }), v.value = t, A.value || (A.value = t), Y("hoverIndex", { index: a });
|
|
244
|
-
}
|
|
245
|
-
function De(t, a) {
|
|
246
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a }), A.value = v.value, v.value = void 0, Y("hoverIndex", { index: void 0 });
|
|
247
|
-
}
|
|
248
|
-
const k = h(() => {
|
|
249
|
-
if (ue.value) {
|
|
250
|
-
const t = d.value.map((l) => l.absoluteValue), a = t.reduce((l, u) => l + u, 0);
|
|
251
|
-
return {
|
|
252
|
-
latest: d.value[d.value.length - 1] ? d.value[d.value.length - 1].absoluteValue : 0,
|
|
253
|
-
sum: a,
|
|
254
|
-
average: a / d.value.length,
|
|
255
|
-
median: Ye(t),
|
|
256
|
-
trend: Xe(d.value.map(({ x: l, y: u, absoluteValue: K }) => ({
|
|
257
|
-
x: l,
|
|
258
|
-
y: u,
|
|
259
|
-
value: K
|
|
260
|
-
}))).trend
|
|
261
|
-
};
|
|
262
|
-
} else
|
|
263
|
-
return {
|
|
264
|
-
latest: null,
|
|
265
|
-
sum: null,
|
|
266
|
-
average: null,
|
|
267
|
-
median: null,
|
|
268
|
-
trend: null
|
|
269
|
-
};
|
|
270
|
-
}), de = h(() => ue.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), I = h(() => e.value.type && e.value.type === "bar");
|
|
271
|
-
function Te(t, a) {
|
|
272
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: a }), Y("selectDatapoint", { datapoint: t, index: a });
|
|
273
|
-
}
|
|
274
|
-
return (t, a) => (n(), c("div", {
|
|
275
|
-
ref_key: "sparklineChart",
|
|
276
|
-
ref: R,
|
|
277
|
-
class: "vue-data-ui-component vue-ui-sparkline",
|
|
278
|
-
id: g.value,
|
|
279
|
-
style: D(`width:100%;font-family:${e.value.style.fontFamily};`)
|
|
280
|
-
}, [
|
|
281
|
-
S(t.$slots, "before", ge(me({
|
|
282
|
-
selected: v.value,
|
|
283
|
-
latest: k.value.latest,
|
|
284
|
-
sum: k.value.sum,
|
|
285
|
-
average: k.value.average,
|
|
286
|
-
median: k.value.median,
|
|
287
|
-
trend: k.value.trend
|
|
288
|
-
})), void 0, !0),
|
|
289
|
-
e.value.style.title.show && $.showInfo ? (n(), c("div", {
|
|
290
|
-
key: 0,
|
|
291
|
-
ref_key: "chartTitle",
|
|
292
|
-
ref: oe,
|
|
293
|
-
class: "vue-ui-sparkline-title",
|
|
294
|
-
style: D(`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"};`)
|
|
295
|
-
}, [
|
|
296
|
-
p("span", {
|
|
297
|
-
style: D(`padding:${e.value.style.title.textAlign === "left" ? "0 0 0 12px" : e.value.style.title.textAlign === "right" ? "0 12px 0 0" : "0"}`)
|
|
298
|
-
}, T(v.value ? v.value.period : e.value.style.title.text), 5)
|
|
299
|
-
], 4)) : f("", !0),
|
|
300
|
-
(n(), c("svg", {
|
|
301
|
-
ref_key: "svgRef",
|
|
302
|
-
ref: ne,
|
|
303
|
-
xmlns: s(qe),
|
|
304
|
-
viewBox: `0 0 ${o.value.width} ${o.value.height}`,
|
|
305
|
-
style: D(`background:${e.value.style.backgroundColor};overflow:visible`),
|
|
306
|
-
onMouseleave: a[0] || (a[0] = (l) => A.value = void 0)
|
|
307
|
-
}, [
|
|
308
|
-
Fe(s($e)),
|
|
309
|
-
t.$slots["chart-background"] ? (n(), c("foreignObject", {
|
|
310
|
-
key: 0,
|
|
311
|
-
x: 0,
|
|
312
|
-
y: 0,
|
|
313
|
-
width: o.value.width <= 0 ? 10 : o.value.width,
|
|
314
|
-
height: o.value.height <= 0 ? 10 : o.value.height,
|
|
315
|
-
style: {
|
|
316
|
-
pointerEvents: "none"
|
|
317
|
-
}
|
|
318
|
-
}, [
|
|
319
|
-
S(t.$slots, "chart-background", {}, void 0, !0)
|
|
320
|
-
], 8, rt)) : f("", !0),
|
|
321
|
-
p("defs", null, [
|
|
322
|
-
p("linearGradient", {
|
|
323
|
-
x1: "0%",
|
|
324
|
-
y1: "0%",
|
|
325
|
-
x2: "100%",
|
|
326
|
-
y2: "0%",
|
|
327
|
-
id: `sparkline_gradient_${g.value}`
|
|
328
|
-
}, [
|
|
329
|
-
p("stop", {
|
|
330
|
-
offset: "0%",
|
|
331
|
-
"stop-color": s(P)(s(W)(e.value.style.area.color, 0.05), e.value.style.area.opacity)
|
|
332
|
-
}, null, 8, vt),
|
|
333
|
-
p("stop", {
|
|
334
|
-
offset: "100%",
|
|
335
|
-
"stop-color": s(P)(e.value.style.area.color, e.value.style.area.opacity)
|
|
336
|
-
}, null, 8, dt)
|
|
337
|
-
], 8, it),
|
|
338
|
-
p("linearGradient", {
|
|
339
|
-
x2: "0%",
|
|
340
|
-
y2: "100%",
|
|
341
|
-
id: `sparkline_bar_gradient_pos_${g.value}`
|
|
342
|
-
}, [
|
|
343
|
-
p("stop", {
|
|
344
|
-
offset: "0%",
|
|
345
|
-
"stop-color": e.value.style.bar.color
|
|
346
|
-
}, null, 8, ht),
|
|
347
|
-
p("stop", {
|
|
348
|
-
offset: "100%",
|
|
349
|
-
"stop-color": s(W)(e.value.style.bar.color, 0.05)
|
|
350
|
-
}, null, 8, ft)
|
|
351
|
-
], 8, ct),
|
|
352
|
-
p("linearGradient", {
|
|
353
|
-
x2: "0%",
|
|
354
|
-
y2: "100%",
|
|
355
|
-
id: `sparkline_bar_gradient_neg_${g.value}`
|
|
356
|
-
}, [
|
|
357
|
-
p("stop", {
|
|
358
|
-
offset: "0%",
|
|
359
|
-
"stop-color": s(W)(e.value.style.bar.color, 0.05)
|
|
360
|
-
}, null, 8, pt),
|
|
361
|
-
p("stop", {
|
|
362
|
-
offset: "100%",
|
|
363
|
-
"stop-color": e.value.style.bar.color
|
|
364
|
-
}, null, 8, gt)
|
|
365
|
-
], 8, yt)
|
|
366
|
-
]),
|
|
367
|
-
e.value.style.area.show && !I.value && d.value[0] && d.value.length > 1 ? (n(), c("g", mt, [
|
|
368
|
-
e.value.style.line.smooth ? (n(), c("path", {
|
|
369
|
-
key: 0,
|
|
370
|
-
d: `M ${d.value[0].x},${i.value.bottom} ${s(_e)(d.value)} L ${d.value.at(-1).x},${i.value.bottom} Z`,
|
|
371
|
-
fill: e.value.style.area.useGradient ? `url(#sparkline_gradient_${g.value})` : s(P)(e.value.style.area.color, e.value.style.area.opacity)
|
|
372
|
-
}, null, 8, bt)) : (n(), c("path", {
|
|
373
|
-
key: 1,
|
|
374
|
-
d: `M${Ve.value}Z`,
|
|
375
|
-
fill: e.value.style.area.useGradient ? `url(#sparkline_gradient_${g.value})` : s(P)(e.value.style.area.color, e.value.style.area.opacity)
|
|
376
|
-
}, null, 8, kt))
|
|
377
|
-
])) : f("", !0),
|
|
378
|
-
e.value.style.line.smooth && !I.value ? (n(), c("path", {
|
|
379
|
-
key: 2,
|
|
380
|
-
d: `M ${s(_e)(d.value) || "0,0"}`,
|
|
381
|
-
stroke: e.value.style.line.color,
|
|
382
|
-
fill: "none",
|
|
383
|
-
"stroke-width": e.value.style.line.strokeWidth,
|
|
384
|
-
"stroke-linecap": "round"
|
|
385
|
-
}, null, 8, xt)) : f("", !0),
|
|
386
|
-
!e.value.style.line.smooth && !I.value ? (n(), c("path", {
|
|
387
|
-
key: 3,
|
|
388
|
-
d: `M ${s(Ze)(d.value) || "0,0"}`,
|
|
389
|
-
stroke: e.value.style.line.color,
|
|
390
|
-
fill: "none",
|
|
391
|
-
"stroke-width": e.value.style.line.strokeWidth,
|
|
392
|
-
"stroke-linecap": "round"
|
|
393
|
-
}, null, 8, _t)) : f("", !0),
|
|
394
|
-
(n(!0), c(Q, null, ee(d.value, (l, u) => (n(), c("g", null, [
|
|
395
|
-
I.value ? (n(), c("rect", {
|
|
396
|
-
key: 0,
|
|
397
|
-
x: l.x - l.width / 2,
|
|
398
|
-
y: isNaN(l.absoluteValue > 0 ? l.y : w.value) ? 0 : l.absoluteValue > 0 ? l.y : w.value,
|
|
399
|
-
width: l.width,
|
|
400
|
-
height: isNaN(Math.abs(l.y - w.value)) ? 0 : Math.abs(l.y - w.value),
|
|
401
|
-
fill: l.absoluteValue > 0 ? `url(#sparkline_bar_gradient_pos_${g.value})` : `url(#sparkline_bar_gradient_neg_${g.value})`,
|
|
402
|
-
rx: e.value.style.bar.borderRadius
|
|
403
|
-
}, null, 8, wt)) : f("", !0),
|
|
404
|
-
e.value.style.verticalIndicator.show && (v.value && l.id === v.value.id || $.selectedIndex === u) ? (n(), c("line", {
|
|
405
|
-
key: 1,
|
|
406
|
-
x1: l.x,
|
|
407
|
-
x2: l.x,
|
|
408
|
-
y1: i.value.top - 6,
|
|
409
|
-
y2: i.value.bottom,
|
|
410
|
-
stroke: e.value.style.verticalIndicator.color || l.color,
|
|
411
|
-
"stroke-width": e.value.style.verticalIndicator.strokeWidth,
|
|
412
|
-
"stroke-linecap": "round",
|
|
413
|
-
"stroke-dasharray": e.value.style.verticalIndicator.strokeDasharray || 0
|
|
414
|
-
}, null, 8, Lt)) : f("", !0)
|
|
415
|
-
]))), 256)),
|
|
416
|
-
q.value < 0 ? (n(), c("line", {
|
|
417
|
-
key: 4,
|
|
418
|
-
x1: i.value.start,
|
|
419
|
-
x2: i.value.start + i.value.width,
|
|
420
|
-
y1: s(we)(w.value, i.value.bottom),
|
|
421
|
-
y2: s(we)(w.value, i.value.bottom),
|
|
422
|
-
stroke: e.value.style.zeroLine.color,
|
|
423
|
-
"stroke-dasharray": e.value.style.zeroLine.strokeWidth * 2,
|
|
424
|
-
"stroke-width": e.value.style.zeroLine.strokeWidth,
|
|
425
|
-
"stroke-linecap": "round"
|
|
426
|
-
}, null, 8, At)) : f("", !0),
|
|
427
|
-
e.value.style.plot.show ? (n(!0), c(Q, { key: 5 }, ee(d.value, (l, u) => (n(), c("g", null, [
|
|
428
|
-
v.value && l.id === v.value.id || $.selectedIndex === u || s(N).length === 1 ? (n(), c("circle", {
|
|
429
|
-
key: 0,
|
|
430
|
-
cx: l.x,
|
|
431
|
-
cy: l.y,
|
|
432
|
-
r: e.value.style.plot.radius,
|
|
433
|
-
fill: l.color,
|
|
434
|
-
stroke: e.value.style.plot.stroke,
|
|
435
|
-
"stroke-width": e.value.style.plot.strokeWidth
|
|
436
|
-
}, null, 8, $t)) : f("", !0)
|
|
437
|
-
]))), 256)) : f("", !0),
|
|
438
|
-
$.showInfo && e.value.style.dataLabel.show ? (n(), c("text", {
|
|
439
|
-
key: 6,
|
|
440
|
-
x: e.value.style.dataLabel.position === "left" ? 12 + e.value.style.dataLabel.offsetX : i.value.width + 12 + e.value.style.dataLabel.offsetX,
|
|
441
|
-
y: o.value.height / 2 + e.value.style.dataLabel.fontSize / 2.5 + e.value.style.dataLabel.offsetY,
|
|
442
|
-
"font-size": e.value.style.dataLabel.fontSize,
|
|
443
|
-
"font-weight": e.value.style.dataLabel.bold ? "bold" : "normal",
|
|
444
|
-
fill: e.value.style.dataLabel.color
|
|
445
|
-
}, T(v.value ? s(ae)(
|
|
446
|
-
e.value.style.dataLabel.formatter,
|
|
447
|
-
v.value.absoluteValue,
|
|
448
|
-
s(le)({ p: e.value.style.dataLabel.prefix, v: v.value.absoluteValue, s: e.value.style.dataLabel.suffix, r: e.value.style.dataLabel.roundingValue }),
|
|
449
|
-
{ datapoint: v.value }
|
|
450
|
-
) : s(ae)(
|
|
451
|
-
e.value.style.dataLabel.formatter,
|
|
452
|
-
de.value,
|
|
453
|
-
s(le)({ p: e.value.style.dataLabel.prefix, v: de.value, s: e.value.style.dataLabel.suffix, r: e.value.style.dataLabel.roundingValue })
|
|
454
|
-
)), 9, Nt)) : f("", !0),
|
|
455
|
-
(n(!0), c(Q, null, ee(d.value, (l, u) => (n(), c("rect", {
|
|
456
|
-
x: l.x - (i.value.width / (L.value + 1) > o.value.padding ? o.value.padding : i.value.width / (L.value + 1)) / 2,
|
|
457
|
-
y: i.value.top - 6,
|
|
458
|
-
height: i.value.height + 6,
|
|
459
|
-
width: i.value.width / (L.value + 1) > o.value.padding ? o.value.padding : i.value.width / (L.value + 1),
|
|
460
|
-
fill: "transparent",
|
|
461
|
-
onMouseenter: () => ze(l, u),
|
|
462
|
-
onMouseleave: () => De(l, u),
|
|
463
|
-
onClick: () => Te(l, u)
|
|
464
|
-
}, null, 40, Mt))), 256)),
|
|
465
|
-
S(t.$slots, "svg", { svg: o.value }, void 0, !0)
|
|
466
|
-
], 44, nt)),
|
|
467
|
-
v.value && e.value.style.tooltip.show ? (n(), pe(s(Ne), {
|
|
468
|
-
key: 1,
|
|
469
|
-
x: v.value.x,
|
|
470
|
-
y: v.value.y,
|
|
471
|
-
prevX: A.value.x,
|
|
472
|
-
prevY: A.value.y,
|
|
473
|
-
offsetY: e.value.style.plot.radius * 3 + e.value.style.tooltip.offsetY,
|
|
474
|
-
svgRef: s(ne),
|
|
475
|
-
background: e.value.style.tooltip.backgroundColor,
|
|
476
|
-
color: e.value.style.tooltip.color,
|
|
477
|
-
fontSize: e.value.style.tooltip.fontSize,
|
|
478
|
-
borderWidth: e.value.style.tooltip.borderWidth,
|
|
479
|
-
borderColor: e.value.style.tooltip.borderColor,
|
|
480
|
-
borderRadius: e.value.style.tooltip.borderRadius,
|
|
481
|
-
backgroundOpacity: e.value.style.tooltip.backgroundOpacity
|
|
482
|
-
}, {
|
|
483
|
-
default: Ee(() => [
|
|
484
|
-
S(t.$slots, "tooltip", ge(me({ ...v.value })), () => [
|
|
485
|
-
Oe(T(v.value.period) + ": " + T(s(ae)(
|
|
486
|
-
e.value.style.dataLabel.formatter,
|
|
487
|
-
v.value.absoluteValue,
|
|
488
|
-
s(le)({
|
|
489
|
-
p: e.value.style.dataLabel.prefix,
|
|
490
|
-
v: v.value.absoluteValue,
|
|
491
|
-
s: e.value.style.dataLabel.suffix,
|
|
492
|
-
r: e.value.style.dataLabel.roundingValue
|
|
493
|
-
}),
|
|
494
|
-
{ datapoint: v.value }
|
|
495
|
-
)), 1)
|
|
496
|
-
], !0)
|
|
497
|
-
]),
|
|
498
|
-
_: 3
|
|
499
|
-
}, 8, ["x", "y", "prevX", "prevY", "offsetY", "svgRef", "background", "color", "fontSize", "borderWidth", "borderColor", "borderRadius", "backgroundOpacity"])) : f("", !0),
|
|
500
|
-
t.$slots.source ? (n(), c("div", {
|
|
501
|
-
key: 2,
|
|
502
|
-
ref_key: "source",
|
|
503
|
-
ref: se,
|
|
504
|
-
dir: "auto"
|
|
505
|
-
}, [
|
|
506
|
-
S(t.$slots, "source", {}, void 0, !0)
|
|
507
|
-
], 512)) : f("", !0),
|
|
508
|
-
s(F) ? (n(), pe(at, { key: 3 })) : f("", !0)
|
|
509
|
-
], 12, st));
|
|
510
|
-
}
|
|
511
|
-
}, Ft = /* @__PURE__ */ ot(Ct, [["__scopeId", "data-v-cc569021"]]);
|
|
512
|
-
export {
|
|
513
|
-
Ft as default
|
|
514
|
-
};
|