vue-data-ui 2.4.1 → 2.4.3

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 (218) hide show
  1. package/README.md +44 -44
  2. package/dist/{Arrow-BIs_9yK8.js → Arrow-C7lNL7sY.js} +1 -1
  3. package/dist/{Arrow-DpMf3yPs.cjs → Arrow-Dz6AomGr.cjs} +1 -1
  4. package/dist/{BaseIcon-CXDdkPfN.js → BaseIcon-BbvG1AlW.js} +7 -4
  5. package/dist/BaseIcon-uALK38Ov.cjs +1 -0
  6. package/dist/{DataTable-BTgMVOwp.cjs → DataTable-DTzynbND.cjs} +1 -1
  7. package/dist/{DataTable-DL2agEJ3.js → DataTable-DYqC2pqu.js} +2 -2
  8. package/dist/{Legend-Dj9KiaLv.cjs → Legend-Cgw4lO2O.cjs} +1 -1
  9. package/dist/{Legend-DXLiSLHd.js → Legend-DNgTCgEK.js} +1 -1
  10. package/dist/{PackageVersion-D4D0WicU.cjs → PackageVersion-DwI-KhXH.cjs} +1 -1
  11. package/dist/{PackageVersion-DtnhR89q.js → PackageVersion-VkaUzgmt.js} +1 -1
  12. package/dist/PenAndPaper-CDFVOo7X.cjs +1 -0
  13. package/dist/PenAndPaper-DAZYA8Ew.js +269 -0
  14. package/dist/{Shape-CO_Ak9Zm.js → Shape-Bwon0l0g.js} +1 -1
  15. package/dist/{Shape-7EC2UKDK.cjs → Shape-D2Dpshg1.cjs} +1 -1
  16. package/dist/{Slicer-BZfUZr1J.js → Slicer-TfpN2Cr4.js} +3 -3
  17. package/dist/{Slicer-CLAVjSQP.cjs → Slicer-uSjfNJjG.cjs} +1 -1
  18. package/dist/{Title-C-lm3Mkl.cjs → Title-0Tp4hZ4u.cjs} +1 -1
  19. package/dist/{Title-DYNLqCCT.js → Title-C5pIfQAz.js} +1 -1
  20. package/dist/{Tooltip-t-3mVhcz.cjs → Tooltip-9Tp2Yrd1.cjs} +1 -1
  21. package/dist/{Tooltip-CICAYyQj.js → Tooltip-Cz24YLfw.js} +1 -1
  22. package/dist/{index-DDXisDKy.js → index-Bya_q1J-.js} +883 -842
  23. package/dist/index-eFox7weK.cjs +9 -0
  24. package/dist/style.css +1 -1
  25. package/dist/types/vue-data-ui.d.cts +22 -17
  26. package/dist/types/vue-data-ui.d.ts +22 -17
  27. package/dist/{useNestedProp-S1UXxUgm.js → useNestedProp-B33hazbH.js} +1 -1
  28. package/dist/{useNestedProp-CC9zGr7C.cjs → useNestedProp-BkgEhTQY.cjs} +1 -1
  29. package/dist/usePrinter-CSRFnDBU.cjs +1 -0
  30. package/dist/{usePrinter-8ofTb2MJ.js → usePrinter-CiHd1FwD.js} +230 -185
  31. package/dist/useResponsive-BY8tgM1n.js +188 -0
  32. package/dist/useResponsive-CodiGUOE.cjs +1 -0
  33. package/dist/vue-data-ui-BTtxyUc3.cjs +9 -0
  34. package/dist/vue-data-ui-Bduq4f2p.js +261 -0
  35. package/dist/vue-data-ui.cjs +1 -1
  36. package/dist/vue-data-ui.js +1 -1
  37. package/dist/vue-ui-3d-bar-B-P7PMHs.cjs +19 -0
  38. package/dist/{vue-ui-3d-bar-DcF1nyGW.js → vue-ui-3d-bar-BUEq_VdY.js} +421 -390
  39. package/dist/{vue-ui-accordion-D_1fE5EF.js → vue-ui-accordion-DfUfL2dI.js} +3 -3
  40. package/dist/{vue-ui-accordion-Cc9958th.cjs → vue-ui-accordion-TEMpM1hO.cjs} +1 -1
  41. package/dist/{vue-ui-age-pyramid-Oe_yHDL0.js → vue-ui-age-pyramid-CH72tAMb.js} +255 -222
  42. package/dist/vue-ui-age-pyramid-DsbZ1qcQ.cjs +1 -0
  43. package/dist/{vue-ui-annotator-Dix6_Gm6.js → vue-ui-annotator-DPeJ2its.js} +1 -1
  44. package/dist/{vue-ui-annotator-Dbp6cWMr.cjs → vue-ui-annotator-DU_DJKCw.cjs} +1 -1
  45. package/dist/vue-ui-bullet-CtP3MlUT.js +464 -0
  46. package/dist/vue-ui-bullet-D8ks_rKr.cjs +34 -0
  47. package/dist/vue-ui-candlestick-D1jdr0bv.cjs +2 -0
  48. package/dist/{vue-ui-candlestick-CRwzWF6j.js → vue-ui-candlestick-DDil13a0.js} +278 -245
  49. package/dist/{vue-ui-carousel-table-BHeEbRKY.js → vue-ui-carousel-table-BaeIxyc0.js} +76 -69
  50. package/dist/vue-ui-carousel-table-C7SJIOG-.cjs +1 -0
  51. package/dist/{vue-ui-chestnut-CRk0RCB9.js → vue-ui-chestnut-BczSJF6S.js} +322 -291
  52. package/dist/vue-ui-chestnut-ih5r0Bj9.cjs +6 -0
  53. package/dist/{vue-ui-cursor-lU1rts1B.cjs → vue-ui-cursor-C2Pj_CI_.cjs} +1 -1
  54. package/dist/{vue-ui-cursor-y0kdr0uA.js → vue-ui-cursor-Dg_Dmww-.js} +2 -2
  55. package/dist/{vue-ui-dashboard-OyihaKdu.js → vue-ui-dashboard-Bul9dqx1.js} +2 -2
  56. package/dist/{vue-ui-dashboard-BfC0jS-X.cjs → vue-ui-dashboard-Cg020NiT.cjs} +1 -1
  57. package/dist/{vue-ui-digits-IKt4qT2-.js → vue-ui-digits-B8iAa4YZ.js} +2 -2
  58. package/dist/{vue-ui-digits-BJfcAiq_.cjs → vue-ui-digits-Ctgd84JR.cjs} +1 -1
  59. package/dist/vue-ui-donut-D7KT9EAp.cjs +1 -0
  60. package/dist/{vue-ui-donut-DFaGk4fI.js → vue-ui-donut-DUcp-fat.js} +376 -343
  61. package/dist/vue-ui-donut-evolution-CHtJ8iOK.cjs +1 -0
  62. package/dist/{vue-ui-donut-evolution-Dd4o37RP.js → vue-ui-donut-evolution-C_YMbTwq.js} +375 -344
  63. package/dist/vue-ui-dumbbell-B0dikuqO.cjs +9 -0
  64. package/dist/{vue-ui-dumbbell-B7j1_JoQ.js → vue-ui-dumbbell-Buwngz_V.js} +294 -261
  65. package/dist/vue-ui-flow-Bz3c0K5P.js +515 -0
  66. package/dist/vue-ui-flow-D6rc8J-8.cjs +1 -0
  67. package/dist/{vue-ui-galaxy-CH1BDtWl.js → vue-ui-galaxy-Cjh0XGTX.js} +212 -181
  68. package/dist/vue-ui-galaxy-CmTt0vBf.cjs +1 -0
  69. package/dist/vue-ui-gauge-B1UvGkQa.js +527 -0
  70. package/dist/vue-ui-gauge-B_TKuyM7.cjs +1 -0
  71. package/dist/{vue-ui-gizmo-DVwQaEH1.cjs → vue-ui-gizmo-DFW6HnHp.cjs} +1 -1
  72. package/dist/{vue-ui-gizmo-CKQcbe_7.js → vue-ui-gizmo-DUQ4t-At.js} +3 -3
  73. package/dist/{vue-ui-heatmap-B-zWMk0Y.js → vue-ui-heatmap-C-poazUw.js} +308 -277
  74. package/dist/vue-ui-heatmap-C2HlnqzO.cjs +1 -0
  75. package/dist/{vue-ui-kpi-CghbfSdM.js → vue-ui-kpi-DXe-vxAk.js} +3 -3
  76. package/dist/{vue-ui-kpi-CuY3xlVq.cjs → vue-ui-kpi-Z4Oi4raz.cjs} +1 -1
  77. package/dist/{vue-ui-mini-loader-C7roqZ4p.js → vue-ui-mini-loader-BVtHTqxS.js} +2 -2
  78. package/dist/{vue-ui-mini-loader-CH_PfeDc.cjs → vue-ui-mini-loader-MMvpm9pz.cjs} +1 -1
  79. package/dist/vue-ui-molecule-BaJpDZND.js +805 -0
  80. package/dist/vue-ui-molecule-BiYIcOKN.cjs +1 -0
  81. package/dist/{vue-ui-mood-radar-DSznHxLS.js → vue-ui-mood-radar-BUNDwsEI.js} +259 -228
  82. package/dist/vue-ui-mood-radar-C6jMyFkb.cjs +1 -0
  83. package/dist/vue-ui-nested-donuts-DKO2dFKo.cjs +17 -0
  84. package/dist/{vue-ui-nested-donuts-CiE4DdEQ.js → vue-ui-nested-donuts-mDy2hXa6.js} +371 -338
  85. package/dist/vue-ui-onion-DwFG3HAI.js +650 -0
  86. package/dist/vue-ui-onion-GWNoZRhw.cjs +5 -0
  87. package/dist/vue-ui-parallel-coordinate-plot-DODn4Ohf.cjs +8 -0
  88. package/dist/vue-ui-parallel-coordinate-plot-ImET_zeo.js +719 -0
  89. package/dist/{vue-ui-quadrant-Cs3A77us.js → vue-ui-quadrant-BeveRihK.js} +359 -326
  90. package/dist/vue-ui-quadrant-yuFAxV-5.cjs +1 -0
  91. package/dist/{vue-ui-quick-chart-CiiSUexi.js → vue-ui-quick-chart-DAhllTfa.js} +585 -552
  92. package/dist/vue-ui-quick-chart-DgFDBzjS.cjs +15 -0
  93. package/dist/vue-ui-radar-BJH5SE6-.cjs +1 -0
  94. package/dist/{vue-ui-radar-CNSpiNrM.js → vue-ui-radar-BllatzRa.js} +279 -246
  95. package/dist/{vue-ui-rating-GoUNDOdZ.cjs → vue-ui-rating-BoZo7caL.cjs} +1 -1
  96. package/dist/{vue-ui-rating-b_iYZWF8.js → vue-ui-rating-D1ykV4xO.js} +2 -2
  97. package/dist/vue-ui-relation-circle-CKmjOle7.cjs +1 -0
  98. package/dist/vue-ui-relation-circle-xv2l5Be9.js +358 -0
  99. package/dist/vue-ui-rings-B-ZcX6y1.js +602 -0
  100. package/dist/vue-ui-rings-DjH3CK23.cjs +2 -0
  101. package/dist/{vue-ui-scatter-CVuoW-cD.js → vue-ui-scatter-DG43ck1g.js} +440 -407
  102. package/dist/vue-ui-scatter-SBCXAl7q.cjs +1 -0
  103. package/dist/{vue-ui-screenshot-Co2o48d6.cjs → vue-ui-screenshot-C1JBP_N0.cjs} +1 -1
  104. package/dist/{vue-ui-screenshot-Csc0dQL9.js → vue-ui-screenshot-p3ca8cAl.js} +1 -1
  105. package/dist/{vue-ui-skeleton-B2sRnIXX.js → vue-ui-skeleton-BYssP0K4.js} +419 -379
  106. package/dist/vue-ui-skeleton-BqKzuhkB.cjs +41 -0
  107. package/dist/{vue-ui-smiley-Ci3uMgVh.cjs → vue-ui-smiley-BXKVpHl2.cjs} +1 -1
  108. package/dist/{vue-ui-smiley-D4s-AdIE.js → vue-ui-smiley-D7dDCdpq.js} +2 -2
  109. package/dist/vue-ui-spark-trend-9V60hM3Z.cjs +1 -0
  110. package/dist/{vue-ui-spark-trend-CHKQGMLs.js → vue-ui-spark-trend-GWFrO_0z.js} +86 -79
  111. package/dist/vue-ui-sparkbar-Bgn6AY0q.cjs +1 -0
  112. package/dist/{vue-ui-sparkbar-Bb1fq2GR.js → vue-ui-sparkbar-CwqlyAyv.js} +90 -83
  113. package/dist/vue-ui-sparkgauge-Dqntz2Zv.cjs +1 -0
  114. package/dist/{vue-ui-sparkgauge-DWuaAQbo.js → vue-ui-sparkgauge-F2XbiXyA.js} +57 -50
  115. package/dist/{vue-ui-sparkhistogram-CjeJ3ch1.js → vue-ui-sparkhistogram-DRIKK6Ym.js} +74 -67
  116. package/dist/vue-ui-sparkhistogram-DnY4-Sdn.cjs +1 -0
  117. package/dist/vue-ui-sparkline-CAEs-gtK.cjs +1 -0
  118. package/dist/{vue-ui-sparkline-DGJDBArr.js → vue-ui-sparkline-Cxtzdlhi.js} +134 -125
  119. package/dist/{vue-ui-sparkstackbar-B3ul3qUZ.js → vue-ui-sparkstackbar-0A1klq9s.js} +84 -77
  120. package/dist/vue-ui-sparkstackbar-D37ms1rx.cjs +1 -0
  121. package/dist/vue-ui-stackbar-ByOuJSdM.js +947 -0
  122. package/dist/vue-ui-stackbar-wun4S3C0.cjs +6 -0
  123. package/dist/{vue-ui-strip-plot-CIb2LSV8.js → vue-ui-strip-plot-CMD0MSqY.js} +297 -264
  124. package/dist/vue-ui-strip-plot-IQrypGvz.cjs +1 -0
  125. package/dist/{vue-ui-table-CmVi0nv2.js → vue-ui-table-B75DJ39t.js} +1 -1
  126. package/dist/{vue-ui-table-B_sFrAO9.cjs → vue-ui-table-aj0XZ7T5.cjs} +1 -1
  127. package/dist/{vue-ui-table-heatmap-CgFr38QT.js → vue-ui-table-heatmap-BO2ugWqD.js} +55 -48
  128. package/dist/vue-ui-table-heatmap-Ce93TyBF.cjs +1 -0
  129. package/dist/{vue-ui-table-sparkline-eg2Qd8ws.js → vue-ui-table-sparkline-CbjfAaj2.js} +88 -81
  130. package/dist/vue-ui-table-sparkline-D6KJjDnU.cjs +1 -0
  131. package/dist/vue-ui-thermometer-Pq4PvSIP.js +447 -0
  132. package/dist/vue-ui-thermometer-swmi4FmH.cjs +1 -0
  133. package/dist/{vue-ui-timer-DM1IStj1.cjs → vue-ui-timer-B6IB6yS6.cjs} +1 -1
  134. package/dist/{vue-ui-timer-COSI3Q5T.js → vue-ui-timer-Bk3BvB-B.js} +6 -6
  135. package/dist/vue-ui-tiremarks-CU9HJIqf.js +310 -0
  136. package/dist/vue-ui-tiremarks-Cn79uQH2.cjs +1 -0
  137. package/dist/vue-ui-treemap-BEMuKV7x.cjs +1 -0
  138. package/dist/vue-ui-treemap-DY-lRAhC.js +825 -0
  139. package/dist/vue-ui-vertical-bar-B1e2RxTv.cjs +4 -0
  140. package/dist/vue-ui-vertical-bar-CtnIKsM1.js +861 -0
  141. package/dist/vue-ui-waffle-BqP7Okgu.cjs +1 -0
  142. package/dist/vue-ui-waffle-reOsx-gJ.js +791 -0
  143. package/dist/vue-ui-wheel-BuWUGnkC.cjs +1 -0
  144. package/dist/vue-ui-wheel-kYxny3vn.js +291 -0
  145. package/dist/vue-ui-word-cloud-DbMqrHAf.js +607 -0
  146. package/dist/vue-ui-word-cloud-DwLY4QdB.cjs +1 -0
  147. package/dist/vue-ui-xy-CGWzriYn.cjs +3 -0
  148. package/dist/{vue-ui-xy-canvas-BYdTxzi6.js → vue-ui-xy-canvas-B0HTR7OV.js} +441 -408
  149. package/dist/vue-ui-xy-canvas-CgJd5FiT.cjs +9 -0
  150. package/dist/{vue-ui-xy-x8KEsGV-.js → vue-ui-xy-rbACig0h.js} +824 -791
  151. package/package.json +1 -1
  152. package/dist/BaseIcon-E7FmzMcY.cjs +0 -1
  153. package/dist/index-C7_6YjWN.cjs +0 -9
  154. package/dist/usePrinter-8EP4iaGm.cjs +0 -1
  155. package/dist/useResponsive-B3TrDDIG.cjs +0 -1
  156. package/dist/useResponsive-NZB-WLRF.js +0 -187
  157. package/dist/vue-data-ui-4Yd255Ia.cjs +0 -9
  158. package/dist/vue-data-ui-Cp7bO_tj.js +0 -258
  159. package/dist/vue-ui-3d-bar-BeR2aBgQ.cjs +0 -19
  160. package/dist/vue-ui-age-pyramid-R-C4P4mI.cjs +0 -1
  161. package/dist/vue-ui-bullet-CQKaC4wG.js +0 -409
  162. package/dist/vue-ui-bullet-DSZox236.cjs +0 -23
  163. package/dist/vue-ui-candlestick-Dilozp3V.cjs +0 -2
  164. package/dist/vue-ui-carousel-table-C0GDDSW9.cjs +0 -1
  165. package/dist/vue-ui-chestnut-DdEcEI04.cjs +0 -6
  166. package/dist/vue-ui-donut-DTSVlGMg.cjs +0 -1
  167. package/dist/vue-ui-donut-evolution-BuUafabD.cjs +0 -1
  168. package/dist/vue-ui-dumbbell-CVfgnyKi.cjs +0 -9
  169. package/dist/vue-ui-flow-C45dODaB.cjs +0 -1
  170. package/dist/vue-ui-flow-DkPTzNv9.js +0 -484
  171. package/dist/vue-ui-galaxy-DlPavMK0.cjs +0 -1
  172. package/dist/vue-ui-gauge-BXiy515T.js +0 -494
  173. package/dist/vue-ui-gauge-vMFUYHYH.cjs +0 -1
  174. package/dist/vue-ui-heatmap-CMQqQnxc.cjs +0 -1
  175. package/dist/vue-ui-molecule-BwmkMEVN.js +0 -774
  176. package/dist/vue-ui-molecule-nOuD0hR5.cjs +0 -1
  177. package/dist/vue-ui-mood-radar-Bof_C9Ae.cjs +0 -1
  178. package/dist/vue-ui-nested-donuts-DIb6YyWv.cjs +0 -17
  179. package/dist/vue-ui-onion-D9o6Rcgu.js +0 -617
  180. package/dist/vue-ui-onion-N3tRNc4u.cjs +0 -5
  181. package/dist/vue-ui-parallel-coordinate-plot-BcYrYXhG.js +0 -686
  182. package/dist/vue-ui-parallel-coordinate-plot-qKGk2bX6.cjs +0 -8
  183. package/dist/vue-ui-quadrant-Do48rGrX.cjs +0 -1
  184. package/dist/vue-ui-quick-chart-BxU4d-sJ.cjs +0 -15
  185. package/dist/vue-ui-radar-CooAvwPA.cjs +0 -1
  186. package/dist/vue-ui-relation-circle-nRf1pvD0.js +0 -325
  187. package/dist/vue-ui-relation-circle-uNgJni4x.cjs +0 -1
  188. package/dist/vue-ui-rings-BgRc1o4_.js +0 -569
  189. package/dist/vue-ui-rings-iIgQI9Ws.cjs +0 -2
  190. package/dist/vue-ui-scatter-CkrpmLxP.cjs +0 -1
  191. package/dist/vue-ui-skeleton-CGV1dEUD.cjs +0 -41
  192. package/dist/vue-ui-spark-trend-BfoEoJEy.cjs +0 -1
  193. package/dist/vue-ui-sparkbar-DB2DeXti.cjs +0 -1
  194. package/dist/vue-ui-sparkgauge-CJepIY2u.cjs +0 -1
  195. package/dist/vue-ui-sparkhistogram-B7B36LLT.cjs +0 -1
  196. package/dist/vue-ui-sparkline-BcqmwDAb.cjs +0 -1
  197. package/dist/vue-ui-sparkstackbar-DT3aKNeV.cjs +0 -1
  198. package/dist/vue-ui-stackbar-CRcUugkl.cjs +0 -6
  199. package/dist/vue-ui-stackbar-DNROvZII.js +0 -915
  200. package/dist/vue-ui-strip-plot-Ck9Fmt_b.cjs +0 -1
  201. package/dist/vue-ui-table-heatmap-Chvdf2Gi.cjs +0 -1
  202. package/dist/vue-ui-table-sparkline-DUUYQ5dH.cjs +0 -1
  203. package/dist/vue-ui-thermometer-BFfN4aat.cjs +0 -1
  204. package/dist/vue-ui-thermometer-BePmFiwy.js +0 -416
  205. package/dist/vue-ui-tiremarks-BkYXzU3R.cjs +0 -1
  206. package/dist/vue-ui-tiremarks-d6TmSHY7.js +0 -279
  207. package/dist/vue-ui-treemap-BgeZnbl3.cjs +0 -1
  208. package/dist/vue-ui-treemap-Qg0858o6.js +0 -792
  209. package/dist/vue-ui-vertical-bar-CieqHVD5.js +0 -828
  210. package/dist/vue-ui-vertical-bar-D3atbdvl.cjs +0 -4
  211. package/dist/vue-ui-waffle-CD7C9Lu4.cjs +0 -1
  212. package/dist/vue-ui-waffle-CjNhM-mV.js +0 -758
  213. package/dist/vue-ui-wheel-B8mbO6ht.js +0 -258
  214. package/dist/vue-ui-wheel-CYmM7J61.cjs +0 -1
  215. package/dist/vue-ui-word-cloud-DMXrUmX5.js +0 -574
  216. package/dist/vue-ui-word-cloud-Dm9yZ1zQ.cjs +0 -1
  217. package/dist/vue-ui-xy-DoWnidom.cjs +0 -3
  218. package/dist/vue-ui-xy-canvas-DHs5sb3t.cjs +0 -9
