vue-data-ui 3.17.13 → 3.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (493) hide show
  1. package/README.md +1 -1
  2. package/dist/A11yDataTable-q2-8fSlJ.js +45 -0
  3. package/dist/Arrow-BU2Z7mfz.js +116 -0
  4. package/dist/BaseDraggableDialog-LE75fWYz.js +272 -0
  5. package/dist/BaseIcon-CL6Y7alf.js +499 -0
  6. package/dist/BaseLegendToggle-BvPOFMVZ.js +56 -0
  7. package/dist/BaseScanner-C7dmAref.js +27 -0
  8. package/dist/BaseZoomControls-DSwf4HhS.js +111 -0
  9. package/dist/ColorPicker-BGbMrtup.js +255 -0
  10. package/dist/DataTable-ZG4GX2Zg.js +150 -0
  11. package/dist/Legend-BPb8i4aC.js +114 -0
  12. package/dist/NonSvgPenAndPaper-BT3YMjgo.js +577 -0
  13. package/dist/PackageVersion-B1cPtZ3Q.js +11 -0
  14. package/dist/PenAndPaper-DxBCVZAx.js +461 -0
  15. package/dist/RecursiveCircles-DPpLel6f.js +117 -0
  16. package/dist/RecursiveLabels-DBMJf_to.js +56 -0
  17. package/dist/RecursiveLinks-D06dBL4a.js +78 -0
  18. package/dist/Shape-Dbug7CtK.js +141 -0
  19. package/dist/Slicer-SEdaKYPX.js +1144 -0
  20. package/dist/SlicerPreview-BLlQTUI_.js +1523 -0
  21. package/dist/SparkTooltip-BaONR2nq.js +93 -0
  22. package/dist/Title-ByyzJzpc.js +87 -0
  23. package/dist/Tooltip-V6Z0Ko-1.js +307 -0
  24. package/dist/UserOptions-Gaw1761w.js +1407 -0
  25. package/dist/_plugin-vue_export-helper-Dq1MygBL.js +8 -0
  26. package/dist/canvas-lib-DTaADQOK.js +79 -0
  27. package/dist/components/arrow.js +2 -5
  28. package/dist/components/vue-ui-3d-bar.js +2 -5
  29. package/dist/components/vue-ui-accordion.js +2 -5
  30. package/dist/components/vue-ui-age-pyramid.js +2 -5
  31. package/dist/components/vue-ui-annotator.js +2 -5
  32. package/dist/components/vue-ui-bullet.js +2 -5
  33. package/dist/components/vue-ui-bump.js +2 -5
  34. package/dist/components/vue-ui-candlestick.js +2 -5
  35. package/dist/components/vue-ui-carousel-table.js +2 -5
  36. package/dist/components/vue-ui-chestnut.js +2 -5
  37. package/dist/components/vue-ui-chord.js +2 -5
  38. package/dist/components/vue-ui-circle-pack.js +2 -5
  39. package/dist/components/vue-ui-cursor.js +2 -5
  40. package/dist/components/vue-ui-dag.js +2 -5
  41. package/dist/components/vue-ui-dashboard.js +2 -5
  42. package/dist/components/vue-ui-digits.js +2 -5
  43. package/dist/components/vue-ui-donut-evolution.js +2 -5
  44. package/dist/components/vue-ui-donut.js +2 -5
  45. package/dist/components/vue-ui-dumbbell.js +2 -5
  46. package/dist/components/vue-ui-flow.js +2 -5
  47. package/dist/components/vue-ui-funnel.js +2 -5
  48. package/dist/components/vue-ui-galaxy.js +2 -5
  49. package/dist/components/vue-ui-gauge.js +2 -5
  50. package/dist/components/vue-ui-geo.js +2 -5
  51. package/dist/components/vue-ui-gizmo.js +2 -5
  52. package/dist/components/vue-ui-heatmap.js +2 -5
  53. package/dist/components/vue-ui-history-plot.js +2 -5
  54. package/dist/components/vue-ui-horizontal-bar.js +2 -5
  55. package/dist/components/vue-ui-icon.js +2 -5
  56. package/dist/components/vue-ui-kpi.js +2 -5
  57. package/dist/components/vue-ui-mini-loader.js +2 -5
  58. package/dist/components/vue-ui-molecule.js +2 -5
  59. package/dist/components/vue-ui-mood-radar.js +2 -5
  60. package/dist/components/vue-ui-nested-donuts.js +2 -5
  61. package/dist/components/vue-ui-onion.js +2 -5
  62. package/dist/components/vue-ui-parallel-coordinate-plot.js +2 -5
  63. package/dist/components/vue-ui-pattern-seed.js +2 -5
  64. package/dist/components/vue-ui-pattern.js +2 -5
  65. package/dist/components/vue-ui-quadrant.js +2 -5
  66. package/dist/components/vue-ui-quick-chart.js +2 -5
  67. package/dist/components/vue-ui-radar.js +2 -5
  68. package/dist/components/vue-ui-rating.js +2 -5
  69. package/dist/components/vue-ui-relation-circle.js +2 -5
  70. package/dist/components/vue-ui-ridgeline.js +2 -5
  71. package/dist/components/vue-ui-rings.js +2 -5
  72. package/dist/components/vue-ui-scatter.js +2 -5
  73. package/dist/components/vue-ui-skeleton.js +2 -5
  74. package/dist/components/vue-ui-smiley.js +2 -5
  75. package/dist/components/vue-ui-spark-trend.js +2 -5
  76. package/dist/components/vue-ui-sparkbar.js +2 -5
  77. package/dist/components/vue-ui-sparkgauge.js +2 -5
  78. package/dist/components/vue-ui-sparkhistogram.js +2 -5
  79. package/dist/components/vue-ui-sparkline.js +2 -5
  80. package/dist/components/vue-ui-sparkstackbar.js +2 -5
  81. package/dist/components/vue-ui-stackbar.js +2 -5
  82. package/dist/components/vue-ui-stackline.js +2 -5
  83. package/dist/components/vue-ui-strip-plot.js +2 -5
  84. package/dist/components/vue-ui-table-heatmap.js +2 -5
  85. package/dist/components/vue-ui-table-sparkline.js +2 -5
  86. package/dist/components/vue-ui-table.js +2 -5
  87. package/dist/components/vue-ui-thermometer.js +2 -5
  88. package/dist/components/vue-ui-timer.js +2 -5
  89. package/dist/components/vue-ui-tiremarks.js +2 -5
  90. package/dist/components/vue-ui-treemap.js +2 -5
  91. package/dist/components/vue-ui-vertical-bar.js +2 -5
  92. package/dist/components/vue-ui-waffle.js +2 -5
  93. package/dist/components/vue-ui-wheel.js +2 -5
  94. package/dist/components/vue-ui-word-cloud.js +2 -5
  95. package/dist/components/vue-ui-world.js +2 -5
  96. package/dist/components/vue-ui-xy-canvas.js +2 -5
  97. package/dist/components/vue-ui-xy.js +2 -5
  98. package/dist/dom-to-png-C9UOX1d2.js +237 -0
  99. package/dist/exposedLib-BQjH823l.js +19 -0
  100. package/dist/geoProjections-CQIkC70z.js +146 -0
  101. package/dist/img-NMY-_LiJ.js +74 -0
  102. package/dist/labelUtils-BiSegLOT.js +19 -0
  103. package/dist/lib-B83ZCydz.js +1879 -0
  104. package/dist/patternUtils-B7BWu5bV.js +258 -0
  105. package/dist/pdf-Ey2KFETK.js +90 -0
  106. package/dist/rolldown-runtime-CAFD8bLK.js +11 -0
  107. package/dist/style.css +2 -1
  108. package/dist/types/arrow.d.ts +1 -1
  109. package/dist/types/utils.d.ts +23 -0
  110. package/dist/types/vue-data-ui.d.ts +4766 -630
  111. package/dist/types/vue-ui-3d-bar.d.ts +64 -9
  112. package/dist/types/vue-ui-accordion.d.ts +4 -3
  113. package/dist/types/vue-ui-age-pyramid.d.ts +79 -9
  114. package/dist/types/vue-ui-annotator.d.ts +3 -5
  115. package/dist/types/vue-ui-bullet.d.ts +60 -9
  116. package/dist/types/vue-ui-bump.d.ts +65 -9
  117. package/dist/types/vue-ui-candlestick.d.ts +83 -9
  118. package/dist/types/vue-ui-carousel-table.d.ts +36 -6
  119. package/dist/types/vue-ui-chestnut.d.ts +66 -9
  120. package/dist/types/vue-ui-chord.d.ts +78 -9
  121. package/dist/types/vue-ui-circle-pack.d.ts +86 -9
  122. package/dist/types/vue-ui-cursor.d.ts +4 -2
  123. package/dist/types/vue-ui-dag.d.ts +92 -9
  124. package/dist/types/vue-ui-dashboard.d.ts +43 -6
  125. package/dist/types/vue-ui-digits.d.ts +4 -2
  126. package/dist/types/vue-ui-donut-evolution.d.ts +70 -9
  127. package/dist/types/vue-ui-donut.d.ts +92 -9
  128. package/dist/types/vue-ui-dumbbell.d.ts +65 -9
  129. package/dist/types/vue-ui-flow.d.ts +79 -9
  130. package/dist/types/vue-ui-funnel.d.ts +55 -9
  131. package/dist/types/vue-ui-galaxy.d.ts +83 -9
  132. package/dist/types/vue-ui-gauge.d.ts +64 -9
  133. package/dist/types/vue-ui-geo.d.ts +71 -9
  134. package/dist/types/vue-ui-gizmo.d.ts +17 -6
  135. package/dist/types/vue-ui-heatmap.d.ts +73 -9
  136. package/dist/types/vue-ui-history-plot.d.ts +82 -9
  137. package/dist/types/vue-ui-horizontal-bar.d.ts +84 -9
  138. package/dist/types/vue-ui-icon.d.ts +2 -2
  139. package/dist/types/vue-ui-kpi.d.ts +21 -7
  140. package/dist/types/vue-ui-mini-loader.d.ts +5 -3
  141. package/dist/types/vue-ui-molecule.d.ts +86 -9
  142. package/dist/types/vue-ui-mood-radar.d.ts +66 -9
  143. package/dist/types/vue-ui-nested-donuts.d.ts +80 -9
  144. package/dist/types/vue-ui-onion.d.ts +77 -9
  145. package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +92 -9
  146. package/dist/types/vue-ui-pattern-seed.d.ts +1 -1
  147. package/dist/types/vue-ui-pattern.d.ts +2 -2
  148. package/dist/types/vue-ui-quadrant.d.ts +86 -9
  149. package/dist/types/vue-ui-quick-chart.d.ts +79 -9
  150. package/dist/types/vue-ui-radar.d.ts +83 -9
  151. package/dist/types/vue-ui-rating.d.ts +22 -6
  152. package/dist/types/vue-ui-relation-circle.d.ts +66 -9
  153. package/dist/types/vue-ui-ridgeline.d.ts +69 -9
  154. package/dist/types/vue-ui-rings.d.ts +70 -9
  155. package/dist/types/vue-ui-scatter.d.ts +67 -9
  156. package/dist/types/vue-ui-skeleton.d.ts +3 -2
  157. package/dist/types/vue-ui-smiley.d.ts +3 -2
  158. package/dist/types/vue-ui-spark-trend.d.ts +14 -6
  159. package/dist/types/vue-ui-sparkbar.d.ts +27 -6
  160. package/dist/types/vue-ui-sparkgauge.d.ts +20 -6
  161. package/dist/types/vue-ui-sparkhistogram.d.ts +24 -6
  162. package/dist/types/vue-ui-sparkline.d.ts +35 -6
  163. package/dist/types/vue-ui-sparkstackbar.d.ts +35 -6
  164. package/dist/types/vue-ui-stackbar.d.ts +85 -9
  165. package/dist/types/vue-ui-stackline.d.ts +81 -9
  166. package/dist/types/vue-ui-strip-plot.d.ts +66 -9
  167. package/dist/types/vue-ui-table-heatmap.d.ts +52 -6
  168. package/dist/types/vue-ui-table-sparkline.d.ts +30 -6
  169. package/dist/types/vue-ui-table.d.ts +10 -2
  170. package/dist/types/vue-ui-thermometer.d.ts +46 -9
  171. package/dist/types/vue-ui-timer.d.ts +31 -5
  172. package/dist/types/vue-ui-tiremarks.d.ts +46 -9
  173. package/dist/types/vue-ui-treemap.d.ts +73 -9
  174. package/dist/types/vue-ui-vertical-bar.d.ts +2 -2
  175. package/dist/types/vue-ui-waffle.d.ts +72 -9
  176. package/dist/types/vue-ui-wheel.d.ts +46 -9
  177. package/dist/types/vue-ui-word-cloud.d.ts +73 -9
  178. package/dist/types/vue-ui-world.d.ts +68 -9
  179. package/dist/types/vue-ui-xy-canvas.d.ts +75 -9
  180. package/dist/types/vue-ui-xy.d.ts +108 -10
  181. package/dist/useAutoSizeLabelsInsideViewbox-De0rTecW.js +50 -0
  182. package/dist/useChartAccessibility-Do37qcw2.js +12 -0
  183. package/dist/useConfig-KnOLHtlJ.js +7419 -0
  184. package/dist/useFitSvgText-C-MEdAfe.js +63 -0
  185. package/dist/useNestedProp-CcxL1gUU.js +10 -0
  186. package/dist/useObjectBindings-Dc8Rf6Qy.js +189 -0
  187. package/dist/usePanZoom-B-4M_gmY.js +157 -0
  188. package/dist/usePrefersMotion-BywLbIko.js +15 -0
  189. package/dist/usePrinter-CMLF900n.js +49 -0
  190. package/dist/useResponsive-CrAInupd.js +19 -0
  191. package/dist/useStableElementSize-0I1IpHPl.js +77 -0
  192. package/dist/useSvgExport-Dtu973wa.js +755 -0
  193. package/dist/useTableResponsive-DrM1xqII.js +24 -0
  194. package/dist/useThemeCheck-rFK9Zlb_.js +24 -0
  195. package/dist/useTimeLabelCollider-Dm55Emzg.js +57 -0
  196. package/dist/useTimeLabels-C0x7zUXP.js +272 -0
  197. package/dist/useUserOptionState-CjPJPTg2.js +15 -0
  198. package/dist/utils.js +27 -44
  199. package/dist/vClickOutside-CbX_bC9A.js +13 -0
  200. package/dist/vue-data-ui-D1REqS_k.js +274 -0
  201. package/dist/vue-data-ui.js +76 -167
  202. package/dist/vue-ui-3d-bar-vO_kSCd6.js +1747 -0
  203. package/dist/vue-ui-accordion-Cf-jZELj.js +81 -0
  204. package/dist/vue-ui-age-pyramid-DHXhrP_3.js +1226 -0
  205. package/dist/vue-ui-annotator-B0o6czmF.js +2899 -0
  206. package/dist/vue-ui-bullet-C93-cf0H.js +700 -0
  207. package/dist/vue-ui-bump-C_Szk9AZ.js +1239 -0
  208. package/dist/vue-ui-candlestick-6JdMEJKO.js +1802 -0
  209. package/dist/vue-ui-carousel-table-CZ_HK0Iw.js +445 -0
  210. package/dist/vue-ui-chestnut-B8ixU585.js +2000 -0
  211. package/dist/vue-ui-chord-DC5sLapz.js +1381 -0
  212. package/dist/vue-ui-circle-pack-CsmSEwt3.js +1183 -0
  213. package/dist/vue-ui-cursor-B-QODIL3.js +283 -0
  214. package/dist/vue-ui-dag-C9LYfjS_.js +2899 -0
  215. package/dist/vue-ui-dashboard-D-f4ZaLi.js +503 -0
  216. package/dist/vue-ui-digits-CcB3odN7.js +209 -0
  217. package/dist/vue-ui-donut-DR0ngnZC.js +2396 -0
  218. package/dist/vue-ui-donut-evolution-BXpOscCe.js +1490 -0
  219. package/dist/vue-ui-dumbbell-CB_clJWA.js +1517 -0
  220. package/dist/vue-ui-flow-CUiOAEy1.js +1223 -0
  221. package/dist/vue-ui-funnel-BAlGDK0o.js +767 -0
  222. package/dist/vue-ui-galaxy-DbYNfSHb.js +1062 -0
  223. package/dist/vue-ui-gauge-Cie7jykM.js +910 -0
  224. package/dist/vue-ui-geo-Ce_gBRye.js +1504 -0
  225. package/dist/vue-ui-gizmo-B9POi_SN.js +225 -0
  226. package/dist/vue-ui-heatmap-DFfRSbnk.js +1556 -0
  227. package/dist/vue-ui-history-plot-DHp5WFgx.js +1551 -0
  228. package/dist/vue-ui-horizontal-bar-DI4yoARv.js +1669 -0
  229. package/dist/vue-ui-kpi-oUfso4UP.js +96 -0
  230. package/dist/vue-ui-mini-loader-aZMi1_uX.js +125 -0
  231. package/dist/vue-ui-molecule-D72kzel_.js +912 -0
  232. package/dist/vue-ui-mood-radar-Tw2ZFP7Y.js +1138 -0
  233. package/dist/vue-ui-nested-donuts-Bza1LczX.js +1472 -0
  234. package/dist/vue-ui-onion-BOuuib5d.js +1188 -0
  235. package/dist/vue-ui-parallel-coordinate-plot-BuQUq6-o.js +1413 -0
  236. package/dist/vue-ui-pattern-Bj-IPFr2.js +154 -0
  237. package/dist/vue-ui-pattern-seed-abRweCDE.js +61 -0
  238. package/dist/vue-ui-quadrant-zNFIXNt9.js +1966 -0
  239. package/dist/vue-ui-quick-chart-B1a8QVUn.js +2459 -0
  240. package/dist/vue-ui-radar-VFn-YP_2.js +1214 -0
  241. package/dist/vue-ui-rating-Dxgn21FA.js +343 -0
  242. package/dist/vue-ui-relation-circle-B0sZaCgX.js +914 -0
  243. package/dist/vue-ui-ridgeline-BsBAbg5V.js +1612 -0
  244. package/dist/vue-ui-rings-CDwUzMF-.js +1231 -0
  245. package/dist/vue-ui-scatter-Du_b-zM8.js +2380 -0
  246. package/dist/vue-ui-skeleton-BAq6J_6G.js +2556 -0
  247. package/dist/vue-ui-smiley-CoHvkS0c.js +356 -0
  248. package/dist/vue-ui-spark-trend-BmCcJ17C.js +438 -0
  249. package/dist/vue-ui-sparkbar-9z05IMx8.js +393 -0
  250. package/dist/vue-ui-sparkgauge-BlWri9DP.js +255 -0
  251. package/dist/vue-ui-sparkhistogram-CHZTt8d8.js +560 -0
  252. package/dist/vue-ui-sparkline-DirLW9Nd.js +1503 -0
  253. package/dist/vue-ui-sparkstackbar-Dk6cEI2o.js +660 -0
  254. package/dist/vue-ui-stackbar-DNIrGHkt.js +2235 -0
  255. package/dist/vue-ui-stackline-HoWn_ur2.js +2362 -0
  256. package/dist/vue-ui-strip-plot-Bi8u_fLr.js +1328 -0
  257. package/dist/vue-ui-table-XLjOOfdI.js +1338 -0
  258. package/dist/vue-ui-table-heatmap-DvnFiveI.js +334 -0
  259. package/dist/vue-ui-table-sparkline-CSZf8XxP.js +697 -0
  260. package/dist/vue-ui-thermometer-7eUO_7CP.js +753 -0
  261. package/dist/vue-ui-timer-DCbxsREb.js +439 -0
  262. package/dist/vue-ui-tiremarks-p_sfTufv.js +542 -0
  263. package/dist/vue-ui-treemap-BdZOW7TM.js +1575 -0
  264. package/dist/vue-ui-waffle-Bf9dWWCM.js +1350 -0
  265. package/dist/vue-ui-wheel-CZrIiB0K.js +875 -0
  266. package/dist/vue-ui-word-cloud-BeLjxoRe.js +1644 -0
  267. package/dist/vue-ui-world-D9ahzEQ2.js +14252 -0
  268. package/dist/vue-ui-xy-DrvbVuHO.js +4063 -0
  269. package/dist/vue-ui-xy-canvas-DU7vFrQr.js +1774 -0
  270. package/dist/vue_ui_3d_bar-CXKqO5Ej.js +185 -0
  271. package/dist/vue_ui_age_pyramid-BON8QI6X.js +301 -0
  272. package/dist/vue_ui_bullet-CE5sFT7u.js +186 -0
  273. package/dist/vue_ui_bump-frnXaXul.js +201 -0
  274. package/dist/vue_ui_candlestick-sY6UtOop.js +374 -0
  275. package/dist/vue_ui_chestnut-BiUZFv40.js +305 -0
  276. package/dist/vue_ui_chord-DpyR_b9A.js +275 -0
  277. package/dist/vue_ui_circle_pack-DBKz_Fi_.js +130 -0
  278. package/dist/vue_ui_dag-Ci_MOnvd.js +258 -0
  279. package/dist/vue_ui_donut-Cx2_BGcQ.js +358 -0
  280. package/dist/vue_ui_donut_evolution-CAJefrHs.js +717 -0
  281. package/dist/vue_ui_dumbbell-CClzAZTN.js +304 -0
  282. package/dist/vue_ui_flow-CCHO1Lo9.js +238 -0
  283. package/dist/vue_ui_funnel-h8q2mRpC.js +234 -0
  284. package/dist/vue_ui_galaxy-70vtkEBw.js +265 -0
  285. package/dist/vue_ui_gauge-C17CgfzN.js +178 -0
  286. package/dist/vue_ui_geo-C0UbQ0Lc.js +248 -0
  287. package/dist/vue_ui_heatmap-BqPP3J4M.js +319 -0
  288. package/dist/vue_ui_history_plot-C5nytDHh.js +413 -0
  289. package/dist/vue_ui_horizontal_bar-Bqxorkc_.js +341 -0
  290. package/dist/vue_ui_molecule-Dka4JBOp.js +231 -0
  291. package/dist/vue_ui_mood_radar-Dg4ijm53.js +281 -0
  292. package/dist/vue_ui_nested_donuts-BY9cOoHF.js +273 -0
  293. package/dist/vue_ui_onion-DTV9cup-.js +293 -0
  294. package/dist/vue_ui_parallel_coordinate_plot-CNWrDh96.js +278 -0
  295. package/dist/vue_ui_quadrant-3kjYvxpj.js +428 -0
  296. package/dist/vue_ui_quick_chart--VaYQuM4.js +139 -0
  297. package/dist/vue_ui_radar-Dxx9GJmj.js +306 -0
  298. package/dist/vue_ui_relation_circle-Cr0I2SoU.js +98 -0
  299. package/dist/vue_ui_ridgeline-CAtYca4b.js +767 -0
  300. package/dist/vue_ui_rings-DXC1VeX5.js +320 -0
  301. package/dist/vue_ui_scatter-D2S2j0ap.js +479 -0
  302. package/dist/vue_ui_spark_trend-BHMQ6_1p.js +82 -0
  303. package/dist/vue_ui_sparkbar-BR6hbuDE.js +64 -0
  304. package/dist/vue_ui_sparkgauge-xfPRHnMv.js +90 -0
  305. package/dist/vue_ui_sparkhistogram-CJRENZ1C.js +123 -0
  306. package/dist/vue_ui_sparkline-wgk7yO7E.js +151 -0
  307. package/dist/vue_ui_sparkstackbar-C5qZMmAl.js +175 -0
  308. package/dist/vue_ui_stackbar-BW_C3MXw.js +412 -0
  309. package/dist/vue_ui_stackline-DpI2LnjO.js +426 -0
  310. package/dist/vue_ui_strip_plot-8ZelqC5b.js +301 -0
  311. package/dist/vue_ui_table_heatmap-BGUjA0WA.js +80 -0
  312. package/dist/vue_ui_table_sparkline-i0Q-N_we.js +124 -0
  313. package/dist/vue_ui_thermometer-CuN7Gpez.js +123 -0
  314. package/dist/vue_ui_tiremarks-A6UHC0c3.js +122 -0
  315. package/dist/vue_ui_treemap-BQp06q-g.js +328 -0
  316. package/dist/vue_ui_vertical_bar-CJSD1FZS.js +247 -0
  317. package/dist/vue_ui_waffle-C_Ev4l7B.js +292 -0
  318. package/dist/vue_ui_wheel-DdkTPXJU.js +133 -0
  319. package/dist/vue_ui_word_cloud-B1PbsYPc.js +254 -0
  320. package/dist/vue_ui_xy-BYPqfYyx.js +482 -0
  321. package/dist/vue_ui_xy_canvas-CMHGNrLf.js +408 -0
  322. package/package.json +7 -7
  323. package/dist/A11yDataTable-BpmuNomI.js +0 -54
  324. package/dist/Arrow-dSvLFssU.js +0 -101
  325. package/dist/BaseDraggableDialog-Di8Hlru3.js +0 -249
  326. package/dist/BaseIcon-DX0hTWa-.js +0 -476
  327. package/dist/BaseLegendToggle-cMP8M2u0.js +0 -47
  328. package/dist/BaseScanner-C2j3TsSY.js +0 -36
  329. package/dist/BaseZoomControls-CVSC1-SU.js +0 -123
  330. package/dist/ColorPicker-bAxGcXK0.js +0 -271
  331. package/dist/DataTable-cMnb68Ik.js +0 -145
  332. package/dist/Legend-DGN5lY60.js +0 -104
  333. package/dist/NonSvgPenAndPaper-B6E0zEYe.js +0 -573
  334. package/dist/PackageVersion-BfrCAH6_.js +0 -10
  335. package/dist/PenAndPaper-CJDoB5H9.js +0 -527
  336. package/dist/RecursiveCircles-BE6GoMmo.js +0 -101
  337. package/dist/RecursiveLabels-BhQMS9Sm.js +0 -55
  338. package/dist/RecursiveLinks-BDwyYfP-.js +0 -83
  339. package/dist/Shape-CxJ5_Rre.js +0 -116
  340. package/dist/Slicer-D7UcO8sN.js +0 -1145
  341. package/dist/SlicerPreview-D_CgrN_7.js +0 -1580
  342. package/dist/SparkTooltip-D4bM-kfz.js +0 -68
  343. package/dist/Title-BbKoiBk2.js +0 -88
  344. package/dist/Tooltip-Cvt7Fi0Q.js +0 -299
  345. package/dist/UserOptions-DVduN6X7.js +0 -1474
  346. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
  347. package/dist/dom-to-png-DGvx6i5V.js +0 -262
  348. package/dist/exposedLib-sJvY1pST.js +0 -22
  349. package/dist/geoProjections-BFq2sOBY.js +0 -162
  350. package/dist/img-CjTQXS0U.js +0 -57
  351. package/dist/labelUtils-DX9oyq3C.js +0 -26
  352. package/dist/lib-DMzrGQHK.js +0 -2477
  353. package/dist/patternUtils-BINhU4Ky.js +0 -615
  354. package/dist/pdf-C4H4o1Cj.js +0 -88
  355. package/dist/useAutoSizeLabelsInsideViewbox-izlGDfwu.js +0 -55
  356. package/dist/useChartAccessibility-cp6XQtqi.js +0 -15
  357. package/dist/useConfig-CG4HT3wS.js +0 -7901
  358. package/dist/useFitSvgText-2crs6Fv5.js +0 -69
  359. package/dist/useNestedProp-DH0BEVVS.js +0 -13
  360. package/dist/useObjectBindings-Dixg-RIe.js +0 -228
  361. package/dist/usePanZoom-BbDhcKWf.js +0 -141
  362. package/dist/usePrefersMotion-Co0nj1eS.js +0 -17
  363. package/dist/usePrinter-C4t8DdQ-.js +0 -51
  364. package/dist/useResponsive-DfdjqQps.js +0 -195
  365. package/dist/useStableElementSize-C48ZVcZQ.js +0 -77
  366. package/dist/useSvgExport-BTG4hVPO.js +0 -870
  367. package/dist/useTableResponsive-BpfiEtzR.js +0 -26
  368. package/dist/useThemeCheck-C9Ccl7U9.js +0 -36
  369. package/dist/useTimeLabelCollider-D3JeJ6Ye.js +0 -86
  370. package/dist/useTimeLabels-Cv0tD9In.js +0 -307
  371. package/dist/useUserOptionState-B7Ej974k.js +0 -19
  372. package/dist/vClickOutside-C6WiFswA.js +0 -13
  373. package/dist/vue-data-ui-D1ZI7Y4l.js +0 -433
  374. package/dist/vue-ui-3d-bar-DEjKYzI5.js +0 -1824
  375. package/dist/vue-ui-accordion-DFtpH_16.js +0 -92
  376. package/dist/vue-ui-age-pyramid-LiC9hTjP.js +0 -1179
  377. package/dist/vue-ui-annotator-DrKnQoHf.js +0 -2991
  378. package/dist/vue-ui-bullet-DdxEINdq.js +0 -769
  379. package/dist/vue-ui-bump-CdgO1V7z.js +0 -1250
  380. package/dist/vue-ui-candlestick-DxJnPwto.js +0 -1775
  381. package/dist/vue-ui-carousel-table-CMefu5TI.js +0 -487
  382. package/dist/vue-ui-chestnut-BnGN72PO.js +0 -2001
  383. package/dist/vue-ui-chord-DWyar45U.js +0 -1457
  384. package/dist/vue-ui-circle-pack-CQ8vF2XH.js +0 -1076
  385. package/dist/vue-ui-cursor-HHOdkmyB.js +0 -260
  386. package/dist/vue-ui-dag-BDWPBElq.js +0 -3209
  387. package/dist/vue-ui-dashboard-Dg_I3X2a.js +0 -627
  388. package/dist/vue-ui-digits-CZmdir8V.js +0 -211
  389. package/dist/vue-ui-donut-BKegKHxj.js +0 -2608
  390. package/dist/vue-ui-donut-evolution-047dE4Lu.js +0 -1578
  391. package/dist/vue-ui-dumbbell-BL4ZMChj.js +0 -1552
  392. package/dist/vue-ui-flow-BAqtyunQ.js +0 -1279
  393. package/dist/vue-ui-funnel-Pl2sEOZs.js +0 -823
  394. package/dist/vue-ui-galaxy-CBF5Wsax.js +0 -1108
  395. package/dist/vue-ui-gauge-COV_S0Vp.js +0 -955
  396. package/dist/vue-ui-geo-CaPXElPf.js +0 -1510
  397. package/dist/vue-ui-gizmo-Csn7up96.js +0 -238
  398. package/dist/vue-ui-heatmap-Cpb0BYLa.js +0 -1694
  399. package/dist/vue-ui-history-plot-ZZEdzFCE.js +0 -1564
  400. package/dist/vue-ui-horizontal-bar-BonPYUZf.js +0 -1735
  401. package/dist/vue-ui-kpi-DoHhSsDK.js +0 -130
  402. package/dist/vue-ui-mini-loader-DOTBVCLE.js +0 -138
  403. package/dist/vue-ui-molecule-mVYnXouV.js +0 -945
  404. package/dist/vue-ui-mood-radar-DPvwnc3z.js +0 -1197
  405. package/dist/vue-ui-nested-donuts-C7E6TXrZ.js +0 -1702
  406. package/dist/vue-ui-onion-BGIlFhGB.js +0 -1207
  407. package/dist/vue-ui-parallel-coordinate-plot-C6G_A9ua.js +0 -1432
  408. package/dist/vue-ui-pattern-mXZW_pvA.js +0 -146
  409. package/dist/vue-ui-pattern-seed-BcNlxb2i.js +0 -36
  410. package/dist/vue-ui-quadrant-CVpIeYOB.js +0 -1918
  411. package/dist/vue-ui-quick-chart-CcV8qn9-.js +0 -2514
  412. package/dist/vue-ui-radar-G4AV1rBo.js +0 -1259
  413. package/dist/vue-ui-rating-CqPlP88P.js +0 -370
  414. package/dist/vue-ui-relation-circle-CkZ8oFVV.js +0 -856
  415. package/dist/vue-ui-ridgeline-CBTyYn6Q.js +0 -1737
  416. package/dist/vue-ui-rings-CSIOqFiP.js +0 -1256
  417. package/dist/vue-ui-scatter-AuC46ufT.js +0 -2345
  418. package/dist/vue-ui-skeleton-YD6rZjY_.js +0 -2475
  419. package/dist/vue-ui-smiley-CY0WFv2j.js +0 -391
  420. package/dist/vue-ui-spark-trend-D8KGIt-R.js +0 -423
  421. package/dist/vue-ui-sparkbar-BjWGJjzN.js +0 -424
  422. package/dist/vue-ui-sparkgauge-Dab5mss7.js +0 -285
  423. package/dist/vue-ui-sparkhistogram-D0rsmiPh.js +0 -559
  424. package/dist/vue-ui-sparkline-BCaauQuX.js +0 -1550
  425. package/dist/vue-ui-sparkstackbar-NT5yD6xA.js +0 -672
  426. package/dist/vue-ui-stackbar-ChBk_A1c.js +0 -2393
  427. package/dist/vue-ui-stackline-Cujamlze.js +0 -2490
  428. package/dist/vue-ui-strip-plot-CGBumG6I.js +0 -1293
  429. package/dist/vue-ui-table-BX2iMku4.js +0 -1726
  430. package/dist/vue-ui-table-heatmap-KXgXYVXm.js +0 -353
  431. package/dist/vue-ui-table-sparkline-C3NWnry0.js +0 -803
  432. package/dist/vue-ui-thermometer-DvdceZB1.js +0 -743
  433. package/dist/vue-ui-timer-XWAbvuAY.js +0 -504
  434. package/dist/vue-ui-tiremarks-B-YI1RlT.js +0 -578
  435. package/dist/vue-ui-treemap-AzorGfmd.js +0 -1757
  436. package/dist/vue-ui-waffle-CKtUvdTE.js +0 -1442
  437. package/dist/vue-ui-wheel-CnsLEArZ.js +0 -908
  438. package/dist/vue-ui-word-cloud-iAme2ihe.js +0 -1644
  439. package/dist/vue-ui-world-D5rrC9rw.js +0 -14452
  440. package/dist/vue-ui-xy-C_Q9chQe.js +0 -4468
  441. package/dist/vue-ui-xy-canvas-DG0299qE.js +0 -2107
  442. package/dist/vue_ui_3d_bar-CL0iX8Qi.js +0 -22
  443. package/dist/vue_ui_age_pyramid-8H8WSL7J.js +0 -22
  444. package/dist/vue_ui_bullet-Ckqieba5.js +0 -22
  445. package/dist/vue_ui_bump-CIht647H.js +0 -22
  446. package/dist/vue_ui_candlestick-BAMn-VGw.js +0 -22
  447. package/dist/vue_ui_chestnut-BloFvDuV.js +0 -22
  448. package/dist/vue_ui_chord-Bc1_ocwK.js +0 -22
  449. package/dist/vue_ui_circle_pack-CLmw8nHe.js +0 -22
  450. package/dist/vue_ui_dag-ZOwuDBZ8.js +0 -22
  451. package/dist/vue_ui_donut-CA4dgV8J.js +0 -22
  452. package/dist/vue_ui_donut_evolution-DFQU-rqE.js +0 -22
  453. package/dist/vue_ui_dumbbell-BCOHDiPk.js +0 -22
  454. package/dist/vue_ui_flow-BErINgox.js +0 -22
  455. package/dist/vue_ui_funnel-yuaMZ-yb.js +0 -22
  456. package/dist/vue_ui_galaxy-D95AN4FT.js +0 -22
  457. package/dist/vue_ui_gauge-BMEuRC4J.js +0 -22
  458. package/dist/vue_ui_geo--kg4VoVX.js +0 -22
  459. package/dist/vue_ui_heatmap-C9u993qE.js +0 -22
  460. package/dist/vue_ui_history_plot-BCKk1CrQ.js +0 -22
  461. package/dist/vue_ui_horizontal_bar-BEagrV0T.js +0 -22
  462. package/dist/vue_ui_molecule-BtvlINUh.js +0 -22
  463. package/dist/vue_ui_mood_radar-BUs6Fdn8.js +0 -22
  464. package/dist/vue_ui_nested_donuts-DvTrWT_C.js +0 -22
  465. package/dist/vue_ui_onion-CxWH9_OZ.js +0 -22
  466. package/dist/vue_ui_parallel_coordinate_plot-DH3cFJ3n.js +0 -22
  467. package/dist/vue_ui_quadrant-DjRs--Uz.js +0 -22
  468. package/dist/vue_ui_quick_chart-DMCjEjPe.js +0 -22
  469. package/dist/vue_ui_radar-DryGBOrz.js +0 -22
  470. package/dist/vue_ui_relation_circle-CCroen7h.js +0 -22
  471. package/dist/vue_ui_ridgeline-j4rVmpEp.js +0 -22
  472. package/dist/vue_ui_rings-CxOrekqA.js +0 -22
  473. package/dist/vue_ui_scatter-Bu1EAy9H.js +0 -22
  474. package/dist/vue_ui_spark_trend-3BjrSprO.js +0 -22
  475. package/dist/vue_ui_sparkbar-BsMzz5Um.js +0 -22
  476. package/dist/vue_ui_sparkgauge-KnjASOZs.js +0 -22
  477. package/dist/vue_ui_sparkhistogram-GBdzIVvS.js +0 -22
  478. package/dist/vue_ui_sparkline-CQ8DJVJx.js +0 -22
  479. package/dist/vue_ui_sparkstackbar-BSexvOuM.js +0 -22
  480. package/dist/vue_ui_stackbar-CuDC4O4b.js +0 -22
  481. package/dist/vue_ui_stackline-QTh-nuxE.js +0 -22
  482. package/dist/vue_ui_strip_plot-B9ypi_F3.js +0 -22
  483. package/dist/vue_ui_table_heatmap-CkvipPVy.js +0 -16
  484. package/dist/vue_ui_table_sparkline-yQdijcyJ.js +0 -22
  485. package/dist/vue_ui_thermometer-BTmjRBH8.js +0 -22
  486. package/dist/vue_ui_tiremarks-DBotWfi8.js +0 -22
  487. package/dist/vue_ui_treemap-D9-AIkT-.js +0 -22
  488. package/dist/vue_ui_vertical_bar-CELc39b8.js +0 -18
  489. package/dist/vue_ui_waffle-M2h-uJQ_.js +0 -22
  490. package/dist/vue_ui_wheel-LqBz3lv4.js +0 -22
  491. package/dist/vue_ui_word_cloud-mKAtBxHR.js +0 -22
  492. package/dist/vue_ui_xy-esktmpg-.js +0 -22
  493. package/dist/vue_ui_xy_canvas-6BBDSowT.js +0 -22
