vue-data-ui 2.3.74 → 2.3.75

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 (193) hide show
  1. package/dist/{Arrow-CYCrAySW.js → Arrow-BTG7M25z.js} +1 -1
  2. package/dist/{Arrow-DK6F5Fq3.cjs → Arrow-CZK77NmC.cjs} +1 -1
  3. package/dist/{BaseIcon-DBHVtm3A.cjs → BaseIcon--PMhZ3f-.cjs} +1 -1
  4. package/dist/{BaseIcon-kBIAYqUO.js → BaseIcon-BAOfPaXs.js} +1 -1
  5. package/dist/{DataTable-CKdV-L0e.js → DataTable-CQANRZju.js} +2 -2
  6. package/dist/{DataTable-BNFSPjhv.cjs → DataTable-DjQzrklZ.cjs} +1 -1
  7. package/dist/{Legend-Do2kcWFT.cjs → Legend-CtbPB0Bo.cjs} +1 -1
  8. package/dist/{Legend-Cj7T-DqJ.js → Legend-DX1kv21U.js} +1 -1
  9. package/dist/{Shape-DRDUAe_o.cjs → Shape-CadGs1Am.cjs} +1 -1
  10. package/dist/{Shape-Bo8ZjViG.js → Shape-kqcyauhC.js} +1 -1
  11. package/dist/{Slicer-D8jHSP7U.cjs → Slicer-i_oECHxH.cjs} +1 -1
  12. package/dist/{Slicer-4nGKvUYF.js → Slicer-yaJs-izT.js} +2 -2
  13. package/dist/{Title-DZjnxQdN.js → Title-C26I_HC3.js} +1 -1
  14. package/dist/{Title-D5cATWsL.cjs → Title-XBiDFYKD.cjs} +1 -1
  15. package/dist/{Tooltip--kgFEVZs.js → Tooltip-CH8GmDCG.js} +1 -1
  16. package/dist/{Tooltip-B8yLaegk.cjs → Tooltip-DxtWkIt5.cjs} +1 -1
  17. package/dist/{index-C8SH0f2u.js → index-Cm4Iry5c.js} +1 -1
  18. package/dist/{index-D_32ZGWd.cjs → index-DYUBiaGS.cjs} +1 -1
  19. package/dist/style.css +1 -1
  20. package/dist/{useNestedProp-lS_T5lM3.js → useNestedProp-CurQIHTa.js} +1 -1
  21. package/dist/{useNestedProp-BvvH633N.cjs → useNestedProp-w7AMWWmz.cjs} +1 -1
  22. package/dist/{usePrinter-Dj50NAxo.js → usePrinter-B8RnF8_q.js} +1 -1
  23. package/dist/{usePrinter-BouFNHWR.cjs → usePrinter-ZlHxdaEz.cjs} +1 -1
  24. package/dist/{vue-data-ui-v_BbbLtJ.cjs → vue-data-ui-B7amrpT-.cjs} +1 -1
  25. package/dist/{vue-data-ui-DoXqU7xC.js → vue-data-ui-Bj6kEIpq.js} +57 -57
  26. package/dist/vue-data-ui.cjs +1 -1
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/vue-ui-3d-bar-BAz41kL7.cjs +19 -0
  29. package/dist/{vue-ui-3d-bar-CnoPOJHm.js → vue-ui-3d-bar-Bg9IgVVc.js} +499 -486
  30. package/dist/{vue-ui-accordion-Cka6b_Up.cjs → vue-ui-accordion-1WxrfiCH.cjs} +1 -1
  31. package/dist/{vue-ui-accordion-YHleIgkV.js → vue-ui-accordion-Cb6XBCbu.js} +3 -3
  32. package/dist/{vue-ui-age-pyramid-CENg8fDg.js → vue-ui-age-pyramid-BhwmnQru.js} +182 -169
  33. package/dist/vue-ui-age-pyramid-CHNvRXx8.cjs +1 -0
  34. package/dist/{vue-ui-annotator-ByYg6QMs.cjs → vue-ui-annotator-B22cdlhA.cjs} +1 -1
  35. package/dist/{vue-ui-annotator-VJOLUkqJ.js → vue-ui-annotator-BiHQvMdW.js} +1 -1
  36. package/dist/{vue-ui-candlestick-CHsGD3bx.js → vue-ui-candlestick-Cl9dyh4l.js} +295 -279
  37. package/dist/vue-ui-candlestick-D7DjdYyw.cjs +2 -0
  38. package/dist/vue-ui-carousel-table-Do5cYRqN.cjs +1 -0
  39. package/dist/{vue-ui-carousel-table-RAtX3VBu.js → vue-ui-carousel-table-QsONwqNz.js} +106 -91
  40. package/dist/vue-ui-chestnut-CyE8MafY.cjs +6 -0
  41. package/dist/{vue-ui-chestnut-B5GQX0J_.js → vue-ui-chestnut-Drb01WMC.js} +215 -204
  42. package/dist/{vue-ui-cursor-CMm7XSSG.js → vue-ui-cursor-BP04_XbB.js} +2 -2
  43. package/dist/{vue-ui-cursor-DnZqLj21.cjs → vue-ui-cursor-DZeTQBKz.cjs} +1 -1
  44. package/dist/{vue-ui-dashboard-Ck_5L3eu.js → vue-ui-dashboard-BWdx5gjZ.js} +2 -2
  45. package/dist/{vue-ui-dashboard-DgEQJnLr.cjs → vue-ui-dashboard-Z63RE1XS.cjs} +1 -1
  46. package/dist/{vue-ui-digits-UvwUdi6U.cjs → vue-ui-digits-CBQaHW6a.cjs} +1 -1
  47. package/dist/{vue-ui-digits--ULH35um.js → vue-ui-digits-DUhkLcmd.js} +2 -2
  48. package/dist/vue-ui-donut-D2YJYgOB.cjs +1 -0
  49. package/dist/{vue-ui-donut-QQ1fWWvc.js → vue-ui-donut-DRPSwmGr.js} +376 -362
  50. package/dist/{vue-ui-donut-evolution-Cx8kBB_7.js → vue-ui-donut-evolution-gRXAyxq8.js} +270 -255
  51. package/dist/vue-ui-donut-evolution-jAMVgNHQ.cjs +1 -0
  52. package/dist/{vue-ui-dumbbell-BYvwHpU8.js → vue-ui-dumbbell-CQo5jqSK.js} +232 -213
  53. package/dist/vue-ui-dumbbell-DLfZcrXq.cjs +9 -0
  54. package/dist/vue-ui-flow-BQ3UbMUb.js +481 -0
  55. package/dist/vue-ui-flow-BlX2-eEC.cjs +1 -0
  56. package/dist/{vue-ui-galaxy-B0L57aec.js → vue-ui-galaxy-BHWugUKG.js} +175 -162
  57. package/dist/vue-ui-galaxy-Cax5o6Yl.cjs +1 -0
  58. package/dist/vue-ui-gauge-DG6_kvKh.js +500 -0
  59. package/dist/vue-ui-gauge-DpGcv_00.cjs +1 -0
  60. package/dist/vue-ui-gizmo-D9Vh9Rmr.cjs +1 -0
  61. package/dist/{vue-ui-gizmo-D2RfM55X.js → vue-ui-gizmo-bV148qAf.js} +66 -53
  62. package/dist/{vue-ui-heatmap-DKM0DH41.js → vue-ui-heatmap-BZZUvnMa.js} +157 -143
  63. package/dist/vue-ui-heatmap-B_ELXKKV.cjs +1 -0
  64. package/dist/vue-ui-kpi-C5v7qQvZ.js +98 -0
  65. package/dist/vue-ui-kpi-CwVAvTB2.cjs +1 -0
  66. package/dist/{vue-ui-mini-loader-MywnWlYI.js → vue-ui-mini-loader-BdKizX_J.js} +2 -2
  67. package/dist/{vue-ui-mini-loader-CLP19Txv.cjs → vue-ui-mini-loader-DZNY-3rr.cjs} +1 -1
  68. package/dist/{vue-ui-molecule-CLI9iTRE.js → vue-ui-molecule-MKyrhqqm.js} +177 -167
  69. package/dist/vue-ui-molecule-bva6OvPc.cjs +1 -0
  70. package/dist/{vue-ui-mood-radar-O30wZo9a.js → vue-ui-mood-radar-BNIFFvq0.js} +172 -161
  71. package/dist/vue-ui-mood-radar-CzQOAyNI.cjs +1 -0
  72. package/dist/{vue-ui-nested-donuts-D8o4TqTt.js → vue-ui-nested-donuts-BDAlZrMF.js} +377 -364
  73. package/dist/vue-ui-nested-donuts-CxdZC6JF.cjs +17 -0
  74. package/dist/{vue-ui-onion-Hmcke6xB.js → vue-ui-onion-CFa4VD-w.js} +191 -177
  75. package/dist/vue-ui-onion-Df7YcsVR.cjs +5 -0
  76. package/dist/vue-ui-parallel-coordinate-plot-D7Q2zfcR.cjs +8 -0
  77. package/dist/{vue-ui-parallel-coordinate-plot-CyChE3NP.js → vue-ui-parallel-coordinate-plot-DmqYXT-U.js} +298 -284
  78. package/dist/{vue-ui-quadrant-DimTQdAj.js → vue-ui-quadrant-D5jHkq9g.js} +347 -334
  79. package/dist/vue-ui-quadrant-ZqhcVYf5.cjs +1 -0
  80. package/dist/{vue-ui-quick-chart-DxJvENid.js → vue-ui-quick-chart-BjXXSx7V.js} +483 -469
  81. package/dist/vue-ui-quick-chart-Dt9AsEU6.cjs +15 -0
  82. package/dist/vue-ui-radar-2EuZr7i2.cjs +1 -0
  83. package/dist/{vue-ui-radar-D_FieunT.js → vue-ui-radar-CW8EKW4o.js} +202 -189
  84. package/dist/{vue-ui-rating-BHW2Onru.cjs → vue-ui-rating-DrtLvVA0.cjs} +1 -1
  85. package/dist/{vue-ui-rating-DF1BpH4E.js → vue-ui-rating-eSWsmJUU.js} +2 -2
  86. package/dist/vue-ui-relation-circle-C60OTe88.cjs +1 -0
  87. package/dist/vue-ui-relation-circle-DiUCpEqa.js +322 -0
  88. package/dist/{vue-ui-rings-BqS-iece.js → vue-ui-rings-BxhLbyG0.js} +203 -189
  89. package/dist/vue-ui-rings-CHq-a5ZS.cjs +2 -0
  90. package/dist/{vue-ui-scatter-Dns49Nht.js → vue-ui-scatter-DQchX_mM.js} +284 -270
  91. package/dist/vue-ui-scatter-DZUZUbnk.cjs +1 -0
  92. package/dist/{vue-ui-screenshot-5Gsnd0Wr.js → vue-ui-screenshot-CLa9vMzM.js} +1 -1
  93. package/dist/{vue-ui-screenshot---q062Kd.cjs → vue-ui-screenshot-SLSIpqx2.cjs} +1 -1
  94. package/dist/{vue-ui-skeleton-B4eWLjH3.js → vue-ui-skeleton-C1oUnz7R.js} +2 -2
  95. package/dist/{vue-ui-skeleton-fVPw-oIR.cjs → vue-ui-skeleton-ClpTCY1x.cjs} +1 -1
  96. package/dist/{vue-ui-smiley-B8Tyunn3.js → vue-ui-smiley-CmWHSt1S.js} +2 -2
  97. package/dist/{vue-ui-smiley-YfHmv0rQ.cjs → vue-ui-smiley-Daw8fPDy.cjs} +1 -1
  98. package/dist/vue-ui-spark-trend-CO69Dg31.js +263 -0
  99. package/dist/vue-ui-spark-trend-DmDlv8ie.cjs +1 -0
  100. package/dist/{vue-ui-sparkbar-9DBvdYn7.js → vue-ui-sparkbar-BRlqpe4e.js} +95 -87
  101. package/dist/vue-ui-sparkbar-BUGdi0BY.cjs +1 -0
  102. package/dist/vue-ui-sparkgauge-CCxKzDjT.cjs +1 -0
  103. package/dist/vue-ui-sparkgauge-CbuFESsM.js +178 -0
  104. package/dist/{vue-ui-sparkhistogram-BBUVmco4.js → vue-ui-sparkhistogram-B4-hrDHz.js} +79 -68
  105. package/dist/vue-ui-sparkhistogram-XtqX10_t.cjs +1 -0
  106. package/dist/vue-ui-sparkline-BZTEi9YC.cjs +1 -0
  107. package/dist/{vue-ui-sparkline-CeqNV6Re.js → vue-ui-sparkline-DlXNmG6M.js} +142 -123
  108. package/dist/vue-ui-sparkstackbar-CDmZeXnq.cjs +1 -0
  109. package/dist/{vue-ui-sparkstackbar-C3GMC1eW.js → vue-ui-sparkstackbar-J1YowQmP.js} +120 -104
  110. package/dist/{vue-ui-stackbar-DyGPrFxi.js → vue-ui-stackbar-CKIDqkkY.js} +235 -222
  111. package/dist/vue-ui-stackbar-CXGWukoJ.cjs +6 -0
  112. package/dist/vue-ui-strip-plot-CvmoRcYN.cjs +1 -0
  113. package/dist/{vue-ui-strip-plot-y1AnVJmq.js → vue-ui-strip-plot-JVLwIy0j.js} +246 -232
  114. package/dist/{vue-ui-table-B4kfykAO.js → vue-ui-table-BSi_cHh7.js} +1 -1
  115. package/dist/{vue-ui-table-xWvAQS-s.cjs → vue-ui-table-Dqi64VE7.cjs} +1 -1
  116. package/dist/vue-ui-table-heatmap-BwghEh5t.cjs +1 -0
  117. package/dist/{vue-ui-table-heatmap-YZRSzwRM.js → vue-ui-table-heatmap-CfvW3rcm.js} +106 -95
  118. package/dist/{vue-ui-table-sparkline-C0v2r4Kf.js → vue-ui-table-sparkline-Y6Lrrzxy.js} +151 -138
  119. package/dist/vue-ui-table-sparkline-bIy3kkHB.cjs +1 -0
  120. package/dist/{vue-ui-thermometer-D5qurIy7.js → vue-ui-thermometer-BPTs7Nxc.js} +116 -104
  121. package/dist/vue-ui-thermometer-DDtxYr7w.cjs +1 -0
  122. package/dist/{vue-ui-timer-VWjovnKL.js → vue-ui-timer-CkB7eZaE.js} +191 -176
  123. package/dist/vue-ui-timer-DRSSYxOX.cjs +64 -0
  124. package/dist/{vue-ui-tiremarks-jH6cdQOJ.js → vue-ui-tiremarks-BbOaoY8S.js} +115 -103
  125. package/dist/vue-ui-tiremarks-Bttwg3-p.cjs +1 -0
  126. package/dist/vue-ui-treemap-Chq0WQPe.cjs +1 -0
  127. package/dist/{vue-ui-treemap-BCc5sQLB.js → vue-ui-treemap-CoaK3wBl.js} +251 -237
  128. package/dist/{vue-ui-vertical-bar-2In_g5iC.js → vue-ui-vertical-bar-BA43_uHV.js} +314 -299
  129. package/dist/vue-ui-vertical-bar-BLIUt-HT.cjs +4 -0
  130. package/dist/{vue-ui-waffle-OzU830VX.js → vue-ui-waffle-BoEf8CcG.js} +285 -265
  131. package/dist/vue-ui-waffle-NBjY0mko.cjs +1 -0
  132. package/dist/vue-ui-wheel-Bgo2jpj0.js +255 -0
  133. package/dist/vue-ui-wheel-t5bI4a-P.cjs +1 -0
  134. package/dist/vue-ui-word-cloud-DPW_-Hzz.cjs +1 -0
  135. package/dist/vue-ui-word-cloud-Jd9_JUyi.js +512 -0
  136. package/dist/{vue-ui-xy-DuJtYXKl.js → vue-ui-xy-BMBYAC4z.js} +300 -274
  137. package/dist/vue-ui-xy-CBHEBcZK.cjs +3 -0
  138. package/dist/vue-ui-xy-canvas-D5FqRF4p.cjs +9 -0
  139. package/dist/{vue-ui-xy-canvas-CKibMJHh.js → vue-ui-xy-canvas-LOsQ_DM-.js} +345 -327
  140. package/package.json +1 -1
  141. package/dist/vue-ui-3d-bar-CwCEoPX-.cjs +0 -19
  142. package/dist/vue-ui-age-pyramid-GqCNpd_h.cjs +0 -1
  143. package/dist/vue-ui-candlestick-TdNVq_FX.cjs +0 -2
  144. package/dist/vue-ui-carousel-table-yXUSFk2u.cjs +0 -1
  145. package/dist/vue-ui-chestnut-EJj-dQSY.cjs +0 -6
  146. package/dist/vue-ui-donut-BqUBysA_.cjs +0 -1
  147. package/dist/vue-ui-donut-evolution-BXtEnop4.cjs +0 -1
  148. package/dist/vue-ui-dumbbell-CjIh7KTm.cjs +0 -9
  149. package/dist/vue-ui-flow-hp0Hpuhn.js +0 -469
  150. package/dist/vue-ui-flow-u29zqSQj.cjs +0 -1
  151. package/dist/vue-ui-galaxy-DE1HbBi-.cjs +0 -1
  152. package/dist/vue-ui-gauge-B_IZrsfj.cjs +0 -1
  153. package/dist/vue-ui-gauge-CPyyn7cL.js +0 -488
  154. package/dist/vue-ui-gizmo-DR4gacOL.cjs +0 -1
  155. package/dist/vue-ui-heatmap-DMB_eUpA.cjs +0 -1
  156. package/dist/vue-ui-kpi-BAxAY13T.js +0 -84
  157. package/dist/vue-ui-kpi-BD21xshi.cjs +0 -1
  158. package/dist/vue-ui-molecule-BNsWckH-.cjs +0 -1
  159. package/dist/vue-ui-mood-radar-BsWE1f8R.cjs +0 -1
  160. package/dist/vue-ui-nested-donuts-CYyUtXs2.cjs +0 -17
  161. package/dist/vue-ui-onion-D7TXJu5w.cjs +0 -5
  162. package/dist/vue-ui-parallel-coordinate-plot-BqZB7xKn.cjs +0 -8
  163. package/dist/vue-ui-quadrant-BPDTvxlT.cjs +0 -1
  164. package/dist/vue-ui-quick-chart-C_-ut0if.cjs +0 -15
  165. package/dist/vue-ui-radar-C5Kq19hg.cjs +0 -1
  166. package/dist/vue-ui-relation-circle-4kIYttRI.js +0 -310
  167. package/dist/vue-ui-relation-circle-DHMHHsqY.cjs +0 -1
  168. package/dist/vue-ui-rings-BqPS8NKl.cjs +0 -2
  169. package/dist/vue-ui-scatter-BLVcdf3d.cjs +0 -1
  170. package/dist/vue-ui-spark-trend-Dpv6am0Z.cjs +0 -1
  171. package/dist/vue-ui-spark-trend-Em9OqYyG.js +0 -251
  172. package/dist/vue-ui-sparkbar-BuSuwQYl.cjs +0 -1
  173. package/dist/vue-ui-sparkgauge-BN5feBzp.js +0 -167
  174. package/dist/vue-ui-sparkgauge-DKtUZMv1.cjs +0 -1
  175. package/dist/vue-ui-sparkhistogram-BmuusW02.cjs +0 -1
  176. package/dist/vue-ui-sparkline-Blzv-tIQ.cjs +0 -1
  177. package/dist/vue-ui-sparkstackbar-D__WDEMv.cjs +0 -1
  178. package/dist/vue-ui-stackbar-DFqJ5K_q.cjs +0 -6
  179. package/dist/vue-ui-strip-plot-z9fjJ6Dj.cjs +0 -1
  180. package/dist/vue-ui-table-heatmap-CGKecjtm.cjs +0 -1
  181. package/dist/vue-ui-table-sparkline-CHFZG3Tg.cjs +0 -1
  182. package/dist/vue-ui-thermometer-DoOxxVW1.cjs +0 -1
  183. package/dist/vue-ui-timer-D63zHe-I.cjs +0 -64
  184. package/dist/vue-ui-tiremarks-Cp8YEmXh.cjs +0 -1
  185. package/dist/vue-ui-treemap-DJrdEFW5.cjs +0 -1
  186. package/dist/vue-ui-vertical-bar-BfJJqN_z.cjs +0 -4
  187. package/dist/vue-ui-waffle-A2gmRbq0.cjs +0 -1
  188. package/dist/vue-ui-wheel-C9QXzWu1.js +0 -242
  189. package/dist/vue-ui-wheel-DGSh9VKq.cjs +0 -1
  190. package/dist/vue-ui-word-cloud-C2ZaVlfO.js +0 -498
  191. package/dist/vue-ui-word-cloud-DPFB1MYk.cjs +0 -1
  192. package/dist/vue-ui-xy-C-2-aijE.cjs +0 -3
  193. package/dist/vue-ui-xy-canvas-D7wf3xab.cjs +0 -9
