vue-data-ui 3.1.1 → 3.1.3

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 (95) hide show
  1. package/dist/{Arrow-xQM7mBzd.js → Arrow-DBaAWGvq.js} +1 -1
  2. package/dist/{BaseDraggableDialog-B2BQC0-h.js → BaseDraggableDialog-BmN9jTP8.js} +2 -2
  3. package/dist/{BaseIcon-DLesaZpW.js → BaseIcon-BcOSijbz.js} +5 -3
  4. package/dist/{ColorPicker-BKvJvFtX.js → ColorPicker-D1yNPt76.js} +2 -2
  5. package/dist/{DataTable-BAf4Obr9.js → DataTable-Cm8Tt9PQ.js} +2 -2
  6. package/dist/Legend-5qvgVkrY.js +85 -0
  7. package/dist/{NonSvgPenAndPaper-Cq4fHmA0.js → NonSvgPenAndPaper-D3QGd7vP.js} +3 -3
  8. package/dist/{PackageVersion-Cv_ypT0N.js → PackageVersion-0XlRFsI_.js} +1 -1
  9. package/dist/{PenAndPaper-B6OvfyHH.js → PenAndPaper-CyH7Ip2i.js} +3 -3
  10. package/dist/{Shape-Cjca5zta.js → Shape-DiplSMFy.js} +1 -1
  11. package/dist/{Slicer-6w3K8gAc.js → Slicer-DG99wPTy.js} +11 -9
  12. package/dist/{SparkTooltip-BV4Z-NMp.js → SparkTooltip-VveQSwlw.js} +1 -1
  13. package/dist/Title-CqYBs02Y.js +88 -0
  14. package/dist/{Tooltip-BTGOEC7w.js → Tooltip-CP0tVHAf.js} +1 -1
  15. package/dist/{UserOptions-CsDlFB0L.js → UserOptions-ZmwlARCV.js} +125 -108
  16. package/dist/{dom-to-png-BOu5-Ohz.js → dom-to-png-DGA4a3xT.js} +1 -1
  17. package/dist/{img-gBDz7xQQ.js → img-DSrvx9J6.js} +1 -1
  18. package/dist/{index-BKQqb9lF.js → index-CaxArMHL.js} +97 -74
  19. package/dist/pdf-BG8PiGFH.js +79 -0
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +28 -3
  22. package/dist/types/vue-data-ui.d.ts +28 -3
  23. package/dist/{useAutoSizeLabelsInsideViewbox-IO2dh0Uq.js → useAutoSizeLabelsInsideViewbox-DmtFf4bt.js} +1 -1
  24. package/dist/{useNestedProp-aBOhgs4U.js → useNestedProp-tWT02_6S.js} +1 -1
  25. package/dist/{usePrinter-BzuXiubT.js → usePrinter-BYtPmEo8.js} +13 -12
  26. package/dist/{vue-data-ui-B6eM6hF3.js → vue-data-ui-DVb8r5z7.js} +64 -64
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-DBeWmnvH.js → vue-ui-3d-bar-BLKyWpz7.js} +371 -366
  29. package/dist/{vue-ui-accordion-B5QeV3BK.js → vue-ui-accordion-DUlNpLir.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-rZFdUsgz.js → vue-ui-age-pyramid-LLqbXP1m.js} +200 -195
  31. package/dist/{vue-ui-annotator-CCCuslrT.js → vue-ui-annotator-CcYIlcKF.js} +2 -2
  32. package/dist/{vue-ui-bullet-DhJf9mvK.js → vue-ui-bullet-BKmts_u4.js} +7 -7
  33. package/dist/{vue-ui-candlestick-CGVtDKqZ.js → vue-ui-candlestick-C9l_NpXu.js} +225 -220
  34. package/dist/{vue-ui-carousel-table-DLAR3WY8.js → vue-ui-carousel-table-H7xS6aBC.js} +4 -4
  35. package/dist/{vue-ui-chestnut-BXnSxoXB.js → vue-ui-chestnut-CAW0IOdY.js} +344 -340
  36. package/dist/{vue-ui-chord-DH_MwAKX.js → vue-ui-chord-CK5YhCqM.js} +272 -266
  37. package/dist/{vue-ui-circle-pack-Cx_E1R63.js → vue-ui-circle-pack-NLyZgTGF.js} +6 -6
  38. package/dist/{vue-ui-cursor-CEvH1qDS.js → vue-ui-cursor-CyGUrKWU.js} +2 -2
  39. package/dist/vue-ui-dashboard-Cf5pvEzD.js +412 -0
  40. package/dist/{vue-ui-digits-PTozKs3l.js → vue-ui-digits-BZWwwp7c.js} +2 -2
  41. package/dist/{vue-ui-donut-evolution-DD7o-CxF.js → vue-ui-donut-evolution-CaEYMVZj.js} +310 -304
  42. package/dist/{vue-ui-donut-CsEtKJJD.js → vue-ui-donut-g1WHrj6G.js} +348 -343
  43. package/dist/{vue-ui-dumbbell-DfPYl3fu.js → vue-ui-dumbbell-BArS1nXS.js} +293 -287
  44. package/dist/{vue-ui-flow-CSTTZHwg.js → vue-ui-flow-BR0CB5qt.js} +263 -257
  45. package/dist/{vue-ui-funnel-C-NUZqIo.js → vue-ui-funnel-D2OCItvq.js} +206 -200
  46. package/dist/{vue-ui-galaxy-BwsZnU6T.js → vue-ui-galaxy-qgGF1AAf.js} +243 -238
  47. package/dist/{vue-ui-gauge-D9MUneq0.js → vue-ui-gauge-BIXmGyQL.js} +7 -7
  48. package/dist/{vue-ui-gizmo-Dnzs9wSf.js → vue-ui-gizmo-DHEoS051.js} +3 -3
  49. package/dist/{vue-ui-heatmap-CYaQIhy8.js → vue-ui-heatmap-tRzq9BnI.js} +405 -401
  50. package/dist/{vue-ui-history-plot-DMTFzl-_.js → vue-ui-history-plot-DmwHhrDk.js} +305 -299
  51. package/dist/{vue-ui-kpi-CkPotdff.js → vue-ui-kpi-C2b2R5i1.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-CCE-bDOJ.js → vue-ui-mini-loader-Bs1Mi1tD.js} +2 -2
  53. package/dist/{vue-ui-molecule-DaN5lroq.js → vue-ui-molecule-BsUvf2v7.js} +188 -183
  54. package/dist/{vue-ui-mood-radar-tM0mmZh8.js → vue-ui-mood-radar-D3JIpVvX.js} +197 -192
  55. package/dist/{vue-ui-nested-donuts-RB4r6beI.js → vue-ui-nested-donuts-dJEgQXTH.js} +326 -320
  56. package/dist/{vue-ui-onion-CxDozHg3.js → vue-ui-onion-D8dF1DdA.js} +8 -8
  57. package/dist/{vue-ui-parallel-coordinate-plot-CK9nNExU.js → vue-ui-parallel-coordinate-plot-LmFsg7UA.js} +401 -395
  58. package/dist/{vue-ui-quadrant-C7tLJYn7.js → vue-ui-quadrant-C4O8ki4N.js} +339 -334
  59. package/dist/{vue-ui-quick-chart-MUBAkrHb.js → vue-ui-quick-chart-6bEtTQBG.js} +6 -6
  60. package/dist/{vue-ui-radar-Br4K80I9.js → vue-ui-radar-CfjGWGk3.js} +248 -243
  61. package/dist/{vue-ui-rating-NtvT9r_M.js → vue-ui-rating-D3WSs2OD.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CPQjAy1g.js → vue-ui-relation-circle-DzTfi7Tf.js} +7 -7
  63. package/dist/{vue-ui-ridgeline-C2M_Cjlh.js → vue-ui-ridgeline-NtYOJvDy.js} +267 -263
  64. package/dist/{vue-ui-rings-DEru-cWN.js → vue-ui-rings-CYQ4i71V.js} +229 -224
  65. package/dist/{vue-ui-scatter-CJKkiKle.js → vue-ui-scatter-meJEHdAD.js} +359 -354
  66. package/dist/{vue-ui-skeleton--twnjS2t.js → vue-ui-skeleton-BtILTxx-.js} +3 -3
  67. package/dist/{vue-ui-smiley-CNccdPZ7.js → vue-ui-smiley-B5bELpYD.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-9BFkkC0u.js → vue-ui-spark-trend-lixdWq_N.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-RYAThoA4.js → vue-ui-sparkbar-CaGPav-J.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-DkPlmgMF.js → vue-ui-sparkgauge-BZBGYDjs.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-6EkCyYRF.js → vue-ui-sparkhistogram-Bp6KxpjH.js} +4 -4
  72. package/dist/{vue-ui-sparkline-Bl3nj8zd.js → vue-ui-sparkline-CF-EAZa6.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-B88lA7iy.js → vue-ui-sparkstackbar-Cj1LAYC8.js} +3 -3
  74. package/dist/{vue-ui-stackbar-Csj7NhT6.js → vue-ui-stackbar-BrzKhqAK.js} +310 -304
  75. package/dist/{vue-ui-strip-plot-yY9NsUUI.js → vue-ui-strip-plot-BfVVaSFn.js} +246 -240
  76. package/dist/{vue-ui-table-Dg6U31ex.js → vue-ui-table-CBzNgzVP.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-BWU7CAWP.js → vue-ui-table-heatmap-CKz5bA7N.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-DV4Y9aRL.js → vue-ui-table-sparkline-O-Z0YH6u.js} +4 -4
  79. package/dist/{vue-ui-thermometer-C3fKamV-.js → vue-ui-thermometer-DpNyTGNH.js} +7 -7
  80. package/dist/{vue-ui-timer-6VAK9XyF.js → vue-ui-timer-uvshaRMI.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-BB-KAkF7.js → vue-ui-tiremarks-A8Akuz-q.js} +6 -6
  82. package/dist/{vue-ui-treemap-GrXkD_3Z.js → vue-ui-treemap-Dvmuo3tM.js} +262 -256
  83. package/dist/{vue-ui-vertical-bar-Mmz6u4aX.js → vue-ui-vertical-bar-eMgRMSKN.js} +310 -306
  84. package/dist/{vue-ui-waffle-DzPVRUOA.js → vue-ui-waffle-Cm8VfnG8.js} +257 -252
  85. package/dist/{vue-ui-wheel-idRCvS5t.js → vue-ui-wheel-Bhsklf_m.js} +6 -6
  86. package/dist/vue-ui-word-cloud-C9HGLsG4.js +817 -0
  87. package/dist/{vue-ui-world-D6s5Eph8.js → vue-ui-world-B_MrjwGJ.js} +257 -252
  88. package/dist/{vue-ui-xy-BKTGSvfU.js → vue-ui-xy-DnYJw2aS.js} +1448 -1438
  89. package/dist/{vue-ui-xy-canvas-BOQyxVRl.js → vue-ui-xy-canvas-C0Snw0Dz.js} +235 -229
  90. package/package.json +1 -1
  91. package/dist/Legend-8_V5egWW.js +0 -72
  92. package/dist/Title-Dz-j6ERs.js +0 -61
  93. package/dist/pdf-Cjsn5GEE.js +0 -61
  94. package/dist/vue-ui-dashboard-CvduVgEy.js +0 -325
  95. package/dist/vue-ui-word-cloud-B2641uNP.js +0 -811
