vue-data-ui 3.15.1 → 3.15.2

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 (119) hide show
  1. package/dist/{PackageVersion-CvM6L6jw.js → PackageVersion-B6IEJQ5U.js} +1 -1
  2. package/dist/components/vue-ui-3d-bar.js +1 -1
  3. package/dist/components/vue-ui-age-pyramid.js +1 -1
  4. package/dist/components/vue-ui-bullet.js +1 -1
  5. package/dist/components/vue-ui-bump.js +1 -1
  6. package/dist/components/vue-ui-candlestick.js +1 -1
  7. package/dist/components/vue-ui-carousel-table.js +1 -1
  8. package/dist/components/vue-ui-chestnut.js +1 -1
  9. package/dist/components/vue-ui-chord.js +1 -1
  10. package/dist/components/vue-ui-circle-pack.js +1 -1
  11. package/dist/components/vue-ui-cursor.js +1 -1
  12. package/dist/components/vue-ui-dag.js +1 -1
  13. package/dist/components/vue-ui-dashboard.js +1 -1
  14. package/dist/components/vue-ui-donut-evolution.js +1 -1
  15. package/dist/components/vue-ui-donut.js +1 -1
  16. package/dist/components/vue-ui-dumbbell.js +1 -1
  17. package/dist/components/vue-ui-flow.js +1 -1
  18. package/dist/components/vue-ui-funnel.js +1 -1
  19. package/dist/components/vue-ui-galaxy.js +1 -1
  20. package/dist/components/vue-ui-gauge.js +1 -1
  21. package/dist/components/vue-ui-geo.js +1 -1
  22. package/dist/components/vue-ui-gizmo.js +1 -1
  23. package/dist/components/vue-ui-heatmap.js +1 -1
  24. package/dist/components/vue-ui-history-plot.js +1 -1
  25. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  26. package/dist/components/vue-ui-molecule.js +1 -1
  27. package/dist/components/vue-ui-mood-radar.js +1 -1
  28. package/dist/components/vue-ui-nested-donuts.js +1 -1
  29. package/dist/components/vue-ui-onion.js +1 -1
  30. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  31. package/dist/components/vue-ui-quadrant.js +1 -1
  32. package/dist/components/vue-ui-quick-chart.js +1 -1
  33. package/dist/components/vue-ui-radar.js +1 -1
  34. package/dist/components/vue-ui-relation-circle.js +1 -1
  35. package/dist/components/vue-ui-ridgeline.js +1 -1
  36. package/dist/components/vue-ui-rings.js +1 -1
  37. package/dist/components/vue-ui-scatter.js +1 -1
  38. package/dist/components/vue-ui-skeleton.js +1 -1
  39. package/dist/components/vue-ui-spark-trend.js +1 -1
  40. package/dist/components/vue-ui-sparkbar.js +1 -1
  41. package/dist/components/vue-ui-sparkgauge.js +1 -1
  42. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  43. package/dist/components/vue-ui-sparkline.js +1 -1
  44. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  45. package/dist/components/vue-ui-stackbar.js +1 -1
  46. package/dist/components/vue-ui-stackline.js +1 -1
  47. package/dist/components/vue-ui-strip-plot.js +1 -1
  48. package/dist/components/vue-ui-table-sparkline.js +1 -1
  49. package/dist/components/vue-ui-table.js +1 -1
  50. package/dist/components/vue-ui-thermometer.js +1 -1
  51. package/dist/components/vue-ui-timer.js +1 -1
  52. package/dist/components/vue-ui-tiremarks.js +1 -1
  53. package/dist/components/vue-ui-treemap.js +1 -1
  54. package/dist/components/vue-ui-vertical-bar.js +1 -1
  55. package/dist/components/vue-ui-waffle.js +1 -1
  56. package/dist/components/vue-ui-wheel.js +1 -1
  57. package/dist/components/vue-ui-word-cloud.js +1 -1
  58. package/dist/components/vue-ui-world.js +1 -1
  59. package/dist/components/vue-ui-xy.js +1 -1
  60. package/dist/{vue-data-ui-DeuE4XnE.js → vue-data-ui-BDNyFPFq.js} +58 -58
  61. package/dist/vue-data-ui.js +59 -59
  62. package/dist/{vue-ui-3d-bar-Cj71KREQ.js → vue-ui-3d-bar-DUzNF952.js} +1 -1
  63. package/dist/{vue-ui-age-pyramid-CLa4q2zI.js → vue-ui-age-pyramid-r-KmE7L4.js} +1 -1
  64. package/dist/{vue-ui-bullet-DjNniV4s.js → vue-ui-bullet-DAVzj8Zi.js} +1 -1
  65. package/dist/{vue-ui-bump-CJX1t0HJ.js → vue-ui-bump-B9E1erCP.js} +1 -1
  66. package/dist/{vue-ui-candlestick-CSvLa3B2.js → vue-ui-candlestick-CPxzel3w.js} +1 -1
  67. package/dist/{vue-ui-carousel-table-D-jYM14F.js → vue-ui-carousel-table-GDTvdXbd.js} +1 -1
  68. package/dist/{vue-ui-chestnut-B9aa0mEA.js → vue-ui-chestnut-iD_E54CN.js} +1 -1
  69. package/dist/{vue-ui-chord-5DHOa_I5.js → vue-ui-chord-BC4tguYt.js} +1 -1
  70. package/dist/{vue-ui-circle-pack-CM6dlj4u.js → vue-ui-circle-pack-B-CPGgdt.js} +1 -1
  71. package/dist/{vue-ui-cursor-XOFzSAyd.js → vue-ui-cursor-IT1xvbk2.js} +1 -1
  72. package/dist/{vue-ui-dag-BXigWntn.js → vue-ui-dag-DCdotQVD.js} +1 -1
  73. package/dist/{vue-ui-dashboard-B7158Nfk.js → vue-ui-dashboard-Cq-7-wma.js} +55 -55
  74. package/dist/{vue-ui-donut-YtBa6CPZ.js → vue-ui-donut-DZEkSIQ1.js} +1 -1
  75. package/dist/{vue-ui-donut-evolution-Cf9DpNXl.js → vue-ui-donut-evolution-CcrcrKF2.js} +1 -1
  76. package/dist/{vue-ui-dumbbell-Bd16c4zX.js → vue-ui-dumbbell-D6rsNu3I.js} +1 -1
  77. package/dist/{vue-ui-flow-Bwfjd7VB.js → vue-ui-flow-CfEK1WcS.js} +1 -1
  78. package/dist/{vue-ui-funnel-D4tDXFp-.js → vue-ui-funnel-Cdh7YjHo.js} +1 -1
  79. package/dist/{vue-ui-galaxy-C5fAGWa0.js → vue-ui-galaxy-BV20Wouf.js} +1 -1
  80. package/dist/{vue-ui-gauge-DwMdki7P.js → vue-ui-gauge-CmV6TYbP.js} +1 -1
  81. package/dist/{vue-ui-geo-DxajUylC.js → vue-ui-geo-Cx8Kl369.js} +1 -1
  82. package/dist/{vue-ui-gizmo-DRc7RORS.js → vue-ui-gizmo-DjW_Zk-I.js} +1 -1
  83. package/dist/{vue-ui-heatmap-BYdD9fu1.js → vue-ui-heatmap-CmYavjF_.js} +1 -1
  84. package/dist/{vue-ui-history-plot-CEtyxTpT.js → vue-ui-history-plot-B6RR5_Pr.js} +1 -1
  85. package/dist/{vue-ui-horizontal-bar-BFLKoXji.js → vue-ui-horizontal-bar-YurxCHIZ.js} +1 -1
  86. package/dist/{vue-ui-molecule-BpMpSIK1.js → vue-ui-molecule-USv-Zjga.js} +1 -1
  87. package/dist/{vue-ui-mood-radar-Bvyg7afr.js → vue-ui-mood-radar-CH7gUd3S.js} +1 -1
  88. package/dist/{vue-ui-nested-donuts-DNZexAwg.js → vue-ui-nested-donuts-FJhK_VCm.js} +1 -1
  89. package/dist/{vue-ui-onion-BdvDJ81z.js → vue-ui-onion-BkB7pI6J.js} +1 -1
  90. package/dist/{vue-ui-parallel-coordinate-plot-B7-nb29h.js → vue-ui-parallel-coordinate-plot-BcKuTS5G.js} +1 -1
  91. package/dist/{vue-ui-quadrant-Hr00AjZA.js → vue-ui-quadrant-Fa0Ql-oe.js} +1 -1
  92. package/dist/{vue-ui-quick-chart-3Dx6qjli.js → vue-ui-quick-chart-BoZswYC4.js} +1 -1
  93. package/dist/{vue-ui-radar-B3JLfrcF.js → vue-ui-radar-BVQtbLQl.js} +1 -1
  94. package/dist/{vue-ui-relation-circle-DAKHg2Q3.js → vue-ui-relation-circle-BKCKaCiY.js} +1 -1
  95. package/dist/{vue-ui-ridgeline-DwQjesS9.js → vue-ui-ridgeline-DGVeoRL_.js} +1 -1
  96. package/dist/{vue-ui-rings-D-iM8v_f.js → vue-ui-rings-CzohTeZg.js} +1 -1
  97. package/dist/{vue-ui-scatter-vXsVgfGT.js → vue-ui-scatter-Be9GWl3l.js} +1 -1
  98. package/dist/{vue-ui-skeleton-fx2Sa16V.js → vue-ui-skeleton-smOfSmjU.js} +1 -1
  99. package/dist/{vue-ui-spark-trend-dX60Ajul.js → vue-ui-spark-trend-_3ELEmlz.js} +1 -1
  100. package/dist/{vue-ui-sparkbar-CGCu289m.js → vue-ui-sparkbar-COFbNvl8.js} +1 -1
  101. package/dist/{vue-ui-sparkgauge-yPclzJ1-.js → vue-ui-sparkgauge-BVj5aBtN.js} +1 -1
  102. package/dist/{vue-ui-sparkhistogram-BTTjGJdT.js → vue-ui-sparkhistogram-BpIUtNbm.js} +1 -1
  103. package/dist/{vue-ui-sparkline-h0so3EKa.js → vue-ui-sparkline-CgYlQI65.js} +350 -348
  104. package/dist/{vue-ui-sparkstackbar-CDVb8080.js → vue-ui-sparkstackbar-Di1Z6CpX.js} +1 -1
  105. package/dist/{vue-ui-stackbar-v9sfMD82.js → vue-ui-stackbar-DfpvPPd1.js} +1 -1
  106. package/dist/{vue-ui-stackline-C4kvaHcm.js → vue-ui-stackline-pnbcfPu2.js} +1 -1
  107. package/dist/{vue-ui-strip-plot-CwXUtv5i.js → vue-ui-strip-plot-CO47pgaw.js} +1 -1
  108. package/dist/{vue-ui-table-BZDF7J3E.js → vue-ui-table-DuVmmM6H.js} +2 -2
  109. package/dist/{vue-ui-table-sparkline-RG0NG8tu.js → vue-ui-table-sparkline-CuJ7Zsve.js} +1 -1
  110. package/dist/{vue-ui-thermometer-IUBaqKA_.js → vue-ui-thermometer-BRcNwZEw.js} +1 -1
  111. package/dist/{vue-ui-timer-DdPFUhpp.js → vue-ui-timer-D7msujhO.js} +1 -1
  112. package/dist/{vue-ui-tiremarks-BLIKh2NR.js → vue-ui-tiremarks-hx9IfotL.js} +1 -1
  113. package/dist/{vue-ui-treemap-BzkiRg8p.js → vue-ui-treemap-DWMchmZj.js} +1 -1
  114. package/dist/{vue-ui-waffle-UAlvcjmZ.js → vue-ui-waffle-MXpJ2_j4.js} +1 -1
  115. package/dist/{vue-ui-wheel-DZEYrAMf.js → vue-ui-wheel-rw2QWGiJ.js} +1 -1
  116. package/dist/{vue-ui-word-cloud-J3mpA3by.js → vue-ui-word-cloud-COBNp3Nn.js} +1 -1
  117. package/dist/{vue-ui-world-Bn-tAJ0w.js → vue-ui-world-D3B9gr4m.js} +1 -1
  118. package/dist/{vue-ui-xy-BHbBuU6j.js → vue-ui-xy-CnJ3_k9V.js} +1 -1
  119. package/package.json +1 -1
