vue-data-ui 3.20.3 → 3.20.4

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 (322) hide show
  1. package/dist/A11yDataTable-BCbtxMU6.js +45 -0
  2. package/dist/Arrow-D6j6ocXm.js +116 -0
  3. package/dist/BaseDraggableDialog-4hDW-Rj2.js +272 -0
  4. package/dist/BaseIcon-DfLoHNUj.js +502 -0
  5. package/dist/BaseLegendToggle-C_Db-y7s.js +56 -0
  6. package/dist/BaseScanner-Dr2a1Msy.js +27 -0
  7. package/dist/BaseZoomControls-CG7hI_1P.js +111 -0
  8. package/dist/ColorPicker-Bjwxnvfh.js +255 -0
  9. package/dist/DataTable-B--IN22e.js +150 -0
  10. package/dist/Legend-Cz2uQ5gs.js +114 -0
  11. package/dist/NonSvgPenAndPaper-gLNJ1Lmr.js +577 -0
  12. package/dist/PackageVersion-BYcZLGDG.js +11 -0
  13. package/dist/PenAndPaper-DqrClVfb.js +461 -0
  14. package/dist/RecursiveCircles-D6aDPmoe.js +117 -0
  15. package/dist/RecursiveLabels-D9rfID6q.js +56 -0
  16. package/dist/RecursiveLinks-BygcpDiT.js +78 -0
  17. package/dist/Shape-BPCJfphn.js +141 -0
  18. package/dist/Slicer-SHBj0VaV.js +1144 -0
  19. package/dist/SlicerPreview-DdihbUSJ.js +1668 -0
  20. package/dist/SparkTooltip-CfE6yCad.js +93 -0
  21. package/dist/Title-NWp4qB4K.js +87 -0
  22. package/dist/Tooltip-BENq327o.js +312 -0
  23. package/dist/UserOptions-C1NgoGu6.js +1411 -0
  24. package/dist/_plugin-vue_export-helper-B3ysoDQm.js +8 -0
  25. package/dist/canvas-lib-BOP_HS11.js +79 -0
  26. package/dist/components/arrow.js +2 -0
  27. package/dist/components/vue-ui-3d-bar.js +2 -0
  28. package/dist/components/vue-ui-accordion.js +2 -0
  29. package/dist/components/vue-ui-age-pyramid.js +2 -0
  30. package/dist/components/vue-ui-annotator.js +2 -0
  31. package/dist/components/vue-ui-bullet.js +2 -0
  32. package/dist/components/vue-ui-bump.js +2 -0
  33. package/dist/components/vue-ui-candlestick.js +2 -0
  34. package/dist/components/vue-ui-carousel-table.js +2 -0
  35. package/dist/components/vue-ui-chestnut.js +2 -0
  36. package/dist/components/vue-ui-chord.js +2 -0
  37. package/dist/components/vue-ui-circle-pack.js +2 -0
  38. package/dist/components/vue-ui-cursor.js +2 -0
  39. package/dist/components/vue-ui-dag.js +2 -0
  40. package/dist/components/vue-ui-dashboard.js +2 -0
  41. package/dist/components/vue-ui-digits.js +2 -0
  42. package/dist/components/vue-ui-donut-evolution.js +2 -0
  43. package/dist/components/vue-ui-donut.js +2 -0
  44. package/dist/components/vue-ui-dumbbell.js +2 -0
  45. package/dist/components/vue-ui-flow.js +2 -0
  46. package/dist/components/vue-ui-funnel.js +2 -0
  47. package/dist/components/vue-ui-galaxy.js +2 -0
  48. package/dist/components/vue-ui-gauge.js +2 -0
  49. package/dist/components/vue-ui-geo.js +2 -0
  50. package/dist/components/vue-ui-gizmo.js +2 -0
  51. package/dist/components/vue-ui-heatmap.js +2 -0
  52. package/dist/components/vue-ui-history-plot.js +2 -0
  53. package/dist/components/vue-ui-horizontal-bar.js +2 -0
  54. package/dist/components/vue-ui-icon.js +2 -0
  55. package/dist/components/vue-ui-kpi.js +2 -0
  56. package/dist/components/vue-ui-mini-loader.js +2 -0
  57. package/dist/components/vue-ui-molecule.js +2 -0
  58. package/dist/components/vue-ui-mood-radar.js +2 -0
  59. package/dist/components/vue-ui-nested-donuts.js +2 -0
  60. package/dist/components/vue-ui-onion.js +2 -0
  61. package/dist/components/vue-ui-parallel-coordinate-plot.js +2 -0
  62. package/dist/components/vue-ui-pattern-seed.js +2 -0
  63. package/dist/components/vue-ui-pattern.js +2 -0
  64. package/dist/components/vue-ui-quadrant.js +2 -0
  65. package/dist/components/vue-ui-quick-chart.js +2 -0
  66. package/dist/components/vue-ui-radar.js +2 -0
  67. package/dist/components/vue-ui-rating.js +2 -0
  68. package/dist/components/vue-ui-relation-circle.js +2 -0
  69. package/dist/components/vue-ui-ridgeline.js +2 -0
  70. package/dist/components/vue-ui-rings.js +2 -0
  71. package/dist/components/vue-ui-scatter.js +2 -0
  72. package/dist/components/vue-ui-skeleton.js +2 -0
  73. package/dist/components/vue-ui-smiley.js +2 -0
  74. package/dist/components/vue-ui-spark-trend.js +2 -0
  75. package/dist/components/vue-ui-sparkbar.js +2 -0
  76. package/dist/components/vue-ui-sparkgauge.js +2 -0
  77. package/dist/components/vue-ui-sparkhistogram.js +2 -0
  78. package/dist/components/vue-ui-sparkline.js +2 -0
  79. package/dist/components/vue-ui-sparkstackbar.js +2 -0
  80. package/dist/components/vue-ui-stackbar.js +2 -0
  81. package/dist/components/vue-ui-stackline.js +2 -0
  82. package/dist/components/vue-ui-strip-plot.js +2 -0
  83. package/dist/components/vue-ui-table-heatmap.js +2 -0
  84. package/dist/components/vue-ui-table-sparkline.js +2 -0
  85. package/dist/components/vue-ui-table.js +2 -0
  86. package/dist/components/vue-ui-thermometer.js +2 -0
  87. package/dist/components/vue-ui-timer.js +2 -0
  88. package/dist/components/vue-ui-tiremarks.js +2 -0
  89. package/dist/components/vue-ui-treemap.js +2 -0
  90. package/dist/components/vue-ui-vertical-bar.js +2 -0
  91. package/dist/components/vue-ui-waffle.js +2 -0
  92. package/dist/components/vue-ui-wheel.js +2 -0
  93. package/dist/components/vue-ui-word-cloud.js +2 -0
  94. package/dist/components/vue-ui-world.js +2 -0
  95. package/dist/components/vue-ui-xy-canvas.js +2 -0
  96. package/dist/components/vue-ui-xy.js +2 -0
  97. package/dist/dom-to-png-BYtB4BF3.js +237 -0
  98. package/dist/exposedLib-CI8ji8G-.js +19 -0
  99. package/dist/geoProjections-Czak6Jn1.js +145 -0
  100. package/dist/img-1cKsci8e.js +74 -0
  101. package/dist/labelUtils-CUctkYoA.js +19 -0
  102. package/dist/lib-DUeYQsS0.js +1882 -0
  103. package/dist/llms.txt +232 -0
  104. package/dist/patternUtils-CS7hn6at.js +258 -0
  105. package/dist/pdf-D0eZ99cP.js +90 -0
  106. package/dist/rolldown-runtime-Dy4uBu1J.js +11 -0
  107. package/dist/style.css +2 -0
  108. package/dist/types/arrow.d.ts +4 -0
  109. package/dist/types/utils.d.ts +551 -0
  110. package/dist/types/vue-data-ui.d.ts +17190 -0
  111. package/dist/types/vue-ui-3d-bar.d.ts +93 -0
  112. package/dist/types/vue-ui-accordion.d.ts +11 -0
  113. package/dist/types/vue-ui-age-pyramid.d.ts +108 -0
  114. package/dist/types/vue-ui-annotator.d.ts +34 -0
  115. package/dist/types/vue-ui-bullet.d.ts +85 -0
  116. package/dist/types/vue-ui-bump.d.ts +92 -0
  117. package/dist/types/vue-ui-candlestick.d.ts +106 -0
  118. package/dist/types/vue-ui-carousel-table.d.ts +59 -0
  119. package/dist/types/vue-ui-chestnut.d.ts +98 -0
  120. package/dist/types/vue-ui-chord.d.ts +110 -0
  121. package/dist/types/vue-ui-circle-pack.d.ts +126 -0
  122. package/dist/types/vue-ui-cursor.d.ts +9 -0
  123. package/dist/types/vue-ui-dag.d.ts +125 -0
  124. package/dist/types/vue-ui-dashboard.d.ts +68 -0
  125. package/dist/types/vue-ui-digits.d.ts +12 -0
  126. package/dist/types/vue-ui-donut-evolution.d.ts +98 -0
  127. package/dist/types/vue-ui-donut.d.ts +123 -0
  128. package/dist/types/vue-ui-dumbbell.d.ts +94 -0
  129. package/dist/types/vue-ui-flow.d.ts +106 -0
  130. package/dist/types/vue-ui-funnel.d.ts +79 -0
  131. package/dist/types/vue-ui-galaxy.d.ts +114 -0
  132. package/dist/types/vue-ui-gauge.d.ts +89 -0
  133. package/dist/types/vue-ui-geo.d.ts +94 -0
  134. package/dist/types/vue-ui-gizmo.d.ts +22 -0
  135. package/dist/types/vue-ui-heatmap.d.ts +101 -0
  136. package/dist/types/vue-ui-history-plot.d.ts +114 -0
  137. package/dist/types/vue-ui-horizontal-bar.d.ts +116 -0
  138. package/dist/types/vue-ui-icon.d.ts +15 -0
  139. package/dist/types/vue-ui-kpi.d.ts +25 -0
  140. package/dist/types/vue-ui-mini-loader.d.ts +15 -0
  141. package/dist/types/vue-ui-molecule.d.ts +112 -0
  142. package/dist/types/vue-ui-mood-radar.d.ts +92 -0
  143. package/dist/types/vue-ui-nested-donuts.d.ts +111 -0
  144. package/dist/types/vue-ui-onion.d.ts +106 -0
  145. package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +125 -0
  146. package/dist/types/vue-ui-pattern-seed.d.ts +14 -0
  147. package/dist/types/vue-ui-pattern.d.ts +15 -0
  148. package/dist/types/vue-ui-quadrant.d.ts +125 -0
  149. package/dist/types/vue-ui-quick-chart.d.ts +108 -0
  150. package/dist/types/vue-ui-radar.d.ts +116 -0
  151. package/dist/types/vue-ui-rating.d.ts +42 -0
  152. package/dist/types/vue-ui-relation-circle.d.ts +92 -0
  153. package/dist/types/vue-ui-ridgeline.d.ts +106 -0
  154. package/dist/types/vue-ui-rings.d.ts +98 -0
  155. package/dist/types/vue-ui-scatter.d.ts +97 -0
  156. package/dist/types/vue-ui-skeleton.d.ts +11 -0
  157. package/dist/types/vue-ui-smiley.d.ts +28 -0
  158. package/dist/types/vue-ui-spark-trend.d.ts +19 -0
  159. package/dist/types/vue-ui-sparkbar.d.ts +49 -0
  160. package/dist/types/vue-ui-sparkgauge.d.ts +28 -0
  161. package/dist/types/vue-ui-sparkhistogram.d.ts +46 -0
  162. package/dist/types/vue-ui-sparkline.d.ts +59 -0
  163. package/dist/types/vue-ui-sparkstackbar.d.ts +60 -0
  164. package/dist/types/vue-ui-stackbar.d.ts +118 -0
  165. package/dist/types/vue-ui-stackline.d.ts +114 -0
  166. package/dist/types/vue-ui-strip-plot.d.ts +96 -0
  167. package/dist/types/vue-ui-table-heatmap.d.ts +62 -0
  168. package/dist/types/vue-ui-table-sparkline.d.ts +53 -0
  169. package/dist/types/vue-ui-table.d.ts +38 -0
  170. package/dist/types/vue-ui-thermometer.d.ts +70 -0
  171. package/dist/types/vue-ui-timer.d.ts +49 -0
  172. package/dist/types/vue-ui-tiremarks.d.ts +70 -0
  173. package/dist/types/vue-ui-treemap.d.ts +104 -0
  174. package/dist/types/vue-ui-vertical-bar.d.ts +22 -0
  175. package/dist/types/vue-ui-waffle.d.ts +101 -0
  176. package/dist/types/vue-ui-wheel.d.ts +70 -0
  177. package/dist/types/vue-ui-word-cloud.d.ts +97 -0
  178. package/dist/types/vue-ui-world.d.ts +98 -0
  179. package/dist/types/vue-ui-xy-canvas.d.ts +101 -0
  180. package/dist/types/vue-ui-xy.d.ts +146 -0
  181. package/dist/useAutoSizeLabelsInsideViewbox-BIVntRZp.js +50 -0
  182. package/dist/useChartAccessibility-DYqac8yF.js +12 -0
  183. package/dist/useConfig-DAyQk86L.js +7479 -0
  184. package/dist/useFitSvgText-CT3nmlaS.js +63 -0
  185. package/dist/useNestedProp-CNcoy38D.js +10 -0
  186. package/dist/useObjectBindings-BI7hP-BC.js +189 -0
  187. package/dist/usePanZoom-CYU3B4T3.js +157 -0
  188. package/dist/usePrefersMotion-BC-CsqR1.js +15 -0
  189. package/dist/usePrinter-C1Gqt_Sp.js +49 -0
  190. package/dist/useResponsive-BfnK0KxU.js +19 -0
  191. package/dist/useStableElementSize-C7KADDKj.js +77 -0
  192. package/dist/useSvgExport-SVIsDot8.js +755 -0
  193. package/dist/useTableResponsive-B24Uwt2E.js +24 -0
  194. package/dist/useThemeCheck-C43Tcqmk.js +24 -0
  195. package/dist/useTimeLabelCollider-AEcY4Ioe.js +57 -0
  196. package/dist/useTimeLabels-BmBRv27Y.js +272 -0
  197. package/dist/useUserOptionState-DK-_1ddE.js +15 -0
  198. package/dist/utils.js +28 -0
  199. package/dist/vClickOutside-DUrZWttG.js +13 -0
  200. package/dist/vue-data-ui-DuLO91Bk.js +274 -0
  201. package/dist/vue-data-ui.js +76 -0
  202. package/dist/vue-ui-3d-bar-DMDfraIo.js +1757 -0
  203. package/dist/vue-ui-accordion-Dw4MHKVB.js +81 -0
  204. package/dist/vue-ui-age-pyramid-CN68d9su.js +1238 -0
  205. package/dist/vue-ui-annotator-DLPUAKlm.js +2899 -0
  206. package/dist/vue-ui-bullet-V21vyb4T.js +710 -0
  207. package/dist/vue-ui-bump-BvnBJcx0.js +1249 -0
  208. package/dist/vue-ui-candlestick-DaIeT5kU.js +1826 -0
  209. package/dist/vue-ui-carousel-table-BBTm1Etq.js +455 -0
  210. package/dist/vue-ui-chestnut-BLtE39N7.js +2010 -0
  211. package/dist/vue-ui-chord-D1UVle9f.js +1391 -0
  212. package/dist/vue-ui-circle-pack-BDDVjuT1.js +1608 -0
  213. package/dist/vue-ui-cursor-CiU4ttGN.js +283 -0
  214. package/dist/vue-ui-dag-D2U673ns.js +2909 -0
  215. package/dist/vue-ui-dashboard-JK7v_bwo.js +513 -0
  216. package/dist/vue-ui-digits-D5b3eJ5q.js +209 -0
  217. package/dist/vue-ui-donut-BYf4FbjI.js +2410 -0
  218. package/dist/vue-ui-donut-evolution-Id7YwbiG.js +1510 -0
  219. package/dist/vue-ui-dumbbell-CToh2l5g.js +1530 -0
  220. package/dist/vue-ui-flow-CmBI0IKa.js +1235 -0
  221. package/dist/vue-ui-funnel-B67L6mTB.js +777 -0
  222. package/dist/vue-ui-galaxy-CFZP36s4.js +1077 -0
  223. package/dist/vue-ui-gauge-sZxKMn7t.js +920 -0
  224. package/dist/vue-ui-geo-DK8fAoZd.js +1516 -0
  225. package/dist/vue-ui-gizmo-DsJtcBEf.js +225 -0
  226. package/dist/vue-ui-heatmap-B87-9zpu.js +1568 -0
  227. package/dist/vue-ui-history-plot-Dhv-zMSR.js +1554 -0
  228. package/dist/vue-ui-horizontal-bar-BAT7IYhL.js +1681 -0
  229. package/dist/vue-ui-kpi-BggezxVU.js +96 -0
  230. package/dist/vue-ui-mini-loader-CyqBt2g4.js +125 -0
  231. package/dist/vue-ui-molecule-uXC5g9qp.js +925 -0
  232. package/dist/vue-ui-mood-radar-BYoxNRMc.js +1148 -0
  233. package/dist/vue-ui-nested-donuts-BVniVpDM.js +1487 -0
  234. package/dist/vue-ui-onion-CWzeZ5Ak.js +1200 -0
  235. package/dist/vue-ui-parallel-coordinate-plot-Dbx6W4ZW.js +1416 -0
  236. package/dist/vue-ui-pattern-DKozfnVn.js +154 -0
  237. package/dist/vue-ui-pattern-seed-BB1honLm.js +61 -0
  238. package/dist/vue-ui-quadrant-BrPLv-sz.js +1978 -0
  239. package/dist/vue-ui-quick-chart-B0S_4DeW.js +2469 -0
  240. package/dist/vue-ui-radar-CUo6FWXZ.js +1229 -0
  241. package/dist/vue-ui-rating-BG4lf1z8.js +343 -0
  242. package/dist/vue-ui-relation-circle-2a6IZgKe.js +924 -0
  243. package/dist/vue-ui-ridgeline-DnQBrx71.js +1622 -0
  244. package/dist/vue-ui-rings-BibWJNh2.js +1246 -0
  245. package/dist/vue-ui-scatter-8srfWwTp.js +2413 -0
  246. package/dist/vue-ui-skeleton-BoKB7qJM.js +2556 -0
  247. package/dist/vue-ui-smiley-G89TxRU-.js +356 -0
  248. package/dist/vue-ui-spark-trend-Cq4pIgWr.js +438 -0
  249. package/dist/vue-ui-sparkbar-CgFKnZEF.js +393 -0
  250. package/dist/vue-ui-sparkgauge-ea-PGnBC.js +255 -0
  251. package/dist/vue-ui-sparkhistogram-BfgnG41U.js +560 -0
  252. package/dist/vue-ui-sparkline-CDOa3xh8.js +1507 -0
  253. package/dist/vue-ui-sparkstackbar-DEsSr92Z.js +662 -0
  254. package/dist/vue-ui-stackbar-BeegxXk_.js +2270 -0
  255. package/dist/vue-ui-stackline-_G-cbZRe.js +2398 -0
  256. package/dist/vue-ui-strip-plot-VasAk496.js +1340 -0
  257. package/dist/vue-ui-table-DysBVxy5.js +1338 -0
  258. package/dist/vue-ui-table-heatmap-CCGjbSzQ.js +344 -0
  259. package/dist/vue-ui-table-sparkline-DQduGRPm.js +707 -0
  260. package/dist/vue-ui-thermometer-1l6KUpS8.js +763 -0
  261. package/dist/vue-ui-timer-Db2d4LNp.js +439 -0
  262. package/dist/vue-ui-tiremarks-YtFZjYFp.js +552 -0
  263. package/dist/vue-ui-treemap-DxwEGZ9p.js +1587 -0
  264. package/dist/vue-ui-waffle-C9bzj7pV.js +1362 -0
  265. package/dist/vue-ui-wheel-DKzocpS-.js +885 -0
  266. package/dist/vue-ui-word-cloud-DkNU1GFp.js +1656 -0
  267. package/dist/vue-ui-world-DhnfDaFE.js +14264 -0
  268. package/dist/vue-ui-xy-BzhW8pHi.js +4578 -0
  269. package/dist/vue-ui-xy-canvas-BUPnRZ3C.js +1787 -0
  270. package/dist/vue_ui_3d_bar-C4R7o-yX.js +185 -0
  271. package/dist/vue_ui_age_pyramid-BY6c-oX_.js +301 -0
  272. package/dist/vue_ui_bullet-ClzdLoOv.js +186 -0
  273. package/dist/vue_ui_bump-Vl-zYAtG.js +201 -0
  274. package/dist/vue_ui_candlestick-J8jmJvxP.js +374 -0
  275. package/dist/vue_ui_chestnut-D2oUhad6.js +305 -0
  276. package/dist/vue_ui_chord-DPfS1Umc.js +275 -0
  277. package/dist/vue_ui_circle_pack-DZC_rdfn.js +172 -0
  278. package/dist/vue_ui_dag-TsJ_azQq.js +258 -0
  279. package/dist/vue_ui_donut-BDGqG07h.js +358 -0
  280. package/dist/vue_ui_donut_evolution-D1yAAIHr.js +717 -0
  281. package/dist/vue_ui_dumbbell-Bfe_jFyi.js +304 -0
  282. package/dist/vue_ui_flow-BewZjjKG.js +238 -0
  283. package/dist/vue_ui_funnel-_Og4EEkO.js +234 -0
  284. package/dist/vue_ui_galaxy-Ig0cc1_h.js +265 -0
  285. package/dist/vue_ui_gauge-Cf1RZc9q.js +178 -0
  286. package/dist/vue_ui_geo-B8TODs-G.js +248 -0
  287. package/dist/vue_ui_heatmap-B2BBBSWG.js +319 -0
  288. package/dist/vue_ui_history_plot-CuN63VEc.js +413 -0
  289. package/dist/vue_ui_horizontal_bar-C4J4QzXf.js +341 -0
  290. package/dist/vue_ui_molecule-CO9L59SF.js +231 -0
  291. package/dist/vue_ui_mood_radar-BA6LAKhk.js +281 -0
  292. package/dist/vue_ui_nested_donuts-B8csIoVO.js +273 -0
  293. package/dist/vue_ui_onion-1FTFFS46.js +293 -0
  294. package/dist/vue_ui_parallel_coordinate_plot-CBiOBira.js +278 -0
  295. package/dist/vue_ui_quadrant-CDSTKTJz.js +428 -0
  296. package/dist/vue_ui_quick_chart-mZBdml3Z.js +139 -0
  297. package/dist/vue_ui_radar-jafTED5j.js +306 -0
  298. package/dist/vue_ui_relation_circle-D0p4mXmv.js +98 -0
  299. package/dist/vue_ui_ridgeline-VM8_mx4J.js +767 -0
  300. package/dist/vue_ui_rings-BVgD2aMn.js +320 -0
  301. package/dist/vue_ui_scatter-I0POnicu.js +479 -0
  302. package/dist/vue_ui_spark_trend-DxVmpkmC.js +82 -0
  303. package/dist/vue_ui_sparkbar-z6qO--Kf.js +64 -0
  304. package/dist/vue_ui_sparkgauge-BX1MS3bA.js +90 -0
  305. package/dist/vue_ui_sparkhistogram-BRgvKUH6.js +123 -0
  306. package/dist/vue_ui_sparkline-auZhap6Y.js +151 -0
  307. package/dist/vue_ui_sparkstackbar-BOjuQnZd.js +175 -0
  308. package/dist/vue_ui_stackbar-COOrQQdK.js +412 -0
  309. package/dist/vue_ui_stackline-DQqKPA9z.js +460 -0
  310. package/dist/vue_ui_strip_plot-CtJe8_gq.js +301 -0
  311. package/dist/vue_ui_table_heatmap-w8vx5k6f.js +80 -0
  312. package/dist/vue_ui_table_sparkline-DAbkUrNz.js +124 -0
  313. package/dist/vue_ui_thermometer-DxgqWKlE.js +123 -0
  314. package/dist/vue_ui_tiremarks-CdEPieWV.js +122 -0
  315. package/dist/vue_ui_treemap-DoEtkRN6.js +328 -0
  316. package/dist/vue_ui_vertical_bar-CP-MKz1j.js +247 -0
  317. package/dist/vue_ui_waffle-DIARFc7g.js +292 -0
  318. package/dist/vue_ui_wheel-DZ_nR--t.js +133 -0
  319. package/dist/vue_ui_word_cloud-C-qIMNLu.js +254 -0
  320. package/dist/vue_ui_xy-BLUkWEAm.js +482 -0
  321. package/dist/vue_ui_xy_canvas-Cb6dg3eK.js +408 -0
  322. package/package.json +120 -120
