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