vue-data-ui 3.16.4 → 3.17.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 (148) hide show
  1. package/README.md +64 -46
  2. package/dist/{PackageVersion-1BHnPIBZ.js → PackageVersion-B3kmPxTR.js} +1 -1
  3. package/dist/{Slicer-DUycDH_N.js → Slicer-CIHwwuNR.js} +107 -110
  4. package/dist/SlicerPreview-BIvxyb5W.js +1484 -0
  5. package/dist/{Tooltip-Bf-kM3_A.js → Tooltip-C8KGyqQk.js} +19 -17
  6. package/dist/components/vue-ui-3d-bar.js +1 -1
  7. package/dist/components/vue-ui-accordion.js +1 -1
  8. package/dist/components/vue-ui-age-pyramid.js +1 -1
  9. package/dist/components/vue-ui-annotator.js +1 -1
  10. package/dist/components/vue-ui-bullet.js +1 -1
  11. package/dist/components/vue-ui-bump.js +1 -1
  12. package/dist/components/vue-ui-candlestick.js +1 -1
  13. package/dist/components/vue-ui-carousel-table.js +1 -1
  14. package/dist/components/vue-ui-chestnut.js +1 -1
  15. package/dist/components/vue-ui-chord.js +1 -1
  16. package/dist/components/vue-ui-circle-pack.js +1 -1
  17. package/dist/components/vue-ui-cursor.js +1 -1
  18. package/dist/components/vue-ui-dag.js +1 -1
  19. package/dist/components/vue-ui-dashboard.js +1 -1
  20. package/dist/components/vue-ui-digits.js +1 -1
  21. package/dist/components/vue-ui-donut-evolution.js +1 -1
  22. package/dist/components/vue-ui-donut.js +1 -1
  23. package/dist/components/vue-ui-dumbbell.js +1 -1
  24. package/dist/components/vue-ui-flow.js +1 -1
  25. package/dist/components/vue-ui-funnel.js +1 -1
  26. package/dist/components/vue-ui-galaxy.js +1 -1
  27. package/dist/components/vue-ui-gauge.js +1 -1
  28. package/dist/components/vue-ui-geo.js +1 -1
  29. package/dist/components/vue-ui-gizmo.js +1 -1
  30. package/dist/components/vue-ui-heatmap.js +1 -1
  31. package/dist/components/vue-ui-history-plot.js +1 -1
  32. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  33. package/dist/components/vue-ui-kpi.js +1 -1
  34. package/dist/components/vue-ui-mini-loader.js +1 -1
  35. package/dist/components/vue-ui-molecule.js +1 -1
  36. package/dist/components/vue-ui-mood-radar.js +1 -1
  37. package/dist/components/vue-ui-nested-donuts.js +1 -1
  38. package/dist/components/vue-ui-onion.js +1 -1
  39. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  40. package/dist/components/vue-ui-quadrant.js +1 -1
  41. package/dist/components/vue-ui-quick-chart.js +1 -1
  42. package/dist/components/vue-ui-radar.js +1 -1
  43. package/dist/components/vue-ui-rating.js +1 -1
  44. package/dist/components/vue-ui-relation-circle.js +1 -1
  45. package/dist/components/vue-ui-ridgeline.js +1 -1
  46. package/dist/components/vue-ui-rings.js +1 -1
  47. package/dist/components/vue-ui-scatter.js +1 -1
  48. package/dist/components/vue-ui-skeleton.js +1 -1
  49. package/dist/components/vue-ui-smiley.js +1 -1
  50. package/dist/components/vue-ui-spark-trend.js +1 -1
  51. package/dist/components/vue-ui-sparkbar.js +1 -1
  52. package/dist/components/vue-ui-sparkgauge.js +1 -1
  53. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  54. package/dist/components/vue-ui-sparkline.js +1 -1
  55. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  56. package/dist/components/vue-ui-stackbar.js +1 -1
  57. package/dist/components/vue-ui-stackline.js +1 -1
  58. package/dist/components/vue-ui-strip-plot.js +1 -1
  59. package/dist/components/vue-ui-table-heatmap.js +1 -1
  60. package/dist/components/vue-ui-table-sparkline.js +1 -1
  61. package/dist/components/vue-ui-table.js +1 -1
  62. package/dist/components/vue-ui-thermometer.js +1 -1
  63. package/dist/components/vue-ui-timer.js +1 -1
  64. package/dist/components/vue-ui-tiremarks.js +1 -1
  65. package/dist/components/vue-ui-treemap.js +1 -1
  66. package/dist/components/vue-ui-vertical-bar.js +1 -1
  67. package/dist/components/vue-ui-waffle.js +1 -1
  68. package/dist/components/vue-ui-wheel.js +1 -1
  69. package/dist/components/vue-ui-word-cloud.js +1 -1
  70. package/dist/components/vue-ui-world.js +1 -1
  71. package/dist/components/vue-ui-xy-canvas.js +1 -1
  72. package/dist/components/vue-ui-xy.js +1 -1
  73. package/dist/style.css +1 -1
  74. package/dist/types/vue-data-ui.d.ts +1 -1
  75. package/dist/{useConfig-CpJA0VZa.js → useConfig-ChRble71.js} +1 -0
  76. package/dist/{useObjectBindings-DToqZaRC.js → useObjectBindings-BVFCsss5.js} +1 -1
  77. package/dist/utils.js +1 -1
  78. package/dist/{vue-data-ui-D28lrXzG.js → vue-data-ui-BX3I-ZQt.js} +67 -67
  79. package/dist/vue-data-ui.js +68 -68
  80. package/dist/{vue-ui-3d-bar-BOrQb1Zm.js → vue-ui-3d-bar-DsSxN6Xl.js} +2 -2
  81. package/dist/{vue-ui-accordion-BF4v32wv.js → vue-ui-accordion-CnDW2UQL.js} +1 -1
  82. package/dist/{vue-ui-age-pyramid-txthNdz1.js → vue-ui-age-pyramid-DgAJXx1F.js} +112 -109
  83. package/dist/{vue-ui-annotator-U961V1Kc.js → vue-ui-annotator-BA4hRkfX.js} +2 -2
  84. package/dist/{vue-ui-bullet-BboXC-yM.js → vue-ui-bullet-BCuT1zVr.js} +2 -2
  85. package/dist/{vue-ui-bump-oRhoxgeR.js → vue-ui-bump-BTnwgB5Q.js} +2 -2
  86. package/dist/{vue-ui-candlestick-RAgVO1Hl.js → vue-ui-candlestick-BMvM7WIc.js} +148 -145
  87. package/dist/{vue-ui-carousel-table-BFqP05En.js → vue-ui-carousel-table-DCtWIG49.js} +2 -2
  88. package/dist/{vue-ui-chestnut-ComiA10N.js → vue-ui-chestnut-DJ0R3Aqx.js} +2 -2
  89. package/dist/{vue-ui-chord-D9dLOTr5.js → vue-ui-chord-BbWToSBq.js} +2 -2
  90. package/dist/{vue-ui-circle-pack-pqOFrf-X.js → vue-ui-circle-pack-CwuEfQPE.js} +117 -114
  91. package/dist/{vue-ui-cursor-BmAytuMu.js → vue-ui-cursor-C4MnK_CE.js} +2 -2
  92. package/dist/{vue-ui-dag-CuJNCfFw.js → vue-ui-dag-HKbeFOit.js} +2 -2
  93. package/dist/{vue-ui-dashboard-DDuu-xwh.js → vue-ui-dashboard-DTYz-idn.js} +65 -65
  94. package/dist/{vue-ui-digits-DYKnwhao.js → vue-ui-digits-CrFH4BlD.js} +2 -2
  95. package/dist/{vue-ui-donut-CbD2wI-a.js → vue-ui-donut-B1C7vzFY.js} +100 -97
  96. package/dist/{vue-ui-donut-evolution-BdA0k4Eg.js → vue-ui-donut-evolution-BUIQwZ-c.js} +3 -3
  97. package/dist/{vue-ui-dumbbell-CPbXszE_.js → vue-ui-dumbbell-Bq-X5L24.js} +2 -2
  98. package/dist/{vue-ui-flow-RyxU8f22.js → vue-ui-flow-DUn9hp_J.js} +141 -138
  99. package/dist/{vue-ui-funnel-Cda_iN_h.js → vue-ui-funnel-CNF2ULOQ.js} +2 -2
  100. package/dist/{vue-ui-galaxy-BNUPKqkV.js → vue-ui-galaxy-BzlU9OSU.js} +75 -72
  101. package/dist/{vue-ui-gauge-CihaQBsc.js → vue-ui-gauge-aF_V6ynK.js} +2 -2
  102. package/dist/{vue-ui-geo-Da95dDom.js → vue-ui-geo-xaZvHjAP.js} +116 -113
  103. package/dist/{vue-ui-gizmo-DzHN0cW5.js → vue-ui-gizmo-BGvS_AHj.js} +2 -2
  104. package/dist/{vue-ui-heatmap-DqQiO1Oz.js → vue-ui-heatmap-B_BmpyVy.js} +191 -188
  105. package/dist/{vue-ui-history-plot-DqeaH_61.js → vue-ui-history-plot-DsoLp3aL.js} +124 -121
  106. package/dist/{vue-ui-horizontal-bar-CX6TPm9_.js → vue-ui-horizontal-bar-JVjE88ZW.js} +218 -215
  107. package/dist/{vue-ui-kpi-OxZqguE4.js → vue-ui-kpi-B-v1zpd4.js} +2 -2
  108. package/dist/{vue-ui-mini-loader-DSQ9kcmW.js → vue-ui-mini-loader-CPfZsqWP.js} +1 -1
  109. package/dist/{vue-ui-molecule-CTm126iW.js → vue-ui-molecule-Di9_wsME.js} +61 -58
  110. package/dist/{vue-ui-mood-radar-C0E6bq6E.js → vue-ui-mood-radar-CetQpdnu.js} +2 -2
  111. package/dist/{vue-ui-nested-donuts-Bh0ZICKK.js → vue-ui-nested-donuts-Y-UMjjYV.js} +131 -128
  112. package/dist/{vue-ui-onion-QsjwjlCa.js → vue-ui-onion-MM3QZLzF.js} +142 -139
  113. package/dist/{vue-ui-parallel-coordinate-plot-wJcWVLAC.js → vue-ui-parallel-coordinate-plot-CcHmB0MQ.js} +91 -88
  114. package/dist/{vue-ui-quadrant-lJ7T6q87.js → vue-ui-quadrant-CQIMUggy.js} +58 -55
  115. package/dist/{vue-ui-quick-chart-CEMQYbSC.js → vue-ui-quick-chart-lwGufdDj.js} +235 -232
  116. package/dist/{vue-ui-radar-d7b-Y40r.js → vue-ui-radar-CS74L65M.js} +117 -114
  117. package/dist/{vue-ui-rating-hudM2QS0.js → vue-ui-rating-DiLLVHq3.js} +1 -1
  118. package/dist/{vue-ui-relation-circle-_PoDqM8x.js → vue-ui-relation-circle-D3dO8RTC.js} +2 -2
  119. package/dist/{vue-ui-ridgeline-BU_EA8-u.js → vue-ui-ridgeline-Dpvq9yp2.js} +2 -2
  120. package/dist/{vue-ui-rings-BQKtt-FQ.js → vue-ui-rings-D-45pPpZ.js} +122 -119
  121. package/dist/{vue-ui-scatter-Bh95G7ZD.js → vue-ui-scatter-BzCjfGB9.js} +121 -118
  122. package/dist/{vue-ui-skeleton-BIw-u4zp.js → vue-ui-skeleton-Dai-bZZw.js} +2 -2
  123. package/dist/{vue-ui-smiley-CQ_rGHFe.js → vue-ui-smiley-BioqmYwT.js} +1 -1
  124. package/dist/{vue-ui-spark-trend-D4QxExdm.js → vue-ui-spark-trend-DiC9V0VU.js} +2 -2
  125. package/dist/{vue-ui-sparkbar-BmiEOs4E.js → vue-ui-sparkbar-D6EsbW6u.js} +2 -2
  126. package/dist/{vue-ui-sparkgauge-hwEkTICS.js → vue-ui-sparkgauge-BHDXZgJH.js} +2 -2
  127. package/dist/{vue-ui-sparkhistogram-DEkO_5i3.js → vue-ui-sparkhistogram-DzuOjuNH.js} +2 -2
  128. package/dist/{vue-ui-sparkline-DFnG0CrA.js → vue-ui-sparkline-B-zOqzrC.js} +288 -276
  129. package/dist/{vue-ui-sparkstackbar-CQqUPbkU.js → vue-ui-sparkstackbar-bqKzIKSg.js} +147 -144
  130. package/dist/{vue-ui-stackbar-BcP_TA9R.js → vue-ui-stackbar-DPfxqQUG.js} +435 -424
  131. package/dist/{vue-ui-stackline-Bnuj-z-G.js → vue-ui-stackline-Ctqe1OuF.js} +627 -609
  132. package/dist/{vue-ui-strip-plot-B-tszwir.js → vue-ui-strip-plot-Dg2URhvc.js} +72 -69
  133. package/dist/{vue-ui-table-heatmap-DU7w6PrX.js → vue-ui-table-heatmap-Da6sqBlI.js} +1 -1
  134. package/dist/{vue-ui-table-sparkline-DHjZyVAg.js → vue-ui-table-sparkline-Bkv6Qz6V.js} +2 -2
  135. package/dist/{vue-ui-table-BVQyX-Yx.js → vue-ui-table-xrD-xqis.js} +3 -3
  136. package/dist/{vue-ui-thermometer-ZED83TXZ.js → vue-ui-thermometer-D7VVeA2i.js} +2 -2
  137. package/dist/{vue-ui-timer-Xg7H9EaE.js → vue-ui-timer-D7XYgZfb.js} +2 -2
  138. package/dist/{vue-ui-tiremarks-BDoU-BcX.js → vue-ui-tiremarks-i6e8GTI9.js} +2 -2
  139. package/dist/{vue-ui-treemap-BcS1k9hJ.js → vue-ui-treemap-D8Mbfeuc.js} +220 -217
  140. package/dist/{vue-ui-waffle-CSvzbC5u.js → vue-ui-waffle-7rVD530d.js} +123 -120
  141. package/dist/{vue-ui-wheel-BrLKEar8.js → vue-ui-wheel-HQNWtsvJ.js} +2 -2
  142. package/dist/{vue-ui-word-cloud-D05ZR0u7.js → vue-ui-word-cloud-DFAEbzUa.js} +159 -156
  143. package/dist/{vue-ui-world-CtPJIK5c.js → vue-ui-world-YvmrdfIm.js} +86 -83
  144. package/dist/vue-ui-xy-canvas-CEaAQ_tr.js +1819 -0
  145. package/dist/{vue-ui-xy-5mNo0EDu.js → vue-ui-xy-n4juEarQ.js} +402 -398
  146. package/package.json +1 -1
  147. package/dist/SlicerPreview-DTjwV0iY.js +0 -1372
  148. package/dist/vue-ui-xy-canvas-CaoWw3AU.js +0 -1810
