vue-data-ui 2.7.2 → 2.7.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 (195) hide show
  1. package/dist/{Arrow-Cuf9zUpa.cjs → Arrow-CwCPcRDq.cjs} +1 -1
  2. package/dist/{Arrow-SOQeOwmT.js → Arrow-DZ9pNVTr.js} +1 -1
  3. package/dist/{BaseIcon-C0unoacb.cjs → BaseIcon-BQ6ScTsr.cjs} +1 -1
  4. package/dist/{BaseIcon-DqYzMisq.js → BaseIcon-CdxldTMn.js} +4 -3
  5. package/dist/{ColorPicker-DLNc3kpl.cjs → ColorPicker-D6mp4NrH.cjs} +1 -1
  6. package/dist/{ColorPicker-DyOTLjAA.js → ColorPicker-DF9jbKW-.js} +3 -3
  7. package/dist/{DataTable-ByOfBGEi.cjs → DataTable-4qcYZrGF.cjs} +1 -1
  8. package/dist/{DataTable-C_28ZqiP.js → DataTable-BFNGlApm.js} +2 -2
  9. package/dist/{Legend-CmKaL7xe.js → Legend-B4eIw732.js} +2 -2
  10. package/dist/{Legend-mrAy7yUC.cjs → Legend-D8qnv865.cjs} +1 -1
  11. package/dist/{PackageVersion-39l3KkzC.js → PackageVersion-BZ8-AoE_.js} +1 -1
  12. package/dist/{PackageVersion-By81XV8X.cjs → PackageVersion-sCi6-fwm.cjs} +1 -1
  13. package/dist/PenAndPaper--_AE7XzJ.js +374 -0
  14. package/dist/PenAndPaper-DXiYR_ED.cjs +1 -0
  15. package/dist/{Shape-iIO-95sh.js → Shape-BQd108EW.js} +1 -1
  16. package/dist/{Shape-x7U3IhoM.cjs → Shape-BjIO2Dd_.cjs} +1 -1
  17. package/dist/{Slicer-Ct66sqV1.cjs → Slicer-B10GL6W6.cjs} +1 -1
  18. package/dist/{Slicer-C49MotZz.js → Slicer-BtX8p8CI.js} +2 -2
  19. package/dist/{Title-BgVFZwZZ.cjs → Title-DWFudmma.cjs} +1 -1
  20. package/dist/{Title-Co3F59jq.js → Title-ND4kMErl.js} +1 -1
  21. package/dist/{Tooltip-Cr89wMKa.js → Tooltip-BWe5TPIJ.js} +1 -1
  22. package/dist/{Tooltip-B8E9uCVm.cjs → Tooltip-DPqJ5wwr.cjs} +1 -1
  23. package/dist/{dom-to-png-D9eujpXB.cjs → dom-to-png-DBOO7SYL.cjs} +1 -1
  24. package/dist/{dom-to-png-DtBlqZMR.js → dom-to-png-DOe_fDQ9.js} +1 -1
  25. package/dist/{img-DgRUFehB.cjs → img-BTldOAS7.cjs} +1 -1
  26. package/dist/{img-DQDP5JIH.js → img-K80BXoXO.js} +1 -1
  27. package/dist/{index-gC66Se26.js → index-B_dU_4T8.js} +1 -1
  28. package/dist/{index-BeJeDy5m.cjs → index-HGCbG8YK.cjs} +1 -1
  29. package/dist/{pdf-lJiGVhtL.js → pdf-BKSh5KBc.js} +1 -1
  30. package/dist/{pdf-Bu1ahAX2.cjs → pdf-IEdK_h03.cjs} +1 -1
  31. package/dist/style.css +1 -1
  32. package/dist/types/vue-data-ui.d.cts +2 -1
  33. package/dist/types/vue-data-ui.d.ts +2 -1
  34. package/dist/{useNestedProp-BusTOV-6.js → useNestedProp-7s4Pw7x0.js} +1 -1
  35. package/dist/{useNestedProp-CF-iHhIC.cjs → useNestedProp-O_JTsxQj.cjs} +1 -1
  36. package/dist/{usePrinter-Bz_kd3vb.cjs → usePrinter-B2PvJuo8.cjs} +1 -1
  37. package/dist/{usePrinter-KMFl0n0s.js → usePrinter-CLObTJ4a.js} +3 -3
  38. package/dist/{vue-data-ui-BApY_erH.js → vue-data-ui-Dvy8nai9.js} +60 -60
  39. package/dist/{vue-data-ui-Bak-lr4I.cjs → vue-data-ui-NmIWCiVH.cjs} +1 -1
  40. package/dist/vue-data-ui.cjs +1 -1
  41. package/dist/vue-data-ui.js +1 -1
  42. package/dist/vue-ui-3d-bar-CUG7pspB.cjs +19 -0
  43. package/dist/{vue-ui-3d-bar-BWjU0K3_.js → vue-ui-3d-bar-Cf-VSMqf.js} +30 -30
  44. package/dist/{vue-ui-accordion-j2beIma_.js → vue-ui-accordion-C5dj9Voo.js} +3 -3
  45. package/dist/{vue-ui-accordion-CZBJSHT_.cjs → vue-ui-accordion-CSuxLH7L.cjs} +1 -1
  46. package/dist/{vue-ui-age-pyramid-Cmw4WVB4.js → vue-ui-age-pyramid-BYHyKvk4.js} +22 -22
  47. package/dist/vue-ui-age-pyramid-qT6V3Y8O.cjs +1 -0
  48. package/dist/{vue-ui-annotator-BVv5XkoE.cjs → vue-ui-annotator-KzRsqSTn.cjs} +1 -1
  49. package/dist/{vue-ui-annotator-CKmqZjUD.js → vue-ui-annotator-clyvpxxd.js} +2 -2
  50. package/dist/{vue-ui-bullet-U_yJjO0m.js → vue-ui-bullet-CJL4NBSU.js} +36 -36
  51. package/dist/vue-ui-bullet-DMuibl8n.cjs +34 -0
  52. package/dist/{vue-ui-candlestick-DhdlFIQE.js → vue-ui-candlestick-1jHdWerO.js} +11 -11
  53. package/dist/vue-ui-candlestick-CMsFiP9C.cjs +2 -0
  54. package/dist/{vue-ui-carousel-table-Ej7qzKkp.js → vue-ui-carousel-table-BCVjpGff.js} +4 -4
  55. package/dist/{vue-ui-carousel-table-BhC5cEe3.cjs → vue-ui-carousel-table-CtGRQBIN.cjs} +1 -1
  56. package/dist/{vue-ui-chestnut-BzNHXzDj.cjs → vue-ui-chestnut-CEQFlk-j.cjs} +1 -1
  57. package/dist/{vue-ui-chestnut-L0bS5jtX.js → vue-ui-chestnut-YX5q5qpY.js} +32 -32
  58. package/dist/{vue-ui-circle-pack-DwCzeO3L.js → vue-ui-circle-pack-DFhj3arJ.js} +44 -44
  59. package/dist/vue-ui-circle-pack-cXdePcYh.cjs +1 -0
  60. package/dist/{vue-ui-cursor-0mZP5nBc.cjs → vue-ui-cursor-DGtZLxpF.cjs} +1 -1
  61. package/dist/{vue-ui-cursor-DwHdXwLS.js → vue-ui-cursor-DwDTg8Za.js} +2 -2
  62. package/dist/{vue-ui-dashboard-DILmOchy.js → vue-ui-dashboard-DQ4-1OKY.js} +3 -3
  63. package/dist/{vue-ui-dashboard-CegApY8_.cjs → vue-ui-dashboard-etx_lWpJ.cjs} +1 -1
  64. package/dist/{vue-ui-digits-Dbwzk-sl.js → vue-ui-digits-Crcwygqg.js} +2 -2
  65. package/dist/{vue-ui-digits-me8Nky0A.cjs → vue-ui-digits-lRbvyU_i.cjs} +1 -1
  66. package/dist/{vue-ui-donut-DwE-iZSV.js → vue-ui-donut-C2h_qoIM.js} +12 -12
  67. package/dist/vue-ui-donut-DQeJn_KK.cjs +1 -0
  68. package/dist/vue-ui-donut-evolution-Dbg5HueS.cjs +1 -0
  69. package/dist/{vue-ui-donut-evolution-DhFABvEv.js → vue-ui-donut-evolution-DbzqkGBx.js} +69 -69
  70. package/dist/{vue-ui-dumbbell-Cqq4iV6-.js → vue-ui-dumbbell-BVuQjSso.js} +52 -52
  71. package/dist/{vue-ui-dumbbell-CL15d-aQ.cjs → vue-ui-dumbbell-BaYSfxY1.cjs} +1 -1
  72. package/dist/{vue-ui-flow-CU-orj9I.js → vue-ui-flow-2FOH_Mxn.js} +75 -75
  73. package/dist/vue-ui-flow-B8NKKaa2.cjs +1 -0
  74. package/dist/{vue-ui-funnel-DQmQmdNV.js → vue-ui-funnel-CYt4xsc4.js} +28 -28
  75. package/dist/vue-ui-funnel-Cgm1VcJC.cjs +1 -0
  76. package/dist/{vue-ui-galaxy-nqyCbQ9j.js → vue-ui-galaxy-CmmTED3N.js} +39 -39
  77. package/dist/vue-ui-galaxy-D8oPaBdc.cjs +1 -0
  78. package/dist/vue-ui-gauge-Ushp2qER.cjs +1 -0
  79. package/dist/{vue-ui-gauge-BV3CJfqe.js → vue-ui-gauge-vlhW2o0y.js} +26 -26
  80. package/dist/{vue-ui-gizmo-CNRAH2zT.cjs → vue-ui-gizmo-B16t4cjE.cjs} +1 -1
  81. package/dist/{vue-ui-gizmo-CJwSAsxs.js → vue-ui-gizmo-DtWADzHM.js} +3 -3
  82. package/dist/{vue-ui-heatmap-B1s7KejC.js → vue-ui-heatmap-BcNWrSYu.js} +10 -10
  83. package/dist/vue-ui-heatmap-PVrUXZ6f.cjs +1 -0
  84. package/dist/vue-ui-history-plot-D9hGmpzL.cjs +1 -0
  85. package/dist/{vue-ui-history-plot-z_KFt5z_.js → vue-ui-history-plot-aqwCckl3.js} +35 -35
  86. package/dist/{vue-ui-kpi-DabR5K70.js → vue-ui-kpi-fIEea6oo.js} +3 -3
  87. package/dist/{vue-ui-kpi-FaGp6_XP.cjs → vue-ui-kpi-zRnAot1s.cjs} +1 -1
  88. package/dist/{vue-ui-mini-loader-_plxZxma.cjs → vue-ui-mini-loader-0TKahM6o.cjs} +1 -1
  89. package/dist/{vue-ui-mini-loader-w-BmywLJ.js → vue-ui-mini-loader-CnequKa7.js} +2 -2
  90. package/dist/{vue-ui-molecule-3ClCLk7L.cjs → vue-ui-molecule-C7qRnQk-.cjs} +1 -1
  91. package/dist/{vue-ui-molecule-aiWG--to.js → vue-ui-molecule-bHqvHzsr.js} +45 -45
  92. package/dist/vue-ui-mood-radar-BGHGOC3W.cjs +1 -0
  93. package/dist/{vue-ui-mood-radar-DwxCn06q.js → vue-ui-mood-radar-BLLnwnLw.js} +40 -40
  94. package/dist/{vue-ui-nested-donuts-ONgAaLY-.js → vue-ui-nested-donuts-C5mqI9Vf.js} +65 -65
  95. package/dist/vue-ui-nested-donuts-r9LWv_9T.cjs +17 -0
  96. package/dist/vue-ui-onion-CKJJIQO8.cjs +5 -0
  97. package/dist/{vue-ui-onion-DjoQuBo8.js → vue-ui-onion-DGU0vHXZ.js} +75 -75
  98. package/dist/{vue-ui-parallel-coordinate-plot-DWGVzaHE.js → vue-ui-parallel-coordinate-plot-B4tVo343.js} +38 -38
  99. package/dist/vue-ui-parallel-coordinate-plot-CTF--y5O.cjs +8 -0
  100. package/dist/{vue-ui-quadrant-CgiD9c7i.js → vue-ui-quadrant-CDZspHBg.js} +54 -54
  101. package/dist/vue-ui-quadrant-De8bmwz_.cjs +1 -0
  102. package/dist/vue-ui-quick-chart-Bi7Vdl9I.cjs +15 -0
  103. package/dist/{vue-ui-quick-chart-5NiRxtpD.js → vue-ui-quick-chart-baWAo-Ln.js} +9 -9
  104. package/dist/{vue-ui-radar-CfKAy0nI.js → vue-ui-radar-CG8tGSHg.js} +55 -55
  105. package/dist/vue-ui-radar-DAxiwdD4.cjs +1 -0
  106. package/dist/{vue-ui-rating-yiM_5H0W.cjs → vue-ui-rating-Bm6BESO1.cjs} +1 -1
  107. package/dist/{vue-ui-rating-CbZvsZNv.js → vue-ui-rating-CcMWLaSP.js} +2 -2
  108. package/dist/{vue-ui-relation-circle-RRK2jhHr.js → vue-ui-relation-circle-D4vD3HD_.js} +7 -7
  109. package/dist/vue-ui-relation-circle-rM2pEsYK.cjs +1 -0
  110. package/dist/vue-ui-rings-Mt51bBc5.cjs +2 -0
  111. package/dist/{vue-ui-rings-CiMKMEpp.js → vue-ui-rings-R91Q3vZF.js} +62 -62
  112. package/dist/{vue-ui-scatter-9PFXuvoo.js → vue-ui-scatter-BKY7zeC_.js} +44 -44
  113. package/dist/vue-ui-scatter-COs46vAF.cjs +1 -0
  114. package/dist/{vue-ui-skeleton-KW-jcPRN.cjs → vue-ui-skeleton-BBWwBSGZ.cjs} +1 -1
  115. package/dist/{vue-ui-skeleton-7Zfds6H1.js → vue-ui-skeleton-CTZKsfWs.js} +3 -3
  116. package/dist/{vue-ui-smiley-D0jhMBUh.js → vue-ui-smiley-3XabGcpa.js} +2 -2
  117. package/dist/{vue-ui-smiley-BNQlshyY.cjs → vue-ui-smiley-CZ2XNWEt.cjs} +1 -1
  118. package/dist/{vue-ui-spark-trend-CLm12POW.cjs → vue-ui-spark-trend-CZnUiwhV.cjs} +1 -1
  119. package/dist/{vue-ui-spark-trend-D8nDY0fS.js → vue-ui-spark-trend-Dd_5kNG9.js} +5 -5
  120. package/dist/{vue-ui-sparkbar-ChEbpWYC.cjs → vue-ui-sparkbar-CZJ8RFMM.cjs} +1 -1
  121. package/dist/{vue-ui-sparkbar-wKlwMCph.js → vue-ui-sparkbar-DT_G3f_6.js} +4 -4
  122. package/dist/{vue-ui-sparkgauge-CvhIe_mP.js → vue-ui-sparkgauge-CoGcwj8-.js} +4 -4
  123. package/dist/{vue-ui-sparkgauge-DG824sGI.cjs → vue-ui-sparkgauge-Cra2_GdA.cjs} +1 -1
  124. package/dist/{vue-ui-sparkhistogram-B8k8a538.cjs → vue-ui-sparkhistogram-ClJhce64.cjs} +1 -1
  125. package/dist/{vue-ui-sparkhistogram-CVmbTFTc.js → vue-ui-sparkhistogram-ZI-zkp6j.js} +5 -5
  126. package/dist/{vue-ui-sparkline-CtqAbSzZ.js → vue-ui-sparkline-C4HvM0A7.js} +4 -4
  127. package/dist/{vue-ui-sparkline-7wnWuXDQ.cjs → vue-ui-sparkline-Cehnojts.cjs} +1 -1
  128. package/dist/{vue-ui-sparkstackbar-57SONMGP.cjs → vue-ui-sparkstackbar-B6su4lbU.cjs} +1 -1
  129. package/dist/{vue-ui-sparkstackbar-DfwEeUC5.js → vue-ui-sparkstackbar-DbXifSgX.js} +5 -5
  130. package/dist/vue-ui-stackbar-Dxjx916g.cjs +6 -0
  131. package/dist/{vue-ui-stackbar-CGSVPiPx.js → vue-ui-stackbar-bBQdWmxo.js} +86 -86
  132. package/dist/{vue-ui-strip-plot-fJFkn8_0.js → vue-ui-strip-plot-BaAUPB0O.js} +36 -36
  133. package/dist/vue-ui-strip-plot-D3Mc4jJS.cjs +1 -0
  134. package/dist/{vue-ui-table-Das3959J.cjs → vue-ui-table-CO12Arh5.cjs} +1 -1
  135. package/dist/{vue-ui-table-CliL2Wsp.js → vue-ui-table-DyjampQ2.js} +1 -1
  136. package/dist/{vue-ui-table-heatmap-C28ozf2S.cjs → vue-ui-table-heatmap-BrXBITN7.cjs} +1 -1
  137. package/dist/{vue-ui-table-heatmap-ZsJMMGpG.js → vue-ui-table-heatmap-DC3LbLR1.js} +4 -4
  138. package/dist/{vue-ui-table-sparkline-0i9FAXug.cjs → vue-ui-table-sparkline-C-L8YXVO.cjs} +1 -1
  139. package/dist/{vue-ui-table-sparkline-CrQNShdH.js → vue-ui-table-sparkline-MCUi0UPR.js} +5 -5
  140. package/dist/{vue-ui-thermometer-BaGL6WSb.js → vue-ui-thermometer-0Jw0Kc3K.js} +50 -50
  141. package/dist/vue-ui-thermometer-BbAmbpxI.cjs +1 -0
  142. package/dist/{vue-ui-timer-CFtgJ_Vi.cjs → vue-ui-timer-CgcO44Ga.cjs} +1 -1
  143. package/dist/{vue-ui-timer-Nk94fV-n.js → vue-ui-timer-D43Y73z-.js} +5 -5
  144. package/dist/vue-ui-tiremarks-B7GobiRR.cjs +1 -0
  145. package/dist/{vue-ui-tiremarks-zYgdq_99.js → vue-ui-tiremarks-C2z7LZOy.js} +25 -25
  146. package/dist/vue-ui-treemap-YuZUqTkv.cjs +1 -0
  147. package/dist/{vue-ui-treemap-CAxPcxn-.js → vue-ui-treemap-t2jSZWbw.js} +12 -12
  148. package/dist/{vue-ui-vertical-bar-Di3FBkwJ.js → vue-ui-vertical-bar-CXbzdSDN.js} +80 -80
  149. package/dist/vue-ui-vertical-bar-RH9oo9ao.cjs +4 -0
  150. package/dist/vue-ui-waffle-C6PA3aJK.cjs +1 -0
  151. package/dist/{vue-ui-waffle-DBJAQsEf.js → vue-ui-waffle-Z9KsaCxx.js} +45 -45
  152. package/dist/{vue-ui-wheel-BTZEr2Vs.js → vue-ui-wheel-BbBHPjUa.js} +27 -27
  153. package/dist/vue-ui-wheel-BmWfP7V3.cjs +1 -0
  154. package/dist/{vue-ui-word-cloud-DBCVUkLM.js → vue-ui-word-cloud-CUi3fEZc.js} +72 -72
  155. package/dist/{vue-ui-word-cloud-BEaRWIu-.cjs → vue-ui-word-cloud-DysEgxAX.cjs} +1 -1
  156. package/dist/{vue-ui-xy-DbN93Pcf.cjs → vue-ui-xy-B7Q6HDzu.cjs} +2 -2
  157. package/dist/{vue-ui-xy-aKaGgYGL.js → vue-ui-xy-BWN8izeD.js} +16 -16
  158. package/dist/vue-ui-xy-canvas-DZB78JsG.cjs +9 -0
  159. package/dist/vue-ui-xy-canvas-DfhloBZx.js +1672 -0
  160. package/package.json +1 -1
  161. package/dist/PenAndPaper-CmcfpltX.js +0 -243
  162. package/dist/PenAndPaper-DNbX5hR8.cjs +0 -1
  163. package/dist/vue-ui-3d-bar-CmbTiJVx.cjs +0 -19
  164. package/dist/vue-ui-age-pyramid-Sv-HbbDJ.cjs +0 -1
  165. package/dist/vue-ui-bullet-vcmTY4AX.cjs +0 -34
  166. package/dist/vue-ui-candlestick-DQT-8PRz.cjs +0 -2
  167. package/dist/vue-ui-circle-pack-CVLJs0XP.cjs +0 -1
  168. package/dist/vue-ui-donut-FoRYusUX.cjs +0 -1
  169. package/dist/vue-ui-donut-evolution-BIK2yfIJ.cjs +0 -1
  170. package/dist/vue-ui-flow-N825fjRf.cjs +0 -1
  171. package/dist/vue-ui-funnel-B6XMYl89.cjs +0 -1
  172. package/dist/vue-ui-galaxy-p-sbDnSY.cjs +0 -1
  173. package/dist/vue-ui-gauge-DsZFk8T_.cjs +0 -1
  174. package/dist/vue-ui-heatmap-VXgeMOwT.cjs +0 -1
  175. package/dist/vue-ui-history-plot-JmeGiR--.cjs +0 -1
  176. package/dist/vue-ui-mood-radar-CO5sPVVG.cjs +0 -1
  177. package/dist/vue-ui-nested-donuts-D0nALasd.cjs +0 -17
  178. package/dist/vue-ui-onion-CBqx4q4k.cjs +0 -5
  179. package/dist/vue-ui-parallel-coordinate-plot-uNCmnSvz.cjs +0 -8
  180. package/dist/vue-ui-quadrant-BOkyMgCm.cjs +0 -1
  181. package/dist/vue-ui-quick-chart-BRp_bNso.cjs +0 -15
  182. package/dist/vue-ui-radar-BpicgiWF.cjs +0 -1
  183. package/dist/vue-ui-relation-circle-Dg6rdyGP.cjs +0 -1
  184. package/dist/vue-ui-rings-A49lyv-J.cjs +0 -2
  185. package/dist/vue-ui-scatter-C_jHsy8M.cjs +0 -1
  186. package/dist/vue-ui-stackbar--0FZ_eBi.cjs +0 -6
  187. package/dist/vue-ui-strip-plot-C_ggDAQ-.cjs +0 -1
  188. package/dist/vue-ui-thermometer-h0rymM2v.cjs +0 -1
  189. package/dist/vue-ui-tiremarks-Cj8-XGcp.cjs +0 -1
  190. package/dist/vue-ui-treemap-CybL6mVf.cjs +0 -1
  191. package/dist/vue-ui-vertical-bar-D4IkwvAB.cjs +0 -4
  192. package/dist/vue-ui-waffle-7otLUrER.cjs +0 -1
  193. package/dist/vue-ui-wheel-BUJXtmeP.cjs +0 -1
  194. package/dist/vue-ui-xy-canvas-CF_lqLg-.cjs +0 -9
  195. package/dist/vue-ui-xy-canvas-CVQ__d4u.js +0 -1500
