vue-data-ui 2.4.24 → 2.4.25

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 (150) hide show
  1. package/dist/{Arrow-CTmibgPb.cjs → Arrow-ByXO10pD.cjs} +1 -1
  2. package/dist/{Arrow-9R7QraNV.js → Arrow-DaXXS-Wb.js} +1 -1
  3. package/dist/{BaseIcon-D_vWKdk3.cjs → BaseIcon-BRuFT7-k.cjs} +1 -1
  4. package/dist/{BaseIcon-CQUxE4D0.js → BaseIcon-D3twU60H.js} +1 -1
  5. package/dist/{DataTable-DN4NMcy_.js → DataTable-D8fcY_sJ.js} +2 -2
  6. package/dist/{DataTable-ClN04OBE.cjs → DataTable-DFdNUfRe.cjs} +1 -1
  7. package/dist/{Legend-CNAQN1JM.js → Legend-BorSDXCj.js} +1 -1
  8. package/dist/{Legend-BdjYa7o4.cjs → Legend-DZAy6K3t.cjs} +1 -1
  9. package/dist/{PackageVersion-BReu3g8_.cjs → PackageVersion-C2anu38L.cjs} +1 -1
  10. package/dist/{PackageVersion-DFzNvc8X.js → PackageVersion-mSsg8dpu.js} +1 -1
  11. package/dist/{PenAndPaper-C9MBduiw.cjs → PenAndPaper-DKSbeuss.cjs} +1 -1
  12. package/dist/{PenAndPaper-BQ4Vfc7S.js → PenAndPaper-Dk41ZrJ0.js} +3 -3
  13. package/dist/{Shape-YbAlN6X4.js → Shape-DYFnvMNd.js} +1 -1
  14. package/dist/{Shape-mLeYDFcS.cjs → Shape-bmo_-9LU.cjs} +1 -1
  15. package/dist/{Slicer-DvFk8kZE.js → Slicer-BLQZ4Fne.js} +2 -2
  16. package/dist/{Slicer-DAnwJuA4.cjs → Slicer-BME5LXma.cjs} +1 -1
  17. package/dist/{Title-hDWoW1x0.cjs → Title-Dm2GAV04.cjs} +1 -1
  18. package/dist/{Title-DdrRlJjz.js → Title-DyD-mBPN.js} +1 -1
  19. package/dist/{Tooltip-CLz1sK2U.cjs → Tooltip-CcZzx8f8.cjs} +1 -1
  20. package/dist/{Tooltip-DZnNOyXe.js → Tooltip-qod9o4Vz.js} +1 -1
  21. package/dist/{index-DNpWvHMv.js → index-BICsqKzz.js} +4 -2
  22. package/dist/index-CLWrZGbv.cjs +9 -0
  23. package/dist/style.css +1 -1
  24. package/dist/types/vue-data-ui.d.cts +1 -0
  25. package/dist/types/vue-data-ui.d.ts +1 -0
  26. package/dist/{useNestedProp-DCPT4jkz.js → useNestedProp-BxrcwmTZ.js} +1 -1
  27. package/dist/{useNestedProp-BhXCOMBU.cjs → useNestedProp-bUwthiZ4.cjs} +1 -1
  28. package/dist/{usePrinter-Tcpg1Xq_.js → usePrinter-CLcxWv-4.js} +1 -1
  29. package/dist/{usePrinter-DA6eJ-d8.cjs → usePrinter-D_-LKcci.cjs} +1 -1
  30. package/dist/{vue-data-ui-z1BPTu-V.js → vue-data-ui-DF7u-eZV.js} +58 -58
  31. package/dist/{vue-data-ui-xS2yvUZ2.cjs → vue-data-ui-DFh0GmXI.cjs} +1 -1
  32. package/dist/vue-data-ui.cjs +1 -1
  33. package/dist/vue-data-ui.js +1 -1
  34. package/dist/{vue-ui-3d-bar-D3TdYgOP.js → vue-ui-3d-bar-BDVAkP4Z.js} +9 -9
  35. package/dist/{vue-ui-3d-bar-CK1sjoUi.cjs → vue-ui-3d-bar-BtfayTxG.cjs} +1 -1
  36. package/dist/{vue-ui-accordion-BKaHbGc7.cjs → vue-ui-accordion-BCBC5X2n.cjs} +1 -1
  37. package/dist/{vue-ui-accordion-BZUQ-qHe.js → vue-ui-accordion-m8rut1bP.js} +3 -3
  38. package/dist/{vue-ui-age-pyramid-6gZ1ApV3.cjs → vue-ui-age-pyramid-71PgCBF6.cjs} +1 -1
  39. package/dist/{vue-ui-age-pyramid-B1KI1HfD.js → vue-ui-age-pyramid-DTYLss6w.js} +10 -10
  40. package/dist/{vue-ui-annotator-BjiXyrZQ.cjs → vue-ui-annotator-DKveFO8S.cjs} +1 -1
  41. package/dist/{vue-ui-annotator-CdsFcctQ.js → vue-ui-annotator-WjNfGCba.js} +1 -1
  42. package/dist/{vue-ui-bullet-DzZoOmWT.js → vue-ui-bullet-BaN07Yto.js} +8 -8
  43. package/dist/{vue-ui-bullet-lRr8AGvu.cjs → vue-ui-bullet-D-QKgdGT.cjs} +1 -1
  44. package/dist/{vue-ui-candlestick-sQ9OuT8L.cjs → vue-ui-candlestick-9MfQ-DXp.cjs} +1 -1
  45. package/dist/{vue-ui-candlestick-DUZ1v_V2.js → vue-ui-candlestick-CEXWukDl.js} +11 -11
  46. package/dist/{vue-ui-carousel-table-B3754KOr.js → vue-ui-carousel-table-DwPPz25F.js} +4 -4
  47. package/dist/{vue-ui-carousel-table-sfpNsFFM.cjs → vue-ui-carousel-table-bHyWXhUR.cjs} +1 -1
  48. package/dist/{vue-ui-chestnut-CrLkWFiA.cjs → vue-ui-chestnut-BgQsSFpo.cjs} +1 -1
  49. package/dist/{vue-ui-chestnut-Bj8iuxME.js → vue-ui-chestnut-UVDUlA26.js} +8 -8
  50. package/dist/{vue-ui-cursor-olMTBc3h.cjs → vue-ui-cursor-B5N8-2TC.cjs} +1 -1
  51. package/dist/{vue-ui-cursor-BeDbdiQ_.js → vue-ui-cursor-DwJ_3OeD.js} +2 -2
  52. package/dist/{vue-ui-dashboard-Cl0-ES43.cjs → vue-ui-dashboard-DHMq8KDe.cjs} +1 -1
  53. package/dist/{vue-ui-dashboard-_x3uCh6v.js → vue-ui-dashboard-Dlnt37bU.js} +2 -2
  54. package/dist/{vue-ui-digits-51QHU1dt.cjs → vue-ui-digits-CLw0UlLM.cjs} +1 -1
  55. package/dist/{vue-ui-digits-B2XiXAlb.js → vue-ui-digits-d5q7aYEB.js} +2 -2
  56. package/dist/{vue-ui-donut-vHW8U7Yo.cjs → vue-ui-donut-CeNCKLSe.cjs} +1 -1
  57. package/dist/{vue-ui-donut-evolution-BYZ-0q-Q.cjs → vue-ui-donut-evolution-CfPcjjnn.cjs} +1 -1
  58. package/dist/{vue-ui-donut-evolution-BWI37PoD.js → vue-ui-donut-evolution-H2_TlrF2.js} +11 -11
  59. package/dist/{vue-ui-donut-BScgLfCs.js → vue-ui-donut-nuCiumWN.js} +11 -11
  60. package/dist/{vue-ui-dumbbell-s09CyK69.js → vue-ui-dumbbell--qD2MDbF.js} +10 -10
  61. package/dist/{vue-ui-dumbbell-3Eitchg8.cjs → vue-ui-dumbbell-hSPyK3qm.cjs} +1 -1
  62. package/dist/{vue-ui-flow-B1Rt8LLH.js → vue-ui-flow-CgcUEWmx.js} +9 -9
  63. package/dist/{vue-ui-flow-Oc6Zl5gy.cjs → vue-ui-flow-Cp154Fpn.cjs} +1 -1
  64. package/dist/{vue-ui-galaxy-DtDk3bvA.js → vue-ui-galaxy-CNuslpHY.js} +11 -11
  65. package/dist/{vue-ui-galaxy-DIg1SS4W.cjs → vue-ui-galaxy-CVRruPO1.cjs} +1 -1
  66. package/dist/{vue-ui-gauge-BY33zNrL.cjs → vue-ui-gauge-BdEZP0P9.cjs} +1 -1
  67. package/dist/{vue-ui-gauge-CqDYHzxD.js → vue-ui-gauge-BlfbiQ2E.js} +7 -7
  68. package/dist/{vue-ui-gizmo-C0wcIOIv.js → vue-ui-gizmo-CKbSLvuP.js} +3 -3
  69. package/dist/{vue-ui-gizmo-NhgqjNTn.cjs → vue-ui-gizmo-D7ANYpNx.cjs} +1 -1
  70. package/dist/{vue-ui-heatmap-C7_6hfx_.cjs → vue-ui-heatmap-DCTdqUIX.cjs} +1 -1
  71. package/dist/{vue-ui-heatmap-AqYgted0.js → vue-ui-heatmap-DeV-Tkf2.js} +10 -10
  72. package/dist/{vue-ui-kpi-DlqjCSOa.cjs → vue-ui-kpi-BQMwef0E.cjs} +1 -1
  73. package/dist/{vue-ui-kpi-C00uVM5q.js → vue-ui-kpi-BS6Q-H3p.js} +3 -3
  74. package/dist/{vue-ui-mini-loader-CMxB6-7I.js → vue-ui-mini-loader-1hfptP8p.js} +2 -2
  75. package/dist/{vue-ui-mini-loader-34x62P6H.cjs → vue-ui-mini-loader-BkB2IKcd.cjs} +1 -1
  76. package/dist/{vue-ui-molecule-CUo3NiTx.js → vue-ui-molecule-9nYN6FWk.js} +11 -11
  77. package/dist/{vue-ui-molecule-DX26Q_UW.cjs → vue-ui-molecule-BSfmIrIV.cjs} +1 -1
  78. package/dist/{vue-ui-mood-radar-B48X5fUo.js → vue-ui-mood-radar-CdhoXPjB.js} +11 -11
  79. package/dist/{vue-ui-mood-radar-BnP66ZkN.cjs → vue-ui-mood-radar-DmxG3SpA.cjs} +1 -1
  80. package/dist/{vue-ui-nested-donuts-BB8An9kQ.cjs → vue-ui-nested-donuts-BVDpwaOw.cjs} +1 -1
  81. package/dist/{vue-ui-nested-donuts-BYC1kE3-.js → vue-ui-nested-donuts-DHn5JPVa.js} +11 -11
  82. package/dist/{vue-ui-onion-C_5HEmVo.js → vue-ui-onion-Dn2beWtO.js} +11 -11
  83. package/dist/{vue-ui-onion-CaiK6TJx.cjs → vue-ui-onion-DpRHbEWN.cjs} +1 -1
  84. package/dist/{vue-ui-parallel-coordinate-plot-0V4h_rBl.cjs → vue-ui-parallel-coordinate-plot-CU0tOs-u.cjs} +1 -1
  85. package/dist/{vue-ui-parallel-coordinate-plot-BcMVYdY3.js → vue-ui-parallel-coordinate-plot-yq09af0J.js} +12 -12
  86. package/dist/{vue-ui-quadrant--F2x6TBI.cjs → vue-ui-quadrant-71OHEVEh.cjs} +1 -1
  87. package/dist/{vue-ui-quadrant-gF4piFaT.js → vue-ui-quadrant-DzwXd881.js} +12 -12
  88. package/dist/{vue-ui-quick-chart-BFO5nlxt.js → vue-ui-quick-chart-BF7xqf0f.js} +9 -9
  89. package/dist/{vue-ui-quick-chart-Cmm4grEJ.cjs → vue-ui-quick-chart-Pt-8uXit.cjs} +1 -1
  90. package/dist/{vue-ui-radar-DLAHJPYl.cjs → vue-ui-radar-Buv9DMRa.cjs} +1 -1
  91. package/dist/{vue-ui-radar-C3oGJqRO.js → vue-ui-radar-DOmOWd_A.js} +12 -12
  92. package/dist/{vue-ui-rating-wWlA8aGu.js → vue-ui-rating-CQrrI3Mx.js} +2 -2
  93. package/dist/{vue-ui-rating-DDPmcwLh.cjs → vue-ui-rating-DiAqIvDv.cjs} +1 -1
  94. package/dist/{vue-ui-relation-circle-CN76qQMx.cjs → vue-ui-relation-circle-CxOgNn5_.cjs} +1 -1
  95. package/dist/{vue-ui-relation-circle-CtnRCd-D.js → vue-ui-relation-circle-Sb7Nyb8W.js} +7 -7
  96. package/dist/{vue-ui-rings-Jjb3Hb_c.js → vue-ui-rings-BrdbD7PJ.js} +11 -11
  97. package/dist/{vue-ui-rings-BzmG-1wd.cjs → vue-ui-rings-Cm5q10II.cjs} +1 -1
  98. package/dist/{vue-ui-scatter-CDcO_SRL.js → vue-ui-scatter-D5q2EE4b.js} +12 -12
  99. package/dist/{vue-ui-scatter-DwvgXKwS.cjs → vue-ui-scatter-ngmt8UB9.cjs} +1 -1
  100. package/dist/{vue-ui-screenshot-CMSHN3Kq.cjs → vue-ui-screenshot-B6zLJRHR.cjs} +1 -1
  101. package/dist/{vue-ui-screenshot-x7d584sf.js → vue-ui-screenshot-Jf_CuPtB.js} +1 -1
  102. package/dist/{vue-ui-skeleton-8EAYuqbl.cjs → vue-ui-skeleton-CEeXInMi.cjs} +1 -1
  103. package/dist/{vue-ui-skeleton-pdfgn69e.js → vue-ui-skeleton-Dgzcn3FL.js} +3 -3
  104. package/dist/{vue-ui-smiley-DBkSG5cV.js → vue-ui-smiley-BAclx6KJ.js} +2 -2
  105. package/dist/{vue-ui-smiley-Dz5qeDJY.cjs → vue-ui-smiley-JwYaXNnm.cjs} +1 -1
  106. package/dist/{vue-ui-spark-trend-Pw2ApGpF.js → vue-ui-spark-trend-BIGVUzmd.js} +5 -5
  107. package/dist/{vue-ui-spark-trend-QvfiA4OU.cjs → vue-ui-spark-trend-_QrAMYgz.cjs} +1 -1
  108. package/dist/{vue-ui-sparkbar-48yoWNM1.cjs → vue-ui-sparkbar-DhfJlpfY.cjs} +1 -1
  109. package/dist/{vue-ui-sparkbar-Cj4xrmUI.js → vue-ui-sparkbar-OZC6iwJ4.js} +4 -4
  110. package/dist/{vue-ui-sparkgauge-DXQSkM_S.js → vue-ui-sparkgauge-8Tv-j1T9.js} +4 -4
  111. package/dist/{vue-ui-sparkgauge-sb5_grfL.cjs → vue-ui-sparkgauge-DEPvmH2r.cjs} +1 -1
  112. package/dist/{vue-ui-sparkhistogram-CKAF5W5v.js → vue-ui-sparkhistogram-BNILlxcX.js} +5 -5
  113. package/dist/{vue-ui-sparkhistogram-B58h2Zbw.cjs → vue-ui-sparkhistogram-DAbQdCGz.cjs} +1 -1
  114. package/dist/{vue-ui-sparkline-DSjLFYon.js → vue-ui-sparkline-B0BJFHMi.js} +4 -4
  115. package/dist/{vue-ui-sparkline-oLYUoDR1.cjs → vue-ui-sparkline-XUWsqlUN.cjs} +1 -1
  116. package/dist/{vue-ui-sparkstackbar-VJKqaZ-e.js → vue-ui-sparkstackbar-BB-MOwPO.js} +5 -5
  117. package/dist/{vue-ui-sparkstackbar-BJwck6a7.cjs → vue-ui-sparkstackbar-DiyZJ8wv.cjs} +1 -1
  118. package/dist/{vue-ui-stackbar-CeM-EW_p.cjs → vue-ui-stackbar-BqX7ZucO.cjs} +1 -1
  119. package/dist/{vue-ui-stackbar-Bo0yKeyV.js → vue-ui-stackbar-DT_TRXc4.js} +12 -12
  120. package/dist/{vue-ui-strip-plot-B7TECT_l.js → vue-ui-strip-plot-Bn4z9RH8.js} +11 -11
  121. package/dist/{vue-ui-strip-plot-BehocVOu.cjs → vue-ui-strip-plot-DiiGkNc9.cjs} +1 -1
  122. package/dist/{vue-ui-table-GVF0S5Ry.cjs → vue-ui-table-9xjGzylw.cjs} +1 -1
  123. package/dist/{vue-ui-table-D2EOoNwN.js → vue-ui-table-BERyvvqz.js} +1 -1
  124. package/dist/{vue-ui-table-heatmap-jlcKc0Ws.cjs → vue-ui-table-heatmap-CNWh58QC.cjs} +1 -1
  125. package/dist/{vue-ui-table-heatmap-BNWIkOv9.js → vue-ui-table-heatmap-tduub4CZ.js} +4 -4
  126. package/dist/{vue-ui-table-sparkline-CZHIhrJE.cjs → vue-ui-table-sparkline-COsvxl8Z.cjs} +1 -1
  127. package/dist/{vue-ui-table-sparkline-BDWWC7zT.js → vue-ui-table-sparkline-DirFLTCn.js} +5 -5
  128. package/dist/{vue-ui-thermometer-DnRAOGzE.cjs → vue-ui-thermometer-Bp8DH03h.cjs} +1 -1
  129. package/dist/{vue-ui-thermometer-DpdmV84i.js → vue-ui-thermometer-aj7L5dYo.js} +7 -7
  130. package/dist/{vue-ui-timer-ClEy78ag.js → vue-ui-timer-BxdADUyO.js} +5 -5
  131. package/dist/{vue-ui-timer-Dqz_JqG8.cjs → vue-ui-timer-CFLSCgHD.cjs} +1 -1
  132. package/dist/{vue-ui-tiremarks-BVC-dJW2.js → vue-ui-tiremarks-CEfNdN2Z.js} +7 -7
  133. package/dist/{vue-ui-tiremarks-aziTOe35.cjs → vue-ui-tiremarks-swIZAkBk.cjs} +1 -1
  134. package/dist/{vue-ui-treemap-ey3O_EM_.cjs → vue-ui-treemap-TA_t2X-T.cjs} +1 -1
  135. package/dist/{vue-ui-treemap-izyqRSO4.js → vue-ui-treemap-XADmrlur.js} +11 -11
  136. package/dist/{vue-ui-vertical-bar-DkRLKkh9.js → vue-ui-vertical-bar-BxZxWXPp.js} +11 -11
  137. package/dist/{vue-ui-vertical-bar-3ahimUet.cjs → vue-ui-vertical-bar-DpX4MZOk.cjs} +1 -1
  138. package/dist/{vue-ui-waffle-BP9klXeX.js → vue-ui-waffle-D5fVZhj1.js} +11 -11
  139. package/dist/{vue-ui-waffle-uQGjZTgi.cjs → vue-ui-waffle-u71f2gDj.cjs} +1 -1
  140. package/dist/{vue-ui-wheel-BvhwRXPd.js → vue-ui-wheel-DeJIQNQo.js} +7 -7
  141. package/dist/{vue-ui-wheel-CYFdZRVV.cjs → vue-ui-wheel-OcDfmU6G.cjs} +1 -1
  142. package/dist/{vue-ui-word-cloud-QVQUaIdb.js → vue-ui-word-cloud-C8RX9zpp.js} +10 -10
  143. package/dist/{vue-ui-word-cloud-DUWtk6YK.cjs → vue-ui-word-cloud-CqMxlLQ5.cjs} +1 -1
  144. package/dist/{vue-ui-xy-DApUlxLq.js → vue-ui-xy-C-IsoZnw.js} +14 -14
  145. package/dist/{vue-ui-xy-DF-M-Idj.cjs → vue-ui-xy-YFzX3F_Z.cjs} +1 -1
  146. package/dist/vue-ui-xy-canvas-DHCbEqpJ.cjs +9 -0
  147. package/dist/{vue-ui-xy-canvas-DHLXo1fA.js → vue-ui-xy-canvas-RMsnzPnE.js} +268 -238
  148. package/package.json +1 -1
  149. package/dist/index-Yx-Iy-n8.cjs +0 -9
  150. package/dist/vue-ui-xy-canvas-Cw8ymUpz.cjs +0 -9