@@ -1,7 +1,7 @@
1
- import { computed as p, watch as z, nextTick as te, onBeforeUnmount as ot, openBlock as f, createElementBlock as g, Fragment as Z, renderList as ge, createElementVNode as M, createCommentVNode as L, ref as C, defineAsyncComponent as yt, toRefs as qt, shallowRef as mt, onMounted as bt, watchEffect as Gt, normalizeStyle as H, toDisplayString as Le, createBlock as _e, renderSlot as pe, normalizeProps as Ze, guardReactiveProps as Je, unref as b, createVNode as Ot, withCtx as jt, createTextVNode as zt } from "vue";
2
- import { j as Yt, t as kt, aD as Qe, o as wt, q as xt, r as Xt, v as Fe, Y as Kt, ap as Ut, c as $t, b as Ht, O as Zt, N as Jt, s as Qt, X as ea, u as Ve, V as ta, G as St, k as et, l as tt, aE as aa } from "./lib-DBptbyyI.js";
1
+ import { computed as g, watch as z, nextTick as te, onBeforeUnmount as ot, openBlock as f, createElementBlock as y, Fragment as Z, renderList as ge, createElementVNode as M, createCommentVNode as _, ref as L, defineAsyncComponent as mt, toRefs as qt, shallowRef as bt, onMounted as kt, watchEffect as Gt, normalizeStyle as H, toDisplayString as Le, createBlock as _e, renderSlot as pe, normalizeProps as Ze, guardReactiveProps as Je, unref as b, createVNode as Ot, withCtx as jt, createTextVNode as zt } from "vue";
2
+ import { j as Yt, t as wt, aD as Qe, o as xt, q as $t, r as Xt, v as Ve, Y as Kt, ap as Ut, c as St, b as Ht, O as Zt, N as Jt, s as Qt, X as ea, u as We, V as ta, G as Mt, k as et, l as tt, aE as aa } from "./lib-DBptbyyI.js";
3
3
  import { t as la, u as na } from "./useResponsive-DfdjqQps.js";
4
- import { u as ra } from "./useConfig-CpJA0VZa.js";
4
+ import { u as ra } from "./useConfig-ChRble71.js";
5
5
  import { u as ua, B as oa } from "./BaseScanner-BhhkKVoj.js";
6
6
  import { u as at } from "./useNestedProp-Bf5XFbs8.js";
7
7
  import { u as sa } from "./useThemeCheck-D1ZYXUwG.js";
@@ -35,7 +35,7 @@ const pa = {
35
35
  isBar: { type: Boolean, required: !0 }
36
36
  },
