vue-data-ui 3.22.14 → 3.23.1
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-Ci7Burxz.js → Arrow-CF0VFcBH.js} +1 -1
- package/dist/{BaseDraggableDialog-hyW32gLf.js → BaseDraggableDialog-LoqqwRtV.js} +2 -2
- package/dist/{BaseIcon-DJbOzCDs.js → BaseIcon-BfndwIWE.js} +4 -3
- package/dist/{BaseLegendToggle-DJU4VsLO.js → BaseLegendToggle-DZVucLnv.js} +1 -1
- package/dist/{BaseZoomControls-CwhpsHIL.js → BaseZoomControls-BZvCnZEi.js} +2 -2
- package/dist/{ColorPicker-BVWrKEQl.js → ColorPicker--ayG2YHf.js} +2 -2
- package/dist/{DataTable-rIsBpJMt.js → DataTable-BbKgJ5UI.js} +2 -2
- package/dist/HillActions-BD9j_sOU.js +187 -0
- package/dist/{Legend-DSPDFP3n.js → Legend-CQxUgOd-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DZyYthbM.js → NonSvgPenAndPaper-4ypecDg1.js} +22 -22
- package/dist/{PackageVersion-BUmadjVO.js → PackageVersion-D6d8SCp9.js} +1 -1
- package/dist/{PenAndPaper-D--sbRMA.js → PenAndPaper-DAE-tnEQ.js} +14 -14
- package/dist/{Shape-Dmh9jBFh.js → Shape-C21CMlWS.js} +3 -3
- package/dist/Slicer-CIk57nL4.js +1163 -0
- package/dist/{SlicerPreview-CCIb3v8u.js → SlicerPreview-wUw1hFwe.js} +384 -370
- package/dist/{SparkTooltip-GjWLZ39s.js → SparkTooltip-CjsbIhzi.js} +6 -6
- package/dist/Title-BE3qg9xl.js +87 -0
- package/dist/{Tooltip-CEbqzIhL.js → Tooltip-DhjyfHwz.js} +2 -2
- package/dist/{UserOptions-BknvMNU1.js → UserOptions-Dt98of5H.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/composables.js +1 -1
- package/dist/{dom-to-png-BbPRUKX6.js → dom-to-png-BYIvdTe8.js} +1 -1
- package/dist/exposedLib-C0DPCgFj.js +28 -0
- package/dist/{geoProjections-BCP_PoiB.js → geoProjections-CEo3dVaL.js} +1 -1
- package/dist/{img-zY7_pJz1.js → img-Bnokohej.js} +1 -1
- package/dist/{labelUtils-DYdYmN_Q.js → labelUtils-BeVpDvTJ.js} +1 -1
- package/dist/{lib-C-QGo8GG.js → lib-Bttd6u5E.js} +27 -12
- package/dist/{package-QmuZcjWs.js → package-KvlL5CqE.js} +1 -1
- package/dist/{pdf-CuSS-5_j.js → pdf-CVIDfCrS.js} +1 -1
- package/dist/{render-common-DasqIYp9.js → render-common-oDYGTc5P.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 +496 -0
- package/dist/types/vue-ui-hill.d.ts +90 -0
- package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +122 -0
- package/dist/{useConfig-C0V0eG7L.js → useConfig-D3scuR88.js} +774 -477
- package/dist/useHints-Dq_w2E8B.js +66 -0
- package/dist/{useNestedProp-BYfiWVP8.js → useNestedProp-vPNvh7rV.js} +5 -3
- package/dist/{useObjectBindings-Djwpii4d.js → useObjectBindings-Brg8mm5J.js} +3 -2
- package/dist/{usePrinter-C5ordS-4.js → usePrinter-DN5bYhTG.js} +2 -2
- package/dist/{useSvgExport-Ba9qBr9M.js → useSvgExport-DH-FfcqQ.js} +1 -1
- package/dist/{useTimeLabels-B9CEuiLZ.js → useTimeLabels-d2f-W1L4.js} +2 -4
- package/dist/{useTooltipPosition-BsRysTrw.js → useTooltipPosition-DifeoeQW.js} +13 -13
- package/dist/useTransitions-g_zBREk2.js +39 -0
- package/dist/utils.js +14 -14
- package/dist/{vue-data-ui-D3jZ4lg1.js → vue-data-ui-DGWDPCwC.js} +85 -81
- package/dist/vue-data-ui.js +77 -76
- package/dist/vue-ui-3d-bar-C_Su9fve.js +1849 -0
- package/dist/{vue-ui-accordion-FimGHtuy.js → vue-ui-accordion-BxGriZik.js} +4 -4
- package/dist/vue-ui-age-pyramid-D4k1MkAL.js +1264 -0
- package/dist/vue-ui-annotator-CCtnM8Rv.js +2886 -0
- package/dist/vue-ui-bullet-DLZr2Uk8.js +724 -0
- package/dist/{vue-ui-bump-CG3WTTFy.js → vue-ui-bump-CcdzJZ9n.js} +334 -297
- package/dist/{vue-ui-candlestick-C3smYvQA.js → vue-ui-candlestick-EEEt7ORC.js} +468 -442
- package/dist/vue-ui-carousel-table-BicIpNAD.js +463 -0
- package/dist/{vue-ui-chestnut-i7FYoqi8.js → vue-ui-chestnut-BI7mC5dd.js} +523 -497
- package/dist/{vue-ui-chord-DCZo55QA.js → vue-ui-chord-DXaq8ZMu.js} +432 -426
- package/dist/vue-ui-circle-pack-XHJBMG51.js +1659 -0
- package/dist/{vue-ui-cursor-DEf_l0Xc.js → vue-ui-cursor-BqHr0n1Z.js} +61 -61
- package/dist/{vue-ui-dag-beo3-quD.js → vue-ui-dag-jMLVoQkb.js} +677 -674
- package/dist/vue-ui-dashboard-DVAUFETR.js +520 -0
- package/dist/{vue-ui-digits-BnMqGAhl.js → vue-ui-digits-Dy4gG6qm.js} +59 -51
- package/dist/vue-ui-donut-C0cWRLbU.js +2441 -0
- package/dist/{vue-ui-donut-Cr0uTWGk.js → vue-ui-donut-CYpxGBhl.js} +117 -116
- package/dist/{vue-ui-donut-evolution-D54NP3FP.js → vue-ui-donut-evolution-DwR47A2r.js} +534 -448
- package/dist/vue-ui-dumbbell-DxVbRjKR.js +1582 -0
- package/dist/{vue-ui-flow-CnateJjc.js → vue-ui-flow-DWaZF4FS.js} +415 -407
- package/dist/vue-ui-funnel-Bmpx5GHR.js +797 -0
- package/dist/vue-ui-galaxy-CWBP9oH9.js +1111 -0
- package/dist/vue-ui-gauge-ByE_txav.js +953 -0
- package/dist/{vue-ui-geo-DnO1RIFR.js → vue-ui-geo-ZA7CBy8f.js} +372 -357
- package/dist/{vue-ui-gizmo-DyxeSKIk.js → vue-ui-gizmo-SQCou0bQ.js} +57 -49
- package/dist/{vue-ui-heatmap-6Ja5LKYE.js → vue-ui-heatmap-CHd9gs_p.js} +473 -465
- package/dist/vue-ui-hill-BT183G-_.js +1768 -0
- package/dist/vue-ui-history-plot-BwnlC1mx.js +1723 -0
- package/dist/vue-ui-horizontal-bar-BUar2HUH.js +1733 -0
- package/dist/vue-ui-kpi-BF_9WWoo.js +104 -0
- package/dist/vue-ui-mini-loader-CvfukjXi.js +133 -0
- package/dist/vue-ui-molecule-Bi2CKHer.js +958 -0
- package/dist/{vue-ui-mood-radar-TWo57SKD.js → vue-ui-mood-radar-_zpbmvJs.js} +349 -341
- package/dist/{vue-ui-nested-donuts-W0TpPXIQ.js → vue-ui-nested-donuts-qHZAJ70u.js} +452 -416
- package/dist/vue-ui-onion-CB5RYIy5.js +1258 -0
- package/dist/vue-ui-parallel-coordinate-plot-BUwt-apg.js +1455 -0
- package/dist/{vue-ui-quadrant-BM9VLDcC.js → vue-ui-quadrant-CoROD3er.js} +636 -628
- package/dist/vue-ui-quick-chart-BcH7eY4-.js +2397 -0
- package/dist/{vue-ui-radar-BVz6Uq2k.js → vue-ui-radar-DGbaXGme.js} +380 -334
- package/dist/vue-ui-rating-Bo3zD3yW.js +360 -0
- package/dist/vue-ui-relation-circle-DaU1eTsG.js +925 -0
- package/dist/vue-ui-ridgeline-BCaGcyfk.js +1664 -0
- package/dist/{vue-ui-rings-DEZrfBYX.js → vue-ui-rings-BJUBn8_b.js} +450 -424
- package/dist/{vue-ui-scatter-owaIOpD0.js → vue-ui-scatter-Pcft1bUt.js} +721 -702
- package/dist/{vue-ui-skeleton-Cxszgax7.js → vue-ui-skeleton-EeJcGbCo.js} +395 -387
- package/dist/{vue-ui-smiley-DZBPvVeN.js → vue-ui-smiley-D0gibt5c.js} +128 -120
- package/dist/{vue-ui-spark-trend-CW4cLUqP.js → vue-ui-spark-trend-BRoQ7JpQ.js} +132 -117
- package/dist/{vue-ui-sparkbar-DeSSqv4v.js → vue-ui-sparkbar-DFp2k7-7.js} +119 -111
- package/dist/{vue-ui-sparkgauge-VSiPVgUQ.js → vue-ui-sparkgauge-D0Bq85Hs.js} +76 -68
- package/dist/vue-ui-sparkhistogram-BPln7v63.js +590 -0
- package/dist/{vue-ui-sparkline-DyZdAQMl.js → vue-ui-sparkline-C6Q45Dqp.js} +391 -365
- package/dist/vue-ui-sparkstackbar-CjK4bcQg.js +692 -0
- package/dist/vue-ui-stackbar-Ca8EPf3e.js +2353 -0
- package/dist/vue-ui-stackline-Pz5WWlWT.js +2467 -0
- package/dist/{vue-ui-strip-plot-BquHFKHA.js → vue-ui-strip-plot-Dw4MGDSO.js} +508 -487
- package/dist/vue-ui-table-Bjg-ujJu.js +1352 -0
- package/dist/vue-ui-table-heatmap-ljeYW8Wc.js +364 -0
- package/dist/{vue-ui-table-sparkline-CyGqW88t.js → vue-ui-table-sparkline-iRFmtK5S.js} +207 -181
- package/dist/vue-ui-thermometer-D8uiOaeA.js +777 -0
- package/dist/{vue-ui-timer-BVjydam-.js → vue-ui-timer-CYw983oL.js} +66 -58
- package/dist/vue-ui-tiremarks-CekiW2Ru.js +559 -0
- package/dist/vue-ui-treemap-h4VbnqPA.js +1760 -0
- package/dist/vue-ui-waffle-cu0w_s6L.js +1412 -0
- package/dist/{vue-ui-wheel-D-VVxvxY.js → vue-ui-wheel-tLvJadk5.js} +225 -217
- package/dist/{vue-ui-word-cloud-CcRch2t2.js → vue-ui-word-cloud-BjpGSsod.js} +440 -432
- package/dist/{vue-ui-world-BJq4PZqF.js → vue-ui-world-B4fCS3jN.js} +350 -342
- package/dist/{vue-ui-xy-D64AB5Qy.js → vue-ui-xy-7ZT9IRD8.js} +1639 -1595
- package/dist/{vue-ui-xy-canvas-mDqjPtxh.js → vue-ui-xy-canvas-BnLEwBpi.js} +459 -431
- package/dist/{vue-ui-xy-B8XBn08L.js → vue-ui-xy-gyNS0yH0.js} +216 -213
- package/dist/vue_ui_hill-dnltu0L-.js +368 -0
- package/package.json +4 -4
- package/dist/Slicer-JdCzBeYM.js +0 -1149
- package/dist/Title-Thf71-8D.js +0 -87
- package/dist/exposedLib-CfZhN94x.js +0 -25
- package/dist/useAutoSizeLabelsInsideViewbox-CSzmRywi.js +0 -50
- package/dist/useMountedDelay-BAjrhRJb.js +0 -14
- package/dist/vue-ui-3d-bar-D9-jAA5Z.js +0 -1824
- package/dist/vue-ui-age-pyramid-D4f-Agb7.js +0 -1246
- package/dist/vue-ui-annotator-P9E8hpJl.js +0 -2905
- package/dist/vue-ui-bullet-CKg0bShN.js +0 -709
- package/dist/vue-ui-carousel-table-BD_fxykj.js +0 -455
- package/dist/vue-ui-circle-pack--DUVDQx3.js +0 -1610
- package/dist/vue-ui-dashboard-mGLvP0UA.js +0 -512
- package/dist/vue-ui-donut-BCLG16Vb.js +0 -2418
- package/dist/vue-ui-dumbbell-DZ78WASa.js +0 -1564
- package/dist/vue-ui-funnel-DSpUMyDO.js +0 -781
- package/dist/vue-ui-galaxy-CxKafV1X.js +0 -1076
- package/dist/vue-ui-gauge-CegUK3FD.js +0 -925
- package/dist/vue-ui-history-plot-XOexkxeI.js +0 -1725
- package/dist/vue-ui-horizontal-bar-BCTdLxjK.js +0 -1689
- package/dist/vue-ui-kpi-EenGDZ-l.js +0 -96
- package/dist/vue-ui-mini-loader-CA7XxPk7.js +0 -125
- package/dist/vue-ui-molecule-5rpD2mlK.js +0 -932
- package/dist/vue-ui-onion-CDC9AGh1.js +0 -1199
- package/dist/vue-ui-parallel-coordinate-plot-DUOI7HoD.js +0 -1412
- package/dist/vue-ui-quick-chart-B8XCKef-.js +0 -2443
- package/dist/vue-ui-rating-B7ApWpIJ.js +0 -352
- package/dist/vue-ui-relation-circle-LVOR5VZ6.js +0 -917
- package/dist/vue-ui-ridgeline-BlyzSJHc.js +0 -1627
- package/dist/vue-ui-sparkhistogram-B5252IVr.js +0 -575
- package/dist/vue-ui-sparkstackbar-CiLgNzaI.js +0 -674
- package/dist/vue-ui-stackbar-Bwz6Z7M4.js +0 -2322
- package/dist/vue-ui-stackline-DX3YDRSg.js +0 -2427
- package/dist/vue-ui-table-DEhy61ln.js +0 -1339
- package/dist/vue-ui-table-heatmap-1LTxQfQX.js +0 -338
- package/dist/vue-ui-thermometer-CNvTQJUq.js +0 -769
- package/dist/vue-ui-tiremarks-3ZBAE8SA.js +0 -551
- package/dist/vue-ui-treemap-FqqXQvZw.js +0 -1727
- package/dist/vue-ui-waffle-B37Yx9uw.js +0 -1367
|
@@ -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-Bttd6u5E.js";
|
|
3
|
+
import { n as me, t as he } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as m } from "./useTimeLabels-d2f-W1L4.js";
|
|
5
|
+
import { t as ge } from "./useConfig-D3scuR88.js";
|
|
6
|
+
import { n as _e, t as ve } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
+
import { t as ye } from "./useNestedProp-vPNvh7rV.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-D6d8SCp9.js").then((e) => e.t)), Ue = Me(() => import("./SparkTooltip-CjsbIhzi.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,107 +993,108 @@ 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
|
|
1051
1076
|
}))).trend
|
|
1052
1077
|
};
|
|
1053
|
-
}
|
|
1078
|
+
}
|
|
1079
|
+
return {
|
|
1054
1080
|
latest: null,
|
|
1055
1081
|
sum: null,
|
|
1056
1082
|
average: null,
|
|
1057
1083
|
median: null,
|
|
1058
1084
|
trend: null
|
|
1059
1085
|
};
|
|
1060
|
-
}),
|
|
1061
|
-
function
|
|
1086
|
+
}), 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");
|
|
1087
|
+
function cn(e, t) {
|
|
1062
1088
|
N.value.events.datapointClick && N.value.events.datapointClick({
|
|
1063
1089
|
datapoint: e,
|
|
1064
1090
|
seriesIndex: t
|
|
1065
|
-
}),
|
|
1091
|
+
}), qt("selectDatapoint", {
|
|
1066
1092
|
datapoint: e,
|
|
1067
1093
|
index: t
|
|
1068
1094
|
});
|
|
1069
1095
|
}
|
|
1070
|
-
let
|
|
1071
|
-
function
|
|
1096
|
+
let ln = g(() => Array.isArray(N.value.style.line.dashIndices) && N.value.style.line.dashIndices.length > 0), un = g(() => N.value.style.line.cutNullValues);
|
|
1097
|
+
function dn(e) {
|
|
1072
1098
|
return ![
|
|
1073
1099
|
null,
|
|
1074
1100
|
void 0,
|
|
@@ -1078,58 +1104,58 @@ var ht = ["innerHTML"], gt = {
|
|
|
1078
1104
|
-Infinity
|
|
1079
1105
|
].includes(e);
|
|
1080
1106
|
}
|
|
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
1107
|
function fn(e, t) {
|
|
1089
|
-
|
|
1108
|
+
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;
|
|
1109
|
+
return dn(e[t]?.value) && i && un.value;
|
|
1090
1110
|
}
|
|
1091
1111
|
function pn(e, t) {
|
|
1092
|
-
return
|
|
1112
|
+
return Y.value && e.id === Y.value.id || rn.value === t || F.value.length === 1;
|
|
1093
1113
|
}
|
|
1094
1114
|
function mn(e, t) {
|
|
1095
|
-
return dn(e
|
|
1115
|
+
return Q.value || !dn(e?.value) ? !1 : N.value.style.plot.show && pn(e, t) || fn(J.value, t);
|
|
1116
|
+
}
|
|
1117
|
+
function hn(e, t) {
|
|
1118
|
+
return Math.max(1, pn(e, t) ? N.value.style.plot.radius : N.value.style.plot.radius * .7);
|
|
1119
|
+
}
|
|
1120
|
+
function gn(e, t) {
|
|
1121
|
+
return pn(e, t) ? N.value.style.plot.stroke : N.value.style.backgroundColor;
|
|
1096
1122
|
}
|
|
1097
|
-
let
|
|
1123
|
+
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
1124
|
if (!N.value.temperatureColors.show) return null;
|
|
1099
1125
|
let e = N.value.temperatureColors.colors;
|
|
1100
|
-
return !Array.isArray(e) || !e.length ? null : e.map((e) =>
|
|
1101
|
-
}), $ =
|
|
1126
|
+
return !Array.isArray(e) || !e.length ? null : e.map((e) => u(e));
|
|
1127
|
+
}), $ = g(() => {
|
|
1102
1128
|
if (!N.value.temperatureColors.show) return null;
|
|
1103
1129
|
let e = N.value.temperatureColors.colors;
|
|
1104
|
-
return !Array.isArray(e) || !e.length ? null : e.map((e) =>
|
|
1130
|
+
return !Array.isArray(e) || !e.length ? null : e.map((e) => u(e));
|
|
1105
1131
|
});
|
|
1106
|
-
function
|
|
1132
|
+
function Dn(e) {
|
|
1107
1133
|
if (!Number.isFinite(e?.y)) return 0;
|
|
1108
1134
|
let t = q.value.height || 1, n = (e.y - q.value.top) / t;
|
|
1109
1135
|
return Math.min(1, Math.max(0, n));
|
|
1110
1136
|
}
|
|
1111
|
-
function
|
|
1112
|
-
let t =
|
|
1113
|
-
return !Array.isArray(t) || !t.length ? e.color :
|
|
1137
|
+
function On(e) {
|
|
1138
|
+
let t = En.value;
|
|
1139
|
+
return !Array.isArray(t) || !t.length ? e.color : te({
|
|
1114
1140
|
colors: t,
|
|
1115
|
-
ratio:
|
|
1141
|
+
ratio: Dn(e)
|
|
1116
1142
|
});
|
|
1117
1143
|
}
|
|
1118
1144
|
D(() => [
|
|
1119
|
-
|
|
1145
|
+
ct.value,
|
|
1120
1146
|
G.value,
|
|
1121
1147
|
J.value.length,
|
|
1122
1148
|
K.value.width,
|
|
1123
1149
|
K.value.height,
|
|
1124
1150
|
N.value?.style?.line?.smooth
|
|
1125
1151
|
], async () => {
|
|
1126
|
-
await
|
|
1127
|
-
}, { immediate: !0 }),
|
|
1128
|
-
await
|
|
1152
|
+
await b(), lt();
|
|
1153
|
+
}, { immediate: !0 }), Ie(async () => {
|
|
1154
|
+
await b(), lt();
|
|
1129
1155
|
}), D(() => P.value, async (e) => {
|
|
1130
|
-
e || await
|
|
1131
|
-
}), D(() =>
|
|
1132
|
-
e || P.value || await
|
|
1156
|
+
e || await Wt();
|
|
1157
|
+
}), D(() => ft.value, async (e) => {
|
|
1158
|
+
e || P.value || await Wt();
|
|
1133
1159
|
}), D(() => O.selectedIndex, (e) => {
|
|
1134
1160
|
if (e == null) {
|
|
1135
1161
|
M.value = null, j.value = null, Y.value = void 0;
|
|
@@ -1139,22 +1165,22 @@ var ht = ["innerHTML"], gt = {
|
|
|
1139
1165
|
let t = J.value[e];
|
|
1140
1166
|
t && (M.value = e, j.value = e, Y.value = t);
|
|
1141
1167
|
});
|
|
1142
|
-
let
|
|
1143
|
-
function
|
|
1144
|
-
let e =
|
|
1168
|
+
let kn = C(!1);
|
|
1169
|
+
function An() {
|
|
1170
|
+
let e = rn.value;
|
|
1145
1171
|
if (e !== null && e >= 0 && e < J.value.length) {
|
|
1146
1172
|
let t = J.value[e];
|
|
1147
1173
|
if (t) {
|
|
1148
|
-
j.value = e, Y.value = t, M.value = e,
|
|
1174
|
+
j.value = e, Y.value = t, M.value = e, kn.value = !0;
|
|
1149
1175
|
return;
|
|
1150
1176
|
}
|
|
1151
1177
|
}
|
|
1152
|
-
j.value = null, !Y.value && J.value.length &&
|
|
1178
|
+
j.value = null, !Y.value && J.value.length && an(J.value.at(-1), J.value.length - 1), kn.value = !0;
|
|
1153
1179
|
}
|
|
1154
|
-
function
|
|
1155
|
-
X.value = Y.value, (O.selectedIndex === void 0 || O.selectedIndex === null) && (j.value = null, Y.value = void 0, M.value = null,
|
|
1180
|
+
function jn() {
|
|
1181
|
+
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
1182
|
}
|
|
1157
|
-
function
|
|
1183
|
+
function Mn(e) {
|
|
1158
1184
|
if (!I.value || document.activeElement !== I.value) return;
|
|
1159
1185
|
X.value = Y.value;
|
|
1160
1186
|
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight";
|
|
@@ -1165,28 +1191,28 @@ var ht = ["innerHTML"], gt = {
|
|
|
1165
1191
|
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
1192
|
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
1193
|
let s = J.value[i];
|
|
1168
|
-
s && (j.value = i,
|
|
1194
|
+
s && (j.value = i, an(s, i));
|
|
1169
1195
|
}
|
|
1170
|
-
let
|
|
1196
|
+
let Nn = g(() => ({
|
|
1171
1197
|
headers: [N.value.translations.period, N.value.translations.value],
|
|
1172
1198
|
rows: J.value.map((e) => [e.period, e.absoluteValue])
|
|
1173
1199
|
}));
|
|
1174
|
-
return (t,
|
|
1200
|
+
return (t, r) => (S(), v("div", {
|
|
1175
1201
|
ref_key: "sparklineChart",
|
|
1176
1202
|
ref: A,
|
|
1177
1203
|
class: "vue-data-ui-component vue-ui-sparkline",
|
|
1178
1204
|
id: k.value,
|
|
1179
|
-
style:
|
|
1205
|
+
style: x(`width:100%;font-family:${N.value.style.fontFamily};`)
|
|
1180
1206
|
}, [
|
|
1181
|
-
|
|
1207
|
+
y("p", {
|
|
1182
1208
|
id: `chart-instructions-${k.value}`,
|
|
1183
1209
|
class: "sr-only"
|
|
1184
|
-
},
|
|
1185
|
-
|
|
1210
|
+
}, Re(N.value.a11y.translations.keyboardNavigation), 9, xt),
|
|
1211
|
+
Nn.value?.rows?.length ? (S(), ke(Te, {
|
|
1186
1212
|
key: 0,
|
|
1187
1213
|
uid: k.value,
|
|
1188
|
-
head:
|
|
1189
|
-
body:
|
|
1214
|
+
head: Nn.value.headers,
|
|
1215
|
+
body: Nn.value.rows,
|
|
1190
1216
|
notice: N.value.a11y.translations.tableAvailable,
|
|
1191
1217
|
caption: N.value.a11y.translations.tableCaption
|
|
1192
1218
|
}, null, 8, [
|
|
@@ -1195,8 +1221,8 @@ var ht = ["innerHTML"], gt = {
|
|
|
1195
1221
|
"body",
|
|
1196
1222
|
"notice",
|
|
1197
1223
|
"caption"
|
|
1198
|
-
])) :
|
|
1199
|
-
|
|
1224
|
+
])) : _("", !0),
|
|
1225
|
+
T(t.$slots, "before", Pe(Ne({
|
|
1200
1226
|
selected: Y.value,
|
|
1201
1227
|
latest: Z.value.latest,
|
|
1202
1228
|
sum: Z.value.sum,
|
|
@@ -1204,37 +1230,37 @@ var ht = ["innerHTML"], gt = {
|
|
|
1204
1230
|
median: Z.value.median,
|
|
1205
1231
|
trend: Z.value.trend
|
|
1206
1232
|
})), void 0, !0),
|
|
1207
|
-
N.value.style.title.show && e.showInfo ? (
|
|
1233
|
+
N.value.style.title.show && e.showInfo ? (S(), v("div", {
|
|
1208
1234
|
key: 1,
|
|
1209
1235
|
ref_key: "chartTitle",
|
|
1210
|
-
ref:
|
|
1236
|
+
ref: Xe,
|
|
1211
1237
|
class: "vue-ui-sparkline-title",
|
|
1212
|
-
style:
|
|
1213
|
-
}, [
|
|
1214
|
-
|
|
1238
|
+
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"};`)
|
|
1239
|
+
}, [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),
|
|
1240
|
+
y("div", St, [(S(), v("svg", {
|
|
1215
1241
|
ref_key: "svgRef",
|
|
1216
1242
|
ref: I,
|
|
1217
|
-
xmlns: E(
|
|
1243
|
+
xmlns: E(de),
|
|
1218
1244
|
viewBox: `0 0 ${K.value.width} ${K.value.height}`,
|
|
1219
|
-
style:
|
|
1245
|
+
style: x(`background:${N.value.style.backgroundColor};overflow:visible;direction:ltr`),
|
|
1220
1246
|
tabindex: "0",
|
|
1221
1247
|
"aria-describedby": `chart-instructions-${k.value}`,
|
|
1222
|
-
onMouseleave:
|
|
1223
|
-
onFocus:
|
|
1224
|
-
onBlur:
|
|
1225
|
-
onKeydown:
|
|
1248
|
+
onMouseleave: r[0] ||= (e) => X.value = void 0,
|
|
1249
|
+
onFocus: An,
|
|
1250
|
+
onBlur: jn,
|
|
1251
|
+
onKeydown: Mn
|
|
1226
1252
|
}, [
|
|
1227
|
-
|
|
1228
|
-
t.$slots["chart-background"] ? (
|
|
1253
|
+
je(E(He)),
|
|
1254
|
+
t.$slots["chart-background"] ? (S(), v("foreignObject", {
|
|
1229
1255
|
key: 0,
|
|
1230
1256
|
x: 0,
|
|
1231
1257
|
y: 0,
|
|
1232
1258
|
width: K.value.width <= 0 ? 10 : K.value.width,
|
|
1233
1259
|
height: K.value.height <= 0 ? 10 : K.value.height,
|
|
1234
1260
|
style: { pointerEvents: "none" }
|
|
1235
|
-
}, [
|
|
1236
|
-
|
|
1237
|
-
|
|
1261
|
+
}, [T(t.$slots, "chart-background", {}, void 0, !0)], 8, wt)) : _("", !0),
|
|
1262
|
+
y("defs", null, [
|
|
1263
|
+
je(we, {
|
|
1238
1264
|
t: "linear",
|
|
1239
1265
|
x1: "0%",
|
|
1240
1266
|
y1: "0%",
|
|
@@ -1243,15 +1269,15 @@ var ht = ["innerHTML"], gt = {
|
|
|
1243
1269
|
id: `sparkline_gradient_${k.value}`,
|
|
1244
1270
|
stops: [[
|
|
1245
1271
|
"0%",
|
|
1246
|
-
E(
|
|
1272
|
+
E(n)(E(f)(N.value.style.area.color, .05), N.value.style.area.opacity),
|
|
1247
1273
|
1
|
|
1248
1274
|
], [
|
|
1249
1275
|
"100%",
|
|
1250
|
-
E(
|
|
1276
|
+
E(n)(N.value.style.area.color, N.value.style.area.opacity),
|
|
1251
1277
|
1
|
|
1252
1278
|
]]
|
|
1253
1279
|
}, null, 8, ["id", "stops"]),
|
|
1254
|
-
|
|
1280
|
+
je(we, {
|
|
1255
1281
|
t: "linear",
|
|
1256
1282
|
x2: "0%",
|
|
1257
1283
|
y2: "100%",
|
|
@@ -1262,18 +1288,18 @@ var ht = ["innerHTML"], gt = {
|
|
|
1262
1288
|
1
|
|
1263
1289
|
], [
|
|
1264
1290
|
"100%",
|
|
1265
|
-
E(
|
|
1291
|
+
E(f)(N.value.style.bar.color, .05),
|
|
1266
1292
|
1
|
|
1267
1293
|
]]
|
|
1268
1294
|
}, null, 8, ["id", "stops"]),
|
|
1269
|
-
|
|
1295
|
+
je(we, {
|
|
1270
1296
|
t: "linear",
|
|
1271
1297
|
x2: "0%",
|
|
1272
1298
|
y2: "100%",
|
|
1273
1299
|
id: `sparkline_bar_gradient_neg_${k.value}`,
|
|
1274
1300
|
stops: [[
|
|
1275
1301
|
"0%",
|
|
1276
|
-
E(
|
|
1302
|
+
E(f)(N.value.style.bar.color, .05),
|
|
1277
1303
|
1
|
|
1278
1304
|
], [
|
|
1279
1305
|
"100%",
|
|
@@ -1281,19 +1307,19 @@ var ht = ["innerHTML"], gt = {
|
|
|
1281
1307
|
1
|
|
1282
1308
|
]]
|
|
1283
1309
|
}, null, 8, ["id", "stops"]),
|
|
1284
|
-
|
|
1310
|
+
y("filter", {
|
|
1285
1311
|
id: `sparkline_pulse_glow_${k.value}`,
|
|
1286
1312
|
filterUnits: "userSpaceOnUse",
|
|
1287
1313
|
x: "-50",
|
|
1288
1314
|
y: "-50",
|
|
1289
1315
|
width: "100",
|
|
1290
1316
|
height: "100"
|
|
1291
|
-
}, [...
|
|
1317
|
+
}, [...r[1] ||= [y("feGaussianBlur", {
|
|
1292
1318
|
in: "SourceGraphic",
|
|
1293
1319
|
stdDeviation: "3",
|
|
1294
1320
|
result: "blur"
|
|
1295
|
-
}, null, -1),
|
|
1296
|
-
N.value.temperatureColors.show && $.value ? (
|
|
1321
|
+
}, null, -1), y("feMerge", null, [y("feMergeNode", { in: "blur" }), y("feMergeNode", { in: "SourceGraphic" })], -1)]], 8, Tt),
|
|
1322
|
+
N.value.temperatureColors.show && $.value ? (S(), v("linearGradient", {
|
|
1297
1323
|
key: 0,
|
|
1298
1324
|
id: `temperature_grad_sparkline_${k.value}`,
|
|
1299
1325
|
gradientUnits: "userSpaceOnUse",
|
|
@@ -1301,31 +1327,31 @@ var ht = ["innerHTML"], gt = {
|
|
|
1301
1327
|
x2: "0",
|
|
1302
1328
|
y1: q.value.top,
|
|
1303
1329
|
y2: q.value.bottom
|
|
1304
|
-
}, [(
|
|
1330
|
+
}, [(S(!0), v(h, null, w($.value, (e, t) => (S(), v("stop", {
|
|
1305
1331
|
key: `temperature_grad_stop_${t}_${k.value}`,
|
|
1306
1332
|
"stop-color": e,
|
|
1307
|
-
offset: $.value.length === 1 ? "0%" : E(
|
|
1308
|
-
}, null, 8,
|
|
1333
|
+
offset: $.value.length === 1 ? "0%" : E(pe)(t, $.value.length)
|
|
1334
|
+
}, null, 8, Dt))), 128))], 8, Et)) : _("", !0)
|
|
1309
1335
|
]),
|
|
1310
|
-
N.value.style.area.show && !Q.value &&
|
|
1336
|
+
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
1337
|
key: `sparkline_area_${t}_${k.value}`,
|
|
1312
1338
|
class: "vue-ui-sparkline-area",
|
|
1313
1339
|
"data-cy": N.value.style.line.smooth ? "sparkline-smooth-area" : "sparkline-angle-area",
|
|
1314
1340
|
d: e,
|
|
1315
|
-
fill: N.value.style.area.useGradient ? `url(#sparkline_gradient_${k.value})` : E(
|
|
1341
|
+
fill: N.value.style.area.useGradient ? `url(#sparkline_gradient_${k.value})` : E(n)(N.value.style.area.color, N.value.style.area.opacity),
|
|
1316
1342
|
"stroke-linecap": "round",
|
|
1317
1343
|
"stroke-linejoin": "round",
|
|
1318
|
-
style:
|
|
1319
|
-
}, null, 12,
|
|
1320
|
-
N.value.style.line.smooth && !Q.value ? (
|
|
1344
|
+
style: x({ transition: E(P) ? void 0 : "all 0.2s" })
|
|
1345
|
+
}, null, 12, kt))), 128))])) : _("", !0),
|
|
1346
|
+
N.value.style.line.smooth && !Q.value ? (S(), v(h, { key: 2 }, [y("path", {
|
|
1321
1347
|
id: G.value,
|
|
1322
|
-
d: `M ${
|
|
1348
|
+
d: `M ${bn.value || "0,0"}`,
|
|
1323
1349
|
fill: "none",
|
|
1324
1350
|
stroke: "transparent",
|
|
1325
1351
|
"stroke-width": N.value.style.line.strokeWidth,
|
|
1326
1352
|
"stroke-linecap": "round",
|
|
1327
1353
|
"stroke-linejoin": "round"
|
|
1328
|
-
}, null, 8,
|
|
1354
|
+
}, null, 8, At), ln.value ? (S(!0), v(h, { key: 0 }, w(Sn.value, (e) => (S(), v("path", {
|
|
1329
1355
|
key: e.path,
|
|
1330
1356
|
class: "vue-ui-sparkline-path",
|
|
1331
1357
|
d: `M ${e.path}`,
|
|
@@ -1335,27 +1361,27 @@ var ht = ["innerHTML"], gt = {
|
|
|
1335
1361
|
"stroke-linecap": "round",
|
|
1336
1362
|
"stroke-linejoin": "round",
|
|
1337
1363
|
"stroke-dasharray": e.dashed ? N.value.style.line.dashArray : 0,
|
|
1338
|
-
style:
|
|
1339
|
-
}, null, 12,
|
|
1364
|
+
style: x({ transition: E(P) ? void 0 : "all 0.2s" })
|
|
1365
|
+
}, null, 12, jt))), 128)) : (S(), v("path", {
|
|
1340
1366
|
key: 1,
|
|
1341
1367
|
class: "vue-ui-sparkline-path",
|
|
1342
|
-
d: `M ${
|
|
1368
|
+
d: `M ${bn.value || "0,0"}`,
|
|
1343
1369
|
stroke: $.value ? `url(#temperature_grad_sparkline_${k.value})` : N.value.style.line.color,
|
|
1344
1370
|
fill: "none",
|
|
1345
1371
|
"stroke-width": N.value.style.line.strokeWidth,
|
|
1346
1372
|
"stroke-linecap": "round",
|
|
1347
1373
|
"stroke-linejoin": "round",
|
|
1348
|
-
style:
|
|
1349
|
-
}, null, 12,
|
|
1350
|
-
!N.value.style.line.smooth && !Q.value ? (
|
|
1374
|
+
style: x({ transition: E(P) ? void 0 : "all 0.2s" })
|
|
1375
|
+
}, null, 12, Mt))], 64)) : _("", !0),
|
|
1376
|
+
!N.value.style.line.smooth && !Q.value ? (S(), v(h, { key: 3 }, [y("path", {
|
|
1351
1377
|
id: G.value,
|
|
1352
|
-
d: `M ${
|
|
1378
|
+
d: `M ${xn.value || "0,0"}`,
|
|
1353
1379
|
fill: "none",
|
|
1354
1380
|
stroke: "transparent",
|
|
1355
1381
|
"stroke-width": N.value.style.line.strokeWidth,
|
|
1356
1382
|
"stroke-linecap": "round",
|
|
1357
1383
|
"stroke-linejoin": "round"
|
|
1358
|
-
}, null, 8,
|
|
1384
|
+
}, null, 8, Nt), ln.value ? (S(!0), v(h, { key: 0 }, w(Cn.value, (e) => (S(), v("path", {
|
|
1359
1385
|
key: e.path,
|
|
1360
1386
|
class: "vue-ui-sparkline-path",
|
|
1361
1387
|
d: `M ${e.path}`,
|
|
@@ -1365,21 +1391,21 @@ var ht = ["innerHTML"], gt = {
|
|
|
1365
1391
|
"stroke-linecap": "round",
|
|
1366
1392
|
"stroke-linejoin": "round",
|
|
1367
1393
|
"stroke-dasharray": e.dashed ? N.value.style.line.dashArray * 2 : 0,
|
|
1368
|
-
style:
|
|
1369
|
-
}, null, 12,
|
|
1394
|
+
style: x({ transition: E(P) ? void 0 : "all 0.2s" })
|
|
1395
|
+
}, null, 12, Pt))), 128)) : (S(), v("path", {
|
|
1370
1396
|
key: 1,
|
|
1371
1397
|
class: "vue-ui-sparkline-path",
|
|
1372
|
-
d: `M ${
|
|
1398
|
+
d: `M ${xn.value || "0,0"}`,
|
|
1373
1399
|
stroke: $.value ? `url(#temperature_grad_sparkline_${k.value})` : N.value.style.line.color,
|
|
1374
1400
|
fill: "none",
|
|
1375
1401
|
"stroke-width": N.value.style.line.strokeWidth,
|
|
1376
1402
|
"stroke-linecap": "round",
|
|
1377
1403
|
"stroke-linejoin": "round",
|
|
1378
|
-
style:
|
|
1379
|
-
}, null, 12,
|
|
1380
|
-
|
|
1404
|
+
style: x({ transition: E(P) ? void 0 : "all 0.2s" })
|
|
1405
|
+
}, null, 12, Ft))], 64)) : _("", !0),
|
|
1406
|
+
Tn.value && !$.value ? (S(), ke(vt, {
|
|
1381
1407
|
key: 4,
|
|
1382
|
-
svgPathData:
|
|
1408
|
+
svgPathData: Tn.value,
|
|
1383
1409
|
enabled: N.value.gradientPath.show && !Q.value && !$.value,
|
|
1384
1410
|
strokeWidth: N.value.style.line.strokeWidth,
|
|
1385
1411
|
highColor: N.value.gradientPath.colors.high,
|
|
@@ -1392,23 +1418,23 @@ var ht = ["innerHTML"], gt = {
|
|
|
1392
1418
|
"highColor",
|
|
1393
1419
|
"lowColor",
|
|
1394
1420
|
"segments"
|
|
1395
|
-
])) :
|
|
1396
|
-
|
|
1421
|
+
])) : _("", !0),
|
|
1422
|
+
Ut.value && ct.value ? (S(), ke(Ye, {
|
|
1397
1423
|
key: 5,
|
|
1398
1424
|
uid: k.value,
|
|
1399
1425
|
svgRef: E(I),
|
|
1400
1426
|
pulsePathId: G.value,
|
|
1401
|
-
pulsePathLength:
|
|
1402
|
-
pulseDur:
|
|
1403
|
-
pulseBegin:
|
|
1404
|
-
pulseRepeatCount:
|
|
1405
|
-
pulseFillMode:
|
|
1406
|
-
pulseKeyPoints:
|
|
1407
|
-
pulseMotion:
|
|
1427
|
+
pulsePathLength: nt.value,
|
|
1428
|
+
pulseDur: tt.value,
|
|
1429
|
+
pulseBegin: rt.value,
|
|
1430
|
+
pulseRepeatCount: at.value,
|
|
1431
|
+
pulseFillMode: ot.value,
|
|
1432
|
+
pulseKeyPoints: it.value,
|
|
1433
|
+
pulseMotion: ut.value,
|
|
1408
1434
|
pulse: R.value,
|
|
1409
|
-
pulseTrail:
|
|
1410
|
-
pulseTrailLength:
|
|
1411
|
-
prefersReducedMotion: E(
|
|
1435
|
+
pulseTrail: dt.value,
|
|
1436
|
+
pulseTrailLength: st.value,
|
|
1437
|
+
prefersReducedMotion: E(qe),
|
|
1412
1438
|
loading: E(P),
|
|
1413
1439
|
isBar: Q.value
|
|
1414
1440
|
}, null, 8, [
|
|
@@ -1428,16 +1454,16 @@ var ht = ["innerHTML"], gt = {
|
|
|
1428
1454
|
"prefersReducedMotion",
|
|
1429
1455
|
"loading",
|
|
1430
1456
|
"isBar"
|
|
1431
|
-
])) :
|
|
1432
|
-
(
|
|
1457
|
+
])) : _("", !0),
|
|
1458
|
+
(S(!0), v(h, null, w(J.value, (e, t) => (S(), v("g", null, [Q.value ? (S(), v("rect", {
|
|
1433
1459
|
key: 0,
|
|
1434
1460
|
x: e.x - e.width / 2,
|
|
1435
|
-
y: isNaN(e.absoluteValue > 0 ? e.y :
|
|
1461
|
+
y: isNaN(e.absoluteValue > 0 ? e.y : Qt.value) ? 0 : e.absoluteValue > 0 ? e.y : Qt.value,
|
|
1436
1462
|
width: e.width,
|
|
1437
|
-
height: isNaN(Math.abs(e.y -
|
|
1463
|
+
height: isNaN(Math.abs(e.y - Qt.value)) ? 0 : Math.abs(e.y - Qt.value),
|
|
1438
1464
|
fill: e.absoluteValue > 0 ? `url(#sparkline_bar_gradient_pos_${k.value})` : `url(#sparkline_bar_gradient_neg_${k.value})`,
|
|
1439
1465
|
rx: N.value.style.bar.borderRadius
|
|
1440
|
-
}, null, 8,
|
|
1466
|
+
}, null, 8, It)) : _("", !0), N.value.style.verticalIndicator.show && (Y.value && e.id === Y.value.id || rn.value === t) ? (S(), v("line", {
|
|
1441
1467
|
key: 1,
|
|
1442
1468
|
x1: e.x,
|
|
1443
1469
|
x2: e.x,
|
|
@@ -1447,67 +1473,67 @@ var ht = ["innerHTML"], gt = {
|
|
|
1447
1473
|
"stroke-width": N.value.style.verticalIndicator.strokeWidth,
|
|
1448
1474
|
"stroke-linecap": "round",
|
|
1449
1475
|
"stroke-dasharray": N.value.style.verticalIndicator.strokeDasharray || 0
|
|
1450
|
-
}, null, 8,
|
|
1451
|
-
|
|
1476
|
+
}, null, 8, Lt)) : _("", !0)]))), 256)),
|
|
1477
|
+
Jt.value < 0 ? (S(), v("line", {
|
|
1452
1478
|
key: 6,
|
|
1453
1479
|
x1: q.value.start,
|
|
1454
1480
|
x2: q.value.start + q.value.width,
|
|
1455
|
-
y1: E(
|
|
1456
|
-
y2: E(
|
|
1481
|
+
y1: E(ce)(Qt.value, q.value.bottom),
|
|
1482
|
+
y2: E(ce)(Qt.value, q.value.bottom),
|
|
1457
1483
|
stroke: N.value.style.zeroLine.color,
|
|
1458
1484
|
"stroke-dasharray": N.value.style.zeroLine.strokeWidth * 2,
|
|
1459
1485
|
"stroke-width": N.value.style.zeroLine.strokeWidth,
|
|
1460
1486
|
"stroke-linecap": "round"
|
|
1461
|
-
}, null, 8,
|
|
1462
|
-
(
|
|
1487
|
+
}, null, 8, Rt)) : _("", !0),
|
|
1488
|
+
(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
1489
|
key: 0,
|
|
1464
1490
|
cx: e.x,
|
|
1465
1491
|
cy: e.y,
|
|
1466
|
-
r:
|
|
1467
|
-
fill:
|
|
1468
|
-
stroke:
|
|
1492
|
+
r: hn(e, t),
|
|
1493
|
+
fill: On(e),
|
|
1494
|
+
stroke: gn(e, t),
|
|
1469
1495
|
"stroke-width": N.value.style.plot.strokeWidth
|
|
1470
|
-
}, null, 8,
|
|
1471
|
-
e.showInfo && N.value.style.dataLabel.show ? (
|
|
1496
|
+
}, null, 8, zt)) : _("", !0)]))), 128)),
|
|
1497
|
+
e.showInfo && N.value.style.dataLabel.show ? (S(), v("text", {
|
|
1472
1498
|
key: 7,
|
|
1473
1499
|
x: N.value.style.dataLabel.position === "left" ? 12 + N.value.style.dataLabel.offsetX : q.value.width + 12 + N.value.style.dataLabel.offsetX,
|
|
1474
1500
|
y: K.value.height / 2 + N.value.style.dataLabel.fontSize / 2.5 + N.value.style.dataLabel.offsetY,
|
|
1475
1501
|
"font-size": N.value.style.dataLabel.fontSize,
|
|
1476
1502
|
"font-weight": N.value.style.dataLabel.bold ? "bold" : "normal",
|
|
1477
1503
|
fill: N.value.style.dataLabel.color
|
|
1478
|
-
},
|
|
1504
|
+
}, Re(Y.value ? E(re)(N.value.style.dataLabel.formatter, Y.value.absoluteValue, E(p)({
|
|
1479
1505
|
p: N.value.style.dataLabel.prefix,
|
|
1480
1506
|
v: Y.value.absoluteValue,
|
|
1481
1507
|
s: N.value.style.dataLabel.suffix,
|
|
1482
1508
|
r: N.value.style.dataLabel.roundingValue
|
|
1483
|
-
}), { datapoint: Y.value }) : E(
|
|
1509
|
+
}), { datapoint: Y.value }) : E(re)(N.value.style.dataLabel.formatter, sn.value, E(p)({
|
|
1484
1510
|
p: N.value.style.dataLabel.prefix,
|
|
1485
|
-
v:
|
|
1511
|
+
v: sn.value,
|
|
1486
1512
|
s: N.value.style.dataLabel.suffix,
|
|
1487
1513
|
r: N.value.style.dataLabel.roundingValue
|
|
1488
|
-
}))), 9,
|
|
1489
|
-
(
|
|
1490
|
-
x: e.x - (q.value.width / (
|
|
1514
|
+
}))), 9, Bt)) : _("", !0),
|
|
1515
|
+
(S(!0), v(h, null, w(J.value, (e, t) => (S(), v("rect", {
|
|
1516
|
+
x: e.x - (q.value.width / (en.value + 1) > K.value.padding ? K.value.padding : q.value.width / (en.value + 1)) / 2,
|
|
1491
1517
|
y: q.value.top - 6,
|
|
1492
1518
|
height: q.value.height + 6,
|
|
1493
|
-
width: q.value.width / (
|
|
1519
|
+
width: q.value.width / (en.value + 1) > K.value.padding ? K.value.padding : q.value.width / (en.value + 1),
|
|
1494
1520
|
fill: "transparent",
|
|
1495
|
-
onMouseenter: () =>
|
|
1496
|
-
onMouseleave: () =>
|
|
1497
|
-
onClick: () =>
|
|
1498
|
-
}, null, 40,
|
|
1499
|
-
|
|
1521
|
+
onMouseenter: () => an(e, t),
|
|
1522
|
+
onMouseleave: () => on(e, t),
|
|
1523
|
+
onClick: () => cn(e, t)
|
|
1524
|
+
}, null, 40, Vt))), 256)),
|
|
1525
|
+
T(t.$slots, "svg", { svg: {
|
|
1500
1526
|
...K.value,
|
|
1501
1527
|
drawingArea: q.value,
|
|
1502
|
-
timeLabels:
|
|
1528
|
+
timeLabels: tn.value,
|
|
1503
1529
|
series: J.value,
|
|
1504
1530
|
hoveredIndex: j.value
|
|
1505
1531
|
} }, void 0, !0)
|
|
1506
|
-
], 44,
|
|
1532
|
+
], 44, Ct)), t.$slots.hint ? (S(), v("div", Ht, [T(t.$slots, "hint", Pe(Ne({
|
|
1507
1533
|
hint: N.value.a11y.translations.keyboardNavigation,
|
|
1508
|
-
isVisible:
|
|
1509
|
-
})), void 0, !0)])) :
|
|
1510
|
-
Y.value && N.value.style.tooltip.show ? (
|
|
1534
|
+
isVisible: kn.value
|
|
1535
|
+
})), void 0, !0)])) : _("", !0)]),
|
|
1536
|
+
Y.value && N.value.style.tooltip.show ? (S(), ke(E(Ue), {
|
|
1511
1537
|
key: 2,
|
|
1512
1538
|
x: Y.value.x,
|
|
1513
1539
|
y: Y.value.y,
|
|
@@ -1523,7 +1549,7 @@ var ht = ["innerHTML"], gt = {
|
|
|
1523
1549
|
borderRadius: N.value.style.tooltip.borderRadius,
|
|
1524
1550
|
backgroundOpacity: N.value.style.tooltip.backgroundOpacity
|
|
1525
1551
|
}, {
|
|
1526
|
-
default:
|
|
1552
|
+
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
1553
|
p: N.value.style.dataLabel.prefix,
|
|
1528
1554
|
v: Y.value.absoluteValue,
|
|
1529
1555
|
s: N.value.style.dataLabel.suffix,
|
|
@@ -1544,16 +1570,16 @@ var ht = ["innerHTML"], gt = {
|
|
|
1544
1570
|
"borderColor",
|
|
1545
1571
|
"borderRadius",
|
|
1546
1572
|
"backgroundOpacity"
|
|
1547
|
-
])) :
|
|
1548
|
-
t.$slots.source ? (
|
|
1573
|
+
])) : _("", !0),
|
|
1574
|
+
t.$slots.source ? (S(), v("div", {
|
|
1549
1575
|
key: 3,
|
|
1550
1576
|
ref_key: "source",
|
|
1551
|
-
ref:
|
|
1577
|
+
ref: Ze,
|
|
1552
1578
|
dir: "auto"
|
|
1553
|
-
}, [
|
|
1554
|
-
|
|
1555
|
-
], 12,
|
|
1579
|
+
}, [T(t.$slots, "source", {}, void 0, !0)], 512)) : _("", !0),
|
|
1580
|
+
T(t.$slots, "skeleton", {}, () => [E(P) ? (S(), ke(ve, { key: 0 })) : _("", !0)], !0)
|
|
1581
|
+
], 12, bt));
|
|
1556
1582
|
}
|
|
1557
|
-
}, [["__scopeId", "data-v-
|
|
1583
|
+
}, [["__scopeId", "data-v-967d347c"]]);
|
|
1558
1584
|
//#endregion
|
|
1559
|
-
export {
|
|
1585
|
+
export { yt as n, G as t };
|