@@ -1,16 +1,16 @@
1
- import { ref as v, computed as b, watch as A, onMounted as La, onBeforeUnmount as ka, openBlock as w, createElementBlock as q, normalizeStyle as J, normalizeClass as Ca, createBlock as F, createCommentVNode as _, unref as D, createSlots as wa, withCtx as m, renderSlot as x, normalizeProps as B, guardReactiveProps as X, createElementVNode as K, createVNode as Sa, toDisplayString as Ve, createTextVNode as $a } from "vue";
2
- import { u as za, c as Ta, t as Ma, a as Ra, p as H, M as je, b as Ia, C as xe, i as Q, f as ee, Y as Oa, I as Pa, d as qe, a2 as Fa, o as Ea, e as Na, x as Je, y as Aa, q as _a, r as Da, s as ae, l as Ha } from "./index-DNpWvHMv.js";
3
- import { d as Wa, c as Ya, a as Ke, t as Ba, l as S, r as Le, b as E, p as Qe, u as Xa } from "./useResponsive-CoxXLe23.js";
4
- import { _ as Ua } from "./Tooltip-DZnNOyXe.js";
5
- import { L as Za } from "./Legend-CNAQN1JM.js";
6
- import { _ as Ga } from "./Title-DdrRlJjz.js";
7
- import { S as Va } from "./Slicer-DvFk8kZE.js";
8
- import { u as ja, U as qa } from "./usePrinter-Tcpg1Xq_.js";
9
- import Ja from "./vue-ui-accordion-BZUQ-qHe.js";
10
- import { D as Ka } from "./DataTable-DN4NMcy_.js";
11
- import Qa from "./vue-ui-skeleton-pdfgn69e.js";
12
- import { u as ea } from "./useNestedProp-DCPT4jkz.js";
13
- import { P as el } from "./PenAndPaper-BQ4Vfc7S.js";
1
+ import { ref as v, computed as b, watch as A, onMounted as La, onBeforeUnmount as ka, openBlock as S, createElementBlock as q, normalizeStyle as J, normalizeClass as Ca, createBlock as F, createCommentVNode as _, unref as D, createSlots as wa, withCtx as m, renderSlot as x, normalizeProps as Y, guardReactiveProps as B, createElementVNode as K, createVNode as Sa, toDisplayString as Ve, createTextVNode as $a } from "vue";
2
+ import { u as za, c as Ma, t as Ta, a as Ra, p as H, M as je, b as Oa, C as xe, i as Q, f as ee, Y as Ia, I as Pa, d as qe, a2 as Fa, o as Ea, e as Na, x as Je, y as Aa, q as _a, r as Da, s as ae, l as Ha } from "./index-BICsqKzz.js";
3
+ import { d as Wa, c as Xa, a as Ke, t as Ya, l as L, r as Le, b as E, p as Qe, u as Ba } from "./useResponsive-CoxXLe23.js";
4
+ import { _ as Ua } from "./Tooltip-qod9o4Vz.js";
5
+ import { L as Za } from "./Legend-BorSDXCj.js";
6
+ import { _ as Ga } from "./Title-DyD-mBPN.js";
7
+ import { S as Va } from "./Slicer-BLQZ4Fne.js";
8
+ import { u as ja, U as qa } from "./usePrinter-CLcxWv-4.js";
9
+ import Ja from "./vue-ui-accordion-m8rut1bP.js";
10
+ import { D as Ka } from "./DataTable-D8fcY_sJ.js";
11
+ import Qa from "./vue-ui-skeleton-Dgzcn3FL.js";
12
+ import { u as ea } from "./useNestedProp-BxrcwmTZ.js";
13
+ import { P as el } from "./PenAndPaper-Dk41ZrJ0.js";
14
14
  import { _ as al } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
