vue-data-ui 3.27.0 → 3.27.1-beta.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 (531) hide show
  1. package/dist/A11yDataTable-DWNlWXzs.js +1 -0
  2. package/dist/Arrow-CJeSufxg.js +1 -0
  3. package/dist/BaseDraggableDialog-T1gEsQid.js +1 -0
  4. package/dist/BaseIcon-Cz30ODFA.js +1 -0
  5. package/dist/BaseLegendToggle-Dn_tNvn4.js +1 -0
  6. package/dist/BaseScanner-8NdoBs7B.js +1 -0
  7. package/dist/BaseZoomControls-xq3tWD3j.js +1 -0
  8. package/dist/ColorPicker-CUjEw53A.js +1 -0
  9. package/dist/DataTable-DSUA5M9p.js +1 -0
  10. package/dist/DefGrad-DKMq1REY.js +1 -0
  11. package/dist/HillActions-DdvXld3a.js +1 -0
  12. package/dist/Legend-DokTll4u.js +1 -0
  13. package/dist/NonSvgPenAndPaper-BLzQuIm6.js +1 -0
  14. package/dist/PackageVersion-D6pKL176.js +1 -0
  15. package/dist/PenAndPaper-DvJJaeU2.js +1 -0
  16. package/dist/RecursiveCircles-BftI1kwF.js +1 -0
  17. package/dist/RecursiveLabels-B0d04xSj.js +1 -0
  18. package/dist/RecursiveLinks-CZtG6uWg.js +1 -0
  19. package/dist/Shape-tkp65OcG.js +1 -0
  20. package/dist/SlicerPreview-GFRs2EWB.js +1 -0
  21. package/dist/SparkTooltip-BlJLvizH.js +1 -0
  22. package/dist/Title-BRAjxtjG.js +1 -0
  23. package/dist/Tooltip-BUXB0i6z.js +1 -0
  24. package/dist/UserOptions-D65t74CM.js +1 -0
  25. package/dist/_plugin-vue_export-helper-BDNMzG2s.js +1 -0
  26. package/dist/annotationSlots-BRR85CqJ.js +1 -0
  27. package/dist/chartImage-NwZO-elv.js +1 -0
  28. package/dist/components/arrow.js +1 -2
  29. package/dist/components/vue-ui-3d-bar.js +1 -2
  30. package/dist/components/vue-ui-accordion.js +1 -2
  31. package/dist/components/vue-ui-age-pyramid.js +1 -2
  32. package/dist/components/vue-ui-annotator.js +1 -2
  33. package/dist/components/vue-ui-bullet.js +1 -2
  34. package/dist/components/vue-ui-bump.js +1 -2
  35. package/dist/components/vue-ui-candlestick.js +1 -2
  36. package/dist/components/vue-ui-carousel-table.js +1 -2
  37. package/dist/components/vue-ui-chestnut.js +1 -2
  38. package/dist/components/vue-ui-chord.js +1 -2
  39. package/dist/components/vue-ui-circle-pack.js +1 -2
  40. package/dist/components/vue-ui-cursor.js +1 -2
  41. package/dist/components/vue-ui-dag.js +1 -2
  42. package/dist/components/vue-ui-dashboard.js +1 -2
  43. package/dist/components/vue-ui-digits.js +1 -2
  44. package/dist/components/vue-ui-donut-evolution.js +1 -2
  45. package/dist/components/vue-ui-donut.js +1 -2
  46. package/dist/components/vue-ui-dumbbell.js +1 -2
  47. package/dist/components/vue-ui-flow.js +1 -2
  48. package/dist/components/vue-ui-funnel.js +1 -2
  49. package/dist/components/vue-ui-galaxy.js +1 -2
  50. package/dist/components/vue-ui-gauge.js +1 -2
  51. package/dist/components/vue-ui-geo.js +1 -2
  52. package/dist/components/vue-ui-gizmo.js +1 -2
  53. package/dist/components/vue-ui-heatmap.js +1 -2
  54. package/dist/components/vue-ui-hill.js +1 -2
  55. package/dist/components/vue-ui-history-plot.js +1 -2
  56. package/dist/components/vue-ui-horizontal-bar.js +1 -2
  57. package/dist/components/vue-ui-icon.js +1 -2
  58. package/dist/components/vue-ui-kpi.js +1 -2
  59. package/dist/components/vue-ui-label.js +1 -2
  60. package/dist/components/vue-ui-mini-loader.js +1 -2
  61. package/dist/components/vue-ui-molecule.js +1 -2
  62. package/dist/components/vue-ui-mood-radar.js +1 -2
  63. package/dist/components/vue-ui-nested-donuts.js +1 -2
  64. package/dist/components/vue-ui-onion.js +1 -2
  65. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -2
  66. package/dist/components/vue-ui-pattern-seed.js +1 -2
  67. package/dist/components/vue-ui-pattern.js +1 -2
  68. package/dist/components/vue-ui-quadrant.js +1 -2
  69. package/dist/components/vue-ui-quick-chart.js +1 -2
  70. package/dist/components/vue-ui-radar.js +1 -2
  71. package/dist/components/vue-ui-rating.js +1 -2
  72. package/dist/components/vue-ui-relation-circle.js +1 -2
  73. package/dist/components/vue-ui-ridgeline.js +1 -2
  74. package/dist/components/vue-ui-rings.js +1 -2
  75. package/dist/components/vue-ui-scatter.js +1 -2
  76. package/dist/components/vue-ui-skeleton.js +1 -2
  77. package/dist/components/vue-ui-smiley.js +1 -2
  78. package/dist/components/vue-ui-spark-trend.js +1 -2
  79. package/dist/components/vue-ui-sparkbar.js +1 -2
  80. package/dist/components/vue-ui-sparkgauge.js +1 -2
  81. package/dist/components/vue-ui-sparkhistogram.js +1 -2
  82. package/dist/components/vue-ui-sparkline.js +1 -2
  83. package/dist/components/vue-ui-sparkstackbar.js +1 -2
  84. package/dist/components/vue-ui-stackbar.js +1 -2
  85. package/dist/components/vue-ui-stackline.js +1 -2
  86. package/dist/components/vue-ui-strip-plot.js +1 -2
  87. package/dist/components/vue-ui-table-heatmap.js +1 -2
  88. package/dist/components/vue-ui-table-sparkline.js +1 -2
  89. package/dist/components/vue-ui-table.js +1 -2
  90. package/dist/components/vue-ui-thermometer.js +1 -2
  91. package/dist/components/vue-ui-timer.js +1 -2
  92. package/dist/components/vue-ui-tiremarks.js +1 -2
  93. package/dist/components/vue-ui-treemap.js +1 -2
  94. package/dist/components/vue-ui-vertical-bar.js +1 -2
  95. package/dist/components/vue-ui-waffle.js +1 -2
  96. package/dist/components/vue-ui-wheel.js +1 -2
  97. package/dist/components/vue-ui-word-cloud.js +1 -2
  98. package/dist/components/vue-ui-world.js +1 -2
  99. package/dist/components/vue-ui-xy-canvas.js +1 -2
  100. package/dist/components/vue-ui-xy.js +1 -2
  101. package/dist/composables.js +1 -5
  102. package/dist/dom-to-png-Cp3WLHmJ.js +3 -0
  103. package/dist/exposedLib-CMTeSmyW.js +1 -0
  104. package/dist/geoProjections-Bvj-eMvq.js +1 -0
  105. package/dist/img-8sM3sVWU.js +1 -0
  106. package/dist/labelUtils-Djp5nJtN.js +1 -0
  107. package/dist/lib-zDxoqrgo.js +12 -0
  108. package/dist/package-DIR2F6AE.js +1 -0
  109. package/dist/patternUtils-_q3ArM3g.js +1 -0
  110. package/dist/pdf-Dlv_ks7R.js +1 -0
  111. package/dist/render-common-DOYi0f4Z.js +1 -0
  112. package/dist/resolveChartConfig-BSo1Oe9n.js +1 -0
  113. package/dist/rolldown-runtime-DK3Fl9T5.js +1 -0
  114. package/dist/ssr/vue-ui-donut.js +1 -2
  115. package/dist/ssr/vue-ui-xy.js +1 -2
  116. package/dist/ssr.js +1 -3
  117. package/dist/style.css +1 -1
  118. package/dist/tableIntegration-CNoJ1CIY.js +1 -0
  119. package/dist/types/composables.d.ts +12 -12
  120. package/dist/types/ssr.d.ts +84 -84
  121. package/dist/types/utils.d.ts +82 -73
  122. package/dist/types/vue-data-ui.d.ts +17961 -17958
  123. package/dist/types/vue-ui-3d-bar.d.ts +24 -91
  124. package/dist/types/vue-ui-accordion.d.ts +2 -10
  125. package/dist/types/vue-ui-age-pyramid.d.ts +27 -106
  126. package/dist/types/vue-ui-annotator.d.ts +12 -88
  127. package/dist/types/vue-ui-bullet.d.ts +21 -83
  128. package/dist/types/vue-ui-bump.d.ts +23 -90
  129. package/dist/types/vue-ui-candlestick.d.ts +27 -108
  130. package/dist/types/vue-ui-carousel-table.d.ts +11 -57
  131. package/dist/types/vue-ui-chestnut.d.ts +27 -96
  132. package/dist/types/vue-ui-chord.d.ts +31 -108
  133. package/dist/types/vue-ui-circle-pack.d.ts +30 -124
  134. package/dist/types/vue-ui-cursor.d.ts +2 -8
  135. package/dist/types/vue-ui-dag.d.ts +35 -125
  136. package/dist/types/vue-ui-dashboard.d.ts +18 -66
  137. package/dist/types/vue-ui-digits.d.ts +2 -11
  138. package/dist/types/vue-ui-donut-evolution.d.ts +31 -100
  139. package/dist/types/vue-ui-donut.d.ts +31 -121
  140. package/dist/types/vue-ui-dumbbell.d.ts +24 -92
  141. package/dist/types/vue-ui-flow.d.ts +28 -104
  142. package/dist/types/vue-ui-funnel.d.ts +18 -77
  143. package/dist/types/vue-ui-galaxy.d.ts +30 -112
  144. package/dist/types/vue-ui-gauge.d.ts +22 -87
  145. package/dist/types/vue-ui-geo.d.ts +22 -92
  146. package/dist/types/vue-ui-gizmo.d.ts +5 -20
  147. package/dist/types/vue-ui-heatmap.d.ts +25 -101
  148. package/dist/types/vue-ui-hill.d.ts +22 -88
  149. package/dist/types/vue-ui-history-plot.d.ts +30 -112
  150. package/dist/types/vue-ui-horizontal-bar.d.ts +30 -114
  151. package/dist/types/vue-ui-icon.d.ts +1 -13
  152. package/dist/types/vue-ui-kpi.d.ts +5 -23
  153. package/dist/types/vue-ui-label.d.ts +11 -48
  154. package/dist/types/vue-ui-mini-loader.d.ts +4 -13
  155. package/dist/types/vue-ui-molecule.d.ts +27 -110
  156. package/dist/types/vue-ui-mood-radar.d.ts +23 -90
  157. package/dist/types/vue-ui-nested-donuts.d.ts +28 -109
  158. package/dist/types/vue-ui-onion.d.ts +26 -104
  159. package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +34 -123
  160. package/dist/types/vue-ui-pattern-seed.d.ts +1 -14
  161. package/dist/types/vue-ui-pattern.d.ts +1 -13
  162. package/dist/types/vue-ui-quadrant.d.ts +33 -123
  163. package/dist/types/vue-ui-quick-chart.d.ts +30 -110
  164. package/dist/types/vue-ui-radar.d.ts +31 -114
  165. package/dist/types/vue-ui-rating.d.ts +8 -40
  166. package/dist/types/vue-ui-relation-circle.d.ts +26 -90
  167. package/dist/types/vue-ui-ridgeline.d.ts +27 -104
  168. package/dist/types/vue-ui-rings.d.ts +21 -96
  169. package/dist/types/vue-ui-scatter.d.ts +22 -95
  170. package/dist/types/vue-ui-skeleton.d.ts +2 -10
  171. package/dist/types/vue-ui-smiley.d.ts +6 -26
  172. package/dist/types/vue-ui-spark-trend.d.ts +2 -18
  173. package/dist/types/vue-ui-sparkbar.d.ts +10 -47
  174. package/dist/types/vue-ui-sparkgauge.d.ts +5 -26
  175. package/dist/types/vue-ui-sparkhistogram.d.ts +12 -44
  176. package/dist/types/vue-ui-sparkline.d.ts +16 -61
  177. package/dist/types/vue-ui-sparkstackbar.d.ts +13 -58
  178. package/dist/types/vue-ui-stackbar.d.ts +36 -130
  179. package/dist/types/vue-ui-stackline.d.ts +29 -116
  180. package/dist/types/vue-ui-strip-plot.d.ts +22 -96
  181. package/dist/types/vue-ui-table-heatmap.d.ts +14 -60
  182. package/dist/types/vue-ui-table-sparkline.d.ts +12 -51
  183. package/dist/types/vue-ui-table.d.ts +9 -36
  184. package/dist/types/vue-ui-thermometer.d.ts +14 -68
  185. package/dist/types/vue-ui-timer.d.ts +10 -47
  186. package/dist/types/vue-ui-tiremarks.d.ts +14 -68
  187. package/dist/types/vue-ui-treemap.d.ts +26 -105
  188. package/dist/types/vue-ui-vertical-bar.d.ts +8 -19
  189. package/dist/types/vue-ui-waffle.d.ts +23 -99
  190. package/dist/types/vue-ui-wheel.d.ts +14 -68
  191. package/dist/types/vue-ui-word-cloud.d.ts +20 -95
  192. package/dist/types/vue-ui-world.d.ts +22 -96
  193. package/dist/types/vue-ui-xy-canvas.d.ts +24 -101
  194. package/dist/types/vue-ui-xy.d.ts +42 -146
  195. package/dist/unpackTheme-CNsFKCeq.js +1 -0
  196. package/dist/useAutoSizeLabelsInsideViewbox-AIRF0PlD.js +1 -0
  197. package/dist/useChartAccessibility-DOMuYJfm.js +1 -0
  198. package/dist/useChartExport-DtPNpc9M.js +1 -0
  199. package/dist/useConfig-CKdzPrcf.js +1 -0
  200. package/dist/useFitSvgText-C1QC4P5G.js +1 -0
  201. package/dist/useHints-BH9r_0Vd.js +6 -0
  202. package/dist/useNestedProp-CT9phgWx.js +1 -0
  203. package/dist/useObjectBindings-DM3xDKV3.js +1 -0
  204. package/dist/usePanZoom-BdjP5Suc.js +1 -0
  205. package/dist/usePrefersMotion-XLHwega2.js +1 -0
  206. package/dist/usePrinter-CnyKPIFM.js +1 -0
  207. package/dist/useResponsive-D2CPcpda.js +1 -0
  208. package/dist/useStableElementSize-CegFbRlF.js +1 -0
  209. package/dist/useTableResponsive-uSz_qZOB.js +1 -0
  210. package/dist/useThemeCheck-BKNRbGeC.js +1 -0
  211. package/dist/useTimeLabelCollider-XQf_S7-z.js +1 -0
  212. package/dist/useTimeLabels-Das5O74F.js +1 -0
  213. package/dist/useTooltipPosition-aoV8pZZ9.js +1 -0
  214. package/dist/useTransitions-DfSHzsdz.js +1 -0
  215. package/dist/useUserOptionState-CXlFnwPv.js +1 -0
  216. package/dist/userOptionsSlots-DYuo-E5m.js +1 -0
  217. package/dist/utils.js +1 -30
  218. package/dist/vClickOutside-BxNzkY17.js +1 -0
  219. package/dist/vue-data-ui-BG41UScx.js +1 -0
  220. package/dist/vue-data-ui.js +1 -79
  221. package/dist/vue-ui-3d-bar-DiaiNy-k.js +19 -0
  222. package/dist/vue-ui-accordion-Dy5OVFKr.js +1 -0
  223. package/dist/vue-ui-age-pyramid-OeUr1yxi.js +1 -0
  224. package/dist/vue-ui-annotator-DA_xAFql.js +331 -0
  225. package/dist/vue-ui-bullet-B9lcCTVb.js +34 -0
  226. package/dist/vue-ui-bump-DYajIrva.js +10 -0
  227. package/dist/vue-ui-candlestick-CdAZuNxo.js +22 -0
  228. package/dist/vue-ui-carousel-table-ihGH0LDH.js +1 -0
  229. package/dist/vue-ui-chestnut-B2aNXFNO.js +1 -0
  230. package/dist/vue-ui-chord-fAckHfOW.js +21 -0
  231. package/dist/vue-ui-circle-pack-BWHVImkS.js +13 -0
  232. package/dist/vue-ui-cursor-DdXKXmhr.js +1 -0
  233. package/dist/vue-ui-dag-a0fNoIcJ.js +9 -0
  234. package/dist/vue-ui-dashboard-DkdYMB7n.js +1 -0
  235. package/dist/vue-ui-digits-CL9SuIEI.js +42 -0
  236. package/dist/vue-ui-donut-BaEodt-3.js +22 -0
  237. package/dist/vue-ui-donut-DaYxdQmP.js +47 -0
  238. package/dist/vue-ui-donut-evolution-T8cRXKRQ.js +2 -0
  239. package/dist/vue-ui-dumbbell-B6HJxEZp.js +9 -0
  240. package/dist/vue-ui-flow-BlTCVFr3.js +3 -0
  241. package/dist/vue-ui-funnel-WgLFJadZ.js +1 -0
  242. package/dist/vue-ui-galaxy-B3nuI6E8.js +1 -0
  243. package/dist/vue-ui-gauge-BwTP65O4.js +1 -0
  244. package/dist/vue-ui-geo-CX3yH18H.js +1 -0
  245. package/dist/vue-ui-gizmo-CNHcBsku.js +1 -0
  246. package/dist/vue-ui-heatmap-CTdeoar7.js +1 -0
  247. package/dist/vue-ui-hill-DR5k8GWZ.js +1 -0
  248. package/dist/vue-ui-history-plot-C-9uH-Uj.js +2 -0
  249. package/dist/vue-ui-horizontal-bar-qqF7pL7U.js +4 -0
  250. package/dist/vue-ui-kpi-DVcLXGqG.js +1 -0
  251. package/dist/vue-ui-label-D1Aog-zO.js +7 -0
  252. package/dist/vue-ui-mini-loader-CX0Dx9tT.js +1 -0
  253. package/dist/vue-ui-molecule-B13qVX71.js +1 -0
  254. package/dist/vue-ui-mood-radar-C1BtB8lg.js +1 -0
  255. package/dist/vue-ui-nested-donuts-B90yrlJG.js +19 -0
  256. package/dist/vue-ui-onion-UMVO2DE_.js +5 -0
  257. package/dist/vue-ui-parallel-coordinate-plot-C0ofFivm.js +9 -0
  258. package/dist/vue-ui-pattern-DrPCu32G.js +1 -0
  259. package/dist/vue-ui-pattern-seed-B8YjAAEH.js +1 -0
  260. package/dist/vue-ui-quadrant-CPG6yAiu.js +2 -0
  261. package/dist/vue-ui-quick-chart-BTPb-Iz8.js +17 -0
  262. package/dist/vue-ui-radar-Hd-pE9ih.js +1 -0
  263. package/dist/vue-ui-rating-C_YxQYa_.js +1 -0
  264. package/dist/vue-ui-relation-circle-CHYG7ZJl.js +1 -0
  265. package/dist/vue-ui-ridgeline-DS1Gvljt.js +2 -0
  266. package/dist/vue-ui-rings-B-Hb13Uu.js +1 -0
  267. package/dist/vue-ui-scatter-BTgvOmuo.js +9 -0
  268. package/dist/vue-ui-skeleton-B-Acw3CC.js +41 -0
  269. package/dist/vue-ui-smiley-Ciwqt6ek.js +1 -0
  270. package/dist/vue-ui-spark-trend-CYqy6c0S.js +1 -0
  271. package/dist/vue-ui-sparkbar-CTXIgjmP.js +1 -0
  272. package/dist/vue-ui-sparkgauge-CObOL6s2.js +1 -0
  273. package/dist/vue-ui-sparkhistogram-ClFyDez-.js +1 -0
  274. package/dist/vue-ui-sparkline-DP_nYlW8.js +1 -0
  275. package/dist/vue-ui-sparkstackbar-B2f0ePMg.js +1 -0
  276. package/dist/vue-ui-stackbar-nMWHZ-f0.js +29 -0
  277. package/dist/vue-ui-stackline-B95y6Zc5.js +39 -0
  278. package/dist/vue-ui-strip-plot-gFNC4r-X.js +2 -0
  279. package/dist/vue-ui-table-Br2JgD_L.js +14 -0
  280. package/dist/vue-ui-table-heatmap-Btu2ejF4.js +1 -0
  281. package/dist/vue-ui-table-sparkline-B9mYHAxp.js +1 -0
  282. package/dist/vue-ui-thermometer-C6u1eLfo.js +1 -0
  283. package/dist/vue-ui-timer-DLgsfB1U.js +64 -0
  284. package/dist/vue-ui-tiremarks-8B9uE1Bx.js +1 -0
  285. package/dist/vue-ui-treemap-C4Mot-Os.js +1 -0
  286. package/dist/vue-ui-waffle-BwcwNpf7.js +1 -0
  287. package/dist/vue-ui-wheel-B3OGCXg7.js +1 -0
  288. package/dist/vue-ui-word-cloud-BPIyMBXq.js +4 -0
  289. package/dist/vue-ui-world-Cp0DeauH.js +19 -0
  290. package/dist/vue-ui-xy-BOE1jvUS.js +31 -0
  291. package/dist/vue-ui-xy-DSyKSn4L.js +24 -0
  292. package/dist/vue-ui-xy-canvas-CaxxiKSa.js +9 -0
  293. package/dist/vue_ui_3d_bar-DmAve5Ri.js +1 -0
  294. package/dist/vue_ui_age_pyramid-CL0Ef8Ov.js +1 -0
  295. package/dist/vue_ui_bullet-CwVYkpjd.js +1 -0
  296. package/dist/vue_ui_bump-KJL9GYr4.js +1 -0
  297. package/dist/vue_ui_candlestick-DKvha_Ab.js +1 -0
  298. package/dist/vue_ui_chestnut-BxxivKN7.js +1 -0
  299. package/dist/vue_ui_chord-Fq6VBRT1.js +1 -0
  300. package/dist/vue_ui_circle_pack-CfXkXi7v.js +1 -0
  301. package/dist/vue_ui_dag-1b_dLSym.js +1 -0
  302. package/dist/vue_ui_donut-T5PeOqvf.js +1 -0
  303. package/dist/vue_ui_donut_evolution-nzVwNQYv.js +1 -0
  304. package/dist/vue_ui_dumbbell-BMcxK0N3.js +1 -0
  305. package/dist/vue_ui_flow-kvV56Es9.js +1 -0
  306. package/dist/vue_ui_funnel-CaEV5hG7.js +1 -0
  307. package/dist/vue_ui_galaxy-B94QInxc.js +1 -0
  308. package/dist/vue_ui_gauge-BJhb6yqE.js +1 -0
  309. package/dist/vue_ui_geo-DL1SMQHp.js +1 -0
  310. package/dist/vue_ui_heatmap-kh5NMmwf.js +1 -0
  311. package/dist/vue_ui_hill-DQi4pQCG.js +1 -0
  312. package/dist/vue_ui_history_plot-soyqUW4Y.js +1 -0
  313. package/dist/vue_ui_horizontal_bar-C4ulIxeT.js +1 -0
  314. package/dist/vue_ui_label-dtPqyFsj.js +1 -0
  315. package/dist/vue_ui_molecule-Bw1UW1Na.js +1 -0
  316. package/dist/vue_ui_mood_radar-CXaBdJnv.js +1 -0
  317. package/dist/vue_ui_nested_donuts-CRtGsJcz.js +1 -0
  318. package/dist/vue_ui_onion-C9BedU_-.js +1 -0
  319. package/dist/vue_ui_parallel_coordinate_plot-Cs_xXAG5.js +1 -0
  320. package/dist/vue_ui_quadrant-BUv-SqzP.js +1 -0
  321. package/dist/vue_ui_quick_chart-Da1GwklM.js +1 -0
  322. package/dist/vue_ui_radar-68iK9Fam.js +1 -0
  323. package/dist/vue_ui_relation_circle-Dkv-cSB6.js +1 -0
  324. package/dist/vue_ui_ridgeline-Di26JtQu.js +1 -0
  325. package/dist/vue_ui_rings-BcDDXHpQ.js +1 -0
  326. package/dist/vue_ui_scatter-C50uFYQL.js +1 -0
  327. package/dist/vue_ui_spark_trend-BOM3zo64.js +1 -0
  328. package/dist/vue_ui_sparkbar-Bpx7QrFq.js +1 -0
  329. package/dist/vue_ui_sparkgauge-D2Hk6bvS.js +1 -0
  330. package/dist/vue_ui_sparkhistogram-ChwOkoMb.js +1 -0
  331. package/dist/vue_ui_sparkline-CvL_e9L8.js +1 -0
  332. package/dist/vue_ui_sparkstackbar-Chtog7hC.js +1 -0
  333. package/dist/vue_ui_stackbar-BkBIi_bL.js +1 -0
  334. package/dist/vue_ui_stackline-D7b63K84.js +1 -0
  335. package/dist/vue_ui_strip_plot-CwMowrhT.js +1 -0
  336. package/dist/vue_ui_table_heatmap-vfeY6r97.js +1 -0
  337. package/dist/vue_ui_table_sparkline-Dlfbza49.js +1 -0
  338. package/dist/vue_ui_thermometer-CRijq6H6.js +1 -0
  339. package/dist/vue_ui_tiremarks-8HFfABNF.js +1 -0
  340. package/dist/vue_ui_treemap-Bv4Rdl5_.js +1 -0
  341. package/dist/vue_ui_vertical_bar-BLyflvlz.js +1 -0
  342. package/dist/vue_ui_waffle-BbBLSluB.js +1 -0
  343. package/dist/vue_ui_wheel-C-479bvJ.js +1 -0
  344. package/dist/vue_ui_word_cloud-DBiJtSyL.js +1 -0
  345. package/dist/vue_ui_xy-CJBM9F6W.js +1 -0
  346. package/dist/vue_ui_xy_canvas-CT-FN9rU.js +1 -0
  347. package/package.json +2 -2
  348. package/dist/A11yDataTable-DdRsVULz.js +0 -45
  349. package/dist/Arrow-DKO1l8oR.js +0 -116
  350. package/dist/BaseDraggableDialog-C50TEJFv.js +0 -272
  351. package/dist/BaseIcon-Cx9FD751.js +0 -484
  352. package/dist/BaseLegendToggle-CP3sddwv.js +0 -56
  353. package/dist/BaseScanner-Dzc8VT3j.js +0 -30
  354. package/dist/BaseZoomControls-vNi8YykO.js +0 -111
  355. package/dist/ColorPicker-hmC2bvwS.js +0 -257
  356. package/dist/DataTable-CjF_An2h.js +0 -150
  357. package/dist/DefGrad-DVBqDjhO.js +0 -48
  358. package/dist/HillActions-DqqGB33u.js +0 -187
  359. package/dist/Legend-CulFgjUY.js +0 -156
  360. package/dist/NonSvgPenAndPaper-BK1v_MfW.js +0 -577
  361. package/dist/PackageVersion-D7H9nfK0.js +0 -12
  362. package/dist/PenAndPaper-CNiuGw6k.js +0 -906
  363. package/dist/RecursiveCircles-D6aDPmoe.js +0 -117
  364. package/dist/RecursiveLabels-D9rfID6q.js +0 -56
  365. package/dist/RecursiveLinks-BygcpDiT.js +0 -78
  366. package/dist/Shape-DSwamtmO.js +0 -143
  367. package/dist/SlicerPreview-k5YerMA9.js +0 -1730
  368. package/dist/SparkTooltip-D35KVv6N.js +0 -93
  369. package/dist/Title-BMCuINbv.js +0 -87
  370. package/dist/Tooltip-C4ZTwkLF.js +0 -312
  371. package/dist/UserOptions-CORYQiif.js +0 -1412
  372. package/dist/_plugin-vue_export-helper-B3ysoDQm.js +0 -8
  373. package/dist/dom-to-png-CBusMkua.js +0 -237
  374. package/dist/exposedLib-UNxZlnAS.js +0 -28
  375. package/dist/geoProjections-BYthUA8l.js +0 -302
  376. package/dist/img-Bb5rHcpO.js +0 -129
  377. package/dist/labelUtils-Ccn9kK7T.js +0 -19
  378. package/dist/lib-D4wK6ljP.js +0 -2146
  379. package/dist/package-DmQufM0G.js +0 -4
  380. package/dist/patternUtils-CS7hn6at.js +0 -258
  381. package/dist/pdf-BzIQHx-F.js +0 -90
  382. package/dist/render-common-BtfjXdkJ.js +0 -152
  383. package/dist/rolldown-runtime-Dy4uBu1J.js +0 -11
  384. package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +0 -122
  385. package/dist/useChartAccessibility-DYqac8yF.js +0 -12
  386. package/dist/useChartExport-iwOqiIWX.js +0 -803
  387. package/dist/useConfig-D_6ZrPMD.js +0 -8090
  388. package/dist/useFitSvgText-CXTzBplU.js +0 -65
  389. package/dist/useHints-Dq_w2E8B.js +0 -66
  390. package/dist/useNestedProp-DR_8JPol.js +0 -12
  391. package/dist/useObjectBindings-DvasYMGu.js +0 -191
  392. package/dist/usePanZoom-CYU3B4T3.js +0 -157
  393. package/dist/usePrefersMotion-BC-CsqR1.js +0 -15
  394. package/dist/usePrinter-DdW2GSm0.js +0 -49
  395. package/dist/useResponsive-ZtArZtUf.js +0 -97
  396. package/dist/useStableElementSize-C7KADDKj.js +0 -77
  397. package/dist/useTableResponsive-BAqJPR68.js +0 -25
  398. package/dist/useThemeCheck-C43Tcqmk.js +0 -24
  399. package/dist/useTimeLabelCollider-AEcY4Ioe.js +0 -57
  400. package/dist/useTimeLabels-d2f-W1L4.js +0 -270
  401. package/dist/useTooltipPosition-BCrtQa9H.js +0 -189
  402. package/dist/useTransitions-g_zBREk2.js +0 -39
  403. package/dist/useUserOptionState-DK-_1ddE.js +0 -15
  404. package/dist/vClickOutside-DUrZWttG.js +0 -13
  405. package/dist/vue-data-ui-Df7WV80w.js +0 -191
  406. package/dist/vue-ui-3d-bar-CJjNPwhG.js +0 -1831
  407. package/dist/vue-ui-accordion-CaoNWreI.js +0 -81
  408. package/dist/vue-ui-age-pyramid-BYcM0uIP.js +0 -1305
  409. package/dist/vue-ui-annotator-BmqjDjRF.js +0 -3325
  410. package/dist/vue-ui-bullet-DBOAvpBB.js +0 -702
  411. package/dist/vue-ui-bump-rPYwDJ4o.js +0 -1242
  412. package/dist/vue-ui-candlestick-WQHIQNv_.js +0 -2144
  413. package/dist/vue-ui-carousel-table-Dojcvt49.js +0 -467
  414. package/dist/vue-ui-chestnut-BdhEByUf.js +0 -2016
  415. package/dist/vue-ui-chord-MF4xF5az.js +0 -1347
  416. package/dist/vue-ui-circle-pack-BwDim7G8.js +0 -1647
  417. package/dist/vue-ui-cursor-w_5cbpSb.js +0 -283
  418. package/dist/vue-ui-dag-D2EUqeDN.js +0 -2931
  419. package/dist/vue-ui-dashboard-BLnVXosj.js +0 -522
  420. package/dist/vue-ui-digits-zSqwYWHm.js +0 -217
  421. package/dist/vue-ui-donut-ZYZfqIhi.js +0 -974
  422. package/dist/vue-ui-donut-evolution-DtLbWi3h.js +0 -1869
  423. package/dist/vue-ui-donut-nLDLZwig.js +0 -2427
  424. package/dist/vue-ui-dumbbell-Qgn3wRyI.js +0 -1533
  425. package/dist/vue-ui-flow-iSH6dyGw.js +0 -1229
  426. package/dist/vue-ui-funnel-Cc2z2zS5.js +0 -749
  427. package/dist/vue-ui-galaxy-GhuBSU0o.js +0 -1097
  428. package/dist/vue-ui-gauge-BAjBO13a.js +0 -934
  429. package/dist/vue-ui-geo-mwTtvIHY.js +0 -1495
  430. package/dist/vue-ui-gizmo-B5vOOrZX.js +0 -238
  431. package/dist/vue-ui-heatmap-fimkY1nN.js +0 -1613
  432. package/dist/vue-ui-hill-DPfTt3UE.js +0 -1747
  433. package/dist/vue-ui-history-plot-B1WgzqTb.js +0 -1710
  434. package/dist/vue-ui-horizontal-bar-Bkp5HQdt.js +0 -1723
  435. package/dist/vue-ui-kpi-D-p0CSQh.js +0 -104
  436. package/dist/vue-ui-label-r3-QloJL.js +0 -1451
  437. package/dist/vue-ui-mini-loader-CnrBGAtM.js +0 -133
  438. package/dist/vue-ui-molecule-BhdAYX_H.js +0 -941
  439. package/dist/vue-ui-mood-radar-CdlnPrQf.js +0 -1111
  440. package/dist/vue-ui-nested-donuts-DceVEyUc.js +0 -1515
  441. package/dist/vue-ui-onion-_L0uEATI.js +0 -1247
  442. package/dist/vue-ui-parallel-coordinate-plot-CbXwIM47.js +0 -1444
  443. package/dist/vue-ui-pattern-DKozfnVn.js +0 -154
  444. package/dist/vue-ui-pattern-seed-BB1honLm.js +0 -61
  445. package/dist/vue-ui-quadrant-CDDFLRcX.js +0 -1979
  446. package/dist/vue-ui-quick-chart-Dom257hl.js +0 -2775
  447. package/dist/vue-ui-radar-BLdri1bA.js +0 -1386
  448. package/dist/vue-ui-rating-C_iTttXB.js +0 -359
  449. package/dist/vue-ui-relation-circle-BmxTSgjd.js +0 -905
  450. package/dist/vue-ui-ridgeline-CsUrcVmL.js +0 -1630
  451. package/dist/vue-ui-rings-D_GPkgbD.js +0 -1264
  452. package/dist/vue-ui-scatter-D_C-IhnW.js +0 -2418
  453. package/dist/vue-ui-skeleton-t7e6KEZ2.js +0 -2567
  454. package/dist/vue-ui-smiley-Dl95YWVo.js +0 -376
  455. package/dist/vue-ui-spark-trend-pkZA7u5V.js +0 -457
  456. package/dist/vue-ui-sparkbar-Ds7OJjhG.js +0 -401
  457. package/dist/vue-ui-sparkgauge-US1M88qc.js +0 -268
  458. package/dist/vue-ui-sparkhistogram-FISVpSvv.js +0 -589
  459. package/dist/vue-ui-sparkline-DvE1dHcs.js +0 -2067
  460. package/dist/vue-ui-sparkstackbar-CWtF9eG-.js +0 -750
  461. package/dist/vue-ui-stackbar-fMgrHzZe.js +0 -3273
  462. package/dist/vue-ui-stackline-CSMuUup2.js +0 -2829
  463. package/dist/vue-ui-strip-plot-TGD2UFHS.js +0 -1752
  464. package/dist/vue-ui-table-BCEIbg8-.js +0 -1352
  465. package/dist/vue-ui-table-heatmap-CvUcFWMf.js +0 -363
  466. package/dist/vue-ui-table-sparkline-CoVQ1qGY.js +0 -738
  467. package/dist/vue-ui-thermometer-BYFAZCzh.js +0 -758
  468. package/dist/vue-ui-timer-BKr8RVnn.js +0 -451
  469. package/dist/vue-ui-tiremarks-BYu3cEoy.js +0 -540
  470. package/dist/vue-ui-treemap-BR3rX5_L.js +0 -1745
  471. package/dist/vue-ui-waffle-mP8g5aQk.js +0 -1633
  472. package/dist/vue-ui-wheel-CZsSO2R6.js +0 -873
  473. package/dist/vue-ui-word-cloud-CJ30onqy.js +0 -1723
  474. package/dist/vue-ui-world-BZ09DOiF.js +0 -3021
  475. package/dist/vue-ui-xy-C3h54loZ.js +0 -1387
  476. package/dist/vue-ui-xy-canvas-BwgK8drp.js +0 -2151
  477. package/dist/vue-ui-xy-jemv5dsf.js +0 -5777
  478. package/dist/vue_ui_3d_bar-C4R7o-yX.js +0 -185
  479. package/dist/vue_ui_age_pyramid-B2R66DgQ.js +0 -310
  480. package/dist/vue_ui_bullet-ClzdLoOv.js +0 -186
  481. package/dist/vue_ui_bump-Vl-zYAtG.js +0 -201
  482. package/dist/vue_ui_candlestick-BXSQY82k.js +0 -461
  483. package/dist/vue_ui_chestnut-D2oUhad6.js +0 -305
  484. package/dist/vue_ui_chord-DPfS1Umc.js +0 -275
  485. package/dist/vue_ui_circle_pack-DZC_rdfn.js +0 -172
  486. package/dist/vue_ui_dag-TsJ_azQq.js +0 -258
  487. package/dist/vue_ui_donut-BDGqG07h.js +0 -358
  488. package/dist/vue_ui_donut_evolution-C6951a2f.js +0 -745
  489. package/dist/vue_ui_dumbbell-Bfe_jFyi.js +0 -304
  490. package/dist/vue_ui_flow-BewZjjKG.js +0 -238
  491. package/dist/vue_ui_funnel-_Og4EEkO.js +0 -234
  492. package/dist/vue_ui_galaxy-Ig0cc1_h.js +0 -265
  493. package/dist/vue_ui_gauge-Cf1RZc9q.js +0 -178
  494. package/dist/vue_ui_geo-B8TODs-G.js +0 -248
  495. package/dist/vue_ui_heatmap-B2BBBSWG.js +0 -319
  496. package/dist/vue_ui_hill-dnltu0L-.js +0 -368
  497. package/dist/vue_ui_history_plot-CuN63VEc.js +0 -413
  498. package/dist/vue_ui_horizontal_bar-C4J4QzXf.js +0 -341
  499. package/dist/vue_ui_label-B0QoxQrJ.js +0 -115
  500. package/dist/vue_ui_molecule-CO9L59SF.js +0 -231
  501. package/dist/vue_ui_mood_radar-BA6LAKhk.js +0 -281
  502. package/dist/vue_ui_nested_donuts-B8csIoVO.js +0 -273
  503. package/dist/vue_ui_onion-1FTFFS46.js +0 -293
  504. package/dist/vue_ui_parallel_coordinate_plot-CBiOBira.js +0 -278
  505. package/dist/vue_ui_quadrant-CDSTKTJz.js +0 -428
  506. package/dist/vue_ui_quick_chart-DByCqSYE.js +0 -180
  507. package/dist/vue_ui_radar-jafTED5j.js +0 -306
  508. package/dist/vue_ui_relation_circle-D0p4mXmv.js +0 -98
  509. package/dist/vue_ui_ridgeline-VM8_mx4J.js +0 -767
  510. package/dist/vue_ui_rings-BVgD2aMn.js +0 -320
  511. package/dist/vue_ui_scatter-I0POnicu.js +0 -479
  512. package/dist/vue_ui_spark_trend-DxVmpkmC.js +0 -82
  513. package/dist/vue_ui_sparkbar-z6qO--Kf.js +0 -64
  514. package/dist/vue_ui_sparkgauge-BX1MS3bA.js +0 -90
  515. package/dist/vue_ui_sparkhistogram-BRgvKUH6.js +0 -123
  516. package/dist/vue_ui_sparkline-b9pEUyGF.js +0 -183
  517. package/dist/vue_ui_sparkstackbar-BOjuQnZd.js +0 -175
  518. package/dist/vue_ui_stackbar-yQyvT4Su.js +0 -537
  519. package/dist/vue_ui_stackline-Bh0RuInt.js +0 -539
  520. package/dist/vue_ui_strip_plot-BaHbnnwN.js +0 -308
  521. package/dist/vue_ui_table_heatmap-w8vx5k6f.js +0 -80
  522. package/dist/vue_ui_table_sparkline-DAbkUrNz.js +0 -124
  523. package/dist/vue_ui_thermometer-DxgqWKlE.js +0 -123
  524. package/dist/vue_ui_tiremarks-CdEPieWV.js +0 -122
  525. package/dist/vue_ui_treemap-DoEtkRN6.js +0 -328
  526. package/dist/vue_ui_vertical_bar-CP-MKz1j.js +0 -247
  527. package/dist/vue_ui_waffle-DE_DiSVP.js +0 -299
  528. package/dist/vue_ui_wheel-DZ_nR--t.js +0 -133
  529. package/dist/vue_ui_word_cloud-C-qIMNLu.js +0 -254
  530. package/dist/vue_ui_xy-CcJADijP.js +0 -614
  531. package/dist/vue_ui_xy_canvas-DrNSzYWq.js +0 -487
