vue-data-ui 3.25.4 → 3.25.6

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 (213) hide show
  1. package/README.md +13 -13
  2. package/dist/{BaseDraggableDialog-BM_R41j8.js → BaseDraggableDialog-Gm4Q30j0.js} +1 -1
  3. package/dist/{BaseIcon-t83PDe9k.js → BaseIcon-D8R6_sKH.js} +5 -5
  4. package/dist/{BaseLegendToggle-__JnV08B.js → BaseLegendToggle-CXQrLjd-.js} +1 -1
  5. package/dist/{BaseZoomControls-Xo16vFa4.js → BaseZoomControls-BTzjVDPM.js} +1 -1
  6. package/dist/{ColorPicker-ZJrR3Olp.js → ColorPicker-CUy15T72.js} +102 -100
  7. package/dist/{DataTable-COIO9gi4.js → DataTable-oiM9uWrQ.js} +1 -1
  8. package/dist/{HillActions-Cl-dNBZR.js → HillActions-Dn8aKOVJ.js} +1 -1
  9. package/dist/{NonSvgPenAndPaper-DS84BAOx.js → NonSvgPenAndPaper-DFXjpRyl.js} +2 -2
  10. package/dist/{PackageVersion-5SWftabm.js → PackageVersion-ur6jKRL5.js} +1 -1
  11. package/dist/{PenAndPaper-B_SdRSKH.js → PenAndPaper-KFzKlvbi.js} +20 -4
  12. package/dist/{SlicerPreview-GvsdvE-h.js → SlicerPreview-B6iHOC9L.js} +1 -1
  13. package/dist/{UserOptions-f3Q0nqrj.js → UserOptions-2x4VklMW.js} +1 -1
  14. package/dist/components/vue-ui-3d-bar.js +1 -1
  15. package/dist/components/vue-ui-accordion.js +1 -1
  16. package/dist/components/vue-ui-age-pyramid.js +1 -1
  17. package/dist/components/vue-ui-annotator.js +1 -1
  18. package/dist/components/vue-ui-bullet.js +1 -1
  19. package/dist/components/vue-ui-bump.js +1 -1
  20. package/dist/components/vue-ui-candlestick.js +1 -1
  21. package/dist/components/vue-ui-carousel-table.js +1 -1
  22. package/dist/components/vue-ui-chestnut.js +1 -1
  23. package/dist/components/vue-ui-chord.js +1 -1
  24. package/dist/components/vue-ui-circle-pack.js +1 -1
  25. package/dist/components/vue-ui-cursor.js +1 -1
  26. package/dist/components/vue-ui-dag.js +1 -1
  27. package/dist/components/vue-ui-dashboard.js +1 -1
  28. package/dist/components/vue-ui-digits.js +1 -1
  29. package/dist/components/vue-ui-donut-evolution.js +1 -1
  30. package/dist/components/vue-ui-donut.js +1 -1
  31. package/dist/components/vue-ui-dumbbell.js +1 -1
  32. package/dist/components/vue-ui-flow.js +1 -1
  33. package/dist/components/vue-ui-funnel.js +1 -1
  34. package/dist/components/vue-ui-galaxy.js +1 -1
  35. package/dist/components/vue-ui-gauge.js +1 -1
  36. package/dist/components/vue-ui-geo.js +1 -1
  37. package/dist/components/vue-ui-gizmo.js +1 -1
  38. package/dist/components/vue-ui-heatmap.js +1 -1
  39. package/dist/components/vue-ui-hill.js +1 -1
  40. package/dist/components/vue-ui-history-plot.js +1 -1
  41. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  42. package/dist/components/vue-ui-icon.js +1 -1
  43. package/dist/components/vue-ui-kpi.js +1 -1
  44. package/dist/components/vue-ui-label.js +1 -1
  45. package/dist/components/vue-ui-mini-loader.js +1 -1
  46. package/dist/components/vue-ui-molecule.js +1 -1
  47. package/dist/components/vue-ui-mood-radar.js +1 -1
  48. package/dist/components/vue-ui-nested-donuts.js +1 -1
  49. package/dist/components/vue-ui-onion.js +1 -1
  50. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  51. package/dist/components/vue-ui-quadrant.js +1 -1
  52. package/dist/components/vue-ui-quick-chart.js +1 -1
  53. package/dist/components/vue-ui-radar.js +1 -1
  54. package/dist/components/vue-ui-rating.js +1 -1
  55. package/dist/components/vue-ui-relation-circle.js +1 -1
  56. package/dist/components/vue-ui-ridgeline.js +1 -1
  57. package/dist/components/vue-ui-rings.js +1 -1
  58. package/dist/components/vue-ui-scatter.js +1 -1
  59. package/dist/components/vue-ui-skeleton.js +1 -1
  60. package/dist/components/vue-ui-smiley.js +1 -1
  61. package/dist/components/vue-ui-spark-trend.js +1 -1
  62. package/dist/components/vue-ui-sparkbar.js +1 -1
  63. package/dist/components/vue-ui-sparkgauge.js +1 -1
  64. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  65. package/dist/components/vue-ui-sparkline.js +1 -1
  66. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  67. package/dist/components/vue-ui-stackbar.js +1 -1
  68. package/dist/components/vue-ui-stackline.js +1 -1
  69. package/dist/components/vue-ui-strip-plot.js +1 -1
  70. package/dist/components/vue-ui-table-heatmap.js +1 -1
  71. package/dist/components/vue-ui-table-sparkline.js +1 -1
  72. package/dist/components/vue-ui-table.js +1 -1
  73. package/dist/components/vue-ui-thermometer.js +1 -1
  74. package/dist/components/vue-ui-timer.js +1 -1
  75. package/dist/components/vue-ui-tiremarks.js +1 -1
  76. package/dist/components/vue-ui-treemap.js +1 -1
  77. package/dist/components/vue-ui-vertical-bar.js +1 -1
  78. package/dist/components/vue-ui-waffle.js +1 -1
  79. package/dist/components/vue-ui-wheel.js +1 -1
  80. package/dist/components/vue-ui-word-cloud.js +1 -1
  81. package/dist/components/vue-ui-world.js +1 -1
  82. package/dist/components/vue-ui-xy-canvas.js +1 -1
  83. package/dist/components/vue-ui-xy.js +1 -1
  84. package/dist/{package-DmsdiyeS.js → package-Dx7M6sYy.js} +1 -1
  85. package/dist/{render-common-zoPh9a78.js → render-common-DETHvNhl.js} +1 -1
  86. package/dist/ssr/vue-ui-donut.js +1 -1
  87. package/dist/ssr/vue-ui-xy.js +1 -1
  88. package/dist/ssr.js +2 -2
  89. package/dist/style.css +1 -1
  90. package/dist/types/vue-data-ui.d.ts +80 -1
  91. package/dist/types/vue-ui-annotator.d.ts +58 -2
  92. package/dist/{useConfig-CyCVHo81.js → useConfig-CIQZ6_r7.js} +1339 -1313
  93. package/dist/{useObjectBindings-ByORl1rV.js → useObjectBindings---mHNfbS.js} +2 -2
  94. package/dist/utils.js +1 -1
  95. package/dist/{vue-data-ui-DTj71yB7.js → vue-data-ui-Dh3_EsHb.js} +70 -70
  96. package/dist/vue-data-ui.js +71 -71
  97. package/dist/vue-ui-3d-bar-i1REAKnM.js +1831 -0
  98. package/dist/{vue-ui-accordion-D4zsdacF.js → vue-ui-accordion-BSmBUjwZ.js} +2 -2
  99. package/dist/vue-ui-age-pyramid-DuHblCNO.js +1293 -0
  100. package/dist/vue-ui-annotator-CTQHAPho.js +3325 -0
  101. package/dist/vue-ui-bullet-CYLnKrmM.js +702 -0
  102. package/dist/{vue-ui-bump-BkOtQNWe.js → vue-ui-bump-DhwySwgn.js} +382 -380
  103. package/dist/vue-ui-candlestick-BpiECaDj.js +1859 -0
  104. package/dist/{vue-ui-carousel-table-CRgbs7jR.js → vue-ui-carousel-table-D-T2yA7-.js} +2 -2
  105. package/dist/vue-ui-chestnut-1MsZ9Q3r.js +2016 -0
  106. package/dist/vue-ui-chord-QBQUSe7r.js +1347 -0
  107. package/dist/vue-ui-circle-pack-ZWEwtesD.js +1635 -0
  108. package/dist/{vue-ui-cursor-BHyXRadA.js → vue-ui-cursor-CHQcHAHQ.js} +2 -2
  109. package/dist/{vue-ui-dag-CyVqaLbF.js → vue-ui-dag-C_inEafb.js} +794 -792
  110. package/dist/{vue-ui-dashboard-7I-7wvCP.js → vue-ui-dashboard-Bs2mBur5.js} +74 -72
  111. package/dist/{vue-ui-digits-BBL8uERO.js → vue-ui-digits-DwE4MoXI.js} +2 -2
  112. package/dist/vue-ui-donut-BM9dMHXj.js +2415 -0
  113. package/dist/{vue-ui-donut-DcgUuefk.js → vue-ui-donut-CbOSJmRu.js} +2 -2
  114. package/dist/vue-ui-donut-evolution-C97_RHus.js +1552 -0
  115. package/dist/vue-ui-dumbbell-DwKa5EL5.js +1533 -0
  116. package/dist/vue-ui-flow-DTTr3YL9.js +1217 -0
  117. package/dist/vue-ui-funnel-C4pkBk3D.js +749 -0
  118. package/dist/vue-ui-galaxy-CuAPLOvX.js +1085 -0
  119. package/dist/vue-ui-gauge-DLDULH26.js +934 -0
  120. package/dist/{vue-ui-geo-jR4P4pbt.js → vue-ui-geo-DXIHhp-G.js} +431 -429
  121. package/dist/{vue-ui-gizmo-D6W86s9o.js → vue-ui-gizmo-PuURiePo.js} +2 -2
  122. package/dist/vue-ui-heatmap-mvWLKB99.js +1555 -0
  123. package/dist/{vue-ui-hill-fFq7pm-g.js → vue-ui-hill-DqsVJkmO.js} +472 -470
  124. package/dist/vue-ui-history-plot-BBVLgt9_.js +1698 -0
  125. package/dist/{vue-ui-horizontal-bar-D3Sft4kp.js → vue-ui-horizontal-bar-y8Q8PZwT.js} +513 -511
  126. package/dist/{vue-ui-kpi-fzLsKlyE.js → vue-ui-kpi-B2hf3kpp.js} +2 -2
  127. package/dist/{vue-ui-label-BSgLalWD.js → vue-ui-label-ClMQ5Gez.js} +1 -1
  128. package/dist/{vue-ui-mini-loader-BL2odRfu.js → vue-ui-mini-loader-DtPOVIkK.js} +1 -1
  129. package/dist/vue-ui-molecule-eeW1Pmg8.js +929 -0
  130. package/dist/{vue-ui-mood-radar-bvGx6XgG.js → vue-ui-mood-radar-Dd1qfUiu.js} +378 -376
  131. package/dist/vue-ui-nested-donuts-CUARCr6O.js +1503 -0
  132. package/dist/vue-ui-onion-NoxHP0cG.js +1235 -0
  133. package/dist/{vue-ui-parallel-coordinate-plot-B_QJ4N9o.js → vue-ui-parallel-coordinate-plot-Cp3pCyxK.js} +409 -407
  134. package/dist/vue-ui-quadrant-C3kQtaeX.js +1967 -0
  135. package/dist/{vue-ui-quick-chart-BFscCR59.js → vue-ui-quick-chart-BZq517pL.js} +8 -6
  136. package/dist/vue-ui-radar-DvNrl4uD.js +1374 -0
  137. package/dist/vue-ui-rating-CWFMoYpE.js +359 -0
  138. package/dist/vue-ui-relation-circle-1iS6C0xx.js +905 -0
  139. package/dist/vue-ui-ridgeline-B-EZiPCF.js +1630 -0
  140. package/dist/vue-ui-rings-BXuwrHos.js +1252 -0
  141. package/dist/vue-ui-scatter-ByL-ZZ3B.js +2405 -0
  142. package/dist/{vue-ui-skeleton-zmbcOVEf.js → vue-ui-skeleton-BcU1onF6.js} +698 -698
  143. package/dist/vue-ui-smiley-DJVusLnp.js +376 -0
  144. package/dist/vue-ui-spark-trend-DjS31avb.js +457 -0
  145. package/dist/vue-ui-sparkbar-1Al_TLw1.js +401 -0
  146. package/dist/vue-ui-sparkgauge-CwLo53Y8.js +268 -0
  147. package/dist/vue-ui-sparkhistogram-CGw6SThG.js +589 -0
  148. package/dist/{vue-ui-sparkline-Dv7XrEzO.js → vue-ui-sparkline-CSZGBFfI.js} +511 -511
  149. package/dist/vue-ui-sparkstackbar-B8dloLMp.js +738 -0
  150. package/dist/vue-ui-stackbar-FvNd77t1.js +2355 -0
  151. package/dist/vue-ui-stackline-CP7PkqiG.js +2469 -0
  152. package/dist/vue-ui-strip-plot-DSMlDkv1.js +1740 -0
  153. package/dist/{vue-ui-table-heatmap-Dv_ZKKm3.js → vue-ui-table-heatmap-DnP3pzh2.js} +2 -2
  154. package/dist/vue-ui-table-rwKtnJKt.js +1352 -0
  155. package/dist/vue-ui-table-sparkline-B6wyEAyC.js +738 -0
  156. package/dist/{vue-ui-thermometer-DytlLJ32.js → vue-ui-thermometer-D0_KsB-y.js} +194 -192
  157. package/dist/{vue-ui-timer-CvHP4HoW.js → vue-ui-timer-1Z2zginj.js} +153 -153
  158. package/dist/vue-ui-tiremarks-zbl7aooy.js +540 -0
  159. package/dist/vue-ui-treemap-Drs4gK6L.js +1733 -0
  160. package/dist/vue-ui-waffle-DqUVsVNE.js +1621 -0
  161. package/dist/vue-ui-wheel-DLCBPW9t.js +873 -0
  162. package/dist/vue-ui-word-cloud-8Agk9h6c.js +1710 -0
  163. package/dist/{vue-ui-world-D0_2upjg.js → vue-ui-world-BOBHo7-L.js} +526 -524
  164. package/dist/vue-ui-xy-CSTJzRkk.js +5283 -0
  165. package/dist/{vue-ui-xy-D_5FfaH-.js → vue-ui-xy-Dmk1gQkI.js} +2 -2
  166. package/dist/vue-ui-xy-canvas-DANPuyf4.js +1824 -0
  167. package/dist/{vue_ui_age_pyramid-BY6c-oX_.js → vue_ui_age_pyramid-B2R66DgQ.js} +15 -6
  168. package/package.json +1 -1
  169. package/dist/vue-ui-3d-bar-CH8SpxS2.js +0 -1829
  170. package/dist/vue-ui-age-pyramid-B9MUVi75.js +0 -1241
  171. package/dist/vue-ui-annotator-CmlcWPIm.js +0 -2886
  172. package/dist/vue-ui-bullet-n8KNnDwh.js +0 -700
  173. package/dist/vue-ui-candlestick-Bxlvqk49.js +0 -1857
  174. package/dist/vue-ui-chestnut-ByDKbkG9.js +0 -2014
  175. package/dist/vue-ui-chord-DQRBgVOx.js +0 -1345
  176. package/dist/vue-ui-circle-pack-CBBc0HOe.js +0 -1633
  177. package/dist/vue-ui-donut-DfiocufT.js +0 -2413
  178. package/dist/vue-ui-donut-evolution-BoqO8By2.js +0 -1550
  179. package/dist/vue-ui-dumbbell-7M_oUQdi.js +0 -1529
  180. package/dist/vue-ui-flow-CoylrfnO.js +0 -1215
  181. package/dist/vue-ui-funnel-DaBYHWIC.js +0 -747
  182. package/dist/vue-ui-galaxy-BIebStQ3.js +0 -1083
  183. package/dist/vue-ui-gauge-CwdTmiRP.js +0 -932
  184. package/dist/vue-ui-heatmap-DXYlGwqR.js +0 -1553
  185. package/dist/vue-ui-history-plot-CgIELoD2.js +0 -1696
  186. package/dist/vue-ui-molecule-DeHWkkhy.js +0 -929
  187. package/dist/vue-ui-nested-donuts-CeAV2xPk.js +0 -1501
  188. package/dist/vue-ui-onion-B7oFulsQ.js +0 -1233
  189. package/dist/vue-ui-quadrant-DrKnz37q.js +0 -1965
  190. package/dist/vue-ui-radar-Bzx69q8f.js +0 -1372
  191. package/dist/vue-ui-rating-CimC9FQ9.js +0 -359
  192. package/dist/vue-ui-relation-circle-DIQYyDGb.js +0 -903
  193. package/dist/vue-ui-ridgeline-CPEnM45x.js +0 -1621
  194. package/dist/vue-ui-rings-qPL5Iwji.js +0 -1250
  195. package/dist/vue-ui-scatter-BB0ClTsU.js +0 -2403
  196. package/dist/vue-ui-smiley-DzPkCMN-.js +0 -376
  197. package/dist/vue-ui-spark-trend-Ciq7-k_q.js +0 -457
  198. package/dist/vue-ui-sparkbar-D1M7-naP.js +0 -401
  199. package/dist/vue-ui-sparkgauge-rsqaeR_n.js +0 -268
  200. package/dist/vue-ui-sparkhistogram-C4WXt2Ni.js +0 -589
  201. package/dist/vue-ui-sparkstackbar-DDOXdeV-.js +0 -738
  202. package/dist/vue-ui-stackbar-C_hMnOLb.js +0 -2353
  203. package/dist/vue-ui-stackline-BHGi63lD.js +0 -2467
  204. package/dist/vue-ui-strip-plot-Cygpn-l8.js +0 -1738
  205. package/dist/vue-ui-table-BQna1wL6.js +0 -1352
  206. package/dist/vue-ui-table-sparkline-BCuimtk6.js +0 -738
  207. package/dist/vue-ui-tiremarks-BvjdZwgh.js +0 -538
  208. package/dist/vue-ui-treemap-C5OpqzSc.js +0 -1731
  209. package/dist/vue-ui-waffle-B7T_Zzan.js +0 -1619
  210. package/dist/vue-ui-wheel-D1B0k7IW.js +0 -871
  211. package/dist/vue-ui-word-cloud-C4pX6jop.js +0 -1708
  212. package/dist/vue-ui-xy-Ck41KYqF.js +0 -5281
  213. package/dist/vue-ui-xy-canvas-B_8Mu19r.js +0 -1824
