vue-data-ui 2.3.60 → 2.3.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (163) hide show
  1. package/dist/{Arrow-BJ47KXjY.js → Arrow-Dho8ylDy.js} +1 -1
  2. package/dist/{Arrow-VxZlHkwt.cjs → Arrow-ov-EIAPu.cjs} +1 -1
  3. package/dist/{BaseIcon-Bv5uh10R.cjs → BaseIcon-B6v-Txn-.cjs} +1 -1
  4. package/dist/{BaseIcon-Fm7sUbd2.js → BaseIcon-BNStcP8c.js} +1 -1
  5. package/dist/{DataTable-1VV0us-8.js → DataTable-luIjNnne.js} +2 -2
  6. package/dist/{DataTable-CPAt686N.cjs → DataTable-yf_eyv8c.cjs} +1 -1
  7. package/dist/{Legend-BJ2Mynop.cjs → Legend-6JY5pUsT.cjs} +1 -1
  8. package/dist/{Legend-DB6v_LvZ.js → Legend-B9dawQa7.js} +1 -1
  9. package/dist/{Shape-DWZSJJ6-.cjs → Shape-BoXM3HKY.cjs} +1 -1
  10. package/dist/{Shape-B_f1_6Ob.js → Shape-BsAETTif.js} +1 -1
  11. package/dist/Slicer-DoMAeSUY.cjs +1 -0
  12. package/dist/{Slicer-CHiUxRAh.js → Slicer-iGmqxtRQ.js} +51 -54
  13. package/dist/{Title-CR-JDJwq.cjs → Title-CBcoQe02.cjs} +1 -1
  14. package/dist/{Title-xP0rAF4q.js → Title-fb3BzoXj.js} +1 -1
  15. package/dist/{Tooltip-B4DNihSF.cjs → Tooltip-BhuD1Kc5.cjs} +1 -1
  16. package/dist/{Tooltip-DfBa_7Ur.js → Tooltip-CBugtvWB.js} +5 -5
  17. package/dist/{index-CpHoINpJ.js → index-BshV7sX1.js} +538 -515
  18. package/dist/{index-CDK3omwG.cjs → index-D2ZScauW.cjs} +4 -4
  19. package/dist/style.css +1 -1
  20. package/dist/{useNestedProp-BOjw3Yqn.js → useNestedProp-B235bkr5.js} +1 -1
  21. package/dist/{useNestedProp-CaaW8JIS.cjs → useNestedProp-BU7yyXFA.cjs} +1 -1
  22. package/dist/{usePrinter-BHy-mfVg.js → usePrinter-Culo-aKo.js} +1 -1
  23. package/dist/{usePrinter-vQu-8tRD.cjs → usePrinter-eqT4IYET.cjs} +1 -1
  24. package/dist/{vue-data-ui-Ccdrn4OV.cjs → vue-data-ui-B7ebF4_E.cjs} +1 -1
  25. package/dist/{vue-data-ui-Dcg7DPMn.js → vue-data-ui-aJ6K70wA.js} +57 -57
  26. package/dist/vue-data-ui.cjs +1 -1
  27. package/dist/vue-data-ui.js +7 -7
  28. package/dist/{vue-ui-3d-bar-BqtnNU7h.js → vue-ui-3d-bar-BYgxIW27.js} +7 -7
  29. package/dist/{vue-ui-3d-bar-DdBlV5AX.cjs → vue-ui-3d-bar-DFv8qpsI.cjs} +1 -1
  30. package/dist/{vue-ui-accordion-BZloYo0L.js → vue-ui-accordion-B6AxEnAr.js} +3 -3
  31. package/dist/{vue-ui-accordion-EVAolVkD.cjs → vue-ui-accordion-BhCJcWDd.cjs} +1 -1
  32. package/dist/vue-ui-age-pyramid-BBRjCRtS.cjs +1 -0
  33. package/dist/{vue-ui-age-pyramid-CTxkOn4v.js → vue-ui-age-pyramid-yZrvdnPP.js} +226 -226
  34. package/dist/{vue-ui-annotator-D_AK0JCi.cjs → vue-ui-annotator-CEVmAufb.cjs} +1 -1
  35. package/dist/{vue-ui-annotator-BDWKiQ6S.js → vue-ui-annotator-ZKUlOqUq.js} +1 -1
  36. package/dist/{vue-ui-candlestick-CIKgu0F2.cjs → vue-ui-candlestick-CUNLZRIM.cjs} +2 -2
  37. package/dist/{vue-ui-candlestick-ByA9FGZb.js → vue-ui-candlestick-De4WgpPk.js} +158 -158
  38. package/dist/{vue-ui-carousel-table-ez9gbOZ7.cjs → vue-ui-carousel-table-C968uL6J.cjs} +1 -1
  39. package/dist/{vue-ui-carousel-table-BnYxbq5A.js → vue-ui-carousel-table-DJ0AWPea.js} +4 -4
  40. package/dist/{vue-ui-chestnut-BumsSmCv.js → vue-ui-chestnut-Cl0UKWsI.js} +65 -64
  41. package/dist/{vue-ui-chestnut-CnYqa2Fx.cjs → vue-ui-chestnut-DmjmL02K.cjs} +3 -3
  42. package/dist/{vue-ui-cursor-D-4-MMw7.js → vue-ui-cursor-BWyE3tgm.js} +2 -2
  43. package/dist/{vue-ui-cursor-Drl8jibt.cjs → vue-ui-cursor-D5XEblLW.cjs} +1 -1
  44. package/dist/{vue-ui-dashboard-CX0jA181.cjs → vue-ui-dashboard-BJLi81kg.cjs} +1 -1
  45. package/dist/{vue-ui-dashboard-B_iV-3hq.js → vue-ui-dashboard-D9dQIIti.js} +2 -2
  46. package/dist/{vue-ui-digits-DMhl9plv.js → vue-ui-digits-DkYpomD9.js} +2 -2
  47. package/dist/{vue-ui-digits-RAZl_4Kb.cjs → vue-ui-digits-IIiSTczs.cjs} +1 -1
  48. package/dist/{vue-ui-donut-BG28U01c.cjs → vue-ui-donut-Bq66xmG0.cjs} +1 -1
  49. package/dist/{vue-ui-donut-evolution-DPU-Nd8y.js → vue-ui-donut-evolution-Bto1ZaWx.js} +95 -95
  50. package/dist/vue-ui-donut-evolution-CNVUtEEk.cjs +1 -0
  51. package/dist/{vue-ui-donut-BpQC9-Uz.js → vue-ui-donut-uujhj36t.js} +42 -42
  52. package/dist/vue-ui-dumbbell-CLNVYG0j.cjs +9 -0
  53. package/dist/{vue-ui-dumbbell-C4JnuC1b.js → vue-ui-dumbbell-D6Xyfvff.js} +72 -72
  54. package/dist/vue-ui-flow-BwrqexSU.cjs +1 -0
  55. package/dist/vue-ui-flow-Cg4oKZz8.js +469 -0
  56. package/dist/{vue-ui-galaxy-148JtEdK.js → vue-ui-galaxy-D_s9dfYN.js} +91 -91
  57. package/dist/vue-ui-galaxy-DixlciaO.cjs +1 -0
  58. package/dist/{vue-ui-gauge-DOJ98R_N.js → vue-ui-gauge-DGQVW6UO.js} +84 -84
  59. package/dist/vue-ui-gauge-Jse5ZYyj.cjs +1 -0
  60. package/dist/{vue-ui-gizmo-KeWvd226.js → vue-ui-gizmo-DDTaLaSI.js} +2 -2
  61. package/dist/{vue-ui-gizmo-a6WNWyf7.cjs → vue-ui-gizmo-sgq75uBG.cjs} +1 -1
  62. package/dist/vue-ui-heatmap-4-gnNgQ_.cjs +1 -0
  63. package/dist/{vue-ui-heatmap-BGsSOTPJ.js → vue-ui-heatmap-Dvd5ZGVw.js} +257 -239
  64. package/dist/{vue-ui-kpi-Dhah6Fgx.cjs → vue-ui-kpi-Co1WqN3k.cjs} +1 -1
  65. package/dist/{vue-ui-kpi-Leb1rK38.js → vue-ui-kpi-aLwUkIjv.js} +3 -3
  66. package/dist/{vue-ui-mini-loader-BLH4ncUB.js → vue-ui-mini-loader-Bm2xpTIh.js} +2 -2
  67. package/dist/{vue-ui-mini-loader-Dpa9uYkn.cjs → vue-ui-mini-loader-D98KCpoT.cjs} +1 -1
  68. package/dist/{vue-ui-molecule-DjvOvDUa.cjs → vue-ui-molecule-C3-9ojnv.cjs} +1 -1
  69. package/dist/{vue-ui-molecule-DuPAOQcj.js → vue-ui-molecule-Dv4hYPVd.js} +20 -20
  70. package/dist/{vue-ui-mood-radar-AOHK6R10.cjs → vue-ui-mood-radar-Dh3Q2NiI.cjs} +1 -1
  71. package/dist/{vue-ui-mood-radar-BmcIz0JR.js → vue-ui-mood-radar-DsIPsXTh.js} +9 -9
  72. package/dist/{vue-ui-nested-donuts-CMmcmAd9.cjs → vue-ui-nested-donuts-CFC8tyGY.cjs} +2 -2
  73. package/dist/{vue-ui-nested-donuts-BYLc86qs.js → vue-ui-nested-donuts-CZ9vcclX.js} +120 -120
  74. package/dist/{vue-ui-onion-BjG8xbMh.cjs → vue-ui-onion-BLV33CBr.cjs} +1 -1
  75. package/dist/{vue-ui-onion-shZ4g9mJ.js → vue-ui-onion-CI9ARfRM.js} +9 -9
  76. package/dist/{vue-ui-parallel-coordinate-plot-O7lS6u2q.cjs → vue-ui-parallel-coordinate-plot-CIhpHeCI.cjs} +1 -1
  77. package/dist/{vue-ui-parallel-coordinate-plot-wv0O9t7U.js → vue-ui-parallel-coordinate-plot-CxzFJuza.js} +69 -69
  78. package/dist/{vue-ui-quadrant-CuB8sYgF.cjs → vue-ui-quadrant-CS3LAiCu.cjs} +1 -1
  79. package/dist/{vue-ui-quadrant-BRF5Czj4.js → vue-ui-quadrant-DenUcNcS.js} +36 -36
  80. package/dist/{vue-ui-quick-chart-BQdUHrm2.js → vue-ui-quick-chart-BdpKv0ES.js} +549 -515
  81. package/dist/vue-ui-quick-chart-UxaO0jzI.cjs +15 -0
  82. package/dist/vue-ui-radar-CQ-LymAS.cjs +1 -0
  83. package/dist/{vue-ui-radar-CLUs0tD9.js → vue-ui-radar-Dd24aGwh.js} +59 -59
  84. package/dist/{vue-ui-rating-Dcy1l1PB.js → vue-ui-rating-CQWK2lk1.js} +9 -9
  85. package/dist/{vue-ui-rating-CA25nHJe.cjs → vue-ui-rating-DTuDjrt8.cjs} +1 -1
  86. package/dist/{vue-ui-relation-circle-DC-RFa9X.js → vue-ui-relation-circle-BcOzK8Iz.js} +5 -5
  87. package/dist/{vue-ui-relation-circle-Drr6Gdnq.cjs → vue-ui-relation-circle-DMhNCwpg.cjs} +1 -1
  88. package/dist/vue-ui-rings--pu1fIcl.cjs +2 -0
  89. package/dist/{vue-ui-rings-DbPbelCU.js → vue-ui-rings-yyFx2W1b.js} +188 -185
  90. package/dist/{vue-ui-scatter-D2jYZ4Wu.js → vue-ui-scatter-BV4sXNqz.js} +378 -375
  91. package/dist/{vue-ui-scatter-xyLvaw0d.cjs → vue-ui-scatter-CrmsJjjl.cjs} +1 -1
  92. package/dist/{vue-ui-screenshot-DXCBzrPZ.js → vue-ui-screenshot-C6wYv3cc.js} +6 -6
  93. package/dist/{vue-ui-screenshot-DGqjaE1x.cjs → vue-ui-screenshot-eoAWixSo.cjs} +1 -1
  94. package/dist/{vue-ui-skeleton-DuM6yey6.js → vue-ui-skeleton-7qakoAGH.js} +23 -23
  95. package/dist/{vue-ui-skeleton-DRDC3yxK.cjs → vue-ui-skeleton-BLhbQje-.cjs} +1 -1
  96. package/dist/{vue-ui-smiley-DQrvx_S9.js → vue-ui-smiley-DG3_ORXA.js} +2 -2
  97. package/dist/{vue-ui-smiley-BCmY1siL.cjs → vue-ui-smiley-sS92V85O.cjs} +1 -1
  98. package/dist/vue-ui-spark-trend-C9Ii4Ue5.cjs +1 -0
  99. package/dist/vue-ui-spark-trend-D8_rEspZ.js +251 -0
  100. package/dist/{vue-ui-sparkbar-C_vNsxM_.cjs → vue-ui-sparkbar-CQz9GWxh.cjs} +1 -1
  101. package/dist/{vue-ui-sparkbar-DiU5Yt-V.js → vue-ui-sparkbar-DuNNnbs9.js} +3 -3
  102. package/dist/{vue-ui-sparkgauge-BnF9Vbs0.js → vue-ui-sparkgauge-Buo2ms6b.js} +64 -64
  103. package/dist/vue-ui-sparkgauge-Dxsnkehz.cjs +1 -0
  104. package/dist/{vue-ui-sparkhistogram-BUBwn9A4.cjs → vue-ui-sparkhistogram-Cw-w_Rhv.cjs} +1 -1
  105. package/dist/{vue-ui-sparkhistogram-CsOfCo_3.js → vue-ui-sparkhistogram-edeeQ1HN.js} +4 -4
  106. package/dist/{vue-ui-sparkline-CoUeD8Np.cjs → vue-ui-sparkline-Cyddej9t.cjs} +1 -1
  107. package/dist/{vue-ui-sparkline-B628G3Nl.js → vue-ui-sparkline-DGIqGoR2.js} +25 -25
  108. package/dist/{vue-ui-sparkstackbar-Cr-Q7uDo.cjs → vue-ui-sparkstackbar-DN0XiDpQ.cjs} +1 -1
  109. package/dist/{vue-ui-sparkstackbar-DIHGbrF5.js → vue-ui-sparkstackbar-G7Ojd39B.js} +3 -3
  110. package/dist/{vue-ui-stackbar-DCbJhdZy.js → vue-ui-stackbar-CfK9lv_E.js} +35 -35
  111. package/dist/{vue-ui-stackbar-DMyP3IRK.cjs → vue-ui-stackbar-kiZ9J1eh.cjs} +1 -1
  112. package/dist/vue-ui-strip-plot-Bd4NwUia.cjs +1 -0
  113. package/dist/{vue-ui-strip-plot-CNb3VtYF.js → vue-ui-strip-plot-d-bNHZDG.js} +64 -64
  114. package/dist/{vue-ui-table-CjuXpy2d.cjs → vue-ui-table-ChORiy2h.cjs} +1 -1
  115. package/dist/{vue-ui-table-heatmap-D6px_Z1a.cjs → vue-ui-table-heatmap-BcA1TmV1.cjs} +1 -1
  116. package/dist/{vue-ui-table-heatmap-nbBDuSiw.js → vue-ui-table-heatmap-BcPqaYXz.js} +26 -26
  117. package/dist/{vue-ui-table-BqcI8E7E.js → vue-ui-table-ipCsGZPx.js} +1 -1
  118. package/dist/{vue-ui-table-sparkline-Blbaz2zX.js → vue-ui-table-sparkline-BwwiWOX_.js} +13 -13
  119. package/dist/{vue-ui-table-sparkline-CqNPx5Zw.cjs → vue-ui-table-sparkline-dXyBTv6X.cjs} +1 -1
  120. package/dist/vue-ui-thermometer-DpWtOskJ.cjs +1 -0
  121. package/dist/{vue-ui-thermometer-BCGHbgj9.js → vue-ui-thermometer-U5IIot6j.js} +116 -116
  122. package/dist/{vue-ui-timer-BjqbxjQO.cjs → vue-ui-timer-DqVQjRdU.cjs} +1 -1
  123. package/dist/{vue-ui-timer-DhpBvc_5.js → vue-ui-timer-cCfNkOpe.js} +4 -4
  124. package/dist/{vue-ui-tiremarks-CNhB7Iqe.js → vue-ui-tiremarks-BcXrnO0N.js} +71 -71
  125. package/dist/vue-ui-tiremarks-C8pNPR_E.cjs +1 -0
  126. package/dist/vue-ui-treemap-24TuOX-H.cjs +1 -0
  127. package/dist/{vue-ui-treemap-C4memkYu.js → vue-ui-treemap-CVCaxcwW.js} +89 -82
  128. package/dist/{vue-ui-vertical-bar-LZ-GMZ2T.js → vue-ui-vertical-bar-Cuz2Qxi6.js} +246 -242
  129. package/dist/vue-ui-vertical-bar-kZxc3vG5.cjs +4 -0
  130. package/dist/{vue-ui-waffle-Cd4IU62n.js → vue-ui-waffle-BVFZf7mm.js} +44 -44
  131. package/dist/{vue-ui-waffle-CtY5CSX9.cjs → vue-ui-waffle-X-mNfs6F.cjs} +1 -1
  132. package/dist/{vue-ui-wheel-Do3pWPFB.cjs → vue-ui-wheel-CWOh-9CT.cjs} +1 -1
  133. package/dist/{vue-ui-wheel-CaEAQhJt.js → vue-ui-wheel-SUtbKs4l.js} +5 -5
  134. package/dist/vue-ui-word-cloud-BE_jkp2h.cjs +1 -0
  135. package/dist/{vue-ui-word-cloud-BSalPYqO.js → vue-ui-word-cloud-DAa0far7.js} +68 -65
  136. package/dist/vue-ui-xy-BTocPMsA.cjs +3 -0
  137. package/dist/{vue-ui-xy-C7tpVpGu.js → vue-ui-xy-B_dmMYPU.js} +82 -82
  138. package/dist/vue-ui-xy-canvas-BtuD8xjy.cjs +9 -0
  139. package/dist/{vue-ui-xy-canvas-rHcYmvec.js → vue-ui-xy-canvas-jq1j84oA.js} +122 -121
  140. package/package.json +1 -1
  141. package/dist/Slicer-PPS43jOo.cjs +0 -1
  142. package/dist/vue-ui-age-pyramid-Ce3DbeqC.cjs +0 -1
  143. package/dist/vue-ui-donut-evolution-BWvrYKlH.cjs +0 -1
  144. package/dist/vue-ui-dumbbell-2Lsks-8o.cjs +0 -9
  145. package/dist/vue-ui-flow-DBhdVKxF.cjs +0 -1
  146. package/dist/vue-ui-flow-DSdWqWgh.js +0 -465
  147. package/dist/vue-ui-galaxy-BMsdd9Rh.cjs +0 -1
  148. package/dist/vue-ui-gauge-fVk9B_1W.cjs +0 -1
  149. package/dist/vue-ui-heatmap-DFpSo2gr.cjs +0 -1
  150. package/dist/vue-ui-quick-chart-DsVFRO68.cjs +0 -15
  151. package/dist/vue-ui-radar-lcS6n5TC.cjs +0 -1
  152. package/dist/vue-ui-rings-DxqSAs9h.cjs +0 -2
  153. package/dist/vue-ui-spark-trend-B9PR0wxN.js +0 -251
  154. package/dist/vue-ui-spark-trend-Kj1bJmBL.cjs +0 -1
  155. package/dist/vue-ui-sparkgauge-SlYA1lqc.cjs +0 -1
  156. package/dist/vue-ui-strip-plot-Da_TQpOq.cjs +0 -1
  157. package/dist/vue-ui-thermometer-coTC0T6k.cjs +0 -1
  158. package/dist/vue-ui-tiremarks-DgbTo_Cb.cjs +0 -1
  159. package/dist/vue-ui-treemap-B5moKzuO.cjs +0 -1
  160. package/dist/vue-ui-vertical-bar-DtkGW5Tk.cjs +0 -4
  161. package/dist/vue-ui-word-cloud-pzaBe3Et.cjs +0 -1
  162. package/dist/vue-ui-xy-BgLF5ZNP.cjs +0 -3
  163. package/dist/vue-ui-xy-canvas-OuDGiOOW.cjs +0 -9
