vue-data-ui 3.27.0 → 3.27.1

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 (531) hide show
  1. package/dist/A11yDataTable-DWNlWXzs.js +1 -0
  2. package/dist/Arrow-C2W0uGrq.js +1 -0
  3. package/dist/BaseDraggableDialog-D_tuHEjO.js +1 -0
  4. package/dist/BaseIcon-DdIyewwY.js +1 -0
  5. package/dist/BaseLegendToggle-Bq5FjyuI.js +1 -0
  6. package/dist/BaseScanner-8NdoBs7B.js +1 -0
  7. package/dist/BaseZoomControls-DoYifY2y.js +1 -0
  8. package/dist/ColorPicker-MLwiwxl5.js +1 -0
  9. package/dist/DataTable-WNecJMcY.js +1 -0
  10. package/dist/DefGrad-DKMq1REY.js +1 -0
  11. package/dist/HillActions-CHg1AQ3p.js +1 -0
  12. package/dist/Legend-D8YoT1RJ.js +1 -0
  13. package/dist/NonSvgPenAndPaper-CqtJpZKh.js +1 -0
  14. package/dist/PackageVersion-CdkxOy58.js +1 -0
  15. package/dist/PenAndPaper-IMw576MC.js +1 -0
  16. package/dist/RecursiveCircles-BftI1kwF.js +1 -0
  17. package/dist/RecursiveLabels-B0d04xSj.js +1 -0
  18. package/dist/RecursiveLinks-CZtG6uWg.js +1 -0
  19. package/dist/Shape-Bp9YNtPc.js +1 -0
  20. package/dist/SlicerPreview-CNUciSbY.js +1 -0
  21. package/dist/SparkTooltip-C5JMcBXT.js +1 -0
  22. package/dist/Title-BGYFqulv.js +1 -0
  23. package/dist/Tooltip-Cus2-XNQ.js +1 -0
  24. package/dist/UserOptions-DTxMeZv3.js +1 -0
  25. package/dist/_plugin-vue_export-helper-BDNMzG2s.js +1 -0
  26. package/dist/annotationSlots-BRR85CqJ.js +1 -0
  27. package/dist/chartImage-CIvU_04o.js +1 -0
  28. package/dist/components/arrow.js +1 -2
  29. package/dist/components/vue-ui-3d-bar.js +1 -2
  30. package/dist/components/vue-ui-accordion.js +1 -2
  31. package/dist/components/vue-ui-age-pyramid.js +1 -2
  32. package/dist/components/vue-ui-annotator.js +1 -2
  33. package/dist/components/vue-ui-bullet.js +1 -2
  34. package/dist/components/vue-ui-bump.js +1 -2
  35. package/dist/components/vue-ui-candlestick.js +1 -2
  36. package/dist/components/vue-ui-carousel-table.js +1 -2
  37. package/dist/components/vue-ui-chestnut.js +1 -2
  38. package/dist/components/vue-ui-chord.js +1 -2
  39. package/dist/components/vue-ui-circle-pack.js +1 -2
  40. package/dist/components/vue-ui-cursor.js +1 -2
  41. package/dist/components/vue-ui-dag.js +1 -2
  42. package/dist/components/vue-ui-dashboard.js +1 -2
  43. package/dist/components/vue-ui-digits.js +1 -2
  44. package/dist/components/vue-ui-donut-evolution.js +1 -2
  45. package/dist/components/vue-ui-donut.js +1 -2
  46. package/dist/components/vue-ui-dumbbell.js +1 -2
  47. package/dist/components/vue-ui-flow.js +1 -2
  48. package/dist/components/vue-ui-funnel.js +1 -2
  49. package/dist/components/vue-ui-galaxy.js +1 -2
  50. package/dist/components/vue-ui-gauge.js +1 -2
  51. package/dist/components/vue-ui-geo.js +1 -2
  52. package/dist/components/vue-ui-gizmo.js +1 -2
  53. package/dist/components/vue-ui-heatmap.js +1 -2
  54. package/dist/components/vue-ui-hill.js +1 -2
  55. package/dist/components/vue-ui-history-plot.js +1 -2
  56. package/dist/components/vue-ui-horizontal-bar.js +1 -2
  57. package/dist/components/vue-ui-icon.js +1 -2
  58. package/dist/components/vue-ui-kpi.js +1 -2
  59. package/dist/components/vue-ui-label.js +1 -2
  60. package/dist/components/vue-ui-mini-loader.js +1 -2
  61. package/dist/components/vue-ui-molecule.js +1 -2
  62. package/dist/components/vue-ui-mood-radar.js +1 -2
  63. package/dist/components/vue-ui-nested-donuts.js +1 -2
  64. package/dist/components/vue-ui-onion.js +1 -2
  65. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -2
  66. package/dist/components/vue-ui-pattern-seed.js +1 -2
  67. package/dist/components/vue-ui-pattern.js +1 -2
  68. package/dist/components/vue-ui-quadrant.js +1 -2
  69. package/dist/components/vue-ui-quick-chart.js +1 -2
  70. package/dist/components/vue-ui-radar.js +1 -2
  71. package/dist/components/vue-ui-rating.js +1 -2
  72. package/dist/components/vue-ui-relation-circle.js +1 -2
  73. package/dist/components/vue-ui-ridgeline.js +1 -2
  74. package/dist/components/vue-ui-rings.js +1 -2
  75. package/dist/components/vue-ui-scatter.js +1 -2
  76. package/dist/components/vue-ui-skeleton.js +1 -2
  77. package/dist/components/vue-ui-smiley.js +1 -2
  78. package/dist/components/vue-ui-spark-trend.js +1 -2
  79. package/dist/components/vue-ui-sparkbar.js +1 -2
  80. package/dist/components/vue-ui-sparkgauge.js +1 -2
  81. package/dist/components/vue-ui-sparkhistogram.js +1 -2
  82. package/dist/components/vue-ui-sparkline.js +1 -2
  83. package/dist/components/vue-ui-sparkstackbar.js +1 -2
  84. package/dist/components/vue-ui-stackbar.js +1 -2
  85. package/dist/components/vue-ui-stackline.js +1 -2
  86. package/dist/components/vue-ui-strip-plot.js +1 -2
  87. package/dist/components/vue-ui-table-heatmap.js +1 -2
  88. package/dist/components/vue-ui-table-sparkline.js +1 -2
  89. package/dist/components/vue-ui-table.js +1 -2
  90. package/dist/components/vue-ui-thermometer.js +1 -2
  91. package/dist/components/vue-ui-timer.js +1 -2
  92. package/dist/components/vue-ui-tiremarks.js +1 -2
  93. package/dist/components/vue-ui-treemap.js +1 -2
  94. package/dist/components/vue-ui-vertical-bar.js +1 -2
  95. package/dist/components/vue-ui-waffle.js +1 -2
  96. package/dist/components/vue-ui-wheel.js +1 -2
  97. package/dist/components/vue-ui-word-cloud.js +1 -2
  98. package/dist/components/vue-ui-world.js +1 -2
  99. package/dist/components/vue-ui-xy-canvas.js +1 -2
  100. package/dist/components/vue-ui-xy.js +1 -2
  101. package/dist/composables.js +1 -5
  102. package/dist/dom-to-png-D8t3Bm7s.js +3 -0
  103. package/dist/exposedLib-DHtyEc_G.js +1 -0
  104. package/dist/geoProjections-Bvj-eMvq.js +1 -0
  105. package/dist/img-DiT4ivZ5.js +1 -0
  106. package/dist/labelUtils-CG3uVXoZ.js +1 -0
  107. package/dist/lib-CV_IANZ6.js +12 -0
  108. package/dist/package-DE5cU1Rg.js +1 -0
  109. package/dist/patternUtils-_q3ArM3g.js +1 -0
  110. package/dist/pdf-BQSB1V3H.js +1 -0
  111. package/dist/render-common-BdZ5aRyn.js +1 -0
  112. package/dist/resolveChartConfig-DZg-korK.js +1 -0
  113. package/dist/rolldown-runtime-DK3Fl9T5.js +1 -0
  114. package/dist/ssr/vue-ui-donut.js +1 -2
  115. package/dist/ssr/vue-ui-xy.js +1 -2
  116. package/dist/ssr.js +1 -3
  117. package/dist/style.css +1 -1
  118. package/dist/tableIntegration-CNoJ1CIY.js +1 -0
  119. package/dist/types/composables.d.ts +12 -12
  120. package/dist/types/ssr.d.ts +84 -84
  121. package/dist/types/utils.d.ts +82 -73
  122. package/dist/types/vue-data-ui.d.ts +17961 -17958
  123. package/dist/types/vue-ui-3d-bar.d.ts +24 -91
  124. package/dist/types/vue-ui-accordion.d.ts +2 -10
  125. package/dist/types/vue-ui-age-pyramid.d.ts +27 -106
  126. package/dist/types/vue-ui-annotator.d.ts +12 -88
  127. package/dist/types/vue-ui-bullet.d.ts +21 -83
  128. package/dist/types/vue-ui-bump.d.ts +23 -90
  129. package/dist/types/vue-ui-candlestick.d.ts +27 -108
  130. package/dist/types/vue-ui-carousel-table.d.ts +11 -57
  131. package/dist/types/vue-ui-chestnut.d.ts +27 -96
  132. package/dist/types/vue-ui-chord.d.ts +31 -108
  133. package/dist/types/vue-ui-circle-pack.d.ts +30 -124
  134. package/dist/types/vue-ui-cursor.d.ts +2 -8
  135. package/dist/types/vue-ui-dag.d.ts +35 -125
  136. package/dist/types/vue-ui-dashboard.d.ts +18 -66
  137. package/dist/types/vue-ui-digits.d.ts +2 -11
  138. package/dist/types/vue-ui-donut-evolution.d.ts +31 -100
  139. package/dist/types/vue-ui-donut.d.ts +31 -121
  140. package/dist/types/vue-ui-dumbbell.d.ts +24 -92
  141. package/dist/types/vue-ui-flow.d.ts +28 -104
  142. package/dist/types/vue-ui-funnel.d.ts +18 -77
  143. package/dist/types/vue-ui-galaxy.d.ts +30 -112
  144. package/dist/types/vue-ui-gauge.d.ts +22 -87
  145. package/dist/types/vue-ui-geo.d.ts +22 -92
  146. package/dist/types/vue-ui-gizmo.d.ts +5 -20
  147. package/dist/types/vue-ui-heatmap.d.ts +25 -101
  148. package/dist/types/vue-ui-hill.d.ts +22 -88
  149. package/dist/types/vue-ui-history-plot.d.ts +30 -112
  150. package/dist/types/vue-ui-horizontal-bar.d.ts +30 -114
  151. package/dist/types/vue-ui-icon.d.ts +1 -13
  152. package/dist/types/vue-ui-kpi.d.ts +5 -23
  153. package/dist/types/vue-ui-label.d.ts +11 -48
  154. package/dist/types/vue-ui-mini-loader.d.ts +4 -13
  155. package/dist/types/vue-ui-molecule.d.ts +27 -110
  156. package/dist/types/vue-ui-mood-radar.d.ts +23 -90
  157. package/dist/types/vue-ui-nested-donuts.d.ts +28 -109
  158. package/dist/types/vue-ui-onion.d.ts +26 -104
  159. package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +34 -123
  160. package/dist/types/vue-ui-pattern-seed.d.ts +1 -14
  161. package/dist/types/vue-ui-pattern.d.ts +1 -13
  162. package/dist/types/vue-ui-quadrant.d.ts +33 -123
  163. package/dist/types/vue-ui-quick-chart.d.ts +30 -110
  164. package/dist/types/vue-ui-radar.d.ts +31 -114
  165. package/dist/types/vue-ui-rating.d.ts +8 -40
  166. package/dist/types/vue-ui-relation-circle.d.ts +26 -90
  167. package/dist/types/vue-ui-ridgeline.d.ts +27 -104
  168. package/dist/types/vue-ui-rings.d.ts +21 -96
  169. package/dist/types/vue-ui-scatter.d.ts +22 -95
  170. package/dist/types/vue-ui-skeleton.d.ts +2 -10
  171. package/dist/types/vue-ui-smiley.d.ts +6 -26
  172. package/dist/types/vue-ui-spark-trend.d.ts +2 -18
  173. package/dist/types/vue-ui-sparkbar.d.ts +10 -47
  174. package/dist/types/vue-ui-sparkgauge.d.ts +5 -26
  175. package/dist/types/vue-ui-sparkhistogram.d.ts +12 -44
  176. package/dist/types/vue-ui-sparkline.d.ts +16 -61
  177. package/dist/types/vue-ui-sparkstackbar.d.ts +13 -58
  178. package/dist/types/vue-ui-stackbar.d.ts +36 -130
  179. package/dist/types/vue-ui-stackline.d.ts +29 -116
  180. package/dist/types/vue-ui-strip-plot.d.ts +22 -96
  181. package/dist/types/vue-ui-table-heatmap.d.ts +14 -60
  182. package/dist/types/vue-ui-table-sparkline.d.ts +12 -51
  183. package/dist/types/vue-ui-table.d.ts +9 -36
  184. package/dist/types/vue-ui-thermometer.d.ts +14 -68
  185. package/dist/types/vue-ui-timer.d.ts +10 -47
  186. package/dist/types/vue-ui-tiremarks.d.ts +14 -68
  187. package/dist/types/vue-ui-treemap.d.ts +26 -105
  188. package/dist/types/vue-ui-vertical-bar.d.ts +8 -19
  189. package/dist/types/vue-ui-waffle.d.ts +23 -99
  190. package/dist/types/vue-ui-wheel.d.ts +14 -68
  191. package/dist/types/vue-ui-word-cloud.d.ts +20 -95
  192. package/dist/types/vue-ui-world.d.ts +22 -96
  193. package/dist/types/vue-ui-xy-canvas.d.ts +24 -101
  194. package/dist/types/vue-ui-xy.d.ts +42 -146
  195. package/dist/unpackTheme-CNsFKCeq.js +1 -0
  196. package/dist/useAutoSizeLabelsInsideViewbox-AIRF0PlD.js +1 -0
  197. package/dist/useChartAccessibility-DOMuYJfm.js +1 -0
  198. package/dist/useChartExport-DtPNpc9M.js +1 -0
  199. package/dist/useConfig-CKdzPrcf.js +1 -0
  200. package/dist/useFitSvgText-C1QC4P5G.js +1 -0
  201. package/dist/useHints-BH9r_0Vd.js +6 -0
  202. package/dist/useNestedProp-CB186vF2.js +1 -0
  203. package/dist/useObjectBindings-Dse7YyAf.js +1 -0
  204. package/dist/usePanZoom-BdjP5Suc.js +1 -0
  205. package/dist/usePrefersMotion-XLHwega2.js +1 -0
  206. package/dist/usePrinter-hLW3cv4N.js +1 -0
  207. package/dist/useResponsive-D2CPcpda.js +1 -0
  208. package/dist/useStableElementSize-CegFbRlF.js +1 -0
  209. package/dist/useTableResponsive-uSz_qZOB.js +1 -0
  210. package/dist/useThemeCheck-BKNRbGeC.js +1 -0
  211. package/dist/useTimeLabelCollider-XQf_S7-z.js +1 -0
  212. package/dist/useTimeLabels-Das5O74F.js +1 -0
  213. package/dist/useTooltipPosition-aoV8pZZ9.js +1 -0
  214. package/dist/useTransitions-DfSHzsdz.js +1 -0
  215. package/dist/useUserOptionState-CXlFnwPv.js +1 -0
  216. package/dist/userOptionsSlots-DYuo-E5m.js +1 -0
  217. package/dist/utils.js +1 -30
  218. package/dist/vClickOutside-BxNzkY17.js +1 -0
  219. package/dist/vue-data-ui-DyYgLIZN.js +1 -0
  220. package/dist/vue-data-ui.js +1 -79
  221. package/dist/vue-ui-3d-bar-BZAoyWkc.js +19 -0
  222. package/dist/vue-ui-accordion-BNvevckx.js +1 -0
  223. package/dist/vue-ui-age-pyramid-DkA6vpU3.js +1 -0
  224. package/dist/vue-ui-annotator-DuQME4Hh.js +331 -0
  225. package/dist/vue-ui-bullet-BVs8JX8S.js +34 -0
  226. package/dist/vue-ui-bump-DYdm3EvF.js +10 -0
  227. package/dist/vue-ui-candlestick-DZgxl4mW.js +22 -0
  228. package/dist/vue-ui-carousel-table-BB7DsTUt.js +1 -0
  229. package/dist/vue-ui-chestnut-Bo1h5rBt.js +1 -0
  230. package/dist/vue-ui-chord-B6_veyvO.js +21 -0
  231. package/dist/vue-ui-circle-pack-Bm7e2YNh.js +13 -0
  232. package/dist/vue-ui-cursor-TidZDuSh.js +1 -0
  233. package/dist/vue-ui-dag-BiN_AnLo.js +9 -0
  234. package/dist/vue-ui-dashboard-zepAVN_W.js +1 -0
  235. package/dist/vue-ui-digits-CXKKmfGj.js +42 -0
  236. package/dist/vue-ui-donut-CKkBtyPK.js +22 -0
  237. package/dist/vue-ui-donut-DLDUpjDU.js +47 -0
  238. package/dist/vue-ui-donut-evolution-BxMTdE5G.js +2 -0
  239. package/dist/vue-ui-dumbbell-C8rNwdz0.js +9 -0
  240. package/dist/vue-ui-flow-Dru76A2O.js +3 -0
  241. package/dist/vue-ui-funnel-D_u1h5S9.js +1 -0
  242. package/dist/vue-ui-galaxy-sBEH18Xj.js +1 -0
  243. package/dist/vue-ui-gauge-Do3RN8ne.js +1 -0
  244. package/dist/vue-ui-geo-DDbtx_iJ.js +1 -0
  245. package/dist/vue-ui-gizmo-eic6xLjB.js +1 -0
  246. package/dist/vue-ui-heatmap-DlmJRsM8.js +1 -0
  247. package/dist/vue-ui-hill-C5oiuIXh.js +1 -0
  248. package/dist/vue-ui-history-plot-BJjnkWcT.js +2 -0
  249. package/dist/vue-ui-horizontal-bar-BRDBJEl1.js +4 -0
  250. package/dist/vue-ui-kpi-C-eed3jO.js +1 -0
  251. package/dist/vue-ui-label-B4pkXBxc.js +7 -0
  252. package/dist/vue-ui-mini-loader-CElmv_iF.js +1 -0
  253. package/dist/vue-ui-molecule-BeyQWZU9.js +1 -0
  254. package/dist/vue-ui-mood-radar-Bh0kHfiZ.js +1 -0
  255. package/dist/vue-ui-nested-donuts-FlnJfDaF.js +19 -0
  256. package/dist/vue-ui-onion-BjhSpjtW.js +5 -0
  257. package/dist/vue-ui-parallel-coordinate-plot-CHV6XDti.js +9 -0
  258. package/dist/vue-ui-pattern-DrPCu32G.js +1 -0
  259. package/dist/vue-ui-pattern-seed-B8YjAAEH.js +1 -0
  260. package/dist/vue-ui-quadrant-BaKSTJDv.js +2 -0
  261. package/dist/vue-ui-quick-chart-Nc2mVlle.js +17 -0
  262. package/dist/vue-ui-radar-BzUfkLlC.js +1 -0
  263. package/dist/vue-ui-rating-BwWXvbAg.js +1 -0
  264. package/dist/vue-ui-relation-circle-nAZEg-BL.js +1 -0
  265. package/dist/vue-ui-ridgeline-DxLZg1E2.js +2 -0
  266. package/dist/vue-ui-rings-BOti0NGb.js +1 -0
  267. package/dist/vue-ui-scatter-CCNMggyo.js +9 -0
  268. package/dist/vue-ui-skeleton-DI7pcimU.js +41 -0
  269. package/dist/vue-ui-smiley-D70sJZWl.js +1 -0
  270. package/dist/vue-ui-spark-trend-BVtfEalS.js +1 -0
  271. package/dist/vue-ui-sparkbar-CdsLI7Ke.js +1 -0
  272. package/dist/vue-ui-sparkgauge-wmj5Wnnp.js +1 -0
  273. package/dist/vue-ui-sparkhistogram-D8S_P_P4.js +1 -0
  274. package/dist/vue-ui-sparkline-BjsJnS_9.js +1 -0
  275. package/dist/vue-ui-sparkstackbar-ZN8LXzoV.js +1 -0
  276. package/dist/vue-ui-stackbar-Dx_EN3pT.js +29 -0
  277. package/dist/vue-ui-stackline-DW-oxJvA.js +39 -0
  278. package/dist/vue-ui-strip-plot-D7kjJ3Qh.js +2 -0
  279. package/dist/vue-ui-table-CaFVLHxE.js +14 -0
  280. package/dist/vue-ui-table-heatmap-Ctf7Rhqo.js +1 -0
  281. package/dist/vue-ui-table-sparkline-C0I0cXBS.js +1 -0
  282. package/dist/vue-ui-thermometer-B6og15Al.js +1 -0
  283. package/dist/vue-ui-timer-DgXvO2Q7.js +64 -0
  284. package/dist/vue-ui-tiremarks-Dh6fZ454.js +1 -0
  285. package/dist/vue-ui-treemap-7JuvN6P_.js +1 -0
  286. package/dist/vue-ui-waffle-BqvGzfse.js +1 -0
  287. package/dist/vue-ui-wheel-SdwJqKA7.js +1 -0
  288. package/dist/vue-ui-word-cloud-1WVV_k12.js +4 -0
  289. package/dist/vue-ui-world-DjMy_utm.js +19 -0
  290. package/dist/vue-ui-xy-DaozHMfg.js +31 -0
  291. package/dist/vue-ui-xy-canvas-CegvS9RR.js +9 -0
  292. package/dist/vue-ui-xy-rGHSI1am.js +24 -0
  293. package/dist/vue_ui_3d_bar-DmAve5Ri.js +1 -0
  294. package/dist/vue_ui_age_pyramid-CL0Ef8Ov.js +1 -0
  295. package/dist/vue_ui_bullet-CwVYkpjd.js +1 -0
  296. package/dist/vue_ui_bump-KJL9GYr4.js +1 -0
  297. package/dist/vue_ui_candlestick-DKvha_Ab.js +1 -0
  298. package/dist/vue_ui_chestnut-BxxivKN7.js +1 -0
  299. package/dist/vue_ui_chord-Fq6VBRT1.js +1 -0
  300. package/dist/vue_ui_circle_pack-CfXkXi7v.js +1 -0
  301. package/dist/vue_ui_dag-1b_dLSym.js +1 -0
  302. package/dist/vue_ui_donut-T5PeOqvf.js +1 -0
  303. package/dist/vue_ui_donut_evolution-CVoh3twl.js +1 -0
  304. package/dist/vue_ui_dumbbell-BMcxK0N3.js +1 -0
  305. package/dist/vue_ui_flow-kvV56Es9.js +1 -0
  306. package/dist/vue_ui_funnel-CaEV5hG7.js +1 -0
  307. package/dist/vue_ui_galaxy-B94QInxc.js +1 -0
  308. package/dist/vue_ui_gauge-BJhb6yqE.js +1 -0
  309. package/dist/vue_ui_geo-DL1SMQHp.js +1 -0
  310. package/dist/vue_ui_heatmap-kh5NMmwf.js +1 -0
  311. package/dist/vue_ui_hill-DQi4pQCG.js +1 -0
  312. package/dist/vue_ui_history_plot-soyqUW4Y.js +1 -0
  313. package/dist/vue_ui_horizontal_bar-C4ulIxeT.js +1 -0
  314. package/dist/vue_ui_label-dtPqyFsj.js +1 -0
  315. package/dist/vue_ui_molecule-Bw1UW1Na.js +1 -0
  316. package/dist/vue_ui_mood_radar-CXaBdJnv.js +1 -0
  317. package/dist/vue_ui_nested_donuts-CRtGsJcz.js +1 -0
  318. package/dist/vue_ui_onion-C9BedU_-.js +1 -0
  319. package/dist/vue_ui_parallel_coordinate_plot-Cs_xXAG5.js +1 -0
  320. package/dist/vue_ui_quadrant-BUv-SqzP.js +1 -0
  321. package/dist/vue_ui_quick_chart-BRfcRW6Z.js +1 -0
  322. package/dist/vue_ui_radar-68iK9Fam.js +1 -0
  323. package/dist/vue_ui_relation_circle-Dkv-cSB6.js +1 -0
  324. package/dist/vue_ui_ridgeline-Di26JtQu.js +1 -0
  325. package/dist/vue_ui_rings-BcDDXHpQ.js +1 -0
  326. package/dist/vue_ui_scatter-C50uFYQL.js +1 -0
  327. package/dist/vue_ui_spark_trend-BOM3zo64.js +1 -0
  328. package/dist/vue_ui_sparkbar-Bpx7QrFq.js +1 -0
  329. package/dist/vue_ui_sparkgauge-D2Hk6bvS.js +1 -0
  330. package/dist/vue_ui_sparkhistogram-ChwOkoMb.js +1 -0
  331. package/dist/vue_ui_sparkline-CvL_e9L8.js +1 -0
  332. package/dist/vue_ui_sparkstackbar-Chtog7hC.js +1 -0
  333. package/dist/vue_ui_stackbar-BkBIi_bL.js +1 -0
  334. package/dist/vue_ui_stackline-D7b63K84.js +1 -0
  335. package/dist/vue_ui_strip_plot-CwMowrhT.js +1 -0
  336. package/dist/vue_ui_table_heatmap-vfeY6r97.js +1 -0
  337. package/dist/vue_ui_table_sparkline-Dlfbza49.js +1 -0
  338. package/dist/vue_ui_thermometer-CRijq6H6.js +1 -0
  339. package/dist/vue_ui_tiremarks-8HFfABNF.js +1 -0
  340. package/dist/vue_ui_treemap-Bv4Rdl5_.js +1 -0
  341. package/dist/vue_ui_vertical_bar-BLyflvlz.js +1 -0
  342. package/dist/vue_ui_waffle-BbBLSluB.js +1 -0
  343. package/dist/vue_ui_wheel-C-479bvJ.js +1 -0
  344. package/dist/vue_ui_word_cloud-DBiJtSyL.js +1 -0
  345. package/dist/vue_ui_xy-CJBM9F6W.js +1 -0
  346. package/dist/vue_ui_xy_canvas-CT-FN9rU.js +1 -0
  347. package/package.json +2 -2
  348. package/dist/A11yDataTable-DdRsVULz.js +0 -45
  349. package/dist/Arrow-DKO1l8oR.js +0 -116
  350. package/dist/BaseDraggableDialog-C50TEJFv.js +0 -272
  351. package/dist/BaseIcon-Cx9FD751.js +0 -484
  352. package/dist/BaseLegendToggle-CP3sddwv.js +0 -56
  353. package/dist/BaseScanner-Dzc8VT3j.js +0 -30
  354. package/dist/BaseZoomControls-vNi8YykO.js +0 -111
  355. package/dist/ColorPicker-hmC2bvwS.js +0 -257
  356. package/dist/DataTable-CjF_An2h.js +0 -150
  357. package/dist/DefGrad-DVBqDjhO.js +0 -48
  358. package/dist/HillActions-DqqGB33u.js +0 -187
  359. package/dist/Legend-CulFgjUY.js +0 -156
  360. package/dist/NonSvgPenAndPaper-BK1v_MfW.js +0 -577
  361. package/dist/PackageVersion-D7H9nfK0.js +0 -12
  362. package/dist/PenAndPaper-CNiuGw6k.js +0 -906
  363. package/dist/RecursiveCircles-D6aDPmoe.js +0 -117
  364. package/dist/RecursiveLabels-D9rfID6q.js +0 -56
  365. package/dist/RecursiveLinks-BygcpDiT.js +0 -78
  366. package/dist/Shape-DSwamtmO.js +0 -143
  367. package/dist/SlicerPreview-k5YerMA9.js +0 -1730
  368. package/dist/SparkTooltip-D35KVv6N.js +0 -93
  369. package/dist/Title-BMCuINbv.js +0 -87
  370. package/dist/Tooltip-C4ZTwkLF.js +0 -312
  371. package/dist/UserOptions-CORYQiif.js +0 -1412
  372. package/dist/_plugin-vue_export-helper-B3ysoDQm.js +0 -8
  373. package/dist/dom-to-png-CBusMkua.js +0 -237
  374. package/dist/exposedLib-UNxZlnAS.js +0 -28
  375. package/dist/geoProjections-BYthUA8l.js +0 -302
  376. package/dist/img-Bb5rHcpO.js +0 -129
  377. package/dist/labelUtils-Ccn9kK7T.js +0 -19
  378. package/dist/lib-D4wK6ljP.js +0 -2146
  379. package/dist/package-DmQufM0G.js +0 -4
  380. package/dist/patternUtils-CS7hn6at.js +0 -258
  381. package/dist/pdf-BzIQHx-F.js +0 -90
  382. package/dist/render-common-BtfjXdkJ.js +0 -152
  383. package/dist/rolldown-runtime-Dy4uBu1J.js +0 -11
  384. package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +0 -122
  385. package/dist/useChartAccessibility-DYqac8yF.js +0 -12
  386. package/dist/useChartExport-iwOqiIWX.js +0 -803
  387. package/dist/useConfig-D_6ZrPMD.js +0 -8090
  388. package/dist/useFitSvgText-CXTzBplU.js +0 -65
  389. package/dist/useHints-Dq_w2E8B.js +0 -66
  390. package/dist/useNestedProp-DR_8JPol.js +0 -12
  391. package/dist/useObjectBindings-DvasYMGu.js +0 -191
  392. package/dist/usePanZoom-CYU3B4T3.js +0 -157
  393. package/dist/usePrefersMotion-BC-CsqR1.js +0 -15
  394. package/dist/usePrinter-DdW2GSm0.js +0 -49
  395. package/dist/useResponsive-ZtArZtUf.js +0 -97
  396. package/dist/useStableElementSize-C7KADDKj.js +0 -77
  397. package/dist/useTableResponsive-BAqJPR68.js +0 -25
  398. package/dist/useThemeCheck-C43Tcqmk.js +0 -24
  399. package/dist/useTimeLabelCollider-AEcY4Ioe.js +0 -57
  400. package/dist/useTimeLabels-d2f-W1L4.js +0 -270
  401. package/dist/useTooltipPosition-BCrtQa9H.js +0 -189
  402. package/dist/useTransitions-g_zBREk2.js +0 -39
  403. package/dist/useUserOptionState-DK-_1ddE.js +0 -15
  404. package/dist/vClickOutside-DUrZWttG.js +0 -13
  405. package/dist/vue-data-ui-Df7WV80w.js +0 -191
  406. package/dist/vue-ui-3d-bar-CJjNPwhG.js +0 -1831
  407. package/dist/vue-ui-accordion-CaoNWreI.js +0 -81
  408. package/dist/vue-ui-age-pyramid-BYcM0uIP.js +0 -1305
  409. package/dist/vue-ui-annotator-BmqjDjRF.js +0 -3325
  410. package/dist/vue-ui-bullet-DBOAvpBB.js +0 -702
  411. package/dist/vue-ui-bump-rPYwDJ4o.js +0 -1242
  412. package/dist/vue-ui-candlestick-WQHIQNv_.js +0 -2144
  413. package/dist/vue-ui-carousel-table-Dojcvt49.js +0 -467
  414. package/dist/vue-ui-chestnut-BdhEByUf.js +0 -2016
  415. package/dist/vue-ui-chord-MF4xF5az.js +0 -1347
  416. package/dist/vue-ui-circle-pack-BwDim7G8.js +0 -1647
  417. package/dist/vue-ui-cursor-w_5cbpSb.js +0 -283
  418. package/dist/vue-ui-dag-D2EUqeDN.js +0 -2931
  419. package/dist/vue-ui-dashboard-BLnVXosj.js +0 -522
  420. package/dist/vue-ui-digits-zSqwYWHm.js +0 -217
  421. package/dist/vue-ui-donut-ZYZfqIhi.js +0 -974
  422. package/dist/vue-ui-donut-evolution-DtLbWi3h.js +0 -1869
  423. package/dist/vue-ui-donut-nLDLZwig.js +0 -2427
  424. package/dist/vue-ui-dumbbell-Qgn3wRyI.js +0 -1533
  425. package/dist/vue-ui-flow-iSH6dyGw.js +0 -1229
  426. package/dist/vue-ui-funnel-Cc2z2zS5.js +0 -749
  427. package/dist/vue-ui-galaxy-GhuBSU0o.js +0 -1097
  428. package/dist/vue-ui-gauge-BAjBO13a.js +0 -934
  429. package/dist/vue-ui-geo-mwTtvIHY.js +0 -1495
  430. package/dist/vue-ui-gizmo-B5vOOrZX.js +0 -238
  431. package/dist/vue-ui-heatmap-fimkY1nN.js +0 -1613
  432. package/dist/vue-ui-hill-DPfTt3UE.js +0 -1747
  433. package/dist/vue-ui-history-plot-B1WgzqTb.js +0 -1710
  434. package/dist/vue-ui-horizontal-bar-Bkp5HQdt.js +0 -1723
  435. package/dist/vue-ui-kpi-D-p0CSQh.js +0 -104
  436. package/dist/vue-ui-label-r3-QloJL.js +0 -1451
  437. package/dist/vue-ui-mini-loader-CnrBGAtM.js +0 -133
  438. package/dist/vue-ui-molecule-BhdAYX_H.js +0 -941
  439. package/dist/vue-ui-mood-radar-CdlnPrQf.js +0 -1111
  440. package/dist/vue-ui-nested-donuts-DceVEyUc.js +0 -1515
  441. package/dist/vue-ui-onion-_L0uEATI.js +0 -1247
  442. package/dist/vue-ui-parallel-coordinate-plot-CbXwIM47.js +0 -1444
  443. package/dist/vue-ui-pattern-DKozfnVn.js +0 -154
  444. package/dist/vue-ui-pattern-seed-BB1honLm.js +0 -61
  445. package/dist/vue-ui-quadrant-CDDFLRcX.js +0 -1979
  446. package/dist/vue-ui-quick-chart-Dom257hl.js +0 -2775
  447. package/dist/vue-ui-radar-BLdri1bA.js +0 -1386
  448. package/dist/vue-ui-rating-C_iTttXB.js +0 -359
  449. package/dist/vue-ui-relation-circle-BmxTSgjd.js +0 -905
  450. package/dist/vue-ui-ridgeline-CsUrcVmL.js +0 -1630
  451. package/dist/vue-ui-rings-D_GPkgbD.js +0 -1264
  452. package/dist/vue-ui-scatter-D_C-IhnW.js +0 -2418
  453. package/dist/vue-ui-skeleton-t7e6KEZ2.js +0 -2567
  454. package/dist/vue-ui-smiley-Dl95YWVo.js +0 -376
  455. package/dist/vue-ui-spark-trend-pkZA7u5V.js +0 -457
  456. package/dist/vue-ui-sparkbar-Ds7OJjhG.js +0 -401
  457. package/dist/vue-ui-sparkgauge-US1M88qc.js +0 -268
  458. package/dist/vue-ui-sparkhistogram-FISVpSvv.js +0 -589
  459. package/dist/vue-ui-sparkline-DvE1dHcs.js +0 -2067
  460. package/dist/vue-ui-sparkstackbar-CWtF9eG-.js +0 -750
  461. package/dist/vue-ui-stackbar-fMgrHzZe.js +0 -3273
  462. package/dist/vue-ui-stackline-CSMuUup2.js +0 -2829
  463. package/dist/vue-ui-strip-plot-TGD2UFHS.js +0 -1752
  464. package/dist/vue-ui-table-BCEIbg8-.js +0 -1352
  465. package/dist/vue-ui-table-heatmap-CvUcFWMf.js +0 -363
  466. package/dist/vue-ui-table-sparkline-CoVQ1qGY.js +0 -738
  467. package/dist/vue-ui-thermometer-BYFAZCzh.js +0 -758
  468. package/dist/vue-ui-timer-BKr8RVnn.js +0 -451
  469. package/dist/vue-ui-tiremarks-BYu3cEoy.js +0 -540
  470. package/dist/vue-ui-treemap-BR3rX5_L.js +0 -1745
  471. package/dist/vue-ui-waffle-mP8g5aQk.js +0 -1633
  472. package/dist/vue-ui-wheel-CZsSO2R6.js +0 -873
  473. package/dist/vue-ui-word-cloud-CJ30onqy.js +0 -1723
  474. package/dist/vue-ui-world-BZ09DOiF.js +0 -3021
  475. package/dist/vue-ui-xy-C3h54loZ.js +0 -1387
  476. package/dist/vue-ui-xy-canvas-BwgK8drp.js +0 -2151
  477. package/dist/vue-ui-xy-jemv5dsf.js +0 -5777
  478. package/dist/vue_ui_3d_bar-C4R7o-yX.js +0 -185
  479. package/dist/vue_ui_age_pyramid-B2R66DgQ.js +0 -310
  480. package/dist/vue_ui_bullet-ClzdLoOv.js +0 -186
  481. package/dist/vue_ui_bump-Vl-zYAtG.js +0 -201
  482. package/dist/vue_ui_candlestick-BXSQY82k.js +0 -461
  483. package/dist/vue_ui_chestnut-D2oUhad6.js +0 -305
  484. package/dist/vue_ui_chord-DPfS1Umc.js +0 -275
  485. package/dist/vue_ui_circle_pack-DZC_rdfn.js +0 -172
  486. package/dist/vue_ui_dag-TsJ_azQq.js +0 -258
  487. package/dist/vue_ui_donut-BDGqG07h.js +0 -358
  488. package/dist/vue_ui_donut_evolution-C6951a2f.js +0 -745
  489. package/dist/vue_ui_dumbbell-Bfe_jFyi.js +0 -304
  490. package/dist/vue_ui_flow-BewZjjKG.js +0 -238
  491. package/dist/vue_ui_funnel-_Og4EEkO.js +0 -234
  492. package/dist/vue_ui_galaxy-Ig0cc1_h.js +0 -265
  493. package/dist/vue_ui_gauge-Cf1RZc9q.js +0 -178
  494. package/dist/vue_ui_geo-B8TODs-G.js +0 -248
  495. package/dist/vue_ui_heatmap-B2BBBSWG.js +0 -319
  496. package/dist/vue_ui_hill-dnltu0L-.js +0 -368
  497. package/dist/vue_ui_history_plot-CuN63VEc.js +0 -413
  498. package/dist/vue_ui_horizontal_bar-C4J4QzXf.js +0 -341
  499. package/dist/vue_ui_label-B0QoxQrJ.js +0 -115
  500. package/dist/vue_ui_molecule-CO9L59SF.js +0 -231
  501. package/dist/vue_ui_mood_radar-BA6LAKhk.js +0 -281
  502. package/dist/vue_ui_nested_donuts-B8csIoVO.js +0 -273
  503. package/dist/vue_ui_onion-1FTFFS46.js +0 -293
  504. package/dist/vue_ui_parallel_coordinate_plot-CBiOBira.js +0 -278
  505. package/dist/vue_ui_quadrant-CDSTKTJz.js +0 -428
  506. package/dist/vue_ui_quick_chart-DByCqSYE.js +0 -180
  507. package/dist/vue_ui_radar-jafTED5j.js +0 -306
  508. package/dist/vue_ui_relation_circle-D0p4mXmv.js +0 -98
  509. package/dist/vue_ui_ridgeline-VM8_mx4J.js +0 -767
  510. package/dist/vue_ui_rings-BVgD2aMn.js +0 -320
  511. package/dist/vue_ui_scatter-I0POnicu.js +0 -479
  512. package/dist/vue_ui_spark_trend-DxVmpkmC.js +0 -82
  513. package/dist/vue_ui_sparkbar-z6qO--Kf.js +0 -64
  514. package/dist/vue_ui_sparkgauge-BX1MS3bA.js +0 -90
  515. package/dist/vue_ui_sparkhistogram-BRgvKUH6.js +0 -123
  516. package/dist/vue_ui_sparkline-b9pEUyGF.js +0 -183
  517. package/dist/vue_ui_sparkstackbar-BOjuQnZd.js +0 -175
  518. package/dist/vue_ui_stackbar-yQyvT4Su.js +0 -537
  519. package/dist/vue_ui_stackline-Bh0RuInt.js +0 -539
  520. package/dist/vue_ui_strip_plot-BaHbnnwN.js +0 -308
  521. package/dist/vue_ui_table_heatmap-w8vx5k6f.js +0 -80
  522. package/dist/vue_ui_table_sparkline-DAbkUrNz.js +0 -124
  523. package/dist/vue_ui_thermometer-DxgqWKlE.js +0 -123
  524. package/dist/vue_ui_tiremarks-CdEPieWV.js +0 -122
  525. package/dist/vue_ui_treemap-DoEtkRN6.js +0 -328
  526. package/dist/vue_ui_vertical_bar-CP-MKz1j.js +0 -247
  527. package/dist/vue_ui_waffle-DE_DiSVP.js +0 -299
  528. package/dist/vue_ui_wheel-DZ_nR--t.js +0 -133
  529. package/dist/vue_ui_word_cloud-C-qIMNLu.js +0 -254
  530. package/dist/vue_ui_xy-CcJADijP.js +0 -614
  531. package/dist/vue_ui_xy_canvas-DrNSzYWq.js +0 -487
