vue-data-ui 2.16.6 → 2.17.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 (94) hide show
  1. package/README.md +84 -53
  2. package/dist/{Arrow-DCqxVwey.js → Arrow-BDCVJzQB.js} +1 -1
  3. package/dist/{BaseDraggableDialog-6DIKXIBU.js → BaseDraggableDialog-BvuWrldK.js} +2 -2
  4. package/dist/{BaseIcon-Bn996RXm.js → BaseIcon-D9Tz8ARD.js} +1 -1
  5. package/dist/{ColorPicker-OFfLkKNb.js → ColorPicker-wGf46G2G.js} +2 -2
  6. package/dist/{DataTable-CHBLjKtZ.js → DataTable-Dt-TIOyY.js} +2 -2
  7. package/dist/{Legend-nBXoxXJH.js → Legend-3LNqqLDg.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-Cls2idJS.js → NonSvgPenAndPaper-iDdMuUEo.js} +3 -3
  9. package/dist/{PackageVersion-Bg_9KCU-.js → PackageVersion-C-4Ee8BQ.js} +1 -1
  10. package/dist/{PenAndPaper-BPTpbnay.js → PenAndPaper-Cde-wJ3N.js} +32 -32
  11. package/dist/{Shape-Bnf512BA.js → Shape-C75836Jl.js} +1 -1
  12. package/dist/{Slicer-BrqtJG2E.js → Slicer-CpSu7plp.js} +2 -2
  13. package/dist/{SparkTooltip-C-rLATAw.js → SparkTooltip-B_GXa2tb.js} +1 -1
  14. package/dist/{Title-Gi81VwUM.js → Title-DpERl1yr.js} +1 -1
  15. package/dist/{Tooltip-CJxVw7-T.js → Tooltip-DA0bYKFG.js} +1 -1
  16. package/dist/{UserOptions-CBEK6_jo.js → UserOptions-DTEJ3UM_.js} +2 -2
  17. package/dist/{dom-to-png-CRHNL8VU.js → dom-to-png-DWDGYXFL.js} +1 -1
  18. package/dist/{img-BgOg8opa.js → img-utitT2Gd.js} +1 -1
  19. package/dist/{index-DvIXJm6t.js → index-CobsZUkv.js} +22 -8
  20. package/dist/{pdf-DhTxBrbJ.js → pdf-DWZ8IB56.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +999 -160
  23. package/dist/types/vue-data-ui.d.ts +999 -160
  24. package/dist/{useNestedProp-DrYHm61t.js → useNestedProp-BwL5wmVa.js} +1 -1
  25. package/dist/{usePrinter-CWnXbGMb.js → usePrinter-DPh6U_Qk.js} +2 -2
  26. package/dist/vue-data-ui-D7ZgRDQ_.js +312 -0
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-CtlB4p7i.js → vue-ui-3d-bar-ORUAjkg7.js} +246 -231
  29. package/dist/{vue-ui-accordion-D55kCO5G.js → vue-ui-accordion-UewqY6OI.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-DSshyUn-.js → vue-ui-age-pyramid-Yl4aRpNc.js} +225 -210
  31. package/dist/{vue-ui-annotator-DQSMv_k2.js → vue-ui-annotator-B1gqiBqq.js} +2 -2
  32. package/dist/{vue-ui-bullet-FeScjj7q.js → vue-ui-bullet-C307lCPt.js} +168 -153
  33. package/dist/{vue-ui-candlestick-Drupgyoi.js → vue-ui-candlestick-BE6PcEdh.js} +218 -203
  34. package/dist/{vue-ui-carousel-table-BTZQRZfO.js → vue-ui-carousel-table-Cpvjr677.js} +4 -4
  35. package/dist/{vue-ui-chestnut-DLWjPwRL.js → vue-ui-chestnut-CUw74AgC.js} +412 -397
  36. package/dist/{vue-ui-chord-BgLbFBT9.js → vue-ui-chord-CCPGeAiY.js} +202 -187
  37. package/dist/{vue-ui-circle-pack-VXcRh2gy.js → vue-ui-circle-pack-dfyPiQmy.js} +222 -207
  38. package/dist/{vue-ui-cursor-DWmfnM25.js → vue-ui-cursor-C2zmfeoD.js} +2 -2
  39. package/dist/{vue-ui-dashboard-CGIocEHj.js → vue-ui-dashboard-CotAqRbX.js} +62 -62
  40. package/dist/{vue-ui-digits-BgQch3Fc.js → vue-ui-digits-7qJFCuoI.js} +2 -2
  41. package/dist/{vue-ui-donut-B59bCV5_.js → vue-ui-donut-D41WeqQU.js} +420 -411
  42. package/dist/{vue-ui-donut-evolution-CI8qBIQd.js → vue-ui-donut-evolution-Deg0dsYg.js} +352 -340
  43. package/dist/{vue-ui-dumbbell-CXv7sk88.js → vue-ui-dumbbell-DDwNoTPG.js} +214 -199
  44. package/dist/{vue-ui-flow-DxF0ELtv.js → vue-ui-flow-6oR7IMyi.js} +215 -200
  45. package/dist/{vue-ui-funnel-Bco8rqF8.js → vue-ui-funnel-BnXtOJmh.js} +212 -197
  46. package/dist/{vue-ui-galaxy-CaPJwwOj.js → vue-ui-galaxy-75XC8SpV.js} +213 -201
  47. package/dist/{vue-ui-gauge-D7arhDmb.js → vue-ui-gauge-w31j915C.js} +218 -203
  48. package/dist/{vue-ui-gizmo-Dwli-Mip.js → vue-ui-gizmo-bZqk6oZS.js} +3 -3
  49. package/dist/{vue-ui-heatmap-Cyn-ahGO.js → vue-ui-heatmap-BfU62tMW.js} +242 -223
  50. package/dist/{vue-ui-history-plot-C2AEToqx.js → vue-ui-history-plot-CFfco-Yj.js} +267 -252
  51. package/dist/{vue-ui-kpi-DKDibSdl.js → vue-ui-kpi-DaJ1U3wf.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-B8OVutUx.js → vue-ui-mini-loader-CF_2jAI8.js} +2 -2
  53. package/dist/{vue-ui-molecule-BVSrqIGw.js → vue-ui-molecule-Tdk3Gd8M.js} +207 -192
  54. package/dist/{vue-ui-mood-radar-DvlyS3RN.js → vue-ui-mood-radar-Dg5wS7W5.js} +204 -189
  55. package/dist/{vue-ui-nested-donuts-D9ssSus6.js → vue-ui-nested-donuts-CpRe0sQB.js} +248 -240
  56. package/dist/{vue-ui-onion-Buu4VX3u.js → vue-ui-onion-B8o4ft2v.js} +184 -169
  57. package/dist/{vue-ui-parallel-coordinate-plot-DFLUvhxD.js → vue-ui-parallel-coordinate-plot-zW-CNqWC.js} +192 -177
  58. package/dist/{vue-ui-quadrant-BMC7NBGd.js → vue-ui-quadrant-DiRtZ16w.js} +259 -244
  59. package/dist/{vue-ui-quick-chart-DB9RKUkb.js → vue-ui-quick-chart-BRlYC_yT.js} +324 -309
  60. package/dist/{vue-ui-radar-68NMPxxQ.js → vue-ui-radar-DKgX1Ibx.js} +195 -180
  61. package/dist/{vue-ui-rating-swH9kRr3.js → vue-ui-rating-DlklKr-X.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CT-EdSjO.js → vue-ui-relation-circle-MHiAp8dC.js} +186 -171
  63. package/dist/{vue-ui-ridgeline-DftROPaX.js → vue-ui-ridgeline-DA8verAe.js} +227 -212
  64. package/dist/{vue-ui-rings-M-9dPI5D.js → vue-ui-rings-Dh6lFqun.js} +214 -202
  65. package/dist/{vue-ui-scatter-CsGhaFJh.js → vue-ui-scatter-CLC5sTOi.js} +270 -256
  66. package/dist/{vue-ui-skeleton-BAOt2neL.js → vue-ui-skeleton-8s4xts8z.js} +3 -3
  67. package/dist/{vue-ui-smiley-7_kIgPg-.js → vue-ui-smiley-utuzw8uI.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DHlQQpwz.js → vue-ui-spark-trend-BODEqGRr.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-BnHhzuKf.js → vue-ui-sparkbar-B8MB-kn9.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-WtfkCK8g.js → vue-ui-sparkgauge-CuD7kTS3.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-B2u4XLVd.js → vue-ui-sparkhistogram-BYJszvna.js} +4 -4
  72. package/dist/{vue-ui-sparkline-DKIyUlSm.js → vue-ui-sparkline-D77GyWzG.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-BLGz2qIb.js → vue-ui-sparkstackbar-DNb1yD64.js} +3 -3
  74. package/dist/{vue-ui-stackbar-BDpMsTYe.js → vue-ui-stackbar-C6rjCYDD.js} +251 -236
  75. package/dist/{vue-ui-strip-plot-5qDcYPnR.js → vue-ui-strip-plot-B6cYojHQ.js} +239 -224
  76. package/dist/{vue-ui-table-Bg5HIQ3O.js → vue-ui-table-IC7SmWVd.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-DmjNy1q1.js → vue-ui-table-heatmap-DHFpJMpA.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-CnkJkBk5.js → vue-ui-table-sparkline-D7wz-sCj.js} +4 -4
  79. package/dist/{vue-ui-thermometer-RlD-9mJf.js → vue-ui-thermometer-D-oiVT3n.js} +168 -153
  80. package/dist/{vue-ui-timer-Bes74INL.js → vue-ui-timer-C9jVyX5l.js} +5 -5
  81. package/dist/vue-ui-tiremarks-B1bM9Aoo.js +358 -0
  82. package/dist/{vue-ui-treemap-BG1Omm38.js → vue-ui-treemap-DX48YlU5.js} +374 -362
  83. package/dist/{vue-ui-vertical-bar-CwqQyZFX.js → vue-ui-vertical-bar-6SjKPQWR.js} +252 -237
  84. package/dist/{vue-ui-waffle-Ce3T4BPp.js → vue-ui-waffle-CYao9MMw.js} +232 -220
  85. package/dist/vue-ui-wheel-USuDhMwW.js +352 -0
  86. package/dist/vue-ui-word-cloud-TOBTs7yF.js +659 -0
  87. package/dist/{vue-ui-world-B9PxVO4n.js → vue-ui-world-C2qikqBa.js} +237 -222
  88. package/dist/{vue-ui-xy-DtJ7qJib.js → vue-ui-xy-DxwgKoO-.js} +557 -544
  89. package/dist/{vue-ui-xy-canvas-S6YpFgzs.js → vue-ui-xy-canvas-N69OpVn8.js} +395 -380
  90. package/package.json +1 -1
  91. package/dist/vue-data-ui-B8EWlMIK.js +0 -301
  92. package/dist/vue-ui-tiremarks-DiLS3akQ.js +0 -343
  93. package/dist/vue-ui-wheel-6B0WTkf2.js +0 -337
  94. package/dist/vue-ui-word-cloud-ByYZCOh7.js +0 -644