15
  const ll = ["id"], tl = ["onClick"], ol = {
16
16
  key: 2,
@@ -33,30 +33,30 @@ const ll = ["id"], tl = ["onClick"], ol = {
33
33
  },
34
34
  emits: ["selectLegend"],
35
35
  setup(ke, { expose: aa, emit: la }) {
36
- const L = ke, { vue_ui_xy_canvas: ta } = za(), ie = v(Ta()), U = v(null), z = v(null), Z = v(null), s = v(null), f = v(1), R = v(1), le = v(!1), d = v(null), te = v(""), Ce = v(null), $ = v([]), W = v(1), N = v(!0), T = v(!0), ve = v(null), we = v(0), Se = v(0), ce = v(!1), $e = v(null), ze = v(null), Te = v(null), Me = v(null), de = v(0), he = v(0), fe = v(0), ye = b(() => !!L.dataset && L.dataset.length), a = b({
36
+ const k = ke, { vue_ui_xy_canvas: ta } = za(), ie = v(Ma()), U = v(null), z = v(null), Z = v(null), s = v(null), y = v(1), R = v(1), le = v(!1), d = v(null), te = v(""), Ce = v(null), $ = v([]), W = v(1), N = v(!0), M = v(!0), ve = v(null), we = v(0), Se = v(0), ce = v(!1), $e = v(null), ze = v(null), Me = v(null), Te = v(null), de = v(0), he = v(0), ye = v(0), fe = b(() => !!k.dataset && k.dataset.length), a = b({
37
37
  get: () => Re(),
38
38
  set: (e) => e
39
39
  });
40
40
  function Re() {
41
41
  const e = ea({
42
- userConfig: L.config,
42
+ userConfig: k.config,
43
43
  defaultConfig: ta
44
44
  });
45
- let l = {};
46
- return e.theme ? l = {
45
+ let t = {};
46
+ return e.theme ? t = {
47
47
  ...ea({
48
- userConfig: Ma.vue_ui_xy_canvas[e.theme] || L.config,
48
+ userConfig: Ta.vue_ui_xy_canvas[e.theme] || k.config,
49
49
  defaultConfig: e
50
50
  }),
51
51
  customPalette: Ra[e.theme] || H
52
- } : l = e, L.config && je(L.config, "style.chart.scale.min") ? l.style.chart.scale.min = L.config.style.chart.scale.min : l.style.chart.scale.min = null, L.config && je(L.config, "style.chart.scale.max") ? l.style.chart.scale.max = L.config.style.chart.scale.max : l.style.chart.scale.max = null, l;
52
+ } : t = e, k.config && je(k.config, "style.chart.scale.min") ? t.style.chart.scale.min = k.config.style.chart.scale.min : t.style.chart.scale.min = null, k.config && je(k.config, "style.chart.scale.max") ? t.style.chart.scale.max = k.config.style.chart.scale.max : t.style.chart.scale.max = null, t;
53
53
  }
54
- A(() => L.config, (e) => {
55
- a.value = Re(), pe(), de.value += 1, he.value += 1, fe.value += 1;
56
- }, { deep: !0 }), A(() => L.dataset, () => {
57
- pe(), de.value += 1, he.value += 1, fe.value += 1;
54
+ A(() => k.config, (e) => {
55
+ a.value = Re(), pe(), de.value += 1, he.value += 1, ye.value += 1;
56
+ }, { deep: !0 }), A(() => k.dataset, () => {
57
+ pe(), de.value += 1, he.value += 1, ye.value += 1;
58
58
  }, { deep: !0 });
59
- const Ie = v(a.value.style.chart.aspectRatio), { isPrinting: Oe, isImaging: Pe, generatePdf: Fe, generateImage: Ee } = ja({
59
+ const Oe = v(a.value.style.chart.aspectRatio), { isPrinting: Ie, isImaging: Pe, generatePdf: Fe, generateImage: Ee } = ja({
60
60
  elementId: `xy_canvas_${ie.value}`,
61
61
  fileName: a.value.style.chart.title.text || "vue-ui-xy-canvas"
62
62
  }), u = v({
@@ -68,48 +68,48 @@ const ll = ["id"], tl = ["onClick"], ol = {
68
68
  function oa(e) {
69
69
  ce.value = e, Se.value += 1;
70
70
  }
71
- const Ne = b(() => Ia(a.value.customPalette)), I = b(() => Y.value ? Math.max(...Y.value.filter((e, l) => !$.value.includes(e.absoluteIndex)).map((e) => e.series.length)) : 0), t = b(() => {
72
- const e = f.value - f.value * (a.value.style.chart.paddingProportions.left + a.value.style.chart.paddingProportions.right);
71
+ const Ne = b(() => Oa(a.value.customPalette)), O = b(() => X.value ? Math.max(...X.value.filter((e, t) => !$.value.includes(e.absoluteIndex)).map((e) => e.series.length)) : 0), l = b(() => {
72
+ const e = y.value - y.value * (a.value.style.chart.paddingProportions.left + a.value.style.chart.paddingProportions.right);
73
73
  return {
74
- canvasWidth: f.value,
74
+ canvasWidth: y.value,
75
75
  canvasHeight: R.value,
76
- left: f.value * a.value.style.chart.paddingProportions.left,
76
+ left: y.value * a.value.style.chart.paddingProportions.left,
77
77
  top: R.value * a.value.style.chart.paddingProportions.top,
78
- right: f.value - f.value * a.value.style.chart.paddingProportions.right,
78
+ right: y.value - y.value * a.value.style.chart.paddingProportions.right,
79
79
  bottom: R.value - R.value * a.value.style.chart.paddingProportions.bottom,
80
80
  width: e,
81
81
  height: R.value - R.value * (a.value.style.chart.paddingProportions.top + a.value.style.chart.paddingProportions.bottom),
82
82
  slot: e / (r.value.end - r.value.start)
83
83
  };
84
84
  });
85
- function Ae(e, l) {
86
- return e / l;
85
+ function Ae(e, t) {
86
+ return e / t;
87
87
  }
88
- function ra({ hasAutoScale: e, series: l, min: o, max: i, scale: c, yOffset: y, individualHeight: n, stackIndex: g = null }) {
89
- return l.map((C, be) => {
90
- const M = c.min < 0 ? Math.abs(c.min) : 0, O = Ae(C + M, M + c.max);
88
+ function ra({ hasAutoScale: e, series: t, min: o, max: i, scale: c, yOffset: f, individualHeight: n, stackIndex: g = null }) {
89
+ return t.map((w, be) => {
90
+ const T = c.min < 0 ? Math.abs(c.min) : 0, I = Ae(w + T, T + c.max);
91
91
  let P, G;
92
- e && (P = Math.abs(c.min), G = Ae(C + P, c.max + P));
92
+ e && (P = Math.abs(c.min), G = Ae(w + P, c.max + P));
93
93
  let V = 0;
94
- return g === null ? V = t.value.bottom - t.value.height * (e ? G : O) : V = t.value.bottom - y - n * (e ? G : O), {
95
- x: t.value.left + t.value.slot * be + t.value.slot / 2,
94
+ return g === null ? V = l.value.bottom - l.value.height * (e ? G : I) : V = l.value.bottom - f - n * (e ? G : I), {
95
+ x: l.value.left + l.value.slot * be + l.value.slot / 2,
96
96
  y: V,
97
- value: C
97
+ value: w
98
98
  };
99
99
  });
100
100
  }
101
101
  const p = b(() => {
102
- const e = a.value.style.chart.scale.min !== null ? a.value.style.chart.scale.min : Math.min(...Y.value.filter((n, g) => !$.value.includes(n.absoluteIndex)).flatMap((n) => n.series.slice(r.value.start, r.value.end))), l = a.value.style.chart.scale.max !== null ? a.value.style.chart.scale.max : Math.max(...Y.value.filter((n, g) => !$.value.includes(n.absoluteIndex)).flatMap((n) => n.series.slice(r.value.start, r.value.end))), o = xe(e < 0 ? e : 0, l === e ? e + 1 < 0 ? 0 : e + 1 : l < 0 ? 0 : l, a.value.style.chart.scale.ticks), i = o.min < 0 ? Math.abs(o.min) : 0, c = t.value.bottom - t.value.height * (i / (o.max + i)), y = o.ticks.map((n) => ({
103
- y: t.value.bottom - t.value.height * ((n + i) / (o.max + i)),
104
- x: t.value.left - 8,
102
+ const e = a.value.style.chart.scale.min !== null ? a.value.style.chart.scale.min : Math.min(...X.value.filter((n, g) => !$.value.includes(n.absoluteIndex)).flatMap((n) => n.series.slice(r.value.start, r.value.end))), t = a.value.style.chart.scale.max !== null ? a.value.style.chart.scale.max : Math.max(...X.value.filter((n, g) => !$.value.includes(n.absoluteIndex)).flatMap((n) => n.series.slice(r.value.start, r.value.end))), o = xe(e < 0 ? e : 0, t === e ? e + 1 < 0 ? 0 : e + 1 : t < 0 ? 0 : t, a.value.style.chart.scale.ticks), i = o.min < 0 ? Math.abs(o.min) : 0, c = l.value.bottom - l.value.height * (i / (o.max + i)), f = o.ticks.map((n) => ({
103
+ y: l.value.bottom - l.value.height * ((n + i) / (o.max + i)),
104
+ x: l.value.left - 8,
105
105
  value: n
106
106
  }));
107
107
  return {
108
108
  absoluteMin: i,
109
- max: l,
109
+ max: t,
110
110
  min: e,
111
111
  scale: o,
112
- yLabels: y,
112
+ yLabels: f,
113
113
  zero: c
114
114
  };
115
115
  }), ua = b(() => h.value.map((e) => `
@@ -130,37 +130,37 @@ const ll = ["id"], tl = ["onClick"], ol = {
130
130
  { datapoint: e, seriesIndex: d.value }
131
131
  )}</span>
132
132
  </div>
133
- `)), Y = b(() => L.dataset.map((e, l) => ({
133
+ `)), X = b(() => k.dataset.map((e, t) => ({
134
134
  ...e,
135
- series: Oa({
135
+ series: Ia({
136
136
  data: Pa(e.series),
137
137
  threshold: a.value.downsample.threshold
138
138
  }),
139
- absoluteIndex: l,
140
- color: qe(e.color || Ne.value[l] || H[l] || H[l % H.length])
139
+ absoluteIndex: t,
140
+ color: qe(e.color || Ne.value[t] || H[t] || H[t % H.length])
141
141
  })));
142
- A(I, (e) => {
142
+ A(O, (e) => {
143
143
  e && _e();
144
144
  });
145
- const h = b(() => Fa(Y.value.filter((e, l) => !$.value.includes(e.absoluteIndex))).map((e, l) => ({
145
+ const h = b(() => Fa(X.value.filter((e, t) => !$.value.includes(e.absoluteIndex))).map((e, t) => ({
146
146
  ...e,
147
147
  series: e.series.slice(r.value.start, r.value.end)
148
- })).map((e, l) => {
148
+ })).map((e, t) => {
149
149
  let o = [null, void 0].includes(e.scaleMin) ? Math.min(...e.series) || 0 : e.scaleMin, i = [null, void 0].includes(e.scaleMax) ? Math.max(...e.series) || 1 : e.scaleMax;
150
150
  o === i && (o = o >= 0 ? i - 1 : o, i = i >= 0 ? i : o + 1);
151
- const y = {
151
+ const f = {
152
152
  ratios: e.series.filter((j) => ![null, void 0].includes(j)).map((j) => (j - o) / (i - o)),
153
153
  valueMin: o,
154
154
  valueMax: i
155
155
  }, n = e.scaleSteps || a.value.style.chart.scale.ticks;
156
156
  let g;
157
- e.autoScaling ? g = xe(y.valueMin, y.valueMax, n) : g = xe(y.valueMin < 0 ? y.valueMin : 0, y.valueMax <= 0 ? 0 : y.valueMax, n);
158
- const C = u.value.stacked ? t.value.height * (1 - e.cumulatedStackRatio) : 0, be = u.value.stacked ? t.value.height / a.value.style.chart.stackGap : 0, M = u.value.stacked ? t.value.height * e.stackRatio - be : t.value.height, O = g.min < 0 ? Math.abs(g.min) : 0;
157
+ e.autoScaling ? g = xe(f.valueMin, f.valueMax, n) : g = xe(f.valueMin < 0 ? f.valueMin : 0, f.valueMax <= 0 ? 0 : f.valueMax, n);
158
+ const w = u.value.stacked ? l.value.height * (1 - e.cumulatedStackRatio) : 0, be = u.value.stacked ? l.value.height / a.value.style.chart.stackGap : 0, T = u.value.stacked ? l.value.height * e.stackRatio - be : l.value.height, I = g.min < 0 ? Math.abs(g.min) : 0;
159
159
  let P;
160
- e.autoScaling && u.value.stacked && i <= 0 ? P = t.value.bottom - C - M : P = t.value.bottom - C - M * (O / (g.max + O));
160
+ e.autoScaling && u.value.stacked && i <= 0 ? P = l.value.bottom - w - T : P = l.value.bottom - w - T * (I / (g.max + I));
161
161
  const G = g.ticks.map((j, xa) => ({
162
- y: t.value.bottom - C - M * (xa / (g.ticks.length - 1)),
163
- x: t.value.left - 8,
162
+ y: l.value.bottom - w - T * (xa / (g.ticks.length - 1)),
163
+ x: l.value.left - 8,
164
164
  value: j
165
165
  })), V = ra({
166
166
  hasAutoScale: u.value.stacked && e.autoScaling,
@@ -168,9 +168,9 @@ const ll = ["id"], tl = ["onClick"], ol = {
168
168
  min: u.value.stacked ? o : p.value.min,
169
169
  max: u.value.stacked ? i : p.value.max,
170
170
  scale: u.value.stacked ? g : p.value.scale,
171
- yOffset: C,
172
- individualHeight: M,
173
- stackIndex: u.value.stacked ? l : null
171
+ yOffset: w,
172
+ individualHeight: T,
173
+ stackIndex: u.value.stacked ? t : null
174
174
  });
175
175
  return {
176
176
  ...e,
@@ -179,42 +179,60 @@ const ll = ["id"], tl = ["onClick"], ol = {
179
179
  max: i,
180
180
  localScale: g,
181
181
  localZero: P,
182
- localMin: O,
182
+ localMin: I,
183
183
  localYLabels: G,
184
- yOffset: C,
185
- individualHeight: M
184
+ yOffset: w,
185
+ individualHeight: T
186
186
  };
187
187
  })), r = v({
188
188
  start: 0,
189
- end: I.value
189
+ end: O.value
190
190
  });
191
191
  function _e() {
192
192
  r.value = {
193
193
  start: 0,
194
- end: I.value
194
+ end: O.value
195
195
  }, we.value += 1;
196
196
  }
197
- const sa = b(() => h.value.filter((e) => ["line", "plot", void 0].includes(e.type))), k = b(() => h.value.filter((e) => e.type === "bar"));
197
+ const sa = b(() => h.value.filter((e) => ["line", "plot", void 0].includes(e.type))), C = b(() => h.value.filter((e) => e.type === "bar"));
198
198
  function na() {
199
199
  if (!z.value)
200
200
  return;
201
- const e = Z.value.offsetWidth, l = Z.value.offsetHeight;
202
- z.value.width = e * W.value * 2, z.value.height = l * W.value * 2, f.value = e * W.value * 2, R.value = l * W.value * 2, s.value.scale(W.value, W.value), ge();
201
+ const e = Z.value.offsetWidth, t = Z.value.offsetHeight;
202
+ z.value.width = e * W.value * 2, z.value.height = t * W.value * 2, y.value = e * W.value * 2, R.value = t * W.value * 2, s.value.scale(W.value, W.value), ge();
203
203
  }
204
204
  function ia() {
205
- if (s.value.clearRect(0, 0, 1e4, 1e4), s.value.fillStyle = a.value.style.chart.backgroundColor, s.value.fillRect(0, 0, t.value.canvasWidth, t.value.canvasHeight), u.value.stacked)
206
- a.value.style.chart.grid.y.verticalLines.show && r.value.end - r.value.start < a.value.style.chart.grid.y.verticalLines.hideUnderXLength && h.value.forEach((e) => {
207
- for (let l = 0; l < r.value.end - r.value.start + 1; l += 1)
208
- S(
205
+ if (s.value.clearRect(0, 0, 1e4, 1e4), s.value.fillStyle = a.value.style.chart.backgroundColor, s.value.fillRect(0, 0, l.value.canvasWidth, l.value.canvasHeight), u.value.stacked)
206
+ a.value.style.chart.grid.y.verticalLines.show && r.value.end - r.value.start < a.value.style.chart.grid.y.verticalLines.hideUnderXLength ? h.value.forEach((e) => {
207
+ for (let t = 0; t < r.value.end - r.value.start + 1; t += 1)
208
+ L(
209
209
  s.value,
210
210
  [
211
211
  {
212
- x: t.value.left + t.value.slot * l,
213
- y: t.value.bottom - e.yOffset - e.individualHeight
212
+ x: l.value.left + l.value.slot * t,
213
+ y: l.value.bottom - e.yOffset - e.individualHeight
214
214
  },
215
215
  {
216
- x: t.value.left + t.value.slot * l,
217
- y: t.value.bottom - e.yOffset
216
+ x: l.value.left + l.value.slot * t,
217
+ y: l.value.bottom - e.yOffset
218
+ }
219
+ ],
220
+ {
221
+ color: a.value.style.chart.grid.y.verticalLines.color
222
+ }
223
+ );
224
+ }) : a.value.style.chart.grid.y.verticalLines.show && r.value.end - r.value.start >= a.value.style.chart.grid.y.verticalLines.hideUnderXLength && h.value.forEach((e) => {
225
+ for (let t = r.value.start; t < r.value.end; t += 1)
226
+ t % Math.floor((r.value.end - r.value.start) / a.value.style.chart.grid.y.timeLabels.modulo) === 0 && L(
227
+ s.value,
228
+ [
229
+ {
230
+ x: l.value.left + l.value.slot * (t - r.value.start) + l.value.slot / 2,
231
+ y: l.value.bottom - e.yOffset - e.individualHeight
232
+ },
233
+ {
234
+ x: l.value.left + l.value.slot * (t - r.value.start) + l.value.slot / 2,
235
+ y: l.value.bottom - e.yOffset
218
236
  }
219
237
  ],
220
238
  {
@@ -222,14 +240,14 @@ const ll = ["id"], tl = ["onClick"], ol = {
222
240
  }
223
241
  );
224
242
  }), a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? h.value.forEach((e) => {
225
- e.localYLabels.forEach((l, o) => {
243
+ e.localYLabels.forEach((t, o) => {
226
244
  o < e.localYLabels.length - 1 && Le(
227
245
  s.value,
228
246
  [
229
- { x: t.value.left, y: l.y },
230
- { x: t.value.right, y: l.y },
231
- { x: t.value.right, y: e.localYLabels[o + 1].y },
232
- { x: t.value.left, y: e.localYLabels[o + 1].y }
247
+ { x: l.value.left, y: t.y },
248
+ { x: l.value.right, y: t.y },
249
+ { x: l.value.right, y: e.localYLabels[o + 1].y },
250
+ { x: l.value.left, y: e.localYLabels[o + 1].y }
233
251
  ],
234
252
  {
235
253
  fillColor: o % 2 === 0 ? "transparent" : ae(a.value.style.chart.grid.x.horizontalLines.color, a.value.style.chart.grid.x.horizontalLines.opacity),
@@ -238,12 +256,12 @@ const ll = ["id"], tl = ["onClick"], ol = {
238
256
  );
239
257
  });
240
258
  }) : h.value.forEach((e) => {
241
- e.localYLabels.slice(r.value.start, r.value.end).forEach((l) => {
242
- S(
259
+ e.localYLabels.slice(r.value.start, r.value.end).forEach((t) => {
260
+ L(
243
261
  s.value,
244
262
  [
245
- { x: t.value.left, y: l.y },
246
- { x: t.value.right, y: l.y }
263
+ { x: l.value.left, y: t.y },
264
+ { x: l.value.right, y: t.y }
247
265
  ],
248
266
  {
249
267
  color: a.value.style.chart.grid.x.horizontalLines.color
@@ -251,11 +269,11 @@ const ll = ["id"], tl = ["onClick"], ol = {
251
269
  );
252
270
  });
253
271
  })), a.value.style.chart.grid.zeroLine.show && h.value.forEach((e) => {
254
- S(
272
+ L(
255
273
  s.value,
256
274
  [
257
- { x: t.value.left, y: e.localZero },
258
- { x: t.value.right, y: e.localZero }
275
+ { x: l.value.left, y: e.localZero },
276
+ { x: l.value.right, y: e.localZero }
259
277
  ],
260
278
  {
261
279
  color: a.value.style.chart.grid.zeroLine.color,
@@ -263,43 +281,43 @@ const ll = ["id"], tl = ["onClick"], ol = {
263
281
  }
264
282
  );
265
283
  }), a.value.style.chart.grid.y.axisLabels.show && h.value.forEach((e) => {
266
- S(
284
+ L(
267
285
  s.value,
268
286
  [
269
- { x: t.value.left, y: t.value.bottom - e.yOffset },
270
- { x: t.value.left, y: t.value.bottom - e.yOffset - e.individualHeight }
287
+ { x: l.value.left, y: l.value.bottom - e.yOffset },
288
+ { x: l.value.left, y: l.value.bottom - e.yOffset - e.individualHeight }
271
289
  ],
272
290
  {
273
291
  color: e.color
274
292
  }
275
- ), S(
293
+ ), L(
276
294
  s.value,
277
295
  [
278
- { x: t.value.right, y: t.value.bottom - e.yOffset },
279
- { x: t.value.right, y: t.value.bottom - e.yOffset - e.individualHeight }
296
+ { x: l.value.right, y: l.value.bottom - e.yOffset },
297
+ { x: l.value.right, y: l.value.bottom - e.yOffset - e.individualHeight }
280
298
  ],
281
299
  {
282
300
  color: e.color
283
301
  }
284
- ), e.localYLabels.forEach((l, o) => {
302
+ ), e.localYLabels.forEach((t, o) => {
285
303
  E(
286
304
  s.value,
287
305
  Q(
288
306
  a.value.style.chart.dataLabels.formatter,
289
- l.value,
307
+ t.value,
290
308
  ee({
291
309
  p: e.prefix || a.value.style.chart.grid.y.axisLabels.prefix || "",
292
- v: l.value,
310
+ v: t.value,
293
311
  s: e.suffix || a.value.style.chart.grid.y.axisLabels.suffix || "",
294
312
  r: e.rounding || a.value.style.chart.grid.y.axisLabels.rounding || 0
295
313
  }),
296
- { datapoint: l, seriesIndex: o }
314
+ { datapoint: t, seriesIndex: o }
297
315
  ),
298
- l.x + a.value.style.chart.grid.y.axisLabels.offsetX,
299
- l.y,
316
+ t.x + a.value.style.chart.grid.y.axisLabels.offsetX,
317
+ t.y,
300
318
  {
301
319
  align: "right",
302
- font: `${Math.round(f.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
320
+ font: `${Math.round(y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
303
321
  color: e.color
304
322
  }
305
323
  );
@@ -308,85 +326,97 @@ const ll = ["id"], tl = ["onClick"], ol = {
308
326
  E(
309
327
  s.value,
310
328
  e.name,
311
- f.value / 35,
312
- t.value.bottom - e.yOffset - e.individualHeight / 2,
329
+ y.value / 35,
330
+ l.value.bottom - e.yOffset - e.individualHeight / 2,
313
331
  {
314
332
  align: "center",
315
333
  rotation: -90,
316
334
  color: e.color,
317
- font: `${Math.round(f.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`
335
+ font: `${Math.round(y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`
318
336
  }
319
337
  );
320
338
  });
321
339
  else {
322
340
  if (a.value.style.chart.grid.y.verticalLines.show && r.value.end - r.value.start < a.value.style.chart.grid.y.verticalLines.hideUnderXLength)
323
341
  for (let e = 0; e < r.value.end - r.value.start + 1; e += 1)
324
- S(
342
+ L(
343
+ s.value,
344
+ [
345
+ { x: l.value.left + l.value.slot * e, y: l.value.top },
346
+ { x: l.value.left + l.value.slot * e, y: l.value.bottom }
347
+ ],
348
+ {
349
+ color: a.value.style.chart.grid.y.verticalLines.color
350
+ }
351
+ );
352
+ else if (a.value.style.chart.grid.y.verticalLines.show && r.value.end - r.value.start >= a.value.style.chart.grid.y.verticalLines.hideUnderXLength)
353
+ for (let e = r.value.start; e < r.value.end; e += 1)
354
+ e % Math.floor((r.value.end - r.value.start) / a.value.style.chart.grid.y.timeLabels.modulo) === 0 && L(
325
355
  s.value,
326
356
  [
327
- { x: t.value.left + t.value.slot * e, y: t.value.top },
328
- { x: t.value.left + t.value.slot * e, y: t.value.bottom }
357
+ { x: l.value.left + l.value.slot * (e - r.value.start) + l.value.slot / 2, y: l.value.top },
358
+ { x: l.value.left + l.value.slot * (e - r.value.start) + l.value.slot / 2, y: l.value.bottom }
329
359
  ],
330
360
  {
331
361
  color: a.value.style.chart.grid.y.verticalLines.color
332
362
  }
333
363
  );
334
- a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? p.value.yLabels.forEach((e, l) => {
335
- l < p.value.yLabels.length - 1 && Le(
364
+ a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? p.value.yLabels.forEach((e, t) => {
365
+ t < p.value.yLabels.length - 1 && Le(
336
366
  s.value,
337
367
  [
338
- { x: t.value.left, y: e.y },
339
- { x: t.value.right, y: e.y },
340
- { x: t.value.right, y: p.value.yLabels[l + 1].y },
341
- { x: t.value.left, y: p.value.yLabels[l + 1].y }
368
+ { x: l.value.left, y: e.y },
369
+ { x: l.value.right, y: e.y },
370
+ { x: l.value.right, y: p.value.yLabels[t + 1].y },
371
+ { x: l.value.left, y: p.value.yLabels[t + 1].y }
342
372
  ],
343
373
  {
344
- fillColor: l % 2 === 0 ? "transparent" : ae(a.value.style.chart.grid.x.horizontalLines.color, a.value.style.chart.grid.x.horizontalLines.opacity),
374
+ fillColor: t % 2 === 0 ? "transparent" : ae(a.value.style.chart.grid.x.horizontalLines.color, a.value.style.chart.grid.x.horizontalLines.opacity),
345
375
  strokeColor: "transparent"
346
376
  }
347
377
  );
348
378
  }) : p.value.yLabels.forEach((e) => {
349
- S(
379
+ L(
350
380
  s.value,
351
381
  [
352
- { x: t.value.left, y: e.y },
353
- { x: t.value.right, y: e.y }
382
+ { x: l.value.left, y: e.y },
383
+ { x: l.value.right, y: e.y }
354
384
  ],
355
385
  {
356
386
  color: a.value.style.chart.grid.x.horizontalLines.color
357
387
  }
358
388
  );
359
- })), a.value.style.chart.grid.y.showAxis && S(
389
+ })), a.value.style.chart.grid.y.showAxis && L(
360
390
  s.value,
361
391
  [
362
- { x: t.value.left, y: t.value.top },
363
- { x: t.value.left, y: t.value.bottom }
392
+ { x: l.value.left, y: l.value.top },
393
+ { x: l.value.left, y: l.value.bottom }
364
394
  ],
365
395
  {
366
396
  color: a.value.style.chart.grid.y.axisColor,
367
397
  lineWidth: a.value.style.chart.grid.y.axisThickness
368
398
  }
369
- ), a.value.style.chart.grid.x.showAxis && S(
399
+ ), a.value.style.chart.grid.x.showAxis && L(
370
400
  s.value,
371
401
  [
372
- { x: t.value.left, y: t.value.bottom },
373
- { x: t.value.right, y: t.value.bottom }
402
+ { x: l.value.left, y: l.value.bottom },
403
+ { x: l.value.right, y: l.value.bottom }
374
404
  ],
375
405
  {
376
406
  color: a.value.style.chart.grid.x.axisColor,
377
407
  lineWidth: a.value.style.chart.grid.x.axisThickness
378
408
  }
379
- ), a.value.style.chart.grid.zeroLine.show && S(
409
+ ), a.value.style.chart.grid.zeroLine.show && L(
380
410
  s.value,
381
411
  [
382
- { x: t.value.left, y: p.value.zero },
383
- { x: t.value.right, y: p.value.zero }
412
+ { x: l.value.left, y: p.value.zero },
413
+ { x: l.value.right, y: p.value.zero }
384
414
  ],
385
415
  {
386
416
  color: a.value.style.chart.grid.zeroLine.color,
387
417
  lineDash: a.value.style.chart.grid.zeroLine.dashed ? [10, 10] : [0, 0]
388
418
  }
389
- ), a.value.style.chart.grid.y.axisLabels.show && p.value.yLabels.forEach((e, l) => {
419
+ ), a.value.style.chart.grid.y.axisLabels.show && p.value.yLabels.forEach((e, t) => {
390
420
  E(
391
421
  s.value,
392
422
  Q(
@@ -398,13 +428,13 @@ const ll = ["id"], tl = ["onClick"], ol = {
398
428
  s: a.value.style.chart.grid.y.axisLabels.suffix || "",
399
429
  r: a.value.style.chart.grid.y.axisLabels.rounding || 0
400
430
  }),
401
- { datapoint: e, seriesIndex: l }
431
+ { datapoint: e, seriesIndex: t }
402
432
  ),
403
433
  e.x + a.value.style.chart.grid.y.axisLabels.offsetX,
404
434
  e.y,
405
435
  {
406
436
  align: "right",
407
- font: `${Math.round(f.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
437
+ font: `${Math.round(y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
408
438
  color: a.value.style.chart.grid.y.axisLabels.color
409
439
  }
410
440
  );
@@ -413,10 +443,10 @@ const ll = ["id"], tl = ["onClick"], ol = {
413
443
  a.value.style.chart.grid.y.axisName && E(
414
444
  s.value,
415
445
  a.value.style.chart.grid.y.axisName,
416
- f.value - f.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio * 1.2,
417
- t.value.bottom - t.value.height / 2,
446
+ y.value - y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio * 1.2,
447
+ l.value.bottom - l.value.height / 2,
418
448
  {
419
- font: `${Math.round(f.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
449
+ font: `${Math.round(y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
420
450
  color: a.value.style.chart.color,
421
451
  align: "center",
422
452
  rotation: 90
@@ -424,21 +454,21 @@ const ll = ["id"], tl = ["onClick"], ol = {
424
454
  ), a.value.style.chart.grid.x.axisName && E(
425
455
  s.value,
426
456
  a.value.style.chart.grid.x.axisName,
427
- f.value / 2,
457
+ y.value / 2,
428
458
  R.value,
429
459
  {
430
- font: `${Math.round(f.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
460
+ font: `${Math.round(y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
431
461
  color: a.value.style.chart.color,
432
462
  align: "center"
433
463
  }
434
464
  );
435
465
  }
436
466
  function va(e) {
437
- for (let l = 0; l < e.coordinatesLine.length; l += 1) {
438
- const o = (d.value === l ? f.value / 150 : a.value.style.chart.line.plots.show ? f.value / 200 : 0) * a.value.style.chart.line.plots.radiusRatio;
467
+ for (let t = 0; t < e.coordinatesLine.length; t += 1) {
468
+ const o = (d.value === t ? y.value / 150 : a.value.style.chart.line.plots.show ? y.value / 200 : 0) * a.value.style.chart.line.plots.radiusRatio;
439
469
  Ke(
440
470
  s.value,
441
- { x: e.coordinatesLine[l].x, y: e.coordinatesLine[l].y },
471
+ { x: e.coordinatesLine[t].x, y: e.coordinatesLine[t].y },
442
472
  o,
443
473
  {
444
474
  color: a.value.style.chart.backgroundColor,
@@ -449,25 +479,25 @@ const ll = ["id"], tl = ["onClick"], ol = {
449
479
  }
450
480
  }
451
481
  function ca(e) {
452
- for (let l = 0; l < e.coordinatesLine.length; l += 1)
482
+ for (let t = 0; t < e.coordinatesLine.length; t += 1)
453
483
  E(
454
484
  s.value,
455
485
  Q(
456
486
  a.value.style.chart.dataLabels.formatter,
457
- e.coordinatesLine[l].value,
487
+ e.coordinatesLine[t].value,
458
488
  ee({
459
489
  p: e.prefix || "",
460
- v: e.coordinatesLine[l].value,
490
+ v: e.coordinatesLine[t].value,
461
491
  s: e.suffix || "",
462
492
  r: e.rounding || 0
463
493
  }),
464
- { datapoint: e.coordinatesLine[l], seriesIndex: l }
494
+ { datapoint: e.coordinatesLine[t], seriesIndex: t }
465
495
  ),
466
- e.coordinatesLine[l].x,
467
- e.coordinatesLine[l].y + a.value.style.chart.dataLabels.offsetY,
496
+ e.coordinatesLine[t].x,
497
+ e.coordinatesLine[t].y + a.value.style.chart.dataLabels.offsetY,
468
498
  {
469
499
  align: "center",
470
- font: `${Math.round(f.value / 40 * a.value.style.chart.dataLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
500
+ font: `${Math.round(y.value / 40 * a.value.style.chart.dataLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
471
501
  color: a.value.style.chart.dataLabels.useSerieColor ? e.color : a.value.style.chart.dataLabels.color,
472
502
  strokeColor: a.value.style.chart.backgroundColor,
473
503
  lineWidth: 0.8
@@ -479,22 +509,22 @@ const ll = ["id"], tl = ["onClick"], ol = {
479
509
  (r.value.end - r.value.start < a.value.style.chart.grid.y.timeLabels.modulo || r.value.end - r.value.start >= a.value.style.chart.grid.y.timeLabels.modulo && (e % Math.floor((r.value.end - r.value.start) / a.value.style.chart.grid.y.timeLabels.modulo) === 0 || e === d.value + r.value.start)) && E(
480
510
  s.value,
481
511
  a.value.style.chart.grid.y.timeLabels.values[e] || e + 1,
482
- t.value.left + t.value.slot * (e - r.value.start) + t.value.slot / 2,
483
- t.value.bottom + f.value / a.value.style.chart.grid.y.timeLabels.offsetY,
512
+ l.value.left + l.value.slot * (e - r.value.start) + l.value.slot / 2,
513
+ l.value.bottom + y.value / a.value.style.chart.grid.y.timeLabels.offsetY,
484
514
  {
485
515
  align: a.value.style.chart.grid.y.timeLabels.rotation === 0 ? "center" : a.value.style.chart.grid.y.timeLabels.rotation > 0 ? "left" : "right",
486
- font: `${Math.round(f.value / 40 * a.value.style.chart.grid.y.timeLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
516
+ font: `${Math.round(y.value / 40 * a.value.style.chart.grid.y.timeLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
487
517
  color: ae(a.value.style.chart.grid.y.timeLabels.color, d.value !== null ? d.value + r.value.start === e ? 100 : 20 : 100),
488
518
  rotation: a.value.style.chart.grid.y.timeLabels.rotation
489
519
  }
490
520
  );
491
521
  }
492
522
  function De() {
493
- S(
523
+ L(
494
524
  s.value,
495
525
  [
496
- { x: t.value.left + t.value.slot * d.value + t.value.slot / 2, y: t.value.top },
497
- { x: t.value.left + t.value.slot * d.value + t.value.slot / 2, y: t.value.bottom }
526
+ { x: l.value.left + l.value.slot * d.value + l.value.slot / 2, y: l.value.top },
527
+ { x: l.value.left + l.value.slot * d.value + l.value.slot / 2, y: l.value.bottom }
498
528
  ],
499
529
  {
500
530
  color: a.value.style.chart.selector.color,
@@ -505,25 +535,25 @@ const ll = ["id"], tl = ["onClick"], ol = {
505
535
  );
506
536
  }
507
537
  function ha() {
508
- k.value.forEach((e, l) => {
538
+ C.value.forEach((e, t) => {
509
539
  for (let o = 0; o < e.coordinatesLine.length; o += 1)
510
540
  Le(
511
541
  s.value,
512
542
  [
513
543
  {
514
- x: t.value.left + t.value.slot * o + t.value.slot / 10 + (u.value.stacked ? 0 : t.value.slot / k.value.length * l - (l === 0 ? 0 : t.value.slot / (5 * k.value.length) * l)),
544
+ x: l.value.left + l.value.slot * o + l.value.slot / 10 + (u.value.stacked ? 0 : l.value.slot / C.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * C.value.length) * t)),
515
545
  y: u.value.stacked ? e.localZero : p.value.zero
516
546
  },
517
547
  {
518
- x: t.value.left + t.value.slot * o + t.value.slot / 10 + (u.value.stacked ? 0 : t.value.slot / k.value.length * l - (l === 0 ? 0 : t.value.slot / (5 * k.value.length) * l)) + t.value.slot * 0.8 / (u.value.stacked ? 1 : k.value.length),
548
+ x: l.value.left + l.value.slot * o + l.value.slot / 10 + (u.value.stacked ? 0 : l.value.slot / C.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * C.value.length) * t)) + l.value.slot * 0.8 / (u.value.stacked ? 1 : C.value.length),
519
549
  y: u.value.stacked ? e.localZero : p.value.zero
520
550
  },
521
551
  {
522
- x: t.value.left + t.value.slot * o + t.value.slot / 10 + (u.value.stacked ? 0 : t.value.slot / k.value.length * l - (l === 0 ? 0 : t.value.slot / (5 * k.value.length) * l)) + t.value.slot * 0.8 / (u.value.stacked ? 1 : k.value.length),
552
+ x: l.value.left + l.value.slot * o + l.value.slot / 10 + (u.value.stacked ? 0 : l.value.slot / C.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * C.value.length) * t)) + l.value.slot * 0.8 / (u.value.stacked ? 1 : C.value.length),
523
553
  y: e.coordinatesLine[o].y
524
554
  },
525
555
  {
526
- x: t.value.left + t.value.slot * o + t.value.slot / 10 + (u.value.stacked ? 0 : t.value.slot / k.value.length * l - (l === 0 ? 0 : t.value.slot / (5 * k.value.length) * l)),
556
+ x: l.value.left + l.value.slot * o + l.value.slot / 10 + (u.value.stacked ? 0 : l.value.slot / C.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * C.value.length) * t)),
527
557
  y: e.coordinatesLine[o].y
528
558
  }
529
559
  ],
@@ -558,11 +588,11 @@ const ll = ["id"], tl = ["onClick"], ol = {
558
588
  }),
559
589
  { datapoint: e.coordinatesLine[o], seriesIndex: o }
560
590
  ),
561
- t.value.left + t.value.slot * o + t.value.slot / 10 + (u.value.stacked ? 0 : t.value.slot / k.value.length * l - (l === 0 ? 0 : t.value.slot / (5 * k.value.length) * l)) + t.value.slot * 0.4 / (u.value.stacked ? 1 : k.value.length),
591
+ l.value.left + l.value.slot * o + l.value.slot / 10 + (u.value.stacked ? 0 : l.value.slot / C.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * C.value.length) * t)) + l.value.slot * 0.4 / (u.value.stacked ? 1 : C.value.length),
562
592
  (e.coordinatesLine[o].value < 0 ? u.value.stacked ? e.localZero : p.value.zero : e.coordinatesLine[o].y) + a.value.style.chart.dataLabels.offsetY,
563
593
  {
564
594
  align: "center",
565
- font: `${Math.round(f.value / 40 * a.value.style.chart.dataLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
595
+ font: `${Math.round(y.value / 40 * a.value.style.chart.dataLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
566
596
  color: a.value.style.chart.dataLabels.useSerieColor ? e.color : a.value.style.chart.dataLabels.color,
567
597
  strokeColor: a.value.style.chart.backgroundColor,
568
598
  lineWidth: 0.8
@@ -570,7 +600,7 @@ const ll = ["id"], tl = ["onClick"], ol = {
570
600
  );
571
601
  });
572
602
  }
573
- function fa(e) {
603
+ function ya(e) {
574
604
  e.useArea ? u.value.stacked ? Qe(
575
605
  s.value,
576
606
  [{ x: e.coordinatesLine[0].x, y: e.localZero }, ...e.coordinatesLine, { x: e.coordinatesLine.at(-1).x, y: e.localZero }],
@@ -585,18 +615,18 @@ const ll = ["id"], tl = ["onClick"], ol = {
585
615
  fillColor: ae(e.color, a.value.style.chart.area.opacity),
586
616
  strokeColor: "transparent"
587
617
  }
588
- ) : S(s.value, e.coordinatesLine, {
618
+ ) : L(s.value, e.coordinatesLine, {
589
619
  color: e.color,
590
620
  lineWidth: 3
591
621
  });
592
622
  }
593
- function ya() {
594
- h.value.forEach((e, l) => {
595
- S(
623
+ function fa() {
624
+ h.value.forEach((e, t) => {
625
+ L(
596
626
  s.value,
597
627
  [
598
- { x: t.value.left, y: t.value.bottom - e.yOffset },
599
- { x: t.value.right, y: t.value.bottom - e.yOffset }
628
+ { x: l.value.left, y: l.value.bottom - e.yOffset },
629
+ { x: l.value.right, y: l.value.bottom - e.yOffset }
600
630
  ],
601
631
  {
602
632
  color: a.value.style.chart.grid.x.horizontalLines.color,
@@ -606,9 +636,9 @@ const ll = ["id"], tl = ["onClick"], ol = {
606
636
  });
607
637
  }
608
638
  function ge() {
609
- ia(), N.value ? (T.value && d.value !== null && a.value.style.chart.selector.show && De(), ha(), u.value.stacked && a.value.style.chart.grid.x.showAxis && ya(), sa.value.forEach((e) => {
610
- (e.type === "line" || !e.type) && fa(e), T.value && (va(e), u.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && ca(e));
611
- }), ve.value = Ya(z.value)) : (ve.value && (s.value.clearRect(0, 0, 1e4, 1e4), s.value.drawImage(ve.value, 0, 0)), T.value && d.value !== null && a.value.style.chart.selector.show && De(), T.value && d.value !== null && h.value.forEach((e) => {
639
+ ia(), N.value ? (M.value && d.value !== null && a.value.style.chart.selector.show && De(), ha(), u.value.stacked && a.value.style.chart.grid.x.showAxis && fa(), sa.value.forEach((e) => {
640
+ (e.type === "line" || !e.type) && ya(e), M.value && (va(e), u.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && ca(e));
641
+ }), ve.value = Xa(z.value)) : (ve.value && (s.value.clearRect(0, 0, 1e4, 1e4), s.value.drawImage(ve.value, 0, 0)), M.value && d.value !== null && a.value.style.chart.selector.show && De(), M.value && d.value !== null && h.value.forEach((e) => {
612
642
  if (e.type === "line" || !e.type || e.type === "plot") {
613
643
  if (!e.coordinatesLine[d.value]) return;
614
644
  e.coordinatesLine[d.value].x !== void 0 && e.coordinatesLine[d.value].y !== void 0 && Ke(
@@ -617,7 +647,7 @@ const ll = ["id"], tl = ["onClick"], ol = {
617
647
  x: e.coordinatesLine[d.value].x,
618
648
  y: e.coordinatesLine[d.value].y
619
649
  },
620
- f.value / 150 * a.value.style.chart.line.plots.radiusRatio,
650
+ y.value / 150 * a.value.style.chart.line.plots.radiusRatio,
621
651
  {
622
652
  color: a.value.style.chart.backgroundColor,
623
653
  fillStyle: e.color,
@@ -628,41 +658,41 @@ const ll = ["id"], tl = ["onClick"], ol = {
628
658
  })), a.value.style.chart.grid.y.timeLabels.show && da(), N.value = !1;
629
659
  }
630
660
  const oe = Wa(() => {
631
- T.value = !0, na();
632
- }, I.value > 200 ? 10 : 1, !T.value);
661
+ M.value = !0, na();
662
+ }, O.value > 200 ? 10 : 1, !M.value);
633
663
  function ga(e) {
634
- const { left: l } = z.value.getBoundingClientRect(), o = e.clientX - l;
635
- if (o * 2 < t.value.left || o * 2 > t.value.right) {
664
+ const { left: t } = z.value.getBoundingClientRect(), o = e.clientX - t;
665
+ if (o * 2 < l.value.left || o * 2 > l.value.right) {
636
666
  le.value = !1, d.value = null;
637
667
  return;
638
668
  }
639
- const i = o * 2 - t.value.left;
640
- if (d.value = Math.floor(i / t.value.slot), le.value = !0, !T.value) return;
669
+ const i = o * 2 - l.value.left;
670
+ if (d.value = Math.floor(i / l.value.slot), le.value = !0, !M.value) return;
641
671
  let c = "";
642
- const y = a.value.style.chart.tooltip.customFormat;
643
- Je(y) && Aa(() => y({
672
+ const f = a.value.style.chart.tooltip.customFormat;
673
+ Je(f) && Aa(() => f({
644
674
  seriesIndex: d.value,
645
675
  datapoint: h.value.map((n) => ({
646
676
  shape: n.shape || null,
647
677
  name: n.name,
648
678
  color: n.color,
649
679
  type: n.type || "line",
650
- value: n.series.find((g, C) => C === d.value)
680
+ value: n.series.find((g, w) => w === d.value)
651
681
  })),
652
682
  series: h.value,
653
683
  config: a.value
654
- })) ? te.value = y({
684
+ })) ? te.value = f({
655
685
  seriesIndex: d.value,
656
686
  datapoint: h.value.map((n) => ({
657
687
  shape: n.shape || null,
658
688
  name: n.name,
659
689
  color: n.color,
660
690
  type: n.type || "line",
661
- value: n.series.find((g, C) => C === d.value)
691
+ value: n.series.find((g, w) => w === d.value)
662
692
  })),
663
693
  series: h.value,
664
694
  config: a.value
665
- }) : (a.value.style.chart.grid.y.timeLabels.values.slice(r.value.start, r.value.end)[d.value] && (c += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${a.value.style.chart.tooltip.borderColor}; width:100%">${a.value.style.chart.grid.y.timeLabels.values.slice(r.value.start, r.value.end)[d.value]}</div>`), c += ua.value.join(""), te.value = c), T.value = !1;
695
+ }) : (a.value.style.chart.grid.y.timeLabels.values.slice(r.value.start, r.value.end)[d.value] && (c += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${a.value.style.chart.tooltip.borderColor}; width:100%">${a.value.style.chart.grid.y.timeLabels.values.slice(r.value.start, r.value.end)[d.value]}</div>`), c += ua.value.join(""), te.value = c), M.value = !1;
666
696
  }
667
697
  A(() => d.value, (e) => {
668
698
  oe();
@@ -673,7 +703,7 @@ const ll = ["id"], tl = ["onClick"], ol = {
673
703
  }), A(() => u.value.showDataLabels, (e) => {
674
704
  N.value = !0, ge();
675
705
  }), A(() => u.value.stacked, (e) => {
676
- N.value = !0, T.value = !0, oe();
706
+ N.value = !0, M.value = !0, oe();
677
707
  });
678
708
  function pa() {
679
709
  le.value = !1, d.value = null, te.value = "";
@@ -683,37 +713,37 @@ const ll = ["id"], tl = ["onClick"], ol = {
683
713
  pe();
684
714
  });
685
715
  function pe() {
686
- if (Ea(L.dataset) ? Na({
716
+ if (Ea(k.dataset) ? Na({
687
717
  componentName: "VueUiXyCanvas",
688
718
  type: "dataset"
689
719
  }) : z.value && (s.value = z.value.getContext("2d", { willReadFrequently: !0 })), a.value.responsive) {
690
- const e = Ba(() => {
691
- const { width: l, height: o } = Xa({
720
+ const e = Ya(() => {
721
+ const { width: t, height: o } = Ba({
692
722
  chart: U.value,
693
723
  title: a.value.style.chart.title.text ? $e.value : null,
694
724
  legend: a.value.style.chart.legend.show ? ze.value : null,
695
- slicer: a.value.style.chart.zoom.show && I.value > 1 ? Te.value : null,
696
- source: Me.value
725
+ slicer: a.value.style.chart.zoom.show && O.value > 1 ? Me.value : null,
726
+ source: Te.value
697
727
  });
698
- Ie.value = `${l} / ${o}`;
728
+ Oe.value = `${t} / ${o}`;
699
729
  });
700
730
  re.value = new ResizeObserver(e), re.value.observe(U.value.parentNode);
701
731
  }
702
732
  ue.value = new ResizeObserver((e) => {
703
- for (const l of e)
704
- l.contentBoxSize && Z.value && (N.value = !0, oe());
733
+ for (const t of e)
734
+ t.contentBoxSize && Z.value && (N.value = !0, oe());
705
735
  }), ue.value.observe(Z.value);
706
736
  }
707
737
  ka(() => {
708
738
  ue.value && ue.value.disconnect(), re.value && re.value.disconnect();
709
739
  });
710
740
  function He(e) {
711
- la("selectLegend", h.value.find((l) => l.absoluteIndex === e)), $.value.includes(e) ? $.value = $.value.filter((l) => l !== e) : $.value.push(e), N.value = !0, oe();
741
+ la("selectLegend", h.value.find((t) => t.absoluteIndex === e)), $.value.includes(e) ? $.value = $.value.filter((t) => t !== e) : $.value.push(e), N.value = !0, oe();
712
742
  }
713
- const We = b(() => Y.value.map((e, l) => ({
743
+ const We = b(() => X.value.map((e, t) => ({
714
744
  ...e,
715
745
  name: e.name,
716
- color: qe(e.color) || Ne.value[l] || H[l] || H[l % H.length],
746
+ color: qe(e.color) || Ne.value[t] || H[t] || H[t % H.length],
717
747
  shape: e.shape || "circle",
718
748
  prefix: e.prefix || "",
719
749
  suffix: e.suffix || "",
@@ -732,10 +762,10 @@ const ll = ["id"], tl = ["onClick"], ol = {
732
762
  fontWeight: a.value.style.chart.legend.bold ? "bold" : ""
733
763
  })), se = b(() => {
734
764
  const e = [""].concat(h.value.map((c) => c.name)).concat(' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>');
735
- let l = [];
736
- for (let c = 0; c < I.value; c += 1) {
737
- const y = h.value.map((n) => n.series[c] ?? 0).reduce((n, g) => n + g, 0);
738
- l.push([a.value.style.chart.grid.y.timeLabels.values.slice(r.value.start, r.value.end)[c] ?? c + 1].concat(h.value.map((n) => (n.series[c] ?? 0).toFixed(a.value.table.rounding))).concat((y ?? 0).toFixed(a.value.table.rounding)));
765
+ let t = [];
766
+ for (let c = 0; c < O.value; c += 1) {
767
+ const f = h.value.map((n) => n.series[c] ?? 0).reduce((n, g) => n + g, 0);
768
+ t.push([a.value.style.chart.grid.y.timeLabels.values.slice(r.value.start, r.value.end)[c] ?? c + 1].concat(h.value.map((n) => (n.series[c] ?? 0).toFixed(a.value.table.rounding))).concat((f ?? 0).toFixed(a.value.table.rounding)));
739
769
  }
740
770
  const o = {
741
771
  th: {
@@ -750,30 +780,30 @@ const ll = ["id"], tl = ["onClick"], ol = {
750
780
  },
751
781
  breakpoint: a.value.table.responsiveBreakpoint
752
782
  }, i = [a.value.table.columnNames.period].concat(h.value.map((c) => c.name)).concat(a.value.table.columnNames.total);
753
- return { head: e, body: l.slice(0, r.value.end - r.value.start), config: o, colNames: i };
754
- }), Ye = b(() => {
783
+ return { head: e, body: t.slice(0, r.value.end - r.value.start), config: o, colNames: i };
784
+ }), Xe = b(() => {
755
785
  if (h.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
756
786
  const e = h.value.map((o) => ({
757
787
  label: o.name,
758
788
  color: o.color,
759
789
  type: o.type
760
- })), l = [];
790
+ })), t = [];
761
791
  for (let o = r.value.start; o < r.value.end; o += 1) {
762
792
  const i = [a.value.style.chart.grid.y.timeLabels.values[o] || o + 1];
763
793
  h.value.forEach((c) => {
764
794
  i.push(Number((c.series[o] || 0).toFixed(a.value.table.rounding)));
765
- }), l.push(i);
795
+ }), t.push(i);
766
796
  }
767
- return { head: e, body: l };
797
+ return { head: e, body: t };
768
798
  });
769
- function Be() {
770
- const e = [[a.value.style.chart.title.text], [a.value.style.chart.title.subtitle.text], [""]], l = ["", ...Ye.value.head.map((y) => y.label)], o = Ye.value.body, i = e.concat([l]).concat(o), c = _a(i);
799
+ function Ye() {
800
+ const e = [[a.value.style.chart.title.text], [a.value.style.chart.title.subtitle.text], [""]], t = ["", ...Xe.value.head.map((f) => f.label)], o = Xe.value.body, i = e.concat([t]).concat(o), c = _a(i);
771
801
  Da({ csvContent: c, title: a.value.style.chart.title.text || "vue-ui-xy-canvas" });
772
802
  }
773
803
  function ba() {
774
804
  return h.value;
775
805
  }
776
- function Xe() {
806
+ function Be() {
777
807
  u.value.showTable = !u.value.showTable;
778
808
  }
779
809
  function Ue() {
@@ -791,28 +821,28 @@ const ll = ["id"], tl = ["onClick"], ol = {
791
821
  }
792
822
  return aa({
793
823
  getData: ba,
794
- generateCsv: Be,
824
+ generateCsv: Ye,
795
825
  generatePdf: Fe,
796
826
  generateImage: Ee,
797
- toggleTable: Xe,
827
+ toggleTable: Be,
798
828
  toggleLabels: Ue,
799
829
  toggleStack: Ze,
800
830
  toggleTooltip: Ge,
801
831
  toggleAnnotator: me
802
- }), (e, l) => (w(), q("div", {
832
+ }), (e, t) => (S(), q("div", {
803
833
  style: J(`width:100%; position:relative; ${a.value.responsive ? "height: 100%" : ""}`),
804
834
  ref_key: "xy",
805
835
  ref: U,
806
836
  id: `xy_canvas_${ie.value}`,
807
837
  class: Ca(`vue-ui-donut ${ce.value ? "vue-data-ui-wrapper-fullscreen" : ""}`)
808
838
  }, [
809
- a.value.style.chart.title.text ? (w(), q("div", {
839
+ a.value.style.chart.title.text ? (S(), q("div", {
810
840
  key: 0,
811
841
  ref_key: "chartTitle",
812
842
  ref: $e,
813
843
  style: J(`width:100%;background:${a.value.style.chart.backgroundColor};`)
814
844
  }, [
815
- (w(), F(Ga, {
845
+ (S(), F(Ga, {
816
846
  key: `title_${de.value}`,
817
847
  config: {
818
848
  title: {
@@ -826,12 +856,12 @@ const ll = ["id"], tl = ["onClick"], ol = {
826
856
  }
827
857
  }, null, 8, ["config"]))
828
858
  ], 4)) : _("", !0),
829
- a.value.userOptions.show && ye.value ? (w(), F(qa, {
859
+ a.value.userOptions.show && fe.value ? (S(), F(qa, {
830
860
  ref: "details",
831
861
  key: `user_option_${Se.value}`,
832
862
  backgroundColor: a.value.style.chart.backgroundColor,
833
863
  color: a.value.style.chart.color,
834
- isPrinting: D(Oe),
864
+ isPrinting: D(Ie),
835
865
  isImaging: D(Pe),
836
866
  uid: ie.value,
837
867
  hasTooltip: a.value.userOptions.buttons.tooltip && a.value.style.chart.tooltip.show,
@@ -852,9 +882,9 @@ const ll = ["id"], tl = ["onClick"], ol = {
852
882
  isAnnotation: ne.value,
853
883
  onToggleFullscreen: oa,
854
884
  onGeneratePdf: D(Fe),
855
- onGenerateCsv: Be,
885
+ onGenerateCsv: Ye,
856
886
  onGenerateImage: D(Ee),
857
- onToggleTable: Xe,
887
+ onToggleTable: Be,
858
888
  onToggleLabels: Ue,
859
889
  onToggleStack: Ze,
860
890
  onToggleTooltip: Ge,
@@ -912,32 +942,32 @@ const ll = ["id"], tl = ["onClick"], ol = {
912
942
  e.$slots.optionFullscreen ? {
913
943
  name: "optionFullscreen",
914
944
  fn: m(({ toggleFullscreen: o, isFullscreen: i }) => [
915
- x(e.$slots, "optionFullscreen", B(X({ toggleFullscreen: o, isFullscreen: i })), void 0, !0)
945
+ x(e.$slots, "optionFullscreen", Y(B({ toggleFullscreen: o, isFullscreen: i })), void 0, !0)
916
946
  ]),
917
947
  key: "7"
918
948
  } : void 0,
919
949
  e.$slots.optionAnnotator ? {
920
950
  name: "optionAnnotator",
921
951
  fn: m(({ toggleAnnotator: o, isAnnotator: i }) => [
922
- x(e.$slots, "optionAnnotator", B(X({ toggleAnnotator: o, isAnnotator: i })), void 0, !0)
952
+ x(e.$slots, "optionAnnotator", Y(B({ toggleAnnotator: o, isAnnotator: i })), void 0, !0)
923
953
  ]),
924
954
  key: "8"
925
955
  } : void 0
926
956
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasLabel", "hasStack", "hasFullscreen", "hasTable", "isFullscreen", "isTooltip", "isStacked", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : _("", !0),
927
957
  K("div", {
928
958
  class: "vue-ui-xy-canvas",
929
- style: J(`position: relative; aspect-ratio: ${Ie.value}`),
959
+ style: J(`position: relative; aspect-ratio: ${Oe.value}`),
930
960
  ref_key: "container",
931
961
  ref: Z
932
962
  }, [
933
- ye.value ? (w(), q("canvas", {
963
+ fe.value ? (S(), q("canvas", {
934
964
  key: 0,
935
965
  ref_key: "canvas",
936
966
  ref: z,
937
967
  style: { width: "100%", height: "100%" },
938
- onMousemove: l[0] || (l[0] = (o) => ga(o)),
968
+ onMousemove: t[0] || (t[0] = (o) => ga(o)),
939
969
  onMouseleave: pa
940
- }, null, 544)) : (w(), F(Qa, {
970
+ }, null, 544)) : (S(), F(Qa, {
941
971
  key: 1,
942
972
  config: {
943
973
  type: "line",
@@ -971,21 +1001,21 @@ const ll = ["id"], tl = ["onClick"], ol = {
971
1001
  isCustom: D(Je)(a.value.style.chart.tooltip.customFormat)
972
1002
  }, {
973
1003
  "tooltip-before": m(() => [
974
- x(e.$slots, "tooltip-before", B(X({ ...Ce.value })), void 0, !0)
1004
+ x(e.$slots, "tooltip-before", Y(B({ ...Ce.value })), void 0, !0)
975
1005
  ]),
976
1006
  "tooltip-after": m(() => [
977
- x(e.$slots, "tooltip-after", B(X({ ...Ce.value })), void 0, !0)
1007
+ x(e.$slots, "tooltip-after", Y(B({ ...Ce.value })), void 0, !0)
978
1008
  ]),
979
1009
  _: 3
980
1010
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "position", "offsetY", "parent", "content", "backgroundOpacity", "isCustom"])
981
1011
  ], 4),
982
1012
  K("div", {
983
1013
  ref_key: "chartSlicer",
984
- ref: Te,
1014
+ ref: Me,
985
1015
  style: J(`width:100%;background:${a.value.style.chart.backgroundColor}`),
986
1016
  "data-html2canvas-ignore": ""
987
1017
  }, [
988
- a.value.style.chart.zoom.show && I.value > 1 ? (w(), F(Va, {
1018
+ a.value.style.chart.zoom.show && O.value > 1 ? (S(), F(Va, {
989
1019
  key: `slicer_${we.value}`,
990
1020
  background: a.value.style.chart.zoom.color,
991
1021
  borderColor: a.value.style.chart.backgroundColor,
@@ -996,18 +1026,18 @@ const ll = ["id"], tl = ["onClick"], ol = {
996
1026
  textColor: a.value.style.chart.color,
997
1027
  inputColor: a.value.style.chart.zoom.color,
998
1028
  selectColor: a.value.style.chart.zoom.highlightColor,
999
- max: I.value,
1029
+ max: O.value,
1000
1030
  min: 0,
1001
1031
  valueStart: r.value.start,
1002
1032
  valueEnd: r.value.end,
1003
1033
  start: r.value.start,
1004
- "onUpdate:start": l[1] || (l[1] = (o) => r.value.start = o),
1034
+ "onUpdate:start": t[1] || (t[1] = (o) => r.value.start = o),
1005
1035
  end: r.value.end,
1006
- "onUpdate:end": l[2] || (l[2] = (o) => r.value.end = o),
1036
+ "onUpdate:end": t[2] || (t[2] = (o) => r.value.end = o),
1007
1037
  onReset: _e
1008
1038
  }, {
1009
1039
  "reset-action": m(({ reset: o }) => [
1010
- x(e.$slots, "reset-action", B(X({ reset: o })), void 0, !0)
1040
+ x(e.$slots, "reset-action", Y(B({ reset: o })), void 0, !0)
1011
1041
  ]),
1012
1042
  _: 3
1013
1043
  }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end"])) : _("", !0)
@@ -1016,11 +1046,11 @@ const ll = ["id"], tl = ["onClick"], ol = {
1016
1046
  ref_key: "chartLegend",
1017
1047
  ref: ze
1018
1048
  }, [
1019
- a.value.style.chart.legend.show && ye.value ? (w(), F(Za, {
1049
+ a.value.style.chart.legend.show && fe.value ? (S(), F(Za, {
1020
1050
  legendSet: We.value,
1021
1051
  config: ma.value,
1022
- key: `legend_${fe.value}`,
1023
- onClickMarker: l[3] || (l[3] = ({ i: o }) => He(o))
1052
+ key: `legend_${ye.value}`,
1053
+ onClickMarker: t[3] || (t[3] = ({ i: o }) => He(o))
1024
1054
  }, {
1025
1055
  item: m(({ legend: o, index: i }) => [
1026
1056
  K("div", {
@@ -1034,18 +1064,18 @@ const ll = ["id"], tl = ["onClick"], ol = {
1034
1064
  legend: We.value
1035
1065
  }, void 0, !0)
1036
1066
  ], 512),
1037
- e.$slots.watermark ? (w(), q("div", ol, [
1038
- x(e.$slots, "watermark", B(X({ isPrinting: D(Oe) || D(Pe) })), void 0, !0)
1067
+ e.$slots.watermark ? (S(), q("div", ol, [
1068
+ x(e.$slots, "watermark", Y(B({ isPrinting: D(Ie) || D(Pe) })), void 0, !0)
1039
1069
  ])) : _("", !0),
1040
- e.$slots.source ? (w(), q("div", {
1070
+ e.$slots.source ? (S(), q("div", {
1041
1071
  key: 3,
1042
1072
  ref_key: "source",
1043
- ref: Me,
1073
+ ref: Te,
1044
1074
  dir: "auto"
1045
1075
  }, [
1046
1076
  x(e.$slots, "source", {}, void 0, !0)
1047
1077
  ], 512)) : _("", !0),
1048
- r.value.end - r.value.start < 200 ? (w(), F(Ja, {
1078
+ r.value.end - r.value.start < 200 ? (S(), F(Ja, {
1049
1079
  key: 4,
1050
1080
  hideDetails: "",
1051
1081
  config: {
@@ -1062,14 +1092,14 @@ const ll = ["id"], tl = ["onClick"], ol = {
1062
1092
  }
1063
1093
  }, {
1064
1094
  content: m(() => [
1065
- (w(), F(Ka, {
1095
+ (S(), F(Ka, {
1066
1096
  key: `table_${he.value}`,
1067
1097
  colNames: se.value.colNames,
1068
1098
  head: se.value.head,
1069
1099
  body: se.value.body,
1070
1100
  config: se.value.config,
1071
1101
  title: `${a.value.style.chart.title.text}${a.value.style.chart.title.subtitle.text ? ` : ${a.value.style.chart.title.subtitle.text}` : ""}`,
1072
- onClose: l[4] || (l[4] = (o) => u.value.showTable = !1)
1102
+ onClose: t[4] || (t[4] = (o) => u.value.showTable = !1)
1073
1103
  }, {
1074
1104
  th: m(({ th: o }) => [
1075
1105
  K("div", { innerHTML: o }, null, 8, rl)
@@ -1082,7 +1112,7 @@ const ll = ["id"], tl = ["onClick"], ol = {
1082
1112
  ]),
1083
1113
  _: 1
1084
1114
  }, 8, ["config"])) : _("", !0),
1085
- a.value.userOptions.buttons.annotator && h.value.length ? (w(), F(el, {
1115
+ a.value.userOptions.buttons.annotator && h.value.length ? (S(), F(el, {
1086
1116
  key: 5,
1087
1117
  parent: U.value,
1088
1118
  backgroundColor: a.value.style.chart.backgroundColor,
@@ -1092,7 +1122,7 @@ const ll = ["id"], tl = ["onClick"], ol = {
1092
1122
  }, null, 8, ["parent", "backgroundColor", "color", "active"])) : _("", !0)
1093
1123
  ], 14, ll));
1094
1124
  }
1095
- }, Ll = /* @__PURE__ */ al(ul, [["__scopeId", "data-v-ebae8991"]]);
1125
+ }, Ll = /* @__PURE__ */ al(ul, [["__scopeId", "data-v-1359e2b5"]]);
1096
1126
  export {
1097
1127
  Ll as default
1098
1128
  };