vue-data-ui 2.2.92 → 2.2.94
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/dist/index-DZlxUin4.js +57288 -0
- package/dist/{index.es-Dc9Fd4o6.js → index.es-Cgqo-FBk.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/vue-data-ui.js +61 -455
- package/package.json +1 -1
- package/dist/data-table-d-VcuH-r.js +0 -1488
- package/dist/legend-DJCYLsl_.js +0 -61
- package/dist/themes-lgjsYHsH.js +0 -4967
- package/dist/title-BF-9Qcni.js +0 -56
- package/dist/tooltip-D85WEOKi.js +0 -94
- package/dist/user-options-DZgCz8UA.js +0 -415
- package/dist/vue-ui-3d-bar-DW7kGJSz.js +0 -20360
- package/dist/vue-ui-age-pyramid-4hcuKpFY.js +0 -781
- package/dist/vue-ui-annotator-C83FVvl8.js +0 -2175
- package/dist/vue-ui-candlestick-diclGj95.js +0 -807
- package/dist/vue-ui-chestnut-ACetHLdG.js +0 -1049
- package/dist/vue-ui-cursor-Rx7UNaYT.js +0 -229
- package/dist/vue-ui-dashboard-B3PlN0ks.js +0 -231
- package/dist/vue-ui-digits-CxMXID42.js +0 -154
- package/dist/vue-ui-donut-DMiwVXNd.js +0 -1534
- package/dist/vue-ui-dumbbell-B_X1T8TR.js +0 -621
- package/dist/vue-ui-flow-B72wzQ6V.js +0 -451
- package/dist/vue-ui-galaxy-DXX5yivT.js +0 -482
- package/dist/vue-ui-gauge-Cs9PDurH.js +0 -466
- package/dist/vue-ui-heatmap-PcoNSLdN.js +0 -581
- package/dist/vue-ui-kpi-DchEmPtB.js +0 -55
- package/dist/vue-ui-mini-loader-DltJLkqy.js +0 -131
- package/dist/vue-ui-molecule-CWvukBzs.js +0 -746
- package/dist/vue-ui-mood-radar-DEfdtIi8.js +0 -544
- package/dist/vue-ui-nested-donuts-9URpqgXE.js +0 -768
- package/dist/vue-ui-onion-C0eowUT6.js +0 -551
- package/dist/vue-ui-parallel-coordinate-plot-Bc_pAaPJ.js +0 -647
- package/dist/vue-ui-quadrant-_ddVAm9V.js +0 -1174
- package/dist/vue-ui-quick-chart-Cio0hDYO.js +0 -1310
- package/dist/vue-ui-radar-Dyg38i33.js +0 -853
- package/dist/vue-ui-rating-CE1Lmwd2.js +0 -271
- package/dist/vue-ui-relation-circle-BMlB3k3d.js +0 -303
- package/dist/vue-ui-rings-BuXeijvb.js +0 -507
- package/dist/vue-ui-scatter-B1hZfOua.js +0 -870
- package/dist/vue-ui-screenshot-0QXgxzGs.js +0 -160
- package/dist/vue-ui-smiley-B7kR7exr.js +0 -763
- package/dist/vue-ui-spark-trend-BmL2KiYL.js +0 -245
- package/dist/vue-ui-sparkgauge-BMzFv14L.js +0 -158
- package/dist/vue-ui-sparkhistogram-DWpOXqHm.js +0 -243
- package/dist/vue-ui-sparkstackbar-DB9VQXlc.js +0 -244
- package/dist/vue-ui-strip-plot-DyN6P0JO.js +0 -614
- package/dist/vue-ui-table-DM3zL89q.js +0 -2180
- package/dist/vue-ui-table-heatmap-gWx0Nslu.js +0 -237
- package/dist/vue-ui-thermometer-Bcqv5kd_.js +0 -384
- package/dist/vue-ui-timer-BIFxjujK.js +0 -451
- package/dist/vue-ui-tiremarks-zBwHpED_.js +0 -248
- package/dist/vue-ui-treemap-BaplVc_z.js +0 -719
- package/dist/vue-ui-vertical-bar-CdK6ZJPM.js +0 -734
- package/dist/vue-ui-waffle-COOzH7M3.js +0 -635
- package/dist/vue-ui-wheel-BEpuVTBk.js +0 -226
- package/dist/vue-ui-word-cloud-DNqxAAiX.js +0 -344
- package/dist/vue-ui-xy-_mHq-czW.js +0 -2058
- package/dist/vue-ui-xy-canvas-DqX8Gee5.js +0 -1003
|
@@ -1,451 +0,0 @@
|
|
|
1
|
-
import { computed as f, onMounted as _e, ref as k, openBlock as r, createElementBlock as v, normalizeClass as oe, normalizeStyle as w, createVNode as ae, createCommentVNode as L, createBlock as G, unref as m, createSlots as Ne, withCtx as b, renderSlot as $, normalizeProps as Te, guardReactiveProps as Fe, createElementVNode as O, Fragment as N, renderList as T, toDisplayString as A, createTextVNode as Pe, nextTick as Ie } from "vue";
|
|
2
|
-
import { t as He } from "./themes-lgjsYHsH.js";
|
|
3
|
-
import { _ as Le, i as Oe, j as Ee, e as ne, f as Se, p as B, g as Me, n as se, X as ze, F as ue, H as Ye, D as De, v as Ge, w as Ae } from "./data-table-d-VcuH-r.js";
|
|
4
|
-
import { u as re, _ as Be } from "./title-BF-9Qcni.js";
|
|
5
|
-
import { U as je } from "./user-options-DZgCz8UA.js";
|
|
6
|
-
import { u as Ue, a as Ve, S as Xe, A as We } from "./vue-ui-3d-bar-DW7kGJSz.js";
|
|
7
|
-
const Re = ["id"], Ze = ["xmlns", "viewBox"], qe = ["id"], Je = ["stop-color"], Ke = ["stop-color"], Qe = ["d", "fill", "stroke", "stroke-width"], et = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "onMouseenter"], tt = ["x", "y", "font-size", "fill"], lt = ["x", "y", "font-size", "fill"], ot = ["innerHTML"], at = {
|
|
8
|
-
__name: "vue-ui-flow",
|
|
9
|
-
props: {
|
|
10
|
-
config: {
|
|
11
|
-
type: Object,
|
|
12
|
-
default() {
|
|
13
|
-
return {};
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
dataset: {
|
|
17
|
-
type: Array,
|
|
18
|
-
default() {
|
|
19
|
-
return [];
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
setup(ie, { expose: ce }) {
|
|
24
|
-
const h = ie, { vue_ui_flow: de } = Ue(), E = f(() => !!h.dataset && h.dataset.length);
|
|
25
|
-
_e(() => {
|
|
26
|
-
Oe(h.dataset) && Ee({
|
|
27
|
-
componentName: "VueUiFlow",
|
|
28
|
-
type: "dataset"
|
|
29
|
-
});
|
|
30
|
-
});
|
|
31
|
-
const S = k(ne()), j = k(null), U = k(0), _ = k(!1);
|
|
32
|
-
function ve(o) {
|
|
33
|
-
_.value = o, U.value += 1;
|
|
34
|
-
}
|
|
35
|
-
const e = f(() => {
|
|
36
|
-
const o = re({
|
|
37
|
-
userConfig: h.config,
|
|
38
|
-
defaultConfig: de
|
|
39
|
-
});
|
|
40
|
-
return o.theme ? {
|
|
41
|
-
...re({
|
|
42
|
-
userConfig: He.vue_ui_flow[o.theme] || h.config,
|
|
43
|
-
defaultConfig: o
|
|
44
|
-
}),
|
|
45
|
-
customPalette: Se[o.theme] || B
|
|
46
|
-
} : o;
|
|
47
|
-
}), { isPrinting: fe, isImaging: he, generatePdf: V, generateImage: X } = Ve({
|
|
48
|
-
elementId: `flow_${S.value}`,
|
|
49
|
-
fileName: e.value.style.chart.title.text || "vue-ui-flow"
|
|
50
|
-
}), M = f(() => Me(e.value.customPalette)), W = f(() => e.value.style.chart.nodes.gap), C = f(() => e.value.style.chart.nodes.width), F = k({
|
|
51
|
-
showTable: e.value.table.show
|
|
52
|
-
}), R = f(() => e.value.style.chart.links.width), Z = f(() => {
|
|
53
|
-
const o = {};
|
|
54
|
-
function l(s) {
|
|
55
|
-
o[s] || (o[s] = { inflow: 0, outflow: 0 });
|
|
56
|
-
}
|
|
57
|
-
h.dataset.forEach(([s, a, i]) => {
|
|
58
|
-
l(s), l(a), o[s].outflow += i, o[a].inflow += i;
|
|
59
|
-
});
|
|
60
|
-
let t = 0;
|
|
61
|
-
for (const s in o) {
|
|
62
|
-
const a = Math.max(o[s].inflow, o[s].outflow);
|
|
63
|
-
t = Math.max(t, a);
|
|
64
|
-
}
|
|
65
|
-
return t;
|
|
66
|
-
});
|
|
67
|
-
function ge(o) {
|
|
68
|
-
return o / Z.value * 100 + e.value.style.chart.nodes.minHeight;
|
|
69
|
-
}
|
|
70
|
-
function me(o) {
|
|
71
|
-
const l = e.value.style.chart.nodes.minHeight;
|
|
72
|
-
return (o - l) / 100 * Z.value;
|
|
73
|
-
}
|
|
74
|
-
function pe(o) {
|
|
75
|
-
const l = {}, t = {};
|
|
76
|
-
function s(n, u) {
|
|
77
|
-
l[n] || (l[n] = { height: 0, level: null, inflow: 0, outflow: 0 }), l[n].level === null && (l[n].level = u), t[u] || (t[u] = []), t[u].includes(n) || t[u].push(n);
|
|
78
|
-
}
|
|
79
|
-
o.forEach(([n, u, c], x) => {
|
|
80
|
-
const y = l[n] ? l[n].level : 0, H = y + 1;
|
|
81
|
-
s(n, y), s(u, H), l[n].children || (l[n].children = []), l[n].children.push({ target: u, value: c }), l[n].outflow += c, l[u].inflow += c;
|
|
82
|
-
}), Object.keys(l).forEach((n, u) => {
|
|
83
|
-
l[n].color = M.value[u] || M.value[u % M.value.length] || B[u] || B[u % d.length];
|
|
84
|
-
});
|
|
85
|
-
for (const n in l)
|
|
86
|
-
l[n].height = ge(Math.max(l[n].inflow, l[n].outflow)), l[n].name = n;
|
|
87
|
-
const a = {};
|
|
88
|
-
for (const n in t) {
|
|
89
|
-
let u = 0;
|
|
90
|
-
t[n].forEach((c, x) => {
|
|
91
|
-
const y = l[c].height;
|
|
92
|
-
a[c] = {
|
|
93
|
-
x: parseInt(n, 10) * R.value + e.value.style.chart.padding.left,
|
|
94
|
-
y: u,
|
|
95
|
-
absoluteY: u,
|
|
96
|
-
height: y,
|
|
97
|
-
i: x,
|
|
98
|
-
color: l[c].color,
|
|
99
|
-
value: me(y)
|
|
100
|
-
}, u += y + W.value;
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
const i = [];
|
|
104
|
-
for (const n in l) {
|
|
105
|
-
let u = a[n].absoluteY;
|
|
106
|
-
l[n].children && l[n].children.forEach(({ target: c, value: x }, y) => {
|
|
107
|
-
const H = a[c].y, Y = a[n], D = a[c], Q = u, ee = u + x / l[n].outflow * Y.height, te = H, le = H + x / l[c].inflow * D.height, $e = {
|
|
108
|
-
id: ne(),
|
|
109
|
-
source: n,
|
|
110
|
-
target: c,
|
|
111
|
-
path: `M ${Y.x + C.value} ${Q} L ${Y.x + C.value} ${ee} L ${D.x} ${le} L ${D.x} ${te} Z`,
|
|
112
|
-
value: x,
|
|
113
|
-
sourceColor: l[n].color,
|
|
114
|
-
targetColor: l[c].color
|
|
115
|
-
};
|
|
116
|
-
i.push($e), u += ee - Q, a[c].y += le - te;
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
return { nodeCoordinates: a, links: i };
|
|
120
|
-
}
|
|
121
|
-
const g = f(() => {
|
|
122
|
-
const o = pe(h.dataset);
|
|
123
|
-
return {
|
|
124
|
-
nodes: Object.keys(o.nodeCoordinates).map((l, t) => ({
|
|
125
|
-
...o.nodeCoordinates[l],
|
|
126
|
-
name: l
|
|
127
|
-
})),
|
|
128
|
-
links: o.links
|
|
129
|
-
};
|
|
130
|
-
}), be = f(() => ye(g.value.nodes));
|
|
131
|
-
function ye(o) {
|
|
132
|
-
const l = {};
|
|
133
|
-
for (const s in o) {
|
|
134
|
-
const { x: a, height: i } = o[s];
|
|
135
|
-
l[a] || (l[a] = 0), l[a] += i + W.value;
|
|
136
|
-
}
|
|
137
|
-
return Math.max(...Object.values(l));
|
|
138
|
-
}
|
|
139
|
-
const z = f(() => {
|
|
140
|
-
const { top: o, right: l, left: t, bottom: s } = e.value.style.chart.padding, a = h.dataset.length * R.value;
|
|
141
|
-
return {
|
|
142
|
-
height: be.value + o + s,
|
|
143
|
-
width: l + Math.max(...g.value.nodes.map((i) => i.x)) + C.value,
|
|
144
|
-
left: t,
|
|
145
|
-
top: o,
|
|
146
|
-
right: a - l,
|
|
147
|
-
p_top: o,
|
|
148
|
-
p_bottom: s
|
|
149
|
-
};
|
|
150
|
-
});
|
|
151
|
-
function ke(o) {
|
|
152
|
-
const l = {}, t = {}, s = /* @__PURE__ */ new Set();
|
|
153
|
-
return h.dataset.forEach(([a, i, n]) => {
|
|
154
|
-
l[a] || (l[a] = []), t[i] || (t[i] = []), l[a].push(i), t[i].push(a);
|
|
155
|
-
}), l[o] && l[o].forEach((a) => s.add(a)), t[o] && t[o].forEach((a) => s.add(a)), Array.from(s).concat(o);
|
|
156
|
-
}
|
|
157
|
-
const p = k(null), P = k(null);
|
|
158
|
-
function we(o) {
|
|
159
|
-
p.value = ke(o.name), P.value = o.name;
|
|
160
|
-
}
|
|
161
|
-
function Ce() {
|
|
162
|
-
p.value = null, P.value = null;
|
|
163
|
-
}
|
|
164
|
-
const q = f(() => g.value.links.map(({ source: o, target: l, sourceColor: t, targetColor: s, value: a }) => ({
|
|
165
|
-
source: o,
|
|
166
|
-
target: l,
|
|
167
|
-
sourceColor: t,
|
|
168
|
-
targetColor: s,
|
|
169
|
-
value: a
|
|
170
|
-
})));
|
|
171
|
-
function J() {
|
|
172
|
-
Ie(() => {
|
|
173
|
-
const o = q.value.map((s, a) => [
|
|
174
|
-
[s.source],
|
|
175
|
-
[s.target],
|
|
176
|
-
[s.value]
|
|
177
|
-
]), l = [
|
|
178
|
-
[e.value.style.chart.title.text],
|
|
179
|
-
[e.value.style.chart.title.subtitle.text],
|
|
180
|
-
[
|
|
181
|
-
[e.value.table.columnNames.source],
|
|
182
|
-
[e.value.table.columnNames.target],
|
|
183
|
-
[e.value.table.columnNames.value]
|
|
184
|
-
]
|
|
185
|
-
].concat(o), t = Ge(l);
|
|
186
|
-
Ae({
|
|
187
|
-
csvContent: t,
|
|
188
|
-
title: e.value.style.chart.title.text || "vue-ui-flow"
|
|
189
|
-
});
|
|
190
|
-
});
|
|
191
|
-
}
|
|
192
|
-
const I = f(() => {
|
|
193
|
-
const o = [
|
|
194
|
-
e.value.table.columnNames.source,
|
|
195
|
-
e.value.table.columnNames.target,
|
|
196
|
-
e.value.table.columnNames.value
|
|
197
|
-
], l = q.value.map((a, i) => [
|
|
198
|
-
{
|
|
199
|
-
color: a.sourceColor,
|
|
200
|
-
name: a.source
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
color: a.targetColor,
|
|
204
|
-
name: a.target
|
|
205
|
-
},
|
|
206
|
-
se({
|
|
207
|
-
p: e.value.style.chart.nodes.labels.prefix,
|
|
208
|
-
v: a.value,
|
|
209
|
-
s: e.value.style.chart.nodes.labels.suffix,
|
|
210
|
-
r: e.value.style.chart.nodes.labels.rounding
|
|
211
|
-
})
|
|
212
|
-
]), t = {
|
|
213
|
-
th: {
|
|
214
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
215
|
-
color: e.value.table.th.color,
|
|
216
|
-
outline: e.value.table.th.outline
|
|
217
|
-
},
|
|
218
|
-
td: {
|
|
219
|
-
backgroundColor: e.value.table.td.backgroundColor,
|
|
220
|
-
color: e.value.table.td.color,
|
|
221
|
-
outline: e.value.table.td.outline
|
|
222
|
-
},
|
|
223
|
-
breakpoint: e.value.table.responsiveBreakpoint
|
|
224
|
-
};
|
|
225
|
-
return {
|
|
226
|
-
colNames: [
|
|
227
|
-
e.value.table.columnNames.source,
|
|
228
|
-
e.value.table.columnNames.target,
|
|
229
|
-
e.value.table.columnNames.value
|
|
230
|
-
],
|
|
231
|
-
head: o,
|
|
232
|
-
body: l,
|
|
233
|
-
config: t
|
|
234
|
-
};
|
|
235
|
-
});
|
|
236
|
-
function xe() {
|
|
237
|
-
return g.value;
|
|
238
|
-
}
|
|
239
|
-
function K() {
|
|
240
|
-
F.value.showTable = !F.value.showTable;
|
|
241
|
-
}
|
|
242
|
-
return ce({
|
|
243
|
-
getData: xe,
|
|
244
|
-
generateCsv: J,
|
|
245
|
-
generateImage: X,
|
|
246
|
-
generatePdf: V,
|
|
247
|
-
toggleTable: K
|
|
248
|
-
}), (o, l) => (r(), v("div", {
|
|
249
|
-
ref_key: "flowChart",
|
|
250
|
-
ref: j,
|
|
251
|
-
class: oe(`vue-ui-flow ${_.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
252
|
-
style: w(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${e.value.style.chart.title.text ? "" : "padding-top:36px"};background:${e.value.style.chart.backgroundColor}`),
|
|
253
|
-
id: `flow_${S.value}`
|
|
254
|
-
}, [
|
|
255
|
-
e.value.style.chart.title.text ? (r(), v("div", {
|
|
256
|
-
key: 0,
|
|
257
|
-
style: w(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:24px`)
|
|
258
|
-
}, [
|
|
259
|
-
ae(Be, {
|
|
260
|
-
config: {
|
|
261
|
-
title: {
|
|
262
|
-
cy: "flow-title",
|
|
263
|
-
...e.value.style.chart.title
|
|
264
|
-
},
|
|
265
|
-
subtitle: {
|
|
266
|
-
cy: "flow-subtitle",
|
|
267
|
-
...e.value.style.chart.title.subtitle
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
}, null, 8, ["config"])
|
|
271
|
-
], 4)) : L("", !0),
|
|
272
|
-
e.value.userOptions.show && E.value ? (r(), G(je, {
|
|
273
|
-
ref: "details",
|
|
274
|
-
key: `user_option_${U.value}`,
|
|
275
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
276
|
-
color: e.value.style.chart.color,
|
|
277
|
-
isPrinting: m(fe),
|
|
278
|
-
isImaging: m(he),
|
|
279
|
-
uid: S.value,
|
|
280
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
281
|
-
hasXls: e.value.userOptions.buttons.csv,
|
|
282
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
283
|
-
hasTable: e.value.userOptions.buttons.table,
|
|
284
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
285
|
-
isFullscreen: _.value,
|
|
286
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
287
|
-
chartElement: j.value,
|
|
288
|
-
onToggleFullscreen: ve,
|
|
289
|
-
onGeneratePdf: m(V),
|
|
290
|
-
onGenerateCsv: J,
|
|
291
|
-
onGenerateImage: m(X),
|
|
292
|
-
onToggleTable: K
|
|
293
|
-
}, Ne({ _: 2 }, [
|
|
294
|
-
o.$slots.optionPdf ? {
|
|
295
|
-
name: "optionPdf",
|
|
296
|
-
fn: b(() => [
|
|
297
|
-
$(o.$slots, "optionPdf", {}, void 0, !0)
|
|
298
|
-
]),
|
|
299
|
-
key: "0"
|
|
300
|
-
} : void 0,
|
|
301
|
-
o.$slots.optionCsv ? {
|
|
302
|
-
name: "optionCsv",
|
|
303
|
-
fn: b(() => [
|
|
304
|
-
$(o.$slots, "optionCsv", {}, void 0, !0)
|
|
305
|
-
]),
|
|
306
|
-
key: "1"
|
|
307
|
-
} : void 0,
|
|
308
|
-
o.$slots.optionImg ? {
|
|
309
|
-
name: "optionImg",
|
|
310
|
-
fn: b(() => [
|
|
311
|
-
$(o.$slots, "optionImg", {}, void 0, !0)
|
|
312
|
-
]),
|
|
313
|
-
key: "2"
|
|
314
|
-
} : void 0,
|
|
315
|
-
o.$slots.optionTable ? {
|
|
316
|
-
name: "optionTable",
|
|
317
|
-
fn: b(() => [
|
|
318
|
-
$(o.$slots, "optionTable", {}, void 0, !0)
|
|
319
|
-
]),
|
|
320
|
-
key: "3"
|
|
321
|
-
} : void 0,
|
|
322
|
-
o.$slots.optionFullscreen ? {
|
|
323
|
-
name: "optionFullscreen",
|
|
324
|
-
fn: b(({ toggleFullscreen: t, isFullscreen: s }) => [
|
|
325
|
-
$(o.$slots, "optionFullscreen", Te(Fe({ toggleFullscreen: t, isFullscreen: s })), void 0, !0)
|
|
326
|
-
]),
|
|
327
|
-
key: "4"
|
|
328
|
-
} : void 0
|
|
329
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : L("", !0),
|
|
330
|
-
(r(), v("svg", {
|
|
331
|
-
xmlns: m(ze),
|
|
332
|
-
viewBox: `0 0 ${z.value.width} ${z.value.height}`,
|
|
333
|
-
class: oe({ "vue-data-ui-fullscreen--on": _.value, "vue-data-ui-fulscreen--off": !_.value }),
|
|
334
|
-
style: w(`max-width:100%; overflow: visible; background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
|
|
335
|
-
}, [
|
|
336
|
-
O("defs", null, [
|
|
337
|
-
(r(!0), v(N, null, T(g.value.links, (t, s) => (r(), v("linearGradient", {
|
|
338
|
-
id: t.id,
|
|
339
|
-
x1: "0%",
|
|
340
|
-
y1: "0%",
|
|
341
|
-
x2: "100%",
|
|
342
|
-
y2: "0%"
|
|
343
|
-
}, [
|
|
344
|
-
O("stop", {
|
|
345
|
-
offset: "0%",
|
|
346
|
-
"stop-color": t.sourceColor
|
|
347
|
-
}, null, 8, Je),
|
|
348
|
-
O("stop", {
|
|
349
|
-
offset: "100%",
|
|
350
|
-
"stop-color": t.targetColor
|
|
351
|
-
}, null, 8, Ke)
|
|
352
|
-
], 8, qe))), 256))
|
|
353
|
-
]),
|
|
354
|
-
(r(!0), v(N, null, T(g.value.links, (t) => (r(), v("path", {
|
|
355
|
-
class: "vue-ui-flow-link",
|
|
356
|
-
d: t.path,
|
|
357
|
-
fill: `url(#${t.id})`,
|
|
358
|
-
stroke: e.value.style.chart.links.stroke,
|
|
359
|
-
"stroke-width": e.value.style.chart.links.strokeWidth,
|
|
360
|
-
style: w(`opacity:${P.value ? [t.target, t.source].includes(P.value) ? 1 : 0.3 : e.value.style.chart.links.opacity}`)
|
|
361
|
-
}, null, 12, Qe))), 256)),
|
|
362
|
-
(r(!0), v(N, null, T(g.value.nodes, (t, s) => (r(), v("rect", {
|
|
363
|
-
class: "vue-ui-flow-node",
|
|
364
|
-
x: t.x,
|
|
365
|
-
y: t.absoluteY,
|
|
366
|
-
height: t.height,
|
|
367
|
-
width: C.value,
|
|
368
|
-
fill: t.color,
|
|
369
|
-
stroke: e.value.style.chart.nodes.stroke,
|
|
370
|
-
"stroke-width": e.value.style.chart.nodes.strokeWidth,
|
|
371
|
-
onMouseenter: (a) => we(t),
|
|
372
|
-
onMouseleave: l[0] || (l[0] = (a) => Ce()),
|
|
373
|
-
style: w(`opacity:${p.value ? p.value.includes(t.name) ? 1 : 0.2 : 1}`)
|
|
374
|
-
}, null, 44, et))), 256)),
|
|
375
|
-
(r(!0), v(N, null, T(g.value.nodes, (t, s) => (r(), v("text", {
|
|
376
|
-
x: t.x + C.value / 2,
|
|
377
|
-
y: t.absoluteY + t.height / 2 - e.value.style.chart.nodes.labels.fontSize / 4,
|
|
378
|
-
"font-size": e.value.style.chart.nodes.labels.fontSize,
|
|
379
|
-
fill: m(ue)(t.color),
|
|
380
|
-
"text-anchor": "middle",
|
|
381
|
-
style: w(`pointer-events: none; opacity:${p.value ? p.value.includes(t.name) ? 1 : 0 : 1}`)
|
|
382
|
-
}, A(e.value.style.chart.nodes.labels.abbreviation.use ? m(Ye)({ source: t.name, length: e.value.style.chart.nodes.labels.abbreviation.length }) : t.name), 13, tt))), 256)),
|
|
383
|
-
(r(!0), v(N, null, T(g.value.nodes, (t, s) => (r(), v("text", {
|
|
384
|
-
x: t.x + C.value / 2,
|
|
385
|
-
y: t.absoluteY + t.height / 2 + e.value.style.chart.nodes.labels.fontSize,
|
|
386
|
-
"font-size": e.value.style.chart.nodes.labels.fontSize,
|
|
387
|
-
fill: m(ue)(t.color),
|
|
388
|
-
"text-anchor": "middle",
|
|
389
|
-
style: w(`pointer-events: none; opacity:${p.value ? p.value.includes(t.name) ? 1 : 0 : 1}`)
|
|
390
|
-
}, A(m(se)({
|
|
391
|
-
p: e.value.style.chart.nodes.labels.prefix,
|
|
392
|
-
v: t.value,
|
|
393
|
-
s: e.value.style.chart.nodes.labels.suffix,
|
|
394
|
-
r: e.value.style.chart.nodes.labels.rounding
|
|
395
|
-
})), 13, lt))), 256)),
|
|
396
|
-
$(o.$slots, "svg", { svg: z.value }, void 0, !0)
|
|
397
|
-
], 14, Ze)),
|
|
398
|
-
E.value ? L("", !0) : (r(), G(Xe, {
|
|
399
|
-
key: 2,
|
|
400
|
-
config: {
|
|
401
|
-
type: "flow",
|
|
402
|
-
style: {
|
|
403
|
-
backgroundColor: e.value.style.chart.backgroundColor
|
|
404
|
-
}
|
|
405
|
-
}
|
|
406
|
-
}, null, 8, ["config"])),
|
|
407
|
-
E.value ? (r(), G(We, {
|
|
408
|
-
key: 3,
|
|
409
|
-
hideDetails: "",
|
|
410
|
-
config: {
|
|
411
|
-
open: F.value.showTable,
|
|
412
|
-
maxHeight: 1e4,
|
|
413
|
-
body: {
|
|
414
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
415
|
-
color: e.value.style.chart.color
|
|
416
|
-
},
|
|
417
|
-
head: {
|
|
418
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
419
|
-
color: e.value.style.chart.color
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
}, {
|
|
423
|
-
content: b(() => [
|
|
424
|
-
ae(De, {
|
|
425
|
-
colNames: I.value.colNames,
|
|
426
|
-
head: I.value.head,
|
|
427
|
-
body: I.value.body,
|
|
428
|
-
config: I.value.config,
|
|
429
|
-
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
430
|
-
onClose: l[1] || (l[1] = (t) => F.value.showTable = !1)
|
|
431
|
-
}, {
|
|
432
|
-
th: b(({ th: t }) => [
|
|
433
|
-
O("div", {
|
|
434
|
-
innerHTML: t,
|
|
435
|
-
style: { display: "flex", "align-items": "center" }
|
|
436
|
-
}, null, 8, ot)
|
|
437
|
-
]),
|
|
438
|
-
td: b(({ td: t }) => [
|
|
439
|
-
Pe(A(t.name || t), 1)
|
|
440
|
-
]),
|
|
441
|
-
_: 1
|
|
442
|
-
}, 8, ["colNames", "head", "body", "config", "title"])
|
|
443
|
-
]),
|
|
444
|
-
_: 1
|
|
445
|
-
}, 8, ["config"])) : L("", !0)
|
|
446
|
-
], 14, Re));
|
|
447
|
-
}
|
|
448
|
-
}, dt = /* @__PURE__ */ Le(at, [["__scopeId", "data-v-f8a1c2bf"]]);
|
|
449
|
-
export {
|
|
450
|
-
dt as default
|
|
451
|
-
};
|