37
37
  setup(e) {
38
- const a = e, n = p(() => Math.min(a.pulseTrailLength, 45)), s = p(() => !!a.pulse?.show && !a.isBar && !a.prefersReducedMotion && !a.loading && Number(a.pulsePathLength) > 0);
38
+ const a = e, n = g(() => Math.min(a.pulseTrailLength, 45)), s = g(() => !!a.pulse?.show && !a.isBar && !a.prefersReducedMotion && !a.loading && Number(a.pulsePathLength) > 0);
39
39
  function o() {
40
40
  const i = a.svgRef?.value;
41
41
  i && (typeof i.pauseAnimations == "function" && i.pauseAnimations(), typeof i.setCurrentTime == "function" && i.setCurrentTime(0), typeof i.unpauseAnimations == "function" && i.unpauseAnimations());
@@ -44,15 +44,15 @@ const pa = {
44
44
  if (typeof i != "string") return i;
45
45
  const v = i.trim().match(/^([\d.]+)\s*(ms|s)$/);
46
46
  if (!v) return i;
47
- const w = Number(v[1]), I = v[2];
48
- return Number.isNaN(w) ? i : `${w + S}${I}`;
47
+ const x = Number(v[1]), I = v[2];
48
+ return Number.isNaN(x) ? i : `${x + S}${I}`;
49
49
  }
50
50
  function h(i) {
51
51
  return (n.value - i) / n.value * a.pulse.radius;
52
52
  }
53
- function y(i) {
54
- const S = a.pulse.trail.opacity, v = (n.value - i) / n.value, w = i === 0 ? 1 : v * S;
55
- return `0;${w};${w};0`;
53
+ function m(i) {
54
+ const S = a.pulse.trail.opacity, v = (n.value - i) / n.value, x = i === 0 ? 1 : v * S;
55
+ return `0;${x};${x};0`;
56
56
  }
57
57
  return z(
58
58
  () => a.loading,
@@ -70,17 +70,17 @@ const pa = {
70
70
  }
71
71
  ), ot(() => {
72
72
  o();
73
- }), (i, S) => s.value ? (f(), g("g", pa, [
74
- (f(!0), g(Z, null, ge(n.value, (v, w) => (f(), g(Z, null, [
75
- w % 3 === 0 ? (f(), g("circle", {
76
- key: `sparkline_dot_${w}_${e.pulsePathId}`,
77
- r: h(w),
73
+ }), (i, S) => s.value ? (f(), y("g", pa, [
74
+ (f(!0), y(Z, null, ge(n.value, (v, x) => (f(), y(Z, null, [
75
+ x % 3 === 0 ? (f(), y("circle", {
76
+ key: `sparkline_dot_${x}_${e.pulsePathId}`,
77
+ r: h(x),
78
78
  fill: e.pulse.color,
79
79
  filter: `url(#sparkline_pulse_glow_${e.uid})`,
80
80
  opacity: "0"
81
81
  }, [
82
82
  M("animateMotion", {
83
- begin: d(e.pulseBegin, w * 10),
83
+ begin: d(e.pulseBegin, x * 10),
84
84
  dur: e.pulseDur,
85
85
  repeatCount: e.pulseRepeatCount,
86
86
  fill: e.pulseFillMode,
@@ -99,12 +99,12 @@ const pa = {
99
99
  dur: e.pulseDur,
100
100
  repeatCount: e.pulseRepeatCount,
101
101
  fill: e.pulseFillMode,
102
- values: y(w),
102
+ values: m(x),
103
103
  keyTimes: "0;0.1;0.9;1"
104
104
  }, null, 8, ba)
105
- ], 8, ga)) : L("", !0)
105
+ ], 8, ga)) : _("", !0)
106
106
  ], 64))), 256)),
107
- (f(), g("circle", {
107
+ (f(), y("circle", {
108
108
  key: `sparkline_halo_${e.pulsePathId}`,
109
109
  r: Math.max(e.pulse.radius * 1.3),
110
110
  fill: e.pulse.color,
@@ -132,24 +132,24 @@ const pa = {
132
132
  repeatCount: e.pulseRepeatCount
133
133
  }, null, 8, $a)
134
134
  ], 8, ka))
135
- ])) : L("", !0);
135
+ ])) : _("", !0);
136
136
  }
137
- }, We = {
137
+ }, qe = {
138
138
  canvas: null,
139
139
  ctx: null
140
140
  };
141
141
  function Ma() {
142
142
  if (typeof document > "u")
143
143
  throw new Error("color-utils: document is not available (browser-only).");
144
- if (!We.canvas) {
144
+ if (!qe.canvas) {
145
145
  const e = document.createElement("canvas");
146
146
  e.width = 1, e.height = 1;
147
147
  const a = e.getContext("2d", { willReadFrequently: !0 });
148
148
  if (!a)
149
149
  throw new Error("color-utils: unable to get 2D canvas context.");
150
- We.canvas = e, We.ctx = a;
150
+ qe.canvas = e, qe.ctx = a;
151
151
  }
152
- return We.ctx;
152
+ return qe.ctx;
153
153
  }
154
154
  function Aa(e) {
155
155
  return e < 0 ? 0 : e > 255 ? 255 : Math.round(e);
@@ -169,15 +169,15 @@ function Ca(e, a = null) {
169
169
  if (o.fillStyle = s, o.fillStyle === d && !_a(s))
170
170
  throw new Error(`colorToRgba: unsupported or invalid color "${e}".`);
171
171
  o.fillRect(0, 0, 1, 1);
172
- const y = o.getImageData(0, 0, 1, 1).data;
172
+ const m = o.getImageData(0, 0, 1, 1).data;
173
173
  return {
174
- red: y[0],
175
- green: y[1],
176
- blue: y[2],
177
- alpha: y[3] / 255
174
+ red: m[0],
175
+ green: m[1],
176
+ blue: m[2],
177
+ alpha: m[3] / 255
178
178
  };
179
179
  }
180
- function Mt(e, a = null) {
180
+ function At(e, a = null) {
181
181
  if (!Array.isArray(e) || e.length === 0)
182
182
  throw new Error("colorsToRgba: colors must be a non-empty array.");
183
183
  const n = new Array(e.length);
@@ -201,12 +201,12 @@ function lt(e) {
201
201
  let n;
202
202
  return a <= 31308e-7 ? n = a * 12.92 : n = 1.055 * Math.pow(a, 1 / 2.4) - 0.055, Aa(n * 255);
203
203
  }
204
- function At(e, a, n, s) {
204
+ function Ct(e, a, n, s) {
205
205
  const o = it(n);
206
206
  if (s === "linearRGB") {
207
- const d = xe(e.red), h = xe(e.green), y = xe(e.blue), i = xe(a.red), S = xe(a.green), v = xe(a.blue), w = d + (i - d) * o, I = h + (S - h) * o, B = y + (v - y) * o;
207
+ const d = xe(e.red), h = xe(e.green), m = xe(e.blue), i = xe(a.red), S = xe(a.green), v = xe(a.blue), x = d + (i - d) * o, I = h + (S - h) * o, B = m + (v - m) * o;
208
208
  return {
209
- red: lt(w),
209
+ red: lt(x),
210
210
  green: lt(I),
211
211
  blue: lt(B),
212
212
  alpha: e.alpha + (a.alpha - e.alpha) * o
@@ -245,13 +245,13 @@ function Na(e, a, n, s = !0) {
245
245
  const d = (e - a) / o;
246
246
  return s ? j(d, 0, 1) : d;
247
247
  }
248
- const Ct = "http://www.w3.org/2000/svg";
248
+ const Lt = "http://www.w3.org/2000/svg";
249
249
  function Ia(e) {
250
250
  if (typeof document > "u")
251
251
  throw new Error("SvgPathGradientAsync: document is not available (browser-only implementation).");
252
- const a = document.createElementNS(Ct, "svg");
252
+ const a = document.createElementNS(Lt, "svg");
253
253
  a.setAttribute("width", "0"), a.setAttribute("height", "0"), a.setAttribute("viewBox", "0 0 0 0"), a.style.position = "absolute", a.style.left = "-10000px", a.style.top = "-10000px", a.style.visibility = "hidden", a.style.pointerEvents = "none";
254
- const n = document.createElementNS(Ct, "path");
254
+ const n = document.createElementNS(Lt, "path");
255
255
  return e === "M " && (e = "M 0,0"), n.setAttribute("d", e), a.appendChild(n), document.body.appendChild(a), { svgElement: a, pathElement: n };
256
256
  }
257
257
  function rt(e) {
@@ -277,14 +277,14 @@ function Ra(e, a, n) {
277
277
  }
278
278
  function Ba(e, a, n, s, o, d) {
279
279
  const h = n - a;
280
- let y = Math.ceil(h / s) + 1;
281
- y < 2 && (y = 2), y > d && (y = d);
282
- const i = y > 1 ? h / (y - 1) : 0, S = e.getPointAtLength(a);
280
+ let m = Math.ceil(h / s) + 1;
281
+ m < 2 && (m = 2), m > d && (m = d);
282
+ const i = m > 1 ? h / (m - 1) : 0, S = e.getPointAtLength(a);
283
283
  let v = `M ${ie(ae(S.x, o))} ${ie(
284
284
  ae(S.y, o)
285
285
  )}`;
286
- for (let w = 1; w < y; w += 1) {
287
- const I = a + w * i, B = e.getPointAtLength(I);
286
+ for (let x = 1; x < m; x += 1) {
287
+ const I = a + x * i, B = e.getPointAtLength(I);
288
288
  v += ` L ${ie(ae(B.x, o))} ${ie(
289
289
  ae(B.y, o)
290
290
  )}`;
@@ -293,21 +293,21 @@ function Ba(e, a, n, s, o, d) {
293
293
  }
294
294
  function Da(e, a, n, s, o, d) {
295
295
  const h = n - a;
296
- let y = Math.ceil(h / s) + 1;
297
- y < 2 && (y = 2), y > d && (y = d);
298
- const i = y > 1 ? h / (y - 1) : 0, S = e.getPointAtLength(a);
299
- let v = S.x, w = S.x, I = S.y, B = S.y, W = `M ${ie(ae(S.x, o))} ${ie(
296
+ let m = Math.ceil(h / s) + 1;
297
+ m < 2 && (m = 2), m > d && (m = d);
298
+ const i = m > 1 ? h / (m - 1) : 0, S = e.getPointAtLength(a);
299
+ let v = S.x, x = S.x, I = S.y, B = S.y, E = `M ${ie(ae(S.x, o))} ${ie(
300
300
  ae(S.y, o)
301
301
  )}`;
302
- for (let _ = 1; _ < y; _ += 1) {
303
- const t = a + _ * i, E = e.getPointAtLength(t);
304
- E.x < v && (v = E.x), E.x > w && (w = E.x), E.y < I && (I = E.y), E.y > B && (B = E.y), W += ` L ${ie(ae(E.x, o))} ${ie(
305
- ae(E.y, o)
302
+ for (let A = 1; A < m; A += 1) {
303
+ const t = a + A * i, F = e.getPointAtLength(t);
304
+ F.x < v && (v = F.x), F.x > x && (x = F.x), F.y < I && (I = F.y), F.y > B && (B = F.y), E += ` L ${ie(ae(F.x, o))} ${ie(
305
+ ae(F.y, o)
306
306
  )}`;
307
307
  }
308
308
  return {
309
- pathData: W,
310
- bounds: { minX: v, maxX: w, minY: I, maxY: B }
309
+ pathData: E,
310
+ bounds: { minX: v, maxX: x, minY: I, maxY: B }
311
311
  };
312
312
  }
313
313
  function Ea(e) {
@@ -322,15 +322,15 @@ function Fa(e, a, n, s) {
322
322
  let d = s;
323
323
  for (d < 0 && (d = 0), d > e.length - 2 && (d = e.length - 2); d > 0 && o < e[d].position; ) d -= 1;
324
324
  for (; d < e.length - 2 && o > e[d + 1].position; ) d += 1;
325
- const h = e[d], y = e[d + 1], i = y.position - h.position, S = i > 0 ? (o - h.position) / i : 0, v = Va(h.rgba, y.rgba, S, n);
325
+ const h = e[d], m = e[d + 1], i = m.position - h.position, S = i > 0 ? (o - h.position) / i : 0, v = Va(h.rgba, m.rgba, S, n);
326
326
  return st(v);
327
327
  }
328
328
  function Va(e, a, n, s) {
329
329
  const o = j(n, 0, 1);
330
330
  if (s === "linearRGB") {
331
- const d = $e(e.red), h = $e(e.green), y = $e(e.blue), i = $e(a.red), S = $e(a.green), v = $e(a.blue), w = d + (i - d) * o, I = h + (S - h) * o, B = y + (v - y) * o;
331
+ const d = $e(e.red), h = $e(e.green), m = $e(e.blue), i = $e(a.red), S = $e(a.green), v = $e(a.blue), x = d + (i - d) * o, I = h + (S - h) * o, B = m + (v - m) * o;
332
332
  return {
333
- red: ut(w),
333
+ red: ut(x),
334
334
  green: ut(I),
335
335
  blue: ut(B),
336
336
  alpha: e.alpha + (a.alpha - e.alpha) * o
@@ -373,7 +373,7 @@ function Wa(e) {
373
373
  }
374
374
  return n;
375
375
  }
376
- function Lt(e, a, n) {
376
+ function _t(e, a, n) {
377
377
  return `<path d="${le(e)}" stroke="${le(a)}" ${n} />`;
378
378
  }
379
379
  function qa(e) {
@@ -386,7 +386,7 @@ function qa(e) {
386
386
  }
387
387
  return `<path d="${le(e.pathData)}" ${a.join(" ")} />`;
388
388
  }
389
- function _t(e, a) {
389
+ function Pt(e, a) {
390
390
  const n = [];
391
391
  for (const o of Object.keys(a))
392
392
  n.push(`${o}="${le(a[o])}"`);
@@ -406,11 +406,11 @@ function Ga(e, a = null, n = {}) {
406
406
  throw new Error("SvgPathGradientAsync: colors must be a non-empty array when temperatureMode is not enabled.");
407
407
  if ((n.returnMode ?? "string") !== "string")
408
408
  throw new Error('SvgPathGradientAsync: only returnMode="string" is supported for the async version.');
409
- const i = typeof n.decimalPlaces == "number" ? n.decimalPlaces : 3, S = typeof n.flattenTolerance == "number" && n.flattenTolerance > 0 ? n.flattenTolerance : 0.25, v = n.attrs ? { ...n.attrs } : {}, w = n.groupAttrs ? { ...n.groupAttrs } : {}, I = Pa(v["stroke-width"]), B = typeof n.strokeWidth == "number" && n.strokeWidth > 0 ? n.strokeWidth : typeof I == "number" && I > 0 ? I : 1;
409
+ const i = typeof n.decimalPlaces == "number" ? n.decimalPlaces : 3, S = typeof n.flattenTolerance == "number" && n.flattenTolerance > 0 ? n.flattenTolerance : 0.25, v = n.attrs ? { ...n.attrs } : {}, x = n.groupAttrs ? { ...n.groupAttrs } : {}, I = Pa(v["stroke-width"]), B = typeof n.strokeWidth == "number" && n.strokeWidth > 0 ? n.strokeWidth : typeof I == "number" && I > 0 ? I : 1;
410
410
  d = Ia(e);
411
- const W = d.pathElement, _ = W.getTotalLength(), t = h === null ? Mt(a, n.colorReferenceElement) : [];
412
- if (h === null && (!(_ > 0) || t.length === 1)) {
413
- const G = st(t[0]), J = _t(
411
+ const E = d.pathElement, A = E.getTotalLength(), t = h === null ? At(a, n.colorReferenceElement) : [];
412
+ if (h === null && (!(A > 0) || t.length === 1)) {
413
+ const G = st(t[0]), J = Pt(
414
414
  [
415
415
  qa({
416
416
  pathData: e,
@@ -418,39 +418,39 @@ function Ga(e, a = null, n = {}) {
418
418
  segmentAttributeMap: v
419
419
  })
420
420
  ],
421
- w
421
+ x
422
422
  );
423
423
  rt(d), s(J);
424
424
  return;
425
425
  }
426
- const E = n.colorSpace ?? "linearRGB";
426
+ const F = n.colorSpace ?? "linearRGB";
427
427
  if (h !== null) {
428
428
  const G = n.temperatureColors;
429
429
  if (!Array.isArray(G) || G.length !== 2)
430
430
  throw new Error("SvgPathGradientAsync: temperatureColors must be a tuple of exactly 2 colors when temperatureMode is enabled.");
431
431
  }
432
- const Pe = h !== null ? Mt(n.temperatureColors, n.colorReferenceElement) : null, P = h === null ? (() => {
432
+ const Pe = h !== null ? At(n.temperatureColors, n.colorReferenceElement) : null, P = h === null ? (() => {
433
433
  const G = Ea(t), J = new Array(G.length);
434
434
  for (let q = 0; q < G.length; q += 1)
435
435
  J[q] = { position: G[q].position, rgba: G[q].rgba };
436
436
  return J;
437
- })() : [], de = Ta(_, B, n.maxSegmentLength), ne = Ra(_, n.segments, de), X = _ / ne;
437
+ })() : [], de = Ta(A, B, n.maxSegmentLength), ne = Ra(A, n.segments, de), X = A / ne;
438
438
  let re = typeof n.overlap == "number" && n.overlap >= 0 ? n.overlap : B * 0.5;
439
- const V = X * 0.45;
440
- re > V && (re = V);
439
+ const W = X * 0.45;
440
+ re > W && (re = W);
441
441
  const Ne = typeof n.samplePointLimitPerSegment == "number" && n.samplePointLimitPerSegment > 10 ? n.samplePointLimitPerSegment : 250, ce = Wa(v), ye = [], Ie = h !== null ? [] : null, ve = h !== null ? [] : null;
442
442
  let me = 0;
443
- const qe = h === null ? P.length - 2 : 0;
443
+ const Ge = h === null ? P.length - 2 : 0;
444
444
  let Y = 0;
445
445
  const be = () => {
446
446
  const G = performance.now(), J = typeof n.frameBudgetMs == "number" ? n.frameBudgetMs : 8;
447
447
  for (; Y < ne && performance.now() - G < J; ) {
448
- const F = Y * X, ue = (Y + 1) * X;
449
- let N = F, D = ue;
450
- if (Y !== 0 && (N = F - re), Y !== ne - 1 && (D = ue + re), N = j(N, 0, _), D = j(D, 0, _), D > N)
448
+ const V = Y * X, ue = (Y + 1) * X;
449
+ let N = V, D = ue;
450
+ if (Y !== 0 && (N = V - re), Y !== ne - 1 && (D = ue + re), N = j(N, 0, A), D = j(D, 0, A), D > N)
451
451
  if (h !== null) {
452
452
  const T = Da(
453
- W,
453
+ E,
454
454
  N,
455
455
  D,
456
456
  S,
@@ -459,16 +459,16 @@ function Ga(e, a = null, n = {}) {
459
459
  );
460
460
  Ie.push(T.pathData), ve.push(T.bounds);
461
461
  } else {
462
- const R = (N + D) * 0.5 / _;
463
- for (; me < qe && R > P[me + 1].position; )
462
+ const R = (N + D) * 0.5 / A;
463
+ for (; me < Ge && R > P[me + 1].position; )
464
464
  me += 1;
465
465
  const K = Fa(
466
466
  P,
467
467
  R,
468
- E,
468
+ F,
469
469
  me
470
470
  ), U = Ba(
471
- W,
471
+ E,
472
472
  N,
473
473
  D,
474
474
  S,
@@ -476,7 +476,7 @@ function Ga(e, a = null, n = {}) {
476
476
  Ne
477
477
  );
478
478
  ye.push(
479
- Lt(U, K, ce)
479
+ _t(U, K, ce)
480
480
  );
481
481
  }
482
482
  Y += 1;
@@ -486,21 +486,21 @@ function Ga(e, a = null, n = {}) {
486
486
  return;
487
487
  }
488
488
  if (h !== null) {
489
- let F = Number.POSITIVE_INFINITY, ue = Number.NEGATIVE_INFINITY;
489
+ let V = Number.POSITIVE_INFINITY, ue = Number.NEGATIVE_INFINITY;
490
490
  for (let T = 0; T < ve.length; T += 1) {
491
491
  const R = ve[T], K = h === "vertical" ? R.minY : R.minX, U = h === "vertical" ? R.maxY : R.maxX;
492
- K < F && (F = K), U > ue && (ue = U);
492
+ K < V && (V = K), U > ue && (ue = U);
493
493
  }
494
494
  const N = Pe[0], D = Pe[1];
495
495
  ye.length = 0;
496
496
  for (let T = 0; T < ve.length; T += 1) {
497
- const R = ve[T], K = h === "vertical" ? R.minY : R.minX, U = h === "vertical" ? R.maxY : R.maxX, Se = (K + U) * 0.5, he = Na(Se, F, ue, !0), Me = h === "vertical" ? At(N, D, he, E) : At(D, N, he, E), Te = st(Me), fe = Ie[T];
497
+ const R = ve[T], K = h === "vertical" ? R.minY : R.minX, U = h === "vertical" ? R.maxY : R.maxX, Se = (K + U) * 0.5, he = Na(Se, V, ue, !0), Me = h === "vertical" ? Ct(N, D, he, F) : Ct(D, N, he, F), Te = st(Me), fe = Ie[T];
498
498
  ye.push(
499
- Lt(fe, Te, ce)
499
+ _t(fe, Te, ce)
500
500
  );
501
501
  }
502
502
  }
503
- const q = _t(ye, w);
503
+ const q = Pt(ye, x);
504
504
  rt(d), s(q);
505
505
  };
506
506
  requestAnimationFrame(be);
@@ -520,7 +520,7 @@ const Oa = ["innerHTML"], ja = {
520
520
  segments: { type: Number, required: !0 }
521
521
  },
522
522
  setup(e) {
523
- const a = e, n = C("");
523
+ const a = e, n = L("");
524
524
  let s = 0;
525
525
  return z(
526
526
  () => [
@@ -551,7 +551,7 @@ const Oa = ["innerHTML"], ja = {
551
551
  d === s && (n.value = h);
552
552
  },
553
553
  { immediate: !0 }
554
- ), (o, d) => (f(), g("g", { innerHTML: n.value }, null, 8, Oa));
554
+ ), (o, d) => (f(), y("g", { innerHTML: n.value }, null, 8, Oa));
555
555
  }
556
556
  }, za = ["id"], Ya = ["id"], Xa = { style: { position: "relative" } }, Ka = ["xmlns", "viewBox", "aria-describedby"], Ua = ["width", "height"], Ha = ["id"], Za = ["stop-color"], Ja = ["stop-color"], Qa = ["id"], el = ["stop-color"], tl = ["stop-color"], al = ["id"], ll = ["stop-color"], nl = ["stop-color"], rl = ["id"], ul = ["id"], ol = ["stop-color", "offset"], sl = { key: 1 }, il = ["d", "fill"], dl = ["d", "fill"], cl = ["id", "d", "stroke-width"], vl = ["d", "stroke", "stroke-width", "stroke-dasharray"], hl = ["d", "stroke", "stroke-width"], fl = ["id", "d", "stroke-width"], pl = ["d", "stroke", "stroke-width", "stroke-dasharray"], gl = ["d", "stroke", "stroke-width"], yl = ["x", "y", "width", "height", "fill", "rx"], ml = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], bl = ["x1", "x2", "y1", "y2", "stroke", "stroke-dasharray", "stroke-width"], kl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], wl = ["x", "y", "font-size", "font-weight", "fill"], xl = ["x", "y", "height", "width", "onMouseenter", "onMouseleave", "onClick"], $l = {
557
557
  key: 0,
@@ -592,11 +592,11 @@ const Oa = ["innerHTML"], ja = {
592
592
  },
593
593
  emits: ["hoverIndex", "selectDatapoint"],
594
594
  setup(e, { emit: a }) {
595
- const n = yt(() => import("./PackageVersion-1BHnPIBZ.js")), s = yt(() => import("./SparkTooltip-BorBpltj.js")), { vue_ui_sparkline: o } = ra(), { isThemeValid: d, warnInvalidTheme: h } = sa(), y = ca(), i = e, S = p(() => Array.isArray(i.dataset) && i.dataset.length > 0), v = C(Yt()), w = C(null), I = C(null), B = C(null), W = C(null), _ = C(null), t = C(re());
596
- function E(l) {
595
+ const n = mt(() => import("./PackageVersion-B3kmPxTR.js")), s = mt(() => import("./SparkTooltip-BorBpltj.js")), { vue_ui_sparkline: o } = ra(), { isThemeValid: d, warnInvalidTheme: h } = sa(), m = ca(), i = e, S = g(() => Array.isArray(i.dataset) && i.dataset.length > 0), v = L(Yt()), x = L(null), I = L(null), B = L(null), E = L(null), A = L(null), t = L(re());
596
+ function F(l) {
597
597
  return i.config?.skeletonDataset && Array.isArray(i.config.skeletonDataset) ? i.config.skeletonDataset.map((u) => ({ period: "-", value: u })) : aa(l).map((u) => ({ period: "-", value: u }));
598
598
  }
599
- const Pe = p(() => kt({
599
+ const Pe = g(() => wt({
600
600
  defaultConfig: {
601
601
  gradientPath: { show: !1 },
602
602
  temperatureColors: { show: !1 },
@@ -623,8 +623,8 @@ const Oa = ["innerHTML"], ja = {
623
623
  await te(), Me();
624
624
  });
625
625
  },
626
- skeletonDataset: E(12),
627
- skeletonConfig: kt({
626
+ skeletonDataset: F(12),
627
+ skeletonConfig: wt({
628
628
  defaultConfig: t.value,
629
629
  userConfig: Pe.value
630
630
  })
@@ -655,7 +655,7 @@ const Oa = ["innerHTML"], ja = {
655
655
  u = l;
656
656
  return u;
657
657
  }
658
- const V = p(() => t.value?.style?.line.pulse || {}), Ne = p(() => `${Math.max(200, Number(V.value.durationMs) || 4e3) / 1e3}s`), ce = C(0), ye = p(() => V.value?.begin || "0ms"), Ie = C("0;1"), ve = p(() => V.value?.loop === !1 ? "1" : "indefinite"), me = p(() => V.value?.loop === !1 ? "freeze" : void 0), qe = p(() => V.value.trail.show && J.value.lengthPx || 1), Y = p(() => !!V.value?.show && !O.value && !y.value && !P.value && (m.value?.length || 0) > 1);
658
+ const W = g(() => t.value?.style?.line.pulse || {}), Ne = g(() => `${Math.max(200, Number(W.value.durationMs) || 4e3) / 1e3}s`), ce = L(0), ye = g(() => W.value?.begin || "0ms"), Ie = L("0;1"), ve = g(() => W.value?.loop === !1 ? "1" : "indefinite"), me = g(() => W.value?.loop === !1 ? "freeze" : void 0), Ge = g(() => W.value.trail.show && J.value.lengthPx || 1), Y = g(() => !!W.value?.show && !O.value && !m.value && !P.value && (p.value?.length || 0) > 1);
659
659
  function be() {
660
660
  if (!Y.value) {
661
661
  ce.value = 0;
@@ -672,13 +672,13 @@ const Oa = ["innerHTML"], ja = {
672
672
  requestAnimationFrame(() => {
673
673
  const c = l.querySelector?.(u);
674
674
  if (c && typeof c.getTotalLength == "function") {
675
- const k = c.getTotalLength();
676
- Number.isFinite(k) && k > 0 && (ce.value = k);
675
+ const w = c.getTotalLength();
676
+ Number.isFinite(w) && w > 0 && (ce.value = w);
677
677
  }
678
678
  });
679
679
  }
680
- const G = p(() => {
681
- const l = V.value?.easing || "ease-in-out", u = {
680
+ const G = g(() => {
681
+ const l = W.value?.easing || "ease-in-out", u = {
682
682
  ease: [0.25, 0.1, 0.25, 1],
683
683
  "ease-in": [0.42, 0, 1, 1],
684
684
  "ease-out": [0, 0, 0.58, 1],
@@ -694,11 +694,11 @@ const Oa = ["innerHTML"], ja = {
694
694
  keyTimes: "0;1"
695
695
  } : {
696
696
  calcMode: "spline",
697
- keySplines: (l === "cubic-bezier" ? Array.isArray(V.value?.cubicBezier) && V.value.cubicBezier.length === 4 ? V.value.cubicBezier : [0.4, 0, 0.2, 1] : u[l] || u["ease-in-out"]).join(" "),
697
+ keySplines: (l === "cubic-bezier" ? Array.isArray(W.value?.cubicBezier) && W.value.cubicBezier.length === 4 ? W.value.cubicBezier : [0.4, 0, 0.2, 1] : u[l] || u["ease-in-out"]).join(" "),
698
698
  keyTimes: "0;1"
699
699
  };
700
- }), J = p(() => {
701
- const l = V.value?.trail || {}, u = t.value.style.line.strokeWidth || 1;
700
+ }), J = g(() => {
701
+ const l = W.value?.trail || {}, u = t.value.style.line.strokeWidth || 1;
702
702
  return {
703
703
  show: l.show !== !1,
704
704
  lengthPx: l.length,
@@ -707,14 +707,14 @@ const Oa = ["innerHTML"], ja = {
707
707
  fadeIn: 0.5,
708
708
  fadeOut: 0.2
709
709
  };
710
- }), q = p(() => Qe({
710
+ }), q = g(() => Qe({
711
711
  data: de.value,
712
712
  threshold: t.value.downsample.threshold
713
713
  }));
714
714
  z(() => i.config, (l) => {
715
- P.value || (t.value = re()), vt(), x.value.chartWidth = t.value.style.chartWidth;
715
+ P.value || (t.value = re()), vt(), $.value.chartWidth = t.value.style.chartWidth;
716
716
  }, { deep: !0 }), z(() => i.dataset, (l) => {
717
- Array.isArray(l) && l.length > 0 && (ne.value = !1), F.value = Qe({
717
+ Array.isArray(l) && l.length > 0 && (ne.value = !1), V.value = Qe({
718
718
  data: de.value.map((u) => ({
719
719
  ...u,
720
720
  value: [void 0].includes(u.value) ? null : u.value
@@ -722,7 +722,7 @@ const Oa = ["innerHTML"], ja = {
722
722
  threshold: t.value.downsample.threshold
723
723
  });
724
724
  }, { deep: !0 });
725
- const F = C(ue());
725
+ const V = L(ue());
726
726
  function ue() {
727
727
  return Qe({
728
728
  data: de.value.map((l) => t.value.style.animation.show && de.value.length > 1 ? {
@@ -735,8 +735,8 @@ const Oa = ["innerHTML"], ja = {
735
735
  threshold: t.value.downsample.threshold
736
736
  });
737
737
  }
738
- const N = mt(null), D = mt(null), T = C(!1), R = C(0), K = C([]), U = C(""), Se = p(() => {
739
- const u = (q.value || []).map((k) => `${k.period}::${Number.isFinite(k.value) ? k.value : 0}`).join("|"), r = t.value?.style?.animation || {}, c = !!t.value?.gradientPath?.show && !t.value.temperatureColors.show;
738
+ const N = bt(null), D = bt(null), T = L(!1), R = L(0), K = L([]), U = L(""), Se = g(() => {
739
+ const u = (q.value || []).map((w) => `${w.period}::${Number.isFinite(w.value) ? w.value : 0}`).join("|"), r = t.value?.style?.animation || {}, c = !!t.value?.gradientPath?.show && !t.value.temperatureColors.show;
740
740
  return `${u}#${!!r.show}#${r.animationFrames || 0}#${c}`;
741
741
  });
742
742
  function he() {
@@ -744,39 +744,39 @@ const Oa = ["innerHTML"], ja = {
744
744
  }
745
745
  function Me() {
746
746
  const l = t.value?.style?.animation || {}, u = q.value || [], r = Se.value, c = !!t.value.gradientPath.show && !t.value.temperatureColors.show;
747
- if (r && r === U.value && (T.value || F.value.length === u.length))
747
+ if (r && r === U.value && (T.value || V.value.length === u.length))
748
748
  return;
749
749
  if (he(), c || !l.show || P.value || u.length <= 1) {
750
- F.value = u, U.value = r;
750
+ V.value = u, U.value = r;
751
751
  return;
752
752
  }
753
- T.value = !0, U.value = r, F.value = [];
754
- const k = Math.max(1, Number(l.animationFrames) || 1), He = Math.max(1, Math.floor(k / u.length));
753
+ T.value = !0, U.value = r, V.value = [];
754
+ const w = Math.max(1, Number(l.animationFrames) || 1), He = Math.max(1, Math.floor(w / u.length));
755
755
  let ee = 0;
756
- const De = () => {
756
+ const Ee = () => {
757
757
  if (r !== Se.value) {
758
758
  he();
759
759
  return;
760
760
  }
761
761
  if (ee < u.length) {
762
- F.value.push(u[ee]);
763
- const Ee = setTimeout(() => {
764
- R.value = requestAnimationFrame(De);
762
+ V.value.push(u[ee]);
763
+ const Fe = setTimeout(() => {
764
+ R.value = requestAnimationFrame(Ee);
765
765
  }, He);
766
- K.value.push(Ee), ee += 1;
766
+ K.value.push(Fe), ee += 1;
767
767
  } else
768
- F.value = u, he();
768
+ V.value = u, he();
769
769
  };
770
- R.value = requestAnimationFrame(De);
770
+ R.value = requestAnimationFrame(Ee);
771
771
  }
772
772
  z(Se, () => {
773
773
  Me();
774
- }), bt(() => {
774
+ }), kt(() => {
775
775
  vt(), Me();
776
776
  }), ot(() => {
777
777
  he();
778
778
  });
779
- const Te = C(0);
779
+ const Te = L(0);
780
780
  z(
781
781
  () => P.value,
782
782
  async (l) => {
@@ -788,13 +788,13 @@ const Oa = ["innerHTML"], ja = {
788
788
  l || P.value || (await te(), Te.value += 1);
789
789
  }
790
790
  );
791
- const fe = p(() => `sparkline_line_path_${v.value}`), Ge = C(!0);
791
+ const fe = g(() => `sparkline_line_path_${v.value}`), Oe = L(!0);
792
792
  async function dt() {
793
- Ge.value = !1, await te(), Ge.value = !0, await te(), be();
793
+ Oe.value = !1, await te(), Oe.value = !0, await te(), be();
794
794
  }
795
- const ct = p(() => !!t.value.debug);
795
+ const ct = g(() => !!t.value.debug);
796
796
  function vt() {
797
- if (wt(i.dataset) ? (xt({
797
+ if (xt(i.dataset) ? ($t({
798
798
  componentName: "VueUiSparkline",
799
799
  type: "dataset",
800
800
  debug: ct.value
@@ -803,7 +803,7 @@ const Oa = ["innerHTML"], ja = {
803
803
  datasetObject: l,
804
804
  requiredAttributes: ["period", "value"]
805
805
  }).forEach((r) => {
806
- xt({
806
+ $t({
807
807
  componentName: "VueUiSparkline",
808
808
  type: "datasetSerieAttribute",
809
809
  property: r,
@@ -811,47 +811,47 @@ const Oa = ["innerHTML"], ja = {
811
811
  debug: ct.value
812
812
  });
813
813
  });
814
- }), wt(i.dataset) || (ne.value = t.value.loading), t.value.responsive) {
814
+ }), xt(i.dataset) || (ne.value = t.value.loading), t.value.responsive) {
815
815
  const l = la(() => {
816
816
  const { width: u, height: r } = na({
817
- chart: w.value,
817
+ chart: x.value,
818
818
  title: t.value.style.title.show && i.showInfo ? I.value : null,
819
819
  source: B.value
820
820
  });
821
821
  requestAnimationFrame(() => {
822
- x.value.width = u, x.value.height = r, x.value.chartWidth = t.value.style.chartWidth / 500 * u, x.value.padding = i.forcedPadding / 500 * u;
822
+ $.value.width = u, $.value.height = r, $.value.chartWidth = t.value.style.chartWidth / 500 * u, $.value.padding = i.forcedPadding / 500 * u;
823
823
  });
824
824
  });
825
- N.value && (D.value && N.value.unobserve(D.value), N.value.disconnect()), N.value = new ResizeObserver(l), D.value = w.value.parentNode, N.value.observe(D.value);
825
+ N.value && (D.value && N.value.unobserve(D.value), N.value.disconnect()), N.value = new ResizeObserver(l), D.value = x.value.parentNode, N.value.observe(D.value);
826
826
  }
827
827
  }
828
828
  ot(() => {
829
829
  N.value && (D.value && N.value.unobserve(D.value), N.value.disconnect());
830
830
  });
831
- const x = C({
831
+ const $ = L({
832
832
  height: 80 * i.heightRatio,
833
833
  width: 500,
834
834
  chartWidth: t.value.style.chartWidth,
835
835
  padding: i.forcedPadding
836
- }), Re = a, A = p(() => {
836
+ }), Re = a, C = g(() => {
837
837
  const { top: l, right: u, bottom: r, left: c } = t.value.style.padding;
838
838
  return {
839
839
  top: l,
840
840
  left: c,
841
- right: x.value.width - u,
842
- bottom: x.value.height - r,
843
- start: i.showInfo && t.value.style.dataLabel.show && t.value.style.dataLabel.position === "left" ? x.value.width - x.value.chartWidth + c : x.value.padding + c,
844
- width: i.showInfo && t.value.style.dataLabel.show ? x.value.chartWidth - c - u : x.value.width - x.value.padding - c - u,
845
- height: x.value.height - l - r
841
+ right: $.value.width - u,
842
+ bottom: $.value.height - r,
843
+ start: i.showInfo && t.value.style.dataLabel.show && t.value.style.dataLabel.position === "left" ? $.value.width - $.value.chartWidth + c : $.value.padding + c,
844
+ width: i.showInfo && t.value.style.dataLabel.show ? $.value.chartWidth - c - u : $.value.width - $.value.padding - c - u,
845
+ height: $.value.height - l - r
846
846
  };
847
- }), Oe = p(() => [null, void 0].includes(t.value.style.scaleMin) ? Math.min(...F.value.map((l) => isNaN(l.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(l.value) ? 0 : l.value || 0)) : t.value.style.scaleMin), Pt = p(() => [null, void 0].includes(t.value.style.scaleMax) ? Math.max(...F.value.map((l) => isNaN(l.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(l.value) ? 0 : l.value || 0)) : t.value.style.scaleMax), Ae = p(() => {
848
- const l = Oe.value >= 0 ? 0 : Oe.value;
847
+ }), je = g(() => [null, void 0].includes(t.value.style.scaleMin) ? Math.min(...V.value.map((l) => isNaN(l.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(l.value) ? 0 : l.value || 0)) : t.value.style.scaleMin), Nt = g(() => [null, void 0].includes(t.value.style.scaleMax) ? Math.max(...V.value.map((l) => isNaN(l.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(l.value) ? 0 : l.value || 0)) : t.value.style.scaleMax), Ae = g(() => {
848
+ const l = je.value >= 0 ? 0 : je.value;
849
849
  return Math.abs(l);
850
- }), ht = p(() => Pt.value + Ae.value), ke = p(() => A.value.bottom - A.value.height * je(Ae.value));
851
- function je(l) {
850
+ }), ht = g(() => Nt.value + Ae.value), ke = g(() => C.value.bottom - C.value.height * ze(Ae.value));
851
+ function ze(l) {
852
852
  return isNaN(l / ht.value) ? 0 : l / ht.value;
853
853
  }
854
- const we = p(() => q.value.length - 1 || 1), Ce = C([]);
854
+ const we = g(() => q.value.length - 1 || 1), Ce = L([]);
855
855
  let ft = 0;
856
856
  Gt(() => {
857
857
  const l = ++ft;
@@ -866,44 +866,44 @@ const Oa = ["innerHTML"], ja = {
866
866
  l === ft && (Ce.value = u);
867
867
  })();
868
868
  });
869
- const m = p(() => F.value.map((l, u) => {
870
- const r = isNaN(l.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(l.value) ? 0 : l.value || 0, c = A.value.width / we.value;
869
+ const p = g(() => V.value.map((l, u) => {
870
+ const r = isNaN(l.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(l.value) ? 0 : l.value || 0, c = C.value.width / we.value;
871
871
  return {
872
872
  value: l.value,
873
873
  absoluteValue: r,
874
874
  period: Ce.value && Ce.value[u] && Ce.value[u].text ? Ce.value[u].text : l.period,
875
875
  plotValue: r + Ae.value,
876
- toMax: je(r + Ae.value),
877
- x: A.value.start + u * c,
878
- y: A.value.bottom - A.value.height * je(r + Ae.value),
876
+ toMax: ze(r + Ae.value),
877
+ x: C.value.start + u * c,
878
+ y: C.value.bottom - C.value.height * ze(r + Ae.value),
879
879
  id: `plot_${v.value}_${u}`,
880
- color: O.value ? t.value.style.bar.color : t.value.style.area.useGradient ? Fe(t.value.style.line.color, 0.05 * (1 - u / we.value)) : t.value.style.line.color,
880
+ color: O.value ? t.value.style.bar.color : t.value.style.area.useGradient ? Ve(t.value.style.line.color, 0.05 * (1 - u / we.value)) : t.value.style.line.color,
881
881
  width: c
882
882
  };
883
- })), Nt = p(() => i.selectedIndex !== void 0 && i.selectedIndex !== null && i.selectedIndex >= 0 && i.selectedIndex < m.value.length ? i.selectedIndex : _.value !== void 0 && _.value !== null && _.value >= 0 && _.value < m.value.length ? _.value : null), It = p(() => {
884
- const l = { x: m.value[0].x || 0, y: (x.value.height || 0) - 6 }, u = { x: m.value[m.value.length - 1].x || 0, y: (x.value.height || 0) - 6 }, r = [];
885
- return m.value.forEach((c) => {
883
+ })), pt = g(() => i.selectedIndex !== void 0 && i.selectedIndex !== null && i.selectedIndex >= 0 && i.selectedIndex < p.value.length ? i.selectedIndex : A.value !== void 0 && A.value !== null && A.value >= 0 && A.value < p.value.length ? A.value : null), It = g(() => {
884
+ const l = { x: p.value[0].x || 0, y: ($.value.height || 0) - 6 }, u = { x: p.value[p.value.length - 1].x || 0, y: ($.value.height || 0) - 6 }, r = [];
885
+ return p.value.forEach((c) => {
886
886
  r.push(`${c.x || 0},${c.y || 0} `);
887
887
  }), [l.x, l.y, ...r, u.x, u.y].toString();
888
- }), $ = C(void 0), oe = C(void 0);
889
- function ze(l, u) {
890
- t.value.events.datapointEnter && t.value.events.datapointEnter({ datapoint: l, seriesIndex: u }), _.value = u, W.value = u, $.value = l, oe.value || (oe.value = l), Re("hoverIndex", { index: u });
888
+ }), k = L(void 0), oe = L(void 0);
889
+ function Ye(l, u) {
890
+ t.value.events.datapointEnter && t.value.events.datapointEnter({ datapoint: l, seriesIndex: u }), A.value = u, E.value = u, k.value = l, oe.value || (oe.value = l), Re("hoverIndex", { index: u });
891
891
  }
892
892
  function Tt(l, u) {
893
- t.value.events.datapointLeave && t.value.events.datapointLeave({ datapoint: l, seriesIndex: u }), oe.value = $.value, $.value = void 0, _.value = null, W.value = null, Re("hoverIndex", { index: void 0 });
893
+ t.value.events.datapointLeave && t.value.events.datapointLeave({ datapoint: l, seriesIndex: u }), oe.value = k.value, k.value = void 0, A.value = null, E.value = null, Re("hoverIndex", { index: void 0 });
894
894
  }
895
- const se = p(() => {
895
+ const se = g(() => {
896
896
  if (S.value) {
897
- const l = m.value.map((r) => r.absoluteValue), u = l.reduce((r, c) => r + c, 0);
897
+ const l = p.value.map((r) => r.absoluteValue), u = l.reduce((r, c) => r + c, 0);
898
898
  return {
899
- latest: m.value[m.value.length - 1] ? m.value[m.value.length - 1].absoluteValue : 0,
899
+ latest: p.value[p.value.length - 1] ? p.value[p.value.length - 1].absoluteValue : 0,
900
900
  sum: u,
901
- average: u / m.value.length,
901
+ average: u / p.value.length,
902
902
  median: Ut(l),
903
- trend: Kt(m.value.map(({ x: r, y: c, absoluteValue: k }) => ({
903
+ trend: Kt(p.value.map(({ x: r, y: c, absoluteValue: w }) => ({
904
904
  x: r,
905
905
  y: c,
906
- value: k
906
+ value: w
907
907
  }))).trend
908
908
  };
909
909
  } else
@@ -914,31 +914,31 @@ const Oa = ["innerHTML"], ja = {
914
914
  median: null,
915
915
  trend: null
916
916
  };
917
- }), pt = p(() => S.value ? t.value.style.dataLabel.valueType === "latest" ? se.value.latest : t.value.style.dataLabel.valueType === "sum" ? se.value.sum : t.value.style.dataLabel.valueType === "average" ? se.value.average : 0 : 0), O = p(() => t.value.type && t.value.type === "bar");
917
+ }), gt = g(() => S.value ? t.value.style.dataLabel.valueType === "latest" ? se.value.latest : t.value.style.dataLabel.valueType === "sum" ? se.value.sum : t.value.style.dataLabel.valueType === "average" ? se.value.average : 0 : 0), O = g(() => t.value.type && t.value.type === "bar");
918
918
  function Rt(l, u) {
919
919
  t.value.events.datapointClick && t.value.events.datapointClick({ datapoint: l, seriesIndex: u }), Re("selectDatapoint", { datapoint: l, index: u });
920
920
  }
921
- const Be = p(() => Array.isArray(t.value.style.line.dashIndices) && t.value.style.line.dashIndices.length > 0), Ye = p(() => O.value ? "" : $t(m.value)), Xe = p(() => O.value ? "" : Ht(m.value)), Bt = p(() => O.value || !Be.value ? [] : Zt(
922
- m.value,
921
+ const Be = g(() => Array.isArray(t.value.style.line.dashIndices) && t.value.style.line.dashIndices.length > 0), Xe = g(() => O.value ? "" : St(p.value)), Ke = g(() => O.value ? "" : Ht(p.value)), Bt = g(() => O.value || !Be.value ? [] : Zt(
922
+ p.value,
923
923
  t.value.style.line.dashIndices
924
- )), Dt = p(() => O.value || !Be.value ? [] : Jt(
925
- m.value,
924
+ )), Dt = g(() => O.value || !Be.value ? [] : Jt(
925
+ p.value,
926
926
  t.value.style.line.dashIndices
927
- )), gt = p(() => O.value || !t.value.gradientPath.show || t.value.temperatureColors.show ? "" : `M ${(t.value.style.line.smooth ? Ye.value : Xe.value) || "0,0"}`), Q = p(() => !t.value.temperatureColors.show || t.value.temperatureColors.colors.length === 0 ? null : t.value.temperatureColors.colors.map((l) => Qt(l)));
927
+ )), yt = g(() => O.value || !t.value.gradientPath.show || t.value.temperatureColors.show ? "" : `M ${(t.value.style.line.smooth ? Xe.value : Ke.value) || "0,0"}`), Q = g(() => !t.value.temperatureColors.show || t.value.temperatureColors.colors.length === 0 ? null : t.value.temperatureColors.colors.map((l) => Qt(l)));
928
928
  z(
929
929
  () => [
930
930
  Y.value,
931
931
  fe.value,
932
- m.value.length,
933
- x.value.width,
934
- x.value.height,
932
+ p.value.length,
933
+ $.value.width,
934
+ $.value.height,
935
935
  t.value?.style?.line?.smooth
936
936
  ],
937
937
  async () => {
938
938
  await te(), be();
939
939
  },
940
940
  { immediate: !0 }
941
- ), bt(async () => {
941
+ ), kt(async () => {
942
942
  await te(), be();
943
943
  }), z(
944
944
  () => P.value,
@@ -953,42 +953,54 @@ const Oa = ["innerHTML"], ja = {
953
953
  ), z(
954
954
  () => i.selectedIndex,
955
955
  (l) => {
956
- if (l == null || l < 0 || l >= m.value.length) return;
957
- const u = m.value[l];
958
- u && (_.value = l, W.value = l, $.value = u);
956
+ if (l == null) {
957
+ A.value = null, E.value = null, k.value = void 0;
958
+ return;
959
+ }
960
+ if (l < 0 || l >= p.value.length) return;
961
+ const u = p.value[l];
962
+ u && (A.value = l, E.value = l, k.value = u);
959
963
  }
960
964
  );
961
- const Ke = C(!1);
965
+ const De = L(!1);
962
966
  function Et() {
963
- W.value = null, $.value || ze(m.value.at(-1), m.value.length - 1), Ke.value = !0;
967
+ const l = pt.value;
968
+ if (l !== null && l >= 0 && l < p.value.length) {
969
+ const u = p.value[l];
970
+ if (u) {
971
+ E.value = l, k.value = u, A.value = l, De.value = !0;
972
+ return;
973
+ }
974
+ }
975
+ E.value = null, !k.value && p.value.length && Ye(p.value.at(-1), p.value.length - 1), De.value = !0;
964
976
  }
965
977
  function Ft() {
966
- W.value = null, oe.value = $.value, $.value = void 0, Re("hoverIndex", { index: void 0 }), Ke.value = !1;
978
+ oe.value = k.value, (i.selectedIndex === void 0 || i.selectedIndex === null) && (E.value = null, k.value = void 0, A.value = null, Re("hoverIndex", { index: void 0 })), De.value = !1;
967
979
  }
968
980
  function Vt(l) {
969
981
  if (!X.value || document.activeElement !== X.value) return;
970
- oe.value = $.value;
982
+ oe.value = k.value;
971
983
  const u = l.key === "ArrowLeft", r = l.key === "ArrowRight";
972
984
  if (!u && !r) return;
973
- const c = m.value.length;
985
+ const c = p.value.length;
974
986
  if (!c) return;
975
987
  l.preventDefault(), l.stopPropagation();
976
- let k = W.value;
977
- const He = k !== null && k >= 0 && k < c, ee = $.value ? m.value.findIndex((Wt) => Wt.id === $.value.id) : -1, De = ee !== null && ee >= 0 && ee < c;
978
- He ? r ? (k += 1, k >= c && (k = 0)) : u && (k -= 1, k < 0 && (k = c - 1)) : De ? (k = r ? ee + 1 : ee - 1, k >= c && (k = 0), k < 0 && (k = c - 1)) : r ? k = 0 : k = c - 1;
979
- const Ee = m.value[k];
980
- Ee && (W.value = k, ze(Ee, k));
988
+ let w = E.value;
989
+ const He = w !== null && w >= 0 && w < c, ee = k.value ? p.value.findIndex((Wt) => Wt.id === k.value.id) : -1, Ee = ee !== null && ee >= 0 && ee < c;
990
+ He ? r ? (w += 1, w >= c && (w = 0)) : u && (w -= 1, w < 0 && (w = c - 1)) : Ee ? (w = r ? ee + 1 : ee - 1, w >= c && (w = 0), w < 0 && (w = c - 1)) : r ? w = 0 : w = c - 1;
991
+ const Fe = p.value[w];
992
+ Fe && (E.value = w, Ye(Fe, w));
981
993
  }
982
- const Ue = p(() => {
994
+ const Ue = g(() => {
983
995
  const l = [
984
996
  t.value.translations.period,
985
997
  t.value.translations.value
986
- ], u = m.value.map((r) => [r.period, r.absoluteValue]);
998
+ ], u = p.value.map((r) => [r.period, r.absoluteValue]);
987
999
  return { headers: l, rows: u };
988
1000
  });
989
- return (l, u) => (f(), g("div", {
1001
+ return (l, u) => (f(), y("div", {
990
1002
  ref_key: "sparklineChart",
991
- ref: w,
1003
+ ref: x,
992
1004
  class: "vue-data-ui-component vue-ui-sparkline",
993
1005
  id: v.value,
994
1006
  style: H(`width:100%;font-family:${t.value.style.fontFamily};`)
@@ -1004,16 +1016,16 @@ const Oa = ["innerHTML"], ja = {
1004
1016
  body: Ue.value.rows,
1005
1017
  notice: t.value.a11y.translations.tableAvailable,
1006
1018
  caption: t.value.a11y.translations.tableCaption
1007
- }, null, 8, ["uid", "head", "body", "notice", "caption"])) : L("", !0),
1019
+ }, null, 8, ["uid", "head", "body", "notice", "caption"])) : _("", !0),
1008
1020
  pe(l.$slots, "before", Ze(Je({
1009
- selected: $.value,
1021
+ selected: k.value,
1010
1022
  latest: se.value.latest,
1011
1023
  sum: se.value.sum,
1012
1024
  average: se.value.average,
1013
1025
  median: se.value.median,
1014
1026
  trend: se.value.trend
1015
1027
  })), void 0, !0),
1016
- t.value.style.title.show && e.showInfo ? (f(), g("div", {
1028
+ t.value.style.title.show && e.showInfo ? (f(), y("div", {
1017
1029
  key: 1,
1018
1030
  ref_key: "chartTitle",
1019
1031
  ref: I,
@@ -1022,14 +1034,14 @@ const Oa = ["innerHTML"], ja = {
1022
1034
  }, [
1023
1035
  M("span", {
1024
1036
  style: H(`padding:${t.value.style.title.textAlign === "left" ? "0 0 0 12px" : t.value.style.title.textAlign === "right" ? "0 12px 0 0" : "0"}`)
1025
- }, Le($.value ? $.value.period : t.value.style.title.text), 5)
1026
- ], 4)) : L("", !0),
1037
+ }, Le(k.value ? k.value.period : t.value.style.title.text), 5)
1038
+ ], 4)) : _("", !0),
1027
1039
  M("div", Xa, [
1028
- (f(), g("svg", {
1040
+ (f(), y("svg", {
1029
1041
  ref_key: "svgRef",
1030
1042
  ref: X,
1031
1043
  xmlns: b(ea),
1032
- viewBox: `0 0 ${x.value.width} ${x.value.height}`,
1044
+ viewBox: `0 0 ${$.value.width} ${$.value.height}`,
1033
1045
  style: H(`background:${t.value.style.backgroundColor};overflow:visible;direction:ltr`),
1034
1046
  tabindex: "0",
1035
1047
  "aria-describedby": `chart-instructions-${v.value}`,
@@ -1039,18 +1051,18 @@ const Oa = ["innerHTML"], ja = {
1039
1051
  onKeydown: Vt
1040
1052
  }, [
1041
1053
  Ot(b(n)),
1042
- l.$slots["chart-background"] ? (f(), g("foreignObject", {
1054
+ l.$slots["chart-background"] ? (f(), y("foreignObject", {
1043
1055
  key: 0,
1044
1056
  x: 0,
1045
1057
  y: 0,
1046
- width: x.value.width <= 0 ? 10 : x.value.width,
1047
- height: x.value.height <= 0 ? 10 : x.value.height,
1058
+ width: $.value.width <= 0 ? 10 : $.value.width,
1059
+ height: $.value.height <= 0 ? 10 : $.value.height,
1048
1060
  style: {
1049
1061
  pointerEvents: "none"
1050
1062
  }
1051
1063
  }, [
1052
1064
  pe(l.$slots, "chart-background", {}, void 0, !0)
1053
- ], 8, Ua)) : L("", !0),
1065
+ ], 8, Ua)) : _("", !0),
1054
1066
  M("defs", null, [
1055
1067
  M("linearGradient", {
1056
1068
  x1: "0%",
@@ -1061,11 +1073,11 @@ const Oa = ["innerHTML"], ja = {
1061
1073
  }, [
1062
1074
  M("stop", {
1063
1075
  offset: "0%",
1064
- "stop-color": b(Ve)(b(Fe)(t.value.style.area.color, 0.05), t.value.style.area.opacity)
1076
+ "stop-color": b(We)(b(Ve)(t.value.style.area.color, 0.05), t.value.style.area.opacity)
1065
1077
  }, null, 8, Za),
1066
1078
  M("stop", {
1067
1079
  offset: "100%",
1068
- "stop-color": b(Ve)(t.value.style.area.color, t.value.style.area.opacity)
1080
+ "stop-color": b(We)(t.value.style.area.color, t.value.style.area.opacity)
1069
1081
  }, null, 8, Ja)
1070
1082
  ], 8, Ha),
1071
1083
  M("linearGradient", {
@@ -1079,7 +1091,7 @@ const Oa = ["innerHTML"], ja = {
1079
1091
  }, null, 8, el),
1080
1092
  M("stop", {
1081
1093
  offset: "100%",
1082
- "stop-color": b(Fe)(t.value.style.bar.color, 0.05)
1094
+ "stop-color": b(Ve)(t.value.style.bar.color, 0.05)
1083
1095
  }, null, 8, tl)
1084
1096
  ], 8, Qa),
1085
1097
  M("linearGradient", {
@@ -1089,7 +1101,7 @@ const Oa = ["innerHTML"], ja = {
1089
1101
  }, [
1090
1102
  M("stop", {
1091
1103
  offset: "0%",
1092
- "stop-color": b(Fe)(t.value.style.bar.color, 0.05)
1104
+ "stop-color": b(Ve)(t.value.style.bar.color, 0.05)
1093
1105
  }, null, 8, ll),
1094
1106
  M("stop", {
1095
1107
  offset: "100%",
@@ -1114,52 +1126,52 @@ const Oa = ["innerHTML"], ja = {
1114
1126
  M("feMergeNode", { in: "SourceGraphic" })
1115
1127
  ], -1)
1116
1128
  ])], 8, rl),
1117
- t.value.temperatureColors.show && Q.value ? (f(), g("linearGradient", {
1129
+ t.value.temperatureColors.show && Q.value ? (f(), y("linearGradient", {
1118
1130
  key: 0,
1119
1131
  id: `temperature_grad_sparkline_${v.value}`,
1120
1132
  gradientTransform: "rotate(90)"
1121
1133
  }, [
1122
- (f(!0), g(Z, null, ge(Q.value, (r, c) => (f(), g("stop", {
1134
+ (f(!0), y(Z, null, ge(Q.value, (r, c) => (f(), y("stop", {
1123
1135
  key: `temperature_grad_stop_${c}_${v.value}`,
1124
1136
  "stop-color": r,
1125
1137
  offset: b(ta)(c, Q.value.length)
1126
1138
  }, null, 8, ol))), 128))
1127
- ], 8, ul)) : L("", !0)
1139
+ ], 8, ul)) : _("", !0)
1128
1140
  ]),
1129
- t.value.style.area.show && !O.value && m.value[0] && m.value.length > 1 ? (f(), g("g", sl, [
1130
- t.value.style.line.smooth ? (f(), g("path", {
1141
+ t.value.style.area.show && !O.value && p.value[0] && p.value.length > 1 ? (f(), y("g", sl, [
1142
+ t.value.style.line.smooth ? (f(), y("path", {
1131
1143
  key: 0,
1132
1144
  class: "vue-ui-sparkline-area",
1133
- d: `M ${m.value[0].x},${A.value.bottom} ${b($t)(m.value)} L ${m.value.at(-1).x},${A.value.bottom} Z`,
1134
- fill: t.value.style.area.useGradient ? `url(#sparkline_gradient_${v.value})` : b(Ve)(t.value.style.area.color, t.value.style.area.opacity),
1145
+ d: `M ${p.value[0].x},${C.value.bottom} ${b(St)(p.value)} L ${p.value.at(-1).x},${C.value.bottom} Z`,
1146
+ fill: t.value.style.area.useGradient ? `url(#sparkline_gradient_${v.value})` : b(We)(t.value.style.area.color, t.value.style.area.opacity),
1135
1147
  "stroke-linecap": "round",
1136
1148
  "stroke-linejoin": "round",
1137
1149
  style: H({
1138
1150
  transition: b(P) ? void 0 : "all 0.2s"
1139
1151
  })
1140
- }, null, 12, il)) : (f(), g("path", {
1152
+ }, null, 12, il)) : (f(), y("path", {
1141
1153
  key: 1,
1142
1154
  class: "vue-ui-sparkline-area",
1143
1155
  d: `M${It.value}Z`,
1144
- fill: t.value.style.area.useGradient ? `url(#sparkline_gradient_${v.value})` : b(Ve)(t.value.style.area.color, t.value.style.area.opacity),
1156
+ fill: t.value.style.area.useGradient ? `url(#sparkline_gradient_${v.value})` : b(We)(t.value.style.area.color, t.value.style.area.opacity),
1145
1157
  "stroke-linecap": "round",
1146
1158
  "stroke-linejoin": "round",
1147
1159
  style: H({
1148
1160
  transition: b(P) ? void 0 : "all 0.2s"
1149
1161
  })
1150
1162
  }, null, 12, dl))
1151
- ])) : L("", !0),
1152
- t.value.style.line.smooth && !O.value ? (f(), g(Z, { key: 2 }, [
1163
+ ])) : _("", !0),
1164
+ t.value.style.line.smooth && !O.value ? (f(), y(Z, { key: 2 }, [
1153
1165
  M("path", {
1154
1166
  id: fe.value,
1155
- d: `M ${Ye.value || "0,0"}`,
1167
+ d: `M ${Xe.value || "0,0"}`,
1156
1168
  fill: "none",
1157
1169
  stroke: "transparent",
1158
1170
  "stroke-width": t.value.style.line.strokeWidth,
1159
1171
  "stroke-linecap": "round",
1160
1172
  "stroke-linejoin": "round"
1161
1173
  }, null, 8, cl),
1162
- Be.value ? (f(!0), g(Z, { key: 0 }, ge(Bt.value, (r) => (f(), g("path", {
1174
+ Be.value ? (f(!0), y(Z, { key: 0 }, ge(Bt.value, (r) => (f(), y("path", {
1163
1175
  key: r.path,
1164
1176
  class: "vue-ui-sparkline-path",
1165
1177
  d: `M ${r.path}`,
@@ -1172,10 +1184,10 @@ const Oa = ["innerHTML"], ja = {
1172
1184
  style: H({
1173
1185
  transition: b(P) ? void 0 : "all 0.2s"
1174
1186
  })
1175
- }, null, 12, vl))), 128)) : (f(), g("path", {
1187
+ }, null, 12, vl))), 128)) : (f(), y("path", {
1176
1188
  key: 1,
1177
1189
  class: "vue-ui-sparkline-path",
1178
- d: `M ${Ye.value || "0,0"}`,
1190
+ d: `M ${Xe.value || "0,0"}`,
1179
1191
  stroke: Q.value ? `url(#temperature_grad_sparkline_${v.value})` : t.value.style.line.color,
1180
1192
  fill: "none",
1181
1193
  "stroke-width": t.value.style.line.strokeWidth,
@@ -1185,18 +1197,18 @@ const Oa = ["innerHTML"], ja = {
1185
1197
  transition: b(P) ? void 0 : "all 0.2s"
1186
1198
  })
1187
1199
  }, null, 12, hl))
1188
- ], 64)) : L("", !0),
1189
- !t.value.style.line.smooth && !O.value ? (f(), g(Z, { key: 3 }, [
1200
+ ], 64)) : _("", !0),
1201
+ !t.value.style.line.smooth && !O.value ? (f(), y(Z, { key: 3 }, [
1190
1202
  M("path", {
1191
1203
  id: fe.value,
1192
- d: `M ${Xe.value || "0,0"}`,
1204
+ d: `M ${Ke.value || "0,0"}`,
1193
1205
  fill: "none",
1194
1206
  stroke: "transparent",
1195
1207
  "stroke-width": t.value.style.line.strokeWidth,
1196
1208
  "stroke-linecap": "round",
1197
1209
  "stroke-linejoin": "round"
1198
1210
  }, null, 8, fl),
1199
- Be.value ? (f(!0), g(Z, { key: 0 }, ge(Dt.value, (r) => (f(), g("path", {
1211
+ Be.value ? (f(!0), y(Z, { key: 0 }, ge(Dt.value, (r) => (f(), y("path", {
1200
1212
  key: r.path,
1201
1213
  class: "vue-ui-sparkline-path",
1202
1214
  d: `M ${r.path}`,
@@ -1209,10 +1221,10 @@ const Oa = ["innerHTML"], ja = {
1209
1221
  style: H({
1210
1222
  transition: b(P) ? void 0 : "all 0.2s"
1211
1223
  })
1212
- }, null, 12, pl))), 128)) : (f(), g("path", {
1224
+ }, null, 12, pl))), 128)) : (f(), y("path", {
1213
1225
  key: 1,
1214
1226
  class: "vue-ui-sparkline-path",
1215
- d: `M ${Xe.value || "0,0"}`,
1227
+ d: `M ${Ke.value || "0,0"}`,
1216
1228
  stroke: Q.value ? `url(#temperature_grad_sparkline_${v.value})` : t.value.style.line.color,
1217
1229
  fill: "none",
1218
1230
  "stroke-width": t.value.style.line.strokeWidth,
@@ -1222,17 +1234,17 @@ const Oa = ["innerHTML"], ja = {
1222
1234
  transition: b(P) ? void 0 : "all 0.2s"
1223
1235
  })
1224
1236
  }, null, 12, gl))
1225
- ], 64)) : L("", !0),
1226
- gt.value && !Q.value ? (f(), _e(ja, {
1237
+ ], 64)) : _("", !0),
1238
+ yt.value && !Q.value ? (f(), _e(ja, {
1227
1239
  key: 4,
1228
- svgPathData: gt.value,
1240
+ svgPathData: yt.value,
1229
1241
  enabled: t.value.gradientPath.show && !O.value && !Q.value,
1230
1242
  strokeWidth: t.value.style.line.strokeWidth,
1231
1243
  highColor: t.value.gradientPath.colors.high,
1232
1244
  lowColor: t.value.gradientPath.colors.low,
1233
1245
  segments: t.value.gradientPath.segments
1234
- }, null, 8, ["svgPathData", "enabled", "strokeWidth", "highColor", "lowColor", "segments"])) : L("", !0),
1235
- Ge.value && Y.value ? (f(), _e(Sa, {
1246
+ }, null, 8, ["svgPathData", "enabled", "strokeWidth", "highColor", "lowColor", "segments"])) : _("", !0),
1247
+ Oe.value && Y.value ? (f(), _e(Sa, {
1236
1248
  key: 5,
1237
1249
  uid: v.value,
1238
1250
  svgRef: b(X),
@@ -1244,15 +1256,15 @@ const Oa = ["innerHTML"], ja = {
1244
1256
  pulseFillMode: me.value,
1245
1257
  pulseKeyPoints: Ie.value,
1246
1258
  pulseMotion: G.value,
1247
- pulse: V.value,
1259
+ pulse: W.value,
1248
1260
  pulseTrail: J.value,
1249
- pulseTrailLength: qe.value,
1250
- prefersReducedMotion: b(y),
1261
+ pulseTrailLength: Ge.value,
1262
+ prefersReducedMotion: b(m),
1251
1263
  loading: b(P),
1252
1264
  isBar: O.value
1253
- }, null, 8, ["uid", "svgRef", "pulsePathId", "pulsePathLength", "pulseDur", "pulseBegin", "pulseRepeatCount", "pulseFillMode", "pulseKeyPoints", "pulseMotion", "pulse", "pulseTrail", "pulseTrailLength", "prefersReducedMotion", "loading", "isBar"])) : L("", !0),
1254
- (f(!0), g(Z, null, ge(m.value, (r, c) => (f(), g("g", null, [
1255
- O.value ? (f(), g("rect", {
1265
+ }, null, 8, ["uid", "svgRef", "pulsePathId", "pulsePathLength", "pulseDur", "pulseBegin", "pulseRepeatCount", "pulseFillMode", "pulseKeyPoints", "pulseMotion", "pulse", "pulseTrail", "pulseTrailLength", "prefersReducedMotion", "loading", "isBar"])) : _("", !0),
1266
+ (f(!0), y(Z, null, ge(p.value, (r, c) => (f(), y("g", null, [
1267
+ O.value ? (f(), y("rect", {
1256
1268
  key: 0,
1257
1269
  x: r.x - r.width / 2,
1258
1270
  y: isNaN(r.absoluteValue > 0 ? r.y : ke.value) ? 0 : r.absoluteValue > 0 ? r.y : ke.value,
@@ -1260,32 +1272,32 @@ const Oa = ["innerHTML"], ja = {
1260
1272
  height: isNaN(Math.abs(r.y - ke.value)) ? 0 : Math.abs(r.y - ke.value),
1261
1273
  fill: r.absoluteValue > 0 ? `url(#sparkline_bar_gradient_pos_${v.value})` : `url(#sparkline_bar_gradient_neg_${v.value})`,
1262
1274
  rx: t.value.style.bar.borderRadius
1263
- }, null, 8, yl)) : L("", !0),
1264
- t.value.style.verticalIndicator.show && ($.value && r.id === $.value.id || Nt.value === c) ? (f(), g("line", {
1275
+ }, null, 8, yl)) : _("", !0),
1276
+ t.value.style.verticalIndicator.show && (k.value && r.id === k.value.id || pt.value === c) ? (f(), y("line", {
1265
1277
  key: 1,
1266
1278
  x1: r.x,
1267
1279
  x2: r.x,
1268
- y1: A.value.top - 6,
1269
- y2: A.value.bottom,
1280
+ y1: C.value.top - 6,
1281
+ y2: C.value.bottom,
1270
1282
  stroke: t.value.style.verticalIndicator.color || r.color,
1271
1283
  "stroke-width": t.value.style.verticalIndicator.strokeWidth,
1272
1284
  "stroke-linecap": "round",
1273
1285
  "stroke-dasharray": t.value.style.verticalIndicator.strokeDasharray || 0
1274
- }, null, 8, ml)) : L("", !0)
1286
+ }, null, 8, ml)) : _("", !0)
1275
1287
  ]))), 256)),
1276
- Oe.value < 0 ? (f(), g("line", {
1288
+ je.value < 0 ? (f(), y("line", {
1277
1289
  key: 6,
1278
- x1: A.value.start,
1279
- x2: A.value.start + A.value.width,
1280
- y1: b(St)(ke.value, A.value.bottom),
1281
- y2: b(St)(ke.value, A.value.bottom),
1290
+ x1: C.value.start,
1291
+ x2: C.value.start + C.value.width,
1292
+ y1: b(Mt)(ke.value, C.value.bottom),
1293
+ y2: b(Mt)(ke.value, C.value.bottom),
1282
1294
  stroke: t.value.style.zeroLine.color,
1283
1295
  "stroke-dasharray": t.value.style.zeroLine.strokeWidth * 2,
1284
1296
  "stroke-width": t.value.style.zeroLine.strokeWidth,
1285
1297
  "stroke-linecap": "round"
1286
- }, null, 8, bl)) : L("", !0),
1287
- t.value.style.plot.show ? (f(!0), g(Z, { key: 7 }, ge(m.value, (r, c) => (f(), g("g", null, [
1288
- $.value && r.id === $.value.id || e.selectedIndex === c || b(de).length === 1 ? (f(), g("circle", {
1298
+ }, null, 8, bl)) : _("", !0),
1299
+ t.value.style.plot.show ? (f(!0), y(Z, { key: 7 }, ge(p.value, (r, c) => (f(), y("g", null, [
1300
+ k.value && r.id === k.value.id || e.selectedIndex === c || b(de).length === 1 ? (f(), y("circle", {
1289
1301
  key: 0,
1290
1302
  cx: r.x,
1291
1303
  cy: r.y,
@@ -1293,45 +1305,45 @@ const Oa = ["innerHTML"], ja = {
1293
1305
  fill: r.color,
1294
1306
  stroke: t.value.style.plot.stroke,
1295
1307
  "stroke-width": t.value.style.plot.strokeWidth
1296
- }, null, 8, kl)) : L("", !0)
1297
- ]))), 256)) : L("", !0),
1298
- e.showInfo && t.value.style.dataLabel.show ? (f(), g("text", {
1308
+ }, null, 8, kl)) : _("", !0)
1309
+ ]))), 256)) : _("", !0),
1310
+ e.showInfo && t.value.style.dataLabel.show ? (f(), y("text", {
1299
1311
  key: 8,
1300
- x: t.value.style.dataLabel.position === "left" ? 12 + t.value.style.dataLabel.offsetX : A.value.width + 12 + t.value.style.dataLabel.offsetX,
1301
- y: x.value.height / 2 + t.value.style.dataLabel.fontSize / 2.5 + t.value.style.dataLabel.offsetY,
1312
+ x: t.value.style.dataLabel.position === "left" ? 12 + t.value.style.dataLabel.offsetX : C.value.width + 12 + t.value.style.dataLabel.offsetX,
1313
+ y: $.value.height / 2 + t.value.style.dataLabel.fontSize / 2.5 + t.value.style.dataLabel.offsetY,
1302
1314
  "font-size": t.value.style.dataLabel.fontSize,
1303
1315
  "font-weight": t.value.style.dataLabel.bold ? "bold" : "normal",
1304
1316
  fill: t.value.style.dataLabel.color
1305
- }, Le($.value ? b(et)(
1317
+ }, Le(k.value ? b(et)(
1306
1318
  t.value.style.dataLabel.formatter,
1307
- $.value.absoluteValue,
1308
- b(tt)({ p: t.value.style.dataLabel.prefix, v: $.value.absoluteValue, s: t.value.style.dataLabel.suffix, r: t.value.style.dataLabel.roundingValue }),
1309
- { datapoint: $.value }
1319
+ k.value.absoluteValue,
1320
+ b(tt)({ p: t.value.style.dataLabel.prefix, v: k.value.absoluteValue, s: t.value.style.dataLabel.suffix, r: t.value.style.dataLabel.roundingValue }),
1321
+ { datapoint: k.value }
1310
1322
  ) : b(et)(
1311
1323
  t.value.style.dataLabel.formatter,
1312
- pt.value,
1313
- b(tt)({ p: t.value.style.dataLabel.prefix, v: pt.value, s: t.value.style.dataLabel.suffix, r: t.value.style.dataLabel.roundingValue })
1314
- )), 9, wl)) : L("", !0),
1315
- (f(!0), g(Z, null, ge(m.value, (r, c) => (f(), g("rect", {
1316
- x: r.x - (A.value.width / (we.value + 1) > x.value.padding ? x.value.padding : A.value.width / (we.value + 1)) / 2,
1317
- y: A.value.top - 6,
1318
- height: A.value.height + 6,
1319
- width: A.value.width / (we.value + 1) > x.value.padding ? x.value.padding : A.value.width / (we.value + 1),
1324
+ gt.value,
1325
+ b(tt)({ p: t.value.style.dataLabel.prefix, v: gt.value, s: t.value.style.dataLabel.suffix, r: t.value.style.dataLabel.roundingValue })
1326
+ )), 9, wl)) : _("", !0),
1327
+ (f(!0), y(Z, null, ge(p.value, (r, c) => (f(), y("rect", {
1328
+ x: r.x - (C.value.width / (we.value + 1) > $.value.padding ? $.value.padding : C.value.width / (we.value + 1)) / 2,
1329
+ y: C.value.top - 6,
1330
+ height: C.value.height + 6,
1331
+ width: C.value.width / (we.value + 1) > $.value.padding ? $.value.padding : C.value.width / (we.value + 1),
1320
1332
  fill: "transparent",
1321
- onMouseenter: () => ze(r, c),
1333
+ onMouseenter: () => Ye(r, c),
1322
1334
  onMouseleave: () => Tt(r, c),
1323
1335
  onClick: () => Rt(r, c)
1324
1336
  }, null, 40, xl))), 256)),
1325
- pe(l.$slots, "svg", { svg: x.value }, void 0, !0)
1337
+ pe(l.$slots, "svg", { svg: $.value }, void 0, !0)
1326
1338
  ], 44, Ka)),
1327
- l.$slots.hint ? (f(), g("div", $l, [
1328
- pe(l.$slots, "hint", Ze(Je({ hint: t.value.a11y.translations.keyboardNavigation, isVisible: Ke.value })), void 0, !0)
1329
- ])) : L("", !0)
1339
+ l.$slots.hint ? (f(), y("div", $l, [
1340
+ pe(l.$slots, "hint", Ze(Je({ hint: t.value.a11y.translations.keyboardNavigation, isVisible: De.value })), void 0, !0)
1341
+ ])) : _("", !0)
1330
1342
  ]),
1331
- $.value && t.value.style.tooltip.show ? (f(), _e(b(s), {
1343
+ k.value && t.value.style.tooltip.show ? (f(), _e(b(s), {
1332
1344
  key: 2,
1333
- x: $.value.x,
1334
- y: $.value.y,
1345
+ x: k.value.x,
1346
+ y: k.value.y,
1335
1347
  prevX: oe.value.x,
1336
1348
  prevY: oe.value.y,
1337
1349
  offsetY: t.value.style.plot.radius * 3 + t.value.style.tooltip.offsetY,
@@ -1345,36 +1357,36 @@ const Oa = ["innerHTML"], ja = {
1345
1357
  backgroundOpacity: t.value.style.tooltip.backgroundOpacity
1346
1358
  }, {
1347
1359
  default: jt(() => [
1348
- pe(l.$slots, "tooltip", Ze(Je({ ...$.value })), () => [
1349
- zt(Le($.value.period) + ": " + Le(b(et)(
1360
+ pe(l.$slots, "tooltip", Ze(Je({ ...k.value })), () => [
1361
+ zt(Le(k.value.period) + ": " + Le(b(et)(
1350
1362
  t.value.style.dataLabel.formatter,
1351
- $.value.absoluteValue,
1363
+ k.value.absoluteValue,
1352
1364
  b(tt)({
1353
1365
  p: t.value.style.dataLabel.prefix,
1354
- v: $.value.absoluteValue,
1366
+ v: k.value.absoluteValue,
1355
1367
  s: t.value.style.dataLabel.suffix,
1356
1368
  r: t.value.style.dataLabel.roundingValue
1357
1369
  }),
1358
- { datapoint: $.value }
1370
+ { datapoint: k.value }
1359
1371
  )), 1)
1360
1372
  ], !0)
1361
1373
  ]),
1362
1374
  _: 3
1363
- }, 8, ["x", "y", "prevX", "prevY", "offsetY", "svgRef", "background", "color", "fontSize", "borderWidth", "borderColor", "borderRadius", "backgroundOpacity"])) : L("", !0),
1364
- l.$slots.source ? (f(), g("div", {
1375
+ }, 8, ["x", "y", "prevX", "prevY", "offsetY", "svgRef", "background", "color", "fontSize", "borderWidth", "borderColor", "borderRadius", "backgroundOpacity"])) : _("", !0),
1376
+ l.$slots.source ? (f(), y("div", {
1365
1377
  key: 3,
1366
1378
  ref_key: "source",
1367
1379
  ref: B,
1368
1380
  dir: "auto"
1369
1381
  }, [
1370
1382
  pe(l.$slots, "source", {}, void 0, !0)
1371
- ], 512)) : L("", !0),
1383
+ ], 512)) : _("", !0),
1372
1384
  pe(l.$slots, "skeleton", {}, () => [
1373
- b(P) ? (f(), _e(oa, { key: 0 })) : L("", !0)
1385
+ b(P) ? (f(), _e(oa, { key: 0 })) : _("", !0)
1374
1386
  ], !0)
1375
1387
  ], 12, za));
1376
1388
  }
1377
- }, Fl = /* @__PURE__ */ fa(Sl, [["__scopeId", "data-v-0b583ff2"]]);
1389
+ }, Fl = /* @__PURE__ */ fa(Sl, [["__scopeId", "data-v-5e51bb77"]]);
1378
1390
  export {
1379
1391
  Fl as default
1380
1392
  };