@@ -1,13 +1,13 @@
1
- import { ref as m, onMounted as xe, onBeforeUnmount as te, computed as s, watch as w, nextTick as M, createElementBlock as c, createCommentVNode as k, openBlock as i, Fragment as J, renderList as ee, createElementVNode as g, defineAsyncComponent as De, toRefs as pt, shallowRef as Be, watchEffect as yt, normalizeStyle as N, renderSlot as z, createBlock as me, normalizeProps as Re, guardReactiveProps as Ee, toDisplayString as Z, unref as n, createVNode as gt, withCtx as bt, createTextVNode as mt } from "vue";
2
- import { c as kt, t as ze, aA as ke, o as Oe, g as Ve, l as Ct, h as Q, n as At, ap as wt, X as xt, s as H, A as qe, C as Lt, Q as je, a as Ce, d as Ae, aB as Mt } from "./lib-swBj76n5.js";
3
- import { t as $t, u as _t } from "./useResponsive-DfdjqQps.js";
4
- import { u as Nt, a as we } from "./useNestedProp-C4DkSVBD.js";
1
+ import { ref as g, onMounted as Le, onBeforeUnmount as le, computed as i, watch as x, nextTick as M, createElementBlock as c, createCommentVNode as m, openBlock as d, Fragment as K, renderList as te, createElementVNode as p, defineAsyncComponent as De, toRefs as pt, shallowRef as Be, watchEffect as yt, normalizeStyle as N, renderSlot as z, createBlock as ke, normalizeProps as Re, guardReactiveProps as Ee, toDisplayString as Q, unref as r, createVNode as gt, withCtx as bt, createTextVNode as mt } from "vue";
2
+ import { c as kt, t as ze, aA as Ce, o as Oe, g as Ve, l as Ct, h as J, n as At, ap as wt, X as xt, s as ee, A as qe, C as Lt, Q as je, a as Ae, d as we, aB as Mt } from "./lib-swBj76n5.js";
3
+ import { t as _t, u as $t } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Nt, a as xe } from "./useNestedProp-C4DkSVBD.js";
5
5
  import { u as It, B as St } from "./BaseScanner-BMpwQAfz.js";
6
6
  import { u as Ft } from "./useThemeCheck-D1ZYXUwG.js";
7
7
  import { u as Tt } from "./useTimeLabels-C-A2uZKi.js";
8
8
  import { u as Pt } from "./useChartAccessibility-9icAAmYg.js";