@@ -1,1229 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { $ as t, D as n, Dt as r, Ht as i, S as a, X as o, at as s, b as c, en as l, et as u, i as d, n as f, nn as p, nt as m, r as h, t as g, w as _, zt as ee } from "./lib-D4wK6ljP.js";
3
- import { n as v, t as y } from "./useHints-Dq_w2E8B.js";
4
- import { t as b } from "./useConfig-D_6ZrPMD.js";
5
- import { t as x } from "./usePrinter-DdW2GSm0.js";
6
- import { n as S, t as te } from "./BaseScanner-Dzc8VT3j.js";
7
- import { t as ne } from "./useNestedProp-DR_8JPol.js";
8
- import { t as re } from "./useThemeCheck-C43Tcqmk.js";
9
- import { t as ie } from "./useChartExport-iwOqiIWX.js";
10
- import { t as ae } from "./img-Bb5rHcpO.js";
11
- import { n as oe } from "./Title-BMCuINbv.js";
12
- import { t as se } from "./_plugin-vue_export-helper-B3ysoDQm.js";
13
- import { l as ce, t as le } from "./useResponsive-ZtArZtUf.js";
14
- import { t as ue } from "./A11yDataTable-DdRsVULz.js";
15
- import { t as de } from "./useUserOptionState-DK-_1ddE.js";
16
- import { t as fe } from "./useChartAccessibility-DYqac8yF.js";
17
- import { t as pe } from "./Legend-CulFgjUY.js";
18
- import { t as me } from "./vue_ui_flow-BewZjjKG.js";
19
- import { Fragment as he, Teleport as ge, computed as C, createBlock as w, createCommentVNode as T, createElementBlock as E, createElementVNode as D, createSlots as _e, createTextVNode as ve, createVNode as ye, defineAsyncComponent as O, guardReactiveProps as k, mergeProps as be, nextTick as xe, normalizeClass as Se, normalizeProps as A, normalizeStyle as j, onMounted as Ce, openBlock as M, ref as N, renderList as we, renderSlot as P, resolveDynamicComponent as Te, toDisplayString as F, toRefs as Ee, unref as I, watch as De, withCtx as L } from "vue";
20
- //#region src/components/vue-ui-flow.vue
21
- var Oe = /* @__PURE__ */ e({ default: () => Ye }), ke = ["id"], Ae = ["id"], je = {
22
- key: 2,
23
- ref: "noTitle",
24
- class: "vue-data-ui-no-title-space",
25
- style: "height:36px; width: 100%;background:transparent"
26
- }, Me = ["id"], Ne = { style: { position: "relative" } }, Pe = [
27
- "xmlns",
28
- "aria-describedby",
29
- "viewBox"
30
- ], Fe = ["width", "height"], Ie = ["id"], Le = ["stop-color"], Re = ["stop-color"], ze = [
31
- "d",
32
- "fill",
33
- "stroke",
34
- "stroke-width"
35
- ], Be = [
36
- "data-a11y-node-id",
37
- "x",
38
- "y",
39
- "height",
40
- "width",
41
- "fill",
42
- "stroke",
43
- "stroke-width",
44
- "rx",
45
- "aria-label",
46
- "onMouseenter",
47
- "onMouseleave",
48
- "onClick"
49
- ], Ve = { key: 1 }, He = [
50
- "x",
51
- "y",
52
- "font-size",
53
- "fill"
54
- ], Ue = [
55
- "x",
56
- "y",
57
- "font-size",
58
- "fill"
59
- ], We = {
60
- key: 0,
61
- style: {
62
- position: "absolute",
63
- top: "100%",
64
- left: "0",
65
- width: "100%"
66
- },
67
- "data-dom-to-png-ignore": "",
68
- "aria-hidden": "true"
69
- }, Ge = {
70
- key: 5,
71
- class: "vue-data-ui-watermark"
72
- }, Ke = ["id"], qe = ["onClick"], Je = { style: {
73
- display: "flex",
74
- "align-items": "center"
75
- } }, Ye = /*#__PURE__*/ se({
76
- __name: "vue-ui-flow",
77
- props: {
78
- config: {
79
- type: Object,
80
- default() {
81
- return {};
82
- }
83
- },
84
- dataset: {
85
- type: Array,
86
- default() {
87
- return [];
88
- }
89
- }
90
- },
91
- emits: ["copyAlt"],
92
- setup(e, { expose: se, emit: Oe }) {
93
- let Ye = O(() => import("./Tooltip-C4ZTwkLF.js")), Xe = O(() => import("./BaseIcon-Cx9FD751.js").then((e) => e.n)), Ze = O(() => import("./vue-ui-accordion-CaoNWreI.js").then((e) => e.n)), Qe = O(() => import("./DataTable-CjF_An2h.js")), $e = O(() => import("./PenAndPaper-CNiuGw6k.js").then((e) => e.t)), et = O(() => import("./UserOptions-CORYQiif.js").then((e) => e.n)), tt = O(() => import("./PackageVersion-D7H9nfK0.js").then((e) => e.t)), nt = O(() => import("./BaseDraggableDialog-C50TEJFv.js").then((e) => e.n)), { vue_ui_flow: rt } = b(), { isThemeValid: it, warnInvalidTheme: at } = re(), R = e, ot = Oe, z = N(o()), B = N(null), st = N(0), ct = N(0), lt = N(!1), ut = N(""), dt = N(null), ft = N(null), pt = N(null), mt = N(null), ht = N(null), gt = N(!1), _t = N(null), vt = N(null), yt = N(null), bt = N(null), V = N(null), xt = N({
94
- x: 0,
95
- y: 0
96
- }), St = N("pointer"), Ct = N(!1), wt = C(() => !!R.dataset && R.dataset.length);
97
- Ce(() => {
98
- gt.value = !0, Nt();
99
- });
100
- let H = N(!1);
101
- function Tt(e) {
102
- H.value = e, st.value += 1;
103
- }
104
- let U = N(Lt()), W = C(() => U.value.style.chart.nodes.labels), G = C(() => U.value.style.chart.nodes), Et = C(() => U.value.style.chart.links), K = C(() => U.value.style.chart);
105
- v({
106
- config: () => U.value,
107
- dataset: () => R.dataset,
108
- component: "VueUiFlow",
109
- rules: [y.emptyArray, y.noHint]
110
- });
111
- let Dt = C(() => U.value.userOptions.useCursorPointer), Ot = C(() => p({
112
- defaultConfig: {
113
- userOptions: { show: !1 },
114
- nodeCategories: {
115
- B: "A",
116
- C: "B"
117
- },
118
- nodeCategoryColors: {
119
- A: "#CACACA",
120
- B: "#AAAAAA"
121
- },
122
- table: { show: !1 },
123
- style: { chart: {
124
- backgroundColor: "#99999930",
125
- legend: { backgroundColor: "transparent" },
126
- nodes: {
127
- labels: { show: !1 },
128
- stroke: "#666666"
129
- },
130
- links: { stroke: "#666666" }
131
- } }
132
- },
133
- userConfig: U.value.skeletonConfig ?? {}
134
- })), { loading: kt, FINAL_DATASET: At, manualLoading: jt } = S({
135
- ...Ee(R),
136
- FINAL_CONFIG: U,
137
- prepareConfig: Lt,
138
- skeletonDataset: R.config?.skeletonDataset ?? [
139
- [
140
- "A",
141
- "B",
142
- 2,
143
- "#CACACA"
144
- ],
145
- [
146
- "B",
147
- "C",
148
- 1,
149
- "#CACACA"
150
- ],
151
- [
152
- "C",
153
- "D",
154
- .5,
155
- "#CACACA"
156
- ],
157
- [
158
- "E",
159
- "F",
160
- 1,
161
- "#AAAAAA"
162
- ],
163
- [
164
- "F",
165
- "G",
166
- .5,
167
- "#AAAAAA"
168
- ],
169
- [
170
- "G",
171
- "H",
172
- .25,
173
- "#AAAAAA"
174
- ]
175
- ],
176
- skeletonConfig: p({
177
- defaultConfig: U.value,
178
- userConfig: Ot.value
179
- })
180
- }), Mt = C(() => U.value.debug);
181
- function Nt() {
182
- if (ee(R.dataset) && (s({
183
- componentName: "VueUiFlow",
184
- type: "dataset",
185
- debug: Mt.value
186
- }), jt.value = !0), ee(R.dataset) || (jt.value = U.value.loading), U.value.responsive) {
187
- let e = ce(() => {
188
- let { width: e, height: t } = le({
189
- chart: B.value,
190
- title: K.value.title.text ? ft.value : null,
191
- legend: K.value.legend.show ? dt.value : null,
192
- source: pt.value
193
- });
194
- requestAnimationFrame(() => {
195
- Rt.value = e, zt.value = t;
196
- });
197
- });
198
- mt.value && (ht.value && mt.value.unobserve(ht.value), mt.value.disconnect()), mt.value = new ResizeObserver(e), ht.value = B.value.parentNode, mt.value.observe(ht.value);
199
- }
200
- }
201
- let { userOptionsVisible: Pt, setUserOptionsVisibility: Ft, keepUserOptionState: It } = de({ config: U.value }), { svgRef: q } = fe({ config: K.value.title });
202
- function Lt() {
203
- let e = ne({
204
- userConfig: R.config,
205
- defaultConfig: rt
206
- }), t = e, n = e.theme;
207
- if (n) {
208
- if (!it.value(e)) at(e), t = e;
209
- else {
210
- let r = ne({
211
- userConfig: me[n] || R.config,
212
- defaultConfig: e
213
- });
214
- t = {
215
- ...ne({
216
- userConfig: R.config,
217
- defaultConfig: r
218
- }),
219
- customPalette: e.customPalette.length ? e.customPalette : l[n] || i
220
- };
221
- }
222
- } else t = e;
223
- return t.nodeCategories = R.config.nodeCategories || {}, t.nodeCategoryColors = R.config.nodeCategoryColors || {}, t;
224
- }
225
- let Rt = N(K.value.width), zt = N(K.value.height);
226
- function Bt(e) {
227
- let t = u(e);
228
- return t?.style?.chart && delete t.style.chart.tooltip, JSON.stringify(t);
229
- }
230
- let Vt = Bt(R.config);
231
- De(() => R.config, (e, t) => {
232
- let n = Bt(e), r = n !== Vt;
233
- Vt = n;
234
- let i = Lt();
235
- if (!r) {
236
- U.value.style.chart.tooltip = i.style.chart.tooltip, J.value.showTooltip = U.value.style.chart.tooltip.show;
237
- return;
238
- }
239
- kt.value || (U.value = i), Pt.value = !U.value.userOptions.showOnChartHover, Nt(), ct.value += 1, J.value.showTable = U.value.table.show;
240
- }, { deep: !0 }), De(() => R.dataset, (e) => {
241
- Array.isArray(e) && e.length > 0 && (jt.value = !1);
242
- }, { deep: !0 });
243
- let { isPrinting: Ht, isImaging: Ut, generatePdf: Wt, generateImage: Gt } = x({
244
- elementId: `flow_${z.value}`,
245
- fileName: K.value.title.text || "vue-ui-flow",
246
- options: U.value.userOptions.print
247
- }), Kt = C(() => U.value.userOptions.show && !K.value.title.text), qt = C(() => _(U.value.customPalette)), Jt = C(() => G.value.width), J = N({
248
- showTable: U.value.table.show,
249
- showTooltip: K.value.tooltip.show
250
- });
251
- De(U, () => {
252
- J.value = {
253
- showTable: U.value.table.show,
254
- showTooltip: K.value.tooltip.show
255
- };
256
- }, { immediate: !0 });
257
- let Yt = C(() => !At.value || !At.value.length ? [] : At.value.map((e, t) => [
258
- e[0],
259
- e[1],
260
- c(e[2]),
261
- e[3] ? a(e[3]) : qt.value[t] || qt.value[t % qt.value.length] || i[t] || i[t % i.length]
262
- ]));
263
- function Xt(e) {
264
- let t = {}, n = {};
265
- function r(e, r) {
266
- t[e] || (t[e] = {
267
- level: null,
268
- inflow: 0,
269
- outflow: 0,
270
- children: [],
271
- color: null,
272
- uid: o()
273
- }), t[e].level === null && (t[e].level = r), n[r] || (n[r] = []), n[r].includes(e) || n[r].push(e);
274
- }
275
- e.forEach(([e, n, i]) => {
276
- let a = t[e]?.level ?? 0, o = a + 1;
277
- r(e, a), r(n, o), t[e].children.push({
278
- target: n,
279
- value: i
280
- }), t[e].outflow += i, t[n].inflow += i;
281
- });
282
- let a = new Set(e.map(([e]) => e)), s = new Set(e.map(([, e]) => e)), l = Array.from(a).filter((e) => !s.has(e)), u = {};
283
- l.forEach((e, t) => {
284
- u[e] = qt.value[t] || i[t % i.length];
285
- });
286
- let d = {};
287
- e.forEach(([e, t, n, r]) => {
288
- r && (d[e] = r, d[t] = r);
289
- }), Object.keys(t).forEach((e, n) => {
290
- let r = U.value.nodeCategories?.[e], a = r ? U.value.nodeCategoryColors?.[r] : null;
291
- t[e].color = d[e] || a || (l.includes(e) ? u[e] : null) || i[n % i.length];
292
- }), Object.keys(t).forEach((e) => {
293
- t[e].value = Math.max(t[e].inflow, t[e].outflow);
294
- });
295
- let f = $t.value, p = en.value.width, m = en.value.height, h = Object.keys(n).map(Number).sort((e, t) => e - t), g = h.length || 1, _ = g > 1 ? p / (g - 1) : 0, ee = Number(Jt.value), v = Number(G.value.gapPx ?? G.value.gap ?? 8), y = Number(G.value.minHeight || 0);
296
- function b(e) {
297
- let r = n[e], i = r.length;
298
- if (!i) return Infinity;
299
- let a = Math.max(0, (i - 1) * v), o = Math.max(0, m - a), s = Math.min(y, i ? o / i : 0), c = 0, l = r.map((e) => t[e].value || 0), u = l.reduce((e, t) => e + t, 0);
300
- for (let e = 0; e < 12; e += 1) {
301
- let e = u > 0 ? (o - c) / u : 0, t = [];
302
- for (let n = 0; n < l.length; n += 1) {
303
- let r = l[n];
304
- r < 0 || r * e < s && t.push(n);
305
- }
306
- if (!t.length) return Math.max(0, e);
307
- for (let e of t) c += s, u -= l[e], l[e] = -1;
308
- if (u <= 0) return 0;
309
- }
310
- return u > 0 ? Math.max(0, (o - c) / u) : 0;
311
- }
312
- let x = h.map(b), S = x.length ? Math.min(...x) : 0, te = {};
313
- h.forEach((e) => {
314
- let r = n[e], i = r.length, a = Math.max(0, (i - 1) * v), s = Math.max(0, m - a), c = Math.min(y, i ? s / i : 0), l = r.map((e) => Math.max(c, (t[e].value || 0) * S)), u = l.reduce((e, t) => e + t, 0) + a, d = Math.max(0, (m - u) / 2);
315
- r.forEach((n, r) => {
316
- let a = l[r], s = f.left + e * _, c = d;
317
- te[n] = {
318
- x: s,
319
- y: c,
320
- absoluteY: c,
321
- height: a,
322
- i: r,
323
- color: t[n].color,
324
- value: t[n].value,
325
- id: o()
326
- }, d += a, r < i - 1 && (d += v);
327
- });
328
- });
329
- let ne = [], re = f.top, ie = {}, ae = {};
330
- Object.keys(t).forEach((e) => {
331
- ie[e] = te[e]?.y ?? 0, ae[e] = 0;
332
- });
333
- let oe = !!Et.value.smooth, se = .5;
334
- return h.forEach((e) => {
335
- n[e].forEach((e) => {
336
- let n = t[e], r = te[e];
337
- if (!n.children || !n.children.length) return;
338
- let i = r.y;
339
- n.children.forEach(({ target: a, value: s }) => {
340
- let l = te[a], u = t[a], d = n.outflow > 0 ? s / n.outflow : 0, f = u.inflow > 0 ? s / u.inflow : 0, p = c(i + re), m = c(i + d * r.height + re), h = ie[a], g = h + f * l.height;
341
- ae[a] += s;
342
- let _ = u.inflow > 0 && ae[a] >= u.inflow - 1e-6, v = l.y + l.height;
343
- (_ || g > v - .25) && (g = v);
344
- let y = c(h + re), b = c(g + re), x = c(r.x + ee), S = c(l.x), ce;
345
- if (!oe || S <= x) ce = `M ${x} ${p} L ${x} ${m} L ${S} ${b} L ${S} ${y} Z`;
346
- else {
347
- let e = S - x, t = c(x + e * se), n = c(S - e * se), r = p, i = y, a = m, o = b;
348
- ce = `M ${x} ${r} C ${t} ${r}, ${n} ${i}, ${S} ${i} L ${S} ${o} C ${n} ${o}, ${t} ${a}, ${x} ${a} Z`;
349
- }
350
- ne.push({
351
- id: o(),
352
- source: e,
353
- target: a,
354
- path: ce,
355
- value: s,
356
- sourceColor: n.color,
357
- targetColor: t[a].color
358
- }), i = m - re, ie[a] = g;
359
- });
360
- });
361
- }), {
362
- nodeCoordinates: te,
363
- links: ne
364
- };
365
- }
366
- let Y = C(() => {
367
- let e = Xt(At.value);
368
- return {
369
- nodes: Object.keys(e.nodeCoordinates).map((t, n) => ({
370
- ...e.nodeCoordinates[t],
371
- name: t
372
- })),
373
- links: e.links
374
- };
375
- }), Zt = C(() => Rt.value), Qt = C(() => zt.value), $t = C(() => K.value.padding), en = C(() => ({
376
- width: Math.max(0, Zt.value - 40 - $t.value.right - $t.value.left),
377
- height: Math.max(0, Qt.value - $t.value.top - $t.value.bottom)
378
- })), tn = C(() => ({
379
- width: Zt.value,
380
- height: Qt.value
381
- }));
382
- function nn(e) {
383
- let t = {}, n = {}, r = /* @__PURE__ */ new Set();
384
- return Yt.value.forEach(([e, r, i]) => {
385
- t[e] || (t[e] = []), n[r] || (n[r] = []), t[e].push(r), n[r].push(e);
386
- }), t[e] && t[e].forEach((e) => r.add(e)), n[e] && n[e].forEach((e) => r.add(e)), Array.from(r).concat(e);
387
- }
388
- let X = N(null), Z = N(null), rn = N(null), an = N(!1), on = N(null);
389
- function sn() {
390
- on.value = null, X.value = null, Z.value = null, lt.value = !1, bt.value = null, V.value = null;
391
- }
392
- function cn(e) {
393
- if (!q.value || !e) return;
394
- let t = q.value.querySelector(`[data-a11y-node-id="${e}"]`);
395
- if (!t) return;
396
- let n = t.getBoundingClientRect();
397
- xt.value = {
398
- x: n.left + n.width / 2,
399
- y: n.top + n.height / 2
400
- };
401
- }
402
- function ln(e, n, i = "pointer", a = null) {
403
- $.value = [], X.value = nn(e.name), Z.value = e.name, on.value = e.id, St.value = i, bt.value = a, V.value = e.id;
404
- let o = e.name, s = Yt.value, c = 0, l = 0, u = [], f = [], p = new Set(s.map(([e]) => e)), m = new Set(s.map(([, e]) => e)), h = Array.from(p).filter((e) => !m.has(e)), g = s.filter(([e]) => h.includes(e)).reduce((e, [t, n, r]) => e + r, 0), _ = {};
405
- Y.value.nodes.forEach((e) => {
406
- _[e.name] = e.color;
407
- }), s.forEach(([e, t, n]) => {
408
- t === o && (c += n, u.push({
409
- source: e,
410
- value: n,
411
- color: _[e]
412
- })), e === o && (l += n, f.push({
413
- target: t,
414
- value: n,
415
- color: _[t]
416
- }));
417
- });
418
- let ee = g > 0 ? Math.max(c, l) / g * 100 : 0, v = {
419
- name: o,
420
- inflow: c,
421
- outflow: l,
422
- from: u,
423
- to: f,
424
- percentOfTotal: ee,
425
- color: _[o] || "#000000"
426
- };
427
- U.value.events.datapointEnter && U.value.events.datapointEnter({
428
- datapoint: v,
429
- seriesIndex: n
430
- }), rn.value = {
431
- datapoint: v,
432
- config: U.value,
433
- seriesIndex: n,
434
- series: Y.value
435
- }, lt.value = !0;
436
- let y = "", b = K.value.tooltip.customFormat;
437
- if (an.value = !1, r(b)) try {
438
- let e = b({
439
- datapoint: v,
440
- series: Y.value,
441
- config: U.value
442
- });
443
- typeof e == "string" && (ut.value = e, an.value = !0);
444
- } catch {
445
- console.warn("Custom format cannot be applied.");
446
- }
447
- if (!an.value) {
448
- let e = K.value.tooltip.showPercentage ? `<div>${t({
449
- p: K.value.tooltip.translations.percentOfTotal,
450
- v: v.percentOfTotal,
451
- s: "%",
452
- r: K.value.tooltip.roundingPercentage
453
- })}</div>` : "";
454
- y += `<div style="width:100%;text-align:center;border-bottom:1px solid ${K.value.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;"><span style="margin-right:4px; color:${v.color}">⏹</span>${v.name}${e}</div>`, v.from.length && (y += `<div>${K.value.tooltip.translations.from}</div>`, v.from.forEach((e) => {
455
- y += `<div><span style="color:${e.color}">⏹←</span> ${e.source}: ${d(W.value.formatter, e.value, t({
456
- p: W.value.prefix,
457
- v: e.value,
458
- s: W.value.suffix,
459
- r: W.value.rounding
460
- }))}</div>`;
461
- })), v.to.length && (y += `<div style="margin-top:6px;">${K.value.tooltip.translations.to}</div>`, v.to.forEach((e) => {
462
- y += `<div><span style="color:${e.color}">⏹→</span> ${e.target}: ${d(W.value.formatter, e.value, t({
463
- p: W.value.prefix,
464
- v: e.value,
465
- s: W.value.suffix,
466
- r: W.value.rounding
467
- }))}</div>`;
468
- })), ut.value = y;
469
- }
470
- i === "keyboard" && xe(() => {
471
- cn(e.id);
472
- });
473
- }
474
- function un(e) {
475
- let t = rn.value;
476
- U.value.events.datapointLeave && U.value.events.datapointLeave({
477
- datapoint: t,
478
- seriesIndex: e
479
- }), !(St.value === "keyboard" && V.value) && (on.value = null, X.value = null, Z.value = null, lt.value = !1);
480
- }
481
- function dn(e) {
482
- let t = rn.value;
483
- U.value.events.datapointClick && U.value.events.datapointClick({
484
- datapoint: t,
485
- seriesIndex: e
486
- });
487
- }
488
- let fn = C(() => Y.value.links.map(({ source: e, target: t, sourceColor: n, targetColor: r, value: i }) => ({
489
- source: e,
490
- target: t,
491
- sourceColor: n,
492
- targetColor: r,
493
- value: i
494
- })));
495
- function pn(e = null) {
496
- xe(() => {
497
- let t = fn.value.map((e, t) => [
498
- [e.source],
499
- [e.target],
500
- [e.value]
501
- ]), r = [
502
- [K.value.title.text],
503
- [K.value.title.subtitle.text],
504
- [
505
- [U.value.table.columnNames.source],
506
- [U.value.table.columnNames.target],
507
- [U.value.table.columnNames.value]
508
- ]
509
- ].concat(t), i = n(r);
510
- e ? e(i) : m({
511
- csvContent: i,
512
- title: K.value.title.text || "vue-ui-flow"
513
- });
514
- });
515
- }
516
- let mn = C(() => {
517
- let e = [
518
- U.value.table.columnNames.source,
519
- U.value.table.columnNames.target,
520
- U.value.table.columnNames.value
521
- ], n = fn.value.map((e, n) => [
522
- {
523
- color: e.sourceColor,
524
- name: e.source,
525
- shape: "square"
526
- },
527
- {
528
- color: e.targetColor,
529
- name: e.target,
530
- shape: "square"
531
- },
532
- t({
533
- p: W.value.prefix,
534
- v: e.value,
535
- s: W.value.suffix,
536
- r: W.value.rounding
537
- })
538
- ]), r = {
539
- th: {
540
- backgroundColor: U.value.table.th.backgroundColor,
541
- color: U.value.table.th.color,
542
- outline: U.value.table.th.outline
543
- },
544
- td: {
545
- backgroundColor: U.value.table.td.backgroundColor,
546
- color: U.value.table.td.color,
547
- outline: U.value.table.td.outline
548
- },
549
- breakpoint: U.value.table.responsiveBreakpoint
550
- };
551
- return {
552
- colNames: [
553
- U.value.table.columnNames.source,
554
- U.value.table.columnNames.target,
555
- U.value.table.columnNames.value
556
- ],
557
- head: e,
558
- body: n,
559
- config: r
560
- };
561
- }), hn = C(() => ({
562
- headers: mn.value?.colNames ?? [],
563
- rows: mn.value?.body ?? []
564
- })), gn = C(() => [...Y.value.nodes].map((e, t) => ({
565
- ...e,
566
- index: t,
567
- centerX: e.x + Jt.value / 2,
568
- centerY: c(e.absoluteY) + K.value.padding.top + e.height / 2
569
- })).sort((e, t) => e.x === t.x ? e.absoluteY - t.absoluteY : e.x - t.x)), Q = C(() => {
570
- let e = [];
571
- return gn.value.forEach((t) => {
572
- let n = e.find((e) => Math.abs(e.x - t.x) <= 1);
573
- n ? n.nodes.push(t) : e.push({
574
- x: t.x,
575
- nodes: [t]
576
- });
577
- }), e.forEach((e) => {
578
- e.nodes.sort((e, t) => e.absoluteY - t.absoluteY);
579
- }), e.sort((e, t) => e.x - t.x);
580
- }), _n = C(() => {
581
- let e = /* @__PURE__ */ new Map();
582
- return gn.value.forEach((t, n) => {
583
- e.set(t.id, n);
584
- }), e;
585
- });
586
- function vn() {
587
- return Y.value;
588
- }
589
- function yn() {
590
- J.value.showTable = !J.value.showTable;
591
- }
592
- let bn = N(!1);
593
- function xn() {
594
- bn.value = !bn.value;
595
- }
596
- function Sn() {
597
- J.value.showTooltip = !J.value.showTooltip;
598
- }
599
- let Cn = C(() => {
600
- let e = new Set(Y.value.nodes.map((e) => U.value.nodeCategories[e.name] || "__uncategorized__"));
601
- return Array.from(e).map((e) => ({
602
- name: e,
603
- color: U.value.nodeCategoryColors[e] || i[0],
604
- shape: "square",
605
- count: Y.value.nodes.filter((t) => (U.value.nodeCategories[t.name] || "__uncategorized__") === e).length
606
- })).map((e, t) => {
607
- let n = $.value.includes(t);
608
- return {
609
- ...e,
610
- segregate: () => Tn({
611
- legend: e,
612
- i: t
613
- }),
614
- isSegregated: n,
615
- opacity: $.value.length ? n ? 1 : .5 : 1,
616
- display: `${e.name} (${e.count})`
617
- };
618
- });
619
- }), wn = C(() => Cn.value.filter((e) => e.name !== "__uncategorized__")), $ = N([]);
620
- function Tn({ legend: e, i: t }) {
621
- let n = e.name;
622
- if (X.value?.every((e) => U.value.nodeCategories[e] === n)) {
623
- X.value = null, Z.value = null, $.value = [];
624
- return;
625
- }
626
- $.value = [t], X.value = Y.value.nodes.filter((e) => U.value.nodeCategories[e.name] === n).map((e) => e.name), Z.value = null;
627
- }
628
- let En = C(() => ({
629
- cy: "flow-legend",
630
- backgroundColor: K.value.legend.backgroundColor,
631
- color: K.value.legend.color,
632
- fontSize: K.value.legend.fontSize,
633
- paddingBottom: K.value.legend.paddingBottom,
634
- fontWeight: K.value.legend.bold ? "bold" : "normal"
635
- }));
636
- async function Dn({ scale: e = 2 } = {}) {
637
- if (!B.value) return;
638
- let { width: t, height: n } = B.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ae({
639
- domElement: B.value,
640
- base64: !0,
641
- img: !0,
642
- scale: e
643
- });
644
- return {
645
- imageUri: i,
646
- base64: a,
647
- title: K.value.title.text,
648
- width: t,
649
- height: n,
650
- aspectRatio: r
651
- };
652
- }
653
- let On = C(() => {
654
- let e = U.value.table.useDialog && !U.value.table.show, t = J.value.showTable;
655
- return {
656
- component: e ? nt : Ze,
657
- title: `${K.value.title.text}${K.value.title.subtitle.text ? `: ${K.value.title.subtitle.text}` : ""}`,
658
- props: e ? {
659
- backgroundColor: U.value.table.th.backgroundColor,
660
- color: U.value.table.th.color,
661
- headerColor: U.value.table.th.color,
662
- headerBg: U.value.table.th.backgroundColor,
663
- isFullscreen: H.value,
664
- fullscreenParent: B.value,
665
- forcedWidth: Math.min(800, window.innerWidth * .8),
666
- isCursorPointer: Dt.value
667
- } : {
668
- hideDetails: !0,
669
- config: {
670
- open: t,
671
- maxHeight: 1e4,
672
- body: {
673
- backgroundColor: K.value.backgroundColor,
674
- color: K.value.color
675
- },
676
- head: {
677
- backgroundColor: K.value.backgroundColor,
678
- color: K.value.color
679
- }
680
- }
681
- }
682
- };
683
- });
684
- De(() => J.value.showTable, (e) => {
685
- U.value.table.show || (e && U.value.table.useDialog && _t.value ? _t.value.open() : "close" in _t.value && _t.value.close());
686
- });
687
- function kn() {
688
- J.value.showTable = !1, vt.value && vt.value.setTableIconState(!1);
689
- }
690
- let An = C(() => wn.value.map((e) => ({
691
- ...e,
692
- name: e.display
693
- }))), jn = C(() => K.value.backgroundColor), Mn = C(() => K.value.legend), Nn = C(() => K.value.title), { isCallbackImaging: Pn, isCallbackSvg: Fn, generateSvg: In, onGenerateImage: Ln } = ie({
694
- svg: q,
695
- title: Nn,
696
- legend: Mn,
697
- legendItems: An,
698
- backgroundColor: jn,
699
- getSvgCallback: () => U.value.userOptions.callbacks.svg,
700
- generateImage: Gt
701
- });
702
- async function Rn() {
703
- if (ot("copyAlt", {
704
- config: U.value,
705
- dataset: Y.value
706
- }), !U.value.userOptions.callbacks.altCopy) {
707
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
708
- return;
709
- }
710
- await Promise.resolve(U.value.userOptions.callbacks.altCopy({
711
- config: U.value,
712
- dataset: Y.value
713
- }));
714
- }
715
- function zn(e) {
716
- return Q.value.findIndex((t) => t.nodes.some((t) => t.id === e));
717
- }
718
- function Bn(e, t) {
719
- let n = Q.value[e];
720
- return n ? n.nodes.findIndex((e) => e.id === t) : -1;
721
- }
722
- function Vn(e, t) {
723
- let n = Q.value[e];
724
- if (!n || !n.nodes.length) return null;
725
- let r = n.nodes[0], i = Math.abs(r.centerY - t);
726
- for (let e = 1; e < n.nodes.length; e += 1) {
727
- let a = n.nodes[e], o = Math.abs(a.centerY - t);
728
- o < i && (r = a, i = o);
729
- }
730
- return r;
731
- }
732
- function Hn() {
733
- bt.value = null, V.value = null, Ct.value = !0;
734
- }
735
- function Un() {
736
- sn(), Ct.value = !1;
737
- }
738
- function Wn(e) {
739
- if (!q.value || bn.value || document.activeElement !== q.value || !gn.value.length) return;
740
- let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "ArrowUp", i = e.key === "ArrowDown", a = e.key === "Enter" || e.key === " ", o = e.key === "Escape";
741
- if (!t && !n && !r && !i && !a && !o) return;
742
- if (e.preventDefault(), e.stopPropagation(), o) {
743
- sn();
744
- return;
745
- }
746
- if (a) {
747
- if (bt.value === null) return;
748
- dn(bt.value);
749
- return;
750
- }
751
- if (V.value === null) {
752
- let e = Q.value[0]?.nodes?.[0];
753
- if (!e) return;
754
- let t = _n.value.get(e.id) ?? 0;
755
- ln(e, t, "keyboard", t);
756
- return;
757
- }
758
- let s = _n.value.get(V.value);
759
- if (s === void 0) return;
760
- let c = gn.value[s];
761
- if (!c) return;
762
- let l = zn(c.id);
763
- if (l < 0) return;
764
- let u = null;
765
- if (r || i) {
766
- let e = Bn(l, c.id);
767
- if (e < 0) return;
768
- let t = Q.value[l];
769
- if (!t?.nodes?.length) return;
770
- let n = e + (i ? 1 : -1);
771
- n < 0 && (n = t.nodes.length - 1), n >= t.nodes.length && (n = 0), u = t.nodes[n];
772
- }
773
- if (t || n) {
774
- let e = l + (n ? 1 : -1);
775
- e < 0 && (e = Q.value.length - 1), e >= Q.value.length && (e = 0), u = Vn(e, c.centerY);
776
- }
777
- if (!u) return;
778
- let d = _n.value.get(u.id);
779
- d !== void 0 && ln(u, d, "keyboard", d);
780
- }
781
- return se({
782
- getData: vn,
783
- getImage: Dn,
784
- generateCsv: pn,
785
- generateImage: Gt,
786
- generateSvg: In,
787
- generatePdf: Wt,
788
- toggleTable: yn,
789
- toggleAnnotator: xn,
790
- toggleTooltip: Sn,
791
- drillCategory: Tn,
792
- unselectNode: un,
793
- toggleFullscreen: Tt,
794
- copyAlt: Rn
795
- }), (e, n) => (M(), E("div", {
796
- ref_key: "flowChart",
797
- ref: B,
798
- class: Se(`vue-data-ui-component vue-ui-flow ${H.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
799
- style: j(`font-family:${U.value.style.fontFamily};width:100%; text-align:center;background:${K.value.backgroundColor}`),
800
- id: `flow_${z.value}`,
801
- onMouseenter: n[2] ||= () => I(Ft)(!0),
802
- onMouseleave: n[3] ||= () => {
803
- I(Ft)(!1), Ct.value || sn();
804
- }
805
- }, [
806
- D("div", {
807
- id: `chart-instructions-${z.value}`,
808
- class: "sr-only"
809
- }, [D("p", null, F(U.value.a11y.translations.keyboardNavigation), 1)], 8, Ae),
810
- hn.value?.rows?.length ? (M(), w(ue, {
811
- key: 0,
812
- uid: z.value,
813
- head: hn.value.headers,
814
- body: hn.value.rows,
815
- notice: U.value.a11y.translations.tableAvailable,
816
- caption: U.value.a11y.translations.tableCaption
817
- }, null, 8, [
818
- "uid",
819
- "head",
820
- "body",
821
- "notice",
822
- "caption"
823
- ])) : T("", !0),
824
- U.value.userOptions.buttons.annotator ? (M(), w(I($e), {
825
- key: 1,
826
- svgRef: I(q),
827
- backgroundColor: K.value.backgroundColor,
828
- color: K.value.color,
829
- active: bn.value,
830
- palette: U.value.userOptions.annotatorPalette,
831
- isCursorPointer: Dt.value,
832
- onClose: xn
833
- }, {
834
- "annotator-action-close": L(() => [P(e.$slots, "annotator-action-close", {}, void 0, !0)]),
835
- "annotator-action-color": L(({ color: t }) => [P(e.$slots, "annotator-action-color", A(k({ color: t })), void 0, !0)]),
836
- "annotator-action-draw": L(({ mode: t }) => [P(e.$slots, "annotator-action-draw", A(k({ mode: t })), void 0, !0)]),
837
- "annotator-action-undo": L(({ disabled: t }) => [P(e.$slots, "annotator-action-undo", A(k({ disabled: t })), void 0, !0)]),
838
- "annotator-action-redo": L(({ disabled: t }) => [P(e.$slots, "annotator-action-redo", A(k({ disabled: t })), void 0, !0)]),
839
- "annotator-action-delete": L(({ disabled: t }) => [P(e.$slots, "annotator-action-delete", A(k({ disabled: t })), void 0, !0)]),
840
- _: 3
841
- }, 8, [
842
- "svgRef",
843
- "backgroundColor",
844
- "color",
845
- "active",
846
- "palette",
847
- "isCursorPointer"
848
- ])) : T("", !0),
849
- Kt.value ? (M(), E("div", je, null, 512)) : T("", !0),
850
- K.value.title.text ? (M(), E("div", {
851
- key: 3,
852
- ref_key: "chartTitle",
853
- ref: ft,
854
- style: "width:100%;background:transparent;padding-bottom:24px"
855
- }, [(M(), w(oe, {
856
- key: `title_${ct.value}`,
857
- config: {
858
- title: {
859
- cy: "flow-title",
860
- ...K.value.title
861
- },
862
- subtitle: {
863
- cy: "flow-subtitle",
864
- ...K.value.title.subtitle
865
- }
866
- }
867
- }, null, 8, ["config"]))], 512)) : T("", !0),
868
- D("div", { id: `legend-top-${z.value}` }, null, 8, Me),
869
- U.value.userOptions.show && wt.value && (I(It) || I(Pt)) ? (M(), w(I(et), {
870
- ref_key: "userOptionsRef",
871
- ref: vt,
872
- key: `user_option_${st.value}`,
873
- backgroundColor: K.value.backgroundColor,
874
- color: K.value.color,
875
- isPrinting: I(Ht),
876
- isImaging: I(Ut),
877
- uid: z.value,
878
- hasPdf: U.value.userOptions.buttons.pdf,
879
- hasXls: U.value.userOptions.buttons.csv,
880
- hasImg: U.value.userOptions.buttons.img,
881
- hasSvg: U.value.userOptions.buttons.svg,
882
- hasTable: U.value.userOptions.buttons.table,
883
- callbacks: U.value.userOptions.callbacks,
884
- hasFullscreen: U.value.userOptions.buttons.fullscreen,
885
- hasAltCopy: U.value.userOptions.buttons.altCopy,
886
- isFullscreen: H.value,
887
- titles: { ...U.value.userOptions.buttonTitles },
888
- chartElement: B.value,
889
- position: U.value.userOptions.position,
890
- hasAnnotator: U.value.userOptions.buttons.annotator,
891
- printScale: U.value.userOptions.print.scale,
892
- isAnnotation: bn.value,
893
- hasTooltip: K.value.tooltip.show && U.value.userOptions.buttons.tooltip,
894
- isTooltip: J.value.showTooltip,
895
- tableDialog: U.value.table.useDialog,
896
- isCursorPointer: Dt.value,
897
- onToggleTooltip: Sn,
898
- onToggleFullscreen: Tt,
899
- onGeneratePdf: I(Wt),
900
- onGenerateCsv: pn,
901
- onGenerateImage: I(Ln),
902
- onGenerateSvg: I(In),
903
- onToggleTable: yn,
904
- onToggleAnnotator: xn,
905
- onCopyAlt: Rn,
906
- style: j({ visibility: I(It) ? I(Pt) ? "visible" : "hidden" : "visible" })
907
- }, _e({ _: 2 }, [
908
- e.$slots.menuIcon ? {
909
- name: "menuIcon",
910
- fn: L(({ isOpen: t, color: n }) => [P(e.$slots, "menuIcon", A(k({
911
- isOpen: t,
912
- color: n
913
- })), void 0, !0)]),
914
- key: "0"
915
- } : void 0,
916
- e.$slots.optionTooltip ? {
917
- name: "optionTooltip",
918
- fn: L(() => [P(e.$slots, "optionTooltip", {}, void 0, !0)]),
919
- key: "1"
920
- } : void 0,
921
- e.$slots.optionPdf ? {
922
- name: "optionPdf",
923
- fn: L(() => [P(e.$slots, "optionPdf", {}, void 0, !0)]),
924
- key: "2"
925
- } : void 0,
926
- e.$slots.optionCsv ? {
927
- name: "optionCsv",
928
- fn: L(() => [P(e.$slots, "optionCsv", {}, void 0, !0)]),
929
- key: "3"
930
- } : void 0,
931
- e.$slots.optionImg ? {
932
- name: "optionImg",
933
- fn: L(() => [P(e.$slots, "optionImg", {}, void 0, !0)]),
934
- key: "4"
935
- } : void 0,
936
- e.$slots.optionSvg ? {
937
- name: "optionSvg",
938
- fn: L(() => [P(e.$slots, "optionSvg", {}, void 0, !0)]),
939
- key: "5"
940
- } : void 0,
941
- e.$slots.optionTable ? {
942
- name: "optionTable",
943
- fn: L(() => [P(e.$slots, "optionTable", {}, void 0, !0)]),
944
- key: "6"
945
- } : void 0,
946
- e.$slots.optionFullscreen ? {
947
- name: "optionFullscreen",
948
- fn: L(({ toggleFullscreen: t, isFullscreen: n }) => [P(e.$slots, "optionFullscreen", A(k({
949
- toggleFullscreen: t,
950
- isFullscreen: n
951
- })), void 0, !0)]),
952
- key: "7"
953
- } : void 0,
954
- e.$slots.optionAnnotator ? {
955
- name: "optionAnnotator",
956
- fn: L(({ toggleAnnotator: t, isAnnotator: n }) => [P(e.$slots, "optionAnnotator", A(k({
957
- toggleAnnotator: t,
958
- isAnnotator: n
959
- })), void 0, !0)]),
960
- key: "8"
961
- } : void 0,
962
- e.$slots.optionAltCopy ? {
963
- name: "optionAltCopy",
964
- fn: L(({ altCopy: t }) => [P(e.$slots, "optionAltCopy", A(k({ altCopy: t })), void 0, !0)]),
965
- key: "9"
966
- } : void 0,
967
- e.$slots["custom-menu-before"] ? {
968
- name: "custom-menu-before",
969
- fn: L(() => [P(e.$slots, "custom-menu-before", {}, void 0, !0)]),
970
- key: "10"
971
- } : void 0,
972
- e.$slots["custom-menu-after"] ? {
973
- name: "custom-menu-after",
974
- fn: L(() => [P(e.$slots, "custom-menu-after", {}, void 0, !0)]),
975
- key: "11"
976
- } : void 0
977
- ]), 1032, /* @__PURE__ */ "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.onGenerateImage.onGenerateSvg.style".split("."))) : T("", !0),
978
- D("div", Ne, [(M(), E("svg", {
979
- ref_key: "svgRef",
980
- ref: q,
981
- xmlns: I(g),
982
- "aria-describedby": `chart-instructions-${z.value}`,
983
- viewBox: `0 0 ${tn.value.width} ${tn.value.height}`,
984
- class: Se({
985
- "vue-data-ui-fullscreen--on": H.value,
986
- "vue-data-ui-fulscreen--off": !H.value
987
- }),
988
- style: j({
989
- maxWidth: "100%",
990
- overflow: "visible",
991
- background: "transparent",
992
- color: K.value.color
993
- }),
994
- tabindex: "0",
995
- onFocus: Hn,
996
- onBlur: Un,
997
- onKeydown: Wn
998
- }, [
999
- ye(I(tt)),
1000
- e.$slots["chart-background"] ? (M(), E("foreignObject", {
1001
- key: 0,
1002
- x: 0,
1003
- y: 0,
1004
- width: tn.value.width,
1005
- height: tn.value.height,
1006
- style: { pointerEvents: "none" }
1007
- }, [P(e.$slots, "chart-background", {}, void 0, !0)], 8, Fe)) : T("", !0),
1008
- D("defs", null, [(M(!0), E(he, null, we(Y.value.links, (e, t) => (M(), E("linearGradient", {
1009
- id: e.id,
1010
- x1: "0%",
1011
- y1: "0%",
1012
- x2: "100%",
1013
- y2: "0%"
1014
- }, [D("stop", {
1015
- offset: "0%",
1016
- "stop-color": e.sourceColor
1017
- }, null, 8, Le), D("stop", {
1018
- offset: "100%",
1019
- "stop-color": e.targetColor
1020
- }, null, 8, Re)], 8, Ie))), 256))]),
1021
- (M(!0), E(he, null, we(Y.value.links, (e) => (M(), E("path", {
1022
- class: "vue-ui-flow-link",
1023
- d: e.path,
1024
- "stroke-linejoin": "round",
1025
- "stroke-miterlimit": "1",
1026
- fill: `url(#${e.id})`,
1027
- stroke: Et.value.stroke,
1028
- "stroke-width": Et.value.strokeWidth,
1029
- style: j(`
1030
- opacity:${X.value ? X.value.includes(e.source) && X.value.includes(e.target) ? 1 : .3 : Z.value ? [e.target, e.source].includes(Z.value) ? 1 : .3 : Et.value.opacity}
1031
- `)
1032
- }, null, 12, ze))), 256)),
1033
- (M(!0), E(he, null, we(Y.value.nodes, (e, n) => (M(), E("rect", {
1034
- "data-a11y-node-id": e.id,
1035
- class: "vue-ui-flow-node",
1036
- x: e.x,
1037
- y: I(c)(e.absoluteY) + K.value.padding.top,
1038
- height: I(c)(e.height),
1039
- width: Jt.value,
1040
- fill: e.color,
1041
- stroke: G.value.stroke,
1042
- "stroke-width": G.value.strokeWidth,
1043
- rx: G.value.borderRadius,
1044
- style: j({
1045
- opacity: X.value ? X.value.includes(e.name) ? 1 : .3 : 1,
1046
- outline: on.value !== null && on.value === e.id ? "2px solid currentColor" : void 0
1047
- }),
1048
- "aria-label": `${e.name}: ${I(d)(W.value.formatter, e.value, I(t)({
1049
- p: W.value.prefix,
1050
- v: e.value,
1051
- s: W.value.suffix,
1052
- r: W.value.rounding
1053
- }))}`,
1054
- onMouseenter: (t) => ln(e, n, "pointer", _n.value.get(e.id)),
1055
- onMouseleave: (e) => un(n),
1056
- onClick: (e) => dn(n)
1057
- }, null, 44, Be))), 256)),
1058
- W.value.show ? (M(), E("g", Ve, [(M(!0), E(he, null, we(Y.value.nodes, (e, t) => (M(), E("text", {
1059
- x: e.x + Jt.value / 2,
1060
- y: (W.value.showValue ? I(c)(e.absoluteY + e.height / 2 - W.value.fontSize / 4) : e.absoluteY + e.height / 2 + W.value.fontSize / 3) + K.value.padding.top,
1061
- "font-size": W.value.fontSize,
1062
- fill: I(h)(e.color),
1063
- "text-anchor": "middle",
1064
- style: j(`pointer-events: none; opacity:${X.value ? +!!X.value.includes(e.name) : 1}`)
1065
- }, F(W.value.abbreviation.use ? I(f)({
1066
- source: e.name,
1067
- length: G.value.labels.abbreviation.length
1068
- }) : e.name), 13, He))), 256)), W.value.showValue ? (M(!0), E(he, { key: 0 }, we(Y.value.nodes, (e, n) => (M(), E("text", {
1069
- x: e.x + Jt.value / 2,
1070
- y: I(c)(e.absoluteY + e.height / 2 + W.value.fontSize / 1.3) + K.value.padding.top,
1071
- "font-size": W.value.fontSize,
1072
- fill: I(h)(e.color),
1073
- "text-anchor": "middle",
1074
- style: j(`pointer-events: none; opacity:${X.value ? +!!X.value.includes(e.name) : 1}`)
1075
- }, F(I(d)(W.value.formatter, e.value, I(t)({
1076
- p: W.value.prefix,
1077
- v: e.value,
1078
- s: W.value.suffix,
1079
- r: W.value.rounding
1080
- }), {
1081
- datapoint: e,
1082
- seriesIndex: n
1083
- })), 13, Ue))), 256)) : T("", !0)])) : T("", !0),
1084
- P(e.$slots, "svg", { svg: {
1085
- ...tn.value,
1086
- isPrintingImg: I(Ht) || I(Ut) || I(Pn),
1087
- isPrintingSvg: I(Fn)
1088
- } }, void 0, !0)
1089
- ], 46, Pe)), e.$slots.hint ? (M(), E("div", We, [P(e.$slots, "hint", A(k({
1090
- hint: U.value.a11y.translations.keyboardNavigation,
1091
- isVisible: Ct.value
1092
- })), void 0, !0)])) : T("", !0)]),
1093
- e.$slots.watermark ? (M(), E("div", Ge, [P(e.$slots, "watermark", A(k({ isPrinting: I(Ht) || I(Ut) || I(Pn) || I(Fn) })), void 0, !0)])) : T("", !0),
1094
- D("div", { id: `legend-bottom-${z.value}` }, null, 8, Ke),
1095
- gt.value && (K.value.legend.show || e.$slots.legend) ? (M(), w(ge, {
1096
- key: 6,
1097
- to: K.value.legend.position === "top" ? `#legend-top-${z.value}` : `#legend-bottom-${z.value}`
1098
- }, [D("div", {
1099
- ref_key: "chartLegend",
1100
- ref: dt
1101
- }, [P(e.$slots, "legend", { legend: Cn.value }, () => [K.value.legend.show && wn.value.length ? (M(), w(pe, {
1102
- key: 0,
1103
- legendSet: wn.value,
1104
- config: En.value,
1105
- isCursorPointer: Dt.value,
1106
- onClickMarker: n[0] ||= (e) => Tn(e)
1107
- }, {
1108
- item: L(({ legend: e, index: t }) => [I(kt) ? T("", !0) : (M(), E("div", {
1109
- key: 0,
1110
- onClick: (t) => e.segregate(),
1111
- style: j(`opacity:${$.value.length ? $.value.includes(t) ? 1 : .5 : 1}`)
1112
- }, F(e.display), 13, qe))]),
1113
- _: 1
1114
- }, 8, [
1115
- "legendSet",
1116
- "config",
1117
- "isCursorPointer"
1118
- ])) : T("", !0)], !0)], 512)], 8, ["to"])) : T("", !0),
1119
- e.$slots.source ? (M(), E("div", {
1120
- key: 7,
1121
- ref_key: "source",
1122
- ref: pt,
1123
- dir: "auto"
1124
- }, [P(e.$slots, "source", {}, void 0, !0)], 512)) : T("", !0),
1125
- ye(I(Ye), {
1126
- ref_key: "tooltip",
1127
- ref: yt,
1128
- teleportTo: K.value.tooltip.teleportTo,
1129
- show: J.value.showTooltip && lt.value,
1130
- backgroundColor: K.value.tooltip.backgroundColor,
1131
- color: K.value.tooltip.color,
1132
- fontSize: K.value.tooltip.fontSize,
1133
- borderRadius: K.value.tooltip.borderRadius,
1134
- borderColor: K.value.tooltip.borderColor,
1135
- borderWidth: K.value.tooltip.borderWidth,
1136
- backgroundOpacity: K.value.tooltip.backgroundOpacity,
1137
- position: K.value.tooltip.position,
1138
- offsetX: K.value.tooltip.offsetX,
1139
- offsetY: K.value.tooltip.offsetY,
1140
- parent: B.value,
1141
- content: ut.value,
1142
- isCustom: an.value,
1143
- isFullscreen: H.value,
1144
- smooth: K.value.tooltip.smooth,
1145
- backdropFilter: K.value.tooltip.backdropFilter,
1146
- smoothForce: K.value.tooltip.smoothForce,
1147
- smoothSnapThreshold: K.value.tooltip.smoothSnapThreshold,
1148
- isA11yMode: St.value === "keyboard",
1149
- a11yPosition: xt.value
1150
- }, {
1151
- "tooltip-before": L(() => [P(e.$slots, "tooltip-before", A(k({ ...rn.value })), void 0, !0)]),
1152
- tooltip: L(() => [P(e.$slots, "tooltip", A(k({ ...rn.value })), void 0, !0)]),
1153
- "tooltip-after": L(() => [P(e.$slots, "tooltip-after", A(k({ ...rn.value })), void 0, !0)]),
1154
- _: 3
1155
- }, 8, [
1156
- "teleportTo",
1157
- "show",
1158
- "backgroundColor",
1159
- "color",
1160
- "fontSize",
1161
- "borderRadius",
1162
- "borderColor",
1163
- "borderWidth",
1164
- "backgroundOpacity",
1165
- "position",
1166
- "offsetX",
1167
- "offsetY",
1168
- "parent",
1169
- "content",
1170
- "isCustom",
1171
- "isFullscreen",
1172
- "smooth",
1173
- "backdropFilter",
1174
- "smoothForce",
1175
- "smoothSnapThreshold",
1176
- "isA11yMode",
1177
- "a11yPosition"
1178
- ]),
1179
- wt.value && U.value.userOptions.buttons.table ? (M(), w(Te(On.value.component), be({ key: 8 }, On.value.props, {
1180
- ref_key: "tableUnit",
1181
- ref: _t,
1182
- onClose: kn
1183
- }), _e({
1184
- content: L(() => [ye(I(Qe), {
1185
- colNames: mn.value.colNames,
1186
- head: mn.value.head,
1187
- body: mn.value.body,
1188
- config: mn.value.config,
1189
- title: U.value.table.useDialog ? "" : On.value.title,
1190
- withCloseButton: !U.value.table.useDialog,
1191
- isCursorPointer: Dt.value,
1192
- onClose: kn
1193
- }, {
1194
- th: L(({ th: e }) => [D("div", Je, F(e), 1)]),
1195
- td: L(({ td: e }) => [ve(F(e.name || e), 1)]),
1196
- _: 1
1197
- }, 8, [
1198
- "colNames",
1199
- "head",
1200
- "body",
1201
- "config",
1202
- "title",
1203
- "withCloseButton",
1204
- "isCursorPointer"
1205
- ])]),
1206
- _: 2
1207
- }, [U.value.table.useDialog ? {
1208
- name: "title",
1209
- fn: L(() => [ve(F(On.value.title), 1)]),
1210
- key: "0"
1211
- } : void 0, U.value.table.useDialog ? {
1212
- name: "actions",
1213
- fn: L(() => [D("button", {
1214
- tabindex: "0",
1215
- class: "vue-ui-user-options-button",
1216
- onClick: n[1] ||= (e) => pn(U.value.userOptions.callbacks.csv),
1217
- style: j({ cursor: Dt.value ? "pointer" : "default" })
1218
- }, [ye(I(Xe), {
1219
- name: "fileCsv",
1220
- stroke: On.value.props.color
1221
- }, null, 8, ["stroke"])], 4)]),
1222
- key: "1"
1223
- } : void 0]), 1040)) : T("", !0),
1224
- P(e.$slots, "skeleton", {}, () => [I(kt) ? (M(), w(te, { key: 0 })) : T("", !0)], !0)
1225
- ], 46, ke));
1226
- }
1227
- }, [["__scopeId", "data-v-040cb62f"]]);
1228
- //#endregion
1229
- export { Oe as n, Ye as t };