vue-data-ui 3.19.8 → 3.20.0

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 (329) hide show
  1. package/README.md +1 -1
  2. package/dist/{A11yDataTable-q2-8fSlJ.js → A11yDataTable-BCbtxMU6.js} +1 -1
  3. package/dist/{Arrow-Cj6W6Xbi.js → Arrow-D6j6ocXm.js} +1 -1
  4. package/dist/{BaseDraggableDialog-DUUu2E2Q.js → BaseDraggableDialog-4hDW-Rj2.js} +4 -4
  5. package/dist/{BaseIcon-DM1x8hQF.js → BaseIcon-DfLoHNUj.js} +3 -3
  6. package/dist/{BaseLegendToggle-CJTwLGXL.js → BaseLegendToggle-C_Db-y7s.js} +2 -2
  7. package/dist/{BaseScanner-C7dmAref.js → BaseScanner-Dr2a1Msy.js} +1 -1
  8. package/dist/{BaseZoomControls-BkajQ8q9.js → BaseZoomControls-CG7hI_1P.js} +3 -3
  9. package/dist/{ColorPicker-DTQeqKUV.js → ColorPicker-Bjwxnvfh.js} +4 -4
  10. package/dist/{DataTable-DmE8Oo4i.js → DataTable-B--IN22e.js} +3 -3
  11. package/dist/{Legend-Gg5Q4Clb.js → Legend-Cz2uQ5gs.js} +4 -4
  12. package/dist/{NonSvgPenAndPaper-tvWXeCsd.js → NonSvgPenAndPaper-gLNJ1Lmr.js} +28 -28
  13. package/dist/{PackageVersion-zJAUEmyB.js → PackageVersion-xcyrdRmY.js} +2 -2
  14. package/dist/{PenAndPaper-DNgm6y3l.js → PenAndPaper-DqrClVfb.js} +11 -11
  15. package/dist/{Shape-DEGOZ6GG.js → Shape-BPCJfphn.js} +1 -1
  16. package/dist/{Slicer-CPWGgGSp.js → Slicer-SHBj0VaV.js} +19 -19
  17. package/dist/{SlicerPreview-BU3ZeHjR.js → SlicerPreview-DdihbUSJ.js} +474 -361
  18. package/dist/{SparkTooltip-c2DL7gqD.js → SparkTooltip-CfE6yCad.js} +7 -7
  19. package/dist/{Title-__gWq2g6.js → Title-NWp4qB4K.js} +2 -2
  20. package/dist/{Tooltip-CuWEYGr3.js → Tooltip-BENq327o.js} +1 -1
  21. package/dist/{UserOptions-D7zR0tnR.js → UserOptions-C1NgoGu6.js} +5 -5
  22. package/dist/components/arrow.js +1 -1
  23. package/dist/components/vue-ui-3d-bar.js +1 -1
  24. package/dist/components/vue-ui-accordion.js +1 -1
  25. package/dist/components/vue-ui-age-pyramid.js +1 -1
  26. package/dist/components/vue-ui-annotator.js +1 -1
  27. package/dist/components/vue-ui-bullet.js +1 -1
  28. package/dist/components/vue-ui-bump.js +1 -1
  29. package/dist/components/vue-ui-candlestick.js +1 -1
  30. package/dist/components/vue-ui-carousel-table.js +1 -1
  31. package/dist/components/vue-ui-chestnut.js +1 -1
  32. package/dist/components/vue-ui-chord.js +1 -1
  33. package/dist/components/vue-ui-circle-pack.js +1 -1
  34. package/dist/components/vue-ui-cursor.js +1 -1
  35. package/dist/components/vue-ui-dag.js +1 -1
  36. package/dist/components/vue-ui-dashboard.js +1 -1
  37. package/dist/components/vue-ui-digits.js +1 -1
  38. package/dist/components/vue-ui-donut-evolution.js +1 -1
  39. package/dist/components/vue-ui-donut.js +1 -1
  40. package/dist/components/vue-ui-dumbbell.js +1 -1
  41. package/dist/components/vue-ui-flow.js +1 -1
  42. package/dist/components/vue-ui-funnel.js +1 -1
  43. package/dist/components/vue-ui-galaxy.js +1 -1
  44. package/dist/components/vue-ui-gauge.js +1 -1
  45. package/dist/components/vue-ui-geo.js +1 -1
  46. package/dist/components/vue-ui-gizmo.js +1 -1
  47. package/dist/components/vue-ui-heatmap.js +1 -1
  48. package/dist/components/vue-ui-history-plot.js +1 -1
  49. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  50. package/dist/components/vue-ui-icon.js +1 -1
  51. package/dist/components/vue-ui-kpi.js +1 -1
  52. package/dist/components/vue-ui-mini-loader.js +1 -1
  53. package/dist/components/vue-ui-molecule.js +1 -1
  54. package/dist/components/vue-ui-mood-radar.js +1 -1
  55. package/dist/components/vue-ui-nested-donuts.js +1 -1
  56. package/dist/components/vue-ui-onion.js +1 -1
  57. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  58. package/dist/components/vue-ui-pattern-seed.js +1 -1
  59. package/dist/components/vue-ui-pattern.js +1 -1
  60. package/dist/components/vue-ui-quadrant.js +1 -1
  61. package/dist/components/vue-ui-quick-chart.js +1 -1
  62. package/dist/components/vue-ui-radar.js +1 -1
  63. package/dist/components/vue-ui-rating.js +1 -1
  64. package/dist/components/vue-ui-relation-circle.js +1 -1
  65. package/dist/components/vue-ui-ridgeline.js +1 -1
  66. package/dist/components/vue-ui-rings.js +1 -1
  67. package/dist/components/vue-ui-scatter.js +1 -1
  68. package/dist/components/vue-ui-skeleton.js +1 -1
  69. package/dist/components/vue-ui-smiley.js +1 -1
  70. package/dist/components/vue-ui-spark-trend.js +1 -1
  71. package/dist/components/vue-ui-sparkbar.js +1 -1
  72. package/dist/components/vue-ui-sparkgauge.js +1 -1
  73. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  74. package/dist/components/vue-ui-sparkline.js +1 -1
  75. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  76. package/dist/components/vue-ui-stackbar.js +1 -1
  77. package/dist/components/vue-ui-stackline.js +1 -1
  78. package/dist/components/vue-ui-strip-plot.js +1 -1
  79. package/dist/components/vue-ui-table-heatmap.js +1 -1
  80. package/dist/components/vue-ui-table-sparkline.js +1 -1
  81. package/dist/components/vue-ui-table.js +1 -1
  82. package/dist/components/vue-ui-thermometer.js +1 -1
  83. package/dist/components/vue-ui-timer.js +1 -1
  84. package/dist/components/vue-ui-tiremarks.js +1 -1
  85. package/dist/components/vue-ui-treemap.js +1 -1
  86. package/dist/components/vue-ui-vertical-bar.js +1 -1
  87. package/dist/components/vue-ui-waffle.js +1 -1
  88. package/dist/components/vue-ui-wheel.js +1 -1
  89. package/dist/components/vue-ui-word-cloud.js +1 -1
  90. package/dist/components/vue-ui-world.js +1 -1
  91. package/dist/components/vue-ui-xy-canvas.js +1 -1
  92. package/dist/components/vue-ui-xy.js +1 -1
  93. package/dist/{dom-to-png-9WSt6hXe.js → dom-to-png-BYtB4BF3.js} +1 -1
  94. package/dist/exposedLib-CI8ji8G-.js +19 -0
  95. package/dist/{geoProjections-CQIkC70z.js → geoProjections-Czak6Jn1.js} +3 -4
  96. package/dist/{img-BjOr008R.js → img-1cKsci8e.js} +2 -2
  97. package/dist/{labelUtils-Cr97N8E1.js → labelUtils-CUctkYoA.js} +1 -1
  98. package/dist/{lib-BkiwukKO.js → lib-DUeYQsS0.js} +4 -1
  99. package/dist/{pdf-DSXSFUnK.js → pdf-D0eZ99cP.js} +1 -1
  100. package/dist/style.css +1 -1
  101. package/dist/types/vue-data-ui.d.ts +1557 -193
  102. package/dist/types/vue-ui-3d-bar.d.ts +16 -1
  103. package/dist/types/vue-ui-age-pyramid.d.ts +14 -1
  104. package/dist/types/vue-ui-annotator.d.ts +28 -6
  105. package/dist/types/vue-ui-bullet.d.ts +14 -1
  106. package/dist/types/vue-ui-bump.d.ts +16 -1
  107. package/dist/types/vue-ui-candlestick.d.ts +16 -3
  108. package/dist/types/vue-ui-carousel-table.d.ts +14 -1
  109. package/dist/types/vue-ui-chestnut.d.ts +20 -1
  110. package/dist/types/vue-ui-chord.d.ts +20 -1
  111. package/dist/types/vue-ui-circle-pack.d.ts +16 -1
  112. package/dist/types/vue-ui-dag.d.ts +22 -1
  113. package/dist/types/vue-ui-dashboard.d.ts +16 -1
  114. package/dist/types/vue-ui-donut-evolution.d.ts +16 -1
  115. package/dist/types/vue-ui-donut.d.ts +18 -1
  116. package/dist/types/vue-ui-dumbbell.d.ts +16 -1
  117. package/dist/types/vue-ui-flow.d.ts +14 -1
  118. package/dist/types/vue-ui-funnel.d.ts +14 -1
  119. package/dist/types/vue-ui-galaxy.d.ts +18 -1
  120. package/dist/types/vue-ui-gauge.d.ts +14 -1
  121. package/dist/types/vue-ui-geo.d.ts +14 -1
  122. package/dist/types/vue-ui-heatmap.d.ts +16 -1
  123. package/dist/types/vue-ui-history-plot.d.ts +18 -1
  124. package/dist/types/vue-ui-horizontal-bar.d.ts +18 -1
  125. package/dist/types/vue-ui-molecule.d.ts +16 -1
  126. package/dist/types/vue-ui-mood-radar.d.ts +14 -1
  127. package/dist/types/vue-ui-nested-donuts.d.ts +18 -1
  128. package/dist/types/vue-ui-onion.d.ts +16 -1
  129. package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +18 -1
  130. package/dist/types/vue-ui-quadrant.d.ts +24 -1
  131. package/dist/types/vue-ui-quick-chart.d.ts +20 -1
  132. package/dist/types/vue-ui-radar.d.ts +16 -1
  133. package/dist/types/vue-ui-rating.d.ts +12 -1
  134. package/dist/types/vue-ui-relation-circle.d.ts +14 -1
  135. package/dist/types/vue-ui-ridgeline.d.ts +22 -1
  136. package/dist/types/vue-ui-rings.d.ts +16 -1
  137. package/dist/types/vue-ui-scatter.d.ts +16 -1
  138. package/dist/types/vue-ui-smiley.d.ts +22 -6
  139. package/dist/types/vue-ui-sparkbar.d.ts +14 -1
  140. package/dist/types/vue-ui-sparkhistogram.d.ts +14 -1
  141. package/dist/types/vue-ui-sparkline.d.ts +16 -1
  142. package/dist/types/vue-ui-sparkstackbar.d.ts +16 -1
  143. package/dist/types/vue-ui-stackbar.d.ts +22 -1
  144. package/dist/types/vue-ui-stackline.d.ts +22 -1
  145. package/dist/types/vue-ui-strip-plot.d.ts +16 -1
  146. package/dist/types/vue-ui-table-sparkline.d.ts +14 -1
  147. package/dist/types/vue-ui-table.d.ts +17 -4
  148. package/dist/types/vue-ui-thermometer.d.ts +14 -1
  149. package/dist/types/vue-ui-timer.d.ts +14 -1
  150. package/dist/types/vue-ui-tiremarks.d.ts +14 -1
  151. package/dist/types/vue-ui-treemap.d.ts +18 -1
  152. package/dist/types/vue-ui-waffle.d.ts +16 -1
  153. package/dist/types/vue-ui-wheel.d.ts +14 -1
  154. package/dist/types/vue-ui-word-cloud.d.ts +14 -1
  155. package/dist/types/vue-ui-world.d.ts +18 -1
  156. package/dist/types/vue-ui-xy-canvas.d.ts +18 -1
  157. package/dist/types/vue-ui-xy.d.ts +22 -1
  158. package/dist/{useAutoSizeLabelsInsideViewbox-dp-3Gg97.js → useAutoSizeLabelsInsideViewbox-BIVntRZp.js} +1 -1
  159. package/dist/{useConfig-ByaaSKhz.js → useConfig-DAyQk86L.js} +9 -1
  160. package/dist/{useNestedProp-Ck4hsrpu.js → useNestedProp-CNcoy38D.js} +2 -2
  161. package/dist/{useObjectBindings-BR1sGimd.js → useObjectBindings-BI7hP-BC.js} +53 -53
  162. package/dist/{usePrinter-X0yWOynH.js → usePrinter-C1Gqt_Sp.js} +2 -2
  163. package/dist/utils.js +4 -4
  164. package/dist/{vue-data-ui-Dv8MNDbS.js → vue-data-ui-qpQv-4uP.js} +69 -69
  165. package/dist/vue-data-ui.js +75 -75
  166. package/dist/{vue-ui-3d-bar-DVsF4qGd.js → vue-ui-3d-bar-C8cputoI.js} +312 -312
  167. package/dist/{vue-ui-accordion-BX9WL-QF.js → vue-ui-accordion-Dw4MHKVB.js} +6 -6
  168. package/dist/vue-ui-age-pyramid-Cv2Ndbb5.js +1238 -0
  169. package/dist/{vue-ui-annotator-Be3VpH8Z.js → vue-ui-annotator-DLPUAKlm.js} +66 -66
  170. package/dist/vue-ui-bullet-DLxmtMJ9.js +710 -0
  171. package/dist/{vue-ui-bump-C1w-a4ad.js → vue-ui-bump-DVaqtZbd.js} +260 -260
  172. package/dist/{vue-ui-candlestick-zO0Jmsen.js → vue-ui-candlestick-CkApimw1.js} +81 -81
  173. package/dist/vue-ui-carousel-table-CbfIBWl3.js +455 -0
  174. package/dist/vue-ui-chestnut-CQT4nCFL.js +2010 -0
  175. package/dist/vue-ui-chord-8IjSrg6f.js +1391 -0
  176. package/dist/{vue-ui-circle-pack-Dp5_ugXW.js → vue-ui-circle-pack-B1CpTtpw.js} +51 -51
  177. package/dist/{vue-ui-cursor-DBViygOD.js → vue-ui-cursor-NaTj5i2-.js} +6 -6
  178. package/dist/{vue-ui-dag-BA2vr2Ub.js → vue-ui-dag-DH4ocx0S.js} +46 -46
  179. package/dist/{vue-ui-dashboard-D11FCHnp.js → vue-ui-dashboard-Ckff1yim.js} +73 -73
  180. package/dist/{vue-ui-digits-CIXbRR97.js → vue-ui-digits-DwLlJqbW.js} +6 -6
  181. package/dist/vue-ui-donut-DQdIdwRU.js +2410 -0
  182. package/dist/vue-ui-donut-evolution-MfM5kK6w.js +1510 -0
  183. package/dist/vue-ui-dumbbell-B2T4vlK-.js +1530 -0
  184. package/dist/{vue-ui-flow-Dly7N0Nb.js → vue-ui-flow-CJh6f72m.js} +107 -107
  185. package/dist/vue-ui-funnel-C9gfXNCr.js +777 -0
  186. package/dist/vue-ui-galaxy-pBR_FESJ.js +1077 -0
  187. package/dist/vue-ui-gauge-CAemxCGl.js +920 -0
  188. package/dist/{vue-ui-geo-CV0FBeuB.js → vue-ui-geo-BDQqaukJ.js} +35 -35
  189. package/dist/{vue-ui-gizmo-5rdIvscj.js → vue-ui-gizmo-B1ppjqPj.js} +63 -63
  190. package/dist/{vue-ui-heatmap-kiQ6q3q4.js → vue-ui-heatmap-BiC9xp8L.js} +259 -259
  191. package/dist/vue-ui-history-plot-iAPjlOja.js +1554 -0
  192. package/dist/vue-ui-horizontal-bar-CcgClgLg.js +1681 -0
  193. package/dist/{vue-ui-kpi-Bz7QeCTV.js → vue-ui-kpi-CJ5oyYLS.js} +6 -6
  194. package/dist/{vue-ui-mini-loader-DDJUya9e.js → vue-ui-mini-loader-CyqBt2g4.js} +5 -5
  195. package/dist/vue-ui-molecule-Cg9ZHa6b.js +925 -0
  196. package/dist/{vue-ui-mood-radar-D0lanJ__.js → vue-ui-mood-radar-N8osOTFR.js} +36 -36
  197. package/dist/vue-ui-nested-donuts-CwH3wKgX.js +1487 -0
  198. package/dist/{vue-ui-onion-u9hGe4VA.js → vue-ui-onion-C56gFjO6.js} +296 -296
  199. package/dist/{vue-ui-parallel-coordinate-plot-BJ5OjYTH.js → vue-ui-parallel-coordinate-plot-C-jj819p.js} +203 -212
  200. package/dist/{vue-ui-pattern-seed-abRweCDE.js → vue-ui-pattern-seed-BB1honLm.js} +1 -1
  201. package/dist/{vue-ui-quadrant-BVFJ5Vur.js → vue-ui-quadrant-DYc9xZY3.js} +444 -444
  202. package/dist/vue-ui-quick-chart-BG7kK_-q.js +2469 -0
  203. package/dist/{vue-ui-radar-BsRGxgXN.js → vue-ui-radar-CgKog9Xw.js} +186 -183
  204. package/dist/{vue-ui-rating-D_QR_A3V.js → vue-ui-rating-BG4lf1z8.js} +41 -41
  205. package/dist/vue-ui-relation-circle-D-rUk-0P.js +924 -0
  206. package/dist/{vue-ui-ridgeline-BtNEP6ba.js → vue-ui-ridgeline-DPrlVJTW.js} +377 -377
  207. package/dist/{vue-ui-rings-Pj7yMeOV.js → vue-ui-rings-CIvvHHsF.js} +199 -196
  208. package/dist/vue-ui-scatter-CeBQJbGx.js +2413 -0
  209. package/dist/{vue-ui-skeleton-Cqv1KG4y.js → vue-ui-skeleton-BKoa_G6d.js} +44 -44
  210. package/dist/{vue-ui-smiley-rFdGxZK6.js → vue-ui-smiley-G89TxRU-.js} +14 -14
  211. package/dist/{vue-ui-spark-trend-eHleRq-z.js → vue-ui-spark-trend-DGOrPr9I.js} +121 -121
  212. package/dist/{vue-ui-sparkbar-BHJTG_on.js → vue-ui-sparkbar-BVumo-YD.js} +107 -107
  213. package/dist/{vue-ui-sparkgauge-DpAEwvLX.js → vue-ui-sparkgauge-BoCwdQcu.js} +56 -56
  214. package/dist/{vue-ui-sparkhistogram-BlMH_NJk.js → vue-ui-sparkhistogram-4qXY1LXW.js} +112 -112
  215. package/dist/vue-ui-sparkline-C0kzXrwI.js +1507 -0
  216. package/dist/{vue-ui-sparkstackbar-BI8zG-DG.js → vue-ui-sparkstackbar-DG7hz_KM.js} +137 -137
  217. package/dist/{vue-ui-stackbar-28FVVqVu.js → vue-ui-stackbar-Dnq4l5xs.js} +344 -341
  218. package/dist/vue-ui-stackline-CaNOHQYl.js +2398 -0
  219. package/dist/{vue-ui-strip-plot-DX36qFKk.js → vue-ui-strip-plot-D2CcJw_5.js} +79 -79
  220. package/dist/{vue-ui-table-DdZ_DkqT.js → vue-ui-table-NBQrkVnO.js} +84 -84
  221. package/dist/{vue-ui-table-heatmap-BFKyJTr1.js → vue-ui-table-heatmap-CCGjbSzQ.js} +22 -22
  222. package/dist/{vue-ui-table-sparkline-BSV1jn7r.js → vue-ui-table-sparkline-BZDkOEEl.js} +125 -125
  223. package/dist/vue-ui-thermometer-BXyHOQ7T.js +763 -0
  224. package/dist/{vue-ui-timer-BkdpZ-lw.js → vue-ui-timer-CcLK1wbi.js} +29 -29
  225. package/dist/{vue-ui-tiremarks-GC773Hw1.js → vue-ui-tiremarks-B6txvBg-.js} +25 -25
  226. package/dist/{vue-ui-treemap-C0dtbfbZ.js → vue-ui-treemap-O3SBpD3K.js} +241 -241
  227. package/dist/{vue-ui-waffle-BvzfNmJC.js → vue-ui-waffle-DN5zG3b0.js} +289 -289
  228. package/dist/{vue-ui-wheel-Dm9V8TAH.js → vue-ui-wheel-CxnJGXkX.js} +134 -134
  229. package/dist/{vue-ui-word-cloud-Ne_B9Elc.js → vue-ui-word-cloud-CM5yPCXb.js} +54 -54
  230. package/dist/{vue-ui-world-Bp38MZij.js → vue-ui-world-DCPgXKxh.js} +447 -447
  231. package/dist/{vue-ui-xy-canvas-B06Rit63.js → vue-ui-xy-canvas-BUPnRZ3C.js} +91 -90
  232. package/dist/vue-ui-xy-lfMIx0wK.js +4578 -0
  233. package/dist/{vue_ui_3d_bar-CXKqO5Ej.js → vue_ui_3d_bar-C4R7o-yX.js} +1 -1
  234. package/dist/{vue_ui_age_pyramid-BON8QI6X.js → vue_ui_age_pyramid-BY6c-oX_.js} +1 -1
  235. package/dist/{vue_ui_bullet-CE5sFT7u.js → vue_ui_bullet-ClzdLoOv.js} +1 -1
  236. package/dist/{vue_ui_bump-frnXaXul.js → vue_ui_bump-Vl-zYAtG.js} +1 -1
  237. package/dist/{vue_ui_candlestick-sY6UtOop.js → vue_ui_candlestick-J8jmJvxP.js} +1 -1
  238. package/dist/{vue_ui_chestnut-BiUZFv40.js → vue_ui_chestnut-D2oUhad6.js} +1 -1
  239. package/dist/{vue_ui_chord-DpyR_b9A.js → vue_ui_chord-DPfS1Umc.js} +1 -1
  240. package/dist/{vue_ui_circle_pack-FjH0ZQeb.js → vue_ui_circle_pack-DZC_rdfn.js} +1 -1
  241. package/dist/{vue_ui_dag-Ci_MOnvd.js → vue_ui_dag-TsJ_azQq.js} +1 -1
  242. package/dist/{vue_ui_donut-Cx2_BGcQ.js → vue_ui_donut-BDGqG07h.js} +1 -1
  243. package/dist/{vue_ui_donut_evolution-CAJefrHs.js → vue_ui_donut_evolution-D1yAAIHr.js} +1 -1
  244. package/dist/{vue_ui_dumbbell-CClzAZTN.js → vue_ui_dumbbell-Bfe_jFyi.js} +1 -1
  245. package/dist/{vue_ui_flow-CCHO1Lo9.js → vue_ui_flow-BewZjjKG.js} +1 -1
  246. package/dist/{vue_ui_funnel-h8q2mRpC.js → vue_ui_funnel-_Og4EEkO.js} +1 -1
  247. package/dist/{vue_ui_galaxy-70vtkEBw.js → vue_ui_galaxy-Ig0cc1_h.js} +1 -1
  248. package/dist/{vue_ui_gauge-C17CgfzN.js → vue_ui_gauge-Cf1RZc9q.js} +1 -1
  249. package/dist/{vue_ui_geo-C0UbQ0Lc.js → vue_ui_geo-B8TODs-G.js} +1 -1
  250. package/dist/{vue_ui_heatmap-BqPP3J4M.js → vue_ui_heatmap-B2BBBSWG.js} +1 -1
  251. package/dist/{vue_ui_history_plot-C5nytDHh.js → vue_ui_history_plot-CuN63VEc.js} +1 -1
  252. package/dist/{vue_ui_horizontal_bar-Bqxorkc_.js → vue_ui_horizontal_bar-C4J4QzXf.js} +1 -1
  253. package/dist/{vue_ui_molecule-Dka4JBOp.js → vue_ui_molecule-CO9L59SF.js} +1 -1
  254. package/dist/{vue_ui_mood_radar-Dg4ijm53.js → vue_ui_mood_radar-BA6LAKhk.js} +1 -1
  255. package/dist/{vue_ui_nested_donuts-BY9cOoHF.js → vue_ui_nested_donuts-B8csIoVO.js} +1 -1
  256. package/dist/{vue_ui_onion-DTV9cup-.js → vue_ui_onion-1FTFFS46.js} +1 -1
  257. package/dist/{vue_ui_parallel_coordinate_plot-CNWrDh96.js → vue_ui_parallel_coordinate_plot-CBiOBira.js} +1 -1
  258. package/dist/{vue_ui_quadrant-3kjYvxpj.js → vue_ui_quadrant-CDSTKTJz.js} +1 -1
  259. package/dist/{vue_ui_quick_chart--VaYQuM4.js → vue_ui_quick_chart-mZBdml3Z.js} +1 -1
  260. package/dist/{vue_ui_radar-Dxx9GJmj.js → vue_ui_radar-jafTED5j.js} +1 -1
  261. package/dist/{vue_ui_relation_circle-Cr0I2SoU.js → vue_ui_relation_circle-D0p4mXmv.js} +1 -1
  262. package/dist/{vue_ui_ridgeline-CAtYca4b.js → vue_ui_ridgeline-VM8_mx4J.js} +1 -1
  263. package/dist/{vue_ui_rings-DXC1VeX5.js → vue_ui_rings-BVgD2aMn.js} +1 -1
  264. package/dist/{vue_ui_scatter-D2S2j0ap.js → vue_ui_scatter-I0POnicu.js} +1 -1
  265. package/dist/{vue_ui_spark_trend-BHMQ6_1p.js → vue_ui_spark_trend-DxVmpkmC.js} +1 -1
  266. package/dist/{vue_ui_sparkbar-BR6hbuDE.js → vue_ui_sparkbar-z6qO--Kf.js} +1 -1
  267. package/dist/{vue_ui_sparkgauge-xfPRHnMv.js → vue_ui_sparkgauge-BX1MS3bA.js} +1 -1
  268. package/dist/{vue_ui_sparkhistogram-CJRENZ1C.js → vue_ui_sparkhistogram-BRgvKUH6.js} +1 -1
  269. package/dist/{vue_ui_sparkline-wgk7yO7E.js → vue_ui_sparkline-auZhap6Y.js} +1 -1
  270. package/dist/{vue_ui_sparkstackbar-C5qZMmAl.js → vue_ui_sparkstackbar-BOjuQnZd.js} +1 -1
  271. package/dist/{vue_ui_stackbar-BW_C3MXw.js → vue_ui_stackbar-COOrQQdK.js} +1 -1
  272. package/dist/{vue_ui_stackline-DXxzibUd.js → vue_ui_stackline-DQqKPA9z.js} +1 -1
  273. package/dist/{vue_ui_strip_plot-8ZelqC5b.js → vue_ui_strip_plot-CtJe8_gq.js} +1 -1
  274. package/dist/{vue_ui_table_heatmap-BGUjA0WA.js → vue_ui_table_heatmap-w8vx5k6f.js} +1 -1
  275. package/dist/{vue_ui_table_sparkline-i0Q-N_we.js → vue_ui_table_sparkline-DAbkUrNz.js} +1 -1
  276. package/dist/{vue_ui_thermometer-CuN7Gpez.js → vue_ui_thermometer-DxgqWKlE.js} +1 -1
  277. package/dist/{vue_ui_tiremarks-A6UHC0c3.js → vue_ui_tiremarks-CdEPieWV.js} +1 -1
  278. package/dist/{vue_ui_treemap-BQp06q-g.js → vue_ui_treemap-DoEtkRN6.js} +1 -1
  279. package/dist/{vue_ui_waffle-C_Ev4l7B.js → vue_ui_waffle-DIARFc7g.js} +1 -1
  280. package/dist/{vue_ui_wheel-DdkTPXJU.js → vue_ui_wheel-DZ_nR--t.js} +1 -1
  281. package/dist/{vue_ui_word_cloud-B1PbsYPc.js → vue_ui_word_cloud-C-qIMNLu.js} +1 -1
  282. package/dist/{vue_ui_xy-BYPqfYyx.js → vue_ui_xy-BLUkWEAm.js} +1 -1
  283. package/dist/{vue_ui_xy_canvas-CMHGNrLf.js → vue_ui_xy_canvas-Cb6dg3eK.js} +1 -1
  284. package/package.json +6 -6
  285. package/dist/exposedLib-CwWU4zv-.js +0 -19
  286. package/dist/vue-ui-age-pyramid-Bu3bocZx.js +0 -1238
  287. package/dist/vue-ui-bullet-COSSZ7RU.js +0 -710
  288. package/dist/vue-ui-carousel-table-Q2uTIELA.js +0 -455
  289. package/dist/vue-ui-chestnut-DdNKhXkN.js +0 -2010
  290. package/dist/vue-ui-chord-CYzGIRtA.js +0 -1391
  291. package/dist/vue-ui-donut-BSanYbqb.js +0 -2408
  292. package/dist/vue-ui-donut-evolution-BVttNIzH.js +0 -1510
  293. package/dist/vue-ui-dumbbell-D-KcBLOF.js +0 -1527
  294. package/dist/vue-ui-funnel-COwXzAbB.js +0 -777
  295. package/dist/vue-ui-galaxy-Cg9VStNF.js +0 -1074
  296. package/dist/vue-ui-gauge-DHWCS6jR.js +0 -920
  297. package/dist/vue-ui-history-plot-CgPjudHv.js +0 -1563
  298. package/dist/vue-ui-horizontal-bar-CpQCmBQD.js +0 -1681
  299. package/dist/vue-ui-molecule-CvfwMxYY.js +0 -925
  300. package/dist/vue-ui-nested-donuts-C-LWBXmg.js +0 -1484
  301. package/dist/vue-ui-quick-chart-Cd5lGyph.js +0 -2471
  302. package/dist/vue-ui-relation-circle-MxYh6hSt.js +0 -924
  303. package/dist/vue-ui-scatter-DrS1nrwL.js +0 -2413
  304. package/dist/vue-ui-sparkline-BAWc3ROJ.js +0 -1507
  305. package/dist/vue-ui-stackline-DwtlEdOE.js +0 -2395
  306. package/dist/vue-ui-thermometer-Io8LdW1o.js +0 -763
  307. package/dist/vue-ui-xy-BCeOqJYR.js +0 -4216
  308. /package/dist/{RecursiveCircles-DPpLel6f.js → RecursiveCircles-D6aDPmoe.js} +0 -0
  309. /package/dist/{RecursiveLabels-DBMJf_to.js → RecursiveLabels-D9rfID6q.js} +0 -0
  310. /package/dist/{RecursiveLinks-D06dBL4a.js → RecursiveLinks-BygcpDiT.js} +0 -0
  311. /package/dist/{_plugin-vue_export-helper-Dq1MygBL.js → _plugin-vue_export-helper-B3ysoDQm.js} +0 -0
  312. /package/dist/{canvas-lib-DTaADQOK.js → canvas-lib-BOP_HS11.js} +0 -0
  313. /package/dist/{patternUtils-B7BWu5bV.js → patternUtils-CS7hn6at.js} +0 -0
  314. /package/dist/{rolldown-runtime-CAFD8bLK.js → rolldown-runtime-Dy4uBu1J.js} +0 -0
  315. /package/dist/{useChartAccessibility-Do37qcw2.js → useChartAccessibility-DYqac8yF.js} +0 -0
  316. /package/dist/{useFitSvgText-C-MEdAfe.js → useFitSvgText-CT3nmlaS.js} +0 -0
  317. /package/dist/{usePanZoom-B-4M_gmY.js → usePanZoom-CYU3B4T3.js} +0 -0
  318. /package/dist/{usePrefersMotion-BywLbIko.js → usePrefersMotion-BC-CsqR1.js} +0 -0
  319. /package/dist/{useResponsive-CrAInupd.js → useResponsive-BfnK0KxU.js} +0 -0
  320. /package/dist/{useStableElementSize-0I1IpHPl.js → useStableElementSize-C7KADDKj.js} +0 -0
  321. /package/dist/{useSvgExport-Dtu973wa.js → useSvgExport-SVIsDot8.js} +0 -0
  322. /package/dist/{useTableResponsive-DrM1xqII.js → useTableResponsive-B24Uwt2E.js} +0 -0
  323. /package/dist/{useThemeCheck-rFK9Zlb_.js → useThemeCheck-C43Tcqmk.js} +0 -0
  324. /package/dist/{useTimeLabelCollider-Dm55Emzg.js → useTimeLabelCollider-AEcY4Ioe.js} +0 -0
  325. /package/dist/{useTimeLabels-C0x7zUXP.js → useTimeLabels-BmBRv27Y.js} +0 -0
  326. /package/dist/{useUserOptionState-CjPJPTg2.js → useUserOptionState-DK-_1ddE.js} +0 -0
  327. /package/dist/{vClickOutside-CbX_bC9A.js → vClickOutside-DUrZWttG.js} +0 -0
  328. /package/dist/{vue-ui-pattern-Bj-IPFr2.js → vue-ui-pattern-DKozfnVn.js} +0 -0
  329. /package/dist/{vue_ui_vertical_bar-CJSD1FZS.js → vue_ui_vertical_bar-CP-MKz1j.js} +0 -0
