vue-data-ui 3.4.7 → 3.4.8

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 (115) hide show
  1. package/dist/{PackageVersion-QNVkHOgG.js → PackageVersion-D-auaEEJ.js} +1 -1
  2. package/dist/{UserOptions-CnzumGJj.js → UserOptions-CGnQt6Fd.js} +91 -91
  3. package/dist/components/vue-ui-3d-bar.js +1 -1
  4. package/dist/components/vue-ui-age-pyramid.js +1 -1
  5. package/dist/components/vue-ui-bullet.js +1 -1
  6. package/dist/components/vue-ui-candlestick.js +1 -1
  7. package/dist/components/vue-ui-carousel-table.js +1 -1
  8. package/dist/components/vue-ui-chestnut.js +1 -1
  9. package/dist/components/vue-ui-chord.js +1 -1
  10. package/dist/components/vue-ui-circle-pack.js +1 -1
  11. package/dist/components/vue-ui-dashboard.js +1 -1
  12. package/dist/components/vue-ui-donut-evolution.js +1 -1
  13. package/dist/components/vue-ui-donut.js +1 -1
  14. package/dist/components/vue-ui-dumbbell.js +1 -1
  15. package/dist/components/vue-ui-flow.js +1 -1
  16. package/dist/components/vue-ui-funnel.js +1 -1
  17. package/dist/components/vue-ui-galaxy.js +1 -1
  18. package/dist/components/vue-ui-gauge.js +1 -1
  19. package/dist/components/vue-ui-gizmo.js +1 -1
  20. package/dist/components/vue-ui-heatmap.js +1 -1
  21. package/dist/components/vue-ui-history-plot.js +1 -1
  22. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  23. package/dist/components/vue-ui-molecule.js +1 -1
  24. package/dist/components/vue-ui-mood-radar.js +1 -1
  25. package/dist/components/vue-ui-nested-donuts.js +1 -1
  26. package/dist/components/vue-ui-onion.js +1 -1
  27. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  28. package/dist/components/vue-ui-quadrant.js +1 -1
  29. package/dist/components/vue-ui-quick-chart.js +1 -1
  30. package/dist/components/vue-ui-radar.js +1 -1
  31. package/dist/components/vue-ui-relation-circle.js +1 -1
  32. package/dist/components/vue-ui-ridgeline.js +1 -1
  33. package/dist/components/vue-ui-rings.js +1 -1
  34. package/dist/components/vue-ui-scatter.js +1 -1
  35. package/dist/components/vue-ui-skeleton.js +1 -1
  36. package/dist/components/vue-ui-spark-trend.js +1 -1
  37. package/dist/components/vue-ui-sparkbar.js +1 -1
  38. package/dist/components/vue-ui-sparkgauge.js +1 -1
  39. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  40. package/dist/components/vue-ui-sparkline.js +1 -1
  41. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  42. package/dist/components/vue-ui-stackbar.js +1 -1
  43. package/dist/components/vue-ui-strip-plot.js +1 -1
  44. package/dist/components/vue-ui-table-heatmap.js +1 -1
  45. package/dist/components/vue-ui-table-sparkline.js +1 -1
  46. package/dist/components/vue-ui-table.js +1 -1
  47. package/dist/components/vue-ui-thermometer.js +1 -1
  48. package/dist/components/vue-ui-timer.js +1 -1
  49. package/dist/components/vue-ui-tiremarks.js +1 -1
  50. package/dist/components/vue-ui-treemap.js +1 -1
  51. package/dist/components/vue-ui-vertical-bar.js +1 -1
  52. package/dist/components/vue-ui-waffle.js +1 -1
  53. package/dist/components/vue-ui-wheel.js +1 -1
  54. package/dist/components/vue-ui-word-cloud.js +1 -1
  55. package/dist/components/vue-ui-world.js +1 -1
  56. package/dist/components/vue-ui-xy-canvas.js +1 -1
  57. package/dist/components/vue-ui-xy.js +1 -1
  58. package/dist/style.css +1 -1
  59. package/dist/{vue-data-ui-BFwmY6si.js → vue-data-ui-CzqHcPqG.js} +55 -55
  60. package/dist/vue-data-ui.js +55 -55
  61. package/dist/{vue-ui-3d-bar-D1GoJWeg.js → vue-ui-3d-bar-CwXiD8zD.js} +49 -42
  62. package/dist/{vue-ui-age-pyramid-BDGFSsA5.js → vue-ui-age-pyramid-DlEPlWmV.js} +12 -5
  63. package/dist/{vue-ui-bullet-C3GtE3bF.js → vue-ui-bullet-DtzpeIu4.js} +59 -52
  64. package/dist/{vue-ui-candlestick-BlzmB2vM.js → vue-ui-candlestick-DzoiyaeB.js} +56 -49
  65. package/dist/{vue-ui-carousel-table-TKa7KYZ0.js → vue-ui-carousel-table-BqRERrjs.js} +79 -72
  66. package/dist/{vue-ui-chestnut-DNxARRsx.js → vue-ui-chestnut-CzBGckif.js} +77 -70
  67. package/dist/{vue-ui-chord-BM7tZig3.js → vue-ui-chord-B4waG93A.js} +71 -64
  68. package/dist/{vue-ui-circle-pack-BZU75WUb.js → vue-ui-circle-pack-DiTw_p5r.js} +58 -51
  69. package/dist/{vue-ui-dashboard-pNXFzQu4.js → vue-ui-dashboard-Bt-MUKqy.js} +56 -56
  70. package/dist/{vue-ui-donut-CRvfqCUO.js → vue-ui-donut-Bc492JeS.js} +95 -88
  71. package/dist/{vue-ui-donut-evolution-CCdIWlyZ.js → vue-ui-donut-evolution-D6TaZK2x.js} +80 -73
  72. package/dist/{vue-ui-dumbbell-CLmwZyrf.js → vue-ui-dumbbell-BlZr68Sq.js} +12 -5
  73. package/dist/{vue-ui-flow-BY8XQXKF.js → vue-ui-flow-ByEP18dA.js} +205 -198
  74. package/dist/{vue-ui-funnel-BmxhWoVW.js → vue-ui-funnel-BU7d_U6T.js} +98 -91
  75. package/dist/{vue-ui-galaxy-BgtKffX5.js → vue-ui-galaxy-CpVrxaTr.js} +140 -133
  76. package/dist/{vue-ui-gauge-DLpK4-Cd.js → vue-ui-gauge-B9Z4EXoj.js} +108 -101
  77. package/dist/{vue-ui-gizmo-CCNboEnL.js → vue-ui-gizmo-T1paJEJ3.js} +1 -1
  78. package/dist/{vue-ui-heatmap-BSDmuvq8.js → vue-ui-heatmap-Uw83eEMz.js} +97 -90
  79. package/dist/{vue-ui-history-plot-s8wYm7fn.js → vue-ui-history-plot-C93VwVCY.js} +41 -34
  80. package/dist/{vue-ui-molecule-BYWE2ONy.js → vue-ui-molecule-CFMWwXFN.js} +94 -87
  81. package/dist/{vue-ui-mood-radar-BOvaA1Jq.js → vue-ui-mood-radar-FkVaaOVG.js} +71 -64
  82. package/dist/{vue-ui-nested-donuts-BUGkuN56.js → vue-ui-nested-donuts-Cyi98NXq.js} +93 -86
  83. package/dist/{vue-ui-onion-CPshjlgf.js → vue-ui-onion-BCENNhsY.js} +82 -75
  84. package/dist/{vue-ui-parallel-coordinate-plot-orQotxDr.js → vue-ui-parallel-coordinate-plot-Dca9wkD0.js} +116 -109
  85. package/dist/{vue-ui-quadrant-CM3iH31f.js → vue-ui-quadrant-CEtFEZT3.js} +46 -39
  86. package/dist/{vue-ui-quick-chart-BhO2YQn0.js → vue-ui-quick-chart-bqcp6BIl.js} +171 -164
  87. package/dist/{vue-ui-radar-CNZVFG-v.js → vue-ui-radar-lgRCmyNP.js} +36 -29
  88. package/dist/{vue-ui-relation-circle-BX48Cgx3.js → vue-ui-relation-circle-cRRrbaIT.js} +100 -93
  89. package/dist/{vue-ui-ridgeline-MQAF9nvq.js → vue-ui-ridgeline-CaeFJq9a.js} +23 -16
  90. package/dist/{vue-ui-rings-BPhLSCUX.js → vue-ui-rings-DbsYfGjx.js} +55 -48
  91. package/dist/{vue-ui-scatter-C3dD6T6q.js → vue-ui-scatter-DcMnoNrY.js} +189 -182
  92. package/dist/{vue-ui-skeleton-Be8xm0gy.js → vue-ui-skeleton-b5fdgyHv.js} +1 -1
  93. package/dist/{vue-ui-spark-trend-suNsujGP.js → vue-ui-spark-trend-DrQ26BzL.js} +1 -1
  94. package/dist/{vue-ui-sparkbar-BjD2kUth.js → vue-ui-sparkbar-BlvXLcfO.js} +1 -1
  95. package/dist/{vue-ui-sparkgauge-C816ocz6.js → vue-ui-sparkgauge-CQmNePxu.js} +1 -1
  96. package/dist/{vue-ui-sparkhistogram-CAgfueUq.js → vue-ui-sparkhistogram-CJatqy8x.js} +1 -1
  97. package/dist/{vue-ui-sparkline-BmVwG9vw.js → vue-ui-sparkline-5m7hFiMq.js} +1 -1
  98. package/dist/{vue-ui-sparkstackbar-DoFTW_u_.js → vue-ui-sparkstackbar-Z5g6L2Hj.js} +1 -1
  99. package/dist/{vue-ui-stackbar-C1qHHSuI.js → vue-ui-stackbar-WrexTg8_.js} +53 -46
  100. package/dist/{vue-ui-strip-plot-Ccz9BiSl.js → vue-ui-strip-plot-DqX7yya9.js} +13 -6
  101. package/dist/{vue-ui-table-IKsrsEUh.js → vue-ui-table-BhrP9BCp.js} +2 -2
  102. package/dist/{vue-ui-table-heatmap-B4rjR34n.js → vue-ui-table-heatmap-BqCEBoUf.js} +1 -1
  103. package/dist/{vue-ui-table-sparkline-B71QVMkq.js → vue-ui-table-sparkline-BECa8n5_.js} +1 -1
  104. package/dist/{vue-ui-thermometer-fY5WxAbX.js → vue-ui-thermometer-BxBGrsSR.js} +83 -76
  105. package/dist/{vue-ui-timer-BBdNJ0fK.js → vue-ui-timer-BbHY5Ed5.js} +1 -1
  106. package/dist/{vue-ui-tiremarks-Co0t61HH.js → vue-ui-tiremarks-DzL3Sc1f.js} +43 -36
  107. package/dist/{vue-ui-treemap-ujTn_36A.js → vue-ui-treemap-DoHoS5NK.js} +114 -107
  108. package/dist/{vue-ui-vertical-bar-BNp-Vl0q.js → vue-ui-vertical-bar-D0N5btU-.js} +89 -82
  109. package/dist/{vue-ui-waffle-CRPYb9mZ.js → vue-ui-waffle-CTt7dxCY.js} +41 -34
  110. package/dist/{vue-ui-wheel-BvycoQ3Z.js → vue-ui-wheel--TIPvQ9I.js} +132 -125
  111. package/dist/{vue-ui-word-cloud-Cjs46-dC.js → vue-ui-word-cloud-D5pZq4Jq.js} +116 -109
  112. package/dist/{vue-ui-world-BTLAdJeD.js → vue-ui-world-BERHgePa.js} +71 -64
  113. package/dist/{vue-ui-xy-CBRHUbAn.js → vue-ui-xy-BI5stV8f.js} +163 -156
  114. package/dist/{vue-ui-xy-canvas-BGl_2pHw.js → vue-ui-xy-canvas-DXnLFwW3.js} +1 -1
  115. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { defineAsyncComponent as H, ref as u, computed as d, onMounted as vo, toRefs as ho, watch as Se, createElementBlock as g, openBlock as c, unref as r, normalizeStyle as W, normalizeClass as _t, createBlock as q, createCommentVNode as T, createElementVNode as G, createVNode as _e, createSlots as Ot, withCtx as b, renderSlot as k, normalizeProps as Z, guardReactiveProps as ee, Fragment as de, renderList as he, withKeys as qe, withModifiers as Ke, toDisplayString as fe, Teleport as fo, resolveDynamicComponent as po, mergeProps as go, createTextVNode as Nt, nextTick as Ft } from "vue";
