vue-data-ui 3.22.8 → 3.22.9

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.
Files changed (169) hide show
  1. package/dist/{BaseDraggableDialog-DcfGlH8A.js → BaseDraggableDialog-Av7Uxq5V.js} +1 -1
  2. package/dist/BaseIcon-UdRAvP2h.js +483 -0
  3. package/dist/{BaseLegendToggle-DtQ8vyfr.js → BaseLegendToggle-DWtet-Hh.js} +1 -1
  4. package/dist/{BaseZoomControls-C6zonwhr.js → BaseZoomControls-BY2KLqs6.js} +1 -1
  5. package/dist/{ColorPicker-CK2-h611.js → ColorPicker-DR_ummtM.js} +1 -1
  6. package/dist/{DataTable-D9NvewTT.js → DataTable-BxpTMgfK.js} +1 -1
  7. package/dist/DefGrad-DVBqDjhO.js +48 -0
  8. package/dist/{NonSvgPenAndPaper-BHHNsVVP.js → NonSvgPenAndPaper-B6EG_Sga.js} +2 -2
  9. package/dist/{PackageVersion-DW7zwRcm.js → PackageVersion-D__dRVRA.js} +1 -1
  10. package/dist/{PenAndPaper-pcgwlYr2.js → PenAndPaper-DsXi7GJ-.js} +2 -2
  11. package/dist/{Slicer-BZ5VnOOS.js → Slicer-CW_XPIKL.js} +359 -354
  12. package/dist/{SlicerPreview-BQFeCw0m.js → SlicerPreview-CTz41lOu.js} +471 -466
  13. package/dist/{UserOptions-16uF1ayB.js → UserOptions-trvJ26nz.js} +1 -1
  14. package/dist/components/vue-ui-3d-bar.js +1 -1
  15. package/dist/components/vue-ui-accordion.js +1 -1
  16. package/dist/components/vue-ui-age-pyramid.js +1 -1
  17. package/dist/components/vue-ui-annotator.js +1 -1
  18. package/dist/components/vue-ui-bullet.js +1 -1
  19. package/dist/components/vue-ui-bump.js +1 -1
  20. package/dist/components/vue-ui-candlestick.js +1 -1
  21. package/dist/components/vue-ui-carousel-table.js +1 -1
  22. package/dist/components/vue-ui-chestnut.js +1 -1
  23. package/dist/components/vue-ui-chord.js +1 -1
  24. package/dist/components/vue-ui-circle-pack.js +1 -1
  25. package/dist/components/vue-ui-cursor.js +1 -1
  26. package/dist/components/vue-ui-dag.js +1 -1
  27. package/dist/components/vue-ui-dashboard.js +1 -1
  28. package/dist/components/vue-ui-digits.js +1 -1
  29. package/dist/components/vue-ui-donut-evolution.js +1 -1
  30. package/dist/components/vue-ui-donut.js +1 -1
  31. package/dist/components/vue-ui-dumbbell.js +1 -1
  32. package/dist/components/vue-ui-flow.js +1 -1
  33. package/dist/components/vue-ui-funnel.js +1 -1
  34. package/dist/components/vue-ui-galaxy.js +1 -1
  35. package/dist/components/vue-ui-gauge.js +1 -1
  36. package/dist/components/vue-ui-geo.js +1 -1
  37. package/dist/components/vue-ui-gizmo.js +1 -1
  38. package/dist/components/vue-ui-heatmap.js +1 -1
  39. package/dist/components/vue-ui-history-plot.js +1 -1
  40. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  41. package/dist/components/vue-ui-icon.js +1 -1
  42. package/dist/components/vue-ui-kpi.js +1 -1
  43. package/dist/components/vue-ui-molecule.js +1 -1
  44. package/dist/components/vue-ui-mood-radar.js +1 -1
  45. package/dist/components/vue-ui-nested-donuts.js +1 -1
  46. package/dist/components/vue-ui-onion.js +1 -1
  47. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  48. package/dist/components/vue-ui-quadrant.js +1 -1
  49. package/dist/components/vue-ui-quick-chart.js +1 -1
  50. package/dist/components/vue-ui-radar.js +1 -1
  51. package/dist/components/vue-ui-rating.js +1 -1
  52. package/dist/components/vue-ui-relation-circle.js +1 -1
  53. package/dist/components/vue-ui-ridgeline.js +1 -1
  54. package/dist/components/vue-ui-rings.js +1 -1
  55. package/dist/components/vue-ui-scatter.js +1 -1
  56. package/dist/components/vue-ui-skeleton.js +1 -1
  57. package/dist/components/vue-ui-smiley.js +1 -1
  58. package/dist/components/vue-ui-spark-trend.js +1 -1
  59. package/dist/components/vue-ui-sparkbar.js +1 -1
  60. package/dist/components/vue-ui-sparkgauge.js +1 -1
  61. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  62. package/dist/components/vue-ui-sparkline.js +1 -1
  63. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  64. package/dist/components/vue-ui-stackbar.js +1 -1
  65. package/dist/components/vue-ui-stackline.js +1 -1
  66. package/dist/components/vue-ui-strip-plot.js +1 -1
  67. package/dist/components/vue-ui-table-heatmap.js +1 -1
  68. package/dist/components/vue-ui-table-sparkline.js +1 -1
  69. package/dist/components/vue-ui-table.js +1 -1
  70. package/dist/components/vue-ui-thermometer.js +1 -1
  71. package/dist/components/vue-ui-timer.js +1 -1
  72. package/dist/components/vue-ui-tiremarks.js +1 -1
  73. package/dist/components/vue-ui-treemap.js +1 -1
  74. package/dist/components/vue-ui-vertical-bar.js +1 -1
  75. package/dist/components/vue-ui-waffle.js +1 -1
  76. package/dist/components/vue-ui-wheel.js +1 -1
  77. package/dist/components/vue-ui-word-cloud.js +1 -1
  78. package/dist/components/vue-ui-world.js +1 -1
  79. package/dist/components/vue-ui-xy-canvas.js +1 -1
  80. package/dist/components/vue-ui-xy.js +1 -1
  81. package/dist/{package-gp9pYCfN.js → package-ByOT60IK.js} +1 -1
  82. package/dist/{render-common-CLn1VXJ9.js → render-common-D18VrP0h.js} +1 -1
  83. package/dist/ssr/vue-ui-donut.js +1 -1
  84. package/dist/ssr/vue-ui-xy.js +1 -1
  85. package/dist/ssr.js +2 -2
  86. package/dist/style.css +1 -1
  87. package/dist/{vue-data-ui-AZZ9Cq-4.js → vue-data-ui-ub3fCh6P.js} +67 -67
  88. package/dist/vue-data-ui.js +67 -67
  89. package/dist/vue-ui-3d-bar-taPI41_I.js +1825 -0
  90. package/dist/{vue-ui-accordion-YyosvEPo.js → vue-ui-accordion-CjAGqEJg.js} +1 -1
  91. package/dist/{vue-ui-age-pyramid-DTAOc7fn.js → vue-ui-age-pyramid-jvQZbF8E.js} +306 -297
  92. package/dist/{vue-ui-annotator-CfJXeAOE.js → vue-ui-annotator-BIucnT0L.js} +3 -3
  93. package/dist/{vue-ui-bullet-CCLnrOLm.js → vue-ui-bullet-CIATzlsk.js} +1 -1
  94. package/dist/{vue-ui-bump-Rq7efdoe.js → vue-ui-bump-D8MxltQE.js} +2 -2
  95. package/dist/{vue-ui-candlestick-D-Z9pEaA.js → vue-ui-candlestick-DULUMU-Q.js} +513 -502
  96. package/dist/{vue-ui-carousel-table-Lx5Zk4dG.js → vue-ui-carousel-table-BSmdexG7.js} +1 -1
  97. package/dist/vue-ui-chestnut-BIh1nQ7q.js +2042 -0
  98. package/dist/{vue-ui-chord-Db1O_diJ.js → vue-ui-chord-DL1M7cgL.js} +1 -1
  99. package/dist/vue-ui-circle-pack-C1Pgq6si.js +1614 -0
  100. package/dist/{vue-ui-cursor-DLP7wxsw.js → vue-ui-cursor-d2uLAKTQ.js} +1 -1
  101. package/dist/{vue-ui-dag-DL3zq0F2.js → vue-ui-dag-CVh9FpZr.js} +2 -2
  102. package/dist/{vue-ui-dashboard-C2ozZ-LI.js → vue-ui-dashboard-BH0N3ebj.js} +65 -65
  103. package/dist/{vue-ui-digits-ThFVNO3l.js → vue-ui-digits-R6wi3J-Y.js} +1 -1
  104. package/dist/{vue-ui-donut-BuTd6dt4.js → vue-ui-donut-BWDeVzLc.js} +1 -1
  105. package/dist/{vue-ui-donut-C3Rt6j-I.js → vue-ui-donut-BoZdciGh.js} +632 -623
  106. package/dist/vue-ui-donut-evolution-CpC9EMro.js +1522 -0
  107. package/dist/{vue-ui-dumbbell-wK7vUB0x.js → vue-ui-dumbbell-DGA5Bfnl.js} +528 -494
  108. package/dist/{vue-ui-flow-BTUNfWb7.js → vue-ui-flow-CNczKwTh.js} +1 -1
  109. package/dist/vue-ui-funnel-CaD2tZCT.js +782 -0
  110. package/dist/{vue-ui-galaxy-DJ2uNYcN.js → vue-ui-galaxy-v3cTbUiM.js} +2 -2
  111. package/dist/vue-ui-gauge-DxvMjfoc.js +926 -0
  112. package/dist/{vue-ui-geo-ovHu_Sc9.js → vue-ui-geo-BgmLkZZ2.js} +2 -2
  113. package/dist/{vue-ui-gizmo-DDxEj-qe.js → vue-ui-gizmo-n1kmcGeE.js} +66 -61
  114. package/dist/{vue-ui-heatmap-Npqnvb1r.js → vue-ui-heatmap-dSTh8ah_.js} +2 -2
  115. package/dist/{vue-ui-history-plot-C3Kjy2tc.js → vue-ui-history-plot-N8BqMFVU.js} +395 -384
  116. package/dist/{vue-ui-horizontal-bar-D1rCsgqt.js → vue-ui-horizontal-bar-CwiQxYzv.js} +360 -354
  117. package/dist/{vue-ui-kpi-BrlfYO-j.js → vue-ui-kpi-BKrUk9o8.js} +1 -1
  118. package/dist/{vue-ui-molecule-CExCqZ08.js → vue-ui-molecule--kK1JfnP.js} +295 -289
  119. package/dist/{vue-ui-mood-radar-DlVh6hwx.js → vue-ui-mood-radar-CpBRHQo_.js} +209 -204
  120. package/dist/{vue-ui-nested-donuts-3TRV8pN-.js → vue-ui-nested-donuts-8Ehwcuns.js} +307 -301
  121. package/dist/{vue-ui-onion-DwKK9DXn.js → vue-ui-onion-Cf6JiYTH.js} +2 -2
  122. package/dist/{vue-ui-parallel-coordinate-plot-DSp_cwU-.js → vue-ui-parallel-coordinate-plot-Blnqp1DB.js} +2 -2
  123. package/dist/{vue-ui-quadrant-ByVg-NBs.js → vue-ui-quadrant-CxU0jiOm.js} +366 -360
  124. package/dist/{vue-ui-quick-chart-WMzSJxGZ.js → vue-ui-quick-chart-BO98uEPl.js} +3 -3
  125. package/dist/{vue-ui-radar-DE-me6OC.js → vue-ui-radar-eH2Qih4_.js} +272 -266
  126. package/dist/{vue-ui-rating-CzD3EQ3G.js → vue-ui-rating-CN-ZiAES.js} +135 -126
  127. package/dist/{vue-ui-relation-circle-L7-dTqet.js → vue-ui-relation-circle-BIcP-aAt.js} +1 -1
  128. package/dist/vue-ui-ridgeline-ChXHzEJw.js +1628 -0
  129. package/dist/{vue-ui-rings-WzWiEo9W.js → vue-ui-rings-J990vNbX.js} +262 -256
  130. package/dist/{vue-ui-scatter-DwrAydha.js → vue-ui-scatter-BeJB0EKg.js} +642 -633
  131. package/dist/{vue-ui-skeleton-CuFm4PtB.js → vue-ui-skeleton-DC2bZ0nk.js} +336 -333
  132. package/dist/{vue-ui-smiley-D4NnZ1mg.js → vue-ui-smiley-Dyyu1je3.js} +111 -98
  133. package/dist/{vue-ui-spark-trend-C38ysZ-c.js → vue-ui-spark-trend-CpDX85H3.js} +158 -153
  134. package/dist/vue-ui-sparkbar-DhIo1qsW.js +398 -0
  135. package/dist/{vue-ui-sparkgauge-DgPc4vPT.js → vue-ui-sparkgauge-D0Fo3Hts.js} +75 -70
  136. package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +576 -0
  137. package/dist/vue-ui-sparkline-ApivEMBP.js +1560 -0
  138. package/dist/{vue-ui-sparkstackbar-DrmiWFlw.js → vue-ui-sparkstackbar-DsKQJx_n.js} +179 -167
  139. package/dist/{vue-ui-stackbar-BVdApDnY.js → vue-ui-stackbar-Ds4hXATH.js} +538 -531
  140. package/dist/vue-ui-stackline-DJbcVvmN.js +2425 -0
  141. package/dist/{vue-ui-strip-plot-C-TFNvgz.js → vue-ui-strip-plot-C3ZHf4bD.js} +368 -361
  142. package/dist/{vue-ui-table-heatmap-D0pZbBOH.js → vue-ui-table-heatmap-CNXNXXBU.js} +1 -1
  143. package/dist/{vue-ui-table-sparkline-Q6BHPKUn.js → vue-ui-table-sparkline-B9JJ4pFF.js} +1 -1
  144. package/dist/{vue-ui-table-Q3brrivC.js → vue-ui-table-uudidrYt.js} +4 -4
  145. package/dist/vue-ui-thermometer-Bvw3oQb3.js +770 -0
  146. package/dist/{vue-ui-timer-BdzKpoRj.js → vue-ui-timer-5NAWw5BN.js} +91 -86
  147. package/dist/{vue-ui-tiremarks-DWb69ofh.js → vue-ui-tiremarks-Caz_g1c5.js} +1 -1
  148. package/dist/{vue-ui-treemap-uUz07Prw.js → vue-ui-treemap-F9upPyOI.js} +458 -453
  149. package/dist/{vue-ui-waffle-Pi9e7Ae7.js → vue-ui-waffle-Bk9AsrPp.js} +296 -290
  150. package/dist/{vue-ui-wheel-DTfvWYA7.js → vue-ui-wheel-DD6Q39BA.js} +1 -1
  151. package/dist/{vue-ui-word-cloud-DqfljAqH.js → vue-ui-word-cloud-BZLT5svo.js} +2 -2
  152. package/dist/{vue-ui-world-BtBrH92Z.js → vue-ui-world-DbEJN5NA.js} +284 -273
  153. package/dist/{vue-ui-xy-Bvgy2do1.js → vue-ui-xy-BYMAITk_.js} +1294 -1268
  154. package/dist/{vue-ui-xy-D5KsuNR2.js → vue-ui-xy-Cn9Q8YPr.js} +1 -1
  155. package/dist/{vue-ui-xy-canvas-BfgeE3TW.js → vue-ui-xy-canvas-Dcm2ftwm.js} +5 -5
  156. package/package.json +1 -1
  157. package/dist/BaseIcon-C2qlyHc7.js +0 -502
  158. package/dist/vue-ui-3d-bar-B3HxJmDI.js +0 -1757
  159. package/dist/vue-ui-chestnut-RfWMGUD-.js +0 -2010
  160. package/dist/vue-ui-circle-pack-B4Ro7UuI.js +0 -1608
  161. package/dist/vue-ui-donut-evolution-DY46UPF_.js +0 -1510
  162. package/dist/vue-ui-funnel-BhoHzyHa.js +0 -777
  163. package/dist/vue-ui-gauge-Cf4NqvrO.js +0 -920
  164. package/dist/vue-ui-ridgeline-Cp3YP0xe.js +0 -1622
  165. package/dist/vue-ui-sparkbar-B03ndcUe.js +0 -393
  166. package/dist/vue-ui-sparkhistogram-D02ff7ZI.js +0 -560
  167. package/dist/vue-ui-sparkline-DlTfNQj8.js +0 -1547
  168. package/dist/vue-ui-stackline-QzQQ7lTy.js +0 -2419
  169. package/dist/vue-ui-thermometer-Bg0RR6m4.js +0 -763