@@ -1,4216 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
2
- import { At as t, B as n, D as r, F as i, G as a, H as o, I as s, It as c, J as l, L as u, Lt as ee, M as te, Mt as d, O as f, Ot as p, P as m, R as ne, Rt as re, S as ie, St as ae, T as oe, Tt as h, X as se, _t as ce, a as g, c as le, dt as _, et as v, g as ue, h as de, i as fe, j as pe, jt as me, k as he, l as ge, mt as _e, n as ve, nt as ye, pt as be, r as xe, s as Se, v as y, w as Ce, x as we, y as Te, z as Ee, zt as De } from "./lib-BkiwukKO.js";
3
- import { n as Oe, r as ke, t as Ae } from "./useTimeLabels-C0x7zUXP.js";
4
- import { t as je } from "./useConfig-ByaaSKhz.js";
5
- import { t as Me } from "./usePrinter-X0yWOynH.js";
6
- import { n as Ne, t as Pe } from "./BaseScanner-C7dmAref.js";
7
- import { t as Fe } from "./useSvgExport-Dtu973wa.js";
8
- import { t as Ie } from "./useNestedProp-Ck4hsrpu.js";
9
- import { t as Le } from "./useThemeCheck-rFK9Zlb_.js";
10
- import { t as Re } from "./useStableElementSize-0I1IpHPl.js";
11
- import { t as ze } from "./useTimeLabelCollider-Dm55Emzg.js";
12
- import { t as Be } from "./img-BjOr008R.js";
13
- import { n as Ve } from "./Title-__gWq2g6.js";
14
- import { t as He } from "./vue_ui_xy-BYPqfYyx.js";
15
- import { t as Ue } from "./Shape-DEGOZ6GG.js";
16
- import { t as We } from "./_plugin-vue_export-helper-Dq1MygBL.js";
17
- import { t as Ge } from "./SlicerPreview-BU3ZeHjR.js";
18
- import { t as Ke } from "./vue-ui-accordion-BX9WL-QF.js";
19
- import { t as qe } from "./BaseLegendToggle-CJTwLGXL.js";
20
- import { t as Je } from "./A11yDataTable-q2-8fSlJ.js";
21
- import { Fragment as b, Teleport as Ye, computed as x, createBlock as Xe, createCommentVNode as S, createElementBlock as C, createElementVNode as w, createSlots as Ze, createTextVNode as Qe, createVNode as $e, defineAsyncComponent as et, getCurrentInstance as tt, guardReactiveProps as T, mergeProps as nt, nextTick as rt, normalizeClass as it, normalizeProps as at, normalizeStyle as E, onBeforeUnmount as ot, onMounted as st, openBlock as D, ref as O, renderList as k, renderSlot as A, resolveDynamicComponent as ct, shallowRef as lt, toDisplayString as ut, toRefs as dt, unref as j, useSlots as ft, vModelCheckbox as pt, watch as mt, watchEffect as ht, withCtx as M, withDirectives as gt } from "vue";
22
- //#region src/components/vue-ui-xy.vue
23
- var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt = ["id"], xt = { style: { position: "relative" } }, St = [
24
- "viewBox",
25
- "aria-label",
26
- "aria-describedby"
27
- ], Ct = [
28
- "x",
29
- "y",
30
- "width",
31
- "height"
32
- ], wt = { key: 1 }, Tt = { class: "vue-ui-xy-grid" }, Et = [
33
- "stroke",
34
- "x1",
35
- "x2",
36
- "y1",
37
- "y2"
38
- ], Dt = [
39
- "stroke",
40
- "x1",
41
- "x2",
42
- "y1",
43
- "y2"
44
- ], Ot = { key: 1 }, kt = [
45
- "x1",
46
- "x2",
47
- "y1",
48
- "y2",
49
- "stroke"
50
- ], At = [
51
- "x1",
52
- "x2",
53
- "y1",
54
- "y2",
55
- "stroke"
56
- ], jt = [
57
- "x1",
58
- "x2",
59
- "y1",
60
- "y2",
61
- "stroke"
62
- ], Mt = { key: 3 }, Nt = ["d", "stroke"], Pt = { key: 4 }, Ft = ["d", "stroke"], It = ["id"], Lt = ["stop-color"], Rt = ["stop-color"], zt = ["stop-color"], Bt = ["id"], Vt = ["stop-color"], Ht = ["stop-color"], Ut = ["stop-color"], Wt = ["id"], Gt = ["stop-color"], Kt = ["stop-color"], qt = ["id"], Jt = ["stop-color"], Yt = ["stop-color"], Xt = ["id"], Zt = ["stop-color"], Qt = ["stop-color"], $t = { key: 0 }, en = ["id"], tn = ["stop-color", "offset"], nn = [
63
- "x",
64
- "y",
65
- "height",
66
- "width",
67
- "fill"
68
- ], rn = [
69
- "x",
70
- "y",
71
- "width"
72
- ], an = { key: 0 }, on = [
73
- "x",
74
- "y",
75
- "height",
76
- "width",
77
- "fill"
78
- ], sn = [
79
- "x",
80
- "y",
81
- "height",
82
- "width",
83
- "rx",
84
- "fill",
85
- "stroke",
86
- "stroke-width"
87
- ], cn = [
88
- "x",
89
- "y",
90
- "height",
91
- "width",
92
- "rx",
93
- "fill",
94
- "stroke",
95
- "stroke-width"
96
- ], ln = [
97
- "width",
98
- "x",
99
- "y"
100
- ], un = [
101
- "stroke",
102
- "x1",
103
- "x2",
104
- "y1",
105
- "y2"
106
- ], dn = { key: 3 }, fn = [
107
- "x1",
108
- "x2",
109
- "y1",
110
- "y2",
111
- "stroke",
112
- "stroke-width",
113
- "stroke-dasharray"
114
- ], pn = [
115
- "x",
116
- "y",
117
- "width",
118
- "height",
119
- "stroke",
120
- "stroke-width",
121
- "stroke-linecap",
122
- "stroke-linejoin",
123
- "stroke-dasharray"
124
- ], mn = [
125
- "x1",
126
- "x2",
127
- "y1",
128
- "y2",
129
- "stroke",
130
- "stroke-width"
131
- ], hn = [
132
- "fill",
133
- "font-size",
134
- "transform"
135
- ], gn = [
136
- "x1",
137
- "x2",
138
- "y1",
139
- "y2",
140
- "stroke"
141
- ], _n = [
142
- "transform",
143
- "text-anchor",
144
- "font-size",
145
- "fill"
146
- ], vn = [
147
- "x1",
148
- "x2",
149
- "y1",
150
- "y2",
151
- "stroke"
152
- ], yn = [
153
- "transform",
154
- "font-size",
155
- "text-anchor",
156
- "fill"
157
- ], bn = [
158
- "width",
159
- "x",
160
- "y"
161
- ], xn = { style: { width: "100%" } }, Sn = [
162
- "d",
163
- "stroke",
164
- "stroke-width",
165
- "stroke-dasharray"
166
- ], Cn = [
167
- "d",
168
- "stroke",
169
- "stroke-width",
170
- "stroke-dasharray"
171
- ], wn = { key: 6 }, Tn = { key: 7 }, En = [
172
- "d",
173
- "fill",
174
- "fill-opacity"
175
- ], Dn = { key: 0 }, On = ["d", "fill"], kn = ["d", "fill"], An = ["d", "fill"], jn = ["d", "fill"], Mn = [
176
- "d",
177
- "stroke",
178
- "stroke-width",
179
- "stroke-dasharray"
180
- ], Nn = [
181
- "d",
182
- "stroke",
183
- "stroke-width",
184
- "stroke-dasharray"
185
- ], Pn = [
186
- "d",
187
- "stroke",
188
- "stroke-width",
189
- "stroke-dasharray"
190
- ], Fn = [
191
- "d",
192
- "stroke",
193
- "stroke-width",
194
- "stroke-dasharray"
195
- ], In = [
196
- "width",
197
- "x",
198
- "y"
199
- ], Ln = { style: { width: "100%" } }, Rn = { key: 8 }, zn = [
200
- "text-anchor",
201
- "font-size",
202
- "transform",
203
- "fill",
204
- "stroke",
205
- "innerHTML"
206
- ], Bn = [
207
- "x",
208
- "y",
209
- "font-size",
210
- "fill",
211
- "font-weight"
212
- ], Vn = { key: 9 }, Hn = [
213
- "transform",
214
- "text-anchor",
215
- "font-size",
216
- "fill",
217
- "stroke",
218
- "innerHTML"
219
- ], Un = { key: 10 }, Wn = ["x", "y"], Gn = ["innerHTML"], Kn = ["x", "y"], qn = ["innerHTML"], Jn = [
220
- "x1",
221
- "x2",
222
- "y1",
223
- "y2",
224
- "stroke"
225
- ], Yn = { key: 11 }, Xn = [
226
- "transform",
227
- "text-anchor",
228
- "font-size",
229
- "fill",
230
- "stroke",
231
- "innerHTML"
232
- ], Zn = { key: 12 }, Qn = ["x", "y"], $n = ["innerHTML"], er = ["x", "y"], tr = ["innerHTML"], nr = [
233
- "x1",
234
- "x2",
235
- "y1",
236
- "y2",
237
- "stroke"
238
- ], rr = [
239
- "x",
240
- "y",
241
- "font-size",
242
- "fill",
243
- "innerHTML"
244
- ], ir = [
245
- "x",
246
- "y",
247
- "font-size",
248
- "fill",
249
- "innerHTML"
250
- ], ar = [
251
- "x",
252
- "y",
253
- "font-size",
254
- "fill",
255
- "innerHTML"
256
- ], or = [
257
- "x",
258
- "y",
259
- "font-size",
260
- "fill",
261
- "innerHTML"
262
- ], sr = { key: 0 }, cr = ["id"], lr = ["fill", "stroke"], ur = [
263
- "x1",
264
- "x2",
265
- "y1",
266
- "y2",
267
- "stroke",
268
- "marker-end"
269
- ], dr = [
270
- "x1",
271
- "x2",
272
- "y1",
273
- "y2",
274
- "stroke",
275
- "marker-end"
276
- ], fr = [
277
- "x",
278
- "y",
279
- "font-size",
280
- "fill",
281
- "stroke"
282
- ], pr = [
283
- "id",
284
- "x1",
285
- "x2"
286
- ], mr = ["stop-color"], hr = ["stop-color"], gr = [
287
- "x",
288
- "y",
289
- "width",
290
- "height",
291
- "fill",
292
- "onMouseenter"
293
- ], _r = [
294
- "font-size",
295
- "fill",
296
- "transform"
297
- ], vr = [
298
- "x",
299
- "y",
300
- "font-size",
301
- "fill"
302
- ], yr = [
303
- "text-anchor",
304
- "font-size",
305
- "fill",
306
- "transform",
307
- "onClick"
308
- ], br = [
309
- "text-anchor",
310
- "font-size",
311
- "fill",
312
- "transform",
313
- "innerHTML",
314
- "onClick"
315
- ], xr = { key: 15 }, Sr = [
316
- "x1",
317
- "y1",
318
- "x2",
319
- "y2",
320
- "stroke",
321
- "stroke-width",
322
- "stroke-dasharray"
323
- ], Cr = [
324
- "x1",
325
- "y1",
326
- "x2",
327
- "y2",
328
- "stroke",
329
- "stroke-width",
330
- "stroke-dasharray"
331
- ], wr = [
332
- "y",
333
- "x",
334
- "width",
335
- "height",
336
- "fill"
337
- ], Tr = [
338
- "id",
339
- "x",
340
- "y",
341
- "font-size",
342
- "fill",
343
- "text-anchor"
344
- ], Er = {
345
- key: 16,
346
- style: { "pointer-events": "none" }
347
- }, Dr = ["x", "y"], Or = ["innerHTML"], kr = [
348
- "cx",
349
- "cy",
350
- "r",
351
- "fill"
352
- ], Ar = ["data-start", "data-end"], jr = {
353
- key: 0,
354
- style: {
355
- position: "absolute",
356
- top: "100%",
357
- left: "0",
358
- width: "100%"
359
- },
360
- "data-dom-to-png-ignore": "",
361
- "aria-hidden": "true"
362
- }, Mr = {
363
- key: 5,
364
- class: "vue-data-ui-watermark"
365
- }, Nr = {
366
- class: "vue-ui-xy-tag-arrow",
367
- height: "20",
368
- viewBox: "0 0 10 20",
369
- style: {
370
- position: "absolute",
371
- right: "100%",
372
- top: "50%",
373
- transform: "translateY(-50%)"
374
- }
375
- }, Pr = ["fill"], Fr = ["innerHTML"], Ir = {
376
- class: "vue-ui-xy-tag-arrow",
377
- height: "100%",
378
- viewBox: "0 0 10 20",
379
- style: {
380
- position: "absolute",
381
- left: "100%",
382
- top: "50%",
383
- transform: "translateY(-50%)"
384
- }
385
- }, Lr = ["fill"], Rr = ["innerHTML"], zr = {
386
- class: "vue-ui-xy-tag-arrow",
387
- height: "20",
388
- viewBox: "0 0 10 20",
389
- style: {
390
- position: "absolute",
391
- right: "100%",
392
- top: "50%",
393
- transform: "translateY(-50%)"
394
- }
395
- }, Br = ["fill"], Vr = ["innerHTML"], Hr = {
396
- class: "vue-ui-xy-tag-arrow",
397
- height: "100%",
398
- viewBox: "0 0 10 20",
399
- style: {
400
- position: "absolute",
401
- left: "100%",
402
- top: "50%",
403
- transform: "translateY(-50%)"
404
- }
405
- }, Ur = ["fill"], Wr = ["innerHTML"], Gr = ["id"], Kr = ["onClick", "onKeydown"], qr = {
406
- key: 0,
407
- viewBox: "0 0 20 12",
408
- height: "1em",
409
- width: "1.43em",
410
- "aria-hidden": "true"
411
- }, Jr = ["stroke", "fill"], Yr = {
412
- key: 1,
413
- viewBox: "0 0 40 40",
414
- height: "1em",
415
- width: "1em",
416
- "aria-hidden": "true"
417
- }, Xr = ["fill"], Zr = ["fill"], Qr = {
418
- key: 2,
419
- viewBox: "0 0 12 12",
420
- height: "1em",
421
- width: "1em",
422
- "aria-hidden": "true"
423
- }, $r = {
424
- style: {
425
- display: "flex",
426
- "flex-direction": "row",
427
- gap: "6px",
428
- "align-items": "center",
429
- "padding-left": "6px"
430
- },
431
- "data-dom-to-png-ignore": ""
432
- }, ei = ["innerHTML"], N = /* @__PURE__ */ We({
433
- __name: "vue-ui-xy",
434
- props: {
435
- config: {
436
- type: Object,
437
- default() {
438
- return {};
439
- }
440
- },
441
- dataset: {
442
- type: Array,
443
- default() {
444
- return [];
445
- }
446
- },
447
- selectedXIndex: {
448
- type: Number,
449
- default: void 0
450
- }
451
- },
452
- emits: [
453
- "selectTimeLabel",
454
- "selectX",
455
- "selectLegend",
456
- "zoomStart",
457
- "zoomEnd",
458
- "zoomReset",
459
- "copyAlt"
460
- ],
461
- setup(e, { expose: We, emit: _t }) {
462
- let N = e, ti = et(() => import("./DataTable-DmE8Oo4i.js")), ni = et(() => import("./Tooltip-CuWEYGr3.js")), ri = et(() => import("./UserOptions-D7zR0tnR.js").then((e) => e.n)), ii = et(() => import("./BaseIcon-DM1x8hQF.js").then((e) => e.n)), ai = et(() => import("./vue-ui-table-sparkline-BSV1jn7r.js").then((e) => e.n)), oi = et(() => import("./PackageVersion-zJAUEmyB.js").then((e) => e.t)), si = et(() => import("./PenAndPaper-DNgm6y3l.js").then((e) => e.t)), ci = et(() => import("./BaseDraggableDialog-DUUu2E2Q.js").then((e) => e.n)), li = _t, ui = ft(), di = tt(), { vue_ui_xy: fi } = je(), { isThemeValid: pi, warnInvalidTheme: mi } = Le(), hi = O(null), gi = O(null), _i = O(null), vi = O(null), yi = O(null), bi = O(null), xi = O(null), Si = O(null), Ci = O(null), wi = O(null), Ti = O(null), Ei = O(null), Di = O(null), Oi = O(null), ki = O(0), P = O(null), Ai = O(!0), ji = O(600), F = O(1e3), Mi = O("0 0 1000 600"), Ni = O({
463
- x: 0,
464
- y: 0
465
- }), Pi = O({
466
- line: "line",
467
- bar: "bar",
468
- plot: "plot"
469
- }), Fi = O(!1), Ii = O(!1), Li = O(!1), Ri = O(null), I = O([]), L = O(o()), zi = O(0), Bi = O(0), Vi = O(0), Hi = O(!0), Ui = O(0), R = O(null), Wi = O(!1), Gi = O(!0), Ki = O(!0), z = O(null), qi = O({}), Ji = O(null), Yi = O(!1), Xi = O(null), Zi = O(!1), Qi = O(!1), B = O(null), $i = O(null), ea = O({
470
- x: 0,
471
- y: 0
472
- }), ta = lt(null), na = O(!1), ra = O(0), ia = O(0), aa = Re({
473
- elementRef: ta,
474
- minimumWidth: 2,
475
- minimumHeight: 2,
476
- stableFramesRequired: 2,
477
- once: !1,
478
- onSizeAccepted: () => {
479
- ca();
480
- }
481
- });
482
- function oa() {
483
- ta.value = hi.value?.parentNode ?? null;
484
- }
485
- function sa() {
486
- return new Promise((e) => {
487
- requestAnimationFrame(() => {
488
- requestAnimationFrame(e);
489
- });
490
- });
491
- }
492
- async function ca() {
493
- let e = ++ia.value;
494
- na.value = !1, await rt(), await sa(), await sa(), e === ia.value && (ra.value += 1, na.value = !0);
495
- }
496
- let la = x(() => ({
497
- height: ji.value,
498
- width: F.value
499
- }));
500
- function ua(e) {
501
- return Number.isFinite(e) ? Math.max(0, Math.floor(e)) : 0;
502
- }
503
- function da(e, t, n = 0) {
504
- return Number.isFinite(e) && Number.isFinite(t) && Math.abs(t) > 1e-9 ? e / t : n;
505
- }
506
- let fa = O(!1), pa = O(null), ma = O(null), V = O({
507
- xAxis: 18,
508
- yAxis: 12,
509
- dataLabels: 20,
510
- plotLabels: 10
511
- }), ha = O({
512
- plot: 3,
513
- line: 3
514
- });
515
- st(() => {
516
- Yi.value = !0, N.dataset.length && N.dataset.forEach((e, t) => {
517
- [null, void 0].includes(e.series) && se({
518
- componentName: "VueUiXy",
519
- type: "datasetSerieAttribute",
520
- property: "series (number[])",
521
- index: t,
522
- debug: xa.value
523
- });
524
- }), oa(), aa.start(), ca();
525
- });
526
- function ga() {
527
- if (!Object.keys(N.config || {}).length) return fi;
528
- let e = Ie({
529
- userConfig: N.config,
530
- defaultConfig: fi
531
- });
532
- N.config && _(N.config, "chart.highlightArea") && (Array.isArray(N.config.chart.highlightArea) ? e.chart.highlightArea = N.config.chart.highlightArea : e.chart.highlightArea = [N.config.chart.highlightArea]), N.config && _(N.config, "chart.annotations") && Array.isArray(N.config.chart.annotations) && N.config.chart.annotations.length ? e.chart.annotations = N.config.chart.annotations.map((e) => Ie({
533
- defaultConfig: fi.chart.annotations[0],
534
- userConfig: e
535
- })) : e.chart.annotations = [], N.config && _(N.config, "chart.grid.position") && N.config.chart.grid.position === "start" && N.dataset.length && N.dataset.some((e) => e.type === "bar") && (e.chart.grid.position = "middle", _(N.config, "debug") && console.warn("Vue Data UI - VueUiXy - config.chart.grid.position was overriden to `middle` because your dataset contains a bar")), N.config && _(N.config, "chart.highlightArea") && (Array.isArray(N.config.chart.highlightArea) ? e.chart.highlightArea = N.config.chart.highlightArea.map((e) => _a({
536
- defaultConfig: fi.chart.highlightArea,
537
- userConfig: e
538
- })) : e.chart.highlightArea = _a({
539
- defaultConfig: fi.chart.highlightArea,
540
- userConfig: N.config.chart.highlightArea
541
- }));
542
- let t = e.theme;
543
- if (!t) return e;
544
- if (!pi.value(e)) return mi(e), e;
545
- let n = Ie({
546
- userConfig: He[t] || N.config,
547
- defaultConfig: e
548
- }), r = Ie({
549
- userConfig: N.config,
550
- defaultConfig: n
551
- });
552
- return {
553
- ...r,
554
- customPalette: r.customPalette.length ? r.customPalette : ee[t] || h
555
- };
556
- }
557
- function _a({ defaultConfig: e, userConfig: t }) {
558
- return Ie({
559
- defaultConfig: e,
560
- userConfig: t
561
- });
562
- }
563
- let va = x({
564
- get() {
565
- return !!N.dataset && N.dataset.length;
566
- },
567
- set(e) {
568
- return e;
569
- }
570
- }), H = O(ga()), ya = x(() => H.value.chart.userOptions.useCursorPointer), U = O({
571
- dataLabels: { show: !0 },
572
- showTooltip: !0,
573
- showTable: !1,
574
- isStacked: !1,
575
- useIndividualScale: !1
576
- });
577
- function ba() {
578
- let e = H.value.chart.grid.labels.yAxis.stacked, t = H.value.chart.grid.labels.yAxis.useIndividualScale;
579
- if (!fa.value) {
580
- U.value = {
581
- dataLabels: { show: !0 },
582
- showTooltip: H.value.chart.tooltip.show === !0,
583
- showTable: H.value.showTable === !0,
584
- isStacked: e,
585
- useIndividualScale: t
586
- }, pa.value = e, ma.value = t, fa.value = !0;
587
- return;
588
- }
589
- U.value.showTooltip = H.value.chart.tooltip.show === !0, e !== pa.value && (U.value.isStacked = e, pa.value = e), t !== ma.value && (U.value.useIndividualScale = t, ma.value = t), U.value.isStacked && (U.value.useIndividualScale = !0);
590
- }
591
- let xa = x(() => !!H.value.debug), Sa = x(() => De({
592
- defaultConfig: {
593
- useCssAnimation: !1,
594
- showTable: !1,
595
- chart: {
596
- annotations: [],
597
- highlightArea: [],
598
- backgroundColor: "#99999930",
599
- grid: {
600
- stroke: "#6A6A6A",
601
- labels: {
602
- show: !1,
603
- axis: {
604
- yLabel: "",
605
- xLabel: ""
606
- },
607
- xAxisLabels: { show: !1 },
608
- yAxis: {
609
- commonScaleSteps: 10,
610
- useNiceScale: !0,
611
- scaleMin: 0,
612
- scaleMax: 134
613
- },
614
- zeroLine: { show: !0 }
615
- }
616
- },
617
- padding: {
618
- top: 12,
619
- bottom: 24,
620
- left: 24,
621
- right: 24
622
- },
623
- userOptions: { show: !1 },
624
- zoom: {
625
- show: !1,
626
- startIndex: null,
627
- endIndex: null
628
- }
629
- },
630
- bar: {
631
- serieName: { show: !1 },
632
- labels: { show: !1 },
633
- border: {
634
- useSerieColor: !1,
635
- stroke: "#999999"
636
- }
637
- },
638
- line: {
639
- dot: {
640
- useSerieColor: !1,
641
- fill: "#8A8A8A"
642
- },
643
- labels: { show: !1 }
644
- }
645
- },
646
- userConfig: H.value.skeletonConfig ?? {}
647
- })), Ca = x(() => N.config?.skeletonDataset ?? [{
648
- name: "",
649
- series: [
650
- 0,
651
- 1,
652
- 2,
653
- 3,
654
- 5,
655
- 8,
656
- 13,
657
- 21,
658
- 34,
659
- 55,
660
- 89,
661
- 134
662
- ],
663
- type: "line",
664
- smooth: !0,
665
- color: "#BABABA"
666
- }, {
667
- name: "",
668
- series: [
669
- 0,
670
- .5,
671
- 1,
672
- 1.5,
673
- 2.5,
674
- 4,
675
- 6.5,
676
- 10.5,
677
- 17,
678
- 27.5,
679
- 44.5,
680
- 67
681
- ],
682
- type: "bar",
683
- color: "#CACACA"
684
- }]), { loading: wa, FINAL_DATASET: W, manualLoading: Ta } = Ne({
685
- ...dt(N),
686
- FINAL_CONFIG: H,
687
- prepareConfig: ga,
688
- callback: () => {
689
- Promise.resolve().then(async () => {
690
- (!H.value.chart.zoom.keepState || !ko.value || K.value.start === 0 && K.value.end === 0) && await No(), U.value.showTable = H.value.showTable;
691
- });
692
- },
693
- skeletonDataset: Ca.value,
694
- skeletonConfig: De({
695
- defaultConfig: H.value,
696
- userConfig: Sa.value
697
- })
698
- });
699
- function Ea(e) {
700
- let t = /* @__PURE__ */ new WeakMap();
701
- return (n, ...r) => {
702
- let i = t.get(n), a = JSON.stringify(r);
703
- if (i && i.has(a)) return i.get(a);
704
- let o = e(n, ...r);
705
- return i || (i = /* @__PURE__ */ new Map(), t.set(n, i)), i.set(a, o), o;
706
- };
707
- }
708
- let Da = Ea((e, t) => ce({
709
- data: e,
710
- threshold: t
711
- })), Oa = (e) => Da(e, H.value.downsample.threshold), G = x({
712
- get: () => Math.max(...W.value.map((e) => Oa(e.series).length)),
713
- set: (e) => e
714
- }), K = O({
715
- start: 0,
716
- end: G.value
717
- }), ka = O({
718
- start: 0,
719
- end: G.value
720
- }), Aa = x(() => H.value.chart.zoom.preview.enable && (ka.value.start !== K.value.start || ka.value.end !== K.value.end));
721
- function ja(e, t) {
722
- ka.value[e] = t;
723
- }
724
- function Ma() {
725
- let e = Math.max(1, ...W.value.map((e) => Oa(e.series).length)), t = Math.max(0, Math.min(K.value.start ?? 0, e - 1)), n = Math.max(t + 1, Math.min(K.value.end ?? e, e));
726
- (!Number.isFinite(t) || !Number.isFinite(n) || n <= t) && (t = 0, n = e), K.value = {
727
- start: t,
728
- end: n
729
- }, ka.value.start = t, ka.value.end = n, _i.value && (_i.value.setStartValue(t), _i.value.setEndValue(n));
730
- }
731
- let Na = x(() => {
732
- let { left: e, top: t, width: n, height: r } = Y.value, i = K.value.start, a = K.value.end - i, o = n / a, s = ka.value.start - i, c = ka.value.end - i, l = Math.max(0, Math.min(a, s)), u = Math.max(0, Math.min(a, c));
733
- return {
734
- x: e + l * o,
735
- y: t,
736
- width: (u - l) * o,
737
- height: r,
738
- fill: H.value.chart.zoom.preview.fill,
739
- stroke: H.value.chart.zoom.preview.stroke,
740
- "stroke-width": H.value.chart.zoom.preview.strokeWidth,
741
- "stroke-dasharray": H.value.chart.zoom.preview.strokeDasharray,
742
- "stroke-linecap": "round",
743
- "stroke-linejoin": "round",
744
- style: {
745
- pointerEvents: "none",
746
- transition: "none !important",
747
- animation: "none !important"
748
- }
749
- };
750
- });
751
- mt(() => N.selectedXIndex, (e) => {
752
- if ([null, void 0].includes(N.selectedXIndex)) {
753
- B.value = null;
754
- return;
755
- }
756
- let t = e - K.value.start;
757
- t < 0 || e >= K.value.end ? B.value = null : B.value = t ?? null;
758
- }, { immediate: !0 });
759
- let { isPrinting: Pa, isImaging: Fa, generatePdf: Ia, generateImage: La } = Me({
760
- elementId: `vue-ui-xy_${L.value}`,
761
- fileName: H.value.chart.title.text || "vue-ui-xy",
762
- options: H.value.chart.userOptions.print
763
- }), Ra = O(!1), za = x(() => we(H.value.customPalette)), Ba = x(() => {
764
- let e = H.value.chart.grid.labels.yAxis.scaleMin;
765
- if (e == null) return null;
766
- let t = Number(e);
767
- return Number.isFinite(t) ? t : null;
768
- }), Va = x(() => Ba.value === null ? Vo.value : Y.value.bottom), Ha = x(() => {
769
- let e = H.value.chart.grid.labels.yAxis.scaleMax;
770
- if (e == null) return null;
771
- let t = Number(e);
772
- return Number.isFinite(t) ? t : null;
773
- }), Ua = x(() => Ba.value !== null || Ha.value !== null), Wa = x(() => {
774
- let e = Ya.value.filter((e) => !I.value.includes(e.id)).flatMap((e) => Array.isArray(e.series) ? e.series : []).filter(Number.isFinite);
775
- return e.length ? {
776
- min: Math.min(...e),
777
- max: Math.max(...e)
778
- } : {
779
- min: 0,
780
- max: 1
781
- };
782
- });
783
- function Ga(e, t) {
784
- let n = Number.isFinite(e) ? e : 0, r = Number.isFinite(t) ? t : 1;
785
- return n === r ? r = n + 1 : n > r && ([n, r] = [r, n]), {
786
- min: n,
787
- max: r
788
- };
789
- }
790
- let Ka = x(() => {
791
- let { min: e, max: t } = Wa.value;
792
- if (!Ua.value) {
793
- let t = e;
794
- return t > 0 ? 0 : t;
795
- }
796
- let n = Ba.value === null ? e > 0 ? 0 : e : Ba.value, r = Ha.value === null ? t : Ha.value;
797
- return Ga(e < n ? e : n, t > r ? t : r).min;
798
- }), qa = x(() => {
799
- let { min: e, max: t } = Wa.value;
800
- if (!Ua.value) {
801
- let e = t;
802
- return Ka.value === e ? e + 1 : e;
803
- }
804
- let n = Ba.value === null ? e > 0 ? 0 : e : Ba.value, r = Ha.value === null ? t : Ha.value;
805
- return Ga(e < n ? e : n, t > r ? t : r).max;
806
- }), q = x(() => H.value.chart.grid.labels.yAxis.useNiceScale ? de(Ka.value, qa.value < 0 ? 0 : qa.value, H.value.chart.grid.labels.yAxis.commonScaleSteps) : ue(Ka.value, qa.value < 0 ? 0 : qa.value, H.value.chart.grid.labels.yAxis.commonScaleSteps)), Ja = x(() => [null, void 0].includes(H.value.chart.grid.labels.yAxis.scaleMin) ? q.value.min >= 0 ? 0 : Math.abs(q.value.min) : -q.value.min), Ya = x(() => Ai.value ? W.value.map((e, t) => {
807
- let n = Oa(e.series), r = `uniqueId_${t}`;
808
- return {
809
- ...e,
810
- slotAbsoluteIndex: t,
811
- series: n.map((e) => _e(e) ? e : null).slice(K.value.start, K.value.end),
812
- color: Te(e.color ? e.color : za.value[t] ? za.value[t] : h[t]),
813
- id: r,
814
- scaleLabel: e.scaleLabel || r
815
- };
816
- }) : W.value), Xa = x(() => Ya.value.map((e, t) => ({
817
- absoluteIndex: t,
818
- ...e,
819
- series: e.series.map((e) => e + Ja.value),
820
- absoluteValues: e.series,
821
- segregate: () => cs(e),
822
- isSegregated: I.value.includes(e.id)
823
- }))), Za = x(() => Ya.value.map((e, t) => ({
824
- ...e,
825
- series: e.series.map((e) => e + Ja.value),
826
- absoluteValues: e.series
827
- })).filter((e) => !I.value.includes(e.id))), Qa = x(() => I.value.length === Xa.value.length), J = x(() => H.value.chart.grid.labels.yAxis.position === "right");
828
- function $a() {
829
- let e = 0;
830
- Ti.value && (e = Array.from(Ti.value.querySelectorAll("text")).reduce((e, t) => {
831
- let n = t.getComputedTextLength();
832
- return n > e ? n : e;
833
- }, 0));
834
- let t = Ci.value ? Ci.value.getBoundingClientRect().width + H.value.chart.grid.labels.axis.yLabelOffsetX + V.value.yAxis : 0, n = e + H.value.chart.grid.labels.yAxis.scaleValueOffsetX + H.value.chart.grid.labels.yAxis.crosshairSize;
835
- return {
836
- left: J.value ? 0 : n + t,
837
- right: J.value ? n + t : 0,
838
- scaleLabelsOffset: n,
839
- yAxisLabelWidth: t
840
- };
841
- }
842
- let eo = O(0), to = O(0);
843
- function no() {
844
- let e = wi.value;
845
- if (!e) {
846
- eo.value = 0, to.value = 0;
847
- return;
848
- }
849
- try {
850
- let t = e.getBBox();
851
- eo.value = t?.height ?? 0, to.value = t?.x ?? 0;
852
- } catch {
853
- eo.value = 0, to.value = 0;
854
- }
855
- }
856
- let ro = x(() => {
857
- let e = 0;
858
- if (Si.value) try {
859
- e = Si.value.getBBox().height || 0;
860
- } catch {
861
- e = 0;
862
- }
863
- return e + eo.value + V.value.xAxis;
864
- }), io = x(() => W.value.some((e) => e.useProgression));
865
- function ao() {
866
- return H.value.chart.grid.labels.yAxis.crosshairSize + H.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 + H.value.chart.grid.labels.yAxis.labelWidth + H.value.chart.grid.labels.axis.yLabelOffsetX + V.value.dataLabels * .8;
867
- }
868
- let Y = x(() => {
869
- ra.value;
870
- let e = 0, t = 0, n = 0, r = 0;
871
- if (H.value.chart.grid.labels.show) if (U.value.useIndividualScale && !U.value.isStacked) J.value ? t = (W.value.length - I.value.length) * ao() : e = (W.value.length - I.value.length) * (H.value.chart.grid.labels.yAxis.labelWidth + 36);
872
- else if (U.value.useIndividualScale && U.value.isStacked) {
873
- let n = H.value.chart.grid.labels.yAxis.labelWidth + 36;
874
- J.value ? t = n : e = n;
875
- } else {
876
- let i = $a();
877
- e = i.left, t = i.right, n = i.scaleLabelsOffset, r = i.yAxisLabelWidth;
878
- }
879
- let i = H.value.chart.labels.fontSize * 1.1, a = io.value ? 24 : 6;
880
- wi.value && to.value < 0 && (e += Math.abs(to.value));
881
- let o = F.value - e - t - a - H.value.chart.padding?.left - H.value.chart.padding?.right;
882
- return {
883
- top: H.value.chart.padding?.top + i,
884
- right: e + (J.value ? 0 : H.value.chart.grid.labels.yAxis.crosshairSize) + H.value.chart.padding?.left + o,
885
- bottom: ji.value - ro.value - H.value.chart.padding?.bottom - H.value.chart.grid.labels.axis.xLabelOffsetY,
886
- left: e + (J.value ? 0 : H.value.chart.grid.labels.yAxis.crosshairSize) + H.value.chart.padding?.left,
887
- height: ji.value - ro.value - H.value.chart.padding?.top - H.value.chart.padding?.bottom - i - H.value.chart.grid.labels.axis.xLabelOffsetY,
888
- width: o,
889
- scaleLabelX: e,
890
- rightScaleLabelX: t,
891
- scaleLabelsOffset: n,
892
- yAxisLabelWidth: r,
893
- individualOffsetX: 36
894
- };
895
- }), oo = x(() => {
896
- let e = +(H.value.chart.grid.position === "middle"), t = Z.value + e, n = v(Y.value?.top), r = v(Y.value?.bottom);
897
- return Array.from({ length: t }).map((e, t) => {
898
- let i = H.value.chart.grid.position === "middle" ? Ss(t) : xs(t);
899
- return `M${i},${n} L${i},${r}`;
900
- }).join(" ");
901
- }), so = x(() => {
902
- if (!H.value.chart.grid.labels.xAxis.showCrosshairs) return "";
903
- bs.value;
904
- let e = H.value.chart.grid.labels.xAxis.crosshairSize, t = H.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero;
905
- return bo.value.map((n, r) => {
906
- if (!n || !n.text) return null;
907
- let i = xs(r);
908
- return `M${i},${t ? Vo.value - (Vo.value === Y.value?.bottom ? 0 : e / 2) : Y.value?.bottom} L${i},${t ? Vo.value + e / (Vo.value === Y.value?.bottom ? 1 : 2) : Y.value?.bottom + e}`;
909
- }).filter(Boolean).join(" ");
910
- });
911
- function co() {
912
- return !!di?.vnode.props?.onSelectTimeLabel;
913
- }
914
- function lo(e, t, n) {
915
- return Ji.value ||= document.createElement("canvas").getContext("2d"), Ji.value.font = `${n || "normal"} ${e}px ${t || "sans-serif"}`, Ji.value;
916
- }
917
- function uo() {
918
- let e = hi.value.querySelectorAll(".vue-ui-xy-tag");
919
- e.length && Array.from(e).forEach((e) => e.style.opacity = "0");
920
- }
921
- function fo(e, t, n, r, i) {
922
- n && (qi.value[`${e}_${t}_${r}_${i}`] = n);
923
- }
924
- let po = O(!1);
925
- async function mo(e = !1) {
926
- await rt(), po.value = e, Wi.value && (Ki.value = e);
927
- }
928
- function ho() {
929
- Fi.value = !Fi.value;
930
- }
931
- let X = O([]), go = O([]), _o = 0;
932
- ht(() => {
933
- let e = ++_o;
934
- (async () => {
935
- let t = Math.max(...W.value.map((e) => ce({
936
- data: e.series,
937
- threshold: H.value.downsample.threshold
938
- }).length)), n = await Ae({
939
- values: H.value.chart.grid.labels.xAxisLabels.values,
940
- maxDatapoints: t,
941
- formatter: H.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
942
- start: K.value.start,
943
- end: K.value.end
944
- });
945
- e === _o && (X.value = n);
946
- })();
947
- });
948
- let vo = 0;
949
- ht(() => {
950
- let e = ++vo;
951
- (async () => {
952
- let t = Math.max(...W.value.map((e) => ce({
953
- data: e.series,
954
- threshold: H.value.downsample.threshold
955
- }).length)), n = await Ae({
956
- values: H.value.chart.grid.labels.xAxisLabels.values,
957
- maxDatapoints: t,
958
- formatter: H.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
959
- start: 0,
960
- end: G.value
961
- });
962
- e === vo && (go.value = n);
963
- })();
964
- });
965
- let yo = x(() => {
966
- let e = H.value.chart.grid.labels.xAxisLabels.modulo;
967
- return X.value.length ? Math.min(e, [...new Set(X.value.map((e) => e.text))].length) : e;
968
- }), bo = x(() => {
969
- let e = H.value.chart.grid.labels.xAxisLabels, t = X.value || [], n = go.value || [], r = K.value.start ?? 0, i = B.value, a = Z.value, o = t.map((e) => e?.text ?? ""), s = n.map((e) => e?.text ?? "");
970
- return Se(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Math.max(1, yo.value || 1), o, s, r, i, a);
971
- }), xo = x(() => (bo.value || []).map((e) => e?.text ?? "").join("|"));
972
- st(() => {
973
- requestAnimationFrame(() => {
974
- no();
975
- }), mt([
976
- () => xo.value,
977
- () => H.value.chart.grid.labels.xAxisLabels.rotation,
978
- () => V.value.xAxis,
979
- () => F.value,
980
- () => ji.value
981
- ], async () => {
982
- await rt(), requestAnimationFrame(() => {
983
- no();
984
- });
985
- }, { flush: "post" });
986
- }), ot(() => {
987
- eo.value = 0, to.value = 0, aa.stop();
988
- });
989
- function So(e, t) {
990
- li("selectTimeLabel", {
991
- datapoint: Za.value.map((e) => ({
992
- shape: e.shape ?? e.type === "bar" ? "square" : "circle",
993
- name: e.name,
994
- color: e.color,
995
- type: e.type,
996
- value: e.absoluteValues.find((e, n) => n === t),
997
- comments: e.comments || [],
998
- prefix: e.prefix || H.value.chart.labels.prefix,
999
- suffix: e.suffix || H.value.chart.labels.suffix
1000
- })),
1001
- absoluteIndex: e.absoluteIndex,
1002
- label: e.text
1003
- });
1004
- }
1005
- let Z = x(() => {
1006
- let e = ua((K.value.end ?? 0) - (K.value.start ?? 0));
1007
- return Math.max(1, e);
1008
- });
1009
- function Co(e) {
1010
- R.value = e;
1011
- }
1012
- function wo() {
1013
- U.value.isStacked = !U.value.isStacked, U.value.isStacked ? U.value.useIndividualScale = !0 : U.value.useIndividualScale = H.value.chart.grid.labels.yAxis.useIndividualScale;
1014
- }
1015
- function To(e) {
1016
- xa.value && e.autoScaling && (H.value.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${e.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`), H.value.chart.grid.labels.yAxis.stacked || console.warn(`VueUiXy (datapoint: ${e.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
1017
- }
1018
- function Eo(e, t) {
1019
- let n = ua(e), r = Array(n).fill(0);
1020
- for (let e = 0; e < t.length && e < n; e += 1) r[e] = t[e] ?? 0;
1021
- return r;
1022
- }
1023
- function Do(e) {
1024
- let t = Math.max(...W.value.map((e) => Oa(e.series).length));
1025
- return e > t ? t : e < 0 || H.value.chart.zoom.startIndex !== null && e < H.value.chart.zoom.startIndex ? H.value.chart.zoom.startIndex === null ? 1 : H.value.chart.zoom.startIndex + 1 : e;
1026
- }
1027
- let Oo = O(!1), ko = O(!1), Ao = O(0), jo = O(0);
1028
- function Mo(e, t) {
1029
- let n = Number(e), r = Number(t);
1030
- return !Number.isFinite(n) || !Number.isFinite(r) ? !1 : !Object.is(n, r);
1031
- }
1032
- function No() {
1033
- if (!Oo.value) {
1034
- Oo.value = !0;
1035
- try {
1036
- let { startIndex: e, endIndex: t } = H.value.chart.zoom, n = H.value.chart.zoom.keepState ? Math.max(0, ...W.value.map((e) => Oa(e.series).length)) : Math.max(...W.value.map((e) => Oa(e.series).length));
1037
- if (H.value.chart.zoom.keepState && n <= 0) return;
1038
- Ao.value = 0, jo.value = n;
1039
- let r = e ?? 0, i = t == null ? n : Math.min(Do(t + 1), n);
1040
- Po.value = !0, K.value.start = r, K.value.end = i, ka.value.start = r, ka.value.end = i, Ma(), ko.value = !0;
1041
- } finally {
1042
- queueMicrotask(() => {
1043
- Po.value = !1;
1044
- }), Oo.value = !1;
1045
- }
1046
- }
1047
- }
1048
- let Po = O(!1);
1049
- function Fo(e) {
1050
- if (Oo.value || Po.value) return;
1051
- let t = Number(e);
1052
- li("zoomStart", {
1053
- index: t,
1054
- isZoom: Mo(t, Ao.value)
1055
- }), Number.isFinite(t) && t !== K.value.start && (K.value.start = t, ka.value.start = t, Ma());
1056
- }
1057
- function Io(e) {
1058
- if (Oo.value || Po.value) return;
1059
- let t = Do(e);
1060
- li("zoomEnd", {
1061
- index: t,
1062
- isZoom: Mo(t, jo.value)
1063
- }), t !== K.value.end && (K.value.end = t, ka.value.end = t, Ma());
1064
- }
1065
- async function Lo() {
1066
- await No(), li("zoomReset");
1067
- }
1068
- function Ro(e) {
1069
- return ![
1070
- null,
1071
- void 0,
1072
- NaN,
1073
- Infinity,
1074
- -Infinity
1075
- ].includes(e);
1076
- }
1077
- let zo = x(() => q.value.max + Ja.value);
1078
- function Bo(e) {
1079
- return e / (Ro(zo.value) ? zo.value : 1);
1080
- }
1081
- let Vo = x(() => isNaN(Bo(Ja.value)) ? Y.value?.bottom : Y.value?.bottom - Y.value.height * Bo(Ja.value));
1082
- function Ho(e) {
1083
- let t = q.value.min, n = q.value.max - t;
1084
- return !Number.isFinite(e) || !Number.isFinite(n) || n === 0 ? Y.value?.bottom : Y.value?.bottom - Y.value.height * ((e - t) / n);
1085
- }
1086
- let Uo = x(() => q.value.min <= 0 && q.value.max >= 0 ? Ho(0) : q.value.min > 0 ? Ho(q.value.min) : Ho(q.value.max));
1087
- function Wo(e) {
1088
- let t = ![null, void 0].includes(H.value.chart.grid.labels.yAxis.scaleMin) && H.value.chart.grid.labels.yAxis.scaleMin > 0 && Ka.value >= 0 ? Y.value?.bottom : Vo.value;
1089
- return e.value >= 0 ? y(t - e.y <= 0 ? 1e-5 : t - e.y) : y(e.y - Vo.value <= 0 ? 1e-5 : e.y - Vo.value);
1090
- }
1091
- function Go(e) {
1092
- return e.value >= 0 ? y(e.zeroPosition - e.y <= 0 ? 1e-5 : e.zeroPosition - e.y) : y(e.y - e.zeroPosition <= 0 ? 1e-5 : e.zeroPosition - e.y);
1093
- }
1094
- let Ko = x(() => {
1095
- let e = Math.max(1, Z.value);
1096
- return {
1097
- bar: da(Math.max(1, Y.value.width), e * Math.max(1, Ya.value.filter((e) => e.type === "bar" && !I.value.includes(e.id)).length), 1),
1098
- plot: ys.value,
1099
- line: ys.value
1100
- };
1101
- });
1102
- function qo() {
1103
- return U.value.useIndividualScale && U.value.isStacked ? Ko.value.line - Y.value.width / Z.value * .1 : Ko.value.bar;
1104
- }
1105
- function Jo(e) {
1106
- return U.value.useIndividualScale && U.value.isStacked ? e.x + Y.value.width / Z.value * .05 : e.x + Ko.value.bar / 2;
1107
- }
1108
- function Yo(e) {
1109
- return e.value >= 0 ? e.y : [
1110
- null,
1111
- void 0,
1112
- NaN,
1113
- Infinity,
1114
- -Infinity
1115
- ].includes(Vo.value) ? Y?.bottom.value : Vo.value;
1116
- }
1117
- function Xo(e) {
1118
- return e.value >= 0 ? e.y : [
1119
- null,
1120
- void 0,
1121
- NaN,
1122
- Infinity,
1123
- -Infinity
1124
- ].includes(e.zeroPosition) ? 0 : e.zeroPosition;
1125
- }
1126
- let Zo = O(null);
1127
- function Qo(e) {
1128
- let t = z.value;
1129
- if (!t) return null;
1130
- if (t.createSVGPoint && t.getScreenCTM) {
1131
- let n = t.createSVGPoint();
1132
- n.x = e.clientX, n.y = e.clientY;
1133
- let r = t.getScreenCTM();
1134
- if (r) {
1135
- let e = n.matrixTransform(r.inverse());
1136
- return {
1137
- x: e.x,
1138
- y: e.y,
1139
- ok: !0
1140
- };
1141
- }
1142
- }
1143
- let n = t.getBoundingClientRect(), r = t.viewBox?.baseVal || {
1144
- x: 0,
1145
- y: 0,
1146
- width: n.width,
1147
- height: n.height
1148
- }, i = Math.min(n.width / r.width, n.height / r.height), a = r.width * i, o = r.height * i, s = (n.width - a) / 2, c = (n.height - o) / 2;
1149
- return {
1150
- x: (e.clientX - n?.left - s) / i + r.x,
1151
- y: (e.clientY - n?.top - c) / i + r.y,
1152
- ok: !0
1153
- };
1154
- }
1155
- let $o = 0;
1156
- function es(e) {
1157
- $i.value = null, !Fi.value && ($o && cancelAnimationFrame($o), $o = requestAnimationFrame(() => {
1158
- $o = 0;
1159
- let t = Qo(e);
1160
- if (!t || !z.value) {
1161
- ts();
1162
- return;
1163
- }
1164
- let { left: n, right: r, top: i, bottom: a, width: o } = Y.value;
1165
- if (t.x < n || t.x > r || t.y < i || t.y > a) {
1166
- ts();
1167
- return;
1168
- }
1169
- let s = Ts(t.x);
1170
- s == null ? ts() : Zo.value !== s && (Zo.value = s, ec(!0, s));
1171
- }));
1172
- }
1173
- function ts() {
1174
- $o &&= (cancelAnimationFrame($o), 0), Zo.value = null, ec(!1, null);
1175
- }
1176
- function ns(e) {
1177
- let t = Qo(e);
1178
- if (t && z.value) {
1179
- let { left: e, right: n, top: r, bottom: i, width: a } = Y.value;
1180
- if (t.x >= e && t.x <= n && t.y >= r && t.y <= i) {
1181
- let e = Ts(t.x);
1182
- if (e != null) {
1183
- rs(e);
1184
- return;
1185
- }
1186
- }
1187
- }
1188
- Zo.value != null && rs(Zo.value);
1189
- }
1190
- function rs(e) {
1191
- let t = Za.value.map((t) => ({
1192
- name: t.name,
1193
- value: [
1194
- null,
1195
- void 0,
1196
- NaN
1197
- ].includes(t.absoluteValues[e]) ? null : t.absoluteValues[e],
1198
- color: t.color,
1199
- type: t.type
1200
- }));
1201
- li("selectX", {
1202
- dataset: t,
1203
- index: e,
1204
- indexLabel: H.value.chart.grid.labels.xAxisLabels.values[e]
1205
- }), H.value.events.datapointClick && H.value.events.datapointClick({
1206
- datapoint: t,
1207
- seriesIndex: e + K.value.start
1208
- });
1209
- }
1210
- function is() {
1211
- return Xa.value.map((e) => ({
1212
- values: e.absoluteValues,
1213
- color: e.color,
1214
- name: e.name,
1215
- type: e.type
1216
- }));
1217
- }
1218
- async function as({ scale: e = 2 } = {}) {
1219
- if (!hi.value) return;
1220
- let { width: t, height: n } = hi.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Be({
1221
- domElement: hi.value,
1222
- base64: !0,
1223
- img: !0,
1224
- scale: e
1225
- });
1226
- return {
1227
- imageUri: i,
1228
- base64: a,
1229
- title: H.value.chart.title.text,
1230
- width: t,
1231
- height: n,
1232
- aspectRatio: r
1233
- };
1234
- }
1235
- function os() {
1236
- I.value.length ? I.value = [] : Xa.value.forEach((e) => {
1237
- I.value.push(e.id);
1238
- });
1239
- }
1240
- function ss(e, t) {
1241
- (e.key === "Enter" || e.key === " ") && (e.preventDefault(), cs(t));
1242
- }
1243
- function cs(e) {
1244
- if (I.value.includes(e.id)) I.value = I.value.filter((t) => t !== e.id);
1245
- else {
1246
- if (I.value.length + 1 === Ya.value.length) return;
1247
- I.value.push(e.id);
1248
- }
1249
- li("selectLegend", Za.value.map((e) => ({
1250
- name: e.name,
1251
- values: e.absoluteValues,
1252
- color: e.color,
1253
- type: e.type
1254
- }))), Ui.value += 1;
1255
- }
1256
- function ls(e) {
1257
- return Xa.value.length ? Xa.value.find((t) => t.name === e) || (H.value.debug && console.warn(`VueUiXy - Series name not found "${e}"`), null) : (H.value.debug && console.warn("VueUiXy - There are no series to show."), null);
1258
- }
1259
- function us(e) {
1260
- let t = ls(e);
1261
- t !== null && I.value.includes(t.id) && cs({ id: t.id });
1262
- }
1263
- function ds(e) {
1264
- let t = ls(e);
1265
- t !== null && (I.value.includes(t.id) || cs({ id: t.id }));
1266
- }
1267
- let fs = x(() => `${H.value.chart.title.text || "Chart visualization"}. ${H.value.chart.title.subtitle.text || ""}`), ps = x(() => ({ linePlot: Z.value > H.value.line.dot.hideAboveMaxSerieLength })), ms = x(() => H.value.chart.userOptions.show && (!H.value.chart.title.show || !H.value.chart.title.text)), hs = x(() => {
1268
- if (Array.isArray(H.value.chart.highlightArea)) return H.value.chart.highlightArea.map((e) => {
1269
- let t = Math.min(e.to, G.value - 1);
1270
- return {
1271
- ...e,
1272
- span: e.from === t ? 1 : t < e.from ? 0 : t - e.from + 1
1273
- };
1274
- });
1275
- let e = {
1276
- ...H.value.chart.highlightArea,
1277
- to: Math.min(H.value.chart.highlightArea.to, G.value - 1)
1278
- };
1279
- return [{
1280
- ...e,
1281
- span: e.from === e.to ? 1 : e.to < e.from ? 0 : e.to - e.from + 1
1282
- }];
1283
- }), gs = x(() => Ai.value ? W.value.map((e, t) => ({
1284
- ...e,
1285
- series: Oa(e.series),
1286
- id: `uniqueId_${t}`,
1287
- color: Te(e.color ? e.color : za.value[t] ? za.value[t] : h[t])
1288
- })) : W.value), _s = x(() => Za.value.map((e) => {
1289
- let t = e.absoluteValues.map((e) => [void 0, null].includes(e) ? 0 : e);
1290
- return {
1291
- id: e.id,
1292
- name: e.name,
1293
- color: e.color,
1294
- values: Eo(Z.value, t)
1295
- };
1296
- })), vs = x(() => ({
1297
- responsiveBreakpoint: H.value.table.responsiveBreakpoint,
1298
- roundingValues: H.value.table.rounding,
1299
- showAverage: !1,
1300
- showMedian: !1,
1301
- showTotal: !1,
1302
- fontFamily: H.value.chart.fontFamily,
1303
- prefix: H.value.chart.labels.prefix,
1304
- suffix: H.value.chart.labels.suffix,
1305
- colNames: X.value.map((e, t) => H.value.table.useDefaultTimeFormat ? e.text : Js.value(t + K.value.start, H.value.table.timeFormat)),
1306
- thead: {
1307
- backgroundColor: H.value.table.th.backgroundColor,
1308
- color: H.value.table.th.color,
1309
- outline: H.value.table.th.outline
1310
- },
1311
- tbody: {
1312
- backgroundColor: H.value.table.td.backgroundColor,
1313
- color: H.value.table.td.color,
1314
- outline: H.value.table.td.outline
1315
- },
1316
- userOptions: { show: !1 },
1317
- sparkline: { animation: { show: !1 } }
1318
- })), ys = x(() => {
1319
- let e = Math.max(0, Y.value?.width || 0);
1320
- return H.value.chart.grid.position === "middle" ? da(e, Math.max(1, Z.value), 1) : da(e, Math.max(1, Z.value - 1), 0);
1321
- }), bs = x(() => H.value.chart.grid.position === "middle" ? ys.value : Z.value <= 1 ? Math.max(0, Y.value?.width || 0) : ys.value);
1322
- function xs(e) {
1323
- let t = Y.value?.left || 0;
1324
- return H.value.chart.grid.position === "middle" ? t + ys.value / 2 + ys.value * e : t + ys.value * e;
1325
- }
1326
- function Ss(e) {
1327
- let t = Y.value?.left || 0;
1328
- return H.value.chart.grid.position === "middle" ? t + ys.value * e : Z.value <= 1 ? t : t + ys.value * e - ys.value / 2;
1329
- }
1330
- function Cs(e) {
1331
- return Math.max(Y.value?.left || 0, Ss(e));
1332
- }
1333
- function ws(e) {
1334
- let t = Y.value?.left || 0, n = Y.value?.right || 0, r = Ss(e), i = r + bs.value;
1335
- return Math.max(1e-5, Math.min(n, i) - Math.max(t, r));
1336
- }
1337
- function Ts(e) {
1338
- let t = Y.value?.left || 0, n = Y.value?.right || 0;
1339
- for (let r = 0; r < Z.value; r += 1) {
1340
- let i = Math.max(t, Ss(r)), a = Math.min(n, Ss(r) + bs.value);
1341
- if (e >= i && e <= a) return r;
1342
- }
1343
- return null;
1344
- }
1345
- function Es(e) {
1346
- let t = Y.value?.left || 0, n = Y.value?.right || 0, r = Ss(e), i = r + bs.value;
1347
- return Math.max(1e-5, Math.min(n, i) - Math.max(t, r));
1348
- }
1349
- function Ds(e) {
1350
- return Math.max(1e-5, bs.value * e);
1351
- }
1352
- let Os = x(() => g(Xa.value.filter((e) => !I.value.includes(e.id))));
1353
- function ks(e, t) {
1354
- let n = Object.create(null);
1355
- for (let r = 0; r < e.length; r += 1) {
1356
- let i = e[r], a = String(t(i));
1357
- n[a] || (n[a] = []), n[a].push(i);
1358
- }
1359
- return n;
1360
- }
1361
- let Q = x(() => {
1362
- let e = ks(Os.value, (e) => e.scaleLabel), t = {};
1363
- for (let [n, r] of Object.entries(e)) {
1364
- let e = r.flatMap((e) => e.absoluteValues);
1365
- t[n] = {
1366
- min: Math.min(...e) || 0,
1367
- max: Math.max(...e) || 1,
1368
- groupId: `scale_group_${o()}`
1369
- };
1370
- }
1371
- return t;
1372
- }), As = x(() => {
1373
- let e = Ya.value.filter((e) => e.type === "bar").filter((e) => !I.value.includes(e.id)).length;
1374
- return Y.value.width / Z.value / e - js.value * e;
1375
- }), js = x(() => Ko.value.line * H.value.bar.periodGap), Ms = x(() => Math.max(1e-5, qo() - (U.value.useIndividualScale && U.value.isStacked ? 0 : js.value))), Ns = x(() => Ms.value * Math.min(Math.abs(H.value.bar.innerGap), .95)), Ps = x(() => {
1376
- if (!H.value.chart.zoom.minimap.show) return [];
1377
- let e = gs.value.filter((e) => !I.value.includes(e.id)), t = Math.max(...e.map((e) => e.series.length)), n = [];
1378
- for (let r = 0; r < t; r += 1) n.push(e.map((e) => e.series[r] || 0).reduce((e, t) => (e || 0) + (t || 0), 0));
1379
- let r = Math.min(...n);
1380
- return n.map((e) => e + (r < 0 ? Math.abs(r) : 0));
1381
- }), Fs = x(() => H.value.chart.zoom.minimap.show ? gs.value.map((e) => ({
1382
- ...e,
1383
- isVisible: !I.value.includes(e.id)
1384
- })) : []), Is = x(() => Za.value.map((e) => ({
1385
- slotAbsoluteIndex: e.slotAbsoluteIndex,
1386
- shape: e.shape || e.type === "bar" ? "square" : "circle",
1387
- name: e.name,
1388
- color: e.color,
1389
- type: e.type,
1390
- value: e.absoluteValues.find((e, t) => t === B.value),
1391
- comments: e.comments || [],
1392
- prefix: e.prefix || H.value.chart.labels.prefix,
1393
- suffix: e.suffix || H.value.chart.labels.suffix
1394
- }))), Ls = x(() => q.value.ticks.map((e) => ({
1395
- y: e >= 0 ? Vo.value - Y.value.height * Bo(e) : Vo.value + Y.value.height * Bo(Math.abs(e)),
1396
- value: e,
1397
- prefix: H.value.chart.labels.prefix,
1398
- suffix: H.value.chart.labels.suffix
1399
- }))), Rs = x(() => {
1400
- let e = H.value.chart.annotations;
1401
- if (!e || !Array.isArray(e) || e.every((e) => !e.show)) return [];
1402
- let t = e.filter((e) => e.show && (e.yAxis.yTop != null || e.yAxis.yBottom != null));
1403
- if (!t.length) return [];
1404
- let { left: n, right: r } = Y.value, i = Vo.value, a = Y.value.height, s = q.value.min, c = q.value.max - s, l = (e) => i - (e - 0) / c * a;
1405
- return t.map((e) => {
1406
- let { yAxis: { yTop: t, yBottom: i, label: a } } = e, s = t != null && i != null && t !== i, c = t == null ? null : l(t), u = i == null ? null : l(i), ee = lo(a.fontSize);
1407
- ee.font = `${a.fontSize}px sans-serif`;
1408
- let te = ee.measureText(a.text).width, d = a.fontSize, f = (a.position === "start" ? n + a.padding?.left : r - a.padding?.right) + a.offsetX, p = (c != null && u != null ? Math.min(c, u) : c ?? u) - a.fontSize / 3 + a.offsetY - a.padding?.top, m;
1409
- m = a.textAnchor === "middle" ? f - te / 2 - a.padding?.left : a.textAnchor === "end" ? f - te - a.padding?.right : f - a.padding?.left;
1410
- let ne = p - d * .75 - a.padding?.top;
1411
- return {
1412
- show: ![
1413
- c,
1414
- u,
1415
- ne
1416
- ].includes(NaN),
1417
- id: `annotation_y_${o()}`,
1418
- hasArea: s,
1419
- areaHeight: s ? Math.abs(c - u) : 0,
1420
- yTop: c,
1421
- yBottom: u,
1422
- config: e.yAxis,
1423
- x1: n,
1424
- x2: r,
1425
- _text: {
1426
- x: f,
1427
- y: p
1428
- },
1429
- _box: {
1430
- x: m,
1431
- y: ne,
1432
- width: te + a.padding?.left + a.padding?.right,
1433
- height: d + a.padding?.top + a.padding?.bottom,
1434
- fill: a.backgroundColor,
1435
- stroke: a.border.stroke,
1436
- rx: a.border.rx,
1437
- ry: a.border.ry,
1438
- strokeWidth: a.border.strokeWidth
1439
- }
1440
- };
1441
- });
1442
- });
1443
- function zs(e, t) {
1444
- let n = e[t - 1], r = e[t + 1], i = !!n && !!r && n.value == null && r.value == null || !n && !!r && r.value == null || !!n && !r && n.value == null;
1445
- return Ro(e[t].value) && i && H.value.line.cutNullValues;
1446
- }
1447
- function Bs({ datapoint: e, totalSeries: t, gap: n, usableHeight: r, autoScaleValueMin: i, autoScaleValueMax: a, individualExtremes: o, forceExactScale: s = !1 }) {
1448
- let c = e.scaleSteps || H.value.chart.grid.labels.yAxis.commonScaleSteps, l = 1.0000001, u = s || !H.value.chart.grid.labels.yAxis.useNiceScale ? ue : de, ee = o.max === o.min ? o.max * l : o.max, te = a === i ? a * l : a, d = u(o.min, ee, c), f = u(i, te, c), p = d.min >= 0 ? 0 : Math.abs(d.min), m = d.max + Math.abs(p), ne = f.max + 0, re = e.stackIndex, ie = t - 1 - re, ae = U.value.isStacked ? 1 - e.cumulatedStackRatio : 0, oe = U.value.isStacked ? r * ae + n * ie : 0, h = U.value.isStacked ? r * e.stackRatio : Y.value.height;
1449
- return {
1450
- scaleSteps: c,
1451
- individualScale: d,
1452
- autoScaleSteps: f,
1453
- individualZero: p,
1454
- autoScaleZero: 0,
1455
- individualMax: m,
1456
- autoScaleMax: ne,
1457
- yOffset: oe,
1458
- individualHeight: h,
1459
- zeroPosition: Y.value?.bottom - oe - h * p / m,
1460
- autoScaleZeroPosition: Y.value?.bottom - oe - h * 0 / ne
1461
- };
1462
- }
1463
- let Vs = x(() => {
1464
- let e = Os.value.filter((e) => [
1465
- "bar",
1466
- "line",
1467
- "plot"
1468
- ].includes(e.type)), t = e.length, n = H.value.chart.grid.labels.yAxis.gap, r = U.value.isStacked ? n * (t - 1) : 0, i = Y.value.height - r;
1469
- return e.filter((e) => e.type === "bar").map((e, r) => {
1470
- To(e);
1471
- let a = Q.value[e.scaleLabel].min, o = Q.value[e.scaleLabel].max, s = {
1472
- ratios: e.absoluteValues.filter((e) => ![null, void 0].includes(e)).map((e) => (e - a) / (o - a)),
1473
- valueMin: a,
1474
- valueMax: o < 0 ? 0 : o
1475
- }, c = {
1476
- max: e.scaleMax || Math.max(...e.absoluteValues) || 1,
1477
- min: e.scaleMin || Math.min(...e.absoluteValues.filter((e) => ![void 0, null].includes(e))) > 0 ? 0 : Math.min(...e.absoluteValues.filter((e) => ![null, void 0].includes(e)))
1478
- }, { individualScale: l, autoScaleSteps: u, individualZero: ee, individualMax: te, autoScaleMax: d, yOffset: f, individualHeight: p, zeroPosition: m, autoScaleZeroPosition: ne } = Bs({
1479
- datapoint: e,
1480
- totalSeries: t,
1481
- gap: n,
1482
- usableHeight: i,
1483
- autoScaleValueMin: s.valueMin,
1484
- autoScaleValueMax: s.valueMax,
1485
- individualExtremes: c
1486
- }), re = Xa.value.filter((e) => e.type === "bar").filter((e) => !I.value.includes(e.id)).length, ie = e.series.map((t, n) => {
1487
- let i = U.value.useIndividualScale ? (e.absoluteValues[n] + ee) / te : Bo(t), a = U.value.useIndividualScale && U.value.isStacked ? Y.value?.left + Y.value.width / Z.value * n : Y.value?.left + Ko.value.bar * r + Ko.value.bar * n * re - As.value / 2 - r * js.value;
1488
- return {
1489
- yOffset: y(f),
1490
- individualHeight: y(p),
1491
- x: y(a),
1492
- y: Y.value?.bottom - f - p * i,
1493
- value: e.absoluteValues[n],
1494
- zeroPosition: y(m),
1495
- individualMax: y(te),
1496
- comment: e.comments && e.comments.slice(K.value.start, K.value.end)[n] || ""
1497
- };
1498
- }), ae = e.absoluteValues.map((e) => u.min >= 0 ? (e - Math.abs(u.min)) / (u.max - Math.abs(u.min)) : (e + Math.abs(u.min)) / (u.max + Math.abs(u.min))), oe = e.series.map((t, n) => {
1499
- let i = U.value.useIndividualScale && U.value.isStacked ? Y.value?.left + Y.value.width / Z.value * n : Y.value?.left - Ko.value.bar / 2 + Ko.value.bar * r + Ko.value.bar * n * Xa.value.filter((e) => e.type === "bar").filter((e) => !I.value.includes(e.id)).length;
1500
- return {
1501
- yOffset: y(f),
1502
- individualHeight: y(p),
1503
- x: y(i),
1504
- y: y(Y.value?.bottom - y(f) - (y(p) * ae[n] || 0)),
1505
- value: e.absoluteValues[n],
1506
- zeroPosition: y(m),
1507
- individualMax: y(te),
1508
- comment: e.comments && e.comments.slice(K.value.start, K.value.end)[n] || ""
1509
- };
1510
- }), h = l.ticks.map((t) => ({
1511
- y: t >= 0 ? m - t / te * p : m + p * Math.abs(t) / te,
1512
- value: t,
1513
- prefix: e.prefix || H.value.chart.labels.prefix,
1514
- suffix: e.suffix || H.value.chart.labels.suffix,
1515
- datapoint: e
1516
- })), se = u.ticks.map((t) => {
1517
- let n = (t - u.min) / (u.max - u.min);
1518
- return {
1519
- y: t >= 0 ? ne - p * n : ne + p * n,
1520
- value: t,
1521
- prefix: e.prefix || H.value.chart.labels.prefix,
1522
- suffix: e.suffix || H.value.chart.labels.suffix,
1523
- datapoint: e
1524
- };
1525
- });
1526
- return Q.value[e.scaleLabel].name = e.name, Q.value[e.scaleLabel].groupName = e.scaleLabel, Q.value[e.scaleLabel].groupColor = H.value.chart.grid.labels.yAxis.groupColor || e.color, Q.value[e.scaleLabel].color = e.color, Q.value[e.scaleLabel].scaleYLabels = e.autoScaling ? se : h, Q.value[e.scaleLabel].zeroPosition = e.autoScaling ? ne : m, Q.value[e.scaleLabel].individualMax = e.autoScaling ? d : te, Q.value[e.scaleLabel].scaleLabel = e.scaleLabel, Q.value[e.scaleLabel].id = e.id, Q.value[e.scaleLabel].yOffset = f, Q.value[e.scaleLabel].individualHeight = p, Q.value[e.scaleLabel].autoScaleYLabels = se, Q.value[e.scaleLabel].unique = Os.value.filter((t) => t.scaleLabel === e.scaleLabel).length === 1, {
1527
- ...e,
1528
- yOffset: f,
1529
- autoScaleYLabels: se,
1530
- individualHeight: p,
1531
- scaleYLabels: e.autoScaling ? se : h,
1532
- individualScale: e.autoScaling ? u : l,
1533
- individualMax: e.autoScaling ? d : te,
1534
- zeroPosition: e.autoScaling ? ne : m,
1535
- plots: e.autoScaling ? oe : ie,
1536
- groupId: Q.value[e.scaleLabel].groupId
1537
- };
1538
- });
1539
- }), $ = x(() => {
1540
- let e = Os.value.filter((e) => [
1541
- "bar",
1542
- "line",
1543
- "plot"
1544
- ].includes(e.type)), t = e.length, n = H.value.chart.grid.labels.yAxis.gap, r = U.value.isStacked ? n * (t - 1) : 0, a = Y.value.height - r;
1545
- return e.filter((e) => e.type === "line").map((e, r) => {
1546
- To(e);
1547
- let o = Q.value[e.scaleLabel].min, c = Q.value[e.scaleLabel].max, l = {
1548
- ratios: e.absoluteValues.filter((e) => ![null, void 0].includes(e)).map((e) => (e - o) / (c - o)),
1549
- valueMin: o,
1550
- valueMax: c
1551
- }, ee = {
1552
- max: e.scaleMax || Math.max(...e.absoluteValues) || 1,
1553
- min: e.scaleMin || (Math.min(...e.absoluteValues) > 0 ? 0 : Math.min(...e.absoluteValues))
1554
- }, { individualScale: d, autoScaleSteps: p, individualZero: m, individualMax: re, autoScaleMax: ie, yOffset: ae, individualHeight: h, zeroPosition: se, autoScaleZeroPosition: ce } = Bs({
1555
- datapoint: e,
1556
- totalSeries: t,
1557
- gap: n,
1558
- usableHeight: a,
1559
- autoScaleValueMin: l.valueMin,
1560
- autoScaleValueMax: l.valueMax,
1561
- individualExtremes: ee
1562
- }), g = e.series.map((t, n) => {
1563
- let r = U.value.useIndividualScale ? (e.absoluteValues[n] + Math.abs(m)) / re : Bo(t);
1564
- return {
1565
- x: y(xs(n)),
1566
- y: y(Y.value?.bottom - ae - h * r),
1567
- value: e.absoluteValues[n],
1568
- comment: e.comments && e.comments.slice(K.value.start, K.value.end)[n] || ""
1569
- };
1570
- }), le = e.absoluteValues.map((e) => p.min >= 0 ? (e - Math.abs(p.min)) / (p.max - Math.abs(p.min)) : (e + Math.abs(p.min)) / (p.max + Math.abs(p.min))), _ = e.series.map((t, n) => [void 0, null].includes(e.absoluteValues[n]) ? {
1571
- x: y(xs(n)),
1572
- y: se,
1573
- value: e.absoluteValues[n],
1574
- comment: e.comments && e.comments.slice(K.value.start, K.value.end)[n] || ""
1575
- } : {
1576
- x: y(xs(n)),
1577
- y: y(Y.value?.bottom - ae - (h * le[n] || 0)),
1578
- value: e.absoluteValues[n],
1579
- comment: e.comments && e.comments.slice(K.value.start, K.value.end)[n] || ""
1580
- }), v = e.dashIndices && Array.isArray(e.dashIndices) && e?.dashIndices?.length > 0, ue = H.value.line.cutNullValues ? pe(g) : he(g.filter((e) => e.value !== null)), de = H.value.line.cutNullValues ? pe(_) : he(_.filter((e) => e.value !== null)), fe = H.value.line.cutNullValues ? u(g) : s(g.filter((e) => e.value !== null)), me = H.value.line.cutNullValues ? u(_) : s(_.filter((e) => e.value !== null)), ge = i(H.value.line.cutNullValues ? g : g.filter((e) => e.value !== null)), _e = i(H.value.line.cutNullValues ? _ : _.filter((e) => e.value !== null)), ve = v ? ne(H.value.line.cutNullValues ? g : g.filter((e) => e.value !== null), e.dashIndices.map((e) => e - K.value.start)) : [], ye = v ? te(H.value.line.cutNullValues ? g : g.filter((e) => e.value !== null), e.dashIndices.map((e) => e - K.value.start)) : [], be = d.ticks.map((t) => ({
1581
- y: t >= 0 ? se - t / re * h : se + h * Math.abs(t) / re,
1582
- value: t,
1583
- prefix: e.prefix || H.value.chart.labels.prefix,
1584
- suffix: e.suffix || H.value.chart.labels.suffix,
1585
- datapoint: e
1586
- })), xe = p.ticks.map((t) => {
1587
- let n = (t - p.min) / (p.max - p.min);
1588
- return {
1589
- y: t >= 0 ? ce - h * n : ce + h * n,
1590
- value: t,
1591
- prefix: e.prefix || H.value.chart.labels.prefix,
1592
- suffix: e.suffix || H.value.chart.labels.suffix,
1593
- datapoint: e
1594
- };
1595
- });
1596
- Q.value[e.scaleLabel].name = e.name, Q.value[e.scaleLabel].groupName = e.scaleLabel, Q.value[e.scaleLabel].groupColor = H.value.chart.grid.labels.yAxis.groupColor || e.color, Q.value[e.scaleLabel].color = e.color, Q.value[e.scaleLabel].scaleYLabels = e.autoScaling ? xe : be, Q.value[e.scaleLabel].zeroPosition = e.autoScaling ? ce : se, Q.value[e.scaleLabel].individualMax = e.autoScaling ? ie : re, Q.value[e.scaleLabel].scaleLabel = e.scaleLabel, Q.value[e.scaleLabel].id = e.id, Q.value[e.scaleLabel].yOffset = ae, Q.value[e.scaleLabel].individualHeight = h, Q.value[e.scaleLabel].autoScaleYLabels = xe, Q.value[e.scaleLabel].unique = Os.value.filter((t) => t.scaleLabel === e.scaleLabel).length === 1;
1597
- let Se = U.value.useIndividualScale ? e.autoScaling ? ce : se : Va.value, we = Math.max(Math.max(e.autoScaling ? ce : be.at(-1) ? be.at(-1).y : 0, Y.value?.top), Se), Ee = e.autoScaling ? _ : g, De = H.value.line.cutNullValues ? Ee : Ee.filter((e) => e.value !== null), Oe = e.absoluteValues.filter((e) => ![
1598
- null,
1599
- void 0,
1600
- NaN
1601
- ].includes(e)), ke = !!e.temperatureColors && new Set(Oe).size <= 1;
1602
- return {
1603
- ...e,
1604
- isFlatTemperatureLine: ke,
1605
- temperatureColors: e.temperatureColors ? e.temperatureColors.map((e) => Te(e)) : null,
1606
- yOffset: ae,
1607
- autoScaleYLabels: xe,
1608
- individualHeight: h,
1609
- scaleYLabels: e.autoScaling ? xe : be,
1610
- individualScale: e.autoScaling ? p : d,
1611
- individualMax: e.autoScaling ? ie : re,
1612
- zeroPosition: e.autoScaling ? ce : se,
1613
- curve: e.useStepper ? e.autoScaling ? _e : ge : e.autoScaling ? de : ue,
1614
- plots: e.autoScaling ? _ : g,
1615
- dashedStraight: ve,
1616
- dashedSmooth: ye,
1617
- hasDashedSegments: v,
1618
- area: e.useArea ? e.useStepper ? i(De, we) : U.value.useIndividualScale ? H.value.line.cutNullValues ? oe(e.autoScaling ? _ : g, we) : Ce(e.autoScaling ? _.filter((e) => e.value !== null) : g.filter((e) => e.value !== null), we) : H.value.line.cutNullValues ? oe(g, we) : Ce(g.filter((e) => e.value !== null), we) : "",
1619
- curveAreas: e.useArea ? e.useStepper ? i(De, we).split(";").filter(Boolean).map((e) => `M${e}Z`) : f(e.autoScaling ? H.value.line.cutNullValues ? _ : _.filter((e) => e.value !== null) : H.value.line.cutNullValues ? g : g.filter((e) => e.value !== null), we, H.value.line.cutNullValues) : [],
1620
- straight: e.useStepper ? e.autoScaling ? _e : ge : e.autoScaling ? me : fe,
1621
- groupId: Q.value[e.scaleLabel].groupId
1622
- };
1623
- });
1624
- }), Hs = x(() => {
1625
- let e = Os.value.filter((e) => [
1626
- "bar",
1627
- "line",
1628
- "plot"
1629
- ].includes(e.type)), t = e.length, n = H.value.chart.grid.labels.yAxis.gap, r = U.value.isStacked ? n * (t - 1) : 0, i = Y.value.height - r;
1630
- return e.filter((e) => e.type === "plot").map((e) => {
1631
- To(e);
1632
- let r = Q.value[e.scaleLabel].min, a = Q.value[e.scaleLabel].max, o = {
1633
- ratios: e.absoluteValues.filter((e) => ![null, void 0].includes(e)).map((e) => (e - r) / (a - r)),
1634
- valueMin: r,
1635
- valueMax: a
1636
- }, s = {
1637
- max: e.scaleMax || Math.max(...e.absoluteValues) || 1,
1638
- min: e.scaleMin || Math.min(...e.absoluteValues) > 0 ? 0 : Math.min(...e.absoluteValues)
1639
- }, { individualScale: c, autoScaleSteps: l, individualZero: u, individualMax: ee, autoScaleMax: te, yOffset: d, individualHeight: f, zeroPosition: p, autoScaleZeroPosition: m } = Bs({
1640
- datapoint: e,
1641
- totalSeries: t,
1642
- gap: n,
1643
- usableHeight: i,
1644
- autoScaleValueMin: o.valueMin,
1645
- autoScaleValueMax: o.valueMax,
1646
- individualExtremes: s,
1647
- forceExactScale: !0
1648
- }), ne = e.series.map((t, n) => {
1649
- let r = U.value.useIndividualScale ? (e.absoluteValues[n] + Math.abs(u)) / ee : Bo(t);
1650
- return {
1651
- x: y(xs(n)),
1652
- y: y(Y.value?.bottom - d - f * r),
1653
- value: e.absoluteValues[n],
1654
- comment: e.comments && e.comments.slice(K.value.start, K.value.end)[n] || ""
1655
- };
1656
- }), re = e.absoluteValues.map((e) => l.min >= 0 ? (e - Math.abs(l.min)) / (l.max - Math.abs(l.min)) : (e + Math.abs(l.min)) / (l.max + Math.abs(l.min))), ie = e.series.map((t, n) => ({
1657
- x: y(xs(n)),
1658
- y: y(Y.value?.bottom - d - (f * re[n] || 0)),
1659
- value: e.absoluteValues[n],
1660
- comment: e.comments && e.comments.slice(K.value.start, K.value.end)[n] || ""
1661
- })), ae = c.ticks.map((t) => ({
1662
- y: t >= 0 ? p - t / ee * f : p + f * Math.abs(t) / ee,
1663
- value: t,
1664
- prefix: e.prefix || H.value.chart.labels.prefix,
1665
- suffix: e.suffix || H.value.chart.labels.suffix,
1666
- datapoint: e
1667
- })), oe = l.ticks.map((t) => {
1668
- let n = (t - l.min) / (l.max - l.min);
1669
- return {
1670
- y: t >= 0 ? m - f * n : m + f * n,
1671
- value: t,
1672
- prefix: e.prefix || H.value.chart.labels.prefix,
1673
- suffix: e.suffix || H.value.chart.labels.suffix,
1674
- datapoint: e
1675
- };
1676
- });
1677
- return Q.value[e.scaleLabel].name = e.name, Q.value[e.scaleLabel].groupName = e.scaleLabel, Q.value[e.scaleLabel].groupColor = H.value.chart.grid.labels.yAxis.groupColor || e.color, Q.value[e.scaleLabel].color = e.color, Q.value[e.scaleLabel].scaleYLabels = e.autoScaling ? oe : ae, Q.value[e.scaleLabel].zeroPosition = e.autoScaling ? m : p, Q.value[e.scaleLabel].individualMax = e.autoScaling ? te : ee, Q.value[e.scaleLabel].scaleLabel = e.scaleLabel, Q.value[e.scaleLabel].id = e.id, Q.value[e.scaleLabel].yOffset = d, Q.value[e.scaleLabel].individualHeight = f, Q.value[e.scaleLabel].autoScaleYLabels = oe, Q.value[e.scaleLabel].unique = Os.value.filter((t) => t.scaleLabel === e.scaleLabel).length === 1, {
1678
- ...e,
1679
- yOffset: d,
1680
- autoScaleYLabels: oe,
1681
- individualHeight: f,
1682
- scaleYLabels: e.autoScaling ? oe : ae,
1683
- individualScale: e.autoScaling ? l : c,
1684
- individualMax: e.autoScaling ? te : ee,
1685
- zeroPosition: e.autoScaling ? m : p,
1686
- plots: e.autoScaling ? ie : ne,
1687
- groupId: Q.value[e.scaleLabel].groupId
1688
- };
1689
- });
1690
- }), Us = x(() => {
1691
- let e = $.value.map((e) => ({
1692
- name: e.name,
1693
- color: e.color,
1694
- scale: e.individualScale,
1695
- scaleYLabels: e.scaleYLabels,
1696
- zero: e.zeroPosition,
1697
- max: e.individualMax,
1698
- scaleLabel: e.scaleLabel || "",
1699
- id: e.id,
1700
- yOffset: e.yOffset || 0,
1701
- individualHeight: e.individualHeight || Y.value.height,
1702
- autoScaleYLabels: e.autoScaleYLabels
1703
- })), t = Vs.value.map((e) => ({
1704
- name: e.name,
1705
- color: e.color,
1706
- scale: e.individualScale,
1707
- scaleYLabels: e.scaleYLabels,
1708
- zero: e.zeroPosition,
1709
- max: e.individualMax,
1710
- scaleLabel: e.scaleLabel || "",
1711
- id: e.id,
1712
- yOffset: e.yOffset || 0,
1713
- individualHeight: e.individualHeight || Y.value.height
1714
- })), n = Hs.value.map((e) => ({
1715
- name: e.name,
1716
- color: e.color,
1717
- scale: e.individualScale,
1718
- scaleYLabels: e.scaleYLabels,
1719
- zero: e.zeroPosition,
1720
- max: e.individualMax,
1721
- scaleLabel: e.scaleLabel || "",
1722
- id: e.id,
1723
- yOffset: e.yOffset || 0,
1724
- individualHeight: e.individualHeight || Y.value.height
1725
- })), r = U.value.useIndividualScale && !U.value.isStacked ? Object.values(Q.value) : [
1726
- ...e,
1727
- ...t,
1728
- ...n
1729
- ], i = r.flatMap((e) => e).length;
1730
- return r.flatMap((e, t) => {
1731
- let n = 0;
1732
- n = U.value.isStacked ? J.value ? Y.value?.right : Y.value?.left : J.value ? Y.value?.right + ao() * t : Y.value?.left / i * (t + 1);
1733
- let r = U.value.useIndividualScale && !U.value.isStacked ? e.unique ? e.name : e.groupName : e.name;
1734
- return {
1735
- unique: e.unique,
1736
- id: e.id,
1737
- groupId: e.groupId,
1738
- scaleLabel: e.scaleLabel,
1739
- name: fe(H.value.chart.grid.labels.yAxis.serieNameFormatter, r, r, e),
1740
- color: U.value.useIndividualScale && !U.value.isStacked ? e.unique ? e.color : e.groupColor : e.color,
1741
- scale: e.scale,
1742
- yOffset: e.yOffset,
1743
- individualHeight: e.individualHeight,
1744
- x: n,
1745
- yLabels: e.scaleYLabels || e.scale.ticks.map((t) => ({
1746
- y: t >= 0 ? e.zero - e.individualHeight * (t / e.max) : e.zero + e.individualHeight * Math.abs(t) / e.max,
1747
- value: t
1748
- }))
1749
- };
1750
- });
1751
- }), Ws = x(() => {
1752
- let e = H.value.line.interLine || {}, t = e.pairs || [], n = e.colors || [];
1753
- if (!t.length) return [];
1754
- let r = [];
1755
- return t.forEach((e, t) => {
1756
- let [i, a] = Array.isArray(e) ? e : [e.a, e.b];
1757
- if (!i || !a) return;
1758
- let o = $.value.find((e) => e.name === i), s = $.value.find((e) => e.name === a);
1759
- if (!o || !s || o.type !== "line" || s.type !== "line") return;
1760
- let c = n?.[t]?.[0] ?? o.color, l = n?.[t]?.[1] ?? s.color;
1761
- le({
1762
- lineA: o.plots,
1763
- lineB: s.plots,
1764
- smoothA: !!o.smooth,
1765
- smoothB: !!s.smooth,
1766
- colorLineA: c,
1767
- colorLineB: l,
1768
- sampleStepPx: 2,
1769
- cutNullValues: H.value.line.cutNullValues
1770
- }).forEach((e, n) => {
1771
- r.push({
1772
- ...e,
1773
- key: `inter_${i}_${a}_${t}_${n}`
1774
- });
1775
- });
1776
- }), r;
1777
- }), Gs = x(() => ({
1778
- timeLabel: X.value[B.value],
1779
- datapoint: Is.value,
1780
- seriesIndex: B.value,
1781
- series: Xa.value,
1782
- bars: Vs.value,
1783
- lines: $.value,
1784
- plots: Hs.value,
1785
- config: H.value
1786
- })), Ks = O({
1787
- months: [],
1788
- shortMonths: [],
1789
- days: [],
1790
- shortDays: []
1791
- }), qs = 0;
1792
- ht(() => {
1793
- let e = ++qs, t = H.value.chart.grid.labels.xAxisLabels.datetimeFormatter;
1794
- (async () => {
1795
- let n = await ke(t.locale).catch(() => ke("en"));
1796
- e === qs && (Ks.value = n.data);
1797
- })();
1798
- });
1799
- let Js = x(() => {
1800
- let e = H.value.chart.grid.labels.xAxisLabels.datetimeFormatter, t = Oe({
1801
- useUTC: e.useUTC,
1802
- locale: Ks.value,
1803
- januaryAsYear: e.januaryAsYear
1804
- });
1805
- return (e, n) => {
1806
- let r = H.value.chart.grid.labels.xAxisLabels.values?.[e];
1807
- return r == null ? "" : t.formatDate(new Date(r), n);
1808
- };
1809
- }), Ys = x(() => (H.value.chart.grid.labels.xAxisLabels.values || []).map((e, t) => ({
1810
- text: Js.value(t, H.value.chart.zoom.timeFormat),
1811
- absoluteIndex: t
1812
- }))), Xs = x(() => {
1813
- let e = "", t = Is.value.map((e) => e.value).filter((e) => _e(e) && e !== null).reduce((e, t) => Math.abs(e) + Math.abs(t), 0), n = X.value[B.value], i = H.value.chart.tooltip.customFormat;
1814
- if (be(i) && ye(() => i({
1815
- absoluteIndex: B.value + K.value.start,
1816
- seriesIndex: B.value,
1817
- datapoint: Is.value,
1818
- series: Xa.value,
1819
- bars: Vs.value,
1820
- lines: $.value,
1821
- plots: Hs.value,
1822
- config: H.value,
1823
- dateLabel: n
1824
- }))) return i({
1825
- absoluteIndex: B.value + K.value.start,
1826
- seriesIndex: B.value,
1827
- datapoint: Is.value,
1828
- series: Xa.value,
1829
- bars: Vs.value,
1830
- lines: $.value,
1831
- plots: Hs.value,
1832
- config: H.value,
1833
- dateLabel: n
1834
- });
1835
- if (n && n.text && H.value.chart.tooltip.showTimeLabel) {
1836
- let t = Js.value(B.value + K.value.start, H.value.chart.tooltip.timeFormat);
1837
- e += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${H.value.chart.tooltip.borderColor}; width:100%">${H.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !H.value.chart.tooltip.useDefaultTimeFormat ? t : n.text}</div>`;
1838
- }
1839
- return Is.value.forEach((n) => {
1840
- if (_e(n.value)) {
1841
- let i = "", o = "";
1842
- switch (Pi.value[n.type]) {
1843
- case "bar":
1844
- i = `<svg viewBox="0 0 40 40" height="14" width="14">${ui.pattern ? `<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${n.color}" />` : ""}<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${ui.pattern ? `url(#pattern_${L.value}_${n.slotAbsoluteIndex}` : n.color}" /></svg>`;
1845
- break;
1846
- case "line":
1847
- !n.shape || ![
1848
- "star",
1849
- "triangle",
1850
- "square",
1851
- "diamond",
1852
- "pentagon",
1853
- "hexagon"
1854
- ].includes(n.shape) ? o = `<circle cx="10" cy="8" r="4" stroke="${H.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${n.color}" />` : n.shape === "triangle" ? o = `<path d="${r({
1855
- plot: {
1856
- x: 10,
1857
- y: 8
1858
- },
1859
- radius: 4,
1860
- sides: 3,
1861
- rotation: .52
1862
- }).path}" fill="${n.color}" stroke="${H.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : n.shape === "square" ? o = `<path d="${r({
1863
- plot: {
1864
- x: 10,
1865
- y: 8
1866
- },
1867
- radius: 4,
1868
- sides: 4,
1869
- rotation: .8
1870
- }).path}" fill="${n.color}" stroke="${H.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : n.shape === "diamond" ? o = `<path d="${r({
1871
- plot: {
1872
- x: 10,
1873
- y: 8
1874
- },
1875
- radius: 4,
1876
- sides: 4,
1877
- rotation: 0
1878
- }).path}" fill="${n.color}" stroke="${H.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : n.shape === "pentagon" ? o = `<path d="${r({
1879
- plot: {
1880
- x: 10,
1881
- y: 8
1882
- },
1883
- radius: 4,
1884
- sides: 5,
1885
- rotation: .95
1886
- }).path}" fill="${n.color}" stroke="${H.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : n.shape === "hexagon" ? o = `<path d="${r({
1887
- plot: {
1888
- x: 10,
1889
- y: 8
1890
- },
1891
- radius: 4,
1892
- sides: 6,
1893
- rotation: 0
1894
- }).path}" fill="${n.color}" stroke="${H.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : n.shape === "star" && (o = `<polygon stroke="${H.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${n.color}" points="${m({
1895
- plot: {
1896
- x: 10,
1897
- y: 8
1898
- },
1899
- radius: 4
1900
- })}" />`), i = `<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="1.5" x="0" y="6.5" stroke="${H.value.chart.tooltip.backgroundColor}" stroke-width="0.5" height="3" width="20" fill="${n.color}" />${o}</svg>`;
1901
- break;
1902
- case "plot":
1903
- if (!n.shape || ![
1904
- "star",
1905
- "triangle",
1906
- "square",
1907
- "diamond",
1908
- "pentagon",
1909
- "hexagon"
1910
- ].includes(n.shape)) {
1911
- i = `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${H.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${n.color}" /></svg>`;
1912
- break;
1913
- }
1914
- if (n.shape === "star") {
1915
- i = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${H.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${n.color}" points="${m({
1916
- plot: {
1917
- x: 6,
1918
- y: 6
1919
- },
1920
- radius: 5
1921
- })}" /></svg>`;
1922
- break;
1923
- }
1924
- if (n.shape === "triangle") {
1925
- i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${r({
1926
- plot: {
1927
- x: 6,
1928
- y: 6
1929
- },
1930
- radius: 6,
1931
- sides: 3,
1932
- rotation: .52
1933
- }).path}" fill="${n.color}" stroke="${H.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1934
- break;
1935
- }
1936
- if (n.shape === "square") {
1937
- i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${r({
1938
- plot: {
1939
- x: 6,
1940
- y: 6
1941
- },
1942
- radius: 6,
1943
- sides: 4,
1944
- rotation: .8
1945
- }).path}" fill="${n.color}" stroke="${H.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1946
- break;
1947
- }
1948
- if (n.shape === "diamond") {
1949
- i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${r({
1950
- plot: {
1951
- x: 6,
1952
- y: 6
1953
- },
1954
- radius: 5,
1955
- sides: 4,
1956
- rotation: 0
1957
- }).path}" fill="${n.color}" stroke="${H.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1958
- break;
1959
- }
1960
- if (n.shape === "pentagon") {
1961
- i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${r({
1962
- plot: {
1963
- x: 6,
1964
- y: 6
1965
- },
1966
- radius: 5,
1967
- sides: 5,
1968
- rotation: .95
1969
- }).path}" fill="${n.color}" stroke="${H.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1970
- break;
1971
- }
1972
- if (n.shape === "hexagon") {
1973
- i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${r({
1974
- plot: {
1975
- x: 6,
1976
- y: 6
1977
- },
1978
- radius: 5,
1979
- sides: 6,
1980
- rotation: 0
1981
- }).path}" fill="${n.color}" stroke="${H.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1982
- break;
1983
- }
1984
- default: break;
1985
- }
1986
- e += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${i}</div> ${n.name}: <b>${H.value.chart.tooltip.showValue ? fe(n.type === "line" ? H.value.line.labels.formatter : n.type === "bar" ? H.value.bar.labels.formatter : H.value.plot.labels.formatter, n.value, a({
1987
- p: n.prefix,
1988
- v: n.value,
1989
- s: n.suffix,
1990
- r: H.value.chart.tooltip.roundingValue
1991
- }), { datapoint: n }) : ""}</b> ${H.value.chart.tooltip.showPercentage ? `(${a({
1992
- v: y(Math.abs(n.value) / t * 100),
1993
- s: "%",
1994
- r: H.value.chart.tooltip.roundingPercentage
1995
- })})` : ""}</div>`, H.value.chart.comments.showInTooltip && n.comments.length && n.comments.slice(K.value.start, K.value.end)[B.value] && (e += `<div class="vue-data-ui-tooltip-comment" style="background:${n.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${n.color}">${n.comments.slice(K.value.start, K.value.end)[B.value]}</div>`);
1996
- }
1997
- }), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${H.value.chart.tooltip.color}">${e}</div>`;
1998
- }), Zs = x(() => {
1999
- if (Ya.value.length === 0) return {
2000
- head: [],
2001
- body: [],
2002
- config: {},
2003
- columnNames: []
2004
- };
2005
- let e = Za.value.map((e) => ({
2006
- label: e.name,
2007
- color: e.color,
2008
- type: e.type
2009
- })), t = [];
2010
- return X.value.forEach((e, n) => {
2011
- let r = H.value.table.useDefaultTimeFormat ? [e.text] : [Js.value(n + K.value.start, H.value.table.timeFormat)];
2012
- Za.value.forEach((e) => {
2013
- r.push(Ro(e.absoluteValues[n]) ? Number(e.absoluteValues[n].toFixed(H.value.table.rounding)) : "");
2014
- }), t.push(r);
2015
- }), {
2016
- head: e,
2017
- body: t
2018
- };
2019
- }), Qs = x(() => {
2020
- let e = H.value.table.showSum, t = [""].concat(Za.value.map((e) => e.name));
2021
- e && (t = t.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>"));
2022
- let n = [];
2023
- for (let t = 0; t < Z.value; t += 1) {
2024
- let r = Za.value.map((e) => e.absoluteValues[t] ?? 0).reduce((e, t) => e + t, 0);
2025
- n.push([H.value.table.useDefaultTimeFormat ? X.value[t]?.text ?? "-" : Js.value(t + K.value.start, H.value.table.timeFormat)].concat(Za.value.map((e) => fe(e.type === "line" ? H.value.line.labels.formatter : e.type === "bar" ? H.value.bar.labels.formatter : H.value.plot.labels.formatter, e.absoluteValues[t] ?? 0, a({
2026
- p: e.prefix || H.value.chart.labels.prefix,
2027
- v: e.absoluteValues[t] ?? 0,
2028
- s: e.suffix || H.value.chart.labels.suffix,
2029
- r: H.value.table.rounding
2030
- }))), e ? (r ?? 0).toFixed(H.value.table.rounding) : []));
2031
- }
2032
- let r = {
2033
- th: {
2034
- backgroundColor: H.value.table.th.backgroundColor,
2035
- color: H.value.table.th.color,
2036
- outline: H.value.table.th.outline
2037
- },
2038
- td: {
2039
- backgroundColor: H.value.table.td.backgroundColor,
2040
- color: H.value.table.td.color,
2041
- outline: H.value.table.td.outline
2042
- },
2043
- breakpoint: H.value.table.responsiveBreakpoint
2044
- }, i = [H.value.table.columnNames.period].concat(Za.value.map((e) => e.name), H.value.table.columnNames.total);
2045
- return {
2046
- head: t,
2047
- body: n,
2048
- config: r,
2049
- colNames: i
2050
- };
2051
- });
2052
- function $s(e = null) {
2053
- let t = [
2054
- [H.value.chart.title.text],
2055
- [H.value.chart.title.subtitle.text],
2056
- [""]
2057
- ], n = ["", ...Zs.value.head.map((e) => e.label)], r = Zs.value.body, i = ie(t.concat([n]).concat(r));
2058
- e ? e(i) : l({
2059
- csvContent: i,
2060
- title: H.value.chart.title.text || "vue-ui-xy"
2061
- });
2062
- }
2063
- function ec(e, t = null) {
2064
- if (Qa.value) return;
2065
- Li.value = e;
2066
- let n = Za.value.map((e) => ({
2067
- name: e.name,
2068
- value: [
2069
- null,
2070
- void 0,
2071
- NaN
2072
- ].includes(e.absoluteValues[t]) ? null : e.absoluteValues[t],
2073
- color: e.color,
2074
- type: e.type
2075
- }));
2076
- e ? (B.value = t, H.value.events.datapointEnter && H.value.events.datapointEnter({
2077
- datapoint: n,
2078
- seriesIndex: t + K.value.start
2079
- })) : (B.value = null, H.value.events.datapointLeave && H.value.events.datapointLeave({
2080
- datapoint: n,
2081
- seriesIndex: t + K.value.start
2082
- }));
2083
- }
2084
- function tc() {
2085
- U.value.showTable = !U.value.showTable;
2086
- }
2087
- function nc() {
2088
- U.value.dataLabels.show = !U.value.dataLabels.show;
2089
- }
2090
- function rc() {
2091
- U.value.showTooltip = !U.value.showTooltip;
2092
- }
2093
- function ic(e) {
2094
- Ii.value = e, zi.value += 1;
2095
- }
2096
- function ac() {
2097
- if (!H.value.responsiveProportionalSizing) {
2098
- V.value.dataLabels = H.value.chart.grid.labels.fontSize, V.value.yAxis = H.value.chart.grid.labels.axis.fontSize, V.value.xAxis = H.value.chart.grid.labels.xAxisLabels.fontSize, V.value.plotLabels = H.value.chart.labels.fontSize, ha.value.plot = H.value.plot.radius, ha.value.line = H.value.line.radius;
2099
- return;
2100
- }
2101
- V.value.dataLabels = re({
2102
- relator: ji.value,
2103
- adjuster: 400,
2104
- source: H.value.chart.grid.labels.fontSize,
2105
- threshold: 10,
2106
- fallback: 10
2107
- }), V.value.yAxis = re({
2108
- relator: F.value,
2109
- adjuster: 1e3,
2110
- source: H.value.chart.grid.labels.axis.fontSize,
2111
- threshold: 10,
2112
- fallback: 10
2113
- }), V.value.xAxis = re({
2114
- relator: F.value,
2115
- adjuster: 1e3,
2116
- source: H.value.chart.grid.labels.xAxisLabels.fontSize,
2117
- threshold: 10,
2118
- fallback: 10
2119
- }), V.value.plotLabels = re({
2120
- relator: F.value,
2121
- adjuster: 800,
2122
- source: H.value.chart.labels.fontSize,
2123
- threshold: 10,
2124
- fallback: 10
2125
- }), ha.value.plot = re({
2126
- relator: F.value,
2127
- adjuster: 800,
2128
- source: H.value.plot.radius,
2129
- threshold: 1,
2130
- fallback: 1
2131
- }), ha.value.line = re({
2132
- relator: F.value,
2133
- adjuster: 800,
2134
- source: H.value.line.radius,
2135
- threshold: 1,
2136
- fallback: 1
2137
- });
2138
- }
2139
- function oc() {
2140
- if (ae(N.dataset) ? (se({
2141
- componentName: "VueUiXy",
2142
- type: "dataset",
2143
- debug: xa.value
2144
- }), Ta.value = !0) : N.dataset.forEach((e, t) => {
2145
- [null, void 0].includes(e.name) && (se({
2146
- componentName: "VueUiXy",
2147
- type: "datasetSerieAttribute",
2148
- property: "name (string)",
2149
- index: t,
2150
- debug: xa.value
2151
- }), Ta.value = !0);
2152
- }), xa.value && N.dataset.forEach((e) => {
2153
- e.series.forEach((t, n) => {
2154
- _e(t) || console.warn(`VueUiXy has detected an unsafe value in your dataset:\n-----> The serie '${e.name}' contains the value '${t}' at index ${n}.\n'${t}' was converted to null to allow the chart to display.`);
2155
- });
2156
- }), ae(N.dataset) || (Ta.value = H.value.loading), Wi.value = H.value.chart.userOptions.showOnChartHover, Gi.value = H.value.chart.userOptions.keepStateOnChartLeave, Ki.value = !H.value.chart.userOptions.showOnChartHover, ba(), H.value.responsive) {
2157
- let e = hi.value.parentNode;
2158
- Di.value && (Di.value.unobserve(Oi.value), Di.value.disconnect());
2159
- let { height: t, width: n } = e.getBoundingClientRect(), r = null, i = 0;
2160
- H.value.chart.title.show && gi.value && (r = gi.value, i = r.getBoundingClientRect().height);
2161
- let a = null, o = 0;
2162
- H.value.chart.zoom.show && G.value > 6 && va.value && _i.value && _i.value.$el && (a = _i.value.$el, o = a.getBoundingClientRect().height);
2163
- let s = null, c = 0;
2164
- H.value.chart.legend.show && vi.value && (s = vi.value, c = s.getBoundingClientRect().height);
2165
- let l = 0;
2166
- yi.value && (l = yi.value.getBoundingClientRect().height);
2167
- let u = 0;
2168
- bi.value && (u = bi.value.getBoundingClientRect().height), ji.value = t - i - c - o - l - u - 12, F.value = n, Mi.value = `0 0 ${F.value < 0 ? 10 : F.value} ${ji.value < 0 ? 10 : ji.value}`, ac();
2169
- let ee = new ResizeObserver((e) => {
2170
- for (let t of e) i = H.value.chart.title.show && gi.value ? gi.value.getBoundingClientRect().height : 0, o = _i.value && _i.value.$el ? _i.value.$el.getBoundingClientRect().height : 0, c = vi.value ? vi.value.getBoundingClientRect().height : 0, l = yi.value ? yi.value.getBoundingClientRect().height : 0, u = bi.value ? bi.value.getBoundingClientRect().height : 0, requestAnimationFrame(() => {
2171
- ji.value = t.contentRect.height - i - c - o - l - u - 12, F.value = t.contentBoxSize[0].inlineSize ?? t.contentRect.width, Mi.value = `0 0 ${F.value < 0 ? 10 : F.value} ${ji.value < 0 ? 10 : ji.value}`, ac(), oa(), ca();
2172
- });
2173
- });
2174
- Di.value = ee, Oi.value = e, ee.observe(e);
2175
- } else ji.value = H.value.chart.height, F.value = H.value.chart.width, V.value.dataLabels = H.value.chart.grid.labels.fontSize, V.value.yAxis = H.value.chart.grid.labels.axis.fontSize, V.value.xAxis = H.value.chart.grid.labels.xAxisLabels.fontSize, V.value.plotLabels = H.value.chart.labels.fontSize, ha.value.plot = H.value.plot.radius, ha.value.line = H.value.line.radius, Mi.value = `0 0 ${F.value} ${ji.value}`;
2176
- oa(), ca();
2177
- }
2178
- function sc(e) {
2179
- Ni.value = {
2180
- x: e.clientX,
2181
- y: e.clientY
2182
- };
2183
- }
2184
- st(() => {
2185
- oc(), No(), document.addEventListener("mousemove", sc, { passive: !0 }), document.addEventListener("scroll", uo, { passive: !0 });
2186
- }), ot(() => {
2187
- document.removeEventListener("scroll", uo, { passive: !0 }), document.removeEventListener("mousemove", sc, { passive: !0 }), Di.value &&= (Di.value.unobserve(Oi.value), Di.value.disconnect(), null);
2188
- }), ze({
2189
- timeLabelsEls: wi,
2190
- timeLabels: X,
2191
- slicer: K,
2192
- configRef: H,
2193
- rotationPath: [
2194
- "chart",
2195
- "grid",
2196
- "labels",
2197
- "xAxisLabels",
2198
- "rotation"
2199
- ],
2200
- autoRotatePath: [
2201
- "chart",
2202
- "grid",
2203
- "labels",
2204
- "xAxisLabels",
2205
- "autoRotate",
2206
- "enable"
2207
- ],
2208
- isAutoSize: Ra,
2209
- height: ji,
2210
- width: F,
2211
- rotation: H.value.chart.grid.labels.xAxisLabels.autoRotate.angle
2212
- });
2213
- let cc = O(!1), lc = O(null), uc = O(200), dc = x(() => B.value ?? R.value ?? 0);
2214
- function fc() {
2215
- let e = Math.ceil(uc.value || 200);
2216
- return Math.min(Math.max(e, 1), 200);
2217
- }
2218
- function pc() {
2219
- let e = fc(), t = xs(dc.value) - e / 2 - (200 - e) / 2, n = Y.value?.left - (200 - e) / 2, r = Y.value?.right - (200 + e) / 2;
2220
- return y(Math.max(n, Math.min(t, r)));
2221
- }
2222
- st(() => {
2223
- let e = null, t = null, n = (e) => {
2224
- cancelAnimationFrame(t), t = requestAnimationFrame(() => {
2225
- uc.value = Math.min(Math.max(Math.ceil(e || 0), 1), 200);
2226
- });
2227
- }, r = new ResizeObserver((t) => {
2228
- let r = t.find((t) => t.target === e) || t[0];
2229
- r && n(r.contentRect.width || 200);
2230
- }), i = ht((t) => {
2231
- let i = lc.value;
2232
- e && e !== i && (r.unobserve(e), e = null), i && i !== e && (rt(() => {
2233
- i.offsetParent !== null && n(i.offsetWidth || i.getBoundingClientRect().width || 200);
2234
- }), r.observe(i), e = i), t(() => {
2235
- e &&= (r.unobserve(e), null);
2236
- });
2237
- });
2238
- ot(() => {
2239
- try {
2240
- e && r.unobserve(e), r.disconnect(), i();
2241
- } catch {}
2242
- });
2243
- });
2244
- let mc = x(() => {
2245
- if ([null, void 0].includes(B.value) && [null, void 0].includes(R.value)) return "";
2246
- let e = (B.value == null ? 0 : B.value) || (R.value == null ? 0 : R.value), t = H.value.chart.timeTag.customFormat;
2247
- if (cc.value = !1, be(t)) try {
2248
- let n = t({
2249
- absoluteIndex: e + K.value.start,
2250
- seriesIndex: e,
2251
- datapoint: Is.value,
2252
- bars: Vs.value,
2253
- lines: $.value,
2254
- plots: Hs.value,
2255
- config: H.value
2256
- });
2257
- if (typeof n == "string") return cc.value = !0, n;
2258
- } catch {
2259
- console.warn("Custom format cannot be applied on timeTag."), cc.value = !1;
2260
- }
2261
- if (!cc.value) return [null, void 0].includes(X.value[e]) ? "" : H.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !H.value.chart.timeTag.useDefaultFormat ? Js.value(e + K.value.start, H.value.chart.timeTag.timeFormat) : X.value[e].text;
2262
- });
2263
- function hc({ serie: e, plot: t, type: r }) {
2264
- return Ro(t.value) ? n({
2265
- content: fe(H.value[r].labels.formatter, t.value, a({
2266
- p: e.prefix || H.value.chart.labels.prefix,
2267
- v: t.value,
2268
- x: e.suffix || H.value.chart.labels.suffix,
2269
- r: H.value[r].labels.rounding
2270
- }), {
2271
- datapoint: t,
2272
- serie: e
2273
- }),
2274
- fontSize: V.value.plotLabels,
2275
- fill: H.value[r].labels.color,
2276
- x: 0,
2277
- y: 0
2278
- }) : "";
2279
- }
2280
- function gc({ plot: e }) {
2281
- let t = H.value.bar.labels.offsetY, n = Math.abs(Go(e)), r = e.value < 0, i = {
2282
- x: (U.value.useIndividualScale && U.value.isStacked ? e.x + Ko.value.line / 2 : Jo(e) + qo() / 2 - js.value / 2) + H.value.bar.labels.offsetX,
2283
- y: y(e.y) + (H.value.bar.labels.alwaysOnTop ? t - (r ? n : 0) : e.value >= 0 ? t : -t * 3)
2284
- };
2285
- return `translate(${i.x}, ${i.y}) rotate(${H.value.bar.labels.rotation})`;
2286
- }
2287
- function _c({ plot: e, type: t }) {
2288
- let n = H.value[t].labels.offsetY, r = {
2289
- x: e.x + H.value[t].labels.offsetX,
2290
- y: y(e.y) + (H.value[t].labels.alwaysOnTop || e.value >= 0 ? n : -n * 3)
2291
- };
2292
- return `translate(${r.x}, ${r.y}) rotate(${H.value[t].labels.rotation})`;
2293
- }
2294
- function vc({ plot: e, type: t }) {
2295
- if (H.value[t].labels.textAnchor != null) return H.value[t].labels.textAnchor;
2296
- let n = e.value >= 0;
2297
- return H.value[t].labels.rotation === 0 ? "middle" : H.value[t].labels.alwaysOnTop || n ? "start" : "end";
2298
- }
2299
- mt(() => N.dataset, (e) => {
2300
- if (Array.isArray(e) && e.length > 0 && (Ta.value = !1), H.value.chart.zoom.keepState) {
2301
- if (G.value = Math.max(0, ...W.value.map((e) => Oa(e.series).length)), G.value > 0) {
2302
- let e = K.value.start, t = K.value.end;
2303
- if (!ko.value || e === 0 && t === 0) No();
2304
- else {
2305
- let n = Math.max(0, Math.min(e, G.value - 1)), r = Math.max(n + 1, Math.min(t, G.value));
2306
- K.value = {
2307
- start: n,
2308
- end: r
2309
- }, ka.value = {
2310
- start: n,
2311
- end: r
2312
- }, Ao.value = 0, jo.value = G.value;
2313
- }
2314
- }
2315
- } else G.value = Math.max(...W.value.map((e) => Oa(e.series).length)), K.value = {
2316
- start: 0,
2317
- end: G.value
2318
- };
2319
- ki.value += 1, Ui.value += 1, oa(), ca(), Ma();
2320
- }, { deep: !0 }), mt(() => N.config, (e) => {
2321
- wa.value || (H.value = ga()), oc(), Vi.value += 1, Bi.value += 1, ba(), oa(), ca(), H.value.chart.zoom.keepState && (G.value = Math.max(0, ...W.value.map((e) => Oa(e.series).length)), G.value > 0 && (!ko.value || K.value.start === 0 && K.value.end === 0) && No()), Ma();
2322
- }, { deep: !0 });
2323
- let yc = O(!1);
2324
- function bc() {
2325
- let e = hi.value?.parentNode;
2326
- if (!e) {
2327
- yc.value = !1;
2328
- return;
2329
- }
2330
- let t = e.getBoundingClientRect();
2331
- yc.value = t.width > 2 && t.height > 2;
2332
- }
2333
- st(() => {
2334
- bc();
2335
- let e = new ResizeObserver(() => {
2336
- bc(), yc.value && (oc(), Ma(), H.value.chart.zoom.keepState || No());
2337
- });
2338
- hi.value?.parentNode && e.observe(hi.value.parentNode);
2339
- }), mt(H, () => {
2340
- ba();
2341
- }, { immediate: !0 });
2342
- let xc = x(() => {
2343
- let e = H.value.table.useDialog && !H.value.showTable, t = U.value.showTable;
2344
- return {
2345
- component: e ? ci : Ke,
2346
- title: `${H.value.chart.title.text}${H.value.chart.title.subtitle.text ? `: ${H.value.chart.title.subtitle.text}` : ""}`,
2347
- props: e ? {
2348
- backgroundColor: H.value.table.th.backgroundColor,
2349
- color: H.value.table.th.color,
2350
- headerColor: H.value.table.th.color,
2351
- headerBg: H.value.table.th.backgroundColor,
2352
- isFullscreen: Ii.value,
2353
- fullscreenParent: hi.value,
2354
- forcedWidth: Math.min(800, window.innerWidth * .8)
2355
- } : {
2356
- hideDetails: !0,
2357
- config: {
2358
- open: t,
2359
- maxHeight: 1e4,
2360
- body: {
2361
- backgroundColor: H.value.chart.backgroundColor,
2362
- color: H.value.chart.color
2363
- },
2364
- head: {
2365
- backgroundColor: H.value.chart.backgroundColor,
2366
- color: H.value.chart.color
2367
- }
2368
- }
2369
- }
2370
- };
2371
- });
2372
- mt(() => U.value.showTable, (e) => {
2373
- H.value.showTable || (e && H.value.table.useDialog && Xi.value ? Xi.value.open() : Xi.value && Xi.value.close && Xi.value.close());
2374
- });
2375
- function Sc() {
2376
- U.value.showTable = !1, Ei.value && Ei.value.setTableIconState(!1);
2377
- }
2378
- let Cc = x(() => Xa.value.map((e) => ({
2379
- shape: e.type === "bar" ? "square" : e.shape ?? "circle",
2380
- color: e.color,
2381
- name: e.name
2382
- }))), wc = x(() => H.value.chart.backgroundColor), Tc = x(() => H.value.chart.legend), { exportSvg: Ec, getSvg: Dc } = Fe({
2383
- svg: z,
2384
- title: x(() => H.value.chart.title),
2385
- legend: Tc,
2386
- legendItems: Cc,
2387
- backgroundColor: wc
2388
- });
2389
- async function Oc({ isCb: e }) {
2390
- Qi.value = !0, await rt();
2391
- try {
2392
- if (e) {
2393
- let { blob: e, url: t, text: n, dataUrl: r } = await Dc();
2394
- await Promise.resolve(H.value.chart.userOptions.callbacks.svg({
2395
- blob: e,
2396
- url: t,
2397
- text: n,
2398
- dataUrl: r
2399
- }));
2400
- } else await Promise.resolve(Ec());
2401
- } finally {
2402
- Qi.value = !1;
2403
- }
2404
- }
2405
- function kc(e) {
2406
- if (e?.stage === "start") {
2407
- Zi.value = !0;
2408
- return;
2409
- }
2410
- if (e?.stage === "end") {
2411
- Zi.value = !1;
2412
- return;
2413
- }
2414
- La();
2415
- }
2416
- async function Ac() {
2417
- if (li("copyAlt", {
2418
- config: {
2419
- ...H.value,
2420
- formattedDates: X.value
2421
- },
2422
- dataset: {
2423
- lines: $.value,
2424
- bars: Vs.value,
2425
- plots: Hs.value
2426
- }
2427
- }), !H.value.chart.userOptions.callbacks.altCopy) {
2428
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
2429
- return;
2430
- }
2431
- await Promise.resolve(H.value.chart.userOptions.callbacks.altCopy({
2432
- config: {
2433
- ...H.value,
2434
- formattedDates: X.value
2435
- },
2436
- dataset: {
2437
- lines: $.value,
2438
- bars: Vs.value,
2439
- plots: Hs.value
2440
- }
2441
- }));
2442
- }
2443
- let jc = O(!1);
2444
- function Mc() {
2445
- K.value.end > K.value.start && ($i.value = null), po.value = !0, jc.value = !0;
2446
- }
2447
- function Nc() {
2448
- $i.value = null, ts(), jc.value = !1, po.value = !1;
2449
- }
2450
- function Pc(e) {
2451
- if (!z.value || Fi.value || document.activeElement !== z.value) return;
2452
- let t = e.key === "ArrowLeft", n = e.key === "ArrowRight";
2453
- if (!t && !n || !K.value.end && K.value.end !== 0) return;
2454
- let r = K.value.end - K.value.start;
2455
- if (r <= 0) return;
2456
- e.preventDefault(), e.stopPropagation();
2457
- let i = $i.value, a = Zo.value;
2458
- i !== null && i >= 0 && i < r ? n ? (i += 1, i >= r && (i = 0)) : t && (--i, i < 0 && (i = r - 1)) : a !== null && a >= 0 && a < r ? (i = n ? a + 1 : a - 1, i >= r && (i = 0), i < 0 && (i = r - 1)) : i = n ? 0 : r - 1, $i.value = i, Fc(i), ec(!0, i);
2459
- }
2460
- function Fc(e) {
2461
- let t = K.value.end - K.value.start;
2462
- if (t <= 0) return;
2463
- let n = Y.value.width / t, r = c(Y.value.left + n * e + n / 2, Y.value.top + Y.value.height / 2, z.value);
2464
- r && (ea.value = r);
2465
- }
2466
- let Ic = x(() => {
2467
- if (!Qs.value) return null;
2468
- let e = H.value.table.showSum, t = [H.value.table.columnNames.period].concat(Za.value.map((e) => e.name));
2469
- e && (t = t.concat(H.value.table.columnNames.total));
2470
- let n = Qs.value.body.slice(K.value.start, K.value.end);
2471
- return {
2472
- headers: t,
2473
- rows: n
2474
- };
2475
- });
2476
- return We({
2477
- getData: is,
2478
- getImage: as,
2479
- generatePdf: Ia,
2480
- generateImage: La,
2481
- generateSvg: Oc,
2482
- generateCsv: $s,
2483
- hideSeries: ds,
2484
- showSeries: us,
2485
- toggleStack: wo,
2486
- toggleTable: tc,
2487
- toggleLabels: nc,
2488
- toggleTooltip: rc,
2489
- toggleAnnotator: ho,
2490
- toggleFullscreen: ic,
2491
- copyAlt: Ac,
2492
- resetZoom: Lo
2493
- }), (r, i) => (D(), C("div", {
2494
- id: `vue-ui-xy_${L.value}`,
2495
- class: it(`vue-data-ui-component vue-ui-xy ${Ii.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${H.value.useCssAnimation ? "" : "vue-ui-dna"}`),
2496
- ref_key: "chart",
2497
- ref: hi,
2498
- style: E(`background:${H.value.chart.backgroundColor}; color:${H.value.chart.color};width:100%;font-family:${H.value.chart.fontFamily};${H.value.responsive ? "height: 100%" : ""}`),
2499
- onMouseenter: i[6] ||= () => mo(!0),
2500
- onMouseleave: i[7] ||= () => mo(!1),
2501
- onClick: ns
2502
- }, [
2503
- w("div", {
2504
- id: `chart-instructions-${L.value}`,
2505
- class: "sr-only"
2506
- }, [w("p", null, ut(H.value.a11y.translations.keyboardNavigation), 1)], 8, yt),
2507
- Ic.value?.rows?.length ? (D(), Xe(Je, {
2508
- key: 0,
2509
- uid: L.value,
2510
- head: Ic.value.headers,
2511
- body: Ic.value.rows,
2512
- notice: H.value.a11y.translations.tableAvailable,
2513
- caption: H.value.a11y.translations.tableCaption
2514
- }, null, 8, [
2515
- "uid",
2516
- "head",
2517
- "body",
2518
- "notice",
2519
- "caption"
2520
- ])) : S("", !0),
2521
- H.value.chart.userOptions.buttons.annotator && z.value ? (D(), Xe(j(si), {
2522
- key: 1,
2523
- svgRef: z.value,
2524
- backgroundColor: H.value.chart.backgroundColor,
2525
- color: H.value.chart.color,
2526
- active: Fi.value,
2527
- isCursorPointer: ya.value,
2528
- onClose: ho
2529
- }, {
2530
- "annotator-action-close": M(() => [A(r.$slots, "annotator-action-close", {}, void 0, !0)]),
2531
- "annotator-action-color": M(({ color: e }) => [A(r.$slots, "annotator-action-color", at(T({ color: e })), void 0, !0)]),
2532
- "annotator-action-draw": M(({ mode: e }) => [A(r.$slots, "annotator-action-draw", at(T({ mode: e })), void 0, !0)]),
2533
- "annotator-action-undo": M(({ disabled: e }) => [A(r.$slots, "annotator-action-undo", at(T({ disabled: e })), void 0, !0)]),
2534
- "annotator-action-redo": M(({ disabled: e }) => [A(r.$slots, "annotator-action-redo", at(T({ disabled: e })), void 0, !0)]),
2535
- "annotator-action-delete": M(({ disabled: e }) => [A(r.$slots, "annotator-action-delete", at(T({ disabled: e })), void 0, !0)]),
2536
- _: 3
2537
- }, 8, [
2538
- "svgRef",
2539
- "backgroundColor",
2540
- "color",
2541
- "active",
2542
- "isCursorPointer"
2543
- ])) : S("", !0),
2544
- ms.value ? (D(), C("div", {
2545
- key: 2,
2546
- ref_key: "noTitle",
2547
- ref: bi,
2548
- class: "vue-data-ui-no-title-space",
2549
- style: "height:36px; width: 100%; background:transparent"
2550
- }, null, 512)) : S("", !0),
2551
- H.value.chart.title.show ? (D(), C("div", {
2552
- key: 3,
2553
- ref_key: "chartTitle",
2554
- ref: gi,
2555
- class: "vue-ui-xy-title",
2556
- style: E(`font-family:${H.value.chart.fontFamily}`)
2557
- }, [(D(), Xe(Ve, {
2558
- key: `title_${Vi.value}`,
2559
- config: {
2560
- title: {
2561
- cy: "xy-div-title",
2562
- ...H.value.chart.title
2563
- },
2564
- subtitle: {
2565
- cy: "xy-div-subtitle",
2566
- ...H.value.chart.title.subtitle
2567
- }
2568
- }
2569
- }, null, 8, ["config"]))], 4)) : S("", !0),
2570
- w("div", { id: `legend-top-${L.value}` }, null, 8, bt),
2571
- H.value.chart.userOptions.show && (Gi.value || Ki.value) ? (D(), Xe(j(ri), {
2572
- ref_key: "userOptionsRef",
2573
- ref: Ei,
2574
- key: `user_options_${zi.value}`,
2575
- backgroundColor: H.value.chart.backgroundColor,
2576
- color: H.value.chart.color,
2577
- isPrinting: j(Pa),
2578
- isImaging: j(Fa),
2579
- uid: L.value,
2580
- hasTooltip: H.value.chart.userOptions.buttons.tooltip && H.value.chart.tooltip.show,
2581
- hasPdf: H.value.chart.userOptions.buttons.pdf,
2582
- hasXls: H.value.chart.userOptions.buttons.csv,
2583
- hasImg: H.value.chart.userOptions.buttons.img,
2584
- hasSvg: H.value.chart.userOptions.buttons.svg,
2585
- hasLabel: H.value.chart.userOptions.buttons.labels,
2586
- hasTable: H.value.chart.userOptions.buttons.table,
2587
- hasStack: e.dataset.length > 1 && H.value.chart.userOptions.buttons.stack,
2588
- hasFullscreen: H.value.chart.userOptions.buttons.fullscreen,
2589
- hasAltCopy: H.value.chart.userOptions.buttons.altCopy,
2590
- isStacked: U.value.isStacked,
2591
- isFullscreen: Ii.value,
2592
- chartElement: r.$refs.chart,
2593
- position: H.value.chart.userOptions.position,
2594
- isTooltip: U.value.showTooltip,
2595
- titles: { ...H.value.chart.userOptions.buttonTitles },
2596
- hasAnnotator: H.value.chart.userOptions.buttons.annotator,
2597
- isAnnotation: Fi.value,
2598
- callbacks: H.value.chart.userOptions.callbacks,
2599
- tableDialog: H.value.table.useDialog,
2600
- printScale: H.value.chart.userOptions.print.scale,
2601
- isCursorPointer: ya.value,
2602
- onToggleFullscreen: ic,
2603
- onGeneratePdf: j(Ia),
2604
- onGenerateCsv: $s,
2605
- onGenerateImage: kc,
2606
- onGenerateSvg: Oc,
2607
- onToggleTable: tc,
2608
- onToggleLabels: nc,
2609
- onToggleStack: wo,
2610
- onToggleTooltip: rc,
2611
- onToggleAnnotator: ho,
2612
- onCopyAlt: Ac,
2613
- style: E({ visibility: Gi.value ? Ki.value ? "visible" : "hidden" : "visible" })
2614
- }, Ze({ _: 2 }, [
2615
- r.$slots.menuIcon ? {
2616
- name: "menuIcon",
2617
- fn: M(({ isOpen: e, color: t }) => [A(r.$slots, "menuIcon", at(T({
2618
- isOpen: e,
2619
- color: t
2620
- })), void 0, !0)]),
2621
- key: "0"
2622
- } : void 0,
2623
- r.$slots.optionTooltip ? {
2624
- name: "optionTooltip",
2625
- fn: M(() => [A(r.$slots, "optionTooltip", {}, void 0, !0)]),
2626
- key: "1"
2627
- } : void 0,
2628
- r.$slots.optionPdf ? {
2629
- name: "optionPdf",
2630
- fn: M(() => [A(r.$slots, "optionPdf", {}, void 0, !0)]),
2631
- key: "2"
2632
- } : void 0,
2633
- r.$slots.optionCsv ? {
2634
- name: "optionCsv",
2635
- fn: M(() => [A(r.$slots, "optionCsv", {}, void 0, !0)]),
2636
- key: "3"
2637
- } : void 0,
2638
- r.$slots.optionImg ? {
2639
- name: "optionImg",
2640
- fn: M(() => [A(r.$slots, "optionImg", {}, void 0, !0)]),
2641
- key: "4"
2642
- } : void 0,
2643
- r.$slots.optionSvg ? {
2644
- name: "optionSvg",
2645
- fn: M(() => [A(r.$slots, "optionSvg", {}, void 0, !0)]),
2646
- key: "5"
2647
- } : void 0,
2648
- r.$slots.optionTable ? {
2649
- name: "optionTable",
2650
- fn: M(() => [A(r.$slots, "optionTable", {}, void 0, !0)]),
2651
- key: "6"
2652
- } : void 0,
2653
- r.$slots.optionLabels ? {
2654
- name: "optionLabels",
2655
- fn: M(() => [A(r.$slots, "optionLabels", {}, void 0, !0)]),
2656
- key: "7"
2657
- } : void 0,
2658
- r.$slots.optionStack ? {
2659
- name: "optionStack",
2660
- fn: M(({ isStack: e }) => [A(r.$slots, "optionStack", at(T({ isStack: e })), void 0, !0)]),
2661
- key: "8"
2662
- } : void 0,
2663
- r.$slots.optionFullscreen ? {
2664
- name: "optionFullscreen",
2665
- fn: M(({ toggleFullscreen: e, isFullscreen: t }) => [A(r.$slots, "optionFullscreen", at(T({
2666
- toggleFullscreen: e,
2667
- isFullscreen: t
2668
- })), void 0, !0)]),
2669
- key: "9"
2670
- } : void 0,
2671
- r.$slots.optionAnnotator ? {
2672
- name: "optionAnnotator",
2673
- fn: M(({ toggleAnnotator: e, isAnnotator: t }) => [A(r.$slots, "optionAnnotator", at(T({
2674
- toggleAnnotator: e,
2675
- isAnnotator: t
2676
- })), void 0, !0)]),
2677
- key: "10"
2678
- } : void 0,
2679
- r.$slots.optionAltCopy ? {
2680
- name: "optionAltCopy",
2681
- fn: M(({ altCopy: e }) => [A(r.$slots, "optionAltCopy", at(T({ altCopy: e })), void 0, !0)]),
2682
- key: "11"
2683
- } : void 0,
2684
- r.$slots["custom-menu-before"] ? {
2685
- name: "custom-menu-before",
2686
- fn: M(() => [A(r.$slots, "custom-menu-before", {}, void 0, !0)]),
2687
- key: "12"
2688
- } : void 0,
2689
- r.$slots["custom-menu-after"] ? {
2690
- name: "custom-menu-after",
2691
- fn: M(() => [A(r.$slots, "custom-menu-after", {}, void 0, !0)]),
2692
- key: "13"
2693
- } : void 0
2694
- ]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasLabel.hasTable.hasStack.hasFullscreen.hasAltCopy.isStacked.isFullscreen.chartElement.position.isTooltip.titles.hasAnnotator.isAnnotation.callbacks.tableDialog.printScale.isCursorPointer.onGeneratePdf.style".split("."))) : S("", !0),
2695
- w("div", xt, [(D(), C("svg", {
2696
- ref_key: "svgRef",
2697
- ref: z,
2698
- xmlns: "http://www.w3.org/2000/svg",
2699
- class: it([{
2700
- "vue-data-ui-fullscreen--on": Ii.value,
2701
- "vue-data-ui-fulscreen--off": !Ii.value
2702
- }, "vue-ui-xy-svg vue-data-ui-svg"]),
2703
- width: "100%",
2704
- viewBox: Mi.value,
2705
- style: E({
2706
- background: "transparent",
2707
- color: H.value.chart.color,
2708
- fontFamily: H.value.chart.fontFamily
2709
- }),
2710
- "aria-label": fs.value,
2711
- "aria-describedby": `chart-instructions-${L.value}`,
2712
- "aria-live": "polite",
2713
- role: "img",
2714
- tabindex: "0",
2715
- preserveAspectRatio: "xMidYMid",
2716
- onMousemove: es,
2717
- onMouseleave: ts,
2718
- onClick: ns,
2719
- onFocus: Mc,
2720
- onBlur: Nc,
2721
- onKeydown: Pc
2722
- }, [w("g", {
2723
- ref_key: "G",
2724
- ref: xi,
2725
- class: "vue-data-ui-g"
2726
- }, [
2727
- $e(j(oi)),
2728
- r.$slots["chart-background"] ? (D(), C("foreignObject", {
2729
- key: 0,
2730
- x: Math.max(0, Y.value?.left),
2731
- y: Y.value?.top,
2732
- width: Math.max(0, Y.value?.width),
2733
- height: Math.max(0, Y.value?.height),
2734
- style: { pointerEvents: "none" }
2735
- }, [A(r.$slots, "chart-background", {}, void 0, !0)], 8, Ct)) : S("", !0),
2736
- Z.value > 0 ? (D(), C("g", wt, [
2737
- w("g", Tt, [
2738
- H.value.chart.grid.labels.xAxis.showBaseline ? (D(), C("line", {
2739
- key: 0,
2740
- stroke: H.value.chart.grid.stroke,
2741
- "stroke-width": "1",
2742
- x1: Y.value?.left,
2743
- x2: Y.value?.right,
2744
- y1: j(v)(Y.value?.bottom),
2745
- y2: j(v)(Y.value?.bottom),
2746
- "stroke-linecap": "round",
2747
- style: { animation: "none !important" }
2748
- }, null, 8, Et)) : S("", !0),
2749
- U.value.useIndividualScale ? H.value.chart.grid.showHorizontalLines ? (D(!0), C(b, { key: 2 }, k(Us.value, (e) => (D(), C("g", null, [e.id === P.value && e.yLabels.length ? (D(!0), C(b, { key: 0 }, k(e.yLabels, (t) => (D(), C("line", {
2750
- x1: Y.value?.left,
2751
- x2: Y.value?.right,
2752
- y1: j(v)(t.y),
2753
- y2: j(v)(t.y),
2754
- stroke: e.color,
2755
- "stroke-width": .5,
2756
- "stroke-linecap": "round",
2757
- style: { animation: "none !important" }
2758
- }, null, 8, At))), 256)) : e.yLabels.length ? (D(!0), C(b, { key: 1 }, k(e.yLabels, (e) => (D(), C("line", {
2759
- x1: Y.value?.left,
2760
- x2: Y.value?.right,
2761
- y1: j(v)(e.y),
2762
- y2: j(v)(e.y),
2763
- stroke: H.value.chart.grid.stroke,
2764
- "stroke-width": .5,
2765
- "stroke-linecap": "round",
2766
- style: { animation: "none !important" }
2767
- }, null, 8, jt))), 256)) : S("", !0)]))), 256)) : S("", !0) : (D(), C(b, { key: 1 }, [H.value.chart.grid.labels.yAxis.showBaseline ? (D(), C("line", {
2768
- key: 0,
2769
- class: "vue-ui-xy-y-axis",
2770
- stroke: H.value.chart.grid.stroke,
2771
- "stroke-width": "1",
2772
- x1: J.value ? Y.value?.right : Y.value?.left,
2773
- x2: J.value ? Y.value?.right : Y.value?.left,
2774
- y1: j(v)(Y.value?.top),
2775
- y2: j(v)(Y.value?.bottom),
2776
- "stroke-linecap": "round",
2777
- style: { animation: "none !important" }
2778
- }, null, 8, Dt)) : S("", !0), H.value.chart.grid.showHorizontalLines ? (D(), C("g", Ot, [(D(!0), C(b, null, k(Ls.value, (e) => (D(), C("line", {
2779
- x1: Y.value?.left,
2780
- x2: Y.value?.right,
2781
- y1: j(v)(e.y),
2782
- y2: j(v)(e.y),
2783
- stroke: H.value.chart.grid.stroke,
2784
- "stroke-width": .5,
2785
- "stroke-linecap": "round",
2786
- style: { animation: "none !important" }
2787
- }, null, 8, kt))), 256))])) : S("", !0)], 64)),
2788
- H.value.chart.grid.showVerticalLines ? (D(), C("g", Mt, [w("path", {
2789
- d: oo.value,
2790
- "stroke-width": .5,
2791
- stroke: H.value.chart.grid.stroke,
2792
- "stroke-linecap": "round",
2793
- style: { animation: "none !important" }
2794
- }, null, 8, Nt)])) : S("", !0),
2795
- H.value.chart.grid.labels.xAxisLabels.show ? (D(), C("g", Pt, [w("path", {
2796
- d: so.value,
2797
- stroke: H.value.chart.grid.stroke,
2798
- "stroke-width": 1,
2799
- "stroke-linecap": "round",
2800
- style: { animation: "none !important" }
2801
- }, null, 8, Ft)])) : S("", !0)
2802
- ]),
2803
- (D(!0), C(b, null, k(Vs.value, (e, t) => (D(), C("defs", { key: `def_rect_${t}` }, [r.$slots["bar-gradient"] ? A(r.$slots, "bar-gradient", nt({
2804
- key: 0,
2805
- ref_for: !0
2806
- }, {
2807
- series: e,
2808
- positiveId: `rectGradient_pos_${t}_${L.value}`,
2809
- negativeId: `rectGradient_neg_${t}_${L.value}`
2810
- }), void 0, !0) : (D(), C(b, { key: 1 }, [w("linearGradient", {
2811
- id: `rectGradient_pos_${t}_${L.value}`,
2812
- x2: "0%",
2813
- y2: "100%"
2814
- }, [
2815
- w("stop", {
2816
- offset: "0%",
2817
- "stop-color": e.color
2818
- }, null, 8, Lt),
2819
- w("stop", {
2820
- offset: "62%",
2821
- "stop-color": `${j(d)(e.color, .02)}`
2822
- }, null, 8, Rt),
2823
- w("stop", {
2824
- offset: "100%",
2825
- "stop-color": `${j(d)(e.color, .05)}`
2826
- }, null, 8, zt)
2827
- ], 8, It), w("linearGradient", {
2828
- id: `rectGradient_neg_${t}_${L.value}`,
2829
- x2: "0%",
2830
- y2: "100%"
2831
- }, [
2832
- w("stop", {
2833
- offset: "0%",
2834
- "stop-color": `${j(d)(e.color, .05)}`
2835
- }, null, 8, Vt),
2836
- w("stop", {
2837
- offset: "38%",
2838
- "stop-color": `${j(d)(e.color, .02)}`
2839
- }, null, 8, Ht),
2840
- w("stop", {
2841
- offset: "100%",
2842
- "stop-color": e.color
2843
- }, null, 8, Ut)
2844
- ], 8, Bt)], 64))]))), 128)),
2845
- (D(!0), C(b, null, k(Hs.value, (e, t) => (D(), C("defs", { key: `def_plot_${t}` }, [w("radialGradient", {
2846
- id: `plotGradient_${t}_${L.value}`,
2847
- cx: "50%",
2848
- cy: "50%",
2849
- r: "50%",
2850
- fx: "50%",
2851
- fy: "50%"
2852
- }, [w("stop", {
2853
- offset: "0%",
2854
- "stop-color": `${j(d)(e.color, .05)}`
2855
- }, null, 8, Gt), w("stop", {
2856
- offset: "100%",
2857
- "stop-color": e.color
2858
- }, null, 8, Kt)], 8, Wt)]))), 128)),
2859
- (D(!0), C(b, null, k($.value, (e, n) => (D(), C(b, { key: `def_line_${e.id}` }, [w("defs", null, [w("radialGradient", {
2860
- id: `lineGradient_${n}_${L.value}`,
2861
- cx: "50%",
2862
- cy: "50%",
2863
- r: "50%",
2864
- fx: "50%",
2865
- fy: "50%"
2866
- }, [w("stop", {
2867
- offset: "0%",
2868
- "stop-color": `${j(d)(e.color, .05)}`
2869
- }, null, 8, Jt), w("stop", {
2870
- offset: "100%",
2871
- "stop-color": e.color
2872
- }, null, 8, Yt)], 8, qt), r.$slots["area-gradient"] ? A(r.$slots, "area-gradient", nt({
2873
- key: 0,
2874
- ref_for: !0
2875
- }, {
2876
- series: e,
2877
- id: `areaGradient_${n}_${L.value}`
2878
- }), void 0, !0) : (D(), C("linearGradient", {
2879
- key: 1,
2880
- id: `areaGradient_${n}_${L.value}`,
2881
- x1: "0%",
2882
- x2: "100%",
2883
- y1: "0%",
2884
- y2: "0%"
2885
- }, [w("stop", {
2886
- offset: "0%",
2887
- "stop-color": `${j(me)(j(d)(e.color, .03), H.value.line.area.opacity)}`
2888
- }, null, 8, Zt), w("stop", {
2889
- offset: "100%",
2890
- "stop-color": `${j(me)(e.color, H.value.line.area.opacity)}`
2891
- }, null, 8, Qt)], 8, Xt))]), e.temperatureColors && !e.isFlatTemperatureLine ? (D(), C("defs", $t, [w("linearGradient", {
2892
- id: `temperature_grad_line_${n}_${L.value}`,
2893
- gradientTransform: "rotate(90)"
2894
- }, [(D(!0), C(b, null, k(e.temperatureColors, (r, i) => (D(), C("stop", {
2895
- key: `temperature_grad_stop_${n}_${i}_${L.value}`,
2896
- "stop-color": r,
2897
- offset: j(t)(i, e.temperatureColors.length)
2898
- }, null, 8, tn))), 128))], 8, en)])) : S("", !0)], 64))), 128)),
2899
- (D(!0), C(b, null, k(hs.value, (e) => (D(), C("g", null, [e.show ? (D(), C(b, { key: 0 }, [(D(!0), C(b, null, k(e.span, (t, n) => (D(), C("g", null, [w("rect", {
2900
- style: E({
2901
- transition: "none",
2902
- opacity: +(e.from + n >= K.value.start && e.from + n <= K.value.end - 1)
2903
- }),
2904
- x: Cs(e.from + n - K.value.start),
2905
- y: Y.value?.top,
2906
- height: Y.value.height < 0 ? 10 : Y.value.height,
2907
- width: ws(e.from + n - K.value.start),
2908
- fill: j(me)(e.color, e.opacity)
2909
- }, null, 12, nn)]))), 256)), (D(!0), C(b, null, k(e.span, (t, n) => (D(), C("g", null, [e.caption.text && n === 0 ? (D(), C("foreignObject", {
2910
- key: 0,
2911
- x: Cs(e.from + n - K.value.start) - (e.caption.width === "auto" ? 0 : e.caption.width / 2 - Ds(e.span) / 2),
2912
- y: Y.value?.top + e.caption.offsetY,
2913
- style: E({
2914
- overflow: "visible",
2915
- opacity: +(e.to >= K.value.start && e.from < K.value.end)
2916
- }),
2917
- height: "1",
2918
- width: e.caption.width === "auto" ? Ds(e.span) : e.caption.width
2919
- }, [w("div", { style: E(`padding:${e.caption.padding}px;text-align:${e.caption.textAlign};font-size:${e.caption.fontSize}px;color:${e.caption.color};font-weight:${e.caption.bold ? "bold" : "normal"}`) }, ut(e.caption.text), 5)], 12, rn)) : S("", !0)]))), 256))], 64)) : S("", !0)]))), 256)),
2920
- po.value ? (D(), C("g", an, [(D(!0), C(b, null, k(Z.value, (e, t) => (D(), C("g", { key: `tooltip_trap_highlighter_${t}` }, [w("rect", {
2921
- x: Cs(t),
2922
- y: Y.value?.top,
2923
- height: Y.value.height < 0 ? 10 : Y.value.height,
2924
- width: Es(t),
2925
- fill: [
2926
- R.value,
2927
- B.value,
2928
- Ri.value
2929
- ].includes(t) ? j(me)(H.value.chart.highlighter.color, H.value.chart.highlighter.opacity) : "transparent",
2930
- style: {
2931
- transition: "none !important",
2932
- animation: "none !important"
2933
- }
2934
- }, null, 8, on)]))), 128))])) : S("", !0),
2935
- Vs.value.length ? (D(!0), C(b, { key: 1 }, k(Vs.value, (e, t) => (D(), C("g", {
2936
- key: `serie_bar_${e.id}`,
2937
- class: it(`serie_bar_${t}`),
2938
- style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
2939
- }, [(D(!0), C(b, null, k(e.plots, (n, i) => (D(), C("g", { key: `bar_plot_${t}_${i}` }, [
2940
- Ro(n.value) ? (D(), C("rect", {
2941
- key: 0,
2942
- x: Jo(n) + Ns.value / 2,
2943
- y: U.value.useIndividualScale ? Xo(n) : Yo(n),
2944
- height: U.value.useIndividualScale ? Math.abs(Go(n)) : Math.abs(Wo(n)),
2945
- width: Ms.value - Ns.value,
2946
- rx: H.value.bar.borderRadius,
2947
- fill: H.value.bar.useGradient ? n.value >= 0 ? `url(#rectGradient_pos_${t}_${L.value})` : `url(#rectGradient_neg_${t}_${L.value})` : e.color,
2948
- stroke: H.value.bar.border.useSerieColor ? e.color : H.value.bar.border.stroke,
2949
- "stroke-width": H.value.bar.border.strokeWidth,
2950
- style: E({ transition: j(wa) || !H.value.bar.showTransition ? void 0 : `all ${H.value.bar.transitionDurationMs}ms ease-in-out` })
2951
- }, null, 12, sn)) : S("", !0),
2952
- Ro(n.value) && r.$slots.pattern ? (D(), C("rect", {
2953
- key: 1,
2954
- x: Jo(n) - Ns.value / 2,
2955
- y: U.value.useIndividualScale ? Xo(n) : Yo(n),
2956
- height: U.value.useIndividualScale ? Math.abs(Go(n)) : Math.abs(Wo(n)),
2957
- width: Ms.value - Ns.value,
2958
- rx: H.value.bar.borderRadius,
2959
- fill: `url(#pattern_${L.value}_${e.slotAbsoluteIndex})`,
2960
- stroke: H.value.bar.border.useSerieColor ? e.color : H.value.bar.border.stroke,
2961
- "stroke-width": H.value.bar.border.strokeWidth,
2962
- style: E({ transition: j(wa) || !H.value.bar.showTransition ? void 0 : `all ${H.value.bar.transitionDurationMs}ms ease-in-out` })
2963
- }, null, 12, cn)) : S("", !0),
2964
- n.comment && H.value.chart.comments.show ? (D(), C("foreignObject", {
2965
- key: 2,
2966
- style: { overflow: "visible" },
2967
- height: "12",
2968
- width: Ms.value + H.value.chart.comments.width,
2969
- x: Jo(n) - H.value.chart.comments.width / 2 + H.value.chart.comments.offsetX,
2970
- y: j(y)(n.y) + H.value.chart.comments.offsetY + 6
2971
- }, [A(r.$slots, "plot-comment", { plot: {
2972
- ...n,
2973
- color: e.color,
2974
- seriesIndex: t,
2975
- datapointIndex: i
2976
- } }, void 0, !0)], 8, ln)) : S("", !0)
2977
- ]))), 128))], 6))), 128)) : S("", !0),
2978
- !U.value.useIndividualScale && H.value.chart.grid.labels.zeroLine.show ? (D(), C("line", {
2979
- key: 2,
2980
- stroke: H.value.chart.grid.stroke,
2981
- "stroke-width": "1",
2982
- x1: Y.value?.left,
2983
- x2: Y.value?.right,
2984
- y1: j(v)(Uo.value),
2985
- y2: j(v)(Uo.value),
2986
- "stroke-linecap": "round",
2987
- style: { animation: "none !important" }
2988
- }, null, 8, un)) : S("", !0),
2989
- H.value.chart.highlighter.useLine && (![null, void 0].includes(B.value) || ![null, void 0].includes(R.value)) ? (D(), C("g", dn, [w("line", {
2990
- x1: xs((B.value === null ? 0 : B.value) || (R.value === null ? 0 : R.value)),
2991
- x2: xs((B.value === null ? 0 : B.value) || (R.value === null ? 0 : R.value)),
2992
- y1: j(v)(Y.value?.top),
2993
- y2: j(v)(Y.value?.bottom),
2994
- stroke: H.value.chart.highlighter.color,
2995
- "stroke-width": H.value.chart.highlighter.lineWidth,
2996
- "stroke-dasharray": H.value.chart.highlighter.lineDasharray,
2997
- "stroke-linecap": "round",
2998
- style: {
2999
- transition: "none !important",
3000
- animation: "none !important",
3001
- "pointer-events": "none"
3002
- }
3003
- }, null, 8, fn)])) : S("", !0),
3004
- H.value.chart.grid.frame.show ? (D(), C("rect", {
3005
- key: 4,
3006
- style: {
3007
- pointerEvents: "none",
3008
- transition: "none",
3009
- animation: "none !important"
3010
- },
3011
- x: Math.max(0, Y.value?.left),
3012
- y: Y.value?.top,
3013
- width: Math.max(0, Y.value?.width),
3014
- height: Y.value.height < 0 ? 0 : Y.value.height,
3015
- fill: "transparent",
3016
- stroke: H.value.chart.grid.frame.stroke,
3017
- "stroke-width": H.value.chart.grid.frame.strokeWidth,
3018
- "stroke-linecap": H.value.chart.grid.frame.strokeLinecap,
3019
- "stroke-linejoin": H.value.chart.grid.frame.strokeLinejoin,
3020
- "stroke-dasharray": H.value.chart.grid.frame.strokeDasharray
3021
- }, null, 8, pn)) : S("", !0),
3022
- H.value.chart.grid.labels.show ? (D(), C("g", {
3023
- key: 5,
3024
- ref_key: "scaleLabels",
3025
- ref: Ti
3026
- }, [U.value.useIndividualScale ? (D(), C(b, { key: 0 }, [(D(!0), C(b, null, k(Us.value, (e) => (D(), C("g", null, [w("line", {
3027
- x1: U.value.isStacked ? J.value ? Y.value.right : Y.value.left : J.value ? e.x : e.x - Y.value.individualOffsetX,
3028
- x2: U.value.isStacked ? J.value ? Y.value.right : Y.value.left : J.value ? e.x : e.x - Y.value.individualOffsetX,
3029
- y1: U.value.isStacked ? j(v)(Y.value?.bottom - e.yOffset - e.individualHeight) : j(v)(Y.value?.top),
3030
- y2: U.value.isStacked ? j(v)(Y.value?.bottom - e.yOffset) : j(v)(Y.value?.bottom),
3031
- stroke: e.color,
3032
- "stroke-width": H.value.chart.grid.stroke,
3033
- "stroke-linecap": "round",
3034
- style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
3035
- }, null, 12, mn)]))), 256)), (D(!0), C(b, null, k(Us.value, (e) => (D(), C("g", { style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .3 : 1};transition:opacity 0.2s ease-in-out`) }, [
3036
- w("text", {
3037
- fill: e.color,
3038
- "font-size": V.value.dataLabels * .8,
3039
- "text-anchor": "middle",
3040
- transform: `translate(${U.value.isStacked ? J.value ? Y.value.right + H.value.chart.grid.labels.yAxis.crosshairSize + H.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 + H.value.chart.grid.labels.yAxis.labelWidth + Y.value.individualOffsetX + H.value.chart.grid.labels.axis.yLabelOffsetX : Y.value.left - H.value.chart.grid.labels.yAxis.crosshairSize - H.value.chart.grid.labels.yAxis.scaleValueOffsetX - H.value.chart.grid.labels.yAxis.labelWidth - H.value.chart.grid.labels.axis.yLabelOffsetX : J.value ? e.x + H.value.chart.grid.labels.yAxis.crosshairSize + H.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 + H.value.chart.grid.labels.yAxis.labelWidth + H.value.chart.grid.labels.axis.yLabelOffsetX : e.x - V.value.dataLabels * .8 / 2}, ${U.value.isStacked ? Y.value?.bottom - e.yOffset - e.individualHeight / 2 : Y.value?.top + Y.value.height / 2}) rotate(-90)`
3041
- }, ut(e.name) + " " + ut(e.scaleLabel && e.unique && e.scaleLabel !== e.id ? `- ${e.scaleLabel}` : ""), 9, hn),
3042
- (D(!0), C(b, null, k(e.yLabels, (t, n) => (D(), C(b, null, [H.value.chart.grid.labels.yAxis.showCrosshairs ? (D(), C("line", {
3043
- key: 0,
3044
- x1: U.value.isStacked ? J.value ? Y.value.right : Y.value.left : J.value ? e.x : e.x + 3 - H.value.chart.grid.labels.yAxis.crosshairSize - Y.value.individualOffsetX,
3045
- x2: U.value.isStacked ? J.value ? Y.value.right + H.value.chart.grid.labels.yAxis.crosshairSize : Y.value.left - H.value.chart.grid.labels.yAxis.crosshairSize : J.value ? e.x + H.value.chart.grid.labels.yAxis.crosshairSize : e.x - Y.value.individualOffsetX,
3046
- y1: j(v)(t.y),
3047
- y2: j(v)(t.y),
3048
- stroke: e.color,
3049
- "stroke-width": 1,
3050
- "stroke-linecap": "round",
3051
- style: { animation: "none !important" }
3052
- }, null, 8, gn)) : S("", !0)], 64))), 256)),
3053
- (D(!0), C(b, null, k(e.yLabels, (t, n) => (D(), C("text", {
3054
- transform: `translate(${U.value.isStacked ? J.value ? Y.value.right + H.value.chart.grid.labels.yAxis.crosshairSize + H.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : Y.value.left - H.value.chart.grid.labels.yAxis.crosshairSize - H.value.chart.grid.labels.yAxis.scaleValueOffsetX - 5 : J.value ? e.x + H.value.chart.grid.labels.yAxis.crosshairSize + H.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : e.x - 5 - Y.value.individualOffsetX}, ${j(v)(t.y) + V.value.dataLabels / 3})`,
3055
- "text-anchor": J.value ? "start" : "end",
3056
- "font-size": V.value.dataLabels,
3057
- fill: e.color
3058
- }, ut(j(fe)(H.value.chart.grid.labels.yAxis.formatter, t.value, j(a)({
3059
- p: t.prefix,
3060
- v: t.value,
3061
- s: t.suffix,
3062
- r: H.value.chart.grid.labels.yAxis.rounding
3063
- }), {
3064
- datapoint: t.datapoint,
3065
- seriesIndex: n
3066
- })), 9, _n))), 256))
3067
- ], 4))), 256))], 64)) : (D(!0), C(b, { key: 1 }, k(Ls.value, (e, t) => (D(), C("g", { key: `yLabel_${t}` }, [Ro(e) && e.value >= q.value.min && e.value <= q.value.max && H.value.chart.grid.labels.yAxis.showCrosshairs ? (D(), C("line", {
3068
- key: 0,
3069
- x1: J.value ? Y.value?.right : Y.value?.left,
3070
- x2: J.value ? Y.value?.right + H.value.chart.grid.labels.yAxis.crosshairSize : Y.value?.left - H.value.chart.grid.labels.yAxis.crosshairSize,
3071
- y1: j(v)(e.y),
3072
- y2: j(v)(e.y),
3073
- stroke: H.value.chart.grid.stroke,
3074
- "stroke-width": "1",
3075
- "stroke-linecap": "round",
3076
- style: { animation: "none !important" }
3077
- }, null, 8, vn)) : S("", !0), e.value >= q.value.min && e.value <= q.value.max ? (D(), C("text", {
3078
- key: 1,
3079
- transform: `translate(${J.value ? Y.value.right + H.value.chart.grid.labels.yAxis.crosshairSize + H.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : Y.value.scaleLabelX - H.value.chart.grid.labels.yAxis.crosshairSize}, ${j(y)(e.y + V.value.dataLabels / 3)})`,
3080
- "font-size": V.value.dataLabels,
3081
- "text-anchor": J.value ? "start" : "end",
3082
- fill: H.value.chart.grid.labels.color
3083
- }, ut(Ro(e.value) ? j(fe)(H.value.chart.grid.labels.yAxis.formatter, e.value, j(a)({
3084
- p: e.prefix,
3085
- v: e.value,
3086
- s: e.suffix,
3087
- r: H.value.chart.grid.labels.yAxis.rounding
3088
- })) : ""), 9, yn)) : S("", !0)]))), 128))], 512)) : S("", !0),
3089
- (D(!0), C(b, null, k(Hs.value, (e, t) => (D(), C("g", {
3090
- key: `serie_plot_${e.id}`,
3091
- class: it(`serie_plot_${t}`),
3092
- style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3093
- }, [(D(!0), C(b, null, k(e.plots, (n, i) => (D(), C("g", { key: `circle_plot_${t}_${i}` }, [n && Ro(n.value) ? (D(), Xe(Ue, {
3094
- key: 0,
3095
- shape: [
3096
- "triangle",
3097
- "square",
3098
- "diamond",
3099
- "pentagon",
3100
- "hexagon",
3101
- "star"
3102
- ].includes(e.shape) ? e.shape : "circle",
3103
- color: H.value.plot.useGradient ? `url(#plotGradient_${t}_${L.value})` : H.value.plot.dot.useSerieColor ? e.color : H.value.plot.dot.fill,
3104
- plot: {
3105
- x: j(y)(n.x),
3106
- y: j(y)(n.y)
3107
- },
3108
- radius: B.value !== null && B.value === i || R.value !== null && R.value === i ? (ha.value.plot || 6) * 1.5 : ha.value.plot || 6,
3109
- stroke: H.value.plot.dot.useSerieColor ? H.value.chart.backgroundColor : e.color,
3110
- strokeWidth: H.value.plot.dot.strokeWidth,
3111
- transition: j(wa) || !H.value.plot.showTransition || B.value !== null && B.value === i || R.value !== null && R.value === i ? void 0 : `all ${H.value.plot.transitionDurationMs}ms ease-in-out`
3112
- }, null, 8, [
3113
- "shape",
3114
- "color",
3115
- "plot",
3116
- "radius",
3117
- "stroke",
3118
- "strokeWidth",
3119
- "transition"
3120
- ])) : S("", !0), n.comment && H.value.chart.comments.show ? (D(), C("foreignObject", {
3121
- key: 1,
3122
- style: { overflow: "visible" },
3123
- height: "12",
3124
- width: H.value.chart.comments.width,
3125
- x: n.x - H.value.chart.comments.width / 2 + H.value.chart.comments.offsetX,
3126
- y: n.y + H.value.chart.comments.offsetY + 6
3127
- }, [w("div", xn, [A(r.$slots, "plot-comment", { plot: {
3128
- ...n,
3129
- color: e.color,
3130
- seriesIndex: t,
3131
- datapointIndex: i
3132
- } }, void 0, !0)])], 8, bn)) : S("", !0)]))), 128))], 6))), 128)),
3133
- (D(!0), C(b, null, k($.value, (e, t) => (D(), C("g", {
3134
- key: `serie_line_${e.id}`,
3135
- class: it(`serie_line_${t}`),
3136
- style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3137
- }, [e.smooth && e.plots.length > 1 && e.curve ? (D(), C("path", {
3138
- key: 0,
3139
- d: `M${e.curve}`,
3140
- stroke: H.value.chart.backgroundColor,
3141
- "stroke-width": H.value.line.strokeWidth + 1,
3142
- "stroke-dasharray": e.dashed ? H.value.line.strokeWidth * 2 : 0,
3143
- fill: "none",
3144
- style: E({ transition: j(wa) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
3145
- }, null, 12, Sn)) : e.plots.length > 1 && e.straight ? (D(), C("path", {
3146
- key: 1,
3147
- d: `M${e.straight}`,
3148
- stroke: H.value.chart.backgroundColor,
3149
- "stroke-width": H.value.line.strokeWidth + 1,
3150
- "stroke-dasharray": e.dashed ? H.value.line.strokeWidth * 2 : 0,
3151
- fill: "none",
3152
- "stroke-linecap": "round",
3153
- "stroke-linejoin": "round",
3154
- style: E({ transition: j(wa) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
3155
- }, null, 12, Cn)) : S("", !0)], 6))), 128)),
3156
- r.$slots.pattern ? (D(), C("defs", wn, [(D(!0), C(b, null, k(Ya.value, (e, t) => A(r.$slots, "pattern", nt({ key: `serie_pattern_slot_${e.id}` }, { ref_for: !0 }, {
3157
- ...e,
3158
- seriesIndex: e.slotAbsoluteIndex,
3159
- patternId: `pattern_${L.value}_${t}`
3160
- }), void 0, !0)), 128))])) : S("", !0),
3161
- Ws.value.length && !U.value.isStacked ? (D(), C("g", Tn, [(D(!0), C(b, null, k(Ws.value, (e) => (D(), C("path", {
3162
- key: e.key,
3163
- d: e.d,
3164
- fill: e.color,
3165
- "fill-opacity": H.value.line.interLine.fillOpacity,
3166
- stroke: "none",
3167
- "pointer-events": "none",
3168
- style: E({ transition: j(wa) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
3169
- }, null, 12, En))), 128))])) : S("", !0),
3170
- (D(!0), C(b, null, k($.value, (e, t) => (D(), C("g", {
3171
- key: `serie_line_above_${e.id}`,
3172
- class: it(`serie_line_${t}`),
3173
- style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3174
- }, [
3175
- e.useArea && e.plots.length > 1 ? (D(), C("g", Dn, [e.smooth ? (D(!0), C(b, { key: 0 }, k(e.curveAreas, (n, i) => (D(), C(b, { key: i }, [n ? (D(), C("path", {
3176
- key: 0,
3177
- d: n,
3178
- fill: H.value.line.area.useGradient ? `url(#areaGradient_${t}_${L.value})` : j(me)(e.color, H.value.line.area.opacity),
3179
- style: E({ transition: j(wa) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
3180
- }, null, 12, On)) : S("", !0), r.$slots.pattern && n ? (D(), C("path", {
3181
- key: 1,
3182
- d: n,
3183
- fill: `url(#pattern_${L.value}_${e.slotAbsoluteIndex})`,
3184
- style: E({ transition: j(wa) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
3185
- }, null, 12, kn)) : S("", !0)], 64))), 128)) : (D(!0), C(b, { key: 1 }, k(e.area.split(";"), (n, i) => (D(), C(b, { key: i }, [n ? (D(), C("path", {
3186
- key: 0,
3187
- d: `M${n}Z`,
3188
- fill: H.value.line.area.useGradient ? `url(#areaGradient_${t}_${L.value})` : j(me)(e.color, H.value.line.area.opacity),
3189
- style: E({ transition: j(wa) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
3190
- }, null, 12, An)) : S("", !0), r.$slots.pattern && n ? (D(), C("path", {
3191
- key: 1,
3192
- d: `M${n}Z`,
3193
- fill: `url(#pattern_${L.value}_${e.slotAbsoluteIndex})`,
3194
- style: E({ transition: j(wa) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
3195
- }, null, 12, jn)) : S("", !0)], 64))), 128))])) : S("", !0),
3196
- !e.hasDashedSegments && e.smooth && e.plots.length > 1 && e.curve ? (D(), C("path", {
3197
- key: 1,
3198
- d: `M${e.curve}`,
3199
- stroke: e.temperatureColors && !e.isFlatTemperatureLine ? `url(#temperature_grad_line_${t}_${L.value})` : e.color,
3200
- "stroke-width": H.value.line.strokeWidth,
3201
- "stroke-dasharray": e.dashed ? H.value.line.strokeWidth * 2 : 0,
3202
- fill: "none",
3203
- "stroke-linecap": "round",
3204
- style: E({ transition: j(wa) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
3205
- }, null, 12, Mn)) : e.hasDashedSegments ? (D(), C(b, { key: 2 }, [e.smooth ? (D(!0), C(b, { key: 0 }, k(e.dashedSmooth, (n) => (D(), C("path", {
3206
- key: n.path,
3207
- fill: "none",
3208
- "stroke-linecap": "round",
3209
- "stroke-linejoin": "round",
3210
- d: `M ${n.path}`,
3211
- stroke: e.temperatureColors && !e.isFlatTemperatureLine ? `url(#temperature_grad_line_${t}_${L.value})` : e.color,
3212
- "stroke-width": H.value.line.strokeWidth,
3213
- "stroke-dasharray": n.dashed ? H.value.line.strokeWidth * 2 : 0
3214
- }, null, 8, Nn))), 128)) : (D(!0), C(b, { key: 1 }, k(e.dashedStraight, (n) => (D(), C("path", {
3215
- key: n.path,
3216
- fill: "none",
3217
- "stroke-linecap": "round",
3218
- "stroke-linejoin": "round",
3219
- d: `M ${n.path}`,
3220
- stroke: e.temperatureColors && !e.isFlatTemperatureLine ? `url(#temperature_grad_line_${t}_${L.value})` : e.color,
3221
- "stroke-width": H.value.line.strokeWidth,
3222
- "stroke-dasharray": n.dashed ? H.value.line.strokeWidth * 2 : 0
3223
- }, null, 8, Pn))), 128))], 64)) : e.plots.length > 1 && e.straight ? (D(), C("path", {
3224
- key: 3,
3225
- d: `M${e.straight}`,
3226
- stroke: e.temperatureColors && !e.isFlatTemperatureLine ? `url(#temperature_grad_line_${t}_${L.value})` : e.color,
3227
- "stroke-width": H.value.line.strokeWidth,
3228
- "stroke-dasharray": e.dashed ? H.value.line.strokeWidth * 2 : 0,
3229
- fill: "none",
3230
- "stroke-linecap": "round",
3231
- "stroke-linejoin": "round",
3232
- style: E({ transition: j(wa) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
3233
- }, null, 12, Fn)) : S("", !0),
3234
- (D(!0), C(b, null, k(e.plots, (n, i) => (D(), C(b, { key: `circle_line_${t}_${i}` }, [!ps.value.linePlot && n && Ro(n.value) || ps.value.linePlot && n && Ro(n.value) && (B.value !== null && B.value === i || R.value !== null && R.value === i) || zs(e.plots, i) ? (D(), Xe(Ue, {
3235
- key: 0,
3236
- shape: [
3237
- "triangle",
3238
- "square",
3239
- "diamond",
3240
- "pentagon",
3241
- "hexagon",
3242
- "star"
3243
- ].includes(e.shape) ? e.shape : "circle",
3244
- color: H.value.line.useGradient ? `url(#lineGradient_${t}_${L.value})` : H.value.line.dot.useSerieColor ? e.color : H.value.line.dot.fill,
3245
- plot: {
3246
- x: j(y)(n.x),
3247
- y: j(y)(n.y)
3248
- },
3249
- radius: B.value !== null && B.value === i || R.value !== null && R.value === i ? (ha.value.line || 6) * 1.5 : (zs(e.plots, i), ha.value.line || 6),
3250
- stroke: H.value.line.dot.useSerieColor ? H.value.chart.backgroundColor : e.color,
3251
- strokeWidth: H.value.line.dot.strokeWidth,
3252
- transition: j(wa) || !H.value.line.showTransition || B.value !== null && B.value === i || R.value !== null && R.value === i ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out`
3253
- }, null, 8, [
3254
- "shape",
3255
- "color",
3256
- "plot",
3257
- "radius",
3258
- "stroke",
3259
- "strokeWidth",
3260
- "transition"
3261
- ])) : S("", !0), n.comment && H.value.chart.comments.show ? (D(), C("foreignObject", {
3262
- key: 1,
3263
- style: { overflow: "visible" },
3264
- height: "12",
3265
- width: H.value.chart.comments.width,
3266
- x: n.x - H.value.chart.comments.width / 2 + H.value.chart.comments.offsetX,
3267
- y: n.y + H.value.chart.comments.offsetY + 6
3268
- }, [w("div", Ln, [A(r.$slots, "plot-comment", { plot: {
3269
- ...n,
3270
- color: e.color,
3271
- seriesIndex: t,
3272
- datapointIndex: i
3273
- } }, void 0, !0)])], 8, In)) : S("", !0)], 64))), 128))
3274
- ], 6))), 128)),
3275
- (H.value.bar.labels.show || H.value.bar.serieName.show) && U.value.dataLabels.show ? (D(), C("g", Rn, [(D(!0), C(b, null, k(Vs.value, (e, t) => (D(), C(b, { key: `xLabel_bar_${e.id}` }, [(D(!0), C(b, null, k(e.plots, (n, r) => (D(), C(b, { key: `xLabel_bar_${t}_${r}` }, [n && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || B.value !== null && B.value === r || R.value !== null && R.value === r) && H.value.bar.labels.show ? (D(), C("text", {
3276
- key: 0,
3277
- "text-anchor": vc({
3278
- plot: n,
3279
- type: "bar"
3280
- }),
3281
- "font-size": V.value.plotLabels,
3282
- transform: gc({ plot: n }),
3283
- fill: H.value.bar.labels.color,
3284
- stroke: H.value.chart.backgroundColor,
3285
- "paint-order": "stroke",
3286
- style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`),
3287
- innerHTML: hc({
3288
- serie: e,
3289
- plot: n,
3290
- type: "bar"
3291
- })
3292
- }, null, 12, zn)) : S("", !0), n && H.value.bar.serieName.show ? (D(), C("text", {
3293
- key: 1,
3294
- x: U.value.useIndividualScale && U.value.isStacked ? n.x + Ko.value.line / 2 : n.x + qo() * 1.1,
3295
- y: n.y + (n.value > 0 ? H.value.bar.serieName.offsetY : -H.value.bar.serieName.offsetY * 3),
3296
- "text-anchor": "middle",
3297
- "font-size": V.value.plotLabels,
3298
- fill: H.value.bar.serieName.useSerieColor ? e.color : H.value.bar.serieName.color,
3299
- "font-weight": H.value.bar.serieName.bold ? "bold" : "normal",
3300
- style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3301
- }, ut(H.value.bar.serieName.useAbbreviation ? j(ve)({
3302
- source: e.name,
3303
- length: H.value.bar.serieName.abbreviationSize
3304
- }) : e.name), 13, Bn)) : S("", !0)], 64))), 128))], 64))), 128))])) : S("", !0),
3305
- H.value.plot.labels.show && U.value.dataLabels.show ? (D(), C("g", Vn, [(D(!0), C(b, null, k(Hs.value, (e, t) => (D(), C(b, { key: `xLabel_plot_${e.id}` }, [(D(!0), C(b, null, k(e.plots, (n, r) => (D(), C(b, { key: `xLabel_plot_${t}_${r}` }, [n && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || B.value !== null && B.value === r || R.value !== null && R.value === r ? (D(), C("text", {
3306
- key: 0,
3307
- transform: _c({
3308
- plot: n,
3309
- type: "plot"
3310
- }),
3311
- "text-anchor": vc({
3312
- plot: n,
3313
- type: "plot"
3314
- }),
3315
- "font-size": V.value.plotLabels,
3316
- fill: H.value.plot.labels.color,
3317
- stroke: H.value.chart.backgroundColor,
3318
- "paint-order": "stroke",
3319
- style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`),
3320
- innerHTML: hc({
3321
- serie: e,
3322
- plot: n,
3323
- type: "plot"
3324
- })
3325
- }, null, 12, Hn)) : S("", !0)], 64))), 128))], 64))), 128))])) : (D(), C("g", Un, [(D(!0), C(b, null, k(Hs.value, (e, t) => (D(), C(b, { key: `xLabel_plot_${e.id}` }, [(D(!0), C(b, null, k(e.plots, (n, r) => (D(), C(b, { key: `xLabel_plot_${t}_${r}` }, [H.value.plot.tag.followValue ? (D(), C(b, { key: 1 }, [[
3326
- R.value,
3327
- B.value,
3328
- Ri.value
3329
- ].includes(r) && e.useTag ? (D(), C("line", {
3330
- key: 0,
3331
- class: "vue-ui-xy-tag-plot",
3332
- x1: Y.value?.left,
3333
- x2: Y.value?.right,
3334
- y1: n.y,
3335
- y2: n.y,
3336
- "stroke-width": 1,
3337
- "stroke-linecap": "round",
3338
- "stroke-dasharray": "2",
3339
- stroke: e.color
3340
- }, null, 8, Jn)) : S("", !0)], 64)) : (D(), C(b, { key: 0 }, [n && r === 0 && e.useTag && e.useTag === "start" ? (D(), C("foreignObject", {
3341
- key: 0,
3342
- x: n.x,
3343
- y: n.y - 20,
3344
- height: 24,
3345
- width: "150",
3346
- style: E(`overflow: visible; opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3347
- }, [w("div", {
3348
- style: E(`padding: 3px; background:${j(me)(e.color, 80)};color:${j(xe)(e.color)};width:fit-content;font-size:${V.value.plotLabels}px;border-radius: 2px;`),
3349
- innerHTML: j(fe)(H.value.plot.tag.formatter, n.value, e.name, {
3350
- datapoint: n,
3351
- seriesIndex: r,
3352
- serieName: e.name
3353
- })
3354
- }, null, 12, Gn)], 12, Wn)) : S("", !0), n && r === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (D(), C("foreignObject", {
3355
- key: 1,
3356
- x: n.x - e.name.length * (V.value.plotLabels / 2),
3357
- y: n.y - 20,
3358
- height: 24,
3359
- width: "150",
3360
- style: E(`overflow: visible; opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3361
- }, [w("div", {
3362
- style: E(`padding: 3px; background:${j(me)(e.color, 80)};color:${j(xe)(e.color)};width:fit-content;font-size:${V.value.plotLabels}px;border-radius: 2px;`),
3363
- innerHTML: j(fe)(H.value.plot.tag.formatter, n.value, e.name, {
3364
- datapoint: n,
3365
- seriesIndex: r,
3366
- serieName: e.name
3367
- })
3368
- }, null, 12, qn)], 12, Kn)) : S("", !0)], 64))], 64))), 128))], 64))), 128))])),
3369
- H.value.line.labels.show && U.value.dataLabels.show ? (D(), C("g", Yn, [(D(!0), C(b, null, k($.value, (e, t) => (D(), C(b, { key: `xLabel_line_${e.id}` }, [(D(!0), C(b, null, k(e.plots, (n, r) => (D(), C(b, { key: `xLabel_line_${t}_${r}` }, [n && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || B.value !== null && B.value === r || R.value !== null && R.value === r ? (D(), C("text", {
3370
- key: 0,
3371
- transform: _c({
3372
- plot: n,
3373
- type: "line"
3374
- }),
3375
- "text-anchor": vc({
3376
- plot: n,
3377
- type: "line"
3378
- }),
3379
- "font-size": V.value.plotLabels,
3380
- fill: H.value.line.labels.color,
3381
- stroke: H.value.chart.backgroundColor,
3382
- "paint-order": "stroke",
3383
- style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`),
3384
- innerHTML: hc({
3385
- serie: e,
3386
- plot: n,
3387
- type: "line"
3388
- })
3389
- }, null, 12, Xn)) : S("", !0)], 64))), 128))], 64))), 128))])) : (D(), C("g", Zn, [(D(!0), C(b, null, k($.value, (e, t) => (D(), C(b, { key: `xLabel_line_${e.id}` }, [(D(!0), C(b, null, k(e.plots, (n, r) => (D(), C(b, { key: `xLabel_line_${t}_${r}` }, [H.value.line.tag.followValue ? (D(), C(b, { key: 1 }, [[
3390
- R.value,
3391
- B.value,
3392
- Ri.value
3393
- ].includes(r) && e.useTag ? (D(), C("line", {
3394
- key: 0,
3395
- class: "vue-ui-xy-tag-line",
3396
- x1: Y.value?.left,
3397
- x2: Y.value?.right,
3398
- y1: n.y,
3399
- y2: n.y,
3400
- "stroke-width": 1,
3401
- "stroke-linecap": "round",
3402
- "stroke-dasharray": "2",
3403
- stroke: e.color
3404
- }, null, 8, nr)) : S("", !0)], 64)) : (D(), C(b, { key: 0 }, [n && r === 0 && e.useTag && e.useTag === "start" ? (D(), C("foreignObject", {
3405
- key: 0,
3406
- x: n.x,
3407
- y: n.y - 20,
3408
- height: 24,
3409
- width: "150",
3410
- style: E(`overflow: visible; opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3411
- }, [w("div", {
3412
- style: E(`padding: 3px; background:${j(me)(e.color, 80)};color:${j(xe)(e.color)};width:fit-content;font-size:${V.value.plotLabels}px;border-radius: 2px;`),
3413
- innerHTML: j(fe)(H.value.line.tag.formatter, n.value, e.name, {
3414
- datapoint: n,
3415
- seriesIndex: r,
3416
- serieName: e.name
3417
- })
3418
- }, null, 12, $n)], 12, Qn)) : S("", !0), n && r === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (D(), C("foreignObject", {
3419
- key: 1,
3420
- x: n.x,
3421
- y: n.y - 20,
3422
- height: 24,
3423
- width: "150",
3424
- style: E(`overflow: visible; opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3425
- }, [w("div", {
3426
- style: E(`padding: 3px; background:${j(me)(e.color, 80)};color:${j(xe)(e.color)};width:fit-content;font-size:${V.value.plotLabels}px;border-radius: 2px;`),
3427
- innerHTML: j(fe)(H.value.line.tag.formatter, n.value, e.name, {
3428
- datapoint: n,
3429
- seriesIndex: r,
3430
- serieName: e.name
3431
- })
3432
- }, null, 12, tr)], 12, er)) : S("", !0)], 64))], 64))), 128))], 64))), 128))])),
3433
- (D(!0), C(b, null, k($.value, (e, t) => (D(), C(b, { key: `xLabel_line_${e.id}` }, [(D(!0), C(b, null, k(e.plots, (n, r) => (D(), C(b, { key: `xLabel_line_${t}_${r}` }, [n && r === 0 && e.showSerieName && e.showSerieName === "start" ? (D(), C("text", {
3434
- key: 0,
3435
- x: n.x - V.value.plotLabels,
3436
- y: n.y,
3437
- "font-size": V.value.plotLabels,
3438
- "text-anchor": "end",
3439
- fill: e.color,
3440
- innerHTML: j(Ee)({
3441
- content: e.name,
3442
- fontSize: V.value.plotLabels,
3443
- fill: e.color,
3444
- x: n.x - V.value.plotLabels,
3445
- y: n.y,
3446
- maxWords: 2
3447
- }),
3448
- style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3449
- }, null, 12, rr)) : S("", !0), n && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (D(), C("text", {
3450
- key: 1,
3451
- x: n.x + V.value.plotLabels,
3452
- y: n.y,
3453
- "font-size": V.value.plotLabels,
3454
- "text-anchor": "start",
3455
- fill: e.color,
3456
- innerHTML: j(Ee)({
3457
- content: e.name,
3458
- fontSize: V.value.plotLabels,
3459
- fill: e.color,
3460
- x: n.x + V.value.plotLabels,
3461
- y: n.y,
3462
- maxWords: 2
3463
- }),
3464
- style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3465
- }, null, 12, ir)) : S("", !0)], 64))), 128))], 64))), 128)),
3466
- (D(!0), C(b, null, k(Hs.value, (e, t) => (D(), C(b, { key: `xLabel_plot_${e.id}` }, [(D(!0), C(b, null, k(e.plots, (n, r) => (D(), C(b, { key: `xLabel_plot_${t}_${r}` }, [n && r === 0 && e.showSerieName && e.showSerieName === "start" ? (D(), C("text", {
3467
- key: 0,
3468
- x: n.x - V.value.plotLabels,
3469
- y: n.y,
3470
- "font-size": V.value.plotLabels,
3471
- "text-anchor": "end",
3472
- fill: e.color,
3473
- innerHTML: j(Ee)({
3474
- content: e.name,
3475
- fontSize: V.value.plotLabels,
3476
- fill: e.color,
3477
- x: n.x - V.value.plotLabels,
3478
- y: n.y,
3479
- maxWords: 2
3480
- }),
3481
- style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3482
- }, null, 12, ar)) : S("", !0), n && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (D(), C("text", {
3483
- key: 1,
3484
- x: n.x + V.value.plotLabels,
3485
- y: n.y,
3486
- "font-size": V.value.plotLabels,
3487
- "text-anchor": "start",
3488
- fill: e.color,
3489
- innerHTML: j(Ee)({
3490
- content: e.name,
3491
- fontSize: V.value.plotLabels,
3492
- fill: e.color,
3493
- x: n.x + V.value.plotLabels,
3494
- y: n.y,
3495
- maxWords: 2
3496
- }),
3497
- style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3498
- }, null, 12, or)) : S("", !0)], 64))), 128))], 64))), 128)),
3499
- (D(!0), C(b, null, k([
3500
- ...Hs.value,
3501
- ...$.value,
3502
- ...Vs.value
3503
- ], (e, t) => (D(), C(b, { key: `progression-${t}` }, [Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(j(ge)(e.plots).trend) ? (D(), C("g", sr, [
3504
- w("defs", null, [w("marker", {
3505
- id: `progression_arrow_${t}`,
3506
- markerWidth: "9",
3507
- markerHeight: "9",
3508
- viewBox: "-1 -1 9 9",
3509
- markerUnits: "userSpaceOnUse",
3510
- refX: "7",
3511
- refY: 7 / 2,
3512
- orient: "auto",
3513
- overflow: "visible"
3514
- }, [w("polygon", {
3515
- points: "0,0 7,3.5 0,7",
3516
- fill: e.color,
3517
- stroke: H.value.chart.backgroundColor,
3518
- "stroke-width": "1",
3519
- "stroke-linejoin": "round"
3520
- }, null, 8, lr)], 8, cr)]),
3521
- e.plots.length > 1 ? (D(), C("line", {
3522
- key: 0,
3523
- x1: j(ge)(e.plots).x1 + (e.type === "bar" ? qo() : 0),
3524
- x2: j(ge)(e.plots).x2 + (e.type === "bar" ? qo() : 0),
3525
- y1: j(v)(j(ge)(e.plots).y1),
3526
- y2: j(v)(j(ge)(e.plots).y2),
3527
- "stroke-width": 1,
3528
- stroke: H.value.chart.backgroundColor,
3529
- "stroke-dasharray": 2,
3530
- "stroke-linecap": "round",
3531
- "stroke-linejoin": "round",
3532
- "marker-end": `url(#progression_arrow_${t})`
3533
- }, null, 8, ur)) : S("", !0),
3534
- e.plots.length > 1 ? (D(), C("line", {
3535
- key: 1,
3536
- x1: j(ge)(e.plots).x1 + (e.type === "bar" ? qo() : 0),
3537
- x2: j(ge)(e.plots).x2 + (e.type === "bar" ? qo() : 0),
3538
- y1: j(v)(j(ge)(e.plots).y1),
3539
- y2: j(v)(j(ge)(e.plots).y2),
3540
- "stroke-width": 1,
3541
- stroke: e.color,
3542
- "stroke-dasharray": 2,
3543
- "stroke-linecap": "round",
3544
- "stroke-linejoin": "round",
3545
- "marker-end": `url(#progression_arrow_${t})`
3546
- }, null, 8, dr)) : S("", !0),
3547
- e.plots.length > 1 ? (D(), C("text", {
3548
- key: 2,
3549
- "text-anchor": "middle",
3550
- x: j(ge)(e.plots).x2 + (e.type === "bar" ? qo() : 0),
3551
- y: j(ge)(e.plots).y2 - 12,
3552
- "font-size": V.value.plotLabels,
3553
- fill: e.color,
3554
- stroke: H.value.chart.backgroundColor,
3555
- "stroke-width": 4,
3556
- "stroke-linecap": "round",
3557
- "stroke-linejoin": "round",
3558
- "paint-order": "stroke fill"
3559
- }, ut(j(a)({
3560
- v: j(ge)(e.plots).trend * 100,
3561
- s: "%",
3562
- r: 2
3563
- })), 9, fr)) : S("", !0)
3564
- ])) : S("", !0)], 64))), 128)),
3565
- U.value.useIndividualScale && !U.value.isStacked ? (D(), C(b, { key: 13 }, [w("defs", null, [(D(!0), C(b, null, k(Us.value, (e, t) => (D(), C("linearGradient", {
3566
- id: `individual_scale_gradient_${L.value}_${t}`,
3567
- x1: J.value ? "100%" : "0%",
3568
- x2: J.value ? "0%" : "100%",
3569
- y1: "0%",
3570
- y2: "0%"
3571
- }, [w("stop", {
3572
- offset: "0%",
3573
- "stop-color": H.value.chart.backgroundColor,
3574
- "stop-opacity": "0"
3575
- }, null, 8, mr), w("stop", {
3576
- offset: "100%",
3577
- "stop-color": e.color,
3578
- "stop-opacity": "0.2"
3579
- }, null, 8, hr)], 8, pr))), 256))]), (D(!0), C(b, null, k(Us.value, (e, t) => (D(), C("rect", {
3580
- x: J.value ? e.x : e.x - H.value.chart.grid.labels.yAxis.labelWidth - Y.value.individualOffsetX,
3581
- y: Y.value?.top,
3582
- width: (J.value, H.value.chart.grid.labels.yAxis.labelWidth + Y.value.individualOffsetX),
3583
- height: Y.value.height < 0 ? 10 : Y.value.height,
3584
- fill: P.value === e.groupId ? `url(#individual_scale_gradient_${L.value}_${t})` : "transparent",
3585
- onMouseenter: (t) => P.value = e.groupId,
3586
- onMouseleave: i[0] ||= (e) => P.value = null
3587
- }, null, 40, gr))), 256))], 64)) : S("", !0),
3588
- w("g", null, [H.value.chart.grid.labels.axis.yLabel && !U.value.useIndividualScale ? (D(), C("text", {
3589
- key: 0,
3590
- ref_key: "yAxisLabel",
3591
- ref: Ci,
3592
- "font-size": V.value.yAxis,
3593
- fill: H.value.chart.grid.labels.color,
3594
- transform: `translate(${J.value ? Y.value.right + Y.value.scaleLabelsOffset + H.value.chart.grid.labels.axis.yLabelOffsetX + V.value.yAxis : H.value.chart.grid.labels.axis.fontSize + H.value.chart.grid.labels.axis.yLabelOffsetX}, ${Y.value?.top + Y.value.height / 2}) rotate(-90)`,
3595
- "text-anchor": "middle",
3596
- style: { transition: "none" }
3597
- }, ut(H.value.chart.grid.labels.axis.yLabel), 9, _r)) : S("", !0), H.value.chart.grid.labels.axis.xLabel ? (D(), C("text", {
3598
- key: 1,
3599
- ref_key: "xAxisLabel",
3600
- ref: Si,
3601
- "text-anchor": "middle",
3602
- x: F.value / 2,
3603
- y: ji.value - 3,
3604
- "font-size": V.value.yAxis,
3605
- fill: H.value.chart.grid.labels.color
3606
- }, ut(H.value.chart.grid.labels.axis.xLabel), 9, vr)) : S("", !0)]),
3607
- H.value.chart.grid.labels.xAxisLabels.show ? (D(), C("g", {
3608
- key: 14,
3609
- ref_key: "timeLabelsEls",
3610
- ref: wi
3611
- }, [r.$slots["time-label"] ? (D(!0), C(b, { key: 0 }, k(bo.value, (e, t) => A(r.$slots, "time-label", nt({
3612
- key: `time_label_${e.id}`,
3613
- ref_for: !0
3614
- }, {
3615
- x: xs(t),
3616
- y: Y.value?.bottom,
3617
- fontSize: V.value.xAxis,
3618
- fill: H.value.chart.grid.labels.xAxisLabels.color,
3619
- transform: `translate(${xs(t)}, ${Y.value?.bottom + V.value.xAxis * 1.3 + H.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${H.value.chart.grid.labels.xAxisLabels.rotation})`,
3620
- absoluteIndex: e.absoluteIndex,
3621
- content: e.text,
3622
- textAnchor: H.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : H.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
3623
- show: e && e.text
3624
- }), void 0, !0)), 128)) : (D(!0), C(b, { key: 1 }, k(bo.value, (e, t) => (D(), C("g", { key: `time_label_${t}` }, [e && e.text ? (D(), C(b, { key: 0 }, [String(e.text).includes("\n") ? (D(), C("text", {
3625
- key: 1,
3626
- class: "vue-data-ui-time-label",
3627
- "text-anchor": H.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : H.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
3628
- "font-size": V.value.xAxis,
3629
- fill: H.value.chart.grid.labels.xAxisLabels.color,
3630
- transform: `translate(${xs(t)}, ${Y.value?.bottom + V.value.xAxis * 1.5}), rotate(${H.value.chart.grid.labels.xAxisLabels.rotation})`,
3631
- style: E({ cursor: co() && ya.value ? "pointer" : "default" }),
3632
- innerHTML: j(n)({
3633
- content: String(e.text),
3634
- fontSize: V.value.xAxis,
3635
- fill: H.value.chart.grid.labels.xAxisLabels.color,
3636
- x: 0,
3637
- y: 0
3638
- }),
3639
- onClick: () => So(e, t)
3640
- }, null, 12, br)) : (D(), C("text", {
3641
- key: 0,
3642
- class: "vue-data-ui-time-label",
3643
- "text-anchor": H.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : H.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
3644
- "font-size": V.value.xAxis,
3645
- fill: H.value.chart.grid.labels.xAxisLabels.color,
3646
- transform: `translate(${xs(t)}, ${Y.value?.bottom + V.value.xAxis * 1.5}), rotate(${H.value.chart.grid.labels.xAxisLabels.rotation})`,
3647
- style: E({ cursor: co() && ya.value ? "pointer" : "default" }),
3648
- onClick: () => So(e, t)
3649
- }, ut(e.text || ""), 13, yr))], 64)) : S("", !0)]))), 128))], 512)) : S("", !0),
3650
- Rs.value.length && !U.value.isStacked ? (D(), C("g", xr, [(D(!0), C(b, null, k(Rs.value, (e) => (D(), C("g", { key: e.uid }, [
3651
- e.yTop && e.show && isFinite(e.yTop) ? (D(), C("line", {
3652
- key: 0,
3653
- x1: e.x1,
3654
- y1: e.yTop,
3655
- x2: e.x2,
3656
- y2: e.yTop,
3657
- stroke: e.config.line.stroke,
3658
- "stroke-width": e.config.line.strokeWidth,
3659
- "stroke-dasharray": e.config.line.strokeDasharray,
3660
- "stroke-linecap": "round",
3661
- style: { animation: "none !important" }
3662
- }, null, 8, Sr)) : S("", !0),
3663
- e.yBottom && e.show && isFinite(e.yBottom) ? (D(), C("line", {
3664
- key: 1,
3665
- x1: e.x1,
3666
- y1: e.yBottom,
3667
- x2: e.x2,
3668
- y2: e.yBottom,
3669
- stroke: e.config.line.stroke,
3670
- "stroke-width": e.config.line.strokeWidth,
3671
- "stroke-dasharray": e.config.line.strokeDasharray,
3672
- "stroke-linecap": "round",
3673
- style: { animation: "none !important" }
3674
- }, null, 8, Cr)) : S("", !0),
3675
- e.hasArea && e.show && isFinite(e.yTop) && isFinite(e.yBottom) ? (D(), C("rect", {
3676
- key: 2,
3677
- y: Math.min(e.yTop, e.yBottom),
3678
- x: e.x1,
3679
- width: Y.value.width,
3680
- height: j(y)(e.areaHeight, 0),
3681
- fill: j(me)(e.config.area.fill, e.config.area.opacity),
3682
- style: { animation: "none !important" }
3683
- }, null, 8, wr)) : S("", !0),
3684
- e.config.label.text && e.show && isFinite(e._box.y) ? (D(), C("rect", nt({
3685
- key: 3,
3686
- class: "vue-ui-xy-annotation-label-box"
3687
- }, { ref_for: !0 }, e._box, { style: {
3688
- animation: "none !important",
3689
- transition: "none !important"
3690
- } }), null, 16)) : S("", !0),
3691
- e.config.label.text && e.show && isFinite(e._text.y) ? (D(), C("text", {
3692
- key: 4,
3693
- id: e.id,
3694
- class: "vue-ui-xy-annotation-label",
3695
- x: e._text.x,
3696
- y: e._text.y,
3697
- "font-size": e.config.label.fontSize,
3698
- fill: e.config.label.color,
3699
- "text-anchor": e.config.label.textAnchor
3700
- }, ut(e.config.label.text), 9, Tr)) : S("", !0)
3701
- ]))), 128))])) : S("", !0),
3702
- H.value.chart.timeTag.show && (![null, void 0].includes(B.value) || ![null, void 0].includes(R.value)) ? (D(), C("g", Er, [(D(), C("foreignObject", {
3703
- x: pc(),
3704
- y: Y.value?.bottom,
3705
- width: "200",
3706
- height: "40",
3707
- style: { overflow: "visible !important" }
3708
- }, [w("div", {
3709
- ref_key: "timeTagEl",
3710
- ref: lc,
3711
- class: "vue-ui-xy-time-tag",
3712
- style: E(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${H.value.chart.timeTag.backgroundColor};color:${H.value.chart.timeTag.color};font-size:${H.value.chart.timeTag.fontSize}px`),
3713
- innerHTML: mc.value
3714
- }, null, 12, Or)], 8, Dr)), w("circle", {
3715
- cx: xs((B.value === null ? 0 : B.value) || (R.value === null ? 0 : R.value)),
3716
- cy: Y.value?.bottom,
3717
- r: H.value.chart.timeTag.circleMarker.radius,
3718
- fill: H.value.chart.timeTag.circleMarker.color
3719
- }, null, 8, kr)])) : S("", !0)
3720
- ])) : S("", !0),
3721
- Aa.value ? (D(), C("rect", nt({ key: 2 }, Na.value, {
3722
- "data-start": K.value.start,
3723
- "data-end": K.value.end
3724
- }), null, 16, Ar)) : S("", !0),
3725
- A(r.$slots, "svg", { svg: {
3726
- ...la.value,
3727
- slicer: K.value,
3728
- isPrintingImg: j(Pa) || j(Fa) || Zi.value,
3729
- isPrintingSvg: Qi.value,
3730
- data: [
3731
- ...$.value,
3732
- ...Vs.value,
3733
- ...Hs.value
3734
- ],
3735
- drawingArea: Y.value
3736
- } }, void 0, !0)
3737
- ], 512)], 46, St)), r.$slots.hint ? (D(), C("div", jr, [A(r.$slots, "hint", at(T({
3738
- hint: H.value.a11y.translations.keyboardNavigation,
3739
- isVisible: jc.value
3740
- })), void 0, !0)])) : S("", !0)]),
3741
- r.$slots.watermark ? (D(), C("div", Mr, [A(r.$slots, "watermark", at(T({ isPrinting: j(Pa) || j(Fa) || Zi.value || Qi.value })), void 0, !0)])) : S("", !0),
3742
- (D(!0), C(b, null, k($.value, (e, t) => (D(), C(b, { key: `tag_line_${e.id}` }, [(D(!0), C(b, null, k(e.plots, (n, r) => (D(), C(b, { key: `tag_line_${t}_${r}` }, [[
3743
- R.value,
3744
- B.value,
3745
- Ri.value
3746
- ].includes(r) && e.useTag && e.useTag === "end" && H.value.line.tag.followValue ? (D(), C("div", {
3747
- key: 0,
3748
- ref_for: !0,
3749
- ref: (e) => fo(t, r, e, "right", "line"),
3750
- class: "vue-ui-xy-tag",
3751
- "data-tag": "right",
3752
- style: E({
3753
- position: "fixed",
3754
- top: j(p)({
3755
- svgElement: z.value,
3756
- x: Y.value?.right + H.value.line.tag.fontSize / 1.5,
3757
- y: n.y,
3758
- element: qi.value[`${t}_${r}_right_line`],
3759
- position: "right"
3760
- })?.top + "px",
3761
- left: j(p)({
3762
- svgElement: z.value,
3763
- x: Y.value?.right + H.value.line.tag.fontSize / 1.5,
3764
- y: n.y,
3765
- element: qi.value[`${t}_${r}_right_line`],
3766
- position: "right"
3767
- })?.left + "px",
3768
- height: "fit-content",
3769
- width: "fit-content",
3770
- background: e.color,
3771
- color: j(xe)(e.color),
3772
- padding: "0 6px",
3773
- fontSize: H.value.line.tag.fontSize + "px",
3774
- opacity: 1
3775
- })
3776
- }, [(D(), C("svg", Nr, [w("path", {
3777
- d: "M 0,10 10,0 10,20 Z",
3778
- fill: e.color,
3779
- stroke: "none"
3780
- }, null, 8, Pr)])), w("div", {
3781
- class: "vue-ui-xy-tag-content",
3782
- innerHTML: j(fe)(H.value.line.tag.formatter, n.value, e.name, {
3783
- datapoint: n,
3784
- seriesIndex: r,
3785
- serieName: e.name
3786
- })
3787
- }, null, 8, Fr)], 4)) : S("", !0), [
3788
- R.value,
3789
- B.value,
3790
- Ri.value
3791
- ].includes(r) && e.useTag && e.useTag === "start" && H.value.line.tag.followValue ? (D(), C("div", {
3792
- key: 1,
3793
- ref_for: !0,
3794
- ref: (e) => fo(t, r, e, "left", "line"),
3795
- class: "vue-ui-xy-tag",
3796
- "data-tag": "left",
3797
- style: E({
3798
- position: "fixed",
3799
- top: j(p)({
3800
- svgElement: z.value,
3801
- x: Y.value?.left - H.value.line.tag.fontSize / 1.5,
3802
- y: n.y,
3803
- element: qi.value[`${t}_${r}_left_line`],
3804
- position: "left"
3805
- })?.top + "px",
3806
- left: j(p)({
3807
- svgElement: z.value,
3808
- x: Y.value?.left - H.value.line.tag.fontSize / 1.5,
3809
- y: n.y,
3810
- element: qi.value[`${t}_${r}_left_line`],
3811
- position: "left"
3812
- })?.left + "px",
3813
- height: "fit-content",
3814
- width: "fit-content",
3815
- background: e.color,
3816
- color: j(xe)(e.color),
3817
- padding: "0 6px",
3818
- fontSize: H.value.line.tag.fontSize + "px",
3819
- opacity: 1
3820
- })
3821
- }, [(D(), C("svg", Ir, [w("path", {
3822
- d: "M 0,0 10,10 0,20 Z",
3823
- fill: e.color,
3824
- stroke: "none"
3825
- }, null, 8, Lr)])), w("div", {
3826
- class: "vue-ui-xy-tag-content",
3827
- innerHTML: j(fe)(H.value.line.tag.formatter, n.value, e.name, {
3828
- datapoint: n,
3829
- seriesIndex: r,
3830
- serieName: e.name
3831
- })
3832
- }, null, 8, Rr)], 4)) : S("", !0)], 64))), 128))], 64))), 128)),
3833
- (D(!0), C(b, null, k(Hs.value, (e, t) => (D(), C(b, { key: `tag_plot_${e.id}` }, [(D(!0), C(b, null, k(e.plots, (n, r) => (D(), C(b, { key: `tag_plot_${t}_${r}` }, [[
3834
- R.value,
3835
- B.value,
3836
- Ri.value
3837
- ].includes(r) && e.useTag && e.useTag === "end" && H.value.plot.tag.followValue ? (D(), C("div", {
3838
- key: 0,
3839
- ref_for: !0,
3840
- ref: (e) => fo(t, r, e, "right", "plot"),
3841
- class: "vue-ui-xy-tag",
3842
- "data-tag": "right",
3843
- style: E({
3844
- position: "fixed",
3845
- top: j(p)({
3846
- svgElement: z.value,
3847
- x: Y.value?.right + H.value.plot.tag.fontSize / 1.5,
3848
- y: n.y,
3849
- element: qi.value[`${t}_${r}_right_plot`],
3850
- position: "right"
3851
- })?.top + "px",
3852
- left: j(p)({
3853
- svgElement: z.value,
3854
- x: Y.value?.right + H.value.plot.tag.fontSize / 1.5,
3855
- y: n.y,
3856
- element: qi.value[`${t}_${r}_right_plot`],
3857
- position: "right"
3858
- })?.left + "px",
3859
- height: "fit-content",
3860
- width: "fit-content",
3861
- background: e.color,
3862
- color: j(xe)(e.color),
3863
- padding: "0 6px",
3864
- fontSize: H.value.plot.tag.fontSize + "px",
3865
- opacity: 1
3866
- })
3867
- }, [(D(), C("svg", zr, [w("path", {
3868
- d: "M 0,10 10,0 10,20 Z",
3869
- fill: e.color,
3870
- stroke: "none"
3871
- }, null, 8, Br)])), w("div", {
3872
- class: "vue-ui-xy-tag-content",
3873
- innerHTML: j(fe)(H.value.plot.tag.formatter, n.value, e.name, {
3874
- datapoint: n,
3875
- seriesIndex: r,
3876
- serieName: e.name
3877
- })
3878
- }, null, 8, Vr)], 4)) : S("", !0), [
3879
- R.value,
3880
- B.value,
3881
- Ri.value
3882
- ].includes(r) && e.useTag && e.useTag === "start" && H.value.plot.tag.followValue ? (D(), C("div", {
3883
- key: 1,
3884
- ref_for: !0,
3885
- ref: (e) => fo(t, r, e, "left", "plot"),
3886
- class: "vue-ui-xy-tag",
3887
- "data-tag": "left",
3888
- style: E({
3889
- position: "fixed",
3890
- top: j(p)({
3891
- svgElement: z.value,
3892
- x: Y.value?.left - H.value.plot.tag.fontSize / 1.5,
3893
- y: n.y,
3894
- element: qi.value[`${t}_${r}_left_plot`],
3895
- position: "left"
3896
- })?.top + "px",
3897
- left: j(p)({
3898
- svgElement: z.value,
3899
- x: Y.value?.left - H.value.plot.tag.fontSize / 1.5,
3900
- y: n.y,
3901
- element: qi.value[`${t}_${r}_left_plot`],
3902
- position: "left"
3903
- })?.left + "px",
3904
- height: "fit-content",
3905
- width: "fit-content",
3906
- background: e.color,
3907
- color: j(xe)(e.color),
3908
- padding: "0 6px",
3909
- fontSize: H.value.plot.tag.fontSize + "px",
3910
- opacity: 1
3911
- })
3912
- }, [(D(), C("svg", Hr, [w("path", {
3913
- d: "M 0,0 10,10 0,20 Z",
3914
- fill: e.color,
3915
- stroke: "none"
3916
- }, null, 8, Ur)])), w("div", {
3917
- class: "vue-ui-xy-tag-content",
3918
- innerHTML: j(fe)(H.value.plot.tag.formatter, n.value, e.name, {
3919
- datapoint: n,
3920
- seriesIndex: r,
3921
- serieName: e.name
3922
- })
3923
- }, null, 8, Wr)], 4)) : S("", !0)], 64))), 128))], 64))), 128)),
3924
- H.value.chart.zoom.show && G.value > 6 && va.value && ko.value ? (D(), Xe(Ge, {
3925
- key: 6,
3926
- ref_key: "chartSlicer",
3927
- ref: _i,
3928
- uuid: L.value,
3929
- allMinimaps: Fs.value,
3930
- background: H.value.chart.zoom.color,
3931
- borderColor: H.value.chart.backgroundColor,
3932
- customFormat: H.value.chart.zoom.customFormat,
3933
- cutNullValues: H.value.line.cutNullValues,
3934
- enableRangeHandles: H.value.chart.zoom.enableRangeHandles,
3935
- enableSelectionDrag: H.value.chart.zoom.enableSelectionDrag,
3936
- end: K.value.end,
3937
- focusOnDrag: H.value.chart.zoom.focusOnDrag,
3938
- focusRangeRatio: H.value.chart.zoom.focusRangeRatio,
3939
- fontSize: H.value.chart.zoom.fontSize,
3940
- useResetSlot: H.value.chart.zoom.useResetSlot,
3941
- immediate: !H.value.chart.zoom.preview.enable,
3942
- inputColor: H.value.chart.zoom.color,
3943
- isPreview: Aa.value,
3944
- labelLeft: X.value[0] ? X.value[0].text : "",
3945
- labelRight: X.value.at(-1) ? X.value.at(-1).text : "",
3946
- max: G.value,
3947
- min: 0,
3948
- minimap: Ps.value,
3949
- minimapCompact: H.value.chart.zoom.minimap.compact,
3950
- minimapFrameColor: H.value.chart.zoom.minimap.frameColor,
3951
- minimapIndicatorColor: H.value.chart.zoom.minimap.indicatorColor,
3952
- minimapLineColor: H.value.chart.zoom.minimap.lineColor,
3953
- minimapMerged: H.value.chart.zoom.minimap.merged,
3954
- minimapSelectedColor: H.value.chart.zoom.minimap.selectedColor,
3955
- minimapSelectedColorOpacity: H.value.chart.zoom.minimap.selectedColorOpacity,
3956
- minimapSelectedIndex: B.value,
3957
- minimapSelectionRadius: H.value.chart.zoom.minimap.selectionRadius,
3958
- preciseLabels: Ys.value.length ? Ys.value : go.value,
3959
- refreshEndPoint: H.value.chart.zoom.endIndex === null ? Math.max(...e.dataset.map((e) => Oa(e.series).length)) : H.value.chart.zoom.endIndex + 1,
3960
- refreshStartPoint: H.value.chart.zoom.startIndex === null ? 0 : H.value.chart.zoom.startIndex,
3961
- selectColor: H.value.chart.zoom.highlightColor,
3962
- selectedSeries: Is.value,
3963
- smoothMinimap: H.value.chart.zoom.minimap.smooth,
3964
- start: K.value.start,
3965
- textColor: H.value.chart.color,
3966
- timeLabels: go.value,
3967
- usePreciseLabels: H.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !H.value.chart.zoom.useDefaultFormat,
3968
- valueEnd: K.value.end,
3969
- valueStart: K.value.start,
3970
- verticalHandles: H.value.chart.zoom.minimap.verticalHandles,
3971
- minScale: H.value.chart.grid.labels.yAxis.scaleMin,
3972
- maxScale: H.value.chart.grid.labels.yAxis.scaleMax,
3973
- maxWidth: H.value.chart.zoom.maxWidth,
3974
- additionalMinimapHeight: H.value.chart.zoom.minimap.additionalHeight,
3975
- handleType: H.value.chart.zoom.minimap.handleType,
3976
- handleIconColor: H.value.chart.zoom.minimap.handleIconColor,
3977
- handleBorderWidth: H.value.chart.zoom.minimap.handleBorderWidth,
3978
- handleBorderColor: H.value.chart.zoom.minimap.handleBorderColor,
3979
- handleFill: H.value.chart.zoom.minimap.handleFill,
3980
- handleWidth: H.value.chart.zoom.minimap.handleWidth,
3981
- isCursorPointer: ya.value,
3982
- onFutureEnd: i[1] ||= (e) => ja("end", e),
3983
- onFutureStart: i[2] ||= (e) => ja("start", e),
3984
- onReset: Lo,
3985
- onTrapMouse: Co,
3986
- "onUpdate:end": Io,
3987
- "onUpdate:start": Fo
3988
- }, {
3989
- "reset-action": M(({ reset: e }) => [A(r.$slots, "reset-action", at(T({ reset: e })), void 0, !0)]),
3990
- _: 3
3991
- }, 8, /* @__PURE__ */ "uuid.allMinimaps.background.borderColor.customFormat.cutNullValues.enableRangeHandles.enableSelectionDrag.end.focusOnDrag.focusRangeRatio.fontSize.useResetSlot.immediate.inputColor.isPreview.labelLeft.labelRight.max.minimap.minimapCompact.minimapFrameColor.minimapIndicatorColor.minimapLineColor.minimapMerged.minimapSelectedColor.minimapSelectedColorOpacity.minimapSelectedIndex.minimapSelectionRadius.preciseLabels.refreshEndPoint.refreshStartPoint.selectColor.selectedSeries.smoothMinimap.start.textColor.timeLabels.usePreciseLabels.valueEnd.valueStart.verticalHandles.minScale.maxScale.maxWidth.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth.isCursorPointer".split("."))) : S("", !0),
3992
- w("div", { id: `legend-bottom-${L.value}` }, null, 8, Gr),
3993
- Yi.value && (H.value.chart.legend.show || r.$slots.legend) ? (D(), Xe(Ye, {
3994
- key: 7,
3995
- to: H.value.chart.legend.position === "top" ? `#legend-top-${L.value}` : `#legend-bottom-${L.value}`
3996
- }, [w("div", {
3997
- ref_key: "chartLegend",
3998
- ref: vi
3999
- }, [A(r.$slots, "legend", { legend: Xa.value }, () => [H.value.chart.legend.show ? (D(), C("div", {
4000
- key: 0,
4001
- class: "vue-ui-xy-legend",
4002
- style: E({ fontSize: `var(--legend-font-size, ${H.value.chart.legend.fontSize ?? 14}px)` })
4003
- }, [H.value.chart.legend.selectAllToggle.show && Xa.value.length > 2 && !j(wa) ? (D(), Xe(qe, {
4004
- key: 0,
4005
- backgroundColor: H.value.chart.legend.selectAllToggle.backgroundColor,
4006
- color: H.value.chart.legend.selectAllToggle.color,
4007
- fontSize: H.value.chart.legend.fontSize,
4008
- checked: I.value.length > 0,
4009
- onToggle: os
4010
- }, null, 8, [
4011
- "backgroundColor",
4012
- "color",
4013
- "fontSize",
4014
- "checked"
4015
- ])) : S("", !0), (D(!0), C(b, null, k(Xa.value, (e, t) => (D(), C("div", {
4016
- key: `div_legend_item_${t}`,
4017
- onClick: (t) => cs(e),
4018
- onKeydown: (t) => ss(t, e),
4019
- role: "button",
4020
- tabindex: "0",
4021
- class: it({
4022
- "vue-ui-xy-legend-item-alone": Xa.value.length === 1,
4023
- "vue-ui-xy-legend-item": !0,
4024
- "vue-ui-xy-legend-item-segregated": I.value.includes(e.id)
4025
- }),
4026
- style: E({ cursor: ya.value ? "pointer" : "default" })
4027
- }, [Pi.value[e.type] === "line" ? (D(), C("svg", qr, [w("rect", {
4028
- x: "0",
4029
- y: "7.5",
4030
- rx: "1.5",
4031
- stroke: H.value.chart.backgroundColor,
4032
- "stroke-width": .5,
4033
- height: "3",
4034
- width: "20",
4035
- fill: e.color
4036
- }, null, 8, Jr), $e(Ue, {
4037
- plot: {
4038
- x: 10,
4039
- y: 9
4040
- },
4041
- radius: 4,
4042
- color: e.color,
4043
- shape: [
4044
- "triangle",
4045
- "square",
4046
- "diamond",
4047
- "pentagon",
4048
- "hexagon",
4049
- "star"
4050
- ].includes(e.shape) ? e.shape : "circle",
4051
- stroke: H.value.chart.backgroundColor,
4052
- strokeWidth: .5
4053
- }, null, 8, [
4054
- "color",
4055
- "shape",
4056
- "stroke"
4057
- ])])) : Pi.value[e.type] === "bar" ? (D(), C("svg", Yr, [Pi.value[e.type] === "bar" && r.$slots.pattern ? (D(), C("rect", {
4058
- key: 0,
4059
- x: "4",
4060
- y: "4",
4061
- rx: "1",
4062
- height: "32",
4063
- width: "32",
4064
- stroke: "none",
4065
- fill: e.color
4066
- }, null, 8, Xr)) : S("", !0), Pi.value[e.type] === "bar" ? (D(), C("rect", {
4067
- key: 1,
4068
- x: "4",
4069
- y: "4",
4070
- rx: "1",
4071
- height: "32",
4072
- width: "32",
4073
- stroke: "none",
4074
- fill: r.$slots.pattern ? `url(#pattern_${L.value}_${e.slotAbsoluteIndex})` : e.color
4075
- }, null, 8, Zr)) : S("", !0)])) : (D(), C("svg", Qr, [$e(Ue, {
4076
- plot: {
4077
- x: 6,
4078
- y: 6
4079
- },
4080
- radius: 5,
4081
- color: e.color,
4082
- shape: [
4083
- "triangle",
4084
- "square",
4085
- "diamond",
4086
- "pentagon",
4087
- "hexagon",
4088
- "star"
4089
- ].includes(e.shape) ? e.shape : "circle"
4090
- }, null, 8, ["color", "shape"])])), w("span", { style: E(`color:${H.value.chart.legend.color}`) }, ut(e.name), 5)], 46, Kr))), 128))], 4)) : S("", !0)], !0)], 512)], 8, ["to"])) : S("", !0),
4091
- r.$slots.source ? (D(), C("div", {
4092
- key: 8,
4093
- ref_key: "source",
4094
- ref: yi,
4095
- dir: "auto"
4096
- }, [A(r.$slots, "source", {}, void 0, !0)], 512)) : S("", !0),
4097
- $e(j(ni), {
4098
- teleportTo: H.value.chart.tooltip.teleportTo,
4099
- show: U.value.showTooltip && Li.value,
4100
- backgroundColor: H.value.chart.tooltip.backgroundColor,
4101
- color: H.value.chart.tooltip.color,
4102
- fontSize: H.value.chart.tooltip.fontSize,
4103
- borderRadius: H.value.chart.tooltip.borderRadius,
4104
- borderColor: H.value.chart.tooltip.borderColor,
4105
- borderWidth: H.value.chart.tooltip.borderWidth,
4106
- backgroundOpacity: H.value.chart.tooltip.backgroundOpacity,
4107
- position: H.value.chart.tooltip.position,
4108
- offsetX: H.value.chart.tooltip.offsetX,
4109
- offsetY: H.value.chart.tooltip.offsetY,
4110
- parent: r.$refs.chart,
4111
- content: Xs.value,
4112
- isFullscreen: Ii.value,
4113
- isCustom: H.value.chart.tooltip.customFormat && typeof H.value.chart.tooltip.customFormat == "function",
4114
- smooth: H.value.chart.tooltip.smooth,
4115
- backdropFilter: H.value.chart.tooltip.backdropFilter,
4116
- smoothForce: H.value.chart.tooltip.smoothForce,
4117
- smoothSnapThreshold: H.value.chart.tooltip.smoothSnapThreshold,
4118
- isA11yMode: $i.value != null,
4119
- a11yPosition: ea.value
4120
- }, {
4121
- "tooltip-before": M(() => [A(r.$slots, "tooltip-before", at(T({ ...Gs.value })), void 0, !0)]),
4122
- tooltip: M(() => [A(r.$slots, "tooltip", at(T({ ...Gs.value })), void 0, !0)]),
4123
- "tooltip-after": M(() => [A(r.$slots, "tooltip-after", at(T({ ...Gs.value })), void 0, !0)]),
4124
- _: 3
4125
- }, 8, [
4126
- "teleportTo",
4127
- "show",
4128
- "backgroundColor",
4129
- "color",
4130
- "fontSize",
4131
- "borderRadius",
4132
- "borderColor",
4133
- "borderWidth",
4134
- "backgroundOpacity",
4135
- "position",
4136
- "offsetX",
4137
- "offsetY",
4138
- "parent",
4139
- "content",
4140
- "isFullscreen",
4141
- "isCustom",
4142
- "smooth",
4143
- "backdropFilter",
4144
- "smoothForce",
4145
- "smoothSnapThreshold",
4146
- "isA11yMode",
4147
- "a11yPosition"
4148
- ]),
4149
- va.value && H.value.chart.userOptions.buttons.table ? (D(), Xe(ct(xc.value.component), nt({ key: 9 }, xc.value.props, {
4150
- ref_key: "tableUnit",
4151
- ref: Xi,
4152
- onClose: Sc
4153
- }), Ze({
4154
- content: M(() => [w("div", { style: E(`${j(Pa) || H.value.table.useDialog ? "" : "max-height:400px"};${H.value.table.useDialog ? "height: fit-content; " : ""};overflow:auto;width:100%;${H.value.table.useDialog ? "" : "margin-top:48px"}`) }, [w("div", $r, [gt(w("input", {
4155
- type: "checkbox",
4156
- "onUpdate:modelValue": i[4] ||= (e) => Hi.value = e
4157
- }, null, 512), [[pt, Hi.value]]), w("div", {
4158
- onClick: i[5] ||= (e) => Hi.value = !Hi.value,
4159
- style: E({ cursor: ya.value ? "pointer" : "default" })
4160
- }, [$e(j(ii), {
4161
- name: "chartLine",
4162
- size: 20,
4163
- stroke: H.value.chart.color
4164
- }, null, 8, ["stroke"])], 4)]), Hi.value ? (D(), Xe(j(ai), {
4165
- key: `sparkline_${Ui.value}`,
4166
- dataset: _s.value,
4167
- config: vs.value
4168
- }, null, 8, ["dataset", "config"])) : (D(), Xe(j(ti), {
4169
- key: `table_${Bi.value}`,
4170
- colNames: Qs.value.colNames,
4171
- head: Qs.value.head,
4172
- body: Qs.value.body,
4173
- config: Qs.value.config,
4174
- title: H.value.table.useDialog ? "" : xc.value.title,
4175
- withCloseButton: !H.value.table.useDialog,
4176
- onClose: Sc
4177
- }, {
4178
- th: M(({ th: e }) => [w("div", { innerHTML: e }, null, 8, ei)]),
4179
- td: M(({ td: e }) => [Qe(ut(isNaN(Number(e)) ? e : j(a)({
4180
- p: H.value.chart.labels.prefix,
4181
- v: e,
4182
- s: H.value.chart.labels.suffix,
4183
- r: H.value.table.rounding
4184
- })), 1)]),
4185
- _: 1
4186
- }, 8, [
4187
- "colNames",
4188
- "head",
4189
- "body",
4190
- "config",
4191
- "title",
4192
- "withCloseButton"
4193
- ]))], 4)]),
4194
- _: 2
4195
- }, [H.value.table.useDialog ? {
4196
- name: "title",
4197
- fn: M(() => [Qe(ut(xc.value.title), 1)]),
4198
- key: "0"
4199
- } : void 0, H.value.table.useDialog ? {
4200
- name: "actions",
4201
- fn: M(() => [w("button", {
4202
- tabindex: "0",
4203
- class: "vue-ui-user-options-button",
4204
- onClick: i[3] ||= (e) => $s(H.value.chart.userOptions.callbacks.csv)
4205
- }, [$e(j(ii), {
4206
- name: "fileCsv",
4207
- stroke: xc.value.props.color
4208
- }, null, 8, ["stroke"])])]),
4209
- key: "1"
4210
- } : void 0]), 1040)) : S("", !0),
4211
- A(r.$slots, "skeleton", {}, () => [j(wa) ? (D(), Xe(Pe, { key: 0 })) : S("", !0)], !0)
4212
- ], 46, vt));
4213
- }
4214
- }, [["__scopeId", "data-v-25ca945c"]]);
4215
- //#endregion
4216
- export { _t as n, N as t };