1
+ import { defineAsyncComponent as H, ref as u, computed as d, onMounted as vo, toRefs as ho, watch as Se, createElementBlock as g, openBlock as c, unref as r, normalizeStyle as W, normalizeClass as _t, createBlock as q, createCommentVNode as T, createElementVNode as G, createVNode as _e, createSlots as Ot, withCtx as y, renderSlot as C, normalizeProps as Z, guardReactiveProps as ee, Fragment as de, renderList as he, withKeys as qe, withModifiers as Ke, toDisplayString as fe, Teleport as fo, resolveDynamicComponent as po, mergeProps as go, createTextVNode as Nt, nextTick as Ft } from "vue";
2
2
  import { c as Oe, t as mo, o as Et, f as yo, b as bo, p as D, e as Co, x, h as ko, d as te, X as wo, a as Ne, J as It, I as $o, P as Ao, Q as To, G as xo } from "./lib-C_mNZmhD.js";
3
3
  import { t as So, u as _o } from "./useResponsive-DfdjqQps.js";
4
4
  import { u as Oo, a as Pt } from "./useNestedProp-BjZe1Y85.js";
@@ -37,13 +37,13 @@ const Ho = ["id"], Wo = {
37
37
  }
38
38
  },
39
39
  setup(Mt, { expose: Bt }) {
40
- const Dt = H(() => import("./Tooltip-oWCO1HKy.js")), Lt = H(() => import("./BaseIcon-BmMbm4d0.js")), zt = H(() => import("./vue-ui-accordion-CZ0thhxa.js")), Rt = H(() => import("./DataTable-BT7VF2ua.js")), Ht = H(() => import("./PenAndPaper-DSvu9dwa.js")), Wt = H(() => import("./UserOptions-CnzumGJj.js")), Gt = H(() => import("./PackageVersion-QNVkHOgG.js")), Ut = H(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_flow: Yt } = Oo(), E = Mt, U = u(Oe()), I = u(null), Je = u(0), Qe = u(0), Fe = u(!1), Ee = u(""), Ze = u(null), et = u(null), tt = u(null), oe = u(null), pe = u(null), ot = u(!1), le = u(null), Ie = u(null), Pe = u(null), lt = d(() => !!E.dataset && E.dataset.length);
40
+ const Dt = H(() => import("./Tooltip-oWCO1HKy.js")), Lt = H(() => import("./BaseIcon-BmMbm4d0.js")), zt = H(() => import("./vue-ui-accordion-CZ0thhxa.js")), Rt = H(() => import("./DataTable-BT7VF2ua.js")), Ht = H(() => import("./PenAndPaper-DSvu9dwa.js")), Wt = H(() => import("./UserOptions-CGnQt6Fd.js")), Gt = H(() => import("./PackageVersion-D-auaEEJ.js")), Ut = H(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_flow: Yt } = Oo(), E = Mt, U = u(Oe()), I = u(null), Je = u(0), Qe = u(0), Fe = u(!1), Ee = u(""), Ze = u(null), et = u(null), tt = u(null), oe = u(null), pe = u(null), ot = u(!1), le = u(null), Ie = u(null), Pe = u(null), lt = d(() => !!E.dataset && E.dataset.length);
41
41
  vo(() => {
42
42
  ot.value = !0, nt();
43
43
  });
44
44
  const Y = u(!1);
45
- function at(o) {
46
- Y.value = o, Je.value += 1;
45
+ function at(t) {
46
+ Y.value = t, Je.value += 1;
47
47
  }
48
48
  const e = u(ze()), { loading: Me, FINAL_DATASET: ge, manualLoading: Be } = Fo({
49
49
  ...ho(E),
@@ -96,46 +96,46 @@ const Ho = ["id"], Wo = {
96
96
  type: "dataset",
97
97
  debug: jt.value
98
98
  }), Be.value = !0), Et(E.dataset) || (Be.value = e.value.loading), e.value.responsive) {
99
- const o = So(() => {
100
- const { width: l, height: t } = _o({
99
+ const t = So(() => {
100
+ const { width: l, height: o } = _o({
101
101
  chart: I.value,
102
102
  title: e.value.style.chart.title.text ? et.value : null,
103
103
  legend: e.value.style.chart.legend.show ? Ze.value : null,
104
104
  source: tt.value
105
105
  });
106
106
  requestAnimationFrame(() => {
107
- ut.value = l, it.value = t;
107
+ ut.value = l, it.value = o;
108
108
  });
109
109
  });
110
- oe.value && (pe.value && oe.value.unobserve(pe.value), oe.value.disconnect()), oe.value = new ResizeObserver(o), pe.value = I.value.parentNode, oe.value.observe(pe.value);
110
+ oe.value && (pe.value && oe.value.unobserve(pe.value), oe.value.disconnect()), oe.value = new ResizeObserver(t), pe.value = I.value.parentNode, oe.value.observe(pe.value);
111
111
  }
112
112
  }
113
113
  const { userOptionsVisible: De, setUserOptionsVisibility: st, keepUserOptionState: rt } = Po({ config: e.value }), { svgRef: Le } = Mo({
114
114
  config: e.value.style.chart.title
115
115
  });
116
116
  function ze() {
117
- const o = Pt({
117
+ const t = Pt({
118
118
  userConfig: E.config,
119
119
  defaultConfig: Yt
120
120
  });
121
- let l = o;
122
- return o.theme ? l = {
121
+ let l = t;
122
+ return t.theme ? l = {
123
123
  ...Pt({
124
- userConfig: Bo.vue_ui_flow[o.theme] || E.config,
125
- defaultConfig: o
124
+ userConfig: Bo.vue_ui_flow[t.theme] || E.config,
125
+ defaultConfig: t
126
126
  }),
127
- customPalette: bo[o.theme] || D
128
- } : l = o, l.nodeCategories = E.config.nodeCategories || {}, l.nodeCategoryColors = E.config.nodeCategoryColors || {}, l;
127
+ customPalette: bo[t.theme] || D
128
+ } : l = t, l.nodeCategories = E.config.nodeCategories || {}, l.nodeCategoryColors = E.config.nodeCategoryColors || {}, l;
129
129
  }
130
130
  const ut = u(e.value.style.chart.width), it = u(e.value.style.chart.height);
131
131
  Se(
132
132
  () => E.config,
133
- (o) => {
133
+ (t) => {
134
134
  Me.value || (e.value = ze()), De.value = !e.value.userOptions.showOnChartHover, nt(), Qe.value += 1, S.value.showTable = e.value.table.show;
135
135
  },
136
136
  { deep: !0 }
137
- ), Se(() => E.dataset, (o) => {
138
- Array.isArray(o) && o.length > 0 && (Be.value = !1);
137
+ ), Se(() => E.dataset, (t) => {
138
+ Array.isArray(t) && t.length > 0 && (Be.value = !1);
139
139
  }, { deep: !0 });
140
140
  const { isPrinting: ct, isImaging: vt, generatePdf: dt, generateImage: ht } = No({
141
141
  elementId: `flow_${U.value}`,
@@ -151,14 +151,14 @@ const Ho = ["id"], Wo = {
151
151
  showTooltip: e.value.style.chart.tooltip.show
152
152
  };
153
153
  }, { immediate: !0 });
154
- const ft = d(() => !ge.value || !ge.value.length ? [] : ge.value.map((o, l) => [
155
- o[0],
156
- o[1],
157
- x(o[2]),
158
- o[3] ? ko(o[3]) : me.value[l] || me.value[l % me.value.length] || D[l] || D[l % D.length]
154
+ const ft = d(() => !ge.value || !ge.value.length ? [] : ge.value.map((t, l) => [
155
+ t[0],
156
+ t[1],
157
+ x(t[2]),
158
+ t[3] ? ko(t[3]) : me.value[l] || me.value[l % me.value.length] || D[l] || D[l % D.length]
159
159
  ]));
160
- function Xt(o) {
161
- const l = {}, t = {};
160
+ function Xt(t) {
161
+ const l = {}, o = {};
162
162
  function a(n, i) {
163
163
  l[n] || (l[n] = {
164
164
  level: null,
@@ -167,18 +167,18 @@ const Ho = ["id"], Wo = {
167
167
  children: [],
168
168
  color: null,
169
169
  uid: Oe()
170
- }), l[n].level === null && (l[n].level = i), t[i] || (t[i] = []), t[i].includes(n) || t[i].push(n);
170
+ }), l[n].level === null && (l[n].level = i), o[i] || (o[i] = []), o[i].includes(n) || o[i].push(n);
171
171
  }
172
- o.forEach(([n, i, h]) => {
172
+ t.forEach(([n, i, h]) => {
173
173
  const f = l[n]?.level ?? 0, O = f + 1;
174
174
  a(n, f), a(i, O), l[n].children.push({ target: i, value: h }), l[n].outflow += h, l[i].inflow += h;
175
175
  });
176
- const s = new Set(o.map(([n]) => n)), $ = new Set(o.map(([, n]) => n)), J = Array.from(s).filter((n) => !$.has(n)), ue = {};
176
+ const s = new Set(t.map(([n]) => n)), $ = new Set(t.map(([, n]) => n)), J = Array.from(s).filter((n) => !$.has(n)), ue = {};
177
177
  J.forEach((n, i) => {
178
178
  ue[n] = me.value[i] || D[i % D.length];
179
179
  });
180
180
  const ie = {};
181
- o.forEach(([n, i, h, f]) => {
181
+ t.forEach(([n, i, h, f]) => {
182
182
  f && (ie[n] = f, ie[i] = f);
183
183
  }), Object.keys(l).forEach((n, i) => {
184
184
  const h = e.value.nodeCategories?.[n], f = h ? e.value.nodeCategoryColors?.[h] : null;
@@ -186,35 +186,35 @@ const Ho = ["id"], Wo = {
186
186
  }), Object.keys(l).forEach((n) => {
187
187
  l[n].value = Math.max(l[n].inflow, l[n].outflow);
188
188
  });
189
- const Ae = ae.value, Ye = mt.value.width, Q = mt.value.height, B = Object.keys(t).map(Number).sort((n, i) => n - i), Te = B.length || 1, je = Te > 1 ? Ye / (Te - 1) : 0, A = Number(ye.value), M = Number(
189
+ const Ae = ae.value, Ye = mt.value.width, Q = mt.value.height, B = Object.keys(o).map(Number).sort((n, i) => n - i), Te = B.length || 1, je = Te > 1 ? Ye / (Te - 1) : 0, A = Number(ye.value), M = Number(
190
190
  e.value.style.chart.nodes.gapPx ?? e.value.style.chart.nodes.gap ?? 8
191
191
  ), ce = Number(e.value.style.chart.nodes.minHeight || 0);
192
192
  function v(n) {
193
- const i = t[n], h = i.length;
193
+ const i = o[n], h = i.length;
194
194
  if (!h) return 1 / 0;
195
195
  const f = Math.max(0, (h - 1) * M), O = Math.max(0, Q - f), L = Math.min(ce, h ? O / h : 0);
196
- let C = 0, N = i.map((p) => l[p].value || 0), y = N.reduce((p, F) => p + F, 0);
196
+ let k = 0, N = i.map((p) => l[p].value || 0), b = N.reduce((p, F) => p + F, 0);
197
197
  for (let p = 0; p < 12; p += 1) {
198
- const F = y > 0 ? (O - C) / y : 0, z = [];
198
+ const F = b > 0 ? (O - k) / b : 0, z = [];
199
199
  for (let P = 0; P < N.length; P += 1) {
200
200
  const R = N[P];
201
201
  R < 0 || R * F < L && z.push(P);
202
202
  }
203
203
  if (!z.length) return Math.max(0, F);
204
204
  for (const P of z)
205
- C += L, y -= N[P], N[P] = -1;
206
- if (y <= 0) return 0;
205
+ k += L, b -= N[P], N[P] = -1;
206
+ if (b <= 0) return 0;
207
207
  }
208
- return y > 0 ? Math.max(0, (O - C) / y) : 0;
208
+ return b > 0 ? Math.max(0, (O - k) / b) : 0;
209
209
  }
210
210
  const m = B.map(v), V = m.length ? Math.min(...m) : 0, X = {};
211
211
  B.forEach((n) => {
212
- const i = t[n], h = i.length, f = Math.max(0, (h - 1) * M), O = Math.max(0, Q - f), L = Math.min(ce, h ? O / h : 0), C = i.map(
212
+ const i = o[n], h = i.length, f = Math.max(0, (h - 1) * M), O = Math.max(0, Q - f), L = Math.min(ce, h ? O / h : 0), k = i.map(
213
213
  (p) => Math.max(L, (l[p].value || 0) * V)
214
- ), N = C.reduce((p, F) => p + F, 0) + f;
215
- let y = Math.max(0, (Q - N) / 2);
214
+ ), N = k.reduce((p, F) => p + F, 0) + f;
215
+ let b = Math.max(0, (Q - N) / 2);
216
216
  i.forEach((p, F) => {
217
- const z = C[F], P = Ae.left + n * je, R = y;
217
+ const z = k[F], P = Ae.left + n * je, R = b;
218
218
  X[p] = {
219
219
  x: P,
220
220
  y: R,
@@ -224,7 +224,7 @@ const Ho = ["id"], Wo = {
224
224
  color: l[p].color,
225
225
  value: l[p].value,
226
226
  id: Oe()
227
- }, y += z, F < h - 1 && (y += M);
227
+ }, b += z, F < h - 1 && (b += M);
228
228
  });
229
229
  });
230
230
  const Tt = [], ve = Ae.top, Ve = {}, Xe = {};
@@ -233,38 +233,38 @@ const Ho = ["id"], Wo = {
233
233
  });
234
234
  const so = 1e-6, ro = 0.25;
235
235
  return B.forEach((n) => {
236
- t[n].forEach((h) => {
236
+ o[n].forEach((h) => {
237
237
  const f = l[h], O = X[h];
238
238
  if (!f.children || !f.children.length) return;
239
239
  let L = O.y;
240
- f.children.forEach(({ target: C, value: N }) => {
241
- const y = X[C], p = l[C], F = f.outflow > 0 ? N / f.outflow : 0, z = p.inflow > 0 ? N / p.inflow : 0, P = x(L + ve), R = x(L + F * O.height + ve), xt = Ve[C];
242
- let xe = xt + z * y.height;
243
- Xe[C] += N;
244
- const uo = p.inflow > 0 && Xe[C] >= p.inflow - so, St = y.y + y.height;
240
+ f.children.forEach(({ target: k, value: N }) => {
241
+ const b = X[k], p = l[k], F = f.outflow > 0 ? N / f.outflow : 0, z = p.inflow > 0 ? N / p.inflow : 0, P = x(L + ve), R = x(L + F * O.height + ve), xt = Ve[k];
242
+ let xe = xt + z * b.height;
243
+ Xe[k] += N;
244
+ const uo = p.inflow > 0 && Xe[k] >= p.inflow - so, St = b.y + b.height;
245
245
  (uo || xe > St - ro) && (xe = St);
246
246
  const io = x(xt + ve), co = x(xe + ve);
247
247
  Tt.push({
248
248
  id: Oe(),
249
249
  source: h,
250
- target: C,
251
- path: `M ${x(O.x + A)} ${P} L ${x(O.x + A)} ${R} L ${x(y.x)} ${co} L ${x(y.x)} ${io} Z`,
250
+ target: k,
251
+ path: `M ${x(O.x + A)} ${P} L ${x(O.x + A)} ${R} L ${x(b.x)} ${co} L ${x(b.x)} ${io} Z`,
252
252
  value: N,
253
253
  sourceColor: f.color,
254
- targetColor: l[C].color
255
- }), L = R - ve, Ve[C] = xe;
254
+ targetColor: l[k].color
255
+ }), L = R - ve, Ve[k] = xe;
256
256
  });
257
257
  });
258
258
  }), { nodeCoordinates: X, links: Tt };
259
259
  }
260
260
  const _ = d(() => {
261
- const o = Xt(ge.value);
261
+ const t = Xt(ge.value);
262
262
  return {
263
- nodes: Object.keys(o.nodeCoordinates).map((l, t) => ({
264
- ...o.nodeCoordinates[l],
263
+ nodes: Object.keys(t.nodeCoordinates).map((l, o) => ({
264
+ ...t.nodeCoordinates[l],
265
265
  name: l
266
266
  })),
267
- links: o.links
267
+ links: t.links
268
268
  };
269
269
  }), pt = d(() => ut.value), gt = d(() => it.value), ae = d(() => e.value.style.chart.padding), mt = d(() => ({
270
270
  width: Math.max(0, pt.value - 40 - ae.value.right - ae.value.left),
@@ -273,31 +273,31 @@ const Ho = ["id"], Wo = {
273
273
  width: pt.value,
274
274
  height: gt.value
275
275
  }));
276
- function qt(o) {
277
- const l = {}, t = {}, a = /* @__PURE__ */ new Set();
276
+ function qt(t) {
277
+ const l = {}, o = {}, a = /* @__PURE__ */ new Set();
278
278
  return ft.value.forEach(([s, $, J]) => {
279
- l[s] || (l[s] = []), t[$] || (t[$] = []), l[s].push($), t[$].push(s);
280
- }), l[o] && l[o].forEach((s) => a.add(s)), t[o] && t[o].forEach((s) => a.add(s)), Array.from(a).concat(o);
279
+ l[s] || (l[s] = []), o[$] || (o[$] = []), l[s].push($), o[$].push(s);
280
+ }), l[t] && l[t].forEach((s) => a.add(s)), o[t] && o[t].forEach((s) => a.add(s)), Array.from(a).concat(t);
281
281
  }
282
282
  const w = u(null), K = u(null), se = u(null), be = u(!1), Ce = u(null);
283
- function yt(o, l) {
284
- j.value = [], w.value = qt(o.name), K.value = o.name, Ce.value = o.id;
285
- const t = o.name, a = ft.value;
283
+ function yt(t, l) {
284
+ j.value = [], w.value = qt(t.name), K.value = t.name, Ce.value = t.id;
285
+ const o = t.name, a = ft.value;
286
286
  let s = 0, $ = 0, J = [], ue = [];
287
287
  const ie = new Set(a.map(([v]) => v)), Ae = new Set(a.map(([, v]) => v)), Ye = Array.from(ie).filter((v) => !Ae.has(v)), Q = a.filter(([v]) => Ye.includes(v)).reduce((v, [m, V, X]) => v + X, 0), B = {};
288
288
  _.value.nodes.forEach((v) => {
289
289
  B[v.name] = v.color;
290
290
  }), a.forEach(([v, m, V]) => {
291
- m === t && (s += V, J.push({ source: v, value: V, color: B[v] })), v === t && ($ += V, ue.push({ target: m, value: V, color: B[m] }));
291
+ m === o && (s += V, J.push({ source: v, value: V, color: B[v] })), v === o && ($ += V, ue.push({ target: m, value: V, color: B[m] }));
292
292
  });
293
293
  const Te = Math.max(s, $), je = Q > 0 ? Te / Q * 100 : 0, A = {
294
- name: t,
294
+ name: o,
295
295
  inflow: s,
296
296
  outflow: $,
297
297
  from: J,
298
298
  to: ue,
299
299
  percentOfTotal: je,
300
- color: B[t] || "#000000"
300
+ color: B[o] || "#000000"
301
301
  };
302
302
  e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: A, seriesIndex: l }), se.value = { datapoint: A }, Fe.value = !0;
303
303
  let M = "";
@@ -345,27 +345,27 @@ const Ho = ["id"], Wo = {
345
345
  })), Ee.value = M;
346
346
  }
347
347
  }
348
- function ke(o) {
348
+ function ke(t) {
349
349
  Ce.value = null;
350
350
  const l = se.value;
351
- e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: o }), w.value = null, K.value = null, Fe.value = !1;
351
+ e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: t }), w.value = null, K.value = null, Fe.value = !1;
352
352
  }
353
- function Re(o) {
353
+ function Re(t) {
354
354
  const l = se.value;
355
- e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: o });
355
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: t });
356
356
  }
357
357
  const bt = d(() => _.value.links.map(
358
- ({ source: o, target: l, sourceColor: t, targetColor: a, value: s }) => ({
359
- source: o,
358
+ ({ source: t, target: l, sourceColor: o, targetColor: a, value: s }) => ({
359
+ source: t,
360
360
  target: l,
361
- sourceColor: t,
361
+ sourceColor: o,
362
362
  targetColor: a,
363
363
  value: s
364
364
  })
365
365
  ));
366
- function He(o = null) {
366
+ function He(t = null) {
367
367
  Ft(() => {
368
- const l = bt.value.map((s, $) => [[s.source], [s.target], [s.value]]), t = [
368
+ const l = bt.value.map((s, $) => [[s.source], [s.target], [s.value]]), o = [
369
369
  [e.value.style.chart.title.text],
370
370
  [e.value.style.chart.title.subtitle.text],
371
371
  [
@@ -373,15 +373,15 @@ const Ho = ["id"], Wo = {
373
373
  [e.value.table.columnNames.target],
374
374
  [e.value.table.columnNames.value]
375
375
  ]
376
- ].concat(l), a = Ao(t);
377
- o ? o(a) : To({
376
+ ].concat(l), a = Ao(o);
377
+ t ? t(a) : To({
378
378
  csvContent: a,
379
379
  title: e.value.style.chart.title.text || "vue-ui-flow"
380
380
  });
381
381
  });
382
382
  }
383
383
  const we = d(() => {
384
- const o = [
384
+ const t = [
385
385
  e.value.table.columnNames.source,
386
386
  e.value.table.columnNames.target,
387
387
  e.value.table.columnNames.value
@@ -402,7 +402,7 @@ const Ho = ["id"], Wo = {
402
402
  s: e.value.style.chart.nodes.labels.suffix,
403
403
  r: e.value.style.chart.nodes.labels.rounding
404
404
  })
405
- ]), t = {
405
+ ]), o = {
406
406
  th: {
407
407
  backgroundColor: e.value.table.th.backgroundColor,
408
408
  color: e.value.table.th.color,
@@ -421,9 +421,9 @@ const Ho = ["id"], Wo = {
421
421
  e.value.table.columnNames.target,
422
422
  e.value.table.columnNames.value
423
423
  ],
424
- head: o,
424
+ head: t,
425
425
  body: l,
426
- config: t
426
+ config: o
427
427
  };
428
428
  });
429
429
  function Kt() {
@@ -440,36 +440,36 @@ const Ho = ["id"], Wo = {
440
440
  S.value.showTooltip = !S.value.showTooltip;
441
441
  }
442
442
  const wt = d(() => {
443
- const o = new Set(
443
+ const t = new Set(
444
444
  _.value.nodes.map(
445
445
  (l) => e.value.nodeCategories[l.name] || "__uncategorized__"
446
446
  )
447
447
  );
448
- return Array.from(o).map((l) => ({
448
+ return Array.from(t).map((l) => ({
449
449
  name: l,
450
450
  color: e.value.nodeCategoryColors[l] || D[0],
451
451
  shape: "square",
452
452
  count: _.value.nodes.filter(
453
- (t) => (e.value.nodeCategories[t.name] || "__uncategorized__") === l
453
+ (o) => (e.value.nodeCategories[o.name] || "__uncategorized__") === l
454
454
  ).length
455
- })).map((l, t) => ({
455
+ })).map((l, o) => ({
456
456
  ...l,
457
- segregate: () => Ue({ legend: l, i: t }),
458
- opacity: j.value.length ? j.value.includes(t) ? 1 : 0.5 : 1,
457
+ segregate: () => Ue({ legend: l, i: o }),
458
+ opacity: j.value.length ? j.value.includes(o) ? 1 : 0.5 : 1,
459
459
  display: `${l.name} (${l.count})`
460
460
  }));
461
461
  }), Ge = d(
462
- () => wt.value.filter((o) => o.name !== "__uncategorized__")
462
+ () => wt.value.filter((t) => t.name !== "__uncategorized__")
463
463
  ), j = u([]);
464
- function Ue({ legend: o, i: l }) {
465
- const t = o.name;
464
+ function Ue({ legend: t, i: l }) {
465
+ const o = t.name;
466
466
  if (w.value?.every(
467
- (a) => e.value.nodeCategories[a] === t
467
+ (a) => e.value.nodeCategories[a] === o
468
468
  )) {
469
469
  w.value = null, K.value = null, j.value = [];
470
470
  return;
471
471
  }
472
- j.value = [l], w.value = _.value.nodes.filter((a) => e.value.nodeCategories[a.name] === t).map((a) => a.name), K.value = null;
472
+ j.value = [l], w.value = _.value.nodes.filter((a) => e.value.nodeCategories[a.name] === o).map((a) => a.name), K.value = null;
473
473
  }
474
474
  const Jt = d(() => ({
475
475
  cy: "flow-legend",
@@ -479,24 +479,24 @@ const Ho = ["id"], Wo = {
479
479
  paddingBottom: e.value.style.chart.legend.paddingBottom,
480
480
  fontWeight: e.value.style.chart.legend.bold ? "bold" : "normal"
481
481
  }));
482
- async function Qt({ scale: o = 2 } = {}) {
482
+ async function Qt({ scale: t = 2 } = {}) {
483
483
  if (!I.value) return;
484
- const { width: l, height: t } = I.value.getBoundingClientRect(), a = l / t, { imageUri: s, base64: $ } = await zo({ domElement: I.value, base64: !0, img: !0, scale: o });
484
+ const { width: l, height: o } = I.value.getBoundingClientRect(), a = l / o, { imageUri: s, base64: $ } = await zo({ domElement: I.value, base64: !0, img: !0, scale: t });
485
485
  return {
486
486
  imageUri: s,
487
487
  base64: $,
488
488
  title: e.value.style.chart.title.text,
489
489
  width: l,
490
- height: t,
490
+ height: o,
491
491
  aspectRatio: a
492
492
  };
493
493
  }
494
494
  const re = d(() => {
495
- const o = e.value.table.useDialog && !e.value.table.show, l = S.value.showTable;
495
+ const t = e.value.table.useDialog && !e.value.table.show, l = S.value.showTable;
496
496
  return {
497
- component: o ? Ut : zt,
497
+ component: t ? Ut : zt,
498
498
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
499
- props: o ? {
499
+ props: t ? {
500
500
  backgroundColor: e.value.table.th.backgroundColor,
501
501
  color: e.value.table.th.color,
502
502
  headerColor: e.value.table.th.color,
@@ -521,15 +521,15 @@ const Ho = ["id"], Wo = {
521
521
  }
522
522
  };
523
523
  });
524
- Se(() => S.value.showTable, (o) => {
525
- e.value.table.show || (o && e.value.table.useDialog && le.value ? le.value.open() : "close" in le.value && le.value.close());
524
+ Se(() => S.value.showTable, (t) => {
525
+ e.value.table.show || (t && e.value.table.useDialog && le.value ? le.value.open() : "close" in le.value && le.value.close());
526
526
  });
527
527
  function $t() {
528
528
  S.value.showTable = !1, Ie.value && Ie.value.setTableIconState(!1);
529
529
  }
530
- const Zt = d(() => Ge.value.map((o) => ({
531
- ...o,
532
- name: o.display
530
+ const Zt = d(() => Ge.value.map((t) => ({
531
+ ...t,
532
+ name: t.display
533
533
  }))), eo = d(() => e.value.style.chart.backgroundColor), to = d(() => e.value.style.chart.legend), oo = d(() => e.value.style.chart.title), { exportSvg: lo, getSvg: ao } = Io({
534
534
  svg: Le,
535
535
  title: oo,
@@ -537,17 +537,17 @@ const Ho = ["id"], Wo = {
537
537
  legendItems: Zt,
538
538
  backgroundColor: eo
539
539
  });
540
- async function At({ isCb: o }) {
541
- if (o) {
542
- const { blob: l, url: t, text: a, dataUrl: s } = await ao();
543
- e.value.userOptions.callbacks.svg({ blob: l, url: t, text: a, dataUrl: s });
540
+ async function At({ isCb: t }) {
541
+ if (t) {
542
+ const { blob: l, url: o, text: a, dataUrl: s } = await ao();
543
+ e.value.userOptions.callbacks.svg({ blob: l, url: o, text: a, dataUrl: s });
544
544
  } else
545
545
  lo();
546
546
  }
547
- async function no(o, l) {
548
- if (yt(o, l), S.value.showTooltip && (await Ft(), I.value && Pe.value)) {
549
- const { left: t, top: a } = I.value.getBoundingClientRect();
550
- Pe.value.placeTooltip({ x: (t ?? 0) + 12, y: (a ?? 0) + 12 });
547
+ async function no(t, l) {
548
+ if (yt(t, l), S.value.showTooltip && (await Ft(), I.value && Pe.value)) {
549
+ const { left: o, top: a } = I.value.getBoundingClientRect();
550
+ Pe.value.placeTooltip({ x: (o ?? 0) + 12, y: (a ?? 0) + 12 });
551
551
  }
552
552
  }
553
553
  return Bt({
@@ -563,7 +563,7 @@ const Ho = ["id"], Wo = {
563
563
  drillCategory: Ue,
564
564
  unselectNode: ke,
565
565
  toggleFullscreen: at
566
- }), (o, l) => (c(), g("div", {
566
+ }), (t, l) => (c(), g("div", {
567
567
  ref_key: "flowChart",
568
568
  ref: I,
569
569
  class: _t(`vue-data-ui-component vue-ui-flow ${Y.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
@@ -642,61 +642,68 @@ const Ho = ["id"], Wo = {
642
642
  visibility: r(rt) ? r(De) ? "visible" : "hidden" : "visible"
643
643
  })
644
644
  }, Ot({ _: 2 }, [
645
- o.$slots.menuIcon ? {
645
+ t.$slots.menuIcon ? {
646
646
  name: "menuIcon",
647
- fn: b(({ isOpen: t, color: a }) => [
648
- k(o.$slots, "menuIcon", Z(ee({ isOpen: t, color: a })), void 0, !0)
647
+ fn: y(({ isOpen: o, color: a }) => [
648
+ C(t.$slots, "menuIcon", Z(ee({ isOpen: o, color: a })), void 0, !0)
649
649
  ]),
650
650
  key: "0"
651
651
  } : void 0,
652
- o.$slots.optionTooltip ? {
652
+ t.$slots.optionTooltip ? {
653
653
  name: "optionTooltip",
654
- fn: b(() => [
655
- k(o.$slots, "optionTooltip", {}, void 0, !0)
654
+ fn: y(() => [
655
+ C(t.$slots, "optionTooltip", {}, void 0, !0)
656
656
  ]),
657
657
  key: "1"
658
658
  } : void 0,
659
- o.$slots.optionPdf ? {
659
+ t.$slots.optionPdf ? {
660
660
  name: "optionPdf",
661
- fn: b(() => [
662
- k(o.$slots, "optionPdf", {}, void 0, !0)
661
+ fn: y(() => [
662
+ C(t.$slots, "optionPdf", {}, void 0, !0)
663
663
  ]),
664
664
  key: "2"
665
665
  } : void 0,
666
- o.$slots.optionCsv ? {
666
+ t.$slots.optionCsv ? {
667
667
  name: "optionCsv",
668
- fn: b(() => [
669
- k(o.$slots, "optionCsv", {}, void 0, !0)
668
+ fn: y(() => [
669
+ C(t.$slots, "optionCsv", {}, void 0, !0)
670
670
  ]),
671
671
  key: "3"
672
672
  } : void 0,
673
- o.$slots.optionImg ? {
673
+ t.$slots.optionImg ? {
674
674
  name: "optionImg",
675
- fn: b(() => [
676
- k(o.$slots, "optionImg", {}, void 0, !0)
675
+ fn: y(() => [
676
+ C(t.$slots, "optionImg", {}, void 0, !0)
677
677
  ]),
678
678
  key: "4"
679
679
  } : void 0,
680
- o.$slots.optionTable ? {
681
- name: "optionTable",
682
- fn: b(() => [
683
- k(o.$slots, "optionTable", {}, void 0, !0)
680
+ t.$slots.optionSvg ? {
681
+ name: "optionSvg",
682
+ fn: y(() => [
683
+ C(t.$slots, "optionSvg", {}, void 0, !0)
684
684
  ]),
685
685
  key: "5"
686
686
  } : void 0,
687
- o.$slots.optionFullscreen ? {
688
- name: "optionFullscreen",
689
- fn: b(({ toggleFullscreen: t, isFullscreen: a }) => [
690
- k(o.$slots, "optionFullscreen", Z(ee({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
687
+ t.$slots.optionTable ? {
688
+ name: "optionTable",
689
+ fn: y(() => [
690
+ C(t.$slots, "optionTable", {}, void 0, !0)
691
691
  ]),
692
692
  key: "6"
693
693
  } : void 0,
694
- o.$slots.optionAnnotator ? {
695
- name: "optionAnnotator",
696
- fn: b(({ toggleAnnotator: t, isAnnotator: a }) => [
697
- k(o.$slots, "optionAnnotator", Z(ee({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
694
+ t.$slots.optionFullscreen ? {
695
+ name: "optionFullscreen",
696
+ fn: y(({ toggleFullscreen: o, isFullscreen: a }) => [
697
+ C(t.$slots, "optionFullscreen", Z(ee({ toggleFullscreen: o, isFullscreen: a })), void 0, !0)
698
698
  ]),
699
699
  key: "7"
700
+ } : void 0,
701
+ t.$slots.optionAnnotator ? {
702
+ name: "optionAnnotator",
703
+ fn: y(({ toggleAnnotator: o, isAnnotator: a }) => [
704
+ C(t.$slots, "optionAnnotator", Z(ee({ toggleAnnotator: o, isAnnotator: a })), void 0, !0)
705
+ ]),
706
+ key: "8"
700
707
  } : void 0
701
708
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "callbacks", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "printScale", "isAnnotation", "hasTooltip", "isTooltip", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : T("", !0),
702
709
  (c(), g("svg", {
@@ -716,7 +723,7 @@ const Ho = ["id"], Wo = {
716
723
  })
717
724
  }, [
718
725
  _e(r(Gt)),
719
- o.$slots["chart-background"] ? (c(), g("foreignObject", {
726
+ t.$slots["chart-background"] ? (c(), g("foreignObject", {
720
727
  key: 0,
721
728
  x: 0,
722
729
  y: 0,
@@ -726,11 +733,11 @@ const Ho = ["id"], Wo = {
726
733
  pointerEvents: "none"
727
734
  }
728
735
  }, [
729
- k(o.$slots, "chart-background", {}, void 0, !0)
736
+ C(t.$slots, "chart-background", {}, void 0, !0)
730
737
  ], 8, Yo)) : T("", !0),
731
738
  G("defs", null, [
732
- (c(!0), g(de, null, he(_.value.links, (t, a) => (c(), g("linearGradient", {
733
- id: t.id,
739
+ (c(!0), g(de, null, he(_.value.links, (o, a) => (c(), g("linearGradient", {
740
+ id: o.id,
734
741
  x1: "0%",
735
742
  y1: "0%",
736
743
  x2: "100%",
@@ -738,53 +745,53 @@ const Ho = ["id"], Wo = {
738
745
  }, [
739
746
  G("stop", {
740
747
  offset: "0%",
741
- "stop-color": t.sourceColor
748
+ "stop-color": o.sourceColor
742
749
  }, null, 8, Vo),
743
750
  G("stop", {
744
751
  offset: "100%",
745
- "stop-color": t.targetColor
752
+ "stop-color": o.targetColor
746
753
  }, null, 8, Xo)
747
754
  ], 8, jo))), 256))
748
755
  ]),
749
- (c(!0), g(de, null, he(_.value.links, (t) => (c(), g("path", {
756
+ (c(!0), g(de, null, he(_.value.links, (o) => (c(), g("path", {
750
757
  class: "vue-ui-flow-link",
751
- d: t.path,
758
+ d: o.path,
752
759
  "stroke-linejoin": "round",
753
760
  "stroke-miterlimit": "1",
754
- fill: `url(#${t.id})`,
761
+ fill: `url(#${o.id})`,
755
762
  stroke: e.value.style.chart.links.stroke,
756
763
  "stroke-width": e.value.style.chart.links.strokeWidth,
757
764
  style: W(`
758
- opacity:${w.value ? w.value.includes(t.source) && w.value.includes(t.target) ? 1 : 0.3 : K.value ? [t.target, t.source].includes(K.value) ? 1 : 0.3 : e.value.style.chart.links.opacity}
765
+ opacity:${w.value ? w.value.includes(o.source) && w.value.includes(o.target) ? 1 : 0.3 : K.value ? [o.target, o.source].includes(K.value) ? 1 : 0.3 : e.value.style.chart.links.opacity}
759
766
  `)
760
767
  }, null, 12, qo))), 256)),
761
- (c(!0), g(de, null, he(_.value.nodes, (t, a) => (c(), g("rect", {
768
+ (c(!0), g(de, null, he(_.value.nodes, (o, a) => (c(), g("rect", {
762
769
  class: "vue-ui-flow-node",
763
- x: t.x,
764
- y: r(x)(t.absoluteY) + e.value.style.chart.padding.top,
765
- height: r(x)(t.height),
770
+ x: o.x,
771
+ y: r(x)(o.absoluteY) + e.value.style.chart.padding.top,
772
+ height: r(x)(o.height),
766
773
  width: ye.value,
767
- fill: t.color,
774
+ fill: o.color,
768
775
  stroke: e.value.style.chart.nodes.stroke,
769
776
  "stroke-width": e.value.style.chart.nodes.strokeWidth,
770
777
  rx: e.value.style.chart.nodes.borderRadius,
771
778
  style: W({
772
- opacity: w.value ? w.value.includes(t.name) ? 1 : 0.3 : 1,
773
- outline: Ce.value !== null && Ce.value === t.id ? "2px solid currentColor" : void 0
779
+ opacity: w.value ? w.value.includes(o.name) ? 1 : 0.3 : 1,
780
+ outline: Ce.value !== null && Ce.value === o.id ? "2px solid currentColor" : void 0
774
781
  }),
775
782
  role: "button",
776
783
  tabindex: "0",
777
- "aria-label": `${t.name}: ${r(Ne)(
784
+ "aria-label": `${o.name}: ${r(Ne)(
778
785
  e.value.style.chart.nodes.labels.formatter,
779
- t.value,
786
+ o.value,
780
787
  r(te)({
781
788
  p: e.value.style.chart.nodes.labels.prefix,
782
- v: t.value,
789
+ v: o.value,
783
790
  s: e.value.style.chart.nodes.labels.suffix,
784
791
  r: e.value.style.chart.nodes.labels.rounding
785
792
  })
786
793
  )}`,
787
- onMouseenter: (s) => yt(t, a),
794
+ onMouseenter: (s) => yt(o, a),
788
795
  onMouseleave: (s) => ke(a),
789
796
  onClick: (s) => Re(a),
790
797
  onKeydown: [
@@ -792,48 +799,48 @@ const Ho = ["id"], Wo = {
792
799
  qe(Ke((s) => Re(a), ["prevent"]), ["space"]),
793
800
  qe(Ke((s) => ke(a), ["prevent"]), ["esc"])
794
801
  ],
795
- onFocus: (s) => no(t, a),
802
+ onFocus: (s) => no(o, a),
796
803
  onBlur: (s) => ke(a)
797
804
  }, null, 44, Ko))), 256)),
798
805
  e.value.style.chart.nodes.labels.show ? (c(), g("g", Jo, [
799
- (c(!0), g(de, null, he(_.value.nodes, (t, a) => (c(), g("text", {
800
- x: t.x + ye.value / 2,
806
+ (c(!0), g(de, null, he(_.value.nodes, (o, a) => (c(), g("text", {
807
+ x: o.x + ye.value / 2,
801
808
  y: r(x)(
802
- t.absoluteY + t.height / 2 - e.value.style.chart.nodes.labels.fontSize / 4
809
+ o.absoluteY + o.height / 2 - e.value.style.chart.nodes.labels.fontSize / 4
803
810
  ) + e.value.style.chart.padding.top,
804
811
  "font-size": e.value.style.chart.nodes.labels.fontSize,
805
- fill: r(It)(t.color),
812
+ fill: r(It)(o.color),
806
813
  "text-anchor": "middle",
807
- style: W(`pointer-events: none; opacity:${w.value ? w.value.includes(t.name) ? 1 : 0 : 1}`)
814
+ style: W(`pointer-events: none; opacity:${w.value ? w.value.includes(o.name) ? 1 : 0 : 1}`)
808
815
  }, fe(e.value.style.chart.nodes.labels.abbreviation.use ? r($o)({
809
- source: t.name,
816
+ source: o.name,
810
817
  length: e.value.style.chart.nodes.labels.abbreviation.length
811
- }) : t.name), 13, Qo))), 256)),
812
- (c(!0), g(de, null, he(_.value.nodes, (t, a) => (c(), g("text", {
813
- x: t.x + ye.value / 2,
818
+ }) : o.name), 13, Qo))), 256)),
819
+ (c(!0), g(de, null, he(_.value.nodes, (o, a) => (c(), g("text", {
820
+ x: o.x + ye.value / 2,
814
821
  y: r(x)(
815
- t.absoluteY + t.height / 2 + e.value.style.chart.nodes.labels.fontSize
822
+ o.absoluteY + o.height / 2 + e.value.style.chart.nodes.labels.fontSize
816
823
  ) + e.value.style.chart.padding.top,
817
824
  "font-size": e.value.style.chart.nodes.labels.fontSize,
818
- fill: r(It)(t.color),
825
+ fill: r(It)(o.color),
819
826
  "text-anchor": "middle",
820
- style: W(`pointer-events: none; opacity:${w.value ? w.value.includes(t.name) ? 1 : 0 : 1}`)
827
+ style: W(`pointer-events: none; opacity:${w.value ? w.value.includes(o.name) ? 1 : 0 : 1}`)
821
828
  }, fe(r(Ne)(
822
829
  e.value.style.chart.nodes.labels.formatter,
823
- t.value,
830
+ o.value,
824
831
  r(te)({
825
832
  p: e.value.style.chart.nodes.labels.prefix,
826
- v: t.value,
833
+ v: o.value,
827
834
  s: e.value.style.chart.nodes.labels.suffix,
828
835
  r: e.value.style.chart.nodes.labels.rounding
829
836
  }),
830
- { datapoint: t, seriesIndex: a }
837
+ { datapoint: o, seriesIndex: a }
831
838
  )), 13, Zo))), 256))
832
839
  ])) : T("", !0),
833
- k(o.$slots, "svg", { svg: ne.value }, void 0, !0)
840
+ C(t.$slots, "svg", { svg: ne.value }, void 0, !0)
834
841
  ], 14, Uo)),
835
- o.$slots.watermark ? (c(), g("div", el, [
836
- k(o.$slots, "watermark", Z(ee({ isPrinting: r(ct) || r(vt) })), void 0, !0)
842
+ t.$slots.watermark ? (c(), g("div", el, [
843
+ C(t.$slots, "watermark", Z(ee({ isPrinting: r(ct) || r(vt) })), void 0, !0)
837
844
  ])) : T("", !0),
838
845
  G("div", {
839
846
  id: `legend-bottom-${U.value}`
@@ -850,27 +857,27 @@ const Ho = ["id"], Wo = {
850
857
  key: 0,
851
858
  legendSet: Ge.value,
852
859
  config: Jt.value,
853
- onClickMarker: l[0] || (l[0] = (t) => Ue(t))
860
+ onClickMarker: l[0] || (l[0] = (o) => Ue(o))
854
861
  }, {
855
- item: b(({ legend: t, index: a }) => [
862
+ item: y(({ legend: o, index: a }) => [
856
863
  r(Me) ? T("", !0) : (c(), g("div", {
857
864
  key: 0,
858
- onClick: (s) => t.segregate(),
865
+ onClick: (s) => o.segregate(),
859
866
  style: W(`opacity:${j.value.length ? j.value.includes(a) ? 1 : 0.5 : 1}`)
860
- }, fe(t.display), 13, ol))
867
+ }, fe(o.display), 13, ol))
861
868
  ]),
862
869
  _: 1
863
870
  }, 8, ["legendSet", "config"])) : T("", !0),
864
- k(o.$slots, "legend", { legend: wt.value }, void 0, !0)
871
+ C(t.$slots, "legend", { legend: wt.value }, void 0, !0)
865
872
  ], 512)
866
873
  ], 8, ["to"])) : T("", !0),
867
- o.$slots.source ? (c(), g("div", {
874
+ t.$slots.source ? (c(), g("div", {
868
875
  key: 6,
869
876
  ref_key: "source",
870
877
  ref: tt,
871
878
  dir: "auto"
872
879
  }, [
873
- k(o.$slots, "source", {}, void 0, !0)
880
+ C(t.$slots, "source", {}, void 0, !0)
874
881
  ], 512)) : T("", !0),
875
882
  _e(r(Dt), {
876
883
  ref_key: "tooltip",
@@ -894,11 +901,11 @@ const Ho = ["id"], Wo = {
894
901
  smoothForce: e.value.style.chart.tooltip.smoothForce,
895
902
  smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
896
903
  }, {
897
- "tooltip-before": b(() => [
898
- k(o.$slots, "tooltip-before", Z(ee({ ...se.value })), void 0, !0)
904
+ "tooltip-before": y(() => [
905
+ C(t.$slots, "tooltip-before", Z(ee({ ...se.value })), void 0, !0)
899
906
  ]),
900
- "tooltip-after": b(() => [
901
- k(o.$slots, "tooltip-after", Z(ee({ ...se.value })), void 0, !0)
907
+ "tooltip-after": y(() => [
908
+ C(t.$slots, "tooltip-after", Z(ee({ ...se.value })), void 0, !0)
902
909
  ]),
903
910
  _: 3
904
911
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
@@ -907,7 +914,7 @@ const Ho = ["id"], Wo = {
907
914
  ref: le,
908
915
  onClose: $t
909
916
  }), Ot({
910
- content: b(() => [
917
+ content: y(() => [
911
918
  _e(r(Rt), {
912
919
  colNames: we.value.colNames,
913
920
  head: we.value.head,
@@ -917,14 +924,14 @@ const Ho = ["id"], Wo = {
917
924
  withCloseButton: !e.value.table.useDialog,
918
925
  onClose: $t
919
926
  }, {
920
- th: b(({ th: t }) => [
927
+ th: y(({ th: o }) => [
921
928
  G("div", {
922
- innerHTML: t,
929
+ innerHTML: o,
923
930
  style: { display: "flex", "align-items": "center" }
924
931
  }, null, 8, ll)
925
932
  ]),
926
- td: b(({ td: t }) => [
927
- Nt(fe(t.name || t), 1)
933
+ td: y(({ td: o }) => [
934
+ Nt(fe(o.name || o), 1)
928
935
  ]),
929
936
  _: 1
930
937
  }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"])
@@ -933,18 +940,18 @@ const Ho = ["id"], Wo = {
933
940
  }, [
934
941
  e.value.table.useDialog ? {
935
942
  name: "title",
936
- fn: b(() => [
943
+ fn: y(() => [
937
944
  Nt(fe(re.value.title), 1)
938
945
  ]),
939
946
  key: "0"
940
947
  } : void 0,
941
948
  e.value.table.useDialog ? {
942
949
  name: "actions",
943
- fn: b(() => [
950
+ fn: y(() => [
944
951
  G("button", {
945
952
  tabindex: "0",
946
953
  class: "vue-ui-user-options-button",
947
- onClick: l[1] || (l[1] = (t) => He(e.value.userOptions.callbacks.csv))
954
+ onClick: l[1] || (l[1] = (o) => He(e.value.userOptions.callbacks.csv))
948
955
  }, [
949
956
  _e(r(Lt), {
950
957
  name: "excel",
@@ -958,7 +965,7 @@ const Ho = ["id"], Wo = {
958
965
  r(Me) ? (c(), q(Eo, { key: 8 })) : T("", !0)
959
966
  ], 46, Ho));
960
967
  }
961
- }, bl = /* @__PURE__ */ Ro(al, [["__scopeId", "data-v-26b39a0e"]]);
968
+ }, bl = /* @__PURE__ */ Ro(al, [["__scopeId", "data-v-a203b5d8"]]);
962
969
  export {
963
970
  bl as default
964
971
  };