vue-data-ui 3.23.9 → 3.23.11

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-CF0VFcBH.js → Arrow-DrF4NNJO.js} +1 -1
  3. package/dist/{BaseDraggableDialog-LoqqwRtV.js → BaseDraggableDialog-Dr_Q6Yt5.js} +2 -2
  4. package/dist/{BaseIcon-BfndwIWE.js → BaseIcon-BbElSC8_.js} +1 -1
  5. package/dist/{BaseLegendToggle-DZVucLnv.js → BaseLegendToggle-CtEdLr4R.js} +1 -1
  6. package/dist/{BaseZoomControls-BZvCnZEi.js → BaseZoomControls-Cvq4UmNG.js} +2 -2
  7. package/dist/{ColorPicker--ayG2YHf.js → ColorPicker-ChOgAmCi.js} +2 -2
  8. package/dist/{DataTable-BbKgJ5UI.js → DataTable-CmyEubtT.js} +2 -2
  9. package/dist/{HillActions-BD9j_sOU.js → HillActions-3HneGJhS.js} +1 -1
  10. package/dist/{Legend-CQxUgOd-.js → Legend-BJtY2RA9.js} +2 -2
  11. package/dist/{NonSvgPenAndPaper-4ypecDg1.js → NonSvgPenAndPaper-DmxzHJtV.js} +3 -3
  12. package/dist/{PackageVersion-B629oKuX.js → PackageVersion-C0b7KAMa.js} +1 -1
  13. package/dist/{PenAndPaper-C0UZ74fa.js → PenAndPaper-CIa1F5Jq.js} +3 -3
  14. package/dist/{Shape-C21CMlWS.js → Shape-BAL5bQmA.js} +1 -1
  15. package/dist/{SlicerPreview-wUw1hFwe.js → SlicerPreview-BRRyc1p7.js} +426 -426
  16. package/dist/{SparkTooltip-CjsbIhzi.js → SparkTooltip-Bou05CV_.js} +1 -1
  17. package/dist/{Title-BE3qg9xl.js → Title-CaVA8EIw.js} +1 -1
  18. package/dist/{Tooltip-DhjyfHwz.js → Tooltip-CVxJe3UW.js} +1 -1
  19. package/dist/{UserOptions-Dt98of5H.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-BYIvdTe8.js → dom-to-png-COvyU2SG.js} +1 -1
  91. package/dist/exposedLib-DrUEXSyf.js +28 -0
  92. package/dist/{img-Bnokohej.js → img-Bkzj3lDD.js} +1 -1
  93. package/dist/{labelUtils-BeVpDvTJ.js → labelUtils-iX76cA2-.js} +1 -1
  94. package/dist/{lib-Bttd6u5E.js → lib-Dqr_-I6Y.js} +166 -163
  95. package/dist/{package-C01DAl-Z.js → package-D7_0M69J.js} +1 -1
  96. package/dist/{pdf-CVIDfCrS.js → pdf-Bk_9lTdQ.js} +1 -1
  97. package/dist/{render-common-Dv5BvuwZ.js → render-common-B0f5NTO9.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-vPNvh7rV.js → useNestedProp-CulPqtou.js} +1 -1
  105. package/dist/{usePrinter-DN5bYhTG.js → usePrinter-CEiH1b6R.js} +2 -2
  106. package/dist/utils.js +9 -9
  107. package/dist/{vue-data-ui-DDZLOx_v.js → vue-data-ui-BlZHZHoH.js} +69 -69
  108. package/dist/vue-data-ui.js +73 -73
  109. package/dist/{vue-ui-3d-bar-C9Y9Uklb.js → vue-ui-3d-bar-CtT2BovY.js} +379 -381
  110. package/dist/{vue-ui-accordion-CLU_su1P.js → vue-ui-accordion-C6L7glHU.js} +3 -3
  111. package/dist/{vue-ui-age-pyramid-D98P16h3.js → vue-ui-age-pyramid-BhGNgnLB.js} +27 -27
  112. package/dist/{vue-ui-annotator-QjHngrui.js → vue-ui-annotator-BwIu0JUV.js} +9 -9
  113. package/dist/vue-ui-bullet-BI7KJyJx.js +700 -0
  114. package/dist/{vue-ui-bump-BP7UOMFX.js → vue-ui-bump-BCQ97z1G.js} +325 -325
  115. package/dist/{vue-ui-candlestick-XPQeeduK.js → vue-ui-candlestick-Cs7I5MQS.js} +245 -245
  116. package/dist/{vue-ui-carousel-table-D39rMqRb.js → vue-ui-carousel-table-CDjAjc4b.js} +108 -108
  117. package/dist/{vue-ui-chestnut-B0xezYHS.js → vue-ui-chestnut-d6GxjfcP.js} +86 -86
  118. package/dist/vue-ui-chord-BuConnPN.js +1345 -0
  119. package/dist/vue-ui-circle-pack-CmxANHap.js +1633 -0
  120. package/dist/{vue-ui-cursor-JXCd2JAw.js → vue-ui-cursor-CQcnZYBv.js} +3 -3
  121. package/dist/{vue-ui-dag-D42c5rJN.js → vue-ui-dag-DKUZN-aQ.js} +923 -885
  122. package/dist/{vue-ui-dashboard-9-9eUWEy.js → vue-ui-dashboard-ciI4wMe6.js} +69 -69
  123. package/dist/{vue-ui-digits-CCkSVNpz.js → vue-ui-digits-DWf1vzYE.js} +3 -3
  124. package/dist/{vue-ui-donut-BnVCS9Ll.js → vue-ui-donut-CvCViwSI.js} +64 -64
  125. package/dist/vue-ui-donut-DZTtuFAG.js +2413 -0
  126. package/dist/{vue-ui-donut-evolution-CgjBE6EG.js → vue-ui-donut-evolution-BvZX3Gi8.js} +347 -347
  127. package/dist/{vue-ui-dumbbell-CVX2tGDU.js → vue-ui-dumbbell-BZywCpHd.js} +233 -236
  128. package/dist/vue-ui-flow-D5jcKr_S.js +1214 -0
  129. package/dist/vue-ui-funnel-7zX5QnQx.js +747 -0
  130. package/dist/{vue-ui-galaxy-CThLjvdQ.js → vue-ui-galaxy-BuGd-Ojm.js} +323 -325
  131. package/dist/vue-ui-gauge-BlDQIpBk.js +932 -0
  132. package/dist/{vue-ui-geo-DwNCnH_W.js → vue-ui-geo-PWGZw4Un.js} +34 -34
  133. package/dist/{vue-ui-gizmo-BkQUnPvN.js → vue-ui-gizmo-CTxB3PAl.js} +10 -10
  134. package/dist/{vue-ui-heatmap-COX6rafn.js → vue-ui-heatmap-sFF5IbM8.js} +472 -472
  135. package/dist/{vue-ui-hill-7BisXEYH.js → vue-ui-hill-DO3r2s-i.js} +10 -10
  136. package/dist/vue-ui-history-plot-Cj-Olvhn.js +1695 -0
  137. package/dist/vue-ui-horizontal-bar-B34aYuDZ.js +1708 -0
  138. package/dist/{vue-ui-kpi-R9bl7je_.js → vue-ui-kpi-Co6y1YlE.js} +3 -3
  139. package/dist/{vue-ui-mini-loader-SNMKnmMa.js → vue-ui-mini-loader-BVSIAFYi.js} +2 -2
  140. package/dist/{vue-ui-molecule-CNtY2_yF.js → vue-ui-molecule-ERAB4YzZ.js} +157 -163
  141. package/dist/{vue-ui-mood-radar-DUxhOQpR.js → vue-ui-mood-radar-BPp7L6OP.js} +302 -304
  142. package/dist/{vue-ui-nested-donuts-Bbub_wCe.js → vue-ui-nested-donuts-CX5ut2yp.js} +110 -113
  143. package/dist/vue-ui-onion-CWYJTUCq.js +1233 -0
  144. package/dist/vue-ui-parallel-coordinate-plot-DJrV-dVt.js +1430 -0
  145. package/dist/{vue-ui-quadrant-CFvonilu.js → vue-ui-quadrant-wj8Up03L.js} +32 -32
  146. package/dist/{vue-ui-quick-chart-iEJt6333.js → vue-ui-quick-chart-CPYdScHL.js} +153 -153
  147. package/dist/{vue-ui-radar-ClZ_OIr5.js → vue-ui-radar-D3gLQcI5.js} +41 -41
  148. package/dist/{vue-ui-rating-BnXrMeGg.js → vue-ui-rating-dBCk6ECe.js} +26 -26
  149. package/dist/vue-ui-relation-circle-DeNBOPjz.js +903 -0
  150. package/dist/vue-ui-ridgeline-DQcZJ_hv.js +1614 -0
  151. package/dist/vue-ui-rings-CF9NfFW2.js +1250 -0
  152. package/dist/vue-ui-scatter-U_xxKOte.js +2403 -0
  153. package/dist/{vue-ui-skeleton-Drk48XZi.js → vue-ui-skeleton-GA4wzjXV.js} +3 -3
  154. package/dist/{vue-ui-smiley-BQuXRW4o.js → vue-ui-smiley-D1pW2Fdy.js} +23 -23
  155. package/dist/{vue-ui-spark-trend-CYcS6-FN.js → vue-ui-spark-trend-BXRGMn5-.js} +23 -23
  156. package/dist/{vue-ui-sparkbar-eqLrT50j.js → vue-ui-sparkbar-96D0eR-o.js} +24 -24
  157. package/dist/{vue-ui-sparkgauge-C_b1h4DY.js → vue-ui-sparkgauge-BWBek2u2.js} +61 -61
  158. package/dist/{vue-ui-sparkhistogram-BzJr83-i.js → vue-ui-sparkhistogram-Cqs068RX.js} +15 -15
  159. package/dist/vue-ui-sparkline-B8cyY_P1.js +1584 -0
  160. package/dist/{vue-ui-sparkstackbar-O6Ojc2m8.js → vue-ui-sparkstackbar-C0BkLc2b.js} +207 -207
  161. package/dist/vue-ui-stackbar-DtsOc7B_.js +2332 -0
  162. package/dist/{vue-ui-stackline-D7d_Yqid.js → vue-ui-stackline-MSs0pdhE.js} +751 -747
  163. package/dist/{vue-ui-strip-plot-AljSBqsw.js → vue-ui-strip-plot-Df-TomML.js} +63 -66
  164. package/dist/vue-ui-table-BKSRQGVK.js +1352 -0
  165. package/dist/{vue-ui-table-heatmap-DRABMw2H.js → vue-ui-table-heatmap-CglQqfWH.js} +84 -84
  166. package/dist/{vue-ui-table-sparkline-OScDr7Z5.js → vue-ui-table-sparkline-B7Dh-fN2.js} +11 -11
  167. package/dist/vue-ui-thermometer-DXuLn8NC.js +756 -0
  168. package/dist/{vue-ui-timer--q-f8RPJ.js → vue-ui-timer-orCjVwS4.js} +12 -12
  169. package/dist/{vue-ui-tiremarks-B2Fji5g0.js → vue-ui-tiremarks-DNoQ6Fl2.js} +12 -12
  170. package/dist/{vue-ui-treemap-CHqCU3Mt.js → vue-ui-treemap-90_Clj0e.js} +51 -54
  171. package/dist/vue-ui-waffle-BSQXyJ1S.js +1610 -0
  172. package/dist/{vue-ui-wheel-Dz2QzZcJ.js → vue-ui-wheel-CfU0Nnn0.js} +28 -28
  173. package/dist/{vue-ui-word-cloud-DBp8kZ4A.js → vue-ui-word-cloud-AgMvmPlI.js} +38 -41
  174. package/dist/{vue-ui-world-DbYSOiC4.js → vue-ui-world-D0Z9B6M2.js} +120 -123
  175. package/dist/{vue-ui-xy-C23skZ-G.js → vue-ui-xy-5Te2TfRK.js} +1645 -1641
  176. package/dist/vue-ui-xy-canvas-BHpBO5dS.js +1823 -0
  177. package/dist/{vue-ui-xy-CrHCmWhv.js → vue-ui-xy-ua_mFu_a.js} +99 -99
  178. package/package.json +1 -1
  179. package/dist/exposedLib-C0DPCgFj.js +0 -28
  180. package/dist/vue-ui-bullet-GgRg9sbN.js +0 -700
  181. package/dist/vue-ui-chord-eOIKOfDO.js +0 -1345
  182. package/dist/vue-ui-circle-pack-kCN1R-pw.js +0 -1636
  183. package/dist/vue-ui-donut-HrEXYDqO.js +0 -2415
  184. package/dist/vue-ui-flow-R-fW_EeT.js +0 -1217
  185. package/dist/vue-ui-funnel-CT3ixpCM.js +0 -750
  186. package/dist/vue-ui-gauge-DRXsVxYq.js +0 -932
  187. package/dist/vue-ui-history-plot-Bn_M0AFg.js +0 -1698
  188. package/dist/vue-ui-horizontal-bar-CkRRidx3.js +0 -1708
  189. package/dist/vue-ui-onion-Bix9MN3w.js +0 -1233
  190. package/dist/vue-ui-parallel-coordinate-plot-6SI2vJOo.js +0 -1430
  191. package/dist/vue-ui-relation-circle-CZ68uWhc.js +0 -903
  192. package/dist/vue-ui-ridgeline-BSiPLA08.js +0 -1614
  193. package/dist/vue-ui-rings-mGN_bpo1.js +0 -1252
  194. package/dist/vue-ui-scatter-C0PouRMY.js +0 -2403
  195. package/dist/vue-ui-sparkline-CyJKVGYw.js +0 -1584
  196. package/dist/vue-ui-stackbar-J5QzbBaA.js +0 -2328
  197. package/dist/vue-ui-table-CBdCPS2r.js +0 -1352
  198. package/dist/vue-ui-thermometer-DWmM_Hn9.js +0 -756
  199. package/dist/vue-ui-waffle-C1ksX6OD.js +0 -1612
  200. package/dist/vue-ui-xy-canvas-B-KxaFGF.js +0 -1819