@@ -1,24 +1,24 @@
1
- import { defineAsyncComponent as R, ref as v, computed as g, onMounted as Kt, toRefs as Zt, watch as Te, createElementBlock as p, openBlock as i, unref as r, normalizeStyle as W, normalizeClass as bt, createBlock as q, createCommentVNode as T, createElementVNode as Y, createVNode as xe, createSlots as Ct, withCtx as b, renderSlot as k, normalizeProps as Q, guardReactiveProps as ee, Fragment as de, renderList as he, toDisplayString as te, Teleport as Jt, resolveDynamicComponent as Qt, mergeProps as eo, createTextVNode as kt, nextTick as to } from "vue";
2
- import { u as oo, c as He, t as lo, o as wt, f as ao, a as no, p as L, b as so, d as ro, h as x, e as uo, i as fe, X as io, F as $t, L as co, k as Re, v as vo, w as ho, y as fo } from "./index-BKQqb9lF.js";
3
- import { t as po, u as go } from "./useResponsive-DfdjqQps.js";
4
- import { u as mo } from "./usePrinter-BzuXiubT.js";
5
- import { u as yo, B as bo } from "./BaseScanner-BgWxam9d.js";
6
- import { u as At } from "./useNestedProp-aBOhgs4U.js";
7
- import { u as Co } from "./useUserOptionState-BIvW1Kz7.js";
8
- import { u as ko } from "./useChartAccessibility-9icAAmYg.js";
9
- import wo from "./Legend-8_V5egWW.js";
10
- import $o from "./Title-Dz-j6ERs.js";
11
- import Ao from "./img-gBDz7xQQ.js";
12
- import { _ as To } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
- const xo = ["id"], _o = {
1
+ import { defineAsyncComponent as H, ref as c, computed as g, onMounted as Jt, toRefs as Qt, watch as Te, createElementBlock as p, openBlock as i, unref as r, normalizeStyle as W, normalizeClass as kt, createBlock as q, createCommentVNode as T, createElementVNode as Y, createVNode as xe, createSlots as wt, withCtx as b, renderSlot as k, normalizeProps as Q, guardReactiveProps as ee, Fragment as de, renderList as he, toDisplayString as te, Teleport as eo, resolveDynamicComponent as to, mergeProps as oo, createTextVNode as $t, nextTick as lo } from "vue";
2
+ import { u as ao, c as He, t as no, o as At, f as so, a as ro, p as L, b as uo, d as io, h as x, e as co, i as fe, X as vo, F as Tt, L as ho, k as We, v as fo, w as po, y as go } from "./index-CaxArMHL.js";
3
+ import { t as mo, u as yo } from "./useResponsive-DfdjqQps.js";
4
+ import { u as bo } from "./usePrinter-BYtPmEo8.js";
5
+ import { u as Co, B as ko } from "./BaseScanner-BgWxam9d.js";
6
+ import { u as xt } from "./useNestedProp-tWT02_6S.js";
7
+ import { u as wo } from "./useUserOptionState-BIvW1Kz7.js";
8
+ import { u as $o } from "./useChartAccessibility-9icAAmYg.js";
9
+ import Ao from "./Legend-5qvgVkrY.js";
10
+ import To from "./Title-CqYBs02Y.js";
11
+ import xo from "./img-DSrvx9J6.js";
12
+ import { _ as _o } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
+ const So = ["id"], Oo = {
14
14
  key: 1,
15
15
  ref: "noTitle",
16
16
  class: "vue-data-ui-no-title-space",
17
17
  style: "height:36px; width: 100%;background:transparent"
18
- }, So = ["id"], Oo = ["xmlns", "viewBox"], No = ["width", "height"], Fo = ["id"], Eo = ["stop-color"], Po = ["stop-color"], Mo = ["d", "fill", "stroke", "stroke-width"], Io = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], Do = { key: 1 }, Lo = ["x", "y", "font-size", "fill"], zo = ["x", "y", "font-size", "fill"], Bo = {
18
+ }, No = ["id"], Fo = ["xmlns", "viewBox"], Eo = ["width", "height"], Po = ["id"], Io = ["stop-color"], Mo = ["stop-color"], Do = ["d", "fill", "stroke", "stroke-width"], Lo = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], zo = { key: 1 }, Bo = ["x", "y", "font-size", "fill"], Ro = ["x", "y", "font-size", "fill"], Ho = {
19
19
  key: 4,
20
20
  class: "vue-data-ui-watermark"
21
- }, Ho = ["id"], Ro = ["onClick"], Wo = ["innerHTML"], Yo = {
21
+ }, Wo = ["id"], Yo = ["onClick"], Go = ["innerHTML"], Uo = {
22
22
  __name: "vue-ui-flow",
23
23
  props: {
24
24
  config: {
@@ -34,19 +34,19 @@ const xo = ["id"], _o = {
34
34
  }
35
35
  }
36
36
  },
37
- setup(Tt, { expose: xt }) {
38
- const _t = R(() => import("./Tooltip-BTGOEC7w.js")), St = R(() => import("./BaseIcon-DLesaZpW.js")), Ot = R(() => import("./vue-ui-accordion-B5QeV3BK.js")), Nt = R(() => import("./DataTable-BAf4Obr9.js")), Ft = R(() => import("./PenAndPaper-B6OvfyHH.js")), Et = R(() => import("./UserOptions-CsDlFB0L.js")), Pt = R(() => import("./PackageVersion-Cv_ypT0N.js")), Mt = R(() => import("./BaseDraggableDialog-B2BQC0-h.js")), { vue_ui_flow: It } = oo(), E = Tt, G = v(He()), I = v(null), We = v(0), Ye = v(0), _e = v(!1), Se = v(""), Ge = v(null), Ue = v(null), je = v(null), oe = v(null), pe = v(null), Ve = v(!1), le = v(null), Xe = g(() => !!E.dataset && E.dataset.length);
39
- Kt(() => {
40
- Ve.value = !0, Ke();
37
+ setup(_t, { expose: St }) {
38
+ const Ot = H(() => import("./Tooltip-CP0tVHAf.js")), Nt = H(() => import("./BaseIcon-BcOSijbz.js")), Ft = H(() => import("./vue-ui-accordion-DUlNpLir.js")), Et = H(() => import("./DataTable-Cm8Tt9PQ.js")), Pt = H(() => import("./PenAndPaper-CyH7Ip2i.js")), It = H(() => import("./UserOptions-ZmwlARCV.js")), Mt = H(() => import("./PackageVersion-0XlRFsI_.js")), Dt = H(() => import("./BaseDraggableDialog-BmN9jTP8.js")), { vue_ui_flow: Lt } = ao(), F = _t, G = c(He()), M = c(null), Ye = c(0), Ge = c(0), _e = c(!1), Se = c(""), Ue = c(null), je = c(null), Ve = c(null), oe = c(null), pe = c(null), Xe = c(!1), le = c(null), Oe = c(null), qe = g(() => !!F.dataset && F.dataset.length);
39
+ Jt(() => {
40
+ Xe.value = !0, Ze();
41
41
  });
42
- const U = v(!1);
43
- function qe(o) {
44
- U.value = o, We.value += 1;
42
+ const U = c(!1);
43
+ function Ke(o) {
44
+ U.value = o, Ye.value += 1;
45
45
  }
46
- const e = v(Ee()), { loading: Oe, FINAL_DATASET: ge, manualLoading: Ne } = yo({
47
- ...Zt(E),
46
+ const e = c(Pe()), { loading: Ne, FINAL_DATASET: ge, manualLoading: Fe } = Co({
47
+ ...Qt(F),
48
48
  FINAL_CONFIG: e,
49
- prepareConfig: Ee,
49
+ prepareConfig: Pe,
50
50
  skeletonDataset: [
51
51
  ["A", "B", 2, "#CACACA"],
52
52
  ["B", "C", 1, "#CACACA"],
@@ -55,7 +55,7 @@ const xo = ["id"], _o = {
55
55
  ["F", "G", 0.5, "#AAAAAA"],
56
56
  ["G", "H", 0.25, "#AAAAAA"]
57
57
  ],
58
- skeletonConfig: lo({
58
+ skeletonConfig: no({
59
59
  defaultConfig: e.value,
60
60
  userConfig: {
61
61
  userOptions: { show: !1 },
@@ -87,75 +87,75 @@ const xo = ["id"], _o = {
87
87
  }
88
88
  }
89
89
  })
90
- }), Dt = g(() => !!e.value.debug);
91
- function Ke() {
92
- if (wt(E.dataset) && (ao({
90
+ }), zt = g(() => !!e.value.debug);
91
+ function Ze() {
92
+ if (At(F.dataset) && (so({
93
93
  componentName: "VueUiFlow",
94
94
  type: "dataset",
95
- debug: Dt.value
96
- }), Ne.value = !0), wt(E.dataset) || (Ne.value = e.value.loading), e.value.responsive) {
97
- const o = po(() => {
98
- const { width: l, height: t } = go({
99
- chart: I.value,
100
- title: e.value.style.chart.title.text ? Ue.value : null,
101
- legend: e.value.style.chart.legend.show ? Ge.value : null,
102
- source: je.value
95
+ debug: zt.value
96
+ }), Fe.value = !0), At(F.dataset) || (Fe.value = e.value.loading), e.value.responsive) {
97
+ const o = mo(() => {
98
+ const { width: l, height: t } = yo({
99
+ chart: M.value,
100
+ title: e.value.style.chart.title.text ? je.value : null,
101
+ legend: e.value.style.chart.legend.show ? Ue.value : null,
102
+ source: Ve.value
103
103
  });
104
104
  requestAnimationFrame(() => {
105
- et.value = l, tt.value = t;
105
+ tt.value = l, ot.value = t;
106
106
  });
107
107
  });
108
- 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);
108
+ oe.value && (pe.value && oe.value.unobserve(pe.value), oe.value.disconnect()), oe.value = new ResizeObserver(o), pe.value = M.value.parentNode, oe.value.observe(pe.value);
109
109
  }
110
110
  }
111
- const { userOptionsVisible: Fe, setUserOptionsVisibility: Ze, keepUserOptionState: Je } = Co({ config: e.value }), { svgRef: Qe } = ko({
111
+ const { userOptionsVisible: Ee, setUserOptionsVisibility: Je, keepUserOptionState: Qe } = wo({ config: e.value }), { svgRef: et } = $o({
112
112
  config: e.value.style.chart.title
113
113
  });
114
- function Ee() {
115
- const o = At({
116
- userConfig: E.config,
117
- defaultConfig: It
114
+ function Pe() {
115
+ const o = xt({
116
+ userConfig: F.config,
117
+ defaultConfig: Lt
118
118
  });
119
119
  let l = o;
120
120
  return o.theme ? l = {
121
- ...At({
122
- userConfig: so.vue_ui_flow[o.theme] || E.config,
121
+ ...xt({
122
+ userConfig: uo.vue_ui_flow[o.theme] || F.config,
123
123
  defaultConfig: o
124
124
  }),
125
- customPalette: no[o.theme] || L
126
- } : l = o, l.nodeCategories = E.config.nodeCategories || {}, l.nodeCategoryColors = E.config.nodeCategoryColors || {}, l;
125
+ customPalette: ro[o.theme] || L
126
+ } : l = o, l.nodeCategories = F.config.nodeCategories || {}, l.nodeCategoryColors = F.config.nodeCategoryColors || {}, l;
127
127
  }
128
- const et = v(e.value.style.chart.width), tt = v(e.value.style.chart.height);
128
+ const tt = c(e.value.style.chart.width), ot = c(e.value.style.chart.height);
129
129
  Te(
130
- () => E.config,
130
+ () => F.config,
131
131
  (o) => {
132
- Oe.value || (e.value = Ee()), Fe.value = !e.value.userOptions.showOnChartHover, Ke(), Ye.value += 1, _.value.showTable = e.value.table.show;
132
+ Ne.value || (e.value = Pe()), Ee.value = !e.value.userOptions.showOnChartHover, Ze(), Ge.value += 1, E.value.showTable = e.value.table.show;
133
133
  },
134
134
  { deep: !0 }
135
- ), Te(() => E.dataset, (o) => {
136
- Array.isArray(o) && o.length > 0 && (Ne.value = !1);
135
+ ), Te(() => F.dataset, (o) => {
136
+ Array.isArray(o) && o.length > 0 && (Fe.value = !1);
137
137
  }, { deep: !0 });
138
- const { isPrinting: ot, isImaging: lt, generatePdf: at, generateImage: nt } = mo({
138
+ const { isPrinting: lt, isImaging: at, generatePdf: nt, generateImage: st } = bo({
139
139
  elementId: `flow_${G.value}`,
140
140
  fileName: e.value.style.chart.title.text || "vue-ui-flow",
141
141
  options: e.value.userOptions.print
142
- }), Lt = g(() => e.value.userOptions.show && !e.value.style.chart.title.text), me = g(() => ro(e.value.customPalette)), ye = g(() => e.value.style.chart.nodes.width), _ = v({
142
+ }), Bt = g(() => e.value.userOptions.show && !e.value.style.chart.title.text), me = g(() => io(e.value.customPalette)), ye = g(() => e.value.style.chart.nodes.width), E = c({
143
143
  showTable: e.value.table.show,
144
144
  showTooltip: e.value.style.chart.tooltip.show
145
145
  });
146
146
  Te(e, () => {
147
- _.value = {
147
+ E.value = {
148
148
  showTable: e.value.table.show,
149
149
  showTooltip: e.value.style.chart.tooltip.show
150
150
  };
151
151
  }, { immediate: !0 });
152
- const st = g(() => !ge.value || !ge.value.length ? [] : ge.value.map((o, l) => [
152
+ const rt = g(() => !ge.value || !ge.value.length ? [] : ge.value.map((o, l) => [
153
153
  o[0],
154
154
  o[1],
155
155
  x(o[2]),
156
- o[3] ? uo(o[3]) : me.value[l] || me.value[l % me.value.length] || L[l] || L[l % L.length]
156
+ o[3] ? co(o[3]) : me.value[l] || me.value[l % me.value.length] || L[l] || L[l % L.length]
157
157
  ]));
158
- function zt(o) {
158
+ function Rt(o) {
159
159
  const l = {}, t = {};
160
160
  function n(a, u) {
161
161
  l[a] || (l[a] = {
@@ -168,8 +168,8 @@ const xo = ["id"], _o = {
168
168
  }), l[a].level === null && (l[a].level = u), t[u] || (t[u] = []), t[u].includes(a) || t[u].push(a);
169
169
  }
170
170
  o.forEach(([a, u, d]) => {
171
- const h = l[a]?.level ?? 0, O = h + 1;
172
- n(a, h), n(u, O), l[a].children.push({ target: u, value: d }), l[a].outflow += d, l[u].inflow += d;
171
+ const h = l[a]?.level ?? 0, S = h + 1;
172
+ n(a, h), n(u, S), l[a].children.push({ target: u, value: d }), l[a].outflow += d, l[u].inflow += d;
173
173
  });
174
174
  const s = new Set(o.map(([a]) => a)), $ = new Set(o.map(([, a]) => a)), Z = Array.from(s).filter((a) => !$.has(a)), ue = {};
175
175
  Z.forEach((a, u) => {
@@ -184,78 +184,78 @@ const xo = ["id"], _o = {
184
184
  }), Object.keys(l).forEach((a) => {
185
185
  l[a].value = Math.max(l[a].inflow, l[a].outflow);
186
186
  });
187
- const we = ae.value, De = it.value.width, J = it.value.height, D = Object.keys(t).map(Number).sort((a, u) => a - u), $e = D.length || 1, Le = $e > 1 ? De / ($e - 1) : 0, A = Number(ye.value), M = Number(
187
+ const we = ae.value, Le = ct.value.width, J = ct.value.height, D = Object.keys(t).map(Number).sort((a, u) => a - u), $e = D.length || 1, ze = $e > 1 ? Le / ($e - 1) : 0, A = Number(ye.value), I = Number(
188
188
  e.value.style.chart.nodes.gapPx ?? e.value.style.chart.nodes.gap ?? 8
189
189
  ), ce = Number(e.value.style.chart.nodes.minHeight || 0);
190
- function c(a) {
190
+ function v(a) {
191
191
  const u = t[a], d = u.length;
192
192
  if (!d) return 1 / 0;
193
- const h = Math.max(0, (d - 1) * M), O = Math.max(0, J - h), z = Math.min(ce, d ? O / d : 0);
194
- let C = 0, N = u.map((f) => l[f].value || 0), y = N.reduce((f, F) => f + F, 0);
193
+ const h = Math.max(0, (d - 1) * I), S = Math.max(0, J - h), z = Math.min(ce, d ? S / d : 0);
194
+ let C = 0, O = u.map((f) => l[f].value || 0), y = O.reduce((f, N) => f + N, 0);
195
195
  for (let f = 0; f < 12; f += 1) {
196
- const F = y > 0 ? (O - C) / y : 0, B = [];
197
- for (let P = 0; P < N.length; P += 1) {
198
- const H = N[P];
199
- H < 0 || H * F < z && B.push(P);
196
+ const N = y > 0 ? (S - C) / y : 0, B = [];
197
+ for (let P = 0; P < O.length; P += 1) {
198
+ const R = O[P];
199
+ R < 0 || R * N < z && B.push(P);
200
200
  }
201
- if (!B.length) return Math.max(0, F);
201
+ if (!B.length) return Math.max(0, N);
202
202
  for (const P of B)
203
- C += z, y -= N[P], N[P] = -1;
203
+ C += z, y -= O[P], O[P] = -1;
204
204
  if (y <= 0) return 0;
205
205
  }
206
- return y > 0 ? Math.max(0, (O - C) / y) : 0;
206
+ return y > 0 ? Math.max(0, (S - C) / y) : 0;
207
207
  }
208
- const m = D.map(c), V = m.length ? Math.min(...m) : 0, X = {};
208
+ const m = D.map(v), V = m.length ? Math.min(...m) : 0, X = {};
209
209
  D.forEach((a) => {
210
- const u = t[a], d = u.length, h = Math.max(0, (d - 1) * M), O = Math.max(0, J - h), z = Math.min(ce, d ? O / d : 0), C = u.map(
210
+ const u = t[a], d = u.length, h = Math.max(0, (d - 1) * I), S = Math.max(0, J - h), z = Math.min(ce, d ? S / d : 0), C = u.map(
211
211
  (f) => Math.max(z, (l[f].value || 0) * V)
212
- ), N = C.reduce((f, F) => f + F, 0) + h;
213
- let y = Math.max(0, (J - N) / 2);
214
- u.forEach((f, F) => {
215
- const B = C[F], P = we.left + a * Le, H = y;
212
+ ), O = C.reduce((f, N) => f + N, 0) + h;
213
+ let y = Math.max(0, (J - O) / 2);
214
+ u.forEach((f, N) => {
215
+ const B = C[N], P = we.left + a * ze, R = y;
216
216
  X[f] = {
217
217
  x: P,
218
- y: H,
219
- absoluteY: H,
218
+ y: R,
219
+ absoluteY: R,
220
220
  height: B,
221
- i: F,
221
+ i: N,
222
222
  color: l[f].color,
223
223
  value: l[f].value
224
- }, y += B, F < d - 1 && (y += M);
224
+ }, y += B, N < d - 1 && (y += I);
225
225
  });
226
226
  });
227
- const gt = [], ve = we.top, ze = {}, Be = {};
227
+ const yt = [], ve = we.top, Be = {}, Re = {};
228
228
  Object.keys(l).forEach((a) => {
229
- ze[a] = X[a]?.y ?? 0, Be[a] = 0;
229
+ Be[a] = X[a]?.y ?? 0, Re[a] = 0;
230
230
  });
231
- const Ut = 1e-6, jt = 0.25;
231
+ const Vt = 1e-6, Xt = 0.25;
232
232
  return D.forEach((a) => {
233
233
  t[a].forEach((d) => {
234
- const h = l[d], O = X[d];
234
+ const h = l[d], S = X[d];
235
235
  if (!h.children || !h.children.length) return;
236
- let z = O.y;
237
- h.children.forEach(({ target: C, value: N }) => {
238
- const y = X[C], f = l[C], F = h.outflow > 0 ? N / h.outflow : 0, B = f.inflow > 0 ? N / f.inflow : 0, P = x(z + ve), H = x(z + F * O.height + ve), mt = ze[C];
239
- let Ae = mt + B * y.height;
240
- Be[C] += N;
241
- const Vt = f.inflow > 0 && Be[C] >= f.inflow - Ut, yt = y.y + y.height;
242
- (Vt || Ae > yt - jt) && (Ae = yt);
243
- const Xt = x(mt + ve), qt = x(Ae + ve);
244
- gt.push({
236
+ let z = S.y;
237
+ h.children.forEach(({ target: C, value: O }) => {
238
+ const y = X[C], f = l[C], N = h.outflow > 0 ? O / h.outflow : 0, B = f.inflow > 0 ? O / f.inflow : 0, P = x(z + ve), R = x(z + N * S.height + ve), bt = Be[C];
239
+ let Ae = bt + B * y.height;
240
+ Re[C] += O;
241
+ const qt = f.inflow > 0 && Re[C] >= f.inflow - Vt, Ct = y.y + y.height;
242
+ (qt || Ae > Ct - Xt) && (Ae = Ct);
243
+ const Kt = x(bt + ve), Zt = x(Ae + ve);
244
+ yt.push({
245
245
  id: He(),
246
246
  source: d,
247
247
  target: C,
248
- path: `M ${x(O.x + A)} ${P} L ${x(O.x + A)} ${H} L ${x(y.x)} ${qt} L ${x(y.x)} ${Xt} Z`,
249
- value: N,
248
+ path: `M ${x(S.x + A)} ${P} L ${x(S.x + A)} ${R} L ${x(y.x)} ${Zt} L ${x(y.x)} ${Kt} Z`,
249
+ value: O,
250
250
  sourceColor: h.color,
251
251
  targetColor: l[C].color
252
- }), z = H - ve, ze[C] = Ae;
252
+ }), z = R - ve, Be[C] = Ae;
253
253
  });
254
254
  });
255
- }), { nodeCoordinates: X, links: gt };
255
+ }), { nodeCoordinates: X, links: yt };
256
256
  }
257
- const S = g(() => {
258
- const o = zt(ge.value);
257
+ const _ = g(() => {
258
+ const o = Rt(ge.value);
259
259
  return {
260
260
  nodes: Object.keys(o.nodeCoordinates).map((l, t) => ({
261
261
  ...o.nodeCoordinates[l],
@@ -263,62 +263,62 @@ const xo = ["id"], _o = {
263
263
  })),
264
264
  links: o.links
265
265
  };
266
- }), rt = g(() => et.value), ut = g(() => tt.value), ae = g(() => e.value.style.chart.padding), it = g(() => ({
267
- width: Math.max(0, rt.value - 40 - ae.value.right - ae.value.left),
268
- height: Math.max(0, ut.value - ae.value.top - ae.value.bottom)
266
+ }), ut = g(() => tt.value), it = g(() => ot.value), ae = g(() => e.value.style.chart.padding), ct = g(() => ({
267
+ width: Math.max(0, ut.value - 40 - ae.value.right - ae.value.left),
268
+ height: Math.max(0, it.value - ae.value.top - ae.value.bottom)
269
269
  })), ne = g(() => ({
270
- width: rt.value,
271
- height: ut.value
270
+ width: ut.value,
271
+ height: it.value
272
272
  }));
273
- function Bt(o) {
273
+ function Ht(o) {
274
274
  const l = {}, t = {}, n = /* @__PURE__ */ new Set();
275
- return st.value.forEach(([s, $, Z]) => {
275
+ return rt.value.forEach(([s, $, Z]) => {
276
276
  l[s] || (l[s] = []), t[$] || (t[$] = []), l[s].push($), t[$].push(s);
277
277
  }), l[o] && l[o].forEach((s) => n.add(s)), t[o] && t[o].forEach((s) => n.add(s)), Array.from(n).concat(o);
278
278
  }
279
- const w = v(null), K = v(null), se = v(null), be = v(!1);
280
- function Ht(o, l) {
281
- j.value = [], w.value = Bt(o.name), K.value = o.name;
282
- const t = o.name, n = st.value;
279
+ const w = c(null), K = c(null), se = c(null), be = c(!1);
280
+ function Wt(o, l) {
281
+ j.value = [], w.value = Ht(o.name), K.value = o.name;
282
+ const t = o.name, n = rt.value;
283
283
  let s = 0, $ = 0, Z = [], ue = [];
284
- const ie = new Set(n.map(([c]) => c)), we = new Set(n.map(([, c]) => c)), De = Array.from(ie).filter((c) => !we.has(c)), J = n.filter(([c]) => De.includes(c)).reduce((c, [m, V, X]) => c + X, 0), D = {};
285
- S.value.nodes.forEach((c) => {
286
- D[c.name] = c.color;
287
- }), n.forEach(([c, m, V]) => {
288
- m === t && (s += V, Z.push({ source: c, value: V, color: D[c] })), c === t && ($ += V, ue.push({ target: m, value: V, color: D[m] }));
284
+ const ie = new Set(n.map(([v]) => v)), we = new Set(n.map(([, v]) => v)), Le = Array.from(ie).filter((v) => !we.has(v)), J = n.filter(([v]) => Le.includes(v)).reduce((v, [m, V, X]) => v + X, 0), D = {};
285
+ _.value.nodes.forEach((v) => {
286
+ D[v.name] = v.color;
287
+ }), n.forEach(([v, m, V]) => {
288
+ m === t && (s += V, Z.push({ source: v, value: V, color: D[v] })), v === t && ($ += V, ue.push({ target: m, value: V, color: D[m] }));
289
289
  });
290
- const $e = Math.max(s, $), Le = J > 0 ? $e / J * 100 : 0, A = {
290
+ const $e = Math.max(s, $), ze = J > 0 ? $e / J * 100 : 0, A = {
291
291
  name: t,
292
292
  inflow: s,
293
293
  outflow: $,
294
294
  from: Z,
295
295
  to: ue,
296
- percentOfTotal: Le,
296
+ percentOfTotal: ze,
297
297
  color: D[t] || "#000000"
298
298
  };
299
299
  e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: A, seriesIndex: l }), se.value = { datapoint: A }, _e.value = !0;
300
- let M = "";
300
+ let I = "";
301
301
  const ce = e.value.style.chart.tooltip.customFormat;
302
- if (be.value = !1, fo(ce))
302
+ if (be.value = !1, go(ce))
303
303
  try {
304
- const c = ce({
304
+ const v = ce({
305
305
  datapoint: A,
306
- series: S.value,
306
+ series: _.value,
307
307
  config: e.value
308
308
  });
309
- typeof c == "string" && (Se.value = c, be.value = !0);
309
+ typeof v == "string" && (Se.value = v, be.value = !0);
310
310
  } catch {
311
311
  console.warn("Custom format cannot be applied.");
312
312
  }
313
313
  if (!be.value) {
314
- const c = e.value.style.chart.tooltip.showPercentage ? `<div>${fe({
314
+ const v = e.value.style.chart.tooltip.showPercentage ? `<div>${fe({
315
315
  p: e.value.style.chart.tooltip.translations.percentOfTotal,
316
316
  v: A.percentOfTotal,
317
317
  s: "%",
318
318
  r: e.value.style.chart.tooltip.roundingPercentage
319
319
  })}</div>` : "";
320
- M += `<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:${A.color}">⏹</span>${A.name}${c}</div>`, A.from.length && (M += `<div>${e.value.style.chart.tooltip.translations.from}</div>`, A.from.forEach((m) => {
321
- M += `<div><span style="color:${m.color}">⏹←</span> ${m.source}: ${Re(
320
+ I += `<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:${A.color}">⏹</span>${A.name}${v}</div>`, A.from.length && (I += `<div>${e.value.style.chart.tooltip.translations.from}</div>`, A.from.forEach((m) => {
321
+ I += `<div><span style="color:${m.color}">⏹←</span> ${m.source}: ${We(
322
322
  e.value.style.chart.nodes.labels.formatter,
323
323
  m.value,
324
324
  fe({
@@ -328,8 +328,8 @@ const xo = ["id"], _o = {
328
328
  r: e.value.style.chart.nodes.labels.rounding
329
329
  })
330
330
  )}</div>`;
331
- })), A.to.length && (M += `<div style="margin-top:6px;">${e.value.style.chart.tooltip.translations.to}</div>`, A.to.forEach((m) => {
332
- M += `<div><span style="color:${m.color}">⏹→</span> ${m.target}: ${Re(
331
+ })), A.to.length && (I += `<div style="margin-top:6px;">${e.value.style.chart.tooltip.translations.to}</div>`, A.to.forEach((m) => {
332
+ I += `<div><span style="color:${m.color}">⏹→</span> ${m.target}: ${We(
333
333
  e.value.style.chart.nodes.labels.formatter,
334
334
  m.value,
335
335
  fe({
@@ -339,18 +339,18 @@ const xo = ["id"], _o = {
339
339
  r: e.value.style.chart.nodes.labels.rounding
340
340
  })
341
341
  )}</div>`;
342
- })), Se.value = M;
342
+ })), Se.value = I;
343
343
  }
344
344
  }
345
- function ct(o) {
345
+ function vt(o) {
346
346
  const l = se.value;
347
347
  e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: o }), w.value = null, K.value = null, _e.value = !1;
348
348
  }
349
- function Rt(o) {
349
+ function Yt(o) {
350
350
  const l = se.value;
351
351
  e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: o });
352
352
  }
353
- const vt = g(() => S.value.links.map(
353
+ const dt = g(() => _.value.links.map(
354
354
  ({ source: o, target: l, sourceColor: t, targetColor: n, value: s }) => ({
355
355
  source: o,
356
356
  target: l,
@@ -359,9 +359,9 @@ const xo = ["id"], _o = {
359
359
  value: s
360
360
  })
361
361
  ));
362
- function Pe(o = null) {
363
- to(() => {
364
- const l = vt.value.map((s, $) => [[s.source], [s.target], [s.value]]), t = [
362
+ function Ie(o = null) {
363
+ lo(() => {
364
+ const l = dt.value.map((s, $) => [[s.source], [s.target], [s.value]]), t = [
365
365
  [e.value.style.chart.title.text],
366
366
  [e.value.style.chart.title.subtitle.text],
367
367
  [
@@ -369,8 +369,8 @@ const xo = ["id"], _o = {
369
369
  [e.value.table.columnNames.target],
370
370
  [e.value.table.columnNames.value]
371
371
  ]
372
- ].concat(l), n = vo(t);
373
- o ? o(n) : ho({
372
+ ].concat(l), n = fo(t);
373
+ o ? o(n) : po({
374
374
  csvContent: n,
375
375
  title: e.value.style.chart.title.text || "vue-ui-flow"
376
376
  });
@@ -381,7 +381,7 @@ const xo = ["id"], _o = {
381
381
  e.value.table.columnNames.source,
382
382
  e.value.table.columnNames.target,
383
383
  e.value.table.columnNames.value
384
- ], l = vt.value.map((s, $) => [
384
+ ], l = dt.value.map((s, $) => [
385
385
  {
386
386
  color: s.sourceColor,
387
387
  name: s.source,
@@ -422,22 +422,22 @@ const xo = ["id"], _o = {
422
422
  config: t
423
423
  };
424
424
  });
425
- function Wt() {
426
- return S.value;
425
+ function Gt() {
426
+ return _.value;
427
427
  }
428
- function dt() {
429
- _.value.showTable = !_.value.showTable;
428
+ function ht() {
429
+ E.value.showTable = !E.value.showTable;
430
430
  }
431
- const ke = v(!1);
431
+ const ke = c(!1);
432
432
  function Me() {
433
433
  ke.value = !ke.value;
434
434
  }
435
- function ht() {
436
- _.value.showTooltip = !_.value.showTooltip;
435
+ function ft() {
436
+ E.value.showTooltip = !E.value.showTooltip;
437
437
  }
438
- const ft = g(() => {
438
+ const pt = g(() => {
439
439
  const o = new Set(
440
- S.value.nodes.map(
440
+ _.value.nodes.map(
441
441
  (l) => e.value.nodeCategories[l.name] || "__uncategorized__"
442
442
  )
443
443
  );
@@ -445,18 +445,18 @@ const xo = ["id"], _o = {
445
445
  name: l,
446
446
  color: e.value.nodeCategoryColors[l] || L[0],
447
447
  shape: "square",
448
- count: S.value.nodes.filter(
448
+ count: _.value.nodes.filter(
449
449
  (t) => (e.value.nodeCategories[t.name] || "__uncategorized__") === l
450
450
  ).length
451
451
  })).map((l, t) => ({
452
452
  ...l,
453
- segregate: () => Ie({ legend: l, i: t }),
453
+ segregate: () => De({ legend: l, i: t }),
454
454
  opacity: j.value.length ? j.value.includes(t) ? 1 : 0.5 : 1
455
455
  }));
456
- }), pt = g(
457
- () => ft.value.filter((o) => o.name !== "__uncategorized__")
458
- ), j = v([]);
459
- function Ie({ legend: o, i: l }) {
456
+ }), gt = g(
457
+ () => pt.value.filter((o) => o.name !== "__uncategorized__")
458
+ ), j = c([]);
459
+ function De({ legend: o, i: l }) {
460
460
  const t = o.name;
461
461
  if (w.value?.every(
462
462
  (n) => e.value.nodeCategories[n] === t
@@ -464,9 +464,9 @@ const xo = ["id"], _o = {
464
464
  w.value = null, K.value = null, j.value = [];
465
465
  return;
466
466
  }
467
- j.value = [l], w.value = S.value.nodes.filter((n) => e.value.nodeCategories[n.name] === t).map((n) => n.name), K.value = null;
467
+ j.value = [l], w.value = _.value.nodes.filter((n) => e.value.nodeCategories[n.name] === t).map((n) => n.name), K.value = null;
468
468
  }
469
- const Yt = g(() => ({
469
+ const Ut = g(() => ({
470
470
  cy: "flow-legend",
471
471
  backgroundColor: e.value.style.chart.legend.backgroundColor,
472
472
  color: e.value.style.chart.legend.color,
@@ -474,9 +474,9 @@ const xo = ["id"], _o = {
474
474
  paddingBottom: e.value.style.chart.legend.paddingBottom,
475
475
  fontWeight: e.value.style.chart.legend.bold ? "bold" : "normal"
476
476
  }));
477
- async function Gt({ scale: o = 2 } = {}) {
478
- if (!I.value) return;
479
- const { width: l, height: t } = I.value.getBoundingClientRect(), n = l / t, { imageUri: s, base64: $ } = await Ao({ domElement: I.value, base64: !0, img: !0, scale: o });
477
+ async function jt({ scale: o = 2 } = {}) {
478
+ if (!M.value) return;
479
+ const { width: l, height: t } = M.value.getBoundingClientRect(), n = l / t, { imageUri: s, base64: $ } = await xo({ domElement: M.value, base64: !0, img: !0, scale: o });
480
480
  return {
481
481
  imageUri: s,
482
482
  base64: $,
@@ -487,9 +487,9 @@ const xo = ["id"], _o = {
487
487
  };
488
488
  }
489
489
  const re = g(() => {
490
- const o = e.value.table.useDialog && !e.value.table.show, l = _.value.showTable;
490
+ const o = e.value.table.useDialog && !e.value.table.show, l = E.value.showTable;
491
491
  return {
492
- component: o ? Mt : Ot,
492
+ component: o ? Dt : Ft,
493
493
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
494
494
  props: o ? {
495
495
  backgroundColor: e.value.table.th.backgroundColor,
@@ -497,7 +497,7 @@ const xo = ["id"], _o = {
497
497
  headerColor: e.value.table.th.color,
498
498
  headerBg: e.value.table.th.backgroundColor,
499
499
  isFullscreen: U.value,
500
- fullscreenParent: I.value,
500
+ fullscreenParent: M.value,
501
501
  forcedWidth: Math.min(800, window.innerWidth * 0.8)
502
502
  } : {
503
503
  hideDetails: !0,
@@ -516,46 +516,50 @@ const xo = ["id"], _o = {
516
516
  }
517
517
  };
518
518
  });
519
- return Te(() => _.value.showTable, (o) => {
519
+ Te(() => E.value.showTable, (o) => {
520
520
  e.value.table.show || (o && e.value.table.useDialog && le.value ? le.value.open() : "close" in le.value && le.value.close());
521
- }), xt({
522
- getData: Wt,
523
- getImage: Gt,
524
- generateCsv: Pe,
525
- generateImage: nt,
526
- generatePdf: at,
527
- toggleTable: dt,
521
+ });
522
+ function mt() {
523
+ E.value.showTable = !1, Oe.value && Oe.value.setTableIconState(!1);
524
+ }
525
+ return St({
526
+ getData: Gt,
527
+ getImage: jt,
528
+ generateCsv: Ie,
529
+ generateImage: st,
530
+ generatePdf: nt,
531
+ toggleTable: ht,
528
532
  toggleAnnotator: Me,
529
- toggleTooltip: ht,
530
- drillCategory: Ie,
531
- unselectNode: ct,
532
- toggleFullscreen: qe
533
+ toggleTooltip: ft,
534
+ drillCategory: De,
535
+ unselectNode: vt,
536
+ toggleFullscreen: Ke
533
537
  }), (o, l) => (i(), p("div", {
534
538
  ref_key: "flowChart",
535
- ref: I,
536
- class: bt(`vue-ui-flow ${U.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
539
+ ref: M,
540
+ class: kt(`vue-ui-flow ${U.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
537
541
  style: W(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
538
542
  id: `flow_${G.value}`,
539
- onMouseenter: l[4] || (l[4] = () => r(Ze)(!0)),
540
- onMouseleave: l[5] || (l[5] = () => r(Ze)(!1))
543
+ onMouseenter: l[2] || (l[2] = () => r(Je)(!0)),
544
+ onMouseleave: l[3] || (l[3] = () => r(Je)(!1))
541
545
  }, [
542
- e.value.userOptions.buttons.annotator ? (i(), q(r(Ft), {
546
+ e.value.userOptions.buttons.annotator ? (i(), q(r(Pt), {
543
547
  key: 0,
544
- svgRef: r(Qe),
548
+ svgRef: r(et),
545
549
  backgroundColor: e.value.style.chart.backgroundColor,
546
550
  color: e.value.style.chart.color,
547
551
  active: ke.value,
548
552
  onClose: Me
549
553
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : T("", !0),
550
- Lt.value ? (i(), p("div", _o, null, 512)) : T("", !0),
554
+ Bt.value ? (i(), p("div", Oo, null, 512)) : T("", !0),
551
555
  e.value.style.chart.title.text ? (i(), p("div", {
552
556
  key: 2,
553
557
  ref_key: "chartTitle",
554
- ref: Ue,
558
+ ref: je,
555
559
  style: "width:100%;background:transparent;padding-bottom:24px"
556
560
  }, [
557
- (i(), q($o, {
558
- key: `title_${Ye.value}`,
561
+ (i(), q(To, {
562
+ key: `title_${Ge.value}`,
559
563
  config: {
560
564
  title: {
561
565
  cy: "flow-title",
@@ -570,14 +574,15 @@ const xo = ["id"], _o = {
570
574
  ], 512)) : T("", !0),
571
575
  Y("div", {
572
576
  id: `legend-top-${G.value}`
573
- }, null, 8, So),
574
- e.value.userOptions.show && Xe.value && (r(Je) || r(Fe)) ? (i(), q(r(Et), {
575
- ref: "details",
576
- key: `user_option_${We.value}`,
577
+ }, null, 8, No),
578
+ e.value.userOptions.show && qe.value && (r(Qe) || r(Ee)) ? (i(), q(r(It), {
579
+ ref_key: "userOptionsRef",
580
+ ref: Oe,
581
+ key: `user_option_${Ye.value}`,
577
582
  backgroundColor: e.value.style.chart.backgroundColor,
578
583
  color: e.value.style.chart.color,
579
- isPrinting: r(ot),
580
- isImaging: r(lt),
584
+ isPrinting: r(lt),
585
+ isImaging: r(at),
581
586
  uid: G.value,
582
587
  hasPdf: e.value.userOptions.buttons.pdf,
583
588
  hasXls: e.value.userOptions.buttons.csv,
@@ -587,24 +592,25 @@ const xo = ["id"], _o = {
587
592
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
588
593
  isFullscreen: U.value,
589
594
  titles: { ...e.value.userOptions.buttonTitles },
590
- chartElement: I.value,
595
+ chartElement: M.value,
591
596
  position: e.value.userOptions.position,
592
597
  hasAnnotator: e.value.userOptions.buttons.annotator,
593
598
  printScale: e.value.userOptions.print.scale,
594
599
  isAnnotation: ke.value,
595
600
  hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
596
- isTooltip: _.value.showTooltip,
597
- onToggleTooltip: ht,
598
- onToggleFullscreen: qe,
599
- onGeneratePdf: r(at),
600
- onGenerateCsv: Pe,
601
- onGenerateImage: r(nt),
602
- onToggleTable: dt,
601
+ isTooltip: E.value.showTooltip,
602
+ tableDialog: e.value.table.useDialog,
603
+ onToggleTooltip: ft,
604
+ onToggleFullscreen: Ke,
605
+ onGeneratePdf: r(nt),
606
+ onGenerateCsv: Ie,
607
+ onGenerateImage: r(st),
608
+ onToggleTable: ht,
603
609
  onToggleAnnotator: Me,
604
610
  style: W({
605
- visibility: r(Je) ? r(Fe) ? "visible" : "hidden" : "visible"
611
+ visibility: r(Qe) ? r(Ee) ? "visible" : "hidden" : "visible"
606
612
  })
607
- }, Ct({ _: 2 }, [
613
+ }, wt({ _: 2 }, [
608
614
  o.$slots.menuIcon ? {
609
615
  name: "menuIcon",
610
616
  fn: b(({ isOpen: t, color: n }) => [
@@ -661,13 +667,13 @@ const xo = ["id"], _o = {
661
667
  ]),
662
668
  key: "7"
663
669
  } : void 0
664
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "callbacks", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "printScale", "isAnnotation", "hasTooltip", "isTooltip", "onGeneratePdf", "onGenerateImage", "style"])) : T("", !0),
670
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "callbacks", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "printScale", "isAnnotation", "hasTooltip", "isTooltip", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : T("", !0),
665
671
  (i(), p("svg", {
666
672
  ref_key: "svgRef",
667
- ref: Qe,
668
- xmlns: r(io),
673
+ ref: et,
674
+ xmlns: r(vo),
669
675
  viewBox: `0 0 ${ne.value.width} ${ne.value.height}`,
670
- class: bt({
676
+ class: kt({
671
677
  "vue-data-ui-fullscreen--on": U.value,
672
678
  "vue-data-ui-fulscreen--off": !U.value
673
679
  }),
@@ -678,7 +684,7 @@ const xo = ["id"], _o = {
678
684
  color: e.value.style.chart.color
679
685
  })
680
686
  }, [
681
- xe(r(Pt)),
687
+ xe(r(Mt)),
682
688
  o.$slots["chart-background"] ? (i(), p("foreignObject", {
683
689
  key: 0,
684
690
  x: 0,
@@ -690,9 +696,9 @@ const xo = ["id"], _o = {
690
696
  }
691
697
  }, [
692
698
  k(o.$slots, "chart-background", {}, void 0, !0)
693
- ], 8, No)) : T("", !0),
699
+ ], 8, Eo)) : T("", !0),
694
700
  Y("defs", null, [
695
- (i(!0), p(de, null, he(S.value.links, (t, n) => (i(), p("linearGradient", {
701
+ (i(!0), p(de, null, he(_.value.links, (t, n) => (i(), p("linearGradient", {
696
702
  id: t.id,
697
703
  x1: "0%",
698
704
  y1: "0%",
@@ -702,14 +708,14 @@ const xo = ["id"], _o = {
702
708
  Y("stop", {
703
709
  offset: "0%",
704
710
  "stop-color": t.sourceColor
705
- }, null, 8, Eo),
711
+ }, null, 8, Io),
706
712
  Y("stop", {
707
713
  offset: "100%",
708
714
  "stop-color": t.targetColor
709
- }, null, 8, Po)
710
- ], 8, Fo))), 256))
715
+ }, null, 8, Mo)
716
+ ], 8, Po))), 256))
711
717
  ]),
712
- (i(!0), p(de, null, he(S.value.links, (t) => (i(), p("path", {
718
+ (i(!0), p(de, null, he(_.value.links, (t) => (i(), p("path", {
713
719
  class: "vue-ui-flow-link",
714
720
  d: t.path,
715
721
  "stroke-linejoin": "round",
@@ -720,8 +726,8 @@ const xo = ["id"], _o = {
720
726
  style: W(`
721
727
  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}
722
728
  `)
723
- }, null, 12, Mo))), 256)),
724
- (i(!0), p(de, null, he(S.value.nodes, (t, n) => (i(), p("rect", {
729
+ }, null, 12, Do))), 256)),
730
+ (i(!0), p(de, null, he(_.value.nodes, (t, n) => (i(), p("rect", {
725
731
  class: "vue-ui-flow-node",
726
732
  x: t.x,
727
733
  y: r(x)(t.absoluteY) + e.value.style.chart.padding.top,
@@ -730,35 +736,35 @@ const xo = ["id"], _o = {
730
736
  fill: t.color,
731
737
  stroke: e.value.style.chart.nodes.stroke,
732
738
  "stroke-width": e.value.style.chart.nodes.strokeWidth,
733
- onMouseenter: (s) => Ht(t, n),
734
- onMouseleave: (s) => ct(n),
739
+ onMouseenter: (s) => Wt(t, n),
740
+ onMouseleave: (s) => vt(n),
735
741
  style: W(`opacity:${w.value ? w.value.includes(t.name) ? 1 : 0.3 : 1}`),
736
- onClick: (s) => Rt(n)
737
- }, null, 44, Io))), 256)),
738
- e.value.style.chart.nodes.labels.show ? (i(), p("g", Do, [
739
- (i(!0), p(de, null, he(S.value.nodes, (t, n) => (i(), p("text", {
742
+ onClick: (s) => Yt(n)
743
+ }, null, 44, Lo))), 256)),
744
+ e.value.style.chart.nodes.labels.show ? (i(), p("g", zo, [
745
+ (i(!0), p(de, null, he(_.value.nodes, (t, n) => (i(), p("text", {
740
746
  x: t.x + ye.value / 2,
741
747
  y: r(x)(
742
748
  t.absoluteY + t.height / 2 - e.value.style.chart.nodes.labels.fontSize / 4
743
749
  ) + e.value.style.chart.padding.top,
744
750
  "font-size": e.value.style.chart.nodes.labels.fontSize,
745
- fill: r($t)(t.color),
751
+ fill: r(Tt)(t.color),
746
752
  "text-anchor": "middle",
747
753
  style: W(`pointer-events: none; opacity:${w.value ? w.value.includes(t.name) ? 1 : 0 : 1}`)
748
- }, te(e.value.style.chart.nodes.labels.abbreviation.use ? r(co)({
754
+ }, te(e.value.style.chart.nodes.labels.abbreviation.use ? r(ho)({
749
755
  source: t.name,
750
756
  length: e.value.style.chart.nodes.labels.abbreviation.length
751
- }) : t.name), 13, Lo))), 256)),
752
- (i(!0), p(de, null, he(S.value.nodes, (t, n) => (i(), p("text", {
757
+ }) : t.name), 13, Bo))), 256)),
758
+ (i(!0), p(de, null, he(_.value.nodes, (t, n) => (i(), p("text", {
753
759
  x: t.x + ye.value / 2,
754
760
  y: r(x)(
755
761
  t.absoluteY + t.height / 2 + e.value.style.chart.nodes.labels.fontSize
756
762
  ) + e.value.style.chart.padding.top,
757
763
  "font-size": e.value.style.chart.nodes.labels.fontSize,
758
- fill: r($t)(t.color),
764
+ fill: r(Tt)(t.color),
759
765
  "text-anchor": "middle",
760
766
  style: W(`pointer-events: none; opacity:${w.value ? w.value.includes(t.name) ? 1 : 0 : 1}`)
761
- }, te(r(Re)(
767
+ }, te(r(We)(
762
768
  e.value.style.chart.nodes.labels.formatter,
763
769
  t.value,
764
770
  r(fe)({
@@ -768,52 +774,52 @@ const xo = ["id"], _o = {
768
774
  r: e.value.style.chart.nodes.labels.rounding
769
775
  }),
770
776
  { datapoint: t, seriesIndex: n }
771
- )), 13, zo))), 256))
777
+ )), 13, Ro))), 256))
772
778
  ])) : T("", !0),
773
779
  k(o.$slots, "svg", { svg: ne.value }, void 0, !0)
774
- ], 14, Oo)),
775
- o.$slots.watermark ? (i(), p("div", Bo, [
776
- k(o.$slots, "watermark", Q(ee({ isPrinting: r(ot) || r(lt) })), void 0, !0)
780
+ ], 14, Fo)),
781
+ o.$slots.watermark ? (i(), p("div", Ho, [
782
+ k(o.$slots, "watermark", Q(ee({ isPrinting: r(lt) || r(at) })), void 0, !0)
777
783
  ])) : T("", !0),
778
784
  Y("div", {
779
785
  id: `legend-bottom-${G.value}`
780
- }, null, 8, Ho),
781
- Ve.value ? (i(), q(Jt, {
786
+ }, null, 8, Wo),
787
+ Xe.value ? (i(), q(eo, {
782
788
  key: 5,
783
789
  to: e.value.style.chart.legend.position === "top" ? `#legend-top-${G.value}` : `#legend-bottom-${G.value}`
784
790
  }, [
785
791
  Y("div", {
786
792
  ref_key: "chartLegend",
787
- ref: Ge
793
+ ref: Ue
788
794
  }, [
789
- e.value.style.chart.legend.show && pt.value.length ? (i(), q(wo, {
795
+ e.value.style.chart.legend.show && gt.value.length ? (i(), q(Ao, {
790
796
  key: 0,
791
- legendSet: pt.value,
792
- config: Yt.value,
793
- onClickMarker: l[0] || (l[0] = (t) => Ie(t))
797
+ legendSet: gt.value,
798
+ config: Ut.value,
799
+ onClickMarker: l[0] || (l[0] = (t) => De(t))
794
800
  }, {
795
801
  item: b(({ legend: t, index: n }) => [
796
- r(Oe) ? T("", !0) : (i(), p("div", {
802
+ r(Ne) ? T("", !0) : (i(), p("div", {
797
803
  key: 0,
798
804
  onClick: (s) => t.segregate(),
799
805
  style: W(`opacity:${j.value.length ? j.value.includes(n) ? 1 : 0.5 : 1}`)
800
- }, te(t.name) + " (" + te(t.count) + ") ", 13, Ro))
806
+ }, te(t.name) + " (" + te(t.count) + ") ", 13, Yo))
801
807
  ]),
802
808
  _: 1
803
809
  }, 8, ["legendSet", "config"])) : T("", !0),
804
- k(o.$slots, "legend", { legend: ft.value }, void 0, !0)
810
+ k(o.$slots, "legend", { legend: pt.value }, void 0, !0)
805
811
  ], 512)
806
812
  ], 8, ["to"])) : T("", !0),
807
813
  o.$slots.source ? (i(), p("div", {
808
814
  key: 6,
809
815
  ref_key: "source",
810
- ref: je,
816
+ ref: Ve,
811
817
  dir: "auto"
812
818
  }, [
813
819
  k(o.$slots, "source", {}, void 0, !0)
814
820
  ], 512)) : T("", !0),
815
- xe(r(_t), {
816
- show: _.value.showTooltip && _e.value,
821
+ xe(r(Ot), {
822
+ show: E.value.showTooltip && _e.value,
817
823
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
818
824
  color: e.value.style.chart.tooltip.color,
819
825
  fontSize: e.value.style.chart.tooltip.fontSize,
@@ -823,7 +829,7 @@ const xo = ["id"], _o = {
823
829
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
824
830
  position: e.value.style.chart.tooltip.position,
825
831
  offsetY: e.value.style.chart.tooltip.offsetY,
826
- parent: I.value,
832
+ parent: M.value,
827
833
  content: Se.value,
828
834
  isCustom: be.value,
829
835
  isFullscreen: U.value,
@@ -838,29 +844,29 @@ const xo = ["id"], _o = {
838
844
  ]),
839
845
  _: 3
840
846
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter"]),
841
- Xe.value ? (i(), q(Qt(re.value.component), eo({ key: 7 }, re.value.props, {
847
+ qe.value ? (i(), q(to(re.value.component), oo({ key: 7 }, re.value.props, {
842
848
  ref_key: "tableUnit",
843
849
  ref: le,
844
- onClose: l[3] || (l[3] = (t) => _.value.showTable = !1)
845
- }), Ct({
850
+ onClose: mt
851
+ }), wt({
846
852
  content: b(() => [
847
- xe(r(Nt), {
853
+ xe(r(Et), {
848
854
  colNames: Ce.value.colNames,
849
855
  head: Ce.value.head,
850
856
  body: Ce.value.body,
851
857
  config: Ce.value.config,
852
858
  title: e.value.table.useDialog ? "" : re.value.title,
853
859
  withCloseButton: !e.value.table.useDialog,
854
- onClose: l[2] || (l[2] = (t) => _.value.showTable = !1)
860
+ onClose: mt
855
861
  }, {
856
862
  th: b(({ th: t }) => [
857
863
  Y("div", {
858
864
  innerHTML: t,
859
865
  style: { display: "flex", "align-items": "center" }
860
- }, null, 8, Wo)
866
+ }, null, 8, Go)
861
867
  ]),
862
868
  td: b(({ td: t }) => [
863
- kt(te(t.name || t), 1)
869
+ $t(te(t.name || t), 1)
864
870
  ]),
865
871
  _: 1
866
872
  }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"])
@@ -870,7 +876,7 @@ const xo = ["id"], _o = {
870
876
  e.value.table.useDialog ? {
871
877
  name: "title",
872
878
  fn: b(() => [
873
- kt(te(re.value.title), 1)
879
+ $t(te(re.value.title), 1)
874
880
  ]),
875
881
  key: "0"
876
882
  } : void 0,
@@ -880,9 +886,9 @@ const xo = ["id"], _o = {
880
886
  Y("button", {
881
887
  tabindex: "0",
882
888
  class: "vue-ui-user-options-button",
883
- onClick: l[1] || (l[1] = (t) => Pe(e.value.userOptions.callbacks.csv))
889
+ onClick: l[1] || (l[1] = (t) => Ie(e.value.userOptions.callbacks.csv))
884
890
  }, [
885
- xe(r(St), {
891
+ xe(r(Nt), {
886
892
  name: "excel",
887
893
  stroke: re.value.props.color
888
894
  }, null, 8, ["stroke"])
@@ -891,10 +897,10 @@ const xo = ["id"], _o = {
891
897
  key: "1"
892
898
  } : void 0
893
899
  ]), 1040)) : T("", !0),
894
- r(Oe) ? (i(), q(bo, { key: 8 })) : T("", !0)
895
- ], 46, xo));
900
+ r(Ne) ? (i(), q(ko, { key: 8 })) : T("", !0)
901
+ ], 46, So));
896
902
  }
897
- }, ol = /* @__PURE__ */ To(Yo, [["__scopeId", "data-v-3a106da6"]]);
903
+ }, al = /* @__PURE__ */ _o(Uo, [["__scopeId", "data-v-f6c24537"]]);
898
904
  export {
899
- ol as default
905
+ al as default
900
906
  };