vue-data-ui 2.4.1 → 2.4.2

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 (201) hide show
  1. package/README.md +44 -44
  2. package/dist/{Arrow-DpMf3yPs.cjs → Arrow-DLTRnzcG.cjs} +1 -1
  3. package/dist/{Arrow-BIs_9yK8.js → Arrow-JuK2z9IB.js} +1 -1
  4. package/dist/BaseIcon-BGExhz6v.cjs +1 -0
  5. package/dist/{BaseIcon-CXDdkPfN.js → BaseIcon-rRli6Sfv.js} +7 -4
  6. package/dist/{DataTable-BTgMVOwp.cjs → DataTable-DJzhv96s.cjs} +1 -1
  7. package/dist/{DataTable-DL2agEJ3.js → DataTable-DTk7C4Pr.js} +2 -2
  8. package/dist/{Legend-DXLiSLHd.js → Legend-CYF2gpXG.js} +1 -1
  9. package/dist/{Legend-Dj9KiaLv.cjs → Legend-YZ7Hz3o1.cjs} +1 -1
  10. package/dist/{PackageVersion-DtnhR89q.js → PackageVersion-CvCRsT5_.js} +1 -1
  11. package/dist/{PackageVersion-D4D0WicU.cjs → PackageVersion-DVZtsuy4.cjs} +1 -1
  12. package/dist/PenAndPaper-CyXm-yVL.cjs +1 -0
  13. package/dist/PenAndPaper-Jb0pLt3G.js +269 -0
  14. package/dist/{Shape-CO_Ak9Zm.js → Shape-BpPn4eWR.js} +1 -1
  15. package/dist/{Shape-7EC2UKDK.cjs → Shape-X2F-QV_B.cjs} +1 -1
  16. package/dist/{Slicer-CLAVjSQP.cjs → Slicer-CL0tP5a5.cjs} +1 -1
  17. package/dist/{Slicer-BZfUZr1J.js → Slicer-CU7dRZR0.js} +2 -2
  18. package/dist/{Title-DYNLqCCT.js → Title-5VmBwT4i.js} +1 -1
  19. package/dist/{Title-C-lm3Mkl.cjs → Title-Co5jI5ed.cjs} +1 -1
  20. package/dist/{Tooltip-t-3mVhcz.cjs → Tooltip-Bl6W8Zn7.cjs} +1 -1
  21. package/dist/{Tooltip-CICAYyQj.js → Tooltip-Cj4EF7v1.js} +1 -1
  22. package/dist/{index-DDXisDKy.js → index-DnVHQ2xI.js} +880 -842
  23. package/dist/index-FfZRtJ6A.cjs +9 -0
  24. package/dist/style.css +1 -1
  25. package/dist/types/vue-data-ui.d.cts +18 -16
  26. package/dist/types/vue-data-ui.d.ts +18 -16
  27. package/dist/{useNestedProp-S1UXxUgm.js → useNestedProp-Cox0K0Y5.js} +1 -1
  28. package/dist/{useNestedProp-CC9zGr7C.cjs → useNestedProp-q7byAAIJ.cjs} +1 -1
  29. package/dist/usePrinter-BCAFeO_J.cjs +1 -0
  30. package/dist/{usePrinter-8ofTb2MJ.js → usePrinter-BEeNAqS5.js} +230 -185
  31. package/dist/vue-data-ui-CRLLZpt0.cjs +9 -0
  32. package/dist/vue-data-ui-W7nnqn0v.js +261 -0
  33. package/dist/vue-data-ui.cjs +1 -1
  34. package/dist/vue-data-ui.js +1 -1
  35. package/dist/{vue-ui-3d-bar-DcF1nyGW.js → vue-ui-3d-bar-BwBrUabe.js} +414 -390
  36. package/dist/vue-ui-3d-bar-bD_n6qL_.cjs +19 -0
  37. package/dist/{vue-ui-accordion-D_1fE5EF.js → vue-ui-accordion-DspS4q3f.js} +3 -3
  38. package/dist/{vue-ui-accordion-Cc9958th.cjs → vue-ui-accordion-xXgqfR2l.cjs} +1 -1
  39. package/dist/vue-ui-age-pyramid-BZcAwcVQ.cjs +1 -0
  40. package/dist/{vue-ui-age-pyramid-Oe_yHDL0.js → vue-ui-age-pyramid-CxBvm3uM.js} +218 -194
  41. package/dist/{vue-ui-annotator-Dix6_Gm6.js → vue-ui-annotator-BOofWpzv.js} +1 -1
  42. package/dist/{vue-ui-annotator-Dbp6cWMr.cjs → vue-ui-annotator-C6T5_7ZV.cjs} +1 -1
  43. package/dist/vue-ui-bullet-ChaEgXvR.cjs +23 -0
  44. package/dist/vue-ui-bullet-DraC-oFu.js +433 -0
  45. package/dist/vue-ui-candlestick--hPCfMFH.cjs +2 -0
  46. package/dist/{vue-ui-candlestick-CRwzWF6j.js → vue-ui-candlestick-DQZ5eT1f.js} +267 -243
  47. package/dist/{vue-ui-carousel-table-C0GDDSW9.cjs → vue-ui-carousel-table-DpRQklDZ.cjs} +1 -1
  48. package/dist/{vue-ui-carousel-table-BHeEbRKY.js → vue-ui-carousel-table-PdLjpH1p.js} +4 -4
  49. package/dist/{vue-ui-chestnut-CRk0RCB9.js → vue-ui-chestnut-ByI_O5hB.js} +293 -269
  50. package/dist/vue-ui-chestnut-ae6x87wl.cjs +6 -0
  51. package/dist/{vue-ui-cursor-y0kdr0uA.js → vue-ui-cursor-BM74l93B.js} +2 -2
  52. package/dist/{vue-ui-cursor-lU1rts1B.cjs → vue-ui-cursor-BvadpA2m.cjs} +1 -1
  53. package/dist/{vue-ui-dashboard-OyihaKdu.js → vue-ui-dashboard-CoANBhAM.js} +2 -2
  54. package/dist/{vue-ui-dashboard-BfC0jS-X.cjs → vue-ui-dashboard-OP51Gs8I.cjs} +1 -1
  55. package/dist/{vue-ui-digits-BJfcAiq_.cjs → vue-ui-digits-C7jJJg9k.cjs} +1 -1
  56. package/dist/{vue-ui-digits-IKt4qT2-.js → vue-ui-digits-DioaBnkB.js} +2 -2
  57. package/dist/vue-ui-donut-CplNylps.cjs +1 -0
  58. package/dist/vue-ui-donut-evolution-CQpr-6IS.cjs +1 -0
  59. package/dist/{vue-ui-donut-evolution-Dd4o37RP.js → vue-ui-donut-evolution-DAb1xzNd.js} +330 -306
  60. package/dist/{vue-ui-donut-DFaGk4fI.js → vue-ui-donut-ldqSm_JV.js} +345 -321
  61. package/dist/{vue-ui-dumbbell-B7j1_JoQ.js → vue-ui-dumbbell-Dg7PkiKJ.js} +265 -241
  62. package/dist/vue-ui-dumbbell-_ijaYr8W.cjs +9 -0
  63. package/dist/vue-ui-flow-BPt35d5K.cjs +1 -0
  64. package/dist/vue-ui-flow-DKT7ZEnr.js +508 -0
  65. package/dist/vue-ui-galaxy-e06PkTmp.cjs +1 -0
  66. package/dist/{vue-ui-galaxy-CH1BDtWl.js → vue-ui-galaxy-qAA9be3S.js} +193 -169
  67. package/dist/vue-ui-gauge-D8yVTIgP.js +518 -0
  68. package/dist/vue-ui-gauge-DiZVIU0D.cjs +1 -0
  69. package/dist/{vue-ui-gizmo-CKQcbe_7.js → vue-ui-gizmo-DC0uUwI3.js} +3 -3
  70. package/dist/{vue-ui-gizmo-DVwQaEH1.cjs → vue-ui-gizmo-W6bTkg59.cjs} +1 -1
  71. package/dist/vue-ui-heatmap-CbZcv_2I.cjs +1 -0
  72. package/dist/{vue-ui-heatmap-B-zWMk0Y.js → vue-ui-heatmap-u1raIzBQ.js} +252 -228
  73. package/dist/{vue-ui-kpi-CghbfSdM.js → vue-ui-kpi-C-iTxMD2.js} +3 -3
  74. package/dist/{vue-ui-kpi-CuY3xlVq.cjs → vue-ui-kpi-DY_2WF7U.cjs} +1 -1
  75. package/dist/{vue-ui-mini-loader-CH_PfeDc.cjs → vue-ui-mini-loader-Bfq2MNWu.cjs} +1 -1
  76. package/dist/{vue-ui-mini-loader-C7roqZ4p.js → vue-ui-mini-loader-C7x7S0hi.js} +2 -2
  77. package/dist/vue-ui-molecule-BFnOIxxs.js +798 -0
  78. package/dist/vue-ui-molecule-CbKMLrDT.cjs +1 -0
  79. package/dist/vue-ui-mood-radar-6LmFXuiw.cjs +1 -0
  80. package/dist/{vue-ui-mood-radar-DSznHxLS.js → vue-ui-mood-radar-CR1v5v2x.js} +263 -239
  81. package/dist/{vue-ui-nested-donuts-CiE4DdEQ.js → vue-ui-nested-donuts-DEiloQzq.js} +342 -318
  82. package/dist/vue-ui-nested-donuts-DS0fjiLi.cjs +17 -0
  83. package/dist/vue-ui-onion-CLvvu4Ku.cjs +5 -0
  84. package/dist/{vue-ui-onion-D9o6Rcgu.js → vue-ui-onion-LsEhBe4x.js} +226 -202
  85. package/dist/vue-ui-parallel-coordinate-plot-BWg8OFqH.cjs +8 -0
  86. package/dist/{vue-ui-parallel-coordinate-plot-BcYrYXhG.js → vue-ui-parallel-coordinate-plot-CTlIjJqG.js} +243 -219
  87. package/dist/{vue-ui-quadrant-Cs3A77us.js → vue-ui-quadrant-DKVVFufb.js} +350 -326
  88. package/dist/vue-ui-quadrant-OM5J1mG3.cjs +1 -0
  89. package/dist/{vue-ui-quick-chart-CiiSUexi.js → vue-ui-quick-chart-8vJikiGH.js} +505 -481
  90. package/dist/vue-ui-quick-chart-gG5Ar8-i.cjs +15 -0
  91. package/dist/{vue-ui-radar-CNSpiNrM.js → vue-ui-radar-20QhOUer.js} +255 -231
  92. package/dist/vue-ui-radar-CAaHjDO7.cjs +1 -0
  93. package/dist/{vue-ui-rating-GoUNDOdZ.cjs → vue-ui-rating-Bbzm5nUK.cjs} +1 -1
  94. package/dist/{vue-ui-rating-b_iYZWF8.js → vue-ui-rating-DRWJsve1.js} +2 -2
  95. package/dist/vue-ui-relation-circle-BoGAFXuS.cjs +1 -0
  96. package/dist/vue-ui-relation-circle-I45_Sk5l.js +349 -0
  97. package/dist/vue-ui-rings-B9WQ7S5m.cjs +2 -0
  98. package/dist/vue-ui-rings-DG8GCi3y.js +593 -0
  99. package/dist/vue-ui-scatter-BZfg1YIN.cjs +1 -0
  100. package/dist/{vue-ui-scatter-CVuoW-cD.js → vue-ui-scatter-Hqu5-F2H.js} +369 -345
  101. package/dist/{vue-ui-screenshot-Co2o48d6.cjs → vue-ui-screenshot-D8nxd5RV.cjs} +1 -1
  102. package/dist/{vue-ui-screenshot-Csc0dQL9.js → vue-ui-screenshot-cjiqbtLK.js} +1 -1
  103. package/dist/{vue-ui-skeleton-CGV1dEUD.cjs → vue-ui-skeleton-Djv08J67.cjs} +1 -1
  104. package/dist/{vue-ui-skeleton-B2sRnIXX.js → vue-ui-skeleton-aZmkNzAe.js} +3 -3
  105. package/dist/{vue-ui-smiley-Ci3uMgVh.cjs → vue-ui-smiley-B1TA19Hv.cjs} +1 -1
  106. package/dist/{vue-ui-smiley-D4s-AdIE.js → vue-ui-smiley-ChNvxygm.js} +2 -2
  107. package/dist/{vue-ui-spark-trend-BfoEoJEy.cjs → vue-ui-spark-trend-BqrPr63O.cjs} +1 -1
  108. package/dist/{vue-ui-spark-trend-CHKQGMLs.js → vue-ui-spark-trend-CQxELQcf.js} +5 -5
  109. package/dist/{vue-ui-sparkbar-Bb1fq2GR.js → vue-ui-sparkbar-0ixbKZzf.js} +4 -4
  110. package/dist/{vue-ui-sparkbar-DB2DeXti.cjs → vue-ui-sparkbar-CrTEPTU5.cjs} +1 -1
  111. package/dist/{vue-ui-sparkgauge-CJepIY2u.cjs → vue-ui-sparkgauge-BYxpe_WV.cjs} +1 -1
  112. package/dist/{vue-ui-sparkgauge-DWuaAQbo.js → vue-ui-sparkgauge-pdYb7OwH.js} +4 -4
  113. package/dist/{vue-ui-sparkhistogram-B7B36LLT.cjs → vue-ui-sparkhistogram-D21XDUH2.cjs} +1 -1
  114. package/dist/{vue-ui-sparkhistogram-CjeJ3ch1.js → vue-ui-sparkhistogram-N69h2q0U.js} +5 -5
  115. package/dist/{vue-ui-sparkline-DGJDBArr.js → vue-ui-sparkline-2BKYZMOb.js} +4 -4
  116. package/dist/{vue-ui-sparkline-BcqmwDAb.cjs → vue-ui-sparkline-Cf4m-Fxo.cjs} +1 -1
  117. package/dist/{vue-ui-sparkstackbar-DT3aKNeV.cjs → vue-ui-sparkstackbar-dAS8XoJs.cjs} +1 -1
  118. package/dist/{vue-ui-sparkstackbar-B3ul3qUZ.js → vue-ui-sparkstackbar-sh03cuOU.js} +4 -4
  119. package/dist/vue-ui-stackbar-B1si-1RM.js +938 -0
  120. package/dist/vue-ui-stackbar-Dy_saeSe.cjs +6 -0
  121. package/dist/{vue-ui-strip-plot-CIb2LSV8.js → vue-ui-strip-plot-BYn-QrTQ.js} +274 -250
  122. package/dist/vue-ui-strip-plot-D53LABpZ.cjs +1 -0
  123. package/dist/{vue-ui-table-B_sFrAO9.cjs → vue-ui-table-Ce4waJaj.cjs} +1 -1
  124. package/dist/{vue-ui-table-CmVi0nv2.js → vue-ui-table-DQORPCDJ.js} +1 -1
  125. package/dist/{vue-ui-table-heatmap-CgFr38QT.js → vue-ui-table-heatmap-Csp7Tx8N.js} +4 -4
  126. package/dist/{vue-ui-table-heatmap-Chvdf2Gi.cjs → vue-ui-table-heatmap-EqHt-O7Y.cjs} +1 -1
  127. package/dist/{vue-ui-table-sparkline-DUUYQ5dH.cjs → vue-ui-table-sparkline-DONmVOMh.cjs} +1 -1
  128. package/dist/{vue-ui-table-sparkline-eg2Qd8ws.js → vue-ui-table-sparkline-DdwVrfUj.js} +5 -5
  129. package/dist/vue-ui-thermometer-I6ZnlfAv.js +440 -0
  130. package/dist/vue-ui-thermometer-hQBkMa7u.cjs +1 -0
  131. package/dist/{vue-ui-timer-DM1IStj1.cjs → vue-ui-timer-COOXcn14.cjs} +1 -1
  132. package/dist/{vue-ui-timer-COSI3Q5T.js → vue-ui-timer-pi1SazTU.js} +5 -5
  133. package/dist/vue-ui-tiremarks-hdNqoGyd.cjs +1 -0
  134. package/dist/vue-ui-tiremarks-vdPQYiDp.js +303 -0
  135. package/dist/vue-ui-treemap-3FNUlKxL.js +816 -0
  136. package/dist/vue-ui-treemap-Cv0TSFQa.cjs +1 -0
  137. package/dist/vue-ui-vertical-bar-C--Ma0Dw.cjs +4 -0
  138. package/dist/{vue-ui-vertical-bar-CieqHVD5.js → vue-ui-vertical-bar-DwxpB46q.js} +312 -288
  139. package/dist/vue-ui-waffle-CKM0QyJN.cjs +1 -0
  140. package/dist/vue-ui-waffle-XecHJIc-.js +782 -0
  141. package/dist/vue-ui-wheel-Bbih5sSL.js +282 -0
  142. package/dist/vue-ui-wheel-C0dJrzOJ.cjs +1 -0
  143. package/dist/vue-ui-word-cloud-Cfd2wxsT.cjs +1 -0
  144. package/dist/vue-ui-word-cloud-DnhXUn5x.js +598 -0
  145. package/dist/vue-ui-xy-BDpqVzAq.cjs +3 -0
  146. package/dist/{vue-ui-xy-x8KEsGV-.js → vue-ui-xy-CqlRuFMc.js} +775 -751
  147. package/dist/{vue-ui-xy-canvas-BYdTxzi6.js → vue-ui-xy-canvas-C8c2X5fk.js} +409 -385
  148. package/dist/vue-ui-xy-canvas-Cansjd3L.cjs +9 -0
  149. package/package.json +1 -1
  150. package/dist/BaseIcon-E7FmzMcY.cjs +0 -1
  151. package/dist/index-C7_6YjWN.cjs +0 -9
  152. package/dist/usePrinter-8EP4iaGm.cjs +0 -1
  153. package/dist/vue-data-ui-4Yd255Ia.cjs +0 -9
  154. package/dist/vue-data-ui-Cp7bO_tj.js +0 -258
  155. package/dist/vue-ui-3d-bar-BeR2aBgQ.cjs +0 -19
  156. package/dist/vue-ui-age-pyramid-R-C4P4mI.cjs +0 -1
  157. package/dist/vue-ui-bullet-CQKaC4wG.js +0 -409
  158. package/dist/vue-ui-bullet-DSZox236.cjs +0 -23
  159. package/dist/vue-ui-candlestick-Dilozp3V.cjs +0 -2
  160. package/dist/vue-ui-chestnut-DdEcEI04.cjs +0 -6
  161. package/dist/vue-ui-donut-DTSVlGMg.cjs +0 -1
  162. package/dist/vue-ui-donut-evolution-BuUafabD.cjs +0 -1
  163. package/dist/vue-ui-dumbbell-CVfgnyKi.cjs +0 -9
  164. package/dist/vue-ui-flow-C45dODaB.cjs +0 -1
  165. package/dist/vue-ui-flow-DkPTzNv9.js +0 -484
  166. package/dist/vue-ui-galaxy-DlPavMK0.cjs +0 -1
  167. package/dist/vue-ui-gauge-BXiy515T.js +0 -494
  168. package/dist/vue-ui-gauge-vMFUYHYH.cjs +0 -1
  169. package/dist/vue-ui-heatmap-CMQqQnxc.cjs +0 -1
  170. package/dist/vue-ui-molecule-BwmkMEVN.js +0 -774
  171. package/dist/vue-ui-molecule-nOuD0hR5.cjs +0 -1
  172. package/dist/vue-ui-mood-radar-Bof_C9Ae.cjs +0 -1
  173. package/dist/vue-ui-nested-donuts-DIb6YyWv.cjs +0 -17
  174. package/dist/vue-ui-onion-N3tRNc4u.cjs +0 -5
  175. package/dist/vue-ui-parallel-coordinate-plot-qKGk2bX6.cjs +0 -8
  176. package/dist/vue-ui-quadrant-Do48rGrX.cjs +0 -1
  177. package/dist/vue-ui-quick-chart-BxU4d-sJ.cjs +0 -15
  178. package/dist/vue-ui-radar-CooAvwPA.cjs +0 -1
  179. package/dist/vue-ui-relation-circle-nRf1pvD0.js +0 -325
  180. package/dist/vue-ui-relation-circle-uNgJni4x.cjs +0 -1
  181. package/dist/vue-ui-rings-BgRc1o4_.js +0 -569
  182. package/dist/vue-ui-rings-iIgQI9Ws.cjs +0 -2
  183. package/dist/vue-ui-scatter-CkrpmLxP.cjs +0 -1
  184. package/dist/vue-ui-stackbar-CRcUugkl.cjs +0 -6
  185. package/dist/vue-ui-stackbar-DNROvZII.js +0 -915
  186. package/dist/vue-ui-strip-plot-Ck9Fmt_b.cjs +0 -1
  187. package/dist/vue-ui-thermometer-BFfN4aat.cjs +0 -1
  188. package/dist/vue-ui-thermometer-BePmFiwy.js +0 -416
  189. package/dist/vue-ui-tiremarks-BkYXzU3R.cjs +0 -1
  190. package/dist/vue-ui-tiremarks-d6TmSHY7.js +0 -279
  191. package/dist/vue-ui-treemap-BgeZnbl3.cjs +0 -1
  192. package/dist/vue-ui-treemap-Qg0858o6.js +0 -792
  193. package/dist/vue-ui-vertical-bar-D3atbdvl.cjs +0 -4
  194. package/dist/vue-ui-waffle-CD7C9Lu4.cjs +0 -1
  195. package/dist/vue-ui-waffle-CjNhM-mV.js +0 -758
  196. package/dist/vue-ui-wheel-B8mbO6ht.js +0 -258
  197. package/dist/vue-ui-wheel-CYmM7J61.cjs +0 -1
  198. package/dist/vue-ui-word-cloud-DMXrUmX5.js +0 -574
  199. package/dist/vue-ui-word-cloud-Dm9yZ1zQ.cjs +0 -1
  200. package/dist/vue-ui-xy-DoWnidom.cjs +0 -3
  201. 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 W, onMounted as ma, onBeforeUnmount as xa, openBlock as w, createElementBlock as ne, normalizeStyle as q, normalizeClass as La, createBlock as P, createCommentVNode as Y, unref as _, createSlots as ka, withCtx as b, renderSlot as k, normalizeProps as B, guardReactiveProps as X, createElementVNode as J, createVNode as Ca, toDisplayString as Ge, createTextVNode as wa } from "vue";