@@ -1,28 +1,29 @@
1
- import { defineAsyncComponent as E, computed as p, onMounted as ut, ref as y, watch as it, createElementBlock as g, openBlock as d, unref as r, normalizeStyle as L, normalizeClass as Me, createBlock as B, createCommentVNode as _, createElementVNode as D, createVNode as de, createSlots as ct, withCtx as w, renderSlot as b, normalizeProps as R, guardReactiveProps as V, Fragment as U, renderList as W, toDisplayString as j, createTextVNode as dt, nextTick as vt } from "vue";
2
- import { u as ft, o as ht, e as pt, c as ve, t as gt, p as S, a as mt, b as yt, v as $, d as bt, f as X, X as kt, F as He, L as Ct, i as fe, q as wt, r as $t, x as Tt } from "./index-DvIXJm6t.js";
3
- import { u as Ye } from "./useNestedProp-DrYHm61t.js";
4
- import { u as xt } from "./usePrinter-CWnXbGMb.js";
5
- import { u as _t } from "./useUserOptionState-BIvW1Kz7.js";
6
- import { u as Nt } from "./useChartAccessibility-9icAAmYg.js";
7
- import Ot from "./Legend-nBXoxXJH.js";
8
- import St from "./Title-Gi81VwUM.js";
9
- import { _ as Ft } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
- const Pt = ["id"], Lt = {
1
+ import { defineAsyncComponent as E, computed as p, onMounted as it, ref as y, watch as ct, createElementBlock as g, openBlock as d, unref as r, normalizeStyle as L, normalizeClass as He, createBlock as R, createCommentVNode as _, createElementVNode as D, createVNode as de, createSlots as dt, withCtx as w, renderSlot as b, normalizeProps as U, guardReactiveProps as V, Fragment as W, renderList as j, toDisplayString as X, createTextVNode as vt, nextTick as ft } from "vue";
2
+ import { u as ht, o as pt, e as gt, c as ve, t as mt, p as S, a as yt, b as bt, v as $, d as kt, f as q, X as Ct, F as Ye, L as wt, i as fe, q as $t, r as xt, x as Tt } from "./index-CobsZUkv.js";
3
+ import { u as Be } from "./useNestedProp-BwL5wmVa.js";
4
+ import { u as _t } from "./usePrinter-DPh6U_Qk.js";
5
+ import { u as Nt } from "./useUserOptionState-BIvW1Kz7.js";
6
+ import { u as Ot } from "./useChartAccessibility-9icAAmYg.js";
7
+ import St from "./Legend-3LNqqLDg.js";
8
+ import Ft from "./Title-DpERl1yr.js";
9
+ import Pt from "./img-utitT2Gd.js";
10
+ import { _ as Lt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
+ const It = ["id"], At = {
11
12
  key: 1,
12
13
  ref: "noTitle",
13
14
  class: "vue-data-ui-no-title-space",
14
15
  style: "height:36px; width: 100%;background:transparent"
15
- }, At = {
16
+ }, Et = {
16
17
  key: 2,
17
18
  style: "width:100%;background:transparent;padding-bottom:24px"
18
- }, It = ["xmlns", "viewBox"], Et = ["width", "height"], zt = ["id"], Mt = ["stop-color"], Ht = ["stop-color"], Yt = ["d", "fill", "stroke", "stroke-width"], Bt = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "onMouseenter"], Dt = ["x", "y", "font-size", "fill"], Rt = ["x", "y", "font-size", "fill"], Vt = {
19
+ }, zt = ["xmlns", "viewBox"], Mt = ["width", "height"], Ht = ["id"], Yt = ["stop-color"], Bt = ["stop-color"], Rt = ["d", "fill", "stroke", "stroke-width"], Dt = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "onMouseenter"], Ut = ["x", "y", "font-size", "fill"], Vt = ["x", "y", "font-size", "fill"], Gt = {
19
20
  key: 4,
20
21
  class: "vue-data-ui-watermark"
21
- }, Gt = ["onClick"], Ut = {
22
+ }, Wt = ["onClick"], jt = {
22
23
  key: 6,
23
24
  ref: "source",
24
25
  dir: "auto"
25
- }, Wt = ["innerHTML"], jt = {
26
+ }, Xt = ["innerHTML"], qt = {
26
27
  __name: "vue-ui-flow",
27
28
  props: {
28
29
  config: {
@@ -38,67 +39,67 @@ const Pt = ["id"], Lt = {
38
39
  }
39
40
  }
40
41
  },
41
- setup(Be, { expose: De }) {
42
- const Re = E(() => import("./vue-ui-accordion-D55kCO5G.js")), Ve = E(() => import("./DataTable-CHBLjKtZ.js")), Ge = E(() => import("./PackageVersion-Bg_9KCU-.js")), Ue = E(() => import("./PenAndPaper-BPTpbnay.js")), We = E(() => import("./vue-ui-skeleton-BAOt2neL.js")), je = E(() => import("./Tooltip-CJxVw7-T.js")), Xe = E(() => import("./UserOptions-CBEK6_jo.js")), { vue_ui_flow: qe } = ft(), T = Be, ee = p(() => !!T.dataset && T.dataset.length);
43
- ut(() => {
42
+ setup(Re, { expose: De }) {
43
+ const Ue = E(() => import("./vue-ui-accordion-UewqY6OI.js")), Ve = E(() => import("./DataTable-Dt-TIOyY.js")), Ge = E(() => import("./PackageVersion-C-4Ee8BQ.js")), We = E(() => import("./PenAndPaper-Cde-wJ3N.js")), je = E(() => import("./vue-ui-skeleton-8s4xts8z.js")), Xe = E(() => import("./Tooltip-DA0bYKFG.js")), qe = E(() => import("./UserOptions-DTEJ3UM_.js")), { vue_ui_flow: Ze } = ht(), x = Re, te = p(() => !!x.dataset && x.dataset.length);
44
+ it(() => {
44
45
  he();
45
46
  });
46
47
  function he() {
47
- ht(T.dataset) && pt({
48
+ pt(x.dataset) && gt({
48
49
  componentName: "VueUiFlow",
49
50
  type: "dataset"
50
51
  });
51
52
  }
52
- const te = y(ve()), oe = y(null), pe = y(0), ge = y(0), le = y(!1), ae = y(""), Ze = y(null), z = y(!1);
53
- function Je(t) {
54
- z.value = t, pe.value += 1;
53
+ const oe = y(ve()), z = y(null), pe = y(0), ge = y(0), le = y(!1), ae = y(""), Je = y(null), M = y(!1);
54
+ function me(t) {
55
+ M.value = t, pe.value += 1;
55
56
  }
56
57
  const e = p({
57
- get: () => ke(),
58
+ get: () => Ce(),
58
59
  set: (t) => t
59
- }), { userOptionsVisible: ne, setUserOptionsVisibility: me, keepUserOptionState: ye } = _t({ config: e.value }), { svgRef: be } = Nt({
60
+ }), { userOptionsVisible: ne, setUserOptionsVisibility: ye, keepUserOptionState: be } = Nt({ config: e.value }), { svgRef: ke } = Ot({
60
61
  config: e.value.style.chart.title
61
62
  });
62
- function ke() {
63
- const t = Ye({
64
- userConfig: T.config,
65
- defaultConfig: qe
63
+ function Ce() {
64
+ const t = Be({
65
+ userConfig: x.config,
66
+ defaultConfig: Ze
66
67
  });
67
68
  let l = t;
68
69
  return t.theme ? l = {
69
- ...Ye({
70
- userConfig: mt.vue_ui_flow[t.theme] || T.config,
70
+ ...Be({
71
+ userConfig: yt.vue_ui_flow[t.theme] || x.config,
71
72
  defaultConfig: t
72
73
  }),
73
- customPalette: gt[t.theme] || S
74
- } : l = t, l.nodeCategories = T.config.nodeCategories || {}, l.nodeCategoryColors = T.config.nodeCategoryColors || {}, l;
74
+ customPalette: mt[t.theme] || S
75
+ } : l = t, l.nodeCategories = x.config.nodeCategories || {}, l.nodeCategoryColors = x.config.nodeCategoryColors || {}, l;
75
76
  }
76
- it(
77
- () => T.config,
77
+ ct(
78
+ () => x.config,
78
79
  (t) => {
79
- e.value = ke(), ne.value = !e.value.userOptions.showOnChartHover, he(), ge.value += 1, N.value.showTable = e.value.table.show;
80
+ e.value = Ce(), ne.value = !e.value.userOptions.showOnChartHover, he(), ge.value += 1, N.value.showTable = e.value.table.show;
80
81
  },
81
82
  { deep: !0 }
82
83
  );
83
- const { isPrinting: Ce, isImaging: we, generatePdf: $e, generateImage: Te } = xt({
84
- elementId: `flow_${te.value}`,
84
+ const { isPrinting: we, isImaging: $e, generatePdf: xe, generateImage: Te } = _t({
85
+ elementId: `flow_${oe.value}`,
85
86
  fileName: e.value.style.chart.title.text || "vue-ui-flow",
86
87
  options: e.value.userOptions.print
87
- }), Ke = p(() => e.value.userOptions.show && !e.value.style.chart.title.text), q = p(() => yt(e.value.customPalette)), xe = p(() => e.value.style.chart.nodes.gap), M = p(() => e.value.style.chart.nodes.width), N = y({
88
+ }), Ke = p(() => e.value.userOptions.show && !e.value.style.chart.title.text), Z = p(() => bt(e.value.customPalette)), _e = p(() => e.value.style.chart.nodes.gap), H = p(() => e.value.style.chart.nodes.width), N = y({
88
89
  showTable: e.value.table.show,
89
90
  showTooltip: e.value.style.chart.tooltip.show
90
- }), Qe = p(() => e.value.style.chart.links.width), se = p(() => !T.dataset || !T.dataset.length ? [] : T.dataset.map((t, l) => [
91
+ }), Qe = p(() => e.value.style.chart.links.width), se = p(() => !x.dataset || !x.dataset.length ? [] : x.dataset.map((t, l) => [
91
92
  t[0],
92
93
  t[1],
93
94
  $(t[2]),
94
- t[3] ? bt(t[3]) : q.value[l] || q.value[l % q.value.length] || S[l] || S[l % S.length]
95
- ])), _e = p(() => {
95
+ t[3] ? kt(t[3]) : Z.value[l] || Z.value[l % Z.value.length] || S[l] || S[l % S.length]
96
+ ])), Ne = p(() => {
96
97
  const t = {};
97
98
  function l(a) {
98
99
  t[a] || (t[a] = { inflow: 0, outflow: 0 });
99
100
  }
100
- se.value.forEach(([a, s, h]) => {
101
- l(a), l(s), t[a].outflow += h, t[s].inflow += h;
101
+ se.value.forEach(([a, s, f]) => {
102
+ l(a), l(s), t[a].outflow += f, t[s].inflow += f;
102
103
  });
103
104
  let o = 0;
104
105
  for (const a in t) {
@@ -108,11 +109,11 @@ const Pt = ["id"], Lt = {
108
109
  return o;
109
110
  });
110
111
  function et(t) {
111
- return t / _e.value * 100 + e.value.style.chart.nodes.minHeight;
112
+ return t / Ne.value * 100 + e.value.style.chart.nodes.minHeight;
112
113
  }
113
114
  function tt(t) {
114
115
  const l = e.value.style.chart.nodes.minHeight;
115
- return (t - l) / 100 * _e.value;
116
+ return (t - l) / 100 * Ne.value;
116
117
  }
117
118
  function ot(t) {
118
119
  const l = {}, o = {};
@@ -129,18 +130,18 @@ const Pt = ["id"], Lt = {
129
130
  const v = l[n]?.level ?? 0, C = v + 1;
130
131
  a(n, v), a(u, C), l[n].children || (l[n].children = []), l[n].children.push({ target: u, value: c }), l[n].outflow += c, l[u].inflow += c;
131
132
  });
132
- const s = new Set(t.map(([n]) => n)), h = new Set(t.map(([, n]) => n)), F = Array.from(s).filter((n) => !h.has(n)), Y = {};
133
+ const s = new Set(t.map(([n]) => n)), f = new Set(t.map(([, n]) => n)), F = Array.from(s).filter((n) => !f.has(n)), B = {};
133
134
  F.forEach((n, u) => {
134
- Y[n] = q.value[u] || S[u % S.length];
135
+ B[n] = Z.value[u] || S[u % S.length];
135
136
  });
136
- const x = {};
137
+ const T = {};
137
138
  t.forEach(([n, u, c, v]) => {
138
- v && (x[n] = v, x[u] = v);
139
+ v && (T[n] = v, T[u] = v);
139
140
  }), Object.keys(l).forEach((n, u) => {
140
141
  const c = e.value.nodeCategories?.[n], v = c ? e.value.nodeCategoryColors?.[c] : null;
141
- l[n].color = x[n] || // 1) explicit
142
+ l[n].color = T[n] || // 1) explicit
142
143
  v || // 2) category
143
- (F.includes(n) ? Y[n] : null) || // 3) root
144
+ (F.includes(n) ? B[n] : null) || // 3) root
144
145
  S[u % S.length];
145
146
  });
146
147
  for (const n in l)
@@ -160,36 +161,36 @@ const Pt = ["id"], Lt = {
160
161
  i: v,
161
162
  color: C.color,
162
163
  value: tt(C.height)
163
- }, u += C.height + xe.value;
164
+ }, u += C.height + _e.value;
164
165
  });
165
166
  }
166
- const I = [];
167
+ const A = [];
167
168
  for (const n of Object.keys(l)) {
168
169
  let u = O[n].absoluteY + e.value.style.chart.padding.top;
169
170
  const c = l[n], v = O[n];
170
171
  c.children && c.children.forEach(({ target: C, value: i }) => {
171
- const f = O[C], P = l[C], Q = $(u), Ee = $(
172
+ const h = O[C], P = l[C], ee = $(u), ze = $(
172
173
  u + i / c.outflow * v.height
173
174
  ), ce = $(
174
- f.y + e.value.style.chart.padding.top
175
- ), ze = $(
176
- ce + i / P.inflow * f.height
175
+ h.y + e.value.style.chart.padding.top
176
+ ), Me = $(
177
+ ce + i / P.inflow * h.height
177
178
  );
178
- I.push({
179
+ A.push({
179
180
  id: ve(),
180
181
  source: n,
181
182
  target: C,
182
- path: `M ${$(v.x + M.value)} ${Q} L ${$(v.x + M.value)} ${Ee} L ${$(f.x)} ${ze} L ${$(f.x)} ${ce} Z`,
183
+ path: `M ${$(v.x + H.value)} ${ee} L ${$(v.x + H.value)} ${ze} L ${$(h.x)} ${Me} L ${$(h.x)} ${ce} Z`,
183
184
  value: i,
184
185
  sourceColor: c.color,
185
186
  targetColor: P.color
186
- }), u += Ee - Q, O[C].y += ze - ce;
187
+ }), u += ze - ee, O[C].y += Me - ce;
187
188
  });
188
189
  }
189
- return { nodeCoordinates: O, links: I };
190
+ return { nodeCoordinates: O, links: A };
190
191
  }
191
192
  const m = p(() => {
192
- const t = ot(T.dataset);
193
+ const t = ot(x.dataset);
193
194
  return {
194
195
  nodes: Object.keys(t.nodeCoordinates).map((l, o) => ({
195
196
  ...t.nodeCoordinates[l],
@@ -202,82 +203,82 @@ const Pt = ["id"], Lt = {
202
203
  function lt(t) {
203
204
  const l = {};
204
205
  for (const a in t) {
205
- const { x: s, height: h } = t[a];
206
- l[s] || (l[s] = 0), l[s] += h + xe.value;
206
+ const { x: s, height: f } = t[a];
207
+ l[s] || (l[s] = 0), l[s] += f + _e.value;
207
208
  }
208
209
  return Math.max(...Object.values(l));
209
210
  }
210
211
  const G = p(() => {
211
- const { top: t, right: l, bottom: o, left: a } = e.value.style.chart.padding, s = Math.max(...m.value.nodes.map((x) => x.x)), h = a + s + M.value + l, F = Math.max(
212
- ...m.value.nodes.map((x) => x.absoluteY + x.height)
213
- ), Y = t + F + o;
214
- return { width: h, height: Y };
212
+ const { top: t, right: l, bottom: o, left: a } = e.value.style.chart.padding, s = Math.max(...m.value.nodes.map((T) => T.x)), f = a + s + H.value + l, F = Math.max(
213
+ ...m.value.nodes.map((T) => T.absoluteY + T.height)
214
+ ), B = t + F + o;
215
+ return { width: f, height: B };
215
216
  });
216
217
  function at(t) {
217
218
  const l = {}, o = {}, a = /* @__PURE__ */ new Set();
218
- return se.value.forEach(([s, h, F]) => {
219
- l[s] || (l[s] = []), o[h] || (o[h] = []), l[s].push(h), o[h].push(s);
219
+ return se.value.forEach(([s, f, F]) => {
220
+ l[s] || (l[s] = []), o[f] || (o[f] = []), l[s].push(f), o[f].push(s);
220
221
  }), l[t] && l[t].forEach((s) => a.add(s)), o[t] && o[t].forEach((s) => a.add(s)), Array.from(a).concat(t);
221
222
  }
222
- const k = y(null), H = y(null), re = y(null), Z = y(!1);
223
+ const k = y(null), Y = y(null), re = y(null), J = y(!1);
223
224
  function nt(t) {
224
- A.value = [], k.value = at(t.name), H.value = t.name;
225
+ I.value = [], k.value = at(t.name), Y.value = t.name;
225
226
  const l = t.name, o = se.value;
226
- let a = 0, s = 0, h = [], F = [];
227
- const Y = new Set(o.map(([i]) => i)), x = new Set(o.map(([, i]) => i)), Ie = Array.from(Y).filter((i) => !x.has(i)), O = o.filter(([i]) => Ie.includes(i)).reduce((i, [f, P, Q]) => i + Q, 0), I = {};
227
+ let a = 0, s = 0, f = [], F = [];
228
+ const B = new Set(o.map(([i]) => i)), T = new Set(o.map(([, i]) => i)), Ee = Array.from(B).filter((i) => !T.has(i)), O = o.filter(([i]) => Ee.includes(i)).reduce((i, [h, P, ee]) => i + ee, 0), A = {};
228
229
  m.value.nodes.forEach((i) => {
229
- I[i.name] = i.color;
230
- }), o.forEach(([i, f, P]) => {
231
- f === l && (a += P, h.push({ source: i, value: P, color: I[i] })), i === l && (s += P, F.push({ target: f, value: P, color: I[f] }));
230
+ A[i.name] = i.color;
231
+ }), o.forEach(([i, h, P]) => {
232
+ h === l && (a += P, f.push({ source: i, value: P, color: A[i] })), i === l && (s += P, F.push({ target: h, value: P, color: A[h] }));
232
233
  });
233
234
  const n = Math.max(a, s), u = O > 0 ? n / O * 100 : 0, c = {
234
235
  name: l,
235
236
  inflow: a,
236
237
  outflow: s,
237
- from: h,
238
+ from: f,
238
239
  to: F,
239
240
  percentOfTotal: u,
240
- color: I[l] || "#000000"
241
+ color: A[l] || "#000000"
241
242
  };
242
243
  re.value = { datapoint: c }, le.value = !0;
243
244
  let v = "";
244
245
  const C = e.value.style.chart.tooltip.customFormat;
245
- if (Z.value = !1, Tt(C))
246
+ if (J.value = !1, Tt(C))
246
247
  try {
247
248
  const i = C({
248
249
  datapoint: c,
249
250
  series: m.value,
250
251
  config: e.value
251
252
  });
252
- typeof i == "string" && (ae.value = i, Z.value = !0);
253
+ typeof i == "string" && (ae.value = i, J.value = !0);
253
254
  } catch {
254
255
  console.warn("Custom format cannot be applied.");
255
256
  }
256
- if (!Z.value) {
257
- const i = e.value.style.chart.tooltip.showPercentage ? `<div>${X({
257
+ if (!J.value) {
258
+ const i = e.value.style.chart.tooltip.showPercentage ? `<div>${q({
258
259
  p: e.value.style.chart.tooltip.translations.percentOfTotal,
259
260
  v: c.percentOfTotal,
260
261
  s: "%",
261
262
  r: e.value.style.chart.tooltip.roundingPercentage
262
263
  })}</div>` : "";
263
- v += `<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:${c.color}">⏹</span>${c.name}${i}</div>`, c.from.length && (v += `<div>${e.value.style.chart.tooltip.translations.from}</div>`, c.from.forEach((f) => {
264
- v += `<div><span style="color:${f.color}">⏹←</span> ${f.source}: ${fe(
264
+ v += `<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:${c.color}">⏹</span>${c.name}${i}</div>`, c.from.length && (v += `<div>${e.value.style.chart.tooltip.translations.from}</div>`, c.from.forEach((h) => {
265
+ v += `<div><span style="color:${h.color}">⏹←</span> ${h.source}: ${fe(
265
266
  e.value.style.chart.nodes.labels.formatter,
266
- f.value,
267
- X({
267
+ h.value,
268
+ q({
268
269
  p: e.value.style.chart.nodes.labels.prefix,
269
- v: f.value,
270
+ v: h.value,
270
271
  s: e.value.style.chart.nodes.labels.suffix,
271
272
  r: e.value.style.chart.nodes.labels.rounding
272
273
  })
273
274
  )}</div>`;
274
- })), c.to.length && (v += `<div style="margin-top:6px;">${e.value.style.chart.tooltip.translations.to}</div>`, c.to.forEach((f) => {
275
- v += `<div><span style="color:${f.color}">⏹→</span> ${f.target}: ${fe(
275
+ })), c.to.length && (v += `<div style="margin-top:6px;">${e.value.style.chart.tooltip.translations.to}</div>`, c.to.forEach((h) => {
276
+ v += `<div><span style="color:${h.color}">⏹→</span> ${h.target}: ${fe(
276
277
  e.value.style.chart.nodes.labels.formatter,
277
- f.value,
278
- X({
278
+ h.value,
279
+ q({
279
280
  p: e.value.style.chart.nodes.labels.prefix,
280
- v: f.value,
281
+ v: h.value,
281
282
  s: e.value.style.chart.nodes.labels.suffix,
282
283
  r: e.value.style.chart.nodes.labels.rounding
283
284
  })
@@ -285,10 +286,10 @@ const Pt = ["id"], Lt = {
285
286
  })), ae.value = v;
286
287
  }
287
288
  }
288
- function Ne() {
289
- k.value = null, H.value = null, le.value = !1;
289
+ function Oe() {
290
+ k.value = null, Y.value = null, le.value = !1;
290
291
  }
291
- const Oe = p(() => m.value.links.map(
292
+ const Se = p(() => m.value.links.map(
292
293
  ({ source: t, target: l, sourceColor: o, targetColor: a, value: s }) => ({
293
294
  source: t,
294
295
  target: l,
@@ -297,9 +298,9 @@ const Pt = ["id"], Lt = {
297
298
  value: s
298
299
  })
299
300
  ));
300
- function Se(t = null) {
301
- vt(() => {
302
- const l = Oe.value.map((s, h) => [[s.source], [s.target], [s.value]]), o = [
301
+ function Fe(t = null) {
302
+ ft(() => {
303
+ const l = Se.value.map((s, f) => [[s.source], [s.target], [s.value]]), o = [
303
304
  [e.value.style.chart.title.text],
304
305
  [e.value.style.chart.title.subtitle.text],
305
306
  [
@@ -307,19 +308,19 @@ const Pt = ["id"], Lt = {
307
308
  [e.value.table.columnNames.target],
308
309
  [e.value.table.columnNames.value]
309
310
  ]
310
- ].concat(l), a = wt(o);
311
- t ? t(a) : $t({
311
+ ].concat(l), a = $t(o);
312
+ t ? t(a) : xt({
312
313
  csvContent: a,
313
314
  title: e.value.style.chart.title.text || "vue-ui-flow"
314
315
  });
315
316
  });
316
317
  }
317
- const J = p(() => {
318
+ const K = p(() => {
318
319
  const t = [
319
320
  e.value.table.columnNames.source,
320
321
  e.value.table.columnNames.target,
321
322
  e.value.table.columnNames.value
322
- ], l = Oe.value.map((s, h) => [
323
+ ], l = Se.value.map((s, f) => [
323
324
  {
324
325
  color: s.sourceColor,
325
326
  name: s.source
@@ -328,7 +329,7 @@ const Pt = ["id"], Lt = {
328
329
  color: s.targetColor,
329
330
  name: s.target
330
331
  },
331
- X({
332
+ q({
332
333
  p: e.value.style.chart.nodes.labels.prefix,
333
334
  v: s.value,
334
335
  s: e.value.style.chart.nodes.labels.suffix,
@@ -361,17 +362,17 @@ const Pt = ["id"], Lt = {
361
362
  function st() {
362
363
  return m.value;
363
364
  }
364
- function Fe() {
365
+ function Pe() {
365
366
  N.value.showTable = !N.value.showTable;
366
367
  }
367
- const K = y(!1);
368
+ const Q = y(!1);
368
369
  function ue() {
369
- K.value = !K.value;
370
+ Q.value = !Q.value;
370
371
  }
371
- function Pe() {
372
+ function Le() {
372
373
  N.value.showTooltip = !N.value.showTooltip;
373
374
  }
374
- const Le = p(() => {
375
+ const Ie = p(() => {
375
376
  const t = new Set(
376
377
  m.value.nodes.map(
377
378
  (l) => e.value.nodeCategories[l.name] || "__uncategorized__"
@@ -387,20 +388,20 @@ const Pt = ["id"], Lt = {
387
388
  })).map((l, o) => ({
388
389
  ...l,
389
390
  segregate: () => ie({ legend: l, i: o }),
390
- opacity: A.value.length ? A.value.includes(o) ? 1 : 0.5 : 1
391
+ opacity: I.value.length ? I.value.includes(o) ? 1 : 0.5 : 1
391
392
  }));
392
393
  }), Ae = p(
393
- () => Le.value.filter((t) => t.name !== "__uncategorized__")
394
- ), A = y([]);
394
+ () => Ie.value.filter((t) => t.name !== "__uncategorized__")
395
+ ), I = y([]);
395
396
  function ie({ legend: t, i: l }) {
396
397
  const o = t.name;
397
398
  if (k.value?.every(
398
399
  (a) => e.value.nodeCategories[a] === o
399
400
  )) {
400
- k.value = null, H.value = null, A.value = [];
401
+ k.value = null, Y.value = null, I.value = [];
401
402
  return;
402
403
  }
403
- A.value = [l], k.value = m.value.nodes.filter((a) => e.value.nodeCategories[a.name] === o).map((a) => a.name), H.value = null;
404
+ I.value = [l], k.value = m.value.nodes.filter((a) => e.value.nodeCategories[a.name] === o).map((a) => a.name), Y.value = null;
404
405
  }
405
406
  const rt = p(() => ({
406
407
  cy: "flow-legend",
@@ -410,36 +411,50 @@ const Pt = ["id"], Lt = {
410
411
  paddingBottom: e.value.style.chart.legend.paddingBottom,
411
412
  fontWeight: e.value.style.chart.legend.bold ? "bold" : "normal"
412
413
  }));
414
+ async function ut({ scale: t = 2 } = {}) {
415
+ if (!z.value) return;
416
+ const { width: l, height: o } = z.value.getBoundingClientRect(), a = l / o, { imageUri: s, base64: f } = await Pt({ domElement: z.value, base64: !0, img: !0, scale: t });
417
+ return {
418
+ imageUri: s,
419
+ base64: f,
420
+ title: e.value.style.chart.title.text,
421
+ width: l,
422
+ height: o,
423
+ aspectRatio: a
424
+ };
425
+ }
413
426
  return De({
414
427
  getData: st,
415
- generateCsv: Se,
428
+ getImage: ut,
429
+ generateCsv: Fe,
416
430
  generateImage: Te,
417
- generatePdf: $e,
418
- toggleTable: Fe,
431
+ generatePdf: xe,
432
+ toggleTable: Pe,
419
433
  toggleAnnotator: ue,
420
- toggleTooltip: Pe,
434
+ toggleTooltip: Le,
421
435
  drillCategory: ie,
422
- unselectNode: Ne
436
+ unselectNode: Oe,
437
+ toggleFullscreen: me
423
438
  }), (t, l) => (d(), g("div", {
424
439
  ref_key: "flowChart",
425
- ref: oe,
426
- class: Me(`vue-ui-flow ${z.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
440
+ ref: z,
441
+ class: He(`vue-ui-flow ${M.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
427
442
  style: L(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
428
- id: `flow_${te.value}`,
429
- onMouseenter: l[3] || (l[3] = () => r(me)(!0)),
430
- onMouseleave: l[4] || (l[4] = () => r(me)(!1))
443
+ id: `flow_${oe.value}`,
444
+ onMouseenter: l[3] || (l[3] = () => r(ye)(!0)),
445
+ onMouseleave: l[4] || (l[4] = () => r(ye)(!1))
431
446
  }, [
432
- e.value.userOptions.buttons.annotator ? (d(), B(r(Ue), {
447
+ e.value.userOptions.buttons.annotator ? (d(), R(r(We), {
433
448
  key: 0,
434
- svgRef: r(be),
449
+ svgRef: r(ke),
435
450
  backgroundColor: e.value.style.chart.backgroundColor,
436
451
  color: e.value.style.chart.color,
437
- active: K.value,
452
+ active: Q.value,
438
453
  onClose: ue
439
454
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : _("", !0),
440
- Ke.value ? (d(), g("div", Lt, null, 512)) : _("", !0),
441
- e.value.style.chart.title.text ? (d(), g("div", At, [
442
- (d(), B(St, {
455
+ Ke.value ? (d(), g("div", At, null, 512)) : _("", !0),
456
+ e.value.style.chart.title.text ? (d(), g("div", Et, [
457
+ (d(), R(Ft, {
443
458
  key: `title_${ge.value}`,
444
459
  config: {
445
460
  title: {
@@ -453,44 +468,44 @@ const Pt = ["id"], Lt = {
453
468
  }
454
469
  }, null, 8, ["config"]))
455
470
  ])) : _("", !0),
456
- e.value.userOptions.show && ee.value && (r(ye) || r(ne)) ? (d(), B(r(Xe), {
471
+ e.value.userOptions.show && te.value && (r(be) || r(ne)) ? (d(), R(r(qe), {
457
472
  ref: "details",
458
473
  key: `user_option_${pe.value}`,
459
474
  backgroundColor: e.value.style.chart.backgroundColor,
460
475
  color: e.value.style.chart.color,
461
- isPrinting: r(Ce),
462
- isImaging: r(we),
463
- uid: te.value,
476
+ isPrinting: r(we),
477
+ isImaging: r($e),
478
+ uid: oe.value,
464
479
  hasPdf: e.value.userOptions.buttons.pdf,
465
480
  hasXls: e.value.userOptions.buttons.csv,
466
481
  hasImg: e.value.userOptions.buttons.img,
467
482
  hasTable: e.value.userOptions.buttons.table,
468
483
  callbacks: e.value.userOptions.callbacks,
469
484
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
470
- isFullscreen: z.value,
485
+ isFullscreen: M.value,
471
486
  titles: { ...e.value.userOptions.buttonTitles },
472
- chartElement: oe.value,
487
+ chartElement: z.value,
473
488
  position: e.value.userOptions.position,
474
489
  hasAnnotator: e.value.userOptions.buttons.annotator,
475
490
  printScale: e.value.userOptions.print.scale,
476
- isAnnotation: K.value,
491
+ isAnnotation: Q.value,
477
492
  hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
478
493
  isTooltip: N.value.showTooltip,
479
- onToggleTooltip: Pe,
480
- onToggleFullscreen: Je,
481
- onGeneratePdf: r($e),
482
- onGenerateCsv: Se,
494
+ onToggleTooltip: Le,
495
+ onToggleFullscreen: me,
496
+ onGeneratePdf: r(xe),
497
+ onGenerateCsv: Fe,
483
498
  onGenerateImage: r(Te),
484
- onToggleTable: Fe,
499
+ onToggleTable: Pe,
485
500
  onToggleAnnotator: ue,
486
501
  style: L({
487
- visibility: r(ye) ? r(ne) ? "visible" : "hidden" : "visible"
502
+ visibility: r(be) ? r(ne) ? "visible" : "hidden" : "visible"
488
503
  })
489
- }, ct({ _: 2 }, [
504
+ }, dt({ _: 2 }, [
490
505
  t.$slots.menuIcon ? {
491
506
  name: "menuIcon",
492
507
  fn: w(({ isOpen: o, color: a }) => [
493
- b(t.$slots, "menuIcon", R(V({ isOpen: o, color: a })), void 0, !0)
508
+ b(t.$slots, "menuIcon", U(V({ isOpen: o, color: a })), void 0, !0)
494
509
  ]),
495
510
  key: "0"
496
511
  } : void 0,
@@ -532,26 +547,26 @@ const Pt = ["id"], Lt = {
532
547
  t.$slots.optionFullscreen ? {
533
548
  name: "optionFullscreen",
534
549
  fn: w(({ toggleFullscreen: o, isFullscreen: a }) => [
535
- b(t.$slots, "optionFullscreen", R(V({ toggleFullscreen: o, isFullscreen: a })), void 0, !0)
550
+ b(t.$slots, "optionFullscreen", U(V({ toggleFullscreen: o, isFullscreen: a })), void 0, !0)
536
551
  ]),
537
552
  key: "6"
538
553
  } : void 0,
539
554
  t.$slots.optionAnnotator ? {
540
555
  name: "optionAnnotator",
541
556
  fn: w(({ toggleAnnotator: o, isAnnotator: a }) => [
542
- b(t.$slots, "optionAnnotator", R(V({ toggleAnnotator: o, isAnnotator: a })), void 0, !0)
557
+ b(t.$slots, "optionAnnotator", U(V({ toggleAnnotator: o, isAnnotator: a })), void 0, !0)
543
558
  ]),
544
559
  key: "7"
545
560
  } : void 0
546
561
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "callbacks", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "printScale", "isAnnotation", "hasTooltip", "isTooltip", "onGeneratePdf", "onGenerateImage", "style"])) : _("", !0),
547
562
  (d(), g("svg", {
548
563
  ref_key: "svgRef",
549
- ref: be,
550
- xmlns: r(kt),
564
+ ref: ke,
565
+ xmlns: r(Ct),
551
566
  viewBox: `0 0 ${G.value.width} ${G.value.height}`,
552
- class: Me({
553
- "vue-data-ui-fullscreen--on": z.value,
554
- "vue-data-ui-fulscreen--off": !z.value
567
+ class: He({
568
+ "vue-data-ui-fullscreen--on": M.value,
569
+ "vue-data-ui-fulscreen--off": !M.value
555
570
  }),
556
571
  style: L(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
557
572
  }, [
@@ -567,9 +582,9 @@ const Pt = ["id"], Lt = {
567
582
  }
568
583
  }, [
569
584
  b(t.$slots, "chart-background", {}, void 0, !0)
570
- ], 8, Et)) : _("", !0),
585
+ ], 8, Mt)) : _("", !0),
571
586
  D("defs", null, [
572
- (d(!0), g(U, null, W(m.value.links, (o, a) => (d(), g("linearGradient", {
587
+ (d(!0), g(W, null, j(m.value.links, (o, a) => (d(), g("linearGradient", {
573
588
  id: o.id,
574
589
  x1: "0%",
575
590
  y1: "0%",
@@ -579,75 +594,75 @@ const Pt = ["id"], Lt = {
579
594
  D("stop", {
580
595
  offset: "0%",
581
596
  "stop-color": o.sourceColor
582
- }, null, 8, Mt),
597
+ }, null, 8, Yt),
583
598
  D("stop", {
584
599
  offset: "100%",
585
600
  "stop-color": o.targetColor
586
- }, null, 8, Ht)
587
- ], 8, zt))), 256))
601
+ }, null, 8, Bt)
602
+ ], 8, Ht))), 256))
588
603
  ]),
589
- (d(!0), g(U, null, W(m.value.links, (o) => (d(), g("path", {
604
+ (d(!0), g(W, null, j(m.value.links, (o) => (d(), g("path", {
590
605
  class: "vue-ui-flow-link",
591
606
  d: o.path,
592
607
  fill: `url(#${o.id})`,
593
608
  stroke: e.value.style.chart.links.stroke,
594
609
  "stroke-width": e.value.style.chart.links.strokeWidth,
595
610
  style: L(`
596
- opacity:${k.value ? k.value.includes(o.source) && k.value.includes(o.target) ? 1 : 0.3 : H.value ? [o.target, o.source].includes(H.value) ? 1 : 0.3 : e.value.style.chart.links.opacity}
611
+ opacity:${k.value ? k.value.includes(o.source) && k.value.includes(o.target) ? 1 : 0.3 : Y.value ? [o.target, o.source].includes(Y.value) ? 1 : 0.3 : e.value.style.chart.links.opacity}
597
612
  `)
598
- }, null, 12, Yt))), 256)),
599
- (d(!0), g(U, null, W(m.value.nodes, (o, a) => (d(), g("rect", {
613
+ }, null, 12, Rt))), 256)),
614
+ (d(!0), g(W, null, j(m.value.nodes, (o, a) => (d(), g("rect", {
600
615
  class: "vue-ui-flow-node",
601
616
  x: o.x,
602
617
  y: r($)(o.absoluteY) + e.value.style.chart.padding.top,
603
618
  height: r($)(o.height),
604
- width: M.value,
619
+ width: H.value,
605
620
  fill: o.color,
606
621
  stroke: e.value.style.chart.nodes.stroke,
607
622
  "stroke-width": e.value.style.chart.nodes.strokeWidth,
608
623
  onMouseenter: (s) => nt(o),
609
- onMouseleave: l[0] || (l[0] = (s) => Ne()),
624
+ onMouseleave: l[0] || (l[0] = (s) => Oe()),
610
625
  style: L(`opacity:${k.value ? k.value.includes(o.name) ? 1 : 0.3 : 1}`)
611
- }, null, 44, Bt))), 256)),
612
- (d(!0), g(U, null, W(m.value.nodes, (o, a) => (d(), g("text", {
613
- x: o.x + M.value / 2,
626
+ }, null, 44, Dt))), 256)),
627
+ (d(!0), g(W, null, j(m.value.nodes, (o, a) => (d(), g("text", {
628
+ x: o.x + H.value / 2,
614
629
  y: r($)(
615
630
  o.absoluteY + o.height / 2 - e.value.style.chart.nodes.labels.fontSize / 4
616
631
  ) + e.value.style.chart.padding.top,
617
632
  "font-size": e.value.style.chart.nodes.labels.fontSize,
618
- fill: r(He)(o.color),
633
+ fill: r(Ye)(o.color),
619
634
  "text-anchor": "middle",
620
635
  style: L(`pointer-events: none; opacity:${k.value ? k.value.includes(o.name) ? 1 : 0 : 1}`)
621
- }, j(e.value.style.chart.nodes.labels.abbreviation.use ? r(Ct)({
636
+ }, X(e.value.style.chart.nodes.labels.abbreviation.use ? r(wt)({
622
637
  source: o.name,
623
638
  length: e.value.style.chart.nodes.labels.abbreviation.length
624
- }) : o.name), 13, Dt))), 256)),
625
- (d(!0), g(U, null, W(m.value.nodes, (o, a) => (d(), g("text", {
626
- x: o.x + M.value / 2,
639
+ }) : o.name), 13, Ut))), 256)),
640
+ (d(!0), g(W, null, j(m.value.nodes, (o, a) => (d(), g("text", {
641
+ x: o.x + H.value / 2,
627
642
  y: r($)(
628
643
  o.absoluteY + o.height / 2 + e.value.style.chart.nodes.labels.fontSize
629
644
  ) + e.value.style.chart.padding.top,
630
645
  "font-size": e.value.style.chart.nodes.labels.fontSize,
631
- fill: r(He)(o.color),
646
+ fill: r(Ye)(o.color),
632
647
  "text-anchor": "middle",
633
648
  style: L(`pointer-events: none; opacity:${k.value ? k.value.includes(o.name) ? 1 : 0 : 1}`)
634
- }, j(r(fe)(
649
+ }, X(r(fe)(
635
650
  e.value.style.chart.nodes.labels.formatter,
636
651
  o.value,
637
- r(X)({
652
+ r(q)({
638
653
  p: e.value.style.chart.nodes.labels.prefix,
639
654
  v: o.value,
640
655
  s: e.value.style.chart.nodes.labels.suffix,
641
656
  r: e.value.style.chart.nodes.labels.rounding
642
657
  }),
643
658
  { datapoint: o, seriesIndex: a }
644
- )), 13, Rt))), 256)),
659
+ )), 13, Vt))), 256)),
645
660
  b(t.$slots, "svg", { svg: G.value }, void 0, !0)
646
- ], 14, It)),
647
- t.$slots.watermark ? (d(), g("div", Vt, [
648
- b(t.$slots, "watermark", R(V({ isPrinting: r(Ce) || r(we) })), void 0, !0)
661
+ ], 14, zt)),
662
+ t.$slots.watermark ? (d(), g("div", Gt, [
663
+ b(t.$slots, "watermark", U(V({ isPrinting: r(we) || r($e) })), void 0, !0)
649
664
  ])) : _("", !0),
650
- ee.value ? _("", !0) : (d(), B(r(We), {
665
+ te.value ? _("", !0) : (d(), R(r(je), {
651
666
  key: 5,
652
667
  config: {
653
668
  type: "flow",
@@ -658,9 +673,9 @@ const Pt = ["id"], Lt = {
658
673
  }, null, 8, ["config"])),
659
674
  D("div", {
660
675
  ref_key: "chartLegend",
661
- ref: Ze
676
+ ref: Je
662
677
  }, [
663
- e.value.style.chart.legend.show && Ae.value.length ? (d(), B(Ot, {
678
+ e.value.style.chart.legend.show && Ae.value.length ? (d(), R(St, {
664
679
  key: 0,
665
680
  legendSet: Ae.value,
666
681
  config: rt.value,
@@ -669,17 +684,17 @@ const Pt = ["id"], Lt = {
669
684
  item: w(({ legend: o, index: a }) => [
670
685
  D("div", {
671
686
  onClick: (s) => o.segregate(),
672
- style: L(`opacity:${A.value.length ? A.value.includes(a) ? 1 : 0.5 : 1}`)
673
- }, j(o.name) + " (" + j(o.count) + ") ", 13, Gt)
687
+ style: L(`opacity:${I.value.length ? I.value.includes(a) ? 1 : 0.5 : 1}`)
688
+ }, X(o.name) + " (" + X(o.count) + ") ", 13, Wt)
674
689
  ]),
675
690
  _: 1
676
691
  }, 8, ["legendSet", "config"])) : _("", !0),
677
- b(t.$slots, "legend", { legend: Le.value }, void 0, !0)
692
+ b(t.$slots, "legend", { legend: Ie.value }, void 0, !0)
678
693
  ], 512),
679
- t.$slots.source ? (d(), g("div", Ut, [
694
+ t.$slots.source ? (d(), g("div", jt, [
680
695
  b(t.$slots, "source", {}, void 0, !0)
681
696
  ], 512)) : _("", !0),
682
- de(r(je), {
697
+ de(r(Xe), {
683
698
  show: N.value.showTooltip && le.value,
684
699
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
685
700
  color: e.value.style.chart.tooltip.color,
@@ -690,20 +705,20 @@ const Pt = ["id"], Lt = {
690
705
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
691
706
  position: e.value.style.chart.tooltip.position,
692
707
  offsetY: e.value.style.chart.tooltip.offsetY,
693
- parent: oe.value,
708
+ parent: z.value,
694
709
  content: ae.value,
695
- isCustom: Z.value,
696
- isFullscreen: z.value
710
+ isCustom: J.value,
711
+ isFullscreen: M.value
697
712
  }, {
698
713
  "tooltip-before": w(() => [
699
- b(t.$slots, "tooltip-before", R(V({ ...re.value })), void 0, !0)
714
+ b(t.$slots, "tooltip-before", U(V({ ...re.value })), void 0, !0)
700
715
  ]),
701
716
  "tooltip-after": w(() => [
702
- b(t.$slots, "tooltip-after", R(V({ ...re.value })), void 0, !0)
717
+ b(t.$slots, "tooltip-after", U(V({ ...re.value })), void 0, !0)
703
718
  ]),
704
719
  _: 3
705
720
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen"]),
706
- ee.value ? (d(), B(r(Re), {
721
+ te.value ? (d(), R(r(Ue), {
707
722
  key: 7,
708
723
  hideDetails: "",
709
724
  config: {
@@ -721,10 +736,10 @@ const Pt = ["id"], Lt = {
721
736
  }, {
722
737
  content: w(() => [
723
738
  de(r(Ve), {
724
- colNames: J.value.colNames,
725
- head: J.value.head,
726
- body: J.value.body,
727
- config: J.value.config,
739
+ colNames: K.value.colNames,
740
+ head: K.value.head,
741
+ body: K.value.body,
742
+ config: K.value.config,
728
743
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
729
744
  onClose: l[2] || (l[2] = (o) => N.value.showTable = !1)
730
745
  }, {
@@ -732,19 +747,19 @@ const Pt = ["id"], Lt = {
732
747
  D("div", {
733
748
  innerHTML: o,
734
749
  style: { display: "flex", "align-items": "center" }
735
- }, null, 8, Wt)
750
+ }, null, 8, Xt)
736
751
  ]),
737
752
  td: w(({ td: o }) => [
738
- dt(j(o.name || o), 1)
753
+ vt(X(o.name || o), 1)
739
754
  ]),
740
755
  _: 1
741
756
  }, 8, ["colNames", "head", "body", "config", "title"])
742
757
  ]),
743
758
  _: 1
744
759
  }, 8, ["config"])) : _("", !0)
745
- ], 46, Pt));
760
+ ], 46, It));
746
761
  }
747
- }, lo = /* @__PURE__ */ Ft(jt, [["__scopeId", "data-v-00141fe6"]]);
762
+ }, so = /* @__PURE__ */ Lt(qt, [["__scopeId", "data-v-3da6170d"]]);
748
763
  export {
749
- lo as default
764
+ so as default
750
765
  };