vue-data-ui 3.15.12 → 3.16.1

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