vue-data-ui 3.0.2 → 3.0.3

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 (90) hide show
  1. package/dist/{Arrow-uNlT54JX.js → Arrow-CUUMjZed.js} +1 -1
  2. package/dist/{BaseDraggableDialog-CujvKo06.js → BaseDraggableDialog-DgADqZE_.js} +2 -2
  3. package/dist/{BaseIcon-B8CknCYk.js → BaseIcon-DLm6QTwr.js} +1 -1
  4. package/dist/{ColorPicker-Dmdfq2VV.js → ColorPicker-Crz_B792.js} +2 -2
  5. package/dist/{DataTable-osx68WLA.js → DataTable-CWzb1j8d.js} +2 -2
  6. package/dist/{Legend-CQsASoei.js → Legend-CevCqVZ5.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-BWz0WtJG.js → NonSvgPenAndPaper-DOG92bzo.js} +3 -3
  8. package/dist/{PackageVersion-DZGrOKw5.js → PackageVersion-n4qokxnx.js} +1 -1
  9. package/dist/{PenAndPaper-CdXspg5R.js → PenAndPaper-C_R9vJkU.js} +3 -3
  10. package/dist/{Shape-0sW2StrO.js → Shape-BHVN6hj0.js} +1 -1
  11. package/dist/{Slicer-52shR-Vu.js → Slicer-BBjJsLlJ.js} +2 -2
  12. package/dist/{SparkTooltip-Dxrruu4s.js → SparkTooltip-BHlSggBm.js} +1 -1
  13. package/dist/{Title-CntvKJss.js → Title-CINHji0n.js} +1 -1
  14. package/dist/{Tooltip-DF8e4iB9.js → Tooltip-hfdFRoLp.js} +1 -1
  15. package/dist/{UserOptions-DQyIO0ts.js → UserOptions-r0epwyXR.js} +2 -2
  16. package/dist/{dom-to-png-KC3tMd8p.js → dom-to-png-m7MwDfMh.js} +1 -1
  17. package/dist/{img-Cv4nScI0.js → img-CBdOMFyn.js} +1 -1
  18. package/dist/{index-B9Ct1B_p.js → index-DrRiscPm.js} +908 -871
  19. package/dist/{pdf-D0GEfQrI.js → pdf-CITAFtf8.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +23 -0
  22. package/dist/types/vue-data-ui.d.ts +23 -0
  23. package/dist/{useAutoSizeLabelsInsideViewbox-DvdDLkzw.js → useAutoSizeLabelsInsideViewbox-C0d8h29h.js} +1 -1
  24. package/dist/{useNestedProp-C0gKxLur.js → useNestedProp-BXhArS-K.js} +1 -1
  25. package/dist/{usePrinter-DcZXg1hH.js → usePrinter-CZk2ISUm.js} +2 -2
  26. package/dist/{vue-data-ui-DZMDT7RA.js → vue-data-ui-omyV52aJ.js} +64 -64
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-BnCv2CD_.js → vue-ui-3d-bar-ByS7XX4A.js} +6 -6
  29. package/dist/{vue-ui-accordion-B31QK9Hj.js → vue-ui-accordion-s_m_NJzJ.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-Bc4V0a3k.js → vue-ui-age-pyramid-BJRjKF9G.js} +6 -6
  31. package/dist/{vue-ui-annotator-D8haGQiH.js → vue-ui-annotator-BcdnqcBy.js} +2 -2
  32. package/dist/{vue-ui-bullet-n7Y6jYLj.js → vue-ui-bullet-D82pT7tL.js} +199 -186
  33. package/dist/{vue-ui-candlestick-nCI5GlX7.js → vue-ui-candlestick-ThIDj7Q5.js} +7 -7
  34. package/dist/{vue-ui-carousel-table-JH2NjnOk.js → vue-ui-carousel-table-BHOAO0Gj.js} +4 -4
  35. package/dist/{vue-ui-chestnut-CQtV9AR4.js → vue-ui-chestnut-3sjb4gzU.js} +5 -5
  36. package/dist/{vue-ui-chord-CGi_iSaL.js → vue-ui-chord-CfVEqNV6.js} +377 -366
  37. package/dist/{vue-ui-circle-pack-C8v3Okle.js → vue-ui-circle-pack-u4ABWUZI.js} +6 -6
  38. package/dist/{vue-ui-cursor-0DHciy1D.js → vue-ui-cursor-ByfhuSzG.js} +2 -2
  39. package/dist/{vue-ui-dashboard-CDHJk8sC.js → vue-ui-dashboard-CBCck-UI.js} +62 -62
  40. package/dist/{vue-ui-digits-Bn1P1K9u.js → vue-ui-digits-BU-8e-1s.js} +2 -2
  41. package/dist/{vue-ui-donut-evolution-Crn7Nnpy.js → vue-ui-donut-evolution-B4lDDX7G.js} +388 -377
  42. package/dist/{vue-ui-donut-GqHffshG.js → vue-ui-donut-g5x3IpMV.js} +345 -334
  43. package/dist/{vue-ui-dumbbell-C__nFV3V.js → vue-ui-dumbbell-BJ8qcUud.js} +354 -343
  44. package/dist/{vue-ui-flow-7q9o4Jxp.js → vue-ui-flow-CRwGogHq.js} +299 -288
  45. package/dist/{vue-ui-funnel-DjmlAdRf.js → vue-ui-funnel-DzF_UOAJ.js} +6 -6
  46. package/dist/{vue-ui-galaxy-Crh7xV6s.js → vue-ui-galaxy-BqunXfkx.js} +252 -241
  47. package/dist/{vue-ui-gauge-PjjV3JmB.js → vue-ui-gauge-DPjvYyeF.js} +7 -7
  48. package/dist/{vue-ui-gizmo-DREMjBvZ.js → vue-ui-gizmo-CU7HsWOV.js} +3 -3
  49. package/dist/{vue-ui-heatmap-D2CF8Vn8.js → vue-ui-heatmap-CFh-br8X.js} +7 -7
  50. package/dist/{vue-ui-history-plot-DX31nVYa.js → vue-ui-history-plot-OdhJu988.js} +283 -270
  51. package/dist/{vue-ui-kpi-FtnzfW7L.js → vue-ui-kpi-CVp3sMeg.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-DaHPhzVf.js → vue-ui-mini-loader-LtGcTTh2.js} +2 -2
  53. package/dist/{vue-ui-molecule--4MdUCOi.js → vue-ui-molecule-DklqwI8c.js} +5 -5
  54. package/dist/{vue-ui-mood-radar-Ci416qv5.js → vue-ui-mood-radar-CGuHZngw.js} +264 -253
  55. package/dist/{vue-ui-nested-donuts-DoVSN0qE.js → vue-ui-nested-donuts-CHrryP89.js} +377 -366
  56. package/dist/{vue-ui-onion-ChqyoLl8.js → vue-ui-onion-n74T6frI.js} +265 -254
  57. package/dist/{vue-ui-parallel-coordinate-plot-BPsH_W7X.js → vue-ui-parallel-coordinate-plot-DtQi0qWp.js} +276 -265
  58. package/dist/{vue-ui-quadrant-CLQqKyzu.js → vue-ui-quadrant-CZn3Ab1f.js} +356 -345
  59. package/dist/{vue-ui-quick-chart-DogHdO42.js → vue-ui-quick-chart-CUBOj0Y6.js} +639 -628
  60. package/dist/{vue-ui-radar-B4rGvzKn.js → vue-ui-radar-BAazL3Qv.js} +254 -243
  61. package/dist/{vue-ui-rating-BvopSHNQ.js → vue-ui-rating-CPa7MotU.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-C6GEmCiw.js → vue-ui-relation-circle-g6pCa6y9.js} +7 -7
  63. package/dist/{vue-ui-ridgeline-BJVJ02bA.js → vue-ui-ridgeline-C_Mpseru.js} +8 -8
  64. package/dist/{vue-ui-rings-BRTxWhKI.js → vue-ui-rings-grCm0xEc.js} +250 -239
  65. package/dist/{vue-ui-scatter-D_BP7XBR.js → vue-ui-scatter-CEr615c-.js} +383 -372
  66. package/dist/{vue-ui-skeleton-C_nf6VDZ.js → vue-ui-skeleton-BaqJKjqR.js} +3 -3
  67. package/dist/{vue-ui-smiley-DHCpzxMs.js → vue-ui-smiley-DyIfQ5KW.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DfM5OJIx.js → vue-ui-spark-trend-CqVF6MXT.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-BrvOwqG_.js → vue-ui-sparkbar-DwSd_DZu.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-Dp2OkGrS.js → vue-ui-sparkgauge-Bm4UGamr.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-K_7q57W8.js → vue-ui-sparkhistogram-DTZK4gCA.js} +4 -4
  72. package/dist/{vue-ui-sparkline-BiEu6kq8.js → vue-ui-sparkline-DGfIevXQ.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-BNlyxt3y.js → vue-ui-sparkstackbar-RT_LpLKL.js} +3 -3
  74. package/dist/{vue-ui-stackbar-BKb_dgUq.js → vue-ui-stackbar-9Yxdd7ko.js} +443 -432
  75. package/dist/{vue-ui-strip-plot-D6dwyO-N.js → vue-ui-strip-plot--2bdwjUL.js} +7 -7
  76. package/dist/{vue-ui-table-B9UWta9o.js → vue-ui-table-BSNxwgTV.js} +4 -9
  77. package/dist/{vue-ui-table-heatmap-JkwDydPq.js → vue-ui-table-heatmap-BaK9FRE1.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-BOKgPT0e.js → vue-ui-table-sparkline-Dbi7H7Xb.js} +4 -4
  79. package/dist/{vue-ui-thermometer-Dj0CVTk3.js → vue-ui-thermometer-9EIYVN0g.js} +7 -7
  80. package/dist/{vue-ui-timer-B407nCRd.js → vue-ui-timer-OH8HQjpu.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-C_betH5B.js → vue-ui-tiremarks-D6JpH-vv.js} +6 -6
  82. package/dist/{vue-ui-treemap-D0gScsaQ.js → vue-ui-treemap-DqEQgjj-.js} +356 -345
  83. package/dist/{vue-ui-vertical-bar-D3aoix_0.js → vue-ui-vertical-bar-BfnMDmGN.js} +9 -9
  84. package/dist/{vue-ui-waffle-hpsuszbt.js → vue-ui-waffle-BJu7n_i7.js} +306 -295
  85. package/dist/{vue-ui-wheel-0etwsu-o.js → vue-ui-wheel-KDWfx0os.js} +6 -6
  86. package/dist/{vue-ui-word-cloud-tsEprRhX.js → vue-ui-word-cloud-Dcg3uI2O.js} +6 -6
  87. package/dist/{vue-ui-world-BCtGvXjy.js → vue-ui-world-SYtMz1jo.js} +343 -329
  88. package/dist/{vue-ui-xy-canvas-B1s9twtZ.js → vue-ui-xy-canvas-BGJg2doK.js} +305 -294
  89. package/dist/{vue-ui-xy-BoT_c9bU.js → vue-ui-xy-qzB1oN1A.js} +1356 -1345
  90. package/package.json +1 -1