@@ -1,20 +1,21 @@
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, C as fe, i as J, f as K, I as Ta, d as Ze, $ as Ma, o as Ra, e as Ia, x as Ge, y as Oa, q as Pa, r as Fa, s as Q, l as Ea } from "./index-DDXisDKy.js";
3
- import { d as _a, c as Na, a as Ve, t as Da, l as C, r as ye, b as P, p as je, u as Ha } from "./useResponsive-NZB-WLRF.js";
4
- import { _ as Wa } from "./Tooltip-CICAYyQj.js";
5
- import { L as Ya } from "./Legend-DXLiSLHd.js";
6
- import { _ as Ba } from "./Title-DYNLqCCT.js";
7
- import { S as Xa } from "./Slicer-BZfUZr1J.js";
8
- import { u as Aa, U as Ua } from "./usePrinter-8ofTb2MJ.js";
9
- import Za from "./vue-ui-accordion-D_1fE5EF.js";
10
- import { D as Ga } from "./DataTable-DL2agEJ3.js";
11
- import Va from "./vue-ui-skeleton-B2sRnIXX.js";
12
- import { u as qe } from "./useNestedProp-S1UXxUgm.js";
13
- import { _ as ja } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
- const qa = ["id"], Ja = ["onClick"], Ka = {
1
+ import { ref as v, computed as m, watch as Y, onMounted as xa, onBeforeUnmount as La, openBlock as C, createElementBlock as q, normalizeStyle as J, normalizeClass as ka, createBlock as P, createCommentVNode as _, unref as A, createSlots as Ca, withCtx as b, renderSlot as x, normalizeProps as B, guardReactiveProps as X, createElementVNode as K, createVNode as wa, toDisplayString as Ve, createTextVNode as Sa } from "vue";
2
+ import { u as $a, c as za, t as Ta, a as Ma, p as D, b as Ra, C as ge, i as Q, f as ee, I as Ia, d as je, $ as Oa, o as Pa, e as Fa, x as qe, y as Ea, q as Na, r as _a, s as ae, l as Aa } from "./index-Bya_q1J-.js";
3
+ import { d as Da, c as Ha, a as Je, t as Wa, l as w, r as pe, b as F, p as Ke, u as Ya } from "./useResponsive-BY8tgM1n.js";
4
+ import { _ as Ba } from "./Tooltip-Cz24YLfw.js";
5
+ import { L as Xa } from "./Legend-DNgTCgEK.js";
6
+ import { _ as Ua } from "./Title-C5pIfQAz.js";
7
+ import { S as Za } from "./Slicer-TfpN2Cr4.js";
8
+ import { u as Ga, U as Va } from "./usePrinter-CiHd1FwD.js";
9
+ import ja from "./vue-ui-accordion-DfUfL2dI.js";
10
+ import { D as qa } from "./DataTable-DYqC2pqu.js";
11
+ import Ja from "./vue-ui-skeleton-BYssP0K4.js";
12
+ import { u as Qe } from "./useNestedProp-B33hazbH.js";
13
+ import { P as Ka } from "./PenAndPaper-DAZYA8Ew.js";
14
+ import { _ as Qa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
+ const et = ["id"], at = ["onClick"], tt = {
15
16
  key: 2,
16
17
  class: "vue-data-ui-watermark"
17
- }, Qa = ["innerHTML"], el = {
18
+ }, lt = ["innerHTML"], ot = {
18
19
  __name: "vue-ui-xy-canvas",
19
20
  props: {
20
21
  dataset: {
@@ -31,40 +32,40 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
31
32
  }
32
33
  },
33
34
  emits: ["selectLegend"],
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), f = 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(),
35
+ setup(be, { expose: ea, emit: aa }) {
36
+ const E = be, { vue_ui_xy_canvas: ta } = $a(), ie = v(za()), U = v(null), $ = v(null), Z = v(null), s = v(null), f = v(1), M = v(1), te = v(!1), d = v(null), le = v(""), me = v(null), S = v([]), H = v(1), N = v(!0), z = v(!0), ve = v(null), xe = v(0), Le = v(0), ce = v(!1), ke = v(null), Ce = v(null), we = v(null), Se = v(null), $e = v(0), ze = v(0), Te = v(0), de = m(() => !!E.dataset && E.dataset.length), a = m({
37
+ get: () => Me(),
37
38
  set: (e) => e
38
39
  });
39
- function $e() {
40
- const e = qe({
41
- userConfig: F.config,
42
- defaultConfig: Qe
40
+ function Me() {
41
+ const e = Qe({
42
+ userConfig: E.config,
43
+ defaultConfig: ta
43
44
  });
44
45
  return e.theme ? {
45
- ...qe({
46
- userConfig: Sa.vue_ui_xy_canvas[e.theme] || F.config,
46
+ ...Qe({
47
+ userConfig: Ta.vue_ui_xy_canvas[e.theme] || E.config,
47
48
  defaultConfig: e
48
49
  }),
49
- customPalette: $a[e.theme] || D
50
+ customPalette: Ma[e.theme] || D
50
51
  } : e;
51
52
  }
52
- Y(() => F.config, (e) => {
53
- a.value = $e(), _e(), Ce.value += 1, we.value += 1, Se.value += 1;
53
+ Y(() => E.config, (e) => {
54
+ a.value = Me(), De(), $e.value += 1, ze.value += 1, Te.value += 1;
54
55
  }, { deep: !0 });
55
- const ze = v(a.value.style.chart.aspectRatio), { isPrinting: Te, isImaging: Me, generatePdf: Re, generateImage: Ie } = Aa({
56
- elementId: `xy_canvas_${ne.value}`,
56
+ const Re = v(a.value.style.chart.aspectRatio), { isPrinting: Ie, isImaging: Oe, generatePdf: Pe, generateImage: Fe } = Ga({
57
+ elementId: `xy_canvas_${ie.value}`,
57
58
  fileName: a.value.style.chart.title.text || "vue-ui-xy-canvas"
58
- }), r = v({
59
+ }), u = v({
59
60
  showTable: a.value.table.show,
60
61
  showDataLabels: a.value.style.chart.dataLabels.show,
61
62
  stacked: a.value.style.chart.stacked,
62
63
  showTooltip: a.value.style.chart.tooltip.show
63
64
  });
64
- function ea(e) {
65
- ve.value = e, me.value += 1;
65
+ function la(e) {
66
+ ce.value = e, Le.value += 1;
66
67
  }
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(() => {
68
+ const Ee = m(() => Ra(a.value.customPalette)), R = m(() => W.value ? Math.max(...W.value.filter((e, l) => !S.value.includes(e.absoluteIndex)).map((e) => e.series.length)) : 0), t = m(() => {
68
69
  const e = f.value - f.value * (a.value.style.chart.paddingProportions.left + a.value.style.chart.paddingProportions.right);
69
70
  return {
70
71
  canvasWidth: f.value,
@@ -75,49 +76,49 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
75
76
  bottom: M.value - M.value * a.value.style.chart.paddingProportions.bottom,
76
77
  width: e,
77
78
  height: M.value - M.value * (a.value.style.chart.paddingProportions.top + a.value.style.chart.paddingProportions.bottom),
78
- slot: e / (u.value.end - u.value.start)
79
+ slot: e / (r.value.end - r.value.start)
79
80
  };
80
81
  });
81
- function Pe(e, t) {
82
- return e / t;
82
+ function Ne(e, l) {
83
+ return e / l;
83
84
  }
84
- function aa({ hasAutoScale: e, series: t, min: o, max: i, scale: c, yOffset: y, individualHeight: n, stackIndex: g = null }) {
85
- return t.map((L, he) => {
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 - y - n * (e ? X : I), {
91
- x: l.value.left + l.value.slot * he + l.value.slot / 2,
92
- y: A,
93
- value: L
85
+ function oa({ hasAutoScale: e, series: l, min: o, max: i, scale: c, yOffset: y, individualHeight: n, stackIndex: g = null }) {
86
+ return l.map((k, ye) => {
87
+ const T = c.min < 0 ? Math.abs(c.min) : 0, I = Ne(k + T, T + c.max);
88
+ let O, G;
89
+ e && (O = Math.abs(c.min), G = Ne(k + O, c.max + O));
90
+ let V = 0;
91
+ return g === null ? V = t.value.bottom - t.value.height * (e ? G : I) : V = t.value.bottom - y - n * (e ? G : I), {
92
+ x: t.value.left + t.value.slot * ye + t.value.slot / 2,
93
+ y: V,
94
+ value: k
94
95
  };
95
96
  });
96
97
  }
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 = 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, c = l.value.bottom - l.value.height * (i / (o.max + i)), y = o.ticks.map((n) => ({
99
- y: l.value.bottom - l.value.height * ((n + i) / (o.max + i)),
100
- x: l.value.left - 8,
98
+ const p = m(() => {
99
+ const e = Math.min(...W.value.filter((n, g) => !S.value.includes(n.absoluteIndex)).flatMap((n) => n.series.slice(r.value.start, r.value.end))), l = Math.max(...W.value.filter((n, g) => !S.value.includes(n.absoluteIndex)).flatMap((n) => n.series.slice(r.value.start, r.value.end))), o = ge(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) => ({
100
+ y: t.value.bottom - t.value.height * ((n + i) / (o.max + i)),
101
+ x: t.value.left - 8,
101
102
  value: n
102
103
  }));
103
104
  return {
104
105
  absoluteMin: i,
105
- max: t,
106
+ max: l,
106
107
  min: e,
107
108
  scale: o,
108
109
  yLabels: y,
109
110
  zero: c
110
111
  };
111
- }), la = b(() => h.value.map((e) => `
112
+ }), ra = m(() => h.value.map((e) => `
112
113
  <div style="display:flex;flex-direction:row;gap:6px;align-items:center;">
113
114
  <svg viewBox="0 0 10 10" height="12" width="12">
114
115
  <circle cx="5" cy="5" r="5" fill="${e.color}"/>
115
116
  </svg>
116
117
  <span>${e.name ? e.name + ": " : ""}</span>
117
- <span>${J(
118
+ <span>${Q(
118
119
  a.value.style.chart.dataLabels.formatter,
119
120
  e.series[d.value],
120
- K({
121
+ ee({
121
122
  p: e.prefix || "",
122
123
  v: e.series[d.value],
123
124
  s: e.suffix || "",
@@ -126,88 +127,88 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
126
127
  { datapoint: e, seriesIndex: d.value }
127
128
  )}</span>
128
129
  </div>
129
- `)), W = b(() => F.dataset.map((e, t) => ({
130
+ `)), W = m(() => E.dataset.map((e, l) => ({
130
131
  ...e,
131
- series: Ta(e.series),
132
- absoluteIndex: t,
133
- color: Ze(e.color || Oe.value[t] || D[t] || D[t % D.length])
132
+ series: Ia(e.series),
133
+ absoluteIndex: l,
134
+ color: je(e.color || Ee.value[l] || D[l] || D[l % D.length])
134
135
  })));
135
136
  Y(R, (e) => {
136
- e && Fe();
137
+ e && _e();
137
138
  });
138
- const h = b(() => Ma(W.value.filter((e, t) => !w.value.includes(e.absoluteIndex))).map((e, t) => ({
139
+ const h = m(() => Oa(W.value.filter((e, l) => !S.value.includes(e.absoluteIndex))).map((e, l) => ({
139
140
  ...e,
140
- series: e.series.slice(u.value.start, u.value.end)
141
- })).map((e, t) => {
141
+ series: e.series.slice(r.value.start, r.value.end)
142
+ })).map((e, l) => {
142
143
  let o = Math.min(...e.series) || 0, i = Math.max(...e.series) || 1;
143
144
  o === i && (o = o >= 0 ? i - 1 : o, i = i >= 0 ? i : o + 1);
144
145
  const y = {
145
- ratios: e.series.filter((U) => ![null, void 0].includes(U)).map((U) => (U - o) / (i - o)),
146
+ ratios: e.series.filter((j) => ![null, void 0].includes(j)).map((j) => (j - o) / (i - o)),
146
147
  valueMin: o,
147
148
  valueMax: i
148
149
  }, n = e.scaleSteps || a.value.style.chart.scale.ticks;
149
150
  let g;
150
- e.autoScaling ? g = fe(y.valueMin, y.valueMax, n) : g = fe(y.valueMin < 0 ? y.valueMin : 0, y.valueMax <= 0 ? 0 : y.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;
151
+ e.autoScaling ? g = ge(y.valueMin, y.valueMax, n) : g = ge(y.valueMin < 0 ? y.valueMin : 0, y.valueMax <= 0 ? 0 : y.valueMax, n);
152
+ const k = u.value.stacked ? t.value.height * (1 - e.cumulatedStackRatio) : 0, ye = u.value.stacked ? t.value.height / a.value.style.chart.stackGap : 0, T = u.value.stacked ? t.value.height * e.stackRatio - ye : t.value.height, I = g.min < 0 ? Math.abs(g.min) : 0;
152
153
  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)),
156
- x: l.value.left - 8,
157
- value: U
158
- })), A = aa({
159
- hasAutoScale: r.value.stacked && e.autoScaling,
154
+ e.autoScaling && u.value.stacked && i <= 0 ? O = t.value.bottom - k - T : O = t.value.bottom - k - T * (I / (g.max + I));
155
+ const G = g.ticks.map((j, ma) => ({
156
+ y: t.value.bottom - k - T * (ma / (g.ticks.length - 1)),
157
+ x: t.value.left - 8,
158
+ value: j
159
+ })), V = oa({
160
+ hasAutoScale: u.value.stacked && e.autoScaling,
160
161
  series: e.series,
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,
164
- yOffset: L,
162
+ min: u.value.stacked ? o : p.value.min,
163
+ max: u.value.stacked ? i : p.value.max,
164
+ scale: u.value.stacked ? g : p.value.scale,
165
+ yOffset: k,
165
166
  individualHeight: T,
166
- stackIndex: r.value.stacked ? t : null
167
+ stackIndex: u.value.stacked ? l : null
167
168
  });
168
169
  return {
169
170
  ...e,
170
- coordinatesLine: A,
171
+ coordinatesLine: V,
171
172
  min: o,
172
173
  max: i,
173
174
  localScale: g,
174
175
  localZero: O,
175
176
  localMin: I,
176
- localYLabels: X,
177
- yOffset: L,
177
+ localYLabels: G,
178
+ yOffset: k,
178
179
  individualHeight: T
179
180
  };
180
- })), u = v({
181
+ })), r = v({
181
182
  start: 0,
182
183
  end: R.value
183
184
  });
184
- function Fe() {
185
- u.value = {
185
+ function _e() {
186
+ r.value = {
186
187
  start: 0,
187
188
  end: R.value
188
- }, be.value += 1;
189
+ }, xe.value += 1;
189
190
  }
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() {
191
+ const ua = m(() => h.value.filter((e) => ["line", "plot", void 0].includes(e.type))), L = m(() => h.value.filter((e) => e.type === "bar"));
192
+ function sa() {
192
193
  if (!$.value)
193
194
  return;
194
- const e = B.value.offsetWidth, t = B.value.offsetHeight;
195
- $.value.width = e * H.value * 2, $.value.height = t * H.value * 2, f.value = e * H.value * 2, M.value = t * H.value * 2, s.value.scale(H.value, H.value), de();
195
+ const e = Z.value.offsetWidth, l = Z.value.offsetHeight;
196
+ $.value.width = e * H.value * 2, $.value.height = l * H.value * 2, f.value = e * H.value * 2, M.value = l * H.value * 2, s.value.scale(H.value, H.value), he();
196
197
  }
197
- function ua() {
198
- 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), 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)
201
- C(
198
+ function na() {
199
+ 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)
200
+ 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) => {
201
+ for (let l = 0; l < r.value.end - r.value.start + 1; l += 1)
202
+ w(
202
203
  s.value,
203
204
  [
204
205
  {
205
- x: l.value.left + l.value.slot * t,
206
- y: l.value.bottom - e.yOffset - e.individualHeight
206
+ x: t.value.left + t.value.slot * l,
207
+ y: t.value.bottom - e.yOffset - e.individualHeight
207
208
  },
208
209
  {
209
- x: l.value.left + l.value.slot * t,
210
- y: l.value.bottom - e.yOffset
210
+ x: t.value.left + t.value.slot * l,
211
+ y: t.value.bottom - e.yOffset
211
212
  }
212
213
  ],
213
214
  {
@@ -215,28 +216,28 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
215
216
  }
216
217
  );
217
218
  }), a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? h.value.forEach((e) => {
218
- e.localYLabels.forEach((t, o) => {
219
- o < e.localYLabels.length - 1 && ye(
219
+ e.localYLabels.forEach((l, o) => {
220
+ o < e.localYLabels.length - 1 && pe(
220
221
  s.value,
221
222
  [
222
- { x: l.value.left, y: t.y },
223
- { x: l.value.right, y: t.y },
224
- { x: l.value.right, y: e.localYLabels[o + 1].y },
225
- { x: l.value.left, y: e.localYLabels[o + 1].y }
223
+ { x: t.value.left, y: l.y },
224
+ { x: t.value.right, y: l.y },
225
+ { x: t.value.right, y: e.localYLabels[o + 1].y },
226
+ { x: t.value.left, y: e.localYLabels[o + 1].y }
226
227
  ],
227
228
  {
228
- fillColor: o % 2 === 0 ? "transparent" : Q(a.value.style.chart.grid.x.horizontalLines.color, a.value.style.chart.grid.x.horizontalLines.opacity),
229
+ fillColor: o % 2 === 0 ? "transparent" : ae(a.value.style.chart.grid.x.horizontalLines.color, a.value.style.chart.grid.x.horizontalLines.opacity),
229
230
  strokeColor: "transparent"
230
231
  }
231
232
  );
232
233
  });
233
234
  }) : h.value.forEach((e) => {
234
- e.localYLabels.slice(u.value.start, u.value.end).forEach((t) => {
235
- C(
235
+ e.localYLabels.slice(r.value.start, r.value.end).forEach((l) => {
236
+ w(
236
237
  s.value,
237
238
  [
238
- { x: l.value.left, y: t.y },
239
- { x: l.value.right, y: t.y }
239
+ { x: t.value.left, y: l.y },
240
+ { x: t.value.right, y: l.y }
240
241
  ],
241
242
  {
242
243
  color: a.value.style.chart.grid.x.horizontalLines.color
@@ -244,11 +245,11 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
244
245
  );
245
246
  });
246
247
  })), a.value.style.chart.grid.zeroLine.show && h.value.forEach((e) => {
247
- C(
248
+ w(
248
249
  s.value,
249
250
  [
250
- { x: l.value.left, y: e.localZero },
251
- { x: l.value.right, y: e.localZero }
251
+ { x: t.value.left, y: e.localZero },
252
+ { x: t.value.right, y: e.localZero }
252
253
  ],
253
254
  {
254
255
  color: a.value.style.chart.grid.zeroLine.color,
@@ -256,40 +257,40 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
256
257
  }
257
258
  );
258
259
  }), a.value.style.chart.grid.y.axisLabels.show && h.value.forEach((e) => {
259
- C(
260
+ w(
260
261
  s.value,
261
262
  [
262
- { x: l.value.left, y: l.value.bottom - e.yOffset },
263
- { x: l.value.left, y: l.value.bottom - e.yOffset - e.individualHeight }
263
+ { x: t.value.left, y: t.value.bottom - e.yOffset },
264
+ { x: t.value.left, y: t.value.bottom - e.yOffset - e.individualHeight }
264
265
  ],
265
266
  {
266
267
  color: e.color
267
268
  }
268
- ), C(
269
+ ), w(
269
270
  s.value,
270
271
  [
271
- { x: l.value.right, y: l.value.bottom - e.yOffset },
272
- { x: l.value.right, y: l.value.bottom - e.yOffset - e.individualHeight }
272
+ { x: t.value.right, y: t.value.bottom - e.yOffset },
273
+ { x: t.value.right, y: t.value.bottom - e.yOffset - e.individualHeight }
273
274
  ],
274
275
  {
275
276
  color: e.color
276
277
  }
277
- ), e.localYLabels.forEach((t, o) => {
278
- P(
278
+ ), e.localYLabels.forEach((l, o) => {
279
+ F(
279
280
  s.value,
280
- J(
281
+ Q(
281
282
  a.value.style.chart.dataLabels.formatter,
282
- t.value,
283
- K({
283
+ l.value,
284
+ ee({
284
285
  p: e.prefix || a.value.style.chart.grid.y.axisLabels.prefix || "",
285
- v: t.value,
286
+ v: l.value,
286
287
  s: e.suffix || a.value.style.chart.grid.y.axisLabels.suffix || "",
287
288
  r: e.rounding || a.value.style.chart.grid.y.axisLabels.rounding || 0
288
289
  }),
289
- { datapoint: t, seriesIndex: o }
290
+ { datapoint: l, seriesIndex: o }
290
291
  ),
291
- t.x + a.value.style.chart.grid.y.axisLabels.offsetX,
292
- t.y,
292
+ l.x + a.value.style.chart.grid.y.axisLabels.offsetX,
293
+ l.y,
293
294
  {
294
295
  align: "right",
295
296
  font: `${Math.round(f.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
@@ -298,11 +299,11 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
298
299
  );
299
300
  });
300
301
  }), h.value.forEach((e) => {
301
- P(
302
+ F(
302
303
  s.value,
303
304
  e.name,
304
305
  f.value / 35,
305
- l.value.bottom - e.yOffset - e.individualHeight / 2,
306
+ t.value.bottom - e.yOffset - e.individualHeight / 2,
306
307
  {
307
308
  align: "center",
308
309
  rotation: -90,
@@ -312,86 +313,86 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
312
313
  );
313
314
  });
314
315
  else {
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)
317
- C(
316
+ if (a.value.style.chart.grid.y.verticalLines.show && r.value.end - r.value.start < a.value.style.chart.grid.y.verticalLines.hideUnderXLength)
317
+ for (let e = 0; e < r.value.end - r.value.start + 1; e += 1)
318
+ w(
318
319
  s.value,
319
320
  [
320
- { x: l.value.left + l.value.slot * e, y: l.value.top },
321
- { x: l.value.left + l.value.slot * e, y: l.value.bottom }
321
+ { x: t.value.left + t.value.slot * e, y: t.value.top },
322
+ { x: t.value.left + t.value.slot * e, y: t.value.bottom }
322
323
  ],
323
324
  {
324
325
  color: a.value.style.chart.grid.y.verticalLines.color
325
326
  }
326
327
  );
327
- a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? p.value.yLabels.forEach((e, t) => {
328
- t < p.value.yLabels.length - 1 && ye(
328
+ a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? p.value.yLabels.forEach((e, l) => {
329
+ l < p.value.yLabels.length - 1 && pe(
329
330
  s.value,
330
331
  [
331
- { x: l.value.left, y: e.y },
332
- { x: l.value.right, y: e.y },
333
- { x: l.value.right, y: p.value.yLabels[t + 1].y },
334
- { x: l.value.left, y: p.value.yLabels[t + 1].y }
332
+ { x: t.value.left, y: e.y },
333
+ { x: t.value.right, y: e.y },
334
+ { x: t.value.right, y: p.value.yLabels[l + 1].y },
335
+ { x: t.value.left, y: p.value.yLabels[l + 1].y }
335
336
  ],
336
337
  {
337
- fillColor: t % 2 === 0 ? "transparent" : Q(a.value.style.chart.grid.x.horizontalLines.color, a.value.style.chart.grid.x.horizontalLines.opacity),
338
+ fillColor: l % 2 === 0 ? "transparent" : ae(a.value.style.chart.grid.x.horizontalLines.color, a.value.style.chart.grid.x.horizontalLines.opacity),
338
339
  strokeColor: "transparent"
339
340
  }
340
341
  );
341
342
  }) : p.value.yLabels.forEach((e) => {
342
- C(
343
+ w(
343
344
  s.value,
344
345
  [
345
- { x: l.value.left, y: e.y },
346
- { x: l.value.right, y: e.y }
346
+ { x: t.value.left, y: e.y },
347
+ { x: t.value.right, y: e.y }
347
348
  ],
348
349
  {
349
350
  color: a.value.style.chart.grid.x.horizontalLines.color
350
351
  }
351
352
  );
352
- })), a.value.style.chart.grid.y.showAxis && C(
353
+ })), a.value.style.chart.grid.y.showAxis && w(
353
354
  s.value,
354
355
  [
355
- { x: l.value.left, y: l.value.top },
356
- { x: l.value.left, y: l.value.bottom }
356
+ { x: t.value.left, y: t.value.top },
357
+ { x: t.value.left, y: t.value.bottom }
357
358
  ],
358
359
  {
359
360
  color: a.value.style.chart.grid.y.axisColor,
360
361
  lineWidth: a.value.style.chart.grid.y.axisThickness
361
362
  }
362
- ), a.value.style.chart.grid.x.showAxis && C(
363
+ ), a.value.style.chart.grid.x.showAxis && w(
363
364
  s.value,
364
365
  [
365
- { x: l.value.left, y: l.value.bottom },
366
- { x: l.value.right, y: l.value.bottom }
366
+ { x: t.value.left, y: t.value.bottom },
367
+ { x: t.value.right, y: t.value.bottom }
367
368
  ],
368
369
  {
369
370
  color: a.value.style.chart.grid.x.axisColor,
370
371
  lineWidth: a.value.style.chart.grid.x.axisThickness
371
372
  }
372
- ), a.value.style.chart.grid.zeroLine.show && C(
373
+ ), a.value.style.chart.grid.zeroLine.show && w(
373
374
  s.value,
374
375
  [
375
- { x: l.value.left, y: p.value.zero },
376
- { x: l.value.right, y: p.value.zero }
376
+ { x: t.value.left, y: p.value.zero },
377
+ { x: t.value.right, y: p.value.zero }
377
378
  ],
378
379
  {
379
380
  color: a.value.style.chart.grid.zeroLine.color,
380
381
  lineDash: a.value.style.chart.grid.zeroLine.dashed ? [10, 10] : [0, 0]
381
382
  }
382
- ), a.value.style.chart.grid.y.axisLabels.show && p.value.yLabels.forEach((e, t) => {
383
- P(
383
+ ), a.value.style.chart.grid.y.axisLabels.show && p.value.yLabels.forEach((e, l) => {
384
+ F(
384
385
  s.value,
385
- J(
386
+ Q(
386
387
  a.value.style.chart.dataLabels.formatter,
387
388
  e.value,
388
- K({
389
+ ee({
389
390
  p: a.value.style.chart.grid.y.axisLabels.prefix || "",
390
391
  v: e.value,
391
392
  s: a.value.style.chart.grid.y.axisLabels.suffix || "",
392
393
  r: a.value.style.chart.grid.y.axisLabels.rounding || 0
393
394
  }),
394
- { datapoint: e, seriesIndex: t }
395
+ { datapoint: e, seriesIndex: l }
395
396
  ),
396
397
  e.x + a.value.style.chart.grid.y.axisLabels.offsetX,
397
398
  e.y,
@@ -403,18 +404,18 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
403
404
  );
404
405
  });
405
406
  }
406
- a.value.style.chart.grid.y.axisName && P(
407
+ a.value.style.chart.grid.y.axisName && F(
407
408
  s.value,
408
409
  a.value.style.chart.grid.y.axisName,
409
410
  f.value - f.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio * 1.2,
410
- l.value.bottom - l.value.height / 2,
411
+ t.value.bottom - t.value.height / 2,
411
412
  {
412
413
  font: `${Math.round(f.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
413
414
  color: a.value.style.chart.color,
414
415
  align: "center",
415
416
  rotation: 90
416
417
  }
417
- ), a.value.style.chart.grid.x.axisName && P(
418
+ ), a.value.style.chart.grid.x.axisName && F(
418
419
  s.value,
419
420
  a.value.style.chart.grid.x.axisName,
420
421
  f.value / 2,
@@ -426,12 +427,12 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
426
427
  }
427
428
  );
428
429
  }
429
- function ra(e) {
430
- for (let t = 0; t < e.coordinatesLine.length; t += 1) {
431
- const o = (d.value === t ? f.value / 150 : a.value.style.chart.line.plots.show ? f.value / 200 : 0) * a.value.style.chart.line.plots.radiusRatio;
432
- Ve(
430
+ function ia(e) {
431
+ for (let l = 0; l < e.coordinatesLine.length; l += 1) {
432
+ 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;
433
+ Je(
433
434
  s.value,
434
- { x: e.coordinatesLine[t].x, y: e.coordinatesLine[t].y },
435
+ { x: e.coordinatesLine[l].x, y: e.coordinatesLine[l].y },
435
436
  o,
436
437
  {
437
438
  color: a.value.style.chart.backgroundColor,
@@ -441,23 +442,23 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
441
442
  );
442
443
  }
443
444
  }
444
- function sa(e) {
445
- for (let t = 0; t < e.coordinatesLine.length; t += 1)
446
- P(
445
+ function va(e) {
446
+ for (let l = 0; l < e.coordinatesLine.length; l += 1)
447
+ F(
447
448
  s.value,
448
- J(
449
+ Q(
449
450
  a.value.style.chart.dataLabels.formatter,
450
- e.coordinatesLine[t].value,
451
- K({
451
+ e.coordinatesLine[l].value,
452
+ ee({
452
453
  p: e.prefix || "",
453
- v: e.coordinatesLine[t].value,
454
+ v: e.coordinatesLine[l].value,
454
455
  s: e.suffix || "",
455
456
  r: e.rounding || 0
456
457
  }),
457
- { datapoint: e.coordinatesLine[t], seriesIndex: t }
458
+ { datapoint: e.coordinatesLine[l], seriesIndex: l }
458
459
  ),
459
- e.coordinatesLine[t].x,
460
- e.coordinatesLine[t].y + a.value.style.chart.dataLabels.offsetY,
460
+ e.coordinatesLine[l].x,
461
+ e.coordinatesLine[l].y + a.value.style.chart.dataLabels.offsetY,
461
462
  {
462
463
  align: "center",
463
464
  font: `${Math.round(f.value / 40 * a.value.style.chart.dataLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
@@ -467,27 +468,27 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
467
468
  }
468
469
  );
469
470
  }
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(
471
+ function ca() {
472
+ for (let e = r.value.start; e < r.value.end; e += 1)
473
+ (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)) && F(
473
474
  s.value,
474
475
  a.value.style.chart.grid.y.timeLabels.values[e] || e + 1,
475
- l.value.left + l.value.slot * (e - u.value.start) + l.value.slot / 2,
476
- l.value.bottom + f.value / a.value.style.chart.grid.y.timeLabels.offsetY,
476
+ t.value.left + t.value.slot * (e - r.value.start) + t.value.slot / 2,
477
+ t.value.bottom + f.value / a.value.style.chart.grid.y.timeLabels.offsetY,
477
478
  {
478
479
  align: a.value.style.chart.grid.y.timeLabels.rotation === 0 ? "center" : a.value.style.chart.grid.y.timeLabels.rotation > 0 ? "left" : "right",
479
480
  font: `${Math.round(f.value / 40 * a.value.style.chart.grid.y.timeLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
480
- color: Q(a.value.style.chart.grid.y.timeLabels.color, d.value !== null ? d.value + u.value.start === e ? 100 : 20 : 100),
481
+ color: ae(a.value.style.chart.grid.y.timeLabels.color, d.value !== null ? d.value + r.value.start === e ? 100 : 20 : 100),
481
482
  rotation: a.value.style.chart.grid.y.timeLabels.rotation
482
483
  }
483
484
  );
484
485
  }
485
- function Ee() {
486
- C(
486
+ function Ae() {
487
+ w(
487
488
  s.value,
488
489
  [
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 }
490
+ { x: t.value.left + t.value.slot * d.value + t.value.slot / 2, y: t.value.top },
491
+ { x: t.value.left + t.value.slot * d.value + t.value.slot / 2, y: t.value.bottom }
491
492
  ],
492
493
  {
493
494
  color: a.value.style.chart.selector.color,
@@ -497,26 +498,26 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
497
498
  }
498
499
  );
499
500
  }
500
- function ia() {
501
- x.value.forEach((e, t) => {
501
+ function da() {
502
+ L.value.forEach((e, l) => {
502
503
  for (let o = 0; o < e.coordinatesLine.length; o += 1)
503
- ye(
504
+ pe(
504
505
  s.value,
505
506
  [
506
507
  {
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
508
+ x: t.value.left + t.value.slot * o + t.value.slot / 10 + (u.value.stacked ? 0 : t.value.slot / L.value.length * l - (l === 0 ? 0 : t.value.slot / (5 * L.value.length) * l)),
509
+ y: u.value.stacked ? e.localZero : p.value.zero
509
510
  },
510
511
  {
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
512
+ x: t.value.left + t.value.slot * o + t.value.slot / 10 + (u.value.stacked ? 0 : t.value.slot / L.value.length * l - (l === 0 ? 0 : t.value.slot / (5 * L.value.length) * l)) + t.value.slot * 0.8 / (u.value.stacked ? 1 : L.value.length),
513
+ y: u.value.stacked ? e.localZero : p.value.zero
513
514
  },
514
515
  {
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),
516
+ x: t.value.left + t.value.slot * o + t.value.slot / 10 + (u.value.stacked ? 0 : t.value.slot / L.value.length * l - (l === 0 ? 0 : t.value.slot / (5 * L.value.length) * l)) + t.value.slot * 0.8 / (u.value.stacked ? 1 : L.value.length),
516
517
  y: e.coordinatesLine[o].y
517
518
  },
518
519
  {
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)),
520
+ x: t.value.left + t.value.slot * o + t.value.slot / 10 + (u.value.stacked ? 0 : t.value.slot / L.value.length * l - (l === 0 ? 0 : t.value.slot / (5 * L.value.length) * l)),
520
521
  y: e.coordinatesLine[o].y
521
522
  }
522
523
  ],
@@ -530,20 +531,20 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
530
531
  },
531
532
  end: {
532
533
  x: e.coordinatesLine[o].x,
533
- y: r.value.stacked ? e.localZero : p.value.zero
534
+ y: u.value.stacked ? e.localZero : p.value.zero
534
535
  },
535
536
  stops: [
536
537
  { offset: 0, color: e.color },
537
- { offset: 1, color: Ea(e.color, 0.5) }
538
+ { offset: 1, color: Aa(e.color, 0.5) }
538
539
  ]
539
540
  }
540
541
  }
541
- ), r.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && P(
542
+ ), u.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && F(
542
543
  s.value,
543
- J(
544
+ Q(
544
545
  a.value.style.chart.dataLabels.formatter,
545
546
  e.coordinatesLine[o].value,
546
- K({
547
+ ee({
547
548
  p: e.prefix || "",
548
549
  v: e.coordinatesLine[o].value,
549
550
  s: e.suffix || "",
@@ -551,8 +552,8 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
551
552
  }),
552
553
  { datapoint: e.coordinatesLine[o], seriesIndex: o }
553
554
  ),
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,
555
+ t.value.left + t.value.slot * o + t.value.slot / 10 + (u.value.stacked ? 0 : t.value.slot / L.value.length * l - (l === 0 ? 0 : t.value.slot / (5 * L.value.length) * l)) + t.value.slot * 0.4 / (u.value.stacked ? 1 : L.value.length),
556
+ (e.coordinatesLine[o].value < 0 ? u.value.stacked ? e.localZero : p.value.zero : e.coordinatesLine[o].y) + a.value.style.chart.dataLabels.offsetY,
556
557
  {
557
558
  align: "center",
558
559
  font: `${Math.round(f.value / 40 * a.value.style.chart.dataLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
@@ -563,33 +564,33 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
563
564
  );
564
565
  });
565
566
  }
566
- function va(e) {
567
- e.useArea ? r.value.stacked ? je(
567
+ function ha(e) {
568
+ e.useArea ? u.value.stacked ? Ke(
568
569
  s.value,
569
570
  [{ x: e.coordinatesLine[0].x, y: e.localZero }, ...e.coordinatesLine, { x: e.coordinatesLine.at(-1).x, y: e.localZero }],
570
571
  {
571
- fillColor: Q(e.color, a.value.style.chart.area.opacity),
572
+ fillColor: ae(e.color, a.value.style.chart.area.opacity),
572
573
  strokeColor: "transparent"
573
574
  }
574
- ) : je(
575
+ ) : Ke(
575
576
  s.value,
576
577
  [{ x: e.coordinatesLine[0].x, y: p.value.zero }, ...e.coordinatesLine, { x: e.coordinatesLine.at(-1).x, y: p.value.zero }],
577
578
  {
578
- fillColor: Q(e.color, a.value.style.chart.area.opacity),
579
+ fillColor: ae(e.color, a.value.style.chart.area.opacity),
579
580
  strokeColor: "transparent"
580
581
  }
581
- ) : C(s.value, e.coordinatesLine, {
582
+ ) : w(s.value, e.coordinatesLine, {
582
583
  color: e.color,
583
584
  lineWidth: 3
584
585
  });
585
586
  }
586
- function ca() {
587
- h.value.forEach((e, t) => {
588
- C(
587
+ function fa() {
588
+ h.value.forEach((e, l) => {
589
+ w(
589
590
  s.value,
590
591
  [
591
- { x: l.value.left, y: l.value.bottom - e.yOffset },
592
- { x: l.value.right, y: l.value.bottom - e.yOffset }
592
+ { x: t.value.left, y: t.value.bottom - e.yOffset },
593
+ { x: t.value.right, y: t.value.bottom - e.yOffset }
593
594
  ],
594
595
  {
595
596
  color: a.value.style.chart.grid.x.horizontalLines.color,
@@ -598,13 +599,13 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
598
599
  );
599
600
  });
600
601
  }
601
- function de() {
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.clearRect(0, 0, 1e4, 1e4), 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) => {
602
+ function he() {
603
+ na(), N.value ? (z.value && d.value !== null && a.value.style.chart.selector.show && Ae(), da(), u.value.stacked && a.value.style.chart.grid.x.showAxis && fa(), ua.value.forEach((e) => {
604
+ (e.type === "line" || !e.type) && ha(e), z.value && (ia(e), u.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && va(e));
605
+ }), ve.value = Ha($.value)) : (ve.value && (s.value.clearRect(0, 0, 1e4, 1e4), s.value.drawImage(ve.value, 0, 0)), z.value && d.value !== null && a.value.style.chart.selector.show && Ae(), z.value && d.value !== null && h.value.forEach((e) => {
605
606
  if (e.type === "line" || !e.type || e.type === "plot") {
606
607
  if (!e.coordinatesLine[d.value]) return;
607
- e.coordinatesLine[d.value].x !== void 0 && e.coordinatesLine[d.value].y !== void 0 && Ve(
608
+ e.coordinatesLine[d.value].x !== void 0 && e.coordinatesLine[d.value].y !== void 0 && Je(
608
609
  s.value,
609
610
  {
610
611
  x: e.coordinatesLine[d.value].x,
@@ -618,29 +619,29 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
618
619
  }
619
620
  );
620
621
  }
621
- })), a.value.style.chart.grid.y.timeLabels.show && na(), E.value = !1;
622
+ })), a.value.style.chart.grid.y.timeLabels.show && ca(), N.value = !1;
622
623
  }
623
- const te = _a(() => {
624
- z.value = !0, oa();
624
+ const oe = Da(() => {
625
+ z.value = !0, sa();
625
626
  }, R.value > 200 ? 10 : 1, !z.value);
626
- function da(e) {
627
- const { left: t } = $.value.getBoundingClientRect(), o = e.clientX - t;
628
- if (o * 2 < l.value.left || o * 2 > l.value.right) {
629
- ae.value = !1, d.value = null;
627
+ function ya(e) {
628
+ const { left: l } = $.value.getBoundingClientRect(), o = e.clientX - l;
629
+ if (o * 2 < t.value.left || o * 2 > t.value.right) {
630
+ te.value = !1, d.value = null;
630
631
  return;
631
632
  }
632
- const i = o * 2 - l.value.left;
633
- if (d.value = Math.floor(i / l.value.slot), ae.value = !0, !z.value) return;
633
+ const i = o * 2 - t.value.left;
634
+ if (d.value = Math.floor(i / t.value.slot), te.value = !0, !z.value) return;
634
635
  let c = "";
635
636
  const y = a.value.style.chart.tooltip.customFormat;
636
- Ge(y) && Oa(() => y({
637
+ qe(y) && Ea(() => y({
637
638
  seriesIndex: d.value,
638
639
  datapoint: h.value.map((n) => ({
639
640
  shape: n.shape || null,
640
641
  name: n.name,
641
642
  color: n.color,
642
643
  type: n.type || "line",
643
- value: n.series.find((g, L) => L === d.value)
644
+ value: n.series.find((g, k) => k === d.value)
644
645
  })),
645
646
  series: h.value,
646
647
  config: a.value
@@ -651,83 +652,84 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
651
652
  name: n.name,
652
653
  color: n.color,
653
654
  type: n.type || "line",
654
- value: n.series.find((g, L) => L === d.value)
655
+ value: n.series.find((g, k) => k === d.value)
655
656
  })),
656
657
  series: h.value,
657
658
  config: a.value
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;
659
+ }) : (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 += ra.value.join(""), le.value = c), z.value = !1;
659
660
  }
660
661
  Y(() => d.value, (e) => {
661
- te();
662
- }), Y(() => u.value, (e) => {
663
- E.value = !0, de();
662
+ oe();
663
+ }), Y(() => r.value, (e) => {
664
+ N.value = !0, he();
664
665
  }, {
665
666
  deep: !0
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();
667
+ }), Y(() => u.value.showDataLabels, (e) => {
668
+ N.value = !0, he();
669
+ }), Y(() => u.value.stacked, (e) => {
670
+ N.value = !0, z.value = !0, oe();
670
671
  });
671
- function ha() {
672
- ae.value = !1, d.value = null, le.value = "";
672
+ function ga() {
673
+ te.value = !1, d.value = null, le.value = "";
673
674
  }
674
- const oe = v(null), ue = v(null);
675
- pa(() => {
676
- _e();
675
+ const re = v(null), ue = v(null);
676
+ xa(() => {
677
+ De();
677
678
  });
678
- function _e() {
679
- if (Ra(F.dataset) ? Ia({
679
+ function De() {
680
+ if (Pa(E.dataset) ? Fa({
680
681
  componentName: "VueUiXyCanvas",
681
682
  type: "dataset"
682
683
  }) : $.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
684
+ const e = Wa(() => {
685
+ const { width: l, height: o } = Ya({
686
+ chart: U.value,
687
+ title: a.value.style.chart.title.text ? ke.value : null,
688
+ legend: a.value.style.chart.legend.show ? Ce.value : null,
689
+ slicer: a.value.style.chart.zoom.show && R.value > 1 ? we.value : null,
690
+ source: Se.value
689
691
  });
690
- ze.value = `${t} / ${o}`;
692
+ Re.value = `${l} / ${o}`;
691
693
  });
692
- oe.value = new ResizeObserver(e), oe.value.observe(ee.value.parentNode);
694
+ re.value = new ResizeObserver(e), re.value.observe(U.value.parentNode);
693
695
  }
694
696
  ue.value = new ResizeObserver((e) => {
695
- for (const t of e)
696
- t.contentBoxSize && B.value && (E.value = !0, te());
697
- }), ue.value.observe(B.value);
697
+ for (const l of e)
698
+ l.contentBoxSize && Z.value && (N.value = !0, oe());
699
+ }), ue.value.observe(Z.value);
698
700
  }
699
- ba(() => {
700
- ue.value && ue.value.disconnect(), oe.value && oe.value.disconnect();
701
+ La(() => {
702
+ ue.value && ue.value.disconnect(), re.value && re.value.disconnect();
701
703
  });
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();
704
+ function He(e) {
705
+ aa("selectLegend", h.value.find((l) => l.absoluteIndex === e)), S.value.includes(e) ? S.value = S.value.filter((l) => l !== e) : S.value.push(e), N.value = !0, oe();
704
706
  }
705
- const De = b(() => W.value.map((e, t) => ({
707
+ const We = m(() => W.value.map((e, l) => ({
706
708
  ...e,
707
709
  name: e.name,
708
- color: Ze(e.color) || Oe.value[t] || D[t] || D[t % D.length],
710
+ color: je(e.color) || Ee.value[l] || D[l] || D[l % D.length],
709
711
  shape: e.shape || "circle",
710
712
  prefix: e.prefix || "",
711
713
  suffix: e.suffix || "",
712
714
  rounding: e.rounding || 0
713
715
  })).map((e) => ({
714
716
  ...e,
715
- opacity: w.value.includes(e.absoluteIndex) ? 0.5 : 1,
716
- segregate: () => Ne(e.absoluteIndex),
717
- isSegregated: w.value.includes(e.absoluteIndex)
718
- }))), fa = b(() => ({
717
+ opacity: S.value.includes(e.absoluteIndex) ? 0.5 : 1,
718
+ segregate: () => He(e.absoluteIndex),
719
+ isSegregated: S.value.includes(e.absoluteIndex)
720
+ }))), pa = m(() => ({
719
721
  cy: "donut-div-legend",
720
722
  backgroundColor: a.value.style.chart.legend.backgroundColor,
721
723
  color: a.value.style.chart.legend.color,
722
724
  fontSize: a.value.style.chart.legend.fontSize,
723
725
  paddingBottom: 12,
724
726
  fontWeight: a.value.style.chart.legend.bold ? "bold" : ""
725
- })), re = b(() => {
727
+ })), se = m(() => {
726
728
  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>');
727
- let t = [];
729
+ let l = [];
728
730
  for (let c = 0; c < R.value; c += 1) {
729
731
  const y = 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((y ?? 0).toFixed(a.value.table.rounding)));
732
+ 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)));
731
733
  }
732
734
  const o = {
733
735
  th: {
@@ -742,65 +744,70 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
742
744
  },
743
745
  breakpoint: a.value.table.responsiveBreakpoint
744
746
  }, 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(() => {
747
+ return { head: e, body: l.slice(0, r.value.end - r.value.start), config: o, colNames: i };
748
+ }), Ye = m(() => {
747
749
  if (h.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
748
750
  const e = h.value.map((o) => ({
749
751
  label: o.name,
750
752
  color: o.color,
751
753
  type: o.type
752
- })), t = [];
753
- for (let o = u.value.start; o < u.value.end; o += 1) {
754
+ })), l = [];
755
+ for (let o = r.value.start; o < r.value.end; o += 1) {
754
756
  const i = [a.value.style.chart.grid.y.timeLabels.values[o] || o + 1];
755
757
  h.value.forEach((c) => {
756
758
  i.push(Number((c.series[o] || 0).toFixed(a.value.table.rounding)));
757
- }), t.push(i);
759
+ }), l.push(i);
758
760
  }
759
- return { head: e, body: t };
761
+ return { head: e, body: l };
760
762
  });
761
- function We() {
762
- const e = [[a.value.style.chart.title.text], [a.value.style.chart.title.subtitle.text], [""]], t = ["", ...He.value.head.map((y) => y.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" });
763
+ function Be() {
764
+ 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 = Na(i);
765
+ _a({ csvContent: c, title: a.value.style.chart.title.text || "vue-ui-xy-canvas" });
764
766
  }
765
- function ya() {
767
+ function ba() {
766
768
  return h.value;
767
769
  }
768
- function Ye() {
769
- r.value.showTable = !r.value.showTable;
770
+ function Xe() {
771
+ u.value.showTable = !u.value.showTable;
772
+ }
773
+ function Ue() {
774
+ u.value.showDataLabels = !u.value.showDataLabels;
770
775
  }
771
- function Be() {
772
- r.value.showDataLabels = !r.value.showDataLabels;
776
+ function Ze() {
777
+ u.value.stacked = !u.value.stacked;
773
778
  }
774
- function Xe() {
775
- r.value.stacked = !r.value.stacked;
779
+ function Ge() {
780
+ u.value.showTooltip = !u.value.showTooltip;
776
781
  }
777
- function Ae() {
778
- r.value.showTooltip = !r.value.showTooltip;
782
+ const ne = v(!1);
783
+ function fe() {
784
+ ne.value = !ne.value;
779
785
  }
780
- return Je({
781
- getData: ya,
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%" : ""}`),
786
+ return ea({
787
+ getData: ba,
788
+ generateCsv: Be,
789
+ generatePdf: Pe,
790
+ generateImage: Fe,
791
+ toggleTable: Xe,
792
+ toggleLabels: Ue,
793
+ toggleStack: Ze,
794
+ toggleTooltip: Ge,
795
+ toggleAnnotator: fe
796
+ }), (e, l) => (C(), q("div", {
797
+ style: J(`width:100%; position:relative; ${a.value.responsive ? "height: 100%" : ""}`),
791
798
  ref_key: "xy",
792
- ref: ee,
793
- id: `xy_canvas_${ne.value}`,
794
- class: ma(`vue-ui-donut ${ve.value ? "vue-data-ui-wrapper-fullscreen" : ""}`)
799
+ ref: U,
800
+ id: `xy_canvas_${ie.value}`,
801
+ class: ka(`vue-ui-donut ${ce.value ? "vue-data-ui-wrapper-fullscreen" : ""}`)
795
802
  }, [
796
- a.value.style.chart.title.text ? (S(), se("div", {
803
+ a.value.style.chart.title.text ? (C(), q("div", {
797
804
  key: 0,
798
805
  ref_key: "chartTitle",
799
- ref: xe,
800
- style: Z(`width:100%;background:${a.value.style.chart.backgroundColor};`)
806
+ ref: ke,
807
+ style: J(`width:100%;background:${a.value.style.chart.backgroundColor};`)
801
808
  }, [
802
- (S(), _(Ba, {
803
- key: `title_${Ce.value}`,
809
+ (C(), P(Ua, {
810
+ key: `title_${$e.value}`,
804
811
  config: {
805
812
  title: {
806
813
  cy: "xy-canvas-title",
@@ -812,109 +819,119 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
812
819
  }
813
820
  }
814
821
  }, null, 8, ["config"]))
815
- ], 4)) : G("", !0),
816
- a.value.userOptions.show && ce.value ? (S(), _(Ua, {
822
+ ], 4)) : _("", !0),
823
+ a.value.userOptions.show && de.value ? (C(), P(Va, {
817
824
  ref: "details",
818
- key: `user_option_${me.value}`,
825
+ key: `user_option_${Le.value}`,
819
826
  backgroundColor: a.value.style.chart.backgroundColor,
820
827
  color: a.value.style.chart.color,
821
- isPrinting: N(Te),
822
- isImaging: N(Me),
823
- uid: ne.value,
828
+ isPrinting: A(Ie),
829
+ isImaging: A(Oe),
830
+ uid: ie.value,
824
831
  hasTooltip: a.value.userOptions.buttons.tooltip && a.value.style.chart.tooltip.show,
825
832
  hasPdf: a.value.userOptions.buttons.pdf,
826
833
  hasImg: a.value.userOptions.buttons.img,
827
834
  hasXls: a.value.userOptions.buttons.csv,
828
835
  hasLabel: a.value.userOptions.buttons.labels,
829
- hasStack: ge.dataset.length > 1 && a.value.userOptions.buttons.stack,
836
+ hasStack: be.dataset.length > 1 && a.value.userOptions.buttons.stack,
830
837
  hasFullscreen: a.value.userOptions.buttons.fullscreen,
831
- hasTable: u.value.end - u.value.start < 200 && a.value.userOptions.buttons.table,
832
- isFullscreen: ve.value,
833
- isTooltip: r.value.showTooltip,
834
- isStacked: r.value.stacked,
838
+ hasTable: r.value.end - r.value.start < 200 && a.value.userOptions.buttons.table,
839
+ isFullscreen: ce.value,
840
+ isTooltip: u.value.showTooltip,
841
+ isStacked: u.value.stacked,
835
842
  titles: { ...a.value.userOptions.buttonTitles },
836
- chartElement: ee.value,
843
+ chartElement: U.value,
837
844
  position: a.value.userOptions.position,
838
- onToggleFullscreen: ea,
839
- onGeneratePdf: N(Re),
840
- onGenerateCsv: We,
841
- onGenerateImage: N(Ie),
842
- onToggleTable: Ye,
843
- onToggleLabels: Be,
844
- onToggleStack: Xe,
845
- onToggleTooltip: Ae
846
- }, xa({ _: 2 }, [
845
+ hasAnnotator: a.value.userOptions.buttons.annotator,
846
+ isAnnotation: ne.value,
847
+ onToggleFullscreen: la,
848
+ onGeneratePdf: A(Pe),
849
+ onGenerateCsv: Be,
850
+ onGenerateImage: A(Fe),
851
+ onToggleTable: Xe,
852
+ onToggleLabels: Ue,
853
+ onToggleStack: Ze,
854
+ onToggleTooltip: Ge,
855
+ onToggleAnnotator: fe
856
+ }, Ca({ _: 2 }, [
847
857
  e.$slots.optionTooltip ? {
848
858
  name: "optionTooltip",
849
- fn: m(() => [
850
- k(e.$slots, "optionTooltip", {}, void 0, !0)
859
+ fn: b(() => [
860
+ x(e.$slots, "optionTooltip", {}, void 0, !0)
851
861
  ]),
852
862
  key: "0"
853
863
  } : void 0,
854
864
  e.$slots.optionPdf ? {
855
865
  name: "optionPdf",
856
- fn: m(() => [
857
- k(e.$slots, "optionPdf", {}, void 0, !0)
866
+ fn: b(() => [
867
+ x(e.$slots, "optionPdf", {}, void 0, !0)
858
868
  ]),
859
869
  key: "1"
860
870
  } : void 0,
861
871
  e.$slots.optionCsv ? {
862
872
  name: "optionCsv",
863
- fn: m(() => [
864
- k(e.$slots, "optionCsv", {}, void 0, !0)
873
+ fn: b(() => [
874
+ x(e.$slots, "optionCsv", {}, void 0, !0)
865
875
  ]),
866
876
  key: "2"
867
877
  } : void 0,
868
878
  e.$slots.optionImg ? {
869
879
  name: "optionImg",
870
- fn: m(() => [
871
- k(e.$slots, "optionImg", {}, void 0, !0)
880
+ fn: b(() => [
881
+ x(e.$slots, "optionImg", {}, void 0, !0)
872
882
  ]),
873
883
  key: "3"
874
884
  } : void 0,
875
885
  e.$slots.optionTable ? {
876
886
  name: "optionTable",
877
- fn: m(() => [
878
- k(e.$slots, "optionTable", {}, void 0, !0)
887
+ fn: b(() => [
888
+ x(e.$slots, "optionTable", {}, void 0, !0)
879
889
  ]),
880
890
  key: "4"
881
891
  } : void 0,
882
892
  e.$slots.optionLabels ? {
883
893
  name: "optionLabels",
884
- fn: m(() => [
885
- k(e.$slots, "optionLabels", {}, void 0, !0)
894
+ fn: b(() => [
895
+ x(e.$slots, "optionLabels", {}, void 0, !0)
886
896
  ]),
887
897
  key: "5"
888
898
  } : void 0,
889
899
  e.$slots.optionStack ? {
890
900
  name: "optionStack",
891
- fn: m(() => [
892
- k(e.$slots, "optionStack", {}, void 0, !0)
901
+ fn: b(() => [
902
+ x(e.$slots, "optionStack", {}, void 0, !0)
893
903
  ]),
894
904
  key: "6"
895
905
  } : void 0,
896
906
  e.$slots.optionFullscreen ? {
897
907
  name: "optionFullscreen",
898
- fn: m(({ toggleFullscreen: o, isFullscreen: i }) => [
899
- k(e.$slots, "optionFullscreen", V(j({ toggleFullscreen: o, isFullscreen: i })), void 0, !0)
908
+ fn: b(({ toggleFullscreen: o, isFullscreen: i }) => [
909
+ x(e.$slots, "optionFullscreen", B(X({ toggleFullscreen: o, isFullscreen: i })), void 0, !0)
900
910
  ]),
901
911
  key: "7"
912
+ } : void 0,
913
+ e.$slots.optionAnnotator ? {
914
+ name: "optionAnnotator",
915
+ fn: b(({ toggleAnnotator: o, isAnnotator: i }) => [
916
+ x(e.$slots, "optionAnnotator", B(X({ toggleAnnotator: o, isAnnotator: i })), void 0, !0)
917
+ ]),
918
+ key: "8"
902
919
  } : void 0
903
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasLabel", "hasStack", "hasFullscreen", "hasTable", "isFullscreen", "isTooltip", "isStacked", "titles", "chartElement", "position", "onGeneratePdf", "onGenerateImage"])) : G("", !0),
904
- q("div", {
920
+ ]), 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),
921
+ K("div", {
905
922
  class: "vue-ui-xy-canvas",
906
- style: Z(`position: relative; aspect-ratio: ${ze.value}`),
923
+ style: J(`position: relative; aspect-ratio: ${Re.value}`),
907
924
  ref_key: "container",
908
- ref: B
925
+ ref: Z
909
926
  }, [
910
- ce.value ? (S(), se("canvas", {
927
+ de.value ? (C(), q("canvas", {
911
928
  key: 0,
912
929
  ref_key: "canvas",
913
930
  ref: $,
914
931
  style: { width: "100%", height: "100%" },
915
- onMousemove: t[0] || (t[0] = (o) => da(o)),
916
- onMouseleave: ha
917
- }, null, 544)) : (S(), _(Va, {
932
+ onMousemove: l[0] || (l[0] = (o) => ya(o)),
933
+ onMouseleave: ga
934
+ }, null, 544)) : (C(), P(Ja, {
918
935
  key: 1,
919
936
  config: {
920
937
  type: "line",
@@ -932,8 +949,8 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
932
949
  }
933
950
  }
934
951
  }, null, 8, ["config"])),
935
- La(Wa, {
936
- show: r.value.showTooltip && ae.value,
952
+ wa(Ba, {
953
+ show: u.value.showTooltip && te.value,
937
954
  backgroundColor: a.value.style.chart.tooltip.backgroundColor,
938
955
  color: a.value.style.chart.tooltip.color,
939
956
  fontSize: a.value.style.chart.tooltip.fontSize,
@@ -945,80 +962,88 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
945
962
  parent: $.value,
946
963
  content: le.value,
947
964
  backgroundOpacity: a.value.style.chart.tooltip.backgroundOpacity,
948
- isCustom: N(Ge)(a.value.style.chart.tooltip.customFormat)
965
+ isCustom: A(qe)(a.value.style.chart.tooltip.customFormat)
949
966
  }, {
950
- "tooltip-before": m(() => [
951
- k(e.$slots, "tooltip-before", V(j({ ...pe.value })), void 0, !0)
967
+ "tooltip-before": b(() => [
968
+ x(e.$slots, "tooltip-before", B(X({ ...me.value })), void 0, !0)
952
969
  ]),
953
- "tooltip-after": m(() => [
954
- k(e.$slots, "tooltip-after", V(j({ ...pe.value })), void 0, !0)
970
+ "tooltip-after": b(() => [
971
+ x(e.$slots, "tooltip-after", B(X({ ...me.value })), void 0, !0)
955
972
  ]),
956
973
  _: 3
957
974
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "position", "offsetY", "parent", "content", "backgroundOpacity", "isCustom"])
958
975
  ], 4),
959
- q("div", {
976
+ K("div", {
960
977
  ref_key: "chartSlicer",
961
- ref: ke,
962
- style: Z(`width:100%;background:${a.value.style.chart.backgroundColor}`),
978
+ ref: we,
979
+ style: J(`width:100%;background:${a.value.style.chart.backgroundColor}`),
963
980
  "data-html2canvas-ignore": ""
964
981
  }, [
965
- a.value.style.chart.zoom.show && R.value > 1 ? (S(), _(Xa, {
966
- key: `slicer_${be.value}`,
982
+ a.value.style.chart.zoom.show && R.value > 1 ? (C(), P(Za, {
983
+ key: `slicer_${xe.value}`,
967
984
  background: a.value.style.chart.zoom.color,
968
985
  borderColor: a.value.style.chart.backgroundColor,
969
986
  fontSize: a.value.style.chart.zoom.fontSize,
970
987
  useResetSlot: a.value.style.chart.zoom.useResetSlot,
971
- labelLeft: a.value.style.chart.grid.y.timeLabels.values[u.value.start] ? a.value.style.chart.grid.y.timeLabels.values[u.value.start] : "",
972
- 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] : "",
988
+ labelLeft: a.value.style.chart.grid.y.timeLabels.values[r.value.start] ? a.value.style.chart.grid.y.timeLabels.values[r.value.start] : "",
989
+ 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] : "",
973
990
  textColor: a.value.style.chart.color,
974
991
  inputColor: a.value.style.chart.zoom.color,
975
992
  selectColor: a.value.style.chart.zoom.highlightColor,
976
993
  max: R.value,
977
994
  min: 0,
978
- valueStart: u.value.start,
979
- valueEnd: u.value.end,
980
- start: u.value.start,
981
- "onUpdate:start": t[1] || (t[1] = (o) => u.value.start = o),
982
- end: u.value.end,
983
- "onUpdate:end": t[2] || (t[2] = (o) => u.value.end = o),
984
- onReset: Fe
995
+ valueStart: r.value.start,
996
+ valueEnd: r.value.end,
997
+ start: r.value.start,
998
+ "onUpdate:start": l[1] || (l[1] = (o) => r.value.start = o),
999
+ end: r.value.end,
1000
+ "onUpdate:end": l[2] || (l[2] = (o) => r.value.end = o),
1001
+ onReset: _e
985
1002
  }, {
986
- "reset-action": m(({ reset: o }) => [
987
- k(e.$slots, "reset-action", V(j({ reset: o })), void 0, !0)
1003
+ "reset-action": b(({ reset: o }) => [
1004
+ x(e.$slots, "reset-action", B(X({ reset: o })), void 0, !0)
988
1005
  ]),
989
1006
  _: 3
990
- }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end"])) : G("", !0)
1007
+ }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end"])) : _("", !0)
991
1008
  ], 4),
992
- q("div", {
1009
+ K("div", {
993
1010
  ref_key: "chartLegend",
994
- ref: Le
1011
+ ref: Ce
995
1012
  }, [
996
- a.value.style.chart.legend.show && ce.value ? (S(), _(Ya, {
997
- legendSet: De.value,
998
- config: fa.value,
999
- key: `legend_${Se.value}`,
1000
- onClickMarker: t[3] || (t[3] = ({ i: o }) => Ne(o))
1013
+ a.value.style.chart.legend.show && de.value ? (C(), P(Xa, {
1014
+ legendSet: We.value,
1015
+ config: pa.value,
1016
+ key: `legend_${Te.value}`,
1017
+ onClickMarker: l[3] || (l[3] = ({ i: o }) => He(o))
1001
1018
  }, {
1002
- item: m(({ legend: o, index: i }) => [
1003
- q("div", {
1019
+ item: b(({ legend: o, index: i }) => [
1020
+ K("div", {
1004
1021
  onClick: (c) => o.segregate(),
1005
- style: Z(`opacity:${w.value.includes(i) ? 0.5 : 1}`)
1006
- }, Ue(o.name), 13, Ja)
1022
+ style: J(`opacity:${S.value.includes(i) ? 0.5 : 1}`)
1023
+ }, Ve(o.name), 13, at)
1007
1024
  ]),
1008
1025
  _: 1
1009
- }, 8, ["legendSet", "config"])) : k(e.$slots, "legend", {
1026
+ }, 8, ["legendSet", "config"])) : x(e.$slots, "legend", {
1010
1027
  key: 1,
1011
- legend: De.value
1028
+ legend: We.value
1012
1029
  }, void 0, !0)
1013
1030
  ], 512),
1014
- e.$slots.watermark ? (S(), se("div", Ka, [
1015
- k(e.$slots, "watermark", V(j({ isPrinting: N(Te) || N(Me) })), void 0, !0)
1016
- ])) : G("", !0),
1017
- u.value.end - u.value.start < 200 ? (S(), _(Za, {
1031
+ e.$slots.watermark ? (C(), q("div", tt, [
1032
+ x(e.$slots, "watermark", B(X({ isPrinting: A(Ie) || A(Oe) })), void 0, !0)
1033
+ ])) : _("", !0),
1034
+ e.$slots.source ? (C(), q("div", {
1018
1035
  key: 3,
1036
+ ref_key: "source",
1037
+ ref: Se,
1038
+ dir: "auto"
1039
+ }, [
1040
+ x(e.$slots, "source", {}, void 0, !0)
1041
+ ], 512)) : _("", !0),
1042
+ r.value.end - r.value.start < 200 ? (C(), P(ja, {
1043
+ key: 4,
1019
1044
  hideDetails: "",
1020
1045
  config: {
1021
- open: r.value.showTable,
1046
+ open: u.value.showTable,
1022
1047
  maxHeight: 1e4,
1023
1048
  body: {
1024
1049
  backgroundColor: a.value.style.chart.backgroundColor,
@@ -1030,30 +1055,38 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
1030
1055
  }
1031
1056
  }
1032
1057
  }, {
1033
- content: m(() => [
1034
- (S(), _(Ga, {
1035
- key: `table_${we.value}`,
1036
- colNames: re.value.colNames,
1037
- head: re.value.head,
1038
- body: re.value.body,
1039
- config: re.value.config,
1058
+ content: b(() => [
1059
+ (C(), P(qa, {
1060
+ key: `table_${ze.value}`,
1061
+ colNames: se.value.colNames,
1062
+ head: se.value.head,
1063
+ body: se.value.body,
1064
+ config: se.value.config,
1040
1065
  title: `${a.value.style.chart.title.text}${a.value.style.chart.title.subtitle.text ? ` : ${a.value.style.chart.title.subtitle.text}` : ""}`,
1041
- onClose: t[4] || (t[4] = (o) => r.value.showTable = !1)
1066
+ onClose: l[4] || (l[4] = (o) => u.value.showTable = !1)
1042
1067
  }, {
1043
- th: m(({ th: o }) => [
1044
- q("div", { innerHTML: o }, null, 8, Qa)
1068
+ th: b(({ th: o }) => [
1069
+ K("div", { innerHTML: o }, null, 8, lt)
1045
1070
  ]),
1046
- td: m(({ td: o }) => [
1047
- ka(Ue(o), 1)
1071
+ td: b(({ td: o }) => [
1072
+ Sa(Ve(o), 1)
1048
1073
  ]),
1049
1074
  _: 1
1050
1075
  }, 8, ["colNames", "head", "body", "config", "title"]))
1051
1076
  ]),
1052
1077
  _: 1
1053
- }, 8, ["config"])) : G("", !0)
1054
- ], 14, qa));
1078
+ }, 8, ["config"])) : _("", !0),
1079
+ a.value.userOptions.buttons.annotator && h.value.length ? (C(), P(Ka, {
1080
+ key: 5,
1081
+ parent: U.value,
1082
+ backgroundColor: a.value.style.chart.backgroundColor,
1083
+ color: a.value.style.chart.color,
1084
+ active: ne.value,
1085
+ onClose: fe
1086
+ }, null, 8, ["parent", "backgroundColor", "color", "active"])) : _("", !0)
1087
+ ], 14, et));
1055
1088
  }
1056
- }, fl = /* @__PURE__ */ ja(el, [["__scopeId", "data-v-180df9f3"]]);
1089
+ }, mt = /* @__PURE__ */ Qa(ot, [["__scopeId", "data-v-53f30aa1"]]);
1057
1090
  export {
1058
- fl as default
1091
+ mt as default
1059
1092
  };