vue-data-ui 3.25.7 → 3.25.9

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 (163) hide show
  1. package/dist/{BaseScanner-DZvpgOjM.js → BaseScanner-Dzc8VT3j.js} +6 -3
  2. package/dist/{PackageVersion-UfoQuPMf.js → PackageVersion-KBMdaOXg.js} +1 -1
  3. package/dist/components/vue-ui-3d-bar.js +1 -1
  4. package/dist/components/vue-ui-accordion.js +1 -1
  5. package/dist/components/vue-ui-age-pyramid.js +1 -1
  6. package/dist/components/vue-ui-annotator.js +1 -1
  7. package/dist/components/vue-ui-bullet.js +1 -1
  8. package/dist/components/vue-ui-bump.js +1 -1
  9. package/dist/components/vue-ui-candlestick.js +1 -1
  10. package/dist/components/vue-ui-carousel-table.js +1 -1
  11. package/dist/components/vue-ui-chestnut.js +1 -1
  12. package/dist/components/vue-ui-chord.js +1 -1
  13. package/dist/components/vue-ui-circle-pack.js +1 -1
  14. package/dist/components/vue-ui-cursor.js +1 -1
  15. package/dist/components/vue-ui-dag.js +1 -1
  16. package/dist/components/vue-ui-dashboard.js +1 -1
  17. package/dist/components/vue-ui-digits.js +1 -1
  18. package/dist/components/vue-ui-donut-evolution.js +1 -1
  19. package/dist/components/vue-ui-donut.js +1 -1
  20. package/dist/components/vue-ui-dumbbell.js +1 -1
  21. package/dist/components/vue-ui-flow.js +1 -1
  22. package/dist/components/vue-ui-funnel.js +1 -1
  23. package/dist/components/vue-ui-galaxy.js +1 -1
  24. package/dist/components/vue-ui-gauge.js +1 -1
  25. package/dist/components/vue-ui-geo.js +1 -1
  26. package/dist/components/vue-ui-gizmo.js +1 -1
  27. package/dist/components/vue-ui-heatmap.js +1 -1
  28. package/dist/components/vue-ui-hill.js +1 -1
  29. package/dist/components/vue-ui-history-plot.js +1 -1
  30. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  31. package/dist/components/vue-ui-kpi.js +1 -1
  32. package/dist/components/vue-ui-label.js +1 -1
  33. package/dist/components/vue-ui-mini-loader.js +1 -1
  34. package/dist/components/vue-ui-molecule.js +1 -1
  35. package/dist/components/vue-ui-mood-radar.js +1 -1
  36. package/dist/components/vue-ui-nested-donuts.js +1 -1
  37. package/dist/components/vue-ui-onion.js +1 -1
  38. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  39. package/dist/components/vue-ui-quadrant.js +1 -1
  40. package/dist/components/vue-ui-quick-chart.js +1 -1
  41. package/dist/components/vue-ui-radar.js +1 -1
  42. package/dist/components/vue-ui-rating.js +1 -1
  43. package/dist/components/vue-ui-relation-circle.js +1 -1
  44. package/dist/components/vue-ui-ridgeline.js +1 -1
  45. package/dist/components/vue-ui-rings.js +1 -1
  46. package/dist/components/vue-ui-scatter.js +1 -1
  47. package/dist/components/vue-ui-skeleton.js +1 -1
  48. package/dist/components/vue-ui-smiley.js +1 -1
  49. package/dist/components/vue-ui-spark-trend.js +1 -1
  50. package/dist/components/vue-ui-sparkbar.js +1 -1
  51. package/dist/components/vue-ui-sparkgauge.js +1 -1
  52. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  53. package/dist/components/vue-ui-sparkline.js +1 -1
  54. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  55. package/dist/components/vue-ui-stackbar.js +1 -1
  56. package/dist/components/vue-ui-stackline.js +1 -1
  57. package/dist/components/vue-ui-strip-plot.js +1 -1
  58. package/dist/components/vue-ui-table-heatmap.js +1 -1
  59. package/dist/components/vue-ui-table-sparkline.js +1 -1
  60. package/dist/components/vue-ui-table.js +1 -1
  61. package/dist/components/vue-ui-thermometer.js +1 -1
  62. package/dist/components/vue-ui-timer.js +1 -1
  63. package/dist/components/vue-ui-tiremarks.js +1 -1
  64. package/dist/components/vue-ui-treemap.js +1 -1
  65. package/dist/components/vue-ui-vertical-bar.js +1 -1
  66. package/dist/components/vue-ui-waffle.js +1 -1
  67. package/dist/components/vue-ui-wheel.js +1 -1
  68. package/dist/components/vue-ui-word-cloud.js +1 -1
  69. package/dist/components/vue-ui-world.js +1 -1
  70. package/dist/components/vue-ui-xy-canvas.js +1 -1
  71. package/dist/components/vue-ui-xy.js +1 -1
  72. package/dist/{package-B-3S5q00.js → package-BL27Ev_h.js} +1 -1
  73. package/dist/{render-common-CAXK7ycr.js → render-common-By8J0AE-.js} +1 -1
  74. package/dist/ssr/vue-ui-donut.js +1 -1
  75. package/dist/ssr/vue-ui-xy.js +1 -1
  76. package/dist/ssr.js +2 -2
  77. package/dist/style.css +1 -1
  78. package/dist/types/vue-data-ui.d.ts +2 -0
  79. package/dist/{useConfig-CIQZ6_r7.js → useConfig-D32D002m.js} +2 -0
  80. package/dist/{useObjectBindings---mHNfbS.js → useObjectBindings-Cd_WuYIn.js} +1 -1
  81. package/dist/utils.js +1 -1
  82. package/dist/{vue-data-ui-DlWT702n.js → vue-data-ui-CBWuUAXT.js} +69 -69
  83. package/dist/vue-data-ui.js +70 -70
  84. package/dist/{vue-ui-3d-bar-DbOk2kpM.js → vue-ui-3d-bar-BSbq90H3.js} +3 -3
  85. package/dist/{vue-ui-accordion-BSmBUjwZ.js → vue-ui-accordion-DmkL8A59.js} +1 -1
  86. package/dist/{vue-ui-age-pyramid-C7_mGIRk.js → vue-ui-age-pyramid-CrXl71iC.js} +263 -251
  87. package/dist/{vue-ui-annotator-CTQHAPho.js → vue-ui-annotator-BO5ihHOB.js} +2 -2
  88. package/dist/{vue-ui-bullet-CDy_dkYz.js → vue-ui-bullet-B2Y3Wqh9.js} +3 -3
  89. package/dist/{vue-ui-bump-DP24leiD.js → vue-ui-bump-DXvvjG4I.js} +3 -3
  90. package/dist/{vue-ui-candlestick-kJLmYaR7.js → vue-ui-candlestick-CFqR6W56.js} +453 -441
  91. package/dist/{vue-ui-carousel-table-BQzAQDw6.js → vue-ui-carousel-table-D-ZkPRta.js} +2 -2
  92. package/dist/{vue-ui-chestnut-DnnRp3Kl.js → vue-ui-chestnut-CyW3IoYC.js} +3 -3
  93. package/dist/{vue-ui-chord-DO15ZDCS.js → vue-ui-chord-DS0jni9A.js} +3 -3
  94. package/dist/{vue-ui-circle-pack-DYTllMPV.js → vue-ui-circle-pack-j2ChgLWr.js} +494 -482
  95. package/dist/{vue-ui-cursor-CtViSjNp.js → vue-ui-cursor-qOONOtcv.js} +2 -2
  96. package/dist/{vue-ui-dag-NXtGYzqg.js → vue-ui-dag-CmeFsKhR.js} +3 -3
  97. package/dist/{vue-ui-dashboard-D3_4QohV.js → vue-ui-dashboard-C7Z5BTN4.js} +65 -65
  98. package/dist/{vue-ui-digits-CB09pLQx.js → vue-ui-digits-Bf68x6fb.js} +2 -2
  99. package/dist/{vue-ui-donut-yTE6D8yV.js → vue-ui-donut-CkBPJW_T.js} +837 -825
  100. package/dist/{vue-ui-donut-eysaEyTy.js → vue-ui-donut-DzDSYgVp.js} +2 -2
  101. package/dist/{vue-ui-donut-evolution-DhrtxvAd.js → vue-ui-donut-evolution-CDJumo0t.js} +3 -3
  102. package/dist/{vue-ui-dumbbell-CmGIeULQ.js → vue-ui-dumbbell-Cr__26dN.js} +3 -3
  103. package/dist/vue-ui-flow-Cz6WRi2c.js +1229 -0
  104. package/dist/{vue-ui-funnel-CLAii4wi.js → vue-ui-funnel-BlC7KxS6.js} +2 -2
  105. package/dist/vue-ui-galaxy-Bg2smlcI.js +1097 -0
  106. package/dist/{vue-ui-gauge-D76-4Z_0.js → vue-ui-gauge-BHsaent1.js} +3 -3
  107. package/dist/{vue-ui-geo-BQ7-UnuG.js → vue-ui-geo-CE3Cr0or.js} +407 -395
  108. package/dist/{vue-ui-gizmo-C47zjcs-.js → vue-ui-gizmo-DqFUBEai.js} +3 -3
  109. package/dist/{vue-ui-heatmap-XJef60IZ.js → vue-ui-heatmap-DXqj9ial.js} +478 -446
  110. package/dist/{vue-ui-hill-D5BYGPXB.js → vue-ui-hill-B3fPAfhL.js} +2 -2
  111. package/dist/vue-ui-history-plot-CrnTnpaM.js +1710 -0
  112. package/dist/{vue-ui-horizontal-bar-BgFHi6_7.js → vue-ui-horizontal-bar-DqvN3imH.js} +432 -420
  113. package/dist/{vue-ui-kpi-Cb8QJeaj.js → vue-ui-kpi-Mf318HvK.js} +2 -2
  114. package/dist/{vue-ui-label-ClMQ5Gez.js → vue-ui-label-C1UAzvAu.js} +1 -1
  115. package/dist/{vue-ui-mini-loader-DtPOVIkK.js → vue-ui-mini-loader-wGeACd-Y.js} +1 -1
  116. package/dist/{vue-ui-molecule-BzwMl-in.js → vue-ui-molecule-CaLReo4h.js} +346 -334
  117. package/dist/{vue-ui-mood-radar-BUR_YCcr.js → vue-ui-mood-radar-jkE2ENX5.js} +3 -3
  118. package/dist/{vue-ui-nested-donuts-BEB4nfsD.js → vue-ui-nested-donuts-BgMOKjil.js} +360 -348
  119. package/dist/vue-ui-onion-DBN3Ev4j.js +1247 -0
  120. package/dist/{vue-ui-parallel-coordinate-plot-CSO4johj.js → vue-ui-parallel-coordinate-plot-BcJzEGJ-.js} +387 -375
  121. package/dist/{vue-ui-quadrant-CKav0I6g.js → vue-ui-quadrant-BvoVlxTI.js} +418 -406
  122. package/dist/{vue-ui-quick-chart-BAQNS9_2.js → vue-ui-quick-chart-2hn8-F_C.js} +550 -538
  123. package/dist/{vue-ui-radar-ClPAgf5I.js → vue-ui-radar-O3AjGrc-.js} +330 -318
  124. package/dist/{vue-ui-rating-CWFMoYpE.js → vue-ui-rating-Criq0ofQ.js} +1 -1
  125. package/dist/{vue-ui-relation-circle-Da2MhrVe.js → vue-ui-relation-circle-CRnH2ikm.js} +3 -3
  126. package/dist/{vue-ui-ridgeline-D7gFs8yR.js → vue-ui-ridgeline-Blejn8LY.js} +3 -3
  127. package/dist/{vue-ui-rings-DkDJ0k5b.js → vue-ui-rings-C1U38Bp0.js} +321 -309
  128. package/dist/{vue-ui-scatter-yv4JzJID.js → vue-ui-scatter-DTsCc9hg.js} +584 -572
  129. package/dist/{vue-ui-skeleton-oFnh5zWs.js → vue-ui-skeleton-BPr3u7IL.js} +2 -2
  130. package/dist/{vue-ui-smiley-DJVusLnp.js → vue-ui-smiley-BIjAIpJ9.js} +1 -1
  131. package/dist/{vue-ui-spark-trend-IqZWPvSB.js → vue-ui-spark-trend-B7w4Mg8O.js} +3 -3
  132. package/dist/{vue-ui-sparkbar-_FW47iYj.js → vue-ui-sparkbar-lVDnYEYA.js} +3 -3
  133. package/dist/{vue-ui-sparkgauge--2vk2Y23.js → vue-ui-sparkgauge-BryoGCoc.js} +3 -3
  134. package/dist/{vue-ui-sparkhistogram-CFEIPa5n.js → vue-ui-sparkhistogram-BdNoLb9L.js} +3 -3
  135. package/dist/{vue-ui-sparkline-Cs9CJR6W.js → vue-ui-sparkline-CNFD5K6z.js} +3 -3
  136. package/dist/vue-ui-sparkstackbar-CZ4tGL-_.js +750 -0
  137. package/dist/vue-ui-stackbar-DfsgaZy7.js +2369 -0
  138. package/dist/vue-ui-stackline-Cx7q2sGF.js +2483 -0
  139. package/dist/vue-ui-strip-plot-BcYhLPHM.js +1752 -0
  140. package/dist/{vue-ui-table-CiccGbRB.js → vue-ui-table-BzF75YjN.js} +3 -3
  141. package/dist/{vue-ui-table-heatmap-DnP3pzh2.js → vue-ui-table-heatmap-BSUab4fG.js} +1 -1
  142. package/dist/{vue-ui-table-sparkline-Bp7RiZh4.js → vue-ui-table-sparkline-B9ICTtoE.js} +2 -2
  143. package/dist/{vue-ui-thermometer-CawumQKP.js → vue-ui-thermometer-Am7llqdI.js} +3 -3
  144. package/dist/{vue-ui-timer-CXinMW7q.js → vue-ui-timer-D6EvkM31.js} +2 -2
  145. package/dist/{vue-ui-tiremarks-BnI2uhki.js → vue-ui-tiremarks-DiQJu8Em.js} +3 -3
  146. package/dist/{vue-ui-treemap-DTlFbfD6.js → vue-ui-treemap-wUZpijpr.js} +310 -298
  147. package/dist/vue-ui-waffle-6hO0flDT.js +1633 -0
  148. package/dist/{vue-ui-wheel-B02tiG0p.js → vue-ui-wheel-DnyCE0CK.js} +3 -3
  149. package/dist/{vue-ui-word-cloud-BZnCOMHx.js → vue-ui-word-cloud-D_MZ3gCS.js} +385 -372
  150. package/dist/{vue-ui-world-DO2VZ-T-.js → vue-ui-world-QNGY2WPz.js} +474 -462
  151. package/dist/{vue-ui-xy-CD6BiP_g.js → vue-ui-xy-BD-ighya.js} +2 -2
  152. package/dist/{vue-ui-xy-BC9GVdWE.js → vue-ui-xy-Ctcwn7Rk.js} +1447 -1432
  153. package/dist/{vue-ui-xy-canvas-DANPuyf4.js → vue-ui-xy-canvas-DUeglcdP.js} +523 -511
  154. package/package.json +1 -1
  155. package/dist/vue-ui-flow-qYAq3Rmn.js +0 -1217
  156. package/dist/vue-ui-galaxy-BVX-o2f-.js +0 -1085
  157. package/dist/vue-ui-history-plot-D-d-1ZiM.js +0 -1698
  158. package/dist/vue-ui-onion-CG6myK7a.js +0 -1235
  159. package/dist/vue-ui-sparkstackbar-Cvbue77A.js +0 -738
  160. package/dist/vue-ui-stackbar-C5ANS2hd.js +0 -2355
  161. package/dist/vue-ui-stackline-7yajJFW4.js +0 -2469
  162. package/dist/vue-ui-strip-plot-BT6Eqhup.js +0 -1740
  163. package/dist/vue-ui-waffle-CjgRkQAp.js +0 -1621