@@ -1,2775 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { $ as t, Dt as n, Ht as r, It as i, J as a, Kt as o, P as s, S as ee, X as c, _ as te, at as l, b as u, en as d, et as ne, f, h as re, i as p, nn as ie, p as ae, pt as oe, t as se, w as ce, zt as le } from "./lib-D4wK6ljP.js";
3
- import { n as ue, t as de } from "./useHints-Dq_w2E8B.js";
4
- import { t as fe } from "./useTimeLabels-d2f-W1L4.js";
5
- import { t as pe } from "./useConfig-D_6ZrPMD.js";
6
- import { t as me } from "./usePrinter-DdW2GSm0.js";
7
- import { n as he, t as ge } from "./BaseScanner-Dzc8VT3j.js";
8
- import { t as _e } from "./useNestedProp-DR_8JPol.js";
9
- import { t as ve } from "./useThemeCheck-C43Tcqmk.js";
10
- import { t as ye } from "./useChartExport-iwOqiIWX.js";
11
- import { t as be } from "./useTransitions-g_zBREk2.js";
12
- import { t as xe } from "./useStableElementSize-C7KADDKj.js";
13
- import { t as Se } from "./useTimeLabelCollider-AEcY4Ioe.js";
14
- import { t as Ce } from "./img-Bb5rHcpO.js";
15
- import { t as we } from "./_plugin-vue_export-helper-B3ysoDQm.js";
16
- import { l as Te, t as Ee } from "./useResponsive-ZtArZtUf.js";
17
- import { t as De } from "./SlicerPreview-k5YerMA9.js";
18
- import { t as Oe } from "./BaseLegendToggle-CP3sddwv.js";
19
- import { t as ke } from "./A11yDataTable-DdRsVULz.js";
20
- import { t as Ae } from "./useChartAccessibility-DYqac8yF.js";
21
- import { t as je } from "./vue_ui_quick_chart-DByCqSYE.js";
22
- import { Fragment as m, Teleport as Me, computed as h, createBlock as Ne, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createSlots as Pe, createVNode as Fe, defineAsyncComponent as Ie, guardReactiveProps as y, mergeProps as Le, nextTick as Re, normalizeClass as b, normalizeProps as x, normalizeStyle as S, onBeforeUnmount as ze, onMounted as Be, openBlock as C, ref as w, renderList as T, renderSlot as E, shallowRef as Ve, toDisplayString as D, toRefs as He, unref as O, watch as Ue, watchEffect as We, withCtx as k } from "vue";
23
- //#region src/chartDetector.js
24
- var A = {
25
- LINE: "LINE",
26
- BAR: "BAR",
27
- DONUT: "DONUT"
28
- }, Ge = [
29
- "SERIE",
30
- "SERIES",
31
- "DATA",
32
- "VALUE",
33
- "VALUES",
34
- "NUM"
35
- ];
36
- function Ke({ dataset: e, barLineSwitch: t = 6, debug: n = !0 }) {
37
- let r = null, i = null, a = 0;
38
- if ((typeof e == "number" || typeof e == "string") && n && console.warn(`The provided dataset (${e}) is not sufficient to build a chart`), Je(e) && (j(e) && (r = e.length < t ? A.BAR : A.LINE, i = e, a = e.length), Ye(e))) {
39
- if (!Ze(e)) return n && console.warn("The objects in the dataset array have a different data structure. Either keys or value types are different."), !1;
40
- let o = Object.keys(e[0]), s = Object.values(e[0]);
41
- if (!o.some((e) => Qe(e))) return n && console.warn("The data type of the dataset objects in the array must contain one of the following keys: DATA, SERIES, VALUE, VALUES, NUM. Casing is not important."), !1;
42
- $e(s, (e) => typeof e == "number") && (r = A.DONUT, i = e), $e(s, (e) => Array.isArray(e) && j(e)) && (r = et(e) > t ? A.LINE : A.BAR, a = et(e), i = e.map((e) => ({
43
- ...e,
44
- data: tt(e, (e) => j(e))
45
- }))), e = e.map((e) => M(e)), i = i.map((e) => M(e));
46
- }
47
- return {
48
- dataset: e,
49
- type: r,
50
- usableDataset: i,
51
- maxSeriesLength: a
52
- };
53
- }
54
- function qe(e) {
55
- return !e || Je(e) && !e.length;
56
- }
57
- function Je(e) {
58
- return Array.isArray(e);
59
- }
60
- function j(e) {
61
- if (!Je(e) || qe(e)) return !1;
62
- let t = e.map((e) => Number(e));
63
- return ![...new Set(t.flatMap((e) => typeof e == "number" && !isNaN(e)))].includes(!1);
64
- }
65
- function Ye(e) {
66
- return !Je(e) || qe(e) || [...new Set(e.flatMap((e) => typeof e == "object" && !Array.isArray(e)))].includes(!1) ? !1 : !e.map((e) => Object.keys(e).length > 0).includes(!1);
67
- }
68
- function Xe(e, t) {
69
- let n = Object.keys(e).sort(), r = Object.keys(t).sort();
70
- if (n.length !== r.length) return !1;
71
- for (let i = 0; i < n.length; i += 1) {
72
- let a = n[i], o = r[i];
73
- if (a !== o || typeof e[a] != typeof t[o]) return !1;
74
- }
75
- return !0;
76
- }
77
- function Ze(e) {
78
- if (e.length <= 1) return !0;
79
- for (let t = 0; t < e.length; t += 1) for (let n = t + 1; n < e.length; n += 1) if (!Xe(e[t], e[n])) return !1;
80
- return !0;
81
- }
82
- function Qe(e) {
83
- return Ge.includes(e.toUpperCase());
84
- }
85
- function $e(e, t) {
86
- let n = [];
87
- for (let r = 0; r < e.length; r += 1) n.push(t(e[r]));
88
- return n.includes(!0);
89
- }
90
- function et(e) {
91
- return Math.max(...[...e].flatMap((e) => Object.values(e).filter((e) => j(e)).map((e) => e.length)));
92
- }
93
- function tt(e, t) {
94
- return Object.values(e).filter((e) => t(e))[0];
95
- }
96
- function M(e) {
97
- let t = {};
98
- for (let n in e) e.hasOwnProperty(n) && (t[n.toUpperCase()] = e[n]);
99
- return t;
100
- }
101
- //#endregion
102
- //#region src/components/vue-ui-quick-chart.vue
103
- var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it = ["id"], at = { style: { position: "relative" } }, ot = [
104
- "xmlns",
105
- "aria-describedby",
106
- "viewBox"
107
- ], st = [
108
- "x",
109
- "y",
110
- "width",
111
- "height"
112
- ], ct = [
113
- "x",
114
- "y",
115
- "width",
116
- "height"
117
- ], lt = ["width", "height"], ut = ["id"], dt = ["id"], ft = ["id"], pt = ["flood-color"], mt = {
118
- key: 0,
119
- class: "donut-label-connectors"
120
- }, ht = [
121
- "d",
122
- "stroke",
123
- "stroke-width",
124
- "filter"
125
- ], gt = [
126
- "cx",
127
- "cy",
128
- "r",
129
- "fill",
130
- "filter"
131
- ], _t = { class: "donut" }, vt = [
132
- "d",
133
- "fill",
134
- "stroke",
135
- "stroke-width",
136
- "filter"
137
- ], yt = [
138
- "d",
139
- "onMouseenter",
140
- "onMouseout",
141
- "onClick"
142
- ], bt = {
143
- key: 1,
144
- class: "donut-labels"
145
- }, xt = [
146
- "cx",
147
- "cy",
148
- "fill",
149
- "stroke",
150
- "filter"
151
- ], St = [
152
- "text-anchor",
153
- "x",
154
- "y",
155
- "fill",
156
- "font-size",
157
- "filter"
158
- ], Ct = [
159
- "text-anchor",
160
- "x",
161
- "y",
162
- "fill",
163
- "font-size",
164
- "filter"
165
- ], wt = {
166
- key: 2,
167
- class: "donut-hollow"
168
- }, Tt = [
169
- "x",
170
- "y",
171
- "font-size",
172
- "fill"
173
- ], Et = [
174
- "x",
175
- "y",
176
- "font-size",
177
- "fill"
178
- ], Dt = {
179
- key: 0,
180
- class: "line-grid"
181
- }, Ot = [
182
- "x1",
183
- "x2",
184
- "y1",
185
- "y2",
186
- "stroke",
187
- "stroke-width"
188
- ], kt = [
189
- "x1",
190
- "x2",
191
- "y1",
192
- "y2",
193
- "stroke",
194
- "stroke-width"
195
- ], At = {
196
- key: 1,
197
- class: "line-axis"
198
- }, jt = [
199
- "x1",
200
- "x2",
201
- "y1",
202
- "y2",
203
- "stroke",
204
- "stroke-width"
205
- ], Mt = [
206
- "x1",
207
- "x2",
208
- "y1",
209
- "y2",
210
- "stroke",
211
- "stroke-width"
212
- ], Nt = [
213
- "d",
214
- "stroke",
215
- "stroke-width"
216
- ], Pt = [
217
- "transform",
218
- "font-size",
219
- "fill"
220
- ], Ft = {
221
- key: 3,
222
- class: "periodLabels"
223
- }, It = [
224
- "x1",
225
- "x2",
226
- "y1",
227
- "y2",
228
- "stroke",
229
- "stroke-width"
230
- ], Lt = { key: 0 }, Rt = [
231
- "font-size",
232
- "text-anchor",
233
- "fill",
234
- "transform"
235
- ], zt = [
236
- "font-size",
237
- "text-anchor",
238
- "fill",
239
- "transform",
240
- "innerHTML"
241
- ], Bt = { class: "plots" }, Vt = [
242
- "d",
243
- "stroke",
244
- "stroke-width"
245
- ], Ht = [
246
- "d",
247
- "stroke",
248
- "stroke-width"
249
- ], Ut = [
250
- "d",
251
- "stroke",
252
- "stroke-width"
253
- ], Wt = [
254
- "d",
255
- "stroke",
256
- "stroke-width"
257
- ], Gt = [
258
- "cx",
259
- "cy",
260
- "fill",
261
- "stroke"
262
- ], Kt = {
263
- key: 4,
264
- class: "dataLabels"
265
- }, qt = [
266
- "font-size",
267
- "fill",
268
- "transform"
269
- ], Jt = {
270
- key: 5,
271
- class: "tooltip-traps"
272
- }, Yt = [
273
- "x",
274
- "y",
275
- "height",
276
- "width",
277
- "fill",
278
- "onMouseenter",
279
- "onMouseleave",
280
- "onClick"
281
- ], Xt = {
282
- key: 0,
283
- class: "line-grid"
284
- }, Zt = [
285
- "x1",
286
- "x2",
287
- "y1",
288
- "y2",
289
- "stroke",
290
- "stroke-width"
291
- ], Qt = [
292
- "x1",
293
- "x2",
294
- "y1",
295
- "y2",
296
- "stroke",
297
- "stroke-width"
298
- ], $t = {
299
- key: 1,
300
- class: "line-axis"
301
- }, en = [
302
- "x1",
303
- "x2",
304
- "y1",
305
- "y2",
306
- "stroke",
307
- "stroke-width"
308
- ], tn = [
309
- "x1",
310
- "x2",
311
- "y1",
312
- "y2",
313
- "stroke",
314
- "stroke-width"
315
- ], nn = [
316
- "d",
317
- "stroke",
318
- "stroke-width"
319
- ], rn = [
320
- "transform",
321
- "font-size",
322
- "fill"
323
- ], an = {
324
- key: 3,
325
- class: "periodLabels"
326
- }, on = [
327
- "x1",
328
- "x2",
329
- "y1",
330
- "y2",
331
- "stroke",
332
- "stroke-width"
333
- ], sn = { key: 0 }, cn = [
334
- "font-size",
335
- "text-anchor",
336
- "fill",
337
- "transform"
338
- ], ln = [
339
- "font-size",
340
- "text-anchor",
341
- "fill",
342
- "transform",
343
- "innerHTML"
344
- ], un = { class: "plots" }, dn = [
345
- "x",
346
- "width",
347
- "height",
348
- "y",
349
- "fill",
350
- "stroke",
351
- "stroke-width"
352
- ], fn = {
353
- key: 4,
354
- class: "dataLabels"
355
- }, pn = [
356
- "transform",
357
- "font-size",
358
- "fill"
359
- ], mn = {
360
- key: 5,
361
- class: "tooltip-traps"
362
- }, hn = [
363
- "x",
364
- "y",
365
- "height",
366
- "width",
367
- "fill",
368
- "onMouseenter",
369
- "onMouseleave",
370
- "onClick"
371
- ], gn = {
372
- key: 6,
373
- class: "axis-labels"
374
- }, _n = [
375
- "font-size",
376
- "fill",
377
- "x",
378
- "y"
379
- ], vn = [
380
- "font-size",
381
- "fill",
382
- "x",
383
- "y"
384
- ], yn = [
385
- "font-size",
386
- "fill",
387
- "transform"
388
- ], bn = [
389
- "font-size",
390
- "fill",
391
- "transform"
392
- ], xn = [
393
- "x",
394
- "y",
395
- "width",
396
- "height",
397
- "fill",
398
- "fill-opacity",
399
- "stroke",
400
- "stroke-opacity",
401
- "stroke-width",
402
- "stroke-dasharray"
403
- ], Sn = {
404
- key: 1,
405
- style: {
406
- position: "absolute",
407
- top: "100%",
408
- left: "0",
409
- width: "100%"
410
- },
411
- "data-dom-to-png-ignore": "",
412
- "aria-hidden": "true"
413
- }, Cn = {
414
- key: 5,
415
- class: "vue-data-ui-watermark"
416
- }, wn = ["id"], Tn = ["onClick", "onKeydown"], En = ["onClick", "onKeydown"], Dn = ["onClick", "onKeydown"], On = {
417
- key: 1,
418
- class: "vue-ui-quick-chart-not-processable"
419
- }, kn = /*#__PURE__*/ we({
420
- __name: "vue-ui-quick-chart",
421
- props: {
422
- config: {
423
- type: Object,
424
- default() {
425
- return {};
426
- }
427
- },
428
- dataset: {
429
- type: [
430
- Array,
431
- Object,
432
- String,
433
- Number
434
- ],
435
- default() {
436
- return null;
437
- }
438
- },
439
- zoomState: {
440
- type: Object,
441
- default: null
442
- }
443
- },
444
- emits: [
445
- "selectDatapoint",
446
- "selectLegend",
447
- "zoomStart",
448
- "zoomEnd",
449
- "zoomReset",
450
- "update:zoomState",
451
- "copyAlt"
452
- ],
453
- setup(e, { expose: we, emit: Ge }) {
454
- let qe = Ie(() => import("./BaseIcon-Cx9FD751.js").then((e) => e.n)), Je = Ie(() => import("./PackageVersion-D7H9nfK0.js").then((e) => e.t)), Xe = Ie(() => import("./PenAndPaper-CNiuGw6k.js").then((e) => e.t)), Ze = Ie(() => import("./Tooltip-C4ZTwkLF.js")), Qe = Ie(() => import("./UserOptions-CORYQiif.js").then((e) => e.n)), { vue_ui_quick_chart: $e } = pe(), { isThemeValid: et, warnInvalidTheme: tt } = ve(), M = e, N = w(null), kn = w(null), An = w(null), jn = w(null), P = w(c()), F = w(!1), Mn = w(null), Nn = w(""), I = w(null), Pn = w(null), Fn = w(null), L = w([]), In = w(0), Ln = w(0), Rn = w(!1), zn = w(null), Bn = w(null), Vn = w(null), Hn = w(null), Un = w(null), Wn = w(null), Gn = Ve(null), Kn = w(!1), qn = w(0), Jn = w(0), Yn = w(!1);
455
- function Xn() {
456
- Gn.value = N.value?.parentNode ?? null;
457
- }
458
- function Zn() {
459
- return new Promise((e) => {
460
- requestAnimationFrame(() => {
461
- requestAnimationFrame(e);
462
- });
463
- });
464
- }
465
- async function Qn() {
466
- let e = ++Jn.value;
467
- Kn.value = !1, await Re(), await Zn(), await Zn(), e === Jn.value && (qn.value += 1, Kn.value = !0);
468
- }
469
- function $n() {
470
- Yn.value || (Yn.value = !0, Re(() => {
471
- Yn.value = !1, Xn(), Qn();
472
- }));
473
- }
474
- let er = xe({
475
- elementRef: Gn,
476
- minimumWidth: 2,
477
- minimumHeight: 2,
478
- stableFramesRequired: 2,
479
- once: !1,
480
- onSizeAccepted: () => {
481
- Qn();
482
- }
483
- });
484
- w("#FFFFFF");
485
- let R = w(mr());
486
- ue({
487
- config: () => R.value,
488
- dataset: () => M.dataset,
489
- component: "VueUiQuickChart",
490
- rules: [de.emptyArray, {
491
- test: () => !0,
492
- message: [
493
- "👀 This is a swiss-knife component. If you need more control, consider using dedicated components:",
494
- "",
495
- "▶️ VueUiXy for time series line and/or bars",
496
- "",
497
- "▶️ VueUiDonut, VueUiWaffle, VueUiRings for proportions"
498
- ]
499
- }]
500
- });
501
- let { transitionEnabled: z } = be({
502
- config: () => R.value.transitions,
503
- dataset: () => M.dataset
504
- }), tr = h(() => R.value.debug), nr = h(() => R.value.useCursorPointer), B = w(null), rr = w({
505
- x: 0,
506
- y: 0
507
- }), V = w("pointer"), ir = w(!1), ar = h(() => ie({
508
- dafaultConfig: {
509
- backgroundColor: "#99999930",
510
- customPalette: ["#BABABA"],
511
- showDataLabels: !1,
512
- paletteStartIndex: 0,
513
- showUserOptions: !1,
514
- showTooltip: !1,
515
- xAxisLabel: "",
516
- yAxisLabel: "",
517
- xyAxisStroke: "#999999",
518
- xyGridStroke: "#99999950",
519
- xyPeriods: [],
520
- xyShowScale: !1,
521
- xyPaddingLeft: 6,
522
- xyPaddingBottom: 12,
523
- zoomXy: !1,
524
- zoomStartIndex: null,
525
- zoomEndIndex: null
526
- },
527
- userConfig: R.value.skeletonConfig ?? {}
528
- })), { loading: or, FINAL_DATASET: sr, manualLoading: cr } = he({
529
- ...He(M),
530
- FINAL_CONFIG: R,
531
- prepareConfig: mr,
532
- skeletonDataset: M.config?.skeletonDataset ?? [
533
- 1,
534
- 2,
535
- 3,
536
- 5,
537
- 8,
538
- 13,
539
- 21,
540
- 34,
541
- 55,
542
- 89
543
- ],
544
- skeletonConfig: ie({
545
- defaultConfig: R.value,
546
- userConfig: ar.value
547
- })
548
- }), { svgRef: H } = Ae({ config: { text: R.value.title } }), lr = h(() => R.value.showUserOptionsOnChartHover), ur = h(() => R.value.keepUserOptionsStateOnChartLeave), dr = w(!R.value.showUserOptionsOnChartHover), fr = w(!1);
549
- function pr(e = !1) {
550
- fr.value = e, lr.value && (dr.value = e);
551
- }
552
- function mr() {
553
- let e = _e({
554
- userConfig: M.config,
555
- defaultConfig: $e
556
- }), t = {}, n = e.theme;
557
- if (n) {
558
- if (!et.value(e)) tt(e), t = e;
559
- else {
560
- let i = _e({
561
- userConfig: je[n] || M.config,
562
- defaultConfig: e
563
- });
564
- t = {
565
- ..._e({
566
- userConfig: M.config,
567
- defaultConfig: i
568
- }),
569
- customPalette: e.customPalette.length ? e.customPalette : d[n] || r
570
- };
571
- }
572
- } else t = e;
573
- return t;
574
- }
575
- function hr(e) {
576
- let t = ne(e);
577
- return t?.tooltipPosition && delete t.tooltipPosition, JSON.stringify(t);
578
- }
579
- let gr = hr(M.config);
580
- Ue(() => M.config, (e, t) => {
581
- let n = hr(e), r = n !== gr;
582
- gr = n;
583
- let i = mr();
584
- if (!r) {
585
- R.value.tooltipPosition = i.tooltipPosition, Dr.value.showTooltip = R.value.showTooltip;
586
- return;
587
- }
588
- or.value || (R.value = i), K.value.width = R.value.width, K.value.height = R.value.height, dr.value = !R.value.showUserOptionsOnChartHover, Ar(), Dr.value.showTooltip = R.value.showTooltip;
589
- }, { deep: !0 }), Ue(() => M.dataset, (e) => {
590
- Array.isArray(e) && e.length > 0 && (cr.value = !1);
591
- }, { immediate: !0 });
592
- let _r = h(() => ce(R.value.customPalette)), U = Ge, vr = h(() => {
593
- let e = Ke({
594
- debug: tr.value,
595
- dataset: o(sr.value, [
596
- "serie",
597
- "series",
598
- "data",
599
- "value",
600
- "values",
601
- "num"
602
- ]),
603
- barLineSwitch: R.value.chartIsBarUnderDatasetLength
604
- });
605
- return !e && tr.value && console.error("VueUiQuickChart : Dataset is not processable"), e;
606
- }), W = w(vr.value), yr = h(() => !!W.value), G = h(() => W.value ? W.value.type : null), br = h(() => [A.BAR, A.LINE].includes(G.value)), xr = h(() => br.value && R.value.zoomXy && Number(W.value?.maxSeriesLength ?? 0) > 1);
607
- Ue(() => G.value, (e) => {
608
- e || l({
609
- componentName: "VueUiQuickChart",
610
- type: "dataset",
611
- debug: tr.value
612
- });
613
- }, { immediate: !0 });
614
- let { isPrinting: Sr, isImaging: Cr, generatePdf: wr, generateImage: Tr } = me({
615
- elementId: `${G.value}_${P.value}`,
616
- fileName: R.value.title || G.value,
617
- options: R.value.userOptionsPrint
618
- }), Er = h(() => R.value.showUserOptions && !R.value.title), K = w({
619
- width: R.value.width,
620
- height: R.value.height
621
- }), Dr = w({ showTooltip: R.value.showTooltip });
622
- Ue(R, () => {
623
- Dr.value = { showTooltip: R.value.showTooltip };
624
- }, { immediate: !0 });
625
- let Or = Ve(null), kr = Ve(null);
626
- Be(() => {
627
- Rn.value = !0, Xn(), er.start(), Ar(), Qn();
628
- });
629
- function Ar() {
630
- if (le(M.dataset) || (cr.value = R.value.loading), R.value.responsive) {
631
- let e = Te(() => {
632
- let { width: e, height: t } = Ee({
633
- chart: N.value,
634
- title: R.value.title ? kn.value : null,
635
- legend: R.value.showLegend ? An.value : null,
636
- slicer: xr.value ? jn.value : null,
637
- source: Pn.value,
638
- noTitle: Fn.value
639
- });
640
- requestAnimationFrame(() => {
641
- K.value.width = e, K.value.height = t, $n();
642
- });
643
- });
644
- Or.value && (kr.value && Or.value.unobserve(kr.value), Or.value.disconnect()), Or.value = new ResizeObserver(e), kr.value = N.value.parentNode, Or.value.observe(kr.value);
645
- }
646
- fi(), $n();
647
- }
648
- ze(() => {
649
- er.stop(), oi(), Ai(), Or.value && (kr.value && Or.value.unobserve(kr.value), Or.value.disconnect(), Or.value = null, kr.value = null);
650
- });
651
- let jr = h(() => {
652
- switch (G.value) {
653
- case A.LINE: return `0 0 ${K.value.width <= 0 ? 10 : K.value.width} ${K.value.height <= 0 ? 10 : K.value.height}`;
654
- case A.BAR: return `0 0 ${K.value.width <= 0 ? 10 : K.value.width} ${K.value.height <= 0 ? 10 : K.value.height}`;
655
- case A.DONUT: return `0 0 ${K.value.width <= 0 ? 10 : K.value.width} ${K.value.height <= 0 ? 10 : K.value.height}`;
656
- default: return `0 0 ${K.value.width <= 0 ? 10 : K.value.width} ${K.value.height <= 0 ? 10 : K.value.height}`;
657
- }
658
- });
659
- function Mr(e) {
660
- return [...e].map((e) => e.value).reduce((e, t) => e + t, 0);
661
- }
662
- function Nr(e) {
663
- return R.value.blurOnHover && ![null, void 0].includes(I.value) && I.value !== e ? `url(#blur_${P.value})` : "";
664
- }
665
- function Pr() {
666
- L.value.length ? L.value = [] : G.value === A.DONUT ? J.value.legend.forEach((e) => {
667
- L.value.push(e.id);
668
- }) : G.value === A.LINE ? Z.value.legend.forEach((e) => {
669
- L.value.push(e.id);
670
- }) : G.value === A.BAR && Q.value.legend.forEach((e) => {
671
- L.value.push(e.id);
672
- }), G.value === A.DONUT ? U("selectLegend", J.value.dataset) : G.value === A.LINE ? U("selectLegend", Z.value.dataset) : G.value === A.BAR && U("selectLegend", Q.value.dataset);
673
- }
674
- function Fr(e, t) {
675
- L.value.includes(e) ? L.value = L.value.filter((t) => t !== e) : L.value.length < t && L.value.push(e);
676
- }
677
- let Ir = w(null), Lr = w(null), Rr = w(!1);
678
- function zr(e, t) {
679
- Rr.value = !0;
680
- let n = e.value, r = vr.value.dataset.find((t, n) => e.id === `donut_${n}`).VALUE;
681
- if (L.value.includes(e.id)) {
682
- L.value = L.value.filter((t) => t !== e.id);
683
- function t() {
684
- n > r ? (Rr.value = !1, cancelAnimationFrame(Lr.value), W.value = {
685
- ...W.value,
686
- dataset: W.value.dataset.map((t, n) => e.id === `donut_${n}` ? {
687
- ...t,
688
- value: r,
689
- VALUE: r
690
- } : t)
691
- }, U("selectLegend", J.value.dataset)) : (n += r * .025, W.value = {
692
- ...W.value,
693
- dataset: W.value.dataset.map((t, r) => e.id === `donut_${r}` ? {
694
- ...t,
695
- value: n,
696
- VALUE: n
697
- } : t)
698
- }, Lr.value = requestAnimationFrame(t));
699
- }
700
- t();
701
- } else if (t.length > 1) {
702
- function t() {
703
- n < r / 100 ? (Rr.value = !1, cancelAnimationFrame(Ir.value), L.value.push(e.id), W.value = {
704
- ...W.value,
705
- dataset: W.value.dataset.map((t, n) => e.id === `donut_${n}` ? {
706
- ...t,
707
- value: 0,
708
- VALUE: 0
709
- } : t)
710
- }, U("selectLegend", J.value.dataset)) : (n /= 1.1, W.value = {
711
- ...W.value,
712
- dataset: W.value.dataset.map((t, r) => e.id === `donut_${r}` ? {
713
- ...t,
714
- value: n,
715
- VALUE: n
716
- } : t)
717
- }, Ir.value = requestAnimationFrame(t));
718
- }
719
- t();
720
- } else U("selectLegend", J.value.dataset);
721
- }
722
- let q = w(null);
723
- function Br(e) {
724
- q.value = e;
725
- }
726
- let Vr = h(() => R.value.donutThicknessRatio < .01 ? .01 : R.value.donutThicknessRatio > .4 ? .4 : R.value.donutThicknessRatio), J = h(() => {
727
- if (G.value !== A.DONUT) return null;
728
- let e = W.value.dataset.map((e, t) => ({
729
- ...e,
730
- value: e.VALUE || e.DATA || e.SERIE || e.VALUES || e.NUM || 0,
731
- name: e.NAME || e.DESCRIPTION || e.TITLE || e.LABEL || `Serie ${t}`,
732
- id: `donut_${t}`
733
- })).map((e, t) => ({
734
- ...e,
735
- color: e.COLOR ? ee(e.COLOR) : _r.value[t + R.value.paletteStartIndex] || r[t + R.value.paletteStartIndex] || r[(t + R.value.paletteStartIndex) % r.length],
736
- immutableValue: e.value
737
- }));
738
- function a(e, n) {
739
- return t({
740
- v: isNaN(e.value / Mr(n)) ? 0 : e.value / Mr(n) * 100,
741
- s: "%",
742
- r: R.value.dataLabelRoundingPercentage
743
- });
744
- }
745
- function o(e) {
746
- return e.proportion * 100 > R.value.donutHideLabelUnderPercentage;
747
- }
748
- function s(e, t) {
749
- let n = vr.value.dataset.find((t, n) => `donut_${n}` === e).VALUE;
750
- return Math.abs(String(Number(n.toFixed(0))).length - String(Number(t.toFixed(0))).length);
751
- }
752
- function c({ datapoint: r, seriesIndex: i, triggerMode: a = "pointer" }) {
753
- Mn.value = {
754
- datapoint: r,
755
- seriesIndex: i,
756
- config: R.value,
757
- dataset: e
758
- }, I.value = r.id, B.value = i, V.value = a;
759
- let o = R.value.tooltipCustomFormat;
760
- if (R.value.events.datapointEnter && R.value.events.datapointEnter({
761
- datapoint: r,
762
- seriesIndex: i
763
- }), n(o) && oe(() => o({
764
- datapoint: r,
765
- seriesIndex: i,
766
- series: e,
767
- config: R.value
768
- }))) Nn.value = o({
769
- datapoint: r,
770
- seriesIndex: i,
771
- series: e,
772
- config: R.value
773
- });
774
- else {
775
- let e = "";
776
- e += `<div style="width:100%;text-align:center;border-bottom:1px solid ${R.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${r.name}</div>`, e += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${r.color}"/></svg>`, e += `<b>${p(R.value.formatter, r.value, t({
777
- p: R.value.valuePrefix,
778
- v: r.value,
779
- s: R.value.valueSuffix,
780
- r: R.value.dataLabelRoundingValue
781
- }), {
782
- datapoint: r,
783
- seriesIndex: i
784
- })}</b>`, e += `<span>(${t({
785
- v: r.proportion * 100,
786
- s: "%",
787
- r: R.value.dataLabelRoundingPercentage
788
- })})</span></div>`, Nn.value = `<div>${e}</div>`;
789
- }
790
- F.value = !0;
791
- }
792
- function te({ datapoint: e, seriesIndex: t }) {
793
- R.value.events.datapointLeave && R.value.events.datapointLeave({
794
- datapoint: e,
795
- seriesIndex: t
796
- }), F.value = !1, I.value = null, q.value = null, B.value = null, V.value = "pointer";
797
- }
798
- function l({ datapoint: e, seriesIndex: t }) {
799
- R.value.events.datapointClick && R.value.events.datapointClick({
800
- datapoint: e,
801
- seriesIndex: t
802
- }), U("selectDatapoint", e);
803
- }
804
- let u = {
805
- centerX: K.value.width / 2,
806
- centerY: K.value.height / 2
807
- }, d = e.filter((e) => !L.value.includes(e.id)).map((e) => e.value || 0).reduce((e, t) => e + t, 0), ne = e.map((e, t) => ({
808
- ...e,
809
- proportion: (e.value || 0) / d,
810
- value: e.value || 0,
811
- absoluteValue: vr.value.dataset.find((t, n) => `donut_${n}` === e.id).VALUE,
812
- shape: "circle"
813
- })), f = K.value.width / 2, re = K.value.height / 2, ie = K.value.height * R.value.donutRadiusRatio;
814
- return {
815
- dataset: ne.filter((e) => !L.value.includes(e.id)),
816
- legend: ne,
817
- drawingArea: u,
818
- displayArcPercentage: a,
819
- isArcBigEnough: o,
820
- useTooltip: c,
821
- killTooltip: te,
822
- selectDatapoint: l,
823
- getSpaces: s,
824
- total: d,
825
- cx: f,
826
- cy: re,
827
- radius: ie,
828
- chart: i({ series: e.filter((e) => !L.value.includes(e.id)) }, f, re, ie, ie, 1.99999, 2, 1, 360, 105.25, K.value.height * Vr.value)
829
- };
830
- }), Y = w({
831
- start: 0,
832
- end: W.value.maxSeriesLength
833
- }), Hr = w({ ...Y.value }), Ur = w(null), Wr = w(!1), Gr = w(!1), Kr = w(!1), qr = w(!1), Jr = w(!1), Yr = w(null), Xr = w(null), Zr = w(null), Qr = w(!1), $r = w({
834
- time: 0,
835
- x: 0,
836
- y: 0,
837
- pointerType: null
838
- }), ei = {
839
- show: !1,
840
- selection: {
841
- fill: "#2D353C",
842
- stroke: "transparent",
843
- fillOpacity: .1,
844
- strokeOpacity: .5,
845
- strokeWidth: 1,
846
- strokeDasharray: 0
847
- }
848
- }, ti = h(() => {
849
- let e = R.value.dragToZoom ?? {};
850
- return {
851
- ...ei,
852
- ...e,
853
- selection: {
854
- ...ei.selection,
855
- ...e.selection ?? {}
856
- }
857
- };
858
- }), X = h(() => br.value && ti.value.show && Wr.value && si() > 1 && !or.value), ni = null, ri = {};
859
- function ii(e, t = Y.value) {
860
- if (!e || typeof e != "object") return null;
861
- let n = e.start !== void 0 && e.start !== null, r = e.end !== void 0 && e.end !== null;
862
- if (!n && !r) return null;
863
- let i = Number(n ? e.start : t.start), a = Number(r ? e.end : t.end);
864
- return !Number.isFinite(i) || !Number.isFinite(a) ? null : {
865
- start: i,
866
- end: a
867
- };
868
- }
869
- function ai(e) {
870
- let t = ii(e);
871
- t && U("update:zoomState", t);
872
- }
873
- function oi() {
874
- ni &&= (cancelAnimationFrame(ni), null), ri = {};
875
- }
876
- function si() {
877
- let e = Number(W.value?.maxSeriesLength);
878
- return Number.isFinite(e) ? Math.max(0, e) : 0;
879
- }
880
- function ci(e, t = Y.value.start) {
881
- let n = si();
882
- if (n <= 0) return 0;
883
- let r = Math.max(0, Math.min(Number(t) || 0, n - 1)), i = Number(e);
884
- return Number.isFinite(i) ? i > n ? n : i <= r ? Math.min(r + 1, n) : Math.max(0, i) : Math.min(r + 1, n);
885
- }
886
- function li() {
887
- let e = si();
888
- if (e <= 0) {
889
- Y.value = {
890
- start: 0,
891
- end: 0
892
- }, Hr.value = { ...Y.value }, Ur.value && Ur.value.setRangeValues(0, 0);
893
- return;
894
- }
895
- let t = Number(Y.value.start), n = Number(Y.value.end);
896
- Number.isFinite(t) || (t = 0), Number.isFinite(n) || (n = e), t = Math.max(0, Math.min(t, e - 1)), n = Math.max(t + 1, Math.min(n, e)), Y.value = {
897
- start: t,
898
- end: n
899
- }, Hr.value = {
900
- start: t,
901
- end: n
902
- }, Ur.value && Ur.value.setRangeValues(t, n);
903
- }
904
- function ui(e) {
905
- if (!br.value) return null;
906
- let t = ii(e);
907
- return t ? ((t.start !== Number(Y.value.start) || t.end !== Number(Y.value.end)) && (oi(), Y.value = {
908
- start: t.start,
909
- end: t.end
910
- }, Hr.value = { ...Y.value }, li(), $n()), {
911
- start: Number(Y.value.start),
912
- end: Number(Y.value.end)
913
- }) : null;
914
- }
915
- function di(e) {
916
- let t = ui(e);
917
- return t ? (ai(t), t) : null;
918
- }
919
- async function fi({ applyControlledZoom: e = !0 } = {}) {
920
- if (!Gr.value) {
921
- if (!br.value) {
922
- Wr.value = !1;
923
- return;
924
- }
925
- Gr.value = !0;
926
- try {
927
- await Re(), await Re();
928
- let { zoomStartIndex: t, zoomEndIndex: n } = R.value, r = si();
929
- if (r <= 0) {
930
- Y.value = {
931
- start: 0,
932
- end: 0
933
- }, Hr.value = { ...Y.value }, Wr.value = !1;
934
- return;
935
- }
936
- let i = t == null ? 0 : Number(t), a = n == null ? r : ci(Number(n) + 1, i);
937
- if (e && ii(M.zoomState)) {
938
- let e = ii(M.zoomState);
939
- i = e.start, a = e.end;
940
- }
941
- Kr.value = !0, Y.value = {
942
- start: i,
943
- end: a
944
- }, Hr.value = {
945
- start: i,
946
- end: a
947
- }, li(), Wr.value = !0, await Re(), Ur.value && Ur.value.setRangeValues(Y.value.start, Y.value.end);
948
- } finally {
949
- queueMicrotask(() => {
950
- Kr.value = !1;
951
- }), Gr.value = !1, $n();
952
- }
953
- }
954
- }
955
- async function pi({ applyControlledZoom: e = !1, publish: t = !1 } = {}) {
956
- oi(), await fi({ applyControlledZoom: e }), t && (ai({
957
- start: Number(Y.value.start),
958
- end: Number(Y.value.end)
959
- }), U("zoomReset"));
960
- }
961
- function mi(e) {
962
- ri = {
963
- ...ri,
964
- ...e
965
- }, ni && cancelAnimationFrame(ni), ni = requestAnimationFrame(() => {
966
- let e = {
967
- ...Y.value,
968
- ...ri
969
- };
970
- ri = {}, ni = null, Y.value = e, Hr.value = { ...e }, li(), ai({
971
- start: Number(Y.value.start),
972
- end: Number(Y.value.end)
973
- }), $n();
974
- });
975
- }
976
- function hi(e) {
977
- if (Gr.value || Kr.value) return;
978
- let t = Number(e);
979
- Number.isFinite(t) && (U("zoomStart", {
980
- index: t,
981
- isZoom: t !== 0
982
- }), (t !== Y.value.start || ri.end !== void 0) && mi({ start: t }));
983
- }
984
- function gi(e) {
985
- if (Gr.value || Kr.value) return;
986
- let t = ri.start === void 0 ? Y.value.start : ri.start, n = ci(Number(e), t);
987
- U("zoomEnd", {
988
- index: n,
989
- isZoom: n !== si()
990
- }), (n !== Y.value.end || ri.start !== void 0) && mi({ end: n });
991
- }
992
- Ue([
993
- () => M.zoomState,
994
- br,
995
- () => Number(W.value?.maxSeriesLength ?? 0)
996
- ], async ([e, t, n]) => {
997
- if (!(!t || n <= 0 || !e)) {
998
- if (!Wr.value) {
999
- await fi({ applyControlledZoom: !0 });
1000
- return;
1001
- }
1002
- ui(e);
1003
- }
1004
- }, {
1005
- deep: !0,
1006
- immediate: !0
1007
- }), Ue(vr, async (e) => {
1008
- if (!e) {
1009
- Wr.value = !1;
1010
- return;
1011
- }
1012
- let t = W.value?.type, n = Number(W.value?.maxSeriesLength ?? 0);
1013
- W.value = e;
1014
- let r = e.type, i = Number(e.maxSeriesLength ?? 0);
1015
- if (![A.BAR, A.LINE].includes(r)) {
1016
- oi(), Wr.value = !1, $n();
1017
- return;
1018
- }
1019
- t !== r || n !== i ? (oi(), Wr.value = !1, Y.value = {
1020
- start: 0,
1021
- end: i
1022
- }, Hr.value = { ...Y.value }, Ln.value += 1, await Re(), await fi({ applyControlledZoom: !0 })) : M.zoomState && ui(M.zoomState), $n();
1023
- }, { deep: !0 });
1024
- let _i = h(() => {
1025
- if (!R.value.zoomMinimap.show || G.value === A.DONUT) return [];
1026
- let e = [];
1027
- j(W.value.dataset) && (e = W.value.dataset), Ye(W.value.dataset) && (e = W.value.dataset.map((e, t) => ({
1028
- values: e.VALUE || e.DATA || e.SERIE || e.SERIES || e.VALUES || e.NUM || 0,
1029
- id: G.value === A.LINE ? `line_${t}` : `bar_${t}`
1030
- })).filter((e) => !L.value.includes(e.id)));
1031
- let t = j(e) ? e.length : Math.max(...e.map((e) => e.values.length)), n = [];
1032
- if (j(e)) n = e;
1033
- else for (let r = 0; r < t; r += 1) n.push(e.map((e) => e.values[r] || 0).reduce((e, t) => (e || 0) + (t || 0), 0));
1034
- let r = Math.min(...n);
1035
- return n.map((e) => e + (r < 0 ? Math.abs(r) : 0));
1036
- });
1037
- function vi() {
1038
- let e = 0;
1039
- return Hn.value && (e = Array.from(Hn.value.querySelectorAll("text")).reduce((e, t) => {
1040
- let n = t.getComputedTextLength();
1041
- return n > e ? n : e;
1042
- }, 0)), e + 4;
1043
- }
1044
- let yi = w(0), bi = Te((e) => {
1045
- yi.value = e;
1046
- }, 100);
1047
- We((e) => {
1048
- let t = Vn.value;
1049
- if (!t) return;
1050
- let n = new ResizeObserver((e) => {
1051
- bi(e[0].contentRect.height);
1052
- });
1053
- n.observe(t), e(() => n.disconnect());
1054
- }), ze(() => {
1055
- yi.value = 0;
1056
- });
1057
- let xi = h(() => {
1058
- let e = 0;
1059
- return Vn.value && (e = yi.value), 0 + e;
1060
- }), Z = h(() => {
1061
- if (G.value !== A.LINE) return null;
1062
- qn.value;
1063
- let e = {
1064
- height: K.value.height,
1065
- width: K.value.width
1066
- }, i = vi();
1067
- if (Vn.value) {
1068
- let e = Vn.value.getBBox().x;
1069
- e < 0 && (i += Math.abs(e));
1070
- }
1071
- let a = {
1072
- left: i + R.value.xyPaddingLeft,
1073
- top: R.value.xyPaddingTop,
1074
- right: e.width - R.value.xyPaddingRight,
1075
- bottom: e.height - R.value.xyPaddingBottom - xi.value,
1076
- width: Math.max(10, e.width - R.value.xyPaddingLeft - R.value.xyPaddingRight - i),
1077
- height: Math.max(10, e.height - R.value.xyPaddingTop - R.value.xyPaddingBottom - xi.value)
1078
- }, o = [];
1079
- j(W.value.dataset) && (o = [{
1080
- values: W.value.dataset.slice(Y.value.start, Y.value.end),
1081
- absoluteValues: W.value.dataset,
1082
- absoluteIndices: W.value.dataset.map((e, t) => t).slice(Y.value.start, Y.value.end),
1083
- name: R.value.title,
1084
- color: _r.value[R.value.paletteStartIndex] || r[R.value.paletteStartIndex],
1085
- id: "line_0"
1086
- }]), Ye(W.value.dataset) && (o = W.value.dataset.map((e, t) => ({
1087
- ...e,
1088
- values: e.VALUE || e.DATA || e.SERIE || e.SERIES || e.VALUES || e.NUM || 0,
1089
- name: e.NAME || e.DESCRIPTION || e.TITLE || e.LABEL || `Serie ${t}`,
1090
- id: `line_${t}`
1091
- })).map((e, t) => ({
1092
- ...e,
1093
- color: e.COLOR ? ee(e.COLOR) : _r.value[t + R.value.paletteStartIndex] || r[t + R.value.paletteStartIndex] || r[(t + R.value.paletteStartIndex) % r.length],
1094
- values: e.values.slice(Y.value.start, Y.value.end),
1095
- absoluteValues: e.values,
1096
- absoluteIndices: e.values.map((e, t) => t).slice(Y.value.start, Y.value.end)
1097
- })));
1098
- let s = {
1099
- max: Math.max(...o.filter((e) => !L.value.includes(e.id)).flatMap((e) => e.values)),
1100
- min: Math.min(...o.filter((e) => !L.value.includes(e.id)).flatMap((e) => e.values)),
1101
- maxSeries: Math.max(...o.map((e) => e.values.length))
1102
- }, c = s.max === s.min ? te(Math.min(s.min, 0), s.min === 0 ? 1 : Math.max(s.min, 0), R.value.xyScaleSegments) : te(s.min < 0 ? s.min : 0, s.max < 0 ? 0 : s.max, R.value.xyScaleSegments), l = s.min < 0 ? Math.abs(s.min) : 0, u = s.max < 0 ? a.top : a.bottom - l / (c.max + l) * a.height, d = a.width / s.maxSeries, ne = c.ticks.map((e) => ({
1103
- y: a.bottom - a.height * ((e + l) / (c.max + l)),
1104
- x: a.left - 8,
1105
- value: e
1106
- })), f = o.map((e, t) => ({
1107
- ...e,
1108
- shape: "circle",
1109
- coordinates: e.values.map((e, t) => ({
1110
- x: a.left + d * (t + 1) - d / 2,
1111
- y: a.bottom - (e + l) / (c.max + l) * a.height,
1112
- value: e
1113
- }))
1114
- })).map((e) => {
1115
- let t = [];
1116
- return e.coordinates.forEach((e) => {
1117
- t.push(`${e.x},${e.y} `);
1118
- }), {
1119
- ...e,
1120
- linePath: t.join(" ")
1121
- };
1122
- });
1123
- function re(e) {
1124
- return o.map((t) => ({
1125
- ...t,
1126
- value: t.values[e],
1127
- absoluteIndex: t.absoluteIndices[e]
1128
- })).filter((e) => !L.value.includes(e.id));
1129
- }
1130
- function ie(e, r = "pointer") {
1131
- if (qr.value && r === "pointer") return;
1132
- I.value = e, q.value = e, B.value = e, V.value = r;
1133
- let i = re(e);
1134
- Mn.value = {
1135
- datapoint: i,
1136
- seriesIndex: e,
1137
- config: R.value,
1138
- dataset: o
1139
- };
1140
- let a = R.value.tooltipCustomFormat;
1141
- if (R.value.events.datapointEnter && R.value.events.datapointEnter({
1142
- datapoint: i,
1143
- seriesIndex: e + Y.value.start
1144
- }), n(a) && oe(() => a({
1145
- datapoint: i,
1146
- seriesIndex: e,
1147
- series: o,
1148
- config: R.value
1149
- }))) Nn.value = a({
1150
- datapoint: i,
1151
- seriesIndex: e,
1152
- series: o,
1153
- config: R.value
1154
- });
1155
- else {
1156
- let e = "";
1157
- $.value[i[0].absoluteIndex] && (e += `<div style="border-bottom:1px solid ${R.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${$.value[i[0].absoluteIndex].text}</div>`), i.forEach((n, r) => {
1158
- e += `
1159
- <div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
1160
- <svg viewBox="0 0 12 12" height="14" width="12"><circle cx="6" cy="6" r="6" stroke="none" fill="${n.color}"/></svg>
1161
- <span>${n.name}:</span>
1162
- <b>${p(R.value.formatter, n.value, t({
1163
- p: R.value.valuePrefix,
1164
- v: n.value,
1165
- s: R.value.valueSuffix,
1166
- r: R.value.dataLabelRoundingValue
1167
- }), {
1168
- datapoint: n,
1169
- seriesIndex: r
1170
- })}
1171
- </b>
1172
- </div>
1173
- `;
1174
- }), Nn.value = e;
1175
- }
1176
- F.value = !0;
1177
- }
1178
- function ae(e) {
1179
- let t = re(e);
1180
- R.value.events.datapointLeave && R.value.events.datapointLeave({
1181
- datapoint: t,
1182
- seriesIndex: e + Y.value.start
1183
- }), I.value = null, q.value = null, F.value = !1, B.value = null, V.value = "pointer";
1184
- }
1185
- function se(e) {
1186
- let t = re(e);
1187
- R.value.events.datapointClick && R.value.events.datapointClick({
1188
- datapoint: t,
1189
- seriesIndex: e + Y.value.start
1190
- }), U("selectDatapoint", t);
1191
- }
1192
- return {
1193
- absoluteZero: u,
1194
- dataset: f.filter((e) => !L.value.includes(e.id)),
1195
- legend: f,
1196
- drawingArea: a,
1197
- extremes: s,
1198
- slotSize: d,
1199
- yLabels: ne,
1200
- useTooltip: ie,
1201
- killTooltip: ae,
1202
- selectDatapoint: se
1203
- };
1204
- }), Q = h(() => {
1205
- if (G.value !== A.BAR) return null;
1206
- qn.value;
1207
- let e = {
1208
- height: K.value.height,
1209
- width: K.value.width
1210
- }, i = vi();
1211
- if (Vn.value) {
1212
- let e = Vn.value.getBBox().x;
1213
- e < 0 && (i += Math.abs(e));
1214
- }
1215
- let a = {
1216
- left: i + R.value.xyPaddingLeft,
1217
- top: R.value.xyPaddingTop,
1218
- right: e.width - R.value.xyPaddingRight,
1219
- bottom: e.height - R.value.xyPaddingBottom - xi.value,
1220
- width: Math.max(10, e.width - R.value.xyPaddingLeft - R.value.xyPaddingRight - i),
1221
- height: Math.max(10, e.height - R.value.xyPaddingTop - R.value.xyPaddingBottom - xi.value)
1222
- }, o = [];
1223
- j(W.value.dataset) && (o = [{
1224
- values: W.value.dataset.slice(Y.value.start, Y.value.end),
1225
- absoluteValues: W.value.dataset,
1226
- absoluteIndices: W.value.dataset.map((e, t) => t).slice(Y.value.start, Y.value.end),
1227
- name: R.value.title,
1228
- color: _r.value[R.value.paletteStartIndex] || r[R.value.paletteStartIndex],
1229
- id: "bar_0"
1230
- }]), Ye(W.value.dataset) && (o = W.value.dataset.map((e, t) => ({
1231
- ...e,
1232
- values: e.VALUE || e.DATA || e.SERIE || e.SERIES || e.VALUES || e.NUM || 0,
1233
- name: e.NAME || e.DESCRIPTION || e.TITLE || e.LABEL || `Serie ${t}`,
1234
- id: `bar_${t}`
1235
- })).map((e, t) => ({
1236
- ...e,
1237
- color: e.COLOR ? ee(e.COLOR) : _r.value[t + R.value.paletteStartIndex] || r[t + R.value.paletteStartIndex] || r[(t + R.value.paletteStartIndex) % r.length],
1238
- values: e.values.slice(Y.value.start, Y.value.end),
1239
- absoluteValues: e.values,
1240
- absoluteIndices: e.values.map((e, t) => t).slice(Y.value.start, Y.value.end)
1241
- })));
1242
- let s = {
1243
- max: Math.max(...o.filter((e) => !L.value.includes(e.id)).flatMap((e) => e.values)) < 0 ? 0 : Math.max(...o.filter((e) => !L.value.includes(e.id)).flatMap((e) => e.values)) ?? 1,
1244
- min: Math.min(...o.filter((e) => !L.value.includes(e.id)).flatMap((e) => e.values)) ?? 0,
1245
- maxSeries: Math.max(...o.filter((e) => !L.value.includes(e.id)).map((e) => e.values.length)) ?? 0
1246
- }, c = s.min === s.max ? te(Math.min(s.min, 0), s.min === 0 ? 1 : Math.max(s.min, 0), R.value.xyScaleSegments) : te(s.min < 0 ? s.min : 0, s.max, R.value.xyScaleSegments), l = c.min < 0 ? Math.abs(c.min) : 0, u = a.bottom - l / (c.max + l) * a.height, d = a.width / s.maxSeries, ne = c.ticks.map((e) => ({
1247
- y: a.bottom - a.height * ((e + l) / (c.max + l)),
1248
- x: a.left - 8,
1249
- value: e
1250
- })), f = o.map((e, t) => ({
1251
- ...e,
1252
- shape: "square",
1253
- coordinates: e.values.map((e, n) => {
1254
- let r = (e + l) / (s.max + l) * a.height, i = Math.abs(e) / Math.abs(s.min) * (a.height - u), ee = l / (s.max + l) * a.height, c = d / o.filter((e) => !L.value.includes(e.id)).length - R.value.barGap / o.filter((e) => !L.value.includes(e.id)).length;
1255
- return {
1256
- x: a.left + d * n + c * t + R.value.barGap / 2,
1257
- y: e > 0 ? a.bottom - r : u,
1258
- height: e > 0 ? r - ee : i,
1259
- value: e,
1260
- width: c
1261
- };
1262
- })
1263
- })), re = o.filter((e) => !L.value.includes(e.id)).map((e, t) => ({
1264
- ...e,
1265
- coordinates: e.values.map((e, n) => {
1266
- let r = (e + l) / (s.max + l) * a.height, i = Math.abs(e) / (s.max + l) * a.height, ee = l / (s.max + l) * a.height, c = d / o.filter((e) => !L.value.includes(e.id)).length - R.value.barGap / o.filter((e) => !L.value.includes(e.id)).length;
1267
- return {
1268
- x: a.left + d * n + c * t + R.value.barGap / 2,
1269
- y: e > 0 ? a.bottom - r : u,
1270
- height: e > 0 ? r - ee : i,
1271
- value: e,
1272
- width: c
1273
- };
1274
- })
1275
- }));
1276
- function ie(e) {
1277
- return o.map((t) => ({
1278
- ...t,
1279
- value: t.values[e],
1280
- absoluteIndex: t.absoluteIndices[e]
1281
- })).filter((e) => !L.value.includes(e.id));
1282
- }
1283
- function ae(e, r = "pointer") {
1284
- if (qr.value && r === "pointer") return;
1285
- I.value = e, q.value = e, B.value = e, V.value = r;
1286
- let i = ie(e);
1287
- Mn.value = {
1288
- datapoint: i,
1289
- seriesIndex: e,
1290
- config: R.value,
1291
- dataset: o
1292
- };
1293
- let a = R.value.tooltipCustomFormat;
1294
- if (R.value.events.datapointEnter && R.value.events.datapointEnter({
1295
- datapoint: i,
1296
- seriesIndex: e + Y.value.start
1297
- }), n(a) && oe(() => a({
1298
- datapoint: i,
1299
- seriesIndex: e,
1300
- series: o,
1301
- config: R.value
1302
- }))) Nn.value = a({
1303
- point: i,
1304
- seriesIndex: e,
1305
- series: o,
1306
- config: R.value
1307
- });
1308
- else {
1309
- let e = "";
1310
- $.value[i[0].absoluteIndex] && (e += `<div style="border-bottom:1px solid ${R.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${$.value[i[0].absoluteIndex].text}</div>`), i.forEach((n, r) => {
1311
- e += `
1312
- <div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
1313
- <svg viewBox="0 0 12 12" height="14" width="12"><rect x=0 y="0" width="12" height="12" rx="1" stroke="none" fill="${n.color}"/></svg>
1314
- <span>${n.name}:</span>
1315
- <b>${p(R.value.formatter, n.value, t({
1316
- p: R.value.valuePrefix,
1317
- v: n.value,
1318
- s: R.value.valueSuffix,
1319
- r: R.value.dataLabelRoundingValue
1320
- }), {
1321
- datapoint: n,
1322
- seriesIndex: r
1323
- })}
1324
- </b>
1325
- </div>
1326
- `;
1327
- }), Nn.value = e;
1328
- }
1329
- F.value = !0;
1330
- }
1331
- function se(e) {
1332
- let t = ie(e);
1333
- R.value.events.datapointLeave && R.value.events.datapointLeave({
1334
- datapoint: t,
1335
- seriesIndex: e + Y.value.start
1336
- }), F.value = !1, I.value = null, q.value = null, B.value = null, V.value = "pointer";
1337
- }
1338
- function ce(e) {
1339
- let t = ie(e);
1340
- R.value.events.datapointClick && R.value.events.datapointClick({
1341
- datapoint: t,
1342
- seriesIndex: e + Y.value.start
1343
- }), U("selectDatapoint", t);
1344
- }
1345
- return {
1346
- absoluteZero: u,
1347
- dataset: re.filter((e) => !L.value.includes(e.id)),
1348
- absoluteDataset: re,
1349
- legend: f,
1350
- drawingArea: a,
1351
- extremes: s,
1352
- slotSize: d,
1353
- yLabels: ne,
1354
- useTooltip: ae,
1355
- killTooltip: se,
1356
- selectDatapoint: ce
1357
- };
1358
- }), Si = h(() => G.value === A.LINE ? Z.value?.drawingArea ?? null : G.value === A.BAR ? Q.value?.drawingArea ?? null : null), Ci = h(() => G.value === A.LINE ? Number(Z.value?.slotSize ?? 0) : G.value === A.BAR ? Number(Q.value?.slotSize ?? 0) : 0), wi = h(() => G.value === A.LINE ? Number(Z.value?.extremes?.maxSeries ?? 0) : G.value === A.BAR ? Number(Q.value?.extremes?.maxSeries ?? 0) : 0), Ti = h(() => {
1359
- let e = Si.value;
1360
- return !e || !qr.value || Yr.value == null || Xr.value == null ? null : {
1361
- x: Math.min(Yr.value, Xr.value),
1362
- y: e.top,
1363
- width: Math.abs(Xr.value - Yr.value),
1364
- height: e.height
1365
- };
1366
- }), Ei = h(() => !Wr.value || !br.value ? !1 : Number(Y.value.start) !== 0 || Number(Y.value.end) !== Number(si()));
1367
- function Di(e) {
1368
- let t = H.value;
1369
- if (!t) return null;
1370
- if (t.createSVGPoint && t.getScreenCTM) {
1371
- let n = t.createSVGPoint();
1372
- n.x = e.clientX, n.y = e.clientY;
1373
- let r = t.getScreenCTM();
1374
- if (r) {
1375
- let e = n.matrixTransform(r.inverse());
1376
- return {
1377
- x: e.x,
1378
- y: e.y
1379
- };
1380
- }
1381
- }
1382
- let n = t.getBoundingClientRect(), r = t.viewBox?.baseVal || {
1383
- x: 0,
1384
- y: 0,
1385
- width: n.width,
1386
- height: n.height
1387
- }, i = Math.min(n.width / r.width, n.height / r.height);
1388
- if (!Number.isFinite(i) || i <= 0) return null;
1389
- let a = r.width * i, o = r.height * i, s = (n.width - a) / 2, ee = (n.height - o) / 2;
1390
- return {
1391
- x: (e.clientX - n.left - s) / i + r.x,
1392
- y: (e.clientY - n.top - ee) / i + r.y
1393
- };
1394
- }
1395
- function Oi(e) {
1396
- let t = Si.value;
1397
- return t ? Math.min(Math.max(e, t.left), t.right) : e;
1398
- }
1399
- function ki() {
1400
- B.value = null, V.value = "pointer", F.value = !1, I.value = null, q.value = null;
1401
- }
1402
- function Ai(e) {
1403
- let t = e?.pointerId == null ? Zr.value : e.pointerId;
1404
- t != null && H.value?.hasPointerCapture?.(t) && H.value.releasePointerCapture(t), qr.value = !1, Yr.value = null, Xr.value = null, Zr.value = null;
1405
- }
1406
- function ji() {
1407
- Qr.value = !0, setTimeout(() => {
1408
- Qr.value = !1;
1409
- }, 0);
1410
- }
1411
- function Mi(e) {
1412
- Qr.value && (Qr.value = !1, e.preventDefault(), e.stopPropagation());
1413
- }
1414
- function Ni(e) {
1415
- if (!X.value || !Ei.value || !e) return !1;
1416
- let t = Date.now(), n = e.pointerType || "mouse", r = $r.value, i = n === "touch" ? 450 : 350, a = n === "touch" ? 28 : 10, o = Math.hypot(e.clientX - r.x, e.clientY - r.y);
1417
- return r.time > 0 && r.pointerType === n && t - r.time <= i && o <= a ? ($r.value = {
1418
- time: 0,
1419
- x: 0,
1420
- y: 0,
1421
- pointerType: null
1422
- }, ji(), Ai(e), ki(), pi({
1423
- applyControlledZoom: !1,
1424
- publish: !0
1425
- }), !0) : ($r.value = {
1426
- time: t,
1427
- x: e.clientX,
1428
- y: e.clientY,
1429
- pointerType: n
1430
- }, !1);
1431
- }
1432
- function Pi(e) {
1433
- let t = Si.value, n = Ci.value, r = wi.value;
1434
- if (!t || r <= 0 || !Number.isFinite(n) || n <= 0) return null;
1435
- let i = Math.floor((Oi(e) - t.left) / n);
1436
- return Math.max(0, Math.min(r - 1, i));
1437
- }
1438
- function Fi(e, t) {
1439
- let n = Pi(e), r = Pi(t);
1440
- if (n == null || r == null) return null;
1441
- let i = Math.min(n, r), a = Math.max(n, r);
1442
- return a <= i ? null : {
1443
- start: Number(Y.value.start) + i,
1444
- end: Number(Y.value.start) + a + 1
1445
- };
1446
- }
1447
- function Ii(e) {
1448
- let t = di(e);
1449
- return t ? (U("zoomStart", {
1450
- index: t.start,
1451
- isZoom: t.start !== 0
1452
- }), U("zoomEnd", {
1453
- index: t.end,
1454
- isZoom: t.end !== si()
1455
- }), t) : null;
1456
- }
1457
- function Li(e) {
1458
- if (!X.value || Ji.value || e.button !== void 0 && e.button !== 0 || Zr.value != null && e.pointerId !== Zr.value) return;
1459
- let t = Si.value, n = Di(e);
1460
- if (!t || !n || n.x < t.left || n.x > t.right || n.y < t.top || n.y > t.bottom || wi.value <= 1) return;
1461
- Jr.value = !0, H.value?.focus?.({ preventScroll: !0 }), ki();
1462
- let r = Oi(n.x);
1463
- Zr.value = e.pointerId, qr.value = !0, Yr.value = r, Xr.value = r;
1464
- }
1465
- function Ri(e) {
1466
- if (!X.value || !qr.value || Zr.value != null && e.pointerId !== Zr.value) return;
1467
- let t = Di(e);
1468
- t && (Xr.value = Oi(t.x), ki(), Yr.value != null && Math.abs(Xr.value - Yr.value) >= 2 && !H.value?.hasPointerCapture?.(e.pointerId) && H.value?.setPointerCapture?.(e.pointerId));
1469
- }
1470
- function zi(e) {
1471
- if (!X.value || !qr.value || Zr.value != null && e.pointerId !== Zr.value) return;
1472
- let t = Di(e);
1473
- t && (Xr.value = Oi(t.x));
1474
- let n = Yr.value, r = Xr.value, i = Si.value;
1475
- if ((n == null || r == null ? 0 : Math.abs(r - n)) < Math.max(4, Number(i?.width ?? 0) * .01)) {
1476
- if (Ni(e)) return;
1477
- Ai(e);
1478
- return;
1479
- }
1480
- let a = Fi(Math.min(n, r), Math.max(n, r));
1481
- if (!a) {
1482
- Ai(e);
1483
- return;
1484
- }
1485
- Ai(e), Ii(a) && ($r.value = {
1486
- time: 0,
1487
- x: 0,
1488
- y: 0,
1489
- pointerType: null
1490
- }, ki(), ji());
1491
- }
1492
- let Bi = h(() => {
1493
- let e = Si.value, t = K.value.width;
1494
- return !e || t <= 0 || !R.value.zoomXyAutoFit ? null : e.left / t;
1495
- }), Vi = h(() => {
1496
- let e = Si.value, t = K.value.width;
1497
- return !e || t <= 0 || !R.value.zoomXyAutoFit ? null : (t - e.right) / t;
1498
- }), Hi = h(() => {
1499
- if (G.value === A.LINE) return Z.value.legend.map((e) => (Math.min(...e.absoluteValues.map((e) => e ?? 0)), {
1500
- ...e,
1501
- isVisible: !L.value.includes(e.id),
1502
- type: "line",
1503
- series: e.absoluteValues
1504
- }));
1505
- if (G.value === A.BAR) return Q.value.legend.map((e) => (Math.min(...e.absoluteValues.map((e) => e ?? 0)), {
1506
- ...e,
1507
- isVisible: !L.value.includes(e.id),
1508
- type: "bar",
1509
- series: e.absoluteValues
1510
- }));
1511
- }), $ = w([]), Ui = 0;
1512
- We(() => {
1513
- let e = ++Ui;
1514
- (async () => {
1515
- let t = await fe({
1516
- values: R.value.xyPeriods,
1517
- maxDatapoints: W.value.maxSeriesLength,
1518
- formatter: R.value.datetimeFormatter,
1519
- start: Y.value.start,
1520
- end: Y.value.end
1521
- });
1522
- e === Ui && ($.value = t);
1523
- })();
1524
- });
1525
- let Wi = h(() => {
1526
- let e = R.value.xyPeriodsModulo;
1527
- return R.value.xyPeriods.length ? Math.min(e, [...new Set($.value.map((e) => e.text))].length) : e;
1528
- }), Gi = w(!1);
1529
- function Ki(e) {
1530
- Gi.value = e, In.value += 1;
1531
- }
1532
- function qi() {
1533
- Dr.value.showTooltip = !Dr.value.showTooltip;
1534
- }
1535
- let Ji = w(!1);
1536
- function Yi() {
1537
- Ji.value = !Ji.value;
1538
- }
1539
- async function Xi({ scale: e = 2 } = {}) {
1540
- if (!N.value) return;
1541
- let { width: t, height: n } = N.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Ce({
1542
- domElement: N.value,
1543
- base64: !0,
1544
- img: !0,
1545
- scale: e
1546
- });
1547
- return {
1548
- imageUri: i,
1549
- base64: a,
1550
- title: R.value.title,
1551
- width: t,
1552
- height: n,
1553
- aspectRatio: r
1554
- };
1555
- }
1556
- let Zi = h(() => K.value.width), Qi = h(() => K.value.height);
1557
- Se({
1558
- timeLabelsEls: Vn,
1559
- timeLabels: $,
1560
- slicer: Y,
1561
- configRef: R,
1562
- rotationPath: ["xyPeriodLabelsRotation"],
1563
- autoRotatePath: ["xyPeriodLabelsAutoRotate", "enable"],
1564
- isAutoSize: !1,
1565
- rotation: R.value.xyPeriodLabelsAutoRotate.angle,
1566
- height: Qi.value,
1567
- width: Zi.value
1568
- });
1569
- let $i = h(() => R.value.backgroundColor), ea = h(() => G.value === A.DONUT ? J.value.legend : G.value === A.LINE ? Z.value.legend : Q.value.legend), ta = h(() => ({
1570
- show: R.value.showLegend,
1571
- bold: !1,
1572
- backgroundColor: R.value.backgroundColor,
1573
- color: R.value.color,
1574
- fontSize: R.value.legendFontSize,
1575
- position: R.value.legendPosition
1576
- })), na = h(() => ({
1577
- text: R.value.title,
1578
- color: R.value.color,
1579
- fontSize: R.value.titleFontSize,
1580
- bold: R.value.titleBold,
1581
- textAlign: R.value.titleTextAlign,
1582
- subtitle: { text: "" }
1583
- })), { generateSvg: ra, onGenerateImage: ia } = ye({
1584
- svg: H,
1585
- title: na,
1586
- legend: ta,
1587
- legendItems: ea,
1588
- backgroundColor: $i,
1589
- getSvgCallback: () => R.value.userOptionsCallbacks.svg,
1590
- generateImage: Tr
1591
- });
1592
- async function aa() {
1593
- if (U("copyAlt", {
1594
- config: R.value,
1595
- dataset: {
1596
- line: Z.value,
1597
- bar: Q.value,
1598
- donut: J.value
1599
- }
1600
- }), !R.value.userOptionsCallbacks.altCopy) {
1601
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
1602
- return;
1603
- }
1604
- await Promise.resolve(R.value.userOptionsCallbacks.altCopy({
1605
- config: R.value,
1606
- dataset: {
1607
- line: Z.value,
1608
- bar: Q.value,
1609
- donut: J.value
1610
- }
1611
- }));
1612
- }
1613
- function oa(e, t) {
1614
- (e.key === "Enter" || e.key === " ") && (e.preventDefault(), t());
1615
- }
1616
- let sa = h(() => G.value === A.DONUT ? J.value?.chart?.length ?? 0 : G.value === A.LINE ? Z.value?.extremes?.maxSeries ?? 0 : G.value === A.BAR ? Q.value?.extremes?.maxSeries ?? 0 : 0);
1617
- function ca() {
1618
- B.value = null, ir.value = !0;
1619
- }
1620
- function la() {
1621
- Jr.value = !1, B.value = null, V.value = "pointer", F.value = !1, I.value = null, q.value = null, ir.value = !1;
1622
- }
1623
- function ua(e) {
1624
- if (!H.value || Ji.value || document.activeElement !== H.value || (Jr.value = !1, !sa.value)) return;
1625
- let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
1626
- if (!t && !n && !r && !i) return;
1627
- if (e.preventDefault(), e.stopPropagation(), i) {
1628
- if (X.value && (Ei.value || qr.value)) {
1629
- Ai(), ki(), pi({
1630
- applyControlledZoom: !1,
1631
- publish: !0
1632
- });
1633
- return;
1634
- }
1635
- B.value = null, V.value = "pointer", F.value = !1, I.value = null, q.value = null;
1636
- return;
1637
- }
1638
- if (r) {
1639
- if (B.value === null) return;
1640
- if (G.value === A.DONUT) {
1641
- let e = J.value?.chart?.[B.value];
1642
- if (!e) return;
1643
- J.value.selectDatapoint({
1644
- datapoint: e,
1645
- seriesIndex: B.value
1646
- });
1647
- return;
1648
- }
1649
- if (G.value === A.LINE) {
1650
- Z.value?.selectDatapoint(B.value);
1651
- return;
1652
- }
1653
- if (G.value === A.BAR) {
1654
- Q.value?.selectDatapoint(B.value);
1655
- return;
1656
- }
1657
- return;
1658
- }
1659
- let a = B.value, o = q.value, s = a !== null && a >= 0 && a < sa.value, ee = o !== null && o >= 0 && o < sa.value;
1660
- if (s ? n ? (a += 1, a >= sa.value && (a = 0)) : t && (--a, a < 0 && (a = sa.value - 1)) : ee ? (a = n ? o + 1 : o - 1, a >= sa.value && (a = 0), a < 0 && (a = sa.value - 1)) : a = n ? 0 : sa.value - 1, G.value === A.DONUT) {
1661
- let e = J.value?.chart?.[a];
1662
- if (!e) return;
1663
- da(a), J.value.useTooltip({
1664
- datapoint: e,
1665
- seriesIndex: a,
1666
- triggerMode: "keyboard"
1667
- });
1668
- return;
1669
- }
1670
- if (G.value === A.LINE) {
1671
- da(a), Z.value?.useTooltip(a, "keyboard");
1672
- return;
1673
- }
1674
- G.value === A.BAR && (da(a), Q.value?.useTooltip(a, "keyboard"));
1675
- }
1676
- function da(e) {
1677
- if (!Number.isFinite(e) || !H.value) return;
1678
- let t = 0, n = 0;
1679
- if (G.value === A.DONUT) {
1680
- let r = J.value?.chart?.[e];
1681
- if (!r) return;
1682
- t = f(r, !0).x, n = ae(r);
1683
- }
1684
- if (G.value === A.LINE) {
1685
- let r = Z.value?.drawingArea, i = Z.value?.slotSize;
1686
- if (!r || !i) return;
1687
- t = r.left + i * (e + 1) - i / 2, n = r.top + r.height / 2;
1688
- }
1689
- if (G.value === A.BAR) {
1690
- let r = Q.value?.drawingArea, i = Q.value?.slotSize;
1691
- if (!r || !i) return;
1692
- t = r.left + i * (e + 1) - i / 2, n = r.top + r.height / 2;
1693
- }
1694
- let r = H.value.getBoundingClientRect();
1695
- rr.value = {
1696
- x: r.left + t / K.value.width * r.width,
1697
- y: r.top + n / K.value.height * r.height
1698
- };
1699
- }
1700
- let fa = h(() => {
1701
- if (G.value === A.DONUT) return {
1702
- headers: [
1703
- "Series",
1704
- "Value",
1705
- "Percentage"
1706
- ],
1707
- rows: (J.value?.dataset ?? []).map((e) => {
1708
- let n = J.value?.total ? t({
1709
- v: e.value / J.value.total * 100,
1710
- s: "%",
1711
- r: R.value.dataLabelRoundingPercentage
1712
- }) : "0%";
1713
- return [
1714
- e.name,
1715
- p(R.value.formatter, e.value, t({
1716
- p: R.value.valuePrefix,
1717
- v: e.value,
1718
- s: R.value.valueSuffix,
1719
- r: R.value.dataLabelRoundingValue
1720
- })),
1721
- n
1722
- ];
1723
- })
1724
- };
1725
- if (G.value === A.LINE || G.value === A.BAR) {
1726
- let e = G.value === A.LINE ? Z.value?.dataset ?? [] : Q.value?.dataset ?? [], n = G.value === A.LINE ? Z.value?.extremes?.maxSeries ?? 0 : Q.value?.extremes?.maxSeries ?? 0;
1727
- return {
1728
- headers: ["Index", ...e.map((e) => e.name)],
1729
- rows: Array.from({ length: n }, (n, r) => [$.value?.[r + Y.value.start]?.text ?? String(r + Y.value.start), ...e.map((e) => {
1730
- let n = e.values?.[r];
1731
- return p(R.value.formatter, n, t({
1732
- p: R.value.valuePrefix,
1733
- v: n,
1734
- s: R.value.valueSuffix,
1735
- r: R.value.dataLabelRoundingValue
1736
- }));
1737
- })])
1738
- };
1739
- }
1740
- return {
1741
- headers: [],
1742
- rows: []
1743
- };
1744
- });
1745
- return we({
1746
- getImage: Xi,
1747
- generatePdf: wr,
1748
- generateImage: Tr,
1749
- generateSvg: ra,
1750
- toggleTooltip: qi,
1751
- toggleAnnotator: Yi,
1752
- toggleFullscreen: Ki,
1753
- copyAlt: aa,
1754
- resetZoom: () => pi({
1755
- applyControlledZoom: !1,
1756
- publish: !0
1757
- }),
1758
- setZoomState: di
1759
- }), (e, r) => yr.value ? (C(), _("div", {
1760
- key: 0,
1761
- id: `${G.value}_${P.value}`,
1762
- ref_key: "quickChart",
1763
- ref: N,
1764
- class: b({
1765
- "vue-data-ui-component": !0,
1766
- "vue-ui-quick-chart": !0,
1767
- "vue-data-ui-wrapper-fullscreen": Gi.value
1768
- }),
1769
- style: S(`background:${R.value.backgroundColor};color:${R.value.color};font-family:${R.value.fontFamily}; position: relative; ${R.value.responsive ? "height: 100%" : ""}`),
1770
- onMouseenter: r[1] ||= () => pr(!0),
1771
- onMouseleave: r[2] ||= () => pr(!1)
1772
- }, [
1773
- v("div", {
1774
- id: `chart-instructions-${P.value}`,
1775
- class: "sr-only"
1776
- }, [v("p", null, D(R.value.a11y.translations.keyboardNavigation), 1)], 8, rt),
1777
- fa.value.rows.length ? (C(), Ne(ke, {
1778
- key: 0,
1779
- uid: P.value,
1780
- head: fa.value.headers,
1781
- body: fa.value.rows,
1782
- notice: R.value.a11y.translations.tableAvailable,
1783
- caption: R.value.a11y.translations.tableCaption
1784
- }, null, 8, [
1785
- "uid",
1786
- "head",
1787
- "body",
1788
- "notice",
1789
- "caption"
1790
- ])) : g("", !0),
1791
- R.value.userOptionsButtons.annotator ? (C(), Ne(O(Xe), {
1792
- key: 1,
1793
- svgRef: O(H),
1794
- backgroundColor: R.value.backgroundColor,
1795
- color: R.value.color,
1796
- active: Ji.value,
1797
- isCursorPointer: nr.value,
1798
- palette: R.value.annotatorPalette,
1799
- onClose: Yi
1800
- }, {
1801
- "annotator-action-close": k(() => [E(e.$slots, "annotator-action-close", {}, void 0, !0)]),
1802
- "annotator-action-color": k(({ color: t }) => [E(e.$slots, "annotator-action-color", x(y({ color: t })), void 0, !0)]),
1803
- "annotator-action-draw": k(({ mode: t }) => [E(e.$slots, "annotator-action-draw", x(y({ mode: t })), void 0, !0)]),
1804
- "annotator-action-undo": k(({ disabled: t }) => [E(e.$slots, "annotator-action-undo", x(y({ disabled: t })), void 0, !0)]),
1805
- "annotator-action-redo": k(({ disabled: t }) => [E(e.$slots, "annotator-action-redo", x(y({ disabled: t })), void 0, !0)]),
1806
- "annotator-action-delete": k(({ disabled: t }) => [E(e.$slots, "annotator-action-delete", x(y({ disabled: t })), void 0, !0)]),
1807
- _: 3
1808
- }, 8, [
1809
- "svgRef",
1810
- "backgroundColor",
1811
- "color",
1812
- "active",
1813
- "isCursorPointer",
1814
- "palette"
1815
- ])) : g("", !0),
1816
- Er.value ? (C(), _("div", {
1817
- key: 2,
1818
- ref_key: "noTitle",
1819
- ref: Fn,
1820
- class: "vue-data-ui-no-title-space",
1821
- style: "height:36px; width: 100%;background:transparent"
1822
- }, null, 512)) : g("", !0),
1823
- R.value.showUserOptions && (ur.value || dr.value) ? (C(), Ne(O(Qe), {
1824
- ref: "details",
1825
- key: `user_option_${In.value}`,
1826
- backgroundColor: R.value.backgroundColor,
1827
- color: R.value.color,
1828
- isPrinting: O(Sr),
1829
- isImaging: O(Cr),
1830
- uid: P.value,
1831
- hasTooltip: R.value.userOptionsButtons.tooltip && R.value.showTooltip,
1832
- hasPdf: R.value.userOptionsButtons.pdf,
1833
- hasImg: R.value.userOptionsButtons.img,
1834
- hasSvg: R.value.userOptionsButtons.svg,
1835
- hasFullscreen: R.value.userOptionsButtons.fullscreen,
1836
- hasAltCopy: R.value.userOptionsButtons.altCopy,
1837
- hasXls: !1,
1838
- isTooltip: Dr.value.showTooltip,
1839
- isFullscreen: Gi.value,
1840
- titles: { ...R.value.userOptionsButtonTitles },
1841
- chartElement: N.value,
1842
- position: R.value.userOptionsPosition,
1843
- hasAnnotator: R.value.userOptionsButtons.annotator,
1844
- isAnnotation: Ji.value,
1845
- callbacks: R.value.userOptionsCallbacks,
1846
- printScale: R.value.userOptionsPrint.scale,
1847
- isCursorPointer: nr.value,
1848
- onToggleFullscreen: Ki,
1849
- onGeneratePdf: O(wr),
1850
- onGenerateImage: O(ia),
1851
- onGenerateSvg: O(ra),
1852
- onToggleTooltip: qi,
1853
- onToggleAnnotator: Yi,
1854
- onCopyAlt: aa,
1855
- style: S({ visibility: ur.value ? dr.value ? "visible" : "hidden" : "visible" })
1856
- }, Pe({ _: 2 }, [
1857
- e.$slots.menuIcon ? {
1858
- name: "menuIcon",
1859
- fn: k(({ isOpen: t, color: n }) => [E(e.$slots, "menuIcon", x(y({
1860
- isOpen: t,
1861
- color: n
1862
- })), void 0, !0)]),
1863
- key: "0"
1864
- } : void 0,
1865
- e.$slots.optionTooltip ? {
1866
- name: "optionTooltip",
1867
- fn: k(() => [E(e.$slots, "optionTooltip", {}, void 0, !0)]),
1868
- key: "1"
1869
- } : void 0,
1870
- e.$slots.optionPdf ? {
1871
- name: "optionPdf",
1872
- fn: k(() => [E(e.$slots, "optionPdf", {}, void 0, !0)]),
1873
- key: "2"
1874
- } : void 0,
1875
- e.$slots.optionImg ? {
1876
- name: "optionImg",
1877
- fn: k(() => [E(e.$slots, "optionImg", {}, void 0, !0)]),
1878
- key: "3"
1879
- } : void 0,
1880
- e.$slots.optionSvg ? {
1881
- name: "optionSvg",
1882
- fn: k(() => [E(e.$slots, "optionSvg", {}, void 0, !0)]),
1883
- key: "4"
1884
- } : void 0,
1885
- e.$slots.optionFullscreen ? {
1886
- name: "optionFullscreen",
1887
- fn: k(({ toggleFullscreen: t, isFullscreen: n }) => [E(e.$slots, "optionFullscreen", x(y({
1888
- toggleFullscreen: t,
1889
- isFullscreen: n
1890
- })), void 0, !0)]),
1891
- key: "5"
1892
- } : void 0,
1893
- e.$slots.optionAnnotator ? {
1894
- name: "optionAnnotator",
1895
- fn: k(({ toggleAnnotator: t, isAnnotator: n }) => [E(e.$slots, "optionAnnotator", x(y({
1896
- toggleAnnotator: t,
1897
- isAnnotator: n
1898
- })), void 0, !0)]),
1899
- key: "6"
1900
- } : void 0,
1901
- e.$slots.optionAltCopy ? {
1902
- name: "optionAltCopy",
1903
- fn: k(({ altCopy: t }) => [E(e.$slots, "optionAltCopy", x(y({ altCopy: t })), void 0, !0)]),
1904
- key: "7"
1905
- } : void 0,
1906
- e.$slots["custom-menu-before"] ? {
1907
- name: "custom-menu-before",
1908
- fn: k(() => [E(e.$slots, "custom-menu-before", {}, void 0, !0)]),
1909
- key: "8"
1910
- } : void 0,
1911
- e.$slots["custom-menu-after"] ? {
1912
- name: "custom-menu-after",
1913
- fn: k(() => [E(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1914
- key: "9"
1915
- } : void 0
1916
- ]), 1032, [
1917
- "backgroundColor",
1918
- "color",
1919
- "isPrinting",
1920
- "isImaging",
1921
- "uid",
1922
- "hasTooltip",
1923
- "hasPdf",
1924
- "hasImg",
1925
- "hasSvg",
1926
- "hasFullscreen",
1927
- "hasAltCopy",
1928
- "isTooltip",
1929
- "isFullscreen",
1930
- "titles",
1931
- "chartElement",
1932
- "position",
1933
- "hasAnnotator",
1934
- "isAnnotation",
1935
- "callbacks",
1936
- "printScale",
1937
- "isCursorPointer",
1938
- "onGeneratePdf",
1939
- "onGenerateImage",
1940
- "onGenerateSvg",
1941
- "style"
1942
- ])) : g("", !0),
1943
- R.value.title ? (C(), _("div", {
1944
- key: 4,
1945
- ref_key: "quickChartTitle",
1946
- ref: kn,
1947
- class: "vue-ui-quick-chart-title",
1948
- style: S(`background:transparent;color:${R.value.color};font-size:${R.value.titleFontSize}px;font-weight:${R.value.titleBold ? "bold" : "normal"};text-align:${R.value.titleTextAlign}`)
1949
- }, D(R.value.title), 5)) : g("", !0),
1950
- v("div", { id: `legend-top-${P.value}` }, null, 8, it),
1951
- v("div", at, [G.value ? (C(), _("svg", {
1952
- key: 0,
1953
- ref_key: "svgRef",
1954
- ref: H,
1955
- xmlns: O(se),
1956
- "aria-describedby": `chart-instructions-${P.value}`,
1957
- viewBox: jr.value,
1958
- style: S({
1959
- maxWidth: "100%",
1960
- overflow: "visible",
1961
- background: "transparent",
1962
- color: R.value.color,
1963
- cursor: X.value ? qr.value ? "col-resize" : "crosshair" : void 0,
1964
- touchAction: X.value ? "pan-y" : void 0,
1965
- userSelect: X.value ? "none" : void 0
1966
- }),
1967
- class: b({
1968
- "vue-data-ui-no-transition": !O(z),
1969
- "vue-ui-quick-chart-zoom-pointer-focus": X.value && Jr.value
1970
- }),
1971
- tabindex: "0",
1972
- onFocus: ca,
1973
- onBlur: la,
1974
- onKeydown: ua,
1975
- onPointerdown: Li,
1976
- onPointermove: Ri,
1977
- onPointerup: zi,
1978
- onPointercancel: Ai,
1979
- onClickCapture: Mi
1980
- }, [
1981
- Fe(O(Je)),
1982
- e.$slots["chart-background"] && G.value === A.BAR ? (C(), _("foreignObject", {
1983
- key: 0,
1984
- x: Q.value.drawingArea.left,
1985
- y: Q.value.drawingArea.top,
1986
- width: Q.value.drawingArea.width,
1987
- height: Q.value.drawingArea.height,
1988
- style: { pointerEvents: "none" }
1989
- }, [E(e.$slots, "chart-background", {}, void 0, !0)], 8, st)) : g("", !0),
1990
- e.$slots["chart-background"] && G.value === A.LINE ? (C(), _("foreignObject", {
1991
- key: 1,
1992
- x: Z.value.drawingArea.left,
1993
- y: Z.value.drawingArea.top,
1994
- width: Z.value.drawingArea.width,
1995
- height: Z.value.drawingArea.height,
1996
- style: { pointerEvents: "none" }
1997
- }, [E(e.$slots, "chart-background", {}, void 0, !0)], 8, ct)) : g("", !0),
1998
- e.$slots["chart-background"] && G.value === A.DONUT ? (C(), _("foreignObject", {
1999
- key: 2,
2000
- x: 0,
2001
- y: 0,
2002
- width: K.value.width,
2003
- height: K.value.height,
2004
- style: { pointerEvents: "none" }
2005
- }, [E(e.$slots, "chart-background", {}, void 0, !0)], 8, lt)) : g("", !0),
2006
- v("defs", null, [v("filter", {
2007
- id: `blur_${P.value}`,
2008
- x: "-50%",
2009
- y: "-50%",
2010
- width: "200%",
2011
- height: "200%"
2012
- }, [v("feGaussianBlur", {
2013
- in: "SourceGraphic",
2014
- stdDeviation: 2,
2015
- id: `blur_std_${P.value}`
2016
- }, null, 8, dt), r[3] ||= v("feColorMatrix", {
2017
- type: "saturate",
2018
- values: "0"
2019
- }, null, -1)], 8, ut), v("filter", {
2020
- id: `shadow_${P.value}`,
2021
- "color-interpolation-filters": "sRGB"
2022
- }, [v("feDropShadow", {
2023
- dx: "0",
2024
- dy: "0",
2025
- stdDeviation: "10",
2026
- "flood-opacity": "0.5",
2027
- "flood-color": R.value.donutShadowColor
2028
- }, null, 8, pt)], 8, ft)]),
2029
- G.value === A.DONUT ? (C(), _(m, { key: 3 }, [
2030
- R.value.showDataLabels ? (C(), _("g", mt, [(C(!0), _(m, null, T(J.value.chart, (e, t) => (C(), _(m, null, [J.value.isArcBigEnough(e) ? (C(), _("path", {
2031
- key: 0,
2032
- d: O(re)(e, {
2033
- x: K.value.width / 2,
2034
- y: K.value.height / 2
2035
- }, 16, 16, !1, !1, K.value.height * Vr.value, 12, R.value.donutCurvedMarkers),
2036
- stroke: e.color,
2037
- "stroke-width": R.value.donutLabelMarkerStrokeWidth,
2038
- "stroke-linecap": "round",
2039
- "stroke-linejoin": "round",
2040
- fill: "none",
2041
- filter: Nr(e.id)
2042
- }, null, 8, ht)) : g("", !0)], 64))), 256))])) : g("", !0),
2043
- v("circle", {
2044
- cx: J.value.cx,
2045
- cy: J.value.cy,
2046
- r: J.value.radius,
2047
- fill: R.value.backgroundColor,
2048
- filter: R.value.donutUseShadow ? `url(#shadow_${P.value})` : ""
2049
- }, null, 8, gt),
2050
- v("g", _t, [(C(!0), _(m, null, T(J.value.chart, (e, t) => (C(), _("path", {
2051
- d: e.arcSlice,
2052
- fill: e.color,
2053
- stroke: R.value.donutStroke || R.value.backgroundColor,
2054
- "stroke-width": R.value.donutStrokeWidth,
2055
- filter: Nr(e.id)
2056
- }, null, 8, vt))), 256)), (C(!0), _(m, null, T(J.value.chart, (e, t) => (C(), _("path", {
2057
- d: e.arcSlice,
2058
- fill: "transparent",
2059
- onMouseenter: (n) => J.value.useTooltip({
2060
- datapoint: e,
2061
- seriesIndex: t,
2062
- triggerMode: "pointer"
2063
- }),
2064
- onMouseout: (n) => J.value.killTooltip({
2065
- datapoint: e,
2066
- seriesIndex: t
2067
- }),
2068
- onClick: (n) => J.value.selectDatapoint({
2069
- datapoint: e,
2070
- seriesIndex: t
2071
- })
2072
- }, null, 40, yt))), 256))]),
2073
- R.value.showDataLabels ? (C(), _("g", bt, [(C(!0), _(m, null, T(J.value.chart, (e, n) => (C(), _(m, null, [
2074
- J.value.isArcBigEnough(e) ? (C(), _("circle", {
2075
- key: 0,
2076
- cx: O(f)(e).x,
2077
- cy: O(ae)(e) - 3.7,
2078
- fill: e.color,
2079
- stroke: R.value.backgroundColor,
2080
- "stroke-width": 1,
2081
- r: 3,
2082
- filter: Nr(e.id)
2083
- }, null, 8, xt)) : g("", !0),
2084
- J.value.isArcBigEnough(e) ? (C(), _("text", {
2085
- key: 1,
2086
- "text-anchor": O(f)(e, !0, 20).anchor,
2087
- x: O(f)(e, !0).x,
2088
- y: O(ae)(e),
2089
- fill: R.value.color,
2090
- "font-size": R.value.dataLabelFontSize,
2091
- filter: Nr(e.id)
2092
- }, D(J.value.displayArcPercentage(e, J.value.chart)) + " (" + D(O(p)(R.value.formatter, e.value, O(t)({
2093
- p: R.value.valuePrefix,
2094
- v: e.value,
2095
- s: R.value.valueSuffix,
2096
- r: R.value.dataLabelRoundingValue
2097
- }), {
2098
- datapoint: e,
2099
- seriesIndex: n
2100
- })) + ") ", 9, St)) : g("", !0),
2101
- J.value.isArcBigEnough(e, !0, 20) ? (C(), _("text", {
2102
- key: 2,
2103
- "text-anchor": O(f)(e).anchor,
2104
- x: O(f)(e, !0).x,
2105
- y: O(ae)(e) + R.value.dataLabelFontSize,
2106
- fill: R.value.color,
2107
- "font-size": R.value.dataLabelFontSize,
2108
- filter: Nr(e.id)
2109
- }, D(e.name), 9, Ct)) : g("", !0)
2110
- ], 64))), 256))])) : g("", !0),
2111
- R.value.donutShowTotal ? (C(), _("g", wt, [v("text", {
2112
- "text-anchor": "middle",
2113
- x: J.value.drawingArea.centerX,
2114
- y: J.value.drawingArea.centerY - R.value.donutTotalLabelFontSize / 2,
2115
- "font-size": R.value.donutTotalLabelFontSize,
2116
- fill: R.value.color
2117
- }, D(R.value.donutTotalLabelText), 9, Tt), v("text", {
2118
- "text-anchor": "middle",
2119
- x: J.value.drawingArea.centerX,
2120
- y: J.value.drawingArea.centerY + R.value.donutTotalLabelFontSize,
2121
- "font-size": R.value.donutTotalLabelFontSize,
2122
- fill: R.value.color
2123
- }, D(O(t)({
2124
- p: R.value.valuePrefix,
2125
- v: J.value.total,
2126
- s: R.value.valueSuffix,
2127
- r: R.value.dataLabelRoundingValue
2128
- })), 9, Et)])) : g("", !0)
2129
- ], 64)) : g("", !0),
2130
- G.value === A.LINE ? (C(), _(m, { key: 4 }, [
2131
- R.value.xyShowGrid ? (C(), _("g", Dt, [(C(!0), _(m, null, T(Z.value.yLabels, (e) => (C(), _(m, null, [e.y <= Z.value.drawingArea.bottom ? (C(), _("line", {
2132
- key: 0,
2133
- x1: Z.value.drawingArea.left,
2134
- x2: Z.value.drawingArea.right,
2135
- y1: e.y,
2136
- y2: e.y,
2137
- stroke: R.value.xyGridStroke,
2138
- "stroke-width": R.value.xyGridStrokeWidth,
2139
- "stroke-linecap": "round"
2140
- }, null, 8, Ot)) : g("", !0)], 64))), 256)), (C(!0), _(m, null, T(Z.value.extremes.maxSeries + 1, (e, t) => (C(), _("line", {
2141
- x1: Z.value.drawingArea.left + Z.value.slotSize * t,
2142
- x2: Z.value.drawingArea.left + Z.value.slotSize * t,
2143
- y1: Z.value.drawingArea.top,
2144
- y2: Z.value.drawingArea.bottom,
2145
- stroke: R.value.xyGridStroke,
2146
- "stroke-width": R.value.xyGridStrokeWidth,
2147
- "stroke-linecap": "round"
2148
- }, null, 8, kt))), 256))])) : g("", !0),
2149
- R.value.xyShowAxis ? (C(), _("g", At, [v("line", {
2150
- x1: Z.value.drawingArea.left,
2151
- x2: Z.value.drawingArea.left,
2152
- y1: Z.value.drawingArea.top,
2153
- y2: Z.value.drawingArea.bottom,
2154
- stroke: R.value.xyAxisStroke,
2155
- "stroke-width": R.value.xyAxisStrokeWidth,
2156
- "stroke-linecap": "round"
2157
- }, null, 8, jt), v("line", {
2158
- x1: Z.value.drawingArea.left,
2159
- x2: Z.value.drawingArea.right,
2160
- y1: isNaN(Z.value.absoluteZero) ? Z.value.drawingArea.bottom : Z.value.absoluteZero,
2161
- y2: isNaN(Z.value.absoluteZero) ? Z.value.drawingArea.bottom : Z.value.absoluteZero,
2162
- stroke: R.value.xyAxisStroke,
2163
- "stroke-width": R.value.xyAxisStrokeWidth,
2164
- "stroke-linecap": "round"
2165
- }, null, 8, Mt)])) : g("", !0),
2166
- R.value.xyShowScale ? (C(), _("g", {
2167
- key: 2,
2168
- class: "yLabels",
2169
- ref_key: "scaleLabels",
2170
- ref: Hn
2171
- }, [(C(!0), _(m, null, T(Z.value.yLabels, (e, n) => (C(), _(m, { key: `sl_${n}` }, [e.y <= Z.value.drawingArea.bottom ? (C(), _("path", {
2172
- key: 0,
2173
- class: b({ "vue-data-ui-transition": O(z) }),
2174
- d: `M${e.x + 4},${e.y} ${Z.value.drawingArea.left},${e.y}`,
2175
- stroke: R.value.xyAxisStroke,
2176
- "stroke-width": R.value.xyAxisStrokeWidth,
2177
- "stroke-linecap": "round"
2178
- }, null, 10, Nt)) : g("", !0), e.y <= Z.value.drawingArea.bottom ? (C(), _("text", {
2179
- key: 1,
2180
- class: b({ "vue-data-ui-transition": O(z) }),
2181
- transform: `translate(${e.x}, ${e.y + R.value.xyLabelsYFontSize / 3})`,
2182
- "text-anchor": "end",
2183
- "font-size": R.value.xyLabelsYFontSize,
2184
- fill: R.value.color
2185
- }, D(O(p)(R.value.formatter, e.value, O(t)({
2186
- p: R.value.valuePrefix,
2187
- v: e.value,
2188
- s: R.value.valueSuffix,
2189
- r: R.value.dataLabelRoundingValue
2190
- }), {
2191
- datapoint: e,
2192
- seriesIndex: n
2193
- })), 11, Pt)) : g("", !0)], 64))), 128))], 512)) : g("", !0),
2194
- R.value.xyShowScale && R.value.xyPeriods.length ? (C(), _("g", Ft, [(C(!0), _(m, null, T($.value.map((e) => e.text), (e, t) => (C(), _(m, null, [!R.value.xyPeriodsShowOnlyAtModulo || R.value.xyPeriodsShowOnlyAtModulo && t % Math.floor((Y.value.end - Y.value.start) / Wi.value) === 0 || Y.value.end - Y.value.start <= Wi.value ? (C(), _("line", {
2195
- key: 0,
2196
- x1: Z.value.drawingArea.left + Z.value.slotSize * (t + 1) - Z.value.slotSize / 2,
2197
- x2: Z.value.drawingArea.left + Z.value.slotSize * (t + 1) - Z.value.slotSize / 2,
2198
- y1: Z.value.drawingArea.bottom,
2199
- y2: Z.value.drawingArea.bottom + 4,
2200
- stroke: R.value.xyAxisStroke,
2201
- "stroke-width": R.value.xyAxisStrokeWidth,
2202
- "stroke-linecap": "round"
2203
- }, null, 8, It)) : g("", !0)], 64))), 256)), v("g", {
2204
- ref_key: "timeLabelsEls",
2205
- ref: Vn
2206
- }, [(C(!0), _(m, null, T($.value.map((e) => e.text), (e, t) => (C(), _(m, null, [!R.value.xyPeriodsShowOnlyAtModulo || R.value.xyPeriodsShowOnlyAtModulo && t % Math.floor((Y.value.end - Y.value.start) / Wi.value) === 0 || Y.value.end - Y.value.start <= Wi.value ? (C(), _("g", Lt, [String(e).includes("\n") ? (C(), _("text", {
2207
- key: 1,
2208
- class: "vue-data-ui-time-label",
2209
- "font-size": R.value.xyLabelsXFontSize,
2210
- "text-anchor": R.value.xyPeriodLabelsRotation > 0 ? "start" : R.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
2211
- fill: R.value.color,
2212
- transform: `translate(${Z.value.drawingArea.left + Z.value.slotSize * (t + 1) - Z.value.slotSize / 2}, ${Z.value.drawingArea.bottom + R.value.xyLabelsXFontSize + 6}), rotate(${R.value.xyPeriodLabelsRotation})`,
2213
- innerHTML: O(a)({
2214
- content: String(e),
2215
- fontSize: R.value.xyLabelsXFontSize,
2216
- fill: R.value.color,
2217
- x: 0,
2218
- y: 0
2219
- })
2220
- }, null, 8, zt)) : (C(), _("text", {
2221
- key: 0,
2222
- class: "vue-data-ui-time-label",
2223
- "font-size": R.value.xyLabelsXFontSize,
2224
- "text-anchor": R.value.xyPeriodLabelsRotation > 0 ? "start" : R.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
2225
- fill: R.value.color,
2226
- transform: `translate(${Z.value.drawingArea.left + Z.value.slotSize * (t + 1) - Z.value.slotSize / 2}, ${Z.value.drawingArea.bottom + R.value.xyLabelsXFontSize + 6}), rotate(${R.value.xyPeriodLabelsRotation})`
2227
- }, D(e), 9, Rt))])) : g("", !0)], 64))), 256))], 512)])) : g("", !0),
2228
- v("g", Bt, [(C(!0), _(m, null, T(Z.value.dataset, (e, t) => (C(), _("g", {
2229
- key: `serie_${e.id}`,
2230
- class: "line-plot-series"
2231
- }, [R.value.lineSmooth ? (C(), _(m, { key: 0 }, [v("path", {
2232
- ref_for: !0,
2233
- ref_key: "pathWrapper",
2234
- ref: zn,
2235
- d: `M ${O(s)(e.coordinates)}`,
2236
- stroke: R.value.backgroundColor,
2237
- "stroke-width": R.value.lineStrokeWidth + 1,
2238
- "stroke-linecap": "round",
2239
- fill: "none",
2240
- class: b({ "vue-data-ui-transition": O(z) })
2241
- }, null, 10, Vt), v("path", {
2242
- ref_for: !0,
2243
- ref_key: "pathTop",
2244
- ref: Bn,
2245
- d: `M ${O(s)(e.coordinates)}`,
2246
- stroke: e.color,
2247
- "stroke-width": R.value.lineStrokeWidth,
2248
- "stroke-linecap": "round",
2249
- fill: "none",
2250
- class: b({ "vue-data-ui-transition": O(z) }),
2251
- style: S({ transition: O(or) ? void 0 : "all 0.2s ease-in-out" })
2252
- }, null, 14, Ht)], 64)) : (C(), _(m, { key: 1 }, [v("path", {
2253
- ref_for: !0,
2254
- ref_key: "pathWrapper",
2255
- ref: zn,
2256
- d: `M ${e.linePath}`,
2257
- stroke: R.value.backgroundColor,
2258
- "stroke-width": R.value.lineStrokeWidth + 1,
2259
- "stroke-linecap": "round",
2260
- fill: "none",
2261
- class: b({ "vue-data-ui-transition": O(z) })
2262
- }, null, 10, Ut), v("path", {
2263
- ref_for: !0,
2264
- ref_key: "pathTop",
2265
- ref: Bn,
2266
- d: `M ${e.linePath}`,
2267
- stroke: e.color,
2268
- "stroke-width": R.value.lineStrokeWidth,
2269
- "stroke-linecap": "round",
2270
- fill: "none",
2271
- class: b({ "vue-data-ui-transition": O(z) })
2272
- }, null, 10, Wt)], 64)), (C(!0), _(m, null, T(e.coordinates, (t, n) => (C(), _("circle", {
2273
- key: `dp_${e.id}_${n + Y.value.start}`,
2274
- cx: t.x,
2275
- cy: O(u)(t.y),
2276
- r: 3,
2277
- fill: e.color,
2278
- stroke: R.value.backgroundColor,
2279
- "stroke-width": "0.5",
2280
- class: b({
2281
- "vue-ui-quick-chart-plot": !0,
2282
- "vue-data-ui-transition": O(z)
2283
- })
2284
- }, null, 10, Gt))), 128))]))), 128))]),
2285
- R.value.showDataLabels ? (C(), _("g", Kt, [(C(!0), _(m, null, T(Z.value.dataset, (e, n) => (C(), _(m, { key: `ds_${e.id}` }, [(C(!0), _(m, null, T(e.coordinates, (n, r) => (C(), _("text", {
2286
- class: b(["vue-ui-quick-chart-label", { "vue-data-ui-transition": O(z) }]),
2287
- key: `plot_${e.id}_${r + Y.value.start}`,
2288
- "text-anchor": "middle",
2289
- "font-size": R.value.dataLabelFontSize,
2290
- fill: e.color,
2291
- transform: `translate(${n.x}, ${O(u)(n.y) - R.value.dataLabelFontSize / 2})`
2292
- }, D(O(p)(R.value.formatter, O(u)(n.value), O(t)({
2293
- p: R.value.valuePrefix,
2294
- v: O(u)(n.value),
2295
- s: R.value.valueSuffix,
2296
- r: R.value.dataLabelRoundingValue
2297
- }), {
2298
- datapoint: n,
2299
- seriesIndex: r
2300
- })), 11, qt))), 128))], 64))), 128))])) : g("", !0),
2301
- fr.value ? (C(), _("g", Jt, [(C(!0), _(m, null, T(Z.value.extremes.maxSeries, (e, t) => (C(), _("rect", {
2302
- x: Z.value.drawingArea.left + t * Z.value.slotSize,
2303
- y: Z.value.drawingArea.top,
2304
- height: Z.value.drawingArea.height <= 0 ? 1e-5 : Z.value.drawingArea.height,
2305
- width: Z.value.slotSize <= 0 ? 1e-5 : Z.value.slotSize,
2306
- fill: [I.value, q.value].includes(t) ? R.value.xyHighlighterColor : "transparent",
2307
- style: S(`opacity:${R.value.xyHighlighterOpacity}`),
2308
- onMouseenter: (e) => Z.value.useTooltip(t, "pointer"),
2309
- onMouseleave: (e) => Z.value.killTooltip(t),
2310
- onClick: (e) => Z.value.selectDatapoint(t)
2311
- }, null, 44, Yt))), 256))])) : g("", !0)
2312
- ], 64)) : g("", !0),
2313
- G.value === A.BAR ? (C(), _(m, { key: 5 }, [
2314
- R.value.xyShowGrid ? (C(), _("g", Xt, [(C(!0), _(m, null, T(Q.value.yLabels, (e) => (C(), _(m, null, [e.y <= Q.value.drawingArea.bottom ? (C(), _("line", {
2315
- key: 0,
2316
- x1: Q.value.drawingArea.left,
2317
- x2: Q.value.drawingArea.right,
2318
- y1: e.y,
2319
- y2: e.y,
2320
- stroke: R.value.xyGridStroke,
2321
- "stroke-width": R.value.xyGridStrokeWidth,
2322
- "stroke-linecap": "round"
2323
- }, null, 8, Zt)) : g("", !0)], 64))), 256)), L.value.length < Q.value.legend.length ? (C(!0), _(m, { key: 0 }, T(Q.value.extremes.maxSeries + 1, (e, t) => (C(), _("line", {
2324
- x1: Q.value.drawingArea.left + Q.value.slotSize * t,
2325
- x2: Q.value.drawingArea.left + Q.value.slotSize * t,
2326
- y1: Q.value.drawingArea.top,
2327
- y2: Q.value.drawingArea.bottom,
2328
- stroke: R.value.xyGridStroke,
2329
- "stroke-width": R.value.xyGridStrokeWidth,
2330
- "stroke-linecap": "round"
2331
- }, null, 8, Qt))), 256)) : g("", !0)])) : g("", !0),
2332
- R.value.xyShowAxis ? (C(), _("g", $t, [v("line", {
2333
- x1: Q.value.drawingArea.left,
2334
- x2: Q.value.drawingArea.left,
2335
- y1: Q.value.drawingArea.top,
2336
- y2: Q.value.drawingArea.bottom,
2337
- stroke: R.value.xyAxisStroke,
2338
- "stroke-width": R.value.xyAxisStrokeWidth,
2339
- "stroke-linecap": "round"
2340
- }, null, 8, en), v("line", {
2341
- x1: Q.value.drawingArea.left,
2342
- x2: Q.value.drawingArea.right,
2343
- y1: isNaN(Q.value.absoluteZero) ? Q.value.drawingArea.bottom : Q.value.absoluteZero,
2344
- y2: isNaN(Q.value.absoluteZero) ? Q.value.drawingArea.bottom : Q.value.absoluteZero,
2345
- stroke: R.value.xyAxisStroke,
2346
- "stroke-width": R.value.xyAxisStrokeWidth,
2347
- "stroke-linecap": "round"
2348
- }, null, 8, tn)])) : g("", !0),
2349
- R.value.xyShowScale ? (C(), _("g", {
2350
- key: 2,
2351
- class: "yLabels",
2352
- ref_key: "scaleLabels",
2353
- ref: Hn
2354
- }, [(C(!0), _(m, null, T(Q.value.yLabels, (e, n) => (C(), _(m, { key: `sl_${n}` }, [e.y <= Q.value.drawingArea.bottom ? (C(), _("path", {
2355
- key: 0,
2356
- class: b({ "vue-data-ui-transition": O(z) }),
2357
- d: `M${e.x + 4},${e.y} ${Q.value.drawingArea.left},${e.y}`,
2358
- stroke: R.value.xyAxisStroke,
2359
- "stroke-width": R.value.xyAxisStrokeWidth,
2360
- "stroke-linecap": "round"
2361
- }, null, 10, nn)) : g("", !0), e.y <= Q.value.drawingArea.bottom ? (C(), _("text", {
2362
- key: 1,
2363
- class: b({ "vue-data-ui-transition": O(z) }),
2364
- transform: `translate(${e.x}, ${e.y + R.value.xyLabelsYFontSize / 3})`,
2365
- "text-anchor": "end",
2366
- "font-size": R.value.xyLabelsYFontSize,
2367
- fill: R.value.color
2368
- }, D(O(p)(R.value.formatter, e.value, O(t)({
2369
- p: R.value.valuePrefix,
2370
- v: e.value,
2371
- s: R.value.valueSuffix,
2372
- r: R.value.dataLabelRoundingValue
2373
- }), {
2374
- datapoint: e,
2375
- seriesIndex: n
2376
- })), 11, rn)) : g("", !0)], 64))), 128))], 512)) : g("", !0),
2377
- R.value.xyShowScale && R.value.xyPeriods.length ? (C(), _("g", an, [(C(!0), _(m, null, T(R.value.xyPeriods.slice(Y.value.start, Y.value.end), (e, t) => (C(), _("line", {
2378
- x1: Q.value.drawingArea.left + Q.value.slotSize * (t + 1) - Q.value.slotSize / 2,
2379
- x2: Q.value.drawingArea.left + Q.value.slotSize * (t + 1) - Q.value.slotSize / 2,
2380
- y1: Q.value.drawingArea.bottom,
2381
- y2: Q.value.drawingArea.bottom + 4,
2382
- stroke: R.value.xyAxisStroke,
2383
- "stroke-width": R.value.xyAxisStrokeWidth,
2384
- "stroke-linecap": "round"
2385
- }, null, 8, on))), 256)), v("g", {
2386
- ref_key: "timeLabelsEls",
2387
- ref: Vn
2388
- }, [(C(!0), _(m, null, T($.value.map((e) => e.text), (e, t) => (C(), _(m, null, [!R.value.xyPeriodsShowOnlyAtModulo || R.value.xyPeriodsShowOnlyAtModulo && t % Math.floor((Y.value.end - Y.value.start) / Wi.value) === 0 || Y.value.end - Y.value.start <= Wi.value ? (C(), _("g", sn, [String(e).includes("\n") ? (C(), _("text", {
2389
- key: 1,
2390
- class: "vue-data-ui-time-label",
2391
- "font-size": R.value.xyLabelsXFontSize,
2392
- "text-anchor": R.value.xyPeriodLabelsRotation > 0 ? "start" : R.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
2393
- fill: R.value.color,
2394
- transform: `translate(${Q.value.drawingArea.left + Q.value.slotSize * (t + 1) - Q.value.slotSize / 2}, ${Q.value.drawingArea.bottom + R.value.xyLabelsXFontSize + 6}), rotate(${R.value.xyPeriodLabelsRotation})`,
2395
- innerHTML: O(a)({
2396
- content: String(e),
2397
- fontSize: R.value.xyLabelsXFontSize,
2398
- fill: R.value.color,
2399
- x: 0,
2400
- y: 0
2401
- })
2402
- }, null, 8, ln)) : (C(), _("text", {
2403
- key: 0,
2404
- class: "vue-data-ui-time-label",
2405
- "font-size": R.value.xyLabelsXFontSize,
2406
- "text-anchor": R.value.xyPeriodLabelsRotation > 0 ? "start" : R.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
2407
- fill: R.value.color,
2408
- transform: `translate(${Q.value.drawingArea.left + Q.value.slotSize * (t + 1) - Q.value.slotSize / 2}, ${Q.value.drawingArea.bottom + R.value.xyLabelsXFontSize + 6}), rotate(${R.value.xyPeriodLabelsRotation})`
2409
- }, D(e), 9, cn))])) : g("", !0)], 64))), 256))], 512)])) : g("", !0),
2410
- v("g", un, [(C(!0), _(m, null, T(Q.value.dataset, (e, t) => (C(), _(m, null, [(C(!0), _(m, null, T(e.coordinates, (t, n) => (C(), _("rect", {
2411
- x: t.x,
2412
- width: t.width <= 0 ? 1e-5 : t.width,
2413
- height: O(u)(t.height <= 0 ? 1e-5 : t.height),
2414
- y: O(u)(t.y),
2415
- fill: e.color,
2416
- stroke: R.value.backgroundColor,
2417
- "stroke-width": R.value.barStrokeWidth,
2418
- "stroke-linecap": "round",
2419
- class: b({ "vue-data-ui-transition": O(z) })
2420
- }, null, 10, dn))), 256))], 64))), 256))]),
2421
- R.value.showDataLabels ? (C(), _("g", fn, [(C(!0), _(m, null, T(Q.value.dataset, (e, n) => (C(), _(m, { key: `ds_${e.id}` }, [(C(!0), _(m, null, T(e.coordinates, (n, r) => (C(), _("text", {
2422
- class: b({ "vue-data-ui-transition": O(z) }),
2423
- key: `plot_${r + Y.value.start}`,
2424
- transform: `translate(${n.x + n.width / 2}, ${O(u)(n.y) - R.value.dataLabelFontSize / 2})`,
2425
- "text-anchor": "middle",
2426
- "font-size": R.value.dataLabelFontSize,
2427
- fill: e.color
2428
- }, D(O(p)(R.value.formatter, O(u)(n.value), O(t)({
2429
- p: R.value.valuePrefix,
2430
- v: O(u)(n.value),
2431
- s: R.value.valueSuffix,
2432
- r: R.value.dataLabelRoundingValue
2433
- }), {
2434
- datapoint: n,
2435
- seriesIndex: r
2436
- })), 11, pn))), 128))], 64))), 128))])) : g("", !0),
2437
- fr.value && L.value.length < Q.value.legend.length ? (C(), _("g", mn, [(C(!0), _(m, null, T(Q.value.extremes.maxSeries, (e, t) => (C(), _("rect", {
2438
- x: Q.value.drawingArea.left + t * Q.value.slotSize,
2439
- y: Q.value.drawingArea.top,
2440
- height: Q.value.drawingArea.height <= 0 ? 1e-5 : Q.value.drawingArea.height,
2441
- width: Q.value.slotSize <= 0 ? 1e-5 : Q.value.slotSize,
2442
- fill: [I.value, q.value].includes(t) ? R.value.xyHighlighterColor : "transparent",
2443
- style: S(`opacity:${R.value.xyHighlighterOpacity}`),
2444
- onMouseenter: (e) => Q.value.useTooltip(t, "pointer"),
2445
- onMouseleave: (e) => Q.value.killTooltip(t),
2446
- onClick: (e) => Q.value.selectDatapoint(t)
2447
- }, null, 44, hn))), 256))])) : g("", !0)
2448
- ], 64)) : g("", !0),
2449
- [A.LINE, A.BAR].includes(G.value) ? (C(), _("g", gn, [
2450
- R.value.xAxisLabel && G.value === A.LINE ? (C(), _("g", {
2451
- key: 0,
2452
- ref_key: "xAxisLabel",
2453
- ref: Un
2454
- }, [v("text", {
2455
- "font-size": R.value.axisLabelsFontSize,
2456
- fill: R.value.color,
2457
- "text-anchor": "middle",
2458
- x: Z.value.drawingArea.left + Z.value.drawingArea.width / 2,
2459
- y: K.value.height - R.value.axisLabelsFontSize / 3
2460
- }, D(R.value.xAxisLabel), 9, _n)], 512)) : g("", !0),
2461
- R.value.xAxisLabel && G.value === A.BAR ? (C(), _("g", {
2462
- key: 1,
2463
- ref_key: "xAxisLabel",
2464
- ref: Un
2465
- }, [v("text", {
2466
- "font-size": R.value.axisLabelsFontSize,
2467
- fill: R.value.color,
2468
- "text-anchor": "middle",
2469
- x: Q.value.drawingArea.left + Q.value.drawingArea.width / 2,
2470
- y: K.value.height - R.value.axisLabelsFontSize / 3
2471
- }, D(R.value.xAxisLabel), 9, vn)], 512)) : g("", !0),
2472
- R.value.yAxisLabel && G.value === A.LINE ? (C(), _("g", {
2473
- key: 2,
2474
- ref_key: "yAxisLabel",
2475
- ref: Wn
2476
- }, [v("text", {
2477
- "font-size": R.value.axisLabelsFontSize,
2478
- fill: R.value.color,
2479
- transform: `translate(${R.value.axisLabelsFontSize}, ${Z.value.drawingArea.top + Z.value.drawingArea.height / 2}) rotate(-90)`,
2480
- "text-anchor": "middle"
2481
- }, D(R.value.yAxisLabel), 9, yn)], 512)) : g("", !0),
2482
- R.value.yAxisLabel && G.value === A.BAR ? (C(), _("g", {
2483
- key: 3,
2484
- ref_key: "yAxisLabel",
2485
- ref: Wn
2486
- }, [v("text", {
2487
- "font-size": R.value.axisLabelsFontSize,
2488
- fill: R.value.color,
2489
- transform: `translate(${R.value.axisLabelsFontSize}, ${Q.value.drawingArea.top + Q.value.drawingArea.height / 2}) rotate(-90)`,
2490
- "text-anchor": "middle"
2491
- }, D(R.value.yAxisLabel), 9, bn)], 512)) : g("", !0)
2492
- ])) : g("", !0),
2493
- Ti.value ? (C(), _("rect", {
2494
- key: 7,
2495
- x: Ti.value.x,
2496
- y: Ti.value.y,
2497
- width: Ti.value.width,
2498
- height: Ti.value.height,
2499
- fill: ti.value.selection.fill,
2500
- "fill-opacity": ti.value.selection.fillOpacity,
2501
- stroke: ti.value.selection.stroke,
2502
- "stroke-opacity": ti.value.selection.strokeOpacity,
2503
- "stroke-width": ti.value.selection.strokeWidth,
2504
- "stroke-dasharray": ti.value.selection.strokeDasharray,
2505
- "stroke-linecap": "round",
2506
- "stroke-linejoin": "round",
2507
- "pointer-events": "none"
2508
- }, null, 8, xn)) : g("", !0)
2509
- ], 46, ot)) : g("", !0), e.$slots.hint ? (C(), _("div", Sn, [E(e.$slots, "hint", x(y({
2510
- hint: R.value.a11y.translations.keyboardNavigation,
2511
- isVisible: ir.value
2512
- })), void 0, !0)])) : g("", !0)]),
2513
- e.$slots.watermark ? (C(), _("div", Cn, [E(e.$slots, "watermark", x(y({ isPrinting: O(Sr) || O(Cr) })), void 0, !0)])) : g("", !0),
2514
- xr.value ? (C(), _("div", {
2515
- key: `slicer_${Ln.value}`,
2516
- ref_key: "quickChartSlicer",
2517
- ref: jn
2518
- }, [(C(), Ne(De, {
2519
- ref_key: "slicerComponent",
2520
- ref: Ur,
2521
- key: `slicer_${Ln.value}`,
2522
- timeLabels: $.value,
2523
- background: R.value.zoomColor,
2524
- borderColor: R.value.backgroundColor,
2525
- fontSize: R.value.zoomFontSize,
2526
- useResetSlot: R.value.zoomUseResetSlot,
2527
- textColor: R.value.color,
2528
- inputColor: R.value.zoomColor,
2529
- selectColor: R.value.zoomHighlightColor,
2530
- max: W.value.maxSeriesLength,
2531
- min: 0,
2532
- valueStart: Y.value.start,
2533
- valueEnd: Y.value.end,
2534
- smoothMinimap: R.value.zoomMinimap.smooth,
2535
- minimapSelectedColor: R.value.zoomMinimap.selectedColor,
2536
- minimapSelectedColorOpacity: R.value.zoomMinimap.selectedColorOpacity,
2537
- minimapSelectionRadius: R.value.zoomMinimap.selectionRadius,
2538
- minimapLineColor: R.value.zoomMinimap.lineColor,
2539
- minimap: _i.value,
2540
- minimapIndicatorColor: R.value.zoomMinimap.indicatorColor,
2541
- verticalHandles: R.value.zoomMinimap.verticalHandles,
2542
- minimapSelectedIndex: q.value,
2543
- "onUpdate:start": hi,
2544
- "onUpdate:end": gi,
2545
- refreshStartPoint: R.value.zoomStartIndex === null ? 0 : R.value.zoomStartIndex,
2546
- refreshEndPoint: R.value.zoomEndIndex === null ? W.value.maxSeriesLength : R.value.zoomEndIndex + 1,
2547
- enableRangeHandles: R.value.zoomEnableRangeHandles,
2548
- enableSelectionDrag: R.value.zoomEnableSelectionDrag,
2549
- minimapCompact: R.value.zoomMinimap.compact,
2550
- minimapMerged: R.value.zoomMinimap.merged,
2551
- allMinimaps: Hi.value,
2552
- minimapFrameColor: R.value.zoomMinimap.frameColor,
2553
- additionalMinimapHeight: R.value.zoomMinimap.additionalHeight,
2554
- handleType: R.value.zoomMinimap.handleType,
2555
- handleWidth: R.value.zoomMinimap.handleWidth,
2556
- handleBorderWidth: R.value.zoomMinimap.handleBorderWidth,
2557
- handleIconColor: R.value.zoomMinimap.handleIconColor,
2558
- handleBorderColor: R.value.zoomMinimap.handleBorderColor,
2559
- handleFill: R.value.zoomMinimap.handleFill,
2560
- focusOnDrag: R.value.zoomFocusOnDrag,
2561
- focusRangeRatio: R.value.zoomFocusRangeRatio,
2562
- maxWidth: R.value.zoomMaxWidth,
2563
- minimapLeftInsetRatio: Bi.value,
2564
- minimapRightInsetRatio: Vi.value,
2565
- onReset: r[0] ||= () => pi({
2566
- applyControlledZoom: !1,
2567
- publish: !0
2568
- }),
2569
- onTrapMouse: Br
2570
- }, {
2571
- "reset-action": k(({ reset: t }) => [E(e.$slots, "reset-action", x(y({ reset: t })), void 0, !0)]),
2572
- _: 3
2573
- }, 8, /* @__PURE__ */ "timeLabels.background.borderColor.fontSize.useResetSlot.textColor.inputColor.selectColor.max.valueStart.valueEnd.smoothMinimap.minimapSelectedColor.minimapSelectedColorOpacity.minimapSelectionRadius.minimapLineColor.minimap.minimapIndicatorColor.verticalHandles.minimapSelectedIndex.refreshStartPoint.refreshEndPoint.enableRangeHandles.enableSelectionDrag.minimapCompact.minimapMerged.allMinimaps.minimapFrameColor.additionalMinimapHeight.handleType.handleWidth.handleBorderWidth.handleIconColor.handleBorderColor.handleFill.focusOnDrag.focusRangeRatio.maxWidth.minimapLeftInsetRatio.minimapRightInsetRatio".split(".")))])) : g("", !0),
2574
- v("div", { id: `legend-bottom-${P.value}` }, null, 8, wn),
2575
- Rn.value && R.value.showLegend ? (C(), Ne(Me, {
2576
- key: 7,
2577
- to: R.value.legendPosition === "top" ? `#legend-top-${P.value}` : `#legend-bottom-${P.value}`
2578
- }, [R.value.showLegend ? (C(), _("div", {
2579
- key: 0,
2580
- ref_key: "quickChartLegend",
2581
- ref: An,
2582
- class: "vue-ui-quick-chart-legend",
2583
- style: S(`background:transparent;color:${R.value.color}`)
2584
- }, [
2585
- (J.value?.legend?.length > 2 || Z.value?.legend?.length > 2 || Q.value?.legend?.length > 2) && R.value.showLegendSelectAllToggle && !O(or) ? (C(), Ne(Oe, {
2586
- key: 0,
2587
- backgroundColor: R.value.legendSelectAllToggleBackgroundColor,
2588
- color: R.value.legendSelectAllToggleColor,
2589
- fontSize: R.value.legendFontSize,
2590
- checked: L.value.length > 0,
2591
- isCursorPointer: nr.value,
2592
- onToggle: Pr
2593
- }, null, 8, [
2594
- "backgroundColor",
2595
- "color",
2596
- "fontSize",
2597
- "checked",
2598
- "isCursorPointer"
2599
- ])) : g("", !0),
2600
- G.value === A.DONUT ? (C(!0), _(m, { key: 1 }, T(J.value.legend, (n, r) => (C(), _("div", {
2601
- class: "vue-ui-quick-chart-legend-item",
2602
- onClick: (e) => zr(n, J.value.dataset),
2603
- style: S(`cursor: ${J.value.legend.length > 1 && nr.value ? "pointer" : "default"}; opacity:${L.value.includes(n.id) ? "0.5" : "1"}`),
2604
- role: "button",
2605
- tabindex: "0",
2606
- onKeydown: (e) => {
2607
- oa(e, () => {
2608
- zr(n, J.value.dataset);
2609
- });
2610
- }
2611
- }, [R.value.useCustomLegend ? E(e.$slots, "legend", Le({ ref_for: !0 }, { legend: {
2612
- ...n,
2613
- isSegregated: L.value.includes(n.id),
2614
- segregate: () => {
2615
- zr(n, J.value.dataset);
2616
- }
2617
- } }), void 0, !0, 0) : (C(), _(m, { key: 1 }, [
2618
- Fe(O(qe), {
2619
- name: R.value.legendIcon,
2620
- stroke: n.color,
2621
- size: R.value.legendIconSize
2622
- }, null, 8, [
2623
- "name",
2624
- "stroke",
2625
- "size"
2626
- ]),
2627
- v("span", { style: S(`font-size:${R.value.legendFontSize}px`) }, D(n.name), 5),
2628
- v("span", { style: S(`font-size:${R.value.legendFontSize}px;font-variant-numeric:tabular-nums`) }, D(L.value.includes(n.id) ? "-" : O(p)(R.value.formatter, n.absoluteValue, O(t)({
2629
- p: R.value.valuePrefix,
2630
- v: n.absoluteValue,
2631
- s: R.value.valueSuffix,
2632
- r: R.value.dataLabelRoundingValue
2633
- }), {
2634
- datapoint: n,
2635
- seriesIndex: r
2636
- })), 5),
2637
- L.value.includes(n.id) ? (C(), _("span", {
2638
- key: 0,
2639
- style: S(`font-size:${R.value.legendFontSize}px`)
2640
- }, " ( - % ) ", 4)) : Rr.value ? (C(), _("span", {
2641
- key: 1,
2642
- style: S(`font-size:${R.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
2643
- }, " ( - % ) ", 4)) : (C(), _("span", {
2644
- key: 2,
2645
- style: S(`font-size:${R.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
2646
- }, " (" + D(O(t)({
2647
- v: n.value / J.value.total * 100,
2648
- s: "%",
2649
- r: R.value.dataLabelRoundingPercentage
2650
- })) + ") ", 5))
2651
- ], 64))], 44, Tn))), 256)) : g("", !0),
2652
- G.value === A.LINE ? (C(!0), _(m, { key: 2 }, T(Z.value.legend, (t, n) => (C(), _("div", {
2653
- class: "vue-ui-quick-chart-legend-item",
2654
- onClick: (e) => {
2655
- Fr(t.id, Z.value.legend.length - 1), U("selectLegend", Z.value.dataset);
2656
- },
2657
- style: S(`cursor: ${Z.value.legend.length > 1 && nr.value ? "pointer" : "default"}; opacity:${L.value.includes(t.id) ? "0.5" : "1"}`),
2658
- role: "button",
2659
- tabindex: "0",
2660
- onKeydown: (e) => {
2661
- oa(e, () => {
2662
- Fr(t.id, Z.value.legend.length - 1), U("selectLegend", Z.value.dataset);
2663
- });
2664
- }
2665
- }, [R.value.useCustomLegend ? E(e.$slots, "legend", Le({ ref_for: !0 }, { legend: {
2666
- ...t,
2667
- isSegregated: L.value.includes(t.id),
2668
- segregate: () => {
2669
- Fr(t.id, Z.value.legend.length - 1), U("selectLegend", Z.value.dataset);
2670
- }
2671
- } }), void 0, !0, 0) : (C(), _(m, { key: 1 }, [Fe(O(qe), {
2672
- name: R.value.legendIcon,
2673
- stroke: t.color,
2674
- size: R.value.legendIconSize
2675
- }, null, 8, [
2676
- "name",
2677
- "stroke",
2678
- "size"
2679
- ]), v("span", { style: S(`font-size:${R.value.legendFontSize}px`) }, D(t.name), 5)], 64))], 44, En))), 256)) : g("", !0),
2680
- G.value === A.BAR ? (C(!0), _(m, { key: 3 }, T(Q.value.legend, (t, n) => (C(), _("div", {
2681
- class: "vue-ui-quick-chart-legend-item",
2682
- onClick: (e) => {
2683
- Fr(t.id, Q.value.legend.length - 1), U("selectLegend", Q.value.dataset);
2684
- },
2685
- style: S(`cursor: ${Q.value.legend.length > 1 && nr.value ? "pointer" : "default"}; opacity:${L.value.includes(t.id) ? "0.5" : "1"}`),
2686
- role: "button",
2687
- tabindex: "0",
2688
- onKeydown: (e) => {
2689
- oa(e, () => {
2690
- Fr(t.id, Q.value.legend.length - 1), U("selectLegend", Q.value.dataset);
2691
- });
2692
- }
2693
- }, [R.value.useCustomLegend ? E(e.$slots, "legend", Le({ ref_for: !0 }, { legend: {
2694
- ...t,
2695
- isSegregated: L.value.includes(t.id),
2696
- segregate: () => {
2697
- Fr(t.id, Q.value.legend.length - 1), U("selectLegend", Q.value.dataset);
2698
- }
2699
- } }), void 0, !0, 0) : (C(), _(m, { key: 1 }, [Fe(O(qe), {
2700
- name: R.value.legendIcon,
2701
- stroke: t.color,
2702
- size: R.value.legendIconSize
2703
- }, null, 8, [
2704
- "name",
2705
- "stroke",
2706
- "size"
2707
- ]), v("span", { style: S(`font-size:${R.value.legendFontSize}px`) }, D(t.name), 5)], 64))], 44, Dn))), 256)) : g("", !0)
2708
- ], 4)) : g("", !0)], 8, ["to"])) : g("", !0),
2709
- e.$slots.source ? (C(), _("div", {
2710
- key: 8,
2711
- ref_key: "source",
2712
- ref: Pn,
2713
- dir: "auto"
2714
- }, [E(e.$slots, "source", {}, void 0, !0)], 512)) : g("", !0),
2715
- Fe(O(Ze), {
2716
- teleportTo: R.value.tooltipTeleportTo,
2717
- show: Dr.value.showTooltip && F.value,
2718
- backgroundColor: R.value.backgroundColor,
2719
- color: R.value.color,
2720
- borderRadius: R.value.tooltipBorderRadius,
2721
- borderColor: R.value.tooltipBorderColor,
2722
- borderWidth: R.value.tooltipBorderWidth,
2723
- fontSize: R.value.tooltipFontSize,
2724
- backgroundOpacity: R.value.tooltipBackgroundOpacity,
2725
- position: R.value.tooltipPosition,
2726
- offsetX: R.value.tooltipOffsetX,
2727
- offsetY: R.value.tooltipOffsetY,
2728
- parent: N.value,
2729
- content: Nn.value,
2730
- isFullscreen: Gi.value,
2731
- isCustom: O(n)(R.value.tooltipCustomFormat),
2732
- smooth: R.value.tooltipSmooth,
2733
- smoothForce: R.value.tooltipSmoothForce,
2734
- smoothSnapThreshold: R.value.tooltipSmoothSnapThreshold,
2735
- backdropFilter: R.value.tooltipBackdropFilter,
2736
- isA11yMode: V.value === "keyboard",
2737
- a11yPosition: rr.value
2738
- }, {
2739
- "tooltip-before": k(() => [E(e.$slots, "tooltip-before", x(y({ ...Mn.value })), void 0, !0)]),
2740
- tooltip: k(() => [E(e.$slots, "tooltip", x(y({ ...Mn.value })), void 0, !0)]),
2741
- "tooltip-after": k(() => [E(e.$slots, "tooltip-after", x(y({ ...Mn.value })), void 0, !0)]),
2742
- _: 3
2743
- }, 8, [
2744
- "teleportTo",
2745
- "show",
2746
- "backgroundColor",
2747
- "color",
2748
- "borderRadius",
2749
- "borderColor",
2750
- "borderWidth",
2751
- "fontSize",
2752
- "backgroundOpacity",
2753
- "position",
2754
- "offsetX",
2755
- "offsetY",
2756
- "parent",
2757
- "content",
2758
- "isFullscreen",
2759
- "isCustom",
2760
- "smooth",
2761
- "smoothForce",
2762
- "smoothSnapThreshold",
2763
- "backdropFilter",
2764
- "isA11yMode",
2765
- "a11yPosition"
2766
- ]),
2767
- E(e.$slots, "skeleton", {}, () => [O(or) ? (C(), Ne(ge, { key: 0 })) : g("", !0)], !0)
2768
- ], 46, nt)) : (C(), _("div", On, [Fe(O(qe), {
2769
- name: "circleCancel",
2770
- stroke: "red"
2771
- }), r[4] ||= v("span", null, "Dataset is not processable", -1)]));
2772
- }
2773
- }, [["__scopeId", "data-v-6e6dae1f"]]);
2774
- //#endregion
2775
- export { N as n, kn as t };