vue-data-ui 3.10.0 → 3.10.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-ChEFq9U7.js → Arrow-DWr41GRU.js} +1 -1
- package/dist/{BaseDraggableDialog-O2XSymlZ.js → BaseDraggableDialog-BQYfVNu8.js} +2 -2
- package/dist/{BaseIcon-B9bGT7HU.js → BaseIcon-4uOct8re.js} +18 -18
- package/dist/{BaseZoomControls-B4rpv4Kk.js → BaseZoomControls-Cb-Qq9_R.js} +2 -2
- package/dist/{ColorPicker-VKEPgk58.js → ColorPicker-Culsjrcr.js} +2 -2
- package/dist/{DataTable-DEwh__D8.js → DataTable-DyoDzNNY.js} +2 -2
- package/dist/{Legend-D2xmnFPH.js → Legend-DN5UJOBH.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CxbOhI52.js → NonSvgPenAndPaper-CNMLfAk3.js} +3 -3
- package/dist/{PackageVersion-C-JOGZBL.js → PackageVersion-CQxJyGQr.js} +1 -1
- package/dist/{PenAndPaper-CulSakut.js → PenAndPaper-LTuSTmWE.js} +3 -3
- package/dist/{Shape-12_eh8zD.js → Shape-PzdCMGsP.js} +1 -1
- package/dist/{Slicer-EQH4YKwe.js → Slicer-DckZxvyx.js} +2 -2
- package/dist/{SlicerPreview-Ddfxn6es.js → SlicerPreview-CSc_cazO.js} +2 -2
- package/dist/{SparkTooltip-D_OsZuuE.js → SparkTooltip-BLTVhvm2.js} +1 -1
- package/dist/{Title-B5L2jweB.js → Title-NgeRXqRA.js} +1 -1
- package/dist/{Tooltip-DpfUZbt7.js → Tooltip-B6qvABDL.js} +1 -1
- package/dist/{UserOptions-5pXc4J-c.js → UserOptions-CX7Xsusk.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-WXGPkYro.js → dom-to-png-CzjUUVZt.js} +1 -1
- package/dist/{img-CqYIrJ8I.js → img-6fNF_rG0.js} +1 -1
- package/dist/{labelUtils-B3mOOEke.js → labelUtils-D6Y-n7cD.js} +1 -1
- package/dist/{lib-2iaAPQ_c.js → lib-CVHM9FhP.js} +188 -140
- package/dist/{pdf-Q5BpWMSa.js → pdf-Dd_6HF9L.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +3 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-DmpzKQ9i.js → useAutoSizeLabelsInsideViewbox-CqeJ1kZA.js} +1 -1
- package/dist/{useNestedProp-BCt4DMkT.js → useNestedProp-Ckf_2P_V.js} +1 -1
- package/dist/{usePrinter-ChVMpU2f.js → usePrinter-1NmjuP-i.js} +2 -2
- package/dist/{useThemeCheck-DGJ31Vi5.js → useThemeCheck-D1ZYXUwG.js} +5 -3
- package/dist/{vue-data-ui-CwfD22m4.js → vue-data-ui-GAruO_UT.js} +68 -68
- package/dist/vue-data-ui.js +73 -73
- package/dist/{vue-ui-3d-bar-DAr11NEe.js → vue-ui-3d-bar-t_E9saCp.js} +222 -218
- package/dist/{vue-ui-accordion-CAXPDm31.js → vue-ui-accordion-DFKaB_05.js} +3 -3
- package/dist/{vue-ui-age-pyramid-KApqwR11.js → vue-ui-age-pyramid-DKlTGZ6m.js} +177 -173
- package/dist/{vue-ui-annotator-D-x-F49X.js → vue-ui-annotator-CNkhGqqn.js} +7 -7
- package/dist/{vue-ui-bullet-D3ZOexko.js → vue-ui-bullet-C4FXVy8_.js} +135 -131
- package/dist/{vue-ui-bump-BJUb7fNz.js → vue-ui-bump-BJZrexv4.js} +264 -260
- package/dist/{vue-ui-candlestick-BBwYtV1-.js → vue-ui-candlestick-P7w1YVT6.js} +304 -300
- package/dist/{vue-ui-carousel-table-DrzQReuc.js → vue-ui-carousel-table-DQk4RoWo.js} +4 -4
- package/dist/{vue-ui-chestnut-ByqOYfmS.js → vue-ui-chestnut-Co8x4We0.js} +326 -322
- package/dist/{vue-ui-chord-3k3MxDxL.js → vue-ui-chord-NjSRzToa.js} +171 -167
- package/dist/{vue-ui-circle-pack-U-fW2dBh.js → vue-ui-circle-pack-CwrgCRKX.js} +162 -158
- package/dist/{vue-ui-cursor-PxyKLKT4.js → vue-ui-cursor-Bh5-9JWm.js} +3 -3
- package/dist/{vue-ui-dag-BgB4pBHg.js → vue-ui-dag-BBGpjSzH.js} +451 -447
- package/dist/{vue-ui-dashboard-Bb0qmaCv.js → vue-ui-dashboard-ekbwnmce.js} +68 -68
- package/dist/{vue-ui-digits-DWt_f5c-.js → vue-ui-digits-DnsDASGD.js} +2 -2
- package/dist/{vue-ui-donut-Ce4aLPAr.js → vue-ui-donut-DvLh8qa2.js} +467 -463
- package/dist/{vue-ui-donut-evolution-Dn8sOIr-.js → vue-ui-donut-evolution-BiLhAVY8.js} +354 -350
- package/dist/{vue-ui-dumbbell-Bu8opmEM.js → vue-ui-dumbbell-C2OWcZvr.js} +240 -236
- package/dist/{vue-ui-flow-CavJTxRY.js → vue-ui-flow-Cp2le1ur.js} +171 -167
- package/dist/{vue-ui-funnel-CWSmOHEt.js → vue-ui-funnel-ClGo8z4y.js} +133 -129
- package/dist/{vue-ui-galaxy-CqeQVqG-.js → vue-ui-galaxy-DTAl_-40.js} +146 -142
- package/dist/{vue-ui-gauge-DnU9JZ0v.js → vue-ui-gauge-DOG6-lgt.js} +175 -171
- package/dist/{vue-ui-geo-Dg8W127k.js → vue-ui-geo-BpWyHXwd.js} +123 -119
- package/dist/{vue-ui-gizmo-BfyTXxBY.js → vue-ui-gizmo-BMq5dzK4.js} +3 -3
- package/dist/{vue-ui-heatmap-D_JOEm4-.js → vue-ui-heatmap-Bp9HI0Zo.js} +231 -227
- package/dist/{vue-ui-history-plot-DgMc6-9X.js → vue-ui-history-plot-CVM1jz1X.js} +252 -248
- package/dist/{vue-ui-horizontal-bar-BPX7YBdV.js → vue-ui-horizontal-bar-B0UY6b-O.js} +325 -321
- package/dist/{vue-ui-kpi-BqCS6onP.js → vue-ui-kpi-DgSmfw2q.js} +3 -3
- package/dist/{vue-ui-mini-loader-CcXuJ3iD.js → vue-ui-mini-loader-D8z1PwRZ.js} +2 -2
- package/dist/{vue-ui-molecule-CX-pPp0u.js → vue-ui-molecule-CUppdL5f.js} +183 -179
- package/dist/{vue-ui-mood-radar-3nHlZfrB.js → vue-ui-mood-radar-QN25VSAw.js} +162 -158
- package/dist/{vue-ui-nested-donuts-cz79gQlJ.js → vue-ui-nested-donuts-ywWUDYjT.js} +178 -174
- package/dist/{vue-ui-onion-yseOpPeu.js → vue-ui-onion-DmwZ1gg_.js} +185 -181
- package/dist/{vue-ui-parallel-coordinate-plot-Dqg_vJCM.js → vue-ui-parallel-coordinate-plot-Bz2ROYRD.js} +195 -191
- package/dist/{vue-ui-quadrant-D4UDUZoN.js → vue-ui-quadrant-CUpWOWF2.js} +243 -239
- package/dist/{vue-ui-quick-chart-BMDrPkAJ.js → vue-ui-quick-chart-CXrm_rzI.js} +295 -291
- package/dist/{vue-ui-radar-B_wSZVDb.js → vue-ui-radar-BqLjOOnJ.js} +168 -164
- package/dist/{vue-ui-rating-CBedYtOp.js → vue-ui-rating-W6I6pacT.js} +2 -2
- package/dist/{vue-ui-relation-circle-DydZv4Pf.js → vue-ui-relation-circle-CrYmJHLI.js} +185 -181
- package/dist/vue-ui-ridgeline-ZbmQXJxt.js +1306 -0
- package/dist/{vue-ui-rings-BdYnuNS7.js → vue-ui-rings-BxYoBfvT.js} +299 -295
- package/dist/{vue-ui-scatter-QISpPygj.js → vue-ui-scatter-BhJkoRBS.js} +354 -350
- package/dist/{vue-ui-skeleton-CdpD_Zjk.js → vue-ui-skeleton-Bg1akQqn.js} +3 -3
- package/dist/{vue-ui-smiley-CTeSlfZa.js → vue-ui-smiley-B23r7AWp.js} +2 -2
- package/dist/{vue-ui-spark-trend-Jgho2QgC.js → vue-ui-spark-trend-CJtfXMSj.js} +120 -116
- package/dist/{vue-ui-sparkbar-CLqcdko6.js → vue-ui-sparkbar-DHJdmNDm.js} +84 -80
- package/dist/{vue-ui-sparkgauge-BA3NDOhA.js → vue-ui-sparkgauge-ANfPLNuD.js} +81 -77
- package/dist/{vue-ui-sparkhistogram-fb8hGuCn.js → vue-ui-sparkhistogram-CIfYUXVZ.js} +109 -105
- package/dist/{vue-ui-sparkline-BWdvoOYj.js → vue-ui-sparkline-Bm0OmFUB.js} +184 -174
- package/dist/{vue-ui-sparkstackbar-DbbdPqIp.js → vue-ui-sparkstackbar-CCnnfsqG.js} +99 -95
- package/dist/{vue-ui-stackbar-MYly9iMc.js → vue-ui-stackbar-CK5is5H7.js} +376 -372
- package/dist/{vue-ui-stackline-L0q_GsYv.js → vue-ui-stackline-CFv2OUCL.js} +349 -345
- package/dist/{vue-ui-strip-plot-B7W1EZdY.js → vue-ui-strip-plot-CJ1Zkrhq.js} +248 -244
- package/dist/{vue-ui-table-WSRRp_nE.js → vue-ui-table-CMyYl8lE.js} +5 -5
- package/dist/{vue-ui-table-heatmap-Bqr4Eubg.js → vue-ui-table-heatmap-8kBdXO2V.js} +6 -6
- package/dist/{vue-ui-table-sparkline-UhaEz2jD.js → vue-ui-table-sparkline-Bo4nuBEx.js} +174 -170
- package/dist/{vue-ui-thermometer-BFwmgdMO.js → vue-ui-thermometer-h3voYVGJ.js} +133 -129
- package/dist/{vue-ui-timer-CoLOwKwP.js → vue-ui-timer-CazY_Z4R.js} +5 -5
- package/dist/{vue-ui-tiremarks-CvXOa3z4.js → vue-ui-tiremarks-CTa_gpit.js} +156 -152
- package/dist/{vue-ui-treemap-C8HbMbin.js → vue-ui-treemap-B6AuOtaA.js} +161 -157
- package/dist/{vue-ui-waffle-rS6LRZNV.js → vue-ui-waffle-DnEBC07H.js} +185 -181
- package/dist/{vue-ui-wheel-BGle0ni9.js → vue-ui-wheel-DFU2vMsP.js} +125 -121
- package/dist/{vue-ui-word-cloud-Dj1lJdtL.js → vue-ui-word-cloud-DgY58NEj.js} +179 -175
- package/dist/{vue-ui-world-C7d5vM6d.js → vue-ui-world-xEUaTJDk.js} +6 -6
- package/dist/{vue-ui-xy-canvas-CoBMpLeE.js → vue-ui-xy-canvas-eHl--9m7.js} +213 -209
- package/dist/{vue-ui-xy-De-FDHwh.js → vue-ui-xy-spqKboQb.js} +697 -693
- package/package.json +1 -1
- package/dist/vue-ui-ridgeline-BGerPYkY.js +0 -1302
|
@@ -1,30 +1,34 @@
|
|
|
1
|
-
import { defineAsyncComponent as he, computed as f, ref as y, toRefs as
|
|
2
|
-
import { c as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { _ as
|
|
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 } } },
|
|
1
|
+
import { defineAsyncComponent as he, computed as f, ref as y, toRefs as qe, watch as Q, shallowRef as ye, onMounted as Ze, onBeforeUnmount as pe, createElementBlock as c, openBlock as n, normalizeStyle as z, renderSlot as D, createCommentVNode as h, createBlock as ge, normalizeProps as be, guardReactiveProps as me, createElementVNode as p, toDisplayString as B, unref as u, createVNode as Ke, Fragment as J, renderList as ee, withCtx as He, createTextVNode as Qe, nextTick as Je } from "vue";
|
|
2
|
+
import { c as et, t as tt, a1 as ke, an as te, o as Ae, g as Ce, l as at, h as E, n as lt, ao as ot, X as rt, s as V, A as xe, C as ut, Q as _e, a as ae, d as le, ap as st } from "./lib-CVHM9FhP.js";
|
|
3
|
+
import { t as nt, u as it } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as dt, a as oe } from "./useNestedProp-Ckf_2P_V.js";
|
|
5
|
+
import { u as vt, B as ct } from "./BaseScanner-BMpwQAfz.js";
|
|
6
|
+
import { u as ft } from "./useThemeCheck-D1ZYXUwG.js";
|
|
7
|
+
import { u as ht } from "./useTimeLabels-DKoynYae.js";
|
|
8
|
+
import { u as yt } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
+
import { _ as pt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
+
const we = {}, Le = { style: { backgroundColor: "#1A1A1A", zeroLine: { color: "#5A5A5A" }, plot: { stroke: "#1A1A1A" }, verticalIndicator: { color: "#8A8A8A" }, dataLabel: { color: "#CCCCCC" }, title: { color: "#CCCCCC" }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#3A3A3A" } } }, $e = { 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 } } }, Ne = { 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" } } }, Ie = { 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" } } }, Me = { 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" } } }, De = { 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" } } }, Fe = { 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" } } }, Se = {
|
|
11
11
|
default: {},
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
minimal: we,
|
|
13
|
+
minimalDark: Le,
|
|
14
|
+
dark: $e,
|
|
15
|
+
celebration: Ne,
|
|
16
|
+
celebrationNight: Ie,
|
|
17
|
+
hack: Me,
|
|
18
|
+
zen: De,
|
|
19
|
+
concrete: Fe
|
|
20
|
+
}, Ht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
19
21
|
__proto__: null,
|
|
20
|
-
celebration:
|
|
21
|
-
celebrationNight:
|
|
22
|
-
concrete:
|
|
23
|
-
dark:
|
|
24
|
-
default:
|
|
25
|
-
hack:
|
|
26
|
-
|
|
27
|
-
|
|
22
|
+
celebration: Ne,
|
|
23
|
+
celebrationNight: Ie,
|
|
24
|
+
concrete: Fe,
|
|
25
|
+
dark: $e,
|
|
26
|
+
default: Se,
|
|
27
|
+
hack: Me,
|
|
28
|
+
minimal: we,
|
|
29
|
+
minimalDark: Le,
|
|
30
|
+
zen: De
|
|
31
|
+
}, Symbol.toStringTag, { value: "Module" })), gt = ["id"], bt = ["xmlns", "viewBox"], mt = ["width", "height"], kt = ["id"], At = ["stop-color"], Ct = ["stop-color"], xt = ["id"], _t = ["stop-color"], wt = ["stop-color"], Lt = ["id"], $t = ["stop-color"], Nt = ["stop-color"], It = { key: 1 }, Mt = ["d", "fill"], Dt = ["d", "fill"], Ft = ["d", "stroke", "stroke-width"], St = ["d", "stroke", "stroke-width"], zt = ["x", "y", "width", "height", "fill", "rx"], Bt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Et = ["x1", "x2", "y1", "y2", "stroke", "stroke-dasharray", "stroke-width"], Vt = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Tt = ["x", "y", "font-size", "font-weight", "fill"], Rt = ["x", "y", "height", "width", "onMouseenter", "onMouseleave", "onClick"], Ot = {
|
|
28
32
|
__name: "vue-ui-sparkline",
|
|
29
33
|
props: {
|
|
30
34
|
config: {
|
|
@@ -57,22 +61,22 @@ const we = { style: { backgroundColor: "#1A1A1A", zeroLine: { color: "#5A5A5A" }
|
|
|
57
61
|
}
|
|
58
62
|
},
|
|
59
63
|
emits: ["hoverIndex", "selectDatapoint"],
|
|
60
|
-
setup(L, { emit:
|
|
61
|
-
const
|
|
62
|
-
function
|
|
63
|
-
return
|
|
64
|
+
setup(L, { emit: ze }) {
|
|
65
|
+
const Be = he(() => import("./PackageVersion-CQxJyGQr.js")), Ee = he(() => import("./SparkTooltip-BLTVhvm2.js")), { vue_ui_sparkline: Ve } = dt(), { isThemeValid: Te, warnInvalidTheme: Re } = ft(), s = L, re = f(() => Array.isArray(s.dataset) && s.dataset.length > 0), g = y(et()), T = y(null), ue = y(null), se = y(null), e = y(P());
|
|
66
|
+
function Oe(t) {
|
|
67
|
+
return st(t).map((a) => ({ period: "-", value: a }));
|
|
64
68
|
}
|
|
65
|
-
const { loading: R, FINAL_DATASET: $, manualLoading:
|
|
66
|
-
...
|
|
69
|
+
const { loading: R, FINAL_DATASET: $, manualLoading: O } = vt({
|
|
70
|
+
...qe(s),
|
|
67
71
|
FINAL_CONFIG: e,
|
|
68
|
-
prepareConfig:
|
|
72
|
+
prepareConfig: P,
|
|
69
73
|
callback: () => {
|
|
70
74
|
Promise.resolve().then(async () => {
|
|
71
|
-
await
|
|
75
|
+
await Je(), X();
|
|
72
76
|
});
|
|
73
77
|
},
|
|
74
|
-
skeletonDataset:
|
|
75
|
-
skeletonConfig:
|
|
78
|
+
skeletonDataset: Oe(12),
|
|
79
|
+
skeletonConfig: tt({
|
|
76
80
|
defaultConfig: e.value,
|
|
77
81
|
userConfig: {
|
|
78
82
|
style: {
|
|
@@ -89,20 +93,20 @@ const we = { style: { backgroundColor: "#1A1A1A", zeroLine: { color: "#5A5A5A" }
|
|
|
89
93
|
}
|
|
90
94
|
}
|
|
91
95
|
})
|
|
92
|
-
}), { svgRef: ne } =
|
|
93
|
-
function
|
|
96
|
+
}), { svgRef: ne } = yt({ config: e.value.style.title });
|
|
97
|
+
function P() {
|
|
94
98
|
const t = oe({
|
|
95
99
|
userConfig: s.config,
|
|
96
|
-
defaultConfig:
|
|
100
|
+
defaultConfig: Ve
|
|
97
101
|
});
|
|
98
102
|
let a = {};
|
|
99
103
|
const l = t.theme;
|
|
100
104
|
if (l)
|
|
101
|
-
if (!
|
|
102
|
-
|
|
105
|
+
if (!Te.value(t))
|
|
106
|
+
Re(t), a = t;
|
|
103
107
|
else {
|
|
104
108
|
const o = oe({
|
|
105
|
-
userConfig:
|
|
109
|
+
userConfig: Se[l] || s.config,
|
|
106
110
|
defaultConfig: t
|
|
107
111
|
});
|
|
108
112
|
a = {
|
|
@@ -116,14 +120,14 @@ const we = { style: { backgroundColor: "#1A1A1A", zeroLine: { color: "#5A5A5A" }
|
|
|
116
120
|
a = t;
|
|
117
121
|
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
122
|
}
|
|
119
|
-
const
|
|
123
|
+
const A = f(() => te({
|
|
120
124
|
data: $.value,
|
|
121
125
|
threshold: e.value.downsample.threshold
|
|
122
126
|
}));
|
|
123
127
|
Q(() => s.config, (t) => {
|
|
124
|
-
R.value || (e.value =
|
|
128
|
+
R.value || (e.value = P()), de(), r.value.chartWidth = e.value.style.chartWidth;
|
|
125
129
|
}, { deep: !0 }), Q(() => s.dataset, (t) => {
|
|
126
|
-
Array.isArray(t) && t.length > 0 && (
|
|
130
|
+
Array.isArray(t) && t.length > 0 && (O.value = !1), b.value = te({
|
|
127
131
|
data: $.value.map((a) => ({
|
|
128
132
|
...a,
|
|
129
133
|
value: [void 0].includes(a.value) ? null : a.value
|
|
@@ -131,8 +135,8 @@ const we = { style: { backgroundColor: "#1A1A1A", zeroLine: { color: "#5A5A5A" }
|
|
|
131
135
|
threshold: e.value.downsample.threshold
|
|
132
136
|
});
|
|
133
137
|
}, { deep: !0 });
|
|
134
|
-
const b = y(
|
|
135
|
-
function
|
|
138
|
+
const b = y(Pe());
|
|
139
|
+
function Pe() {
|
|
136
140
|
return te({
|
|
137
141
|
data: $.value.map((t) => e.value.style.animation.show && $.value.length > 1 ? {
|
|
138
142
|
...t,
|
|
@@ -144,59 +148,59 @@ const we = { style: { backgroundColor: "#1A1A1A", zeroLine: { color: "#5A5A5A" }
|
|
|
144
148
|
threshold: e.value.downsample.threshold
|
|
145
149
|
});
|
|
146
150
|
}
|
|
147
|
-
const m = ye(null),
|
|
148
|
-
const a = (
|
|
151
|
+
const m = ye(null), C = ye(null), W = y(!1), N = y(0), j = y([]), G = y(""), U = f(() => {
|
|
152
|
+
const a = (A.value || []).map((o) => `${o.period}::${Number.isFinite(o.value) ? o.value : 0}`).join("|"), l = e.value?.style?.animation || {};
|
|
149
153
|
return `${a}#${!!l.show}#${l.animationFrames || 0}`;
|
|
150
154
|
});
|
|
151
|
-
function
|
|
152
|
-
N.value && (cancelAnimationFrame(N.value), N.value = 0), j.value.forEach((t) => clearTimeout(t)), j.value = [],
|
|
155
|
+
function F() {
|
|
156
|
+
N.value && (cancelAnimationFrame(N.value), N.value = 0), j.value.forEach((t) => clearTimeout(t)), j.value = [], W.value = !1;
|
|
153
157
|
}
|
|
154
158
|
function X() {
|
|
155
|
-
const t = e.value?.style?.animation || {}, a =
|
|
156
|
-
if (l && l === G.value && (
|
|
159
|
+
const t = e.value?.style?.animation || {}, a = A.value || [], l = U.value;
|
|
160
|
+
if (l && l === G.value && (W.value || b.value.length === a.length))
|
|
157
161
|
return;
|
|
158
|
-
if (
|
|
162
|
+
if (F(), !t.show || R.value || a.length <= 1) {
|
|
159
163
|
b.value = a, G.value = l;
|
|
160
164
|
return;
|
|
161
165
|
}
|
|
162
|
-
|
|
166
|
+
W.value = !0, G.value = l, b.value = [];
|
|
163
167
|
const o = Math.max(1, Number(t.animationFrames) || 1), K = Math.max(1, Math.floor(o / a.length));
|
|
164
168
|
let H = 0;
|
|
165
169
|
const fe = () => {
|
|
166
170
|
if (l !== U.value) {
|
|
167
|
-
|
|
171
|
+
F();
|
|
168
172
|
return;
|
|
169
173
|
}
|
|
170
174
|
if (H < a.length) {
|
|
171
175
|
b.value.push(a[H]);
|
|
172
|
-
const
|
|
176
|
+
const Ye = setTimeout(() => {
|
|
173
177
|
N.value = requestAnimationFrame(fe);
|
|
174
178
|
}, K);
|
|
175
|
-
j.value.push(
|
|
179
|
+
j.value.push(Ye), H += 1;
|
|
176
180
|
} else
|
|
177
|
-
b.value = a,
|
|
181
|
+
b.value = a, F();
|
|
178
182
|
};
|
|
179
183
|
N.value = requestAnimationFrame(fe);
|
|
180
184
|
}
|
|
181
185
|
Q(U, () => {
|
|
182
186
|
X();
|
|
183
|
-
}),
|
|
184
|
-
|
|
187
|
+
}), Ze(() => {
|
|
188
|
+
de(), X();
|
|
185
189
|
}), pe(() => {
|
|
186
|
-
|
|
190
|
+
F();
|
|
187
191
|
});
|
|
188
192
|
const ie = f(() => !!e.value.debug);
|
|
189
|
-
function
|
|
190
|
-
if (
|
|
193
|
+
function de() {
|
|
194
|
+
if (Ae(s.dataset) ? (Ce({
|
|
191
195
|
componentName: "VueUiSparkline",
|
|
192
196
|
type: "dataset",
|
|
193
197
|
debug: ie.value
|
|
194
|
-
}),
|
|
195
|
-
|
|
198
|
+
}), O.value = !0) : s.dataset.forEach((t, a) => {
|
|
199
|
+
at({
|
|
196
200
|
datasetObject: t,
|
|
197
201
|
requiredAttributes: ["period", "value"]
|
|
198
202
|
}).forEach((l) => {
|
|
199
|
-
|
|
203
|
+
Ce({
|
|
200
204
|
componentName: "VueUiSparkline",
|
|
201
205
|
type: "datasetSerieAttribute",
|
|
202
206
|
property: l,
|
|
@@ -204,9 +208,9 @@ const we = { style: { backgroundColor: "#1A1A1A", zeroLine: { color: "#5A5A5A" }
|
|
|
204
208
|
debug: ie.value
|
|
205
209
|
});
|
|
206
210
|
});
|
|
207
|
-
}),
|
|
208
|
-
const t =
|
|
209
|
-
const { width: a, height: l } =
|
|
211
|
+
}), Ae(s.dataset) || (O.value = e.value.loading), e.value.responsive) {
|
|
212
|
+
const t = nt(() => {
|
|
213
|
+
const { width: a, height: l } = it({
|
|
210
214
|
chart: T.value,
|
|
211
215
|
title: e.value.style.title.show && s.showInfo ? ue.value : null,
|
|
212
216
|
source: se.value
|
|
@@ -215,18 +219,18 @@ const we = { style: { backgroundColor: "#1A1A1A", zeroLine: { color: "#5A5A5A" }
|
|
|
215
219
|
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
220
|
});
|
|
217
221
|
});
|
|
218
|
-
m.value && (
|
|
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);
|
|
219
223
|
}
|
|
220
224
|
}
|
|
221
225
|
pe(() => {
|
|
222
|
-
m.value && (
|
|
226
|
+
m.value && (C.value && m.value.unobserve(C.value), m.value.disconnect());
|
|
223
227
|
});
|
|
224
228
|
const r = y({
|
|
225
229
|
height: 80 * s.heightRatio,
|
|
226
230
|
width: 500,
|
|
227
231
|
chartWidth: e.value.style.chartWidth,
|
|
228
232
|
padding: s.forcedPadding
|
|
229
|
-
}), Y =
|
|
233
|
+
}), Y = ze, i = f(() => {
|
|
230
234
|
const { top: t, right: a, bottom: l, left: o } = e.value.style.padding;
|
|
231
235
|
return {
|
|
232
236
|
top: t,
|
|
@@ -237,53 +241,53 @@ const we = { style: { backgroundColor: "#1A1A1A", zeroLine: { color: "#5A5A5A" }
|
|
|
237
241
|
width: s.showInfo && e.value.style.dataLabel.show ? r.value.chartWidth - o - a : r.value.width - r.value.padding - o - a,
|
|
238
242
|
height: r.value.height - t - l
|
|
239
243
|
};
|
|
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),
|
|
244
|
+
}), 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
245
|
const t = q.value >= 0 ? 0 : q.value;
|
|
242
246
|
return Math.abs(t);
|
|
243
|
-
}),
|
|
247
|
+
}), ve = f(() => We.value + I.value), x = f(() => i.value.bottom - i.value.height * Z(I.value));
|
|
244
248
|
function Z(t) {
|
|
245
|
-
return isNaN(t /
|
|
249
|
+
return isNaN(t / ve.value) ? 0 : t / ve.value;
|
|
246
250
|
}
|
|
247
|
-
const
|
|
248
|
-
values:
|
|
249
|
-
maxDatapoints:
|
|
251
|
+
const _ = f(() => A.value.length - 1 || 1), S = f(() => ht({
|
|
252
|
+
values: A.value.map((t) => t.period),
|
|
253
|
+
maxDatapoints: A.value.length,
|
|
250
254
|
formatter: e.value.style.dataLabel.datetimeFormatter,
|
|
251
255
|
start: 0,
|
|
252
|
-
end:
|
|
253
|
-
})),
|
|
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 /
|
|
256
|
+
end: A.value.length
|
|
257
|
+
})), v = f(() => b.value.map((t, a) => {
|
|
258
|
+
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 / _.value;
|
|
255
259
|
return {
|
|
256
260
|
absoluteValue: l,
|
|
257
261
|
period: S.value && S.value[a] && S.value[a].text ? S.value[a].text : t.period,
|
|
258
|
-
plotValue: l +
|
|
259
|
-
toMax: Z(l +
|
|
262
|
+
plotValue: l + I.value,
|
|
263
|
+
toMax: Z(l + I.value),
|
|
260
264
|
x: i.value.start + a * o,
|
|
261
|
-
y: i.value.bottom - i.value.height * Z(l +
|
|
265
|
+
y: i.value.bottom - i.value.height * Z(l + I.value),
|
|
262
266
|
id: `plot_${g.value}_${a}`,
|
|
263
|
-
color:
|
|
267
|
+
color: M.value ? e.value.style.bar.color : e.value.style.area.useGradient ? E(e.value.style.line.color, 0.05 * (1 - a / _.value)) : e.value.style.line.color,
|
|
264
268
|
width: o
|
|
265
269
|
};
|
|
266
|
-
})),
|
|
267
|
-
const t = { x:
|
|
268
|
-
return
|
|
270
|
+
})), je = f(() => {
|
|
271
|
+
const t = { x: v.value[0].x || 0, y: (r.value.height || 0) - 6 }, a = { x: v.value[v.value.length - 1].x || 0, y: (r.value.height || 0) - 6 }, l = [];
|
|
272
|
+
return v.value.forEach((o) => {
|
|
269
273
|
l.push(`${o.x || 0},${o.y || 0} `);
|
|
270
274
|
}), [t.x, t.y, ...l, a.x, a.y].toString();
|
|
271
|
-
}),
|
|
272
|
-
function
|
|
273
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }),
|
|
275
|
+
}), d = y(void 0), w = y(void 0);
|
|
276
|
+
function Ge(t, a) {
|
|
277
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }), d.value = t, w.value || (w.value = t), Y("hoverIndex", { index: a });
|
|
274
278
|
}
|
|
275
|
-
function
|
|
276
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a }), w.value =
|
|
279
|
+
function Ue(t, a) {
|
|
280
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a }), w.value = d.value, d.value = void 0, Y("hoverIndex", { index: void 0 });
|
|
277
281
|
}
|
|
278
282
|
const k = f(() => {
|
|
279
283
|
if (re.value) {
|
|
280
|
-
const t =
|
|
284
|
+
const t = v.value.map((l) => l.absoluteValue), a = t.reduce((l, o) => l + o, 0);
|
|
281
285
|
return {
|
|
282
|
-
latest:
|
|
286
|
+
latest: v.value[v.value.length - 1] ? v.value[v.value.length - 1].absoluteValue : 0,
|
|
283
287
|
sum: a,
|
|
284
|
-
average: a /
|
|
285
|
-
median:
|
|
286
|
-
trend:
|
|
288
|
+
average: a / v.value.length,
|
|
289
|
+
median: ot(t),
|
|
290
|
+
trend: lt(v.value.map(({ x: l, y: o, absoluteValue: K }) => ({
|
|
287
291
|
x: l,
|
|
288
292
|
y: o,
|
|
289
293
|
value: K
|
|
@@ -297,8 +301,8 @@ const we = { style: { backgroundColor: "#1A1A1A", zeroLine: { color: "#5A5A5A" }
|
|
|
297
301
|
median: null,
|
|
298
302
|
trend: null
|
|
299
303
|
};
|
|
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),
|
|
301
|
-
function
|
|
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), M = f(() => e.value.type && e.value.type === "bar");
|
|
305
|
+
function Xe(t, a) {
|
|
302
306
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: a }), Y("selectDatapoint", { datapoint: t, index: a });
|
|
303
307
|
}
|
|
304
308
|
return (t, a) => (n(), c("div", {
|
|
@@ -308,8 +312,8 @@ const we = { style: { backgroundColor: "#1A1A1A", zeroLine: { color: "#5A5A5A" }
|
|
|
308
312
|
id: g.value,
|
|
309
313
|
style: z(`width:100%;font-family:${e.value.style.fontFamily};`)
|
|
310
314
|
}, [
|
|
311
|
-
|
|
312
|
-
selected:
|
|
315
|
+
D(t.$slots, "before", be(me({
|
|
316
|
+
selected: d.value,
|
|
313
317
|
latest: k.value.latest,
|
|
314
318
|
sum: k.value.sum,
|
|
315
319
|
average: k.value.average,
|
|
@@ -325,17 +329,17 @@ const we = { style: { backgroundColor: "#1A1A1A", zeroLine: { color: "#5A5A5A" }
|
|
|
325
329
|
}, [
|
|
326
330
|
p("span", {
|
|
327
331
|
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(
|
|
332
|
+
}, B(d.value ? d.value.period : e.value.style.title.text), 5)
|
|
329
333
|
], 4)) : h("", !0),
|
|
330
334
|
(n(), c("svg", {
|
|
331
335
|
ref_key: "svgRef",
|
|
332
336
|
ref: ne,
|
|
333
|
-
xmlns: u(
|
|
337
|
+
xmlns: u(rt),
|
|
334
338
|
viewBox: `0 0 ${r.value.width} ${r.value.height}`,
|
|
335
339
|
style: z(`background:${e.value.style.backgroundColor};overflow:visible`),
|
|
336
340
|
onMouseleave: a[0] || (a[0] = (l) => w.value = void 0)
|
|
337
341
|
}, [
|
|
338
|
-
|
|
342
|
+
Ke(u(Be)),
|
|
339
343
|
t.$slots["chart-background"] ? (n(), c("foreignObject", {
|
|
340
344
|
key: 0,
|
|
341
345
|
x: 0,
|
|
@@ -346,8 +350,8 @@ const we = { style: { backgroundColor: "#1A1A1A", zeroLine: { color: "#5A5A5A" }
|
|
|
346
350
|
pointerEvents: "none"
|
|
347
351
|
}
|
|
348
352
|
}, [
|
|
349
|
-
|
|
350
|
-
], 8,
|
|
353
|
+
D(t.$slots, "chart-background", {}, void 0, !0)
|
|
354
|
+
], 8, mt)) : h("", !0),
|
|
351
355
|
p("defs", null, [
|
|
352
356
|
p("linearGradient", {
|
|
353
357
|
x1: "0%",
|
|
@@ -359,12 +363,12 @@ const we = { style: { backgroundColor: "#1A1A1A", zeroLine: { color: "#5A5A5A" }
|
|
|
359
363
|
p("stop", {
|
|
360
364
|
offset: "0%",
|
|
361
365
|
"stop-color": u(V)(u(E)(e.value.style.area.color, 0.05), e.value.style.area.opacity)
|
|
362
|
-
}, null, 8,
|
|
366
|
+
}, null, 8, At),
|
|
363
367
|
p("stop", {
|
|
364
368
|
offset: "100%",
|
|
365
369
|
"stop-color": u(V)(e.value.style.area.color, e.value.style.area.opacity)
|
|
366
|
-
}, null, 8,
|
|
367
|
-
], 8,
|
|
370
|
+
}, null, 8, Ct)
|
|
371
|
+
], 8, kt),
|
|
368
372
|
p("linearGradient", {
|
|
369
373
|
x2: "0%",
|
|
370
374
|
y2: "100%",
|
|
@@ -373,11 +377,11 @@ const we = { style: { backgroundColor: "#1A1A1A", zeroLine: { color: "#5A5A5A" }
|
|
|
373
377
|
p("stop", {
|
|
374
378
|
offset: "0%",
|
|
375
379
|
"stop-color": e.value.style.bar.color
|
|
376
|
-
}, null, 8,
|
|
380
|
+
}, null, 8, _t),
|
|
377
381
|
p("stop", {
|
|
378
382
|
offset: "100%",
|
|
379
383
|
"stop-color": u(E)(e.value.style.bar.color, 0.05)
|
|
380
|
-
}, null, 8,
|
|
384
|
+
}, null, 8, wt)
|
|
381
385
|
], 8, xt),
|
|
382
386
|
p("linearGradient", {
|
|
383
387
|
x2: "0%",
|
|
@@ -387,51 +391,57 @@ const we = { style: { backgroundColor: "#1A1A1A", zeroLine: { color: "#5A5A5A" }
|
|
|
387
391
|
p("stop", {
|
|
388
392
|
offset: "0%",
|
|
389
393
|
"stop-color": u(E)(e.value.style.bar.color, 0.05)
|
|
390
|
-
}, null, 8,
|
|
394
|
+
}, null, 8, $t),
|
|
391
395
|
p("stop", {
|
|
392
396
|
offset: "100%",
|
|
393
397
|
"stop-color": e.value.style.bar.color
|
|
394
|
-
}, null, 8,
|
|
395
|
-
], 8,
|
|
398
|
+
}, null, 8, Nt)
|
|
399
|
+
], 8, Lt)
|
|
396
400
|
]),
|
|
397
|
-
e.value.style.area.show && !
|
|
401
|
+
e.value.style.area.show && !M.value && v.value[0] && v.value.length > 1 ? (n(), c("g", It, [
|
|
398
402
|
e.value.style.line.smooth ? (n(), c("path", {
|
|
399
403
|
key: 0,
|
|
400
|
-
d: `M ${
|
|
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
|
-
|
|
404
|
+
d: `M ${v.value[0].x},${i.value.bottom} ${u(xe)(v.value)} L ${v.value.at(-1).x},${i.value.bottom} 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
|
+
"stroke-linecap": "round",
|
|
407
|
+
"stroke-linejoin": "round"
|
|
408
|
+
}, null, 8, Mt)) : (n(), c("path", {
|
|
403
409
|
key: 1,
|
|
404
|
-
d: `M${
|
|
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
|
-
|
|
410
|
+
d: `M${je.value}Z`,
|
|
411
|
+
fill: e.value.style.area.useGradient ? `url(#sparkline_gradient_${g.value})` : u(V)(e.value.style.area.color, e.value.style.area.opacity),
|
|
412
|
+
"stroke-linecap": "round",
|
|
413
|
+
"stroke-linejoin": "round"
|
|
414
|
+
}, null, 8, Dt))
|
|
407
415
|
])) : h("", !0),
|
|
408
|
-
e.value.style.line.smooth && !
|
|
416
|
+
e.value.style.line.smooth && !M.value ? (n(), c("path", {
|
|
409
417
|
key: 2,
|
|
410
|
-
d: `M ${u(
|
|
418
|
+
d: `M ${u(xe)(v.value) || "0,0"}`,
|
|
411
419
|
stroke: e.value.style.line.color,
|
|
412
420
|
fill: "none",
|
|
413
421
|
"stroke-width": e.value.style.line.strokeWidth,
|
|
414
|
-
"stroke-linecap": "round"
|
|
415
|
-
|
|
416
|
-
|
|
422
|
+
"stroke-linecap": "round",
|
|
423
|
+
"stroke-linejoin": "round"
|
|
424
|
+
}, null, 8, Ft)) : h("", !0),
|
|
425
|
+
!e.value.style.line.smooth && !M.value ? (n(), c("path", {
|
|
417
426
|
key: 3,
|
|
418
|
-
d: `M ${u(
|
|
427
|
+
d: `M ${u(ut)(v.value) || "0,0"}`,
|
|
419
428
|
stroke: e.value.style.line.color,
|
|
420
429
|
fill: "none",
|
|
421
430
|
"stroke-width": e.value.style.line.strokeWidth,
|
|
422
|
-
"stroke-linecap": "round"
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
431
|
+
"stroke-linecap": "round",
|
|
432
|
+
"stroke-linejoin": "round"
|
|
433
|
+
}, null, 8, St)) : h("", !0),
|
|
434
|
+
(n(!0), c(J, null, ee(v.value, (l, o) => (n(), c("g", null, [
|
|
435
|
+
M.value ? (n(), c("rect", {
|
|
426
436
|
key: 0,
|
|
427
437
|
x: l.x - l.width / 2,
|
|
428
|
-
y: isNaN(l.absoluteValue > 0 ? l.y :
|
|
438
|
+
y: isNaN(l.absoluteValue > 0 ? l.y : x.value) ? 0 : l.absoluteValue > 0 ? l.y : x.value,
|
|
429
439
|
width: l.width,
|
|
430
|
-
height: isNaN(Math.abs(l.y -
|
|
440
|
+
height: isNaN(Math.abs(l.y - x.value)) ? 0 : Math.abs(l.y - x.value),
|
|
431
441
|
fill: l.absoluteValue > 0 ? `url(#sparkline_bar_gradient_pos_${g.value})` : `url(#sparkline_bar_gradient_neg_${g.value})`,
|
|
432
442
|
rx: e.value.style.bar.borderRadius
|
|
433
|
-
}, null, 8,
|
|
434
|
-
e.value.style.verticalIndicator.show && (
|
|
443
|
+
}, null, 8, zt)) : h("", !0),
|
|
444
|
+
e.value.style.verticalIndicator.show && (d.value && l.id === d.value.id || L.selectedIndex === o) ? (n(), c("line", {
|
|
435
445
|
key: 1,
|
|
436
446
|
x1: l.x,
|
|
437
447
|
x2: l.x,
|
|
@@ -441,21 +451,21 @@ const we = { style: { backgroundColor: "#1A1A1A", zeroLine: { color: "#5A5A5A" }
|
|
|
441
451
|
"stroke-width": e.value.style.verticalIndicator.strokeWidth,
|
|
442
452
|
"stroke-linecap": "round",
|
|
443
453
|
"stroke-dasharray": e.value.style.verticalIndicator.strokeDasharray || 0
|
|
444
|
-
}, null, 8,
|
|
454
|
+
}, null, 8, Bt)) : h("", !0)
|
|
445
455
|
]))), 256)),
|
|
446
456
|
q.value < 0 ? (n(), c("line", {
|
|
447
457
|
key: 4,
|
|
448
458
|
x1: i.value.start,
|
|
449
459
|
x2: i.value.start + i.value.width,
|
|
450
|
-
y1: u(
|
|
451
|
-
y2: u(
|
|
460
|
+
y1: u(_e)(x.value, i.value.bottom),
|
|
461
|
+
y2: u(_e)(x.value, i.value.bottom),
|
|
452
462
|
stroke: e.value.style.zeroLine.color,
|
|
453
463
|
"stroke-dasharray": e.value.style.zeroLine.strokeWidth * 2,
|
|
454
464
|
"stroke-width": e.value.style.zeroLine.strokeWidth,
|
|
455
465
|
"stroke-linecap": "round"
|
|
456
|
-
}, null, 8,
|
|
457
|
-
e.value.style.plot.show ? (n(!0), c(J, { key: 5 }, ee(
|
|
458
|
-
|
|
466
|
+
}, null, 8, Et)) : h("", !0),
|
|
467
|
+
e.value.style.plot.show ? (n(!0), c(J, { key: 5 }, ee(v.value, (l, o) => (n(), c("g", null, [
|
|
468
|
+
d.value && l.id === d.value.id || L.selectedIndex === o || u($).length === 1 ? (n(), c("circle", {
|
|
459
469
|
key: 0,
|
|
460
470
|
cx: l.x,
|
|
461
471
|
cy: l.y,
|
|
@@ -463,7 +473,7 @@ const we = { style: { backgroundColor: "#1A1A1A", zeroLine: { color: "#5A5A5A" }
|
|
|
463
473
|
fill: l.color,
|
|
464
474
|
stroke: e.value.style.plot.stroke,
|
|
465
475
|
"stroke-width": e.value.style.plot.strokeWidth
|
|
466
|
-
}, null, 8,
|
|
476
|
+
}, null, 8, Vt)) : h("", !0)
|
|
467
477
|
]))), 256)) : h("", !0),
|
|
468
478
|
L.showInfo && e.value.style.dataLabel.show ? (n(), c("text", {
|
|
469
479
|
key: 6,
|
|
@@ -472,32 +482,32 @@ const we = { style: { backgroundColor: "#1A1A1A", zeroLine: { color: "#5A5A5A" }
|
|
|
472
482
|
"font-size": e.value.style.dataLabel.fontSize,
|
|
473
483
|
"font-weight": e.value.style.dataLabel.bold ? "bold" : "normal",
|
|
474
484
|
fill: e.value.style.dataLabel.color
|
|
475
|
-
}, B(
|
|
485
|
+
}, B(d.value ? u(ae)(
|
|
476
486
|
e.value.style.dataLabel.formatter,
|
|
477
|
-
|
|
478
|
-
u(le)({ p: e.value.style.dataLabel.prefix, v:
|
|
479
|
-
{ datapoint:
|
|
487
|
+
d.value.absoluteValue,
|
|
488
|
+
u(le)({ p: e.value.style.dataLabel.prefix, v: d.value.absoluteValue, s: e.value.style.dataLabel.suffix, r: e.value.style.dataLabel.roundingValue }),
|
|
489
|
+
{ datapoint: d.value }
|
|
480
490
|
) : u(ae)(
|
|
481
491
|
e.value.style.dataLabel.formatter,
|
|
482
492
|
ce.value,
|
|
483
493
|
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,
|
|
485
|
-
(n(!0), c(J, null, ee(
|
|
486
|
-
x: l.x - (i.value.width / (
|
|
494
|
+
)), 9, Tt)) : h("", !0),
|
|
495
|
+
(n(!0), c(J, null, ee(v.value, (l, o) => (n(), c("rect", {
|
|
496
|
+
x: l.x - (i.value.width / (_.value + 1) > r.value.padding ? r.value.padding : i.value.width / (_.value + 1)) / 2,
|
|
487
497
|
y: i.value.top - 6,
|
|
488
498
|
height: i.value.height + 6,
|
|
489
|
-
width: i.value.width / (
|
|
499
|
+
width: i.value.width / (_.value + 1) > r.value.padding ? r.value.padding : i.value.width / (_.value + 1),
|
|
490
500
|
fill: "transparent",
|
|
491
|
-
onMouseenter: () =>
|
|
492
|
-
onMouseleave: () =>
|
|
493
|
-
onClick: () =>
|
|
494
|
-
}, null, 40,
|
|
495
|
-
|
|
496
|
-
], 44,
|
|
497
|
-
|
|
501
|
+
onMouseenter: () => Ge(l, o),
|
|
502
|
+
onMouseleave: () => Ue(l, o),
|
|
503
|
+
onClick: () => Xe(l, o)
|
|
504
|
+
}, null, 40, Rt))), 256)),
|
|
505
|
+
D(t.$slots, "svg", { svg: r.value }, void 0, !0)
|
|
506
|
+
], 44, bt)),
|
|
507
|
+
d.value && e.value.style.tooltip.show ? (n(), ge(u(Ee), {
|
|
498
508
|
key: 1,
|
|
499
|
-
x:
|
|
500
|
-
y:
|
|
509
|
+
x: d.value.x,
|
|
510
|
+
y: d.value.y,
|
|
501
511
|
prevX: w.value.x,
|
|
502
512
|
prevY: w.value.y,
|
|
503
513
|
offsetY: e.value.style.plot.radius * 3 + e.value.style.tooltip.offsetY,
|
|
@@ -510,18 +520,18 @@ const we = { style: { backgroundColor: "#1A1A1A", zeroLine: { color: "#5A5A5A" }
|
|
|
510
520
|
borderRadius: e.value.style.tooltip.borderRadius,
|
|
511
521
|
backgroundOpacity: e.value.style.tooltip.backgroundOpacity
|
|
512
522
|
}, {
|
|
513
|
-
default:
|
|
514
|
-
|
|
515
|
-
|
|
523
|
+
default: He(() => [
|
|
524
|
+
D(t.$slots, "tooltip", be(me({ ...d.value })), () => [
|
|
525
|
+
Qe(B(d.value.period) + ": " + B(u(ae)(
|
|
516
526
|
e.value.style.dataLabel.formatter,
|
|
517
|
-
|
|
527
|
+
d.value.absoluteValue,
|
|
518
528
|
u(le)({
|
|
519
529
|
p: e.value.style.dataLabel.prefix,
|
|
520
|
-
v:
|
|
530
|
+
v: d.value.absoluteValue,
|
|
521
531
|
s: e.value.style.dataLabel.suffix,
|
|
522
532
|
r: e.value.style.dataLabel.roundingValue
|
|
523
533
|
}),
|
|
524
|
-
{ datapoint:
|
|
534
|
+
{ datapoint: d.value }
|
|
525
535
|
)), 1)
|
|
526
536
|
], !0)
|
|
527
537
|
]),
|
|
@@ -533,17 +543,17 @@ const we = { style: { backgroundColor: "#1A1A1A", zeroLine: { color: "#5A5A5A" }
|
|
|
533
543
|
ref: se,
|
|
534
544
|
dir: "auto"
|
|
535
545
|
}, [
|
|
536
|
-
|
|
546
|
+
D(t.$slots, "source", {}, void 0, !0)
|
|
537
547
|
], 512)) : h("", !0),
|
|
538
|
-
u(R) ? (n(), ge(
|
|
539
|
-
], 12,
|
|
548
|
+
u(R) ? (n(), ge(ct, { key: 3 })) : h("", !0)
|
|
549
|
+
], 12, gt));
|
|
540
550
|
}
|
|
541
|
-
},
|
|
551
|
+
}, Pt = /* @__PURE__ */ pt(Ot, [["__scopeId", "data-v-a90be8f4"]]), Qt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
542
552
|
__proto__: null,
|
|
543
|
-
default:
|
|
553
|
+
default: Pt
|
|
544
554
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
545
555
|
export {
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
556
|
+
Ht as a,
|
|
557
|
+
Qt as b,
|
|
558
|
+
Pt as v
|
|
549
559
|
};
|