@@ -1,143 +1,143 @@
1
- import { defineAsyncComponent as $e, ref as w, computed as N, toRefs as ta, watch as Ie, shallowRef as $t, onMounted as aa, onBeforeUnmount as It, nextTick as Et, watchEffect as la, createElementBlock as o, openBlock as l, normalizeStyle as O, normalizeClass as ce, createBlock as qe, createCommentVNode as g, createVNode as ke, unref as r, createSlots as oa, withCtx as K, renderSlot as U, normalizeProps as he, guardReactiveProps as fe, toDisplayString as F, createElementVNode as z, Fragment as p, renderList as I, mergeProps as et } from "vue";
2
- import { u as na, c as ia, t as ua, a as ra, p as j, b as sa, C as We, d as va, G as da, f as ca, o as ha, e as tt, m as fa, D as Pt, X as ga, n as ma, q as at, r as Ee, k as ee, i as W, I as Tt, V as Ot, h as te, y as Xe, z as lt } from "./index-B9Ct1B_p.js";
3
- import { t as Rt, u as pa } from "./useResponsive-DfdjqQps.js";
4
- import { u as xa } from "./usePrinter-DcZXg1hH.js";
5
- import { u as Mt } from "./useNestedProp-C0gKxLur.js";
6
- import { u as ya } from "./useTimeLabels-DkzmKfZn.js";
7
- import { u as ka } from "./useChartAccessibility-9icAAmYg.js";
8
- import { u as ba } from "./useTimeLabelCollider-CIsgDrl9.js";
9
- import Sa from "./img-Cv4nScI0.js";
10
- import { S as wa } from "./Slicer-52shR-Vu.js";
11
- import { u as Aa, B as La } from "./useLoading-D7YHNtLX.js";
12
- import { _ as _a } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
- const _ = {
1
+ import { defineAsyncComponent as $e, ref as w, computed as N, toRefs as aa, watch as Ie, shallowRef as It, onMounted as la, onBeforeUnmount as Et, nextTick as Tt, watchEffect as oa, createElementBlock as o, openBlock as a, normalizeStyle as O, normalizeClass as ce, createBlock as Ee, createCommentVNode as g, createElementVNode as L, createVNode as ke, unref as r, createSlots as na, withCtx as ee, renderSlot as U, normalizeProps as he, guardReactiveProps as fe, toDisplayString as F, Fragment as p, renderList as I, Teleport as ia, mergeProps as et } from "vue";
2
+ import { u as ua, c as ra, t as sa, a as va, p as G, b as da, C as We, d as ca, G as ha, f as fa, o as ga, e as tt, m as ma, D as Pt, X as pa, n as xa, q as at, r as Te, k as te, i as W, I as Ot, V as Rt, h as ae, y as Xe, z as lt } from "./index-DrRiscPm.js";
3
+ import { t as Mt, u as ya } from "./useResponsive-DfdjqQps.js";
4
+ import { u as ka } from "./usePrinter-CZk2ISUm.js";
5
+ import { u as Ft } from "./useNestedProp-BXhArS-K.js";
6
+ import { u as ba } from "./useTimeLabels-DkzmKfZn.js";
7
+ import { u as Sa } from "./useChartAccessibility-9icAAmYg.js";
8
+ import { u as wa } from "./useTimeLabelCollider-CIsgDrl9.js";
9
+ import Aa from "./img-CBdOMFyn.js";
10
+ import { S as La } from "./Slicer-BBjJsLlJ.js";
11
+ import { u as _a, B as za } from "./useLoading-D7YHNtLX.js";
12
+ import { _ as Ca } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
+ const z = {
14
14
  LINE: "LINE",
15
15
  BAR: "BAR",
16
16
  DONUT: "DONUT"
17
- }, za = ["SERIE", "SERIES", "DATA", "VALUE", "VALUES", "NUM"];
18
- function Ca({ dataset: h, barLineSwitch: T = 6, debug: S = !0 }) {
19
- let B = null, H = null, le = 0;
20
- if ((typeof h == "number" || typeof h == "string") && S && console.warn(`The provided dataset (${h}) is not sufficient to build a chart`), Pe(h) && (ae(h) && (h.length < T ? B = _.BAR : B = _.LINE, H = h, le = h.length), je(h))) {
21
- if (!Ia(h))
17
+ }, $a = ["SERIE", "SERIES", "DATA", "VALUE", "VALUES", "NUM"];
18
+ function Ia({ dataset: h, barLineSwitch: P = 6, debug: S = !0 }) {
19
+ let B = null, H = null, oe = 0;
20
+ if ((typeof h == "number" || typeof h == "string") && S && console.warn(`The provided dataset (${h}) is not sufficient to build a chart`), Pe(h) && (le(h) && (h.length < P ? B = z.BAR : B = z.LINE, H = h, oe = h.length), je(h))) {
21
+ if (!Ta(h))
22
22
  return S && console.warn("The objects in the dataset array have a different data structure. Either keys or value types are different."), !1;
23
23
  const Se = Object.keys(h[0]), M = Object.values(h[0]);
24
- if (!Se.some((R) => Ea(R)))
24
+ if (!Se.some((R) => Pa(R)))
25
25
  return S && console.warn("The data type of the dataset objects in the array must contain one of the following keys: DATA, SERIES, VALUE, VALUES, NUM. Casing is not important."), !1;
26
- Ft(M, (R) => typeof R == "number") && (B = _.DONUT, H = h), Ft(M, (R) => Array.isArray(R) && ae(R)) && (Nt(h) > T ? B = _.LINE : B = _.BAR, le = Nt(h), H = h.map((R) => ({
26
+ Nt(M, (R) => typeof R == "number") && (B = z.DONUT, H = h), Nt(M, (R) => Array.isArray(R) && le(R)) && (Bt(h) > P ? B = z.LINE : B = z.BAR, oe = Bt(h), H = h.map((R) => ({
27
27
  ...R,
28
- data: Pa(R, (Te) => ae(Te))
29
- }))), h = h.map((R) => Bt(R)), H = H.map((R) => Bt(R));
28
+ data: Oa(R, (Oe) => le(Oe))
29
+ }))), h = h.map((R) => Dt(R)), H = H.map((R) => Dt(R));
30
30
  }
31
31
  return Pe(h) && [...new Set(h.flatMap((Se) => Array.isArray(Se)))][0], {
32
32
  dataset: h,
33
33
  type: B,
34
34
  usableDataset: H,
35
- maxSeriesLength: le
35
+ maxSeriesLength: oe
36
36
  };
37
37
  }
38
- function Dt(h) {
38
+ function Ut(h) {
39
39
  return !h || Pe(h) && !h.length;
40
40
  }
41
41
  function Pe(h) {
42
42
  return Array.isArray(h);
43
43
  }
44
- function ae(h) {
45
- if (!Pe(h) || Dt(h)) return !1;
46
- const T = h.map((S) => Number(S));
47
- return ![...new Set(T.flatMap((S) => typeof S == "number" && !isNaN(S)))].includes(!1);
44
+ function le(h) {
45
+ if (!Pe(h) || Ut(h)) return !1;
46
+ const P = h.map((S) => Number(S));
47
+ return ![...new Set(P.flatMap((S) => typeof S == "number" && !isNaN(S)))].includes(!1);
48
48
  }
49
49
  function je(h) {
50
- return !Pe(h) || Dt(h) || !![...new Set(h.flatMap((S) => typeof S == "object" && !Array.isArray(S)))].includes(!1) ? !1 : !h.map((S) => Object.keys(S).length > 0).includes(!1);
50
+ return !Pe(h) || Ut(h) || !![...new Set(h.flatMap((S) => typeof S == "object" && !Array.isArray(S)))].includes(!1) ? !1 : !h.map((S) => Object.keys(S).length > 0).includes(!1);
51
51
  }
52
- function $a(h, T) {
53
- const S = Object.keys(h).sort(), B = Object.keys(T).sort();
52
+ function Ea(h, P) {
53
+ const S = Object.keys(h).sort(), B = Object.keys(P).sort();
54
54
  if (S.length !== B.length)
55
55
  return !1;
56
56
  for (let H = 0; H < S.length; H += 1) {
57
- const le = S[H], be = B[H];
58
- if (le !== be || typeof h[le] != typeof T[be])
57
+ const oe = S[H], be = B[H];
58
+ if (oe !== be || typeof h[oe] != typeof P[be])
59
59
  return !1;
60
60
  }
61
61
  return !0;
62
62
  }
63
- function Ia(h) {
63
+ function Ta(h) {
64
64
  if (h.length <= 1) return !0;
65
- for (let T = 0; T < h.length; T += 1)
66
- for (let S = T + 1; S < h.length; S += 1)
67
- if (!$a(h[T], h[S]))
65
+ for (let P = 0; P < h.length; P += 1)
66
+ for (let S = P + 1; S < h.length; S += 1)
67
+ if (!Ea(h[P], h[S]))
68
68
  return !1;
69
69
  return !0;
70
70
  }
71
- function Ea(h) {
72
- return za.includes(h.toUpperCase());
71
+ function Pa(h) {
72
+ return $a.includes(h.toUpperCase());
73
73
  }
74
- function Ft(h, T) {
74
+ function Nt(h, P) {
75
75
  let S = [];
76
76
  for (let B = 0; B < h.length; B += 1)
77
- S.push(T(h[B]));
77
+ S.push(P(h[B]));
78
78
  return S.includes(!0);
79
79
  }
80
- function Nt(h) {
81
- return Math.max(...[...h].flatMap((T) => Object.values(T).filter((S) => ae(S)).map((S) => S.length)));
80
+ function Bt(h) {
81
+ return Math.max(...[...h].flatMap((P) => Object.values(P).filter((S) => le(S)).map((S) => S.length)));
82
82
  }
83
- function Pa(h, T) {
84
- return Object.values(h).filter((S) => T(S))[0];
83
+ function Oa(h, P) {
84
+ return Object.values(h).filter((S) => P(S))[0];
85
85
  }
86
- function Bt(h) {
87
- const T = {};
86
+ function Dt(h) {
87
+ const P = {};
88
88
  for (let S in h)
89
- h.hasOwnProperty(S) && (T[S.toUpperCase()] = h[S]);
90
- return T;
89
+ h.hasOwnProperty(S) && (P[S.toUpperCase()] = h[S]);
90
+ return P;
91
91
  }
92
- const Ta = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"], Ma = ["x", "y", "width", "height"], Fa = ["width", "height"], Na = ["id"], Ba = ["id"], Da = ["id"], Ua = ["flood-color"], Va = {
92
+ const Ra = ["id"], Ma = ["id"], Fa = ["xmlns", "viewBox"], Na = ["x", "y", "width", "height"], Ba = ["x", "y", "width", "height"], Da = ["width", "height"], Ua = ["id"], Va = ["id"], Ha = ["id"], qa = ["flood-color"], Wa = {
93
93
  key: 0,
94
94
  class: "donut-label-connectors"
95
- }, Ha = ["d", "stroke", "stroke-width", "filter"], qa = ["cx", "cy", "r", "fill", "filter"], Wa = { class: "donut" }, Xa = ["d", "fill", "stroke", "stroke-width", "filter"], ja = ["d", "onMouseenter", "onMouseout", "onClick"], Ga = {
95
+ }, Xa = ["d", "stroke", "stroke-width", "filter"], ja = ["cx", "cy", "r", "fill", "filter"], Ga = { class: "donut" }, Ya = ["d", "fill", "stroke", "stroke-width", "filter"], Za = ["d", "onMouseenter", "onMouseout", "onClick"], Ja = {
96
96
  key: 1,
97
97
  class: "donut-labels quick-animation"
98
- }, Ya = ["cx", "cy", "fill", "stroke", "filter"], Za = ["text-anchor", "x", "y", "fill", "font-size", "filter"], Ja = ["text-anchor", "x", "y", "fill", "font-size", "filter"], Qa = {
98
+ }, Qa = ["cx", "cy", "fill", "stroke", "filter"], Ka = ["text-anchor", "x", "y", "fill", "font-size", "filter"], el = ["text-anchor", "x", "y", "fill", "font-size", "filter"], tl = {
99
99
  key: 2,
100
100
  class: "donut-hollow quick-animation"
101
- }, Ka = ["x", "y", "font-size", "fill"], el = ["x", "y", "font-size", "fill"], tl = {
101
+ }, al = ["x", "y", "font-size", "fill"], ll = ["x", "y", "font-size", "fill"], ol = {
102
102
  key: 0,
103
103
  class: "line-grid"
104
- }, al = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ll = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ol = {
104
+ }, nl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], il = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ul = {
105
105
  key: 1,
106
106
  class: "line-axis"
107
- }, nl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], il = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ul = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], rl = ["x", "y", "font-size", "fill"], sl = {
107
+ }, rl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], sl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], vl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], dl = ["x", "y", "font-size", "fill"], cl = {
108
108
  key: 3,
109
109
  class: "periodLabels"
110
- }, vl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], dl = { key: 0 }, cl = ["font-size", "text-anchor", "fill", "transform"], hl = ["font-size", "text-anchor", "fill", "transform", "innerHTML"], fl = { class: "plots" }, gl = { class: "line-plot-series" }, ml = ["d", "stroke", "stroke-width"], pl = ["d", "stroke", "stroke-width"], xl = ["d", "stroke", "stroke-width"], yl = ["d", "stroke", "stroke-width"], kl = ["cx", "cy", "fill", "stroke"], bl = {
110
+ }, hl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], fl = { key: 0 }, gl = ["font-size", "text-anchor", "fill", "transform"], ml = ["font-size", "text-anchor", "fill", "transform", "innerHTML"], pl = { class: "plots" }, xl = { class: "line-plot-series" }, yl = ["d", "stroke", "stroke-width"], kl = ["d", "stroke", "stroke-width"], bl = ["d", "stroke", "stroke-width"], Sl = ["d", "stroke", "stroke-width"], wl = ["cx", "cy", "fill", "stroke"], Al = {
111
111
  key: 4,
112
112
  class: "dataLabels"
113
- }, Sl = ["font-size", "fill", "x", "y"], wl = {
113
+ }, Ll = ["font-size", "fill", "x", "y"], _l = {
114
114
  key: 5,
115
115
  class: "tooltip-traps"
116
- }, Al = ["x", "y", "height", "width", "fill", "onMouseenter", "onMouseleave", "onClick"], Ll = {
116
+ }, zl = ["x", "y", "height", "width", "fill", "onMouseenter", "onMouseleave", "onClick"], Cl = {
117
117
  key: 0,
118
118
  class: "line-grid"
119
- }, _l = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], zl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Cl = {
119
+ }, $l = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Il = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], El = {
120
120
  key: 1,
121
121
  class: "line-axis"
122
- }, $l = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Il = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], El = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Pl = ["x", "y", "font-size", "fill"], Tl = {
122
+ }, Tl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Pl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ol = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Rl = ["x", "y", "font-size", "fill"], Ml = {
123
123
  key: 3,
124
124
  class: "periodLabels"
125
- }, Ol = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Rl = { key: 0 }, Ml = ["font-size", "text-anchor", "fill", "transform"], Fl = ["font-size", "text-anchor", "fill", "transform", "innerHTML"], Nl = { class: "plots" }, Bl = ["x", "width", "height", "y", "fill", "stroke", "stroke-width"], Dl = ["to"], Ul = ["from", "to"], Vl = {
125
+ }, Fl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Nl = { key: 0 }, Bl = ["font-size", "text-anchor", "fill", "transform"], Dl = ["font-size", "text-anchor", "fill", "transform", "innerHTML"], Ul = { class: "plots" }, Vl = ["x", "width", "height", "y", "fill", "stroke", "stroke-width"], Hl = ["to"], ql = ["from", "to"], Wl = {
126
126
  key: 4,
127
127
  class: "dataLabels"
128
- }, Hl = ["x", "y", "font-size", "fill"], ql = {
128
+ }, Xl = ["x", "y", "font-size", "fill"], jl = {
129
129
  key: 5,
130
130
  class: "tooltip-traps"
131
- }, Wl = ["x", "y", "height", "width", "fill", "onMouseenter", "onMouseleave", "onClick"], Xl = {
131
+ }, Gl = ["x", "y", "height", "width", "fill", "onMouseenter", "onMouseleave", "onClick"], Yl = {
132
132
  key: 6,
133
133
  class: "axis-labels"
134
- }, jl = ["font-size", "fill", "x", "y"], Gl = ["font-size", "fill", "x", "y"], Yl = ["font-size", "fill", "transform"], Zl = ["font-size", "fill", "transform"], Jl = {
134
+ }, Zl = ["font-size", "fill", "x", "y"], Jl = ["font-size", "fill", "x", "y"], Ql = ["font-size", "fill", "transform"], Kl = ["font-size", "fill", "transform"], eo = {
135
135
  key: 5,
136
136
  class: "vue-data-ui-watermark"
137
- }, Ql = ["onClick"], Kl = ["onClick"], eo = ["onClick"], to = {
137
+ }, to = ["id"], ao = ["onClick"], lo = ["onClick"], oo = ["onClick"], no = {
138
138
  key: 1,
139
139
  class: "vue-ui-quick-chart-not-processable"
140
- }, ao = {
140
+ }, io = {
141
141
  __name: "vue-ui-quick-chart",
142
142
  props: {
143
143
  config: {
@@ -154,13 +154,13 @@ const Ta = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
154
154
  }
155
155
  },
156
156
  emits: ["selectDatapoint", "selectLegend"],
157
- setup(h, { expose: T, emit: S }) {
158
- const B = $e(() => import("./BaseIcon-B8CknCYk.js")), H = $e(() => import("./PackageVersion-DZGrOKw5.js")), le = $e(() => import("./PenAndPaper-CdXspg5R.js")), be = $e(() => import("./Tooltip-DF8e4iB9.js")), ot = $e(() => import("./UserOptions-DQyIO0ts.js")), { vue_ui_quick_chart: Se } = na(), M = h, R = w(null), Te = w(null), nt = w(null), it = w(null), oe = w(ia()), re = w(!1), we = w(null), se = w(""), Y = w(null), ut = w(null), rt = w(null), A = w([]), st = w(0), Oe = w(0), Z = w(null), Re = w(null), vt = w(null), dt = w(null), Me = w("#FFFFFF"), e = w(Ze()), Ge = N(() => !!e.value.debug), { loading: D, FINAL_DATASET: Ut, manualLoading: ct } = Aa({
159
- ...ta(M),
157
+ setup(h, { expose: P, emit: S }) {
158
+ const B = $e(() => import("./BaseIcon-DLm6QTwr.js")), H = $e(() => import("./PackageVersion-n4qokxnx.js")), oe = $e(() => import("./PenAndPaper-C_R9vJkU.js")), be = $e(() => import("./Tooltip-hfdFRoLp.js")), ot = $e(() => import("./UserOptions-r0epwyXR.js")), { vue_ui_quick_chart: Se } = ua(), M = h, R = w(null), Oe = w(null), nt = w(null), it = w(null), X = w(ra()), re = w(!1), we = w(null), se = w(""), Z = w(null), ut = w(null), rt = w(null), A = w([]), st = w(0), Re = w(0), vt = w(!1), J = w(null), Me = w(null), dt = w(null), ct = w(null), Fe = w("#FFFFFF"), e = w(Ze()), Ge = N(() => !!e.value.debug), { loading: D, FINAL_DATASET: Vt, manualLoading: ht } = _a({
159
+ ...aa(M),
160
160
  FINAL_CONFIG: e,
161
161
  prepareConfig: Ze,
162
162
  skeletonDataset: [1, 2, 3, 5, 8, 13, 21, 34, 55, 89],
163
- skeletonConfig: ua({
163
+ skeletonConfig: sa({
164
164
  defaultConfig: e.value,
165
165
  userConfig: {
166
166
  backgroundColor: "#99999930",
@@ -182,33 +182,33 @@ const Ta = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
182
182
  zoomEndIndex: null
183
183
  }
184
184
  })
185
- }), { svgRef: ht } = ka({ config: { text: e.value.title } }), Vt = N(() => e.value.showUserOptionsOnChartHover), ft = N(() => e.value.keepUserOptionsStateOnChartLeave), Fe = w(!e.value.showUserOptionsOnChartHover), Ye = w(!1);
186
- function gt(a = !1) {
187
- Ye.value = a, Vt.value && (Fe.value = a);
185
+ }), { svgRef: ft } = Sa({ config: { text: e.value.title } }), Ht = N(() => e.value.showUserOptionsOnChartHover), gt = N(() => e.value.keepUserOptionsStateOnChartLeave), Ne = w(!e.value.showUserOptionsOnChartHover), Ye = w(!1);
186
+ function mt(l = !1) {
187
+ Ye.value = l, Ht.value && (Ne.value = l);
188
188
  }
189
189
  function Ze() {
190
- const a = Mt({
190
+ const l = Ft({
191
191
  userConfig: M.config,
192
192
  defaultConfig: Se
193
193
  });
194
194
  let c = {};
195
- return a.theme ? c = {
196
- ...Mt({
197
- userConfig: sa.vue_ui_quick_chart[a.theme] || M.config,
198
- defaultConfig: a
195
+ return l.theme ? c = {
196
+ ...Ft({
197
+ userConfig: da.vue_ui_quick_chart[l.theme] || M.config,
198
+ defaultConfig: l
199
199
  }),
200
- customPalette: ra[a.theme] || j
201
- } : c = a, M.config && We(M.config, "zoomStartIndex") ? c.zoomStartIndex = M.config.zoomStartIndex : c.zoomStartIndex = null, M.config && We(M.config, "zoomEndIndex") ? c.zoomEndIndex = M.config.zoomEndIndex : c.zoomEndIndex = null, M.config && !We(M.config, "donutStroke") ? We(M.config, "backgroundColor") ? Me.value = M.config.backgroundColor : Me.value = "#FFFFFF" : Me.value = M.config.donutStroke, c;
200
+ customPalette: va[l.theme] || G
201
+ } : c = l, M.config && We(M.config, "zoomStartIndex") ? c.zoomStartIndex = M.config.zoomStartIndex : c.zoomStartIndex = null, M.config && We(M.config, "zoomEndIndex") ? c.zoomEndIndex = M.config.zoomEndIndex : c.zoomEndIndex = null, M.config && !We(M.config, "donutStroke") ? We(M.config, "backgroundColor") ? Fe.value = M.config.backgroundColor : Fe.value = "#FFFFFF" : Fe.value = M.config.donutStroke, c;
202
202
  }
203
- Ie(() => M.config, (a) => {
204
- D.value || (e.value = Ze()), b.value.width = e.value.width, b.value.height = e.value.height, Fe.value = !e.value.showUserOptionsOnChartHover, xt(), me.value.showTooltip = e.value.showTooltip;
205
- }, { deep: !0 }), Ie(() => M.dataset, (a) => {
206
- k.value = Le.value, m.value.start = 0, m.value.end = k.value.maxSeriesLength, Oe.value += 1;
207
- }, { deep: !0 }), Ie(() => M.dataset, (a) => {
208
- Array.isArray(a) && a.length > 0 && (ct.value = !1);
203
+ Ie(() => M.config, (l) => {
204
+ D.value || (e.value = Ze()), b.value.width = e.value.width, b.value.height = e.value.height, Ne.value = !e.value.showUserOptionsOnChartHover, yt(), me.value.showTooltip = e.value.showTooltip;
205
+ }, { deep: !0 }), Ie(() => M.dataset, (l) => {
206
+ k.value = Le.value, m.value.start = 0, m.value.end = k.value.maxSeriesLength, Re.value += 1;
207
+ }, { deep: !0 }), Ie(() => M.dataset, (l) => {
208
+ Array.isArray(l) && l.length > 0 && (ht.value = !1);
209
209
  }, { immediate: !0 });
210
- const Ae = N(() => va(e.value.customPalette)), ge = S, Le = N(() => {
211
- const a = Ca({ debug: Ge.value, dataset: da(Ut.value, [
210
+ const Ae = N(() => ca(e.value.customPalette)), ge = S, Le = N(() => {
211
+ const l = Ia({ debug: Ge.value, dataset: ha(Vt.value, [
212
212
  "serie",
213
213
  "series",
214
214
  "data",
@@ -216,20 +216,20 @@ const Ta = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
216
216
  "values",
217
217
  "num"
218
218
  ]), barLineSwitch: e.value.chartIsBarUnderDatasetLength });
219
- return !a && Ge.value && console.error("VueUiQuickChart : Dataset is not processable"), a;
220
- }), k = w(Le.value), Ht = N(() => !!k.value), $ = N(() => k.value ? k.value.type : null);
221
- Ie(() => $.value, (a) => {
222
- a || ca({
219
+ return !l && Ge.value && console.error("VueUiQuickChart : Dataset is not processable"), l;
220
+ }), k = w(Le.value), qt = N(() => !!k.value), $ = N(() => k.value ? k.value.type : null);
221
+ Ie(() => $.value, (l) => {
222
+ l || fa({
223
223
  componentName: "VueUiQuickChart",
224
224
  type: "dataset",
225
225
  debug: Ge.value
226
226
  });
227
227
  }, { immediate: !0 });
228
- const { isPrinting: Ne, isImaging: Be, generatePdf: mt, generateImage: pt } = xa({
229
- elementId: `${$.value}_${oe.value}`,
228
+ const { isPrinting: Be, isImaging: De, generatePdf: pt, generateImage: xt } = ka({
229
+ elementId: `${$.value}_${X.value}`,
230
230
  fileName: e.value.title || $.value,
231
231
  options: e.value.userOptionsPrint
232
- }), qt = N(() => e.value.showUserOptions && !e.value.title), b = w({
232
+ }), Wt = N(() => e.value.showUserOptions && !e.value.title), b = w({
233
233
  width: e.value.width,
234
234
  height: e.value.height
235
235
  }), me = w({
@@ -240,18 +240,18 @@ const Ta = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
240
240
  showTooltip: e.value.showTooltip
241
241
  };
242
242
  }, { immediate: !0 });
243
- const ne = $t(null), pe = $t(null);
244
- aa(() => {
245
- xt();
243
+ const ne = It(null), pe = It(null);
244
+ la(() => {
245
+ vt.value = !0, yt();
246
246
  });
247
- function xt() {
248
- if (ha(M.dataset) || (ct.value = e.value.loading), e.value.responsive) {
249
- const a = Rt(() => {
250
- const { width: c, height: t } = pa({
247
+ function yt() {
248
+ if (ga(M.dataset) || (ht.value = e.value.loading), e.value.responsive) {
249
+ const l = Mt(() => {
250
+ const { width: c, height: t } = ya({
251
251
  chart: R.value,
252
- title: e.value.title ? Te.value : null,
252
+ title: e.value.title ? Oe.value : null,
253
253
  legend: e.value.showLegend ? nt.value : null,
254
- slicer: [_.BAR, _.LINE].includes($.value) && e.value.zoomXy && k.value.maxSeriesLength > 1 ? it.value : null,
254
+ slicer: [z.BAR, z.LINE].includes($.value) && e.value.zoomXy && k.value.maxSeriesLength > 1 ? it.value : null,
255
255
  source: ut.value,
256
256
  noTitle: rt.value
257
257
  });
@@ -259,98 +259,98 @@ const Ta = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
259
259
  b.value.width = c, b.value.height = t;
260
260
  });
261
261
  });
262
- ne.value && (pe.value && ne.value.unobserve(pe.value), ne.value.disconnect()), ne.value = new ResizeObserver(a), pe.value = R.value.parentNode, ne.value.observe(pe.value);
262
+ ne.value && (pe.value && ne.value.unobserve(pe.value), ne.value.disconnect()), ne.value = new ResizeObserver(l), pe.value = R.value.parentNode, ne.value.observe(pe.value);
263
263
  }
264
- Lt();
264
+ _t();
265
265
  }
266
- It(() => {
266
+ Et(() => {
267
267
  ne.value && (pe.value && ne.value.unobserve(pe.value), ne.value.disconnect());
268
268
  });
269
- const Wt = N(() => {
269
+ const Xt = N(() => {
270
270
  switch ($.value) {
271
- case _.LINE:
271
+ case z.LINE:
272
272
  return `0 0 ${b.value.width <= 0 ? 10 : b.value.width} ${b.value.height <= 0 ? 10 : b.value.height}`;
273
- case _.BAR:
273
+ case z.BAR:
274
274
  return `0 0 ${b.value.width <= 0 ? 10 : b.value.width} ${b.value.height <= 0 ? 10 : b.value.height}`;
275
- case _.DONUT:
275
+ case z.DONUT:
276
276
  return `0 0 ${b.value.width <= 0 ? 10 : b.value.width} ${b.value.height <= 0 ? 10 : b.value.height}`;
277
277
  default:
278
278
  return `0 0 ${b.value.width <= 0 ? 10 : b.value.width} ${b.value.height <= 0 ? 10 : b.value.height}`;
279
279
  }
280
280
  });
281
- function yt(a) {
282
- return [...a].map((c) => c.value).reduce((c, t) => c + t, 0);
281
+ function kt(l) {
282
+ return [...l].map((c) => c.value).reduce((c, t) => c + t, 0);
283
283
  }
284
- function _e(a) {
285
- return e.value.blurOnHover && ![null, void 0].includes(Y.value) && Y.value !== a ? `url(#blur_${oe.value})` : "";
284
+ function _e(l) {
285
+ return e.value.blurOnHover && ![null, void 0].includes(Z.value) && Z.value !== l ? `url(#blur_${X.value})` : "";
286
286
  }
287
- function kt(a, c) {
288
- A.value.includes(a) ? A.value = A.value.filter((t) => t !== a) : A.value.length < c && A.value.push(a);
287
+ function bt(l, c) {
288
+ A.value.includes(l) ? A.value = A.value.filter((t) => t !== l) : A.value.length < c && A.value.push(l);
289
289
  }
290
- const bt = w(null), St = w(null), De = w(!1);
291
- function Xt(a, c) {
292
- De.value = !0;
293
- let t = a.value;
294
- const i = Le.value.dataset.find((u, x) => a.id === `donut_${x}`).VALUE;
295
- if (A.value.includes(a.id)) {
290
+ const St = w(null), wt = w(null), Ue = w(!1);
291
+ function jt(l, c) {
292
+ Ue.value = !0;
293
+ let t = l.value;
294
+ const i = Le.value.dataset.find((u, x) => l.id === `donut_${x}`).VALUE;
295
+ if (A.value.includes(l.id)) {
296
296
  let u = function() {
297
- t > i ? (De.value = !1, cancelAnimationFrame(St.value), k.value = {
297
+ t > i ? (Ue.value = !1, cancelAnimationFrame(wt.value), k.value = {
298
298
  ...k.value,
299
- dataset: k.value.dataset.map((x, L) => a.id === `donut_${L}` ? {
299
+ dataset: k.value.dataset.map((x, _) => l.id === `donut_${_}` ? {
300
300
  ...x,
301
301
  value: i,
302
302
  VALUE: i
303
303
  } : x)
304
304
  }) : (t += i * 0.025, k.value = {
305
305
  ...k.value,
306
- dataset: k.value.dataset.map((x, L) => a.id === `donut_${L}` ? {
306
+ dataset: k.value.dataset.map((x, _) => l.id === `donut_${_}` ? {
307
307
  ...x,
308
308
  value: t,
309
309
  VALUE: t
310
310
  } : x)
311
- }, St.value = requestAnimationFrame(u));
311
+ }, wt.value = requestAnimationFrame(u));
312
312
  };
313
- A.value = A.value.filter((x) => x !== a.id), u();
313
+ A.value = A.value.filter((x) => x !== l.id), u();
314
314
  } else if (c.length > 1) {
315
315
  let u = function() {
316
- t < i / 100 ? (De.value = !1, cancelAnimationFrame(bt.value), A.value.push(a.id), k.value = {
316
+ t < i / 100 ? (Ue.value = !1, cancelAnimationFrame(St.value), A.value.push(l.id), k.value = {
317
317
  ...k.value,
318
- dataset: k.value.dataset.map((x, L) => a.id === `donut_${L}` ? {
318
+ dataset: k.value.dataset.map((x, _) => l.id === `donut_${_}` ? {
319
319
  ...x,
320
320
  value: 0,
321
321
  VALUE: 0
322
322
  } : x)
323
323
  }) : (t /= 1.1, k.value = {
324
324
  ...k.value,
325
- dataset: k.value.dataset.map((x, L) => a.id === `donut_${L}` ? {
325
+ dataset: k.value.dataset.map((x, _) => l.id === `donut_${_}` ? {
326
326
  ...x,
327
327
  value: t,
328
328
  VALUE: t
329
329
  } : x)
330
- }, bt.value = requestAnimationFrame(u));
330
+ }, St.value = requestAnimationFrame(u));
331
331
  };
332
332
  u();
333
333
  }
334
334
  }
335
- const J = w(null);
336
- function jt(a) {
337
- J.value = a;
335
+ const Q = w(null);
336
+ function Gt(l) {
337
+ Q.value = l;
338
338
  }
339
- const wt = N(() => e.value.donutThicknessRatio < 0.01 ? 0.01 : e.value.donutThicknessRatio > 0.4 ? 0.4 : e.value.donutThicknessRatio), P = N(() => {
340
- if ($.value !== _.DONUT) return null;
341
- const a = k.value.dataset.map((f, C) => ({
339
+ const At = N(() => e.value.donutThicknessRatio < 0.01 ? 0.01 : e.value.donutThicknessRatio > 0.4 ? 0.4 : e.value.donutThicknessRatio), T = N(() => {
340
+ if ($.value !== z.DONUT) return null;
341
+ const l = k.value.dataset.map((f, C) => ({
342
342
  ...f,
343
343
  value: f.VALUE || f.DATA || f.SERIE || f.VALUES || f.NUM || 0,
344
344
  name: f.NAME || f.DESCRIPTION || f.TITLE || f.LABEL || `Serie ${C}`,
345
345
  id: `donut_${C}`
346
346
  })).map((f, C) => ({
347
347
  ...f,
348
- color: f.COLOR ? tt(f.COLOR) : Ae.value[C + e.value.paletteStartIndex] || j[C + e.value.paletteStartIndex] || j[(C + e.value.paletteStartIndex) % j.length],
348
+ color: f.COLOR ? tt(f.COLOR) : Ae.value[C + e.value.paletteStartIndex] || G[C + e.value.paletteStartIndex] || G[(C + e.value.paletteStartIndex) % G.length],
349
349
  immutableValue: f.value
350
350
  }));
351
351
  function c(f, C) {
352
352
  return W({
353
- v: isNaN(f.value / yt(C)) ? 0 : f.value / yt(C) * 100,
353
+ v: isNaN(f.value / kt(C)) ? 0 : f.value / kt(C) * 100,
354
354
  s: "%",
355
355
  r: e.value.dataLabelRoundingPercentage
356
356
  });
@@ -363,23 +363,23 @@ const Ta = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
363
363
  return Math.abs(String(Number(v.toFixed(0))).length - String(Number(C.toFixed(0))).length);
364
364
  }
365
365
  function u({ datapoint: f, seriesIndex: C }) {
366
- we.value = { datapoint: f, seriesIndex: C, config: e.value, dataset: a }, Y.value = f.id;
366
+ we.value = { datapoint: f, seriesIndex: C, config: e.value, dataset: l }, Z.value = f.id;
367
367
  const v = e.value.tooltipCustomFormat;
368
368
  if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: f, seriesIndex: C }), Xe(v) && lt(() => v({
369
369
  datapoint: f,
370
370
  seriesIndex: C,
371
- series: a,
371
+ series: l,
372
372
  config: e.value
373
373
  })))
374
374
  se.value = v({
375
375
  datapoint: f,
376
376
  seriesIndex: C,
377
- series: a,
377
+ series: l,
378
378
  config: e.value
379
379
  });
380
380
  else {
381
381
  let n = "";
382
- n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${f.name}</div>`, n += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${f.color}"/></svg>`, n += `<b>${ee(
382
+ n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${f.name}</div>`, n += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${f.color}"/></svg>`, n += `<b>${te(
383
383
  e.value.formatter,
384
384
  f.value,
385
385
  W({
@@ -394,20 +394,20 @@ const Ta = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
394
394
  re.value = !0;
395
395
  }
396
396
  function x({ datapoint: f, seriesIndex: C }) {
397
- e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: f, seriesIndex: C }), re.value = !1, Y.value = null, J.value = null;
397
+ e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: f, seriesIndex: C }), re.value = !1, Z.value = null, Q.value = null;
398
398
  }
399
- function L({ datapoint: f, seriesIndex: C }) {
399
+ function _({ datapoint: f, seriesIndex: C }) {
400
400
  e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: f, seriesIndex: C }), ge("selectDatapoint", f);
401
401
  }
402
402
  const ie = {
403
403
  centerX: b.value.width / 2,
404
404
  centerY: b.value.height / 2
405
- }, X = a.filter((f) => !A.value.includes(f.id)).map((f) => f.value || 0).reduce((f, C) => f + C, 0), ye = a.map((f, C) => ({
405
+ }, j = l.filter((f) => !A.value.includes(f.id)).map((f) => f.value || 0).reduce((f, C) => f + C, 0), ye = l.map((f, C) => ({
406
406
  ...f,
407
- proportion: (f.value || 0) / X,
407
+ proportion: (f.value || 0) / j,
408
408
  value: f.value || 0,
409
409
  absoluteValue: Le.value.dataset.find((v, n) => `donut_${n}` === f.id).VALUE
410
- })), ve = b.value.width / 2, ue = b.value.height / 2, Q = b.value.height * e.value.donutRadiusRatio;
410
+ })), ve = b.value.width / 2, ue = b.value.height / 2, K = b.value.height * e.value.donutRadiusRatio;
411
411
  return {
412
412
  dataset: ye.filter((f) => !A.value.includes(f.id)),
413
413
  legend: ye,
@@ -416,112 +416,112 @@ const Ta = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
416
416
  isArcBigEnough: t,
417
417
  useTooltip: u,
418
418
  killTooltip: x,
419
- selectDatapoint: L,
419
+ selectDatapoint: _,
420
420
  getSpaces: i,
421
- total: X,
421
+ total: j,
422
422
  cx: ve,
423
423
  cy: ue,
424
- radius: Q,
425
- chart: fa(
426
- { series: a.filter((f) => !A.value.includes(f.id)) },
424
+ radius: K,
425
+ chart: ma(
426
+ { series: l.filter((f) => !A.value.includes(f.id)) },
427
427
  ve,
428
428
  ue,
429
- Q,
430
- Q,
429
+ K,
430
+ K,
431
431
  1.99999,
432
432
  2,
433
433
  1,
434
434
  360,
435
435
  105.25,
436
- b.value.height * wt.value
436
+ b.value.height * At.value
437
437
  )
438
438
  };
439
439
  }), m = w({
440
440
  start: 0,
441
441
  end: k.value.maxSeriesLength
442
442
  });
443
- function Gt() {
444
- Lt();
443
+ function Yt() {
444
+ _t();
445
445
  }
446
- const At = w(null);
447
- async function Lt() {
448
- await Et(), await Et();
449
- const { zoomStartIndex: a, zoomEndIndex: c } = e.value, t = At.value;
450
- (a != null || c != null) && t ? (a != null && t.setStartValue(a), c != null && t.setEndValue(Yt(c + 1))) : (m.value = {
446
+ const Lt = w(null);
447
+ async function _t() {
448
+ await Tt(), await Tt();
449
+ const { zoomStartIndex: l, zoomEndIndex: c } = e.value, t = Lt.value;
450
+ (l != null || c != null) && t ? (l != null && t.setStartValue(l), c != null && t.setEndValue(Zt(c + 1))) : (m.value = {
451
451
  start: 0,
452
452
  end: k.value.maxSeriesLength
453
- }, Oe.value += 1);
453
+ }, Re.value += 1);
454
454
  }
455
- function Yt(a) {
455
+ function Zt(l) {
456
456
  const c = k.value.maxSeriesLength;
457
- return a > c ? c : a < 0 || e.value.zoomStartIndex !== null && a < e.value.zoomStartIndex ? e.value.zoomStartIndex !== null ? e.value.zoomStartIndex + 1 : 1 : a;
457
+ return l > c ? c : l < 0 || e.value.zoomStartIndex !== null && l < e.value.zoomStartIndex ? e.value.zoomStartIndex !== null ? e.value.zoomStartIndex + 1 : 1 : l;
458
458
  }
459
- const Zt = N(() => {
460
- if (!e.value.zoomMinimap.show || $.value === _.DONUT) return [];
461
- let a = [];
462
- ae(k.value.dataset) && (a = k.value.dataset), je(k.value.dataset) && (a = k.value.dataset.map((u, x) => ({
459
+ const Jt = N(() => {
460
+ if (!e.value.zoomMinimap.show || $.value === z.DONUT) return [];
461
+ let l = [];
462
+ le(k.value.dataset) && (l = k.value.dataset), je(k.value.dataset) && (l = k.value.dataset.map((u, x) => ({
463
463
  values: u.VALUE || u.DATA || u.SERIE || u.SERIES || u.VALUES || u.NUM || 0,
464
- id: $.value === _.LINE ? `line_${x}` : `bar_${x}`
464
+ id: $.value === z.LINE ? `line_${x}` : `bar_${x}`
465
465
  })).filter((u) => !A.value.includes(u.id)));
466
- const c = ae(a) ? a.length : Math.max(...a.map((u) => u.values.length));
466
+ const c = le(l) ? l.length : Math.max(...l.map((u) => u.values.length));
467
467
  let t = [];
468
- if (ae(a))
469
- t = a;
468
+ if (le(l))
469
+ t = l;
470
470
  else
471
471
  for (let u = 0; u < c; u += 1)
472
- t.push(a.map((x) => x.values[u] || 0).reduce((x, L) => (x || 0) + (L || 0), 0));
472
+ t.push(l.map((x) => x.values[u] || 0).reduce((x, _) => (x || 0) + (_ || 0), 0));
473
473
  const i = Math.min(...t);
474
474
  return t.map((u) => u + (i < 0 ? Math.abs(i) : 0));
475
475
  });
476
- function _t() {
477
- let a = 0;
478
- return Re.value && (a = Array.from(Re.value.querySelectorAll("text")).reduce((i, u) => {
476
+ function zt() {
477
+ let l = 0;
478
+ return Me.value && (l = Array.from(Me.value.querySelectorAll("text")).reduce((i, u) => {
479
479
  const x = u.getComputedTextLength();
480
480
  return x > i ? x : i;
481
- }, 0)), a + 4;
481
+ }, 0)), l + 4;
482
482
  }
483
- const Je = w(0), Jt = Rt((a) => {
484
- Je.value = a;
483
+ const Je = w(0), Qt = Mt((l) => {
484
+ Je.value = l;
485
485
  }, 100);
486
- la((a) => {
487
- const c = Z.value;
486
+ oa((l) => {
487
+ const c = J.value;
488
488
  if (!c) return;
489
489
  const t = new ResizeObserver((i) => {
490
- Jt(i[0].contentRect.height);
490
+ Qt(i[0].contentRect.height);
491
491
  });
492
- t.observe(c), a(() => t.disconnect());
493
- }), It(() => {
492
+ t.observe(c), l(() => t.disconnect());
493
+ }), Et(() => {
494
494
  Je.value = 0;
495
495
  });
496
- const Ue = N(() => {
497
- let a = 0, c = 0;
498
- return Z.value && (c = Je.value), a + c;
496
+ const Ve = N(() => {
497
+ let l = 0, c = 0;
498
+ return J.value && (c = Je.value), l + c;
499
499
  }), d = N(() => {
500
- if ($.value !== _.LINE) return null;
501
- const a = {
500
+ if ($.value !== z.LINE) return null;
501
+ const l = {
502
502
  height: b.value.height,
503
503
  width: b.value.width
504
504
  };
505
- let c = _t();
506
- if (Z.value) {
507
- const v = Z.value.getBBox().x;
505
+ let c = zt();
506
+ if (J.value) {
507
+ const v = J.value.getBBox().x;
508
508
  v < 0 && (c += Math.abs(v));
509
509
  }
510
510
  const t = {
511
511
  left: c + e.value.xyPaddingLeft,
512
512
  top: e.value.xyPaddingTop,
513
- right: a.width - e.value.xyPaddingRight,
514
- bottom: a.height - e.value.xyPaddingBottom - Ue.value,
515
- width: Math.max(10, a.width - e.value.xyPaddingLeft - e.value.xyPaddingRight - c),
516
- height: Math.max(10, a.height - e.value.xyPaddingTop - e.value.xyPaddingBottom - Ue.value)
513
+ right: l.width - e.value.xyPaddingRight,
514
+ bottom: l.height - e.value.xyPaddingBottom - Ve.value,
515
+ width: Math.max(10, l.width - e.value.xyPaddingLeft - e.value.xyPaddingRight - c),
516
+ height: Math.max(10, l.height - e.value.xyPaddingTop - e.value.xyPaddingBottom - Ve.value)
517
517
  };
518
518
  let i = [];
519
- ae(k.value.dataset) && (i = [
519
+ le(k.value.dataset) && (i = [
520
520
  {
521
521
  values: k.value.dataset.slice(m.value.start, m.value.end),
522
522
  absoluteIndices: k.value.dataset.map((v, n) => n).slice(m.value.start, m.value.end),
523
523
  name: e.value.title,
524
- color: Ae.value[e.value.paletteStartIndex] || j[e.value.paletteStartIndex],
524
+ color: Ae.value[e.value.paletteStartIndex] || G[e.value.paletteStartIndex],
525
525
  id: "line_0"
526
526
  }
527
527
  ]), je(k.value.dataset) && (i = k.value.dataset.map((v, n) => ({
@@ -531,7 +531,7 @@ const Ta = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
531
531
  id: `line_${n}`
532
532
  })).map((v, n) => ({
533
533
  ...v,
534
- color: v.COLOR ? tt(v.COLOR) : Ae.value[n + e.value.paletteStartIndex] || j[n + e.value.paletteStartIndex] || j[(n + e.value.paletteStartIndex) % j.length],
534
+ color: v.COLOR ? tt(v.COLOR) : Ae.value[n + e.value.paletteStartIndex] || G[n + e.value.paletteStartIndex] || G[(n + e.value.paletteStartIndex) % G.length],
535
535
  values: v.values.slice(m.value.start, m.value.end),
536
536
  absoluteIndices: v.values.map((y, E) => E).slice(m.value.start, m.value.end)
537
537
  })));
@@ -539,15 +539,15 @@ const Ta = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
539
539
  max: Math.max(...i.filter((v) => !A.value.includes(v.id)).flatMap((v) => v.values)),
540
540
  min: Math.min(...i.filter((v) => !A.value.includes(v.id)).flatMap((v) => v.values)),
541
541
  maxSeries: Math.max(...i.map((v) => v.values.length))
542
- }, x = Pt(u.min < 0 ? u.min : 0, u.max < 0 ? 0 : u.max, e.value.xyScaleSegments), L = u.min < 0 ? Math.abs(u.min) : 0, ie = u.max < 0 ? t.top : t.bottom - L / (x.max + L) * t.height, X = t.width / u.maxSeries, ye = x.ticks.map((v) => ({
543
- y: t.bottom - t.height * ((v + L) / (x.max + L)),
542
+ }, x = Pt(u.min < 0 ? u.min : 0, u.max < 0 ? 0 : u.max, e.value.xyScaleSegments), _ = u.min < 0 ? Math.abs(u.min) : 0, ie = u.max < 0 ? t.top : t.bottom - _ / (x.max + _) * t.height, j = t.width / u.maxSeries, ye = x.ticks.map((v) => ({
543
+ y: t.bottom - t.height * ((v + _) / (x.max + _)),
544
544
  x: t.left - 8,
545
545
  value: v
546
546
  })), ve = i.map((v, n) => ({
547
547
  ...v,
548
548
  coordinates: v.values.map((y, E) => ({
549
- x: t.left + X * (E + 1) - X / 2,
550
- y: t.bottom - (y + L) / (x.max + L) * t.height,
549
+ x: t.left + j * (E + 1) - j / 2,
550
+ y: t.bottom - (y + _) / (x.max + _) * t.height,
551
551
  value: y
552
552
  }))
553
553
  })).map((v) => {
@@ -566,8 +566,8 @@ const Ta = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
566
566
  absoluteIndex: n.absoluteIndices[v]
567
567
  })).filter((n) => !A.value.includes(n.id));
568
568
  }
569
- function Q(v) {
570
- Y.value = v, J.value = v;
569
+ function K(v) {
570
+ Z.value = v, Q.value = v;
571
571
  const n = ue(v);
572
572
  we.value = { datapoint: n, seriesIndex: v, config: e.value, dataset: i };
573
573
  const y = e.value.tooltipCustomFormat;
@@ -585,12 +585,12 @@ const Ta = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
585
585
  });
586
586
  else {
587
587
  let E = "";
588
- G.value[n[0].absoluteIndex] && (E += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${G.value[n[0].absoluteIndex].text}</div>`), n.forEach((V, q) => {
588
+ Y.value[n[0].absoluteIndex] && (E += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${Y.value[n[0].absoluteIndex].text}</div>`), n.forEach((V, q) => {
589
589
  E += `
590
590
  <div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
591
591
  <svg viewBox="0 0 12 12" height="14" width="12"><circle cx="6" cy="6" r="6" stroke="none" fill="${V.color}"/></svg>
592
592
  <span>${V.name}:</span>
593
- <b>${ee(
593
+ <b>${te(
594
594
  e.value.formatter,
595
595
  V.value,
596
596
  W({
@@ -610,7 +610,7 @@ const Ta = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
610
610
  }
611
611
  function f(v) {
612
612
  const n = ue(v);
613
- e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: n, seriesIndex: v + m.value.start }), Y.value = null, J.value = null, re.value = !1;
613
+ e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: n, seriesIndex: v + m.value.start }), Z.value = null, Q.value = null, re.value = !1;
614
614
  }
615
615
  function C(v) {
616
616
  const n = ue(v);
@@ -622,38 +622,38 @@ const Ta = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
622
622
  legend: ve,
623
623
  drawingArea: t,
624
624
  extremes: u,
625
- slotSize: X,
625
+ slotSize: j,
626
626
  yLabels: ye,
627
- useTooltip: Q,
627
+ useTooltip: K,
628
628
  killTooltip: f,
629
629
  selectDatapoint: C
630
630
  };
631
631
  }), s = N(() => {
632
- if ($.value !== _.BAR) return null;
633
- const a = {
632
+ if ($.value !== z.BAR) return null;
633
+ const l = {
634
634
  height: b.value.height,
635
635
  width: b.value.width
636
636
  };
637
- let c = _t();
638
- if (Z.value) {
639
- const n = Z.value.getBBox().x;
637
+ let c = zt();
638
+ if (J.value) {
639
+ const n = J.value.getBBox().x;
640
640
  n < 0 && (c += Math.abs(n));
641
641
  }
642
642
  const t = {
643
643
  left: c + e.value.xyPaddingLeft,
644
644
  top: e.value.xyPaddingTop,
645
- right: a.width - e.value.xyPaddingRight,
646
- bottom: a.height - e.value.xyPaddingBottom - Ue.value,
647
- width: Math.max(10, a.width - e.value.xyPaddingLeft - e.value.xyPaddingRight - c),
648
- height: Math.max(10, a.height - e.value.xyPaddingTop - e.value.xyPaddingBottom - Ue.value)
645
+ right: l.width - e.value.xyPaddingRight,
646
+ bottom: l.height - e.value.xyPaddingBottom - Ve.value,
647
+ width: Math.max(10, l.width - e.value.xyPaddingLeft - e.value.xyPaddingRight - c),
648
+ height: Math.max(10, l.height - e.value.xyPaddingTop - e.value.xyPaddingBottom - Ve.value)
649
649
  };
650
650
  let i = [];
651
- ae(k.value.dataset) && (i = [
651
+ le(k.value.dataset) && (i = [
652
652
  {
653
653
  values: k.value.dataset.slice(m.value.start, m.value.end),
654
654
  absoluteIndices: k.value.dataset.map((n, y) => y).slice(m.value.start, m.value.end),
655
655
  name: e.value.title,
656
- color: Ae.value[e.value.paletteStartIndex] || j[e.value.paletteStartIndex],
656
+ color: Ae.value[e.value.paletteStartIndex] || G[e.value.paletteStartIndex],
657
657
  id: "bar_0"
658
658
  }
659
659
  ]), je(k.value.dataset) && (i = k.value.dataset.map((n, y) => ({
@@ -663,7 +663,7 @@ const Ta = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
663
663
  id: `bar_${y}`
664
664
  })).map((n, y) => ({
665
665
  ...n,
666
- color: n.COLOR ? tt(n.COLOR) : Ae.value[y + e.value.paletteStartIndex] || j[y + e.value.paletteStartIndex] || j[(y + e.value.paletteStartIndex) % j.length],
666
+ color: n.COLOR ? tt(n.COLOR) : Ae.value[y + e.value.paletteStartIndex] || G[y + e.value.paletteStartIndex] || G[(y + e.value.paletteStartIndex) % G.length],
667
667
  values: n.values.slice(m.value.start, m.value.end),
668
668
  absoluteIndices: n.values.map((E, V) => V).slice(m.value.start, m.value.end)
669
669
  })));
@@ -671,16 +671,16 @@ const Ta = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
671
671
  max: Math.max(...i.filter((n) => !A.value.includes(n.id)).flatMap((n) => n.values)) < 0 ? 0 : Math.max(...i.filter((n) => !A.value.includes(n.id)).flatMap((n) => n.values)),
672
672
  min: Math.min(...i.filter((n) => !A.value.includes(n.id)).flatMap((n) => n.values)),
673
673
  maxSeries: Math.max(...i.filter((n) => !A.value.includes(n.id)).map((n) => n.values.length))
674
- }, x = Pt(u.min < 0 ? u.min : 0, u.max, e.value.xyScaleSegments), L = x.min < 0 ? Math.abs(x.min) : 0, ie = t.bottom - L / (x.max + L) * t.height, X = t.width / u.maxSeries, ye = x.ticks.map((n) => ({
675
- y: t.bottom - t.height * ((n + L) / (x.max + L)),
674
+ }, x = Pt(u.min < 0 ? u.min : 0, u.max, e.value.xyScaleSegments), _ = x.min < 0 ? Math.abs(x.min) : 0, ie = t.bottom - _ / (x.max + _) * t.height, j = t.width / u.maxSeries, ye = x.ticks.map((n) => ({
675
+ y: t.bottom - t.height * ((n + _) / (x.max + _)),
676
676
  x: t.left - 8,
677
677
  value: n
678
678
  })), ve = i.map((n, y) => ({
679
679
  ...n,
680
680
  coordinates: n.values.map((E, V) => {
681
- const q = (E + L) / (u.max + L) * t.height, ze = Math.abs(E) / Math.abs(u.min) * (t.height - ie), Ke = L / (u.max + L) * t.height, Ce = X / i.filter((de) => !A.value.includes(de.id)).length - e.value.barGap / i.filter((de) => !A.value.includes(de.id)).length;
681
+ const q = (E + _) / (u.max + _) * t.height, ze = Math.abs(E) / Math.abs(u.min) * (t.height - ie), Ke = _ / (u.max + _) * t.height, Ce = j / i.filter((de) => !A.value.includes(de.id)).length - e.value.barGap / i.filter((de) => !A.value.includes(de.id)).length;
682
682
  return {
683
- x: t.left + X * V + Ce * y + e.value.barGap / 2,
683
+ x: t.left + j * V + Ce * y + e.value.barGap / 2,
684
684
  y: E > 0 ? t.bottom - q : ie,
685
685
  height: E > 0 ? q - Ke : ze,
686
686
  value: E,
@@ -690,9 +690,9 @@ const Ta = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
690
690
  })), ue = i.filter((n) => !A.value.includes(n.id)).map((n, y) => ({
691
691
  ...n,
692
692
  coordinates: n.values.map((E, V) => {
693
- const q = (E + L) / (u.max + L) * t.height, ze = Math.abs(E) / (u.max + L) * t.height, Ke = L / (u.max + L) * t.height, Ce = X / i.filter((de) => !A.value.includes(de.id)).length - e.value.barGap / i.filter((de) => !A.value.includes(de.id)).length;
693
+ const q = (E + _) / (u.max + _) * t.height, ze = Math.abs(E) / (u.max + _) * t.height, Ke = _ / (u.max + _) * t.height, Ce = j / i.filter((de) => !A.value.includes(de.id)).length - e.value.barGap / i.filter((de) => !A.value.includes(de.id)).length;
694
694
  return {
695
- x: t.left + X * V + Ce * y + e.value.barGap / 2,
695
+ x: t.left + j * V + Ce * y + e.value.barGap / 2,
696
696
  y: E > 0 ? t.bottom - q : ie,
697
697
  height: E > 0 ? q - Ke : ze,
698
698
  value: E,
@@ -700,7 +700,7 @@ const Ta = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
700
700
  };
701
701
  })
702
702
  }));
703
- function Q(n) {
703
+ function K(n) {
704
704
  return i.map((y) => ({
705
705
  ...y,
706
706
  value: y.values[n],
@@ -708,8 +708,8 @@ const Ta = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
708
708
  })).filter((y) => !A.value.includes(y.id));
709
709
  }
710
710
  function f(n) {
711
- Y.value = n, J.value = n;
712
- const y = Q(n);
711
+ Z.value = n, Q.value = n;
712
+ const y = K(n);
713
713
  we.value = { datapoint: y, seriesIndex: n, config: e.value, dataset: i };
714
714
  const E = e.value.tooltipCustomFormat;
715
715
  if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: y, seriesIndex: n + m.value.start }), Xe(E) && lt(() => E({
@@ -726,12 +726,12 @@ const Ta = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
726
726
  });
727
727
  else {
728
728
  let V = "";
729
- G.value[y[0].absoluteIndex] && (V += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${G.value[y[0].absoluteIndex].text}</div>`), y.forEach((q, ze) => {
729
+ Y.value[y[0].absoluteIndex] && (V += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${Y.value[y[0].absoluteIndex].text}</div>`), y.forEach((q, ze) => {
730
730
  V += `
731
731
  <div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
732
732
  <svg viewBox="0 0 12 12" height="14" width="12"><rect x=0 y="0" width="12" height="12" rx="1" stroke="none" fill="${q.color}"/></svg>
733
733
  <span>${q.name}:</span>
734
- <b>${ee(
734
+ <b>${te(
735
735
  e.value.formatter,
736
736
  q.value,
737
737
  W({
@@ -750,11 +750,11 @@ const Ta = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
750
750
  re.value = !0;
751
751
  }
752
752
  function C(n) {
753
- const y = Q(n);
754
- e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: y, seriesIndex: n + m.value.start }), re.value = !1, Y.value = null, J.value = null;
753
+ const y = K(n);
754
+ e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: y, seriesIndex: n + m.value.start }), re.value = !1, Z.value = null, Q.value = null;
755
755
  }
756
756
  function v(n) {
757
- const y = Q(n);
757
+ const y = K(n);
758
758
  e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: y, seriesIndex: n + m.value.start }), ge("selectDatapoint", y);
759
759
  }
760
760
  return {
@@ -763,35 +763,35 @@ const Ta = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
763
763
  legend: ve,
764
764
  drawingArea: t,
765
765
  extremes: u,
766
- slotSize: X,
766
+ slotSize: j,
767
767
  yLabels: ye,
768
768
  useTooltip: f,
769
769
  killTooltip: C,
770
770
  selectDatapoint: v
771
771
  };
772
- }), G = N(() => ya({
772
+ }), Y = N(() => ba({
773
773
  values: e.value.xyPeriods,
774
774
  maxDatapoints: k.value.maxSeriesLength,
775
775
  formatter: e.value.datetimeFormatter,
776
776
  start: m.value.start,
777
777
  end: m.value.end
778
778
  })), xe = N(() => {
779
- const a = e.value.xyPeriodsModulo;
780
- return e.value.xyPeriods.length ? Math.min(a, [...new Set(G.value.map((c) => c.text))].length) : a;
781
- }), Ve = w(!1);
782
- function zt(a) {
783
- Ve.value = a, st.value += 1;
779
+ const l = e.value.xyPeriodsModulo;
780
+ return e.value.xyPeriods.length ? Math.min(l, [...new Set(Y.value.map((c) => c.text))].length) : l;
781
+ }), He = w(!1);
782
+ function Ct(l) {
783
+ He.value = l, st.value += 1;
784
784
  }
785
- function Ct() {
785
+ function $t() {
786
786
  me.value.showTooltip = !me.value.showTooltip;
787
787
  }
788
- const He = w(!1);
788
+ const qe = w(!1);
789
789
  function Qe() {
790
- He.value = !He.value;
790
+ qe.value = !qe.value;
791
791
  }
792
- async function Qt({ scale: a = 2 } = {}) {
792
+ async function Kt({ scale: l = 2 } = {}) {
793
793
  if (!R.value) return;
794
- const { width: c, height: t } = R.value.getBoundingClientRect(), i = c / t, { imageUri: u, base64: x } = await Sa({ domElement: R.value, base64: !0, img: !0, scale: a });
794
+ const { width: c, height: t } = R.value.getBoundingClientRect(), i = c / t, { imageUri: u, base64: x } = await Aa({ domElement: R.value, base64: !0, img: !0, scale: l });
795
795
  return {
796
796
  imageUri: u,
797
797
  base64: x,
@@ -801,141 +801,144 @@ const Ta = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
801
801
  aspectRatio: i
802
802
  };
803
803
  }
804
- const Kt = N(() => b.value.width), ea = N(() => b.value.height);
805
- return ba({
806
- timeLabelsEls: Z,
807
- timeLabels: G,
804
+ const ea = N(() => b.value.width), ta = N(() => b.value.height);
805
+ return wa({
806
+ timeLabelsEls: J,
807
+ timeLabels: Y,
808
808
  slicer: m,
809
809
  configRef: e,
810
810
  rotationPath: ["xyPeriodLabelsRotation"],
811
811
  autoRotatePath: ["xyPeriodLabelsAutoRotate", "enable"],
812
812
  isAutoSize: !1,
813
813
  rotation: e.value.xyPeriodLabelsAutoRotate.angle,
814
- height: ea.value,
815
- width: Kt.value
816
- }), T({
817
- getImage: Qt,
818
- generatePdf: mt,
819
- generateImage: pt,
820
- toggleTooltip: Ct,
814
+ height: ta.value,
815
+ width: ea.value
816
+ }), P({
817
+ getImage: Kt,
818
+ generatePdf: pt,
819
+ generateImage: xt,
820
+ toggleTooltip: $t,
821
821
  toggleAnnotator: Qe,
822
- toggleFullscreen: zt
823
- }), (a, c) => Ht.value ? (l(), o("div", {
822
+ toggleFullscreen: Ct
823
+ }), (l, c) => qt.value ? (a(), o("div", {
824
824
  key: 0,
825
- id: `${$.value}_${oe.value}`,
825
+ id: `${$.value}_${X.value}`,
826
826
  ref_key: "quickChart",
827
827
  ref: R,
828
- class: ce({ "vue-ui-quick-chart": !0, "vue-data-ui-wrapper-fullscreen": Ve.value }),
828
+ class: ce({ "vue-ui-quick-chart": !0, "vue-data-ui-wrapper-fullscreen": He.value }),
829
829
  style: O(`background:${e.value.backgroundColor};color:${e.value.color};font-family:${e.value.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
830
- onMouseenter: c[2] || (c[2] = () => gt(!0)),
831
- onMouseleave: c[3] || (c[3] = () => gt(!1))
830
+ onMouseenter: c[2] || (c[2] = () => mt(!0)),
831
+ onMouseleave: c[3] || (c[3] = () => mt(!1))
832
832
  }, [
833
- e.value.userOptionsButtons.annotator ? (l(), qe(r(le), {
833
+ e.value.userOptionsButtons.annotator ? (a(), Ee(r(oe), {
834
834
  key: 0,
835
- svgRef: r(ht),
835
+ svgRef: r(ft),
836
836
  backgroundColor: e.value.backgroundColor,
837
837
  color: e.value.color,
838
- active: He.value,
838
+ active: qe.value,
839
839
  onClose: Qe
840
840
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
841
- qt.value ? (l(), o("div", {
841
+ Wt.value ? (a(), o("div", {
842
842
  key: 1,
843
843
  ref_key: "noTitle",
844
844
  ref: rt,
845
845
  class: "vue-data-ui-no-title-space",
846
846
  style: "height:36px; width: 100%;background:transparent"
847
847
  }, null, 512)) : g("", !0),
848
- e.value.showUserOptions && (ft.value || Fe.value) ? (l(), qe(r(ot), {
848
+ e.value.showUserOptions && (gt.value || Ne.value) ? (a(), Ee(r(ot), {
849
849
  ref: "details",
850
850
  key: `user_option_${st.value}`,
851
851
  backgroundColor: e.value.backgroundColor,
852
852
  color: e.value.color,
853
- isPrinting: r(Ne),
854
- isImaging: r(Be),
855
- uid: oe.value,
853
+ isPrinting: r(Be),
854
+ isImaging: r(De),
855
+ uid: X.value,
856
856
  hasTooltip: e.value.userOptionsButtons.tooltip && e.value.showTooltip,
857
857
  hasPdf: e.value.userOptionsButtons.pdf,
858
858
  hasImg: e.value.userOptionsButtons.img,
859
859
  hasFullscreen: e.value.userOptionsButtons.fullscreen,
860
860
  hasXls: !1,
861
861
  isTooltip: me.value.showTooltip,
862
- isFullscreen: Ve.value,
862
+ isFullscreen: He.value,
863
863
  titles: { ...e.value.userOptionsButtonTitles },
864
864
  chartElement: R.value,
865
865
  position: e.value.userOptionsPosition,
866
866
  hasAnnotator: e.value.userOptionsButtons.annotator,
867
- isAnnotation: He.value,
867
+ isAnnotation: qe.value,
868
868
  callbacks: e.value.userOptionsCallbacks,
869
869
  printScale: e.value.userOptionsPrint.scale,
870
- onToggleFullscreen: zt,
871
- onGeneratePdf: r(mt),
872
- onGenerateImage: r(pt),
873
- onToggleTooltip: Ct,
870
+ onToggleFullscreen: Ct,
871
+ onGeneratePdf: r(pt),
872
+ onGenerateImage: r(xt),
873
+ onToggleTooltip: $t,
874
874
  onToggleAnnotator: Qe,
875
875
  style: O({
876
- visibility: ft.value ? Fe.value ? "visible" : "hidden" : "visible"
876
+ visibility: gt.value ? Ne.value ? "visible" : "hidden" : "visible"
877
877
  })
878
- }, oa({ _: 2 }, [
879
- a.$slots.menuIcon ? {
878
+ }, na({ _: 2 }, [
879
+ l.$slots.menuIcon ? {
880
880
  name: "menuIcon",
881
- fn: K(({ isOpen: t, color: i }) => [
882
- U(a.$slots, "menuIcon", he(fe({ isOpen: t, color: i })), void 0, !0)
881
+ fn: ee(({ isOpen: t, color: i }) => [
882
+ U(l.$slots, "menuIcon", he(fe({ isOpen: t, color: i })), void 0, !0)
883
883
  ]),
884
884
  key: "0"
885
885
  } : void 0,
886
- a.$slots.optionTooltip ? {
886
+ l.$slots.optionTooltip ? {
887
887
  name: "optionTooltip",
888
- fn: K(() => [
889
- U(a.$slots, "optionTooltip", {}, void 0, !0)
888
+ fn: ee(() => [
889
+ U(l.$slots, "optionTooltip", {}, void 0, !0)
890
890
  ]),
891
891
  key: "1"
892
892
  } : void 0,
893
- a.$slots.optionPdf ? {
893
+ l.$slots.optionPdf ? {
894
894
  name: "optionPdf",
895
- fn: K(() => [
896
- U(a.$slots, "optionPdf", {}, void 0, !0)
895
+ fn: ee(() => [
896
+ U(l.$slots, "optionPdf", {}, void 0, !0)
897
897
  ]),
898
898
  key: "2"
899
899
  } : void 0,
900
- a.$slots.optionImg ? {
900
+ l.$slots.optionImg ? {
901
901
  name: "optionImg",
902
- fn: K(() => [
903
- U(a.$slots, "optionImg", {}, void 0, !0)
902
+ fn: ee(() => [
903
+ U(l.$slots, "optionImg", {}, void 0, !0)
904
904
  ]),
905
905
  key: "3"
906
906
  } : void 0,
907
- a.$slots.optionFullscreen ? {
907
+ l.$slots.optionFullscreen ? {
908
908
  name: "optionFullscreen",
909
- fn: K(({ toggleFullscreen: t, isFullscreen: i }) => [
910
- U(a.$slots, "optionFullscreen", he(fe({ toggleFullscreen: t, isFullscreen: i })), void 0, !0)
909
+ fn: ee(({ toggleFullscreen: t, isFullscreen: i }) => [
910
+ U(l.$slots, "optionFullscreen", he(fe({ toggleFullscreen: t, isFullscreen: i })), void 0, !0)
911
911
  ]),
912
912
  key: "4"
913
913
  } : void 0,
914
- a.$slots.optionAnnotator ? {
914
+ l.$slots.optionAnnotator ? {
915
915
  name: "optionAnnotator",
916
- fn: K(({ toggleAnnotator: t, isAnnotator: i }) => [
917
- U(a.$slots, "optionAnnotator", he(fe({ toggleAnnotator: t, isAnnotator: i })), void 0, !0)
916
+ fn: ee(({ toggleAnnotator: t, isAnnotator: i }) => [
917
+ U(l.$slots, "optionAnnotator", he(fe({ toggleAnnotator: t, isAnnotator: i })), void 0, !0)
918
918
  ]),
919
919
  key: "5"
920
920
  } : void 0
921
921
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0),
922
- e.value.title ? (l(), o("div", {
922
+ e.value.title ? (a(), o("div", {
923
923
  key: 3,
924
924
  ref_key: "quickChartTitle",
925
- ref: Te,
925
+ ref: Oe,
926
926
  class: "vue-ui-quick-chart-title",
927
927
  style: O(`background:transparent;color:${e.value.color};font-size:${e.value.titleFontSize}px;font-weight:${e.value.titleBold ? "bold" : "normal"};text-align:${e.value.titleTextAlign}`)
928
928
  }, F(e.value.title), 5)) : g("", !0),
929
- $.value ? (l(), o("svg", {
929
+ L("div", {
930
+ id: `legend-top-${X.value}`
931
+ }, null, 8, Ma),
932
+ $.value ? (a(), o("svg", {
930
933
  key: 4,
931
934
  ref_key: "svgRef",
932
- ref: ht,
933
- xmlns: r(ga),
934
- viewBox: Wt.value,
935
+ ref: ft,
936
+ xmlns: r(pa),
937
+ viewBox: Xt.value,
935
938
  style: O(`max-width:100%;overflow:visible;background:transparent;color:${e.value.color}`)
936
939
  }, [
937
940
  ke(r(H)),
938
- a.$slots["chart-background"] && $.value === _.BAR ? (l(), o("foreignObject", {
941
+ l.$slots["chart-background"] && $.value === z.BAR ? (a(), o("foreignObject", {
939
942
  key: 0,
940
943
  x: s.value.drawingArea.left,
941
944
  y: s.value.drawingArea.top,
@@ -945,9 +948,9 @@ const Ta = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
945
948
  pointerEvents: "none"
946
949
  }
947
950
  }, [
948
- U(a.$slots, "chart-background", {}, void 0, !0)
949
- ], 8, Ra)) : g("", !0),
950
- a.$slots["chart-background"] && $.value === _.LINE ? (l(), o("foreignObject", {
951
+ U(l.$slots, "chart-background", {}, void 0, !0)
952
+ ], 8, Na)) : g("", !0),
953
+ l.$slots["chart-background"] && $.value === z.LINE ? (a(), o("foreignObject", {
951
954
  key: 1,
952
955
  x: d.value.drawingArea.left,
953
956
  y: d.value.drawingArea.top,
@@ -957,9 +960,9 @@ const Ta = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
957
960
  pointerEvents: "none"
958
961
  }
959
962
  }, [
960
- U(a.$slots, "chart-background", {}, void 0, !0)
961
- ], 8, Ma)) : g("", !0),
962
- a.$slots["chart-background"] && $.value === _.DONUT ? (l(), o("foreignObject", {
963
+ U(l.$slots, "chart-background", {}, void 0, !0)
964
+ ], 8, Ba)) : g("", !0),
965
+ l.$slots["chart-background"] && $.value === z.DONUT ? (a(), o("foreignObject", {
963
966
  key: 2,
964
967
  x: 0,
965
968
  y: 0,
@@ -969,98 +972,98 @@ const Ta = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
969
972
  pointerEvents: "none"
970
973
  }
971
974
  }, [
972
- U(a.$slots, "chart-background", {}, void 0, !0)
973
- ], 8, Fa)) : g("", !0),
974
- z("defs", null, [
975
- z("filter", {
976
- id: `blur_${oe.value}`,
975
+ U(l.$slots, "chart-background", {}, void 0, !0)
976
+ ], 8, Da)) : g("", !0),
977
+ L("defs", null, [
978
+ L("filter", {
979
+ id: `blur_${X.value}`,
977
980
  x: "-50%",
978
981
  y: "-50%",
979
982
  width: "200%",
980
983
  height: "200%"
981
984
  }, [
982
- z("feGaussianBlur", {
985
+ L("feGaussianBlur", {
983
986
  in: "SourceGraphic",
984
987
  stdDeviation: 2,
985
- id: `blur_std_${oe.value}`
986
- }, null, 8, Ba),
987
- c[4] || (c[4] = z("feColorMatrix", {
988
+ id: `blur_std_${X.value}`
989
+ }, null, 8, Va),
990
+ c[4] || (c[4] = L("feColorMatrix", {
988
991
  type: "saturate",
989
992
  values: "0"
990
993
  }, null, -1))
991
- ], 8, Na),
992
- z("filter", {
993
- id: `shadow_${oe.value}`,
994
+ ], 8, Ua),
995
+ L("filter", {
996
+ id: `shadow_${X.value}`,
994
997
  "color-interpolation-filters": "sRGB"
995
998
  }, [
996
- z("feDropShadow", {
999
+ L("feDropShadow", {
997
1000
  dx: "0",
998
1001
  dy: "0",
999
1002
  stdDeviation: "10",
1000
1003
  "flood-opacity": "0.5",
1001
1004
  "flood-color": e.value.donutShadowColor
1002
- }, null, 8, Ua)
1003
- ], 8, Da)
1005
+ }, null, 8, qa)
1006
+ ], 8, Ha)
1004
1007
  ]),
1005
- $.value === _.DONUT ? (l(), o(p, { key: 3 }, [
1006
- e.value.showDataLabels ? (l(), o("g", Va, [
1007
- (l(!0), o(p, null, I(P.value.chart, (t, i) => (l(), o(p, null, [
1008
- P.value.isArcBigEnough(t) ? (l(), o("path", {
1008
+ $.value === z.DONUT ? (a(), o(p, { key: 3 }, [
1009
+ e.value.showDataLabels ? (a(), o("g", Wa, [
1010
+ (a(!0), o(p, null, I(T.value.chart, (t, i) => (a(), o(p, null, [
1011
+ T.value.isArcBigEnough(t) ? (a(), o("path", {
1009
1012
  key: 0,
1010
- d: r(ma)(t, { x: b.value.width / 2, y: b.value.height / 2 }, 16, 16, !1, !1, b.value.height * wt.value, 12, e.value.donutCurvedMarkers),
1013
+ d: r(xa)(t, { x: b.value.width / 2, y: b.value.height / 2 }, 16, 16, !1, !1, b.value.height * At.value, 12, e.value.donutCurvedMarkers),
1011
1014
  stroke: t.color,
1012
1015
  "stroke-width": e.value.donutLabelMarkerStrokeWidth,
1013
1016
  "stroke-linecap": "round",
1014
1017
  "stroke-linejoin": "round",
1015
1018
  fill: "none",
1016
1019
  filter: _e(t.id)
1017
- }, null, 8, Ha)) : g("", !0)
1020
+ }, null, 8, Xa)) : g("", !0)
1018
1021
  ], 64))), 256))
1019
1022
  ])) : g("", !0),
1020
- z("circle", {
1021
- cx: P.value.cx,
1022
- cy: P.value.cy,
1023
- r: P.value.radius,
1023
+ L("circle", {
1024
+ cx: T.value.cx,
1025
+ cy: T.value.cy,
1026
+ r: T.value.radius,
1024
1027
  fill: e.value.backgroundColor,
1025
- filter: e.value.donutUseShadow ? `url(#shadow_${oe.value})` : ""
1026
- }, null, 8, qa),
1027
- z("g", Wa, [
1028
- (l(!0), o(p, null, I(P.value.chart, (t, i) => (l(), o("path", {
1028
+ filter: e.value.donutUseShadow ? `url(#shadow_${X.value})` : ""
1029
+ }, null, 8, ja),
1030
+ L("g", Ga, [
1031
+ (a(!0), o(p, null, I(T.value.chart, (t, i) => (a(), o("path", {
1029
1032
  d: t.arcSlice,
1030
1033
  fill: t.color,
1031
- stroke: Me.value,
1034
+ stroke: Fe.value,
1032
1035
  "stroke-width": e.value.donutStrokeWidth,
1033
1036
  filter: _e(t.id)
1034
- }, null, 8, Xa))), 256)),
1035
- (l(!0), o(p, null, I(P.value.chart, (t, i) => (l(), o("path", {
1037
+ }, null, 8, Ya))), 256)),
1038
+ (a(!0), o(p, null, I(T.value.chart, (t, i) => (a(), o("path", {
1036
1039
  d: t.arcSlice,
1037
1040
  fill: "transparent",
1038
- onMouseenter: (u) => P.value.useTooltip({ datapoint: t, seriesIndex: i }),
1039
- onMouseout: (u) => P.value.killTooltip({ datapoint: t, seriesIndex: i }),
1040
- onClick: (u) => P.value.selectDatapoint({ datapoint: t, seriesIndex: i })
1041
- }, null, 40, ja))), 256))
1041
+ onMouseenter: (u) => T.value.useTooltip({ datapoint: t, seriesIndex: i }),
1042
+ onMouseout: (u) => T.value.killTooltip({ datapoint: t, seriesIndex: i }),
1043
+ onClick: (u) => T.value.selectDatapoint({ datapoint: t, seriesIndex: i })
1044
+ }, null, 40, Za))), 256))
1042
1045
  ]),
1043
- e.value.showDataLabels ? (l(), o("g", Ga, [
1044
- (l(!0), o(p, null, I(P.value.chart, (t, i) => (l(), o(p, null, [
1045
- P.value.isArcBigEnough(t) ? (l(), o("circle", {
1046
+ e.value.showDataLabels ? (a(), o("g", Ja, [
1047
+ (a(!0), o(p, null, I(T.value.chart, (t, i) => (a(), o(p, null, [
1048
+ T.value.isArcBigEnough(t) ? (a(), o("circle", {
1046
1049
  key: 0,
1047
- cx: r(Ee)(t).x,
1050
+ cx: r(Te)(t).x,
1048
1051
  cy: r(at)(t) - 3.7,
1049
1052
  fill: t.color,
1050
1053
  stroke: e.value.backgroundColor,
1051
1054
  "stroke-width": 1,
1052
1055
  r: 3,
1053
1056
  filter: _e(t.id)
1054
- }, null, 8, Ya)) : g("", !0),
1055
- P.value.isArcBigEnough(t) ? (l(), o("text", {
1057
+ }, null, 8, Qa)) : g("", !0),
1058
+ T.value.isArcBigEnough(t) ? (a(), o("text", {
1056
1059
  key: 1,
1057
- "text-anchor": r(Ee)(t, !0, 20).anchor,
1058
- x: r(Ee)(t, !0).x,
1060
+ "text-anchor": r(Te)(t, !0, 20).anchor,
1061
+ x: r(Te)(t, !0).x,
1059
1062
  y: r(at)(t),
1060
1063
  fill: e.value.color,
1061
1064
  "font-size": e.value.dataLabelFontSize,
1062
1065
  filter: _e(t.id)
1063
- }, F(P.value.displayArcPercentage(t, P.value.chart)) + " (" + F(r(ee)(
1066
+ }, F(T.value.displayArcPercentage(t, T.value.chart)) + " (" + F(r(te)(
1064
1067
  e.value.formatter,
1065
1068
  t.value,
1066
1069
  r(W)({
@@ -1070,44 +1073,44 @@ const Ta = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
1070
1073
  r: e.value.dataLabelRoundingValue
1071
1074
  }),
1072
1075
  { datapoint: t, seriesIndex: i }
1073
- )) + ") ", 9, Za)) : g("", !0),
1074
- P.value.isArcBigEnough(t, !0, 20) ? (l(), o("text", {
1076
+ )) + ") ", 9, Ka)) : g("", !0),
1077
+ T.value.isArcBigEnough(t, !0, 20) ? (a(), o("text", {
1075
1078
  key: 2,
1076
- "text-anchor": r(Ee)(t).anchor,
1077
- x: r(Ee)(t, !0).x,
1079
+ "text-anchor": r(Te)(t).anchor,
1080
+ x: r(Te)(t, !0).x,
1078
1081
  y: r(at)(t) + e.value.dataLabelFontSize,
1079
1082
  fill: e.value.color,
1080
1083
  "font-size": e.value.dataLabelFontSize,
1081
1084
  filter: _e(t.id)
1082
- }, F(t.name), 9, Ja)) : g("", !0)
1085
+ }, F(t.name), 9, el)) : g("", !0)
1083
1086
  ], 64))), 256))
1084
1087
  ])) : g("", !0),
1085
- e.value.donutShowTotal ? (l(), o("g", Qa, [
1086
- z("text", {
1088
+ e.value.donutShowTotal ? (a(), o("g", tl, [
1089
+ L("text", {
1087
1090
  "text-anchor": "middle",
1088
- x: P.value.drawingArea.centerX,
1089
- y: P.value.drawingArea.centerY - e.value.donutTotalLabelFontSize / 2,
1091
+ x: T.value.drawingArea.centerX,
1092
+ y: T.value.drawingArea.centerY - e.value.donutTotalLabelFontSize / 2,
1090
1093
  "font-size": e.value.donutTotalLabelFontSize,
1091
1094
  fill: e.value.color
1092
- }, F(e.value.donutTotalLabelText), 9, Ka),
1093
- z("text", {
1095
+ }, F(e.value.donutTotalLabelText), 9, al),
1096
+ L("text", {
1094
1097
  "text-anchor": "middle",
1095
- x: P.value.drawingArea.centerX,
1096
- y: P.value.drawingArea.centerY + e.value.donutTotalLabelFontSize,
1098
+ x: T.value.drawingArea.centerX,
1099
+ y: T.value.drawingArea.centerY + e.value.donutTotalLabelFontSize,
1097
1100
  "font-size": e.value.donutTotalLabelFontSize,
1098
1101
  fill: e.value.color
1099
1102
  }, F(r(W)({
1100
1103
  p: e.value.valuePrefix,
1101
- v: P.value.total,
1104
+ v: T.value.total,
1102
1105
  s: e.value.valueSuffix,
1103
1106
  r: e.value.dataLabelRoundingValue
1104
- })), 9, el)
1107
+ })), 9, ll)
1105
1108
  ])) : g("", !0)
1106
1109
  ], 64)) : g("", !0),
1107
- $.value === _.LINE ? (l(), o(p, { key: 4 }, [
1108
- e.value.xyShowGrid ? (l(), o("g", tl, [
1109
- (l(!0), o(p, null, I(d.value.yLabels, (t) => (l(), o(p, null, [
1110
- t.y <= d.value.drawingArea.bottom ? (l(), o("line", {
1110
+ $.value === z.LINE ? (a(), o(p, { key: 4 }, [
1111
+ e.value.xyShowGrid ? (a(), o("g", ol, [
1112
+ (a(!0), o(p, null, I(d.value.yLabels, (t) => (a(), o(p, null, [
1113
+ t.y <= d.value.drawingArea.bottom ? (a(), o("line", {
1111
1114
  key: 0,
1112
1115
  x1: d.value.drawingArea.left,
1113
1116
  x2: d.value.drawingArea.right,
@@ -1116,9 +1119,9 @@ const Ta = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
1116
1119
  stroke: e.value.xyGridStroke,
1117
1120
  "stroke-width": e.value.xyGridStrokeWidth,
1118
1121
  "stroke-linecap": "round"
1119
- }, null, 8, al)) : g("", !0)
1122
+ }, null, 8, nl)) : g("", !0)
1120
1123
  ], 64))), 256)),
1121
- (l(!0), o(p, null, I(d.value.extremes.maxSeries + 1, (t, i) => (l(), o("line", {
1124
+ (a(!0), o(p, null, I(d.value.extremes.maxSeries + 1, (t, i) => (a(), o("line", {
1122
1125
  x1: d.value.drawingArea.left + d.value.slotSize * i,
1123
1126
  x2: d.value.drawingArea.left + d.value.slotSize * i,
1124
1127
  y1: d.value.drawingArea.top,
@@ -1126,10 +1129,10 @@ const Ta = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
1126
1129
  stroke: e.value.xyGridStroke,
1127
1130
  "stroke-width": e.value.xyGridStrokeWidth,
1128
1131
  "stroke-linecap": "round"
1129
- }, null, 8, ll))), 256))
1132
+ }, null, 8, il))), 256))
1130
1133
  ])) : g("", !0),
1131
- e.value.xyShowAxis ? (l(), o("g", ol, [
1132
- z("line", {
1134
+ e.value.xyShowAxis ? (a(), o("g", ul, [
1135
+ L("line", {
1133
1136
  x1: d.value.drawingArea.left,
1134
1137
  x2: d.value.drawingArea.left,
1135
1138
  y1: d.value.drawingArea.top,
@@ -1137,8 +1140,8 @@ const Ta = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
1137
1140
  stroke: e.value.xyAxisStroke,
1138
1141
  "stroke-width": e.value.xyAxisStrokeWidth,
1139
1142
  "stroke-linecap": "round"
1140
- }, null, 8, nl),
1141
- z("line", {
1143
+ }, null, 8, rl),
1144
+ L("line", {
1142
1145
  x1: d.value.drawingArea.left,
1143
1146
  x2: d.value.drawingArea.right,
1144
1147
  y1: isNaN(d.value.absoluteZero) ? d.value.drawingArea.bottom : d.value.absoluteZero,
@@ -1146,16 +1149,16 @@ const Ta = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
1146
1149
  stroke: e.value.xyAxisStroke,
1147
1150
  "stroke-width": e.value.xyAxisStrokeWidth,
1148
1151
  "stroke-linecap": "round"
1149
- }, null, 8, il)
1152
+ }, null, 8, sl)
1150
1153
  ])) : g("", !0),
1151
- e.value.xyShowScale ? (l(), o("g", {
1154
+ e.value.xyShowScale ? (a(), o("g", {
1152
1155
  key: 2,
1153
1156
  class: "yLabels",
1154
1157
  ref_key: "scaleLabels",
1155
- ref: Re
1158
+ ref: Me
1156
1159
  }, [
1157
- (l(!0), o(p, null, I(d.value.yLabels, (t, i) => (l(), o(p, null, [
1158
- t.y <= d.value.drawingArea.bottom ? (l(), o("line", {
1160
+ (a(!0), o(p, null, I(d.value.yLabels, (t, i) => (a(), o(p, null, [
1161
+ t.y <= d.value.drawingArea.bottom ? (a(), o("line", {
1159
1162
  key: 0,
1160
1163
  x1: t.x + 4,
1161
1164
  x2: d.value.drawingArea.left,
@@ -1164,15 +1167,15 @@ const Ta = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
1164
1167
  stroke: e.value.xyAxisStroke,
1165
1168
  "stroke-width": e.value.xyAxisStrokeWidth,
1166
1169
  "stroke-linecap": "round"
1167
- }, null, 8, ul)) : g("", !0),
1168
- t.y <= d.value.drawingArea.bottom ? (l(), o("text", {
1170
+ }, null, 8, vl)) : g("", !0),
1171
+ t.y <= d.value.drawingArea.bottom ? (a(), o("text", {
1169
1172
  key: 1,
1170
1173
  x: t.x,
1171
1174
  y: t.y + e.value.xyLabelsYFontSize / 3,
1172
1175
  "text-anchor": "end",
1173
1176
  "font-size": e.value.xyLabelsYFontSize,
1174
1177
  fill: e.value.color
1175
- }, F(r(ee)(
1178
+ }, F(r(te)(
1176
1179
  e.value.formatter,
1177
1180
  t.value,
1178
1181
  r(W)({
@@ -1182,12 +1185,12 @@ const Ta = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
1182
1185
  r: e.value.dataLabelRoundingValue
1183
1186
  }),
1184
1187
  { datapoint: t, seriesIndex: i }
1185
- )), 9, rl)) : g("", !0)
1188
+ )), 9, dl)) : g("", !0)
1186
1189
  ], 64))), 256))
1187
1190
  ], 512)) : g("", !0),
1188
- e.value.xyShowScale && e.value.xyPeriods.length ? (l(), o("g", sl, [
1189
- (l(!0), o(p, null, I(G.value.map((t) => t.text), (t, i) => (l(), o(p, null, [
1190
- !e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && i % Math.floor((m.value.end - m.value.start) / xe.value) === 0 || m.value.end - m.value.start <= xe.value ? (l(), o("line", {
1191
+ e.value.xyShowScale && e.value.xyPeriods.length ? (a(), o("g", cl, [
1192
+ (a(!0), o(p, null, I(Y.value.map((t) => t.text), (t, i) => (a(), o(p, null, [
1193
+ !e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && i % Math.floor((m.value.end - m.value.start) / xe.value) === 0 || m.value.end - m.value.start <= xe.value ? (a(), o("line", {
1191
1194
  key: 0,
1192
1195
  x1: d.value.drawingArea.left + d.value.slotSize * (i + 1) - d.value.slotSize / 2,
1193
1196
  x2: d.value.drawingArea.left + d.value.slotSize * (i + 1) - d.value.slotSize / 2,
@@ -1196,64 +1199,64 @@ const Ta = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
1196
1199
  stroke: e.value.xyAxisStroke,
1197
1200
  "stroke-width": e.value.xyAxisStrokeWidth,
1198
1201
  "stroke-linecap": "round"
1199
- }, null, 8, vl)) : g("", !0)
1202
+ }, null, 8, hl)) : g("", !0)
1200
1203
  ], 64))), 256)),
1201
- z("g", {
1204
+ L("g", {
1202
1205
  ref_key: "timeLabelsEls",
1203
- ref: Z
1206
+ ref: J
1204
1207
  }, [
1205
- (l(!0), o(p, null, I(G.value.map((t) => t.text), (t, i) => (l(), o(p, null, [
1206
- !e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && i % Math.floor((m.value.end - m.value.start) / xe.value) === 0 || m.value.end - m.value.start <= xe.value ? (l(), o("g", dl, [
1208
+ (a(!0), o(p, null, I(Y.value.map((t) => t.text), (t, i) => (a(), o(p, null, [
1209
+ !e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && i % Math.floor((m.value.end - m.value.start) / xe.value) === 0 || m.value.end - m.value.start <= xe.value ? (a(), o("g", fl, [
1207
1210
  String(t).includes(`
1208
- `) ? (l(), o("text", {
1211
+ `) ? (a(), o("text", {
1209
1212
  key: 1,
1210
1213
  class: "vue-data-ui-time-label",
1211
1214
  "font-size": e.value.xyLabelsXFontSize,
1212
1215
  "text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
1213
1216
  fill: e.value.color,
1214
1217
  transform: `translate(${d.value.drawingArea.left + d.value.slotSize * (i + 1) - d.value.slotSize / 2}, ${d.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}), rotate(${e.value.xyPeriodLabelsRotation})`,
1215
- innerHTML: r(Tt)({
1218
+ innerHTML: r(Ot)({
1216
1219
  content: String(t),
1217
1220
  fontSize: e.value.xyLabelsXFontSize,
1218
1221
  fill: e.value.color,
1219
1222
  x: 0,
1220
1223
  y: 0
1221
1224
  })
1222
- }, null, 8, hl)) : (l(), o("text", {
1225
+ }, null, 8, ml)) : (a(), o("text", {
1223
1226
  key: 0,
1224
1227
  class: "vue-data-ui-time-label",
1225
1228
  "font-size": e.value.xyLabelsXFontSize,
1226
1229
  "text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
1227
1230
  fill: e.value.color,
1228
1231
  transform: `translate(${d.value.drawingArea.left + d.value.slotSize * (i + 1) - d.value.slotSize / 2}, ${d.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}), rotate(${e.value.xyPeriodLabelsRotation})`
1229
- }, F(t), 9, cl))
1232
+ }, F(t), 9, gl))
1230
1233
  ])) : g("", !0)
1231
1234
  ], 64))), 256))
1232
1235
  ], 512)
1233
1236
  ])) : g("", !0),
1234
- z("g", fl, [
1235
- (l(!0), o(p, null, I(d.value.dataset, (t, i) => (l(), o("g", gl, [
1236
- e.value.lineSmooth ? (l(), o(p, { key: 0 }, [
1237
- z("path", {
1238
- d: `M ${r(Ot)(t.coordinates)}`,
1237
+ L("g", pl, [
1238
+ (a(!0), o(p, null, I(d.value.dataset, (t, i) => (a(), o("g", xl, [
1239
+ e.value.lineSmooth ? (a(), o(p, { key: 0 }, [
1240
+ L("path", {
1241
+ d: `M ${r(Rt)(t.coordinates)}`,
1239
1242
  stroke: e.value.backgroundColor,
1240
1243
  "stroke-width": e.value.lineStrokeWidth + 1,
1241
1244
  "stroke-linecap": "round",
1242
1245
  fill: "none",
1243
1246
  class: ce({ "quick-animation": !r(D), "vue-data-ui-line-animated": e.value.lineAnimated && !r(D) }),
1244
1247
  style: O({ transition: r(D) ? void 0 : "all 0.3s ease-in-out" })
1245
- }, null, 14, ml),
1246
- z("path", {
1247
- d: `M ${r(Ot)(t.coordinates)}`,
1248
+ }, null, 14, yl),
1249
+ L("path", {
1250
+ d: `M ${r(Rt)(t.coordinates)}`,
1248
1251
  stroke: t.color,
1249
1252
  "stroke-width": e.value.lineStrokeWidth,
1250
1253
  "stroke-linecap": "round",
1251
1254
  fill: "none",
1252
1255
  class: ce({ "quick-animation": !r(D), "vue-data-ui-line-animated": e.value.lineAnimated && !r(D) }),
1253
1256
  style: O({ transition: r(D) ? void 0 : "all 0.3s ease-in-out" })
1254
- }, null, 14, pl)
1255
- ], 64)) : (l(), o(p, { key: 1 }, [
1256
- z("path", {
1257
+ }, null, 14, kl)
1258
+ ], 64)) : (a(), o(p, { key: 1 }, [
1259
+ L("path", {
1257
1260
  d: `M ${t.linePath}`,
1258
1261
  stroke: e.value.backgroundColor,
1259
1262
  "stroke-width": e.value.lineStrokeWidth + 1,
@@ -1261,8 +1264,8 @@ const Ta = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
1261
1264
  fill: "none",
1262
1265
  class: ce({ "quick-animation": !r(D), "vue-data-ui-line-animated": e.value.lineAnimated && !r(D) }),
1263
1266
  style: O({ transition: r(D) ? void 0 : "all 0.3s ease-in-out" })
1264
- }, null, 14, xl),
1265
- z("path", {
1267
+ }, null, 14, bl),
1268
+ L("path", {
1266
1269
  d: `M ${t.linePath}`,
1267
1270
  stroke: t.color,
1268
1271
  "stroke-width": e.value.lineStrokeWidth,
@@ -1270,61 +1273,61 @@ const Ta = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
1270
1273
  fill: "none",
1271
1274
  class: ce({ "quick-animation": !r(D), "vue-data-ui-line-animated": e.value.lineAnimated && !r(D) }),
1272
1275
  style: O({ transition: r(D) ? void 0 : "all 0.3s ease-in-out" })
1273
- }, null, 14, yl)
1276
+ }, null, 14, Sl)
1274
1277
  ], 64)),
1275
- (l(!0), o(p, null, I(t.coordinates, (u, x) => (l(), o("circle", {
1278
+ (a(!0), o(p, null, I(t.coordinates, (u, x) => (a(), o("circle", {
1276
1279
  cx: u.x,
1277
- cy: r(te)(u.y),
1280
+ cy: r(ae)(u.y),
1278
1281
  r: 3,
1279
1282
  fill: t.color,
1280
1283
  stroke: e.value.backgroundColor,
1281
1284
  "stroke-width": "0.5",
1282
1285
  class: ce({ "quick-animation": !r(D) }),
1283
1286
  style: O({ transition: r(D) ? void 0 : "all 0.3s ease-in-out" })
1284
- }, null, 14, kl))), 256))
1287
+ }, null, 14, wl))), 256))
1285
1288
  ]))), 256))
1286
1289
  ]),
1287
- e.value.showDataLabels ? (l(), o("g", bl, [
1288
- (l(!0), o(p, null, I(d.value.dataset, (t, i) => (l(), o(p, null, [
1289
- (l(!0), o(p, null, I(t.coordinates, (u, x) => (l(), o("text", {
1290
+ e.value.showDataLabels ? (a(), o("g", Al, [
1291
+ (a(!0), o(p, null, I(d.value.dataset, (t, i) => (a(), o(p, null, [
1292
+ (a(!0), o(p, null, I(t.coordinates, (u, x) => (a(), o("text", {
1290
1293
  "text-anchor": "middle",
1291
1294
  "font-size": e.value.dataLabelFontSize,
1292
1295
  fill: t.color,
1293
1296
  x: u.x,
1294
- y: r(te)(u.y) - e.value.dataLabelFontSize / 2,
1297
+ y: r(ae)(u.y) - e.value.dataLabelFontSize / 2,
1295
1298
  class: "quick-animation",
1296
1299
  style: O({ transition: r(D) ? void 0 : "all 0.3s ease-in-out" })
1297
- }, F(r(ee)(
1300
+ }, F(r(te)(
1298
1301
  e.value.formatter,
1299
- r(te)(u.value),
1302
+ r(ae)(u.value),
1300
1303
  r(W)({
1301
1304
  p: e.value.valuePrefix,
1302
- v: r(te)(u.value),
1305
+ v: r(ae)(u.value),
1303
1306
  s: e.value.valueSuffix,
1304
1307
  r: e.value.dataLabelRoundingValue
1305
1308
  }),
1306
1309
  { datapoint: u, seriesIndex: x }
1307
- )), 13, Sl))), 256))
1310
+ )), 13, Ll))), 256))
1308
1311
  ], 64))), 256))
1309
1312
  ])) : g("", !0),
1310
- Ye.value ? (l(), o("g", wl, [
1311
- (l(!0), o(p, null, I(d.value.extremes.maxSeries, (t, i) => (l(), o("rect", {
1313
+ Ye.value ? (a(), o("g", _l, [
1314
+ (a(!0), o(p, null, I(d.value.extremes.maxSeries, (t, i) => (a(), o("rect", {
1312
1315
  x: d.value.drawingArea.left + i * d.value.slotSize,
1313
1316
  y: d.value.drawingArea.top,
1314
1317
  height: d.value.drawingArea.height <= 0 ? 1e-5 : d.value.drawingArea.height,
1315
1318
  width: d.value.slotSize <= 0 ? 1e-5 : d.value.slotSize,
1316
- fill: [Y.value, J.value].includes(i) ? e.value.xyHighlighterColor : "transparent",
1319
+ fill: [Z.value, Q.value].includes(i) ? e.value.xyHighlighterColor : "transparent",
1317
1320
  style: O(`opacity:${e.value.xyHighlighterOpacity}`),
1318
1321
  onMouseenter: (u) => d.value.useTooltip(i),
1319
1322
  onMouseleave: (u) => d.value.killTooltip(i),
1320
1323
  onClick: (u) => d.value.selectDatapoint(i)
1321
- }, null, 44, Al))), 256))
1324
+ }, null, 44, zl))), 256))
1322
1325
  ])) : g("", !0)
1323
1326
  ], 64)) : g("", !0),
1324
- $.value === _.BAR ? (l(), o(p, { key: 5 }, [
1325
- e.value.xyShowGrid ? (l(), o("g", Ll, [
1326
- (l(!0), o(p, null, I(s.value.yLabels, (t) => (l(), o(p, null, [
1327
- t.y <= s.value.drawingArea.bottom ? (l(), o("line", {
1327
+ $.value === z.BAR ? (a(), o(p, { key: 5 }, [
1328
+ e.value.xyShowGrid ? (a(), o("g", Cl, [
1329
+ (a(!0), o(p, null, I(s.value.yLabels, (t) => (a(), o(p, null, [
1330
+ t.y <= s.value.drawingArea.bottom ? (a(), o("line", {
1328
1331
  key: 0,
1329
1332
  x1: s.value.drawingArea.left,
1330
1333
  x2: s.value.drawingArea.right,
@@ -1333,9 +1336,9 @@ const Ta = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
1333
1336
  stroke: e.value.xyGridStroke,
1334
1337
  "stroke-width": e.value.xyGridStrokeWidth,
1335
1338
  "stroke-linecap": "round"
1336
- }, null, 8, _l)) : g("", !0)
1339
+ }, null, 8, $l)) : g("", !0)
1337
1340
  ], 64))), 256)),
1338
- (l(!0), o(p, null, I(s.value.extremes.maxSeries + 1, (t, i) => (l(), o("line", {
1341
+ (a(!0), o(p, null, I(s.value.extremes.maxSeries + 1, (t, i) => (a(), o("line", {
1339
1342
  x1: s.value.drawingArea.left + s.value.slotSize * i,
1340
1343
  x2: s.value.drawingArea.left + s.value.slotSize * i,
1341
1344
  y1: s.value.drawingArea.top,
@@ -1343,10 +1346,10 @@ const Ta = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
1343
1346
  stroke: e.value.xyGridStroke,
1344
1347
  "stroke-width": e.value.xyGridStrokeWidth,
1345
1348
  "stroke-linecap": "round"
1346
- }, null, 8, zl))), 256))
1349
+ }, null, 8, Il))), 256))
1347
1350
  ])) : g("", !0),
1348
- e.value.xyShowAxis ? (l(), o("g", Cl, [
1349
- z("line", {
1351
+ e.value.xyShowAxis ? (a(), o("g", El, [
1352
+ L("line", {
1350
1353
  x1: s.value.drawingArea.left,
1351
1354
  x2: s.value.drawingArea.left,
1352
1355
  y1: s.value.drawingArea.top,
@@ -1354,8 +1357,8 @@ const Ta = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
1354
1357
  stroke: e.value.xyAxisStroke,
1355
1358
  "stroke-width": e.value.xyAxisStrokeWidth,
1356
1359
  "stroke-linecap": "round"
1357
- }, null, 8, $l),
1358
- z("line", {
1360
+ }, null, 8, Tl),
1361
+ L("line", {
1359
1362
  x1: s.value.drawingArea.left,
1360
1363
  x2: s.value.drawingArea.right,
1361
1364
  y1: isNaN(s.value.absoluteZero) ? s.value.drawingArea.bottom : s.value.absoluteZero,
@@ -1363,16 +1366,16 @@ const Ta = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
1363
1366
  stroke: e.value.xyAxisStroke,
1364
1367
  "stroke-width": e.value.xyAxisStrokeWidth,
1365
1368
  "stroke-linecap": "round"
1366
- }, null, 8, Il)
1369
+ }, null, 8, Pl)
1367
1370
  ])) : g("", !0),
1368
- e.value.xyShowScale ? (l(), o("g", {
1371
+ e.value.xyShowScale ? (a(), o("g", {
1369
1372
  key: 2,
1370
1373
  class: "yLabels",
1371
1374
  ref_key: "scaleLabels",
1372
- ref: Re
1375
+ ref: Me
1373
1376
  }, [
1374
- (l(!0), o(p, null, I(s.value.yLabels, (t, i) => (l(), o(p, null, [
1375
- t.y <= s.value.drawingArea.bottom ? (l(), o("line", {
1377
+ (a(!0), o(p, null, I(s.value.yLabels, (t, i) => (a(), o(p, null, [
1378
+ t.y <= s.value.drawingArea.bottom ? (a(), o("line", {
1376
1379
  key: 0,
1377
1380
  x1: t.x + 4,
1378
1381
  x2: s.value.drawingArea.left,
@@ -1381,15 +1384,15 @@ const Ta = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
1381
1384
  stroke: e.value.xyAxisStroke,
1382
1385
  "stroke-width": e.value.xyAxisStrokeWidth,
1383
1386
  "stroke-linecap": "round"
1384
- }, null, 8, El)) : g("", !0),
1385
- t.y <= s.value.drawingArea.bottom ? (l(), o("text", {
1387
+ }, null, 8, Ol)) : g("", !0),
1388
+ t.y <= s.value.drawingArea.bottom ? (a(), o("text", {
1386
1389
  key: 1,
1387
1390
  x: t.x,
1388
1391
  y: t.y + e.value.xyLabelsYFontSize / 3,
1389
1392
  "text-anchor": "end",
1390
1393
  "font-size": e.value.xyLabelsYFontSize,
1391
1394
  fill: e.value.color
1392
- }, F(r(ee)(
1395
+ }, F(r(te)(
1393
1396
  e.value.formatter,
1394
1397
  t.value,
1395
1398
  r(W)({
@@ -1399,11 +1402,11 @@ const Ta = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
1399
1402
  r: e.value.dataLabelRoundingValue
1400
1403
  }),
1401
1404
  { datapoint: t, seriesIndex: i }
1402
- )), 9, Pl)) : g("", !0)
1405
+ )), 9, Rl)) : g("", !0)
1403
1406
  ], 64))), 256))
1404
1407
  ], 512)) : g("", !0),
1405
- e.value.xyShowScale && e.value.xyPeriods.length ? (l(), o("g", Tl, [
1406
- (l(!0), o(p, null, I(e.value.xyPeriods.slice(m.value.start, m.value.end), (t, i) => (l(), o("line", {
1408
+ e.value.xyShowScale && e.value.xyPeriods.length ? (a(), o("g", Ml, [
1409
+ (a(!0), o(p, null, I(e.value.xyPeriods.slice(m.value.start, m.value.end), (t, i) => (a(), o("line", {
1407
1410
  x1: s.value.drawingArea.left + s.value.slotSize * (i + 1) - s.value.slotSize / 2,
1408
1411
  x2: s.value.drawingArea.left + s.value.slotSize * (i + 1) - s.value.slotSize / 2,
1409
1412
  y1: s.value.drawingArea.bottom,
@@ -1411,177 +1414,177 @@ const Ta = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
1411
1414
  stroke: e.value.xyAxisStroke,
1412
1415
  "stroke-width": e.value.xyAxisStrokeWidth,
1413
1416
  "stroke-linecap": "round"
1414
- }, null, 8, Ol))), 256)),
1415
- z("g", {
1417
+ }, null, 8, Fl))), 256)),
1418
+ L("g", {
1416
1419
  ref_key: "timeLabelsEls",
1417
- ref: Z
1420
+ ref: J
1418
1421
  }, [
1419
- (l(!0), o(p, null, I(G.value.map((t) => t.text), (t, i) => (l(), o(p, null, [
1420
- !e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && i % Math.floor((m.value.end - m.value.start) / xe.value) === 0 || m.value.end - m.value.start <= xe.value ? (l(), o("g", Rl, [
1422
+ (a(!0), o(p, null, I(Y.value.map((t) => t.text), (t, i) => (a(), o(p, null, [
1423
+ !e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && i % Math.floor((m.value.end - m.value.start) / xe.value) === 0 || m.value.end - m.value.start <= xe.value ? (a(), o("g", Nl, [
1421
1424
  String(t).includes(`
1422
- `) ? (l(), o("text", {
1425
+ `) ? (a(), o("text", {
1423
1426
  key: 1,
1424
1427
  class: "vue-data-ui-time-label",
1425
1428
  "font-size": e.value.xyLabelsXFontSize,
1426
1429
  "text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
1427
1430
  fill: e.value.color,
1428
1431
  transform: `translate(${s.value.drawingArea.left + s.value.slotSize * (i + 1) - s.value.slotSize / 2}, ${s.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}), rotate(${e.value.xyPeriodLabelsRotation})`,
1429
- innerHTML: r(Tt)({
1432
+ innerHTML: r(Ot)({
1430
1433
  content: String(t),
1431
1434
  fontSize: e.value.xyLabelsXFontSize,
1432
1435
  fill: e.value.color,
1433
1436
  x: 0,
1434
1437
  y: 0
1435
1438
  })
1436
- }, null, 8, Fl)) : (l(), o("text", {
1439
+ }, null, 8, Dl)) : (a(), o("text", {
1437
1440
  key: 0,
1438
1441
  class: "vue-data-ui-time-label",
1439
1442
  "font-size": e.value.xyLabelsXFontSize,
1440
1443
  "text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
1441
1444
  fill: e.value.color,
1442
1445
  transform: `translate(${s.value.drawingArea.left + s.value.slotSize * (i + 1) - s.value.slotSize / 2}, ${s.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}), rotate(${e.value.xyPeriodLabelsRotation})`
1443
- }, F(t), 9, Ml))
1446
+ }, F(t), 9, Bl))
1444
1447
  ])) : g("", !0)
1445
1448
  ], 64))), 256))
1446
1449
  ], 512)
1447
1450
  ])) : g("", !0),
1448
- z("g", Nl, [
1449
- (l(!0), o(p, null, I(s.value.dataset, (t, i) => (l(), o(p, null, [
1450
- (l(!0), o(p, null, I(t.coordinates, (u, x) => (l(), o("rect", {
1451
+ L("g", Ul, [
1452
+ (a(!0), o(p, null, I(s.value.dataset, (t, i) => (a(), o(p, null, [
1453
+ (a(!0), o(p, null, I(t.coordinates, (u, x) => (a(), o("rect", {
1451
1454
  x: u.x,
1452
1455
  width: u.width <= 0 ? 1e-5 : u.width,
1453
- height: r(te)(u.height <= 0 ? 1e-5 : u.height),
1454
- y: r(te)(u.y),
1456
+ height: r(ae)(u.height <= 0 ? 1e-5 : u.height),
1457
+ y: r(ae)(u.y),
1455
1458
  fill: t.color,
1456
1459
  stroke: e.value.backgroundColor,
1457
1460
  "stroke-width": e.value.barStrokeWidth,
1458
1461
  "stroke-linecap": "round",
1459
1462
  class: ce({ "vue-data-ui-bar-animated": e.value.barAnimated && u.value < 0 && !r(D) })
1460
1463
  }, [
1461
- e.value.barAnimated && u.value > 0 && !r(Ne) && !r(Be) ? (l(), o("animate", {
1464
+ e.value.barAnimated && u.value > 0 && !r(Be) && !r(De) ? (a(), o("animate", {
1462
1465
  key: 0,
1463
1466
  attributeName: "height",
1464
1467
  from: 0,
1465
1468
  to: u.height,
1466
1469
  dur: "0.5s"
1467
- }, null, 8, Dl)) : g("", !0),
1468
- e.value.barAnimated && u.value > 0 && !r(Ne) && !r(Be) ? (l(), o("animate", {
1470
+ }, null, 8, Hl)) : g("", !0),
1471
+ e.value.barAnimated && u.value > 0 && !r(Be) && !r(De) ? (a(), o("animate", {
1469
1472
  key: 1,
1470
1473
  attributeName: "y",
1471
1474
  from: s.value.absoluteZero,
1472
1475
  to: s.value.absoluteZero - u.height,
1473
1476
  dur: "0.5s"
1474
- }, null, 8, Ul)) : g("", !0)
1475
- ], 10, Bl))), 256))
1477
+ }, null, 8, ql)) : g("", !0)
1478
+ ], 10, Vl))), 256))
1476
1479
  ], 64))), 256))
1477
1480
  ]),
1478
- e.value.showDataLabels ? (l(), o("g", Vl, [
1479
- (l(!0), o(p, null, I(s.value.dataset, (t, i) => (l(), o(p, null, [
1480
- (l(!0), o(p, null, I(t.coordinates, (u, x) => (l(), o("text", {
1481
+ e.value.showDataLabels ? (a(), o("g", Wl, [
1482
+ (a(!0), o(p, null, I(s.value.dataset, (t, i) => (a(), o(p, null, [
1483
+ (a(!0), o(p, null, I(t.coordinates, (u, x) => (a(), o("text", {
1481
1484
  x: u.x + u.width / 2,
1482
- y: r(te)(u.y) - e.value.dataLabelFontSize / 2,
1485
+ y: r(ae)(u.y) - e.value.dataLabelFontSize / 2,
1483
1486
  "text-anchor": "middle",
1484
1487
  "font-size": e.value.dataLabelFontSize,
1485
1488
  fill: t.color,
1486
1489
  class: "quick-animation"
1487
- }, F(r(ee)(
1490
+ }, F(r(te)(
1488
1491
  e.value.formatter,
1489
- r(te)(u.value),
1492
+ r(ae)(u.value),
1490
1493
  r(W)({
1491
1494
  p: e.value.valuePrefix,
1492
- v: r(te)(u.value),
1495
+ v: r(ae)(u.value),
1493
1496
  s: e.value.valueSuffix,
1494
1497
  r: e.value.dataLabelRoundingValue
1495
1498
  }),
1496
1499
  { datapoint: u, seriesIndex: x }
1497
- )), 9, Hl))), 256))
1500
+ )), 9, Xl))), 256))
1498
1501
  ], 64))), 256))
1499
1502
  ])) : g("", !0),
1500
- Ye.value ? (l(), o("g", ql, [
1501
- (l(!0), o(p, null, I(s.value.extremes.maxSeries, (t, i) => (l(), o("rect", {
1503
+ Ye.value ? (a(), o("g", jl, [
1504
+ (a(!0), o(p, null, I(s.value.extremes.maxSeries, (t, i) => (a(), o("rect", {
1502
1505
  x: s.value.drawingArea.left + i * s.value.slotSize,
1503
1506
  y: s.value.drawingArea.top,
1504
1507
  height: s.value.drawingArea.height <= 0 ? 1e-5 : s.value.drawingArea.height,
1505
1508
  width: s.value.slotSize <= 0 ? 1e-5 : s.value.slotSize,
1506
- fill: [Y.value, J.value].includes(i) ? e.value.xyHighlighterColor : "transparent",
1509
+ fill: [Z.value, Q.value].includes(i) ? e.value.xyHighlighterColor : "transparent",
1507
1510
  style: O(`opacity:${e.value.xyHighlighterOpacity}`),
1508
1511
  onMouseenter: (u) => s.value.useTooltip(i),
1509
1512
  onMouseleave: (u) => s.value.killTooltip(i),
1510
1513
  onClick: (u) => s.value.selectDatapoint(i)
1511
- }, null, 44, Wl))), 256))
1514
+ }, null, 44, Gl))), 256))
1512
1515
  ])) : g("", !0)
1513
1516
  ], 64)) : g("", !0),
1514
- [_.LINE, _.BAR].includes($.value) ? (l(), o("g", Xl, [
1515
- e.value.xAxisLabel && $.value === _.LINE ? (l(), o("g", {
1517
+ [z.LINE, z.BAR].includes($.value) ? (a(), o("g", Yl, [
1518
+ e.value.xAxisLabel && $.value === z.LINE ? (a(), o("g", {
1516
1519
  key: 0,
1517
1520
  ref_key: "xAxisLabel",
1518
- ref: vt
1521
+ ref: dt
1519
1522
  }, [
1520
- z("text", {
1523
+ L("text", {
1521
1524
  "font-size": e.value.axisLabelsFontSize,
1522
1525
  fill: e.value.color,
1523
1526
  "text-anchor": "middle",
1524
1527
  x: d.value.drawingArea.left + d.value.drawingArea.width / 2,
1525
1528
  y: b.value.height - e.value.axisLabelsFontSize / 3
1526
- }, F(e.value.xAxisLabel), 9, jl)
1529
+ }, F(e.value.xAxisLabel), 9, Zl)
1527
1530
  ], 512)) : g("", !0),
1528
- e.value.xAxisLabel && $.value === _.BAR ? (l(), o("g", {
1531
+ e.value.xAxisLabel && $.value === z.BAR ? (a(), o("g", {
1529
1532
  key: 1,
1530
1533
  ref_key: "xAxisLabel",
1531
- ref: vt
1534
+ ref: dt
1532
1535
  }, [
1533
- z("text", {
1536
+ L("text", {
1534
1537
  "font-size": e.value.axisLabelsFontSize,
1535
1538
  fill: e.value.color,
1536
1539
  "text-anchor": "middle",
1537
1540
  x: s.value.drawingArea.left + s.value.drawingArea.width / 2,
1538
1541
  y: b.value.height - e.value.axisLabelsFontSize / 3
1539
- }, F(e.value.xAxisLabel), 9, Gl)
1542
+ }, F(e.value.xAxisLabel), 9, Jl)
1540
1543
  ], 512)) : g("", !0),
1541
- e.value.yAxisLabel && $.value === _.LINE ? (l(), o("g", {
1544
+ e.value.yAxisLabel && $.value === z.LINE ? (a(), o("g", {
1542
1545
  key: 2,
1543
1546
  ref_key: "yAxisLabel",
1544
- ref: dt
1547
+ ref: ct
1545
1548
  }, [
1546
- z("text", {
1549
+ L("text", {
1547
1550
  "font-size": e.value.axisLabelsFontSize,
1548
1551
  fill: e.value.color,
1549
1552
  transform: `translate(${e.value.axisLabelsFontSize}, ${d.value.drawingArea.top + d.value.drawingArea.height / 2}) rotate(-90)`,
1550
1553
  "text-anchor": "middle"
1551
- }, F(e.value.yAxisLabel), 9, Yl)
1554
+ }, F(e.value.yAxisLabel), 9, Ql)
1552
1555
  ], 512)) : g("", !0),
1553
- e.value.yAxisLabel && $.value === _.BAR ? (l(), o("g", {
1556
+ e.value.yAxisLabel && $.value === z.BAR ? (a(), o("g", {
1554
1557
  key: 3,
1555
1558
  ref_key: "yAxisLabel",
1556
- ref: dt
1559
+ ref: ct
1557
1560
  }, [
1558
- z("text", {
1561
+ L("text", {
1559
1562
  "font-size": e.value.axisLabelsFontSize,
1560
1563
  fill: e.value.color,
1561
1564
  transform: `translate(${e.value.axisLabelsFontSize}, ${s.value.drawingArea.top + s.value.drawingArea.height / 2}) rotate(-90)`,
1562
1565
  "text-anchor": "middle"
1563
- }, F(e.value.yAxisLabel), 9, Zl)
1566
+ }, F(e.value.yAxisLabel), 9, Kl)
1564
1567
  ], 512)) : g("", !0)
1565
1568
  ])) : g("", !0)
1566
- ], 12, Oa)) : g("", !0),
1567
- a.$slots.watermark ? (l(), o("div", Jl, [
1568
- U(a.$slots, "watermark", he(fe({ isPrinting: r(Ne) || r(Be) })), void 0, !0)
1569
+ ], 12, Fa)) : g("", !0),
1570
+ l.$slots.watermark ? (a(), o("div", eo, [
1571
+ U(l.$slots, "watermark", he(fe({ isPrinting: r(Be) || r(De) })), void 0, !0)
1569
1572
  ])) : g("", !0),
1570
- [_.BAR, _.LINE].includes($.value) && e.value.zoomXy && k.value.maxSeriesLength > 1 ? (l(), o("div", {
1571
- key: `slicer_${Oe.value}`,
1573
+ [z.BAR, z.LINE].includes($.value) && e.value.zoomXy && k.value.maxSeriesLength > 1 ? (a(), o("div", {
1574
+ key: `slicer_${Re.value}`,
1572
1575
  ref_key: "quickChartSlicer",
1573
1576
  ref: it
1574
1577
  }, [
1575
- (l(), qe(wa, {
1578
+ (a(), Ee(La, {
1576
1579
  ref_key: "slicerComponent",
1577
- ref: At,
1578
- key: `slicer_${Oe.value}`,
1580
+ ref: Lt,
1581
+ key: `slicer_${Re.value}`,
1579
1582
  background: e.value.zoomColor,
1580
1583
  borderColor: e.value.backgroundColor,
1581
1584
  fontSize: e.value.zoomFontSize,
1582
1585
  useResetSlot: e.value.zoomUseResetSlot,
1583
- labelLeft: e.value.xyPeriods[m.value.start] ? G.value[0].text : "",
1584
- labelRight: e.value.xyPeriods[m.value.end - 1] ? G.value.at(-1).text : "",
1586
+ labelLeft: e.value.xyPeriods[m.value.start] ? Y.value[0].text : "",
1587
+ labelRight: e.value.xyPeriods[m.value.end - 1] ? Y.value.at(-1).text : "",
1585
1588
  textColor: e.value.color,
1586
1589
  inputColor: e.value.zoomColor,
1587
1590
  selectColor: e.value.zoomHighlightColor,
@@ -1594,10 +1597,10 @@ const Ta = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
1594
1597
  minimapSelectedColorOpacity: e.value.zoomMinimap.selectedColorOpacity,
1595
1598
  minimapSelectionRadius: e.value.zoomMinimap.selectionRadius,
1596
1599
  minimapLineColor: e.value.zoomMinimap.lineColor,
1597
- minimap: Zt.value,
1600
+ minimap: Jt.value,
1598
1601
  minimapIndicatorColor: e.value.zoomMinimap.indicatorColor,
1599
1602
  verticalHandles: e.value.zoomMinimap.verticalHandles,
1600
- minimapSelectedIndex: J.value,
1603
+ minimapSelectedIndex: Q.value,
1601
1604
  start: m.value.start,
1602
1605
  "onUpdate:start": c[0] || (c[0] = (t) => m.value.start = t),
1603
1606
  end: m.value.end,
@@ -1606,120 +1609,128 @@ const Ta = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
1606
1609
  refreshEndPoint: e.value.zoomEndIndex !== null ? e.value.zoomEndIndex + 1 : k.value.maxSeriesLength,
1607
1610
  enableRangeHandles: e.value.zoomEnableRangeHandles,
1608
1611
  enableSelectionDrag: e.value.zoomEnableSelectionDrag,
1609
- onReset: Gt,
1610
- onTrapMouse: jt
1612
+ onReset: Yt,
1613
+ onTrapMouse: Gt
1611
1614
  }, {
1612
- "reset-action": K(({ reset: t }) => [
1613
- U(a.$slots, "reset-action", he(fe({ reset: t })), void 0, !0)
1615
+ "reset-action": ee(({ reset: t }) => [
1616
+ U(l.$slots, "reset-action", he(fe({ reset: t })), void 0, !0)
1614
1617
  ]),
1615
1618
  _: 3
1616
1619
  }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "smoothMinimap", "minimapSelectedColor", "minimapSelectedColorOpacity", "minimapSelectionRadius", "minimapLineColor", "minimap", "minimapIndicatorColor", "verticalHandles", "minimapSelectedIndex", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"]))
1617
1620
  ])) : g("", !0),
1618
- e.value.showLegend ? (l(), o("div", {
1621
+ L("div", {
1622
+ id: `legend-bottom-${X.value}`
1623
+ }, null, 8, to),
1624
+ vt.value ? (a(), Ee(ia, {
1619
1625
  key: 7,
1620
- ref_key: "quickChartLegend",
1621
- ref: nt,
1622
- class: "vue-ui-quick-chart-legend",
1623
- style: O(`background:transparent;color:${e.value.color}`)
1626
+ to: e.value.legendPosition === "top" ? `#legend-top-${X.value}` : `#legend-bottom-${X.value}`
1624
1627
  }, [
1625
- $.value === _.DONUT ? (l(!0), o(p, { key: 0 }, I(P.value.legend, (t, i) => (l(), o("div", {
1626
- class: "vue-ui-quick-chart-legend-item",
1627
- onClick: (u) => {
1628
- Xt(t, P.value.dataset), ge("selectLegend", t);
1629
- },
1630
- style: O(`cursor: ${P.value.legend.length > 1 ? "pointer" : "default"}; opacity:${A.value.includes(t.id) ? "0.5" : "1"}`)
1628
+ e.value.showLegend ? (a(), o("div", {
1629
+ key: 0,
1630
+ ref_key: "quickChartLegend",
1631
+ ref: nt,
1632
+ class: "vue-ui-quick-chart-legend",
1633
+ style: O(`background:transparent;color:${e.value.color}`)
1631
1634
  }, [
1632
- e.value.useCustomLegend ? U(a.$slots, "legend", et({
1633
- key: 0,
1634
- ref_for: !0
1635
- }, { legend: t }), void 0, !0) : (l(), o(p, { key: 1 }, [
1636
- ke(r(B), {
1637
- name: e.value.legendIcon,
1638
- stroke: t.color,
1639
- size: e.value.legendIconSize
1640
- }, null, 8, ["name", "stroke", "size"]),
1641
- z("span", {
1642
- style: O(`font-size:${e.value.legendFontSize}px`)
1643
- }, F(t.name), 5),
1644
- z("span", {
1645
- style: O(`font-size:${e.value.legendFontSize}px;font-variant-numeric:tabular-nums`)
1646
- }, F(A.value.includes(t.id) ? "-" : r(ee)(
1647
- e.value.formatter,
1648
- t.absoluteValue,
1649
- r(W)({
1650
- p: e.value.valuePrefix,
1651
- v: t.absoluteValue,
1652
- s: e.value.valueSuffix,
1653
- r: e.value.dataLabelRoundingValue
1654
- }),
1655
- { datapoint: t, seriesIndex: i }
1656
- )), 5),
1657
- A.value.includes(t.id) ? (l(), o("span", {
1635
+ $.value === z.DONUT ? (a(!0), o(p, { key: 0 }, I(T.value.legend, (t, i) => (a(), o("div", {
1636
+ class: "vue-ui-quick-chart-legend-item",
1637
+ onClick: (u) => {
1638
+ jt(t, T.value.dataset), ge("selectLegend", t);
1639
+ },
1640
+ style: O(`cursor: ${T.value.legend.length > 1 ? "pointer" : "default"}; opacity:${A.value.includes(t.id) ? "0.5" : "1"}`)
1641
+ }, [
1642
+ e.value.useCustomLegend ? U(l.$slots, "legend", et({
1658
1643
  key: 0,
1659
- style: O(`font-size:${e.value.legendFontSize}px`)
1660
- }, " ( - % ) ", 4)) : De.value ? (l(), o("span", {
1661
- key: 1,
1662
- style: O(`font-size:${e.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
1663
- }, " ( - % ) ", 4)) : (l(), o("span", {
1664
- key: 2,
1665
- style: O(`font-size:${e.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
1666
- }, " (" + F(r(W)({
1667
- v: t.value / P.value.total * 100,
1668
- s: "%",
1669
- r: e.value.dataLabelRoundingPercentage
1670
- })) + ") ", 5))
1671
- ], 64))
1672
- ], 12, Ql))), 256)) : g("", !0),
1673
- $.value === _.LINE ? (l(!0), o(p, { key: 1 }, I(d.value.legend, (t, i) => (l(), o("div", {
1674
- class: "vue-ui-quick-chart-legend-item",
1675
- onClick: (u) => {
1676
- kt(t.id, d.value.legend.length - 1), ge("selectLegend", t);
1677
- },
1678
- style: O(`cursor: ${d.value.legend.length > 1 ? "pointer" : "default"}; opacity:${A.value.includes(t.id) ? "0.5" : "1"}`)
1679
- }, [
1680
- e.value.useCustomLegend ? U(a.$slots, "legend", et({
1681
- key: 0,
1682
- ref_for: !0
1683
- }, { legend: t }), void 0, !0) : (l(), o(p, { key: 1 }, [
1684
- ke(r(B), {
1685
- name: e.value.legendIcon,
1686
- stroke: t.color,
1687
- size: e.value.legendIconSize
1688
- }, null, 8, ["name", "stroke", "size"]),
1689
- z("span", {
1690
- style: O(`font-size:${e.value.legendFontSize}px`)
1691
- }, F(t.name), 5)
1692
- ], 64))
1693
- ], 12, Kl))), 256)) : g("", !0),
1694
- $.value === _.BAR ? (l(!0), o(p, { key: 2 }, I(s.value.legend, (t, i) => (l(), o("div", {
1695
- class: "vue-ui-quick-chart-legend-item",
1696
- onClick: (u) => {
1697
- kt(t.id, s.value.legend.length - 1), ge("selectLegend", t);
1698
- },
1699
- style: O(`cursor: ${s.value.legend.length > 1 ? "pointer" : "default"}; opacity:${A.value.includes(t.id) ? "0.5" : "1"}`)
1700
- }, [
1701
- e.value.useCustomLegend ? U(a.$slots, "legend", et({
1702
- key: 0,
1703
- ref_for: !0
1704
- }, { legend: t }), void 0, !0) : (l(), o(p, { key: 1 }, [
1705
- ke(r(B), {
1706
- name: e.value.legendIcon,
1707
- stroke: t.color,
1708
- size: e.value.legendIconSize
1709
- }, null, 8, ["name", "stroke", "size"]),
1710
- z("span", {
1711
- style: O(`font-size:${e.value.legendFontSize}px`)
1712
- }, F(t.name), 5)
1713
- ], 64))
1714
- ], 12, eo))), 256)) : g("", !0)
1715
- ], 4)) : g("", !0),
1716
- a.$slots.source ? (l(), o("div", {
1644
+ ref_for: !0
1645
+ }, { legend: t }), void 0, !0) : (a(), o(p, { key: 1 }, [
1646
+ ke(r(B), {
1647
+ name: e.value.legendIcon,
1648
+ stroke: t.color,
1649
+ size: e.value.legendIconSize
1650
+ }, null, 8, ["name", "stroke", "size"]),
1651
+ L("span", {
1652
+ style: O(`font-size:${e.value.legendFontSize}px`)
1653
+ }, F(t.name), 5),
1654
+ L("span", {
1655
+ style: O(`font-size:${e.value.legendFontSize}px;font-variant-numeric:tabular-nums`)
1656
+ }, F(A.value.includes(t.id) ? "-" : r(te)(
1657
+ e.value.formatter,
1658
+ t.absoluteValue,
1659
+ r(W)({
1660
+ p: e.value.valuePrefix,
1661
+ v: t.absoluteValue,
1662
+ s: e.value.valueSuffix,
1663
+ r: e.value.dataLabelRoundingValue
1664
+ }),
1665
+ { datapoint: t, seriesIndex: i }
1666
+ )), 5),
1667
+ A.value.includes(t.id) ? (a(), o("span", {
1668
+ key: 0,
1669
+ style: O(`font-size:${e.value.legendFontSize}px`)
1670
+ }, " ( - % ) ", 4)) : Ue.value ? (a(), o("span", {
1671
+ key: 1,
1672
+ style: O(`font-size:${e.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
1673
+ }, " ( - % ) ", 4)) : (a(), o("span", {
1674
+ key: 2,
1675
+ style: O(`font-size:${e.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
1676
+ }, " (" + F(r(W)({
1677
+ v: t.value / T.value.total * 100,
1678
+ s: "%",
1679
+ r: e.value.dataLabelRoundingPercentage
1680
+ })) + ") ", 5))
1681
+ ], 64))
1682
+ ], 12, ao))), 256)) : g("", !0),
1683
+ $.value === z.LINE ? (a(!0), o(p, { key: 1 }, I(d.value.legend, (t, i) => (a(), o("div", {
1684
+ class: "vue-ui-quick-chart-legend-item",
1685
+ onClick: (u) => {
1686
+ bt(t.id, d.value.legend.length - 1), ge("selectLegend", t);
1687
+ },
1688
+ style: O(`cursor: ${d.value.legend.length > 1 ? "pointer" : "default"}; opacity:${A.value.includes(t.id) ? "0.5" : "1"}`)
1689
+ }, [
1690
+ e.value.useCustomLegend ? U(l.$slots, "legend", et({
1691
+ key: 0,
1692
+ ref_for: !0
1693
+ }, { legend: t }), void 0, !0) : (a(), o(p, { key: 1 }, [
1694
+ ke(r(B), {
1695
+ name: e.value.legendIcon,
1696
+ stroke: t.color,
1697
+ size: e.value.legendIconSize
1698
+ }, null, 8, ["name", "stroke", "size"]),
1699
+ L("span", {
1700
+ style: O(`font-size:${e.value.legendFontSize}px`)
1701
+ }, F(t.name), 5)
1702
+ ], 64))
1703
+ ], 12, lo))), 256)) : g("", !0),
1704
+ $.value === z.BAR ? (a(!0), o(p, { key: 2 }, I(s.value.legend, (t, i) => (a(), o("div", {
1705
+ class: "vue-ui-quick-chart-legend-item",
1706
+ onClick: (u) => {
1707
+ bt(t.id, s.value.legend.length - 1), ge("selectLegend", t);
1708
+ },
1709
+ style: O(`cursor: ${s.value.legend.length > 1 ? "pointer" : "default"}; opacity:${A.value.includes(t.id) ? "0.5" : "1"}`)
1710
+ }, [
1711
+ e.value.useCustomLegend ? U(l.$slots, "legend", et({
1712
+ key: 0,
1713
+ ref_for: !0
1714
+ }, { legend: t }), void 0, !0) : (a(), o(p, { key: 1 }, [
1715
+ ke(r(B), {
1716
+ name: e.value.legendIcon,
1717
+ stroke: t.color,
1718
+ size: e.value.legendIconSize
1719
+ }, null, 8, ["name", "stroke", "size"]),
1720
+ L("span", {
1721
+ style: O(`font-size:${e.value.legendFontSize}px`)
1722
+ }, F(t.name), 5)
1723
+ ], 64))
1724
+ ], 12, oo))), 256)) : g("", !0)
1725
+ ], 4)) : g("", !0)
1726
+ ], 8, ["to"])) : g("", !0),
1727
+ l.$slots.source ? (a(), o("div", {
1717
1728
  key: 8,
1718
1729
  ref_key: "source",
1719
1730
  ref: ut,
1720
1731
  dir: "auto"
1721
1732
  }, [
1722
- U(a.$slots, "source", {}, void 0, !0)
1733
+ U(l.$slots, "source", {}, void 0, !0)
1723
1734
  ], 512)) : g("", !0),
1724
1735
  ke(r(be), {
1725
1736
  show: me.value.showTooltip && re.value,
@@ -1734,29 +1745,29 @@ const Ta = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"]
1734
1745
  offsetY: e.value.tooltipOffsetY,
1735
1746
  parent: R.value,
1736
1747
  content: se.value,
1737
- isFullscreen: Ve.value,
1748
+ isFullscreen: He.value,
1738
1749
  isCustom: r(Xe)(e.value.tooltipCustomFormat),
1739
1750
  smooth: e.value.tooltipSmooth,
1740
1751
  backdropFilter: e.value.tooltipBackdropFilter
1741
1752
  }, {
1742
- "tooltip-before": K(() => [
1743
- U(a.$slots, "tooltip-before", he(fe({ ...we.value })), void 0, !0)
1753
+ "tooltip-before": ee(() => [
1754
+ U(l.$slots, "tooltip-before", he(fe({ ...we.value })), void 0, !0)
1744
1755
  ]),
1745
- "tooltip-after": K(() => [
1746
- U(a.$slots, "tooltip-after", he(fe({ ...we.value })), void 0, !0)
1756
+ "tooltip-after": ee(() => [
1757
+ U(l.$slots, "tooltip-after", he(fe({ ...we.value })), void 0, !0)
1747
1758
  ]),
1748
1759
  _: 3
1749
1760
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
1750
- r(D) ? (l(), qe(La, { key: 9 })) : g("", !0)
1751
- ], 46, Ta)) : (l(), o("div", to, [
1761
+ r(D) ? (a(), Ee(za, { key: 9 })) : g("", !0)
1762
+ ], 46, Ra)) : (a(), o("div", no, [
1752
1763
  ke(r(B), {
1753
1764
  name: "circleCancel",
1754
1765
  stroke: "red"
1755
1766
  }),
1756
- c[5] || (c[5] = z("span", null, "Dataset is not processable", -1))
1767
+ c[5] || (c[5] = L("span", null, "Dataset is not processable", -1))
1757
1768
  ]));
1758
1769
  }
1759
- }, mo = /* @__PURE__ */ _a(ao, [["__scopeId", "data-v-d59499c1"]]);
1770
+ }, ko = /* @__PURE__ */ Ca(io, [["__scopeId", "data-v-373fd689"]]);
1760
1771
  export {
1761
- mo as default
1772
+ ko as default
1762
1773
  };