vue-data-ui 3.22.3 → 3.22.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-Ct8T_Lyp.js → Arrow-CgzmXCW_.js} +1 -1
- package/dist/{BaseDraggableDialog-DLuXvUbs.js → BaseDraggableDialog-DjzNWkiE.js} +2 -2
- package/dist/{BaseIcon-CX_ChMz-.js → BaseIcon-xBuW2jjI.js} +1 -1
- package/dist/{BaseLegendToggle-qL0O9ooF.js → BaseLegendToggle-C4Usj0LI.js} +1 -1
- package/dist/{BaseZoomControls-BI5sLb6d.js → BaseZoomControls-Cg9o2J-q.js} +2 -2
- package/dist/{ColorPicker-CwyWzPx_.js → ColorPicker-Usv7badH.js} +2 -2
- package/dist/{DataTable-KEMekOVu.js → DataTable-PidUPOit.js} +2 -2
- package/dist/Legend-DXOzbXb-.js +156 -0
- package/dist/{NonSvgPenAndPaper-CeNJtWON.js → NonSvgPenAndPaper-OIs8I25K.js} +19 -19
- package/dist/{PackageVersion-D-_GVhxY.js → PackageVersion-Cm-3hwIF.js} +1 -1
- package/dist/{PenAndPaper-DkZYRnrW.js → PenAndPaper-ISUbDKXq.js} +11 -11
- package/dist/{Shape-S-7v8SAE.js → Shape-BnF9aMPX.js} +3 -3
- package/dist/Slicer-hEvKOLw3.js +1145 -0
- package/dist/{SlicerPreview-Co-V9YBf.js → SlicerPreview-BDI-aCXE.js} +36 -35
- package/dist/{SparkTooltip-D2BBjZKc.js → SparkTooltip-DaWSTzfA.js} +1 -1
- package/dist/{Title-Cxgd_JyY.js → Title-DDEEO-Nr.js} +1 -1
- package/dist/{Tooltip-BqdN_ZBE.js → Tooltip-BhKov422.js} +1 -1
- package/dist/{UserOptions-WIxTs7Xf.js → UserOptions-BxT1XHzN.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-DsEPQbU1.js → dom-to-png-ZOysoMwu.js} +1 -1
- package/dist/exposedLib-C2U48XK7.js +19 -0
- package/dist/img-B29J8tV5.js +129 -0
- package/dist/{labelUtils-WDjGa7EP.js → labelUtils-BFcL_t-A.js} +1 -1
- package/dist/{lib-NmjQazSn.js → lib-CuwHGt1j.js} +142 -123
- package/dist/{package-KQdsc0if.js → package-CRlwXCDr.js} +1 -1
- package/dist/{pdf-BVocBz-Y.js → pdf-ymYt9Lee.js} +1 -1
- package/dist/{render-common-BUbY65H0.js → render-common-D6ny-Fwu.js} +22 -22
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +59 -2
- package/dist/types/vue-ui-strip-plot.d.ts +2 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DBv7sw1h.js → useAutoSizeLabelsInsideViewbox-DzAZ-MeY.js} +1 -1
- package/dist/{useConfig-Bf_EBbe3.js → useConfig-pVLia3dt.js} +30 -2
- package/dist/{useNestedProp-C9viY7oU.js → useNestedProp-BjkuFaz1.js} +1 -1
- package/dist/{useObjectBindings-Byts-nf-.js → useObjectBindings-C1XuDxFr.js} +2 -2
- package/dist/{usePrinter-DRYgV-XS.js → usePrinter-C0wAS8yc.js} +3 -3
- package/dist/utils.js +14 -14
- package/dist/{vue-data-ui-CDgunUso.js → vue-data-ui-DTWqd0R2.js} +68 -68
- package/dist/vue-data-ui.js +73 -73
- package/dist/vue-ui-3d-bar-DBpSRV-C.js +1757 -0
- package/dist/{vue-ui-accordion-vYLqcJJd.js → vue-ui-accordion-B64IJyPU.js} +4 -4
- package/dist/{vue-ui-age-pyramid-CCAcpoA2.js → vue-ui-age-pyramid-e09oK-Fp.js} +289 -289
- package/dist/{vue-ui-annotator-CmjcPCRy.js → vue-ui-annotator-CU4CdKMm.js} +69 -69
- package/dist/vue-ui-bullet-tlj5_z_z.js +710 -0
- package/dist/{vue-ui-bump-UWs3Fols.js → vue-ui-bump-BD0Uq3As.js} +259 -259
- package/dist/vue-ui-candlestick-CZxsNGKS.js +1826 -0
- package/dist/{vue-ui-carousel-table-DiPXX1eV.js → vue-ui-carousel-table-ycbcmBKt.js} +122 -122
- package/dist/vue-ui-chestnut-CnEsjvh4.js +2010 -0
- package/dist/{vue-ui-chord-MB6BktFk.js → vue-ui-chord-BZhXsZXp.js} +53 -53
- package/dist/{vue-ui-circle-pack-D4n5rKtA.js → vue-ui-circle-pack-BPC6zUis.js} +46 -46
- package/dist/{vue-ui-cursor-Cu_HGeoy.js → vue-ui-cursor-DF_e5k1s.js} +4 -4
- package/dist/{vue-ui-dag-DQlbTBPB.js → vue-ui-dag-BIo4-Oa8.js} +49 -49
- package/dist/{vue-ui-dashboard-BD-M8q8G.js → vue-ui-dashboard-BEtF6UX2.js} +70 -70
- package/dist/{vue-ui-digits-C21SWRDQ.js → vue-ui-digits-07IxTlNO.js} +4 -4
- package/dist/vue-ui-donut-C4FcvXm3.js +2410 -0
- package/dist/{vue-ui-donut-Djiw7Rz1.js → vue-ui-donut-C5oRCxAO.js} +193 -193
- package/dist/{vue-ui-donut-evolution-BkI06V1N.js → vue-ui-donut-evolution-BSeyPC9k.js} +419 -419
- package/dist/{vue-ui-dumbbell-Yn79Apx7.js → vue-ui-dumbbell-Cykw4WYn.js} +341 -341
- package/dist/{vue-ui-flow-DfWx60DS.js → vue-ui-flow-R_dLE1WS.js} +72 -72
- package/dist/vue-ui-funnel-Ct5xQdak.js +777 -0
- package/dist/vue-ui-galaxy-B5BkdIt5.js +1077 -0
- package/dist/vue-ui-gauge-AbzY-7Gg.js +920 -0
- package/dist/{vue-ui-geo-DdB-gJBh.js → vue-ui-geo-DVT9XEC3.js} +18 -18
- package/dist/{vue-ui-gizmo-AMWvrL1N.js → vue-ui-gizmo-DJTRXao8.js} +62 -62
- package/dist/{vue-ui-heatmap-8cmpKIN5.js → vue-ui-heatmap-BCFId15K.js} +293 -293
- package/dist/vue-ui-history-plot-DCeroetw.js +1700 -0
- package/dist/{vue-ui-horizontal-bar-D32lWjQJ.js → vue-ui-horizontal-bar-j3jszojt.js} +75 -75
- package/dist/{vue-ui-kpi-B3FdCV-T.js → vue-ui-kpi-DJjF6tcf.js} +12 -12
- package/dist/{vue-ui-mini-loader-Bk-5TDbT.js → vue-ui-mini-loader-nOsOsA2V.js} +3 -3
- package/dist/{vue-ui-molecule-B4fNC1Bk.js → vue-ui-molecule-2pfoR63d.js} +213 -213
- package/dist/{vue-ui-mood-radar-_mw9D1wg.js → vue-ui-mood-radar-DP_4LHfZ.js} +40 -40
- package/dist/{vue-ui-nested-donuts-DPhDz07R.js → vue-ui-nested-donuts-DFsLZEqx.js} +255 -255
- package/dist/{vue-ui-onion-Cob0y2FO.js → vue-ui-onion-CzXx3Rme.js} +293 -293
- package/dist/vue-ui-parallel-coordinate-plot-BY6dptUG.js +1416 -0
- package/dist/{vue-ui-quadrant-D6wv44Hs.js → vue-ui-quadrant-Br_iZmcw.js} +57 -57
- package/dist/{vue-ui-quick-chart-EeT-lzAq.js → vue-ui-quick-chart-CnIFPFPv.js} +654 -654
- package/dist/vue-ui-radar-CNwKFbHc.js +1281 -0
- package/dist/{vue-ui-rating-DlMTyra_.js → vue-ui-rating-CRziryE2.js} +22 -22
- package/dist/vue-ui-relation-circle-BVDIikGi.js +924 -0
- package/dist/{vue-ui-ridgeline-VO2-zPGd.js → vue-ui-ridgeline-Kw50zROq.js} +468 -468
- package/dist/vue-ui-rings-BDJyoWvT.js +1246 -0
- package/dist/vue-ui-scatter-DoL5Kh1Y.js +2413 -0
- package/dist/{vue-ui-skeleton-ImkpUdwJ.js → vue-ui-skeleton-BOHwJSdz.js} +22 -22
- package/dist/{vue-ui-smiley-Ct3ijoOw.js → vue-ui-smiley-BTvDy8Fm.js} +5 -5
- package/dist/{vue-ui-spark-trend-_b2gVafQ.js → vue-ui-spark-trend-OgSFIFh0.js} +24 -24
- package/dist/{vue-ui-sparkbar-CRH8b1fM.js → vue-ui-sparkbar-D8FdqMB_.js} +35 -35
- package/dist/{vue-ui-sparkgauge-Z_lgEp7i.js → vue-ui-sparkgauge-CBpPbVkw.js} +56 -56
- package/dist/vue-ui-sparkhistogram-BQjbLa2k.js +560 -0
- package/dist/{vue-ui-sparkline-B-QS62r4.js → vue-ui-sparkline-BJfh5Lje.js} +200 -200
- package/dist/{vue-ui-sparkstackbar-DICmDZrB.js → vue-ui-sparkstackbar-1WUQrqd7.js} +126 -126
- package/dist/{vue-ui-stackbar-BRqqDp3a.js → vue-ui-stackbar-Dqs7_g8D.js} +147 -147
- package/dist/{vue-ui-stackline-DVY_4Fmh.js → vue-ui-stackline-IRjugedp.js} +417 -417
- package/dist/vue-ui-strip-plot-B7D6Hk8R.js +1729 -0
- package/dist/{vue-ui-table-ByFPF5fJ.js → vue-ui-table-Bqi9XNvY.js} +64 -64
- package/dist/{vue-ui-table-heatmap-DfLfYJiR.js → vue-ui-table-heatmap-D38YSxhJ.js} +16 -16
- package/dist/{vue-ui-table-sparkline-Gi1MQO-E.js → vue-ui-table-sparkline-0Ffb2jdf.js} +19 -19
- package/dist/vue-ui-thermometer-Di5PXtEO.js +763 -0
- package/dist/{vue-ui-timer-CrIq3NmZ.js → vue-ui-timer-9CDcd-gP.js} +6 -6
- package/dist/{vue-ui-tiremarks-BB3VV4tK.js → vue-ui-tiremarks-BAQ-cCSq.js} +10 -10
- package/dist/vue-ui-treemap-CLOlWiDE.js +1587 -0
- package/dist/vue-ui-waffle-DG2IfACo.js +1362 -0
- package/dist/{vue-ui-wheel-DZq3C6wh.js → vue-ui-wheel-BfXJFCjv.js} +29 -29
- package/dist/{vue-ui-word-cloud-BNK1nfDn.js → vue-ui-word-cloud-3NJy1z6d.js} +28 -28
- package/dist/{vue-ui-world-D3F772fb.js → vue-ui-world-vrGT5g1H.js} +127 -127
- package/dist/{vue-ui-xy-f56XjeNS.js → vue-ui-xy-Cb7u46JN.js} +410 -410
- package/dist/{vue-ui-xy-DOnq4Na2.js → vue-ui-xy-Dg0wxSeC.js} +760 -760
- package/dist/{vue-ui-xy-canvas-OajdJbzS.js → vue-ui-xy-canvas-CjbjJ70r.js} +60 -60
- package/dist/{vue_ui_strip_plot-CtJe8_gq.js → vue_ui_strip_plot-BaHbnnwN.js} +7 -0
- package/package.json +1 -1
- package/dist/Legend--t7Mbp9Z.js +0 -115
- package/dist/Slicer-CpBaahpI.js +0 -1144
- package/dist/exposedLib-BkRxoSB9.js +0 -19
- package/dist/img-CyjhDDaM.js +0 -74
- package/dist/vue-ui-3d-bar-BrSoUZQ_.js +0 -1757
- package/dist/vue-ui-bullet-BYrQAbvp.js +0 -710
- package/dist/vue-ui-candlestick-CJw3R21J.js +0 -1826
- package/dist/vue-ui-chestnut-DJkyr3uK.js +0 -2010
- package/dist/vue-ui-donut-BPOS4Aoe.js +0 -2410
- package/dist/vue-ui-funnel-hsmCJgE5.js +0 -777
- package/dist/vue-ui-galaxy-BC-D8ZZ6.js +0 -1077
- package/dist/vue-ui-gauge-CnDTR46T.js +0 -920
- package/dist/vue-ui-history-plot-ZcraxoDy.js +0 -1554
- package/dist/vue-ui-parallel-coordinate-plot-BPyfEQEf.js +0 -1416
- package/dist/vue-ui-radar-DNid-gVu.js +0 -1281
- package/dist/vue-ui-relation-circle-DALWYwuI.js +0 -924
- package/dist/vue-ui-rings-CGU8bnut.js +0 -1246
- package/dist/vue-ui-scatter-CDy2LLD_.js +0 -2413
- package/dist/vue-ui-sparkhistogram-DzukoeRA.js +0 -560
- package/dist/vue-ui-strip-plot-DUv9SsML.js +0 -1340
- package/dist/vue-ui-thermometer-MfzmVt9N.js +0 -763
- package/dist/vue-ui-treemap-CeE1TT6j.js +0 -1587
- package/dist/vue-ui-waffle-KDOR3fMN.js +0 -1362
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { n as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { c as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { Fragment as
|
|
2
|
+
import { A as t, B as n, D as r, E as i, Gt as a, It as o, Lt as s, N as c, Ot as l, P as u, Q as d, R as f, Rt as p, W as ee, _t as te, b as ne, f as re, i as ie, it as ae, j as oe, l as se, nt as ce, q as le, t as ue, ut as de, wt as fe, z as pe } from "./lib-CuwHGt1j.js";
|
|
3
|
+
import { t as me } from "./useTimeLabels-BmBRv27Y.js";
|
|
4
|
+
import { t as he } from "./useConfig-pVLia3dt.js";
|
|
5
|
+
import { n as m, t as ge } from "./BaseScanner-DZvpgOjM.js";
|
|
6
|
+
import { t as _e } from "./useNestedProp-BjkuFaz1.js";
|
|
7
|
+
import { t as ve } from "./useThemeCheck-C43Tcqmk.js";
|
|
8
|
+
import { t as ye } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
9
|
+
import { c as be } from "./canvas-lib-BOP_HS11.js";
|
|
10
|
+
import { t as xe } from "./useResponsive-BfnK0KxU.js";
|
|
11
|
+
import { t as Se } from "./A11yDataTable-DdRsVULz.js";
|
|
12
|
+
import { t as Ce } from "./useChartAccessibility-DYqac8yF.js";
|
|
13
|
+
import { t as we } from "./usePrefersMotion-BC-CsqR1.js";
|
|
14
|
+
import { t as Te } from "./vue_ui_sparkline-auZhap6Y.js";
|
|
15
|
+
import { Fragment as h, computed as g, createBlock as Ee, createCommentVNode as _, createElementBlock as v, createElementVNode as y, createTextVNode as De, createVNode as Oe, defineAsyncComponent as ke, guardReactiveProps as Ae, nextTick as b, normalizeProps as je, normalizeStyle as x, onBeforeUnmount as Me, onMounted as Ne, openBlock as S, ref as C, renderList as w, renderSlot as T, shallowRef as Pe, toDisplayString as Fe, toRefs as Ie, unref as E, watch as D, watchEffect as Le, withCtx as Re } from "vue";
|
|
16
16
|
//#region src/atoms/SparklinePulse.vue
|
|
17
17
|
var ze = {
|
|
18
18
|
key: 0,
|
|
@@ -112,7 +112,7 @@ var ze = {
|
|
|
112
112
|
}
|
|
113
113
|
},
|
|
114
114
|
setup(e) {
|
|
115
|
-
let t = e, n =
|
|
115
|
+
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
116
|
function i() {
|
|
117
117
|
let e = t.svgRef?.value;
|
|
118
118
|
e && (typeof e.pauseAnimations == "function" && e.pauseAnimations(), typeof e.setCurrentTime == "function" && e.setCurrentTime(0), typeof e.unpauseAnimations == "function" && e.unpauseAnimations());
|
|
@@ -136,18 +136,18 @@ var ze = {
|
|
|
136
136
|
i();
|
|
137
137
|
return;
|
|
138
138
|
}
|
|
139
|
-
await
|
|
139
|
+
await b(), i();
|
|
140
140
|
}), D(() => t.pulsePathId, async () => {
|
|
141
|
-
await
|
|
142
|
-
}),
|
|
141
|
+
await b(), i();
|
|
142
|
+
}), Me(() => {
|
|
143
143
|
i();
|
|
144
|
-
}), (t, i) => r.value ? (
|
|
144
|
+
}), (t, i) => r.value ? (S(), v("g", ze, [(S(!0), v(h, null, w(n.value, (t, n) => (S(), v(h, null, [n % 3 == 0 ? (S(), v("circle", {
|
|
145
145
|
key: `sparkline_dot_${n}_${e.pulsePathId}`,
|
|
146
146
|
r: o(n),
|
|
147
147
|
fill: e.pulse.color,
|
|
148
148
|
filter: `url(#sparkline_pulse_glow_${e.uid})`,
|
|
149
149
|
opacity: "0"
|
|
150
|
-
}, [
|
|
150
|
+
}, [y("animateMotion", {
|
|
151
151
|
begin: a(e.pulseBegin, n * 10),
|
|
152
152
|
dur: e.pulseDur,
|
|
153
153
|
repeatCount: e.pulseRepeatCount,
|
|
@@ -157,19 +157,19 @@ var ze = {
|
|
|
157
157
|
keyTimes: e.pulseMotion.keyTimes || void 0,
|
|
158
158
|
keyPoints: e.pulseKeyPoints,
|
|
159
159
|
rotate: "auto"
|
|
160
|
-
}, [
|
|
160
|
+
}, [y("mpath", { href: `#${e.pulsePathId}` }, null, 8, He)], 8, Ve), y("animate", {
|
|
161
161
|
attributeName: "opacity",
|
|
162
162
|
dur: e.pulseDur,
|
|
163
163
|
repeatCount: e.pulseRepeatCount,
|
|
164
164
|
fill: e.pulseFillMode,
|
|
165
165
|
values: s(n),
|
|
166
166
|
keyTimes: "0;0.1;0.9;1"
|
|
167
|
-
}, null, 8, Ue)], 8, Be)) :
|
|
167
|
+
}, null, 8, Ue)], 8, Be)) : _("", !0)], 64))), 256)), (S(), v("circle", {
|
|
168
168
|
key: `sparkline_halo_${e.pulsePathId}`,
|
|
169
169
|
r: Math.max(e.pulse.radius * 1.3),
|
|
170
170
|
fill: e.pulse.color,
|
|
171
171
|
opacity: "0"
|
|
172
|
-
}, [
|
|
172
|
+
}, [y("animateMotion", {
|
|
173
173
|
begin: e.pulseBegin,
|
|
174
174
|
dur: e.pulseDur,
|
|
175
175
|
repeatCount: e.pulseRepeatCount,
|
|
@@ -178,13 +178,13 @@ var ze = {
|
|
|
178
178
|
keyTimes: e.pulseMotion.keyTimes || void 0,
|
|
179
179
|
keyPoints: e.pulseKeyPoints,
|
|
180
180
|
rotate: "auto"
|
|
181
|
-
}, [
|
|
181
|
+
}, [y("mpath", { href: `#${e.pulsePathId}` }, null, 8, Ge)], 8, O), y("animate", {
|
|
182
182
|
attributeName: "opacity",
|
|
183
183
|
values: "0;0.35;0.35;0",
|
|
184
184
|
keyTimes: "0;0.15;0.85;1",
|
|
185
185
|
dur: e.pulseDur,
|
|
186
186
|
repeatCount: e.pulseRepeatCount
|
|
187
|
-
}, null, 8, k)], 8, We))])) :
|
|
187
|
+
}, null, 8, k)], 8, We))])) : _("", !0);
|
|
188
188
|
}
|
|
189
189
|
}, A = {
|
|
190
190
|
canvas: null,
|
|
@@ -339,13 +339,13 @@ function ot(e, t, n, r, i, a) {
|
|
|
339
339
|
function st(e, t, n, r, i, a) {
|
|
340
340
|
let o = n - t, s = Math.ceil(o / r) + 1;
|
|
341
341
|
s < 2 && (s = 2), s > a && (s = a);
|
|
342
|
-
let c = s > 1 ? o / (s - 1) : 0, l = e.getPointAtLength(t), u = l.x, d = l.x, f = l.y, p = l.y,
|
|
342
|
+
let c = s > 1 ? o / (s - 1) : 0, l = e.getPointAtLength(t), u = l.x, d = l.x, f = l.y, p = l.y, ee = `M ${R(L(l.x, i))} ${R(L(l.y, i))}`;
|
|
343
343
|
for (let n = 1; n < s; n += 1) {
|
|
344
344
|
let r = t + n * c, a = e.getPointAtLength(r);
|
|
345
|
-
a.x < u && (u = a.x), a.x > d && (d = a.x), a.y < f && (f = a.y), a.y > p && (p = a.y),
|
|
345
|
+
a.x < u && (u = a.x), a.x > d && (d = a.x), a.y < f && (f = a.y), a.y > p && (p = a.y), ee += ` L ${R(L(a.x, i))} ${R(L(a.y, i))}`;
|
|
346
346
|
}
|
|
347
347
|
return {
|
|
348
|
-
pathData:
|
|
348
|
+
pathData: ee,
|
|
349
349
|
bounds: {
|
|
350
350
|
minX: u,
|
|
351
351
|
maxX: d,
|
|
@@ -444,66 +444,66 @@ function pt(e, t = null, n = {}) {
|
|
|
444
444
|
if ((n.returnMode ?? "string") !== "string") throw Error("SvgPathGradientAsync: only returnMode=\"string\" is supported for the async version.");
|
|
445
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 = $e(c["stroke-width"]), d = typeof n.strokeWidth == "number" && n.strokeWidth > 0 ? n.strokeWidth : typeof u == "number" && u > 0 ? u : 1;
|
|
446
446
|
a = nt(e);
|
|
447
|
-
let f = a.pathElement, p = f.getTotalLength(),
|
|
448
|
-
if (i === null && (!(p > 0) ||
|
|
447
|
+
let f = a.pathElement, p = f.getTotalLength(), ee = i === null ? N(t, n.colorReferenceElement) : [];
|
|
448
|
+
if (i === null && (!(p > 0) || ee.length === 1)) {
|
|
449
449
|
let t = ft([dt({
|
|
450
450
|
pathData: e,
|
|
451
|
-
stroke: U(
|
|
451
|
+
stroke: U(ee[0]),
|
|
452
452
|
segmentAttributeMap: c
|
|
453
453
|
})], l);
|
|
454
454
|
rt(a), r(t);
|
|
455
455
|
return;
|
|
456
456
|
}
|
|
457
|
-
let
|
|
457
|
+
let te = n.colorSpace ?? "linearRGB";
|
|
458
458
|
if (i !== null) {
|
|
459
459
|
let e = n.temperatureColors;
|
|
460
460
|
if (!Array.isArray(e) || e.length !== 2) throw Error("SvgPathGradientAsync: temperatureColors must be a tuple of exactly 2 colors when temperatureMode is enabled.");
|
|
461
461
|
}
|
|
462
|
-
let
|
|
463
|
-
let e = ct(
|
|
462
|
+
let ne = i === null ? null : N(n.temperatureColors, n.colorReferenceElement), re = i === null ? (() => {
|
|
463
|
+
let e = ct(ee), t = Array(e.length);
|
|
464
464
|
for (let n = 0; n < e.length; n += 1) t[n] = {
|
|
465
465
|
position: e[n].position,
|
|
466
466
|
rgba: e[n].rgba
|
|
467
467
|
};
|
|
468
468
|
return t;
|
|
469
|
-
})() : [],
|
|
470
|
-
|
|
471
|
-
let
|
|
469
|
+
})() : [], ie = it(p, d, n.maxSegmentLength), ae = at(p, n.segments, ie), oe = p / ae, se = typeof n.overlap == "number" && n.overlap >= 0 ? n.overlap : d * .5, ce = oe * .45;
|
|
470
|
+
se > ce && (se = ce);
|
|
471
|
+
let le = typeof n.samplePointLimitPerSegment == "number" && n.samplePointLimitPerSegment > 10 ? n.samplePointLimitPerSegment : 250, ue = lt(c), de = [], fe = i === null ? null : [], pe = i === null ? null : [], me = 0, he = i === null ? re.length - 2 : 0, m = 0, ge = () => {
|
|
472
472
|
let e = performance.now(), t = typeof n.frameBudgetMs == "number" ? n.frameBudgetMs : 8;
|
|
473
|
-
for (;
|
|
474
|
-
let e =
|
|
475
|
-
if (
|
|
476
|
-
let e = st(f, n, r, s, o,
|
|
477
|
-
|
|
473
|
+
for (; m < ae && performance.now() - e < t;) {
|
|
474
|
+
let e = m * oe, t = (m + 1) * oe, n = e, r = t;
|
|
475
|
+
if (m !== 0 && (n = e - se), m !== ae - 1 && (r = t + se), n = I(n, 0, p), r = I(r, 0, p), r > n) if (i !== null) {
|
|
476
|
+
let e = st(f, n, r, s, o, le);
|
|
477
|
+
fe.push(e.pathData), pe.push(e.bounds);
|
|
478
478
|
} else {
|
|
479
479
|
let e = (n + r) * .5 / p;
|
|
480
|
-
for (;
|
|
481
|
-
let t = z(
|
|
482
|
-
|
|
480
|
+
for (; me < he && e > re[me + 1].position;) me += 1;
|
|
481
|
+
let t = z(re, e, te, me), i = ot(f, n, r, s, o, le);
|
|
482
|
+
de.push(ut(i, t, ue));
|
|
483
483
|
}
|
|
484
|
-
|
|
484
|
+
m += 1;
|
|
485
485
|
}
|
|
486
|
-
if (
|
|
487
|
-
requestAnimationFrame(
|
|
486
|
+
if (m < ae) {
|
|
487
|
+
requestAnimationFrame(ge);
|
|
488
488
|
return;
|
|
489
489
|
}
|
|
490
490
|
if (i !== null) {
|
|
491
491
|
let e = Infinity, t = -Infinity;
|
|
492
|
-
for (let n = 0; n <
|
|
493
|
-
let r =
|
|
492
|
+
for (let n = 0; n < pe.length; n += 1) {
|
|
493
|
+
let r = pe[n], a = i === "vertical" ? r.minY : r.minX, o = i === "vertical" ? r.maxY : r.maxX;
|
|
494
494
|
a < e && (e = a), o > t && (t = o);
|
|
495
495
|
}
|
|
496
|
-
let n =
|
|
497
|
-
|
|
498
|
-
for (let a = 0; a <
|
|
499
|
-
let o =
|
|
500
|
-
|
|
496
|
+
let n = ne[0], r = ne[1];
|
|
497
|
+
de.length = 0;
|
|
498
|
+
for (let a = 0; a < pe.length; a += 1) {
|
|
499
|
+
let o = pe[a], s = et(((i === "vertical" ? o.minY : o.minX) + (i === "vertical" ? o.maxY : o.maxX)) * .5, e, t, !0), c = U(i === "vertical" ? Ze(n, r, s, te) : Ze(r, n, s, te)), l = fe[a];
|
|
500
|
+
de.push(ut(l, c, ue));
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
|
-
let c = ft(
|
|
503
|
+
let c = ft(de, l);
|
|
504
504
|
rt(a), r(c);
|
|
505
505
|
};
|
|
506
|
-
requestAnimationFrame(
|
|
506
|
+
requestAnimationFrame(ge);
|
|
507
507
|
} catch (e) {
|
|
508
508
|
rt(a), i(e);
|
|
509
509
|
}
|
|
@@ -540,7 +540,7 @@ var mt = ["innerHTML"], ht = {
|
|
|
540
540
|
}
|
|
541
541
|
},
|
|
542
542
|
setup(e) {
|
|
543
|
-
let t = e, n =
|
|
543
|
+
let t = e, n = C(""), r = 0;
|
|
544
544
|
return D(() => [
|
|
545
545
|
t.enabled,
|
|
546
546
|
t.svgPathData,
|
|
@@ -566,7 +566,7 @@ var mt = ["innerHTML"], ht = {
|
|
|
566
566
|
groupAttrs: { class: "vue-ui-sparkline-gradient" }
|
|
567
567
|
});
|
|
568
568
|
i === r && (n.value = a);
|
|
569
|
-
}, { immediate: !0 }), (e, t) => (
|
|
569
|
+
}, { immediate: !0 }), (e, t) => (S(), v("g", { innerHTML: n.value }, null, 8, mt));
|
|
570
570
|
}
|
|
571
571
|
}, gt = /* @__PURE__ */ e({ default: () => G }), _t = ["id"], vt = ["id"], yt = { style: { position: "relative" } }, bt = [
|
|
572
572
|
"xmlns",
|
|
@@ -660,7 +660,7 @@ var mt = ["innerHTML"], ht = {
|
|
|
660
660
|
},
|
|
661
661
|
"data-dom-to-png-ignore": "",
|
|
662
662
|
"aria-hidden": "true"
|
|
663
|
-
}, G = /*#__PURE__*/
|
|
663
|
+
}, G = /*#__PURE__*/ ye({
|
|
664
664
|
__name: "vue-ui-sparkline",
|
|
665
665
|
props: {
|
|
666
666
|
config: {
|
|
@@ -693,18 +693,18 @@ var mt = ["innerHTML"], ht = {
|
|
|
693
693
|
}
|
|
694
694
|
},
|
|
695
695
|
emits: ["hoverIndex", "selectDatapoint"],
|
|
696
|
-
setup(e, { emit:
|
|
697
|
-
let ze =
|
|
696
|
+
setup(e, { emit: ye }) {
|
|
697
|
+
let ze = ke(() => import("./PackageVersion-Cm-3hwIF.js").then((e) => e.t)), Be = ke(() => import("./SparkTooltip-DaWSTzfA.js")), { vue_ui_sparkline: Ve } = he(), { isThemeValid: He, warnInvalidTheme: Ue } = ve(), We = we(), O = e, Ge = g(() => Array.isArray(O.dataset) && O.dataset.length > 0), k = C(ee()), A = C(null), qe = C(null), Je = C(null), j = C(null), M = C(null), N = C(L());
|
|
698
698
|
function Ye(e) {
|
|
699
699
|
return O.config?.skeletonDataset && Array.isArray(O.config.skeletonDataset) ? O.config.skeletonDataset.map((e) => ({
|
|
700
700
|
period: "-",
|
|
701
701
|
value: e
|
|
702
|
-
})) :
|
|
702
|
+
})) : ce(e).map((e) => ({
|
|
703
703
|
period: "-",
|
|
704
704
|
value: e
|
|
705
705
|
}));
|
|
706
706
|
}
|
|
707
|
-
let Xe =
|
|
707
|
+
let Xe = g(() => a({
|
|
708
708
|
defaultConfig: {
|
|
709
709
|
gradientPath: { show: !1 },
|
|
710
710
|
temperatureColors: { show: !1 },
|
|
@@ -726,33 +726,33 @@ var mt = ["innerHTML"], ht = {
|
|
|
726
726
|
}
|
|
727
727
|
},
|
|
728
728
|
userConfig: N.value.skeletonConfig ?? {}
|
|
729
|
-
})), { loading: P, FINAL_DATASET: F, manualLoading: Ze } =
|
|
729
|
+
})), { loading: P, FINAL_DATASET: F, manualLoading: Ze } = m({
|
|
730
730
|
...Ie(O),
|
|
731
731
|
FINAL_CONFIG: N,
|
|
732
732
|
prepareConfig: L,
|
|
733
733
|
callback: () => {
|
|
734
734
|
Promise.resolve().then(async () => {
|
|
735
|
-
await
|
|
735
|
+
await b(), mt();
|
|
736
736
|
});
|
|
737
737
|
},
|
|
738
738
|
skeletonDataset: Ye(12),
|
|
739
|
-
skeletonConfig:
|
|
739
|
+
skeletonConfig: a({
|
|
740
740
|
defaultConfig: N.value,
|
|
741
741
|
userConfig: Xe.value
|
|
742
742
|
})
|
|
743
|
-
}), { svgRef: I } =
|
|
743
|
+
}), { svgRef: I } = Ce({ config: N.value.style.title });
|
|
744
744
|
function L() {
|
|
745
|
-
let e =
|
|
745
|
+
let e = _e({
|
|
746
746
|
userConfig: O.config,
|
|
747
747
|
defaultConfig: Ve
|
|
748
748
|
}), t = {}, n = e.theme;
|
|
749
749
|
if (n) if (!He.value(e)) Ue(e), t = e;
|
|
750
750
|
else {
|
|
751
|
-
let r =
|
|
752
|
-
userConfig:
|
|
751
|
+
let r = _e({
|
|
752
|
+
userConfig: Te[n] || O.config,
|
|
753
753
|
defaultConfig: e
|
|
754
754
|
});
|
|
755
|
-
t = { ...
|
|
755
|
+
t = { ..._e({
|
|
756
756
|
userConfig: O.config,
|
|
757
757
|
defaultConfig: r
|
|
758
758
|
}) };
|
|
@@ -760,7 +760,7 @@ var mt = ["innerHTML"], ht = {
|
|
|
760
760
|
else t = e;
|
|
761
761
|
return t;
|
|
762
762
|
}
|
|
763
|
-
let R =
|
|
763
|
+
let R = g(() => N.value?.style?.line.pulse || {}), Qe = g(() => `${Math.max(200, Number(R.value.durationMs) || 4e3) / 1e3}s`), $e = C(0), et = g(() => R.value?.begin || "0ms"), tt = C("0;1"), nt = g(() => R.value?.loop === !1 ? "1" : "indefinite"), rt = g(() => R.value?.loop === !1 ? "freeze" : void 0), it = g(() => R.value.trail.show && ct.value.lengthPx || 1), at = g(() => !!R.value?.show && !Q.value && !We.value && !P.value && (J.value?.length || 0) > 1);
|
|
764
764
|
function ot() {
|
|
765
765
|
if (!at.value) {
|
|
766
766
|
$e.value = 0;
|
|
@@ -782,7 +782,7 @@ var mt = ["innerHTML"], ht = {
|
|
|
782
782
|
}
|
|
783
783
|
});
|
|
784
784
|
}
|
|
785
|
-
let st =
|
|
785
|
+
let st = g(() => {
|
|
786
786
|
let e = R.value?.easing || "ease-in-out", t = {
|
|
787
787
|
ease: [
|
|
788
788
|
.25,
|
|
@@ -827,7 +827,7 @@ var mt = ["innerHTML"], ht = {
|
|
|
827
827
|
] : t[e] || t["ease-in-out"]).join(" "),
|
|
828
828
|
keyTimes: "0;1"
|
|
829
829
|
};
|
|
830
|
-
}), ct =
|
|
830
|
+
}), ct = g(() => {
|
|
831
831
|
let e = R.value?.trail || {}, t = N.value.style.line.strokeWidth || 1;
|
|
832
832
|
return {
|
|
833
833
|
show: e.show !== !1,
|
|
@@ -837,18 +837,18 @@ var mt = ["innerHTML"], ht = {
|
|
|
837
837
|
fadeIn: .5,
|
|
838
838
|
fadeOut: .2
|
|
839
839
|
};
|
|
840
|
-
}), z =
|
|
840
|
+
}), z = g(() => fe({
|
|
841
841
|
data: F.value,
|
|
842
842
|
threshold: N.value.downsample.threshold
|
|
843
843
|
}));
|
|
844
|
-
|
|
844
|
+
g(() => {
|
|
845
845
|
if (!N.value.temperatureColors.show) return !1;
|
|
846
846
|
let e = F.value.map(({ value: e }) => e).filter((e) => Number.isFinite(e));
|
|
847
847
|
return new Set(e).size <= 1;
|
|
848
848
|
}), D(() => O.config, (e) => {
|
|
849
849
|
P.value || (N.value = L()), Qt(), K.value.chartWidth = N.value.style.chartWidth;
|
|
850
850
|
}, { deep: !0 }), D(() => O.dataset, (e) => {
|
|
851
|
-
Array.isArray(e) && e.length > 0 && (Ze.value = !1), B.value =
|
|
851
|
+
Array.isArray(e) && e.length > 0 && (Ze.value = !1), B.value = fe({
|
|
852
852
|
data: F.value.map((e) => ({
|
|
853
853
|
...e,
|
|
854
854
|
value: [void 0].includes(e.value) ? null : e.value
|
|
@@ -856,9 +856,9 @@ var mt = ["innerHTML"], ht = {
|
|
|
856
856
|
threshold: N.value.downsample.threshold
|
|
857
857
|
});
|
|
858
858
|
}, { deep: !0 });
|
|
859
|
-
let B =
|
|
859
|
+
let B = C(V());
|
|
860
860
|
function V() {
|
|
861
|
-
return
|
|
861
|
+
return fe({
|
|
862
862
|
data: F.value.map((e) => N.value.style.animation.show && F.value.length > 1 ? {
|
|
863
863
|
...e,
|
|
864
864
|
value: null
|
|
@@ -869,7 +869,7 @@ var mt = ["innerHTML"], ht = {
|
|
|
869
869
|
threshold: N.value.downsample.threshold
|
|
870
870
|
});
|
|
871
871
|
}
|
|
872
|
-
let H = Pe(null), U = Pe(null), lt =
|
|
872
|
+
let H = Pe(null), U = Pe(null), lt = C(!1), ut = C(0), dt = C([]), ft = C(""), W = g(() => {
|
|
873
873
|
let e = (z.value || []).map((e) => `${e.period}::${Number.isFinite(e.value) ? e.value : 0}`).join("|"), t = N.value?.style?.animation || {}, n = !!N.value?.gradientPath?.show && !N.value.temperatureColors.show;
|
|
874
874
|
return `${e}#${!!t.show}#${t.animationFrames || 0}#${n}`;
|
|
875
875
|
});
|
|
@@ -901,33 +901,33 @@ var mt = ["innerHTML"], ht = {
|
|
|
901
901
|
}
|
|
902
902
|
D(W, () => {
|
|
903
903
|
mt();
|
|
904
|
-
}),
|
|
904
|
+
}), Ne(() => {
|
|
905
905
|
Qt(), mt();
|
|
906
|
-
}),
|
|
906
|
+
}), Me(() => {
|
|
907
907
|
pt();
|
|
908
908
|
});
|
|
909
|
-
let gt =
|
|
909
|
+
let gt = C(0);
|
|
910
910
|
D(() => P.value, async (e) => {
|
|
911
|
-
e || (await
|
|
911
|
+
e || (await b(), gt.value += 1);
|
|
912
912
|
}), D(() => lt.value, async (e) => {
|
|
913
|
-
e || P.value || (await
|
|
913
|
+
e || P.value || (await b(), gt.value += 1);
|
|
914
914
|
});
|
|
915
|
-
let G =
|
|
915
|
+
let G = g(() => `sparkline_line_path_${k.value}`), Yt = C(!0);
|
|
916
916
|
async function Xt() {
|
|
917
|
-
Yt.value = !1, await
|
|
917
|
+
Yt.value = !1, await b(), Yt.value = !0, await b(), ot();
|
|
918
918
|
}
|
|
919
|
-
let Zt =
|
|
919
|
+
let Zt = g(() => !!N.value.debug);
|
|
920
920
|
function Qt() {
|
|
921
|
-
if (
|
|
921
|
+
if (l(O.dataset) ? (d({
|
|
922
922
|
componentName: "VueUiSparkline",
|
|
923
923
|
type: "dataset",
|
|
924
924
|
debug: Zt.value
|
|
925
925
|
}), Ze.value = !0) : O.dataset.forEach((e, t) => {
|
|
926
|
-
|
|
926
|
+
de({
|
|
927
927
|
datasetObject: e,
|
|
928
928
|
requiredAttributes: ["period", "value"]
|
|
929
929
|
}).forEach((e) => {
|
|
930
|
-
|
|
930
|
+
d({
|
|
931
931
|
componentName: "VueUiSparkline",
|
|
932
932
|
type: "datasetSerieAttribute",
|
|
933
933
|
property: e,
|
|
@@ -935,9 +935,9 @@ var mt = ["innerHTML"], ht = {
|
|
|
935
935
|
debug: Zt.value
|
|
936
936
|
});
|
|
937
937
|
});
|
|
938
|
-
}),
|
|
939
|
-
let e =
|
|
940
|
-
let { width: e, height: t } =
|
|
938
|
+
}), l(O.dataset) || (Ze.value = N.value.loading), N.value.responsive) {
|
|
939
|
+
let e = be(() => {
|
|
940
|
+
let { width: e, height: t } = xe({
|
|
941
941
|
chart: A.value,
|
|
942
942
|
title: N.value.style.title.show && O.showInfo ? qe.value : null,
|
|
943
943
|
source: Je.value
|
|
@@ -949,15 +949,15 @@ var mt = ["innerHTML"], ht = {
|
|
|
949
949
|
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
950
|
}
|
|
951
951
|
}
|
|
952
|
-
|
|
952
|
+
Me(() => {
|
|
953
953
|
H.value && (U.value && H.value.unobserve(U.value), H.value.disconnect());
|
|
954
954
|
});
|
|
955
|
-
let K =
|
|
955
|
+
let K = C({
|
|
956
956
|
height: 80 * O.heightRatio,
|
|
957
957
|
width: 500,
|
|
958
958
|
chartWidth: N.value.style.chartWidth,
|
|
959
959
|
padding: O.forcedPadding
|
|
960
|
-
}), $t =
|
|
960
|
+
}), $t = ye, q = g(() => {
|
|
961
961
|
let { top: e, right: t, bottom: n, left: r } = N.value.style.padding;
|
|
962
962
|
return {
|
|
963
963
|
top: e,
|
|
@@ -968,32 +968,32 @@ var mt = ["innerHTML"], ht = {
|
|
|
968
968
|
width: O.showInfo && N.value.style.dataLabel.show ? K.value.chartWidth - r - t : K.value.width - K.value.padding - r - t,
|
|
969
969
|
height: K.value.height - e - n
|
|
970
970
|
};
|
|
971
|
-
}), en =
|
|
971
|
+
}), en = g(() => [null, void 0].includes(N.value.style.scaleMin) ? Math.min(...B.value.map((e) => isNaN(e.value) || [
|
|
972
972
|
void 0,
|
|
973
973
|
null,
|
|
974
974
|
"NaN",
|
|
975
975
|
NaN,
|
|
976
976
|
Infinity,
|
|
977
977
|
-Infinity
|
|
978
|
-
].includes(e.value) ? 0 : e.value || 0)) : N.value.style.scaleMin), tn =
|
|
978
|
+
].includes(e.value) ? 0 : e.value || 0)) : N.value.style.scaleMin), tn = g(() => [null, void 0].includes(N.value.style.scaleMax) ? Math.max(...B.value.map((e) => isNaN(e.value) || [
|
|
979
979
|
void 0,
|
|
980
980
|
null,
|
|
981
981
|
"NaN",
|
|
982
982
|
NaN,
|
|
983
983
|
Infinity,
|
|
984
984
|
-Infinity
|
|
985
|
-
].includes(e.value) ? 0 : e.value || 0)) : N.value.style.scaleMax), nn =
|
|
985
|
+
].includes(e.value) ? 0 : e.value || 0)) : N.value.style.scaleMax), nn = g(() => {
|
|
986
986
|
let e = en.value >= 0 ? 0 : en.value;
|
|
987
987
|
return Math.abs(e);
|
|
988
|
-
}), rn =
|
|
988
|
+
}), rn = g(() => tn.value + nn.value), an = g(() => q.value.bottom - q.value.height * on(nn.value));
|
|
989
989
|
function on(e) {
|
|
990
990
|
return isNaN(e / rn.value) ? 0 : e / rn.value;
|
|
991
991
|
}
|
|
992
|
-
let sn =
|
|
992
|
+
let sn = g(() => z.value.length - 1 || 1), cn = C([]), ln = 0;
|
|
993
993
|
Le(() => {
|
|
994
994
|
let e = ++ln;
|
|
995
995
|
(async () => {
|
|
996
|
-
let t = await
|
|
996
|
+
let t = await me({
|
|
997
997
|
values: z.value.map((e) => e.period),
|
|
998
998
|
maxDatapoints: z.value.length,
|
|
999
999
|
formatter: N.value.style.dataLabel.datetimeFormatter,
|
|
@@ -1003,7 +1003,7 @@ var mt = ["innerHTML"], ht = {
|
|
|
1003
1003
|
e === ln && (cn.value = t);
|
|
1004
1004
|
})();
|
|
1005
1005
|
});
|
|
1006
|
-
let J =
|
|
1006
|
+
let J = g(() => B.value.map((e, t) => {
|
|
1007
1007
|
let n = isNaN(e.value) || [
|
|
1008
1008
|
void 0,
|
|
1009
1009
|
"NaN",
|
|
@@ -1020,10 +1020,10 @@ var mt = ["innerHTML"], ht = {
|
|
|
1020
1020
|
x: q.value.start + t * r,
|
|
1021
1021
|
y: q.value.bottom - q.value.height * on(n + nn.value),
|
|
1022
1022
|
id: `plot_${k.value}_${t}`,
|
|
1023
|
-
color: Q.value ? N.value.style.bar.color : N.value.style.area.useGradient ?
|
|
1023
|
+
color: Q.value ? N.value.style.bar.color : N.value.style.area.useGradient ? p(N.value.style.line.color, .05 * (1 - t / sn.value)) : N.value.style.line.color,
|
|
1024
1024
|
width: r
|
|
1025
1025
|
};
|
|
1026
|
-
})), un =
|
|
1026
|
+
})), un = 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);
|
|
1027
1027
|
function dn(e, t) {
|
|
1028
1028
|
N.value.events.datapointEnter && N.value.events.datapointEnter({
|
|
1029
1029
|
datapoint: e,
|
|
@@ -1036,7 +1036,7 @@ var mt = ["innerHTML"], ht = {
|
|
|
1036
1036
|
seriesIndex: t
|
|
1037
1037
|
}), X.value = Y.value, Y.value = void 0, M.value = null, j.value = null, $t("hoverIndex", { index: void 0 });
|
|
1038
1038
|
}
|
|
1039
|
-
let Z =
|
|
1039
|
+
let Z = g(() => {
|
|
1040
1040
|
if (Ge.value) {
|
|
1041
1041
|
let e = J.value.map((e) => e.absoluteValue), t = e.reduce((e, t) => e + t, 0);
|
|
1042
1042
|
return {
|
|
@@ -1044,7 +1044,7 @@ var mt = ["innerHTML"], ht = {
|
|
|
1044
1044
|
sum: t,
|
|
1045
1045
|
average: t / J.value.length,
|
|
1046
1046
|
median: re(e),
|
|
1047
|
-
trend:
|
|
1047
|
+
trend: se(J.value.map(({ x: e, y: t, absoluteValue: n }) => ({
|
|
1048
1048
|
x: e,
|
|
1049
1049
|
y: t,
|
|
1050
1050
|
value: n
|
|
@@ -1057,7 +1057,7 @@ var mt = ["innerHTML"], ht = {
|
|
|
1057
1057
|
median: null,
|
|
1058
1058
|
trend: null
|
|
1059
1059
|
};
|
|
1060
|
-
}), pn =
|
|
1060
|
+
}), pn = g(() => Ge.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");
|
|
1061
1061
|
function mn(e, t) {
|
|
1062
1062
|
N.value.events.datapointClick && N.value.events.datapointClick({
|
|
1063
1063
|
datapoint: e,
|
|
@@ -1067,7 +1067,7 @@ var mt = ["innerHTML"], ht = {
|
|
|
1067
1067
|
index: t
|
|
1068
1068
|
});
|
|
1069
1069
|
}
|
|
1070
|
-
let hn =
|
|
1070
|
+
let hn = g(() => Array.isArray(N.value.style.line.dashIndices) && N.value.style.line.dashIndices.length > 0), gn = g(() => N.value.style.line.cutNullValues);
|
|
1071
1071
|
function _n(e) {
|
|
1072
1072
|
return ![
|
|
1073
1073
|
null,
|
|
@@ -1094,14 +1094,14 @@ var mt = ["innerHTML"], ht = {
|
|
|
1094
1094
|
function Sn(e, t) {
|
|
1095
1095
|
return yn(e, t) ? N.value.style.plot.stroke : N.value.style.backgroundColor;
|
|
1096
1096
|
}
|
|
1097
|
-
let Cn =
|
|
1097
|
+
let Cn = g(() => gn.value ? J.value : J.value.filter((e) => e.value !== null)), wn = g(() => J.value.filter((e) => e.value !== null)), Tn = g(() => wn.value.length > 1), En = g(() => Q.value || !Tn.value ? "" : gn.value ? c(J.value) : oe(Cn.value)), Dn = g(() => Q.value || !Tn.value ? "" : gn.value ? pe(J.value) : f(Cn.value)), On = g(() => Q.value || !hn.value || !Tn.value ? [] : u(Cn.value, N.value.style.line.dashIndices)), kn = g(() => Q.value || !hn.value || !Tn.value ? [] : n(Cn.value, N.value.style.line.dashIndices)), An = g(() => Q.value || !N.value.style.area.show || !Tn.value ? [] : N.value.style.line.smooth ? t(Cn.value, q.value.bottom, gn.value).filter(Boolean) : (gn.value ? r(J.value, q.value.bottom) : i(Cn.value, q.value.bottom)).split(";").filter(Boolean).map((e) => `M${e}Z`)), jn = g(() => Q.value || !N.value.gradientPath.show || N.value.temperatureColors.show ? "" : `M ${(N.value.style.line.smooth ? En.value : Dn.value) || "0,0"}`), Mn = g(() => {
|
|
1098
1098
|
if (!N.value.temperatureColors.show) return null;
|
|
1099
1099
|
let e = N.value.temperatureColors.colors;
|
|
1100
|
-
return !Array.isArray(e) || !e.length ? null : e.map((e) =>
|
|
1101
|
-
}), $ =
|
|
1100
|
+
return !Array.isArray(e) || !e.length ? null : e.map((e) => ne(e));
|
|
1101
|
+
}), $ = g(() => {
|
|
1102
1102
|
if (!N.value.temperatureColors.show) return null;
|
|
1103
1103
|
let e = N.value.temperatureColors.colors;
|
|
1104
|
-
return !Array.isArray(e) || !e.length ? null : e.map((e) =>
|
|
1104
|
+
return !Array.isArray(e) || !e.length ? null : e.map((e) => ne(e));
|
|
1105
1105
|
});
|
|
1106
1106
|
function Nn(e) {
|
|
1107
1107
|
if (!Number.isFinite(e?.y)) return 0;
|
|
@@ -1110,7 +1110,7 @@ var mt = ["innerHTML"], ht = {
|
|
|
1110
1110
|
}
|
|
1111
1111
|
function Pn(e) {
|
|
1112
1112
|
let t = Mn.value;
|
|
1113
|
-
return !Array.isArray(t) || !t.length ? e.color :
|
|
1113
|
+
return !Array.isArray(t) || !t.length ? e.color : te({
|
|
1114
1114
|
colors: t,
|
|
1115
1115
|
ratio: Nn(e)
|
|
1116
1116
|
});
|
|
@@ -1123,9 +1123,9 @@ var mt = ["innerHTML"], ht = {
|
|
|
1123
1123
|
K.value.height,
|
|
1124
1124
|
N.value?.style?.line?.smooth
|
|
1125
1125
|
], async () => {
|
|
1126
|
-
await
|
|
1127
|
-
}, { immediate: !0 }),
|
|
1128
|
-
await
|
|
1126
|
+
await b(), ot();
|
|
1127
|
+
}, { immediate: !0 }), Ne(async () => {
|
|
1128
|
+
await b(), ot();
|
|
1129
1129
|
}), D(() => P.value, async (e) => {
|
|
1130
1130
|
e || await Xt();
|
|
1131
1131
|
}), D(() => lt.value, async (e) => {
|
|
@@ -1139,7 +1139,7 @@ var mt = ["innerHTML"], ht = {
|
|
|
1139
1139
|
let t = J.value[e];
|
|
1140
1140
|
t && (M.value = e, j.value = e, Y.value = t);
|
|
1141
1141
|
});
|
|
1142
|
-
let Fn =
|
|
1142
|
+
let Fn = C(!1);
|
|
1143
1143
|
function In() {
|
|
1144
1144
|
let e = un.value;
|
|
1145
1145
|
if (e !== null && e >= 0 && e < J.value.length) {
|
|
@@ -1167,22 +1167,22 @@ var mt = ["innerHTML"], ht = {
|
|
|
1167
1167
|
let s = J.value[i];
|
|
1168
1168
|
s && (j.value = i, dn(s, i));
|
|
1169
1169
|
}
|
|
1170
|
-
let zn =
|
|
1170
|
+
let zn = g(() => ({
|
|
1171
1171
|
headers: [N.value.translations.period, N.value.translations.value],
|
|
1172
1172
|
rows: J.value.map((e) => [e.period, e.absoluteValue])
|
|
1173
1173
|
}));
|
|
1174
|
-
return (t,
|
|
1174
|
+
return (t, n) => (S(), v("div", {
|
|
1175
1175
|
ref_key: "sparklineChart",
|
|
1176
1176
|
ref: A,
|
|
1177
1177
|
class: "vue-data-ui-component vue-ui-sparkline",
|
|
1178
1178
|
id: k.value,
|
|
1179
|
-
style:
|
|
1179
|
+
style: x(`width:100%;font-family:${N.value.style.fontFamily};`)
|
|
1180
1180
|
}, [
|
|
1181
|
-
|
|
1181
|
+
y("p", {
|
|
1182
1182
|
id: `chart-instructions-${k.value}`,
|
|
1183
1183
|
class: "sr-only"
|
|
1184
1184
|
}, Fe(N.value.a11y.translations.keyboardNavigation), 9, vt),
|
|
1185
|
-
zn.value?.rows?.length ? (
|
|
1185
|
+
zn.value?.rows?.length ? (S(), Ee(Se, {
|
|
1186
1186
|
key: 0,
|
|
1187
1187
|
uid: k.value,
|
|
1188
1188
|
head: zn.value.headers,
|
|
@@ -1195,8 +1195,8 @@ var mt = ["innerHTML"], ht = {
|
|
|
1195
1195
|
"body",
|
|
1196
1196
|
"notice",
|
|
1197
1197
|
"caption"
|
|
1198
|
-
])) :
|
|
1199
|
-
|
|
1198
|
+
])) : _("", !0),
|
|
1199
|
+
T(t.$slots, "before", je(Ae({
|
|
1200
1200
|
selected: Y.value,
|
|
1201
1201
|
latest: Z.value.latest,
|
|
1202
1202
|
sum: Z.value.sum,
|
|
@@ -1204,84 +1204,84 @@ var mt = ["innerHTML"], ht = {
|
|
|
1204
1204
|
median: Z.value.median,
|
|
1205
1205
|
trend: Z.value.trend
|
|
1206
1206
|
})), void 0, !0),
|
|
1207
|
-
N.value.style.title.show && e.showInfo ? (
|
|
1207
|
+
N.value.style.title.show && e.showInfo ? (S(), v("div", {
|
|
1208
1208
|
key: 1,
|
|
1209
1209
|
ref_key: "chartTitle",
|
|
1210
1210
|
ref: qe,
|
|
1211
1211
|
class: "vue-ui-sparkline-title",
|
|
1212
|
-
style:
|
|
1213
|
-
}, [
|
|
1214
|
-
|
|
1212
|
+
style: 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"};`)
|
|
1213
|
+
}, [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"}`) }, Fe(Y.value ? Y.value.period : N.value.style.title.text), 5)], 4)) : _("", !0),
|
|
1214
|
+
y("div", yt, [(S(), v("svg", {
|
|
1215
1215
|
ref_key: "svgRef",
|
|
1216
1216
|
ref: I,
|
|
1217
1217
|
xmlns: E(ue),
|
|
1218
1218
|
viewBox: `0 0 ${K.value.width} ${K.value.height}`,
|
|
1219
|
-
style:
|
|
1219
|
+
style: x(`background:${N.value.style.backgroundColor};overflow:visible;direction:ltr`),
|
|
1220
1220
|
tabindex: "0",
|
|
1221
1221
|
"aria-describedby": `chart-instructions-${k.value}`,
|
|
1222
|
-
onMouseleave:
|
|
1222
|
+
onMouseleave: n[0] ||= (e) => X.value = void 0,
|
|
1223
1223
|
onFocus: In,
|
|
1224
1224
|
onBlur: Ln,
|
|
1225
1225
|
onKeydown: Rn
|
|
1226
1226
|
}, [
|
|
1227
|
-
|
|
1228
|
-
t.$slots["chart-background"] ? (
|
|
1227
|
+
Oe(E(ze)),
|
|
1228
|
+
t.$slots["chart-background"] ? (S(), v("foreignObject", {
|
|
1229
1229
|
key: 0,
|
|
1230
1230
|
x: 0,
|
|
1231
1231
|
y: 0,
|
|
1232
1232
|
width: K.value.width <= 0 ? 10 : K.value.width,
|
|
1233
1233
|
height: K.value.height <= 0 ? 10 : K.value.height,
|
|
1234
1234
|
style: { pointerEvents: "none" }
|
|
1235
|
-
}, [
|
|
1236
|
-
|
|
1237
|
-
|
|
1235
|
+
}, [T(t.$slots, "chart-background", {}, void 0, !0)], 8, xt)) : _("", !0),
|
|
1236
|
+
y("defs", null, [
|
|
1237
|
+
y("linearGradient", {
|
|
1238
1238
|
x1: "0%",
|
|
1239
1239
|
y1: "0%",
|
|
1240
1240
|
x2: "100%",
|
|
1241
1241
|
y2: "0%",
|
|
1242
1242
|
id: `sparkline_gradient_${k.value}`
|
|
1243
|
-
}, [
|
|
1243
|
+
}, [y("stop", {
|
|
1244
1244
|
offset: "0%",
|
|
1245
|
-
"stop-color": E(
|
|
1246
|
-
}, null, 8, Ct),
|
|
1245
|
+
"stop-color": E(s)(E(p)(N.value.style.area.color, .05), N.value.style.area.opacity)
|
|
1246
|
+
}, null, 8, Ct), y("stop", {
|
|
1247
1247
|
offset: "100%",
|
|
1248
|
-
"stop-color": E(
|
|
1248
|
+
"stop-color": E(s)(N.value.style.area.color, N.value.style.area.opacity)
|
|
1249
1249
|
}, null, 8, wt)], 8, St),
|
|
1250
|
-
|
|
1250
|
+
y("linearGradient", {
|
|
1251
1251
|
x2: "0%",
|
|
1252
1252
|
y2: "100%",
|
|
1253
1253
|
id: `sparkline_bar_gradient_pos_${k.value}`
|
|
1254
|
-
}, [
|
|
1254
|
+
}, [y("stop", {
|
|
1255
1255
|
offset: "0%",
|
|
1256
1256
|
"stop-color": N.value.style.bar.color
|
|
1257
|
-
}, null, 8, Et),
|
|
1257
|
+
}, null, 8, Et), y("stop", {
|
|
1258
1258
|
offset: "100%",
|
|
1259
|
-
"stop-color": E(
|
|
1259
|
+
"stop-color": E(p)(N.value.style.bar.color, .05)
|
|
1260
1260
|
}, null, 8, Dt)], 8, Tt),
|
|
1261
|
-
|
|
1261
|
+
y("linearGradient", {
|
|
1262
1262
|
x2: "0%",
|
|
1263
1263
|
y2: "100%",
|
|
1264
1264
|
id: `sparkline_bar_gradient_neg_${k.value}`
|
|
1265
|
-
}, [
|
|
1265
|
+
}, [y("stop", {
|
|
1266
1266
|
offset: "0%",
|
|
1267
|
-
"stop-color": E(
|
|
1268
|
-
}, null, 8, kt),
|
|
1267
|
+
"stop-color": E(p)(N.value.style.bar.color, .05)
|
|
1268
|
+
}, null, 8, kt), y("stop", {
|
|
1269
1269
|
offset: "100%",
|
|
1270
1270
|
"stop-color": N.value.style.bar.color
|
|
1271
1271
|
}, null, 8, At)], 8, Ot),
|
|
1272
|
-
|
|
1272
|
+
y("filter", {
|
|
1273
1273
|
id: `sparkline_pulse_glow_${k.value}`,
|
|
1274
1274
|
filterUnits: "userSpaceOnUse",
|
|
1275
1275
|
x: "-50",
|
|
1276
1276
|
y: "-50",
|
|
1277
1277
|
width: "100",
|
|
1278
1278
|
height: "100"
|
|
1279
|
-
}, [...
|
|
1279
|
+
}, [...n[1] ||= [y("feGaussianBlur", {
|
|
1280
1280
|
in: "SourceGraphic",
|
|
1281
1281
|
stdDeviation: "3",
|
|
1282
1282
|
result: "blur"
|
|
1283
|
-
}, null, -1),
|
|
1284
|
-
N.value.temperatureColors.show && $.value ? (
|
|
1283
|
+
}, null, -1), y("feMerge", null, [y("feMergeNode", { in: "blur" }), y("feMergeNode", { in: "SourceGraphic" })], -1)]], 8, jt),
|
|
1284
|
+
N.value.temperatureColors.show && $.value ? (S(), v("linearGradient", {
|
|
1285
1285
|
key: 0,
|
|
1286
1286
|
id: `temperature_grad_sparkline_${k.value}`,
|
|
1287
1287
|
gradientUnits: "userSpaceOnUse",
|
|
@@ -1289,23 +1289,23 @@ var mt = ["innerHTML"], ht = {
|
|
|
1289
1289
|
x2: "0",
|
|
1290
1290
|
y1: q.value.top,
|
|
1291
1291
|
y2: q.value.bottom
|
|
1292
|
-
}, [(
|
|
1292
|
+
}, [(S(!0), v(h, null, w($.value, (e, t) => (S(), v("stop", {
|
|
1293
1293
|
key: `temperature_grad_stop_${t}_${k.value}`,
|
|
1294
1294
|
"stop-color": e,
|
|
1295
|
-
offset: $.value.length === 1 ? "0%" : E(
|
|
1296
|
-
}, null, 8, Nt))), 128))], 8, Mt)) :
|
|
1295
|
+
offset: $.value.length === 1 ? "0%" : E(o)(t, $.value.length)
|
|
1296
|
+
}, null, 8, Nt))), 128))], 8, Mt)) : _("", !0)
|
|
1297
1297
|
]),
|
|
1298
|
-
N.value.style.area.show && !Q.value && An.value.length ? (
|
|
1298
|
+
N.value.style.area.show && !Q.value && An.value.length ? (S(), v("g", Pt, [(S(!0), v(h, null, w(An.value, (e, t) => (S(), v("path", {
|
|
1299
1299
|
key: `sparkline_area_${t}_${k.value}`,
|
|
1300
1300
|
class: "vue-ui-sparkline-area",
|
|
1301
1301
|
"data-cy": N.value.style.line.smooth ? "sparkline-smooth-area" : "sparkline-angle-area",
|
|
1302
1302
|
d: e,
|
|
1303
|
-
fill: N.value.style.area.useGradient ? `url(#sparkline_gradient_${k.value})` : E(
|
|
1303
|
+
fill: N.value.style.area.useGradient ? `url(#sparkline_gradient_${k.value})` : E(s)(N.value.style.area.color, N.value.style.area.opacity),
|
|
1304
1304
|
"stroke-linecap": "round",
|
|
1305
1305
|
"stroke-linejoin": "round",
|
|
1306
|
-
style:
|
|
1307
|
-
}, null, 12, Ft))), 128))])) :
|
|
1308
|
-
N.value.style.line.smooth && !Q.value ? (
|
|
1306
|
+
style: x({ transition: E(P) ? void 0 : "all 0.2s" })
|
|
1307
|
+
}, null, 12, Ft))), 128))])) : _("", !0),
|
|
1308
|
+
N.value.style.line.smooth && !Q.value ? (S(), v(h, { key: 2 }, [y("path", {
|
|
1309
1309
|
id: G.value,
|
|
1310
1310
|
d: `M ${En.value || "0,0"}`,
|
|
1311
1311
|
fill: "none",
|
|
@@ -1313,7 +1313,7 @@ var mt = ["innerHTML"], ht = {
|
|
|
1313
1313
|
"stroke-width": N.value.style.line.strokeWidth,
|
|
1314
1314
|
"stroke-linecap": "round",
|
|
1315
1315
|
"stroke-linejoin": "round"
|
|
1316
|
-
}, null, 8, It), hn.value ? (
|
|
1316
|
+
}, null, 8, It), hn.value ? (S(!0), v(h, { key: 0 }, w(On.value, (e) => (S(), v("path", {
|
|
1317
1317
|
key: e.path,
|
|
1318
1318
|
class: "vue-ui-sparkline-path",
|
|
1319
1319
|
d: `M ${e.path}`,
|
|
@@ -1323,8 +1323,8 @@ var mt = ["innerHTML"], ht = {
|
|
|
1323
1323
|
"stroke-linecap": "round",
|
|
1324
1324
|
"stroke-linejoin": "round",
|
|
1325
1325
|
"stroke-dasharray": e.dashed ? N.value.style.line.dashArray : 0,
|
|
1326
|
-
style:
|
|
1327
|
-
}, null, 12, Lt))), 128)) : (
|
|
1326
|
+
style: x({ transition: E(P) ? void 0 : "all 0.2s" })
|
|
1327
|
+
}, null, 12, Lt))), 128)) : (S(), v("path", {
|
|
1328
1328
|
key: 1,
|
|
1329
1329
|
class: "vue-ui-sparkline-path",
|
|
1330
1330
|
d: `M ${En.value || "0,0"}`,
|
|
@@ -1333,9 +1333,9 @@ var mt = ["innerHTML"], ht = {
|
|
|
1333
1333
|
"stroke-width": N.value.style.line.strokeWidth,
|
|
1334
1334
|
"stroke-linecap": "round",
|
|
1335
1335
|
"stroke-linejoin": "round",
|
|
1336
|
-
style:
|
|
1337
|
-
}, null, 12, Rt))], 64)) :
|
|
1338
|
-
!N.value.style.line.smooth && !Q.value ? (
|
|
1336
|
+
style: x({ transition: E(P) ? void 0 : "all 0.2s" })
|
|
1337
|
+
}, null, 12, Rt))], 64)) : _("", !0),
|
|
1338
|
+
!N.value.style.line.smooth && !Q.value ? (S(), v(h, { key: 3 }, [y("path", {
|
|
1339
1339
|
id: G.value,
|
|
1340
1340
|
d: `M ${Dn.value || "0,0"}`,
|
|
1341
1341
|
fill: "none",
|
|
@@ -1343,7 +1343,7 @@ var mt = ["innerHTML"], ht = {
|
|
|
1343
1343
|
"stroke-width": N.value.style.line.strokeWidth,
|
|
1344
1344
|
"stroke-linecap": "round",
|
|
1345
1345
|
"stroke-linejoin": "round"
|
|
1346
|
-
}, null, 8, zt), hn.value ? (
|
|
1346
|
+
}, null, 8, zt), hn.value ? (S(!0), v(h, { key: 0 }, w(kn.value, (e) => (S(), v("path", {
|
|
1347
1347
|
key: e.path,
|
|
1348
1348
|
class: "vue-ui-sparkline-path",
|
|
1349
1349
|
d: `M ${e.path}`,
|
|
@@ -1353,8 +1353,8 @@ var mt = ["innerHTML"], ht = {
|
|
|
1353
1353
|
"stroke-linecap": "round",
|
|
1354
1354
|
"stroke-linejoin": "round",
|
|
1355
1355
|
"stroke-dasharray": e.dashed ? N.value.style.line.dashArray * 2 : 0,
|
|
1356
|
-
style:
|
|
1357
|
-
}, null, 12, Bt))), 128)) : (
|
|
1356
|
+
style: x({ transition: E(P) ? void 0 : "all 0.2s" })
|
|
1357
|
+
}, null, 12, Bt))), 128)) : (S(), v("path", {
|
|
1358
1358
|
key: 1,
|
|
1359
1359
|
class: "vue-ui-sparkline-path",
|
|
1360
1360
|
d: `M ${Dn.value || "0,0"}`,
|
|
@@ -1363,9 +1363,9 @@ var mt = ["innerHTML"], ht = {
|
|
|
1363
1363
|
"stroke-width": N.value.style.line.strokeWidth,
|
|
1364
1364
|
"stroke-linecap": "round",
|
|
1365
1365
|
"stroke-linejoin": "round",
|
|
1366
|
-
style:
|
|
1367
|
-
}, null, 12, Vt))], 64)) :
|
|
1368
|
-
jn.value && !$.value ? (
|
|
1366
|
+
style: x({ transition: E(P) ? void 0 : "all 0.2s" })
|
|
1367
|
+
}, null, 12, Vt))], 64)) : _("", !0),
|
|
1368
|
+
jn.value && !$.value ? (S(), Ee(ht, {
|
|
1369
1369
|
key: 4,
|
|
1370
1370
|
svgPathData: jn.value,
|
|
1371
1371
|
enabled: N.value.gradientPath.show && !Q.value && !$.value,
|
|
@@ -1380,8 +1380,8 @@ var mt = ["innerHTML"], ht = {
|
|
|
1380
1380
|
"highColor",
|
|
1381
1381
|
"lowColor",
|
|
1382
1382
|
"segments"
|
|
1383
|
-
])) :
|
|
1384
|
-
Yt.value && at.value ? (
|
|
1383
|
+
])) : _("", !0),
|
|
1384
|
+
Yt.value && at.value ? (S(), Ee(Ke, {
|
|
1385
1385
|
key: 5,
|
|
1386
1386
|
uid: k.value,
|
|
1387
1387
|
svgRef: E(I),
|
|
@@ -1416,8 +1416,8 @@ var mt = ["innerHTML"], ht = {
|
|
|
1416
1416
|
"prefersReducedMotion",
|
|
1417
1417
|
"loading",
|
|
1418
1418
|
"isBar"
|
|
1419
|
-
])) :
|
|
1420
|
-
(
|
|
1419
|
+
])) : _("", !0),
|
|
1420
|
+
(S(!0), v(h, null, w(J.value, (e, t) => (S(), v("g", null, [Q.value ? (S(), v("rect", {
|
|
1421
1421
|
key: 0,
|
|
1422
1422
|
x: e.x - e.width / 2,
|
|
1423
1423
|
y: isNaN(e.absoluteValue > 0 ? e.y : an.value) ? 0 : e.absoluteValue > 0 ? e.y : an.value,
|
|
@@ -1425,7 +1425,7 @@ var mt = ["innerHTML"], ht = {
|
|
|
1425
1425
|
height: isNaN(Math.abs(e.y - an.value)) ? 0 : Math.abs(e.y - an.value),
|
|
1426
1426
|
fill: e.absoluteValue > 0 ? `url(#sparkline_bar_gradient_pos_${k.value})` : `url(#sparkline_bar_gradient_neg_${k.value})`,
|
|
1427
1427
|
rx: N.value.style.bar.borderRadius
|
|
1428
|
-
}, null, 8, Ht)) :
|
|
1428
|
+
}, null, 8, Ht)) : _("", !0), N.value.style.verticalIndicator.show && (Y.value && e.id === Y.value.id || un.value === t) ? (S(), v("line", {
|
|
1429
1429
|
key: 1,
|
|
1430
1430
|
x1: e.x,
|
|
1431
1431
|
x2: e.x,
|
|
@@ -1435,19 +1435,19 @@ var mt = ["innerHTML"], ht = {
|
|
|
1435
1435
|
"stroke-width": N.value.style.verticalIndicator.strokeWidth,
|
|
1436
1436
|
"stroke-linecap": "round",
|
|
1437
1437
|
"stroke-dasharray": N.value.style.verticalIndicator.strokeDasharray || 0
|
|
1438
|
-
}, null, 8, Ut)) :
|
|
1439
|
-
en.value < 0 ? (
|
|
1438
|
+
}, null, 8, Ut)) : _("", !0)]))), 256)),
|
|
1439
|
+
en.value < 0 ? (S(), v("line", {
|
|
1440
1440
|
key: 6,
|
|
1441
1441
|
x1: q.value.start,
|
|
1442
1442
|
x2: q.value.start + q.value.width,
|
|
1443
|
-
y1: E(
|
|
1444
|
-
y2: E(
|
|
1443
|
+
y1: E(ae)(an.value, q.value.bottom),
|
|
1444
|
+
y2: E(ae)(an.value, q.value.bottom),
|
|
1445
1445
|
stroke: N.value.style.zeroLine.color,
|
|
1446
1446
|
"stroke-dasharray": N.value.style.zeroLine.strokeWidth * 2,
|
|
1447
1447
|
"stroke-width": N.value.style.zeroLine.strokeWidth,
|
|
1448
1448
|
"stroke-linecap": "round"
|
|
1449
|
-
}, null, 8, Wt)) :
|
|
1450
|
-
(
|
|
1449
|
+
}, null, 8, Wt)) : _("", !0),
|
|
1450
|
+
(S(!0), v(h, null, w(J.value, (e, t) => (S(), v("g", { key: `sparkline_plot_${e.id}` }, [bn(e, t) ? (S(), v("circle", {
|
|
1451
1451
|
key: 0,
|
|
1452
1452
|
cx: e.x,
|
|
1453
1453
|
cy: e.y,
|
|
@@ -1455,26 +1455,26 @@ var mt = ["innerHTML"], ht = {
|
|
|
1455
1455
|
fill: Pn(e),
|
|
1456
1456
|
stroke: Sn(e, t),
|
|
1457
1457
|
"stroke-width": N.value.style.plot.strokeWidth
|
|
1458
|
-
}, null, 8, Gt)) :
|
|
1459
|
-
e.showInfo && N.value.style.dataLabel.show ? (
|
|
1458
|
+
}, null, 8, Gt)) : _("", !0)]))), 128)),
|
|
1459
|
+
e.showInfo && N.value.style.dataLabel.show ? (S(), v("text", {
|
|
1460
1460
|
key: 7,
|
|
1461
1461
|
x: N.value.style.dataLabel.position === "left" ? 12 + N.value.style.dataLabel.offsetX : q.value.width + 12 + N.value.style.dataLabel.offsetX,
|
|
1462
1462
|
y: K.value.height / 2 + N.value.style.dataLabel.fontSize / 2.5 + N.value.style.dataLabel.offsetY,
|
|
1463
1463
|
"font-size": N.value.style.dataLabel.fontSize,
|
|
1464
1464
|
"font-weight": N.value.style.dataLabel.bold ? "bold" : "normal",
|
|
1465
1465
|
fill: N.value.style.dataLabel.color
|
|
1466
|
-
}, Fe(Y.value ? E(
|
|
1466
|
+
}, Fe(Y.value ? E(ie)(N.value.style.dataLabel.formatter, Y.value.absoluteValue, E(le)({
|
|
1467
1467
|
p: N.value.style.dataLabel.prefix,
|
|
1468
1468
|
v: Y.value.absoluteValue,
|
|
1469
1469
|
s: N.value.style.dataLabel.suffix,
|
|
1470
1470
|
r: N.value.style.dataLabel.roundingValue
|
|
1471
|
-
}), { datapoint: Y.value }) : E(
|
|
1471
|
+
}), { datapoint: Y.value }) : E(ie)(N.value.style.dataLabel.formatter, pn.value, E(le)({
|
|
1472
1472
|
p: N.value.style.dataLabel.prefix,
|
|
1473
1473
|
v: pn.value,
|
|
1474
1474
|
s: N.value.style.dataLabel.suffix,
|
|
1475
1475
|
r: N.value.style.dataLabel.roundingValue
|
|
1476
|
-
}))), 9, Kt)) :
|
|
1477
|
-
(
|
|
1476
|
+
}))), 9, Kt)) : _("", !0),
|
|
1477
|
+
(S(!0), v(h, null, w(J.value, (e, t) => (S(), v("rect", {
|
|
1478
1478
|
x: e.x - (q.value.width / (sn.value + 1) > K.value.padding ? K.value.padding : q.value.width / (sn.value + 1)) / 2,
|
|
1479
1479
|
y: q.value.top - 6,
|
|
1480
1480
|
height: q.value.height + 6,
|
|
@@ -1484,18 +1484,18 @@ var mt = ["innerHTML"], ht = {
|
|
|
1484
1484
|
onMouseleave: () => fn(e, t),
|
|
1485
1485
|
onClick: () => mn(e, t)
|
|
1486
1486
|
}, null, 40, qt))), 256)),
|
|
1487
|
-
|
|
1487
|
+
T(t.$slots, "svg", { svg: {
|
|
1488
1488
|
...K.value,
|
|
1489
1489
|
drawingArea: q.value,
|
|
1490
1490
|
timeLabels: cn.value,
|
|
1491
1491
|
series: J.value,
|
|
1492
1492
|
hoveredIndex: j.value
|
|
1493
1493
|
} }, void 0, !0)
|
|
1494
|
-
], 44, bt)), t.$slots.hint ? (
|
|
1494
|
+
], 44, bt)), t.$slots.hint ? (S(), v("div", Jt, [T(t.$slots, "hint", je(Ae({
|
|
1495
1495
|
hint: N.value.a11y.translations.keyboardNavigation,
|
|
1496
1496
|
isVisible: Fn.value
|
|
1497
|
-
})), void 0, !0)])) :
|
|
1498
|
-
Y.value && N.value.style.tooltip.show ? (
|
|
1497
|
+
})), void 0, !0)])) : _("", !0)]),
|
|
1498
|
+
Y.value && N.value.style.tooltip.show ? (S(), Ee(E(Be), {
|
|
1499
1499
|
key: 2,
|
|
1500
1500
|
x: Y.value.x,
|
|
1501
1501
|
y: Y.value.y,
|
|
@@ -1511,7 +1511,7 @@ var mt = ["innerHTML"], ht = {
|
|
|
1511
1511
|
borderRadius: N.value.style.tooltip.borderRadius,
|
|
1512
1512
|
backgroundOpacity: N.value.style.tooltip.backgroundOpacity
|
|
1513
1513
|
}, {
|
|
1514
|
-
default: Re(() => [
|
|
1514
|
+
default: Re(() => [T(t.$slots, "tooltip", je(Ae({ ...Y.value })), () => [De(Fe(Y.value.period) + ": " + Fe(E(ie)(N.value.style.dataLabel.formatter, Y.value.absoluteValue, E(le)({
|
|
1515
1515
|
p: N.value.style.dataLabel.prefix,
|
|
1516
1516
|
v: Y.value.absoluteValue,
|
|
1517
1517
|
s: N.value.style.dataLabel.suffix,
|
|
@@ -1532,14 +1532,14 @@ var mt = ["innerHTML"], ht = {
|
|
|
1532
1532
|
"borderColor",
|
|
1533
1533
|
"borderRadius",
|
|
1534
1534
|
"backgroundOpacity"
|
|
1535
|
-
])) :
|
|
1536
|
-
t.$slots.source ? (
|
|
1535
|
+
])) : _("", !0),
|
|
1536
|
+
t.$slots.source ? (S(), v("div", {
|
|
1537
1537
|
key: 3,
|
|
1538
1538
|
ref_key: "source",
|
|
1539
1539
|
ref: Je,
|
|
1540
1540
|
dir: "auto"
|
|
1541
|
-
}, [
|
|
1542
|
-
|
|
1541
|
+
}, [T(t.$slots, "source", {}, void 0, !0)], 512)) : _("", !0),
|
|
1542
|
+
T(t.$slots, "skeleton", {}, () => [E(P) ? (S(), Ee(ge, { key: 0 })) : _("", !0)], !0)
|
|
1543
1543
|
], 12, _t));
|
|
1544
1544
|
}
|
|
1545
1545
|
}, [["__scopeId", "data-v-9fa1c607"]]);
|