@@ -0,0 +1,1672 @@
1
+ import { ref as c, computed as R, onMounted as ot, nextTick as Oe, onBeforeUnmount as $t, watch as Q, createElementBlock as M, openBlock as w, Fragment as je, createCommentVNode as Z, normalizeClass as ve, createElementVNode as W, withDirectives as gt, normalizeStyle as X, createVNode as me, toDisplayString as Ke, unref as D, vModelText as pt, withModifiers as mt, renderList as bt, useSlots as Gt, createBlock as ie, createSlots as Zt, withCtx as A, renderSlot as P, normalizeProps as ye, guardReactiveProps as ge, createTextVNode as qt } from "vue";
2
+ import { l as St, f as be, X as jt, u as _t, c as Kt, t as Qt, p as pe, a as Jt, C as _e, b as el, D as lt, i as Le, d as xt, $ as tl, J as ll, ai as al, o as ol, e as nl, x as kt, q as rl, r as ul, y as sl, s as Re } from "./index-B_dU_4T8.js";
3
+ import { d as il, t as vl, u as cl, c as dl, a as Lt, l as F, r as at, b as ne, p as wt } from "./useResponsive-Cw4oZ8sQ.js";
4
+ import { _ as hl } from "./Tooltip-BWe5TPIJ.js";
5
+ import { L as fl } from "./Legend-B4eIw732.js";
6
+ import { _ as yl } from "./Title-ND4kMErl.js";
7
+ import { S as gl } from "./Slicer-BtX8p8CI.js";
8
+ import { u as pl, U as ml } from "./usePrinter-CLObTJ4a.js";
9
+ import bl from "./vue-ui-accordion-C5dj9Voo.js";
10
+ import { D as xl } from "./DataTable-BFNGlApm.js";
11
+ import kl from "./vue-ui-skeleton-CTZKsfWs.js";
12
+ import { u as Ct } from "./useNestedProp-7s4Pw7x0.js";
13
+ import { u as Ll } from "./useUserOptionState-BIvW1Kz7.js";
14
+ import { u as wl } from "./useChartAccessibility-BWojgys7.js";
15
+ import De from "./BaseIcon-CdxldTMn.js";
16
+ import { C as Cl } from "./ColorPicker-DF9jbKW-.js";
17
+ import { _ as zt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
18
+ const $l = {
19
+ class: /* @__PURE__ */ ve({
20
+ "vue-ui-pen-and-paper-action": !0
21
+ }),
22
+ style: { padding: "0 !important" }
23
+ }, Sl = ["disabled"], zl = ["data-mode", "xmlns", "viewBox"], Ml = ["cx", "cy", "r", "fill"], Tl = ["d", "stroke", "stroke-width"], Il = ["x", "y", "fill", "font-size"], Al = ["x", "dy"], El = ["d", "stroke", "stroke-width"], Pl = {
24
+ __name: "NonSvgPenAndPaper",
25
+ props: {
26
+ parent: {
27
+ type: HTMLElement
28
+ },
29
+ backgroundColor: {
30
+ type: String,
31
+ default: "#FFFFFF"
32
+ },
33
+ color: {
34
+ type: String,
35
+ default: "#2D353C"
36
+ },
37
+ active: {
38
+ type: Boolean,
39
+ default: !1
40
+ }
41
+ },
42
+ emits: ["close"],
43
+ setup(S, { emit: Qe }) {
44
+ const J = S, Je = Qe, k = c([]), q = c([]), re = c("0 0 0 0"), H = c(J.color), f = c(1), p = c("draw"), L = c(null), ee = c(!1), d = c(null), j = c({ x: 0, y: 0 }), _ = c([""]), T = c({ row: 0, col: 0 }), N = c(16);
45
+ let te = 1;
46
+ function le() {
47
+ return te++;
48
+ }
49
+ function we(s) {
50
+ var l;
51
+ const n = U.value;
52
+ if (!n) return { x: 0, y: 0 };
53
+ const a = n.createSVGPoint();
54
+ let r = s.clientX, v = s.clientY;
55
+ s.touches && s.touches.length && (r = s.touches[0].clientX, v = s.touches[0].clientY), a.x = r, a.y = v;
56
+ const h = (l = n.getScreenCTM()) == null ? void 0 : l.inverse();
57
+ return h ? a.matrixTransform(h) : { x: 0, y: 0 };
58
+ }
59
+ function Ce(s) {
60
+ if (!L.value || p.value !== "text" || ee.value) return;
61
+ const { x: n, y: a } = we(s);
62
+ j.value = { x: n, y: a }, _.value = [""], T.value = { row: 0, col: 0 };
63
+ const r = document.createElementNS("http://www.w3.org/2000/svg", "text");
64
+ r.setAttribute("x", n), r.setAttribute("y", a), r.setAttribute("fill", H.value), r.setAttribute("font-size", N.value), r.setAttribute("font-family", "sans-serif"), r.setAttribute("class", "vue-data-ui-doodle"), r.setAttribute("dominant-baseline", "hanging"), r.setAttribute("pointer-events", "all");
65
+ const v = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
66
+ v.setAttribute("x", n), v.setAttribute("dy", "0"), v.textContent = "", r.appendChild(v), L.value.appendChild(r), d.value = r, ee.value = !0, window.addEventListener("keydown", $e), window.addEventListener("mousedown", ze, !0), ce(), Se();
67
+ }
68
+ function $e(s) {
69
+ if (!ee.value) return;
70
+ let { row: n, col: a } = T.value, r = _.value.slice(), v = !1;
71
+ if (s.key === "Enter") {
72
+ const h = r[n], l = h.slice(0, a), z = h.slice(a);
73
+ r.splice(n, 1, l, z), n += 1, a = 0, v = !0, s.preventDefault();
74
+ } else if (s.key === "Backspace") {
75
+ if (a > 0)
76
+ r[n] = r[n].slice(0, a - 1) + r[n].slice(a), a -= 1, v = !0;
77
+ else if (n > 0) {
78
+ const h = r[n - 1].length;
79
+ r[n - 1] += r[n], r.splice(n, 1), n -= 1, a = h, v = !0;
80
+ }
81
+ s.preventDefault();
82
+ } else if (s.key === "Delete")
83
+ a < r[n].length ? (r[n] = r[n].slice(0, a) + r[n].slice(a + 1), v = !0) : n < r.length - 1 && (r[n] += r[n + 1], r.splice(n + 1, 1), v = !0), s.preventDefault();
84
+ else if (s.key === "ArrowLeft")
85
+ a > 0 ? a -= 1 : n > 0 && (n -= 1, a = r[n].length), v = !0, s.preventDefault();
86
+ else if (s.key === "ArrowRight")
87
+ a < r[n].length ? a += 1 : n < r.length - 1 && (n += 1, a = 0), v = !0, s.preventDefault();
88
+ else if (s.key === "ArrowUp")
89
+ n > 0 && (n -= 1, a = Math.min(a, r[n].length), v = !0), s.preventDefault();
90
+ else if (s.key === "ArrowDown")
91
+ n < r.length - 1 && (n += 1, a = Math.min(a, r[n].length), v = !0), s.preventDefault();
92
+ else if (s.key.length === 1 && !s.ctrlKey && !s.metaKey && !s.altKey)
93
+ r[n] = r[n].slice(0, a) + s.key + r[n].slice(a), a += 1, v = !0, s.preventDefault();
94
+ else if (s.key === "Escape") {
95
+ Me(!0);
96
+ return;
97
+ } else s.key === "Tab" && s.preventDefault();
98
+ v && (_.value = r, T.value = { row: n, col: a }, ce(), Se());
99
+ }
100
+ function ce() {
101
+ const s = d.value, { x: n, y: a } = j.value;
102
+ for (; s.firstChild; ) s.removeChild(s.firstChild);
103
+ _.value.forEach((r, v) => {
104
+ const h = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
105
+ h.setAttribute("x", n), h.setAttribute("dy", v === 0 ? "0" : `${N.value * 1.2}`), h.textContent = r.length ? r : "​", s.appendChild(h);
106
+ });
107
+ }
108
+ function Se() {
109
+ const s = L.value.querySelector(".vue-data-ui-svg-caret");
110
+ s && L.value.removeChild(s);
111
+ const n = d.value;
112
+ if (!n) return;
113
+ const { x: a, y: r } = j.value, { row: v, col: h } = T.value, l = N.value, z = n.childNodes[v];
114
+ if (!z) return;
115
+ let I = z.textContent.slice(0, h);
116
+ I.endsWith(" ") && (I += " ");
117
+ const y = document.createElementNS("http://www.w3.org/2000/svg", "text");
118
+ y.setAttribute("x", a), y.setAttribute("y", r), y.setAttribute("font-size", l), y.setAttribute("font-family", "sans-serif"), y.textContent = I || "", L.value.appendChild(y);
119
+ const E = y.getBBox();
120
+ L.value.removeChild(y);
121
+ let $ = r + v * l * 1.2, g = a + E.width;
122
+ const i = document.createElementNS("http://www.w3.org/2000/svg", "rect");
123
+ i.setAttribute("x", g), i.setAttribute("y", $), i.setAttribute("width", 1), i.setAttribute("height", l), i.setAttribute("fill", H.value), i.setAttribute("class", "vue-data-ui-svg-caret"), L.value.appendChild(i);
124
+ }
125
+ function ze(s) {
126
+ if (d.value && !d.value.contains(s.target)) {
127
+ const n = d.value.children;
128
+ n.length === 1 && (n[0].textContent === "" || n[0].textContent === "​") && d.value.remove(), Me(!1);
129
+ }
130
+ }
131
+ function Me(s = !1) {
132
+ var r;
133
+ window.removeEventListener("keydown", $e), window.removeEventListener("mousedown", ze, !0);
134
+ const n = (r = L.value) == null ? void 0 : r.querySelector(".vue-data-ui-svg-caret");
135
+ n && L.value.removeChild(n);
136
+ const a = _.value.every(
137
+ (v) => !v || v === "​"
138
+ );
139
+ s || a || k.value.push({
140
+ id: le(),
141
+ type: "text",
142
+ x: j.value.x,
143
+ y: j.value.y,
144
+ color: H.value,
145
+ fontSize: N.value,
146
+ lines: _.value.map((v) => v)
147
+ }), d.value && L.value && L.value.contains(d.value) && L.value.removeChild(d.value), ee.value = !1, d.value = null, _.value = [""], T.value = { row: 0, col: 0 };
148
+ }
149
+ const K = R(() => St(J.color, 0.6));
150
+ function de({ width: s, height: n }) {
151
+ re.value = `0 0 ${s} ${n}`;
152
+ }
153
+ const ue = c(null);
154
+ ot(() => {
155
+ Oe(() => {
156
+ if (J.parent) {
157
+ ue.value = new ResizeObserver((a) => {
158
+ for (const r of a) {
159
+ const { width: v, height: h } = r.contentRect;
160
+ de({ width: v, height: h });
161
+ }
162
+ }), ue.value.observe(J.parent);
163
+ const { width: s, height: n } = J.parent.getBoundingClientRect();
164
+ de({ width: s, height: n });
165
+ }
166
+ }), L.value = U.value.querySelector("g");
167
+ }), $t(() => {
168
+ ue.value && ue.value.disconnect();
169
+ }), Q(
170
+ () => J.parent,
171
+ (s) => {
172
+ if (!s) return;
173
+ const { width: n, height: a } = J.parent.getBoundingClientRect();
174
+ de({ width: n, height: a });
175
+ },
176
+ { immediate: !0 }
177
+ ), Q(p, (s) => {
178
+ var n, a;
179
+ s === "text" ? (n = U.value) == null || n.addEventListener("mousedown", Ce) : (a = U.value) == null || a.removeEventListener("mousedown", Ce);
180
+ });
181
+ const ae = c(!1), O = c(""), U = c(null);
182
+ function Ne(s) {
183
+ if (p.value !== "draw" || !U.value) return;
184
+ ae.value = !0;
185
+ const { x: n, y: a } = V(s);
186
+ O.value = `M ${n} ${a}`;
187
+ }
188
+ function Be(s) {
189
+ if (!ae.value || !U.value) return;
190
+ const { x: n, y: a } = V(s);
191
+ O.value += ` ${n} ${a}`;
192
+ }
193
+ function t(s) {
194
+ const n = s.trim().split(/\s+/);
195
+ if (n.length < 4)
196
+ return s;
197
+ const a = n.slice(1).map(Number);
198
+ if (a.length % 2 !== 0)
199
+ return s;
200
+ const r = Te(a), v = [`M ${r[0]} ${r[1]}`];
201
+ for (let z = 2; z < r.length - 2; z += 2) {
202
+ const I = r[z - 2], y = r[z - 1], E = r[z], $ = r[z + 1], g = (I + E) / 2, i = (y + $) / 2;
203
+ v.push(`Q ${I} ${y} ${g} ${i}`);
204
+ }
205
+ const h = r[r.length - 2], l = r[r.length - 1];
206
+ return v.push(`L ${h} ${l}`), v.join(" ");
207
+ }
208
+ function Te(s, n = 1) {
209
+ const a = [...s];
210
+ for (let r = 2; r < s.length - 2; r += 2) {
211
+ const v = s[r], h = s[r + 1], l = s[r - 2], z = s[r - 1], I = s[r + 2], y = s[r + 3];
212
+ a[r] = v + n * ((l + I) / 2 - v), a[r + 1] = h + n * ((z + y) / 2 - h);
213
+ }
214
+ return a;
215
+ }
216
+ function Ye(s) {
217
+ const n = s.trim().split(/\s+/);
218
+ let a = "", r = "", v = null, h = null;
219
+ for (let l = 0; l < n.length; l += 1) {
220
+ const z = n[l];
221
+ if (isNaN(z)) {
222
+ if (r = z, r === "M" || r === "L")
223
+ v = parseFloat(n[++l]), h = parseFloat(n[++l]), a += `${r}${v} ${h}`;
224
+ else if (r === "Q") {
225
+ const I = parseFloat(n[++l]), y = parseFloat(n[++l]), E = parseFloat(n[++l]), $ = parseFloat(n[++l]);
226
+ I === v && y === h ? a += `t${E - v} ${$ - h}` : a += `q${I - v} ${y - h} ${E - v} ${$ - h}`, v = E, h = $;
227
+ }
228
+ } else {
229
+ const I = parseFloat(z), y = parseFloat(n[++l]);
230
+ if (r === "L") {
231
+ const E = I - v, $ = y - h;
232
+ E === 0 ? a += `v${$}` : $ === 0 ? a += `h${E}` : a += `l${E} ${$}`, v = I, h = y;
233
+ } else if (r === "Q") {
234
+ const E = I, $ = y, g = parseFloat(n[++l]), i = parseFloat(n[++l]);
235
+ E === v && $ === h ? a += `t${g - v} ${i - h}` : a += `q${E - v} ${$ - h} ${g - v} ${i - h}`, v = g, h = i;
236
+ }
237
+ }
238
+ }
239
+ return a;
240
+ }
241
+ function xe() {
242
+ ae.value && (k.value.push({
243
+ id: le(),
244
+ strokeWidth: f.value,
245
+ path: Ye(t(O.value)),
246
+ color: H.value
247
+ }), q.value = [], O.value = ""), ae.value = !1;
248
+ }
249
+ function V(s) {
250
+ if (!U.value) return { x: 0, y: 0 };
251
+ const n = U.value.getBoundingClientRect();
252
+ let a, r;
253
+ return s.touches && s.touches.length ? (a = s.touches[0].clientX, r = s.touches[0].clientY) : (a = s.clientX, r = s.clientY), {
254
+ x: a - n.left,
255
+ y: r - n.top
256
+ };
257
+ }
258
+ function Xe() {
259
+ if (k.value.length > 0) {
260
+ const s = k.value.pop();
261
+ q.value.push(s);
262
+ }
263
+ }
264
+ function He() {
265
+ if (q.value.length > 0) {
266
+ const s = q.value.pop();
267
+ k.value.push(s);
268
+ }
269
+ }
270
+ function Ue() {
271
+ k.value = [], q.value = [];
272
+ }
273
+ const Ie = c(null);
274
+ return (s, n) => (w(), M(je, null, [
275
+ S.active ? (w(), M("div", {
276
+ key: 0,
277
+ "data-dom-to-png-ignore": "",
278
+ class: ve({
279
+ "vue-ui-pen-and-paper-actions": !0,
280
+ visible: S.active
281
+ })
282
+ }, [
283
+ W("button", {
284
+ class: "vue-ui-pen-and-paper-action",
285
+ style: X({
286
+ backgroundColor: S.backgroundColor,
287
+ border: `1px solid ${K.value}`
288
+ }),
289
+ onClick: n[0] || (n[0] = (a) => Je("close"))
290
+ }, [
291
+ me(De, {
292
+ name: "close",
293
+ stroke: S.color
294
+ }, null, 8, ["stroke"])
295
+ ], 4),
296
+ W("button", $l, [
297
+ me(Cl, {
298
+ value: H.value,
299
+ "onUpdate:value": n[1] || (n[1] = (a) => H.value = a),
300
+ backgroundColor: S.backgroundColor,
301
+ buttonBorderColor: K.value
302
+ }, null, 8, ["value", "backgroundColor", "buttonBorderColor"])
303
+ ]),
304
+ W("button", {
305
+ class: ve(["vue-ui-pen-and-paper-action", { "vue-ui-pen-and-paper-action-active": p.value === "text" }]),
306
+ onClick: n[2] || (n[2] = (a) => p.value = p.value === "text" ? "draw" : "text"),
307
+ style: X({
308
+ backgroundColor: S.backgroundColor,
309
+ border: `1px solid ${K.value}`
310
+ })
311
+ }, [
312
+ me(De, {
313
+ name: p.value === "draw" ? "annotator" : "text",
314
+ stroke: S.color
315
+ }, null, 8, ["name", "stroke"]),
316
+ W("div", {
317
+ style: X({
318
+ position: "absolute",
319
+ bottom: "-20px",
320
+ color: K.value,
321
+ width: "100%",
322
+ textAlign: "center",
323
+ fontSize: "12px"
324
+ })
325
+ }, Ke(D(be)({
326
+ v: p.value === "draw" ? f.value : N.value,
327
+ s: "px",
328
+ r: 1
329
+ })), 5)
330
+ ], 6),
331
+ W("button", {
332
+ class: ve({
333
+ "vue-ui-pen-and-paper-action": !0,
334
+ "vue-ui-pen-and-paper-action-disabled": !k.value.length
335
+ }),
336
+ disabled: !k.value.length,
337
+ style: X({
338
+ backgroundColor: S.backgroundColor,
339
+ border: `1px solid ${K.value}`,
340
+ marginTop: "20px"
341
+ }),
342
+ onClick: Xe
343
+ }, [
344
+ me(De, {
345
+ name: "restart",
346
+ stroke: S.color
347
+ }, null, 8, ["stroke"])
348
+ ], 14, Sl),
349
+ W("button", {
350
+ class: ve({
351
+ "vue-ui-pen-and-paper-action": !0,
352
+ "vue-ui-pen-and-paper-action-disabled": !q.value.length
353
+ }),
354
+ style: X({
355
+ backgroundColor: S.backgroundColor,
356
+ border: `1px solid ${K.value}`
357
+ }),
358
+ onClick: He
359
+ }, [
360
+ me(De, {
361
+ name: "restart",
362
+ stroke: S.color,
363
+ style: { transform: "scaleX(-1)" }
364
+ }, null, 8, ["stroke"])
365
+ ], 6),
366
+ W("button", {
367
+ class: ve([{
368
+ "vue-ui-pen-and-paper-action": !0,
369
+ "vue-ui-pen-and-paper-action-disabled": !k.value.length
370
+ }, "vue-ui-pen-and-paper-action"]),
371
+ style: X({
372
+ backgroundColor: S.backgroundColor,
373
+ border: `1px solid ${K.value}`
374
+ }),
375
+ onClick: Ue
376
+ }, [
377
+ me(De, {
378
+ name: "trash",
379
+ stroke: S.color
380
+ }, null, 8, ["stroke"])
381
+ ], 6),
382
+ p.value === "draw" ? gt((w(), M("input", {
383
+ key: 0,
384
+ ref_key: "range",
385
+ ref: Ie,
386
+ type: "range",
387
+ class: "vertical-range",
388
+ min: 0.5,
389
+ max: 12,
390
+ step: 0.1,
391
+ "onUpdate:modelValue": n[3] || (n[3] = (a) => f.value = a),
392
+ style: X({ accentColor: S.color })
393
+ }, null, 4)), [
394
+ [pt, f.value]
395
+ ]) : Z("", !0),
396
+ p.value === "text" ? gt((w(), M("input", {
397
+ key: 1,
398
+ ref_key: "range",
399
+ ref: Ie,
400
+ type: "range",
401
+ class: "vertical-range",
402
+ min: 3,
403
+ max: 48,
404
+ step: 0.1,
405
+ "onUpdate:modelValue": n[4] || (n[4] = (a) => N.value = a),
406
+ style: X({ accentColor: S.color })
407
+ }, null, 4)), [
408
+ [pt, N.value]
409
+ ]) : Z("", !0)
410
+ ], 2)) : Z("", !0),
411
+ (w(), M("svg", {
412
+ "data-mode": p.value,
413
+ ref_key: "svgElement",
414
+ ref: U,
415
+ xmlns: D(jt),
416
+ viewBox: re.value,
417
+ class: ve({
418
+ "vue-ui-pen-and-paper": !0,
419
+ inactive: !S.active
420
+ }),
421
+ onMousedown: Ne,
422
+ onMousemove: Be,
423
+ onMouseup: xe,
424
+ onMouseleave: xe,
425
+ onTouchstart: mt(Ne, ["prevent"]),
426
+ onTouchmove: mt(Be, ["prevent"]),
427
+ onTouchend: xe
428
+ }, [
429
+ W("g", {
430
+ ref_key: "G",
431
+ ref: L
432
+ }, [
433
+ (w(!0), M(je, null, bt(k.value, (a) => (w(), M(je, {
434
+ key: a.id
435
+ }, [
436
+ a.path && a.path.replace("M", "").split(" ").length === 2 ? (w(), M("circle", {
437
+ key: 0,
438
+ cx: a.path.replace("M", "").split(" ")[0],
439
+ cy: a.path.replace("M", "").split(" ")[1],
440
+ r: a.strokeWidth / 2,
441
+ fill: a.color
442
+ }, null, 8, Ml)) : a.path ? (w(), M("path", {
443
+ key: 1,
444
+ class: "vue-ui-pen-and-paper-path",
445
+ d: a.path,
446
+ stroke: a.color,
447
+ "stroke-width": a.strokeWidth,
448
+ fill: "none"
449
+ }, null, 8, Tl)) : a.type === "text" ? (w(), M("text", {
450
+ key: 2,
451
+ x: a.x,
452
+ y: a.y,
453
+ fill: a.color,
454
+ "font-size": a.fontSize,
455
+ "font-family": "sans-serif",
456
+ "dominant-baseline": "hanging",
457
+ class: "vue-ui-pen-and-paper-text"
458
+ }, [
459
+ (w(!0), M(je, null, bt(a.lines, (r, v) => (w(), M("tspan", {
460
+ key: v,
461
+ x: a.x,
462
+ dy: v === 0 ? "0" : a.fontSize * 1.2
463
+ }, Ke(r.length ? r : "​"), 9, Al))), 128))
464
+ ], 8, Il)) : Z("", !0)
465
+ ], 64))), 128))
466
+ ], 512),
467
+ ae.value ? (w(), M("path", {
468
+ key: 0,
469
+ class: "vue-ui-pen-and-paper-path vue-ui-pen-and-paper-path-drawing",
470
+ d: t(O.value),
471
+ stroke: H.value,
472
+ "stroke-width": f.value * 1.1,
473
+ fill: "none"
474
+ }, null, 8, El)) : Z("", !0)
475
+ ], 42, zl))
476
+ ], 64));
477
+ }
478
+ }, Fl = /* @__PURE__ */ zt(Pl, [["__scopeId", "data-v-a143fcca"]]), Rl = ["id"], Dl = ["onClick"], Ol = {
479
+ key: 2,
480
+ class: "vue-data-ui-watermark"
481
+ }, Nl = ["innerHTML"], Bl = {
482
+ __name: "vue-ui-xy-canvas",
483
+ props: {
484
+ dataset: {
485
+ type: Array,
486
+ default() {
487
+ return [];
488
+ }
489
+ },
490
+ config: {
491
+ type: Object,
492
+ default() {
493
+ return {};
494
+ }
495
+ }
496
+ },
497
+ emits: ["selectLegend"],
498
+ setup(S, { expose: Qe, emit: J }) {
499
+ const { vue_ui_xy_canvas: Je } = _t(), k = S, q = c(Kt()), re = c(null), H = c(null), f = c(null), p = c(1), L = c(1), ee = c(!1), d = c(null), j = c(""), _ = c(null), T = c([]), N = c(1), te = c(!0), le = c(!0), we = c(null), Ce = c(0), $e = c(0), ce = c(!1), Se = c(null), ze = c(null), Me = c(null), K = c(null), de = c(0), ue = c(0), ae = c(0), O = c(null), U = R(() => !!k.dataset && k.dataset.length), Ne = J, Be = Gt();
500
+ ot(() => {
501
+ Be["chart-background"] && console.warn("VueUiXyCanvas does not support the #chart-background slot.");
502
+ });
503
+ const t = R({
504
+ get: () => Xe(),
505
+ set: (e) => e
506
+ }), { userOptionsVisible: Te, setUserOptionsVisibility: Ye, keepUserOptionState: xe } = Ll({ config: t.value }), { svgRef: V } = wl({ config: t.value.style.chart.title });
507
+ function Xe() {
508
+ const e = Ct({
509
+ userConfig: k.config,
510
+ defaultConfig: Je
511
+ });
512
+ let o = {};
513
+ return e.theme ? o = {
514
+ ...Ct({
515
+ userConfig: Jt.vue_ui_xy_canvas[e.theme] || k.config,
516
+ defaultConfig: e
517
+ }),
518
+ customPalette: Qt[e.theme] || pe
519
+ } : o = e, k.config && _e(k.config, "style.chart.scale.min") ? o.style.chart.scale.min = k.config.style.chart.scale.min : o.style.chart.scale.min = null, k.config && _e(k.config, "style.chart.scale.max") ? o.style.chart.scale.max = k.config.style.chart.scale.max : o.style.chart.scale.max = null, k.config && _e(k.config, "style.chart.zoom.startIndex") ? o.style.chart.zoom.startIndex = k.config.style.chart.zoom.startIndex : o.style.chart.zoom.startIndex = null, k.config && _e(k.config, "style.chart.zoom.endIndex") ? o.style.chart.zoom.endIndex = k.config.style.chart.zoom.endIndex : o.style.chart.zoom.endIndex = null, o;
520
+ }
521
+ Q(() => k.config, (e) => {
522
+ t.value = Xe(), Te.value = !t.value.userOptions.showOnChartHover, et(), de.value += 1, ue.value += 1, ae.value += 1, a.value.showTable = t.value.table.show, a.value.showDataLabels = t.value.style.chart.dataLabels.show, a.value.stacked = t.value.style.chart.stacked, a.value.showTooltip = t.value.style.chart.tooltip.show;
523
+ }, { deep: !0 }), Q(() => k.dataset, () => {
524
+ et(), de.value += 1, ue.value += 1, ae.value += 1;
525
+ }, { deep: !0 });
526
+ const He = c(t.value.style.chart.aspectRatio), { isPrinting: Ue, isImaging: Ie, generatePdf: s, generateImage: n } = pl({
527
+ elementId: `xy_canvas_${q.value}`,
528
+ fileName: t.value.style.chart.title.text || "vue-ui-xy-canvas",
529
+ options: t.value.userOptions.print
530
+ }), a = c({
531
+ showTable: t.value.table.show,
532
+ showDataLabels: t.value.style.chart.dataLabels.show,
533
+ stacked: t.value.style.chart.stacked,
534
+ showTooltip: t.value.style.chart.tooltip.show
535
+ });
536
+ function r(e) {
537
+ ce.value = e, $e.value += 1;
538
+ }
539
+ const v = R(() => el(t.value.customPalette)), h = R(() => $.value ? Math.max(...$.value.filter((e, o) => !T.value.includes(e.absoluteIndex)).map((e) => e.series.length)) : 0), l = R(() => {
540
+ const e = p.value - p.value * (t.value.style.chart.paddingProportions.left + t.value.style.chart.paddingProportions.right);
541
+ return {
542
+ canvasWidth: p.value,
543
+ canvasHeight: L.value,
544
+ left: p.value * t.value.style.chart.paddingProportions.left,
545
+ top: L.value * t.value.style.chart.paddingProportions.top,
546
+ right: p.value - p.value * t.value.style.chart.paddingProportions.right,
547
+ bottom: L.value - L.value * t.value.style.chart.paddingProportions.bottom,
548
+ width: e,
549
+ height: L.value - L.value * (t.value.style.chart.paddingProportions.top + t.value.style.chart.paddingProportions.bottom),
550
+ slot: e / (i.value.end - i.value.start)
551
+ };
552
+ });
553
+ function z(e, o) {
554
+ return e / o;
555
+ }
556
+ function I({ hasAutoScale: e, series: o, min: u, max: m, scale: x, yOffset: Y, individualHeight: b, stackIndex: C = null }) {
557
+ return o.map((he, G) => {
558
+ const se = x.min < 0 ? Math.abs(x.min) : 0, fe = z(he + se, se + x.max);
559
+ let Pe, Fe;
560
+ e && (Pe = x.min, Fe = z(he - Pe, x.max - Pe));
561
+ let oe = 0;
562
+ return C === null ? oe = l.value.bottom - l.value.height * (e ? Fe : fe) : oe = l.value.bottom - Y - b * (e ? Fe : fe), {
563
+ x: l.value.left + l.value.slot * G + l.value.slot / 2,
564
+ y: oe,
565
+ value: he
566
+ };
567
+ });
568
+ }
569
+ const y = R(() => {
570
+ const e = t.value.style.chart.scale.min !== null ? t.value.style.chart.scale.min : Math.min(...$.value.filter((b, C) => !T.value.includes(b.absoluteIndex)).flatMap((b) => b.series.slice(i.value.start, i.value.end))), o = t.value.style.chart.scale.max !== null ? t.value.style.chart.scale.max : Math.max(...$.value.filter((b, C) => !T.value.includes(b.absoluteIndex)).flatMap((b) => b.series.slice(i.value.start, i.value.end))), u = lt(e < 0 ? e : 0, o === e ? e + 1 < 0 ? 0 : e + 1 : o < 0 ? 0 : o, t.value.style.chart.scale.ticks), m = u.min < 0 ? Math.abs(u.min) : 0, x = l.value.bottom - l.value.height * (m / (u.max + m)), Y = u.ticks.map((b) => ({
571
+ y: l.value.bottom - l.value.height * ((b + m) / (u.max + m)),
572
+ x: l.value.left - 8,
573
+ value: b
574
+ }));
575
+ return {
576
+ absoluteMin: m,
577
+ max: o,
578
+ min: e,
579
+ scale: u,
580
+ yLabels: Y,
581
+ zero: x
582
+ };
583
+ }), E = R(() => g.value.map((e) => `
584
+ <div style="display:flex;flex-direction:row;gap:6px;align-items:center;">
585
+ <svg viewBox="0 0 10 10" height="12" width="12">
586
+ <circle cx="5" cy="5" r="5" fill="${e.color}"/>
587
+ </svg>
588
+ <span>${e.name ? e.name + ": " : ""}</span>
589
+ <span>${Le(
590
+ t.value.style.chart.dataLabels.formatter,
591
+ e.series[d.value],
592
+ be({
593
+ p: e.prefix || "",
594
+ v: e.series[d.value],
595
+ s: e.suffix || "",
596
+ r: e.rounding || 0
597
+ }),
598
+ { datapoint: e, seriesIndex: d.value }
599
+ )}</span>
600
+ </div>
601
+ `)), $ = R(() => k.dataset.map((e, o) => ({
602
+ ...e,
603
+ series: tl({
604
+ data: ll(e.series),
605
+ threshold: t.value.downsample.threshold
606
+ }),
607
+ absoluteIndex: o,
608
+ color: xt(e.color || v.value[o] || pe[o] || pe[o % pe.length])
609
+ })));
610
+ Q(h, (e) => {
611
+ e && nt();
612
+ });
613
+ const g = R(() => al($.value.filter((e, o) => !T.value.includes(e.absoluteIndex))).map((e, o) => ({
614
+ ...e,
615
+ series: e.series.slice(i.value.start, i.value.end)
616
+ })).map((e, o) => {
617
+ let u = [null, void 0].includes(e.scaleMin) ? Math.min(...e.series) || 0 : e.scaleMin, m = [null, void 0].includes(e.scaleMax) ? Math.max(...e.series) || 1 : e.scaleMax;
618
+ u === m && (u = u >= 0 ? m - 1 : u, m = m >= 0 ? m : u + 1), e.series.filter((oe) => ![null, void 0].includes(oe)).map((oe) => (oe - u) / (m - u));
619
+ const x = {
620
+ valueMin: u,
621
+ valueMax: m
622
+ }, Y = e.scaleSteps || t.value.style.chart.scale.ticks;
623
+ let b;
624
+ e.autoScaling ? b = lt(x.valueMin, x.valueMax, Y) : b = lt(x.valueMin < 0 ? x.valueMin : 0, x.valueMax <= 0 ? 0 : x.valueMax, Y);
625
+ const C = a.value.stacked ? l.value.height * (1 - e.cumulatedStackRatio) : 0, he = a.value.stacked ? l.value.height / t.value.style.chart.stackGap : 0, G = a.value.stacked ? l.value.height * e.stackRatio - he : l.value.height, se = b.min < 0 ? Math.abs(b.min) : 0;
626
+ let fe;
627
+ e.autoScaling && a.value.stacked && m <= 0 ? fe = l.value.bottom - C - G : fe = l.value.bottom - C - G * (se / (b.max + se));
628
+ const Pe = b.ticks.map((oe, Vt) => ({
629
+ y: l.value.bottom - C - G * (Vt / (b.ticks.length - 1)),
630
+ x: l.value.left - 8,
631
+ value: oe
632
+ })), Fe = I({
633
+ hasAutoScale: a.value.stacked && e.autoScaling,
634
+ series: e.series,
635
+ min: a.value.stacked ? u : y.value.min,
636
+ max: a.value.stacked ? m : y.value.max,
637
+ scale: a.value.stacked ? b : y.value.scale,
638
+ yOffset: C,
639
+ individualHeight: G,
640
+ stackIndex: a.value.stacked ? o : null
641
+ });
642
+ return {
643
+ ...e,
644
+ coordinatesLine: Fe,
645
+ min: u,
646
+ max: m,
647
+ localScale: b,
648
+ localZero: fe,
649
+ localMin: se,
650
+ localYLabels: Pe,
651
+ yOffset: C,
652
+ individualHeight: G
653
+ };
654
+ })), i = c({
655
+ start: 0,
656
+ end: h.value
657
+ });
658
+ function nt() {
659
+ rt();
660
+ }
661
+ const ke = c(null);
662
+ async function rt() {
663
+ (t.value.style.chart.zoom.startIndex !== null || t.value.style.chart.zoom.endIndex !== null) && ke.value ? (t.value.style.chart.zoom.startIndex !== null && (await Oe(), await Oe(), ke.value && ke.value.setStartValue(t.value.style.chart.zoom.startIndex)), t.value.style.chart.zoom.endIndex !== null && (await Oe(), await Oe(), ke.value && ke.value.setEndValue(Mt(t.value.style.chart.zoom.endIndex + 1)))) : (i.value = {
664
+ start: 0,
665
+ end: h.value
666
+ }, Ce.value += 1);
667
+ }
668
+ function Mt(e) {
669
+ const o = h.value;
670
+ return e > o ? o : e < 0 || t.value.style.chart.zoom.startIndex !== null && e < t.value.style.chart.zoom.startIndex ? t.value.style.chart.zoom.startIndex !== null ? t.value.style.chart.zoom.startIndex + 1 : 1 : e;
671
+ }
672
+ const Tt = R(() => g.value.filter((e) => ["line", "plot", void 0].includes(e.type))), B = R(() => g.value.filter((e) => e.type === "bar"));
673
+ function It() {
674
+ if (!V.value)
675
+ return;
676
+ const e = H.value.offsetWidth, o = H.value.offsetHeight;
677
+ V.value.width = e * N.value * 2, V.value.height = o * N.value * 2, p.value = e * N.value * 2, L.value = o * N.value * 2, f.value.scale(N.value, N.value), Ae();
678
+ }
679
+ function At() {
680
+ if (f.value.clearRect(0, 0, 1e4, 1e4), f.value.fillStyle = t.value.style.chart.backgroundColor, f.value.fillRect(0, 0, l.value.canvasWidth, l.value.canvasHeight), a.value.stacked)
681
+ t.value.style.chart.grid.y.verticalLines.show && i.value.end - i.value.start < t.value.style.chart.grid.y.verticalLines.hideUnderXLength ? g.value.forEach((e) => {
682
+ for (let o = 0; o < i.value.end - i.value.start + 1; o += 1)
683
+ F(
684
+ f.value,
685
+ [
686
+ {
687
+ x: l.value.left + l.value.slot * o,
688
+ y: l.value.bottom - e.yOffset - e.individualHeight
689
+ },
690
+ {
691
+ x: l.value.left + l.value.slot * o,
692
+ y: l.value.bottom - e.yOffset
693
+ }
694
+ ],
695
+ {
696
+ color: t.value.style.chart.grid.y.verticalLines.color
697
+ }
698
+ );
699
+ }) : t.value.style.chart.grid.y.verticalLines.show && i.value.end - i.value.start >= t.value.style.chart.grid.y.verticalLines.hideUnderXLength && g.value.forEach((e) => {
700
+ for (let o = i.value.start; o < i.value.end; o += 1)
701
+ o % Math.floor((i.value.end - i.value.start) / t.value.style.chart.grid.y.timeLabels.modulo) === 0 && F(
702
+ f.value,
703
+ [
704
+ {
705
+ x: l.value.left + l.value.slot * (o - i.value.start) + l.value.slot / 2,
706
+ y: l.value.bottom - e.yOffset - e.individualHeight
707
+ },
708
+ {
709
+ x: l.value.left + l.value.slot * (o - i.value.start) + l.value.slot / 2,
710
+ y: l.value.bottom - e.yOffset
711
+ }
712
+ ],
713
+ {
714
+ color: t.value.style.chart.grid.y.verticalLines.color
715
+ }
716
+ );
717
+ }), t.value.style.chart.grid.x.horizontalLines.show && (t.value.style.chart.grid.x.horizontalLines.alternate ? g.value.forEach((e) => {
718
+ e.localYLabels.forEach((o, u) => {
719
+ u < e.localYLabels.length - 1 && at(
720
+ f.value,
721
+ [
722
+ { x: l.value.left, y: o.y },
723
+ { x: l.value.right, y: o.y },
724
+ { x: l.value.right, y: e.localYLabels[u + 1].y },
725
+ { x: l.value.left, y: e.localYLabels[u + 1].y }
726
+ ],
727
+ {
728
+ fillColor: u % 2 === 0 ? "transparent" : Re(t.value.style.chart.grid.x.horizontalLines.color, t.value.style.chart.grid.x.horizontalLines.opacity),
729
+ strokeColor: "transparent"
730
+ }
731
+ );
732
+ });
733
+ }) : g.value.forEach((e) => {
734
+ e.localYLabels.slice(i.value.start, i.value.end).forEach((o) => {
735
+ F(
736
+ f.value,
737
+ [
738
+ { x: l.value.left, y: o.y },
739
+ { x: l.value.right, y: o.y }
740
+ ],
741
+ {
742
+ color: t.value.style.chart.grid.x.horizontalLines.color
743
+ }
744
+ );
745
+ });
746
+ })), t.value.style.chart.grid.zeroLine.show && g.value.forEach((e) => {
747
+ F(
748
+ f.value,
749
+ [
750
+ { x: l.value.left, y: e.localZero },
751
+ { x: l.value.right, y: e.localZero }
752
+ ],
753
+ {
754
+ color: t.value.style.chart.grid.zeroLine.color,
755
+ lineDash: t.value.style.chart.grid.zeroLine.dashed ? [10, 10] : [0, 0]
756
+ }
757
+ );
758
+ }), t.value.style.chart.grid.y.axisLabels.show && g.value.forEach((e) => {
759
+ F(
760
+ f.value,
761
+ [
762
+ { x: l.value.left, y: l.value.bottom - e.yOffset },
763
+ { x: l.value.left, y: l.value.bottom - e.yOffset - e.individualHeight }
764
+ ],
765
+ {
766
+ color: e.color
767
+ }
768
+ ), F(
769
+ f.value,
770
+ [
771
+ { x: l.value.right, y: l.value.bottom - e.yOffset },
772
+ { x: l.value.right, y: l.value.bottom - e.yOffset - e.individualHeight }
773
+ ],
774
+ {
775
+ color: e.color
776
+ }
777
+ );
778
+ }), g.value.forEach((e) => {
779
+ ne(
780
+ f.value,
781
+ e.name,
782
+ p.value / 35,
783
+ l.value.bottom - e.yOffset - e.individualHeight / 2,
784
+ {
785
+ align: "center",
786
+ rotation: -90,
787
+ color: e.color,
788
+ font: `${Math.round(p.value / 40 * t.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${t.value.style.fontFamily}`
789
+ }
790
+ );
791
+ });
792
+ else {
793
+ if (t.value.style.chart.grid.y.verticalLines.show && i.value.end - i.value.start < t.value.style.chart.grid.y.verticalLines.hideUnderXLength)
794
+ for (let e = 0; e < i.value.end - i.value.start + 1; e += 1)
795
+ F(
796
+ f.value,
797
+ [
798
+ { x: l.value.left + l.value.slot * e, y: l.value.top },
799
+ { x: l.value.left + l.value.slot * e, y: l.value.bottom }
800
+ ],
801
+ {
802
+ color: t.value.style.chart.grid.y.verticalLines.color
803
+ }
804
+ );
805
+ else if (t.value.style.chart.grid.y.verticalLines.show && i.value.end - i.value.start >= t.value.style.chart.grid.y.verticalLines.hideUnderXLength)
806
+ for (let e = i.value.start; e < i.value.end; e += 1)
807
+ e % Math.floor((i.value.end - i.value.start) / t.value.style.chart.grid.y.timeLabels.modulo) === 0 && F(
808
+ f.value,
809
+ [
810
+ { x: l.value.left + l.value.slot * (e - i.value.start) + l.value.slot / 2, y: l.value.top },
811
+ { x: l.value.left + l.value.slot * (e - i.value.start) + l.value.slot / 2, y: l.value.bottom }
812
+ ],
813
+ {
814
+ color: t.value.style.chart.grid.y.verticalLines.color
815
+ }
816
+ );
817
+ t.value.style.chart.grid.x.horizontalLines.show && (t.value.style.chart.grid.x.horizontalLines.alternate ? y.value.yLabels.forEach((e, o) => {
818
+ o < y.value.yLabels.length - 1 && at(
819
+ f.value,
820
+ [
821
+ { x: l.value.left, y: e.y },
822
+ { x: l.value.right, y: e.y },
823
+ { x: l.value.right, y: y.value.yLabels[o + 1].y },
824
+ { x: l.value.left, y: y.value.yLabels[o + 1].y }
825
+ ],
826
+ {
827
+ fillColor: o % 2 === 0 ? "transparent" : Re(t.value.style.chart.grid.x.horizontalLines.color, t.value.style.chart.grid.x.horizontalLines.opacity),
828
+ strokeColor: "transparent"
829
+ }
830
+ );
831
+ }) : y.value.yLabels.forEach((e) => {
832
+ F(
833
+ f.value,
834
+ [
835
+ { x: l.value.left, y: e.y },
836
+ { x: l.value.right, y: e.y }
837
+ ],
838
+ {
839
+ color: t.value.style.chart.grid.x.horizontalLines.color
840
+ }
841
+ );
842
+ })), t.value.style.chart.grid.y.showAxis && F(
843
+ f.value,
844
+ [
845
+ { x: l.value.left, y: l.value.top },
846
+ { x: l.value.left, y: l.value.bottom }
847
+ ],
848
+ {
849
+ color: t.value.style.chart.grid.y.axisColor,
850
+ lineWidth: t.value.style.chart.grid.y.axisThickness
851
+ }
852
+ ), t.value.style.chart.grid.x.showAxis && F(
853
+ f.value,
854
+ [
855
+ { x: l.value.left, y: l.value.bottom },
856
+ { x: l.value.right, y: l.value.bottom }
857
+ ],
858
+ {
859
+ color: t.value.style.chart.grid.x.axisColor,
860
+ lineWidth: t.value.style.chart.grid.x.axisThickness
861
+ }
862
+ ), t.value.style.chart.grid.zeroLine.show && F(
863
+ f.value,
864
+ [
865
+ { x: l.value.left, y: y.value.zero },
866
+ { x: l.value.right, y: y.value.zero }
867
+ ],
868
+ {
869
+ color: t.value.style.chart.grid.zeroLine.color,
870
+ lineDash: t.value.style.chart.grid.zeroLine.dashed ? [10, 10] : [0, 0]
871
+ }
872
+ );
873
+ }
874
+ t.value.style.chart.grid.y.axisName && ne(
875
+ f.value,
876
+ t.value.style.chart.grid.y.axisName,
877
+ p.value - p.value / 40 * t.value.style.chart.grid.y.axisLabels.fontSizeRatio * 1.2,
878
+ l.value.bottom - l.value.height / 2,
879
+ {
880
+ font: `${t.value.style.chart.grid.y.axisLabels.bold ? "bold " : ""}${Math.round(p.value / 40 * t.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${t.value.style.fontFamily}`,
881
+ color: t.value.style.chart.color,
882
+ align: "center",
883
+ rotation: 90
884
+ }
885
+ ), t.value.style.chart.grid.x.axisName && ne(
886
+ f.value,
887
+ t.value.style.chart.grid.x.axisName,
888
+ p.value / 2,
889
+ L.value,
890
+ {
891
+ font: `${t.value.style.chart.grid.y.axisLabels.bold ? "bold " : ""}${Math.round(p.value / 40 * t.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${t.value.style.fontFamily}`,
892
+ color: t.value.style.chart.color,
893
+ align: "center"
894
+ }
895
+ );
896
+ }
897
+ function Et(e) {
898
+ for (let o = 0; o < e.coordinatesLine.length; o += 1) {
899
+ const u = (d.value === o ? p.value / 150 : t.value.style.chart.line.plots.show ? p.value / 200 : 0) * t.value.style.chart.line.plots.radiusRatio;
900
+ Lt(
901
+ f.value,
902
+ { x: e.coordinatesLine[o].x, y: e.coordinatesLine[o].y },
903
+ u,
904
+ {
905
+ color: t.value.style.chart.backgroundColor,
906
+ fillStyle: e.color
907
+ }
908
+ );
909
+ }
910
+ }
911
+ function Pt() {
912
+ g.value.forEach((e) => {
913
+ e.showYMarker && Ee(e) && ne(
914
+ f.value,
915
+ Le(
916
+ t.value.style.chart.dataLabels.formatter,
917
+ Ee(e).value,
918
+ be({
919
+ p: e.prefix || t.value.style.chart.grid.y.axisLabels.prefix || "",
920
+ v: Ee(e).value,
921
+ s: e.suffix || t.value.style.chart.grid.y.axisLabels.suffix || "",
922
+ r: e.rounding || t.value.style.chart.grid.y.axisLabels.rounding || 0
923
+ }),
924
+ { datapoint: Ee(e), seriesIndex: null }
925
+ ),
926
+ l.value.left - 8 + t.value.style.chart.grid.y.axisLabels.offsetX,
927
+ Ee(e).y,
928
+ {
929
+ align: "right",
930
+ font: `${t.value.style.chart.grid.y.axisLabels.bold ? "bold " : ""}${Math.round(p.value / 40 * t.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${t.value.style.fontFamily}`,
931
+ color: e.color
932
+ }
933
+ );
934
+ });
935
+ }
936
+ function Ft() {
937
+ t.value.style.chart.grid.y.axisLabels.show && (a.value.stacked ? g.value.forEach((e) => {
938
+ e.localYLabels.forEach((o, u) => {
939
+ ne(
940
+ f.value,
941
+ Le(
942
+ t.value.style.chart.dataLabels.formatter,
943
+ o.value,
944
+ be({
945
+ p: e.prefix || t.value.style.chart.grid.y.axisLabels.prefix || "",
946
+ v: o.value,
947
+ s: e.suffix || t.value.style.chart.grid.y.axisLabels.suffix || "",
948
+ r: e.rounding || t.value.style.chart.grid.y.axisLabels.rounding || 0
949
+ }),
950
+ { datapoint: o, seriesIndex: u }
951
+ ),
952
+ o.x + t.value.style.chart.grid.y.axisLabels.offsetX,
953
+ o.y,
954
+ {
955
+ align: "right",
956
+ font: `${t.value.style.chart.grid.y.axisLabels.bold ? "bold " : ""}${Math.round(p.value / 40 * t.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${t.value.style.fontFamily}`,
957
+ color: e.color,
958
+ globalAlpha: e.showYMarker && ![null, void 0].includes(d.value) ? 0.2 : 1
959
+ }
960
+ );
961
+ });
962
+ }) : y.value.yLabels.forEach((e, o) => {
963
+ ne(
964
+ f.value,
965
+ Le(
966
+ t.value.style.chart.dataLabels.formatter,
967
+ e.value,
968
+ be({
969
+ p: t.value.style.chart.grid.y.axisLabels.prefix || "",
970
+ v: e.value,
971
+ s: t.value.style.chart.grid.y.axisLabels.suffix || "",
972
+ r: t.value.style.chart.grid.y.axisLabels.rounding || 0
973
+ }),
974
+ { datapoint: e, seriesIndex: o }
975
+ ),
976
+ e.x + t.value.style.chart.grid.y.axisLabels.offsetX,
977
+ e.y,
978
+ {
979
+ align: "right",
980
+ font: `${t.value.style.chart.grid.y.axisLabels.bold ? "bold " : ""}${Math.round(p.value / 40 * t.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${t.value.style.fontFamily}`,
981
+ color: t.value.style.chart.grid.y.axisLabels.color,
982
+ globalAlpha: g.value.some((u) => u.showYMarker) && ![null, void 0].includes(d.value) ? 0.2 : 1
983
+ }
984
+ );
985
+ }));
986
+ }
987
+ function Rt(e) {
988
+ for (let o = 0; o < e.coordinatesLine.length; o += 1)
989
+ ne(
990
+ f.value,
991
+ Le(
992
+ t.value.style.chart.dataLabels.formatter,
993
+ e.coordinatesLine[o].value,
994
+ be({
995
+ p: e.prefix || "",
996
+ v: e.coordinatesLine[o].value,
997
+ s: e.suffix || "",
998
+ r: e.rounding || 0
999
+ }),
1000
+ { datapoint: e.coordinatesLine[o], seriesIndex: o }
1001
+ ),
1002
+ e.coordinatesLine[o].x,
1003
+ e.coordinatesLine[o].y + t.value.style.chart.dataLabels.offsetY,
1004
+ {
1005
+ align: "center",
1006
+ font: `${t.value.style.chart.dataLabels.bold ? "bold " : ""}${Math.round(p.value / 40 * t.value.style.chart.dataLabels.fontSizeRatio)}px ${t.value.style.fontFamily}`,
1007
+ color: t.value.style.chart.dataLabels.useSerieColor ? e.color : t.value.style.chart.dataLabels.color
1008
+ }
1009
+ );
1010
+ }
1011
+ function Dt() {
1012
+ for (let e = i.value.start; e < i.value.end; e += 1)
1013
+ (i.value.end - i.value.start < t.value.style.chart.grid.y.timeLabels.modulo || i.value.end - i.value.start >= t.value.style.chart.grid.y.timeLabels.modulo && (e % Math.floor((i.value.end - i.value.start) / t.value.style.chart.grid.y.timeLabels.modulo) === 0 || e === d.value + i.value.start && t.value.style.chart.grid.y.timeLabels.showMarker)) && ne(
1014
+ f.value,
1015
+ t.value.style.chart.grid.y.timeLabels.values[e] || e + 1,
1016
+ l.value.left + l.value.slot * (e - i.value.start) + l.value.slot / 2,
1017
+ l.value.bottom + p.value / t.value.style.chart.grid.y.timeLabels.offsetY,
1018
+ {
1019
+ align: t.value.style.chart.grid.y.timeLabels.rotation === 0 ? "center" : t.value.style.chart.grid.y.timeLabels.rotation > 0 ? "left" : "right",
1020
+ font: `${t.value.style.chart.grid.y.timeLabels.bold ? "bold " : ""}${Math.round(p.value / 40 * t.value.style.chart.grid.y.timeLabels.fontSizeRatio)}px ${t.value.style.fontFamily}`,
1021
+ color: t.value.style.chart.grid.y.timeLabels.showMarker ? Re(t.value.style.chart.grid.y.timeLabels.color, d.value !== null ? d.value + i.value.start === e ? 100 : 20 : 100) : t.value.style.chart.grid.y.timeLabels.color,
1022
+ rotation: t.value.style.chart.grid.y.timeLabels.rotation
1023
+ }
1024
+ );
1025
+ }
1026
+ function ut() {
1027
+ F(
1028
+ f.value,
1029
+ [
1030
+ { x: l.value.left + l.value.slot * d.value + l.value.slot / 2, y: l.value.top },
1031
+ { x: l.value.left + l.value.slot * d.value + l.value.slot / 2, y: l.value.bottom }
1032
+ ],
1033
+ {
1034
+ color: t.value.style.chart.selector.color,
1035
+ lineDash: t.value.style.chart.selector.dashed ? [8, 8] : [0, 0],
1036
+ lineWidth: 2
1037
+ }
1038
+ );
1039
+ }
1040
+ function Ot() {
1041
+ O.value && F(
1042
+ f.value,
1043
+ [
1044
+ { x: l.value.left, y: O.value },
1045
+ { x: l.value.right, y: O.value }
1046
+ ],
1047
+ {
1048
+ color: t.value.style.chart.selector.color,
1049
+ lineDash: t.value.style.chart.selector.dashed ? [8, 8] : [0, 0],
1050
+ lineWidth: 2
1051
+ }
1052
+ );
1053
+ }
1054
+ function Nt() {
1055
+ B.value.forEach((e, o) => {
1056
+ for (let u = 0; u < e.coordinatesLine.length; u += 1)
1057
+ at(
1058
+ f.value,
1059
+ [
1060
+ {
1061
+ x: l.value.left + l.value.slot * u + l.value.slot / 10 + (a.value.stacked ? 0 : l.value.slot / B.value.length * o - (o === 0 ? 0 : l.value.slot / (5 * B.value.length) * o)),
1062
+ y: a.value.stacked ? e.localZero : y.value.zero
1063
+ },
1064
+ {
1065
+ x: l.value.left + l.value.slot * u + l.value.slot / 10 + (a.value.stacked ? 0 : l.value.slot / B.value.length * o - (o === 0 ? 0 : l.value.slot / (5 * B.value.length) * o)) + l.value.slot * 0.8 / (a.value.stacked ? 1 : B.value.length),
1066
+ y: a.value.stacked ? e.localZero : y.value.zero
1067
+ },
1068
+ {
1069
+ x: l.value.left + l.value.slot * u + l.value.slot / 10 + (a.value.stacked ? 0 : l.value.slot / B.value.length * o - (o === 0 ? 0 : l.value.slot / (5 * B.value.length) * o)) + l.value.slot * 0.8 / (a.value.stacked ? 1 : B.value.length),
1070
+ y: e.coordinatesLine[u].y
1071
+ },
1072
+ {
1073
+ x: l.value.left + l.value.slot * u + l.value.slot / 10 + (a.value.stacked ? 0 : l.value.slot / B.value.length * o - (o === 0 ? 0 : l.value.slot / (5 * B.value.length) * o)),
1074
+ y: e.coordinatesLine[u].y
1075
+ }
1076
+ ],
1077
+ {
1078
+ strokeColor: t.value.style.chart.backgroundColor,
1079
+ gradient: {
1080
+ type: "linear",
1081
+ start: {
1082
+ x: e.coordinatesLine[u].x,
1083
+ y: e.coordinatesLine[u].y
1084
+ },
1085
+ end: {
1086
+ x: e.coordinatesLine[u].x,
1087
+ y: a.value.stacked ? e.localZero : y.value.zero
1088
+ },
1089
+ stops: [
1090
+ { offset: 0, color: e.color },
1091
+ { offset: 1, color: t.value.style.chart.bar.gradient.show ? St(e.color, 0.5) : e.color }
1092
+ ]
1093
+ }
1094
+ }
1095
+ ), a.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && ne(
1096
+ f.value,
1097
+ Le(
1098
+ t.value.style.chart.dataLabels.formatter,
1099
+ e.coordinatesLine[u].value,
1100
+ be({
1101
+ p: e.prefix || "",
1102
+ v: e.coordinatesLine[u].value,
1103
+ s: e.suffix || "",
1104
+ r: e.rounding || 0
1105
+ }),
1106
+ { datapoint: e.coordinatesLine[u], seriesIndex: u }
1107
+ ),
1108
+ l.value.left + l.value.slot * u + l.value.slot / 10 + (a.value.stacked ? 0 : l.value.slot / B.value.length * o - (o === 0 ? 0 : l.value.slot / (5 * B.value.length) * o)) + l.value.slot * 0.4 / (a.value.stacked ? 1 : B.value.length),
1109
+ (e.coordinatesLine[u].value < 0 ? a.value.stacked ? e.localZero : y.value.zero : e.coordinatesLine[u].y) + t.value.style.chart.dataLabels.offsetY,
1110
+ {
1111
+ align: "center",
1112
+ font: `${Math.round(p.value / 40 * t.value.style.chart.dataLabels.fontSizeRatio)}px ${t.value.style.fontFamily}`,
1113
+ color: t.value.style.chart.dataLabels.useSerieColor ? e.color : t.value.style.chart.dataLabels.color,
1114
+ strokeColor: t.value.style.chart.backgroundColor,
1115
+ lineWidth: 0.8
1116
+ }
1117
+ );
1118
+ });
1119
+ }
1120
+ function Bt(e) {
1121
+ e.useArea ? a.value.stacked ? wt(
1122
+ f.value,
1123
+ [{ x: e.coordinatesLine[0].x, y: e.localZero }, ...e.coordinatesLine, { x: e.coordinatesLine.at(-1).x, y: e.localZero }],
1124
+ {
1125
+ fillColor: Re(e.color, t.value.style.chart.area.opacity),
1126
+ strokeColor: "transparent"
1127
+ }
1128
+ ) : wt(
1129
+ f.value,
1130
+ [{ x: e.coordinatesLine[0].x, y: y.value.zero }, ...e.coordinatesLine, { x: e.coordinatesLine.at(-1).x, y: y.value.zero }],
1131
+ {
1132
+ fillColor: Re(e.color, t.value.style.chart.area.opacity),
1133
+ strokeColor: "transparent"
1134
+ }
1135
+ ) : F(f.value, e.coordinatesLine, {
1136
+ color: e.color,
1137
+ lineWidth: 3
1138
+ });
1139
+ }
1140
+ function Yt() {
1141
+ g.value.forEach((e, o) => {
1142
+ F(
1143
+ f.value,
1144
+ [
1145
+ { x: l.value.left, y: l.value.bottom - e.yOffset },
1146
+ { x: l.value.right, y: l.value.bottom - e.yOffset }
1147
+ ],
1148
+ {
1149
+ color: t.value.style.chart.grid.x.horizontalLines.color,
1150
+ lineWidth: 1
1151
+ }
1152
+ );
1153
+ });
1154
+ }
1155
+ function Ae() {
1156
+ At(), te.value ? (d.value !== null && t.value.style.chart.selector.show && ut(), Nt(), a.value.stacked && t.value.style.chart.grid.x.showAxis && Yt(), Tt.value.forEach((e) => {
1157
+ (e.type === "line" || !e.type) && Bt(e), le.value && (Et(e), a.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && Rt(e));
1158
+ }), we.value = dl(V.value)) : (we.value && (f.value.clearRect(0, 0, 1e4, 1e4), f.value.drawImage(we.value, 0, 0)), d.value !== null && t.value.style.chart.selector.show && ut(), d.value !== null && g.value.forEach((e) => {
1159
+ if (e.type === "line" || !e.type || e.type === "plot") {
1160
+ if (!e.coordinatesLine[d.value]) return;
1161
+ e.coordinatesLine[d.value].x !== void 0 && e.coordinatesLine[d.value].y !== void 0 && Lt(
1162
+ f.value,
1163
+ {
1164
+ x: e.coordinatesLine[d.value].x,
1165
+ y: e.coordinatesLine[d.value].y
1166
+ },
1167
+ p.value / 150 * t.value.style.chart.line.plots.radiusRatio,
1168
+ {
1169
+ color: t.value.style.chart.backgroundColor,
1170
+ fillStyle: e.color
1171
+ }
1172
+ );
1173
+ }
1174
+ })), t.value.style.chart.grid.y.timeLabels.show && Dt(), t.value.style.chart.selector.show && t.value.style.chart.selector.showHorizontalSelector && Ot(), Ft(), Pt(), te.value = !1;
1175
+ }
1176
+ const We = il(() => {
1177
+ le.value = !0, It();
1178
+ }, h.value > 200 ? 10 : 1, !le.value);
1179
+ function Ee(e) {
1180
+ if ([null, void 0].includes(d.value) || !e.coordinatesLine[d.value]) return !1;
1181
+ const { y: o, value: u } = e.coordinatesLine[d.value];
1182
+ return { y: o, value: u };
1183
+ }
1184
+ function Xt(e) {
1185
+ const { left: o, top: u } = V.value.getBoundingClientRect(), m = e.clientX - o;
1186
+ if (O.value = (e.clientY - u) * 2, (O.value < l.value.top || O.value > l.value.bottom) && (O.value = null), m * 2 < l.value.left || m * 2 > l.value.right) {
1187
+ ee.value = !1, d.value = null;
1188
+ return;
1189
+ }
1190
+ const x = m * 2 - l.value.left;
1191
+ if (d.value = Math.floor(x / l.value.slot), ee.value = !0, !le.value) return;
1192
+ let Y = "";
1193
+ const b = t.value.style.chart.tooltip.customFormat;
1194
+ kt(b) && sl(() => b({
1195
+ seriesIndex: d.value,
1196
+ datapoint: g.value.map((C) => ({
1197
+ shape: C.shape || null,
1198
+ name: C.name,
1199
+ color: C.color,
1200
+ type: C.type || "line",
1201
+ value: C.series.find((he, G) => G === d.value)
1202
+ })),
1203
+ series: g.value,
1204
+ config: t.value
1205
+ })) ? j.value = b({
1206
+ seriesIndex: d.value,
1207
+ datapoint: g.value.map((C) => ({
1208
+ shape: C.shape || null,
1209
+ name: C.name,
1210
+ color: C.color,
1211
+ type: C.type || "line",
1212
+ value: C.series.find((he, G) => G === d.value)
1213
+ })),
1214
+ series: g.value,
1215
+ config: t.value
1216
+ }) : (t.value.style.chart.grid.y.timeLabels.values.slice(i.value.start, i.value.end)[d.value] && (Y += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${t.value.style.chart.tooltip.borderColor}; width:100%">${t.value.style.chart.grid.y.timeLabels.values.slice(i.value.start, i.value.end)[d.value]}</div>`), Y += E.value.join(""), j.value = Y), le.value = !1;
1217
+ }
1218
+ Q(() => d.value, (e) => {
1219
+ We();
1220
+ }), Q(() => i.value, (e) => {
1221
+ te.value = !0, Ae();
1222
+ }, {
1223
+ deep: !0
1224
+ }), Q(() => a.value.showDataLabels, (e) => {
1225
+ te.value = !0, Ae();
1226
+ }), Q(() => O.value, (e) => {
1227
+ e && Ae();
1228
+ }), Q(() => a.value.stacked, (e) => {
1229
+ te.value = !0, le.value = !0, We();
1230
+ });
1231
+ function Ht() {
1232
+ ee.value = !1, d.value = null, j.value = "", O.value = null, Ae();
1233
+ }
1234
+ const Ve = c(null), Ge = c(null);
1235
+ ot(() => {
1236
+ et();
1237
+ });
1238
+ function et() {
1239
+ if (ol(k.dataset) ? nl({
1240
+ componentName: "VueUiXyCanvas",
1241
+ type: "dataset"
1242
+ }) : V.value && (f.value = V.value.getContext("2d", { willReadFrequently: !0 })), t.value.responsive) {
1243
+ const e = vl(() => {
1244
+ const { width: o, height: u } = cl({
1245
+ chart: re.value,
1246
+ title: t.value.style.chart.title.text ? Se.value : null,
1247
+ legend: t.value.style.chart.legend.show ? ze.value : null,
1248
+ slicer: t.value.style.chart.zoom.show && h.value > 1 ? Me.value : null,
1249
+ source: K.value
1250
+ });
1251
+ requestAnimationFrame(() => {
1252
+ He.value = `${o} / ${u}`;
1253
+ });
1254
+ });
1255
+ Ve.value = new ResizeObserver(e), Ve.value.observe(re.value.parentNode);
1256
+ }
1257
+ Ge.value = new ResizeObserver((e) => {
1258
+ for (const o of e)
1259
+ o.contentBoxSize && H.value && (te.value = !0, We());
1260
+ }), Ge.value.observe(H.value), rt();
1261
+ }
1262
+ $t(() => {
1263
+ Ge.value && Ge.value.disconnect(), Ve.value && Ve.value.disconnect();
1264
+ });
1265
+ function st(e) {
1266
+ Ne("selectLegend", g.value.find((o) => o.absoluteIndex === e)), T.value.includes(e) ? T.value = T.value.filter((o) => o !== e) : T.value.push(e), te.value = !0, We();
1267
+ }
1268
+ const it = R(() => $.value.map((e, o) => ({
1269
+ ...e,
1270
+ name: e.name,
1271
+ color: xt(e.color) || v.value[o] || pe[o] || pe[o % pe.length],
1272
+ shape: e.shape || "circle",
1273
+ prefix: e.prefix || "",
1274
+ suffix: e.suffix || "",
1275
+ rounding: e.rounding || 0
1276
+ })).map((e) => ({
1277
+ ...e,
1278
+ opacity: T.value.includes(e.absoluteIndex) ? 0.5 : 1,
1279
+ segregate: () => st(e.absoluteIndex),
1280
+ isSegregated: T.value.includes(e.absoluteIndex)
1281
+ }))), Ut = R(() => ({
1282
+ cy: "donut-div-legend",
1283
+ backgroundColor: t.value.style.chart.legend.backgroundColor,
1284
+ color: t.value.style.chart.legend.color,
1285
+ fontSize: t.value.style.chart.legend.fontSize,
1286
+ paddingBottom: 12,
1287
+ fontWeight: t.value.style.chart.legend.bold ? "bold" : ""
1288
+ })), Ze = R(() => {
1289
+ const e = [""].concat(g.value.map((x) => x.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>');
1290
+ let o = [];
1291
+ for (let x = 0; x < h.value; x += 1) {
1292
+ const Y = g.value.map((b) => b.series[x] ?? 0).reduce((b, C) => b + C, 0);
1293
+ o.push([t.value.style.chart.grid.y.timeLabels.values.slice(i.value.start, i.value.end)[x] ?? x + 1].concat(g.value.map((b) => (b.series[x] ?? 0).toFixed(t.value.table.rounding))).concat((Y ?? 0).toFixed(t.value.table.rounding)));
1294
+ }
1295
+ const u = {
1296
+ th: {
1297
+ backgroundColor: t.value.table.th.backgroundColor,
1298
+ color: t.value.table.th.color,
1299
+ outline: t.value.table.th.outline
1300
+ },
1301
+ td: {
1302
+ backgroundColor: t.value.table.td.backgroundColor,
1303
+ color: t.value.table.td.color,
1304
+ outline: t.value.table.td.outline
1305
+ },
1306
+ breakpoint: t.value.table.responsiveBreakpoint
1307
+ }, m = [t.value.table.columnNames.period].concat(g.value.map((x) => x.name)).concat(t.value.table.columnNames.total);
1308
+ return { head: e, body: o.slice(0, i.value.end - i.value.start), config: u, colNames: m };
1309
+ }), vt = R(() => {
1310
+ if (g.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
1311
+ const e = g.value.map((u) => ({
1312
+ label: u.name,
1313
+ color: u.color,
1314
+ type: u.type
1315
+ })), o = [];
1316
+ for (let u = i.value.start; u < i.value.end; u += 1) {
1317
+ const m = [t.value.style.chart.grid.y.timeLabels.values[u] || u + 1];
1318
+ g.value.forEach((x) => {
1319
+ m.push(Number((x.series[u] || 0).toFixed(t.value.table.rounding)));
1320
+ }), o.push(m);
1321
+ }
1322
+ return { head: e, body: o };
1323
+ });
1324
+ function ct() {
1325
+ const e = [[t.value.style.chart.title.text], [t.value.style.chart.title.subtitle.text], [""]], o = ["", ...vt.value.head.map((Y) => Y.label)], u = vt.value.body, m = e.concat([o]).concat(u), x = rl(m);
1326
+ ul({ csvContent: x, title: t.value.style.chart.title.text || "vue-ui-xy-canvas" });
1327
+ }
1328
+ function Wt() {
1329
+ return g.value;
1330
+ }
1331
+ function dt() {
1332
+ a.value.showTable = !a.value.showTable;
1333
+ }
1334
+ function ht() {
1335
+ a.value.showDataLabels = !a.value.showDataLabels;
1336
+ }
1337
+ function ft() {
1338
+ a.value.stacked = !a.value.stacked;
1339
+ }
1340
+ function yt() {
1341
+ a.value.showTooltip = !a.value.showTooltip;
1342
+ }
1343
+ const qe = c(!1);
1344
+ function tt() {
1345
+ qe.value = !qe.value;
1346
+ }
1347
+ return Qe({
1348
+ getData: Wt,
1349
+ generateCsv: ct,
1350
+ generatePdf: s,
1351
+ generateImage: n,
1352
+ toggleTable: dt,
1353
+ toggleLabels: ht,
1354
+ toggleStack: ft,
1355
+ toggleTooltip: yt,
1356
+ toggleAnnotator: tt
1357
+ }), (e, o) => (w(), M("div", {
1358
+ style: X(`width:100%; position:relative; ${t.value.responsive ? "height: 100%" : ""}`),
1359
+ ref_key: "xy",
1360
+ ref: re,
1361
+ id: `xy_canvas_${q.value}`,
1362
+ class: ve(`vue-ui-donut ${ce.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
1363
+ onMouseenter: o[5] || (o[5] = () => D(Ye)(!0)),
1364
+ onMouseleave: o[6] || (o[6] = () => D(Ye)(!1))
1365
+ }, [
1366
+ t.value.style.chart.title.text ? (w(), M("div", {
1367
+ key: 0,
1368
+ ref_key: "chartTitle",
1369
+ ref: Se,
1370
+ style: X(`width:100%;background:${t.value.style.chart.backgroundColor};`)
1371
+ }, [
1372
+ (w(), ie(yl, {
1373
+ key: `title_${de.value}`,
1374
+ config: {
1375
+ title: {
1376
+ cy: "xy-canvas-title",
1377
+ ...t.value.style.chart.title
1378
+ },
1379
+ subtitle: {
1380
+ cy: "xy-canvas-subtitle",
1381
+ ...t.value.style.chart.title.subtitle
1382
+ }
1383
+ }
1384
+ }, null, 8, ["config"]))
1385
+ ], 4)) : Z("", !0),
1386
+ t.value.userOptions.show && U.value && (D(xe) || D(Te)) ? (w(), ie(ml, {
1387
+ ref: "details",
1388
+ key: `user_option_${$e.value}`,
1389
+ backgroundColor: t.value.style.chart.backgroundColor,
1390
+ color: t.value.style.chart.color,
1391
+ isPrinting: D(Ue),
1392
+ isImaging: D(Ie),
1393
+ uid: q.value,
1394
+ hasTooltip: t.value.userOptions.buttons.tooltip && t.value.style.chart.tooltip.show,
1395
+ hasPdf: t.value.userOptions.buttons.pdf,
1396
+ hasImg: t.value.userOptions.buttons.img,
1397
+ hasXls: t.value.userOptions.buttons.csv,
1398
+ hasLabel: t.value.userOptions.buttons.labels,
1399
+ hasStack: S.dataset.length > 1 && t.value.userOptions.buttons.stack,
1400
+ hasFullscreen: t.value.userOptions.buttons.fullscreen,
1401
+ hasTable: i.value.end - i.value.start < 200 && t.value.userOptions.buttons.table,
1402
+ isFullscreen: ce.value,
1403
+ isTooltip: a.value.showTooltip,
1404
+ isStacked: a.value.stacked,
1405
+ titles: { ...t.value.userOptions.buttonTitles },
1406
+ chartElement: re.value,
1407
+ position: t.value.userOptions.position,
1408
+ hasAnnotator: t.value.userOptions.buttons.annotator,
1409
+ isAnnotation: qe.value,
1410
+ onToggleFullscreen: r,
1411
+ onGeneratePdf: D(s),
1412
+ onGenerateCsv: ct,
1413
+ onGenerateImage: D(n),
1414
+ onToggleTable: dt,
1415
+ onToggleLabels: ht,
1416
+ onToggleStack: ft,
1417
+ onToggleTooltip: yt,
1418
+ onToggleAnnotator: tt,
1419
+ style: X({
1420
+ visibility: D(xe) ? D(Te) ? "visible" : "hidden" : "visible"
1421
+ })
1422
+ }, Zt({ _: 2 }, [
1423
+ e.$slots.menuIcon ? {
1424
+ name: "menuIcon",
1425
+ fn: A(({ isOpen: u, color: m }) => [
1426
+ P(e.$slots, "menuIcon", ye(ge({ isOpen: u, color: m })), void 0, !0)
1427
+ ]),
1428
+ key: "0"
1429
+ } : void 0,
1430
+ e.$slots.optionTooltip ? {
1431
+ name: "optionTooltip",
1432
+ fn: A(() => [
1433
+ P(e.$slots, "optionTooltip", {}, void 0, !0)
1434
+ ]),
1435
+ key: "1"
1436
+ } : void 0,
1437
+ e.$slots.optionPdf ? {
1438
+ name: "optionPdf",
1439
+ fn: A(() => [
1440
+ P(e.$slots, "optionPdf", {}, void 0, !0)
1441
+ ]),
1442
+ key: "2"
1443
+ } : void 0,
1444
+ e.$slots.optionCsv ? {
1445
+ name: "optionCsv",
1446
+ fn: A(() => [
1447
+ P(e.$slots, "optionCsv", {}, void 0, !0)
1448
+ ]),
1449
+ key: "3"
1450
+ } : void 0,
1451
+ e.$slots.optionImg ? {
1452
+ name: "optionImg",
1453
+ fn: A(() => [
1454
+ P(e.$slots, "optionImg", {}, void 0, !0)
1455
+ ]),
1456
+ key: "4"
1457
+ } : void 0,
1458
+ e.$slots.optionTable ? {
1459
+ name: "optionTable",
1460
+ fn: A(() => [
1461
+ P(e.$slots, "optionTable", {}, void 0, !0)
1462
+ ]),
1463
+ key: "5"
1464
+ } : void 0,
1465
+ e.$slots.optionLabels ? {
1466
+ name: "optionLabels",
1467
+ fn: A(() => [
1468
+ P(e.$slots, "optionLabels", {}, void 0, !0)
1469
+ ]),
1470
+ key: "6"
1471
+ } : void 0,
1472
+ e.$slots.optionStack ? {
1473
+ name: "optionStack",
1474
+ fn: A(() => [
1475
+ P(e.$slots, "optionStack", {}, void 0, !0)
1476
+ ]),
1477
+ key: "7"
1478
+ } : void 0,
1479
+ e.$slots.optionFullscreen ? {
1480
+ name: "optionFullscreen",
1481
+ fn: A(({ toggleFullscreen: u, isFullscreen: m }) => [
1482
+ P(e.$slots, "optionFullscreen", ye(ge({ toggleFullscreen: u, isFullscreen: m })), void 0, !0)
1483
+ ]),
1484
+ key: "8"
1485
+ } : void 0,
1486
+ e.$slots.optionAnnotator ? {
1487
+ name: "optionAnnotator",
1488
+ fn: A(({ toggleAnnotator: u, isAnnotator: m }) => [
1489
+ P(e.$slots, "optionAnnotator", ye(ge({ toggleAnnotator: u, isAnnotator: m })), void 0, !0)
1490
+ ]),
1491
+ key: "9"
1492
+ } : void 0
1493
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasLabel", "hasStack", "hasFullscreen", "hasTable", "isFullscreen", "isTooltip", "isStacked", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : Z("", !0),
1494
+ W("div", {
1495
+ class: "vue-ui-xy-canvas",
1496
+ style: X(`position: relative; aspect-ratio: ${He.value}`),
1497
+ ref_key: "container",
1498
+ ref: H
1499
+ }, [
1500
+ U.value ? (w(), M("canvas", {
1501
+ key: 0,
1502
+ ref_key: "canvas",
1503
+ ref: V,
1504
+ style: { width: "100%", height: "100%" },
1505
+ onMousemove: o[0] || (o[0] = (u) => Xt(u)),
1506
+ onMouseleave: Ht
1507
+ }, null, 544)) : (w(), ie(kl, {
1508
+ key: 1,
1509
+ config: {
1510
+ type: "line",
1511
+ style: {
1512
+ backgroundColor: t.value.style.chart.backgroundColor,
1513
+ line: {
1514
+ axis: {
1515
+ color: "#CCCCCC"
1516
+ },
1517
+ path: {
1518
+ color: "#CCCCCC",
1519
+ strokeWidth: 0.5
1520
+ }
1521
+ }
1522
+ }
1523
+ }
1524
+ }, null, 8, ["config"])),
1525
+ me(hl, {
1526
+ show: a.value.showTooltip && ee.value,
1527
+ backgroundColor: t.value.style.chart.tooltip.backgroundColor,
1528
+ color: t.value.style.chart.tooltip.color,
1529
+ fontSize: t.value.style.chart.tooltip.fontSize,
1530
+ borderRadius: t.value.style.chart.tooltip.borderRadius,
1531
+ borderColor: t.value.style.chart.tooltip.borderColor,
1532
+ borderWidth: t.value.style.chart.tooltip.borderWidth,
1533
+ position: t.value.style.chart.tooltip.position,
1534
+ offsetY: t.value.style.chart.tooltip.offsetY,
1535
+ parent: D(V),
1536
+ content: j.value,
1537
+ isFullscreen: ce.value,
1538
+ backgroundOpacity: t.value.style.chart.tooltip.backgroundOpacity,
1539
+ isCustom: D(kt)(t.value.style.chart.tooltip.customFormat)
1540
+ }, {
1541
+ "tooltip-before": A(() => [
1542
+ P(e.$slots, "tooltip-before", ye(ge({ ..._.value })), void 0, !0)
1543
+ ]),
1544
+ "tooltip-after": A(() => [
1545
+ P(e.$slots, "tooltip-after", ye(ge({ ..._.value })), void 0, !0)
1546
+ ]),
1547
+ _: 3
1548
+ }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "position", "offsetY", "parent", "content", "isFullscreen", "backgroundOpacity", "isCustom"])
1549
+ ], 4),
1550
+ W("div", {
1551
+ ref_key: "chartSlicer",
1552
+ ref: Me,
1553
+ style: X(`width:100%;background:${t.value.style.chart.backgroundColor}`),
1554
+ "data-dom-to-png-ignore": ""
1555
+ }, [
1556
+ t.value.style.chart.zoom.show && h.value > 1 ? (w(), ie(gl, {
1557
+ ref_key: "slicerComponent",
1558
+ ref: ke,
1559
+ key: `slicer_${Ce.value}`,
1560
+ background: t.value.style.chart.zoom.color,
1561
+ borderColor: t.value.style.chart.backgroundColor,
1562
+ fontSize: t.value.style.chart.zoom.fontSize,
1563
+ useResetSlot: t.value.style.chart.zoom.useResetSlot,
1564
+ labelLeft: t.value.style.chart.grid.y.timeLabels.values[i.value.start] ? t.value.style.chart.grid.y.timeLabels.values[i.value.start] : "",
1565
+ labelRight: t.value.style.chart.grid.y.timeLabels.values[i.value.end - 1] ? t.value.style.chart.grid.y.timeLabels.values[i.value.end - 1] : "",
1566
+ textColor: t.value.style.chart.color,
1567
+ inputColor: t.value.style.chart.zoom.color,
1568
+ selectColor: t.value.style.chart.zoom.highlightColor,
1569
+ max: h.value,
1570
+ min: 0,
1571
+ valueStart: i.value.start,
1572
+ valueEnd: i.value.end,
1573
+ start: i.value.start,
1574
+ "onUpdate:start": o[1] || (o[1] = (u) => i.value.start = u),
1575
+ end: i.value.end,
1576
+ "onUpdate:end": o[2] || (o[2] = (u) => i.value.end = u),
1577
+ refreshStartPoint: t.value.style.chart.zoom.startIndex !== null ? t.value.style.chart.zoom.startIndex : 0,
1578
+ refreshEndPoint: t.value.style.chart.zoom.endIndex !== null ? t.value.style.chart.zoom.endIndex + 1 : h.value,
1579
+ enableRangeHandles: t.value.style.chart.zoom.enableRangeHandles,
1580
+ enableSelectionDrag: t.value.style.chart.zoom.enableSelectionDrag,
1581
+ onReset: nt
1582
+ }, {
1583
+ "reset-action": A(({ reset: u }) => [
1584
+ P(e.$slots, "reset-action", ye(ge({ reset: u })), void 0, !0)
1585
+ ]),
1586
+ _: 3
1587
+ }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : Z("", !0)
1588
+ ], 4),
1589
+ W("div", {
1590
+ ref_key: "chartLegend",
1591
+ ref: ze
1592
+ }, [
1593
+ t.value.style.chart.legend.show && U.value ? (w(), ie(fl, {
1594
+ legendSet: it.value,
1595
+ config: Ut.value,
1596
+ key: `legend_${ae.value}`,
1597
+ onClickMarker: o[3] || (o[3] = ({ i: u }) => st(u))
1598
+ }, {
1599
+ item: A(({ legend: u, index: m }) => [
1600
+ W("div", {
1601
+ onClick: (x) => u.segregate(),
1602
+ style: X(`opacity:${T.value.includes(m) ? 0.5 : 1}`)
1603
+ }, Ke(u.name), 13, Dl)
1604
+ ]),
1605
+ _: 1
1606
+ }, 8, ["legendSet", "config"])) : P(e.$slots, "legend", {
1607
+ key: 1,
1608
+ legend: it.value
1609
+ }, void 0, !0)
1610
+ ], 512),
1611
+ e.$slots.watermark ? (w(), M("div", Ol, [
1612
+ P(e.$slots, "watermark", ye(ge({ isPrinting: D(Ue) || D(Ie) })), void 0, !0)
1613
+ ])) : Z("", !0),
1614
+ e.$slots.source ? (w(), M("div", {
1615
+ key: 3,
1616
+ ref_key: "source",
1617
+ ref: K,
1618
+ dir: "auto"
1619
+ }, [
1620
+ P(e.$slots, "source", {}, void 0, !0)
1621
+ ], 512)) : Z("", !0),
1622
+ i.value.end - i.value.start < 200 ? (w(), ie(bl, {
1623
+ key: 4,
1624
+ hideDetails: "",
1625
+ config: {
1626
+ open: a.value.showTable,
1627
+ maxHeight: 1e4,
1628
+ body: {
1629
+ backgroundColor: t.value.style.chart.backgroundColor,
1630
+ color: t.value.style.chart.color
1631
+ },
1632
+ head: {
1633
+ backgroundColor: t.value.style.chart.backgroundColor,
1634
+ color: t.value.style.chart.color
1635
+ }
1636
+ }
1637
+ }, {
1638
+ content: A(() => [
1639
+ (w(), ie(xl, {
1640
+ key: `table_${ue.value}`,
1641
+ colNames: Ze.value.colNames,
1642
+ head: Ze.value.head,
1643
+ body: Ze.value.body,
1644
+ config: Ze.value.config,
1645
+ title: `${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text ? ` : ${t.value.style.chart.title.subtitle.text}` : ""}`,
1646
+ onClose: o[4] || (o[4] = (u) => a.value.showTable = !1)
1647
+ }, {
1648
+ th: A(({ th: u }) => [
1649
+ W("div", { innerHTML: u }, null, 8, Nl)
1650
+ ]),
1651
+ td: A(({ td: u }) => [
1652
+ qt(Ke(u), 1)
1653
+ ]),
1654
+ _: 1
1655
+ }, 8, ["colNames", "head", "body", "config", "title"]))
1656
+ ]),
1657
+ _: 1
1658
+ }, 8, ["config"])) : Z("", !0),
1659
+ t.value.userOptions.buttons.annotator && g.value.length ? (w(), ie(Fl, {
1660
+ key: 5,
1661
+ parent: re.value,
1662
+ backgroundColor: t.value.style.chart.backgroundColor,
1663
+ color: t.value.style.chart.color,
1664
+ active: qe.value,
1665
+ onClose: tt
1666
+ }, null, 8, ["parent", "backgroundColor", "color", "active"])) : Z("", !0)
1667
+ ], 46, Rl));
1668
+ }
1669
+ }, aa = /* @__PURE__ */ zt(Bl, [["__scopeId", "data-v-b8851cb8"]]);
1670
+ export {
1671
+ aa as default
1672
+ };