@@ -1,1215 +0,0 @@
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, Zt as l, b as u, i as d, n as f, nt as p, q as ee, r as m, t as h, w as g } from "./lib-Dql7cqyA.js";
3
- import { n as te, t as _ } from "./useHints-Dq_w2E8B.js";
4
- import { t as v } from "./useConfig-CyCVHo81.js";
5
- import { t as y } from "./usePrinter-DISD7q5m.js";
6
- import { n as b, t as x } from "./BaseScanner-DZvpgOjM.js";
7
- import { t as S } from "./useNestedProp-Chvyfpl-.js";
8
- import { t as ne } from "./useThemeCheck-C43Tcqmk.js";
9
- import { t as C } from "./useChartExport-iwOqiIWX.js";
10
- import { t as re } from "./img-DhGApYG0.js";
11
- import { n as ie } from "./Title-CPHi-evi.js";
12
- import { t as ae } from "./_plugin-vue_export-helper-B3ysoDQm.js";
13
- import { l as oe, t as se } from "./useResponsive-ZtArZtUf.js";
14
- import { t as ce } from "./A11yDataTable-DdRsVULz.js";
15
- import { t as le } from "./useUserOptionState-DK-_1ddE.js";
16
- import { t as ue } from "./useChartAccessibility-DYqac8yF.js";
17
- import { t as de } from "./Legend-X4kF4PvW.js";
18
- import { t as fe } from "./vue_ui_flow-BewZjjKG.js";
19
- import { Fragment as pe, Teleport as me, computed as w, createBlock as T, createCommentVNode as E, createElementBlock as D, createElementVNode as O, createSlots as he, createTextVNode as ge, createVNode as _e, defineAsyncComponent as k, guardReactiveProps as A, mergeProps as ve, nextTick as ye, normalizeClass as be, normalizeProps as j, normalizeStyle as M, onMounted as xe, openBlock as N, ref as P, renderList as Se, renderSlot as F, resolveDynamicComponent as Ce, toDisplayString as I, toRefs as we, unref as L, watch as Te, withCtx as R } from "vue";
20
- //#region src/components/vue-ui-flow.vue
21
- var Ee = /* @__PURE__ */ e({ default: () => qe }), De = ["id"], Oe = ["id"], ke = {
22
- key: 2,
23
- ref: "noTitle",
24
- class: "vue-data-ui-no-title-space",
25
- style: "height:36px; width: 100%;background:transparent"
26
- }, Ae = ["id"], je = { style: { position: "relative" } }, Me = [
27
- "xmlns",
28
- "aria-describedby",
29
- "viewBox"
30
- ], Ne = ["width", "height"], Pe = ["id"], Fe = ["stop-color"], Ie = ["stop-color"], Le = [
31
- "d",
32
- "fill",
33
- "stroke",
34
- "stroke-width"
35
- ], Re = [
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
- ], ze = { key: 1 }, Be = [
50
- "x",
51
- "y",
52
- "font-size",
53
- "fill"
54
- ], Ve = [
55
- "x",
56
- "y",
57
- "font-size",
58
- "fill"
59
- ], He = {
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
- }, Ue = {
70
- key: 5,
71
- class: "vue-data-ui-watermark"
72
- }, We = ["id"], Ge = ["onClick"], Ke = { style: {
73
- display: "flex",
74
- "align-items": "center"
75
- } }, qe = /*#__PURE__*/ ae({
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: ae, emit: Ee }) {
93
- let qe = k(() => import("./Tooltip-hhrkQ3Lk.js")), Je = k(() => import("./BaseIcon-t83PDe9k.js").then((e) => e.n)), Ye = k(() => import("./vue-ui-accordion-D4zsdacF.js").then((e) => e.n)), Xe = k(() => import("./DataTable-COIO9gi4.js")), Ze = k(() => import("./PenAndPaper-B_SdRSKH.js").then((e) => e.t)), Qe = k(() => import("./UserOptions-f3Q0nqrj.js").then((e) => e.n)), $e = k(() => import("./PackageVersion-5SWftabm.js").then((e) => e.t)), et = k(() => import("./BaseDraggableDialog-BM_R41j8.js").then((e) => e.n)), { vue_ui_flow: tt } = v(), { isThemeValid: nt, warnInvalidTheme: rt } = ne(), z = e, it = Ee, B = P(ee()), V = P(null), at = P(0), ot = P(0), st = P(!1), ct = P(""), lt = P(null), ut = P(null), dt = P(null), ft = P(null), pt = P(null), mt = P(!1), ht = P(null), gt = P(null), _t = P(null), vt = P(null), H = P(null), yt = P({
94
- x: 0,
95
- y: 0
96
- }), bt = P("pointer"), xt = P(!1), St = w(() => !!z.dataset && z.dataset.length);
97
- xe(() => {
98
- mt.value = !0, kt();
99
- });
100
- let U = P(!1);
101
- function Ct(e) {
102
- U.value = e, at.value += 1;
103
- }
104
- let W = P(Nt());
105
- te({
106
- config: () => W.value,
107
- dataset: () => z.dataset,
108
- component: "VueUiFlow",
109
- rules: [_.emptyArray, _.noHint]
110
- });
111
- let G = w(() => W.value.userOptions.useCursorPointer), wt = w(() => l({
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: W.value.skeletonConfig ?? {}
134
- })), { loading: Tt, FINAL_DATASET: Et, manualLoading: Dt } = b({
135
- ...we(z),
136
- FINAL_CONFIG: W,
137
- prepareConfig: Nt,
138
- skeletonDataset: z.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: l({
177
- defaultConfig: W.value,
178
- userConfig: wt.value
179
- })
180
- }), Ot = w(() => W.value.debug);
181
- function kt() {
182
- if (a(z.dataset) && (p({
183
- componentName: "VueUiFlow",
184
- type: "dataset",
185
- debug: Ot.value
186
- }), Dt.value = !0), a(z.dataset) || (Dt.value = W.value.loading), W.value.responsive) {
187
- let e = oe(() => {
188
- let { width: e, height: t } = se({
189
- chart: V.value,
190
- title: W.value.style.chart.title.text ? ut.value : null,
191
- legend: W.value.style.chart.legend.show ? lt.value : null,
192
- source: dt.value
193
- });
194
- requestAnimationFrame(() => {
195
- Pt.value = e, Ft.value = t;
196
- });
197
- });
198
- ft.value && (pt.value && ft.value.unobserve(pt.value), ft.value.disconnect()), ft.value = new ResizeObserver(e), pt.value = V.value.parentNode, ft.value.observe(pt.value);
199
- }
200
- }
201
- let { userOptionsVisible: At, setUserOptionsVisibility: jt, keepUserOptionState: Mt } = le({ config: W.value }), { svgRef: K } = ue({ config: W.value.style.chart.title });
202
- function Nt() {
203
- let e = S({
204
- userConfig: z.config,
205
- defaultConfig: tt
206
- }), t = e, n = e.theme;
207
- if (n) {
208
- if (!nt.value(e)) rt(e), t = e;
209
- else {
210
- let r = S({
211
- userConfig: fe[n] || z.config,
212
- defaultConfig: e
213
- });
214
- t = {
215
- ...S({
216
- userConfig: z.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 = z.config.nodeCategories || {}, t.nodeCategoryColors = z.config.nodeCategoryColors || {}, t;
224
- }
225
- let Pt = P(W.value.style.chart.width), Ft = P(W.value.style.chart.height);
226
- Te(() => z.config, (e) => {
227
- Tt.value || (W.value = Nt()), At.value = !W.value.userOptions.showOnChartHover, kt(), ot.value += 1, q.value.showTable = W.value.table.show;
228
- }, { deep: !0 }), Te(() => z.dataset, (e) => {
229
- Array.isArray(e) && e.length > 0 && (Dt.value = !1);
230
- }, { deep: !0 });
231
- let { isPrinting: It, isImaging: Lt, generatePdf: Rt, generateImage: zt } = y({
232
- elementId: `flow_${B.value}`,
233
- fileName: W.value.style.chart.title.text || "vue-ui-flow",
234
- options: W.value.userOptions.print
235
- }), Bt = w(() => W.value.userOptions.show && !W.value.style.chart.title.text), Vt = w(() => g(W.value.customPalette)), Ht = w(() => W.value.style.chart.nodes.width), q = P({
236
- showTable: W.value.table.show,
237
- showTooltip: W.value.style.chart.tooltip.show
238
- });
239
- Te(W, () => {
240
- q.value = {
241
- showTable: W.value.table.show,
242
- showTooltip: W.value.style.chart.tooltip.show
243
- };
244
- }, { immediate: !0 });
245
- let Ut = w(() => !Et.value || !Et.value.length ? [] : Et.value.map((e, t) => [
246
- e[0],
247
- e[1],
248
- u(e[2]),
249
- e[3] ? o(e[3]) : Vt.value[t] || Vt.value[t % Vt.value.length] || i[t] || i[t % i.length]
250
- ]));
251
- function Wt(e) {
252
- let t = {}, n = {};
253
- function r(e, r) {
254
- t[e] || (t[e] = {
255
- level: null,
256
- inflow: 0,
257
- outflow: 0,
258
- children: [],
259
- color: null,
260
- uid: ee()
261
- }), t[e].level === null && (t[e].level = r), n[r] || (n[r] = []), n[r].includes(e) || n[r].push(e);
262
- }
263
- e.forEach(([e, n, i]) => {
264
- let a = t[e]?.level ?? 0, o = a + 1;
265
- r(e, a), r(n, o), t[e].children.push({
266
- target: n,
267
- value: i
268
- }), t[e].outflow += i, t[n].inflow += i;
269
- });
270
- 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 = {};
271
- s.forEach((e, t) => {
272
- c[e] = Vt.value[t] || i[t % i.length];
273
- });
274
- let l = {};
275
- e.forEach(([e, t, n, r]) => {
276
- r && (l[e] = r, l[t] = r);
277
- }), Object.keys(t).forEach((e, n) => {
278
- let r = W.value.nodeCategories?.[e], a = r ? W.value.nodeCategoryColors?.[r] : null;
279
- t[e].color = l[e] || a || (s.includes(e) ? c[e] : null) || i[n % i.length];
280
- }), Object.keys(t).forEach((e) => {
281
- t[e].value = Math.max(t[e].inflow, t[e].outflow);
282
- });
283
- let d = qt.value, f = Jt.value.width, p = Jt.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(Ht.value), _ = Number(W.value.style.chart.nodes.gapPx ?? W.value.style.chart.nodes.gap ?? 8), v = Number(W.value.style.chart.nodes.minHeight || 0);
284
- function y(e) {
285
- let r = n[e], i = r.length;
286
- if (!i) return Infinity;
287
- 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);
288
- for (let e = 0; e < 12; e += 1) {
289
- let e = u > 0 ? (o - c) / u : 0, t = [];
290
- for (let n = 0; n < l.length; n += 1) {
291
- let r = l[n];
292
- r < 0 || r * e < s && t.push(n);
293
- }
294
- if (!t.length) return Math.max(0, e);
295
- for (let e of t) c += s, u -= l[e], l[e] = -1;
296
- if (u <= 0) return 0;
297
- }
298
- return u > 0 ? Math.max(0, (o - c) / u) : 0;
299
- }
300
- let b = m.map(y), x = b.length ? Math.min(...b) : 0, S = {};
301
- m.forEach((e) => {
302
- 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) * x)), l = c.reduce((e, t) => e + t, 0) + a, u = Math.max(0, (p - l) / 2);
303
- r.forEach((n, r) => {
304
- let a = c[r], o = d.left + e * g, s = u;
305
- S[n] = {
306
- x: o,
307
- y: s,
308
- absoluteY: s,
309
- height: a,
310
- i: r,
311
- color: t[n].color,
312
- value: t[n].value,
313
- id: ee()
314
- }, u += a, r < i - 1 && (u += _);
315
- });
316
- });
317
- let ne = [], C = d.top, re = {}, ie = {};
318
- Object.keys(t).forEach((e) => {
319
- re[e] = S[e]?.y ?? 0, ie[e] = 0;
320
- });
321
- let ae = !!W.value.style.chart.links.smooth, oe = .5;
322
- return m.forEach((e) => {
323
- n[e].forEach((e) => {
324
- let n = t[e], r = S[e];
325
- if (!n.children || !n.children.length) return;
326
- let i = r.y;
327
- n.children.forEach(({ target: a, value: o }) => {
328
- let s = S[a], c = t[a], l = n.outflow > 0 ? o / n.outflow : 0, d = c.inflow > 0 ? o / c.inflow : 0, f = u(i + C), p = u(i + l * r.height + C), m = re[a], h = m + d * s.height;
329
- ie[a] += o;
330
- let g = c.inflow > 0 && ie[a] >= c.inflow - 1e-6, _ = s.y + s.height;
331
- (g || h > _ - .25) && (h = _);
332
- let v = u(m + C), y = u(h + C), b = u(r.x + te), x = u(s.x), se;
333
- if (!ae || x <= b) se = `M ${b} ${f} L ${b} ${p} L ${x} ${y} L ${x} ${v} Z`;
334
- else {
335
- let e = x - b, t = u(b + e * oe), n = u(x - e * oe), r = f, i = v, a = p, o = y;
336
- se = `M ${b} ${r} C ${t} ${r}, ${n} ${i}, ${x} ${i} L ${x} ${o} C ${n} ${o}, ${t} ${a}, ${b} ${a} Z`;
337
- }
338
- ne.push({
339
- id: ee(),
340
- source: e,
341
- target: a,
342
- path: se,
343
- value: o,
344
- sourceColor: n.color,
345
- targetColor: t[a].color
346
- }), i = p - C, re[a] = h;
347
- });
348
- });
349
- }), {
350
- nodeCoordinates: S,
351
- links: ne
352
- };
353
- }
354
- let J = w(() => {
355
- let e = Wt(Et.value);
356
- return {
357
- nodes: Object.keys(e.nodeCoordinates).map((t, n) => ({
358
- ...e.nodeCoordinates[t],
359
- name: t
360
- })),
361
- links: e.links
362
- };
363
- }), Gt = w(() => Pt.value), Kt = w(() => Ft.value), qt = w(() => W.value.style.chart.padding), Jt = w(() => ({
364
- width: Math.max(0, Gt.value - 40 - qt.value.right - qt.value.left),
365
- height: Math.max(0, Kt.value - qt.value.top - qt.value.bottom)
366
- })), Yt = w(() => ({
367
- width: Gt.value,
368
- height: Kt.value
369
- }));
370
- function Xt(e) {
371
- let t = {}, n = {}, r = /* @__PURE__ */ new Set();
372
- return Ut.value.forEach(([e, r, i]) => {
373
- t[e] || (t[e] = []), n[r] || (n[r] = []), t[e].push(r), n[r].push(e);
374
- }), t[e] && t[e].forEach((e) => r.add(e)), n[e] && n[e].forEach((e) => r.add(e)), Array.from(r).concat(e);
375
- }
376
- let Y = P(null), X = P(null), Z = P(null), Zt = P(!1), Qt = P(null);
377
- function $t() {
378
- Qt.value = null, Y.value = null, X.value = null, st.value = !1, vt.value = null, H.value = null;
379
- }
380
- function en(e) {
381
- if (!K.value || !e) return;
382
- let t = K.value.querySelector(`[data-a11y-node-id="${e}"]`);
383
- if (!t) return;
384
- let n = t.getBoundingClientRect();
385
- yt.value = {
386
- x: n.left + n.width / 2,
387
- y: n.top + n.height / 2
388
- };
389
- }
390
- function tn(e, t, r = "pointer", i = null) {
391
- $.value = [], Y.value = Xt(e.name), X.value = e.name, Qt.value = e.id, bt.value = r, vt.value = i, H.value = e.id;
392
- let a = e.name, o = Ut.value, c = 0, l = 0, u = [], f = [], p = new Set(o.map(([e]) => e)), ee = new Set(o.map(([, e]) => e)), m = Array.from(p).filter((e) => !ee.has(e)), h = o.filter(([e]) => m.includes(e)).reduce((e, [t, n, r]) => e + r, 0), g = {};
393
- J.value.nodes.forEach((e) => {
394
- g[e.name] = e.color;
395
- }), o.forEach(([e, t, n]) => {
396
- t === a && (c += n, u.push({
397
- source: e,
398
- value: n,
399
- color: g[e]
400
- })), e === a && (l += n, f.push({
401
- target: t,
402
- value: n,
403
- color: g[t]
404
- }));
405
- });
406
- let te = h > 0 ? Math.max(c, l) / h * 100 : 0, _ = {
407
- name: a,
408
- inflow: c,
409
- outflow: l,
410
- from: u,
411
- to: f,
412
- percentOfTotal: te,
413
- color: g[a] || "#000000"
414
- };
415
- W.value.events.datapointEnter && W.value.events.datapointEnter({
416
- datapoint: _,
417
- seriesIndex: t
418
- }), Z.value = {
419
- datapoint: _,
420
- config: W.value,
421
- seriesIndex: t,
422
- series: J.value
423
- }, st.value = !0;
424
- let v = "", y = W.value.style.chart.tooltip.customFormat;
425
- if (Zt.value = !1, n(y)) try {
426
- let e = y({
427
- datapoint: _,
428
- series: J.value,
429
- config: W.value
430
- });
431
- typeof e == "string" && (ct.value = e, Zt.value = !0);
432
- } catch {
433
- console.warn("Custom format cannot be applied.");
434
- }
435
- if (!Zt.value) {
436
- let e = W.value.style.chart.tooltip.showPercentage ? `<div>${s({
437
- p: W.value.style.chart.tooltip.translations.percentOfTotal,
438
- v: _.percentOfTotal,
439
- s: "%",
440
- r: W.value.style.chart.tooltip.roundingPercentage
441
- })}</div>` : "";
442
- v += `<div style="width:100%;text-align:center;border-bottom:1px solid ${W.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;"><span style="margin-right:4px; color:${_.color}">⏹</span>${_.name}${e}</div>`, _.from.length && (v += `<div>${W.value.style.chart.tooltip.translations.from}</div>`, _.from.forEach((e) => {
443
- v += `<div><span style="color:${e.color}">⏹←</span> ${e.source}: ${d(W.value.style.chart.nodes.labels.formatter, e.value, s({
444
- p: W.value.style.chart.nodes.labels.prefix,
445
- v: e.value,
446
- s: W.value.style.chart.nodes.labels.suffix,
447
- r: W.value.style.chart.nodes.labels.rounding
448
- }))}</div>`;
449
- })), _.to.length && (v += `<div style="margin-top:6px;">${W.value.style.chart.tooltip.translations.to}</div>`, _.to.forEach((e) => {
450
- v += `<div><span style="color:${e.color}">⏹→</span> ${e.target}: ${d(W.value.style.chart.nodes.labels.formatter, e.value, s({
451
- p: W.value.style.chart.nodes.labels.prefix,
452
- v: e.value,
453
- s: W.value.style.chart.nodes.labels.suffix,
454
- r: W.value.style.chart.nodes.labels.rounding
455
- }))}</div>`;
456
- })), ct.value = v;
457
- }
458
- r === "keyboard" && ye(() => {
459
- en(e.id);
460
- });
461
- }
462
- function nn(e) {
463
- let t = Z.value;
464
- W.value.events.datapointLeave && W.value.events.datapointLeave({
465
- datapoint: t,
466
- seriesIndex: e
467
- }), !(bt.value === "keyboard" && H.value) && (Qt.value = null, Y.value = null, X.value = null, st.value = !1);
468
- }
469
- function rn(e) {
470
- let t = Z.value;
471
- W.value.events.datapointClick && W.value.events.datapointClick({
472
- datapoint: t,
473
- seriesIndex: e
474
- });
475
- }
476
- let an = w(() => J.value.links.map(({ source: e, target: t, sourceColor: n, targetColor: r, value: i }) => ({
477
- source: e,
478
- target: t,
479
- sourceColor: n,
480
- targetColor: r,
481
- value: i
482
- })));
483
- function on(e = null) {
484
- ye(() => {
485
- let n = an.value.map((e, t) => [
486
- [e.source],
487
- [e.target],
488
- [e.value]
489
- ]), i = [
490
- [W.value.style.chart.title.text],
491
- [W.value.style.chart.title.subtitle.text],
492
- [
493
- [W.value.table.columnNames.source],
494
- [W.value.table.columnNames.target],
495
- [W.value.table.columnNames.value]
496
- ]
497
- ].concat(n), a = r(i);
498
- e ? e(a) : t({
499
- csvContent: a,
500
- title: W.value.style.chart.title.text || "vue-ui-flow"
501
- });
502
- });
503
- }
504
- let sn = w(() => {
505
- let e = [
506
- W.value.table.columnNames.source,
507
- W.value.table.columnNames.target,
508
- W.value.table.columnNames.value
509
- ], t = an.value.map((e, t) => [
510
- {
511
- color: e.sourceColor,
512
- name: e.source,
513
- shape: "square"
514
- },
515
- {
516
- color: e.targetColor,
517
- name: e.target,
518
- shape: "square"
519
- },
520
- s({
521
- p: W.value.style.chart.nodes.labels.prefix,
522
- v: e.value,
523
- s: W.value.style.chart.nodes.labels.suffix,
524
- r: W.value.style.chart.nodes.labels.rounding
525
- })
526
- ]), n = {
527
- th: {
528
- backgroundColor: W.value.table.th.backgroundColor,
529
- color: W.value.table.th.color,
530
- outline: W.value.table.th.outline
531
- },
532
- td: {
533
- backgroundColor: W.value.table.td.backgroundColor,
534
- color: W.value.table.td.color,
535
- outline: W.value.table.td.outline
536
- },
537
- breakpoint: W.value.table.responsiveBreakpoint
538
- };
539
- return {
540
- colNames: [
541
- W.value.table.columnNames.source,
542
- W.value.table.columnNames.target,
543
- W.value.table.columnNames.value
544
- ],
545
- head: e,
546
- body: t,
547
- config: n
548
- };
549
- }), cn = w(() => ({
550
- headers: sn.value?.colNames ?? [],
551
- rows: sn.value?.body ?? []
552
- })), ln = w(() => [...J.value.nodes].map((e, t) => ({
553
- ...e,
554
- index: t,
555
- centerX: e.x + Ht.value / 2,
556
- centerY: u(e.absoluteY) + W.value.style.chart.padding.top + e.height / 2
557
- })).sort((e, t) => e.x === t.x ? e.absoluteY - t.absoluteY : e.x - t.x)), Q = w(() => {
558
- let e = [];
559
- return ln.value.forEach((t) => {
560
- let n = e.find((e) => Math.abs(e.x - t.x) <= 1);
561
- n ? n.nodes.push(t) : e.push({
562
- x: t.x,
563
- nodes: [t]
564
- });
565
- }), e.forEach((e) => {
566
- e.nodes.sort((e, t) => e.absoluteY - t.absoluteY);
567
- }), e.sort((e, t) => e.x - t.x);
568
- }), un = w(() => {
569
- let e = /* @__PURE__ */ new Map();
570
- return ln.value.forEach((t, n) => {
571
- e.set(t.id, n);
572
- }), e;
573
- });
574
- function dn() {
575
- return J.value;
576
- }
577
- function fn() {
578
- q.value.showTable = !q.value.showTable;
579
- }
580
- let pn = P(!1);
581
- function mn() {
582
- pn.value = !pn.value;
583
- }
584
- function hn() {
585
- q.value.showTooltip = !q.value.showTooltip;
586
- }
587
- let gn = w(() => {
588
- let e = new Set(J.value.nodes.map((e) => W.value.nodeCategories[e.name] || "__uncategorized__"));
589
- return Array.from(e).map((e) => ({
590
- name: e,
591
- color: W.value.nodeCategoryColors[e] || i[0],
592
- shape: "square",
593
- count: J.value.nodes.filter((t) => (W.value.nodeCategories[t.name] || "__uncategorized__") === e).length
594
- })).map((e, t) => {
595
- let n = $.value.includes(t);
596
- return {
597
- ...e,
598
- segregate: () => vn({
599
- legend: e,
600
- i: t
601
- }),
602
- isSegregated: n,
603
- opacity: $.value.length ? n ? 1 : .5 : 1,
604
- display: `${e.name} (${e.count})`
605
- };
606
- });
607
- }), _n = w(() => gn.value.filter((e) => e.name !== "__uncategorized__")), $ = P([]);
608
- function vn({ legend: e, i: t }) {
609
- let n = e.name;
610
- if (Y.value?.every((e) => W.value.nodeCategories[e] === n)) {
611
- Y.value = null, X.value = null, $.value = [];
612
- return;
613
- }
614
- $.value = [t], Y.value = J.value.nodes.filter((e) => W.value.nodeCategories[e.name] === n).map((e) => e.name), X.value = null;
615
- }
616
- let yn = w(() => ({
617
- cy: "flow-legend",
618
- backgroundColor: W.value.style.chart.legend.backgroundColor,
619
- color: W.value.style.chart.legend.color,
620
- fontSize: W.value.style.chart.legend.fontSize,
621
- paddingBottom: W.value.style.chart.legend.paddingBottom,
622
- fontWeight: W.value.style.chart.legend.bold ? "bold" : "normal"
623
- }));
624
- async function bn({ scale: e = 2 } = {}) {
625
- if (!V.value) return;
626
- let { width: t, height: n } = V.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await re({
627
- domElement: V.value,
628
- base64: !0,
629
- img: !0,
630
- scale: e
631
- });
632
- return {
633
- imageUri: i,
634
- base64: a,
635
- title: W.value.style.chart.title.text,
636
- width: t,
637
- height: n,
638
- aspectRatio: r
639
- };
640
- }
641
- let xn = w(() => {
642
- let e = W.value.table.useDialog && !W.value.table.show, t = q.value.showTable;
643
- return {
644
- component: e ? et : Ye,
645
- title: `${W.value.style.chart.title.text}${W.value.style.chart.title.subtitle.text ? `: ${W.value.style.chart.title.subtitle.text}` : ""}`,
646
- props: e ? {
647
- backgroundColor: W.value.table.th.backgroundColor,
648
- color: W.value.table.th.color,
649
- headerColor: W.value.table.th.color,
650
- headerBg: W.value.table.th.backgroundColor,
651
- isFullscreen: U.value,
652
- fullscreenParent: V.value,
653
- forcedWidth: Math.min(800, window.innerWidth * .8),
654
- isCursorPointer: G.value
655
- } : {
656
- hideDetails: !0,
657
- config: {
658
- open: t,
659
- maxHeight: 1e4,
660
- body: {
661
- backgroundColor: W.value.style.chart.backgroundColor,
662
- color: W.value.style.chart.color
663
- },
664
- head: {
665
- backgroundColor: W.value.style.chart.backgroundColor,
666
- color: W.value.style.chart.color
667
- }
668
- }
669
- }
670
- };
671
- });
672
- Te(() => q.value.showTable, (e) => {
673
- W.value.table.show || (e && W.value.table.useDialog && ht.value ? ht.value.open() : "close" in ht.value && ht.value.close());
674
- });
675
- function Sn() {
676
- q.value.showTable = !1, gt.value && gt.value.setTableIconState(!1);
677
- }
678
- let Cn = w(() => _n.value.map((e) => ({
679
- ...e,
680
- name: e.display
681
- }))), wn = w(() => W.value.style.chart.backgroundColor), Tn = w(() => W.value.style.chart.legend), En = w(() => W.value.style.chart.title), { isCallbackImaging: Dn, isCallbackSvg: On, generateSvg: kn, onGenerateImage: An } = C({
682
- svg: K,
683
- title: En,
684
- legend: Tn,
685
- legendItems: Cn,
686
- backgroundColor: wn,
687
- getSvgCallback: () => W.value.userOptions.callbacks.svg,
688
- generateImage: zt
689
- });
690
- async function jn() {
691
- if (it("copyAlt", {
692
- config: W.value,
693
- dataset: J.value
694
- }), !W.value.userOptions.callbacks.altCopy) {
695
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
696
- return;
697
- }
698
- await Promise.resolve(W.value.userOptions.callbacks.altCopy({
699
- config: W.value,
700
- dataset: J.value
701
- }));
702
- }
703
- function Mn(e) {
704
- return Q.value.findIndex((t) => t.nodes.some((t) => t.id === e));
705
- }
706
- function Nn(e, t) {
707
- let n = Q.value[e];
708
- return n ? n.nodes.findIndex((e) => e.id === t) : -1;
709
- }
710
- function Pn(e, t) {
711
- let n = Q.value[e];
712
- if (!n || !n.nodes.length) return null;
713
- let r = n.nodes[0], i = Math.abs(r.centerY - t);
714
- for (let e = 1; e < n.nodes.length; e += 1) {
715
- let a = n.nodes[e], o = Math.abs(a.centerY - t);
716
- o < i && (r = a, i = o);
717
- }
718
- return r;
719
- }
720
- function Fn() {
721
- vt.value = null, H.value = null, xt.value = !0;
722
- }
723
- function In() {
724
- $t(), xt.value = !1;
725
- }
726
- function Ln(e) {
727
- if (!K.value || pn.value || document.activeElement !== K.value || !ln.value.length) return;
728
- 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";
729
- if (!t && !n && !r && !i && !a && !o) return;
730
- if (e.preventDefault(), e.stopPropagation(), o) {
731
- $t();
732
- return;
733
- }
734
- if (a) {
735
- if (vt.value === null) return;
736
- rn(vt.value);
737
- return;
738
- }
739
- if (H.value === null) {
740
- let e = Q.value[0]?.nodes?.[0];
741
- if (!e) return;
742
- let t = un.value.get(e.id) ?? 0;
743
- tn(e, t, "keyboard", t);
744
- return;
745
- }
746
- let s = un.value.get(H.value);
747
- if (s === void 0) return;
748
- let c = ln.value[s];
749
- if (!c) return;
750
- let l = Mn(c.id);
751
- if (l < 0) return;
752
- let u = null;
753
- if (r || i) {
754
- let e = Nn(l, c.id);
755
- if (e < 0) return;
756
- let t = Q.value[l];
757
- if (!t?.nodes?.length) return;
758
- let n = e + (i ? 1 : -1);
759
- n < 0 && (n = t.nodes.length - 1), n >= t.nodes.length && (n = 0), u = t.nodes[n];
760
- }
761
- if (t || n) {
762
- let e = l + (n ? 1 : -1);
763
- e < 0 && (e = Q.value.length - 1), e >= Q.value.length && (e = 0), u = Pn(e, c.centerY);
764
- }
765
- if (!u) return;
766
- let d = un.value.get(u.id);
767
- d !== void 0 && tn(u, d, "keyboard", d);
768
- }
769
- return ae({
770
- getData: dn,
771
- getImage: bn,
772
- generateCsv: on,
773
- generateImage: zt,
774
- generateSvg: kn,
775
- generatePdf: Rt,
776
- toggleTable: fn,
777
- toggleAnnotator: mn,
778
- toggleTooltip: hn,
779
- drillCategory: vn,
780
- unselectNode: nn,
781
- toggleFullscreen: Ct,
782
- copyAlt: jn
783
- }), (e, t) => (N(), D("div", {
784
- ref_key: "flowChart",
785
- ref: V,
786
- class: be(`vue-data-ui-component vue-ui-flow ${U.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
787
- style: M(`font-family:${W.value.style.fontFamily};width:100%; text-align:center;background:${W.value.style.chart.backgroundColor}`),
788
- id: `flow_${B.value}`,
789
- onMouseenter: t[2] ||= () => L(jt)(!0),
790
- onMouseleave: t[3] ||= () => {
791
- L(jt)(!1), xt.value || $t();
792
- }
793
- }, [
794
- O("div", {
795
- id: `chart-instructions-${B.value}`,
796
- class: "sr-only"
797
- }, [O("p", null, I(W.value.a11y.translations.keyboardNavigation), 1)], 8, Oe),
798
- cn.value?.rows?.length ? (N(), T(ce, {
799
- key: 0,
800
- uid: B.value,
801
- head: cn.value.headers,
802
- body: cn.value.rows,
803
- notice: W.value.a11y.translations.tableAvailable,
804
- caption: W.value.a11y.translations.tableCaption
805
- }, null, 8, [
806
- "uid",
807
- "head",
808
- "body",
809
- "notice",
810
- "caption"
811
- ])) : E("", !0),
812
- W.value.userOptions.buttons.annotator ? (N(), T(L(Ze), {
813
- key: 1,
814
- svgRef: L(K),
815
- backgroundColor: W.value.style.chart.backgroundColor,
816
- color: W.value.style.chart.color,
817
- active: pn.value,
818
- onClose: mn,
819
- isCursorPointer: G.value
820
- }, {
821
- "annotator-action-close": R(() => [F(e.$slots, "annotator-action-close", {}, void 0, !0)]),
822
- "annotator-action-color": R(({ color: t }) => [F(e.$slots, "annotator-action-color", j(A({ color: t })), void 0, !0)]),
823
- "annotator-action-draw": R(({ mode: t }) => [F(e.$slots, "annotator-action-draw", j(A({ mode: t })), void 0, !0)]),
824
- "annotator-action-undo": R(({ disabled: t }) => [F(e.$slots, "annotator-action-undo", j(A({ disabled: t })), void 0, !0)]),
825
- "annotator-action-redo": R(({ disabled: t }) => [F(e.$slots, "annotator-action-redo", j(A({ disabled: t })), void 0, !0)]),
826
- "annotator-action-delete": R(({ disabled: t }) => [F(e.$slots, "annotator-action-delete", j(A({ disabled: t })), void 0, !0)]),
827
- _: 3
828
- }, 8, [
829
- "svgRef",
830
- "backgroundColor",
831
- "color",
832
- "active",
833
- "isCursorPointer"
834
- ])) : E("", !0),
835
- Bt.value ? (N(), D("div", ke, null, 512)) : E("", !0),
836
- W.value.style.chart.title.text ? (N(), D("div", {
837
- key: 3,
838
- ref_key: "chartTitle",
839
- ref: ut,
840
- style: "width:100%;background:transparent;padding-bottom:24px"
841
- }, [(N(), T(ie, {
842
- key: `title_${ot.value}`,
843
- config: {
844
- title: {
845
- cy: "flow-title",
846
- ...W.value.style.chart.title
847
- },
848
- subtitle: {
849
- cy: "flow-subtitle",
850
- ...W.value.style.chart.title.subtitle
851
- }
852
- }
853
- }, null, 8, ["config"]))], 512)) : E("", !0),
854
- O("div", { id: `legend-top-${B.value}` }, null, 8, Ae),
855
- W.value.userOptions.show && St.value && (L(Mt) || L(At)) ? (N(), T(L(Qe), {
856
- ref_key: "userOptionsRef",
857
- ref: gt,
858
- key: `user_option_${at.value}`,
859
- backgroundColor: W.value.style.chart.backgroundColor,
860
- color: W.value.style.chart.color,
861
- isPrinting: L(It),
862
- isImaging: L(Lt),
863
- uid: B.value,
864
- hasPdf: W.value.userOptions.buttons.pdf,
865
- hasXls: W.value.userOptions.buttons.csv,
866
- hasImg: W.value.userOptions.buttons.img,
867
- hasSvg: W.value.userOptions.buttons.svg,
868
- hasTable: W.value.userOptions.buttons.table,
869
- callbacks: W.value.userOptions.callbacks,
870
- hasFullscreen: W.value.userOptions.buttons.fullscreen,
871
- hasAltCopy: W.value.userOptions.buttons.altCopy,
872
- isFullscreen: U.value,
873
- titles: { ...W.value.userOptions.buttonTitles },
874
- chartElement: V.value,
875
- position: W.value.userOptions.position,
876
- hasAnnotator: W.value.userOptions.buttons.annotator,
877
- printScale: W.value.userOptions.print.scale,
878
- isAnnotation: pn.value,
879
- hasTooltip: W.value.style.chart.tooltip.show && W.value.userOptions.buttons.tooltip,
880
- isTooltip: q.value.showTooltip,
881
- tableDialog: W.value.table.useDialog,
882
- isCursorPointer: G.value,
883
- onToggleTooltip: hn,
884
- onToggleFullscreen: Ct,
885
- onGeneratePdf: L(Rt),
886
- onGenerateCsv: on,
887
- onGenerateImage: L(An),
888
- onGenerateSvg: L(kn),
889
- onToggleTable: fn,
890
- onToggleAnnotator: mn,
891
- onCopyAlt: jn,
892
- style: M({ visibility: L(Mt) ? L(At) ? "visible" : "hidden" : "visible" })
893
- }, he({ _: 2 }, [
894
- e.$slots.menuIcon ? {
895
- name: "menuIcon",
896
- fn: R(({ isOpen: t, color: n }) => [F(e.$slots, "menuIcon", j(A({
897
- isOpen: t,
898
- color: n
899
- })), void 0, !0)]),
900
- key: "0"
901
- } : void 0,
902
- e.$slots.optionTooltip ? {
903
- name: "optionTooltip",
904
- fn: R(() => [F(e.$slots, "optionTooltip", {}, void 0, !0)]),
905
- key: "1"
906
- } : void 0,
907
- e.$slots.optionPdf ? {
908
- name: "optionPdf",
909
- fn: R(() => [F(e.$slots, "optionPdf", {}, void 0, !0)]),
910
- key: "2"
911
- } : void 0,
912
- e.$slots.optionCsv ? {
913
- name: "optionCsv",
914
- fn: R(() => [F(e.$slots, "optionCsv", {}, void 0, !0)]),
915
- key: "3"
916
- } : void 0,
917
- e.$slots.optionImg ? {
918
- name: "optionImg",
919
- fn: R(() => [F(e.$slots, "optionImg", {}, void 0, !0)]),
920
- key: "4"
921
- } : void 0,
922
- e.$slots.optionSvg ? {
923
- name: "optionSvg",
924
- fn: R(() => [F(e.$slots, "optionSvg", {}, void 0, !0)]),
925
- key: "5"
926
- } : void 0,
927
- e.$slots.optionTable ? {
928
- name: "optionTable",
929
- fn: R(() => [F(e.$slots, "optionTable", {}, void 0, !0)]),
930
- key: "6"
931
- } : void 0,
932
- e.$slots.optionFullscreen ? {
933
- name: "optionFullscreen",
934
- fn: R(({ toggleFullscreen: t, isFullscreen: n }) => [F(e.$slots, "optionFullscreen", j(A({
935
- toggleFullscreen: t,
936
- isFullscreen: n
937
- })), void 0, !0)]),
938
- key: "7"
939
- } : void 0,
940
- e.$slots.optionAnnotator ? {
941
- name: "optionAnnotator",
942
- fn: R(({ toggleAnnotator: t, isAnnotator: n }) => [F(e.$slots, "optionAnnotator", j(A({
943
- toggleAnnotator: t,
944
- isAnnotator: n
945
- })), void 0, !0)]),
946
- key: "8"
947
- } : void 0,
948
- e.$slots.optionAltCopy ? {
949
- name: "optionAltCopy",
950
- fn: R(({ altCopy: t }) => [F(e.$slots, "optionAltCopy", j(A({ altCopy: t })), void 0, !0)]),
951
- key: "9"
952
- } : void 0,
953
- e.$slots["custom-menu-before"] ? {
954
- name: "custom-menu-before",
955
- fn: R(() => [F(e.$slots, "custom-menu-before", {}, void 0, !0)]),
956
- key: "10"
957
- } : void 0,
958
- e.$slots["custom-menu-after"] ? {
959
- name: "custom-menu-after",
960
- fn: R(() => [F(e.$slots, "custom-menu-after", {}, void 0, !0)]),
961
- key: "11"
962
- } : void 0
963
- ]), 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("."))) : E("", !0),
964
- O("div", je, [(N(), D("svg", {
965
- ref_key: "svgRef",
966
- ref: K,
967
- xmlns: L(h),
968
- "aria-describedby": `chart-instructions-${B.value}`,
969
- viewBox: `0 0 ${Yt.value.width} ${Yt.value.height}`,
970
- class: be({
971
- "vue-data-ui-fullscreen--on": U.value,
972
- "vue-data-ui-fulscreen--off": !U.value
973
- }),
974
- style: M({
975
- maxWidth: "100%",
976
- overflow: "visible",
977
- background: "transparent",
978
- color: W.value.style.chart.color
979
- }),
980
- tabindex: "0",
981
- onFocus: Fn,
982
- onBlur: In,
983
- onKeydown: Ln
984
- }, [
985
- _e(L($e)),
986
- e.$slots["chart-background"] ? (N(), D("foreignObject", {
987
- key: 0,
988
- x: 0,
989
- y: 0,
990
- width: Yt.value.width,
991
- height: Yt.value.height,
992
- style: { pointerEvents: "none" }
993
- }, [F(e.$slots, "chart-background", {}, void 0, !0)], 8, Ne)) : E("", !0),
994
- O("defs", null, [(N(!0), D(pe, null, Se(J.value.links, (e, t) => (N(), D("linearGradient", {
995
- id: e.id,
996
- x1: "0%",
997
- y1: "0%",
998
- x2: "100%",
999
- y2: "0%"
1000
- }, [O("stop", {
1001
- offset: "0%",
1002
- "stop-color": e.sourceColor
1003
- }, null, 8, Fe), O("stop", {
1004
- offset: "100%",
1005
- "stop-color": e.targetColor
1006
- }, null, 8, Ie)], 8, Pe))), 256))]),
1007
- (N(!0), D(pe, null, Se(J.value.links, (e) => (N(), D("path", {
1008
- class: "vue-ui-flow-link",
1009
- d: e.path,
1010
- "stroke-linejoin": "round",
1011
- "stroke-miterlimit": "1",
1012
- fill: `url(#${e.id})`,
1013
- stroke: W.value.style.chart.links.stroke,
1014
- "stroke-width": W.value.style.chart.links.strokeWidth,
1015
- style: M(`
1016
- opacity:${Y.value ? Y.value.includes(e.source) && Y.value.includes(e.target) ? 1 : .3 : X.value ? [e.target, e.source].includes(X.value) ? 1 : .3 : W.value.style.chart.links.opacity}
1017
- `)
1018
- }, null, 12, Le))), 256)),
1019
- (N(!0), D(pe, null, Se(J.value.nodes, (e, t) => (N(), D("rect", {
1020
- "data-a11y-node-id": e.id,
1021
- class: "vue-ui-flow-node",
1022
- x: e.x,
1023
- y: L(u)(e.absoluteY) + W.value.style.chart.padding.top,
1024
- height: L(u)(e.height),
1025
- width: Ht.value,
1026
- fill: e.color,
1027
- stroke: W.value.style.chart.nodes.stroke,
1028
- "stroke-width": W.value.style.chart.nodes.strokeWidth,
1029
- rx: W.value.style.chart.nodes.borderRadius,
1030
- style: M({
1031
- opacity: Y.value ? Y.value.includes(e.name) ? 1 : .3 : 1,
1032
- outline: Qt.value !== null && Qt.value === e.id ? "2px solid currentColor" : void 0
1033
- }),
1034
- "aria-label": `${e.name}: ${L(d)(W.value.style.chart.nodes.labels.formatter, e.value, L(s)({
1035
- p: W.value.style.chart.nodes.labels.prefix,
1036
- v: e.value,
1037
- s: W.value.style.chart.nodes.labels.suffix,
1038
- r: W.value.style.chart.nodes.labels.rounding
1039
- }))}`,
1040
- onMouseenter: (n) => tn(e, t, "pointer", un.value.get(e.id)),
1041
- onMouseleave: (e) => nn(t),
1042
- onClick: (e) => rn(t)
1043
- }, null, 44, Re))), 256)),
1044
- W.value.style.chart.nodes.labels.show ? (N(), D("g", ze, [(N(!0), D(pe, null, Se(J.value.nodes, (e, t) => (N(), D("text", {
1045
- x: e.x + Ht.value / 2,
1046
- y: (W.value.style.chart.nodes.labels.showValue ? L(u)(e.absoluteY + e.height / 2 - W.value.style.chart.nodes.labels.fontSize / 4) : e.absoluteY + e.height / 2 + W.value.style.chart.nodes.labels.fontSize / 3) + W.value.style.chart.padding.top,
1047
- "font-size": W.value.style.chart.nodes.labels.fontSize,
1048
- fill: L(m)(e.color),
1049
- "text-anchor": "middle",
1050
- style: M(`pointer-events: none; opacity:${Y.value ? +!!Y.value.includes(e.name) : 1}`)
1051
- }, I(W.value.style.chart.nodes.labels.abbreviation.use ? L(f)({
1052
- source: e.name,
1053
- length: W.value.style.chart.nodes.labels.abbreviation.length
1054
- }) : e.name), 13, Be))), 256)), W.value.style.chart.nodes.labels.showValue ? (N(!0), D(pe, { key: 0 }, Se(J.value.nodes, (e, t) => (N(), D("text", {
1055
- x: e.x + Ht.value / 2,
1056
- y: L(u)(e.absoluteY + e.height / 2 + W.value.style.chart.nodes.labels.fontSize / 1.3) + W.value.style.chart.padding.top,
1057
- "font-size": W.value.style.chart.nodes.labels.fontSize,
1058
- fill: L(m)(e.color),
1059
- "text-anchor": "middle",
1060
- style: M(`pointer-events: none; opacity:${Y.value ? +!!Y.value.includes(e.name) : 1}`)
1061
- }, I(L(d)(W.value.style.chart.nodes.labels.formatter, e.value, L(s)({
1062
- p: W.value.style.chart.nodes.labels.prefix,
1063
- v: e.value,
1064
- s: W.value.style.chart.nodes.labels.suffix,
1065
- r: W.value.style.chart.nodes.labels.rounding
1066
- }), {
1067
- datapoint: e,
1068
- seriesIndex: t
1069
- })), 13, Ve))), 256)) : E("", !0)])) : E("", !0),
1070
- F(e.$slots, "svg", { svg: {
1071
- ...Yt.value,
1072
- isPrintingImg: L(It) || L(Lt) || L(Dn),
1073
- isPrintingSvg: L(On)
1074
- } }, void 0, !0)
1075
- ], 46, Me)), e.$slots.hint ? (N(), D("div", He, [F(e.$slots, "hint", j(A({
1076
- hint: W.value.a11y.translations.keyboardNavigation,
1077
- isVisible: xt.value
1078
- })), void 0, !0)])) : E("", !0)]),
1079
- e.$slots.watermark ? (N(), D("div", Ue, [F(e.$slots, "watermark", j(A({ isPrinting: L(It) || L(Lt) || L(Dn) || L(On) })), void 0, !0)])) : E("", !0),
1080
- O("div", { id: `legend-bottom-${B.value}` }, null, 8, We),
1081
- mt.value && (W.value.style.chart.legend.show || e.$slots.legend) ? (N(), T(me, {
1082
- key: 6,
1083
- to: W.value.style.chart.legend.position === "top" ? `#legend-top-${B.value}` : `#legend-bottom-${B.value}`
1084
- }, [O("div", {
1085
- ref_key: "chartLegend",
1086
- ref: lt
1087
- }, [F(e.$slots, "legend", { legend: gn.value }, () => [W.value.style.chart.legend.show && _n.value.length ? (N(), T(de, {
1088
- key: 0,
1089
- legendSet: _n.value,
1090
- config: yn.value,
1091
- isCursorPointer: G.value,
1092
- onClickMarker: t[0] ||= (e) => vn(e)
1093
- }, {
1094
- item: R(({ legend: e, index: t }) => [L(Tt) ? E("", !0) : (N(), D("div", {
1095
- key: 0,
1096
- onClick: (t) => e.segregate(),
1097
- style: M(`opacity:${$.value.length ? $.value.includes(t) ? 1 : .5 : 1}`)
1098
- }, I(e.display), 13, Ge))]),
1099
- _: 1
1100
- }, 8, [
1101
- "legendSet",
1102
- "config",
1103
- "isCursorPointer"
1104
- ])) : E("", !0)], !0)], 512)], 8, ["to"])) : E("", !0),
1105
- e.$slots.source ? (N(), D("div", {
1106
- key: 7,
1107
- ref_key: "source",
1108
- ref: dt,
1109
- dir: "auto"
1110
- }, [F(e.$slots, "source", {}, void 0, !0)], 512)) : E("", !0),
1111
- _e(L(qe), {
1112
- ref_key: "tooltip",
1113
- ref: _t,
1114
- teleportTo: W.value.style.chart.tooltip.teleportTo,
1115
- show: q.value.showTooltip && st.value,
1116
- backgroundColor: W.value.style.chart.tooltip.backgroundColor,
1117
- color: W.value.style.chart.tooltip.color,
1118
- fontSize: W.value.style.chart.tooltip.fontSize,
1119
- borderRadius: W.value.style.chart.tooltip.borderRadius,
1120
- borderColor: W.value.style.chart.tooltip.borderColor,
1121
- borderWidth: W.value.style.chart.tooltip.borderWidth,
1122
- backgroundOpacity: W.value.style.chart.tooltip.backgroundOpacity,
1123
- position: W.value.style.chart.tooltip.position,
1124
- offsetX: W.value.style.chart.tooltip.offsetX,
1125
- offsetY: W.value.style.chart.tooltip.offsetY,
1126
- parent: V.value,
1127
- content: ct.value,
1128
- isCustom: Zt.value,
1129
- isFullscreen: U.value,
1130
- smooth: W.value.style.chart.tooltip.smooth,
1131
- backdropFilter: W.value.style.chart.tooltip.backdropFilter,
1132
- smoothForce: W.value.style.chart.tooltip.smoothForce,
1133
- smoothSnapThreshold: W.value.style.chart.tooltip.smoothSnapThreshold,
1134
- isA11yMode: bt.value === "keyboard",
1135
- a11yPosition: yt.value
1136
- }, {
1137
- "tooltip-before": R(() => [F(e.$slots, "tooltip-before", j(A({ ...Z.value })), void 0, !0)]),
1138
- tooltip: R(() => [F(e.$slots, "tooltip", j(A({ ...Z.value })), void 0, !0)]),
1139
- "tooltip-after": R(() => [F(e.$slots, "tooltip-after", j(A({ ...Z.value })), void 0, !0)]),
1140
- _: 3
1141
- }, 8, [
1142
- "teleportTo",
1143
- "show",
1144
- "backgroundColor",
1145
- "color",
1146
- "fontSize",
1147
- "borderRadius",
1148
- "borderColor",
1149
- "borderWidth",
1150
- "backgroundOpacity",
1151
- "position",
1152
- "offsetX",
1153
- "offsetY",
1154
- "parent",
1155
- "content",
1156
- "isCustom",
1157
- "isFullscreen",
1158
- "smooth",
1159
- "backdropFilter",
1160
- "smoothForce",
1161
- "smoothSnapThreshold",
1162
- "isA11yMode",
1163
- "a11yPosition"
1164
- ]),
1165
- St.value && W.value.userOptions.buttons.table ? (N(), T(Ce(xn.value.component), ve({ key: 8 }, xn.value.props, {
1166
- ref_key: "tableUnit",
1167
- ref: ht,
1168
- onClose: Sn
1169
- }), he({
1170
- content: R(() => [_e(L(Xe), {
1171
- colNames: sn.value.colNames,
1172
- head: sn.value.head,
1173
- body: sn.value.body,
1174
- config: sn.value.config,
1175
- title: W.value.table.useDialog ? "" : xn.value.title,
1176
- withCloseButton: !W.value.table.useDialog,
1177
- isCursorPointer: G.value,
1178
- onClose: Sn
1179
- }, {
1180
- th: R(({ th: e }) => [O("div", Ke, I(e), 1)]),
1181
- td: R(({ td: e }) => [ge(I(e.name || e), 1)]),
1182
- _: 1
1183
- }, 8, [
1184
- "colNames",
1185
- "head",
1186
- "body",
1187
- "config",
1188
- "title",
1189
- "withCloseButton",
1190
- "isCursorPointer"
1191
- ])]),
1192
- _: 2
1193
- }, [W.value.table.useDialog ? {
1194
- name: "title",
1195
- fn: R(() => [ge(I(xn.value.title), 1)]),
1196
- key: "0"
1197
- } : void 0, W.value.table.useDialog ? {
1198
- name: "actions",
1199
- fn: R(() => [O("button", {
1200
- tabindex: "0",
1201
- class: "vue-ui-user-options-button",
1202
- onClick: t[1] ||= (e) => on(W.value.userOptions.callbacks.csv),
1203
- style: M({ cursor: G.value ? "pointer" : "default" })
1204
- }, [_e(L(Je), {
1205
- name: "fileCsv",
1206
- stroke: xn.value.props.color
1207
- }, null, 8, ["stroke"])], 4)]),
1208
- key: "1"
1209
- } : void 0]), 1040)) : E("", !0),
1210
- F(e.$slots, "skeleton", {}, () => [L(Tt) ? (N(), T(x, { key: 0 })) : E("", !0)], !0)
1211
- ], 46, De));
1212
- }
1213
- }, [["__scopeId", "data-v-2d049e51"]]);
1214
- //#endregion
1215
- export { Ee as n, qe as t };