vue-data-ui 3.22.4 → 3.22.6
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-CgzmXCW_.js → Arrow-Ds4xmpiQ.js} +1 -1
- package/dist/{BaseDraggableDialog-DjzNWkiE.js → BaseDraggableDialog-VbypEaAa.js} +2 -2
- package/dist/{BaseIcon-xBuW2jjI.js → BaseIcon-DcUvOfxf.js} +1 -1
- package/dist/{BaseLegendToggle-C4Usj0LI.js → BaseLegendToggle-DFwIY5bE.js} +1 -1
- package/dist/{BaseZoomControls-Cg9o2J-q.js → BaseZoomControls-DwolSINF.js} +2 -2
- package/dist/{ColorPicker-Usv7badH.js → ColorPicker-UVDPcrjE.js} +2 -2
- package/dist/{DataTable-PidUPOit.js → DataTable-CXfvIulC.js} +2 -2
- package/dist/{Legend-DXOzbXb-.js → Legend-D-635Kag.js} +2 -2
- package/dist/{NonSvgPenAndPaper-OIs8I25K.js → NonSvgPenAndPaper-pR_1qp3s.js} +29 -29
- package/dist/{PackageVersion-Cm-3hwIF.js → PackageVersion-Da7hl-34.js} +1 -1
- package/dist/{PenAndPaper-ISUbDKXq.js → PenAndPaper-Bk2-E7V4.js} +18 -18
- package/dist/{Shape-BnF9aMPX.js → Shape-BSetplwm.js} +1 -1
- package/dist/{Slicer-hEvKOLw3.js → Slicer-ClIGOuoX.js} +2 -2
- package/dist/{SlicerPreview-BDI-aCXE.js → SlicerPreview-D1n9AW39.js} +4 -4
- package/dist/{SparkTooltip-DaWSTzfA.js → SparkTooltip-CjDAyolg.js} +1 -1
- package/dist/{Title-DDEEO-Nr.js → Title-C-p0ilWB.js} +1 -1
- package/dist/{Tooltip-BhKov422.js → Tooltip-YabpoXo1.js} +1 -1
- package/dist/{UserOptions-BxT1XHzN.js → UserOptions-BO4VFL8O.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-ZOysoMwu.js → dom-to-png-CVJfsfwL.js} +1 -1
- package/dist/exposedLib-CjwriUaG.js +19 -0
- package/dist/{img-B29J8tV5.js → img-B_y5qDdm.js} +1 -1
- package/dist/{labelUtils-BFcL_t-A.js → labelUtils-CyVwqXSh.js} +1 -1
- package/dist/{lib-CuwHGt1j.js → lib-DRBJCmHW.js} +6 -9
- package/dist/{package-CRlwXCDr.js → package-DyQ_PQis.js} +1 -1
- package/dist/{pdf-ymYt9Lee.js → pdf-CG02qhAH.js} +1 -1
- package/dist/{render-common-D6ny-Fwu.js → render-common-CUAlQvAQ.js} +22 -22
- 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 +14 -0
- package/dist/types/vue-ui-treemap.d.ts +3 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DzAZ-MeY.js → useAutoSizeLabelsInsideViewbox-DPMOys9n.js} +1 -1
- package/dist/{useConfig-pVLia3dt.js → useConfig-DYM3f6EI.js} +5 -3
- package/dist/{useNestedProp-BjkuFaz1.js → useNestedProp-BEo2N1Db.js} +1 -1
- package/dist/{useObjectBindings-C1XuDxFr.js → useObjectBindings-CD31syQb.js} +1 -1
- package/dist/{usePrinter-C0wAS8yc.js → usePrinter-CRp5IW3v.js} +2 -2
- package/dist/utils.js +10 -10
- package/dist/{vue-data-ui-DTWqd0R2.js → vue-data-ui-Bpu4kxlm.js} +68 -68
- package/dist/vue-data-ui.js +73 -73
- package/dist/vue-ui-3d-bar-BAH0jNtT.js +1757 -0
- package/dist/{vue-ui-accordion-B64IJyPU.js → vue-ui-accordion-CfMrbDoq.js} +4 -4
- package/dist/vue-ui-age-pyramid-BF5ZuuyI.js +1238 -0
- package/dist/{vue-ui-annotator-CU4CdKMm.js → vue-ui-annotator-CG6rhFpy.js} +68 -68
- package/dist/{vue-ui-bullet-tlj5_z_z.js → vue-ui-bullet-C_oBS1cr.js} +18 -18
- package/dist/{vue-ui-bump-BD0Uq3As.js → vue-ui-bump-BZB1Na8h.js} +243 -243
- package/dist/{vue-ui-candlestick-CZxsNGKS.js → vue-ui-candlestick-8d_1xO8X.js} +27 -27
- package/dist/{vue-ui-carousel-table-ycbcmBKt.js → vue-ui-carousel-table-BfZNcwmY.js} +43 -43
- package/dist/vue-ui-chestnut-Cx8T3NEl.js +2010 -0
- package/dist/vue-ui-chord-B-sauvLo.js +1391 -0
- package/dist/{vue-ui-circle-pack-BPC6zUis.js → vue-ui-circle-pack-BLh8HnGK.js} +32 -32
- package/dist/{vue-ui-cursor-DF_e5k1s.js → vue-ui-cursor-DVsEm_4l.js} +4 -4
- package/dist/{vue-ui-dag-BIo4-Oa8.js → vue-ui-dag-Cfi0b9qm.js} +24 -24
- package/dist/{vue-ui-dashboard-BEtF6UX2.js → vue-ui-dashboard-F_NZ1xoQ.js} +70 -70
- package/dist/{vue-ui-digits-07IxTlNO.js → vue-ui-digits-BfP1kbj3.js} +4 -4
- package/dist/vue-ui-donut-BwAyvV3-.js +2410 -0
- package/dist/{vue-ui-donut-C5oRCxAO.js → vue-ui-donut-DlVRnVr_.js} +120 -120
- package/dist/{vue-ui-donut-evolution-BSeyPC9k.js → vue-ui-donut-evolution-D1k4u6cA.js} +419 -419
- package/dist/vue-ui-dumbbell-DgmvPpK2.js +1530 -0
- package/dist/{vue-ui-flow-R_dLE1WS.js → vue-ui-flow-D_7Idmmw.js} +84 -84
- package/dist/vue-ui-funnel-BYCFV5TD.js +777 -0
- package/dist/vue-ui-galaxy-Bjxbg5_B.js +1077 -0
- package/dist/{vue-ui-gauge-AbzY-7Gg.js → vue-ui-gauge-Dt0H7DgC.js} +217 -217
- package/dist/{vue-ui-geo-DVT9XEC3.js → vue-ui-geo-89DEQb5l.js} +18 -18
- package/dist/{vue-ui-gizmo-DJTRXao8.js → vue-ui-gizmo-CQyLK18v.js} +62 -62
- package/dist/{vue-ui-heatmap-BCFId15K.js → vue-ui-heatmap-o6MvoxBK.js} +247 -247
- package/dist/vue-ui-history-plot-B7zuCfdg.js +1715 -0
- package/dist/{vue-ui-horizontal-bar-j3jszojt.js → vue-ui-horizontal-bar-CwB4sc6M.js} +275 -275
- package/dist/{vue-ui-kpi-DJjF6tcf.js → vue-ui-kpi-4C-j92D-.js} +4 -4
- package/dist/{vue-ui-mini-loader-nOsOsA2V.js → vue-ui-mini-loader-Bj4Wv-i8.js} +3 -3
- package/dist/vue-ui-molecule-BDrRmwmm.js +925 -0
- package/dist/{vue-ui-mood-radar-DP_4LHfZ.js → vue-ui-mood-radar-B5W35Fvp.js} +30 -30
- package/dist/{vue-ui-nested-donuts-DFsLZEqx.js → vue-ui-nested-donuts-wfesrzle.js} +105 -105
- package/dist/{vue-ui-onion-CzXx3Rme.js → vue-ui-onion-B8-psLbF.js} +40 -40
- package/dist/vue-ui-parallel-coordinate-plot-DBpHCFxa.js +1416 -0
- package/dist/vue-ui-quadrant-BzyGOJR2.js +1978 -0
- package/dist/{vue-ui-quick-chart-CnIFPFPv.js → vue-ui-quick-chart-so_8PzvS.js} +663 -663
- package/dist/{vue-ui-radar-CNwKFbHc.js → vue-ui-radar-5fQ5AAWD.js} +63 -63
- package/dist/{vue-ui-rating-CRziryE2.js → vue-ui-rating-CKWHDKOT.js} +34 -34
- package/dist/vue-ui-relation-circle-Bd_ONHCz.js +924 -0
- package/dist/{vue-ui-ridgeline-Kw50zROq.js → vue-ui-ridgeline-DVbYznRz.js} +102 -102
- package/dist/vue-ui-rings-c-yLWFHr.js +1246 -0
- package/dist/{vue-ui-scatter-DoL5Kh1Y.js → vue-ui-scatter-QhmE7n1H.js} +87 -87
- package/dist/{vue-ui-skeleton-BOHwJSdz.js → vue-ui-skeleton-BkxB6Dik.js} +4 -4
- package/dist/{vue-ui-smiley-BTvDy8Fm.js → vue-ui-smiley-C4g0iaF7.js} +10 -10
- package/dist/{vue-ui-spark-trend-OgSFIFh0.js → vue-ui-spark-trend-0FELlq4x.js} +98 -98
- package/dist/{vue-ui-sparkbar-D8FdqMB_.js → vue-ui-sparkbar-D-i_VLO6.js} +87 -87
- package/dist/{vue-ui-sparkgauge-CBpPbVkw.js → vue-ui-sparkgauge-CWw6w_ng.js} +48 -48
- package/dist/{vue-ui-sparkhistogram-BQjbLa2k.js → vue-ui-sparkhistogram-DuGpkfma.js} +105 -105
- package/dist/{vue-ui-sparkline-BJfh5Lje.js → vue-ui-sparkline-Bi06lHQd.js} +252 -252
- package/dist/vue-ui-sparkstackbar-DrKgBUmt.js +662 -0
- package/dist/{vue-ui-stackbar-Dqs7_g8D.js → vue-ui-stackbar-DDvuDGQ_.js} +85 -85
- package/dist/vue-ui-stackline-C0NHBUaE.js +2416 -0
- package/dist/{vue-ui-strip-plot-B7D6Hk8R.js → vue-ui-strip-plot-_6LL45i9.js} +369 -369
- package/dist/{vue-ui-table-Bqi9XNvY.js → vue-ui-table-DBlZswRi.js} +26 -26
- package/dist/{vue-ui-table-heatmap-D38YSxhJ.js → vue-ui-table-heatmap-3xYIDKcP.js} +6 -6
- package/dist/{vue-ui-table-sparkline-0Ffb2jdf.js → vue-ui-table-sparkline-BH5PzEnJ.js} +201 -201
- package/dist/{vue-ui-thermometer-Di5PXtEO.js → vue-ui-thermometer-BxMzAqoT.js} +119 -119
- package/dist/{vue-ui-timer-9CDcd-gP.js → vue-ui-timer-ONSitYDm.js} +30 -30
- package/dist/{vue-ui-tiremarks-BAQ-cCSq.js → vue-ui-tiremarks-DWXM-9nR.js} +15 -15
- package/dist/vue-ui-treemap-B03c4RIy.js +1713 -0
- package/dist/{vue-ui-waffle-DG2IfACo.js → vue-ui-waffle-afa8HSxz.js} +160 -160
- package/dist/{vue-ui-wheel-BfXJFCjv.js → vue-ui-wheel-DRP7X8S2.js} +37 -37
- package/dist/{vue-ui-word-cloud-3NJy1z6d.js → vue-ui-word-cloud-AKpMO97a.js} +38 -38
- package/dist/{vue-ui-world-vrGT5g1H.js → vue-ui-world-CqS-HhZl.js} +400 -400
- package/dist/{vue-ui-xy-Dg0wxSeC.js → vue-ui-xy-Bmd11BxR.js} +656 -656
- package/dist/{vue-ui-xy-Cb7u46JN.js → vue-ui-xy-DJ8YKPgs.js} +244 -244
- package/dist/{vue-ui-xy-canvas-CjbjJ70r.js → vue-ui-xy-canvas-DO_PDGKf.js} +47 -47
- package/package.json +1 -1
- package/dist/exposedLib-C2U48XK7.js +0 -19
- package/dist/vue-ui-3d-bar-DBpSRV-C.js +0 -1757
- package/dist/vue-ui-age-pyramid-e09oK-Fp.js +0 -1238
- package/dist/vue-ui-chestnut-CnEsjvh4.js +0 -2010
- package/dist/vue-ui-chord-BZhXsZXp.js +0 -1391
- package/dist/vue-ui-donut-C4FcvXm3.js +0 -2410
- package/dist/vue-ui-dumbbell-Cykw4WYn.js +0 -1530
- package/dist/vue-ui-funnel-Ct5xQdak.js +0 -777
- package/dist/vue-ui-galaxy-B5BkdIt5.js +0 -1077
- package/dist/vue-ui-history-plot-DCeroetw.js +0 -1700
- package/dist/vue-ui-molecule-2pfoR63d.js +0 -925
- package/dist/vue-ui-parallel-coordinate-plot-BY6dptUG.js +0 -1416
- package/dist/vue-ui-quadrant-Br_iZmcw.js +0 -1978
- package/dist/vue-ui-relation-circle-BVDIikGi.js +0 -924
- package/dist/vue-ui-rings-BDJyoWvT.js +0 -1246
- package/dist/vue-ui-sparkstackbar-1WUQrqd7.js +0 -662
- package/dist/vue-ui-stackline-IRjugedp.js +0 -2416
- package/dist/vue-ui-treemap-CLOlWiDE.js +0 -1587
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { A as t, B as n,
|
|
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
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { Fragment as
|
|
2
|
+
import { A as t, B as n, Ct as r, D as i, Dt as a, E as o, Ft as s, It as c, Lt as l, N as u, P as d, Q as f, R as p, W as ee, Wt as te, b as ne, f as re, gt as ie, i as m, j as ae, l as oe, lt as se, q as ce, rt as le, t as ue, tt as de, z as fe } from "./lib-DRBJCmHW.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-BEo2N1Db.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 "./A11yDataTable-DdRsVULz.js";
|
|
12
|
+
import { t as Se } from "./useChartAccessibility-DYqac8yF.js";
|
|
13
|
+
import { t as Ce } from "./usePrefersMotion-BC-CsqR1.js";
|
|
14
|
+
import { t as we } from "./vue_ui_sparkline-auZhap6Y.js";
|
|
15
|
+
import { Fragment as g, computed as _, createBlock as Te, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createTextVNode as Ee, createVNode as De, defineAsyncComponent as Oe, guardReactiveProps as ke, nextTick as x, normalizeProps as Ae, normalizeStyle as S, onBeforeUnmount as je, onMounted as Me, openBlock as C, ref as w, renderList as T, renderSlot as E, shallowRef as Ne, toDisplayString as Pe, toRefs as Fe, unref as D, watch as O, watchEffect as Ie, withCtx as Le } from "vue";
|
|
16
16
|
//#region src/atoms/SparklinePulse.vue
|
|
17
|
-
var
|
|
17
|
+
var Re = {
|
|
18
18
|
key: 0,
|
|
19
19
|
style: { "pointer-events": "none" }
|
|
20
|
-
},
|
|
20
|
+
}, ze = [
|
|
21
21
|
"r",
|
|
22
22
|
"fill",
|
|
23
23
|
"filter"
|
|
24
|
-
],
|
|
24
|
+
], Be = [
|
|
25
25
|
"begin",
|
|
26
26
|
"dur",
|
|
27
27
|
"repeatCount",
|
|
@@ -30,12 +30,12 @@ var ze = {
|
|
|
30
30
|
"keySplines",
|
|
31
31
|
"keyTimes",
|
|
32
32
|
"keyPoints"
|
|
33
|
-
],
|
|
33
|
+
], Ve = ["href"], He = [
|
|
34
34
|
"dur",
|
|
35
35
|
"repeatCount",
|
|
36
36
|
"fill",
|
|
37
37
|
"values"
|
|
38
|
-
],
|
|
38
|
+
], Ue = ["r", "fill"], k = [
|
|
39
39
|
"begin",
|
|
40
40
|
"dur",
|
|
41
41
|
"repeatCount",
|
|
@@ -43,7 +43,7 @@ var ze = {
|
|
|
43
43
|
"keySplines",
|
|
44
44
|
"keyTimes",
|
|
45
45
|
"keyPoints"
|
|
46
|
-
],
|
|
46
|
+
], We = ["href"], A = ["dur", "repeatCount"], Ge = {
|
|
47
47
|
__name: "SparklinePulse",
|
|
48
48
|
props: {
|
|
49
49
|
uid: {
|
|
@@ -112,7 +112,7 @@ var ze = {
|
|
|
112
112
|
}
|
|
113
113
|
},
|
|
114
114
|
setup(e) {
|
|
115
|
-
let t = e, n =
|
|
115
|
+
let t = e, n = _(() => Math.min(t.pulseTrailLength, 45)), r = _(() => !!t.pulse?.show && !t.isBar && !t.prefersReducedMotion && !t.loading && Number(t.pulsePathLength) > 0);
|
|
116
116
|
function i() {
|
|
117
117
|
let e = t.svgRef?.value;
|
|
118
118
|
e && (typeof e.pauseAnimations == "function" && e.pauseAnimations(), typeof e.setCurrentTime == "function" && e.setCurrentTime(0), typeof e.unpauseAnimations == "function" && e.unpauseAnimations());
|
|
@@ -131,23 +131,23 @@ var ze = {
|
|
|
131
131
|
let r = t.pulse.trail.opacity, i = (n.value - e) / n.value, a = e === 0 ? 1 : i * r;
|
|
132
132
|
return `0;${a};${a};0`;
|
|
133
133
|
}
|
|
134
|
-
return
|
|
134
|
+
return O(() => t.loading, async (e) => {
|
|
135
135
|
if (e) {
|
|
136
136
|
i();
|
|
137
137
|
return;
|
|
138
138
|
}
|
|
139
|
-
await
|
|
140
|
-
}),
|
|
141
|
-
await
|
|
142
|
-
}),
|
|
139
|
+
await x(), i();
|
|
140
|
+
}), O(() => t.pulsePathId, async () => {
|
|
141
|
+
await x(), i();
|
|
142
|
+
}), je(() => {
|
|
143
143
|
i();
|
|
144
|
-
}), (t, i) => r.value ? (
|
|
144
|
+
}), (t, i) => r.value ? (C(), y("g", Re, [(C(!0), y(g, null, T(n.value, (t, n) => (C(), y(g, null, [n % 3 == 0 ? (C(), y("circle", {
|
|
145
145
|
key: `sparkline_dot_${n}_${e.pulsePathId}`,
|
|
146
146
|
r: o(n),
|
|
147
147
|
fill: e.pulse.color,
|
|
148
148
|
filter: `url(#sparkline_pulse_glow_${e.uid})`,
|
|
149
149
|
opacity: "0"
|
|
150
|
-
}, [
|
|
150
|
+
}, [b("animateMotion", {
|
|
151
151
|
begin: a(e.pulseBegin, n * 10),
|
|
152
152
|
dur: e.pulseDur,
|
|
153
153
|
repeatCount: e.pulseRepeatCount,
|
|
@@ -157,19 +157,19 @@ var ze = {
|
|
|
157
157
|
keyTimes: e.pulseMotion.keyTimes || void 0,
|
|
158
158
|
keyPoints: e.pulseKeyPoints,
|
|
159
159
|
rotate: "auto"
|
|
160
|
-
}, [
|
|
160
|
+
}, [b("mpath", { href: `#${e.pulsePathId}` }, null, 8, Ve)], 8, Be), b("animate", {
|
|
161
161
|
attributeName: "opacity",
|
|
162
162
|
dur: e.pulseDur,
|
|
163
163
|
repeatCount: e.pulseRepeatCount,
|
|
164
164
|
fill: e.pulseFillMode,
|
|
165
165
|
values: s(n),
|
|
166
166
|
keyTimes: "0;0.1;0.9;1"
|
|
167
|
-
}, null, 8,
|
|
167
|
+
}, null, 8, He)], 8, ze)) : v("", !0)], 64))), 256)), (C(), y("circle", {
|
|
168
168
|
key: `sparkline_halo_${e.pulsePathId}`,
|
|
169
169
|
r: Math.max(e.pulse.radius * 1.3),
|
|
170
170
|
fill: e.pulse.color,
|
|
171
171
|
opacity: "0"
|
|
172
|
-
}, [
|
|
172
|
+
}, [b("animateMotion", {
|
|
173
173
|
begin: e.pulseBegin,
|
|
174
174
|
dur: e.pulseDur,
|
|
175
175
|
repeatCount: e.pulseRepeatCount,
|
|
@@ -178,28 +178,28 @@ var ze = {
|
|
|
178
178
|
keyTimes: e.pulseMotion.keyTimes || void 0,
|
|
179
179
|
keyPoints: e.pulseKeyPoints,
|
|
180
180
|
rotate: "auto"
|
|
181
|
-
}, [
|
|
181
|
+
}, [b("mpath", { href: `#${e.pulsePathId}` }, null, 8, We)], 8, k), b("animate", {
|
|
182
182
|
attributeName: "opacity",
|
|
183
183
|
values: "0;0.35;0.35;0",
|
|
184
184
|
keyTimes: "0;0.15;0.85;1",
|
|
185
185
|
dur: e.pulseDur,
|
|
186
186
|
repeatCount: e.pulseRepeatCount
|
|
187
|
-
}, null, 8,
|
|
187
|
+
}, null, 8, A)], 8, Ue))])) : v("", !0);
|
|
188
188
|
}
|
|
189
|
-
},
|
|
189
|
+
}, Ke = {
|
|
190
190
|
canvas: null,
|
|
191
191
|
ctx: null
|
|
192
192
|
};
|
|
193
193
|
function qe() {
|
|
194
194
|
if (typeof document > "u") throw Error("color-utils: document is not available (browser-only).");
|
|
195
|
-
if (!
|
|
195
|
+
if (!Ke.canvas) {
|
|
196
196
|
let e = document.createElement("canvas");
|
|
197
197
|
e.width = 1, e.height = 1;
|
|
198
198
|
let t = e.getContext("2d", { willReadFrequently: !0 });
|
|
199
199
|
if (!t) throw Error("color-utils: unable to get 2D canvas context.");
|
|
200
|
-
|
|
200
|
+
Ke.canvas = e, Ke.ctx = t;
|
|
201
201
|
}
|
|
202
|
-
return
|
|
202
|
+
return Ke.ctx;
|
|
203
203
|
}
|
|
204
204
|
function Je(e) {
|
|
205
205
|
return e < 0 ? 0 : e > 255 ? 255 : Math.round(e);
|
|
@@ -466,44 +466,44 @@ function pt(e, t = null, n = {}) {
|
|
|
466
466
|
rgba: e[n].rgba
|
|
467
467
|
};
|
|
468
468
|
return t;
|
|
469
|
-
})() : [], ie = it(p, d, n.maxSegmentLength),
|
|
470
|
-
|
|
471
|
-
let
|
|
469
|
+
})() : [], ie = it(p, d, n.maxSegmentLength), m = at(p, n.segments, ie), ae = p / m, oe = typeof n.overlap == "number" && n.overlap >= 0 ? n.overlap : d * .5, se = ae * .45;
|
|
470
|
+
oe > se && (oe = se);
|
|
471
|
+
let ce = typeof n.samplePointLimitPerSegment == "number" && n.samplePointLimitPerSegment > 10 ? n.samplePointLimitPerSegment : 250, le = lt(c), ue = [], de = i === null ? null : [], fe = i === null ? null : [], pe = 0, me = i === null ? re.length - 2 : 0, h = 0, he = () => {
|
|
472
472
|
let e = performance.now(), t = typeof n.frameBudgetMs == "number" ? n.frameBudgetMs : 8;
|
|
473
|
-
for (;
|
|
474
|
-
let e =
|
|
475
|
-
if (
|
|
476
|
-
let e = st(f, n, r, s, o,
|
|
477
|
-
|
|
473
|
+
for (; h < m && performance.now() - e < t;) {
|
|
474
|
+
let e = h * ae, t = (h + 1) * ae, n = e, r = t;
|
|
475
|
+
if (h !== 0 && (n = e - oe), h !== m - 1 && (r = t + oe), n = I(n, 0, p), r = I(r, 0, p), r > n) if (i !== null) {
|
|
476
|
+
let e = st(f, n, r, s, o, ce);
|
|
477
|
+
de.push(e.pathData), fe.push(e.bounds);
|
|
478
478
|
} else {
|
|
479
479
|
let e = (n + r) * .5 / p;
|
|
480
|
-
for (;
|
|
481
|
-
let t = z(re, e, te,
|
|
482
|
-
|
|
480
|
+
for (; pe < me && e > re[pe + 1].position;) pe += 1;
|
|
481
|
+
let t = z(re, e, te, pe), i = ot(f, n, r, s, o, ce);
|
|
482
|
+
ue.push(ut(i, t, le));
|
|
483
483
|
}
|
|
484
|
-
|
|
484
|
+
h += 1;
|
|
485
485
|
}
|
|
486
|
-
if (
|
|
487
|
-
requestAnimationFrame(
|
|
486
|
+
if (h < m) {
|
|
487
|
+
requestAnimationFrame(he);
|
|
488
488
|
return;
|
|
489
489
|
}
|
|
490
490
|
if (i !== null) {
|
|
491
491
|
let e = Infinity, t = -Infinity;
|
|
492
|
-
for (let n = 0; n <
|
|
493
|
-
let r =
|
|
492
|
+
for (let n = 0; n < fe.length; n += 1) {
|
|
493
|
+
let r = fe[n], a = i === "vertical" ? r.minY : r.minX, o = i === "vertical" ? r.maxY : r.maxX;
|
|
494
494
|
a < e && (e = a), o > t && (t = o);
|
|
495
495
|
}
|
|
496
496
|
let n = ne[0], r = ne[1];
|
|
497
|
-
|
|
498
|
-
for (let a = 0; a <
|
|
499
|
-
let o =
|
|
500
|
-
|
|
497
|
+
ue.length = 0;
|
|
498
|
+
for (let a = 0; a < fe.length; a += 1) {
|
|
499
|
+
let o = fe[a], s = et(((i === "vertical" ? o.minY : o.minX) + (i === "vertical" ? o.maxY : o.maxX)) * .5, e, t, !0), c = U(i === "vertical" ? Ze(n, r, s, te) : Ze(r, n, s, te)), l = de[a];
|
|
500
|
+
ue.push(ut(l, c, le));
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
|
-
let c = ft(
|
|
503
|
+
let c = ft(ue, l);
|
|
504
504
|
rt(a), r(c);
|
|
505
505
|
};
|
|
506
|
-
requestAnimationFrame(
|
|
506
|
+
requestAnimationFrame(he);
|
|
507
507
|
} catch (e) {
|
|
508
508
|
rt(a), i(e);
|
|
509
509
|
}
|
|
@@ -540,8 +540,8 @@ var mt = ["innerHTML"], ht = {
|
|
|
540
540
|
}
|
|
541
541
|
},
|
|
542
542
|
setup(e) {
|
|
543
|
-
let t = e, n =
|
|
544
|
-
return
|
|
543
|
+
let t = e, n = w(""), r = 0;
|
|
544
|
+
return O(() => [
|
|
545
545
|
t.enabled,
|
|
546
546
|
t.svgPathData,
|
|
547
547
|
t.strokeWidth,
|
|
@@ -566,7 +566,7 @@ var mt = ["innerHTML"], ht = {
|
|
|
566
566
|
groupAttrs: { class: "vue-ui-sparkline-gradient" }
|
|
567
567
|
});
|
|
568
568
|
i === r && (n.value = a);
|
|
569
|
-
}, { immediate: !0 }), (e, t) => (
|
|
569
|
+
}, { immediate: !0 }), (e, t) => (C(), y("g", { innerHTML: n.value }, null, 8, mt));
|
|
570
570
|
}
|
|
571
571
|
}, gt = /* @__PURE__ */ e({ default: () => G }), _t = ["id"], vt = ["id"], yt = { style: { position: "relative" } }, bt = [
|
|
572
572
|
"xmlns",
|
|
@@ -660,7 +660,7 @@ var mt = ["innerHTML"], ht = {
|
|
|
660
660
|
},
|
|
661
661
|
"data-dom-to-png-ignore": "",
|
|
662
662
|
"aria-hidden": "true"
|
|
663
|
-
}, G = /*#__PURE__*/
|
|
663
|
+
}, G = /*#__PURE__*/ ve({
|
|
664
664
|
__name: "vue-ui-sparkline",
|
|
665
665
|
props: {
|
|
666
666
|
config: {
|
|
@@ -693,18 +693,18 @@ var mt = ["innerHTML"], ht = {
|
|
|
693
693
|
}
|
|
694
694
|
},
|
|
695
695
|
emits: ["hoverIndex", "selectDatapoint"],
|
|
696
|
-
setup(e, { emit:
|
|
697
|
-
let
|
|
696
|
+
setup(e, { emit: ve }) {
|
|
697
|
+
let Re = Oe(() => import("./PackageVersion-Da7hl-34.js").then((e) => e.t)), ze = Oe(() => import("./SparkTooltip-CjDAyolg.js")), { vue_ui_sparkline: Be } = me(), { isThemeValid: Ve, warnInvalidTheme: He } = _e(), Ue = Ce(), k = e, We = _(() => Array.isArray(k.dataset) && k.dataset.length > 0), A = w(ee()), Ke = w(null), qe = w(null), Je = w(null), j = w(null), M = w(null), N = w(L());
|
|
698
698
|
function Ye(e) {
|
|
699
|
-
return
|
|
699
|
+
return k.config?.skeletonDataset && Array.isArray(k.config.skeletonDataset) ? k.config.skeletonDataset.map((e) => ({
|
|
700
700
|
period: "-",
|
|
701
701
|
value: e
|
|
702
|
-
})) :
|
|
702
|
+
})) : de(e).map((e) => ({
|
|
703
703
|
period: "-",
|
|
704
704
|
value: e
|
|
705
705
|
}));
|
|
706
706
|
}
|
|
707
|
-
let Xe =
|
|
707
|
+
let Xe = _(() => te({
|
|
708
708
|
defaultConfig: {
|
|
709
709
|
gradientPath: { show: !1 },
|
|
710
710
|
temperatureColors: { show: !1 },
|
|
@@ -726,41 +726,41 @@ var mt = ["innerHTML"], ht = {
|
|
|
726
726
|
}
|
|
727
727
|
},
|
|
728
728
|
userConfig: N.value.skeletonConfig ?? {}
|
|
729
|
-
})), { loading: P, FINAL_DATASET: F, manualLoading: Ze } =
|
|
730
|
-
...
|
|
729
|
+
})), { loading: P, FINAL_DATASET: F, manualLoading: Ze } = h({
|
|
730
|
+
...Fe(k),
|
|
731
731
|
FINAL_CONFIG: N,
|
|
732
732
|
prepareConfig: L,
|
|
733
733
|
callback: () => {
|
|
734
734
|
Promise.resolve().then(async () => {
|
|
735
|
-
await
|
|
735
|
+
await x(), mt();
|
|
736
736
|
});
|
|
737
737
|
},
|
|
738
738
|
skeletonDataset: Ye(12),
|
|
739
|
-
skeletonConfig:
|
|
739
|
+
skeletonConfig: te({
|
|
740
740
|
defaultConfig: N.value,
|
|
741
741
|
userConfig: Xe.value
|
|
742
742
|
})
|
|
743
|
-
}), { svgRef: I } =
|
|
743
|
+
}), { svgRef: I } = Se({ config: N.value.style.title });
|
|
744
744
|
function L() {
|
|
745
|
-
let e =
|
|
746
|
-
userConfig:
|
|
747
|
-
defaultConfig:
|
|
745
|
+
let e = ge({
|
|
746
|
+
userConfig: k.config,
|
|
747
|
+
defaultConfig: Be
|
|
748
748
|
}), t = {}, n = e.theme;
|
|
749
|
-
if (n) if (!
|
|
749
|
+
if (n) if (!Ve.value(e)) He(e), t = e;
|
|
750
750
|
else {
|
|
751
|
-
let r =
|
|
752
|
-
userConfig:
|
|
751
|
+
let r = ge({
|
|
752
|
+
userConfig: we[n] || k.config,
|
|
753
753
|
defaultConfig: e
|
|
754
754
|
});
|
|
755
|
-
t = { ...
|
|
756
|
-
userConfig:
|
|
755
|
+
t = { ...ge({
|
|
756
|
+
userConfig: k.config,
|
|
757
757
|
defaultConfig: r
|
|
758
758
|
}) };
|
|
759
759
|
}
|
|
760
760
|
else t = e;
|
|
761
761
|
return t;
|
|
762
762
|
}
|
|
763
|
-
let R =
|
|
763
|
+
let R = _(() => N.value?.style?.line.pulse || {}), Qe = _(() => `${Math.max(200, Number(R.value.durationMs) || 4e3) / 1e3}s`), $e = w(0), et = _(() => R.value?.begin || "0ms"), tt = w("0;1"), nt = _(() => R.value?.loop === !1 ? "1" : "indefinite"), rt = _(() => R.value?.loop === !1 ? "freeze" : void 0), it = _(() => R.value.trail.show && ct.value.lengthPx || 1), at = _(() => !!R.value?.show && !Q.value && !Ue.value && !P.value && (J.value?.length || 0) > 1);
|
|
764
764
|
function ot() {
|
|
765
765
|
if (!at.value) {
|
|
766
766
|
$e.value = 0;
|
|
@@ -782,7 +782,7 @@ var mt = ["innerHTML"], ht = {
|
|
|
782
782
|
}
|
|
783
783
|
});
|
|
784
784
|
}
|
|
785
|
-
let st =
|
|
785
|
+
let st = _(() => {
|
|
786
786
|
let e = R.value?.easing || "ease-in-out", t = {
|
|
787
787
|
ease: [
|
|
788
788
|
.25,
|
|
@@ -827,7 +827,7 @@ var mt = ["innerHTML"], ht = {
|
|
|
827
827
|
] : t[e] || t["ease-in-out"]).join(" "),
|
|
828
828
|
keyTimes: "0;1"
|
|
829
829
|
};
|
|
830
|
-
}), ct =
|
|
830
|
+
}), ct = _(() => {
|
|
831
831
|
let e = R.value?.trail || {}, t = N.value.style.line.strokeWidth || 1;
|
|
832
832
|
return {
|
|
833
833
|
show: e.show !== !1,
|
|
@@ -837,18 +837,18 @@ var mt = ["innerHTML"], ht = {
|
|
|
837
837
|
fadeIn: .5,
|
|
838
838
|
fadeOut: .2
|
|
839
839
|
};
|
|
840
|
-
}), z =
|
|
840
|
+
}), z = _(() => r({
|
|
841
841
|
data: F.value,
|
|
842
842
|
threshold: N.value.downsample.threshold
|
|
843
843
|
}));
|
|
844
|
-
|
|
844
|
+
_(() => {
|
|
845
845
|
if (!N.value.temperatureColors.show) return !1;
|
|
846
846
|
let e = F.value.map(({ value: e }) => e).filter((e) => Number.isFinite(e));
|
|
847
847
|
return new Set(e).size <= 1;
|
|
848
|
-
}),
|
|
848
|
+
}), O(() => k.config, (e) => {
|
|
849
849
|
P.value || (N.value = L()), Qt(), K.value.chartWidth = N.value.style.chartWidth;
|
|
850
|
-
}, { deep: !0 }),
|
|
851
|
-
Array.isArray(e) && e.length > 0 && (Ze.value = !1), B.value =
|
|
850
|
+
}, { deep: !0 }), O(() => k.dataset, (e) => {
|
|
851
|
+
Array.isArray(e) && e.length > 0 && (Ze.value = !1), B.value = r({
|
|
852
852
|
data: F.value.map((e) => ({
|
|
853
853
|
...e,
|
|
854
854
|
value: [void 0].includes(e.value) ? null : e.value
|
|
@@ -856,9 +856,9 @@ var mt = ["innerHTML"], ht = {
|
|
|
856
856
|
threshold: N.value.downsample.threshold
|
|
857
857
|
});
|
|
858
858
|
}, { deep: !0 });
|
|
859
|
-
let B =
|
|
859
|
+
let B = w(V());
|
|
860
860
|
function V() {
|
|
861
|
-
return
|
|
861
|
+
return r({
|
|
862
862
|
data: F.value.map((e) => N.value.style.animation.show && F.value.length > 1 ? {
|
|
863
863
|
...e,
|
|
864
864
|
value: null
|
|
@@ -869,7 +869,7 @@ var mt = ["innerHTML"], ht = {
|
|
|
869
869
|
threshold: N.value.downsample.threshold
|
|
870
870
|
});
|
|
871
871
|
}
|
|
872
|
-
let H =
|
|
872
|
+
let H = Ne(null), U = Ne(null), lt = w(!1), ut = w(0), dt = w([]), ft = w(""), W = _(() => {
|
|
873
873
|
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
874
|
return `${e}#${!!t.show}#${t.animationFrames || 0}#${n}`;
|
|
875
875
|
});
|
|
@@ -899,35 +899,35 @@ var mt = ["innerHTML"], ht = {
|
|
|
899
899
|
};
|
|
900
900
|
ut.value = requestAnimationFrame(s);
|
|
901
901
|
}
|
|
902
|
-
|
|
902
|
+
O(W, () => {
|
|
903
903
|
mt();
|
|
904
|
-
}), Ne(() => {
|
|
905
|
-
Qt(), mt();
|
|
906
904
|
}), Me(() => {
|
|
905
|
+
Qt(), mt();
|
|
906
|
+
}), je(() => {
|
|
907
907
|
pt();
|
|
908
908
|
});
|
|
909
|
-
let gt =
|
|
910
|
-
|
|
911
|
-
e || (await
|
|
912
|
-
}),
|
|
913
|
-
e || P.value || (await
|
|
909
|
+
let gt = w(0);
|
|
910
|
+
O(() => P.value, async (e) => {
|
|
911
|
+
e || (await x(), gt.value += 1);
|
|
912
|
+
}), O(() => lt.value, async (e) => {
|
|
913
|
+
e || P.value || (await x(), gt.value += 1);
|
|
914
914
|
});
|
|
915
|
-
let G =
|
|
915
|
+
let G = _(() => `sparkline_line_path_${A.value}`), Yt = w(!0);
|
|
916
916
|
async function Xt() {
|
|
917
|
-
Yt.value = !1, await
|
|
917
|
+
Yt.value = !1, await x(), Yt.value = !0, await x(), ot();
|
|
918
918
|
}
|
|
919
|
-
let Zt =
|
|
919
|
+
let Zt = _(() => !!N.value.debug);
|
|
920
920
|
function Qt() {
|
|
921
|
-
if (
|
|
921
|
+
if (a(k.dataset) ? (f({
|
|
922
922
|
componentName: "VueUiSparkline",
|
|
923
923
|
type: "dataset",
|
|
924
924
|
debug: Zt.value
|
|
925
|
-
}), Ze.value = !0) :
|
|
926
|
-
|
|
925
|
+
}), Ze.value = !0) : k.dataset.forEach((e, t) => {
|
|
926
|
+
se({
|
|
927
927
|
datasetObject: e,
|
|
928
928
|
requiredAttributes: ["period", "value"]
|
|
929
929
|
}).forEach((e) => {
|
|
930
|
-
|
|
930
|
+
f({
|
|
931
931
|
componentName: "VueUiSparkline",
|
|
932
932
|
type: "datasetSerieAttribute",
|
|
933
933
|
property: e,
|
|
@@ -935,65 +935,65 @@ var mt = ["innerHTML"], ht = {
|
|
|
935
935
|
debug: Zt.value
|
|
936
936
|
});
|
|
937
937
|
});
|
|
938
|
-
}),
|
|
939
|
-
let e =
|
|
940
|
-
let { width: e, height: t } =
|
|
941
|
-
chart:
|
|
942
|
-
title: N.value.style.title.show &&
|
|
938
|
+
}), a(k.dataset) || (Ze.value = N.value.loading), N.value.responsive) {
|
|
939
|
+
let e = ye(() => {
|
|
940
|
+
let { width: e, height: t } = be({
|
|
941
|
+
chart: Ke.value,
|
|
942
|
+
title: N.value.style.title.show && k.showInfo ? qe.value : null,
|
|
943
943
|
source: Je.value
|
|
944
944
|
});
|
|
945
945
|
requestAnimationFrame(() => {
|
|
946
|
-
K.value.width = e, K.value.height = t, K.value.chartWidth = N.value.style.chartWidth / 500 * e, K.value.padding =
|
|
946
|
+
K.value.width = e, K.value.height = t, K.value.chartWidth = N.value.style.chartWidth / 500 * e, K.value.padding = k.forcedPadding / 500 * e;
|
|
947
947
|
});
|
|
948
948
|
});
|
|
949
|
-
H.value && (U.value && H.value.unobserve(U.value), H.value.disconnect()), H.value = new ResizeObserver(e), U.value =
|
|
949
|
+
H.value && (U.value && H.value.unobserve(U.value), H.value.disconnect()), H.value = new ResizeObserver(e), U.value = Ke.value.parentNode, H.value.observe(U.value);
|
|
950
950
|
}
|
|
951
951
|
}
|
|
952
|
-
|
|
952
|
+
je(() => {
|
|
953
953
|
H.value && (U.value && H.value.unobserve(U.value), H.value.disconnect());
|
|
954
954
|
});
|
|
955
|
-
let K =
|
|
956
|
-
height: 80 *
|
|
955
|
+
let K = w({
|
|
956
|
+
height: 80 * k.heightRatio,
|
|
957
957
|
width: 500,
|
|
958
958
|
chartWidth: N.value.style.chartWidth,
|
|
959
|
-
padding:
|
|
960
|
-
}), $t =
|
|
959
|
+
padding: k.forcedPadding
|
|
960
|
+
}), $t = ve, q = _(() => {
|
|
961
961
|
let { top: e, right: t, bottom: n, left: r } = N.value.style.padding;
|
|
962
962
|
return {
|
|
963
963
|
top: e,
|
|
964
964
|
left: r,
|
|
965
965
|
right: K.value.width - t,
|
|
966
966
|
bottom: K.value.height - n,
|
|
967
|
-
start:
|
|
968
|
-
width:
|
|
967
|
+
start: k.showInfo && N.value.style.dataLabel.show && N.value.style.dataLabel.position === "left" ? K.value.width - K.value.chartWidth + r : K.value.padding + r,
|
|
968
|
+
width: k.showInfo && N.value.style.dataLabel.show ? K.value.chartWidth - r - t : K.value.width - K.value.padding - r - t,
|
|
969
969
|
height: K.value.height - e - n
|
|
970
970
|
};
|
|
971
|
-
}), en =
|
|
971
|
+
}), en = _(() => [null, void 0].includes(N.value.style.scaleMin) ? Math.min(...B.value.map((e) => isNaN(e.value) || [
|
|
972
972
|
void 0,
|
|
973
973
|
null,
|
|
974
974
|
"NaN",
|
|
975
975
|
NaN,
|
|
976
976
|
Infinity,
|
|
977
977
|
-Infinity
|
|
978
|
-
].includes(e.value) ? 0 : e.value || 0)) : N.value.style.scaleMin), tn =
|
|
978
|
+
].includes(e.value) ? 0 : e.value || 0)) : N.value.style.scaleMin), tn = _(() => [null, void 0].includes(N.value.style.scaleMax) ? Math.max(...B.value.map((e) => isNaN(e.value) || [
|
|
979
979
|
void 0,
|
|
980
980
|
null,
|
|
981
981
|
"NaN",
|
|
982
982
|
NaN,
|
|
983
983
|
Infinity,
|
|
984
984
|
-Infinity
|
|
985
|
-
].includes(e.value) ? 0 : e.value || 0)) : N.value.style.scaleMax), nn =
|
|
985
|
+
].includes(e.value) ? 0 : e.value || 0)) : N.value.style.scaleMax), nn = _(() => {
|
|
986
986
|
let e = en.value >= 0 ? 0 : en.value;
|
|
987
987
|
return Math.abs(e);
|
|
988
|
-
}), rn =
|
|
988
|
+
}), rn = _(() => tn.value + nn.value), an = _(() => q.value.bottom - q.value.height * on(nn.value));
|
|
989
989
|
function on(e) {
|
|
990
990
|
return isNaN(e / rn.value) ? 0 : e / rn.value;
|
|
991
991
|
}
|
|
992
|
-
let sn =
|
|
993
|
-
|
|
992
|
+
let sn = _(() => z.value.length - 1 || 1), cn = w([]), ln = 0;
|
|
993
|
+
Ie(() => {
|
|
994
994
|
let e = ++ln;
|
|
995
995
|
(async () => {
|
|
996
|
-
let t = await
|
|
996
|
+
let t = await pe({
|
|
997
997
|
values: z.value.map((e) => e.period),
|
|
998
998
|
maxDatapoints: z.value.length,
|
|
999
999
|
formatter: N.value.style.dataLabel.datetimeFormatter,
|
|
@@ -1003,7 +1003,7 @@ var mt = ["innerHTML"], ht = {
|
|
|
1003
1003
|
e === ln && (cn.value = t);
|
|
1004
1004
|
})();
|
|
1005
1005
|
});
|
|
1006
|
-
let J =
|
|
1006
|
+
let J = _(() => B.value.map((e, t) => {
|
|
1007
1007
|
let n = isNaN(e.value) || [
|
|
1008
1008
|
void 0,
|
|
1009
1009
|
"NaN",
|
|
@@ -1019,11 +1019,11 @@ var mt = ["innerHTML"], ht = {
|
|
|
1019
1019
|
toMax: on(n + nn.value),
|
|
1020
1020
|
x: q.value.start + t * r,
|
|
1021
1021
|
y: q.value.bottom - q.value.height * on(n + nn.value),
|
|
1022
|
-
id: `plot_${
|
|
1023
|
-
color: Q.value ? N.value.style.bar.color : N.value.style.area.useGradient ?
|
|
1022
|
+
id: `plot_${A.value}_${t}`,
|
|
1023
|
+
color: Q.value ? N.value.style.bar.color : N.value.style.area.useGradient ? l(N.value.style.line.color, .05 * (1 - t / sn.value)) : N.value.style.line.color,
|
|
1024
1024
|
width: r
|
|
1025
1025
|
};
|
|
1026
|
-
})), un =
|
|
1026
|
+
})), un = _(() => k.selectedIndex !== void 0 && k.selectedIndex !== null && k.selectedIndex >= 0 && k.selectedIndex < J.value.length ? k.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);
|
|
1027
1027
|
function dn(e, t) {
|
|
1028
1028
|
N.value.events.datapointEnter && N.value.events.datapointEnter({
|
|
1029
1029
|
datapoint: e,
|
|
@@ -1036,15 +1036,15 @@ var mt = ["innerHTML"], ht = {
|
|
|
1036
1036
|
seriesIndex: t
|
|
1037
1037
|
}), X.value = Y.value, Y.value = void 0, M.value = null, j.value = null, $t("hoverIndex", { index: void 0 });
|
|
1038
1038
|
}
|
|
1039
|
-
let Z =
|
|
1040
|
-
if (
|
|
1039
|
+
let Z = _(() => {
|
|
1040
|
+
if (We.value) {
|
|
1041
1041
|
let e = J.value.map((e) => e.absoluteValue), t = e.reduce((e, t) => e + t, 0);
|
|
1042
1042
|
return {
|
|
1043
1043
|
latest: J.value[J.value.length - 1] ? J.value[J.value.length - 1].absoluteValue : 0,
|
|
1044
1044
|
sum: t,
|
|
1045
1045
|
average: t / J.value.length,
|
|
1046
1046
|
median: re(e),
|
|
1047
|
-
trend:
|
|
1047
|
+
trend: oe(J.value.map(({ x: e, y: t, absoluteValue: n }) => ({
|
|
1048
1048
|
x: e,
|
|
1049
1049
|
y: t,
|
|
1050
1050
|
value: n
|
|
@@ -1057,7 +1057,7 @@ var mt = ["innerHTML"], ht = {
|
|
|
1057
1057
|
median: null,
|
|
1058
1058
|
trend: null
|
|
1059
1059
|
};
|
|
1060
|
-
}), pn =
|
|
1060
|
+
}), pn = _(() => We.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");
|
|
1061
1061
|
function mn(e, t) {
|
|
1062
1062
|
N.value.events.datapointClick && N.value.events.datapointClick({
|
|
1063
1063
|
datapoint: e,
|
|
@@ -1067,7 +1067,7 @@ var mt = ["innerHTML"], ht = {
|
|
|
1067
1067
|
index: t
|
|
1068
1068
|
});
|
|
1069
1069
|
}
|
|
1070
|
-
let hn =
|
|
1070
|
+
let hn = _(() => Array.isArray(N.value.style.line.dashIndices) && N.value.style.line.dashIndices.length > 0), gn = _(() => N.value.style.line.cutNullValues);
|
|
1071
1071
|
function _n(e) {
|
|
1072
1072
|
return ![
|
|
1073
1073
|
null,
|
|
@@ -1094,11 +1094,11 @@ var mt = ["innerHTML"], ht = {
|
|
|
1094
1094
|
function Sn(e, t) {
|
|
1095
1095
|
return yn(e, t) ? N.value.style.plot.stroke : N.value.style.backgroundColor;
|
|
1096
1096
|
}
|
|
1097
|
-
let Cn =
|
|
1097
|
+
let Cn = _(() => gn.value ? J.value : J.value.filter((e) => e.value !== null)), wn = _(() => J.value.filter((e) => e.value !== null)), Tn = _(() => wn.value.length > 1), En = _(() => Q.value || !Tn.value ? "" : gn.value ? u(J.value) : ae(Cn.value)), Dn = _(() => Q.value || !Tn.value ? "" : gn.value ? fe(J.value) : p(Cn.value)), On = _(() => Q.value || !hn.value || !Tn.value ? [] : d(Cn.value, N.value.style.line.dashIndices)), kn = _(() => Q.value || !hn.value || !Tn.value ? [] : n(Cn.value, N.value.style.line.dashIndices)), An = _(() => Q.value || !N.value.style.area.show || !Tn.value ? [] : N.value.style.line.smooth ? t(Cn.value, q.value.bottom, gn.value).filter(Boolean) : (gn.value ? i(J.value, q.value.bottom) : o(Cn.value, q.value.bottom)).split(";").filter(Boolean).map((e) => `M${e}Z`)), jn = _(() => Q.value || !N.value.gradientPath.show || N.value.temperatureColors.show ? "" : `M ${(N.value.style.line.smooth ? En.value : Dn.value) || "0,0"}`), Mn = _(() => {
|
|
1098
1098
|
if (!N.value.temperatureColors.show) return null;
|
|
1099
1099
|
let e = N.value.temperatureColors.colors;
|
|
1100
1100
|
return !Array.isArray(e) || !e.length ? null : e.map((e) => ne(e));
|
|
1101
|
-
}), $ =
|
|
1101
|
+
}), $ = _(() => {
|
|
1102
1102
|
if (!N.value.temperatureColors.show) return null;
|
|
1103
1103
|
let e = N.value.temperatureColors.colors;
|
|
1104
1104
|
return !Array.isArray(e) || !e.length ? null : e.map((e) => ne(e));
|
|
@@ -1110,12 +1110,12 @@ var mt = ["innerHTML"], ht = {
|
|
|
1110
1110
|
}
|
|
1111
1111
|
function Pn(e) {
|
|
1112
1112
|
let t = Mn.value;
|
|
1113
|
-
return !Array.isArray(t) || !t.length ? e.color :
|
|
1113
|
+
return !Array.isArray(t) || !t.length ? e.color : ie({
|
|
1114
1114
|
colors: t,
|
|
1115
1115
|
ratio: Nn(e)
|
|
1116
1116
|
});
|
|
1117
1117
|
}
|
|
1118
|
-
|
|
1118
|
+
O(() => [
|
|
1119
1119
|
at.value,
|
|
1120
1120
|
G.value,
|
|
1121
1121
|
J.value.length,
|
|
@@ -1123,14 +1123,14 @@ var mt = ["innerHTML"], ht = {
|
|
|
1123
1123
|
K.value.height,
|
|
1124
1124
|
N.value?.style?.line?.smooth
|
|
1125
1125
|
], async () => {
|
|
1126
|
-
await
|
|
1127
|
-
}, { immediate: !0 }),
|
|
1128
|
-
await
|
|
1129
|
-
}),
|
|
1126
|
+
await x(), ot();
|
|
1127
|
+
}, { immediate: !0 }), Me(async () => {
|
|
1128
|
+
await x(), ot();
|
|
1129
|
+
}), O(() => P.value, async (e) => {
|
|
1130
1130
|
e || await Xt();
|
|
1131
|
-
}),
|
|
1131
|
+
}), O(() => lt.value, async (e) => {
|
|
1132
1132
|
e || P.value || await Xt();
|
|
1133
|
-
}),
|
|
1133
|
+
}), O(() => k.selectedIndex, (e) => {
|
|
1134
1134
|
if (e == null) {
|
|
1135
1135
|
M.value = null, j.value = null, Y.value = void 0;
|
|
1136
1136
|
return;
|
|
@@ -1139,7 +1139,7 @@ var mt = ["innerHTML"], ht = {
|
|
|
1139
1139
|
let t = J.value[e];
|
|
1140
1140
|
t && (M.value = e, j.value = e, Y.value = t);
|
|
1141
1141
|
});
|
|
1142
|
-
let Fn =
|
|
1142
|
+
let Fn = w(!1);
|
|
1143
1143
|
function In() {
|
|
1144
1144
|
let e = un.value;
|
|
1145
1145
|
if (e !== null && e >= 0 && e < J.value.length) {
|
|
@@ -1152,7 +1152,7 @@ var mt = ["innerHTML"], ht = {
|
|
|
1152
1152
|
j.value = null, !Y.value && J.value.length && dn(J.value.at(-1), J.value.length - 1), Fn.value = !0;
|
|
1153
1153
|
}
|
|
1154
1154
|
function Ln() {
|
|
1155
|
-
X.value = Y.value, (
|
|
1155
|
+
X.value = Y.value, (k.selectedIndex === void 0 || k.selectedIndex === null) && (j.value = null, Y.value = void 0, M.value = null, $t("hoverIndex", { index: void 0 })), Fn.value = !1;
|
|
1156
1156
|
}
|
|
1157
1157
|
function Rn(e) {
|
|
1158
1158
|
if (!I.value || document.activeElement !== I.value) return;
|
|
@@ -1167,24 +1167,24 @@ var mt = ["innerHTML"], ht = {
|
|
|
1167
1167
|
let s = J.value[i];
|
|
1168
1168
|
s && (j.value = i, dn(s, i));
|
|
1169
1169
|
}
|
|
1170
|
-
let zn =
|
|
1170
|
+
let zn = _(() => ({
|
|
1171
1171
|
headers: [N.value.translations.period, N.value.translations.value],
|
|
1172
1172
|
rows: J.value.map((e) => [e.period, e.absoluteValue])
|
|
1173
1173
|
}));
|
|
1174
|
-
return (t, n) => (
|
|
1174
|
+
return (t, n) => (C(), y("div", {
|
|
1175
1175
|
ref_key: "sparklineChart",
|
|
1176
|
-
ref:
|
|
1176
|
+
ref: Ke,
|
|
1177
1177
|
class: "vue-data-ui-component vue-ui-sparkline",
|
|
1178
|
-
id:
|
|
1179
|
-
style:
|
|
1178
|
+
id: A.value,
|
|
1179
|
+
style: S(`width:100%;font-family:${N.value.style.fontFamily};`)
|
|
1180
1180
|
}, [
|
|
1181
|
-
|
|
1182
|
-
id: `chart-instructions-${
|
|
1181
|
+
b("p", {
|
|
1182
|
+
id: `chart-instructions-${A.value}`,
|
|
1183
1183
|
class: "sr-only"
|
|
1184
|
-
},
|
|
1185
|
-
zn.value?.rows?.length ? (
|
|
1184
|
+
}, Pe(N.value.a11y.translations.keyboardNavigation), 9, vt),
|
|
1185
|
+
zn.value?.rows?.length ? (C(), Te(xe, {
|
|
1186
1186
|
key: 0,
|
|
1187
|
-
uid:
|
|
1187
|
+
uid: A.value,
|
|
1188
1188
|
head: zn.value.headers,
|
|
1189
1189
|
body: zn.value.rows,
|
|
1190
1190
|
notice: N.value.a11y.translations.tableAvailable,
|
|
@@ -1195,8 +1195,8 @@ var mt = ["innerHTML"], ht = {
|
|
|
1195
1195
|
"body",
|
|
1196
1196
|
"notice",
|
|
1197
1197
|
"caption"
|
|
1198
|
-
])) :
|
|
1199
|
-
|
|
1198
|
+
])) : v("", !0),
|
|
1199
|
+
E(t.$slots, "before", Ae(ke({
|
|
1200
1200
|
selected: Y.value,
|
|
1201
1201
|
latest: Z.value.latest,
|
|
1202
1202
|
sum: Z.value.sum,
|
|
@@ -1204,108 +1204,108 @@ var mt = ["innerHTML"], ht = {
|
|
|
1204
1204
|
median: Z.value.median,
|
|
1205
1205
|
trend: Z.value.trend
|
|
1206
1206
|
})), void 0, !0),
|
|
1207
|
-
N.value.style.title.show && e.showInfo ? (
|
|
1207
|
+
N.value.style.title.show && e.showInfo ? (C(), y("div", {
|
|
1208
1208
|
key: 1,
|
|
1209
1209
|
ref_key: "chartTitle",
|
|
1210
1210
|
ref: qe,
|
|
1211
1211
|
class: "vue-ui-sparkline-title",
|
|
1212
|
-
style:
|
|
1213
|
-
}, [
|
|
1214
|
-
|
|
1212
|
+
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"};`)
|
|
1213
|
+
}, [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"}`) }, Pe(Y.value ? Y.value.period : N.value.style.title.text), 5)], 4)) : v("", !0),
|
|
1214
|
+
b("div", yt, [(C(), y("svg", {
|
|
1215
1215
|
ref_key: "svgRef",
|
|
1216
1216
|
ref: I,
|
|
1217
|
-
xmlns:
|
|
1217
|
+
xmlns: D(ue),
|
|
1218
1218
|
viewBox: `0 0 ${K.value.width} ${K.value.height}`,
|
|
1219
|
-
style:
|
|
1219
|
+
style: S(`background:${N.value.style.backgroundColor};overflow:visible;direction:ltr`),
|
|
1220
1220
|
tabindex: "0",
|
|
1221
|
-
"aria-describedby": `chart-instructions-${
|
|
1221
|
+
"aria-describedby": `chart-instructions-${A.value}`,
|
|
1222
1222
|
onMouseleave: n[0] ||= (e) => X.value = void 0,
|
|
1223
1223
|
onFocus: In,
|
|
1224
1224
|
onBlur: Ln,
|
|
1225
1225
|
onKeydown: Rn
|
|
1226
1226
|
}, [
|
|
1227
|
-
|
|
1228
|
-
t.$slots["chart-background"] ? (
|
|
1227
|
+
De(D(Re)),
|
|
1228
|
+
t.$slots["chart-background"] ? (C(), y("foreignObject", {
|
|
1229
1229
|
key: 0,
|
|
1230
1230
|
x: 0,
|
|
1231
1231
|
y: 0,
|
|
1232
1232
|
width: K.value.width <= 0 ? 10 : K.value.width,
|
|
1233
1233
|
height: K.value.height <= 0 ? 10 : K.value.height,
|
|
1234
1234
|
style: { pointerEvents: "none" }
|
|
1235
|
-
}, [
|
|
1236
|
-
|
|
1237
|
-
|
|
1235
|
+
}, [E(t.$slots, "chart-background", {}, void 0, !0)], 8, xt)) : v("", !0),
|
|
1236
|
+
b("defs", null, [
|
|
1237
|
+
b("linearGradient", {
|
|
1238
1238
|
x1: "0%",
|
|
1239
1239
|
y1: "0%",
|
|
1240
1240
|
x2: "100%",
|
|
1241
1241
|
y2: "0%",
|
|
1242
|
-
id: `sparkline_gradient_${
|
|
1243
|
-
}, [
|
|
1242
|
+
id: `sparkline_gradient_${A.value}`
|
|
1243
|
+
}, [b("stop", {
|
|
1244
1244
|
offset: "0%",
|
|
1245
|
-
"stop-color":
|
|
1246
|
-
}, null, 8, Ct),
|
|
1245
|
+
"stop-color": D(c)(D(l)(N.value.style.area.color, .05), N.value.style.area.opacity)
|
|
1246
|
+
}, null, 8, Ct), b("stop", {
|
|
1247
1247
|
offset: "100%",
|
|
1248
|
-
"stop-color":
|
|
1248
|
+
"stop-color": D(c)(N.value.style.area.color, N.value.style.area.opacity)
|
|
1249
1249
|
}, null, 8, wt)], 8, St),
|
|
1250
|
-
|
|
1250
|
+
b("linearGradient", {
|
|
1251
1251
|
x2: "0%",
|
|
1252
1252
|
y2: "100%",
|
|
1253
|
-
id: `sparkline_bar_gradient_pos_${
|
|
1254
|
-
}, [
|
|
1253
|
+
id: `sparkline_bar_gradient_pos_${A.value}`
|
|
1254
|
+
}, [b("stop", {
|
|
1255
1255
|
offset: "0%",
|
|
1256
1256
|
"stop-color": N.value.style.bar.color
|
|
1257
|
-
}, null, 8, Et),
|
|
1257
|
+
}, null, 8, Et), b("stop", {
|
|
1258
1258
|
offset: "100%",
|
|
1259
|
-
"stop-color":
|
|
1259
|
+
"stop-color": D(l)(N.value.style.bar.color, .05)
|
|
1260
1260
|
}, null, 8, Dt)], 8, Tt),
|
|
1261
|
-
|
|
1261
|
+
b("linearGradient", {
|
|
1262
1262
|
x2: "0%",
|
|
1263
1263
|
y2: "100%",
|
|
1264
|
-
id: `sparkline_bar_gradient_neg_${
|
|
1265
|
-
}, [
|
|
1264
|
+
id: `sparkline_bar_gradient_neg_${A.value}`
|
|
1265
|
+
}, [b("stop", {
|
|
1266
1266
|
offset: "0%",
|
|
1267
|
-
"stop-color":
|
|
1268
|
-
}, null, 8, kt),
|
|
1267
|
+
"stop-color": D(l)(N.value.style.bar.color, .05)
|
|
1268
|
+
}, null, 8, kt), b("stop", {
|
|
1269
1269
|
offset: "100%",
|
|
1270
1270
|
"stop-color": N.value.style.bar.color
|
|
1271
1271
|
}, null, 8, At)], 8, Ot),
|
|
1272
|
-
|
|
1273
|
-
id: `sparkline_pulse_glow_${
|
|
1272
|
+
b("filter", {
|
|
1273
|
+
id: `sparkline_pulse_glow_${A.value}`,
|
|
1274
1274
|
filterUnits: "userSpaceOnUse",
|
|
1275
1275
|
x: "-50",
|
|
1276
1276
|
y: "-50",
|
|
1277
1277
|
width: "100",
|
|
1278
1278
|
height: "100"
|
|
1279
|
-
}, [...n[1] ||= [
|
|
1279
|
+
}, [...n[1] ||= [b("feGaussianBlur", {
|
|
1280
1280
|
in: "SourceGraphic",
|
|
1281
1281
|
stdDeviation: "3",
|
|
1282
1282
|
result: "blur"
|
|
1283
|
-
}, null, -1),
|
|
1284
|
-
N.value.temperatureColors.show && $.value ? (
|
|
1283
|
+
}, null, -1), b("feMerge", null, [b("feMergeNode", { in: "blur" }), b("feMergeNode", { in: "SourceGraphic" })], -1)]], 8, jt),
|
|
1284
|
+
N.value.temperatureColors.show && $.value ? (C(), y("linearGradient", {
|
|
1285
1285
|
key: 0,
|
|
1286
|
-
id: `temperature_grad_sparkline_${
|
|
1286
|
+
id: `temperature_grad_sparkline_${A.value}`,
|
|
1287
1287
|
gradientUnits: "userSpaceOnUse",
|
|
1288
1288
|
x1: "0",
|
|
1289
1289
|
x2: "0",
|
|
1290
1290
|
y1: q.value.top,
|
|
1291
1291
|
y2: q.value.bottom
|
|
1292
|
-
}, [(
|
|
1293
|
-
key: `temperature_grad_stop_${t}_${
|
|
1292
|
+
}, [(C(!0), y(g, null, T($.value, (e, t) => (C(), y("stop", {
|
|
1293
|
+
key: `temperature_grad_stop_${t}_${A.value}`,
|
|
1294
1294
|
"stop-color": e,
|
|
1295
|
-
offset: $.value.length === 1 ? "0%" :
|
|
1296
|
-
}, null, 8, Nt))), 128))], 8, Mt)) :
|
|
1295
|
+
offset: $.value.length === 1 ? "0%" : D(s)(t, $.value.length)
|
|
1296
|
+
}, null, 8, Nt))), 128))], 8, Mt)) : v("", !0)
|
|
1297
1297
|
]),
|
|
1298
|
-
N.value.style.area.show && !Q.value && An.value.length ? (
|
|
1299
|
-
key: `sparkline_area_${t}_${
|
|
1298
|
+
N.value.style.area.show && !Q.value && An.value.length ? (C(), y("g", Pt, [(C(!0), y(g, null, T(An.value, (e, t) => (C(), y("path", {
|
|
1299
|
+
key: `sparkline_area_${t}_${A.value}`,
|
|
1300
1300
|
class: "vue-ui-sparkline-area",
|
|
1301
1301
|
"data-cy": N.value.style.line.smooth ? "sparkline-smooth-area" : "sparkline-angle-area",
|
|
1302
1302
|
d: e,
|
|
1303
|
-
fill: N.value.style.area.useGradient ? `url(#sparkline_gradient_${
|
|
1303
|
+
fill: N.value.style.area.useGradient ? `url(#sparkline_gradient_${A.value})` : D(c)(N.value.style.area.color, N.value.style.area.opacity),
|
|
1304
1304
|
"stroke-linecap": "round",
|
|
1305
1305
|
"stroke-linejoin": "round",
|
|
1306
|
-
style:
|
|
1307
|
-
}, null, 12, Ft))), 128))])) :
|
|
1308
|
-
N.value.style.line.smooth && !Q.value ? (
|
|
1306
|
+
style: S({ transition: D(P) ? void 0 : "all 0.2s" })
|
|
1307
|
+
}, null, 12, Ft))), 128))])) : v("", !0),
|
|
1308
|
+
N.value.style.line.smooth && !Q.value ? (C(), y(g, { key: 2 }, [b("path", {
|
|
1309
1309
|
id: G.value,
|
|
1310
1310
|
d: `M ${En.value || "0,0"}`,
|
|
1311
1311
|
fill: "none",
|
|
@@ -1313,29 +1313,29 @@ var mt = ["innerHTML"], ht = {
|
|
|
1313
1313
|
"stroke-width": N.value.style.line.strokeWidth,
|
|
1314
1314
|
"stroke-linecap": "round",
|
|
1315
1315
|
"stroke-linejoin": "round"
|
|
1316
|
-
}, null, 8, It), hn.value ? (
|
|
1316
|
+
}, null, 8, It), hn.value ? (C(!0), y(g, { key: 0 }, T(On.value, (e) => (C(), y("path", {
|
|
1317
1317
|
key: e.path,
|
|
1318
1318
|
class: "vue-ui-sparkline-path",
|
|
1319
1319
|
d: `M ${e.path}`,
|
|
1320
|
-
stroke: $.value ? `url(#temperature_grad_sparkline_${
|
|
1320
|
+
stroke: $.value ? `url(#temperature_grad_sparkline_${A.value})` : N.value.style.line.color,
|
|
1321
1321
|
fill: "none",
|
|
1322
1322
|
"stroke-width": N.value.style.line.strokeWidth,
|
|
1323
1323
|
"stroke-linecap": "round",
|
|
1324
1324
|
"stroke-linejoin": "round",
|
|
1325
1325
|
"stroke-dasharray": e.dashed ? N.value.style.line.dashArray : 0,
|
|
1326
|
-
style:
|
|
1327
|
-
}, null, 12, Lt))), 128)) : (
|
|
1326
|
+
style: S({ transition: D(P) ? void 0 : "all 0.2s" })
|
|
1327
|
+
}, null, 12, Lt))), 128)) : (C(), y("path", {
|
|
1328
1328
|
key: 1,
|
|
1329
1329
|
class: "vue-ui-sparkline-path",
|
|
1330
1330
|
d: `M ${En.value || "0,0"}`,
|
|
1331
|
-
stroke: $.value ? `url(#temperature_grad_sparkline_${
|
|
1331
|
+
stroke: $.value ? `url(#temperature_grad_sparkline_${A.value})` : N.value.style.line.color,
|
|
1332
1332
|
fill: "none",
|
|
1333
1333
|
"stroke-width": N.value.style.line.strokeWidth,
|
|
1334
1334
|
"stroke-linecap": "round",
|
|
1335
1335
|
"stroke-linejoin": "round",
|
|
1336
|
-
style:
|
|
1337
|
-
}, null, 12, Rt))], 64)) :
|
|
1338
|
-
!N.value.style.line.smooth && !Q.value ? (
|
|
1336
|
+
style: S({ transition: D(P) ? void 0 : "all 0.2s" })
|
|
1337
|
+
}, null, 12, Rt))], 64)) : v("", !0),
|
|
1338
|
+
!N.value.style.line.smooth && !Q.value ? (C(), y(g, { key: 3 }, [b("path", {
|
|
1339
1339
|
id: G.value,
|
|
1340
1340
|
d: `M ${Dn.value || "0,0"}`,
|
|
1341
1341
|
fill: "none",
|
|
@@ -1343,29 +1343,29 @@ var mt = ["innerHTML"], ht = {
|
|
|
1343
1343
|
"stroke-width": N.value.style.line.strokeWidth,
|
|
1344
1344
|
"stroke-linecap": "round",
|
|
1345
1345
|
"stroke-linejoin": "round"
|
|
1346
|
-
}, null, 8, zt), hn.value ? (
|
|
1346
|
+
}, null, 8, zt), hn.value ? (C(!0), y(g, { key: 0 }, T(kn.value, (e) => (C(), y("path", {
|
|
1347
1347
|
key: e.path,
|
|
1348
1348
|
class: "vue-ui-sparkline-path",
|
|
1349
1349
|
d: `M ${e.path}`,
|
|
1350
|
-
stroke: $.value ? `url(#temperature_grad_sparkline_${
|
|
1350
|
+
stroke: $.value ? `url(#temperature_grad_sparkline_${A.value})` : N.value.style.line.color,
|
|
1351
1351
|
fill: "none",
|
|
1352
1352
|
"stroke-width": N.value.style.line.strokeWidth,
|
|
1353
1353
|
"stroke-linecap": "round",
|
|
1354
1354
|
"stroke-linejoin": "round",
|
|
1355
1355
|
"stroke-dasharray": e.dashed ? N.value.style.line.dashArray * 2 : 0,
|
|
1356
|
-
style:
|
|
1357
|
-
}, null, 12, Bt))), 128)) : (
|
|
1356
|
+
style: S({ transition: D(P) ? void 0 : "all 0.2s" })
|
|
1357
|
+
}, null, 12, Bt))), 128)) : (C(), y("path", {
|
|
1358
1358
|
key: 1,
|
|
1359
1359
|
class: "vue-ui-sparkline-path",
|
|
1360
1360
|
d: `M ${Dn.value || "0,0"}`,
|
|
1361
|
-
stroke: $.value ? `url(#temperature_grad_sparkline_${
|
|
1361
|
+
stroke: $.value ? `url(#temperature_grad_sparkline_${A.value})` : N.value.style.line.color,
|
|
1362
1362
|
fill: "none",
|
|
1363
1363
|
"stroke-width": N.value.style.line.strokeWidth,
|
|
1364
1364
|
"stroke-linecap": "round",
|
|
1365
1365
|
"stroke-linejoin": "round",
|
|
1366
|
-
style:
|
|
1367
|
-
}, null, 12, Vt))], 64)) :
|
|
1368
|
-
jn.value && !$.value ? (
|
|
1366
|
+
style: S({ transition: D(P) ? void 0 : "all 0.2s" })
|
|
1367
|
+
}, null, 12, Vt))], 64)) : v("", !0),
|
|
1368
|
+
jn.value && !$.value ? (C(), Te(ht, {
|
|
1369
1369
|
key: 4,
|
|
1370
1370
|
svgPathData: jn.value,
|
|
1371
1371
|
enabled: N.value.gradientPath.show && !Q.value && !$.value,
|
|
@@ -1380,11 +1380,11 @@ var mt = ["innerHTML"], ht = {
|
|
|
1380
1380
|
"highColor",
|
|
1381
1381
|
"lowColor",
|
|
1382
1382
|
"segments"
|
|
1383
|
-
])) :
|
|
1384
|
-
Yt.value && at.value ? (
|
|
1383
|
+
])) : v("", !0),
|
|
1384
|
+
Yt.value && at.value ? (C(), Te(Ge, {
|
|
1385
1385
|
key: 5,
|
|
1386
|
-
uid:
|
|
1387
|
-
svgRef:
|
|
1386
|
+
uid: A.value,
|
|
1387
|
+
svgRef: D(I),
|
|
1388
1388
|
pulsePathId: G.value,
|
|
1389
1389
|
pulsePathLength: $e.value,
|
|
1390
1390
|
pulseDur: Qe.value,
|
|
@@ -1396,8 +1396,8 @@ var mt = ["innerHTML"], ht = {
|
|
|
1396
1396
|
pulse: R.value,
|
|
1397
1397
|
pulseTrail: ct.value,
|
|
1398
1398
|
pulseTrailLength: it.value,
|
|
1399
|
-
prefersReducedMotion:
|
|
1400
|
-
loading:
|
|
1399
|
+
prefersReducedMotion: D(Ue),
|
|
1400
|
+
loading: D(P),
|
|
1401
1401
|
isBar: Q.value
|
|
1402
1402
|
}, null, 8, [
|
|
1403
1403
|
"uid",
|
|
@@ -1416,16 +1416,16 @@ var mt = ["innerHTML"], ht = {
|
|
|
1416
1416
|
"prefersReducedMotion",
|
|
1417
1417
|
"loading",
|
|
1418
1418
|
"isBar"
|
|
1419
|
-
])) :
|
|
1420
|
-
(
|
|
1419
|
+
])) : v("", !0),
|
|
1420
|
+
(C(!0), y(g, null, T(J.value, (e, t) => (C(), y("g", null, [Q.value ? (C(), y("rect", {
|
|
1421
1421
|
key: 0,
|
|
1422
1422
|
x: e.x - e.width / 2,
|
|
1423
1423
|
y: isNaN(e.absoluteValue > 0 ? e.y : an.value) ? 0 : e.absoluteValue > 0 ? e.y : an.value,
|
|
1424
1424
|
width: e.width,
|
|
1425
1425
|
height: isNaN(Math.abs(e.y - an.value)) ? 0 : Math.abs(e.y - an.value),
|
|
1426
|
-
fill: e.absoluteValue > 0 ? `url(#sparkline_bar_gradient_pos_${
|
|
1426
|
+
fill: e.absoluteValue > 0 ? `url(#sparkline_bar_gradient_pos_${A.value})` : `url(#sparkline_bar_gradient_neg_${A.value})`,
|
|
1427
1427
|
rx: N.value.style.bar.borderRadius
|
|
1428
|
-
}, null, 8, Ht)) :
|
|
1428
|
+
}, null, 8, Ht)) : v("", !0), N.value.style.verticalIndicator.show && (Y.value && e.id === Y.value.id || un.value === t) ? (C(), y("line", {
|
|
1429
1429
|
key: 1,
|
|
1430
1430
|
x1: e.x,
|
|
1431
1431
|
x2: e.x,
|
|
@@ -1435,19 +1435,19 @@ var mt = ["innerHTML"], ht = {
|
|
|
1435
1435
|
"stroke-width": N.value.style.verticalIndicator.strokeWidth,
|
|
1436
1436
|
"stroke-linecap": "round",
|
|
1437
1437
|
"stroke-dasharray": N.value.style.verticalIndicator.strokeDasharray || 0
|
|
1438
|
-
}, null, 8, Ut)) :
|
|
1439
|
-
en.value < 0 ? (
|
|
1438
|
+
}, null, 8, Ut)) : v("", !0)]))), 256)),
|
|
1439
|
+
en.value < 0 ? (C(), y("line", {
|
|
1440
1440
|
key: 6,
|
|
1441
1441
|
x1: q.value.start,
|
|
1442
1442
|
x2: q.value.start + q.value.width,
|
|
1443
|
-
y1:
|
|
1444
|
-
y2:
|
|
1443
|
+
y1: D(le)(an.value, q.value.bottom),
|
|
1444
|
+
y2: D(le)(an.value, q.value.bottom),
|
|
1445
1445
|
stroke: N.value.style.zeroLine.color,
|
|
1446
1446
|
"stroke-dasharray": N.value.style.zeroLine.strokeWidth * 2,
|
|
1447
1447
|
"stroke-width": N.value.style.zeroLine.strokeWidth,
|
|
1448
1448
|
"stroke-linecap": "round"
|
|
1449
|
-
}, null, 8, Wt)) :
|
|
1450
|
-
(
|
|
1449
|
+
}, null, 8, Wt)) : v("", !0),
|
|
1450
|
+
(C(!0), y(g, null, T(J.value, (e, t) => (C(), y("g", { key: `sparkline_plot_${e.id}` }, [bn(e, t) ? (C(), y("circle", {
|
|
1451
1451
|
key: 0,
|
|
1452
1452
|
cx: e.x,
|
|
1453
1453
|
cy: e.y,
|
|
@@ -1455,26 +1455,26 @@ var mt = ["innerHTML"], ht = {
|
|
|
1455
1455
|
fill: Pn(e),
|
|
1456
1456
|
stroke: Sn(e, t),
|
|
1457
1457
|
"stroke-width": N.value.style.plot.strokeWidth
|
|
1458
|
-
}, null, 8, Gt)) :
|
|
1459
|
-
e.showInfo && N.value.style.dataLabel.show ? (
|
|
1458
|
+
}, null, 8, Gt)) : v("", !0)]))), 128)),
|
|
1459
|
+
e.showInfo && N.value.style.dataLabel.show ? (C(), y("text", {
|
|
1460
1460
|
key: 7,
|
|
1461
1461
|
x: N.value.style.dataLabel.position === "left" ? 12 + N.value.style.dataLabel.offsetX : q.value.width + 12 + N.value.style.dataLabel.offsetX,
|
|
1462
1462
|
y: K.value.height / 2 + N.value.style.dataLabel.fontSize / 2.5 + N.value.style.dataLabel.offsetY,
|
|
1463
1463
|
"font-size": N.value.style.dataLabel.fontSize,
|
|
1464
1464
|
"font-weight": N.value.style.dataLabel.bold ? "bold" : "normal",
|
|
1465
1465
|
fill: N.value.style.dataLabel.color
|
|
1466
|
-
},
|
|
1466
|
+
}, Pe(Y.value ? D(m)(N.value.style.dataLabel.formatter, Y.value.absoluteValue, D(ce)({
|
|
1467
1467
|
p: N.value.style.dataLabel.prefix,
|
|
1468
1468
|
v: Y.value.absoluteValue,
|
|
1469
1469
|
s: N.value.style.dataLabel.suffix,
|
|
1470
1470
|
r: N.value.style.dataLabel.roundingValue
|
|
1471
|
-
}), { datapoint: Y.value }) :
|
|
1471
|
+
}), { datapoint: Y.value }) : D(m)(N.value.style.dataLabel.formatter, pn.value, D(ce)({
|
|
1472
1472
|
p: N.value.style.dataLabel.prefix,
|
|
1473
1473
|
v: pn.value,
|
|
1474
1474
|
s: N.value.style.dataLabel.suffix,
|
|
1475
1475
|
r: N.value.style.dataLabel.roundingValue
|
|
1476
|
-
}))), 9, Kt)) :
|
|
1477
|
-
(
|
|
1476
|
+
}))), 9, Kt)) : v("", !0),
|
|
1477
|
+
(C(!0), y(g, null, T(J.value, (e, t) => (C(), y("rect", {
|
|
1478
1478
|
x: e.x - (q.value.width / (sn.value + 1) > K.value.padding ? K.value.padding : q.value.width / (sn.value + 1)) / 2,
|
|
1479
1479
|
y: q.value.top - 6,
|
|
1480
1480
|
height: q.value.height + 6,
|
|
@@ -1484,25 +1484,25 @@ var mt = ["innerHTML"], ht = {
|
|
|
1484
1484
|
onMouseleave: () => fn(e, t),
|
|
1485
1485
|
onClick: () => mn(e, t)
|
|
1486
1486
|
}, null, 40, qt))), 256)),
|
|
1487
|
-
|
|
1487
|
+
E(t.$slots, "svg", { svg: {
|
|
1488
1488
|
...K.value,
|
|
1489
1489
|
drawingArea: q.value,
|
|
1490
1490
|
timeLabels: cn.value,
|
|
1491
1491
|
series: J.value,
|
|
1492
1492
|
hoveredIndex: j.value
|
|
1493
1493
|
} }, void 0, !0)
|
|
1494
|
-
], 44, bt)), t.$slots.hint ? (
|
|
1494
|
+
], 44, bt)), t.$slots.hint ? (C(), y("div", Jt, [E(t.$slots, "hint", Ae(ke({
|
|
1495
1495
|
hint: N.value.a11y.translations.keyboardNavigation,
|
|
1496
1496
|
isVisible: Fn.value
|
|
1497
|
-
})), void 0, !0)])) :
|
|
1498
|
-
Y.value && N.value.style.tooltip.show ? (
|
|
1497
|
+
})), void 0, !0)])) : v("", !0)]),
|
|
1498
|
+
Y.value && N.value.style.tooltip.show ? (C(), Te(D(ze), {
|
|
1499
1499
|
key: 2,
|
|
1500
1500
|
x: Y.value.x,
|
|
1501
1501
|
y: Y.value.y,
|
|
1502
1502
|
prevX: X.value.x,
|
|
1503
1503
|
prevY: X.value.y,
|
|
1504
1504
|
offsetY: N.value.style.plot.radius * 3 + N.value.style.tooltip.offsetY,
|
|
1505
|
-
svgRef:
|
|
1505
|
+
svgRef: D(I),
|
|
1506
1506
|
background: N.value.style.tooltip.backgroundColor,
|
|
1507
1507
|
color: N.value.style.tooltip.color,
|
|
1508
1508
|
fontSize: N.value.style.tooltip.fontSize,
|
|
@@ -1511,7 +1511,7 @@ var mt = ["innerHTML"], ht = {
|
|
|
1511
1511
|
borderRadius: N.value.style.tooltip.borderRadius,
|
|
1512
1512
|
backgroundOpacity: N.value.style.tooltip.backgroundOpacity
|
|
1513
1513
|
}, {
|
|
1514
|
-
default:
|
|
1514
|
+
default: Le(() => [E(t.$slots, "tooltip", Ae(ke({ ...Y.value })), () => [Ee(Pe(Y.value.period) + ": " + Pe(D(m)(N.value.style.dataLabel.formatter, Y.value.absoluteValue, D(ce)({
|
|
1515
1515
|
p: N.value.style.dataLabel.prefix,
|
|
1516
1516
|
v: Y.value.absoluteValue,
|
|
1517
1517
|
s: N.value.style.dataLabel.suffix,
|
|
@@ -1532,14 +1532,14 @@ var mt = ["innerHTML"], ht = {
|
|
|
1532
1532
|
"borderColor",
|
|
1533
1533
|
"borderRadius",
|
|
1534
1534
|
"backgroundOpacity"
|
|
1535
|
-
])) :
|
|
1536
|
-
t.$slots.source ? (
|
|
1535
|
+
])) : v("", !0),
|
|
1536
|
+
t.$slots.source ? (C(), y("div", {
|
|
1537
1537
|
key: 3,
|
|
1538
1538
|
ref_key: "source",
|
|
1539
1539
|
ref: Je,
|
|
1540
1540
|
dir: "auto"
|
|
1541
|
-
}, [
|
|
1542
|
-
|
|
1541
|
+
}, [E(t.$slots, "source", {}, void 0, !0)], 512)) : v("", !0),
|
|
1542
|
+
E(t.$slots, "skeleton", {}, () => [D(P) ? (C(), Te(he, { key: 0 })) : v("", !0)], !0)
|
|
1543
1543
|
], 12, _t));
|
|
1544
1544
|
}
|
|
1545
1545
|
}, [["__scopeId", "data-v-9fa1c607"]]);
|