vue-data-ui 2.12.5 → 2.12.7-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. package/README.md +56 -1
  2. package/dist/{Arrow-CD7YT-M0.js → Arrow-CmqjRRUl.js} +1 -1
  3. package/dist/BaseDraggableDialog-BMlyvt7E.js +180 -0
  4. package/dist/{BaseIcon-CgSWwnK7.js → BaseIcon-CZdMutjs.js} +1 -1
  5. package/dist/{ColorPicker-w8R8Tqdv.js → ColorPicker-DvVKgyAl.js} +23 -24
  6. package/dist/{DataTable-CicthvOV.js → DataTable-Cv9CIz-a.js} +11 -11
  7. package/dist/{Legend-0UY0Mmli.js → Legend-DFunFf8i.js} +8 -8
  8. package/dist/NonSvgPenAndPaper-pVuHj6_A.js +467 -0
  9. package/dist/PackageVersion-CLY-udAA.js +10 -0
  10. package/dist/{PenAndPaper-DLsvRwoD.js → PenAndPaper-B9na2mbr.js} +8 -10
  11. package/dist/RecursiveCircles-Dn3TGoL6.js +96 -0
  12. package/dist/RecursiveLabels-NTMB9w5C.js +49 -0
  13. package/dist/RecursiveLinks-ld_gDZH4.js +64 -0
  14. package/dist/{Shape-DICeBEtN.js → Shape-D3w9qas1.js} +2 -2
  15. package/dist/{Slicer-D1nsbsWE.js → Slicer-ncY8krrM.js} +2 -2
  16. package/dist/SparkTooltip-CwThutH2.js +68 -0
  17. package/dist/{Title-xO1jFsSw.js → Title-B5qqUI3M.js} +2 -2
  18. package/dist/Tooltip-C9rxJ-Ru.js +149 -0
  19. package/dist/{usePrinter-CcgJXHIK.js → UserOptions-Ddy6CuLC.js} +172 -231
  20. package/dist/{dom-to-png-CS4NRYd_.js → dom-to-png-DDlooC9r.js} +1 -1
  21. package/dist/{img-CsXjm5I4.js → img-m9g7lR5d.js} +1 -1
  22. package/dist/{index-vjCxtaM0.js → index-BiHmNd1-.js} +153 -118
  23. package/dist/{pdf-DHexTTpK.js → pdf-BqM953uL.js} +1 -1
  24. package/dist/style.css +1 -1
  25. package/dist/types/vue-data-ui.d.cts +96 -2
  26. package/dist/types/vue-data-ui.d.ts +96 -2
  27. package/dist/useChartAccessibility-9icAAmYg.js +12 -0
  28. package/dist/useMouse-AicQS8Vf.js +13 -0
  29. package/dist/{useNestedProp-Du1hnYFA.js → useNestedProp-tRqS0ZAM.js} +1 -1
  30. package/dist/{usePanZoom-CUkkqW81.js → usePanZoom-BQMvRXEQ.js} +16 -17
  31. package/dist/usePrinter-CRCbl1WG.js +53 -0
  32. package/dist/vClickOutside-C6WiFswA.js +13 -0
  33. package/dist/{vue-data-ui-BOrA3Tc9.js → vue-data-ui-D9uTDt73.js} +63 -63
  34. package/dist/vue-data-ui.js +42 -40
  35. package/dist/{vue-ui-3d-bar-Z8yAd4bw.js → vue-ui-3d-bar-rtuSc8FS.js} +397 -402
  36. package/dist/{vue-ui-accordion-CAN430Oy.js → vue-ui-accordion-CmCs2yR2.js} +3 -3
  37. package/dist/{vue-ui-age-pyramid-C6PZU9Ez.js → vue-ui-age-pyramid-BrzMSiyu.js} +215 -218
  38. package/dist/{vue-ui-annotator-CqoDLx3t.js → vue-ui-annotator-CYxmTpf6.js} +2 -2
  39. package/dist/{vue-ui-bullet-DZC3aY3d.js → vue-ui-bullet-D25qNQfb.js} +137 -140
  40. package/dist/{vue-ui-candlestick-B5mq_lgW.js → vue-ui-candlestick-BuerNa-r.js} +265 -271
  41. package/dist/{vue-ui-carousel-table-CBwerU49.js → vue-ui-carousel-table-aN0HLsOO.js} +137 -137
  42. package/dist/{vue-ui-chestnut-COyOAY28.js → vue-ui-chestnut-oUj2ocsZ.js} +397 -400
  43. package/dist/{vue-ui-chord-Cw0F_jHM.js → vue-ui-chord-C4evlXYB.js} +356 -365
  44. package/dist/vue-ui-circle-pack-CWrNiKTY.js +656 -0
  45. package/dist/{vue-ui-cursor-CWXqmlVy.js → vue-ui-cursor-DgpSttlt.js} +2 -2
  46. package/dist/{vue-ui-dashboard-Ba2tF4md.js → vue-ui-dashboard-BN2ha1Eh.js} +62 -62
  47. package/dist/{vue-ui-digits-BV7yyUdY.js → vue-ui-digits-BhjAxXgm.js} +2 -2
  48. package/dist/vue-ui-donut-D3_z61HI.js +1291 -0
  49. package/dist/vue-ui-donut-evolution-oKtmZPx4.js +864 -0
  50. package/dist/{vue-ui-dumbbell-SDCcLJIc.js → vue-ui-dumbbell-C8Lokx-F.js} +265 -270
  51. package/dist/{vue-ui-flow-CrqGSDNK.js → vue-ui-flow-BVRkH0PS.js} +291 -300
  52. package/dist/{vue-ui-funnel-CcDOoxp8.js → vue-ui-funnel-DFxcmAB5.js} +216 -219
  53. package/dist/{vue-ui-galaxy-jlDp0DRJ.js → vue-ui-galaxy-CGE0hlBC.js} +227 -235
  54. package/dist/{vue-ui-gauge-8t8rWb1C.js → vue-ui-gauge-B48eMvOR.js} +240 -243
  55. package/dist/{vue-ui-gizmo-CFwdrMYP.js → vue-ui-gizmo-zTKNpjvv.js} +57 -58
  56. package/dist/{vue-ui-heatmap-BT-mIeZp.js → vue-ui-heatmap-UNfTt8SM.js} +239 -242
  57. package/dist/{vue-ui-history-plot-crLloc7J.js → vue-ui-history-plot-CbCWmvtg.js} +257 -262
  58. package/dist/{vue-ui-kpi-96v4ZIYo.js → vue-ui-kpi-Drf_lrlh.js} +29 -30
  59. package/dist/{vue-ui-mini-loader-rBHBxNIT.js → vue-ui-mini-loader-DU3G6BVs.js} +2 -2
  60. package/dist/vue-ui-molecule-B5MOXYEA.js +580 -0
  61. package/dist/{vue-ui-mood-radar-DrVSXIY4.js → vue-ui-mood-radar-CC_CVLvn.js} +180 -186
  62. package/dist/{vue-ui-nested-donuts-C9Ah9lgv.js → vue-ui-nested-donuts-D_H962kk.js} +366 -374
  63. package/dist/{vue-ui-onion-DwNPyn4X.js → vue-ui-onion-P8k6T724.js} +252 -258
  64. package/dist/{vue-ui-parallel-coordinate-plot-tSuK6xWu.js → vue-ui-parallel-coordinate-plot-B5Los0vX.js} +296 -303
  65. package/dist/{vue-ui-quadrant-C0Kaoo7K.js → vue-ui-quadrant-B3wzCTxK.js} +402 -409
  66. package/dist/{vue-ui-quick-chart-xMh_Ygct.js → vue-ui-quick-chart-oucj6hXk.js} +611 -616
  67. package/dist/{vue-ui-radar-C1jSDQt_.js → vue-ui-radar-Cjqlyu6d.js} +270 -277
  68. package/dist/{vue-ui-rating-6Kb7hsKF.js → vue-ui-rating-gryk_h_6.js} +2 -2
  69. package/dist/vue-ui-relation-circle-ielvWC-1.js +525 -0
  70. package/dist/{vue-ui-ridgeline-BBvPVQjC.js → vue-ui-ridgeline-Dydqo68b.js} +321 -326
  71. package/dist/{vue-ui-rings-B92cXv7f.js → vue-ui-rings-BRBXektJ.js} +262 -269
  72. package/dist/{vue-ui-scatter-Bt1aty87.js → vue-ui-scatter-Df-BM7Ts.js} +372 -379
  73. package/dist/{vue-ui-skeleton-DfOIDTJM.js → vue-ui-skeleton-CbYQYRvD.js} +19 -19
  74. package/dist/{vue-ui-smiley-sVgBnkbx.js → vue-ui-smiley-BfHaQMaW.js} +2 -2
  75. package/dist/{vue-ui-spark-trend-D6uzJ4Qd.js → vue-ui-spark-trend-z3fUChs_.js} +114 -117
  76. package/dist/{vue-ui-sparkbar-D4c2EE7J.js → vue-ui-sparkbar-ChtFIugH.js} +104 -106
  77. package/dist/{vue-ui-sparkgauge-DaQ6iz98.js → vue-ui-sparkgauge-DtpODCww.js} +72 -74
  78. package/dist/{vue-ui-sparkhistogram-D_YnmM2T.js → vue-ui-sparkhistogram-C3XnYiXI.js} +83 -86
  79. package/dist/vue-ui-sparkline-CoL8jiX8.js +459 -0
  80. package/dist/{vue-ui-sparkstackbar-DecnmqgJ.js → vue-ui-sparkstackbar-CYk3mZJH.js} +102 -105
  81. package/dist/{vue-ui-stackbar-D1eNs1j_.js → vue-ui-stackbar-D9LGbuG5.js} +433 -437
  82. package/dist/{vue-ui-strip-plot-iPZ8Hhmr.js → vue-ui-strip-plot-C5r1Ee2R.js} +245 -252
  83. package/dist/{vue-ui-table-BFjE28sw.js → vue-ui-table-DBaT_TfA.js} +3 -3
  84. package/dist/{vue-ui-table-heatmap-DipFDu39.js → vue-ui-table-heatmap-CYW4YfKN.js} +93 -94
  85. package/dist/{vue-ui-table-sparkline-CGAecOZh.js → vue-ui-table-sparkline-Di0MYR4p.js} +212 -212
  86. package/dist/{vue-ui-thermometer-Cx_yr-hs.js → vue-ui-thermometer-BF1btHY2.js} +154 -157
  87. package/dist/{vue-ui-timer-ClVmS8MH.js → vue-ui-timer-D9FfRWN5.js} +180 -181
  88. package/dist/vue-ui-tiremarks-CQ0lk8fJ.js +341 -0
  89. package/dist/vue-ui-treemap-1Lx7YRtc.js +947 -0
  90. package/dist/{vue-ui-vertical-bar-BHYCnFEN.js → vue-ui-vertical-bar-DdVVQ1ED.js} +397 -403
  91. package/dist/{vue-ui-waffle-DEPUbrOt.js → vue-ui-waffle-BhnuPiRD.js} +317 -324
  92. package/dist/vue-ui-wheel-BIjJ0fg8.js +335 -0
  93. package/dist/vue-ui-word-cloud-3-r8HwO_.js +642 -0
  94. package/dist/{vue-ui-world-DStJ5i0i.js → vue-ui-world-CPIGEswq.js} +430 -442
  95. package/dist/{vue-ui-xy-CEop49z6.js → vue-ui-xy-9e_epIN4.js} +845 -846
  96. package/dist/vue-ui-xy-canvas-DcGgQ7s4.js +1206 -0
  97. package/package.json +6 -6
  98. package/dist/BaseDraggableDialog-BjFEob7i.js +0 -186
  99. package/dist/PackageVersion-Cw2caN1c.js +0 -10
  100. package/dist/Tooltip-LKe8L-Mg.js +0 -158
  101. package/dist/useChartAccessibility-BWojgys7.js +0 -13
  102. package/dist/vue-ui-circle-pack-BtpaZLYs.js +0 -659
  103. package/dist/vue-ui-donut-CRdQFQgA.js +0 -1292
  104. package/dist/vue-ui-donut-evolution-De3-5OgR.js +0 -871
  105. package/dist/vue-ui-molecule-DSr_bHGG.js +0 -782
  106. package/dist/vue-ui-relation-circle-fh0Hl9m0.js +0 -528
  107. package/dist/vue-ui-sparkline-C2HuTMDz.js +0 -519
  108. package/dist/vue-ui-tiremarks-4Sa3RCSv.js +0 -344
  109. package/dist/vue-ui-treemap-CD5pPg7v.js +0 -956
  110. package/dist/vue-ui-wheel-qU0bgJsi.js +0 -338
  111. package/dist/vue-ui-word-cloud-z2ZguOdy.js +0 -648
  112. package/dist/vue-ui-xy-canvas-DV0BVdZb.js +0 -1673
