vue-data-ui 3.15.12 → 3.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (218) hide show
  1. package/README.md +132 -59
  2. package/dist/A11yDataTable-KcVAX2cP.js +54 -0
  3. package/dist/{Arrow-DlPyR6HQ.js → Arrow-Bn-9n3bm.js} +1 -1
  4. package/dist/{BaseDraggableDialog-DSpKTn3R.js → BaseDraggableDialog-CIb-iD9g.js} +2 -2
  5. package/dist/{BaseIcon-CNx8Tzl5.js → BaseIcon-Cb3zzG6s.js} +1 -1
  6. package/dist/{BaseLegendToggle-Y61xahI4.js → BaseLegendToggle-BQVIawmA.js} +1 -1
  7. package/dist/{BaseZoomControls-CoFievy9.js → BaseZoomControls-DievbOeJ.js} +2 -2
  8. package/dist/ColorPicker-B0mV4xzu.js +255 -0
  9. package/dist/{DataTable-Bo1pmAqG.js → DataTable-DT2kIdQ6.js} +2 -2
  10. package/dist/Legend-CS7Xo5LK.js +101 -0
  11. package/dist/{NonSvgPenAndPaper-CGk_xThe.js → NonSvgPenAndPaper-VyJFyJ6X.js} +3 -3
  12. package/dist/{PackageVersion-DN9d0ME5.js → PackageVersion-DPO-OOVI.js} +1 -1
  13. package/dist/{PenAndPaper-DWV1FMIi.js → PenAndPaper-Ct3qJ4lA.js} +109 -101
  14. package/dist/{Shape-CSyWYgXc.js → Shape-BKRUOeKk.js} +1 -1
  15. package/dist/{Slicer-DZJA9IG-.js → Slicer-DUycDH_N.js} +2 -2
  16. package/dist/{SlicerPreview-I2J0UUF_.js → SlicerPreview-DTjwV0iY.js} +2 -2
  17. package/dist/{SparkTooltip-BiseJed3.js → SparkTooltip-BorBpltj.js} +1 -1
  18. package/dist/{Title-BfyrP-jp.js → Title-BeMKE1cj.js} +1 -1
  19. package/dist/{Tooltip-DL3QgjZf.js → Tooltip-Bf-kM3_A.js} +86 -68
  20. package/dist/{UserOptions-CrLqEimB.js → UserOptions-rW2fRf3V.js} +228 -222
  21. package/dist/components/arrow.js +1 -1
  22. package/dist/components/vue-ui-3d-bar.js +1 -1
  23. package/dist/components/vue-ui-accordion.js +1 -1
  24. package/dist/components/vue-ui-age-pyramid.js +1 -1
  25. package/dist/components/vue-ui-annotator.js +1 -1
  26. package/dist/components/vue-ui-bullet.js +1 -1
  27. package/dist/components/vue-ui-bump.js +1 -1
  28. package/dist/components/vue-ui-candlestick.js +1 -1
  29. package/dist/components/vue-ui-carousel-table.js +1 -1
  30. package/dist/components/vue-ui-chestnut.js +1 -1
  31. package/dist/components/vue-ui-chord.js +1 -1
  32. package/dist/components/vue-ui-circle-pack.js +1 -1
  33. package/dist/components/vue-ui-cursor.js +1 -1
  34. package/dist/components/vue-ui-dag.js +1 -1
  35. package/dist/components/vue-ui-dashboard.js +1 -1
  36. package/dist/components/vue-ui-digits.js +1 -1
  37. package/dist/components/vue-ui-donut-evolution.js +1 -1
  38. package/dist/components/vue-ui-donut.js +1 -1
  39. package/dist/components/vue-ui-dumbbell.js +1 -1
  40. package/dist/components/vue-ui-flow.js +1 -1
  41. package/dist/components/vue-ui-funnel.js +1 -1
  42. package/dist/components/vue-ui-galaxy.js +1 -1
  43. package/dist/components/vue-ui-gauge.js +1 -1
  44. package/dist/components/vue-ui-geo.js +1 -1
  45. package/dist/components/vue-ui-gizmo.js +1 -1
  46. package/dist/components/vue-ui-heatmap.js +1 -1
  47. package/dist/components/vue-ui-history-plot.js +1 -1
  48. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  49. package/dist/components/vue-ui-icon.js +1 -1
  50. package/dist/components/vue-ui-kpi.js +1 -1
  51. package/dist/components/vue-ui-mini-loader.js +1 -1
  52. package/dist/components/vue-ui-molecule.js +1 -1
  53. package/dist/components/vue-ui-mood-radar.js +1 -1
  54. package/dist/components/vue-ui-nested-donuts.js +1 -1
  55. package/dist/components/vue-ui-onion.js +1 -1
  56. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  57. package/dist/components/vue-ui-quadrant.js +1 -1
  58. package/dist/components/vue-ui-quick-chart.js +1 -1
  59. package/dist/components/vue-ui-radar.js +1 -1
  60. package/dist/components/vue-ui-rating.js +1 -1
  61. package/dist/components/vue-ui-relation-circle.js +1 -1
  62. package/dist/components/vue-ui-ridgeline.js +1 -1
  63. package/dist/components/vue-ui-rings.js +1 -1
  64. package/dist/components/vue-ui-scatter.js +1 -1
  65. package/dist/components/vue-ui-skeleton.js +1 -1
  66. package/dist/components/vue-ui-smiley.js +1 -1
  67. package/dist/components/vue-ui-spark-trend.js +1 -1
  68. package/dist/components/vue-ui-sparkbar.js +1 -1
  69. package/dist/components/vue-ui-sparkgauge.js +1 -1
  70. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  71. package/dist/components/vue-ui-sparkline.js +1 -1
  72. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  73. package/dist/components/vue-ui-stackbar.js +1 -1
  74. package/dist/components/vue-ui-stackline.js +1 -1
  75. package/dist/components/vue-ui-strip-plot.js +1 -1
  76. package/dist/components/vue-ui-table-heatmap.js +1 -1
  77. package/dist/components/vue-ui-table-sparkline.js +1 -1
  78. package/dist/components/vue-ui-table.js +1 -1
  79. package/dist/components/vue-ui-thermometer.js +1 -1
  80. package/dist/components/vue-ui-timer.js +1 -1
  81. package/dist/components/vue-ui-tiremarks.js +1 -1
  82. package/dist/components/vue-ui-treemap.js +1 -1
  83. package/dist/components/vue-ui-vertical-bar.js +1 -1
  84. package/dist/components/vue-ui-waffle.js +1 -1
  85. package/dist/components/vue-ui-wheel.js +1 -1
  86. package/dist/components/vue-ui-word-cloud.js +1 -1
  87. package/dist/components/vue-ui-world.js +1 -1
  88. package/dist/components/vue-ui-xy-canvas.js +1 -1
  89. package/dist/components/vue-ui-xy.js +1 -1
  90. package/dist/{dom-to-png-BAqzNjb1.js → dom-to-png-CtxhhdWb.js} +1 -1
  91. package/dist/{exposedLib-H4lmBl1t.js → exposedLib-DlqmhBx3.js} +1 -1
  92. package/dist/{img-BYYzY_QU.js → img-LXxMLmCg.js} +1 -1
  93. package/dist/{labelUtils-CTXUc3V9.js → labelUtils-CqTHa20R.js} +1 -1
  94. package/dist/{lib-GwPnJSrY.js → lib-DBptbyyI.js} +106 -84
  95. package/dist/{pdf-z-YiJeJQ.js → pdf-B4tTdfvl.js} +1 -1
  96. package/dist/style.css +1 -1
  97. package/dist/types/vue-data-ui.d.ts +59 -0
  98. package/dist/{useAutoSizeLabelsInsideViewbox-80fzdfxt.js → useAutoSizeLabelsInsideViewbox-DX7LdvFX.js} +1 -1
  99. package/dist/{useConfig-CIgyKZ6R.js → useConfig-DO94Aj5s.js} +953 -700
  100. package/dist/{useNestedProp-BBT0mbHh.js → useNestedProp-Bf5XFbs8.js} +1 -1
  101. package/dist/{useObjectBindings-BlXBVtRa.js → useObjectBindings-DQ8g8Jwi.js} +1 -1
  102. package/dist/usePrefersMotion-CUKm8_t8.js +15 -0
  103. package/dist/{usePrinter-DiK5R6k-.js → usePrinter-CEpYU3r5.js} +2 -2
  104. package/dist/utils.js +3 -3
  105. package/dist/{vue-data-ui-C2kPofmi.js → vue-data-ui-DXGkXRnC.js} +68 -68
  106. package/dist/vue-data-ui.js +72 -72
  107. package/dist/vue-ui-3d-bar-BaFpQnd5.js +1597 -0
  108. package/dist/{vue-ui-accordion-BGHTqIBt.js → vue-ui-accordion-nvggWcGN.js} +4 -4
  109. package/dist/vue-ui-age-pyramid-CRM498Pc.js +1069 -0
  110. package/dist/{vue-ui-annotator-B1GWVtPp.js → vue-ui-annotator-CkPi9moo.js} +7 -7
  111. package/dist/{vue-ui-bullet-DPoGGtaG.js → vue-ui-bullet-BBiwof3c.js} +158 -150
  112. package/dist/vue-ui-bump-Brxpu4xV.js +1147 -0
  113. package/dist/vue-ui-candlestick-DAnZv77-.js +1587 -0
  114. package/dist/{vue-ui-carousel-table-CmiHTJ8E.js → vue-ui-carousel-table-BHRZBYY0.js} +168 -160
  115. package/dist/vue-ui-chestnut-CbrYnRgm.js +1812 -0
  116. package/dist/vue-ui-chord-CaX_IUVs.js +1326 -0
  117. package/dist/vue-ui-circle-pack-CR3h53sc.js +988 -0
  118. package/dist/{vue-ui-cursor-B4mHR7QC.js → vue-ui-cursor-Cjfazw7Z.js} +4 -4
  119. package/dist/vue-ui-dag-B9vH3c66.js +3047 -0
  120. package/dist/{vue-ui-dashboard-Bo5FX73U.js → vue-ui-dashboard-DWll05qs.js} +70 -70
  121. package/dist/{vue-ui-digits-mpo2IcM5.js → vue-ui-digits-DcM67rMx.js} +76 -66
  122. package/dist/vue-ui-donut-Be5G38P5.js +2229 -0
  123. package/dist/vue-ui-donut-evolution-BLSesj3c.js +1358 -0
  124. package/dist/vue-ui-dumbbell-DIMiCY4r.js +1380 -0
  125. package/dist/vue-ui-flow-zvZylhgr.js +1202 -0
  126. package/dist/{vue-ui-funnel-BRkaEkBb.js → vue-ui-funnel-CSri-oWm.js} +7 -7
  127. package/dist/vue-ui-galaxy-CGykxsAI.js +1012 -0
  128. package/dist/{vue-ui-gauge-J2VYHsQe.js → vue-ui-gauge-D1MNB9Jq.js} +8 -8
  129. package/dist/vue-ui-geo-DdJDGhG2.js +1437 -0
  130. package/dist/{vue-ui-gizmo-DEec3-v9.js → vue-ui-gizmo-BZYRHGFm.js} +77 -68
  131. package/dist/vue-ui-heatmap-CryOx6XK.js +1500 -0
  132. package/dist/vue-ui-history-plot-C85iw9Kl.js +1449 -0
  133. package/dist/vue-ui-horizontal-bar-BoBZOybC.js +1637 -0
  134. package/dist/vue-ui-kpi-DHrolXw6.js +109 -0
  135. package/dist/{vue-ui-mini-loader-CoOHvZUk.js → vue-ui-mini-loader-Bc3fEQ9j.js} +3 -3
  136. package/dist/{vue-ui-molecule-Chq1qWDK.js → vue-ui-molecule-DJ_BQ4DK.js} +6 -6
  137. package/dist/vue-ui-mood-radar-CBE02TpQ.js +1086 -0
  138. package/dist/vue-ui-nested-donuts-YTFtb4CL.js +1595 -0
  139. package/dist/vue-ui-onion-B9l81-PS.js +1124 -0
  140. package/dist/vue-ui-parallel-coordinate-plot-C1e_rs8J.js +1252 -0
  141. package/dist/vue-ui-quadrant-C1qsLCRn.js +1759 -0
  142. package/dist/vue-ui-quick-chart-DFoz3WiA.js +2216 -0
  143. package/dist/vue-ui-radar-Cmo3p-UA.js +1139 -0
  144. package/dist/{vue-ui-rating-zV58MDQh.js → vue-ui-rating-BAHhYt_A.js} +3 -3
  145. package/dist/vue-ui-relation-circle-BqwznVwf.js +782 -0
  146. package/dist/vue-ui-ridgeline-CDk9eXJq.js +1473 -0
  147. package/dist/vue-ui-rings-BRkGoQdL.js +1156 -0
  148. package/dist/vue-ui-scatter-BxDtWASQ.js +1831 -0
  149. package/dist/{vue-ui-skeleton-CbqNz9IE.js → vue-ui-skeleton-D6kTb9aO.js} +4 -4
  150. package/dist/{vue-ui-smiley-BK5EKp9u.js → vue-ui-smiley-CzVaLlpB.js} +3 -3
  151. package/dist/vue-ui-spark-trend-D8Mf2A1w.js +378 -0
  152. package/dist/{vue-ui-sparkbar-DUDWvTo-.js → vue-ui-sparkbar-BbYj56c3.js} +86 -84
  153. package/dist/vue-ui-sparkgauge-DXzOSLRb.js +256 -0
  154. package/dist/vue-ui-sparkhistogram-DMfSx1iH.js +474 -0
  155. package/dist/vue-ui-sparkline-D-rQ9PsC.js +1327 -0
  156. package/dist/vue-ui-sparkstackbar-DK5n8IKP.js +621 -0
  157. package/dist/vue-ui-stackbar-BHthy6jf.js +2070 -0
  158. package/dist/vue-ui-stackline-C6-WNpKD.js +2164 -0
  159. package/dist/vue-ui-strip-plot-CHu-1ilI.js +1183 -0
  160. package/dist/{vue-ui-table-BHuXI4Eq.js → vue-ui-table-DW9JGsLq.js} +6 -6
  161. package/dist/{vue-ui-table-heatmap-y88sBfu3.js → vue-ui-table-heatmap-LYqoBit9.js} +6 -6
  162. package/dist/{vue-ui-table-sparkline-ClpLLKi2.js → vue-ui-table-sparkline-CXK1dFr-.js} +5 -5
  163. package/dist/{vue-ui-thermometer-sjruUGQx.js → vue-ui-thermometer-BN8tflOz.js} +272 -256
  164. package/dist/{vue-ui-timer-CgdgMKIc.js → vue-ui-timer-DGT0UBOF.js} +6 -6
  165. package/dist/{vue-ui-tiremarks-UBDpAIVr.js → vue-ui-tiremarks-BZ-osQqY.js} +204 -191
  166. package/dist/vue-ui-treemap-98KaVRyd.js +1723 -0
  167. package/dist/vue-ui-waffle-Cb7oJnIc.js +1321 -0
  168. package/dist/vue-ui-wheel-sfew1fjw.js +738 -0
  169. package/dist/vue-ui-word-cloud-vq1t9JHr.js +1548 -0
  170. package/dist/{vue-ui-world-D-3wgoTn.js → vue-ui-world-CN0f6elD.js} +8 -8
  171. package/dist/vue-ui-xy-BdzEiImZ.js +3877 -0
  172. package/dist/vue-ui-xy-canvas-CWQzUQzY.js +1810 -0
  173. package/package.json +2 -2
  174. package/dist/ColorPicker-j0ySewhI.js +0 -244
  175. package/dist/Legend-1LMMsPxL.js +0 -90
  176. package/dist/vue-ui-3d-bar-BhNgFaJA.js +0 -1484
  177. package/dist/vue-ui-age-pyramid-CuYRf5v-.js +0 -997
  178. package/dist/vue-ui-bump-C_fKharc.js +0 -1059
  179. package/dist/vue-ui-candlestick-BY-_E7eZ.js +0 -1487
  180. package/dist/vue-ui-chestnut-C-bQYaNI.js +0 -1557
  181. package/dist/vue-ui-chord-uQYQgyGM.js +0 -1220
  182. package/dist/vue-ui-circle-pack-CdbDcuDw.js +0 -907
  183. package/dist/vue-ui-dag-DsHUvjvm.js +0 -2885
  184. package/dist/vue-ui-donut-CzCgCVsx.js +0 -2139
  185. package/dist/vue-ui-donut-evolution-C_ck_TOR.js +0 -1297
  186. package/dist/vue-ui-dumbbell-CVSA90b2.js +0 -1293
  187. package/dist/vue-ui-flow-CsbSaFnu.js +0 -1075
  188. package/dist/vue-ui-galaxy-DWKHDciu.js +0 -914
  189. package/dist/vue-ui-geo-DykhEWVq.js +0 -1331
  190. package/dist/vue-ui-heatmap-BEDirv8T.js +0 -1334
  191. package/dist/vue-ui-history-plot-Bs96PebH.js +0 -1292
  192. package/dist/vue-ui-horizontal-bar-ClQcB9nL.js +0 -1522
  193. package/dist/vue-ui-kpi-DlUEHKuw.js +0 -101
  194. package/dist/vue-ui-mood-radar-A2LBLgUi.js +0 -967
  195. package/dist/vue-ui-nested-donuts-DFX251aT.js +0 -1513
  196. package/dist/vue-ui-onion-CW0YO9Ro.js +0 -1045
  197. package/dist/vue-ui-parallel-coordinate-plot-UFg10bHP.js +0 -1134
  198. package/dist/vue-ui-quadrant-C1pLW2zA.js +0 -1647
  199. package/dist/vue-ui-quick-chart-FaxttnJY.js +0 -2030
  200. package/dist/vue-ui-radar-DE70LPBZ.js +0 -1067
  201. package/dist/vue-ui-relation-circle-iuRXIyRU.js +0 -704
  202. package/dist/vue-ui-ridgeline-CwvDh5pG.js +0 -1385
  203. package/dist/vue-ui-rings-80ZUki42.js +0 -1083
  204. package/dist/vue-ui-scatter-FdAAYJOK.js +0 -1670
  205. package/dist/vue-ui-spark-trend-C68p8-Xp.js +0 -349
  206. package/dist/vue-ui-sparkgauge-DdRtHQDe.js +0 -245
  207. package/dist/vue-ui-sparkhistogram-C9DvzQae.js +0 -396
  208. package/dist/vue-ui-sparkline-B2RDrdiR.js +0 -1273
  209. package/dist/vue-ui-sparkstackbar-BsIOHUE5.js +0 -475
  210. package/dist/vue-ui-stackbar-BZl0kEkb.js +0 -2001
  211. package/dist/vue-ui-stackline-2VKxwFei.js +0 -2099
  212. package/dist/vue-ui-strip-plot-B9nBSRyY.js +0 -1080
  213. package/dist/vue-ui-treemap-BS5EilZf.js +0 -1645
  214. package/dist/vue-ui-waffle-CbX5K9Q2.js +0 -1211
  215. package/dist/vue-ui-wheel-BIJ09H5D.js +0 -723
  216. package/dist/vue-ui-word-cloud-DJmJ-oYT.js +0 -1466
  217. package/dist/vue-ui-xy-canvas-4auyhlTr.js +0 -1717
  218. package/dist/vue-ui-xy-f67V1xjd.js +0 -3713
