vue-data-ui 3.25.4 → 3.25.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/README.md +13 -13
- package/dist/{BaseDraggableDialog-BM_R41j8.js → BaseDraggableDialog-Gm4Q30j0.js} +1 -1
- package/dist/{BaseIcon-t83PDe9k.js → BaseIcon-D8R6_sKH.js} +5 -5
- package/dist/{BaseLegendToggle-__JnV08B.js → BaseLegendToggle-CXQrLjd-.js} +1 -1
- package/dist/{BaseZoomControls-Xo16vFa4.js → BaseZoomControls-BTzjVDPM.js} +1 -1
- package/dist/{ColorPicker-ZJrR3Olp.js → ColorPicker-CUy15T72.js} +102 -100
- package/dist/{DataTable-COIO9gi4.js → DataTable-oiM9uWrQ.js} +1 -1
- package/dist/{HillActions-Cl-dNBZR.js → HillActions-Dn8aKOVJ.js} +1 -1
- package/dist/{NonSvgPenAndPaper-DS84BAOx.js → NonSvgPenAndPaper-DFXjpRyl.js} +2 -2
- package/dist/{PackageVersion-5SWftabm.js → PackageVersion-ur6jKRL5.js} +1 -1
- package/dist/{PenAndPaper-B_SdRSKH.js → PenAndPaper-KFzKlvbi.js} +20 -4
- package/dist/{SlicerPreview-GvsdvE-h.js → SlicerPreview-B6iHOC9L.js} +1 -1
- package/dist/{UserOptions-f3Q0nqrj.js → UserOptions-2x4VklMW.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 +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-label.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/{package-DmsdiyeS.js → package-Dx7M6sYy.js} +1 -1
- package/dist/{render-common-zoPh9a78.js → render-common-DETHvNhl.js} +1 -1
- 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 +80 -1
- package/dist/types/vue-ui-annotator.d.ts +58 -2
- package/dist/{useConfig-CyCVHo81.js → useConfig-CIQZ6_r7.js} +1339 -1313
- package/dist/{useObjectBindings-ByORl1rV.js → useObjectBindings---mHNfbS.js} +2 -2
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-DTj71yB7.js → vue-data-ui-Dh3_EsHb.js} +70 -70
- package/dist/vue-data-ui.js +71 -71
- package/dist/vue-ui-3d-bar-i1REAKnM.js +1831 -0
- package/dist/{vue-ui-accordion-D4zsdacF.js → vue-ui-accordion-BSmBUjwZ.js} +2 -2
- package/dist/vue-ui-age-pyramid-DuHblCNO.js +1293 -0
- package/dist/vue-ui-annotator-CTQHAPho.js +3325 -0
- package/dist/vue-ui-bullet-CYLnKrmM.js +702 -0
- package/dist/{vue-ui-bump-BkOtQNWe.js → vue-ui-bump-DhwySwgn.js} +382 -380
- package/dist/vue-ui-candlestick-BpiECaDj.js +1859 -0
- package/dist/{vue-ui-carousel-table-CRgbs7jR.js → vue-ui-carousel-table-D-T2yA7-.js} +2 -2
- package/dist/vue-ui-chestnut-1MsZ9Q3r.js +2016 -0
- package/dist/vue-ui-chord-QBQUSe7r.js +1347 -0
- package/dist/vue-ui-circle-pack-ZWEwtesD.js +1635 -0
- package/dist/{vue-ui-cursor-BHyXRadA.js → vue-ui-cursor-CHQcHAHQ.js} +2 -2
- package/dist/{vue-ui-dag-CyVqaLbF.js → vue-ui-dag-C_inEafb.js} +794 -792
- package/dist/{vue-ui-dashboard-7I-7wvCP.js → vue-ui-dashboard-Bs2mBur5.js} +74 -72
- package/dist/{vue-ui-digits-BBL8uERO.js → vue-ui-digits-DwE4MoXI.js} +2 -2
- package/dist/vue-ui-donut-BM9dMHXj.js +2415 -0
- package/dist/{vue-ui-donut-DcgUuefk.js → vue-ui-donut-CbOSJmRu.js} +2 -2
- package/dist/vue-ui-donut-evolution-C97_RHus.js +1552 -0
- package/dist/vue-ui-dumbbell-DwKa5EL5.js +1533 -0
- package/dist/vue-ui-flow-DTTr3YL9.js +1217 -0
- package/dist/vue-ui-funnel-C4pkBk3D.js +749 -0
- package/dist/vue-ui-galaxy-CuAPLOvX.js +1085 -0
- package/dist/vue-ui-gauge-DLDULH26.js +934 -0
- package/dist/{vue-ui-geo-jR4P4pbt.js → vue-ui-geo-DXIHhp-G.js} +431 -429
- package/dist/{vue-ui-gizmo-D6W86s9o.js → vue-ui-gizmo-PuURiePo.js} +2 -2
- package/dist/vue-ui-heatmap-mvWLKB99.js +1555 -0
- package/dist/{vue-ui-hill-fFq7pm-g.js → vue-ui-hill-DqsVJkmO.js} +472 -470
- package/dist/vue-ui-history-plot-BBVLgt9_.js +1698 -0
- package/dist/{vue-ui-horizontal-bar-D3Sft4kp.js → vue-ui-horizontal-bar-y8Q8PZwT.js} +513 -511
- package/dist/{vue-ui-kpi-fzLsKlyE.js → vue-ui-kpi-B2hf3kpp.js} +2 -2
- package/dist/{vue-ui-label-BSgLalWD.js → vue-ui-label-ClMQ5Gez.js} +1 -1
- package/dist/{vue-ui-mini-loader-BL2odRfu.js → vue-ui-mini-loader-DtPOVIkK.js} +1 -1
- package/dist/vue-ui-molecule-eeW1Pmg8.js +929 -0
- package/dist/{vue-ui-mood-radar-bvGx6XgG.js → vue-ui-mood-radar-Dd1qfUiu.js} +378 -376
- package/dist/vue-ui-nested-donuts-CUARCr6O.js +1503 -0
- package/dist/vue-ui-onion-NoxHP0cG.js +1235 -0
- package/dist/{vue-ui-parallel-coordinate-plot-B_QJ4N9o.js → vue-ui-parallel-coordinate-plot-Cp3pCyxK.js} +409 -407
- package/dist/vue-ui-quadrant-C3kQtaeX.js +1967 -0
- package/dist/{vue-ui-quick-chart-BFscCR59.js → vue-ui-quick-chart-BZq517pL.js} +8 -6
- package/dist/vue-ui-radar-DvNrl4uD.js +1374 -0
- package/dist/vue-ui-rating-CWFMoYpE.js +359 -0
- package/dist/vue-ui-relation-circle-1iS6C0xx.js +905 -0
- package/dist/vue-ui-ridgeline-B-EZiPCF.js +1630 -0
- package/dist/vue-ui-rings-BXuwrHos.js +1252 -0
- package/dist/vue-ui-scatter-ByL-ZZ3B.js +2405 -0
- package/dist/{vue-ui-skeleton-zmbcOVEf.js → vue-ui-skeleton-BcU1onF6.js} +698 -698
- package/dist/vue-ui-smiley-DJVusLnp.js +376 -0
- package/dist/vue-ui-spark-trend-DjS31avb.js +457 -0
- package/dist/vue-ui-sparkbar-1Al_TLw1.js +401 -0
- package/dist/vue-ui-sparkgauge-CwLo53Y8.js +268 -0
- package/dist/vue-ui-sparkhistogram-CGw6SThG.js +589 -0
- package/dist/{vue-ui-sparkline-Dv7XrEzO.js → vue-ui-sparkline-CSZGBFfI.js} +511 -511
- package/dist/vue-ui-sparkstackbar-B8dloLMp.js +738 -0
- package/dist/vue-ui-stackbar-FvNd77t1.js +2355 -0
- package/dist/vue-ui-stackline-CP7PkqiG.js +2469 -0
- package/dist/vue-ui-strip-plot-DSMlDkv1.js +1740 -0
- package/dist/{vue-ui-table-heatmap-Dv_ZKKm3.js → vue-ui-table-heatmap-DnP3pzh2.js} +2 -2
- package/dist/vue-ui-table-rwKtnJKt.js +1352 -0
- package/dist/vue-ui-table-sparkline-B6wyEAyC.js +738 -0
- package/dist/{vue-ui-thermometer-DytlLJ32.js → vue-ui-thermometer-D0_KsB-y.js} +194 -192
- package/dist/{vue-ui-timer-CvHP4HoW.js → vue-ui-timer-1Z2zginj.js} +153 -153
- package/dist/vue-ui-tiremarks-zbl7aooy.js +540 -0
- package/dist/vue-ui-treemap-Drs4gK6L.js +1733 -0
- package/dist/vue-ui-waffle-DqUVsVNE.js +1621 -0
- package/dist/vue-ui-wheel-DLCBPW9t.js +873 -0
- package/dist/vue-ui-word-cloud-8Agk9h6c.js +1710 -0
- package/dist/{vue-ui-world-D0_2upjg.js → vue-ui-world-BOBHo7-L.js} +526 -524
- package/dist/vue-ui-xy-CSTJzRkk.js +5283 -0
- package/dist/{vue-ui-xy-D_5FfaH-.js → vue-ui-xy-Dmk1gQkI.js} +2 -2
- package/dist/vue-ui-xy-canvas-DANPuyf4.js +1824 -0
- package/dist/{vue_ui_age_pyramid-BY6c-oX_.js → vue_ui_age_pyramid-B2R66DgQ.js} +15 -6
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-CH8SpxS2.js +0 -1829
- package/dist/vue-ui-age-pyramid-B9MUVi75.js +0 -1241
- package/dist/vue-ui-annotator-CmlcWPIm.js +0 -2886
- package/dist/vue-ui-bullet-n8KNnDwh.js +0 -700
- package/dist/vue-ui-candlestick-Bxlvqk49.js +0 -1857
- package/dist/vue-ui-chestnut-ByDKbkG9.js +0 -2014
- package/dist/vue-ui-chord-DQRBgVOx.js +0 -1345
- package/dist/vue-ui-circle-pack-CBBc0HOe.js +0 -1633
- package/dist/vue-ui-donut-DfiocufT.js +0 -2413
- package/dist/vue-ui-donut-evolution-BoqO8By2.js +0 -1550
- package/dist/vue-ui-dumbbell-7M_oUQdi.js +0 -1529
- package/dist/vue-ui-flow-CoylrfnO.js +0 -1215
- package/dist/vue-ui-funnel-DaBYHWIC.js +0 -747
- package/dist/vue-ui-galaxy-BIebStQ3.js +0 -1083
- package/dist/vue-ui-gauge-CwdTmiRP.js +0 -932
- package/dist/vue-ui-heatmap-DXYlGwqR.js +0 -1553
- package/dist/vue-ui-history-plot-CgIELoD2.js +0 -1696
- package/dist/vue-ui-molecule-DeHWkkhy.js +0 -929
- package/dist/vue-ui-nested-donuts-CeAV2xPk.js +0 -1501
- package/dist/vue-ui-onion-B7oFulsQ.js +0 -1233
- package/dist/vue-ui-quadrant-DrKnz37q.js +0 -1965
- package/dist/vue-ui-radar-Bzx69q8f.js +0 -1372
- package/dist/vue-ui-rating-CimC9FQ9.js +0 -359
- package/dist/vue-ui-relation-circle-DIQYyDGb.js +0 -903
- package/dist/vue-ui-ridgeline-CPEnM45x.js +0 -1621
- package/dist/vue-ui-rings-qPL5Iwji.js +0 -1250
- package/dist/vue-ui-scatter-BB0ClTsU.js +0 -2403
- package/dist/vue-ui-smiley-DzPkCMN-.js +0 -376
- package/dist/vue-ui-spark-trend-Ciq7-k_q.js +0 -457
- package/dist/vue-ui-sparkbar-D1M7-naP.js +0 -401
- package/dist/vue-ui-sparkgauge-rsqaeR_n.js +0 -268
- package/dist/vue-ui-sparkhistogram-C4WXt2Ni.js +0 -589
- package/dist/vue-ui-sparkstackbar-DDOXdeV-.js +0 -738
- package/dist/vue-ui-stackbar-C_hMnOLb.js +0 -2353
- package/dist/vue-ui-stackline-BHGi63lD.js +0 -2467
- package/dist/vue-ui-strip-plot-Cygpn-l8.js +0 -1738
- package/dist/vue-ui-table-BQna1wL6.js +0 -1352
- package/dist/vue-ui-table-sparkline-BCuimtk6.js +0 -738
- package/dist/vue-ui-tiremarks-BvjdZwgh.js +0 -538
- package/dist/vue-ui-treemap-C5OpqzSc.js +0 -1731
- package/dist/vue-ui-waffle-B7T_Zzan.js +0 -1619
- package/dist/vue-ui-wheel-D1B0k7IW.js +0 -871
- package/dist/vue-ui-word-cloud-C4pX6jop.js +0 -1708
- package/dist/vue-ui-xy-Ck41KYqF.js +0 -5281
- package/dist/vue-ui-xy-canvas-B_8Mu19r.js +0 -1824
|
@@ -2,7 +2,7 @@ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
|
2
2
|
import { A as t, H as n, Ht as r, I as i, L as a, N as o, P as s, Pt as c, S as l, St as u, U as d, Ut as f, V as p, Wt as m, X as ee, Zt as te, at as ne, d as re, ht as ie, i as ae, k as oe, kt as se, m as ce, nt as le, q as ue, st as de, t as fe } from "./lib-Dql7cqyA.js";
|
|
3
3
|
import { n as pe, t as me } from "./useHints-Dq_w2E8B.js";
|
|
4
4
|
import { t as h } from "./useTimeLabels-d2f-W1L4.js";
|
|
5
|
-
import { t as he } from "./useConfig-
|
|
5
|
+
import { t as he } from "./useConfig-CIQZ6_r7.js";
|
|
6
6
|
import { n as ge, t as _e } from "./BaseScanner-DZvpgOjM.js";
|
|
7
7
|
import { t as ve } from "./useNestedProp-Chvyfpl-.js";
|
|
8
8
|
import { t as ye } from "./useThemeCheck-C43Tcqmk.js";
|
|
@@ -13,16 +13,16 @@ import { t as we } from "./A11yDataTable-DdRsVULz.js";
|
|
|
13
13
|
import { t as Te } from "./useChartAccessibility-DYqac8yF.js";
|
|
14
14
|
import { t as Ee } from "./usePrefersMotion-BC-CsqR1.js";
|
|
15
15
|
import { t as De } from "./vue_ui_sparkline-auZhap6Y.js";
|
|
16
|
-
import { Fragment as g, computed as _, createBlock as Oe, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createTextVNode as ke, createVNode as Ae, defineAsyncComponent as je, guardReactiveProps as Me, nextTick as x, normalizeProps as Ne, normalizeStyle as S, onBeforeUnmount as Pe, onMounted as Fe, openBlock as C, ref as w, renderList as T, renderSlot as
|
|
16
|
+
import { Fragment as g, computed as _, createBlock as Oe, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createTextVNode as ke, createVNode as Ae, defineAsyncComponent as je, guardReactiveProps as Me, nextTick as x, normalizeProps as Ne, normalizeStyle as S, onBeforeUnmount as Pe, onMounted as Fe, openBlock as C, ref as w, renderList as T, renderSlot as Ie, shallowRef as Le, toDisplayString as Re, toRefs as ze, unref as E, watch as D, watchEffect as Be, withCtx as Ve } from "vue";
|
|
17
17
|
//#region src/atoms/SparklinePulse.vue
|
|
18
|
-
var
|
|
18
|
+
var He = {
|
|
19
19
|
key: 0,
|
|
20
20
|
style: { "pointer-events": "none" }
|
|
21
|
-
},
|
|
21
|
+
}, Ue = [
|
|
22
22
|
"r",
|
|
23
23
|
"fill",
|
|
24
24
|
"filter"
|
|
25
|
-
],
|
|
25
|
+
], We = [
|
|
26
26
|
"begin",
|
|
27
27
|
"dur",
|
|
28
28
|
"repeatCount",
|
|
@@ -31,12 +31,12 @@ var Ve = {
|
|
|
31
31
|
"keySplines",
|
|
32
32
|
"keyTimes",
|
|
33
33
|
"keyPoints"
|
|
34
|
-
],
|
|
34
|
+
], Ge = ["href"], Ke = [
|
|
35
35
|
"dur",
|
|
36
36
|
"repeatCount",
|
|
37
37
|
"fill",
|
|
38
38
|
"values"
|
|
39
|
-
],
|
|
39
|
+
], qe = ["r", "fill"], O = [
|
|
40
40
|
"begin",
|
|
41
41
|
"dur",
|
|
42
42
|
"repeatCount",
|
|
@@ -44,7 +44,7 @@ var Ve = {
|
|
|
44
44
|
"keySplines",
|
|
45
45
|
"keyTimes",
|
|
46
46
|
"keyPoints"
|
|
47
|
-
],
|
|
47
|
+
], Je = ["href"], k = ["dur", "repeatCount"], Ye = {
|
|
48
48
|
__name: "SparklinePulse",
|
|
49
49
|
props: {
|
|
50
50
|
uid: {
|
|
@@ -132,17 +132,17 @@ var Ve = {
|
|
|
132
132
|
let r = t.pulse.trail.opacity, i = (n.value - e) / n.value, a = e === 0 ? 1 : i * r;
|
|
133
133
|
return `0;${a};${a};0`;
|
|
134
134
|
}
|
|
135
|
-
return
|
|
135
|
+
return D(() => t.loading, async (e) => {
|
|
136
136
|
if (e) {
|
|
137
137
|
i();
|
|
138
138
|
return;
|
|
139
139
|
}
|
|
140
140
|
await x(), i();
|
|
141
|
-
}),
|
|
141
|
+
}), D(() => t.pulsePathId, async () => {
|
|
142
142
|
await x(), i();
|
|
143
143
|
}), Pe(() => {
|
|
144
144
|
i();
|
|
145
|
-
}), (t, i) => r.value ? (C(), y("g",
|
|
145
|
+
}), (t, i) => r.value ? (C(), y("g", He, [(C(!0), y(g, null, T(n.value, (t, n) => (C(), y(g, null, [n % 3 == 0 ? (C(), y("circle", {
|
|
146
146
|
key: `sparkline_dot_${n}_${e.pulsePathId}`,
|
|
147
147
|
r: o(n),
|
|
148
148
|
fill: e.pulse.color,
|
|
@@ -158,14 +158,14 @@ var Ve = {
|
|
|
158
158
|
keyTimes: e.pulseMotion.keyTimes || void 0,
|
|
159
159
|
keyPoints: e.pulseKeyPoints,
|
|
160
160
|
rotate: "auto"
|
|
161
|
-
}, [b("mpath", { href: `#${e.pulsePathId}` }, null, 8,
|
|
161
|
+
}, [b("mpath", { href: `#${e.pulsePathId}` }, null, 8, Ge)], 8, We), b("animate", {
|
|
162
162
|
attributeName: "opacity",
|
|
163
163
|
dur: e.pulseDur,
|
|
164
164
|
repeatCount: e.pulseRepeatCount,
|
|
165
165
|
fill: e.pulseFillMode,
|
|
166
166
|
values: s(n),
|
|
167
167
|
keyTimes: "0;0.1;0.9;1"
|
|
168
|
-
}, null, 8,
|
|
168
|
+
}, null, 8, Ke)], 8, Ue)) : v("", !0)], 64))), 256)), (C(), y("circle", {
|
|
169
169
|
key: `sparkline_halo_${e.pulsePathId}`,
|
|
170
170
|
r: Math.max(e.pulse.radius * 1.3),
|
|
171
171
|
fill: e.pulse.color,
|
|
@@ -179,36 +179,36 @@ var Ve = {
|
|
|
179
179
|
keyTimes: e.pulseMotion.keyTimes || void 0,
|
|
180
180
|
keyPoints: e.pulseKeyPoints,
|
|
181
181
|
rotate: "auto"
|
|
182
|
-
}, [b("mpath", { href: `#${e.pulsePathId}` }, null, 8,
|
|
182
|
+
}, [b("mpath", { href: `#${e.pulsePathId}` }, null, 8, Je)], 8, O), b("animate", {
|
|
183
183
|
attributeName: "opacity",
|
|
184
184
|
values: "0;0.35;0.35;0",
|
|
185
185
|
keyTimes: "0;0.15;0.85;1",
|
|
186
186
|
dur: e.pulseDur,
|
|
187
187
|
repeatCount: e.pulseRepeatCount
|
|
188
|
-
}, null, 8,
|
|
188
|
+
}, null, 8, k)], 8, qe))])) : v("", !0);
|
|
189
189
|
}
|
|
190
|
-
},
|
|
190
|
+
}, Xe = {
|
|
191
191
|
canvas: null,
|
|
192
192
|
ctx: null
|
|
193
193
|
};
|
|
194
|
-
function
|
|
194
|
+
function Ze() {
|
|
195
195
|
if (typeof document > "u") throw Error("color-utils: document is not available (browser-only).");
|
|
196
|
-
if (!
|
|
196
|
+
if (!Xe.canvas) {
|
|
197
197
|
let e = document.createElement("canvas");
|
|
198
198
|
e.width = 1, e.height = 1;
|
|
199
199
|
let t = e.getContext("2d", { willReadFrequently: !0 });
|
|
200
200
|
if (!t) throw Error("color-utils: unable to get 2D canvas context.");
|
|
201
|
-
|
|
201
|
+
Xe.canvas = e, Xe.ctx = t;
|
|
202
202
|
}
|
|
203
|
-
return
|
|
203
|
+
return Xe.ctx;
|
|
204
204
|
}
|
|
205
|
-
function
|
|
205
|
+
function Qe(e) {
|
|
206
206
|
return e < 0 ? 0 : e > 255 ? 255 : Math.round(e);
|
|
207
207
|
}
|
|
208
|
-
function
|
|
208
|
+
function A(e) {
|
|
209
209
|
return e < 0 ? 0 : e > 1 ? 1 : e;
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function j(e, t = null) {
|
|
212
212
|
if (typeof e != "string" || e.trim().length === 0) throw Error("colorToRgba: inputColor must be a non-empty string.");
|
|
213
213
|
let n = e.trim();
|
|
214
214
|
if (n.toLowerCase() === "transparent") return {
|
|
@@ -217,10 +217,10 @@ function N(e, t = null) {
|
|
|
217
217
|
blue: 0,
|
|
218
218
|
alpha: 0
|
|
219
219
|
};
|
|
220
|
-
let r =
|
|
220
|
+
let r = N(n, t), i = Ze();
|
|
221
221
|
i.clearRect(0, 0, 1, 1), i.fillStyle = "#000";
|
|
222
222
|
let a = i.fillStyle;
|
|
223
|
-
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}".`);
|
|
224
224
|
i.fillRect(0, 0, 1, 1);
|
|
225
225
|
let o = i.getImageData(0, 0, 1, 1).data;
|
|
226
226
|
return {
|
|
@@ -230,35 +230,35 @@ function N(e, t = null) {
|
|
|
230
230
|
alpha: o[3] / 255
|
|
231
231
|
};
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function M(e, t = null) {
|
|
234
234
|
if (!Array.isArray(e) || e.length === 0) throw Error("colorsToRgba: colors must be a non-empty array.");
|
|
235
235
|
let n = Array(e.length);
|
|
236
|
-
for (let r = 0; r < e.length; r += 1) n[r] =
|
|
236
|
+
for (let r = 0; r < e.length; r += 1) n[r] = j(e[r], t);
|
|
237
237
|
return n;
|
|
238
238
|
}
|
|
239
|
-
function
|
|
239
|
+
function N(e, t = null) {
|
|
240
240
|
return e !== "currentColor" || typeof window > "u" || !t ? e : window.getComputedStyle(t).color || e;
|
|
241
241
|
}
|
|
242
|
-
function
|
|
242
|
+
function $e(e) {
|
|
243
243
|
let t = e.trim().toLowerCase();
|
|
244
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)";
|
|
245
245
|
}
|
|
246
|
-
function
|
|
247
|
-
let t =
|
|
246
|
+
function P(e) {
|
|
247
|
+
let t = A(e / 255);
|
|
248
248
|
return t <= .04045 ? t / 12.92 : ((t + .055) / 1.055) ** 2.4;
|
|
249
249
|
}
|
|
250
|
-
function
|
|
251
|
-
let t =
|
|
252
|
-
return n = t <= .0031308 ? t * 12.92 : 1.055 * t ** (1 / 2.4) - .055,
|
|
250
|
+
function F(e) {
|
|
251
|
+
let t = A(e), n;
|
|
252
|
+
return n = t <= .0031308 ? t * 12.92 : 1.055 * t ** (1 / 2.4) - .055, Qe(n * 255);
|
|
253
253
|
}
|
|
254
|
-
function
|
|
255
|
-
let i =
|
|
254
|
+
function I(e, t, n, r) {
|
|
255
|
+
let i = A(n);
|
|
256
256
|
if (r === "linearRGB") {
|
|
257
|
-
let n =
|
|
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;
|
|
258
258
|
return {
|
|
259
|
-
red:
|
|
260
|
-
green:
|
|
261
|
-
blue:
|
|
259
|
+
red: F(l),
|
|
260
|
+
green: F(u),
|
|
261
|
+
blue: F(d),
|
|
262
262
|
alpha: e.alpha + (t.alpha - e.alpha) * i
|
|
263
263
|
};
|
|
264
264
|
}
|
|
@@ -282,16 +282,16 @@ function R(e, t) {
|
|
|
282
282
|
function z(e) {
|
|
283
283
|
return Number.isFinite(e) ? e.toString() : "0";
|
|
284
284
|
}
|
|
285
|
-
function
|
|
285
|
+
function B(e) {
|
|
286
286
|
let t = L(e, 0, 255).toString(16);
|
|
287
287
|
return t.length === 1 ? "0" + t : t;
|
|
288
288
|
}
|
|
289
|
-
function
|
|
289
|
+
function et(e) {
|
|
290
290
|
if (typeof e != "string") return;
|
|
291
291
|
let t = Number.parseFloat(e);
|
|
292
292
|
return Number.isFinite(t) ? t : void 0;
|
|
293
293
|
}
|
|
294
|
-
function
|
|
294
|
+
function tt(e, t, n, r = !0) {
|
|
295
295
|
let i = n - t;
|
|
296
296
|
if (i === 0) return 0;
|
|
297
297
|
let a = (e - t) / i;
|
|
@@ -299,35 +299,35 @@ function nt(e, t, n, r = !0) {
|
|
|
299
299
|
}
|
|
300
300
|
//#endregion
|
|
301
301
|
//#region src/SPG/index.js
|
|
302
|
-
var
|
|
303
|
-
function
|
|
302
|
+
var V = "http://www.w3.org/2000/svg";
|
|
303
|
+
function nt(e) {
|
|
304
304
|
if (typeof document > "u") throw Error("SvgPathGradientAsync: document is not available (browser-only implementation).");
|
|
305
|
-
let t = document.createElementNS(
|
|
305
|
+
let t = document.createElementNS(V, "svg");
|
|
306
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";
|
|
307
|
-
let n = document.createElementNS(
|
|
307
|
+
let n = document.createElementNS(V, "path");
|
|
308
308
|
return e === "M " && (e = "M 0,0"), n.setAttribute("d", e), t.appendChild(n), document.body.appendChild(t), {
|
|
309
309
|
svgElement: t,
|
|
310
310
|
pathElement: n
|
|
311
311
|
};
|
|
312
312
|
}
|
|
313
|
-
function
|
|
313
|
+
function H(e) {
|
|
314
314
|
if (e) try {
|
|
315
315
|
e.svgElement?.remove?.();
|
|
316
316
|
} catch {}
|
|
317
317
|
}
|
|
318
|
-
function
|
|
318
|
+
function rt(e, t, n) {
|
|
319
319
|
if (typeof n == "number" && n > 0) return n;
|
|
320
320
|
let r = t * .75;
|
|
321
321
|
r < .5 && (r = .5), r > 8 && (r = 8);
|
|
322
322
|
let i = e / 2;
|
|
323
323
|
return r > i && i > 0 && (r = i), r <= 0 && (r = 1), r;
|
|
324
324
|
}
|
|
325
|
-
function
|
|
325
|
+
function it(e, t, n) {
|
|
326
326
|
if (typeof t == "number" && t >= 1) return Math.floor(t);
|
|
327
327
|
let r = Math.ceil(e / (typeof n == "number" && n > 0 ? n : 2));
|
|
328
328
|
return r < 1 ? 1 : r;
|
|
329
329
|
}
|
|
330
|
-
function
|
|
330
|
+
function at(e, t, n, r, i, a) {
|
|
331
331
|
let o = n - t, s = Math.ceil(o / r) + 1;
|
|
332
332
|
s < 2 && (s = 2), s > a && (s = a);
|
|
333
333
|
let c = s > 1 ? o / (s - 1) : 0, l = e.getPointAtLength(t), u = `M ${z(R(l.x, i))} ${z(R(l.y, i))}`;
|
|
@@ -337,7 +337,7 @@ function ct(e, t, n, r, i, a) {
|
|
|
337
337
|
}
|
|
338
338
|
return u;
|
|
339
339
|
}
|
|
340
|
-
function
|
|
340
|
+
function ot(e, t, n, r, i, a) {
|
|
341
341
|
let o = n - t, s = Math.ceil(o / r) + 1;
|
|
342
342
|
s < 2 && (s = 2), s > a && (s = a);
|
|
343
343
|
let c = s > 1 ? o / (s - 1) : 0, l = e.getPointAtLength(t), u = l.x, d = l.x, f = l.y, p = l.y, m = `M ${z(R(l.x, i))} ${z(R(l.y, i))}`;
|
|
@@ -355,7 +355,7 @@ function lt(e, t, n, r, i, a) {
|
|
|
355
355
|
}
|
|
356
356
|
};
|
|
357
357
|
}
|
|
358
|
-
function
|
|
358
|
+
function st(e) {
|
|
359
359
|
if (e.length === 1) return [{
|
|
360
360
|
position: 0,
|
|
361
361
|
rgba: e[0]
|
|
@@ -367,21 +367,21 @@ function ut(e) {
|
|
|
367
367
|
};
|
|
368
368
|
return t;
|
|
369
369
|
}
|
|
370
|
-
function
|
|
370
|
+
function ct(e, t, n, r) {
|
|
371
371
|
let i = L(t, 0, 1), a = r;
|
|
372
372
|
for (a < 0 && (a = 0), a > e.length - 2 && (a = e.length - 2); a > 0 && i < e[a].position;) --a;
|
|
373
373
|
for (; a < e.length - 2 && i > e[a + 1].position;) a += 1;
|
|
374
374
|
let o = e[a], s = e[a + 1], c = s.position - o.position, l = c > 0 ? (i - o.position) / c : 0;
|
|
375
|
-
return
|
|
375
|
+
return dt(lt(o.rgba, s.rgba, l, n));
|
|
376
376
|
}
|
|
377
|
-
function
|
|
377
|
+
function lt(e, t, n, r) {
|
|
378
378
|
let i = L(n, 0, 1);
|
|
379
379
|
if (r === "linearRGB") {
|
|
380
|
-
let n =
|
|
380
|
+
let n = U(e.red), r = U(e.green), a = U(e.blue), o = U(t.red), s = U(t.green), c = U(t.blue), l = n + (o - n) * i, u = r + (s - r) * i, d = a + (c - a) * i;
|
|
381
381
|
return {
|
|
382
|
-
red:
|
|
383
|
-
green:
|
|
384
|
-
blue:
|
|
382
|
+
red: ut(l),
|
|
383
|
+
green: ut(u),
|
|
384
|
+
blue: ut(d),
|
|
385
385
|
alpha: e.alpha + (t.alpha - e.alpha) * i
|
|
386
386
|
};
|
|
387
387
|
}
|
|
@@ -392,50 +392,50 @@ function V(e, t, n, r) {
|
|
|
392
392
|
alpha: e.alpha + (t.alpha - e.alpha) * i
|
|
393
393
|
};
|
|
394
394
|
}
|
|
395
|
-
function
|
|
395
|
+
function U(e) {
|
|
396
396
|
let t = L(e / 255, 0, 1);
|
|
397
397
|
return t <= .04045 ? t / 12.92 : ((t + .055) / 1.055) ** 2.4;
|
|
398
398
|
}
|
|
399
|
-
function
|
|
399
|
+
function ut(e) {
|
|
400
400
|
let t = L(e, 0, 1), n;
|
|
401
401
|
return n = t <= .0031308 ? t * 12.92 : 1.055 * t ** (1 / 2.4) - .055, L(Math.round(n * 255), 0, 255);
|
|
402
402
|
}
|
|
403
|
-
function
|
|
403
|
+
function dt(e) {
|
|
404
404
|
let t = L(e.alpha, 0, 1), n = L(Math.round(e.red), 0, 255), r = L(Math.round(e.green), 0, 255), i = L(Math.round(e.blue), 0, 255);
|
|
405
|
-
return t >= 1 ? `#${
|
|
405
|
+
return t >= 1 ? `#${B(n)}${B(r)}${B(i)}` : `rgba(${n}, ${r}, ${i}, ${R(t, 4).toString()})`;
|
|
406
406
|
}
|
|
407
407
|
function ft(e) {
|
|
408
|
-
let t = `fill="${
|
|
408
|
+
let t = `fill="${K(e.fill ?? "none")}"`, n = Object.keys(e);
|
|
409
409
|
for (let r = 0; r < n.length; r += 1) {
|
|
410
410
|
let i = n[r];
|
|
411
411
|
if (i === "stroke" || i === "d") continue;
|
|
412
412
|
let a = e[i];
|
|
413
|
-
t += ` ${i}="${
|
|
413
|
+
t += ` ${i}="${K(a)}"`;
|
|
414
414
|
}
|
|
415
415
|
return t;
|
|
416
416
|
}
|
|
417
|
-
function
|
|
418
|
-
return `<path d="${
|
|
417
|
+
function W(e, t, n) {
|
|
418
|
+
return `<path d="${K(e)}" stroke="${K(t)}" ${n} />`;
|
|
419
419
|
}
|
|
420
|
-
function
|
|
420
|
+
function G(e) {
|
|
421
421
|
let t = [], n = e.segmentAttributeMap.fill ?? "none";
|
|
422
|
-
t.push(`fill="${
|
|
422
|
+
t.push(`fill="${K(n)}"`), t.push(`stroke="${K(e.stroke)}"`);
|
|
423
423
|
for (let n of Object.keys(e.segmentAttributeMap)) {
|
|
424
424
|
if (n === "stroke" || n === "d") continue;
|
|
425
425
|
let r = e.segmentAttributeMap[n];
|
|
426
|
-
t.push(`${n}="${
|
|
426
|
+
t.push(`${n}="${K(r)}"`);
|
|
427
427
|
}
|
|
428
|
-
return `<path d="${
|
|
428
|
+
return `<path d="${K(e.pathData)}" ${t.join(" ")} />`;
|
|
429
429
|
}
|
|
430
|
-
function
|
|
430
|
+
function pt(e, t) {
|
|
431
431
|
let n = [];
|
|
432
|
-
for (let e of Object.keys(t)) n.push(`${e}="${
|
|
432
|
+
for (let e of Object.keys(t)) n.push(`${e}="${K(t[e])}"`);
|
|
433
433
|
return `<g data-svg-path-gradient="true"${n.length ? " " + n.join(" ") : ""}>${e.join("")}</g>`;
|
|
434
434
|
}
|
|
435
|
-
function
|
|
435
|
+
function K(e) {
|
|
436
436
|
return String(e).replaceAll("&", "&").replaceAll("\"", """).replaceAll("<", "<").replaceAll(">", ">");
|
|
437
437
|
}
|
|
438
|
-
function
|
|
438
|
+
function mt(e, t = null, n = {}) {
|
|
439
439
|
return new Promise((r, i) => {
|
|
440
440
|
let a = null;
|
|
441
441
|
try {
|
|
@@ -443,16 +443,16 @@ function gt(e, t = null, n = {}) {
|
|
|
443
443
|
let i = n.temperatureMode ?? null;
|
|
444
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.");
|
|
445
445
|
if ((n.returnMode ?? "string") !== "string") throw Error("SvgPathGradientAsync: only returnMode=\"string\" is supported for the async version.");
|
|
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 =
|
|
447
|
-
a =
|
|
448
|
-
let f = a.pathElement, p = f.getTotalLength(), m = i === null ?
|
|
446
|
+
let o = typeof n.decimalPlaces == "number" ? n.decimalPlaces : 3, s = typeof n.flattenTolerance == "number" && n.flattenTolerance > 0 ? n.flattenTolerance : .25, c = n.attrs ? { ...n.attrs } : {}, l = n.groupAttrs ? { ...n.groupAttrs } : {}, u = et(c["stroke-width"]), d = typeof n.strokeWidth == "number" && n.strokeWidth > 0 ? n.strokeWidth : typeof u == "number" && u > 0 ? u : 1;
|
|
447
|
+
a = nt(e);
|
|
448
|
+
let f = a.pathElement, p = f.getTotalLength(), m = i === null ? M(t, n.colorReferenceElement) : [];
|
|
449
449
|
if (i === null && (!(p > 0) || m.length === 1)) {
|
|
450
|
-
let t =
|
|
450
|
+
let t = pt([G({
|
|
451
451
|
pathData: e,
|
|
452
|
-
stroke:
|
|
452
|
+
stroke: dt(m[0]),
|
|
453
453
|
segmentAttributeMap: c
|
|
454
454
|
})], l);
|
|
455
|
-
|
|
455
|
+
H(a), r(t);
|
|
456
456
|
return;
|
|
457
457
|
}
|
|
458
458
|
let ee = n.colorSpace ?? "linearRGB";
|
|
@@ -460,14 +460,14 @@ function gt(e, t = null, n = {}) {
|
|
|
460
460
|
let e = n.temperatureColors;
|
|
461
461
|
if (!Array.isArray(e) || e.length !== 2) throw Error("SvgPathGradientAsync: temperatureColors must be a tuple of exactly 2 colors when temperatureMode is enabled.");
|
|
462
462
|
}
|
|
463
|
-
let te = i === null ? null :
|
|
464
|
-
let e =
|
|
463
|
+
let te = i === null ? null : M(n.temperatureColors, n.colorReferenceElement), ne = i === null ? (() => {
|
|
464
|
+
let e = st(m), t = Array(e.length);
|
|
465
465
|
for (let n = 0; n < e.length; n += 1) t[n] = {
|
|
466
466
|
position: e[n].position,
|
|
467
467
|
rgba: e[n].rgba
|
|
468
468
|
};
|
|
469
469
|
return t;
|
|
470
|
-
})() : [], re =
|
|
470
|
+
})() : [], re = rt(p, d, n.maxSegmentLength), ie = it(p, n.segments, re), ae = p / ie, oe = typeof n.overlap == "number" && n.overlap >= 0 ? n.overlap : d * .5, se = ae * .45;
|
|
471
471
|
oe > se && (oe = se);
|
|
472
472
|
let ce = typeof n.samplePointLimitPerSegment == "number" && n.samplePointLimitPerSegment > 10 ? n.samplePointLimitPerSegment : 250, le = ft(c), ue = [], de = i === null ? null : [], fe = i === null ? null : [], pe = 0, me = i === null ? ne.length - 2 : 0, h = 0, he = () => {
|
|
473
473
|
let e = performance.now(), t = typeof n.frameBudgetMs == "number" ? n.frameBudgetMs : 8;
|
|
@@ -475,13 +475,13 @@ function gt(e, t = null, n = {}) {
|
|
|
475
475
|
let e = h * ae, t = (h + 1) * ae, n = e, r = t;
|
|
476
476
|
if (h !== 0 && (n = e - oe), h !== ie - 1 && (r = t + oe), n = L(n, 0, p), r = L(r, 0, p), r > n) {
|
|
477
477
|
if (i !== null) {
|
|
478
|
-
let e =
|
|
478
|
+
let e = ot(f, n, r, s, o, ce);
|
|
479
479
|
de.push(e.pathData), fe.push(e.bounds);
|
|
480
480
|
} else {
|
|
481
481
|
let e = (n + r) * .5 / p;
|
|
482
482
|
for (; pe < me && e > ne[pe + 1].position;) pe += 1;
|
|
483
|
-
let t =
|
|
484
|
-
ue.push(
|
|
483
|
+
let t = ct(ne, e, ee, pe), i = at(f, n, r, s, o, ce);
|
|
484
|
+
ue.push(W(i, t, le));
|
|
485
485
|
}
|
|
486
486
|
}
|
|
487
487
|
h += 1;
|
|
@@ -499,22 +499,22 @@ function gt(e, t = null, n = {}) {
|
|
|
499
499
|
let n = te[0], r = te[1];
|
|
500
500
|
ue.length = 0;
|
|
501
501
|
for (let a = 0; a < fe.length; a += 1) {
|
|
502
|
-
let o = fe[a], s =
|
|
503
|
-
ue.push(
|
|
502
|
+
let o = fe[a], s = tt(((i === "vertical" ? o.minY : o.minX) + (i === "vertical" ? o.maxY : o.maxX)) * .5, e, t, !0), c = dt(i === "vertical" ? I(n, r, s, ee) : I(r, n, s, ee)), l = de[a];
|
|
503
|
+
ue.push(W(l, c, le));
|
|
504
504
|
}
|
|
505
505
|
}
|
|
506
|
-
let c =
|
|
507
|
-
|
|
506
|
+
let c = pt(ue, l);
|
|
507
|
+
H(a), r(c);
|
|
508
508
|
};
|
|
509
509
|
requestAnimationFrame(he);
|
|
510
510
|
} catch (e) {
|
|
511
|
-
|
|
511
|
+
H(a), i(e);
|
|
512
512
|
}
|
|
513
513
|
});
|
|
514
514
|
}
|
|
515
515
|
//#endregion
|
|
516
516
|
//#region src/atoms/SparklineGradientPath.vue
|
|
517
|
-
var
|
|
517
|
+
var ht = ["innerHTML"], gt = {
|
|
518
518
|
__name: "SparklineGradientPath",
|
|
519
519
|
props: {
|
|
520
520
|
svgPathData: {
|
|
@@ -544,7 +544,7 @@ var _t = ["innerHTML"], vt = {
|
|
|
544
544
|
},
|
|
545
545
|
setup(e) {
|
|
546
546
|
let t = e, n = w(""), r = 0;
|
|
547
|
-
return
|
|
547
|
+
return D(() => [
|
|
548
548
|
t.enabled,
|
|
549
549
|
t.svgPathData,
|
|
550
550
|
t.strokeWidth,
|
|
@@ -557,7 +557,7 @@ var _t = ["innerHTML"], vt = {
|
|
|
557
557
|
n.value = "";
|
|
558
558
|
return;
|
|
559
559
|
}
|
|
560
|
-
let a = await
|
|
560
|
+
let a = await mt(t.svgPathData, null, {
|
|
561
561
|
segments: t.segments,
|
|
562
562
|
temperatureMode: "vertical",
|
|
563
563
|
temperatureColors: [t.highColor, t.lowColor],
|
|
@@ -569,54 +569,54 @@ var _t = ["innerHTML"], vt = {
|
|
|
569
569
|
groupAttrs: { class: "vue-ui-sparkline-gradient" }
|
|
570
570
|
});
|
|
571
571
|
i === r && (n.value = a);
|
|
572
|
-
}, { immediate: !0 }), (e, t) => (C(), y("g", { innerHTML: n.value }, null, 8,
|
|
572
|
+
}, { immediate: !0 }), (e, t) => (C(), y("g", { innerHTML: n.value }, null, 8, ht));
|
|
573
573
|
}
|
|
574
|
-
},
|
|
574
|
+
}, _t = /* @__PURE__ */ e({ default: () => Vt }), vt = ["id"], yt = ["id"], bt = { style: { position: "relative" } }, xt = [
|
|
575
575
|
"xmlns",
|
|
576
576
|
"viewBox",
|
|
577
577
|
"aria-describedby"
|
|
578
|
-
],
|
|
578
|
+
], St = ["width", "height"], Ct = ["id"], wt = [
|
|
579
579
|
"id",
|
|
580
580
|
"y1",
|
|
581
581
|
"y2"
|
|
582
|
-
],
|
|
582
|
+
], Tt = ["stop-color", "offset"], Et = { key: 1 }, Dt = [
|
|
583
583
|
"data-cy",
|
|
584
584
|
"d",
|
|
585
585
|
"fill"
|
|
586
|
-
],
|
|
586
|
+
], Ot = [
|
|
587
587
|
"id",
|
|
588
588
|
"d",
|
|
589
589
|
"stroke-width"
|
|
590
|
-
],
|
|
590
|
+
], kt = [
|
|
591
591
|
"d",
|
|
592
592
|
"stroke",
|
|
593
593
|
"stroke-width",
|
|
594
594
|
"stroke-dasharray"
|
|
595
|
-
],
|
|
595
|
+
], At = [
|
|
596
596
|
"d",
|
|
597
597
|
"stroke",
|
|
598
598
|
"stroke-width"
|
|
599
|
-
],
|
|
599
|
+
], jt = [
|
|
600
600
|
"id",
|
|
601
601
|
"d",
|
|
602
602
|
"stroke-width"
|
|
603
|
-
],
|
|
603
|
+
], Mt = [
|
|
604
604
|
"d",
|
|
605
605
|
"stroke",
|
|
606
606
|
"stroke-width",
|
|
607
607
|
"stroke-dasharray"
|
|
608
|
-
],
|
|
608
|
+
], Nt = [
|
|
609
609
|
"d",
|
|
610
610
|
"stroke",
|
|
611
611
|
"stroke-width"
|
|
612
|
-
],
|
|
612
|
+
], Pt = [
|
|
613
613
|
"x",
|
|
614
614
|
"y",
|
|
615
615
|
"width",
|
|
616
616
|
"height",
|
|
617
617
|
"fill",
|
|
618
618
|
"rx"
|
|
619
|
-
],
|
|
619
|
+
], Ft = [
|
|
620
620
|
"x1",
|
|
621
621
|
"x2",
|
|
622
622
|
"y1",
|
|
@@ -624,7 +624,7 @@ var _t = ["innerHTML"], vt = {
|
|
|
624
624
|
"stroke",
|
|
625
625
|
"stroke-width",
|
|
626
626
|
"stroke-dasharray"
|
|
627
|
-
],
|
|
627
|
+
], It = [
|
|
628
628
|
"x1",
|
|
629
629
|
"x2",
|
|
630
630
|
"y1",
|
|
@@ -632,20 +632,20 @@ var _t = ["innerHTML"], vt = {
|
|
|
632
632
|
"stroke",
|
|
633
633
|
"stroke-dasharray",
|
|
634
634
|
"stroke-width"
|
|
635
|
-
],
|
|
635
|
+
], Lt = [
|
|
636
636
|
"cx",
|
|
637
637
|
"cy",
|
|
638
638
|
"r",
|
|
639
639
|
"fill",
|
|
640
640
|
"stroke",
|
|
641
641
|
"stroke-width"
|
|
642
|
-
],
|
|
642
|
+
], Rt = [
|
|
643
643
|
"x",
|
|
644
644
|
"y",
|
|
645
645
|
"font-size",
|
|
646
646
|
"font-weight",
|
|
647
647
|
"fill"
|
|
648
|
-
],
|
|
648
|
+
], zt = [
|
|
649
649
|
"x",
|
|
650
650
|
"y",
|
|
651
651
|
"height",
|
|
@@ -653,7 +653,7 @@ var _t = ["innerHTML"], vt = {
|
|
|
653
653
|
"onMouseenter",
|
|
654
654
|
"onMouseleave",
|
|
655
655
|
"onClick"
|
|
656
|
-
],
|
|
656
|
+
], Bt = {
|
|
657
657
|
key: 0,
|
|
658
658
|
style: {
|
|
659
659
|
position: "absolute",
|
|
@@ -663,7 +663,7 @@ var _t = ["innerHTML"], vt = {
|
|
|
663
663
|
},
|
|
664
664
|
"data-dom-to-png-ignore": "",
|
|
665
665
|
"aria-hidden": "true"
|
|
666
|
-
},
|
|
666
|
+
}, Vt = /*#__PURE__*/ be({
|
|
667
667
|
__name: "vue-ui-sparkline",
|
|
668
668
|
props: {
|
|
669
669
|
config: {
|
|
@@ -697,10 +697,10 @@ var _t = ["innerHTML"], vt = {
|
|
|
697
697
|
},
|
|
698
698
|
emits: ["hoverIndex", "selectDatapoint"],
|
|
699
699
|
setup(e, { emit: be }) {
|
|
700
|
-
let
|
|
700
|
+
let He = je(() => import("./PackageVersion-ur6jKRL5.js").then((e) => e.t)), Ue = je(() => import("./SparkTooltip-C-Y-mDrc.js")), { vue_ui_sparkline: We } = he(), { isThemeValid: Ge, warnInvalidTheme: Ke } = ye(), qe = Ee(), O = e, Je = _(() => Array.isArray(O.dataset) && O.dataset.length > 0), k = w(ue()), Xe = w(null), Ze = w(null), Qe = w(null), A = w(null), j = w(null), M = w(nt()), N = _(() => M.value.style.tooltip), $e = _(() => M.value.style.bar), P = _(() => M.value.style.line), F = _(() => M.value.style.area), I = _(() => M.value.style.dataLabel), L = _(() => M.value.style);
|
|
701
701
|
pe({
|
|
702
|
-
config: () =>
|
|
703
|
-
dataset: () =>
|
|
702
|
+
config: () => M.value,
|
|
703
|
+
dataset: () => O.dataset,
|
|
704
704
|
component: "VueUiSparkline",
|
|
705
705
|
rules: [
|
|
706
706
|
me.emptyArray,
|
|
@@ -722,8 +722,8 @@ var _t = ["innerHTML"], vt = {
|
|
|
722
722
|
}
|
|
723
723
|
]
|
|
724
724
|
});
|
|
725
|
-
function
|
|
726
|
-
return
|
|
725
|
+
function R(e) {
|
|
726
|
+
return O.config?.skeletonDataset && Array.isArray(O.config.skeletonDataset) ? O.config.skeletonDataset.map((e) => ({
|
|
727
727
|
period: "-",
|
|
728
728
|
value: e
|
|
729
729
|
})) : ne(e).map((e) => ({
|
|
@@ -731,7 +731,7 @@ var _t = ["innerHTML"], vt = {
|
|
|
731
731
|
value: e
|
|
732
732
|
}));
|
|
733
733
|
}
|
|
734
|
-
let
|
|
734
|
+
let z = _(() => te({
|
|
735
735
|
defaultConfig: {
|
|
736
736
|
gradientPath: { show: !1 },
|
|
737
737
|
temperatureColors: { show: !1 },
|
|
@@ -752,66 +752,66 @@ var _t = ["innerHTML"], vt = {
|
|
|
752
752
|
tooltip: { show: !1 }
|
|
753
753
|
}
|
|
754
754
|
},
|
|
755
|
-
userConfig:
|
|
756
|
-
})), { loading:
|
|
757
|
-
...
|
|
758
|
-
FINAL_CONFIG:
|
|
759
|
-
prepareConfig:
|
|
755
|
+
userConfig: M.value.skeletonConfig ?? {}
|
|
756
|
+
})), { loading: B, FINAL_DATASET: et, manualLoading: tt } = ge({
|
|
757
|
+
...ze(O),
|
|
758
|
+
FINAL_CONFIG: M,
|
|
759
|
+
prepareConfig: nt,
|
|
760
760
|
callback: () => {
|
|
761
761
|
Promise.resolve().then(async () => {
|
|
762
|
-
await x(),
|
|
762
|
+
await x(), Gt();
|
|
763
763
|
});
|
|
764
764
|
},
|
|
765
|
-
skeletonDataset:
|
|
765
|
+
skeletonDataset: R(12),
|
|
766
766
|
skeletonConfig: te({
|
|
767
|
-
defaultConfig:
|
|
768
|
-
userConfig:
|
|
767
|
+
defaultConfig: M.value,
|
|
768
|
+
userConfig: z.value
|
|
769
769
|
})
|
|
770
|
-
}), { svgRef:
|
|
771
|
-
function
|
|
770
|
+
}), { svgRef: V } = Te({ config: L.value.title });
|
|
771
|
+
function nt() {
|
|
772
772
|
let e = ve({
|
|
773
|
-
userConfig:
|
|
774
|
-
defaultConfig:
|
|
773
|
+
userConfig: O.config,
|
|
774
|
+
defaultConfig: We
|
|
775
775
|
}), t = {}, n = e.theme;
|
|
776
776
|
if (n) {
|
|
777
|
-
if (!
|
|
777
|
+
if (!Ge.value(e)) Ke(e), t = e;
|
|
778
778
|
else {
|
|
779
779
|
let r = ve({
|
|
780
|
-
userConfig: De[n] ||
|
|
780
|
+
userConfig: De[n] || O.config,
|
|
781
781
|
defaultConfig: e
|
|
782
782
|
});
|
|
783
783
|
t = { ...ve({
|
|
784
|
-
userConfig:
|
|
784
|
+
userConfig: O.config,
|
|
785
785
|
defaultConfig: r
|
|
786
786
|
}) };
|
|
787
787
|
}
|
|
788
788
|
} else t = e;
|
|
789
789
|
return t;
|
|
790
790
|
}
|
|
791
|
-
let
|
|
792
|
-
function
|
|
793
|
-
if (!
|
|
794
|
-
|
|
791
|
+
let H = _(() => M.value?.style?.line.pulse || {}), rt = _(() => `${Math.max(200, Number(H.value.durationMs) || 4e3) / 1e3}s`), it = w(0), at = _(() => H.value?.begin || "0ms"), ot = w("0;1"), st = _(() => H.value?.loop === !1 ? "1" : "indefinite"), ct = _(() => H.value?.loop === !1 ? "freeze" : void 0), lt = _(() => H.value.trail.show && ft.value.lengthPx || 1), U = _(() => !!H.value?.show && !Q.value && !qe.value && !B.value && (Y.value?.length || 0) > 1);
|
|
792
|
+
function ut() {
|
|
793
|
+
if (!U.value) {
|
|
794
|
+
it.value = 0;
|
|
795
795
|
return;
|
|
796
796
|
}
|
|
797
|
-
let e =
|
|
797
|
+
let e = V.value;
|
|
798
798
|
if (!e) return;
|
|
799
|
-
let t = `#${
|
|
799
|
+
let t = `#${qt.value}`, n = e.querySelector?.(t);
|
|
800
800
|
if (n && typeof n.getTotalLength == "function") {
|
|
801
801
|
let e = n.getTotalLength();
|
|
802
|
-
Number.isFinite(e) && e > 0 && (
|
|
802
|
+
Number.isFinite(e) && e > 0 && (it.value = e);
|
|
803
803
|
return;
|
|
804
804
|
}
|
|
805
805
|
requestAnimationFrame(() => {
|
|
806
806
|
let n = e.querySelector?.(t);
|
|
807
807
|
if (n && typeof n.getTotalLength == "function") {
|
|
808
808
|
let e = n.getTotalLength();
|
|
809
|
-
Number.isFinite(e) && e > 0 && (
|
|
809
|
+
Number.isFinite(e) && e > 0 && (it.value = e);
|
|
810
810
|
}
|
|
811
811
|
});
|
|
812
812
|
}
|
|
813
|
-
let
|
|
814
|
-
let e =
|
|
813
|
+
let dt = _(() => {
|
|
814
|
+
let e = H.value?.easing || "ease-in-out", t = {
|
|
815
815
|
ease: [
|
|
816
816
|
.25,
|
|
817
817
|
.1,
|
|
@@ -847,7 +847,7 @@ var _t = ["innerHTML"], vt = {
|
|
|
847
847
|
keyTimes: "0;1"
|
|
848
848
|
} : {
|
|
849
849
|
calcMode: "spline",
|
|
850
|
-
keySplines: (e === "cubic-bezier" ? Array.isArray(
|
|
850
|
+
keySplines: (e === "cubic-bezier" ? Array.isArray(H.value?.cubicBezier) && H.value.cubicBezier.length === 4 ? H.value.cubicBezier : [
|
|
851
851
|
.4,
|
|
852
852
|
0,
|
|
853
853
|
.2,
|
|
@@ -855,8 +855,8 @@ var _t = ["innerHTML"], vt = {
|
|
|
855
855
|
] : t[e] || t["ease-in-out"]).join(" "),
|
|
856
856
|
keyTimes: "0;1"
|
|
857
857
|
};
|
|
858
|
-
}),
|
|
859
|
-
let e =
|
|
858
|
+
}), ft = _(() => {
|
|
859
|
+
let e = H.value?.trail || {}, t = P.value.strokeWidth || 1;
|
|
860
860
|
return {
|
|
861
861
|
show: e.show !== !1,
|
|
862
862
|
lengthPx: e.length,
|
|
@@ -865,92 +865,92 @@ var _t = ["innerHTML"], vt = {
|
|
|
865
865
|
fadeIn: .5,
|
|
866
866
|
fadeOut: .2
|
|
867
867
|
};
|
|
868
|
-
}),
|
|
869
|
-
data:
|
|
870
|
-
threshold:
|
|
868
|
+
}), W = _(() => se({
|
|
869
|
+
data: et.value,
|
|
870
|
+
threshold: M.value.downsample.threshold
|
|
871
871
|
}));
|
|
872
872
|
_(() => {
|
|
873
|
-
if (!
|
|
874
|
-
let e =
|
|
873
|
+
if (!M.value.temperatureColors.show) return !1;
|
|
874
|
+
let e = et.value.map(({ value: e }) => e).filter((e) => Number.isFinite(e));
|
|
875
875
|
return new Set(e).size <= 1;
|
|
876
|
-
}),
|
|
877
|
-
|
|
878
|
-
}, { deep: !0 }),
|
|
879
|
-
Array.isArray(e) && e.length > 0 && (
|
|
880
|
-
data:
|
|
876
|
+
}), D(() => O.config, (e) => {
|
|
877
|
+
B.value || (M.value = nt()), Zt(), q.value.chartWidth = L.value.chartWidth;
|
|
878
|
+
}, { deep: !0 }), D(() => O.dataset, (e) => {
|
|
879
|
+
Array.isArray(e) && e.length > 0 && (tt.value = !1), G.value = se({
|
|
880
|
+
data: et.value.map((e) => ({
|
|
881
881
|
...e,
|
|
882
882
|
value: [void 0].includes(e.value) ? null : e.value
|
|
883
883
|
})),
|
|
884
|
-
threshold:
|
|
884
|
+
threshold: M.value.downsample.threshold
|
|
885
885
|
});
|
|
886
886
|
}, { deep: !0 });
|
|
887
|
-
let
|
|
888
|
-
function
|
|
887
|
+
let G = w(pt());
|
|
888
|
+
function pt() {
|
|
889
889
|
return se({
|
|
890
|
-
data:
|
|
890
|
+
data: et.value.map((e) => L.value.animation.show && et.value.length > 1 ? {
|
|
891
891
|
...e,
|
|
892
892
|
value: null
|
|
893
893
|
} : {
|
|
894
894
|
...e,
|
|
895
895
|
value: [void 0].includes(e.value) ? null : e.value
|
|
896
896
|
}),
|
|
897
|
-
threshold:
|
|
897
|
+
threshold: M.value.downsample.threshold
|
|
898
898
|
});
|
|
899
899
|
}
|
|
900
|
-
let
|
|
901
|
-
let e = (
|
|
900
|
+
let K = Le(null), mt = Le(null), ht = w(!1), _t = w(0), Vt = w([]), Ht = w(""), Ut = _(() => {
|
|
901
|
+
let e = (W.value || []).map((e) => `${e.period}::${Number.isFinite(e.value) ? e.value : 0}`).join("|"), t = M.value?.style?.animation || {}, n = !!M.value?.gradientPath?.show && !M.value.temperatureColors.show;
|
|
902
902
|
return `${e}#${!!t.show}#${t.animationFrames || 0}#${n}`;
|
|
903
903
|
});
|
|
904
|
-
function
|
|
905
|
-
|
|
904
|
+
function Wt() {
|
|
905
|
+
_t.value &&= (cancelAnimationFrame(_t.value), 0), Vt.value.forEach((e) => clearTimeout(e)), Vt.value = [], ht.value = !1;
|
|
906
906
|
}
|
|
907
|
-
function
|
|
908
|
-
let e =
|
|
909
|
-
if (n && n ===
|
|
910
|
-
if (
|
|
911
|
-
|
|
907
|
+
function Gt() {
|
|
908
|
+
let e = M.value?.style?.animation || {}, t = W.value || [], n = Ut.value, r = !!M.value.gradientPath.show && !M.value.temperatureColors.show;
|
|
909
|
+
if (n && n === Ht.value && (ht.value || G.value.length === t.length)) return;
|
|
910
|
+
if (Wt(), r || !e.show || B.value || t.length <= 1 || qe.value) {
|
|
911
|
+
G.value = t, Ht.value = n;
|
|
912
912
|
return;
|
|
913
913
|
}
|
|
914
|
-
|
|
914
|
+
ht.value = !0, Ht.value = n, G.value = [];
|
|
915
915
|
let i = Math.max(1, Number(e.animationFrames) || 1), a = Math.max(1, Math.floor(i / t.length)), o = 0, s = () => {
|
|
916
|
-
if (n !==
|
|
917
|
-
|
|
916
|
+
if (n !== Ut.value) {
|
|
917
|
+
Wt();
|
|
918
918
|
return;
|
|
919
919
|
}
|
|
920
920
|
if (o < t.length) {
|
|
921
|
-
|
|
921
|
+
G.value.push(t[o]);
|
|
922
922
|
let e = setTimeout(() => {
|
|
923
|
-
|
|
923
|
+
_t.value = requestAnimationFrame(s);
|
|
924
924
|
}, a);
|
|
925
|
-
|
|
926
|
-
} else
|
|
925
|
+
Vt.value.push(e), o += 1;
|
|
926
|
+
} else G.value = t, Wt();
|
|
927
927
|
};
|
|
928
|
-
|
|
928
|
+
_t.value = requestAnimationFrame(s);
|
|
929
929
|
}
|
|
930
|
-
|
|
931
|
-
|
|
930
|
+
D(Ut, () => {
|
|
931
|
+
Gt();
|
|
932
932
|
}), Fe(() => {
|
|
933
|
-
|
|
933
|
+
Zt(), Gt();
|
|
934
934
|
}), Pe(() => {
|
|
935
|
-
|
|
935
|
+
Wt();
|
|
936
936
|
});
|
|
937
|
-
let
|
|
938
|
-
|
|
939
|
-
e || (await x(),
|
|
940
|
-
}),
|
|
941
|
-
e ||
|
|
937
|
+
let Kt = w(0);
|
|
938
|
+
D(() => B.value, async (e) => {
|
|
939
|
+
e || (await x(), Kt.value += 1);
|
|
940
|
+
}), D(() => ht.value, async (e) => {
|
|
941
|
+
e || B.value || (await x(), Kt.value += 1);
|
|
942
942
|
});
|
|
943
|
-
let
|
|
944
|
-
async function
|
|
945
|
-
|
|
943
|
+
let qt = _(() => `sparkline_line_path_${k.value}`), Jt = w(!0);
|
|
944
|
+
async function Yt() {
|
|
945
|
+
Jt.value = !1, await x(), Jt.value = !0, await x(), ut();
|
|
946
946
|
}
|
|
947
|
-
let
|
|
948
|
-
function
|
|
949
|
-
if (c(
|
|
947
|
+
let Xt = _(() => M.value.debug);
|
|
948
|
+
function Zt() {
|
|
949
|
+
if (c(O.dataset) ? (le({
|
|
950
950
|
componentName: "VueUiSparkline",
|
|
951
951
|
type: "dataset",
|
|
952
|
-
debug:
|
|
953
|
-
}),
|
|
952
|
+
debug: Xt.value
|
|
953
|
+
}), tt.value = !0) : Xt.value && O.dataset.forEach((e, t) => {
|
|
954
954
|
ie({
|
|
955
955
|
datasetObject: e,
|
|
956
956
|
requiredAttributes: ["period", "value"]
|
|
@@ -962,116 +962,116 @@ var _t = ["innerHTML"], vt = {
|
|
|
962
962
|
index: t
|
|
963
963
|
});
|
|
964
964
|
});
|
|
965
|
-
}), c(
|
|
965
|
+
}), c(O.dataset) || (tt.value = M.value.loading), M.value.responsive) {
|
|
966
966
|
let e = xe(() => {
|
|
967
967
|
let { width: e, height: t } = Se({
|
|
968
|
-
chart:
|
|
969
|
-
title:
|
|
970
|
-
source:
|
|
968
|
+
chart: Xe.value,
|
|
969
|
+
title: L.value.title.show && O.showInfo ? Ze.value : null,
|
|
970
|
+
source: Qe.value
|
|
971
971
|
});
|
|
972
972
|
requestAnimationFrame(() => {
|
|
973
|
-
|
|
973
|
+
q.value.width = e, q.value.height = t, q.value.chartWidth = L.value.chartWidth / 500 * e, q.value.padding = O.forcedPadding / 500 * e;
|
|
974
974
|
});
|
|
975
975
|
});
|
|
976
|
-
|
|
976
|
+
K.value && (mt.value && K.value.unobserve(mt.value), K.value.disconnect()), K.value = new ResizeObserver(e), mt.value = Xe.value.parentNode, K.value.observe(mt.value);
|
|
977
977
|
}
|
|
978
978
|
}
|
|
979
979
|
Pe(() => {
|
|
980
|
-
|
|
980
|
+
K.value && (mt.value && K.value.unobserve(mt.value), K.value.disconnect());
|
|
981
981
|
});
|
|
982
|
-
let
|
|
983
|
-
height: 80 *
|
|
982
|
+
let q = w({
|
|
983
|
+
height: 80 * O.heightRatio,
|
|
984
984
|
width: 500,
|
|
985
|
-
chartWidth:
|
|
986
|
-
padding:
|
|
987
|
-
}),
|
|
988
|
-
let { top: e, right: t, bottom: n, left: r } =
|
|
985
|
+
chartWidth: L.value.chartWidth,
|
|
986
|
+
padding: O.forcedPadding
|
|
987
|
+
}), Qt = be, J = _(() => {
|
|
988
|
+
let { top: e, right: t, bottom: n, left: r } = L.value.padding;
|
|
989
989
|
return {
|
|
990
990
|
top: e,
|
|
991
991
|
left: r,
|
|
992
|
-
right:
|
|
993
|
-
bottom:
|
|
994
|
-
start:
|
|
995
|
-
width:
|
|
996
|
-
height:
|
|
992
|
+
right: q.value.width - t,
|
|
993
|
+
bottom: q.value.height - n,
|
|
994
|
+
start: O.showInfo && I.value.show && I.value.position === "left" ? q.value.width - q.value.chartWidth + r : q.value.padding + r,
|
|
995
|
+
width: O.showInfo && I.value.show ? q.value.chartWidth - r - t : q.value.width - q.value.padding - r - t,
|
|
996
|
+
height: q.value.height - e - n
|
|
997
997
|
};
|
|
998
|
-
}),
|
|
998
|
+
}), $t = _(() => [null, void 0].includes(L.value.scaleMin) ? Math.min(...G.value.map((e) => isNaN(e.value) || [
|
|
999
999
|
void 0,
|
|
1000
1000
|
null,
|
|
1001
1001
|
"NaN",
|
|
1002
1002
|
NaN,
|
|
1003
1003
|
Infinity,
|
|
1004
1004
|
-Infinity
|
|
1005
|
-
].includes(e.value) ? 0 : e.value || 0)) :
|
|
1005
|
+
].includes(e.value) ? 0 : e.value || 0)) : L.value.scaleMin), en = _(() => [null, void 0].includes(L.value.scaleMax) ? Math.max(...G.value.map((e) => isNaN(e.value) || [
|
|
1006
1006
|
void 0,
|
|
1007
1007
|
null,
|
|
1008
1008
|
"NaN",
|
|
1009
1009
|
NaN,
|
|
1010
1010
|
Infinity,
|
|
1011
1011
|
-Infinity
|
|
1012
|
-
].includes(e.value) ? 0 : e.value || 0)) :
|
|
1013
|
-
let e =
|
|
1012
|
+
].includes(e.value) ? 0 : e.value || 0)) : L.value.scaleMax), tn = _(() => {
|
|
1013
|
+
let e = $t.value >= 0 ? 0 : $t.value;
|
|
1014
1014
|
return Math.abs(e);
|
|
1015
|
-
}),
|
|
1016
|
-
function
|
|
1017
|
-
return isNaN(e /
|
|
1015
|
+
}), nn = _(() => en.value + tn.value), rn = _(() => J.value.bottom - J.value.height * an(tn.value));
|
|
1016
|
+
function an(e) {
|
|
1017
|
+
return isNaN(e / nn.value) ? 0 : e / nn.value;
|
|
1018
1018
|
}
|
|
1019
|
-
let
|
|
1020
|
-
|
|
1021
|
-
let e = ++
|
|
1019
|
+
let on = _(() => W.value.length - 1 || 1), sn = w([]), cn = 0;
|
|
1020
|
+
Be(() => {
|
|
1021
|
+
let e = ++cn;
|
|
1022
1022
|
(async () => {
|
|
1023
1023
|
let t = await h({
|
|
1024
|
-
values:
|
|
1025
|
-
maxDatapoints:
|
|
1026
|
-
formatter:
|
|
1024
|
+
values: W.value.map((e) => e.period),
|
|
1025
|
+
maxDatapoints: W.value.length,
|
|
1026
|
+
formatter: I.value.datetimeFormatter,
|
|
1027
1027
|
start: 0,
|
|
1028
|
-
end:
|
|
1028
|
+
end: W.value.length
|
|
1029
1029
|
});
|
|
1030
|
-
e ===
|
|
1030
|
+
e === cn && (sn.value = t);
|
|
1031
1031
|
})();
|
|
1032
1032
|
});
|
|
1033
|
-
let
|
|
1033
|
+
let Y = _(() => G.value.map((e, t) => {
|
|
1034
1034
|
let n = isNaN(e.value) || [
|
|
1035
1035
|
void 0,
|
|
1036
1036
|
"NaN",
|
|
1037
1037
|
NaN,
|
|
1038
1038
|
Infinity,
|
|
1039
1039
|
-Infinity
|
|
1040
|
-
].includes(e.value) ? 0 : e.value, r =
|
|
1040
|
+
].includes(e.value) ? 0 : e.value, r = J.value.width / on.value;
|
|
1041
1041
|
return {
|
|
1042
1042
|
value: e.value,
|
|
1043
1043
|
absoluteValue: n,
|
|
1044
|
-
period:
|
|
1045
|
-
plotValue: n +
|
|
1046
|
-
toMax:
|
|
1047
|
-
x:
|
|
1048
|
-
y:
|
|
1049
|
-
id: `plot_${
|
|
1050
|
-
color: Q.value ?
|
|
1044
|
+
period: sn.value && sn.value[t] && sn.value[t].text ? sn.value[t].text : e.period,
|
|
1045
|
+
plotValue: n + tn.value,
|
|
1046
|
+
toMax: an(n + tn.value),
|
|
1047
|
+
x: J.value.start + t * r,
|
|
1048
|
+
y: J.value.bottom - J.value.height * an(n + tn.value),
|
|
1049
|
+
id: `plot_${k.value}_${t}`,
|
|
1050
|
+
color: Q.value ? $e.value.color : F.value.useGradient ? m(P.value.color, .05 * (1 - t / on.value)) : P.value.color,
|
|
1051
1051
|
width: r
|
|
1052
1052
|
};
|
|
1053
|
-
})),
|
|
1054
|
-
function
|
|
1055
|
-
|
|
1053
|
+
})), ln = _(() => O.selectedIndex !== void 0 && O.selectedIndex !== null && O.selectedIndex >= 0 && O.selectedIndex < Y.value.length ? O.selectedIndex : j.value !== void 0 && j.value !== null && j.value >= 0 && j.value < Y.value.length ? j.value : null), X = w(void 0), un = w(void 0);
|
|
1054
|
+
function dn(e, t) {
|
|
1055
|
+
M.value.events.datapointEnter && M.value.events.datapointEnter({
|
|
1056
1056
|
datapoint: e,
|
|
1057
1057
|
seriesIndex: t
|
|
1058
|
-
}),
|
|
1058
|
+
}), j.value = t, A.value = t, X.value = e, un.value ||= e, Qt("hoverIndex", { index: t });
|
|
1059
1059
|
}
|
|
1060
|
-
function
|
|
1061
|
-
|
|
1060
|
+
function fn(e, t) {
|
|
1061
|
+
M.value.events.datapointLeave && M.value.events.datapointLeave({
|
|
1062
1062
|
datapoint: e,
|
|
1063
1063
|
seriesIndex: t
|
|
1064
|
-
}),
|
|
1064
|
+
}), un.value = X.value, X.value = void 0, j.value = null, A.value = null, Qt("hoverIndex", { index: void 0 });
|
|
1065
1065
|
}
|
|
1066
1066
|
let Z = _(() => {
|
|
1067
|
-
if (
|
|
1068
|
-
let e =
|
|
1067
|
+
if (Je.value) {
|
|
1068
|
+
let e = Y.value.map((e) => e.absoluteValue), t = e.reduce((e, t) => e + t, 0);
|
|
1069
1069
|
return {
|
|
1070
|
-
latest:
|
|
1070
|
+
latest: Y.value[Y.value.length - 1] ? Y.value[Y.value.length - 1].absoluteValue : 0,
|
|
1071
1071
|
sum: t,
|
|
1072
|
-
average: t /
|
|
1072
|
+
average: t / Y.value.length,
|
|
1073
1073
|
median: ce(e),
|
|
1074
|
-
trend: re(
|
|
1074
|
+
trend: re(Y.value.map(({ x: e, y: t, absoluteValue: n }) => ({
|
|
1075
1075
|
x: e,
|
|
1076
1076
|
y: t,
|
|
1077
1077
|
value: n
|
|
@@ -1085,18 +1085,18 @@ var _t = ["innerHTML"], vt = {
|
|
|
1085
1085
|
median: null,
|
|
1086
1086
|
trend: null
|
|
1087
1087
|
};
|
|
1088
|
-
}),
|
|
1089
|
-
function
|
|
1090
|
-
|
|
1088
|
+
}), pn = _(() => Je.value ? I.value.valueType === "latest" ? Z.value.latest : I.value.valueType === "sum" ? Z.value.sum : I.value.valueType === "average" ? Z.value.average : 0 : 0), Q = _(() => M.value.type && M.value.type === "bar");
|
|
1089
|
+
function mn(e, t) {
|
|
1090
|
+
M.value.events.datapointClick && M.value.events.datapointClick({
|
|
1091
1091
|
datapoint: e,
|
|
1092
1092
|
seriesIndex: t
|
|
1093
|
-
}),
|
|
1093
|
+
}), Qt("selectDatapoint", {
|
|
1094
1094
|
datapoint: e,
|
|
1095
1095
|
index: t
|
|
1096
1096
|
});
|
|
1097
1097
|
}
|
|
1098
|
-
let
|
|
1099
|
-
function
|
|
1098
|
+
let hn = _(() => Array.isArray(P.value.dashIndices) && P.value.dashIndices.length > 0), gn = _(() => P.value.cutNullValues);
|
|
1099
|
+
function _n(e) {
|
|
1100
1100
|
return ![
|
|
1101
1101
|
null,
|
|
1102
1102
|
void 0,
|
|
@@ -1106,117 +1106,117 @@ var _t = ["innerHTML"], vt = {
|
|
|
1106
1106
|
-Infinity
|
|
1107
1107
|
].includes(e);
|
|
1108
1108
|
}
|
|
1109
|
-
function
|
|
1109
|
+
function vn(e, t) {
|
|
1110
1110
|
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;
|
|
1111
|
-
return
|
|
1111
|
+
return _n(e[t]?.value) && i && gn.value;
|
|
1112
1112
|
}
|
|
1113
|
-
function
|
|
1114
|
-
return
|
|
1113
|
+
function yn(e, t) {
|
|
1114
|
+
return X.value && e.id === X.value.id || ln.value === t || et.value.length === 1;
|
|
1115
1115
|
}
|
|
1116
|
-
function
|
|
1117
|
-
return Q.value || !
|
|
1116
|
+
function bn(e, t) {
|
|
1117
|
+
return Q.value || !_n(e?.value) ? !1 : L.value.plot.show && yn(e, t) || vn(Y.value, t);
|
|
1118
1118
|
}
|
|
1119
|
-
function
|
|
1120
|
-
return Math.max(1,
|
|
1119
|
+
function xn(e, t) {
|
|
1120
|
+
return Math.max(1, yn(e, t) ? L.value.plot.radius : L.value.plot.radius * .7);
|
|
1121
1121
|
}
|
|
1122
|
-
function
|
|
1123
|
-
return
|
|
1122
|
+
function Sn(e, t) {
|
|
1123
|
+
return yn(e, t) ? L.value.plot.stroke : L.value.backgroundColor;
|
|
1124
1124
|
}
|
|
1125
|
-
let
|
|
1126
|
-
if (!
|
|
1127
|
-
let e =
|
|
1125
|
+
let Cn = _(() => gn.value ? Y.value : Y.value.filter((e) => e.value !== null)), wn = _(() => Y.value.filter((e) => e.value !== null)), Tn = _(() => wn.value.length > 1), En = _(() => Q.value || !Tn.value ? "" : gn.value ? i(Y.value) : s(Cn.value)), Dn = _(() => Q.value || !Tn.value ? "" : gn.value ? n(Y.value) : p(Cn.value)), On = _(() => Q.value || !hn.value || !Tn.value ? [] : a(Cn.value, P.value.dashIndices)), kn = _(() => Q.value || !hn.value || !Tn.value ? [] : d(Cn.value, P.value.dashIndices)), An = _(() => Q.value || !F.value.show || !Tn.value ? [] : P.value.smooth ? o(Cn.value, J.value.bottom, gn.value).filter(Boolean) : (gn.value ? t(Y.value, J.value.bottom) : oe(Cn.value, J.value.bottom)).split(";").filter(Boolean).map((e) => `M${e}Z`)), jn = _(() => Q.value || !M.value.gradientPath.show || M.value.temperatureColors.show ? "" : `M ${(P.value.smooth ? En.value : Dn.value) || "0,0"}`), Mn = _(() => {
|
|
1126
|
+
if (!M.value.temperatureColors.show) return null;
|
|
1127
|
+
let e = M.value.temperatureColors.colors;
|
|
1128
1128
|
return !Array.isArray(e) || !e.length ? null : e.map((e) => l(e));
|
|
1129
1129
|
}), $ = _(() => {
|
|
1130
|
-
if (!
|
|
1131
|
-
let e =
|
|
1130
|
+
if (!M.value.temperatureColors.show) return null;
|
|
1131
|
+
let e = M.value.temperatureColors.colors;
|
|
1132
1132
|
return !Array.isArray(e) || !e.length ? null : e.map((e) => l(e));
|
|
1133
1133
|
});
|
|
1134
|
-
function
|
|
1134
|
+
function Nn(e) {
|
|
1135
1135
|
if (!Number.isFinite(e?.y)) return 0;
|
|
1136
|
-
let t =
|
|
1136
|
+
let t = J.value.height || 1, n = (e.y - J.value.top) / t;
|
|
1137
1137
|
return Math.min(1, Math.max(0, n));
|
|
1138
1138
|
}
|
|
1139
|
-
function
|
|
1140
|
-
let t =
|
|
1139
|
+
function Pn(e) {
|
|
1140
|
+
let t = Mn.value;
|
|
1141
1141
|
return !Array.isArray(t) || !t.length ? e.color : u({
|
|
1142
1142
|
colors: t,
|
|
1143
|
-
ratio:
|
|
1143
|
+
ratio: Nn(e)
|
|
1144
1144
|
});
|
|
1145
1145
|
}
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1146
|
+
D(() => [
|
|
1147
|
+
U.value,
|
|
1148
|
+
qt.value,
|
|
1149
|
+
Y.value.length,
|
|
1150
|
+
q.value.width,
|
|
1151
|
+
q.value.height,
|
|
1152
|
+
M.value?.style?.line?.smooth
|
|
1153
1153
|
], async () => {
|
|
1154
|
-
await x(),
|
|
1154
|
+
await x(), ut();
|
|
1155
1155
|
}, { immediate: !0 }), Fe(async () => {
|
|
1156
|
-
await x(),
|
|
1157
|
-
}),
|
|
1158
|
-
e || await
|
|
1159
|
-
}),
|
|
1160
|
-
e ||
|
|
1161
|
-
}),
|
|
1156
|
+
await x(), ut();
|
|
1157
|
+
}), D(() => B.value, async (e) => {
|
|
1158
|
+
e || await Yt();
|
|
1159
|
+
}), D(() => ht.value, async (e) => {
|
|
1160
|
+
e || B.value || await Yt();
|
|
1161
|
+
}), D(() => O.selectedIndex, (e) => {
|
|
1162
1162
|
if (e == null) {
|
|
1163
|
-
|
|
1163
|
+
j.value = null, A.value = null, X.value = void 0;
|
|
1164
1164
|
return;
|
|
1165
1165
|
}
|
|
1166
|
-
if (e < 0 || e >=
|
|
1167
|
-
let t =
|
|
1168
|
-
t && (
|
|
1166
|
+
if (e < 0 || e >= Y.value.length) return;
|
|
1167
|
+
let t = Y.value[e];
|
|
1168
|
+
t && (j.value = e, A.value = e, X.value = t);
|
|
1169
1169
|
});
|
|
1170
|
-
let
|
|
1171
|
-
function
|
|
1172
|
-
let e =
|
|
1173
|
-
if (e !== null && e >= 0 && e <
|
|
1174
|
-
let t =
|
|
1170
|
+
let Fn = w(!1);
|
|
1171
|
+
function In() {
|
|
1172
|
+
let e = ln.value;
|
|
1173
|
+
if (e !== null && e >= 0 && e < Y.value.length) {
|
|
1174
|
+
let t = Y.value[e];
|
|
1175
1175
|
if (t) {
|
|
1176
|
-
|
|
1176
|
+
A.value = e, X.value = t, j.value = e, Fn.value = !0;
|
|
1177
1177
|
return;
|
|
1178
1178
|
}
|
|
1179
1179
|
}
|
|
1180
|
-
|
|
1180
|
+
A.value = null, !X.value && Y.value.length && dn(Y.value.at(-1), Y.value.length - 1), Fn.value = !0;
|
|
1181
1181
|
}
|
|
1182
|
-
function
|
|
1183
|
-
|
|
1182
|
+
function Ln() {
|
|
1183
|
+
un.value = X.value, (O.selectedIndex === void 0 || O.selectedIndex === null) && (A.value = null, X.value = void 0, j.value = null, Qt("hoverIndex", { index: void 0 })), Fn.value = !1;
|
|
1184
1184
|
}
|
|
1185
|
-
function
|
|
1186
|
-
if (!
|
|
1187
|
-
|
|
1185
|
+
function Rn(e) {
|
|
1186
|
+
if (!V.value || document.activeElement !== V.value) return;
|
|
1187
|
+
un.value = X.value;
|
|
1188
1188
|
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight";
|
|
1189
1189
|
if (!t && !n) return;
|
|
1190
|
-
let r =
|
|
1190
|
+
let r = Y.value.length;
|
|
1191
1191
|
if (!r) return;
|
|
1192
1192
|
e.preventDefault(), e.stopPropagation();
|
|
1193
|
-
let i =
|
|
1193
|
+
let i = A.value, a = i !== null && i >= 0 && i < r, o = X.value ? Y.value.findIndex((e) => e.id === X.value.id) : -1;
|
|
1194
1194
|
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;
|
|
1195
|
-
let s =
|
|
1196
|
-
s && (
|
|
1195
|
+
let s = Y.value[i];
|
|
1196
|
+
s && (A.value = i, dn(s, i));
|
|
1197
1197
|
}
|
|
1198
|
-
let
|
|
1199
|
-
headers: [
|
|
1200
|
-
rows:
|
|
1198
|
+
let zn = _(() => ({
|
|
1199
|
+
headers: [M.value.translations.period, M.value.translations.value],
|
|
1200
|
+
rows: Y.value.map((e) => [e.period, e.absoluteValue])
|
|
1201
1201
|
}));
|
|
1202
1202
|
return (t, n) => (C(), y("div", {
|
|
1203
1203
|
ref_key: "sparklineChart",
|
|
1204
|
-
ref:
|
|
1204
|
+
ref: Xe,
|
|
1205
1205
|
class: "vue-data-ui-component vue-ui-sparkline",
|
|
1206
|
-
id:
|
|
1207
|
-
style: S(`width:100%;font-family:${
|
|
1206
|
+
id: k.value,
|
|
1207
|
+
style: S(`width:100%;font-family:${L.value.fontFamily};`)
|
|
1208
1208
|
}, [
|
|
1209
1209
|
b("p", {
|
|
1210
|
-
id: `chart-instructions-${
|
|
1210
|
+
id: `chart-instructions-${k.value}`,
|
|
1211
1211
|
class: "sr-only"
|
|
1212
|
-
},
|
|
1213
|
-
|
|
1212
|
+
}, Re(M.value.a11y.translations.keyboardNavigation), 9, yt),
|
|
1213
|
+
zn.value?.rows?.length ? (C(), Oe(we, {
|
|
1214
1214
|
key: 0,
|
|
1215
|
-
uid:
|
|
1216
|
-
head:
|
|
1217
|
-
body:
|
|
1218
|
-
notice:
|
|
1219
|
-
caption:
|
|
1215
|
+
uid: k.value,
|
|
1216
|
+
head: zn.value.headers,
|
|
1217
|
+
body: zn.value.rows,
|
|
1218
|
+
notice: M.value.a11y.translations.tableAvailable,
|
|
1219
|
+
caption: M.value.a11y.translations.tableCaption
|
|
1220
1220
|
}, null, 8, [
|
|
1221
1221
|
"uid",
|
|
1222
1222
|
"head",
|
|
@@ -1224,43 +1224,43 @@ var _t = ["innerHTML"], vt = {
|
|
|
1224
1224
|
"notice",
|
|
1225
1225
|
"caption"
|
|
1226
1226
|
])) : v("", !0),
|
|
1227
|
-
|
|
1228
|
-
selected:
|
|
1227
|
+
Ie(t.$slots, "before", Ne(Me({
|
|
1228
|
+
selected: X.value,
|
|
1229
1229
|
latest: Z.value.latest,
|
|
1230
1230
|
sum: Z.value.sum,
|
|
1231
1231
|
average: Z.value.average,
|
|
1232
1232
|
median: Z.value.median,
|
|
1233
1233
|
trend: Z.value.trend
|
|
1234
1234
|
})), void 0, !0),
|
|
1235
|
-
|
|
1235
|
+
L.value.title.show && e.showInfo ? (C(), y("div", {
|
|
1236
1236
|
key: 1,
|
|
1237
1237
|
ref_key: "chartTitle",
|
|
1238
|
-
ref:
|
|
1238
|
+
ref: Ze,
|
|
1239
1239
|
class: "vue-ui-sparkline-title",
|
|
1240
|
-
style: S(`display:flex;align-items:center;width:100%;color:${
|
|
1241
|
-
}, [b("span", { style: S(`padding:${
|
|
1242
|
-
b("div",
|
|
1240
|
+
style: S(`display:flex;align-items:center;width:100%;color:${L.value.title.color};background:${L.value.backgroundColor};justify-content:${L.value.title.textAlign === "left" ? "flex-start" : L.value.title.textAlign === "right" ? "flex-end" : "center"};height:${L.value.title.fontSize * 2}px;font-size:${L.value.title.fontSize}px;font-weight:${L.value.title.bold ? "bold" : "normal"};`)
|
|
1241
|
+
}, [b("span", { style: S(`padding:${L.value.title.textAlign === "left" ? "0 0 0 12px" : L.value.title.textAlign === "right" ? "0 12px 0 0" : "0"}`) }, Re(X.value ? X.value.period : L.value.title.text), 5)], 4)) : v("", !0),
|
|
1242
|
+
b("div", bt, [(C(), y("svg", {
|
|
1243
1243
|
ref_key: "svgRef",
|
|
1244
|
-
ref:
|
|
1245
|
-
xmlns:
|
|
1246
|
-
viewBox: `0 0 ${
|
|
1247
|
-
style: S(`background:${
|
|
1244
|
+
ref: V,
|
|
1245
|
+
xmlns: E(fe),
|
|
1246
|
+
viewBox: `0 0 ${q.value.width} ${q.value.height}`,
|
|
1247
|
+
style: S(`background:${L.value.backgroundColor};overflow:visible;direction:ltr`),
|
|
1248
1248
|
tabindex: "0",
|
|
1249
|
-
"aria-describedby": `chart-instructions-${
|
|
1250
|
-
onMouseleave: n[0] ||= (e) =>
|
|
1251
|
-
onFocus:
|
|
1252
|
-
onBlur:
|
|
1253
|
-
onKeydown:
|
|
1249
|
+
"aria-describedby": `chart-instructions-${k.value}`,
|
|
1250
|
+
onMouseleave: n[0] ||= (e) => un.value = void 0,
|
|
1251
|
+
onFocus: In,
|
|
1252
|
+
onBlur: Ln,
|
|
1253
|
+
onKeydown: Rn
|
|
1254
1254
|
}, [
|
|
1255
|
-
Ae(
|
|
1255
|
+
Ae(E(He)),
|
|
1256
1256
|
t.$slots["chart-background"] ? (C(), y("foreignObject", {
|
|
1257
1257
|
key: 0,
|
|
1258
1258
|
x: 0,
|
|
1259
1259
|
y: 0,
|
|
1260
|
-
width:
|
|
1261
|
-
height:
|
|
1260
|
+
width: q.value.width <= 0 ? 10 : q.value.width,
|
|
1261
|
+
height: q.value.height <= 0 ? 10 : q.value.height,
|
|
1262
1262
|
style: { pointerEvents: "none" }
|
|
1263
|
-
}, [
|
|
1263
|
+
}, [Ie(t.$slots, "chart-background", {}, void 0, !0)], 8, St)) : v("", !0),
|
|
1264
1264
|
b("defs", null, [
|
|
1265
1265
|
Ae(Ce, {
|
|
1266
1266
|
t: "linear",
|
|
@@ -1268,14 +1268,14 @@ var _t = ["innerHTML"], vt = {
|
|
|
1268
1268
|
y1: "0%",
|
|
1269
1269
|
x2: "100%",
|
|
1270
1270
|
y2: "0%",
|
|
1271
|
-
id: `sparkline_gradient_${
|
|
1271
|
+
id: `sparkline_gradient_${k.value}`,
|
|
1272
1272
|
stops: [[
|
|
1273
1273
|
"0%",
|
|
1274
|
-
|
|
1274
|
+
E(f)(E(m)(F.value.color, .05), F.value.opacity),
|
|
1275
1275
|
1
|
|
1276
1276
|
], [
|
|
1277
1277
|
"100%",
|
|
1278
|
-
|
|
1278
|
+
E(f)(F.value.color, F.value.opacity),
|
|
1279
1279
|
1
|
|
1280
1280
|
]]
|
|
1281
1281
|
}, null, 8, ["id", "stops"]),
|
|
@@ -1283,14 +1283,14 @@ var _t = ["innerHTML"], vt = {
|
|
|
1283
1283
|
t: "linear",
|
|
1284
1284
|
x2: "0%",
|
|
1285
1285
|
y2: "100%",
|
|
1286
|
-
id: `sparkline_bar_gradient_pos_${
|
|
1286
|
+
id: `sparkline_bar_gradient_pos_${k.value}`,
|
|
1287
1287
|
stops: [[
|
|
1288
1288
|
"0%",
|
|
1289
|
-
|
|
1289
|
+
$e.value.color,
|
|
1290
1290
|
1
|
|
1291
1291
|
], [
|
|
1292
1292
|
"100%",
|
|
1293
|
-
|
|
1293
|
+
E(m)($e.value.color, .05),
|
|
1294
1294
|
1
|
|
1295
1295
|
]]
|
|
1296
1296
|
}, null, 8, ["id", "stops"]),
|
|
@@ -1298,19 +1298,19 @@ var _t = ["innerHTML"], vt = {
|
|
|
1298
1298
|
t: "linear",
|
|
1299
1299
|
x2: "0%",
|
|
1300
1300
|
y2: "100%",
|
|
1301
|
-
id: `sparkline_bar_gradient_neg_${
|
|
1301
|
+
id: `sparkline_bar_gradient_neg_${k.value}`,
|
|
1302
1302
|
stops: [[
|
|
1303
1303
|
"0%",
|
|
1304
|
-
|
|
1304
|
+
E(m)($e.value.color, .05),
|
|
1305
1305
|
1
|
|
1306
1306
|
], [
|
|
1307
1307
|
"100%",
|
|
1308
|
-
|
|
1308
|
+
$e.value.color,
|
|
1309
1309
|
1
|
|
1310
1310
|
]]
|
|
1311
1311
|
}, null, 8, ["id", "stops"]),
|
|
1312
1312
|
b("filter", {
|
|
1313
|
-
id: `sparkline_pulse_glow_${
|
|
1313
|
+
id: `sparkline_pulse_glow_${k.value}`,
|
|
1314
1314
|
filterUnits: "userSpaceOnUse",
|
|
1315
1315
|
x: "-50",
|
|
1316
1316
|
y: "-50",
|
|
@@ -1320,99 +1320,99 @@ var _t = ["innerHTML"], vt = {
|
|
|
1320
1320
|
in: "SourceGraphic",
|
|
1321
1321
|
stdDeviation: "3",
|
|
1322
1322
|
result: "blur"
|
|
1323
|
-
}, null, -1), b("feMerge", null, [b("feMergeNode", { in: "blur" }), b("feMergeNode", { in: "SourceGraphic" })], -1)]], 8,
|
|
1324
|
-
|
|
1323
|
+
}, null, -1), b("feMerge", null, [b("feMergeNode", { in: "blur" }), b("feMergeNode", { in: "SourceGraphic" })], -1)]], 8, Ct),
|
|
1324
|
+
M.value.temperatureColors.show && $.value ? (C(), y("linearGradient", {
|
|
1325
1325
|
key: 0,
|
|
1326
|
-
id: `temperature_grad_sparkline_${
|
|
1326
|
+
id: `temperature_grad_sparkline_${k.value}`,
|
|
1327
1327
|
gradientUnits: "userSpaceOnUse",
|
|
1328
1328
|
x1: "0",
|
|
1329
1329
|
x2: "0",
|
|
1330
|
-
y1:
|
|
1331
|
-
y2:
|
|
1330
|
+
y1: J.value.top,
|
|
1331
|
+
y2: J.value.bottom
|
|
1332
1332
|
}, [(C(!0), y(g, null, T($.value, (e, t) => (C(), y("stop", {
|
|
1333
|
-
key: `temperature_grad_stop_${t}_${
|
|
1333
|
+
key: `temperature_grad_stop_${t}_${k.value}`,
|
|
1334
1334
|
"stop-color": e,
|
|
1335
|
-
offset: $.value.length === 1 ? "0%" :
|
|
1336
|
-
}, null, 8,
|
|
1335
|
+
offset: $.value.length === 1 ? "0%" : E(r)(t, $.value.length)
|
|
1336
|
+
}, null, 8, Tt))), 128))], 8, wt)) : v("", !0)
|
|
1337
1337
|
]),
|
|
1338
|
-
|
|
1339
|
-
key: `sparkline_area_${t}_${
|
|
1338
|
+
F.value.show && !Q.value && An.value.length ? (C(), y("g", Et, [(C(!0), y(g, null, T(An.value, (e, t) => (C(), y("path", {
|
|
1339
|
+
key: `sparkline_area_${t}_${k.value}`,
|
|
1340
1340
|
class: "vue-ui-sparkline-area",
|
|
1341
|
-
"data-cy": P.value.
|
|
1341
|
+
"data-cy": P.value.smooth ? "sparkline-smooth-area" : "sparkline-angle-area",
|
|
1342
1342
|
d: e,
|
|
1343
|
-
fill:
|
|
1343
|
+
fill: F.value.useGradient ? `url(#sparkline_gradient_${k.value})` : E(f)(F.value.color, F.value.opacity),
|
|
1344
1344
|
"stroke-linecap": "round",
|
|
1345
1345
|
"stroke-linejoin": "round",
|
|
1346
|
-
style: S({ transition:
|
|
1347
|
-
}, null, 12,
|
|
1348
|
-
P.value.
|
|
1349
|
-
id:
|
|
1350
|
-
d: `M ${
|
|
1346
|
+
style: S({ transition: E(B) ? void 0 : "all 0.2s" })
|
|
1347
|
+
}, null, 12, Dt))), 128))])) : v("", !0),
|
|
1348
|
+
P.value.smooth && !Q.value ? (C(), y(g, { key: 2 }, [b("path", {
|
|
1349
|
+
id: qt.value,
|
|
1350
|
+
d: `M ${En.value || "0,0"}`,
|
|
1351
1351
|
fill: "none",
|
|
1352
1352
|
stroke: "transparent",
|
|
1353
|
-
"stroke-width": P.value.
|
|
1353
|
+
"stroke-width": P.value.strokeWidth,
|
|
1354
1354
|
"stroke-linecap": "round",
|
|
1355
1355
|
"stroke-linejoin": "round"
|
|
1356
|
-
}, null, 8,
|
|
1356
|
+
}, null, 8, Ot), hn.value ? (C(!0), y(g, { key: 0 }, T(On.value, (e) => (C(), y("path", {
|
|
1357
1357
|
key: e.path,
|
|
1358
1358
|
class: "vue-ui-sparkline-path",
|
|
1359
1359
|
d: `M ${e.path}`,
|
|
1360
|
-
stroke: $.value ? `url(#temperature_grad_sparkline_${
|
|
1360
|
+
stroke: $.value ? `url(#temperature_grad_sparkline_${k.value})` : P.value.color,
|
|
1361
1361
|
fill: "none",
|
|
1362
|
-
"stroke-width": P.value.
|
|
1362
|
+
"stroke-width": P.value.strokeWidth,
|
|
1363
1363
|
"stroke-linecap": "round",
|
|
1364
1364
|
"stroke-linejoin": "round",
|
|
1365
|
-
"stroke-dasharray": e.dashed ? P.value.
|
|
1366
|
-
style: S({ transition:
|
|
1367
|
-
}, null, 12,
|
|
1365
|
+
"stroke-dasharray": e.dashed ? P.value.dashArray : 0,
|
|
1366
|
+
style: S({ transition: E(B) ? void 0 : "all 0.2s" })
|
|
1367
|
+
}, null, 12, kt))), 128)) : (C(), y("path", {
|
|
1368
1368
|
key: 1,
|
|
1369
1369
|
class: "vue-ui-sparkline-path",
|
|
1370
|
-
d: `M ${
|
|
1371
|
-
stroke: $.value ? `url(#temperature_grad_sparkline_${
|
|
1370
|
+
d: `M ${En.value || "0,0"}`,
|
|
1371
|
+
stroke: $.value ? `url(#temperature_grad_sparkline_${k.value})` : P.value.color,
|
|
1372
1372
|
fill: "none",
|
|
1373
|
-
"stroke-width": P.value.
|
|
1373
|
+
"stroke-width": P.value.strokeWidth,
|
|
1374
1374
|
"stroke-linecap": "round",
|
|
1375
1375
|
"stroke-linejoin": "round",
|
|
1376
|
-
style: S({ transition:
|
|
1377
|
-
}, null, 12,
|
|
1378
|
-
!P.value.
|
|
1379
|
-
id:
|
|
1380
|
-
d: `M ${
|
|
1376
|
+
style: S({ transition: E(B) ? void 0 : "all 0.2s" })
|
|
1377
|
+
}, null, 12, At))], 64)) : v("", !0),
|
|
1378
|
+
!P.value.smooth && !Q.value ? (C(), y(g, { key: 3 }, [b("path", {
|
|
1379
|
+
id: qt.value,
|
|
1380
|
+
d: `M ${Dn.value || "0,0"}`,
|
|
1381
1381
|
fill: "none",
|
|
1382
1382
|
stroke: "transparent",
|
|
1383
|
-
"stroke-width": P.value.
|
|
1383
|
+
"stroke-width": P.value.strokeWidth,
|
|
1384
1384
|
"stroke-linecap": "round",
|
|
1385
1385
|
"stroke-linejoin": "round"
|
|
1386
|
-
}, null, 8,
|
|
1386
|
+
}, null, 8, jt), hn.value ? (C(!0), y(g, { key: 0 }, T(kn.value, (e) => (C(), y("path", {
|
|
1387
1387
|
key: e.path,
|
|
1388
1388
|
class: "vue-ui-sparkline-path",
|
|
1389
1389
|
d: `M ${e.path}`,
|
|
1390
|
-
stroke: $.value ? `url(#temperature_grad_sparkline_${
|
|
1390
|
+
stroke: $.value ? `url(#temperature_grad_sparkline_${k.value})` : P.value.color,
|
|
1391
1391
|
fill: "none",
|
|
1392
|
-
"stroke-width": P.value.
|
|
1392
|
+
"stroke-width": P.value.strokeWidth,
|
|
1393
1393
|
"stroke-linecap": "round",
|
|
1394
1394
|
"stroke-linejoin": "round",
|
|
1395
|
-
"stroke-dasharray": e.dashed ? P.value.
|
|
1396
|
-
style: S({ transition:
|
|
1397
|
-
}, null, 12,
|
|
1395
|
+
"stroke-dasharray": e.dashed ? P.value.dashArray * 2 : 0,
|
|
1396
|
+
style: S({ transition: E(B) ? void 0 : "all 0.2s" })
|
|
1397
|
+
}, null, 12, Mt))), 128)) : (C(), y("path", {
|
|
1398
1398
|
key: 1,
|
|
1399
1399
|
class: "vue-ui-sparkline-path",
|
|
1400
|
-
d: `M ${
|
|
1401
|
-
stroke: $.value ? `url(#temperature_grad_sparkline_${
|
|
1400
|
+
d: `M ${Dn.value || "0,0"}`,
|
|
1401
|
+
stroke: $.value ? `url(#temperature_grad_sparkline_${k.value})` : P.value.color,
|
|
1402
1402
|
fill: "none",
|
|
1403
|
-
"stroke-width": P.value.
|
|
1403
|
+
"stroke-width": P.value.strokeWidth,
|
|
1404
1404
|
"stroke-linecap": "round",
|
|
1405
1405
|
"stroke-linejoin": "round",
|
|
1406
|
-
style: S({ transition:
|
|
1407
|
-
}, null, 12,
|
|
1408
|
-
|
|
1406
|
+
style: S({ transition: E(B) ? void 0 : "all 0.2s" })
|
|
1407
|
+
}, null, 12, Nt))], 64)) : v("", !0),
|
|
1408
|
+
jn.value && !$.value ? (C(), Oe(gt, {
|
|
1409
1409
|
key: 4,
|
|
1410
|
-
svgPathData:
|
|
1411
|
-
enabled:
|
|
1412
|
-
strokeWidth: P.value.
|
|
1413
|
-
highColor:
|
|
1414
|
-
lowColor:
|
|
1415
|
-
segments:
|
|
1410
|
+
svgPathData: jn.value,
|
|
1411
|
+
enabled: M.value.gradientPath.show && !Q.value && !$.value,
|
|
1412
|
+
strokeWidth: P.value.strokeWidth,
|
|
1413
|
+
highColor: M.value.gradientPath.colors.high,
|
|
1414
|
+
lowColor: M.value.gradientPath.colors.low,
|
|
1415
|
+
segments: M.value.gradientPath.segments
|
|
1416
1416
|
}, null, 8, [
|
|
1417
1417
|
"svgPathData",
|
|
1418
1418
|
"enabled",
|
|
@@ -1421,23 +1421,23 @@ var _t = ["innerHTML"], vt = {
|
|
|
1421
1421
|
"lowColor",
|
|
1422
1422
|
"segments"
|
|
1423
1423
|
])) : v("", !0),
|
|
1424
|
-
|
|
1424
|
+
Jt.value && U.value ? (C(), Oe(Ye, {
|
|
1425
1425
|
key: 5,
|
|
1426
|
-
uid:
|
|
1427
|
-
svgRef:
|
|
1428
|
-
pulsePathId:
|
|
1429
|
-
pulsePathLength:
|
|
1430
|
-
pulseDur:
|
|
1431
|
-
pulseBegin:
|
|
1432
|
-
pulseRepeatCount:
|
|
1433
|
-
pulseFillMode:
|
|
1434
|
-
pulseKeyPoints:
|
|
1435
|
-
pulseMotion:
|
|
1436
|
-
pulse:
|
|
1437
|
-
pulseTrail:
|
|
1438
|
-
pulseTrailLength:
|
|
1439
|
-
prefersReducedMotion:
|
|
1440
|
-
loading:
|
|
1426
|
+
uid: k.value,
|
|
1427
|
+
svgRef: E(V),
|
|
1428
|
+
pulsePathId: qt.value,
|
|
1429
|
+
pulsePathLength: it.value,
|
|
1430
|
+
pulseDur: rt.value,
|
|
1431
|
+
pulseBegin: at.value,
|
|
1432
|
+
pulseRepeatCount: st.value,
|
|
1433
|
+
pulseFillMode: ct.value,
|
|
1434
|
+
pulseKeyPoints: ot.value,
|
|
1435
|
+
pulseMotion: dt.value,
|
|
1436
|
+
pulse: H.value,
|
|
1437
|
+
pulseTrail: ft.value,
|
|
1438
|
+
pulseTrailLength: lt.value,
|
|
1439
|
+
prefersReducedMotion: E(qe),
|
|
1440
|
+
loading: E(B),
|
|
1441
1441
|
isBar: Q.value
|
|
1442
1442
|
}, null, 8, [
|
|
1443
1443
|
"uid",
|
|
@@ -1457,106 +1457,106 @@ var _t = ["innerHTML"], vt = {
|
|
|
1457
1457
|
"loading",
|
|
1458
1458
|
"isBar"
|
|
1459
1459
|
])) : v("", !0),
|
|
1460
|
-
(C(!0), y(g, null, T(
|
|
1460
|
+
(C(!0), y(g, null, T(Y.value, (e, t) => (C(), y("g", null, [Q.value ? (C(), y("rect", {
|
|
1461
1461
|
key: 0,
|
|
1462
1462
|
x: e.x - e.width / 2,
|
|
1463
|
-
y: isNaN(e.absoluteValue > 0 ? e.y :
|
|
1463
|
+
y: isNaN(e.absoluteValue > 0 ? e.y : rn.value) ? 0 : e.absoluteValue > 0 ? e.y : rn.value,
|
|
1464
1464
|
width: e.width,
|
|
1465
|
-
height: isNaN(Math.abs(e.y -
|
|
1466
|
-
fill: e.absoluteValue > 0 ? `url(#sparkline_bar_gradient_pos_${
|
|
1467
|
-
rx:
|
|
1468
|
-
}, null, 8,
|
|
1465
|
+
height: isNaN(Math.abs(e.y - rn.value)) ? 0 : Math.abs(e.y - rn.value),
|
|
1466
|
+
fill: e.absoluteValue > 0 ? `url(#sparkline_bar_gradient_pos_${k.value})` : `url(#sparkline_bar_gradient_neg_${k.value})`,
|
|
1467
|
+
rx: $e.value.borderRadius
|
|
1468
|
+
}, null, 8, Pt)) : v("", !0), L.value.verticalIndicator.show && (X.value && e.id === X.value.id || ln.value === t) ? (C(), y("line", {
|
|
1469
1469
|
key: 1,
|
|
1470
1470
|
x1: e.x,
|
|
1471
1471
|
x2: e.x,
|
|
1472
|
-
y1:
|
|
1473
|
-
y2:
|
|
1474
|
-
stroke:
|
|
1475
|
-
"stroke-width":
|
|
1472
|
+
y1: J.value.top - 6,
|
|
1473
|
+
y2: J.value.bottom,
|
|
1474
|
+
stroke: L.value.verticalIndicator.color || e.color,
|
|
1475
|
+
"stroke-width": L.value.verticalIndicator.strokeWidth,
|
|
1476
1476
|
"stroke-linecap": "round",
|
|
1477
|
-
"stroke-dasharray":
|
|
1478
|
-
}, null, 8,
|
|
1479
|
-
|
|
1477
|
+
"stroke-dasharray": L.value.verticalIndicator.strokeDasharray || 0
|
|
1478
|
+
}, null, 8, Ft)) : v("", !0)]))), 256)),
|
|
1479
|
+
$t.value < 0 ? (C(), y("line", {
|
|
1480
1480
|
key: 6,
|
|
1481
|
-
x1:
|
|
1482
|
-
x2:
|
|
1483
|
-
y1:
|
|
1484
|
-
y2:
|
|
1485
|
-
stroke:
|
|
1486
|
-
"stroke-dasharray":
|
|
1487
|
-
"stroke-width":
|
|
1481
|
+
x1: J.value.start,
|
|
1482
|
+
x2: J.value.start + J.value.width,
|
|
1483
|
+
y1: E(de)(rn.value, J.value.bottom),
|
|
1484
|
+
y2: E(de)(rn.value, J.value.bottom),
|
|
1485
|
+
stroke: L.value.zeroLine.color,
|
|
1486
|
+
"stroke-dasharray": L.value.zeroLine.strokeWidth * 2,
|
|
1487
|
+
"stroke-width": L.value.zeroLine.strokeWidth,
|
|
1488
1488
|
"stroke-linecap": "round"
|
|
1489
|
-
}, null, 8,
|
|
1490
|
-
(C(!0), y(g, null, T(
|
|
1489
|
+
}, null, 8, It)) : v("", !0),
|
|
1490
|
+
(C(!0), y(g, null, T(Y.value, (e, t) => (C(), y("g", { key: `sparkline_plot_${e.id}` }, [bn(e, t) ? (C(), y("circle", {
|
|
1491
1491
|
key: 0,
|
|
1492
1492
|
cx: e.x,
|
|
1493
1493
|
cy: e.y,
|
|
1494
|
-
r:
|
|
1495
|
-
fill:
|
|
1496
|
-
stroke:
|
|
1497
|
-
"stroke-width":
|
|
1498
|
-
}, null, 8,
|
|
1499
|
-
e.showInfo &&
|
|
1494
|
+
r: xn(e, t),
|
|
1495
|
+
fill: Pn(e),
|
|
1496
|
+
stroke: Sn(e, t),
|
|
1497
|
+
"stroke-width": L.value.plot.strokeWidth
|
|
1498
|
+
}, null, 8, Lt)) : v("", !0)]))), 128)),
|
|
1499
|
+
e.showInfo && I.value.show ? (C(), y("text", {
|
|
1500
1500
|
key: 7,
|
|
1501
|
-
x:
|
|
1502
|
-
y:
|
|
1503
|
-
"font-size":
|
|
1504
|
-
"font-weight":
|
|
1505
|
-
fill:
|
|
1506
|
-
},
|
|
1507
|
-
p:
|
|
1508
|
-
v:
|
|
1509
|
-
s:
|
|
1510
|
-
r:
|
|
1511
|
-
}), { datapoint:
|
|
1512
|
-
p:
|
|
1513
|
-
v:
|
|
1514
|
-
s:
|
|
1515
|
-
r:
|
|
1516
|
-
}))), 9,
|
|
1517
|
-
(C(!0), y(g, null, T(
|
|
1518
|
-
x: e.x - (
|
|
1519
|
-
y:
|
|
1520
|
-
height:
|
|
1521
|
-
width:
|
|
1501
|
+
x: I.value.position === "left" ? 12 + I.value.offsetX : J.value.width + 12 + I.value.offsetX,
|
|
1502
|
+
y: q.value.height / 2 + I.value.fontSize / 2.5 + I.value.offsetY,
|
|
1503
|
+
"font-size": I.value.fontSize,
|
|
1504
|
+
"font-weight": I.value.bold ? "bold" : "normal",
|
|
1505
|
+
fill: I.value.color
|
|
1506
|
+
}, Re(X.value ? E(ae)(I.value.formatter, X.value.absoluteValue, E(ee)({
|
|
1507
|
+
p: I.value.prefix,
|
|
1508
|
+
v: X.value.absoluteValue,
|
|
1509
|
+
s: I.value.suffix,
|
|
1510
|
+
r: I.value.roundingValue
|
|
1511
|
+
}), { datapoint: X.value }) : E(ae)(I.value.formatter, pn.value, E(ee)({
|
|
1512
|
+
p: I.value.prefix,
|
|
1513
|
+
v: pn.value,
|
|
1514
|
+
s: I.value.suffix,
|
|
1515
|
+
r: I.value.roundingValue
|
|
1516
|
+
}))), 9, Rt)) : v("", !0),
|
|
1517
|
+
(C(!0), y(g, null, T(Y.value, (e, t) => (C(), y("rect", {
|
|
1518
|
+
x: e.x - (J.value.width / (on.value + 1) > q.value.padding ? q.value.padding : J.value.width / (on.value + 1)) / 2,
|
|
1519
|
+
y: J.value.top - 6,
|
|
1520
|
+
height: J.value.height + 6,
|
|
1521
|
+
width: J.value.width / (on.value + 1) > q.value.padding ? q.value.padding : J.value.width / (on.value + 1),
|
|
1522
1522
|
fill: "transparent",
|
|
1523
|
-
onMouseenter: () =>
|
|
1524
|
-
onMouseleave: () =>
|
|
1525
|
-
onClick: () =>
|
|
1526
|
-
}, null, 40,
|
|
1527
|
-
|
|
1528
|
-
...
|
|
1529
|
-
drawingArea:
|
|
1530
|
-
timeLabels:
|
|
1531
|
-
series:
|
|
1532
|
-
hoveredIndex:
|
|
1523
|
+
onMouseenter: () => dn(e, t),
|
|
1524
|
+
onMouseleave: () => fn(e, t),
|
|
1525
|
+
onClick: () => mn(e, t)
|
|
1526
|
+
}, null, 40, zt))), 256)),
|
|
1527
|
+
Ie(t.$slots, "svg", { svg: {
|
|
1528
|
+
...q.value,
|
|
1529
|
+
drawingArea: J.value,
|
|
1530
|
+
timeLabels: sn.value,
|
|
1531
|
+
series: Y.value,
|
|
1532
|
+
hoveredIndex: A.value
|
|
1533
1533
|
} }, void 0, !0)
|
|
1534
|
-
], 44,
|
|
1535
|
-
hint:
|
|
1536
|
-
isVisible:
|
|
1534
|
+
], 44, xt)), t.$slots.hint ? (C(), y("div", Bt, [Ie(t.$slots, "hint", Ne(Me({
|
|
1535
|
+
hint: M.value.a11y.translations.keyboardNavigation,
|
|
1536
|
+
isVisible: Fn.value
|
|
1537
1537
|
})), void 0, !0)])) : v("", !0)]),
|
|
1538
|
-
|
|
1538
|
+
X.value && N.value.show ? (C(), Oe(E(Ue), {
|
|
1539
1539
|
key: 2,
|
|
1540
|
-
x:
|
|
1541
|
-
y:
|
|
1542
|
-
prevX:
|
|
1543
|
-
prevY:
|
|
1544
|
-
offsetY:
|
|
1545
|
-
svgRef:
|
|
1546
|
-
background:
|
|
1547
|
-
color:
|
|
1548
|
-
fontSize:
|
|
1549
|
-
borderWidth:
|
|
1550
|
-
borderColor:
|
|
1551
|
-
borderRadius:
|
|
1552
|
-
backgroundOpacity:
|
|
1540
|
+
x: X.value.x,
|
|
1541
|
+
y: X.value.y,
|
|
1542
|
+
prevX: un.value.x,
|
|
1543
|
+
prevY: un.value.y,
|
|
1544
|
+
offsetY: L.value.plot.radius * 3 + N.value.offsetY,
|
|
1545
|
+
svgRef: E(V),
|
|
1546
|
+
background: N.value.backgroundColor,
|
|
1547
|
+
color: N.value.color,
|
|
1548
|
+
fontSize: N.value.fontSize,
|
|
1549
|
+
borderWidth: N.value.borderWidth,
|
|
1550
|
+
borderColor: N.value.borderColor,
|
|
1551
|
+
borderRadius: N.value.borderRadius,
|
|
1552
|
+
backgroundOpacity: N.value.backgroundOpacity
|
|
1553
1553
|
}, {
|
|
1554
|
-
default:
|
|
1555
|
-
p:
|
|
1556
|
-
v:
|
|
1557
|
-
s:
|
|
1558
|
-
r:
|
|
1559
|
-
}), { datapoint:
|
|
1554
|
+
default: Ve(() => [Ie(t.$slots, "tooltip", Ne(Me({ ...X.value })), () => [ke(Re(X.value.period) + ": " + Re(E(ae)(I.value.formatter, X.value.absoluteValue, E(ee)({
|
|
1555
|
+
p: I.value.prefix,
|
|
1556
|
+
v: X.value.absoluteValue,
|
|
1557
|
+
s: I.value.suffix,
|
|
1558
|
+
r: I.value.roundingValue
|
|
1559
|
+
}), { datapoint: X.value })), 1)], !0)]),
|
|
1560
1560
|
_: 3
|
|
1561
1561
|
}, 8, [
|
|
1562
1562
|
"x",
|
|
@@ -1576,12 +1576,12 @@ var _t = ["innerHTML"], vt = {
|
|
|
1576
1576
|
t.$slots.source ? (C(), y("div", {
|
|
1577
1577
|
key: 3,
|
|
1578
1578
|
ref_key: "source",
|
|
1579
|
-
ref:
|
|
1579
|
+
ref: Qe,
|
|
1580
1580
|
dir: "auto"
|
|
1581
|
-
}, [
|
|
1582
|
-
|
|
1583
|
-
], 12,
|
|
1581
|
+
}, [Ie(t.$slots, "source", {}, void 0, !0)], 512)) : v("", !0),
|
|
1582
|
+
Ie(t.$slots, "skeleton", {}, () => [E(B) ? (C(), Oe(_e, { key: 0 })) : v("", !0)], !0)
|
|
1583
|
+
], 12, vt));
|
|
1584
1584
|
}
|
|
1585
|
-
}, [["__scopeId", "data-v-
|
|
1585
|
+
}, [["__scopeId", "data-v-ef970c4d"]]);
|
|
1586
1586
|
//#endregion
|
|
1587
|
-
export {
|
|
1587
|
+
export { _t as n, Vt as t };
|