@@ -1,1279 +0,0 @@
1
- import { defineAsyncComponent as te, ref as r, computed as i, onMounted as Xo, toRefs as qo, watch as Re, openBlock as c, createElementBlock as b, unref as u, normalizeStyle as X, normalizeClass as eo, createElementVNode as H, toDisplayString as pe, createBlock as oe, createCommentVNode as w, withCtx as f, renderSlot as v, normalizeProps as S, guardReactiveProps as P, createSlots as to, createVNode as He, Fragment as Pe, renderList as Ie, Teleport as Zo, resolveDynamicComponent as Jo, mergeProps as Qo, createTextVNode as oo, nextTick as dt } from "vue";
2
- import { j as Ue, t as lo, o as ao, q as el, m as tl, p as q, n as ol, K as I, s as ll, l as ge, X as al, k as We, W as no, a as nl, a0 as sl, a1 as rl, T as ul } from "./lib-DMzrGQHK.js";
3
- import { t as il, u as cl } from "./useResponsive-DfdjqQps.js";
4
- import { u as dl } from "./useConfig-CG4HT3wS.js";
5
- import { u as vl } from "./usePrinter-C4t8DdQ-.js";
6
- import { u as fl, B as hl } from "./BaseScanner-C2j3TsSY.js";
7
- import { u as pl } from "./useSvgExport-BTG4hVPO.js";
8
- import { u as vt } from "./useNestedProp-DH0BEVVS.js";
9
- import { u as gl } from "./useThemeCheck-C9Ccl7U9.js";
10
- import { u as yl } from "./useUserOptionState-B7Ej974k.js";
11
- import { u as ml } from "./useChartAccessibility-cp6XQtqi.js";
12
- import bl from "./img-CjTQXS0U.js";
13
- import Cl from "./Title-BbKoiBk2.js";
14
- import kl from "./vue_ui_flow-BErINgox.js";
15
- import wl from "./Legend-DGN5lY60.js";
16
- import { A as $l } from "./A11yDataTable-BpmuNomI.js";
17
- import { _ as Al } from "./_plugin-vue_export-helper-CHgC5LLL.js";
18
- const xl = ["id"], Tl = ["id"], Sl = {
19
- key: 2,
20
- ref: "noTitle",
21
- class: "vue-data-ui-no-title-space",
22
- style: "height:36px; width: 100%;background:transparent"
23
- }, Pl = ["id"], Il = { style: { position: "relative" } }, Nl = ["xmlns", "aria-describedby", "viewBox"], Ol = ["width", "height"], El = ["id"], Fl = ["stop-color"], _l = ["stop-color"], Ml = ["d", "fill", "stroke", "stroke-width"], Dl = ["data-a11y-node-id", "x", "y", "height", "width", "fill", "stroke", "stroke-width", "rx", "aria-label", "onMouseenter", "onMouseleave", "onClick"], Ll = { key: 1 }, Bl = ["x", "y", "font-size", "fill"], Yl = ["x", "y", "font-size", "fill"], zl = {
24
- key: 0,
25
- style: { position: "absolute", top: "100%", left: "0", width: "100%" },
26
- "data-dom-to-png-ignore": "",
27
- "aria-hidden": "true"
28
- }, Rl = {
29
- key: 5,
30
- class: "vue-data-ui-watermark"
31
- }, Hl = ["id"], Ul = ["onClick"], Wl = ["innerHTML"], Vl = {
32
- __name: "vue-ui-flow",
33
- props: {
34
- config: {
35
- type: Object,
36
- default() {
37
- return {};
38
- }
39
- },
40
- dataset: {
41
- type: Array,
42
- default() {
43
- return [];
44
- }
45
- }
46
- },
47
- emits: ["copyAlt"],
48
- setup(so, { expose: ro, emit: uo }) {
49
- const io = te(() => import("./Tooltip-Cvt7Fi0Q.js")), co = te(() => import("./BaseIcon-DX0hTWa-.js")), vo = te(() => import("./vue-ui-accordion-DFtpH_16.js")), fo = te(() => import("./DataTable-cMnb68Ik.js")), ho = te(
50
- () => import("./PenAndPaper-CJDoB5H9.js")
51
- ), po = te(
52
- () => import("./UserOptions-DVduN6X7.js")
53
- ), go = te(
54
- () => import("./PackageVersion-BfrCAH6_.js")
55
- ), yo = te(
56
- () => import("./BaseDraggableDialog-Di8Hlru3.js")
57
- ), { vue_ui_flow: mo } = dl(), { isThemeValid: bo, warnInvalidTheme: Co } = gl(), N = so, ko = uo, U = r(Ue()), V = r(null), ft = r(0), ht = r(0), Ne = r(!1), Ve = r(""), pt = r(null), gt = r(null), yt = r(null), ye = r(null), Oe = r(null), mt = r(!1), me = r(null), Ge = r(null), wo = r(null), Ee = r(!1), Fe = r(!1), be = r(null), de = r(null), bt = r({ x: 0, y: 0 }), je = r("pointer"), _e = r(!1), Ct = i(() => !!N.dataset && N.dataset.length);
58
- Xo(() => {
59
- mt.value = !0, wt();
60
- });
61
- const le = r(!1);
62
- function kt(t) {
63
- le.value = t, ft.value += 1;
64
- }
65
- const e = r(Ze()), ve = i(
66
- () => e.value.userOptions.useCursorPointer
67
- ), $o = i(() => lo({
68
- defaultConfig: {
69
- userOptions: { show: !1 },
70
- nodeCategories: {
71
- B: "A",
72
- C: "B"
73
- },
74
- nodeCategoryColors: {
75
- A: "#CACACA",
76
- B: "#AAAAAA"
77
- },
78
- table: { show: !1 },
79
- style: {
80
- chart: {
81
- backgroundColor: "#99999930",
82
- legend: {
83
- backgroundColor: "transparent"
84
- },
85
- nodes: {
86
- labels: {
87
- show: !1
88
- },
89
- stroke: "#666666"
90
- },
91
- links: {
92
- stroke: "#666666"
93
- }
94
- }
95
- }
96
- },
97
- userConfig: e.value.skeletonConfig ?? {}
98
- })), { loading: Ke, FINAL_DATASET: Me, manualLoading: Xe } = fl({
99
- ...qo(N),
100
- FINAL_CONFIG: e,
101
- prepareConfig: Ze,
102
- skeletonDataset: N.config?.skeletonDataset ?? [
103
- ["A", "B", 2, "#CACACA"],
104
- ["B", "C", 1, "#CACACA"],
105
- ["C", "D", 0.5, "#CACACA"],
106
- ["E", "F", 1, "#AAAAAA"],
107
- ["F", "G", 0.5, "#AAAAAA"],
108
- ["G", "H", 0.25, "#AAAAAA"]
109
- ],
110
- skeletonConfig: lo({
111
- defaultConfig: e.value,
112
- userConfig: $o.value
113
- })
114
- }), Ao = i(() => !!e.value.debug);
115
- function wt() {
116
- if (ao(N.dataset) && (el({
117
- componentName: "VueUiFlow",
118
- type: "dataset",
119
- debug: Ao.value
120
- }), Xe.value = !0), ao(N.dataset) || (Xe.value = e.value.loading), e.value.responsive) {
121
- const t = il(() => {
122
- const { width: l, height: o } = cl({
123
- chart: V.value,
124
- title: e.value.style.chart.title.text ? gt.value : null,
125
- legend: e.value.style.chart.legend.show ? pt.value : null,
126
- source: yt.value
127
- });
128
- requestAnimationFrame(() => {
129
- xt.value = l, Tt.value = o;
130
- });
131
- });
132
- ye.value && (Oe.value && ye.value.unobserve(Oe.value), ye.value.disconnect()), ye.value = new ResizeObserver(t), Oe.value = V.value.parentNode, ye.value.observe(Oe.value);
133
- }
134
- }
135
- const { userOptionsVisible: qe, setUserOptionsVisibility: $t, keepUserOptionState: At } = yl({ config: e.value }), { svgRef: ae } = ml({
136
- config: e.value.style.chart.title
137
- });
138
- function Ze() {
139
- const t = vt({
140
- userConfig: N.config,
141
- defaultConfig: mo
142
- });
143
- let l = t;
144
- const o = t.theme;
145
- if (o)
146
- if (!bo.value(t))
147
- Co(t), l = t;
148
- else {
149
- const a = vt({
150
- userConfig: kl[o] || N.config,
151
- defaultConfig: t
152
- });
153
- l = {
154
- ...vt({
155
- userConfig: N.config,
156
- defaultConfig: a
157
- }),
158
- customPalette: t.customPalette.length ? t.customPalette : tl[o] || q
159
- };
160
- }
161
- else
162
- l = t;
163
- return l.nodeCategories = N.config.nodeCategories || {}, l.nodeCategoryColors = N.config.nodeCategoryColors || {}, l;
164
- }
165
- const xt = r(e.value.style.chart.width), Tt = r(e.value.style.chart.height);
166
- Re(
167
- () => N.config,
168
- (t) => {
169
- Ke.value || (e.value = Ze()), qe.value = !e.value.userOptions.showOnChartHover, wt(), ht.value += 1, Y.value.showTable = e.value.table.show;
170
- },
171
- { deep: !0 }
172
- ), Re(
173
- () => N.dataset,
174
- (t) => {
175
- Array.isArray(t) && t.length > 0 && (Xe.value = !1);
176
- },
177
- { deep: !0 }
178
- );
179
- const { isPrinting: Je, isImaging: Qe, generatePdf: St, generateImage: Pt } = vl({
180
- elementId: `flow_${U.value}`,
181
- fileName: e.value.style.chart.title.text || "vue-ui-flow",
182
- options: e.value.userOptions.print
183
- }), xo = i(() => e.value.userOptions.show && !e.value.style.chart.title.text), De = i(() => ol(e.value.customPalette)), Ce = i(() => e.value.style.chart.nodes.width), Y = r({
184
- showTable: e.value.table.show,
185
- showTooltip: e.value.style.chart.tooltip.show
186
- });
187
- Re(
188
- e,
189
- () => {
190
- Y.value = {
191
- showTable: e.value.table.show,
192
- showTooltip: e.value.style.chart.tooltip.show
193
- };
194
- },
195
- { immediate: !0 }
196
- );
197
- const It = i(() => !Me.value || !Me.value.length ? [] : Me.value.map((t, l) => [
198
- t[0],
199
- t[1],
200
- I(t[2]),
201
- t[3] ? ll(t[3]) : De.value[l] || De.value[l % De.value.length] || q[l] || q[l % q.length]
202
- ]));
203
- function To(t) {
204
- const l = {}, o = {};
205
- function a(s, d) {
206
- l[s] || (l[s] = {
207
- level: null,
208
- inflow: 0,
209
- outflow: 0,
210
- children: [],
211
- color: null,
212
- uid: Ue()
213
- }), l[s].level === null && (l[s].level = d), o[d] || (o[d] = []), o[d].includes(s) || o[d].push(s);
214
- }
215
- t.forEach(([s, d, g]) => {
216
- const m = l[s]?.level ?? 0, R = m + 1;
217
- a(s, m), a(d, R), l[s].children.push({ target: d, value: g }), l[s].outflow += g, l[d].inflow += g;
218
- });
219
- const n = new Set(t.map(([s]) => s)), p = new Set(t.map(([, s]) => s)), O = Array.from(n).filter((s) => !p.has(s)), _ = {};
220
- O.forEach((s, d) => {
221
- _[s] = De.value[d] || q[d % q.length];
222
- });
223
- const z = {};
224
- t.forEach(([s, d, g, m]) => {
225
- m && (z[s] = m, z[d] = m);
226
- }), Object.keys(l).forEach((s, d) => {
227
- const g = e.value.nodeCategories?.[s], m = g ? e.value.nodeCategoryColors?.[g] : null;
228
- l[s].color = z[s] || m || (O.includes(s) ? _[s] : null) || q[d % q.length];
229
- }), Object.keys(l).forEach((s) => {
230
- l[s].value = Math.max(l[s].inflow, l[s].outflow);
231
- });
232
- const W = ke.value, G = Et.value.width, j = Et.value.height, C = Object.keys(o).map(Number).sort((s, d) => s - d), E = C.length || 1, M = E > 1 ? G / (E - 1) : 0, rt = Number(Ce.value), Te = Number(
233
- e.value.style.chart.nodes.gapPx ?? e.value.style.chart.nodes.gap ?? 8
234
- ), F = Number(
235
- e.value.style.chart.nodes.minHeight || 0
236
- );
237
- function Z(s) {
238
- const d = o[s], g = d.length;
239
- if (!g) return 1 / 0;
240
- const m = Math.max(0, (g - 1) * Te), R = Math.max(0, j - m), Q = Math.min(F, g ? R / g : 0);
241
- let x = 0, D = d.map((k) => l[k].value || 0), T = D.reduce((k, L) => k + L, 0);
242
- for (let k = 0; k < 12; k += 1) {
243
- const L = T > 0 ? (R - x) / T : 0, ee = [];
244
- for (let B = 0; B < D.length; B += 1) {
245
- const K = D[B];
246
- K < 0 || K * L < Q && ee.push(B);
247
- }
248
- if (!ee.length) return Math.max(0, L);
249
- for (const B of ee)
250
- x += Q, T -= D[B], D[B] = -1;
251
- if (T <= 0) return 0;
252
- }
253
- return T > 0 ? Math.max(0, (R - x) / T) : 0;
254
- }
255
- const Se = C.map(Z), h = Se.length ? Math.min(...Se) : 0, y = {};
256
- C.forEach((s) => {
257
- const d = o[s], g = d.length, m = Math.max(0, (g - 1) * Te), R = Math.max(0, j - m), Q = Math.min(F, g ? R / g : 0), x = d.map(
258
- (k) => Math.max(Q, (l[k].value || 0) * h)
259
- ), D = x.reduce((k, L) => k + L, 0) + m;
260
- let T = Math.max(0, (j - D) / 2);
261
- d.forEach((k, L) => {
262
- const ee = x[L], B = W.left + s * M, K = T;
263
- y[k] = {
264
- x: B,
265
- y: K,
266
- absoluteY: K,
267
- height: ee,
268
- i: L,
269
- color: l[k].color,
270
- value: l[k].value,
271
- id: Ue()
272
- }, T += ee, L < g - 1 && (T += Te);
273
- });
274
- });
275
- const J = [], ue = W.top, ut = {}, it = {};
276
- Object.keys(l).forEach((s) => {
277
- ut[s] = y[s]?.y ?? 0, it[s] = 0;
278
- });
279
- const Vo = 1e-6, Go = 0.25, jo = !!e.value.style.chart.links.smooth, Ht = 0.5;
280
- return C.forEach((s) => {
281
- o[s].forEach((g) => {
282
- const m = l[g], R = y[g];
283
- if (!m.children || !m.children.length) return;
284
- let Q = R.y;
285
- m.children.forEach(({ target: x, value: D }) => {
286
- const T = y[x], k = l[x], L = m.outflow > 0 ? D / m.outflow : 0, ee = k.inflow > 0 ? D / k.inflow : 0, B = I(Q + ue), K = I(
287
- Q + L * R.height + ue
288
- ), Ut = ut[x];
289
- let ze = Ut + ee * T.height;
290
- it[x] += D;
291
- const Ko = k.inflow > 0 && it[x] >= k.inflow - Vo, Wt = T.y + T.height;
292
- (Ko || ze > Wt - Go) && (ze = Wt);
293
- const Vt = I(Ut + ue), Gt = I(ze + ue), ie = I(R.x + rt), ce = I(T.x);
294
- let ct;
295
- if (!jo || ce <= ie)
296
- ct = `M ${ie} ${B} L ${ie} ${K} L ${ce} ${Gt} L ${ce} ${Vt} Z`;
297
- else {
298
- const jt = ce - ie, Kt = I(ie + jt * Ht), Xt = I(ce - jt * Ht), qt = B, Zt = Vt, Jt = K, Qt = Gt;
299
- ct = `M ${ie} ${qt} C ${Kt} ${qt}, ${Xt} ${Zt}, ${ce} ${Zt} L ${ce} ${Qt} C ${Xt} ${Qt}, ${Kt} ${Jt}, ${ie} ${Jt} Z`;
300
- }
301
- J.push({
302
- id: Ue(),
303
- source: g,
304
- target: x,
305
- path: ct,
306
- value: D,
307
- sourceColor: m.color,
308
- targetColor: l[x].color
309
- }), Q = K - ue, ut[x] = ze;
310
- });
311
- });
312
- }), { nodeCoordinates: y, links: J };
313
- }
314
- const $ = i(() => {
315
- const t = To(Me.value);
316
- return {
317
- nodes: Object.keys(t.nodeCoordinates).map((l, o) => ({
318
- ...t.nodeCoordinates[l],
319
- name: l
320
- })),
321
- links: t.links
322
- };
323
- }), Nt = i(() => xt.value), Ot = i(() => Tt.value), ke = i(() => e.value.style.chart.padding), Et = i(() => ({
324
- width: Math.max(
325
- 0,
326
- Nt.value - 40 - ke.value.right - ke.value.left
327
- ),
328
- height: Math.max(
329
- 0,
330
- Ot.value - ke.value.top - ke.value.bottom
331
- )
332
- })), we = i(() => ({
333
- width: Nt.value,
334
- height: Ot.value
335
- }));
336
- function So(t) {
337
- const l = {}, o = {}, a = /* @__PURE__ */ new Set();
338
- return It.value.forEach(([n, p, O]) => {
339
- l[n] || (l[n] = []), o[p] || (o[p] = []), l[n].push(p), o[p].push(n);
340
- }), l[t] && l[t].forEach((n) => a.add(n)), o[t] && o[t].forEach((n) => a.add(n)), Array.from(a).concat(t);
341
- }
342
- const A = r(null), ne = r(null), fe = r(null), Le = r(!1), $e = r(null);
343
- function et() {
344
- $e.value = null, A.value = null, ne.value = null, Ne.value = !1, be.value = null, de.value = null;
345
- }
346
- function Po(t) {
347
- if (!ae.value || !t) return;
348
- const l = ae.value.querySelector(`[data-a11y-node-id="${t}"]`);
349
- if (!l) return;
350
- const o = l.getBoundingClientRect();
351
- bt.value = {
352
- x: o.left + o.width / 2,
353
- y: o.top + o.height / 2
354
- };
355
- }
356
- function tt(t, l, o = "pointer", a = null) {
357
- re.value = [], A.value = So(t.name), ne.value = t.name, $e.value = t.id, je.value = o, be.value = a, de.value = t.id;
358
- const n = t.name, p = It.value;
359
- let O = 0, _ = 0, z = [], W = [];
360
- const G = new Set(p.map(([h]) => h)), j = new Set(p.map(([, h]) => h)), C = Array.from(G).filter((h) => !j.has(h)), E = p.filter(([h]) => C.includes(h)).reduce((h, [y, J, ue]) => h + ue, 0), M = {};
361
- $.value.nodes.forEach((h) => {
362
- M[h.name] = h.color;
363
- }), p.forEach(([h, y, J]) => {
364
- y === n && (O += J, z.push({ source: h, value: J, color: M[h] })), h === n && (_ += J, W.push({ target: y, value: J, color: M[y] }));
365
- });
366
- const rt = Math.max(O, _), Te = E > 0 ? rt / E * 100 : 0, F = {
367
- name: n,
368
- inflow: O,
369
- outflow: _,
370
- from: z,
371
- to: W,
372
- percentOfTotal: Te,
373
- color: M[n] || "#000000"
374
- };
375
- e.value.events.datapointEnter && e.value.events.datapointEnter({
376
- datapoint: F,
377
- seriesIndex: l
378
- }), fe.value = { datapoint: F }, Ne.value = !0;
379
- let Z = "";
380
- const Se = e.value.style.chart.tooltip.customFormat;
381
- if (Le.value = !1, ul(Se))
382
- try {
383
- const h = Se({
384
- datapoint: F,
385
- series: $.value,
386
- config: e.value
387
- });
388
- typeof h == "string" && (Ve.value = h, Le.value = !0);
389
- } catch {
390
- console.warn("Custom format cannot be applied.");
391
- }
392
- if (!Le.value) {
393
- const h = e.value.style.chart.tooltip.showPercentage ? `<div>${ge({
394
- p: e.value.style.chart.tooltip.translations.percentOfTotal,
395
- v: F.percentOfTotal,
396
- s: "%",
397
- r: e.value.style.chart.tooltip.roundingPercentage
398
- })}</div>` : "";
399
- Z += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;"><span style="margin-right:4px; color:${F.color}">⏹</span>${F.name}${h}</div>`, F.from.length && (Z += `<div>${e.value.style.chart.tooltip.translations.from}</div>`, F.from.forEach((y) => {
400
- Z += `<div><span style="color:${y.color}">⏹←</span> ${y.source}: ${We(
401
- e.value.style.chart.nodes.labels.formatter,
402
- y.value,
403
- ge({
404
- p: e.value.style.chart.nodes.labels.prefix,
405
- v: y.value,
406
- s: e.value.style.chart.nodes.labels.suffix,
407
- r: e.value.style.chart.nodes.labels.rounding
408
- })
409
- )}</div>`;
410
- })), F.to.length && (Z += `<div style="margin-top:6px;">${e.value.style.chart.tooltip.translations.to}</div>`, F.to.forEach((y) => {
411
- Z += `<div><span style="color:${y.color}">⏹→</span> ${y.target}: ${We(
412
- e.value.style.chart.nodes.labels.formatter,
413
- y.value,
414
- ge({
415
- p: e.value.style.chart.nodes.labels.prefix,
416
- v: y.value,
417
- s: e.value.style.chart.nodes.labels.suffix,
418
- r: e.value.style.chart.nodes.labels.rounding
419
- })
420
- )}</div>`;
421
- })), Ve.value = Z;
422
- }
423
- o === "keyboard" && dt(() => {
424
- Po(t.id);
425
- });
426
- }
427
- function Ft(t) {
428
- const l = fe.value;
429
- e.value.events.datapointLeave && e.value.events.datapointLeave({
430
- datapoint: l,
431
- seriesIndex: t
432
- }), !(je.value === "keyboard" && de.value) && ($e.value = null, A.value = null, ne.value = null, Ne.value = !1);
433
- }
434
- function _t(t) {
435
- const l = fe.value;
436
- e.value.events.datapointClick && e.value.events.datapointClick({
437
- datapoint: l,
438
- seriesIndex: t
439
- });
440
- }
441
- const Mt = i(() => $.value.links.map(
442
- ({ source: t, target: l, sourceColor: o, targetColor: a, value: n }) => ({
443
- source: t,
444
- target: l,
445
- sourceColor: o,
446
- targetColor: a,
447
- value: n
448
- })
449
- ));
450
- function ot(t = null) {
451
- dt(() => {
452
- const l = Mt.value.map((n, p) => [[n.source], [n.target], [n.value]]), o = [
453
- [e.value.style.chart.title.text],
454
- [e.value.style.chart.title.subtitle.text],
455
- [
456
- [e.value.table.columnNames.source],
457
- [e.value.table.columnNames.target],
458
- [e.value.table.columnNames.value]
459
- ]
460
- ].concat(l), a = sl(o);
461
- t ? t(a) : rl({
462
- csvContent: a,
463
- title: e.value.style.chart.title.text || "vue-ui-flow"
464
- });
465
- });
466
- }
467
- const he = i(() => {
468
- const t = [
469
- e.value.table.columnNames.source,
470
- e.value.table.columnNames.target,
471
- e.value.table.columnNames.value
472
- ], l = Mt.value.map((n, p) => [
473
- {
474
- color: n.sourceColor,
475
- name: n.source,
476
- shape: "square"
477
- },
478
- {
479
- color: n.targetColor,
480
- name: n.target,
481
- shape: "square"
482
- },
483
- ge({
484
- p: e.value.style.chart.nodes.labels.prefix,
485
- v: n.value,
486
- s: e.value.style.chart.nodes.labels.suffix,
487
- r: e.value.style.chart.nodes.labels.rounding
488
- })
489
- ]), o = {
490
- th: {
491
- backgroundColor: e.value.table.th.backgroundColor,
492
- color: e.value.table.th.color,
493
- outline: e.value.table.th.outline
494
- },
495
- td: {
496
- backgroundColor: e.value.table.td.backgroundColor,
497
- color: e.value.table.td.color,
498
- outline: e.value.table.td.outline
499
- },
500
- breakpoint: e.value.table.responsiveBreakpoint
501
- };
502
- return {
503
- colNames: [
504
- e.value.table.columnNames.source,
505
- e.value.table.columnNames.target,
506
- e.value.table.columnNames.value
507
- ],
508
- head: t,
509
- body: l,
510
- config: o
511
- };
512
- }), lt = i(() => {
513
- const t = he.value?.colNames ?? [], l = he.value?.body ?? [];
514
- return { headers: t, rows: l };
515
- }), Be = i(() => [...$.value.nodes].map((t, l) => ({
516
- ...t,
517
- index: l,
518
- centerX: t.x + Ce.value / 2,
519
- centerY: I(t.absoluteY) + e.value.style.chart.padding.top + t.height / 2
520
- })).sort((t, l) => t.x === l.x ? t.absoluteY - l.absoluteY : t.x - l.x)), se = i(() => {
521
- const l = [];
522
- return Be.value.forEach((o) => {
523
- const a = l.find(
524
- (n) => Math.abs(n.x - o.x) <= 1
525
- );
526
- a ? a.nodes.push(o) : l.push({
527
- x: o.x,
528
- nodes: [o]
529
- });
530
- }), l.forEach((o) => {
531
- o.nodes.sort((a, n) => a.absoluteY - n.absoluteY);
532
- }), l.sort((o, a) => o.x - a.x);
533
- }), Ye = i(() => {
534
- const t = /* @__PURE__ */ new Map();
535
- return Be.value.forEach((l, o) => {
536
- t.set(l.id, o);
537
- }), t;
538
- });
539
- function Io() {
540
- return $.value;
541
- }
542
- function Dt() {
543
- Y.value.showTable = !Y.value.showTable;
544
- }
545
- const Ae = r(!1);
546
- function at() {
547
- Ae.value = !Ae.value;
548
- }
549
- function Lt() {
550
- Y.value.showTooltip = !Y.value.showTooltip;
551
- }
552
- const Bt = i(() => {
553
- const t = new Set(
554
- $.value.nodes.map(
555
- (l) => e.value.nodeCategories[l.name] || "__uncategorized__"
556
- )
557
- );
558
- return Array.from(t).map((l) => ({
559
- name: l,
560
- color: e.value.nodeCategoryColors[l] || q[0],
561
- shape: "square",
562
- count: $.value.nodes.filter(
563
- (o) => (e.value.nodeCategories[o.name] || "__uncategorized__") === l
564
- ).length
565
- })).map((l, o) => ({
566
- ...l,
567
- segregate: () => st({ legend: l, i: o }),
568
- opacity: re.value.length ? re.value.includes(o) ? 1 : 0.5 : 1,
569
- display: `${l.name} (${l.count})`
570
- }));
571
- }), nt = i(
572
- () => Bt.value.filter((t) => t.name !== "__uncategorized__")
573
- ), re = r([]);
574
- function st({ legend: t, i: l }) {
575
- const o = t.name;
576
- if (A.value?.every(
577
- (a) => e.value.nodeCategories[a] === o
578
- )) {
579
- A.value = null, ne.value = null, re.value = [];
580
- return;
581
- }
582
- re.value = [l], A.value = $.value.nodes.filter((a) => e.value.nodeCategories[a.name] === o).map((a) => a.name), ne.value = null;
583
- }
584
- const No = i(() => ({
585
- cy: "flow-legend",
586
- backgroundColor: e.value.style.chart.legend.backgroundColor,
587
- color: e.value.style.chart.legend.color,
588
- fontSize: e.value.style.chart.legend.fontSize,
589
- paddingBottom: e.value.style.chart.legend.paddingBottom,
590
- fontWeight: e.value.style.chart.legend.bold ? "bold" : "normal"
591
- }));
592
- async function Oo({ scale: t = 2 } = {}) {
593
- if (!V.value) return;
594
- const { width: l, height: o } = V.value.getBoundingClientRect(), a = l / o, { imageUri: n, base64: p } = await bl({
595
- domElement: V.value,
596
- base64: !0,
597
- img: !0,
598
- scale: t
599
- });
600
- return {
601
- imageUri: n,
602
- base64: p,
603
- title: e.value.style.chart.title.text,
604
- width: l,
605
- height: o,
606
- aspectRatio: a
607
- };
608
- }
609
- const xe = i(() => {
610
- const t = e.value.table.useDialog && !e.value.table.show, l = Y.value.showTable;
611
- return {
612
- component: t ? yo : vo,
613
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
614
- props: t ? {
615
- backgroundColor: e.value.table.th.backgroundColor,
616
- color: e.value.table.th.color,
617
- headerColor: e.value.table.th.color,
618
- headerBg: e.value.table.th.backgroundColor,
619
- isFullscreen: le.value,
620
- fullscreenParent: V.value,
621
- forcedWidth: Math.min(800, window.innerWidth * 0.8),
622
- isCursorPointer: ve.value
623
- } : {
624
- hideDetails: !0,
625
- config: {
626
- open: l,
627
- maxHeight: 1e4,
628
- body: {
629
- backgroundColor: e.value.style.chart.backgroundColor,
630
- color: e.value.style.chart.color
631
- },
632
- head: {
633
- backgroundColor: e.value.style.chart.backgroundColor,
634
- color: e.value.style.chart.color
635
- }
636
- }
637
- }
638
- };
639
- });
640
- Re(
641
- () => Y.value.showTable,
642
- (t) => {
643
- e.value.table.show || (t && e.value.table.useDialog && me.value ? me.value.open() : "close" in me.value && me.value.close());
644
- }
645
- );
646
- function Yt() {
647
- Y.value.showTable = !1, Ge.value && Ge.value.setTableIconState(!1);
648
- }
649
- const Eo = i(() => nt.value.map((t) => ({
650
- ...t,
651
- name: t.display
652
- }))), Fo = i(() => e.value.style.chart.backgroundColor), _o = i(() => e.value.style.chart.legend), Mo = i(() => e.value.style.chart.title), { exportSvg: Do, getSvg: Lo } = pl({
653
- svg: ae,
654
- title: Mo,
655
- legend: _o,
656
- legendItems: Eo,
657
- backgroundColor: Fo
658
- });
659
- async function zt({ isCb: t }) {
660
- Fe.value = !0, await dt();
661
- try {
662
- if (t) {
663
- const { blob: l, url: o, text: a, dataUrl: n } = await Lo();
664
- await Promise.resolve(
665
- e.value.userOptions.callbacks.svg({
666
- blob: l,
667
- url: o,
668
- text: a,
669
- dataUrl: n
670
- })
671
- );
672
- } else
673
- await Promise.resolve(Do());
674
- } finally {
675
- Fe.value = !1;
676
- }
677
- }
678
- function Bo(t) {
679
- if (t?.stage === "start") {
680
- Ee.value = !0;
681
- return;
682
- }
683
- if (t?.stage === "end") {
684
- Ee.value = !1;
685
- return;
686
- }
687
- Pt();
688
- }
689
- async function Rt() {
690
- if (ko("copyAlt", {
691
- config: e.value,
692
- dataset: $.value
693
- }), !e.value.userOptions.callbacks.altCopy) {
694
- console.warn(
695
- "Vue Data UI - A callback must be set for `altCopy` in userOptions."
696
- );
697
- return;
698
- }
699
- await Promise.resolve(
700
- e.value.userOptions.callbacks.altCopy({
701
- config: e.value,
702
- dataset: $.value
703
- })
704
- );
705
- }
706
- function Yo(t) {
707
- return se.value.findIndex(
708
- (l) => l.nodes.some((o) => o.id === t)
709
- );
710
- }
711
- function zo(t, l) {
712
- const o = se.value[t];
713
- return o ? o.nodes.findIndex((a) => a.id === l) : -1;
714
- }
715
- function Ro(t, l) {
716
- const o = se.value[t];
717
- if (!o || !o.nodes.length) return null;
718
- let a = o.nodes[0], n = Math.abs(a.centerY - l);
719
- for (let p = 1; p < o.nodes.length; p += 1) {
720
- const O = o.nodes[p], _ = Math.abs(O.centerY - l);
721
- _ < n && (a = O, n = _);
722
- }
723
- return a;
724
- }
725
- function Ho() {
726
- be.value = null, de.value = null, _e.value = !0;
727
- }
728
- function Uo() {
729
- et(), _e.value = !1;
730
- }
731
- function Wo(t) {
732
- if (!ae.value || Ae.value || document.activeElement !== ae.value || !Be.value.length) return;
733
- const l = t.key === "ArrowLeft", o = t.key === "ArrowRight", a = t.key === "ArrowUp", n = t.key === "ArrowDown", p = t.key === "Enter" || t.key === " ", O = t.key === "Escape";
734
- if (!l && !o && !a && !n && !p && !O)
735
- return;
736
- if (t.preventDefault(), t.stopPropagation(), O) {
737
- et();
738
- return;
739
- }
740
- if (p) {
741
- if (be.value === null) return;
742
- _t(be.value);
743
- return;
744
- }
745
- if (de.value === null) {
746
- const C = se.value[0]?.nodes?.[0];
747
- if (!C) return;
748
- const E = Ye.value.get(C.id) ?? 0;
749
- tt(C, E, "keyboard", E);
750
- return;
751
- }
752
- const _ = Ye.value.get(de.value);
753
- if (_ === void 0) return;
754
- const z = Be.value[_];
755
- if (!z) return;
756
- const W = Yo(z.id);
757
- if (W < 0) return;
758
- let G = null;
759
- if (a || n) {
760
- const C = zo(
761
- W,
762
- z.id
763
- );
764
- if (C < 0) return;
765
- const E = se.value[W];
766
- if (!E?.nodes?.length) return;
767
- let M = C + (n ? 1 : -1);
768
- M < 0 && (M = E.nodes.length - 1), M >= E.nodes.length && (M = 0), G = E.nodes[M];
769
- }
770
- if (l || o) {
771
- let C = W + (o ? 1 : -1);
772
- C < 0 && (C = se.value.length - 1), C >= se.value.length && (C = 0), G = Ro(
773
- C,
774
- z.centerY
775
- );
776
- }
777
- if (!G) return;
778
- const j = Ye.value.get(G.id);
779
- j !== void 0 && tt(G, j, "keyboard", j);
780
- }
781
- return ro({
782
- getData: Io,
783
- getImage: Oo,
784
- generateCsv: ot,
785
- generateImage: Pt,
786
- generateSvg: zt,
787
- generatePdf: St,
788
- toggleTable: Dt,
789
- toggleAnnotator: at,
790
- toggleTooltip: Lt,
791
- drillCategory: st,
792
- unselectNode: Ft,
793
- toggleFullscreen: kt,
794
- copyAlt: Rt
795
- }), (t, l) => (c(), b("div", {
796
- ref_key: "flowChart",
797
- ref: V,
798
- class: eo(`vue-data-ui-component vue-ui-flow ${le.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
799
- style: X(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
800
- id: `flow_${U.value}`,
801
- onMouseenter: l[2] || (l[2] = () => u($t)(!0)),
802
- onMouseleave: l[3] || (l[3] = () => {
803
- u($t)(!1), _e.value || et();
804
- })
805
- }, [
806
- H("div", {
807
- id: `chart-instructions-${U.value}`,
808
- class: "sr-only"
809
- }, [
810
- H("p", null, pe(e.value.a11y.translations.keyboardNavigation), 1)
811
- ], 8, Tl),
812
- lt.value?.rows?.length ? (c(), oe($l, {
813
- key: 0,
814
- uid: U.value,
815
- head: lt.value.headers,
816
- body: lt.value.rows,
817
- notice: e.value.a11y.translations.tableAvailable,
818
- caption: e.value.a11y.translations.tableCaption
819
- }, null, 8, ["uid", "head", "body", "notice", "caption"])) : w("", !0),
820
- e.value.userOptions.buttons.annotator ? (c(), oe(u(ho), {
821
- key: 1,
822
- svgRef: u(ae),
823
- backgroundColor: e.value.style.chart.backgroundColor,
824
- color: e.value.style.chart.color,
825
- active: Ae.value,
826
- onClose: at,
827
- isCursorPointer: ve.value
828
- }, {
829
- "annotator-action-close": f(() => [
830
- v(t.$slots, "annotator-action-close", {}, void 0, !0)
831
- ]),
832
- "annotator-action-color": f(({ color: o }) => [
833
- v(t.$slots, "annotator-action-color", S(P({ color: o })), void 0, !0)
834
- ]),
835
- "annotator-action-draw": f(({ mode: o }) => [
836
- v(t.$slots, "annotator-action-draw", S(P({ mode: o })), void 0, !0)
837
- ]),
838
- "annotator-action-undo": f(({ disabled: o }) => [
839
- v(t.$slots, "annotator-action-undo", S(P({ disabled: o })), void 0, !0)
840
- ]),
841
- "annotator-action-redo": f(({ disabled: o }) => [
842
- v(t.$slots, "annotator-action-redo", S(P({ disabled: o })), void 0, !0)
843
- ]),
844
- "annotator-action-delete": f(({ disabled: o }) => [
845
- v(t.$slots, "annotator-action-delete", S(P({ disabled: o })), void 0, !0)
846
- ]),
847
- _: 3
848
- }, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : w("", !0),
849
- xo.value ? (c(), b("div", Sl, null, 512)) : w("", !0),
850
- e.value.style.chart.title.text ? (c(), b("div", {
851
- key: 3,
852
- ref_key: "chartTitle",
853
- ref: gt,
854
- style: "width:100%;background:transparent;padding-bottom:24px"
855
- }, [
856
- (c(), oe(Cl, {
857
- key: `title_${ht.value}`,
858
- config: {
859
- title: {
860
- cy: "flow-title",
861
- ...e.value.style.chart.title
862
- },
863
- subtitle: {
864
- cy: "flow-subtitle",
865
- ...e.value.style.chart.title.subtitle
866
- }
867
- }
868
- }, null, 8, ["config"]))
869
- ], 512)) : w("", !0),
870
- H("div", {
871
- id: `legend-top-${U.value}`
872
- }, null, 8, Pl),
873
- e.value.userOptions.show && Ct.value && (u(At) || u(qe)) ? (c(), oe(u(po), {
874
- ref_key: "userOptionsRef",
875
- ref: Ge,
876
- key: `user_option_${ft.value}`,
877
- backgroundColor: e.value.style.chart.backgroundColor,
878
- color: e.value.style.chart.color,
879
- isPrinting: u(Je),
880
- isImaging: u(Qe),
881
- uid: U.value,
882
- hasPdf: e.value.userOptions.buttons.pdf,
883
- hasXls: e.value.userOptions.buttons.csv,
884
- hasImg: e.value.userOptions.buttons.img,
885
- hasSvg: e.value.userOptions.buttons.svg,
886
- hasTable: e.value.userOptions.buttons.table,
887
- callbacks: e.value.userOptions.callbacks,
888
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
889
- hasAltCopy: e.value.userOptions.buttons.altCopy,
890
- isFullscreen: le.value,
891
- titles: { ...e.value.userOptions.buttonTitles },
892
- chartElement: V.value,
893
- position: e.value.userOptions.position,
894
- hasAnnotator: e.value.userOptions.buttons.annotator,
895
- printScale: e.value.userOptions.print.scale,
896
- isAnnotation: Ae.value,
897
- hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
898
- isTooltip: Y.value.showTooltip,
899
- tableDialog: e.value.table.useDialog,
900
- isCursorPointer: ve.value,
901
- onToggleTooltip: Lt,
902
- onToggleFullscreen: kt,
903
- onGeneratePdf: u(St),
904
- onGenerateCsv: ot,
905
- onGenerateImage: Bo,
906
- onGenerateSvg: zt,
907
- onToggleTable: Dt,
908
- onToggleAnnotator: at,
909
- onCopyAlt: Rt,
910
- style: X({
911
- visibility: u(At) ? u(qe) ? "visible" : "hidden" : "visible"
912
- })
913
- }, to({ _: 2 }, [
914
- t.$slots.menuIcon ? {
915
- name: "menuIcon",
916
- fn: f(({ isOpen: o, color: a }) => [
917
- v(t.$slots, "menuIcon", S(P({ isOpen: o, color: a })), void 0, !0)
918
- ]),
919
- key: "0"
920
- } : void 0,
921
- t.$slots.optionTooltip ? {
922
- name: "optionTooltip",
923
- fn: f(() => [
924
- v(t.$slots, "optionTooltip", {}, void 0, !0)
925
- ]),
926
- key: "1"
927
- } : void 0,
928
- t.$slots.optionPdf ? {
929
- name: "optionPdf",
930
- fn: f(() => [
931
- v(t.$slots, "optionPdf", {}, void 0, !0)
932
- ]),
933
- key: "2"
934
- } : void 0,
935
- t.$slots.optionCsv ? {
936
- name: "optionCsv",
937
- fn: f(() => [
938
- v(t.$slots, "optionCsv", {}, void 0, !0)
939
- ]),
940
- key: "3"
941
- } : void 0,
942
- t.$slots.optionImg ? {
943
- name: "optionImg",
944
- fn: f(() => [
945
- v(t.$slots, "optionImg", {}, void 0, !0)
946
- ]),
947
- key: "4"
948
- } : void 0,
949
- t.$slots.optionSvg ? {
950
- name: "optionSvg",
951
- fn: f(() => [
952
- v(t.$slots, "optionSvg", {}, void 0, !0)
953
- ]),
954
- key: "5"
955
- } : void 0,
956
- t.$slots.optionTable ? {
957
- name: "optionTable",
958
- fn: f(() => [
959
- v(t.$slots, "optionTable", {}, void 0, !0)
960
- ]),
961
- key: "6"
962
- } : void 0,
963
- t.$slots.optionFullscreen ? {
964
- name: "optionFullscreen",
965
- fn: f(({ toggleFullscreen: o, isFullscreen: a }) => [
966
- v(t.$slots, "optionFullscreen", S(P({ toggleFullscreen: o, isFullscreen: a })), void 0, !0)
967
- ]),
968
- key: "7"
969
- } : void 0,
970
- t.$slots.optionAnnotator ? {
971
- name: "optionAnnotator",
972
- fn: f(({ toggleAnnotator: o, isAnnotator: a }) => [
973
- v(t.$slots, "optionAnnotator", S(P({ toggleAnnotator: o, isAnnotator: a })), void 0, !0)
974
- ]),
975
- key: "8"
976
- } : void 0,
977
- t.$slots.optionAltCopy ? {
978
- name: "optionAltCopy",
979
- fn: f(({ altCopy: o }) => [
980
- v(t.$slots, "optionAltCopy", S(P({ altCopy: o })), void 0, !0)
981
- ]),
982
- key: "9"
983
- } : void 0
984
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "callbacks", "hasFullscreen", "hasAltCopy", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "printScale", "isAnnotation", "hasTooltip", "isTooltip", "tableDialog", "isCursorPointer", "onGeneratePdf", "style"])) : w("", !0),
985
- H("div", Il, [
986
- (c(), b("svg", {
987
- ref_key: "svgRef",
988
- ref: ae,
989
- xmlns: u(al),
990
- "aria-describedby": `chart-instructions-${U.value}`,
991
- viewBox: `0 0 ${we.value.width} ${we.value.height}`,
992
- class: eo({
993
- "vue-data-ui-fullscreen--on": le.value,
994
- "vue-data-ui-fulscreen--off": !le.value
995
- }),
996
- style: X({
997
- maxWidth: "100%",
998
- overflow: "visible",
999
- background: "transparent",
1000
- color: e.value.style.chart.color
1001
- }),
1002
- tabindex: "0",
1003
- onFocus: Ho,
1004
- onBlur: Uo,
1005
- onKeydown: Wo
1006
- }, [
1007
- He(u(go)),
1008
- t.$slots["chart-background"] ? (c(), b("foreignObject", {
1009
- key: 0,
1010
- x: 0,
1011
- y: 0,
1012
- width: we.value.width,
1013
- height: we.value.height,
1014
- style: {
1015
- pointerEvents: "none"
1016
- }
1017
- }, [
1018
- v(t.$slots, "chart-background", {}, void 0, !0)
1019
- ], 8, Ol)) : w("", !0),
1020
- H("defs", null, [
1021
- (c(!0), b(Pe, null, Ie($.value.links, (o, a) => (c(), b("linearGradient", {
1022
- id: o.id,
1023
- x1: "0%",
1024
- y1: "0%",
1025
- x2: "100%",
1026
- y2: "0%"
1027
- }, [
1028
- H("stop", {
1029
- offset: "0%",
1030
- "stop-color": o.sourceColor
1031
- }, null, 8, Fl),
1032
- H("stop", {
1033
- offset: "100%",
1034
- "stop-color": o.targetColor
1035
- }, null, 8, _l)
1036
- ], 8, El))), 256))
1037
- ]),
1038
- (c(!0), b(Pe, null, Ie($.value.links, (o) => (c(), b("path", {
1039
- class: "vue-ui-flow-link",
1040
- d: o.path,
1041
- "stroke-linejoin": "round",
1042
- "stroke-miterlimit": "1",
1043
- fill: `url(#${o.id})`,
1044
- stroke: e.value.style.chart.links.stroke,
1045
- "stroke-width": e.value.style.chart.links.strokeWidth,
1046
- style: X(`
1047
- opacity:${A.value ? A.value.includes(o.source) && A.value.includes(o.target) ? 1 : 0.3 : ne.value ? [o.target, o.source].includes(
1048
- ne.value
1049
- ) ? 1 : 0.3 : e.value.style.chart.links.opacity}
1050
- `)
1051
- }, null, 12, Ml))), 256)),
1052
- (c(!0), b(Pe, null, Ie($.value.nodes, (o, a) => (c(), b("rect", {
1053
- "data-a11y-node-id": o.id,
1054
- class: "vue-ui-flow-node",
1055
- x: o.x,
1056
- y: u(I)(o.absoluteY) + e.value.style.chart.padding.top,
1057
- height: u(I)(o.height),
1058
- width: Ce.value,
1059
- fill: o.color,
1060
- stroke: e.value.style.chart.nodes.stroke,
1061
- "stroke-width": e.value.style.chart.nodes.strokeWidth,
1062
- rx: e.value.style.chart.nodes.borderRadius,
1063
- style: X({
1064
- opacity: A.value ? A.value.includes(o.name) ? 1 : 0.3 : 1,
1065
- outline: $e.value !== null && $e.value === o.id ? "2px solid currentColor" : void 0
1066
- }),
1067
- "aria-label": `${o.name}: ${u(We)(
1068
- e.value.style.chart.nodes.labels.formatter,
1069
- o.value,
1070
- u(ge)({
1071
- p: e.value.style.chart.nodes.labels.prefix,
1072
- v: o.value,
1073
- s: e.value.style.chart.nodes.labels.suffix,
1074
- r: e.value.style.chart.nodes.labels.rounding
1075
- })
1076
- )}`,
1077
- onMouseenter: (n) => tt(
1078
- o,
1079
- a,
1080
- "pointer",
1081
- Ye.value.get(o.id)
1082
- ),
1083
- onMouseleave: (n) => Ft(a),
1084
- onClick: (n) => _t(a)
1085
- }, null, 44, Dl))), 256)),
1086
- e.value.style.chart.nodes.labels.show ? (c(), b("g", Ll, [
1087
- (c(!0), b(Pe, null, Ie($.value.nodes, (o, a) => (c(), b("text", {
1088
- x: o.x + Ce.value / 2,
1089
- y: (e.value.style.chart.nodes.labels.showValue ? u(I)(
1090
- o.absoluteY + o.height / 2 - e.value.style.chart.nodes.labels.fontSize / 4
1091
- ) : o.absoluteY + o.height / 2 + e.value.style.chart.nodes.labels.fontSize / 3) + e.value.style.chart.padding.top,
1092
- "font-size": e.value.style.chart.nodes.labels.fontSize,
1093
- fill: u(no)(o.color),
1094
- "text-anchor": "middle",
1095
- style: X(`pointer-events: none; opacity:${A.value ? A.value.includes(o.name) ? 1 : 0 : 1}`)
1096
- }, pe(e.value.style.chart.nodes.labels.abbreviation.use ? u(nl)({
1097
- source: o.name,
1098
- length: e.value.style.chart.nodes.labels.abbreviation.length
1099
- }) : o.name), 13, Bl))), 256)),
1100
- e.value.style.chart.nodes.labels.showValue ? (c(!0), b(Pe, { key: 0 }, Ie($.value.nodes, (o, a) => (c(), b("text", {
1101
- x: o.x + Ce.value / 2,
1102
- y: u(I)(
1103
- o.absoluteY + o.height / 2 + e.value.style.chart.nodes.labels.fontSize / 1.3
1104
- ) + e.value.style.chart.padding.top,
1105
- "font-size": e.value.style.chart.nodes.labels.fontSize,
1106
- fill: u(no)(o.color),
1107
- "text-anchor": "middle",
1108
- style: X(`pointer-events: none; opacity:${A.value ? A.value.includes(o.name) ? 1 : 0 : 1}`)
1109
- }, pe(u(We)(
1110
- e.value.style.chart.nodes.labels.formatter,
1111
- o.value,
1112
- u(ge)({
1113
- p: e.value.style.chart.nodes.labels.prefix,
1114
- v: o.value,
1115
- s: e.value.style.chart.nodes.labels.suffix,
1116
- r: e.value.style.chart.nodes.labels.rounding
1117
- }),
1118
- { datapoint: o, seriesIndex: a }
1119
- )), 13, Yl))), 256)) : w("", !0)
1120
- ])) : w("", !0),
1121
- v(t.$slots, "svg", {
1122
- svg: {
1123
- ...we.value,
1124
- isPrintingImg: u(Je) | u(Qe) | Ee.value,
1125
- isPrintingSvg: Fe.value
1126
- }
1127
- }, void 0, !0)
1128
- ], 46, Nl)),
1129
- t.$slots.hint ? (c(), b("div", zl, [
1130
- v(t.$slots, "hint", S(P({
1131
- hint: e.value.a11y.translations.keyboardNavigation,
1132
- isVisible: _e.value
1133
- })), void 0, !0)
1134
- ])) : w("", !0)
1135
- ]),
1136
- t.$slots.watermark ? (c(), b("div", Rl, [
1137
- v(t.$slots, "watermark", S(P({
1138
- isPrinting: u(Je) || u(Qe) || Ee.value || Fe.value
1139
- })), void 0, !0)
1140
- ])) : w("", !0),
1141
- H("div", {
1142
- id: `legend-bottom-${U.value}`
1143
- }, null, 8, Hl),
1144
- mt.value && (e.value.style.chart.legend.show || t.$slots.legend) ? (c(), oe(Zo, {
1145
- key: 6,
1146
- to: e.value.style.chart.legend.position === "top" ? `#legend-top-${U.value}` : `#legend-bottom-${U.value}`
1147
- }, [
1148
- H("div", {
1149
- ref_key: "chartLegend",
1150
- ref: pt
1151
- }, [
1152
- v(t.$slots, "legend", { legend: Bt.value }, () => [
1153
- e.value.style.chart.legend.show && nt.value.length ? (c(), oe(wl, {
1154
- key: 0,
1155
- legendSet: nt.value,
1156
- config: No.value,
1157
- isCursorPointer: ve.value,
1158
- onClickMarker: l[0] || (l[0] = (o) => st(o))
1159
- }, {
1160
- item: f(({ legend: o, index: a }) => [
1161
- u(Ke) ? w("", !0) : (c(), b("div", {
1162
- key: 0,
1163
- onClick: (n) => o.segregate(),
1164
- style: X(`opacity:${re.value.length ? re.value.includes(a) ? 1 : 0.5 : 1}`)
1165
- }, pe(o.display), 13, Ul))
1166
- ]),
1167
- _: 1
1168
- }, 8, ["legendSet", "config", "isCursorPointer"])) : w("", !0)
1169
- ], !0)
1170
- ], 512)
1171
- ], 8, ["to"])) : w("", !0),
1172
- t.$slots.source ? (c(), b("div", {
1173
- key: 7,
1174
- ref_key: "source",
1175
- ref: yt,
1176
- dir: "auto"
1177
- }, [
1178
- v(t.$slots, "source", {}, void 0, !0)
1179
- ], 512)) : w("", !0),
1180
- He(u(io), {
1181
- ref_key: "tooltip",
1182
- ref: wo,
1183
- teleportTo: e.value.style.chart.tooltip.teleportTo,
1184
- show: Y.value.showTooltip && Ne.value,
1185
- backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1186
- color: e.value.style.chart.tooltip.color,
1187
- fontSize: e.value.style.chart.tooltip.fontSize,
1188
- borderRadius: e.value.style.chart.tooltip.borderRadius,
1189
- borderColor: e.value.style.chart.tooltip.borderColor,
1190
- borderWidth: e.value.style.chart.tooltip.borderWidth,
1191
- backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
1192
- position: e.value.style.chart.tooltip.position,
1193
- offsetY: e.value.style.chart.tooltip.offsetY,
1194
- parent: V.value,
1195
- content: Ve.value,
1196
- isCustom: Le.value,
1197
- isFullscreen: le.value,
1198
- smooth: e.value.style.chart.tooltip.smooth,
1199
- backdropFilter: e.value.style.chart.tooltip.backdropFilter,
1200
- smoothForce: e.value.style.chart.tooltip.smoothForce,
1201
- smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold,
1202
- isA11yMode: je.value === "keyboard",
1203
- a11yPosition: bt.value
1204
- }, {
1205
- "tooltip-before": f(() => [
1206
- v(t.$slots, "tooltip-before", S(P({ ...fe.value })), void 0, !0)
1207
- ]),
1208
- tooltip: f(() => [
1209
- v(t.$slots, "tooltip", S(P({ ...fe.value })), void 0, !0)
1210
- ]),
1211
- "tooltip-after": f(() => [
1212
- v(t.$slots, "tooltip-after", S(P({ ...fe.value })), void 0, !0)
1213
- ]),
1214
- _: 3
1215
- }, 8, ["teleportTo", "show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold", "isA11yMode", "a11yPosition"]),
1216
- Ct.value && e.value.userOptions.buttons.table ? (c(), oe(Jo(xe.value.component), Qo({ key: 8 }, xe.value.props, {
1217
- ref_key: "tableUnit",
1218
- ref: me,
1219
- onClose: Yt
1220
- }), to({
1221
- content: f(() => [
1222
- He(u(fo), {
1223
- colNames: he.value.colNames,
1224
- head: he.value.head,
1225
- body: he.value.body,
1226
- config: he.value.config,
1227
- title: e.value.table.useDialog ? "" : xe.value.title,
1228
- withCloseButton: !e.value.table.useDialog,
1229
- isCursorPointer: ve.value,
1230
- onClose: Yt
1231
- }, {
1232
- th: f(({ th: o }) => [
1233
- H("div", {
1234
- innerHTML: o,
1235
- style: { display: "flex", "align-items": "center" }
1236
- }, null, 8, Wl)
1237
- ]),
1238
- td: f(({ td: o }) => [
1239
- oo(pe(o.name || o), 1)
1240
- ]),
1241
- _: 1
1242
- }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton", "isCursorPointer"])
1243
- ]),
1244
- _: 2
1245
- }, [
1246
- e.value.table.useDialog ? {
1247
- name: "title",
1248
- fn: f(() => [
1249
- oo(pe(xe.value.title), 1)
1250
- ]),
1251
- key: "0"
1252
- } : void 0,
1253
- e.value.table.useDialog ? {
1254
- name: "actions",
1255
- fn: f(() => [
1256
- H("button", {
1257
- tabindex: "0",
1258
- class: "vue-ui-user-options-button",
1259
- onClick: l[1] || (l[1] = (o) => ot(e.value.userOptions.callbacks.csv)),
1260
- style: X({ cursor: ve.value ? "pointer" : "default" })
1261
- }, [
1262
- He(u(co), {
1263
- name: "fileCsv",
1264
- stroke: xe.value.props.color
1265
- }, null, 8, ["stroke"])
1266
- ], 4)
1267
- ]),
1268
- key: "1"
1269
- } : void 0
1270
- ]), 1040)) : w("", !0),
1271
- v(t.$slots, "skeleton", {}, () => [
1272
- u(Ke) ? (c(), oe(hl, { key: 0 })) : w("", !0)
1273
- ], !0)
1274
- ], 46, xl));
1275
- }
1276
- }, ia = /* @__PURE__ */ Al(Vl, [["__scopeId", "data-v-4ba591ed"]]);
1277
- export {
1278
- ia as default
1279
- };