@@ -1,1217 +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-Bttd6u5E.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-DN5bYhTG.js";
6
- import { n as y, t as b } from "./BaseScanner-DZvpgOjM.js";
7
- import { t as x } from "./useNestedProp-vPNvh7rV.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-Bnokohej.js";
11
- import { n as ae } from "./Title-BE3qg9xl.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-CQxUgOd-.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 = ["innerHTML"], Je = /*#__PURE__*/ oe({
73
- __name: "vue-ui-flow",
74
- props: {
75
- config: {
76
- type: Object,
77
- default() {
78
- return {};
79
- }
80
- },
81
- dataset: {
82
- type: Array,
83
- default() {
84
- return [];
85
- }
86
- }
87
- },
88
- emits: ["copyAlt"],
89
- setup(e, { expose: oe, emit: De }) {
90
- let Je = O(() => import("./Tooltip-DhjyfHwz.js")), Ye = O(() => import("./BaseIcon-BfndwIWE.js").then((e) => e.n)), Xe = O(() => import("./vue-ui-accordion-CLU_su1P.js").then((e) => e.n)), Ze = O(() => import("./DataTable-BbKgJ5UI.js")), Qe = O(() => import("./PenAndPaper-C0UZ74fa.js").then((e) => e.t)), $e = O(() => import("./UserOptions-Dt98of5H.js").then((e) => e.n)), et = O(() => import("./PackageVersion-B629oKuX.js").then((e) => e.t)), tt = O(() => import("./BaseDraggableDialog-LoqqwRtV.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({
91
- x: 0,
92
- y: 0
93
- }), xt = N("pointer"), St = N(!1), Ct = C(() => !!R.dataset && R.dataset.length);
94
- Se(() => {
95
- ht.value = !0, At();
96
- });
97
- let H = N(!1);
98
- function wt(e) {
99
- H.value = e, ot.value += 1;
100
- }
101
- let U = N(Pt());
102
- ne({
103
- config: () => U.value,
104
- dataset: () => R.dataset,
105
- component: "VueUiFlow",
106
- rules: [g.emptyArray, g.noHint]
107
- });
108
- let W = C(() => U.value.userOptions.useCursorPointer), Tt = C(() => r({
109
- defaultConfig: {
110
- userOptions: { show: !1 },
111
- nodeCategories: {
112
- B: "A",
113
- C: "B"
114
- },
115
- nodeCategoryColors: {
116
- A: "#CACACA",
117
- B: "#AAAAAA"
118
- },
119
- table: { show: !1 },
120
- style: { chart: {
121
- backgroundColor: "#99999930",
122
- legend: { backgroundColor: "transparent" },
123
- nodes: {
124
- labels: { show: !1 },
125
- stroke: "#666666"
126
- },
127
- links: { stroke: "#666666" }
128
- } }
129
- },
130
- userConfig: U.value.skeletonConfig ?? {}
131
- })), { loading: Et, FINAL_DATASET: Dt, manualLoading: Ot } = y({
132
- ...Te(R),
133
- FINAL_CONFIG: U,
134
- prepareConfig: Pt,
135
- skeletonDataset: R.config?.skeletonDataset ?? [
136
- [
137
- "A",
138
- "B",
139
- 2,
140
- "#CACACA"
141
- ],
142
- [
143
- "B",
144
- "C",
145
- 1,
146
- "#CACACA"
147
- ],
148
- [
149
- "C",
150
- "D",
151
- .5,
152
- "#CACACA"
153
- ],
154
- [
155
- "E",
156
- "F",
157
- 1,
158
- "#AAAAAA"
159
- ],
160
- [
161
- "F",
162
- "G",
163
- .5,
164
- "#AAAAAA"
165
- ],
166
- [
167
- "G",
168
- "H",
169
- .25,
170
- "#AAAAAA"
171
- ]
172
- ],
173
- skeletonConfig: r({
174
- defaultConfig: U.value,
175
- userConfig: Tt.value
176
- })
177
- }), kt = C(() => U.value.debug);
178
- function At() {
179
- if (u(R.dataset) && (m({
180
- componentName: "VueUiFlow",
181
- type: "dataset",
182
- debug: kt.value
183
- }), Ot.value = !0), u(R.dataset) || (Ot.value = U.value.loading), U.value.responsive) {
184
- let e = se(() => {
185
- let { width: e, height: t } = ce({
186
- chart: B.value,
187
- title: U.value.style.chart.title.text ? dt.value : null,
188
- legend: U.value.style.chart.legend.show ? ut.value : null,
189
- source: ft.value
190
- });
191
- requestAnimationFrame(() => {
192
- Ft.value = e, It.value = t;
193
- });
194
- });
195
- 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);
196
- }
197
- }
198
- let { userOptionsVisible: jt, setUserOptionsVisibility: Mt, keepUserOptionState: Nt } = ue({ config: U.value }), { svgRef: G } = de({ config: U.value.style.chart.title });
199
- function Pt() {
200
- let e = x({
201
- userConfig: R.config,
202
- defaultConfig: nt
203
- }), t = e, n = e.theme;
204
- if (n) if (!rt.value(e)) it(e), t = e;
205
- else {
206
- let r = x({
207
- userConfig: pe[n] || R.config,
208
- defaultConfig: e
209
- });
210
- t = {
211
- ...x({
212
- userConfig: R.config,
213
- defaultConfig: r
214
- }),
215
- customPalette: e.customPalette.length ? e.customPalette : i[n] || a
216
- };
217
- }
218
- else t = e;
219
- return t.nodeCategories = R.config.nodeCategories || {}, t.nodeCategoryColors = R.config.nodeCategoryColors || {}, t;
220
- }
221
- let Ft = N(U.value.style.chart.width), It = N(U.value.style.chart.height);
222
- Ee(() => R.config, (e) => {
223
- Et.value || (U.value = Pt()), jt.value = !U.value.userOptions.showOnChartHover, At(), st.value += 1, K.value.showTable = U.value.table.show;
224
- }, { deep: !0 }), Ee(() => R.dataset, (e) => {
225
- Array.isArray(e) && e.length > 0 && (Ot.value = !1);
226
- }, { deep: !0 });
227
- let { isPrinting: Lt, isImaging: Rt, generatePdf: zt, generateImage: Bt } = v({
228
- elementId: `flow_${z.value}`,
229
- fileName: U.value.style.chart.title.text || "vue-ui-flow",
230
- options: U.value.userOptions.print
231
- }), 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({
232
- showTable: U.value.table.show,
233
- showTooltip: U.value.style.chart.tooltip.show
234
- });
235
- Ee(U, () => {
236
- K.value = {
237
- showTable: U.value.table.show,
238
- showTooltip: U.value.style.chart.tooltip.show
239
- };
240
- }, { immediate: !0 });
241
- let Wt = C(() => !Dt.value || !Dt.value.length ? [] : Dt.value.map((e, t) => [
242
- e[0],
243
- e[1],
244
- c(e[2]),
245
- e[3] ? o(e[3]) : Ht.value[t] || Ht.value[t % Ht.value.length] || a[t] || a[t % a.length]
246
- ]));
247
- function Gt(e) {
248
- let t = {}, n = {};
249
- function r(e, r) {
250
- t[e] || (t[e] = {
251
- level: null,
252
- inflow: 0,
253
- outflow: 0,
254
- children: [],
255
- color: null,
256
- uid: ee()
257
- }), t[e].level === null && (t[e].level = r), n[r] || (n[r] = []), n[r].includes(e) || n[r].push(e);
258
- }
259
- e.forEach(([e, n, i]) => {
260
- let a = t[e]?.level ?? 0, o = a + 1;
261
- r(e, a), r(n, o), t[e].children.push({
262
- target: n,
263
- value: i
264
- }), t[e].outflow += i, t[n].inflow += i;
265
- });
266
- 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 = {};
267
- s.forEach((e, t) => {
268
- l[e] = Ht.value[t] || a[t % a.length];
269
- });
270
- let u = {};
271
- e.forEach(([e, t, n, r]) => {
272
- r && (u[e] = r, u[t] = r);
273
- }), Object.keys(t).forEach((e, n) => {
274
- let r = U.value.nodeCategories?.[e], i = r ? U.value.nodeCategoryColors?.[r] : null;
275
- t[e].color = u[e] || i || (s.includes(e) ? l[e] : null) || a[n % a.length];
276
- }), Object.keys(t).forEach((e) => {
277
- t[e].value = Math.max(t[e].inflow, t[e].outflow);
278
- });
279
- 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);
280
- function v(e) {
281
- let r = n[e], i = r.length;
282
- if (!i) return Infinity;
283
- 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);
284
- for (let e = 0; e < 12; e += 1) {
285
- let e = u > 0 ? (o - c) / u : 0, t = [];
286
- for (let n = 0; n < l.length; n += 1) {
287
- let r = l[n];
288
- r < 0 || r * e < s && t.push(n);
289
- }
290
- if (!t.length) return Math.max(0, e);
291
- for (let e of t) c += s, u -= l[e], l[e] = -1;
292
- if (u <= 0) return 0;
293
- }
294
- return u > 0 ? Math.max(0, (o - c) / u) : 0;
295
- }
296
- let y = m.map(v), b = y.length ? Math.min(...y) : 0, x = {};
297
- m.forEach((e) => {
298
- 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);
299
- r.forEach((n, r) => {
300
- let a = c[r], o = d.left + e * te, s = u;
301
- x[n] = {
302
- x: o,
303
- y: s,
304
- absoluteY: s,
305
- height: a,
306
- i: r,
307
- color: t[n].color,
308
- value: t[n].value,
309
- id: ee()
310
- }, u += a, r < i - 1 && (u += g);
311
- });
312
- });
313
- let re = [], S = d.top, ie = {}, ae = {};
314
- Object.keys(t).forEach((e) => {
315
- ie[e] = x[e]?.y ?? 0, ae[e] = 0;
316
- });
317
- let oe = !!U.value.style.chart.links.smooth, se = .5;
318
- return m.forEach((e) => {
319
- n[e].forEach((e) => {
320
- let n = t[e], r = x[e];
321
- if (!n.children || !n.children.length) return;
322
- let i = r.y;
323
- n.children.forEach(({ target: a, value: o }) => {
324
- 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;
325
- ae[a] += o;
326
- let te = l.inflow > 0 && ae[a] >= l.inflow - 1e-6, g = s.y + s.height;
327
- (te || h > g - .25) && (h = g);
328
- let _ = c(m + S), v = c(h + S), y = c(r.x + ne), b = c(s.x), ce;
329
- if (!oe || b <= y) ce = `M ${y} ${f} L ${y} ${p} L ${b} ${v} L ${b} ${_} Z`;
330
- else {
331
- let e = b - y, t = c(y + e * se), n = c(b - e * se), r = f, i = _, a = p, o = v;
332
- ce = `M ${y} ${r} C ${t} ${r}, ${n} ${i}, ${b} ${i} L ${b} ${o} C ${n} ${o}, ${t} ${a}, ${y} ${a} Z`;
333
- }
334
- re.push({
335
- id: ee(),
336
- source: e,
337
- target: a,
338
- path: ce,
339
- value: o,
340
- sourceColor: n.color,
341
- targetColor: t[a].color
342
- }), i = p - S, ie[a] = h;
343
- });
344
- });
345
- }), {
346
- nodeCoordinates: x,
347
- links: re
348
- };
349
- }
350
- let q = C(() => {
351
- let e = Gt(Dt.value);
352
- return {
353
- nodes: Object.keys(e.nodeCoordinates).map((t, n) => ({
354
- ...e.nodeCoordinates[t],
355
- name: t
356
- })),
357
- links: e.links
358
- };
359
- }), Kt = C(() => Ft.value), qt = C(() => It.value), Jt = C(() => U.value.style.chart.padding), Yt = C(() => ({
360
- width: Math.max(0, Kt.value - 40 - Jt.value.right - Jt.value.left),
361
- height: Math.max(0, qt.value - Jt.value.top - Jt.value.bottom)
362
- })), Xt = C(() => ({
363
- width: Kt.value,
364
- height: qt.value
365
- }));
366
- function Zt(e) {
367
- let t = {}, n = {}, r = /* @__PURE__ */ new Set();
368
- return Wt.value.forEach(([e, r, i]) => {
369
- t[e] || (t[e] = []), n[r] || (n[r] = []), t[e].push(r), n[r].push(e);
370
- }), t[e] && t[e].forEach((e) => r.add(e)), n[e] && n[e].forEach((e) => r.add(e)), Array.from(r).concat(e);
371
- }
372
- let J = N(null), Y = N(null), X = N(null), Qt = N(!1), $t = N(null);
373
- function en() {
374
- $t.value = null, J.value = null, Y.value = null, ct.value = !1, yt.value = null, V.value = null;
375
- }
376
- function tn(e) {
377
- if (!G.value || !e) return;
378
- let t = G.value.querySelector(`[data-a11y-node-id="${e}"]`);
379
- if (!t) return;
380
- let n = t.getBoundingClientRect();
381
- bt.value = {
382
- x: n.left + n.width / 2,
383
- y: n.top + n.height / 2
384
- };
385
- }
386
- function nn(e, t, n = "pointer", r = null) {
387
- $.value = [], J.value = Zt(e.name), Y.value = e.name, $t.value = e.id, xt.value = n, yt.value = r, V.value = e.id;
388
- 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 = {};
389
- q.value.nodes.forEach((e) => {
390
- h[e.name] = e.color;
391
- }), a.forEach(([e, t, n]) => {
392
- t === i && (o += n, u.push({
393
- source: e,
394
- value: n,
395
- color: h[e]
396
- })), e === i && (c += n, d.push({
397
- target: t,
398
- value: n,
399
- color: h[t]
400
- }));
401
- });
402
- let ne = m > 0 ? Math.max(o, c) / m * 100 : 0, g = {
403
- name: i,
404
- inflow: o,
405
- outflow: c,
406
- from: u,
407
- to: d,
408
- percentOfTotal: ne,
409
- color: h[i] || "#000000"
410
- };
411
- U.value.events.datapointEnter && U.value.events.datapointEnter({
412
- datapoint: g,
413
- seriesIndex: t
414
- }), X.value = {
415
- datapoint: g,
416
- config: U.value,
417
- seriesIndex: t,
418
- series: q.value
419
- }, ct.value = !0;
420
- let _ = "", v = U.value.style.chart.tooltip.customFormat;
421
- if (Qt.value = !1, te(v)) try {
422
- let e = v({
423
- datapoint: g,
424
- series: q.value,
425
- config: U.value
426
- });
427
- typeof e == "string" && (lt.value = e, Qt.value = !0);
428
- } catch {
429
- console.warn("Custom format cannot be applied.");
430
- }
431
- if (!Qt.value) {
432
- let e = U.value.style.chart.tooltip.showPercentage ? `<div>${s({
433
- p: U.value.style.chart.tooltip.translations.percentOfTotal,
434
- v: g.percentOfTotal,
435
- s: "%",
436
- r: U.value.style.chart.tooltip.roundingPercentage
437
- })}</div>` : "";
438
- _ += `<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) => {
439
- _ += `<div><span style="color:${e.color}">⏹←</span> ${e.source}: ${l(U.value.style.chart.nodes.labels.formatter, e.value, s({
440
- p: U.value.style.chart.nodes.labels.prefix,
441
- v: e.value,
442
- s: U.value.style.chart.nodes.labels.suffix,
443
- r: U.value.style.chart.nodes.labels.rounding
444
- }))}</div>`;
445
- })), g.to.length && (_ += `<div style="margin-top:6px;">${U.value.style.chart.tooltip.translations.to}</div>`, g.to.forEach((e) => {
446
- _ += `<div><span style="color:${e.color}">⏹→</span> ${e.target}: ${l(U.value.style.chart.nodes.labels.formatter, e.value, s({
447
- p: U.value.style.chart.nodes.labels.prefix,
448
- v: e.value,
449
- s: U.value.style.chart.nodes.labels.suffix,
450
- r: U.value.style.chart.nodes.labels.rounding
451
- }))}</div>`;
452
- })), lt.value = _;
453
- }
454
- n === "keyboard" && be(() => {
455
- tn(e.id);
456
- });
457
- }
458
- function rn(e) {
459
- let t = X.value;
460
- U.value.events.datapointLeave && U.value.events.datapointLeave({
461
- datapoint: t,
462
- seriesIndex: e
463
- }), !(xt.value === "keyboard" && V.value) && ($t.value = null, J.value = null, Y.value = null, ct.value = !1);
464
- }
465
- function an(e) {
466
- let t = X.value;
467
- U.value.events.datapointClick && U.value.events.datapointClick({
468
- datapoint: t,
469
- seriesIndex: e
470
- });
471
- }
472
- let on = C(() => q.value.links.map(({ source: e, target: t, sourceColor: n, targetColor: r, value: i }) => ({
473
- source: e,
474
- target: t,
475
- sourceColor: n,
476
- targetColor: r,
477
- value: i
478
- })));
479
- function sn(e = null) {
480
- be(() => {
481
- let r = on.value.map((e, t) => [
482
- [e.source],
483
- [e.target],
484
- [e.value]
485
- ]), i = [
486
- [U.value.style.chart.title.text],
487
- [U.value.style.chart.title.subtitle.text],
488
- [
489
- [U.value.table.columnNames.source],
490
- [U.value.table.columnNames.target],
491
- [U.value.table.columnNames.value]
492
- ]
493
- ].concat(r), a = n(i);
494
- e ? e(a) : t({
495
- csvContent: a,
496
- title: U.value.style.chart.title.text || "vue-ui-flow"
497
- });
498
- });
499
- }
500
- let Z = C(() => {
501
- let e = [
502
- U.value.table.columnNames.source,
503
- U.value.table.columnNames.target,
504
- U.value.table.columnNames.value
505
- ], t = on.value.map((e, t) => [
506
- {
507
- color: e.sourceColor,
508
- name: e.source,
509
- shape: "square"
510
- },
511
- {
512
- color: e.targetColor,
513
- name: e.target,
514
- shape: "square"
515
- },
516
- s({
517
- p: U.value.style.chart.nodes.labels.prefix,
518
- v: e.value,
519
- s: U.value.style.chart.nodes.labels.suffix,
520
- r: U.value.style.chart.nodes.labels.rounding
521
- })
522
- ]), n = {
523
- th: {
524
- backgroundColor: U.value.table.th.backgroundColor,
525
- color: U.value.table.th.color,
526
- outline: U.value.table.th.outline
527
- },
528
- td: {
529
- backgroundColor: U.value.table.td.backgroundColor,
530
- color: U.value.table.td.color,
531
- outline: U.value.table.td.outline
532
- },
533
- breakpoint: U.value.table.responsiveBreakpoint
534
- };
535
- return {
536
- colNames: [
537
- U.value.table.columnNames.source,
538
- U.value.table.columnNames.target,
539
- U.value.table.columnNames.value
540
- ],
541
- head: e,
542
- body: t,
543
- config: n
544
- };
545
- }), cn = C(() => ({
546
- headers: Z.value?.colNames ?? [],
547
- rows: Z.value?.body ?? []
548
- })), ln = C(() => [...q.value.nodes].map((e, t) => ({
549
- ...e,
550
- index: t,
551
- centerX: e.x + Ut.value / 2,
552
- centerY: c(e.absoluteY) + U.value.style.chart.padding.top + e.height / 2
553
- })).sort((e, t) => e.x === t.x ? e.absoluteY - t.absoluteY : e.x - t.x)), Q = C(() => {
554
- let e = [];
555
- return ln.value.forEach((t) => {
556
- let n = e.find((e) => Math.abs(e.x - t.x) <= 1);
557
- n ? n.nodes.push(t) : e.push({
558
- x: t.x,
559
- nodes: [t]
560
- });
561
- }), e.forEach((e) => {
562
- e.nodes.sort((e, t) => e.absoluteY - t.absoluteY);
563
- }), e.sort((e, t) => e.x - t.x);
564
- }), un = C(() => {
565
- let e = /* @__PURE__ */ new Map();
566
- return ln.value.forEach((t, n) => {
567
- e.set(t.id, n);
568
- }), e;
569
- });
570
- function dn() {
571
- return q.value;
572
- }
573
- function fn() {
574
- K.value.showTable = !K.value.showTable;
575
- }
576
- let pn = N(!1);
577
- function mn() {
578
- pn.value = !pn.value;
579
- }
580
- function hn() {
581
- K.value.showTooltip = !K.value.showTooltip;
582
- }
583
- let gn = C(() => {
584
- let e = new Set(q.value.nodes.map((e) => U.value.nodeCategories[e.name] || "__uncategorized__"));
585
- return Array.from(e).map((e) => ({
586
- name: e,
587
- color: U.value.nodeCategoryColors[e] || a[0],
588
- shape: "square",
589
- count: q.value.nodes.filter((t) => (U.value.nodeCategories[t.name] || "__uncategorized__") === e).length
590
- })).map((e, t) => {
591
- let n = $.value.includes(t);
592
- return {
593
- ...e,
594
- segregate: () => vn({
595
- legend: e,
596
- i: t
597
- }),
598
- isSegregated: n,
599
- opacity: $.value.length ? n ? 1 : .5 : 1,
600
- display: `${e.name} (${e.count})`
601
- };
602
- });
603
- }), _n = C(() => gn.value.filter((e) => e.name !== "__uncategorized__")), $ = N([]);
604
- function vn({ legend: e, i: t }) {
605
- let n = e.name;
606
- if (J.value?.every((e) => U.value.nodeCategories[e] === n)) {
607
- J.value = null, Y.value = null, $.value = [];
608
- return;
609
- }
610
- $.value = [t], J.value = q.value.nodes.filter((e) => U.value.nodeCategories[e.name] === n).map((e) => e.name), Y.value = null;
611
- }
612
- let yn = C(() => ({
613
- cy: "flow-legend",
614
- backgroundColor: U.value.style.chart.legend.backgroundColor,
615
- color: U.value.style.chart.legend.color,
616
- fontSize: U.value.style.chart.legend.fontSize,
617
- paddingBottom: U.value.style.chart.legend.paddingBottom,
618
- fontWeight: U.value.style.chart.legend.bold ? "bold" : "normal"
619
- }));
620
- async function bn({ scale: e = 2 } = {}) {
621
- if (!B.value) return;
622
- let { width: t, height: n } = B.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ie({
623
- domElement: B.value,
624
- base64: !0,
625
- img: !0,
626
- scale: e
627
- });
628
- return {
629
- imageUri: i,
630
- base64: a,
631
- title: U.value.style.chart.title.text,
632
- width: t,
633
- height: n,
634
- aspectRatio: r
635
- };
636
- }
637
- let xn = C(() => {
638
- let e = U.value.table.useDialog && !U.value.table.show, t = K.value.showTable;
639
- return {
640
- component: e ? tt : Xe,
641
- title: `${U.value.style.chart.title.text}${U.value.style.chart.title.subtitle.text ? `: ${U.value.style.chart.title.subtitle.text}` : ""}`,
642
- props: e ? {
643
- backgroundColor: U.value.table.th.backgroundColor,
644
- color: U.value.table.th.color,
645
- headerColor: U.value.table.th.color,
646
- headerBg: U.value.table.th.backgroundColor,
647
- isFullscreen: H.value,
648
- fullscreenParent: B.value,
649
- forcedWidth: Math.min(800, window.innerWidth * .8),
650
- isCursorPointer: W.value
651
- } : {
652
- hideDetails: !0,
653
- config: {
654
- open: t,
655
- maxHeight: 1e4,
656
- body: {
657
- backgroundColor: U.value.style.chart.backgroundColor,
658
- color: U.value.style.chart.color
659
- },
660
- head: {
661
- backgroundColor: U.value.style.chart.backgroundColor,
662
- color: U.value.style.chart.color
663
- }
664
- }
665
- }
666
- };
667
- });
668
- Ee(() => K.value.showTable, (e) => {
669
- U.value.table.show || (e && U.value.table.useDialog && gt.value ? gt.value.open() : "close" in gt.value && gt.value.close());
670
- });
671
- function Sn() {
672
- K.value.showTable = !1, _t.value && _t.value.setTableIconState(!1);
673
- }
674
- let Cn = C(() => _n.value.map((e) => ({
675
- ...e,
676
- name: e.display
677
- }))), 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({
678
- svg: G,
679
- title: En,
680
- legend: Tn,
681
- legendItems: Cn,
682
- backgroundColor: wn,
683
- getSvgCallback: () => U.value.userOptions.callbacks.svg,
684
- generateImage: Bt
685
- });
686
- async function jn() {
687
- if (at("copyAlt", {
688
- config: U.value,
689
- dataset: q.value
690
- }), !U.value.userOptions.callbacks.altCopy) {
691
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
692
- return;
693
- }
694
- await Promise.resolve(U.value.userOptions.callbacks.altCopy({
695
- config: U.value,
696
- dataset: q.value
697
- }));
698
- }
699
- function Mn(e) {
700
- return Q.value.findIndex((t) => t.nodes.some((t) => t.id === e));
701
- }
702
- function Nn(e, t) {
703
- let n = Q.value[e];
704
- return n ? n.nodes.findIndex((e) => e.id === t) : -1;
705
- }
706
- function Pn(e, t) {
707
- let n = Q.value[e];
708
- if (!n || !n.nodes.length) return null;
709
- let r = n.nodes[0], i = Math.abs(r.centerY - t);
710
- for (let e = 1; e < n.nodes.length; e += 1) {
711
- let a = n.nodes[e], o = Math.abs(a.centerY - t);
712
- o < i && (r = a, i = o);
713
- }
714
- return r;
715
- }
716
- function Fn() {
717
- yt.value = null, V.value = null, St.value = !0;
718
- }
719
- function In() {
720
- en(), St.value = !1;
721
- }
722
- function Ln(e) {
723
- if (!G.value || pn.value || document.activeElement !== G.value || !ln.value.length) return;
724
- 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";
725
- if (!t && !n && !r && !i && !a && !o) return;
726
- if (e.preventDefault(), e.stopPropagation(), o) {
727
- en();
728
- return;
729
- }
730
- if (a) {
731
- if (yt.value === null) return;
732
- an(yt.value);
733
- return;
734
- }
735
- if (V.value === null) {
736
- let e = Q.value[0]?.nodes?.[0];
737
- if (!e) return;
738
- let t = un.value.get(e.id) ?? 0;
739
- nn(e, t, "keyboard", t);
740
- return;
741
- }
742
- let s = un.value.get(V.value);
743
- if (s === void 0) return;
744
- let c = ln.value[s];
745
- if (!c) return;
746
- let l = Mn(c.id);
747
- if (l < 0) return;
748
- let u = null;
749
- if (r || i) {
750
- let e = Nn(l, c.id);
751
- if (e < 0) return;
752
- let t = Q.value[l];
753
- if (!t?.nodes?.length) return;
754
- let n = e + (i ? 1 : -1);
755
- n < 0 && (n = t.nodes.length - 1), n >= t.nodes.length && (n = 0), u = t.nodes[n];
756
- }
757
- if (t || n) {
758
- let e = l + (n ? 1 : -1);
759
- e < 0 && (e = Q.value.length - 1), e >= Q.value.length && (e = 0), u = Pn(e, c.centerY);
760
- }
761
- if (!u) return;
762
- let d = un.value.get(u.id);
763
- d !== void 0 && nn(u, d, "keyboard", d);
764
- }
765
- return oe({
766
- getData: dn,
767
- getImage: bn,
768
- generateCsv: sn,
769
- generateImage: Bt,
770
- generateSvg: kn,
771
- generatePdf: zt,
772
- toggleTable: fn,
773
- toggleAnnotator: mn,
774
- toggleTooltip: hn,
775
- drillCategory: vn,
776
- unselectNode: rn,
777
- toggleFullscreen: wt,
778
- copyAlt: jn
779
- }), (e, t) => (M(), E("div", {
780
- ref_key: "flowChart",
781
- ref: B,
782
- class: xe(`vue-data-ui-component vue-ui-flow ${H.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
783
- style: j(`font-family:${U.value.style.fontFamily};width:100%; text-align:center;background:${U.value.style.chart.backgroundColor}`),
784
- id: `flow_${z.value}`,
785
- onMouseenter: t[2] ||= () => I(Mt)(!0),
786
- onMouseleave: t[3] ||= () => {
787
- I(Mt)(!1), St.value || en();
788
- }
789
- }, [
790
- D("div", {
791
- id: `chart-instructions-${z.value}`,
792
- class: "sr-only"
793
- }, [D("p", null, F(U.value.a11y.translations.keyboardNavigation), 1)], 8, ke),
794
- cn.value?.rows?.length ? (M(), w(le, {
795
- key: 0,
796
- uid: z.value,
797
- head: cn.value.headers,
798
- body: cn.value.rows,
799
- notice: U.value.a11y.translations.tableAvailable,
800
- caption: U.value.a11y.translations.tableCaption
801
- }, null, 8, [
802
- "uid",
803
- "head",
804
- "body",
805
- "notice",
806
- "caption"
807
- ])) : T("", !0),
808
- U.value.userOptions.buttons.annotator ? (M(), w(I(Qe), {
809
- key: 1,
810
- svgRef: I(G),
811
- backgroundColor: U.value.style.chart.backgroundColor,
812
- color: U.value.style.chart.color,
813
- active: pn.value,
814
- onClose: mn,
815
- isCursorPointer: W.value
816
- }, {
817
- "annotator-action-close": L(() => [P(e.$slots, "annotator-action-close", {}, void 0, !0)]),
818
- "annotator-action-color": L(({ color: t }) => [P(e.$slots, "annotator-action-color", A(k({ color: t })), void 0, !0)]),
819
- "annotator-action-draw": L(({ mode: t }) => [P(e.$slots, "annotator-action-draw", A(k({ mode: t })), void 0, !0)]),
820
- "annotator-action-undo": L(({ disabled: t }) => [P(e.$slots, "annotator-action-undo", A(k({ disabled: t })), void 0, !0)]),
821
- "annotator-action-redo": L(({ disabled: t }) => [P(e.$slots, "annotator-action-redo", A(k({ disabled: t })), void 0, !0)]),
822
- "annotator-action-delete": L(({ disabled: t }) => [P(e.$slots, "annotator-action-delete", A(k({ disabled: t })), void 0, !0)]),
823
- _: 3
824
- }, 8, [
825
- "svgRef",
826
- "backgroundColor",
827
- "color",
828
- "active",
829
- "isCursorPointer"
830
- ])) : T("", !0),
831
- Vt.value ? (M(), E("div", Ae, null, 512)) : T("", !0),
832
- U.value.style.chart.title.text ? (M(), E("div", {
833
- key: 3,
834
- ref_key: "chartTitle",
835
- ref: dt,
836
- style: "width:100%;background:transparent;padding-bottom:24px"
837
- }, [(M(), w(ae, {
838
- key: `title_${st.value}`,
839
- config: {
840
- title: {
841
- cy: "flow-title",
842
- ...U.value.style.chart.title
843
- },
844
- subtitle: {
845
- cy: "flow-subtitle",
846
- ...U.value.style.chart.title.subtitle
847
- }
848
- }
849
- }, null, 8, ["config"]))], 512)) : T("", !0),
850
- D("div", { id: `legend-top-${z.value}` }, null, 8, je),
851
- U.value.userOptions.show && Ct.value && (I(Nt) || I(jt)) ? (M(), w(I($e), {
852
- ref_key: "userOptionsRef",
853
- ref: _t,
854
- key: `user_option_${ot.value}`,
855
- backgroundColor: U.value.style.chart.backgroundColor,
856
- color: U.value.style.chart.color,
857
- isPrinting: I(Lt),
858
- isImaging: I(Rt),
859
- uid: z.value,
860
- hasPdf: U.value.userOptions.buttons.pdf,
861
- hasXls: U.value.userOptions.buttons.csv,
862
- hasImg: U.value.userOptions.buttons.img,
863
- hasSvg: U.value.userOptions.buttons.svg,
864
- hasTable: U.value.userOptions.buttons.table,
865
- callbacks: U.value.userOptions.callbacks,
866
- hasFullscreen: U.value.userOptions.buttons.fullscreen,
867
- hasAltCopy: U.value.userOptions.buttons.altCopy,
868
- isFullscreen: H.value,
869
- titles: { ...U.value.userOptions.buttonTitles },
870
- chartElement: B.value,
871
- position: U.value.userOptions.position,
872
- hasAnnotator: U.value.userOptions.buttons.annotator,
873
- printScale: U.value.userOptions.print.scale,
874
- isAnnotation: pn.value,
875
- hasTooltip: U.value.style.chart.tooltip.show && U.value.userOptions.buttons.tooltip,
876
- isTooltip: K.value.showTooltip,
877
- tableDialog: U.value.table.useDialog,
878
- isCursorPointer: W.value,
879
- onToggleTooltip: hn,
880
- onToggleFullscreen: wt,
881
- onGeneratePdf: I(zt),
882
- onGenerateCsv: sn,
883
- onGenerateImage: I(An),
884
- onGenerateSvg: I(kn),
885
- onToggleTable: fn,
886
- onToggleAnnotator: mn,
887
- onCopyAlt: jn,
888
- style: j({ visibility: I(Nt) ? I(jt) ? "visible" : "hidden" : "visible" })
889
- }, ge({ _: 2 }, [
890
- e.$slots.menuIcon ? {
891
- name: "menuIcon",
892
- fn: L(({ isOpen: t, color: n }) => [P(e.$slots, "menuIcon", A(k({
893
- isOpen: t,
894
- color: n
895
- })), void 0, !0)]),
896
- key: "0"
897
- } : void 0,
898
- e.$slots.optionTooltip ? {
899
- name: "optionTooltip",
900
- fn: L(() => [P(e.$slots, "optionTooltip", {}, void 0, !0)]),
901
- key: "1"
902
- } : void 0,
903
- e.$slots.optionPdf ? {
904
- name: "optionPdf",
905
- fn: L(() => [P(e.$slots, "optionPdf", {}, void 0, !0)]),
906
- key: "2"
907
- } : void 0,
908
- e.$slots.optionCsv ? {
909
- name: "optionCsv",
910
- fn: L(() => [P(e.$slots, "optionCsv", {}, void 0, !0)]),
911
- key: "3"
912
- } : void 0,
913
- e.$slots.optionImg ? {
914
- name: "optionImg",
915
- fn: L(() => [P(e.$slots, "optionImg", {}, void 0, !0)]),
916
- key: "4"
917
- } : void 0,
918
- e.$slots.optionSvg ? {
919
- name: "optionSvg",
920
- fn: L(() => [P(e.$slots, "optionSvg", {}, void 0, !0)]),
921
- key: "5"
922
- } : void 0,
923
- e.$slots.optionTable ? {
924
- name: "optionTable",
925
- fn: L(() => [P(e.$slots, "optionTable", {}, void 0, !0)]),
926
- key: "6"
927
- } : void 0,
928
- e.$slots.optionFullscreen ? {
929
- name: "optionFullscreen",
930
- fn: L(({ toggleFullscreen: t, isFullscreen: n }) => [P(e.$slots, "optionFullscreen", A(k({
931
- toggleFullscreen: t,
932
- isFullscreen: n
933
- })), void 0, !0)]),
934
- key: "7"
935
- } : void 0,
936
- e.$slots.optionAnnotator ? {
937
- name: "optionAnnotator",
938
- fn: L(({ toggleAnnotator: t, isAnnotator: n }) => [P(e.$slots, "optionAnnotator", A(k({
939
- toggleAnnotator: t,
940
- isAnnotator: n
941
- })), void 0, !0)]),
942
- key: "8"
943
- } : void 0,
944
- e.$slots.optionAltCopy ? {
945
- name: "optionAltCopy",
946
- fn: L(({ altCopy: t }) => [P(e.$slots, "optionAltCopy", A(k({ altCopy: t })), void 0, !0)]),
947
- key: "9"
948
- } : void 0,
949
- e.$slots["custom-menu-before"] ? {
950
- name: "custom-menu-before",
951
- fn: L(() => [P(e.$slots, "custom-menu-before", {}, void 0, !0)]),
952
- key: "10"
953
- } : void 0,
954
- e.$slots["custom-menu-after"] ? {
955
- name: "custom-menu-after",
956
- fn: L(() => [P(e.$slots, "custom-menu-after", {}, void 0, !0)]),
957
- key: "11"
958
- } : void 0
959
- ]), 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),
960
- D("div", Me, [(M(), E("svg", {
961
- ref_key: "svgRef",
962
- ref: G,
963
- xmlns: I(p),
964
- "aria-describedby": `chart-instructions-${z.value}`,
965
- viewBox: `0 0 ${Xt.value.width} ${Xt.value.height}`,
966
- class: xe({
967
- "vue-data-ui-fullscreen--on": H.value,
968
- "vue-data-ui-fulscreen--off": !H.value
969
- }),
970
- style: j({
971
- maxWidth: "100%",
972
- overflow: "visible",
973
- background: "transparent",
974
- color: U.value.style.chart.color
975
- }),
976
- tabindex: "0",
977
- onFocus: Fn,
978
- onBlur: In,
979
- onKeydown: Ln
980
- }, [
981
- ve(I(et)),
982
- e.$slots["chart-background"] ? (M(), E("foreignObject", {
983
- key: 0,
984
- x: 0,
985
- y: 0,
986
- width: Xt.value.width,
987
- height: Xt.value.height,
988
- style: { pointerEvents: "none" }
989
- }, [P(e.$slots, "chart-background", {}, void 0, !0)], 8, Pe)) : T("", !0),
990
- D("defs", null, [(M(!0), E(me, null, Ce(q.value.links, (e, t) => (M(), E("linearGradient", {
991
- id: e.id,
992
- x1: "0%",
993
- y1: "0%",
994
- x2: "100%",
995
- y2: "0%"
996
- }, [D("stop", {
997
- offset: "0%",
998
- "stop-color": e.sourceColor
999
- }, null, 8, Ie), D("stop", {
1000
- offset: "100%",
1001
- "stop-color": e.targetColor
1002
- }, null, 8, Le)], 8, Fe))), 256))]),
1003
- (M(!0), E(me, null, Ce(q.value.links, (e) => (M(), E("path", {
1004
- class: "vue-ui-flow-link",
1005
- d: e.path,
1006
- "stroke-linejoin": "round",
1007
- "stroke-miterlimit": "1",
1008
- fill: `url(#${e.id})`,
1009
- stroke: U.value.style.chart.links.stroke,
1010
- "stroke-width": U.value.style.chart.links.strokeWidth,
1011
- style: j(`
1012
- 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}
1013
- `)
1014
- }, null, 12, Re))), 256)),
1015
- (M(!0), E(me, null, Ce(q.value.nodes, (e, t) => (M(), E("rect", {
1016
- "data-a11y-node-id": e.id,
1017
- class: "vue-ui-flow-node",
1018
- x: e.x,
1019
- y: I(c)(e.absoluteY) + U.value.style.chart.padding.top,
1020
- height: I(c)(e.height),
1021
- width: Ut.value,
1022
- fill: e.color,
1023
- stroke: U.value.style.chart.nodes.stroke,
1024
- "stroke-width": U.value.style.chart.nodes.strokeWidth,
1025
- rx: U.value.style.chart.nodes.borderRadius,
1026
- style: j({
1027
- opacity: J.value ? J.value.includes(e.name) ? 1 : .3 : 1,
1028
- outline: $t.value !== null && $t.value === e.id ? "2px solid currentColor" : void 0
1029
- }),
1030
- "aria-label": `${e.name}: ${I(l)(U.value.style.chart.nodes.labels.formatter, e.value, I(s)({
1031
- p: U.value.style.chart.nodes.labels.prefix,
1032
- v: e.value,
1033
- s: U.value.style.chart.nodes.labels.suffix,
1034
- r: U.value.style.chart.nodes.labels.rounding
1035
- }))}`,
1036
- onMouseenter: (n) => nn(e, t, "pointer", un.value.get(e.id)),
1037
- onMouseleave: (e) => rn(t),
1038
- onClick: (e) => an(t)
1039
- }, null, 44, ze))), 256)),
1040
- 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", {
1041
- x: e.x + Ut.value / 2,
1042
- 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,
1043
- "font-size": U.value.style.chart.nodes.labels.fontSize,
1044
- fill: I(f)(e.color),
1045
- "text-anchor": "middle",
1046
- style: j(`pointer-events: none; opacity:${J.value ? +!!J.value.includes(e.name) : 1}`)
1047
- }, F(U.value.style.chart.nodes.labels.abbreviation.use ? I(d)({
1048
- source: e.name,
1049
- length: U.value.style.chart.nodes.labels.abbreviation.length
1050
- }) : 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", {
1051
- x: e.x + Ut.value / 2,
1052
- y: I(c)(e.absoluteY + e.height / 2 + U.value.style.chart.nodes.labels.fontSize / 1.3) + U.value.style.chart.padding.top,
1053
- "font-size": U.value.style.chart.nodes.labels.fontSize,
1054
- fill: I(f)(e.color),
1055
- "text-anchor": "middle",
1056
- style: j(`pointer-events: none; opacity:${J.value ? +!!J.value.includes(e.name) : 1}`)
1057
- }, F(I(l)(U.value.style.chart.nodes.labels.formatter, e.value, I(s)({
1058
- p: U.value.style.chart.nodes.labels.prefix,
1059
- v: e.value,
1060
- s: U.value.style.chart.nodes.labels.suffix,
1061
- r: U.value.style.chart.nodes.labels.rounding
1062
- }), {
1063
- datapoint: e,
1064
- seriesIndex: t
1065
- })), 13, He))), 256)) : T("", !0)])) : T("", !0),
1066
- P(e.$slots, "svg", { svg: {
1067
- ...Xt.value,
1068
- isPrintingImg: I(Lt) || I(Rt) || I(Dn),
1069
- isPrintingSvg: I(On)
1070
- } }, void 0, !0)
1071
- ], 46, Ne)), e.$slots.hint ? (M(), E("div", Ue, [P(e.$slots, "hint", A(k({
1072
- hint: U.value.a11y.translations.keyboardNavigation,
1073
- isVisible: St.value
1074
- })), void 0, !0)])) : T("", !0)]),
1075
- 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),
1076
- D("div", { id: `legend-bottom-${z.value}` }, null, 8, Ge),
1077
- ht.value && (U.value.style.chart.legend.show || e.$slots.legend) ? (M(), w(he, {
1078
- key: 6,
1079
- to: U.value.style.chart.legend.position === "top" ? `#legend-top-${z.value}` : `#legend-bottom-${z.value}`
1080
- }, [D("div", {
1081
- ref_key: "chartLegend",
1082
- ref: ut
1083
- }, [P(e.$slots, "legend", { legend: gn.value }, () => [U.value.style.chart.legend.show && _n.value.length ? (M(), w(fe, {
1084
- key: 0,
1085
- legendSet: _n.value,
1086
- config: yn.value,
1087
- isCursorPointer: W.value,
1088
- onClickMarker: t[0] ||= (e) => vn(e)
1089
- }, {
1090
- item: L(({ legend: e, index: t }) => [I(Et) ? T("", !0) : (M(), E("div", {
1091
- key: 0,
1092
- onClick: (t) => e.segregate(),
1093
- style: j(`opacity:${$.value.length ? $.value.includes(t) ? 1 : .5 : 1}`)
1094
- }, F(e.display), 13, Ke))]),
1095
- _: 1
1096
- }, 8, [
1097
- "legendSet",
1098
- "config",
1099
- "isCursorPointer"
1100
- ])) : T("", !0)], !0)], 512)], 8, ["to"])) : T("", !0),
1101
- e.$slots.source ? (M(), E("div", {
1102
- key: 7,
1103
- ref_key: "source",
1104
- ref: ft,
1105
- dir: "auto"
1106
- }, [P(e.$slots, "source", {}, void 0, !0)], 512)) : T("", !0),
1107
- ve(I(Je), {
1108
- ref_key: "tooltip",
1109
- ref: vt,
1110
- teleportTo: U.value.style.chart.tooltip.teleportTo,
1111
- show: K.value.showTooltip && ct.value,
1112
- backgroundColor: U.value.style.chart.tooltip.backgroundColor,
1113
- color: U.value.style.chart.tooltip.color,
1114
- fontSize: U.value.style.chart.tooltip.fontSize,
1115
- borderRadius: U.value.style.chart.tooltip.borderRadius,
1116
- borderColor: U.value.style.chart.tooltip.borderColor,
1117
- borderWidth: U.value.style.chart.tooltip.borderWidth,
1118
- backgroundOpacity: U.value.style.chart.tooltip.backgroundOpacity,
1119
- position: U.value.style.chart.tooltip.position,
1120
- offsetX: U.value.style.chart.tooltip.offsetX,
1121
- offsetY: U.value.style.chart.tooltip.offsetY,
1122
- parent: B.value,
1123
- content: lt.value,
1124
- isCustom: Qt.value,
1125
- isFullscreen: H.value,
1126
- smooth: U.value.style.chart.tooltip.smooth,
1127
- backdropFilter: U.value.style.chart.tooltip.backdropFilter,
1128
- smoothForce: U.value.style.chart.tooltip.smoothForce,
1129
- smoothSnapThreshold: U.value.style.chart.tooltip.smoothSnapThreshold,
1130
- isA11yMode: xt.value === "keyboard",
1131
- a11yPosition: bt.value
1132
- }, {
1133
- "tooltip-before": L(() => [P(e.$slots, "tooltip-before", A(k({ ...X.value })), void 0, !0)]),
1134
- tooltip: L(() => [P(e.$slots, "tooltip", A(k({ ...X.value })), void 0, !0)]),
1135
- "tooltip-after": L(() => [P(e.$slots, "tooltip-after", A(k({ ...X.value })), void 0, !0)]),
1136
- _: 3
1137
- }, 8, [
1138
- "teleportTo",
1139
- "show",
1140
- "backgroundColor",
1141
- "color",
1142
- "fontSize",
1143
- "borderRadius",
1144
- "borderColor",
1145
- "borderWidth",
1146
- "backgroundOpacity",
1147
- "position",
1148
- "offsetX",
1149
- "offsetY",
1150
- "parent",
1151
- "content",
1152
- "isCustom",
1153
- "isFullscreen",
1154
- "smooth",
1155
- "backdropFilter",
1156
- "smoothForce",
1157
- "smoothSnapThreshold",
1158
- "isA11yMode",
1159
- "a11yPosition"
1160
- ]),
1161
- Ct.value && U.value.userOptions.buttons.table ? (M(), w(we(xn.value.component), ye({ key: 8 }, xn.value.props, {
1162
- ref_key: "tableUnit",
1163
- ref: gt,
1164
- onClose: Sn
1165
- }), ge({
1166
- content: L(() => [ve(I(Ze), {
1167
- colNames: Z.value.colNames,
1168
- head: Z.value.head,
1169
- body: Z.value.body,
1170
- config: Z.value.config,
1171
- title: U.value.table.useDialog ? "" : xn.value.title,
1172
- withCloseButton: !U.value.table.useDialog,
1173
- isCursorPointer: W.value,
1174
- onClose: Sn
1175
- }, {
1176
- th: L(({ th: e }) => [D("div", {
1177
- innerHTML: e,
1178
- style: {
1179
- display: "flex",
1180
- "align-items": "center"
1181
- }
1182
- }, null, 8, qe)]),
1183
- td: L(({ td: e }) => [_e(F(e.name || e), 1)]),
1184
- _: 1
1185
- }, 8, [
1186
- "colNames",
1187
- "head",
1188
- "body",
1189
- "config",
1190
- "title",
1191
- "withCloseButton",
1192
- "isCursorPointer"
1193
- ])]),
1194
- _: 2
1195
- }, [U.value.table.useDialog ? {
1196
- name: "title",
1197
- fn: L(() => [_e(F(xn.value.title), 1)]),
1198
- key: "0"
1199
- } : void 0, U.value.table.useDialog ? {
1200
- name: "actions",
1201
- fn: L(() => [D("button", {
1202
- tabindex: "0",
1203
- class: "vue-ui-user-options-button",
1204
- onClick: t[1] ||= (e) => sn(U.value.userOptions.callbacks.csv),
1205
- style: j({ cursor: W.value ? "pointer" : "default" })
1206
- }, [ve(I(Ye), {
1207
- name: "fileCsv",
1208
- stroke: xn.value.props.color
1209
- }, null, 8, ["stroke"])], 4)]),
1210
- key: "1"
1211
- } : void 0]), 1040)) : T("", !0),
1212
- P(e.$slots, "skeleton", {}, () => [I(Et) ? (M(), w(b, { key: 0 })) : T("", !0)], !0)
1213
- ], 46, Oe));
1214
- }
1215
- }, [["__scopeId", "data-v-c203fc92"]]);
1216
- //#endregion
1217
- export { De as n, Je as t };