@@ -0,0 +1,1229 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { $ as t, Ct as n, D as r, Lt as i, Pt as a, S as o, X as s, Yt as c, Z as l, Zt as u, b as d, i as f, n as p, nt as m, q as ee, r as h, t as g, w as te } from "./lib-Dql7cqyA.js";
3
+ import { n as _, t as v } from "./useHints-Dq_w2E8B.js";
4
+ import { t as ne } from "./useConfig-D32D002m.js";
5
+ import { t as y } from "./usePrinter-DISD7q5m.js";
6
+ import { n as b, t as x } from "./BaseScanner-Dzc8VT3j.js";
7
+ import { t as re } from "./useNestedProp-Chvyfpl-.js";
8
+ import { t as S } from "./useThemeCheck-C43Tcqmk.js";
9
+ import { t as ie } from "./useChartExport-iwOqiIWX.js";
10
+ import { t as ae } from "./img-DhGApYG0.js";
11
+ import { n as oe } from "./Title-CPHi-evi.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-X4kF4PvW.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-hhrkQ3Lk.js")), Xe = O(() => import("./BaseIcon-D8R6_sKH.js").then((e) => e.n)), Ze = O(() => import("./vue-ui-accordion-DmkL8A59.js").then((e) => e.n)), Qe = O(() => import("./DataTable-oiM9uWrQ.js")), $e = O(() => import("./PenAndPaper-KFzKlvbi.js").then((e) => e.t)), et = O(() => import("./UserOptions-2x4VklMW.js").then((e) => e.n)), tt = O(() => import("./PackageVersion-KBMdaOXg.js").then((e) => e.t)), nt = O(() => import("./BaseDraggableDialog-Gm4Q30j0.js").then((e) => e.n)), { vue_ui_flow: rt } = ne(), { isThemeValid: it, warnInvalidTheme: at } = S(), R = e, ot = Oe, z = N(ee()), 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
+ _({
106
+ config: () => U.value,
107
+ dataset: () => R.dataset,
108
+ component: "VueUiFlow",
109
+ rules: [v.emptyArray, v.noHint]
110
+ });
111
+ let Dt = C(() => U.value.userOptions.useCursorPointer), Ot = C(() => u({
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 } = b({
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: u({
177
+ defaultConfig: U.value,
178
+ userConfig: Ot.value
179
+ })
180
+ }), Mt = C(() => U.value.debug);
181
+ function Nt() {
182
+ if (a(R.dataset) && (m({
183
+ componentName: "VueUiFlow",
184
+ type: "dataset",
185
+ debug: Mt.value
186
+ }), jt.value = !0), a(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 = re({
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 = re({
211
+ userConfig: me[n] || R.config,
212
+ defaultConfig: e
213
+ });
214
+ t = {
215
+ ...re({
216
+ userConfig: R.config,
217
+ defaultConfig: r
218
+ }),
219
+ customPalette: e.customPalette.length ? e.customPalette : c[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 = l(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 } = y({
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(() => te(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
+ d(e[2]),
261
+ e[3] ? o(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: ee()
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)), o = new Set(e.map(([, e]) => e)), s = Array.from(a).filter((e) => !o.has(e)), c = {};
283
+ s.forEach((e, t) => {
284
+ c[e] = qt.value[t] || i[t % i.length];
285
+ });
286
+ let l = {};
287
+ e.forEach(([e, t, n, r]) => {
288
+ r && (l[e] = r, l[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 = l[e] || a || (s.includes(e) ? c[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 u = $t.value, f = en.value.width, p = en.value.height, m = Object.keys(n).map(Number).sort((e, t) => e - t), h = m.length || 1, g = h > 1 ? f / (h - 1) : 0, te = Number(Jt.value), _ = Number(G.value.gapPx ?? G.value.gap ?? 8), v = Number(G.value.minHeight || 0);
296
+ function ne(e) {
297
+ let r = n[e], i = r.length;
298
+ if (!i) return Infinity;
299
+ let a = Math.max(0, (i - 1) * _), o = Math.max(0, p - a), s = Math.min(v, 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 y = m.map(ne), b = y.length ? Math.min(...y) : 0, x = {};
313
+ m.forEach((e) => {
314
+ let r = n[e], i = r.length, a = Math.max(0, (i - 1) * _), o = Math.max(0, p - a), s = Math.min(v, i ? o / i : 0), c = r.map((e) => Math.max(s, (t[e].value || 0) * b)), l = c.reduce((e, t) => e + t, 0) + a, d = Math.max(0, (p - l) / 2);
315
+ r.forEach((n, r) => {
316
+ let a = c[r], o = u.left + e * g, s = d;
317
+ x[n] = {
318
+ x: o,
319
+ y: s,
320
+ absoluteY: s,
321
+ height: a,
322
+ i: r,
323
+ color: t[n].color,
324
+ value: t[n].value,
325
+ id: ee()
326
+ }, d += a, r < i - 1 && (d += _);
327
+ });
328
+ });
329
+ let re = [], S = u.top, ie = {}, ae = {};
330
+ Object.keys(t).forEach((e) => {
331
+ ie[e] = x[e]?.y ?? 0, ae[e] = 0;
332
+ });
333
+ let oe = !!Et.value.smooth, se = .5;
334
+ return m.forEach((e) => {
335
+ n[e].forEach((e) => {
336
+ let n = t[e], r = x[e];
337
+ if (!n.children || !n.children.length) return;
338
+ let i = r.y;
339
+ n.children.forEach(({ target: a, value: o }) => {
340
+ let s = x[a], c = t[a], l = n.outflow > 0 ? o / n.outflow : 0, u = c.inflow > 0 ? o / c.inflow : 0, f = d(i + S), p = d(i + l * r.height + S), m = ie[a], h = m + u * s.height;
341
+ ae[a] += o;
342
+ let g = c.inflow > 0 && ae[a] >= c.inflow - 1e-6, _ = s.y + s.height;
343
+ (g || h > _ - .25) && (h = _);
344
+ let v = d(m + S), ne = d(h + S), y = d(r.x + te), b = d(s.x), ce;
345
+ if (!oe || b <= y) ce = `M ${y} ${f} L ${y} ${p} L ${b} ${ne} L ${b} ${v} Z`;
346
+ else {
347
+ let e = b - y, t = d(y + e * se), n = d(b - e * se), r = f, i = v, a = p, o = ne;
348
+ ce = `M ${y} ${r} C ${t} ${r}, ${n} ${i}, ${b} ${i} L ${b} ${o} C ${n} ${o}, ${t} ${a}, ${y} ${a} Z`;
349
+ }
350
+ re.push({
351
+ id: ee(),
352
+ source: e,
353
+ target: a,
354
+ path: ce,
355
+ value: o,
356
+ sourceColor: n.color,
357
+ targetColor: t[a].color
358
+ }), i = p - S, ie[a] = h;
359
+ });
360
+ });
361
+ }), {
362
+ nodeCoordinates: x,
363
+ links: re
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, t, r = "pointer", i = null) {
403
+ $.value = [], X.value = nn(e.name), Z.value = e.name, on.value = e.id, St.value = r, bt.value = i, V.value = e.id;
404
+ let a = e.name, o = Yt.value, c = 0, l = 0, u = [], d = [], p = new Set(o.map(([e]) => e)), m = new Set(o.map(([, e]) => e)), ee = Array.from(p).filter((e) => !m.has(e)), h = o.filter(([e]) => ee.includes(e)).reduce((e, [t, n, r]) => e + r, 0), g = {};
405
+ Y.value.nodes.forEach((e) => {
406
+ g[e.name] = e.color;
407
+ }), o.forEach(([e, t, n]) => {
408
+ t === a && (c += n, u.push({
409
+ source: e,
410
+ value: n,
411
+ color: g[e]
412
+ })), e === a && (l += n, d.push({
413
+ target: t,
414
+ value: n,
415
+ color: g[t]
416
+ }));
417
+ });
418
+ let te = h > 0 ? Math.max(c, l) / h * 100 : 0, _ = {
419
+ name: a,
420
+ inflow: c,
421
+ outflow: l,
422
+ from: u,
423
+ to: d,
424
+ percentOfTotal: te,
425
+ color: g[a] || "#000000"
426
+ };
427
+ U.value.events.datapointEnter && U.value.events.datapointEnter({
428
+ datapoint: _,
429
+ seriesIndex: t
430
+ }), rn.value = {
431
+ datapoint: _,
432
+ config: U.value,
433
+ seriesIndex: t,
434
+ series: Y.value
435
+ }, lt.value = !0;
436
+ let v = "", ne = K.value.tooltip.customFormat;
437
+ if (an.value = !1, n(ne)) try {
438
+ let e = ne({
439
+ datapoint: _,
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>${s({
449
+ p: K.value.tooltip.translations.percentOfTotal,
450
+ v: _.percentOfTotal,
451
+ s: "%",
452
+ r: K.value.tooltip.roundingPercentage
453
+ })}</div>` : "";
454
+ v += `<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:${_.color}">⏹</span>${_.name}${e}</div>`, _.from.length && (v += `<div>${K.value.tooltip.translations.from}</div>`, _.from.forEach((e) => {
455
+ v += `<div><span style="color:${e.color}">⏹←</span> ${e.source}: ${f(W.value.formatter, e.value, s({
456
+ p: W.value.prefix,
457
+ v: e.value,
458
+ s: W.value.suffix,
459
+ r: W.value.rounding
460
+ }))}</div>`;
461
+ })), _.to.length && (v += `<div style="margin-top:6px;">${K.value.tooltip.translations.to}</div>`, _.to.forEach((e) => {
462
+ v += `<div><span style="color:${e.color}">⏹→</span> ${e.target}: ${f(W.value.formatter, e.value, s({
463
+ p: W.value.prefix,
464
+ v: e.value,
465
+ s: W.value.suffix,
466
+ r: W.value.rounding
467
+ }))}</div>`;
468
+ })), ut.value = v;
469
+ }
470
+ r === "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 n = fn.value.map((e, t) => [
498
+ [e.source],
499
+ [e.target],
500
+ [e.value]
501
+ ]), i = [
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(n), a = r(i);
510
+ e ? e(a) : t({
511
+ csvContent: a,
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
+ ], t = fn.value.map((e, t) => [
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
+ s({
533
+ p: W.value.prefix,
534
+ v: e.value,
535
+ s: W.value.suffix,
536
+ r: W.value.rounding
537
+ })
538
+ ]), n = {
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: t,
559
+ config: n
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: d(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, t) => (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: t[2] ||= () => I(Ft)(!0),
802
+ onMouseleave: t[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, t) => (M(), E("rect", {
1034
+ "data-a11y-node-id": e.id,
1035
+ class: "vue-ui-flow-node",
1036
+ x: e.x,
1037
+ y: I(d)(e.absoluteY) + K.value.padding.top,
1038
+ height: I(d)(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(f)(W.value.formatter, e.value, I(s)({
1049
+ p: W.value.prefix,
1050
+ v: e.value,
1051
+ s: W.value.suffix,
1052
+ r: W.value.rounding
1053
+ }))}`,
1054
+ onMouseenter: (n) => ln(e, t, "pointer", _n.value.get(e.id)),
1055
+ onMouseleave: (e) => un(t),
1056
+ onClick: (e) => dn(t)
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(d)(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(p)({
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, t) => (M(), E("text", {
1069
+ x: e.x + Jt.value / 2,
1070
+ y: I(d)(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(f)(W.value.formatter, e.value, I(s)({
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: t
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: t[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: t[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(x, { key: 0 })) : T("", !0)], !0)
1225
+ ], 46, ke));
1226
+ }
1227
+ }, [["__scopeId", "data-v-040cb62f"]]);
1228
+ //#endregion
1229
+ export { Oe as n, Ye as t };