vue-data-ui 3.23.10 → 3.23.12

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