2
+ import { u as Sa, c as $a, t as za, a as Ta, p as A, b as Ma, C as ge, i as K, f as Q, I as Ra, d as Ve, $ as Ia, o as Oa, e as Pa, x as je, y as Fa, q as Ea, r as Na, s as ee, l as _a } from "./index-DnVHQ2xI.js";
3
+ import { d as Aa, c as Da, a as qe, t as Ha, l as C, r as pe, b as F, p as Je, u as Wa } from "./useResponsive-NZB-WLRF.js";
4
+ import { _ as Ya } from "./Tooltip-Cj4EF7v1.js";
5
+ import { L as Ba } from "./Legend-CYF2gpXG.js";
6
+ import { _ as Xa } from "./Title-5VmBwT4i.js";
7
+ import { S as Ua } from "./Slicer-CU7dRZR0.js";
8
+ import { u as Za, U as Ga } from "./usePrinter-BEeNAqS5.js";
9
+ import Va from "./vue-ui-accordion-DspS4q3f.js";
10
+ import { D as ja } from "./DataTable-DTk7C4Pr.js";
11
+ import qa from "./vue-ui-skeleton-aZmkNzAe.js";
12
+ import { u as Ke } from "./useNestedProp-Cox0K0Y5.js";
13
+ import { P as Ja } from "./PenAndPaper-Jb0pLt3G.js";
14
+ import { _ as Ka } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
+ const Qa = ["id"], et = ["onClick"], at = {
15
16
  key: 2,
16
17
  class: "vue-data-ui-watermark"
17
- }, Qa = ["innerHTML"], el = {
18
+ }, tt = ["innerHTML"], lt = {
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: Qe, emit: ea }) {
36
+ const E = be, { vue_ui_xy_canvas: aa } = Sa(), ie = v($a()), U = v(null), $ = v(null), Z = v(null), s = v(null), f = v(1), M = v(1), ae = v(!1), d = v(null), te = v(""), me = v(null), S = v([]), D = 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(0), $e = v(0), ze = v(0), de = m(() => !!E.dataset && E.dataset.length), a = m({
37
+ get: () => Te(),
37
38
  set: (e) => e
38
39
  });
39
- function $e() {
40
- const e = qe({
41
- userConfig: F.config,
42
- defaultConfig: Qe
40
+ function Te() {
41
+ const e = Ke({
42
+ userConfig: E.config,
43
+ defaultConfig: aa
43
44
  });
44
45
  return e.theme ? {
45
- ...qe({
46
- userConfig: Sa.vue_ui_xy_canvas[e.theme] || F.config,
46
+ ...Ke({
47
+ userConfig: za.vue_ui_xy_canvas[e.theme] || E.config,
47
48
  defaultConfig: e
48
49
  }),
49
- customPalette: $a[e.theme] || D
50
+ customPalette: Ta[e.theme] || A
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
+ W(() => E.config, (e) => {
54
+ a.value = Te(), Ae(), Se.value += 1, $e.value += 1, ze.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 Me = v(a.value.style.chart.aspectRatio), { isPrinting: Re, isImaging: Ie, generatePdf: Oe, generateImage: Pe } = Za({
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 ta(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 Fe = m(() => Ma(a.value.customPalette)), R = m(() => H.value ? Math.max(...H.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 Ee(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,
85
+ function la({ hasAutoScale: e, series: l, min: o, max: i, scale: c, yOffset: y, individualHeight: n, stackIndex: g = null }) {
86
+ return l.map((L, ye) => {
87
+ const T = c.min < 0 ? Math.abs(c.min) : 0, I = Ee(L + T, T + c.max);
88
+ let O, G;
89
+ e && (O = Math.abs(c.min), G = Ee(L + 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,
93
94
  value: L
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(...H.value.filter((n, g) => !S.value.includes(n.absoluteIndex)).flatMap((n) => n.series.slice(r.value.start, r.value.end))), l = Math.max(...H.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
+ }), oa = 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>${K(
118
119
  a.value.style.chart.dataLabels.formatter,
119
120
  e.series[d.value],
120
- K({
121
+ Q({
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
+ `)), H = 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: Ra(e.series),
133
+ absoluteIndex: l,
134
+ color: Ve(e.color || Fe.value[l] || A[l] || A[l % A.length])
134
135
  })));
135
- Y(R, (e) => {
136
- e && Fe();
136
+ W(R, (e) => {
137
+ e && Ne();
137
138
  });
138
- const h = b(() => Ma(W.value.filter((e, t) => !w.value.includes(e.absoluteIndex))).map((e, t) => ({
139
+ const h = m(() => Ia(H.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 L = 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 - L - T : O = t.value.bottom - L - T * (I / (g.max + I));
155
+ const G = g.ticks.map((j, ba) => ({
156
+ y: t.value.bottom - L - T * (ba / (g.ticks.length - 1)),
157
+ x: t.value.left - 8,
158
+ value: j
159
+ })), V = la({
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,
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,
164
165
  yOffset: L,
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
+ localYLabels: G,
177
178
  yOffset: L,
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 Ne() {
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 ra = m(() => h.value.filter((e) => ["line", "plot", void 0].includes(e.type))), x = m(() => h.value.filter((e) => e.type === "bar"));
192
+ function ua() {
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 * D.value * 2, $.value.height = l * D.value * 2, f.value = e * D.value * 2, M.value = l * D.value * 2, s.value.scale(D.value, D.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)
198
+ function sa() {
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)
201
202
  C(
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" : ee(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
+ e.localYLabels.slice(r.value.start, r.value.end).forEach((l) => {
235
236
  C(
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
@@ -247,8 +248,8 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
247
248
  C(
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,
@@ -259,8 +260,8 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
259
260
  C(
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
@@ -268,28 +269,28 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
268
269
  ), C(
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
+ K(
281
282
  a.value.style.chart.dataLabels.formatter,
282
- t.value,
283
- K({
283
+ l.value,
284
+ Q({
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,29 +313,29 @@ 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)
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)
317
318
  C(
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" : ee(a.value.style.chart.grid.x.horizontalLines.color, a.value.style.chart.grid.x.horizontalLines.opacity),
338
339
  strokeColor: "transparent"
339
340
  }
340
341
  );
@@ -342,8 +343,8 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
342
343
  C(
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
@@ -352,8 +353,8 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
352
353
  })), a.value.style.chart.grid.y.showAxis && C(
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,
@@ -362,8 +363,8 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
362
363
  ), a.value.style.chart.grid.x.showAxis && C(
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,
@@ -372,26 +373,26 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
372
373
  ), a.value.style.chart.grid.zeroLine.show && C(
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
+ K(
386
387
  a.value.style.chart.dataLabels.formatter,
387
388
  e.value,
388
- K({
389
+ Q({
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 na(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
+ qe(
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 ia(e) {
446
+ for (let l = 0; l < e.coordinatesLine.length; l += 1)
447
+ F(
447
448
  s.value,
448
- J(
449
+ K(
449
450
  a.value.style.chart.dataLabels.formatter,
450
- e.coordinatesLine[t].value,
451
- K({
451
+ e.coordinatesLine[l].value,
452
+ Q({
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 va() {
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: ee(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
+ function _e() {
486
487
  C(
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 ca() {
502
+ x.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 / x.value.length * l - (l === 0 ? 0 : t.value.slot / (5 * x.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 / x.value.length * l - (l === 0 ? 0 : t.value.slot / (5 * x.value.length) * l)) + t.value.slot * 0.8 / (u.value.stacked ? 1 : x.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 / x.value.length * l - (l === 0 ? 0 : t.value.slot / (5 * x.value.length) * l)) + t.value.slot * 0.8 / (u.value.stacked ? 1 : x.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 / x.value.length * l - (l === 0 ? 0 : t.value.slot / (5 * x.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: _a(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
+ K(
544
545
  a.value.style.chart.dataLabels.formatter,
545
546
  e.coordinatesLine[o].value,
546
- K({
547
+ Q({
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 / x.value.length * l - (l === 0 ? 0 : t.value.slot / (5 * x.value.length) * l)) + t.value.slot * 0.4 / (u.value.stacked ? 1 : x.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,19 +564,19 @@ 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 da(e) {
568
+ e.useArea ? u.value.stacked ? Je(
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: ee(e.color, a.value.style.chart.area.opacity),
572
573
  strokeColor: "transparent"
573
574
  }
574
- ) : je(
575
+ ) : Je(
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: ee(e.color, a.value.style.chart.area.opacity),
579
580
  strokeColor: "transparent"
580
581
  }
581
582
  ) : C(s.value, e.coordinatesLine, {
@@ -583,13 +584,13 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
583
584
  lineWidth: 3
584
585
  });
585
586
  }
586
- function ca() {
587
- h.value.forEach((e, t) => {
587
+ function ha() {
588
+ h.value.forEach((e, l) => {
588
589
  C(
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
+ sa(), N.value ? (z.value && d.value !== null && a.value.style.chart.selector.show && _e(), ca(), u.value.stacked && a.value.style.chart.grid.x.showAxis && ha(), ra.value.forEach((e) => {
604
+ (e.type === "line" || !e.type) && da(e), z.value && (na(e), u.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && ia(e));
605
+ }), ve.value = Da($.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 && _e(), 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 && qe(
608
609
  s.value,
609
610
  {
610
611
  x: e.coordinatesLine[d.value].x,
@@ -618,22 +619,22 @@ 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 && va(), N.value = !1;
622
623
  }
623
- const te = _a(() => {
624
- z.value = !0, oa();
624
+ const le = Aa(() => {
625
+ z.value = !0, ua();
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) {
627
+ function fa(e) {
628
+ const { left: l } = $.value.getBoundingClientRect(), o = e.clientX - l;
629
+ if (o * 2 < t.value.left || o * 2 > t.value.right) {
629
630
  ae.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), ae.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
+ je(y) && Fa(() => y({
637
638
  seriesIndex: d.value,
638
639
  datapoint: h.value.map((n) => ({
639
640
  shape: n.shape || null,
@@ -644,7 +645,7 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
644
645
  })),
645
646
  series: h.value,
646
647
  config: a.value
647
- })) ? le.value = y({
648
+ })) ? te.value = y({
648
649
  seriesIndex: d.value,
649
650
  datapoint: h.value.map((n) => ({
650
651
  shape: n.shape || null,
@@ -655,79 +656,79 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
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 += oa.value.join(""), te.value = c), z.value = !1;
659
660
  }
660
- Y(() => d.value, (e) => {
661
- te();
662
- }), Y(() => u.value, (e) => {
663
- E.value = !0, de();
661
+ W(() => d.value, (e) => {
662
+ le();
663
+ }), W(() => 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
+ }), W(() => u.value.showDataLabels, (e) => {
668
+ N.value = !0, he();
669
+ }), W(() => u.value.stacked, (e) => {
670
+ N.value = !0, z.value = !0, le();
670
671
  });
671
- function ha() {
672
- ae.value = !1, d.value = null, le.value = "";
672
+ function ya() {
673
+ ae.value = !1, d.value = null, te.value = "";
673
674
  }
674
- const oe = v(null), ue = v(null);
675
- pa(() => {
676
- _e();
675
+ const oe = v(null), re = v(null);
676
+ ma(() => {
677
+ Ae();
677
678
  });
678
- function _e() {
679
- if (Ra(F.dataset) ? Ia({
679
+ function Ae() {
680
+ if (Oa(E.dataset) ? Pa({
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 = Ha(() => {
685
+ const { width: l, height: o } = Wa({
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
689
690
  });
690
- ze.value = `${t} / ${o}`;
691
+ Me.value = `${l} / ${o}`;
691
692
  });
692
- oe.value = new ResizeObserver(e), oe.value.observe(ee.value.parentNode);
693
+ oe.value = new ResizeObserver(e), oe.value.observe(U.value.parentNode);
693
694
  }
694
- 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);
695
+ re.value = new ResizeObserver((e) => {
696
+ for (const l of e)
697
+ l.contentBoxSize && Z.value && (N.value = !0, le());
698
+ }), re.value.observe(Z.value);
698
699
  }
699
- ba(() => {
700
- ue.value && ue.value.disconnect(), oe.value && oe.value.disconnect();
700
+ xa(() => {
701
+ re.value && re.value.disconnect(), oe.value && oe.value.disconnect();
701
702
  });
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();
703
+ function De(e) {
704
+ ea("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, le();
704
705
  }
705
- const De = b(() => W.value.map((e, t) => ({
706
+ const He = m(() => H.value.map((e, l) => ({
706
707
  ...e,
707
708
  name: e.name,
708
- color: Ze(e.color) || Oe.value[t] || D[t] || D[t % D.length],
709
+ color: Ve(e.color) || Fe.value[l] || A[l] || A[l % A.length],
709
710
  shape: e.shape || "circle",
710
711
  prefix: e.prefix || "",
711
712
  suffix: e.suffix || "",
712
713
  rounding: e.rounding || 0
713
714
  })).map((e) => ({
714
715
  ...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(() => ({
716
+ opacity: S.value.includes(e.absoluteIndex) ? 0.5 : 1,
717
+ segregate: () => De(e.absoluteIndex),
718
+ isSegregated: S.value.includes(e.absoluteIndex)
719
+ }))), ga = m(() => ({
719
720
  cy: "donut-div-legend",
720
721
  backgroundColor: a.value.style.chart.legend.backgroundColor,
721
722
  color: a.value.style.chart.legend.color,
722
723
  fontSize: a.value.style.chart.legend.fontSize,
723
724
  paddingBottom: 12,
724
725
  fontWeight: a.value.style.chart.legend.bold ? "bold" : ""
725
- })), re = b(() => {
726
+ })), ue = m(() => {
726
727
  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 = [];
728
+ let l = [];
728
729
  for (let c = 0; c < R.value; c += 1) {
729
730
  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)));
731
+ 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
732
  }
732
733
  const o = {
733
734
  th: {
@@ -742,65 +743,70 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
742
743
  },
743
744
  breakpoint: a.value.table.responsiveBreakpoint
744
745
  }, 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(() => {
746
+ return { head: e, body: l.slice(0, r.value.end - r.value.start), config: o, colNames: i };
747
+ }), We = m(() => {
747
748
  if (h.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
748
749
  const e = h.value.map((o) => ({
749
750
  label: o.name,
750
751
  color: o.color,
751
752
  type: o.type
752
- })), t = [];
753
- for (let o = u.value.start; o < u.value.end; o += 1) {
753
+ })), l = [];
754
+ for (let o = r.value.start; o < r.value.end; o += 1) {
754
755
  const i = [a.value.style.chart.grid.y.timeLabels.values[o] || o + 1];
755
756
  h.value.forEach((c) => {
756
757
  i.push(Number((c.series[o] || 0).toFixed(a.value.table.rounding)));
757
- }), t.push(i);
758
+ }), l.push(i);
758
759
  }
759
- return { head: e, body: t };
760
+ return { head: e, body: l };
760
761
  });
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" });
762
+ function Ye() {
763
+ const e = [[a.value.style.chart.title.text], [a.value.style.chart.title.subtitle.text], [""]], l = ["", ...We.value.head.map((y) => y.label)], o = We.value.body, i = e.concat([l]).concat(o), c = Ea(i);
764
+ Na({ csvContent: c, title: a.value.style.chart.title.text || "vue-ui-xy-canvas" });
764
765
  }
765
- function ya() {
766
+ function pa() {
766
767
  return h.value;
767
768
  }
768
- function Ye() {
769
- r.value.showTable = !r.value.showTable;
770
- }
771
769
  function Be() {
772
- r.value.showDataLabels = !r.value.showDataLabels;
770
+ u.value.showTable = !u.value.showTable;
773
771
  }
774
772
  function Xe() {
775
- r.value.stacked = !r.value.stacked;
773
+ u.value.showDataLabels = !u.value.showDataLabels;
776
774
  }
777
- function Ae() {
778
- r.value.showTooltip = !r.value.showTooltip;
775
+ function Ue() {
776
+ u.value.stacked = !u.value.stacked;
777
+ }
778
+ function Ze() {
779
+ u.value.showTooltip = !u.value.showTooltip;
780
+ }
781
+ const se = v(!1);
782
+ function fe() {
783
+ se.value = !se.value;
779
784
  }
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%" : ""}`),
785
+ return Qe({
786
+ getData: pa,
787
+ generateCsv: Ye,
788
+ generatePdf: Oe,
789
+ generateImage: Pe,
790
+ toggleTable: Be,
791
+ toggleLabels: Xe,
792
+ toggleStack: Ue,
793
+ toggleTooltip: Ze,
794
+ toggleAnnotator: fe
795
+ }), (e, l) => (w(), ne("div", {
796
+ style: q(`width:100%; position:relative; ${a.value.responsive ? "height: 100%" : ""}`),
791
797
  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" : ""}`)
798
+ ref: U,
799
+ id: `xy_canvas_${ie.value}`,
800
+ class: La(`vue-ui-donut ${ce.value ? "vue-data-ui-wrapper-fullscreen" : ""}`)
795
801
  }, [
796
- a.value.style.chart.title.text ? (S(), se("div", {
802
+ a.value.style.chart.title.text ? (w(), ne("div", {
797
803
  key: 0,
798
804
  ref_key: "chartTitle",
799
- ref: xe,
800
- style: Z(`width:100%;background:${a.value.style.chart.backgroundColor};`)
805
+ ref: ke,
806
+ style: q(`width:100%;background:${a.value.style.chart.backgroundColor};`)
801
807
  }, [
802
- (S(), _(Ba, {
803
- key: `title_${Ce.value}`,
808
+ (w(), P(Xa, {
809
+ key: `title_${Se.value}`,
804
810
  config: {
805
811
  title: {
806
812
  cy: "xy-canvas-title",
@@ -812,109 +818,119 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
812
818
  }
813
819
  }
814
820
  }, null, 8, ["config"]))
815
- ], 4)) : G("", !0),
816
- a.value.userOptions.show && ce.value ? (S(), _(Ua, {
821
+ ], 4)) : Y("", !0),
822
+ a.value.userOptions.show && de.value ? (w(), P(Ga, {
817
823
  ref: "details",
818
- key: `user_option_${me.value}`,
824
+ key: `user_option_${Le.value}`,
819
825
  backgroundColor: a.value.style.chart.backgroundColor,
820
826
  color: a.value.style.chart.color,
821
- isPrinting: N(Te),
822
- isImaging: N(Me),
823
- uid: ne.value,
827
+ isPrinting: _(Re),
828
+ isImaging: _(Ie),
829
+ uid: ie.value,
824
830
  hasTooltip: a.value.userOptions.buttons.tooltip && a.value.style.chart.tooltip.show,
825
831
  hasPdf: a.value.userOptions.buttons.pdf,
826
832
  hasImg: a.value.userOptions.buttons.img,
827
833
  hasXls: a.value.userOptions.buttons.csv,
828
834
  hasLabel: a.value.userOptions.buttons.labels,
829
- hasStack: ge.dataset.length > 1 && a.value.userOptions.buttons.stack,
835
+ hasStack: be.dataset.length > 1 && a.value.userOptions.buttons.stack,
830
836
  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,
837
+ hasTable: r.value.end - r.value.start < 200 && a.value.userOptions.buttons.table,
838
+ isFullscreen: ce.value,
839
+ isTooltip: u.value.showTooltip,
840
+ isStacked: u.value.stacked,
835
841
  titles: { ...a.value.userOptions.buttonTitles },
836
- chartElement: ee.value,
842
+ chartElement: U.value,
837
843
  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 }, [
844
+ hasAnnotator: a.value.userOptions.buttons.annotator,
845
+ isAnnotation: se.value,
846
+ onToggleFullscreen: ta,
847
+ onGeneratePdf: _(Oe),
848
+ onGenerateCsv: Ye,
849
+ onGenerateImage: _(Pe),
850
+ onToggleTable: Be,
851
+ onToggleLabels: Xe,
852
+ onToggleStack: Ue,
853
+ onToggleTooltip: Ze,
854
+ onToggleAnnotator: fe
855
+ }, ka({ _: 2 }, [
847
856
  e.$slots.optionTooltip ? {
848
857
  name: "optionTooltip",
849
- fn: m(() => [
858
+ fn: b(() => [
850
859
  k(e.$slots, "optionTooltip", {}, void 0, !0)
851
860
  ]),
852
861
  key: "0"
853
862
  } : void 0,
854
863
  e.$slots.optionPdf ? {
855
864
  name: "optionPdf",
856
- fn: m(() => [
865
+ fn: b(() => [
857
866
  k(e.$slots, "optionPdf", {}, void 0, !0)
858
867
  ]),
859
868
  key: "1"
860
869
  } : void 0,
861
870
  e.$slots.optionCsv ? {
862
871
  name: "optionCsv",
863
- fn: m(() => [
872
+ fn: b(() => [
864
873
  k(e.$slots, "optionCsv", {}, void 0, !0)
865
874
  ]),
866
875
  key: "2"
867
876
  } : void 0,
868
877
  e.$slots.optionImg ? {
869
878
  name: "optionImg",
870
- fn: m(() => [
879
+ fn: b(() => [
871
880
  k(e.$slots, "optionImg", {}, void 0, !0)
872
881
  ]),
873
882
  key: "3"
874
883
  } : void 0,
875
884
  e.$slots.optionTable ? {
876
885
  name: "optionTable",
877
- fn: m(() => [
886
+ fn: b(() => [
878
887
  k(e.$slots, "optionTable", {}, void 0, !0)
879
888
  ]),
880
889
  key: "4"
881
890
  } : void 0,
882
891
  e.$slots.optionLabels ? {
883
892
  name: "optionLabels",
884
- fn: m(() => [
893
+ fn: b(() => [
885
894
  k(e.$slots, "optionLabels", {}, void 0, !0)
886
895
  ]),
887
896
  key: "5"
888
897
  } : void 0,
889
898
  e.$slots.optionStack ? {
890
899
  name: "optionStack",
891
- fn: m(() => [
900
+ fn: b(() => [
892
901
  k(e.$slots, "optionStack", {}, void 0, !0)
893
902
  ]),
894
903
  key: "6"
895
904
  } : void 0,
896
905
  e.$slots.optionFullscreen ? {
897
906
  name: "optionFullscreen",
898
- fn: m(({ toggleFullscreen: o, isFullscreen: i }) => [
899
- k(e.$slots, "optionFullscreen", V(j({ toggleFullscreen: o, isFullscreen: i })), void 0, !0)
907
+ fn: b(({ toggleFullscreen: o, isFullscreen: i }) => [
908
+ k(e.$slots, "optionFullscreen", B(X({ toggleFullscreen: o, isFullscreen: i })), void 0, !0)
900
909
  ]),
901
910
  key: "7"
911
+ } : void 0,
912
+ e.$slots.optionAnnotator ? {
913
+ name: "optionAnnotator",
914
+ fn: b(({ toggleAnnotator: o, isAnnotator: i }) => [
915
+ k(e.$slots, "optionAnnotator", B(X({ toggleAnnotator: o, isAnnotator: i })), void 0, !0)
916
+ ]),
917
+ key: "8"
902
918
  } : 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", {
919
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasLabel", "hasStack", "hasFullscreen", "hasTable", "isFullscreen", "isTooltip", "isStacked", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : Y("", !0),
920
+ J("div", {
905
921
  class: "vue-ui-xy-canvas",
906
- style: Z(`position: relative; aspect-ratio: ${ze.value}`),
922
+ style: q(`position: relative; aspect-ratio: ${Me.value}`),
907
923
  ref_key: "container",
908
- ref: B
924
+ ref: Z
909
925
  }, [
910
- ce.value ? (S(), se("canvas", {
926
+ de.value ? (w(), ne("canvas", {
911
927
  key: 0,
912
928
  ref_key: "canvas",
913
929
  ref: $,
914
930
  style: { width: "100%", height: "100%" },
915
- onMousemove: t[0] || (t[0] = (o) => da(o)),
916
- onMouseleave: ha
917
- }, null, 544)) : (S(), _(Va, {
931
+ onMousemove: l[0] || (l[0] = (o) => fa(o)),
932
+ onMouseleave: ya
933
+ }, null, 544)) : (w(), P(qa, {
918
934
  key: 1,
919
935
  config: {
920
936
  type: "line",
@@ -932,8 +948,8 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
932
948
  }
933
949
  }
934
950
  }, null, 8, ["config"])),
935
- La(Wa, {
936
- show: r.value.showTooltip && ae.value,
951
+ Ca(Ya, {
952
+ show: u.value.showTooltip && ae.value,
937
953
  backgroundColor: a.value.style.chart.tooltip.backgroundColor,
938
954
  color: a.value.style.chart.tooltip.color,
939
955
  fontSize: a.value.style.chart.tooltip.fontSize,
@@ -943,82 +959,82 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
943
959
  position: a.value.style.chart.tooltip.position,
944
960
  offsetY: a.value.style.chart.tooltip.offsetY,
945
961
  parent: $.value,
946
- content: le.value,
962
+ content: te.value,
947
963
  backgroundOpacity: a.value.style.chart.tooltip.backgroundOpacity,
948
- isCustom: N(Ge)(a.value.style.chart.tooltip.customFormat)
964
+ isCustom: _(je)(a.value.style.chart.tooltip.customFormat)
949
965
  }, {
950
- "tooltip-before": m(() => [
951
- k(e.$slots, "tooltip-before", V(j({ ...pe.value })), void 0, !0)
966
+ "tooltip-before": b(() => [
967
+ k(e.$slots, "tooltip-before", B(X({ ...me.value })), void 0, !0)
952
968
  ]),
953
- "tooltip-after": m(() => [
954
- k(e.$slots, "tooltip-after", V(j({ ...pe.value })), void 0, !0)
969
+ "tooltip-after": b(() => [
970
+ k(e.$slots, "tooltip-after", B(X({ ...me.value })), void 0, !0)
955
971
  ]),
956
972
  _: 3
957
973
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "position", "offsetY", "parent", "content", "backgroundOpacity", "isCustom"])
958
974
  ], 4),
959
- q("div", {
975
+ J("div", {
960
976
  ref_key: "chartSlicer",
961
- ref: ke,
962
- style: Z(`width:100%;background:${a.value.style.chart.backgroundColor}`),
977
+ ref: we,
978
+ style: q(`width:100%;background:${a.value.style.chart.backgroundColor}`),
963
979
  "data-html2canvas-ignore": ""
964
980
  }, [
965
- a.value.style.chart.zoom.show && R.value > 1 ? (S(), _(Xa, {
966
- key: `slicer_${be.value}`,
981
+ a.value.style.chart.zoom.show && R.value > 1 ? (w(), P(Ua, {
982
+ key: `slicer_${xe.value}`,
967
983
  background: a.value.style.chart.zoom.color,
968
984
  borderColor: a.value.style.chart.backgroundColor,
969
985
  fontSize: a.value.style.chart.zoom.fontSize,
970
986
  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] : "",
987
+ labelLeft: a.value.style.chart.grid.y.timeLabels.values[r.value.start] ? a.value.style.chart.grid.y.timeLabels.values[r.value.start] : "",
988
+ 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
989
  textColor: a.value.style.chart.color,
974
990
  inputColor: a.value.style.chart.zoom.color,
975
991
  selectColor: a.value.style.chart.zoom.highlightColor,
976
992
  max: R.value,
977
993
  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
994
+ valueStart: r.value.start,
995
+ valueEnd: r.value.end,
996
+ start: r.value.start,
997
+ "onUpdate:start": l[1] || (l[1] = (o) => r.value.start = o),
998
+ end: r.value.end,
999
+ "onUpdate:end": l[2] || (l[2] = (o) => r.value.end = o),
1000
+ onReset: Ne
985
1001
  }, {
986
- "reset-action": m(({ reset: o }) => [
987
- k(e.$slots, "reset-action", V(j({ reset: o })), void 0, !0)
1002
+ "reset-action": b(({ reset: o }) => [
1003
+ k(e.$slots, "reset-action", B(X({ reset: o })), void 0, !0)
988
1004
  ]),
989
1005
  _: 3
990
- }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end"])) : G("", !0)
1006
+ }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end"])) : Y("", !0)
991
1007
  ], 4),
992
- q("div", {
1008
+ J("div", {
993
1009
  ref_key: "chartLegend",
994
- ref: Le
1010
+ ref: Ce
995
1011
  }, [
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))
1012
+ a.value.style.chart.legend.show && de.value ? (w(), P(Ba, {
1013
+ legendSet: He.value,
1014
+ config: ga.value,
1015
+ key: `legend_${ze.value}`,
1016
+ onClickMarker: l[3] || (l[3] = ({ i: o }) => De(o))
1001
1017
  }, {
1002
- item: m(({ legend: o, index: i }) => [
1003
- q("div", {
1018
+ item: b(({ legend: o, index: i }) => [
1019
+ J("div", {
1004
1020
  onClick: (c) => o.segregate(),
1005
- style: Z(`opacity:${w.value.includes(i) ? 0.5 : 1}`)
1006
- }, Ue(o.name), 13, Ja)
1021
+ style: q(`opacity:${S.value.includes(i) ? 0.5 : 1}`)
1022
+ }, Ge(o.name), 13, et)
1007
1023
  ]),
1008
1024
  _: 1
1009
1025
  }, 8, ["legendSet", "config"])) : k(e.$slots, "legend", {
1010
1026
  key: 1,
1011
- legend: De.value
1027
+ legend: He.value
1012
1028
  }, void 0, !0)
1013
1029
  ], 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, {
1030
+ e.$slots.watermark ? (w(), ne("div", at, [
1031
+ k(e.$slots, "watermark", B(X({ isPrinting: _(Re) || _(Ie) })), void 0, !0)
1032
+ ])) : Y("", !0),
1033
+ r.value.end - r.value.start < 200 ? (w(), P(Va, {
1018
1034
  key: 3,
1019
1035
  hideDetails: "",
1020
1036
  config: {
1021
- open: r.value.showTable,
1037
+ open: u.value.showTable,
1022
1038
  maxHeight: 1e4,
1023
1039
  body: {
1024
1040
  backgroundColor: a.value.style.chart.backgroundColor,
@@ -1030,30 +1046,38 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
1030
1046
  }
1031
1047
  }
1032
1048
  }, {
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,
1049
+ content: b(() => [
1050
+ (w(), P(ja, {
1051
+ key: `table_${$e.value}`,
1052
+ colNames: ue.value.colNames,
1053
+ head: ue.value.head,
1054
+ body: ue.value.body,
1055
+ config: ue.value.config,
1040
1056
  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)
1057
+ onClose: l[4] || (l[4] = (o) => u.value.showTable = !1)
1042
1058
  }, {
1043
- th: m(({ th: o }) => [
1044
- q("div", { innerHTML: o }, null, 8, Qa)
1059
+ th: b(({ th: o }) => [
1060
+ J("div", { innerHTML: o }, null, 8, tt)
1045
1061
  ]),
1046
- td: m(({ td: o }) => [
1047
- ka(Ue(o), 1)
1062
+ td: b(({ td: o }) => [
1063
+ wa(Ge(o), 1)
1048
1064
  ]),
1049
1065
  _: 1
1050
1066
  }, 8, ["colNames", "head", "body", "config", "title"]))
1051
1067
  ]),
1052
1068
  _: 1
1053
- }, 8, ["config"])) : G("", !0)
1054
- ], 14, qa));
1069
+ }, 8, ["config"])) : Y("", !0),
1070
+ a.value.userOptions.buttons.annotator && h.value.length ? (w(), P(Ja, {
1071
+ key: 4,
1072
+ parent: U.value,
1073
+ backgroundColor: a.value.style.chart.backgroundColor,
1074
+ color: a.value.style.chart.color,
1075
+ active: se.value,
1076
+ onClose: fe
1077
+ }, null, 8, ["parent", "backgroundColor", "color", "active"])) : Y("", !0)
1078
+ ], 14, Qa));
1055
1079
  }
1056
- }, fl = /* @__PURE__ */ ja(el, [["__scopeId", "data-v-180df9f3"]]);
1080
+ }, bt = /* @__PURE__ */ Ka(lt, [["__scopeId", "data-v-01470008"]]);
1057
1081
  export {
1058
- fl as default
1082
+ bt as default
1059
1083
  };