vue-data-ui 3.22.7 → 3.22.9
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-DaGI9u-b.js → Arrow-DdymhUfY.js} +1 -1
- package/dist/{BaseDraggableDialog-1wwwdwV2.js → BaseDraggableDialog-Av7Uxq5V.js} +2 -2
- package/dist/BaseIcon-UdRAvP2h.js +483 -0
- package/dist/{BaseLegendToggle-CHnlKalt.js → BaseLegendToggle-DWtet-Hh.js} +1 -1
- package/dist/{BaseZoomControls-C9bdZSCj.js → BaseZoomControls-BY2KLqs6.js} +2 -2
- package/dist/{ColorPicker-TB3KhY3j.js → ColorPicker-DR_ummtM.js} +2 -2
- package/dist/{DataTable-CVF7DoZn.js → DataTable-BxpTMgfK.js} +2 -2
- package/dist/DefGrad-DVBqDjhO.js +48 -0
- package/dist/{Legend-kAr7Vqqu.js → Legend-ROt6ugzW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CEiv7_gM.js → NonSvgPenAndPaper-B6EG_Sga.js} +3 -3
- package/dist/{PackageVersion-Dse0n05o.js → PackageVersion-D__dRVRA.js} +1 -1
- package/dist/{PenAndPaper-gaV1QPpP.js → PenAndPaper-DsXi7GJ-.js} +3 -3
- package/dist/{Shape-CiQIxyyT.js → Shape-UpH0a4Ur.js} +3 -3
- package/dist/{Slicer-6FOtg9py.js → Slicer-CW_XPIKL.js} +369 -364
- package/dist/{SlicerPreview-DUywypFu.js → SlicerPreview-CTz41lOu.js} +542 -537
- package/dist/{SparkTooltip-B-qsPj68.js → SparkTooltip-BTLN-Kex.js} +6 -6
- package/dist/{Title-PiTKr6sp.js → Title-CcNiYzEo.js} +1 -1
- package/dist/{Tooltip-B8yYfISA.js → Tooltip-CxOrWlFy.js} +1 -1
- package/dist/{UserOptions-BL9VlHop.js → UserOptions-trvJ26nz.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-BZjYWNEg.js → dom-to-png-BbwhsRIr.js} +1 -1
- package/dist/exposedLib-VXFp3Z2c.js +19 -0
- package/dist/{geoProjections-Czak6Jn1.js → geoProjections-BbN7z57k.js} +172 -15
- package/dist/{img-B_abIg0o.js → img-DnP3eXuv.js} +1 -1
- package/dist/{labelUtils-CTDRZdP1.js → labelUtils-DBEh078l.js} +1 -1
- package/dist/{lib-EAmk-PgA.js → lib-JqW18y5I.js} +36 -30
- package/dist/{package-DeMimPej.js → package-ByOT60IK.js} +1 -1
- package/dist/{pdf-B6qrdEqB.js → pdf-hj3gzrE7.js} +1 -1
- package/dist/{render-common-DMai0gHB.js → render-common-D18VrP0h.js} +20 -20
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/utils.d.ts +18 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-CyOGrdD_.js → useAutoSizeLabelsInsideViewbox-BGnDfZdg.js} +1 -1
- package/dist/{useNestedProp-D8XqxgOU.js → useNestedProp-DIuuzG1r.js} +1 -1
- package/dist/{usePrinter-DnGzpp6Q.js → usePrinter-CqqHmnBI.js} +2 -2
- package/dist/utils.js +24 -24
- package/dist/{vue-data-ui-D6qVWloL.js → vue-data-ui-ub3fCh6P.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/vue-ui-3d-bar-taPI41_I.js +1825 -0
- package/dist/{vue-ui-accordion-Dzz8XhX3.js → vue-ui-accordion-CjAGqEJg.js} +3 -3
- package/dist/vue-ui-age-pyramid-jvQZbF8E.js +1247 -0
- package/dist/{vue-ui-annotator-DXZumSP8.js → vue-ui-annotator-BIucnT0L.js} +67 -67
- package/dist/vue-ui-bullet-CIATzlsk.js +710 -0
- package/dist/vue-ui-bump-D8MxltQE.js +1249 -0
- package/dist/vue-ui-candlestick-DULUMU-Q.js +1840 -0
- package/dist/vue-ui-carousel-table-BSmdexG7.js +455 -0
- package/dist/{vue-ui-chestnut-C3IbAdkQ.js → vue-ui-chestnut-BIh1nQ7q.js} +585 -553
- package/dist/vue-ui-chord-DL1M7cgL.js +1391 -0
- package/dist/{vue-ui-circle-pack-Cq4lkmee.js → vue-ui-circle-pack-C1Pgq6si.js} +424 -418
- package/dist/{vue-ui-cursor-DLJcFwRZ.js → vue-ui-cursor-d2uLAKTQ.js} +61 -61
- package/dist/{vue-ui-dag-DemsIecS.js → vue-ui-dag-CVh9FpZr.js} +43 -43
- package/dist/{vue-ui-dashboard-DWHD_wNN.js → vue-ui-dashboard-BH0N3ebj.js} +69 -69
- package/dist/{vue-ui-digits-sIKc85vS.js → vue-ui-digits-R6wi3J-Y.js} +3 -3
- package/dist/{vue-ui-donut-Dp6GW0dw.js → vue-ui-donut-BWDeVzLc.js} +201 -201
- package/dist/{vue-ui-donut-CLheJPcO.js → vue-ui-donut-BoZdciGh.js} +825 -816
- package/dist/{vue-ui-donut-evolution-zmRPpJLj.js → vue-ui-donut-evolution-CpC9EMro.js} +486 -474
- package/dist/{vue-ui-dumbbell-bSbgHd0U.js → vue-ui-dumbbell-DGA5Bfnl.js} +520 -486
- package/dist/{vue-ui-flow-q_M7O1BK.js → vue-ui-flow-CNczKwTh.js} +119 -119
- package/dist/vue-ui-funnel-CaD2tZCT.js +782 -0
- package/dist/{vue-ui-galaxy-DCCWmIyH.js → vue-ui-galaxy-v3cTbUiM.js} +342 -342
- package/dist/vue-ui-gauge-DxvMjfoc.js +926 -0
- package/dist/{vue-ui-geo-CM59rpnj.js → vue-ui-geo-BgmLkZZ2.js} +14 -14
- package/dist/{vue-ui-gizmo-D2RL6IVp.js → vue-ui-gizmo-n1kmcGeE.js} +66 -61
- package/dist/{vue-ui-heatmap-BX6PQxML.js → vue-ui-heatmap-dSTh8ah_.js} +163 -163
- package/dist/{vue-ui-history-plot-DaHAeQph.js → vue-ui-history-plot-N8BqMFVU.js} +572 -561
- package/dist/vue-ui-horizontal-bar-CwiQxYzv.js +1689 -0
- package/dist/{vue-ui-kpi-DLbP7lJR.js → vue-ui-kpi-BKrUk9o8.js} +4 -4
- package/dist/{vue-ui-mini-loader-DPHzHsM7.js → vue-ui-mini-loader-D5we7V_W.js} +2 -2
- package/dist/vue-ui-molecule--kK1JfnP.js +931 -0
- package/dist/{vue-ui-mood-radar-CCWaPr0P.js → vue-ui-mood-radar-CpBRHQo_.js} +246 -241
- package/dist/vue-ui-nested-donuts-8Ehwcuns.js +1493 -0
- package/dist/vue-ui-onion-Cf6JiYTH.js +1200 -0
- package/dist/vue-ui-parallel-coordinate-plot-Blnqp1DB.js +1416 -0
- package/dist/{vue-ui-quadrant-T_UmRAAy.js → vue-ui-quadrant-CxU0jiOm.js} +410 -404
- package/dist/vue-ui-quick-chart-BO98uEPl.js +2469 -0
- package/dist/{vue-ui-radar-CHjeGOMC.js → vue-ui-radar-eH2Qih4_.js} +323 -317
- package/dist/{vue-ui-rating-Bek8Tgr-.js → vue-ui-rating-CN-ZiAES.js} +137 -128
- package/dist/{vue-ui-relation-circle-DRZGQ_UX.js → vue-ui-relation-circle-BIcP-aAt.js} +167 -167
- package/dist/{vue-ui-ridgeline-DIODGiu8.js → vue-ui-ridgeline-ChXHzEJw.js} +538 -532
- package/dist/vue-ui-rings-J990vNbX.js +1252 -0
- package/dist/vue-ui-scatter-BeJB0EKg.js +2422 -0
- package/dist/{vue-ui-skeleton-Fmue6DAG.js → vue-ui-skeleton-DC2bZ0nk.js} +385 -382
- package/dist/{vue-ui-smiley-BVMI5vUy.js → vue-ui-smiley-Dyyu1je3.js} +119 -106
- package/dist/vue-ui-spark-trend-CpDX85H3.js +443 -0
- package/dist/vue-ui-sparkbar-DhIo1qsW.js +398 -0
- package/dist/{vue-ui-sparkgauge-DDNNBIdf.js → vue-ui-sparkgauge-D0Fo3Hts.js} +79 -74
- package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +576 -0
- package/dist/{vue-ui-sparkline-BNxdO-Bx.js → vue-ui-sparkline-ApivEMBP.js} +397 -384
- package/dist/{vue-ui-sparkstackbar-BfF5-Wg2.js → vue-ui-sparkstackbar-DsKQJx_n.js} +207 -195
- package/dist/{vue-ui-stackbar-B-2Me3d-.js → vue-ui-stackbar-Ds4hXATH.js} +595 -588
- package/dist/vue-ui-stackline-DJbcVvmN.js +2425 -0
- package/dist/vue-ui-strip-plot-C3ZHf4bD.js +1736 -0
- package/dist/{vue-ui-table-heatmap-D-Qrm3oX.js → vue-ui-table-heatmap-CNXNXXBU.js} +14 -14
- package/dist/vue-ui-table-sparkline-B9JJ4pFF.js +712 -0
- package/dist/{vue-ui-table-Dr1dK3d_.js → vue-ui-table-uudidrYt.js} +62 -62
- package/dist/vue-ui-thermometer-Bvw3oQb3.js +770 -0
- package/dist/{vue-ui-timer-B5bkNNHS.js → vue-ui-timer-5NAWw5BN.js} +94 -89
- package/dist/{vue-ui-tiremarks-Bn8b-ZSz.js → vue-ui-tiremarks-Caz_g1c5.js} +13 -13
- package/dist/vue-ui-treemap-F9upPyOI.js +1718 -0
- package/dist/vue-ui-waffle-Bk9AsrPp.js +1368 -0
- package/dist/{vue-ui-wheel-CeVwXtEX.js → vue-ui-wheel-DD6Q39BA.js} +130 -130
- package/dist/{vue-ui-word-cloud-D81-qJLw.js → vue-ui-word-cloud-BZLT5svo.js} +27 -27
- package/dist/vue-ui-world-DbEJN5NA.js +3027 -0
- package/dist/{vue-ui-xy-C2p9H2IX.js → vue-ui-xy-BYMAITk_.js} +1655 -1629
- package/dist/{vue-ui-xy-OhwS0kcZ.js → vue-ui-xy-Cn9Q8YPr.js} +116 -116
- package/dist/{vue-ui-xy-canvas-DLKDdH35.js → vue-ui-xy-canvas-Dcm2ftwm.js} +58 -58
- package/package.json +1 -1
- package/dist/BaseIcon-_-BX7be3.js +0 -502
- package/dist/exposedLib-Be0ifkti.js +0 -19
- package/dist/vue-ui-3d-bar-CjNuWXoA.js +0 -1757
- package/dist/vue-ui-age-pyramid-CC7Dxli-.js +0 -1238
- package/dist/vue-ui-bullet-Dde6FhbR.js +0 -710
- package/dist/vue-ui-bump-C5pni1JV.js +0 -1249
- package/dist/vue-ui-candlestick-Ctw65O4_.js +0 -1829
- package/dist/vue-ui-carousel-table-BEUvhUH0.js +0 -455
- package/dist/vue-ui-chord-5eCWG4br.js +0 -1391
- package/dist/vue-ui-funnel-BEZUEuuh.js +0 -777
- package/dist/vue-ui-gauge-B1ljgfE1.js +0 -920
- package/dist/vue-ui-horizontal-bar-CTW6l4n3.js +0 -1683
- package/dist/vue-ui-molecule-aD0SMTiX.js +0 -925
- package/dist/vue-ui-nested-donuts--BCPWkl7.js +0 -1487
- package/dist/vue-ui-onion-s4iMCGAP.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-CfgvpyoC.js +0 -1416
- package/dist/vue-ui-quick-chart-D1OWBgQJ.js +0 -2469
- package/dist/vue-ui-rings-CcdUSXGG.js +0 -1246
- package/dist/vue-ui-scatter-CixnqLoi.js +0 -2413
- package/dist/vue-ui-spark-trend-DfZeLiWA.js +0 -438
- package/dist/vue-ui-sparkbar-Cl1e49sw.js +0 -393
- package/dist/vue-ui-sparkhistogram-ny_liYa6.js +0 -560
- package/dist/vue-ui-stackline-CdvVPQUM.js +0 -2419
- package/dist/vue-ui-strip-plot-CRXPXA5V.js +0 -1729
- package/dist/vue-ui-table-sparkline-C31Q32My.js +0 -712
- package/dist/vue-ui-thermometer-BUrtIfuo.js +0 -763
- package/dist/vue-ui-treemap-LMWiicop.js +0 -1713
- package/dist/vue-ui-waffle-B_L3gkky.js +0 -1362
- package/dist/vue-ui-world-B7npRmTa.js +0 -14264
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { n as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { c as
|
|
10
|
-
import { t as
|
|
2
|
+
import { $ as t, B as n, D as r, F as i, G as a, J as o, Kt as s, Lt as c, M as l, O as u, P as d, Rt as f, Tt as p, V as ee, b as te, dt as ne, f as re, i as ie, it as ae, j as oe, kt as se, l as ce, nt as le, t as ue, vt as de, z as fe, zt as m } from "./lib-JqW18y5I.js";
|
|
3
|
+
import { t as pe } from "./useTimeLabels-BmBRv27Y.js";
|
|
4
|
+
import { t as me } from "./useConfig-DYM3f6EI.js";
|
|
5
|
+
import { n as h, t as he } from "./BaseScanner-DZvpgOjM.js";
|
|
6
|
+
import { t as ge } from "./useNestedProp-DIuuzG1r.js";
|
|
7
|
+
import { t as _e } from "./useThemeCheck-C43Tcqmk.js";
|
|
8
|
+
import { t as ve } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
9
|
+
import { c as ye } from "./canvas-lib-BOP_HS11.js";
|
|
10
|
+
import { t as be } from "./useResponsive-BfnK0KxU.js";
|
|
11
|
+
import { t as xe } from "./DefGrad-DVBqDjhO.js";
|
|
11
12
|
import { t as Se } from "./A11yDataTable-DdRsVULz.js";
|
|
12
13
|
import { t as Ce } from "./useChartAccessibility-DYqac8yF.js";
|
|
13
14
|
import { t as we } from "./usePrefersMotion-BC-CsqR1.js";
|
|
14
15
|
import { t as Te } from "./vue_ui_sparkline-auZhap6Y.js";
|
|
15
|
-
import { Fragment as
|
|
16
|
+
import { Fragment as g, computed as _, createBlock as Ee, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createTextVNode as De, createVNode as Oe, defineAsyncComponent as ke, guardReactiveProps as Ae, nextTick as x, normalizeProps as je, normalizeStyle as S, onBeforeUnmount as Me, onMounted as Ne, openBlock as C, ref as w, renderList as T, renderSlot as Pe, shallowRef as Fe, toDisplayString as Ie, toRefs as Le, unref as E, watch as D, watchEffect as Re, withCtx as ze } from "vue";
|
|
16
17
|
//#region src/atoms/SparklinePulse.vue
|
|
17
|
-
var
|
|
18
|
+
var Be = {
|
|
18
19
|
key: 0,
|
|
19
20
|
style: { "pointer-events": "none" }
|
|
20
|
-
},
|
|
21
|
+
}, Ve = [
|
|
21
22
|
"r",
|
|
22
23
|
"fill",
|
|
23
24
|
"filter"
|
|
24
|
-
],
|
|
25
|
+
], He = [
|
|
25
26
|
"begin",
|
|
26
27
|
"dur",
|
|
27
28
|
"repeatCount",
|
|
@@ -30,12 +31,12 @@ var ze = {
|
|
|
30
31
|
"keySplines",
|
|
31
32
|
"keyTimes",
|
|
32
33
|
"keyPoints"
|
|
33
|
-
],
|
|
34
|
+
], Ue = ["href"], We = [
|
|
34
35
|
"dur",
|
|
35
36
|
"repeatCount",
|
|
36
37
|
"fill",
|
|
37
38
|
"values"
|
|
38
|
-
],
|
|
39
|
+
], Ge = ["r", "fill"], O = [
|
|
39
40
|
"begin",
|
|
40
41
|
"dur",
|
|
41
42
|
"repeatCount",
|
|
@@ -43,7 +44,7 @@ var ze = {
|
|
|
43
44
|
"keySplines",
|
|
44
45
|
"keyTimes",
|
|
45
46
|
"keyPoints"
|
|
46
|
-
],
|
|
47
|
+
], Ke = ["href"], k = ["dur", "repeatCount"], qe = {
|
|
47
48
|
__name: "SparklinePulse",
|
|
48
49
|
props: {
|
|
49
50
|
uid: {
|
|
@@ -112,7 +113,7 @@ var ze = {
|
|
|
112
113
|
}
|
|
113
114
|
},
|
|
114
115
|
setup(e) {
|
|
115
|
-
let t = e, n =
|
|
116
|
+
let t = e, n = _(() => Math.min(t.pulseTrailLength, 45)), r = _(() => !!t.pulse?.show && !t.isBar && !t.prefersReducedMotion && !t.loading && Number(t.pulsePathLength) > 0);
|
|
116
117
|
function i() {
|
|
117
118
|
let e = t.svgRef?.value;
|
|
118
119
|
e && (typeof e.pauseAnimations == "function" && e.pauseAnimations(), typeof e.setCurrentTime == "function" && e.setCurrentTime(0), typeof e.unpauseAnimations == "function" && e.unpauseAnimations());
|
|
@@ -136,18 +137,18 @@ var ze = {
|
|
|
136
137
|
i();
|
|
137
138
|
return;
|
|
138
139
|
}
|
|
139
|
-
await
|
|
140
|
+
await x(), i();
|
|
140
141
|
}), D(() => t.pulsePathId, async () => {
|
|
141
|
-
await
|
|
142
|
+
await x(), i();
|
|
142
143
|
}), Me(() => {
|
|
143
144
|
i();
|
|
144
|
-
}), (t, i) => r.value ? (
|
|
145
|
+
}), (t, i) => r.value ? (C(), y("g", Be, [(C(!0), y(g, null, T(n.value, (t, n) => (C(), y(g, null, [n % 3 == 0 ? (C(), y("circle", {
|
|
145
146
|
key: `sparkline_dot_${n}_${e.pulsePathId}`,
|
|
146
147
|
r: o(n),
|
|
147
148
|
fill: e.pulse.color,
|
|
148
149
|
filter: `url(#sparkline_pulse_glow_${e.uid})`,
|
|
149
150
|
opacity: "0"
|
|
150
|
-
}, [
|
|
151
|
+
}, [b("animateMotion", {
|
|
151
152
|
begin: a(e.pulseBegin, n * 10),
|
|
152
153
|
dur: e.pulseDur,
|
|
153
154
|
repeatCount: e.pulseRepeatCount,
|
|
@@ -157,19 +158,19 @@ var ze = {
|
|
|
157
158
|
keyTimes: e.pulseMotion.keyTimes || void 0,
|
|
158
159
|
keyPoints: e.pulseKeyPoints,
|
|
159
160
|
rotate: "auto"
|
|
160
|
-
}, [
|
|
161
|
+
}, [b("mpath", { href: `#${e.pulsePathId}` }, null, 8, Ue)], 8, He), b("animate", {
|
|
161
162
|
attributeName: "opacity",
|
|
162
163
|
dur: e.pulseDur,
|
|
163
164
|
repeatCount: e.pulseRepeatCount,
|
|
164
165
|
fill: e.pulseFillMode,
|
|
165
166
|
values: s(n),
|
|
166
167
|
keyTimes: "0;0.1;0.9;1"
|
|
167
|
-
}, null, 8,
|
|
168
|
+
}, null, 8, We)], 8, Ve)) : v("", !0)], 64))), 256)), (C(), y("circle", {
|
|
168
169
|
key: `sparkline_halo_${e.pulsePathId}`,
|
|
169
170
|
r: Math.max(e.pulse.radius * 1.3),
|
|
170
171
|
fill: e.pulse.color,
|
|
171
172
|
opacity: "0"
|
|
172
|
-
}, [
|
|
173
|
+
}, [b("animateMotion", {
|
|
173
174
|
begin: e.pulseBegin,
|
|
174
175
|
dur: e.pulseDur,
|
|
175
176
|
repeatCount: e.pulseRepeatCount,
|
|
@@ -178,19 +179,19 @@ var ze = {
|
|
|
178
179
|
keyTimes: e.pulseMotion.keyTimes || void 0,
|
|
179
180
|
keyPoints: e.pulseKeyPoints,
|
|
180
181
|
rotate: "auto"
|
|
181
|
-
}, [
|
|
182
|
+
}, [b("mpath", { href: `#${e.pulsePathId}` }, null, 8, Ke)], 8, O), b("animate", {
|
|
182
183
|
attributeName: "opacity",
|
|
183
184
|
values: "0;0.35;0.35;0",
|
|
184
185
|
keyTimes: "0;0.15;0.85;1",
|
|
185
186
|
dur: e.pulseDur,
|
|
186
187
|
repeatCount: e.pulseRepeatCount
|
|
187
|
-
}, null, 8, k)], 8,
|
|
188
|
+
}, null, 8, k)], 8, Ge))])) : v("", !0);
|
|
188
189
|
}
|
|
189
190
|
}, A = {
|
|
190
191
|
canvas: null,
|
|
191
192
|
ctx: null
|
|
192
193
|
};
|
|
193
|
-
function
|
|
194
|
+
function Je() {
|
|
194
195
|
if (typeof document > "u") throw Error("color-utils: document is not available (browser-only).");
|
|
195
196
|
if (!A.canvas) {
|
|
196
197
|
let e = document.createElement("canvas");
|
|
@@ -201,7 +202,7 @@ function qe() {
|
|
|
201
202
|
}
|
|
202
203
|
return A.ctx;
|
|
203
204
|
}
|
|
204
|
-
function
|
|
205
|
+
function Ye(e) {
|
|
205
206
|
return e < 0 ? 0 : e > 255 ? 255 : Math.round(e);
|
|
206
207
|
}
|
|
207
208
|
function j(e) {
|
|
@@ -216,10 +217,10 @@ function M(e, t = null) {
|
|
|
216
217
|
blue: 0,
|
|
217
218
|
alpha: 0
|
|
218
219
|
};
|
|
219
|
-
let r =
|
|
220
|
+
let r = Xe(n, t), i = Je();
|
|
220
221
|
i.clearRect(0, 0, 1, 1), i.fillStyle = "#000";
|
|
221
222
|
let a = i.fillStyle;
|
|
222
|
-
if (i.fillStyle = r, i.fillStyle === a && !
|
|
223
|
+
if (i.fillStyle = r, i.fillStyle === a && !Ze(r)) throw Error(`colorToRgba: unsupported or invalid color "${e}".`);
|
|
223
224
|
i.fillRect(0, 0, 1, 1);
|
|
224
225
|
let o = i.getImageData(0, 0, 1, 1).data;
|
|
225
226
|
return {
|
|
@@ -235,10 +236,10 @@ function N(e, t = null) {
|
|
|
235
236
|
for (let r = 0; r < e.length; r += 1) n[r] = M(e[r], t);
|
|
236
237
|
return n;
|
|
237
238
|
}
|
|
238
|
-
function
|
|
239
|
+
function Xe(e, t = null) {
|
|
239
240
|
return e !== "currentColor" || typeof window > "u" || !t ? e : window.getComputedStyle(t).color || e;
|
|
240
241
|
}
|
|
241
|
-
function
|
|
242
|
+
function Ze(e) {
|
|
242
243
|
let t = e.trim().toLowerCase();
|
|
243
244
|
return t === "black" || t === "#000" || t === "#000000" || t === "rgb(0, 0, 0)" || t === "rgba(0, 0, 0, 1)" || t === "rgba(0, 0, 0, 0)";
|
|
244
245
|
}
|
|
@@ -248,9 +249,9 @@ function P(e) {
|
|
|
248
249
|
}
|
|
249
250
|
function F(e) {
|
|
250
251
|
let t = j(e), n;
|
|
251
|
-
return n = t <= .0031308 ? t * 12.92 : 1.055 * t ** (1 / 2.4) - .055,
|
|
252
|
+
return n = t <= .0031308 ? t * 12.92 : 1.055 * t ** (1 / 2.4) - .055, Ye(n * 255);
|
|
252
253
|
}
|
|
253
|
-
function
|
|
254
|
+
function Qe(e, t, n, r) {
|
|
254
255
|
let i = j(n);
|
|
255
256
|
if (r === "linearRGB") {
|
|
256
257
|
let n = P(e.red), r = P(e.green), a = P(e.blue), o = P(t.red), s = P(t.green), c = P(t.blue), l = n + (o - n) * i, u = r + (s - r) * i, d = a + (c - a) * i;
|
|
@@ -281,16 +282,16 @@ function L(e, t) {
|
|
|
281
282
|
function R(e) {
|
|
282
283
|
return Number.isFinite(e) ? e.toString() : "0";
|
|
283
284
|
}
|
|
284
|
-
function
|
|
285
|
+
function $e(e) {
|
|
285
286
|
let t = I(e, 0, 255).toString(16);
|
|
286
287
|
return t.length === 1 ? "0" + t : t;
|
|
287
288
|
}
|
|
288
|
-
function
|
|
289
|
+
function et(e) {
|
|
289
290
|
if (typeof e != "string") return;
|
|
290
291
|
let t = Number.parseFloat(e);
|
|
291
292
|
return Number.isFinite(t) ? t : void 0;
|
|
292
293
|
}
|
|
293
|
-
function
|
|
294
|
+
function tt(e, t, n, r = !0) {
|
|
294
295
|
let i = n - t;
|
|
295
296
|
if (i === 0) return 0;
|
|
296
297
|
let a = (e - t) / i;
|
|
@@ -298,35 +299,35 @@ function et(e, t, n, r = !0) {
|
|
|
298
299
|
}
|
|
299
300
|
//#endregion
|
|
300
301
|
//#region src/SPG/index.js
|
|
301
|
-
var
|
|
302
|
-
function
|
|
302
|
+
var nt = "http://www.w3.org/2000/svg";
|
|
303
|
+
function rt(e) {
|
|
303
304
|
if (typeof document > "u") throw Error("SvgPathGradientAsync: document is not available (browser-only implementation).");
|
|
304
|
-
let t = document.createElementNS(
|
|
305
|
+
let t = document.createElementNS(nt, "svg");
|
|
305
306
|
t.setAttribute("width", "0"), t.setAttribute("height", "0"), t.setAttribute("viewBox", "0 0 0 0"), t.style.position = "absolute", t.style.left = "-10000px", t.style.top = "-10000px", t.style.visibility = "hidden", t.style.pointerEvents = "none";
|
|
306
|
-
let n = document.createElementNS(
|
|
307
|
+
let n = document.createElementNS(nt, "path");
|
|
307
308
|
return e === "M " && (e = "M 0,0"), n.setAttribute("d", e), t.appendChild(n), document.body.appendChild(t), {
|
|
308
309
|
svgElement: t,
|
|
309
310
|
pathElement: n
|
|
310
311
|
};
|
|
311
312
|
}
|
|
312
|
-
function
|
|
313
|
+
function it(e) {
|
|
313
314
|
if (e) try {
|
|
314
315
|
e.svgElement?.remove?.();
|
|
315
316
|
} catch {}
|
|
316
317
|
}
|
|
317
|
-
function
|
|
318
|
+
function at(e, t, n) {
|
|
318
319
|
if (typeof n == "number" && n > 0) return n;
|
|
319
320
|
let r = t * .75;
|
|
320
321
|
r < .5 && (r = .5), r > 8 && (r = 8);
|
|
321
322
|
let i = e / 2;
|
|
322
323
|
return r > i && i > 0 && (r = i), r <= 0 && (r = 1), r;
|
|
323
324
|
}
|
|
324
|
-
function
|
|
325
|
+
function ot(e, t, n) {
|
|
325
326
|
if (typeof t == "number" && t >= 1) return Math.floor(t);
|
|
326
327
|
let r = Math.ceil(e / (typeof n == "number" && n > 0 ? n : 2));
|
|
327
328
|
return r < 1 ? 1 : r;
|
|
328
329
|
}
|
|
329
|
-
function
|
|
330
|
+
function st(e, t, n, r, i, a) {
|
|
330
331
|
let o = n - t, s = Math.ceil(o / r) + 1;
|
|
331
332
|
s < 2 && (s = 2), s > a && (s = a);
|
|
332
333
|
let c = s > 1 ? o / (s - 1) : 0, l = e.getPointAtLength(t), u = `M ${R(L(l.x, i))} ${R(L(l.y, i))}`;
|
|
@@ -336,25 +337,25 @@ function ot(e, t, n, r, i, a) {
|
|
|
336
337
|
}
|
|
337
338
|
return u;
|
|
338
339
|
}
|
|
339
|
-
function
|
|
340
|
+
function ct(e, t, n, r, i, a) {
|
|
340
341
|
let o = n - t, s = Math.ceil(o / r) + 1;
|
|
341
342
|
s < 2 && (s = 2), s > a && (s = a);
|
|
342
|
-
let c = s > 1 ? o / (s - 1) : 0, l = e.getPointAtLength(t), u = l.x, d = l.x,
|
|
343
|
+
let c = s > 1 ? o / (s - 1) : 0, l = e.getPointAtLength(t), u = l.x, d = l.x, f = l.y, p = l.y, ee = `M ${R(L(l.x, i))} ${R(L(l.y, i))}`;
|
|
343
344
|
for (let n = 1; n < s; n += 1) {
|
|
344
345
|
let r = t + n * c, a = e.getPointAtLength(r);
|
|
345
|
-
a.x < u && (u = a.x), a.x > d && (d = a.x), a.y <
|
|
346
|
+
a.x < u && (u = a.x), a.x > d && (d = a.x), a.y < f && (f = a.y), a.y > p && (p = a.y), ee += ` L ${R(L(a.x, i))} ${R(L(a.y, i))}`;
|
|
346
347
|
}
|
|
347
348
|
return {
|
|
348
|
-
pathData:
|
|
349
|
+
pathData: ee,
|
|
349
350
|
bounds: {
|
|
350
351
|
minX: u,
|
|
351
352
|
maxX: d,
|
|
352
|
-
minY:
|
|
353
|
-
maxY:
|
|
353
|
+
minY: f,
|
|
354
|
+
maxY: p
|
|
354
355
|
}
|
|
355
356
|
};
|
|
356
357
|
}
|
|
357
|
-
function
|
|
358
|
+
function lt(e) {
|
|
358
359
|
if (e.length === 1) return [{
|
|
359
360
|
position: 0,
|
|
360
361
|
rgba: e[0]
|
|
@@ -401,9 +402,9 @@ function H(e) {
|
|
|
401
402
|
}
|
|
402
403
|
function U(e) {
|
|
403
404
|
let t = I(e.alpha, 0, 1), n = I(Math.round(e.red), 0, 255), r = I(Math.round(e.green), 0, 255), i = I(Math.round(e.blue), 0, 255);
|
|
404
|
-
return t >= 1 ? `#${
|
|
405
|
+
return t >= 1 ? `#${$e(n)}${$e(r)}${$e(i)}` : `rgba(${n}, ${r}, ${i}, ${L(t, 4).toString()})`;
|
|
405
406
|
}
|
|
406
|
-
function
|
|
407
|
+
function ut(e) {
|
|
407
408
|
let t = `fill="${W(e.fill ?? "none")}"`, n = Object.keys(e);
|
|
408
409
|
for (let r = 0; r < n.length; r += 1) {
|
|
409
410
|
let i = n[r];
|
|
@@ -413,10 +414,10 @@ function lt(e) {
|
|
|
413
414
|
}
|
|
414
415
|
return t;
|
|
415
416
|
}
|
|
416
|
-
function
|
|
417
|
+
function dt(e, t, n) {
|
|
417
418
|
return `<path d="${W(e)}" stroke="${W(t)}" ${n} />`;
|
|
418
419
|
}
|
|
419
|
-
function
|
|
420
|
+
function ft(e) {
|
|
420
421
|
let t = [], n = e.segmentAttributeMap.fill ?? "none";
|
|
421
422
|
t.push(`fill="${W(n)}"`), t.push(`stroke="${W(e.stroke)}"`);
|
|
422
423
|
for (let n of Object.keys(e.segmentAttributeMap)) {
|
|
@@ -426,7 +427,7 @@ function dt(e) {
|
|
|
426
427
|
}
|
|
427
428
|
return `<path d="${W(e.pathData)}" ${t.join(" ")} />`;
|
|
428
429
|
}
|
|
429
|
-
function
|
|
430
|
+
function pt(e, t) {
|
|
430
431
|
let n = [];
|
|
431
432
|
for (let e of Object.keys(t)) n.push(`${e}="${W(t[e])}"`);
|
|
432
433
|
return `<g data-svg-path-gradient="true"${n.length ? " " + n.join(" ") : ""}>${e.join("")}</g>`;
|
|
@@ -434,7 +435,7 @@ function ft(e, t) {
|
|
|
434
435
|
function W(e) {
|
|
435
436
|
return String(e).replaceAll("&", "&").replaceAll("\"", """).replaceAll("<", "<").replaceAll(">", ">");
|
|
436
437
|
}
|
|
437
|
-
function
|
|
438
|
+
function mt(e, t = null, n = {}) {
|
|
438
439
|
return new Promise((r, i) => {
|
|
439
440
|
let a = null;
|
|
440
441
|
try {
|
|
@@ -442,76 +443,76 @@ function pt(e, t = null, n = {}) {
|
|
|
442
443
|
let i = n.temperatureMode ?? null;
|
|
443
444
|
if (i === null && (!Array.isArray(t) || t.length === 0)) throw Error("SvgPathGradientAsync: colors must be a non-empty array when temperatureMode is not enabled.");
|
|
444
445
|
if ((n.returnMode ?? "string") !== "string") throw Error("SvgPathGradientAsync: only returnMode=\"string\" is supported for the async version.");
|
|
445
|
-
let o = typeof n.decimalPlaces == "number" ? n.decimalPlaces : 3, s = typeof n.flattenTolerance == "number" && n.flattenTolerance > 0 ? n.flattenTolerance : .25, c = n.attrs ? { ...n.attrs } : {}, l = n.groupAttrs ? { ...n.groupAttrs } : {}, u =
|
|
446
|
-
a =
|
|
447
|
-
let
|
|
448
|
-
if (i === null && (!(
|
|
449
|
-
let t =
|
|
446
|
+
let o = typeof n.decimalPlaces == "number" ? n.decimalPlaces : 3, s = typeof n.flattenTolerance == "number" && n.flattenTolerance > 0 ? n.flattenTolerance : .25, c = n.attrs ? { ...n.attrs } : {}, l = n.groupAttrs ? { ...n.groupAttrs } : {}, u = et(c["stroke-width"]), d = typeof n.strokeWidth == "number" && n.strokeWidth > 0 ? n.strokeWidth : typeof u == "number" && u > 0 ? u : 1;
|
|
447
|
+
a = rt(e);
|
|
448
|
+
let f = a.pathElement, p = f.getTotalLength(), ee = i === null ? N(t, n.colorReferenceElement) : [];
|
|
449
|
+
if (i === null && (!(p > 0) || ee.length === 1)) {
|
|
450
|
+
let t = pt([ft({
|
|
450
451
|
pathData: e,
|
|
451
|
-
stroke: U(
|
|
452
|
+
stroke: U(ee[0]),
|
|
452
453
|
segmentAttributeMap: c
|
|
453
454
|
})], l);
|
|
454
|
-
|
|
455
|
+
it(a), r(t);
|
|
455
456
|
return;
|
|
456
457
|
}
|
|
457
|
-
let
|
|
458
|
+
let te = n.colorSpace ?? "linearRGB";
|
|
458
459
|
if (i !== null) {
|
|
459
460
|
let e = n.temperatureColors;
|
|
460
461
|
if (!Array.isArray(e) || e.length !== 2) throw Error("SvgPathGradientAsync: temperatureColors must be a tuple of exactly 2 colors when temperatureMode is enabled.");
|
|
461
462
|
}
|
|
462
|
-
let
|
|
463
|
-
let e =
|
|
463
|
+
let ne = i === null ? null : N(n.temperatureColors, n.colorReferenceElement), re = i === null ? (() => {
|
|
464
|
+
let e = lt(ee), t = Array(e.length);
|
|
464
465
|
for (let n = 0; n < e.length; n += 1) t[n] = {
|
|
465
466
|
position: e[n].position,
|
|
466
467
|
rgba: e[n].rgba
|
|
467
468
|
};
|
|
468
469
|
return t;
|
|
469
|
-
})() : [],
|
|
470
|
-
|
|
471
|
-
let le = typeof n.samplePointLimitPerSegment == "number" && n.samplePointLimitPerSegment > 10 ? n.samplePointLimitPerSegment : 250, ue =
|
|
470
|
+
})() : [], ie = at(p, d, n.maxSegmentLength), ae = ot(p, n.segments, ie), oe = p / ae, se = typeof n.overlap == "number" && n.overlap >= 0 ? n.overlap : d * .5, ce = oe * .45;
|
|
471
|
+
se > ce && (se = ce);
|
|
472
|
+
let le = typeof n.samplePointLimitPerSegment == "number" && n.samplePointLimitPerSegment > 10 ? n.samplePointLimitPerSegment : 250, ue = ut(c), de = [], fe = i === null ? null : [], m = i === null ? null : [], pe = 0, me = i === null ? re.length - 2 : 0, h = 0, he = () => {
|
|
472
473
|
let e = performance.now(), t = typeof n.frameBudgetMs == "number" ? n.frameBudgetMs : 8;
|
|
473
|
-
for (;
|
|
474
|
-
let e =
|
|
475
|
-
if (
|
|
476
|
-
let e =
|
|
477
|
-
fe.push(e.pathData),
|
|
474
|
+
for (; h < ae && performance.now() - e < t;) {
|
|
475
|
+
let e = h * oe, t = (h + 1) * oe, n = e, r = t;
|
|
476
|
+
if (h !== 0 && (n = e - se), h !== ae - 1 && (r = t + se), n = I(n, 0, p), r = I(r, 0, p), r > n) if (i !== null) {
|
|
477
|
+
let e = ct(f, n, r, s, o, le);
|
|
478
|
+
fe.push(e.pathData), m.push(e.bounds);
|
|
478
479
|
} else {
|
|
479
|
-
let e = (n + r) * .5 /
|
|
480
|
-
for (;
|
|
481
|
-
let t = z(
|
|
482
|
-
de.push(
|
|
480
|
+
let e = (n + r) * .5 / p;
|
|
481
|
+
for (; pe < me && e > re[pe + 1].position;) pe += 1;
|
|
482
|
+
let t = z(re, e, te, pe), i = st(f, n, r, s, o, le);
|
|
483
|
+
de.push(dt(i, t, ue));
|
|
483
484
|
}
|
|
484
|
-
|
|
485
|
+
h += 1;
|
|
485
486
|
}
|
|
486
|
-
if (
|
|
487
|
-
requestAnimationFrame(
|
|
487
|
+
if (h < ae) {
|
|
488
|
+
requestAnimationFrame(he);
|
|
488
489
|
return;
|
|
489
490
|
}
|
|
490
491
|
if (i !== null) {
|
|
491
492
|
let e = Infinity, t = -Infinity;
|
|
492
|
-
for (let n = 0; n <
|
|
493
|
-
let r =
|
|
493
|
+
for (let n = 0; n < m.length; n += 1) {
|
|
494
|
+
let r = m[n], a = i === "vertical" ? r.minY : r.minX, o = i === "vertical" ? r.maxY : r.maxX;
|
|
494
495
|
a < e && (e = a), o > t && (t = o);
|
|
495
496
|
}
|
|
496
|
-
let n =
|
|
497
|
+
let n = ne[0], r = ne[1];
|
|
497
498
|
de.length = 0;
|
|
498
|
-
for (let a = 0; a <
|
|
499
|
-
let o =
|
|
500
|
-
de.push(
|
|
499
|
+
for (let a = 0; a < m.length; a += 1) {
|
|
500
|
+
let o = m[a], s = tt(((i === "vertical" ? o.minY : o.minX) + (i === "vertical" ? o.maxY : o.maxX)) * .5, e, t, !0), c = U(i === "vertical" ? Qe(n, r, s, te) : Qe(r, n, s, te)), l = fe[a];
|
|
501
|
+
de.push(dt(l, c, ue));
|
|
501
502
|
}
|
|
502
503
|
}
|
|
503
|
-
let c =
|
|
504
|
-
|
|
504
|
+
let c = pt(de, l);
|
|
505
|
+
it(a), r(c);
|
|
505
506
|
};
|
|
506
|
-
requestAnimationFrame(
|
|
507
|
+
requestAnimationFrame(he);
|
|
507
508
|
} catch (e) {
|
|
508
|
-
|
|
509
|
+
it(a), i(e);
|
|
509
510
|
}
|
|
510
511
|
});
|
|
511
512
|
}
|
|
512
513
|
//#endregion
|
|
513
514
|
//#region src/atoms/SparklineGradientPath.vue
|
|
514
|
-
var
|
|
515
|
+
var ht = ["innerHTML"], gt = {
|
|
515
516
|
__name: "SparklineGradientPath",
|
|
516
517
|
props: {
|
|
517
518
|
svgPathData: {
|
|
@@ -540,7 +541,7 @@ var mt = ["innerHTML"], ht = {
|
|
|
540
541
|
}
|
|
541
542
|
},
|
|
542
543
|
setup(e) {
|
|
543
|
-
let t = e, n =
|
|
544
|
+
let t = e, n = w(""), r = 0;
|
|
544
545
|
return D(() => [
|
|
545
546
|
t.enabled,
|
|
546
547
|
t.svgPathData,
|
|
@@ -554,7 +555,7 @@ var mt = ["innerHTML"], ht = {
|
|
|
554
555
|
n.value = "";
|
|
555
556
|
return;
|
|
556
557
|
}
|
|
557
|
-
let a = await
|
|
558
|
+
let a = await mt(t.svgPathData, null, {
|
|
558
559
|
segments: t.segments,
|
|
559
560
|
temperatureMode: "vertical",
|
|
560
561
|
temperatureColors: [t.highColor, t.lowColor],
|
|
@@ -566,54 +567,54 @@ var mt = ["innerHTML"], ht = {
|
|
|
566
567
|
groupAttrs: { class: "vue-ui-sparkline-gradient" }
|
|
567
568
|
});
|
|
568
569
|
i === r && (n.value = a);
|
|
569
|
-
}, { immediate: !0 }), (e, t) => (
|
|
570
|
+
}, { immediate: !0 }), (e, t) => (C(), y("g", { innerHTML: n.value }, null, 8, ht));
|
|
570
571
|
}
|
|
571
|
-
},
|
|
572
|
+
}, _t = /* @__PURE__ */ e({ default: () => G }), vt = ["id"], yt = ["id"], bt = { style: { position: "relative" } }, xt = [
|
|
572
573
|
"xmlns",
|
|
573
574
|
"viewBox",
|
|
574
575
|
"aria-describedby"
|
|
575
|
-
],
|
|
576
|
+
], St = ["width", "height"], Ct = ["id"], wt = [
|
|
576
577
|
"id",
|
|
577
578
|
"y1",
|
|
578
579
|
"y2"
|
|
579
|
-
],
|
|
580
|
+
], Tt = ["stop-color", "offset"], Et = { key: 1 }, Dt = [
|
|
580
581
|
"data-cy",
|
|
581
582
|
"d",
|
|
582
583
|
"fill"
|
|
583
|
-
],
|
|
584
|
+
], Ot = [
|
|
584
585
|
"id",
|
|
585
586
|
"d",
|
|
586
587
|
"stroke-width"
|
|
587
|
-
],
|
|
588
|
+
], kt = [
|
|
588
589
|
"d",
|
|
589
590
|
"stroke",
|
|
590
591
|
"stroke-width",
|
|
591
592
|
"stroke-dasharray"
|
|
592
|
-
],
|
|
593
|
+
], At = [
|
|
593
594
|
"d",
|
|
594
595
|
"stroke",
|
|
595
596
|
"stroke-width"
|
|
596
|
-
],
|
|
597
|
+
], jt = [
|
|
597
598
|
"id",
|
|
598
599
|
"d",
|
|
599
600
|
"stroke-width"
|
|
600
|
-
],
|
|
601
|
+
], Mt = [
|
|
601
602
|
"d",
|
|
602
603
|
"stroke",
|
|
603
604
|
"stroke-width",
|
|
604
605
|
"stroke-dasharray"
|
|
605
|
-
],
|
|
606
|
+
], Nt = [
|
|
606
607
|
"d",
|
|
607
608
|
"stroke",
|
|
608
609
|
"stroke-width"
|
|
609
|
-
],
|
|
610
|
+
], Pt = [
|
|
610
611
|
"x",
|
|
611
612
|
"y",
|
|
612
613
|
"width",
|
|
613
614
|
"height",
|
|
614
615
|
"fill",
|
|
615
616
|
"rx"
|
|
616
|
-
],
|
|
617
|
+
], Ft = [
|
|
617
618
|
"x1",
|
|
618
619
|
"x2",
|
|
619
620
|
"y1",
|
|
@@ -621,7 +622,7 @@ var mt = ["innerHTML"], ht = {
|
|
|
621
622
|
"stroke",
|
|
622
623
|
"stroke-width",
|
|
623
624
|
"stroke-dasharray"
|
|
624
|
-
],
|
|
625
|
+
], It = [
|
|
625
626
|
"x1",
|
|
626
627
|
"x2",
|
|
627
628
|
"y1",
|
|
@@ -629,20 +630,20 @@ var mt = ["innerHTML"], ht = {
|
|
|
629
630
|
"stroke",
|
|
630
631
|
"stroke-dasharray",
|
|
631
632
|
"stroke-width"
|
|
632
|
-
],
|
|
633
|
+
], Lt = [
|
|
633
634
|
"cx",
|
|
634
635
|
"cy",
|
|
635
636
|
"r",
|
|
636
637
|
"fill",
|
|
637
638
|
"stroke",
|
|
638
639
|
"stroke-width"
|
|
639
|
-
],
|
|
640
|
+
], Rt = [
|
|
640
641
|
"x",
|
|
641
642
|
"y",
|
|
642
643
|
"font-size",
|
|
643
644
|
"font-weight",
|
|
644
645
|
"fill"
|
|
645
|
-
],
|
|
646
|
+
], zt = [
|
|
646
647
|
"x",
|
|
647
648
|
"y",
|
|
648
649
|
"height",
|
|
@@ -650,7 +651,7 @@ var mt = ["innerHTML"], ht = {
|
|
|
650
651
|
"onMouseenter",
|
|
651
652
|
"onMouseleave",
|
|
652
653
|
"onClick"
|
|
653
|
-
],
|
|
654
|
+
], Bt = {
|
|
654
655
|
key: 0,
|
|
655
656
|
style: {
|
|
656
657
|
position: "absolute",
|
|
@@ -660,7 +661,7 @@ var mt = ["innerHTML"], ht = {
|
|
|
660
661
|
},
|
|
661
662
|
"data-dom-to-png-ignore": "",
|
|
662
663
|
"aria-hidden": "true"
|
|
663
|
-
}, G = /*#__PURE__*/
|
|
664
|
+
}, G = /*#__PURE__*/ ve({
|
|
664
665
|
__name: "vue-ui-sparkline",
|
|
665
666
|
props: {
|
|
666
667
|
config: {
|
|
@@ -693,18 +694,18 @@ var mt = ["innerHTML"], ht = {
|
|
|
693
694
|
}
|
|
694
695
|
},
|
|
695
696
|
emits: ["hoverIndex", "selectDatapoint"],
|
|
696
|
-
setup(e, { emit:
|
|
697
|
-
let
|
|
698
|
-
function
|
|
697
|
+
setup(e, { emit: ve }) {
|
|
698
|
+
let Be = ke(() => import("./PackageVersion-D__dRVRA.js").then((e) => e.t)), Ve = ke(() => import("./SparkTooltip-BTLN-Kex.js")), { vue_ui_sparkline: He } = me(), { isThemeValid: Ue, warnInvalidTheme: We } = _e(), Ge = we(), O = e, Ke = _(() => Array.isArray(O.dataset) && O.dataset.length > 0), k = w(a()), A = w(null), Je = w(null), Ye = w(null), j = w(null), M = w(null), N = w(L());
|
|
699
|
+
function Xe(e) {
|
|
699
700
|
return O.config?.skeletonDataset && Array.isArray(O.config.skeletonDataset) ? O.config.skeletonDataset.map((e) => ({
|
|
700
701
|
period: "-",
|
|
701
702
|
value: e
|
|
702
|
-
})) :
|
|
703
|
+
})) : le(e).map((e) => ({
|
|
703
704
|
period: "-",
|
|
704
705
|
value: e
|
|
705
706
|
}));
|
|
706
707
|
}
|
|
707
|
-
let
|
|
708
|
+
let Ze = _(() => s({
|
|
708
709
|
defaultConfig: {
|
|
709
710
|
gradientPath: { show: !1 },
|
|
710
711
|
temperatureColors: { show: !1 },
|
|
@@ -726,33 +727,33 @@ var mt = ["innerHTML"], ht = {
|
|
|
726
727
|
}
|
|
727
728
|
},
|
|
728
729
|
userConfig: N.value.skeletonConfig ?? {}
|
|
729
|
-
})), { loading: P, FINAL_DATASET: F, manualLoading:
|
|
730
|
-
...
|
|
730
|
+
})), { loading: P, FINAL_DATASET: F, manualLoading: Qe } = h({
|
|
731
|
+
...Le(O),
|
|
731
732
|
FINAL_CONFIG: N,
|
|
732
733
|
prepareConfig: L,
|
|
733
734
|
callback: () => {
|
|
734
735
|
Promise.resolve().then(async () => {
|
|
735
|
-
await
|
|
736
|
+
await x(), ht();
|
|
736
737
|
});
|
|
737
738
|
},
|
|
738
|
-
skeletonDataset:
|
|
739
|
-
skeletonConfig:
|
|
739
|
+
skeletonDataset: Xe(12),
|
|
740
|
+
skeletonConfig: s({
|
|
740
741
|
defaultConfig: N.value,
|
|
741
|
-
userConfig:
|
|
742
|
+
userConfig: Ze.value
|
|
742
743
|
})
|
|
743
744
|
}), { svgRef: I } = Ce({ config: N.value.style.title });
|
|
744
745
|
function L() {
|
|
745
|
-
let e =
|
|
746
|
+
let e = ge({
|
|
746
747
|
userConfig: O.config,
|
|
747
|
-
defaultConfig:
|
|
748
|
+
defaultConfig: He
|
|
748
749
|
}), t = {}, n = e.theme;
|
|
749
|
-
if (n) if (!
|
|
750
|
+
if (n) if (!Ue.value(e)) We(e), t = e;
|
|
750
751
|
else {
|
|
751
|
-
let r =
|
|
752
|
+
let r = ge({
|
|
752
753
|
userConfig: Te[n] || O.config,
|
|
753
754
|
defaultConfig: e
|
|
754
755
|
});
|
|
755
|
-
t = { ...
|
|
756
|
+
t = { ...ge({
|
|
756
757
|
userConfig: O.config,
|
|
757
758
|
defaultConfig: r
|
|
758
759
|
}) };
|
|
@@ -760,10 +761,10 @@ var mt = ["innerHTML"], ht = {
|
|
|
760
761
|
else t = e;
|
|
761
762
|
return t;
|
|
762
763
|
}
|
|
763
|
-
let R =
|
|
764
|
-
function
|
|
765
|
-
if (!
|
|
766
|
-
|
|
764
|
+
let R = _(() => N.value?.style?.line.pulse || {}), $e = _(() => `${Math.max(200, Number(R.value.durationMs) || 4e3) / 1e3}s`), et = w(0), tt = _(() => R.value?.begin || "0ms"), nt = w("0;1"), rt = _(() => R.value?.loop === !1 ? "1" : "indefinite"), it = _(() => R.value?.loop === !1 ? "freeze" : void 0), at = _(() => R.value.trail.show && lt.value.lengthPx || 1), ot = _(() => !!R.value?.show && !Q.value && !Ge.value && !P.value && (J.value?.length || 0) > 1);
|
|
765
|
+
function st() {
|
|
766
|
+
if (!ot.value) {
|
|
767
|
+
et.value = 0;
|
|
767
768
|
return;
|
|
768
769
|
}
|
|
769
770
|
let e = I.value;
|
|
@@ -771,18 +772,18 @@ var mt = ["innerHTML"], ht = {
|
|
|
771
772
|
let t = `#${G.value}`, n = e.querySelector?.(t);
|
|
772
773
|
if (n && typeof n.getTotalLength == "function") {
|
|
773
774
|
let e = n.getTotalLength();
|
|
774
|
-
Number.isFinite(e) && e > 0 && (
|
|
775
|
+
Number.isFinite(e) && e > 0 && (et.value = e);
|
|
775
776
|
return;
|
|
776
777
|
}
|
|
777
778
|
requestAnimationFrame(() => {
|
|
778
779
|
let n = e.querySelector?.(t);
|
|
779
780
|
if (n && typeof n.getTotalLength == "function") {
|
|
780
781
|
let e = n.getTotalLength();
|
|
781
|
-
Number.isFinite(e) && e > 0 && (
|
|
782
|
+
Number.isFinite(e) && e > 0 && (et.value = e);
|
|
782
783
|
}
|
|
783
784
|
});
|
|
784
785
|
}
|
|
785
|
-
let
|
|
786
|
+
let ct = _(() => {
|
|
786
787
|
let e = R.value?.easing || "ease-in-out", t = {
|
|
787
788
|
ease: [
|
|
788
789
|
.25,
|
|
@@ -827,7 +828,7 @@ var mt = ["innerHTML"], ht = {
|
|
|
827
828
|
] : t[e] || t["ease-in-out"]).join(" "),
|
|
828
829
|
keyTimes: "0;1"
|
|
829
830
|
};
|
|
830
|
-
}),
|
|
831
|
+
}), lt = _(() => {
|
|
831
832
|
let e = R.value?.trail || {}, t = N.value.style.line.strokeWidth || 1;
|
|
832
833
|
return {
|
|
833
834
|
show: e.show !== !1,
|
|
@@ -837,18 +838,18 @@ var mt = ["innerHTML"], ht = {
|
|
|
837
838
|
fadeIn: .5,
|
|
838
839
|
fadeOut: .2
|
|
839
840
|
};
|
|
840
|
-
}), z =
|
|
841
|
+
}), z = _(() => p({
|
|
841
842
|
data: F.value,
|
|
842
843
|
threshold: N.value.downsample.threshold
|
|
843
844
|
}));
|
|
844
|
-
|
|
845
|
+
_(() => {
|
|
845
846
|
if (!N.value.temperatureColors.show) return !1;
|
|
846
847
|
let e = F.value.map(({ value: e }) => e).filter((e) => Number.isFinite(e));
|
|
847
848
|
return new Set(e).size <= 1;
|
|
848
849
|
}), D(() => O.config, (e) => {
|
|
849
|
-
P.value || (N.value = L()),
|
|
850
|
+
P.value || (N.value = L()), Wt(), K.value.chartWidth = N.value.style.chartWidth;
|
|
850
851
|
}, { deep: !0 }), D(() => O.dataset, (e) => {
|
|
851
|
-
Array.isArray(e) && e.length > 0 && (
|
|
852
|
+
Array.isArray(e) && e.length > 0 && (Qe.value = !1), B.value = p({
|
|
852
853
|
data: F.value.map((e) => ({
|
|
853
854
|
...e,
|
|
854
855
|
value: [void 0].includes(e.value) ? null : e.value
|
|
@@ -856,9 +857,9 @@ var mt = ["innerHTML"], ht = {
|
|
|
856
857
|
threshold: N.value.downsample.threshold
|
|
857
858
|
});
|
|
858
859
|
}, { deep: !0 });
|
|
859
|
-
let B =
|
|
860
|
+
let B = w(V());
|
|
860
861
|
function V() {
|
|
861
|
-
return
|
|
862
|
+
return p({
|
|
862
863
|
data: F.value.map((e) => N.value.style.animation.show && F.value.length > 1 ? {
|
|
863
864
|
...e,
|
|
864
865
|
value: null
|
|
@@ -869,78 +870,78 @@ var mt = ["innerHTML"], ht = {
|
|
|
869
870
|
threshold: N.value.downsample.threshold
|
|
870
871
|
});
|
|
871
872
|
}
|
|
872
|
-
let H =
|
|
873
|
+
let H = Fe(null), U = Fe(null), ut = w(!1), dt = w(0), ft = w([]), pt = w(""), W = _(() => {
|
|
873
874
|
let e = (z.value || []).map((e) => `${e.period}::${Number.isFinite(e.value) ? e.value : 0}`).join("|"), t = N.value?.style?.animation || {}, n = !!N.value?.gradientPath?.show && !N.value.temperatureColors.show;
|
|
874
875
|
return `${e}#${!!t.show}#${t.animationFrames || 0}#${n}`;
|
|
875
876
|
});
|
|
876
|
-
function pt() {
|
|
877
|
-
ut.value &&= (cancelAnimationFrame(ut.value), 0), dt.value.forEach((e) => clearTimeout(e)), dt.value = [], lt.value = !1;
|
|
878
|
-
}
|
|
879
877
|
function mt() {
|
|
878
|
+
dt.value &&= (cancelAnimationFrame(dt.value), 0), ft.value.forEach((e) => clearTimeout(e)), ft.value = [], ut.value = !1;
|
|
879
|
+
}
|
|
880
|
+
function ht() {
|
|
880
881
|
let e = N.value?.style?.animation || {}, t = z.value || [], n = W.value, r = !!N.value.gradientPath.show && !N.value.temperatureColors.show;
|
|
881
|
-
if (n && n ===
|
|
882
|
-
if (
|
|
883
|
-
B.value = t,
|
|
882
|
+
if (n && n === pt.value && (ut.value || B.value.length === t.length)) return;
|
|
883
|
+
if (mt(), r || !e.show || P.value || t.length <= 1) {
|
|
884
|
+
B.value = t, pt.value = n;
|
|
884
885
|
return;
|
|
885
886
|
}
|
|
886
|
-
|
|
887
|
+
ut.value = !0, pt.value = n, B.value = [];
|
|
887
888
|
let i = Math.max(1, Number(e.animationFrames) || 1), a = Math.max(1, Math.floor(i / t.length)), o = 0, s = () => {
|
|
888
889
|
if (n !== W.value) {
|
|
889
|
-
|
|
890
|
+
mt();
|
|
890
891
|
return;
|
|
891
892
|
}
|
|
892
893
|
if (o < t.length) {
|
|
893
894
|
B.value.push(t[o]);
|
|
894
895
|
let e = setTimeout(() => {
|
|
895
|
-
|
|
896
|
+
dt.value = requestAnimationFrame(s);
|
|
896
897
|
}, a);
|
|
897
|
-
|
|
898
|
-
} else B.value = t,
|
|
898
|
+
ft.value.push(e), o += 1;
|
|
899
|
+
} else B.value = t, mt();
|
|
899
900
|
};
|
|
900
|
-
|
|
901
|
+
dt.value = requestAnimationFrame(s);
|
|
901
902
|
}
|
|
902
903
|
D(W, () => {
|
|
903
|
-
|
|
904
|
+
ht();
|
|
904
905
|
}), Ne(() => {
|
|
905
|
-
|
|
906
|
+
Wt(), ht();
|
|
906
907
|
}), Me(() => {
|
|
907
|
-
|
|
908
|
+
mt();
|
|
908
909
|
});
|
|
909
|
-
let
|
|
910
|
+
let _t = w(0);
|
|
910
911
|
D(() => P.value, async (e) => {
|
|
911
|
-
e || (await
|
|
912
|
-
}), D(() =>
|
|
913
|
-
e || P.value || (await
|
|
912
|
+
e || (await x(), _t.value += 1);
|
|
913
|
+
}), D(() => ut.value, async (e) => {
|
|
914
|
+
e || P.value || (await x(), _t.value += 1);
|
|
914
915
|
});
|
|
915
|
-
let G =
|
|
916
|
-
async function
|
|
917
|
-
|
|
916
|
+
let G = _(() => `sparkline_line_path_${k.value}`), Vt = w(!0);
|
|
917
|
+
async function Ht() {
|
|
918
|
+
Vt.value = !1, await x(), Vt.value = !0, await x(), st();
|
|
918
919
|
}
|
|
919
|
-
let
|
|
920
|
-
function
|
|
921
|
-
if (
|
|
920
|
+
let Ut = _(() => !!N.value.debug);
|
|
921
|
+
function Wt() {
|
|
922
|
+
if (se(O.dataset) ? (t({
|
|
922
923
|
componentName: "VueUiSparkline",
|
|
923
924
|
type: "dataset",
|
|
924
|
-
debug:
|
|
925
|
-
}),
|
|
926
|
-
|
|
925
|
+
debug: Ut.value
|
|
926
|
+
}), Qe.value = !0) : O.dataset.forEach((e, n) => {
|
|
927
|
+
ne({
|
|
927
928
|
datasetObject: e,
|
|
928
929
|
requiredAttributes: ["period", "value"]
|
|
929
930
|
}).forEach((e) => {
|
|
930
|
-
|
|
931
|
+
t({
|
|
931
932
|
componentName: "VueUiSparkline",
|
|
932
933
|
type: "datasetSerieAttribute",
|
|
933
934
|
property: e,
|
|
934
|
-
index:
|
|
935
|
-
debug:
|
|
935
|
+
index: n,
|
|
936
|
+
debug: Ut.value
|
|
936
937
|
});
|
|
937
938
|
});
|
|
938
|
-
}),
|
|
939
|
-
let e =
|
|
940
|
-
let { width: e, height: t } =
|
|
939
|
+
}), se(O.dataset) || (Qe.value = N.value.loading), N.value.responsive) {
|
|
940
|
+
let e = ye(() => {
|
|
941
|
+
let { width: e, height: t } = be({
|
|
941
942
|
chart: A.value,
|
|
942
|
-
title: N.value.style.title.show && O.showInfo ?
|
|
943
|
-
source:
|
|
943
|
+
title: N.value.style.title.show && O.showInfo ? Je.value : null,
|
|
944
|
+
source: Ye.value
|
|
944
945
|
});
|
|
945
946
|
requestAnimationFrame(() => {
|
|
946
947
|
K.value.width = e, K.value.height = t, K.value.chartWidth = N.value.style.chartWidth / 500 * e, K.value.padding = O.forcedPadding / 500 * e;
|
|
@@ -952,12 +953,12 @@ var mt = ["innerHTML"], ht = {
|
|
|
952
953
|
Me(() => {
|
|
953
954
|
H.value && (U.value && H.value.unobserve(U.value), H.value.disconnect());
|
|
954
955
|
});
|
|
955
|
-
let K =
|
|
956
|
+
let K = w({
|
|
956
957
|
height: 80 * O.heightRatio,
|
|
957
958
|
width: 500,
|
|
958
959
|
chartWidth: N.value.style.chartWidth,
|
|
959
960
|
padding: O.forcedPadding
|
|
960
|
-
}),
|
|
961
|
+
}), Gt = ve, q = _(() => {
|
|
961
962
|
let { top: e, right: t, bottom: n, left: r } = N.value.style.padding;
|
|
962
963
|
return {
|
|
963
964
|
top: e,
|
|
@@ -968,83 +969,83 @@ var mt = ["innerHTML"], ht = {
|
|
|
968
969
|
width: O.showInfo && N.value.style.dataLabel.show ? K.value.chartWidth - r - t : K.value.width - K.value.padding - r - t,
|
|
969
970
|
height: K.value.height - e - n
|
|
970
971
|
};
|
|
971
|
-
}),
|
|
972
|
+
}), Kt = _(() => [null, void 0].includes(N.value.style.scaleMin) ? Math.min(...B.value.map((e) => isNaN(e.value) || [
|
|
972
973
|
void 0,
|
|
973
974
|
null,
|
|
974
975
|
"NaN",
|
|
975
976
|
NaN,
|
|
976
977
|
Infinity,
|
|
977
978
|
-Infinity
|
|
978
|
-
].includes(e.value) ? 0 : e.value || 0)) : N.value.style.scaleMin),
|
|
979
|
+
].includes(e.value) ? 0 : e.value || 0)) : N.value.style.scaleMin), qt = _(() => [null, void 0].includes(N.value.style.scaleMax) ? Math.max(...B.value.map((e) => isNaN(e.value) || [
|
|
979
980
|
void 0,
|
|
980
981
|
null,
|
|
981
982
|
"NaN",
|
|
982
983
|
NaN,
|
|
983
984
|
Infinity,
|
|
984
985
|
-Infinity
|
|
985
|
-
].includes(e.value) ? 0 : e.value || 0)) : N.value.style.scaleMax),
|
|
986
|
-
let e =
|
|
986
|
+
].includes(e.value) ? 0 : e.value || 0)) : N.value.style.scaleMax), Jt = _(() => {
|
|
987
|
+
let e = Kt.value >= 0 ? 0 : Kt.value;
|
|
987
988
|
return Math.abs(e);
|
|
988
|
-
}),
|
|
989
|
-
function
|
|
990
|
-
return isNaN(e /
|
|
989
|
+
}), Yt = _(() => qt.value + Jt.value), Xt = _(() => q.value.bottom - q.value.height * Zt(Jt.value));
|
|
990
|
+
function Zt(e) {
|
|
991
|
+
return isNaN(e / Yt.value) ? 0 : e / Yt.value;
|
|
991
992
|
}
|
|
992
|
-
let
|
|
993
|
-
|
|
994
|
-
let e = ++
|
|
993
|
+
let Qt = _(() => z.value.length - 1 || 1), $t = w([]), en = 0;
|
|
994
|
+
Re(() => {
|
|
995
|
+
let e = ++en;
|
|
995
996
|
(async () => {
|
|
996
|
-
let t = await
|
|
997
|
+
let t = await pe({
|
|
997
998
|
values: z.value.map((e) => e.period),
|
|
998
999
|
maxDatapoints: z.value.length,
|
|
999
1000
|
formatter: N.value.style.dataLabel.datetimeFormatter,
|
|
1000
1001
|
start: 0,
|
|
1001
1002
|
end: z.value.length
|
|
1002
1003
|
});
|
|
1003
|
-
e ===
|
|
1004
|
+
e === en && ($t.value = t);
|
|
1004
1005
|
})();
|
|
1005
1006
|
});
|
|
1006
|
-
let J =
|
|
1007
|
+
let J = _(() => B.value.map((e, t) => {
|
|
1007
1008
|
let n = isNaN(e.value) || [
|
|
1008
1009
|
void 0,
|
|
1009
1010
|
"NaN",
|
|
1010
1011
|
NaN,
|
|
1011
1012
|
Infinity,
|
|
1012
1013
|
-Infinity
|
|
1013
|
-
].includes(e.value) ? 0 : e.value, r = q.value.width /
|
|
1014
|
+
].includes(e.value) ? 0 : e.value, r = q.value.width / Qt.value;
|
|
1014
1015
|
return {
|
|
1015
1016
|
value: e.value,
|
|
1016
1017
|
absoluteValue: n,
|
|
1017
|
-
period:
|
|
1018
|
-
plotValue: n +
|
|
1019
|
-
toMax:
|
|
1018
|
+
period: $t.value && $t.value[t] && $t.value[t].text ? $t.value[t].text : e.period,
|
|
1019
|
+
plotValue: n + Jt.value,
|
|
1020
|
+
toMax: Zt(n + Jt.value),
|
|
1020
1021
|
x: q.value.start + t * r,
|
|
1021
|
-
y: q.value.bottom - q.value.height *
|
|
1022
|
+
y: q.value.bottom - q.value.height * Zt(n + Jt.value),
|
|
1022
1023
|
id: `plot_${k.value}_${t}`,
|
|
1023
|
-
color: Q.value ? N.value.style.bar.color : N.value.style.area.useGradient ?
|
|
1024
|
+
color: Q.value ? N.value.style.bar.color : N.value.style.area.useGradient ? m(N.value.style.line.color, .05 * (1 - t / Qt.value)) : N.value.style.line.color,
|
|
1024
1025
|
width: r
|
|
1025
1026
|
};
|
|
1026
|
-
})),
|
|
1027
|
-
function
|
|
1027
|
+
})), tn = _(() => O.selectedIndex !== void 0 && O.selectedIndex !== null && O.selectedIndex >= 0 && O.selectedIndex < J.value.length ? O.selectedIndex : M.value !== void 0 && M.value !== null && M.value >= 0 && M.value < J.value.length ? M.value : null), Y = w(void 0), X = w(void 0);
|
|
1028
|
+
function nn(e, t) {
|
|
1028
1029
|
N.value.events.datapointEnter && N.value.events.datapointEnter({
|
|
1029
1030
|
datapoint: e,
|
|
1030
1031
|
seriesIndex: t
|
|
1031
|
-
}), M.value = t, j.value = t, Y.value = e, X.value ||= e,
|
|
1032
|
+
}), M.value = t, j.value = t, Y.value = e, X.value ||= e, Gt("hoverIndex", { index: t });
|
|
1032
1033
|
}
|
|
1033
|
-
function
|
|
1034
|
+
function rn(e, t) {
|
|
1034
1035
|
N.value.events.datapointLeave && N.value.events.datapointLeave({
|
|
1035
1036
|
datapoint: e,
|
|
1036
1037
|
seriesIndex: t
|
|
1037
|
-
}), X.value = Y.value, Y.value = void 0, M.value = null, j.value = null,
|
|
1038
|
+
}), X.value = Y.value, Y.value = void 0, M.value = null, j.value = null, Gt("hoverIndex", { index: void 0 });
|
|
1038
1039
|
}
|
|
1039
|
-
let Z =
|
|
1040
|
-
if (
|
|
1040
|
+
let Z = _(() => {
|
|
1041
|
+
if (Ke.value) {
|
|
1041
1042
|
let e = J.value.map((e) => e.absoluteValue), t = e.reduce((e, t) => e + t, 0);
|
|
1042
1043
|
return {
|
|
1043
1044
|
latest: J.value[J.value.length - 1] ? J.value[J.value.length - 1].absoluteValue : 0,
|
|
1044
1045
|
sum: t,
|
|
1045
1046
|
average: t / J.value.length,
|
|
1046
|
-
median:
|
|
1047
|
-
trend:
|
|
1047
|
+
median: re(e),
|
|
1048
|
+
trend: ce(J.value.map(({ x: e, y: t, absoluteValue: n }) => ({
|
|
1048
1049
|
x: e,
|
|
1049
1050
|
y: t,
|
|
1050
1051
|
value: n
|
|
@@ -1057,18 +1058,18 @@ var mt = ["innerHTML"], ht = {
|
|
|
1057
1058
|
median: null,
|
|
1058
1059
|
trend: null
|
|
1059
1060
|
};
|
|
1060
|
-
}),
|
|
1061
|
-
function
|
|
1061
|
+
}), an = _(() => Ke.value ? N.value.style.dataLabel.valueType === "latest" ? Z.value.latest : N.value.style.dataLabel.valueType === "sum" ? Z.value.sum : N.value.style.dataLabel.valueType === "average" ? Z.value.average : 0 : 0), Q = _(() => N.value.type && N.value.type === "bar");
|
|
1062
|
+
function on(e, t) {
|
|
1062
1063
|
N.value.events.datapointClick && N.value.events.datapointClick({
|
|
1063
1064
|
datapoint: e,
|
|
1064
1065
|
seriesIndex: t
|
|
1065
|
-
}),
|
|
1066
|
+
}), Gt("selectDatapoint", {
|
|
1066
1067
|
datapoint: e,
|
|
1067
1068
|
index: t
|
|
1068
1069
|
});
|
|
1069
1070
|
}
|
|
1070
|
-
let
|
|
1071
|
-
function
|
|
1071
|
+
let sn = _(() => Array.isArray(N.value.style.line.dashIndices) && N.value.style.line.dashIndices.length > 0), cn = _(() => N.value.style.line.cutNullValues);
|
|
1072
|
+
function ln(e) {
|
|
1072
1073
|
return ![
|
|
1073
1074
|
null,
|
|
1074
1075
|
void 0,
|
|
@@ -1078,58 +1079,58 @@ var mt = ["innerHTML"], ht = {
|
|
|
1078
1079
|
-Infinity
|
|
1079
1080
|
].includes(e);
|
|
1080
1081
|
}
|
|
1081
|
-
function
|
|
1082
|
+
function un(e, t) {
|
|
1082
1083
|
let n = e[t - 1], r = e[t + 1], i = !!n && !!r && n.value == null && r.value == null || !n && !!r && r.value == null || !!n && !r && n.value == null;
|
|
1083
|
-
return
|
|
1084
|
+
return ln(e[t]?.value) && i && cn.value;
|
|
1084
1085
|
}
|
|
1085
|
-
function
|
|
1086
|
-
return Y.value && e.id === Y.value.id ||
|
|
1086
|
+
function dn(e, t) {
|
|
1087
|
+
return Y.value && e.id === Y.value.id || tn.value === t || F.value.length === 1;
|
|
1087
1088
|
}
|
|
1088
|
-
function
|
|
1089
|
-
return Q.value || !
|
|
1089
|
+
function fn(e, t) {
|
|
1090
|
+
return Q.value || !ln(e?.value) ? !1 : N.value.style.plot.show && dn(e, t) || un(J.value, t);
|
|
1090
1091
|
}
|
|
1091
|
-
function
|
|
1092
|
-
return Math.max(1,
|
|
1092
|
+
function pn(e, t) {
|
|
1093
|
+
return Math.max(1, dn(e, t) ? N.value.style.plot.radius : N.value.style.plot.radius * .7);
|
|
1093
1094
|
}
|
|
1094
|
-
function
|
|
1095
|
-
return
|
|
1095
|
+
function mn(e, t) {
|
|
1096
|
+
return dn(e, t) ? N.value.style.plot.stroke : N.value.style.backgroundColor;
|
|
1096
1097
|
}
|
|
1097
|
-
let
|
|
1098
|
+
let hn = _(() => cn.value ? J.value : J.value.filter((e) => e.value !== null)), gn = _(() => J.value.filter((e) => e.value !== null)), _n = _(() => gn.value.length > 1), vn = _(() => Q.value || !_n.value ? "" : cn.value ? d(J.value) : l(hn.value)), yn = _(() => Q.value || !_n.value ? "" : cn.value ? n(J.value) : fe(hn.value)), bn = _(() => Q.value || !sn.value || !_n.value ? [] : i(hn.value, N.value.style.line.dashIndices)), xn = _(() => Q.value || !sn.value || !_n.value ? [] : ee(hn.value, N.value.style.line.dashIndices)), Sn = _(() => Q.value || !N.value.style.area.show || !_n.value ? [] : N.value.style.line.smooth ? oe(hn.value, q.value.bottom, cn.value).filter(Boolean) : (cn.value ? u(J.value, q.value.bottom) : r(hn.value, q.value.bottom)).split(";").filter(Boolean).map((e) => `M${e}Z`)), Cn = _(() => Q.value || !N.value.gradientPath.show || N.value.temperatureColors.show ? "" : `M ${(N.value.style.line.smooth ? vn.value : yn.value) || "0,0"}`), wn = _(() => {
|
|
1098
1099
|
if (!N.value.temperatureColors.show) return null;
|
|
1099
1100
|
let e = N.value.temperatureColors.colors;
|
|
1100
|
-
return !Array.isArray(e) || !e.length ? null : e.map((e) =>
|
|
1101
|
-
}), $ =
|
|
1101
|
+
return !Array.isArray(e) || !e.length ? null : e.map((e) => te(e));
|
|
1102
|
+
}), $ = _(() => {
|
|
1102
1103
|
if (!N.value.temperatureColors.show) return null;
|
|
1103
1104
|
let e = N.value.temperatureColors.colors;
|
|
1104
|
-
return !Array.isArray(e) || !e.length ? null : e.map((e) =>
|
|
1105
|
+
return !Array.isArray(e) || !e.length ? null : e.map((e) => te(e));
|
|
1105
1106
|
});
|
|
1106
|
-
function
|
|
1107
|
+
function Tn(e) {
|
|
1107
1108
|
if (!Number.isFinite(e?.y)) return 0;
|
|
1108
1109
|
let t = q.value.height || 1, n = (e.y - q.value.top) / t;
|
|
1109
1110
|
return Math.min(1, Math.max(0, n));
|
|
1110
1111
|
}
|
|
1111
|
-
function
|
|
1112
|
-
let t =
|
|
1113
|
-
return !Array.isArray(t) || !t.length ? e.color :
|
|
1112
|
+
function En(e) {
|
|
1113
|
+
let t = wn.value;
|
|
1114
|
+
return !Array.isArray(t) || !t.length ? e.color : de({
|
|
1114
1115
|
colors: t,
|
|
1115
|
-
ratio:
|
|
1116
|
+
ratio: Tn(e)
|
|
1116
1117
|
});
|
|
1117
1118
|
}
|
|
1118
1119
|
D(() => [
|
|
1119
|
-
|
|
1120
|
+
ot.value,
|
|
1120
1121
|
G.value,
|
|
1121
1122
|
J.value.length,
|
|
1122
1123
|
K.value.width,
|
|
1123
1124
|
K.value.height,
|
|
1124
1125
|
N.value?.style?.line?.smooth
|
|
1125
1126
|
], async () => {
|
|
1126
|
-
await
|
|
1127
|
+
await x(), st();
|
|
1127
1128
|
}, { immediate: !0 }), Ne(async () => {
|
|
1128
|
-
await
|
|
1129
|
+
await x(), st();
|
|
1129
1130
|
}), D(() => P.value, async (e) => {
|
|
1130
|
-
e || await
|
|
1131
|
-
}), D(() =>
|
|
1132
|
-
e || P.value || await
|
|
1131
|
+
e || await Ht();
|
|
1132
|
+
}), D(() => ut.value, async (e) => {
|
|
1133
|
+
e || P.value || await Ht();
|
|
1133
1134
|
}), D(() => O.selectedIndex, (e) => {
|
|
1134
1135
|
if (e == null) {
|
|
1135
1136
|
M.value = null, j.value = null, Y.value = void 0;
|
|
@@ -1139,22 +1140,22 @@ var mt = ["innerHTML"], ht = {
|
|
|
1139
1140
|
let t = J.value[e];
|
|
1140
1141
|
t && (M.value = e, j.value = e, Y.value = t);
|
|
1141
1142
|
});
|
|
1142
|
-
let
|
|
1143
|
-
function
|
|
1144
|
-
let e =
|
|
1143
|
+
let Dn = w(!1);
|
|
1144
|
+
function On() {
|
|
1145
|
+
let e = tn.value;
|
|
1145
1146
|
if (e !== null && e >= 0 && e < J.value.length) {
|
|
1146
1147
|
let t = J.value[e];
|
|
1147
1148
|
if (t) {
|
|
1148
|
-
j.value = e, Y.value = t, M.value = e,
|
|
1149
|
+
j.value = e, Y.value = t, M.value = e, Dn.value = !0;
|
|
1149
1150
|
return;
|
|
1150
1151
|
}
|
|
1151
1152
|
}
|
|
1152
|
-
j.value = null, !Y.value && J.value.length &&
|
|
1153
|
+
j.value = null, !Y.value && J.value.length && nn(J.value.at(-1), J.value.length - 1), Dn.value = !0;
|
|
1153
1154
|
}
|
|
1154
|
-
function
|
|
1155
|
-
X.value = Y.value, (O.selectedIndex === void 0 || O.selectedIndex === null) && (j.value = null, Y.value = void 0, M.value = null,
|
|
1155
|
+
function kn() {
|
|
1156
|
+
X.value = Y.value, (O.selectedIndex === void 0 || O.selectedIndex === null) && (j.value = null, Y.value = void 0, M.value = null, Gt("hoverIndex", { index: void 0 })), Dn.value = !1;
|
|
1156
1157
|
}
|
|
1157
|
-
function
|
|
1158
|
+
function An(e) {
|
|
1158
1159
|
if (!I.value || document.activeElement !== I.value) return;
|
|
1159
1160
|
X.value = Y.value;
|
|
1160
1161
|
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight";
|
|
@@ -1165,28 +1166,28 @@ var mt = ["innerHTML"], ht = {
|
|
|
1165
1166
|
let i = j.value, a = i !== null && i >= 0 && i < r, o = Y.value ? J.value.findIndex((e) => e.id === Y.value.id) : -1;
|
|
1166
1167
|
a ? n ? (i += 1, i >= r && (i = 0)) : t && (--i, i < 0 && (i = r - 1)) : o !== null && o >= 0 && o < r ? (i = n ? o + 1 : o - 1, i >= r && (i = 0), i < 0 && (i = r - 1)) : i = n ? 0 : r - 1;
|
|
1167
1168
|
let s = J.value[i];
|
|
1168
|
-
s && (j.value = i,
|
|
1169
|
+
s && (j.value = i, nn(s, i));
|
|
1169
1170
|
}
|
|
1170
|
-
let
|
|
1171
|
+
let jn = _(() => ({
|
|
1171
1172
|
headers: [N.value.translations.period, N.value.translations.value],
|
|
1172
1173
|
rows: J.value.map((e) => [e.period, e.absoluteValue])
|
|
1173
1174
|
}));
|
|
1174
|
-
return (t, n) => (
|
|
1175
|
+
return (t, n) => (C(), y("div", {
|
|
1175
1176
|
ref_key: "sparklineChart",
|
|
1176
1177
|
ref: A,
|
|
1177
1178
|
class: "vue-data-ui-component vue-ui-sparkline",
|
|
1178
1179
|
id: k.value,
|
|
1179
|
-
style:
|
|
1180
|
+
style: S(`width:100%;font-family:${N.value.style.fontFamily};`)
|
|
1180
1181
|
}, [
|
|
1181
|
-
|
|
1182
|
+
b("p", {
|
|
1182
1183
|
id: `chart-instructions-${k.value}`,
|
|
1183
1184
|
class: "sr-only"
|
|
1184
|
-
},
|
|
1185
|
-
|
|
1185
|
+
}, Ie(N.value.a11y.translations.keyboardNavigation), 9, yt),
|
|
1186
|
+
jn.value?.rows?.length ? (C(), Ee(Se, {
|
|
1186
1187
|
key: 0,
|
|
1187
1188
|
uid: k.value,
|
|
1188
|
-
head:
|
|
1189
|
-
body:
|
|
1189
|
+
head: jn.value.headers,
|
|
1190
|
+
body: jn.value.rows,
|
|
1190
1191
|
notice: N.value.a11y.translations.tableAvailable,
|
|
1191
1192
|
caption: N.value.a11y.translations.tableCaption
|
|
1192
1193
|
}, null, 8, [
|
|
@@ -1195,8 +1196,8 @@ var mt = ["innerHTML"], ht = {
|
|
|
1195
1196
|
"body",
|
|
1196
1197
|
"notice",
|
|
1197
1198
|
"caption"
|
|
1198
|
-
])) :
|
|
1199
|
-
|
|
1199
|
+
])) : v("", !0),
|
|
1200
|
+
Pe(t.$slots, "before", je(Ae({
|
|
1200
1201
|
selected: Y.value,
|
|
1201
1202
|
latest: Z.value.latest,
|
|
1202
1203
|
sum: Z.value.sum,
|
|
@@ -1204,84 +1205,96 @@ var mt = ["innerHTML"], ht = {
|
|
|
1204
1205
|
median: Z.value.median,
|
|
1205
1206
|
trend: Z.value.trend
|
|
1206
1207
|
})), void 0, !0),
|
|
1207
|
-
N.value.style.title.show && e.showInfo ? (
|
|
1208
|
+
N.value.style.title.show && e.showInfo ? (C(), y("div", {
|
|
1208
1209
|
key: 1,
|
|
1209
1210
|
ref_key: "chartTitle",
|
|
1210
|
-
ref:
|
|
1211
|
+
ref: Je,
|
|
1211
1212
|
class: "vue-ui-sparkline-title",
|
|
1212
|
-
style:
|
|
1213
|
-
}, [
|
|
1214
|
-
|
|
1213
|
+
style: S(`display:flex;align-items:center;width:100%;color:${N.value.style.title.color};background:${N.value.style.backgroundColor};justify-content:${N.value.style.title.textAlign === "left" ? "flex-start" : N.value.style.title.textAlign === "right" ? "flex-end" : "center"};height:${N.value.style.title.fontSize * 2}px;font-size:${N.value.style.title.fontSize}px;font-weight:${N.value.style.title.bold ? "bold" : "normal"};`)
|
|
1214
|
+
}, [b("span", { style: S(`padding:${N.value.style.title.textAlign === "left" ? "0 0 0 12px" : N.value.style.title.textAlign === "right" ? "0 12px 0 0" : "0"}`) }, Ie(Y.value ? Y.value.period : N.value.style.title.text), 5)], 4)) : v("", !0),
|
|
1215
|
+
b("div", bt, [(C(), y("svg", {
|
|
1215
1216
|
ref_key: "svgRef",
|
|
1216
1217
|
ref: I,
|
|
1217
|
-
xmlns: E(
|
|
1218
|
+
xmlns: E(ue),
|
|
1218
1219
|
viewBox: `0 0 ${K.value.width} ${K.value.height}`,
|
|
1219
|
-
style:
|
|
1220
|
+
style: S(`background:${N.value.style.backgroundColor};overflow:visible;direction:ltr`),
|
|
1220
1221
|
tabindex: "0",
|
|
1221
1222
|
"aria-describedby": `chart-instructions-${k.value}`,
|
|
1222
1223
|
onMouseleave: n[0] ||= (e) => X.value = void 0,
|
|
1223
|
-
onFocus:
|
|
1224
|
-
onBlur:
|
|
1225
|
-
onKeydown:
|
|
1224
|
+
onFocus: On,
|
|
1225
|
+
onBlur: kn,
|
|
1226
|
+
onKeydown: An
|
|
1226
1227
|
}, [
|
|
1227
|
-
Oe(E(
|
|
1228
|
-
t.$slots["chart-background"] ? (
|
|
1228
|
+
Oe(E(Be)),
|
|
1229
|
+
t.$slots["chart-background"] ? (C(), y("foreignObject", {
|
|
1229
1230
|
key: 0,
|
|
1230
1231
|
x: 0,
|
|
1231
1232
|
y: 0,
|
|
1232
1233
|
width: K.value.width <= 0 ? 10 : K.value.width,
|
|
1233
1234
|
height: K.value.height <= 0 ? 10 : K.value.height,
|
|
1234
1235
|
style: { pointerEvents: "none" }
|
|
1235
|
-
}, [
|
|
1236
|
-
|
|
1237
|
-
|
|
1236
|
+
}, [Pe(t.$slots, "chart-background", {}, void 0, !0)], 8, St)) : v("", !0),
|
|
1237
|
+
b("defs", null, [
|
|
1238
|
+
Oe(xe, {
|
|
1239
|
+
t: "linear",
|
|
1238
1240
|
x1: "0%",
|
|
1239
1241
|
y1: "0%",
|
|
1240
1242
|
x2: "100%",
|
|
1241
1243
|
y2: "0%",
|
|
1242
|
-
id: `sparkline_gradient_${k.value}
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1244
|
+
id: `sparkline_gradient_${k.value}`,
|
|
1245
|
+
stops: [[
|
|
1246
|
+
"0%",
|
|
1247
|
+
E(f)(E(m)(N.value.style.area.color, .05), N.value.style.area.opacity),
|
|
1248
|
+
1
|
|
1249
|
+
], [
|
|
1250
|
+
"100%",
|
|
1251
|
+
E(f)(N.value.style.area.color, N.value.style.area.opacity),
|
|
1252
|
+
1
|
|
1253
|
+
]]
|
|
1254
|
+
}, null, 8, ["id", "stops"]),
|
|
1255
|
+
Oe(xe, {
|
|
1256
|
+
t: "linear",
|
|
1251
1257
|
x2: "0%",
|
|
1252
1258
|
y2: "100%",
|
|
1253
|
-
id: `sparkline_bar_gradient_pos_${k.value}
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1259
|
+
id: `sparkline_bar_gradient_pos_${k.value}`,
|
|
1260
|
+
stops: [[
|
|
1261
|
+
"0%",
|
|
1262
|
+
N.value.style.bar.color,
|
|
1263
|
+
1
|
|
1264
|
+
], [
|
|
1265
|
+
"100%",
|
|
1266
|
+
E(m)(N.value.style.bar.color, .05),
|
|
1267
|
+
1
|
|
1268
|
+
]]
|
|
1269
|
+
}, null, 8, ["id", "stops"]),
|
|
1270
|
+
Oe(xe, {
|
|
1271
|
+
t: "linear",
|
|
1262
1272
|
x2: "0%",
|
|
1263
1273
|
y2: "100%",
|
|
1264
|
-
id: `sparkline_bar_gradient_neg_${k.value}
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1274
|
+
id: `sparkline_bar_gradient_neg_${k.value}`,
|
|
1275
|
+
stops: [[
|
|
1276
|
+
"0%",
|
|
1277
|
+
E(m)(N.value.style.bar.color, .05),
|
|
1278
|
+
1
|
|
1279
|
+
], [
|
|
1280
|
+
"100%",
|
|
1281
|
+
N.value.style.bar.color,
|
|
1282
|
+
1
|
|
1283
|
+
]]
|
|
1284
|
+
}, null, 8, ["id", "stops"]),
|
|
1285
|
+
b("filter", {
|
|
1273
1286
|
id: `sparkline_pulse_glow_${k.value}`,
|
|
1274
1287
|
filterUnits: "userSpaceOnUse",
|
|
1275
1288
|
x: "-50",
|
|
1276
1289
|
y: "-50",
|
|
1277
1290
|
width: "100",
|
|
1278
1291
|
height: "100"
|
|
1279
|
-
}, [...n[1] ||= [
|
|
1292
|
+
}, [...n[1] ||= [b("feGaussianBlur", {
|
|
1280
1293
|
in: "SourceGraphic",
|
|
1281
1294
|
stdDeviation: "3",
|
|
1282
1295
|
result: "blur"
|
|
1283
|
-
}, null, -1),
|
|
1284
|
-
N.value.temperatureColors.show && $.value ? (
|
|
1296
|
+
}, null, -1), b("feMerge", null, [b("feMergeNode", { in: "blur" }), b("feMergeNode", { in: "SourceGraphic" })], -1)]], 8, Ct),
|
|
1297
|
+
N.value.temperatureColors.show && $.value ? (C(), y("linearGradient", {
|
|
1285
1298
|
key: 0,
|
|
1286
1299
|
id: `temperature_grad_sparkline_${k.value}`,
|
|
1287
1300
|
gradientUnits: "userSpaceOnUse",
|
|
@@ -1289,31 +1302,31 @@ var mt = ["innerHTML"], ht = {
|
|
|
1289
1302
|
x2: "0",
|
|
1290
1303
|
y1: q.value.top,
|
|
1291
1304
|
y2: q.value.bottom
|
|
1292
|
-
}, [(
|
|
1305
|
+
}, [(C(!0), y(g, null, T($.value, (e, t) => (C(), y("stop", {
|
|
1293
1306
|
key: `temperature_grad_stop_${t}_${k.value}`,
|
|
1294
1307
|
"stop-color": e,
|
|
1295
|
-
offset: $.value.length === 1 ? "0%" : E(
|
|
1296
|
-
}, null, 8,
|
|
1308
|
+
offset: $.value.length === 1 ? "0%" : E(c)(t, $.value.length)
|
|
1309
|
+
}, null, 8, Tt))), 128))], 8, wt)) : v("", !0)
|
|
1297
1310
|
]),
|
|
1298
|
-
N.value.style.area.show && !Q.value &&
|
|
1311
|
+
N.value.style.area.show && !Q.value && Sn.value.length ? (C(), y("g", Et, [(C(!0), y(g, null, T(Sn.value, (e, t) => (C(), y("path", {
|
|
1299
1312
|
key: `sparkline_area_${t}_${k.value}`,
|
|
1300
1313
|
class: "vue-ui-sparkline-area",
|
|
1301
1314
|
"data-cy": N.value.style.line.smooth ? "sparkline-smooth-area" : "sparkline-angle-area",
|
|
1302
1315
|
d: e,
|
|
1303
|
-
fill: N.value.style.area.useGradient ? `url(#sparkline_gradient_${k.value})` : E(
|
|
1316
|
+
fill: N.value.style.area.useGradient ? `url(#sparkline_gradient_${k.value})` : E(f)(N.value.style.area.color, N.value.style.area.opacity),
|
|
1304
1317
|
"stroke-linecap": "round",
|
|
1305
1318
|
"stroke-linejoin": "round",
|
|
1306
|
-
style:
|
|
1307
|
-
}, null, 12,
|
|
1308
|
-
N.value.style.line.smooth && !Q.value ? (
|
|
1319
|
+
style: S({ transition: E(P) ? void 0 : "all 0.2s" })
|
|
1320
|
+
}, null, 12, Dt))), 128))])) : v("", !0),
|
|
1321
|
+
N.value.style.line.smooth && !Q.value ? (C(), y(g, { key: 2 }, [b("path", {
|
|
1309
1322
|
id: G.value,
|
|
1310
|
-
d: `M ${
|
|
1323
|
+
d: `M ${vn.value || "0,0"}`,
|
|
1311
1324
|
fill: "none",
|
|
1312
1325
|
stroke: "transparent",
|
|
1313
1326
|
"stroke-width": N.value.style.line.strokeWidth,
|
|
1314
1327
|
"stroke-linecap": "round",
|
|
1315
1328
|
"stroke-linejoin": "round"
|
|
1316
|
-
}, null, 8,
|
|
1329
|
+
}, null, 8, Ot), sn.value ? (C(!0), y(g, { key: 0 }, T(bn.value, (e) => (C(), y("path", {
|
|
1317
1330
|
key: e.path,
|
|
1318
1331
|
class: "vue-ui-sparkline-path",
|
|
1319
1332
|
d: `M ${e.path}`,
|
|
@@ -1323,27 +1336,27 @@ var mt = ["innerHTML"], ht = {
|
|
|
1323
1336
|
"stroke-linecap": "round",
|
|
1324
1337
|
"stroke-linejoin": "round",
|
|
1325
1338
|
"stroke-dasharray": e.dashed ? N.value.style.line.dashArray : 0,
|
|
1326
|
-
style:
|
|
1327
|
-
}, null, 12,
|
|
1339
|
+
style: S({ transition: E(P) ? void 0 : "all 0.2s" })
|
|
1340
|
+
}, null, 12, kt))), 128)) : (C(), y("path", {
|
|
1328
1341
|
key: 1,
|
|
1329
1342
|
class: "vue-ui-sparkline-path",
|
|
1330
|
-
d: `M ${
|
|
1343
|
+
d: `M ${vn.value || "0,0"}`,
|
|
1331
1344
|
stroke: $.value ? `url(#temperature_grad_sparkline_${k.value})` : N.value.style.line.color,
|
|
1332
1345
|
fill: "none",
|
|
1333
1346
|
"stroke-width": N.value.style.line.strokeWidth,
|
|
1334
1347
|
"stroke-linecap": "round",
|
|
1335
1348
|
"stroke-linejoin": "round",
|
|
1336
|
-
style:
|
|
1337
|
-
}, null, 12,
|
|
1338
|
-
!N.value.style.line.smooth && !Q.value ? (
|
|
1349
|
+
style: S({ transition: E(P) ? void 0 : "all 0.2s" })
|
|
1350
|
+
}, null, 12, At))], 64)) : v("", !0),
|
|
1351
|
+
!N.value.style.line.smooth && !Q.value ? (C(), y(g, { key: 3 }, [b("path", {
|
|
1339
1352
|
id: G.value,
|
|
1340
|
-
d: `M ${
|
|
1353
|
+
d: `M ${yn.value || "0,0"}`,
|
|
1341
1354
|
fill: "none",
|
|
1342
1355
|
stroke: "transparent",
|
|
1343
1356
|
"stroke-width": N.value.style.line.strokeWidth,
|
|
1344
1357
|
"stroke-linecap": "round",
|
|
1345
1358
|
"stroke-linejoin": "round"
|
|
1346
|
-
}, null, 8,
|
|
1359
|
+
}, null, 8, jt), sn.value ? (C(!0), y(g, { key: 0 }, T(xn.value, (e) => (C(), y("path", {
|
|
1347
1360
|
key: e.path,
|
|
1348
1361
|
class: "vue-ui-sparkline-path",
|
|
1349
1362
|
d: `M ${e.path}`,
|
|
@@ -1353,21 +1366,21 @@ var mt = ["innerHTML"], ht = {
|
|
|
1353
1366
|
"stroke-linecap": "round",
|
|
1354
1367
|
"stroke-linejoin": "round",
|
|
1355
1368
|
"stroke-dasharray": e.dashed ? N.value.style.line.dashArray * 2 : 0,
|
|
1356
|
-
style:
|
|
1357
|
-
}, null, 12,
|
|
1369
|
+
style: S({ transition: E(P) ? void 0 : "all 0.2s" })
|
|
1370
|
+
}, null, 12, Mt))), 128)) : (C(), y("path", {
|
|
1358
1371
|
key: 1,
|
|
1359
1372
|
class: "vue-ui-sparkline-path",
|
|
1360
|
-
d: `M ${
|
|
1373
|
+
d: `M ${yn.value || "0,0"}`,
|
|
1361
1374
|
stroke: $.value ? `url(#temperature_grad_sparkline_${k.value})` : N.value.style.line.color,
|
|
1362
1375
|
fill: "none",
|
|
1363
1376
|
"stroke-width": N.value.style.line.strokeWidth,
|
|
1364
1377
|
"stroke-linecap": "round",
|
|
1365
1378
|
"stroke-linejoin": "round",
|
|
1366
|
-
style:
|
|
1367
|
-
}, null, 12,
|
|
1368
|
-
|
|
1379
|
+
style: S({ transition: E(P) ? void 0 : "all 0.2s" })
|
|
1380
|
+
}, null, 12, Nt))], 64)) : v("", !0),
|
|
1381
|
+
Cn.value && !$.value ? (C(), Ee(gt, {
|
|
1369
1382
|
key: 4,
|
|
1370
|
-
svgPathData:
|
|
1383
|
+
svgPathData: Cn.value,
|
|
1371
1384
|
enabled: N.value.gradientPath.show && !Q.value && !$.value,
|
|
1372
1385
|
strokeWidth: N.value.style.line.strokeWidth,
|
|
1373
1386
|
highColor: N.value.gradientPath.colors.high,
|
|
@@ -1380,23 +1393,23 @@ var mt = ["innerHTML"], ht = {
|
|
|
1380
1393
|
"highColor",
|
|
1381
1394
|
"lowColor",
|
|
1382
1395
|
"segments"
|
|
1383
|
-
])) :
|
|
1384
|
-
|
|
1396
|
+
])) : v("", !0),
|
|
1397
|
+
Vt.value && ot.value ? (C(), Ee(qe, {
|
|
1385
1398
|
key: 5,
|
|
1386
1399
|
uid: k.value,
|
|
1387
1400
|
svgRef: E(I),
|
|
1388
1401
|
pulsePathId: G.value,
|
|
1389
|
-
pulsePathLength:
|
|
1390
|
-
pulseDur:
|
|
1391
|
-
pulseBegin:
|
|
1392
|
-
pulseRepeatCount:
|
|
1393
|
-
pulseFillMode:
|
|
1394
|
-
pulseKeyPoints:
|
|
1395
|
-
pulseMotion:
|
|
1402
|
+
pulsePathLength: et.value,
|
|
1403
|
+
pulseDur: $e.value,
|
|
1404
|
+
pulseBegin: tt.value,
|
|
1405
|
+
pulseRepeatCount: rt.value,
|
|
1406
|
+
pulseFillMode: it.value,
|
|
1407
|
+
pulseKeyPoints: nt.value,
|
|
1408
|
+
pulseMotion: ct.value,
|
|
1396
1409
|
pulse: R.value,
|
|
1397
|
-
pulseTrail:
|
|
1398
|
-
pulseTrailLength:
|
|
1399
|
-
prefersReducedMotion: E(
|
|
1410
|
+
pulseTrail: lt.value,
|
|
1411
|
+
pulseTrailLength: at.value,
|
|
1412
|
+
prefersReducedMotion: E(Ge),
|
|
1400
1413
|
loading: E(P),
|
|
1401
1414
|
isBar: Q.value
|
|
1402
1415
|
}, null, 8, [
|
|
@@ -1416,16 +1429,16 @@ var mt = ["innerHTML"], ht = {
|
|
|
1416
1429
|
"prefersReducedMotion",
|
|
1417
1430
|
"loading",
|
|
1418
1431
|
"isBar"
|
|
1419
|
-
])) :
|
|
1420
|
-
(
|
|
1432
|
+
])) : v("", !0),
|
|
1433
|
+
(C(!0), y(g, null, T(J.value, (e, t) => (C(), y("g", null, [Q.value ? (C(), y("rect", {
|
|
1421
1434
|
key: 0,
|
|
1422
1435
|
x: e.x - e.width / 2,
|
|
1423
|
-
y: isNaN(e.absoluteValue > 0 ? e.y :
|
|
1436
|
+
y: isNaN(e.absoluteValue > 0 ? e.y : Xt.value) ? 0 : e.absoluteValue > 0 ? e.y : Xt.value,
|
|
1424
1437
|
width: e.width,
|
|
1425
|
-
height: isNaN(Math.abs(e.y -
|
|
1438
|
+
height: isNaN(Math.abs(e.y - Xt.value)) ? 0 : Math.abs(e.y - Xt.value),
|
|
1426
1439
|
fill: e.absoluteValue > 0 ? `url(#sparkline_bar_gradient_pos_${k.value})` : `url(#sparkline_bar_gradient_neg_${k.value})`,
|
|
1427
1440
|
rx: N.value.style.bar.borderRadius
|
|
1428
|
-
}, null, 8,
|
|
1441
|
+
}, null, 8, Pt)) : v("", !0), N.value.style.verticalIndicator.show && (Y.value && e.id === Y.value.id || tn.value === t) ? (C(), y("line", {
|
|
1429
1442
|
key: 1,
|
|
1430
1443
|
x1: e.x,
|
|
1431
1444
|
x2: e.x,
|
|
@@ -1435,67 +1448,67 @@ var mt = ["innerHTML"], ht = {
|
|
|
1435
1448
|
"stroke-width": N.value.style.verticalIndicator.strokeWidth,
|
|
1436
1449
|
"stroke-linecap": "round",
|
|
1437
1450
|
"stroke-dasharray": N.value.style.verticalIndicator.strokeDasharray || 0
|
|
1438
|
-
}, null, 8,
|
|
1439
|
-
|
|
1451
|
+
}, null, 8, Ft)) : v("", !0)]))), 256)),
|
|
1452
|
+
Kt.value < 0 ? (C(), y("line", {
|
|
1440
1453
|
key: 6,
|
|
1441
1454
|
x1: q.value.start,
|
|
1442
1455
|
x2: q.value.start + q.value.width,
|
|
1443
|
-
y1: E(
|
|
1444
|
-
y2: E(
|
|
1456
|
+
y1: E(ae)(Xt.value, q.value.bottom),
|
|
1457
|
+
y2: E(ae)(Xt.value, q.value.bottom),
|
|
1445
1458
|
stroke: N.value.style.zeroLine.color,
|
|
1446
1459
|
"stroke-dasharray": N.value.style.zeroLine.strokeWidth * 2,
|
|
1447
1460
|
"stroke-width": N.value.style.zeroLine.strokeWidth,
|
|
1448
1461
|
"stroke-linecap": "round"
|
|
1449
|
-
}, null, 8,
|
|
1450
|
-
(
|
|
1462
|
+
}, null, 8, It)) : v("", !0),
|
|
1463
|
+
(C(!0), y(g, null, T(J.value, (e, t) => (C(), y("g", { key: `sparkline_plot_${e.id}` }, [fn(e, t) ? (C(), y("circle", {
|
|
1451
1464
|
key: 0,
|
|
1452
1465
|
cx: e.x,
|
|
1453
1466
|
cy: e.y,
|
|
1454
|
-
r:
|
|
1455
|
-
fill:
|
|
1456
|
-
stroke:
|
|
1467
|
+
r: pn(e, t),
|
|
1468
|
+
fill: En(e),
|
|
1469
|
+
stroke: mn(e, t),
|
|
1457
1470
|
"stroke-width": N.value.style.plot.strokeWidth
|
|
1458
|
-
}, null, 8,
|
|
1459
|
-
e.showInfo && N.value.style.dataLabel.show ? (
|
|
1471
|
+
}, null, 8, Lt)) : v("", !0)]))), 128)),
|
|
1472
|
+
e.showInfo && N.value.style.dataLabel.show ? (C(), y("text", {
|
|
1460
1473
|
key: 7,
|
|
1461
1474
|
x: N.value.style.dataLabel.position === "left" ? 12 + N.value.style.dataLabel.offsetX : q.value.width + 12 + N.value.style.dataLabel.offsetX,
|
|
1462
1475
|
y: K.value.height / 2 + N.value.style.dataLabel.fontSize / 2.5 + N.value.style.dataLabel.offsetY,
|
|
1463
1476
|
"font-size": N.value.style.dataLabel.fontSize,
|
|
1464
1477
|
"font-weight": N.value.style.dataLabel.bold ? "bold" : "normal",
|
|
1465
1478
|
fill: N.value.style.dataLabel.color
|
|
1466
|
-
},
|
|
1479
|
+
}, Ie(Y.value ? E(ie)(N.value.style.dataLabel.formatter, Y.value.absoluteValue, E(o)({
|
|
1467
1480
|
p: N.value.style.dataLabel.prefix,
|
|
1468
1481
|
v: Y.value.absoluteValue,
|
|
1469
1482
|
s: N.value.style.dataLabel.suffix,
|
|
1470
1483
|
r: N.value.style.dataLabel.roundingValue
|
|
1471
|
-
}), { datapoint: Y.value }) : E(
|
|
1484
|
+
}), { datapoint: Y.value }) : E(ie)(N.value.style.dataLabel.formatter, an.value, E(o)({
|
|
1472
1485
|
p: N.value.style.dataLabel.prefix,
|
|
1473
|
-
v:
|
|
1486
|
+
v: an.value,
|
|
1474
1487
|
s: N.value.style.dataLabel.suffix,
|
|
1475
1488
|
r: N.value.style.dataLabel.roundingValue
|
|
1476
|
-
}))), 9,
|
|
1477
|
-
(
|
|
1478
|
-
x: e.x - (q.value.width / (
|
|
1489
|
+
}))), 9, Rt)) : v("", !0),
|
|
1490
|
+
(C(!0), y(g, null, T(J.value, (e, t) => (C(), y("rect", {
|
|
1491
|
+
x: e.x - (q.value.width / (Qt.value + 1) > K.value.padding ? K.value.padding : q.value.width / (Qt.value + 1)) / 2,
|
|
1479
1492
|
y: q.value.top - 6,
|
|
1480
1493
|
height: q.value.height + 6,
|
|
1481
|
-
width: q.value.width / (
|
|
1494
|
+
width: q.value.width / (Qt.value + 1) > K.value.padding ? K.value.padding : q.value.width / (Qt.value + 1),
|
|
1482
1495
|
fill: "transparent",
|
|
1483
|
-
onMouseenter: () =>
|
|
1484
|
-
onMouseleave: () =>
|
|
1485
|
-
onClick: () =>
|
|
1486
|
-
}, null, 40,
|
|
1487
|
-
|
|
1496
|
+
onMouseenter: () => nn(e, t),
|
|
1497
|
+
onMouseleave: () => rn(e, t),
|
|
1498
|
+
onClick: () => on(e, t)
|
|
1499
|
+
}, null, 40, zt))), 256)),
|
|
1500
|
+
Pe(t.$slots, "svg", { svg: {
|
|
1488
1501
|
...K.value,
|
|
1489
1502
|
drawingArea: q.value,
|
|
1490
|
-
timeLabels:
|
|
1503
|
+
timeLabels: $t.value,
|
|
1491
1504
|
series: J.value,
|
|
1492
1505
|
hoveredIndex: j.value
|
|
1493
1506
|
} }, void 0, !0)
|
|
1494
|
-
], 44,
|
|
1507
|
+
], 44, xt)), t.$slots.hint ? (C(), y("div", Bt, [Pe(t.$slots, "hint", je(Ae({
|
|
1495
1508
|
hint: N.value.a11y.translations.keyboardNavigation,
|
|
1496
|
-
isVisible:
|
|
1497
|
-
})), void 0, !0)])) :
|
|
1498
|
-
Y.value && N.value.style.tooltip.show ? (
|
|
1509
|
+
isVisible: Dn.value
|
|
1510
|
+
})), void 0, !0)])) : v("", !0)]),
|
|
1511
|
+
Y.value && N.value.style.tooltip.show ? (C(), Ee(E(Ve), {
|
|
1499
1512
|
key: 2,
|
|
1500
1513
|
x: Y.value.x,
|
|
1501
1514
|
y: Y.value.y,
|
|
@@ -1511,7 +1524,7 @@ var mt = ["innerHTML"], ht = {
|
|
|
1511
1524
|
borderRadius: N.value.style.tooltip.borderRadius,
|
|
1512
1525
|
backgroundOpacity: N.value.style.tooltip.backgroundOpacity
|
|
1513
1526
|
}, {
|
|
1514
|
-
default:
|
|
1527
|
+
default: ze(() => [Pe(t.$slots, "tooltip", je(Ae({ ...Y.value })), () => [De(Ie(Y.value.period) + ": " + Ie(E(ie)(N.value.style.dataLabel.formatter, Y.value.absoluteValue, E(o)({
|
|
1515
1528
|
p: N.value.style.dataLabel.prefix,
|
|
1516
1529
|
v: Y.value.absoluteValue,
|
|
1517
1530
|
s: N.value.style.dataLabel.suffix,
|
|
@@ -1532,16 +1545,16 @@ var mt = ["innerHTML"], ht = {
|
|
|
1532
1545
|
"borderColor",
|
|
1533
1546
|
"borderRadius",
|
|
1534
1547
|
"backgroundOpacity"
|
|
1535
|
-
])) :
|
|
1536
|
-
t.$slots.source ? (
|
|
1548
|
+
])) : v("", !0),
|
|
1549
|
+
t.$slots.source ? (C(), y("div", {
|
|
1537
1550
|
key: 3,
|
|
1538
1551
|
ref_key: "source",
|
|
1539
|
-
ref:
|
|
1552
|
+
ref: Ye,
|
|
1540
1553
|
dir: "auto"
|
|
1541
|
-
}, [
|
|
1542
|
-
|
|
1543
|
-
], 12,
|
|
1554
|
+
}, [Pe(t.$slots, "source", {}, void 0, !0)], 512)) : v("", !0),
|
|
1555
|
+
Pe(t.$slots, "skeleton", {}, () => [E(P) ? (C(), Ee(he, { key: 0 })) : v("", !0)], !0)
|
|
1556
|
+
], 12, vt));
|
|
1544
1557
|
}
|
|
1545
|
-
}, [["__scopeId", "data-v-
|
|
1558
|
+
}, [["__scopeId", "data-v-a98ba827"]]);
|
|
1546
1559
|
//#endregion
|
|
1547
|
-
export {
|
|
1560
|
+
export { _t as n, G as t };
|