@@ -0,0 +1,1560 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { $ as t, B as n, D as r, F as i, G as a, J as o, Kt as s, Lt as c, M as l, O as u, P as d, Rt as f, Tt as p, V as ee, b as te, dt as ne, f as re, i as ie, it as ae, j as oe, kt as se, l as ce, nt as le, t as ue, vt as de, z as fe, zt as m } from "./lib-JqW18y5I.js";
3
+ import { t as pe } from "./useTimeLabels-BmBRv27Y.js";
4
+ import { t as me } from "./useConfig-DYM3f6EI.js";
5
+ import { n as h, t as he } from "./BaseScanner-DZvpgOjM.js";
6
+ import { t as ge } from "./useNestedProp-DIuuzG1r.js";
7
+ import { t as _e } from "./useThemeCheck-C43Tcqmk.js";
8
+ import { t as ve } from "./_plugin-vue_export-helper-B3ysoDQm.js";
9
+ import { c as ye } from "./canvas-lib-BOP_HS11.js";
10
+ import { t as be } from "./useResponsive-BfnK0KxU.js";
11
+ import { t as xe } from "./DefGrad-DVBqDjhO.js";
12
+ import { t as Se } from "./A11yDataTable-DdRsVULz.js";
13
+ import { t as Ce } from "./useChartAccessibility-DYqac8yF.js";
14
+ import { t as we } from "./usePrefersMotion-BC-CsqR1.js";
15
+ import { t as Te } from "./vue_ui_sparkline-auZhap6Y.js";
16
+ import { Fragment as g, computed as _, createBlock as Ee, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createTextVNode as De, createVNode as Oe, defineAsyncComponent as ke, guardReactiveProps as Ae, nextTick as x, normalizeProps as je, normalizeStyle as S, onBeforeUnmount as Me, onMounted as Ne, openBlock as C, ref as w, renderList as T, renderSlot as Pe, shallowRef as Fe, toDisplayString as Ie, toRefs as Le, unref as E, watch as D, watchEffect as Re, withCtx as ze } from "vue";
17
+ //#region src/atoms/SparklinePulse.vue
18
+ var Be = {
19
+ key: 0,
20
+ style: { "pointer-events": "none" }
21
+ }, Ve = [
22
+ "r",
23
+ "fill",
24
+ "filter"
25
+ ], He = [
26
+ "begin",
27
+ "dur",
28
+ "repeatCount",
29
+ "fill",
30
+ "calcMode",
31
+ "keySplines",
32
+ "keyTimes",
33
+ "keyPoints"
34
+ ], Ue = ["href"], We = [
35
+ "dur",
36
+ "repeatCount",
37
+ "fill",
38
+ "values"
39
+ ], Ge = ["r", "fill"], O = [
40
+ "begin",
41
+ "dur",
42
+ "repeatCount",
43
+ "calcMode",
44
+ "keySplines",
45
+ "keyTimes",
46
+ "keyPoints"
47
+ ], Ke = ["href"], k = ["dur", "repeatCount"], qe = {
48
+ __name: "SparklinePulse",
49
+ props: {
50
+ uid: {
51
+ type: String,
52
+ required: !0
53
+ },
54
+ svgRef: {
55
+ type: Object,
56
+ default: null
57
+ },
58
+ pulsePathId: {
59
+ type: String,
60
+ required: !0
61
+ },
62
+ pulsePathLength: {
63
+ type: Number,
64
+ required: !0
65
+ },
66
+ pulseDur: {
67
+ type: String,
68
+ required: !0
69
+ },
70
+ pulseBegin: {
71
+ type: String,
72
+ required: !0
73
+ },
74
+ pulseRepeatCount: {
75
+ type: String,
76
+ required: !0
77
+ },
78
+ pulseFillMode: {
79
+ type: String,
80
+ default: void 0
81
+ },
82
+ pulseKeyPoints: {
83
+ type: String,
84
+ required: !0
85
+ },
86
+ pulseMotion: {
87
+ type: Object,
88
+ required: !0
89
+ },
90
+ pulse: {
91
+ type: Object,
92
+ required: !0
93
+ },
94
+ pulseTrail: {
95
+ type: Object,
96
+ required: !0
97
+ },
98
+ pulseTrailLength: {
99
+ type: Number,
100
+ required: !0
101
+ },
102
+ prefersReducedMotion: {
103
+ type: Boolean,
104
+ required: !0
105
+ },
106
+ loading: {
107
+ type: Boolean,
108
+ required: !0
109
+ },
110
+ isBar: {
111
+ type: Boolean,
112
+ required: !0
113
+ }
114
+ },
115
+ setup(e) {
116
+ let t = e, n = _(() => Math.min(t.pulseTrailLength, 45)), r = _(() => !!t.pulse?.show && !t.isBar && !t.prefersReducedMotion && !t.loading && Number(t.pulsePathLength) > 0);
117
+ function i() {
118
+ let e = t.svgRef?.value;
119
+ e && (typeof e.pauseAnimations == "function" && e.pauseAnimations(), typeof e.setCurrentTime == "function" && e.setCurrentTime(0), typeof e.unpauseAnimations == "function" && e.unpauseAnimations());
120
+ }
121
+ function a(e, t) {
122
+ if (typeof e != "string") return e;
123
+ let n = e.trim().match(/^([\d.]+)\s*(ms|s)$/);
124
+ if (!n) return e;
125
+ let r = Number(n[1]), i = n[2];
126
+ return Number.isNaN(r) ? e : `${r + t}${i}`;
127
+ }
128
+ function o(e) {
129
+ return (n.value - e) / n.value * t.pulse.radius;
130
+ }
131
+ function s(e) {
132
+ let r = t.pulse.trail.opacity, i = (n.value - e) / n.value, a = e === 0 ? 1 : i * r;
133
+ return `0;${a};${a};0`;
134
+ }
135
+ return D(() => t.loading, async (e) => {
136
+ if (e) {
137
+ i();
138
+ return;
139
+ }
140
+ await x(), i();
141
+ }), D(() => t.pulsePathId, async () => {
142
+ await x(), i();
143
+ }), Me(() => {
144
+ i();
145
+ }), (t, i) => r.value ? (C(), y("g", Be, [(C(!0), y(g, null, T(n.value, (t, n) => (C(), y(g, null, [n % 3 == 0 ? (C(), y("circle", {
146
+ key: `sparkline_dot_${n}_${e.pulsePathId}`,
147
+ r: o(n),
148
+ fill: e.pulse.color,
149
+ filter: `url(#sparkline_pulse_glow_${e.uid})`,
150
+ opacity: "0"
151
+ }, [b("animateMotion", {
152
+ begin: a(e.pulseBegin, n * 10),
153
+ dur: e.pulseDur,
154
+ repeatCount: e.pulseRepeatCount,
155
+ fill: e.pulseFillMode,
156
+ calcMode: e.pulseMotion.calcMode,
157
+ keySplines: e.pulseMotion.keySplines || void 0,
158
+ keyTimes: e.pulseMotion.keyTimes || void 0,
159
+ keyPoints: e.pulseKeyPoints,
160
+ rotate: "auto"
161
+ }, [b("mpath", { href: `#${e.pulsePathId}` }, null, 8, Ue)], 8, He), b("animate", {
162
+ attributeName: "opacity",
163
+ dur: e.pulseDur,
164
+ repeatCount: e.pulseRepeatCount,
165
+ fill: e.pulseFillMode,
166
+ values: s(n),
167
+ keyTimes: "0;0.1;0.9;1"
168
+ }, null, 8, We)], 8, Ve)) : v("", !0)], 64))), 256)), (C(), y("circle", {
169
+ key: `sparkline_halo_${e.pulsePathId}`,
170
+ r: Math.max(e.pulse.radius * 1.3),
171
+ fill: e.pulse.color,
172
+ opacity: "0"
173
+ }, [b("animateMotion", {
174
+ begin: e.pulseBegin,
175
+ dur: e.pulseDur,
176
+ repeatCount: e.pulseRepeatCount,
177
+ calcMode: e.pulseMotion.calcMode,
178
+ keySplines: e.pulseMotion.keySplines || void 0,
179
+ keyTimes: e.pulseMotion.keyTimes || void 0,
180
+ keyPoints: e.pulseKeyPoints,
181
+ rotate: "auto"
182
+ }, [b("mpath", { href: `#${e.pulsePathId}` }, null, 8, Ke)], 8, O), b("animate", {
183
+ attributeName: "opacity",
184
+ values: "0;0.35;0.35;0",
185
+ keyTimes: "0;0.15;0.85;1",
186
+ dur: e.pulseDur,
187
+ repeatCount: e.pulseRepeatCount
188
+ }, null, 8, k)], 8, Ge))])) : v("", !0);
189
+ }
190
+ }, A = {
191
+ canvas: null,
192
+ ctx: null
193
+ };
194
+ function Je() {
195
+ if (typeof document > "u") throw Error("color-utils: document is not available (browser-only).");
196
+ if (!A.canvas) {
197
+ let e = document.createElement("canvas");
198
+ e.width = 1, e.height = 1;
199
+ let t = e.getContext("2d", { willReadFrequently: !0 });
200
+ if (!t) throw Error("color-utils: unable to get 2D canvas context.");
201
+ A.canvas = e, A.ctx = t;
202
+ }
203
+ return A.ctx;
204
+ }
205
+ function Ye(e) {
206
+ return e < 0 ? 0 : e > 255 ? 255 : Math.round(e);
207
+ }
208
+ function j(e) {
209
+ return e < 0 ? 0 : e > 1 ? 1 : e;
210
+ }
211
+ function M(e, t = null) {
212
+ if (typeof e != "string" || e.trim().length === 0) throw Error("colorToRgba: inputColor must be a non-empty string.");
213
+ let n = e.trim();
214
+ if (n.toLowerCase() === "transparent") return {
215
+ red: 0,
216
+ green: 0,
217
+ blue: 0,
218
+ alpha: 0
219
+ };
220
+ let r = Xe(n, t), i = Je();
221
+ i.clearRect(0, 0, 1, 1), i.fillStyle = "#000";
222
+ let a = i.fillStyle;
223
+ if (i.fillStyle = r, i.fillStyle === a && !Ze(r)) throw Error(`colorToRgba: unsupported or invalid color "${e}".`);
224
+ i.fillRect(0, 0, 1, 1);
225
+ let o = i.getImageData(0, 0, 1, 1).data;
226
+ return {
227
+ red: o[0],
228
+ green: o[1],
229
+ blue: o[2],
230
+ alpha: o[3] / 255
231
+ };
232
+ }
233
+ function N(e, t = null) {
234
+ if (!Array.isArray(e) || e.length === 0) throw Error("colorsToRgba: colors must be a non-empty array.");
235
+ let n = Array(e.length);
236
+ for (let r = 0; r < e.length; r += 1) n[r] = M(e[r], t);
237
+ return n;
238
+ }
239
+ function Xe(e, t = null) {
240
+ return e !== "currentColor" || typeof window > "u" || !t ? e : window.getComputedStyle(t).color || e;
241
+ }
242
+ function Ze(e) {
243
+ let t = e.trim().toLowerCase();
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
+ }
246
+ function P(e) {
247
+ let t = j(e / 255);
248
+ return t <= .04045 ? t / 12.92 : ((t + .055) / 1.055) ** 2.4;
249
+ }
250
+ function F(e) {
251
+ let t = j(e), n;
252
+ return n = t <= .0031308 ? t * 12.92 : 1.055 * t ** (1 / 2.4) - .055, Ye(n * 255);
253
+ }
254
+ function Qe(e, t, n, r) {
255
+ let i = j(n);
256
+ if (r === "linearRGB") {
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
+ return {
259
+ red: F(l),
260
+ green: F(u),
261
+ blue: F(d),
262
+ alpha: e.alpha + (t.alpha - e.alpha) * i
263
+ };
264
+ }
265
+ return {
266
+ red: e.red + (t.red - e.red) * i,
267
+ green: e.green + (t.green - e.green) * i,
268
+ blue: e.blue + (t.blue - e.blue) * i,
269
+ alpha: e.alpha + (t.alpha - e.alpha) * i
270
+ };
271
+ }
272
+ //#endregion
273
+ //#region src/SPG/number-utils.js
274
+ function I(e, t, n) {
275
+ let r = e;
276
+ return r < t && (r = t), r > n && (r = n), r;
277
+ }
278
+ function L(e, t) {
279
+ let n = 10 ** t;
280
+ return Math.round(e * n) / n;
281
+ }
282
+ function R(e) {
283
+ return Number.isFinite(e) ? e.toString() : "0";
284
+ }
285
+ function $e(e) {
286
+ let t = I(e, 0, 255).toString(16);
287
+ return t.length === 1 ? "0" + t : t;
288
+ }
289
+ function et(e) {
290
+ if (typeof e != "string") return;
291
+ let t = Number.parseFloat(e);
292
+ return Number.isFinite(t) ? t : void 0;
293
+ }
294
+ function tt(e, t, n, r = !0) {
295
+ let i = n - t;
296
+ if (i === 0) return 0;
297
+ let a = (e - t) / i;
298
+ return r ? I(a, 0, 1) : a;
299
+ }
300
+ //#endregion
301
+ //#region src/SPG/index.js
302
+ var nt = "http://www.w3.org/2000/svg";
303
+ function rt(e) {
304
+ if (typeof document > "u") throw Error("SvgPathGradientAsync: document is not available (browser-only implementation).");
305
+ let t = document.createElementNS(nt, "svg");
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(nt, "path");
308
+ return e === "M " && (e = "M 0,0"), n.setAttribute("d", e), t.appendChild(n), document.body.appendChild(t), {
309
+ svgElement: t,
310
+ pathElement: n
311
+ };
312
+ }
313
+ function it(e) {
314
+ if (e) try {
315
+ e.svgElement?.remove?.();
316
+ } catch {}
317
+ }
318
+ function at(e, t, n) {
319
+ if (typeof n == "number" && n > 0) return n;
320
+ let r = t * .75;
321
+ r < .5 && (r = .5), r > 8 && (r = 8);
322
+ let i = e / 2;
323
+ return r > i && i > 0 && (r = i), r <= 0 && (r = 1), r;
324
+ }
325
+ function ot(e, t, n) {
326
+ if (typeof t == "number" && t >= 1) return Math.floor(t);
327
+ let r = Math.ceil(e / (typeof n == "number" && n > 0 ? n : 2));
328
+ return r < 1 ? 1 : r;
329
+ }
330
+ function st(e, t, n, r, i, a) {
331
+ let o = n - t, s = Math.ceil(o / r) + 1;
332
+ s < 2 && (s = 2), s > a && (s = a);
333
+ let c = s > 1 ? o / (s - 1) : 0, l = e.getPointAtLength(t), u = `M ${R(L(l.x, i))} ${R(L(l.y, i))}`;
334
+ for (let n = 1; n < s; n += 1) {
335
+ let r = t + n * c, a = e.getPointAtLength(r);
336
+ u += ` L ${R(L(a.x, i))} ${R(L(a.y, i))}`;
337
+ }
338
+ return u;
339
+ }
340
+ function ct(e, t, n, r, i, a) {
341
+ let o = n - t, s = Math.ceil(o / r) + 1;
342
+ s < 2 && (s = 2), s > a && (s = a);
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, ee = `M ${R(L(l.x, i))} ${R(L(l.y, i))}`;
344
+ for (let n = 1; n < s; n += 1) {
345
+ let r = t + n * c, a = e.getPointAtLength(r);
346
+ 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))}`;
347
+ }
348
+ return {
349
+ pathData: ee,
350
+ bounds: {
351
+ minX: u,
352
+ maxX: d,
353
+ minY: f,
354
+ maxY: p
355
+ }
356
+ };
357
+ }
358
+ function lt(e) {
359
+ if (e.length === 1) return [{
360
+ position: 0,
361
+ rgba: e[0]
362
+ }];
363
+ let t = Array(e.length), n = e.length - 1;
364
+ for (let r = 0; r < e.length; r += 1) t[r] = {
365
+ position: r / n,
366
+ rgba: e[r]
367
+ };
368
+ return t;
369
+ }
370
+ function z(e, t, n, r) {
371
+ let i = I(t, 0, 1), a = r;
372
+ for (a < 0 && (a = 0), a > e.length - 2 && (a = e.length - 2); a > 0 && i < e[a].position;) --a;
373
+ for (; a < e.length - 2 && i > e[a + 1].position;) a += 1;
374
+ let o = e[a], s = e[a + 1], c = s.position - o.position, l = c > 0 ? (i - o.position) / c : 0;
375
+ return U(B(o.rgba, s.rgba, l, n));
376
+ }
377
+ function B(e, t, n, r) {
378
+ let i = I(n, 0, 1);
379
+ if (r === "linearRGB") {
380
+ let n = V(e.red), r = V(e.green), a = V(e.blue), o = V(t.red), s = V(t.green), c = V(t.blue), l = n + (o - n) * i, u = r + (s - r) * i, d = a + (c - a) * i;
381
+ return {
382
+ red: H(l),
383
+ green: H(u),
384
+ blue: H(d),
385
+ alpha: e.alpha + (t.alpha - e.alpha) * i
386
+ };
387
+ }
388
+ return {
389
+ red: e.red + (t.red - e.red) * i,
390
+ green: e.green + (t.green - e.green) * i,
391
+ blue: e.blue + (t.blue - e.blue) * i,
392
+ alpha: e.alpha + (t.alpha - e.alpha) * i
393
+ };
394
+ }
395
+ function V(e) {
396
+ let t = I(e / 255, 0, 1);
397
+ return t <= .04045 ? t / 12.92 : ((t + .055) / 1.055) ** 2.4;
398
+ }
399
+ function H(e) {
400
+ let t = I(e, 0, 1), n;
401
+ return n = t <= .0031308 ? t * 12.92 : 1.055 * t ** (1 / 2.4) - .055, I(Math.round(n * 255), 0, 255);
402
+ }
403
+ function U(e) {
404
+ let t = I(e.alpha, 0, 1), n = I(Math.round(e.red), 0, 255), r = I(Math.round(e.green), 0, 255), i = I(Math.round(e.blue), 0, 255);
405
+ return t >= 1 ? `#${$e(n)}${$e(r)}${$e(i)}` : `rgba(${n}, ${r}, ${i}, ${L(t, 4).toString()})`;
406
+ }
407
+ function ut(e) {
408
+ let t = `fill="${W(e.fill ?? "none")}"`, n = Object.keys(e);
409
+ for (let r = 0; r < n.length; r += 1) {
410
+ let i = n[r];
411
+ if (i === "stroke" || i === "d") continue;
412
+ let a = e[i];
413
+ t += ` ${i}="${W(a)}"`;
414
+ }
415
+ return t;
416
+ }
417
+ function dt(e, t, n) {
418
+ return `<path d="${W(e)}" stroke="${W(t)}" ${n} />`;
419
+ }
420
+ function ft(e) {
421
+ let t = [], n = e.segmentAttributeMap.fill ?? "none";
422
+ t.push(`fill="${W(n)}"`), t.push(`stroke="${W(e.stroke)}"`);
423
+ for (let n of Object.keys(e.segmentAttributeMap)) {
424
+ if (n === "stroke" || n === "d") continue;
425
+ let r = e.segmentAttributeMap[n];
426
+ t.push(`${n}="${W(r)}"`);
427
+ }
428
+ return `<path d="${W(e.pathData)}" ${t.join(" ")} />`;
429
+ }
430
+ function pt(e, t) {
431
+ let n = [];
432
+ for (let e of Object.keys(t)) n.push(`${e}="${W(t[e])}"`);
433
+ return `<g data-svg-path-gradient="true"${n.length ? " " + n.join(" ") : ""}>${e.join("")}</g>`;
434
+ }
435
+ function W(e) {
436
+ return String(e).replaceAll("&", "&amp;").replaceAll("\"", "&quot;").replaceAll("<", "&lt;").replaceAll(">", "&gt;");
437
+ }
438
+ function mt(e, t = null, n = {}) {
439
+ return new Promise((r, i) => {
440
+ let a = null;
441
+ try {
442
+ if (!e || typeof e != "string") throw Error("SvgPathGradientAsync: pathData must be a non-empty string.");
443
+ let i = n.temperatureMode ?? null;
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
+ 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 = et(c["stroke-width"]), d = typeof n.strokeWidth == "number" && n.strokeWidth > 0 ? n.strokeWidth : typeof u == "number" && u > 0 ? u : 1;
447
+ a = rt(e);
448
+ let f = a.pathElement, p = f.getTotalLength(), ee = i === null ? N(t, n.colorReferenceElement) : [];
449
+ if (i === null && (!(p > 0) || ee.length === 1)) {
450
+ let t = pt([ft({
451
+ pathData: e,
452
+ stroke: U(ee[0]),
453
+ segmentAttributeMap: c
454
+ })], l);
455
+ it(a), r(t);
456
+ return;
457
+ }
458
+ let te = n.colorSpace ?? "linearRGB";
459
+ if (i !== null) {
460
+ let e = n.temperatureColors;
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
+ }
463
+ let ne = i === null ? null : N(n.temperatureColors, n.colorReferenceElement), re = i === null ? (() => {
464
+ let e = lt(ee), t = Array(e.length);
465
+ for (let n = 0; n < e.length; n += 1) t[n] = {
466
+ position: e[n].position,
467
+ rgba: e[n].rgba
468
+ };
469
+ return t;
470
+ })() : [], ie = at(p, d, n.maxSegmentLength), ae = ot(p, n.segments, ie), oe = p / ae, se = typeof n.overlap == "number" && n.overlap >= 0 ? n.overlap : d * .5, ce = oe * .45;
471
+ se > ce && (se = ce);
472
+ let le = typeof n.samplePointLimitPerSegment == "number" && n.samplePointLimitPerSegment > 10 ? n.samplePointLimitPerSegment : 250, ue = ut(c), de = [], fe = i === null ? null : [], m = i === null ? null : [], pe = 0, me = i === null ? re.length - 2 : 0, h = 0, he = () => {
473
+ let e = performance.now(), t = typeof n.frameBudgetMs == "number" ? n.frameBudgetMs : 8;
474
+ for (; h < ae && performance.now() - e < t;) {
475
+ let e = h * oe, t = (h + 1) * oe, n = e, r = t;
476
+ if (h !== 0 && (n = e - se), h !== ae - 1 && (r = t + se), n = I(n, 0, p), r = I(r, 0, p), r > n) if (i !== null) {
477
+ let e = ct(f, n, r, s, o, le);
478
+ fe.push(e.pathData), m.push(e.bounds);
479
+ } else {
480
+ let e = (n + r) * .5 / p;
481
+ for (; pe < me && e > re[pe + 1].position;) pe += 1;
482
+ let t = z(re, e, te, pe), i = st(f, n, r, s, o, le);
483
+ de.push(dt(i, t, ue));
484
+ }
485
+ h += 1;
486
+ }
487
+ if (h < ae) {
488
+ requestAnimationFrame(he);
489
+ return;
490
+ }
491
+ if (i !== null) {
492
+ let e = Infinity, t = -Infinity;
493
+ for (let n = 0; n < m.length; n += 1) {
494
+ let r = m[n], a = i === "vertical" ? r.minY : r.minX, o = i === "vertical" ? r.maxY : r.maxX;
495
+ a < e && (e = a), o > t && (t = o);
496
+ }
497
+ let n = ne[0], r = ne[1];
498
+ de.length = 0;
499
+ for (let a = 0; a < m.length; a += 1) {
500
+ let o = m[a], s = tt(((i === "vertical" ? o.minY : o.minX) + (i === "vertical" ? o.maxY : o.maxX)) * .5, e, t, !0), c = U(i === "vertical" ? Qe(n, r, s, te) : Qe(r, n, s, te)), l = fe[a];
501
+ de.push(dt(l, c, ue));
502
+ }
503
+ }
504
+ let c = pt(de, l);
505
+ it(a), r(c);
506
+ };
507
+ requestAnimationFrame(he);
508
+ } catch (e) {
509
+ it(a), i(e);
510
+ }
511
+ });
512
+ }
513
+ //#endregion
514
+ //#region src/atoms/SparklineGradientPath.vue
515
+ var ht = ["innerHTML"], gt = {
516
+ __name: "SparklineGradientPath",
517
+ props: {
518
+ svgPathData: {
519
+ type: String,
520
+ required: !0
521
+ },
522
+ enabled: {
523
+ type: Boolean,
524
+ required: !0
525
+ },
526
+ strokeWidth: {
527
+ type: Number,
528
+ required: !0
529
+ },
530
+ highColor: {
531
+ type: String,
532
+ required: !0
533
+ },
534
+ lowColor: {
535
+ type: String,
536
+ required: !0
537
+ },
538
+ segments: {
539
+ type: Number,
540
+ required: !0
541
+ }
542
+ },
543
+ setup(e) {
544
+ let t = e, n = w(""), r = 0;
545
+ return D(() => [
546
+ t.enabled,
547
+ t.svgPathData,
548
+ t.strokeWidth,
549
+ t.highColor,
550
+ t.lowColor,
551
+ t.segments
552
+ ], async ([e]) => {
553
+ let i = ++r;
554
+ if (!e) {
555
+ n.value = "";
556
+ return;
557
+ }
558
+ let a = await mt(t.svgPathData, null, {
559
+ segments: t.segments,
560
+ temperatureMode: "vertical",
561
+ temperatureColors: [t.highColor, t.lowColor],
562
+ attrs: {
563
+ "stroke-width": t.strokeWidth,
564
+ "stroke-linecap": "round",
565
+ "stroke-linejoin": "round"
566
+ },
567
+ groupAttrs: { class: "vue-ui-sparkline-gradient" }
568
+ });
569
+ i === r && (n.value = a);
570
+ }, { immediate: !0 }), (e, t) => (C(), y("g", { innerHTML: n.value }, null, 8, ht));
571
+ }
572
+ }, _t = /* @__PURE__ */ e({ default: () => G }), vt = ["id"], yt = ["id"], bt = { style: { position: "relative" } }, xt = [
573
+ "xmlns",
574
+ "viewBox",
575
+ "aria-describedby"
576
+ ], St = ["width", "height"], Ct = ["id"], wt = [
577
+ "id",
578
+ "y1",
579
+ "y2"
580
+ ], Tt = ["stop-color", "offset"], Et = { key: 1 }, Dt = [
581
+ "data-cy",
582
+ "d",
583
+ "fill"
584
+ ], Ot = [
585
+ "id",
586
+ "d",
587
+ "stroke-width"
588
+ ], kt = [
589
+ "d",
590
+ "stroke",
591
+ "stroke-width",
592
+ "stroke-dasharray"
593
+ ], At = [
594
+ "d",
595
+ "stroke",
596
+ "stroke-width"
597
+ ], jt = [
598
+ "id",
599
+ "d",
600
+ "stroke-width"
601
+ ], Mt = [
602
+ "d",
603
+ "stroke",
604
+ "stroke-width",
605
+ "stroke-dasharray"
606
+ ], Nt = [
607
+ "d",
608
+ "stroke",
609
+ "stroke-width"
610
+ ], Pt = [
611
+ "x",
612
+ "y",
613
+ "width",
614
+ "height",
615
+ "fill",
616
+ "rx"
617
+ ], Ft = [
618
+ "x1",
619
+ "x2",
620
+ "y1",
621
+ "y2",
622
+ "stroke",
623
+ "stroke-width",
624
+ "stroke-dasharray"
625
+ ], It = [
626
+ "x1",
627
+ "x2",
628
+ "y1",
629
+ "y2",
630
+ "stroke",
631
+ "stroke-dasharray",
632
+ "stroke-width"
633
+ ], Lt = [
634
+ "cx",
635
+ "cy",
636
+ "r",
637
+ "fill",
638
+ "stroke",
639
+ "stroke-width"
640
+ ], Rt = [
641
+ "x",
642
+ "y",
643
+ "font-size",
644
+ "font-weight",
645
+ "fill"
646
+ ], zt = [
647
+ "x",
648
+ "y",
649
+ "height",
650
+ "width",
651
+ "onMouseenter",
652
+ "onMouseleave",
653
+ "onClick"
654
+ ], Bt = {
655
+ key: 0,
656
+ style: {
657
+ position: "absolute",
658
+ top: "100%",
659
+ left: "0",
660
+ width: "100%"
661
+ },
662
+ "data-dom-to-png-ignore": "",
663
+ "aria-hidden": "true"
664
+ }, G = /*#__PURE__*/ ve({
665
+ __name: "vue-ui-sparkline",
666
+ props: {
667
+ config: {
668
+ type: Object,
669
+ default() {
670
+ return {};
671
+ }
672
+ },
673
+ dataset: {
674
+ type: Array,
675
+ default() {
676
+ return [];
677
+ }
678
+ },
679
+ showInfo: {
680
+ type: Boolean,
681
+ default: !0
682
+ },
683
+ selectedIndex: {
684
+ type: Number,
685
+ default: void 0
686
+ },
687
+ heightRatio: {
688
+ type: Number,
689
+ default: 1
690
+ },
691
+ forcedPadding: {
692
+ type: Number,
693
+ default: 30
694
+ }
695
+ },
696
+ emits: ["hoverIndex", "selectDatapoint"],
697
+ setup(e, { emit: ve }) {
698
+ let Be = ke(() => import("./PackageVersion-D__dRVRA.js").then((e) => e.t)), Ve = ke(() => import("./SparkTooltip-BTLN-Kex.js")), { vue_ui_sparkline: He } = me(), { isThemeValid: Ue, warnInvalidTheme: We } = _e(), Ge = we(), O = e, Ke = _(() => Array.isArray(O.dataset) && O.dataset.length > 0), k = w(a()), A = w(null), Je = w(null), Ye = w(null), j = w(null), M = w(null), N = w(L());
699
+ function Xe(e) {
700
+ return O.config?.skeletonDataset && Array.isArray(O.config.skeletonDataset) ? O.config.skeletonDataset.map((e) => ({
701
+ period: "-",
702
+ value: e
703
+ })) : le(e).map((e) => ({
704
+ period: "-",
705
+ value: e
706
+ }));
707
+ }
708
+ let Ze = _(() => s({
709
+ defaultConfig: {
710
+ gradientPath: { show: !1 },
711
+ temperatureColors: { show: !1 },
712
+ style: {
713
+ backgroundColor: "#99999930",
714
+ scaleMin: 0,
715
+ scaleMax: null,
716
+ animation: { show: !1 },
717
+ line: {
718
+ color: "#AAAAAA",
719
+ pulse: { show: !1 },
720
+ dashIndices: []
721
+ },
722
+ bar: { color: "#AAAAAA" },
723
+ area: { color: "#CACACA" },
724
+ zeroLine: { color: "#6A6A6A" },
725
+ dataLabel: { show: !1 },
726
+ tooltip: { show: !1 }
727
+ }
728
+ },
729
+ userConfig: N.value.skeletonConfig ?? {}
730
+ })), { loading: P, FINAL_DATASET: F, manualLoading: Qe } = h({
731
+ ...Le(O),
732
+ FINAL_CONFIG: N,
733
+ prepareConfig: L,
734
+ callback: () => {
735
+ Promise.resolve().then(async () => {
736
+ await x(), ht();
737
+ });
738
+ },
739
+ skeletonDataset: Xe(12),
740
+ skeletonConfig: s({
741
+ defaultConfig: N.value,
742
+ userConfig: Ze.value
743
+ })
744
+ }), { svgRef: I } = Ce({ config: N.value.style.title });
745
+ function L() {
746
+ let e = ge({
747
+ userConfig: O.config,
748
+ defaultConfig: He
749
+ }), t = {}, n = e.theme;
750
+ if (n) if (!Ue.value(e)) We(e), t = e;
751
+ else {
752
+ let r = ge({
753
+ userConfig: Te[n] || O.config,
754
+ defaultConfig: e
755
+ });
756
+ t = { ...ge({
757
+ userConfig: O.config,
758
+ defaultConfig: r
759
+ }) };
760
+ }
761
+ else t = e;
762
+ return t;
763
+ }
764
+ let R = _(() => N.value?.style?.line.pulse || {}), $e = _(() => `${Math.max(200, Number(R.value.durationMs) || 4e3) / 1e3}s`), et = w(0), tt = _(() => R.value?.begin || "0ms"), nt = w("0;1"), rt = _(() => R.value?.loop === !1 ? "1" : "indefinite"), it = _(() => R.value?.loop === !1 ? "freeze" : void 0), at = _(() => R.value.trail.show && lt.value.lengthPx || 1), ot = _(() => !!R.value?.show && !Q.value && !Ge.value && !P.value && (J.value?.length || 0) > 1);
765
+ function st() {
766
+ if (!ot.value) {
767
+ et.value = 0;
768
+ return;
769
+ }
770
+ let e = I.value;
771
+ if (!e) return;
772
+ let t = `#${G.value}`, n = e.querySelector?.(t);
773
+ if (n && typeof n.getTotalLength == "function") {
774
+ let e = n.getTotalLength();
775
+ Number.isFinite(e) && e > 0 && (et.value = e);
776
+ return;
777
+ }
778
+ requestAnimationFrame(() => {
779
+ let n = e.querySelector?.(t);
780
+ if (n && typeof n.getTotalLength == "function") {
781
+ let e = n.getTotalLength();
782
+ Number.isFinite(e) && e > 0 && (et.value = e);
783
+ }
784
+ });
785
+ }
786
+ let ct = _(() => {
787
+ let e = R.value?.easing || "ease-in-out", t = {
788
+ ease: [
789
+ .25,
790
+ .1,
791
+ .25,
792
+ 1
793
+ ],
794
+ "ease-in": [
795
+ .42,
796
+ 0,
797
+ 1,
798
+ 1
799
+ ],
800
+ "ease-out": [
801
+ 0,
802
+ 0,
803
+ .58,
804
+ 1
805
+ ],
806
+ "ease-in-out": [
807
+ .42,
808
+ 0,
809
+ .58,
810
+ 1
811
+ ]
812
+ };
813
+ return e === "linear" ? {
814
+ calcMode: "linear",
815
+ keySplines: null,
816
+ keyTimes: "0;1"
817
+ } : e === "steps" ? {
818
+ calcMode: "discrete",
819
+ keySplines: null,
820
+ keyTimes: "0;1"
821
+ } : {
822
+ calcMode: "spline",
823
+ keySplines: (e === "cubic-bezier" ? Array.isArray(R.value?.cubicBezier) && R.value.cubicBezier.length === 4 ? R.value.cubicBezier : [
824
+ .4,
825
+ 0,
826
+ .2,
827
+ 1
828
+ ] : t[e] || t["ease-in-out"]).join(" "),
829
+ keyTimes: "0;1"
830
+ };
831
+ }), lt = _(() => {
832
+ let e = R.value?.trail || {}, t = N.value.style.line.strokeWidth || 1;
833
+ return {
834
+ show: e.show !== !1,
835
+ lengthPx: e.length,
836
+ width: Math.max(1, Number(e.strokeWidth) || t * 2.2),
837
+ opacity: Math.min(1, Math.max(0, Number(e.opacity) ?? .6)),
838
+ fadeIn: .5,
839
+ fadeOut: .2
840
+ };
841
+ }), z = _(() => p({
842
+ data: F.value,
843
+ threshold: N.value.downsample.threshold
844
+ }));
845
+ _(() => {
846
+ if (!N.value.temperatureColors.show) return !1;
847
+ let e = F.value.map(({ value: e }) => e).filter((e) => Number.isFinite(e));
848
+ return new Set(e).size <= 1;
849
+ }), D(() => O.config, (e) => {
850
+ P.value || (N.value = L()), Wt(), K.value.chartWidth = N.value.style.chartWidth;
851
+ }, { deep: !0 }), D(() => O.dataset, (e) => {
852
+ Array.isArray(e) && e.length > 0 && (Qe.value = !1), B.value = p({
853
+ data: F.value.map((e) => ({
854
+ ...e,
855
+ value: [void 0].includes(e.value) ? null : e.value
856
+ })),
857
+ threshold: N.value.downsample.threshold
858
+ });
859
+ }, { deep: !0 });
860
+ let B = w(V());
861
+ function V() {
862
+ return p({
863
+ data: F.value.map((e) => N.value.style.animation.show && F.value.length > 1 ? {
864
+ ...e,
865
+ value: null
866
+ } : {
867
+ ...e,
868
+ value: [void 0].includes(e.value) ? null : e.value
869
+ }),
870
+ threshold: N.value.downsample.threshold
871
+ });
872
+ }
873
+ let H = Fe(null), U = Fe(null), ut = w(!1), dt = w(0), ft = w([]), pt = w(""), W = _(() => {
874
+ 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;
875
+ return `${e}#${!!t.show}#${t.animationFrames || 0}#${n}`;
876
+ });
877
+ function mt() {
878
+ dt.value &&= (cancelAnimationFrame(dt.value), 0), ft.value.forEach((e) => clearTimeout(e)), ft.value = [], ut.value = !1;
879
+ }
880
+ function ht() {
881
+ let e = N.value?.style?.animation || {}, t = z.value || [], n = W.value, r = !!N.value.gradientPath.show && !N.value.temperatureColors.show;
882
+ if (n && n === pt.value && (ut.value || B.value.length === t.length)) return;
883
+ if (mt(), r || !e.show || P.value || t.length <= 1) {
884
+ B.value = t, pt.value = n;
885
+ return;
886
+ }
887
+ ut.value = !0, pt.value = n, B.value = [];
888
+ let i = Math.max(1, Number(e.animationFrames) || 1), a = Math.max(1, Math.floor(i / t.length)), o = 0, s = () => {
889
+ if (n !== W.value) {
890
+ mt();
891
+ return;
892
+ }
893
+ if (o < t.length) {
894
+ B.value.push(t[o]);
895
+ let e = setTimeout(() => {
896
+ dt.value = requestAnimationFrame(s);
897
+ }, a);
898
+ ft.value.push(e), o += 1;
899
+ } else B.value = t, mt();
900
+ };
901
+ dt.value = requestAnimationFrame(s);
902
+ }
903
+ D(W, () => {
904
+ ht();
905
+ }), Ne(() => {
906
+ Wt(), ht();
907
+ }), Me(() => {
908
+ mt();
909
+ });
910
+ let _t = w(0);
911
+ D(() => P.value, async (e) => {
912
+ e || (await x(), _t.value += 1);
913
+ }), D(() => ut.value, async (e) => {
914
+ e || P.value || (await x(), _t.value += 1);
915
+ });
916
+ let G = _(() => `sparkline_line_path_${k.value}`), Vt = w(!0);
917
+ async function Ht() {
918
+ Vt.value = !1, await x(), Vt.value = !0, await x(), st();
919
+ }
920
+ let Ut = _(() => !!N.value.debug);
921
+ function Wt() {
922
+ if (se(O.dataset) ? (t({
923
+ componentName: "VueUiSparkline",
924
+ type: "dataset",
925
+ debug: Ut.value
926
+ }), Qe.value = !0) : O.dataset.forEach((e, n) => {
927
+ ne({
928
+ datasetObject: e,
929
+ requiredAttributes: ["period", "value"]
930
+ }).forEach((e) => {
931
+ t({
932
+ componentName: "VueUiSparkline",
933
+ type: "datasetSerieAttribute",
934
+ property: e,
935
+ index: n,
936
+ debug: Ut.value
937
+ });
938
+ });
939
+ }), se(O.dataset) || (Qe.value = N.value.loading), N.value.responsive) {
940
+ let e = ye(() => {
941
+ let { width: e, height: t } = be({
942
+ chart: A.value,
943
+ title: N.value.style.title.show && O.showInfo ? Je.value : null,
944
+ source: Ye.value
945
+ });
946
+ requestAnimationFrame(() => {
947
+ K.value.width = e, K.value.height = t, K.value.chartWidth = N.value.style.chartWidth / 500 * e, K.value.padding = O.forcedPadding / 500 * e;
948
+ });
949
+ });
950
+ 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);
951
+ }
952
+ }
953
+ Me(() => {
954
+ H.value && (U.value && H.value.unobserve(U.value), H.value.disconnect());
955
+ });
956
+ let K = w({
957
+ height: 80 * O.heightRatio,
958
+ width: 500,
959
+ chartWidth: N.value.style.chartWidth,
960
+ padding: O.forcedPadding
961
+ }), Gt = ve, q = _(() => {
962
+ let { top: e, right: t, bottom: n, left: r } = N.value.style.padding;
963
+ return {
964
+ top: e,
965
+ left: r,
966
+ right: K.value.width - t,
967
+ bottom: K.value.height - n,
968
+ start: O.showInfo && N.value.style.dataLabel.show && N.value.style.dataLabel.position === "left" ? K.value.width - K.value.chartWidth + r : K.value.padding + r,
969
+ width: O.showInfo && N.value.style.dataLabel.show ? K.value.chartWidth - r - t : K.value.width - K.value.padding - r - t,
970
+ height: K.value.height - e - n
971
+ };
972
+ }), Kt = _(() => [null, void 0].includes(N.value.style.scaleMin) ? Math.min(...B.value.map((e) => isNaN(e.value) || [
973
+ void 0,
974
+ null,
975
+ "NaN",
976
+ NaN,
977
+ Infinity,
978
+ -Infinity
979
+ ].includes(e.value) ? 0 : e.value || 0)) : N.value.style.scaleMin), qt = _(() => [null, void 0].includes(N.value.style.scaleMax) ? Math.max(...B.value.map((e) => isNaN(e.value) || [
980
+ void 0,
981
+ null,
982
+ "NaN",
983
+ NaN,
984
+ Infinity,
985
+ -Infinity
986
+ ].includes(e.value) ? 0 : e.value || 0)) : N.value.style.scaleMax), Jt = _(() => {
987
+ let e = Kt.value >= 0 ? 0 : Kt.value;
988
+ return Math.abs(e);
989
+ }), Yt = _(() => qt.value + Jt.value), Xt = _(() => q.value.bottom - q.value.height * Zt(Jt.value));
990
+ function Zt(e) {
991
+ return isNaN(e / Yt.value) ? 0 : e / Yt.value;
992
+ }
993
+ let Qt = _(() => z.value.length - 1 || 1), $t = w([]), en = 0;
994
+ Re(() => {
995
+ let e = ++en;
996
+ (async () => {
997
+ let t = await pe({
998
+ values: z.value.map((e) => e.period),
999
+ maxDatapoints: z.value.length,
1000
+ formatter: N.value.style.dataLabel.datetimeFormatter,
1001
+ start: 0,
1002
+ end: z.value.length
1003
+ });
1004
+ e === en && ($t.value = t);
1005
+ })();
1006
+ });
1007
+ let J = _(() => B.value.map((e, t) => {
1008
+ let n = isNaN(e.value) || [
1009
+ void 0,
1010
+ "NaN",
1011
+ NaN,
1012
+ Infinity,
1013
+ -Infinity
1014
+ ].includes(e.value) ? 0 : e.value, r = q.value.width / Qt.value;
1015
+ return {
1016
+ value: e.value,
1017
+ absoluteValue: n,
1018
+ period: $t.value && $t.value[t] && $t.value[t].text ? $t.value[t].text : e.period,
1019
+ plotValue: n + Jt.value,
1020
+ toMax: Zt(n + Jt.value),
1021
+ x: q.value.start + t * r,
1022
+ y: q.value.bottom - q.value.height * Zt(n + Jt.value),
1023
+ id: `plot_${k.value}_${t}`,
1024
+ color: Q.value ? N.value.style.bar.color : N.value.style.area.useGradient ? m(N.value.style.line.color, .05 * (1 - t / Qt.value)) : N.value.style.line.color,
1025
+ width: r
1026
+ };
1027
+ })), tn = _(() => 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 = w(void 0), X = w(void 0);
1028
+ function nn(e, t) {
1029
+ N.value.events.datapointEnter && N.value.events.datapointEnter({
1030
+ datapoint: e,
1031
+ seriesIndex: t
1032
+ }), M.value = t, j.value = t, Y.value = e, X.value ||= e, Gt("hoverIndex", { index: t });
1033
+ }
1034
+ function rn(e, t) {
1035
+ N.value.events.datapointLeave && N.value.events.datapointLeave({
1036
+ datapoint: e,
1037
+ seriesIndex: t
1038
+ }), X.value = Y.value, Y.value = void 0, M.value = null, j.value = null, Gt("hoverIndex", { index: void 0 });
1039
+ }
1040
+ let Z = _(() => {
1041
+ if (Ke.value) {
1042
+ let e = J.value.map((e) => e.absoluteValue), t = e.reduce((e, t) => e + t, 0);
1043
+ return {
1044
+ latest: J.value[J.value.length - 1] ? J.value[J.value.length - 1].absoluteValue : 0,
1045
+ sum: t,
1046
+ average: t / J.value.length,
1047
+ median: re(e),
1048
+ trend: ce(J.value.map(({ x: e, y: t, absoluteValue: n }) => ({
1049
+ x: e,
1050
+ y: t,
1051
+ value: n
1052
+ }))).trend
1053
+ };
1054
+ } else return {
1055
+ latest: null,
1056
+ sum: null,
1057
+ average: null,
1058
+ median: null,
1059
+ trend: null
1060
+ };
1061
+ }), an = _(() => Ke.value ? N.value.style.dataLabel.valueType === "latest" ? Z.value.latest : N.value.style.dataLabel.valueType === "sum" ? Z.value.sum : N.value.style.dataLabel.valueType === "average" ? Z.value.average : 0 : 0), Q = _(() => N.value.type && N.value.type === "bar");
1062
+ function on(e, t) {
1063
+ N.value.events.datapointClick && N.value.events.datapointClick({
1064
+ datapoint: e,
1065
+ seriesIndex: t
1066
+ }), Gt("selectDatapoint", {
1067
+ datapoint: e,
1068
+ index: t
1069
+ });
1070
+ }
1071
+ let sn = _(() => Array.isArray(N.value.style.line.dashIndices) && N.value.style.line.dashIndices.length > 0), cn = _(() => N.value.style.line.cutNullValues);
1072
+ function ln(e) {
1073
+ return ![
1074
+ null,
1075
+ void 0,
1076
+ "NaN",
1077
+ NaN,
1078
+ Infinity,
1079
+ -Infinity
1080
+ ].includes(e);
1081
+ }
1082
+ function un(e, t) {
1083
+ 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;
1084
+ return ln(e[t]?.value) && i && cn.value;
1085
+ }
1086
+ function dn(e, t) {
1087
+ return Y.value && e.id === Y.value.id || tn.value === t || F.value.length === 1;
1088
+ }
1089
+ function fn(e, t) {
1090
+ return Q.value || !ln(e?.value) ? !1 : N.value.style.plot.show && dn(e, t) || un(J.value, t);
1091
+ }
1092
+ function pn(e, t) {
1093
+ return Math.max(1, dn(e, t) ? N.value.style.plot.radius : N.value.style.plot.radius * .7);
1094
+ }
1095
+ function mn(e, t) {
1096
+ return dn(e, t) ? N.value.style.plot.stroke : N.value.style.backgroundColor;
1097
+ }
1098
+ let hn = _(() => cn.value ? J.value : J.value.filter((e) => e.value !== null)), gn = _(() => J.value.filter((e) => e.value !== null)), _n = _(() => gn.value.length > 1), vn = _(() => Q.value || !_n.value ? "" : cn.value ? d(J.value) : l(hn.value)), yn = _(() => Q.value || !_n.value ? "" : cn.value ? n(J.value) : fe(hn.value)), bn = _(() => Q.value || !sn.value || !_n.value ? [] : i(hn.value, N.value.style.line.dashIndices)), xn = _(() => Q.value || !sn.value || !_n.value ? [] : ee(hn.value, N.value.style.line.dashIndices)), Sn = _(() => Q.value || !N.value.style.area.show || !_n.value ? [] : N.value.style.line.smooth ? oe(hn.value, q.value.bottom, cn.value).filter(Boolean) : (cn.value ? u(J.value, q.value.bottom) : r(hn.value, q.value.bottom)).split(";").filter(Boolean).map((e) => `M${e}Z`)), Cn = _(() => Q.value || !N.value.gradientPath.show || N.value.temperatureColors.show ? "" : `M ${(N.value.style.line.smooth ? vn.value : yn.value) || "0,0"}`), wn = _(() => {
1099
+ if (!N.value.temperatureColors.show) return null;
1100
+ let e = N.value.temperatureColors.colors;
1101
+ return !Array.isArray(e) || !e.length ? null : e.map((e) => te(e));
1102
+ }), $ = _(() => {
1103
+ if (!N.value.temperatureColors.show) return null;
1104
+ let e = N.value.temperatureColors.colors;
1105
+ return !Array.isArray(e) || !e.length ? null : e.map((e) => te(e));
1106
+ });
1107
+ function Tn(e) {
1108
+ if (!Number.isFinite(e?.y)) return 0;
1109
+ let t = q.value.height || 1, n = (e.y - q.value.top) / t;
1110
+ return Math.min(1, Math.max(0, n));
1111
+ }
1112
+ function En(e) {
1113
+ let t = wn.value;
1114
+ return !Array.isArray(t) || !t.length ? e.color : de({
1115
+ colors: t,
1116
+ ratio: Tn(e)
1117
+ });
1118
+ }
1119
+ D(() => [
1120
+ ot.value,
1121
+ G.value,
1122
+ J.value.length,
1123
+ K.value.width,
1124
+ K.value.height,
1125
+ N.value?.style?.line?.smooth
1126
+ ], async () => {
1127
+ await x(), st();
1128
+ }, { immediate: !0 }), Ne(async () => {
1129
+ await x(), st();
1130
+ }), D(() => P.value, async (e) => {
1131
+ e || await Ht();
1132
+ }), D(() => ut.value, async (e) => {
1133
+ e || P.value || await Ht();
1134
+ }), D(() => O.selectedIndex, (e) => {
1135
+ if (e == null) {
1136
+ M.value = null, j.value = null, Y.value = void 0;
1137
+ return;
1138
+ }
1139
+ if (e < 0 || e >= J.value.length) return;
1140
+ let t = J.value[e];
1141
+ t && (M.value = e, j.value = e, Y.value = t);
1142
+ });
1143
+ let Dn = w(!1);
1144
+ function On() {
1145
+ let e = tn.value;
1146
+ if (e !== null && e >= 0 && e < J.value.length) {
1147
+ let t = J.value[e];
1148
+ if (t) {
1149
+ j.value = e, Y.value = t, M.value = e, Dn.value = !0;
1150
+ return;
1151
+ }
1152
+ }
1153
+ j.value = null, !Y.value && J.value.length && nn(J.value.at(-1), J.value.length - 1), Dn.value = !0;
1154
+ }
1155
+ function kn() {
1156
+ X.value = Y.value, (O.selectedIndex === void 0 || O.selectedIndex === null) && (j.value = null, Y.value = void 0, M.value = null, Gt("hoverIndex", { index: void 0 })), Dn.value = !1;
1157
+ }
1158
+ function An(e) {
1159
+ if (!I.value || document.activeElement !== I.value) return;
1160
+ X.value = Y.value;
1161
+ let t = e.key === "ArrowLeft", n = e.key === "ArrowRight";
1162
+ if (!t && !n) return;
1163
+ let r = J.value.length;
1164
+ if (!r) return;
1165
+ e.preventDefault(), e.stopPropagation();
1166
+ let i = j.value, a = i !== null && i >= 0 && i < r, o = Y.value ? J.value.findIndex((e) => e.id === Y.value.id) : -1;
1167
+ 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;
1168
+ let s = J.value[i];
1169
+ s && (j.value = i, nn(s, i));
1170
+ }
1171
+ let jn = _(() => ({
1172
+ headers: [N.value.translations.period, N.value.translations.value],
1173
+ rows: J.value.map((e) => [e.period, e.absoluteValue])
1174
+ }));
1175
+ return (t, n) => (C(), y("div", {
1176
+ ref_key: "sparklineChart",
1177
+ ref: A,
1178
+ class: "vue-data-ui-component vue-ui-sparkline",
1179
+ id: k.value,
1180
+ style: S(`width:100%;font-family:${N.value.style.fontFamily};`)
1181
+ }, [
1182
+ b("p", {
1183
+ id: `chart-instructions-${k.value}`,
1184
+ class: "sr-only"
1185
+ }, Ie(N.value.a11y.translations.keyboardNavigation), 9, yt),
1186
+ jn.value?.rows?.length ? (C(), Ee(Se, {
1187
+ key: 0,
1188
+ uid: k.value,
1189
+ head: jn.value.headers,
1190
+ body: jn.value.rows,
1191
+ notice: N.value.a11y.translations.tableAvailable,
1192
+ caption: N.value.a11y.translations.tableCaption
1193
+ }, null, 8, [
1194
+ "uid",
1195
+ "head",
1196
+ "body",
1197
+ "notice",
1198
+ "caption"
1199
+ ])) : v("", !0),
1200
+ Pe(t.$slots, "before", je(Ae({
1201
+ selected: Y.value,
1202
+ latest: Z.value.latest,
1203
+ sum: Z.value.sum,
1204
+ average: Z.value.average,
1205
+ median: Z.value.median,
1206
+ trend: Z.value.trend
1207
+ })), void 0, !0),
1208
+ N.value.style.title.show && e.showInfo ? (C(), y("div", {
1209
+ key: 1,
1210
+ ref_key: "chartTitle",
1211
+ ref: Je,
1212
+ class: "vue-ui-sparkline-title",
1213
+ style: S(`display:flex;align-items:center;width:100%;color:${N.value.style.title.color};background:${N.value.style.backgroundColor};justify-content:${N.value.style.title.textAlign === "left" ? "flex-start" : N.value.style.title.textAlign === "right" ? "flex-end" : "center"};height:${N.value.style.title.fontSize * 2}px;font-size:${N.value.style.title.fontSize}px;font-weight:${N.value.style.title.bold ? "bold" : "normal"};`)
1214
+ }, [b("span", { style: S(`padding:${N.value.style.title.textAlign === "left" ? "0 0 0 12px" : N.value.style.title.textAlign === "right" ? "0 12px 0 0" : "0"}`) }, Ie(Y.value ? Y.value.period : N.value.style.title.text), 5)], 4)) : v("", !0),
1215
+ b("div", bt, [(C(), y("svg", {
1216
+ ref_key: "svgRef",
1217
+ ref: I,
1218
+ xmlns: E(ue),
1219
+ viewBox: `0 0 ${K.value.width} ${K.value.height}`,
1220
+ style: S(`background:${N.value.style.backgroundColor};overflow:visible;direction:ltr`),
1221
+ tabindex: "0",
1222
+ "aria-describedby": `chart-instructions-${k.value}`,
1223
+ onMouseleave: n[0] ||= (e) => X.value = void 0,
1224
+ onFocus: On,
1225
+ onBlur: kn,
1226
+ onKeydown: An
1227
+ }, [
1228
+ Oe(E(Be)),
1229
+ t.$slots["chart-background"] ? (C(), y("foreignObject", {
1230
+ key: 0,
1231
+ x: 0,
1232
+ y: 0,
1233
+ width: K.value.width <= 0 ? 10 : K.value.width,
1234
+ height: K.value.height <= 0 ? 10 : K.value.height,
1235
+ style: { pointerEvents: "none" }
1236
+ }, [Pe(t.$slots, "chart-background", {}, void 0, !0)], 8, St)) : v("", !0),
1237
+ b("defs", null, [
1238
+ Oe(xe, {
1239
+ t: "linear",
1240
+ x1: "0%",
1241
+ y1: "0%",
1242
+ x2: "100%",
1243
+ y2: "0%",
1244
+ id: `sparkline_gradient_${k.value}`,
1245
+ stops: [[
1246
+ "0%",
1247
+ E(f)(E(m)(N.value.style.area.color, .05), N.value.style.area.opacity),
1248
+ 1
1249
+ ], [
1250
+ "100%",
1251
+ E(f)(N.value.style.area.color, N.value.style.area.opacity),
1252
+ 1
1253
+ ]]
1254
+ }, null, 8, ["id", "stops"]),
1255
+ Oe(xe, {
1256
+ t: "linear",
1257
+ x2: "0%",
1258
+ y2: "100%",
1259
+ id: `sparkline_bar_gradient_pos_${k.value}`,
1260
+ stops: [[
1261
+ "0%",
1262
+ N.value.style.bar.color,
1263
+ 1
1264
+ ], [
1265
+ "100%",
1266
+ E(m)(N.value.style.bar.color, .05),
1267
+ 1
1268
+ ]]
1269
+ }, null, 8, ["id", "stops"]),
1270
+ Oe(xe, {
1271
+ t: "linear",
1272
+ x2: "0%",
1273
+ y2: "100%",
1274
+ id: `sparkline_bar_gradient_neg_${k.value}`,
1275
+ stops: [[
1276
+ "0%",
1277
+ E(m)(N.value.style.bar.color, .05),
1278
+ 1
1279
+ ], [
1280
+ "100%",
1281
+ N.value.style.bar.color,
1282
+ 1
1283
+ ]]
1284
+ }, null, 8, ["id", "stops"]),
1285
+ b("filter", {
1286
+ id: `sparkline_pulse_glow_${k.value}`,
1287
+ filterUnits: "userSpaceOnUse",
1288
+ x: "-50",
1289
+ y: "-50",
1290
+ width: "100",
1291
+ height: "100"
1292
+ }, [...n[1] ||= [b("feGaussianBlur", {
1293
+ in: "SourceGraphic",
1294
+ stdDeviation: "3",
1295
+ result: "blur"
1296
+ }, null, -1), b("feMerge", null, [b("feMergeNode", { in: "blur" }), b("feMergeNode", { in: "SourceGraphic" })], -1)]], 8, Ct),
1297
+ N.value.temperatureColors.show && $.value ? (C(), y("linearGradient", {
1298
+ key: 0,
1299
+ id: `temperature_grad_sparkline_${k.value}`,
1300
+ gradientUnits: "userSpaceOnUse",
1301
+ x1: "0",
1302
+ x2: "0",
1303
+ y1: q.value.top,
1304
+ y2: q.value.bottom
1305
+ }, [(C(!0), y(g, null, T($.value, (e, t) => (C(), y("stop", {
1306
+ key: `temperature_grad_stop_${t}_${k.value}`,
1307
+ "stop-color": e,
1308
+ offset: $.value.length === 1 ? "0%" : E(c)(t, $.value.length)
1309
+ }, null, 8, Tt))), 128))], 8, wt)) : v("", !0)
1310
+ ]),
1311
+ N.value.style.area.show && !Q.value && Sn.value.length ? (C(), y("g", Et, [(C(!0), y(g, null, T(Sn.value, (e, t) => (C(), y("path", {
1312
+ key: `sparkline_area_${t}_${k.value}`,
1313
+ class: "vue-ui-sparkline-area",
1314
+ "data-cy": N.value.style.line.smooth ? "sparkline-smooth-area" : "sparkline-angle-area",
1315
+ d: e,
1316
+ fill: N.value.style.area.useGradient ? `url(#sparkline_gradient_${k.value})` : E(f)(N.value.style.area.color, N.value.style.area.opacity),
1317
+ "stroke-linecap": "round",
1318
+ "stroke-linejoin": "round",
1319
+ style: S({ transition: E(P) ? void 0 : "all 0.2s" })
1320
+ }, null, 12, Dt))), 128))])) : v("", !0),
1321
+ N.value.style.line.smooth && !Q.value ? (C(), y(g, { key: 2 }, [b("path", {
1322
+ id: G.value,
1323
+ d: `M ${vn.value || "0,0"}`,
1324
+ fill: "none",
1325
+ stroke: "transparent",
1326
+ "stroke-width": N.value.style.line.strokeWidth,
1327
+ "stroke-linecap": "round",
1328
+ "stroke-linejoin": "round"
1329
+ }, null, 8, Ot), sn.value ? (C(!0), y(g, { key: 0 }, T(bn.value, (e) => (C(), y("path", {
1330
+ key: e.path,
1331
+ class: "vue-ui-sparkline-path",
1332
+ d: `M ${e.path}`,
1333
+ stroke: $.value ? `url(#temperature_grad_sparkline_${k.value})` : N.value.style.line.color,
1334
+ fill: "none",
1335
+ "stroke-width": N.value.style.line.strokeWidth,
1336
+ "stroke-linecap": "round",
1337
+ "stroke-linejoin": "round",
1338
+ "stroke-dasharray": e.dashed ? N.value.style.line.dashArray : 0,
1339
+ style: S({ transition: E(P) ? void 0 : "all 0.2s" })
1340
+ }, null, 12, kt))), 128)) : (C(), y("path", {
1341
+ key: 1,
1342
+ class: "vue-ui-sparkline-path",
1343
+ d: `M ${vn.value || "0,0"}`,
1344
+ stroke: $.value ? `url(#temperature_grad_sparkline_${k.value})` : N.value.style.line.color,
1345
+ fill: "none",
1346
+ "stroke-width": N.value.style.line.strokeWidth,
1347
+ "stroke-linecap": "round",
1348
+ "stroke-linejoin": "round",
1349
+ style: S({ transition: E(P) ? void 0 : "all 0.2s" })
1350
+ }, null, 12, At))], 64)) : v("", !0),
1351
+ !N.value.style.line.smooth && !Q.value ? (C(), y(g, { key: 3 }, [b("path", {
1352
+ id: G.value,
1353
+ d: `M ${yn.value || "0,0"}`,
1354
+ fill: "none",
1355
+ stroke: "transparent",
1356
+ "stroke-width": N.value.style.line.strokeWidth,
1357
+ "stroke-linecap": "round",
1358
+ "stroke-linejoin": "round"
1359
+ }, null, 8, jt), sn.value ? (C(!0), y(g, { key: 0 }, T(xn.value, (e) => (C(), y("path", {
1360
+ key: e.path,
1361
+ class: "vue-ui-sparkline-path",
1362
+ d: `M ${e.path}`,
1363
+ stroke: $.value ? `url(#temperature_grad_sparkline_${k.value})` : N.value.style.line.color,
1364
+ fill: "none",
1365
+ "stroke-width": N.value.style.line.strokeWidth,
1366
+ "stroke-linecap": "round",
1367
+ "stroke-linejoin": "round",
1368
+ "stroke-dasharray": e.dashed ? N.value.style.line.dashArray * 2 : 0,
1369
+ style: S({ transition: E(P) ? void 0 : "all 0.2s" })
1370
+ }, null, 12, Mt))), 128)) : (C(), y("path", {
1371
+ key: 1,
1372
+ class: "vue-ui-sparkline-path",
1373
+ d: `M ${yn.value || "0,0"}`,
1374
+ stroke: $.value ? `url(#temperature_grad_sparkline_${k.value})` : N.value.style.line.color,
1375
+ fill: "none",
1376
+ "stroke-width": N.value.style.line.strokeWidth,
1377
+ "stroke-linecap": "round",
1378
+ "stroke-linejoin": "round",
1379
+ style: S({ transition: E(P) ? void 0 : "all 0.2s" })
1380
+ }, null, 12, Nt))], 64)) : v("", !0),
1381
+ Cn.value && !$.value ? (C(), Ee(gt, {
1382
+ key: 4,
1383
+ svgPathData: Cn.value,
1384
+ enabled: N.value.gradientPath.show && !Q.value && !$.value,
1385
+ strokeWidth: N.value.style.line.strokeWidth,
1386
+ highColor: N.value.gradientPath.colors.high,
1387
+ lowColor: N.value.gradientPath.colors.low,
1388
+ segments: N.value.gradientPath.segments
1389
+ }, null, 8, [
1390
+ "svgPathData",
1391
+ "enabled",
1392
+ "strokeWidth",
1393
+ "highColor",
1394
+ "lowColor",
1395
+ "segments"
1396
+ ])) : v("", !0),
1397
+ Vt.value && ot.value ? (C(), Ee(qe, {
1398
+ key: 5,
1399
+ uid: k.value,
1400
+ svgRef: E(I),
1401
+ pulsePathId: G.value,
1402
+ pulsePathLength: et.value,
1403
+ pulseDur: $e.value,
1404
+ pulseBegin: tt.value,
1405
+ pulseRepeatCount: rt.value,
1406
+ pulseFillMode: it.value,
1407
+ pulseKeyPoints: nt.value,
1408
+ pulseMotion: ct.value,
1409
+ pulse: R.value,
1410
+ pulseTrail: lt.value,
1411
+ pulseTrailLength: at.value,
1412
+ prefersReducedMotion: E(Ge),
1413
+ loading: E(P),
1414
+ isBar: Q.value
1415
+ }, null, 8, [
1416
+ "uid",
1417
+ "svgRef",
1418
+ "pulsePathId",
1419
+ "pulsePathLength",
1420
+ "pulseDur",
1421
+ "pulseBegin",
1422
+ "pulseRepeatCount",
1423
+ "pulseFillMode",
1424
+ "pulseKeyPoints",
1425
+ "pulseMotion",
1426
+ "pulse",
1427
+ "pulseTrail",
1428
+ "pulseTrailLength",
1429
+ "prefersReducedMotion",
1430
+ "loading",
1431
+ "isBar"
1432
+ ])) : v("", !0),
1433
+ (C(!0), y(g, null, T(J.value, (e, t) => (C(), y("g", null, [Q.value ? (C(), y("rect", {
1434
+ key: 0,
1435
+ x: e.x - e.width / 2,
1436
+ y: isNaN(e.absoluteValue > 0 ? e.y : Xt.value) ? 0 : e.absoluteValue > 0 ? e.y : Xt.value,
1437
+ width: e.width,
1438
+ height: isNaN(Math.abs(e.y - Xt.value)) ? 0 : Math.abs(e.y - Xt.value),
1439
+ fill: e.absoluteValue > 0 ? `url(#sparkline_bar_gradient_pos_${k.value})` : `url(#sparkline_bar_gradient_neg_${k.value})`,
1440
+ rx: N.value.style.bar.borderRadius
1441
+ }, null, 8, Pt)) : v("", !0), N.value.style.verticalIndicator.show && (Y.value && e.id === Y.value.id || tn.value === t) ? (C(), y("line", {
1442
+ key: 1,
1443
+ x1: e.x,
1444
+ x2: e.x,
1445
+ y1: q.value.top - 6,
1446
+ y2: q.value.bottom,
1447
+ stroke: N.value.style.verticalIndicator.color || e.color,
1448
+ "stroke-width": N.value.style.verticalIndicator.strokeWidth,
1449
+ "stroke-linecap": "round",
1450
+ "stroke-dasharray": N.value.style.verticalIndicator.strokeDasharray || 0
1451
+ }, null, 8, Ft)) : v("", !0)]))), 256)),
1452
+ Kt.value < 0 ? (C(), y("line", {
1453
+ key: 6,
1454
+ x1: q.value.start,
1455
+ x2: q.value.start + q.value.width,
1456
+ y1: E(ae)(Xt.value, q.value.bottom),
1457
+ y2: E(ae)(Xt.value, q.value.bottom),
1458
+ stroke: N.value.style.zeroLine.color,
1459
+ "stroke-dasharray": N.value.style.zeroLine.strokeWidth * 2,
1460
+ "stroke-width": N.value.style.zeroLine.strokeWidth,
1461
+ "stroke-linecap": "round"
1462
+ }, null, 8, It)) : v("", !0),
1463
+ (C(!0), y(g, null, T(J.value, (e, t) => (C(), y("g", { key: `sparkline_plot_${e.id}` }, [fn(e, t) ? (C(), y("circle", {
1464
+ key: 0,
1465
+ cx: e.x,
1466
+ cy: e.y,
1467
+ r: pn(e, t),
1468
+ fill: En(e),
1469
+ stroke: mn(e, t),
1470
+ "stroke-width": N.value.style.plot.strokeWidth
1471
+ }, null, 8, Lt)) : v("", !0)]))), 128)),
1472
+ e.showInfo && N.value.style.dataLabel.show ? (C(), y("text", {
1473
+ key: 7,
1474
+ x: N.value.style.dataLabel.position === "left" ? 12 + N.value.style.dataLabel.offsetX : q.value.width + 12 + N.value.style.dataLabel.offsetX,
1475
+ y: K.value.height / 2 + N.value.style.dataLabel.fontSize / 2.5 + N.value.style.dataLabel.offsetY,
1476
+ "font-size": N.value.style.dataLabel.fontSize,
1477
+ "font-weight": N.value.style.dataLabel.bold ? "bold" : "normal",
1478
+ fill: N.value.style.dataLabel.color
1479
+ }, Ie(Y.value ? E(ie)(N.value.style.dataLabel.formatter, Y.value.absoluteValue, E(o)({
1480
+ p: N.value.style.dataLabel.prefix,
1481
+ v: Y.value.absoluteValue,
1482
+ s: N.value.style.dataLabel.suffix,
1483
+ r: N.value.style.dataLabel.roundingValue
1484
+ }), { datapoint: Y.value }) : E(ie)(N.value.style.dataLabel.formatter, an.value, E(o)({
1485
+ p: N.value.style.dataLabel.prefix,
1486
+ v: an.value,
1487
+ s: N.value.style.dataLabel.suffix,
1488
+ r: N.value.style.dataLabel.roundingValue
1489
+ }))), 9, Rt)) : v("", !0),
1490
+ (C(!0), y(g, null, T(J.value, (e, t) => (C(), y("rect", {
1491
+ x: e.x - (q.value.width / (Qt.value + 1) > K.value.padding ? K.value.padding : q.value.width / (Qt.value + 1)) / 2,
1492
+ y: q.value.top - 6,
1493
+ height: q.value.height + 6,
1494
+ width: q.value.width / (Qt.value + 1) > K.value.padding ? K.value.padding : q.value.width / (Qt.value + 1),
1495
+ fill: "transparent",
1496
+ onMouseenter: () => nn(e, t),
1497
+ onMouseleave: () => rn(e, t),
1498
+ onClick: () => on(e, t)
1499
+ }, null, 40, zt))), 256)),
1500
+ Pe(t.$slots, "svg", { svg: {
1501
+ ...K.value,
1502
+ drawingArea: q.value,
1503
+ timeLabels: $t.value,
1504
+ series: J.value,
1505
+ hoveredIndex: j.value
1506
+ } }, void 0, !0)
1507
+ ], 44, xt)), t.$slots.hint ? (C(), y("div", Bt, [Pe(t.$slots, "hint", je(Ae({
1508
+ hint: N.value.a11y.translations.keyboardNavigation,
1509
+ isVisible: Dn.value
1510
+ })), void 0, !0)])) : v("", !0)]),
1511
+ Y.value && N.value.style.tooltip.show ? (C(), Ee(E(Ve), {
1512
+ key: 2,
1513
+ x: Y.value.x,
1514
+ y: Y.value.y,
1515
+ prevX: X.value.x,
1516
+ prevY: X.value.y,
1517
+ offsetY: N.value.style.plot.radius * 3 + N.value.style.tooltip.offsetY,
1518
+ svgRef: E(I),
1519
+ background: N.value.style.tooltip.backgroundColor,
1520
+ color: N.value.style.tooltip.color,
1521
+ fontSize: N.value.style.tooltip.fontSize,
1522
+ borderWidth: N.value.style.tooltip.borderWidth,
1523
+ borderColor: N.value.style.tooltip.borderColor,
1524
+ borderRadius: N.value.style.tooltip.borderRadius,
1525
+ backgroundOpacity: N.value.style.tooltip.backgroundOpacity
1526
+ }, {
1527
+ default: ze(() => [Pe(t.$slots, "tooltip", je(Ae({ ...Y.value })), () => [De(Ie(Y.value.period) + ": " + Ie(E(ie)(N.value.style.dataLabel.formatter, Y.value.absoluteValue, E(o)({
1528
+ p: N.value.style.dataLabel.prefix,
1529
+ v: Y.value.absoluteValue,
1530
+ s: N.value.style.dataLabel.suffix,
1531
+ r: N.value.style.dataLabel.roundingValue
1532
+ }), { datapoint: Y.value })), 1)], !0)]),
1533
+ _: 3
1534
+ }, 8, [
1535
+ "x",
1536
+ "y",
1537
+ "prevX",
1538
+ "prevY",
1539
+ "offsetY",
1540
+ "svgRef",
1541
+ "background",
1542
+ "color",
1543
+ "fontSize",
1544
+ "borderWidth",
1545
+ "borderColor",
1546
+ "borderRadius",
1547
+ "backgroundOpacity"
1548
+ ])) : v("", !0),
1549
+ t.$slots.source ? (C(), y("div", {
1550
+ key: 3,
1551
+ ref_key: "source",
1552
+ ref: Ye,
1553
+ dir: "auto"
1554
+ }, [Pe(t.$slots, "source", {}, void 0, !0)], 512)) : v("", !0),
1555
+ Pe(t.$slots, "skeleton", {}, () => [E(P) ? (C(), Ee(he, { key: 0 })) : v("", !0)], !0)
1556
+ ], 12, vt));
1557
+ }
1558
+ }, [["__scopeId", "data-v-a98ba827"]]);
1559
+ //#endregion
1560
+ export { _t as n, G as t };