vue-data-ui 3.22.13 → 3.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +13 -1
- package/dist/{Arrow-DKx74WtM.js → Arrow-o2qHNvrC.js} +1 -1
- package/dist/{BaseDraggableDialog-3n8udWmh.js → BaseDraggableDialog-qTnfhLBz.js} +2 -2
- package/dist/{BaseIcon-CP5RWnqt.js → BaseIcon-91MZoczJ.js} +4 -3
- package/dist/{BaseLegendToggle-DsWphmIb.js → BaseLegendToggle-CtAPwzr2.js} +1 -1
- package/dist/{BaseZoomControls-C9_ygNN4.js → BaseZoomControls-rdzlicuz.js} +2 -2
- package/dist/{ColorPicker-3N_HVgXs.js → ColorPicker-CIAkdPrj.js} +2 -2
- package/dist/{DataTable-DzPEVvSo.js → DataTable-D4tM9s5Y.js} +2 -2
- package/dist/HillActions-BWhxHlrj.js +187 -0
- package/dist/{Legend-C0xAnJdO.js → Legend-CQTRlzK-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-B_mE5UbR.js → NonSvgPenAndPaper-Cawacw1W.js} +19 -19
- package/dist/{PackageVersion-B6Hokxw9.js → PackageVersion--QCMh5k_.js} +1 -1
- package/dist/{PenAndPaper-CSMVXpg2.js → PenAndPaper-cE4J8-rA.js} +11 -11
- package/dist/{Shape-BfnXr1nJ.js → Shape-BPMV94Ij.js} +3 -3
- package/dist/{Slicer-C6qNUmZ4.js → Slicer-5yIrdoJv.js} +15 -15
- package/dist/SlicerPreview-DvjLV2TW.js +1689 -0
- package/dist/{SparkTooltip-uoUiL_P8.js → SparkTooltip-BaYtEKS6.js} +6 -6
- package/dist/Title-BODtwViI.js +87 -0
- package/dist/{Tooltip-CA1rtSyl.js → Tooltip-CMTGxeYO.js} +1 -1
- package/dist/{UserOptions-DzAFK9cY.js → UserOptions-3ujTo3LD.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-hill.js +2 -0
- 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-BdAFKZQg.js → dom-to-png-4tdMNGPX.js} +1 -1
- package/dist/exposedLib-DWLRqRhv.js +25 -0
- package/dist/{img-Bikk1dGb.js → img-DIQG5q8T.js} +1 -1
- package/dist/{labelUtils-BUhssos9.js → labelUtils-C5lnc_xc.js} +1 -1
- package/dist/{lib-CFm_J26b.js → lib-BuMGJ_a0.js} +216 -173
- package/dist/{package-DmDydylu.js → package-BMc_ZieJ.js} +1 -1
- package/dist/{pdf-zmz3l2uy.js → pdf-Cnz4NKM9.js} +1 -1
- package/dist/{render-common-BIG8JYGK.js → render-common-Ktg2LZFG.js} +21 -21
- 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/vue-data-ui.d.ts +493 -0
- package/dist/types/vue-ui-hill.d.ts +90 -0
- package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +122 -0
- package/dist/{useConfig-C0V0eG7L.js → useConfig-BilxnBNr.js} +767 -476
- package/dist/useHints-Dq_w2E8B.js +66 -0
- package/dist/{useNestedProp-BY6DNN3i.js → useNestedProp--NSEmhOH.js} +1 -1
- package/dist/{useObjectBindings-Djwpii4d.js → useObjectBindings-Cwq7NcQz.js} +3 -2
- package/dist/{usePrinter-BH-xle1O.js → usePrinter-BFvi4jVy.js} +2 -2
- package/dist/useTransitions-g_zBREk2.js +39 -0
- package/dist/utils.js +14 -14
- package/dist/{vue-data-ui-rkzh6EkO.js → vue-data-ui-EsawKe_W.js} +85 -81
- package/dist/vue-data-ui.js +77 -76
- package/dist/vue-ui-3d-bar-RSUS2xpL.js +1849 -0
- package/dist/{vue-ui-accordion-UA88lv4d.js → vue-ui-accordion-61MlW-Ge.js} +4 -4
- package/dist/vue-ui-age-pyramid-CgnPWA93.js +1263 -0
- package/dist/vue-ui-annotator-DBRT85HG.js +2913 -0
- package/dist/vue-ui-bullet-Bc3-WaN1.js +724 -0
- package/dist/{vue-ui-bump-BS7RCf0Z.js → vue-ui-bump-Dvv3iSKr.js} +332 -295
- package/dist/{vue-ui-candlestick-BZSGDKrM.js → vue-ui-candlestick-DvvsrIdp.js} +464 -440
- package/dist/vue-ui-carousel-table-DtsNVim8.js +463 -0
- package/dist/vue-ui-chestnut-ArloORzP.js +2068 -0
- package/dist/{vue-ui-chord-D6G7ceE-.js → vue-ui-chord-xX5gWZy8.js} +430 -424
- package/dist/vue-ui-circle-pack-D8wykmqg.js +1638 -0
- package/dist/{vue-ui-cursor-BpN5MsXM.js → vue-ui-cursor-CxgE6Phh.js} +61 -61
- package/dist/{vue-ui-dag-BzgOgXzU.js → vue-ui-dag-C9Sf9vH7.js} +924 -916
- package/dist/vue-ui-dashboard-bGmaglAj.js +520 -0
- package/dist/{vue-ui-digits-OMPrn8fb.js → vue-ui-digits-DgDE-_Fn.js} +58 -50
- package/dist/vue-ui-donut-B_n6wF6B.js +2440 -0
- package/dist/{vue-ui-donut-Cp5NbZ1r.js → vue-ui-donut-Bmo149AR.js} +113 -113
- package/dist/{vue-ui-donut-evolution-DHVi5rOn.js → vue-ui-donut-evolution-D6vH_hfx.js} +528 -447
- package/dist/vue-ui-dumbbell-BX4Ao_wR.js +1582 -0
- package/dist/{vue-ui-flow-BusUK3H0.js → vue-ui-flow-Bshw8pT_.js} +415 -407
- package/dist/vue-ui-funnel-CjYosIik.js +797 -0
- package/dist/vue-ui-galaxy-CvXgy-dy.js +1111 -0
- package/dist/vue-ui-gauge-CByT0_vF.js +953 -0
- package/dist/{vue-ui-geo-CyFgFKlh.js → vue-ui-geo-C-gSZL2q.js} +378 -363
- package/dist/{vue-ui-gizmo-DdeXwCQp.js → vue-ui-gizmo-CJdxyPID.js} +57 -49
- package/dist/{vue-ui-heatmap-D8-qJ7fg.js → vue-ui-heatmap-DEEKv8ip.js} +498 -490
- package/dist/vue-ui-hill-D7LYAgAL.js +1768 -0
- package/dist/{vue-ui-history-plot-C2Aqk2ON.js → vue-ui-history-plot-BhcU94Pt.js} +553 -556
- package/dist/vue-ui-horizontal-bar-CfFye5tL.js +1733 -0
- package/dist/vue-ui-kpi-DCBnNfTb.js +104 -0
- package/dist/vue-ui-mini-loader-CtWpqnLW.js +133 -0
- package/dist/vue-ui-molecule-D3igGyOy.js +958 -0
- package/dist/{vue-ui-mood-radar-BiOjxFEN.js → vue-ui-mood-radar-sl6DMxqR.js} +349 -341
- package/dist/{vue-ui-nested-donuts-Cl1HVvDp.js → vue-ui-nested-donuts-aS4YzaB3.js} +449 -413
- package/dist/vue-ui-onion-EhPTZpW_.js +1258 -0
- package/dist/vue-ui-parallel-coordinate-plot-DE9wTmQQ.js +1455 -0
- package/dist/{vue-ui-quadrant-B21LkUc8.js → vue-ui-quadrant-SaY_RPSE.js} +625 -617
- package/dist/vue-ui-quick-chart-CJ9rejnj.js +2389 -0
- package/dist/{vue-ui-radar-CyzAyVos.js → vue-ui-radar-CaNen5Fj.js} +356 -310
- package/dist/vue-ui-rating--K7rX2an.js +360 -0
- package/dist/vue-ui-relation-circle-FLs8vOxQ.js +925 -0
- package/dist/vue-ui-ridgeline-Beg5hshN.js +1663 -0
- package/dist/{vue-ui-rings-FtcdX8xl.js → vue-ui-rings-BevKD8P-.js} +449 -423
- package/dist/{vue-ui-scatter-Cp_-2ahf.js → vue-ui-scatter-CNA7jF-o.js} +721 -702
- package/dist/{vue-ui-skeleton-COytVrfN.js → vue-ui-skeleton-B9ZP1w-i.js} +395 -387
- package/dist/{vue-ui-smiley-Da2jgkb7.js → vue-ui-smiley-DYnqqk6u.js} +128 -120
- package/dist/{vue-ui-spark-trend-DC2KUlEY.js → vue-ui-spark-trend-R0ebpg-G.js} +132 -117
- package/dist/{vue-ui-sparkbar-DdxQOFIF.js → vue-ui-sparkbar-DYC3By0v.js} +119 -111
- package/dist/{vue-ui-sparkgauge-DTA-fORH.js → vue-ui-sparkgauge-Bw6no-In.js} +76 -68
- package/dist/vue-ui-sparkhistogram-DvRKy8rq.js +590 -0
- package/dist/{vue-ui-sparkline-DcR_N-zT.js → vue-ui-sparkline-Dz1uzBos.js} +389 -364
- package/dist/vue-ui-sparkstackbar-DlnPdZih.js +692 -0
- package/dist/vue-ui-stackbar-B-THcavY.js +2350 -0
- package/dist/vue-ui-stackline-3dBPoI0h.js +2464 -0
- package/dist/{vue-ui-strip-plot-NLCwYvyw.js → vue-ui-strip-plot-ACeYOoHj.js} +505 -484
- package/dist/vue-ui-table-heatmap-DVwMqzje.js +364 -0
- package/dist/{vue-ui-table-AM9brdwU.js → vue-ui-table-rFy16bp0.js} +512 -504
- package/dist/{vue-ui-table-sparkline-BE6DAvur.js → vue-ui-table-sparkline-CABJzK8p.js} +207 -181
- package/dist/vue-ui-thermometer-CVQ-H69Q.js +777 -0
- package/dist/{vue-ui-timer-BZM5ITG9.js → vue-ui-timer-Bm8LpsnI.js} +66 -58
- package/dist/{vue-ui-tiremarks-BCncDpHX.js → vue-ui-tiremarks-DB3f5qiz.js} +127 -119
- package/dist/vue-ui-treemap-DP0Sx8Y8.js +1760 -0
- package/dist/vue-ui-waffle-iPpdk1Bm.js +1412 -0
- package/dist/vue-ui-wheel-BJkEYfLj.js +892 -0
- package/dist/{vue-ui-word-cloud-D7R7nhk1.js → vue-ui-word-cloud-B2sxtel9.js} +440 -432
- package/dist/{vue-ui-world-DZBt-07p.js → vue-ui-world-BBQZLnzm.js} +343 -335
- package/dist/vue-ui-xy-ChZg7AtI.js +1364 -0
- package/dist/{vue-ui-xy-CluEZ7lS.js → vue-ui-xy-DZj5DT-q.js} +1633 -1587
- package/dist/{vue-ui-xy-canvas-7YSYRdwr.js → vue-ui-xy-canvas-BN2u0bOJ.js} +456 -430
- package/dist/vue_ui_hill-dnltu0L-.js +368 -0
- package/package.json +2 -2
- package/dist/SlicerPreview-Cw6WMVhG.js +0 -1689
- package/dist/Title-BuPs74IB.js +0 -87
- package/dist/exposedLib-Ciw6TGtP.js +0 -25
- package/dist/useAutoSizeLabelsInsideViewbox-C9RNjsGv.js +0 -50
- package/dist/useMountedDelay-BAjrhRJb.js +0 -14
- package/dist/vue-ui-3d-bar-D5xHEWr1.js +0 -1824
- package/dist/vue-ui-age-pyramid-CAJg01c7.js +0 -1246
- package/dist/vue-ui-annotator-q3ZKx6ua.js +0 -2905
- package/dist/vue-ui-bullet-ByeaWGfI.js +0 -709
- package/dist/vue-ui-carousel-table-DO5NRXvX.js +0 -455
- package/dist/vue-ui-chestnut-BfeSPeEh.js +0 -2042
- package/dist/vue-ui-circle-pack-Cqmlw7AV.js +0 -1610
- package/dist/vue-ui-dashboard-DLvGJXJY.js +0 -512
- package/dist/vue-ui-donut-ZIRebAWc.js +0 -2418
- package/dist/vue-ui-dumbbell-gDYjU2oF.js +0 -1564
- package/dist/vue-ui-funnel-BtaYaU0r.js +0 -781
- package/dist/vue-ui-galaxy-BMp-HzDh.js +0 -1076
- package/dist/vue-ui-gauge-CBou0cFE.js +0 -925
- package/dist/vue-ui-horizontal-bar-BuwxI7d1.js +0 -1689
- package/dist/vue-ui-kpi-ByxoO01r.js +0 -96
- package/dist/vue-ui-mini-loader-D9pprk2c.js +0 -125
- package/dist/vue-ui-molecule-BqJJq49_.js +0 -932
- package/dist/vue-ui-onion-CRQOxurS.js +0 -1199
- package/dist/vue-ui-parallel-coordinate-plot-Dhn18RtR.js +0 -1412
- package/dist/vue-ui-quick-chart-DAhSXYnp.js +0 -2443
- package/dist/vue-ui-rating-DbxK-ftN.js +0 -352
- package/dist/vue-ui-relation-circle-Cb33DMZo.js +0 -917
- package/dist/vue-ui-ridgeline-D7aArzQk.js +0 -1627
- package/dist/vue-ui-sparkhistogram-D1oFTrvt.js +0 -575
- package/dist/vue-ui-sparkstackbar-BlFio0lP.js +0 -674
- package/dist/vue-ui-stackbar-Cu13EdVa.js +0 -2322
- package/dist/vue-ui-stackline-DKL0o_-3.js +0 -2427
- package/dist/vue-ui-table-heatmap-CSI482KG.js +0 -338
- package/dist/vue-ui-thermometer-D6Czx7Fb.js +0 -769
- package/dist/vue-ui-treemap-BOEYCOdk.js +0 -1727
- package/dist/vue-ui-waffle-BrM8IHdG.js +0 -1367
- package/dist/vue-ui-wheel-BNsajigQ.js +0 -884
- package/dist/vue-ui-xy-Dt_1bSBT.js +0 -1364
|
@@ -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 {
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import {
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import {
|
|
2
|
+
import { A as t, Bt as n, Dt as r, H as i, I as a, Jt as o, L as s, N as c, P as l, S as u, U as d, V as ee, Vt as f, X as p, bt as te, d as ne, i as re, it as ie, jt as ae, k as oe, m as se, ot as ce, pt as le, q as ue, t as de, tt as fe, zt as pe } from "./lib-BuMGJ_a0.js";
|
|
3
|
+
import { n as me, t as he } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as m } from "./useTimeLabels-B9CEuiLZ.js";
|
|
5
|
+
import { t as ge } from "./useConfig-BilxnBNr.js";
|
|
6
|
+
import { n as _e, t as ve } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
+
import { t as ye } from "./useNestedProp--NSEmhOH.js";
|
|
8
|
+
import { t as be } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
+
import { t as xe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
10
|
+
import { l as Se, t as Ce } from "./useResponsive-ZtArZtUf.js";
|
|
11
|
+
import { t as we } from "./DefGrad-DVBqDjhO.js";
|
|
12
|
+
import { t as Te } from "./A11yDataTable-DdRsVULz.js";
|
|
13
|
+
import { t as Ee } from "./useChartAccessibility-DYqac8yF.js";
|
|
14
|
+
import { t as De } from "./usePrefersMotion-BC-CsqR1.js";
|
|
15
|
+
import { t as Oe } from "./vue_ui_sparkline-auZhap6Y.js";
|
|
16
|
+
import { Fragment as h, computed as g, createBlock as ke, createCommentVNode as _, createElementBlock as v, createElementVNode as y, createTextVNode as Ae, createVNode as je, defineAsyncComponent as Me, guardReactiveProps as Ne, nextTick as b, normalizeProps as Pe, normalizeStyle as x, onBeforeUnmount as Fe, onMounted as Ie, openBlock as S, ref as C, renderList as w, renderSlot as T, shallowRef as Le, toDisplayString as Re, toRefs as ze, unref as E, watch as D, watchEffect as Be, withCtx as Ve } from "vue";
|
|
16
17
|
//#region src/atoms/SparklinePulse.vue
|
|
17
|
-
var
|
|
18
|
+
var He = {
|
|
18
19
|
key: 0,
|
|
19
20
|
style: { "pointer-events": "none" }
|
|
20
|
-
},
|
|
21
|
+
}, Ue = [
|
|
21
22
|
"r",
|
|
22
23
|
"fill",
|
|
23
24
|
"filter"
|
|
24
|
-
],
|
|
25
|
+
], We = [
|
|
25
26
|
"begin",
|
|
26
27
|
"dur",
|
|
27
28
|
"repeatCount",
|
|
@@ -30,12 +31,12 @@ var Be = {
|
|
|
30
31
|
"keySplines",
|
|
31
32
|
"keyTimes",
|
|
32
33
|
"keyPoints"
|
|
33
|
-
],
|
|
34
|
+
], Ge = ["href"], Ke = [
|
|
34
35
|
"dur",
|
|
35
36
|
"repeatCount",
|
|
36
37
|
"fill",
|
|
37
38
|
"values"
|
|
38
|
-
],
|
|
39
|
+
], qe = ["r", "fill"], O = [
|
|
39
40
|
"begin",
|
|
40
41
|
"dur",
|
|
41
42
|
"repeatCount",
|
|
@@ -43,7 +44,7 @@ var Be = {
|
|
|
43
44
|
"keySplines",
|
|
44
45
|
"keyTimes",
|
|
45
46
|
"keyPoints"
|
|
46
|
-
],
|
|
47
|
+
], Je = ["href"], k = ["dur", "repeatCount"], Ye = {
|
|
47
48
|
__name: "SparklinePulse",
|
|
48
49
|
props: {
|
|
49
50
|
uid: {
|
|
@@ -112,7 +113,7 @@ var Be = {
|
|
|
112
113
|
}
|
|
113
114
|
},
|
|
114
115
|
setup(e) {
|
|
115
|
-
let t = e, n =
|
|
116
|
+
let t = e, n = g(() => Math.min(t.pulseTrailLength, 45)), r = g(() => !!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 Be = {
|
|
|
136
137
|
i();
|
|
137
138
|
return;
|
|
138
139
|
}
|
|
139
|
-
await
|
|
140
|
+
await b(), i();
|
|
140
141
|
}), D(() => t.pulsePathId, async () => {
|
|
141
|
-
await
|
|
142
|
-
}),
|
|
142
|
+
await b(), i();
|
|
143
|
+
}), Fe(() => {
|
|
143
144
|
i();
|
|
144
|
-
}), (t, i) => r.value ? (
|
|
145
|
+
}), (t, i) => r.value ? (S(), v("g", He, [(S(!0), v(h, null, w(n.value, (t, n) => (S(), v(h, null, [n % 3 == 0 ? (S(), v("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
|
+
}, [y("animateMotion", {
|
|
151
152
|
begin: a(e.pulseBegin, n * 10),
|
|
152
153
|
dur: e.pulseDur,
|
|
153
154
|
repeatCount: e.pulseRepeatCount,
|
|
@@ -157,19 +158,19 @@ var Be = {
|
|
|
157
158
|
keyTimes: e.pulseMotion.keyTimes || void 0,
|
|
158
159
|
keyPoints: e.pulseKeyPoints,
|
|
159
160
|
rotate: "auto"
|
|
160
|
-
}, [
|
|
161
|
+
}, [y("mpath", { href: `#${e.pulsePathId}` }, null, 8, Ge)], 8, We), y("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, Ke)], 8, Ue)) : _("", !0)], 64))), 256)), (S(), v("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
|
+
}, [y("animateMotion", {
|
|
173
174
|
begin: e.pulseBegin,
|
|
174
175
|
dur: e.pulseDur,
|
|
175
176
|
repeatCount: e.pulseRepeatCount,
|
|
@@ -178,19 +179,19 @@ var Be = {
|
|
|
178
179
|
keyTimes: e.pulseMotion.keyTimes || void 0,
|
|
179
180
|
keyPoints: e.pulseKeyPoints,
|
|
180
181
|
rotate: "auto"
|
|
181
|
-
}, [
|
|
182
|
+
}, [y("mpath", { href: `#${e.pulsePathId}` }, null, 8, Je)], 8, O), y("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, qe))])) : _("", !0);
|
|
188
189
|
}
|
|
189
190
|
}, A = {
|
|
190
191
|
canvas: null,
|
|
191
192
|
ctx: null
|
|
192
193
|
};
|
|
193
|
-
function
|
|
194
|
+
function Xe() {
|
|
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 Je() {
|
|
|
201
202
|
}
|
|
202
203
|
return A.ctx;
|
|
203
204
|
}
|
|
204
|
-
function
|
|
205
|
+
function Ze(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 = Qe(n, t), i = Xe();
|
|
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 && !$e(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 Qe(e, t = null) {
|
|
239
240
|
return e !== "currentColor" || typeof window > "u" || !t ? e : window.getComputedStyle(t).color || e;
|
|
240
241
|
}
|
|
241
|
-
function
|
|
242
|
+
function $e(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, Ze(n * 255);
|
|
252
253
|
}
|
|
253
|
-
function
|
|
254
|
+
function et(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 tt(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 nt(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 rt(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 tt(e, t, n, r = !0) {
|
|
|
298
299
|
}
|
|
299
300
|
//#endregion
|
|
300
301
|
//#region src/SPG/index.js
|
|
301
|
-
var
|
|
302
|
-
function
|
|
302
|
+
var it = "http://www.w3.org/2000/svg";
|
|
303
|
+
function at(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(it, "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(it, "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 ot(e) {
|
|
313
314
|
if (e) try {
|
|
314
315
|
e.svgElement?.remove?.();
|
|
315
316
|
} catch {}
|
|
316
317
|
}
|
|
317
|
-
function
|
|
318
|
+
function st(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 ct(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 lt(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,7 +337,7 @@ function st(e, t, n, r, i, a) {
|
|
|
336
337
|
}
|
|
337
338
|
return u;
|
|
338
339
|
}
|
|
339
|
-
function
|
|
340
|
+
function ut(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
343
|
let c = s > 1 ? o / (s - 1) : 0, l = e.getPointAtLength(t), u = l.x, d = l.x, ee = l.y, f = l.y, p = `M ${R(L(l.x, i))} ${R(L(l.y, i))}`;
|
|
@@ -354,7 +355,7 @@ function ct(e, t, n, r, i, a) {
|
|
|
354
355
|
}
|
|
355
356
|
};
|
|
356
357
|
}
|
|
357
|
-
function
|
|
358
|
+
function dt(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 ? `#${tt(n)}${tt(r)}${tt(i)}` : `rgba(${n}, ${r}, ${i}, ${L(t, 4).toString()})`;
|
|
405
406
|
}
|
|
406
|
-
function
|
|
407
|
+
function ft(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 ut(e) {
|
|
|
413
414
|
}
|
|
414
415
|
return t;
|
|
415
416
|
}
|
|
416
|
-
function
|
|
417
|
+
function pt(e, t, n) {
|
|
417
418
|
return `<path d="${W(e)}" stroke="${W(t)}" ${n} />`;
|
|
418
419
|
}
|
|
419
|
-
function
|
|
420
|
+
function mt(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 ft(e) {
|
|
|
426
427
|
}
|
|
427
428
|
return `<path d="${W(e.pathData)}" ${t.join(" ")} />`;
|
|
428
429
|
}
|
|
429
|
-
function
|
|
430
|
+
function ht(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 pt(e, t) {
|
|
|
434
435
|
function W(e) {
|
|
435
436
|
return String(e).replaceAll("&", "&").replaceAll("\"", """).replaceAll("<", "<").replaceAll(">", ">");
|
|
436
437
|
}
|
|
437
|
-
function
|
|
438
|
+
function gt(e, t = null, n = {}) {
|
|
438
439
|
return new Promise((r, i) => {
|
|
439
440
|
let a = null;
|
|
440
441
|
try {
|
|
@@ -442,16 +443,16 @@ function mt(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 =
|
|
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 = nt(c["stroke-width"]), d = typeof n.strokeWidth == "number" && n.strokeWidth > 0 ? n.strokeWidth : typeof u == "number" && u > 0 ? u : 1;
|
|
447
|
+
a = at(e);
|
|
447
448
|
let ee = a.pathElement, f = ee.getTotalLength(), p = i === null ? N(t, n.colorReferenceElement) : [];
|
|
448
449
|
if (i === null && (!(f > 0) || p.length === 1)) {
|
|
449
|
-
let t =
|
|
450
|
+
let t = ht([mt({
|
|
450
451
|
pathData: e,
|
|
451
452
|
stroke: U(p[0]),
|
|
452
453
|
segmentAttributeMap: c
|
|
453
454
|
})], l);
|
|
454
|
-
|
|
455
|
+
ot(a), r(t);
|
|
455
456
|
return;
|
|
456
457
|
}
|
|
457
458
|
let te = n.colorSpace ?? "linearRGB";
|
|
@@ -460,58 +461,58 @@ function mt(e, t = null, n = {}) {
|
|
|
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
463
|
let ne = i === null ? null : N(n.temperatureColors, n.colorReferenceElement), re = i === null ? (() => {
|
|
463
|
-
let e =
|
|
464
|
+
let e = dt(p), 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
|
-
})() : [], ie =
|
|
470
|
+
})() : [], ie = st(f, d, n.maxSegmentLength), ae = ct(f, n.segments, ie), oe = f / ae, se = typeof n.overlap == "number" && n.overlap >= 0 ? n.overlap : d * .5, ce = oe * .45;
|
|
470
471
|
se > ce && (se = ce);
|
|
471
|
-
let le = typeof n.samplePointLimitPerSegment == "number" && n.samplePointLimitPerSegment > 10 ? n.samplePointLimitPerSegment : 250, ue =
|
|
472
|
+
let le = typeof n.samplePointLimitPerSegment == "number" && n.samplePointLimitPerSegment > 10 ? n.samplePointLimitPerSegment : 250, ue = ft(c), de = [], fe = i === null ? null : [], pe = i === null ? null : [], me = 0, he = i === null ? re.length - 2 : 0, m = 0, ge = () => {
|
|
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 (; m < ae && performance.now() - e < t;) {
|
|
475
|
+
let e = m * oe, t = (m + 1) * oe, n = e, r = t;
|
|
476
|
+
if (m !== 0 && (n = e - se), m !== ae - 1 && (r = t + se), n = I(n, 0, f), r = I(r, 0, f), r > n) if (i !== null) {
|
|
477
|
+
let e = ut(ee, n, r, s, o, le);
|
|
478
|
+
fe.push(e.pathData), pe.push(e.bounds);
|
|
478
479
|
} else {
|
|
479
480
|
let e = (n + r) * .5 / f;
|
|
480
|
-
for (;
|
|
481
|
-
let t = z(re, e, te,
|
|
482
|
-
de.push(
|
|
481
|
+
for (; me < he && e > re[me + 1].position;) me += 1;
|
|
482
|
+
let t = z(re, e, te, me), i = lt(ee, n, r, s, o, le);
|
|
483
|
+
de.push(pt(i, t, ue));
|
|
483
484
|
}
|
|
484
|
-
|
|
485
|
+
m += 1;
|
|
485
486
|
}
|
|
486
|
-
if (
|
|
487
|
-
requestAnimationFrame(
|
|
487
|
+
if (m < ae) {
|
|
488
|
+
requestAnimationFrame(ge);
|
|
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 < pe.length; n += 1) {
|
|
494
|
+
let r = pe[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
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 < pe.length; a += 1) {
|
|
500
|
+
let o = pe[a], s = rt(((i === "vertical" ? o.minY : o.minX) + (i === "vertical" ? o.maxY : o.maxX)) * .5, e, t, !0), c = U(i === "vertical" ? et(n, r, s, te) : et(r, n, s, te)), l = fe[a];
|
|
501
|
+
de.push(pt(l, c, ue));
|
|
501
502
|
}
|
|
502
503
|
}
|
|
503
|
-
let c =
|
|
504
|
-
|
|
504
|
+
let c = ht(de, l);
|
|
505
|
+
ot(a), r(c);
|
|
505
506
|
};
|
|
506
|
-
requestAnimationFrame(
|
|
507
|
+
requestAnimationFrame(ge);
|
|
507
508
|
} catch (e) {
|
|
508
|
-
|
|
509
|
+
ot(a), i(e);
|
|
509
510
|
}
|
|
510
511
|
});
|
|
511
512
|
}
|
|
512
513
|
//#endregion
|
|
513
514
|
//#region src/atoms/SparklineGradientPath.vue
|
|
514
|
-
var
|
|
515
|
+
var _t = ["innerHTML"], vt = {
|
|
515
516
|
__name: "SparklineGradientPath",
|
|
516
517
|
props: {
|
|
517
518
|
svgPathData: {
|
|
@@ -540,7 +541,7 @@ var ht = ["innerHTML"], gt = {
|
|
|
540
541
|
}
|
|
541
542
|
},
|
|
542
543
|
setup(e) {
|
|
543
|
-
let t = e, n =
|
|
544
|
+
let t = e, n = C(""), r = 0;
|
|
544
545
|
return D(() => [
|
|
545
546
|
t.enabled,
|
|
546
547
|
t.svgPathData,
|
|
@@ -554,7 +555,7 @@ var ht = ["innerHTML"], gt = {
|
|
|
554
555
|
n.value = "";
|
|
555
556
|
return;
|
|
556
557
|
}
|
|
557
|
-
let a = await
|
|
558
|
+
let a = await gt(t.svgPathData, null, {
|
|
558
559
|
segments: t.segments,
|
|
559
560
|
temperatureMode: "vertical",
|
|
560
561
|
temperatureColors: [t.highColor, t.lowColor],
|
|
@@ -566,54 +567,54 @@ var ht = ["innerHTML"], gt = {
|
|
|
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) => (S(), v("g", { innerHTML: n.value }, null, 8, _t));
|
|
570
571
|
}
|
|
571
|
-
},
|
|
572
|
+
}, yt = /* @__PURE__ */ e({ default: () => G }), bt = ["id"], xt = ["id"], St = { style: { position: "relative" } }, Ct = [
|
|
572
573
|
"xmlns",
|
|
573
574
|
"viewBox",
|
|
574
575
|
"aria-describedby"
|
|
575
|
-
],
|
|
576
|
+
], wt = ["width", "height"], Tt = ["id"], Et = [
|
|
576
577
|
"id",
|
|
577
578
|
"y1",
|
|
578
579
|
"y2"
|
|
579
|
-
],
|
|
580
|
+
], Dt = ["stop-color", "offset"], Ot = { key: 1 }, kt = [
|
|
580
581
|
"data-cy",
|
|
581
582
|
"d",
|
|
582
583
|
"fill"
|
|
583
|
-
],
|
|
584
|
+
], At = [
|
|
584
585
|
"id",
|
|
585
586
|
"d",
|
|
586
587
|
"stroke-width"
|
|
587
|
-
],
|
|
588
|
+
], jt = [
|
|
588
589
|
"d",
|
|
589
590
|
"stroke",
|
|
590
591
|
"stroke-width",
|
|
591
592
|
"stroke-dasharray"
|
|
592
|
-
],
|
|
593
|
+
], Mt = [
|
|
593
594
|
"d",
|
|
594
595
|
"stroke",
|
|
595
596
|
"stroke-width"
|
|
596
|
-
],
|
|
597
|
+
], Nt = [
|
|
597
598
|
"id",
|
|
598
599
|
"d",
|
|
599
600
|
"stroke-width"
|
|
600
|
-
],
|
|
601
|
+
], Pt = [
|
|
601
602
|
"d",
|
|
602
603
|
"stroke",
|
|
603
604
|
"stroke-width",
|
|
604
605
|
"stroke-dasharray"
|
|
605
|
-
],
|
|
606
|
+
], Ft = [
|
|
606
607
|
"d",
|
|
607
608
|
"stroke",
|
|
608
609
|
"stroke-width"
|
|
609
|
-
],
|
|
610
|
+
], It = [
|
|
610
611
|
"x",
|
|
611
612
|
"y",
|
|
612
613
|
"width",
|
|
613
614
|
"height",
|
|
614
615
|
"fill",
|
|
615
616
|
"rx"
|
|
616
|
-
],
|
|
617
|
+
], Lt = [
|
|
617
618
|
"x1",
|
|
618
619
|
"x2",
|
|
619
620
|
"y1",
|
|
@@ -621,7 +622,7 @@ var ht = ["innerHTML"], gt = {
|
|
|
621
622
|
"stroke",
|
|
622
623
|
"stroke-width",
|
|
623
624
|
"stroke-dasharray"
|
|
624
|
-
],
|
|
625
|
+
], Rt = [
|
|
625
626
|
"x1",
|
|
626
627
|
"x2",
|
|
627
628
|
"y1",
|
|
@@ -629,20 +630,20 @@ var ht = ["innerHTML"], gt = {
|
|
|
629
630
|
"stroke",
|
|
630
631
|
"stroke-dasharray",
|
|
631
632
|
"stroke-width"
|
|
632
|
-
],
|
|
633
|
+
], zt = [
|
|
633
634
|
"cx",
|
|
634
635
|
"cy",
|
|
635
636
|
"r",
|
|
636
637
|
"fill",
|
|
637
638
|
"stroke",
|
|
638
639
|
"stroke-width"
|
|
639
|
-
],
|
|
640
|
+
], Bt = [
|
|
640
641
|
"x",
|
|
641
642
|
"y",
|
|
642
643
|
"font-size",
|
|
643
644
|
"font-weight",
|
|
644
645
|
"fill"
|
|
645
|
-
],
|
|
646
|
+
], Vt = [
|
|
646
647
|
"x",
|
|
647
648
|
"y",
|
|
648
649
|
"height",
|
|
@@ -650,7 +651,7 @@ var ht = ["innerHTML"], gt = {
|
|
|
650
651
|
"onMouseenter",
|
|
651
652
|
"onMouseleave",
|
|
652
653
|
"onClick"
|
|
653
|
-
],
|
|
654
|
+
], Ht = {
|
|
654
655
|
key: 0,
|
|
655
656
|
style: {
|
|
656
657
|
position: "absolute",
|
|
@@ -660,7 +661,7 @@ var ht = ["innerHTML"], gt = {
|
|
|
660
661
|
},
|
|
661
662
|
"data-dom-to-png-ignore": "",
|
|
662
663
|
"aria-hidden": "true"
|
|
663
|
-
}, G = /*#__PURE__*/
|
|
664
|
+
}, G = /*#__PURE__*/ xe({
|
|
664
665
|
__name: "vue-ui-sparkline",
|
|
665
666
|
props: {
|
|
666
667
|
config: {
|
|
@@ -693,18 +694,42 @@ var ht = ["innerHTML"], gt = {
|
|
|
693
694
|
}
|
|
694
695
|
},
|
|
695
696
|
emits: ["hoverIndex", "selectDatapoint"],
|
|
696
|
-
setup(e, { emit:
|
|
697
|
-
let
|
|
698
|
-
|
|
697
|
+
setup(e, { emit: xe }) {
|
|
698
|
+
let He = Me(() => import("./PackageVersion--QCMh5k_.js").then((e) => e.t)), Ue = Me(() => import("./SparkTooltip-BaYtEKS6.js")), { vue_ui_sparkline: We } = ge(), { isThemeValid: Ge, warnInvalidTheme: Ke } = be(), qe = De(), O = e, Je = g(() => Array.isArray(O.dataset) && O.dataset.length > 0), k = C(ue()), A = C(null), Xe = C(null), Ze = C(null), j = C(null), M = C(null), N = C(L());
|
|
699
|
+
me({
|
|
700
|
+
config: () => N.value,
|
|
701
|
+
dataset: () => O.dataset,
|
|
702
|
+
component: "VueUiSparkline",
|
|
703
|
+
rules: [
|
|
704
|
+
he.emptyArray,
|
|
705
|
+
{
|
|
706
|
+
test: (e) => e.length > 500,
|
|
707
|
+
message: [
|
|
708
|
+
"👀 The dataset has > 500 datapoints. Consider if you really need this level of detail.",
|
|
709
|
+
"",
|
|
710
|
+
"▶️ Use larger time scales, or aggregated values"
|
|
711
|
+
]
|
|
712
|
+
},
|
|
713
|
+
{
|
|
714
|
+
test: (e) => e.length > 1095,
|
|
715
|
+
message: [
|
|
716
|
+
"👀 The dataset has > 1095 datapoints. Above this threshold, the dataset is computed through an LTTB algorithm, to preserve the shape of the data without increasing the number of datapoints.",
|
|
717
|
+
"",
|
|
718
|
+
"▶️ If you need this level of detail, you can change config.downsample.threshold and set a higher value. Note that performance will be impacted."
|
|
719
|
+
]
|
|
720
|
+
}
|
|
721
|
+
]
|
|
722
|
+
});
|
|
723
|
+
function Qe(e) {
|
|
699
724
|
return O.config?.skeletonDataset && Array.isArray(O.config.skeletonDataset) ? O.config.skeletonDataset.map((e) => ({
|
|
700
725
|
period: "-",
|
|
701
726
|
value: e
|
|
702
|
-
})) :
|
|
727
|
+
})) : ie(e).map((e) => ({
|
|
703
728
|
period: "-",
|
|
704
729
|
value: e
|
|
705
730
|
}));
|
|
706
731
|
}
|
|
707
|
-
let
|
|
732
|
+
let $e = g(() => o({
|
|
708
733
|
defaultConfig: {
|
|
709
734
|
gradientPath: { show: !1 },
|
|
710
735
|
temperatureColors: { show: !1 },
|
|
@@ -726,33 +751,33 @@ var ht = ["innerHTML"], gt = {
|
|
|
726
751
|
}
|
|
727
752
|
},
|
|
728
753
|
userConfig: N.value.skeletonConfig ?? {}
|
|
729
|
-
})), { loading: P, FINAL_DATASET: F, manualLoading:
|
|
730
|
-
...
|
|
754
|
+
})), { loading: P, FINAL_DATASET: F, manualLoading: et } = _e({
|
|
755
|
+
...ze(O),
|
|
731
756
|
FINAL_CONFIG: N,
|
|
732
757
|
prepareConfig: L,
|
|
733
758
|
callback: () => {
|
|
734
759
|
Promise.resolve().then(async () => {
|
|
735
|
-
await
|
|
760
|
+
await b(), _t();
|
|
736
761
|
});
|
|
737
762
|
},
|
|
738
|
-
skeletonDataset:
|
|
739
|
-
skeletonConfig:
|
|
763
|
+
skeletonDataset: Qe(12),
|
|
764
|
+
skeletonConfig: o({
|
|
740
765
|
defaultConfig: N.value,
|
|
741
|
-
userConfig:
|
|
766
|
+
userConfig: $e.value
|
|
742
767
|
})
|
|
743
|
-
}), { svgRef: I } =
|
|
768
|
+
}), { svgRef: I } = Ee({ config: N.value.style.title });
|
|
744
769
|
function L() {
|
|
745
|
-
let e =
|
|
770
|
+
let e = ye({
|
|
746
771
|
userConfig: O.config,
|
|
747
|
-
defaultConfig:
|
|
772
|
+
defaultConfig: We
|
|
748
773
|
}), t = {}, n = e.theme;
|
|
749
|
-
if (n) if (!
|
|
774
|
+
if (n) if (!Ge.value(e)) Ke(e), t = e;
|
|
750
775
|
else {
|
|
751
|
-
let r =
|
|
752
|
-
userConfig:
|
|
776
|
+
let r = ye({
|
|
777
|
+
userConfig: Oe[n] || O.config,
|
|
753
778
|
defaultConfig: e
|
|
754
779
|
});
|
|
755
|
-
t = { ...
|
|
780
|
+
t = { ...ye({
|
|
756
781
|
userConfig: O.config,
|
|
757
782
|
defaultConfig: r
|
|
758
783
|
}) };
|
|
@@ -760,10 +785,10 @@ var ht = ["innerHTML"], gt = {
|
|
|
760
785
|
else t = e;
|
|
761
786
|
return t;
|
|
762
787
|
}
|
|
763
|
-
let R =
|
|
764
|
-
function
|
|
765
|
-
if (!
|
|
766
|
-
|
|
788
|
+
let R = g(() => N.value?.style?.line.pulse || {}), tt = g(() => `${Math.max(200, Number(R.value.durationMs) || 4e3) / 1e3}s`), nt = C(0), rt = g(() => R.value?.begin || "0ms"), it = C("0;1"), at = g(() => R.value?.loop === !1 ? "1" : "indefinite"), ot = g(() => R.value?.loop === !1 ? "freeze" : void 0), st = g(() => R.value.trail.show && dt.value.lengthPx || 1), ct = g(() => !!R.value?.show && !Q.value && !qe.value && !P.value && (J.value?.length || 0) > 1);
|
|
789
|
+
function lt() {
|
|
790
|
+
if (!ct.value) {
|
|
791
|
+
nt.value = 0;
|
|
767
792
|
return;
|
|
768
793
|
}
|
|
769
794
|
let e = I.value;
|
|
@@ -771,18 +796,18 @@ var ht = ["innerHTML"], gt = {
|
|
|
771
796
|
let t = `#${G.value}`, n = e.querySelector?.(t);
|
|
772
797
|
if (n && typeof n.getTotalLength == "function") {
|
|
773
798
|
let e = n.getTotalLength();
|
|
774
|
-
Number.isFinite(e) && e > 0 && (
|
|
799
|
+
Number.isFinite(e) && e > 0 && (nt.value = e);
|
|
775
800
|
return;
|
|
776
801
|
}
|
|
777
802
|
requestAnimationFrame(() => {
|
|
778
803
|
let n = e.querySelector?.(t);
|
|
779
804
|
if (n && typeof n.getTotalLength == "function") {
|
|
780
805
|
let e = n.getTotalLength();
|
|
781
|
-
Number.isFinite(e) && e > 0 && (
|
|
806
|
+
Number.isFinite(e) && e > 0 && (nt.value = e);
|
|
782
807
|
}
|
|
783
808
|
});
|
|
784
809
|
}
|
|
785
|
-
let
|
|
810
|
+
let ut = g(() => {
|
|
786
811
|
let e = R.value?.easing || "ease-in-out", t = {
|
|
787
812
|
ease: [
|
|
788
813
|
.25,
|
|
@@ -827,7 +852,7 @@ var ht = ["innerHTML"], gt = {
|
|
|
827
852
|
] : t[e] || t["ease-in-out"]).join(" "),
|
|
828
853
|
keyTimes: "0;1"
|
|
829
854
|
};
|
|
830
|
-
}),
|
|
855
|
+
}), dt = g(() => {
|
|
831
856
|
let e = R.value?.trail || {}, t = N.value.style.line.strokeWidth || 1;
|
|
832
857
|
return {
|
|
833
858
|
show: e.show !== !1,
|
|
@@ -837,18 +862,18 @@ var ht = ["innerHTML"], gt = {
|
|
|
837
862
|
fadeIn: .5,
|
|
838
863
|
fadeOut: .2
|
|
839
864
|
};
|
|
840
|
-
}), z =
|
|
865
|
+
}), z = g(() => r({
|
|
841
866
|
data: F.value,
|
|
842
867
|
threshold: N.value.downsample.threshold
|
|
843
868
|
}));
|
|
844
|
-
|
|
869
|
+
g(() => {
|
|
845
870
|
if (!N.value.temperatureColors.show) return !1;
|
|
846
871
|
let e = F.value.map(({ value: e }) => e).filter((e) => Number.isFinite(e));
|
|
847
872
|
return new Set(e).size <= 1;
|
|
848
873
|
}), D(() => O.config, (e) => {
|
|
849
|
-
P.value || (N.value = L()),
|
|
874
|
+
P.value || (N.value = L()), Kt(), K.value.chartWidth = N.value.style.chartWidth;
|
|
850
875
|
}, { deep: !0 }), D(() => O.dataset, (e) => {
|
|
851
|
-
Array.isArray(e) && e.length > 0 && (
|
|
876
|
+
Array.isArray(e) && e.length > 0 && (et.value = !1), B.value = r({
|
|
852
877
|
data: F.value.map((e) => ({
|
|
853
878
|
...e,
|
|
854
879
|
value: [void 0].includes(e.value) ? null : e.value
|
|
@@ -856,9 +881,9 @@ var ht = ["innerHTML"], gt = {
|
|
|
856
881
|
threshold: N.value.downsample.threshold
|
|
857
882
|
});
|
|
858
883
|
}, { deep: !0 });
|
|
859
|
-
let B =
|
|
884
|
+
let B = C(V());
|
|
860
885
|
function V() {
|
|
861
|
-
return
|
|
886
|
+
return r({
|
|
862
887
|
data: F.value.map((e) => N.value.style.animation.show && F.value.length > 1 ? {
|
|
863
888
|
...e,
|
|
864
889
|
value: null
|
|
@@ -869,78 +894,78 @@ var ht = ["innerHTML"], gt = {
|
|
|
869
894
|
threshold: N.value.downsample.threshold
|
|
870
895
|
});
|
|
871
896
|
}
|
|
872
|
-
let H =
|
|
897
|
+
let H = Le(null), U = Le(null), ft = C(!1), pt = C(0), mt = C([]), ht = C(""), W = g(() => {
|
|
873
898
|
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
899
|
return `${e}#${!!t.show}#${t.animationFrames || 0}#${n}`;
|
|
875
900
|
});
|
|
876
|
-
function
|
|
877
|
-
|
|
901
|
+
function gt() {
|
|
902
|
+
pt.value &&= (cancelAnimationFrame(pt.value), 0), mt.value.forEach((e) => clearTimeout(e)), mt.value = [], ft.value = !1;
|
|
878
903
|
}
|
|
879
|
-
function
|
|
904
|
+
function _t() {
|
|
880
905
|
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,
|
|
906
|
+
if (n && n === ht.value && (ft.value || B.value.length === t.length)) return;
|
|
907
|
+
if (gt(), r || !e.show || P.value || t.length <= 1 || qe.value) {
|
|
908
|
+
B.value = t, ht.value = n;
|
|
884
909
|
return;
|
|
885
910
|
}
|
|
886
|
-
|
|
911
|
+
ft.value = !0, ht.value = n, B.value = [];
|
|
887
912
|
let i = Math.max(1, Number(e.animationFrames) || 1), a = Math.max(1, Math.floor(i / t.length)), o = 0, s = () => {
|
|
888
913
|
if (n !== W.value) {
|
|
889
|
-
|
|
914
|
+
gt();
|
|
890
915
|
return;
|
|
891
916
|
}
|
|
892
917
|
if (o < t.length) {
|
|
893
918
|
B.value.push(t[o]);
|
|
894
919
|
let e = setTimeout(() => {
|
|
895
|
-
|
|
920
|
+
pt.value = requestAnimationFrame(s);
|
|
896
921
|
}, a);
|
|
897
|
-
|
|
898
|
-
} else B.value = t,
|
|
922
|
+
mt.value.push(e), o += 1;
|
|
923
|
+
} else B.value = t, gt();
|
|
899
924
|
};
|
|
900
|
-
|
|
925
|
+
pt.value = requestAnimationFrame(s);
|
|
901
926
|
}
|
|
902
927
|
D(W, () => {
|
|
903
|
-
|
|
904
|
-
}),
|
|
905
|
-
|
|
906
|
-
}),
|
|
907
|
-
|
|
928
|
+
_t();
|
|
929
|
+
}), Ie(() => {
|
|
930
|
+
Kt(), _t();
|
|
931
|
+
}), Fe(() => {
|
|
932
|
+
gt();
|
|
908
933
|
});
|
|
909
|
-
let
|
|
934
|
+
let yt = C(0);
|
|
910
935
|
D(() => P.value, async (e) => {
|
|
911
|
-
e || (await
|
|
912
|
-
}), D(() =>
|
|
913
|
-
e || P.value || (await
|
|
936
|
+
e || (await b(), yt.value += 1);
|
|
937
|
+
}), D(() => ft.value, async (e) => {
|
|
938
|
+
e || P.value || (await b(), yt.value += 1);
|
|
914
939
|
});
|
|
915
|
-
let G =
|
|
916
|
-
async function
|
|
917
|
-
|
|
940
|
+
let G = g(() => `sparkline_line_path_${k.value}`), Ut = C(!0);
|
|
941
|
+
async function Wt() {
|
|
942
|
+
Ut.value = !1, await b(), Ut.value = !0, await b(), lt();
|
|
918
943
|
}
|
|
919
|
-
let
|
|
920
|
-
function
|
|
921
|
-
if (
|
|
944
|
+
let Gt = g(() => !!N.value.debug);
|
|
945
|
+
function Kt() {
|
|
946
|
+
if (ae(O.dataset) ? (fe({
|
|
922
947
|
componentName: "VueUiSparkline",
|
|
923
948
|
type: "dataset",
|
|
924
|
-
debug:
|
|
925
|
-
}),
|
|
926
|
-
|
|
949
|
+
debug: Gt.value
|
|
950
|
+
}), et.value = !0) : O.dataset.forEach((e, t) => {
|
|
951
|
+
le({
|
|
927
952
|
datasetObject: e,
|
|
928
953
|
requiredAttributes: ["period", "value"]
|
|
929
954
|
}).forEach((e) => {
|
|
930
|
-
|
|
955
|
+
fe({
|
|
931
956
|
componentName: "VueUiSparkline",
|
|
932
957
|
type: "datasetSerieAttribute",
|
|
933
958
|
property: e,
|
|
934
959
|
index: t,
|
|
935
|
-
debug:
|
|
960
|
+
debug: Gt.value
|
|
936
961
|
});
|
|
937
962
|
});
|
|
938
|
-
}),
|
|
939
|
-
let e =
|
|
940
|
-
let { width: e, height: t } =
|
|
963
|
+
}), ae(O.dataset) || (et.value = N.value.loading), N.value.responsive) {
|
|
964
|
+
let e = Se(() => {
|
|
965
|
+
let { width: e, height: t } = Ce({
|
|
941
966
|
chart: A.value,
|
|
942
|
-
title: N.value.style.title.show && O.showInfo ?
|
|
943
|
-
source:
|
|
967
|
+
title: N.value.style.title.show && O.showInfo ? Xe.value : null,
|
|
968
|
+
source: Ze.value
|
|
944
969
|
});
|
|
945
970
|
requestAnimationFrame(() => {
|
|
946
971
|
K.value.width = e, K.value.height = t, K.value.chartWidth = N.value.style.chartWidth / 500 * e, K.value.padding = O.forcedPadding / 500 * e;
|
|
@@ -949,15 +974,15 @@ var ht = ["innerHTML"], gt = {
|
|
|
949
974
|
H.value && (U.value && H.value.unobserve(U.value), H.value.disconnect()), H.value = new ResizeObserver(e), U.value = A.value.parentNode, H.value.observe(U.value);
|
|
950
975
|
}
|
|
951
976
|
}
|
|
952
|
-
|
|
977
|
+
Fe(() => {
|
|
953
978
|
H.value && (U.value && H.value.unobserve(U.value), H.value.disconnect());
|
|
954
979
|
});
|
|
955
|
-
let K =
|
|
980
|
+
let K = C({
|
|
956
981
|
height: 80 * O.heightRatio,
|
|
957
982
|
width: 500,
|
|
958
983
|
chartWidth: N.value.style.chartWidth,
|
|
959
984
|
padding: O.forcedPadding
|
|
960
|
-
}),
|
|
985
|
+
}), qt = xe, q = g(() => {
|
|
961
986
|
let { top: e, right: t, bottom: n, left: r } = N.value.style.padding;
|
|
962
987
|
return {
|
|
963
988
|
top: e,
|
|
@@ -968,83 +993,83 @@ var ht = ["innerHTML"], gt = {
|
|
|
968
993
|
width: O.showInfo && N.value.style.dataLabel.show ? K.value.chartWidth - r - t : K.value.width - K.value.padding - r - t,
|
|
969
994
|
height: K.value.height - e - n
|
|
970
995
|
};
|
|
971
|
-
}),
|
|
996
|
+
}), Jt = g(() => [null, void 0].includes(N.value.style.scaleMin) ? Math.min(...B.value.map((e) => isNaN(e.value) || [
|
|
972
997
|
void 0,
|
|
973
998
|
null,
|
|
974
999
|
"NaN",
|
|
975
1000
|
NaN,
|
|
976
1001
|
Infinity,
|
|
977
1002
|
-Infinity
|
|
978
|
-
].includes(e.value) ? 0 : e.value || 0)) : N.value.style.scaleMin),
|
|
1003
|
+
].includes(e.value) ? 0 : e.value || 0)) : N.value.style.scaleMin), Yt = g(() => [null, void 0].includes(N.value.style.scaleMax) ? Math.max(...B.value.map((e) => isNaN(e.value) || [
|
|
979
1004
|
void 0,
|
|
980
1005
|
null,
|
|
981
1006
|
"NaN",
|
|
982
1007
|
NaN,
|
|
983
1008
|
Infinity,
|
|
984
1009
|
-Infinity
|
|
985
|
-
].includes(e.value) ? 0 : e.value || 0)) : N.value.style.scaleMax),
|
|
986
|
-
let e =
|
|
1010
|
+
].includes(e.value) ? 0 : e.value || 0)) : N.value.style.scaleMax), Xt = g(() => {
|
|
1011
|
+
let e = Jt.value >= 0 ? 0 : Jt.value;
|
|
987
1012
|
return Math.abs(e);
|
|
988
|
-
}),
|
|
989
|
-
function
|
|
990
|
-
return isNaN(e /
|
|
1013
|
+
}), Zt = g(() => Yt.value + Xt.value), Qt = g(() => q.value.bottom - q.value.height * $t(Xt.value));
|
|
1014
|
+
function $t(e) {
|
|
1015
|
+
return isNaN(e / Zt.value) ? 0 : e / Zt.value;
|
|
991
1016
|
}
|
|
992
|
-
let
|
|
993
|
-
|
|
994
|
-
let e = ++
|
|
1017
|
+
let en = g(() => z.value.length - 1 || 1), tn = C([]), nn = 0;
|
|
1018
|
+
Be(() => {
|
|
1019
|
+
let e = ++nn;
|
|
995
1020
|
(async () => {
|
|
996
|
-
let t = await
|
|
1021
|
+
let t = await m({
|
|
997
1022
|
values: z.value.map((e) => e.period),
|
|
998
1023
|
maxDatapoints: z.value.length,
|
|
999
1024
|
formatter: N.value.style.dataLabel.datetimeFormatter,
|
|
1000
1025
|
start: 0,
|
|
1001
1026
|
end: z.value.length
|
|
1002
1027
|
});
|
|
1003
|
-
e ===
|
|
1028
|
+
e === nn && (tn.value = t);
|
|
1004
1029
|
})();
|
|
1005
1030
|
});
|
|
1006
|
-
let J =
|
|
1031
|
+
let J = g(() => B.value.map((e, t) => {
|
|
1007
1032
|
let n = isNaN(e.value) || [
|
|
1008
1033
|
void 0,
|
|
1009
1034
|
"NaN",
|
|
1010
1035
|
NaN,
|
|
1011
1036
|
Infinity,
|
|
1012
1037
|
-Infinity
|
|
1013
|
-
].includes(e.value) ? 0 : e.value,
|
|
1038
|
+
].includes(e.value) ? 0 : e.value, r = q.value.width / en.value;
|
|
1014
1039
|
return {
|
|
1015
1040
|
value: e.value,
|
|
1016
1041
|
absoluteValue: n,
|
|
1017
|
-
period:
|
|
1018
|
-
plotValue: n +
|
|
1019
|
-
toMax:
|
|
1020
|
-
x: q.value.start + t *
|
|
1021
|
-
y: q.value.bottom - q.value.height *
|
|
1042
|
+
period: tn.value && tn.value[t] && tn.value[t].text ? tn.value[t].text : e.period,
|
|
1043
|
+
plotValue: n + Xt.value,
|
|
1044
|
+
toMax: $t(n + Xt.value),
|
|
1045
|
+
x: q.value.start + t * r,
|
|
1046
|
+
y: q.value.bottom - q.value.height * $t(n + Xt.value),
|
|
1022
1047
|
id: `plot_${k.value}_${t}`,
|
|
1023
|
-
color: Q.value ? N.value.style.bar.color : N.value.style.area.useGradient ?
|
|
1024
|
-
width:
|
|
1048
|
+
color: Q.value ? N.value.style.bar.color : N.value.style.area.useGradient ? f(N.value.style.line.color, .05 * (1 - t / en.value)) : N.value.style.line.color,
|
|
1049
|
+
width: r
|
|
1025
1050
|
};
|
|
1026
|
-
})),
|
|
1027
|
-
function
|
|
1051
|
+
})), rn = g(() => 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 = C(void 0), X = C(void 0);
|
|
1052
|
+
function an(e, t) {
|
|
1028
1053
|
N.value.events.datapointEnter && N.value.events.datapointEnter({
|
|
1029
1054
|
datapoint: e,
|
|
1030
1055
|
seriesIndex: t
|
|
1031
|
-
}), M.value = t, j.value = t, Y.value = e, X.value ||= e,
|
|
1056
|
+
}), M.value = t, j.value = t, Y.value = e, X.value ||= e, qt("hoverIndex", { index: t });
|
|
1032
1057
|
}
|
|
1033
|
-
function
|
|
1058
|
+
function on(e, t) {
|
|
1034
1059
|
N.value.events.datapointLeave && N.value.events.datapointLeave({
|
|
1035
1060
|
datapoint: e,
|
|
1036
1061
|
seriesIndex: t
|
|
1037
|
-
}), X.value = Y.value, Y.value = void 0, M.value = null, j.value = null,
|
|
1062
|
+
}), X.value = Y.value, Y.value = void 0, M.value = null, j.value = null, qt("hoverIndex", { index: void 0 });
|
|
1038
1063
|
}
|
|
1039
|
-
let Z =
|
|
1040
|
-
if (
|
|
1064
|
+
let Z = g(() => {
|
|
1065
|
+
if (Je.value) {
|
|
1041
1066
|
let e = J.value.map((e) => e.absoluteValue), t = e.reduce((e, t) => e + t, 0);
|
|
1042
1067
|
return {
|
|
1043
1068
|
latest: J.value[J.value.length - 1] ? J.value[J.value.length - 1].absoluteValue : 0,
|
|
1044
1069
|
sum: t,
|
|
1045
1070
|
average: t / J.value.length,
|
|
1046
|
-
median:
|
|
1047
|
-
trend:
|
|
1071
|
+
median: se(e),
|
|
1072
|
+
trend: ne(J.value.map(({ x: e, y: t, absoluteValue: n }) => ({
|
|
1048
1073
|
x: e,
|
|
1049
1074
|
y: t,
|
|
1050
1075
|
value: n
|
|
@@ -1057,18 +1082,18 @@ var ht = ["innerHTML"], gt = {
|
|
|
1057
1082
|
median: null,
|
|
1058
1083
|
trend: null
|
|
1059
1084
|
};
|
|
1060
|
-
}),
|
|
1061
|
-
function
|
|
1085
|
+
}), sn = g(() => Je.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 = g(() => N.value.type && N.value.type === "bar");
|
|
1086
|
+
function cn(e, t) {
|
|
1062
1087
|
N.value.events.datapointClick && N.value.events.datapointClick({
|
|
1063
1088
|
datapoint: e,
|
|
1064
1089
|
seriesIndex: t
|
|
1065
|
-
}),
|
|
1090
|
+
}), qt("selectDatapoint", {
|
|
1066
1091
|
datapoint: e,
|
|
1067
1092
|
index: t
|
|
1068
1093
|
});
|
|
1069
1094
|
}
|
|
1070
|
-
let
|
|
1071
|
-
function
|
|
1095
|
+
let ln = g(() => Array.isArray(N.value.style.line.dashIndices) && N.value.style.line.dashIndices.length > 0), un = g(() => N.value.style.line.cutNullValues);
|
|
1096
|
+
function dn(e) {
|
|
1072
1097
|
return ![
|
|
1073
1098
|
null,
|
|
1074
1099
|
void 0,
|
|
@@ -1078,58 +1103,58 @@ var ht = ["innerHTML"], gt = {
|
|
|
1078
1103
|
-Infinity
|
|
1079
1104
|
].includes(e);
|
|
1080
1105
|
}
|
|
1081
|
-
function un(e, t) {
|
|
1082
|
-
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 ln(e[t]?.value) && i && cn.value;
|
|
1084
|
-
}
|
|
1085
|
-
function dn(e, t) {
|
|
1086
|
-
return Y.value && e.id === Y.value.id || tn.value === t || F.value.length === 1;
|
|
1087
|
-
}
|
|
1088
1106
|
function fn(e, t) {
|
|
1089
|
-
|
|
1107
|
+
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;
|
|
1108
|
+
return dn(e[t]?.value) && i && un.value;
|
|
1090
1109
|
}
|
|
1091
1110
|
function pn(e, t) {
|
|
1092
|
-
return
|
|
1111
|
+
return Y.value && e.id === Y.value.id || rn.value === t || F.value.length === 1;
|
|
1093
1112
|
}
|
|
1094
1113
|
function mn(e, t) {
|
|
1095
|
-
return dn(e
|
|
1114
|
+
return Q.value || !dn(e?.value) ? !1 : N.value.style.plot.show && pn(e, t) || fn(J.value, t);
|
|
1115
|
+
}
|
|
1116
|
+
function hn(e, t) {
|
|
1117
|
+
return Math.max(1, pn(e, t) ? N.value.style.plot.radius : N.value.style.plot.radius * .7);
|
|
1118
|
+
}
|
|
1119
|
+
function gn(e, t) {
|
|
1120
|
+
return pn(e, t) ? N.value.style.plot.stroke : N.value.style.backgroundColor;
|
|
1096
1121
|
}
|
|
1097
|
-
let
|
|
1122
|
+
let _n = g(() => un.value ? J.value : J.value.filter((e) => e.value !== null)), vn = g(() => J.value.filter((e) => e.value !== null)), yn = g(() => vn.value.length > 1), bn = g(() => Q.value || !yn.value ? "" : un.value ? a(J.value) : l(_n.value)), xn = g(() => Q.value || !yn.value ? "" : un.value ? i(J.value) : ee(_n.value)), Sn = g(() => Q.value || !ln.value || !yn.value ? [] : s(_n.value, N.value.style.line.dashIndices)), Cn = g(() => Q.value || !ln.value || !yn.value ? [] : d(_n.value, N.value.style.line.dashIndices)), wn = g(() => Q.value || !N.value.style.area.show || !yn.value ? [] : N.value.style.line.smooth ? c(_n.value, q.value.bottom, un.value).filter(Boolean) : (un.value ? t(J.value, q.value.bottom) : oe(_n.value, q.value.bottom)).split(";").filter(Boolean).map((e) => `M${e}Z`)), Tn = g(() => Q.value || !N.value.gradientPath.show || N.value.temperatureColors.show ? "" : `M ${(N.value.style.line.smooth ? bn.value : xn.value) || "0,0"}`), En = g(() => {
|
|
1098
1123
|
if (!N.value.temperatureColors.show) return null;
|
|
1099
1124
|
let e = N.value.temperatureColors.colors;
|
|
1100
|
-
return !Array.isArray(e) || !e.length ? null : e.map((e) =>
|
|
1101
|
-
}), $ =
|
|
1125
|
+
return !Array.isArray(e) || !e.length ? null : e.map((e) => u(e));
|
|
1126
|
+
}), $ = g(() => {
|
|
1102
1127
|
if (!N.value.temperatureColors.show) return null;
|
|
1103
1128
|
let e = N.value.temperatureColors.colors;
|
|
1104
|
-
return !Array.isArray(e) || !e.length ? null : e.map((e) =>
|
|
1129
|
+
return !Array.isArray(e) || !e.length ? null : e.map((e) => u(e));
|
|
1105
1130
|
});
|
|
1106
|
-
function
|
|
1131
|
+
function Dn(e) {
|
|
1107
1132
|
if (!Number.isFinite(e?.y)) return 0;
|
|
1108
1133
|
let t = q.value.height || 1, n = (e.y - q.value.top) / t;
|
|
1109
1134
|
return Math.min(1, Math.max(0, n));
|
|
1110
1135
|
}
|
|
1111
|
-
function
|
|
1112
|
-
let t =
|
|
1113
|
-
return !Array.isArray(t) || !t.length ? e.color :
|
|
1136
|
+
function On(e) {
|
|
1137
|
+
let t = En.value;
|
|
1138
|
+
return !Array.isArray(t) || !t.length ? e.color : te({
|
|
1114
1139
|
colors: t,
|
|
1115
|
-
ratio:
|
|
1140
|
+
ratio: Dn(e)
|
|
1116
1141
|
});
|
|
1117
1142
|
}
|
|
1118
1143
|
D(() => [
|
|
1119
|
-
|
|
1144
|
+
ct.value,
|
|
1120
1145
|
G.value,
|
|
1121
1146
|
J.value.length,
|
|
1122
1147
|
K.value.width,
|
|
1123
1148
|
K.value.height,
|
|
1124
1149
|
N.value?.style?.line?.smooth
|
|
1125
1150
|
], async () => {
|
|
1126
|
-
await
|
|
1127
|
-
}, { immediate: !0 }),
|
|
1128
|
-
await
|
|
1151
|
+
await b(), lt();
|
|
1152
|
+
}, { immediate: !0 }), Ie(async () => {
|
|
1153
|
+
await b(), lt();
|
|
1129
1154
|
}), D(() => P.value, async (e) => {
|
|
1130
|
-
e || await
|
|
1131
|
-
}), D(() =>
|
|
1132
|
-
e || P.value || await
|
|
1155
|
+
e || await Wt();
|
|
1156
|
+
}), D(() => ft.value, async (e) => {
|
|
1157
|
+
e || P.value || await Wt();
|
|
1133
1158
|
}), D(() => O.selectedIndex, (e) => {
|
|
1134
1159
|
if (e == null) {
|
|
1135
1160
|
M.value = null, j.value = null, Y.value = void 0;
|
|
@@ -1139,22 +1164,22 @@ var ht = ["innerHTML"], gt = {
|
|
|
1139
1164
|
let t = J.value[e];
|
|
1140
1165
|
t && (M.value = e, j.value = e, Y.value = t);
|
|
1141
1166
|
});
|
|
1142
|
-
let
|
|
1143
|
-
function
|
|
1144
|
-
let e =
|
|
1167
|
+
let kn = C(!1);
|
|
1168
|
+
function An() {
|
|
1169
|
+
let e = rn.value;
|
|
1145
1170
|
if (e !== null && e >= 0 && e < J.value.length) {
|
|
1146
1171
|
let t = J.value[e];
|
|
1147
1172
|
if (t) {
|
|
1148
|
-
j.value = e, Y.value = t, M.value = e,
|
|
1173
|
+
j.value = e, Y.value = t, M.value = e, kn.value = !0;
|
|
1149
1174
|
return;
|
|
1150
1175
|
}
|
|
1151
1176
|
}
|
|
1152
|
-
j.value = null, !Y.value && J.value.length &&
|
|
1177
|
+
j.value = null, !Y.value && J.value.length && an(J.value.at(-1), J.value.length - 1), kn.value = !0;
|
|
1153
1178
|
}
|
|
1154
|
-
function
|
|
1155
|
-
X.value = Y.value, (O.selectedIndex === void 0 || O.selectedIndex === null) && (j.value = null, Y.value = void 0, M.value = null,
|
|
1179
|
+
function jn() {
|
|
1180
|
+
X.value = Y.value, (O.selectedIndex === void 0 || O.selectedIndex === null) && (j.value = null, Y.value = void 0, M.value = null, qt("hoverIndex", { index: void 0 })), kn.value = !1;
|
|
1156
1181
|
}
|
|
1157
|
-
function
|
|
1182
|
+
function Mn(e) {
|
|
1158
1183
|
if (!I.value || document.activeElement !== I.value) return;
|
|
1159
1184
|
X.value = Y.value;
|
|
1160
1185
|
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight";
|
|
@@ -1165,28 +1190,28 @@ var ht = ["innerHTML"], gt = {
|
|
|
1165
1190
|
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
1191
|
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
1192
|
let s = J.value[i];
|
|
1168
|
-
s && (j.value = i,
|
|
1193
|
+
s && (j.value = i, an(s, i));
|
|
1169
1194
|
}
|
|
1170
|
-
let
|
|
1195
|
+
let Nn = g(() => ({
|
|
1171
1196
|
headers: [N.value.translations.period, N.value.translations.value],
|
|
1172
1197
|
rows: J.value.map((e) => [e.period, e.absoluteValue])
|
|
1173
1198
|
}));
|
|
1174
|
-
return (t,
|
|
1199
|
+
return (t, r) => (S(), v("div", {
|
|
1175
1200
|
ref_key: "sparklineChart",
|
|
1176
1201
|
ref: A,
|
|
1177
1202
|
class: "vue-data-ui-component vue-ui-sparkline",
|
|
1178
1203
|
id: k.value,
|
|
1179
|
-
style:
|
|
1204
|
+
style: x(`width:100%;font-family:${N.value.style.fontFamily};`)
|
|
1180
1205
|
}, [
|
|
1181
|
-
|
|
1206
|
+
y("p", {
|
|
1182
1207
|
id: `chart-instructions-${k.value}`,
|
|
1183
1208
|
class: "sr-only"
|
|
1184
|
-
},
|
|
1185
|
-
|
|
1209
|
+
}, Re(N.value.a11y.translations.keyboardNavigation), 9, xt),
|
|
1210
|
+
Nn.value?.rows?.length ? (S(), ke(Te, {
|
|
1186
1211
|
key: 0,
|
|
1187
1212
|
uid: k.value,
|
|
1188
|
-
head:
|
|
1189
|
-
body:
|
|
1213
|
+
head: Nn.value.headers,
|
|
1214
|
+
body: Nn.value.rows,
|
|
1190
1215
|
notice: N.value.a11y.translations.tableAvailable,
|
|
1191
1216
|
caption: N.value.a11y.translations.tableCaption
|
|
1192
1217
|
}, null, 8, [
|
|
@@ -1195,8 +1220,8 @@ var ht = ["innerHTML"], gt = {
|
|
|
1195
1220
|
"body",
|
|
1196
1221
|
"notice",
|
|
1197
1222
|
"caption"
|
|
1198
|
-
])) :
|
|
1199
|
-
|
|
1223
|
+
])) : _("", !0),
|
|
1224
|
+
T(t.$slots, "before", Pe(Ne({
|
|
1200
1225
|
selected: Y.value,
|
|
1201
1226
|
latest: Z.value.latest,
|
|
1202
1227
|
sum: Z.value.sum,
|
|
@@ -1204,37 +1229,37 @@ var ht = ["innerHTML"], gt = {
|
|
|
1204
1229
|
median: Z.value.median,
|
|
1205
1230
|
trend: Z.value.trend
|
|
1206
1231
|
})), void 0, !0),
|
|
1207
|
-
N.value.style.title.show && e.showInfo ? (
|
|
1232
|
+
N.value.style.title.show && e.showInfo ? (S(), v("div", {
|
|
1208
1233
|
key: 1,
|
|
1209
1234
|
ref_key: "chartTitle",
|
|
1210
|
-
ref:
|
|
1235
|
+
ref: Xe,
|
|
1211
1236
|
class: "vue-ui-sparkline-title",
|
|
1212
|
-
style:
|
|
1213
|
-
}, [
|
|
1214
|
-
|
|
1237
|
+
style: x(`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"};`)
|
|
1238
|
+
}, [y("span", { style: x(`padding:${N.value.style.title.textAlign === "left" ? "0 0 0 12px" : N.value.style.title.textAlign === "right" ? "0 12px 0 0" : "0"}`) }, Re(Y.value ? Y.value.period : N.value.style.title.text), 5)], 4)) : _("", !0),
|
|
1239
|
+
y("div", St, [(S(), v("svg", {
|
|
1215
1240
|
ref_key: "svgRef",
|
|
1216
1241
|
ref: I,
|
|
1217
|
-
xmlns: E(
|
|
1242
|
+
xmlns: E(de),
|
|
1218
1243
|
viewBox: `0 0 ${K.value.width} ${K.value.height}`,
|
|
1219
|
-
style:
|
|
1244
|
+
style: x(`background:${N.value.style.backgroundColor};overflow:visible;direction:ltr`),
|
|
1220
1245
|
tabindex: "0",
|
|
1221
1246
|
"aria-describedby": `chart-instructions-${k.value}`,
|
|
1222
|
-
onMouseleave:
|
|
1223
|
-
onFocus:
|
|
1224
|
-
onBlur:
|
|
1225
|
-
onKeydown:
|
|
1247
|
+
onMouseleave: r[0] ||= (e) => X.value = void 0,
|
|
1248
|
+
onFocus: An,
|
|
1249
|
+
onBlur: jn,
|
|
1250
|
+
onKeydown: Mn
|
|
1226
1251
|
}, [
|
|
1227
|
-
|
|
1228
|
-
t.$slots["chart-background"] ? (
|
|
1252
|
+
je(E(He)),
|
|
1253
|
+
t.$slots["chart-background"] ? (S(), v("foreignObject", {
|
|
1229
1254
|
key: 0,
|
|
1230
1255
|
x: 0,
|
|
1231
1256
|
y: 0,
|
|
1232
1257
|
width: K.value.width <= 0 ? 10 : K.value.width,
|
|
1233
1258
|
height: K.value.height <= 0 ? 10 : K.value.height,
|
|
1234
1259
|
style: { pointerEvents: "none" }
|
|
1235
|
-
}, [
|
|
1236
|
-
|
|
1237
|
-
|
|
1260
|
+
}, [T(t.$slots, "chart-background", {}, void 0, !0)], 8, wt)) : _("", !0),
|
|
1261
|
+
y("defs", null, [
|
|
1262
|
+
je(we, {
|
|
1238
1263
|
t: "linear",
|
|
1239
1264
|
x1: "0%",
|
|
1240
1265
|
y1: "0%",
|
|
@@ -1243,15 +1268,15 @@ var ht = ["innerHTML"], gt = {
|
|
|
1243
1268
|
id: `sparkline_gradient_${k.value}`,
|
|
1244
1269
|
stops: [[
|
|
1245
1270
|
"0%",
|
|
1246
|
-
E(
|
|
1271
|
+
E(n)(E(f)(N.value.style.area.color, .05), N.value.style.area.opacity),
|
|
1247
1272
|
1
|
|
1248
1273
|
], [
|
|
1249
1274
|
"100%",
|
|
1250
|
-
E(
|
|
1275
|
+
E(n)(N.value.style.area.color, N.value.style.area.opacity),
|
|
1251
1276
|
1
|
|
1252
1277
|
]]
|
|
1253
1278
|
}, null, 8, ["id", "stops"]),
|
|
1254
|
-
|
|
1279
|
+
je(we, {
|
|
1255
1280
|
t: "linear",
|
|
1256
1281
|
x2: "0%",
|
|
1257
1282
|
y2: "100%",
|
|
@@ -1262,18 +1287,18 @@ var ht = ["innerHTML"], gt = {
|
|
|
1262
1287
|
1
|
|
1263
1288
|
], [
|
|
1264
1289
|
"100%",
|
|
1265
|
-
E(
|
|
1290
|
+
E(f)(N.value.style.bar.color, .05),
|
|
1266
1291
|
1
|
|
1267
1292
|
]]
|
|
1268
1293
|
}, null, 8, ["id", "stops"]),
|
|
1269
|
-
|
|
1294
|
+
je(we, {
|
|
1270
1295
|
t: "linear",
|
|
1271
1296
|
x2: "0%",
|
|
1272
1297
|
y2: "100%",
|
|
1273
1298
|
id: `sparkline_bar_gradient_neg_${k.value}`,
|
|
1274
1299
|
stops: [[
|
|
1275
1300
|
"0%",
|
|
1276
|
-
E(
|
|
1301
|
+
E(f)(N.value.style.bar.color, .05),
|
|
1277
1302
|
1
|
|
1278
1303
|
], [
|
|
1279
1304
|
"100%",
|
|
@@ -1281,19 +1306,19 @@ var ht = ["innerHTML"], gt = {
|
|
|
1281
1306
|
1
|
|
1282
1307
|
]]
|
|
1283
1308
|
}, null, 8, ["id", "stops"]),
|
|
1284
|
-
|
|
1309
|
+
y("filter", {
|
|
1285
1310
|
id: `sparkline_pulse_glow_${k.value}`,
|
|
1286
1311
|
filterUnits: "userSpaceOnUse",
|
|
1287
1312
|
x: "-50",
|
|
1288
1313
|
y: "-50",
|
|
1289
1314
|
width: "100",
|
|
1290
1315
|
height: "100"
|
|
1291
|
-
}, [...
|
|
1316
|
+
}, [...r[1] ||= [y("feGaussianBlur", {
|
|
1292
1317
|
in: "SourceGraphic",
|
|
1293
1318
|
stdDeviation: "3",
|
|
1294
1319
|
result: "blur"
|
|
1295
|
-
}, null, -1),
|
|
1296
|
-
N.value.temperatureColors.show && $.value ? (
|
|
1320
|
+
}, null, -1), y("feMerge", null, [y("feMergeNode", { in: "blur" }), y("feMergeNode", { in: "SourceGraphic" })], -1)]], 8, Tt),
|
|
1321
|
+
N.value.temperatureColors.show && $.value ? (S(), v("linearGradient", {
|
|
1297
1322
|
key: 0,
|
|
1298
1323
|
id: `temperature_grad_sparkline_${k.value}`,
|
|
1299
1324
|
gradientUnits: "userSpaceOnUse",
|
|
@@ -1301,31 +1326,31 @@ var ht = ["innerHTML"], gt = {
|
|
|
1301
1326
|
x2: "0",
|
|
1302
1327
|
y1: q.value.top,
|
|
1303
1328
|
y2: q.value.bottom
|
|
1304
|
-
}, [(
|
|
1329
|
+
}, [(S(!0), v(h, null, w($.value, (e, t) => (S(), v("stop", {
|
|
1305
1330
|
key: `temperature_grad_stop_${t}_${k.value}`,
|
|
1306
1331
|
"stop-color": e,
|
|
1307
|
-
offset: $.value.length === 1 ? "0%" : E(
|
|
1308
|
-
}, null, 8,
|
|
1332
|
+
offset: $.value.length === 1 ? "0%" : E(pe)(t, $.value.length)
|
|
1333
|
+
}, null, 8, Dt))), 128))], 8, Et)) : _("", !0)
|
|
1309
1334
|
]),
|
|
1310
|
-
N.value.style.area.show && !Q.value &&
|
|
1335
|
+
N.value.style.area.show && !Q.value && wn.value.length ? (S(), v("g", Ot, [(S(!0), v(h, null, w(wn.value, (e, t) => (S(), v("path", {
|
|
1311
1336
|
key: `sparkline_area_${t}_${k.value}`,
|
|
1312
1337
|
class: "vue-ui-sparkline-area",
|
|
1313
1338
|
"data-cy": N.value.style.line.smooth ? "sparkline-smooth-area" : "sparkline-angle-area",
|
|
1314
1339
|
d: e,
|
|
1315
|
-
fill: N.value.style.area.useGradient ? `url(#sparkline_gradient_${k.value})` : E(
|
|
1340
|
+
fill: N.value.style.area.useGradient ? `url(#sparkline_gradient_${k.value})` : E(n)(N.value.style.area.color, N.value.style.area.opacity),
|
|
1316
1341
|
"stroke-linecap": "round",
|
|
1317
1342
|
"stroke-linejoin": "round",
|
|
1318
|
-
style:
|
|
1319
|
-
}, null, 12,
|
|
1320
|
-
N.value.style.line.smooth && !Q.value ? (
|
|
1343
|
+
style: x({ transition: E(P) ? void 0 : "all 0.2s" })
|
|
1344
|
+
}, null, 12, kt))), 128))])) : _("", !0),
|
|
1345
|
+
N.value.style.line.smooth && !Q.value ? (S(), v(h, { key: 2 }, [y("path", {
|
|
1321
1346
|
id: G.value,
|
|
1322
|
-
d: `M ${
|
|
1347
|
+
d: `M ${bn.value || "0,0"}`,
|
|
1323
1348
|
fill: "none",
|
|
1324
1349
|
stroke: "transparent",
|
|
1325
1350
|
"stroke-width": N.value.style.line.strokeWidth,
|
|
1326
1351
|
"stroke-linecap": "round",
|
|
1327
1352
|
"stroke-linejoin": "round"
|
|
1328
|
-
}, null, 8,
|
|
1353
|
+
}, null, 8, At), ln.value ? (S(!0), v(h, { key: 0 }, w(Sn.value, (e) => (S(), v("path", {
|
|
1329
1354
|
key: e.path,
|
|
1330
1355
|
class: "vue-ui-sparkline-path",
|
|
1331
1356
|
d: `M ${e.path}`,
|
|
@@ -1335,27 +1360,27 @@ var ht = ["innerHTML"], gt = {
|
|
|
1335
1360
|
"stroke-linecap": "round",
|
|
1336
1361
|
"stroke-linejoin": "round",
|
|
1337
1362
|
"stroke-dasharray": e.dashed ? N.value.style.line.dashArray : 0,
|
|
1338
|
-
style:
|
|
1339
|
-
}, null, 12,
|
|
1363
|
+
style: x({ transition: E(P) ? void 0 : "all 0.2s" })
|
|
1364
|
+
}, null, 12, jt))), 128)) : (S(), v("path", {
|
|
1340
1365
|
key: 1,
|
|
1341
1366
|
class: "vue-ui-sparkline-path",
|
|
1342
|
-
d: `M ${
|
|
1367
|
+
d: `M ${bn.value || "0,0"}`,
|
|
1343
1368
|
stroke: $.value ? `url(#temperature_grad_sparkline_${k.value})` : N.value.style.line.color,
|
|
1344
1369
|
fill: "none",
|
|
1345
1370
|
"stroke-width": N.value.style.line.strokeWidth,
|
|
1346
1371
|
"stroke-linecap": "round",
|
|
1347
1372
|
"stroke-linejoin": "round",
|
|
1348
|
-
style:
|
|
1349
|
-
}, null, 12,
|
|
1350
|
-
!N.value.style.line.smooth && !Q.value ? (
|
|
1373
|
+
style: x({ transition: E(P) ? void 0 : "all 0.2s" })
|
|
1374
|
+
}, null, 12, Mt))], 64)) : _("", !0),
|
|
1375
|
+
!N.value.style.line.smooth && !Q.value ? (S(), v(h, { key: 3 }, [y("path", {
|
|
1351
1376
|
id: G.value,
|
|
1352
|
-
d: `M ${
|
|
1377
|
+
d: `M ${xn.value || "0,0"}`,
|
|
1353
1378
|
fill: "none",
|
|
1354
1379
|
stroke: "transparent",
|
|
1355
1380
|
"stroke-width": N.value.style.line.strokeWidth,
|
|
1356
1381
|
"stroke-linecap": "round",
|
|
1357
1382
|
"stroke-linejoin": "round"
|
|
1358
|
-
}, null, 8,
|
|
1383
|
+
}, null, 8, Nt), ln.value ? (S(!0), v(h, { key: 0 }, w(Cn.value, (e) => (S(), v("path", {
|
|
1359
1384
|
key: e.path,
|
|
1360
1385
|
class: "vue-ui-sparkline-path",
|
|
1361
1386
|
d: `M ${e.path}`,
|
|
@@ -1365,21 +1390,21 @@ var ht = ["innerHTML"], gt = {
|
|
|
1365
1390
|
"stroke-linecap": "round",
|
|
1366
1391
|
"stroke-linejoin": "round",
|
|
1367
1392
|
"stroke-dasharray": e.dashed ? N.value.style.line.dashArray * 2 : 0,
|
|
1368
|
-
style:
|
|
1369
|
-
}, null, 12,
|
|
1393
|
+
style: x({ transition: E(P) ? void 0 : "all 0.2s" })
|
|
1394
|
+
}, null, 12, Pt))), 128)) : (S(), v("path", {
|
|
1370
1395
|
key: 1,
|
|
1371
1396
|
class: "vue-ui-sparkline-path",
|
|
1372
|
-
d: `M ${
|
|
1397
|
+
d: `M ${xn.value || "0,0"}`,
|
|
1373
1398
|
stroke: $.value ? `url(#temperature_grad_sparkline_${k.value})` : N.value.style.line.color,
|
|
1374
1399
|
fill: "none",
|
|
1375
1400
|
"stroke-width": N.value.style.line.strokeWidth,
|
|
1376
1401
|
"stroke-linecap": "round",
|
|
1377
1402
|
"stroke-linejoin": "round",
|
|
1378
|
-
style:
|
|
1379
|
-
}, null, 12,
|
|
1380
|
-
|
|
1403
|
+
style: x({ transition: E(P) ? void 0 : "all 0.2s" })
|
|
1404
|
+
}, null, 12, Ft))], 64)) : _("", !0),
|
|
1405
|
+
Tn.value && !$.value ? (S(), ke(vt, {
|
|
1381
1406
|
key: 4,
|
|
1382
|
-
svgPathData:
|
|
1407
|
+
svgPathData: Tn.value,
|
|
1383
1408
|
enabled: N.value.gradientPath.show && !Q.value && !$.value,
|
|
1384
1409
|
strokeWidth: N.value.style.line.strokeWidth,
|
|
1385
1410
|
highColor: N.value.gradientPath.colors.high,
|
|
@@ -1392,23 +1417,23 @@ var ht = ["innerHTML"], gt = {
|
|
|
1392
1417
|
"highColor",
|
|
1393
1418
|
"lowColor",
|
|
1394
1419
|
"segments"
|
|
1395
|
-
])) :
|
|
1396
|
-
|
|
1420
|
+
])) : _("", !0),
|
|
1421
|
+
Ut.value && ct.value ? (S(), ke(Ye, {
|
|
1397
1422
|
key: 5,
|
|
1398
1423
|
uid: k.value,
|
|
1399
1424
|
svgRef: E(I),
|
|
1400
1425
|
pulsePathId: G.value,
|
|
1401
|
-
pulsePathLength:
|
|
1402
|
-
pulseDur:
|
|
1403
|
-
pulseBegin:
|
|
1404
|
-
pulseRepeatCount:
|
|
1405
|
-
pulseFillMode:
|
|
1406
|
-
pulseKeyPoints:
|
|
1407
|
-
pulseMotion:
|
|
1426
|
+
pulsePathLength: nt.value,
|
|
1427
|
+
pulseDur: tt.value,
|
|
1428
|
+
pulseBegin: rt.value,
|
|
1429
|
+
pulseRepeatCount: at.value,
|
|
1430
|
+
pulseFillMode: ot.value,
|
|
1431
|
+
pulseKeyPoints: it.value,
|
|
1432
|
+
pulseMotion: ut.value,
|
|
1408
1433
|
pulse: R.value,
|
|
1409
|
-
pulseTrail:
|
|
1410
|
-
pulseTrailLength:
|
|
1411
|
-
prefersReducedMotion: E(
|
|
1434
|
+
pulseTrail: dt.value,
|
|
1435
|
+
pulseTrailLength: st.value,
|
|
1436
|
+
prefersReducedMotion: E(qe),
|
|
1412
1437
|
loading: E(P),
|
|
1413
1438
|
isBar: Q.value
|
|
1414
1439
|
}, null, 8, [
|
|
@@ -1428,16 +1453,16 @@ var ht = ["innerHTML"], gt = {
|
|
|
1428
1453
|
"prefersReducedMotion",
|
|
1429
1454
|
"loading",
|
|
1430
1455
|
"isBar"
|
|
1431
|
-
])) :
|
|
1432
|
-
(
|
|
1456
|
+
])) : _("", !0),
|
|
1457
|
+
(S(!0), v(h, null, w(J.value, (e, t) => (S(), v("g", null, [Q.value ? (S(), v("rect", {
|
|
1433
1458
|
key: 0,
|
|
1434
1459
|
x: e.x - e.width / 2,
|
|
1435
|
-
y: isNaN(e.absoluteValue > 0 ? e.y :
|
|
1460
|
+
y: isNaN(e.absoluteValue > 0 ? e.y : Qt.value) ? 0 : e.absoluteValue > 0 ? e.y : Qt.value,
|
|
1436
1461
|
width: e.width,
|
|
1437
|
-
height: isNaN(Math.abs(e.y -
|
|
1462
|
+
height: isNaN(Math.abs(e.y - Qt.value)) ? 0 : Math.abs(e.y - Qt.value),
|
|
1438
1463
|
fill: e.absoluteValue > 0 ? `url(#sparkline_bar_gradient_pos_${k.value})` : `url(#sparkline_bar_gradient_neg_${k.value})`,
|
|
1439
1464
|
rx: N.value.style.bar.borderRadius
|
|
1440
|
-
}, null, 8,
|
|
1465
|
+
}, null, 8, It)) : _("", !0), N.value.style.verticalIndicator.show && (Y.value && e.id === Y.value.id || rn.value === t) ? (S(), v("line", {
|
|
1441
1466
|
key: 1,
|
|
1442
1467
|
x1: e.x,
|
|
1443
1468
|
x2: e.x,
|
|
@@ -1447,67 +1472,67 @@ var ht = ["innerHTML"], gt = {
|
|
|
1447
1472
|
"stroke-width": N.value.style.verticalIndicator.strokeWidth,
|
|
1448
1473
|
"stroke-linecap": "round",
|
|
1449
1474
|
"stroke-dasharray": N.value.style.verticalIndicator.strokeDasharray || 0
|
|
1450
|
-
}, null, 8,
|
|
1451
|
-
|
|
1475
|
+
}, null, 8, Lt)) : _("", !0)]))), 256)),
|
|
1476
|
+
Jt.value < 0 ? (S(), v("line", {
|
|
1452
1477
|
key: 6,
|
|
1453
1478
|
x1: q.value.start,
|
|
1454
1479
|
x2: q.value.start + q.value.width,
|
|
1455
|
-
y1: E(
|
|
1456
|
-
y2: E(
|
|
1480
|
+
y1: E(ce)(Qt.value, q.value.bottom),
|
|
1481
|
+
y2: E(ce)(Qt.value, q.value.bottom),
|
|
1457
1482
|
stroke: N.value.style.zeroLine.color,
|
|
1458
1483
|
"stroke-dasharray": N.value.style.zeroLine.strokeWidth * 2,
|
|
1459
1484
|
"stroke-width": N.value.style.zeroLine.strokeWidth,
|
|
1460
1485
|
"stroke-linecap": "round"
|
|
1461
|
-
}, null, 8,
|
|
1462
|
-
(
|
|
1486
|
+
}, null, 8, Rt)) : _("", !0),
|
|
1487
|
+
(S(!0), v(h, null, w(J.value, (e, t) => (S(), v("g", { key: `sparkline_plot_${e.id}` }, [mn(e, t) ? (S(), v("circle", {
|
|
1463
1488
|
key: 0,
|
|
1464
1489
|
cx: e.x,
|
|
1465
1490
|
cy: e.y,
|
|
1466
|
-
r:
|
|
1467
|
-
fill:
|
|
1468
|
-
stroke:
|
|
1491
|
+
r: hn(e, t),
|
|
1492
|
+
fill: On(e),
|
|
1493
|
+
stroke: gn(e, t),
|
|
1469
1494
|
"stroke-width": N.value.style.plot.strokeWidth
|
|
1470
|
-
}, null, 8,
|
|
1471
|
-
e.showInfo && N.value.style.dataLabel.show ? (
|
|
1495
|
+
}, null, 8, zt)) : _("", !0)]))), 128)),
|
|
1496
|
+
e.showInfo && N.value.style.dataLabel.show ? (S(), v("text", {
|
|
1472
1497
|
key: 7,
|
|
1473
1498
|
x: N.value.style.dataLabel.position === "left" ? 12 + N.value.style.dataLabel.offsetX : q.value.width + 12 + N.value.style.dataLabel.offsetX,
|
|
1474
1499
|
y: K.value.height / 2 + N.value.style.dataLabel.fontSize / 2.5 + N.value.style.dataLabel.offsetY,
|
|
1475
1500
|
"font-size": N.value.style.dataLabel.fontSize,
|
|
1476
1501
|
"font-weight": N.value.style.dataLabel.bold ? "bold" : "normal",
|
|
1477
1502
|
fill: N.value.style.dataLabel.color
|
|
1478
|
-
},
|
|
1503
|
+
}, Re(Y.value ? E(re)(N.value.style.dataLabel.formatter, Y.value.absoluteValue, E(p)({
|
|
1479
1504
|
p: N.value.style.dataLabel.prefix,
|
|
1480
1505
|
v: Y.value.absoluteValue,
|
|
1481
1506
|
s: N.value.style.dataLabel.suffix,
|
|
1482
1507
|
r: N.value.style.dataLabel.roundingValue
|
|
1483
|
-
}), { datapoint: Y.value }) : E(
|
|
1508
|
+
}), { datapoint: Y.value }) : E(re)(N.value.style.dataLabel.formatter, sn.value, E(p)({
|
|
1484
1509
|
p: N.value.style.dataLabel.prefix,
|
|
1485
|
-
v:
|
|
1510
|
+
v: sn.value,
|
|
1486
1511
|
s: N.value.style.dataLabel.suffix,
|
|
1487
1512
|
r: N.value.style.dataLabel.roundingValue
|
|
1488
|
-
}))), 9,
|
|
1489
|
-
(
|
|
1490
|
-
x: e.x - (q.value.width / (
|
|
1513
|
+
}))), 9, Bt)) : _("", !0),
|
|
1514
|
+
(S(!0), v(h, null, w(J.value, (e, t) => (S(), v("rect", {
|
|
1515
|
+
x: e.x - (q.value.width / (en.value + 1) > K.value.padding ? K.value.padding : q.value.width / (en.value + 1)) / 2,
|
|
1491
1516
|
y: q.value.top - 6,
|
|
1492
1517
|
height: q.value.height + 6,
|
|
1493
|
-
width: q.value.width / (
|
|
1518
|
+
width: q.value.width / (en.value + 1) > K.value.padding ? K.value.padding : q.value.width / (en.value + 1),
|
|
1494
1519
|
fill: "transparent",
|
|
1495
|
-
onMouseenter: () =>
|
|
1496
|
-
onMouseleave: () =>
|
|
1497
|
-
onClick: () =>
|
|
1498
|
-
}, null, 40,
|
|
1499
|
-
|
|
1520
|
+
onMouseenter: () => an(e, t),
|
|
1521
|
+
onMouseleave: () => on(e, t),
|
|
1522
|
+
onClick: () => cn(e, t)
|
|
1523
|
+
}, null, 40, Vt))), 256)),
|
|
1524
|
+
T(t.$slots, "svg", { svg: {
|
|
1500
1525
|
...K.value,
|
|
1501
1526
|
drawingArea: q.value,
|
|
1502
|
-
timeLabels:
|
|
1527
|
+
timeLabels: tn.value,
|
|
1503
1528
|
series: J.value,
|
|
1504
1529
|
hoveredIndex: j.value
|
|
1505
1530
|
} }, void 0, !0)
|
|
1506
|
-
], 44,
|
|
1531
|
+
], 44, Ct)), t.$slots.hint ? (S(), v("div", Ht, [T(t.$slots, "hint", Pe(Ne({
|
|
1507
1532
|
hint: N.value.a11y.translations.keyboardNavigation,
|
|
1508
|
-
isVisible:
|
|
1509
|
-
})), void 0, !0)])) :
|
|
1510
|
-
Y.value && N.value.style.tooltip.show ? (
|
|
1533
|
+
isVisible: kn.value
|
|
1534
|
+
})), void 0, !0)])) : _("", !0)]),
|
|
1535
|
+
Y.value && N.value.style.tooltip.show ? (S(), ke(E(Ue), {
|
|
1511
1536
|
key: 2,
|
|
1512
1537
|
x: Y.value.x,
|
|
1513
1538
|
y: Y.value.y,
|
|
@@ -1523,7 +1548,7 @@ var ht = ["innerHTML"], gt = {
|
|
|
1523
1548
|
borderRadius: N.value.style.tooltip.borderRadius,
|
|
1524
1549
|
backgroundOpacity: N.value.style.tooltip.backgroundOpacity
|
|
1525
1550
|
}, {
|
|
1526
|
-
default:
|
|
1551
|
+
default: Ve(() => [T(t.$slots, "tooltip", Pe(Ne({ ...Y.value })), () => [Ae(Re(Y.value.period) + ": " + Re(E(re)(N.value.style.dataLabel.formatter, Y.value.absoluteValue, E(p)({
|
|
1527
1552
|
p: N.value.style.dataLabel.prefix,
|
|
1528
1553
|
v: Y.value.absoluteValue,
|
|
1529
1554
|
s: N.value.style.dataLabel.suffix,
|
|
@@ -1544,16 +1569,16 @@ var ht = ["innerHTML"], gt = {
|
|
|
1544
1569
|
"borderColor",
|
|
1545
1570
|
"borderRadius",
|
|
1546
1571
|
"backgroundOpacity"
|
|
1547
|
-
])) :
|
|
1548
|
-
t.$slots.source ? (
|
|
1572
|
+
])) : _("", !0),
|
|
1573
|
+
t.$slots.source ? (S(), v("div", {
|
|
1549
1574
|
key: 3,
|
|
1550
1575
|
ref_key: "source",
|
|
1551
|
-
ref:
|
|
1576
|
+
ref: Ze,
|
|
1552
1577
|
dir: "auto"
|
|
1553
|
-
}, [
|
|
1554
|
-
|
|
1555
|
-
], 12,
|
|
1578
|
+
}, [T(t.$slots, "source", {}, void 0, !0)], 512)) : _("", !0),
|
|
1579
|
+
T(t.$slots, "skeleton", {}, () => [E(P) ? (S(), ke(ve, { key: 0 })) : _("", !0)], !0)
|
|
1580
|
+
], 12, bt));
|
|
1556
1581
|
}
|
|
1557
|
-
}, [["__scopeId", "data-v-
|
|
1582
|
+
}, [["__scopeId", "data-v-967d347c"]]);
|
|
1558
1583
|
//#endregion
|
|
1559
|
-
export {
|
|
1584
|
+
export { yt as n, G as t };
|