@@ -0,0 +1,1530 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { Bt as t, Ct as n, G as r, H as i, J as a, Mt as o, S as s, W as c, X as ee, bt as l, h as te, i as u, ot as ne, t as re, v as ie } from "./lib-DUeYQsS0.js";
3
+ import { t as ae } from "./useConfig-DAyQk86L.js";
4
+ import { t as oe } from "./usePrinter-C1Gqt_Sp.js";
5
+ import { n as se, t as ce } from "./BaseScanner-Dr2a1Msy.js";
6
+ import { t as le } from "./useSvgExport-SVIsDot8.js";
7
+ import { t as ue } from "./useNestedProp-CNcoy38D.js";
8
+ import { t as de } from "./useThemeCheck-C43Tcqmk.js";
9
+ import { t as fe } from "./useTimeLabelCollider-AEcY4Ioe.js";
10
+ import { t as pe } from "./img-1cKsci8e.js";
11
+ import { n as me } from "./Title-NWp4qB4K.js";
12
+ import { t as he } from "./_plugin-vue_export-helper-B3ysoDQm.js";
13
+ import { c as ge } from "./canvas-lib-BOP_HS11.js";
14
+ import { t as _e } from "./useResponsive-BfnK0KxU.js";
15
+ import { t as ve } from "./A11yDataTable-BCbtxMU6.js";
16
+ import { t as ye } from "./useUserOptionState-DK-_1ddE.js";
17
+ import { t as be } from "./useChartAccessibility-DYqac8yF.js";
18
+ import { t as xe } from "./Legend-Cz2uQ5gs.js";
19
+ import { t as Se } from "./vue_ui_dumbbell-Bfe_jFyi.js";
20
+ import { Fragment as d, Teleport as Ce, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as we, createTextVNode as Te, createVNode as Ee, defineAsyncComponent as _, guardReactiveProps as v, mergeProps as De, nextTick as Oe, normalizeClass as ke, normalizeProps as y, normalizeStyle as b, onBeforeUnmount as Ae, onMounted as je, openBlock as x, ref as S, renderList as C, renderSlot as w, resolveDynamicComponent as Me, shallowRef as Ne, toDisplayString as T, toRefs as Pe, unref as E, vShow as D, watch as Fe, watchEffect as Ie, withCtx as O, withDirectives as Le } from "vue";
21
+ //#region src/components/vue-ui-dumbbell.vue
22
+ var Re = /* @__PURE__ */ e({ default: () => Yt }), ze = ["id"], Be = ["id"], Ve = ["id"], He = { style: { position: "relative" } }, Ue = [
23
+ "xmlns",
24
+ "viewBox",
25
+ "aria-describedby"
26
+ ], We = [
27
+ "x",
28
+ "y",
29
+ "width",
30
+ "height"
31
+ ], Ge = { key: 1 }, Ke = [
32
+ "x1",
33
+ "x2",
34
+ "y1",
35
+ "y2",
36
+ "stroke",
37
+ "stroke-width",
38
+ "stroke-dasharray"
39
+ ], qe = { key: 2 }, Je = [
40
+ "x1",
41
+ "x2",
42
+ "y1",
43
+ "y2",
44
+ "stroke",
45
+ "stroke-width",
46
+ "stroke-dasharray"
47
+ ], Ye = [
48
+ "x1",
49
+ "x2",
50
+ "y1",
51
+ "y2",
52
+ "stroke",
53
+ "stroke-width",
54
+ "stroke-dasharray"
55
+ ], Xe = [
56
+ "transform",
57
+ "font-size",
58
+ "fill"
59
+ ], Ze = [
60
+ "x",
61
+ "y",
62
+ "font-size",
63
+ "fill",
64
+ "font-weight",
65
+ "onMouseenter",
66
+ "onMouseleave",
67
+ "onClick"
68
+ ], Qe = [
69
+ "x",
70
+ "y",
71
+ "font-size",
72
+ "fill",
73
+ "onMouseenter",
74
+ "onMouseleave",
75
+ "onClick"
76
+ ], $e = [
77
+ "x",
78
+ "y",
79
+ "font-size",
80
+ "fill"
81
+ ], et = [
82
+ "transform",
83
+ "font-size",
84
+ "fill",
85
+ "font-weight",
86
+ "text-anchor"
87
+ ], tt = [
88
+ "d",
89
+ "stroke",
90
+ "stroke-width",
91
+ "stroke-dasharray"
92
+ ], nt = [
93
+ "d",
94
+ "stroke",
95
+ "stroke-width",
96
+ "stroke-dasharray"
97
+ ], rt = [
98
+ "x",
99
+ "y",
100
+ "height",
101
+ "width",
102
+ "fill"
103
+ ], it = [
104
+ "transform",
105
+ "fill",
106
+ "font-size"
107
+ ], at = ["id"], ot = ["stop-color"], st = ["stop-color"], ct = ["stop-color"], lt = ["id"], ut = ["stop-color"], dt = ["stop-color"], ft = ["stop-color"], pt = ["id"], mt = ["stop-color"], ht = ["stop-color"], gt = ["stop-color"], _t = ["id"], vt = ["stop-color"], yt = ["stop-color"], bt = ["stop-color"], xt = ["id"], St = ["stop-color"], Ct = ["stop-color"], wt = ["stop-color"], Tt = ["id"], Et = ["stop-color"], Dt = ["stop-color"], Ot = ["id"], kt = ["stop-color"], At = ["stop-color"], jt = { key: 0 }, Mt = { key: 0 }, Nt = ["d", "fill"], Pt = { key: 1 }, Ft = [
108
+ "x",
109
+ "y",
110
+ "height",
111
+ "width",
112
+ "fill"
113
+ ], It = [
114
+ "cx",
115
+ "cy",
116
+ "r",
117
+ "fill",
118
+ "stroke",
119
+ "stroke-width"
120
+ ], Lt = [
121
+ "cx",
122
+ "cy",
123
+ "r",
124
+ "fill",
125
+ "stroke",
126
+ "stroke-width"
127
+ ], Rt = { key: 7 }, zt = [
128
+ "x",
129
+ "y",
130
+ "fill",
131
+ "font-size"
132
+ ], Bt = { key: 8 }, Vt = [
133
+ "x",
134
+ "y",
135
+ "fill",
136
+ "font-size"
137
+ ], Ht = [
138
+ "x",
139
+ "y",
140
+ "width",
141
+ "height",
142
+ "fill",
143
+ "onMouseenter",
144
+ "onMouseleave",
145
+ "onClick"
146
+ ], Ut = {
147
+ key: 0,
148
+ style: {
149
+ position: "absolute",
150
+ top: "100%",
151
+ left: "0",
152
+ width: "100%"
153
+ },
154
+ "data-dom-to-png-ignore": "",
155
+ "aria-hidden": "true"
156
+ }, Wt = {
157
+ key: 5,
158
+ class: "vue-data-ui-watermark"
159
+ }, Gt = ["id"], Kt = [
160
+ "xmlns",
161
+ "height",
162
+ "width"
163
+ ], qt = ["fill"], Jt = ["innerHTML"], Yt = /* @__PURE__ */ he({
164
+ __name: "vue-ui-dumbbell",
165
+ props: {
166
+ config: {
167
+ type: Object,
168
+ default() {
169
+ return {};
170
+ }
171
+ },
172
+ dataset: {
173
+ type: Array,
174
+ default() {
175
+ return [];
176
+ }
177
+ }
178
+ },
179
+ emits: ["selectDatapoint", "copyAlt"],
180
+ setup(e, { expose: he, emit: Re }) {
181
+ let Yt = _(() => import("./BaseIcon-DfLoHNUj.js").then((e) => e.n)), Xt = _(() => import("./vue-ui-accordion-Dw4MHKVB.js").then((e) => e.n)), Zt = _(() => import("./DataTable-B--IN22e.js")), Qt = _(() => import("./PenAndPaper-DqrClVfb.js").then((e) => e.t)), $t = _(() => import("./UserOptions-C1NgoGu6.js").then((e) => e.n)), en = _(() => import("./PackageVersion-BYcZLGDG.js").then((e) => e.t)), tn = _(() => import("./BaseDraggableDialog-4hDW-Rj2.js").then((e) => e.n)), { vue_ui_dumbbell: nn } = ae(), { isThemeValid: rn, warnInvalidTheme: an } = de(), k = e, on = Re, sn = f({
182
+ get() {
183
+ return !!k.dataset && k.dataset.length;
184
+ },
185
+ set(e) {
186
+ return e;
187
+ }
188
+ }), A = S(i()), cn = S(0), j = S(null), ln = S(null), un = S(null), dn = S(null), fn = S(null), pn = S(0), mn = S(0), hn = S(0), gn = S(!1), _n = S(null), vn = S(null), yn = S(!1), bn = S(!1), xn = S(null), Sn = S(null), Cn = S(null), wn = S(null), M = S(null), N = S(null), P = S(null), Tn = S(!1), F = S(!1), I = S(Nn()), L = f(() => I.value.userOptions.useCursorPointer), En = f(() => t({
189
+ defaultConfig: {
190
+ userOptions: { show: !1 },
191
+ table: { show: !1 },
192
+ useAnimation: !1,
193
+ style: { chart: {
194
+ backgroundColor: "#99999930",
195
+ padding: {
196
+ top: 12,
197
+ right: 12,
198
+ bottom: 12,
199
+ left: 12
200
+ },
201
+ grid: {
202
+ horizontalGrid: { stroke: "#6A6A6A" },
203
+ verticalGrid: { stroke: "#6A6A6A" }
204
+ },
205
+ labels: {
206
+ axis: {
207
+ yLabel: "",
208
+ xLabel: ""
209
+ },
210
+ xAxisLabels: { show: !1 },
211
+ yAxisLabels: { show: !1 },
212
+ endLabels: { show: !1 },
213
+ startLabels: { show: !1 }
214
+ },
215
+ legend: { backgroundColor: "transparent" },
216
+ plots: {
217
+ endColor: "#969696",
218
+ startColor: "#DBDBDB",
219
+ stroke: "#6A6A6A",
220
+ evaluationColors: { enable: !1 }
221
+ }
222
+ } }
223
+ },
224
+ userConfig: I.value.skeletonConfig ?? {}
225
+ })), { loading: Dn, FINAL_DATASET: On, manualLoading: kn } = se({
226
+ ...Pe(k),
227
+ FINAL_CONFIG: I,
228
+ prepareConfig: Nn,
229
+ skeletonDataset: k.config?.skeletonDataset ?? [
230
+ {
231
+ name: "_",
232
+ start: 21,
233
+ end: 34
234
+ },
235
+ {
236
+ name: "_",
237
+ start: 13,
238
+ end: 21
239
+ },
240
+ {
241
+ name: "_",
242
+ start: 8,
243
+ end: 13
244
+ },
245
+ {
246
+ name: "_",
247
+ start: 5,
248
+ end: 8
249
+ },
250
+ {
251
+ name: "_",
252
+ start: 3,
253
+ end: 5
254
+ }
255
+ ],
256
+ skeletonConfig: t({
257
+ defaultConfig: I.value,
258
+ userConfig: En.value
259
+ })
260
+ }), { userOptionsVisible: An, setUserOptionsVisibility: jn, keepUserOptionState: Mn } = ye({ config: I.value }), { svgRef: R } = be({ config: I.value.style.chart.title });
261
+ function Nn() {
262
+ let e = ue({
263
+ userConfig: k.config,
264
+ defaultConfig: nn
265
+ }), t = e.theme;
266
+ if (!t) return e;
267
+ if (!rn.value(e)) return an(e), e;
268
+ let n = ue({
269
+ userConfig: Se[t] || k.config,
270
+ defaultConfig: e
271
+ });
272
+ return ue({
273
+ userConfig: k.config,
274
+ defaultConfig: n
275
+ });
276
+ }
277
+ Fe(() => k.config, (e) => {
278
+ Dn.value || (I.value = Nn()), An.value = !I.value.userOptions.showOnChartHover, Fn(), pn.value += 1, mn.value += 1, hn.value += 1, W.value = I.value.style.chart.rowHeight, G.value = I.value.style.chart.width, V.value.showTable = I.value.table.show;
279
+ }, { deep: !0 }), Fe(() => On.value, (e) => {
280
+ Array.isArray(e) && e.length > 0 && (kn.value = !1), Jn(), Yn();
281
+ }, { deep: !0 });
282
+ let z = Ne(null), B = Ne(null);
283
+ je(() => {
284
+ gn.value = !0, Fn();
285
+ });
286
+ let Pn = f(() => !!I.value.debug);
287
+ function Fn() {
288
+ if (n(k.dataset) ? ee({
289
+ componentName: "VueUiDumbbell",
290
+ type: "dataset",
291
+ debug: Pn.value
292
+ }) : k.dataset.forEach((e, t) => {
293
+ ne({
294
+ datasetObject: e,
295
+ requiredAttributes: [
296
+ "name",
297
+ "start",
298
+ "end"
299
+ ]
300
+ }).forEach((e) => {
301
+ sn.value = !1, ee({
302
+ componentName: "VueUiDumbbell",
303
+ type: "datasetSerieAttribute",
304
+ property: e,
305
+ index: t,
306
+ debug: Pn.value
307
+ });
308
+ });
309
+ }), I.value.responsive) {
310
+ let e = ge(() => {
311
+ let { width: e, height: t } = _e({
312
+ chart: j.value,
313
+ title: I.value.style.chart.title.text ? ln.value : null,
314
+ legend: I.value.style.chart.legend.show ? un.value : null,
315
+ source: dn.value,
316
+ noTitle: fn.value
317
+ }), n = I.value.style.chart.title.text ? 24 : 0, r = I.value.style.chart.legend.show ? 24 : 0;
318
+ requestAnimationFrame(async () => {
319
+ G.value = Math.max(.1, e), W.value = Math.max(.1, (Math.max(.1, t) - (n + r)) / On.value.length), cr();
320
+ });
321
+ });
322
+ z.value && (B.value && z.value.unobserve(B.value), z.value.disconnect()), z.value = new ResizeObserver(e), B.value = j.value.parentNode, z.value.observe(B.value);
323
+ }
324
+ cr();
325
+ }
326
+ Ae(() => {
327
+ X.value != null && (cancelAnimationFrame(X.value), X.value = null), z.value && (B.value && z.value.unobserve(B.value), z.value.disconnect());
328
+ });
329
+ let { isPrinting: In, isImaging: Ln, generatePdf: Rn, generateImage: zn } = oe({
330
+ elementId: `dumbbell_${A.value}`,
331
+ fileName: I.value.style.chart.title.text || "vue-ui-dumbbell",
332
+ options: I.value.userOptions.print
333
+ }), Bn = f(() => I.value.userOptions.show && !I.value.style.chart.title.text), V = S({ showTable: I.value.table.show });
334
+ Fe(I, () => {
335
+ V.value = { showTable: I.value.table.show };
336
+ }, { immediate: !0 });
337
+ let H = f(() => On.value.map((e, t) => ({
338
+ ...e,
339
+ start: ie(e.start),
340
+ end: ie(e.end),
341
+ id: e.id ?? `${String(e.name)}__${String(e.start)}__${String(e.end)}__${i()}`
342
+ }))), Vn = f(() => {
343
+ let e = I.value.style.chart.grid, t = H.value.flatMap((e) => [e.start, e.end]).map((e) => Number(e)).filter((e) => Number.isFinite(e)), n = t.length ? Math.min(...t) : 0, r = t.length ? Math.max(...t) : 0;
344
+ return {
345
+ min: e.scaleMin ?? Math.min(n, 0),
346
+ max: e.scaleMax ?? r
347
+ };
348
+ }), U = f(() => te(Vn.value.min, Vn.value.max, I.value.style.chart.grid.scaleSteps)), W = S(I.value.style.chart.rowHeight), G = S(I.value.style.chart.width);
349
+ function Hn() {
350
+ let e = 0;
351
+ Sn.value && (e = Array.from(Sn.value.querySelectorAll("text")).reduce((e, t) => {
352
+ let n = t.getComputedTextLength();
353
+ return n > e ? n : e;
354
+ }, 0));
355
+ let t = xn.value ? xn.value.getBoundingClientRect().width : 0;
356
+ return e + t + (t ? 24 + I.value.style.chart.labels.axis.yLabelOffsetX : 0);
357
+ }
358
+ let Un = S(0), Wn = ge((e) => {
359
+ Un.value = e;
360
+ }, 100);
361
+ Ie((e) => {
362
+ let t = Cn.value;
363
+ if (!t) return;
364
+ let n = new ResizeObserver((e) => {
365
+ Wn(e[0].contentRect.height);
366
+ });
367
+ n.observe(t), e(() => n.disconnect());
368
+ }), Ae(() => {
369
+ Un.value = 0;
370
+ });
371
+ let Gn = f(() => {
372
+ F.value;
373
+ let e = 0;
374
+ wn.value && (e = wn.value.getBBox().height);
375
+ let t = 0;
376
+ return Cn.value && (t = Un.value), e + t;
377
+ }), Kn = f(() => H.value.length);
378
+ function qn(e, t, n) {
379
+ let r = Number(e), i = Number(t.min), a = Number(t.max), o = Number(n.width);
380
+ if (!Number.isFinite(r) || !Number.isFinite(i) || !Number.isFinite(a) || !Number.isFinite(o)) return n.left;
381
+ let s = a - i;
382
+ return s <= 0 ? n.left : n.left + (r - i) / s * o;
383
+ }
384
+ let K = f(() => {
385
+ F.value;
386
+ let e = Hn(), t = I.value.style.chart.padding, n = I.value.style.chart.labels.axis.xLabel ? I.value.style.chart.labels.axis.xLabelOffsetY : 0, r = W.value * Kn.value - Gn.value - t.top - t.bottom - n, i = r / Kn.value, a = W.value * Kn.value, o = G.value - e - t.left - t.right, s = U.value.ticks.length * (o / U.value.ticks.length);
387
+ return {
388
+ left: I.value.style.chart.padding.left + e,
389
+ right: G.value - I.value.style.chart.padding.right,
390
+ top: I.value.style.chart.padding.top,
391
+ bottom: a - I.value.style.chart.padding.bottom - Gn.value - n,
392
+ width: o,
393
+ height: r,
394
+ rowHeight: i,
395
+ absoluteHeight: a,
396
+ widthPlotReference: s
397
+ };
398
+ }), q = f(() => Math.min(W.value / 2 * .7, I.value.style.chart.plots.radius)), J = S([]), Y = f({
399
+ get() {
400
+ let e = K.value, t = U.value;
401
+ return J.value.map((n, r) => {
402
+ let i = qn(n.start, t, e), a = qn(n.endVal, t, e), o = i + (a - i) / 2, s = ![null, void 0].includes(n.start) && ![null, void 0].includes(n.end) && n.end > n.start, c = ![null, void 0].includes(n.start) && ![null, void 0].includes(n.end) && n.end < n.start, ee = ![null, void 0].includes(n.start) && ![null, void 0].includes(n.end) && n.end === n.start || [null, void 0].includes(n.start) || [null, void 0].includes(n.end), l = s ? I.value.style.chart.plots.evaluationColors.positive : c ? I.value.style.chart.plots.evaluationColors.negative : I.value.style.chart.plots.evaluationColors.neutral;
403
+ return {
404
+ ...n,
405
+ isPositive: s,
406
+ isNegative: c,
407
+ isNeutral: ee,
408
+ evaluationColor: l,
409
+ evaluationGrad: `url(#${s ? "positive" : c ? "negative" : "neutral"}_grad_${A.value})`,
410
+ startX: i,
411
+ endX: a,
412
+ centerX: o,
413
+ y: e.top + r * e.rowHeight + e.rowHeight / 2
414
+ };
415
+ });
416
+ },
417
+ set(e) {
418
+ J.value = e;
419
+ }
420
+ });
421
+ function Jn() {
422
+ J.value = H.value.map((e) => {
423
+ let t = Number(e.start);
424
+ return {
425
+ ...e,
426
+ endVal: Number.isFinite(t) ? t : 0
427
+ };
428
+ });
429
+ }
430
+ let X = S(null);
431
+ je(() => {
432
+ Yn();
433
+ });
434
+ function Yn() {
435
+ if (X.value != null && (cancelAnimationFrame(X.value), X.value = null), Jn(), !I.value.useAnimation) {
436
+ Y.value = J.value.map((e) => {
437
+ let t = Number(e.end);
438
+ return {
439
+ ...e,
440
+ endVal: Number.isFinite(t) ? t : e.endVal
441
+ };
442
+ });
443
+ return;
444
+ }
445
+ let e = Math.max(1, Math.min(100, I.value.animationSpeed || 100)) / 100, t = H.value.map((e) => {
446
+ let t = Number(e.start), n = Number(e.end), r = Number.isFinite(t) ? t : 0;
447
+ return (Number.isFinite(n) ? n : r) - r;
448
+ }), n = () => {
449
+ let r = !0;
450
+ Y.value = J.value.map((n, i) => {
451
+ let a = Number.isFinite(Number(n.end)) ? Number(n.end) : n.endVal, o = n.endVal + t[i] * e, s = t[i] >= 0 ? Math.min(o, a) : Math.max(o, a);
452
+ return s !== a && (r = !1), {
453
+ ...n,
454
+ endVal: s
455
+ };
456
+ }), r ? X.value = null : X.value = requestAnimationFrame(n);
457
+ };
458
+ X.value = requestAnimationFrame(n);
459
+ }
460
+ let Xn = f(() => I.value.style.chart.plots.evaluationColors.enable ? [
461
+ {
462
+ name: I.value.style.chart.legend.labelNegative,
463
+ color: I.value.style.chart.plots.gradient.show ? `url(#negative_grad_${A.value})` : I.value.style.chart.plots.evaluationColors.negative
464
+ },
465
+ {
466
+ name: I.value.style.chart.legend.labelNeutral,
467
+ color: I.value.style.chart.plots.gradient.show ? `url(#neutral_grad_${A.value})` : I.value.style.chart.plots.evaluationColors.neutral
468
+ },
469
+ {
470
+ name: I.value.style.chart.legend.labelPositive,
471
+ color: I.value.style.chart.plots.gradient.show ? `url(#positive_grad_${A.value})` : I.value.style.chart.plots.evaluationColors.positive
472
+ }
473
+ ] : [{
474
+ name: I.value.style.chart.legend.labelStart,
475
+ color: I.value.style.chart.plots.gradient.show ? `url(#start_grad_${A.value})` : I.value.style.chart.plots.startColor
476
+ }, {
477
+ name: I.value.style.chart.legend.labelEnd,
478
+ color: I.value.style.chart.plots.gradient.show ? `url(#end_grad_${A.value})` : I.value.style.chart.plots.endColor
479
+ }]), Zn = f(() => ({
480
+ cy: "donut-div-legend",
481
+ backgroundColor: I.value.style.chart.legend.backgroundColor,
482
+ color: I.value.style.chart.legend.color,
483
+ fontSize: I.value.style.chart.legend.fontSize,
484
+ paddingBottom: 12,
485
+ paddingTop: 12,
486
+ fontWeight: I.value.style.chart.legend.bold ? "bold" : ""
487
+ })), Z = f(() => ({
488
+ head: Y.value.map((e) => ({ name: e.name })),
489
+ body: Y.value.map((e) => ({
490
+ start: e.start,
491
+ end: e.end
492
+ }))
493
+ })), Q = f(() => {
494
+ let e = [
495
+ I.value.table.columnNames.series,
496
+ I.value.table.columnNames.start,
497
+ I.value.table.columnNames.end,
498
+ I.value.table.columnNames.progression
499
+ ], t = Z.value.head.map((e, t) => {
500
+ let n = r({
501
+ p: I.value.style.chart.labels.prefix,
502
+ v: Z.value.body[t].start,
503
+ s: I.value.style.chart.labels.suffix,
504
+ r: I.value.table.td.roundingValue
505
+ }), i = r({
506
+ p: I.value.style.chart.labels.prefix,
507
+ v: Z.value.body[t].end,
508
+ s: I.value.style.chart.labels.suffix,
509
+ r: I.value.table.td.roundingValue
510
+ }), a = r({
511
+ v: 100 * (Z.value.body[t].end / Z.value.body[t].start - 1),
512
+ s: "%",
513
+ r: I.value.table.td.roundingPercentage
514
+ });
515
+ return [
516
+ { name: e.name },
517
+ n,
518
+ i,
519
+ a
520
+ ];
521
+ }), n = {
522
+ th: {
523
+ backgroundColor: I.value.table.th.backgroundColor,
524
+ color: I.value.table.th.color,
525
+ outline: I.value.table.th.outline
526
+ },
527
+ td: {
528
+ backgroundColor: I.value.table.td.backgroundColor,
529
+ color: I.value.table.td.color,
530
+ outline: I.value.table.td.outline
531
+ },
532
+ breakpoint: I.value.table.responsiveBreakpoint
533
+ };
534
+ return {
535
+ colNames: [
536
+ I.value.table.columnNames.series,
537
+ I.value.table.columnNames.start,
538
+ I.value.table.columnNames.end,
539
+ I.value.table.columnNames.progression
540
+ ],
541
+ head: e,
542
+ body: t,
543
+ config: n
544
+ };
545
+ });
546
+ function Qn(e = null) {
547
+ Oe(() => {
548
+ let t = Z.value.head.map((e, t) => [
549
+ [e.name],
550
+ [Z.value.body[t].start],
551
+ [Z.value.body[t].end]
552
+ ]), n = s([
553
+ [I.value.style.chart.title.text],
554
+ [I.value.style.chart.title.subtitle.text],
555
+ [
556
+ [I.value.table.columnNames.series],
557
+ [I.value.table.columnNames.start],
558
+ [I.value.table.columnNames.end]
559
+ ]
560
+ ].concat(t));
561
+ e ? e(n) : a({
562
+ csvContent: n,
563
+ title: I.value.style.chart.title.text || "vue-ui-dumbbell"
564
+ });
565
+ });
566
+ }
567
+ let $ = S(!1);
568
+ function $n(e) {
569
+ $.value = e, cn.value += 1;
570
+ }
571
+ function er() {
572
+ return H.value;
573
+ }
574
+ function tr() {
575
+ V.value.showTable = !V.value.showTable;
576
+ }
577
+ let nr = S(!1);
578
+ function rr() {
579
+ nr.value = !nr.value;
580
+ }
581
+ async function ir({ scale: e = 2 } = {}) {
582
+ if (!j.value) return;
583
+ let { width: t, height: n } = j.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await pe({
584
+ domElement: j.value,
585
+ base64: !0,
586
+ img: !0,
587
+ scale: e
588
+ });
589
+ return {
590
+ imageUri: i,
591
+ base64: a,
592
+ title: I.value.style.chart.title.text,
593
+ width: t,
594
+ height: n,
595
+ aspectRatio: r
596
+ };
597
+ }
598
+ let ar = f(() => U.value.ticks);
599
+ fe({
600
+ timeLabelsEls: Cn,
601
+ timeLabels: ar,
602
+ slicer: f(() => ({
603
+ start: 0,
604
+ end: ar.value.length
605
+ })),
606
+ configRef: I,
607
+ rotationPath: [
608
+ "style",
609
+ "chart",
610
+ "labels",
611
+ "xAxisLabels",
612
+ "rotation"
613
+ ],
614
+ autoRotatePath: [
615
+ "style",
616
+ "chart",
617
+ "labels",
618
+ "xAxisLabels",
619
+ "autoRotate",
620
+ "enable"
621
+ ],
622
+ isAutoSize: !1,
623
+ width: G,
624
+ height: W,
625
+ targetClass: ".vue-ui-dumbbell-scale-label",
626
+ rotation: I.value.style.chart.labels.xAxisLabels.autoRotate.angle
627
+ });
628
+ function or({ rowHeight: e, fontSize: t, showProgression: n }) {
629
+ if (!n) return !1;
630
+ let r = e / 3, i = e / 1.3;
631
+ return Math.abs(i - r) < t * 1.2;
632
+ }
633
+ let sr = (() => {
634
+ let e = null, t = 0;
635
+ return (n) => {
636
+ if (n === F.value) {
637
+ e = null, t = 0;
638
+ return;
639
+ }
640
+ e === null || e !== n ? (e = n, t = 1) : (t += 1, t >= 1 && (F.value = n, e = null, t = 0));
641
+ };
642
+ })(), cr = ge(() => {
643
+ requestAnimationFrame(() => {
644
+ requestAnimationFrame(() => {
645
+ sr(or({
646
+ rowHeight: K.value.rowHeight,
647
+ fontSize: I.value.style.chart.labels.yAxisLabels.fontSize,
648
+ showProgression: I.value.style.chart.labels.yAxisLabels.showProgression
649
+ }));
650
+ });
651
+ });
652
+ }, 100);
653
+ function lr({ datapoint: e, seriesIndex: t }) {
654
+ M.value = t, N.value = e, I.value.events.datapointEnter && I.value.events.datapointEnter({
655
+ datapoint: e,
656
+ seriesIndex: t
657
+ });
658
+ }
659
+ function ur({ datapoint: e, seriesIndex: t }) {
660
+ M.value = null, N.value = null, I.value.events.datapointLeave && I.value.events.datapointLeave({
661
+ datapoint: e,
662
+ seriesIndex: t
663
+ });
664
+ }
665
+ function dr({ datapoint: e, seriesIndex: t }) {
666
+ I.value.events.datapointClick && I.value.events.datapointClick({
667
+ datapoint: e,
668
+ seriesIndex: t
669
+ }), on("selectDatapoint", {
670
+ ...e,
671
+ seriesIndex: t
672
+ });
673
+ }
674
+ let fr = f(() => {
675
+ if (N.value === null) return 0;
676
+ let e = ![null, void 0].includes(N.value.start), t = ![null, void 0].includes(N.value.end);
677
+ return e && t ? Math.min(N.value.startX, N.value.endX) + Math.abs(N.value.startX - N.value.endX) / 2 : e && !t ? N.value.startX : t && !e ? N.value.endX : null;
678
+ }), pr = f(() => {
679
+ if (N.value === null) return "";
680
+ let e = ![null, void 0].includes(N.value.start), t = ![null, void 0].includes(N.value.end), n = "", i = "";
681
+ return e && (n = u(I.value.style.chart.labels.formatter, N.value.start, r({
682
+ p: I.value.style.chart.labels.prefix,
683
+ v: N.value.start,
684
+ s: I.value.style.chart.labels.suffix,
685
+ r: I.value.style.chart.labels.startLabels.rounding
686
+ }), {
687
+ datapoint: N.value,
688
+ seriesIndex: M.value
689
+ })), t && (i = u(I.value.style.chart.labels.formatter, N.value.end, r({
690
+ p: I.value.style.chart.labels.prefix,
691
+ v: N.value.end,
692
+ s: I.value.style.chart.labels.suffix,
693
+ r: I.value.style.chart.labels.startLabels.rounding
694
+ }), {
695
+ datapoint: N.value,
696
+ seriesIndex: M.value
697
+ })), e && t ? `${n} → ${i}` : e && !t ? n : t && !e ? i : "";
698
+ }), mr = f(() => {
699
+ let e = I.value.table.useDialog && !I.value.table.show, t = V.value.showTable;
700
+ return {
701
+ component: e ? tn : Xt,
702
+ title: `${I.value.style.chart.title.text}${I.value.style.chart.title.subtitle.text ? `: ${I.value.style.chart.title.subtitle.text}` : ""}`,
703
+ props: e ? {
704
+ backgroundColor: I.value.table.th.backgroundColor,
705
+ color: I.value.table.th.color,
706
+ headerColor: I.value.table.th.color,
707
+ headerBg: I.value.table.th.backgroundColor,
708
+ isFullscreen: $.value,
709
+ fullscreenParent: j.value,
710
+ forcedWidth: Math.min(800, window.innerWidth * .8),
711
+ isCursorPointer: L.value
712
+ } : {
713
+ hideDetails: !0,
714
+ config: {
715
+ open: t,
716
+ maxHeight: 1e4,
717
+ body: {
718
+ backgroundColor: I.value.style.chart.backgroundColor,
719
+ color: I.value.style.chart.color
720
+ },
721
+ head: {
722
+ backgroundColor: I.value.style.chart.backgroundColor,
723
+ color: I.value.style.chart.color
724
+ }
725
+ }
726
+ }
727
+ };
728
+ });
729
+ Fe(() => V.value.showTable, (e) => {
730
+ I.value.table.show || (e && I.value.table.useDialog && _n.value ? _n.value.open() : "close" in _n.value && _n.value.close());
731
+ });
732
+ function hr() {
733
+ V.value.showTable = !1, vn.value && vn.value.setTableIconState(!1);
734
+ }
735
+ let gr = f(() => Xn.value.map((e) => ({
736
+ ...e,
737
+ shape: "circle"
738
+ }))), _r = f(() => I.value.style.chart.backgroundColor), vr = f(() => I.value.style.chart.legend), { exportSvg: yr, getSvg: br } = le({
739
+ svg: R,
740
+ title: f(() => I.value.style.chart.title),
741
+ legend: vr,
742
+ legendItems: gr,
743
+ backgroundColor: _r
744
+ });
745
+ async function xr({ isCb: e }) {
746
+ bn.value = !0, await Oe();
747
+ try {
748
+ if (e) {
749
+ let { blob: e, url: t, text: n, dataUrl: r } = await br();
750
+ await Promise.resolve(I.value.userOptions.callbacks.svg({
751
+ blob: e,
752
+ url: t,
753
+ text: n,
754
+ dataUrl: r
755
+ }));
756
+ } else await Promise.resolve(yr());
757
+ } finally {
758
+ bn.value = !1;
759
+ }
760
+ }
761
+ function Sr(e) {
762
+ if (e?.stage === "start") {
763
+ yn.value = !0;
764
+ return;
765
+ }
766
+ if (e?.stage === "end") {
767
+ yn.value = !1;
768
+ return;
769
+ }
770
+ zn();
771
+ }
772
+ async function Cr() {
773
+ if (on("copyAlt", {
774
+ config: I.value,
775
+ dataset: Y.value
776
+ }), !I.value.userOptions.callbacks.altCopy) {
777
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
778
+ return;
779
+ }
780
+ await Promise.resolve(I.value.userOptions.callbacks.altCopy({
781
+ config: I.value,
782
+ dataset: Y.value
783
+ }));
784
+ }
785
+ function wr(e) {
786
+ let t = Y.value.length;
787
+ return t ? (e % t + t) % t : null;
788
+ }
789
+ function Tr() {
790
+ if (P.value !== null) {
791
+ let e = Y.value[P.value];
792
+ e && ur({
793
+ datapoint: e,
794
+ seriesIndex: P.value
795
+ });
796
+ }
797
+ P.value = null, M.value = null, N.value = null;
798
+ }
799
+ function Er() {
800
+ P.value = null, Tn.value = !0;
801
+ }
802
+ function Dr() {
803
+ Tr(), Tn.value = !1;
804
+ }
805
+ function Or(e) {
806
+ if (!R.value || nr.value || document.activeElement !== R.value || !Y.value.length) return;
807
+ let t = ["ArrowUp", "ArrowLeft"].includes(e.key), n = ["ArrowDown", "ArrowRight"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
808
+ if (!t && !n && !r && !i) return;
809
+ if (e.preventDefault(), e.stopPropagation(), i) {
810
+ Tr();
811
+ return;
812
+ }
813
+ if (r) {
814
+ if (P.value === null) return;
815
+ let e = Y.value[P.value];
816
+ if (!e) return;
817
+ dr({
818
+ datapoint: e,
819
+ seriesIndex: P.value
820
+ });
821
+ return;
822
+ }
823
+ let a = P.value;
824
+ a = a === null ? n ? 0 : Y.value.length - 1 : wr(a + (n ? 1 : -1));
825
+ let o = Y.value[a];
826
+ o && (P.value = a, lr({
827
+ datapoint: o,
828
+ seriesIndex: a
829
+ }));
830
+ }
831
+ let kr = f(() => ({
832
+ head: Q.value.head,
833
+ body: Q.value.body.map((e) => [
834
+ e[0]?.name ?? "",
835
+ e[1],
836
+ e[2],
837
+ e[3]
838
+ ]),
839
+ caption: I.value.a11y.translations.tableCaption,
840
+ notice: I.value.a11y.translations.tableAvailable
841
+ }));
842
+ return he({
843
+ getData: er,
844
+ getImage: ir,
845
+ generatePdf: Rn,
846
+ generateCsv: Qn,
847
+ generateImage: zn,
848
+ generateSvg: xr,
849
+ toggleTable: tr,
850
+ toggleAnnotator: rr,
851
+ toggleFullscreen: $n,
852
+ copyAlt: Cr
853
+ }), (e, t) => (x(), h("div", {
854
+ ref_key: "dumbbellChart",
855
+ ref: j,
856
+ class: ke(`vue-data-ui-component vue-ui-dumbbell ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
857
+ style: b(`font-family:${I.value.style.fontFamily};width:100%; text-align:center;background:${I.value.style.chart.backgroundColor};${I.value.responsive ? "height:100%" : ""}`),
858
+ id: `dumbbell_${A.value}`,
859
+ onMouseenter: t[1] ||= () => E(jn)(!0),
860
+ onMouseleave: t[2] ||= () => E(jn)(!1)
861
+ }, [
862
+ g("div", {
863
+ id: `chart-instructions-${A.value}`,
864
+ class: "sr-only"
865
+ }, [g("p", null, T(I.value.a11y.translations.keyboardNavigation), 1)], 8, Be),
866
+ kr.value.body.length ? (x(), p(ve, {
867
+ key: 0,
868
+ uid: A.value,
869
+ head: kr.value.head,
870
+ body: kr.value.body,
871
+ caption: kr.value.caption,
872
+ notice: kr.value.notice
873
+ }, null, 8, [
874
+ "uid",
875
+ "head",
876
+ "body",
877
+ "caption",
878
+ "notice"
879
+ ])) : m("", !0),
880
+ I.value.userOptions.buttons.annotator ? (x(), p(E(Qt), {
881
+ key: 1,
882
+ svgRef: E(R),
883
+ backgroundColor: I.value.style.chart.backgroundColor,
884
+ color: I.value.style.chart.color,
885
+ active: nr.value,
886
+ isCursorPointer: L.value,
887
+ onClose: rr
888
+ }, {
889
+ "annotator-action-close": O(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
890
+ "annotator-action-color": O(({ color: t }) => [w(e.$slots, "annotator-action-color", y(v({ color: t })), void 0, !0)]),
891
+ "annotator-action-draw": O(({ mode: t }) => [w(e.$slots, "annotator-action-draw", y(v({ mode: t })), void 0, !0)]),
892
+ "annotator-action-undo": O(({ disabled: t }) => [w(e.$slots, "annotator-action-undo", y(v({ disabled: t })), void 0, !0)]),
893
+ "annotator-action-redo": O(({ disabled: t }) => [w(e.$slots, "annotator-action-redo", y(v({ disabled: t })), void 0, !0)]),
894
+ "annotator-action-delete": O(({ disabled: t }) => [w(e.$slots, "annotator-action-delete", y(v({ disabled: t })), void 0, !0)]),
895
+ _: 3
896
+ }, 8, [
897
+ "svgRef",
898
+ "backgroundColor",
899
+ "color",
900
+ "active",
901
+ "isCursorPointer"
902
+ ])) : m("", !0),
903
+ Bn.value ? (x(), h("div", {
904
+ key: 2,
905
+ ref_key: "noTitle",
906
+ ref: fn,
907
+ class: "vue-data-ui-no-title-space",
908
+ style: "height:36px; width: 100%;background:transparent"
909
+ }, null, 512)) : m("", !0),
910
+ I.value.style.chart.title.text ? (x(), h("div", {
911
+ key: 3,
912
+ ref_key: "chartTitle",
913
+ ref: ln,
914
+ style: "width:100%;background:transparent;padding-bottom:24px"
915
+ }, [(x(), p(me, {
916
+ key: `title_${pn.value}`,
917
+ config: {
918
+ title: {
919
+ cy: "donut-div-title",
920
+ ...I.value.style.chart.title
921
+ },
922
+ subtitle: {
923
+ cy: "donut-div-subtitle",
924
+ ...I.value.style.chart.title.subtitle
925
+ }
926
+ }
927
+ }, null, 8, ["config"]))], 512)) : m("", !0),
928
+ g("div", { id: `legend-top-${A.value}` }, null, 8, Ve),
929
+ I.value.userOptions.show && sn.value && (E(Mn) || E(An)) ? (x(), p(E($t), {
930
+ ref_key: "userOptionsRef",
931
+ ref: vn,
932
+ key: `user_option_${cn.value}`,
933
+ backgroundColor: I.value.style.chart.backgroundColor,
934
+ color: I.value.style.chart.color,
935
+ isPrinting: E(In),
936
+ isImaging: E(Ln),
937
+ uid: A.value,
938
+ hasPdf: I.value.userOptions.buttons.pdf,
939
+ hasXls: I.value.userOptions.buttons.csv,
940
+ hasImg: I.value.userOptions.buttons.img,
941
+ hasSvg: I.value.userOptions.buttons.svg,
942
+ hasTable: I.value.userOptions.buttons.table,
943
+ hasFullscreen: I.value.userOptions.buttons.fullscreen,
944
+ hasAltCopy: I.value.userOptions.buttons.altCopy,
945
+ isFullscreen: $.value,
946
+ titles: { ...I.value.userOptions.buttonTitles },
947
+ chartElement: j.value,
948
+ position: I.value.userOptions.position,
949
+ hasAnnotator: I.value.userOptions.buttons.annotator,
950
+ isAnnotation: nr.value,
951
+ callbacks: I.value.userOptions.callbacks,
952
+ printScale: I.value.userOptions.print.scale,
953
+ tableDialog: I.value.table.useDialog,
954
+ isCursorPointer: L.value,
955
+ onToggleFullscreen: $n,
956
+ onGeneratePdf: E(Rn),
957
+ onGenerateCsv: Qn,
958
+ onGenerateImage: Sr,
959
+ onGenerateSvg: xr,
960
+ onToggleTable: tr,
961
+ onToggleAnnotator: rr,
962
+ onCopyAlt: Cr,
963
+ style: b({ visibility: E(Mn) ? E(An) ? "visible" : "hidden" : "visible" })
964
+ }, we({ _: 2 }, [
965
+ e.$slots.menuIcon ? {
966
+ name: "menuIcon",
967
+ fn: O(({ isOpen: t, color: n }) => [w(e.$slots, "menuIcon", y(v({
968
+ isOpen: t,
969
+ color: n
970
+ })), void 0, !0)]),
971
+ key: "0"
972
+ } : void 0,
973
+ e.$slots.optionPdf ? {
974
+ name: "optionPdf",
975
+ fn: O(() => [w(e.$slots, "optionPdf", {}, void 0, !0)]),
976
+ key: "1"
977
+ } : void 0,
978
+ e.$slots.optionCsv ? {
979
+ name: "optionCsv",
980
+ fn: O(() => [w(e.$slots, "optionCsv", {}, void 0, !0)]),
981
+ key: "2"
982
+ } : void 0,
983
+ e.$slots.optionImg ? {
984
+ name: "optionImg",
985
+ fn: O(() => [w(e.$slots, "optionImg", {}, void 0, !0)]),
986
+ key: "3"
987
+ } : void 0,
988
+ e.$slots.optionSvg ? {
989
+ name: "optionSvg",
990
+ fn: O(() => [w(e.$slots, "optionSvg", {}, void 0, !0)]),
991
+ key: "4"
992
+ } : void 0,
993
+ e.$slots.optionTable ? {
994
+ name: "optionTable",
995
+ fn: O(() => [w(e.$slots, "optionTable", {}, void 0, !0)]),
996
+ key: "5"
997
+ } : void 0,
998
+ e.$slots.optionFullscreen ? {
999
+ name: "optionFullscreen",
1000
+ fn: O(({ toggleFullscreen: t, isFullscreen: n }) => [w(e.$slots, "optionFullscreen", y(v({
1001
+ toggleFullscreen: t,
1002
+ isFullscreen: n
1003
+ })), void 0, !0)]),
1004
+ key: "6"
1005
+ } : void 0,
1006
+ e.$slots.optionAnnotator ? {
1007
+ name: "optionAnnotator",
1008
+ fn: O(({ toggleAnnotator: t, isAnnotator: n }) => [w(e.$slots, "optionAnnotator", y(v({
1009
+ toggleAnnotator: t,
1010
+ isAnnotator: n
1011
+ })), void 0, !0)]),
1012
+ key: "7"
1013
+ } : void 0,
1014
+ e.$slots.optionAltCopy ? {
1015
+ name: "optionAltCopy",
1016
+ fn: O(({ altCopy: t }) => [w(e.$slots, "optionAltCopy", y(v({ altCopy: t })), void 0, !0)]),
1017
+ key: "8"
1018
+ } : void 0,
1019
+ e.$slots["custom-menu-before"] ? {
1020
+ name: "custom-menu-before",
1021
+ fn: O(() => [w(e.$slots, "custom-menu-before", {}, void 0, !0)]),
1022
+ key: "9"
1023
+ } : void 0,
1024
+ e.$slots["custom-menu-after"] ? {
1025
+ name: "custom-menu-after",
1026
+ fn: O(() => [w(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1027
+ key: "10"
1028
+ } : void 0
1029
+ ]), 1032, [
1030
+ "backgroundColor",
1031
+ "color",
1032
+ "isPrinting",
1033
+ "isImaging",
1034
+ "uid",
1035
+ "hasPdf",
1036
+ "hasXls",
1037
+ "hasImg",
1038
+ "hasSvg",
1039
+ "hasTable",
1040
+ "hasFullscreen",
1041
+ "hasAltCopy",
1042
+ "isFullscreen",
1043
+ "titles",
1044
+ "chartElement",
1045
+ "position",
1046
+ "hasAnnotator",
1047
+ "isAnnotation",
1048
+ "callbacks",
1049
+ "printScale",
1050
+ "tableDialog",
1051
+ "isCursorPointer",
1052
+ "onGeneratePdf",
1053
+ "style"
1054
+ ])) : m("", !0),
1055
+ g("div", He, [(x(), h("svg", {
1056
+ ref_key: "svgRef",
1057
+ ref: R,
1058
+ xmlns: E(re),
1059
+ class: ke({
1060
+ "vue-data-ui-fullscreen--on": $.value,
1061
+ "vue-data-ui-fulscreen--off": !$.value
1062
+ }),
1063
+ viewBox: `0 0 ${G.value} ${K.value.absoluteHeight <= 0 ? 10 : K.value.absoluteHeight}`,
1064
+ style: b(`max-width:100%; overflow: visible; background:transparent;color:${I.value.style.chart.color}`),
1065
+ "aria-describedby": `chart-instructions-${A.value}`,
1066
+ tabindex: "0",
1067
+ onFocus: Er,
1068
+ onBlur: Dr,
1069
+ onKeydown: Or
1070
+ }, [
1071
+ Ee(E(en)),
1072
+ e.$slots["chart-background"] ? (x(), h("foreignObject", {
1073
+ key: 0,
1074
+ x: K.value.left,
1075
+ y: K.value.top,
1076
+ width: Math.max(.1, K.value.width),
1077
+ height: Math.max(.1, K.value.height),
1078
+ style: { pointerEvents: "none" }
1079
+ }, [w(e.$slots, "chart-background", {}, void 0, !0)], 8, We)) : m("", !0),
1080
+ I.value.style.chart.grid.verticalGrid.show ? (x(), h("g", Ge, [(x(!0), h(d, null, C(U.value.ticks, (e, t) => (x(), h("line", {
1081
+ x1: K.value.left + t * K.value.width / (U.value.ticks.length - 1),
1082
+ x2: K.value.left + t * K.value.width / (U.value.ticks.length - 1),
1083
+ y1: K.value.top,
1084
+ y2: K.value.bottom,
1085
+ stroke: I.value.style.chart.grid.verticalGrid.stroke,
1086
+ "stroke-width": I.value.style.chart.grid.verticalGrid.strokeWidth,
1087
+ "stroke-dasharray": I.value.style.chart.grid.verticalGrid.strokeDasharray
1088
+ }, null, 8, Ke))), 256))])) : m("", !0),
1089
+ I.value.style.chart.grid.horizontalGrid.show ? (x(), h("g", qe, [(x(!0), h(d, null, C(H.value, (e, t) => (x(), h("line", {
1090
+ x1: K.value.left,
1091
+ x2: K.value.right,
1092
+ y1: K.value.top + t * K.value.rowHeight,
1093
+ y2: K.value.top + t * K.value.rowHeight,
1094
+ stroke: I.value.style.chart.grid.horizontalGrid.stroke,
1095
+ "stroke-width": I.value.style.chart.grid.horizontalGrid.strokeWidth,
1096
+ "stroke-dasharray": I.value.style.chart.grid.horizontalGrid.strokeDasharray
1097
+ }, null, 8, Je))), 256)), g("line", {
1098
+ x1: K.value.left,
1099
+ x2: K.value.right,
1100
+ y1: K.value.bottom,
1101
+ y2: K.value.bottom,
1102
+ stroke: I.value.style.chart.grid.horizontalGrid.stroke,
1103
+ "stroke-width": I.value.style.chart.grid.horizontalGrid.strokeWidth,
1104
+ "stroke-dasharray": I.value.style.chart.grid.horizontalGrid.strokeDasharray
1105
+ }, null, 8, Ye)])) : m("", !0),
1106
+ I.value.style.chart.labels.axis.yLabel ? (x(), h("text", {
1107
+ key: 3,
1108
+ ref_key: "yAxisLabel",
1109
+ ref: xn,
1110
+ transform: `translate(${I.value.style.chart.labels.axis.fontSize}, ${K.value.absoluteHeight / 2}), rotate(-90)`,
1111
+ "font-size": I.value.style.chart.labels.axis.fontSize,
1112
+ fill: I.value.style.chart.labels.axis.color,
1113
+ "text-anchor": "middle"
1114
+ }, T(I.value.style.chart.labels.axis.yLabel), 9, Xe)) : m("", !0),
1115
+ I.value.style.chart.labels.yAxisLabels.show ? (x(), h("g", {
1116
+ key: 4,
1117
+ ref_key: "serieLabels",
1118
+ ref: Sn
1119
+ }, [(x(!0), h(d, null, C(Y.value, (e, t) => (x(), h("text", {
1120
+ class: "vue-ui-dumbbell-serie-name",
1121
+ key: `serieLabel_${e.id}_${t}`,
1122
+ x: K.value.left - 6 + I.value.style.chart.labels.yAxisLabels.offsetX,
1123
+ y: K.value.top + t * K.value.rowHeight + (!I.value.style.chart.labels.yAxisLabels.showProgression || F.value ? K.value.rowHeight / 2 : K.value.rowHeight / 3) + I.value.style.chart.labels.yAxisLabels.fontSize / 3,
1124
+ "font-size": I.value.style.chart.labels.yAxisLabels.fontSize,
1125
+ fill: I.value.style.chart.labels.yAxisLabels.color,
1126
+ "font-weight": I.value.style.chart.labels.yAxisLabels.bold ? "bold" : "normal",
1127
+ "text-anchor": "end",
1128
+ onMouseenter: (n) => lr({
1129
+ datapoint: e,
1130
+ seriesIndex: t
1131
+ }),
1132
+ onMouseleave: (n) => ur({
1133
+ datapoint: e,
1134
+ seriesIndex: t
1135
+ }),
1136
+ onClick: (n) => dr({
1137
+ datapoint: e,
1138
+ seriesIndex: t
1139
+ })
1140
+ }, T(e.name) + " " + T(F.value && I.value.style.chart.labels.yAxisLabels.showProgression ? [null, void 0].includes(e.start) || [null, void 0].includes(e.end) ? "" : `(${E(u)(I.value.style.chart.labels.yAxisLabels.formatter, 100 * (e.end / e.start - 1), E(r)({
1141
+ v: 100 * (e.end / e.start - 1),
1142
+ s: "%",
1143
+ r: I.value.style.chart.labels.yAxisLabels.rounding
1144
+ }), { datapoint: e })})` : ""), 41, Ze))), 128)), I.value.style.chart.labels.yAxisLabels.showProgression && !F.value ? (x(!0), h(d, { key: 0 }, C(Y.value, (e, t) => (x(), h("text", {
1145
+ class: "vue-ui-dumbbell-serie-value",
1146
+ x: K.value.left - 6 + I.value.style.chart.labels.yAxisLabels.offsetX,
1147
+ y: K.value.top + t * K.value.rowHeight + K.value.rowHeight / 1.3 + I.value.style.chart.labels.yAxisLabels.fontSize / 3,
1148
+ "font-size": I.value.style.chart.labels.yAxisLabels.fontSize,
1149
+ fill: I.value.style.chart.labels.yAxisLabels.color,
1150
+ "text-anchor": "end",
1151
+ onMouseenter: (n) => lr({
1152
+ datapoint: e,
1153
+ seriesIndex: t
1154
+ }),
1155
+ onMouseleave: (n) => ur({
1156
+ datapoint: e,
1157
+ seriesIndex: t
1158
+ }),
1159
+ onClick: (n) => dr({
1160
+ datapoint: e,
1161
+ seriesIndex: t
1162
+ })
1163
+ }, T([null, void 0].includes(e.start) || [null, void 0].includes(e.end) ? "" : E(u)(I.value.style.chart.labels.yAxisLabels.formatter, 100 * (e.end / e.start - 1), E(r)({
1164
+ v: 100 * (e.end / e.start - 1),
1165
+ s: "%",
1166
+ r: I.value.style.chart.labels.yAxisLabels.rounding
1167
+ }), { datapoint: e })), 41, Qe))), 256)) : m("", !0)], 512)) : m("", !0),
1168
+ I.value.style.chart.labels.axis.xLabel ? (x(), h("text", {
1169
+ key: 5,
1170
+ ref_key: "xAxisLabel",
1171
+ ref: wn,
1172
+ x: K.value.left + K.value.width / 2,
1173
+ y: K.value.absoluteHeight - I.value.style.chart.labels.axis.fontSize / 3,
1174
+ "font-size": I.value.style.chart.labels.axis.fontSize,
1175
+ fill: I.value.style.chart.labels.axis.color,
1176
+ "text-anchor": "middle"
1177
+ }, T(I.value.style.chart.labels.axis.xLabel), 9, $e)) : m("", !0),
1178
+ I.value.style.chart.labels.xAxisLabels.show ? (x(), h("g", {
1179
+ key: 6,
1180
+ ref_key: "scaleLabels",
1181
+ ref: Cn
1182
+ }, [(x(!0), h(d, null, C(U.value.ticks, (e, t) => (x(), h("text", {
1183
+ class: "vue-ui-dumbbell-scale-label",
1184
+ key: `tick_${t}`,
1185
+ transform: `translate(${K.value.left + t * (K.value.width / (U.value.ticks.length - 1))}, ${K.value.bottom + I.value.style.chart.labels.xAxisLabels.fontSize + I.value.style.chart.labels.xAxisLabels.offsetY}), rotate(${I.value.style.chart.labels.xAxisLabels.rotation})`,
1186
+ "font-size": I.value.style.chart.labels.xAxisLabels.fontSize,
1187
+ fill: I.value.style.chart.labels.xAxisLabels.color,
1188
+ "font-weight": I.value.style.chart.labels.xAxisLabels.bold ? "bold" : "normal",
1189
+ "text-anchor": I.value.style.chart.labels.xAxisLabels.rotation > 0 ? "start" : I.value.style.chart.labels.xAxisLabels.rotation < 0 ? "end" : "middle"
1190
+ }, T(E(u)(I.value.style.chart.labels.formatter, e, E(r)({
1191
+ p: I.value.style.chart.labels.prefix,
1192
+ v: e,
1193
+ s: I.value.style.chart.labels.suffix,
1194
+ r: I.value.style.chart.labels.xAxisLabels.rounding
1195
+ }), {
1196
+ datapoint: e,
1197
+ seriesIndex: t
1198
+ })), 9, et))), 128))], 512)) : m("", !0),
1199
+ Le(g("g", null, [
1200
+ Le(g("path", {
1201
+ d: `M ${N.value ? N.value.startX : K.value.left},${K.value.top} ${N.value ? N.value.startX : K.value.left},${K.value.bottom}`,
1202
+ stroke: N.value ? I.value.style.chart.plots.evaluationColors.enable ? N.value.evaluationColor : I.value.style.chart.plots.startColor : "transparent",
1203
+ "stroke-width": I.value.style.chart.comparisonLines.strokeWidth,
1204
+ "stroke-dasharray": I.value.style.chart.comparisonLines.strokeDasharray,
1205
+ style: { transition: "all 0.3s ease-in-out" }
1206
+ }, null, 8, tt), [[D, N.value !== null && ![null, void 0].includes(N.value.start)]]),
1207
+ Le(g("path", {
1208
+ d: `M ${N.value ? N.value.endX : K.value.left},${K.value.top} ${N.value ? N.value.endX : K.value.left},${K.value.bottom}`,
1209
+ stroke: N.value ? I.value.style.chart.plots.evaluationColors.enable ? N.value.evaluationColor : I.value.style.chart.plots.endColor : "transparent",
1210
+ "stroke-width": I.value.style.chart.comparisonLines.strokeWidth,
1211
+ "stroke-dasharray": I.value.style.chart.comparisonLines.strokeDasharray,
1212
+ style: { transition: "all 0.3s ease-in-out" }
1213
+ }, null, 8, nt), [[D, N.value !== null && ![null, void 0].includes(N.value.end)]]),
1214
+ Le(g("rect", {
1215
+ x: N.value ? Math.min(N.value.startX, N.value.endX) : K.value.left,
1216
+ y: K.value.top,
1217
+ height: Math.max(.1, K.value.height),
1218
+ width: N.value ? Math.max(.1, Math.abs(N.value.endX - N.value.startX)) : 0,
1219
+ fill: N.value ? E(o)(I.value.style.chart.comparisonLines.rectColor, I.value.style.chart.comparisonLines.rectOpacity) : "transparent",
1220
+ style: { transition: "all 0.3s ease-in-out" }
1221
+ }, null, 8, rt), [[D, I.value.style.chart.comparisonLines.showRect && N.value !== null && ![null, void 0].includes(N.value.start) && ![null, void 0].includes(N.value.end)]]),
1222
+ Le(g("text", {
1223
+ transform: `translate(${fr.value == null ? 0 : fr.value}, ${K.value.top - 6})`,
1224
+ fill: I.value.style.chart.comparisonLines.labelColor,
1225
+ "font-size": I.value.style.chart.comparisonLines.labelFontSize,
1226
+ "text-anchor": "middle",
1227
+ style: { transition: "all 0.3s ease-in-out" }
1228
+ }, T(pr.value), 9, it), [[D, N.value !== null && fr.value !== null && I.value.style.chart.comparisonLines.showLabel]])
1229
+ ], 512), [[D, I.value.style.chart.comparisonLines.show && M.value !== null]]),
1230
+ g("defs", null, [
1231
+ g("radialGradient", {
1232
+ id: `start_grad_${A.value}`,
1233
+ fy: "30%"
1234
+ }, [
1235
+ g("stop", {
1236
+ offset: "10%",
1237
+ "stop-color": E(l)(I.value.style.chart.plots.startColor, I.value.style.chart.plots.gradient.intensity / 100)
1238
+ }, null, 8, ot),
1239
+ g("stop", {
1240
+ offset: "90%",
1241
+ "stop-color": E(c)(I.value.style.chart.plots.startColor, .1)
1242
+ }, null, 8, st),
1243
+ g("stop", {
1244
+ offset: "100%",
1245
+ "stop-color": I.value.style.chart.plots.startColor
1246
+ }, null, 8, ct)
1247
+ ], 8, at),
1248
+ g("radialGradient", {
1249
+ id: `end_grad_${A.value}`,
1250
+ fy: "30%"
1251
+ }, [
1252
+ g("stop", {
1253
+ offset: "10%",
1254
+ "stop-color": E(l)(I.value.style.chart.plots.endColor, I.value.style.chart.plots.gradient.intensity / 100)
1255
+ }, null, 8, ut),
1256
+ g("stop", {
1257
+ offset: "90%",
1258
+ "stop-color": E(c)(I.value.style.chart.plots.endColor, .1)
1259
+ }, null, 8, dt),
1260
+ g("stop", {
1261
+ offset: "100%",
1262
+ "stop-color": I.value.style.chart.plots.endColor
1263
+ }, null, 8, ft)
1264
+ ], 8, lt),
1265
+ g("radialGradient", {
1266
+ id: `positive_grad_${A.value}`,
1267
+ fy: "30%"
1268
+ }, [
1269
+ g("stop", {
1270
+ offset: "10%",
1271
+ "stop-color": E(l)(I.value.style.chart.plots.evaluationColors.positive, I.value.style.chart.plots.gradient.intensity / 100)
1272
+ }, null, 8, mt),
1273
+ g("stop", {
1274
+ offset: "90%",
1275
+ "stop-color": E(c)(I.value.style.chart.plots.evaluationColors.positive, .1)
1276
+ }, null, 8, ht),
1277
+ g("stop", {
1278
+ offset: "100%",
1279
+ "stop-color": I.value.style.chart.plots.evaluationColors.positive
1280
+ }, null, 8, gt)
1281
+ ], 8, pt),
1282
+ g("radialGradient", {
1283
+ id: `negative_grad_${A.value}`,
1284
+ fy: "30%"
1285
+ }, [
1286
+ g("stop", {
1287
+ offset: "10%",
1288
+ "stop-color": E(l)(I.value.style.chart.plots.evaluationColors.negative, I.value.style.chart.plots.gradient.intensity / 100)
1289
+ }, null, 8, vt),
1290
+ g("stop", {
1291
+ offset: "90%",
1292
+ "stop-color": E(c)(I.value.style.chart.plots.evaluationColors.negative, .1)
1293
+ }, null, 8, yt),
1294
+ g("stop", {
1295
+ offset: "100%",
1296
+ "stop-color": I.value.style.chart.plots.evaluationColors.negative
1297
+ }, null, 8, bt)
1298
+ ], 8, _t),
1299
+ g("radialGradient", {
1300
+ id: `neutral_grad_${A.value}`,
1301
+ fy: "30%"
1302
+ }, [
1303
+ g("stop", {
1304
+ offset: "10%",
1305
+ "stop-color": E(l)(I.value.style.chart.plots.evaluationColors.neutral, I.value.style.chart.plots.gradient.intensity / 100)
1306
+ }, null, 8, St),
1307
+ g("stop", {
1308
+ offset: "90%",
1309
+ "stop-color": E(c)(I.value.style.chart.plots.evaluationColors.neutral, .1)
1310
+ }, null, 8, Ct),
1311
+ g("stop", {
1312
+ offset: "100%",
1313
+ "stop-color": I.value.style.chart.plots.evaluationColors.neutral
1314
+ }, null, 8, wt)
1315
+ ], 8, xt)
1316
+ ]),
1317
+ (x(!0), h(d, null, C(Y.value, (e, t) => (x(), h("g", { key: `plot_${t}_${e.id}` }, [
1318
+ g("defs", null, [g("linearGradient", {
1319
+ id: `grad_pos_${A.value}`,
1320
+ x1: "0%",
1321
+ x2: "100%",
1322
+ y1: "0%",
1323
+ y2: "0%"
1324
+ }, [g("stop", {
1325
+ offset: "0%",
1326
+ "stop-color": I.value.style.chart.plots.startColor
1327
+ }, null, 8, Et), g("stop", {
1328
+ offset: "100%",
1329
+ "stop-color": I.value.style.chart.plots.endColor
1330
+ }, null, 8, Dt)], 8, Tt), g("linearGradient", {
1331
+ id: `grad_neg_${A.value}`,
1332
+ x1: "0%",
1333
+ x2: "100%",
1334
+ y1: "0%",
1335
+ y2: "0%"
1336
+ }, [g("stop", {
1337
+ offset: "0%",
1338
+ "stop-color": I.value.style.chart.plots.endColor
1339
+ }, null, 8, kt), g("stop", {
1340
+ offset: "100%",
1341
+ "stop-color": I.value.style.chart.plots.startColor
1342
+ }, null, 8, At)], 8, Ot)]),
1343
+ ![void 0, null].includes(e.end) && ![void 0, null].includes(e.start) ? (x(), h("g", jt, [I.value.style.chart.plots.link.type === "curved" ? (x(), h("g", Mt, [g("path", {
1344
+ d: `M
1345
+ ${e.startX},${e.y + q.value / 2}
1346
+ C ${e.centerX},${e.y} ${e.centerX},${e.y}
1347
+ ${e.endX},${e.y + q.value / 2}
1348
+ L ${e.endX},${e.y - q.value / 2}
1349
+ C ${e.centerX},${e.y} ${e.centerX},${e.y}
1350
+ ${e.startX},${e.y - q.value / 2}
1351
+ Z
1352
+ `,
1353
+ fill: I.value.style.chart.plots.evaluationColors.enable ? e.evaluationColor : e.endX > e.startX ? `url(#grad_pos_${A.value})` : `url(#grad_neg_${A.value})`
1354
+ }, null, 8, Nt)])) : (x(), h("g", Pt, [g("rect", {
1355
+ x: e.endX > e.startX ? e.startX : e.endX,
1356
+ y: e.y - I.value.style.chart.plots.link.strokeWidth / 2,
1357
+ height: Math.max(.01, I.value.style.chart.plots.link.strokeWidth),
1358
+ width: Math.max(.01, Math.abs(e.endX - e.startX)),
1359
+ fill: I.value.style.chart.plots.evaluationColors.enable ? e.evaluationColor : e.endX > e.startX ? `url(#grad_pos_${A.value})` : `url(#grad_neg_${A.value})`
1360
+ }, null, 8, Ft)]))])) : m("", !0),
1361
+ [null, void 0].includes(e.start) ? m("", !0) : (x(), h("circle", {
1362
+ key: 1,
1363
+ cx: e.startX,
1364
+ cy: e.y,
1365
+ r: q.value,
1366
+ fill: I.value.style.chart.plots.gradient.show ? I.value.style.chart.plots.evaluationColors.enable ? e.evaluationGrad : `url(#start_grad_${A.value})` : I.value.style.chart.plots.evaluationColors.enable ? e.evaluationColor : I.value.style.chart.plots.startColor,
1367
+ stroke: I.value.style.chart.plots.stroke,
1368
+ "stroke-width": I.value.style.chart.plots.strokeWidth
1369
+ }, null, 8, It)),
1370
+ [null, void 0].includes(e.end) ? m("", !0) : (x(), h("circle", {
1371
+ key: 2,
1372
+ cx: e.endX,
1373
+ cy: e.y,
1374
+ r: q.value,
1375
+ fill: I.value.style.chart.plots.gradient.show ? I.value.style.chart.plots.evaluationColors.enable ? e.evaluationGrad : `url(#end_grad_${A.value})` : I.value.style.chart.plots.evaluationColors.enable ? e.evaluationColor : I.value.style.chart.plots.endColor,
1376
+ stroke: I.value.style.chart.plots.stroke,
1377
+ "stroke-width": I.value.style.chart.plots.strokeWidth
1378
+ }, null, 8, Lt))
1379
+ ]))), 128)),
1380
+ I.value.style.chart.labels.startLabels.show ? (x(), h("g", Rt, [(x(!0), h(d, null, C(Y.value, (e, t) => (x(), h("g", { key: `start_label_${t}_${e.id}` }, [[null, void 0].includes(e.start) ? m("", !0) : (x(), h("text", {
1381
+ key: 0,
1382
+ x: e.startX,
1383
+ y: e.y + q.value * 2 + I.value.style.chart.labels.startLabels.fontSize / 2,
1384
+ fill: I.value.style.chart.plots.evaluationColors.enable && I.value.style.chart.labels.startLabels.useEvaluationColor ? e.evaluationColor : I.value.style.chart.labels.startLabels.useStartColor ? I.value.style.chart.plots.startColor : I.value.style.chart.labels.startLabels.color,
1385
+ "font-size": I.value.style.chart.labels.startLabels.fontSize,
1386
+ "text-anchor": "middle"
1387
+ }, T(E(u)(I.value.style.chart.labels.formatter, e.start, E(r)({
1388
+ p: I.value.style.chart.labels.prefix,
1389
+ v: e.start,
1390
+ s: I.value.style.chart.labels.suffix,
1391
+ r: I.value.style.chart.labels.startLabels.rounding
1392
+ }), {
1393
+ datapoint: e,
1394
+ seriesIndex: t
1395
+ })), 9, zt))]))), 128))])) : m("", !0),
1396
+ I.value.style.chart.labels.endLabels.show ? (x(), h("g", Bt, [(x(!0), h(d, null, C(Y.value, (e, t) => (x(), h("g", { key: `end_label_${t}_${e.id}` }, [[null, void 0].includes(e.end) ? m("", !0) : (x(), h("text", {
1397
+ key: 0,
1398
+ x: e.endX,
1399
+ y: e.y - (q.value * 2 - I.value.style.chart.labels.startLabels.fontSize / 3),
1400
+ fill: I.value.style.chart.plots.evaluationColors.enable && I.value.style.chart.labels.endLabels.useEvaluationColor ? e.evaluationColor : I.value.style.chart.labels.endLabels.useEndColor ? I.value.style.chart.plots.endColor : I.value.style.chart.labels.endLabels.color,
1401
+ "font-size": I.value.style.chart.labels.endLabels.fontSize,
1402
+ "text-anchor": "middle"
1403
+ }, T(E(u)(I.value.style.chart.labels.formatter, e.end, E(r)({
1404
+ p: I.value.style.chart.labels.prefix,
1405
+ v: e.end,
1406
+ s: I.value.style.chart.labels.suffix,
1407
+ r: I.value.style.chart.labels.endLabels.rounding
1408
+ }), {
1409
+ datapoint: e,
1410
+ seriesIndex: t
1411
+ })), 9, Vt))]))), 128))])) : m("", !0),
1412
+ g("g", null, [(x(!0), h(d, null, C(Y.value, (e, t) => (x(), h("rect", {
1413
+ x: K.value.left,
1414
+ y: K.value.top + t * Math.max(.1, K.value.rowHeight),
1415
+ width: Math.max(.1, K.value.width),
1416
+ height: Math.max(.1, K.value.rowHeight),
1417
+ fill: M.value === null ? "transparent" : M.value === t ? E(o)(I.value.style.chart.highlighter.color, I.value.style.chart.highlighter.opacity) : "transparent",
1418
+ onMouseenter: (n) => lr({
1419
+ datapoint: e,
1420
+ seriesIndex: t
1421
+ }),
1422
+ onMouseleave: (n) => ur({
1423
+ datapoint: e,
1424
+ seriesIndex: t
1425
+ }),
1426
+ onClick: (n) => dr({
1427
+ datapoint: e,
1428
+ seriesIndex: t
1429
+ })
1430
+ }, null, 40, Ht))), 256))]),
1431
+ w(e.$slots, "svg", { svg: {
1432
+ ...K.value,
1433
+ isPrintingImg: E(In) || E(Ln) || yn.value,
1434
+ isPrintingSvg: bn.value
1435
+ } }, void 0, !0)
1436
+ ], 46, Ue)), e.$slots.hint ? (x(), h("div", Ut, [w(e.$slots, "hint", y(v({
1437
+ hint: I.value.a11y.translations.keyboardNavigation,
1438
+ isVisible: Tn.value
1439
+ })), void 0, !0)])) : m("", !0)]),
1440
+ e.$slots.watermark ? (x(), h("div", Wt, [w(e.$slots, "watermark", y(v({ isPrinting: E(In) || E(Ln) || yn.value || bn.value })), void 0, !0)])) : m("", !0),
1441
+ g("div", { id: `legend-bottom-${A.value}` }, null, 8, Gt),
1442
+ gn.value && (I.value.style.chart.legend.show || e.$slots.legend) ? (x(), p(Ce, {
1443
+ key: 6,
1444
+ to: I.value.style.chart.legend.position === "top" ? `#legend-top-${A.value}` : `#legend-bottom-${A.value}`
1445
+ }, [g("div", {
1446
+ ref_key: "chartLegend",
1447
+ ref: un
1448
+ }, [w(e.$slots, "legend", { legend: Xn.value }, () => [I.value.style.chart.legend.show && sn.value ? (x(), p(xe, {
1449
+ key: `legend_${hn.value}`,
1450
+ legendSet: Xn.value,
1451
+ config: Zn.value,
1452
+ clickable: !1
1453
+ }, {
1454
+ item: O(({ legend: e }) => [g("div", { style: b(`display:flex;align-items:center;gap:4px;font-size:${I.value.style.chart.legend.fontSize}px`) }, [(x(), h("svg", {
1455
+ xmlns: E(re),
1456
+ viewBox: "0 0 20 20",
1457
+ height: I.value.style.chart.legend.fontSize,
1458
+ width: I.value.style.chart.legend.fontSize
1459
+ }, [g("circle", {
1460
+ cx: 10,
1461
+ cy: 10,
1462
+ r: 9,
1463
+ fill: e.color
1464
+ }, null, 8, qt)], 8, Kt)), E(Dn) ? m("", !0) : (x(), h(d, { key: 0 }, [Te(T(e.name), 1)], 64))], 4)]),
1465
+ _: 1
1466
+ }, 8, ["legendSet", "config"])) : m("", !0)], !0)], 512)], 8, ["to"])) : m("", !0),
1467
+ e.$slots.source ? (x(), h("div", {
1468
+ key: 7,
1469
+ ref_key: "source",
1470
+ ref: dn,
1471
+ dir: "auto"
1472
+ }, [w(e.$slots, "source", {}, void 0, !0)], 512)) : m("", !0),
1473
+ sn.value && I.value.userOptions.buttons.table ? (x(), p(Me(mr.value.component), De({ key: 8 }, mr.value.props, {
1474
+ ref_key: "tableUnit",
1475
+ ref: _n,
1476
+ onClose: hr
1477
+ }), we({
1478
+ content: O(() => [(x(), p(E(Zt), {
1479
+ key: `table_${mn.value}`,
1480
+ colNames: Q.value.colNames,
1481
+ head: Q.value.head,
1482
+ body: Q.value.body,
1483
+ config: Q.value.config,
1484
+ title: I.value.table.useDialog ? "" : mr.value.title,
1485
+ withCloseButton: !I.value.table.useDialog,
1486
+ isCursorPointer: L.value,
1487
+ onClose: hr
1488
+ }, {
1489
+ th: O(({ th: e }) => [g("div", {
1490
+ innerHTML: e,
1491
+ style: {
1492
+ display: "flex",
1493
+ "align-items": "center"
1494
+ }
1495
+ }, null, 8, Jt)]),
1496
+ td: O(({ td: e }) => [Te(T(e.name || e), 1)]),
1497
+ _: 1
1498
+ }, 8, [
1499
+ "colNames",
1500
+ "head",
1501
+ "body",
1502
+ "config",
1503
+ "title",
1504
+ "withCloseButton",
1505
+ "isCursorPointer"
1506
+ ]))]),
1507
+ _: 2
1508
+ }, [I.value.table.useDialog ? {
1509
+ name: "title",
1510
+ fn: O(() => [Te(T(mr.value.title), 1)]),
1511
+ key: "0"
1512
+ } : void 0, I.value.table.useDialog ? {
1513
+ name: "actions",
1514
+ fn: O(() => [g("button", {
1515
+ tabindex: "0",
1516
+ class: "vue-ui-user-options-button",
1517
+ onClick: t[0] ||= (e) => Qn(I.value.userOptions.callbacks.csv),
1518
+ style: b({ cursor: L.value ? "pointer" : "default" })
1519
+ }, [Ee(E(Yt), {
1520
+ name: "fileCsv",
1521
+ stroke: mr.value.props.color
1522
+ }, null, 8, ["stroke"])], 4)]),
1523
+ key: "1"
1524
+ } : void 0]), 1040)) : m("", !0),
1525
+ w(e.$slots, "skeleton", {}, () => [E(Dn) ? (x(), p(ce, { key: 0 })) : m("", !0)], !0)
1526
+ ], 46, ze));
1527
+ }
1528
+ }, [["__scopeId", "data-v-2898a824"]]);
1529
+ //#endregion
1530
+ export { Re as n, Yt as t };