vue-data-ui 3.2.8 → 3.3.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 (159) hide show
  1. package/dist/{Arrow-Bb0bGghy.js → Arrow-CKLBHe3L.js} +1 -1
  2. package/dist/{BaseDraggableDialog-CHhZIht2.js → BaseDraggableDialog-q3pgSDTz.js} +2 -2
  3. package/dist/{BaseIcon-Bz-1GQhu.js → BaseIcon-CtqN7W_g.js} +4 -3
  4. package/dist/{ColorPicker-B-WUqMoV.js → ColorPicker-Cr6rUDTP.js} +2 -2
  5. package/dist/{DataTable-BvjacRbw.js → DataTable-BeI6gYJX.js} +2 -2
  6. package/dist/{Legend-BpoFJ8fc.js → Legend-DsogCeTb.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-l9giyY1Z.js → NonSvgPenAndPaper-BDK_ucTG.js} +3 -3
  8. package/dist/{PackageVersion-C40g0Rfc.js → PackageVersion-C9oklnuy.js} +1 -1
  9. package/dist/{PenAndPaper-CR8q353D.js → PenAndPaper-BxbYiPy4.js} +3 -3
  10. package/dist/{Shape-C_C_OmqR.js → Shape-DJG2zW7b.js} +1 -1
  11. package/dist/{Slicer-BA2GhOmY.js → Slicer-D6T4aUhr.js} +2 -2
  12. package/dist/{SparkTooltip-Dz1PDE_h.js → SparkTooltip-Cp0G9giW.js} +1 -1
  13. package/dist/{Title-DG2nloSB.js → Title-D17CJXko.js} +1 -1
  14. package/dist/{Tooltip-BOXz8skU.js → Tooltip-CtVdvbZi.js} +1 -1
  15. package/dist/{UserOptions-DsTgvAok.js → UserOptions-B3vCIe-u.js} +168 -126
  16. package/dist/components/arrow.js +1 -1
  17. package/dist/components/vue-ui-3d-bar.js +1 -1
  18. package/dist/components/vue-ui-accordion.js +1 -1
  19. package/dist/components/vue-ui-age-pyramid.js +1 -1
  20. package/dist/components/vue-ui-annotator.js +1 -1
  21. package/dist/components/vue-ui-bullet.js +1 -1
  22. package/dist/components/vue-ui-candlestick.js +1 -1
  23. package/dist/components/vue-ui-carousel-table.js +1 -1
  24. package/dist/components/vue-ui-chestnut.js +1 -1
  25. package/dist/components/vue-ui-chord.js +1 -1
  26. package/dist/components/vue-ui-circle-pack.js +1 -1
  27. package/dist/components/vue-ui-cursor.js +1 -1
  28. package/dist/components/vue-ui-dashboard.js +1 -1
  29. package/dist/components/vue-ui-digits.js +1 -1
  30. package/dist/components/vue-ui-donut-evolution.js +1 -1
  31. package/dist/components/vue-ui-donut.js +1 -1
  32. package/dist/components/vue-ui-dumbbell.js +1 -1
  33. package/dist/components/vue-ui-flow.js +1 -1
  34. package/dist/components/vue-ui-funnel.js +1 -1
  35. package/dist/components/vue-ui-galaxy.js +1 -1
  36. package/dist/components/vue-ui-gauge.js +1 -1
  37. package/dist/components/vue-ui-gizmo.js +1 -1
  38. package/dist/components/vue-ui-heatmap.js +1 -1
  39. package/dist/components/vue-ui-history-plot.js +1 -1
  40. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  41. package/dist/components/vue-ui-icon.js +1 -1
  42. package/dist/components/vue-ui-kpi.js +1 -1
  43. package/dist/components/vue-ui-mini-loader.js +1 -1
  44. package/dist/components/vue-ui-molecule.js +1 -1
  45. package/dist/components/vue-ui-mood-radar.js +1 -1
  46. package/dist/components/vue-ui-nested-donuts.js +1 -1
  47. package/dist/components/vue-ui-onion.js +1 -1
  48. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  49. package/dist/components/vue-ui-quadrant.js +1 -1
  50. package/dist/components/vue-ui-quick-chart.js +1 -1
  51. package/dist/components/vue-ui-radar.js +1 -1
  52. package/dist/components/vue-ui-rating.js +1 -1
  53. package/dist/components/vue-ui-relation-circle.js +1 -1
  54. package/dist/components/vue-ui-ridgeline.js +1 -1
  55. package/dist/components/vue-ui-rings.js +1 -1
  56. package/dist/components/vue-ui-scatter.js +1 -1
  57. package/dist/components/vue-ui-skeleton.js +1 -1
  58. package/dist/components/vue-ui-smiley.js +1 -1
  59. package/dist/components/vue-ui-spark-trend.js +1 -1
  60. package/dist/components/vue-ui-sparkbar.js +1 -1
  61. package/dist/components/vue-ui-sparkgauge.js +1 -1
  62. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  63. package/dist/components/vue-ui-sparkline.js +1 -1
  64. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  65. package/dist/components/vue-ui-stackbar.js +1 -1
  66. package/dist/components/vue-ui-strip-plot.js +1 -1
  67. package/dist/components/vue-ui-table-heatmap.js +1 -1
  68. package/dist/components/vue-ui-table-sparkline.js +1 -1
  69. package/dist/components/vue-ui-table.js +1 -1
  70. package/dist/components/vue-ui-thermometer.js +1 -1
  71. package/dist/components/vue-ui-timer.js +1 -1
  72. package/dist/components/vue-ui-tiremarks.js +1 -1
  73. package/dist/components/vue-ui-treemap.js +1 -1
  74. package/dist/components/vue-ui-vertical-bar.js +1 -1
  75. package/dist/components/vue-ui-waffle.js +1 -1
  76. package/dist/components/vue-ui-wheel.js +1 -1
  77. package/dist/components/vue-ui-word-cloud.js +1 -1
  78. package/dist/components/vue-ui-world.js +1 -1
  79. package/dist/components/vue-ui-xy-canvas.js +1 -1
  80. package/dist/components/vue-ui-xy.js +1 -1
  81. package/dist/{dom-to-png-BgvOdfyW.js → dom-to-png-BiyqJA3t.js} +1 -1
  82. package/dist/{img-DjWwQXVS.js → img-6wPuVVtk.js} +1 -1
  83. package/dist/{lib-BEpWEyMm.js → lib-GIYcnm0E.js} +110 -96
  84. package/dist/{pdf-YD0ShN36.js → pdf-DjbHsnrb.js} +1 -1
  85. package/dist/style.css +1 -1
  86. package/dist/types/vue-data-ui.d.ts +8 -1
  87. package/dist/{useAutoSizeLabelsInsideViewbox-BVJkib7z.js → useAutoSizeLabelsInsideViewbox-Csv3pVmh.js} +1 -1
  88. package/dist/{useNestedProp-BOk-tPdu.js → useNestedProp-mxyyqd0B.js} +291 -246
  89. package/dist/{usePrinter-w23K-ezx.js → usePrinter-DYRFiw7X.js} +2 -2
  90. package/dist/useSvgExport-B7-Vrjtu.js +732 -0
  91. package/dist/vue-data-ui-DLU1snC3.js +326 -0
  92. package/dist/vue-data-ui.js +68 -68
  93. package/dist/{vue-ui-3d-bar-Cf7zHemQ.js → vue-ui-3d-bar-D6xoBrN6.js} +358 -342
  94. package/dist/{vue-ui-accordion-CDIzGCG1.js → vue-ui-accordion-Dch9YrCi.js} +3 -3
  95. package/dist/{vue-ui-age-pyramid-T09D0LHr.js → vue-ui-age-pyramid-D74mAaLA.js} +228 -212
  96. package/dist/{vue-ui-annotator-3bUg-1Zy.js → vue-ui-annotator-DwRwhrgB.js} +7 -7
  97. package/dist/{vue-ui-bullet-DKgdFa2v.js → vue-ui-bullet-D2qVUqWs.js} +197 -179
  98. package/dist/{vue-ui-candlestick-g6PO_L_7.js → vue-ui-candlestick-C81k1_f9.js} +278 -262
  99. package/dist/{vue-ui-carousel-table-Ch2xooE8.js → vue-ui-carousel-table-DBIhnEj-.js} +4 -4
  100. package/dist/{vue-ui-chestnut-B-nzp0b6.js → vue-ui-chestnut-CSM-_IWw.js} +425 -379
  101. package/dist/{vue-ui-chord-BqS8DoTd.js → vue-ui-chord-BFW9nnNh.js} +317 -299
  102. package/dist/{vue-ui-circle-pack-B1axDP9l.js → vue-ui-circle-pack-D6mTG5i0.js} +249 -233
  103. package/dist/{vue-ui-cursor-Detis-4Y.js → vue-ui-cursor-BJmTAMpP.js} +2 -2
  104. package/dist/{vue-ui-dashboard-TXcw45j_.js → vue-ui-dashboard-BdFLsK4u.js} +67 -67
  105. package/dist/{vue-ui-digits-pW7YVqxy.js → vue-ui-digits-DXum1rs6.js} +2 -2
  106. package/dist/{vue-ui-donut-BFpWEe2s.js → vue-ui-donut-CqefukGp.js} +662 -645
  107. package/dist/{vue-ui-donut-evolution-BoVslTri.js → vue-ui-donut-evolution-DFIbK50s.js} +406 -384
  108. package/dist/{vue-ui-dumbbell-CRHvtmq9.js → vue-ui-dumbbell-DIo2ecGY.js} +295 -274
  109. package/dist/vue-ui-flow--kiGWaq4.js +931 -0
  110. package/dist/{vue-ui-funnel-CKUlzitM.js → vue-ui-funnel-B8UHwj15.js} +174 -158
  111. package/dist/{vue-ui-galaxy-DZqCAK9c.js → vue-ui-galaxy-eQZh_y3l.js} +265 -252
  112. package/dist/{vue-ui-gauge-D3bPFF59.js → vue-ui-gauge-DJ-E6L2T.js} +256 -240
  113. package/dist/{vue-ui-gizmo-oVLp367W.js → vue-ui-gizmo-DFxlqPz7.js} +3 -3
  114. package/dist/{vue-ui-heatmap-C1RctcPx.js → vue-ui-heatmap-CcAe5dDN.js} +393 -372
  115. package/dist/{vue-ui-history-plot-CoQYOlF4.js → vue-ui-history-plot-CgKvd7Jx.js} +307 -289
  116. package/dist/{vue-ui-kpi-BZX-tqIm.js → vue-ui-kpi-Ct2iyD49.js} +3 -3
  117. package/dist/{vue-ui-mini-loader-hMqB-KQI.js → vue-ui-mini-loader-ByjcvXBB.js} +2 -2
  118. package/dist/{vue-ui-molecule-D0Kr_w-v.js → vue-ui-molecule-CGDBEAkX.js} +176 -160
  119. package/dist/vue-ui-mood-radar-D9GuK4cI.js +876 -0
  120. package/dist/{vue-ui-nested-donuts-94Gu95Z9.js → vue-ui-nested-donuts-CGKgOTX2.js} +541 -518
  121. package/dist/{vue-ui-onion-Dy_aTvGI.js → vue-ui-onion-C5tE1Woz.js} +318 -289
  122. package/dist/{vue-ui-parallel-coordinate-plot-D_oo5lQW.js → vue-ui-parallel-coordinate-plot-CVhD6IoH.js} +252 -233
  123. package/dist/{vue-ui-quadrant-CRYpRl_q.js → vue-ui-quadrant-BGDCaOXv.js} +294 -276
  124. package/dist/{vue-ui-quick-chart-B1s047tz.js → vue-ui-quick-chart-CjXSB-2S.js} +723 -685
  125. package/dist/{vue-ui-radar-DA7EuchK.js → vue-ui-radar-rhxkROX7.js} +307 -282
  126. package/dist/{vue-ui-rating-z2bsnprP.js → vue-ui-rating-Bo9gSy-z.js} +2 -2
  127. package/dist/{vue-ui-relation-circle-DZ8IiUNu.js → vue-ui-relation-circle-Qo8FKbL2.js} +146 -131
  128. package/dist/{vue-ui-ridgeline-5IWuJgs6.js → vue-ui-ridgeline-ahOApbEC.js} +320 -299
  129. package/dist/{vue-ui-rings-gY2f8mVf.js → vue-ui-rings-DFAVaEBs.js} +323 -310
  130. package/dist/{vue-ui-scatter-OLidvHlx.js → vue-ui-scatter-zjlWyvVd.js} +390 -372
  131. package/dist/{vue-ui-skeleton-BaysGsg0.js → vue-ui-skeleton-CKfOnyd_.js} +3 -3
  132. package/dist/{vue-ui-smiley-Dn2IR0oC.js → vue-ui-smiley-CY7UiJ9C.js} +2 -2
  133. package/dist/{vue-ui-spark-trend-gp5B9uF7.js → vue-ui-spark-trend-DwNYP97M.js} +3 -3
  134. package/dist/{vue-ui-sparkbar-8t63RYc7.js → vue-ui-sparkbar-BkdcYrmg.js} +3 -3
  135. package/dist/{vue-ui-sparkgauge-BWSykUpn.js → vue-ui-sparkgauge-C6Kq_OGV.js} +3 -3
  136. package/dist/{vue-ui-sparkhistogram-BEjxKMG5.js → vue-ui-sparkhistogram-CjB33yXB.js} +4 -4
  137. package/dist/{vue-ui-sparkline-bFF-ZCCH.js → vue-ui-sparkline-DcH4yIEd.js} +3 -3
  138. package/dist/{vue-ui-sparkstackbar-HtAlEtzK.js → vue-ui-sparkstackbar-MKr2u_pO.js} +3 -3
  139. package/dist/{vue-ui-stackbar-CUIWPgfk.js → vue-ui-stackbar-DKV-exfd.js} +355 -337
  140. package/dist/{vue-ui-strip-plot-DwS52yGc.js → vue-ui-strip-plot-ncTrDlNC.js} +368 -352
  141. package/dist/{vue-ui-table-BYqPx7k4.js → vue-ui-table-BdT3lGuv.js} +5 -5
  142. package/dist/{vue-ui-table-heatmap-CRfjUoa1.js → vue-ui-table-heatmap-D929cWB0.js} +5 -5
  143. package/dist/{vue-ui-table-sparkline-Bvf0ZBOi.js → vue-ui-table-sparkline-CkZ_ygR1.js} +4 -4
  144. package/dist/{vue-ui-thermometer-BB7cHec0.js → vue-ui-thermometer-CjBLR6H9.js} +148 -133
  145. package/dist/{vue-ui-timer-BVDKvC4v.js → vue-ui-timer-Bs7eMmiC.js} +5 -5
  146. package/dist/vue-ui-tiremarks-nGOZKRcz.js +423 -0
  147. package/dist/{vue-ui-treemap-nGgRTw0l.js → vue-ui-treemap-SQ2f5wbN.js} +403 -373
  148. package/dist/{vue-ui-vertical-bar-BJOm2JQh.js → vue-ui-vertical-bar-Hh9gAN5j.js} +295 -260
  149. package/dist/{vue-ui-waffle-aCMPaHbw.js → vue-ui-waffle-C7moVBln.js} +396 -377
  150. package/dist/{vue-ui-wheel-D_q23eOk.js → vue-ui-wheel-KrGLMCqW.js} +196 -180
  151. package/dist/{vue-ui-word-cloud-C7TMR4Zq.js → vue-ui-word-cloud-BQSu6kiR.js} +233 -217
  152. package/dist/{vue-ui-world-DtMYYQ6T.js → vue-ui-world-DdoMFJcV.js} +344 -326
  153. package/dist/{vue-ui-xy-Dputm9QT.js → vue-ui-xy-B2fjTYMJ.js} +1601 -1707
  154. package/dist/{vue-ui-xy-canvas-BCeQoXNM.js → vue-ui-xy-canvas-oUXISeU8.js} +10 -10
  155. package/package.json +1 -1
  156. package/dist/vue-data-ui-BcRg499t.js +0 -325
  157. package/dist/vue-ui-flow-CKGjSZoj.js +0 -909
  158. package/dist/vue-ui-mood-radar-C6UCofDb.js +0 -853
  159. package/dist/vue-ui-tiremarks-CBVuu_Zi.js +0 -407
