vue-data-ui 3.0.0-next.37 → 3.0.0-next.39

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