@@ -0,0 +1,1202 @@
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 he, createBlock as oe, createCommentVNode as w, withCtx as h, renderSlot as v, normalizeProps as E, guardReactiveProps as _, 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 S, s as ll, l as pe, X as al, k as We, W as no, a as nl, a0 as sl, a1 as rl, T as ul } from "./lib-DBptbyyI.js";
3
+ import { t as il, u as cl } from "./useResponsive-DfdjqQps.js";
4
+ import { u as dl } from "./useConfig-DO94Aj5s.js";
5
+ import { u as vl } from "./usePrinter-CEpYU3r5.js";
6
+ import { u as fl, B as hl } from "./BaseScanner-BhhkKVoj.js";
7
+ import { u as pl } from "./useSvgExport-ByUukOZt.js";
8
+ import { u as vt } from "./useNestedProp-Bf5XFbs8.js";
9
+ import { u as gl } from "./useThemeCheck-D1ZYXUwG.js";
10
+ import { u as yl } from "./useUserOptionState-BIvW1Kz7.js";
11
+ import { u as ml } from "./useChartAccessibility-9icAAmYg.js";
12
+ import bl from "./img-LXxMLmCg.js";
13
+ import Cl from "./Title-BeMKE1cj.js";
14
+ import kl from "./vue_ui_flow-BErINgox.js";
15
+ import wl from "./Legend-CS7Xo5LK.js";
16
+ import { A as $l } from "./A11yDataTable-KcVAX2cP.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"], _l = ["stop-color"], Fl = ["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-Bf-kM3_A.js")), co = te(() => import("./BaseIcon-Cb3zzG6s.js")), vo = te(() => import("./vue-ui-accordion-nvggWcGN.js")), fo = te(() => import("./DataTable-DT2kIdQ6.js")), ho = te(() => import("./PenAndPaper-Ct3qJ4lA.js")), po = te(() => import("./UserOptions-rW2fRf3V.js")), go = te(() => import("./PackageVersion-DPO-OOVI.js")), yo = te(() => import("./BaseDraggableDialog-CIb-iD9g.js")), { vue_ui_flow: mo } = dl(), { isThemeValid: bo, warnInvalidTheme: Co } = gl(), P = 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), ge = r(null), Oe = r(null), mt = r(!1), ye = r(null), Ge = r(null), wo = r(null), Ee = r(!1), _e = r(!1), me = r(null), de = r(null), bt = r({ x: 0, y: 0 }), je = r("pointer"), Fe = r(!1), Ct = i(() => !!P.dataset && P.dataset.length);
50
+ Xo(() => {
51
+ mt.value = !0, wt();
52
+ });
53
+ const le = r(!1);
54
+ function kt(t) {
55
+ le.value = t, ft.value += 1;
56
+ }
57
+ const e = r(Ze()), ve = i(() => e.value.userOptions.useCursorPointer), $o = i(() => lo({
58
+ defaultConfig: {
59
+ userOptions: { show: !1 },
60
+ nodeCategories: {
61
+ B: "A",
62
+ C: "B"
63
+ },
64
+ nodeCategoryColors: {
65
+ A: "#CACACA",
66
+ B: "#AAAAAA"
67
+ },
68
+ table: { show: !1 },
69
+ style: {
70
+ chart: {
71
+ backgroundColor: "#99999930",
72
+ legend: {
73
+ backgroundColor: "transparent"
74
+ },
75
+ nodes: {
76
+ labels: {
77
+ show: !1
78
+ },
79
+ stroke: "#666666"
80
+ },
81
+ links: {
82
+ stroke: "#666666"
83
+ }
84
+ }
85
+ }
86
+ },
87
+ userConfig: e.value.skeletonConfig ?? {}
88
+ })), { loading: Ke, FINAL_DATASET: Me, manualLoading: Xe } = fl({
89
+ ...qo(P),
90
+ FINAL_CONFIG: e,
91
+ prepareConfig: Ze,
92
+ skeletonDataset: P.config?.skeletonDataset ?? [
93
+ ["A", "B", 2, "#CACACA"],
94
+ ["B", "C", 1, "#CACACA"],
95
+ ["C", "D", 0.5, "#CACACA"],
96
+ ["E", "F", 1, "#AAAAAA"],
97
+ ["F", "G", 0.5, "#AAAAAA"],
98
+ ["G", "H", 0.25, "#AAAAAA"]
99
+ ],
100
+ skeletonConfig: lo({
101
+ defaultConfig: e.value,
102
+ userConfig: $o.value
103
+ })
104
+ }), Ao = i(() => !!e.value.debug);
105
+ function wt() {
106
+ if (ao(P.dataset) && (el({
107
+ componentName: "VueUiFlow",
108
+ type: "dataset",
109
+ debug: Ao.value
110
+ }), Xe.value = !0), ao(P.dataset) || (Xe.value = e.value.loading), e.value.responsive) {
111
+ const t = il(() => {
112
+ const { width: l, height: o } = cl({
113
+ chart: V.value,
114
+ title: e.value.style.chart.title.text ? gt.value : null,
115
+ legend: e.value.style.chart.legend.show ? pt.value : null,
116
+ source: yt.value
117
+ });
118
+ requestAnimationFrame(() => {
119
+ xt.value = l, Tt.value = o;
120
+ });
121
+ });
122
+ ge.value && (Oe.value && ge.value.unobserve(Oe.value), ge.value.disconnect()), ge.value = new ResizeObserver(t), Oe.value = V.value.parentNode, ge.value.observe(Oe.value);
123
+ }
124
+ }
125
+ const { userOptionsVisible: qe, setUserOptionsVisibility: $t, keepUserOptionState: At } = yl({ config: e.value }), { svgRef: ae } = ml({
126
+ config: e.value.style.chart.title
127
+ });
128
+ function Ze() {
129
+ const t = vt({
130
+ userConfig: P.config,
131
+ defaultConfig: mo
132
+ });
133
+ let l = t;
134
+ const o = t.theme;
135
+ if (o)
136
+ if (!bo.value(t))
137
+ Co(t), l = t;
138
+ else {
139
+ const a = vt({
140
+ userConfig: kl[o] || P.config,
141
+ defaultConfig: t
142
+ });
143
+ l = {
144
+ ...vt({
145
+ userConfig: P.config,
146
+ defaultConfig: a
147
+ }),
148
+ customPalette: t.customPalette.length ? t.customPalette : tl[o] || q
149
+ };
150
+ }
151
+ else
152
+ l = t;
153
+ return l.nodeCategories = P.config.nodeCategories || {}, l.nodeCategoryColors = P.config.nodeCategoryColors || {}, l;
154
+ }
155
+ const xt = r(e.value.style.chart.width), Tt = r(e.value.style.chart.height);
156
+ Re(
157
+ () => P.config,
158
+ (t) => {
159
+ Ke.value || (e.value = Ze()), qe.value = !e.value.userOptions.showOnChartHover, wt(), ht.value += 1, Y.value.showTable = e.value.table.show;
160
+ },
161
+ { deep: !0 }
162
+ ), Re(() => P.dataset, (t) => {
163
+ Array.isArray(t) && t.length > 0 && (Xe.value = !1);
164
+ }, { deep: !0 });
165
+ const { isPrinting: Je, isImaging: Qe, generatePdf: St, generateImage: Pt } = vl({
166
+ elementId: `flow_${U.value}`,
167
+ fileName: e.value.style.chart.title.text || "vue-ui-flow",
168
+ options: e.value.userOptions.print
169
+ }), xo = i(() => e.value.userOptions.show && !e.value.style.chart.title.text), De = i(() => ol(e.value.customPalette)), be = i(() => e.value.style.chart.nodes.width), Y = r({
170
+ showTable: e.value.table.show,
171
+ showTooltip: e.value.style.chart.tooltip.show
172
+ });
173
+ Re(e, () => {
174
+ Y.value = {
175
+ showTable: e.value.table.show,
176
+ showTooltip: e.value.style.chart.tooltip.show
177
+ };
178
+ }, { immediate: !0 });
179
+ const It = i(() => !Me.value || !Me.value.length ? [] : Me.value.map((t, l) => [
180
+ t[0],
181
+ t[1],
182
+ S(t[2]),
183
+ t[3] ? ll(t[3]) : De.value[l] || De.value[l % De.value.length] || q[l] || q[l % q.length]
184
+ ]));
185
+ function To(t) {
186
+ const l = {}, o = {};
187
+ function a(s, d) {
188
+ l[s] || (l[s] = {
189
+ level: null,
190
+ inflow: 0,
191
+ outflow: 0,
192
+ children: [],
193
+ color: null,
194
+ uid: Ue()
195
+ }), l[s].level === null && (l[s].level = d), o[d] || (o[d] = []), o[d].includes(s) || o[d].push(s);
196
+ }
197
+ t.forEach(([s, d, g]) => {
198
+ const m = l[s]?.level ?? 0, R = m + 1;
199
+ a(s, m), a(d, R), l[s].children.push({ target: d, value: g }), l[s].outflow += g, l[d].inflow += g;
200
+ });
201
+ const n = new Set(t.map(([s]) => s)), p = new Set(t.map(([, s]) => s)), I = Array.from(n).filter((s) => !p.has(s)), F = {};
202
+ I.forEach((s, d) => {
203
+ F[s] = De.value[d] || q[d % q.length];
204
+ });
205
+ const z = {};
206
+ t.forEach(([s, d, g, m]) => {
207
+ m && (z[s] = m, z[d] = m);
208
+ }), Object.keys(l).forEach((s, d) => {
209
+ const g = e.value.nodeCategories?.[s], m = g ? e.value.nodeCategoryColors?.[g] : null;
210
+ l[s].color = z[s] || m || (I.includes(s) ? F[s] : null) || q[d % q.length];
211
+ }), Object.keys(l).forEach((s) => {
212
+ l[s].value = Math.max(l[s].inflow, l[s].outflow);
213
+ });
214
+ const W = Ce.value, G = Et.value.width, j = Et.value.height, C = Object.keys(o).map(Number).sort((s, d) => s - d), N = C.length || 1, M = N > 1 ? G / (N - 1) : 0, rt = Number(be.value), Te = Number(
215
+ e.value.style.chart.nodes.gapPx ?? e.value.style.chart.nodes.gap ?? 8
216
+ ), O = Number(
217
+ e.value.style.chart.nodes.minHeight || 0
218
+ );
219
+ function Z(s) {
220
+ const d = o[s], g = d.length;
221
+ if (!g) return 1 / 0;
222
+ const m = Math.max(0, (g - 1) * Te), R = Math.max(0, j - m), Q = Math.min(O, g ? R / g : 0);
223
+ let x = 0, D = d.map((k) => l[k].value || 0), T = D.reduce((k, L) => k + L, 0);
224
+ for (let k = 0; k < 12; k += 1) {
225
+ const L = T > 0 ? (R - x) / T : 0, ee = [];
226
+ for (let B = 0; B < D.length; B += 1) {
227
+ const K = D[B];
228
+ K < 0 || K * L < Q && ee.push(B);
229
+ }
230
+ if (!ee.length) return Math.max(0, L);
231
+ for (const B of ee)
232
+ x += Q, T -= D[B], D[B] = -1;
233
+ if (T <= 0) return 0;
234
+ }
235
+ return T > 0 ? Math.max(0, (R - x) / T) : 0;
236
+ }
237
+ const Se = C.map(Z), f = Se.length ? Math.min(...Se) : 0, y = {};
238
+ C.forEach((s) => {
239
+ const d = o[s], g = d.length, m = Math.max(0, (g - 1) * Te), R = Math.max(0, j - m), Q = Math.min(O, g ? R / g : 0), x = d.map(
240
+ (k) => Math.max(Q, (l[k].value || 0) * f)
241
+ ), D = x.reduce((k, L) => k + L, 0) + m;
242
+ let T = Math.max(0, (j - D) / 2);
243
+ d.forEach((k, L) => {
244
+ const ee = x[L], B = W.left + s * M, K = T;
245
+ y[k] = {
246
+ x: B,
247
+ y: K,
248
+ absoluteY: K,
249
+ height: ee,
250
+ i: L,
251
+ color: l[k].color,
252
+ value: l[k].value,
253
+ id: Ue()
254
+ }, T += ee, L < g - 1 && (T += Te);
255
+ });
256
+ });
257
+ const J = [], ue = W.top, ut = {}, it = {};
258
+ Object.keys(l).forEach((s) => {
259
+ ut[s] = y[s]?.y ?? 0, it[s] = 0;
260
+ });
261
+ const Vo = 1e-6, Go = 0.25, jo = !!e.value.style.chart.links.smooth, Ht = 0.5;
262
+ return C.forEach((s) => {
263
+ o[s].forEach((g) => {
264
+ const m = l[g], R = y[g];
265
+ if (!m.children || !m.children.length) return;
266
+ let Q = R.y;
267
+ m.children.forEach(({ target: x, value: D }) => {
268
+ const T = y[x], k = l[x], L = m.outflow > 0 ? D / m.outflow : 0, ee = k.inflow > 0 ? D / k.inflow : 0, B = S(Q + ue), K = S(
269
+ Q + L * R.height + ue
270
+ ), Ut = ut[x];
271
+ let ze = Ut + ee * T.height;
272
+ it[x] += D;
273
+ const Ko = k.inflow > 0 && it[x] >= k.inflow - Vo, Wt = T.y + T.height;
274
+ (Ko || ze > Wt - Go) && (ze = Wt);
275
+ const Vt = S(Ut + ue), Gt = S(ze + ue), ie = S(R.x + rt), ce = S(T.x);
276
+ let ct;
277
+ if (!jo || ce <= ie)
278
+ ct = `M ${ie} ${B} L ${ie} ${K} L ${ce} ${Gt} L ${ce} ${Vt} Z`;
279
+ else {
280
+ const jt = ce - ie, Kt = S(ie + jt * Ht), Xt = S(ce - jt * Ht), qt = B, Zt = Vt, Jt = K, Qt = Gt;
281
+ ct = `M ${ie} ${qt} C ${Kt} ${qt}, ${Xt} ${Zt}, ${ce} ${Zt} L ${ce} ${Qt} C ${Xt} ${Qt}, ${Kt} ${Jt}, ${ie} ${Jt} Z`;
282
+ }
283
+ J.push({
284
+ id: Ue(),
285
+ source: g,
286
+ target: x,
287
+ path: ct,
288
+ value: D,
289
+ sourceColor: m.color,
290
+ targetColor: l[x].color
291
+ }), Q = K - ue, ut[x] = ze;
292
+ });
293
+ });
294
+ }), { nodeCoordinates: y, links: J };
295
+ }
296
+ const $ = i(() => {
297
+ const t = To(Me.value);
298
+ return {
299
+ nodes: Object.keys(t.nodeCoordinates).map((l, o) => ({
300
+ ...t.nodeCoordinates[l],
301
+ name: l
302
+ })),
303
+ links: t.links
304
+ };
305
+ }), Nt = i(() => xt.value), Ot = i(() => Tt.value), Ce = i(() => e.value.style.chart.padding), Et = i(() => ({
306
+ width: Math.max(0, Nt.value - 40 - Ce.value.right - Ce.value.left),
307
+ height: Math.max(0, Ot.value - Ce.value.top - Ce.value.bottom)
308
+ })), ke = i(() => ({
309
+ width: Nt.value,
310
+ height: Ot.value
311
+ }));
312
+ function So(t) {
313
+ const l = {}, o = {}, a = /* @__PURE__ */ new Set();
314
+ return It.value.forEach(([n, p, I]) => {
315
+ l[n] || (l[n] = []), o[p] || (o[p] = []), l[n].push(p), o[p].push(n);
316
+ }), l[t] && l[t].forEach((n) => a.add(n)), o[t] && o[t].forEach((n) => a.add(n)), Array.from(a).concat(t);
317
+ }
318
+ const A = r(null), ne = r(null), we = r(null), Le = r(!1), $e = r(null);
319
+ function et() {
320
+ $e.value = null, A.value = null, ne.value = null, Ne.value = !1, me.value = null, de.value = null;
321
+ }
322
+ function Po(t) {
323
+ if (!ae.value || !t) return;
324
+ const l = ae.value.querySelector(`[data-a11y-node-id="${t}"]`);
325
+ if (!l) return;
326
+ const o = l.getBoundingClientRect();
327
+ bt.value = {
328
+ x: o.left + o.width / 2,
329
+ y: o.top + o.height / 2
330
+ };
331
+ }
332
+ function tt(t, l, o = "pointer", a = null) {
333
+ re.value = [], A.value = So(t.name), ne.value = t.name, $e.value = t.id, je.value = o, me.value = a, de.value = t.id;
334
+ const n = t.name, p = It.value;
335
+ let I = 0, F = 0, z = [], W = [];
336
+ const G = new Set(p.map(([f]) => f)), j = new Set(p.map(([, f]) => f)), C = Array.from(G).filter((f) => !j.has(f)), N = p.filter(([f]) => C.includes(f)).reduce((f, [y, J, ue]) => f + ue, 0), M = {};
337
+ $.value.nodes.forEach((f) => {
338
+ M[f.name] = f.color;
339
+ }), p.forEach(([f, y, J]) => {
340
+ y === n && (I += J, z.push({ source: f, value: J, color: M[f] })), f === n && (F += J, W.push({ target: y, value: J, color: M[y] }));
341
+ });
342
+ const rt = Math.max(I, F), Te = N > 0 ? rt / N * 100 : 0, O = {
343
+ name: n,
344
+ inflow: I,
345
+ outflow: F,
346
+ from: z,
347
+ to: W,
348
+ percentOfTotal: Te,
349
+ color: M[n] || "#000000"
350
+ };
351
+ e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: O, seriesIndex: l }), we.value = { datapoint: O }, Ne.value = !0;
352
+ let Z = "";
353
+ const Se = e.value.style.chart.tooltip.customFormat;
354
+ if (Le.value = !1, ul(Se))
355
+ try {
356
+ const f = Se({
357
+ datapoint: O,
358
+ series: $.value,
359
+ config: e.value
360
+ });
361
+ typeof f == "string" && (Ve.value = f, Le.value = !0);
362
+ } catch {
363
+ console.warn("Custom format cannot be applied.");
364
+ }
365
+ if (!Le.value) {
366
+ const f = e.value.style.chart.tooltip.showPercentage ? `<div>${pe({
367
+ p: e.value.style.chart.tooltip.translations.percentOfTotal,
368
+ v: O.percentOfTotal,
369
+ s: "%",
370
+ r: e.value.style.chart.tooltip.roundingPercentage
371
+ })}</div>` : "";
372
+ 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:${O.color}">⏹</span>${O.name}${f}</div>`, O.from.length && (Z += `<div>${e.value.style.chart.tooltip.translations.from}</div>`, O.from.forEach((y) => {
373
+ Z += `<div><span style="color:${y.color}">⏹←</span> ${y.source}: ${We(
374
+ e.value.style.chart.nodes.labels.formatter,
375
+ y.value,
376
+ pe({
377
+ p: e.value.style.chart.nodes.labels.prefix,
378
+ v: y.value,
379
+ s: e.value.style.chart.nodes.labels.suffix,
380
+ r: e.value.style.chart.nodes.labels.rounding
381
+ })
382
+ )}</div>`;
383
+ })), O.to.length && (Z += `<div style="margin-top:6px;">${e.value.style.chart.tooltip.translations.to}</div>`, O.to.forEach((y) => {
384
+ Z += `<div><span style="color:${y.color}">⏹→</span> ${y.target}: ${We(
385
+ e.value.style.chart.nodes.labels.formatter,
386
+ y.value,
387
+ pe({
388
+ p: e.value.style.chart.nodes.labels.prefix,
389
+ v: y.value,
390
+ s: e.value.style.chart.nodes.labels.suffix,
391
+ r: e.value.style.chart.nodes.labels.rounding
392
+ })
393
+ )}</div>`;
394
+ })), Ve.value = Z;
395
+ }
396
+ o === "keyboard" && dt(() => {
397
+ Po(t.id);
398
+ });
399
+ }
400
+ function _t(t) {
401
+ const l = we.value;
402
+ e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: t }), !(je.value === "keyboard" && de.value) && ($e.value = null, A.value = null, ne.value = null, Ne.value = !1);
403
+ }
404
+ function Ft(t) {
405
+ const l = we.value;
406
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: t });
407
+ }
408
+ const Mt = i(() => $.value.links.map(
409
+ ({ source: t, target: l, sourceColor: o, targetColor: a, value: n }) => ({
410
+ source: t,
411
+ target: l,
412
+ sourceColor: o,
413
+ targetColor: a,
414
+ value: n
415
+ })
416
+ ));
417
+ function ot(t = null) {
418
+ dt(() => {
419
+ const l = Mt.value.map((n, p) => [[n.source], [n.target], [n.value]]), o = [
420
+ [e.value.style.chart.title.text],
421
+ [e.value.style.chart.title.subtitle.text],
422
+ [
423
+ [e.value.table.columnNames.source],
424
+ [e.value.table.columnNames.target],
425
+ [e.value.table.columnNames.value]
426
+ ]
427
+ ].concat(l), a = sl(o);
428
+ t ? t(a) : rl({
429
+ csvContent: a,
430
+ title: e.value.style.chart.title.text || "vue-ui-flow"
431
+ });
432
+ });
433
+ }
434
+ const fe = i(() => {
435
+ const t = [
436
+ e.value.table.columnNames.source,
437
+ e.value.table.columnNames.target,
438
+ e.value.table.columnNames.value
439
+ ], l = Mt.value.map((n, p) => [
440
+ {
441
+ color: n.sourceColor,
442
+ name: n.source,
443
+ shape: "square"
444
+ },
445
+ {
446
+ color: n.targetColor,
447
+ name: n.target,
448
+ shape: "square"
449
+ },
450
+ pe({
451
+ p: e.value.style.chart.nodes.labels.prefix,
452
+ v: n.value,
453
+ s: e.value.style.chart.nodes.labels.suffix,
454
+ r: e.value.style.chart.nodes.labels.rounding
455
+ })
456
+ ]), o = {
457
+ th: {
458
+ backgroundColor: e.value.table.th.backgroundColor,
459
+ color: e.value.table.th.color,
460
+ outline: e.value.table.th.outline
461
+ },
462
+ td: {
463
+ backgroundColor: e.value.table.td.backgroundColor,
464
+ color: e.value.table.td.color,
465
+ outline: e.value.table.td.outline
466
+ },
467
+ breakpoint: e.value.table.responsiveBreakpoint
468
+ };
469
+ return {
470
+ colNames: [
471
+ e.value.table.columnNames.source,
472
+ e.value.table.columnNames.target,
473
+ e.value.table.columnNames.value
474
+ ],
475
+ head: t,
476
+ body: l,
477
+ config: o
478
+ };
479
+ }), lt = i(() => {
480
+ const t = fe.value?.colNames ?? [], l = fe.value?.body ?? [];
481
+ return { headers: t, rows: l };
482
+ }), Be = i(() => [...$.value.nodes].map((t, l) => ({
483
+ ...t,
484
+ index: l,
485
+ centerX: t.x + be.value / 2,
486
+ centerY: S(t.absoluteY) + e.value.style.chart.padding.top + t.height / 2
487
+ })).sort((t, l) => t.x === l.x ? t.absoluteY - l.absoluteY : t.x - l.x)), se = i(() => {
488
+ const l = [];
489
+ return Be.value.forEach((o) => {
490
+ const a = l.find((n) => Math.abs(n.x - o.x) <= 1);
491
+ a ? a.nodes.push(o) : l.push({
492
+ x: o.x,
493
+ nodes: [o]
494
+ });
495
+ }), l.forEach((o) => {
496
+ o.nodes.sort((a, n) => a.absoluteY - n.absoluteY);
497
+ }), l.sort((o, a) => o.x - a.x);
498
+ }), Ye = i(() => {
499
+ const t = /* @__PURE__ */ new Map();
500
+ return Be.value.forEach((l, o) => {
501
+ t.set(l.id, o);
502
+ }), t;
503
+ });
504
+ function Io() {
505
+ return $.value;
506
+ }
507
+ function Dt() {
508
+ Y.value.showTable = !Y.value.showTable;
509
+ }
510
+ const Ae = r(!1);
511
+ function at() {
512
+ Ae.value = !Ae.value;
513
+ }
514
+ function Lt() {
515
+ Y.value.showTooltip = !Y.value.showTooltip;
516
+ }
517
+ const Bt = i(() => {
518
+ const t = new Set(
519
+ $.value.nodes.map(
520
+ (l) => e.value.nodeCategories[l.name] || "__uncategorized__"
521
+ )
522
+ );
523
+ return Array.from(t).map((l) => ({
524
+ name: l,
525
+ color: e.value.nodeCategoryColors[l] || q[0],
526
+ shape: "square",
527
+ count: $.value.nodes.filter(
528
+ (o) => (e.value.nodeCategories[o.name] || "__uncategorized__") === l
529
+ ).length
530
+ })).map((l, o) => ({
531
+ ...l,
532
+ segregate: () => st({ legend: l, i: o }),
533
+ opacity: re.value.length ? re.value.includes(o) ? 1 : 0.5 : 1,
534
+ display: `${l.name} (${l.count})`
535
+ }));
536
+ }), nt = i(
537
+ () => Bt.value.filter((t) => t.name !== "__uncategorized__")
538
+ ), re = r([]);
539
+ function st({ legend: t, i: l }) {
540
+ const o = t.name;
541
+ if (A.value?.every(
542
+ (a) => e.value.nodeCategories[a] === o
543
+ )) {
544
+ A.value = null, ne.value = null, re.value = [];
545
+ return;
546
+ }
547
+ re.value = [l], A.value = $.value.nodes.filter((a) => e.value.nodeCategories[a.name] === o).map((a) => a.name), ne.value = null;
548
+ }
549
+ const No = i(() => ({
550
+ cy: "flow-legend",
551
+ backgroundColor: e.value.style.chart.legend.backgroundColor,
552
+ color: e.value.style.chart.legend.color,
553
+ fontSize: e.value.style.chart.legend.fontSize,
554
+ paddingBottom: e.value.style.chart.legend.paddingBottom,
555
+ fontWeight: e.value.style.chart.legend.bold ? "bold" : "normal"
556
+ }));
557
+ async function Oo({ scale: t = 2 } = {}) {
558
+ if (!V.value) return;
559
+ const { width: l, height: o } = V.value.getBoundingClientRect(), a = l / o, { imageUri: n, base64: p } = await bl({ domElement: V.value, base64: !0, img: !0, scale: t });
560
+ return {
561
+ imageUri: n,
562
+ base64: p,
563
+ title: e.value.style.chart.title.text,
564
+ width: l,
565
+ height: o,
566
+ aspectRatio: a
567
+ };
568
+ }
569
+ const xe = i(() => {
570
+ const t = e.value.table.useDialog && !e.value.table.show, l = Y.value.showTable;
571
+ return {
572
+ component: t ? yo : vo,
573
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
574
+ props: t ? {
575
+ backgroundColor: e.value.table.th.backgroundColor,
576
+ color: e.value.table.th.color,
577
+ headerColor: e.value.table.th.color,
578
+ headerBg: e.value.table.th.backgroundColor,
579
+ isFullscreen: le.value,
580
+ fullscreenParent: V.value,
581
+ forcedWidth: Math.min(800, window.innerWidth * 0.8),
582
+ isCursorPointer: ve.value
583
+ } : {
584
+ hideDetails: !0,
585
+ config: {
586
+ open: l,
587
+ maxHeight: 1e4,
588
+ body: {
589
+ backgroundColor: e.value.style.chart.backgroundColor,
590
+ color: e.value.style.chart.color
591
+ },
592
+ head: {
593
+ backgroundColor: e.value.style.chart.backgroundColor,
594
+ color: e.value.style.chart.color
595
+ }
596
+ }
597
+ }
598
+ };
599
+ });
600
+ Re(() => Y.value.showTable, (t) => {
601
+ e.value.table.show || (t && e.value.table.useDialog && ye.value ? ye.value.open() : "close" in ye.value && ye.value.close());
602
+ });
603
+ function Yt() {
604
+ Y.value.showTable = !1, Ge.value && Ge.value.setTableIconState(!1);
605
+ }
606
+ const Eo = i(() => nt.value.map((t) => ({
607
+ ...t,
608
+ name: t.display
609
+ }))), _o = i(() => e.value.style.chart.backgroundColor), Fo = i(() => e.value.style.chart.legend), Mo = i(() => e.value.style.chart.title), { exportSvg: Do, getSvg: Lo } = pl({
610
+ svg: ae,
611
+ title: Mo,
612
+ legend: Fo,
613
+ legendItems: Eo,
614
+ backgroundColor: _o
615
+ });
616
+ async function zt({ isCb: t }) {
617
+ _e.value = !0, await dt();
618
+ try {
619
+ if (t) {
620
+ const { blob: l, url: o, text: a, dataUrl: n } = await Lo();
621
+ await Promise.resolve(e.value.userOptions.callbacks.svg({ blob: l, url: o, text: a, dataUrl: n }));
622
+ } else
623
+ await Promise.resolve(Do());
624
+ } finally {
625
+ _e.value = !1;
626
+ }
627
+ }
628
+ function Bo(t) {
629
+ if (t?.stage === "start") {
630
+ Ee.value = !0;
631
+ return;
632
+ }
633
+ if (t?.stage === "end") {
634
+ Ee.value = !1;
635
+ return;
636
+ }
637
+ Pt();
638
+ }
639
+ async function Rt() {
640
+ if (ko("copyAlt", {
641
+ config: e.value,
642
+ dataset: $.value
643
+ }), !e.value.userOptions.callbacks.altCopy) {
644
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
645
+ return;
646
+ }
647
+ await Promise.resolve(e.value.userOptions.callbacks.altCopy({
648
+ config: e.value,
649
+ dataset: $.value
650
+ }));
651
+ }
652
+ function Yo(t) {
653
+ return se.value.findIndex(
654
+ (l) => l.nodes.some((o) => o.id === t)
655
+ );
656
+ }
657
+ function zo(t, l) {
658
+ const o = se.value[t];
659
+ return o ? o.nodes.findIndex((a) => a.id === l) : -1;
660
+ }
661
+ function Ro(t, l) {
662
+ const o = se.value[t];
663
+ if (!o || !o.nodes.length) return null;
664
+ let a = o.nodes[0], n = Math.abs(a.centerY - l);
665
+ for (let p = 1; p < o.nodes.length; p += 1) {
666
+ const I = o.nodes[p], F = Math.abs(I.centerY - l);
667
+ F < n && (a = I, n = F);
668
+ }
669
+ return a;
670
+ }
671
+ function Ho() {
672
+ me.value = null, de.value = null, Fe.value = !0;
673
+ }
674
+ function Uo() {
675
+ et(), Fe.value = !1;
676
+ }
677
+ function Wo(t) {
678
+ if (!ae.value || Ae.value || document.activeElement !== ae.value || !Be.value.length) return;
679
+ const l = t.key === "ArrowLeft", o = t.key === "ArrowRight", a = t.key === "ArrowUp", n = t.key === "ArrowDown", p = t.key === "Enter" || t.key === " ", I = t.key === "Escape";
680
+ if (!l && !o && !a && !n && !p && !I) return;
681
+ if (t.preventDefault(), t.stopPropagation(), I) {
682
+ et();
683
+ return;
684
+ }
685
+ if (p) {
686
+ if (me.value === null) return;
687
+ Ft(me.value);
688
+ return;
689
+ }
690
+ if (de.value === null) {
691
+ const C = se.value[0]?.nodes?.[0];
692
+ if (!C) return;
693
+ const N = Ye.value.get(C.id) ?? 0;
694
+ tt(C, N, "keyboard", N);
695
+ return;
696
+ }
697
+ const F = Ye.value.get(de.value);
698
+ if (F === void 0) return;
699
+ const z = Be.value[F];
700
+ if (!z) return;
701
+ const W = Yo(z.id);
702
+ if (W < 0) return;
703
+ let G = null;
704
+ if (a || n) {
705
+ const C = zo(W, z.id);
706
+ if (C < 0) return;
707
+ const N = se.value[W];
708
+ if (!N?.nodes?.length) return;
709
+ let M = C + (n ? 1 : -1);
710
+ M < 0 && (M = N.nodes.length - 1), M >= N.nodes.length && (M = 0), G = N.nodes[M];
711
+ }
712
+ if (l || o) {
713
+ let C = W + (o ? 1 : -1);
714
+ C < 0 && (C = se.value.length - 1), C >= se.value.length && (C = 0), G = Ro(C, z.centerY);
715
+ }
716
+ if (!G) return;
717
+ const j = Ye.value.get(G.id);
718
+ j !== void 0 && tt(G, j, "keyboard", j);
719
+ }
720
+ return ro({
721
+ getData: Io,
722
+ getImage: Oo,
723
+ generateCsv: ot,
724
+ generateImage: Pt,
725
+ generateSvg: zt,
726
+ generatePdf: St,
727
+ toggleTable: Dt,
728
+ toggleAnnotator: at,
729
+ toggleTooltip: Lt,
730
+ drillCategory: st,
731
+ unselectNode: _t,
732
+ toggleFullscreen: kt,
733
+ copyAlt: Rt
734
+ }), (t, l) => (c(), b("div", {
735
+ ref_key: "flowChart",
736
+ ref: V,
737
+ class: eo(`vue-data-ui-component vue-ui-flow ${le.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
738
+ style: X(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
739
+ id: `flow_${U.value}`,
740
+ onMouseenter: l[2] || (l[2] = () => u($t)(!0)),
741
+ onMouseleave: l[3] || (l[3] = () => {
742
+ u($t)(!1), Fe.value || et();
743
+ })
744
+ }, [
745
+ H("div", {
746
+ id: `chart-instructions-${U.value}`,
747
+ class: "sr-only"
748
+ }, [
749
+ H("p", null, he(e.value.a11y.translations.keyboardNavigation), 1)
750
+ ], 8, Tl),
751
+ lt.value?.rows?.length ? (c(), oe($l, {
752
+ key: 0,
753
+ uid: U.value,
754
+ head: lt.value.headers,
755
+ body: lt.value.rows,
756
+ notice: e.value.a11y.translations.tableAvailable,
757
+ caption: e.value.a11y.translations.tableCaption
758
+ }, null, 8, ["uid", "head", "body", "notice", "caption"])) : w("", !0),
759
+ e.value.userOptions.buttons.annotator ? (c(), oe(u(ho), {
760
+ key: 1,
761
+ svgRef: u(ae),
762
+ backgroundColor: e.value.style.chart.backgroundColor,
763
+ color: e.value.style.chart.color,
764
+ active: Ae.value,
765
+ onClose: at,
766
+ isCursorPointer: ve.value
767
+ }, {
768
+ "annotator-action-close": h(() => [
769
+ v(t.$slots, "annotator-action-close", {}, void 0, !0)
770
+ ]),
771
+ "annotator-action-color": h(({ color: o }) => [
772
+ v(t.$slots, "annotator-action-color", E(_({ color: o })), void 0, !0)
773
+ ]),
774
+ "annotator-action-draw": h(({ mode: o }) => [
775
+ v(t.$slots, "annotator-action-draw", E(_({ mode: o })), void 0, !0)
776
+ ]),
777
+ "annotator-action-undo": h(({ disabled: o }) => [
778
+ v(t.$slots, "annotator-action-undo", E(_({ disabled: o })), void 0, !0)
779
+ ]),
780
+ "annotator-action-redo": h(({ disabled: o }) => [
781
+ v(t.$slots, "annotator-action-redo", E(_({ disabled: o })), void 0, !0)
782
+ ]),
783
+ "annotator-action-delete": h(({ disabled: o }) => [
784
+ v(t.$slots, "annotator-action-delete", E(_({ disabled: o })), void 0, !0)
785
+ ]),
786
+ _: 3
787
+ }, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : w("", !0),
788
+ xo.value ? (c(), b("div", Sl, null, 512)) : w("", !0),
789
+ e.value.style.chart.title.text ? (c(), b("div", {
790
+ key: 3,
791
+ ref_key: "chartTitle",
792
+ ref: gt,
793
+ style: "width:100%;background:transparent;padding-bottom:24px"
794
+ }, [
795
+ (c(), oe(Cl, {
796
+ key: `title_${ht.value}`,
797
+ config: {
798
+ title: {
799
+ cy: "flow-title",
800
+ ...e.value.style.chart.title
801
+ },
802
+ subtitle: {
803
+ cy: "flow-subtitle",
804
+ ...e.value.style.chart.title.subtitle
805
+ }
806
+ }
807
+ }, null, 8, ["config"]))
808
+ ], 512)) : w("", !0),
809
+ H("div", {
810
+ id: `legend-top-${U.value}`
811
+ }, null, 8, Pl),
812
+ e.value.userOptions.show && Ct.value && (u(At) || u(qe)) ? (c(), oe(u(po), {
813
+ ref_key: "userOptionsRef",
814
+ ref: Ge,
815
+ key: `user_option_${ft.value}`,
816
+ backgroundColor: e.value.style.chart.backgroundColor,
817
+ color: e.value.style.chart.color,
818
+ isPrinting: u(Je),
819
+ isImaging: u(Qe),
820
+ uid: U.value,
821
+ hasPdf: e.value.userOptions.buttons.pdf,
822
+ hasXls: e.value.userOptions.buttons.csv,
823
+ hasImg: e.value.userOptions.buttons.img,
824
+ hasSvg: e.value.userOptions.buttons.svg,
825
+ hasTable: e.value.userOptions.buttons.table,
826
+ callbacks: e.value.userOptions.callbacks,
827
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
828
+ hasAltCopy: e.value.userOptions.buttons.altCopy,
829
+ isFullscreen: le.value,
830
+ titles: { ...e.value.userOptions.buttonTitles },
831
+ chartElement: V.value,
832
+ position: e.value.userOptions.position,
833
+ hasAnnotator: e.value.userOptions.buttons.annotator,
834
+ printScale: e.value.userOptions.print.scale,
835
+ isAnnotation: Ae.value,
836
+ hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
837
+ isTooltip: Y.value.showTooltip,
838
+ tableDialog: e.value.table.useDialog,
839
+ isCursorPointer: ve.value,
840
+ onToggleTooltip: Lt,
841
+ onToggleFullscreen: kt,
842
+ onGeneratePdf: u(St),
843
+ onGenerateCsv: ot,
844
+ onGenerateImage: Bo,
845
+ onGenerateSvg: zt,
846
+ onToggleTable: Dt,
847
+ onToggleAnnotator: at,
848
+ onCopyAlt: Rt,
849
+ style: X({
850
+ visibility: u(At) ? u(qe) ? "visible" : "hidden" : "visible"
851
+ })
852
+ }, to({ _: 2 }, [
853
+ t.$slots.menuIcon ? {
854
+ name: "menuIcon",
855
+ fn: h(({ isOpen: o, color: a }) => [
856
+ v(t.$slots, "menuIcon", E(_({ isOpen: o, color: a })), void 0, !0)
857
+ ]),
858
+ key: "0"
859
+ } : void 0,
860
+ t.$slots.optionTooltip ? {
861
+ name: "optionTooltip",
862
+ fn: h(() => [
863
+ v(t.$slots, "optionTooltip", {}, void 0, !0)
864
+ ]),
865
+ key: "1"
866
+ } : void 0,
867
+ t.$slots.optionPdf ? {
868
+ name: "optionPdf",
869
+ fn: h(() => [
870
+ v(t.$slots, "optionPdf", {}, void 0, !0)
871
+ ]),
872
+ key: "2"
873
+ } : void 0,
874
+ t.$slots.optionCsv ? {
875
+ name: "optionCsv",
876
+ fn: h(() => [
877
+ v(t.$slots, "optionCsv", {}, void 0, !0)
878
+ ]),
879
+ key: "3"
880
+ } : void 0,
881
+ t.$slots.optionImg ? {
882
+ name: "optionImg",
883
+ fn: h(() => [
884
+ v(t.$slots, "optionImg", {}, void 0, !0)
885
+ ]),
886
+ key: "4"
887
+ } : void 0,
888
+ t.$slots.optionSvg ? {
889
+ name: "optionSvg",
890
+ fn: h(() => [
891
+ v(t.$slots, "optionSvg", {}, void 0, !0)
892
+ ]),
893
+ key: "5"
894
+ } : void 0,
895
+ t.$slots.optionTable ? {
896
+ name: "optionTable",
897
+ fn: h(() => [
898
+ v(t.$slots, "optionTable", {}, void 0, !0)
899
+ ]),
900
+ key: "6"
901
+ } : void 0,
902
+ t.$slots.optionFullscreen ? {
903
+ name: "optionFullscreen",
904
+ fn: h(({ toggleFullscreen: o, isFullscreen: a }) => [
905
+ v(t.$slots, "optionFullscreen", E(_({ toggleFullscreen: o, isFullscreen: a })), void 0, !0)
906
+ ]),
907
+ key: "7"
908
+ } : void 0,
909
+ t.$slots.optionAnnotator ? {
910
+ name: "optionAnnotator",
911
+ fn: h(({ toggleAnnotator: o, isAnnotator: a }) => [
912
+ v(t.$slots, "optionAnnotator", E(_({ toggleAnnotator: o, isAnnotator: a })), void 0, !0)
913
+ ]),
914
+ key: "8"
915
+ } : void 0,
916
+ t.$slots.optionAltCopy ? {
917
+ name: "optionAltCopy",
918
+ fn: h(({ altCopy: o }) => [
919
+ v(t.$slots, "optionAltCopy", E(_({ altCopy: o })), void 0, !0)
920
+ ]),
921
+ key: "9"
922
+ } : void 0
923
+ ]), 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),
924
+ H("div", Il, [
925
+ (c(), b("svg", {
926
+ ref_key: "svgRef",
927
+ ref: ae,
928
+ xmlns: u(al),
929
+ "aria-describedby": `chart-instructions-${U.value}`,
930
+ viewBox: `0 0 ${ke.value.width} ${ke.value.height}`,
931
+ class: eo({
932
+ "vue-data-ui-fullscreen--on": le.value,
933
+ "vue-data-ui-fulscreen--off": !le.value
934
+ }),
935
+ style: X({
936
+ maxWidth: "100%",
937
+ overflow: "visible",
938
+ background: "transparent",
939
+ color: e.value.style.chart.color
940
+ }),
941
+ tabindex: "0",
942
+ onFocus: Ho,
943
+ onBlur: Uo,
944
+ onKeydown: Wo
945
+ }, [
946
+ He(u(go)),
947
+ t.$slots["chart-background"] ? (c(), b("foreignObject", {
948
+ key: 0,
949
+ x: 0,
950
+ y: 0,
951
+ width: ke.value.width,
952
+ height: ke.value.height,
953
+ style: {
954
+ pointerEvents: "none"
955
+ }
956
+ }, [
957
+ v(t.$slots, "chart-background", {}, void 0, !0)
958
+ ], 8, Ol)) : w("", !0),
959
+ H("defs", null, [
960
+ (c(!0), b(Pe, null, Ie($.value.links, (o, a) => (c(), b("linearGradient", {
961
+ id: o.id,
962
+ x1: "0%",
963
+ y1: "0%",
964
+ x2: "100%",
965
+ y2: "0%"
966
+ }, [
967
+ H("stop", {
968
+ offset: "0%",
969
+ "stop-color": o.sourceColor
970
+ }, null, 8, _l),
971
+ H("stop", {
972
+ offset: "100%",
973
+ "stop-color": o.targetColor
974
+ }, null, 8, Fl)
975
+ ], 8, El))), 256))
976
+ ]),
977
+ (c(!0), b(Pe, null, Ie($.value.links, (o) => (c(), b("path", {
978
+ class: "vue-ui-flow-link",
979
+ d: o.path,
980
+ "stroke-linejoin": "round",
981
+ "stroke-miterlimit": "1",
982
+ fill: `url(#${o.id})`,
983
+ stroke: e.value.style.chart.links.stroke,
984
+ "stroke-width": e.value.style.chart.links.strokeWidth,
985
+ style: X(`
986
+ opacity:${A.value ? A.value.includes(o.source) && A.value.includes(o.target) ? 1 : 0.3 : ne.value ? [o.target, o.source].includes(ne.value) ? 1 : 0.3 : e.value.style.chart.links.opacity}
987
+ `)
988
+ }, null, 12, Ml))), 256)),
989
+ (c(!0), b(Pe, null, Ie($.value.nodes, (o, a) => (c(), b("rect", {
990
+ "data-a11y-node-id": o.id,
991
+ class: "vue-ui-flow-node",
992
+ x: o.x,
993
+ y: u(S)(o.absoluteY) + e.value.style.chart.padding.top,
994
+ height: u(S)(o.height),
995
+ width: be.value,
996
+ fill: o.color,
997
+ stroke: e.value.style.chart.nodes.stroke,
998
+ "stroke-width": e.value.style.chart.nodes.strokeWidth,
999
+ rx: e.value.style.chart.nodes.borderRadius,
1000
+ style: X({
1001
+ opacity: A.value ? A.value.includes(o.name) ? 1 : 0.3 : 1,
1002
+ outline: $e.value !== null && $e.value === o.id ? "2px solid currentColor" : void 0
1003
+ }),
1004
+ "aria-label": `${o.name}: ${u(We)(
1005
+ e.value.style.chart.nodes.labels.formatter,
1006
+ o.value,
1007
+ u(pe)({
1008
+ p: e.value.style.chart.nodes.labels.prefix,
1009
+ v: o.value,
1010
+ s: e.value.style.chart.nodes.labels.suffix,
1011
+ r: e.value.style.chart.nodes.labels.rounding
1012
+ })
1013
+ )}`,
1014
+ onMouseenter: (n) => tt(o, a, "pointer", Ye.value.get(o.id)),
1015
+ onMouseleave: (n) => _t(a),
1016
+ onClick: (n) => Ft(a)
1017
+ }, null, 44, Dl))), 256)),
1018
+ e.value.style.chart.nodes.labels.show ? (c(), b("g", Ll, [
1019
+ (c(!0), b(Pe, null, Ie($.value.nodes, (o, a) => (c(), b("text", {
1020
+ x: o.x + be.value / 2,
1021
+ y: (e.value.style.chart.nodes.labels.showValue ? u(S)(
1022
+ o.absoluteY + o.height / 2 - e.value.style.chart.nodes.labels.fontSize / 4
1023
+ ) : o.absoluteY + o.height / 2 + e.value.style.chart.nodes.labels.fontSize / 3) + e.value.style.chart.padding.top,
1024
+ "font-size": e.value.style.chart.nodes.labels.fontSize,
1025
+ fill: u(no)(o.color),
1026
+ "text-anchor": "middle",
1027
+ style: X(`pointer-events: none; opacity:${A.value ? A.value.includes(o.name) ? 1 : 0 : 1}`)
1028
+ }, he(e.value.style.chart.nodes.labels.abbreviation.use ? u(nl)({
1029
+ source: o.name,
1030
+ length: e.value.style.chart.nodes.labels.abbreviation.length
1031
+ }) : o.name), 13, Bl))), 256)),
1032
+ e.value.style.chart.nodes.labels.showValue ? (c(!0), b(Pe, { key: 0 }, Ie($.value.nodes, (o, a) => (c(), b("text", {
1033
+ x: o.x + be.value / 2,
1034
+ y: u(S)(
1035
+ o.absoluteY + o.height / 2 + e.value.style.chart.nodes.labels.fontSize / 1.3
1036
+ ) + e.value.style.chart.padding.top,
1037
+ "font-size": e.value.style.chart.nodes.labels.fontSize,
1038
+ fill: u(no)(o.color),
1039
+ "text-anchor": "middle",
1040
+ style: X(`pointer-events: none; opacity:${A.value ? A.value.includes(o.name) ? 1 : 0 : 1}`)
1041
+ }, he(u(We)(
1042
+ e.value.style.chart.nodes.labels.formatter,
1043
+ o.value,
1044
+ u(pe)({
1045
+ p: e.value.style.chart.nodes.labels.prefix,
1046
+ v: o.value,
1047
+ s: e.value.style.chart.nodes.labels.suffix,
1048
+ r: e.value.style.chart.nodes.labels.rounding
1049
+ }),
1050
+ { datapoint: o, seriesIndex: a }
1051
+ )), 13, Yl))), 256)) : w("", !0)
1052
+ ])) : w("", !0),
1053
+ v(t.$slots, "svg", {
1054
+ svg: {
1055
+ ...ke.value,
1056
+ isPrintingImg: u(Je) | u(Qe) | Ee.value,
1057
+ isPrintingSvg: _e.value
1058
+ }
1059
+ }, void 0, !0)
1060
+ ], 46, Nl)),
1061
+ t.$slots.hint ? (c(), b("div", zl, [
1062
+ v(t.$slots, "hint", E(_({ hint: e.value.a11y.translations.keyboardNavigation, isVisible: Fe.value })), void 0, !0)
1063
+ ])) : w("", !0)
1064
+ ]),
1065
+ t.$slots.watermark ? (c(), b("div", Rl, [
1066
+ v(t.$slots, "watermark", E(_({ isPrinting: u(Je) || u(Qe) || Ee.value || _e.value })), void 0, !0)
1067
+ ])) : w("", !0),
1068
+ H("div", {
1069
+ id: `legend-bottom-${U.value}`
1070
+ }, null, 8, Hl),
1071
+ mt.value ? (c(), oe(Zo, {
1072
+ key: 6,
1073
+ to: e.value.style.chart.legend.position === "top" ? `#legend-top-${U.value}` : `#legend-bottom-${U.value}`
1074
+ }, [
1075
+ H("div", {
1076
+ ref_key: "chartLegend",
1077
+ ref: pt
1078
+ }, [
1079
+ e.value.style.chart.legend.show && nt.value.length ? (c(), oe(wl, {
1080
+ key: 0,
1081
+ legendSet: nt.value,
1082
+ config: No.value,
1083
+ isCursorPointer: ve.value,
1084
+ onClickMarker: l[0] || (l[0] = (o) => st(o))
1085
+ }, {
1086
+ item: h(({ legend: o, index: a }) => [
1087
+ u(Ke) ? w("", !0) : (c(), b("div", {
1088
+ key: 0,
1089
+ onClick: (n) => o.segregate(),
1090
+ style: X(`opacity:${re.value.length ? re.value.includes(a) ? 1 : 0.5 : 1}`)
1091
+ }, he(o.display), 13, Ul))
1092
+ ]),
1093
+ _: 1
1094
+ }, 8, ["legendSet", "config", "isCursorPointer"])) : w("", !0),
1095
+ v(t.$slots, "legend", { legend: Bt.value }, void 0, !0)
1096
+ ], 512)
1097
+ ], 8, ["to"])) : w("", !0),
1098
+ t.$slots.source ? (c(), b("div", {
1099
+ key: 7,
1100
+ ref_key: "source",
1101
+ ref: yt,
1102
+ dir: "auto"
1103
+ }, [
1104
+ v(t.$slots, "source", {}, void 0, !0)
1105
+ ], 512)) : w("", !0),
1106
+ He(u(io), {
1107
+ ref_key: "tooltip",
1108
+ ref: wo,
1109
+ teleportTo: e.value.style.chart.tooltip.teleportTo,
1110
+ show: Y.value.showTooltip && Ne.value,
1111
+ backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1112
+ color: e.value.style.chart.tooltip.color,
1113
+ fontSize: e.value.style.chart.tooltip.fontSize,
1114
+ borderRadius: e.value.style.chart.tooltip.borderRadius,
1115
+ borderColor: e.value.style.chart.tooltip.borderColor,
1116
+ borderWidth: e.value.style.chart.tooltip.borderWidth,
1117
+ backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
1118
+ position: e.value.style.chart.tooltip.position,
1119
+ offsetY: e.value.style.chart.tooltip.offsetY,
1120
+ parent: V.value,
1121
+ content: Ve.value,
1122
+ isCustom: Le.value,
1123
+ isFullscreen: le.value,
1124
+ smooth: e.value.style.chart.tooltip.smooth,
1125
+ backdropFilter: e.value.style.chart.tooltip.backdropFilter,
1126
+ smoothForce: e.value.style.chart.tooltip.smoothForce,
1127
+ smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold,
1128
+ isA11yMode: je.value === "keyboard",
1129
+ a11yPosition: bt.value
1130
+ }, {
1131
+ "tooltip-before": h(() => [
1132
+ v(t.$slots, "tooltip-before", E(_({ ...we.value })), void 0, !0)
1133
+ ]),
1134
+ "tooltip-after": h(() => [
1135
+ v(t.$slots, "tooltip-after", E(_({ ...we.value })), void 0, !0)
1136
+ ]),
1137
+ _: 3
1138
+ }, 8, ["teleportTo", "show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold", "isA11yMode", "a11yPosition"]),
1139
+ Ct.value && e.value.userOptions.buttons.table ? (c(), oe(Jo(xe.value.component), Qo({ key: 8 }, xe.value.props, {
1140
+ ref_key: "tableUnit",
1141
+ ref: ye,
1142
+ onClose: Yt
1143
+ }), to({
1144
+ content: h(() => [
1145
+ He(u(fo), {
1146
+ colNames: fe.value.colNames,
1147
+ head: fe.value.head,
1148
+ body: fe.value.body,
1149
+ config: fe.value.config,
1150
+ title: e.value.table.useDialog ? "" : xe.value.title,
1151
+ withCloseButton: !e.value.table.useDialog,
1152
+ isCursorPointer: ve.value,
1153
+ onClose: Yt
1154
+ }, {
1155
+ th: h(({ th: o }) => [
1156
+ H("div", {
1157
+ innerHTML: o,
1158
+ style: { display: "flex", "align-items": "center" }
1159
+ }, null, 8, Wl)
1160
+ ]),
1161
+ td: h(({ td: o }) => [
1162
+ oo(he(o.name || o), 1)
1163
+ ]),
1164
+ _: 1
1165
+ }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton", "isCursorPointer"])
1166
+ ]),
1167
+ _: 2
1168
+ }, [
1169
+ e.value.table.useDialog ? {
1170
+ name: "title",
1171
+ fn: h(() => [
1172
+ oo(he(xe.value.title), 1)
1173
+ ]),
1174
+ key: "0"
1175
+ } : void 0,
1176
+ e.value.table.useDialog ? {
1177
+ name: "actions",
1178
+ fn: h(() => [
1179
+ H("button", {
1180
+ tabindex: "0",
1181
+ class: "vue-ui-user-options-button",
1182
+ onClick: l[1] || (l[1] = (o) => ot(e.value.userOptions.callbacks.csv)),
1183
+ style: X({ cursor: ve.value ? "pointer" : "default" })
1184
+ }, [
1185
+ He(u(co), {
1186
+ name: "fileCsv",
1187
+ stroke: xe.value.props.color
1188
+ }, null, 8, ["stroke"])
1189
+ ], 4)
1190
+ ]),
1191
+ key: "1"
1192
+ } : void 0
1193
+ ]), 1040)) : w("", !0),
1194
+ v(t.$slots, "skeleton", {}, () => [
1195
+ u(Ke) ? (c(), oe(hl, { key: 0 })) : w("", !0)
1196
+ ], !0)
1197
+ ], 46, xl));
1198
+ }
1199
+ }, ia = /* @__PURE__ */ Al(Vl, [["__scopeId", "data-v-3fc63fc6"]]);
1200
+ export {
1201
+ ia as default
1202
+ };