vue-data-ui 3.0.0-next.0 → 3.0.0-next.10
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.
- package/README.md +109 -68
- package/dist/{Arrow-CzFtSJ1v.js → Arrow-8Wnel_lw.js} +1 -1
- package/dist/{BaseDraggableDialog-0S5xhs2P.js → BaseDraggableDialog-D-IcFGSE.js} +2 -2
- package/dist/{BaseIcon-DoDjTdD5.js → BaseIcon-RLse0qy8.js} +1 -1
- package/dist/{ColorPicker-BGRchgqQ.js → ColorPicker-D9dpnizT.js} +2 -2
- package/dist/{DataTable-BBbOgI-a.js → DataTable-IzCJ9gby.js} +2 -2
- package/dist/{Legend-Q4bOb-Nf.js → Legend-SfJ53F5x.js} +12 -11
- package/dist/{NonSvgPenAndPaper-DNKRvsBB.js → NonSvgPenAndPaper-3oZlBiCt.js} +3 -3
- package/dist/{PackageVersion-D0VPY8-5.js → PackageVersion-u8Hc4rJi.js} +1 -1
- package/dist/{PenAndPaper-DhBJsnob.js → PenAndPaper-6iArlmj7.js} +32 -32
- package/dist/{Shape-DbsLJ-SE.js → Shape-vSWSsIaU.js} +1 -1
- package/dist/{Slicer-DZEFp2GU.js → Slicer-CPMTQDCj.js} +2 -2
- package/dist/{SparkTooltip-CoOJR62O.js → SparkTooltip-sazd7MmK.js} +1 -1
- package/dist/{Title-D29apS4l.js → Title-CTsOHFNh.js} +1 -1
- package/dist/Tooltip-4cn1szzA.js +157 -0
- package/dist/{UserOptions-Bdit7AWO.js → UserOptions-X9Ckvwp-.js} +137 -129
- package/dist/{dom-to-png-BdPIrHOF.js → dom-to-png-C3BKllTG.js} +1 -1
- package/dist/img-D9CjuW6g.js +33 -0
- package/dist/{index-DMqAxz7R.js → index-DBSLpcPM.js} +1515 -1426
- package/dist/pdf-V4tIjxUb.js +58 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1098 -222
- package/dist/types/vue-data-ui.d.ts +1098 -222
- package/dist/useLoading-Bt5Doa8m.js +28 -0
- package/dist/{useNestedProp-YgN3FV_8.js → useNestedProp-BQFkJRtL.js} +1 -1
- package/dist/{usePrinter-COkTjv6C.js → usePrinter-CjyE7ii3.js} +2 -2
- package/dist/{useTimeLabels-Mrr0jrpL.js → useTimeLabels-DG97x2hL.js} +139 -132
- package/dist/vue-data-ui-BgN2CPSV.js +320 -0
- package/dist/vue-data-ui.js +53 -52
- package/dist/{vue-ui-3d-bar-Ojgjl20n.js → vue-ui-3d-bar-DlnRLAbw.js} +261 -245
- package/dist/{vue-ui-accordion-P6eFHGQp.js → vue-ui-accordion-yWXqkLfQ.js} +3 -3
- package/dist/{vue-ui-age-pyramid-IcMpAhiw.js → vue-ui-age-pyramid-C_4kFlWe.js} +233 -217
- package/dist/{vue-ui-annotator-Bk7d86-x.js → vue-ui-annotator-DVXA74Er.js} +2 -2
- package/dist/{vue-ui-bullet-DCvWbCPk.js → vue-ui-bullet-DoxSEGR4.js} +172 -156
- package/dist/{vue-ui-candlestick-DCf-88Yv.js → vue-ui-candlestick-Bke-ZK92.js} +271 -254
- package/dist/{vue-ui-carousel-table-DEsl0XUh.js → vue-ui-carousel-table-CqRuHaU6.js} +17 -16
- package/dist/{vue-ui-chestnut-Cg10-3wu.js → vue-ui-chestnut-BYIowBXd.js} +419 -403
- package/dist/{vue-ui-chord-BWYzR6vf.js → vue-ui-chord-DyA4jvyD.js} +256 -240
- package/dist/{vue-ui-circle-pack-CO2Ra2-5.js → vue-ui-circle-pack-BVT22rGO.js} +230 -214
- package/dist/{vue-ui-cursor-BbYHJDbV.js → vue-ui-cursor-B3RyMKwx.js} +2 -2
- package/dist/{vue-ui-dashboard-DkCnNuse.js → vue-ui-dashboard-Cgqpnpao.js} +62 -62
- package/dist/{vue-ui-digits-DRsphHt2.js → vue-ui-digits-Db9yuqjo.js} +2 -2
- package/dist/vue-ui-donut-CdsBUcPD.js +1547 -0
- package/dist/{vue-ui-donut-evolution-B5F2-0bh.js → vue-ui-donut-evolution-D5eUZJuU.js} +370 -357
- package/dist/{vue-ui-dumbbell-DqqSxoSh.js → vue-ui-dumbbell-CWgs8sB6.js} +216 -200
- package/dist/{vue-ui-flow-CTIcUJgV.js → vue-ui-flow-CL5jxEBp.js} +217 -201
- package/dist/{vue-ui-funnel-k7KD7Xoc.js → vue-ui-funnel-DT9BzBp3.js} +213 -197
- package/dist/{vue-ui-galaxy-C9EHaP4I.js → vue-ui-galaxy-hwr5J-b7.js} +215 -202
- package/dist/{vue-ui-gauge-CBiM_1-n.js → vue-ui-gauge-D_fnRyKs.js} +220 -204
- package/dist/{vue-ui-gizmo-CAc7b2oK.js → vue-ui-gizmo-CLni95HP.js} +3 -3
- package/dist/{vue-ui-heatmap-B3ubrP2v.js → vue-ui-heatmap-Bd8qoV2F.js} +244 -224
- package/dist/{vue-ui-history-plot-XCqccO3b.js → vue-ui-history-plot-BJvaJkPO.js} +268 -252
- package/dist/{vue-ui-kpi-DTGMDjaZ.js → vue-ui-kpi-B7uO6vRA.js} +3 -3
- package/dist/{vue-ui-mini-loader-Cn_7nvVq.js → vue-ui-mini-loader-CTDfGO91.js} +2 -2
- package/dist/{vue-ui-molecule-BugMXFAK.js → vue-ui-molecule-BSE6LaGt.js} +204 -188
- package/dist/{vue-ui-mood-radar-Cv4dHZPL.js → vue-ui-mood-radar-CN24P-Tk.js} +206 -190
- package/dist/vue-ui-nested-donuts-CWL3uP-u.js +1212 -0
- package/dist/{vue-ui-onion-Bha2hRAb.js → vue-ui-onion-Bib32nel.js} +196 -180
- package/dist/{vue-ui-parallel-coordinate-plot-DWJ2DWx4.js → vue-ui-parallel-coordinate-plot-l0O-i93L.js} +194 -178
- package/dist/{vue-ui-quadrant-BKHZoTml.js → vue-ui-quadrant-D0pzeobL.js} +321 -305
- package/dist/{vue-ui-quick-chart-D_k3lbU8.js → vue-ui-quick-chart-CaLIrn96.js} +347 -331
- package/dist/{vue-ui-radar-Co4EOjSk.js → vue-ui-radar-DXJ1WS7s.js} +193 -177
- package/dist/{vue-ui-rating-dtNN0EdX.js → vue-ui-rating-C6qqU59J.js} +2 -2
- package/dist/{vue-ui-relation-circle-CR4UpQzM.js → vue-ui-relation-circle-SpPQ2WhH.js} +188 -172
- package/dist/{vue-ui-ridgeline-BKX97EnR.js → vue-ui-ridgeline-BMsbiTjU.js} +212 -196
- package/dist/{vue-ui-rings-EPTwyt6D.js → vue-ui-rings-ES4LhrT0.js} +223 -210
- package/dist/{vue-ui-scatter-BlxzblSR.js → vue-ui-scatter-yV6nLFs6.js} +288 -273
- package/dist/{vue-ui-skeleton-CjN2ZdgT.js → vue-ui-skeleton-7gkY0oe-.js} +3 -3
- package/dist/{vue-ui-smiley-DdF_ErYG.js → vue-ui-smiley-CYLqgGm1.js} +2 -2
- package/dist/{vue-ui-spark-trend-RdOlCuT9.js → vue-ui-spark-trend-kQ3dsaGO.js} +3 -3
- package/dist/{vue-ui-sparkbar-DWufRGcN.js → vue-ui-sparkbar-Bfe8SMeM.js} +3 -3
- package/dist/{vue-ui-sparkgauge-IP1O3qyT.js → vue-ui-sparkgauge-Dxts3pPS.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-Cnv9xZ8H.js → vue-ui-sparkhistogram-CC6-gQ2R.js} +4 -4
- package/dist/{vue-ui-sparkline-CYgeD5V3.js → vue-ui-sparkline-Ba6FPyOS.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BCwoK9xd.js → vue-ui-sparkstackbar-CQr6s7Ij.js} +3 -3
- package/dist/{vue-ui-stackbar-CqFIvfrK.js → vue-ui-stackbar-cJAK-x5g.js} +497 -474
- package/dist/{vue-ui-strip-plot-Dq-kDRai.js → vue-ui-strip-plot-DyU5K6-X.js} +241 -225
- package/dist/{vue-ui-table-vaIdQnPl.js → vue-ui-table-B_KeSP8f.js} +3 -3
- package/dist/{vue-ui-table-heatmap-U_Td0cdh.js → vue-ui-table-heatmap-CzGGjLl6.js} +26 -25
- package/dist/{vue-ui-table-sparkline-DkOaHx5L.js → vue-ui-table-sparkline-BoW1Y5Hh.js} +8 -7
- package/dist/{vue-ui-thermometer-CzckBZgs.js → vue-ui-thermometer-ROH_nY6z.js} +170 -154
- package/dist/{vue-ui-timer-DSdUshUs.js → vue-ui-timer-DmgpfYIT.js} +5 -5
- package/dist/vue-ui-tiremarks-CkmD6BQB.js +358 -0
- package/dist/vue-ui-treemap-BOxeG-ql.js +965 -0
- package/dist/vue-ui-vertical-bar-BoKi7wHJ.js +1106 -0
- package/dist/{vue-ui-waffle-DusUVY6y.js → vue-ui-waffle-BIM_Qg3a.js} +234 -221
- package/dist/vue-ui-wheel-CGZgFZax.js +352 -0
- package/dist/{vue-ui-word-cloud-_7uYjJ5A.js → vue-ui-word-cloud-Dt-X1dFo.js} +249 -233
- package/dist/{vue-ui-world-COIyBHII.js → vue-ui-world-BrPqffT7.js} +239 -223
- package/dist/vue-ui-xy-CYko0Jmo.js +2982 -0
- package/dist/{vue-ui-xy-canvas-CuYRyub2.js → vue-ui-xy-canvas-DVRWryRe.js} +447 -431
- package/package.json +2 -2
- package/dist/Tooltip-hVZUY_s5.js +0 -149
- package/dist/img-BeMVTwmF.js +0 -20
- package/dist/pdf-DPxOdzfi.js +0 -51
- package/dist/useMouse-AicQS8Vf.js +0 -13
- package/dist/vue-data-ui-nceqWRts.js +0 -301
- package/dist/vue-ui-donut-DSE7ubVv.js +0 -1315
- package/dist/vue-ui-nested-donuts-CYe0Are_.js +0 -1154
- package/dist/vue-ui-tiremarks-B2WWklqG.js +0 -342
- package/dist/vue-ui-treemap-D1dgDhjG.js +0 -952
- package/dist/vue-ui-vertical-bar-Dd4sYeAC.js +0 -958
- package/dist/vue-ui-wheel-ClsKBh52.js +0 -336
- package/dist/vue-ui-xy-C_OUyzTC.js +0 -3135
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
import { defineAsyncComponent as E, computed as p, onMounted as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
|
|
1
|
+
import { defineAsyncComponent as E, computed as p, onMounted as it, ref as y, watch as ct, createElementBlock as g, openBlock as d, unref as r, normalizeStyle as L, normalizeClass as He, createBlock as R, createCommentVNode as _, createElementVNode as D, createVNode as de, createSlots as dt, withCtx as w, renderSlot as b, normalizeProps as U, guardReactiveProps as V, Fragment as W, renderList as j, toDisplayString as X, createTextVNode as vt, nextTick as ft } from "vue";
|
|
2
|
+
import { u as ht, o as pt, e as gt, c as ve, t as mt, p as S, a as yt, b as bt, v as $, d as kt, f as q, X as Ct, F as Ye, L as wt, i as fe, q as $t, r as xt, x as Tt } from "./index-DBSLpcPM.js";
|
|
3
|
+
import { u as Be } from "./useNestedProp-BQFkJRtL.js";
|
|
4
|
+
import { u as _t } from "./usePrinter-CjyE7ii3.js";
|
|
5
|
+
import { u as Nt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
|
+
import { u as Ot } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
|
+
import St from "./Legend-SfJ53F5x.js";
|
|
8
|
+
import Ft from "./Title-CTsOHFNh.js";
|
|
9
|
+
import Pt from "./img-D9CjuW6g.js";
|
|
10
|
+
import { _ as Lt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
+
const It = ["id"], At = {
|
|
11
12
|
key: 1,
|
|
12
13
|
ref: "noTitle",
|
|
13
14
|
class: "vue-data-ui-no-title-space",
|
|
14
15
|
style: "height:36px; width: 100%;background:transparent"
|
|
15
|
-
},
|
|
16
|
+
}, Et = {
|
|
16
17
|
key: 2,
|
|
17
18
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
18
|
-
},
|
|
19
|
+
}, zt = ["xmlns", "viewBox"], Mt = ["width", "height"], Ht = ["id"], Yt = ["stop-color"], Bt = ["stop-color"], Rt = ["d", "fill", "stroke", "stroke-width"], Dt = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "onMouseenter"], Ut = ["x", "y", "font-size", "fill"], Vt = ["x", "y", "font-size", "fill"], Gt = {
|
|
19
20
|
key: 4,
|
|
20
21
|
class: "vue-data-ui-watermark"
|
|
21
|
-
},
|
|
22
|
+
}, Wt = ["onClick"], jt = {
|
|
22
23
|
key: 6,
|
|
23
24
|
ref: "source",
|
|
24
25
|
dir: "auto"
|
|
25
|
-
},
|
|
26
|
+
}, Xt = ["innerHTML"], qt = {
|
|
26
27
|
__name: "vue-ui-flow",
|
|
27
28
|
props: {
|
|
28
29
|
config: {
|
|
@@ -38,67 +39,67 @@ const Pt = ["id"], Lt = {
|
|
|
38
39
|
}
|
|
39
40
|
}
|
|
40
41
|
},
|
|
41
|
-
setup(
|
|
42
|
-
const
|
|
43
|
-
|
|
42
|
+
setup(Re, { expose: De }) {
|
|
43
|
+
const Ue = E(() => import("./vue-ui-accordion-yWXqkLfQ.js")), Ve = E(() => import("./DataTable-IzCJ9gby.js")), Ge = E(() => import("./PackageVersion-u8Hc4rJi.js")), We = E(() => import("./PenAndPaper-6iArlmj7.js")), je = E(() => import("./vue-ui-skeleton-7gkY0oe-.js")), Xe = E(() => import("./Tooltip-4cn1szzA.js")), qe = E(() => import("./UserOptions-X9Ckvwp-.js")), { vue_ui_flow: Ze } = ht(), x = Re, te = p(() => !!x.dataset && x.dataset.length);
|
|
44
|
+
it(() => {
|
|
44
45
|
he();
|
|
45
46
|
});
|
|
46
47
|
function he() {
|
|
47
|
-
|
|
48
|
+
pt(x.dataset) && gt({
|
|
48
49
|
componentName: "VueUiFlow",
|
|
49
50
|
type: "dataset"
|
|
50
51
|
});
|
|
51
52
|
}
|
|
52
|
-
const
|
|
53
|
-
function
|
|
54
|
-
|
|
53
|
+
const oe = y(ve()), z = y(null), pe = y(0), ge = y(0), le = y(!1), ae = y(""), Je = y(null), M = y(!1);
|
|
54
|
+
function me(t) {
|
|
55
|
+
M.value = t, pe.value += 1;
|
|
55
56
|
}
|
|
56
57
|
const e = p({
|
|
57
|
-
get: () =>
|
|
58
|
+
get: () => Ce(),
|
|
58
59
|
set: (t) => t
|
|
59
|
-
}), { userOptionsVisible: ne, setUserOptionsVisibility:
|
|
60
|
+
}), { userOptionsVisible: ne, setUserOptionsVisibility: ye, keepUserOptionState: be } = Nt({ config: e.value }), { svgRef: ke } = Ot({
|
|
60
61
|
config: e.value.style.chart.title
|
|
61
62
|
});
|
|
62
|
-
function
|
|
63
|
-
const t =
|
|
64
|
-
userConfig:
|
|
65
|
-
defaultConfig:
|
|
63
|
+
function Ce() {
|
|
64
|
+
const t = Be({
|
|
65
|
+
userConfig: x.config,
|
|
66
|
+
defaultConfig: Ze
|
|
66
67
|
});
|
|
67
68
|
let l = t;
|
|
68
69
|
return t.theme ? l = {
|
|
69
|
-
...
|
|
70
|
-
userConfig:
|
|
70
|
+
...Be({
|
|
71
|
+
userConfig: yt.vue_ui_flow[t.theme] || x.config,
|
|
71
72
|
defaultConfig: t
|
|
72
73
|
}),
|
|
73
|
-
customPalette:
|
|
74
|
-
} : l = t, l.nodeCategories =
|
|
74
|
+
customPalette: mt[t.theme] || S
|
|
75
|
+
} : l = t, l.nodeCategories = x.config.nodeCategories || {}, l.nodeCategoryColors = x.config.nodeCategoryColors || {}, l;
|
|
75
76
|
}
|
|
76
|
-
|
|
77
|
-
() =>
|
|
77
|
+
ct(
|
|
78
|
+
() => x.config,
|
|
78
79
|
(t) => {
|
|
79
|
-
e.value =
|
|
80
|
+
e.value = Ce(), ne.value = !e.value.userOptions.showOnChartHover, he(), ge.value += 1, N.value.showTable = e.value.table.show;
|
|
80
81
|
},
|
|
81
82
|
{ deep: !0 }
|
|
82
83
|
);
|
|
83
|
-
const { isPrinting:
|
|
84
|
-
elementId: `flow_${
|
|
84
|
+
const { isPrinting: we, isImaging: $e, generatePdf: xe, generateImage: Te } = _t({
|
|
85
|
+
elementId: `flow_${oe.value}`,
|
|
85
86
|
fileName: e.value.style.chart.title.text || "vue-ui-flow",
|
|
86
87
|
options: e.value.userOptions.print
|
|
87
|
-
}), Ke = p(() => e.value.userOptions.show && !e.value.style.chart.title.text),
|
|
88
|
+
}), Ke = p(() => e.value.userOptions.show && !e.value.style.chart.title.text), Z = p(() => bt(e.value.customPalette)), _e = p(() => e.value.style.chart.nodes.gap), H = p(() => e.value.style.chart.nodes.width), N = y({
|
|
88
89
|
showTable: e.value.table.show,
|
|
89
90
|
showTooltip: e.value.style.chart.tooltip.show
|
|
90
|
-
}), Qe = p(() => e.value.style.chart.links.width), se = p(() => !
|
|
91
|
+
}), Qe = p(() => e.value.style.chart.links.width), se = p(() => !x.dataset || !x.dataset.length ? [] : x.dataset.map((t, l) => [
|
|
91
92
|
t[0],
|
|
92
93
|
t[1],
|
|
93
94
|
$(t[2]),
|
|
94
|
-
t[3] ?
|
|
95
|
-
])),
|
|
95
|
+
t[3] ? kt(t[3]) : Z.value[l] || Z.value[l % Z.value.length] || S[l] || S[l % S.length]
|
|
96
|
+
])), Ne = p(() => {
|
|
96
97
|
const t = {};
|
|
97
98
|
function l(a) {
|
|
98
99
|
t[a] || (t[a] = { inflow: 0, outflow: 0 });
|
|
99
100
|
}
|
|
100
|
-
se.value.forEach(([a, s,
|
|
101
|
-
l(a), l(s), t[a].outflow +=
|
|
101
|
+
se.value.forEach(([a, s, f]) => {
|
|
102
|
+
l(a), l(s), t[a].outflow += f, t[s].inflow += f;
|
|
102
103
|
});
|
|
103
104
|
let o = 0;
|
|
104
105
|
for (const a in t) {
|
|
@@ -108,11 +109,11 @@ const Pt = ["id"], Lt = {
|
|
|
108
109
|
return o;
|
|
109
110
|
});
|
|
110
111
|
function et(t) {
|
|
111
|
-
return t /
|
|
112
|
+
return t / Ne.value * 100 + e.value.style.chart.nodes.minHeight;
|
|
112
113
|
}
|
|
113
114
|
function tt(t) {
|
|
114
115
|
const l = e.value.style.chart.nodes.minHeight;
|
|
115
|
-
return (t - l) / 100 *
|
|
116
|
+
return (t - l) / 100 * Ne.value;
|
|
116
117
|
}
|
|
117
118
|
function ot(t) {
|
|
118
119
|
const l = {}, o = {};
|
|
@@ -129,18 +130,18 @@ const Pt = ["id"], Lt = {
|
|
|
129
130
|
const v = l[n]?.level ?? 0, C = v + 1;
|
|
130
131
|
a(n, v), a(u, C), l[n].children || (l[n].children = []), l[n].children.push({ target: u, value: c }), l[n].outflow += c, l[u].inflow += c;
|
|
131
132
|
});
|
|
132
|
-
const s = new Set(t.map(([n]) => n)),
|
|
133
|
+
const s = new Set(t.map(([n]) => n)), f = new Set(t.map(([, n]) => n)), F = Array.from(s).filter((n) => !f.has(n)), B = {};
|
|
133
134
|
F.forEach((n, u) => {
|
|
134
|
-
|
|
135
|
+
B[n] = Z.value[u] || S[u % S.length];
|
|
135
136
|
});
|
|
136
|
-
const
|
|
137
|
+
const T = {};
|
|
137
138
|
t.forEach(([n, u, c, v]) => {
|
|
138
|
-
v && (
|
|
139
|
+
v && (T[n] = v, T[u] = v);
|
|
139
140
|
}), Object.keys(l).forEach((n, u) => {
|
|
140
141
|
const c = e.value.nodeCategories?.[n], v = c ? e.value.nodeCategoryColors?.[c] : null;
|
|
141
|
-
l[n].color =
|
|
142
|
+
l[n].color = T[n] || // 1) explicit
|
|
142
143
|
v || // 2) category
|
|
143
|
-
(F.includes(n) ?
|
|
144
|
+
(F.includes(n) ? B[n] : null) || // 3) root
|
|
144
145
|
S[u % S.length];
|
|
145
146
|
});
|
|
146
147
|
for (const n in l)
|
|
@@ -160,36 +161,36 @@ const Pt = ["id"], Lt = {
|
|
|
160
161
|
i: v,
|
|
161
162
|
color: C.color,
|
|
162
163
|
value: tt(C.height)
|
|
163
|
-
}, u += C.height +
|
|
164
|
+
}, u += C.height + _e.value;
|
|
164
165
|
});
|
|
165
166
|
}
|
|
166
|
-
const
|
|
167
|
+
const A = [];
|
|
167
168
|
for (const n of Object.keys(l)) {
|
|
168
169
|
let u = O[n].absoluteY + e.value.style.chart.padding.top;
|
|
169
170
|
const c = l[n], v = O[n];
|
|
170
171
|
c.children && c.children.forEach(({ target: C, value: i }) => {
|
|
171
|
-
const
|
|
172
|
+
const h = O[C], P = l[C], ee = $(u), ze = $(
|
|
172
173
|
u + i / c.outflow * v.height
|
|
173
174
|
), ce = $(
|
|
174
|
-
|
|
175
|
-
),
|
|
176
|
-
ce + i / P.inflow *
|
|
175
|
+
h.y + e.value.style.chart.padding.top
|
|
176
|
+
), Me = $(
|
|
177
|
+
ce + i / P.inflow * h.height
|
|
177
178
|
);
|
|
178
|
-
|
|
179
|
+
A.push({
|
|
179
180
|
id: ve(),
|
|
180
181
|
source: n,
|
|
181
182
|
target: C,
|
|
182
|
-
path: `M ${$(v.x +
|
|
183
|
+
path: `M ${$(v.x + H.value)} ${ee} L ${$(v.x + H.value)} ${ze} L ${$(h.x)} ${Me} L ${$(h.x)} ${ce} Z`,
|
|
183
184
|
value: i,
|
|
184
185
|
sourceColor: c.color,
|
|
185
186
|
targetColor: P.color
|
|
186
|
-
}), u +=
|
|
187
|
+
}), u += ze - ee, O[C].y += Me - ce;
|
|
187
188
|
});
|
|
188
189
|
}
|
|
189
|
-
return { nodeCoordinates: O, links:
|
|
190
|
+
return { nodeCoordinates: O, links: A };
|
|
190
191
|
}
|
|
191
192
|
const m = p(() => {
|
|
192
|
-
const t = ot(
|
|
193
|
+
const t = ot(x.dataset);
|
|
193
194
|
return {
|
|
194
195
|
nodes: Object.keys(t.nodeCoordinates).map((l, o) => ({
|
|
195
196
|
...t.nodeCoordinates[l],
|
|
@@ -202,82 +203,82 @@ const Pt = ["id"], Lt = {
|
|
|
202
203
|
function lt(t) {
|
|
203
204
|
const l = {};
|
|
204
205
|
for (const a in t) {
|
|
205
|
-
const { x: s, height:
|
|
206
|
-
l[s] || (l[s] = 0), l[s] +=
|
|
206
|
+
const { x: s, height: f } = t[a];
|
|
207
|
+
l[s] || (l[s] = 0), l[s] += f + _e.value;
|
|
207
208
|
}
|
|
208
209
|
return Math.max(...Object.values(l));
|
|
209
210
|
}
|
|
210
211
|
const G = p(() => {
|
|
211
|
-
const { top: t, right: l, bottom: o, left: a } = e.value.style.chart.padding, s = Math.max(...m.value.nodes.map((
|
|
212
|
-
...m.value.nodes.map((
|
|
213
|
-
),
|
|
214
|
-
return { width:
|
|
212
|
+
const { top: t, right: l, bottom: o, left: a } = e.value.style.chart.padding, s = Math.max(...m.value.nodes.map((T) => T.x)), f = a + s + H.value + l, F = Math.max(
|
|
213
|
+
...m.value.nodes.map((T) => T.absoluteY + T.height)
|
|
214
|
+
), B = t + F + o;
|
|
215
|
+
return { width: f, height: B };
|
|
215
216
|
});
|
|
216
217
|
function at(t) {
|
|
217
218
|
const l = {}, o = {}, a = /* @__PURE__ */ new Set();
|
|
218
|
-
return se.value.forEach(([s,
|
|
219
|
-
l[s] || (l[s] = []), o[
|
|
219
|
+
return se.value.forEach(([s, f, F]) => {
|
|
220
|
+
l[s] || (l[s] = []), o[f] || (o[f] = []), l[s].push(f), o[f].push(s);
|
|
220
221
|
}), l[t] && l[t].forEach((s) => a.add(s)), o[t] && o[t].forEach((s) => a.add(s)), Array.from(a).concat(t);
|
|
221
222
|
}
|
|
222
|
-
const k = y(null),
|
|
223
|
+
const k = y(null), Y = y(null), re = y(null), J = y(!1);
|
|
223
224
|
function nt(t) {
|
|
224
|
-
|
|
225
|
+
I.value = [], k.value = at(t.name), Y.value = t.name;
|
|
225
226
|
const l = t.name, o = se.value;
|
|
226
|
-
let a = 0, s = 0,
|
|
227
|
-
const
|
|
227
|
+
let a = 0, s = 0, f = [], F = [];
|
|
228
|
+
const B = new Set(o.map(([i]) => i)), T = new Set(o.map(([, i]) => i)), Ee = Array.from(B).filter((i) => !T.has(i)), O = o.filter(([i]) => Ee.includes(i)).reduce((i, [h, P, ee]) => i + ee, 0), A = {};
|
|
228
229
|
m.value.nodes.forEach((i) => {
|
|
229
|
-
|
|
230
|
-
}), o.forEach(([i,
|
|
231
|
-
|
|
230
|
+
A[i.name] = i.color;
|
|
231
|
+
}), o.forEach(([i, h, P]) => {
|
|
232
|
+
h === l && (a += P, f.push({ source: i, value: P, color: A[i] })), i === l && (s += P, F.push({ target: h, value: P, color: A[h] }));
|
|
232
233
|
});
|
|
233
234
|
const n = Math.max(a, s), u = O > 0 ? n / O * 100 : 0, c = {
|
|
234
235
|
name: l,
|
|
235
236
|
inflow: a,
|
|
236
237
|
outflow: s,
|
|
237
|
-
from:
|
|
238
|
+
from: f,
|
|
238
239
|
to: F,
|
|
239
240
|
percentOfTotal: u,
|
|
240
|
-
color:
|
|
241
|
+
color: A[l] || "#000000"
|
|
241
242
|
};
|
|
242
243
|
re.value = { datapoint: c }, le.value = !0;
|
|
243
244
|
let v = "";
|
|
244
245
|
const C = e.value.style.chart.tooltip.customFormat;
|
|
245
|
-
if (
|
|
246
|
+
if (J.value = !1, Tt(C))
|
|
246
247
|
try {
|
|
247
248
|
const i = C({
|
|
248
249
|
datapoint: c,
|
|
249
250
|
series: m.value,
|
|
250
251
|
config: e.value
|
|
251
252
|
});
|
|
252
|
-
typeof i == "string" && (ae.value = i,
|
|
253
|
+
typeof i == "string" && (ae.value = i, J.value = !0);
|
|
253
254
|
} catch {
|
|
254
255
|
console.warn("Custom format cannot be applied.");
|
|
255
256
|
}
|
|
256
|
-
if (!
|
|
257
|
-
const i = e.value.style.chart.tooltip.showPercentage ? `<div>${
|
|
257
|
+
if (!J.value) {
|
|
258
|
+
const i = e.value.style.chart.tooltip.showPercentage ? `<div>${q({
|
|
258
259
|
p: e.value.style.chart.tooltip.translations.percentOfTotal,
|
|
259
260
|
v: c.percentOfTotal,
|
|
260
261
|
s: "%",
|
|
261
262
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
262
263
|
})}</div>` : "";
|
|
263
|
-
v += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;"><span style="margin-right:4px; color:${c.color}">⏹</span>${c.name}${i}</div>`, c.from.length && (v += `<div>${e.value.style.chart.tooltip.translations.from}</div>`, c.from.forEach((
|
|
264
|
-
v += `<div><span style="color:${
|
|
264
|
+
v += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;"><span style="margin-right:4px; color:${c.color}">⏹</span>${c.name}${i}</div>`, c.from.length && (v += `<div>${e.value.style.chart.tooltip.translations.from}</div>`, c.from.forEach((h) => {
|
|
265
|
+
v += `<div><span style="color:${h.color}">⏹←</span> ${h.source}: ${fe(
|
|
265
266
|
e.value.style.chart.nodes.labels.formatter,
|
|
266
|
-
|
|
267
|
-
|
|
267
|
+
h.value,
|
|
268
|
+
q({
|
|
268
269
|
p: e.value.style.chart.nodes.labels.prefix,
|
|
269
|
-
v:
|
|
270
|
+
v: h.value,
|
|
270
271
|
s: e.value.style.chart.nodes.labels.suffix,
|
|
271
272
|
r: e.value.style.chart.nodes.labels.rounding
|
|
272
273
|
})
|
|
273
274
|
)}</div>`;
|
|
274
|
-
})), c.to.length && (v += `<div style="margin-top:6px;">${e.value.style.chart.tooltip.translations.to}</div>`, c.to.forEach((
|
|
275
|
-
v += `<div><span style="color:${
|
|
275
|
+
})), c.to.length && (v += `<div style="margin-top:6px;">${e.value.style.chart.tooltip.translations.to}</div>`, c.to.forEach((h) => {
|
|
276
|
+
v += `<div><span style="color:${h.color}">⏹→</span> ${h.target}: ${fe(
|
|
276
277
|
e.value.style.chart.nodes.labels.formatter,
|
|
277
|
-
|
|
278
|
-
|
|
278
|
+
h.value,
|
|
279
|
+
q({
|
|
279
280
|
p: e.value.style.chart.nodes.labels.prefix,
|
|
280
|
-
v:
|
|
281
|
+
v: h.value,
|
|
281
282
|
s: e.value.style.chart.nodes.labels.suffix,
|
|
282
283
|
r: e.value.style.chart.nodes.labels.rounding
|
|
283
284
|
})
|
|
@@ -285,10 +286,10 @@ const Pt = ["id"], Lt = {
|
|
|
285
286
|
})), ae.value = v;
|
|
286
287
|
}
|
|
287
288
|
}
|
|
288
|
-
function
|
|
289
|
-
k.value = null,
|
|
289
|
+
function Oe() {
|
|
290
|
+
k.value = null, Y.value = null, le.value = !1;
|
|
290
291
|
}
|
|
291
|
-
const
|
|
292
|
+
const Se = p(() => m.value.links.map(
|
|
292
293
|
({ source: t, target: l, sourceColor: o, targetColor: a, value: s }) => ({
|
|
293
294
|
source: t,
|
|
294
295
|
target: l,
|
|
@@ -297,9 +298,9 @@ const Pt = ["id"], Lt = {
|
|
|
297
298
|
value: s
|
|
298
299
|
})
|
|
299
300
|
));
|
|
300
|
-
function
|
|
301
|
-
|
|
302
|
-
const l =
|
|
301
|
+
function Fe(t = null) {
|
|
302
|
+
ft(() => {
|
|
303
|
+
const l = Se.value.map((s, f) => [[s.source], [s.target], [s.value]]), o = [
|
|
303
304
|
[e.value.style.chart.title.text],
|
|
304
305
|
[e.value.style.chart.title.subtitle.text],
|
|
305
306
|
[
|
|
@@ -307,19 +308,19 @@ const Pt = ["id"], Lt = {
|
|
|
307
308
|
[e.value.table.columnNames.target],
|
|
308
309
|
[e.value.table.columnNames.value]
|
|
309
310
|
]
|
|
310
|
-
].concat(l), a =
|
|
311
|
-
t ? t(a) :
|
|
311
|
+
].concat(l), a = $t(o);
|
|
312
|
+
t ? t(a) : xt({
|
|
312
313
|
csvContent: a,
|
|
313
314
|
title: e.value.style.chart.title.text || "vue-ui-flow"
|
|
314
315
|
});
|
|
315
316
|
});
|
|
316
317
|
}
|
|
317
|
-
const
|
|
318
|
+
const K = p(() => {
|
|
318
319
|
const t = [
|
|
319
320
|
e.value.table.columnNames.source,
|
|
320
321
|
e.value.table.columnNames.target,
|
|
321
322
|
e.value.table.columnNames.value
|
|
322
|
-
], l =
|
|
323
|
+
], l = Se.value.map((s, f) => [
|
|
323
324
|
{
|
|
324
325
|
color: s.sourceColor,
|
|
325
326
|
name: s.source
|
|
@@ -328,7 +329,7 @@ const Pt = ["id"], Lt = {
|
|
|
328
329
|
color: s.targetColor,
|
|
329
330
|
name: s.target
|
|
330
331
|
},
|
|
331
|
-
|
|
332
|
+
q({
|
|
332
333
|
p: e.value.style.chart.nodes.labels.prefix,
|
|
333
334
|
v: s.value,
|
|
334
335
|
s: e.value.style.chart.nodes.labels.suffix,
|
|
@@ -361,17 +362,17 @@ const Pt = ["id"], Lt = {
|
|
|
361
362
|
function st() {
|
|
362
363
|
return m.value;
|
|
363
364
|
}
|
|
364
|
-
function
|
|
365
|
+
function Pe() {
|
|
365
366
|
N.value.showTable = !N.value.showTable;
|
|
366
367
|
}
|
|
367
|
-
const
|
|
368
|
+
const Q = y(!1);
|
|
368
369
|
function ue() {
|
|
369
|
-
|
|
370
|
+
Q.value = !Q.value;
|
|
370
371
|
}
|
|
371
|
-
function
|
|
372
|
+
function Le() {
|
|
372
373
|
N.value.showTooltip = !N.value.showTooltip;
|
|
373
374
|
}
|
|
374
|
-
const
|
|
375
|
+
const Ie = p(() => {
|
|
375
376
|
const t = new Set(
|
|
376
377
|
m.value.nodes.map(
|
|
377
378
|
(l) => e.value.nodeCategories[l.name] || "__uncategorized__"
|
|
@@ -387,20 +388,20 @@ const Pt = ["id"], Lt = {
|
|
|
387
388
|
})).map((l, o) => ({
|
|
388
389
|
...l,
|
|
389
390
|
segregate: () => ie({ legend: l, i: o }),
|
|
390
|
-
opacity:
|
|
391
|
+
opacity: I.value.length ? I.value.includes(o) ? 1 : 0.5 : 1
|
|
391
392
|
}));
|
|
392
393
|
}), Ae = p(
|
|
393
|
-
() =>
|
|
394
|
-
),
|
|
394
|
+
() => Ie.value.filter((t) => t.name !== "__uncategorized__")
|
|
395
|
+
), I = y([]);
|
|
395
396
|
function ie({ legend: t, i: l }) {
|
|
396
397
|
const o = t.name;
|
|
397
398
|
if (k.value?.every(
|
|
398
399
|
(a) => e.value.nodeCategories[a] === o
|
|
399
400
|
)) {
|
|
400
|
-
k.value = null,
|
|
401
|
+
k.value = null, Y.value = null, I.value = [];
|
|
401
402
|
return;
|
|
402
403
|
}
|
|
403
|
-
|
|
404
|
+
I.value = [l], k.value = m.value.nodes.filter((a) => e.value.nodeCategories[a.name] === o).map((a) => a.name), Y.value = null;
|
|
404
405
|
}
|
|
405
406
|
const rt = p(() => ({
|
|
406
407
|
cy: "flow-legend",
|
|
@@ -410,36 +411,50 @@ const Pt = ["id"], Lt = {
|
|
|
410
411
|
paddingBottom: e.value.style.chart.legend.paddingBottom,
|
|
411
412
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : "normal"
|
|
412
413
|
}));
|
|
414
|
+
async function ut({ scale: t = 2 } = {}) {
|
|
415
|
+
if (!z.value) return;
|
|
416
|
+
const { width: l, height: o } = z.value.getBoundingClientRect(), a = l / o, { imageUri: s, base64: f } = await Pt({ domElement: z.value, base64: !0, img: !0, scale: t });
|
|
417
|
+
return {
|
|
418
|
+
imageUri: s,
|
|
419
|
+
base64: f,
|
|
420
|
+
title: e.value.style.chart.title.text,
|
|
421
|
+
width: l,
|
|
422
|
+
height: o,
|
|
423
|
+
aspectRatio: a
|
|
424
|
+
};
|
|
425
|
+
}
|
|
413
426
|
return De({
|
|
414
427
|
getData: st,
|
|
415
|
-
|
|
428
|
+
getImage: ut,
|
|
429
|
+
generateCsv: Fe,
|
|
416
430
|
generateImage: Te,
|
|
417
|
-
generatePdf:
|
|
418
|
-
toggleTable:
|
|
431
|
+
generatePdf: xe,
|
|
432
|
+
toggleTable: Pe,
|
|
419
433
|
toggleAnnotator: ue,
|
|
420
|
-
toggleTooltip:
|
|
434
|
+
toggleTooltip: Le,
|
|
421
435
|
drillCategory: ie,
|
|
422
|
-
unselectNode:
|
|
436
|
+
unselectNode: Oe,
|
|
437
|
+
toggleFullscreen: me
|
|
423
438
|
}), (t, l) => (d(), g("div", {
|
|
424
439
|
ref_key: "flowChart",
|
|
425
|
-
ref:
|
|
426
|
-
class:
|
|
440
|
+
ref: z,
|
|
441
|
+
class: He(`vue-ui-flow ${M.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
427
442
|
style: L(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
428
|
-
id: `flow_${
|
|
429
|
-
onMouseenter: l[3] || (l[3] = () => r(
|
|
430
|
-
onMouseleave: l[4] || (l[4] = () => r(
|
|
443
|
+
id: `flow_${oe.value}`,
|
|
444
|
+
onMouseenter: l[3] || (l[3] = () => r(ye)(!0)),
|
|
445
|
+
onMouseleave: l[4] || (l[4] = () => r(ye)(!1))
|
|
431
446
|
}, [
|
|
432
|
-
e.value.userOptions.buttons.annotator ? (d(),
|
|
447
|
+
e.value.userOptions.buttons.annotator ? (d(), R(r(We), {
|
|
433
448
|
key: 0,
|
|
434
|
-
svgRef: r(
|
|
449
|
+
svgRef: r(ke),
|
|
435
450
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
436
451
|
color: e.value.style.chart.color,
|
|
437
|
-
active:
|
|
452
|
+
active: Q.value,
|
|
438
453
|
onClose: ue
|
|
439
454
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : _("", !0),
|
|
440
|
-
Ke.value ? (d(), g("div",
|
|
441
|
-
e.value.style.chart.title.text ? (d(), g("div",
|
|
442
|
-
(d(),
|
|
455
|
+
Ke.value ? (d(), g("div", At, null, 512)) : _("", !0),
|
|
456
|
+
e.value.style.chart.title.text ? (d(), g("div", Et, [
|
|
457
|
+
(d(), R(Ft, {
|
|
443
458
|
key: `title_${ge.value}`,
|
|
444
459
|
config: {
|
|
445
460
|
title: {
|
|
@@ -453,43 +468,44 @@ const Pt = ["id"], Lt = {
|
|
|
453
468
|
}
|
|
454
469
|
}, null, 8, ["config"]))
|
|
455
470
|
])) : _("", !0),
|
|
456
|
-
e.value.userOptions.show &&
|
|
471
|
+
e.value.userOptions.show && te.value && (r(be) || r(ne)) ? (d(), R(r(qe), {
|
|
457
472
|
ref: "details",
|
|
458
473
|
key: `user_option_${pe.value}`,
|
|
459
474
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
460
475
|
color: e.value.style.chart.color,
|
|
461
|
-
isPrinting: r(
|
|
462
|
-
isImaging: r(
|
|
463
|
-
uid:
|
|
476
|
+
isPrinting: r(we),
|
|
477
|
+
isImaging: r($e),
|
|
478
|
+
uid: oe.value,
|
|
464
479
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
465
480
|
hasXls: e.value.userOptions.buttons.csv,
|
|
466
481
|
hasImg: e.value.userOptions.buttons.img,
|
|
467
482
|
hasTable: e.value.userOptions.buttons.table,
|
|
468
483
|
callbacks: e.value.userOptions.callbacks,
|
|
469
484
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
470
|
-
isFullscreen:
|
|
485
|
+
isFullscreen: M.value,
|
|
471
486
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
472
|
-
chartElement:
|
|
487
|
+
chartElement: z.value,
|
|
473
488
|
position: e.value.userOptions.position,
|
|
474
489
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
475
|
-
|
|
490
|
+
printScale: e.value.userOptions.print.scale,
|
|
491
|
+
isAnnotation: Q.value,
|
|
476
492
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
477
493
|
isTooltip: N.value.showTooltip,
|
|
478
|
-
onToggleTooltip:
|
|
479
|
-
onToggleFullscreen:
|
|
480
|
-
onGeneratePdf: r(
|
|
481
|
-
onGenerateCsv:
|
|
494
|
+
onToggleTooltip: Le,
|
|
495
|
+
onToggleFullscreen: me,
|
|
496
|
+
onGeneratePdf: r(xe),
|
|
497
|
+
onGenerateCsv: Fe,
|
|
482
498
|
onGenerateImage: r(Te),
|
|
483
|
-
onToggleTable:
|
|
499
|
+
onToggleTable: Pe,
|
|
484
500
|
onToggleAnnotator: ue,
|
|
485
501
|
style: L({
|
|
486
|
-
visibility: r(
|
|
502
|
+
visibility: r(be) ? r(ne) ? "visible" : "hidden" : "visible"
|
|
487
503
|
})
|
|
488
|
-
},
|
|
504
|
+
}, dt({ _: 2 }, [
|
|
489
505
|
t.$slots.menuIcon ? {
|
|
490
506
|
name: "menuIcon",
|
|
491
507
|
fn: w(({ isOpen: o, color: a }) => [
|
|
492
|
-
b(t.$slots, "menuIcon",
|
|
508
|
+
b(t.$slots, "menuIcon", U(V({ isOpen: o, color: a })), void 0, !0)
|
|
493
509
|
]),
|
|
494
510
|
key: "0"
|
|
495
511
|
} : void 0,
|
|
@@ -531,26 +547,26 @@ const Pt = ["id"], Lt = {
|
|
|
531
547
|
t.$slots.optionFullscreen ? {
|
|
532
548
|
name: "optionFullscreen",
|
|
533
549
|
fn: w(({ toggleFullscreen: o, isFullscreen: a }) => [
|
|
534
|
-
b(t.$slots, "optionFullscreen",
|
|
550
|
+
b(t.$slots, "optionFullscreen", U(V({ toggleFullscreen: o, isFullscreen: a })), void 0, !0)
|
|
535
551
|
]),
|
|
536
552
|
key: "6"
|
|
537
553
|
} : void 0,
|
|
538
554
|
t.$slots.optionAnnotator ? {
|
|
539
555
|
name: "optionAnnotator",
|
|
540
556
|
fn: w(({ toggleAnnotator: o, isAnnotator: a }) => [
|
|
541
|
-
b(t.$slots, "optionAnnotator",
|
|
557
|
+
b(t.$slots, "optionAnnotator", U(V({ toggleAnnotator: o, isAnnotator: a })), void 0, !0)
|
|
542
558
|
]),
|
|
543
559
|
key: "7"
|
|
544
560
|
} : void 0
|
|
545
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "callbacks", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "hasTooltip", "isTooltip", "onGeneratePdf", "onGenerateImage", "style"])) : _("", !0),
|
|
561
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "callbacks", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "printScale", "isAnnotation", "hasTooltip", "isTooltip", "onGeneratePdf", "onGenerateImage", "style"])) : _("", !0),
|
|
546
562
|
(d(), g("svg", {
|
|
547
563
|
ref_key: "svgRef",
|
|
548
|
-
ref:
|
|
549
|
-
xmlns: r(
|
|
564
|
+
ref: ke,
|
|
565
|
+
xmlns: r(Ct),
|
|
550
566
|
viewBox: `0 0 ${G.value.width} ${G.value.height}`,
|
|
551
|
-
class:
|
|
552
|
-
"vue-data-ui-fullscreen--on":
|
|
553
|
-
"vue-data-ui-fulscreen--off": !
|
|
567
|
+
class: He({
|
|
568
|
+
"vue-data-ui-fullscreen--on": M.value,
|
|
569
|
+
"vue-data-ui-fulscreen--off": !M.value
|
|
554
570
|
}),
|
|
555
571
|
style: L(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
556
572
|
}, [
|
|
@@ -566,9 +582,9 @@ const Pt = ["id"], Lt = {
|
|
|
566
582
|
}
|
|
567
583
|
}, [
|
|
568
584
|
b(t.$slots, "chart-background", {}, void 0, !0)
|
|
569
|
-
], 8,
|
|
585
|
+
], 8, Mt)) : _("", !0),
|
|
570
586
|
D("defs", null, [
|
|
571
|
-
(d(!0), g(
|
|
587
|
+
(d(!0), g(W, null, j(m.value.links, (o, a) => (d(), g("linearGradient", {
|
|
572
588
|
id: o.id,
|
|
573
589
|
x1: "0%",
|
|
574
590
|
y1: "0%",
|
|
@@ -578,75 +594,75 @@ const Pt = ["id"], Lt = {
|
|
|
578
594
|
D("stop", {
|
|
579
595
|
offset: "0%",
|
|
580
596
|
"stop-color": o.sourceColor
|
|
581
|
-
}, null, 8,
|
|
597
|
+
}, null, 8, Yt),
|
|
582
598
|
D("stop", {
|
|
583
599
|
offset: "100%",
|
|
584
600
|
"stop-color": o.targetColor
|
|
585
|
-
}, null, 8,
|
|
586
|
-
], 8,
|
|
601
|
+
}, null, 8, Bt)
|
|
602
|
+
], 8, Ht))), 256))
|
|
587
603
|
]),
|
|
588
|
-
(d(!0), g(
|
|
604
|
+
(d(!0), g(W, null, j(m.value.links, (o) => (d(), g("path", {
|
|
589
605
|
class: "vue-ui-flow-link",
|
|
590
606
|
d: o.path,
|
|
591
607
|
fill: `url(#${o.id})`,
|
|
592
608
|
stroke: e.value.style.chart.links.stroke,
|
|
593
609
|
"stroke-width": e.value.style.chart.links.strokeWidth,
|
|
594
610
|
style: L(`
|
|
595
|
-
opacity:${k.value ? k.value.includes(o.source) && k.value.includes(o.target) ? 1 : 0.3 :
|
|
611
|
+
opacity:${k.value ? k.value.includes(o.source) && k.value.includes(o.target) ? 1 : 0.3 : Y.value ? [o.target, o.source].includes(Y.value) ? 1 : 0.3 : e.value.style.chart.links.opacity}
|
|
596
612
|
`)
|
|
597
|
-
}, null, 12,
|
|
598
|
-
(d(!0), g(
|
|
613
|
+
}, null, 12, Rt))), 256)),
|
|
614
|
+
(d(!0), g(W, null, j(m.value.nodes, (o, a) => (d(), g("rect", {
|
|
599
615
|
class: "vue-ui-flow-node",
|
|
600
616
|
x: o.x,
|
|
601
617
|
y: r($)(o.absoluteY) + e.value.style.chart.padding.top,
|
|
602
618
|
height: r($)(o.height),
|
|
603
|
-
width:
|
|
619
|
+
width: H.value,
|
|
604
620
|
fill: o.color,
|
|
605
621
|
stroke: e.value.style.chart.nodes.stroke,
|
|
606
622
|
"stroke-width": e.value.style.chart.nodes.strokeWidth,
|
|
607
623
|
onMouseenter: (s) => nt(o),
|
|
608
|
-
onMouseleave: l[0] || (l[0] = (s) =>
|
|
624
|
+
onMouseleave: l[0] || (l[0] = (s) => Oe()),
|
|
609
625
|
style: L(`opacity:${k.value ? k.value.includes(o.name) ? 1 : 0.3 : 1}`)
|
|
610
|
-
}, null, 44,
|
|
611
|
-
(d(!0), g(
|
|
612
|
-
x: o.x +
|
|
626
|
+
}, null, 44, Dt))), 256)),
|
|
627
|
+
(d(!0), g(W, null, j(m.value.nodes, (o, a) => (d(), g("text", {
|
|
628
|
+
x: o.x + H.value / 2,
|
|
613
629
|
y: r($)(
|
|
614
630
|
o.absoluteY + o.height / 2 - e.value.style.chart.nodes.labels.fontSize / 4
|
|
615
631
|
) + e.value.style.chart.padding.top,
|
|
616
632
|
"font-size": e.value.style.chart.nodes.labels.fontSize,
|
|
617
|
-
fill: r(
|
|
633
|
+
fill: r(Ye)(o.color),
|
|
618
634
|
"text-anchor": "middle",
|
|
619
635
|
style: L(`pointer-events: none; opacity:${k.value ? k.value.includes(o.name) ? 1 : 0 : 1}`)
|
|
620
|
-
},
|
|
636
|
+
}, X(e.value.style.chart.nodes.labels.abbreviation.use ? r(wt)({
|
|
621
637
|
source: o.name,
|
|
622
638
|
length: e.value.style.chart.nodes.labels.abbreviation.length
|
|
623
|
-
}) : o.name), 13,
|
|
624
|
-
(d(!0), g(
|
|
625
|
-
x: o.x +
|
|
639
|
+
}) : o.name), 13, Ut))), 256)),
|
|
640
|
+
(d(!0), g(W, null, j(m.value.nodes, (o, a) => (d(), g("text", {
|
|
641
|
+
x: o.x + H.value / 2,
|
|
626
642
|
y: r($)(
|
|
627
643
|
o.absoluteY + o.height / 2 + e.value.style.chart.nodes.labels.fontSize
|
|
628
644
|
) + e.value.style.chart.padding.top,
|
|
629
645
|
"font-size": e.value.style.chart.nodes.labels.fontSize,
|
|
630
|
-
fill: r(
|
|
646
|
+
fill: r(Ye)(o.color),
|
|
631
647
|
"text-anchor": "middle",
|
|
632
648
|
style: L(`pointer-events: none; opacity:${k.value ? k.value.includes(o.name) ? 1 : 0 : 1}`)
|
|
633
|
-
},
|
|
649
|
+
}, X(r(fe)(
|
|
634
650
|
e.value.style.chart.nodes.labels.formatter,
|
|
635
651
|
o.value,
|
|
636
|
-
r(
|
|
652
|
+
r(q)({
|
|
637
653
|
p: e.value.style.chart.nodes.labels.prefix,
|
|
638
654
|
v: o.value,
|
|
639
655
|
s: e.value.style.chart.nodes.labels.suffix,
|
|
640
656
|
r: e.value.style.chart.nodes.labels.rounding
|
|
641
657
|
}),
|
|
642
658
|
{ datapoint: o, seriesIndex: a }
|
|
643
|
-
)), 13,
|
|
659
|
+
)), 13, Vt))), 256)),
|
|
644
660
|
b(t.$slots, "svg", { svg: G.value }, void 0, !0)
|
|
645
|
-
], 14,
|
|
646
|
-
t.$slots.watermark ? (d(), g("div",
|
|
647
|
-
b(t.$slots, "watermark",
|
|
661
|
+
], 14, zt)),
|
|
662
|
+
t.$slots.watermark ? (d(), g("div", Gt, [
|
|
663
|
+
b(t.$slots, "watermark", U(V({ isPrinting: r(we) || r($e) })), void 0, !0)
|
|
648
664
|
])) : _("", !0),
|
|
649
|
-
|
|
665
|
+
te.value ? _("", !0) : (d(), R(r(je), {
|
|
650
666
|
key: 5,
|
|
651
667
|
config: {
|
|
652
668
|
type: "flow",
|
|
@@ -657,9 +673,9 @@ const Pt = ["id"], Lt = {
|
|
|
657
673
|
}, null, 8, ["config"])),
|
|
658
674
|
D("div", {
|
|
659
675
|
ref_key: "chartLegend",
|
|
660
|
-
ref:
|
|
676
|
+
ref: Je
|
|
661
677
|
}, [
|
|
662
|
-
e.value.style.chart.legend.show && Ae.value.length ? (d(),
|
|
678
|
+
e.value.style.chart.legend.show && Ae.value.length ? (d(), R(St, {
|
|
663
679
|
key: 0,
|
|
664
680
|
legendSet: Ae.value,
|
|
665
681
|
config: rt.value,
|
|
@@ -668,17 +684,17 @@ const Pt = ["id"], Lt = {
|
|
|
668
684
|
item: w(({ legend: o, index: a }) => [
|
|
669
685
|
D("div", {
|
|
670
686
|
onClick: (s) => o.segregate(),
|
|
671
|
-
style: L(`opacity:${
|
|
672
|
-
},
|
|
687
|
+
style: L(`opacity:${I.value.length ? I.value.includes(a) ? 1 : 0.5 : 1}`)
|
|
688
|
+
}, X(o.name) + " (" + X(o.count) + ") ", 13, Wt)
|
|
673
689
|
]),
|
|
674
690
|
_: 1
|
|
675
691
|
}, 8, ["legendSet", "config"])) : _("", !0),
|
|
676
|
-
b(t.$slots, "legend", { legend:
|
|
692
|
+
b(t.$slots, "legend", { legend: Ie.value }, void 0, !0)
|
|
677
693
|
], 512),
|
|
678
|
-
t.$slots.source ? (d(), g("div",
|
|
694
|
+
t.$slots.source ? (d(), g("div", jt, [
|
|
679
695
|
b(t.$slots, "source", {}, void 0, !0)
|
|
680
696
|
], 512)) : _("", !0),
|
|
681
|
-
de(r(
|
|
697
|
+
de(r(Xe), {
|
|
682
698
|
show: N.value.showTooltip && le.value,
|
|
683
699
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
684
700
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -689,20 +705,20 @@ const Pt = ["id"], Lt = {
|
|
|
689
705
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
690
706
|
position: e.value.style.chart.tooltip.position,
|
|
691
707
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
692
|
-
parent:
|
|
708
|
+
parent: z.value,
|
|
693
709
|
content: ae.value,
|
|
694
|
-
isCustom:
|
|
695
|
-
isFullscreen:
|
|
710
|
+
isCustom: J.value,
|
|
711
|
+
isFullscreen: M.value
|
|
696
712
|
}, {
|
|
697
713
|
"tooltip-before": w(() => [
|
|
698
|
-
b(t.$slots, "tooltip-before",
|
|
714
|
+
b(t.$slots, "tooltip-before", U(V({ ...re.value })), void 0, !0)
|
|
699
715
|
]),
|
|
700
716
|
"tooltip-after": w(() => [
|
|
701
|
-
b(t.$slots, "tooltip-after",
|
|
717
|
+
b(t.$slots, "tooltip-after", U(V({ ...re.value })), void 0, !0)
|
|
702
718
|
]),
|
|
703
719
|
_: 3
|
|
704
720
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen"]),
|
|
705
|
-
|
|
721
|
+
te.value ? (d(), R(r(Ue), {
|
|
706
722
|
key: 7,
|
|
707
723
|
hideDetails: "",
|
|
708
724
|
config: {
|
|
@@ -720,10 +736,10 @@ const Pt = ["id"], Lt = {
|
|
|
720
736
|
}, {
|
|
721
737
|
content: w(() => [
|
|
722
738
|
de(r(Ve), {
|
|
723
|
-
colNames:
|
|
724
|
-
head:
|
|
725
|
-
body:
|
|
726
|
-
config:
|
|
739
|
+
colNames: K.value.colNames,
|
|
740
|
+
head: K.value.head,
|
|
741
|
+
body: K.value.body,
|
|
742
|
+
config: K.value.config,
|
|
727
743
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
728
744
|
onClose: l[2] || (l[2] = (o) => N.value.showTable = !1)
|
|
729
745
|
}, {
|
|
@@ -731,19 +747,19 @@ const Pt = ["id"], Lt = {
|
|
|
731
747
|
D("div", {
|
|
732
748
|
innerHTML: o,
|
|
733
749
|
style: { display: "flex", "align-items": "center" }
|
|
734
|
-
}, null, 8,
|
|
750
|
+
}, null, 8, Xt)
|
|
735
751
|
]),
|
|
736
752
|
td: w(({ td: o }) => [
|
|
737
|
-
|
|
753
|
+
vt(X(o.name || o), 1)
|
|
738
754
|
]),
|
|
739
755
|
_: 1
|
|
740
756
|
}, 8, ["colNames", "head", "body", "config", "title"])
|
|
741
757
|
]),
|
|
742
758
|
_: 1
|
|
743
759
|
}, 8, ["config"])) : _("", !0)
|
|
744
|
-
], 46,
|
|
760
|
+
], 46, It));
|
|
745
761
|
}
|
|
746
|
-
},
|
|
762
|
+
}, so = /* @__PURE__ */ Lt(qt, [["__scopeId", "data-v-dbf97adc"]]);
|
|
747
763
|
export {
|
|
748
|
-
|
|
764
|
+
so as default
|
|
749
765
|
};
|