vue-data-ui 3.1.16 → 3.1.18

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 (89) hide show
  1. package/dist/{Arrow-5vUlLOBt.js → Arrow-BC5klzOh.js} +1 -1
  2. package/dist/{BaseDraggableDialog-RzeiqHjP.js → BaseDraggableDialog-CkjMZyIs.js} +2 -2
  3. package/dist/{BaseIcon-wGdAhoaF.js → BaseIcon-BPiT94Lb.js} +1 -1
  4. package/dist/{ColorPicker-DNOgu-Rw.js → ColorPicker-bx5e2RB2.js} +2 -2
  5. package/dist/{DataTable-JX5MWop0.js → DataTable-CywujQw9.js} +2 -2
  6. package/dist/{Legend-QXKyEiPD.js → Legend-h35dp0Qf.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-BG4C0Flj.js → NonSvgPenAndPaper-CvnlQ378.js} +3 -3
  8. package/dist/{PackageVersion-BSXHahdf.js → PackageVersion-BzGzkGiC.js} +1 -1
  9. package/dist/{PenAndPaper-ScGkrINJ.js → PenAndPaper-Deh70G9d.js} +3 -3
  10. package/dist/{Shape-B5nsWKct.js → Shape-sVxD_SDm.js} +1 -1
  11. package/dist/{Slicer-BP5JybRr.js → Slicer-CQB967He.js} +2 -2
  12. package/dist/{SparkTooltip-qH7jdTTV.js → SparkTooltip-DFRSPT3_.js} +1 -1
  13. package/dist/{Title-Cs26H3hX.js → Title-B_WMW2Bp.js} +1 -1
  14. package/dist/{Tooltip-BAx7Btsw.js → Tooltip-Db9jy0Iu.js} +1 -1
  15. package/dist/{UserOptions-BLVLaZDQ.js → UserOptions-CtECQwBN.js} +2 -2
  16. package/dist/{dom-to-png-8xSfWIE3.js → dom-to-png-BHpS3cMi.js} +1 -1
  17. package/dist/{img-DYi-2xfu.js → img-BArHHegM.js} +1 -1
  18. package/dist/{index-D6OjIQeq.js → index-smzxfsyV.js} +2 -2
  19. package/dist/{pdf-BE8YApaL.js → pdf-D1L3r23x.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/{useAutoSizeLabelsInsideViewbox-CeJVwNle.js → useAutoSizeLabelsInsideViewbox-DeqXeTNw.js} +1 -1
  22. package/dist/{useNestedProp-QUe0ze7N.js → useNestedProp-DeKmJzsE.js} +1 -1
  23. package/dist/{usePrinter-BZ8rT5v2.js → usePrinter-nFj0xF0a.js} +2 -2
  24. package/dist/{vue-data-ui-C8k4Y_oL.js → vue-data-ui-DcBYykse.js} +64 -64
  25. package/dist/vue-data-ui.js +1 -1
  26. package/dist/{vue-ui-3d-bar-Bt5Fz91G.js → vue-ui-3d-bar-D4rc8PD3.js} +57 -57
  27. package/dist/{vue-ui-accordion-Cq060UfJ.js → vue-ui-accordion-7cfJUVx5.js} +3 -3
  28. package/dist/{vue-ui-age-pyramid-8y3q3bso.js → vue-ui-age-pyramid-BXMIUNB_.js} +6 -6
  29. package/dist/{vue-ui-annotator-CiYwSoCc.js → vue-ui-annotator-aCDhQ-m2.js} +2 -2
  30. package/dist/{vue-ui-bullet-1eQWn7Q3.js → vue-ui-bullet-Cd_iix-z.js} +7 -7
  31. package/dist/{vue-ui-candlestick-CIlTxwGr.js → vue-ui-candlestick-C-TTTgiW.js} +7 -7
  32. package/dist/{vue-ui-carousel-table-CgwL2hyg.js → vue-ui-carousel-table-C58J4zpm.js} +4 -4
  33. package/dist/{vue-ui-chestnut-DlpqIPgH.js → vue-ui-chestnut-C7u6GW-T.js} +5 -5
  34. package/dist/{vue-ui-chord-EjxXbSFh.js → vue-ui-chord-DxLU3Fg1.js} +8 -8
  35. package/dist/{vue-ui-circle-pack-DTCERNzf.js → vue-ui-circle-pack--a_KE7qz.js} +6 -6
  36. package/dist/{vue-ui-cursor-DvUoY7hb.js → vue-ui-cursor-DJQWAIj8.js} +2 -2
  37. package/dist/{vue-ui-dashboard-CXhJYlHM.js → vue-ui-dashboard-CIACUYB-.js} +67 -67
  38. package/dist/{vue-ui-digits-BIyBotSz.js → vue-ui-digits-CLV8h-P8.js} +2 -2
  39. package/dist/{vue-ui-donut-evolution-UXTR4300.js → vue-ui-donut-evolution-XGJvBQIm.js} +8 -8
  40. package/dist/{vue-ui-donut-BQZwtNJm.js → vue-ui-donut-sO6G5oor.js} +8 -8
  41. package/dist/{vue-ui-dumbbell-g6zDDlZe.js → vue-ui-dumbbell-Bi11rDL7.js} +7 -7
  42. package/dist/{vue-ui-flow-Ca_dZjw9.js → vue-ui-flow-RP2v-aZJ.js} +7 -7
  43. package/dist/{vue-ui-funnel-Om9LCUCJ.js → vue-ui-funnel-TVQXGyw7.js} +6 -6
  44. package/dist/{vue-ui-galaxy-BLUw06YE.js → vue-ui-galaxy-CUURaWgH.js} +7 -7
  45. package/dist/{vue-ui-gauge-CK-pZBWT.js → vue-ui-gauge-hTRlwARA.js} +125 -125
  46. package/dist/{vue-ui-gizmo-BSxlb7sM.js → vue-ui-gizmo-CZIgBvWV.js} +3 -3
  47. package/dist/{vue-ui-heatmap-DZg46_w0.js → vue-ui-heatmap-RKtFMgDP.js} +7 -7
  48. package/dist/{vue-ui-history-plot-D8sq7qDo.js → vue-ui-history-plot-fbTG7Mke.js} +7 -7
  49. package/dist/{vue-ui-kpi-CK4Sz-AD.js → vue-ui-kpi-CfX-zUDS.js} +3 -3
  50. package/dist/{vue-ui-mini-loader-D-potdmP.js → vue-ui-mini-loader-C1nANuMy.js} +2 -2
  51. package/dist/{vue-ui-molecule-B36nPur5.js → vue-ui-molecule-BU7T1ysb.js} +5 -5
  52. package/dist/{vue-ui-mood-radar-DaacpsBj.js → vue-ui-mood-radar-Cb8cFWzE.js} +7 -7
  53. package/dist/{vue-ui-nested-donuts-UgIV0zrL.js → vue-ui-nested-donuts-DTZD8BTA.js} +7 -7
  54. package/dist/{vue-ui-onion-DWUFUuVG.js → vue-ui-onion-5xmlEUsJ.js} +8 -8
  55. package/dist/{vue-ui-parallel-coordinate-plot-DleqNzzO.js → vue-ui-parallel-coordinate-plot-Wc0TbyJH.js} +8 -8
  56. package/dist/{vue-ui-quadrant-B_dlGzjJ.js → vue-ui-quadrant-BC99Cua7.js} +8 -8
  57. package/dist/{vue-ui-quick-chart-Dyo1b6H6.js → vue-ui-quick-chart-Cbv2UcEu.js} +6 -6
  58. package/dist/{vue-ui-radar-NbR2uHg4.js → vue-ui-radar-B-ey_fDA.js} +8 -8
  59. package/dist/{vue-ui-rating-CryvFvr7.js → vue-ui-rating-BNCKLcCa.js} +2 -2
  60. package/dist/{vue-ui-relation-circle-DF6dE4zW.js → vue-ui-relation-circle-CYFQcAgc.js} +7 -7
  61. package/dist/{vue-ui-ridgeline-8-dQ3bbv.js → vue-ui-ridgeline-B_6K1FTc.js} +8 -8
  62. package/dist/{vue-ui-rings-B147Pr4Q.js → vue-ui-rings-D_BTgxYc.js} +8 -8
  63. package/dist/{vue-ui-scatter-yKBu-zLG.js → vue-ui-scatter-B69SYOfv.js} +8 -8
  64. package/dist/{vue-ui-skeleton-C-jwsbrt.js → vue-ui-skeleton-CpkwgALO.js} +3 -3
  65. package/dist/{vue-ui-smiley-DFJ2-pxP.js → vue-ui-smiley-t16dEIoQ.js} +2 -2
  66. package/dist/vue-ui-spark-trend-DskdjYw4.js +336 -0
  67. package/dist/{vue-ui-sparkbar-DRsv3ulD.js → vue-ui-sparkbar-C-evQIq2.js} +81 -81
  68. package/dist/{vue-ui-sparkgauge-BfoO71Ji.js → vue-ui-sparkgauge-DycVSHAs.js} +4 -4
  69. package/dist/{vue-ui-sparkhistogram-DJtyI7Bl.js → vue-ui-sparkhistogram-CZLnlSUD.js} +4 -4
  70. package/dist/{vue-ui-sparkline-dHdyjp0m.js → vue-ui-sparkline-C1nZRVTa.js} +169 -169
  71. package/dist/{vue-ui-sparkstackbar-DQhZm6u2.js → vue-ui-sparkstackbar-CUUeuwAI.js} +3 -3
  72. package/dist/{vue-ui-stackbar-BEoSEdhL.js → vue-ui-stackbar-D27Wq8Y4.js} +9 -9
  73. package/dist/{vue-ui-strip-plot-CNqY9uEA.js → vue-ui-strip-plot-D-srKJUr.js} +7 -7
  74. package/dist/{vue-ui-table-ywthhZy0.js → vue-ui-table-LcImk124.js} +4 -4
  75. package/dist/{vue-ui-table-heatmap-DDR4_yLN.js → vue-ui-table-heatmap-BfXe_f0K.js} +5 -5
  76. package/dist/{vue-ui-table-sparkline-qFmRMBGM.js → vue-ui-table-sparkline-DyrnPNGv.js} +4 -4
  77. package/dist/{vue-ui-thermometer-Dk534ePJ.js → vue-ui-thermometer-DxRDmz-L.js} +7 -7
  78. package/dist/{vue-ui-timer-UVZZcr4T.js → vue-ui-timer-Bbzb09O8.js} +5 -5
  79. package/dist/{vue-ui-tiremarks-BaFMrJSV.js → vue-ui-tiremarks-DWy1Dkub.js} +6 -6
  80. package/dist/{vue-ui-treemap-CuHOtSzw.js → vue-ui-treemap-C3Ek_E4n.js} +8 -8
  81. package/dist/{vue-ui-vertical-bar-C-_UEN9K.js → vue-ui-vertical-bar-CV3Mc1cX.js} +9 -9
  82. package/dist/{vue-ui-waffle-BTUdTAI_.js → vue-ui-waffle-D2mQJdcV.js} +8 -8
  83. package/dist/{vue-ui-wheel-BaqvZwV1.js → vue-ui-wheel-zbog7bII.js} +6 -6
  84. package/dist/{vue-ui-word-cloud-Iry997aF.js → vue-ui-word-cloud-D9iZRkQP.js} +6 -6
  85. package/dist/{vue-ui-world-B-iFEOiQ.js → vue-ui-world-D5dR5VdK.js} +6 -6
  86. package/dist/{vue-ui-xy-LlykHLgF.js → vue-ui-xy-Cll76_i9.js} +1254 -1250
  87. package/dist/{vue-ui-xy-canvas-CvkmWMXw.js → vue-ui-xy-canvas-DJVXAfpL.js} +10 -10
  88. package/package.json +1 -1
  89. package/dist/vue-ui-spark-trend-BU0OIb8g.js +0 -315
@@ -1,12 +1,12 @@
1
- import { defineAsyncComponent as he, computed as h, ref as y, toRefs as Pe, watch as J, shallowRef as fe, onMounted as Re, onBeforeUnmount as ye, createElementBlock as c, openBlock as s, normalizeStyle as D, renderSlot as I, createCommentVNode as f, createBlock as pe, normalizeProps as ge, guardReactiveProps as me, createElementVNode as p, toDisplayString as T, unref as n, createVNode as Fe, Fragment as Q, renderList as ee, withCtx as Ee, createTextVNode as Oe, nextTick as Be } from "vue";
2
- import { u as Ge, c as je, t as Ue, b as Xe, C as be, a9 as te, o as ke, f as xe, g as Ye, x as W, aa as qe, ab as Ze, X as Ke, s as P, V as _e, U as He, ac as we, k as ae, i as le, ad as Je } from "./index-D6OjIQeq.js";
3
- import { u as Le } from "./useNestedProp-QUe0ze7N.js";
4
- import { t as Qe, u as et } from "./useResponsive-DfdjqQps.js";
5
- import { u as tt } from "./useChartAccessibility-9icAAmYg.js";
6
- import { u as at, B as lt } from "./BaseScanner-BgWxam9d.js";
7
- import { u as ut } from "./useTimeLabels-BGFjWgrv.js";
8
- import { _ as ot } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
- const st = ["id"], nt = ["xmlns", "viewBox"], rt = ["width", "height"], it = ["id"], vt = ["stop-color"], dt = ["stop-color"], ct = ["id"], ht = ["stop-color"], ft = ["stop-color"], yt = ["id"], pt = ["stop-color"], gt = ["stop-color"], mt = { key: 1 }, bt = ["d", "fill"], kt = ["d", "fill"], xt = ["d", "stroke", "stroke-width"], _t = ["d", "stroke", "stroke-width"], wt = ["x", "y", "width", "height", "fill", "rx"], Lt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], At = ["x1", "x2", "y1", "y2", "stroke", "stroke-dasharray", "stroke-width"], $t = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Nt = ["x", "y", "font-size", "font-weight", "fill"], Mt = ["x", "y", "height", "width", "onMouseenter", "onMouseleave", "onClick"], Ct = {
1
+ import { defineAsyncComponent as he, computed as h, ref as y, toRefs as Pe, watch as J, shallowRef as fe, onMounted as Re, onBeforeUnmount as ye, createElementBlock as c, openBlock as n, normalizeStyle as D, renderSlot as S, createCommentVNode as f, createBlock as pe, normalizeProps as ge, guardReactiveProps as me, createElementVNode as p, toDisplayString as T, unref as s, createVNode as Fe, Fragment as Q, renderList as ee, withCtx as Ee, createTextVNode as Oe, nextTick as Be } from "vue";
2
+ import { u as Ge, c as je, t as Ue, b as Xe, C as be, a9 as ae, o as ke, f as xe, g as Ye, x as W, aa as qe, ab as Ze, X as Ke, s as P, V as _e, U as He, ac as we, k as te, i as le, ad as Je } from "./index-smzxfsyV.js";
3
+ import { u as Le } from "./useNestedProp-DeKmJzsE.js";
4
+ import { t as Qe, u as ea } from "./useResponsive-DfdjqQps.js";
5
+ import { u as aa } from "./useChartAccessibility-9icAAmYg.js";
6
+ import { u as ta, B as la } from "./BaseScanner-BgWxam9d.js";
7
+ import { u as ua } from "./useTimeLabels-BGFjWgrv.js";
8
+ import { _ as oa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
+ const sa = ["id"], na = ["xmlns", "viewBox"], ra = ["width", "height"], ia = ["id"], va = ["stop-color"], da = ["stop-color"], ca = ["id"], ha = ["stop-color"], fa = ["stop-color"], ya = ["id"], pa = ["stop-color"], ga = ["stop-color"], ma = { key: 1 }, ba = ["d", "fill"], ka = ["d", "fill"], xa = ["d", "stroke", "stroke-width"], _a = ["d", "stroke", "stroke-width"], wa = ["x", "y", "width", "height", "fill", "rx"], La = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Aa = ["x1", "x2", "y1", "y2", "stroke", "stroke-dasharray", "stroke-width"], $a = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Na = ["x", "y", "font-size", "font-weight", "fill"], Ma = ["x", "y", "height", "width", "onMouseenter", "onMouseleave", "onClick"], Ca = {
10
10
  __name: "vue-ui-sparkline",
11
11
  props: {
12
12
  config: {
@@ -39,12 +39,12 @@ const st = ["id"], nt = ["xmlns", "viewBox"], rt = ["width", "height"], it = ["i
39
39
  }
40
40
  },
41
41
  emits: ["hoverIndex", "selectDatapoint"],
42
- setup(x, { emit: Ae }) {
43
- const $e = he(() => import("./PackageVersion-BSXHahdf.js")), Ne = he(() => import("./SparkTooltip-qH7jdTTV.js")), { vue_ui_sparkline: Me } = Ge(), r = x, ue = h(() => Array.isArray(r.dataset) && r.dataset.length > 0), g = y(je()), R = y(null), oe = y(null), se = y(null), e = y(O());
44
- function Ce(t) {
45
- return Je(t).map((a) => ({ period: "-", value: a }));
42
+ setup($, { emit: Ae }) {
43
+ const $e = he(() => import("./PackageVersion-BzGzkGiC.js")), Ne = he(() => import("./SparkTooltip-DFRSPT3_.js")), { vue_ui_sparkline: Me } = Ge(), r = $, ue = h(() => Array.isArray(r.dataset) && r.dataset.length > 0), g = y(je()), R = y(null), oe = y(null), se = y(null), e = y(O());
44
+ function Ce(a) {
45
+ return Je(a).map((t) => ({ period: "-", value: t }));
46
46
  }
47
- const { loading: F, FINAL_DATASET: S, manualLoading: E } = at({
47
+ const { loading: F, FINAL_DATASET: N, manualLoading: E } = ta({
48
48
  ...Pe(r),
49
49
  FINAL_CONFIG: e,
50
50
  prepareConfig: O,
@@ -71,81 +71,81 @@ const st = ["id"], nt = ["xmlns", "viewBox"], rt = ["width", "height"], it = ["i
71
71
  }
72
72
  }
73
73
  })
74
- }), { svgRef: ne } = tt({ config: e.value.style.title });
74
+ }), { svgRef: ne } = aa({ config: e.value.style.title });
75
75
  function O() {
76
- const t = Le({
76
+ const a = Le({
77
77
  userConfig: r.config,
78
78
  defaultConfig: Me
79
79
  });
80
- let a = {};
81
- return t.theme ? a = {
80
+ let t = {};
81
+ return a.theme ? t = {
82
82
  ...Le({
83
- userConfig: Xe.vue_ui_sparkline[t.theme] || r.config,
84
- defaultConfig: t
83
+ userConfig: Xe.vue_ui_sparkline[a.theme] || r.config,
84
+ defaultConfig: a
85
85
  })
86
- } : a = t, r.config && be(r.config, "style.scaleMin") ? a.style.scaleMin = r.config.style.scaleMin : a.style.scaleMin = null, r.config && be(r.config, "style.scaleMax") ? a.style.scaleMax = r.config.style.scaleMax : a.style.scaleMax = null, a;
86
+ } : t = a, r.config && be(r.config, "style.scaleMin") ? t.style.scaleMin = r.config.style.scaleMin : t.style.scaleMin = null, r.config && be(r.config, "style.scaleMax") ? t.style.scaleMax = r.config.style.scaleMax : t.style.scaleMax = null, t;
87
87
  }
88
- const _ = h(() => te({
89
- data: S.value,
88
+ const x = h(() => ae({
89
+ data: N.value,
90
90
  threshold: e.value.downsample.threshold
91
91
  }));
92
- J(() => r.config, (t) => {
92
+ J(() => r.config, (a) => {
93
93
  F.value || (e.value = O()), ie(), o.value.chartWidth = e.value.style.chartWidth;
94
- }, { deep: !0 }), J(() => r.dataset, (t) => {
95
- Array.isArray(t) && t.length > 0 && (E.value = !1), m.value = te({
96
- data: S.value.map((a) => ({
97
- ...a,
98
- value: [void 0].includes(a.value) ? null : a.value
94
+ }, { deep: !0 }), J(() => r.dataset, (a) => {
95
+ Array.isArray(a) && a.length > 0 && (E.value = !1), m.value = ae({
96
+ data: N.value.map((t) => ({
97
+ ...t,
98
+ value: [void 0].includes(t.value) ? null : t.value
99
99
  })),
100
100
  threshold: e.value.downsample.threshold
101
101
  });
102
102
  }, { deep: !0 });
103
103
  const m = y(Ie());
104
104
  function Ie() {
105
- return te({
106
- data: S.value.map((t) => e.value.style.animation.show && S.value.length > 1 ? {
107
- ...t,
105
+ return ae({
106
+ data: N.value.map((a) => e.value.style.animation.show && N.value.length > 1 ? {
107
+ ...a,
108
108
  value: null
109
109
  } : {
110
- ...t,
111
- value: [void 0].includes(t.value) ? null : t.value
110
+ ...a,
111
+ value: [void 0].includes(a.value) ? null : a.value
112
112
  }),
113
113
  threshold: e.value.downsample.threshold
114
114
  });
115
115
  }
116
- const b = fe(null), w = fe(null), B = y(!1), N = y(0), G = y([]), j = y(""), U = h(() => {
117
- const a = (_.value || []).map((u) => `${u.period}::${Number.isFinite(u.value) ? u.value : 0}`).join("|"), l = e.value?.style?.animation || {};
118
- return `${a}#${!!l.show}#${l.animationFrames || 0}`;
116
+ const b = fe(null), _ = fe(null), B = y(!1), M = y(0), G = y([]), j = y(""), U = h(() => {
117
+ const t = (x.value || []).map((u) => `${u.period}::${Number.isFinite(u.value) ? u.value : 0}`).join("|"), l = e.value?.style?.animation || {};
118
+ return `${t}#${!!l.show}#${l.animationFrames || 0}`;
119
119
  });
120
120
  function V() {
121
- N.value && (cancelAnimationFrame(N.value), N.value = 0), G.value.forEach((t) => clearTimeout(t)), G.value = [], B.value = !1;
121
+ M.value && (cancelAnimationFrame(M.value), M.value = 0), G.value.forEach((a) => clearTimeout(a)), G.value = [], B.value = !1;
122
122
  }
123
123
  function X() {
124
- const t = e.value?.style?.animation || {}, a = _.value || [], l = U.value;
125
- if (l && l === j.value && (B.value || m.value.length === a.length))
124
+ const a = e.value?.style?.animation || {}, t = x.value || [], l = U.value;
125
+ if (l && l === j.value && (B.value || m.value.length === t.length))
126
126
  return;
127
- if (V(), !t.show || F.value || a.length <= 1) {
128
- m.value = a, j.value = l;
127
+ if (V(), !a.show || F.value || t.length <= 1) {
128
+ m.value = t, j.value = l;
129
129
  return;
130
130
  }
131
131
  B.value = !0, j.value = l, m.value = [];
132
- const u = Math.max(1, Number(t.animationFrames) || 1), K = Math.max(1, Math.floor(u / a.length));
132
+ const u = Math.max(1, Number(a.animationFrames) || 1), K = Math.max(1, Math.floor(u / t.length));
133
133
  let H = 0;
134
134
  const ce = () => {
135
135
  if (l !== U.value) {
136
136
  V();
137
137
  return;
138
138
  }
139
- if (H < a.length) {
140
- m.value.push(a[H]);
139
+ if (H < t.length) {
140
+ m.value.push(t[H]);
141
141
  const We = setTimeout(() => {
142
- N.value = requestAnimationFrame(ce);
142
+ M.value = requestAnimationFrame(ce);
143
143
  }, K);
144
144
  G.value.push(We), H += 1;
145
145
  } else
146
- m.value = a, V();
146
+ m.value = t, V();
147
147
  };
148
- N.value = requestAnimationFrame(ce);
148
+ M.value = requestAnimationFrame(ce);
149
149
  }
150
150
  J(U, () => {
151
151
  X();
@@ -160,35 +160,35 @@ const st = ["id"], nt = ["xmlns", "viewBox"], rt = ["width", "height"], it = ["i
160
160
  componentName: "VueUiSparkline",
161
161
  type: "dataset",
162
162
  debug: re.value
163
- }), E.value = !0) : r.dataset.forEach((t, a) => {
163
+ }), E.value = !0) : r.dataset.forEach((a, t) => {
164
164
  Ye({
165
- datasetObject: t,
165
+ datasetObject: a,
166
166
  requiredAttributes: ["period", "value"]
167
167
  }).forEach((l) => {
168
168
  xe({
169
169
  componentName: "VueUiSparkline",
170
170
  type: "datasetSerieAttribute",
171
171
  property: l,
172
- index: a,
172
+ index: t,
173
173
  debug: re.value
174
174
  });
175
175
  });
176
176
  }), ke(r.dataset) || (E.value = e.value.loading), e.value.responsive) {
177
- const t = Qe(() => {
178
- const { width: a, height: l } = et({
177
+ const a = Qe(() => {
178
+ const { width: t, height: l } = ea({
179
179
  chart: R.value,
180
180
  title: e.value.style.title.show && r.showInfo ? oe.value : null,
181
181
  source: se.value
182
182
  });
183
183
  requestAnimationFrame(() => {
184
- o.value.width = a, o.value.height = l, o.value.chartWidth = e.value.style.chartWidth / 500 * a, o.value.padding = r.forcedPadding / 500 * a;
184
+ o.value.width = t, o.value.height = l, o.value.chartWidth = e.value.style.chartWidth / 500 * t, o.value.padding = r.forcedPadding / 500 * t;
185
185
  });
186
186
  });
187
- b.value && (w.value && b.value.unobserve(w.value), b.value.disconnect()), b.value = new ResizeObserver(t), w.value = R.value.parentNode, b.value.observe(w.value);
187
+ b.value && (_.value && b.value.unobserve(_.value), b.value.disconnect()), b.value = new ResizeObserver(a), _.value = R.value.parentNode, b.value.observe(_.value);
188
188
  }
189
189
  }
190
190
  ye(() => {
191
- b.value && (w.value && b.value.unobserve(w.value), b.value.disconnect());
191
+ b.value && (_.value && b.value.unobserve(_.value), b.value.disconnect());
192
192
  });
193
193
  const o = y({
194
194
  height: 80 * r.heightRatio,
@@ -196,62 +196,62 @@ const st = ["id"], nt = ["xmlns", "viewBox"], rt = ["width", "height"], it = ["i
196
196
  chartWidth: e.value.style.chartWidth,
197
197
  padding: r.forcedPadding
198
198
  }), Y = Ae, i = h(() => {
199
- const { top: t, right: a, bottom: l, left: u } = e.value.style.padding;
199
+ const { top: a, right: t, bottom: l, left: u } = e.value.style.padding;
200
200
  return {
201
- top: t,
201
+ top: a,
202
202
  left: u,
203
- right: o.value.width - a,
203
+ right: o.value.width - t,
204
204
  bottom: o.value.height - l,
205
205
  start: r.showInfo && e.value.style.dataLabel.show && e.value.style.dataLabel.position === "left" ? o.value.width - o.value.chartWidth + u : o.value.padding + u,
206
- width: r.showInfo && e.value.style.dataLabel.show ? o.value.chartWidth - u - a : o.value.width - o.value.padding - u - a,
207
- height: o.value.height - t - l
206
+ width: r.showInfo && e.value.style.dataLabel.show ? o.value.chartWidth - u - t : o.value.width - o.value.padding - u - t,
207
+ height: o.value.height - a - l
208
208
  };
209
- }), q = h(() => [null, void 0].includes(e.value.style.scaleMin) ? Math.min(...m.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), Se = h(() => [null, void 0].includes(e.value.style.scaleMax) ? Math.max(...m.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), M = h(() => {
210
- const t = q.value >= 0 ? 0 : q.value;
211
- return Math.abs(t);
212
- }), ve = h(() => Se.value + M.value), L = h(() => i.value.bottom - i.value.height * Z(M.value));
213
- function Z(t) {
214
- return isNaN(t / ve.value) ? 0 : t / ve.value;
209
+ }), q = h(() => [null, void 0].includes(e.value.style.scaleMin) ? Math.min(...m.value.map((a) => isNaN(a.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(a.value) ? 0 : a.value || 0)) : e.value.style.scaleMin), Se = h(() => [null, void 0].includes(e.value.style.scaleMax) ? Math.max(...m.value.map((a) => isNaN(a.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(a.value) ? 0 : a.value || 0)) : e.value.style.scaleMax), C = h(() => {
210
+ const a = q.value >= 0 ? 0 : q.value;
211
+ return Math.abs(a);
212
+ }), ve = h(() => Se.value + C.value), w = h(() => i.value.bottom - i.value.height * Z(C.value));
213
+ function Z(a) {
214
+ return isNaN(a / ve.value) ? 0 : a / ve.value;
215
215
  }
216
- const A = h(() => _.value.length - 1 || 1), z = h(() => ut({
217
- values: _.value.map((t) => t.period),
218
- maxDatapoints: _.value.length,
216
+ const L = h(() => x.value.length - 1 || 1), z = h(() => ua({
217
+ values: x.value.map((a) => a.period),
218
+ maxDatapoints: x.value.length,
219
219
  formatter: e.value.style.dataLabel.datetimeFormatter,
220
220
  start: 0,
221
- end: _.value.length
222
- })), d = h(() => m.value.map((t, a) => {
223
- const l = isNaN(t.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t.value) ? 0 : t.value || 0, u = i.value.width / A.value;
221
+ end: x.value.length
222
+ })), d = h(() => m.value.map((a, t) => {
223
+ const l = isNaN(a.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(a.value) ? 0 : a.value || 0, u = i.value.width / L.value;
224
224
  return {
225
225
  absoluteValue: l,
226
- period: z.value && z.value[a] && z.value[a].text ? z.value[a].text : t.period,
227
- plotValue: l + M.value,
228
- toMax: Z(l + M.value),
229
- x: i.value.start + a * u,
230
- y: i.value.bottom - i.value.height * Z(l + M.value),
231
- id: `plot_${g.value}_${a}`,
232
- color: C.value ? e.value.style.bar.color : e.value.style.area.useGradient ? W(e.value.style.line.color, 0.05 * (1 - a / A.value)) : e.value.style.line.color,
226
+ period: z.value && z.value[t] && z.value[t].text ? z.value[t].text : a.period,
227
+ plotValue: l + C.value,
228
+ toMax: Z(l + C.value),
229
+ x: i.value.start + t * u,
230
+ y: i.value.bottom - i.value.height * Z(l + C.value),
231
+ id: `plot_${g.value}_${t}`,
232
+ color: I.value ? e.value.style.bar.color : e.value.style.area.useGradient ? W(e.value.style.line.color, 0.05 * (1 - t / L.value)) : e.value.style.line.color,
233
233
  width: u
234
234
  };
235
235
  })), Ve = h(() => {
236
- const t = { x: d.value[0].x || 0, y: (o.value.height || 0) - 6 }, a = { x: d.value[d.value.length - 1].x || 0, y: (o.value.height || 0) - 6 }, l = [];
236
+ const a = { x: d.value[0].x || 0, y: (o.value.height || 0) - 6 }, t = { x: d.value[d.value.length - 1].x || 0, y: (o.value.height || 0) - 6 }, l = [];
237
237
  return d.value.forEach((u) => {
238
238
  l.push(`${u.x || 0},${u.y || 0} `);
239
- }), [t.x, t.y, ...l, a.x, a.y].toString();
240
- }), v = y(void 0), $ = y(void 0);
241
- function ze(t, a) {
242
- e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }), v.value = t, $.value || ($.value = t), Y("hoverIndex", { index: a });
239
+ }), [a.x, a.y, ...l, t.x, t.y].toString();
240
+ }), v = y(void 0), A = y(void 0);
241
+ function ze(a, t) {
242
+ e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: a, seriesIndex: t }), v.value = a, A.value || (A.value = a), Y("hoverIndex", { index: t });
243
243
  }
244
- function De(t, a) {
245
- e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a }), $.value = v.value, v.value = void 0, Y("hoverIndex", { index: void 0 });
244
+ function De(a, t) {
245
+ e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: a, seriesIndex: t }), A.value = v.value, v.value = void 0, Y("hoverIndex", { index: void 0 });
246
246
  }
247
247
  const k = h(() => {
248
248
  if (ue.value) {
249
- const t = d.value.map((l) => l.absoluteValue), a = t.reduce((l, u) => l + u, 0);
249
+ const a = d.value.map((l) => l.absoluteValue), t = a.reduce((l, u) => l + u, 0);
250
250
  return {
251
251
  latest: d.value[d.value.length - 1] ? d.value[d.value.length - 1].absoluteValue : 0,
252
- sum: a,
253
- average: a / d.value.length,
254
- median: Ze(t),
252
+ sum: t,
253
+ average: t / d.value.length,
254
+ median: Ze(a),
255
255
  trend: qe(d.value.map(({ x: l, y: u, absoluteValue: K }) => ({
256
256
  x: l,
257
257
  y: u,
@@ -266,18 +266,18 @@ const st = ["id"], nt = ["xmlns", "viewBox"], rt = ["width", "height"], it = ["i
266
266
  median: null,
267
267
  trend: null
268
268
  };
269
- }), de = h(() => ue.value ? e.value.style.dataLabel.valueType === "latest" ? k.value.latest : e.value.style.dataLabel.valueType === "sum" ? k.value.sum : e.value.style.dataLabel.valueType === "average" ? k.value.average : 0 : 0), C = h(() => e.value.type && e.value.type === "bar");
270
- function Te(t, a) {
271
- e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: a }), Y("selectDatapoint", { datapoint: t, index: a });
269
+ }), de = h(() => ue.value ? e.value.style.dataLabel.valueType === "latest" ? k.value.latest : e.value.style.dataLabel.valueType === "sum" ? k.value.sum : e.value.style.dataLabel.valueType === "average" ? k.value.average : 0 : 0), I = h(() => e.value.type && e.value.type === "bar");
270
+ function Te(a, t) {
271
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: a, seriesIndex: t }), Y("selectDatapoint", { datapoint: a, index: t });
272
272
  }
273
- return (t, a) => (s(), c("div", {
273
+ return (a, t) => (n(), c("div", {
274
274
  ref_key: "sparklineChart",
275
275
  ref: R,
276
276
  class: "vue-ui-sparkline",
277
277
  id: g.value,
278
278
  style: D(`width:100%;font-family:${e.value.style.fontFamily};`)
279
279
  }, [
280
- I(t.$slots, "before", ge(me({
280
+ S(a.$slots, "before", ge(me({
281
281
  selected: v.value,
282
282
  latest: k.value.latest,
283
283
  sum: k.value.sum,
@@ -285,7 +285,7 @@ const st = ["id"], nt = ["xmlns", "viewBox"], rt = ["width", "height"], it = ["i
285
285
  median: k.value.median,
286
286
  trend: k.value.trend
287
287
  })), void 0, !0),
288
- e.value.style.title.show && x.showInfo ? (s(), c("div", {
288
+ e.value.style.title.show && $.showInfo ? (n(), c("div", {
289
289
  key: 0,
290
290
  ref_key: "chartTitle",
291
291
  ref: oe,
@@ -296,16 +296,16 @@ const st = ["id"], nt = ["xmlns", "viewBox"], rt = ["width", "height"], it = ["i
296
296
  style: D(`padding:${e.value.style.title.textAlign === "left" ? "0 0 0 12px" : e.value.style.title.textAlign === "right" ? "0 12px 0 0" : "0"}`)
297
297
  }, T(v.value ? v.value.period : e.value.style.title.text), 5)
298
298
  ], 4)) : f("", !0),
299
- (s(), c("svg", {
299
+ (n(), c("svg", {
300
300
  ref_key: "svgRef",
301
301
  ref: ne,
302
- xmlns: n(Ke),
302
+ xmlns: s(Ke),
303
303
  viewBox: `0 0 ${o.value.width} ${o.value.height}`,
304
304
  style: D(`background:${e.value.style.backgroundColor};overflow:visible`),
305
- onMouseleave: a[0] || (a[0] = (l) => $.value = void 0)
305
+ onMouseleave: t[0] || (t[0] = (l) => A.value = void 0)
306
306
  }, [
307
- Fe(n($e)),
308
- t.$slots["chart-background"] ? (s(), c("foreignObject", {
307
+ Fe(s($e)),
308
+ a.$slots["chart-background"] ? (n(), c("foreignObject", {
309
309
  key: 0,
310
310
  x: 0,
311
311
  y: 0,
@@ -315,8 +315,8 @@ const st = ["id"], nt = ["xmlns", "viewBox"], rt = ["width", "height"], it = ["i
315
315
  pointerEvents: "none"
316
316
  }
317
317
  }, [
318
- I(t.$slots, "chart-background", {}, void 0, !0)
319
- ], 8, rt)) : f("", !0),
318
+ S(a.$slots, "chart-background", {}, void 0, !0)
319
+ ], 8, ra)) : f("", !0),
320
320
  p("defs", null, [
321
321
  p("linearGradient", {
322
322
  x1: "0%",
@@ -327,13 +327,13 @@ const st = ["id"], nt = ["xmlns", "viewBox"], rt = ["width", "height"], it = ["i
327
327
  }, [
328
328
  p("stop", {
329
329
  offset: "0%",
330
- "stop-color": n(P)(n(W)(e.value.style.area.color, 0.05), e.value.style.area.opacity)
331
- }, null, 8, vt),
330
+ "stop-color": s(P)(s(W)(e.value.style.area.color, 0.05), e.value.style.area.opacity)
331
+ }, null, 8, va),
332
332
  p("stop", {
333
333
  offset: "100%",
334
- "stop-color": n(P)(e.value.style.area.color, e.value.style.area.opacity)
335
- }, null, 8, dt)
336
- ], 8, it),
334
+ "stop-color": s(P)(e.value.style.area.color, e.value.style.area.opacity)
335
+ }, null, 8, da)
336
+ ], 8, ia),
337
337
  p("linearGradient", {
338
338
  x2: "0%",
339
339
  y2: "100%",
@@ -342,12 +342,12 @@ const st = ["id"], nt = ["xmlns", "viewBox"], rt = ["width", "height"], it = ["i
342
342
  p("stop", {
343
343
  offset: "0%",
344
344
  "stop-color": e.value.style.bar.color
345
- }, null, 8, ht),
345
+ }, null, 8, ha),
346
346
  p("stop", {
347
347
  offset: "100%",
348
- "stop-color": n(W)(e.value.style.bar.color, 0.05)
349
- }, null, 8, ft)
350
- ], 8, ct),
348
+ "stop-color": s(W)(e.value.style.bar.color, 0.05)
349
+ }, null, 8, fa)
350
+ ], 8, ca),
351
351
  p("linearGradient", {
352
352
  x2: "0%",
353
353
  y2: "100%",
@@ -355,52 +355,52 @@ const st = ["id"], nt = ["xmlns", "viewBox"], rt = ["width", "height"], it = ["i
355
355
  }, [
356
356
  p("stop", {
357
357
  offset: "0%",
358
- "stop-color": n(W)(e.value.style.bar.color, 0.05)
359
- }, null, 8, pt),
358
+ "stop-color": s(W)(e.value.style.bar.color, 0.05)
359
+ }, null, 8, pa),
360
360
  p("stop", {
361
361
  offset: "100%",
362
362
  "stop-color": e.value.style.bar.color
363
- }, null, 8, gt)
364
- ], 8, yt)
363
+ }, null, 8, ga)
364
+ ], 8, ya)
365
365
  ]),
366
- e.value.style.area.show && !C.value && d.value[0] && d.value.length > 1 ? (s(), c("g", mt, [
367
- e.value.style.line.smooth ? (s(), c("path", {
366
+ e.value.style.area.show && !I.value && d.value[0] && d.value.length > 1 ? (n(), c("g", ma, [
367
+ e.value.style.line.smooth ? (n(), c("path", {
368
368
  key: 0,
369
- d: `M ${d.value[0].x},${i.value.bottom} ${n(_e)(d.value)} L ${d.value.at(-1).x},${i.value.bottom} Z`,
370
- fill: e.value.style.area.useGradient ? `url(#sparkline_gradient_${g.value})` : n(P)(e.value.style.area.color, e.value.style.area.opacity)
371
- }, null, 8, bt)) : (s(), c("path", {
369
+ d: `M ${d.value[0].x},${i.value.bottom} ${s(_e)(d.value)} L ${d.value.at(-1).x},${i.value.bottom} Z`,
370
+ fill: e.value.style.area.useGradient ? `url(#sparkline_gradient_${g.value})` : s(P)(e.value.style.area.color, e.value.style.area.opacity)
371
+ }, null, 8, ba)) : (n(), c("path", {
372
372
  key: 1,
373
373
  d: `M${Ve.value}Z`,
374
- fill: e.value.style.area.useGradient ? `url(#sparkline_gradient_${g.value})` : n(P)(e.value.style.area.color, e.value.style.area.opacity)
375
- }, null, 8, kt))
374
+ fill: e.value.style.area.useGradient ? `url(#sparkline_gradient_${g.value})` : s(P)(e.value.style.area.color, e.value.style.area.opacity)
375
+ }, null, 8, ka))
376
376
  ])) : f("", !0),
377
- e.value.style.line.smooth && !C.value ? (s(), c("path", {
377
+ e.value.style.line.smooth && !I.value ? (n(), c("path", {
378
378
  key: 2,
379
- d: `M ${n(_e)(d.value) || "0,0"}`,
379
+ d: `M ${s(_e)(d.value) || "0,0"}`,
380
380
  stroke: e.value.style.line.color,
381
381
  fill: "none",
382
382
  "stroke-width": e.value.style.line.strokeWidth,
383
383
  "stroke-linecap": "round"
384
- }, null, 8, xt)) : f("", !0),
385
- !e.value.style.line.smooth && !C.value ? (s(), c("path", {
384
+ }, null, 8, xa)) : f("", !0),
385
+ !e.value.style.line.smooth && !I.value ? (n(), c("path", {
386
386
  key: 3,
387
- d: `M ${n(He)(d.value) || "0,0"}`,
387
+ d: `M ${s(He)(d.value) || "0,0"}`,
388
388
  stroke: e.value.style.line.color,
389
389
  fill: "none",
390
390
  "stroke-width": e.value.style.line.strokeWidth,
391
391
  "stroke-linecap": "round"
392
- }, null, 8, _t)) : f("", !0),
393
- (s(!0), c(Q, null, ee(d.value, (l, u) => (s(), c("g", null, [
394
- C.value ? (s(), c("rect", {
392
+ }, null, 8, _a)) : f("", !0),
393
+ (n(!0), c(Q, null, ee(d.value, (l, u) => (n(), c("g", null, [
394
+ I.value ? (n(), c("rect", {
395
395
  key: 0,
396
396
  x: l.x - l.width / 2,
397
- y: isNaN(l.absoluteValue > 0 ? l.y : L.value) ? 0 : l.absoluteValue > 0 ? l.y : L.value,
397
+ y: isNaN(l.absoluteValue > 0 ? l.y : w.value) ? 0 : l.absoluteValue > 0 ? l.y : w.value,
398
398
  width: l.width,
399
- height: isNaN(Math.abs(l.y - L.value)) ? 0 : Math.abs(l.y - L.value),
399
+ height: isNaN(Math.abs(l.y - w.value)) ? 0 : Math.abs(l.y - w.value),
400
400
  fill: l.absoluteValue > 0 ? `url(#sparkline_bar_gradient_pos_${g.value})` : `url(#sparkline_bar_gradient_neg_${g.value})`,
401
401
  rx: e.value.style.bar.borderRadius
402
- }, null, 8, wt)) : f("", !0),
403
- e.value.style.verticalIndicator.show && (v.value && l.id === v.value.id || x.selectedIndex === u) ? (s(), c("line", {
402
+ }, null, 8, wa)) : f("", !0),
403
+ e.value.style.verticalIndicator.show && (v.value && l.id === v.value.id || $.selectedIndex === u) ? (n(), c("line", {
404
404
  key: 1,
405
405
  x1: l.x,
406
406
  x2: l.x,
@@ -410,21 +410,21 @@ const st = ["id"], nt = ["xmlns", "viewBox"], rt = ["width", "height"], it = ["i
410
410
  "stroke-width": e.value.style.verticalIndicator.strokeWidth,
411
411
  "stroke-linecap": "round",
412
412
  "stroke-dasharray": e.value.style.verticalIndicator.strokeDasharray || 0
413
- }, null, 8, Lt)) : f("", !0)
413
+ }, null, 8, La)) : f("", !0)
414
414
  ]))), 256)),
415
- q.value < 0 ? (s(), c("line", {
415
+ q.value < 0 ? (n(), c("line", {
416
416
  key: 4,
417
417
  x1: i.value.start,
418
418
  x2: i.value.start + i.value.width,
419
- y1: n(we)(L.value, i.value.bottom),
420
- y2: n(we)(L.value, i.value.bottom),
419
+ y1: s(we)(w.value, i.value.bottom),
420
+ y2: s(we)(w.value, i.value.bottom),
421
421
  stroke: e.value.style.zeroLine.color,
422
422
  "stroke-dasharray": e.value.style.zeroLine.strokeWidth * 2,
423
423
  "stroke-width": e.value.style.zeroLine.strokeWidth,
424
424
  "stroke-linecap": "round"
425
- }, null, 8, At)) : f("", !0),
426
- e.value.style.plot.show ? (s(!0), c(Q, { key: 5 }, ee(d.value, (l, u) => (s(), c("g", null, [
427
- v.value && l.id === v.value.id || x.selectedIndex === u || x.dataset.length === 1 ? (s(), c("circle", {
425
+ }, null, 8, Aa)) : f("", !0),
426
+ e.value.style.plot.show ? (n(!0), c(Q, { key: 5 }, ee(d.value, (l, u) => (n(), c("g", null, [
427
+ v.value && l.id === v.value.id || $.selectedIndex === u || s(N).length === 1 ? (n(), c("circle", {
428
428
  key: 0,
429
429
  cx: l.x,
430
430
  cy: l.y,
@@ -432,45 +432,45 @@ const st = ["id"], nt = ["xmlns", "viewBox"], rt = ["width", "height"], it = ["i
432
432
  fill: l.color,
433
433
  stroke: e.value.style.plot.stroke,
434
434
  "stroke-width": e.value.style.plot.strokeWidth
435
- }, null, 8, $t)) : f("", !0)
435
+ }, null, 8, $a)) : f("", !0)
436
436
  ]))), 256)) : f("", !0),
437
- x.showInfo && e.value.style.dataLabel.show ? (s(), c("text", {
437
+ $.showInfo && e.value.style.dataLabel.show ? (n(), c("text", {
438
438
  key: 6,
439
439
  x: e.value.style.dataLabel.position === "left" ? 12 + e.value.style.dataLabel.offsetX : i.value.width + 12 + e.value.style.dataLabel.offsetX,
440
440
  y: o.value.height / 2 + e.value.style.dataLabel.fontSize / 2.5 + e.value.style.dataLabel.offsetY,
441
441
  "font-size": e.value.style.dataLabel.fontSize,
442
442
  "font-weight": e.value.style.dataLabel.bold ? "bold" : "normal",
443
443
  fill: e.value.style.dataLabel.color
444
- }, T(v.value ? n(ae)(
444
+ }, T(v.value ? s(te)(
445
445
  e.value.style.dataLabel.formatter,
446
446
  v.value.absoluteValue,
447
- n(le)({ p: e.value.style.dataLabel.prefix, v: v.value.absoluteValue, s: e.value.style.dataLabel.suffix, r: e.value.style.dataLabel.roundingValue }),
447
+ s(le)({ p: e.value.style.dataLabel.prefix, v: v.value.absoluteValue, s: e.value.style.dataLabel.suffix, r: e.value.style.dataLabel.roundingValue }),
448
448
  { datapoint: v.value }
449
- ) : n(ae)(
449
+ ) : s(te)(
450
450
  e.value.style.dataLabel.formatter,
451
451
  de.value,
452
- n(le)({ p: e.value.style.dataLabel.prefix, v: de.value, s: e.value.style.dataLabel.suffix, r: e.value.style.dataLabel.roundingValue })
453
- )), 9, Nt)) : f("", !0),
454
- (s(!0), c(Q, null, ee(d.value, (l, u) => (s(), c("rect", {
455
- x: l.x - (i.value.width / (A.value + 1) > o.value.padding ? o.value.padding : i.value.width / (A.value + 1)) / 2,
452
+ s(le)({ p: e.value.style.dataLabel.prefix, v: de.value, s: e.value.style.dataLabel.suffix, r: e.value.style.dataLabel.roundingValue })
453
+ )), 9, Na)) : f("", !0),
454
+ (n(!0), c(Q, null, ee(d.value, (l, u) => (n(), c("rect", {
455
+ x: l.x - (i.value.width / (L.value + 1) > o.value.padding ? o.value.padding : i.value.width / (L.value + 1)) / 2,
456
456
  y: i.value.top - 6,
457
457
  height: i.value.height + 6,
458
- width: i.value.width / (A.value + 1) > o.value.padding ? o.value.padding : i.value.width / (A.value + 1),
458
+ width: i.value.width / (L.value + 1) > o.value.padding ? o.value.padding : i.value.width / (L.value + 1),
459
459
  fill: "transparent",
460
460
  onMouseenter: () => ze(l, u),
461
461
  onMouseleave: () => De(l, u),
462
462
  onClick: () => Te(l, u)
463
- }, null, 40, Mt))), 256)),
464
- I(t.$slots, "svg", { svg: o.value }, void 0, !0)
465
- ], 44, nt)),
466
- v.value && e.value.style.tooltip.show ? (s(), pe(n(Ne), {
463
+ }, null, 40, Ma))), 256)),
464
+ S(a.$slots, "svg", { svg: o.value }, void 0, !0)
465
+ ], 44, na)),
466
+ v.value && e.value.style.tooltip.show ? (n(), pe(s(Ne), {
467
467
  key: 1,
468
468
  x: v.value.x,
469
469
  y: v.value.y,
470
- prevX: $.value.x,
471
- prevY: $.value.y,
470
+ prevX: A.value.x,
471
+ prevY: A.value.y,
472
472
  offsetY: e.value.style.plot.radius * 3 + e.value.style.tooltip.offsetY,
473
- svgRef: n(ne),
473
+ svgRef: s(ne),
474
474
  background: e.value.style.tooltip.backgroundColor,
475
475
  color: e.value.style.tooltip.color,
476
476
  fontSize: e.value.style.tooltip.fontSize,
@@ -480,11 +480,11 @@ const st = ["id"], nt = ["xmlns", "viewBox"], rt = ["width", "height"], it = ["i
480
480
  backgroundOpacity: e.value.style.tooltip.backgroundOpacity
481
481
  }, {
482
482
  default: Ee(() => [
483
- I(t.$slots, "tooltip", ge(me({ ...v.value })), () => [
484
- Oe(T(v.value.period) + ": " + T(n(ae)(
483
+ S(a.$slots, "tooltip", ge(me({ ...v.value })), () => [
484
+ Oe(T(v.value.period) + ": " + T(s(te)(
485
485
  e.value.style.dataLabel.formatter,
486
486
  v.value.absoluteValue,
487
- n(le)({
487
+ s(le)({
488
488
  p: e.value.style.dataLabel.prefix,
489
489
  v: v.value.absoluteValue,
490
490
  s: e.value.style.dataLabel.suffix,
@@ -496,18 +496,18 @@ const st = ["id"], nt = ["xmlns", "viewBox"], rt = ["width", "height"], it = ["i
496
496
  ]),
497
497
  _: 3
498
498
  }, 8, ["x", "y", "prevX", "prevY", "offsetY", "svgRef", "background", "color", "fontSize", "borderWidth", "borderColor", "borderRadius", "backgroundOpacity"])) : f("", !0),
499
- t.$slots.source ? (s(), c("div", {
499
+ a.$slots.source ? (n(), c("div", {
500
500
  key: 2,
501
501
  ref_key: "source",
502
502
  ref: se,
503
503
  dir: "auto"
504
504
  }, [
505
- I(t.$slots, "source", {}, void 0, !0)
505
+ S(a.$slots, "source", {}, void 0, !0)
506
506
  ], 512)) : f("", !0),
507
- n(F) ? (s(), pe(lt, { key: 3 })) : f("", !0)
508
- ], 12, st));
507
+ s(F) ? (n(), pe(la, { key: 3 })) : f("", !0)
508
+ ], 12, sa));
509
509
  }
510
- }, Rt = /* @__PURE__ */ ot(Ct, [["__scopeId", "data-v-12334391"]]);
510
+ }, Ra = /* @__PURE__ */ oa(Ca, [["__scopeId", "data-v-9bb1ae10"]]);
511
511
  export {
512
- Rt as default
512
+ Ra as default
513
513
  };
@@ -1,6 +1,6 @@
1
1
  import { defineAsyncComponent as X, useSlots as be, onMounted as J, ref as v, toRefs as ke, watch as K, computed as $, createElementBlock as r, openBlock as s, normalizeStyle as p, createCommentVNode as f, createVNode as Q, createBlock as _e, createElementVNode as d, toDisplayString as F, unref as c, Fragment as k, renderList as A, normalizeClass as N, withCtx as Z, renderSlot as R, normalizeProps as ee, guardReactiveProps as te } from "vue";
2
- import { u as xe, c as le, t as we, a as Ce, p as i, b as $e, e as D, d as Se, o as Fe, f as oe, g as Ae, i as U, X as De, s as ae, x as se, k as re, y as Ie } from "./index-D6OjIQeq.js";
3
- import { u as ne } from "./useNestedProp-QUe0ze7N.js";
2
+ import { u as xe, c as le, t as we, a as Ce, p as i, b as $e, e as D, d as Se, o as Fe, f as oe, g as Ae, i as U, X as De, s as ae, x as se, k as re, y as Ie } from "./index-smzxfsyV.js";
3
+ import { u as ne } from "./useNestedProp-DeKmJzsE.js";
4
4
  import { u as Pe } from "./useChartAccessibility-9icAAmYg.js";
5
5
  import { u as ze, B as Be } from "./BaseScanner-BgWxam9d.js";
6
6
  import { _ as Le } from "./_plugin-vue_export-helper-CHgC5LLL.js";
@@ -32,7 +32,7 @@ const Ne = ["xmlns", "viewBox"], Te = ["id"], Ee = ["stop-color"], Me = ["stop-c
32
32
  },
33
33
  emits: ["selectDatapoint"],
34
34
  setup(ue, { emit: ie }) {
35
- const ce = X(() => import("./PackageVersion-BSXHahdf.js")), de = X(() => import("./Tooltip-BAx7Btsw.js")), { vue_ui_sparkstackbar: ve } = xe(), _ = ue, pe = be();
35
+ const ce = X(() => import("./PackageVersion-BzGzkGiC.js")), de = X(() => import("./Tooltip-Db9jy0Iu.js")), { vue_ui_sparkstackbar: ve } = xe(), _ = ue, pe = be();
36
36
  J(() => {
37
37
  pe["chart-background"] && console.warn("VueUiSparkStackbar does not support the #chart-background slot.");
38
38
  });