@@ -1,20 +1,20 @@
1
- import { ref as d, computed as m, watch as ue, onMounted as ha, onBeforeUnmount as ya, openBlock as T, createElementBlock as se, normalizeStyle as A, normalizeClass as fa, createVNode as ye, createCommentVNode as U, createBlock as Z, unref as E, createSlots as ga, withCtx as b, renderSlot as k, normalizeProps as G, guardReactiveProps as V, createElementVNode as j, toDisplayString as We, createTextVNode as pa } from "vue";
2
- import { u as ma, c as ba, t as xa, a as La, p as N, b as ka, B as fe, i as q, f as J, F as Ca, d as Ye, Y as wa, o as Sa, e as za, x as Be, y as $a, q as Ta, r as Ma, w as K, l as Ra } from "./index-C8SH0f2u.js";
3
- import { d as Ia, c as Oa, a as Xe, t as Pa, l as C, r as ge, b as O, p as Ae, u as Fa } from "./useResponsive-NZB-WLRF.js";
4
- import { _ as Ea } from "./Tooltip--kgFEVZs.js";
5
- import { L as Na } from "./Legend-Cj7T-DqJ.js";
6
- import { _ as _a } from "./Title-DZjnxQdN.js";
7
- import { S as Da } from "./Slicer-4nGKvUYF.js";
8
- import { u as Ha, U as Wa } from "./usePrinter-Dj50NAxo.js";
9
- import Ya from "./vue-ui-accordion-YHleIgkV.js";
10
- import { D as Ba } from "./DataTable-CKdV-L0e.js";
11
- import Xa from "./vue-ui-skeleton-B4eWLjH3.js";
12
- import { u as Ue } from "./useNestedProp-lS_T5lM3.js";
13
- import { _ as Aa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
- const Ua = ["id"], Za = ["onClick"], Ga = {
1
+ import { ref as v, computed as b, watch as Y, onMounted as pa, onBeforeUnmount as ba, openBlock as S, createElementBlock as se, normalizeStyle as Z, normalizeClass as ma, createBlock as _, createCommentVNode as G, unref as N, createSlots as xa, withCtx as m, renderSlot as k, normalizeProps as V, guardReactiveProps as j, createElementVNode as q, createVNode as La, toDisplayString as Ue, createTextVNode as ka } from "vue";
2
+ import { u as Ca, c as wa, t as Sa, a as $a, p as D, b as za, B as ye, i as J, f as K, F as Ta, d as Ze, Y as Ma, o as Ra, e as Ia, x as Ge, y as Oa, q as Pa, r as Fa, w as Q, l as Ea } from "./index-Cm4Iry5c.js";
3
+ import { d as _a, c as Na, a as Ve, t as Da, l as C, r as fe, b as P, p as je, u as Ha } from "./useResponsive-NZB-WLRF.js";
4
+ import { _ as Wa } from "./Tooltip-CH8GmDCG.js";
5
+ import { L as Ya } from "./Legend-DX1kv21U.js";
6
+ import { _ as Ba } from "./Title-C26I_HC3.js";
7
+ import { S as Xa } from "./Slicer-yaJs-izT.js";
8
+ import { u as Aa, U as Ua } from "./usePrinter-B8RnF8_q.js";
9
+ import Za from "./vue-ui-accordion-Cb6XBCbu.js";
10
+ import { D as Ga } from "./DataTable-CQANRZju.js";
11
+ import Va from "./vue-ui-skeleton-C1oUnz7R.js";
12
+ import { u as qe } from "./useNestedProp-CurQIHTa.js";
13
+ import { _ as ja } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
+ const qa = ["id"], Ja = ["onClick"], Ka = {
15
15
  key: 2,
16
16
  class: "vue-data-ui-watermark"
17
- }, Va = ["innerHTML"], ja = {
17
+ }, Qa = ["innerHTML"], el = {
18
18
  __name: "vue-ui-xy-canvas",
19
19
  props: {
20
20
  dataset: {
@@ -31,32 +31,40 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
31
31
  }
32
32
  },
33
33
  emits: ["selectLegend"],
34
- setup(pe, { expose: Ze, emit: Ge }) {
35
- const _ = pe, { vue_ui_xy_canvas: Ve } = ma(), ne = d(ba()), Q = d(null), S = d(null), H = d(null), s = d(null), y = d(1), M = d(1), ee = d(!1), c = d(null), ae = d(""), me = d(null), w = d([]), D = d(1), P = d(!0), z = d(!0), ie = d(null), be = d(0), xe = d(0), ve = d(!1), Le = d(null), ke = d(null), Ce = d(null), ce = m(() => !!_.dataset && _.dataset.length), a = m(() => {
36
- const e = Ue({
37
- userConfig: _.config,
38
- defaultConfig: Ve
34
+ setup(ge, { expose: Je, emit: Ke }) {
35
+ const F = ge, { vue_ui_xy_canvas: Qe } = Ca(), ne = v(wa()), ee = v(null), $ = v(null), B = v(null), s = v(null), y = v(1), M = v(1), ae = v(!1), d = v(null), le = v(""), pe = v(null), w = v([]), H = v(1), E = v(!0), z = v(!0), ie = v(null), be = v(0), me = v(0), ve = v(!1), xe = v(null), Le = v(null), ke = v(null), Ce = v(0), we = v(0), Se = v(0), ce = b(() => !!F.dataset && F.dataset.length), a = b({
36
+ get: () => $e(),
37
+ set: (e) => e
38
+ });
39
+ function $e() {
40
+ const e = qe({
41
+ userConfig: F.config,
42
+ defaultConfig: Qe
39
43
  });
40
44
  return e.theme ? {
41
- ...Ue({
42
- userConfig: xa.vue_ui_xy_canvas[e.theme] || _.config,
45
+ ...qe({
46
+ userConfig: Sa.vue_ui_xy_canvas[e.theme] || F.config,
43
47
  defaultConfig: e
44
48
  }),
45
- customPalette: La[e.theme] || N
49
+ customPalette: $a[e.theme] || D
46
50
  } : e;
47
- }), we = d(a.value.style.chart.aspectRatio), { isPrinting: Se, isImaging: ze, generatePdf: $e, generateImage: Te } = Ha({
51
+ }
52
+ Y(() => F.config, (e) => {
53
+ a.value = $e(), _e(), Ce.value += 1, we.value += 1, Se.value += 1;
54
+ }, { deep: !0 });
55
+ const ze = v(a.value.style.chart.aspectRatio), { isPrinting: Te, isImaging: Me, generatePdf: Re, generateImage: Ie } = Aa({
48
56
  elementId: `xy_canvas_${ne.value}`,
49
57
  fileName: a.value.style.chart.title.text || "vue-ui-xy-canvas"
50
- }), u = d({
58
+ }), r = v({
51
59
  showTable: a.value.table.show,
52
60
  showDataLabels: a.value.style.chart.dataLabels.show,
53
61
  stacked: a.value.style.chart.stacked,
54
62
  showTooltip: a.value.style.chart.tooltip.show
55
63
  });
56
- function je(e) {
57
- ve.value = e, xe.value += 1;
64
+ function ea(e) {
65
+ ve.value = e, me.value += 1;
58
66
  }
59
- const Me = m(() => ka(a.value.customPalette)), F = m(() => Math.max(...W.value.filter((e, t) => !w.value.includes(e.absoluteIndex)).map((e) => e.series.length))), l = m(() => {
67
+ const Oe = b(() => za(a.value.customPalette)), R = b(() => W.value ? Math.max(...W.value.filter((e, t) => !w.value.includes(e.absoluteIndex)).map((e) => e.series.length)) : 0), l = b(() => {
60
68
  const e = y.value - y.value * (a.value.style.chart.paddingProportions.left + a.value.style.chart.paddingProportions.right);
61
69
  return {
62
70
  canvasWidth: y.value,
@@ -67,27 +75,27 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
67
75
  bottom: M.value - M.value * a.value.style.chart.paddingProportions.bottom,
68
76
  width: e,
69
77
  height: M.value - M.value * (a.value.style.chart.paddingProportions.top + a.value.style.chart.paddingProportions.bottom),
70
- slot: e / (r.value.end - r.value.start)
78
+ slot: e / (u.value.end - u.value.start)
71
79
  };
72
80
  });
73
- function Re(e, t) {
81
+ function Pe(e, t) {
74
82
  return e / t;
75
83
  }
76
- function qe({ hasAutoScale: e, series: t, min: o, max: i, scale: v, yOffset: f, individualHeight: n, stackIndex: g = null }) {
84
+ function aa({ hasAutoScale: e, series: t, min: o, max: i, scale: c, yOffset: f, individualHeight: n, stackIndex: g = null }) {
77
85
  return t.map((L, he) => {
78
- const $ = v.min < 0 ? Math.abs(v.min) : 0, R = Re(L + $, $ + v.max);
79
- let I, Y;
80
- e && (I = Math.abs(v.min), Y = Re(L + I, v.max + I));
81
- let B = 0;
82
- return g === null ? B = l.value.bottom - l.value.height * (e ? Y : R) : B = l.value.bottom - f - n * (e ? Y : R), {
86
+ const T = c.min < 0 ? Math.abs(c.min) : 0, I = Pe(L + T, T + c.max);
87
+ let O, X;
88
+ e && (O = Math.abs(c.min), X = Pe(L + O, c.max + O));
89
+ let A = 0;
90
+ return g === null ? A = l.value.bottom - l.value.height * (e ? X : I) : A = l.value.bottom - f - n * (e ? X : I), {
83
91
  x: l.value.left + l.value.slot * he + l.value.slot / 2,
84
- y: B,
92
+ y: A,
85
93
  value: L
86
94
  };
87
95
  });
88
96
  }
89
- const p = m(() => {
90
- const e = Math.min(...W.value.filter((n, g) => !w.value.includes(n.absoluteIndex)).flatMap((n) => n.series.slice(r.value.start, r.value.end))), t = Math.max(...W.value.filter((n, g) => !w.value.includes(n.absoluteIndex)).flatMap((n) => n.series.slice(r.value.start, r.value.end))), o = fe(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, v = l.value.bottom - l.value.height * (i / (o.max + i)), f = o.ticks.map((n) => ({
97
+ const p = b(() => {
98
+ const e = Math.min(...W.value.filter((n, g) => !w.value.includes(n.absoluteIndex)).flatMap((n) => n.series.slice(u.value.start, u.value.end))), t = Math.max(...W.value.filter((n, g) => !w.value.includes(n.absoluteIndex)).flatMap((n) => n.series.slice(u.value.start, u.value.end))), o = ye(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) => ({
91
99
  y: l.value.bottom - l.value.height * ((n + i) / (o.max + i)),
92
100
  x: l.value.left - 8,
93
101
  value: n
@@ -98,94 +106,98 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
98
106
  min: e,
99
107
  scale: o,
100
108
  yLabels: f,
101
- zero: v
109
+ zero: c
102
110
  };
103
- }), Je = m(() => h.value.map((e) => `
111
+ }), la = b(() => h.value.map((e) => `
104
112
  <div style="display:flex;flex-direction:row;gap:6px;align-items:center;">
105
113
  <svg viewBox="0 0 10 10" height="12" width="12">
106
114
  <circle cx="5" cy="5" r="5" fill="${e.color}"/>
107
115
  </svg>
108
116
  <span>${e.name ? e.name + ": " : ""}</span>
109
- <span>${q(
117
+ <span>${J(
110
118
  a.value.style.chart.dataLabels.formatter,
111
- e.series[c.value],
112
- J({
119
+ e.series[d.value],
120
+ K({
113
121
  p: e.prefix || "",
114
- v: e.series[c.value],
122
+ v: e.series[d.value],
115
123
  s: e.suffix || "",
116
124
  r: e.rounding || 0
117
125
  }),
118
- { datapoint: e, seriesIndex: c.value }
126
+ { datapoint: e, seriesIndex: d.value }
119
127
  )}</span>
120
128
  </div>
121
- `)), W = m(() => _.dataset.map((e, t) => ({
129
+ `)), W = b(() => F.dataset.map((e, t) => ({
122
130
  ...e,
123
- series: Ca(e.series),
131
+ series: Ta(e.series),
124
132
  absoluteIndex: t,
125
- color: Ye(e.color || Me.value[t] || N[t] || N[t % N.length])
126
- }))), h = m(() => wa(W.value.filter((e, t) => !w.value.includes(e.absoluteIndex))).map((e, t) => ({
133
+ color: Ze(e.color || Oe.value[t] || D[t] || D[t % D.length])
134
+ })));
135
+ Y(R, (e) => {
136
+ e && Fe();
137
+ });
138
+ const h = b(() => Ma(W.value.filter((e, t) => !w.value.includes(e.absoluteIndex))).map((e, t) => ({
127
139
  ...e,
128
- series: e.series.slice(r.value.start, r.value.end)
140
+ series: e.series.slice(u.value.start, u.value.end)
129
141
  })).map((e, t) => {
130
142
  let o = Math.min(...e.series) || 0, i = Math.max(...e.series) || 1;
131
143
  o === i && (o = o >= 0 ? i - 1 : o, i = i >= 0 ? i : o + 1);
132
144
  const f = {
133
- ratios: e.series.filter((X) => ![null, void 0].includes(X)).map((X) => (X - o) / (i - o)),
145
+ ratios: e.series.filter((U) => ![null, void 0].includes(U)).map((U) => (U - o) / (i - o)),
134
146
  valueMin: o,
135
147
  valueMax: i
136
148
  }, n = e.scaleSteps || a.value.style.chart.scale.ticks;
137
149
  let g;
138
- e.autoScaling ? g = fe(f.valueMin, f.valueMax, n) : g = fe(f.valueMin < 0 ? f.valueMin : 0, f.valueMax <= 0 ? 0 : f.valueMax, n);
139
- const L = u.value.stacked ? l.value.height * (1 - e.cumulatedStackRatio) : 0, he = u.value.stacked ? l.value.height / a.value.style.chart.stackGap : 0, $ = u.value.stacked ? l.value.height * e.stackRatio - he : l.value.height, R = g.min < 0 ? Math.abs(g.min) : 0;
140
- let I;
141
- e.autoScaling && u.value.stacked && i <= 0 ? I = l.value.bottom - L - $ : I = l.value.bottom - L - $ * (R / (g.max + R));
142
- const Y = g.ticks.map((X, da) => ({
143
- y: l.value.bottom - L - $ * (da / (g.ticks.length - 1)),
150
+ e.autoScaling ? g = ye(f.valueMin, f.valueMax, n) : g = ye(f.valueMin < 0 ? f.valueMin : 0, f.valueMax <= 0 ? 0 : f.valueMax, n);
151
+ const L = r.value.stacked ? l.value.height * (1 - e.cumulatedStackRatio) : 0, he = r.value.stacked ? l.value.height / a.value.style.chart.stackGap : 0, T = r.value.stacked ? l.value.height * e.stackRatio - he : l.value.height, I = g.min < 0 ? Math.abs(g.min) : 0;
152
+ let O;
153
+ e.autoScaling && r.value.stacked && i <= 0 ? O = l.value.bottom - L - T : O = l.value.bottom - L - T * (I / (g.max + I));
154
+ const X = g.ticks.map((U, ga) => ({
155
+ y: l.value.bottom - L - T * (ga / (g.ticks.length - 1)),
144
156
  x: l.value.left - 8,
145
- value: X
146
- })), B = qe({
147
- hasAutoScale: u.value.stacked && e.autoScaling,
157
+ value: U
158
+ })), A = aa({
159
+ hasAutoScale: r.value.stacked && e.autoScaling,
148
160
  series: e.series,
149
- min: u.value.stacked ? o : p.value.min,
150
- max: u.value.stacked ? i : p.value.max,
151
- scale: u.value.stacked ? g : p.value.scale,
161
+ min: r.value.stacked ? o : p.value.min,
162
+ max: r.value.stacked ? i : p.value.max,
163
+ scale: r.value.stacked ? g : p.value.scale,
152
164
  yOffset: L,
153
- individualHeight: $,
154
- stackIndex: u.value.stacked ? t : null
165
+ individualHeight: T,
166
+ stackIndex: r.value.stacked ? t : null
155
167
  });
156
168
  return {
157
169
  ...e,
158
- coordinatesLine: B,
170
+ coordinatesLine: A,
159
171
  min: o,
160
172
  max: i,
161
173
  localScale: g,
162
- localZero: I,
163
- localMin: R,
164
- localYLabels: Y,
174
+ localZero: O,
175
+ localMin: I,
176
+ localYLabels: X,
165
177
  yOffset: L,
166
- individualHeight: $
178
+ individualHeight: T
167
179
  };
168
- })), r = d({
180
+ })), u = v({
169
181
  start: 0,
170
- end: F.value
182
+ end: R.value
171
183
  });
172
- function Ke() {
173
- r.value = {
184
+ function Fe() {
185
+ u.value = {
174
186
  start: 0,
175
- end: F.value
187
+ end: R.value
176
188
  }, be.value += 1;
177
189
  }
178
- const Qe = m(() => h.value.filter((e) => ["line", "plot", void 0].includes(e.type))), x = m(() => h.value.filter((e) => e.type === "bar"));
179
- function ea() {
180
- if (!S.value)
190
+ const ta = b(() => h.value.filter((e) => ["line", "plot", void 0].includes(e.type))), x = b(() => h.value.filter((e) => e.type === "bar"));
191
+ function oa() {
192
+ if (!$.value)
181
193
  return;
182
- const e = H.value.offsetWidth, t = H.value.offsetHeight;
183
- S.value.width = e * D.value * 2, S.value.height = t * D.value * 2, y.value = e * D.value * 2, M.value = t * D.value * 2, s.value.scale(D.value, D.value), de();
194
+ const e = B.value.offsetWidth, t = B.value.offsetHeight;
195
+ $.value.width = e * H.value * 2, $.value.height = t * H.value * 2, y.value = e * H.value * 2, M.value = t * H.value * 2, s.value.scale(H.value, H.value), de();
184
196
  }
185
- function aa() {
186
- if (s.value.fillStyle = a.value.style.chart.backgroundColor, s.value.fillRect(0, 0, l.value.canvasWidth, l.value.canvasHeight), u.value.stacked)
187
- 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) => {
188
- for (let t = 0; t < r.value.end - r.value.start + 1; t += 1)
197
+ function ua() {
198
+ if (s.value.fillStyle = a.value.style.chart.backgroundColor, s.value.fillRect(0, 0, l.value.canvasWidth, l.value.canvasHeight), r.value.stacked)
199
+ a.value.style.chart.grid.y.verticalLines.show && u.value.end - u.value.start < a.value.style.chart.grid.y.verticalLines.hideUnderXLength && h.value.forEach((e) => {
200
+ for (let t = 0; t < u.value.end - u.value.start + 1; t += 1)
189
201
  C(
190
202
  s.value,
191
203
  [
@@ -204,7 +216,7 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
204
216
  );
205
217
  }), a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? h.value.forEach((e) => {
206
218
  e.localYLabels.forEach((t, o) => {
207
- o < e.localYLabels.length - 1 && ge(
219
+ o < e.localYLabels.length - 1 && fe(
208
220
  s.value,
209
221
  [
210
222
  { x: l.value.left, y: t.y },
@@ -213,13 +225,13 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
213
225
  { x: l.value.left, y: e.localYLabels[o + 1].y }
214
226
  ],
215
227
  {
216
- fillColor: o % 2 === 0 ? "transparent" : a.value.style.chart.grid.x.horizontalLines.color + K[a.value.style.chart.grid.x.horizontalLines.opacity],
228
+ fillColor: o % 2 === 0 ? "transparent" : a.value.style.chart.grid.x.horizontalLines.color + Q[a.value.style.chart.grid.x.horizontalLines.opacity],
217
229
  strokeColor: "transparent"
218
230
  }
219
231
  );
220
232
  });
221
233
  }) : h.value.forEach((e) => {
222
- e.localYLabels.slice(r.value.start, r.value.end).forEach((t) => {
234
+ e.localYLabels.slice(u.value.start, u.value.end).forEach((t) => {
223
235
  C(
224
236
  s.value,
225
237
  [
@@ -263,12 +275,12 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
263
275
  color: e.color
264
276
  }
265
277
  ), e.localYLabels.forEach((t, o) => {
266
- O(
278
+ P(
267
279
  s.value,
268
- q(
280
+ J(
269
281
  a.value.style.chart.dataLabels.formatter,
270
282
  t.value,
271
- J({
283
+ K({
272
284
  p: e.prefix || a.value.style.chart.grid.y.axisLabels.prefix || "",
273
285
  v: t.value,
274
286
  s: e.suffix || a.value.style.chart.grid.y.axisLabels.suffix || "",
@@ -286,7 +298,7 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
286
298
  );
287
299
  });
288
300
  }), h.value.forEach((e) => {
289
- O(
301
+ P(
290
302
  s.value,
291
303
  e.name,
292
304
  y.value / 35,
@@ -300,8 +312,8 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
300
312
  );
301
313
  });
302
314
  else {
303
- if (a.value.style.chart.grid.y.verticalLines.show && r.value.end - r.value.start < a.value.style.chart.grid.y.verticalLines.hideUnderXLength)
304
- for (let e = 0; e < r.value.end - r.value.start + 1; e += 1)
315
+ if (a.value.style.chart.grid.y.verticalLines.show && u.value.end - u.value.start < a.value.style.chart.grid.y.verticalLines.hideUnderXLength)
316
+ for (let e = 0; e < u.value.end - u.value.start + 1; e += 1)
305
317
  C(
306
318
  s.value,
307
319
  [
@@ -313,7 +325,7 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
313
325
  }
314
326
  );
315
327
  a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? p.value.yLabels.forEach((e, t) => {
316
- t < p.value.yLabels.length - 1 && ge(
328
+ t < p.value.yLabels.length - 1 && fe(
317
329
  s.value,
318
330
  [
319
331
  { x: l.value.left, y: e.y },
@@ -322,7 +334,7 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
322
334
  { x: l.value.left, y: p.value.yLabels[t + 1].y }
323
335
  ],
324
336
  {
325
- fillColor: t % 2 === 0 ? "transparent" : a.value.style.chart.grid.x.horizontalLines.color + K[a.value.style.chart.grid.x.horizontalLines.opacity],
337
+ fillColor: t % 2 === 0 ? "transparent" : a.value.style.chart.grid.x.horizontalLines.color + Q[a.value.style.chart.grid.x.horizontalLines.opacity],
326
338
  strokeColor: "transparent"
327
339
  }
328
340
  );
@@ -368,12 +380,12 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
368
380
  lineDash: a.value.style.chart.grid.zeroLine.dashed ? [10, 10] : [0, 0]
369
381
  }
370
382
  ), a.value.style.chart.grid.y.axisLabels.show && p.value.yLabels.forEach((e, t) => {
371
- O(
383
+ P(
372
384
  s.value,
373
- q(
385
+ J(
374
386
  a.value.style.chart.dataLabels.formatter,
375
387
  e.value,
376
- J({
388
+ K({
377
389
  p: a.value.style.chart.grid.y.axisLabels.prefix || "",
378
390
  v: e.value,
379
391
  s: a.value.style.chart.grid.y.axisLabels.suffix || "",
@@ -391,7 +403,7 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
391
403
  );
392
404
  });
393
405
  }
394
- a.value.style.chart.grid.y.axisName && O(
406
+ a.value.style.chart.grid.y.axisName && P(
395
407
  s.value,
396
408
  a.value.style.chart.grid.y.axisName,
397
409
  y.value - y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio * 1.2,
@@ -402,7 +414,7 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
402
414
  align: "center",
403
415
  rotation: 90
404
416
  }
405
- ), a.value.style.chart.grid.x.axisName && O(
417
+ ), a.value.style.chart.grid.x.axisName && P(
406
418
  s.value,
407
419
  a.value.style.chart.grid.x.axisName,
408
420
  y.value / 2,
@@ -414,10 +426,10 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
414
426
  }
415
427
  );
416
428
  }
417
- function la(e) {
429
+ function ra(e) {
418
430
  for (let t = 0; t < e.coordinatesLine.length; t += 1) {
419
- const o = (c.value === t ? y.value / 150 : a.value.style.chart.line.plots.show ? y.value / 200 : 0) * a.value.style.chart.line.plots.radiusRatio;
420
- Xe(
431
+ 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;
432
+ Ve(
421
433
  s.value,
422
434
  { x: e.coordinatesLine[t].x, y: e.coordinatesLine[t].y },
423
435
  o,
@@ -429,14 +441,14 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
429
441
  );
430
442
  }
431
443
  }
432
- function ta(e) {
444
+ function sa(e) {
433
445
  for (let t = 0; t < e.coordinatesLine.length; t += 1)
434
- O(
446
+ P(
435
447
  s.value,
436
- q(
448
+ J(
437
449
  a.value.style.chart.dataLabels.formatter,
438
450
  e.coordinatesLine[t].value,
439
- J({
451
+ K({
440
452
  p: e.prefix || "",
441
453
  v: e.coordinatesLine[t].value,
442
454
  s: e.suffix || "",
@@ -455,27 +467,27 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
455
467
  }
456
468
  );
457
469
  }
458
- function oa() {
459
- for (let e = r.value.start; e < r.value.end; e += 1)
460
- (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 === c.value + r.value.start)) && O(
470
+ function na() {
471
+ for (let e = u.value.start; e < u.value.end; e += 1)
472
+ (u.value.end - u.value.start < a.value.style.chart.grid.y.timeLabels.modulo || u.value.end - u.value.start >= a.value.style.chart.grid.y.timeLabels.modulo && (e % Math.floor((u.value.end - u.value.start) / a.value.style.chart.grid.y.timeLabels.modulo) === 0 || e === d.value + u.value.start)) && P(
461
473
  s.value,
462
474
  a.value.style.chart.grid.y.timeLabels.values[e] || e + 1,
463
- l.value.left + l.value.slot * (e - r.value.start) + l.value.slot / 2,
475
+ l.value.left + l.value.slot * (e - u.value.start) + l.value.slot / 2,
464
476
  l.value.bottom + y.value / a.value.style.chart.grid.y.timeLabels.offsetY,
465
477
  {
466
478
  align: a.value.style.chart.grid.y.timeLabels.rotation === 0 ? "center" : a.value.style.chart.grid.y.timeLabels.rotation > 0 ? "left" : "right",
467
479
  font: `${Math.round(y.value / 40 * a.value.style.chart.grid.y.timeLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
468
- color: a.value.style.chart.grid.y.timeLabels.color + K[c.value !== null ? c.value + r.value.start === e ? 100 : 20 : 100],
480
+ color: a.value.style.chart.grid.y.timeLabels.color + Q[d.value !== null ? d.value + u.value.start === e ? 100 : 20 : 100],
469
481
  rotation: a.value.style.chart.grid.y.timeLabels.rotation
470
482
  }
471
483
  );
472
484
  }
473
- function Ie() {
485
+ function Ee() {
474
486
  C(
475
487
  s.value,
476
488
  [
477
- { x: l.value.left + l.value.slot * c.value + l.value.slot / 2, y: l.value.top },
478
- { x: l.value.left + l.value.slot * c.value + l.value.slot / 2, y: l.value.bottom }
489
+ { x: l.value.left + l.value.slot * d.value + l.value.slot / 2, y: l.value.top },
490
+ { x: l.value.left + l.value.slot * d.value + l.value.slot / 2, y: l.value.bottom }
479
491
  ],
480
492
  {
481
493
  color: a.value.style.chart.selector.color,
@@ -485,26 +497,26 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
485
497
  }
486
498
  );
487
499
  }
488
- function ra() {
500
+ function ia() {
489
501
  x.value.forEach((e, t) => {
490
502
  for (let o = 0; o < e.coordinatesLine.length; o += 1)
491
- ge(
503
+ fe(
492
504
  s.value,
493
505
  [
494
506
  {
495
- x: l.value.left + l.value.slot * o + l.value.slot / 10 + (u.value.stacked ? 0 : l.value.slot / x.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * x.value.length) * t)),
496
- y: u.value.stacked ? e.localZero : p.value.zero
507
+ x: l.value.left + l.value.slot * o + l.value.slot / 10 + (r.value.stacked ? 0 : l.value.slot / x.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * x.value.length) * t)),
508
+ y: r.value.stacked ? e.localZero : p.value.zero
497
509
  },
498
510
  {
499
- x: l.value.left + l.value.slot * o + l.value.slot / 10 + (u.value.stacked ? 0 : l.value.slot / x.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * x.value.length) * t)) + l.value.slot * 0.8 / (u.value.stacked ? 1 : x.value.length),
500
- y: u.value.stacked ? e.localZero : p.value.zero
511
+ x: l.value.left + l.value.slot * o + l.value.slot / 10 + (r.value.stacked ? 0 : l.value.slot / x.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * x.value.length) * t)) + l.value.slot * 0.8 / (r.value.stacked ? 1 : x.value.length),
512
+ y: r.value.stacked ? e.localZero : p.value.zero
501
513
  },
502
514
  {
503
- x: l.value.left + l.value.slot * o + l.value.slot / 10 + (u.value.stacked ? 0 : l.value.slot / x.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * x.value.length) * t)) + l.value.slot * 0.8 / (u.value.stacked ? 1 : x.value.length),
515
+ x: l.value.left + l.value.slot * o + l.value.slot / 10 + (r.value.stacked ? 0 : l.value.slot / x.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * x.value.length) * t)) + l.value.slot * 0.8 / (r.value.stacked ? 1 : x.value.length),
504
516
  y: e.coordinatesLine[o].y
505
517
  },
506
518
  {
507
- x: l.value.left + l.value.slot * o + l.value.slot / 10 + (u.value.stacked ? 0 : l.value.slot / x.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * x.value.length) * t)),
519
+ x: l.value.left + l.value.slot * o + l.value.slot / 10 + (r.value.stacked ? 0 : l.value.slot / x.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * x.value.length) * t)),
508
520
  y: e.coordinatesLine[o].y
509
521
  }
510
522
  ],
@@ -518,20 +530,20 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
518
530
  },
519
531
  end: {
520
532
  x: e.coordinatesLine[o].x,
521
- y: u.value.stacked ? e.localZero : p.value.zero
533
+ y: r.value.stacked ? e.localZero : p.value.zero
522
534
  },
523
535
  stops: [
524
536
  { offset: 0, color: e.color },
525
- { offset: 1, color: Ra(e.color, 0.5) }
537
+ { offset: 1, color: Ea(e.color, 0.5) }
526
538
  ]
527
539
  }
528
540
  }
529
- ), u.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && O(
541
+ ), r.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && P(
530
542
  s.value,
531
- q(
543
+ J(
532
544
  a.value.style.chart.dataLabels.formatter,
533
545
  e.coordinatesLine[o].value,
534
- J({
546
+ K({
535
547
  p: e.prefix || "",
536
548
  v: e.coordinatesLine[o].value,
537
549
  s: e.suffix || "",
@@ -539,8 +551,8 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
539
551
  }),
540
552
  { datapoint: e.coordinatesLine[o], seriesIndex: o }
541
553
  ),
542
- l.value.left + l.value.slot * o + l.value.slot / 10 + (u.value.stacked ? 0 : l.value.slot / x.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * x.value.length) * t)) + l.value.slot * 0.4 / (u.value.stacked ? 1 : x.value.length),
543
- (e.coordinatesLine[o].value < 0 ? u.value.stacked ? e.localZero : p.value.zero : e.coordinatesLine[o].y) + a.value.style.chart.dataLabels.offsetY,
554
+ l.value.left + l.value.slot * o + l.value.slot / 10 + (r.value.stacked ? 0 : l.value.slot / x.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * x.value.length) * t)) + l.value.slot * 0.4 / (r.value.stacked ? 1 : x.value.length),
555
+ (e.coordinatesLine[o].value < 0 ? r.value.stacked ? e.localZero : p.value.zero : e.coordinatesLine[o].y) + a.value.style.chart.dataLabels.offsetY,
544
556
  {
545
557
  align: "center",
546
558
  font: `${Math.round(y.value / 40 * a.value.style.chart.dataLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
@@ -551,19 +563,19 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
551
563
  );
552
564
  });
553
565
  }
554
- function ua(e) {
555
- e.useArea ? u.value.stacked ? Ae(
566
+ function va(e) {
567
+ e.useArea ? r.value.stacked ? je(
556
568
  s.value,
557
569
  [{ x: e.coordinatesLine[0].x, y: e.localZero }, ...e.coordinatesLine, { x: e.coordinatesLine.at(-1).x, y: e.localZero }],
558
570
  {
559
- fillColor: e.color + K[a.value.style.chart.area.opacity],
571
+ fillColor: e.color + Q[a.value.style.chart.area.opacity],
560
572
  strokeColor: "transparent"
561
573
  }
562
- ) : Ae(
574
+ ) : je(
563
575
  s.value,
564
576
  [{ x: e.coordinatesLine[0].x, y: p.value.zero }, ...e.coordinatesLine, { x: e.coordinatesLine.at(-1).x, y: p.value.zero }],
565
577
  {
566
- fillColor: e.color + K[a.value.style.chart.area.opacity],
578
+ fillColor: e.color + Q[a.value.style.chart.area.opacity],
567
579
  strokeColor: "transparent"
568
580
  }
569
581
  ) : C(s.value, e.coordinatesLine, {
@@ -571,7 +583,7 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
571
583
  lineWidth: 3
572
584
  });
573
585
  }
574
- function sa() {
586
+ function ca() {
575
587
  h.value.forEach((e, t) => {
576
588
  C(
577
589
  s.value,
@@ -587,16 +599,16 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
587
599
  });
588
600
  }
589
601
  function de() {
590
- aa(), P.value ? (z.value && c.value !== null && a.value.style.chart.selector.show && Ie(), ra(), u.value.stacked && a.value.style.chart.grid.x.showAxis && sa(), Qe.value.forEach((e) => {
591
- (e.type === "line" || !e.type) && ua(e), z.value && (la(e), u.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && ta(e));
592
- }), ie.value = Oa(S.value)) : (ie.value && s.value.drawImage(ie.value, 0, 0), z.value && c.value !== null && a.value.style.chart.selector.show && Ie(), z.value && c.value !== null && h.value.forEach((e) => {
602
+ ua(), E.value ? (z.value && d.value !== null && a.value.style.chart.selector.show && Ee(), ia(), r.value.stacked && a.value.style.chart.grid.x.showAxis && ca(), ta.value.forEach((e) => {
603
+ (e.type === "line" || !e.type) && va(e), z.value && (ra(e), r.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && sa(e));
604
+ }), ie.value = Na($.value)) : (ie.value && s.value.drawImage(ie.value, 0, 0), z.value && d.value !== null && a.value.style.chart.selector.show && Ee(), z.value && d.value !== null && h.value.forEach((e) => {
593
605
  if (e.type === "line" || !e.type || e.type === "plot") {
594
- if (!e.coordinatesLine[c.value]) return;
595
- e.coordinatesLine[c.value].x !== void 0 && e.coordinatesLine[c.value].y !== void 0 && Xe(
606
+ if (!e.coordinatesLine[d.value]) return;
607
+ e.coordinatesLine[d.value].x !== void 0 && e.coordinatesLine[d.value].y !== void 0 && Ve(
596
608
  s.value,
597
609
  {
598
- x: e.coordinatesLine[c.value].x,
599
- y: e.coordinatesLine[c.value].y
610
+ x: e.coordinatesLine[d.value].x,
611
+ y: e.coordinatesLine[d.value].y
600
612
  },
601
613
  y.value / 150 * a.value.style.chart.line.plots.radiusRatio,
602
614
  {
@@ -606,90 +618,94 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
606
618
  }
607
619
  );
608
620
  }
609
- })), a.value.style.chart.grid.y.timeLabels.show && oa(), P.value = !1;
621
+ })), a.value.style.chart.grid.y.timeLabels.show && na(), E.value = !1;
610
622
  }
611
- const le = Ia(() => {
612
- z.value = !0, ea();
613
- }, F.value > 200 ? 10 : 1, !z.value);
614
- function na(e) {
615
- const { left: t } = S.value.getBoundingClientRect(), o = e.clientX - t;
623
+ const te = _a(() => {
624
+ z.value = !0, oa();
625
+ }, R.value > 200 ? 10 : 1, !z.value);
626
+ function da(e) {
627
+ const { left: t } = $.value.getBoundingClientRect(), o = e.clientX - t;
616
628
  if (o * 2 < l.value.left || o * 2 > l.value.right) {
617
- ee.value = !1, c.value = null;
629
+ ae.value = !1, d.value = null;
618
630
  return;
619
631
  }
620
632
  const i = o * 2 - l.value.left;
621
- if (c.value = Math.floor(i / l.value.slot), ee.value = !0, !z.value) return;
622
- let v = "";
633
+ if (d.value = Math.floor(i / l.value.slot), ae.value = !0, !z.value) return;
634
+ let c = "";
623
635
  const f = a.value.style.chart.tooltip.customFormat;
624
- Be(f) && $a(() => f({
625
- seriesIndex: c.value,
636
+ Ge(f) && Oa(() => f({
637
+ seriesIndex: d.value,
626
638
  datapoint: h.value.map((n) => ({
627
639
  shape: n.shape || null,
628
640
  name: n.name,
629
641
  color: n.color,
630
642
  type: n.type || "line",
631
- value: n.series.find((g, L) => L === c.value)
643
+ value: n.series.find((g, L) => L === d.value)
632
644
  })),
633
645
  series: h.value,
634
646
  config: a.value
635
- })) ? ae.value = f({
636
- seriesIndex: c.value,
647
+ })) ? le.value = f({
648
+ seriesIndex: d.value,
637
649
  datapoint: h.value.map((n) => ({
638
650
  shape: n.shape || null,
639
651
  name: n.name,
640
652
  color: n.color,
641
653
  type: n.type || "line",
642
- value: n.series.find((g, L) => L === c.value)
654
+ value: n.series.find((g, L) => L === d.value)
643
655
  })),
644
656
  series: h.value,
645
657
  config: a.value
646
- }) : (a.value.style.chart.grid.y.timeLabels.values.slice(r.value.start, r.value.end)[c.value] && (v += `<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)[c.value]}</div>`), v += Je.value.join(""), ae.value = v), z.value = !1;
658
+ }) : (a.value.style.chart.grid.y.timeLabels.values.slice(u.value.start, u.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(u.value.start, u.value.end)[d.value]}</div>`), c += la.value.join(""), le.value = c), z.value = !1;
647
659
  }
648
- ue(() => c.value, (e) => {
649
- le();
650
- }), ue(() => r.value, (e) => {
651
- P.value = !0, de();
660
+ Y(() => d.value, (e) => {
661
+ te();
662
+ }), Y(() => u.value, (e) => {
663
+ E.value = !0, de();
652
664
  }, {
653
665
  deep: !0
654
- }), ue(() => u.value.showDataLabels, (e) => {
655
- P.value = !0, de();
656
- }), ue(() => u.value.stacked, (e) => {
657
- P.value = !0, z.value = !0, le();
666
+ }), Y(() => r.value.showDataLabels, (e) => {
667
+ E.value = !0, de();
668
+ }), Y(() => r.value.stacked, (e) => {
669
+ E.value = !0, z.value = !0, te();
658
670
  });
659
- function ia() {
660
- ee.value = !1, c.value = null, ae.value = "";
671
+ function ha() {
672
+ ae.value = !1, d.value = null, le.value = "";
661
673
  }
662
- const te = d(null), oe = d(null);
663
- ha(() => {
664
- if (Sa(_.dataset) ? za({
674
+ const oe = v(null), ue = v(null);
675
+ pa(() => {
676
+ _e();
677
+ });
678
+ function _e() {
679
+ if (Ra(F.dataset) ? Ia({
665
680
  componentName: "VueUiXyCanvas",
666
681
  type: "dataset"
667
- }) : S.value && (s.value = S.value.getContext("2d", { willReadFrequently: !0 })), a.value.responsive) {
668
- const e = Pa(() => {
669
- const { width: t, height: o } = Fa({
670
- chart: Q.value,
671
- title: a.value.style.chart.title.text ? Le.value : null,
672
- legend: a.value.style.chart.legend.show ? ke.value : null,
673
- slicer: a.value.style.chart.zoom.show && F.value > 1 ? Ce.value : null
682
+ }) : $.value && (s.value = $.value.getContext("2d", { willReadFrequently: !0 })), a.value.responsive) {
683
+ const e = Da(() => {
684
+ const { width: t, height: o } = Ha({
685
+ chart: ee.value,
686
+ title: a.value.style.chart.title.text ? xe.value : null,
687
+ legend: a.value.style.chart.legend.show ? Le.value : null,
688
+ slicer: a.value.style.chart.zoom.show && R.value > 1 ? ke.value : null
674
689
  });
675
- we.value = `${t} / ${o}`;
690
+ ze.value = `${t} / ${o}`;
676
691
  });
677
- te.value = new ResizeObserver(e), te.value.observe(Q.value.parentNode);
692
+ oe.value = new ResizeObserver(e), oe.value.observe(ee.value.parentNode);
678
693
  }
679
- oe.value = new ResizeObserver((e) => {
694
+ ue.value = new ResizeObserver((e) => {
680
695
  for (const t of e)
681
- t.contentBoxSize && H.value && (P.value = !0, le());
682
- }), oe.value.observe(H.value);
683
- }), ya(() => {
684
- oe.value && oe.value.disconnect(), te.value && te.value.disconnect();
696
+ t.contentBoxSize && B.value && (E.value = !0, te());
697
+ }), ue.value.observe(B.value);
698
+ }
699
+ ba(() => {
700
+ ue.value && ue.value.disconnect(), oe.value && oe.value.disconnect();
685
701
  });
686
- function Oe(e) {
687
- Ge("selectLegend", h.value.find((t) => t.absoluteIndex === e)), w.value.includes(e) ? w.value = w.value.filter((t) => t !== e) : w.value.push(e), P.value = !0, le();
702
+ function Ne(e) {
703
+ Ke("selectLegend", h.value.find((t) => t.absoluteIndex === e)), w.value.includes(e) ? w.value = w.value.filter((t) => t !== e) : w.value.push(e), E.value = !0, te();
688
704
  }
689
- const Pe = m(() => W.value.map((e, t) => ({
705
+ const De = b(() => W.value.map((e, t) => ({
690
706
  ...e,
691
707
  name: e.name,
692
- color: Ye(e.color) || Me.value[t] || N[t] || N[t % N.length],
708
+ color: Ze(e.color) || Oe.value[t] || D[t] || D[t % D.length],
693
709
  shape: e.shape || "circle",
694
710
  prefix: e.prefix || "",
695
711
  suffix: e.suffix || "",
@@ -697,21 +713,21 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
697
713
  })).map((e) => ({
698
714
  ...e,
699
715
  opacity: w.value.includes(e.absoluteIndex) ? 0.5 : 1,
700
- segregate: () => Oe(e.absoluteIndex),
716
+ segregate: () => Ne(e.absoluteIndex),
701
717
  isSegregated: w.value.includes(e.absoluteIndex)
702
- }))), va = m(() => ({
718
+ }))), ya = b(() => ({
703
719
  cy: "donut-div-legend",
704
720
  backgroundColor: a.value.style.chart.legend.backgroundColor,
705
721
  color: a.value.style.chart.legend.color,
706
722
  fontSize: a.value.style.chart.legend.fontSize,
707
723
  paddingBottom: 12,
708
724
  fontWeight: a.value.style.chart.legend.bold ? "bold" : ""
709
- })), re = m(() => {
710
- const e = [""].concat(h.value.map((v) => v.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>');
725
+ })), re = b(() => {
726
+ 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>');
711
727
  let t = [];
712
- for (let v = 0; v < F.value; v += 1) {
713
- const f = h.value.map((n) => n.series[v] ?? 0).reduce((n, g) => n + g, 0);
714
- t.push([a.value.style.chart.grid.y.timeLabels.values.slice(r.value.start, r.value.end)[v] ?? v + 1].concat(h.value.map((n) => (n.series[v] ?? 0).toFixed(a.value.table.rounding))).concat((f ?? 0).toFixed(a.value.table.rounding)));
728
+ for (let c = 0; c < R.value; c += 1) {
729
+ const f = h.value.map((n) => n.series[c] ?? 0).reduce((n, g) => n + g, 0);
730
+ t.push([a.value.style.chart.grid.y.timeLabels.values.slice(u.value.start, u.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)));
715
731
  }
716
732
  const o = {
717
733
  th: {
@@ -725,65 +741,66 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
725
741
  outline: a.value.table.td.outline
726
742
  },
727
743
  breakpoint: a.value.table.responsiveBreakpoint
728
- }, i = [a.value.table.columnNames.period].concat(h.value.map((v) => v.name)).concat(a.value.table.columnNames.total);
729
- return { head: e, body: t.slice(0, r.value.end - r.value.start), config: o, colNames: i };
730
- }), Fe = m(() => {
744
+ }, i = [a.value.table.columnNames.period].concat(h.value.map((c) => c.name)).concat(a.value.table.columnNames.total);
745
+ return { head: e, body: t.slice(0, u.value.end - u.value.start), config: o, colNames: i };
746
+ }), He = b(() => {
731
747
  if (h.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
732
748
  const e = h.value.map((o) => ({
733
749
  label: o.name,
734
750
  color: o.color,
735
751
  type: o.type
736
752
  })), t = [];
737
- for (let o = r.value.start; o < r.value.end; o += 1) {
753
+ for (let o = u.value.start; o < u.value.end; o += 1) {
738
754
  const i = [a.value.style.chart.grid.y.timeLabels.values[o] || o + 1];
739
- h.value.forEach((v) => {
740
- i.push(Number((v.series[o] || 0).toFixed(a.value.table.rounding)));
755
+ h.value.forEach((c) => {
756
+ i.push(Number((c.series[o] || 0).toFixed(a.value.table.rounding)));
741
757
  }), t.push(i);
742
758
  }
743
759
  return { head: e, body: t };
744
760
  });
745
- function Ee() {
746
- const e = [[a.value.style.chart.title.text], [a.value.style.chart.title.subtitle.text], [""]], t = ["", ...Fe.value.head.map((f) => f.label)], o = Fe.value.body, i = e.concat([t]).concat(o), v = Ta(i);
747
- Ma({ csvContent: v, title: a.value.style.chart.title.text || "vue-ui-xy-canvas" });
761
+ function We() {
762
+ const e = [[a.value.style.chart.title.text], [a.value.style.chart.title.subtitle.text], [""]], t = ["", ...He.value.head.map((f) => f.label)], o = He.value.body, i = e.concat([t]).concat(o), c = Pa(i);
763
+ Fa({ csvContent: c, title: a.value.style.chart.title.text || "vue-ui-xy-canvas" });
748
764
  }
749
- function ca() {
765
+ function fa() {
750
766
  return h.value;
751
767
  }
752
- function Ne() {
753
- u.value.showTable = !u.value.showTable;
768
+ function Ye() {
769
+ r.value.showTable = !r.value.showTable;
754
770
  }
755
- function _e() {
756
- u.value.showDataLabels = !u.value.showDataLabels;
771
+ function Be() {
772
+ r.value.showDataLabels = !r.value.showDataLabels;
757
773
  }
758
- function De() {
759
- u.value.stacked = !u.value.stacked;
774
+ function Xe() {
775
+ r.value.stacked = !r.value.stacked;
760
776
  }
761
- function He() {
762
- u.value.showTooltip = !u.value.showTooltip;
777
+ function Ae() {
778
+ r.value.showTooltip = !r.value.showTooltip;
763
779
  }
764
- return Ze({
765
- getData: ca,
766
- generateCsv: Ee,
767
- generatePdf: $e,
768
- generateImage: Te,
769
- toggleTable: Ne,
770
- toggleLabels: _e,
771
- toggleStack: De,
772
- toggleTooltip: He
773
- }), (e, t) => (T(), se("div", {
774
- style: A(`width:100%; position: relative;${a.value.responsive ? "height: 100%" : ""}`),
780
+ return Je({
781
+ getData: fa,
782
+ generateCsv: We,
783
+ generatePdf: Re,
784
+ generateImage: Ie,
785
+ toggleTable: Ye,
786
+ toggleLabels: Be,
787
+ toggleStack: Xe,
788
+ toggleTooltip: Ae
789
+ }), (e, t) => (S(), se("div", {
790
+ style: Z(`width:100%; position: relative;${a.value.responsive ? "height: 100%" : ""}`),
775
791
  ref_key: "xy",
776
- ref: Q,
792
+ ref: ee,
777
793
  id: `xy_canvas_${ne.value}`,
778
- class: fa(`vue-ui-donut ${ve.value ? "vue-data-ui-wrapper-fullscreen" : ""}`)
794
+ class: ma(`vue-ui-donut ${ve.value ? "vue-data-ui-wrapper-fullscreen" : ""}`)
779
795
  }, [
780
- a.value.style.chart.title.text ? (T(), se("div", {
796
+ a.value.style.chart.title.text ? (S(), se("div", {
781
797
  key: 0,
782
798
  ref_key: "chartTitle",
783
- ref: Le,
784
- style: A(`width:100%;background:${a.value.style.chart.backgroundColor};`)
799
+ ref: xe,
800
+ style: Z(`width:100%;background:${a.value.style.chart.backgroundColor};`)
785
801
  }, [
786
- ye(_a, {
802
+ (S(), _(Ba, {
803
+ key: `title_${Ce.value}`,
787
804
  config: {
788
805
  title: {
789
806
  cy: "xy-canvas-title",
@@ -794,109 +811,109 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
794
811
  ...a.value.style.chart.title.subtitle
795
812
  }
796
813
  }
797
- }, null, 8, ["config"])
798
- ], 4)) : U("", !0),
799
- a.value.userOptions.show && ce.value ? (T(), Z(Wa, {
814
+ }, null, 8, ["config"]))
815
+ ], 4)) : G("", !0),
816
+ a.value.userOptions.show && ce.value ? (S(), _(Ua, {
800
817
  ref: "details",
801
- key: `user_option_${xe.value}`,
818
+ key: `user_option_${me.value}`,
802
819
  backgroundColor: a.value.style.chart.backgroundColor,
803
820
  color: a.value.style.chart.color,
804
- isPrinting: E(Se),
805
- isImaging: E(ze),
821
+ isPrinting: N(Te),
822
+ isImaging: N(Me),
806
823
  uid: ne.value,
807
824
  hasTooltip: a.value.userOptions.buttons.tooltip && a.value.style.chart.tooltip.show,
808
825
  hasPdf: a.value.userOptions.buttons.pdf,
809
826
  hasImg: a.value.userOptions.buttons.img,
810
827
  hasXls: a.value.userOptions.buttons.csv,
811
828
  hasLabel: a.value.userOptions.buttons.labels,
812
- hasStack: pe.dataset.length > 1 && a.value.userOptions.buttons.stack,
829
+ hasStack: ge.dataset.length > 1 && a.value.userOptions.buttons.stack,
813
830
  hasFullscreen: a.value.userOptions.buttons.fullscreen,
814
- hasTable: r.value.end - r.value.start < 200 && a.value.userOptions.buttons.table,
831
+ hasTable: u.value.end - u.value.start < 200 && a.value.userOptions.buttons.table,
815
832
  isFullscreen: ve.value,
816
- isTooltip: u.value.showTooltip,
817
- isStacked: u.value.stacked,
833
+ isTooltip: r.value.showTooltip,
834
+ isStacked: r.value.stacked,
818
835
  titles: { ...a.value.userOptions.buttonTitles },
819
- chartElement: Q.value,
820
- onToggleFullscreen: je,
821
- onGeneratePdf: E($e),
822
- onGenerateCsv: Ee,
823
- onGenerateImage: E(Te),
824
- onToggleTable: Ne,
825
- onToggleLabels: _e,
826
- onToggleStack: De,
827
- onToggleTooltip: He
828
- }, ga({ _: 2 }, [
836
+ chartElement: ee.value,
837
+ onToggleFullscreen: ea,
838
+ onGeneratePdf: N(Re),
839
+ onGenerateCsv: We,
840
+ onGenerateImage: N(Ie),
841
+ onToggleTable: Ye,
842
+ onToggleLabels: Be,
843
+ onToggleStack: Xe,
844
+ onToggleTooltip: Ae
845
+ }, xa({ _: 2 }, [
829
846
  e.$slots.optionTooltip ? {
830
847
  name: "optionTooltip",
831
- fn: b(() => [
848
+ fn: m(() => [
832
849
  k(e.$slots, "optionTooltip", {}, void 0, !0)
833
850
  ]),
834
851
  key: "0"
835
852
  } : void 0,
836
853
  e.$slots.optionPdf ? {
837
854
  name: "optionPdf",
838
- fn: b(() => [
855
+ fn: m(() => [
839
856
  k(e.$slots, "optionPdf", {}, void 0, !0)
840
857
  ]),
841
858
  key: "1"
842
859
  } : void 0,
843
860
  e.$slots.optionCsv ? {
844
861
  name: "optionCsv",
845
- fn: b(() => [
862
+ fn: m(() => [
846
863
  k(e.$slots, "optionCsv", {}, void 0, !0)
847
864
  ]),
848
865
  key: "2"
849
866
  } : void 0,
850
867
  e.$slots.optionImg ? {
851
868
  name: "optionImg",
852
- fn: b(() => [
869
+ fn: m(() => [
853
870
  k(e.$slots, "optionImg", {}, void 0, !0)
854
871
  ]),
855
872
  key: "3"
856
873
  } : void 0,
857
874
  e.$slots.optionTable ? {
858
875
  name: "optionTable",
859
- fn: b(() => [
876
+ fn: m(() => [
860
877
  k(e.$slots, "optionTable", {}, void 0, !0)
861
878
  ]),
862
879
  key: "4"
863
880
  } : void 0,
864
881
  e.$slots.optionLabels ? {
865
882
  name: "optionLabels",
866
- fn: b(() => [
883
+ fn: m(() => [
867
884
  k(e.$slots, "optionLabels", {}, void 0, !0)
868
885
  ]),
869
886
  key: "5"
870
887
  } : void 0,
871
888
  e.$slots.optionStack ? {
872
889
  name: "optionStack",
873
- fn: b(() => [
890
+ fn: m(() => [
874
891
  k(e.$slots, "optionStack", {}, void 0, !0)
875
892
  ]),
876
893
  key: "6"
877
894
  } : void 0,
878
895
  e.$slots.optionFullscreen ? {
879
896
  name: "optionFullscreen",
880
- fn: b(({ toggleFullscreen: o, isFullscreen: i }) => [
881
- k(e.$slots, "optionFullscreen", G(V({ toggleFullscreen: o, isFullscreen: i })), void 0, !0)
897
+ fn: m(({ toggleFullscreen: o, isFullscreen: i }) => [
898
+ k(e.$slots, "optionFullscreen", V(j({ toggleFullscreen: o, isFullscreen: i })), void 0, !0)
882
899
  ]),
883
900
  key: "7"
884
901
  } : void 0
885
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasLabel", "hasStack", "hasFullscreen", "hasTable", "isFullscreen", "isTooltip", "isStacked", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : U("", !0),
886
- j("div", {
902
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasLabel", "hasStack", "hasFullscreen", "hasTable", "isFullscreen", "isTooltip", "isStacked", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : G("", !0),
903
+ q("div", {
887
904
  class: "vue-ui-xy-canvas",
888
- style: A(`position: relative; aspect-ratio: ${we.value}`),
905
+ style: Z(`position: relative; aspect-ratio: ${ze.value}`),
889
906
  ref_key: "container",
890
- ref: H
907
+ ref: B
891
908
  }, [
892
- ce.value ? (T(), se("canvas", {
909
+ ce.value ? (S(), se("canvas", {
893
910
  key: 0,
894
911
  ref_key: "canvas",
895
- ref: S,
912
+ ref: $,
896
913
  style: { width: "100%", height: "100%" },
897
- onMousemove: t[0] || (t[0] = (o) => na(o)),
898
- onMouseleave: ia
899
- }, null, 544)) : (T(), Z(Xa, {
914
+ onMousemove: t[0] || (t[0] = (o) => da(o)),
915
+ onMouseleave: ha
916
+ }, null, 544)) : (S(), _(Va, {
900
917
  key: 1,
901
918
  config: {
902
919
  type: "line",
@@ -914,8 +931,8 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
914
931
  }
915
932
  }
916
933
  }, null, 8, ["config"])),
917
- ye(Ea, {
918
- show: u.value.showTooltip && ee.value,
934
+ La(Wa, {
935
+ show: r.value.showTooltip && ae.value,
919
936
  backgroundColor: a.value.style.chart.tooltip.backgroundColor,
920
937
  color: a.value.style.chart.tooltip.color,
921
938
  fontSize: a.value.style.chart.tooltip.fontSize,
@@ -924,83 +941,83 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
924
941
  borderWidth: a.value.style.chart.tooltip.borderWidth,
925
942
  position: a.value.style.chart.tooltip.position,
926
943
  offsetY: a.value.style.chart.tooltip.offsetY,
927
- parent: S.value,
928
- content: ae.value,
944
+ parent: $.value,
945
+ content: le.value,
929
946
  backgroundOpacity: a.value.style.chart.tooltip.backgroundOpacity,
930
- isCustom: E(Be)(a.value.style.chart.tooltip.customFormat)
947
+ isCustom: N(Ge)(a.value.style.chart.tooltip.customFormat)
931
948
  }, {
932
- "tooltip-before": b(() => [
933
- k(e.$slots, "tooltip-before", G(V({ ...me.value })), void 0, !0)
949
+ "tooltip-before": m(() => [
950
+ k(e.$slots, "tooltip-before", V(j({ ...pe.value })), void 0, !0)
934
951
  ]),
935
- "tooltip-after": b(() => [
936
- k(e.$slots, "tooltip-after", G(V({ ...me.value })), void 0, !0)
952
+ "tooltip-after": m(() => [
953
+ k(e.$slots, "tooltip-after", V(j({ ...pe.value })), void 0, !0)
937
954
  ]),
938
955
  _: 3
939
956
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "position", "offsetY", "parent", "content", "backgroundOpacity", "isCustom"])
940
957
  ], 4),
941
- j("div", {
958
+ q("div", {
942
959
  ref_key: "chartSlicer",
943
- ref: Ce,
944
- style: A(`width:100%;background:${a.value.style.chart.backgroundColor}`),
960
+ ref: ke,
961
+ style: Z(`width:100%;background:${a.value.style.chart.backgroundColor}`),
945
962
  "data-html2canvas-ignore": ""
946
963
  }, [
947
- a.value.style.chart.zoom.show && F.value > 1 ? (T(), Z(Da, {
964
+ a.value.style.chart.zoom.show && R.value > 1 ? (S(), _(Xa, {
948
965
  key: `slicer_${be.value}`,
949
966
  background: a.value.style.chart.zoom.color,
950
967
  borderColor: a.value.style.chart.backgroundColor,
951
968
  fontSize: a.value.style.chart.zoom.fontSize,
952
969
  useResetSlot: a.value.style.chart.zoom.useResetSlot,
953
- labelLeft: a.value.style.chart.grid.y.timeLabels.values[r.value.start] ? a.value.style.chart.grid.y.timeLabels.values[r.value.start] : "",
954
- labelRight: a.value.style.chart.grid.y.timeLabels.values[r.value.end - 1] ? a.value.style.chart.grid.y.timeLabels.values[r.value.end - 1] : "",
970
+ labelLeft: a.value.style.chart.grid.y.timeLabels.values[u.value.start] ? a.value.style.chart.grid.y.timeLabels.values[u.value.start] : "",
971
+ labelRight: a.value.style.chart.grid.y.timeLabels.values[u.value.end - 1] ? a.value.style.chart.grid.y.timeLabels.values[u.value.end - 1] : "",
955
972
  textColor: a.value.style.chart.color,
956
973
  inputColor: a.value.style.chart.zoom.color,
957
974
  selectColor: a.value.style.chart.zoom.highlightColor,
958
- max: F.value,
975
+ max: R.value,
959
976
  min: 0,
960
- valueStart: r.value.start,
961
- valueEnd: r.value.end,
962
- start: r.value.start,
963
- "onUpdate:start": t[1] || (t[1] = (o) => r.value.start = o),
964
- end: r.value.end,
965
- "onUpdate:end": t[2] || (t[2] = (o) => r.value.end = o),
966
- onReset: Ke
977
+ valueStart: u.value.start,
978
+ valueEnd: u.value.end,
979
+ start: u.value.start,
980
+ "onUpdate:start": t[1] || (t[1] = (o) => u.value.start = o),
981
+ end: u.value.end,
982
+ "onUpdate:end": t[2] || (t[2] = (o) => u.value.end = o),
983
+ onReset: Fe
967
984
  }, {
968
- "reset-action": b(({ reset: o }) => [
969
- k(e.$slots, "reset-action", G(V({ reset: o })), void 0, !0)
985
+ "reset-action": m(({ reset: o }) => [
986
+ k(e.$slots, "reset-action", V(j({ reset: o })), void 0, !0)
970
987
  ]),
971
988
  _: 3
972
- }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end"])) : U("", !0)
989
+ }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end"])) : G("", !0)
973
990
  ], 4),
974
- j("div", {
991
+ q("div", {
975
992
  ref_key: "chartLegend",
976
- ref: ke
993
+ ref: Le
977
994
  }, [
978
- a.value.style.chart.legend.show && ce.value ? (T(), Z(Na, {
979
- key: 0,
980
- legendSet: Pe.value,
981
- config: va.value,
982
- onClickMarker: t[3] || (t[3] = ({ i: o }) => Oe(o))
995
+ a.value.style.chart.legend.show && ce.value ? (S(), _(Ya, {
996
+ legendSet: De.value,
997
+ config: ya.value,
998
+ key: `legend_${Se.value}`,
999
+ onClickMarker: t[3] || (t[3] = ({ i: o }) => Ne(o))
983
1000
  }, {
984
- item: b(({ legend: o, index: i }) => [
985
- j("div", {
986
- onClick: (v) => o.segregate(),
987
- style: A(`opacity:${w.value.includes(i) ? 0.5 : 1}`)
988
- }, We(o.name), 13, Za)
1001
+ item: m(({ legend: o, index: i }) => [
1002
+ q("div", {
1003
+ onClick: (c) => o.segregate(),
1004
+ style: Z(`opacity:${w.value.includes(i) ? 0.5 : 1}`)
1005
+ }, Ue(o.name), 13, Ja)
989
1006
  ]),
990
1007
  _: 1
991
1008
  }, 8, ["legendSet", "config"])) : k(e.$slots, "legend", {
992
1009
  key: 1,
993
- legend: Pe.value
1010
+ legend: De.value
994
1011
  }, void 0, !0)
995
1012
  ], 512),
996
- e.$slots.watermark ? (T(), se("div", Ga, [
997
- k(e.$slots, "watermark", G(V({ isPrinting: E(Se) || E(ze) })), void 0, !0)
998
- ])) : U("", !0),
999
- r.value.end - r.value.start < 200 ? (T(), Z(Ya, {
1013
+ e.$slots.watermark ? (S(), se("div", Ka, [
1014
+ k(e.$slots, "watermark", V(j({ isPrinting: N(Te) || N(Me) })), void 0, !0)
1015
+ ])) : G("", !0),
1016
+ u.value.end - u.value.start < 200 ? (S(), _(Za, {
1000
1017
  key: 3,
1001
1018
  hideDetails: "",
1002
1019
  config: {
1003
- open: u.value.showTable,
1020
+ open: r.value.showTable,
1004
1021
  maxHeight: 1e4,
1005
1022
  body: {
1006
1023
  backgroundColor: a.value.style.chart.backgroundColor,
@@ -1012,29 +1029,30 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
1012
1029
  }
1013
1030
  }
1014
1031
  }, {
1015
- content: b(() => [
1016
- ye(Ba, {
1032
+ content: m(() => [
1033
+ (S(), _(Ga, {
1034
+ key: `table_${we.value}`,
1017
1035
  colNames: re.value.colNames,
1018
1036
  head: re.value.head,
1019
1037
  body: re.value.body,
1020
1038
  config: re.value.config,
1021
1039
  title: `${a.value.style.chart.title.text}${a.value.style.chart.title.subtitle.text ? ` : ${a.value.style.chart.title.subtitle.text}` : ""}`,
1022
- onClose: t[4] || (t[4] = (o) => u.value.showTable = !1)
1040
+ onClose: t[4] || (t[4] = (o) => r.value.showTable = !1)
1023
1041
  }, {
1024
- th: b(({ th: o }) => [
1025
- j("div", { innerHTML: o }, null, 8, Va)
1042
+ th: m(({ th: o }) => [
1043
+ q("div", { innerHTML: o }, null, 8, Qa)
1026
1044
  ]),
1027
- td: b(({ td: o }) => [
1028
- pa(We(o), 1)
1045
+ td: m(({ td: o }) => [
1046
+ ka(Ue(o), 1)
1029
1047
  ]),
1030
1048
  _: 1
1031
- }, 8, ["colNames", "head", "body", "config", "title"])
1049
+ }, 8, ["colNames", "head", "body", "config", "title"]))
1032
1050
  ]),
1033
1051
  _: 1
1034
- }, 8, ["config"])) : U("", !0)
1035
- ], 14, Ua));
1052
+ }, 8, ["config"])) : G("", !0)
1053
+ ], 14, qa));
1036
1054
  }
1037
- }, il = /* @__PURE__ */ Aa(ja, [["__scopeId", "data-v-631647ba"]]);
1055
+ }, yl = /* @__PURE__ */ ja(el, [["__scopeId", "data-v-24379a68"]]);
1038
1056
  export {
1039
- il as default
1057
+ yl as default
1040
1058
  };