@@ -1,144 +1,139 @@
1
- import { ref as L, computed as B, watch as Ne, onMounted as wt, onBeforeUnmount as At, nextTick as Ie, createElementBlock as l, openBlock as a, normalizeStyle as M, normalizeClass as ve, createBlock as Ee, createCommentVNode as f, createVNode as de, unref as g, createSlots as _t, withCtx as X, renderSlot as N, normalizeProps as ae, guardReactiveProps as le, toDisplayString as O, createElementVNode as _, Fragment as m, renderList as $, mergeProps as Fe } from "vue";
2
- import { u as zt, c as Lt, t as $t, p as q, a as Ct, C as nt, b as It, H as Et, e as Pt, d as Ue, m as Ot, D as it, X as Tt, j as Rt, k as Be, n as ke, i as Z, f as D, U as ut, v as Y, x as Pe, y as De } from "./index-vjCxtaM0.js";
3
- import { t as Mt, u as Nt } from "./useResponsive-JZ9xq-JV.js";
4
- import Oe from "./BaseIcon-CgSWwnK7.js";
5
- import { _ as Ft } from "./Tooltip-LKe8L-Mg.js";
6
- import { u as Ut, U as Bt } from "./usePrinter-CcgJXHIK.js";
7
- import { S as Dt } from "./Slicer-D1nsbsWE.js";
8
- import Vt from "./vue-ui-skeleton-DfOIDTJM.js";
9
- import { u as rt } from "./useNestedProp-Du1hnYFA.js";
10
- import { _ as qt } from "./PackageVersion-Cw2caN1c.js";
11
- import { _ as Ht } from "./PenAndPaper-DLsvRwoD.js";
12
- import { u as Wt } from "./useChartAccessibility-BWojgys7.js";
13
- import { _ as jt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
1
+ import { defineAsyncComponent as de, ref as L, computed as U, watch as De, shallowRef as ct, onMounted as Et, onBeforeUnmount as Pt, nextTick as Re, createElementBlock as l, openBlock as a, normalizeStyle as R, normalizeClass as ce, createBlock as Me, createCommentVNode as g, createVNode as he, unref as f, createSlots as Ot, withCtx as G, renderSlot as M, normalizeProps as oe, guardReactiveProps as ne, toDisplayString as P, createElementVNode as _, Fragment as m, renderList as $, mergeProps as Ve } from "vue";
2
+ import { u as Tt, c as Rt, t as Mt, p as q, a as Nt, C as ht, b as Ft, H as Ut, e as Bt, d as qe, m as Dt, D as ft, X as Vt, j as qt, k as He, n as _e, i as X, f as D, U as gt, v as Z, x as Ne, y as We } from "./index-BiHmNd1-.js";
3
+ import { t as Ht, u as Wt } from "./useResponsive-JZ9xq-JV.js";
4
+ import { u as mt } from "./useNestedProp-tRqS0ZAM.js";
5
+ import { u as jt } from "./usePrinter-CRCbl1WG.js";
6
+ import { u as Gt } from "./useChartAccessibility-9icAAmYg.js";
7
+ import { S as Xt } from "./Slicer-ncY8krrM.js";
8
+ import { _ as Zt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
9
  const A = {
15
10
  LINE: "LINE",
16
11
  BAR: "BAR",
17
12
  DONUT: "DONUT"
18
- }, Gt = ["SERIE", "SERIES", "DATA", "VALUE", "VALUES", "NUM"];
19
- function Xt({ dataset: c, barLineSwitch: C = 6 }) {
20
- let y = null, F = null, T = 0;
21
- if ((typeof c == "number" || typeof c == "string") && console.warn(`The provided dataset (${c}) is not sufficient to build a chart`), be(c) && (J(c) && (c.length < C ? y = A.BAR : y = A.LINE, F = c, T = c.length), Te(c))) {
22
- if (!Yt(c))
13
+ }, Yt = ["SERIE", "SERIES", "DATA", "VALUE", "VALUES", "NUM"];
14
+ function Jt({ dataset: c, barLineSwitch: C = 6 }) {
15
+ let y = null, O = null, H = 0;
16
+ if ((typeof c == "number" || typeof c == "string") && console.warn(`The provided dataset (${c}) is not sufficient to build a chart`), ze(c) && (Y(c) && (c.length < C ? y = A.BAR : y = A.LINE, O = c, H = c.length), Fe(c))) {
17
+ if (!Kt(c))
23
18
  return console.warn("The objects in the dataset array have a different data structure. Either keys or value types are different."), !1;
24
- const ne = Object.keys(c[0]), ce = Object.values(c[0]);
25
- if (!ne.some((E) => Jt(E)))
19
+ const me = Object.keys(c[0]), Le = Object.values(c[0]);
20
+ if (!me.some((N) => ea(N)))
26
21
  return 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;
27
- st(ce, (E) => typeof E == "number") && (y = A.DONUT, F = c), st(ce, (E) => Array.isArray(E) && J(E)) && (vt(c) > C ? y = A.LINE : y = A.BAR, T = vt(c), F = c.map((E) => ({
28
- ...E,
29
- data: Qt(E, (j) => J(j))
30
- }))), c = c.map((E) => dt(E)), F = F.map((E) => dt(E));
22
+ pt(Le, (N) => typeof N == "number") && (y = A.DONUT, O = c), pt(Le, (N) => Array.isArray(N) && Y(N)) && (yt(c) > C ? y = A.LINE : y = A.BAR, H = yt(c), O = c.map((N) => ({
23
+ ...N,
24
+ data: ta(N, (B) => Y(B))
25
+ }))), c = c.map((N) => xt(N)), O = O.map((N) => xt(N));
31
26
  }
32
- return be(c) && [...new Set(c.flatMap((ne) => Array.isArray(ne)))][0], {
27
+ return ze(c) && [...new Set(c.flatMap((me) => Array.isArray(me)))][0], {
33
28
  dataset: c,
34
29
  type: y,
35
- usableDataset: F,
36
- maxSeriesLength: T
30
+ usableDataset: O,
31
+ maxSeriesLength: H
37
32
  };
38
33
  }
39
- function ct(c) {
40
- return !c || be(c) && !c.length;
34
+ function kt(c) {
35
+ return !c || ze(c) && !c.length;
41
36
  }
42
- function be(c) {
37
+ function ze(c) {
43
38
  return Array.isArray(c);
44
39
  }
45
- function J(c) {
46
- if (!be(c) || ct(c)) return !1;
40
+ function Y(c) {
41
+ if (!ze(c) || kt(c)) return !1;
47
42
  const C = c.map((y) => Number(y));
48
43
  return ![...new Set(C.flatMap((y) => typeof y == "number" && !isNaN(y)))].includes(!1);
49
44
  }
50
- function Te(c) {
51
- return !be(c) || ct(c) || !![...new Set(c.flatMap((y) => typeof y == "object" && !Array.isArray(y)))].includes(!1) ? !1 : !c.map((y) => Object.keys(y).length > 0).includes(!1);
45
+ function Fe(c) {
46
+ return !ze(c) || kt(c) || !![...new Set(c.flatMap((y) => typeof y == "object" && !Array.isArray(y)))].includes(!1) ? !1 : !c.map((y) => Object.keys(y).length > 0).includes(!1);
52
47
  }
53
- function Zt(c, C) {
54
- const y = Object.keys(c).sort(), F = Object.keys(C).sort();
55
- if (y.length !== F.length)
48
+ function Qt(c, C) {
49
+ const y = Object.keys(c).sort(), O = Object.keys(C).sort();
50
+ if (y.length !== O.length)
56
51
  return !1;
57
- for (let T = 0; T < y.length; T += 1) {
58
- const W = y[T], oe = F[T];
59
- if (W !== oe || typeof c[W] != typeof C[oe])
52
+ for (let H = 0; H < y.length; H += 1) {
53
+ const fe = y[H], ge = O[H];
54
+ if (fe !== ge || typeof c[fe] != typeof C[ge])
60
55
  return !1;
61
56
  }
62
57
  return !0;
63
58
  }
64
- function Yt(c) {
59
+ function Kt(c) {
65
60
  if (c.length <= 1) return !0;
66
61
  for (let C = 0; C < c.length; C += 1)
67
62
  for (let y = C + 1; y < c.length; y += 1)
68
- if (!Zt(c[C], c[y]))
63
+ if (!Qt(c[C], c[y]))
69
64
  return !1;
70
65
  return !0;
71
66
  }
72
- function Jt(c) {
73
- return Gt.includes(c.toUpperCase());
67
+ function ea(c) {
68
+ return Yt.includes(c.toUpperCase());
74
69
  }
75
- function st(c, C) {
70
+ function pt(c, C) {
76
71
  let y = [];
77
- for (let F = 0; F < c.length; F += 1)
78
- y.push(C(c[F]));
72
+ for (let O = 0; O < c.length; O += 1)
73
+ y.push(C(c[O]));
79
74
  return y.includes(!0);
80
75
  }
81
- function vt(c) {
82
- return Math.max(...[...c].flatMap((C) => Object.values(C).filter((y) => J(y)).map((y) => y.length)));
76
+ function yt(c) {
77
+ return Math.max(...[...c].flatMap((C) => Object.values(C).filter((y) => Y(y)).map((y) => y.length)));
83
78
  }
84
- function Qt(c, C) {
79
+ function ta(c, C) {
85
80
  return Object.values(c).filter((y) => C(y))[0];
86
81
  }
87
- function dt(c) {
82
+ function xt(c) {
88
83
  const C = {};
89
84
  for (let y in c)
90
85
  c.hasOwnProperty(y) && (C[y.toUpperCase()] = c[y]);
91
86
  return C;
92
87
  }
93
- const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"], aa = ["x", "y", "width", "height"], la = ["width", "height"], oa = ["id"], na = ["id"], ia = ["id"], ua = ["flood-color"], ra = {
88
+ const aa = ["id"], la = ["xmlns", "viewBox"], oa = ["x", "y", "width", "height"], na = ["x", "y", "width", "height"], ua = ["width", "height"], ia = ["id"], ra = ["id"], sa = ["id"], va = ["flood-color"], da = {
94
89
  key: 0,
95
90
  class: "donut-label-connectors"
96
- }, sa = ["d", "stroke", "stroke-width", "filter"], va = ["cx", "cy", "r", "fill", "filter"], da = { class: "donut" }, ca = ["d", "fill", "stroke", "stroke-width", "filter"], ha = ["d", "onMouseenter", "onClick"], fa = {
91
+ }, ca = ["d", "stroke", "stroke-width", "filter"], ha = ["cx", "cy", "r", "fill", "filter"], fa = { class: "donut" }, ga = ["d", "fill", "stroke", "stroke-width", "filter"], ma = ["d", "onMouseenter", "onClick"], pa = {
97
92
  key: 1,
98
93
  class: "donut-labels quick-animation"
99
- }, ga = ["cx", "cy", "fill", "stroke", "filter"], ma = ["text-anchor", "x", "y", "fill", "font-size", "filter"], pa = ["text-anchor", "x", "y", "fill", "font-size", "filter"], ya = {
94
+ }, ya = ["cx", "cy", "fill", "stroke", "filter"], xa = ["text-anchor", "x", "y", "fill", "font-size", "filter"], ka = ["text-anchor", "x", "y", "fill", "font-size", "filter"], ba = {
100
95
  key: 2,
101
96
  class: "donut-hollow quick-animation"
102
- }, xa = ["x", "y", "font-size", "fill"], ka = ["x", "y", "font-size", "fill"], ba = {
97
+ }, Sa = ["x", "y", "font-size", "fill"], wa = ["x", "y", "font-size", "fill"], Aa = {
103
98
  key: 0,
104
99
  class: "line-grid"
105
- }, Sa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], wa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Aa = {
100
+ }, _a = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], za = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], La = {
106
101
  key: 1,
107
102
  class: "line-axis"
108
- }, _a = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], za = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], La = {
103
+ }, $a = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ca = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ia = {
109
104
  key: 2,
110
105
  class: "yLabels"
111
- }, $a = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ca = ["x", "y", "font-size", "fill"], Ia = {
106
+ }, Ea = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Pa = ["x", "y", "font-size", "fill"], Oa = {
112
107
  key: 3,
113
108
  class: "periodLabels"
114
- }, Ea = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Pa = ["font-size", "text-anchor", "fill", "transform"], Oa = { class: "plots" }, Ta = { class: "line-plot-series" }, Ra = ["d", "stroke", "stroke-width"], Ma = ["d", "stroke", "stroke-width"], Na = ["d", "stroke", "stroke-width"], Fa = ["d", "stroke", "stroke-width"], Ua = ["cx", "cy", "fill", "stroke"], Ba = {
109
+ }, Ta = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ra = ["font-size", "text-anchor", "fill", "transform"], Ma = { class: "plots" }, Na = { class: "line-plot-series" }, Fa = ["d", "stroke", "stroke-width"], Ua = ["d", "stroke", "stroke-width"], Ba = ["d", "stroke", "stroke-width"], Da = ["d", "stroke", "stroke-width"], Va = ["cx", "cy", "fill", "stroke"], qa = {
115
110
  key: 4,
116
111
  class: "dataLabels"
117
- }, Da = ["font-size", "fill", "x", "y"], Va = { class: "tooltip-traps" }, qa = ["x", "y", "height", "width", "fill", "onMouseenter", "onClick"], Ha = {
112
+ }, Ha = ["font-size", "fill", "x", "y"], Wa = { class: "tooltip-traps" }, ja = ["x", "y", "height", "width", "fill", "onMouseenter", "onClick"], Ga = {
118
113
  key: 0,
119
114
  class: "line-grid"
120
- }, Wa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ja = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ga = {
115
+ }, Xa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Za = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ya = {
121
116
  key: 1,
122
117
  class: "line-axis"
123
- }, Xa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Za = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ya = {
118
+ }, Ja = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Qa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ka = {
124
119
  key: 2,
125
120
  class: "yLabels"
126
- }, Ja = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Qa = ["x", "y", "font-size", "fill"], Ka = {
121
+ }, el = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], tl = ["x", "y", "font-size", "fill"], al = {
127
122
  key: 3,
128
123
  class: "periodLabels"
129
- }, el = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], tl = ["font-size", "text-anchor", "transform", "fill"], al = { class: "plots" }, ll = ["x", "width", "height", "y", "fill", "stroke", "stroke-width"], ol = ["to"], nl = ["from", "to"], il = {
124
+ }, ll = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ol = ["font-size", "text-anchor", "transform", "fill"], nl = { class: "plots" }, ul = ["x", "width", "height", "y", "fill", "stroke", "stroke-width"], il = ["to"], rl = ["from", "to"], sl = {
130
125
  key: 4,
131
126
  class: "dataLabels"
132
- }, ul = ["x", "y", "font-size", "fill"], rl = { class: "tooltip-traps" }, sl = ["x", "y", "height", "width", "fill", "onMouseenter", "onClick"], vl = {
127
+ }, vl = ["x", "y", "font-size", "fill"], dl = { class: "tooltip-traps" }, cl = ["x", "y", "height", "width", "fill", "onMouseenter", "onClick"], hl = {
133
128
  key: 6,
134
129
  class: "axis-labels"
135
- }, dl = { key: 0 }, cl = ["font-size", "fill", "x", "y"], hl = { key: 1 }, fl = ["font-size", "fill", "x", "y"], gl = { key: 2 }, ml = ["font-size", "fill", "transform"], pl = { key: 3 }, yl = ["font-size", "fill", "transform"], xl = {
130
+ }, fl = { key: 0 }, gl = ["font-size", "fill", "x", "y"], ml = { key: 1 }, pl = ["font-size", "fill", "x", "y"], yl = { key: 2 }, xl = ["font-size", "fill", "transform"], kl = { key: 3 }, bl = ["font-size", "fill", "transform"], Sl = {
136
131
  key: 6,
137
132
  class: "vue-data-ui-watermark"
138
- }, kl = ["onClick"], bl = ["onClick"], Sl = ["onClick"], wl = {
133
+ }, wl = ["onClick"], Al = ["onClick"], _l = ["onClick"], zl = {
139
134
  key: 1,
140
135
  class: "vue-ui-quick-chart-not-processable"
141
- }, Al = {
136
+ }, Ll = {
142
137
  __name: "vue-ui-quick-chart",
143
138
  props: {
144
139
  config: {
@@ -156,34 +151,34 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
156
151
  },
157
152
  emits: ["selectDatapoint", "selectLegend"],
158
153
  setup(c, { expose: C, emit: y }) {
159
- const { vue_ui_quick_chart: F } = zt(), T = c, W = L(null), oe = L(null), ne = L(null), ce = L(null), E = L(Lt()), j = L(!1), he = L(null), Q = L(""), H = L(null), Ve = L(null), qe = L(null), w = L([]), He = L(0), Se = L(0), e = B({
160
- get: () => Xe(),
154
+ const O = de(() => import("./BaseIcon-CZdMutjs.js")), H = de(() => import("./PackageVersion-CLY-udAA.js")), fe = de(() => import("./PenAndPaper-B9na2mbr.js")), ge = de(() => import("./vue-ui-skeleton-CbYQYRvD.js")), me = de(() => import("./Tooltip-C9rxJ-Ru.js")), Le = de(() => import("./UserOptions-Ddy6CuLC.js")), { vue_ui_quick_chart: N } = Tt(), B = c, pe = L(null), je = L(null), Ge = L(null), Xe = L(null), J = L(Rt()), K = L(!1), ye = L(null), ee = L(""), W = L(null), Ze = L(null), Ye = L(null), w = L([]), Je = L(0), $e = L(0), e = U({
155
+ get: () => tt(),
161
156
  set: (o) => o
162
- }), { svgRef: We } = Wt({ config: { text: e.value.title } }), ht = B(() => e.value.showUserOptionsOnChartHover), je = B(() => e.value.keepUserOptionsStateOnChartLeave), we = L(!e.value.showUserOptionsOnChartHover);
163
- function Ge(o = !1) {
164
- ht.value && (we.value = o);
157
+ }), { svgRef: Qe } = Gt({ config: { text: e.value.title } }), bt = U(() => e.value.showUserOptionsOnChartHover), Ke = U(() => e.value.keepUserOptionsStateOnChartLeave), Ce = L(!e.value.showUserOptionsOnChartHover);
158
+ function et(o = !1) {
159
+ bt.value && (Ce.value = o);
165
160
  }
166
- function Xe() {
167
- const o = rt({
168
- userConfig: T.config,
169
- defaultConfig: F
161
+ function tt() {
162
+ const o = mt({
163
+ userConfig: B.config,
164
+ defaultConfig: N
170
165
  });
171
166
  let s = {};
172
167
  return o.theme ? s = {
173
- ...rt({
174
- userConfig: Ct.vue_ui_quick_chart[o.theme] || T.config,
168
+ ...mt({
169
+ userConfig: Nt.vue_ui_quick_chart[o.theme] || B.config,
175
170
  defaultConfig: o
176
171
  }),
177
- customPalette: $t[o.theme] || q
178
- } : s = o, T.config && nt(T.config, "zoomStartIndex") ? s.zoomStartIndex = T.config.zoomStartIndex : s.zoomStartIndex = null, T.config && nt(T.config, "zoomEndIndex") ? s.zoomEndIndex = T.config.zoomEndIndex : s.zoomEndIndex = null, s;
172
+ customPalette: Mt[o.theme] || q
173
+ } : s = o, B.config && ht(B.config, "zoomStartIndex") ? s.zoomStartIndex = B.config.zoomStartIndex : s.zoomStartIndex = null, B.config && ht(B.config, "zoomEndIndex") ? s.zoomEndIndex = B.config.zoomEndIndex : s.zoomEndIndex = null, s;
179
174
  }
180
- Ne(() => T.config, (o) => {
181
- e.value = Xe(), b.value.width = e.value.width, b.value.height = e.value.height, we.value = !e.value.showUserOptionsOnChartHover, Je(), me.value.showTooltip = e.value.showTooltip;
182
- }, { deep: !0 }), Ne(() => T.dataset, (o) => {
183
- x.value = ge.value, p.value.start = 0, p.value.end = x.value.maxSeriesLength, Se.value += 1;
175
+ De(() => B.config, (o) => {
176
+ e.value = tt(), b.value.width = e.value.width, b.value.height = e.value.height, Ce.value = !e.value.showUserOptionsOnChartHover, ot(), be.value.showTooltip = e.value.showTooltip;
177
+ }, { deep: !0 }), De(() => B.dataset, (o) => {
178
+ x.value = ke.value, p.value.start = 0, p.value.end = x.value.maxSeriesLength, $e.value += 1;
184
179
  }, { deep: !0 });
185
- const fe = B(() => It(e.value.customPalette)), ie = y, ge = B(() => {
186
- const o = Xt({ dataset: Et(T.dataset, [
180
+ const xe = U(() => Ft(e.value.customPalette)), ue = y, ke = U(() => {
181
+ const o = Jt({ dataset: Ut(B.dataset, [
187
182
  "serie",
188
183
  "series",
189
184
  "data",
@@ -192,49 +187,49 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
192
187
  "num"
193
188
  ]), barLineSwitch: e.value.chartIsBarUnderDatasetLength });
194
189
  return o || console.error("VueUiQuickChart : Dataset is not processable"), o;
195
- }), x = L(ge.value), ft = B(() => !!x.value), z = B(() => x.value ? x.value.type : null);
196
- Ne(() => z.value, (o) => {
197
- o || Pt({
190
+ }), x = L(ke.value), St = U(() => !!x.value), z = U(() => x.value ? x.value.type : null);
191
+ De(() => z.value, (o) => {
192
+ o || Bt({
198
193
  componentName: "VueUiQuickChart",
199
194
  type: "dataset"
200
195
  });
201
196
  }, { immediate: !0 });
202
- const { isPrinting: Ae, isImaging: _e, generatePdf: Ze, generateImage: Ye } = Ut({
203
- elementId: `${z.value}_${E.value}`,
197
+ const { isPrinting: Ie, isImaging: Ee, generatePdf: at, generateImage: lt } = jt({
198
+ elementId: `${z.value}_${J.value}`,
204
199
  fileName: e.value.title || z.value,
205
200
  options: e.value.userOptionsPrint
206
- }), gt = B(() => e.value.showUserOptions && !e.value.title), b = L({
201
+ }), wt = U(() => e.value.showUserOptions && !e.value.title), b = L({
207
202
  width: e.value.width,
208
203
  height: e.value.height
209
- }), me = L({
204
+ }), be = L({
210
205
  showTooltip: e.value.showTooltip
211
- }), ze = L(null);
212
- wt(() => {
213
- Je();
206
+ }), Q = ct(null), ie = ct(null);
207
+ Et(() => {
208
+ ot();
214
209
  });
215
- function Je() {
210
+ function ot() {
216
211
  if (e.value.responsive) {
217
- const o = Mt(() => {
218
- const { width: s, height: t } = Nt({
219
- chart: W.value,
220
- title: e.value.title ? oe.value : null,
221
- legend: e.value.showLegend ? ne.value : null,
222
- slicer: [A.BAR, A.LINE].includes(z.value) && e.value.zoomXy && x.value.maxSeriesLength > 1 ? ce.value : null,
223
- source: Ve.value,
224
- noTitle: qe.value
212
+ const o = Ht(() => {
213
+ const { width: s, height: t } = Wt({
214
+ chart: pe.value,
215
+ title: e.value.title ? je.value : null,
216
+ legend: e.value.showLegend ? Ge.value : null,
217
+ slicer: [A.BAR, A.LINE].includes(z.value) && e.value.zoomXy && x.value.maxSeriesLength > 1 ? Xe.value : null,
218
+ source: Ze.value,
219
+ noTitle: Ye.value
225
220
  });
226
221
  requestAnimationFrame(() => {
227
222
  b.value.width = s, b.value.height = t;
228
223
  });
229
224
  });
230
- ze.value = new ResizeObserver(o), ze.value.observe(W.value.parentNode);
225
+ Q.value && (ie.value && Q.value.unobserve(ie.value), Q.value.disconnect()), Q.value = new ResizeObserver(o), ie.value = pe.value.parentNode, Q.value.observe(ie.value);
231
226
  }
232
- lt();
227
+ vt();
233
228
  }
234
- At(() => {
235
- ze.value && ze.value.disconnect();
229
+ Pt(() => {
230
+ Q.value && (ie.value && Q.value.unobserve(ie.value), Q.value.disconnect());
236
231
  });
237
- const mt = B(() => {
232
+ const At = U(() => {
238
233
  switch (z.value) {
239
234
  case A.LINE:
240
235
  return `0 0 ${b.value.width <= 0 ? 10 : b.value.width} ${b.value.height <= 0 ? 10 : b.value.height}`;
@@ -246,79 +241,79 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
246
241
  return `0 0 ${b.value.width <= 0 ? 10 : b.value.width} ${b.value.height <= 0 ? 10 : b.value.height}`;
247
242
  }
248
243
  });
249
- function Qe(o) {
244
+ function nt(o) {
250
245
  return [...o].map((s) => s.value).reduce((s, t) => s + t, 0);
251
246
  }
252
- function pe(o) {
253
- return e.value.blurOnHover && ![null, void 0].includes(H.value) && H.value !== o ? `url(#blur_${E.value})` : "";
247
+ function Se(o) {
248
+ return e.value.blurOnHover && ![null, void 0].includes(W.value) && W.value !== o ? `url(#blur_${J.value})` : "";
254
249
  }
255
- function Ke(o, s) {
250
+ function ut(o, s) {
256
251
  w.value.includes(o) ? w.value = w.value.filter((t) => t !== o) : w.value.length < s && w.value.push(o);
257
252
  }
258
- const et = L(null), tt = L(null), Le = L(!1);
259
- function pt(o, s) {
260
- Le.value = !0;
253
+ const it = L(null), rt = L(null), Pe = L(!1);
254
+ function _t(o, s) {
255
+ Pe.value = !0;
261
256
  let t = o.value;
262
- const u = ge.value.dataset.find((r, h) => o.id === `donut_${h}`).VALUE;
257
+ const i = ke.value.dataset.find((r, h) => o.id === `donut_${h}`).VALUE;
263
258
  if (w.value.includes(o.id)) {
264
259
  let r = function() {
265
- t > u ? (Le.value = !1, cancelAnimationFrame(tt.value), x.value = {
260
+ t > i ? (Pe.value = !1, cancelAnimationFrame(rt.value), x.value = {
266
261
  ...x.value,
267
- dataset: x.value.dataset.map((h, R) => o.id === `donut_${R}` ? {
262
+ dataset: x.value.dataset.map((h, T) => o.id === `donut_${T}` ? {
268
263
  ...h,
269
- value: u,
270
- VALUE: u
264
+ value: i,
265
+ VALUE: i
271
266
  } : h)
272
- }) : (t += u * 0.025, x.value = {
267
+ }) : (t += i * 0.025, x.value = {
273
268
  ...x.value,
274
- dataset: x.value.dataset.map((h, R) => o.id === `donut_${R}` ? {
269
+ dataset: x.value.dataset.map((h, T) => o.id === `donut_${T}` ? {
275
270
  ...h,
276
271
  value: t,
277
272
  VALUE: t
278
273
  } : h)
279
- }, tt.value = requestAnimationFrame(r));
274
+ }, rt.value = requestAnimationFrame(r));
280
275
  };
281
276
  w.value = w.value.filter((h) => h !== o.id), r();
282
277
  } else if (s.length > 1) {
283
278
  let r = function() {
284
- t < u / 100 ? (Le.value = !1, cancelAnimationFrame(et.value), w.value.push(o.id), x.value = {
279
+ t < i / 100 ? (Pe.value = !1, cancelAnimationFrame(it.value), w.value.push(o.id), x.value = {
285
280
  ...x.value,
286
- dataset: x.value.dataset.map((h, R) => o.id === `donut_${R}` ? {
281
+ dataset: x.value.dataset.map((h, T) => o.id === `donut_${T}` ? {
287
282
  ...h,
288
283
  value: 0,
289
284
  VALUE: 0
290
285
  } : h)
291
286
  }) : (t /= 1.1, x.value = {
292
287
  ...x.value,
293
- dataset: x.value.dataset.map((h, R) => o.id === `donut_${R}` ? {
288
+ dataset: x.value.dataset.map((h, T) => o.id === `donut_${T}` ? {
294
289
  ...h,
295
290
  value: t,
296
291
  VALUE: t
297
292
  } : h)
298
- }, et.value = requestAnimationFrame(r));
293
+ }, it.value = requestAnimationFrame(r));
299
294
  };
300
295
  r();
301
296
  }
302
297
  }
303
- const G = L(null);
304
- function yt(o) {
305
- G.value = o;
298
+ const j = L(null);
299
+ function zt(o) {
300
+ j.value = o;
306
301
  }
307
- const at = B(() => e.value.donutThicknessRatio < 0.15 ? 0.15 : e.value.donutThicknessRatio > 0.4 ? 0.4 : e.value.donutThicknessRatio), I = B(() => {
302
+ const st = U(() => e.value.donutThicknessRatio < 0.15 ? 0.15 : e.value.donutThicknessRatio > 0.4 ? 0.4 : e.value.donutThicknessRatio), I = U(() => {
308
303
  if (z.value !== A.DONUT) return null;
309
- const o = x.value.dataset.map((n, i) => ({
304
+ const o = x.value.dataset.map((n, u) => ({
310
305
  ...n,
311
306
  value: n.VALUE || n.DATA || n.SERIE || n.VALUES || n.NUM || 0,
312
- name: n.NAME || n.DESCRIPTION || n.TITLE || n.LABEL || `Serie ${i}`,
313
- id: `donut_${i}`
314
- })).map((n, i) => ({
307
+ name: n.NAME || n.DESCRIPTION || n.TITLE || n.LABEL || `Serie ${u}`,
308
+ id: `donut_${u}`
309
+ })).map((n, u) => ({
315
310
  ...n,
316
- color: n.COLOR ? Ue(n.COLOR) : fe.value[i + e.value.paletteStartIndex] || q[i + e.value.paletteStartIndex] || q[(i + e.value.paletteStartIndex) % q.length],
311
+ color: n.COLOR ? qe(n.COLOR) : xe.value[u + e.value.paletteStartIndex] || q[u + e.value.paletteStartIndex] || q[(u + e.value.paletteStartIndex) % q.length],
317
312
  immutableValue: n.value
318
313
  }));
319
- function s(n, i) {
314
+ function s(n, u) {
320
315
  return D({
321
- v: isNaN(n.value / Qe(i)) ? 0 : n.value / Qe(i) * 100,
316
+ v: isNaN(n.value / nt(u)) ? 0 : n.value / nt(u) * 100,
322
317
  s: "%",
323
318
  r: e.value.dataLabelRoundingPercentage
324
319
  });
@@ -326,28 +321,28 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
326
321
  function t(n) {
327
322
  return n.proportion * 100 > e.value.donutHideLabelUnderPercentage;
328
323
  }
329
- function u(n, i) {
330
- const S = ge.value.dataset.find((P, U) => `donut_${U}` === n).VALUE;
331
- return Math.abs(String(Number(S.toFixed(0))).length - String(Number(i.toFixed(0))).length);
324
+ function i(n, u) {
325
+ const S = ke.value.dataset.find((E, F) => `donut_${F}` === n).VALUE;
326
+ return Math.abs(String(Number(S.toFixed(0))).length - String(Number(u.toFixed(0))).length);
332
327
  }
333
- function r({ datapoint: n, seriesIndex: i }) {
334
- he.value = { datapoint: n, seriesIndex: i, config: e.value, dataset: o }, H.value = n.id;
328
+ function r({ datapoint: n, seriesIndex: u }) {
329
+ ye.value = { datapoint: n, seriesIndex: u, config: e.value, dataset: o }, W.value = n.id;
335
330
  const S = e.value.tooltipCustomFormat;
336
- if (Pe(S) && De(() => S({
331
+ if (Ne(S) && We(() => S({
337
332
  datapoint: n,
338
- seriesIndex: i,
333
+ seriesIndex: u,
339
334
  series: o,
340
335
  config: e.value
341
336
  })))
342
- Q.value = S({
337
+ ee.value = S({
343
338
  datapoint: n,
344
- seriesIndex: i,
339
+ seriesIndex: u,
345
340
  series: o,
346
341
  config: e.value
347
342
  });
348
343
  else {
349
344
  let k = "";
350
- k += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${n.name}</div>`, k += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${n.color}"/></svg>`, k += `<b>${Z(
345
+ k += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${n.name}</div>`, k += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${n.color}"/></svg>`, k += `<b>${X(
351
346
  e.value.formatter,
352
347
  n.value,
353
348
  D({
@@ -356,85 +351,85 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
356
351
  s: e.value.valueSuffix,
357
352
  r: e.value.dataLabelRoundingValue
358
353
  }),
359
- { datapoint: n, seriesIndex: i }
360
- )}</b>`, k += `<span>(${D({ v: n.proportion * 100, s: "%", r: e.value.dataLabelRoundingPercentage })})</span></div>`, Q.value = `<div>${k}</div>`;
354
+ { datapoint: n, seriesIndex: u }
355
+ )}</b>`, k += `<span>(${D({ v: n.proportion * 100, s: "%", r: e.value.dataLabelRoundingPercentage })})</span></div>`, ee.value = `<div>${k}</div>`;
361
356
  }
362
- j.value = !0;
357
+ K.value = !0;
363
358
  }
364
359
  function h() {
365
- j.value = !1, H.value = null, G.value = null;
360
+ K.value = !1, W.value = null, j.value = null;
366
361
  }
367
- const R = {
362
+ const T = {
368
363
  centerX: b.value.width / 2,
369
364
  centerY: b.value.height / 2
370
- }, V = o.filter((n) => !w.value.includes(n.id)).map((n) => n.value || 0).reduce((n, i) => n + i, 0), re = o.map((n, i) => ({
365
+ }, V = o.filter((n) => !w.value.includes(n.id)).map((n) => n.value || 0).reduce((n, u) => n + u, 0), se = o.map((n, u) => ({
371
366
  ...n,
372
367
  proportion: (n.value || 0) / V,
373
368
  value: n.value || 0,
374
- absoluteValue: ge.value.dataset.find((S, k) => `donut_${k}` === n.id).VALUE
375
- })), K = b.value.width / 2, se = b.value.height / 2, ee = b.value.height * e.value.donutRadiusRatio;
369
+ absoluteValue: ke.value.dataset.find((S, k) => `donut_${k}` === n.id).VALUE
370
+ })), te = b.value.width / 2, ve = b.value.height / 2, ae = b.value.height * e.value.donutRadiusRatio;
376
371
  return {
377
- dataset: re.filter((n) => !w.value.includes(n.id)),
378
- legend: re,
379
- drawingArea: R,
372
+ dataset: se.filter((n) => !w.value.includes(n.id)),
373
+ legend: se,
374
+ drawingArea: T,
380
375
  displayArcPercentage: s,
381
376
  isArcBigEnough: t,
382
377
  useTooltip: r,
383
378
  killTooltip: h,
384
- getSpaces: u,
379
+ getSpaces: i,
385
380
  total: V,
386
- cx: K,
387
- cy: se,
388
- radius: ee,
389
- chart: Ot(
381
+ cx: te,
382
+ cy: ve,
383
+ radius: ae,
384
+ chart: Dt(
390
385
  { series: o.filter((n) => !w.value.includes(n.id)) },
391
- K,
392
- se,
393
- ee,
394
- ee,
386
+ te,
387
+ ve,
388
+ ae,
389
+ ae,
395
390
  1.99999,
396
391
  2,
397
392
  1,
398
393
  360,
399
394
  105.25,
400
- b.value.height * at.value
395
+ b.value.height * st.value
401
396
  )
402
397
  };
403
398
  }), p = L({
404
399
  start: 0,
405
400
  end: x.value.maxSeriesLength
406
401
  });
407
- function xt() {
408
- lt();
402
+ function Lt() {
403
+ vt();
409
404
  }
410
- const ue = L(null);
411
- async function lt() {
412
- (e.value.zoomStartIndex !== null || e.value.zoomEndIndex !== null) && ue.value ? (e.value.zoomStartIndex !== null && (await Ie(), await Ie(), ue.value && ue.value.setStartValue(e.value.zoomStartIndex)), e.value.zoomEndIndex !== null && (await Ie(), await Ie(), ue.value && ue.value.setEndValue(kt(e.value.zoomEndIndex + 1)))) : (p.value = {
405
+ const re = L(null);
406
+ async function vt() {
407
+ (e.value.zoomStartIndex !== null || e.value.zoomEndIndex !== null) && re.value ? (e.value.zoomStartIndex !== null && (await Re(), await Re(), re.value && re.value.setStartValue(e.value.zoomStartIndex)), e.value.zoomEndIndex !== null && (await Re(), await Re(), re.value && re.value.setEndValue($t(e.value.zoomEndIndex + 1)))) : (p.value = {
413
408
  start: 0,
414
409
  end: x.value.maxSeriesLength
415
- }, Se.value += 1);
410
+ }, $e.value += 1);
416
411
  }
417
- function kt(o) {
412
+ function $t(o) {
418
413
  const s = x.value.maxSeriesLength;
419
414
  return o > s ? s : o < 0 || e.value.zoomStartIndex !== null && o < e.value.zoomStartIndex ? e.value.zoomStartIndex !== null ? e.value.zoomStartIndex + 1 : 1 : o;
420
415
  }
421
- const bt = B(() => {
416
+ const Ct = U(() => {
422
417
  if (!e.value.zoomMinimap.show || z.value === A.DONUT) return [];
423
418
  let o = [];
424
- J(x.value.dataset) && (o = x.value.dataset), Te(x.value.dataset) && (o = x.value.dataset.map((r, h) => ({
419
+ Y(x.value.dataset) && (o = x.value.dataset), Fe(x.value.dataset) && (o = x.value.dataset.map((r, h) => ({
425
420
  values: r.VALUE || r.DATA || r.SERIE || r.SERIES || r.VALUES || r.NUM || 0,
426
421
  id: z.value === A.LINE ? `line_${h}` : `bar_${h}`
427
422
  })).filter((r) => !w.value.includes(r.id)));
428
- const s = J(o) ? o.length : Math.max(...o.map((r) => r.values.length));
423
+ const s = Y(o) ? o.length : Math.max(...o.map((r) => r.values.length));
429
424
  let t = [];
430
- if (J(o))
425
+ if (Y(o))
431
426
  t = o;
432
427
  else
433
428
  for (let r = 0; r < s; r += 1)
434
- t.push(o.map((h) => h.values[r] || 0).reduce((h, R) => (h || 0) + (R || 0), 0));
435
- const u = Math.min(...t);
436
- return t.map((r) => r + (u < 0 ? Math.abs(u) : 0));
437
- }), d = B(() => {
429
+ t.push(o.map((h) => h.values[r] || 0).reduce((h, T) => (h || 0) + (T || 0), 0));
430
+ const i = Math.min(...t);
431
+ return t.map((r) => r + (i < 0 ? Math.abs(i) : 0));
432
+ }), d = U(() => {
438
433
  if (z.value !== A.LINE) return null;
439
434
  const o = {
440
435
  height: b.value.height,
@@ -448,34 +443,34 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
448
443
  height: o.height - e.value.xyPaddingTop - e.value.xyPaddingBottom
449
444
  };
450
445
  let t = [];
451
- J(x.value.dataset) && (t = [
446
+ Y(x.value.dataset) && (t = [
452
447
  {
453
448
  values: x.value.dataset.slice(p.value.start, p.value.end),
454
- absoluteIndices: x.value.dataset.map((n, i) => i).slice(p.value.start, p.value.end),
449
+ absoluteIndices: x.value.dataset.map((n, u) => u).slice(p.value.start, p.value.end),
455
450
  name: e.value.title,
456
- color: fe.value[e.value.paletteStartIndex] || q[e.value.paletteStartIndex],
451
+ color: xe.value[e.value.paletteStartIndex] || q[e.value.paletteStartIndex],
457
452
  id: "line_0"
458
453
  }
459
- ]), Te(x.value.dataset) && (t = x.value.dataset.map((n, i) => ({
454
+ ]), Fe(x.value.dataset) && (t = x.value.dataset.map((n, u) => ({
460
455
  ...n,
461
456
  values: n.VALUE || n.DATA || n.SERIE || n.SERIES || n.VALUES || n.NUM || 0,
462
- name: n.NAME || n.DESCRIPTION || n.TITLE || n.LABEL || `Serie ${i}`,
463
- id: `line_${i}`
464
- })).map((n, i) => ({
457
+ name: n.NAME || n.DESCRIPTION || n.TITLE || n.LABEL || `Serie ${u}`,
458
+ id: `line_${u}`
459
+ })).map((n, u) => ({
465
460
  ...n,
466
- color: n.COLOR ? Ue(n.COLOR) : fe.value[i + e.value.paletteStartIndex] || q[i + e.value.paletteStartIndex] || q[(i + e.value.paletteStartIndex) % q.length],
461
+ color: n.COLOR ? qe(n.COLOR) : xe.value[u + e.value.paletteStartIndex] || q[u + e.value.paletteStartIndex] || q[(u + e.value.paletteStartIndex) % q.length],
467
462
  values: n.values.slice(p.value.start, p.value.end),
468
463
  absoluteIndices: n.values.map((S, k) => k).slice(p.value.start, p.value.end)
469
464
  })));
470
- const u = {
465
+ const i = {
471
466
  max: Math.max(...t.filter((n) => !w.value.includes(n.id)).flatMap((n) => n.values)),
472
467
  min: Math.min(...t.filter((n) => !w.value.includes(n.id)).flatMap((n) => n.values)),
473
468
  maxSeries: Math.max(...t.map((n) => n.values.length))
474
- }, r = it(u.min < 0 ? u.min : 0, u.max < 0 ? 0 : u.max, e.value.xyScaleSegments), h = u.min < 0 ? Math.abs(u.min) : 0, R = u.max < 0 ? s.top : s.bottom - h / (r.max + h) * s.height, V = s.width / u.maxSeries, re = r.ticks.map((n) => ({
469
+ }, r = ft(i.min < 0 ? i.min : 0, i.max < 0 ? 0 : i.max, e.value.xyScaleSegments), h = i.min < 0 ? Math.abs(i.min) : 0, T = i.max < 0 ? s.top : s.bottom - h / (r.max + h) * s.height, V = s.width / i.maxSeries, se = r.ticks.map((n) => ({
475
470
  y: s.bottom - s.height * ((n + h) / (r.max + h)),
476
471
  x: s.left - 8,
477
472
  value: n
478
- })), K = t.map((n, i) => ({
473
+ })), te = t.map((n, u) => ({
479
474
  ...n,
480
475
  coordinates: n.values.map((S, k) => ({
481
476
  x: s.left + V * (k + 1) - V / 2,
@@ -483,75 +478,75 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
483
478
  value: S
484
479
  }))
485
480
  })).map((n) => {
486
- let i = [];
481
+ let u = [];
487
482
  return n.coordinates.forEach((S) => {
488
- i.push(`${S.x},${S.y} `);
483
+ u.push(`${S.x},${S.y} `);
489
484
  }), {
490
485
  ...n,
491
- linePath: i.join(" ")
486
+ linePath: u.join(" ")
492
487
  };
493
488
  });
494
- function se(n) {
495
- H.value = n, G.value = n;
496
- const i = t.map((k) => ({
489
+ function ve(n) {
490
+ W.value = n, j.value = n;
491
+ const u = t.map((k) => ({
497
492
  ...k,
498
493
  value: k.values[n],
499
494
  absoluteIndex: k.absoluteIndices[n]
500
495
  })).filter((k) => !w.value.includes(k.id));
501
- he.value = { datapoint: i, seriesIndex: n, config: e.value, dataset: t };
496
+ ye.value = { datapoint: u, seriesIndex: n, config: e.value, dataset: t };
502
497
  const S = e.value.tooltipCustomFormat;
503
- if (Pe(S) && De(() => S({
504
- datapoint: i,
498
+ if (Ne(S) && We(() => S({
499
+ datapoint: u,
505
500
  seriesIndex: n,
506
501
  series: t,
507
502
  config: e.value
508
503
  })))
509
- Q.value = S({
510
- datapoint: i,
504
+ ee.value = S({
505
+ datapoint: u,
511
506
  seriesIndex: n,
512
507
  series: t,
513
508
  config: e.value
514
509
  });
515
510
  else {
516
511
  let k = "";
517
- e.value.xyPeriods[i[0].absoluteIndex] && (k += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${e.value.xyPeriods[i[0].absoluteIndex]}</div>`), i.forEach((P, U) => {
512
+ e.value.xyPeriods[u[0].absoluteIndex] && (k += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${e.value.xyPeriods[u[0].absoluteIndex]}</div>`), u.forEach((E, F) => {
518
513
  k += `
519
514
  <div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
520
- <svg viewBox="0 0 12 12" height="14" width="12"><circle cx="6" cy="6" r="6" stroke="none" fill="${P.color}"/></svg>
521
- <span>${P.name}:</span>
522
- <b>${Z(
515
+ <svg viewBox="0 0 12 12" height="14" width="12"><circle cx="6" cy="6" r="6" stroke="none" fill="${E.color}"/></svg>
516
+ <span>${E.name}:</span>
517
+ <b>${X(
523
518
  e.value.formatter,
524
- P.value,
519
+ E.value,
525
520
  D({
526
521
  p: e.value.valuePrefix,
527
- v: P.value,
522
+ v: E.value,
528
523
  s: e.value.valueSuffix,
529
524
  r: e.value.dataLabelRoundingValue
530
525
  }),
531
- { datapoint: P, seriesIndex: U }
526
+ { datapoint: E, seriesIndex: F }
532
527
  )}
533
528
  </b>
534
529
  </div>
535
530
  `;
536
- }), Q.value = k;
531
+ }), ee.value = k;
537
532
  }
538
- j.value = !0;
533
+ K.value = !0;
539
534
  }
540
- function ee() {
541
- H.value = null, G.value = null, j.value = !1;
535
+ function ae() {
536
+ W.value = null, j.value = null, K.value = !1;
542
537
  }
543
538
  return {
544
- absoluteZero: R,
545
- dataset: K.filter((n) => !w.value.includes(n.id)),
546
- legend: K,
539
+ absoluteZero: T,
540
+ dataset: te.filter((n) => !w.value.includes(n.id)),
541
+ legend: te,
547
542
  drawingArea: s,
548
- extremes: u,
543
+ extremes: i,
549
544
  slotSize: V,
550
- yLabels: re,
551
- useTooltip: se,
552
- killTooltip: ee
545
+ yLabels: se,
546
+ useTooltip: ve,
547
+ killTooltip: ae
553
548
  };
554
- }), v = B(() => {
549
+ }), v = U(() => {
555
550
  if (z.value !== A.BAR) return null;
556
551
  const o = {
557
552
  height: b.value.height,
@@ -565,247 +560,247 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
565
560
  height: o.height - e.value.xyPaddingTop - e.value.xyPaddingBottom
566
561
  };
567
562
  let t = [];
568
- J(x.value.dataset) && (t = [
563
+ Y(x.value.dataset) && (t = [
569
564
  {
570
565
  values: x.value.dataset.slice(p.value.start, p.value.end),
571
- absoluteIndices: x.value.dataset.map((i, S) => S).slice(p.value.start, p.value.end),
566
+ absoluteIndices: x.value.dataset.map((u, S) => S).slice(p.value.start, p.value.end),
572
567
  name: e.value.title,
573
- color: fe.value[e.value.paletteStartIndex] || q[e.value.paletteStartIndex],
568
+ color: xe.value[e.value.paletteStartIndex] || q[e.value.paletteStartIndex],
574
569
  id: "bar_0"
575
570
  }
576
- ]), Te(x.value.dataset) && (t = x.value.dataset.map((i, S) => ({
577
- ...i,
578
- values: i.VALUE || i.DATA || i.SERIE || i.SERIES || i.VALUES || i.NUM || 0,
579
- name: i.NAME || i.DESCRIPTION || i.TITLE || i.LABEL || `Serie ${S}`,
571
+ ]), Fe(x.value.dataset) && (t = x.value.dataset.map((u, S) => ({
572
+ ...u,
573
+ values: u.VALUE || u.DATA || u.SERIE || u.SERIES || u.VALUES || u.NUM || 0,
574
+ name: u.NAME || u.DESCRIPTION || u.TITLE || u.LABEL || `Serie ${S}`,
580
575
  id: `bar_${S}`
581
- })).map((i, S) => ({
582
- ...i,
583
- color: i.COLOR ? Ue(i.COLOR) : fe.value[S + e.value.paletteStartIndex] || q[S + e.value.paletteStartIndex] || q[(S + e.value.paletteStartIndex) % q.length],
584
- values: i.values.slice(p.value.start, p.value.end),
585
- absoluteIndices: i.values.map((k, P) => P).slice(p.value.start, p.value.end)
576
+ })).map((u, S) => ({
577
+ ...u,
578
+ color: u.COLOR ? qe(u.COLOR) : xe.value[S + e.value.paletteStartIndex] || q[S + e.value.paletteStartIndex] || q[(S + e.value.paletteStartIndex) % q.length],
579
+ values: u.values.slice(p.value.start, p.value.end),
580
+ absoluteIndices: u.values.map((k, E) => E).slice(p.value.start, p.value.end)
586
581
  })));
587
- const u = {
588
- max: Math.max(...t.filter((i) => !w.value.includes(i.id)).flatMap((i) => i.values)) < 0 ? 0 : Math.max(...t.filter((i) => !w.value.includes(i.id)).flatMap((i) => i.values)),
589
- min: Math.min(...t.filter((i) => !w.value.includes(i.id)).flatMap((i) => i.values)),
590
- maxSeries: Math.max(...t.filter((i) => !w.value.includes(i.id)).map((i) => i.values.length))
591
- }, r = it(u.min < 0 ? u.min : 0, u.max, e.value.xyScaleSegments), h = r.min < 0 ? Math.abs(r.min) : 0, R = s.bottom - h / (r.max + h) * s.height, V = s.width / u.maxSeries, re = r.ticks.map((i) => ({
592
- y: s.bottom - s.height * ((i + h) / (r.max + h)),
582
+ const i = {
583
+ max: Math.max(...t.filter((u) => !w.value.includes(u.id)).flatMap((u) => u.values)) < 0 ? 0 : Math.max(...t.filter((u) => !w.value.includes(u.id)).flatMap((u) => u.values)),
584
+ min: Math.min(...t.filter((u) => !w.value.includes(u.id)).flatMap((u) => u.values)),
585
+ maxSeries: Math.max(...t.filter((u) => !w.value.includes(u.id)).map((u) => u.values.length))
586
+ }, r = ft(i.min < 0 ? i.min : 0, i.max, e.value.xyScaleSegments), h = r.min < 0 ? Math.abs(r.min) : 0, T = s.bottom - h / (r.max + h) * s.height, V = s.width / i.maxSeries, se = r.ticks.map((u) => ({
587
+ y: s.bottom - s.height * ((u + h) / (r.max + h)),
593
588
  x: s.left - 8,
594
- value: i
595
- })), K = t.map((i, S) => ({
596
- ...i,
597
- coordinates: i.values.map((k, P) => {
598
- const U = (k + h) / (u.max + h) * s.height, ye = Math.abs(k) / Math.abs(u.min) * (s.height - R), Me = h / (u.max + h) * s.height, xe = V / t.filter((te) => !w.value.includes(te.id)).length - e.value.barGap / t.filter((te) => !w.value.includes(te.id)).length;
589
+ value: u
590
+ })), te = t.map((u, S) => ({
591
+ ...u,
592
+ coordinates: u.values.map((k, E) => {
593
+ const F = (k + h) / (i.max + h) * s.height, we = Math.abs(k) / Math.abs(i.min) * (s.height - T), Be = h / (i.max + h) * s.height, Ae = V / t.filter((le) => !w.value.includes(le.id)).length - e.value.barGap / t.filter((le) => !w.value.includes(le.id)).length;
599
594
  return {
600
- x: s.left + V * P + xe * S + e.value.barGap / 2,
601
- y: k > 0 ? s.bottom - U : R,
602
- height: k > 0 ? U - Me : ye,
595
+ x: s.left + V * E + Ae * S + e.value.barGap / 2,
596
+ y: k > 0 ? s.bottom - F : T,
597
+ height: k > 0 ? F - Be : we,
603
598
  value: k,
604
- width: xe
599
+ width: Ae
605
600
  };
606
601
  })
607
- })), se = t.filter((i) => !w.value.includes(i.id)).map((i, S) => ({
608
- ...i,
609
- coordinates: i.values.map((k, P) => {
610
- const U = (k + h) / (u.max + h) * s.height, ye = Math.abs(k) / (u.max + h) * s.height, Me = h / (u.max + h) * s.height, xe = V / t.filter((te) => !w.value.includes(te.id)).length - e.value.barGap / t.filter((te) => !w.value.includes(te.id)).length;
602
+ })), ve = t.filter((u) => !w.value.includes(u.id)).map((u, S) => ({
603
+ ...u,
604
+ coordinates: u.values.map((k, E) => {
605
+ const F = (k + h) / (i.max + h) * s.height, we = Math.abs(k) / (i.max + h) * s.height, Be = h / (i.max + h) * s.height, Ae = V / t.filter((le) => !w.value.includes(le.id)).length - e.value.barGap / t.filter((le) => !w.value.includes(le.id)).length;
611
606
  return {
612
- x: s.left + V * P + xe * S + e.value.barGap / 2,
613
- y: k > 0 ? s.bottom - U : R,
614
- height: k > 0 ? U - Me : ye,
607
+ x: s.left + V * E + Ae * S + e.value.barGap / 2,
608
+ y: k > 0 ? s.bottom - F : T,
609
+ height: k > 0 ? F - Be : we,
615
610
  value: k,
616
- width: xe
611
+ width: Ae
617
612
  };
618
613
  })
619
614
  }));
620
- function ee(i) {
621
- H.value = i, G.value = i;
622
- const S = t.map((P) => ({
623
- ...P,
624
- value: P.values[i],
625
- absoluteIndex: P.absoluteIndices[i]
626
- })).filter((P) => !w.value.includes(P.id));
627
- he.value = { datapoint: S, seriesIndex: i, config: e.value, dataset: t };
615
+ function ae(u) {
616
+ W.value = u, j.value = u;
617
+ const S = t.map((E) => ({
618
+ ...E,
619
+ value: E.values[u],
620
+ absoluteIndex: E.absoluteIndices[u]
621
+ })).filter((E) => !w.value.includes(E.id));
622
+ ye.value = { datapoint: S, seriesIndex: u, config: e.value, dataset: t };
628
623
  const k = e.value.tooltipCustomFormat;
629
- if (Pe(k) && De(() => k({
624
+ if (Ne(k) && We(() => k({
630
625
  datapoint: S,
631
- seriesIndex: i,
626
+ seriesIndex: u,
632
627
  series: t,
633
628
  config: e.value
634
629
  })))
635
- Q.value = k({
630
+ ee.value = k({
636
631
  point: S,
637
- seriesIndex: i,
632
+ seriesIndex: u,
638
633
  series: t,
639
634
  config: e.value
640
635
  });
641
636
  else {
642
- let P = "";
643
- e.value.xyPeriods[S[0].absoluteIndex] && (P += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${e.value.xyPeriods[S[0].absoluteIndex]}</div>`), S.forEach((U, ye) => {
644
- P += `
637
+ let E = "";
638
+ e.value.xyPeriods[S[0].absoluteIndex] && (E += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${e.value.xyPeriods[S[0].absoluteIndex]}</div>`), S.forEach((F, we) => {
639
+ E += `
645
640
  <div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
646
- <svg viewBox="0 0 12 12" height="14" width="12"><rect x=0 y="0" width="12" height="12" rx="1" stroke="none" fill="${U.color}"/></svg>
647
- <span>${U.name}:</span>
648
- <b>${Z(
641
+ <svg viewBox="0 0 12 12" height="14" width="12"><rect x=0 y="0" width="12" height="12" rx="1" stroke="none" fill="${F.color}"/></svg>
642
+ <span>${F.name}:</span>
643
+ <b>${X(
649
644
  e.value.formatter,
650
- U.value,
645
+ F.value,
651
646
  D({
652
647
  p: e.value.valuePrefix,
653
- v: U.value,
648
+ v: F.value,
654
649
  s: e.value.valueSuffix,
655
650
  r: e.value.dataLabelRoundingValue
656
651
  }),
657
- { datapoint: U, seriesIndex: ye }
652
+ { datapoint: F, seriesIndex: we }
658
653
  )}
659
654
  </b>
660
655
  </div>
661
656
  `;
662
- }), Q.value = P;
657
+ }), ee.value = E;
663
658
  }
664
- j.value = !0;
659
+ K.value = !0;
665
660
  }
666
661
  function n() {
667
- j.value = !1, H.value = null, G.value = null;
662
+ K.value = !1, W.value = null, j.value = null;
668
663
  }
669
664
  return {
670
- absoluteZero: R,
671
- dataset: se.filter((i) => !w.value.includes(i.id)),
672
- legend: K,
665
+ absoluteZero: T,
666
+ dataset: ve.filter((u) => !w.value.includes(u.id)),
667
+ legend: te,
673
668
  drawingArea: s,
674
- extremes: u,
669
+ extremes: i,
675
670
  slotSize: V,
676
- yLabels: re,
677
- useTooltip: ee,
671
+ yLabels: se,
672
+ useTooltip: ae,
678
673
  killTooltip: n
679
674
  };
680
- }), $e = L(!1);
681
- function St(o) {
682
- $e.value = o, He.value += 1;
675
+ }), Oe = L(!1);
676
+ function It(o) {
677
+ Oe.value = o, Je.value += 1;
683
678
  }
684
- function ot() {
685
- me.value.showTooltip = !me.value.showTooltip;
679
+ function dt() {
680
+ be.value.showTooltip = !be.value.showTooltip;
686
681
  }
687
- const Ce = L(!1);
688
- function Re() {
689
- Ce.value = !Ce.value;
682
+ const Te = L(!1);
683
+ function Ue() {
684
+ Te.value = !Te.value;
690
685
  }
691
686
  return C({
692
- generatePdf: Ze,
693
- generateImage: Ye,
694
- toggleTooltip: ot,
695
- toggleAnnotator: Re
696
- }), (o, s) => ft.value ? (a(), l("div", {
687
+ generatePdf: at,
688
+ generateImage: lt,
689
+ toggleTooltip: dt,
690
+ toggleAnnotator: Ue
691
+ }), (o, s) => St.value ? (a(), l("div", {
697
692
  key: 0,
698
- id: `${z.value}_${E.value}`,
693
+ id: `${z.value}_${J.value}`,
699
694
  ref_key: "quickChart",
700
- ref: W,
701
- class: ve({ "vue-ui-quick-chart": !0, "vue-data-ui-wrapper-fullscreen": $e.value }),
702
- style: M(`background:${e.value.backgroundColor};color:${e.value.color};font-family:${e.value.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
703
- onMouseenter: s[5] || (s[5] = () => Ge(!0)),
704
- onMouseleave: s[6] || (s[6] = () => Ge(!1))
695
+ ref: pe,
696
+ class: ce({ "vue-ui-quick-chart": !0, "vue-data-ui-wrapper-fullscreen": Oe.value }),
697
+ style: R(`background:${e.value.backgroundColor};color:${e.value.color};font-family:${e.value.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
698
+ onMouseenter: s[5] || (s[5] = () => et(!0)),
699
+ onMouseleave: s[6] || (s[6] = () => et(!1))
705
700
  }, [
706
- e.value.userOptionsButtons.annotator ? (a(), Ee(Ht, {
701
+ e.value.userOptionsButtons.annotator ? (a(), Me(f(fe), {
707
702
  key: 0,
708
- svgRef: g(We),
703
+ svgRef: f(Qe),
709
704
  backgroundColor: e.value.backgroundColor,
710
705
  color: e.value.color,
711
- active: Ce.value,
712
- onClose: Re
713
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : f("", !0),
714
- gt.value ? (a(), l("div", {
706
+ active: Te.value,
707
+ onClose: Ue
708
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
709
+ wt.value ? (a(), l("div", {
715
710
  key: 1,
716
711
  ref_key: "noTitle",
717
- ref: qe,
712
+ ref: Ye,
718
713
  class: "vue-data-ui-no-title-space",
719
714
  style: "height:36px; width: 100%;background:transparent"
720
- }, null, 512)) : f("", !0),
721
- e.value.showUserOptions && (je.value || we.value) ? (a(), Ee(Bt, {
715
+ }, null, 512)) : g("", !0),
716
+ e.value.showUserOptions && (Ke.value || Ce.value) ? (a(), Me(f(Le), {
722
717
  ref: "details",
723
- key: `user_option_${He.value}`,
718
+ key: `user_option_${Je.value}`,
724
719
  backgroundColor: e.value.backgroundColor,
725
720
  color: e.value.color,
726
- isPrinting: g(Ae),
727
- isImaging: g(_e),
728
- uid: E.value,
721
+ isPrinting: f(Ie),
722
+ isImaging: f(Ee),
723
+ uid: J.value,
729
724
  hasTooltip: e.value.userOptionsButtons.tooltip && e.value.showTooltip,
730
725
  hasPdf: e.value.userOptionsButtons.pdf,
731
726
  hasImg: e.value.userOptionsButtons.img,
732
727
  hasFullscreen: e.value.userOptionsButtons.fullscreen,
733
728
  hasXls: !1,
734
- isTooltip: me.value.showTooltip,
735
- isFullscreen: $e.value,
729
+ isTooltip: be.value.showTooltip,
730
+ isFullscreen: Oe.value,
736
731
  titles: { ...e.value.userOptionsButtonTitles },
737
- chartElement: W.value,
732
+ chartElement: pe.value,
738
733
  position: e.value.userOptionsPosition,
739
734
  hasAnnotator: e.value.userOptionsButtons.annotator,
740
- isAnnotation: Ce.value,
741
- onToggleFullscreen: St,
742
- onGeneratePdf: g(Ze),
743
- onGenerateImage: g(Ye),
744
- onToggleTooltip: ot,
745
- onToggleAnnotator: Re,
746
- style: M({
747
- visibility: je.value ? we.value ? "visible" : "hidden" : "visible"
735
+ isAnnotation: Te.value,
736
+ onToggleFullscreen: It,
737
+ onGeneratePdf: f(at),
738
+ onGenerateImage: f(lt),
739
+ onToggleTooltip: dt,
740
+ onToggleAnnotator: Ue,
741
+ style: R({
742
+ visibility: Ke.value ? Ce.value ? "visible" : "hidden" : "visible"
748
743
  })
749
- }, _t({ _: 2 }, [
744
+ }, Ot({ _: 2 }, [
750
745
  o.$slots.menuIcon ? {
751
746
  name: "menuIcon",
752
- fn: X(({ isOpen: t, color: u }) => [
753
- N(o.$slots, "menuIcon", ae(le({ isOpen: t, color: u })), void 0, !0)
747
+ fn: G(({ isOpen: t, color: i }) => [
748
+ M(o.$slots, "menuIcon", oe(ne({ isOpen: t, color: i })), void 0, !0)
754
749
  ]),
755
750
  key: "0"
756
751
  } : void 0,
757
752
  o.$slots.optionTooltip ? {
758
753
  name: "optionTooltip",
759
- fn: X(() => [
760
- N(o.$slots, "optionTooltip", {}, void 0, !0)
754
+ fn: G(() => [
755
+ M(o.$slots, "optionTooltip", {}, void 0, !0)
761
756
  ]),
762
757
  key: "1"
763
758
  } : void 0,
764
759
  o.$slots.optionPdf ? {
765
760
  name: "optionPdf",
766
- fn: X(() => [
767
- N(o.$slots, "optionPdf", {}, void 0, !0)
761
+ fn: G(() => [
762
+ M(o.$slots, "optionPdf", {}, void 0, !0)
768
763
  ]),
769
764
  key: "2"
770
765
  } : void 0,
771
766
  o.$slots.optionImg ? {
772
767
  name: "optionImg",
773
- fn: X(() => [
774
- N(o.$slots, "optionImg", {}, void 0, !0)
768
+ fn: G(() => [
769
+ M(o.$slots, "optionImg", {}, void 0, !0)
775
770
  ]),
776
771
  key: "3"
777
772
  } : void 0,
778
773
  o.$slots.optionFullscreen ? {
779
774
  name: "optionFullscreen",
780
- fn: X(({ toggleFullscreen: t, isFullscreen: u }) => [
781
- N(o.$slots, "optionFullscreen", ae(le({ toggleFullscreen: t, isFullscreen: u })), void 0, !0)
775
+ fn: G(({ toggleFullscreen: t, isFullscreen: i }) => [
776
+ M(o.$slots, "optionFullscreen", oe(ne({ toggleFullscreen: t, isFullscreen: i })), void 0, !0)
782
777
  ]),
783
778
  key: "4"
784
779
  } : void 0,
785
780
  o.$slots.optionAnnotator ? {
786
781
  name: "optionAnnotator",
787
- fn: X(({ toggleAnnotator: t, isAnnotator: u }) => [
788
- N(o.$slots, "optionAnnotator", ae(le({ toggleAnnotator: t, isAnnotator: u })), void 0, !0)
782
+ fn: G(({ toggleAnnotator: t, isAnnotator: i }) => [
783
+ M(o.$slots, "optionAnnotator", oe(ne({ toggleAnnotator: t, isAnnotator: i })), void 0, !0)
789
784
  ]),
790
785
  key: "5"
791
786
  } : void 0
792
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
787
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0),
793
788
  e.value.title ? (a(), l("div", {
794
789
  key: 3,
795
790
  ref_key: "quickChartTitle",
796
- ref: oe,
791
+ ref: je,
797
792
  class: "vue-ui-quick-chart-title",
798
- style: M(`background:transparent;color:${e.value.color};font-size:${e.value.titleFontSize}px;font-weight:${e.value.titleBold ? "bold" : "normal"};text-align:${e.value.titleTextAlign}`)
799
- }, O(e.value.title), 5)) : f("", !0),
793
+ style: R(`background:transparent;color:${e.value.color};font-size:${e.value.titleFontSize}px;font-weight:${e.value.titleBold ? "bold" : "normal"};text-align:${e.value.titleTextAlign}`)
794
+ }, P(e.value.title), 5)) : g("", !0),
800
795
  z.value ? (a(), l("svg", {
801
796
  key: 4,
802
797
  ref_key: "svgRef",
803
- ref: We,
804
- xmlns: g(Tt),
805
- viewBox: mt.value,
806
- style: M(`max-width:100%;overflow:visible;background:transparent;color:${e.value.color}`)
798
+ ref: Qe,
799
+ xmlns: f(Vt),
800
+ viewBox: At.value,
801
+ style: R(`max-width:100%;overflow:visible;background:transparent;color:${e.value.color}`)
807
802
  }, [
808
- de(qt),
803
+ he(f(H)),
809
804
  o.$slots["chart-background"] && z.value === A.BAR ? (a(), l("foreignObject", {
810
805
  key: 0,
811
806
  x: v.value.drawingArea.left,
@@ -816,8 +811,8 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
816
811
  pointerEvents: "none"
817
812
  }
818
813
  }, [
819
- N(o.$slots, "chart-background", {}, void 0, !0)
820
- ], 8, ta)) : f("", !0),
814
+ M(o.$slots, "chart-background", {}, void 0, !0)
815
+ ], 8, oa)) : g("", !0),
821
816
  o.$slots["chart-background"] && z.value === A.LINE ? (a(), l("foreignObject", {
822
817
  key: 1,
823
818
  x: d.value.drawingArea.left,
@@ -828,8 +823,8 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
828
823
  pointerEvents: "none"
829
824
  }
830
825
  }, [
831
- N(o.$slots, "chart-background", {}, void 0, !0)
832
- ], 8, aa)) : f("", !0),
826
+ M(o.$slots, "chart-background", {}, void 0, !0)
827
+ ], 8, na)) : g("", !0),
833
828
  o.$slots["chart-background"] && z.value === A.DONUT ? (a(), l("foreignObject", {
834
829
  key: 2,
835
830
  x: 0,
@@ -840,11 +835,11 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
840
835
  pointerEvents: "none"
841
836
  }
842
837
  }, [
843
- N(o.$slots, "chart-background", {}, void 0, !0)
844
- ], 8, la)) : f("", !0),
838
+ M(o.$slots, "chart-background", {}, void 0, !0)
839
+ ], 8, ua)) : g("", !0),
845
840
  _("defs", null, [
846
841
  _("filter", {
847
- id: `blur_${E.value}`,
842
+ id: `blur_${J.value}`,
848
843
  x: "-50%",
849
844
  y: "-50%",
850
845
  width: "200%",
@@ -853,15 +848,15 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
853
848
  _("feGaussianBlur", {
854
849
  in: "SourceGraphic",
855
850
  stdDeviation: 2,
856
- id: `blur_std_${E.value}`
857
- }, null, 8, na),
851
+ id: `blur_std_${J.value}`
852
+ }, null, 8, ra),
858
853
  s[7] || (s[7] = _("feColorMatrix", {
859
854
  type: "saturate",
860
855
  values: "0"
861
856
  }, null, -1))
862
- ], 8, oa),
857
+ ], 8, ia),
863
858
  _("filter", {
864
- id: `shadow_${E.value}`,
859
+ id: `shadow_${J.value}`,
865
860
  "color-interpolation-filters": "sRGB"
866
861
  }, [
867
862
  _("feDropShadow", {
@@ -870,113 +865,113 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
870
865
  stdDeviation: "10",
871
866
  "flood-opacity": "0.5",
872
867
  "flood-color": e.value.donutShadowColor
873
- }, null, 8, ua)
874
- ], 8, ia)
868
+ }, null, 8, va)
869
+ ], 8, sa)
875
870
  ]),
876
871
  z.value === A.DONUT ? (a(), l(m, { key: 3 }, [
877
- e.value.showDataLabels ? (a(), l("g", ra, [
878
- (a(!0), l(m, null, $(I.value.chart, (t, u) => (a(), l(m, null, [
872
+ e.value.showDataLabels ? (a(), l("g", da, [
873
+ (a(!0), l(m, null, $(I.value.chart, (t, i) => (a(), l(m, null, [
879
874
  I.value.isArcBigEnough(t) ? (a(), l("path", {
880
875
  key: 0,
881
- d: g(Rt)(t, { x: b.value.width / 2, y: b.value.height / 2 }, 16, 16, !1, !1, b.value.height * at.value),
876
+ d: f(qt)(t, { x: b.value.width / 2, y: b.value.height / 2 }, 16, 16, !1, !1, b.value.height * st.value),
882
877
  stroke: t.color,
883
878
  "stroke-width": e.value.donutLabelMarkerStrokeWidth,
884
879
  "stroke-linecap": "round",
885
880
  "stroke-linejoin": "round",
886
881
  fill: "none",
887
- filter: pe(t.id)
888
- }, null, 8, sa)) : f("", !0)
882
+ filter: Se(t.id)
883
+ }, null, 8, ca)) : g("", !0)
889
884
  ], 64))), 256))
890
- ])) : f("", !0),
885
+ ])) : g("", !0),
891
886
  _("circle", {
892
887
  cx: I.value.cx,
893
888
  cy: I.value.cy,
894
889
  r: I.value.radius,
895
890
  fill: e.value.backgroundColor,
896
- filter: e.value.donutUseShadow ? `url(#shadow_${E.value})` : ""
897
- }, null, 8, va),
898
- _("g", da, [
899
- (a(!0), l(m, null, $(I.value.chart, (t, u) => (a(), l("path", {
891
+ filter: e.value.donutUseShadow ? `url(#shadow_${J.value})` : ""
892
+ }, null, 8, ha),
893
+ _("g", fa, [
894
+ (a(!0), l(m, null, $(I.value.chart, (t, i) => (a(), l("path", {
900
895
  d: t.arcSlice,
901
896
  fill: t.color,
902
897
  stroke: e.value.backgroundColor,
903
898
  "stroke-width": e.value.donutStrokeWidth,
904
- filter: pe(t.id)
905
- }, null, 8, ca))), 256)),
906
- (a(!0), l(m, null, $(I.value.chart, (t, u) => (a(), l("path", {
899
+ filter: Se(t.id)
900
+ }, null, 8, ga))), 256)),
901
+ (a(!0), l(m, null, $(I.value.chart, (t, i) => (a(), l("path", {
907
902
  d: t.arcSlice,
908
903
  fill: "transparent",
909
- onMouseenter: (r) => I.value.useTooltip({ datapoint: t, seriesIndex: u }),
904
+ onMouseenter: (r) => I.value.useTooltip({ datapoint: t, seriesIndex: i }),
910
905
  onMouseout: s[0] || (s[0] = (r) => I.value.killTooltip()),
911
- onClick: (r) => ie("selectDatapoint", t)
912
- }, null, 40, ha))), 256))
906
+ onClick: (r) => ue("selectDatapoint", t)
907
+ }, null, 40, ma))), 256))
913
908
  ]),
914
- e.value.showDataLabels ? (a(), l("g", fa, [
915
- (a(!0), l(m, null, $(I.value.chart, (t, u) => (a(), l(m, null, [
909
+ e.value.showDataLabels ? (a(), l("g", pa, [
910
+ (a(!0), l(m, null, $(I.value.chart, (t, i) => (a(), l(m, null, [
916
911
  I.value.isArcBigEnough(t) ? (a(), l("circle", {
917
912
  key: 0,
918
- cx: g(ke)(t).x,
919
- cy: g(Be)(t) - 3.7,
913
+ cx: f(_e)(t).x,
914
+ cy: f(He)(t) - 3.7,
920
915
  fill: t.color,
921
916
  stroke: e.value.backgroundColor,
922
917
  "stroke-width": 1,
923
918
  r: 3,
924
- filter: pe(t.id)
925
- }, null, 8, ga)) : f("", !0),
919
+ filter: Se(t.id)
920
+ }, null, 8, ya)) : g("", !0),
926
921
  I.value.isArcBigEnough(t) ? (a(), l("text", {
927
922
  key: 1,
928
- "text-anchor": g(ke)(t, !0, 20).anchor,
929
- x: g(ke)(t, !0).x,
930
- y: g(Be)(t),
923
+ "text-anchor": f(_e)(t, !0, 20).anchor,
924
+ x: f(_e)(t, !0).x,
925
+ y: f(He)(t),
931
926
  fill: e.value.color,
932
927
  "font-size": e.value.dataLabelFontSize,
933
- filter: pe(t.id)
934
- }, O(I.value.displayArcPercentage(t, I.value.chart)) + " (" + O(g(Z)(
928
+ filter: Se(t.id)
929
+ }, P(I.value.displayArcPercentage(t, I.value.chart)) + " (" + P(f(X)(
935
930
  e.value.formatter,
936
931
  t.value,
937
- g(D)({
932
+ f(D)({
938
933
  p: e.value.valuePrefix,
939
934
  v: t.value,
940
935
  s: e.value.valueSuffix,
941
936
  r: e.value.dataLabelRoundingValue
942
937
  }),
943
- { datapoint: t, seriesIndex: u }
944
- )) + ") ", 9, ma)) : f("", !0),
938
+ { datapoint: t, seriesIndex: i }
939
+ )) + ") ", 9, xa)) : g("", !0),
945
940
  I.value.isArcBigEnough(t, !0, 20) ? (a(), l("text", {
946
941
  key: 2,
947
- "text-anchor": g(ke)(t).anchor,
948
- x: g(ke)(t, !0).x,
949
- y: g(Be)(t) + e.value.dataLabelFontSize,
942
+ "text-anchor": f(_e)(t).anchor,
943
+ x: f(_e)(t, !0).x,
944
+ y: f(He)(t) + e.value.dataLabelFontSize,
950
945
  fill: e.value.color,
951
946
  "font-size": e.value.dataLabelFontSize,
952
- filter: pe(t.id)
953
- }, O(t.name), 9, pa)) : f("", !0)
947
+ filter: Se(t.id)
948
+ }, P(t.name), 9, ka)) : g("", !0)
954
949
  ], 64))), 256))
955
- ])) : f("", !0),
956
- e.value.donutShowTotal ? (a(), l("g", ya, [
950
+ ])) : g("", !0),
951
+ e.value.donutShowTotal ? (a(), l("g", ba, [
957
952
  _("text", {
958
953
  "text-anchor": "middle",
959
954
  x: I.value.drawingArea.centerX,
960
955
  y: I.value.drawingArea.centerY - e.value.donutTotalLabelFontSize / 2,
961
956
  "font-size": e.value.donutTotalLabelFontSize,
962
957
  fill: e.value.color
963
- }, O(e.value.donutTotalLabelText), 9, xa),
958
+ }, P(e.value.donutTotalLabelText), 9, Sa),
964
959
  _("text", {
965
960
  "text-anchor": "middle",
966
961
  x: I.value.drawingArea.centerX,
967
962
  y: I.value.drawingArea.centerY + e.value.donutTotalLabelFontSize,
968
963
  "font-size": e.value.donutTotalLabelFontSize,
969
964
  fill: e.value.color
970
- }, O(g(D)({
965
+ }, P(f(D)({
971
966
  p: e.value.valuePrefix,
972
967
  v: I.value.total,
973
968
  s: e.value.valueSuffix,
974
969
  r: e.value.dataLabelRoundingValue
975
- })), 9, ka)
976
- ])) : f("", !0)
977
- ], 64)) : f("", !0),
970
+ })), 9, wa)
971
+ ])) : g("", !0)
972
+ ], 64)) : g("", !0),
978
973
  z.value === A.LINE ? (a(), l(m, { key: 4 }, [
979
- e.value.xyShowGrid ? (a(), l("g", ba, [
974
+ e.value.xyShowGrid ? (a(), l("g", Aa, [
980
975
  (a(!0), l(m, null, $(d.value.yLabels, (t) => (a(), l(m, null, [
981
976
  t.y <= d.value.drawingArea.bottom ? (a(), l("line", {
982
977
  key: 0,
@@ -987,19 +982,19 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
987
982
  stroke: e.value.xyGridStroke,
988
983
  "stroke-width": e.value.xyGridStrokeWidth,
989
984
  "stroke-linecap": "round"
990
- }, null, 8, Sa)) : f("", !0)
985
+ }, null, 8, _a)) : g("", !0)
991
986
  ], 64))), 256)),
992
- (a(!0), l(m, null, $(d.value.extremes.maxSeries + 1, (t, u) => (a(), l("line", {
993
- x1: d.value.drawingArea.left + d.value.slotSize * u,
994
- x2: d.value.drawingArea.left + d.value.slotSize * u,
987
+ (a(!0), l(m, null, $(d.value.extremes.maxSeries + 1, (t, i) => (a(), l("line", {
988
+ x1: d.value.drawingArea.left + d.value.slotSize * i,
989
+ x2: d.value.drawingArea.left + d.value.slotSize * i,
995
990
  y1: d.value.drawingArea.top,
996
991
  y2: d.value.drawingArea.bottom,
997
992
  stroke: e.value.xyGridStroke,
998
993
  "stroke-width": e.value.xyGridStrokeWidth,
999
994
  "stroke-linecap": "round"
1000
- }, null, 8, wa))), 256))
1001
- ])) : f("", !0),
1002
- e.value.xyShowAxis ? (a(), l("g", Aa, [
995
+ }, null, 8, za))), 256))
996
+ ])) : g("", !0),
997
+ e.value.xyShowAxis ? (a(), l("g", La, [
1003
998
  _("line", {
1004
999
  x1: d.value.drawingArea.left,
1005
1000
  x2: d.value.drawingArea.left,
@@ -1008,7 +1003,7 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
1008
1003
  stroke: e.value.xyAxisStroke,
1009
1004
  "stroke-width": e.value.xyAxisStrokeWidth,
1010
1005
  "stroke-linecap": "round"
1011
- }, null, 8, _a),
1006
+ }, null, 8, $a),
1012
1007
  _("line", {
1013
1008
  x1: d.value.drawingArea.left,
1014
1009
  x2: d.value.drawingArea.right,
@@ -1017,10 +1012,10 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
1017
1012
  stroke: e.value.xyAxisStroke,
1018
1013
  "stroke-width": e.value.xyAxisStrokeWidth,
1019
1014
  "stroke-linecap": "round"
1020
- }, null, 8, za)
1021
- ])) : f("", !0),
1022
- e.value.xyShowScale ? (a(), l("g", La, [
1023
- (a(!0), l(m, null, $(d.value.yLabels, (t, u) => (a(), l(m, null, [
1015
+ }, null, 8, Ca)
1016
+ ])) : g("", !0),
1017
+ e.value.xyShowScale ? (a(), l("g", Ia, [
1018
+ (a(!0), l(m, null, $(d.value.yLabels, (t, i) => (a(), l(m, null, [
1024
1019
  t.y <= d.value.drawingArea.bottom ? (a(), l("line", {
1025
1020
  key: 0,
1026
1021
  x1: t.x + 4,
@@ -1030,7 +1025,7 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
1030
1025
  stroke: e.value.xyAxisStroke,
1031
1026
  "stroke-width": e.value.xyAxisStrokeWidth,
1032
1027
  "stroke-linecap": "round"
1033
- }, null, 8, $a)) : f("", !0),
1028
+ }, null, 8, Ea)) : g("", !0),
1034
1029
  t.y <= d.value.drawingArea.bottom ? (a(), l("text", {
1035
1030
  key: 1,
1036
1031
  x: t.x,
@@ -1038,61 +1033,61 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
1038
1033
  "text-anchor": "end",
1039
1034
  "font-size": e.value.xyLabelsYFontSize,
1040
1035
  fill: e.value.color
1041
- }, O(g(Z)(
1036
+ }, P(f(X)(
1042
1037
  e.value.formatter,
1043
1038
  t.value,
1044
- g(D)({
1039
+ f(D)({
1045
1040
  p: e.value.valuePrefix,
1046
1041
  v: t.value,
1047
1042
  s: e.value.valueSuffix,
1048
1043
  r: e.value.dataLabelRoundingValue
1049
1044
  }),
1050
- { datapoint: t, seriesIndex: u }
1051
- )), 9, Ca)) : f("", !0)
1045
+ { datapoint: t, seriesIndex: i }
1046
+ )), 9, Pa)) : g("", !0)
1052
1047
  ], 64))), 256))
1053
- ])) : f("", !0),
1054
- e.value.xyShowScale && e.value.xyPeriods.length ? (a(), l("g", Ia, [
1055
- (a(!0), l(m, null, $(e.value.xyPeriods.slice(p.value.start, p.value.end), (t, u) => (a(), l(m, null, [
1056
- !e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && u % Math.floor((p.value.end - p.value.start) / e.value.xyPeriodsModulo) === 0 || p.value.end - p.value.start <= e.value.xyPeriodsModulo ? (a(), l("line", {
1048
+ ])) : g("", !0),
1049
+ e.value.xyShowScale && e.value.xyPeriods.length ? (a(), l("g", Oa, [
1050
+ (a(!0), l(m, null, $(e.value.xyPeriods.slice(p.value.start, p.value.end), (t, i) => (a(), l(m, null, [
1051
+ !e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && i % Math.floor((p.value.end - p.value.start) / e.value.xyPeriodsModulo) === 0 || p.value.end - p.value.start <= e.value.xyPeriodsModulo ? (a(), l("line", {
1057
1052
  key: 0,
1058
- x1: d.value.drawingArea.left + d.value.slotSize * (u + 1) - d.value.slotSize / 2,
1059
- x2: d.value.drawingArea.left + d.value.slotSize * (u + 1) - d.value.slotSize / 2,
1053
+ x1: d.value.drawingArea.left + d.value.slotSize * (i + 1) - d.value.slotSize / 2,
1054
+ x2: d.value.drawingArea.left + d.value.slotSize * (i + 1) - d.value.slotSize / 2,
1060
1055
  y1: d.value.drawingArea.bottom,
1061
1056
  y2: d.value.drawingArea.bottom + 4,
1062
1057
  stroke: e.value.xyAxisStroke,
1063
1058
  "stroke-width": e.value.xyAxisStrokeWidth,
1064
1059
  "stroke-linecap": "round"
1065
- }, null, 8, Ea)) : f("", !0),
1066
- !e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && u % Math.floor((p.value.end - p.value.start) / e.value.xyPeriodsModulo) === 0 || p.value.end - p.value.start <= e.value.xyPeriodsModulo ? (a(), l("text", {
1060
+ }, null, 8, Ta)) : g("", !0),
1061
+ !e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && i % Math.floor((p.value.end - p.value.start) / e.value.xyPeriodsModulo) === 0 || p.value.end - p.value.start <= e.value.xyPeriodsModulo ? (a(), l("text", {
1067
1062
  key: 1,
1068
1063
  "font-size": e.value.xyLabelsXFontSize,
1069
1064
  "text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
1070
1065
  fill: e.value.color,
1071
- transform: `translate(${d.value.drawingArea.left + d.value.slotSize * (u + 1) - d.value.slotSize / 2}, ${d.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}), rotate(${e.value.xyPeriodLabelsRotation})`
1072
- }, O(t), 9, Pa)) : f("", !0)
1066
+ 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})`
1067
+ }, P(t), 9, Ra)) : g("", !0)
1073
1068
  ], 64))), 256))
1074
- ])) : f("", !0),
1075
- _("g", Oa, [
1076
- (a(!0), l(m, null, $(d.value.dataset, (t, u) => (a(), l("g", Ta, [
1069
+ ])) : g("", !0),
1070
+ _("g", Ma, [
1071
+ (a(!0), l(m, null, $(d.value.dataset, (t, i) => (a(), l("g", Na, [
1077
1072
  e.value.lineSmooth ? (a(), l(m, { key: 0 }, [
1078
1073
  _("path", {
1079
- d: `M ${g(ut)(t.coordinates)}`,
1074
+ d: `M ${f(gt)(t.coordinates)}`,
1080
1075
  stroke: e.value.backgroundColor,
1081
1076
  "stroke-width": e.value.lineStrokeWidth + 1,
1082
1077
  "stroke-linecap": "round",
1083
1078
  fill: "none",
1084
- class: ve({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
1079
+ class: ce({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
1085
1080
  style: { transition: "all 0.3s ease-in-out" }
1086
- }, null, 10, Ra),
1081
+ }, null, 10, Fa),
1087
1082
  _("path", {
1088
- d: `M ${g(ut)(t.coordinates)}`,
1083
+ d: `M ${f(gt)(t.coordinates)}`,
1089
1084
  stroke: t.color,
1090
1085
  "stroke-width": e.value.lineStrokeWidth,
1091
1086
  "stroke-linecap": "round",
1092
1087
  fill: "none",
1093
- class: ve({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
1088
+ class: ce({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
1094
1089
  style: { transition: "all 0.3s ease-in-out" }
1095
- }, null, 10, Ma)
1090
+ }, null, 10, Ua)
1096
1091
  ], 64)) : (a(), l(m, { key: 1 }, [
1097
1092
  _("path", {
1098
1093
  d: `M ${t.linePath}`,
@@ -1100,73 +1095,73 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
1100
1095
  "stroke-width": e.value.lineStrokeWidth + 1,
1101
1096
  "stroke-linecap": "round",
1102
1097
  fill: "none",
1103
- class: ve({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
1098
+ class: ce({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
1104
1099
  style: { transition: "all 0.3s ease-in-out" }
1105
- }, null, 10, Na),
1100
+ }, null, 10, Ba),
1106
1101
  _("path", {
1107
1102
  d: `M ${t.linePath}`,
1108
1103
  stroke: t.color,
1109
1104
  "stroke-width": e.value.lineStrokeWidth,
1110
1105
  "stroke-linecap": "round",
1111
1106
  fill: "none",
1112
- class: ve({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
1107
+ class: ce({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
1113
1108
  style: { transition: "all 0.3s ease-in-out" }
1114
- }, null, 10, Fa)
1109
+ }, null, 10, Da)
1115
1110
  ], 64)),
1116
1111
  (a(!0), l(m, null, $(t.coordinates, (r, h) => (a(), l("circle", {
1117
1112
  cx: r.x,
1118
- cy: g(Y)(r.y),
1113
+ cy: f(Z)(r.y),
1119
1114
  r: 3,
1120
1115
  fill: t.color,
1121
1116
  stroke: e.value.backgroundColor,
1122
1117
  "stroke-width": "0.5",
1123
1118
  class: "quick-animation",
1124
1119
  style: { transition: "all 0.3s ease-in-out" }
1125
- }, null, 8, Ua))), 256))
1120
+ }, null, 8, Va))), 256))
1126
1121
  ]))), 256))
1127
1122
  ]),
1128
- e.value.showDataLabels ? (a(), l("g", Ba, [
1129
- (a(!0), l(m, null, $(d.value.dataset, (t, u) => (a(), l(m, null, [
1123
+ e.value.showDataLabels ? (a(), l("g", qa, [
1124
+ (a(!0), l(m, null, $(d.value.dataset, (t, i) => (a(), l(m, null, [
1130
1125
  (a(!0), l(m, null, $(t.coordinates, (r, h) => (a(), l("text", {
1131
1126
  "text-anchor": "middle",
1132
1127
  "font-size": e.value.dataLabelFontSize,
1133
1128
  fill: t.color,
1134
1129
  x: r.x,
1135
- y: g(Y)(r.y) - e.value.dataLabelFontSize / 2,
1130
+ y: f(Z)(r.y) - e.value.dataLabelFontSize / 2,
1136
1131
  class: "quick-animation",
1137
1132
  style: { transition: "all 0.3s ease-in-out" }
1138
- }, O(g(Z)(
1133
+ }, P(f(X)(
1139
1134
  e.value.formatter,
1140
- g(Y)(r.value),
1141
- g(D)({
1135
+ f(Z)(r.value),
1136
+ f(D)({
1142
1137
  p: e.value.valuePrefix,
1143
- v: g(Y)(r.value),
1138
+ v: f(Z)(r.value),
1144
1139
  s: e.value.valueSuffix,
1145
1140
  r: e.value.dataLabelRoundingValue
1146
1141
  }),
1147
1142
  { datapoint: r, seriesIndex: h }
1148
- )), 9, Da))), 256))
1143
+ )), 9, Ha))), 256))
1149
1144
  ], 64))), 256))
1150
- ])) : f("", !0),
1151
- _("g", Va, [
1152
- (a(!0), l(m, null, $(d.value.extremes.maxSeries, (t, u) => (a(), l("rect", {
1153
- x: d.value.drawingArea.left + u * d.value.slotSize,
1145
+ ])) : g("", !0),
1146
+ _("g", Wa, [
1147
+ (a(!0), l(m, null, $(d.value.extremes.maxSeries, (t, i) => (a(), l("rect", {
1148
+ x: d.value.drawingArea.left + i * d.value.slotSize,
1154
1149
  y: d.value.drawingArea.top,
1155
1150
  height: d.value.drawingArea.height <= 0 ? 1e-5 : d.value.drawingArea.height,
1156
1151
  width: d.value.slotSize <= 0 ? 1e-5 : d.value.slotSize,
1157
- fill: [H.value, G.value].includes(u) ? e.value.xyHighlighterColor : "transparent",
1158
- style: M(`opacity:${e.value.xyHighlighterOpacity}`),
1159
- onMouseenter: (r) => d.value.useTooltip(u),
1152
+ fill: [W.value, j.value].includes(i) ? e.value.xyHighlighterColor : "transparent",
1153
+ style: R(`opacity:${e.value.xyHighlighterOpacity}`),
1154
+ onMouseenter: (r) => d.value.useTooltip(i),
1160
1155
  onMouseleave: s[1] || (s[1] = (r) => d.value.killTooltip()),
1161
- onClick: (r) => ie("selectDatapoint", d.value.dataset.map((h) => ({
1156
+ onClick: (r) => ue("selectDatapoint", d.value.dataset.map((h) => ({
1162
1157
  ...h,
1163
- value: h.values[u]
1158
+ value: h.values[i]
1164
1159
  })))
1165
- }, null, 44, qa))), 256))
1160
+ }, null, 44, ja))), 256))
1166
1161
  ])
1167
- ], 64)) : f("", !0),
1162
+ ], 64)) : g("", !0),
1168
1163
  z.value === A.BAR ? (a(), l(m, { key: 5 }, [
1169
- e.value.xyShowGrid ? (a(), l("g", Ha, [
1164
+ e.value.xyShowGrid ? (a(), l("g", Ga, [
1170
1165
  (a(!0), l(m, null, $(v.value.yLabels, (t) => (a(), l(m, null, [
1171
1166
  t.y <= v.value.drawingArea.bottom ? (a(), l("line", {
1172
1167
  key: 0,
@@ -1177,19 +1172,19 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
1177
1172
  stroke: e.value.xyGridStroke,
1178
1173
  "stroke-width": e.value.xyGridStrokeWidth,
1179
1174
  "stroke-linecap": "round"
1180
- }, null, 8, Wa)) : f("", !0)
1175
+ }, null, 8, Xa)) : g("", !0)
1181
1176
  ], 64))), 256)),
1182
- (a(!0), l(m, null, $(v.value.extremes.maxSeries + 1, (t, u) => (a(), l("line", {
1183
- x1: v.value.drawingArea.left + v.value.slotSize * u,
1184
- x2: v.value.drawingArea.left + v.value.slotSize * u,
1177
+ (a(!0), l(m, null, $(v.value.extremes.maxSeries + 1, (t, i) => (a(), l("line", {
1178
+ x1: v.value.drawingArea.left + v.value.slotSize * i,
1179
+ x2: v.value.drawingArea.left + v.value.slotSize * i,
1185
1180
  y1: v.value.drawingArea.top,
1186
1181
  y2: v.value.drawingArea.bottom,
1187
1182
  stroke: e.value.xyGridStroke,
1188
1183
  "stroke-width": e.value.xyGridStrokeWidth,
1189
1184
  "stroke-linecap": "round"
1190
- }, null, 8, ja))), 256))
1191
- ])) : f("", !0),
1192
- e.value.xyShowAxis ? (a(), l("g", Ga, [
1185
+ }, null, 8, Za))), 256))
1186
+ ])) : g("", !0),
1187
+ e.value.xyShowAxis ? (a(), l("g", Ya, [
1193
1188
  _("line", {
1194
1189
  x1: v.value.drawingArea.left,
1195
1190
  x2: v.value.drawingArea.left,
@@ -1198,7 +1193,7 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
1198
1193
  stroke: e.value.xyAxisStroke,
1199
1194
  "stroke-width": e.value.xyAxisStrokeWidth,
1200
1195
  "stroke-linecap": "round"
1201
- }, null, 8, Xa),
1196
+ }, null, 8, Ja),
1202
1197
  _("line", {
1203
1198
  x1: v.value.drawingArea.left,
1204
1199
  x2: v.value.drawingArea.right,
@@ -1207,10 +1202,10 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
1207
1202
  stroke: e.value.xyAxisStroke,
1208
1203
  "stroke-width": e.value.xyAxisStrokeWidth,
1209
1204
  "stroke-linecap": "round"
1210
- }, null, 8, Za)
1211
- ])) : f("", !0),
1212
- e.value.xyShowScale ? (a(), l("g", Ya, [
1213
- (a(!0), l(m, null, $(v.value.yLabels, (t, u) => (a(), l(m, null, [
1205
+ }, null, 8, Qa)
1206
+ ])) : g("", !0),
1207
+ e.value.xyShowScale ? (a(), l("g", Ka, [
1208
+ (a(!0), l(m, null, $(v.value.yLabels, (t, i) => (a(), l(m, null, [
1214
1209
  t.y <= v.value.drawingArea.bottom ? (a(), l("line", {
1215
1210
  key: 0,
1216
1211
  x1: t.x + 4,
@@ -1220,7 +1215,7 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
1220
1215
  stroke: e.value.xyAxisStroke,
1221
1216
  "stroke-width": e.value.xyAxisStrokeWidth,
1222
1217
  "stroke-linecap": "round"
1223
- }, null, 8, Ja)) : f("", !0),
1218
+ }, null, 8, el)) : g("", !0),
1224
1219
  t.y <= v.value.drawingArea.bottom ? (a(), l("text", {
1225
1220
  key: 1,
1226
1221
  x: t.x,
@@ -1228,143 +1223,143 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
1228
1223
  "text-anchor": "end",
1229
1224
  "font-size": e.value.xyLabelsYFontSize,
1230
1225
  fill: e.value.color
1231
- }, O(g(Z)(
1226
+ }, P(f(X)(
1232
1227
  e.value.formatter,
1233
1228
  t.value,
1234
- g(D)({
1229
+ f(D)({
1235
1230
  p: e.value.valuePrefix,
1236
1231
  v: t.value,
1237
1232
  s: e.value.valueSuffix,
1238
1233
  r: e.value.dataLabelRoundingValue
1239
1234
  }),
1240
- { datapoint: t, seriesIndex: u }
1241
- )), 9, Qa)) : f("", !0)
1235
+ { datapoint: t, seriesIndex: i }
1236
+ )), 9, tl)) : g("", !0)
1242
1237
  ], 64))), 256))
1243
- ])) : f("", !0),
1244
- e.value.xyShowScale && e.value.xyPeriods.length ? (a(), l("g", Ka, [
1245
- (a(!0), l(m, null, $(e.value.xyPeriods.slice(p.value.start, p.value.end), (t, u) => (a(), l("line", {
1246
- x1: v.value.drawingArea.left + v.value.slotSize * (u + 1) - v.value.slotSize / 2,
1247
- x2: v.value.drawingArea.left + v.value.slotSize * (u + 1) - v.value.slotSize / 2,
1238
+ ])) : g("", !0),
1239
+ e.value.xyShowScale && e.value.xyPeriods.length ? (a(), l("g", al, [
1240
+ (a(!0), l(m, null, $(e.value.xyPeriods.slice(p.value.start, p.value.end), (t, i) => (a(), l("line", {
1241
+ x1: v.value.drawingArea.left + v.value.slotSize * (i + 1) - v.value.slotSize / 2,
1242
+ x2: v.value.drawingArea.left + v.value.slotSize * (i + 1) - v.value.slotSize / 2,
1248
1243
  y1: v.value.drawingArea.bottom,
1249
1244
  y2: v.value.drawingArea.bottom + 4,
1250
1245
  stroke: e.value.xyAxisStroke,
1251
1246
  "stroke-width": e.value.xyAxisStrokeWidth,
1252
1247
  "stroke-linecap": "round"
1253
- }, null, 8, el))), 256)),
1254
- (a(!0), l(m, null, $(e.value.xyPeriods.slice(p.value.start, p.value.end), (t, u) => (a(), l("text", {
1248
+ }, null, 8, ll))), 256)),
1249
+ (a(!0), l(m, null, $(e.value.xyPeriods.slice(p.value.start, p.value.end), (t, i) => (a(), l("text", {
1255
1250
  "font-size": e.value.xyLabelsXFontSize,
1256
1251
  "text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
1257
- transform: `translate(${v.value.drawingArea.left + v.value.slotSize * (u + 1) - v.value.slotSize / 2}, ${v.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}) rotate(${e.value.xyPeriodLabelsRotation})`,
1252
+ transform: `translate(${v.value.drawingArea.left + v.value.slotSize * (i + 1) - v.value.slotSize / 2}, ${v.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}) rotate(${e.value.xyPeriodLabelsRotation})`,
1258
1253
  fill: e.value.color
1259
- }, O(t), 9, tl))), 256))
1260
- ])) : f("", !0),
1261
- _("g", al, [
1262
- (a(!0), l(m, null, $(v.value.dataset, (t, u) => (a(), l(m, null, [
1254
+ }, P(t), 9, ol))), 256))
1255
+ ])) : g("", !0),
1256
+ _("g", nl, [
1257
+ (a(!0), l(m, null, $(v.value.dataset, (t, i) => (a(), l(m, null, [
1263
1258
  (a(!0), l(m, null, $(t.coordinates, (r, h) => (a(), l("rect", {
1264
1259
  x: r.x,
1265
1260
  width: r.width <= 0 ? 1e-5 : r.width,
1266
- height: g(Y)(r.height <= 0 ? 1e-5 : r.height),
1267
- y: g(Y)(r.y),
1261
+ height: f(Z)(r.height <= 0 ? 1e-5 : r.height),
1262
+ y: f(Z)(r.y),
1268
1263
  fill: t.color,
1269
1264
  stroke: e.value.backgroundColor,
1270
1265
  "stroke-width": e.value.barStrokeWidth,
1271
1266
  "stroke-linecap": "round",
1272
- class: ve({ "vue-data-ui-bar-animated": e.value.barAnimated && r.value < 0 })
1267
+ class: ce({ "vue-data-ui-bar-animated": e.value.barAnimated && r.value < 0 })
1273
1268
  }, [
1274
- e.value.barAnimated && r.value > 0 && !g(Ae) && !g(_e) ? (a(), l("animate", {
1269
+ e.value.barAnimated && r.value > 0 && !f(Ie) && !f(Ee) ? (a(), l("animate", {
1275
1270
  key: 0,
1276
1271
  attributeName: "height",
1277
1272
  from: 0,
1278
1273
  to: r.height,
1279
1274
  dur: "0.5s"
1280
- }, null, 8, ol)) : f("", !0),
1281
- e.value.barAnimated && r.value > 0 && !g(Ae) && !g(_e) ? (a(), l("animate", {
1275
+ }, null, 8, il)) : g("", !0),
1276
+ e.value.barAnimated && r.value > 0 && !f(Ie) && !f(Ee) ? (a(), l("animate", {
1282
1277
  key: 1,
1283
1278
  attributeName: "y",
1284
1279
  from: v.value.absoluteZero,
1285
1280
  to: v.value.absoluteZero - r.height,
1286
1281
  dur: "0.5s"
1287
- }, null, 8, nl)) : f("", !0)
1288
- ], 10, ll))), 256))
1282
+ }, null, 8, rl)) : g("", !0)
1283
+ ], 10, ul))), 256))
1289
1284
  ], 64))), 256))
1290
1285
  ]),
1291
- e.value.showDataLabels ? (a(), l("g", il, [
1292
- (a(!0), l(m, null, $(v.value.dataset, (t, u) => (a(), l(m, null, [
1286
+ e.value.showDataLabels ? (a(), l("g", sl, [
1287
+ (a(!0), l(m, null, $(v.value.dataset, (t, i) => (a(), l(m, null, [
1293
1288
  (a(!0), l(m, null, $(t.coordinates, (r, h) => (a(), l("text", {
1294
1289
  x: r.x + r.width / 2,
1295
- y: g(Y)(r.y) - e.value.dataLabelFontSize / 2,
1290
+ y: f(Z)(r.y) - e.value.dataLabelFontSize / 2,
1296
1291
  "text-anchor": "middle",
1297
1292
  "font-size": e.value.dataLabelFontSize,
1298
1293
  fill: t.color,
1299
1294
  class: "quick-animation"
1300
- }, O(g(Z)(
1295
+ }, P(f(X)(
1301
1296
  e.value.formatter,
1302
- g(Y)(r.value),
1303
- g(D)({
1297
+ f(Z)(r.value),
1298
+ f(D)({
1304
1299
  p: e.value.valuePrefix,
1305
- v: g(Y)(r.value),
1300
+ v: f(Z)(r.value),
1306
1301
  s: e.value.valueSuffix,
1307
1302
  r: e.value.dataLabelRoundingValue
1308
1303
  }),
1309
1304
  { datapoint: r, seriesIndex: h }
1310
- )), 9, ul))), 256))
1305
+ )), 9, vl))), 256))
1311
1306
  ], 64))), 256))
1312
- ])) : f("", !0),
1313
- _("g", rl, [
1314
- (a(!0), l(m, null, $(v.value.extremes.maxSeries, (t, u) => (a(), l("rect", {
1315
- x: v.value.drawingArea.left + u * v.value.slotSize,
1307
+ ])) : g("", !0),
1308
+ _("g", dl, [
1309
+ (a(!0), l(m, null, $(v.value.extremes.maxSeries, (t, i) => (a(), l("rect", {
1310
+ x: v.value.drawingArea.left + i * v.value.slotSize,
1316
1311
  y: v.value.drawingArea.top,
1317
1312
  height: v.value.drawingArea.height <= 0 ? 1e-5 : v.value.drawingArea.height,
1318
1313
  width: v.value.slotSize <= 0 ? 1e-5 : v.value.slotSize,
1319
- fill: [H.value, G.value].includes(u) ? e.value.xyHighlighterColor : "transparent",
1320
- style: M(`opacity:${e.value.xyHighlighterOpacity}`),
1321
- onMouseenter: (r) => v.value.useTooltip(u),
1314
+ fill: [W.value, j.value].includes(i) ? e.value.xyHighlighterColor : "transparent",
1315
+ style: R(`opacity:${e.value.xyHighlighterOpacity}`),
1316
+ onMouseenter: (r) => v.value.useTooltip(i),
1322
1317
  onMouseleave: s[2] || (s[2] = (r) => v.value.killTooltip()),
1323
- onClick: (r) => ie("selectDatapoint", v.value.dataset.map((h) => ({
1318
+ onClick: (r) => ue("selectDatapoint", v.value.dataset.map((h) => ({
1324
1319
  ...h,
1325
- value: h.values[u]
1320
+ value: h.values[i]
1326
1321
  })))
1327
- }, null, 44, sl))), 256))
1322
+ }, null, 44, cl))), 256))
1328
1323
  ])
1329
- ], 64)) : f("", !0),
1330
- [A.LINE, A.BAR].includes(z.value) ? (a(), l("g", vl, [
1331
- e.value.xAxisLabel && z.value === A.LINE ? (a(), l("g", dl, [
1324
+ ], 64)) : g("", !0),
1325
+ [A.LINE, A.BAR].includes(z.value) ? (a(), l("g", hl, [
1326
+ e.value.xAxisLabel && z.value === A.LINE ? (a(), l("g", fl, [
1332
1327
  _("text", {
1333
1328
  "font-size": e.value.axisLabelsFontSize,
1334
1329
  fill: e.value.color,
1335
1330
  "text-anchor": "middle",
1336
1331
  x: d.value.drawingArea.left + d.value.drawingArea.width / 2,
1337
1332
  y: b.value.height - e.value.axisLabelsFontSize / 3
1338
- }, O(e.value.xAxisLabel), 9, cl)
1339
- ])) : f("", !0),
1340
- e.value.xAxisLabel && z.value === A.BAR ? (a(), l("g", hl, [
1333
+ }, P(e.value.xAxisLabel), 9, gl)
1334
+ ])) : g("", !0),
1335
+ e.value.xAxisLabel && z.value === A.BAR ? (a(), l("g", ml, [
1341
1336
  _("text", {
1342
1337
  "font-size": e.value.axisLabelsFontSize,
1343
1338
  fill: e.value.color,
1344
1339
  "text-anchor": "middle",
1345
1340
  x: v.value.drawingArea.left + v.value.drawingArea.width / 2,
1346
1341
  y: b.value.height - e.value.axisLabelsFontSize / 3
1347
- }, O(e.value.xAxisLabel), 9, fl)
1348
- ])) : f("", !0),
1349
- e.value.yAxisLabel && z.value === A.LINE ? (a(), l("g", gl, [
1342
+ }, P(e.value.xAxisLabel), 9, pl)
1343
+ ])) : g("", !0),
1344
+ e.value.yAxisLabel && z.value === A.LINE ? (a(), l("g", yl, [
1350
1345
  _("text", {
1351
1346
  "font-size": e.value.axisLabelsFontSize,
1352
1347
  fill: e.value.color,
1353
1348
  transform: `translate(${e.value.axisLabelsFontSize}, ${d.value.drawingArea.top + d.value.drawingArea.height / 2}) rotate(-90)`,
1354
1349
  "text-anchor": "middle"
1355
- }, O(e.value.yAxisLabel), 9, ml)
1356
- ])) : f("", !0),
1357
- e.value.yAxisLabel && z.value === A.BAR ? (a(), l("g", pl, [
1350
+ }, P(e.value.yAxisLabel), 9, xl)
1351
+ ])) : g("", !0),
1352
+ e.value.yAxisLabel && z.value === A.BAR ? (a(), l("g", kl, [
1358
1353
  _("text", {
1359
1354
  "font-size": e.value.axisLabelsFontSize,
1360
1355
  fill: e.value.color,
1361
1356
  transform: `translate(${e.value.axisLabelsFontSize}, ${v.value.drawingArea.top + v.value.drawingArea.height / 2}) rotate(-90)`,
1362
1357
  "text-anchor": "middle"
1363
- }, O(e.value.yAxisLabel), 9, yl)
1364
- ])) : f("", !0)
1365
- ])) : f("", !0)
1366
- ], 12, ea)) : f("", !0),
1367
- z.value ? f("", !0) : (a(), Ee(Vt, {
1358
+ }, P(e.value.yAxisLabel), 9, bl)
1359
+ ])) : g("", !0)
1360
+ ])) : g("", !0)
1361
+ ], 12, la)) : g("", !0),
1362
+ z.value ? g("", !0) : (a(), Me(f(ge), {
1368
1363
  key: 5,
1369
1364
  config: {
1370
1365
  type: "line",
@@ -1382,18 +1377,18 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
1382
1377
  }
1383
1378
  }
1384
1379
  }, null, 8, ["config"])),
1385
- o.$slots.watermark ? (a(), l("div", xl, [
1386
- N(o.$slots, "watermark", ae(le({ isPrinting: g(Ae) || g(_e) })), void 0, !0)
1387
- ])) : f("", !0),
1380
+ o.$slots.watermark ? (a(), l("div", Sl, [
1381
+ M(o.$slots, "watermark", oe(ne({ isPrinting: f(Ie) || f(Ee) })), void 0, !0)
1382
+ ])) : g("", !0),
1388
1383
  [A.BAR, A.LINE].includes(z.value) && e.value.zoomXy && x.value.maxSeriesLength > 1 ? (a(), l("div", {
1389
- key: `slicer_${Se.value}`,
1384
+ key: `slicer_${$e.value}`,
1390
1385
  ref_key: "quickChartSlicer",
1391
- ref: ce
1386
+ ref: Xe
1392
1387
  }, [
1393
- (a(), Ee(Dt, {
1388
+ (a(), Me(Xt, {
1394
1389
  ref_key: "slicerComponent",
1395
- ref: ue,
1396
- key: `slicer_${Se.value}`,
1390
+ ref: re,
1391
+ key: `slicer_${$e.value}`,
1397
1392
  background: e.value.zoomColor,
1398
1393
  borderColor: e.value.backgroundColor,
1399
1394
  fontSize: e.value.zoomFontSize,
@@ -1412,10 +1407,10 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
1412
1407
  minimapSelectedColorOpacity: e.value.zoomMinimap.selectedColorOpacity,
1413
1408
  minimapSelectionRadius: e.value.zoomMinimap.selectionRadius,
1414
1409
  minimapLineColor: e.value.zoomMinimap.lineColor,
1415
- minimap: bt.value,
1410
+ minimap: Ct.value,
1416
1411
  minimapIndicatorColor: e.value.zoomMinimap.indicatorColor,
1417
1412
  verticalHandles: e.value.zoomMinimap.verticalHandles,
1418
- minimapSelectedIndex: G.value,
1413
+ minimapSelectedIndex: j.value,
1419
1414
  start: p.value.start,
1420
1415
  "onUpdate:start": s[3] || (s[3] = (t) => p.value.start = t),
1421
1416
  end: p.value.end,
@@ -1424,123 +1419,123 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
1424
1419
  refreshEndPoint: e.value.zoomEndIndex !== null ? e.value.zoomEndIndex + 1 : x.value.maxSeriesLength,
1425
1420
  enableRangeHandles: e.value.zoomEnableRangeHandles,
1426
1421
  enableSelectionDrag: e.value.zoomEnableSelectionDrag,
1427
- onReset: xt,
1428
- onTrapMouse: yt
1422
+ onReset: Lt,
1423
+ onTrapMouse: zt
1429
1424
  }, {
1430
- "reset-action": X(({ reset: t }) => [
1431
- N(o.$slots, "reset-action", ae(le({ reset: t })), void 0, !0)
1425
+ "reset-action": G(({ reset: t }) => [
1426
+ M(o.$slots, "reset-action", oe(ne({ reset: t })), void 0, !0)
1432
1427
  ]),
1433
1428
  _: 3
1434
1429
  }, 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"]))
1435
- ])) : f("", !0),
1430
+ ])) : g("", !0),
1436
1431
  e.value.showLegend ? (a(), l("div", {
1437
1432
  key: 8,
1438
1433
  ref_key: "quickChartLegend",
1439
- ref: ne,
1434
+ ref: Ge,
1440
1435
  class: "vue-ui-quick-chart-legend",
1441
- style: M(`background:transparent;color:${e.value.color}`)
1436
+ style: R(`background:transparent;color:${e.value.color}`)
1442
1437
  }, [
1443
- z.value === A.DONUT ? (a(!0), l(m, { key: 0 }, $(I.value.legend, (t, u) => (a(), l("div", {
1438
+ z.value === A.DONUT ? (a(!0), l(m, { key: 0 }, $(I.value.legend, (t, i) => (a(), l("div", {
1444
1439
  class: "vue-ui-quick-chart-legend-item",
1445
1440
  onClick: (r) => {
1446
- pt(t, I.value.dataset), ie("selectLegend", t);
1441
+ _t(t, I.value.dataset), ue("selectLegend", t);
1447
1442
  },
1448
- style: M(`cursor: ${I.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
1443
+ style: R(`cursor: ${I.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
1449
1444
  }, [
1450
- e.value.useCustomLegend ? N(o.$slots, "legend", Fe({
1445
+ e.value.useCustomLegend ? M(o.$slots, "legend", Ve({
1451
1446
  key: 0,
1452
1447
  ref_for: !0
1453
1448
  }, { legend: t }), void 0, !0) : (a(), l(m, { key: 1 }, [
1454
- de(Oe, {
1449
+ he(f(O), {
1455
1450
  name: e.value.legendIcon,
1456
1451
  stroke: t.color,
1457
1452
  size: e.value.legendIconSize
1458
1453
  }, null, 8, ["name", "stroke", "size"]),
1459
1454
  _("span", {
1460
- style: M(`font-size:${e.value.legendFontSize}px`)
1461
- }, O(t.name), 5),
1455
+ style: R(`font-size:${e.value.legendFontSize}px`)
1456
+ }, P(t.name), 5),
1462
1457
  _("span", {
1463
- style: M(`font-size:${e.value.legendFontSize}px;font-variant-numeric:tabular-nums`)
1464
- }, O(w.value.includes(t.id) ? "-" : g(Z)(
1458
+ style: R(`font-size:${e.value.legendFontSize}px;font-variant-numeric:tabular-nums`)
1459
+ }, P(w.value.includes(t.id) ? "-" : f(X)(
1465
1460
  e.value.formatter,
1466
1461
  t.absoluteValue,
1467
- g(D)({
1462
+ f(D)({
1468
1463
  p: e.value.valuePrefix,
1469
1464
  v: t.absoluteValue,
1470
1465
  s: e.value.valueSuffix,
1471
1466
  r: e.value.dataLabelRoundingValue
1472
1467
  }),
1473
- { datapoint: t, seriesIndex: u }
1468
+ { datapoint: t, seriesIndex: i }
1474
1469
  )), 5),
1475
1470
  w.value.includes(t.id) ? (a(), l("span", {
1476
1471
  key: 0,
1477
- style: M(`font-size:${e.value.legendFontSize}px`)
1478
- }, " ( - % ) ", 4)) : Le.value ? (a(), l("span", {
1472
+ style: R(`font-size:${e.value.legendFontSize}px`)
1473
+ }, " ( - % ) ", 4)) : Pe.value ? (a(), l("span", {
1479
1474
  key: 1,
1480
- style: M(`font-size:${e.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
1475
+ style: R(`font-size:${e.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
1481
1476
  }, " ( - % ) ", 4)) : (a(), l("span", {
1482
1477
  key: 2,
1483
- style: M(`font-size:${e.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
1484
- }, " (" + O(g(D)({
1478
+ style: R(`font-size:${e.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
1479
+ }, " (" + P(f(D)({
1485
1480
  v: t.value / I.value.total * 100,
1486
1481
  s: "%",
1487
1482
  r: e.value.dataLabelRoundingPercentage
1488
1483
  })) + ") ", 5))
1489
1484
  ], 64))
1490
- ], 12, kl))), 256)) : f("", !0),
1491
- z.value === A.LINE ? (a(!0), l(m, { key: 1 }, $(d.value.legend, (t, u) => (a(), l("div", {
1485
+ ], 12, wl))), 256)) : g("", !0),
1486
+ z.value === A.LINE ? (a(!0), l(m, { key: 1 }, $(d.value.legend, (t, i) => (a(), l("div", {
1492
1487
  class: "vue-ui-quick-chart-legend-item",
1493
1488
  onClick: (r) => {
1494
- Ke(t.id, d.value.legend.length - 1), ie("selectLegend", t);
1489
+ ut(t.id, d.value.legend.length - 1), ue("selectLegend", t);
1495
1490
  },
1496
- style: M(`cursor: ${d.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
1491
+ style: R(`cursor: ${d.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
1497
1492
  }, [
1498
- e.value.useCustomLegend ? N(o.$slots, "legend", Fe({
1493
+ e.value.useCustomLegend ? M(o.$slots, "legend", Ve({
1499
1494
  key: 0,
1500
1495
  ref_for: !0
1501
1496
  }, { legend: t }), void 0, !0) : (a(), l(m, { key: 1 }, [
1502
- de(Oe, {
1497
+ he(f(O), {
1503
1498
  name: e.value.legendIcon,
1504
1499
  stroke: t.color,
1505
1500
  size: e.value.legendIconSize
1506
1501
  }, null, 8, ["name", "stroke", "size"]),
1507
1502
  _("span", {
1508
- style: M(`font-size:${e.value.legendFontSize}px`)
1509
- }, O(t.name), 5)
1503
+ style: R(`font-size:${e.value.legendFontSize}px`)
1504
+ }, P(t.name), 5)
1510
1505
  ], 64))
1511
- ], 12, bl))), 256)) : f("", !0),
1512
- z.value === A.BAR ? (a(!0), l(m, { key: 2 }, $(v.value.legend, (t, u) => (a(), l("div", {
1506
+ ], 12, Al))), 256)) : g("", !0),
1507
+ z.value === A.BAR ? (a(!0), l(m, { key: 2 }, $(v.value.legend, (t, i) => (a(), l("div", {
1513
1508
  class: "vue-ui-quick-chart-legend-item",
1514
1509
  onClick: (r) => {
1515
- Ke(t.id, v.value.legend.length - 1), ie("selectLegend", t);
1510
+ ut(t.id, v.value.legend.length - 1), ue("selectLegend", t);
1516
1511
  },
1517
- style: M(`cursor: ${v.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
1512
+ style: R(`cursor: ${v.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
1518
1513
  }, [
1519
- e.value.useCustomLegend ? N(o.$slots, "legend", Fe({
1514
+ e.value.useCustomLegend ? M(o.$slots, "legend", Ve({
1520
1515
  key: 0,
1521
1516
  ref_for: !0
1522
1517
  }, { legend: t }), void 0, !0) : (a(), l(m, { key: 1 }, [
1523
- de(Oe, {
1518
+ he(f(O), {
1524
1519
  name: e.value.legendIcon,
1525
1520
  stroke: t.color,
1526
1521
  size: e.value.legendIconSize
1527
1522
  }, null, 8, ["name", "stroke", "size"]),
1528
1523
  _("span", {
1529
- style: M(`font-size:${e.value.legendFontSize}px`)
1530
- }, O(t.name), 5)
1524
+ style: R(`font-size:${e.value.legendFontSize}px`)
1525
+ }, P(t.name), 5)
1531
1526
  ], 64))
1532
- ], 12, Sl))), 256)) : f("", !0)
1533
- ], 4)) : f("", !0),
1527
+ ], 12, _l))), 256)) : g("", !0)
1528
+ ], 4)) : g("", !0),
1534
1529
  o.$slots.source ? (a(), l("div", {
1535
1530
  key: 9,
1536
1531
  ref_key: "source",
1537
- ref: Ve,
1532
+ ref: Ze,
1538
1533
  dir: "auto"
1539
1534
  }, [
1540
- N(o.$slots, "source", {}, void 0, !0)
1541
- ], 512)) : f("", !0),
1542
- de(Ft, {
1543
- show: me.value.showTooltip && j.value,
1535
+ M(o.$slots, "source", {}, void 0, !0)
1536
+ ], 512)) : g("", !0),
1537
+ he(f(me), {
1538
+ show: be.value.showTooltip && K.value,
1544
1539
  backgroundColor: e.value.backgroundColor,
1545
1540
  color: e.value.color,
1546
1541
  borderRadius: e.value.tooltipBorderRadius,
@@ -1550,28 +1545,28 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
1550
1545
  backgroundOpacity: e.value.tooltipBackgroundOpacity,
1551
1546
  position: e.value.tooltipPosition,
1552
1547
  offsetY: e.value.tooltipOffsetY,
1553
- parent: W.value,
1554
- content: Q.value,
1555
- isFullscreen: $e.value,
1556
- isCustom: g(Pe)(e.value.tooltipCustomFormat)
1548
+ parent: pe.value,
1549
+ content: ee.value,
1550
+ isFullscreen: Oe.value,
1551
+ isCustom: f(Ne)(e.value.tooltipCustomFormat)
1557
1552
  }, {
1558
- "tooltip-before": X(() => [
1559
- N(o.$slots, "tooltip-before", ae(le({ ...he.value })), void 0, !0)
1553
+ "tooltip-before": G(() => [
1554
+ M(o.$slots, "tooltip-before", oe(ne({ ...ye.value })), void 0, !0)
1560
1555
  ]),
1561
- "tooltip-after": X(() => [
1562
- N(o.$slots, "tooltip-after", ae(le({ ...he.value })), void 0, !0)
1556
+ "tooltip-after": G(() => [
1557
+ M(o.$slots, "tooltip-after", oe(ne({ ...ye.value })), void 0, !0)
1563
1558
  ]),
1564
1559
  _: 3
1565
1560
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"])
1566
- ], 46, Kt)) : (a(), l("div", wl, [
1567
- de(Oe, {
1561
+ ], 46, aa)) : (a(), l("div", zl, [
1562
+ he(f(O), {
1568
1563
  name: "circleCancel",
1569
1564
  stroke: "red"
1570
1565
  }),
1571
1566
  s[8] || (s[8] = _("span", null, "Dataset is not processable", -1))
1572
1567
  ]));
1573
1568
  }
1574
- }, Fl = /* @__PURE__ */ jt(Al, [["__scopeId", "data-v-e110140a"]]);
1569
+ }, Ml = /* @__PURE__ */ Zt(Ll, [["__scopeId", "data-v-1682d0a5"]]);
1575
1570
  export {
1576
- Fl as default
1571
+ Ml as default
1577
1572
  };