@@ -1,144 +1,145 @@
1
- import { defineAsyncComponent as Ee, ref as w, computed as V, toRefs as da, watch as Te, shallowRef as Mt, onMounted as ca, onBeforeUnmount as Ot, nextTick as lt, watchEffect as fa, createElementBlock as n, openBlock as l, normalizeStyle as N, normalizeClass as de, createBlock as Ie, createCommentVNode as m, createElementVNode as z, createVNode as be, unref as s, createSlots as ha, withCtx as ne, renderSlot as W, normalizeProps as me, guardReactiveProps as ge, toDisplayString as D, Fragment as x, renderList as T, Teleport as ma, mergeProps as ot } from "vue";
2
- import { c as ga, t as pa, b as ya, p as J, B as We, e as xa, J as ka, f as ba, o as Sa, h as nt, n as wa, C as Xe, X as Aa, u as La, v as it, w as Pe, a as ie, d as G, L as Nt, U as Bt, q as ue, z as je, A as ut } from "./lib-BEpWEyMm.js";
3
- import { t as Dt, u as _a } from "./useResponsive-DfdjqQps.js";
4
- import { u as za, a as Ut } from "./useNestedProp-BOk-tPdu.js";
5
- import { u as $a } from "./usePrinter-w23K-ezx.js";
6
- import { u as Ca } from "./useTimeLabels-BGFjWgrv.js";
7
- import { u as Ea } from "./useChartAccessibility-9icAAmYg.js";
8
- import { u as Ta } from "./useTimeLabelCollider-CIsgDrl9.js";
9
- import Ia from "./img-DjWwQXVS.js";
10
- import { S as Pa } from "./Slicer-BA2GhOmY.js";
11
- import { t as Ra } from "./themes-Dw-dDudK.js";
12
- import { u as Fa, B as Ma } from "./BaseScanner-BgWxam9d.js";
13
- import { _ as Oa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
- const _ = {
1
+ import { defineAsyncComponent as Ee, ref as w, computed as R, toRefs as ya, watch as Te, shallowRef as Mt, onMounted as xa, onBeforeUnmount as Nt, nextTick as ot, watchEffect as ka, createElementBlock as n, openBlock as o, normalizeStyle as B, normalizeClass as de, createBlock as Ie, createCommentVNode as m, createElementVNode as C, createVNode as be, unref as s, createSlots as ba, withCtx as ne, renderSlot as W, normalizeProps as me, guardReactiveProps as ge, toDisplayString as U, Fragment as x, renderList as T, Teleport as Sa, mergeProps as nt } from "vue";
2
+ import { c as wa, t as Aa, b as La, p as J, B as We, e as _a, J as za, f as Ca, o as $a, h as it, n as Ea, C as Xe, X as Ta, u as Ia, v as ut, w as Pe, a as ie, d as G, L as Bt, U as Dt, q as ue, z as je, A as rt } from "./lib-GIYcnm0E.js";
3
+ import { t as Ut, u as Pa } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Oa, a as Vt } from "./useNestedProp-mxyyqd0B.js";
5
+ import { u as Fa, B as Ra } from "./BaseScanner-BgWxam9d.js";
6
+ import { u as Ma } from "./usePrinter-DYRFiw7X.js";
7
+ import { u as Na } from "./useSvgExport-B7-Vrjtu.js";
8
+ import { u as Ba } from "./useTimeLabels-BGFjWgrv.js";
9
+ import { u as Da } from "./useChartAccessibility-9icAAmYg.js";
10
+ import { u as Ua } from "./useTimeLabelCollider-CIsgDrl9.js";
11
+ import Va from "./img-6wPuVVtk.js";
12
+ import { S as qa } from "./Slicer-D6T4aUhr.js";
13
+ import { t as Ha } from "./themes-Dw-dDudK.js";
14
+ import { _ as Wa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
+ const A = {
15
16
  LINE: "LINE",
16
17
  BAR: "BAR",
17
18
  DONUT: "DONUT"
18
- }, Na = ["SERIE", "SERIES", "DATA", "VALUE", "VALUES", "NUM"];
19
- function Ba({ dataset: h, barLineSwitch: R = 6, debug: A = !0 }) {
20
- let q = null, X = null, se = 0;
21
- if ((typeof h == "number" || typeof h == "string") && A && console.warn(`The provided dataset (${h}) is not sufficient to build a chart`), Ye(h) && (re(h) && (h.length < R ? q = _.BAR : q = _.LINE, X = h, se = h.length), Ge(h))) {
22
- if (!Ua(h))
23
- return A && console.warn("The objects in the dataset array have a different data structure. Either keys or value types are different."), !1;
24
- const Ze = Object.keys(h[0]), B = Object.values(h[0]);
25
- if (!Ze.some((M) => Va(M)))
26
- return A && 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
- Vt(B, (M) => typeof M == "number") && (q = _.DONUT, X = h), Vt(B, (M) => Array.isArray(M) && re(M)) && (qt(h) > R ? q = _.LINE : q = _.BAR, se = qt(h), X = h.map((M) => ({
19
+ }, Xa = ["SERIE", "SERIES", "DATA", "VALUE", "VALUES", "NUM"];
20
+ function ja({ dataset: h, barLineSwitch: O = 6, debug: L = !0 }) {
21
+ let q = null, j = null, se = 0;
22
+ if ((typeof h == "number" || typeof h == "string") && L && console.warn(`The provided dataset (${h}) is not sufficient to build a chart`), Ye(h) && (re(h) && (h.length < O ? q = A.BAR : q = A.LINE, j = h, se = h.length), Ge(h))) {
23
+ if (!Ya(h))
24
+ return L && console.warn("The objects in the dataset array have a different data structure. Either keys or value types are different."), !1;
25
+ const Ze = Object.keys(h[0]), D = Object.values(h[0]);
26
+ if (!Ze.some((M) => Za(M)))
27
+ return L && 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;
28
+ qt(D, (M) => typeof M == "number") && (q = A.DONUT, j = h), qt(D, (M) => Array.isArray(M) && re(M)) && (Ht(h) > O ? q = A.LINE : q = A.BAR, se = Ht(h), j = h.map((M) => ({
28
29
  ...M,
29
- data: qa(M, (Re) => re(Re))
30
- }))), h = h.map((M) => Ht(M)), X = X.map((M) => Ht(M));
30
+ data: Ja(M, (Oe) => re(Oe))
31
+ }))), h = h.map((M) => Wt(M)), j = j.map((M) => Wt(M));
31
32
  }
32
33
  return {
33
34
  dataset: h,
34
35
  type: q,
35
- usableDataset: X,
36
+ usableDataset: j,
36
37
  maxSeriesLength: se
37
38
  };
38
39
  }
39
- function Wt(h) {
40
+ function Xt(h) {
40
41
  return !h || Ye(h) && !h.length;
41
42
  }
42
43
  function Ye(h) {
43
44
  return Array.isArray(h);
44
45
  }
45
46
  function re(h) {
46
- if (!Ye(h) || Wt(h)) return !1;
47
- const R = h.map((A) => Number(A));
48
- return ![...new Set(R.flatMap((A) => typeof A == "number" && !isNaN(A)))].includes(!1);
47
+ if (!Ye(h) || Xt(h)) return !1;
48
+ const O = h.map((L) => Number(L));
49
+ return ![...new Set(O.flatMap((L) => typeof L == "number" && !isNaN(L)))].includes(!1);
49
50
  }
50
51
  function Ge(h) {
51
- return !Ye(h) || Wt(h) || !![...new Set(h.flatMap((A) => typeof A == "object" && !Array.isArray(A)))].includes(!1) ? !1 : !h.map((A) => Object.keys(A).length > 0).includes(!1);
52
+ return !Ye(h) || Xt(h) || !![...new Set(h.flatMap((L) => typeof L == "object" && !Array.isArray(L)))].includes(!1) ? !1 : !h.map((L) => Object.keys(L).length > 0).includes(!1);
52
53
  }
53
- function Da(h, R) {
54
- const A = Object.keys(h).sort(), q = Object.keys(R).sort();
55
- if (A.length !== q.length)
54
+ function Ga(h, O) {
55
+ const L = Object.keys(h).sort(), q = Object.keys(O).sort();
56
+ if (L.length !== q.length)
56
57
  return !1;
57
- for (let X = 0; X < A.length; X += 1) {
58
- const se = A[X], Se = q[X];
59
- if (se !== Se || typeof h[se] != typeof R[Se])
58
+ for (let j = 0; j < L.length; j += 1) {
59
+ const se = L[j], Se = q[j];
60
+ if (se !== Se || typeof h[se] != typeof O[Se])
60
61
  return !1;
61
62
  }
62
63
  return !0;
63
64
  }
64
- function Ua(h) {
65
+ function Ya(h) {
65
66
  if (h.length <= 1) return !0;
66
- for (let R = 0; R < h.length; R += 1)
67
- for (let A = R + 1; A < h.length; A += 1)
68
- if (!Da(h[R], h[A]))
67
+ for (let O = 0; O < h.length; O += 1)
68
+ for (let L = O + 1; L < h.length; L += 1)
69
+ if (!Ga(h[O], h[L]))
69
70
  return !1;
70
71
  return !0;
71
72
  }
72
- function Va(h) {
73
- return Na.includes(h.toUpperCase());
73
+ function Za(h) {
74
+ return Xa.includes(h.toUpperCase());
74
75
  }
75
- function Vt(h, R) {
76
- let A = [];
76
+ function qt(h, O) {
77
+ let L = [];
77
78
  for (let q = 0; q < h.length; q += 1)
78
- A.push(R(h[q]));
79
- return A.includes(!0);
79
+ L.push(O(h[q]));
80
+ return L.includes(!0);
80
81
  }
81
- function qt(h) {
82
- return Math.max(...[...h].flatMap((R) => Object.values(R).filter((A) => re(A)).map((A) => A.length)));
82
+ function Ht(h) {
83
+ return Math.max(...[...h].flatMap((O) => Object.values(O).filter((L) => re(L)).map((L) => L.length)));
83
84
  }
84
- function qa(h, R) {
85
- return Object.values(h).filter((A) => R(A))[0];
85
+ function Ja(h, O) {
86
+ return Object.values(h).filter((L) => O(L))[0];
86
87
  }
87
- function Ht(h) {
88
- const R = {};
89
- for (let A in h)
90
- h.hasOwnProperty(A) && (R[A.toUpperCase()] = h[A]);
91
- return R;
88
+ function Wt(h) {
89
+ const O = {};
90
+ for (let L in h)
91
+ h.hasOwnProperty(L) && (O[L.toUpperCase()] = h[L]);
92
+ return O;
92
93
  }
93
- const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "width", "height"], Ga = ["x", "y", "width", "height"], Ya = ["width", "height"], Za = ["id"], Ja = ["id"], Qa = ["id"], Ka = ["flood-color"], el = {
94
+ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "width", "height"], al = ["x", "y", "width", "height"], ll = ["width", "height"], ol = ["id"], nl = ["id"], il = ["id"], ul = ["flood-color"], rl = {
94
95
  key: 0,
95
96
  class: "donut-label-connectors"
96
- }, tl = ["d", "stroke", "stroke-width", "filter"], al = ["cx", "cy", "r", "fill", "filter"], ll = { class: "donut" }, ol = ["d", "fill", "stroke", "stroke-width", "filter"], nl = ["d", "onMouseenter", "onMouseout", "onClick"], il = {
97
+ }, sl = ["d", "stroke", "stroke-width", "filter"], vl = ["cx", "cy", "r", "fill", "filter"], dl = { class: "donut" }, cl = ["d", "fill", "stroke", "stroke-width", "filter"], fl = ["d", "onMouseenter", "onMouseout", "onClick"], hl = {
97
98
  key: 1,
98
99
  class: "donut-labels quick-animation"
99
- }, ul = ["cx", "cy", "fill", "stroke", "filter"], rl = ["text-anchor", "x", "y", "fill", "font-size", "filter"], sl = ["text-anchor", "x", "y", "fill", "font-size", "filter"], vl = {
100
+ }, ml = ["cx", "cy", "fill", "stroke", "filter"], gl = ["text-anchor", "x", "y", "fill", "font-size", "filter"], pl = ["text-anchor", "x", "y", "fill", "font-size", "filter"], yl = {
100
101
  key: 2,
101
102
  class: "donut-hollow quick-animation"
102
- }, dl = ["x", "y", "font-size", "fill"], cl = ["x", "y", "font-size", "fill"], fl = {
103
+ }, xl = ["x", "y", "font-size", "fill"], kl = ["x", "y", "font-size", "fill"], bl = {
103
104
  key: 0,
104
105
  class: "line-grid"
105
- }, hl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ml = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], gl = {
106
+ }, Sl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], wl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Al = {
106
107
  key: 1,
107
108
  class: "line-axis"
108
- }, pl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], yl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], xl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], kl = ["x", "y", "font-size", "fill"], bl = {
109
+ }, Ll = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], _l = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], zl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Cl = ["x", "y", "font-size", "fill"], $l = {
109
110
  key: 3,
110
111
  class: "periodLabels"
111
- }, Sl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], wl = { key: 0 }, Al = ["font-size", "text-anchor", "fill", "transform"], Ll = ["font-size", "text-anchor", "fill", "transform", "innerHTML"], _l = { class: "plots" }, zl = { class: "line-plot-series" }, $l = ["d", "stroke", "stroke-width"], Cl = ["d", "stroke", "stroke-width"], El = ["d", "stroke", "stroke-width"], Tl = ["d", "stroke", "stroke-width"], Il = ["cx", "cy", "fill", "stroke"], Pl = {
112
+ }, El = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Tl = { key: 0 }, Il = ["font-size", "text-anchor", "fill", "transform"], Pl = ["font-size", "text-anchor", "fill", "transform", "innerHTML"], Ol = { class: "plots" }, Fl = { class: "line-plot-series" }, Rl = ["d", "stroke", "stroke-width"], Ml = ["d", "stroke", "stroke-width"], Nl = ["d", "stroke", "stroke-width"], Bl = ["d", "stroke", "stroke-width"], Dl = ["cx", "cy", "fill", "stroke"], Ul = {
112
113
  key: 4,
113
114
  class: "dataLabels"
114
- }, Rl = ["font-size", "fill", "x", "y"], Fl = {
115
+ }, Vl = ["font-size", "fill", "x", "y"], ql = {
115
116
  key: 5,
116
117
  class: "tooltip-traps"
117
- }, Ml = ["x", "y", "height", "width", "fill", "onMouseenter", "onMouseleave", "onClick"], Ol = {
118
+ }, Hl = ["x", "y", "height", "width", "fill", "onMouseenter", "onMouseleave", "onClick"], Wl = {
118
119
  key: 0,
119
120
  class: "line-grid"
120
- }, Nl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Bl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Dl = {
121
+ }, Xl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], jl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Gl = {
121
122
  key: 1,
122
123
  class: "line-axis"
123
- }, Ul = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Vl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ql = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Hl = ["x", "y", "font-size", "fill"], Wl = {
124
+ }, Yl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Zl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Jl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ql = ["x", "y", "font-size", "fill"], Kl = {
124
125
  key: 3,
125
126
  class: "periodLabels"
126
- }, Xl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], jl = { key: 0 }, Gl = ["font-size", "text-anchor", "fill", "transform"], Yl = ["font-size", "text-anchor", "fill", "transform", "innerHTML"], Zl = { class: "plots" }, Jl = ["x", "width", "height", "y", "fill", "stroke", "stroke-width"], Ql = ["to"], Kl = ["from", "to"], eo = {
127
+ }, eo = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], to = { key: 0 }, ao = ["font-size", "text-anchor", "fill", "transform"], lo = ["font-size", "text-anchor", "fill", "transform", "innerHTML"], oo = { class: "plots" }, no = ["x", "width", "height", "y", "fill", "stroke", "stroke-width"], io = ["to"], uo = ["from", "to"], ro = {
127
128
  key: 4,
128
129
  class: "dataLabels"
129
- }, to = ["x", "y", "font-size", "fill"], ao = {
130
+ }, so = ["x", "y", "font-size", "fill"], vo = {
130
131
  key: 5,
131
132
  class: "tooltip-traps"
132
- }, lo = ["x", "y", "height", "width", "fill", "onMouseenter", "onMouseleave", "onClick"], oo = {
133
+ }, co = ["x", "y", "height", "width", "fill", "onMouseenter", "onMouseleave", "onClick"], fo = {
133
134
  key: 6,
134
135
  class: "axis-labels"
135
- }, no = ["font-size", "fill", "x", "y"], io = ["font-size", "fill", "x", "y"], uo = ["font-size", "fill", "transform"], ro = ["font-size", "fill", "transform"], so = {
136
+ }, ho = ["font-size", "fill", "x", "y"], mo = ["font-size", "fill", "x", "y"], go = ["font-size", "fill", "transform"], po = ["font-size", "fill", "transform"], yo = {
136
137
  key: 5,
137
138
  class: "vue-data-ui-watermark"
138
- }, vo = ["id"], co = ["onClick"], fo = ["onClick"], ho = ["onClick"], mo = {
139
+ }, xo = ["id"], ko = ["onClick"], bo = ["onClick"], So = ["onClick"], wo = {
139
140
  key: 1,
140
141
  class: "vue-ui-quick-chart-not-processable"
141
- }, go = {
142
+ }, Ao = {
142
143
  __name: "vue-ui-quick-chart",
143
144
  props: {
144
145
  config: {
@@ -155,14 +156,14 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
155
156
  }
156
157
  },
157
158
  emits: ["selectDatapoint", "selectLegend"],
158
- setup(h, { expose: R, emit: A }) {
159
- const q = Ee(() => import("./BaseIcon-Bz-1GQhu.js")), X = Ee(() => import("./PackageVersion-C40g0Rfc.js")), se = Ee(() => import("./PenAndPaper-CR8q353D.js")), Se = Ee(() => import("./Tooltip-BOXz8skU.js")), rt = Ee(() => import("./UserOptions-DsTgvAok.js")), { vue_ui_quick_chart: Ze } = za(), B = h, M = w(null), Re = w(null), st = w(null), vt = w(null), Y = w(ga()), ce = w(!1), we = w(null), fe = w(""), te = w(null), dt = w(null), ct = w(null), L = w([]), ft = w(0), Fe = w(0), ht = w(!1), Ae = w(null), Le = w(null), ae = w(null), Me = w(null), mt = w(null), gt = w(null), Oe = w("#FFFFFF"), e = w(Ke()), Je = V(() => !!e.value.debug), { loading: U, FINAL_DATASET: Xt, manualLoading: pt } = Fa({
160
- ...da(B),
159
+ setup(h, { expose: O, emit: L }) {
160
+ const q = Ee(() => import("./BaseIcon-CtqN7W_g.js")), j = Ee(() => import("./PackageVersion-C9oklnuy.js")), se = Ee(() => import("./PenAndPaper-BxbYiPy4.js")), Se = Ee(() => import("./Tooltip-CtVdvbZi.js")), st = Ee(() => import("./UserOptions-B3vCIe-u.js")), { vue_ui_quick_chart: Ze } = Oa(), D = h, M = w(null), Oe = w(null), vt = w(null), dt = w(null), Y = w(wa()), ce = w(!1), we = w(null), fe = w(""), te = w(null), ct = w(null), ft = w(null), _ = w([]), ht = w(0), Fe = w(0), mt = w(!1), Ae = w(null), Le = w(null), ae = w(null), Re = w(null), gt = w(null), pt = w(null), Me = w("#FFFFFF"), e = w(et()), Je = R(() => !!e.value.debug), { loading: V, FINAL_DATASET: jt, manualLoading: yt } = Fa({
161
+ ...ya(D),
161
162
  FINAL_CONFIG: e,
162
- prepareConfig: Ke,
163
+ prepareConfig: et,
163
164
  callback: () => {
164
165
  Promise.resolve().then(async () => {
165
- await lt(), C.value === _.LINE && e.value.lineAnimated && !U.value && ia({
166
+ await ot(), $.value === A.LINE && e.value.lineAnimated && !V.value && ua({
166
167
  pathDuration: 1e3,
167
168
  pointDuration: 1200,
168
169
  labelDuration: 1200
@@ -170,7 +171,7 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
170
171
  });
171
172
  },
172
173
  skeletonDataset: [1, 2, 3, 5, 8, 13, 21, 34, 55, 89],
173
- skeletonConfig: pa({
174
+ skeletonConfig: Aa({
174
175
  defaultConfig: e.value,
175
176
  userConfig: {
176
177
  backgroundColor: "#99999930",
@@ -192,33 +193,33 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
192
193
  zoomEndIndex: null
193
194
  }
194
195
  })
195
- }), { svgRef: yt } = Ea({ config: { text: e.value.title } }), jt = V(() => e.value.showUserOptionsOnChartHover), xt = V(() => e.value.keepUserOptionsStateOnChartLeave), Ne = w(!e.value.showUserOptionsOnChartHover), Qe = w(!1);
196
+ }), { svgRef: Qe } = Da({ config: { text: e.value.title } }), Gt = R(() => e.value.showUserOptionsOnChartHover), xt = R(() => e.value.keepUserOptionsStateOnChartLeave), Ne = w(!e.value.showUserOptionsOnChartHover), Ke = w(!1);
196
197
  function kt(a = !1) {
197
- Qe.value = a, jt.value && (Ne.value = a);
198
+ Ke.value = a, Gt.value && (Ne.value = a);
198
199
  }
199
- function Ke() {
200
- const a = Ut({
201
- userConfig: B.config,
200
+ function et() {
201
+ const a = Vt({
202
+ userConfig: D.config,
202
203
  defaultConfig: Ze
203
204
  });
204
205
  let r = {};
205
206
  return a.theme ? r = {
206
- ...Ut({
207
- userConfig: Ra.vue_ui_quick_chart[a.theme] || B.config,
207
+ ...Vt({
208
+ userConfig: Ha.vue_ui_quick_chart[a.theme] || D.config,
208
209
  defaultConfig: a
209
210
  }),
210
- customPalette: ya[a.theme] || J
211
- } : r = a, B.config && We(B.config, "zoomStartIndex") ? r.zoomStartIndex = B.config.zoomStartIndex : r.zoomStartIndex = null, B.config && We(B.config, "zoomEndIndex") ? r.zoomEndIndex = B.config.zoomEndIndex : r.zoomEndIndex = null, B.config && !We(B.config, "donutStroke") ? We(B.config, "backgroundColor") ? Oe.value = B.config.backgroundColor : Oe.value = "#FFFFFF" : Oe.value = B.config.donutStroke, r;
211
+ customPalette: La[a.theme] || J
212
+ } : r = a, D.config && We(D.config, "zoomStartIndex") ? r.zoomStartIndex = D.config.zoomStartIndex : r.zoomStartIndex = null, D.config && We(D.config, "zoomEndIndex") ? r.zoomEndIndex = D.config.zoomEndIndex : r.zoomEndIndex = null, D.config && !We(D.config, "donutStroke") ? We(D.config, "backgroundColor") ? Me.value = D.config.backgroundColor : Me.value = "#FFFFFF" : Me.value = D.config.donutStroke, r;
212
213
  }
213
- Te(() => B.config, (a) => {
214
- U.value || (e.value = Ke()), S.value.width = e.value.width, S.value.height = e.value.height, Ne.value = !e.value.showUserOptionsOnChartHover, wt(), ye.value.showTooltip = e.value.showTooltip;
215
- }, { deep: !0 }), Te(() => B.dataset, (a) => {
214
+ Te(() => D.config, (a) => {
215
+ V.value || (e.value = et()), S.value.width = e.value.width, S.value.height = e.value.height, Ne.value = !e.value.showUserOptionsOnChartHover, wt(), ye.value.showTooltip = e.value.showTooltip;
216
+ }, { deep: !0 }), Te(() => D.dataset, (a) => {
216
217
  k.value = ze.value, y.value.start = 0, y.value.end = k.value.maxSeriesLength, Fe.value += 1;
217
- }, { deep: !0 }), Te(() => B.dataset, (a) => {
218
- Array.isArray(a) && a.length > 0 && (pt.value = !1);
218
+ }, { deep: !0 }), Te(() => D.dataset, (a) => {
219
+ Array.isArray(a) && a.length > 0 && (yt.value = !1);
219
220
  }, { immediate: !0 });
220
- const _e = V(() => xa(e.value.customPalette)), pe = A, ze = V(() => {
221
- const a = Ba({ debug: Je.value, dataset: ka(Xt.value, [
221
+ const _e = R(() => _a(e.value.customPalette)), pe = L, ze = R(() => {
222
+ const a = ja({ debug: Je.value, dataset: za(jt.value, [
222
223
  "serie",
223
224
  "series",
224
225
  "data",
@@ -227,19 +228,19 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
227
228
  "num"
228
229
  ]), barLineSwitch: e.value.chartIsBarUnderDatasetLength });
229
230
  return !a && Je.value && console.error("VueUiQuickChart : Dataset is not processable"), a;
230
- }), k = w(ze.value), Gt = V(() => !!k.value), C = V(() => k.value ? k.value.type : null);
231
- Te(() => C.value, (a) => {
232
- a || ba({
231
+ }), k = w(ze.value), Yt = R(() => !!k.value), $ = R(() => k.value ? k.value.type : null);
232
+ Te(() => $.value, (a) => {
233
+ a || Ca({
233
234
  componentName: "VueUiQuickChart",
234
235
  type: "dataset",
235
236
  debug: Je.value
236
237
  });
237
238
  }, { immediate: !0 });
238
- const { isPrinting: Be, isImaging: De, generatePdf: bt, generateImage: St } = $a({
239
- elementId: `${C.value}_${Y.value}`,
240
- fileName: e.value.title || C.value,
239
+ const { isPrinting: Be, isImaging: De, generatePdf: bt, generateImage: St } = Ma({
240
+ elementId: `${$.value}_${Y.value}`,
241
+ fileName: e.value.title || $.value,
241
242
  options: e.value.userOptionsPrint
242
- }), Yt = V(() => e.value.showUserOptions && !e.value.title), S = w({
243
+ }), Zt = R(() => e.value.showUserOptions && !e.value.title), S = w({
243
244
  width: e.value.width,
244
245
  height: e.value.height
245
246
  }), ye = w({
@@ -251,19 +252,19 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
251
252
  };
252
253
  }, { immediate: !0 });
253
254
  const ve = Mt(null), xe = Mt(null);
254
- ca(async () => {
255
- ht.value = !0, wt();
255
+ xa(async () => {
256
+ mt.value = !0, wt();
256
257
  });
257
258
  function wt() {
258
- if (Sa(B.dataset) || (pt.value = e.value.loading), e.value.responsive) {
259
- const a = Dt(() => {
260
- const { width: r, height: t } = _a({
259
+ if ($a(D.dataset) || (yt.value = e.value.loading), e.value.responsive) {
260
+ const a = Ut(() => {
261
+ const { width: r, height: t } = Pa({
261
262
  chart: M.value,
262
- title: e.value.title ? Re.value : null,
263
- legend: e.value.showLegend ? st.value : null,
264
- slicer: [_.BAR, _.LINE].includes(C.value) && e.value.zoomXy && k.value.maxSeriesLength > 1 ? vt.value : null,
265
- source: dt.value,
266
- noTitle: ct.value
263
+ title: e.value.title ? Oe.value : null,
264
+ legend: e.value.showLegend ? vt.value : null,
265
+ slicer: [A.BAR, A.LINE].includes($.value) && e.value.zoomXy && k.value.maxSeriesLength > 1 ? dt.value : null,
266
+ source: ct.value,
267
+ noTitle: ft.value
267
268
  });
268
269
  requestAnimationFrame(() => {
269
270
  S.value.width = r, S.value.height = t;
@@ -273,16 +274,16 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
273
274
  }
274
275
  Et();
275
276
  }
276
- Ot(() => {
277
+ Nt(() => {
277
278
  ve.value && (xe.value && ve.value.unobserve(xe.value), ve.value.disconnect());
278
279
  });
279
- const Zt = V(() => {
280
- switch (C.value) {
281
- case _.LINE:
280
+ const Jt = R(() => {
281
+ switch ($.value) {
282
+ case A.LINE:
282
283
  return `0 0 ${S.value.width <= 0 ? 10 : S.value.width} ${S.value.height <= 0 ? 10 : S.value.height}`;
283
- case _.BAR:
284
+ case A.BAR:
284
285
  return `0 0 ${S.value.width <= 0 ? 10 : S.value.width} ${S.value.height <= 0 ? 10 : S.value.height}`;
285
- case _.DONUT:
286
+ case A.DONUT:
286
287
  return `0 0 ${S.value.width <= 0 ? 10 : S.value.width} ${S.value.height <= 0 ? 10 : S.value.height}`;
287
288
  default:
288
289
  return `0 0 ${S.value.width <= 0 ? 10 : S.value.width} ${S.value.height <= 0 ? 10 : S.value.height}`;
@@ -291,27 +292,27 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
291
292
  function At(a) {
292
293
  return [...a].map((r) => r.value).reduce((r, t) => r + t, 0);
293
294
  }
294
- function $e(a) {
295
+ function Ce(a) {
295
296
  return e.value.blurOnHover && ![null, void 0].includes(te.value) && te.value !== a ? `url(#blur_${Y.value})` : "";
296
297
  }
297
298
  function Lt(a, r) {
298
- L.value.includes(a) ? L.value = L.value.filter((t) => t !== a) : L.value.length < r && L.value.push(a);
299
+ _.value.includes(a) ? _.value = _.value.filter((t) => t !== a) : _.value.length < r && _.value.push(a);
299
300
  }
300
301
  const _t = w(null), zt = w(null), Ue = w(!1);
301
- function Jt(a, r) {
302
+ function Qt(a, r) {
302
303
  Ue.value = !0;
303
304
  let t = a.value;
304
- const o = ze.value.dataset.find((u, p) => a.id === `donut_${p}`).VALUE;
305
- if (L.value.includes(a.id)) {
305
+ const l = ze.value.dataset.find((u, p) => a.id === `donut_${p}`).VALUE;
306
+ if (_.value.includes(a.id)) {
306
307
  let u = function() {
307
- t > o ? (Ue.value = !1, cancelAnimationFrame(zt.value), k.value = {
308
+ t > l ? (Ue.value = !1, cancelAnimationFrame(zt.value), k.value = {
308
309
  ...k.value,
309
310
  dataset: k.value.dataset.map((p, b) => a.id === `donut_${b}` ? {
310
311
  ...p,
311
- value: o,
312
- VALUE: o
312
+ value: l,
313
+ VALUE: l
313
314
  } : p)
314
- }) : (t += o * 0.025, k.value = {
315
+ }) : (t += l * 0.025, k.value = {
315
316
  ...k.value,
316
317
  dataset: k.value.dataset.map((p, b) => a.id === `donut_${b}` ? {
317
318
  ...p,
@@ -320,10 +321,10 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
320
321
  } : p)
321
322
  }, zt.value = requestAnimationFrame(u));
322
323
  };
323
- L.value = L.value.filter((p) => p !== a.id), u();
324
+ _.value = _.value.filter((p) => p !== a.id), u();
324
325
  } else if (r.length > 1) {
325
326
  let u = function() {
326
- t < o / 100 ? (Ue.value = !1, cancelAnimationFrame(_t.value), L.value.push(a.id), k.value = {
327
+ t < l / 100 ? (Ue.value = !1, cancelAnimationFrame(_t.value), _.value.push(a.id), k.value = {
327
328
  ...k.value,
328
329
  dataset: k.value.dataset.map((p, b) => a.id === `donut_${b}` ? {
329
330
  ...p,
@@ -343,24 +344,24 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
343
344
  }
344
345
  }
345
346
  const le = w(null);
346
- function Qt(a) {
347
+ function Kt(a) {
347
348
  le.value = a;
348
349
  }
349
- const $t = V(() => e.value.donutThicknessRatio < 0.01 ? 0.01 : e.value.donutThicknessRatio > 0.4 ? 0.4 : e.value.donutThicknessRatio), P = V(() => {
350
- if (C.value !== _.DONUT) return null;
351
- const a = k.value.dataset.map((f, $) => ({
350
+ const Ct = R(() => e.value.donutThicknessRatio < 0.01 ? 0.01 : e.value.donutThicknessRatio > 0.4 ? 0.4 : e.value.donutThicknessRatio), I = R(() => {
351
+ if ($.value !== A.DONUT) return null;
352
+ const a = k.value.dataset.map((f, z) => ({
352
353
  ...f,
353
354
  value: f.VALUE || f.DATA || f.SERIE || f.VALUES || f.NUM || 0,
354
- name: f.NAME || f.DESCRIPTION || f.TITLE || f.LABEL || `Serie ${$}`,
355
- id: `donut_${$}`
356
- })).map((f, $) => ({
355
+ name: f.NAME || f.DESCRIPTION || f.TITLE || f.LABEL || `Serie ${z}`,
356
+ id: `donut_${z}`
357
+ })).map((f, z) => ({
357
358
  ...f,
358
- color: f.COLOR ? nt(f.COLOR) : _e.value[$ + e.value.paletteStartIndex] || J[$ + e.value.paletteStartIndex] || J[($ + e.value.paletteStartIndex) % J.length],
359
+ color: f.COLOR ? it(f.COLOR) : _e.value[z + e.value.paletteStartIndex] || J[z + e.value.paletteStartIndex] || J[(z + e.value.paletteStartIndex) % J.length],
359
360
  immutableValue: f.value
360
361
  }));
361
- function r(f, $) {
362
+ function r(f, z) {
362
363
  return G({
363
- v: isNaN(f.value / At($)) ? 0 : f.value / At($) * 100,
364
+ v: isNaN(f.value / At(z)) ? 0 : f.value / At(z) * 100,
364
365
  s: "%",
365
366
  r: e.value.dataLabelRoundingPercentage
366
367
  });
@@ -368,22 +369,22 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
368
369
  function t(f) {
369
370
  return f.proportion * 100 > e.value.donutHideLabelUnderPercentage;
370
371
  }
371
- function o(f, $) {
372
- const v = ze.value.dataset.find((g, E) => `donut_${E}` === f).VALUE;
373
- return Math.abs(String(Number(v.toFixed(0))).length - String(Number($.toFixed(0))).length);
372
+ function l(f, z) {
373
+ const d = ze.value.dataset.find((g, E) => `donut_${E}` === f).VALUE;
374
+ return Math.abs(String(Number(d.toFixed(0))).length - String(Number(z.toFixed(0))).length);
374
375
  }
375
- function u({ datapoint: f, seriesIndex: $ }) {
376
- we.value = { datapoint: f, seriesIndex: $, config: e.value, dataset: a }, te.value = f.id;
377
- const v = e.value.tooltipCustomFormat;
378
- if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: f, seriesIndex: $ }), je(v) && ut(() => v({
376
+ function u({ datapoint: f, seriesIndex: z }) {
377
+ we.value = { datapoint: f, seriesIndex: z, config: e.value, dataset: a }, te.value = f.id;
378
+ const d = e.value.tooltipCustomFormat;
379
+ if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: f, seriesIndex: z }), je(d) && rt(() => d({
379
380
  datapoint: f,
380
- seriesIndex: $,
381
+ seriesIndex: z,
381
382
  series: a,
382
383
  config: e.value
383
384
  })))
384
- fe.value = v({
385
+ fe.value = d({
385
386
  datapoint: f,
386
- seriesIndex: $,
387
+ seriesIndex: z,
387
388
  series: a,
388
389
  config: e.value
389
390
  });
@@ -398,81 +399,82 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
398
399
  s: e.value.valueSuffix,
399
400
  r: e.value.dataLabelRoundingValue
400
401
  }),
401
- { datapoint: f, seriesIndex: $ }
402
+ { datapoint: f, seriesIndex: z }
402
403
  )}</b>`, i += `<span>(${G({ v: f.proportion * 100, s: "%", r: e.value.dataLabelRoundingPercentage })})</span></div>`, fe.value = `<div>${i}</div>`;
403
404
  }
404
405
  ce.value = !0;
405
406
  }
406
- function p({ datapoint: f, seriesIndex: $ }) {
407
- e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: f, seriesIndex: $ }), ce.value = !1, te.value = null, le.value = null;
407
+ function p({ datapoint: f, seriesIndex: z }) {
408
+ e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: f, seriesIndex: z }), ce.value = !1, te.value = null, le.value = null;
408
409
  }
409
- function b({ datapoint: f, seriesIndex: $ }) {
410
- e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: f, seriesIndex: $ }), pe("selectDatapoint", f);
410
+ function b({ datapoint: f, seriesIndex: z }) {
411
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: f, seriesIndex: z }), pe("selectDatapoint", f);
411
412
  }
412
- const I = {
413
+ const P = {
413
414
  centerX: S.value.width / 2,
414
415
  centerY: S.value.height / 2
415
- }, F = a.filter((f) => !L.value.includes(f.id)).map((f) => f.value || 0).reduce((f, $) => f + $, 0), K = a.map((f, $) => ({
416
+ }, F = a.filter((f) => !_.value.includes(f.id)).map((f) => f.value || 0).reduce((f, z) => f + z, 0), K = a.map((f, z) => ({
416
417
  ...f,
417
418
  proportion: (f.value || 0) / F,
418
419
  value: f.value || 0,
419
- absoluteValue: ze.value.dataset.find((v, i) => `donut_${i}` === f.id).VALUE
420
- })), oe = S.value.width / 2, Z = S.value.height / 2, j = S.value.height * e.value.donutRadiusRatio;
420
+ absoluteValue: ze.value.dataset.find((d, i) => `donut_${i}` === f.id).VALUE,
421
+ shape: "circle"
422
+ })), oe = S.value.width / 2, Z = S.value.height / 2, X = S.value.height * e.value.donutRadiusRatio;
421
423
  return {
422
- dataset: K.filter((f) => !L.value.includes(f.id)),
424
+ dataset: K.filter((f) => !_.value.includes(f.id)),
423
425
  legend: K,
424
- drawingArea: I,
426
+ drawingArea: P,
425
427
  displayArcPercentage: r,
426
428
  isArcBigEnough: t,
427
429
  useTooltip: u,
428
430
  killTooltip: p,
429
431
  selectDatapoint: b,
430
- getSpaces: o,
432
+ getSpaces: l,
431
433
  total: F,
432
434
  cx: oe,
433
435
  cy: Z,
434
- radius: j,
435
- chart: wa(
436
- { series: a.filter((f) => !L.value.includes(f.id)) },
436
+ radius: X,
437
+ chart: Ea(
438
+ { series: a.filter((f) => !_.value.includes(f.id)) },
437
439
  oe,
438
440
  Z,
439
- j,
440
- j,
441
+ X,
442
+ X,
441
443
  1.99999,
442
444
  2,
443
445
  1,
444
446
  360,
445
447
  105.25,
446
- S.value.height * $t.value
448
+ S.value.height * Ct.value
447
449
  )
448
450
  };
449
451
  }), y = w({
450
452
  start: 0,
451
453
  end: k.value.maxSeriesLength
452
454
  });
453
- function Kt() {
455
+ function ea() {
454
456
  Et();
455
457
  }
456
- const Ct = w(null);
458
+ const $t = w(null);
457
459
  async function Et() {
458
- await lt(), await lt();
459
- const { zoomStartIndex: a, zoomEndIndex: r } = e.value, t = Ct.value;
460
- (a != null || r != null) && t ? (a != null && t.setStartValue(a), r != null && t.setEndValue(ea(r + 1))) : (y.value = {
460
+ await ot(), await ot();
461
+ const { zoomStartIndex: a, zoomEndIndex: r } = e.value, t = $t.value;
462
+ (a != null || r != null) && t ? (a != null && t.setStartValue(a), r != null && t.setEndValue(ta(r + 1))) : (y.value = {
461
463
  start: 0,
462
464
  end: k.value.maxSeriesLength
463
465
  }, Fe.value += 1);
464
466
  }
465
- function ea(a) {
467
+ function ta(a) {
466
468
  const r = k.value.maxSeriesLength;
467
469
  return a > r ? r : a < 0 || e.value.zoomStartIndex !== null && a < e.value.zoomStartIndex ? e.value.zoomStartIndex !== null ? e.value.zoomStartIndex + 1 : 1 : a;
468
470
  }
469
- const ta = V(() => {
470
- if (!e.value.zoomMinimap.show || C.value === _.DONUT) return [];
471
+ const aa = R(() => {
472
+ if (!e.value.zoomMinimap.show || $.value === A.DONUT) return [];
471
473
  let a = [];
472
474
  re(k.value.dataset) && (a = k.value.dataset), Ge(k.value.dataset) && (a = k.value.dataset.map((u, p) => ({
473
475
  values: u.VALUE || u.DATA || u.SERIE || u.SERIES || u.VALUES || u.NUM || 0,
474
- id: C.value === _.LINE ? `line_${p}` : `bar_${p}`
475
- })).filter((u) => !L.value.includes(u.id)));
476
+ id: $.value === A.LINE ? `line_${p}` : `bar_${p}`
477
+ })).filter((u) => !_.value.includes(u.id)));
476
478
  const r = re(a) ? a.length : Math.max(...a.map((u) => u.values.length));
477
479
  let t = [];
478
480
  if (re(a))
@@ -480,42 +482,42 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
480
482
  else
481
483
  for (let u = 0; u < r; u += 1)
482
484
  t.push(a.map((p) => p.values[u] || 0).reduce((p, b) => (p || 0) + (b || 0), 0));
483
- const o = Math.min(...t);
484
- return t.map((u) => u + (o < 0 ? Math.abs(o) : 0));
485
+ const l = Math.min(...t);
486
+ return t.map((u) => u + (l < 0 ? Math.abs(l) : 0));
485
487
  });
486
488
  function Tt() {
487
489
  let a = 0;
488
- return Me.value && (a = Array.from(Me.value.querySelectorAll("text")).reduce((o, u) => {
490
+ return Re.value && (a = Array.from(Re.value.querySelectorAll("text")).reduce((l, u) => {
489
491
  const p = u.getComputedTextLength();
490
- return p > o ? p : o;
492
+ return p > l ? p : l;
491
493
  }, 0)), a + 4;
492
494
  }
493
- const et = w(0), aa = Dt((a) => {
494
- et.value = a;
495
+ const tt = w(0), la = Ut((a) => {
496
+ tt.value = a;
495
497
  }, 100);
496
- fa((a) => {
498
+ ka((a) => {
497
499
  const r = ae.value;
498
500
  if (!r) return;
499
- const t = new ResizeObserver((o) => {
500
- aa(o[0].contentRect.height);
501
+ const t = new ResizeObserver((l) => {
502
+ la(l[0].contentRect.height);
501
503
  });
502
504
  t.observe(r), a(() => t.disconnect());
503
- }), Ot(() => {
504
- et.value = 0;
505
+ }), Nt(() => {
506
+ tt.value = 0;
505
507
  });
506
- const Ve = V(() => {
508
+ const Ve = R(() => {
507
509
  let a = 0, r = 0;
508
- return ae.value && (r = et.value), a + r;
509
- }), c = V(() => {
510
- if (C.value !== _.LINE) return null;
510
+ return ae.value && (r = tt.value), a + r;
511
+ }), c = R(() => {
512
+ if ($.value !== A.LINE) return null;
511
513
  const a = {
512
514
  height: S.value.height,
513
515
  width: S.value.width
514
516
  };
515
517
  let r = Tt();
516
518
  if (ae.value) {
517
- const v = ae.value.getBBox().x;
518
- v < 0 && (r += Math.abs(v));
519
+ const d = ae.value.getBBox().x;
520
+ d < 0 && (r += Math.abs(d));
519
521
  }
520
522
  const t = {
521
523
  left: r + e.value.xyPaddingLeft,
@@ -525,93 +527,94 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
525
527
  width: Math.max(10, a.width - e.value.xyPaddingLeft - e.value.xyPaddingRight - r),
526
528
  height: Math.max(10, a.height - e.value.xyPaddingTop - e.value.xyPaddingBottom - Ve.value)
527
529
  };
528
- let o = [];
529
- re(k.value.dataset) && (o = [
530
+ let l = [];
531
+ re(k.value.dataset) && (l = [
530
532
  {
531
533
  values: k.value.dataset.slice(y.value.start, y.value.end),
532
534
  absoluteValues: k.value.dataset,
533
- absoluteIndices: k.value.dataset.map((v, i) => i).slice(y.value.start, y.value.end),
535
+ absoluteIndices: k.value.dataset.map((d, i) => i).slice(y.value.start, y.value.end),
534
536
  name: e.value.title,
535
537
  color: _e.value[e.value.paletteStartIndex] || J[e.value.paletteStartIndex],
536
538
  id: "line_0"
537
539
  }
538
- ]), Ge(k.value.dataset) && (o = k.value.dataset.map((v, i) => ({
539
- ...v,
540
- values: v.VALUE || v.DATA || v.SERIE || v.SERIES || v.VALUES || v.NUM || 0,
541
- name: v.NAME || v.DESCRIPTION || v.TITLE || v.LABEL || `Serie ${i}`,
540
+ ]), Ge(k.value.dataset) && (l = k.value.dataset.map((d, i) => ({
541
+ ...d,
542
+ values: d.VALUE || d.DATA || d.SERIE || d.SERIES || d.VALUES || d.NUM || 0,
543
+ name: d.NAME || d.DESCRIPTION || d.TITLE || d.LABEL || `Serie ${i}`,
542
544
  id: `line_${i}`
543
- })).map((v, i) => ({
544
- ...v,
545
- color: v.COLOR ? nt(v.COLOR) : _e.value[i + e.value.paletteStartIndex] || J[i + e.value.paletteStartIndex] || J[(i + e.value.paletteStartIndex) % J.length],
546
- values: v.values.slice(y.value.start, y.value.end),
547
- absoluteValues: v.values,
548
- absoluteIndices: v.values.map((g, E) => E).slice(y.value.start, y.value.end)
545
+ })).map((d, i) => ({
546
+ ...d,
547
+ color: d.COLOR ? it(d.COLOR) : _e.value[i + e.value.paletteStartIndex] || J[i + e.value.paletteStartIndex] || J[(i + e.value.paletteStartIndex) % J.length],
548
+ values: d.values.slice(y.value.start, y.value.end),
549
+ absoluteValues: d.values,
550
+ absoluteIndices: d.values.map((g, E) => E).slice(y.value.start, y.value.end)
549
551
  })));
550
552
  const u = {
551
- max: Math.max(...o.filter((v) => !L.value.includes(v.id)).flatMap((v) => v.values)),
552
- min: Math.min(...o.filter((v) => !L.value.includes(v.id)).flatMap((v) => v.values)),
553
- maxSeries: Math.max(...o.map((v) => v.values.length))
554
- }, p = u.max === u.min ? Xe(u.min, u.min + 1, e.value.xyScaleSegments) : Xe(u.min < 0 ? u.min : 0, u.max < 0 ? 0 : u.max, e.value.xyScaleSegments), b = u.min < 0 ? Math.abs(u.min) : 0, I = u.max < 0 ? t.top : t.bottom - b / (p.max + b) * t.height, F = t.width / u.maxSeries, K = p.ticks.map((v) => ({
555
- y: t.bottom - t.height * ((v + b) / (p.max + b)),
553
+ max: Math.max(...l.filter((d) => !_.value.includes(d.id)).flatMap((d) => d.values)),
554
+ min: Math.min(...l.filter((d) => !_.value.includes(d.id)).flatMap((d) => d.values)),
555
+ maxSeries: Math.max(...l.map((d) => d.values.length))
556
+ }, p = u.max === u.min ? Xe(u.min, u.min + 1, e.value.xyScaleSegments) : Xe(u.min < 0 ? u.min : 0, u.max < 0 ? 0 : u.max, e.value.xyScaleSegments), b = u.min < 0 ? Math.abs(u.min) : 0, P = u.max < 0 ? t.top : t.bottom - b / (p.max + b) * t.height, F = t.width / u.maxSeries, K = p.ticks.map((d) => ({
557
+ y: t.bottom - t.height * ((d + b) / (p.max + b)),
556
558
  x: t.left - 8,
557
- value: v
558
- })), oe = o.map((v, i) => ({
559
- ...v,
560
- coordinates: v.values.map((g, E) => ({
559
+ value: d
560
+ })), oe = l.map((d, i) => ({
561
+ ...d,
562
+ shape: "circle",
563
+ coordinates: d.values.map((g, E) => ({
561
564
  x: t.left + F * (E + 1) - F / 2,
562
565
  y: t.bottom - (g + b) / (p.max + b) * t.height,
563
566
  value: g
564
567
  }))
565
- })).map((v) => {
568
+ })).map((d) => {
566
569
  let i = [];
567
- return v.coordinates.forEach((g) => {
570
+ return d.coordinates.forEach((g) => {
568
571
  i.push(`${g.x},${g.y} `);
569
572
  }), {
570
- ...v,
573
+ ...d,
571
574
  linePath: i.join(" ")
572
575
  };
573
576
  });
574
- function Z(v) {
575
- return o.map((i) => ({
577
+ function Z(d) {
578
+ return l.map((i) => ({
576
579
  ...i,
577
- value: i.values[v],
578
- absoluteIndex: i.absoluteIndices[v]
579
- })).filter((i) => !L.value.includes(i.id));
580
+ value: i.values[d],
581
+ absoluteIndex: i.absoluteIndices[d]
582
+ })).filter((i) => !_.value.includes(i.id));
580
583
  }
581
- function j(v) {
582
- te.value = v, le.value = v;
583
- const i = Z(v);
584
- we.value = { datapoint: i, seriesIndex: v, config: e.value, dataset: o };
584
+ function X(d) {
585
+ te.value = d, le.value = d;
586
+ const i = Z(d);
587
+ we.value = { datapoint: i, seriesIndex: d, config: e.value, dataset: l };
585
588
  const g = e.value.tooltipCustomFormat;
586
- if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: i, seriesIndex: v + y.value.start }), je(g) && ut(() => g({
589
+ if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: i, seriesIndex: d + y.value.start }), je(g) && rt(() => g({
587
590
  datapoint: i,
588
- seriesIndex: v,
589
- series: o,
591
+ seriesIndex: d,
592
+ series: l,
590
593
  config: e.value
591
594
  })))
592
595
  fe.value = g({
593
596
  datapoint: i,
594
- seriesIndex: v,
595
- series: o,
597
+ seriesIndex: d,
598
+ series: l,
596
599
  config: e.value
597
600
  });
598
601
  else {
599
602
  let E = "";
600
- Q.value[i[0].absoluteIndex] && (E += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${Q.value[i[0].absoluteIndex].text}</div>`), i.forEach((O, H) => {
603
+ Q.value[i[0].absoluteIndex] && (E += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${Q.value[i[0].absoluteIndex].text}</div>`), i.forEach((N, H) => {
601
604
  E += `
602
605
  <div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
603
- <svg viewBox="0 0 12 12" height="14" width="12"><circle cx="6" cy="6" r="6" stroke="none" fill="${O.color}"/></svg>
604
- <span>${O.name}:</span>
606
+ <svg viewBox="0 0 12 12" height="14" width="12"><circle cx="6" cy="6" r="6" stroke="none" fill="${N.color}"/></svg>
607
+ <span>${N.name}:</span>
605
608
  <b>${ie(
606
609
  e.value.formatter,
607
- O.value,
610
+ N.value,
608
611
  G({
609
612
  p: e.value.valuePrefix,
610
- v: O.value,
613
+ v: N.value,
611
614
  s: e.value.valueSuffix,
612
615
  r: e.value.dataLabelRoundingValue
613
616
  }),
614
- { datapoint: O, seriesIndex: H }
617
+ { datapoint: N, seriesIndex: H }
615
618
  )}
616
619
  </b>
617
620
  </div>
@@ -620,28 +623,28 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
620
623
  }
621
624
  ce.value = !0;
622
625
  }
623
- function f(v) {
624
- const i = Z(v);
625
- e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: i, seriesIndex: v + y.value.start }), te.value = null, le.value = null, ce.value = !1;
626
+ function f(d) {
627
+ const i = Z(d);
628
+ e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: i, seriesIndex: d + y.value.start }), te.value = null, le.value = null, ce.value = !1;
626
629
  }
627
- function $(v) {
628
- const i = Z(v);
629
- e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: i, seriesIndex: v + y.value.start }), pe("selectDatapoint", i);
630
+ function z(d) {
631
+ const i = Z(d);
632
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: i, seriesIndex: d + y.value.start }), pe("selectDatapoint", i);
630
633
  }
631
634
  return {
632
- absoluteZero: I,
633
- dataset: oe.filter((v) => !L.value.includes(v.id)),
635
+ absoluteZero: P,
636
+ dataset: oe.filter((d) => !_.value.includes(d.id)),
634
637
  legend: oe,
635
638
  drawingArea: t,
636
639
  extremes: u,
637
640
  slotSize: F,
638
641
  yLabels: K,
639
- useTooltip: j,
642
+ useTooltip: X,
640
643
  killTooltip: f,
641
- selectDatapoint: $
644
+ selectDatapoint: z
642
645
  };
643
- }), d = V(() => {
644
- if (C.value !== _.BAR) return null;
646
+ }), v = R(() => {
647
+ if ($.value !== A.BAR) return null;
645
648
  const a = {
646
649
  height: S.value.height,
647
650
  width: S.value.width
@@ -659,8 +662,8 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
659
662
  width: Math.max(10, a.width - e.value.xyPaddingLeft - e.value.xyPaddingRight - r),
660
663
  height: Math.max(10, a.height - e.value.xyPaddingTop - e.value.xyPaddingBottom - Ve.value)
661
664
  };
662
- let o = [];
663
- re(k.value.dataset) && (o = [
665
+ let l = [];
666
+ re(k.value.dataset) && (l = [
664
667
  {
665
668
  values: k.value.dataset.slice(y.value.start, y.value.end),
666
669
  absoluteValues: k.value.dataset,
@@ -669,79 +672,80 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
669
672
  color: _e.value[e.value.paletteStartIndex] || J[e.value.paletteStartIndex],
670
673
  id: "bar_0"
671
674
  }
672
- ]), Ge(k.value.dataset) && (o = k.value.dataset.map((i, g) => ({
675
+ ]), Ge(k.value.dataset) && (l = k.value.dataset.map((i, g) => ({
673
676
  ...i,
674
677
  values: i.VALUE || i.DATA || i.SERIE || i.SERIES || i.VALUES || i.NUM || 0,
675
678
  name: i.NAME || i.DESCRIPTION || i.TITLE || i.LABEL || `Serie ${g}`,
676
679
  id: `bar_${g}`
677
680
  })).map((i, g) => ({
678
681
  ...i,
679
- color: i.COLOR ? nt(i.COLOR) : _e.value[g + e.value.paletteStartIndex] || J[g + e.value.paletteStartIndex] || J[(g + e.value.paletteStartIndex) % J.length],
682
+ color: i.COLOR ? it(i.COLOR) : _e.value[g + e.value.paletteStartIndex] || J[g + e.value.paletteStartIndex] || J[(g + e.value.paletteStartIndex) % J.length],
680
683
  values: i.values.slice(y.value.start, y.value.end),
681
684
  absoluteValues: i.values,
682
- absoluteIndices: i.values.map((E, O) => O).slice(y.value.start, y.value.end)
685
+ absoluteIndices: i.values.map((E, N) => N).slice(y.value.start, y.value.end)
683
686
  })));
684
687
  const u = {
685
- max: Math.max(...o.filter((i) => !L.value.includes(i.id)).flatMap((i) => i.values)) < 0 ? 0 : Math.max(...o.filter((i) => !L.value.includes(i.id)).flatMap((i) => i.values)),
686
- min: Math.min(...o.filter((i) => !L.value.includes(i.id)).flatMap((i) => i.values)),
687
- maxSeries: Math.max(...o.filter((i) => !L.value.includes(i.id)).map((i) => i.values.length))
688
- }, p = u.min === u.max ? Xe(u.min, u.min + 1, e.value.xyScaleSegments) : Xe(u.min < 0 ? u.min : 0, u.max, e.value.xyScaleSegments), b = p.min < 0 ? Math.abs(p.min) : 0, I = t.bottom - b / (p.max + b) * t.height, F = t.width / u.maxSeries, K = p.ticks.map((i) => ({
688
+ max: Math.max(...l.filter((i) => !_.value.includes(i.id)).flatMap((i) => i.values)) < 0 ? 0 : Math.max(...l.filter((i) => !_.value.includes(i.id)).flatMap((i) => i.values)),
689
+ min: Math.min(...l.filter((i) => !_.value.includes(i.id)).flatMap((i) => i.values)),
690
+ maxSeries: Math.max(...l.filter((i) => !_.value.includes(i.id)).map((i) => i.values.length))
691
+ }, p = u.min === u.max ? Xe(u.min, u.min + 1, e.value.xyScaleSegments) : Xe(u.min < 0 ? u.min : 0, u.max, e.value.xyScaleSegments), b = p.min < 0 ? Math.abs(p.min) : 0, P = t.bottom - b / (p.max + b) * t.height, F = t.width / u.maxSeries, K = p.ticks.map((i) => ({
689
692
  y: t.bottom - t.height * ((i + b) / (p.max + b)),
690
693
  x: t.left - 8,
691
694
  value: i
692
- })), oe = o.map((i, g) => ({
695
+ })), oe = l.map((i, g) => ({
693
696
  ...i,
694
- coordinates: i.values.map((E, O) => {
695
- const H = (E + b) / (u.max + b) * t.height, ee = Math.abs(E) / Math.abs(u.min) * (t.height - I), at = b / (u.max + b) * t.height, Ce = F / o.filter((he) => !L.value.includes(he.id)).length - e.value.barGap / o.filter((he) => !L.value.includes(he.id)).length;
697
+ shape: "square",
698
+ coordinates: i.values.map((E, N) => {
699
+ const H = (E + b) / (u.max + b) * t.height, ee = Math.abs(E) / Math.abs(u.min) * (t.height - P), lt = b / (u.max + b) * t.height, $e = F / l.filter((he) => !_.value.includes(he.id)).length - e.value.barGap / l.filter((he) => !_.value.includes(he.id)).length;
696
700
  return {
697
- x: t.left + F * O + Ce * g + e.value.barGap / 2,
698
- y: E > 0 ? t.bottom - H : I,
699
- height: E > 0 ? H - at : ee,
701
+ x: t.left + F * N + $e * g + e.value.barGap / 2,
702
+ y: E > 0 ? t.bottom - H : P,
703
+ height: E > 0 ? H - lt : ee,
700
704
  value: E,
701
- width: Ce
705
+ width: $e
702
706
  };
703
707
  })
704
- })), Z = o.filter((i) => !L.value.includes(i.id)).map((i, g) => ({
708
+ })), Z = l.filter((i) => !_.value.includes(i.id)).map((i, g) => ({
705
709
  ...i,
706
- coordinates: i.values.map((E, O) => {
707
- const H = (E + b) / (u.max + b) * t.height, ee = Math.abs(E) / (u.max + b) * t.height, at = b / (u.max + b) * t.height, Ce = F / o.filter((he) => !L.value.includes(he.id)).length - e.value.barGap / o.filter((he) => !L.value.includes(he.id)).length;
710
+ coordinates: i.values.map((E, N) => {
711
+ const H = (E + b) / (u.max + b) * t.height, ee = Math.abs(E) / (u.max + b) * t.height, lt = b / (u.max + b) * t.height, $e = F / l.filter((he) => !_.value.includes(he.id)).length - e.value.barGap / l.filter((he) => !_.value.includes(he.id)).length;
708
712
  return {
709
- x: t.left + F * O + Ce * g + e.value.barGap / 2,
710
- y: E > 0 ? t.bottom - H : I,
711
- height: E > 0 ? H - at : ee,
713
+ x: t.left + F * N + $e * g + e.value.barGap / 2,
714
+ y: E > 0 ? t.bottom - H : P,
715
+ height: E > 0 ? H - lt : ee,
712
716
  value: E,
713
- width: Ce
717
+ width: $e
714
718
  };
715
719
  })
716
720
  }));
717
- function j(i) {
718
- return o.map((g) => ({
721
+ function X(i) {
722
+ return l.map((g) => ({
719
723
  ...g,
720
724
  value: g.values[i],
721
725
  absoluteIndex: g.absoluteIndices[i]
722
- })).filter((g) => !L.value.includes(g.id));
726
+ })).filter((g) => !_.value.includes(g.id));
723
727
  }
724
728
  function f(i) {
725
729
  te.value = i, le.value = i;
726
- const g = j(i);
727
- we.value = { datapoint: g, seriesIndex: i, config: e.value, dataset: o };
730
+ const g = X(i);
731
+ we.value = { datapoint: g, seriesIndex: i, config: e.value, dataset: l };
728
732
  const E = e.value.tooltipCustomFormat;
729
- if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: g, seriesIndex: i + y.value.start }), je(E) && ut(() => E({
733
+ if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: g, seriesIndex: i + y.value.start }), je(E) && rt(() => E({
730
734
  datapoint: g,
731
735
  seriesIndex: i,
732
- series: o,
736
+ series: l,
733
737
  config: e.value
734
738
  })))
735
739
  fe.value = E({
736
740
  point: g,
737
741
  seriesIndex: i,
738
- series: o,
742
+ series: l,
739
743
  config: e.value
740
744
  });
741
745
  else {
742
- let O = "";
743
- Q.value[g[0].absoluteIndex] && (O += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${Q.value[g[0].absoluteIndex].text}</div>`), g.forEach((H, ee) => {
744
- O += `
746
+ let N = "";
747
+ Q.value[g[0].absoluteIndex] && (N += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${Q.value[g[0].absoluteIndex].text}</div>`), g.forEach((H, ee) => {
748
+ N += `
745
749
  <div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
746
750
  <svg viewBox="0 0 12 12" height="14" width="12"><rect x=0 y="0" width="12" height="12" rx="1" stroke="none" fill="${H.color}"/></svg>
747
751
  <span>${H.name}:</span>
@@ -759,21 +763,21 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
759
763
  </b>
760
764
  </div>
761
765
  `;
762
- }), fe.value = O;
766
+ }), fe.value = N;
763
767
  }
764
768
  ce.value = !0;
765
769
  }
766
- function $(i) {
767
- const g = j(i);
770
+ function z(i) {
771
+ const g = X(i);
768
772
  e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: g, seriesIndex: i + y.value.start }), ce.value = !1, te.value = null, le.value = null;
769
773
  }
770
- function v(i) {
771
- const g = j(i);
774
+ function d(i) {
775
+ const g = X(i);
772
776
  e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: g, seriesIndex: i + y.value.start }), pe("selectDatapoint", g);
773
777
  }
774
778
  return {
775
- absoluteZero: I,
776
- dataset: Z.filter((i) => !L.value.includes(i.id)),
779
+ absoluteZero: P,
780
+ dataset: Z.filter((i) => !_.value.includes(i.id)),
777
781
  absoluteDataset: Z,
778
782
  legend: oe,
779
783
  drawingArea: t,
@@ -781,24 +785,24 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
781
785
  slotSize: F,
782
786
  yLabels: K,
783
787
  useTooltip: f,
784
- killTooltip: $,
785
- selectDatapoint: v
788
+ killTooltip: z,
789
+ selectDatapoint: d
786
790
  };
787
791
  });
788
- function la(a) {
792
+ function oa(a) {
789
793
  if (!a) return;
790
794
  const r = a.getTotalLength();
791
795
  a.style.transition = "none", a.style.strokeDasharray = `${r}`, a.style.strokeDashoffset = `${r}`;
792
796
  }
793
797
  function It(a, { fromOpacity: r = "0", fromScale: t = "0.85" } = {}) {
794
- a.forEach((o) => {
795
- o.style.animation = "none", o.style.transition = "none", o.style.opacity = r, o.style.transform = `scale(${t})`, o.style.transformBox = "fill-box", o.style.transformOrigin = "50% 50%";
798
+ a.forEach((l) => {
799
+ l.style.animation = "none", l.style.transition = "none", l.style.opacity = r, l.style.transform = `scale(${t})`, l.style.transformBox = "fill-box", l.style.transformOrigin = "50% 50%";
796
800
  });
797
801
  }
798
- function oa(a) {
802
+ function na(a) {
799
803
  return a.cx?.baseVal?.value ?? parseFloat(a.getAttribute("cx"));
800
804
  }
801
- function na(a) {
805
+ function ia(a) {
802
806
  const r = a.getAttribute("x");
803
807
  if (r != null) return parseFloat(r);
804
808
  const t = a.getCTM?.();
@@ -806,102 +810,102 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
806
810
  }
807
811
  function Pt(a, r) {
808
812
  if (!a.length) return [];
809
- const t = a.map((I) => ({ el: I, x: r(I) })).filter((I) => Number.isFinite(I.x));
810
- t.sort((I, F) => I.x - F.x);
811
- let o = 1 / 0;
812
- for (let I = 1; I < t.length; I++) {
813
- const F = t[I].x - t[I - 1].x;
814
- F > 0 && F < o && (o = F);
813
+ const t = a.map((P) => ({ el: P, x: r(P) })).filter((P) => Number.isFinite(P.x));
814
+ t.sort((P, F) => P.x - F.x);
815
+ let l = 1 / 0;
816
+ for (let P = 1; P < t.length; P++) {
817
+ const F = t[P].x - t[P - 1].x;
818
+ F > 0 && F < l && (l = F);
815
819
  }
816
- const u = (o === 1 / 0 ? 1 : o) / 2, p = [];
820
+ const u = (l === 1 / 0 ? 1 : l) / 2, p = [];
817
821
  let b = { x: t[0].x, items: [t[0].el] };
818
- for (let I = 1; I < t.length; I++) {
819
- const { x: F, el: K } = t[I];
822
+ for (let P = 1; P < t.length; P++) {
823
+ const { x: F, el: K } = t[P];
820
824
  Math.abs(F - b.x) <= u ? b.items.push(K) : (p.push(b), b = { x: F, items: [K] });
821
825
  }
822
826
  return p.push(b), p;
823
827
  }
824
- function ia({
828
+ function ua({
825
829
  pathDuration: a,
826
830
  pathEasing: r = "ease-in-out",
827
831
  pointDuration: t,
828
- labelDuration: o,
832
+ labelDuration: l,
829
833
  pointDelay: u = 0,
830
834
  labelDelay: p = 0,
831
835
  pointStep: b = 0,
832
- labelStep: I = 0,
836
+ labelStep: P = 0,
833
837
  intraSeriesStep: F = 0
834
838
  } = {}) {
835
- const K = Array.isArray(Ae.value) ? Ae.value : [Ae.value].filter(Boolean), oe = Array.isArray(Le.value) ? Le.value : [Le.value].filter(Boolean), Z = [...K, ...oe].filter(Boolean), j = M.value, f = Array.from(j.querySelectorAll(".vue-ui-quick-chart-plot")), $ = Array.from(j.querySelectorAll(".vue-ui-quick-chart-label"));
836
- Z.forEach(la), It(f, { fromOpacity: "0", fromScale: "0.75" }), It($, { fromOpacity: "0", fromScale: "0.98" }), f.forEach((g) => g.classList.remove("quick-animation")), $.forEach((g) => g.classList.remove("quick-animation")), j.offsetWidth;
837
- const v = Pt(f, oa), i = Pt($, na);
839
+ const K = Array.isArray(Ae?.value) ? Ae.value : [Ae?.value].filter(Boolean), oe = Array.isArray(Le?.value) ? Le.value : [Le?.value].filter(Boolean), Z = [...K, ...oe].filter(Boolean), X = M?.value || null, f = X ? Array.from(X.querySelectorAll(".vue-ui-quick-chart-plot")) : [], z = X ? Array.from(X.querySelectorAll(".vue-ui-quick-chart-label")) : [];
840
+ Z.forEach(oa), It(f, { fromOpacity: "0", fromScale: "0.75" }), It(z, { fromOpacity: "0", fromScale: "0.98" }), f.forEach((g) => g.classList.remove("quick-animation")), z.forEach((g) => g.classList.remove("quick-animation")), X && X.offsetWidth;
841
+ const d = f.length ? Pt(f, na) : [], i = z.length ? Pt(z, ia) : [];
838
842
  requestAnimationFrame(() => {
839
843
  requestAnimationFrame(() => {
840
844
  Z.forEach((g) => {
841
845
  g.style.transition = `stroke-dashoffset ${a}ms ${r}`, g.style.strokeDashoffset = "0";
842
- }), v.forEach((g, E) => {
843
- g.items.forEach((O, H) => {
846
+ }), d.forEach((g, E) => {
847
+ g.items.forEach((N, H) => {
844
848
  const ee = u + E * b + H * F;
845
- O.style.transition = `opacity ${t}ms ease-out ${ee}ms, transform ${t}ms ease-out ${ee}ms`, O.style.opacity = "1", O.style.transform = "scale(1)";
849
+ N.style.transition = `opacity ${t}ms ease-out ${ee}ms, transform ${t}ms ease-out ${ee}ms`, N.style.opacity = "1", N.style.transform = "scale(1)";
846
850
  });
847
851
  }), i.forEach((g, E) => {
848
- g.items.forEach((O, H) => {
849
- const ee = p + E * I + H * F;
850
- O.style.transition = `opacity ${o}ms ease-out ${ee}ms, transform ${o}ms ease-out ${ee}ms`, O.style.opacity = "1", O.style.transform = "scale(1)";
852
+ g.items.forEach((N, H) => {
853
+ const ee = p + E * P + H * F;
854
+ N.style.transition = `opacity ${l}ms ease-out ${ee}ms, transform ${l}ms ease-out ${ee}ms`, N.style.opacity = "1", N.style.transform = "scale(1)";
851
855
  });
852
856
  });
853
857
  });
854
858
  });
855
859
  }
856
- const ua = V(() => {
857
- if (C.value === _.LINE)
860
+ const ra = R(() => {
861
+ if ($.value === A.LINE)
858
862
  return c.value.legend.map((a) => (Math.min(...a.absoluteValues.map((r) => r ?? 0)), {
859
863
  ...a,
860
- isVisible: !L.value.includes(a.id),
864
+ isVisible: !_.value.includes(a.id),
861
865
  type: "line",
862
866
  series: a.absoluteValues
863
867
  }));
864
- if (C.value === _.BAR)
865
- return d.value.absoluteDataset.map((a) => (Math.min(...a.absoluteValues.map((r) => r ?? 0)), {
868
+ if ($.value === A.BAR)
869
+ return v.value.absoluteDataset.map((a) => (Math.min(...a.absoluteValues.map((r) => r ?? 0)), {
866
870
  ...a,
867
- isVisible: !L.value.includes(a.id),
871
+ isVisible: !_.value.includes(a.id),
868
872
  type: "bar",
869
873
  series: a.absoluteValues
870
874
  }));
871
- }), Q = V(() => Ca({
875
+ }), Q = R(() => Ba({
872
876
  values: e.value.xyPeriods,
873
877
  maxDatapoints: k.value.maxSeriesLength,
874
878
  formatter: e.value.datetimeFormatter,
875
879
  start: y.value.start,
876
880
  end: y.value.end
877
- })), ke = V(() => {
881
+ })), ke = R(() => {
878
882
  const a = e.value.xyPeriodsModulo;
879
883
  return e.value.xyPeriods.length ? Math.min(a, [...new Set(Q.value.map((r) => r.text))].length) : a;
880
884
  }), qe = w(!1);
881
- function Rt(a) {
882
- qe.value = a, ft.value += 1;
885
+ function Ot(a) {
886
+ qe.value = a, ht.value += 1;
883
887
  }
884
888
  function Ft() {
885
889
  ye.value.showTooltip = !ye.value.showTooltip;
886
890
  }
887
891
  const He = w(!1);
888
- function tt() {
892
+ function at() {
889
893
  He.value = !He.value;
890
894
  }
891
- async function ra({ scale: a = 2 } = {}) {
895
+ async function sa({ scale: a = 2 } = {}) {
892
896
  if (!M.value) return;
893
- const { width: r, height: t } = M.value.getBoundingClientRect(), o = r / t, { imageUri: u, base64: p } = await Ia({ domElement: M.value, base64: !0, img: !0, scale: a });
897
+ const { width: r, height: t } = M.value.getBoundingClientRect(), l = r / t, { imageUri: u, base64: p } = await Va({ domElement: M.value, base64: !0, img: !0, scale: a });
894
898
  return {
895
899
  imageUri: u,
896
900
  base64: p,
897
901
  title: e.value.title,
898
902
  width: r,
899
903
  height: t,
900
- aspectRatio: o
904
+ aspectRatio: l
901
905
  };
902
906
  }
903
- const sa = V(() => S.value.width), va = V(() => S.value.height);
904
- return Ta({
907
+ const va = R(() => S.value.width), da = R(() => S.value.height);
908
+ Ua({
905
909
  timeLabelsEls: ae,
906
910
  timeLabels: Q,
907
911
  slicer: y,
@@ -910,43 +914,75 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
910
914
  autoRotatePath: ["xyPeriodLabelsAutoRotate", "enable"],
911
915
  isAutoSize: !1,
912
916
  rotation: e.value.xyPeriodLabelsAutoRotate.angle,
913
- height: va.value,
914
- width: sa.value
915
- }), R({
916
- getImage: ra,
917
+ height: da.value,
918
+ width: va.value
919
+ });
920
+ const ca = R(() => e.value.backgroundColor), fa = R(() => $.value === A.DONUT ? I.value.legend : $.value === A.LINE ? c.value.legend : v.value.legend), ha = R(() => ({
921
+ show: e.value.showLegend,
922
+ bold: !1,
923
+ backgroundColor: e.value.backgroundColor,
924
+ color: e.value.color,
925
+ fontSize: e.value.legendFontSize,
926
+ position: e.value.legendPosition
927
+ })), ma = R(() => ({
928
+ text: e.value.title,
929
+ color: e.value.color,
930
+ fontSize: e.value.titleFontSize,
931
+ bold: e.value.titleBold,
932
+ textAlign: e.value.titleTextAlign,
933
+ subtitle: {
934
+ text: ""
935
+ }
936
+ })), { exportSvg: ga, getSvg: pa } = Na({
937
+ svg: Qe,
938
+ title: ma,
939
+ legend: ha,
940
+ legendItems: fa,
941
+ backgroundColor: ca
942
+ });
943
+ async function Rt({ isCb: a }) {
944
+ if (a) {
945
+ const { blob: r, url: t, text: l, dataUrl: u } = await pa();
946
+ e.value.userOptionsCallbacks.svg({ blob: r, url: t, text: l, dataUrl: u });
947
+ } else
948
+ ga();
949
+ }
950
+ return O({
951
+ getImage: sa,
917
952
  generatePdf: bt,
918
953
  generateImage: St,
954
+ generateSvg: Rt,
919
955
  toggleTooltip: Ft,
920
- toggleAnnotator: tt,
921
- toggleFullscreen: Rt
922
- }), (a, r) => Gt.value ? (l(), n("div", {
956
+ toggleAnnotator: at,
957
+ toggleFullscreen: Ot
958
+ }), (a, r) => Yt.value ? (o(), n("div", {
923
959
  key: 0,
924
- id: `${C.value}_${Y.value}`,
960
+ id: `${$.value}_${Y.value}`,
925
961
  ref_key: "quickChart",
926
962
  ref: M,
927
963
  class: de({ "vue-data-ui-component": !0, "vue-ui-quick-chart": !0, "vue-data-ui-wrapper-fullscreen": qe.value }),
928
- style: N(`background:${e.value.backgroundColor};color:${e.value.color};font-family:${e.value.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
964
+ style: B(`background:${e.value.backgroundColor};color:${e.value.color};font-family:${e.value.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
929
965
  onMouseenter: r[2] || (r[2] = () => kt(!0)),
930
966
  onMouseleave: r[3] || (r[3] = () => kt(!1))
931
967
  }, [
932
- e.value.userOptionsButtons.annotator ? (l(), Ie(s(se), {
968
+ e.value.userOptionsButtons.annotator ? (o(), Ie(s(se), {
933
969
  key: 0,
934
- svgRef: s(yt),
970
+ svgRef: s(Qe),
935
971
  backgroundColor: e.value.backgroundColor,
936
972
  color: e.value.color,
937
973
  active: He.value,
938
- onClose: tt
974
+ onClose: at
939
975
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : m("", !0),
940
- Yt.value ? (l(), n("div", {
976
+ Zt.value ? (o(), n("div", {
941
977
  key: 1,
942
978
  ref_key: "noTitle",
943
- ref: ct,
979
+ ref: ft,
944
980
  class: "vue-data-ui-no-title-space",
945
981
  style: "height:36px; width: 100%;background:transparent"
946
982
  }, null, 512)) : m("", !0),
947
- e.value.showUserOptions && (xt.value || Ne.value) ? (l(), Ie(s(rt), {
983
+ e.value.showUserOptions && (xt.value || Ne.value) ? (o(), Ie(s(st), {
948
984
  ref: "details",
949
- key: `user_option_${ft.value}`,
985
+ key: `user_option_${ht.value}`,
950
986
  backgroundColor: e.value.backgroundColor,
951
987
  color: e.value.color,
952
988
  isPrinting: s(Be),
@@ -955,6 +991,7 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
955
991
  hasTooltip: e.value.userOptionsButtons.tooltip && e.value.showTooltip,
956
992
  hasPdf: e.value.userOptionsButtons.pdf,
957
993
  hasImg: e.value.userOptionsButtons.img,
994
+ hasSvg: e.value.userOptionsButtons.svg,
958
995
  hasFullscreen: e.value.userOptionsButtons.fullscreen,
959
996
  hasXls: !1,
960
997
  isTooltip: ye.value.showTooltip,
@@ -966,19 +1003,20 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
966
1003
  isAnnotation: He.value,
967
1004
  callbacks: e.value.userOptionsCallbacks,
968
1005
  printScale: e.value.userOptionsPrint.scale,
969
- onToggleFullscreen: Rt,
1006
+ onToggleFullscreen: Ot,
970
1007
  onGeneratePdf: s(bt),
971
1008
  onGenerateImage: s(St),
1009
+ onGenerateSvg: Rt,
972
1010
  onToggleTooltip: Ft,
973
- onToggleAnnotator: tt,
974
- style: N({
1011
+ onToggleAnnotator: at,
1012
+ style: B({
975
1013
  visibility: xt.value ? Ne.value ? "visible" : "hidden" : "visible"
976
1014
  })
977
- }, ha({ _: 2 }, [
1015
+ }, ba({ _: 2 }, [
978
1016
  a.$slots.menuIcon ? {
979
1017
  name: "menuIcon",
980
- fn: ne(({ isOpen: t, color: o }) => [
981
- W(a.$slots, "menuIcon", me(ge({ isOpen: t, color: o })), void 0, !0)
1018
+ fn: ne(({ isOpen: t, color: l }) => [
1019
+ W(a.$slots, "menuIcon", me(ge({ isOpen: t, color: l })), void 0, !0)
982
1020
  ]),
983
1021
  key: "0"
984
1022
  } : void 0,
@@ -1005,51 +1043,51 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
1005
1043
  } : void 0,
1006
1044
  a.$slots.optionFullscreen ? {
1007
1045
  name: "optionFullscreen",
1008
- fn: ne(({ toggleFullscreen: t, isFullscreen: o }) => [
1009
- W(a.$slots, "optionFullscreen", me(ge({ toggleFullscreen: t, isFullscreen: o })), void 0, !0)
1046
+ fn: ne(({ toggleFullscreen: t, isFullscreen: l }) => [
1047
+ W(a.$slots, "optionFullscreen", me(ge({ toggleFullscreen: t, isFullscreen: l })), void 0, !0)
1010
1048
  ]),
1011
1049
  key: "4"
1012
1050
  } : void 0,
1013
1051
  a.$slots.optionAnnotator ? {
1014
1052
  name: "optionAnnotator",
1015
- fn: ne(({ toggleAnnotator: t, isAnnotator: o }) => [
1016
- W(a.$slots, "optionAnnotator", me(ge({ toggleAnnotator: t, isAnnotator: o })), void 0, !0)
1053
+ fn: ne(({ toggleAnnotator: t, isAnnotator: l }) => [
1054
+ W(a.$slots, "optionAnnotator", me(ge({ toggleAnnotator: t, isAnnotator: l })), void 0, !0)
1017
1055
  ]),
1018
1056
  key: "5"
1019
1057
  } : void 0
1020
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0),
1021
- e.value.title ? (l(), n("div", {
1058
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0),
1059
+ e.value.title ? (o(), n("div", {
1022
1060
  key: 3,
1023
1061
  ref_key: "quickChartTitle",
1024
- ref: Re,
1062
+ ref: Oe,
1025
1063
  class: "vue-ui-quick-chart-title",
1026
- style: N(`background:transparent;color:${e.value.color};font-size:${e.value.titleFontSize}px;font-weight:${e.value.titleBold ? "bold" : "normal"};text-align:${e.value.titleTextAlign}`)
1027
- }, D(e.value.title), 5)) : m("", !0),
1028
- z("div", {
1064
+ style: B(`background:transparent;color:${e.value.color};font-size:${e.value.titleFontSize}px;font-weight:${e.value.titleBold ? "bold" : "normal"};text-align:${e.value.titleTextAlign}`)
1065
+ }, U(e.value.title), 5)) : m("", !0),
1066
+ C("div", {
1029
1067
  id: `legend-top-${Y.value}`
1030
- }, null, 8, Wa),
1031
- C.value ? (l(), n("svg", {
1068
+ }, null, 8, Ka),
1069
+ $.value ? (o(), n("svg", {
1032
1070
  key: 4,
1033
1071
  ref_key: "svgRef",
1034
- ref: yt,
1035
- xmlns: s(Aa),
1036
- viewBox: Zt.value,
1037
- style: N(`max-width:100%;overflow:visible;background:transparent;color:${e.value.color}`)
1072
+ ref: Qe,
1073
+ xmlns: s(Ta),
1074
+ viewBox: Jt.value,
1075
+ style: B(`max-width:100%;overflow:visible;background:transparent;color:${e.value.color}`)
1038
1076
  }, [
1039
- be(s(X)),
1040
- a.$slots["chart-background"] && C.value === _.BAR ? (l(), n("foreignObject", {
1077
+ be(s(j)),
1078
+ a.$slots["chart-background"] && $.value === A.BAR ? (o(), n("foreignObject", {
1041
1079
  key: 0,
1042
- x: d.value.drawingArea.left,
1043
- y: d.value.drawingArea.top,
1044
- width: d.value.drawingArea.width,
1045
- height: d.value.drawingArea.height,
1080
+ x: v.value.drawingArea.left,
1081
+ y: v.value.drawingArea.top,
1082
+ width: v.value.drawingArea.width,
1083
+ height: v.value.drawingArea.height,
1046
1084
  style: {
1047
1085
  pointerEvents: "none"
1048
1086
  }
1049
1087
  }, [
1050
1088
  W(a.$slots, "chart-background", {}, void 0, !0)
1051
- ], 8, ja)) : m("", !0),
1052
- a.$slots["chart-background"] && C.value === _.LINE ? (l(), n("foreignObject", {
1089
+ ], 8, tl)) : m("", !0),
1090
+ a.$slots["chart-background"] && $.value === A.LINE ? (o(), n("foreignObject", {
1053
1091
  key: 1,
1054
1092
  x: c.value.drawingArea.left,
1055
1093
  y: c.value.drawingArea.top,
@@ -1060,8 +1098,8 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
1060
1098
  }
1061
1099
  }, [
1062
1100
  W(a.$slots, "chart-background", {}, void 0, !0)
1063
- ], 8, Ga)) : m("", !0),
1064
- a.$slots["chart-background"] && C.value === _.DONUT ? (l(), n("foreignObject", {
1101
+ ], 8, al)) : m("", !0),
1102
+ a.$slots["chart-background"] && $.value === A.DONUT ? (o(), n("foreignObject", {
1065
1103
  key: 2,
1066
1104
  x: 0,
1067
1105
  y: 0,
@@ -1072,97 +1110,97 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
1072
1110
  }
1073
1111
  }, [
1074
1112
  W(a.$slots, "chart-background", {}, void 0, !0)
1075
- ], 8, Ya)) : m("", !0),
1076
- z("defs", null, [
1077
- z("filter", {
1113
+ ], 8, ll)) : m("", !0),
1114
+ C("defs", null, [
1115
+ C("filter", {
1078
1116
  id: `blur_${Y.value}`,
1079
1117
  x: "-50%",
1080
1118
  y: "-50%",
1081
1119
  width: "200%",
1082
1120
  height: "200%"
1083
1121
  }, [
1084
- z("feGaussianBlur", {
1122
+ C("feGaussianBlur", {
1085
1123
  in: "SourceGraphic",
1086
1124
  stdDeviation: 2,
1087
1125
  id: `blur_std_${Y.value}`
1088
- }, null, 8, Ja),
1089
- r[4] || (r[4] = z("feColorMatrix", {
1126
+ }, null, 8, nl),
1127
+ r[4] || (r[4] = C("feColorMatrix", {
1090
1128
  type: "saturate",
1091
1129
  values: "0"
1092
1130
  }, null, -1))
1093
- ], 8, Za),
1094
- z("filter", {
1131
+ ], 8, ol),
1132
+ C("filter", {
1095
1133
  id: `shadow_${Y.value}`,
1096
1134
  "color-interpolation-filters": "sRGB"
1097
1135
  }, [
1098
- z("feDropShadow", {
1136
+ C("feDropShadow", {
1099
1137
  dx: "0",
1100
1138
  dy: "0",
1101
1139
  stdDeviation: "10",
1102
1140
  "flood-opacity": "0.5",
1103
1141
  "flood-color": e.value.donutShadowColor
1104
- }, null, 8, Ka)
1105
- ], 8, Qa)
1142
+ }, null, 8, ul)
1143
+ ], 8, il)
1106
1144
  ]),
1107
- C.value === _.DONUT ? (l(), n(x, { key: 3 }, [
1108
- e.value.showDataLabels ? (l(), n("g", el, [
1109
- (l(!0), n(x, null, T(P.value.chart, (t, o) => (l(), n(x, null, [
1110
- P.value.isArcBigEnough(t) ? (l(), n("path", {
1145
+ $.value === A.DONUT ? (o(), n(x, { key: 3 }, [
1146
+ e.value.showDataLabels ? (o(), n("g", rl, [
1147
+ (o(!0), n(x, null, T(I.value.chart, (t, l) => (o(), n(x, null, [
1148
+ I.value.isArcBigEnough(t) ? (o(), n("path", {
1111
1149
  key: 0,
1112
- d: s(La)(t, { x: S.value.width / 2, y: S.value.height / 2 }, 16, 16, !1, !1, S.value.height * $t.value, 12, e.value.donutCurvedMarkers),
1150
+ d: s(Ia)(t, { x: S.value.width / 2, y: S.value.height / 2 }, 16, 16, !1, !1, S.value.height * Ct.value, 12, e.value.donutCurvedMarkers),
1113
1151
  stroke: t.color,
1114
1152
  "stroke-width": e.value.donutLabelMarkerStrokeWidth,
1115
1153
  "stroke-linecap": "round",
1116
1154
  "stroke-linejoin": "round",
1117
1155
  fill: "none",
1118
- filter: $e(t.id)
1119
- }, null, 8, tl)) : m("", !0)
1156
+ filter: Ce(t.id)
1157
+ }, null, 8, sl)) : m("", !0)
1120
1158
  ], 64))), 256))
1121
1159
  ])) : m("", !0),
1122
- z("circle", {
1123
- cx: P.value.cx,
1124
- cy: P.value.cy,
1125
- r: P.value.radius,
1160
+ C("circle", {
1161
+ cx: I.value.cx,
1162
+ cy: I.value.cy,
1163
+ r: I.value.radius,
1126
1164
  fill: e.value.backgroundColor,
1127
1165
  filter: e.value.donutUseShadow ? `url(#shadow_${Y.value})` : ""
1128
- }, null, 8, al),
1129
- z("g", ll, [
1130
- (l(!0), n(x, null, T(P.value.chart, (t, o) => (l(), n("path", {
1166
+ }, null, 8, vl),
1167
+ C("g", dl, [
1168
+ (o(!0), n(x, null, T(I.value.chart, (t, l) => (o(), n("path", {
1131
1169
  d: t.arcSlice,
1132
1170
  fill: t.color,
1133
- stroke: Oe.value,
1171
+ stroke: Me.value,
1134
1172
  "stroke-width": e.value.donutStrokeWidth,
1135
- filter: $e(t.id)
1136
- }, null, 8, ol))), 256)),
1137
- (l(!0), n(x, null, T(P.value.chart, (t, o) => (l(), n("path", {
1173
+ filter: Ce(t.id)
1174
+ }, null, 8, cl))), 256)),
1175
+ (o(!0), n(x, null, T(I.value.chart, (t, l) => (o(), n("path", {
1138
1176
  d: t.arcSlice,
1139
1177
  fill: "transparent",
1140
- onMouseenter: (u) => P.value.useTooltip({ datapoint: t, seriesIndex: o }),
1141
- onMouseout: (u) => P.value.killTooltip({ datapoint: t, seriesIndex: o }),
1142
- onClick: (u) => P.value.selectDatapoint({ datapoint: t, seriesIndex: o })
1143
- }, null, 40, nl))), 256))
1178
+ onMouseenter: (u) => I.value.useTooltip({ datapoint: t, seriesIndex: l }),
1179
+ onMouseout: (u) => I.value.killTooltip({ datapoint: t, seriesIndex: l }),
1180
+ onClick: (u) => I.value.selectDatapoint({ datapoint: t, seriesIndex: l })
1181
+ }, null, 40, fl))), 256))
1144
1182
  ]),
1145
- e.value.showDataLabels ? (l(), n("g", il, [
1146
- (l(!0), n(x, null, T(P.value.chart, (t, o) => (l(), n(x, null, [
1147
- P.value.isArcBigEnough(t) ? (l(), n("circle", {
1183
+ e.value.showDataLabels ? (o(), n("g", hl, [
1184
+ (o(!0), n(x, null, T(I.value.chart, (t, l) => (o(), n(x, null, [
1185
+ I.value.isArcBigEnough(t) ? (o(), n("circle", {
1148
1186
  key: 0,
1149
1187
  cx: s(Pe)(t).x,
1150
- cy: s(it)(t) - 3.7,
1188
+ cy: s(ut)(t) - 3.7,
1151
1189
  fill: t.color,
1152
1190
  stroke: e.value.backgroundColor,
1153
1191
  "stroke-width": 1,
1154
1192
  r: 3,
1155
- filter: $e(t.id)
1156
- }, null, 8, ul)) : m("", !0),
1157
- P.value.isArcBigEnough(t) ? (l(), n("text", {
1193
+ filter: Ce(t.id)
1194
+ }, null, 8, ml)) : m("", !0),
1195
+ I.value.isArcBigEnough(t) ? (o(), n("text", {
1158
1196
  key: 1,
1159
1197
  "text-anchor": s(Pe)(t, !0, 20).anchor,
1160
1198
  x: s(Pe)(t, !0).x,
1161
- y: s(it)(t),
1199
+ y: s(ut)(t),
1162
1200
  fill: e.value.color,
1163
1201
  "font-size": e.value.dataLabelFontSize,
1164
- filter: $e(t.id)
1165
- }, D(P.value.displayArcPercentage(t, P.value.chart)) + " (" + D(s(ie)(
1202
+ filter: Ce(t.id)
1203
+ }, U(I.value.displayArcPercentage(t, I.value.chart)) + " (" + U(s(ie)(
1166
1204
  e.value.formatter,
1167
1205
  t.value,
1168
1206
  s(G)({
@@ -1171,45 +1209,45 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
1171
1209
  s: e.value.valueSuffix,
1172
1210
  r: e.value.dataLabelRoundingValue
1173
1211
  }),
1174
- { datapoint: t, seriesIndex: o }
1175
- )) + ") ", 9, rl)) : m("", !0),
1176
- P.value.isArcBigEnough(t, !0, 20) ? (l(), n("text", {
1212
+ { datapoint: t, seriesIndex: l }
1213
+ )) + ") ", 9, gl)) : m("", !0),
1214
+ I.value.isArcBigEnough(t, !0, 20) ? (o(), n("text", {
1177
1215
  key: 2,
1178
1216
  "text-anchor": s(Pe)(t).anchor,
1179
1217
  x: s(Pe)(t, !0).x,
1180
- y: s(it)(t) + e.value.dataLabelFontSize,
1218
+ y: s(ut)(t) + e.value.dataLabelFontSize,
1181
1219
  fill: e.value.color,
1182
1220
  "font-size": e.value.dataLabelFontSize,
1183
- filter: $e(t.id)
1184
- }, D(t.name), 9, sl)) : m("", !0)
1221
+ filter: Ce(t.id)
1222
+ }, U(t.name), 9, pl)) : m("", !0)
1185
1223
  ], 64))), 256))
1186
1224
  ])) : m("", !0),
1187
- e.value.donutShowTotal ? (l(), n("g", vl, [
1188
- z("text", {
1225
+ e.value.donutShowTotal ? (o(), n("g", yl, [
1226
+ C("text", {
1189
1227
  "text-anchor": "middle",
1190
- x: P.value.drawingArea.centerX,
1191
- y: P.value.drawingArea.centerY - e.value.donutTotalLabelFontSize / 2,
1228
+ x: I.value.drawingArea.centerX,
1229
+ y: I.value.drawingArea.centerY - e.value.donutTotalLabelFontSize / 2,
1192
1230
  "font-size": e.value.donutTotalLabelFontSize,
1193
1231
  fill: e.value.color
1194
- }, D(e.value.donutTotalLabelText), 9, dl),
1195
- z("text", {
1232
+ }, U(e.value.donutTotalLabelText), 9, xl),
1233
+ C("text", {
1196
1234
  "text-anchor": "middle",
1197
- x: P.value.drawingArea.centerX,
1198
- y: P.value.drawingArea.centerY + e.value.donutTotalLabelFontSize,
1235
+ x: I.value.drawingArea.centerX,
1236
+ y: I.value.drawingArea.centerY + e.value.donutTotalLabelFontSize,
1199
1237
  "font-size": e.value.donutTotalLabelFontSize,
1200
1238
  fill: e.value.color
1201
- }, D(s(G)({
1239
+ }, U(s(G)({
1202
1240
  p: e.value.valuePrefix,
1203
- v: P.value.total,
1241
+ v: I.value.total,
1204
1242
  s: e.value.valueSuffix,
1205
1243
  r: e.value.dataLabelRoundingValue
1206
- })), 9, cl)
1244
+ })), 9, kl)
1207
1245
  ])) : m("", !0)
1208
1246
  ], 64)) : m("", !0),
1209
- C.value === _.LINE ? (l(), n(x, { key: 4 }, [
1210
- e.value.xyShowGrid ? (l(), n("g", fl, [
1211
- (l(!0), n(x, null, T(c.value.yLabels, (t) => (l(), n(x, null, [
1212
- t.y <= c.value.drawingArea.bottom ? (l(), n("line", {
1247
+ $.value === A.LINE ? (o(), n(x, { key: 4 }, [
1248
+ e.value.xyShowGrid ? (o(), n("g", bl, [
1249
+ (o(!0), n(x, null, T(c.value.yLabels, (t) => (o(), n(x, null, [
1250
+ t.y <= c.value.drawingArea.bottom ? (o(), n("line", {
1213
1251
  key: 0,
1214
1252
  x1: c.value.drawingArea.left,
1215
1253
  x2: c.value.drawingArea.right,
@@ -1218,20 +1256,20 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
1218
1256
  stroke: e.value.xyGridStroke,
1219
1257
  "stroke-width": e.value.xyGridStrokeWidth,
1220
1258
  "stroke-linecap": "round"
1221
- }, null, 8, hl)) : m("", !0)
1259
+ }, null, 8, Sl)) : m("", !0)
1222
1260
  ], 64))), 256)),
1223
- (l(!0), n(x, null, T(c.value.extremes.maxSeries + 1, (t, o) => (l(), n("line", {
1224
- x1: c.value.drawingArea.left + c.value.slotSize * o,
1225
- x2: c.value.drawingArea.left + c.value.slotSize * o,
1261
+ (o(!0), n(x, null, T(c.value.extremes.maxSeries + 1, (t, l) => (o(), n("line", {
1262
+ x1: c.value.drawingArea.left + c.value.slotSize * l,
1263
+ x2: c.value.drawingArea.left + c.value.slotSize * l,
1226
1264
  y1: c.value.drawingArea.top,
1227
1265
  y2: c.value.drawingArea.bottom,
1228
1266
  stroke: e.value.xyGridStroke,
1229
1267
  "stroke-width": e.value.xyGridStrokeWidth,
1230
1268
  "stroke-linecap": "round"
1231
- }, null, 8, ml))), 256))
1269
+ }, null, 8, wl))), 256))
1232
1270
  ])) : m("", !0),
1233
- e.value.xyShowAxis ? (l(), n("g", gl, [
1234
- z("line", {
1271
+ e.value.xyShowAxis ? (o(), n("g", Al, [
1272
+ C("line", {
1235
1273
  x1: c.value.drawingArea.left,
1236
1274
  x2: c.value.drawingArea.left,
1237
1275
  y1: c.value.drawingArea.top,
@@ -1239,8 +1277,8 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
1239
1277
  stroke: e.value.xyAxisStroke,
1240
1278
  "stroke-width": e.value.xyAxisStrokeWidth,
1241
1279
  "stroke-linecap": "round"
1242
- }, null, 8, pl),
1243
- z("line", {
1280
+ }, null, 8, Ll),
1281
+ C("line", {
1244
1282
  x1: c.value.drawingArea.left,
1245
1283
  x2: c.value.drawingArea.right,
1246
1284
  y1: isNaN(c.value.absoluteZero) ? c.value.drawingArea.bottom : c.value.absoluteZero,
@@ -1248,16 +1286,16 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
1248
1286
  stroke: e.value.xyAxisStroke,
1249
1287
  "stroke-width": e.value.xyAxisStrokeWidth,
1250
1288
  "stroke-linecap": "round"
1251
- }, null, 8, yl)
1289
+ }, null, 8, _l)
1252
1290
  ])) : m("", !0),
1253
- e.value.xyShowScale ? (l(), n("g", {
1291
+ e.value.xyShowScale ? (o(), n("g", {
1254
1292
  key: 2,
1255
1293
  class: "yLabels",
1256
1294
  ref_key: "scaleLabels",
1257
- ref: Me
1295
+ ref: Re
1258
1296
  }, [
1259
- (l(!0), n(x, null, T(c.value.yLabels, (t, o) => (l(), n(x, null, [
1260
- t.y <= c.value.drawingArea.bottom ? (l(), n("line", {
1297
+ (o(!0), n(x, null, T(c.value.yLabels, (t, l) => (o(), n(x, null, [
1298
+ t.y <= c.value.drawingArea.bottom ? (o(), n("line", {
1261
1299
  key: 0,
1262
1300
  x1: t.x + 4,
1263
1301
  x2: c.value.drawingArea.left,
@@ -1266,15 +1304,15 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
1266
1304
  stroke: e.value.xyAxisStroke,
1267
1305
  "stroke-width": e.value.xyAxisStrokeWidth,
1268
1306
  "stroke-linecap": "round"
1269
- }, null, 8, xl)) : m("", !0),
1270
- t.y <= c.value.drawingArea.bottom ? (l(), n("text", {
1307
+ }, null, 8, zl)) : m("", !0),
1308
+ t.y <= c.value.drawingArea.bottom ? (o(), n("text", {
1271
1309
  key: 1,
1272
1310
  x: t.x,
1273
1311
  y: t.y + e.value.xyLabelsYFontSize / 3,
1274
1312
  "text-anchor": "end",
1275
1313
  "font-size": e.value.xyLabelsYFontSize,
1276
1314
  fill: e.value.color
1277
- }, D(s(ie)(
1315
+ }, U(s(ie)(
1278
1316
  e.value.formatter,
1279
1317
  t.value,
1280
1318
  s(G)({
@@ -1283,85 +1321,85 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
1283
1321
  s: e.value.valueSuffix,
1284
1322
  r: e.value.dataLabelRoundingValue
1285
1323
  }),
1286
- { datapoint: t, seriesIndex: o }
1287
- )), 9, kl)) : m("", !0)
1324
+ { datapoint: t, seriesIndex: l }
1325
+ )), 9, Cl)) : m("", !0)
1288
1326
  ], 64))), 256))
1289
1327
  ], 512)) : m("", !0),
1290
- e.value.xyShowScale && e.value.xyPeriods.length ? (l(), n("g", bl, [
1291
- (l(!0), n(x, null, T(Q.value.map((t) => t.text), (t, o) => (l(), n(x, null, [
1292
- !e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && o % Math.floor((y.value.end - y.value.start) / ke.value) === 0 || y.value.end - y.value.start <= ke.value ? (l(), n("line", {
1328
+ e.value.xyShowScale && e.value.xyPeriods.length ? (o(), n("g", $l, [
1329
+ (o(!0), n(x, null, T(Q.value.map((t) => t.text), (t, l) => (o(), n(x, null, [
1330
+ !e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && l % Math.floor((y.value.end - y.value.start) / ke.value) === 0 || y.value.end - y.value.start <= ke.value ? (o(), n("line", {
1293
1331
  key: 0,
1294
- x1: c.value.drawingArea.left + c.value.slotSize * (o + 1) - c.value.slotSize / 2,
1295
- x2: c.value.drawingArea.left + c.value.slotSize * (o + 1) - c.value.slotSize / 2,
1332
+ x1: c.value.drawingArea.left + c.value.slotSize * (l + 1) - c.value.slotSize / 2,
1333
+ x2: c.value.drawingArea.left + c.value.slotSize * (l + 1) - c.value.slotSize / 2,
1296
1334
  y1: c.value.drawingArea.bottom,
1297
1335
  y2: c.value.drawingArea.bottom + 4,
1298
1336
  stroke: e.value.xyAxisStroke,
1299
1337
  "stroke-width": e.value.xyAxisStrokeWidth,
1300
1338
  "stroke-linecap": "round"
1301
- }, null, 8, Sl)) : m("", !0)
1339
+ }, null, 8, El)) : m("", !0)
1302
1340
  ], 64))), 256)),
1303
- z("g", {
1341
+ C("g", {
1304
1342
  ref_key: "timeLabelsEls",
1305
1343
  ref: ae
1306
1344
  }, [
1307
- (l(!0), n(x, null, T(Q.value.map((t) => t.text), (t, o) => (l(), n(x, null, [
1308
- !e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && o % Math.floor((y.value.end - y.value.start) / ke.value) === 0 || y.value.end - y.value.start <= ke.value ? (l(), n("g", wl, [
1345
+ (o(!0), n(x, null, T(Q.value.map((t) => t.text), (t, l) => (o(), n(x, null, [
1346
+ !e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && l % Math.floor((y.value.end - y.value.start) / ke.value) === 0 || y.value.end - y.value.start <= ke.value ? (o(), n("g", Tl, [
1309
1347
  String(t).includes(`
1310
- `) ? (l(), n("text", {
1348
+ `) ? (o(), n("text", {
1311
1349
  key: 1,
1312
1350
  class: "vue-data-ui-time-label",
1313
1351
  "font-size": e.value.xyLabelsXFontSize,
1314
1352
  "text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
1315
1353
  fill: e.value.color,
1316
- transform: `translate(${c.value.drawingArea.left + c.value.slotSize * (o + 1) - c.value.slotSize / 2}, ${c.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}), rotate(${e.value.xyPeriodLabelsRotation})`,
1317
- innerHTML: s(Nt)({
1354
+ transform: `translate(${c.value.drawingArea.left + c.value.slotSize * (l + 1) - c.value.slotSize / 2}, ${c.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}), rotate(${e.value.xyPeriodLabelsRotation})`,
1355
+ innerHTML: s(Bt)({
1318
1356
  content: String(t),
1319
1357
  fontSize: e.value.xyLabelsXFontSize,
1320
1358
  fill: e.value.color,
1321
1359
  x: 0,
1322
1360
  y: 0
1323
1361
  })
1324
- }, null, 8, Ll)) : (l(), n("text", {
1362
+ }, null, 8, Pl)) : (o(), n("text", {
1325
1363
  key: 0,
1326
1364
  class: "vue-data-ui-time-label",
1327
1365
  "font-size": e.value.xyLabelsXFontSize,
1328
1366
  "text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
1329
1367
  fill: e.value.color,
1330
- transform: `translate(${c.value.drawingArea.left + c.value.slotSize * (o + 1) - c.value.slotSize / 2}, ${c.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}), rotate(${e.value.xyPeriodLabelsRotation})`
1331
- }, D(t), 9, Al))
1368
+ transform: `translate(${c.value.drawingArea.left + c.value.slotSize * (l + 1) - c.value.slotSize / 2}, ${c.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}), rotate(${e.value.xyPeriodLabelsRotation})`
1369
+ }, U(t), 9, Il))
1332
1370
  ])) : m("", !0)
1333
1371
  ], 64))), 256))
1334
1372
  ], 512)
1335
1373
  ])) : m("", !0),
1336
- z("g", _l, [
1337
- (l(!0), n(x, null, T(c.value.dataset, (t, o) => (l(), n("g", zl, [
1338
- e.value.lineSmooth ? (l(), n(x, { key: 0 }, [
1339
- z("path", {
1374
+ C("g", Ol, [
1375
+ (o(!0), n(x, null, T(c.value.dataset, (t, l) => (o(), n("g", Fl, [
1376
+ e.value.lineSmooth ? (o(), n(x, { key: 0 }, [
1377
+ C("path", {
1340
1378
  ref_for: !0,
1341
1379
  ref_key: "pathWrapper",
1342
1380
  ref: Ae,
1343
- d: `M ${s(Bt)(t.coordinates)}`,
1381
+ d: `M ${s(Dt)(t.coordinates)}`,
1344
1382
  stroke: e.value.backgroundColor,
1345
1383
  "stroke-width": e.value.lineStrokeWidth + 1,
1346
1384
  "stroke-linecap": "round",
1347
1385
  fill: "none",
1348
- class: de({ "quick-animation": !s(U), "vue-data-ui-line-animated": e.value.lineAnimated && !s(U) }),
1349
- style: N({ transition: s(U) ? void 0 : "all 0.3s ease-in-out" })
1350
- }, null, 14, $l),
1351
- z("path", {
1386
+ class: de({ "quick-animation": !s(V), "vue-data-ui-line-animated": e.value.lineAnimated && !s(V) }),
1387
+ style: B({ transition: s(V) ? void 0 : "all 0.3s ease-in-out" })
1388
+ }, null, 14, Rl),
1389
+ C("path", {
1352
1390
  ref_for: !0,
1353
1391
  ref_key: "pathTop",
1354
1392
  ref: Le,
1355
- d: `M ${s(Bt)(t.coordinates)}`,
1393
+ d: `M ${s(Dt)(t.coordinates)}`,
1356
1394
  stroke: t.color,
1357
1395
  "stroke-width": e.value.lineStrokeWidth,
1358
1396
  "stroke-linecap": "round",
1359
1397
  fill: "none",
1360
- class: de({ "quick-animation": !s(U), "vue-data-ui-line-animated": e.value.lineAnimated && !s(U) }),
1361
- style: N({ transition: s(U) ? void 0 : "all 0.3s ease-in-out" })
1362
- }, null, 14, Cl)
1363
- ], 64)) : (l(), n(x, { key: 1 }, [
1364
- z("path", {
1398
+ class: de({ "quick-animation": !s(V), "vue-data-ui-line-animated": e.value.lineAnimated && !s(V) }),
1399
+ style: B({ transition: s(V) ? void 0 : "all 0.3s ease-in-out" })
1400
+ }, null, 14, Ml)
1401
+ ], 64)) : (o(), n(x, { key: 1 }, [
1402
+ C("path", {
1365
1403
  ref_for: !0,
1366
1404
  ref_key: "pathWrapper",
1367
1405
  ref: Ae,
@@ -1370,10 +1408,10 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
1370
1408
  "stroke-width": e.value.lineStrokeWidth + 1,
1371
1409
  "stroke-linecap": "round",
1372
1410
  fill: "none",
1373
- class: de({ "quick-animation": !s(U), "vue-data-ui-line-animated": e.value.lineAnimated && !s(U) }),
1374
- style: N({ transition: s(U) ? void 0 : "all 0.3s ease-in-out" })
1375
- }, null, 14, El),
1376
- z("path", {
1411
+ class: de({ "quick-animation": !s(V), "vue-data-ui-line-animated": e.value.lineAnimated && !s(V) }),
1412
+ style: B({ transition: s(V) ? void 0 : "all 0.3s ease-in-out" })
1413
+ }, null, 14, Nl),
1414
+ C("path", {
1377
1415
  ref_for: !0,
1378
1416
  ref_key: "pathTop",
1379
1417
  ref: Le,
@@ -1382,33 +1420,33 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
1382
1420
  "stroke-width": e.value.lineStrokeWidth,
1383
1421
  "stroke-linecap": "round",
1384
1422
  fill: "none",
1385
- class: de({ "quick-animation": !s(U), "vue-data-ui-line-animated": e.value.lineAnimated && !s(U) }),
1386
- style: N({ transition: s(U) ? void 0 : "all 0.3s ease-in-out" })
1387
- }, null, 14, Tl)
1423
+ class: de({ "quick-animation": !s(V), "vue-data-ui-line-animated": e.value.lineAnimated && !s(V) }),
1424
+ style: B({ transition: s(V) ? void 0 : "all 0.3s ease-in-out" })
1425
+ }, null, 14, Bl)
1388
1426
  ], 64)),
1389
- (l(!0), n(x, null, T(t.coordinates, (u, p) => (l(), n("circle", {
1427
+ (o(!0), n(x, null, T(t.coordinates, (u, p) => (o(), n("circle", {
1390
1428
  cx: u.x,
1391
1429
  cy: s(ue)(u.y),
1392
1430
  r: 3,
1393
1431
  fill: t.color,
1394
1432
  stroke: e.value.backgroundColor,
1395
1433
  "stroke-width": "0.5",
1396
- class: de({ "vue-ui-quick-chart-plot": !0, "quick-animation": !s(U) }),
1397
- style: N({ transition: s(U) ? void 0 : "all 0.3s ease-in-out" })
1398
- }, null, 14, Il))), 256))
1434
+ class: de({ "vue-ui-quick-chart-plot": !0, "quick-animation": !s(V) }),
1435
+ style: B({ transition: s(V) ? void 0 : "all 0.3s ease-in-out" })
1436
+ }, null, 14, Dl))), 256))
1399
1437
  ]))), 256))
1400
1438
  ]),
1401
- e.value.showDataLabels ? (l(), n("g", Pl, [
1402
- (l(!0), n(x, null, T(c.value.dataset, (t, o) => (l(), n(x, null, [
1403
- (l(!0), n(x, null, T(t.coordinates, (u, p) => (l(), n("text", {
1439
+ e.value.showDataLabels ? (o(), n("g", Ul, [
1440
+ (o(!0), n(x, null, T(c.value.dataset, (t, l) => (o(), n(x, null, [
1441
+ (o(!0), n(x, null, T(t.coordinates, (u, p) => (o(), n("text", {
1404
1442
  "text-anchor": "middle",
1405
1443
  "font-size": e.value.dataLabelFontSize,
1406
1444
  fill: t.color,
1407
1445
  x: u.x,
1408
1446
  y: s(ue)(u.y) - e.value.dataLabelFontSize / 2,
1409
- class: de({ "vue-ui-quick-chart-label": !0, "quick-animation": !s(U) }),
1410
- style: N({ transition: s(U) ? void 0 : "all 0.3s ease-in-out" })
1411
- }, D(s(ie)(
1447
+ class: de({ "vue-ui-quick-chart-label": !0, "quick-animation": !s(V) }),
1448
+ style: B({ transition: s(V) ? void 0 : "all 0.3s ease-in-out" })
1449
+ }, U(s(ie)(
1412
1450
  e.value.formatter,
1413
1451
  s(ue)(u.value),
1414
1452
  s(G)({
@@ -1418,92 +1456,92 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
1418
1456
  r: e.value.dataLabelRoundingValue
1419
1457
  }),
1420
1458
  { datapoint: u, seriesIndex: p }
1421
- )), 15, Rl))), 256))
1459
+ )), 15, Vl))), 256))
1422
1460
  ], 64))), 256))
1423
1461
  ])) : m("", !0),
1424
- Qe.value ? (l(), n("g", Fl, [
1425
- (l(!0), n(x, null, T(c.value.extremes.maxSeries, (t, o) => (l(), n("rect", {
1426
- x: c.value.drawingArea.left + o * c.value.slotSize,
1462
+ Ke.value ? (o(), n("g", ql, [
1463
+ (o(!0), n(x, null, T(c.value.extremes.maxSeries, (t, l) => (o(), n("rect", {
1464
+ x: c.value.drawingArea.left + l * c.value.slotSize,
1427
1465
  y: c.value.drawingArea.top,
1428
1466
  height: c.value.drawingArea.height <= 0 ? 1e-5 : c.value.drawingArea.height,
1429
1467
  width: c.value.slotSize <= 0 ? 1e-5 : c.value.slotSize,
1430
- fill: [te.value, le.value].includes(o) ? e.value.xyHighlighterColor : "transparent",
1431
- style: N(`opacity:${e.value.xyHighlighterOpacity}`),
1432
- onMouseenter: (u) => c.value.useTooltip(o),
1433
- onMouseleave: (u) => c.value.killTooltip(o),
1434
- onClick: (u) => c.value.selectDatapoint(o)
1435
- }, null, 44, Ml))), 256))
1468
+ fill: [te.value, le.value].includes(l) ? e.value.xyHighlighterColor : "transparent",
1469
+ style: B(`opacity:${e.value.xyHighlighterOpacity}`),
1470
+ onMouseenter: (u) => c.value.useTooltip(l),
1471
+ onMouseleave: (u) => c.value.killTooltip(l),
1472
+ onClick: (u) => c.value.selectDatapoint(l)
1473
+ }, null, 44, Hl))), 256))
1436
1474
  ])) : m("", !0)
1437
1475
  ], 64)) : m("", !0),
1438
- C.value === _.BAR ? (l(), n(x, { key: 5 }, [
1439
- e.value.xyShowGrid ? (l(), n("g", Ol, [
1440
- (l(!0), n(x, null, T(d.value.yLabels, (t) => (l(), n(x, null, [
1441
- t.y <= d.value.drawingArea.bottom ? (l(), n("line", {
1476
+ $.value === A.BAR ? (o(), n(x, { key: 5 }, [
1477
+ e.value.xyShowGrid ? (o(), n("g", Wl, [
1478
+ (o(!0), n(x, null, T(v.value.yLabels, (t) => (o(), n(x, null, [
1479
+ t.y <= v.value.drawingArea.bottom ? (o(), n("line", {
1442
1480
  key: 0,
1443
- x1: d.value.drawingArea.left,
1444
- x2: d.value.drawingArea.right,
1481
+ x1: v.value.drawingArea.left,
1482
+ x2: v.value.drawingArea.right,
1445
1483
  y1: t.y,
1446
1484
  y2: t.y,
1447
1485
  stroke: e.value.xyGridStroke,
1448
1486
  "stroke-width": e.value.xyGridStrokeWidth,
1449
1487
  "stroke-linecap": "round"
1450
- }, null, 8, Nl)) : m("", !0)
1488
+ }, null, 8, Xl)) : m("", !0)
1451
1489
  ], 64))), 256)),
1452
- (l(!0), n(x, null, T(d.value.extremes.maxSeries + 1, (t, o) => (l(), n("line", {
1453
- x1: d.value.drawingArea.left + d.value.slotSize * o,
1454
- x2: d.value.drawingArea.left + d.value.slotSize * o,
1455
- y1: d.value.drawingArea.top,
1456
- y2: d.value.drawingArea.bottom,
1490
+ (o(!0), n(x, null, T(v.value.extremes.maxSeries + 1, (t, l) => (o(), n("line", {
1491
+ x1: v.value.drawingArea.left + v.value.slotSize * l,
1492
+ x2: v.value.drawingArea.left + v.value.slotSize * l,
1493
+ y1: v.value.drawingArea.top,
1494
+ y2: v.value.drawingArea.bottom,
1457
1495
  stroke: e.value.xyGridStroke,
1458
1496
  "stroke-width": e.value.xyGridStrokeWidth,
1459
1497
  "stroke-linecap": "round"
1460
- }, null, 8, Bl))), 256))
1498
+ }, null, 8, jl))), 256))
1461
1499
  ])) : m("", !0),
1462
- e.value.xyShowAxis ? (l(), n("g", Dl, [
1463
- z("line", {
1464
- x1: d.value.drawingArea.left,
1465
- x2: d.value.drawingArea.left,
1466
- y1: d.value.drawingArea.top,
1467
- y2: d.value.drawingArea.bottom,
1500
+ e.value.xyShowAxis ? (o(), n("g", Gl, [
1501
+ C("line", {
1502
+ x1: v.value.drawingArea.left,
1503
+ x2: v.value.drawingArea.left,
1504
+ y1: v.value.drawingArea.top,
1505
+ y2: v.value.drawingArea.bottom,
1468
1506
  stroke: e.value.xyAxisStroke,
1469
1507
  "stroke-width": e.value.xyAxisStrokeWidth,
1470
1508
  "stroke-linecap": "round"
1471
- }, null, 8, Ul),
1472
- z("line", {
1473
- x1: d.value.drawingArea.left,
1474
- x2: d.value.drawingArea.right,
1475
- y1: isNaN(d.value.absoluteZero) ? d.value.drawingArea.bottom : d.value.absoluteZero,
1476
- y2: isNaN(d.value.absoluteZero) ? d.value.drawingArea.bottom : d.value.absoluteZero,
1509
+ }, null, 8, Yl),
1510
+ C("line", {
1511
+ x1: v.value.drawingArea.left,
1512
+ x2: v.value.drawingArea.right,
1513
+ y1: isNaN(v.value.absoluteZero) ? v.value.drawingArea.bottom : v.value.absoluteZero,
1514
+ y2: isNaN(v.value.absoluteZero) ? v.value.drawingArea.bottom : v.value.absoluteZero,
1477
1515
  stroke: e.value.xyAxisStroke,
1478
1516
  "stroke-width": e.value.xyAxisStrokeWidth,
1479
1517
  "stroke-linecap": "round"
1480
- }, null, 8, Vl)
1518
+ }, null, 8, Zl)
1481
1519
  ])) : m("", !0),
1482
- e.value.xyShowScale ? (l(), n("g", {
1520
+ e.value.xyShowScale ? (o(), n("g", {
1483
1521
  key: 2,
1484
1522
  class: "yLabels",
1485
1523
  ref_key: "scaleLabels",
1486
- ref: Me
1524
+ ref: Re
1487
1525
  }, [
1488
- (l(!0), n(x, null, T(d.value.yLabels, (t, o) => (l(), n(x, null, [
1489
- t.y <= d.value.drawingArea.bottom ? (l(), n("line", {
1526
+ (o(!0), n(x, null, T(v.value.yLabels, (t, l) => (o(), n(x, null, [
1527
+ t.y <= v.value.drawingArea.bottom ? (o(), n("line", {
1490
1528
  key: 0,
1491
1529
  x1: t.x + 4,
1492
- x2: d.value.drawingArea.left,
1530
+ x2: v.value.drawingArea.left,
1493
1531
  y1: t.y,
1494
1532
  y2: t.y,
1495
1533
  stroke: e.value.xyAxisStroke,
1496
1534
  "stroke-width": e.value.xyAxisStrokeWidth,
1497
1535
  "stroke-linecap": "round"
1498
- }, null, 8, ql)) : m("", !0),
1499
- t.y <= d.value.drawingArea.bottom ? (l(), n("text", {
1536
+ }, null, 8, Jl)) : m("", !0),
1537
+ t.y <= v.value.drawingArea.bottom ? (o(), n("text", {
1500
1538
  key: 1,
1501
1539
  x: t.x,
1502
1540
  y: t.y + e.value.xyLabelsYFontSize / 3,
1503
1541
  "text-anchor": "end",
1504
1542
  "font-size": e.value.xyLabelsYFontSize,
1505
1543
  fill: e.value.color
1506
- }, D(s(ie)(
1544
+ }, U(s(ie)(
1507
1545
  e.value.formatter,
1508
1546
  t.value,
1509
1547
  s(G)({
@@ -1512,56 +1550,56 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
1512
1550
  s: e.value.valueSuffix,
1513
1551
  r: e.value.dataLabelRoundingValue
1514
1552
  }),
1515
- { datapoint: t, seriesIndex: o }
1516
- )), 9, Hl)) : m("", !0)
1553
+ { datapoint: t, seriesIndex: l }
1554
+ )), 9, Ql)) : m("", !0)
1517
1555
  ], 64))), 256))
1518
1556
  ], 512)) : m("", !0),
1519
- e.value.xyShowScale && e.value.xyPeriods.length ? (l(), n("g", Wl, [
1520
- (l(!0), n(x, null, T(e.value.xyPeriods.slice(y.value.start, y.value.end), (t, o) => (l(), n("line", {
1521
- x1: d.value.drawingArea.left + d.value.slotSize * (o + 1) - d.value.slotSize / 2,
1522
- x2: d.value.drawingArea.left + d.value.slotSize * (o + 1) - d.value.slotSize / 2,
1523
- y1: d.value.drawingArea.bottom,
1524
- y2: d.value.drawingArea.bottom + 4,
1557
+ e.value.xyShowScale && e.value.xyPeriods.length ? (o(), n("g", Kl, [
1558
+ (o(!0), n(x, null, T(e.value.xyPeriods.slice(y.value.start, y.value.end), (t, l) => (o(), n("line", {
1559
+ x1: v.value.drawingArea.left + v.value.slotSize * (l + 1) - v.value.slotSize / 2,
1560
+ x2: v.value.drawingArea.left + v.value.slotSize * (l + 1) - v.value.slotSize / 2,
1561
+ y1: v.value.drawingArea.bottom,
1562
+ y2: v.value.drawingArea.bottom + 4,
1525
1563
  stroke: e.value.xyAxisStroke,
1526
1564
  "stroke-width": e.value.xyAxisStrokeWidth,
1527
1565
  "stroke-linecap": "round"
1528
- }, null, 8, Xl))), 256)),
1529
- z("g", {
1566
+ }, null, 8, eo))), 256)),
1567
+ C("g", {
1530
1568
  ref_key: "timeLabelsEls",
1531
1569
  ref: ae
1532
1570
  }, [
1533
- (l(!0), n(x, null, T(Q.value.map((t) => t.text), (t, o) => (l(), n(x, null, [
1534
- !e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && o % Math.floor((y.value.end - y.value.start) / ke.value) === 0 || y.value.end - y.value.start <= ke.value ? (l(), n("g", jl, [
1571
+ (o(!0), n(x, null, T(Q.value.map((t) => t.text), (t, l) => (o(), n(x, null, [
1572
+ !e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && l % Math.floor((y.value.end - y.value.start) / ke.value) === 0 || y.value.end - y.value.start <= ke.value ? (o(), n("g", to, [
1535
1573
  String(t).includes(`
1536
- `) ? (l(), n("text", {
1574
+ `) ? (o(), n("text", {
1537
1575
  key: 1,
1538
1576
  class: "vue-data-ui-time-label",
1539
1577
  "font-size": e.value.xyLabelsXFontSize,
1540
1578
  "text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
1541
1579
  fill: e.value.color,
1542
- transform: `translate(${d.value.drawingArea.left + d.value.slotSize * (o + 1) - d.value.slotSize / 2}, ${d.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}), rotate(${e.value.xyPeriodLabelsRotation})`,
1543
- innerHTML: s(Nt)({
1580
+ transform: `translate(${v.value.drawingArea.left + v.value.slotSize * (l + 1) - v.value.slotSize / 2}, ${v.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}), rotate(${e.value.xyPeriodLabelsRotation})`,
1581
+ innerHTML: s(Bt)({
1544
1582
  content: String(t),
1545
1583
  fontSize: e.value.xyLabelsXFontSize,
1546
1584
  fill: e.value.color,
1547
1585
  x: 0,
1548
1586
  y: 0
1549
1587
  })
1550
- }, null, 8, Yl)) : (l(), n("text", {
1588
+ }, null, 8, lo)) : (o(), n("text", {
1551
1589
  key: 0,
1552
1590
  class: "vue-data-ui-time-label",
1553
1591
  "font-size": e.value.xyLabelsXFontSize,
1554
1592
  "text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
1555
1593
  fill: e.value.color,
1556
- transform: `translate(${d.value.drawingArea.left + d.value.slotSize * (o + 1) - d.value.slotSize / 2}, ${d.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}), rotate(${e.value.xyPeriodLabelsRotation})`
1557
- }, D(t), 9, Gl))
1594
+ transform: `translate(${v.value.drawingArea.left + v.value.slotSize * (l + 1) - v.value.slotSize / 2}, ${v.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}), rotate(${e.value.xyPeriodLabelsRotation})`
1595
+ }, U(t), 9, ao))
1558
1596
  ])) : m("", !0)
1559
1597
  ], 64))), 256))
1560
1598
  ], 512)
1561
1599
  ])) : m("", !0),
1562
- z("g", Zl, [
1563
- (l(!0), n(x, null, T(d.value.dataset, (t, o) => (l(), n(x, null, [
1564
- (l(!0), n(x, null, T(t.coordinates, (u, p) => (l(), n("rect", {
1600
+ C("g", oo, [
1601
+ (o(!0), n(x, null, T(v.value.dataset, (t, l) => (o(), n(x, null, [
1602
+ (o(!0), n(x, null, T(t.coordinates, (u, p) => (o(), n("rect", {
1565
1603
  x: u.x,
1566
1604
  width: u.width <= 0 ? 1e-5 : u.width,
1567
1605
  height: s(ue)(u.height <= 0 ? 1e-5 : u.height),
@@ -1570,35 +1608,35 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
1570
1608
  stroke: e.value.backgroundColor,
1571
1609
  "stroke-width": e.value.barStrokeWidth,
1572
1610
  "stroke-linecap": "round",
1573
- class: de({ "vue-data-ui-bar-animated": e.value.barAnimated && u.value < 0 && !s(U) })
1611
+ class: de({ "vue-data-ui-bar-animated": e.value.barAnimated && u.value < 0 && !s(V) })
1574
1612
  }, [
1575
- e.value.barAnimated && u.value > 0 && !s(Be) && !s(De) ? (l(), n("animate", {
1613
+ e.value.barAnimated && u.value > 0 && !s(Be) && !s(De) ? (o(), n("animate", {
1576
1614
  key: 0,
1577
1615
  attributeName: "height",
1578
1616
  from: 0,
1579
1617
  to: u.height,
1580
1618
  dur: "0.5s"
1581
- }, null, 8, Ql)) : m("", !0),
1582
- e.value.barAnimated && u.value > 0 && !s(Be) && !s(De) ? (l(), n("animate", {
1619
+ }, null, 8, io)) : m("", !0),
1620
+ e.value.barAnimated && u.value > 0 && !s(Be) && !s(De) ? (o(), n("animate", {
1583
1621
  key: 1,
1584
1622
  attributeName: "y",
1585
- from: d.value.absoluteZero,
1586
- to: d.value.absoluteZero - u.height,
1623
+ from: v.value.absoluteZero,
1624
+ to: v.value.absoluteZero - u.height,
1587
1625
  dur: "0.5s"
1588
- }, null, 8, Kl)) : m("", !0)
1589
- ], 10, Jl))), 256))
1626
+ }, null, 8, uo)) : m("", !0)
1627
+ ], 10, no))), 256))
1590
1628
  ], 64))), 256))
1591
1629
  ]),
1592
- e.value.showDataLabels ? (l(), n("g", eo, [
1593
- (l(!0), n(x, null, T(d.value.dataset, (t, o) => (l(), n(x, null, [
1594
- (l(!0), n(x, null, T(t.coordinates, (u, p) => (l(), n("text", {
1630
+ e.value.showDataLabels ? (o(), n("g", ro, [
1631
+ (o(!0), n(x, null, T(v.value.dataset, (t, l) => (o(), n(x, null, [
1632
+ (o(!0), n(x, null, T(t.coordinates, (u, p) => (o(), n("text", {
1595
1633
  x: u.x + u.width / 2,
1596
1634
  y: s(ue)(u.y) - e.value.dataLabelFontSize / 2,
1597
1635
  "text-anchor": "middle",
1598
1636
  "font-size": e.value.dataLabelFontSize,
1599
1637
  fill: t.color,
1600
1638
  class: "quick-animation"
1601
- }, D(s(ie)(
1639
+ }, U(s(ie)(
1602
1640
  e.value.formatter,
1603
1641
  s(ue)(u.value),
1604
1642
  s(G)({
@@ -1608,87 +1646,87 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
1608
1646
  r: e.value.dataLabelRoundingValue
1609
1647
  }),
1610
1648
  { datapoint: u, seriesIndex: p }
1611
- )), 9, to))), 256))
1649
+ )), 9, so))), 256))
1612
1650
  ], 64))), 256))
1613
1651
  ])) : m("", !0),
1614
- Qe.value ? (l(), n("g", ao, [
1615
- (l(!0), n(x, null, T(d.value.extremes.maxSeries, (t, o) => (l(), n("rect", {
1616
- x: d.value.drawingArea.left + o * d.value.slotSize,
1617
- y: d.value.drawingArea.top,
1618
- height: d.value.drawingArea.height <= 0 ? 1e-5 : d.value.drawingArea.height,
1619
- width: d.value.slotSize <= 0 ? 1e-5 : d.value.slotSize,
1620
- fill: [te.value, le.value].includes(o) ? e.value.xyHighlighterColor : "transparent",
1621
- style: N(`opacity:${e.value.xyHighlighterOpacity}`),
1622
- onMouseenter: (u) => d.value.useTooltip(o),
1623
- onMouseleave: (u) => d.value.killTooltip(o),
1624
- onClick: (u) => d.value.selectDatapoint(o)
1625
- }, null, 44, lo))), 256))
1652
+ Ke.value ? (o(), n("g", vo, [
1653
+ (o(!0), n(x, null, T(v.value.extremes.maxSeries, (t, l) => (o(), n("rect", {
1654
+ x: v.value.drawingArea.left + l * v.value.slotSize,
1655
+ y: v.value.drawingArea.top,
1656
+ height: v.value.drawingArea.height <= 0 ? 1e-5 : v.value.drawingArea.height,
1657
+ width: v.value.slotSize <= 0 ? 1e-5 : v.value.slotSize,
1658
+ fill: [te.value, le.value].includes(l) ? e.value.xyHighlighterColor : "transparent",
1659
+ style: B(`opacity:${e.value.xyHighlighterOpacity}`),
1660
+ onMouseenter: (u) => v.value.useTooltip(l),
1661
+ onMouseleave: (u) => v.value.killTooltip(l),
1662
+ onClick: (u) => v.value.selectDatapoint(l)
1663
+ }, null, 44, co))), 256))
1626
1664
  ])) : m("", !0)
1627
1665
  ], 64)) : m("", !0),
1628
- [_.LINE, _.BAR].includes(C.value) ? (l(), n("g", oo, [
1629
- e.value.xAxisLabel && C.value === _.LINE ? (l(), n("g", {
1666
+ [A.LINE, A.BAR].includes($.value) ? (o(), n("g", fo, [
1667
+ e.value.xAxisLabel && $.value === A.LINE ? (o(), n("g", {
1630
1668
  key: 0,
1631
1669
  ref_key: "xAxisLabel",
1632
- ref: mt
1670
+ ref: gt
1633
1671
  }, [
1634
- z("text", {
1672
+ C("text", {
1635
1673
  "font-size": e.value.axisLabelsFontSize,
1636
1674
  fill: e.value.color,
1637
1675
  "text-anchor": "middle",
1638
1676
  x: c.value.drawingArea.left + c.value.drawingArea.width / 2,
1639
1677
  y: S.value.height - e.value.axisLabelsFontSize / 3
1640
- }, D(e.value.xAxisLabel), 9, no)
1678
+ }, U(e.value.xAxisLabel), 9, ho)
1641
1679
  ], 512)) : m("", !0),
1642
- e.value.xAxisLabel && C.value === _.BAR ? (l(), n("g", {
1680
+ e.value.xAxisLabel && $.value === A.BAR ? (o(), n("g", {
1643
1681
  key: 1,
1644
1682
  ref_key: "xAxisLabel",
1645
- ref: mt
1683
+ ref: gt
1646
1684
  }, [
1647
- z("text", {
1685
+ C("text", {
1648
1686
  "font-size": e.value.axisLabelsFontSize,
1649
1687
  fill: e.value.color,
1650
1688
  "text-anchor": "middle",
1651
- x: d.value.drawingArea.left + d.value.drawingArea.width / 2,
1689
+ x: v.value.drawingArea.left + v.value.drawingArea.width / 2,
1652
1690
  y: S.value.height - e.value.axisLabelsFontSize / 3
1653
- }, D(e.value.xAxisLabel), 9, io)
1691
+ }, U(e.value.xAxisLabel), 9, mo)
1654
1692
  ], 512)) : m("", !0),
1655
- e.value.yAxisLabel && C.value === _.LINE ? (l(), n("g", {
1693
+ e.value.yAxisLabel && $.value === A.LINE ? (o(), n("g", {
1656
1694
  key: 2,
1657
1695
  ref_key: "yAxisLabel",
1658
- ref: gt
1696
+ ref: pt
1659
1697
  }, [
1660
- z("text", {
1698
+ C("text", {
1661
1699
  "font-size": e.value.axisLabelsFontSize,
1662
1700
  fill: e.value.color,
1663
1701
  transform: `translate(${e.value.axisLabelsFontSize}, ${c.value.drawingArea.top + c.value.drawingArea.height / 2}) rotate(-90)`,
1664
1702
  "text-anchor": "middle"
1665
- }, D(e.value.yAxisLabel), 9, uo)
1703
+ }, U(e.value.yAxisLabel), 9, go)
1666
1704
  ], 512)) : m("", !0),
1667
- e.value.yAxisLabel && C.value === _.BAR ? (l(), n("g", {
1705
+ e.value.yAxisLabel && $.value === A.BAR ? (o(), n("g", {
1668
1706
  key: 3,
1669
1707
  ref_key: "yAxisLabel",
1670
- ref: gt
1708
+ ref: pt
1671
1709
  }, [
1672
- z("text", {
1710
+ C("text", {
1673
1711
  "font-size": e.value.axisLabelsFontSize,
1674
1712
  fill: e.value.color,
1675
- transform: `translate(${e.value.axisLabelsFontSize}, ${d.value.drawingArea.top + d.value.drawingArea.height / 2}) rotate(-90)`,
1713
+ transform: `translate(${e.value.axisLabelsFontSize}, ${v.value.drawingArea.top + v.value.drawingArea.height / 2}) rotate(-90)`,
1676
1714
  "text-anchor": "middle"
1677
- }, D(e.value.yAxisLabel), 9, ro)
1715
+ }, U(e.value.yAxisLabel), 9, po)
1678
1716
  ], 512)) : m("", !0)
1679
1717
  ])) : m("", !0)
1680
- ], 12, Xa)) : m("", !0),
1681
- a.$slots.watermark ? (l(), n("div", so, [
1718
+ ], 12, el)) : m("", !0),
1719
+ a.$slots.watermark ? (o(), n("div", yo, [
1682
1720
  W(a.$slots, "watermark", me(ge({ isPrinting: s(Be) || s(De) })), void 0, !0)
1683
1721
  ])) : m("", !0),
1684
- [_.BAR, _.LINE].includes(C.value) && e.value.zoomXy && k.value.maxSeriesLength > 1 ? (l(), n("div", {
1722
+ [A.BAR, A.LINE].includes($.value) && e.value.zoomXy && k.value.maxSeriesLength > 1 ? (o(), n("div", {
1685
1723
  key: `slicer_${Fe.value}`,
1686
1724
  ref_key: "quickChartSlicer",
1687
- ref: vt
1725
+ ref: dt
1688
1726
  }, [
1689
- (l(), Ie(Pa, {
1727
+ (o(), Ie(qa, {
1690
1728
  ref_key: "slicerComponent",
1691
- ref: Ct,
1729
+ ref: $t,
1692
1730
  key: `slicer_${Fe.value}`,
1693
1731
  background: e.value.zoomColor,
1694
1732
  borderColor: e.value.backgroundColor,
@@ -1708,7 +1746,7 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
1708
1746
  minimapSelectedColorOpacity: e.value.zoomMinimap.selectedColorOpacity,
1709
1747
  minimapSelectionRadius: e.value.zoomMinimap.selectionRadius,
1710
1748
  minimapLineColor: e.value.zoomMinimap.lineColor,
1711
- minimap: ta.value,
1749
+ minimap: aa.value,
1712
1750
  minimapIndicatorColor: e.value.zoomMinimap.indicatorColor,
1713
1751
  verticalHandles: e.value.zoomMinimap.verticalHandles,
1714
1752
  minimapSelectedIndex: le.value,
@@ -1722,12 +1760,12 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
1722
1760
  enableSelectionDrag: e.value.zoomEnableSelectionDrag,
1723
1761
  minimapCompact: e.value.zoomMinimap.compact,
1724
1762
  minimapMerged: e.value.zoomMinimap.merged,
1725
- allMinimaps: ua.value,
1763
+ allMinimaps: ra.value,
1726
1764
  minimapFrameColor: e.value.zoomMinimap.frameColor,
1727
1765
  focusOnDrag: e.value.zoomFocusOnDrag,
1728
1766
  focusRangeRatio: e.value.zoomFocusRangeRatio,
1729
- onReset: Kt,
1730
- onTrapMouse: Qt
1767
+ onReset: ea,
1768
+ onTrapMouse: Kt
1731
1769
  }, {
1732
1770
  "reset-action": ne(({ reset: t }) => [
1733
1771
  W(a.$slots, "reset-action", me(ge({ reset: t })), void 0, !0)
@@ -1735,42 +1773,42 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
1735
1773
  _: 3
1736
1774
  }, 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", "minimapCompact", "minimapMerged", "allMinimaps", "minimapFrameColor", "focusOnDrag", "focusRangeRatio"]))
1737
1775
  ])) : m("", !0),
1738
- z("div", {
1776
+ C("div", {
1739
1777
  id: `legend-bottom-${Y.value}`
1740
- }, null, 8, vo),
1741
- ht.value ? (l(), Ie(ma, {
1778
+ }, null, 8, xo),
1779
+ mt.value ? (o(), Ie(Sa, {
1742
1780
  key: 7,
1743
1781
  to: e.value.legendPosition === "top" ? `#legend-top-${Y.value}` : `#legend-bottom-${Y.value}`
1744
1782
  }, [
1745
- e.value.showLegend ? (l(), n("div", {
1783
+ e.value.showLegend ? (o(), n("div", {
1746
1784
  key: 0,
1747
1785
  ref_key: "quickChartLegend",
1748
- ref: st,
1786
+ ref: vt,
1749
1787
  class: "vue-ui-quick-chart-legend",
1750
- style: N(`background:transparent;color:${e.value.color}`)
1788
+ style: B(`background:transparent;color:${e.value.color}`)
1751
1789
  }, [
1752
- C.value === _.DONUT ? (l(!0), n(x, { key: 0 }, T(P.value.legend, (t, o) => (l(), n("div", {
1790
+ $.value === A.DONUT ? (o(!0), n(x, { key: 0 }, T(I.value.legend, (t, l) => (o(), n("div", {
1753
1791
  class: "vue-ui-quick-chart-legend-item",
1754
1792
  onClick: (u) => {
1755
- Jt(t, P.value.dataset), pe("selectLegend", t);
1793
+ Qt(t, I.value.dataset), pe("selectLegend", t);
1756
1794
  },
1757
- style: N(`cursor: ${P.value.legend.length > 1 ? "pointer" : "default"}; opacity:${L.value.includes(t.id) ? "0.5" : "1"}`)
1795
+ style: B(`cursor: ${I.value.legend.length > 1 ? "pointer" : "default"}; opacity:${_.value.includes(t.id) ? "0.5" : "1"}`)
1758
1796
  }, [
1759
- e.value.useCustomLegend ? W(a.$slots, "legend", ot({
1797
+ e.value.useCustomLegend ? W(a.$slots, "legend", nt({
1760
1798
  key: 0,
1761
1799
  ref_for: !0
1762
- }, { legend: t }), void 0, !0) : (l(), n(x, { key: 1 }, [
1800
+ }, { legend: t }), void 0, !0) : (o(), n(x, { key: 1 }, [
1763
1801
  be(s(q), {
1764
1802
  name: e.value.legendIcon,
1765
1803
  stroke: t.color,
1766
1804
  size: e.value.legendIconSize
1767
1805
  }, null, 8, ["name", "stroke", "size"]),
1768
- z("span", {
1769
- style: N(`font-size:${e.value.legendFontSize}px`)
1770
- }, D(t.name), 5),
1771
- z("span", {
1772
- style: N(`font-size:${e.value.legendFontSize}px;font-variant-numeric:tabular-nums`)
1773
- }, D(L.value.includes(t.id) ? "-" : s(ie)(
1806
+ C("span", {
1807
+ style: B(`font-size:${e.value.legendFontSize}px`)
1808
+ }, U(t.name), 5),
1809
+ C("span", {
1810
+ style: B(`font-size:${e.value.legendFontSize}px;font-variant-numeric:tabular-nums`)
1811
+ }, U(_.value.includes(t.id) ? "-" : s(ie)(
1774
1812
  e.value.formatter,
1775
1813
  t.absoluteValue,
1776
1814
  s(G)({
@@ -1779,72 +1817,72 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
1779
1817
  s: e.value.valueSuffix,
1780
1818
  r: e.value.dataLabelRoundingValue
1781
1819
  }),
1782
- { datapoint: t, seriesIndex: o }
1820
+ { datapoint: t, seriesIndex: l }
1783
1821
  )), 5),
1784
- L.value.includes(t.id) ? (l(), n("span", {
1822
+ _.value.includes(t.id) ? (o(), n("span", {
1785
1823
  key: 0,
1786
- style: N(`font-size:${e.value.legendFontSize}px`)
1787
- }, " ( - % ) ", 4)) : Ue.value ? (l(), n("span", {
1824
+ style: B(`font-size:${e.value.legendFontSize}px`)
1825
+ }, " ( - % ) ", 4)) : Ue.value ? (o(), n("span", {
1788
1826
  key: 1,
1789
- style: N(`font-size:${e.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
1790
- }, " ( - % ) ", 4)) : (l(), n("span", {
1827
+ style: B(`font-size:${e.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
1828
+ }, " ( - % ) ", 4)) : (o(), n("span", {
1791
1829
  key: 2,
1792
- style: N(`font-size:${e.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
1793
- }, " (" + D(s(G)({
1794
- v: t.value / P.value.total * 100,
1830
+ style: B(`font-size:${e.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
1831
+ }, " (" + U(s(G)({
1832
+ v: t.value / I.value.total * 100,
1795
1833
  s: "%",
1796
1834
  r: e.value.dataLabelRoundingPercentage
1797
1835
  })) + ") ", 5))
1798
1836
  ], 64))
1799
- ], 12, co))), 256)) : m("", !0),
1800
- C.value === _.LINE ? (l(!0), n(x, { key: 1 }, T(c.value.legend, (t, o) => (l(), n("div", {
1837
+ ], 12, ko))), 256)) : m("", !0),
1838
+ $.value === A.LINE ? (o(!0), n(x, { key: 1 }, T(c.value.legend, (t, l) => (o(), n("div", {
1801
1839
  class: "vue-ui-quick-chart-legend-item",
1802
1840
  onClick: (u) => {
1803
1841
  Lt(t.id, c.value.legend.length - 1), pe("selectLegend", t);
1804
1842
  },
1805
- style: N(`cursor: ${c.value.legend.length > 1 ? "pointer" : "default"}; opacity:${L.value.includes(t.id) ? "0.5" : "1"}`)
1843
+ style: B(`cursor: ${c.value.legend.length > 1 ? "pointer" : "default"}; opacity:${_.value.includes(t.id) ? "0.5" : "1"}`)
1806
1844
  }, [
1807
- e.value.useCustomLegend ? W(a.$slots, "legend", ot({
1845
+ e.value.useCustomLegend ? W(a.$slots, "legend", nt({
1808
1846
  key: 0,
1809
1847
  ref_for: !0
1810
- }, { legend: t }), void 0, !0) : (l(), n(x, { key: 1 }, [
1848
+ }, { legend: t }), void 0, !0) : (o(), n(x, { key: 1 }, [
1811
1849
  be(s(q), {
1812
1850
  name: e.value.legendIcon,
1813
1851
  stroke: t.color,
1814
1852
  size: e.value.legendIconSize
1815
1853
  }, null, 8, ["name", "stroke", "size"]),
1816
- z("span", {
1817
- style: N(`font-size:${e.value.legendFontSize}px`)
1818
- }, D(t.name), 5)
1854
+ C("span", {
1855
+ style: B(`font-size:${e.value.legendFontSize}px`)
1856
+ }, U(t.name), 5)
1819
1857
  ], 64))
1820
- ], 12, fo))), 256)) : m("", !0),
1821
- C.value === _.BAR ? (l(!0), n(x, { key: 2 }, T(d.value.legend, (t, o) => (l(), n("div", {
1858
+ ], 12, bo))), 256)) : m("", !0),
1859
+ $.value === A.BAR ? (o(!0), n(x, { key: 2 }, T(v.value.legend, (t, l) => (o(), n("div", {
1822
1860
  class: "vue-ui-quick-chart-legend-item",
1823
1861
  onClick: (u) => {
1824
- Lt(t.id, d.value.legend.length - 1), pe("selectLegend", t);
1862
+ Lt(t.id, v.value.legend.length - 1), pe("selectLegend", t);
1825
1863
  },
1826
- style: N(`cursor: ${d.value.legend.length > 1 ? "pointer" : "default"}; opacity:${L.value.includes(t.id) ? "0.5" : "1"}`)
1864
+ style: B(`cursor: ${v.value.legend.length > 1 ? "pointer" : "default"}; opacity:${_.value.includes(t.id) ? "0.5" : "1"}`)
1827
1865
  }, [
1828
- e.value.useCustomLegend ? W(a.$slots, "legend", ot({
1866
+ e.value.useCustomLegend ? W(a.$slots, "legend", nt({
1829
1867
  key: 0,
1830
1868
  ref_for: !0
1831
- }, { legend: t }), void 0, !0) : (l(), n(x, { key: 1 }, [
1869
+ }, { legend: t }), void 0, !0) : (o(), n(x, { key: 1 }, [
1832
1870
  be(s(q), {
1833
1871
  name: e.value.legendIcon,
1834
1872
  stroke: t.color,
1835
1873
  size: e.value.legendIconSize
1836
1874
  }, null, 8, ["name", "stroke", "size"]),
1837
- z("span", {
1838
- style: N(`font-size:${e.value.legendFontSize}px`)
1839
- }, D(t.name), 5)
1875
+ C("span", {
1876
+ style: B(`font-size:${e.value.legendFontSize}px`)
1877
+ }, U(t.name), 5)
1840
1878
  ], 64))
1841
- ], 12, ho))), 256)) : m("", !0)
1879
+ ], 12, So))), 256)) : m("", !0)
1842
1880
  ], 4)) : m("", !0)
1843
1881
  ], 8, ["to"])) : m("", !0),
1844
- a.$slots.source ? (l(), n("div", {
1882
+ a.$slots.source ? (o(), n("div", {
1845
1883
  key: 8,
1846
1884
  ref_key: "source",
1847
- ref: dt,
1885
+ ref: ct,
1848
1886
  dir: "auto"
1849
1887
  }, [
1850
1888
  W(a.$slots, "source", {}, void 0, !0)
@@ -1877,16 +1915,16 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
1877
1915
  ]),
1878
1916
  _: 3
1879
1917
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "smoothForce", "smoothSnapThreshold", "backdropFilter"]),
1880
- s(U) ? (l(), Ie(Ma, { key: 9 })) : m("", !0)
1881
- ], 46, Ha)) : (l(), n("div", mo, [
1918
+ s(V) ? (o(), Ie(Ra, { key: 9 })) : m("", !0)
1919
+ ], 46, Qa)) : (o(), n("div", wo, [
1882
1920
  be(s(q), {
1883
1921
  name: "circleCancel",
1884
1922
  stroke: "red"
1885
1923
  }),
1886
- r[5] || (r[5] = z("span", null, "Dataset is not processable", -1))
1924
+ r[5] || (r[5] = C("span", null, "Dataset is not processable", -1))
1887
1925
  ]));
1888
1926
  }
1889
- }, Eo = /* @__PURE__ */ Oa(go, [["__scopeId", "data-v-e1378b7e"]]);
1927
+ }, Bo = /* @__PURE__ */ Wa(Ao, [["__scopeId", "data-v-ad4e3d0e"]]);
1890
1928
  export {
1891
- Eo as default
1929
+ Bo as default
1892
1930
  };