vue-data-ui 3.4.6 → 3.4.8
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/{PackageVersion-BSldVhnp.js → PackageVersion-D-auaEEJ.js} +1 -1
- package/dist/{UserOptions-CnzumGJj.js → UserOptions-CGnQt6Fd.js} +91 -91
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{vue-data-ui-BCOCglbX.js → vue-data-ui-CzqHcPqG.js} +55 -55
- package/dist/vue-data-ui.js +55 -55
- package/dist/{vue-ui-3d-bar-E-nuI5P-.js → vue-ui-3d-bar-CwXiD8zD.js} +49 -42
- package/dist/{vue-ui-age-pyramid-DfN03uDZ.js → vue-ui-age-pyramid-DlEPlWmV.js} +12 -5
- package/dist/{vue-ui-bullet-DVOmSxcg.js → vue-ui-bullet-DtzpeIu4.js} +59 -52
- package/dist/{vue-ui-candlestick-C0tlhgvf.js → vue-ui-candlestick-DzoiyaeB.js} +56 -49
- package/dist/{vue-ui-carousel-table-Bwf70lBb.js → vue-ui-carousel-table-BqRERrjs.js} +79 -72
- package/dist/{vue-ui-chestnut-CzNj08EH.js → vue-ui-chestnut-CzBGckif.js} +77 -70
- package/dist/{vue-ui-chord-CQAAGCjj.js → vue-ui-chord-B4waG93A.js} +71 -64
- package/dist/{vue-ui-circle-pack-8Ut7fxPJ.js → vue-ui-circle-pack-DiTw_p5r.js} +58 -51
- package/dist/{vue-ui-dashboard-CpG2L2Xk.js → vue-ui-dashboard-Bt-MUKqy.js} +56 -56
- package/dist/{vue-ui-donut-acdGdmqY.js → vue-ui-donut-Bc492JeS.js} +95 -88
- package/dist/{vue-ui-donut-evolution-J2tTLcht.js → vue-ui-donut-evolution-D6TaZK2x.js} +80 -73
- package/dist/{vue-ui-dumbbell-DhDvD0DH.js → vue-ui-dumbbell-BlZr68Sq.js} +12 -5
- package/dist/{vue-ui-flow-Du9joQEy.js → vue-ui-flow-ByEP18dA.js} +205 -198
- package/dist/{vue-ui-funnel-BPccZaVG.js → vue-ui-funnel-BU7d_U6T.js} +98 -91
- package/dist/{vue-ui-galaxy-D69X300F.js → vue-ui-galaxy-CpVrxaTr.js} +140 -133
- package/dist/{vue-ui-gauge-C_tPaN05.js → vue-ui-gauge-B9Z4EXoj.js} +108 -101
- package/dist/{vue-ui-gizmo-Bsc620Bs.js → vue-ui-gizmo-T1paJEJ3.js} +1 -1
- package/dist/{vue-ui-heatmap-CRoQ0Xo1.js → vue-ui-heatmap-Uw83eEMz.js} +97 -90
- package/dist/{vue-ui-history-plot-PQT8iCyT.js → vue-ui-history-plot-C93VwVCY.js} +41 -34
- package/dist/{vue-ui-molecule-C0hQ1BHF.js → vue-ui-molecule-CFMWwXFN.js} +94 -87
- package/dist/{vue-ui-mood-radar-DMng4w8x.js → vue-ui-mood-radar-FkVaaOVG.js} +71 -64
- package/dist/{vue-ui-nested-donuts-DtnysjV9.js → vue-ui-nested-donuts-Cyi98NXq.js} +93 -86
- package/dist/{vue-ui-onion-C0Z5_zay.js → vue-ui-onion-BCENNhsY.js} +82 -75
- package/dist/{vue-ui-parallel-coordinate-plot-C0grlzOd.js → vue-ui-parallel-coordinate-plot-Dca9wkD0.js} +116 -109
- package/dist/{vue-ui-quadrant-BJGF3wuL.js → vue-ui-quadrant-CEtFEZT3.js} +46 -39
- package/dist/{vue-ui-quick-chart-CaR3jp1D.js → vue-ui-quick-chart-bqcp6BIl.js} +171 -164
- package/dist/{vue-ui-radar-wYNRX7Uh.js → vue-ui-radar-lgRCmyNP.js} +36 -29
- package/dist/{vue-ui-relation-circle-CIwou-3d.js → vue-ui-relation-circle-cRRrbaIT.js} +100 -93
- package/dist/{vue-ui-ridgeline-DnzoIClq.js → vue-ui-ridgeline-CaeFJq9a.js} +23 -16
- package/dist/{vue-ui-rings-B7zSZa8h.js → vue-ui-rings-DbsYfGjx.js} +55 -48
- package/dist/{vue-ui-scatter-Bevyh8s3.js → vue-ui-scatter-DcMnoNrY.js} +189 -182
- package/dist/{vue-ui-skeleton-DfuGqFYM.js → vue-ui-skeleton-b5fdgyHv.js} +1 -1
- package/dist/{vue-ui-spark-trend-D16UBZxk.js → vue-ui-spark-trend-DrQ26BzL.js} +1 -1
- package/dist/{vue-ui-sparkbar-Dl1kY_5e.js → vue-ui-sparkbar-BlvXLcfO.js} +1 -1
- package/dist/{vue-ui-sparkgauge-iJIT26xG.js → vue-ui-sparkgauge-CQmNePxu.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-Bawjmfxu.js → vue-ui-sparkhistogram-CJatqy8x.js} +1 -1
- package/dist/{vue-ui-sparkline-CGVoLIcr.js → vue-ui-sparkline-5m7hFiMq.js} +1 -1
- package/dist/{vue-ui-sparkstackbar-CdlGAlFM.js → vue-ui-sparkstackbar-Z5g6L2Hj.js} +1 -1
- package/dist/{vue-ui-stackbar-Cjz4PvOG.js → vue-ui-stackbar-WrexTg8_.js} +53 -46
- package/dist/{vue-ui-strip-plot-DS84cU6V.js → vue-ui-strip-plot-DqX7yya9.js} +13 -6
- package/dist/{vue-ui-table-t9Shp522.js → vue-ui-table-BhrP9BCp.js} +2 -2
- package/dist/{vue-ui-table-heatmap-B4rjR34n.js → vue-ui-table-heatmap-BqCEBoUf.js} +1 -1
- package/dist/{vue-ui-table-sparkline-CAqqSvhG.js → vue-ui-table-sparkline-BECa8n5_.js} +1 -1
- package/dist/{vue-ui-thermometer-CKciCjTK.js → vue-ui-thermometer-BxBGrsSR.js} +83 -76
- package/dist/{vue-ui-timer-CNwoVRn5.js → vue-ui-timer-BbHY5Ed5.js} +1 -1
- package/dist/{vue-ui-tiremarks-Dxp9rcJi.js → vue-ui-tiremarks-DzL3Sc1f.js} +43 -36
- package/dist/{vue-ui-treemap-D4cRZ9SZ.js → vue-ui-treemap-DoHoS5NK.js} +114 -107
- package/dist/{vue-ui-vertical-bar-Cz6yCNYK.js → vue-ui-vertical-bar-D0N5btU-.js} +89 -82
- package/dist/{vue-ui-waffle-BhQ0m4Ia.js → vue-ui-waffle-CTt7dxCY.js} +41 -34
- package/dist/{vue-ui-wheel-Bh_G3WQQ.js → vue-ui-wheel--TIPvQ9I.js} +132 -125
- package/dist/{vue-ui-word-cloud-Bk2yP7oQ.js → vue-ui-word-cloud-D5pZq4Jq.js} +116 -109
- package/dist/{vue-ui-world-C_eUAzmI.js → vue-ui-world-BERHgePa.js} +71 -64
- package/dist/{vue-ui-xy-BDc2EKMr.js → vue-ui-xy-BI5stV8f.js} +163 -156
- package/dist/{vue-ui-xy-canvas-BGl_2pHw.js → vue-ui-xy-canvas-DXnLFwW3.js} +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineAsyncComponent as H, ref as u, computed as d, onMounted as vo, toRefs as ho, watch as Se, createElementBlock as g, openBlock as c, unref as r, normalizeStyle as W, normalizeClass as _t, createBlock as q, createCommentVNode as T, createElementVNode as G, createVNode as _e, createSlots as Ot, withCtx as
|
|
1
|
+
import { defineAsyncComponent as H, ref as u, computed as d, onMounted as vo, toRefs as ho, watch as Se, createElementBlock as g, openBlock as c, unref as r, normalizeStyle as W, normalizeClass as _t, createBlock as q, createCommentVNode as T, createElementVNode as G, createVNode as _e, createSlots as Ot, withCtx as y, renderSlot as C, normalizeProps as Z, guardReactiveProps as ee, Fragment as de, renderList as he, withKeys as qe, withModifiers as Ke, toDisplayString as fe, Teleport as fo, resolveDynamicComponent as po, mergeProps as go, createTextVNode as Nt, nextTick as Ft } from "vue";
|
|
2
2
|
import { c as Oe, t as mo, o as Et, f as yo, b as bo, p as D, e as Co, x, h as ko, d as te, X as wo, a as Ne, J as It, I as $o, P as Ao, Q as To, G as xo } from "./lib-C_mNZmhD.js";
|
|
3
3
|
import { t as So, u as _o } from "./useResponsive-DfdjqQps.js";
|
|
4
4
|
import { u as Oo, a as Pt } from "./useNestedProp-BjZe1Y85.js";
|
|
@@ -37,13 +37,13 @@ const Ho = ["id"], Wo = {
|
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
setup(Mt, { expose: Bt }) {
|
|
40
|
-
const Dt = H(() => import("./Tooltip-oWCO1HKy.js")), Lt = H(() => import("./BaseIcon-BmMbm4d0.js")), zt = H(() => import("./vue-ui-accordion-CZ0thhxa.js")), Rt = H(() => import("./DataTable-BT7VF2ua.js")), Ht = H(() => import("./PenAndPaper-DSvu9dwa.js")), Wt = H(() => import("./UserOptions-
|
|
40
|
+
const Dt = H(() => import("./Tooltip-oWCO1HKy.js")), Lt = H(() => import("./BaseIcon-BmMbm4d0.js")), zt = H(() => import("./vue-ui-accordion-CZ0thhxa.js")), Rt = H(() => import("./DataTable-BT7VF2ua.js")), Ht = H(() => import("./PenAndPaper-DSvu9dwa.js")), Wt = H(() => import("./UserOptions-CGnQt6Fd.js")), Gt = H(() => import("./PackageVersion-D-auaEEJ.js")), Ut = H(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_flow: Yt } = Oo(), E = Mt, U = u(Oe()), I = u(null), Je = u(0), Qe = u(0), Fe = u(!1), Ee = u(""), Ze = u(null), et = u(null), tt = u(null), oe = u(null), pe = u(null), ot = u(!1), le = u(null), Ie = u(null), Pe = u(null), lt = d(() => !!E.dataset && E.dataset.length);
|
|
41
41
|
vo(() => {
|
|
42
42
|
ot.value = !0, nt();
|
|
43
43
|
});
|
|
44
44
|
const Y = u(!1);
|
|
45
|
-
function at(
|
|
46
|
-
Y.value =
|
|
45
|
+
function at(t) {
|
|
46
|
+
Y.value = t, Je.value += 1;
|
|
47
47
|
}
|
|
48
48
|
const e = u(ze()), { loading: Me, FINAL_DATASET: ge, manualLoading: Be } = Fo({
|
|
49
49
|
...ho(E),
|
|
@@ -96,46 +96,46 @@ const Ho = ["id"], Wo = {
|
|
|
96
96
|
type: "dataset",
|
|
97
97
|
debug: jt.value
|
|
98
98
|
}), Be.value = !0), Et(E.dataset) || (Be.value = e.value.loading), e.value.responsive) {
|
|
99
|
-
const
|
|
100
|
-
const { width: l, height:
|
|
99
|
+
const t = So(() => {
|
|
100
|
+
const { width: l, height: o } = _o({
|
|
101
101
|
chart: I.value,
|
|
102
102
|
title: e.value.style.chart.title.text ? et.value : null,
|
|
103
103
|
legend: e.value.style.chart.legend.show ? Ze.value : null,
|
|
104
104
|
source: tt.value
|
|
105
105
|
});
|
|
106
106
|
requestAnimationFrame(() => {
|
|
107
|
-
ut.value = l, it.value =
|
|
107
|
+
ut.value = l, it.value = o;
|
|
108
108
|
});
|
|
109
109
|
});
|
|
110
|
-
oe.value && (pe.value && oe.value.unobserve(pe.value), oe.value.disconnect()), oe.value = new ResizeObserver(
|
|
110
|
+
oe.value && (pe.value && oe.value.unobserve(pe.value), oe.value.disconnect()), oe.value = new ResizeObserver(t), pe.value = I.value.parentNode, oe.value.observe(pe.value);
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
const { userOptionsVisible: De, setUserOptionsVisibility: st, keepUserOptionState: rt } = Po({ config: e.value }), { svgRef: Le } = Mo({
|
|
114
114
|
config: e.value.style.chart.title
|
|
115
115
|
});
|
|
116
116
|
function ze() {
|
|
117
|
-
const
|
|
117
|
+
const t = Pt({
|
|
118
118
|
userConfig: E.config,
|
|
119
119
|
defaultConfig: Yt
|
|
120
120
|
});
|
|
121
|
-
let l =
|
|
122
|
-
return
|
|
121
|
+
let l = t;
|
|
122
|
+
return t.theme ? l = {
|
|
123
123
|
...Pt({
|
|
124
|
-
userConfig: Bo.vue_ui_flow[
|
|
125
|
-
defaultConfig:
|
|
124
|
+
userConfig: Bo.vue_ui_flow[t.theme] || E.config,
|
|
125
|
+
defaultConfig: t
|
|
126
126
|
}),
|
|
127
|
-
customPalette: bo[
|
|
128
|
-
} : l =
|
|
127
|
+
customPalette: bo[t.theme] || D
|
|
128
|
+
} : l = t, l.nodeCategories = E.config.nodeCategories || {}, l.nodeCategoryColors = E.config.nodeCategoryColors || {}, l;
|
|
129
129
|
}
|
|
130
130
|
const ut = u(e.value.style.chart.width), it = u(e.value.style.chart.height);
|
|
131
131
|
Se(
|
|
132
132
|
() => E.config,
|
|
133
|
-
(
|
|
133
|
+
(t) => {
|
|
134
134
|
Me.value || (e.value = ze()), De.value = !e.value.userOptions.showOnChartHover, nt(), Qe.value += 1, S.value.showTable = e.value.table.show;
|
|
135
135
|
},
|
|
136
136
|
{ deep: !0 }
|
|
137
|
-
), Se(() => E.dataset, (
|
|
138
|
-
Array.isArray(
|
|
137
|
+
), Se(() => E.dataset, (t) => {
|
|
138
|
+
Array.isArray(t) && t.length > 0 && (Be.value = !1);
|
|
139
139
|
}, { deep: !0 });
|
|
140
140
|
const { isPrinting: ct, isImaging: vt, generatePdf: dt, generateImage: ht } = No({
|
|
141
141
|
elementId: `flow_${U.value}`,
|
|
@@ -151,14 +151,14 @@ const Ho = ["id"], Wo = {
|
|
|
151
151
|
showTooltip: e.value.style.chart.tooltip.show
|
|
152
152
|
};
|
|
153
153
|
}, { immediate: !0 });
|
|
154
|
-
const ft = d(() => !ge.value || !ge.value.length ? [] : ge.value.map((
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
x(
|
|
158
|
-
|
|
154
|
+
const ft = d(() => !ge.value || !ge.value.length ? [] : ge.value.map((t, l) => [
|
|
155
|
+
t[0],
|
|
156
|
+
t[1],
|
|
157
|
+
x(t[2]),
|
|
158
|
+
t[3] ? ko(t[3]) : me.value[l] || me.value[l % me.value.length] || D[l] || D[l % D.length]
|
|
159
159
|
]));
|
|
160
|
-
function Xt(
|
|
161
|
-
const l = {},
|
|
160
|
+
function Xt(t) {
|
|
161
|
+
const l = {}, o = {};
|
|
162
162
|
function a(n, i) {
|
|
163
163
|
l[n] || (l[n] = {
|
|
164
164
|
level: null,
|
|
@@ -167,18 +167,18 @@ const Ho = ["id"], Wo = {
|
|
|
167
167
|
children: [],
|
|
168
168
|
color: null,
|
|
169
169
|
uid: Oe()
|
|
170
|
-
}), l[n].level === null && (l[n].level = i),
|
|
170
|
+
}), l[n].level === null && (l[n].level = i), o[i] || (o[i] = []), o[i].includes(n) || o[i].push(n);
|
|
171
171
|
}
|
|
172
|
-
|
|
172
|
+
t.forEach(([n, i, h]) => {
|
|
173
173
|
const f = l[n]?.level ?? 0, O = f + 1;
|
|
174
174
|
a(n, f), a(i, O), l[n].children.push({ target: i, value: h }), l[n].outflow += h, l[i].inflow += h;
|
|
175
175
|
});
|
|
176
|
-
const s = new Set(
|
|
176
|
+
const s = new Set(t.map(([n]) => n)), $ = new Set(t.map(([, n]) => n)), J = Array.from(s).filter((n) => !$.has(n)), ue = {};
|
|
177
177
|
J.forEach((n, i) => {
|
|
178
178
|
ue[n] = me.value[i] || D[i % D.length];
|
|
179
179
|
});
|
|
180
180
|
const ie = {};
|
|
181
|
-
|
|
181
|
+
t.forEach(([n, i, h, f]) => {
|
|
182
182
|
f && (ie[n] = f, ie[i] = f);
|
|
183
183
|
}), Object.keys(l).forEach((n, i) => {
|
|
184
184
|
const h = e.value.nodeCategories?.[n], f = h ? e.value.nodeCategoryColors?.[h] : null;
|
|
@@ -186,35 +186,35 @@ const Ho = ["id"], Wo = {
|
|
|
186
186
|
}), Object.keys(l).forEach((n) => {
|
|
187
187
|
l[n].value = Math.max(l[n].inflow, l[n].outflow);
|
|
188
188
|
});
|
|
189
|
-
const Ae = ae.value, Ye = mt.value.width, Q = mt.value.height, B = Object.keys(
|
|
189
|
+
const Ae = ae.value, Ye = mt.value.width, Q = mt.value.height, B = Object.keys(o).map(Number).sort((n, i) => n - i), Te = B.length || 1, je = Te > 1 ? Ye / (Te - 1) : 0, A = Number(ye.value), M = Number(
|
|
190
190
|
e.value.style.chart.nodes.gapPx ?? e.value.style.chart.nodes.gap ?? 8
|
|
191
191
|
), ce = Number(e.value.style.chart.nodes.minHeight || 0);
|
|
192
192
|
function v(n) {
|
|
193
|
-
const i =
|
|
193
|
+
const i = o[n], h = i.length;
|
|
194
194
|
if (!h) return 1 / 0;
|
|
195
195
|
const f = Math.max(0, (h - 1) * M), O = Math.max(0, Q - f), L = Math.min(ce, h ? O / h : 0);
|
|
196
|
-
let
|
|
196
|
+
let k = 0, N = i.map((p) => l[p].value || 0), b = N.reduce((p, F) => p + F, 0);
|
|
197
197
|
for (let p = 0; p < 12; p += 1) {
|
|
198
|
-
const F =
|
|
198
|
+
const F = b > 0 ? (O - k) / b : 0, z = [];
|
|
199
199
|
for (let P = 0; P < N.length; P += 1) {
|
|
200
200
|
const R = N[P];
|
|
201
201
|
R < 0 || R * F < L && z.push(P);
|
|
202
202
|
}
|
|
203
203
|
if (!z.length) return Math.max(0, F);
|
|
204
204
|
for (const P of z)
|
|
205
|
-
|
|
206
|
-
if (
|
|
205
|
+
k += L, b -= N[P], N[P] = -1;
|
|
206
|
+
if (b <= 0) return 0;
|
|
207
207
|
}
|
|
208
|
-
return
|
|
208
|
+
return b > 0 ? Math.max(0, (O - k) / b) : 0;
|
|
209
209
|
}
|
|
210
210
|
const m = B.map(v), V = m.length ? Math.min(...m) : 0, X = {};
|
|
211
211
|
B.forEach((n) => {
|
|
212
|
-
const i =
|
|
212
|
+
const i = o[n], h = i.length, f = Math.max(0, (h - 1) * M), O = Math.max(0, Q - f), L = Math.min(ce, h ? O / h : 0), k = i.map(
|
|
213
213
|
(p) => Math.max(L, (l[p].value || 0) * V)
|
|
214
|
-
), N =
|
|
215
|
-
let
|
|
214
|
+
), N = k.reduce((p, F) => p + F, 0) + f;
|
|
215
|
+
let b = Math.max(0, (Q - N) / 2);
|
|
216
216
|
i.forEach((p, F) => {
|
|
217
|
-
const z =
|
|
217
|
+
const z = k[F], P = Ae.left + n * je, R = b;
|
|
218
218
|
X[p] = {
|
|
219
219
|
x: P,
|
|
220
220
|
y: R,
|
|
@@ -224,7 +224,7 @@ const Ho = ["id"], Wo = {
|
|
|
224
224
|
color: l[p].color,
|
|
225
225
|
value: l[p].value,
|
|
226
226
|
id: Oe()
|
|
227
|
-
},
|
|
227
|
+
}, b += z, F < h - 1 && (b += M);
|
|
228
228
|
});
|
|
229
229
|
});
|
|
230
230
|
const Tt = [], ve = Ae.top, Ve = {}, Xe = {};
|
|
@@ -233,38 +233,38 @@ const Ho = ["id"], Wo = {
|
|
|
233
233
|
});
|
|
234
234
|
const so = 1e-6, ro = 0.25;
|
|
235
235
|
return B.forEach((n) => {
|
|
236
|
-
|
|
236
|
+
o[n].forEach((h) => {
|
|
237
237
|
const f = l[h], O = X[h];
|
|
238
238
|
if (!f.children || !f.children.length) return;
|
|
239
239
|
let L = O.y;
|
|
240
|
-
f.children.forEach(({ target:
|
|
241
|
-
const
|
|
242
|
-
let xe = xt + z *
|
|
243
|
-
Xe[
|
|
244
|
-
const uo = p.inflow > 0 && Xe[
|
|
240
|
+
f.children.forEach(({ target: k, value: N }) => {
|
|
241
|
+
const b = X[k], p = l[k], F = f.outflow > 0 ? N / f.outflow : 0, z = p.inflow > 0 ? N / p.inflow : 0, P = x(L + ve), R = x(L + F * O.height + ve), xt = Ve[k];
|
|
242
|
+
let xe = xt + z * b.height;
|
|
243
|
+
Xe[k] += N;
|
|
244
|
+
const uo = p.inflow > 0 && Xe[k] >= p.inflow - so, St = b.y + b.height;
|
|
245
245
|
(uo || xe > St - ro) && (xe = St);
|
|
246
246
|
const io = x(xt + ve), co = x(xe + ve);
|
|
247
247
|
Tt.push({
|
|
248
248
|
id: Oe(),
|
|
249
249
|
source: h,
|
|
250
|
-
target:
|
|
251
|
-
path: `M ${x(O.x + A)} ${P} L ${x(O.x + A)} ${R} L ${x(
|
|
250
|
+
target: k,
|
|
251
|
+
path: `M ${x(O.x + A)} ${P} L ${x(O.x + A)} ${R} L ${x(b.x)} ${co} L ${x(b.x)} ${io} Z`,
|
|
252
252
|
value: N,
|
|
253
253
|
sourceColor: f.color,
|
|
254
|
-
targetColor: l[
|
|
255
|
-
}), L = R - ve, Ve[
|
|
254
|
+
targetColor: l[k].color
|
|
255
|
+
}), L = R - ve, Ve[k] = xe;
|
|
256
256
|
});
|
|
257
257
|
});
|
|
258
258
|
}), { nodeCoordinates: X, links: Tt };
|
|
259
259
|
}
|
|
260
260
|
const _ = d(() => {
|
|
261
|
-
const
|
|
261
|
+
const t = Xt(ge.value);
|
|
262
262
|
return {
|
|
263
|
-
nodes: Object.keys(
|
|
264
|
-
...
|
|
263
|
+
nodes: Object.keys(t.nodeCoordinates).map((l, o) => ({
|
|
264
|
+
...t.nodeCoordinates[l],
|
|
265
265
|
name: l
|
|
266
266
|
})),
|
|
267
|
-
links:
|
|
267
|
+
links: t.links
|
|
268
268
|
};
|
|
269
269
|
}), pt = d(() => ut.value), gt = d(() => it.value), ae = d(() => e.value.style.chart.padding), mt = d(() => ({
|
|
270
270
|
width: Math.max(0, pt.value - 40 - ae.value.right - ae.value.left),
|
|
@@ -273,31 +273,31 @@ const Ho = ["id"], Wo = {
|
|
|
273
273
|
width: pt.value,
|
|
274
274
|
height: gt.value
|
|
275
275
|
}));
|
|
276
|
-
function qt(
|
|
277
|
-
const l = {},
|
|
276
|
+
function qt(t) {
|
|
277
|
+
const l = {}, o = {}, a = /* @__PURE__ */ new Set();
|
|
278
278
|
return ft.value.forEach(([s, $, J]) => {
|
|
279
|
-
l[s] || (l[s] = []),
|
|
280
|
-
}), l[
|
|
279
|
+
l[s] || (l[s] = []), o[$] || (o[$] = []), l[s].push($), o[$].push(s);
|
|
280
|
+
}), l[t] && l[t].forEach((s) => a.add(s)), o[t] && o[t].forEach((s) => a.add(s)), Array.from(a).concat(t);
|
|
281
281
|
}
|
|
282
282
|
const w = u(null), K = u(null), se = u(null), be = u(!1), Ce = u(null);
|
|
283
|
-
function yt(
|
|
284
|
-
j.value = [], w.value = qt(
|
|
285
|
-
const
|
|
283
|
+
function yt(t, l) {
|
|
284
|
+
j.value = [], w.value = qt(t.name), K.value = t.name, Ce.value = t.id;
|
|
285
|
+
const o = t.name, a = ft.value;
|
|
286
286
|
let s = 0, $ = 0, J = [], ue = [];
|
|
287
287
|
const ie = new Set(a.map(([v]) => v)), Ae = new Set(a.map(([, v]) => v)), Ye = Array.from(ie).filter((v) => !Ae.has(v)), Q = a.filter(([v]) => Ye.includes(v)).reduce((v, [m, V, X]) => v + X, 0), B = {};
|
|
288
288
|
_.value.nodes.forEach((v) => {
|
|
289
289
|
B[v.name] = v.color;
|
|
290
290
|
}), a.forEach(([v, m, V]) => {
|
|
291
|
-
m ===
|
|
291
|
+
m === o && (s += V, J.push({ source: v, value: V, color: B[v] })), v === o && ($ += V, ue.push({ target: m, value: V, color: B[m] }));
|
|
292
292
|
});
|
|
293
293
|
const Te = Math.max(s, $), je = Q > 0 ? Te / Q * 100 : 0, A = {
|
|
294
|
-
name:
|
|
294
|
+
name: o,
|
|
295
295
|
inflow: s,
|
|
296
296
|
outflow: $,
|
|
297
297
|
from: J,
|
|
298
298
|
to: ue,
|
|
299
299
|
percentOfTotal: je,
|
|
300
|
-
color: B[
|
|
300
|
+
color: B[o] || "#000000"
|
|
301
301
|
};
|
|
302
302
|
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: A, seriesIndex: l }), se.value = { datapoint: A }, Fe.value = !0;
|
|
303
303
|
let M = "";
|
|
@@ -345,27 +345,27 @@ const Ho = ["id"], Wo = {
|
|
|
345
345
|
})), Ee.value = M;
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
|
-
function ke(
|
|
348
|
+
function ke(t) {
|
|
349
349
|
Ce.value = null;
|
|
350
350
|
const l = se.value;
|
|
351
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex:
|
|
351
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: t }), w.value = null, K.value = null, Fe.value = !1;
|
|
352
352
|
}
|
|
353
|
-
function Re(
|
|
353
|
+
function Re(t) {
|
|
354
354
|
const l = se.value;
|
|
355
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex:
|
|
355
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: t });
|
|
356
356
|
}
|
|
357
357
|
const bt = d(() => _.value.links.map(
|
|
358
|
-
({ source:
|
|
359
|
-
source:
|
|
358
|
+
({ source: t, target: l, sourceColor: o, targetColor: a, value: s }) => ({
|
|
359
|
+
source: t,
|
|
360
360
|
target: l,
|
|
361
|
-
sourceColor:
|
|
361
|
+
sourceColor: o,
|
|
362
362
|
targetColor: a,
|
|
363
363
|
value: s
|
|
364
364
|
})
|
|
365
365
|
));
|
|
366
|
-
function He(
|
|
366
|
+
function He(t = null) {
|
|
367
367
|
Ft(() => {
|
|
368
|
-
const l = bt.value.map((s, $) => [[s.source], [s.target], [s.value]]),
|
|
368
|
+
const l = bt.value.map((s, $) => [[s.source], [s.target], [s.value]]), o = [
|
|
369
369
|
[e.value.style.chart.title.text],
|
|
370
370
|
[e.value.style.chart.title.subtitle.text],
|
|
371
371
|
[
|
|
@@ -373,15 +373,15 @@ const Ho = ["id"], Wo = {
|
|
|
373
373
|
[e.value.table.columnNames.target],
|
|
374
374
|
[e.value.table.columnNames.value]
|
|
375
375
|
]
|
|
376
|
-
].concat(l), a = Ao(
|
|
377
|
-
|
|
376
|
+
].concat(l), a = Ao(o);
|
|
377
|
+
t ? t(a) : To({
|
|
378
378
|
csvContent: a,
|
|
379
379
|
title: e.value.style.chart.title.text || "vue-ui-flow"
|
|
380
380
|
});
|
|
381
381
|
});
|
|
382
382
|
}
|
|
383
383
|
const we = d(() => {
|
|
384
|
-
const
|
|
384
|
+
const t = [
|
|
385
385
|
e.value.table.columnNames.source,
|
|
386
386
|
e.value.table.columnNames.target,
|
|
387
387
|
e.value.table.columnNames.value
|
|
@@ -402,7 +402,7 @@ const Ho = ["id"], Wo = {
|
|
|
402
402
|
s: e.value.style.chart.nodes.labels.suffix,
|
|
403
403
|
r: e.value.style.chart.nodes.labels.rounding
|
|
404
404
|
})
|
|
405
|
-
]),
|
|
405
|
+
]), o = {
|
|
406
406
|
th: {
|
|
407
407
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
408
408
|
color: e.value.table.th.color,
|
|
@@ -421,9 +421,9 @@ const Ho = ["id"], Wo = {
|
|
|
421
421
|
e.value.table.columnNames.target,
|
|
422
422
|
e.value.table.columnNames.value
|
|
423
423
|
],
|
|
424
|
-
head:
|
|
424
|
+
head: t,
|
|
425
425
|
body: l,
|
|
426
|
-
config:
|
|
426
|
+
config: o
|
|
427
427
|
};
|
|
428
428
|
});
|
|
429
429
|
function Kt() {
|
|
@@ -440,36 +440,36 @@ const Ho = ["id"], Wo = {
|
|
|
440
440
|
S.value.showTooltip = !S.value.showTooltip;
|
|
441
441
|
}
|
|
442
442
|
const wt = d(() => {
|
|
443
|
-
const
|
|
443
|
+
const t = new Set(
|
|
444
444
|
_.value.nodes.map(
|
|
445
445
|
(l) => e.value.nodeCategories[l.name] || "__uncategorized__"
|
|
446
446
|
)
|
|
447
447
|
);
|
|
448
|
-
return Array.from(
|
|
448
|
+
return Array.from(t).map((l) => ({
|
|
449
449
|
name: l,
|
|
450
450
|
color: e.value.nodeCategoryColors[l] || D[0],
|
|
451
451
|
shape: "square",
|
|
452
452
|
count: _.value.nodes.filter(
|
|
453
|
-
(
|
|
453
|
+
(o) => (e.value.nodeCategories[o.name] || "__uncategorized__") === l
|
|
454
454
|
).length
|
|
455
|
-
})).map((l,
|
|
455
|
+
})).map((l, o) => ({
|
|
456
456
|
...l,
|
|
457
|
-
segregate: () => Ue({ legend: l, i:
|
|
458
|
-
opacity: j.value.length ? j.value.includes(
|
|
457
|
+
segregate: () => Ue({ legend: l, i: o }),
|
|
458
|
+
opacity: j.value.length ? j.value.includes(o) ? 1 : 0.5 : 1,
|
|
459
459
|
display: `${l.name} (${l.count})`
|
|
460
460
|
}));
|
|
461
461
|
}), Ge = d(
|
|
462
|
-
() => wt.value.filter((
|
|
462
|
+
() => wt.value.filter((t) => t.name !== "__uncategorized__")
|
|
463
463
|
), j = u([]);
|
|
464
|
-
function Ue({ legend:
|
|
465
|
-
const
|
|
464
|
+
function Ue({ legend: t, i: l }) {
|
|
465
|
+
const o = t.name;
|
|
466
466
|
if (w.value?.every(
|
|
467
|
-
(a) => e.value.nodeCategories[a] ===
|
|
467
|
+
(a) => e.value.nodeCategories[a] === o
|
|
468
468
|
)) {
|
|
469
469
|
w.value = null, K.value = null, j.value = [];
|
|
470
470
|
return;
|
|
471
471
|
}
|
|
472
|
-
j.value = [l], w.value = _.value.nodes.filter((a) => e.value.nodeCategories[a.name] ===
|
|
472
|
+
j.value = [l], w.value = _.value.nodes.filter((a) => e.value.nodeCategories[a.name] === o).map((a) => a.name), K.value = null;
|
|
473
473
|
}
|
|
474
474
|
const Jt = d(() => ({
|
|
475
475
|
cy: "flow-legend",
|
|
@@ -479,24 +479,24 @@ const Ho = ["id"], Wo = {
|
|
|
479
479
|
paddingBottom: e.value.style.chart.legend.paddingBottom,
|
|
480
480
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : "normal"
|
|
481
481
|
}));
|
|
482
|
-
async function Qt({ scale:
|
|
482
|
+
async function Qt({ scale: t = 2 } = {}) {
|
|
483
483
|
if (!I.value) return;
|
|
484
|
-
const { width: l, height:
|
|
484
|
+
const { width: l, height: o } = I.value.getBoundingClientRect(), a = l / o, { imageUri: s, base64: $ } = await zo({ domElement: I.value, base64: !0, img: !0, scale: t });
|
|
485
485
|
return {
|
|
486
486
|
imageUri: s,
|
|
487
487
|
base64: $,
|
|
488
488
|
title: e.value.style.chart.title.text,
|
|
489
489
|
width: l,
|
|
490
|
-
height:
|
|
490
|
+
height: o,
|
|
491
491
|
aspectRatio: a
|
|
492
492
|
};
|
|
493
493
|
}
|
|
494
494
|
const re = d(() => {
|
|
495
|
-
const
|
|
495
|
+
const t = e.value.table.useDialog && !e.value.table.show, l = S.value.showTable;
|
|
496
496
|
return {
|
|
497
|
-
component:
|
|
497
|
+
component: t ? Ut : zt,
|
|
498
498
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
499
|
-
props:
|
|
499
|
+
props: t ? {
|
|
500
500
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
501
501
|
color: e.value.table.th.color,
|
|
502
502
|
headerColor: e.value.table.th.color,
|
|
@@ -521,15 +521,15 @@ const Ho = ["id"], Wo = {
|
|
|
521
521
|
}
|
|
522
522
|
};
|
|
523
523
|
});
|
|
524
|
-
Se(() => S.value.showTable, (
|
|
525
|
-
e.value.table.show || (
|
|
524
|
+
Se(() => S.value.showTable, (t) => {
|
|
525
|
+
e.value.table.show || (t && e.value.table.useDialog && le.value ? le.value.open() : "close" in le.value && le.value.close());
|
|
526
526
|
});
|
|
527
527
|
function $t() {
|
|
528
528
|
S.value.showTable = !1, Ie.value && Ie.value.setTableIconState(!1);
|
|
529
529
|
}
|
|
530
|
-
const Zt = d(() => Ge.value.map((
|
|
531
|
-
...
|
|
532
|
-
name:
|
|
530
|
+
const Zt = d(() => Ge.value.map((t) => ({
|
|
531
|
+
...t,
|
|
532
|
+
name: t.display
|
|
533
533
|
}))), eo = d(() => e.value.style.chart.backgroundColor), to = d(() => e.value.style.chart.legend), oo = d(() => e.value.style.chart.title), { exportSvg: lo, getSvg: ao } = Io({
|
|
534
534
|
svg: Le,
|
|
535
535
|
title: oo,
|
|
@@ -537,17 +537,17 @@ const Ho = ["id"], Wo = {
|
|
|
537
537
|
legendItems: Zt,
|
|
538
538
|
backgroundColor: eo
|
|
539
539
|
});
|
|
540
|
-
async function At({ isCb:
|
|
541
|
-
if (
|
|
542
|
-
const { blob: l, url:
|
|
543
|
-
e.value.userOptions.callbacks.svg({ blob: l, url:
|
|
540
|
+
async function At({ isCb: t }) {
|
|
541
|
+
if (t) {
|
|
542
|
+
const { blob: l, url: o, text: a, dataUrl: s } = await ao();
|
|
543
|
+
e.value.userOptions.callbacks.svg({ blob: l, url: o, text: a, dataUrl: s });
|
|
544
544
|
} else
|
|
545
545
|
lo();
|
|
546
546
|
}
|
|
547
|
-
async function no(
|
|
548
|
-
if (yt(
|
|
549
|
-
const { left:
|
|
550
|
-
Pe.value.placeTooltip({ x: (
|
|
547
|
+
async function no(t, l) {
|
|
548
|
+
if (yt(t, l), S.value.showTooltip && (await Ft(), I.value && Pe.value)) {
|
|
549
|
+
const { left: o, top: a } = I.value.getBoundingClientRect();
|
|
550
|
+
Pe.value.placeTooltip({ x: (o ?? 0) + 12, y: (a ?? 0) + 12 });
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
553
|
return Bt({
|
|
@@ -563,7 +563,7 @@ const Ho = ["id"], Wo = {
|
|
|
563
563
|
drillCategory: Ue,
|
|
564
564
|
unselectNode: ke,
|
|
565
565
|
toggleFullscreen: at
|
|
566
|
-
}), (
|
|
566
|
+
}), (t, l) => (c(), g("div", {
|
|
567
567
|
ref_key: "flowChart",
|
|
568
568
|
ref: I,
|
|
569
569
|
class: _t(`vue-data-ui-component vue-ui-flow ${Y.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
@@ -642,61 +642,68 @@ const Ho = ["id"], Wo = {
|
|
|
642
642
|
visibility: r(rt) ? r(De) ? "visible" : "hidden" : "visible"
|
|
643
643
|
})
|
|
644
644
|
}, Ot({ _: 2 }, [
|
|
645
|
-
|
|
645
|
+
t.$slots.menuIcon ? {
|
|
646
646
|
name: "menuIcon",
|
|
647
|
-
fn:
|
|
648
|
-
|
|
647
|
+
fn: y(({ isOpen: o, color: a }) => [
|
|
648
|
+
C(t.$slots, "menuIcon", Z(ee({ isOpen: o, color: a })), void 0, !0)
|
|
649
649
|
]),
|
|
650
650
|
key: "0"
|
|
651
651
|
} : void 0,
|
|
652
|
-
|
|
652
|
+
t.$slots.optionTooltip ? {
|
|
653
653
|
name: "optionTooltip",
|
|
654
|
-
fn:
|
|
655
|
-
|
|
654
|
+
fn: y(() => [
|
|
655
|
+
C(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
656
656
|
]),
|
|
657
657
|
key: "1"
|
|
658
658
|
} : void 0,
|
|
659
|
-
|
|
659
|
+
t.$slots.optionPdf ? {
|
|
660
660
|
name: "optionPdf",
|
|
661
|
-
fn:
|
|
662
|
-
|
|
661
|
+
fn: y(() => [
|
|
662
|
+
C(t.$slots, "optionPdf", {}, void 0, !0)
|
|
663
663
|
]),
|
|
664
664
|
key: "2"
|
|
665
665
|
} : void 0,
|
|
666
|
-
|
|
666
|
+
t.$slots.optionCsv ? {
|
|
667
667
|
name: "optionCsv",
|
|
668
|
-
fn:
|
|
669
|
-
|
|
668
|
+
fn: y(() => [
|
|
669
|
+
C(t.$slots, "optionCsv", {}, void 0, !0)
|
|
670
670
|
]),
|
|
671
671
|
key: "3"
|
|
672
672
|
} : void 0,
|
|
673
|
-
|
|
673
|
+
t.$slots.optionImg ? {
|
|
674
674
|
name: "optionImg",
|
|
675
|
-
fn:
|
|
676
|
-
|
|
675
|
+
fn: y(() => [
|
|
676
|
+
C(t.$slots, "optionImg", {}, void 0, !0)
|
|
677
677
|
]),
|
|
678
678
|
key: "4"
|
|
679
679
|
} : void 0,
|
|
680
|
-
|
|
681
|
-
name: "
|
|
682
|
-
fn:
|
|
683
|
-
|
|
680
|
+
t.$slots.optionSvg ? {
|
|
681
|
+
name: "optionSvg",
|
|
682
|
+
fn: y(() => [
|
|
683
|
+
C(t.$slots, "optionSvg", {}, void 0, !0)
|
|
684
684
|
]),
|
|
685
685
|
key: "5"
|
|
686
686
|
} : void 0,
|
|
687
|
-
|
|
688
|
-
name: "
|
|
689
|
-
fn:
|
|
690
|
-
|
|
687
|
+
t.$slots.optionTable ? {
|
|
688
|
+
name: "optionTable",
|
|
689
|
+
fn: y(() => [
|
|
690
|
+
C(t.$slots, "optionTable", {}, void 0, !0)
|
|
691
691
|
]),
|
|
692
692
|
key: "6"
|
|
693
693
|
} : void 0,
|
|
694
|
-
|
|
695
|
-
name: "
|
|
696
|
-
fn:
|
|
697
|
-
|
|
694
|
+
t.$slots.optionFullscreen ? {
|
|
695
|
+
name: "optionFullscreen",
|
|
696
|
+
fn: y(({ toggleFullscreen: o, isFullscreen: a }) => [
|
|
697
|
+
C(t.$slots, "optionFullscreen", Z(ee({ toggleFullscreen: o, isFullscreen: a })), void 0, !0)
|
|
698
698
|
]),
|
|
699
699
|
key: "7"
|
|
700
|
+
} : void 0,
|
|
701
|
+
t.$slots.optionAnnotator ? {
|
|
702
|
+
name: "optionAnnotator",
|
|
703
|
+
fn: y(({ toggleAnnotator: o, isAnnotator: a }) => [
|
|
704
|
+
C(t.$slots, "optionAnnotator", Z(ee({ toggleAnnotator: o, isAnnotator: a })), void 0, !0)
|
|
705
|
+
]),
|
|
706
|
+
key: "8"
|
|
700
707
|
} : void 0
|
|
701
708
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "callbacks", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "printScale", "isAnnotation", "hasTooltip", "isTooltip", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : T("", !0),
|
|
702
709
|
(c(), g("svg", {
|
|
@@ -716,7 +723,7 @@ const Ho = ["id"], Wo = {
|
|
|
716
723
|
})
|
|
717
724
|
}, [
|
|
718
725
|
_e(r(Gt)),
|
|
719
|
-
|
|
726
|
+
t.$slots["chart-background"] ? (c(), g("foreignObject", {
|
|
720
727
|
key: 0,
|
|
721
728
|
x: 0,
|
|
722
729
|
y: 0,
|
|
@@ -726,11 +733,11 @@ const Ho = ["id"], Wo = {
|
|
|
726
733
|
pointerEvents: "none"
|
|
727
734
|
}
|
|
728
735
|
}, [
|
|
729
|
-
|
|
736
|
+
C(t.$slots, "chart-background", {}, void 0, !0)
|
|
730
737
|
], 8, Yo)) : T("", !0),
|
|
731
738
|
G("defs", null, [
|
|
732
|
-
(c(!0), g(de, null, he(_.value.links, (
|
|
733
|
-
id:
|
|
739
|
+
(c(!0), g(de, null, he(_.value.links, (o, a) => (c(), g("linearGradient", {
|
|
740
|
+
id: o.id,
|
|
734
741
|
x1: "0%",
|
|
735
742
|
y1: "0%",
|
|
736
743
|
x2: "100%",
|
|
@@ -738,53 +745,53 @@ const Ho = ["id"], Wo = {
|
|
|
738
745
|
}, [
|
|
739
746
|
G("stop", {
|
|
740
747
|
offset: "0%",
|
|
741
|
-
"stop-color":
|
|
748
|
+
"stop-color": o.sourceColor
|
|
742
749
|
}, null, 8, Vo),
|
|
743
750
|
G("stop", {
|
|
744
751
|
offset: "100%",
|
|
745
|
-
"stop-color":
|
|
752
|
+
"stop-color": o.targetColor
|
|
746
753
|
}, null, 8, Xo)
|
|
747
754
|
], 8, jo))), 256))
|
|
748
755
|
]),
|
|
749
|
-
(c(!0), g(de, null, he(_.value.links, (
|
|
756
|
+
(c(!0), g(de, null, he(_.value.links, (o) => (c(), g("path", {
|
|
750
757
|
class: "vue-ui-flow-link",
|
|
751
|
-
d:
|
|
758
|
+
d: o.path,
|
|
752
759
|
"stroke-linejoin": "round",
|
|
753
760
|
"stroke-miterlimit": "1",
|
|
754
|
-
fill: `url(#${
|
|
761
|
+
fill: `url(#${o.id})`,
|
|
755
762
|
stroke: e.value.style.chart.links.stroke,
|
|
756
763
|
"stroke-width": e.value.style.chart.links.strokeWidth,
|
|
757
764
|
style: W(`
|
|
758
|
-
opacity:${w.value ? w.value.includes(
|
|
765
|
+
opacity:${w.value ? w.value.includes(o.source) && w.value.includes(o.target) ? 1 : 0.3 : K.value ? [o.target, o.source].includes(K.value) ? 1 : 0.3 : e.value.style.chart.links.opacity}
|
|
759
766
|
`)
|
|
760
767
|
}, null, 12, qo))), 256)),
|
|
761
|
-
(c(!0), g(de, null, he(_.value.nodes, (
|
|
768
|
+
(c(!0), g(de, null, he(_.value.nodes, (o, a) => (c(), g("rect", {
|
|
762
769
|
class: "vue-ui-flow-node",
|
|
763
|
-
x:
|
|
764
|
-
y: r(x)(
|
|
765
|
-
height: r(x)(
|
|
770
|
+
x: o.x,
|
|
771
|
+
y: r(x)(o.absoluteY) + e.value.style.chart.padding.top,
|
|
772
|
+
height: r(x)(o.height),
|
|
766
773
|
width: ye.value,
|
|
767
|
-
fill:
|
|
774
|
+
fill: o.color,
|
|
768
775
|
stroke: e.value.style.chart.nodes.stroke,
|
|
769
776
|
"stroke-width": e.value.style.chart.nodes.strokeWidth,
|
|
770
777
|
rx: e.value.style.chart.nodes.borderRadius,
|
|
771
778
|
style: W({
|
|
772
|
-
opacity: w.value ? w.value.includes(
|
|
773
|
-
outline: Ce.value !== null && Ce.value ===
|
|
779
|
+
opacity: w.value ? w.value.includes(o.name) ? 1 : 0.3 : 1,
|
|
780
|
+
outline: Ce.value !== null && Ce.value === o.id ? "2px solid currentColor" : void 0
|
|
774
781
|
}),
|
|
775
782
|
role: "button",
|
|
776
783
|
tabindex: "0",
|
|
777
|
-
"aria-label": `${
|
|
784
|
+
"aria-label": `${o.name}: ${r(Ne)(
|
|
778
785
|
e.value.style.chart.nodes.labels.formatter,
|
|
779
|
-
|
|
786
|
+
o.value,
|
|
780
787
|
r(te)({
|
|
781
788
|
p: e.value.style.chart.nodes.labels.prefix,
|
|
782
|
-
v:
|
|
789
|
+
v: o.value,
|
|
783
790
|
s: e.value.style.chart.nodes.labels.suffix,
|
|
784
791
|
r: e.value.style.chart.nodes.labels.rounding
|
|
785
792
|
})
|
|
786
793
|
)}`,
|
|
787
|
-
onMouseenter: (s) => yt(
|
|
794
|
+
onMouseenter: (s) => yt(o, a),
|
|
788
795
|
onMouseleave: (s) => ke(a),
|
|
789
796
|
onClick: (s) => Re(a),
|
|
790
797
|
onKeydown: [
|
|
@@ -792,48 +799,48 @@ const Ho = ["id"], Wo = {
|
|
|
792
799
|
qe(Ke((s) => Re(a), ["prevent"]), ["space"]),
|
|
793
800
|
qe(Ke((s) => ke(a), ["prevent"]), ["esc"])
|
|
794
801
|
],
|
|
795
|
-
onFocus: (s) => no(
|
|
802
|
+
onFocus: (s) => no(o, a),
|
|
796
803
|
onBlur: (s) => ke(a)
|
|
797
804
|
}, null, 44, Ko))), 256)),
|
|
798
805
|
e.value.style.chart.nodes.labels.show ? (c(), g("g", Jo, [
|
|
799
|
-
(c(!0), g(de, null, he(_.value.nodes, (
|
|
800
|
-
x:
|
|
806
|
+
(c(!0), g(de, null, he(_.value.nodes, (o, a) => (c(), g("text", {
|
|
807
|
+
x: o.x + ye.value / 2,
|
|
801
808
|
y: r(x)(
|
|
802
|
-
|
|
809
|
+
o.absoluteY + o.height / 2 - e.value.style.chart.nodes.labels.fontSize / 4
|
|
803
810
|
) + e.value.style.chart.padding.top,
|
|
804
811
|
"font-size": e.value.style.chart.nodes.labels.fontSize,
|
|
805
|
-
fill: r(It)(
|
|
812
|
+
fill: r(It)(o.color),
|
|
806
813
|
"text-anchor": "middle",
|
|
807
|
-
style: W(`pointer-events: none; opacity:${w.value ? w.value.includes(
|
|
814
|
+
style: W(`pointer-events: none; opacity:${w.value ? w.value.includes(o.name) ? 1 : 0 : 1}`)
|
|
808
815
|
}, fe(e.value.style.chart.nodes.labels.abbreviation.use ? r($o)({
|
|
809
|
-
source:
|
|
816
|
+
source: o.name,
|
|
810
817
|
length: e.value.style.chart.nodes.labels.abbreviation.length
|
|
811
|
-
}) :
|
|
812
|
-
(c(!0), g(de, null, he(_.value.nodes, (
|
|
813
|
-
x:
|
|
818
|
+
}) : o.name), 13, Qo))), 256)),
|
|
819
|
+
(c(!0), g(de, null, he(_.value.nodes, (o, a) => (c(), g("text", {
|
|
820
|
+
x: o.x + ye.value / 2,
|
|
814
821
|
y: r(x)(
|
|
815
|
-
|
|
822
|
+
o.absoluteY + o.height / 2 + e.value.style.chart.nodes.labels.fontSize
|
|
816
823
|
) + e.value.style.chart.padding.top,
|
|
817
824
|
"font-size": e.value.style.chart.nodes.labels.fontSize,
|
|
818
|
-
fill: r(It)(
|
|
825
|
+
fill: r(It)(o.color),
|
|
819
826
|
"text-anchor": "middle",
|
|
820
|
-
style: W(`pointer-events: none; opacity:${w.value ? w.value.includes(
|
|
827
|
+
style: W(`pointer-events: none; opacity:${w.value ? w.value.includes(o.name) ? 1 : 0 : 1}`)
|
|
821
828
|
}, fe(r(Ne)(
|
|
822
829
|
e.value.style.chart.nodes.labels.formatter,
|
|
823
|
-
|
|
830
|
+
o.value,
|
|
824
831
|
r(te)({
|
|
825
832
|
p: e.value.style.chart.nodes.labels.prefix,
|
|
826
|
-
v:
|
|
833
|
+
v: o.value,
|
|
827
834
|
s: e.value.style.chart.nodes.labels.suffix,
|
|
828
835
|
r: e.value.style.chart.nodes.labels.rounding
|
|
829
836
|
}),
|
|
830
|
-
{ datapoint:
|
|
837
|
+
{ datapoint: o, seriesIndex: a }
|
|
831
838
|
)), 13, Zo))), 256))
|
|
832
839
|
])) : T("", !0),
|
|
833
|
-
|
|
840
|
+
C(t.$slots, "svg", { svg: ne.value }, void 0, !0)
|
|
834
841
|
], 14, Uo)),
|
|
835
|
-
|
|
836
|
-
|
|
842
|
+
t.$slots.watermark ? (c(), g("div", el, [
|
|
843
|
+
C(t.$slots, "watermark", Z(ee({ isPrinting: r(ct) || r(vt) })), void 0, !0)
|
|
837
844
|
])) : T("", !0),
|
|
838
845
|
G("div", {
|
|
839
846
|
id: `legend-bottom-${U.value}`
|
|
@@ -850,27 +857,27 @@ const Ho = ["id"], Wo = {
|
|
|
850
857
|
key: 0,
|
|
851
858
|
legendSet: Ge.value,
|
|
852
859
|
config: Jt.value,
|
|
853
|
-
onClickMarker: l[0] || (l[0] = (
|
|
860
|
+
onClickMarker: l[0] || (l[0] = (o) => Ue(o))
|
|
854
861
|
}, {
|
|
855
|
-
item:
|
|
862
|
+
item: y(({ legend: o, index: a }) => [
|
|
856
863
|
r(Me) ? T("", !0) : (c(), g("div", {
|
|
857
864
|
key: 0,
|
|
858
|
-
onClick: (s) =>
|
|
865
|
+
onClick: (s) => o.segregate(),
|
|
859
866
|
style: W(`opacity:${j.value.length ? j.value.includes(a) ? 1 : 0.5 : 1}`)
|
|
860
|
-
}, fe(
|
|
867
|
+
}, fe(o.display), 13, ol))
|
|
861
868
|
]),
|
|
862
869
|
_: 1
|
|
863
870
|
}, 8, ["legendSet", "config"])) : T("", !0),
|
|
864
|
-
|
|
871
|
+
C(t.$slots, "legend", { legend: wt.value }, void 0, !0)
|
|
865
872
|
], 512)
|
|
866
873
|
], 8, ["to"])) : T("", !0),
|
|
867
|
-
|
|
874
|
+
t.$slots.source ? (c(), g("div", {
|
|
868
875
|
key: 6,
|
|
869
876
|
ref_key: "source",
|
|
870
877
|
ref: tt,
|
|
871
878
|
dir: "auto"
|
|
872
879
|
}, [
|
|
873
|
-
|
|
880
|
+
C(t.$slots, "source", {}, void 0, !0)
|
|
874
881
|
], 512)) : T("", !0),
|
|
875
882
|
_e(r(Dt), {
|
|
876
883
|
ref_key: "tooltip",
|
|
@@ -894,11 +901,11 @@ const Ho = ["id"], Wo = {
|
|
|
894
901
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
895
902
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
896
903
|
}, {
|
|
897
|
-
"tooltip-before":
|
|
898
|
-
|
|
904
|
+
"tooltip-before": y(() => [
|
|
905
|
+
C(t.$slots, "tooltip-before", Z(ee({ ...se.value })), void 0, !0)
|
|
899
906
|
]),
|
|
900
|
-
"tooltip-after":
|
|
901
|
-
|
|
907
|
+
"tooltip-after": y(() => [
|
|
908
|
+
C(t.$slots, "tooltip-after", Z(ee({ ...se.value })), void 0, !0)
|
|
902
909
|
]),
|
|
903
910
|
_: 3
|
|
904
911
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
@@ -907,7 +914,7 @@ const Ho = ["id"], Wo = {
|
|
|
907
914
|
ref: le,
|
|
908
915
|
onClose: $t
|
|
909
916
|
}), Ot({
|
|
910
|
-
content:
|
|
917
|
+
content: y(() => [
|
|
911
918
|
_e(r(Rt), {
|
|
912
919
|
colNames: we.value.colNames,
|
|
913
920
|
head: we.value.head,
|
|
@@ -917,14 +924,14 @@ const Ho = ["id"], Wo = {
|
|
|
917
924
|
withCloseButton: !e.value.table.useDialog,
|
|
918
925
|
onClose: $t
|
|
919
926
|
}, {
|
|
920
|
-
th:
|
|
927
|
+
th: y(({ th: o }) => [
|
|
921
928
|
G("div", {
|
|
922
|
-
innerHTML:
|
|
929
|
+
innerHTML: o,
|
|
923
930
|
style: { display: "flex", "align-items": "center" }
|
|
924
931
|
}, null, 8, ll)
|
|
925
932
|
]),
|
|
926
|
-
td:
|
|
927
|
-
Nt(fe(
|
|
933
|
+
td: y(({ td: o }) => [
|
|
934
|
+
Nt(fe(o.name || o), 1)
|
|
928
935
|
]),
|
|
929
936
|
_: 1
|
|
930
937
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"])
|
|
@@ -933,18 +940,18 @@ const Ho = ["id"], Wo = {
|
|
|
933
940
|
}, [
|
|
934
941
|
e.value.table.useDialog ? {
|
|
935
942
|
name: "title",
|
|
936
|
-
fn:
|
|
943
|
+
fn: y(() => [
|
|
937
944
|
Nt(fe(re.value.title), 1)
|
|
938
945
|
]),
|
|
939
946
|
key: "0"
|
|
940
947
|
} : void 0,
|
|
941
948
|
e.value.table.useDialog ? {
|
|
942
949
|
name: "actions",
|
|
943
|
-
fn:
|
|
950
|
+
fn: y(() => [
|
|
944
951
|
G("button", {
|
|
945
952
|
tabindex: "0",
|
|
946
953
|
class: "vue-ui-user-options-button",
|
|
947
|
-
onClick: l[1] || (l[1] = (
|
|
954
|
+
onClick: l[1] || (l[1] = (o) => He(e.value.userOptions.callbacks.csv))
|
|
948
955
|
}, [
|
|
949
956
|
_e(r(Lt), {
|
|
950
957
|
name: "excel",
|
|
@@ -958,7 +965,7 @@ const Ho = ["id"], Wo = {
|
|
|
958
965
|
r(Me) ? (c(), q(Eo, { key: 8 })) : T("", !0)
|
|
959
966
|
], 46, Ho));
|
|
960
967
|
}
|
|
961
|
-
}, bl = /* @__PURE__ */ Ro(al, [["__scopeId", "data-v-
|
|
968
|
+
}, bl = /* @__PURE__ */ Ro(al, [["__scopeId", "data-v-a203b5d8"]]);
|
|
962
969
|
export {
|
|
963
970
|
bl as default
|
|
964
971
|
};
|