vue-data-ui 3.13.0 → 3.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-DWr41GRU.js → Arrow-DCauiw0a.js} +1 -1
- package/dist/{BaseDraggableDialog-BOGgrHTy.js → BaseDraggableDialog-DC6U5583.js} +2 -2
- package/dist/{BaseIcon-BwSqZoOr.js → BaseIcon-CJ7mD4nD.js} +1 -1
- package/dist/{BaseLegendToggle-B4-hdikk.js → BaseLegendToggle-BMdGBKCs.js} +1 -1
- package/dist/{BaseZoomControls-D3gTxbvm.js → BaseZoomControls-Dp4YHvIN.js} +2 -2
- package/dist/{ColorPicker-CeEDMD2O.js → ColorPicker-BdPM3Q99.js} +2 -2
- package/dist/{DataTable-B2a7qHZw.js → DataTable-C2E28XF-.js} +2 -2
- package/dist/{Legend-DUESGUtH.js → Legend-DDvnrFfr.js} +2 -2
- package/dist/{NonSvgPenAndPaper--EzGcPXp.js → NonSvgPenAndPaper-dznYxXaY.js} +3 -3
- package/dist/{PackageVersion-BUiZH7T6.js → PackageVersion-CdPbb2sr.js} +1 -1
- package/dist/{PenAndPaper-D7T0cXZC.js → PenAndPaper-CDju85X_.js} +3 -3
- package/dist/{Shape-PzdCMGsP.js → Shape-CDT71WC7.js} +1 -1
- package/dist/{Slicer-52xjYM7P.js → Slicer-D6ACafGp.js} +2 -2
- package/dist/{SlicerPreview-CX3vw034.js → SlicerPreview-BEkr4ELo.js} +2 -2
- package/dist/{SparkTooltip-BLTVhvm2.js → SparkTooltip-DObYB3vB.js} +1 -1
- package/dist/{Title-B2qhu8Lw.js → Title-CeMocAxM.js} +1 -1
- package/dist/{Tooltip-B6qvABDL.js → Tooltip-jUEeS8VT.js} +1 -1
- package/dist/{UserOptions-BaGfWcXF.js → UserOptions-DV6hYCK6.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- 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 +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-CzjUUVZt.js → dom-to-png-CmUF0dXb.js} +1 -1
- package/dist/{img-6fNF_rG0.js → img-BMMrBrFA.js} +1 -1
- package/dist/{labelUtils-D6Y-n7cD.js → labelUtils-BurkE07s.js} +1 -1
- package/dist/{lib-CVHM9FhP.js → lib-BrVUf7jz.js} +10 -10
- package/dist/{pdf-Dd_6HF9L.js → pdf-B7kkygOv.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +15 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-CqeJ1kZA.js → useAutoSizeLabelsInsideViewbox-CjxrbFED.js} +1 -1
- package/dist/{useNestedProp-DBDAPWcu.js → useNestedProp-Bamwa7TH.js} +16 -2
- package/dist/{usePrinter-1NmjuP-i.js → usePrinter-DKjCimma.js} +2 -2
- package/dist/{vue-data-ui-D1E4251H.js → vue-data-ui-C_fGFzEp.js} +68 -68
- package/dist/vue-data-ui.js +73 -73
- package/dist/{vue-ui-3d-bar-CgVGpnCt.js → vue-ui-3d-bar-DP7IdUbR.js} +6 -6
- package/dist/{vue-ui-accordion-C_mCy0GO.js → vue-ui-accordion-d_mYq_ty.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BhjTT3DC.js → vue-ui-age-pyramid-NXkGU5ye.js} +6 -6
- package/dist/{vue-ui-annotator-CKgbFmUs.js → vue-ui-annotator-K9tPH67i.js} +7 -7
- package/dist/{vue-ui-bullet-BnWagfaA.js → vue-ui-bullet-BGuwKETO.js} +7 -7
- package/dist/{vue-ui-bump-foFhlwgZ.js → vue-ui-bump-DEOPNx5y.js} +6 -6
- package/dist/{vue-ui-candlestick-Dwkufbjr.js → vue-ui-candlestick-BWq1wKcM.js} +7 -7
- package/dist/{vue-ui-carousel-table-ChdrJL5m.js → vue-ui-carousel-table-CZxffzDF.js} +4 -4
- package/dist/{vue-ui-chestnut-Bwksaice.js → vue-ui-chestnut-50SNPqfM.js} +5 -5
- package/dist/{vue-ui-chord-DkZoA24X.js → vue-ui-chord-DlrZM-bY.js} +8 -8
- package/dist/{vue-ui-circle-pack-CJsFhaDz.js → vue-ui-circle-pack-tbs6FbUJ.js} +6 -6
- package/dist/{vue-ui-cursor-mqVe7Y-a.js → vue-ui-cursor-CeX4EQK5.js} +3 -3
- package/dist/{vue-ui-dag-WnGENAa3.js → vue-ui-dag-kSTQu200.js} +7 -7
- package/dist/{vue-ui-dashboard-By8oB-nX.js → vue-ui-dashboard-CVIihTvt.js} +68 -68
- package/dist/{vue-ui-digits-Bx-satCl.js → vue-ui-digits-C8-MaCF9.js} +2 -2
- package/dist/{vue-ui-donut-D5nqwNxn.js → vue-ui-donut-CvgJGvr8.js} +62 -62
- package/dist/{vue-ui-donut-evolution-CCdXzG-K.js → vue-ui-donut-evolution-8t3VpFBM.js} +9 -9
- package/dist/{vue-ui-dumbbell-u4NWq7EA.js → vue-ui-dumbbell-DhsqhBMZ.js} +7 -7
- package/dist/{vue-ui-flow-Cli9mh5R.js → vue-ui-flow-40_lIp68.js} +7 -7
- package/dist/{vue-ui-funnel-x_oyMv-g.js → vue-ui-funnel-B2ORn05E.js} +6 -6
- package/dist/{vue-ui-galaxy-KU8sE9yj.js → vue-ui-galaxy--TlNs2Sg.js} +9 -9
- package/dist/{vue-ui-gauge-DOCwekQw.js → vue-ui-gauge-DeY4BNFp.js} +7 -7
- package/dist/{vue-ui-geo-BSm_rlXS.js → vue-ui-geo-aGn1sexm.js} +7 -7
- package/dist/{vue-ui-gizmo-7srxIV-o.js → vue-ui-gizmo-CRFCxxhM.js} +3 -3
- package/dist/{vue-ui-heatmap-O--_H-gU.js → vue-ui-heatmap-CL4ljUus.js} +7 -7
- package/dist/{vue-ui-history-plot-DALdrNCs.js → vue-ui-history-plot-DLxBpK70.js} +8 -8
- package/dist/{vue-ui-horizontal-bar-DCdgJsYP.js → vue-ui-horizontal-bar-BZk6t1_d.js} +10 -10
- package/dist/{vue-ui-kpi-BSrmWF6e.js → vue-ui-kpi-C_1ELuRv.js} +3 -3
- package/dist/{vue-ui-mini-loader-CjNAgIP7.js → vue-ui-mini-loader-BZTxux3w.js} +2 -2
- package/dist/{vue-ui-molecule-BOaaDa_f.js → vue-ui-molecule-BpcyfHpM.js} +5 -5
- package/dist/{vue-ui-mood-radar-oFwautms.js → vue-ui-mood-radar-B6LV7jqY.js} +7 -7
- package/dist/{vue-ui-nested-donuts-DTpIOMky.js → vue-ui-nested-donuts-e_22lyMT.js} +9 -9
- package/dist/{vue-ui-onion-BSHdcu3D.js → vue-ui-onion-BzOC2siQ.js} +10 -10
- package/dist/{vue-ui-parallel-coordinate-plot-DCBvtKH5.js → vue-ui-parallel-coordinate-plot-BVHkiOKh.js} +9 -9
- package/dist/{vue-ui-quadrant-CBTQAM5C.js → vue-ui-quadrant-DGVkfAF_.js} +9 -9
- package/dist/{vue-ui-quick-chart-D8d9mCp5.js → vue-ui-quick-chart-BsCVVyys.js} +7 -7
- package/dist/{vue-ui-radar-fyynw3kX.js → vue-ui-radar-C6lj2GXI.js} +9 -9
- package/dist/{vue-ui-rating-CoeJ4nzT.js → vue-ui-rating-CFH0jY6v.js} +2 -2
- package/dist/{vue-ui-relation-circle-CHLL7fWj.js → vue-ui-relation-circle-D1sMLtFh.js} +7 -7
- package/dist/{vue-ui-ridgeline-BescV_9j.js → vue-ui-ridgeline-Migykkg5.js} +9 -9
- package/dist/{vue-ui-rings-BLzeGlw1.js → vue-ui-rings-C_BzwPOl.js} +10 -10
- package/dist/{vue-ui-scatter-Lkdahppt.js → vue-ui-scatter-0N2N7p2u.js} +9 -9
- package/dist/{vue-ui-skeleton-DN0ow_rk.js → vue-ui-skeleton-B2I-tk1Z.js} +3 -3
- package/dist/{vue-ui-smiley-BjeNTXgB.js → vue-ui-smiley-CXzhTaY2.js} +2 -2
- package/dist/{vue-ui-spark-trend-ByQy54yB.js → vue-ui-spark-trend-b7A0JJM8.js} +3 -3
- package/dist/{vue-ui-sparkbar-ZdaJfCgv.js → vue-ui-sparkbar-Dvrm3-uj.js} +3 -3
- package/dist/{vue-ui-sparkgauge-C-XRI2le.js → vue-ui-sparkgauge-DxgBvphO.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-C0NBzDcp.js → vue-ui-sparkhistogram-ukOI-h6-.js} +4 -4
- package/dist/vue-ui-sparkline-Drbps9xL.js +739 -0
- package/dist/{vue-ui-sparkstackbar-CKaAwbIG.js → vue-ui-sparkstackbar-JIdKUFx1.js} +4 -4
- package/dist/{vue-ui-stackbar-ByubXFXF.js → vue-ui-stackbar-CXvQ4Bm_.js} +10 -10
- package/dist/{vue-ui-stackline-CMlqSvYs.js → vue-ui-stackline-CWRoLOhP.js} +10 -10
- package/dist/{vue-ui-strip-plot-WAZfJJd5.js → vue-ui-strip-plot-BANUvymx.js} +7 -7
- package/dist/{vue-ui-table-heatmap-DBpu7fd2.js → vue-ui-table-heatmap-BMAWjTp_.js} +5 -5
- package/dist/{vue-ui-table-CfXnjcKM.js → vue-ui-table-kCir7kax.js} +5 -5
- package/dist/{vue-ui-table-sparkline-BrJnSxMg.js → vue-ui-table-sparkline-brPOHGmn.js} +4 -4
- package/dist/{vue-ui-thermometer-1AQdrnVB.js → vue-ui-thermometer-C6v-w70_.js} +7 -7
- package/dist/{vue-ui-timer-B8nLTytW.js → vue-ui-timer-DQ5yKVhX.js} +5 -5
- package/dist/{vue-ui-tiremarks-Ba584V8X.js → vue-ui-tiremarks-DdE7O4Ur.js} +6 -6
- package/dist/{vue-ui-treemap-hqPz1RVy.js → vue-ui-treemap-VzO40faB.js} +9 -9
- package/dist/{vue-ui-waffle-Bi8zpeBL.js → vue-ui-waffle-CnzdJgOz.js} +10 -10
- package/dist/{vue-ui-wheel-B7x9Ykpj.js → vue-ui-wheel-Cq_Iy__D.js} +6 -6
- package/dist/{vue-ui-word-cloud-KobAg3dS.js → vue-ui-word-cloud-BH3iu9jm.js} +7 -7
- package/dist/{vue-ui-world-De0_sYDb.js → vue-ui-world-92UxudT5.js} +7 -7
- package/dist/{vue-ui-xy-c_ghrhFh.js → vue-ui-xy-CYKmyeYg.js} +10 -10
- package/dist/{vue-ui-xy-canvas-CdDD57ea.js → vue-ui-xy-canvas-BH6gw0g-.js} +11 -11
- package/package.json +1 -1
- package/dist/vue-ui-sparkline-C7ZDbt2b.js +0 -559
|
@@ -1,559 +0,0 @@
|
|
|
1
|
-
import { defineAsyncComponent as he, computed as f, ref as y, toRefs as Ye, watch as Q, shallowRef as ye, onMounted as qe, onBeforeUnmount as pe, createElementBlock as v, openBlock as s, normalizeStyle as S, renderSlot as D, createCommentVNode as h, createBlock as be, normalizeProps as ge, guardReactiveProps as me, createElementVNode as p, toDisplayString as z, unref as u, createVNode as Ze, Fragment as J, renderList as ee, withCtx as Ke, createTextVNode as He, nextTick as Qe } from "vue";
|
|
2
|
-
import { c as Je, t as et, an as te, o as ke, g as Ae, l as tt, h as B, n as at, ao as lt, X as ot, s as V, A as Ce, C as rt, Q as _e, a as ae, d as le, ap as ut } from "./lib-CVHM9FhP.js";
|
|
3
|
-
import { t as st, u as nt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as it, a as oe } from "./useNestedProp-DBDAPWcu.js";
|
|
5
|
-
import { u as dt, B as vt } from "./BaseScanner-BMpwQAfz.js";
|
|
6
|
-
import { u as ct } from "./useThemeCheck-D1ZYXUwG.js";
|
|
7
|
-
import { u as ft } from "./useTimeLabels-DKoynYae.js";
|
|
8
|
-
import { u as ht } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
-
import { _ as yt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
-
const xe = { style: { line: { color: "#2A2929" }, area: { color: "#65698E" }, bar: { color: "#2A2929" } } }, we = { style: { backgroundColor: "#1A1A1A", zeroLine: { color: "#5A5A5A" }, line: { color: "#65698E" }, area: { color: "#8D99AE" }, bar: { color: "#65698E" }, plot: { stroke: "#1A1A1A" }, verticalIndicator: { color: "#8A8A8A" }, dataLabel: { color: "#CCCCCC" }, title: { color: "#CCCCCC" }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#3A3A3A" } } }, Le = { 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 } } }, $e = { 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" }, tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" } } }, Fe = { 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" }, tooltip: { backgroundColor: "#1E1E1E", backgroundOpacity: 30, color: "#FFF8E1", borderColor: "#FF8A65" } } }, 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" }, tooltip: { backgroundColor: "#2A2F2A", color: "#AACCAA", borderColor: "#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" }, tooltip: { backgroundColor: "#fbfafa", color: "#8A9892" } } }, De = { 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" }, tooltip: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, Ee = {
|
|
11
|
-
default: {},
|
|
12
|
-
minimal: xe,
|
|
13
|
-
minimalDark: we,
|
|
14
|
-
dark: Le,
|
|
15
|
-
celebration: $e,
|
|
16
|
-
celebrationNight: Fe,
|
|
17
|
-
hack: Ne,
|
|
18
|
-
zen: Ie,
|
|
19
|
-
concrete: De
|
|
20
|
-
}, Kt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
21
|
-
__proto__: null,
|
|
22
|
-
celebration: $e,
|
|
23
|
-
celebrationNight: Fe,
|
|
24
|
-
concrete: De,
|
|
25
|
-
dark: Le,
|
|
26
|
-
default: Ee,
|
|
27
|
-
hack: Ne,
|
|
28
|
-
minimal: xe,
|
|
29
|
-
minimalDark: we,
|
|
30
|
-
zen: Ie
|
|
31
|
-
}, Symbol.toStringTag, { value: "Module" })), pt = ["id"], bt = ["xmlns", "viewBox"], gt = ["width", "height"], mt = ["id"], kt = ["stop-color"], At = ["stop-color"], Ct = ["id"], _t = ["stop-color"], xt = ["stop-color"], wt = ["id"], Lt = ["stop-color"], $t = ["stop-color"], Ft = { key: 1 }, Nt = ["d", "fill"], It = ["d", "fill"], Dt = ["d", "stroke", "stroke-width"], Et = ["d", "stroke", "stroke-width"], Mt = ["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"], Vt = ["x", "y", "font-size", "font-weight", "fill"], Tt = ["x", "y", "height", "width", "onMouseenter", "onMouseleave", "onClick"], Rt = {
|
|
32
|
-
__name: "vue-ui-sparkline",
|
|
33
|
-
props: {
|
|
34
|
-
config: {
|
|
35
|
-
type: Object,
|
|
36
|
-
default() {
|
|
37
|
-
return {};
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
dataset: {
|
|
41
|
-
type: Array,
|
|
42
|
-
default() {
|
|
43
|
-
return [];
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
showInfo: {
|
|
47
|
-
type: Boolean,
|
|
48
|
-
default: !0
|
|
49
|
-
},
|
|
50
|
-
selectedIndex: {
|
|
51
|
-
type: Number,
|
|
52
|
-
default: void 0
|
|
53
|
-
},
|
|
54
|
-
heightRatio: {
|
|
55
|
-
type: Number,
|
|
56
|
-
default: 1
|
|
57
|
-
},
|
|
58
|
-
forcedPadding: {
|
|
59
|
-
type: Number,
|
|
60
|
-
default: 30
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
emits: ["hoverIndex", "selectDatapoint"],
|
|
64
|
-
setup(L, { emit: Me }) {
|
|
65
|
-
const Se = he(() => import("./PackageVersion-BUiZH7T6.js")), ze = he(() => import("./SparkTooltip-BLTVhvm2.js")), { vue_ui_sparkline: Be } = it(), { isThemeValid: Ve, warnInvalidTheme: Te } = ct(), c = L, re = f(() => Array.isArray(c.dataset) && c.dataset.length > 0), b = y(Je()), T = y(null), ue = y(null), se = y(null), e = y(W());
|
|
66
|
-
function Re(t) {
|
|
67
|
-
return ut(t).map((l) => ({ period: "-", value: l }));
|
|
68
|
-
}
|
|
69
|
-
const { loading: R, FINAL_DATASET: $, manualLoading: O } = dt({
|
|
70
|
-
...Ye(c),
|
|
71
|
-
FINAL_CONFIG: e,
|
|
72
|
-
prepareConfig: W,
|
|
73
|
-
callback: () => {
|
|
74
|
-
Promise.resolve().then(async () => {
|
|
75
|
-
await Qe(), X();
|
|
76
|
-
});
|
|
77
|
-
},
|
|
78
|
-
skeletonDataset: Re(12),
|
|
79
|
-
skeletonConfig: et({
|
|
80
|
-
defaultConfig: e.value,
|
|
81
|
-
userConfig: {
|
|
82
|
-
style: {
|
|
83
|
-
backgroundColor: "#99999930",
|
|
84
|
-
scaleMin: 0,
|
|
85
|
-
scaleMax: null,
|
|
86
|
-
animation: { show: !1 },
|
|
87
|
-
line: { color: "#AAAAAA" },
|
|
88
|
-
bar: { color: "#AAAAAA" },
|
|
89
|
-
area: { color: "#CACACA" },
|
|
90
|
-
zeroLine: { color: "#6A6A6A" },
|
|
91
|
-
dataLabel: { show: !1 },
|
|
92
|
-
tooltip: { show: !1 }
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
})
|
|
96
|
-
}), { svgRef: ne } = ht({ config: e.value.style.title });
|
|
97
|
-
function W() {
|
|
98
|
-
const t = oe({
|
|
99
|
-
userConfig: c.config,
|
|
100
|
-
defaultConfig: Be
|
|
101
|
-
});
|
|
102
|
-
let l = {};
|
|
103
|
-
const a = t.theme;
|
|
104
|
-
if (a)
|
|
105
|
-
if (!Ve.value(t))
|
|
106
|
-
Te(t), l = t;
|
|
107
|
-
else {
|
|
108
|
-
const o = oe({
|
|
109
|
-
userConfig: Ee[a] || c.config,
|
|
110
|
-
defaultConfig: t
|
|
111
|
-
});
|
|
112
|
-
l = {
|
|
113
|
-
...oe({
|
|
114
|
-
userConfig: c.config,
|
|
115
|
-
defaultConfig: o
|
|
116
|
-
})
|
|
117
|
-
};
|
|
118
|
-
}
|
|
119
|
-
else
|
|
120
|
-
l = t;
|
|
121
|
-
return l;
|
|
122
|
-
}
|
|
123
|
-
const A = f(() => te({
|
|
124
|
-
data: $.value,
|
|
125
|
-
threshold: e.value.downsample.threshold
|
|
126
|
-
}));
|
|
127
|
-
Q(() => c.config, (t) => {
|
|
128
|
-
R.value || (e.value = W()), de(), r.value.chartWidth = e.value.style.chartWidth;
|
|
129
|
-
}, { deep: !0 }), Q(() => c.dataset, (t) => {
|
|
130
|
-
Array.isArray(t) && t.length > 0 && (O.value = !1), g.value = te({
|
|
131
|
-
data: $.value.map((l) => ({
|
|
132
|
-
...l,
|
|
133
|
-
value: [void 0].includes(l.value) ? null : l.value
|
|
134
|
-
})),
|
|
135
|
-
threshold: e.value.downsample.threshold
|
|
136
|
-
});
|
|
137
|
-
}, { deep: !0 });
|
|
138
|
-
const g = y(Oe());
|
|
139
|
-
function Oe() {
|
|
140
|
-
return te({
|
|
141
|
-
data: $.value.map((t) => e.value.style.animation.show && $.value.length > 1 ? {
|
|
142
|
-
...t,
|
|
143
|
-
value: null
|
|
144
|
-
} : {
|
|
145
|
-
...t,
|
|
146
|
-
value: [void 0].includes(t.value) ? null : t.value
|
|
147
|
-
}),
|
|
148
|
-
threshold: e.value.downsample.threshold
|
|
149
|
-
});
|
|
150
|
-
}
|
|
151
|
-
const m = ye(null), C = ye(null), P = y(!1), F = y(0), j = y([]), G = y(""), U = f(() => {
|
|
152
|
-
const l = (A.value || []).map((o) => `${o.period}::${Number.isFinite(o.value) ? o.value : 0}`).join("|"), a = e.value?.style?.animation || {};
|
|
153
|
-
return `${l}#${!!a.show}#${a.animationFrames || 0}`;
|
|
154
|
-
});
|
|
155
|
-
function E() {
|
|
156
|
-
F.value && (cancelAnimationFrame(F.value), F.value = 0), j.value.forEach((t) => clearTimeout(t)), j.value = [], P.value = !1;
|
|
157
|
-
}
|
|
158
|
-
function X() {
|
|
159
|
-
const t = e.value?.style?.animation || {}, l = A.value || [], a = U.value;
|
|
160
|
-
if (a && a === G.value && (P.value || g.value.length === l.length))
|
|
161
|
-
return;
|
|
162
|
-
if (E(), !t.show || R.value || l.length <= 1) {
|
|
163
|
-
g.value = l, G.value = a;
|
|
164
|
-
return;
|
|
165
|
-
}
|
|
166
|
-
P.value = !0, G.value = a, g.value = [];
|
|
167
|
-
const o = Math.max(1, Number(t.animationFrames) || 1), K = Math.max(1, Math.floor(o / l.length));
|
|
168
|
-
let H = 0;
|
|
169
|
-
const fe = () => {
|
|
170
|
-
if (a !== U.value) {
|
|
171
|
-
E();
|
|
172
|
-
return;
|
|
173
|
-
}
|
|
174
|
-
if (H < l.length) {
|
|
175
|
-
g.value.push(l[H]);
|
|
176
|
-
const Xe = setTimeout(() => {
|
|
177
|
-
F.value = requestAnimationFrame(fe);
|
|
178
|
-
}, K);
|
|
179
|
-
j.value.push(Xe), H += 1;
|
|
180
|
-
} else
|
|
181
|
-
g.value = l, E();
|
|
182
|
-
};
|
|
183
|
-
F.value = requestAnimationFrame(fe);
|
|
184
|
-
}
|
|
185
|
-
Q(U, () => {
|
|
186
|
-
X();
|
|
187
|
-
}), qe(() => {
|
|
188
|
-
de(), X();
|
|
189
|
-
}), pe(() => {
|
|
190
|
-
E();
|
|
191
|
-
});
|
|
192
|
-
const ie = f(() => !!e.value.debug);
|
|
193
|
-
function de() {
|
|
194
|
-
if (ke(c.dataset) ? (Ae({
|
|
195
|
-
componentName: "VueUiSparkline",
|
|
196
|
-
type: "dataset",
|
|
197
|
-
debug: ie.value
|
|
198
|
-
}), O.value = !0) : c.dataset.forEach((t, l) => {
|
|
199
|
-
tt({
|
|
200
|
-
datasetObject: t,
|
|
201
|
-
requiredAttributes: ["period", "value"]
|
|
202
|
-
}).forEach((a) => {
|
|
203
|
-
Ae({
|
|
204
|
-
componentName: "VueUiSparkline",
|
|
205
|
-
type: "datasetSerieAttribute",
|
|
206
|
-
property: a,
|
|
207
|
-
index: l,
|
|
208
|
-
debug: ie.value
|
|
209
|
-
});
|
|
210
|
-
});
|
|
211
|
-
}), ke(c.dataset) || (O.value = e.value.loading), e.value.responsive) {
|
|
212
|
-
const t = st(() => {
|
|
213
|
-
const { width: l, height: a } = nt({
|
|
214
|
-
chart: T.value,
|
|
215
|
-
title: e.value.style.title.show && c.showInfo ? ue.value : null,
|
|
216
|
-
source: se.value
|
|
217
|
-
});
|
|
218
|
-
requestAnimationFrame(() => {
|
|
219
|
-
r.value.width = l, r.value.height = a, r.value.chartWidth = e.value.style.chartWidth / 500 * l, r.value.padding = c.forcedPadding / 500 * l;
|
|
220
|
-
});
|
|
221
|
-
});
|
|
222
|
-
m.value && (C.value && m.value.unobserve(C.value), m.value.disconnect()), m.value = new ResizeObserver(t), C.value = T.value.parentNode, m.value.observe(C.value);
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
pe(() => {
|
|
226
|
-
m.value && (C.value && m.value.unobserve(C.value), m.value.disconnect());
|
|
227
|
-
});
|
|
228
|
-
const r = y({
|
|
229
|
-
height: 80 * c.heightRatio,
|
|
230
|
-
width: 500,
|
|
231
|
-
chartWidth: e.value.style.chartWidth,
|
|
232
|
-
padding: c.forcedPadding
|
|
233
|
-
}), Y = Me, n = f(() => {
|
|
234
|
-
const { top: t, right: l, bottom: a, left: o } = e.value.style.padding;
|
|
235
|
-
return {
|
|
236
|
-
top: t,
|
|
237
|
-
left: o,
|
|
238
|
-
right: r.value.width - l,
|
|
239
|
-
bottom: r.value.height - a,
|
|
240
|
-
start: c.showInfo && e.value.style.dataLabel.show && e.value.style.dataLabel.position === "left" ? r.value.width - r.value.chartWidth + o : r.value.padding + o,
|
|
241
|
-
width: c.showInfo && e.value.style.dataLabel.show ? r.value.chartWidth - o - l : r.value.width - r.value.padding - o - l,
|
|
242
|
-
height: r.value.height - t - a
|
|
243
|
-
};
|
|
244
|
-
}), q = f(() => [null, void 0].includes(e.value.style.scaleMin) ? Math.min(...g.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(...g.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), N = f(() => {
|
|
245
|
-
const t = q.value >= 0 ? 0 : q.value;
|
|
246
|
-
return Math.abs(t);
|
|
247
|
-
}), ve = f(() => We.value + N.value), _ = f(() => n.value.bottom - n.value.height * Z(N.value));
|
|
248
|
-
function Z(t) {
|
|
249
|
-
return isNaN(t / ve.value) ? 0 : t / ve.value;
|
|
250
|
-
}
|
|
251
|
-
const x = f(() => A.value.length - 1 || 1), M = f(() => ft({
|
|
252
|
-
values: A.value.map((t) => t.period),
|
|
253
|
-
maxDatapoints: A.value.length,
|
|
254
|
-
formatter: e.value.style.dataLabel.datetimeFormatter,
|
|
255
|
-
start: 0,
|
|
256
|
-
end: A.value.length
|
|
257
|
-
})), d = f(() => g.value.map((t, l) => {
|
|
258
|
-
const a = isNaN(t.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t.value) ? 0 : t.value || 0, o = n.value.width / x.value;
|
|
259
|
-
return {
|
|
260
|
-
absoluteValue: a,
|
|
261
|
-
period: M.value && M.value[l] && M.value[l].text ? M.value[l].text : t.period,
|
|
262
|
-
plotValue: a + N.value,
|
|
263
|
-
toMax: Z(a + N.value),
|
|
264
|
-
x: n.value.start + l * o,
|
|
265
|
-
y: n.value.bottom - n.value.height * Z(a + N.value),
|
|
266
|
-
id: `plot_${b.value}_${l}`,
|
|
267
|
-
color: I.value ? e.value.style.bar.color : e.value.style.area.useGradient ? B(e.value.style.line.color, 0.05 * (1 - l / x.value)) : e.value.style.line.color,
|
|
268
|
-
width: o
|
|
269
|
-
};
|
|
270
|
-
})), Pe = f(() => {
|
|
271
|
-
const t = { x: d.value[0].x || 0, y: (r.value.height || 0) - 6 }, l = { x: d.value[d.value.length - 1].x || 0, y: (r.value.height || 0) - 6 }, a = [];
|
|
272
|
-
return d.value.forEach((o) => {
|
|
273
|
-
a.push(`${o.x || 0},${o.y || 0} `);
|
|
274
|
-
}), [t.x, t.y, ...a, l.x, l.y].toString();
|
|
275
|
-
}), i = y(void 0), w = y(void 0);
|
|
276
|
-
function je(t, l) {
|
|
277
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: l }), i.value = t, w.value || (w.value = t), Y("hoverIndex", { index: l });
|
|
278
|
-
}
|
|
279
|
-
function Ge(t, l) {
|
|
280
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: l }), w.value = i.value, i.value = void 0, Y("hoverIndex", { index: void 0 });
|
|
281
|
-
}
|
|
282
|
-
const k = f(() => {
|
|
283
|
-
if (re.value) {
|
|
284
|
-
const t = d.value.map((a) => a.absoluteValue), l = t.reduce((a, o) => a + o, 0);
|
|
285
|
-
return {
|
|
286
|
-
latest: d.value[d.value.length - 1] ? d.value[d.value.length - 1].absoluteValue : 0,
|
|
287
|
-
sum: l,
|
|
288
|
-
average: l / d.value.length,
|
|
289
|
-
median: lt(t),
|
|
290
|
-
trend: at(d.value.map(({ x: a, y: o, absoluteValue: K }) => ({
|
|
291
|
-
x: a,
|
|
292
|
-
y: o,
|
|
293
|
-
value: K
|
|
294
|
-
}))).trend
|
|
295
|
-
};
|
|
296
|
-
} else
|
|
297
|
-
return {
|
|
298
|
-
latest: null,
|
|
299
|
-
sum: null,
|
|
300
|
-
average: null,
|
|
301
|
-
median: null,
|
|
302
|
-
trend: null
|
|
303
|
-
};
|
|
304
|
-
}), 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), I = f(() => e.value.type && e.value.type === "bar");
|
|
305
|
-
function Ue(t, l) {
|
|
306
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: l }), Y("selectDatapoint", { datapoint: t, index: l });
|
|
307
|
-
}
|
|
308
|
-
return (t, l) => (s(), v("div", {
|
|
309
|
-
ref_key: "sparklineChart",
|
|
310
|
-
ref: T,
|
|
311
|
-
class: "vue-data-ui-component vue-ui-sparkline",
|
|
312
|
-
id: b.value,
|
|
313
|
-
style: S(`width:100%;font-family:${e.value.style.fontFamily};`)
|
|
314
|
-
}, [
|
|
315
|
-
D(t.$slots, "before", ge(me({
|
|
316
|
-
selected: i.value,
|
|
317
|
-
latest: k.value.latest,
|
|
318
|
-
sum: k.value.sum,
|
|
319
|
-
average: k.value.average,
|
|
320
|
-
median: k.value.median,
|
|
321
|
-
trend: k.value.trend
|
|
322
|
-
})), void 0, !0),
|
|
323
|
-
e.value.style.title.show && L.showInfo ? (s(), v("div", {
|
|
324
|
-
key: 0,
|
|
325
|
-
ref_key: "chartTitle",
|
|
326
|
-
ref: ue,
|
|
327
|
-
class: "vue-ui-sparkline-title",
|
|
328
|
-
style: S(`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"};`)
|
|
329
|
-
}, [
|
|
330
|
-
p("span", {
|
|
331
|
-
style: S(`padding:${e.value.style.title.textAlign === "left" ? "0 0 0 12px" : e.value.style.title.textAlign === "right" ? "0 12px 0 0" : "0"}`)
|
|
332
|
-
}, z(i.value ? i.value.period : e.value.style.title.text), 5)
|
|
333
|
-
], 4)) : h("", !0),
|
|
334
|
-
(s(), v("svg", {
|
|
335
|
-
ref_key: "svgRef",
|
|
336
|
-
ref: ne,
|
|
337
|
-
xmlns: u(ot),
|
|
338
|
-
viewBox: `0 0 ${r.value.width} ${r.value.height}`,
|
|
339
|
-
style: S(`background:${e.value.style.backgroundColor};overflow:visible`),
|
|
340
|
-
onMouseleave: l[0] || (l[0] = (a) => w.value = void 0)
|
|
341
|
-
}, [
|
|
342
|
-
Ze(u(Se)),
|
|
343
|
-
t.$slots["chart-background"] ? (s(), v("foreignObject", {
|
|
344
|
-
key: 0,
|
|
345
|
-
x: 0,
|
|
346
|
-
y: 0,
|
|
347
|
-
width: r.value.width <= 0 ? 10 : r.value.width,
|
|
348
|
-
height: r.value.height <= 0 ? 10 : r.value.height,
|
|
349
|
-
style: {
|
|
350
|
-
pointerEvents: "none"
|
|
351
|
-
}
|
|
352
|
-
}, [
|
|
353
|
-
D(t.$slots, "chart-background", {}, void 0, !0)
|
|
354
|
-
], 8, gt)) : h("", !0),
|
|
355
|
-
p("defs", null, [
|
|
356
|
-
p("linearGradient", {
|
|
357
|
-
x1: "0%",
|
|
358
|
-
y1: "0%",
|
|
359
|
-
x2: "100%",
|
|
360
|
-
y2: "0%",
|
|
361
|
-
id: `sparkline_gradient_${b.value}`
|
|
362
|
-
}, [
|
|
363
|
-
p("stop", {
|
|
364
|
-
offset: "0%",
|
|
365
|
-
"stop-color": u(V)(u(B)(e.value.style.area.color, 0.05), e.value.style.area.opacity)
|
|
366
|
-
}, null, 8, kt),
|
|
367
|
-
p("stop", {
|
|
368
|
-
offset: "100%",
|
|
369
|
-
"stop-color": u(V)(e.value.style.area.color, e.value.style.area.opacity)
|
|
370
|
-
}, null, 8, At)
|
|
371
|
-
], 8, mt),
|
|
372
|
-
p("linearGradient", {
|
|
373
|
-
x2: "0%",
|
|
374
|
-
y2: "100%",
|
|
375
|
-
id: `sparkline_bar_gradient_pos_${b.value}`
|
|
376
|
-
}, [
|
|
377
|
-
p("stop", {
|
|
378
|
-
offset: "0%",
|
|
379
|
-
"stop-color": e.value.style.bar.color
|
|
380
|
-
}, null, 8, _t),
|
|
381
|
-
p("stop", {
|
|
382
|
-
offset: "100%",
|
|
383
|
-
"stop-color": u(B)(e.value.style.bar.color, 0.05)
|
|
384
|
-
}, null, 8, xt)
|
|
385
|
-
], 8, Ct),
|
|
386
|
-
p("linearGradient", {
|
|
387
|
-
x2: "0%",
|
|
388
|
-
y2: "100%",
|
|
389
|
-
id: `sparkline_bar_gradient_neg_${b.value}`
|
|
390
|
-
}, [
|
|
391
|
-
p("stop", {
|
|
392
|
-
offset: "0%",
|
|
393
|
-
"stop-color": u(B)(e.value.style.bar.color, 0.05)
|
|
394
|
-
}, null, 8, Lt),
|
|
395
|
-
p("stop", {
|
|
396
|
-
offset: "100%",
|
|
397
|
-
"stop-color": e.value.style.bar.color
|
|
398
|
-
}, null, 8, $t)
|
|
399
|
-
], 8, wt)
|
|
400
|
-
]),
|
|
401
|
-
e.value.style.area.show && !I.value && d.value[0] && d.value.length > 1 ? (s(), v("g", Ft, [
|
|
402
|
-
e.value.style.line.smooth ? (s(), v("path", {
|
|
403
|
-
key: 0,
|
|
404
|
-
d: `M ${d.value[0].x},${n.value.bottom} ${u(Ce)(d.value)} L ${d.value.at(-1).x},${n.value.bottom} Z`,
|
|
405
|
-
fill: e.value.style.area.useGradient ? `url(#sparkline_gradient_${b.value})` : u(V)(e.value.style.area.color, e.value.style.area.opacity),
|
|
406
|
-
"stroke-linecap": "round",
|
|
407
|
-
"stroke-linejoin": "round"
|
|
408
|
-
}, null, 8, Nt)) : (s(), v("path", {
|
|
409
|
-
key: 1,
|
|
410
|
-
d: `M${Pe.value}Z`,
|
|
411
|
-
fill: e.value.style.area.useGradient ? `url(#sparkline_gradient_${b.value})` : u(V)(e.value.style.area.color, e.value.style.area.opacity),
|
|
412
|
-
"stroke-linecap": "round",
|
|
413
|
-
"stroke-linejoin": "round"
|
|
414
|
-
}, null, 8, It))
|
|
415
|
-
])) : h("", !0),
|
|
416
|
-
e.value.style.line.smooth && !I.value ? (s(), v("path", {
|
|
417
|
-
key: 2,
|
|
418
|
-
d: `M ${u(Ce)(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
|
-
"stroke-linejoin": "round"
|
|
424
|
-
}, null, 8, Dt)) : h("", !0),
|
|
425
|
-
!e.value.style.line.smooth && !I.value ? (s(), v("path", {
|
|
426
|
-
key: 3,
|
|
427
|
-
d: `M ${u(rt)(d.value) || "0,0"}`,
|
|
428
|
-
stroke: e.value.style.line.color,
|
|
429
|
-
fill: "none",
|
|
430
|
-
"stroke-width": e.value.style.line.strokeWidth,
|
|
431
|
-
"stroke-linecap": "round",
|
|
432
|
-
"stroke-linejoin": "round"
|
|
433
|
-
}, null, 8, Et)) : h("", !0),
|
|
434
|
-
(s(!0), v(J, null, ee(d.value, (a, o) => (s(), v("g", null, [
|
|
435
|
-
I.value ? (s(), v("rect", {
|
|
436
|
-
key: 0,
|
|
437
|
-
x: a.x - a.width / 2,
|
|
438
|
-
y: isNaN(a.absoluteValue > 0 ? a.y : _.value) ? 0 : a.absoluteValue > 0 ? a.y : _.value,
|
|
439
|
-
width: a.width,
|
|
440
|
-
height: isNaN(Math.abs(a.y - _.value)) ? 0 : Math.abs(a.y - _.value),
|
|
441
|
-
fill: a.absoluteValue > 0 ? `url(#sparkline_bar_gradient_pos_${b.value})` : `url(#sparkline_bar_gradient_neg_${b.value})`,
|
|
442
|
-
rx: e.value.style.bar.borderRadius
|
|
443
|
-
}, null, 8, Mt)) : h("", !0),
|
|
444
|
-
e.value.style.verticalIndicator.show && (i.value && a.id === i.value.id || L.selectedIndex === o) ? (s(), v("line", {
|
|
445
|
-
key: 1,
|
|
446
|
-
x1: a.x,
|
|
447
|
-
x2: a.x,
|
|
448
|
-
y1: n.value.top - 6,
|
|
449
|
-
y2: n.value.bottom,
|
|
450
|
-
stroke: e.value.style.verticalIndicator.color || a.color,
|
|
451
|
-
"stroke-width": e.value.style.verticalIndicator.strokeWidth,
|
|
452
|
-
"stroke-linecap": "round",
|
|
453
|
-
"stroke-dasharray": e.value.style.verticalIndicator.strokeDasharray || 0
|
|
454
|
-
}, null, 8, St)) : h("", !0)
|
|
455
|
-
]))), 256)),
|
|
456
|
-
q.value < 0 ? (s(), v("line", {
|
|
457
|
-
key: 4,
|
|
458
|
-
x1: n.value.start,
|
|
459
|
-
x2: n.value.start + n.value.width,
|
|
460
|
-
y1: u(_e)(_.value, n.value.bottom),
|
|
461
|
-
y2: u(_e)(_.value, n.value.bottom),
|
|
462
|
-
stroke: e.value.style.zeroLine.color,
|
|
463
|
-
"stroke-dasharray": e.value.style.zeroLine.strokeWidth * 2,
|
|
464
|
-
"stroke-width": e.value.style.zeroLine.strokeWidth,
|
|
465
|
-
"stroke-linecap": "round"
|
|
466
|
-
}, null, 8, zt)) : h("", !0),
|
|
467
|
-
e.value.style.plot.show ? (s(!0), v(J, { key: 5 }, ee(d.value, (a, o) => (s(), v("g", null, [
|
|
468
|
-
i.value && a.id === i.value.id || L.selectedIndex === o || u($).length === 1 ? (s(), v("circle", {
|
|
469
|
-
key: 0,
|
|
470
|
-
cx: a.x,
|
|
471
|
-
cy: a.y,
|
|
472
|
-
r: e.value.style.plot.radius,
|
|
473
|
-
fill: a.color,
|
|
474
|
-
stroke: e.value.style.plot.stroke,
|
|
475
|
-
"stroke-width": e.value.style.plot.strokeWidth
|
|
476
|
-
}, null, 8, Bt)) : h("", !0)
|
|
477
|
-
]))), 256)) : h("", !0),
|
|
478
|
-
L.showInfo && e.value.style.dataLabel.show ? (s(), v("text", {
|
|
479
|
-
key: 6,
|
|
480
|
-
x: e.value.style.dataLabel.position === "left" ? 12 + e.value.style.dataLabel.offsetX : n.value.width + 12 + e.value.style.dataLabel.offsetX,
|
|
481
|
-
y: r.value.height / 2 + e.value.style.dataLabel.fontSize / 2.5 + e.value.style.dataLabel.offsetY,
|
|
482
|
-
"font-size": e.value.style.dataLabel.fontSize,
|
|
483
|
-
"font-weight": e.value.style.dataLabel.bold ? "bold" : "normal",
|
|
484
|
-
fill: e.value.style.dataLabel.color
|
|
485
|
-
}, z(i.value ? u(ae)(
|
|
486
|
-
e.value.style.dataLabel.formatter,
|
|
487
|
-
i.value.absoluteValue,
|
|
488
|
-
u(le)({ p: e.value.style.dataLabel.prefix, v: i.value.absoluteValue, s: e.value.style.dataLabel.suffix, r: e.value.style.dataLabel.roundingValue }),
|
|
489
|
-
{ datapoint: i.value }
|
|
490
|
-
) : u(ae)(
|
|
491
|
-
e.value.style.dataLabel.formatter,
|
|
492
|
-
ce.value,
|
|
493
|
-
u(le)({ p: e.value.style.dataLabel.prefix, v: ce.value, s: e.value.style.dataLabel.suffix, r: e.value.style.dataLabel.roundingValue })
|
|
494
|
-
)), 9, Vt)) : h("", !0),
|
|
495
|
-
(s(!0), v(J, null, ee(d.value, (a, o) => (s(), v("rect", {
|
|
496
|
-
x: a.x - (n.value.width / (x.value + 1) > r.value.padding ? r.value.padding : n.value.width / (x.value + 1)) / 2,
|
|
497
|
-
y: n.value.top - 6,
|
|
498
|
-
height: n.value.height + 6,
|
|
499
|
-
width: n.value.width / (x.value + 1) > r.value.padding ? r.value.padding : n.value.width / (x.value + 1),
|
|
500
|
-
fill: "transparent",
|
|
501
|
-
onMouseenter: () => je(a, o),
|
|
502
|
-
onMouseleave: () => Ge(a, o),
|
|
503
|
-
onClick: () => Ue(a, o)
|
|
504
|
-
}, null, 40, Tt))), 256)),
|
|
505
|
-
D(t.$slots, "svg", { svg: r.value }, void 0, !0)
|
|
506
|
-
], 44, bt)),
|
|
507
|
-
i.value && e.value.style.tooltip.show ? (s(), be(u(ze), {
|
|
508
|
-
key: 1,
|
|
509
|
-
x: i.value.x,
|
|
510
|
-
y: i.value.y,
|
|
511
|
-
prevX: w.value.x,
|
|
512
|
-
prevY: w.value.y,
|
|
513
|
-
offsetY: e.value.style.plot.radius * 3 + e.value.style.tooltip.offsetY,
|
|
514
|
-
svgRef: u(ne),
|
|
515
|
-
background: e.value.style.tooltip.backgroundColor,
|
|
516
|
-
color: e.value.style.tooltip.color,
|
|
517
|
-
fontSize: e.value.style.tooltip.fontSize,
|
|
518
|
-
borderWidth: e.value.style.tooltip.borderWidth,
|
|
519
|
-
borderColor: e.value.style.tooltip.borderColor,
|
|
520
|
-
borderRadius: e.value.style.tooltip.borderRadius,
|
|
521
|
-
backgroundOpacity: e.value.style.tooltip.backgroundOpacity
|
|
522
|
-
}, {
|
|
523
|
-
default: Ke(() => [
|
|
524
|
-
D(t.$slots, "tooltip", ge(me({ ...i.value })), () => [
|
|
525
|
-
He(z(i.value.period) + ": " + z(u(ae)(
|
|
526
|
-
e.value.style.dataLabel.formatter,
|
|
527
|
-
i.value.absoluteValue,
|
|
528
|
-
u(le)({
|
|
529
|
-
p: e.value.style.dataLabel.prefix,
|
|
530
|
-
v: i.value.absoluteValue,
|
|
531
|
-
s: e.value.style.dataLabel.suffix,
|
|
532
|
-
r: e.value.style.dataLabel.roundingValue
|
|
533
|
-
}),
|
|
534
|
-
{ datapoint: i.value }
|
|
535
|
-
)), 1)
|
|
536
|
-
], !0)
|
|
537
|
-
]),
|
|
538
|
-
_: 3
|
|
539
|
-
}, 8, ["x", "y", "prevX", "prevY", "offsetY", "svgRef", "background", "color", "fontSize", "borderWidth", "borderColor", "borderRadius", "backgroundOpacity"])) : h("", !0),
|
|
540
|
-
t.$slots.source ? (s(), v("div", {
|
|
541
|
-
key: 2,
|
|
542
|
-
ref_key: "source",
|
|
543
|
-
ref: se,
|
|
544
|
-
dir: "auto"
|
|
545
|
-
}, [
|
|
546
|
-
D(t.$slots, "source", {}, void 0, !0)
|
|
547
|
-
], 512)) : h("", !0),
|
|
548
|
-
u(R) ? (s(), be(vt, { key: 3 })) : h("", !0)
|
|
549
|
-
], 12, pt));
|
|
550
|
-
}
|
|
551
|
-
}, Ot = /* @__PURE__ */ yt(Rt, [["__scopeId", "data-v-36c3df1c"]]), Ht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
552
|
-
__proto__: null,
|
|
553
|
-
default: Ot
|
|
554
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
555
|
-
export {
|
|
556
|
-
Kt as a,
|
|
557
|
-
Ht as b,
|
|
558
|
-
Ot as v
|
|
559
|
-
};
|