vue-data-ui 2.12.6 → 2.12.7-beta.0

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 (109) hide show
  1. package/dist/{Arrow-Bd9ZVBnX.js → Arrow-CmqjRRUl.js} +1 -1
  2. package/dist/BaseDraggableDialog-BMlyvt7E.js +180 -0
  3. package/dist/{BaseIcon-CNbwMh_-.js → BaseIcon-CZdMutjs.js} +1 -1
  4. package/dist/{ColorPicker-B_FoQwtO.js → ColorPicker-DvVKgyAl.js} +23 -24
  5. package/dist/{DataTable-Rajdtaf6.js → DataTable-Cv9CIz-a.js} +11 -11
  6. package/dist/{Legend-BxtDQCIv.js → Legend-DFunFf8i.js} +8 -8
  7. package/dist/NonSvgPenAndPaper-pVuHj6_A.js +467 -0
  8. package/dist/PackageVersion-CLY-udAA.js +10 -0
  9. package/dist/{PenAndPaper-BkP3J-Ft.js → PenAndPaper-B9na2mbr.js} +8 -10
  10. package/dist/RecursiveCircles-Dn3TGoL6.js +96 -0
  11. package/dist/RecursiveLabels-NTMB9w5C.js +49 -0
  12. package/dist/RecursiveLinks-ld_gDZH4.js +64 -0
  13. package/dist/{Shape-C69a0f29.js → Shape-D3w9qas1.js} +2 -2
  14. package/dist/{Slicer-7qFdY-bT.js → Slicer-ncY8krrM.js} +2 -2
  15. package/dist/SparkTooltip-CwThutH2.js +68 -0
  16. package/dist/{Title-CzaCeCOm.js → Title-B5qqUI3M.js} +2 -2
  17. package/dist/Tooltip-C9rxJ-Ru.js +149 -0
  18. package/dist/{usePrinter-C5bLp34h.js → UserOptions-Ddy6CuLC.js} +172 -231
  19. package/dist/{dom-to-png-Bm0D0yPL.js → dom-to-png-DDlooC9r.js} +1 -1
  20. package/dist/{img-BN9AzqUr.js → img-m9g7lR5d.js} +1 -1
  21. package/dist/{index-BFzQMJda.js → index-BiHmNd1-.js} +21 -21
  22. package/dist/{pdf-uTbs813M.js → pdf-BqM953uL.js} +1 -1
  23. package/dist/style.css +1 -1
  24. package/dist/useChartAccessibility-9icAAmYg.js +12 -0
  25. package/dist/useMouse-AicQS8Vf.js +13 -0
  26. package/dist/{useNestedProp-v7KPpwuP.js → useNestedProp-tRqS0ZAM.js} +1 -1
  27. package/dist/{usePanZoom-CUkkqW81.js → usePanZoom-BQMvRXEQ.js} +16 -17
  28. package/dist/usePrinter-CRCbl1WG.js +53 -0
  29. package/dist/vClickOutside-C6WiFswA.js +13 -0
  30. package/dist/{vue-data-ui-D1k8FeRp.js → vue-data-ui-D9uTDt73.js} +63 -63
  31. package/dist/vue-data-ui.js +19 -19
  32. package/dist/{vue-ui-3d-bar-DoklA4DT.js → vue-ui-3d-bar-rtuSc8FS.js} +397 -402
  33. package/dist/{vue-ui-accordion-BUz4JIIX.js → vue-ui-accordion-CmCs2yR2.js} +3 -3
  34. package/dist/{vue-ui-age-pyramid-4kyBq-Dy.js → vue-ui-age-pyramid-BrzMSiyu.js} +215 -218
  35. package/dist/{vue-ui-annotator-Bq1ZeFfb.js → vue-ui-annotator-CYxmTpf6.js} +2 -2
  36. package/dist/{vue-ui-bullet-DU10avvA.js → vue-ui-bullet-D25qNQfb.js} +137 -140
  37. package/dist/{vue-ui-candlestick-BI1t3flz.js → vue-ui-candlestick-BuerNa-r.js} +265 -271
  38. package/dist/{vue-ui-carousel-table-VowLf_oc.js → vue-ui-carousel-table-aN0HLsOO.js} +137 -137
  39. package/dist/{vue-ui-chestnut-BHjV3d94.js → vue-ui-chestnut-oUj2ocsZ.js} +397 -400
  40. package/dist/{vue-ui-chord-CPr7r-2_.js → vue-ui-chord-C4evlXYB.js} +356 -365
  41. package/dist/vue-ui-circle-pack-CWrNiKTY.js +656 -0
  42. package/dist/{vue-ui-cursor-C9teAbVI.js → vue-ui-cursor-DgpSttlt.js} +2 -2
  43. package/dist/{vue-ui-dashboard-CwDYB8tP.js → vue-ui-dashboard-BN2ha1Eh.js} +62 -62
  44. package/dist/{vue-ui-digits-CHmkL0hn.js → vue-ui-digits-BhjAxXgm.js} +2 -2
  45. package/dist/vue-ui-donut-D3_z61HI.js +1291 -0
  46. package/dist/vue-ui-donut-evolution-oKtmZPx4.js +864 -0
  47. package/dist/{vue-ui-dumbbell-DTKLLd1N.js → vue-ui-dumbbell-C8Lokx-F.js} +265 -270
  48. package/dist/{vue-ui-flow-BLBhsU2n.js → vue-ui-flow-BVRkH0PS.js} +291 -300
  49. package/dist/{vue-ui-funnel-CIrWdeBk.js → vue-ui-funnel-DFxcmAB5.js} +216 -219
  50. package/dist/{vue-ui-galaxy-ByhKyIV4.js → vue-ui-galaxy-CGE0hlBC.js} +227 -235
  51. package/dist/{vue-ui-gauge-BbfBMpng.js → vue-ui-gauge-B48eMvOR.js} +240 -243
  52. package/dist/{vue-ui-gizmo-BM-_QfHM.js → vue-ui-gizmo-zTKNpjvv.js} +57 -58
  53. package/dist/{vue-ui-heatmap-BA4z4hsw.js → vue-ui-heatmap-UNfTt8SM.js} +239 -242
  54. package/dist/{vue-ui-history-plot-8vM_IUy8.js → vue-ui-history-plot-CbCWmvtg.js} +257 -262
  55. package/dist/{vue-ui-kpi-D57QLK6A.js → vue-ui-kpi-Drf_lrlh.js} +29 -30
  56. package/dist/{vue-ui-mini-loader-CR4c-xJQ.js → vue-ui-mini-loader-DU3G6BVs.js} +2 -2
  57. package/dist/vue-ui-molecule-B5MOXYEA.js +580 -0
  58. package/dist/{vue-ui-mood-radar-Brc9cxoD.js → vue-ui-mood-radar-CC_CVLvn.js} +180 -186
  59. package/dist/{vue-ui-nested-donuts-W3Z5F--L.js → vue-ui-nested-donuts-D_H962kk.js} +366 -374
  60. package/dist/{vue-ui-onion-BNBlGNlF.js → vue-ui-onion-P8k6T724.js} +252 -258
  61. package/dist/{vue-ui-parallel-coordinate-plot-B5G3jyvg.js → vue-ui-parallel-coordinate-plot-B5Los0vX.js} +296 -303
  62. package/dist/{vue-ui-quadrant-CUy9mVIA.js → vue-ui-quadrant-B3wzCTxK.js} +402 -409
  63. package/dist/{vue-ui-quick-chart-D4_8mRXU.js → vue-ui-quick-chart-oucj6hXk.js} +611 -616
  64. package/dist/{vue-ui-radar-BUk56jGL.js → vue-ui-radar-Cjqlyu6d.js} +270 -277
  65. package/dist/{vue-ui-rating-B9TQl5KP.js → vue-ui-rating-gryk_h_6.js} +2 -2
  66. package/dist/vue-ui-relation-circle-ielvWC-1.js +525 -0
  67. package/dist/{vue-ui-ridgeline-Cl06bGom.js → vue-ui-ridgeline-Dydqo68b.js} +321 -326
  68. package/dist/{vue-ui-rings-B6bpFlFp.js → vue-ui-rings-BRBXektJ.js} +262 -269
  69. package/dist/{vue-ui-scatter--WUuVw5G.js → vue-ui-scatter-Df-BM7Ts.js} +372 -379
  70. package/dist/{vue-ui-skeleton-B_YI7Yuc.js → vue-ui-skeleton-CbYQYRvD.js} +19 -19
  71. package/dist/{vue-ui-smiley-Bbam2fDz.js → vue-ui-smiley-BfHaQMaW.js} +2 -2
  72. package/dist/{vue-ui-spark-trend-DavXuwGt.js → vue-ui-spark-trend-z3fUChs_.js} +114 -117
  73. package/dist/{vue-ui-sparkbar-9N1FU9-J.js → vue-ui-sparkbar-ChtFIugH.js} +104 -106
  74. package/dist/{vue-ui-sparkgauge-_9ntq4EK.js → vue-ui-sparkgauge-DtpODCww.js} +72 -74
  75. package/dist/{vue-ui-sparkhistogram-BEzOV4HV.js → vue-ui-sparkhistogram-C3XnYiXI.js} +83 -86
  76. package/dist/vue-ui-sparkline-CoL8jiX8.js +459 -0
  77. package/dist/{vue-ui-sparkstackbar-BSWcs3v0.js → vue-ui-sparkstackbar-CYk3mZJH.js} +102 -105
  78. package/dist/{vue-ui-stackbar-gG5BLlAr.js → vue-ui-stackbar-D9LGbuG5.js} +433 -437
  79. package/dist/{vue-ui-strip-plot-BJouRmxh.js → vue-ui-strip-plot-C5r1Ee2R.js} +245 -252
  80. package/dist/{vue-ui-table-D9Ry8s4N.js → vue-ui-table-DBaT_TfA.js} +3 -3
  81. package/dist/{vue-ui-table-heatmap-Bizzpi31.js → vue-ui-table-heatmap-CYW4YfKN.js} +93 -94
  82. package/dist/{vue-ui-table-sparkline-Dg54Ovs2.js → vue-ui-table-sparkline-Di0MYR4p.js} +212 -212
  83. package/dist/{vue-ui-thermometer-6MSdF_Gm.js → vue-ui-thermometer-BF1btHY2.js} +154 -157
  84. package/dist/{vue-ui-timer-ByaKokk8.js → vue-ui-timer-D9FfRWN5.js} +180 -181
  85. package/dist/vue-ui-tiremarks-CQ0lk8fJ.js +341 -0
  86. package/dist/vue-ui-treemap-1Lx7YRtc.js +947 -0
  87. package/dist/{vue-ui-vertical-bar-CE4oBwBv.js → vue-ui-vertical-bar-DdVVQ1ED.js} +397 -403
  88. package/dist/{vue-ui-waffle-DNEEnY_G.js → vue-ui-waffle-BhnuPiRD.js} +317 -324
  89. package/dist/vue-ui-wheel-BIjJ0fg8.js +335 -0
  90. package/dist/vue-ui-word-cloud-3-r8HwO_.js +642 -0
  91. package/dist/{vue-ui-world-Brhq17TE.js → vue-ui-world-CPIGEswq.js} +430 -442
  92. package/dist/{vue-ui-xy-K2G7QQxG.js → vue-ui-xy-9e_epIN4.js} +845 -846
  93. package/dist/vue-ui-xy-canvas-DcGgQ7s4.js +1206 -0
  94. package/package.json +6 -6
  95. package/dist/BaseDraggableDialog-Bzwlfmy1.js +0 -186
  96. package/dist/PackageVersion-BjrblLPQ.js +0 -10
  97. package/dist/Tooltip-CWmRmhJr.js +0 -158
  98. package/dist/useChartAccessibility-BWojgys7.js +0 -13
  99. package/dist/vue-ui-circle-pack-D_jYpsuD.js +0 -659
  100. package/dist/vue-ui-donut-WRUDvvZa.js +0 -1292
  101. package/dist/vue-ui-donut-evolution-BQxV5D_L.js +0 -871
  102. package/dist/vue-ui-molecule-Bq69N7rC.js +0 -782
  103. package/dist/vue-ui-relation-circle-T6aTibIU.js +0 -528
  104. package/dist/vue-ui-sparkline-D__GCUAz.js +0 -519
  105. package/dist/vue-ui-tiremarks-Z8pjUT1g.js +0 -344
  106. package/dist/vue-ui-treemap-pRJ3be5l.js +0 -956
  107. package/dist/vue-ui-wheel-DWPYZxdT.js +0 -338
  108. package/dist/vue-ui-word-cloud-DAR7R8F8.js +0 -648
  109. package/dist/vue-ui-xy-canvas-ml44sPHS.js +0 -1673