9
9
  import { _ as Dt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
- const We = { style: { line: { color: "#2A2929" }, area: { color: "#65698E" }, bar: { color: "#2A2929" } } }, Ge = { style: { backgroundColor: "#1A1A1A", zeroLine: { color: "#5A5A5A" }, line: { color: "#65698E" }, area: { color: "#8D99AE" }, bar: { color: "#65698E" }, plot: { stroke: "#1A1A1A" }, verticalIndicator: { color: "#8A8A8A" }, dataLabel: { color: "#CCCCCC" }, title: { color: "#CCCCCC" }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#3A3A3A" } } }, Ke = { style: { backgroundColor: "#1A1A1A", zeroLine: { color: "#5A5A5A" }, plot: { stroke: "#1A1A1A" }, verticalIndicator: { color: "#8A8A8A" }, dataLabel: { color: "#CCCCCC" }, title: { color: "#CCCCCC" }, tooltip: { color: "#CCCCCC", backgroundColor: "#1A1A1A", borderColor: "#5A5A5A", backgroundOpacity: 70 } } }, Ue = { style: { backgroundColor: "#FFF8E1", line: { color: "#D32F2F" }, bar: { color: "#D32F2F", borderRadius: 0 }, zeroLine: { color: "#5D4037" }, plot: { stroke: "#FFF8E1" }, verticalIndicator: { color: "#FF9800" }, dataLabel: { color: "#424242" }, title: { color: "#424242" }, area: { color: "#E64A19" }, tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" } } }, Xe = { style: { backgroundColor: "#1E1E1E", line: { color: "#D32F2F" }, bar: { color: "#D32F2F", borderRadius: 0 }, zeroLine: { color: "#5D4037" }, plot: { stroke: "#1E1E1E" }, verticalIndicator: { color: "#B71C1C" }, dataLabel: { color: "#BDBDBD" }, title: { color: "#BDBDBD" }, area: { color: "#E64A19" }, tooltip: { backgroundColor: "#1E1E1E", backgroundOpacity: 30, color: "#FFF8E1", borderColor: "#FF8A65" } } }, Ye = { style: { backgroundColor: "#1A1A1A", line: { color: "#66CC66" }, bar: { color: "#66CC66", borderRadius: 0 }, zeroLine: { color: "#5F6A5F" }, plot: { stroke: "#1A1A1A" }, verticalIndicator: { color: "#66CC66" }, dataLabel: { color: "#AACCAA" }, title: { color: "#66CC66" }, area: { color: "#66CC66" }, tooltip: { backgroundColor: "#2A2F2A", color: "#AACCAA", borderColor: "#66CC66" } } }, Ze = { style: { backgroundColor: "#fbfafa", line: { color: "#B9B99D", smooth: !0 }, bar: { color: "#B9B99D", borderRadius: 3 }, zeroLine: { strokeWidth: 0 }, plot: { stroke: "#fbfafa" }, verticalIndicator: { color: "#B9B99D" }, dataLabel: { color: "#A0AC94" }, title: { color: "#8A9892" }, area: { color: "#B9B99D" }, tooltip: { backgroundColor: "#fbfafa", color: "#8A9892" } } }, Qe = { style: { backgroundColor: "#f6f6fb", line: { color: "#4A6A75" }, bar: { color: "#4A6A75", borderRadius: 0 }, zeroLine: { color: "#9FA9BE" }, plot: { stroke: "#f6f6fb" }, verticalIndicator: { color: "#4A6A75" }, dataLabel: { color: "#61747E" }, title: { color: "#50606C" }, area: { color: "#4A6A75" }, tooltip: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, He = {
10
+ const We = { style: { line: { color: "#2A2929" }, area: { color: "#65698E" }, bar: { color: "#2A2929" } } }, Ge = { style: { backgroundColor: "#1A1A1A", zeroLine: { color: "#5A5A5A" }, line: { color: "#65698E" }, area: { color: "#8D99AE" }, bar: { color: "#65698E" }, plot: { stroke: "#1A1A1A" }, verticalIndicator: { color: "#8A8A8A" }, dataLabel: { color: "#CCCCCC" }, title: { color: "#CCCCCC" }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#3A3A3A" } } }, Ke = { style: { backgroundColor: "#1A1A1A", zeroLine: { color: "#5A5A5A" }, plot: { stroke: "#1A1A1A" }, verticalIndicator: { color: "#8A8A8A" }, dataLabel: { color: "#CCCCCC" }, title: { color: "#CCCCCC" }, tooltip: { color: "#CCCCCC", backgroundColor: "#1A1A1A", borderColor: "#5A5A5A", backgroundOpacity: 70 } } }, Ue = { style: { backgroundColor: "#FFF8E1", line: { color: "#D32F2F" }, bar: { color: "#D32F2F", borderRadius: 0 }, zeroLine: { color: "#5D4037" }, plot: { stroke: "#FFF8E1" }, verticalIndicator: { color: "#FF9800" }, dataLabel: { color: "#424242" }, title: { color: "#424242" }, area: { color: "#E64A19" }, tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" } } }, Xe = { style: { backgroundColor: "#1E1E1E", line: { color: "#D32F2F" }, bar: { color: "#D32F2F", borderRadius: 0 }, zeroLine: { color: "#5D4037" }, plot: { stroke: "#1E1E1E" }, verticalIndicator: { color: "#B71C1C" }, dataLabel: { color: "#BDBDBD" }, title: { color: "#BDBDBD" }, area: { color: "#E64A19" }, tooltip: { backgroundColor: "#1E1E1E", backgroundOpacity: 30, color: "#FFF8E1", borderColor: "#FF8A65" } } }, Ye = { style: { backgroundColor: "#1A1A1A", line: { color: "#66CC66" }, bar: { color: "#66CC66", borderRadius: 0 }, zeroLine: { color: "#5F6A5F" }, plot: { stroke: "#1A1A1A" }, verticalIndicator: { color: "#66CC66" }, dataLabel: { color: "#AACCAA" }, title: { color: "#66CC66" }, area: { color: "#66CC66" }, tooltip: { backgroundColor: "#2A2F2A", color: "#AACCAA", borderColor: "#66CC66" } } }, Ze = { style: { backgroundColor: "#fbfafa", line: { color: "#B9B99D", smooth: !0 }, bar: { color: "#B9B99D", borderRadius: 3 }, zeroLine: { strokeWidth: 0 }, plot: { stroke: "#fbfafa" }, verticalIndicator: { color: "#B9B99D" }, dataLabel: { color: "#A0AC94" }, title: { color: "#8A9892" }, area: { color: "#B9B99D" }, tooltip: { backgroundColor: "#fbfafa", color: "#8A9892" } } }, He = { style: { backgroundColor: "#f6f6fb", line: { color: "#4A6A75" }, bar: { color: "#4A6A75", borderRadius: 0 }, zeroLine: { color: "#9FA9BE" }, plot: { stroke: "#f6f6fb" }, verticalIndicator: { color: "#4A6A75" }, dataLabel: { color: "#61747E" }, title: { color: "#50606C" }, area: { color: "#4A6A75" }, tooltip: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, Qe = {
11
11
  default: {},
12
12
  minimal: We,
13
13
  minimalDark: Ge,
@@ -16,29 +16,29 @@ const We = { style: { line: { color: "#2A2929" }, area: { color: "#65698E" }, ba
16
16
  celebrationNight: Xe,
17
17
  hack: Ye,
18
18
  zen: Ze,
19
- concrete: Qe
20
- }, _l = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
19
+ concrete: He
20
+ }, $l = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
21
21
  __proto__: null,
22
22
  celebration: Ue,
23
23
  celebrationNight: Xe,
24
- concrete: Qe,
24
+ concrete: He,
25
25
  dark: Ke,
26
- default: He,
26
+ default: Qe,
27
27
  hack: Ye,
28
28
  minimal: We,
29
29
  minimalDark: Ge,
30
30
  zen: Ze
31
31
  }, Symbol.toStringTag, { value: "Module" }));
32
32
  function Bt() {
33
- const o = m(!1);
34
- return xe(() => {
35
- const b = window.matchMedia("(prefers-reduced-motion: reduce)"), I = () => {
36
- o.value = b.matches;
33
+ const n = g(!1);
34
+ return Le(() => {
35
+ const b = window.matchMedia("(prefers-reduced-motion: reduce)"), w = () => {
36
+ n.value = b.matches;
37
37
  };
38
- I(), b.addEventListener("change", I), te(() => {
39
- b.removeEventListener("change", I);
38
+ w(), b.addEventListener("change", w), le(() => {
39
+ b.removeEventListener("change", w);
40
40
  });
41
- }), o;
41
+ }), n;
42
42
  }
43
43
  const Rt = {
44
44
  key: 0,
@@ -63,105 +63,107 @@ const Rt = {
63
63
  loading: { type: Boolean, required: !0 },
64
64
  isBar: { type: Boolean, required: !0 }
65
65
  },
66
- setup(o) {
67
- const b = o, I = s(() => !!b.pulse?.show && !b.isBar && !b.prefersReducedMotion && !b.loading && Number(b.pulsePathLength) > 0);
66
+ setup(n) {
67
+ const b = n, w = i(() => Math.min(b.pulseTrailLength, 45)), ae = i(() => !!b.pulse?.show && !b.isBar && !b.prefersReducedMotion && !b.loading && Number(b.pulsePathLength) > 0);
68
68
  function T() {
69
- const v = b.svgRef?.value;
70
- v && (typeof v.pauseAnimations == "function" && v.pauseAnimations(), typeof v.setCurrentTime == "function" && v.setCurrentTime(0), typeof v.unpauseAnimations == "function" && v.unpauseAnimations());
69
+ const o = b.svgRef?.value;
70
+ o && (typeof o.pauseAnimations == "function" && o.pauseAnimations(), typeof o.setCurrentTime == "function" && o.setCurrentTime(0), typeof o.unpauseAnimations == "function" && o.unpauseAnimations());
71
71
  }
72
- function le(v, d) {
73
- if (typeof v != "string") return v;
74
- const x = v.trim().match(/^([\d.]+)\s*(ms|s)$/);
75
- if (!x) return v;
76
- const f = Number(x[1]), O = x[2];
77
- return Number.isNaN(f) ? v : `${f + d}${O}`;
72
+ function oe(o, I) {
73
+ if (typeof o != "string") return o;
74
+ const y = o.trim().match(/^([\d.]+)\s*(ms|s)$/);
75
+ if (!y) return o;
76
+ const k = Number(y[1]), X = y[2];
77
+ return Number.isNaN(k) ? o : `${k + I}${X}`;
78
78
  }
79
- function ae(v) {
80
- return (b.pulseTrailLength - v) / b.pulseTrailLength * b.pulse.radius;
79
+ function ue(o) {
80
+ return (w.value - o) / w.value * b.pulse.radius;
81
81
  }
82
- function oe(v) {
83
- const d = b.pulse.trail.opacity, x = (b.pulseTrailLength - v) / b.pulseTrailLength, f = v === 0 ? 1 : x * d;
84
- return `0;${f};${f};0`;
82
+ function U(o) {
83
+ const I = b.pulse.trail.opacity, y = (w.value - o) / w.value, k = o === 0 ? 1 : y * I;
84
+ return `0;${k};${k};0`;
85
85
  }
86
- return w(
86
+ return x(
87
87
  () => b.loading,
88
- async (v) => {
89
- if (v) {
88
+ async (o) => {
89
+ if (o) {
90
90
  T();
91
91
  return;
92
92
  }
93
93
  await M(), T();
94
94
  }
95
- ), w(
95
+ ), x(
96
96
  () => b.pulsePathId,
97
97
  async () => {
98
98
  await M(), T();
99
99
  }
100
- ), te(() => {
100
+ ), le(() => {
101
101
  T();
102
- }), (v, d) => I.value ? (i(), c("g", Rt, [
103
- (i(!0), c(J, null, ee(o.pulseTrailLength, (x, f) => (i(), c("circle", {
104
- key: `sparkline_dot_${f}_${o.pulsePathId}`,
105
- r: ae(f),
106
- fill: o.pulse.color,
107
- filter: `url(#sparkline_pulse_glow_${o.uid})`,
108
- opacity: "0"
109
- }, [
110
- g("animateMotion", {
111
- begin: le(o.pulseBegin, f * 10),
112
- dur: o.pulseDur,
113
- repeatCount: o.pulseRepeatCount,
114
- fill: o.pulseFillMode,
115
- calcMode: o.pulseMotion.calcMode,
116
- keySplines: o.pulseMotion.keySplines || void 0,
117
- keyTimes: o.pulseMotion.keyTimes || void 0,
118
- keyPoints: o.pulseKeyPoints,
119
- rotate: "auto"
102
+ }), (o, I) => ae.value ? (d(), c("g", Rt, [
103
+ (d(!0), c(K, null, te(w.value, (y, k) => (d(), c(K, null, [
104
+ k % 3 === 0 ? (d(), c("circle", {
105
+ key: `sparkline_dot_${k}_${n.pulsePathId}`,
106
+ r: ue(k),
107
+ fill: n.pulse.color,
108
+ filter: `url(#sparkline_pulse_glow_${n.uid})`,
109
+ opacity: "0"
120
110
  }, [
121
- g("mpath", {
122
- href: `#${o.pulsePathId}`
123
- }, null, 8, Ot)
124
- ], 8, zt),
125
- g("animate", {
126
- attributeName: "opacity",
127
- dur: o.pulseDur,
128
- repeatCount: o.pulseRepeatCount,
129
- fill: o.pulseFillMode,
130
- values: oe(f),
131
- keyTimes: "0;0.1;0.9;1"
132
- }, null, 8, Vt)
133
- ], 8, Et))), 128)),
134
- (i(), c("circle", {
135
- key: `sparkline_halo_${o.pulsePathId}`,
136
- r: Math.max(o.pulse.radius * 1.3),
137
- fill: o.pulse.color,
111
+ p("animateMotion", {
112
+ begin: oe(n.pulseBegin, k * 10),
113
+ dur: n.pulseDur,
114
+ repeatCount: n.pulseRepeatCount,
115
+ fill: n.pulseFillMode,
116
+ calcMode: n.pulseMotion.calcMode,
117
+ keySplines: n.pulseMotion.keySplines || void 0,
118
+ keyTimes: n.pulseMotion.keyTimes || void 0,
119
+ keyPoints: n.pulseKeyPoints,
120
+ rotate: "auto"
121
+ }, [
122
+ p("mpath", {
123
+ href: `#${n.pulsePathId}`
124
+ }, null, 8, Ot)
125
+ ], 8, zt),
126
+ p("animate", {
127
+ attributeName: "opacity",
128
+ dur: n.pulseDur,
129
+ repeatCount: n.pulseRepeatCount,
130
+ fill: n.pulseFillMode,
131
+ values: U(k),
132
+ keyTimes: "0;0.1;0.9;1"
133
+ }, null, 8, Vt)
134
+ ], 8, Et)) : m("", !0)
135
+ ], 64))), 256)),
136
+ (d(), c("circle", {
137
+ key: `sparkline_halo_${n.pulsePathId}`,
138
+ r: Math.max(n.pulse.radius * 1.3),
139
+ fill: n.pulse.color,
138
140
  opacity: "0"
139
141
  }, [
140
- g("animateMotion", {
141
- begin: o.pulseBegin,
142
- dur: o.pulseDur,
143
- repeatCount: o.pulseRepeatCount,
144
- calcMode: o.pulseMotion.calcMode,
145
- keySplines: o.pulseMotion.keySplines || void 0,
146
- keyTimes: o.pulseMotion.keyTimes || void 0,
147
- keyPoints: o.pulseKeyPoints,
142
+ p("animateMotion", {
143
+ begin: n.pulseBegin,
144
+ dur: n.pulseDur,
145
+ repeatCount: n.pulseRepeatCount,
146
+ calcMode: n.pulseMotion.calcMode,
147
+ keySplines: n.pulseMotion.keySplines || void 0,
148
+ keyTimes: n.pulseMotion.keyTimes || void 0,
149
+ keyPoints: n.pulseKeyPoints,
148
150
  rotate: "auto"
149
151
  }, [
150
- g("mpath", {
151
- href: `#${o.pulsePathId}`
152
+ p("mpath", {
153
+ href: `#${n.pulsePathId}`
152
154
  }, null, 8, Wt)
153
155
  ], 8, jt),
154
- g("animate", {
156
+ p("animate", {
155
157
  attributeName: "opacity",
156
158
  values: "0;0.35;0.35;0",
157
159
  keyTimes: "0;0.15;0.85;1",
158
- dur: o.pulseDur,
159
- repeatCount: o.pulseRepeatCount
160
+ dur: n.pulseDur,
161
+ repeatCount: n.pulseRepeatCount
160
162
  }, null, 8, Gt)
161
163
  ], 8, qt))
162
- ])) : k("", !0);
164
+ ])) : m("", !0);
163
165
  }
164
- }, Ut = ["id"], Xt = ["xmlns", "viewBox"], Yt = ["width", "height"], Zt = ["id"], Qt = ["stop-color"], Ht = ["stop-color"], Jt = ["id"], el = ["stop-color"], tl = ["stop-color"], ll = ["id"], al = ["stop-color"], ol = ["stop-color"], ul = ["id"], nl = { key: 1 }, rl = ["d", "fill"], sl = ["d", "fill"], il = ["id", "d", "stroke", "stroke-width"], dl = ["id", "d", "stroke", "stroke-width"], cl = ["x", "y", "width", "height", "fill", "rx"], vl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], fl = ["x1", "x2", "y1", "y2", "stroke", "stroke-dasharray", "stroke-width"], hl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], pl = ["x", "y", "font-size", "font-weight", "fill"], yl = ["x", "y", "height", "width", "onMouseenter", "onMouseleave", "onClick"], gl = {
166
+ }, Ut = ["id"], Xt = ["xmlns", "viewBox"], Yt = ["width", "height"], Zt = ["id"], Ht = ["stop-color"], Qt = ["stop-color"], Jt = ["id"], el = ["stop-color"], tl = ["stop-color"], ll = ["id"], al = ["stop-color"], ol = ["stop-color"], ul = ["id"], nl = { key: 1 }, rl = ["d", "fill"], sl = ["d", "fill"], il = ["id", "d", "stroke", "stroke-width"], dl = ["id", "d", "stroke", "stroke-width"], cl = ["x", "y", "width", "height", "fill", "rx"], vl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], fl = ["x1", "x2", "y1", "y2", "stroke", "stroke-dasharray", "stroke-width"], hl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], pl = ["x", "y", "font-size", "font-weight", "fill"], yl = ["x", "y", "height", "width", "onMouseenter", "onMouseleave", "onClick"], gl = {
165
167
  __name: "vue-ui-sparkline",
166
168
  props: {
167
169
  config: {
@@ -194,12 +196,12 @@ const Rt = {
194
196
  }
195
197
  },
196
198
  emits: ["hoverIndex", "selectDatapoint"],
197
- setup(o, { emit: b }) {
198
- const I = De(() => import("./PackageVersion-CvM6L6jw.js")), T = De(() => import("./SparkTooltip-0RaBXTYZ.js")), { vue_ui_sparkline: le } = Nt(), { isThemeValid: ae, warnInvalidTheme: oe } = Ft(), v = Bt(), d = o, x = s(() => Array.isArray(d.dataset) && d.dataset.length > 0), f = m(kt()), O = m(null), ue = m(null), Le = m(null), e = m(re());
199
+ setup(n, { emit: b }) {
200
+ const w = De(() => import("./PackageVersion-B6IEJQ5U.js")), ae = De(() => import("./SparkTooltip-0RaBXTYZ.js")), { vue_ui_sparkline: T } = Nt(), { isThemeValid: oe, warnInvalidTheme: ue } = Ft(), U = Bt(), o = n, I = i(() => Array.isArray(o.dataset) && o.dataset.length > 0), y = g(kt()), k = g(null), X = g(null), ne = g(null), e = g(se());
199
201
  function Je(t) {
200
- return d.config?.skeletonDataset && Array.isArray(d.config.skeletonDataset) ? d.config.skeletonDataset.map((l) => ({ period: "-", value: l })) : Mt(t).map((l) => ({ period: "-", value: l }));
202
+ return o.config?.skeletonDataset && Array.isArray(o.config.skeletonDataset) ? o.config.skeletonDataset.map((l) => ({ period: "-", value: l })) : Mt(t).map((l) => ({ period: "-", value: l }));
201
203
  }
202
- const et = s(() => ze({
204
+ const et = i(() => ze({
203
205
  defaultConfig: {
204
206
  style: {
205
207
  backgroundColor: "#99999930",
@@ -215,13 +217,13 @@ const Rt = {
215
217
  }
216
218
  },
217
219
  userConfig: e.value.skeletonConfig ?? {}
218
- })), { loading: C, FINAL_DATASET: V, manualLoading: ne } = It({
219
- ...pt(d),
220
+ })), { loading: C, FINAL_DATASET: O, manualLoading: re } = It({
221
+ ...pt(o),
220
222
  FINAL_CONFIG: e,
221
- prepareConfig: re,
223
+ prepareConfig: se,
222
224
  callback: () => {
223
225
  Promise.resolve().then(async () => {
224
- await M(), fe();
226
+ await M(), he();
225
227
  });
226
228
  },
227
229
  skeletonDataset: Je(12),
@@ -229,25 +231,25 @@ const Rt = {
229
231
  defaultConfig: e.value,
230
232
  userConfig: et.value
231
233
  })
232
- }), { svgRef: U } = Pt({ config: e.value.style.title });
233
- function re() {
234
- const t = we({
235
- userConfig: d.config,
236
- defaultConfig: le
234
+ }), { svgRef: Y } = Pt({ config: e.value.style.title });
235
+ function se() {
236
+ const t = xe({
237
+ userConfig: o.config,
238
+ defaultConfig: T
237
239
  });
238
240
  let l = {};
239
241
  const a = t.theme;
240
242
  if (a)
241
- if (!ae.value(t))
242
- oe(t), l = t;
243
+ if (!oe.value(t))
244
+ ue(t), l = t;
243
245
  else {
244
- const u = we({
245
- userConfig: He[a] || d.config,
246
+ const u = xe({
247
+ userConfig: Qe[a] || o.config,
246
248
  defaultConfig: t
247
249
  });
248
250
  l = {
249
- ...we({
250
- userConfig: d.config,
251
+ ...xe({
252
+ userConfig: o.config,
251
253
  defaultConfig: u
252
254
  })
253
255
  };
@@ -256,29 +258,29 @@ const Rt = {
256
258
  l = t;
257
259
  return l;
258
260
  }
259
- const A = s(() => e.value?.style?.line.pulse || {}), tt = s(() => `${Math.max(200, Number(A.value.durationMs) || 4e3) / 1e3}s`), X = m(0), lt = s(() => A.value?.begin || "0ms"), at = m("0;1"), ot = s(() => A.value?.loop === !1 ? "1" : "indefinite"), ut = s(() => A.value?.loop === !1 ? "freeze" : void 0), nt = s(() => A.value.trail.show && Me.value.lengthPx || 1), se = s(() => !!A.value?.show && !S.value && !v.value && !C.value && (h.value?.length || 0) > 1);
260
- function ie() {
261
- if (!se.value) {
262
- X.value = 0;
261
+ const A = i(() => e.value?.style?.line.pulse || {}), tt = i(() => `${Math.max(200, Number(A.value.durationMs) || 4e3) / 1e3}s`), Z = g(0), lt = i(() => A.value?.begin || "0ms"), at = g("0;1"), ot = i(() => A.value?.loop === !1 ? "1" : "indefinite"), ut = i(() => A.value?.loop === !1 ? "freeze" : void 0), nt = i(() => A.value.trail.show && Me.value.lengthPx || 1), ie = i(() => !!A.value?.show && !S.value && !U.value && !C.value && (v.value?.length || 0) > 1);
262
+ function de() {
263
+ if (!ie.value) {
264
+ Z.value = 0;
263
265
  return;
264
266
  }
265
- const t = U.value;
267
+ const t = Y.value;
266
268
  if (!t) return;
267
- const l = `#${W.value}`, a = t.querySelector?.(l);
269
+ const l = `#${j.value}`, a = t.querySelector?.(l);
268
270
  if (a && typeof a.getTotalLength == "function") {
269
271
  const u = a.getTotalLength();
270
- Number.isFinite(u) && u > 0 && (X.value = u);
272
+ Number.isFinite(u) && u > 0 && (Z.value = u);
271
273
  return;
272
274
  }
273
275
  requestAnimationFrame(() => {
274
276
  const u = t.querySelector?.(l);
275
277
  if (u && typeof u.getTotalLength == "function") {
276
278
  const F = u.getTotalLength();
277
- Number.isFinite(F) && F > 0 && (X.value = F);
279
+ Number.isFinite(F) && F > 0 && (Z.value = F);
278
280
  }
279
281
  });
280
282
  }
281
- const rt = s(() => {
283
+ const rt = i(() => {
282
284
  const t = A.value?.easing || "ease-in-out", l = {
283
285
  ease: [0.25, 0.1, 0.25, 1],
284
286
  "ease-in": [0.42, 0, 1, 1],
@@ -298,7 +300,7 @@ const Rt = {
298
300
  keySplines: (t === "cubic-bezier" ? Array.isArray(A.value?.cubicBezier) && A.value.cubicBezier.length === 4 ? A.value.cubicBezier : [0.4, 0, 0.2, 1] : l[t] || l["ease-in-out"]).join(" "),
299
301
  keyTimes: "0;1"
300
302
  };
301
- }), Me = s(() => {
303
+ }), Me = i(() => {
302
304
  const t = A.value?.trail || {}, l = e.value.style.line.strokeWidth || 1;
303
305
  return {
304
306
  show: t.show !== !1,
@@ -308,25 +310,25 @@ const Rt = {
308
310
  fadeIn: 0.5,
309
311
  fadeOut: 0.2
310
312
  };
311
- }), P = s(() => ke({
312
- data: V.value,
313
+ }), P = i(() => Ce({
314
+ data: O.value,
313
315
  threshold: e.value.downsample.threshold
314
316
  }));
315
- w(() => d.config, (t) => {
316
- C.value || (e.value = re()), Ie(), r.value.chartWidth = e.value.style.chartWidth;
317
- }, { deep: !0 }), w(() => d.dataset, (t) => {
318
- Array.isArray(t) && t.length > 0 && (ne.value = !1), L.value = ke({
319
- data: V.value.map((l) => ({
317
+ x(() => o.config, (t) => {
318
+ C.value || (e.value = se()), Ie(), s.value.chartWidth = e.value.style.chartWidth;
319
+ }, { deep: !0 }), x(() => o.dataset, (t) => {
320
+ Array.isArray(t) && t.length > 0 && (re.value = !1), L.value = Ce({
321
+ data: O.value.map((l) => ({
320
322
  ...l,
321
323
  value: [void 0].includes(l.value) ? null : l.value
322
324
  })),
323
325
  threshold: e.value.downsample.threshold
324
326
  });
325
327
  }, { deep: !0 });
326
- const L = m(st());
328
+ const L = g(st());
327
329
  function st() {
328
- return ke({
329
- data: V.value.map((t) => e.value.style.animation.show && V.value.length > 1 ? {
330
+ return Ce({
331
+ data: O.value.map((t) => e.value.style.animation.show && O.value.length > 1 ? {
330
332
  ...t,
331
333
  value: null
332
334
  } : {
@@ -336,70 +338,70 @@ const Rt = {
336
338
  threshold: e.value.downsample.threshold
337
339
  });
338
340
  }
339
- const $ = Be(null), D = Be(null), q = m(!1), j = m(0), de = m([]), ce = m(""), ve = s(() => {
341
+ const _ = Be(null), D = Be(null), V = g(!1), q = g(0), ce = g([]), ve = g(""), fe = i(() => {
340
342
  const l = (P.value || []).map((u) => `${u.period}::${Number.isFinite(u.value) ? u.value : 0}`).join("|"), a = e.value?.style?.animation || {};
341
343
  return `${l}#${!!a.show}#${a.animationFrames || 0}`;
342
344
  });
343
- function Y() {
344
- j.value && (cancelAnimationFrame(j.value), j.value = 0), de.value.forEach((t) => clearTimeout(t)), de.value = [], q.value = !1;
345
+ function H() {
346
+ q.value && (cancelAnimationFrame(q.value), q.value = 0), ce.value.forEach((t) => clearTimeout(t)), ce.value = [], V.value = !1;
345
347
  }
346
- function fe() {
347
- const t = e.value?.style?.animation || {}, l = P.value || [], a = ve.value;
348
- if (a && a === ce.value && (q.value || L.value.length === l.length))
348
+ function he() {
349
+ const t = e.value?.style?.animation || {}, l = P.value || [], a = fe.value;
350
+ if (a && a === ve.value && (V.value || L.value.length === l.length))
349
351
  return;
350
- if (Y(), !t.show || C.value || l.length <= 1) {
351
- L.value = l, ce.value = a;
352
+ if (H(), !t.show || C.value || l.length <= 1) {
353
+ L.value = l, ve.value = a;
352
354
  return;
353
355
  }
354
- q.value = !0, ce.value = a, L.value = [];
356
+ V.value = !0, ve.value = a, L.value = [];
355
357
  const u = Math.max(1, Number(t.animationFrames) || 1), F = Math.max(1, Math.floor(u / l.length));
356
- let be = 0;
358
+ let me = 0;
357
359
  const Pe = () => {
358
- if (a !== ve.value) {
359
- Y();
360
+ if (a !== fe.value) {
361
+ H();
360
362
  return;
361
363
  }
362
- if (be < l.length) {
363
- L.value.push(l[be]);
364
+ if (me < l.length) {
365
+ L.value.push(l[me]);
364
366
  const ht = setTimeout(() => {
365
- j.value = requestAnimationFrame(Pe);
367
+ q.value = requestAnimationFrame(Pe);
366
368
  }, F);
367
- de.value.push(ht), be += 1;
369
+ ce.value.push(ht), me += 1;
368
370
  } else
369
- L.value = l, Y();
371
+ L.value = l, H();
370
372
  };
371
- j.value = requestAnimationFrame(Pe);
373
+ q.value = requestAnimationFrame(Pe);
372
374
  }
373
- w(ve, () => {
374
- fe();
375
- }), xe(() => {
376
- Ie(), fe();
377
- }), te(() => {
378
- Y();
375
+ x(fe, () => {
376
+ he();
377
+ }), Le(() => {
378
+ Ie(), he();
379
+ }), le(() => {
380
+ H();
379
381
  });
380
- const $e = m(0);
381
- w(
382
+ const _e = g(0);
383
+ x(
382
384
  () => C.value,
383
385
  async (t) => {
384
- t || (await M(), $e.value += 1);
386
+ t || (await M(), _e.value += 1);
385
387
  }
386
- ), w(
387
- () => q.value,
388
+ ), x(
389
+ () => V.value,
388
390
  async (t) => {
389
- t || C.value || (await M(), $e.value += 1);
391
+ t || C.value || (await M(), _e.value += 1);
390
392
  }
391
393
  );
392
- const W = s(() => `sparkline_line_path_${f.value}`), he = m(!0);
393
- async function _e() {
394
- he.value = !1, await M(), he.value = !0, await M(), ie();
394
+ const j = i(() => `sparkline_line_path_${y.value}`), pe = g(!0);
395
+ async function $e() {
396
+ pe.value = !1, await M(), pe.value = !0, await M(), de();
395
397
  }
396
- const Ne = s(() => !!e.value.debug);
398
+ const Ne = i(() => !!e.value.debug);
397
399
  function Ie() {
398
- if (Oe(d.dataset) ? (Ve({
400
+ if (Oe(o.dataset) ? (Ve({
399
401
  componentName: "VueUiSparkline",
400
402
  type: "dataset",
401
403
  debug: Ne.value
402
- }), ne.value = !0) : d.dataset.forEach((t, l) => {
404
+ }), re.value = !0) : o.dataset.forEach((t, l) => {
403
405
  Ct({
404
406
  datasetObject: t,
405
407
  requiredAttributes: ["period", "value"]
@@ -412,47 +414,47 @@ const Rt = {
412
414
  debug: Ne.value
413
415
  });
414
416
  });
415
- }), Oe(d.dataset) || (ne.value = e.value.loading), e.value.responsive) {
416
- const t = $t(() => {
417
- const { width: l, height: a } = _t({
418
- chart: O.value,
419
- title: e.value.style.title.show && d.showInfo ? ue.value : null,
420
- source: Le.value
417
+ }), Oe(o.dataset) || (re.value = e.value.loading), e.value.responsive) {
418
+ const t = _t(() => {
419
+ const { width: l, height: a } = $t({
420
+ chart: k.value,
421
+ title: e.value.style.title.show && o.showInfo ? X.value : null,
422
+ source: ne.value
421
423
  });
422
424
  requestAnimationFrame(() => {
423
- r.value.width = l, r.value.height = a, r.value.chartWidth = e.value.style.chartWidth / 500 * l, r.value.padding = d.forcedPadding / 500 * l;
425
+ s.value.width = l, s.value.height = a, s.value.chartWidth = e.value.style.chartWidth / 500 * l, s.value.padding = o.forcedPadding / 500 * l;
424
426
  });
425
427
  });
426
- $.value && (D.value && $.value.unobserve(D.value), $.value.disconnect()), $.value = new ResizeObserver(t), D.value = O.value.parentNode, $.value.observe(D.value);
428
+ _.value && (D.value && _.value.unobserve(D.value), _.value.disconnect()), _.value = new ResizeObserver(t), D.value = k.value.parentNode, _.value.observe(D.value);
427
429
  }
428
430
  }
429
- te(() => {
430
- $.value && (D.value && $.value.unobserve(D.value), $.value.disconnect());
431
+ le(() => {
432
+ _.value && (D.value && _.value.unobserve(D.value), _.value.disconnect());
431
433
  });
432
- const r = m({
433
- height: 80 * d.heightRatio,
434
+ const s = g({
435
+ height: 80 * o.heightRatio,
434
436
  width: 500,
435
437
  chartWidth: e.value.style.chartWidth,
436
- padding: d.forcedPadding
437
- }), pe = b, p = s(() => {
438
+ padding: o.forcedPadding
439
+ }), ye = b, f = i(() => {
438
440
  const { top: t, right: l, bottom: a, left: u } = e.value.style.padding;
439
441
  return {
440
442
  top: t,
441
443
  left: u,
442
- right: r.value.width - l,
443
- bottom: r.value.height - a,
444
- start: d.showInfo && e.value.style.dataLabel.show && e.value.style.dataLabel.position === "left" ? r.value.width - r.value.chartWidth + u : r.value.padding + u,
445
- width: d.showInfo && e.value.style.dataLabel.show ? r.value.chartWidth - u - l : r.value.width - r.value.padding - u - l,
446
- height: r.value.height - t - a
444
+ right: s.value.width - l,
445
+ bottom: s.value.height - a,
446
+ start: o.showInfo && e.value.style.dataLabel.show && e.value.style.dataLabel.position === "left" ? s.value.width - s.value.chartWidth + u : s.value.padding + u,
447
+ width: o.showInfo && e.value.style.dataLabel.show ? s.value.chartWidth - u - l : s.value.width - s.value.padding - u - l,
448
+ height: s.value.height - t - a
447
449
  };
448
- }), ye = s(() => [null, void 0].includes(e.value.style.scaleMin) ? Math.min(...L.value.map((t) => isNaN(t.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t.value) ? 0 : t.value || 0)) : e.value.style.scaleMin), it = s(() => [null, void 0].includes(e.value.style.scaleMax) ? Math.max(...L.value.map((t) => isNaN(t.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t.value) ? 0 : t.value || 0)) : e.value.style.scaleMax), G = s(() => {
449
- const t = ye.value >= 0 ? 0 : ye.value;
450
+ }), ge = i(() => [null, void 0].includes(e.value.style.scaleMin) ? Math.min(...L.value.map((t) => isNaN(t.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t.value) ? 0 : t.value || 0)) : e.value.style.scaleMin), it = i(() => [null, void 0].includes(e.value.style.scaleMax) ? Math.max(...L.value.map((t) => isNaN(t.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t.value) ? 0 : t.value || 0)) : e.value.style.scaleMax), W = i(() => {
451
+ const t = ge.value >= 0 ? 0 : ge.value;
450
452
  return Math.abs(t);
451
- }), Se = s(() => it.value + G.value), B = s(() => p.value.bottom - p.value.height * ge(G.value));
452
- function ge(t) {
453
+ }), Se = i(() => it.value + W.value), B = i(() => f.value.bottom - f.value.height * be(W.value));
454
+ function be(t) {
453
455
  return isNaN(t / Se.value) ? 0 : t / Se.value;
454
456
  }
455
- const R = s(() => P.value.length - 1 || 1), K = m([]);
457
+ const R = i(() => P.value.length - 1 || 1), G = g([]);
456
458
  let Fe = 0;
457
459
  yt(() => {
458
460
  const t = ++Fe;
@@ -464,43 +466,43 @@ const Rt = {
464
466
  start: 0,
465
467
  end: P.value.length
466
468
  });
467
- t === Fe && (K.value = l);
469
+ t === Fe && (G.value = l);
468
470
  })();
469
471
  });
470
- const h = s(() => L.value.map((t, l) => {
471
- const a = isNaN(t.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t.value) ? 0 : t.value || 0, u = p.value.width / R.value;
472
+ const v = i(() => L.value.map((t, l) => {
473
+ const a = isNaN(t.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t.value) ? 0 : t.value || 0, u = f.value.width / R.value;
472
474
  return {
473
475
  absoluteValue: a,
474
- period: K.value && K.value[l] && K.value[l].text ? K.value[l].text : t.period,
475
- plotValue: a + G.value,
476
- toMax: ge(a + G.value),
477
- x: p.value.start + l * u,
478
- y: p.value.bottom - p.value.height * ge(a + G.value),
479
- id: `plot_${f.value}_${l}`,
480
- color: S.value ? e.value.style.bar.color : e.value.style.area.useGradient ? Q(e.value.style.line.color, 0.05 * (1 - l / R.value)) : e.value.style.line.color,
476
+ period: G.value && G.value[l] && G.value[l].text ? G.value[l].text : t.period,
477
+ plotValue: a + W.value,
478
+ toMax: be(a + W.value),
479
+ x: f.value.start + l * u,
480
+ y: f.value.bottom - f.value.height * be(a + W.value),
481
+ id: `plot_${y.value}_${l}`,
482
+ color: S.value ? e.value.style.bar.color : e.value.style.area.useGradient ? J(e.value.style.line.color, 0.05 * (1 - l / R.value)) : e.value.style.line.color,
481
483
  width: u
482
484
  };
483
- })), dt = s(() => {
484
- const t = { x: h.value[0].x || 0, y: (r.value.height || 0) - 6 }, l = { x: h.value[h.value.length - 1].x || 0, y: (r.value.height || 0) - 6 }, a = [];
485
- return h.value.forEach((u) => {
485
+ })), dt = i(() => {
486
+ const t = { x: v.value[0].x || 0, y: (s.value.height || 0) - 6 }, l = { x: v.value[v.value.length - 1].x || 0, y: (s.value.height || 0) - 6 }, a = [];
487
+ return v.value.forEach((u) => {
486
488
  a.push(`${u.x || 0},${u.y || 0} `);
487
489
  }), [t.x, t.y, ...a, l.x, l.y].toString();
488
- }), y = m(void 0), E = m(void 0);
490
+ }), h = g(void 0), E = g(void 0);
489
491
  function ct(t, l) {
490
- e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: l }), y.value = t, E.value || (E.value = t), pe("hoverIndex", { index: l });
492
+ e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: l }), h.value = t, E.value || (E.value = t), ye("hoverIndex", { index: l });
491
493
  }
492
494
  function vt(t, l) {
493
- e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: l }), E.value = y.value, y.value = void 0, pe("hoverIndex", { index: void 0 });
495
+ e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: l }), E.value = h.value, h.value = void 0, ye("hoverIndex", { index: void 0 });
494
496
  }
495
- const _ = s(() => {
496
- if (x.value) {
497
- const t = h.value.map((a) => a.absoluteValue), l = t.reduce((a, u) => a + u, 0);
497
+ const $ = i(() => {
498
+ if (I.value) {
499
+ const t = v.value.map((a) => a.absoluteValue), l = t.reduce((a, u) => a + u, 0);
498
500
  return {
499
- latest: h.value[h.value.length - 1] ? h.value[h.value.length - 1].absoluteValue : 0,
501
+ latest: v.value[v.value.length - 1] ? v.value[v.value.length - 1].absoluteValue : 0,
500
502
  sum: l,
501
- average: l / h.value.length,
503
+ average: l / v.value.length,
502
504
  median: wt(t),
503
- trend: At(h.value.map(({ x: a, y: u, absoluteValue: F }) => ({
505
+ trend: At(v.value.map(({ x: a, y: u, absoluteValue: F }) => ({
504
506
  x: a,
505
507
  y: u,
506
508
  value: F
@@ -514,203 +516,203 @@ const Rt = {
514
516
  median: null,
515
517
  trend: null
516
518
  };
517
- }), Te = s(() => x.value ? e.value.style.dataLabel.valueType === "latest" ? _.value.latest : e.value.style.dataLabel.valueType === "sum" ? _.value.sum : e.value.style.dataLabel.valueType === "average" ? _.value.average : 0 : 0), S = s(() => e.value.type && e.value.type === "bar");
519
+ }), Te = i(() => I.value ? e.value.style.dataLabel.valueType === "latest" ? $.value.latest : e.value.style.dataLabel.valueType === "sum" ? $.value.sum : e.value.style.dataLabel.valueType === "average" ? $.value.average : 0 : 0), S = i(() => e.value.type && e.value.type === "bar");
518
520
  function ft(t, l) {
519
- e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: l }), pe("selectDatapoint", { datapoint: t, index: l });
521
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: l }), ye("selectDatapoint", { datapoint: t, index: l });
520
522
  }
521
- return w(
523
+ return x(
522
524
  () => [
523
- se.value,
524
- W.value,
525
- h.value.length,
526
- r.value.width,
527
- r.value.height,
525
+ ie.value,
526
+ j.value,
527
+ v.value.length,
528
+ s.value.width,
529
+ s.value.height,
528
530
  e.value?.style?.line?.smooth
529
531
  ],
530
532
  async () => {
531
- await M(), ie();
533
+ await M(), de();
532
534
  },
533
535
  { immediate: !0 }
534
- ), xe(async () => {
535
- await M(), ie();
536
- }), w(
536
+ ), Le(async () => {
537
+ await M(), de();
538
+ }), x(
537
539
  () => C.value,
538
540
  async (t) => {
539
- t || await _e();
541
+ t || await $e();
540
542
  }
541
- ), w(
542
- () => q.value,
543
+ ), x(
544
+ () => V.value,
543
545
  async (t) => {
544
- t || C.value || await _e();
546
+ t || C.value || await $e();
545
547
  }
546
- ), (t, l) => (i(), c("div", {
548
+ ), (t, l) => (d(), c("div", {
547
549
  ref_key: "sparklineChart",
548
- ref: O,
550
+ ref: k,
549
551
  class: "vue-data-ui-component vue-ui-sparkline",
550
- id: f.value,
552
+ id: y.value,
551
553
  style: N(`width:100%;font-family:${e.value.style.fontFamily};`)
552
554
  }, [
553
555
  z(t.$slots, "before", Re(Ee({
554
- selected: y.value,
555
- latest: _.value.latest,
556
- sum: _.value.sum,
557
- average: _.value.average,
558
- median: _.value.median,
559
- trend: _.value.trend
556
+ selected: h.value,
557
+ latest: $.value.latest,
558
+ sum: $.value.sum,
559
+ average: $.value.average,
560
+ median: $.value.median,
561
+ trend: $.value.trend
560
562
  })), void 0, !0),
561
- e.value.style.title.show && o.showInfo ? (i(), c("div", {
563
+ e.value.style.title.show && n.showInfo ? (d(), c("div", {
562
564
  key: 0,
563
565
  ref_key: "chartTitle",
564
- ref: ue,
566
+ ref: X,
565
567
  class: "vue-ui-sparkline-title",
566
568
  style: N(`display:flex;align-items:center;width:100%;color:${e.value.style.title.color};background:${e.value.style.backgroundColor};justify-content:${e.value.style.title.textAlign === "left" ? "flex-start" : e.value.style.title.textAlign === "right" ? "flex-end" : "center"};height:${e.value.style.title.fontSize * 2}px;font-size:${e.value.style.title.fontSize}px;font-weight:${e.value.style.title.bold ? "bold" : "normal"};`)
567
569
  }, [
568
- g("span", {
570
+ p("span", {
569
571
  style: N(`padding:${e.value.style.title.textAlign === "left" ? "0 0 0 12px" : e.value.style.title.textAlign === "right" ? "0 12px 0 0" : "0"}`)
570
- }, Z(y.value ? y.value.period : e.value.style.title.text), 5)
571
- ], 4)) : k("", !0),
572
- (i(), c("svg", {
572
+ }, Q(h.value ? h.value.period : e.value.style.title.text), 5)
573
+ ], 4)) : m("", !0),
574
+ (d(), c("svg", {
573
575
  ref_key: "svgRef",
574
- ref: U,
575
- xmlns: n(xt),
576
- viewBox: `0 0 ${r.value.width} ${r.value.height}`,
576
+ ref: Y,
577
+ xmlns: r(xt),
578
+ viewBox: `0 0 ${s.value.width} ${s.value.height}`,
577
579
  style: N(`background:${e.value.style.backgroundColor};overflow:visible`),
578
580
  onMouseleave: l[0] || (l[0] = (a) => E.value = void 0)
579
581
  }, [
580
- gt(n(I)),
581
- t.$slots["chart-background"] ? (i(), c("foreignObject", {
582
+ gt(r(w)),
583
+ t.$slots["chart-background"] ? (d(), c("foreignObject", {
582
584
  key: 0,
583
585
  x: 0,
584
586
  y: 0,
585
- width: r.value.width <= 0 ? 10 : r.value.width,
586
- height: r.value.height <= 0 ? 10 : r.value.height,
587
+ width: s.value.width <= 0 ? 10 : s.value.width,
588
+ height: s.value.height <= 0 ? 10 : s.value.height,
587
589
  style: {
588
590
  pointerEvents: "none"
589
591
  }
590
592
  }, [
591
593
  z(t.$slots, "chart-background", {}, void 0, !0)
592
- ], 8, Yt)) : k("", !0),
593
- g("defs", null, [
594
- g("linearGradient", {
594
+ ], 8, Yt)) : m("", !0),
595
+ p("defs", null, [
596
+ p("linearGradient", {
595
597
  x1: "0%",
596
598
  y1: "0%",
597
599
  x2: "100%",
598
600
  y2: "0%",
599
- id: `sparkline_gradient_${f.value}`
601
+ id: `sparkline_gradient_${y.value}`
600
602
  }, [
601
- g("stop", {
603
+ p("stop", {
602
604
  offset: "0%",
603
- "stop-color": n(H)(n(Q)(e.value.style.area.color, 0.05), e.value.style.area.opacity)
604
- }, null, 8, Qt),
605
- g("stop", {
605
+ "stop-color": r(ee)(r(J)(e.value.style.area.color, 0.05), e.value.style.area.opacity)
606
+ }, null, 8, Ht),
607
+ p("stop", {
606
608
  offset: "100%",
607
- "stop-color": n(H)(e.value.style.area.color, e.value.style.area.opacity)
608
- }, null, 8, Ht)
609
+ "stop-color": r(ee)(e.value.style.area.color, e.value.style.area.opacity)
610
+ }, null, 8, Qt)
609
611
  ], 8, Zt),
610
- g("linearGradient", {
612
+ p("linearGradient", {
611
613
  x2: "0%",
612
614
  y2: "100%",
613
- id: `sparkline_bar_gradient_pos_${f.value}`
615
+ id: `sparkline_bar_gradient_pos_${y.value}`
614
616
  }, [
615
- g("stop", {
617
+ p("stop", {
616
618
  offset: "0%",
617
619
  "stop-color": e.value.style.bar.color
618
620
  }, null, 8, el),
619
- g("stop", {
621
+ p("stop", {
620
622
  offset: "100%",
621
- "stop-color": n(Q)(e.value.style.bar.color, 0.05)
623
+ "stop-color": r(J)(e.value.style.bar.color, 0.05)
622
624
  }, null, 8, tl)
623
625
  ], 8, Jt),
624
- g("linearGradient", {
626
+ p("linearGradient", {
625
627
  x2: "0%",
626
628
  y2: "100%",
627
- id: `sparkline_bar_gradient_neg_${f.value}`
629
+ id: `sparkline_bar_gradient_neg_${y.value}`
628
630
  }, [
629
- g("stop", {
631
+ p("stop", {
630
632
  offset: "0%",
631
- "stop-color": n(Q)(e.value.style.bar.color, 0.05)
633
+ "stop-color": r(J)(e.value.style.bar.color, 0.05)
632
634
  }, null, 8, al),
633
- g("stop", {
635
+ p("stop", {
634
636
  offset: "100%",
635
637
  "stop-color": e.value.style.bar.color
636
638
  }, null, 8, ol)
637
639
  ], 8, ll),
638
- g("filter", {
639
- id: `sparkline_pulse_glow_${f.value}`,
640
+ p("filter", {
641
+ id: `sparkline_pulse_glow_${y.value}`,
640
642
  filterUnits: "userSpaceOnUse",
641
643
  x: "-50",
642
644
  y: "-50",
643
645
  width: "100",
644
646
  height: "100"
645
647
  }, [...l[1] || (l[1] = [
646
- g("feGaussianBlur", {
648
+ p("feGaussianBlur", {
647
649
  in: "SourceGraphic",
648
650
  stdDeviation: "3",
649
651
  result: "blur"
650
652
  }, null, -1),
651
- g("feMerge", null, [
652
- g("feMergeNode", { in: "blur" }),
653
- g("feMergeNode", { in: "SourceGraphic" })
653
+ p("feMerge", null, [
654
+ p("feMergeNode", { in: "blur" }),
655
+ p("feMergeNode", { in: "SourceGraphic" })
654
656
  ], -1)
655
657
  ])], 8, ul)
656
658
  ]),
657
- e.value.style.area.show && !S.value && h.value[0] && h.value.length > 1 ? (i(), c("g", nl, [
658
- e.value.style.line.smooth ? (i(), c("path", {
659
+ e.value.style.area.show && !S.value && v.value[0] && v.value.length > 1 ? (d(), c("g", nl, [
660
+ e.value.style.line.smooth ? (d(), c("path", {
659
661
  key: 0,
660
662
  class: "vue-ui-sparkline-area",
661
- d: `M ${h.value[0].x},${p.value.bottom} ${n(qe)(h.value)} L ${h.value.at(-1).x},${p.value.bottom} Z`,
662
- fill: e.value.style.area.useGradient ? `url(#sparkline_gradient_${f.value})` : n(H)(e.value.style.area.color, e.value.style.area.opacity),
663
+ d: `M ${v.value[0].x},${f.value.bottom} ${r(qe)(v.value)} L ${v.value.at(-1).x},${f.value.bottom} Z`,
664
+ fill: e.value.style.area.useGradient ? `url(#sparkline_gradient_${y.value})` : r(ee)(e.value.style.area.color, e.value.style.area.opacity),
663
665
  "stroke-linecap": "round",
664
666
  "stroke-linejoin": "round",
665
667
  style: N({
666
- transition: n(C) ? void 0 : "all 0.2s"
668
+ transition: r(C) ? void 0 : "all 0.2s"
667
669
  })
668
- }, null, 12, rl)) : (i(), c("path", {
670
+ }, null, 12, rl)) : (d(), c("path", {
669
671
  key: 1,
670
672
  class: "vue-ui-sparkline-area",
671
673
  d: `M${dt.value}Z`,
672
- fill: e.value.style.area.useGradient ? `url(#sparkline_gradient_${f.value})` : n(H)(e.value.style.area.color, e.value.style.area.opacity),
674
+ fill: e.value.style.area.useGradient ? `url(#sparkline_gradient_${y.value})` : r(ee)(e.value.style.area.color, e.value.style.area.opacity),
673
675
  "stroke-linecap": "round",
674
676
  "stroke-linejoin": "round",
675
677
  style: N({
676
- transition: n(C) ? void 0 : "all 0.2s"
678
+ transition: r(C) ? void 0 : "all 0.2s"
677
679
  })
678
680
  }, null, 12, sl))
679
- ])) : k("", !0),
680
- e.value.style.line.smooth && !S.value ? (i(), c("path", {
681
+ ])) : m("", !0),
682
+ e.value.style.line.smooth && !S.value ? (d(), c("path", {
681
683
  key: 2,
682
684
  class: "vue-ui-sparkline-path",
683
- id: W.value,
684
- d: `M ${n(qe)(h.value) || "0,0"}`,
685
+ id: j.value,
686
+ d: `M ${r(qe)(v.value) || "0,0"}`,
685
687
  stroke: e.value.style.line.color,
686
688
  fill: "none",
687
689
  "stroke-width": e.value.style.line.strokeWidth,
688
690
  "stroke-linecap": "round",
689
691
  "stroke-linejoin": "round",
690
692
  style: N({
691
- transition: n(C) ? void 0 : "all 0.2s"
693
+ transition: r(C) ? void 0 : "all 0.2s"
692
694
  })
693
- }, null, 12, il)) : k("", !0),
694
- !e.value.style.line.smooth && !S.value ? (i(), c("path", {
695
+ }, null, 12, il)) : m("", !0),
696
+ !e.value.style.line.smooth && !S.value ? (d(), c("path", {
695
697
  key: 3,
696
698
  class: "vue-ui-sparkline-path",
697
- id: W.value,
698
- d: `M ${n(Lt)(h.value) || "0,0"}`,
699
+ id: j.value,
700
+ d: `M ${r(Lt)(v.value) || "0,0"}`,
699
701
  stroke: e.value.style.line.color,
700
702
  fill: "none",
701
703
  "stroke-width": e.value.style.line.strokeWidth,
702
704
  "stroke-linecap": "round",
703
705
  "stroke-linejoin": "round",
704
706
  style: N({
705
- transition: n(C) ? void 0 : "all 0.2s"
707
+ transition: r(C) ? void 0 : "all 0.2s"
706
708
  })
707
- }, null, 12, dl)) : k("", !0),
708
- he.value && se.value ? (i(), me(Kt, {
709
+ }, null, 12, dl)) : m("", !0),
710
+ pe.value && ie.value ? (d(), ke(Kt, {
709
711
  key: 4,
710
- uid: f.value,
711
- svgRef: n(U),
712
- pulsePathId: W.value,
713
- pulsePathLength: X.value,
712
+ uid: y.value,
713
+ svgRef: r(Y),
714
+ pulsePathId: j.value,
715
+ pulsePathLength: Z.value,
714
716
  pulseDur: tt.value,
715
717
  pulseBegin: lt.value,
716
718
  pulseRepeatCount: ot.value,
@@ -720,45 +722,45 @@ const Rt = {
720
722
  pulse: A.value,
721
723
  pulseTrail: Me.value,
722
724
  pulseTrailLength: nt.value,
723
- prefersReducedMotion: n(v),
724
- loading: n(C),
725
+ prefersReducedMotion: r(U),
726
+ loading: r(C),
725
727
  isBar: S.value
726
- }, null, 8, ["uid", "svgRef", "pulsePathId", "pulsePathLength", "pulseDur", "pulseBegin", "pulseRepeatCount", "pulseFillMode", "pulseKeyPoints", "pulseMotion", "pulse", "pulseTrail", "pulseTrailLength", "prefersReducedMotion", "loading", "isBar"])) : k("", !0),
727
- (i(!0), c(J, null, ee(h.value, (a, u) => (i(), c("g", null, [
728
- S.value ? (i(), c("rect", {
728
+ }, null, 8, ["uid", "svgRef", "pulsePathId", "pulsePathLength", "pulseDur", "pulseBegin", "pulseRepeatCount", "pulseFillMode", "pulseKeyPoints", "pulseMotion", "pulse", "pulseTrail", "pulseTrailLength", "prefersReducedMotion", "loading", "isBar"])) : m("", !0),
729
+ (d(!0), c(K, null, te(v.value, (a, u) => (d(), c("g", null, [
730
+ S.value ? (d(), c("rect", {
729
731
  key: 0,
730
732
  x: a.x - a.width / 2,
731
733
  y: isNaN(a.absoluteValue > 0 ? a.y : B.value) ? 0 : a.absoluteValue > 0 ? a.y : B.value,
732
734
  width: a.width,
733
735
  height: isNaN(Math.abs(a.y - B.value)) ? 0 : Math.abs(a.y - B.value),
734
- fill: a.absoluteValue > 0 ? `url(#sparkline_bar_gradient_pos_${f.value})` : `url(#sparkline_bar_gradient_neg_${f.value})`,
736
+ fill: a.absoluteValue > 0 ? `url(#sparkline_bar_gradient_pos_${y.value})` : `url(#sparkline_bar_gradient_neg_${y.value})`,
735
737
  rx: e.value.style.bar.borderRadius
736
- }, null, 8, cl)) : k("", !0),
737
- e.value.style.verticalIndicator.show && (y.value && a.id === y.value.id || o.selectedIndex === u) ? (i(), c("line", {
738
+ }, null, 8, cl)) : m("", !0),
739
+ e.value.style.verticalIndicator.show && (h.value && a.id === h.value.id || n.selectedIndex === u) ? (d(), c("line", {
738
740
  key: 1,
739
741
  x1: a.x,
740
742
  x2: a.x,
741
- y1: p.value.top - 6,
742
- y2: p.value.bottom,
743
+ y1: f.value.top - 6,
744
+ y2: f.value.bottom,
743
745
  stroke: e.value.style.verticalIndicator.color || a.color,
744
746
  "stroke-width": e.value.style.verticalIndicator.strokeWidth,
745
747
  "stroke-linecap": "round",
746
748
  "stroke-dasharray": e.value.style.verticalIndicator.strokeDasharray || 0
747
- }, null, 8, vl)) : k("", !0)
749
+ }, null, 8, vl)) : m("", !0)
748
750
  ]))), 256)),
749
- ye.value < 0 ? (i(), c("line", {
751
+ ge.value < 0 ? (d(), c("line", {
750
752
  key: 5,
751
- x1: p.value.start,
752
- x2: p.value.start + p.value.width,
753
- y1: n(je)(B.value, p.value.bottom),
754
- y2: n(je)(B.value, p.value.bottom),
753
+ x1: f.value.start,
754
+ x2: f.value.start + f.value.width,
755
+ y1: r(je)(B.value, f.value.bottom),
756
+ y2: r(je)(B.value, f.value.bottom),
755
757
  stroke: e.value.style.zeroLine.color,
756
758
  "stroke-dasharray": e.value.style.zeroLine.strokeWidth * 2,
757
759
  "stroke-width": e.value.style.zeroLine.strokeWidth,
758
760
  "stroke-linecap": "round"
759
- }, null, 8, fl)) : k("", !0),
760
- e.value.style.plot.show ? (i(!0), c(J, { key: 6 }, ee(h.value, (a, u) => (i(), c("g", null, [
761
- y.value && a.id === y.value.id || o.selectedIndex === u || n(V).length === 1 ? (i(), c("circle", {
761
+ }, null, 8, fl)) : m("", !0),
762
+ e.value.style.plot.show ? (d(!0), c(K, { key: 6 }, te(v.value, (a, u) => (d(), c("g", null, [
763
+ h.value && a.id === h.value.id || n.selectedIndex === u || r(O).length === 1 ? (d(), c("circle", {
762
764
  key: 0,
763
765
  cx: a.x,
764
766
  cy: a.y,
@@ -766,45 +768,45 @@ const Rt = {
766
768
  fill: a.color,
767
769
  stroke: e.value.style.plot.stroke,
768
770
  "stroke-width": e.value.style.plot.strokeWidth
769
- }, null, 8, hl)) : k("", !0)
770
- ]))), 256)) : k("", !0),
771
- o.showInfo && e.value.style.dataLabel.show ? (i(), c("text", {
771
+ }, null, 8, hl)) : m("", !0)
772
+ ]))), 256)) : m("", !0),
773
+ n.showInfo && e.value.style.dataLabel.show ? (d(), c("text", {
772
774
  key: 7,
773
- x: e.value.style.dataLabel.position === "left" ? 12 + e.value.style.dataLabel.offsetX : p.value.width + 12 + e.value.style.dataLabel.offsetX,
774
- y: r.value.height / 2 + e.value.style.dataLabel.fontSize / 2.5 + e.value.style.dataLabel.offsetY,
775
+ x: e.value.style.dataLabel.position === "left" ? 12 + e.value.style.dataLabel.offsetX : f.value.width + 12 + e.value.style.dataLabel.offsetX,
776
+ y: s.value.height / 2 + e.value.style.dataLabel.fontSize / 2.5 + e.value.style.dataLabel.offsetY,
775
777
  "font-size": e.value.style.dataLabel.fontSize,
776
778
  "font-weight": e.value.style.dataLabel.bold ? "bold" : "normal",
777
779
  fill: e.value.style.dataLabel.color
778
- }, Z(y.value ? n(Ce)(
780
+ }, Q(h.value ? r(Ae)(
779
781
  e.value.style.dataLabel.formatter,
780
- y.value.absoluteValue,
781
- n(Ae)({ p: e.value.style.dataLabel.prefix, v: y.value.absoluteValue, s: e.value.style.dataLabel.suffix, r: e.value.style.dataLabel.roundingValue }),
782
- { datapoint: y.value }
783
- ) : n(Ce)(
782
+ h.value.absoluteValue,
783
+ r(we)({ p: e.value.style.dataLabel.prefix, v: h.value.absoluteValue, s: e.value.style.dataLabel.suffix, r: e.value.style.dataLabel.roundingValue }),
784
+ { datapoint: h.value }
785
+ ) : r(Ae)(
784
786
  e.value.style.dataLabel.formatter,
785
787
  Te.value,
786
- n(Ae)({ p: e.value.style.dataLabel.prefix, v: Te.value, s: e.value.style.dataLabel.suffix, r: e.value.style.dataLabel.roundingValue })
787
- )), 9, pl)) : k("", !0),
788
- (i(!0), c(J, null, ee(h.value, (a, u) => (i(), c("rect", {
789
- x: a.x - (p.value.width / (R.value + 1) > r.value.padding ? r.value.padding : p.value.width / (R.value + 1)) / 2,
790
- y: p.value.top - 6,
791
- height: p.value.height + 6,
792
- width: p.value.width / (R.value + 1) > r.value.padding ? r.value.padding : p.value.width / (R.value + 1),
788
+ r(we)({ p: e.value.style.dataLabel.prefix, v: Te.value, s: e.value.style.dataLabel.suffix, r: e.value.style.dataLabel.roundingValue })
789
+ )), 9, pl)) : m("", !0),
790
+ (d(!0), c(K, null, te(v.value, (a, u) => (d(), c("rect", {
791
+ x: a.x - (f.value.width / (R.value + 1) > s.value.padding ? s.value.padding : f.value.width / (R.value + 1)) / 2,
792
+ y: f.value.top - 6,
793
+ height: f.value.height + 6,
794
+ width: f.value.width / (R.value + 1) > s.value.padding ? s.value.padding : f.value.width / (R.value + 1),
793
795
  fill: "transparent",
794
796
  onMouseenter: () => ct(a, u),
795
797
  onMouseleave: () => vt(a, u),
796
798
  onClick: () => ft(a, u)
797
799
  }, null, 40, yl))), 256)),
798
- z(t.$slots, "svg", { svg: r.value }, void 0, !0)
800
+ z(t.$slots, "svg", { svg: s.value }, void 0, !0)
799
801
  ], 44, Xt)),
800
- y.value && e.value.style.tooltip.show ? (i(), me(n(T), {
802
+ h.value && e.value.style.tooltip.show ? (d(), ke(r(ae), {
801
803
  key: 1,
802
- x: y.value.x,
803
- y: y.value.y,
804
+ x: h.value.x,
805
+ y: h.value.y,
804
806
  prevX: E.value.x,
805
807
  prevY: E.value.y,
806
808
  offsetY: e.value.style.plot.radius * 3 + e.value.style.tooltip.offsetY,
807
- svgRef: n(U),
809
+ svgRef: r(Y),
808
810
  background: e.value.style.tooltip.backgroundColor,
809
811
  color: e.value.style.tooltip.color,
810
812
  fontSize: e.value.style.tooltip.fontSize,
@@ -814,32 +816,32 @@ const Rt = {
814
816
  backgroundOpacity: e.value.style.tooltip.backgroundOpacity
815
817
  }, {
816
818
  default: bt(() => [
817
- z(t.$slots, "tooltip", Re(Ee({ ...y.value })), () => [
818
- mt(Z(y.value.period) + ": " + Z(n(Ce)(
819
+ z(t.$slots, "tooltip", Re(Ee({ ...h.value })), () => [
820
+ mt(Q(h.value.period) + ": " + Q(r(Ae)(
819
821
  e.value.style.dataLabel.formatter,
820
- y.value.absoluteValue,
821
- n(Ae)({
822
+ h.value.absoluteValue,
823
+ r(we)({
822
824
  p: e.value.style.dataLabel.prefix,
823
- v: y.value.absoluteValue,
825
+ v: h.value.absoluteValue,
824
826
  s: e.value.style.dataLabel.suffix,
825
827
  r: e.value.style.dataLabel.roundingValue
826
828
  }),
827
- { datapoint: y.value }
829
+ { datapoint: h.value }
828
830
  )), 1)
829
831
  ], !0)
830
832
  ]),
831
833
  _: 3
832
- }, 8, ["x", "y", "prevX", "prevY", "offsetY", "svgRef", "background", "color", "fontSize", "borderWidth", "borderColor", "borderRadius", "backgroundOpacity"])) : k("", !0),
833
- t.$slots.source ? (i(), c("div", {
834
+ }, 8, ["x", "y", "prevX", "prevY", "offsetY", "svgRef", "background", "color", "fontSize", "borderWidth", "borderColor", "borderRadius", "backgroundOpacity"])) : m("", !0),
835
+ t.$slots.source ? (d(), c("div", {
834
836
  key: 2,
835
837
  ref_key: "source",
836
- ref: Le,
838
+ ref: ne,
837
839
  dir: "auto"
838
840
  }, [
839
841
  z(t.$slots, "source", {}, void 0, !0)
840
- ], 512)) : k("", !0),
842
+ ], 512)) : m("", !0),
841
843
  z(t.$slots, "skeleton", {}, () => [
842
- n(C) ? (i(), me(St, { key: 0 })) : k("", !0)
844
+ r(C) ? (d(), ke(St, { key: 0 })) : m("", !0)
843
845
  ], !0)
844
846
  ], 12, Ut));
845
847
  }
@@ -848,7 +850,7 @@ const Rt = {
848
850
  default: bl
849
851
  }, Symbol.toStringTag, { value: "Module" }));
850
852
  export {
851
- _l as a,
853
+ $l as a,
852
854
  Nl as b,
853
855
  bl as v
854
856
  };