vue-data-ui 3.20.10 → 3.21.0

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