@@ -1,34 +1,28 @@
1
- import { computed as g, onMounted as et, ref as b, watch as tt, createElementBlock as m, openBlock as c, unref as d, normalizeStyle as P, normalizeClass as Ae, createBlock as Y, createCommentVNode as T, createElementVNode as B, createVNode as ce, createSlots as ot, withCtx as w, renderSlot as k, normalizeProps as D, guardReactiveProps as R, Fragment as U, renderList as V, toDisplayString as W, createTextVNode as lt, nextTick as at } from "vue";
2
- import { u as nt, o as st, e as rt, c as de, t as ut, p as S, a as it, b as ct, v as $, d as dt, f as j, X as vt, G as Me, K as ft, i as ve, q as ht, r as pt, x as gt } from "./index-BFzQMJda.js";
3
- import { _ as mt } from "./Title-CzaCeCOm.js";
4
- import { u as yt, U as bt } from "./usePrinter-C5bLp34h.js";
5
- import { D as kt } from "./DataTable-Rajdtaf6.js";
6
- import Ct from "./vue-ui-accordion-BUz4JIIX.js";
7
- import wt from "./vue-ui-skeleton-B_YI7Yuc.js";
8
- import { u as He } from "./useNestedProp-v7KPpwuP.js";
9
- import { _ as $t } from "./PackageVersion-BjrblLPQ.js";
10
- import { _ as _t } from "./PenAndPaper-BkP3J-Ft.js";
11
- import { u as xt } from "./useUserOptionState-BIvW1Kz7.js";
12
- import { u as Tt } from "./useChartAccessibility-BWojgys7.js";
13
- import { _ as Nt } from "./Tooltip-CWmRmhJr.js";
14
- import { L as Ot } from "./Legend-BxtDQCIv.js";
15
- import { _ as St } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
- const Ft = ["id"], Lt = {
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 G, 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, G as He, K as Ct, i as fe, q as wt, r as $t, x as Tt } from "./index-BiHmNd1-.js";
3
+ import { u as Ye } from "./useNestedProp-tRqS0ZAM.js";
4
+ import { u as xt } from "./usePrinter-CRCbl1WG.js";
5
+ import { u as _t } from "./useUserOptionState-BIvW1Kz7.js";
6
+ import { u as Nt } from "./useChartAccessibility-9icAAmYg.js";
7
+ import Ot from "./Legend-DFunFf8i.js";
8
+ import St from "./Title-B5qqUI3M.js";
9
+ import { _ as Ft } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
+ const Pt = ["id"], Lt = {
17
11
  key: 1,
18
12
  ref: "noTitle",
19
13
  class: "vue-data-ui-no-title-space",
20
14
  style: "height:36px; width: 100%;background:transparent"
21
- }, Pt = {
15
+ }, At = {
22
16
  key: 2,
23
17
  style: "width:100%;background:transparent;padding-bottom:24px"
24
- }, It = ["xmlns", "viewBox"], Et = ["width", "height"], zt = ["id"], At = ["stop-color"], Mt = ["stop-color"], Ht = ["d", "fill", "stroke", "stroke-width"], Yt = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "onMouseenter"], Bt = ["x", "y", "font-size", "fill"], Dt = ["x", "y", "font-size", "fill"], Rt = {
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"], Gt = {
25
19
  key: 4,
26
20
  class: "vue-data-ui-watermark"
27
- }, Gt = ["onClick"], Ut = {
21
+ }, Vt = ["onClick"], Ut = {
28
22
  key: 6,
29
23
  ref: "source",
30
24
  dir: "auto"
31
- }, Vt = ["innerHTML"], Wt = {
25
+ }, Wt = ["innerHTML"], jt = {
32
26
  __name: "vue-ui-flow",
33
27
  props: {
34
28
  config: {
@@ -44,66 +38,66 @@ const Ft = ["id"], Lt = {
44
38
  }
45
39
  }
46
40
  },
47
- setup(Ye, { expose: Be }) {
48
- const { vue_ui_flow: De } = nt(), _ = Ye, Q = g(() => !!_.dataset && _.dataset.length);
49
- et(() => {
50
- fe();
41
+ setup(Be, { expose: De }) {
42
+ const Re = E(() => import("./vue-ui-accordion-CmCs2yR2.js")), Ge = E(() => import("./DataTable-Cv9CIz-a.js")), Ve = E(() => import("./PackageVersion-CLY-udAA.js")), Ue = E(() => import("./PenAndPaper-B9na2mbr.js")), We = E(() => import("./vue-ui-skeleton-CbYQYRvD.js")), je = E(() => import("./Tooltip-C9rxJ-Ru.js")), Xe = E(() => import("./UserOptions-Ddy6CuLC.js")), { vue_ui_flow: qe } = ft(), T = Be, ee = p(() => !!T.dataset && T.dataset.length);
43
+ ut(() => {
44
+ he();
51
45
  });
52
- function fe() {
53
- st(_.dataset) && rt({
46
+ function he() {
47
+ ht(T.dataset) && pt({
54
48
  componentName: "VueUiFlow",
55
49
  type: "dataset"
56
50
  });
57
51
  }
58
- const ee = b(de()), te = b(null), he = b(0), pe = b(0), oe = b(!1), le = b(""), Re = b(null), z = b(!1);
59
- function Ge(t) {
60
- z.value = t, he.value += 1;
52
+ const te = y(ve()), oe = y(null), pe = y(0), ge = y(0), le = y(!1), ae = y(""), Ke = y(null), z = y(!1);
53
+ function Ze(t) {
54
+ z.value = t, pe.value += 1;
61
55
  }
62
- const e = g({
63
- get: () => be(),
56
+ const e = p({
57
+ get: () => ke(),
64
58
  set: (t) => t
65
- }), { userOptionsVisible: ae, setUserOptionsVisibility: ge, keepUserOptionState: me } = xt({ config: e.value }), { svgRef: ye } = Tt({
59
+ }), { userOptionsVisible: ne, setUserOptionsVisibility: me, keepUserOptionState: ye } = _t({ config: e.value }), { svgRef: be } = Nt({
66
60
  config: e.value.style.chart.title
67
61
  });
68
- function be() {
69
- const t = He({
70
- userConfig: _.config,
71
- defaultConfig: De
62
+ function ke() {
63
+ const t = Ye({
64
+ userConfig: T.config,
65
+ defaultConfig: qe
72
66
  });
73
67
  let l = t;
74
68
  return t.theme ? l = {
75
- ...He({
76
- userConfig: it.vue_ui_flow[t.theme] || _.config,
69
+ ...Ye({
70
+ userConfig: mt.vue_ui_flow[t.theme] || T.config,
77
71
  defaultConfig: t
78
72
  }),
79
- customPalette: ut[t.theme] || S
80
- } : l = t, l.nodeCategories = _.config.nodeCategories || {}, l.nodeCategoryColors = _.config.nodeCategoryColors || {}, l;
73
+ customPalette: gt[t.theme] || S
74
+ } : l = t, l.nodeCategories = T.config.nodeCategories || {}, l.nodeCategoryColors = T.config.nodeCategoryColors || {}, l;
81
75
  }
82
- tt(
83
- () => _.config,
76
+ it(
77
+ () => T.config,
84
78
  (t) => {
85
- e.value = be(), ae.value = !e.value.userOptions.showOnChartHover, fe(), pe.value += 1, N.value.showTable = e.value.table.show;
79
+ e.value = ke(), ne.value = !e.value.userOptions.showOnChartHover, he(), ge.value += 1, N.value.showTable = e.value.table.show;
86
80
  },
87
81
  { deep: !0 }
88
82
  );
89
- const { isPrinting: ke, isImaging: Ce, generatePdf: we, generateImage: $e } = yt({
90
- elementId: `flow_${ee.value}`,
83
+ const { isPrinting: Ce, isImaging: we, generatePdf: $e, generateImage: Te } = xt({
84
+ elementId: `flow_${te.value}`,
91
85
  fileName: e.value.style.chart.title.text || "vue-ui-flow",
92
86
  options: e.value.userOptions.print
93
- }), Ue = g(() => e.value.userOptions.show && !e.value.style.chart.title.text), X = g(() => ct(e.value.customPalette)), _e = g(() => e.value.style.chart.nodes.gap), A = g(() => e.value.style.chart.nodes.width), N = b({
87
+ }), Je = 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({
94
88
  showTable: e.value.table.show,
95
89
  showTooltip: e.value.style.chart.tooltip.show
96
- }), Ve = g(() => e.value.style.chart.links.width), ne = g(() => !_.dataset || !_.dataset.length ? [] : _.dataset.map((t, l) => [
90
+ }), Qe = p(() => e.value.style.chart.links.width), se = p(() => !T.dataset || !T.dataset.length ? [] : T.dataset.map((t, l) => [
97
91
  t[0],
98
92
  t[1],
99
93
  $(t[2]),
100
- t[3] ? dt(t[3]) : X.value[l] || X.value[l % X.value.length] || S[l] || S[l % S.length]
101
- ])), xe = g(() => {
94
+ t[3] ? bt(t[3]) : q.value[l] || q.value[l % q.value.length] || S[l] || S[l % S.length]
95
+ ])), _e = p(() => {
102
96
  const t = {};
103
97
  function l(a) {
104
98
  t[a] || (t[a] = { inflow: 0, outflow: 0 });
105
99
  }
106
- ne.value.forEach(([a, s, h]) => {
100
+ se.value.forEach(([a, s, h]) => {
107
101
  l(a), l(s), t[a].outflow += h, t[s].inflow += h;
108
102
  });
109
103
  let o = 0;
@@ -113,14 +107,14 @@ const Ft = ["id"], Lt = {
113
107
  }
114
108
  return o;
115
109
  });
116
- function We(t) {
117
- return t / xe.value * 100 + e.value.style.chart.nodes.minHeight;
110
+ function et(t) {
111
+ return t / _e.value * 100 + e.value.style.chart.nodes.minHeight;
118
112
  }
119
- function je(t) {
113
+ function tt(t) {
120
114
  const l = e.value.style.chart.nodes.minHeight;
121
- return (t - l) / 100 * xe.value;
115
+ return (t - l) / 100 * _e.value;
122
116
  }
123
- function Xe(t) {
117
+ function ot(t) {
124
118
  const l = {}, o = {};
125
119
  function a(n, u) {
126
120
  l[n] || (l[n] = {
@@ -128,76 +122,74 @@ const Ft = ["id"], Lt = {
128
122
  level: null,
129
123
  inflow: 0,
130
124
  outflow: 0,
131
- uid: de()
125
+ uid: ve()
132
126
  }), l[n].level === null && (l[n].level = u), o[u] || (o[u] = []), o[u].includes(n) || o[u].push(n);
133
127
  }
134
- t.forEach(([n, u, i]) => {
135
- var r;
136
- const v = ((r = l[n]) == null ? void 0 : r.level) ?? 0, p = v + 1;
137
- a(n, v), a(u, p), l[n].children || (l[n].children = []), l[n].children.push({ target: u, value: i }), l[n].outflow += i, l[u].inflow += i;
128
+ t.forEach(([n, u, c]) => {
129
+ const v = l[n]?.level ?? 0, C = v + 1;
130
+ 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;
138
131
  });
139
- const s = new Set(t.map(([n]) => n)), h = new Set(t.map(([, n]) => n)), F = Array.from(s).filter((n) => !h.has(n)), H = {};
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 = {};
140
133
  F.forEach((n, u) => {
141
- H[n] = X.value[u] || S[u % S.length];
134
+ Y[n] = q.value[u] || S[u % S.length];
142
135
  });
143
136
  const x = {};
144
- t.forEach(([n, u, i, v]) => {
137
+ t.forEach(([n, u, c, v]) => {
145
138
  v && (x[n] = v, x[u] = v);
146
139
  }), Object.keys(l).forEach((n, u) => {
147
- var p, r;
148
- const i = (p = e.value.nodeCategories) == null ? void 0 : p[n], v = i ? (r = e.value.nodeCategoryColors) == null ? void 0 : r[i] : null;
140
+ const c = e.value.nodeCategories?.[n], v = c ? e.value.nodeCategoryColors?.[c] : null;
149
141
  l[n].color = x[n] || // 1) explicit
150
142
  v || // 2) category
151
- (F.includes(n) ? H[n] : null) || // 3) root
143
+ (F.includes(n) ? Y[n] : null) || // 3) root
152
144
  S[u % S.length];
153
145
  });
154
146
  for (const n in l)
155
- l[n].height = We(
147
+ l[n].height = et(
156
148
  Math.max(l[n].inflow, l[n].outflow)
157
149
  ), l[n].name = n;
158
150
  const O = {};
159
151
  for (const n in o) {
160
152
  let u = 0;
161
- o[n].forEach((i, v) => {
162
- const p = l[i];
163
- O[i] = {
164
- x: parseInt(n, 10) * Ve.value + e.value.style.chart.padding.left,
153
+ o[n].forEach((c, v) => {
154
+ const C = l[c];
155
+ O[c] = {
156
+ x: parseInt(n, 10) * Qe.value + e.value.style.chart.padding.left,
165
157
  y: u,
166
158
  absoluteY: u,
167
- height: p.height,
159
+ height: C.height,
168
160
  i: v,
169
- color: p.color,
170
- value: je(p.height)
171
- }, u += p.height + _e.value;
161
+ color: C.color,
162
+ value: tt(C.height)
163
+ }, u += C.height + xe.value;
172
164
  });
173
165
  }
174
- const E = [];
166
+ const I = [];
175
167
  for (const n of Object.keys(l)) {
176
168
  let u = O[n].absoluteY + e.value.style.chart.padding.top;
177
- const i = l[n], v = O[n];
178
- i.children && i.children.forEach(({ target: p, value: r }) => {
179
- const f = O[p], L = l[p], J = $(u), Ee = $(
180
- u + r / i.outflow * v.height
181
- ), ie = $(
169
+ const c = l[n], v = O[n];
170
+ c.children && c.children.forEach(({ target: C, value: i }) => {
171
+ const f = O[C], P = l[C], Q = $(u), Ee = $(
172
+ u + i / c.outflow * v.height
173
+ ), ce = $(
182
174
  f.y + e.value.style.chart.padding.top
183
175
  ), ze = $(
184
- ie + r / L.inflow * f.height
176
+ ce + i / P.inflow * f.height
185
177
  );
186
- E.push({
187
- id: de(),
178
+ I.push({
179
+ id: ve(),
188
180
  source: n,
189
- target: p,
190
- path: `M ${$(v.x + A.value)} ${J} L ${$(v.x + A.value)} ${Ee} L ${$(f.x)} ${ze} L ${$(f.x)} ${ie} Z`,
191
- value: r,
192
- sourceColor: i.color,
193
- targetColor: L.color
194
- }), u += Ee - J, O[p].y += ze - ie;
181
+ 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
+ value: i,
184
+ sourceColor: c.color,
185
+ targetColor: P.color
186
+ }), u += Ee - Q, O[C].y += ze - ce;
195
187
  });
196
188
  }
197
- return { nodeCoordinates: O, links: E };
189
+ return { nodeCoordinates: O, links: I };
198
190
  }
199
- const y = g(() => {
200
- const t = Xe(_.dataset);
191
+ const m = p(() => {
192
+ const t = ot(T.dataset);
201
193
  return {
202
194
  nodes: Object.keys(t.nodeCoordinates).map((l, o) => ({
203
195
  ...t.nodeCoordinates[l],
@@ -206,97 +198,97 @@ const Ft = ["id"], Lt = {
206
198
  links: t.links
207
199
  };
208
200
  });
209
- g(() => qe(y.value.nodes));
210
- function qe(t) {
201
+ p(() => lt(m.value.nodes));
202
+ function lt(t) {
211
203
  const l = {};
212
204
  for (const a in t) {
213
205
  const { x: s, height: h } = t[a];
214
- l[s] || (l[s] = 0), l[s] += h + _e.value;
206
+ l[s] || (l[s] = 0), l[s] += h + xe.value;
215
207
  }
216
208
  return Math.max(...Object.values(l));
217
209
  }
218
- const G = g(() => {
219
- const { top: t, right: l, bottom: o, left: a } = e.value.style.chart.padding, s = Math.max(...y.value.nodes.map((x) => x.x)), h = a + s + A.value + l, F = Math.max(
220
- ...y.value.nodes.map((x) => x.absoluteY + x.height)
221
- ), H = t + F + o;
222
- return { width: h, height: H };
210
+ const V = 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 };
223
215
  });
224
- function Ke(t) {
216
+ function at(t) {
225
217
  const l = {}, o = {}, a = /* @__PURE__ */ new Set();
226
- return ne.value.forEach(([s, h, F]) => {
218
+ return se.value.forEach(([s, h, F]) => {
227
219
  l[s] || (l[s] = []), o[h] || (o[h] = []), l[s].push(h), o[h].push(s);
228
220
  }), l[t] && l[t].forEach((s) => a.add(s)), o[t] && o[t].forEach((s) => a.add(s)), Array.from(a).concat(t);
229
221
  }
230
- const C = b(null), M = b(null), se = b(null), q = b(!1);
231
- function Ze(t) {
232
- I.value = [], C.value = Ke(t.name), M.value = t.name;
233
- const l = t.name, o = ne.value;
222
+ const k = y(null), H = y(null), re = y(null), K = y(!1);
223
+ function nt(t) {
224
+ A.value = [], k.value = at(t.name), H.value = t.name;
225
+ const l = t.name, o = se.value;
234
226
  let a = 0, s = 0, h = [], F = [];
235
- const H = new Set(o.map(([r]) => r)), x = new Set(o.map(([, r]) => r)), Ie = Array.from(H).filter((r) => !x.has(r)), O = o.filter(([r]) => Ie.includes(r)).reduce((r, [f, L, J]) => r + J, 0), E = {};
236
- y.value.nodes.forEach((r) => {
237
- E[r.name] = r.color;
238
- }), o.forEach(([r, f, L]) => {
239
- f === l && (a += L, h.push({ source: r, value: L, color: E[r] })), r === l && (s += L, F.push({ target: f, value: L, color: E[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 = {};
228
+ 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] }));
240
232
  });
241
- const n = Math.max(a, s), u = O > 0 ? n / O * 100 : 0, i = {
233
+ const n = Math.max(a, s), u = O > 0 ? n / O * 100 : 0, c = {
242
234
  name: l,
243
235
  inflow: a,
244
236
  outflow: s,
245
237
  from: h,
246
238
  to: F,
247
239
  percentOfTotal: u,
248
- color: E[l] || "#000000"
240
+ color: I[l] || "#000000"
249
241
  };
250
- se.value = { datapoint: i }, oe.value = !0;
242
+ re.value = { datapoint: c }, le.value = !0;
251
243
  let v = "";
252
- const p = e.value.style.chart.tooltip.customFormat;
253
- if (q.value = !1, gt(p))
244
+ const C = e.value.style.chart.tooltip.customFormat;
245
+ if (K.value = !1, Tt(C))
254
246
  try {
255
- const r = p({
256
- datapoint: i,
257
- series: y.value,
247
+ const i = C({
248
+ datapoint: c,
249
+ series: m.value,
258
250
  config: e.value
259
251
  });
260
- typeof r == "string" && (le.value = r, q.value = !0);
252
+ typeof i == "string" && (ae.value = i, K.value = !0);
261
253
  } catch {
262
254
  console.warn("Custom format cannot be applied.");
263
255
  }
264
- if (!q.value) {
265
- const r = e.value.style.chart.tooltip.showPercentage ? `<div>${j({
256
+ if (!K.value) {
257
+ const i = e.value.style.chart.tooltip.showPercentage ? `<div>${X({
266
258
  p: e.value.style.chart.tooltip.translations.percentOfTotal,
267
- v: i.percentOfTotal,
259
+ v: c.percentOfTotal,
268
260
  s: "%",
269
261
  r: e.value.style.chart.tooltip.roundingPercentage
270
262
  })}</div>` : "";
271
- 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:${i.color}">⏹</span>${i.name}${r}</div>`, i.from.length && (v += `<div>${e.value.style.chart.tooltip.translations.from}</div>`, i.from.forEach((f) => {
272
- v += `<div><span style="color:${f.color}">⏹←</span> ${f.source}: ${ve(
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(
273
265
  e.value.style.chart.nodes.labels.formatter,
274
266
  f.value,
275
- j({
267
+ X({
276
268
  p: e.value.style.chart.nodes.labels.prefix,
277
269
  v: f.value,
278
270
  s: e.value.style.chart.nodes.labels.suffix,
279
271
  r: e.value.style.chart.nodes.labels.rounding
280
272
  })
281
273
  )}</div>`;
282
- })), i.to.length && (v += `<div style="margin-top:6px;">${e.value.style.chart.tooltip.translations.to}</div>`, i.to.forEach((f) => {
283
- v += `<div><span style="color:${f.color}">⏹→</span> ${f.target}: ${ve(
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(
284
276
  e.value.style.chart.nodes.labels.formatter,
285
277
  f.value,
286
- j({
278
+ X({
287
279
  p: e.value.style.chart.nodes.labels.prefix,
288
280
  v: f.value,
289
281
  s: e.value.style.chart.nodes.labels.suffix,
290
282
  r: e.value.style.chart.nodes.labels.rounding
291
283
  })
292
284
  )}</div>`;
293
- })), le.value = v;
285
+ })), ae.value = v;
294
286
  }
295
287
  }
296
- function Te() {
297
- C.value = null, M.value = null, oe.value = !1;
288
+ function Ne() {
289
+ k.value = null, H.value = null, le.value = !1;
298
290
  }
299
- const Ne = g(() => y.value.links.map(
291
+ const Oe = p(() => m.value.links.map(
300
292
  ({ source: t, target: l, sourceColor: o, targetColor: a, value: s }) => ({
301
293
  source: t,
302
294
  target: l,
@@ -305,9 +297,9 @@ const Ft = ["id"], Lt = {
305
297
  value: s
306
298
  })
307
299
  ));
308
- function Oe() {
309
- at(() => {
310
- const t = Ne.value.map((a, s) => [[a.source], [a.target], [a.value]]), l = [
300
+ function Se() {
301
+ vt(() => {
302
+ const t = Oe.value.map((a, s) => [[a.source], [a.target], [a.value]]), l = [
311
303
  [e.value.style.chart.title.text],
312
304
  [e.value.style.chart.title.subtitle.text],
313
305
  [
@@ -315,19 +307,19 @@ const Ft = ["id"], Lt = {
315
307
  [e.value.table.columnNames.target],
316
308
  [e.value.table.columnNames.value]
317
309
  ]
318
- ].concat(t), o = ht(l);
319
- pt({
310
+ ].concat(t), o = wt(l);
311
+ $t({
320
312
  csvContent: o,
321
313
  title: e.value.style.chart.title.text || "vue-ui-flow"
322
314
  });
323
315
  });
324
316
  }
325
- const K = g(() => {
317
+ const Z = p(() => {
326
318
  const t = [
327
319
  e.value.table.columnNames.source,
328
320
  e.value.table.columnNames.target,
329
321
  e.value.table.columnNames.value
330
- ], l = Ne.value.map((s, h) => [
322
+ ], l = Oe.value.map((s, h) => [
331
323
  {
332
324
  color: s.sourceColor,
333
325
  name: s.source
@@ -336,7 +328,7 @@ const Ft = ["id"], Lt = {
336
328
  color: s.targetColor,
337
329
  name: s.target
338
330
  },
339
- j({
331
+ X({
340
332
  p: e.value.style.chart.nodes.labels.prefix,
341
333
  v: s.value,
342
334
  s: e.value.style.chart.nodes.labels.suffix,
@@ -366,22 +358,22 @@ const Ft = ["id"], Lt = {
366
358
  config: o
367
359
  };
368
360
  });
369
- function Je() {
370
- return y.value;
361
+ function st() {
362
+ return m.value;
371
363
  }
372
- function Se() {
364
+ function Fe() {
373
365
  N.value.showTable = !N.value.showTable;
374
366
  }
375
- const Z = b(!1);
376
- function re() {
377
- Z.value = !Z.value;
367
+ const J = y(!1);
368
+ function ue() {
369
+ J.value = !J.value;
378
370
  }
379
- function Fe() {
371
+ function Pe() {
380
372
  N.value.showTooltip = !N.value.showTooltip;
381
373
  }
382
- const Le = g(() => {
374
+ const Le = p(() => {
383
375
  const t = new Set(
384
- y.value.nodes.map(
376
+ m.value.nodes.map(
385
377
  (l) => e.value.nodeCategories[l.name] || "__uncategorized__"
386
378
  )
387
379
  );
@@ -389,29 +381,28 @@ const Ft = ["id"], Lt = {
389
381
  name: l,
390
382
  color: e.value.nodeCategoryColors[l] || S[0],
391
383
  shape: "square",
392
- count: y.value.nodes.filter(
384
+ count: m.value.nodes.filter(
393
385
  (o) => (e.value.nodeCategories[o.name] || "__uncategorized__") === l
394
386
  ).length
395
387
  })).map((l, o) => ({
396
388
  ...l,
397
- segregate: () => ue({ legend: l, i: o }),
398
- opacity: I.value.length ? I.value.includes(o) ? 1 : 0.5 : 1
389
+ segregate: () => ie({ legend: l, i: o }),
390
+ opacity: A.value.length ? A.value.includes(o) ? 1 : 0.5 : 1
399
391
  }));
400
- }), Pe = g(
392
+ }), Ae = p(
401
393
  () => Le.value.filter((t) => t.name !== "__uncategorized__")
402
- ), I = b([]);
403
- function ue({ legend: t, i: l }) {
404
- var a;
394
+ ), A = y([]);
395
+ function ie({ legend: t, i: l }) {
405
396
  const o = t.name;
406
- if ((a = C.value) != null && a.every(
407
- (s) => e.value.nodeCategories[s] === o
397
+ if (k.value?.every(
398
+ (a) => e.value.nodeCategories[a] === o
408
399
  )) {
409
- C.value = null, M.value = null, I.value = [];
400
+ k.value = null, H.value = null, A.value = [];
410
401
  return;
411
402
  }
412
- I.value = [l], C.value = y.value.nodes.filter((s) => e.value.nodeCategories[s.name] === o).map((s) => s.name), M.value = null;
403
+ A.value = [l], k.value = m.value.nodes.filter((a) => e.value.nodeCategories[a.name] === o).map((a) => a.name), H.value = null;
413
404
  }
414
- const Qe = g(() => ({
405
+ const rt = p(() => ({
415
406
  cy: "flow-legend",
416
407
  backgroundColor: e.value.style.chart.legend.backgroundColor,
417
408
  color: e.value.style.chart.legend.color,
@@ -419,37 +410,37 @@ const Ft = ["id"], Lt = {
419
410
  paddingBottom: e.value.style.chart.legend.paddingBottom,
420
411
  fontWeight: e.value.style.chart.legend.bold ? "bold" : "normal"
421
412
  }));
422
- return Be({
423
- getData: Je,
424
- generateCsv: Oe,
425
- generateImage: $e,
426
- generatePdf: we,
427
- toggleTable: Se,
428
- toggleAnnotator: re,
429
- toggleTooltip: Fe,
430
- drillCategory: ue,
431
- unselectNode: Te
432
- }), (t, l) => (c(), m("div", {
413
+ return De({
414
+ getData: st,
415
+ generateCsv: Se,
416
+ generateImage: Te,
417
+ generatePdf: $e,
418
+ toggleTable: Fe,
419
+ toggleAnnotator: ue,
420
+ toggleTooltip: Pe,
421
+ drillCategory: ie,
422
+ unselectNode: Ne
423
+ }), (t, l) => (d(), g("div", {
433
424
  ref_key: "flowChart",
434
- ref: te,
435
- class: Ae(`vue-ui-flow ${z.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
436
- style: P(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
437
- id: `flow_${ee.value}`,
438
- onMouseenter: l[3] || (l[3] = () => d(ge)(!0)),
439
- onMouseleave: l[4] || (l[4] = () => d(ge)(!1))
425
+ ref: oe,
426
+ class: Me(`vue-ui-flow ${z.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
427
+ 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))
440
431
  }, [
441
- e.value.userOptions.buttons.annotator ? (c(), Y(_t, {
432
+ e.value.userOptions.buttons.annotator ? (d(), B(r(Ue), {
442
433
  key: 0,
443
- svgRef: d(ye),
434
+ svgRef: r(be),
444
435
  backgroundColor: e.value.style.chart.backgroundColor,
445
436
  color: e.value.style.chart.color,
446
- active: Z.value,
447
- onClose: re
448
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : T("", !0),
449
- Ue.value ? (c(), m("div", Lt, null, 512)) : T("", !0),
450
- e.value.style.chart.title.text ? (c(), m("div", Pt, [
451
- (c(), Y(mt, {
452
- key: `title_${pe.value}`,
437
+ active: J.value,
438
+ onClose: ue
439
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : _("", !0),
440
+ Je.value ? (d(), g("div", Lt, null, 512)) : _("", !0),
441
+ e.value.style.chart.title.text ? (d(), g("div", At, [
442
+ (d(), B(St, {
443
+ key: `title_${ge.value}`,
453
444
  config: {
454
445
  title: {
455
446
  cy: "flow-title",
@@ -461,15 +452,15 @@ const Ft = ["id"], Lt = {
461
452
  }
462
453
  }
463
454
  }, null, 8, ["config"]))
464
- ])) : T("", !0),
465
- e.value.userOptions.show && Q.value && (d(me) || d(ae)) ? (c(), Y(bt, {
455
+ ])) : _("", !0),
456
+ e.value.userOptions.show && ee.value && (r(ye) || r(ne)) ? (d(), B(r(Xe), {
466
457
  ref: "details",
467
- key: `user_option_${he.value}`,
458
+ key: `user_option_${pe.value}`,
468
459
  backgroundColor: e.value.style.chart.backgroundColor,
469
460
  color: e.value.style.chart.color,
470
- isPrinting: d(ke),
471
- isImaging: d(Ce),
472
- uid: ee.value,
461
+ isPrinting: r(Ce),
462
+ isImaging: r(we),
463
+ uid: te.value,
473
464
  hasPdf: e.value.userOptions.buttons.pdf,
474
465
  hasXls: e.value.userOptions.buttons.csv,
475
466
  hasImg: e.value.userOptions.buttons.img,
@@ -477,184 +468,184 @@ const Ft = ["id"], Lt = {
477
468
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
478
469
  isFullscreen: z.value,
479
470
  titles: { ...e.value.userOptions.buttonTitles },
480
- chartElement: te.value,
471
+ chartElement: oe.value,
481
472
  position: e.value.userOptions.position,
482
473
  hasAnnotator: e.value.userOptions.buttons.annotator,
483
- isAnnotation: Z.value,
474
+ isAnnotation: J.value,
484
475
  hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
485
476
  isTooltip: N.value.showTooltip,
486
- onToggleTooltip: Fe,
487
- onToggleFullscreen: Ge,
488
- onGeneratePdf: d(we),
489
- onGenerateCsv: Oe,
490
- onGenerateImage: d($e),
491
- onToggleTable: Se,
492
- onToggleAnnotator: re,
493
- style: P({
494
- visibility: d(me) ? d(ae) ? "visible" : "hidden" : "visible"
477
+ onToggleTooltip: Pe,
478
+ onToggleFullscreen: Ze,
479
+ onGeneratePdf: r($e),
480
+ onGenerateCsv: Se,
481
+ onGenerateImage: r(Te),
482
+ onToggleTable: Fe,
483
+ onToggleAnnotator: ue,
484
+ style: L({
485
+ visibility: r(ye) ? r(ne) ? "visible" : "hidden" : "visible"
495
486
  })
496
- }, ot({ _: 2 }, [
487
+ }, ct({ _: 2 }, [
497
488
  t.$slots.menuIcon ? {
498
489
  name: "menuIcon",
499
490
  fn: w(({ isOpen: o, color: a }) => [
500
- k(t.$slots, "menuIcon", D(R({ isOpen: o, color: a })), void 0, !0)
491
+ b(t.$slots, "menuIcon", R(G({ isOpen: o, color: a })), void 0, !0)
501
492
  ]),
502
493
  key: "0"
503
494
  } : void 0,
504
495
  t.$slots.optionTooltip ? {
505
496
  name: "optionTooltip",
506
497
  fn: w(() => [
507
- k(t.$slots, "optionTooltip", {}, void 0, !0)
498
+ b(t.$slots, "optionTooltip", {}, void 0, !0)
508
499
  ]),
509
500
  key: "1"
510
501
  } : void 0,
511
502
  t.$slots.optionPdf ? {
512
503
  name: "optionPdf",
513
504
  fn: w(() => [
514
- k(t.$slots, "optionPdf", {}, void 0, !0)
505
+ b(t.$slots, "optionPdf", {}, void 0, !0)
515
506
  ]),
516
507
  key: "2"
517
508
  } : void 0,
518
509
  t.$slots.optionCsv ? {
519
510
  name: "optionCsv",
520
511
  fn: w(() => [
521
- k(t.$slots, "optionCsv", {}, void 0, !0)
512
+ b(t.$slots, "optionCsv", {}, void 0, !0)
522
513
  ]),
523
514
  key: "3"
524
515
  } : void 0,
525
516
  t.$slots.optionImg ? {
526
517
  name: "optionImg",
527
518
  fn: w(() => [
528
- k(t.$slots, "optionImg", {}, void 0, !0)
519
+ b(t.$slots, "optionImg", {}, void 0, !0)
529
520
  ]),
530
521
  key: "4"
531
522
  } : void 0,
532
523
  t.$slots.optionTable ? {
533
524
  name: "optionTable",
534
525
  fn: w(() => [
535
- k(t.$slots, "optionTable", {}, void 0, !0)
526
+ b(t.$slots, "optionTable", {}, void 0, !0)
536
527
  ]),
537
528
  key: "5"
538
529
  } : void 0,
539
530
  t.$slots.optionFullscreen ? {
540
531
  name: "optionFullscreen",
541
532
  fn: w(({ toggleFullscreen: o, isFullscreen: a }) => [
542
- k(t.$slots, "optionFullscreen", D(R({ toggleFullscreen: o, isFullscreen: a })), void 0, !0)
533
+ b(t.$slots, "optionFullscreen", R(G({ toggleFullscreen: o, isFullscreen: a })), void 0, !0)
543
534
  ]),
544
535
  key: "6"
545
536
  } : void 0,
546
537
  t.$slots.optionAnnotator ? {
547
538
  name: "optionAnnotator",
548
539
  fn: w(({ toggleAnnotator: o, isAnnotator: a }) => [
549
- k(t.$slots, "optionAnnotator", D(R({ toggleAnnotator: o, isAnnotator: a })), void 0, !0)
540
+ b(t.$slots, "optionAnnotator", R(G({ toggleAnnotator: o, isAnnotator: a })), void 0, !0)
550
541
  ]),
551
542
  key: "7"
552
543
  } : void 0
553
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "hasTooltip", "isTooltip", "onGeneratePdf", "onGenerateImage", "style"])) : T("", !0),
554
- (c(), m("svg", {
544
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "hasTooltip", "isTooltip", "onGeneratePdf", "onGenerateImage", "style"])) : _("", !0),
545
+ (d(), g("svg", {
555
546
  ref_key: "svgRef",
556
- ref: ye,
557
- xmlns: d(vt),
558
- viewBox: `0 0 ${G.value.width} ${G.value.height}`,
559
- class: Ae({
547
+ ref: be,
548
+ xmlns: r(kt),
549
+ viewBox: `0 0 ${V.value.width} ${V.value.height}`,
550
+ class: Me({
560
551
  "vue-data-ui-fullscreen--on": z.value,
561
552
  "vue-data-ui-fulscreen--off": !z.value
562
553
  }),
563
- style: P(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
554
+ style: L(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
564
555
  }, [
565
- ce($t),
566
- t.$slots["chart-background"] ? (c(), m("foreignObject", {
556
+ de(r(Ve)),
557
+ t.$slots["chart-background"] ? (d(), g("foreignObject", {
567
558
  key: 0,
568
559
  x: 0,
569
560
  y: 0,
570
- width: G.value.width,
571
- height: G.value.height,
561
+ width: V.value.width,
562
+ height: V.value.height,
572
563
  style: {
573
564
  pointerEvents: "none"
574
565
  }
575
566
  }, [
576
- k(t.$slots, "chart-background", {}, void 0, !0)
577
- ], 8, Et)) : T("", !0),
578
- B("defs", null, [
579
- (c(!0), m(U, null, V(y.value.links, (o, a) => (c(), m("linearGradient", {
567
+ b(t.$slots, "chart-background", {}, void 0, !0)
568
+ ], 8, Et)) : _("", !0),
569
+ D("defs", null, [
570
+ (d(!0), g(U, null, W(m.value.links, (o, a) => (d(), g("linearGradient", {
580
571
  id: o.id,
581
572
  x1: "0%",
582
573
  y1: "0%",
583
574
  x2: "100%",
584
575
  y2: "0%"
585
576
  }, [
586
- B("stop", {
577
+ D("stop", {
587
578
  offset: "0%",
588
579
  "stop-color": o.sourceColor
589
- }, null, 8, At),
590
- B("stop", {
580
+ }, null, 8, Mt),
581
+ D("stop", {
591
582
  offset: "100%",
592
583
  "stop-color": o.targetColor
593
- }, null, 8, Mt)
584
+ }, null, 8, Ht)
594
585
  ], 8, zt))), 256))
595
586
  ]),
596
- (c(!0), m(U, null, V(y.value.links, (o) => (c(), m("path", {
587
+ (d(!0), g(U, null, W(m.value.links, (o) => (d(), g("path", {
597
588
  class: "vue-ui-flow-link",
598
589
  d: o.path,
599
590
  fill: `url(#${o.id})`,
600
591
  stroke: e.value.style.chart.links.stroke,
601
592
  "stroke-width": e.value.style.chart.links.strokeWidth,
602
- style: P(`
603
- opacity:${C.value ? C.value.includes(o.source) && C.value.includes(o.target) ? 1 : 0.3 : M.value ? [o.target, o.source].includes(M.value) ? 1 : 0.3 : e.value.style.chart.links.opacity}
593
+ style: L(`
594
+ 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}
604
595
  `)
605
- }, null, 12, Ht))), 256)),
606
- (c(!0), m(U, null, V(y.value.nodes, (o, a) => (c(), m("rect", {
596
+ }, null, 12, Yt))), 256)),
597
+ (d(!0), g(U, null, W(m.value.nodes, (o, a) => (d(), g("rect", {
607
598
  class: "vue-ui-flow-node",
608
599
  x: o.x,
609
- y: d($)(o.absoluteY) + e.value.style.chart.padding.top,
610
- height: d($)(o.height),
611
- width: A.value,
600
+ y: r($)(o.absoluteY) + e.value.style.chart.padding.top,
601
+ height: r($)(o.height),
602
+ width: M.value,
612
603
  fill: o.color,
613
604
  stroke: e.value.style.chart.nodes.stroke,
614
605
  "stroke-width": e.value.style.chart.nodes.strokeWidth,
615
- onMouseenter: (s) => Ze(o),
616
- onMouseleave: l[0] || (l[0] = (s) => Te()),
617
- style: P(`opacity:${C.value ? C.value.includes(o.name) ? 1 : 0.3 : 1}`)
618
- }, null, 44, Yt))), 256)),
619
- (c(!0), m(U, null, V(y.value.nodes, (o, a) => (c(), m("text", {
620
- x: o.x + A.value / 2,
621
- y: d($)(
606
+ onMouseenter: (s) => nt(o),
607
+ onMouseleave: l[0] || (l[0] = (s) => Ne()),
608
+ style: L(`opacity:${k.value ? k.value.includes(o.name) ? 1 : 0.3 : 1}`)
609
+ }, null, 44, Bt))), 256)),
610
+ (d(!0), g(U, null, W(m.value.nodes, (o, a) => (d(), g("text", {
611
+ x: o.x + M.value / 2,
612
+ y: r($)(
622
613
  o.absoluteY + o.height / 2 - e.value.style.chart.nodes.labels.fontSize / 4
623
614
  ) + e.value.style.chart.padding.top,
624
615
  "font-size": e.value.style.chart.nodes.labels.fontSize,
625
- fill: d(Me)(o.color),
616
+ fill: r(He)(o.color),
626
617
  "text-anchor": "middle",
627
- style: P(`pointer-events: none; opacity:${C.value ? C.value.includes(o.name) ? 1 : 0 : 1}`)
628
- }, W(e.value.style.chart.nodes.labels.abbreviation.use ? d(ft)({
618
+ style: L(`pointer-events: none; opacity:${k.value ? k.value.includes(o.name) ? 1 : 0 : 1}`)
619
+ }, j(e.value.style.chart.nodes.labels.abbreviation.use ? r(Ct)({
629
620
  source: o.name,
630
621
  length: e.value.style.chart.nodes.labels.abbreviation.length
631
- }) : o.name), 13, Bt))), 256)),
632
- (c(!0), m(U, null, V(y.value.nodes, (o, a) => (c(), m("text", {
633
- x: o.x + A.value / 2,
634
- y: d($)(
622
+ }) : o.name), 13, Dt))), 256)),
623
+ (d(!0), g(U, null, W(m.value.nodes, (o, a) => (d(), g("text", {
624
+ x: o.x + M.value / 2,
625
+ y: r($)(
635
626
  o.absoluteY + o.height / 2 + e.value.style.chart.nodes.labels.fontSize
636
627
  ) + e.value.style.chart.padding.top,
637
628
  "font-size": e.value.style.chart.nodes.labels.fontSize,
638
- fill: d(Me)(o.color),
629
+ fill: r(He)(o.color),
639
630
  "text-anchor": "middle",
640
- style: P(`pointer-events: none; opacity:${C.value ? C.value.includes(o.name) ? 1 : 0 : 1}`)
641
- }, W(d(ve)(
631
+ style: L(`pointer-events: none; opacity:${k.value ? k.value.includes(o.name) ? 1 : 0 : 1}`)
632
+ }, j(r(fe)(
642
633
  e.value.style.chart.nodes.labels.formatter,
643
634
  o.value,
644
- d(j)({
635
+ r(X)({
645
636
  p: e.value.style.chart.nodes.labels.prefix,
646
637
  v: o.value,
647
638
  s: e.value.style.chart.nodes.labels.suffix,
648
639
  r: e.value.style.chart.nodes.labels.rounding
649
640
  }),
650
641
  { datapoint: o, seriesIndex: a }
651
- )), 13, Dt))), 256)),
652
- k(t.$slots, "svg", { svg: G.value }, void 0, !0)
642
+ )), 13, Rt))), 256)),
643
+ b(t.$slots, "svg", { svg: V.value }, void 0, !0)
653
644
  ], 14, It)),
654
- t.$slots.watermark ? (c(), m("div", Rt, [
655
- k(t.$slots, "watermark", D(R({ isPrinting: d(ke) || d(Ce) })), void 0, !0)
656
- ])) : T("", !0),
657
- Q.value ? T("", !0) : (c(), Y(wt, {
645
+ t.$slots.watermark ? (d(), g("div", Gt, [
646
+ b(t.$slots, "watermark", R(G({ isPrinting: r(Ce) || r(we) })), void 0, !0)
647
+ ])) : _("", !0),
648
+ ee.value ? _("", !0) : (d(), B(r(We), {
658
649
  key: 5,
659
650
  config: {
660
651
  type: "flow",
@@ -663,31 +654,31 @@ const Ft = ["id"], Lt = {
663
654
  }
664
655
  }
665
656
  }, null, 8, ["config"])),
666
- B("div", {
657
+ D("div", {
667
658
  ref_key: "chartLegend",
668
- ref: Re
659
+ ref: Ke
669
660
  }, [
670
- e.value.style.chart.legend.show && Pe.value.length ? (c(), Y(Ot, {
661
+ e.value.style.chart.legend.show && Ae.value.length ? (d(), B(Ot, {
671
662
  key: 0,
672
- legendSet: Pe.value,
673
- config: Qe.value,
674
- onClickMarker: l[1] || (l[1] = (o) => ue(o))
663
+ legendSet: Ae.value,
664
+ config: rt.value,
665
+ onClickMarker: l[1] || (l[1] = (o) => ie(o))
675
666
  }, {
676
667
  item: w(({ legend: o, index: a }) => [
677
- B("div", {
668
+ D("div", {
678
669
  onClick: (s) => o.segregate(),
679
- style: P(`opacity:${I.value.length ? I.value.includes(a) ? 1 : 0.5 : 1}`)
680
- }, W(o.name) + " (" + W(o.count) + ") ", 13, Gt)
670
+ style: L(`opacity:${A.value.length ? A.value.includes(a) ? 1 : 0.5 : 1}`)
671
+ }, j(o.name) + " (" + j(o.count) + ") ", 13, Vt)
681
672
  ]),
682
673
  _: 1
683
- }, 8, ["legendSet", "config"])) : T("", !0),
684
- k(t.$slots, "legend", { legend: Le.value }, void 0, !0)
674
+ }, 8, ["legendSet", "config"])) : _("", !0),
675
+ b(t.$slots, "legend", { legend: Le.value }, void 0, !0)
685
676
  ], 512),
686
- t.$slots.source ? (c(), m("div", Ut, [
687
- k(t.$slots, "source", {}, void 0, !0)
688
- ], 512)) : T("", !0),
689
- ce(Nt, {
690
- show: N.value.showTooltip && oe.value,
677
+ t.$slots.source ? (d(), g("div", Ut, [
678
+ b(t.$slots, "source", {}, void 0, !0)
679
+ ], 512)) : _("", !0),
680
+ de(r(je), {
681
+ show: N.value.showTooltip && le.value,
691
682
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
692
683
  color: e.value.style.chart.tooltip.color,
693
684
  fontSize: e.value.style.chart.tooltip.fontSize,
@@ -697,20 +688,20 @@ const Ft = ["id"], Lt = {
697
688
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
698
689
  position: e.value.style.chart.tooltip.position,
699
690
  offsetY: e.value.style.chart.tooltip.offsetY,
700
- parent: te.value,
701
- content: le.value,
702
- isCustom: q.value,
691
+ parent: oe.value,
692
+ content: ae.value,
693
+ isCustom: K.value,
703
694
  isFullscreen: z.value
704
695
  }, {
705
696
  "tooltip-before": w(() => [
706
- k(t.$slots, "tooltip-before", D(R({ ...se.value })), void 0, !0)
697
+ b(t.$slots, "tooltip-before", R(G({ ...re.value })), void 0, !0)
707
698
  ]),
708
699
  "tooltip-after": w(() => [
709
- k(t.$slots, "tooltip-after", D(R({ ...se.value })), void 0, !0)
700
+ b(t.$slots, "tooltip-after", R(G({ ...re.value })), void 0, !0)
710
701
  ]),
711
702
  _: 3
712
703
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen"]),
713
- Q.value ? (c(), Y(Ct, {
704
+ ee.value ? (d(), B(r(Re), {
714
705
  key: 7,
715
706
  hideDetails: "",
716
707
  config: {
@@ -727,31 +718,31 @@ const Ft = ["id"], Lt = {
727
718
  }
728
719
  }, {
729
720
  content: w(() => [
730
- ce(kt, {
731
- colNames: K.value.colNames,
732
- head: K.value.head,
733
- body: K.value.body,
734
- config: K.value.config,
721
+ de(r(Ge), {
722
+ colNames: Z.value.colNames,
723
+ head: Z.value.head,
724
+ body: Z.value.body,
725
+ config: Z.value.config,
735
726
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
736
727
  onClose: l[2] || (l[2] = (o) => N.value.showTable = !1)
737
728
  }, {
738
729
  th: w(({ th: o }) => [
739
- B("div", {
730
+ D("div", {
740
731
  innerHTML: o,
741
732
  style: { display: "flex", "align-items": "center" }
742
- }, null, 8, Vt)
733
+ }, null, 8, Wt)
743
734
  ]),
744
735
  td: w(({ td: o }) => [
745
- lt(W(o.name || o), 1)
736
+ dt(j(o.name || o), 1)
746
737
  ]),
747
738
  _: 1
748
739
  }, 8, ["colNames", "head", "body", "config", "title"])
749
740
  ]),
750
741
  _: 1
751
- }, 8, ["config"])) : T("", !0)
752
- ], 46, Ft));
742
+ }, 8, ["config"])) : _("", !0)
743
+ ], 46, Pt));
753
744
  }
754
- }, uo = /* @__PURE__ */ St(Wt, [["__scopeId", "data-v-6fcb877a"]]);
745
+ }, lo = /* @__PURE__ */ Ft(jt, [["__scopeId", "data-v-0ce1d104"]]);
755
746
  export {
756
- uo as default
747
+ lo as default
757
748
  };