@@ -0,0 +1,469 @@
1
+ import { computed as m, onMounted as Fe, ref as w, openBlock as r, createElementBlock as h, normalizeClass as ue, normalizeStyle as C, createVNode as re, createCommentVNode as T, createBlock as A, unref as i, createSlots as Ie, withCtx as y, renderSlot as x, normalizeProps as ie, guardReactiveProps as ce, createElementVNode as O, Fragment as P, renderList as F, toDisplayString as U, createTextVNode as He, nextTick as Le } from "vue";
2
+ import { u as Ee, o as Oe, e as Me, c as de, t as Se, a as ze, p as V, b as Ye, s as v, f as ve, X as De, E as fe, H as Ge, i as Be, q as Ae, r as Ue } from "./index-BshV7sX1.js";
3
+ import { _ as Ve } from "./Title-fb3BzoXj.js";
4
+ import { u as je, U as Xe } from "./usePrinter-Culo-aKo.js";
5
+ import { D as We } from "./DataTable-luIjNnne.js";
6
+ import qe from "./vue-ui-accordion-B6AxEnAr.js";
7
+ import Re from "./vue-ui-skeleton-7qakoAGH.js";
8
+ import { u as he } from "./useNestedProp-B235bkr5.js";
9
+ import { _ as Ze } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
+ const Je = ["id"], Ke = ["xmlns", "viewBox"], Qe = ["id"], et = ["stop-color"], tt = ["stop-color"], lt = ["d", "fill", "stroke", "stroke-width"], ot = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "onMouseenter"], at = ["x", "y", "font-size", "fill"], nt = ["x", "y", "font-size", "fill"], st = {
11
+ key: 2,
12
+ class: "vue-data-ui-watermark"
13
+ }, ut = ["innerHTML"], rt = {
14
+ __name: "vue-ui-flow",
15
+ props: {
16
+ config: {
17
+ type: Object,
18
+ default() {
19
+ return {};
20
+ }
21
+ },
22
+ dataset: {
23
+ type: Array,
24
+ default() {
25
+ return [];
26
+ }
27
+ }
28
+ },
29
+ setup(me, { expose: ge }) {
30
+ const g = me, { vue_ui_flow: pe } = Ee(), M = m(() => !!g.dataset && g.dataset.length);
31
+ Fe(() => {
32
+ Oe(g.dataset) && Me({
33
+ componentName: "VueUiFlow",
34
+ type: "dataset"
35
+ });
36
+ });
37
+ const S = w(de()), j = w(null), X = w(0), N = w(!1);
38
+ function be(l) {
39
+ N.value = l, X.value += 1;
40
+ }
41
+ const e = m(() => {
42
+ const l = he({
43
+ userConfig: g.config,
44
+ defaultConfig: pe
45
+ });
46
+ return l.theme ? {
47
+ ...he({
48
+ userConfig: Se.vue_ui_flow[l.theme] || g.config,
49
+ defaultConfig: l
50
+ }),
51
+ customPalette: ze[l.theme] || V
52
+ } : l;
53
+ }), { isPrinting: W, isImaging: q, generatePdf: R, generateImage: Z } = je({
54
+ elementId: `flow_${S.value}`,
55
+ fileName: e.value.style.chart.title.text || "vue-ui-flow"
56
+ }), z = m(() => Ye(e.value.customPalette)), J = m(() => e.value.style.chart.nodes.gap), $ = m(() => e.value.style.chart.nodes.width), I = w({
57
+ showTable: e.value.table.show
58
+ }), K = m(() => e.value.style.chart.links.width), Y = m(() => !g.dataset || !g.dataset.length ? [] : g.dataset.map((l) => [
59
+ l[0],
60
+ l[1],
61
+ v(l[2])
62
+ ])), Q = m(() => {
63
+ const l = {};
64
+ function o(n) {
65
+ l[n] || (l[n] = { inflow: 0, outflow: 0 });
66
+ }
67
+ Y.value.forEach(([n, a, c]) => {
68
+ o(n), o(a), l[n].outflow += c, l[a].inflow += c;
69
+ });
70
+ let t = 0;
71
+ for (const n in l) {
72
+ const a = Math.max(l[n].inflow, l[n].outflow);
73
+ t = Math.max(t, a);
74
+ }
75
+ return t;
76
+ });
77
+ function ye(l) {
78
+ return l / Q.value * 100 + e.value.style.chart.nodes.minHeight;
79
+ }
80
+ function ke(l) {
81
+ const o = e.value.style.chart.nodes.minHeight;
82
+ return (l - o) / 100 * Q.value;
83
+ }
84
+ function we(l) {
85
+ const o = {}, t = {};
86
+ function n(s, u) {
87
+ o[s] || (o[s] = { height: 0, level: null, inflow: 0, outflow: 0 }), o[s].level === null && (o[s].level = u), t[u] || (t[u] = []), t[u].includes(s) || t[u].push(s);
88
+ }
89
+ l.forEach(([s, u, f], _) => {
90
+ const k = o[s] ? o[s].level : 0, E = k + 1;
91
+ n(s, k), n(u, E), o[s].children || (o[s].children = []), o[s].children.push({ target: u, value: f }), o[s].outflow += f, o[u].inflow += f;
92
+ }), Object.keys(o).forEach((s, u) => {
93
+ o[s].color = z.value[u] || z.value[u % z.value.length] || V[u] || V[u % d.length];
94
+ });
95
+ for (const s in o)
96
+ o[s].height = ye(Math.max(o[s].inflow, o[s].outflow)), o[s].name = s;
97
+ const a = {};
98
+ for (const s in t) {
99
+ let u = 0;
100
+ t[s].forEach((f, _) => {
101
+ const k = o[f].height;
102
+ a[f] = {
103
+ x: parseInt(s, 10) * K.value + e.value.style.chart.padding.left,
104
+ y: u,
105
+ absoluteY: u,
106
+ height: k,
107
+ i: _,
108
+ color: o[f].color,
109
+ value: ke(k)
110
+ }, u += k + J.value;
111
+ });
112
+ }
113
+ const c = [];
114
+ for (const s in o) {
115
+ let u = a[s].absoluteY;
116
+ o[s].children && o[s].children.forEach(({ target: f, value: _ }, k) => {
117
+ const E = a[f].y, G = a[s], B = a[f], oe = v(u), ae = v(u + _ / o[s].outflow * G.height), ne = v(E), se = v(E + _ / o[f].inflow * B.height), Pe = {
118
+ id: de(),
119
+ source: s,
120
+ target: f,
121
+ path: `M ${v(G.x) + v($.value)} ${oe} L ${v(G.x) + v($.value)} ${ae} L ${v(B.x)} ${se} L ${v(B.x)} ${ne} Z`,
122
+ value: _,
123
+ sourceColor: o[s].color,
124
+ targetColor: o[f].color
125
+ };
126
+ c.push(Pe), u += ae - oe, a[f].y += se - ne;
127
+ });
128
+ }
129
+ return { nodeCoordinates: a, links: c };
130
+ }
131
+ const p = m(() => {
132
+ const l = we(g.dataset);
133
+ return {
134
+ nodes: Object.keys(l.nodeCoordinates).map((o, t) => ({
135
+ ...l.nodeCoordinates[o],
136
+ name: o
137
+ })),
138
+ links: l.links
139
+ };
140
+ }), Ce = m(() => xe(p.value.nodes));
141
+ function xe(l) {
142
+ const o = {};
143
+ for (const n in l) {
144
+ const { x: a, height: c } = l[n];
145
+ o[a] || (o[a] = 0), o[a] += c + J.value;
146
+ }
147
+ return Math.max(...Object.values(o));
148
+ }
149
+ const D = m(() => {
150
+ const { top: l, right: o, left: t, bottom: n } = e.value.style.chart.padding, a = Y.value.length * K.value;
151
+ return {
152
+ height: Ce.value + l + n,
153
+ width: o + Math.max(...p.value.nodes.map((c) => c.x)) + $.value,
154
+ left: t,
155
+ top: l,
156
+ right: a - o,
157
+ p_top: l,
158
+ p_bottom: n
159
+ };
160
+ });
161
+ function $e(l) {
162
+ const o = {}, t = {}, n = /* @__PURE__ */ new Set();
163
+ return Y.value.forEach(([a, c, s]) => {
164
+ o[a] || (o[a] = []), t[c] || (t[c] = []), o[a].push(c), t[c].push(a);
165
+ }), o[l] && o[l].forEach((a) => n.add(a)), t[l] && t[l].forEach((a) => n.add(a)), Array.from(n).concat(l);
166
+ }
167
+ const b = w(null), H = w(null);
168
+ function _e(l) {
169
+ b.value = $e(l.name), H.value = l.name;
170
+ }
171
+ function Ne() {
172
+ b.value = null, H.value = null;
173
+ }
174
+ const ee = m(() => p.value.links.map(({ source: l, target: o, sourceColor: t, targetColor: n, value: a }) => ({
175
+ source: l,
176
+ target: o,
177
+ sourceColor: t,
178
+ targetColor: n,
179
+ value: a
180
+ })));
181
+ function te() {
182
+ Le(() => {
183
+ const l = ee.value.map((n, a) => [
184
+ [n.source],
185
+ [n.target],
186
+ [n.value]
187
+ ]), o = [
188
+ [e.value.style.chart.title.text],
189
+ [e.value.style.chart.title.subtitle.text],
190
+ [
191
+ [e.value.table.columnNames.source],
192
+ [e.value.table.columnNames.target],
193
+ [e.value.table.columnNames.value]
194
+ ]
195
+ ].concat(l), t = Ae(o);
196
+ Ue({
197
+ csvContent: t,
198
+ title: e.value.style.chart.title.text || "vue-ui-flow"
199
+ });
200
+ });
201
+ }
202
+ const L = m(() => {
203
+ const l = [
204
+ e.value.table.columnNames.source,
205
+ e.value.table.columnNames.target,
206
+ e.value.table.columnNames.value
207
+ ], o = ee.value.map((a, c) => [
208
+ {
209
+ color: a.sourceColor,
210
+ name: a.source
211
+ },
212
+ {
213
+ color: a.targetColor,
214
+ name: a.target
215
+ },
216
+ ve({
217
+ p: e.value.style.chart.nodes.labels.prefix,
218
+ v: a.value,
219
+ s: e.value.style.chart.nodes.labels.suffix,
220
+ r: e.value.style.chart.nodes.labels.rounding
221
+ })
222
+ ]), t = {
223
+ th: {
224
+ backgroundColor: e.value.table.th.backgroundColor,
225
+ color: e.value.table.th.color,
226
+ outline: e.value.table.th.outline
227
+ },
228
+ td: {
229
+ backgroundColor: e.value.table.td.backgroundColor,
230
+ color: e.value.table.td.color,
231
+ outline: e.value.table.td.outline
232
+ },
233
+ breakpoint: e.value.table.responsiveBreakpoint
234
+ };
235
+ return {
236
+ colNames: [
237
+ e.value.table.columnNames.source,
238
+ e.value.table.columnNames.target,
239
+ e.value.table.columnNames.value
240
+ ],
241
+ head: l,
242
+ body: o,
243
+ config: t
244
+ };
245
+ });
246
+ function Te() {
247
+ return p.value;
248
+ }
249
+ function le() {
250
+ I.value.showTable = !I.value.showTable;
251
+ }
252
+ return ge({
253
+ getData: Te,
254
+ generateCsv: te,
255
+ generateImage: Z,
256
+ generatePdf: R,
257
+ toggleTable: le
258
+ }), (l, o) => (r(), h("div", {
259
+ ref_key: "flowChart",
260
+ ref: j,
261
+ class: ue(`vue-ui-flow ${N.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
262
+ style: C(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${e.value.style.chart.title.text ? "" : "padding-top:36px"};background:${e.value.style.chart.backgroundColor}`),
263
+ id: `flow_${S.value}`
264
+ }, [
265
+ e.value.style.chart.title.text ? (r(), h("div", {
266
+ key: 0,
267
+ style: C(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:24px`)
268
+ }, [
269
+ re(Ve, {
270
+ config: {
271
+ title: {
272
+ cy: "flow-title",
273
+ ...e.value.style.chart.title
274
+ },
275
+ subtitle: {
276
+ cy: "flow-subtitle",
277
+ ...e.value.style.chart.title.subtitle
278
+ }
279
+ }
280
+ }, null, 8, ["config"])
281
+ ], 4)) : T("", !0),
282
+ e.value.userOptions.show && M.value ? (r(), A(Xe, {
283
+ ref: "details",
284
+ key: `user_option_${X.value}`,
285
+ backgroundColor: e.value.style.chart.backgroundColor,
286
+ color: e.value.style.chart.color,
287
+ isPrinting: i(W),
288
+ isImaging: i(q),
289
+ uid: S.value,
290
+ hasPdf: e.value.userOptions.buttons.pdf,
291
+ hasXls: e.value.userOptions.buttons.csv,
292
+ hasImg: e.value.userOptions.buttons.img,
293
+ hasTable: e.value.userOptions.buttons.table,
294
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
295
+ isFullscreen: N.value,
296
+ titles: { ...e.value.userOptions.buttonTitles },
297
+ chartElement: j.value,
298
+ onToggleFullscreen: be,
299
+ onGeneratePdf: i(R),
300
+ onGenerateCsv: te,
301
+ onGenerateImage: i(Z),
302
+ onToggleTable: le
303
+ }, Ie({ _: 2 }, [
304
+ l.$slots.optionPdf ? {
305
+ name: "optionPdf",
306
+ fn: y(() => [
307
+ x(l.$slots, "optionPdf", {}, void 0, !0)
308
+ ]),
309
+ key: "0"
310
+ } : void 0,
311
+ l.$slots.optionCsv ? {
312
+ name: "optionCsv",
313
+ fn: y(() => [
314
+ x(l.$slots, "optionCsv", {}, void 0, !0)
315
+ ]),
316
+ key: "1"
317
+ } : void 0,
318
+ l.$slots.optionImg ? {
319
+ name: "optionImg",
320
+ fn: y(() => [
321
+ x(l.$slots, "optionImg", {}, void 0, !0)
322
+ ]),
323
+ key: "2"
324
+ } : void 0,
325
+ l.$slots.optionTable ? {
326
+ name: "optionTable",
327
+ fn: y(() => [
328
+ x(l.$slots, "optionTable", {}, void 0, !0)
329
+ ]),
330
+ key: "3"
331
+ } : void 0,
332
+ l.$slots.optionFullscreen ? {
333
+ name: "optionFullscreen",
334
+ fn: y(({ toggleFullscreen: t, isFullscreen: n }) => [
335
+ x(l.$slots, "optionFullscreen", ie(ce({ toggleFullscreen: t, isFullscreen: n })), void 0, !0)
336
+ ]),
337
+ key: "4"
338
+ } : void 0
339
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : T("", !0),
340
+ (r(), h("svg", {
341
+ xmlns: i(De),
342
+ viewBox: `0 0 ${D.value.width} ${D.value.height}`,
343
+ class: ue({ "vue-data-ui-fullscreen--on": N.value, "vue-data-ui-fulscreen--off": !N.value }),
344
+ style: C(`max-width:100%; overflow: visible; background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
345
+ }, [
346
+ O("defs", null, [
347
+ (r(!0), h(P, null, F(p.value.links, (t, n) => (r(), h("linearGradient", {
348
+ id: t.id,
349
+ x1: "0%",
350
+ y1: "0%",
351
+ x2: "100%",
352
+ y2: "0%"
353
+ }, [
354
+ O("stop", {
355
+ offset: "0%",
356
+ "stop-color": t.sourceColor
357
+ }, null, 8, et),
358
+ O("stop", {
359
+ offset: "100%",
360
+ "stop-color": t.targetColor
361
+ }, null, 8, tt)
362
+ ], 8, Qe))), 256))
363
+ ]),
364
+ (r(!0), h(P, null, F(p.value.links, (t) => (r(), h("path", {
365
+ class: "vue-ui-flow-link",
366
+ d: t.path,
367
+ fill: `url(#${t.id})`,
368
+ stroke: e.value.style.chart.links.stroke,
369
+ "stroke-width": e.value.style.chart.links.strokeWidth,
370
+ style: C(`opacity:${H.value ? [t.target, t.source].includes(H.value) ? 1 : 0.3 : e.value.style.chart.links.opacity}`)
371
+ }, null, 12, lt))), 256)),
372
+ (r(!0), h(P, null, F(p.value.nodes, (t, n) => (r(), h("rect", {
373
+ class: "vue-ui-flow-node",
374
+ x: t.x,
375
+ y: i(v)(t.absoluteY),
376
+ height: i(v)(t.height),
377
+ width: $.value,
378
+ fill: t.color,
379
+ stroke: e.value.style.chart.nodes.stroke,
380
+ "stroke-width": e.value.style.chart.nodes.strokeWidth,
381
+ onMouseenter: (a) => _e(t),
382
+ onMouseleave: o[0] || (o[0] = (a) => Ne()),
383
+ style: C(`opacity:${b.value ? b.value.includes(t.name) ? 1 : 0.2 : 1}`)
384
+ }, null, 44, ot))), 256)),
385
+ (r(!0), h(P, null, F(p.value.nodes, (t, n) => (r(), h("text", {
386
+ x: t.x + $.value / 2,
387
+ y: i(v)(t.absoluteY + t.height / 2 - e.value.style.chart.nodes.labels.fontSize / 4),
388
+ "font-size": e.value.style.chart.nodes.labels.fontSize,
389
+ fill: i(fe)(t.color),
390
+ "text-anchor": "middle",
391
+ style: C(`pointer-events: none; opacity:${b.value ? b.value.includes(t.name) ? 1 : 0 : 1}`)
392
+ }, U(e.value.style.chart.nodes.labels.abbreviation.use ? i(Ge)({ source: t.name, length: e.value.style.chart.nodes.labels.abbreviation.length }) : t.name), 13, at))), 256)),
393
+ (r(!0), h(P, null, F(p.value.nodes, (t, n) => (r(), h("text", {
394
+ x: t.x + $.value / 2,
395
+ y: i(v)(t.absoluteY + t.height / 2 + e.value.style.chart.nodes.labels.fontSize),
396
+ "font-size": e.value.style.chart.nodes.labels.fontSize,
397
+ fill: i(fe)(t.color),
398
+ "text-anchor": "middle",
399
+ style: C(`pointer-events: none; opacity:${b.value ? b.value.includes(t.name) ? 1 : 0 : 1}`)
400
+ }, U(i(Be)(
401
+ e.value.style.chart.nodes.labels.formatter,
402
+ t.value,
403
+ i(ve)({
404
+ p: e.value.style.chart.nodes.labels.prefix,
405
+ v: t.value,
406
+ s: e.value.style.chart.nodes.labels.suffix,
407
+ r: e.value.style.chart.nodes.labels.rounding
408
+ }),
409
+ { datapoint: t, seriesIndex: n }
410
+ )), 13, nt))), 256)),
411
+ x(l.$slots, "svg", { svg: D.value }, void 0, !0)
412
+ ], 14, Ke)),
413
+ l.$slots.watermark ? (r(), h("div", st, [
414
+ x(l.$slots, "watermark", ie(ce({ isPrinting: i(W) || i(q) })), void 0, !0)
415
+ ])) : T("", !0),
416
+ M.value ? T("", !0) : (r(), A(Re, {
417
+ key: 3,
418
+ config: {
419
+ type: "flow",
420
+ style: {
421
+ backgroundColor: e.value.style.chart.backgroundColor
422
+ }
423
+ }
424
+ }, null, 8, ["config"])),
425
+ M.value ? (r(), A(qe, {
426
+ key: 4,
427
+ hideDetails: "",
428
+ config: {
429
+ open: I.value.showTable,
430
+ maxHeight: 1e4,
431
+ body: {
432
+ backgroundColor: e.value.style.chart.backgroundColor,
433
+ color: e.value.style.chart.color
434
+ },
435
+ head: {
436
+ backgroundColor: e.value.style.chart.backgroundColor,
437
+ color: e.value.style.chart.color
438
+ }
439
+ }
440
+ }, {
441
+ content: y(() => [
442
+ re(We, {
443
+ colNames: L.value.colNames,
444
+ head: L.value.head,
445
+ body: L.value.body,
446
+ config: L.value.config,
447
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
448
+ onClose: o[1] || (o[1] = (t) => I.value.showTable = !1)
449
+ }, {
450
+ th: y(({ th: t }) => [
451
+ O("div", {
452
+ innerHTML: t,
453
+ style: { display: "flex", "align-items": "center" }
454
+ }, null, 8, ut)
455
+ ]),
456
+ td: y(({ td: t }) => [
457
+ He(U(t.name || t), 1)
458
+ ]),
459
+ _: 1
460
+ }, 8, ["colNames", "head", "body", "config", "title"])
461
+ ]),
462
+ _: 1
463
+ }, 8, ["config"])) : T("", !0)
464
+ ], 14, Je));
465
+ }
466
+ }, bt = /* @__PURE__ */ Ze(rt, [["__scopeId", "data-v-c5ae33a6"]]);
467
+ export {
468
+ bt as default
469
+ };