@luckzz/vue-logicflow-designer 0.0.2 → 0.1.1
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/{engine-core-DEblhuLi.js → engine-core-DGmk0-qA.js} +533 -524
- package/dist/engine-core.es.js +1 -1
- package/dist/index-Bh3k1Wh5.js +71 -0
- package/dist/index-CJeYaK5u.js +566 -0
- package/dist/index-CNHPhmOr.js +1318 -0
- package/dist/index-DR1Yy0Hs.js +94 -0
- package/dist/index-pXrGRk2M.js +612 -0
- package/dist/index.es.js +11 -11
- package/dist/space-air-plugin.es.js +9 -9
- package/dist/workspace-studio-CuyqQZ5h.js +20260 -0
- package/dist/workspace-studio.es.js +8 -4421
- package/package.json +4 -9
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import './logicflow-designer.css';var mr = Object.defineProperty;
|
|
2
2
|
var Ir = (t, e, o) => e in t ? mr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o;
|
|
3
3
|
var k = (t, e, o) => Ir(t, typeof e != "symbol" ? e + "" : e, o);
|
|
4
|
-
import { defineAsyncComponent as Ue, reactive as yt, defineComponent as fe, h as ne, createApp as
|
|
4
|
+
import { defineAsyncComponent as Ue, reactive as yt, defineComponent as fe, h as ne, createApp as Po, inject as Ut, provide as Rn, shallowRef as _r, ref as ee, computed as Ze, watch as Je, resolveComponent as Z, openBlock as P, createElementBlock as L, createElementVNode as I, createVNode as H, withCtx as G, unref as X, toDisplayString as xe, createBlock as Ie, isRef as Et, normalizeClass as tt, createCommentVNode as ve, Fragment as ie, renderList as le, normalizeStyle as Pt, createTextVNode as me, resolveDynamicComponent as Nr, onMounted as Bn, onUnmounted as br, createStaticVNode as Oe, withModifiers as kn, withDirectives as co, vShow as uo } from "vue";
|
|
5
5
|
import { ElMessage as je } from "element-plus";
|
|
6
|
-
import Wt, { HtmlNodeModel as
|
|
7
|
-
import { options as Xo } from "preact";
|
|
6
|
+
import Wt, { HtmlNodeModel as Mo, HtmlNode as Lo, PolylineEdgeModel as Er, PolylineEdge as Cr, CircleNode as wr, CircleNodeModel as Tr } from "@logicflow/core";
|
|
8
7
|
import { FlowPath as xr, Snapshot as Ar, MiniMap as Or } from "@logicflow/extension";
|
|
9
8
|
const ye = {
|
|
10
9
|
CONTROL: "control",
|
|
@@ -64,7 +63,7 @@ const ye = {
|
|
|
64
63
|
d.FOR,
|
|
65
64
|
d.WHILE,
|
|
66
65
|
d.ITERATOR
|
|
67
|
-
]),
|
|
66
|
+
]), Kp = /* @__PURE__ */ new Set([
|
|
68
67
|
d.IF
|
|
69
68
|
]), Sr = /* @__PURE__ */ new Set([
|
|
70
69
|
d.FOR,
|
|
@@ -74,7 +73,7 @@ const ye = {
|
|
|
74
73
|
d.SWITCH,
|
|
75
74
|
d.IF,
|
|
76
75
|
d.WHILE
|
|
77
|
-
]),
|
|
76
|
+
]), Ro = /* @__PURE__ */ new Set([
|
|
78
77
|
d.THEN,
|
|
79
78
|
d.PRE,
|
|
80
79
|
d.FINALLY
|
|
@@ -134,7 +133,7 @@ const ye = {
|
|
|
134
133
|
PRE: "PRE",
|
|
135
134
|
/** 业务节点 */
|
|
136
135
|
BUS: "BUS"
|
|
137
|
-
},
|
|
136
|
+
}, qp = Object.values(U), po = {
|
|
138
137
|
[d.START]: Ue(() => Promise.resolve().then(() => hu)),
|
|
139
138
|
[d.WHEN]: Ue(() => Promise.resolve().then(() => Au)),
|
|
140
139
|
[d.DELAY]: Ue(() => Promise.resolve().then(() => Fu)),
|
|
@@ -143,7 +142,7 @@ const ye = {
|
|
|
143
142
|
[d.IF]: Ue(() => Promise.resolve().then(() => wp)),
|
|
144
143
|
[d.END]: null
|
|
145
144
|
}, jt = {};
|
|
146
|
-
function
|
|
145
|
+
function Jp(t, e = { override: !0 }) {
|
|
147
146
|
if (!t || typeof t != "object") return;
|
|
148
147
|
const { override: o = !0 } = e, n = {};
|
|
149
148
|
Object.entries(t).forEach(([r, s]) => {
|
|
@@ -169,8 +168,8 @@ function Mr(t, e) {
|
|
|
169
168
|
function Fn(t = {}) {
|
|
170
169
|
const e = t.idPrefix || "p", o = [], n = [];
|
|
171
170
|
let r = 0;
|
|
172
|
-
function s(
|
|
173
|
-
return `${
|
|
171
|
+
function s(u) {
|
|
172
|
+
return `${u.toLowerCase()}_${e}_${++r}_${Date.now()}`;
|
|
174
173
|
}
|
|
175
174
|
const a = s(d.START);
|
|
176
175
|
o.push({ id: a, type: d.START, text: "开始", x: 0, y: 0, properties: {} });
|
|
@@ -252,8 +251,8 @@ function Ko(t, e) {
|
|
|
252
251
|
return;
|
|
253
252
|
}
|
|
254
253
|
if (o.length >= 2) {
|
|
255
|
-
const [a, l] = o, i = (r = a.properties) == null ? void 0 : r.edgeType,
|
|
256
|
-
i === re.IF_TRUE &&
|
|
254
|
+
const [a, l] = o, i = (r = a.properties) == null ? void 0 : r.edgeType, u = (s = l.properties) == null ? void 0 : s.edgeType;
|
|
255
|
+
i === re.IF_TRUE && u === re.IF_FALSE || i === re.IF_FALSE && u === re.IF_TRUE || (a.setProperties({ ...a.properties, edgeType: re.IF_TRUE }), l.setProperties({ ...l.properties, edgeType: re.IF_FALSE }));
|
|
257
256
|
}
|
|
258
257
|
}
|
|
259
258
|
}
|
|
@@ -456,8 +455,8 @@ function Me(t) {
|
|
|
456
455
|
if (!s) break;
|
|
457
456
|
const a = n[0].length - 1, l = be(o, a);
|
|
458
457
|
if (l === -1) break;
|
|
459
|
-
const i = o.substring(a + 1, l),
|
|
460
|
-
e[s.key] = s.parser(
|
|
458
|
+
const i = o.substring(a + 1, l), u = Ee(i).map((g) => g.trim()).filter(Boolean);
|
|
459
|
+
e[s.key] = s.parser(u), o = o.substring(l + 1).trim();
|
|
461
460
|
}
|
|
462
461
|
return e;
|
|
463
462
|
}
|
|
@@ -713,8 +712,8 @@ const Gt = class Gt {
|
|
|
713
712
|
properties: {}
|
|
714
713
|
}), this.children && this.children.length > 0) {
|
|
715
714
|
let i = s;
|
|
716
|
-
for (const
|
|
717
|
-
const g = this._resolveGraphChild(
|
|
715
|
+
for (const u of this.children) {
|
|
716
|
+
const g = this._resolveGraphChild(u);
|
|
718
717
|
if (!g) continue;
|
|
719
718
|
i = g.toGraph(e, i).lastId || i;
|
|
720
719
|
}
|
|
@@ -774,9 +773,9 @@ const Gt = class Gt {
|
|
|
774
773
|
properties: {}
|
|
775
774
|
});
|
|
776
775
|
for (const i of this.children || []) {
|
|
777
|
-
const
|
|
778
|
-
if (!
|
|
779
|
-
const g =
|
|
776
|
+
const u = this._resolveGraphChild(i);
|
|
777
|
+
if (!u) continue;
|
|
778
|
+
const g = u.toGraph(e, null);
|
|
780
779
|
e.edges.push({
|
|
781
780
|
id: e.makeId("edge"),
|
|
782
781
|
type: "edge-with-plus",
|
|
@@ -807,7 +806,7 @@ const Gt = class Gt {
|
|
|
807
806
|
* @returns {{ firstId: string, lastId: string }}
|
|
808
807
|
*/
|
|
809
808
|
_toLoopGraph(e, o, n) {
|
|
810
|
-
const r = e.makeId(this.type), s = e.makeId(d.AND), a = (this.children || []).map((
|
|
809
|
+
const r = e.makeId(this.type), s = e.makeId(d.AND), a = (this.children || []).map((u) => this._resolveGraphChild(u)).filter(Boolean), l = {}, i = this.toLFProps();
|
|
811
810
|
if (Object.assign(l, i), l.aggregateNodeId = s, e.nodes.push({
|
|
812
811
|
id: r,
|
|
813
812
|
type: this.type,
|
|
@@ -830,13 +829,13 @@ const Gt = class Gt {
|
|
|
830
829
|
text: "",
|
|
831
830
|
properties: {}
|
|
832
831
|
}), a.length > 0) {
|
|
833
|
-
let
|
|
832
|
+
let u = r;
|
|
834
833
|
for (const g of a)
|
|
835
|
-
|
|
834
|
+
u = g.toGraph(e, u).lastId || u;
|
|
836
835
|
e.edges.push({
|
|
837
836
|
id: e.makeId("edge"),
|
|
838
837
|
type: "edge-with-plus",
|
|
839
|
-
sourceNodeId:
|
|
838
|
+
sourceNodeId: u,
|
|
840
839
|
targetNodeId: s,
|
|
841
840
|
text: "",
|
|
842
841
|
properties: {}
|
|
@@ -894,10 +893,10 @@ const We = class We extends z {
|
|
|
894
893
|
if (!n) return null;
|
|
895
894
|
const r = n[0].length - 1, s = be(e, r);
|
|
896
895
|
if (s === -1) return null;
|
|
897
|
-
const a = e.substring(r + 1, s), l = Ee(a), i = e.substring(s + 1).trim(),
|
|
896
|
+
const a = e.substring(r + 1, s), l = Ee(a), i = e.substring(s + 1).trim(), u = l.map((c) => o && o(c) || c).filter(Boolean), g = new We({ children: u });
|
|
898
897
|
if (i) {
|
|
899
|
-
const
|
|
900
|
-
Object.keys(
|
|
898
|
+
const c = Me(i);
|
|
899
|
+
Object.keys(c).length > 0 && (g.properties = c);
|
|
901
900
|
}
|
|
902
901
|
return g;
|
|
903
902
|
}
|
|
@@ -934,10 +933,10 @@ const Ye = class Ye extends z {
|
|
|
934
933
|
if (!n) return null;
|
|
935
934
|
const r = n[0].length - 1, s = be(e, r);
|
|
936
935
|
if (s === -1) return null;
|
|
937
|
-
const a = e.substring(r + 1, s), l = Ee(a), i = e.substring(s + 1).trim(),
|
|
936
|
+
const a = e.substring(r + 1, s), l = Ee(a), i = e.substring(s + 1).trim(), u = l.map((c) => o && o(c) || c).filter(Boolean), g = new Ye({ children: u });
|
|
938
937
|
if (i) {
|
|
939
|
-
const
|
|
940
|
-
Object.keys(
|
|
938
|
+
const c = Me(i);
|
|
939
|
+
Object.keys(c).length > 0 && (g.properties = c);
|
|
941
940
|
}
|
|
942
941
|
return g;
|
|
943
942
|
}
|
|
@@ -968,10 +967,10 @@ const Xe = class Xe extends z {
|
|
|
968
967
|
if (!n) return null;
|
|
969
968
|
const r = n[0].length - 1, s = be(e, r);
|
|
970
969
|
if (s === -1) return null;
|
|
971
|
-
const a = e.substring(r + 1, s), l = Ee(a), i = e.substring(s + 1).trim(),
|
|
970
|
+
const a = e.substring(r + 1, s), l = Ee(a), i = e.substring(s + 1).trim(), u = l.map((c) => o && o(c) || c).filter(Boolean), g = new Xe({ children: u });
|
|
972
971
|
if (i) {
|
|
973
|
-
const
|
|
974
|
-
Object.keys(
|
|
972
|
+
const c = Me(i);
|
|
973
|
+
Object.keys(c).length > 0 && (g.properties = c);
|
|
975
974
|
}
|
|
976
975
|
return g;
|
|
977
976
|
}
|
|
@@ -1054,10 +1053,10 @@ let Br = (Te = class extends z {
|
|
|
1054
1053
|
if (!n) return null;
|
|
1055
1054
|
const r = n[0].length - 1, s = be(e, r);
|
|
1056
1055
|
if (s === -1) return null;
|
|
1057
|
-
const a = e.substring(r + 1, s), l = Ee(a), i = e.substring(s + 1).trim(),
|
|
1056
|
+
const a = e.substring(r + 1, s), l = Ee(a), i = e.substring(s + 1).trim(), u = l.map((c) => o && o(c) || c).filter(Boolean), g = new Te({ children: u });
|
|
1058
1057
|
if (i) {
|
|
1059
|
-
const
|
|
1060
|
-
Object.keys(
|
|
1058
|
+
const c = Me(i);
|
|
1059
|
+
Object.keys(c).length > 0 && (g.properties = c);
|
|
1061
1060
|
}
|
|
1062
1061
|
return g;
|
|
1063
1062
|
}
|
|
@@ -1091,10 +1090,10 @@ const Be = class Be extends z {
|
|
|
1091
1090
|
const r = n[0].length - 1, s = be(e, r);
|
|
1092
1091
|
if (s === -1) return null;
|
|
1093
1092
|
const a = e.substring(r + 1, s), l = Ee(a);
|
|
1094
|
-
let i = e.substring(s + 1).trim(),
|
|
1093
|
+
let i = e.substring(s + 1).trim(), u = null;
|
|
1095
1094
|
if (l.length > 0) {
|
|
1096
1095
|
const m = l[0];
|
|
1097
|
-
o && (
|
|
1096
|
+
o && (u = o(m)), u || (u = m);
|
|
1098
1097
|
}
|
|
1099
1098
|
let g = [];
|
|
1100
1099
|
if (i && /^\.to\s*\(/i.test(i)) {
|
|
@@ -1104,12 +1103,12 @@ const Be = class Be extends z {
|
|
|
1104
1103
|
g = Ee(_).map((N) => o && o(N) || N).filter(Boolean), i = i.substring(f + 1).trim();
|
|
1105
1104
|
}
|
|
1106
1105
|
}
|
|
1107
|
-
const
|
|
1108
|
-
if (
|
|
1106
|
+
const c = new Be({ children: g }), h = {};
|
|
1107
|
+
if (u && (h.condition = u), i) {
|
|
1109
1108
|
const m = Me(i);
|
|
1110
1109
|
Object.assign(h, m);
|
|
1111
1110
|
}
|
|
1112
|
-
return Object.keys(h).length > 0 && (
|
|
1111
|
+
return Object.keys(h).length > 0 && (c.properties = h), c;
|
|
1113
1112
|
}
|
|
1114
1113
|
toDSL(e) {
|
|
1115
1114
|
const o = (this.children || []).map((r) => typeof r == "string" ? r : e ? e(r) : String(r)).filter(Boolean);
|
|
@@ -1192,15 +1191,15 @@ const Jo = 2, to = 3, oo = {
|
|
|
1192
1191
|
return console.warn(`[IfNode] IF 表达式参数不足:需要至少 ${Jo} 个参数,实际 ${l.length}`), null;
|
|
1193
1192
|
if (l.length > to)
|
|
1194
1193
|
return console.warn(`[IfNode] IF 表达式参数过多:最多 ${to} 个参数,实际 ${l.length}`), null;
|
|
1195
|
-
const
|
|
1194
|
+
const u = (y) => {
|
|
1196
1195
|
const f = o ? o(y) || y : y;
|
|
1197
1196
|
return typeof f == "string" && Ct(f) || f != null && f.isLeaf && Ct(f.id) ? null : f;
|
|
1198
|
-
}, g =
|
|
1197
|
+
}, g = u(l[oo.CONDITION]), c = u(l[oo.TRUE_BRANCH]);
|
|
1199
1198
|
let h = null;
|
|
1200
|
-
l.length >= to && (h =
|
|
1199
|
+
l.length >= to && (h = u(l[oo.FALSE_BRANCH]));
|
|
1201
1200
|
const m = new ke({
|
|
1202
1201
|
condition: g,
|
|
1203
|
-
trueBranch:
|
|
1202
|
+
trueBranch: c,
|
|
1204
1203
|
falseBranch: h
|
|
1205
1204
|
});
|
|
1206
1205
|
if (i) {
|
|
@@ -1311,21 +1310,21 @@ const Jo = 2, to = 3, oo = {
|
|
|
1311
1310
|
});
|
|
1312
1311
|
let a = null;
|
|
1313
1312
|
if (this.trueBranch && !Ft(this.trueBranch) && typeof this.trueBranch.toGraph == "function") {
|
|
1314
|
-
const
|
|
1315
|
-
if (
|
|
1316
|
-
a =
|
|
1317
|
-
const g = e.nodes.find((
|
|
1313
|
+
const u = this.trueBranch.toGraph(e, null);
|
|
1314
|
+
if (u) {
|
|
1315
|
+
a = u.firstId;
|
|
1316
|
+
const g = e.nodes.find((c) => c.id === u.firstId);
|
|
1318
1317
|
g && (g.properties = { ...g.properties || {}, parentBranchId: n }), e.edges.push({
|
|
1319
1318
|
id: e.makeId("edge"),
|
|
1320
1319
|
type: "edge-with-plus",
|
|
1321
1320
|
sourceNodeId: n,
|
|
1322
|
-
targetNodeId:
|
|
1321
|
+
targetNodeId: u.firstId,
|
|
1323
1322
|
text: "",
|
|
1324
1323
|
properties: { edgeType: re.IF_TRUE }
|
|
1325
1324
|
}), e.edges.push({
|
|
1326
1325
|
id: e.makeId("edge"),
|
|
1327
1326
|
type: "edge-with-plus",
|
|
1328
|
-
sourceNodeId:
|
|
1327
|
+
sourceNodeId: u.lastId || u.firstId,
|
|
1329
1328
|
targetNodeId: r,
|
|
1330
1329
|
text: "",
|
|
1331
1330
|
properties: {}
|
|
@@ -1342,28 +1341,28 @@ const Jo = 2, to = 3, oo = {
|
|
|
1342
1341
|
});
|
|
1343
1342
|
let l = null;
|
|
1344
1343
|
if (this.falseBranch && !Ft(this.falseBranch) && typeof this.falseBranch.toGraph == "function") {
|
|
1345
|
-
const
|
|
1346
|
-
if (
|
|
1347
|
-
l =
|
|
1348
|
-
const g = e.nodes.find((
|
|
1344
|
+
const u = this.falseBranch.toGraph(e, null);
|
|
1345
|
+
if (u) {
|
|
1346
|
+
l = u.firstId;
|
|
1347
|
+
const g = e.nodes.find((c) => c.id === u.firstId);
|
|
1349
1348
|
g && (g.properties = { ...g.properties || {}, parentBranchId: n }), e.edges.push({
|
|
1350
1349
|
id: e.makeId("edge"),
|
|
1351
1350
|
type: "edge-with-plus",
|
|
1352
1351
|
sourceNodeId: n,
|
|
1353
|
-
targetNodeId:
|
|
1352
|
+
targetNodeId: u.firstId,
|
|
1354
1353
|
text: "",
|
|
1355
1354
|
properties: { edgeType: re.IF_FALSE }
|
|
1356
1355
|
}), e.edges.push({
|
|
1357
1356
|
id: e.makeId("edge"),
|
|
1358
1357
|
type: "edge-with-plus",
|
|
1359
|
-
sourceNodeId:
|
|
1358
|
+
sourceNodeId: u.lastId || u.firstId,
|
|
1360
1359
|
targetNodeId: r,
|
|
1361
1360
|
text: "",
|
|
1362
1361
|
properties: {}
|
|
1363
1362
|
});
|
|
1364
1363
|
}
|
|
1365
1364
|
}
|
|
1366
|
-
const i = e.nodes.find((
|
|
1365
|
+
const i = e.nodes.find((u) => u.id === n);
|
|
1367
1366
|
return i && (a && (i.properties.trueBranchFirstId = a), l && (i.properties.falseBranchFirstId = l)), { firstId: n, lastId: r };
|
|
1368
1367
|
}
|
|
1369
1368
|
};
|
|
@@ -1381,10 +1380,10 @@ const Fe = class Fe extends z {
|
|
|
1381
1380
|
const r = n[0].length - 1, s = be(e, r);
|
|
1382
1381
|
if (s === -1) return null;
|
|
1383
1382
|
const a = e.substring(r + 1, s), l = Ee(a);
|
|
1384
|
-
let i = e.substring(s + 1).trim(),
|
|
1383
|
+
let i = e.substring(s + 1).trim(), u = null;
|
|
1385
1384
|
if (l.length > 0) {
|
|
1386
1385
|
const m = l[0];
|
|
1387
|
-
o && (
|
|
1386
|
+
o && (u = o(m)), u || (u = m);
|
|
1388
1387
|
}
|
|
1389
1388
|
let g = [];
|
|
1390
1389
|
if (i && new RegExp(`^\\.${U.DO}\\s*\\(`, "i").test(i)) {
|
|
@@ -1395,12 +1394,12 @@ const Fe = class Fe extends z {
|
|
|
1395
1394
|
}
|
|
1396
1395
|
} else
|
|
1397
1396
|
g = l.slice(1).map((m) => o && o(m) || m).filter(Boolean);
|
|
1398
|
-
const
|
|
1399
|
-
if (
|
|
1397
|
+
const c = new Fe({ children: g }), h = {};
|
|
1398
|
+
if (u && (h.condition = u), i) {
|
|
1400
1399
|
const m = Me(i);
|
|
1401
1400
|
Object.assign(h, m);
|
|
1402
1401
|
}
|
|
1403
|
-
return Object.keys(h).length > 0 && (
|
|
1402
|
+
return Object.keys(h).length > 0 && (c.properties = h), c;
|
|
1404
1403
|
}
|
|
1405
1404
|
toDSL(e) {
|
|
1406
1405
|
const n = (this.children || []).filter((s) => typeof s != "string").map((s) => e ? e(s) : String(s)).filter(Boolean);
|
|
@@ -1445,10 +1444,10 @@ const De = class De extends z {
|
|
|
1445
1444
|
const r = n[0].length - 1, s = be(e, r);
|
|
1446
1445
|
if (s === -1) return null;
|
|
1447
1446
|
const a = e.substring(r + 1, s), l = Ee(a);
|
|
1448
|
-
let i = e.substring(s + 1).trim(),
|
|
1447
|
+
let i = e.substring(s + 1).trim(), u = null;
|
|
1449
1448
|
if (l.length > 0) {
|
|
1450
1449
|
const m = l[0];
|
|
1451
|
-
o && (
|
|
1450
|
+
o && (u = o(m)), u || (u = m);
|
|
1452
1451
|
}
|
|
1453
1452
|
let g = [];
|
|
1454
1453
|
if (i && new RegExp(`^\\.${U.DO}\\s*\\(`, "i").test(i)) {
|
|
@@ -1459,12 +1458,12 @@ const De = class De extends z {
|
|
|
1459
1458
|
}
|
|
1460
1459
|
} else
|
|
1461
1460
|
g = l.slice(1).map((m) => o && o(m) || m).filter(Boolean);
|
|
1462
|
-
const
|
|
1463
|
-
if (
|
|
1461
|
+
const c = new De({ children: g }), h = {};
|
|
1462
|
+
if (u && (h.condition = u), i) {
|
|
1464
1463
|
const m = Me(i);
|
|
1465
1464
|
Object.assign(h, m);
|
|
1466
1465
|
}
|
|
1467
|
-
return Object.keys(h).length > 0 && (
|
|
1466
|
+
return Object.keys(h).length > 0 && (c.properties = h), c;
|
|
1468
1467
|
}
|
|
1469
1468
|
toDSL(e) {
|
|
1470
1469
|
const o = (this.children || []).map((r) => typeof r == "string" ? r : e ? e(r) : String(r)).filter(Boolean);
|
|
@@ -1509,10 +1508,10 @@ const He = class He extends z {
|
|
|
1509
1508
|
const r = n[0].length - 1, s = be(e, r);
|
|
1510
1509
|
if (s === -1) return null;
|
|
1511
1510
|
const a = e.substring(r + 1, s), l = Ee(a);
|
|
1512
|
-
let i = e.substring(s + 1).trim(),
|
|
1511
|
+
let i = e.substring(s + 1).trim(), u = null;
|
|
1513
1512
|
if (l.length > 0) {
|
|
1514
1513
|
const m = l[0];
|
|
1515
|
-
o && (
|
|
1514
|
+
o && (u = o(m)), u || (u = m);
|
|
1516
1515
|
}
|
|
1517
1516
|
let g = [];
|
|
1518
1517
|
if (i && new RegExp(`^\\.${U.DO}\\s*\\(`, "i").test(i)) {
|
|
@@ -1523,12 +1522,12 @@ const He = class He extends z {
|
|
|
1523
1522
|
}
|
|
1524
1523
|
} else
|
|
1525
1524
|
g = l.slice(1).map((m) => o && o(m) || m).filter(Boolean);
|
|
1526
|
-
const
|
|
1527
|
-
if (
|
|
1525
|
+
const c = new He({ children: g }), h = {};
|
|
1526
|
+
if (u && (h.condition = u), i) {
|
|
1528
1527
|
const m = Me(i);
|
|
1529
1528
|
Object.assign(h, m);
|
|
1530
1529
|
}
|
|
1531
|
-
return Object.keys(h).length > 0 && (
|
|
1530
|
+
return Object.keys(h).length > 0 && (c.properties = h), c;
|
|
1532
1531
|
}
|
|
1533
1532
|
toDSL(e) {
|
|
1534
1533
|
const o = (this.children || []).map((r) => typeof r == "string" ? r : e ? e(r) : String(r)).filter(Boolean);
|
|
@@ -1606,7 +1605,7 @@ function Vn(t, e) {
|
|
|
1606
1605
|
const { adjacency: o, nodeMap: n } = Lr(t, e), r = t.find((p) => p.type === d.START), s = z.byType(d.CHAIN);
|
|
1607
1606
|
if (!r) return new s({ children: [] });
|
|
1608
1607
|
const a = /* @__PURE__ */ new Set(), l = z.byType(d.THEN), i = z.byType(d.CMP);
|
|
1609
|
-
function
|
|
1608
|
+
function u(p, b) {
|
|
1610
1609
|
var w, x, A, $, R, j, V, F;
|
|
1611
1610
|
if (!p || !n[p]) return null;
|
|
1612
1611
|
const T = [];
|
|
@@ -1622,7 +1621,7 @@ function Vn(t, e) {
|
|
|
1622
1621
|
a.add(v);
|
|
1623
1622
|
const se = (o[v] || []).filter((ue) => ue !== W), q = [];
|
|
1624
1623
|
for (const ue of se) {
|
|
1625
|
-
const ut =
|
|
1624
|
+
const ut = u(ue, W);
|
|
1626
1625
|
ut && q.push(ut);
|
|
1627
1626
|
}
|
|
1628
1627
|
a.add(W);
|
|
@@ -1638,7 +1637,7 @@ function Vn(t, e) {
|
|
|
1638
1637
|
a.add(v);
|
|
1639
1638
|
const se = (o[v] || []).filter((ce) => ce !== W), q = [];
|
|
1640
1639
|
for (const ce of se) {
|
|
1641
|
-
const ue =
|
|
1640
|
+
const ue = u(ce, W);
|
|
1642
1641
|
ue && q.push(ue);
|
|
1643
1642
|
}
|
|
1644
1643
|
a.add(W);
|
|
@@ -1655,25 +1654,25 @@ function Vn(t, e) {
|
|
|
1655
1654
|
for (const pt of se) {
|
|
1656
1655
|
if (pt === W) continue;
|
|
1657
1656
|
const eo = (e || []).find(
|
|
1658
|
-
(
|
|
1659
|
-
),
|
|
1660
|
-
|
|
1657
|
+
(Xo) => Xo.sourceNodeId === v && Xo.targetNodeId === pt
|
|
1658
|
+
), Yo = (($ = eo == null ? void 0 : eo.properties) == null ? void 0 : $.edgeType) || "";
|
|
1659
|
+
Yo === re.IF_TRUE ? q = pt : Yo === re.IF_FALSE || q ? oe = pt : q = pt;
|
|
1661
1660
|
}
|
|
1662
|
-
const Ne = q && q !== W ?
|
|
1661
|
+
const Ne = q && q !== W ? u(q, W) : null, ce = oe && oe !== W ? u(oe, W) : null;
|
|
1663
1662
|
W && a.add(W);
|
|
1664
|
-
const ue = z.byType(d.CMP), ut = (R = M.properties) == null ? void 0 : R.condition, St = Zo(ut, ue), yr = z.byType(d.IF),
|
|
1663
|
+
const ue = z.byType(d.CMP), ut = (R = M.properties) == null ? void 0 : R.condition, St = Zo(ut, ue), yr = z.byType(d.IF), Uo = new yr({
|
|
1665
1664
|
condition: St,
|
|
1666
1665
|
trueBranch: Mt(Ne),
|
|
1667
1666
|
falseBranch: Mt(ce)
|
|
1668
|
-
}),
|
|
1669
|
-
return
|
|
1667
|
+
}), Wo = we(M.properties, d.IF);
|
|
1668
|
+
return Wo && (Uo.properties = Wo), Uo;
|
|
1670
1669
|
}
|
|
1671
1670
|
const D = z.byType(B);
|
|
1672
1671
|
if (D && D.IS_BRANCH) {
|
|
1673
1672
|
a.add(v);
|
|
1674
1673
|
const W = (j = M.properties) == null ? void 0 : j.aggregateNodeId, se = (o[v] || []).filter((ce) => ce !== W), q = [];
|
|
1675
1674
|
for (const ce of se) {
|
|
1676
|
-
const ue =
|
|
1675
|
+
const ue = u(ce, W);
|
|
1677
1676
|
ue && q.push(ue);
|
|
1678
1677
|
}
|
|
1679
1678
|
W && a.add(W);
|
|
@@ -1683,7 +1682,7 @@ function Vn(t, e) {
|
|
|
1683
1682
|
}
|
|
1684
1683
|
if (D && D.IS_LOOP) {
|
|
1685
1684
|
a.add(v);
|
|
1686
|
-
const W = (V = M.properties) == null ? void 0 : V.aggregateNodeId, q = (o[v] || []).filter((ue) => ue !== W)[0], oe = q ?
|
|
1685
|
+
const W = (V = M.properties) == null ? void 0 : V.aggregateNodeId, q = (o[v] || []).filter((ue) => ue !== W)[0], oe = q ? u(q, W) : null, Ne = oe ? [oe] : [], ce = we(M.properties, B);
|
|
1687
1686
|
W && a.add(W), T.push(new D({ children: Ne, properties: ce }));
|
|
1688
1687
|
break;
|
|
1689
1688
|
}
|
|
@@ -1693,40 +1692,40 @@ function Vn(t, e) {
|
|
|
1693
1692
|
}
|
|
1694
1693
|
return T.length === 0 ? null : T.length === 1 && T[0].isLeaf || T.length === 1 && T[0].isOperator ? T[0] : new l({ children: T });
|
|
1695
1694
|
}
|
|
1696
|
-
let g = [],
|
|
1697
|
-
for (;
|
|
1698
|
-
const p = n[
|
|
1695
|
+
let g = [], c = (o[r.id] || [])[0], h = !1;
|
|
1696
|
+
for (; c; ) {
|
|
1697
|
+
const p = n[c];
|
|
1699
1698
|
if (!p) break;
|
|
1700
1699
|
const b = no(p);
|
|
1701
|
-
if (b === d.END || a.has(
|
|
1700
|
+
if (b === d.END || a.has(c)) break;
|
|
1702
1701
|
if (b === d.AND) {
|
|
1703
|
-
a.add(
|
|
1702
|
+
a.add(c), c = (o[c] || [])[0];
|
|
1704
1703
|
continue;
|
|
1705
1704
|
}
|
|
1706
1705
|
if (b === d.PRE || b === d.FINALLY) {
|
|
1707
1706
|
const w = (y = p.properties) == null ? void 0 : y.aggregateNodeId;
|
|
1708
1707
|
if (w) {
|
|
1709
|
-
h = !0, a.add(
|
|
1710
|
-
const x = (o[
|
|
1708
|
+
h = !0, a.add(c);
|
|
1709
|
+
const x = (o[c] || []).filter((V) => V !== w), A = [];
|
|
1711
1710
|
for (const V of x) {
|
|
1712
|
-
const F =
|
|
1711
|
+
const F = u(V, w);
|
|
1713
1712
|
F && A.push(F);
|
|
1714
1713
|
}
|
|
1715
1714
|
a.add(w);
|
|
1716
1715
|
const $ = z.byType(b), R = new $({ children: A }), j = we(p.properties, b);
|
|
1717
|
-
j && (R.properties = j), g.push(R),
|
|
1716
|
+
j && (R.properties = j), g.push(R), c = (o[w] || [])[0];
|
|
1718
1717
|
continue;
|
|
1719
1718
|
}
|
|
1720
|
-
a.add(
|
|
1719
|
+
a.add(c), c = (o[c] || [])[0];
|
|
1721
1720
|
continue;
|
|
1722
1721
|
}
|
|
1723
1722
|
if (b === d.THEN) {
|
|
1724
1723
|
const w = (f = p.properties) == null ? void 0 : f.aggregateNodeId;
|
|
1725
1724
|
if (w) {
|
|
1726
|
-
h = !0, a.add(
|
|
1727
|
-
const x = (o[
|
|
1725
|
+
h = !0, a.add(c);
|
|
1726
|
+
const x = (o[c] || []).filter((V) => V !== w), A = [];
|
|
1728
1727
|
for (const V of x) {
|
|
1729
|
-
const F =
|
|
1728
|
+
const F = u(V, w);
|
|
1730
1729
|
F && A.push(F);
|
|
1731
1730
|
}
|
|
1732
1731
|
a.add(w);
|
|
@@ -1734,73 +1733,73 @@ function Vn(t, e) {
|
|
|
1734
1733
|
for (const V of A)
|
|
1735
1734
|
V && V.type === d.THEN ? $.push(...V.children) : V && $.push(V);
|
|
1736
1735
|
const R = we(p.properties, d.THEN), j = new l({ children: $, properties: R || void 0 });
|
|
1737
|
-
($.length > 0 || R) && g.push(j),
|
|
1736
|
+
($.length > 0 || R) && g.push(j), c = (o[w] || [])[0];
|
|
1738
1737
|
continue;
|
|
1739
1738
|
}
|
|
1740
|
-
a.add(
|
|
1739
|
+
a.add(c), c = (o[c] || [])[0];
|
|
1741
1740
|
continue;
|
|
1742
1741
|
}
|
|
1743
1742
|
const T = z.byType(b);
|
|
1744
1743
|
if (T && T.IS_BRANCH) {
|
|
1745
|
-
h = !0, a.add(
|
|
1746
|
-
const w = (_ = p.properties) == null ? void 0 : _.aggregateNodeId, x = (o[
|
|
1744
|
+
h = !0, a.add(c);
|
|
1745
|
+
const w = (_ = p.properties) == null ? void 0 : _.aggregateNodeId, x = (o[c] || []).filter((j) => j !== w), A = [];
|
|
1747
1746
|
for (const j of x) {
|
|
1748
|
-
const V =
|
|
1747
|
+
const V = u(j, w);
|
|
1749
1748
|
V && A.push(V);
|
|
1750
1749
|
}
|
|
1751
1750
|
const $ = new T({ children: A }), R = we(p.properties, b);
|
|
1752
|
-
R && ($.properties = R), g.push($), w ? (a.add(w),
|
|
1751
|
+
R && ($.properties = R), g.push($), w ? (a.add(w), c = (o[w] || [])[0]) : c = null;
|
|
1753
1752
|
continue;
|
|
1754
1753
|
}
|
|
1755
1754
|
if (T && T.IS_LOOP) {
|
|
1756
|
-
h = !0, a.add(
|
|
1757
|
-
const w = (S = p.properties) == null ? void 0 : S.aggregateNodeId, A = (o[
|
|
1758
|
-
g.push(new T({ children: R, properties: j })), w ? (a.add(w),
|
|
1755
|
+
h = !0, a.add(c);
|
|
1756
|
+
const w = (S = p.properties) == null ? void 0 : S.aggregateNodeId, A = (o[c] || []).filter((V) => V !== w)[0], $ = A ? u(A, w) : null, R = $ ? [$] : [], j = we(p.properties, b);
|
|
1757
|
+
g.push(new T({ children: R, properties: j })), w ? (a.add(w), c = (o[w] || [])[0]) : A && !a.has(A) ? (a.add(A), c = (o[A] || [])[0]) : c = null;
|
|
1759
1758
|
continue;
|
|
1760
1759
|
}
|
|
1761
1760
|
if (b === d.IF) {
|
|
1762
|
-
h = !0, a.add(
|
|
1763
|
-
const w = (N = p.properties) == null ? void 0 : N.aggregateNodeId, x = o[
|
|
1761
|
+
h = !0, a.add(c);
|
|
1762
|
+
const w = (N = p.properties) == null ? void 0 : N.aggregateNodeId, x = o[c] || [];
|
|
1764
1763
|
let A = null, $ = null;
|
|
1765
1764
|
for (const Y of x) {
|
|
1766
1765
|
if (Y === w) continue;
|
|
1767
1766
|
const K = (e || []).find(
|
|
1768
|
-
(ge) => ge.sourceNodeId ===
|
|
1767
|
+
(ge) => ge.sourceNodeId === c && ge.targetNodeId === Y
|
|
1769
1768
|
), ae = ((O = K == null ? void 0 : K.properties) == null ? void 0 : O.edgeType) || "";
|
|
1770
1769
|
ae === re.IF_TRUE ? A = Y : ae === re.IF_FALSE || A ? $ = Y : A = Y;
|
|
1771
1770
|
}
|
|
1772
|
-
const R = A && A !== w ?
|
|
1771
|
+
const R = A && A !== w ? u(A, w) : null, j = $ && $ !== w ? u($, w) : null;
|
|
1773
1772
|
w && a.add(w);
|
|
1774
1773
|
const V = (C = p.properties) == null ? void 0 : C.condition, F = Zo(V, i), M = z.byType(d.IF), B = new M({
|
|
1775
1774
|
condition: F,
|
|
1776
1775
|
trueBranch: Mt(R),
|
|
1777
1776
|
falseBranch: Mt(j)
|
|
1778
1777
|
}), D = we(p.properties, d.IF);
|
|
1779
|
-
D && (B.properties = D), g.push(B), w ?
|
|
1778
|
+
D && (B.properties = D), g.push(B), w ? c = (o[w] || [])[0] : c = null;
|
|
1780
1779
|
continue;
|
|
1781
1780
|
}
|
|
1782
1781
|
const v = [];
|
|
1783
|
-
for (;
|
|
1784
|
-
const w = n[
|
|
1782
|
+
for (; c; ) {
|
|
1783
|
+
const w = n[c];
|
|
1785
1784
|
if (!w) break;
|
|
1786
1785
|
const x = no(w);
|
|
1787
1786
|
if (x === d.END) {
|
|
1788
|
-
|
|
1787
|
+
c = null;
|
|
1789
1788
|
break;
|
|
1790
1789
|
}
|
|
1791
|
-
if (a.has(
|
|
1790
|
+
if (a.has(c)) break;
|
|
1792
1791
|
if (x === d.AND) {
|
|
1793
|
-
a.add(
|
|
1792
|
+
a.add(c), c = (o[c] || [])[0];
|
|
1794
1793
|
continue;
|
|
1795
1794
|
}
|
|
1796
1795
|
const A = z.byType(x);
|
|
1797
1796
|
if (A && A.IS_OPERATOR) break;
|
|
1798
|
-
a.add(
|
|
1797
|
+
a.add(c);
|
|
1799
1798
|
const $ = we(w.properties, x), R = i, j = new R({
|
|
1800
|
-
id: ((E = w.properties) == null ? void 0 : E.componentId) || w.text ||
|
|
1799
|
+
id: ((E = w.properties) == null ? void 0 : E.componentId) || w.text || c,
|
|
1801
1800
|
properties: $ || void 0
|
|
1802
1801
|
});
|
|
1803
|
-
v.push(j),
|
|
1802
|
+
v.push(j), c = (o[c] || [])[0];
|
|
1804
1803
|
}
|
|
1805
1804
|
v.length > 0 && g.push(...v);
|
|
1806
1805
|
}
|
|
@@ -1906,13 +1905,13 @@ function zr(t, e = null, o = "未命名流程") {
|
|
|
1906
1905
|
const rt = /* @__PURE__ */ new Map();
|
|
1907
1906
|
let bo = {};
|
|
1908
1907
|
const Eo = /* @__PURE__ */ new Map();
|
|
1909
|
-
function
|
|
1910
|
-
bo = { ...bo, ...t },
|
|
1908
|
+
function Qp(t) {
|
|
1909
|
+
bo = { ...bo, ...t }, Bo();
|
|
1911
1910
|
}
|
|
1912
1911
|
function Gr() {
|
|
1913
1912
|
return bo;
|
|
1914
1913
|
}
|
|
1915
|
-
function
|
|
1914
|
+
function Bo() {
|
|
1916
1915
|
Eo.clear();
|
|
1917
1916
|
for (const t of rt.values()) {
|
|
1918
1917
|
const e = xt(t);
|
|
@@ -1924,16 +1923,15 @@ function Ur(t) {
|
|
|
1924
1923
|
}
|
|
1925
1924
|
function Wr(t) {
|
|
1926
1925
|
t.forEach((e) => {
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
}), Ro();
|
|
1926
|
+
rt.has(e.type) || rt.set(e.type, { ...e, source: "core" });
|
|
1927
|
+
}), Bo();
|
|
1930
1928
|
}
|
|
1931
|
-
function
|
|
1929
|
+
function e1(t) {
|
|
1932
1930
|
t.forEach((e) => {
|
|
1933
1931
|
const o = rt.get(e.type);
|
|
1934
1932
|
if (o && o.source === "core") throw new Error(`不能覆盖core内置节点:${e.type}`);
|
|
1935
1933
|
rt.set(e.type, { ...e, source: "plugin" });
|
|
1936
|
-
}),
|
|
1934
|
+
}), Bo();
|
|
1937
1935
|
}
|
|
1938
1936
|
function Yr(t) {
|
|
1939
1937
|
return rt.get(t);
|
|
@@ -2023,7 +2021,7 @@ function Zr(t) {
|
|
|
2023
2021
|
}
|
|
2024
2022
|
function Un(t, e) {
|
|
2025
2023
|
if (!t || !e) return;
|
|
2026
|
-
const o =
|
|
2024
|
+
const o = ko[t];
|
|
2027
2025
|
if (o)
|
|
2028
2026
|
if (o.shape === "circle")
|
|
2029
2027
|
e.r = $e.circle[t] || 18;
|
|
@@ -2040,7 +2038,7 @@ function Un(t, e) {
|
|
|
2040
2038
|
e.width = n.width, e.height = n.height;
|
|
2041
2039
|
}
|
|
2042
2040
|
}
|
|
2043
|
-
const
|
|
2041
|
+
const ko = {
|
|
2044
2042
|
// ==================== 流程控制 ====================
|
|
2045
2043
|
[d.WHEN]: {
|
|
2046
2044
|
type: d.WHEN,
|
|
@@ -2232,11 +2230,11 @@ function Kr() {
|
|
|
2232
2230
|
[ye.COMPONENT]: [],
|
|
2233
2231
|
[ye.SPECIAL]: []
|
|
2234
2232
|
};
|
|
2235
|
-
for (const [e, o] of Object.entries(
|
|
2233
|
+
for (const [e, o] of Object.entries(ko))
|
|
2236
2234
|
e === d.START || e === d.END || e === d.AND || e === d.BRANCH || t[o.category].push({ key: e, ...o });
|
|
2237
2235
|
return t;
|
|
2238
2236
|
}
|
|
2239
|
-
function
|
|
2237
|
+
function Fo(t) {
|
|
2240
2238
|
return $r.has(t);
|
|
2241
2239
|
}
|
|
2242
2240
|
function qr(t) {
|
|
@@ -2252,9 +2250,9 @@ function Jr(t, e) {
|
|
|
2252
2250
|
if (!a) continue;
|
|
2253
2251
|
const l = a.outgoing || {}, i = Array.isArray(l.edges) ? l.edges : [];
|
|
2254
2252
|
if (i.length)
|
|
2255
|
-
for (const
|
|
2256
|
-
if (!
|
|
2257
|
-
const g =
|
|
2253
|
+
for (const u of i) {
|
|
2254
|
+
if (!u) continue;
|
|
2255
|
+
const g = u.targetNodeId;
|
|
2258
2256
|
!g || n.has(g) || (o.add(g), r.push(g));
|
|
2259
2257
|
}
|
|
2260
2258
|
}
|
|
@@ -2309,7 +2307,7 @@ class Qr {
|
|
|
2309
2307
|
if (!e)
|
|
2310
2308
|
return this._finish("error", "当前节点丢失"), null;
|
|
2311
2309
|
const o = e.type;
|
|
2312
|
-
return o === d.END ? (this._finish("complete", "流程执行完毕"), null) : o === d.AND ? this._stepThrough(e) :
|
|
2310
|
+
return o === d.END ? (this._finish("complete", "流程执行完毕"), null) : o === d.AND ? this._stepThrough(e) : Fo(o) ? this._stepBranch(e) : this._stepThrough(e);
|
|
2313
2311
|
}
|
|
2314
2312
|
/**
|
|
2315
2313
|
* 自动执行直到完成
|
|
@@ -2371,29 +2369,29 @@ class Qr {
|
|
|
2371
2369
|
return this._log("warn", `[分支] ${o} 节点无出边`), null;
|
|
2372
2370
|
if (o === d.WHEN) {
|
|
2373
2371
|
this._log("info", `[并行] WHEN 节点展开 ${n.length} 条分支`);
|
|
2374
|
-
const i = n.map((
|
|
2372
|
+
const i = n.map((c) => this._nodeMap[c.targetNodeId]).filter((c) => c && c.type !== d.AND);
|
|
2375
2373
|
if (i.length === 0)
|
|
2376
2374
|
return this._stepThrough(e);
|
|
2377
|
-
const
|
|
2378
|
-
this.visitedNodeIds.add(
|
|
2375
|
+
const u = i[0];
|
|
2376
|
+
this.visitedNodeIds.add(u.id), this.currentNodeId = u.id;
|
|
2379
2377
|
const g = this._makeStep(
|
|
2380
|
-
|
|
2378
|
+
u,
|
|
2381
2379
|
n[0].edgeId,
|
|
2382
2380
|
`并行分支 (1/${i.length})`,
|
|
2383
2381
|
"branch"
|
|
2384
2382
|
);
|
|
2385
|
-
return this.steps.push(g), this._log("info", `[并行] 进入分支: ${
|
|
2383
|
+
return this.steps.push(g), this._log("info", `[并行] 进入分支: ${u.text || u.type}`), g;
|
|
2386
2384
|
}
|
|
2387
2385
|
if (o === d.IF) {
|
|
2388
2386
|
const i = ((r = e.properties) == null ? void 0 : r.condition) || "";
|
|
2389
2387
|
this._log("info", `[IF条件] 判断: "${i}"`);
|
|
2390
|
-
const
|
|
2391
|
-
let g = null,
|
|
2392
|
-
for (const S of
|
|
2388
|
+
const u = this._adjacency[e.id] || [];
|
|
2389
|
+
let g = null, c = null, h = null;
|
|
2390
|
+
for (const S of u) {
|
|
2393
2391
|
const N = this.flowData.edges.find((C) => C.id === S.edgeId), O = ((s = N == null ? void 0 : N.properties) == null ? void 0 : s.edgeType) || "";
|
|
2394
|
-
O === re.IF_TRUE ? g = S : O === re.IF_FALSE ?
|
|
2392
|
+
O === re.IF_TRUE ? g = S : O === re.IF_FALSE ? c = S : h || (h = S);
|
|
2395
2393
|
}
|
|
2396
|
-
const m = !!i && i.trim().length > 0, y = m ? g || h :
|
|
2394
|
+
const m = !!i && i.trim().length > 0, y = m ? g || h : c || h;
|
|
2397
2395
|
if (!y)
|
|
2398
2396
|
return this._log("warn", "[IF条件] 无可用的出边"), null;
|
|
2399
2397
|
const f = this._nodeMap[y.targetNodeId];
|
|
@@ -2411,40 +2409,40 @@ class Qr {
|
|
|
2411
2409
|
if (Pr.has(o)) {
|
|
2412
2410
|
const i = ((a = e.properties) == null ? void 0 : a.condition) || "";
|
|
2413
2411
|
this._log("info", `[条件] ${o} 条件: "${i}"`);
|
|
2414
|
-
let
|
|
2412
|
+
let u = null;
|
|
2415
2413
|
for (const h of n) {
|
|
2416
2414
|
const m = this.flowData.edges.find((f) => f.id === h.edgeId), y = (m == null ? void 0 : m.text) || "";
|
|
2417
2415
|
if (y && i && y.includes(i)) {
|
|
2418
|
-
|
|
2416
|
+
u = h;
|
|
2419
2417
|
break;
|
|
2420
2418
|
}
|
|
2421
2419
|
}
|
|
2422
|
-
|
|
2423
|
-
const g = this._nodeMap[
|
|
2420
|
+
u || (u = n[0], n.length > 1 && this._log("warn", "[条件] 无匹配分支,使用默认第一条"));
|
|
2421
|
+
const g = this._nodeMap[u.targetNodeId];
|
|
2424
2422
|
if (!g)
|
|
2425
2423
|
return this._finish("error", "条件分支目标节点不存在"), null;
|
|
2426
2424
|
this.visitedNodeIds.add(g.id), this.currentNodeId = g.id;
|
|
2427
|
-
const
|
|
2425
|
+
const c = this._makeStep(
|
|
2428
2426
|
g,
|
|
2429
|
-
|
|
2427
|
+
u.edgeId,
|
|
2430
2428
|
`条件分支: ${i || "default"}`,
|
|
2431
2429
|
"branch"
|
|
2432
2430
|
);
|
|
2433
|
-
return this.steps.push(
|
|
2431
|
+
return this.steps.push(c), this._log("info", `[条件] 选择分支 → ${g.text || g.type}`), c;
|
|
2434
2432
|
}
|
|
2435
2433
|
if (o === d.FOR || o === d.ITERATOR) {
|
|
2436
2434
|
const i = ((l = e.properties) == null ? void 0 : l.condition) || "?";
|
|
2437
2435
|
if (this._log("info", `[循环] ${o} 循环条件: ${i}`), n.length > 0) {
|
|
2438
|
-
const
|
|
2439
|
-
if (
|
|
2440
|
-
this.visitedNodeIds.add(
|
|
2436
|
+
const u = this._nodeMap[n[0].targetNodeId];
|
|
2437
|
+
if (u) {
|
|
2438
|
+
this.visitedNodeIds.add(u.id), this.currentNodeId = u.id;
|
|
2441
2439
|
const g = this._makeStep(
|
|
2442
|
-
|
|
2440
|
+
u,
|
|
2443
2441
|
n[0].edgeId,
|
|
2444
2442
|
`循环 (条件: ${i})`,
|
|
2445
2443
|
"loop"
|
|
2446
2444
|
);
|
|
2447
|
-
return this.steps.push(g), this._log("info", `[循环] 进入循环体: ${
|
|
2445
|
+
return this.steps.push(g), this._log("info", `[循环] 进入循环体: ${u.text || u.type}`), g;
|
|
2448
2446
|
}
|
|
2449
2447
|
}
|
|
2450
2448
|
}
|
|
@@ -2717,7 +2715,7 @@ function Cs(t) {
|
|
|
2717
2715
|
return e === e ? o ? e - o : e : 0;
|
|
2718
2716
|
}
|
|
2719
2717
|
var ws = "[object AsyncFunction]", Ts = "[object Function]", xs = "[object GeneratorFunction]", As = "[object Proxy]";
|
|
2720
|
-
function
|
|
2718
|
+
function Do(t) {
|
|
2721
2719
|
if (!qe(t))
|
|
2722
2720
|
return !1;
|
|
2723
2721
|
var e = it(t);
|
|
@@ -2750,7 +2748,7 @@ var Ps = /[\\^$.*+?()[\]{}|]/g, Ms = /^\[object .+?Constructor\]$/, Ls = Functio
|
|
|
2750
2748
|
function Ds(t) {
|
|
2751
2749
|
if (!qe(t) || Os(t))
|
|
2752
2750
|
return !1;
|
|
2753
|
-
var e =
|
|
2751
|
+
var e = Do(t) ? Fs : Ms;
|
|
2754
2752
|
return e.test(at(t));
|
|
2755
2753
|
}
|
|
2756
2754
|
function Hs(t, e) {
|
|
@@ -2810,10 +2808,10 @@ function Kn(t) {
|
|
|
2810
2808
|
return typeof t == "number" && t > -1 && t % 1 == 0 && t <= Ks;
|
|
2811
2809
|
}
|
|
2812
2810
|
function qn(t) {
|
|
2813
|
-
return t != null && Kn(t.length) && !
|
|
2811
|
+
return t != null && Kn(t.length) && !Do(t);
|
|
2814
2812
|
}
|
|
2815
2813
|
var qs = Object.prototype;
|
|
2816
|
-
function
|
|
2814
|
+
function Ho(t) {
|
|
2817
2815
|
var e = t && t.constructor, o = typeof e == "function" && e.prototype || qs;
|
|
2818
2816
|
return t === o;
|
|
2819
2817
|
}
|
|
@@ -2834,13 +2832,13 @@ var Jn = Object.prototype, ei = Jn.hasOwnProperty, ti = Jn.propertyIsEnumerable,
|
|
|
2834
2832
|
function oi() {
|
|
2835
2833
|
return !1;
|
|
2836
2834
|
}
|
|
2837
|
-
var er = typeof exports == "object" && exports && !exports.nodeType && exports, pn = er && typeof module == "object" && module && !module.nodeType && module, ni = pn && pn.exports === er, fn = ni ? Ae.Buffer : void 0, ri = fn ? fn.isBuffer : void 0,
|
|
2835
|
+
var er = typeof exports == "object" && exports && !exports.nodeType && exports, pn = er && typeof module == "object" && module && !module.nodeType && module, ni = pn && pn.exports === er, fn = ni ? Ae.Buffer : void 0, ri = fn ? fn.isBuffer : void 0, jo = ri || oi, si = "[object Arguments]", ii = "[object Array]", di = "[object Boolean]", ai = "[object Date]", li = "[object Error]", ci = "[object Function]", ui = "[object Map]", pi = "[object Number]", fi = "[object Object]", hi = "[object RegExp]", gi = "[object Set]", vi = "[object String]", yi = "[object WeakMap]", mi = "[object ArrayBuffer]", Ii = "[object DataView]", _i = "[object Float32Array]", Ni = "[object Float64Array]", bi = "[object Int8Array]", Ei = "[object Int16Array]", Ci = "[object Int32Array]", wi = "[object Uint8Array]", Ti = "[object Uint8ClampedArray]", xi = "[object Uint16Array]", Ai = "[object Uint32Array]", Q = {};
|
|
2838
2836
|
Q[_i] = Q[Ni] = Q[bi] = Q[Ei] = Q[Ci] = Q[wi] = Q[Ti] = Q[xi] = Q[Ai] = !0;
|
|
2839
2837
|
Q[si] = Q[ii] = Q[mi] = Q[di] = Q[Ii] = Q[ai] = Q[li] = Q[ci] = Q[ui] = Q[pi] = Q[fi] = Q[hi] = Q[gi] = Q[vi] = Q[yi] = !1;
|
|
2840
2838
|
function Oi(t) {
|
|
2841
2839
|
return dt(t) && Kn(t.length) && !!Q[it(t)];
|
|
2842
2840
|
}
|
|
2843
|
-
function
|
|
2841
|
+
function Vo(t) {
|
|
2844
2842
|
return function(e) {
|
|
2845
2843
|
return t(e);
|
|
2846
2844
|
};
|
|
@@ -2851,15 +2849,15 @@ var tr = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
|
2851
2849
|
return t || so && so.binding && so.binding("util");
|
|
2852
2850
|
} catch {
|
|
2853
2851
|
}
|
|
2854
|
-
})(), hn = vt && vt.isTypedArray, or = hn ?
|
|
2852
|
+
})(), hn = vt && vt.isTypedArray, or = hn ? Vo(hn) : Oi, Si = Object.prototype, Pi = Si.hasOwnProperty;
|
|
2855
2853
|
function Mi(t, e) {
|
|
2856
|
-
var o = ze(t), n = !o && Qn(t), r = !o && !n &&
|
|
2857
|
-
for (var
|
|
2858
|
-
Pi.call(t,
|
|
2859
|
-
(
|
|
2860
|
-
r && (
|
|
2861
|
-
s && (
|
|
2862
|
-
Us(
|
|
2854
|
+
var o = ze(t), n = !o && Qn(t), r = !o && !n && jo(t), s = !o && !n && !r && or(t), a = o || n || r || s, l = a ? Js(t.length, String) : [], i = l.length;
|
|
2855
|
+
for (var u in t)
|
|
2856
|
+
Pi.call(t, u) && !(a && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
2857
|
+
(u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
2858
|
+
r && (u == "offset" || u == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
2859
|
+
s && (u == "buffer" || u == "byteLength" || u == "byteOffset") || // Skip index properties.
|
|
2860
|
+
Us(u, i))) && l.push(u);
|
|
2863
2861
|
return l;
|
|
2864
2862
|
}
|
|
2865
2863
|
function nr(t, e) {
|
|
@@ -2869,7 +2867,7 @@ function nr(t, e) {
|
|
|
2869
2867
|
}
|
|
2870
2868
|
var Li = nr(Object.keys, Object), Ri = Object.prototype, Bi = Ri.hasOwnProperty;
|
|
2871
2869
|
function rr(t) {
|
|
2872
|
-
if (!
|
|
2870
|
+
if (!Ho(t))
|
|
2873
2871
|
return Li(t);
|
|
2874
2872
|
var e = [];
|
|
2875
2873
|
for (var o in Object(t))
|
|
@@ -3008,7 +3006,7 @@ et.prototype.get = ad;
|
|
|
3008
3006
|
et.prototype.has = ld;
|
|
3009
3007
|
et.prototype.set = cd;
|
|
3010
3008
|
var ud = "Expected a function";
|
|
3011
|
-
function
|
|
3009
|
+
function zo(t, e) {
|
|
3012
3010
|
if (typeof t != "function" || e != null && typeof e != "function")
|
|
3013
3011
|
throw new TypeError(ud);
|
|
3014
3012
|
var o = function() {
|
|
@@ -3018,12 +3016,12 @@ function Vo(t, e) {
|
|
|
3018
3016
|
var a = t.apply(this, n);
|
|
3019
3017
|
return o.cache = s.set(r, a) || s, a;
|
|
3020
3018
|
};
|
|
3021
|
-
return o.cache = new (
|
|
3019
|
+
return o.cache = new (zo.Cache || et)(), o;
|
|
3022
3020
|
}
|
|
3023
|
-
|
|
3021
|
+
zo.Cache = et;
|
|
3024
3022
|
var pd = 500;
|
|
3025
3023
|
function fd(t) {
|
|
3026
|
-
var e =
|
|
3024
|
+
var e = zo(t, function(n) {
|
|
3027
3025
|
return o.size === pd && o.clear(), n;
|
|
3028
3026
|
}), o = e.cache;
|
|
3029
3027
|
return e;
|
|
@@ -3162,12 +3160,12 @@ function Kd(t) {
|
|
|
3162
3160
|
return e && typeof t[0] == "string" && Zd.call(t, "index") && (o.index = t.index, o.input = t.input), o;
|
|
3163
3161
|
}
|
|
3164
3162
|
var En = Ae.Uint8Array;
|
|
3165
|
-
function
|
|
3163
|
+
function Go(t) {
|
|
3166
3164
|
var e = new t.constructor(t.byteLength);
|
|
3167
3165
|
return new En(e).set(new En(t)), e;
|
|
3168
3166
|
}
|
|
3169
3167
|
function qd(t, e) {
|
|
3170
|
-
var o =
|
|
3168
|
+
var o = Go(t.buffer);
|
|
3171
3169
|
return new t.constructor(o, t.byteOffset, t.byteLength);
|
|
3172
3170
|
}
|
|
3173
3171
|
var Jd = /\w*$/;
|
|
@@ -3180,7 +3178,7 @@ function ea(t) {
|
|
|
3180
3178
|
return wn ? Object(wn.call(t)) : {};
|
|
3181
3179
|
}
|
|
3182
3180
|
function ta(t, e) {
|
|
3183
|
-
var o =
|
|
3181
|
+
var o = Go(t.buffer);
|
|
3184
3182
|
return new t.constructor(o, t.byteOffset, t.length);
|
|
3185
3183
|
}
|
|
3186
3184
|
var oa = "[object Boolean]", na = "[object Date]", ra = "[object Map]", sa = "[object Number]", ia = "[object RegExp]", da = "[object Set]", aa = "[object String]", la = "[object Symbol]", ca = "[object ArrayBuffer]", ua = "[object DataView]", pa = "[object Float32Array]", fa = "[object Float64Array]", ha = "[object Int8Array]", ga = "[object Int16Array]", va = "[object Int32Array]", ya = "[object Uint8Array]", ma = "[object Uint8ClampedArray]", Ia = "[object Uint16Array]", _a = "[object Uint32Array]";
|
|
@@ -3188,7 +3186,7 @@ function Na(t, e, o) {
|
|
|
3188
3186
|
var n = t.constructor;
|
|
3189
3187
|
switch (e) {
|
|
3190
3188
|
case ca:
|
|
3191
|
-
return
|
|
3189
|
+
return Go(t);
|
|
3192
3190
|
case oa:
|
|
3193
3191
|
case na:
|
|
3194
3192
|
return new n(+t);
|
|
@@ -3218,17 +3216,17 @@ function Na(t, e, o) {
|
|
|
3218
3216
|
}
|
|
3219
3217
|
}
|
|
3220
3218
|
function ba(t) {
|
|
3221
|
-
return typeof t.constructor == "function" && !
|
|
3219
|
+
return typeof t.constructor == "function" && !Ho(t) ? js(Nd(t)) : {};
|
|
3222
3220
|
}
|
|
3223
3221
|
var Ea = "[object Map]";
|
|
3224
3222
|
function Ca(t) {
|
|
3225
3223
|
return dt(t) && Pe(t) == Ea;
|
|
3226
3224
|
}
|
|
3227
|
-
var Tn = vt && vt.isMap, wa = Tn ?
|
|
3225
|
+
var Tn = vt && vt.isMap, wa = Tn ? Vo(Tn) : Ca, Ta = "[object Set]";
|
|
3228
3226
|
function xa(t) {
|
|
3229
3227
|
return dt(t) && Pe(t) == Ta;
|
|
3230
3228
|
}
|
|
3231
|
-
var xn = vt && vt.isSet, Aa = xn ?
|
|
3229
|
+
var xn = vt && vt.isSet, Aa = xn ? Vo(xn) : xa, ir = "[object Arguments]", Oa = "[object Array]", $a = "[object Boolean]", Sa = "[object Date]", Pa = "[object Error]", dr = "[object Function]", Ma = "[object GeneratorFunction]", La = "[object Map]", Ra = "[object Number]", ar = "[object Object]", Ba = "[object RegExp]", ka = "[object Set]", Fa = "[object String]", Da = "[object Symbol]", Ha = "[object WeakMap]", ja = "[object ArrayBuffer]", Va = "[object DataView]", za = "[object Float32Array]", Ga = "[object Float64Array]", Ua = "[object Int8Array]", Wa = "[object Int16Array]", Ya = "[object Int32Array]", Xa = "[object Uint8Array]", Za = "[object Uint8ClampedArray]", Ka = "[object Uint16Array]", qa = "[object Uint32Array]", J = {};
|
|
3232
3230
|
J[ir] = J[Oa] = J[ja] = J[Va] = J[$a] = J[Sa] = J[za] = J[Ga] = J[Ua] = J[Wa] = J[Ya] = J[La] = J[Ra] = J[ar] = J[Ba] = J[ka] = J[Fa] = J[Da] = J[Xa] = J[Za] = J[Ka] = J[qa] = !0;
|
|
3233
3231
|
J[Pa] = J[dr] = J[Ha] = !1;
|
|
3234
3232
|
function Dt(t, e, o, n, r, s) {
|
|
@@ -3241,11 +3239,11 @@ function Dt(t, e, o, n, r, s) {
|
|
|
3241
3239
|
if (l)
|
|
3242
3240
|
a = Kd(t);
|
|
3243
3241
|
else {
|
|
3244
|
-
var i = Pe(t),
|
|
3245
|
-
if (
|
|
3242
|
+
var i = Pe(t), u = i == dr || i == Ma;
|
|
3243
|
+
if (jo(t))
|
|
3246
3244
|
return Ld(t);
|
|
3247
|
-
if (i == ar || i == ir ||
|
|
3248
|
-
a =
|
|
3245
|
+
if (i == ar || i == ir || u && !r)
|
|
3246
|
+
a = u ? {} : ba(t);
|
|
3249
3247
|
else {
|
|
3250
3248
|
if (!J[i])
|
|
3251
3249
|
return r ? t : {};
|
|
@@ -3261,7 +3259,7 @@ function Dt(t, e, o, n, r, s) {
|
|
|
3261
3259
|
}) : wa(t) && t.forEach(function(m, y) {
|
|
3262
3260
|
a.set(y, Dt(m, e, o, y, t, s));
|
|
3263
3261
|
});
|
|
3264
|
-
var
|
|
3262
|
+
var c = jd, h = l ? void 0 : c(t);
|
|
3265
3263
|
return Vs(h || t, function(m, y) {
|
|
3266
3264
|
h && (y = m, m = t[y]), Zs(a, y, Dt(m, e, o, y, t, s));
|
|
3267
3265
|
}), a;
|
|
@@ -3274,24 +3272,24 @@ var ao = function() {
|
|
|
3274
3272
|
return Ae.Date.now();
|
|
3275
3273
|
}, el = "Expected a function", tl = Math.max, ol = Math.min;
|
|
3276
3274
|
function nl(t, e, o) {
|
|
3277
|
-
var n, r, s, a, l, i,
|
|
3275
|
+
var n, r, s, a, l, i, u = 0, g = !1, c = !1, h = !0;
|
|
3278
3276
|
if (typeof t != "function")
|
|
3279
3277
|
throw new TypeError(el);
|
|
3280
|
-
e = nt(e) || 0, qe(o) && (g = !!o.leading,
|
|
3278
|
+
e = nt(e) || 0, qe(o) && (g = !!o.leading, c = "maxWait" in o, s = c ? tl(nt(o.maxWait) || 0, e) : s, h = "trailing" in o ? !!o.trailing : h);
|
|
3281
3279
|
function m(p) {
|
|
3282
3280
|
var b = n, T = r;
|
|
3283
|
-
return n = r = void 0,
|
|
3281
|
+
return n = r = void 0, u = p, a = t.apply(T, b), a;
|
|
3284
3282
|
}
|
|
3285
3283
|
function y(p) {
|
|
3286
|
-
return
|
|
3284
|
+
return u = p, l = setTimeout(S, e), g ? m(p) : a;
|
|
3287
3285
|
}
|
|
3288
3286
|
function f(p) {
|
|
3289
|
-
var b = p - i, T = p -
|
|
3290
|
-
return
|
|
3287
|
+
var b = p - i, T = p - u, v = e - b;
|
|
3288
|
+
return c ? ol(v, s - T) : v;
|
|
3291
3289
|
}
|
|
3292
3290
|
function _(p) {
|
|
3293
|
-
var b = p - i, T = p -
|
|
3294
|
-
return i === void 0 || b >= e || b < 0 ||
|
|
3291
|
+
var b = p - i, T = p - u;
|
|
3292
|
+
return i === void 0 || b >= e || b < 0 || c && T >= s;
|
|
3295
3293
|
}
|
|
3296
3294
|
function S() {
|
|
3297
3295
|
var p = ao();
|
|
@@ -3303,7 +3301,7 @@ function nl(t, e, o) {
|
|
|
3303
3301
|
return l = void 0, h && n ? m(p) : (n = r = void 0, a);
|
|
3304
3302
|
}
|
|
3305
3303
|
function O() {
|
|
3306
|
-
l !== void 0 && clearTimeout(l),
|
|
3304
|
+
l !== void 0 && clearTimeout(l), u = 0, n = i = r = l = void 0;
|
|
3307
3305
|
}
|
|
3308
3306
|
function C() {
|
|
3309
3307
|
return l === void 0 ? a : N(ao());
|
|
@@ -3313,7 +3311,7 @@ function nl(t, e, o) {
|
|
|
3313
3311
|
if (n = arguments, r = this, i = p, b) {
|
|
3314
3312
|
if (l === void 0)
|
|
3315
3313
|
return y(i);
|
|
3316
|
-
if (
|
|
3314
|
+
if (c)
|
|
3317
3315
|
return clearTimeout(l), l = setTimeout(S, e), m(i);
|
|
3318
3316
|
}
|
|
3319
3317
|
return l === void 0 && (l = setTimeout(S, e)), a;
|
|
@@ -3324,12 +3322,12 @@ var rl = "[object Map]", sl = "[object Set]", il = Object.prototype, dl = il.has
|
|
|
3324
3322
|
function lr(t) {
|
|
3325
3323
|
if (t == null)
|
|
3326
3324
|
return !0;
|
|
3327
|
-
if (qn(t) && (ze(t) || typeof t == "string" || typeof t.splice == "function" ||
|
|
3325
|
+
if (qn(t) && (ze(t) || typeof t == "string" || typeof t.splice == "function" || jo(t) || or(t) || Qn(t)))
|
|
3328
3326
|
return !t.length;
|
|
3329
3327
|
var e = Pe(t);
|
|
3330
3328
|
if (e == rl || e == sl)
|
|
3331
3329
|
return !t.size;
|
|
3332
|
-
if (
|
|
3330
|
+
if (Ho(t))
|
|
3333
3331
|
return !rr(t).length;
|
|
3334
3332
|
for (var o in t)
|
|
3335
3333
|
if (dl.call(t, o))
|
|
@@ -3386,11 +3384,11 @@ var ul = /* @__PURE__ */ (function() {
|
|
|
3386
3384
|
function e(o, n) {
|
|
3387
3385
|
var r = t.call(this, o, n) || this, s = o.properties;
|
|
3388
3386
|
if (s) {
|
|
3389
|
-
var a = s._showTitle, l = a === void 0 ? !1 : a, i = s.style,
|
|
3387
|
+
var a = s._showTitle, l = a === void 0 ? !1 : a, i = s.style, u = i === void 0 ? {} : i;
|
|
3390
3388
|
if (l) {
|
|
3391
3389
|
r.minWidth = 160, r.minHeight = 80, r.text.editable = !1;
|
|
3392
|
-
var g = r.width < r.minWidth ? r.minWidth : r.width,
|
|
3393
|
-
r.setProperties(Se(Se({ _expanded: !1 }, s), { style: Se({ overflow: "visible" }, Lt(
|
|
3390
|
+
var g = r.width < r.minWidth ? r.minWidth : r.width, c = r.height < r.minHeight ? r.minHeight : r.height;
|
|
3391
|
+
r.setProperties(Se(Se({ _expanded: !1 }, s), { style: Se({ overflow: "visible" }, Lt(u)), width: g + 8, height: c + 8 })), r.setNodeActions([
|
|
3394
3392
|
{
|
|
3395
3393
|
name: "复制",
|
|
3396
3394
|
callback: function(h, m) {
|
|
@@ -3411,8 +3409,8 @@ var ul = /* @__PURE__ */ (function() {
|
|
|
3411
3409
|
return e.prototype.setAttributes = function() {
|
|
3412
3410
|
var o = this.properties, n = o.width, r = o.height, s = o.radius, a = o._showTitle, l = o._titleHeight;
|
|
3413
3411
|
Nt(n) || (this.width = n), Nt(r) || (this.height = r), Nt(s) || (this.radius = s), this.__baseHeight === void 0 && (this.__baseHeight = Nt(r) ? this.height : r);
|
|
3414
|
-
var i = a ? l ?? 28 : 0,
|
|
3415
|
-
this.height =
|
|
3412
|
+
var i = a ? l ?? 28 : 0, u = Nt(r) ? this.__baseHeight : r;
|
|
3413
|
+
this.height = u + i;
|
|
3416
3414
|
}, e.prototype.getTextStyle = function() {
|
|
3417
3415
|
var o = this.properties, n = o.refX, r = n === void 0 ? 0 : n, s = o.refY, a = s === void 0 ? 0 : s, l = o.textStyle, i = t.prototype.getTextStyle.call(this);
|
|
3418
3416
|
return Se(Se(Se({}, i), Lt(l) || {}), { transform: "matrix(1 0 0 1 ".concat(r, " ").concat(a, ")") });
|
|
@@ -3422,7 +3420,7 @@ var ul = /* @__PURE__ */ (function() {
|
|
|
3422
3420
|
}, e.prototype.setNodeActions = function(o) {
|
|
3423
3421
|
this.__actions = ze(o) && !lr(o) ? Lt(o) : [];
|
|
3424
3422
|
}, e;
|
|
3425
|
-
})(
|
|
3423
|
+
})(Mo)
|
|
3426
3424
|
), Oo = /* @__PURE__ */ new WeakMap(), pl = /* @__PURE__ */ Object.create(null);
|
|
3427
3425
|
function fl(t, e) {
|
|
3428
3426
|
var o;
|
|
@@ -3487,7 +3485,7 @@ var vl = fe({
|
|
|
3487
3485
|
}
|
|
3488
3486
|
},
|
|
3489
3487
|
render: function() {
|
|
3490
|
-
var t = this, e, o, n = ((e = this.node) === null || e === void 0 ? void 0 : e.properties) || {}, r = n._icon, s = n._title || "", a = !!n._expanded, l = cr(n._titleHeight) ? n._titleHeight : 28, i = ((o = this.node) === null || o === void 0 ? void 0 : o.__actions) || [],
|
|
3488
|
+
var t = this, e, o, n = ((e = this.node) === null || e === void 0 ? void 0 : e.properties) || {}, r = n._icon, s = n._title || "", a = !!n._expanded, l = cr(n._titleHeight) ? n._titleHeight : 28, i = ((o = this.node) === null || o === void 0 ? void 0 : o.__actions) || [], u = !lr(i);
|
|
3491
3489
|
console.log("showMoreAction", i, n._titleActions);
|
|
3492
3490
|
var g = ne("div", {
|
|
3493
3491
|
class: a ? "lf-vue-node-title lf-vue-node-title-expanded" : "lf-vue-node-title",
|
|
@@ -3506,12 +3504,12 @@ var vl = fe({
|
|
|
3506
3504
|
ne("button", {
|
|
3507
3505
|
ref: "expandBtn",
|
|
3508
3506
|
class: "lf-vue-node-title-expand",
|
|
3509
|
-
onClick: function(
|
|
3510
|
-
console.log("expandClicked"),
|
|
3507
|
+
onClick: function(c) {
|
|
3508
|
+
console.log("expandClicked"), c.stopPropagation(), t.toggleExpand();
|
|
3511
3509
|
},
|
|
3512
3510
|
on: {
|
|
3513
|
-
click: function(
|
|
3514
|
-
console.log("expandClicked"),
|
|
3511
|
+
click: function(c) {
|
|
3512
|
+
console.log("expandClicked"), c.stopPropagation(), t.toggleExpand();
|
|
3515
3513
|
}
|
|
3516
3514
|
}
|
|
3517
3515
|
}, [
|
|
@@ -3533,7 +3531,7 @@ var vl = fe({
|
|
|
3533
3531
|
})
|
|
3534
3532
|
])
|
|
3535
3533
|
]),
|
|
3536
|
-
|
|
3534
|
+
u && ne("button", {
|
|
3537
3535
|
ref: "moreBtn",
|
|
3538
3536
|
class: "lf-vue-node-title-more"
|
|
3539
3537
|
}, [ne("i", { class: "lf-vue-node-title-more-icon" }, "⋯")]),
|
|
@@ -3542,18 +3540,18 @@ var vl = fe({
|
|
|
3542
3540
|
class: "lf-vue-node-title-tooltip",
|
|
3543
3541
|
style: "opacity:".concat(this.showTooltip ? 1 : 0, ";pointer-events:").concat(this.showTooltip ? "auto" : "none", ";")
|
|
3544
3542
|
}, [
|
|
3545
|
-
ne("div", { class: "lf-vue-node-title-tooltip-list" }, i.map(function(
|
|
3543
|
+
ne("div", { class: "lf-vue-node-title-tooltip-list" }, i.map(function(c) {
|
|
3546
3544
|
return ne("div", {
|
|
3547
3545
|
class: "lf-vue-node-title-tooltip-item",
|
|
3548
3546
|
onClick: function(h) {
|
|
3549
|
-
h.stopPropagation(), t.runAction(
|
|
3547
|
+
h.stopPropagation(), t.runAction(c);
|
|
3550
3548
|
},
|
|
3551
3549
|
on: {
|
|
3552
3550
|
click: function(h) {
|
|
3553
|
-
h.stopPropagation(), t.runAction(
|
|
3551
|
+
h.stopPropagation(), t.runAction(c);
|
|
3554
3552
|
}
|
|
3555
3553
|
}
|
|
3556
|
-
}, (
|
|
3554
|
+
}, (c == null ? void 0 : c.name) || "");
|
|
3557
3555
|
}))
|
|
3558
3556
|
])
|
|
3559
3557
|
])
|
|
@@ -3607,7 +3605,7 @@ var vl = fe({
|
|
|
3607
3605
|
if (a <= 0 || l <= 0 || a === o.__lastWidth && l === o.__lastHeight)
|
|
3608
3606
|
return;
|
|
3609
3607
|
o.__lastWidth = a, o.__lastHeight = l;
|
|
3610
|
-
var i = o.props.model.properties,
|
|
3608
|
+
var i = o.props.model.properties, u = io(i, "_showTitle") ? cr(io(i, "_titleHeight")) ? io(i, "_titleHeight") : 28 : 0, g = Td(l - u, 1, Number.MAX_SAFE_INTEGER);
|
|
3611
3609
|
o.props.model.setProperties({ width: a, height: g });
|
|
3612
3610
|
} catch {
|
|
3613
3611
|
}
|
|
@@ -3632,7 +3630,7 @@ var vl = fe({
|
|
|
3632
3630
|
}, e.prototype.renderVueComponent = function() {
|
|
3633
3631
|
var o;
|
|
3634
3632
|
this.unmountVueComponent();
|
|
3635
|
-
var n = this.getComponentContainer(), r = this.props, s = r.model, a = r.graphModel, l = (s.properties || {})._showTitle, i = l === void 0 ? !1 : l,
|
|
3633
|
+
var n = this.getComponentContainer(), r = this.props, s = r.model, a = r.graphModel, l = (s.properties || {})._showTitle, i = l === void 0 ? !1 : l, u = function(y) {
|
|
3636
3634
|
return fe({
|
|
3637
3635
|
name: "LFVueNodeContainerWrapper",
|
|
3638
3636
|
props: {
|
|
@@ -3647,22 +3645,22 @@ var vl = fe({
|
|
|
3647
3645
|
});
|
|
3648
3646
|
};
|
|
3649
3647
|
if (n) {
|
|
3650
|
-
var g = fl(s.type, a),
|
|
3648
|
+
var g = fl(s.type, a), c = this.props.graphModel.flowId;
|
|
3651
3649
|
if (!g) {
|
|
3652
|
-
bt() &&
|
|
3650
|
+
bt() && c && (this.targetId(), void 0);
|
|
3653
3651
|
return;
|
|
3654
3652
|
}
|
|
3655
3653
|
var h = g.component;
|
|
3656
3654
|
if (!h) {
|
|
3657
|
-
bt() &&
|
|
3655
|
+
bt() && c && (this.targetId(), void 0);
|
|
3658
3656
|
return;
|
|
3659
3657
|
}
|
|
3660
3658
|
if (h)
|
|
3661
3659
|
if (bt())
|
|
3662
|
-
|
|
3660
|
+
u(h), this.targetId();
|
|
3663
3661
|
else {
|
|
3664
|
-
var m =
|
|
3665
|
-
this.vm =
|
|
3662
|
+
var m = u(h);
|
|
3663
|
+
this.vm = Po({
|
|
3666
3664
|
render: function() {
|
|
3667
3665
|
return ne(m, {
|
|
3668
3666
|
node: s,
|
|
@@ -3686,7 +3684,7 @@ var vl = fe({
|
|
|
3686
3684
|
var o = this, n, r = this.getComponentContainer();
|
|
3687
3685
|
if (r)
|
|
3688
3686
|
try {
|
|
3689
|
-
if (
|
|
3687
|
+
if (Do(window.ResizeObserver)) {
|
|
3690
3688
|
this.__resizeObserver = new window.ResizeObserver(function(a) {
|
|
3691
3689
|
!ze(a) || !a.length || (o.__resizeRafId && cancelAnimationFrame(o.__resizeRafId), o.__resizeRafId = requestAnimationFrame(o.__throttledUpdate));
|
|
3692
3690
|
});
|
|
@@ -3713,7 +3711,7 @@ var vl = fe({
|
|
|
3713
3711
|
}, e.prototype.unmount = function() {
|
|
3714
3712
|
bt() && (this.targetId(), this.props.graphModel.flowId, void 0), this.unmountVueComponent();
|
|
3715
3713
|
}, e;
|
|
3716
|
-
})(
|
|
3714
|
+
})(Lo)
|
|
3717
3715
|
);
|
|
3718
3716
|
function $o(t, e) {
|
|
3719
3717
|
var s;
|
|
@@ -3721,10 +3719,10 @@ function $o(t, e) {
|
|
|
3721
3719
|
for (n.add(e); r.length > 0; ) {
|
|
3722
3720
|
const a = r.shift(), l = t.getNodeOutgoingEdge(a);
|
|
3723
3721
|
for (const i of l) {
|
|
3724
|
-
const
|
|
3725
|
-
if (n.has(
|
|
3726
|
-
const g = t.getNodeModelById(
|
|
3727
|
-
g && ((s = g.properties) == null ? void 0 : s.nodeType) !== "WHEN" && (n.add(
|
|
3722
|
+
const u = i.targetNodeId;
|
|
3723
|
+
if (n.has(u)) continue;
|
|
3724
|
+
const g = t.getNodeModelById(u);
|
|
3725
|
+
g && ((s = g.properties) == null ? void 0 : s.nodeType) !== "WHEN" && (n.add(u), o.push(u), r.push(u));
|
|
3728
3726
|
}
|
|
3729
3727
|
}
|
|
3730
3728
|
return o;
|
|
@@ -3754,8 +3752,8 @@ function _l(t, e) {
|
|
|
3754
3752
|
const l = t.getNodeOutgoingEdge(o);
|
|
3755
3753
|
if (!l || l.length === 0)
|
|
3756
3754
|
return a;
|
|
3757
|
-
const i = l[0].targetNodeId,
|
|
3758
|
-
if (((s =
|
|
3755
|
+
const i = l[0].targetNodeId, u = t.getNodeModelById(i);
|
|
3756
|
+
if (((s = u == null ? void 0 : u.properties) == null ? void 0 : s.isAggregate) === !0)
|
|
3759
3757
|
return a;
|
|
3760
3758
|
o = i;
|
|
3761
3759
|
}
|
|
@@ -3787,14 +3785,14 @@ function zt(t, e) {
|
|
|
3787
3785
|
function pr(t, e, o) {
|
|
3788
3786
|
const n = [], r = [], s = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set(), l = [e];
|
|
3789
3787
|
for (a.add(e); l.length > 0; ) {
|
|
3790
|
-
const i = l.shift(),
|
|
3791
|
-
if (!
|
|
3788
|
+
const i = l.shift(), u = t.getEdgeModelById(i);
|
|
3789
|
+
if (!u) continue;
|
|
3792
3790
|
r.push(i);
|
|
3793
|
-
const g =
|
|
3791
|
+
const g = u.targetNodeId;
|
|
3794
3792
|
if (g === o || s.has(g)) continue;
|
|
3795
3793
|
s.add(g), n.push(g);
|
|
3796
|
-
const
|
|
3797
|
-
for (const h of
|
|
3794
|
+
const c = t.getNodeOutgoingEdge(g);
|
|
3795
|
+
for (const h of c)
|
|
3798
3796
|
a.has(h.id) || (a.add(h.id), l.push(h.id));
|
|
3799
3797
|
}
|
|
3800
3798
|
return { nodeIds: n, edgeIds: r };
|
|
@@ -3813,20 +3811,20 @@ function bl(t, e, o) {
|
|
|
3813
3811
|
var l, i;
|
|
3814
3812
|
const n = /* @__PURE__ */ new Set([e, o]), r = [e], s = /* @__PURE__ */ new Set([e]);
|
|
3815
3813
|
for (; r.length > 0; ) {
|
|
3816
|
-
const
|
|
3814
|
+
const u = r.shift(), g = t.getNodeModelById(u), c = (l = g == null ? void 0 : g.properties) == null ? void 0 : l.aggregateNodeId, h = t.getNodeOutgoingEdge(u) || [];
|
|
3817
3815
|
for (const m of h) {
|
|
3818
3816
|
const y = m.targetNodeId;
|
|
3819
|
-
y !== o && (
|
|
3817
|
+
y !== o && (c && y === c || s.has(y) || (s.add(y), n.add(y), r.push(y)));
|
|
3820
3818
|
}
|
|
3821
3819
|
}
|
|
3822
3820
|
let a = !0;
|
|
3823
3821
|
for (; a; ) {
|
|
3824
3822
|
a = !1;
|
|
3825
|
-
const
|
|
3826
|
-
for (const g of
|
|
3823
|
+
const u = t.getGraphRawData().nodes || [];
|
|
3824
|
+
for (const g of u) {
|
|
3827
3825
|
if (n.has(g.id)) continue;
|
|
3828
|
-
const
|
|
3829
|
-
|
|
3826
|
+
const c = (i = g.properties) == null ? void 0 : i.parentBranchId;
|
|
3827
|
+
c && n.has(c) && (n.add(g.id), a = !0);
|
|
3830
3828
|
}
|
|
3831
3829
|
}
|
|
3832
3830
|
return n;
|
|
@@ -3846,31 +3844,31 @@ function El(t, e, o, n) {
|
|
|
3846
3844
|
console.log("【调试】当前插入边所属分支节点", f), a = r.findIndex((_) => _.targetNodeId === f);
|
|
3847
3845
|
}
|
|
3848
3846
|
console.log("【调试】当前分支在fork出边中的下标 =", a);
|
|
3849
|
-
const l = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(),
|
|
3847
|
+
const l = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), u = (f) => {
|
|
3850
3848
|
if (f === n || l.has(f)) return;
|
|
3851
3849
|
l.add(f), t.getNodeOutgoingEdge(f).forEach((S) => {
|
|
3852
|
-
|
|
3850
|
+
u(S.targetNodeId);
|
|
3853
3851
|
});
|
|
3854
3852
|
}, g = r.filter((f, _) => _ > a);
|
|
3855
3853
|
console.log("【调试】选中需要移动的分支边线", g.map((f) => f.id)), g.forEach((f) => {
|
|
3856
3854
|
i.add(f.id);
|
|
3857
3855
|
const _ = f.targetNodeId;
|
|
3858
|
-
|
|
3856
|
+
u(_);
|
|
3859
3857
|
});
|
|
3860
|
-
const
|
|
3858
|
+
const c = {
|
|
3861
3859
|
nodes: Array.from(l),
|
|
3862
3860
|
edges: Array.from(i)
|
|
3863
3861
|
}, h = /* @__PURE__ */ new Set(), m = /* @__PURE__ */ new Set();
|
|
3864
3862
|
r.forEach((f) => {
|
|
3865
|
-
m.add(f.id),
|
|
3863
|
+
m.add(f.id), u(f.targetNodeId);
|
|
3866
3864
|
});
|
|
3867
3865
|
const y = {
|
|
3868
3866
|
nodes: Array.from(h),
|
|
3869
3867
|
edges: Array.from(m)
|
|
3870
3868
|
};
|
|
3871
|
-
return console.log("【调试】需要移动的节点",
|
|
3869
|
+
return console.log("【调试】需要移动的节点", c.nodes), {
|
|
3872
3870
|
allItems: y,
|
|
3873
|
-
afterInsertItems:
|
|
3871
|
+
afterInsertItems: c
|
|
3874
3872
|
};
|
|
3875
3873
|
}
|
|
3876
3874
|
function Cl(t) {
|
|
@@ -3906,7 +3904,7 @@ function Cl(t) {
|
|
|
3906
3904
|
}
|
|
3907
3905
|
console.log("setIfEdgeBranchType 执行渲染操作"), r();
|
|
3908
3906
|
}
|
|
3909
|
-
function
|
|
3907
|
+
function u() {
|
|
3910
3908
|
var y, f, _, S;
|
|
3911
3909
|
const h = e.value;
|
|
3912
3910
|
if (!h || !o.value) return;
|
|
@@ -3918,7 +3916,7 @@ function Cl(t) {
|
|
|
3918
3916
|
const O = (_ = N.properties) == null ? void 0 : _.nodeType;
|
|
3919
3917
|
if (O === d.START || O === d.END) return;
|
|
3920
3918
|
let C = 1;
|
|
3921
|
-
(O === d.WHEN || O === d.IF) && (C = 2), (S = N.properties) != null && S.aggregateNodeId ?
|
|
3919
|
+
(O === d.WHEN || O === d.IF) && (C = 2), (S = N.properties) != null && S.aggregateNodeId ? c(m.id, C) : g(m.id);
|
|
3922
3920
|
}
|
|
3923
3921
|
o.value = null, s(), r(), console.log("backspace", "delete", "handleDeleteSelected");
|
|
3924
3922
|
}
|
|
@@ -3962,7 +3960,7 @@ function Cl(t) {
|
|
|
3962
3960
|
for (const b of _)
|
|
3963
3961
|
Ko(m, b);
|
|
3964
3962
|
}
|
|
3965
|
-
function
|
|
3963
|
+
function c(h, m) {
|
|
3966
3964
|
var w;
|
|
3967
3965
|
const y = e.value;
|
|
3968
3966
|
if (!y) return;
|
|
@@ -4012,19 +4010,19 @@ function Cl(t) {
|
|
|
4012
4010
|
}
|
|
4013
4011
|
return {
|
|
4014
4012
|
setIfEdgeBranchType: i,
|
|
4015
|
-
handleDeleteSelected:
|
|
4013
|
+
handleDeleteSelected: u
|
|
4016
4014
|
};
|
|
4017
4015
|
}
|
|
4018
4016
|
function gt(t, e) {
|
|
4019
4017
|
const { id: o, nodeType: n, x: r, y: s, text: a, properties: l = {} } = e, i = Yr(n);
|
|
4020
4018
|
if (!i) throw new Error(`未知节点类型:${n}`);
|
|
4021
|
-
const
|
|
4022
|
-
return Un(n,
|
|
4019
|
+
const u = xt(i), g = Zr(i), c = { ...l, nodeType: n, label: a };
|
|
4020
|
+
return Un(n, c), t.addNode({
|
|
4023
4021
|
id: o,
|
|
4024
|
-
type:
|
|
4022
|
+
type: u,
|
|
4025
4023
|
x: r,
|
|
4026
4024
|
y: s,
|
|
4027
|
-
properties:
|
|
4025
|
+
properties: c,
|
|
4028
4026
|
style: g
|
|
4029
4027
|
});
|
|
4030
4028
|
}
|
|
@@ -4056,7 +4054,7 @@ function wl(t) {
|
|
|
4056
4054
|
properties: {}
|
|
4057
4055
|
});
|
|
4058
4056
|
}
|
|
4059
|
-
function
|
|
4057
|
+
function u(N) {
|
|
4060
4058
|
N.on("node:click", ({ data: O }) => {
|
|
4061
4059
|
var C;
|
|
4062
4060
|
o.value = {
|
|
@@ -4086,15 +4084,15 @@ function wl(t) {
|
|
|
4086
4084
|
}), N.on("blank:click", () => {
|
|
4087
4085
|
o.value = null;
|
|
4088
4086
|
}), N.on("graph:updated", () => {
|
|
4089
|
-
r(), g(), console.log("graph:updated"),
|
|
4087
|
+
r(), g(), console.log("graph:updated"), c();
|
|
4090
4088
|
}), N.on("node:dnd-drag", () => {
|
|
4091
|
-
|
|
4089
|
+
c();
|
|
4092
4090
|
}), N.on("node:dragstart", () => {
|
|
4093
4091
|
n();
|
|
4094
4092
|
}), N.on("miniMap:close", () => {
|
|
4095
4093
|
a.value = !1;
|
|
4096
4094
|
}), N.on("transform:update", () => {
|
|
4097
|
-
console.log("transform:update??"), g(),
|
|
4095
|
+
console.log("transform:update??"), g(), c(!1);
|
|
4098
4096
|
});
|
|
4099
4097
|
}
|
|
4100
4098
|
function g() {
|
|
@@ -4102,7 +4100,7 @@ function wl(t) {
|
|
|
4102
4100
|
const N = e.value.getTransform(), O = N.SCALE_X ?? 1, C = N.SCALE_Y ?? 1, E = (Math.abs(O - C) > 1e-3, O);
|
|
4103
4101
|
s.value = Math.round(E * 100);
|
|
4104
4102
|
}
|
|
4105
|
-
function
|
|
4103
|
+
function c(N = !0) {
|
|
4106
4104
|
var C, E;
|
|
4107
4105
|
const O = (E = (C = e.value) == null ? void 0 : C.extension) == null ? void 0 : E.miniMap;
|
|
4108
4106
|
O && a.value && O.setView(N);
|
|
@@ -4137,7 +4135,7 @@ function wl(t) {
|
|
|
4137
4135
|
}
|
|
4138
4136
|
return {
|
|
4139
4137
|
initDefaultGraph: i,
|
|
4140
|
-
bindEvents:
|
|
4138
|
+
bindEvents: u,
|
|
4141
4139
|
debouncedAutoLayout: S,
|
|
4142
4140
|
setZoom: h,
|
|
4143
4141
|
fitView: y,
|
|
@@ -4152,7 +4150,7 @@ function Ht(t) {
|
|
|
4152
4150
|
var o;
|
|
4153
4151
|
if (!t) return !1;
|
|
4154
4152
|
const e = $t(t);
|
|
4155
|
-
return
|
|
4153
|
+
return Ro.has(e) && !!((o = t.properties) != null && o.aggregateNodeId);
|
|
4156
4154
|
}
|
|
4157
4155
|
function Tl(t, e) {
|
|
4158
4156
|
var r, s, a;
|
|
@@ -4185,10 +4183,10 @@ function xl(t, e) {
|
|
|
4185
4183
|
if (!i) continue;
|
|
4186
4184
|
if (Ht(i))
|
|
4187
4185
|
return i;
|
|
4188
|
-
const
|
|
4189
|
-
if ((r = i.properties) != null && r.aggregateNodeId &&
|
|
4186
|
+
const u = $t(i);
|
|
4187
|
+
if ((r = i.properties) != null && r.aggregateNodeId && Fo(u))
|
|
4190
4188
|
return null;
|
|
4191
|
-
|
|
4189
|
+
u === d.START || u === d.END || n.push(i.id);
|
|
4192
4190
|
}
|
|
4193
4191
|
}
|
|
4194
4192
|
return null;
|
|
@@ -4199,7 +4197,7 @@ function Al(t, e, o) {
|
|
|
4199
4197
|
const r = Tl(t, n);
|
|
4200
4198
|
if (r) {
|
|
4201
4199
|
if ($t(r) === d.THEN) return !0;
|
|
4202
|
-
if (
|
|
4200
|
+
if (Ro.has($t(r))) return !1;
|
|
4203
4201
|
}
|
|
4204
4202
|
}
|
|
4205
4203
|
return !1;
|
|
@@ -4232,7 +4230,7 @@ function Ol(t) {
|
|
|
4232
4230
|
n();
|
|
4233
4231
|
const w = [];
|
|
4234
4232
|
try {
|
|
4235
|
-
|
|
4233
|
+
u(v), [d.WHEN, d.IF].includes(b) && g(v), w.push(() => c(T, v));
|
|
4236
4234
|
const x = T.getEdgeModelById(C), A = x ? {
|
|
4237
4235
|
id: x.id,
|
|
4238
4236
|
type: x.type,
|
|
@@ -4323,7 +4321,7 @@ function Ol(t) {
|
|
|
4323
4321
|
originBranchEdgeId: F
|
|
4324
4322
|
};
|
|
4325
4323
|
}
|
|
4326
|
-
function
|
|
4324
|
+
function u(C) {
|
|
4327
4325
|
const { graphModel: E, isBranchEdgeInsert: p, needExpandDownstream: b, moveNodeIds: T, nodeType: v, delEdgeProps: w, edgeId: x } = C;
|
|
4328
4326
|
if (b)
|
|
4329
4327
|
if (p) {
|
|
@@ -4365,7 +4363,7 @@ function Ol(t) {
|
|
|
4365
4363
|
}), F.updatePoints();
|
|
4366
4364
|
}
|
|
4367
4365
|
}
|
|
4368
|
-
function
|
|
4366
|
+
function c(C, E) {
|
|
4369
4367
|
const { graphModel: p, isBranchEdgeInsert: b, needExpandDownstream: T, moveNodeIds: v, nodeType: w, delEdgeProps: x, edgeId: A } = E;
|
|
4370
4368
|
if (T)
|
|
4371
4369
|
if (b) {
|
|
@@ -4652,7 +4650,7 @@ function Ol(t) {
|
|
|
4652
4650
|
var b, T;
|
|
4653
4651
|
if (!C || !E) return !1;
|
|
4654
4652
|
const p = ((b = C.properties) == null ? void 0 : b.nodeType) || C.type;
|
|
4655
|
-
return !(!
|
|
4653
|
+
return !(!Fo(p) || p === d.IF || Ro.has(p) || qr(p) || ((T = C.properties) == null ? void 0 : T.aggregateNodeId) === E.id);
|
|
4656
4654
|
}
|
|
4657
4655
|
function O(C, E) {
|
|
4658
4656
|
var v, w;
|
|
@@ -4680,14 +4678,16 @@ function $l(t) {
|
|
|
4680
4678
|
function l() {
|
|
4681
4679
|
return e.value ? (o.value.syncFromLF(e.value), o.value.toJSON()) : "";
|
|
4682
4680
|
}
|
|
4683
|
-
function i(
|
|
4681
|
+
function i(u) {
|
|
4684
4682
|
const g = e.value;
|
|
4685
4683
|
if (!(!g || a)) {
|
|
4686
4684
|
n(), a = !0;
|
|
4687
4685
|
try {
|
|
4688
|
-
o.value.fromJSON(
|
|
4689
|
-
const
|
|
4690
|
-
g.render({ nodes:
|
|
4686
|
+
o.value.fromJSON(u);
|
|
4687
|
+
const c = o.value.toLFGraphData();
|
|
4688
|
+
g.render({ nodes: c.nodes, edges: c.edges }), r(), o.value.syncFromLF(g), setTimeout(() => g.translateCenter(), 200), s();
|
|
4689
|
+
} catch (c) {
|
|
4690
|
+
console.error("[LiteFlow] importJSON 失败,画布未渲染:", c);
|
|
4691
4691
|
} finally {
|
|
4692
4692
|
a = !1;
|
|
4693
4693
|
}
|
|
@@ -4729,9 +4729,9 @@ Wt.use(xr);
|
|
|
4729
4729
|
Wt.use(Ar);
|
|
4730
4730
|
Wt.use(Or);
|
|
4731
4731
|
const Ll = 50;
|
|
4732
|
-
function
|
|
4732
|
+
function t1() {
|
|
4733
4733
|
const t = _r(null);
|
|
4734
|
-
let e = ee(new Xt()), o = null, n = ee(null), r = ee(2), s = ee(1), a = ee(100), l = ee(!1), i = ee(!1),
|
|
4734
|
+
let e = ee(new Xt()), o = null, n = ee(null), r = ee(2), s = ee(1), a = ee(100), l = ee(!1), i = ee(!1), u = ee(!1), g = [], c = [], h = !1, m = null;
|
|
4735
4735
|
const y = Cl({
|
|
4736
4736
|
lfRef: t,
|
|
4737
4737
|
selectedElement: n,
|
|
@@ -4842,7 +4842,7 @@ function o1() {
|
|
|
4842
4842
|
edgeType: "edge-with-plus",
|
|
4843
4843
|
history: !0
|
|
4844
4844
|
}), Y = M.clientWidth || 800, K = M.clientHeight || 600;
|
|
4845
|
-
D.resize(Y, K), D.graphModel.readonly = B, Wr(Object.values(
|
|
4845
|
+
D.resize(Y, K), D.graphModel.readonly = B, Wr(Object.values(ko));
|
|
4846
4846
|
const ae = Ml(), ge = [];
|
|
4847
4847
|
return ae.forEach((W) => {
|
|
4848
4848
|
W.component ? hl(W, D) : ge.push(W);
|
|
@@ -4863,21 +4863,21 @@ function o1() {
|
|
|
4863
4863
|
const M = t.value;
|
|
4864
4864
|
if (!M) return;
|
|
4865
4865
|
const B = M.getGraphRawData();
|
|
4866
|
-
B &&
|
|
4866
|
+
B && c.push(C(B));
|
|
4867
4867
|
const D = g.pop();
|
|
4868
4868
|
M.render({ nodes: D.nodes, edges: D.edges }), n.value = null, b(), O(), w(), setTimeout(() => M.translateCenter(), 100), console.log("command+z", "ctrl+z", "performUndo");
|
|
4869
4869
|
}
|
|
4870
4870
|
function p() {
|
|
4871
|
-
if (
|
|
4871
|
+
if (c.length === 0) return;
|
|
4872
4872
|
const M = t.value;
|
|
4873
4873
|
if (!M) return;
|
|
4874
4874
|
const B = M.getGraphRawData();
|
|
4875
4875
|
B && g.push(C(B));
|
|
4876
|
-
const D =
|
|
4876
|
+
const D = c.pop();
|
|
4877
4877
|
M.render({ nodes: D.nodes, edges: D.edges }), n.value = null, b(), O(), w(), setTimeout(() => M.translateCenter(), 100), console.log("command+y", "ctrl+y", "performRedo");
|
|
4878
4878
|
}
|
|
4879
4879
|
function b() {
|
|
4880
|
-
i.value = g.length > 0,
|
|
4880
|
+
i.value = g.length > 0, u.value = c.length > 0;
|
|
4881
4881
|
}
|
|
4882
4882
|
function T() {
|
|
4883
4883
|
if (h) {
|
|
@@ -4926,7 +4926,7 @@ function o1() {
|
|
|
4926
4926
|
const M = t.value;
|
|
4927
4927
|
if (!M) return;
|
|
4928
4928
|
const B = M.getGraphRawData();
|
|
4929
|
-
B && (g.push(C(B)), g.length > Ll && g.shift(),
|
|
4929
|
+
B && (g.push(C(B)), g.length > Ll && g.shift(), c.length = 0, b());
|
|
4930
4930
|
}
|
|
4931
4931
|
function R() {
|
|
4932
4932
|
const M = t.value;
|
|
@@ -4954,7 +4954,7 @@ function o1() {
|
|
|
4954
4954
|
// --- 悬浮工具栏 ---
|
|
4955
4955
|
// 状态
|
|
4956
4956
|
canUndo: i,
|
|
4957
|
-
canRedo:
|
|
4957
|
+
canRedo: u,
|
|
4958
4958
|
zoomPercent: a,
|
|
4959
4959
|
miniMapVisible: l,
|
|
4960
4960
|
// 方法
|
|
@@ -5003,7 +5003,7 @@ function o1() {
|
|
|
5003
5003
|
};
|
|
5004
5004
|
}
|
|
5005
5005
|
const hr = Symbol("flowDesigner"), gr = Symbol("flowDesignerUiFacade");
|
|
5006
|
-
function
|
|
5006
|
+
function o1(t) {
|
|
5007
5007
|
Rn(hr, t);
|
|
5008
5008
|
}
|
|
5009
5009
|
function ct() {
|
|
@@ -5071,15 +5071,15 @@ const he = (t, e) => {
|
|
|
5071
5071
|
setZoom: a,
|
|
5072
5072
|
canUndo: l,
|
|
5073
5073
|
canRedo: i,
|
|
5074
|
-
zoomPercent:
|
|
5074
|
+
zoomPercent: u,
|
|
5075
5075
|
miniMapVisible: g,
|
|
5076
|
-
performUndo:
|
|
5076
|
+
performUndo: c,
|
|
5077
5077
|
performRedo: h,
|
|
5078
5078
|
fitView: m,
|
|
5079
5079
|
toggleMiniMap: y
|
|
5080
5080
|
} = o;
|
|
5081
5081
|
let f = !1;
|
|
5082
|
-
const _ = ee(
|
|
5082
|
+
const _ = ee(u.value), S = Ze(() => {
|
|
5083
5083
|
var w;
|
|
5084
5084
|
if (!n.value || n.value.type !== "node") return !1;
|
|
5085
5085
|
const T = n.value.nodeType;
|
|
@@ -5087,11 +5087,11 @@ const he = (t, e) => {
|
|
|
5087
5087
|
const v = n.value.properties;
|
|
5088
5088
|
return !((v == null ? void 0 : v.prefixType) === "ELSE" || (w = n.value.properties) != null && w.isAggregate);
|
|
5089
5089
|
});
|
|
5090
|
-
Je(
|
|
5090
|
+
Je(u, (T) => {
|
|
5091
5091
|
f || (_.value = T);
|
|
5092
5092
|
});
|
|
5093
5093
|
function N() {
|
|
5094
|
-
|
|
5094
|
+
c();
|
|
5095
5095
|
}
|
|
5096
5096
|
function O() {
|
|
5097
5097
|
h();
|
|
@@ -5121,9 +5121,9 @@ const he = (t, e) => {
|
|
|
5121
5121
|
title: "重置"
|
|
5122
5122
|
}, {
|
|
5123
5123
|
default: G(() => [
|
|
5124
|
-
(P(), L("svg", Fl,
|
|
5124
|
+
(P(), L("svg", Fl, v[1] || (v[1] = [
|
|
5125
5125
|
I("path", { d: "M4 4v5h.582m15.356 2A8.001 8.001 0 0 0 4.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 0 1-15.357-2m15.357 2H15" }, null, -1)
|
|
5126
|
-
])
|
|
5126
|
+
])))
|
|
5127
5127
|
]),
|
|
5128
5128
|
_: 1
|
|
5129
5129
|
})
|
|
@@ -5137,10 +5137,10 @@ const he = (t, e) => {
|
|
|
5137
5137
|
title: "撤销 (Ctrl+Z)"
|
|
5138
5138
|
}, {
|
|
5139
5139
|
default: G(() => [
|
|
5140
|
-
(P(), L("svg", Hl,
|
|
5140
|
+
(P(), L("svg", Hl, v[2] || (v[2] = [
|
|
5141
5141
|
I("polyline", { points: "1 4 1 10 7 10" }, null, -1),
|
|
5142
5142
|
I("path", { d: "M3.51 15a9 9 0 1 0 2.13-9.36L1 10" }, null, -1)
|
|
5143
|
-
])
|
|
5143
|
+
])))
|
|
5144
5144
|
]),
|
|
5145
5145
|
_: 1
|
|
5146
5146
|
}, 8, ["disabled"]),
|
|
@@ -5151,10 +5151,10 @@ const he = (t, e) => {
|
|
|
5151
5151
|
title: "重做 (Ctrl+Y)"
|
|
5152
5152
|
}, {
|
|
5153
5153
|
default: G(() => [
|
|
5154
|
-
(P(), L("svg", jl,
|
|
5154
|
+
(P(), L("svg", jl, v[3] || (v[3] = [
|
|
5155
5155
|
I("polyline", { points: "23 4 23 10 17 10" }, null, -1),
|
|
5156
5156
|
I("path", { d: "M20.49 15a9 9 0 1 1-2.12-9.36L23 10" }, null, -1)
|
|
5157
|
-
])
|
|
5157
|
+
])))
|
|
5158
5158
|
]),
|
|
5159
5159
|
_: 1
|
|
5160
5160
|
}, 8, ["disabled"])
|
|
@@ -5168,7 +5168,7 @@ const he = (t, e) => {
|
|
|
5168
5168
|
title: "小地图"
|
|
5169
5169
|
}, {
|
|
5170
5170
|
default: G(() => [
|
|
5171
|
-
(P(), L("svg", zl,
|
|
5171
|
+
(P(), L("svg", zl, v[4] || (v[4] = [
|
|
5172
5172
|
I("rect", {
|
|
5173
5173
|
x: "3",
|
|
5174
5174
|
y: "3",
|
|
@@ -5189,7 +5189,7 @@ const he = (t, e) => {
|
|
|
5189
5189
|
x2: "9",
|
|
5190
5190
|
y2: "9"
|
|
5191
5191
|
}, null, -1)
|
|
5192
|
-
])
|
|
5192
|
+
])))
|
|
5193
5193
|
]),
|
|
5194
5194
|
_: 1
|
|
5195
5195
|
}, 8, ["type"])
|
|
@@ -5204,10 +5204,10 @@ const he = (t, e) => {
|
|
|
5204
5204
|
title: "删除选中 (Delete)"
|
|
5205
5205
|
}, {
|
|
5206
5206
|
default: G(() => [
|
|
5207
|
-
(P(), L("svg", Ul,
|
|
5207
|
+
(P(), L("svg", Ul, v[5] || (v[5] = [
|
|
5208
5208
|
I("polyline", { points: "3 6 5 6 21 6" }, null, -1),
|
|
5209
5209
|
I("path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" }, null, -1)
|
|
5210
|
-
])
|
|
5210
|
+
])))
|
|
5211
5211
|
]),
|
|
5212
5212
|
_: 1
|
|
5213
5213
|
}, 8, ["disabled"])
|
|
@@ -5226,7 +5226,7 @@ const he = (t, e) => {
|
|
|
5226
5226
|
"format-tooltip": (A) => A + "%",
|
|
5227
5227
|
onInput: p
|
|
5228
5228
|
}, null, 8, ["modelValue", "format-tooltip"]),
|
|
5229
|
-
I("span", Yl, xe(X(
|
|
5229
|
+
I("span", Yl, xe(X(u)) + "%", 1),
|
|
5230
5230
|
H(w, {
|
|
5231
5231
|
size: "small",
|
|
5232
5232
|
text: "",
|
|
@@ -5234,9 +5234,9 @@ const he = (t, e) => {
|
|
|
5234
5234
|
title: "自适应画布"
|
|
5235
5235
|
}, {
|
|
5236
5236
|
default: G(() => [
|
|
5237
|
-
(P(), L("svg", Xl,
|
|
5237
|
+
(P(), L("svg", Xl, v[9] || (v[9] = [
|
|
5238
5238
|
I("path", { d: "M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3" }, null, -1)
|
|
5239
|
-
])
|
|
5239
|
+
])))
|
|
5240
5240
|
]),
|
|
5241
5241
|
_: 1
|
|
5242
5242
|
}, 8, ["onClick"])
|
|
@@ -5261,11 +5261,11 @@ const he = (t, e) => {
|
|
|
5261
5261
|
const a = Ze(() => {
|
|
5262
5262
|
var y;
|
|
5263
5263
|
return !!((y = o.dialogData) != null && y.canInsertBranch);
|
|
5264
|
-
}), l = Ze(() => !!s.value && !!r.value), i = /* @__PURE__ */ new Set([d.PRE, d.FINALLY]),
|
|
5264
|
+
}), l = Ze(() => !!s.value && !!r.value), i = /* @__PURE__ */ new Set([d.PRE, d.FINALLY]), u = Kr(), g = Ze(() => {
|
|
5265
5265
|
var f;
|
|
5266
|
-
const y =
|
|
5266
|
+
const y = u.control || [];
|
|
5267
5267
|
return (f = o.dialogData) != null && f.canCreatePreFinally ? y : y.filter((_) => !i.has(_.key));
|
|
5268
|
-
}),
|
|
5268
|
+
}), c = Ze(() => Xr()), h = (y) => [d.IF, d.WHEN].includes(y) ? !a.value : !1;
|
|
5269
5269
|
function m() {
|
|
5270
5270
|
n("confirm", {
|
|
5271
5271
|
operation: s.value,
|
|
@@ -5283,20 +5283,20 @@ const he = (t, e) => {
|
|
|
5283
5283
|
"close-on-click-modal": !1,
|
|
5284
5284
|
class: "insert-node-dialog"
|
|
5285
5285
|
}, {
|
|
5286
|
-
header: G(() =>
|
|
5286
|
+
header: G(() => f[3] || (f[3] = [
|
|
5287
5287
|
I("div", { class: "dialog-title" }, [
|
|
5288
5288
|
I("span", { class: "title-bar" }),
|
|
5289
5289
|
I("span", { class: "title-text" }, "添加节点")
|
|
5290
5290
|
], -1)
|
|
5291
|
-
])
|
|
5291
|
+
])),
|
|
5292
5292
|
footer: G(() => [
|
|
5293
5293
|
I("div", pc, [
|
|
5294
5294
|
H(_, {
|
|
5295
5295
|
onClick: f[1] || (f[1] = (N) => y.$emit("update:visible", !1))
|
|
5296
5296
|
}, {
|
|
5297
|
-
default: G(() =>
|
|
5298
|
-
me("取消"
|
|
5299
|
-
])
|
|
5297
|
+
default: G(() => f[8] || (f[8] = [
|
|
5298
|
+
me("取消")
|
|
5299
|
+
])),
|
|
5300
5300
|
_: 1
|
|
5301
5301
|
}),
|
|
5302
5302
|
H(_, {
|
|
@@ -5304,9 +5304,9 @@ const he = (t, e) => {
|
|
|
5304
5304
|
onClick: m,
|
|
5305
5305
|
disabled: !l.value
|
|
5306
5306
|
}, {
|
|
5307
|
-
default: G(() =>
|
|
5308
|
-
me(" 确认 "
|
|
5309
|
-
])
|
|
5307
|
+
default: G(() => f[9] || (f[9] = [
|
|
5308
|
+
me(" 确认 ")
|
|
5309
|
+
])),
|
|
5310
5310
|
_: 1
|
|
5311
5311
|
}, 8, ["disabled"])
|
|
5312
5312
|
])
|
|
@@ -5319,13 +5319,13 @@ const he = (t, e) => {
|
|
|
5319
5319
|
I("div", {
|
|
5320
5320
|
class: tt(["op-item", { active: X(s) === "insert" }]),
|
|
5321
5321
|
onClick: f[0] || (f[0] = (N) => Et(s) ? s.value = "insert" : s = "insert")
|
|
5322
|
-
},
|
|
5322
|
+
}, f[4] || (f[4] = [
|
|
5323
5323
|
I("span", { class: "op-dot" }, null, -1),
|
|
5324
5324
|
I("div", { class: "op-text" }, [
|
|
5325
5325
|
I("span", { class: "op-name" }, "插入节点"),
|
|
5326
5326
|
I("span", { class: "op-desc" }, "连线中间插入")
|
|
5327
5327
|
], -1)
|
|
5328
|
-
])
|
|
5328
|
+
]), 2)
|
|
5329
5329
|
])
|
|
5330
5330
|
]),
|
|
5331
5331
|
I("div", ec, [
|
|
@@ -5352,7 +5352,7 @@ const he = (t, e) => {
|
|
|
5352
5352
|
], 14, sc))), 128))
|
|
5353
5353
|
])
|
|
5354
5354
|
]),
|
|
5355
|
-
(P(!0), L(ie, null, le(
|
|
5355
|
+
(P(!0), L(ie, null, le(c.value, (N) => (P(), L("div", {
|
|
5356
5356
|
key: N.rootCateKey,
|
|
5357
5357
|
class: "type-group"
|
|
5358
5358
|
}, [
|
|
@@ -5393,8 +5393,8 @@ const he = (t, e) => {
|
|
|
5393
5393
|
return Mr(i, l);
|
|
5394
5394
|
});
|
|
5395
5395
|
function s(l) {
|
|
5396
|
-
var
|
|
5397
|
-
const i = (
|
|
5396
|
+
var u;
|
|
5397
|
+
const i = (u = o.value) == null ? void 0 : u.id;
|
|
5398
5398
|
i && n(i, l.properties);
|
|
5399
5399
|
}
|
|
5400
5400
|
function a() {
|
|
@@ -5417,22 +5417,22 @@ const he = (t, e) => {
|
|
|
5417
5417
|
setup(t) {
|
|
5418
5418
|
const e = t, o = ee(null);
|
|
5419
5419
|
let n = null, r = ee(!1), s = ee(!1), a = ee(null);
|
|
5420
|
-
const l = ct(), { initLf: i, uiFacade:
|
|
5420
|
+
const l = ct(), { initLf: i, uiFacade: u } = l;
|
|
5421
5421
|
Rn(gr, l.uiFacade);
|
|
5422
|
-
const g = ({ operation:
|
|
5422
|
+
const g = ({ operation: c, nodeType: h }) => {
|
|
5423
5423
|
const m = a.value;
|
|
5424
|
-
m && (
|
|
5424
|
+
m && (c === "insert" && u.insertNode(m.edgeId, m.sourceNodeId, m.targetNodeId, h), s.value = !1, a.value = null);
|
|
5425
5425
|
};
|
|
5426
5426
|
return Bn(() => {
|
|
5427
5427
|
if (!o.value) return;
|
|
5428
|
-
const
|
|
5429
|
-
l.lf =
|
|
5430
|
-
a.value =
|
|
5431
|
-
},
|
|
5428
|
+
const c = i(o.value, e.readonly);
|
|
5429
|
+
l.lf = c, e.readonly || (n = (h) => {
|
|
5430
|
+
a.value = u.getInsertContext(h), s.value = !0;
|
|
5431
|
+
}, c.graphModel.eventCenter.on("edge:plus-click", n));
|
|
5432
5432
|
}), br(() => {
|
|
5433
|
-
var
|
|
5434
|
-
n && l.lf && l.lf.graphModel.eventCenter.off("edge:plus-click", n), (
|
|
5435
|
-
}), (
|
|
5433
|
+
var c;
|
|
5434
|
+
n && l.lf && l.lf.graphModel.eventCenter.off("edge:plus-click", n), (c = l.destroy) == null || c.call(l);
|
|
5435
|
+
}), (c, h) => (P(), L("div", yc, [
|
|
5436
5436
|
I("div", {
|
|
5437
5437
|
class: "lf-container",
|
|
5438
5438
|
ref_key: "canvasRef",
|
|
@@ -5453,7 +5453,7 @@ const he = (t, e) => {
|
|
|
5453
5453
|
t.readonly ? ve("", !0) : (P(), Ie(vc, { key: 2 }))
|
|
5454
5454
|
]));
|
|
5455
5455
|
}
|
|
5456
|
-
},
|
|
5456
|
+
}, n1 = /* @__PURE__ */ he(mc, [["__scopeId", "data-v-4d88a6a6"]]);
|
|
5457
5457
|
class Rt extends Jt {
|
|
5458
5458
|
setAttributes() {
|
|
5459
5459
|
super.setAttributes(), this.text.editable = !1, this.width = 310, this.height = 62;
|
|
@@ -5510,25 +5510,25 @@ class Nc extends Er {
|
|
|
5510
5510
|
super.updatePoints();
|
|
5511
5511
|
const { sourceNode: e, targetNode: o } = this, { fixedOffsetX: n = 0 } = this.getProperties();
|
|
5512
5512
|
if (!e || !o) return;
|
|
5513
|
-
const r = e.x, s = e.y, a = o.x, l = o.y, i = n === 0 ? r + 1e-3 : r + n,
|
|
5513
|
+
const r = e.x, s = e.y, a = o.x, l = o.y, i = n === 0 ? r + 1e-3 : r + n, u = [
|
|
5514
5514
|
{ x: r, y: s },
|
|
5515
5515
|
{ x: i, y: s },
|
|
5516
5516
|
{ x: i, y: l },
|
|
5517
5517
|
{ x: a, y: l }
|
|
5518
5518
|
];
|
|
5519
5519
|
let g = !0;
|
|
5520
|
-
const
|
|
5521
|
-
if (
|
|
5520
|
+
const c = this.pointsList;
|
|
5521
|
+
if (c.length !== u.length)
|
|
5522
5522
|
g = !1;
|
|
5523
5523
|
else
|
|
5524
|
-
for (let h = 0; h <
|
|
5525
|
-
const m =
|
|
5524
|
+
for (let h = 0; h < u.length; h++) {
|
|
5525
|
+
const m = c[h], y = u[h];
|
|
5526
5526
|
if (m.x !== y.x || m.y !== y.y) {
|
|
5527
5527
|
g = !1;
|
|
5528
5528
|
break;
|
|
5529
5529
|
}
|
|
5530
5530
|
}
|
|
5531
|
-
g || this.updatePath(
|
|
5531
|
+
g || this.updatePath(u);
|
|
5532
5532
|
}
|
|
5533
5533
|
getData() {
|
|
5534
5534
|
const e = super.getData();
|
|
@@ -5582,7 +5582,7 @@ const bc = { class: "delay-card" }, Ec = { class: "icon-box" }, Cc = {
|
|
|
5582
5582
|
o = e(), a();
|
|
5583
5583
|
}), (l, i) => (P(), L("div", bc, [
|
|
5584
5584
|
I("div", Ec, [
|
|
5585
|
-
X(s) == "start-node" ? (P(), L("svg", Cc,
|
|
5585
|
+
X(s) == "start-node" ? (P(), L("svg", Cc, i[0] || (i[0] = [
|
|
5586
5586
|
I("rect", {
|
|
5587
5587
|
width: "30",
|
|
5588
5588
|
height: "30",
|
|
@@ -5597,19 +5597,19 @@ const bc = { class: "delay-card" }, Ec = { class: "icon-box" }, Cc = {
|
|
|
5597
5597
|
d: "M11.9656 13.661C11.7286 14.2412 11.6681 14.8784 11.7918 15.4927C11.9156 16.107 12.218 16.6712 12.6611 17.1143L12.8701 17.3235C13.1655 17.6194 13.5164 17.854 13.9028 18.0138C14.2892 18.1736 14.7033 18.2555 15.1214 18.2547H15.1226C15.5405 18.2557 15.9546 18.174 16.3408 18.0143C16.7271 17.8547 17.078 17.6202 17.3733 17.3245L23.8165 10.883C24.4116 10.2889 24.7472 9.48329 24.75 8.6424C24.7528 7.80151 24.4225 6.99373 23.8313 6.39568L23.639 6.20088C23.3447 5.90236 22.9943 5.66495 22.6079 5.50228C22.2216 5.33961 21.8069 5.2549 21.3877 5.25302C20.9685 5.25113 20.5531 5.33211 20.1653 5.4913C19.7775 5.65048 19.425 5.88474 19.128 6.1806L12.6681 12.608C12.3654 12.9081 12.1265 13.2663 11.9656 13.661ZM13.6505 13.5952L20.1104 7.16779C20.2761 7.00196 20.473 6.87053 20.6897 6.78105C20.9064 6.69158 21.1386 6.64583 21.3731 6.64645H21.3814C21.6173 6.64685 21.8507 6.69416 22.0681 6.78562C22.2855 6.87708 22.4825 7.01087 22.6478 7.17919L22.8401 7.37407C23.1724 7.71064 23.358 8.16497 23.3564 8.63789C23.3549 9.11081 23.1663 9.56393 22.8319 9.89834L16.3887 16.3395C16.2228 16.5062 16.0254 16.6383 15.8081 16.7282C15.5908 16.8181 15.3578 16.864 15.1226 16.8633H15.1219C14.8867 16.864 14.6536 16.818 14.4362 16.7279C14.2188 16.6379 14.0215 16.5056 13.8556 16.3387L13.6467 16.1297C13.4803 15.9632 13.3484 15.7655 13.2585 15.5479C13.1686 15.3303 13.1225 15.0971 13.1229 14.8617C13.1232 14.6262 13.17 14.3932 13.2606 14.1759C13.3511 13.9585 13.4836 13.7612 13.6505 13.5952ZM12.2149 17.7876C11.7164 17.2889 11.1012 17.0657 10.4999 17.0657C9.24162 17.0657 8.03282 18.0426 8.03282 19.5183C8.03282 20.8696 9.13227 21.9651 10.4838 21.9651C12.6643 21.9651 13.7566 19.3294 12.2149 17.7874V17.7876ZM11.4598 19.9222C11.3797 20.1155 11.2517 20.278 11.0897 20.3922C10.9183 20.5129 10.7146 20.5741 10.4844 20.5741C10.3457 20.5741 10.2083 20.5468 10.0802 20.4938C9.95203 20.4407 9.83559 20.3629 9.73751 20.2649C9.63943 20.1668 9.56163 20.0504 9.50855 19.9222C9.45547 19.7941 9.42816 19.6567 9.42817 19.518C9.42817 19.3577 9.45796 19.2093 9.51668 19.0771C9.57101 18.9554 9.64941 18.846 9.74717 18.7555C9.9524 18.5649 10.2217 18.4583 10.5018 18.4568C10.777 18.4568 11.0225 18.5625 11.2309 18.7712C11.3939 18.9343 11.4947 19.1216 11.5305 19.3282C11.5643 19.5236 11.5398 19.729 11.4598 19.9222Z",
|
|
5598
5598
|
fill: "white"
|
|
5599
5599
|
}, null, -1)
|
|
5600
|
-
])
|
|
5600
|
+
]))) : X(s) == "delay-node" ? (P(), L("svg", wc, i[1] || (i[1] = [
|
|
5601
5601
|
I("path", { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" }, null, -1),
|
|
5602
5602
|
I("path", { d: "M544 288h-64v224c0 8.8 7.2 16 16 16h160c8.8 0 16-7.2 16-16v-64c0-8.8-7.2-16-16-16H544z" }, null, -1),
|
|
5603
5603
|
I("path", { d: "M768 480a32 32 0 1 0 0-64 32 32 0 1 0 0 64zM256 480a32 32 0 1 0 0-64 32 32 0 1 0 0 64z" }, null, -1)
|
|
5604
|
-
])
|
|
5604
|
+
]))) : X(s) == "if-filter-node" ? (P(), L("svg", Tc, i[2] || (i[2] = [
|
|
5605
5605
|
I("path", { d: "M896 128H128c-17.7 0-32 14.3-32 32 0 6.8 2.2 13.3 6.3 18.8l270.9 344.3c5.4 6.8 8.4 15.4 8.4 24.3v254.6c0 17.7 14.3 32 32 32h256c17.7 0 32-14.3 32-32V647.4c0-8.9 3-17.5 8.4-24.3l270.9-344.3c4.1-5.5 6.3-12 6.3-18.8 0-17.7-14.3-32-32-32z" }, null, -1)
|
|
5606
|
-
])
|
|
5606
|
+
]))) : X(s) == "termination-node" ? (P(), L("svg", xc, i[3] || (i[3] = [
|
|
5607
5607
|
I("path", { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" }, null, -1),
|
|
5608
5608
|
I("path", { d: "M320 480c0-17.7 14.3-32 32-32h320c17.7 0 32 14.3 32 32v64c0 17.7-14.3 32-32 32H352c-17.7 0-32-14.3-32-32v-64z" }, null, -1)
|
|
5609
|
-
])
|
|
5609
|
+
]))) : (P(), L("svg", Ac, i[4] || (i[4] = [
|
|
5610
5610
|
I("path", { d: "M810.7 469.3c-17.1 0-34.1 3.4-50.1 10.1l-85.3-85.3c6.7-16 10.1-33 10.1-50.1 0-70.7-57.3-128-128-128s-128 57.3-128 128c0 17.1 3.4 34.1 10.1 50.1l-85.3 85.3c-16-6.7-33-10.1-50.1-10.1-70.7 0-128 57.3-128 128s57.3 128 128 128c17.1 0 34.1-3.4 50.1-10.1l85.3 85.3c-6.7 16-10.1 33-10.1 50.1 0 70.7 57.3 128 128 128s128-57.3 128-128c0-17.1-3.4-34.1-10.1-50.1l85.3-85.3c16 6.7 33 10.1 50.1 10.1 70.7 0 128-57.3 128-128s-57.3-128-128-128zM557.2 344c0-32.8 26.6-59.4 59.4-59.4s59.4 26.6 59.4 59.4-26.6 59.4-59.4 59.4-59.4-26.6-59.4-59.4zM344 557.2c0-32.8 26.6-59.4 59.4-59.4s59.4 26.6 59.4 59.4-26.6 59.4-59.4 59.4-59.4-26.6-59.4-59.4zm272.6 272.6c-32.8 0-59.4-26.6-59.4-59.4s26.6-59.4 59.4-59.4 59.4 26.6 59.4 59.4-26.6 59.4-59.4 59.4zm194.8-194.8c-32.8 0-59.4-26.6-59.4-59.4s26.6-59.4 59.4-59.4 59.4 26.6 59.4 59.4-26.6 59.4-59.4 59.4z" }, null, -1),
|
|
5611
5611
|
I("path", { d: "M512 426.7c-47.1 0-85.3 38.2-85.3 85.3s38.2 85.3 85.3 85.3 85.3-38.2 85.3-85.3-38.2-85.3-85.3-85.3zm0 113.8c-15.7 0-28.4-12.7-28.4-28.4s12.7-28.4 28.4-28.4 28.4 12.7 28.4 28.4-12.7 28.4-28.4 28.4z" }, null, -1)
|
|
5612
|
-
])
|
|
5612
|
+
])))
|
|
5613
5613
|
]),
|
|
5614
5614
|
I("div", Oc, [
|
|
5615
5615
|
I("div", $c, xe(X(n)), 1),
|
|
@@ -5621,9 +5621,9 @@ const bc = { class: "delay-card" }, Ec = { class: "icon-box" }, Cc = {
|
|
|
5621
5621
|
__name: "EndNode",
|
|
5622
5622
|
props: ["properties"],
|
|
5623
5623
|
setup(t) {
|
|
5624
|
-
return (e, o) => (P(), L("div", Mc,
|
|
5624
|
+
return (e, o) => (P(), L("div", Mc, o[0] || (o[0] = [
|
|
5625
5625
|
I("div", { class: "text" }, "流程结束", -1)
|
|
5626
|
-
])
|
|
5626
|
+
])));
|
|
5627
5627
|
}
|
|
5628
5628
|
}), Rc = /* @__PURE__ */ he(Lc, [["__scopeId", "data-v-a1822027"]]), Bc = { class: "branch-node-wrap" }, kc = { class: "blue-prefix" }, Fc = { class: "branch-text" }, Dc = /* @__PURE__ */ fe({
|
|
5629
5629
|
__name: "ConditionBranchNode",
|
|
@@ -5669,12 +5669,12 @@ const bc = { class: "delay-card" }, Ec = { class: "icon-box" }, Cc = {
|
|
|
5669
5669
|
const g = s.reduce((y, f) => {
|
|
5670
5670
|
var _;
|
|
5671
5671
|
return Math.max(y, ((_ = f.properties) == null ? void 0 : _.fixedOffsetX) ?? 0);
|
|
5672
|
-
}, 0) + Vc,
|
|
5672
|
+
}, 0) + Vc, c = n.id, h = de("edge");
|
|
5673
5673
|
r.addEdge({
|
|
5674
5674
|
id: h,
|
|
5675
5675
|
type: "edge-with-plus",
|
|
5676
|
-
sourceNodeId:
|
|
5677
|
-
sourceAnchorId:
|
|
5676
|
+
sourceNodeId: c,
|
|
5677
|
+
sourceAnchorId: c + "_right",
|
|
5678
5678
|
targetNodeId: i,
|
|
5679
5679
|
targetAnchorId: i + "_1",
|
|
5680
5680
|
text: `分支${a + 1}`,
|
|
@@ -5685,7 +5685,7 @@ const bc = { class: "delay-card" }, Ec = { class: "icon-box" }, Cc = {
|
|
|
5685
5685
|
branchNodeCount: 0,
|
|
5686
5686
|
originBranchEdgeId: h,
|
|
5687
5687
|
// 源分支边
|
|
5688
|
-
forkNodeId:
|
|
5688
|
+
forkNodeId: c,
|
|
5689
5689
|
andNodeId: i,
|
|
5690
5690
|
isNodeAdd: !0
|
|
5691
5691
|
}
|
|
@@ -5700,7 +5700,7 @@ const bc = { class: "delay-card" }, Ec = { class: "icon-box" }, Cc = {
|
|
|
5700
5700
|
]));
|
|
5701
5701
|
}
|
|
5702
5702
|
}), Gc = /* @__PURE__ */ he(zc, [["__scopeId", "data-v-971bcb1e"]]);
|
|
5703
|
-
class Uc extends
|
|
5703
|
+
class Uc extends Mo {
|
|
5704
5704
|
setAttributes() {
|
|
5705
5705
|
this.text.editable = !1, this.width = 311, this.height = 105;
|
|
5706
5706
|
}
|
|
@@ -5738,7 +5738,7 @@ class Uc extends Po {
|
|
|
5738
5738
|
];
|
|
5739
5739
|
}
|
|
5740
5740
|
}
|
|
5741
|
-
class Wc extends
|
|
5741
|
+
class Wc extends Lo {
|
|
5742
5742
|
constructor(o) {
|
|
5743
5743
|
super(o);
|
|
5744
5744
|
k(this, "app", null);
|
|
@@ -5751,7 +5751,7 @@ class Wc extends Mo {
|
|
|
5751
5751
|
setHtml(o) {
|
|
5752
5752
|
this.unmountVueApp(), o.innerHTML = "", this.rootDom = document.createElement("div"), o.appendChild(this.rootDom);
|
|
5753
5753
|
const n = this.props.model, r = this.props.graphModel, s = n.getProperties();
|
|
5754
|
-
this.app =
|
|
5754
|
+
this.app = Po({
|
|
5755
5755
|
render: () => ne(Gc, {
|
|
5756
5756
|
nodeModel: n,
|
|
5757
5757
|
graphModel: r,
|
|
@@ -5788,17 +5788,17 @@ const Yc = {
|
|
|
5788
5788
|
return;
|
|
5789
5789
|
}
|
|
5790
5790
|
const i = (_ = n.properties) == null ? void 0 : _.aggregateNodeId;
|
|
5791
|
-
let
|
|
5792
|
-
if (typeof i == "string" && (
|
|
5791
|
+
let u;
|
|
5792
|
+
if (typeof i == "string" && (u = i), !u) {
|
|
5793
5793
|
je({ message: "未找到当前分支对应的汇聚节点,无法新增分支", type: "error" });
|
|
5794
5794
|
return;
|
|
5795
5795
|
}
|
|
5796
|
-
const
|
|
5796
|
+
const c = a.reduce((S, N) => {
|
|
5797
5797
|
var O;
|
|
5798
5798
|
return Math.max(S, ((O = N.properties) == null ? void 0 : O.fixedOffsetX) ?? 0);
|
|
5799
5799
|
}, 0) + Zc, h = de("edge"), y = r.addNode({
|
|
5800
5800
|
type: "branch-node",
|
|
5801
|
-
x:
|
|
5801
|
+
x: c,
|
|
5802
5802
|
y: n.y + Kc,
|
|
5803
5803
|
properties: {
|
|
5804
5804
|
prefixType: "ELSE IF",
|
|
@@ -5817,7 +5817,7 @@ const Yc = {
|
|
|
5817
5817
|
originBranchEdgeId: h,
|
|
5818
5818
|
// 源分支边
|
|
5819
5819
|
forkNodeId: s,
|
|
5820
|
-
andNodeId:
|
|
5820
|
+
andNodeId: u
|
|
5821
5821
|
};
|
|
5822
5822
|
r.addEdge({
|
|
5823
5823
|
id: h,
|
|
@@ -5829,14 +5829,14 @@ const Yc = {
|
|
|
5829
5829
|
text: "",
|
|
5830
5830
|
properties: {
|
|
5831
5831
|
...f,
|
|
5832
|
-
fixedOffsetX:
|
|
5832
|
+
fixedOffsetX: c
|
|
5833
5833
|
}
|
|
5834
5834
|
}), r.addEdge({
|
|
5835
5835
|
type: "edge-with-plus",
|
|
5836
5836
|
sourceNodeId: y,
|
|
5837
5837
|
sourceAnchorId: "node_bottom",
|
|
5838
|
-
targetNodeId:
|
|
5839
|
-
targetAnchorId: `${
|
|
5838
|
+
targetNodeId: u,
|
|
5839
|
+
targetAnchorId: `${u}_0`,
|
|
5840
5840
|
text: "",
|
|
5841
5841
|
properties: f
|
|
5842
5842
|
});
|
|
@@ -5850,7 +5850,7 @@ const Yc = {
|
|
|
5850
5850
|
]));
|
|
5851
5851
|
}
|
|
5852
5852
|
}), Jc = /* @__PURE__ */ he(qc, [["__scopeId", "data-v-3ec6f188"]]);
|
|
5853
|
-
class Qc extends
|
|
5853
|
+
class Qc extends Mo {
|
|
5854
5854
|
setAttributes() {
|
|
5855
5855
|
this.text.editable = !1, this.width = 311, this.height = 105;
|
|
5856
5856
|
}
|
|
@@ -5888,7 +5888,7 @@ class Qc extends Po {
|
|
|
5888
5888
|
];
|
|
5889
5889
|
}
|
|
5890
5890
|
}
|
|
5891
|
-
class eu extends
|
|
5891
|
+
class eu extends Lo {
|
|
5892
5892
|
constructor(o) {
|
|
5893
5893
|
super(o);
|
|
5894
5894
|
k(this, "app", null);
|
|
@@ -5901,7 +5901,7 @@ class eu extends Mo {
|
|
|
5901
5901
|
setHtml(o) {
|
|
5902
5902
|
this.unmountVueApp(), o.innerHTML = "", this.rootDom = document.createElement("div"), o.appendChild(this.rootDom);
|
|
5903
5903
|
const n = this.props.model, r = this.props.graphModel, s = n.getProperties();
|
|
5904
|
-
this.app =
|
|
5904
|
+
this.app = Po({
|
|
5905
5905
|
render: () => ne(Jc, {
|
|
5906
5906
|
nodeModel: n,
|
|
5907
5907
|
graphModel: r,
|
|
@@ -5918,14 +5918,23 @@ const tu = {
|
|
|
5918
5918
|
view: eu,
|
|
5919
5919
|
model: Qc
|
|
5920
5920
|
};
|
|
5921
|
+
var So;
|
|
5922
|
+
So = { __e: function(t, e, o, n) {
|
|
5923
|
+
for (var r, s, a; e = e.__; ) if ((r = e.__c) && !r.__) try {
|
|
5924
|
+
if ((s = r.constructor) && s.getDerivedStateFromError != null && (r.setState(s.getDerivedStateFromError(t)), a = r.__d), r.componentDidCatch != null && (r.componentDidCatch(t, n || {}), a = r.__d), a) return r.__E = r;
|
|
5925
|
+
} catch (l) {
|
|
5926
|
+
t = l;
|
|
5927
|
+
}
|
|
5928
|
+
throw t;
|
|
5929
|
+
} }, typeof Promise == "function" && Promise.prototype.then.bind(Promise.resolve()), Math.random().toString(8);
|
|
5921
5930
|
var ou = 0;
|
|
5922
5931
|
function pe(t, e, o, n, r, s) {
|
|
5923
5932
|
e || (e = {});
|
|
5924
5933
|
var a, l, i = e;
|
|
5925
5934
|
if ("ref" in i) for (l in i = {}, e) l == "ref" ? a = e[l] : i[l] = e[l];
|
|
5926
|
-
var
|
|
5935
|
+
var u = { type: t, props: i, key: o, ref: a, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --ou, __i: -1, __u: 0, __source: r, __self: s };
|
|
5927
5936
|
if (typeof t == "function" && (a = t.defaultProps)) for (l in a) i[l] === void 0 && (i[l] = a[l]);
|
|
5928
|
-
return
|
|
5937
|
+
return So.vnode && So.vnode(u), u;
|
|
5929
5938
|
}
|
|
5930
5939
|
class nu extends Cr {
|
|
5931
5940
|
constructor() {
|
|
@@ -5959,8 +5968,8 @@ class nu extends Cr {
|
|
|
5959
5968
|
if (n <= 0) {
|
|
5960
5969
|
if (!s || s.length === 0) return { x: 0, y: 0 };
|
|
5961
5970
|
if (s.length === 1) return s[0];
|
|
5962
|
-
const i = Math.floor((s.length - 1) / 2),
|
|
5963
|
-
return { x: (
|
|
5971
|
+
const i = Math.floor((s.length - 1) / 2), u = s[i], g = s[i + 1];
|
|
5972
|
+
return { x: (u.x + g.x) / 2, y: (u.y + g.y) / 2 };
|
|
5964
5973
|
}
|
|
5965
5974
|
const a = s[1], l = s[2];
|
|
5966
5975
|
return { x: (a.x + l.x) / 2, y: (a.y + l.y) / 2 };
|
|
@@ -5982,7 +5991,7 @@ class nu extends Cr {
|
|
|
5982
5991
|
}
|
|
5983
5992
|
);
|
|
5984
5993
|
}
|
|
5985
|
-
const i = this.getMidPoint(),
|
|
5994
|
+
const i = this.getMidPoint(), u = String(((y = o.text) == null ? void 0 : y.value) ?? ""), g = String(o.properties.name ?? ""), c = u || g, h = c ? /* @__PURE__ */ pe("g", { children: [
|
|
5986
5995
|
/* @__PURE__ */ pe(
|
|
5987
5996
|
"rect",
|
|
5988
5997
|
{
|
|
@@ -6003,7 +6012,7 @@ class nu extends Cr {
|
|
|
6003
6012
|
textAnchor: "middle",
|
|
6004
6013
|
fill: "#333",
|
|
6005
6014
|
fontSize: "14",
|
|
6006
|
-
children:
|
|
6015
|
+
children: c
|
|
6007
6016
|
}
|
|
6008
6017
|
)
|
|
6009
6018
|
] }) : null;
|
|
@@ -6057,7 +6066,7 @@ class nu extends Cr {
|
|
|
6057
6066
|
}
|
|
6058
6067
|
class ru extends wr {
|
|
6059
6068
|
getShape() {
|
|
6060
|
-
const { model: e } = this.props, { x: o, y: n, r, properties: s } = e, a = (s == null ? void 0 : s.nodeType) || d.AND, l = a === d.START || a === d.END,
|
|
6069
|
+
const { model: e } = this.props, { x: o, y: n, r, properties: s } = e, a = (s == null ? void 0 : s.nodeType) || d.AND, l = a === d.START || a === d.END, u = { [d.START]: "#722ED1", [d.END]: "#FF4D4F", [d.AND]: "#FAAD14" }[a] || "#FAAD14", g = e.isSelected, c = g ? 3 : l ? 2.5 : 2, h = g ? "#1890ff" : u, m = l ? g ? "#1890ff" : u : "#fff", y = a === d.END ? 5.5 : 0, f = a === d.AND ? 4.5 : 0, _ = a === d.START ? 5.5 : 0;
|
|
6061
6070
|
return /* @__PURE__ */ pe("g", { className: `lf-node lf-circle-node lf-circle-${a.toLowerCase()}`, children: [
|
|
6062
6071
|
/* @__PURE__ */ pe("defs", { children: /* @__PURE__ */ pe("filter", { id: `lf-cs-${e.id}`, x: "-30%", y: "-30%", width: "160%", height: "160%", children: /* @__PURE__ */ pe("feDropShadow", { dx: "0", dy: "1.5", stdDeviation: "2", "flood-color": "#000", "flood-opacity": "0.15" }) }) }),
|
|
6063
6072
|
g && /* @__PURE__ */ pe(
|
|
@@ -6079,9 +6088,9 @@ class ru extends wr {
|
|
|
6079
6088
|
cx: o,
|
|
6080
6089
|
cy: n,
|
|
6081
6090
|
r,
|
|
6082
|
-
fill: l ? "#fff" :
|
|
6091
|
+
fill: l ? "#fff" : u,
|
|
6083
6092
|
stroke: h,
|
|
6084
|
-
"stroke-width":
|
|
6093
|
+
"stroke-width": c,
|
|
6085
6094
|
filter: `url(#lf-cs-${e.id})`
|
|
6086
6095
|
}
|
|
6087
6096
|
),
|
|
@@ -6183,7 +6192,7 @@ const Qt = [
|
|
|
6183
6192
|
remark: y.remark ?? ""
|
|
6184
6193
|
});
|
|
6185
6194
|
}, { immediate: !0 });
|
|
6186
|
-
function
|
|
6195
|
+
function u() {
|
|
6187
6196
|
if (!r.value) return;
|
|
6188
6197
|
const m = r.value.graphModel;
|
|
6189
6198
|
if (!o.selectedElement) return;
|
|
@@ -6194,13 +6203,13 @@ const Qt = [
|
|
|
6194
6203
|
}));
|
|
6195
6204
|
}
|
|
6196
6205
|
function g() {
|
|
6197
|
-
|
|
6206
|
+
u();
|
|
6198
6207
|
}
|
|
6199
|
-
function
|
|
6200
|
-
i.conditionList.push({ field: "", operator: "", value: "" }),
|
|
6208
|
+
function c() {
|
|
6209
|
+
i.conditionList.push({ field: "", operator: "", value: "" }), u();
|
|
6201
6210
|
}
|
|
6202
6211
|
function h(m) {
|
|
6203
|
-
i.conditionList.length <= 1 || (i.conditionList.splice(m, 1),
|
|
6212
|
+
i.conditionList.length <= 1 || (i.conditionList.splice(m, 1), u());
|
|
6204
6213
|
}
|
|
6205
6214
|
return (m, y) => {
|
|
6206
6215
|
const f = Z("el-option"), _ = Z("el-select"), S = Z("el-form-item"), N = Z("el-input"), O = Z("el-form");
|
|
@@ -6214,9 +6223,9 @@ const Qt = [
|
|
|
6214
6223
|
height: "18",
|
|
6215
6224
|
viewBox: "0 0 24 24",
|
|
6216
6225
|
fill: "#c0c4cc"
|
|
6217
|
-
},
|
|
6226
|
+
}, y[5] || (y[5] = [
|
|
6218
6227
|
I("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" }, null, -1)
|
|
6219
|
-
])
|
|
6228
|
+
])))
|
|
6220
6229
|
]),
|
|
6221
6230
|
I("div", au, [
|
|
6222
6231
|
H(O, {
|
|
@@ -6322,8 +6331,8 @@ const Qt = [
|
|
|
6322
6331
|
value: "satSignal"
|
|
6323
6332
|
})
|
|
6324
6333
|
]),
|
|
6325
|
-
_:
|
|
6326
|
-
},
|
|
6334
|
+
_: 2
|
|
6335
|
+
}, 1032, ["modelValue", "onUpdate:modelValue"]),
|
|
6327
6336
|
H(_, {
|
|
6328
6337
|
modelValue: C.operator,
|
|
6329
6338
|
"onUpdate:modelValue": (p) => C.operator = p,
|
|
@@ -6336,8 +6345,8 @@ const Qt = [
|
|
|
6336
6345
|
value: p.value
|
|
6337
6346
|
}, null, 8, ["label", "value"]))), 128))
|
|
6338
6347
|
]),
|
|
6339
|
-
_:
|
|
6340
|
-
},
|
|
6348
|
+
_: 2
|
|
6349
|
+
}, 1032, ["modelValue", "onUpdate:modelValue"]),
|
|
6341
6350
|
H(N, {
|
|
6342
6351
|
modelValue: C.value,
|
|
6343
6352
|
"onUpdate:modelValue": (p) => C.value = p,
|
|
@@ -6350,14 +6359,14 @@ const Qt = [
|
|
|
6350
6359
|
height: "18",
|
|
6351
6360
|
viewBox: "0 0 24 24",
|
|
6352
6361
|
fill: "#c0c4cc"
|
|
6353
|
-
},
|
|
6362
|
+
}, y[7] || (y[7] = [
|
|
6354
6363
|
I("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" }, null, -1)
|
|
6355
|
-
])
|
|
6364
|
+
]), 8, uu))
|
|
6356
6365
|
]))), 128)),
|
|
6357
6366
|
I("div", {
|
|
6358
6367
|
class: "add-cond-btn",
|
|
6359
|
-
onClick:
|
|
6360
|
-
},
|
|
6368
|
+
onClick: c
|
|
6369
|
+
}, y[8] || (y[8] = [
|
|
6361
6370
|
I("svg", {
|
|
6362
6371
|
width: "16",
|
|
6363
6372
|
height: "16",
|
|
@@ -6367,7 +6376,7 @@ const Qt = [
|
|
|
6367
6376
|
I("path", { d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z" })
|
|
6368
6377
|
], -1),
|
|
6369
6378
|
I("span", null, "添加条件", -1)
|
|
6370
|
-
])
|
|
6379
|
+
]))
|
|
6371
6380
|
]),
|
|
6372
6381
|
H(S, { label: "备注" }, {
|
|
6373
6382
|
default: G(() => [
|
|
@@ -6400,7 +6409,7 @@ const Qt = [
|
|
|
6400
6409
|
let s = yt([]);
|
|
6401
6410
|
async function a() {
|
|
6402
6411
|
if (!e.selectedElement || !n.value) return;
|
|
6403
|
-
const
|
|
6412
|
+
const c = n.value.graphModel, h = e.selectedElement.id, y = [...c.getNodeOutgoingEdge(h) || []].sort((f, _) => {
|
|
6404
6413
|
var O, C;
|
|
6405
6414
|
const S = ((O = f.properties) == null ? void 0 : O.fixedOffsetX) ?? 0, N = ((C = _.properties) == null ? void 0 : C.fixedOffsetX) ?? 0;
|
|
6406
6415
|
return S - N;
|
|
@@ -6417,12 +6426,12 @@ const Qt = [
|
|
|
6417
6426
|
Je(() => e.selectedElement, () => {
|
|
6418
6427
|
a();
|
|
6419
6428
|
}, { immediate: !0 });
|
|
6420
|
-
function l(
|
|
6421
|
-
s[
|
|
6429
|
+
function l(c) {
|
|
6430
|
+
s[c].expand = !s[c].expand;
|
|
6422
6431
|
}
|
|
6423
|
-
async function i(
|
|
6432
|
+
async function i(c, h) {
|
|
6424
6433
|
if (!n.value) return;
|
|
6425
|
-
const y = n.value.graphModel.getEdgeModelById(
|
|
6434
|
+
const y = n.value.graphModel.getEdgeModelById(c);
|
|
6426
6435
|
if (!y) return;
|
|
6427
6436
|
r();
|
|
6428
6437
|
const f = typeof y.text == "object" ? { ...y.text } : {};
|
|
@@ -6434,10 +6443,10 @@ const Qt = [
|
|
|
6434
6443
|
name: h
|
|
6435
6444
|
}), await a();
|
|
6436
6445
|
}
|
|
6437
|
-
async function
|
|
6446
|
+
async function u() {
|
|
6438
6447
|
var p;
|
|
6439
6448
|
if (!n.value || !e.selectedElement) return;
|
|
6440
|
-
const
|
|
6449
|
+
const c = n.value, h = c.graphModel, m = e.selectedElement.id, y = h.getNodeModelById(m);
|
|
6441
6450
|
if (!y) return;
|
|
6442
6451
|
const f = h.getNodeOutgoingEdge(m), _ = f.length;
|
|
6443
6452
|
if (_ >= Mn) return;
|
|
@@ -6452,7 +6461,7 @@ const Qt = [
|
|
|
6452
6461
|
var v;
|
|
6453
6462
|
return Math.max(b, ((v = T.properties) == null ? void 0 : v.fixedOffsetX) ?? 0);
|
|
6454
6463
|
}, 0) + Pn, E = de("edge");
|
|
6455
|
-
await
|
|
6464
|
+
await c.addEdge({
|
|
6456
6465
|
id: E,
|
|
6457
6466
|
type: "edge-with-plus",
|
|
6458
6467
|
sourceNodeId: m,
|
|
@@ -6472,21 +6481,21 @@ const Qt = [
|
|
|
6472
6481
|
}
|
|
6473
6482
|
}), await a();
|
|
6474
6483
|
}
|
|
6475
|
-
async function g(
|
|
6484
|
+
async function g(c) {
|
|
6476
6485
|
var h, m;
|
|
6477
6486
|
try {
|
|
6478
6487
|
if (!n.value) return;
|
|
6479
6488
|
const y = n.value, f = y.graphModel, _ = (h = e.selectedElement) == null ? void 0 : h.id;
|
|
6480
6489
|
if (!_ || s.length <= 2) return;
|
|
6481
6490
|
r();
|
|
6482
|
-
const S = f.getEdgeModelById(
|
|
6491
|
+
const S = f.getEdgeModelById(c);
|
|
6483
6492
|
if (!S) return;
|
|
6484
6493
|
const N = (m = S.properties) == null ? void 0 : m.andNodeId;
|
|
6485
6494
|
if (!N) {
|
|
6486
6495
|
console.error("找不到该分支对应的andNodeId");
|
|
6487
6496
|
return;
|
|
6488
6497
|
}
|
|
6489
|
-
const O = zt(f, _), { nodeIds: C, edgeIds: E } = pr(f,
|
|
6498
|
+
const O = zt(f, _), { nodeIds: C, edgeIds: E } = pr(f, c, N);
|
|
6490
6499
|
E.forEach((v) => {
|
|
6491
6500
|
y.deleteEdge(v);
|
|
6492
6501
|
}), C.forEach((v) => {
|
|
@@ -6527,21 +6536,21 @@ const Qt = [
|
|
|
6527
6536
|
console.error("删除分支异常", y);
|
|
6528
6537
|
}
|
|
6529
6538
|
}
|
|
6530
|
-
return (
|
|
6539
|
+
return (c, h) => {
|
|
6531
6540
|
const m = Z("el-input"), y = Z("el-button");
|
|
6532
6541
|
return P(), L("div", gu, [
|
|
6533
6542
|
I("div", vu, [
|
|
6534
6543
|
h[2] || (h[2] = Oe('<div class="panel-header-left" data-v-8c295753><div class="header-icon-box" data-v-8c295753><svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30" fill="none" data-v-8c295753><rect width="30" height="30" rx="8" fill="#409EFF" data-v-8c295753></rect><path d="M11.792 8.01458C11.792 8.86706 12.1307 9.68463 12.7335 10.2874C13.3363 10.8902 14.1538 11.2289 15.0063 11.2289C15.8588 11.2289 16.6764 10.8902 17.2791 10.2874C17.8819 9.68463 18.2206 8.86706 18.2206 8.01458C18.2206 7.1621 17.8819 6.34453 17.2791 5.74174C16.6764 5.13894 15.8588 4.80029 15.0063 4.80029C14.1538 4.80029 13.3363 5.13894 12.7335 5.74174C12.1307 6.34453 11.792 7.1621 11.792 8.01458Z" fill="white" data-v-8c295753></path><path d="M5.25 21.9558C5.25 22.5508 5.48639 23.1215 5.90716 23.5423C6.32794 23.9631 6.89863 24.1995 7.4937 24.1995C8.08876 24.1995 8.65946 23.9631 9.08023 23.5423C9.50101 23.1215 9.73739 22.5508 9.73739 21.9558C9.73739 21.3607 9.50101 20.79 9.08023 20.3692C8.65946 19.9484 8.08876 19.7121 7.4937 19.7121C6.89863 19.7121 6.32794 19.9484 5.90716 20.3692C5.48639 20.79 5.25 21.3607 5.25 21.9558Z" fill="white" data-v-8c295753></path><path d="M20.2626 21.9558C20.2626 22.2504 20.3206 22.5422 20.4334 22.8144C20.5462 23.0866 20.7114 23.3339 20.9198 23.5423C21.1281 23.7506 21.3755 23.9159 21.6477 24.0287C21.9199 24.1414 22.2117 24.1995 22.5063 24.1995C22.8009 24.1995 23.0927 24.1414 23.3649 24.0287C23.6371 23.9159 23.8845 23.7506 24.0928 23.5423C24.3012 23.3339 24.4665 23.0866 24.5792 22.8144C24.692 22.5422 24.75 22.2504 24.75 21.9558C24.75 21.6611 24.692 21.3693 24.5792 21.0971C24.4665 20.8249 24.3012 20.5776 24.0928 20.3692C23.8845 20.1609 23.6371 19.9956 23.3649 19.8828C23.0927 19.7701 22.8009 19.7121 22.5063 19.7121C22.2117 19.7121 21.9199 19.7701 21.6477 19.8828C21.3755 19.9956 21.1281 20.1609 20.9198 20.3692C20.7114 20.5776 20.5462 20.8249 20.4334 21.0971C20.3206 21.3693 20.2626 21.6611 20.2626 21.9558Z" fill="white" data-v-8c295753></path><path d="M12.6996 21.9558C12.6996 22.5508 12.936 23.1215 13.3567 23.5423C13.7775 23.9631 14.3482 24.1995 14.9433 24.1995C15.5383 24.1995 16.109 23.9631 16.5298 23.5423C16.9506 23.1215 17.187 22.5508 17.187 21.9558C17.187 21.3607 16.9506 20.79 16.5298 20.3692C16.109 19.9484 15.5383 19.7121 14.9433 19.7121C14.3482 19.7121 13.7775 19.9484 13.3567 20.3692C12.936 20.79 12.6996 21.3607 12.6996 21.9558Z" fill="white" data-v-8c295753></path><path d="M14.9433 18.8675C14.6029 18.8675 14.3256 18.5902 14.3256 18.2499V13.0818C14.3256 12.7415 14.6029 12.4642 14.9433 12.4642C15.2836 12.4642 15.5609 12.7415 15.5609 13.0818V18.2499C15.5609 18.5902 15.2836 18.8675 14.9433 18.8675ZM7.4937 18.8675C7.15336 18.8675 6.87605 18.5902 6.87605 18.2499V14.7961C6.87605 14.4558 7.15336 14.1784 7.4937 14.1784C7.83403 14.1784 8.11134 14.4558 8.11134 14.7961V18.2499C8.09874 18.5902 7.83403 18.8675 7.4937 18.8675ZM22.5063 18.8675C22.166 18.8675 21.8887 18.5902 21.8887 18.2499V14.7961C21.8887 14.4558 22.166 14.1784 22.5063 14.1784C22.8466 14.1784 23.124 14.4558 23.124 14.7961V18.2499C23.124 18.5902 22.8466 18.8675 22.5063 18.8675Z" fill="white" data-v-8c295753></path><path d="M6.87605 14.7961C6.87605 14.4558 7.15336 14.1784 7.4937 14.1784H22.5063C22.8466 14.1784 23.124 14.4558 23.124 14.7961C23.124 15.1364 22.8466 15.4137 22.5063 15.4137H7.4937C7.15336 15.4137 6.87605 15.1364 6.87605 14.7961Z" fill="white" data-v-8c295753></path></svg></div><span class="panel-title" data-v-8c295753>并行分支</span></div>', 1)),
|
|
6535
6544
|
(P(), L("svg", {
|
|
6536
6545
|
class: "close-svg",
|
|
6537
|
-
onClick: h[0] || (h[0] = (f) =>
|
|
6546
|
+
onClick: h[0] || (h[0] = (f) => c.$emit("close")),
|
|
6538
6547
|
width: "20",
|
|
6539
6548
|
height: "20",
|
|
6540
6549
|
viewBox: "0 0 24 24",
|
|
6541
6550
|
fill: "#909399"
|
|
6542
|
-
},
|
|
6551
|
+
}, h[1] || (h[1] = [
|
|
6543
6552
|
I("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" }, null, -1)
|
|
6544
|
-
])
|
|
6553
|
+
])))
|
|
6545
6554
|
]),
|
|
6546
6555
|
I("div", yu, [
|
|
6547
6556
|
I("div", mu, [
|
|
@@ -6557,7 +6566,7 @@ const Qt = [
|
|
|
6557
6566
|
I("div", Nu, [
|
|
6558
6567
|
I("span", {
|
|
6559
6568
|
class: tt(["arrow-icon", { expand: f.expand }])
|
|
6560
|
-
},
|
|
6569
|
+
}, h[3] || (h[3] = [
|
|
6561
6570
|
I("svg", {
|
|
6562
6571
|
width: "16",
|
|
6563
6572
|
height: "16",
|
|
@@ -6566,7 +6575,7 @@ const Qt = [
|
|
|
6566
6575
|
}, [
|
|
6567
6576
|
I("path", { d: "M320 128l384 384-384 384-64-64 320-320-320-320z" })
|
|
6568
6577
|
], -1)
|
|
6569
|
-
])
|
|
6578
|
+
]), 2),
|
|
6570
6579
|
I("span", null, xe(f.isNodeAdd ? "分支" : f.name ? ` ${f.name}` : "分支"), 1)
|
|
6571
6580
|
]),
|
|
6572
6581
|
X(s).length > 2 ? (P(), L("svg", {
|
|
@@ -6577,9 +6586,9 @@ const Qt = [
|
|
|
6577
6586
|
height: "18",
|
|
6578
6587
|
viewBox: "0 0 24 24",
|
|
6579
6588
|
fill: "#909399"
|
|
6580
|
-
},
|
|
6589
|
+
}, h[4] || (h[4] = [
|
|
6581
6590
|
I("path", { d: "M19 4h-3.5l-1-1h-5l-1 1H5v2h14V4zM6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9z" }, null, -1)
|
|
6582
|
-
])
|
|
6591
|
+
]), 8, bu)) : ve("", !0)
|
|
6583
6592
|
], 8, _u),
|
|
6584
6593
|
co(I("div", Eu, [
|
|
6585
6594
|
I("div", Cu, [
|
|
@@ -6600,13 +6609,13 @@ const Qt = [
|
|
|
6600
6609
|
]))), 128)),
|
|
6601
6610
|
H(y, {
|
|
6602
6611
|
plain: "",
|
|
6603
|
-
onClick:
|
|
6612
|
+
onClick: u,
|
|
6604
6613
|
disabled: X(s).length >= Mn
|
|
6605
6614
|
}, {
|
|
6606
|
-
default: G(() =>
|
|
6615
|
+
default: G(() => h[6] || (h[6] = [
|
|
6607
6616
|
I("span", { class: "branch-btn" }, "+", -1),
|
|
6608
|
-
me(" 添加分支 "
|
|
6609
|
-
])
|
|
6617
|
+
me(" 添加分支 ")
|
|
6618
|
+
])),
|
|
6610
6619
|
_: 1
|
|
6611
6620
|
}, 8, ["disabled"])
|
|
6612
6621
|
])
|
|
@@ -6631,8 +6640,8 @@ const Qt = [
|
|
|
6631
6640
|
});
|
|
6632
6641
|
Je(
|
|
6633
6642
|
() => o.selectedElement,
|
|
6634
|
-
(
|
|
6635
|
-
if (!
|
|
6643
|
+
(c) => {
|
|
6644
|
+
if (!c) {
|
|
6636
6645
|
Object.assign(i, {
|
|
6637
6646
|
delayType: "duration",
|
|
6638
6647
|
delayNum: "",
|
|
@@ -6640,7 +6649,7 @@ const Qt = [
|
|
|
6640
6649
|
});
|
|
6641
6650
|
return;
|
|
6642
6651
|
}
|
|
6643
|
-
const h =
|
|
6652
|
+
const h = c.properties;
|
|
6644
6653
|
Object.assign(i, {
|
|
6645
6654
|
delayType: h.delayType ?? "duration",
|
|
6646
6655
|
delayNum: h.delayNum ?? "",
|
|
@@ -6649,42 +6658,42 @@ const Qt = [
|
|
|
6649
6658
|
},
|
|
6650
6659
|
{ immediate: !0 }
|
|
6651
6660
|
);
|
|
6652
|
-
function
|
|
6661
|
+
function u() {
|
|
6653
6662
|
if (!s.value || !o.selectedElement) return;
|
|
6654
6663
|
a();
|
|
6655
|
-
const
|
|
6656
|
-
if (!
|
|
6664
|
+
const c = s.value.getNodeModelById(o.selectedElement.id);
|
|
6665
|
+
if (!c) return;
|
|
6657
6666
|
const h = {
|
|
6658
|
-
...
|
|
6667
|
+
...c.properties,
|
|
6659
6668
|
...i
|
|
6660
6669
|
};
|
|
6661
|
-
|
|
6670
|
+
c.setProperties(h), n("update:selected", c);
|
|
6662
6671
|
}
|
|
6663
6672
|
async function g() {
|
|
6664
|
-
var
|
|
6673
|
+
var c;
|
|
6665
6674
|
try {
|
|
6666
|
-
await ((
|
|
6675
|
+
await ((c = l.value) == null ? void 0 : c.validate());
|
|
6667
6676
|
} catch (h) {
|
|
6668
6677
|
console.log("表单校验失败字段:", h);
|
|
6669
6678
|
return;
|
|
6670
6679
|
}
|
|
6671
|
-
|
|
6680
|
+
u(), n("close");
|
|
6672
6681
|
}
|
|
6673
|
-
return (
|
|
6682
|
+
return (c, h) => {
|
|
6674
6683
|
const m = Z("el-option"), y = Z("el-select"), f = Z("el-form-item"), _ = Z("el-input"), S = Z("el-form"), N = Z("el-button");
|
|
6675
6684
|
return P(), L("div", Ou, [
|
|
6676
6685
|
I("div", $u, [
|
|
6677
6686
|
h[6] || (h[6] = Oe('<div class="panel-header-left" data-v-76507879><div class="header-icon-box" data-v-76507879><svg viewBox="0 0 1024 1024" width="30" height="30" fill="#ffffff" data-v-76507879><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" data-v-76507879></path><path d="M544 288h-64v224c0 8.8 7.2 16 16 16h160c8.8 0 16-7.2 16-16v-64c0-8.8-7.2-16-16-16H544z" data-v-76507879></path><path d="M768 480a32 32 0 1 0 0-64 32 32 0 1 0 0 64zM256 480a32 32 0 1 0 0-64 32 32 0 1 0 0 64z" data-v-76507879></path></svg></div><span class="panel-title" data-v-76507879>延时执行</span></div>', 1)),
|
|
6678
6687
|
(P(), L("svg", {
|
|
6679
6688
|
class: "close-svg",
|
|
6680
|
-
onClick: h[0] || (h[0] = (O) =>
|
|
6689
|
+
onClick: h[0] || (h[0] = (O) => c.$emit("close")),
|
|
6681
6690
|
width: "20",
|
|
6682
6691
|
height: "20",
|
|
6683
6692
|
viewBox: "0 0 24 24",
|
|
6684
6693
|
fill: "#909399"
|
|
6685
|
-
},
|
|
6694
|
+
}, h[5] || (h[5] = [
|
|
6686
6695
|
I("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" }, null, -1)
|
|
6687
|
-
])
|
|
6696
|
+
])))
|
|
6688
6697
|
]),
|
|
6689
6698
|
I("div", Su, [
|
|
6690
6699
|
H(S, {
|
|
@@ -6781,17 +6790,17 @@ const Qt = [
|
|
|
6781
6790
|
type: "primary",
|
|
6782
6791
|
onClick: g
|
|
6783
6792
|
}, {
|
|
6784
|
-
default: G(() =>
|
|
6785
|
-
me("确定"
|
|
6786
|
-
])
|
|
6793
|
+
default: G(() => h[8] || (h[8] = [
|
|
6794
|
+
me("确定")
|
|
6795
|
+
])),
|
|
6787
6796
|
_: 1
|
|
6788
6797
|
}),
|
|
6789
6798
|
H(N, {
|
|
6790
|
-
onClick: h[4] || (h[4] = (O) =>
|
|
6799
|
+
onClick: h[4] || (h[4] = (O) => c.$emit("close"))
|
|
6791
6800
|
}, {
|
|
6792
|
-
default: G(() =>
|
|
6793
|
-
me("取消"
|
|
6794
|
-
])
|
|
6801
|
+
default: G(() => h[9] || (h[9] = [
|
|
6802
|
+
me("取消")
|
|
6803
|
+
])),
|
|
6795
6804
|
_: 1
|
|
6796
6805
|
})
|
|
6797
6806
|
])
|
|
@@ -6815,9 +6824,9 @@ const Qt = [
|
|
|
6815
6824
|
height: "20",
|
|
6816
6825
|
viewBox: "0 0 24 24",
|
|
6817
6826
|
fill: "#909399"
|
|
6818
|
-
},
|
|
6827
|
+
}, n[1] || (n[1] = [
|
|
6819
6828
|
I("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" }, null, -1)
|
|
6820
|
-
])
|
|
6829
|
+
])))
|
|
6821
6830
|
]),
|
|
6822
6831
|
n[3] || (n[3] = Oe('<div class="panel-body" data-v-7070f250><div class="no-config-tip" data-v-7070f250><div class="warning-icon" data-v-7070f250><svg viewBox="0 0 1024 1024" width="24" height="24" fill="#409EFF" data-v-7070f250><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" data-v-7070f250></path><path d="M512 688a48 48 0 1 0 0 96 48 48 0 1 0 0-96zm-32-416v288c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V272c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8z" data-v-7070f250></path></svg></div><span class="tip-text" data-v-7070f250>该步骤无需配置入参</span></div></div>', 1))
|
|
6823
6832
|
]));
|
|
@@ -6853,7 +6862,7 @@ const Gu = { class: "filter-props-panel props-panel" }, Uu = { class: "panel-hea
|
|
|
6853
6862
|
]);
|
|
6854
6863
|
}
|
|
6855
6864
|
let i = ee([]);
|
|
6856
|
-
const
|
|
6865
|
+
const u = ee([
|
|
6857
6866
|
{ label: "变量A", value: "varA" },
|
|
6858
6867
|
{ label: "变量B", value: "varB" }
|
|
6859
6868
|
]);
|
|
@@ -6874,7 +6883,7 @@ const Gu = { class: "filter-props-panel props-panel" }, Uu = { class: "panel-hea
|
|
|
6874
6883
|
orGroupList: Ve(i.value)
|
|
6875
6884
|
}));
|
|
6876
6885
|
}
|
|
6877
|
-
function
|
|
6886
|
+
function c() {
|
|
6878
6887
|
g();
|
|
6879
6888
|
}
|
|
6880
6889
|
function h(f, _) {
|
|
@@ -6907,9 +6916,9 @@ const Gu = { class: "filter-props-panel props-panel" }, Uu = { class: "panel-hea
|
|
|
6907
6916
|
height: "20",
|
|
6908
6917
|
viewBox: "0 0 24 24",
|
|
6909
6918
|
fill: "#909399"
|
|
6910
|
-
},
|
|
6919
|
+
}, _[1] || (_[1] = [
|
|
6911
6920
|
I("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" }, null, -1)
|
|
6912
|
-
])
|
|
6921
|
+
])))
|
|
6913
6922
|
]),
|
|
6914
6923
|
I("div", Wu, [
|
|
6915
6924
|
_[6] || (_[6] = I("div", { class: "condition-title" }, [
|
|
@@ -6929,23 +6938,23 @@ const Gu = { class: "filter-props-panel props-panel" }, Uu = { class: "panel-hea
|
|
|
6929
6938
|
"onUpdate:modelValue": (v) => b.variable = v,
|
|
6930
6939
|
placeholder: "请选择变量",
|
|
6931
6940
|
style: { width: "30%" },
|
|
6932
|
-
onChange:
|
|
6941
|
+
onChange: c
|
|
6933
6942
|
}, {
|
|
6934
6943
|
default: G(() => [
|
|
6935
|
-
(P(!0), L(ie, null, le(
|
|
6944
|
+
(P(!0), L(ie, null, le(u.value, (v) => (P(), Ie(S, {
|
|
6936
6945
|
key: v.value,
|
|
6937
6946
|
label: v.label,
|
|
6938
6947
|
value: v.value
|
|
6939
6948
|
}, null, 8, ["label", "value"]))), 128))
|
|
6940
6949
|
]),
|
|
6941
|
-
_:
|
|
6942
|
-
},
|
|
6950
|
+
_: 2
|
|
6951
|
+
}, 1032, ["modelValue", "onUpdate:modelValue"]),
|
|
6943
6952
|
H(N, {
|
|
6944
6953
|
modelValue: b.operator,
|
|
6945
6954
|
"onUpdate:modelValue": (v) => b.operator = v,
|
|
6946
6955
|
placeholder: "选择...",
|
|
6947
6956
|
style: { width: "30%" },
|
|
6948
|
-
onChange:
|
|
6957
|
+
onChange: c
|
|
6949
6958
|
}, {
|
|
6950
6959
|
default: G(() => [
|
|
6951
6960
|
(P(!0), L(ie, null, le(X(Qt), (v) => (P(), Ie(S, {
|
|
@@ -6954,22 +6963,22 @@ const Gu = { class: "filter-props-panel props-panel" }, Uu = { class: "panel-hea
|
|
|
6954
6963
|
value: v.value
|
|
6955
6964
|
}, null, 8, ["label", "value"]))), 128))
|
|
6956
6965
|
]),
|
|
6957
|
-
_:
|
|
6958
|
-
},
|
|
6966
|
+
_: 2
|
|
6967
|
+
}, 1032, ["modelValue", "onUpdate:modelValue"]),
|
|
6959
6968
|
I("div", Ku, [
|
|
6960
6969
|
["notEmpty", "isEmpty"].includes(b.operator) ? ve("", !0) : (P(), Ie(O, {
|
|
6961
6970
|
key: 0,
|
|
6962
6971
|
modelValue: b.value,
|
|
6963
6972
|
"onUpdate:modelValue": (v) => b.value = v,
|
|
6964
6973
|
placeholder: "请输入",
|
|
6965
|
-
onInput:
|
|
6974
|
+
onInput: c
|
|
6966
6975
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]))
|
|
6967
6976
|
]),
|
|
6968
6977
|
E.andRowList.length > 1 || X(i).length > 1 ? (P(), L("div", {
|
|
6969
6978
|
key: 0,
|
|
6970
6979
|
class: "row-del-btn",
|
|
6971
6980
|
onClick: (v) => h(p, T)
|
|
6972
|
-
},
|
|
6981
|
+
}, _[3] || (_[3] = [
|
|
6973
6982
|
I("svg", {
|
|
6974
6983
|
width: "16",
|
|
6975
6984
|
height: "16",
|
|
@@ -6978,7 +6987,7 @@ const Gu = { class: "filter-props-panel props-panel" }, Uu = { class: "panel-hea
|
|
|
6978
6987
|
}, [
|
|
6979
6988
|
I("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" })
|
|
6980
6989
|
], -1)
|
|
6981
|
-
])
|
|
6990
|
+
]), 8, qu)) : ve("", !0)
|
|
6982
6991
|
])
|
|
6983
6992
|
]))), 128)),
|
|
6984
6993
|
H(C, {
|
|
@@ -6986,20 +6995,20 @@ const Gu = { class: "filter-props-panel props-panel" }, Uu = { class: "panel-hea
|
|
|
6986
6995
|
class: "and-btn",
|
|
6987
6996
|
onClick: (b) => m(p)
|
|
6988
6997
|
}, {
|
|
6989
|
-
default: G(() =>
|
|
6990
|
-
me("+ 并且"
|
|
6991
|
-
])
|
|
6992
|
-
_:
|
|
6993
|
-
},
|
|
6998
|
+
default: G(() => _[4] || (_[4] = [
|
|
6999
|
+
me("+ 并且")
|
|
7000
|
+
])),
|
|
7001
|
+
_: 2
|
|
7002
|
+
}, 1032, ["onClick"])
|
|
6994
7003
|
])
|
|
6995
7004
|
], 64))), 128)),
|
|
6996
7005
|
H(C, {
|
|
6997
7006
|
class: "or-btn",
|
|
6998
7007
|
onClick: y
|
|
6999
7008
|
}, {
|
|
7000
|
-
default: G(() =>
|
|
7001
|
-
me("+ 或者"
|
|
7002
|
-
])
|
|
7009
|
+
default: G(() => _[5] || (_[5] = [
|
|
7010
|
+
me("+ 或者")
|
|
7011
|
+
])),
|
|
7003
7012
|
_: 1
|
|
7004
7013
|
}),
|
|
7005
7014
|
_[7] || (_[7] = I("div", { class: "form-tip" }, " 只有满足设定的条件时,流程才会继续向下执行;否则流程将在此步骤终止 ", -1))
|
|
@@ -7036,14 +7045,14 @@ const Gu = { class: "filter-props-panel props-panel" }, Uu = { class: "panel-hea
|
|
|
7036
7045
|
});
|
|
7037
7046
|
}
|
|
7038
7047
|
let l = ee(!0), i = yt([]);
|
|
7039
|
-
const
|
|
7048
|
+
const u = ee([
|
|
7040
7049
|
{ label: "变量A", value: "varA" },
|
|
7041
7050
|
{ label: "变量B", value: "varB" }
|
|
7042
7051
|
]);
|
|
7043
7052
|
function g(E) {
|
|
7044
7053
|
i[E].expand = !i[E].expand;
|
|
7045
7054
|
}
|
|
7046
|
-
function
|
|
7055
|
+
function c() {
|
|
7047
7056
|
l.value = !l.value;
|
|
7048
7057
|
}
|
|
7049
7058
|
function h() {
|
|
@@ -7240,9 +7249,9 @@ const Gu = { class: "filter-props-panel props-panel" }, Uu = { class: "panel-hea
|
|
|
7240
7249
|
height: "20",
|
|
7241
7250
|
viewBox: "0 0 24 24",
|
|
7242
7251
|
fill: "#909399"
|
|
7243
|
-
},
|
|
7252
|
+
}, p[1] || (p[1] = [
|
|
7244
7253
|
I("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" }, null, -1)
|
|
7245
|
-
])
|
|
7254
|
+
])))
|
|
7246
7255
|
]),
|
|
7247
7256
|
I("div", np, [
|
|
7248
7257
|
I("div", rp, [
|
|
@@ -7258,7 +7267,7 @@ const Gu = { class: "filter-props-panel props-panel" }, Uu = { class: "panel-hea
|
|
|
7258
7267
|
I("div", dp, [
|
|
7259
7268
|
I("span", {
|
|
7260
7269
|
class: tt(["arrow-icon", { expand: x.expand }])
|
|
7261
|
-
},
|
|
7270
|
+
}, p[3] || (p[3] = [
|
|
7262
7271
|
I("svg", {
|
|
7263
7272
|
width: "16",
|
|
7264
7273
|
height: "16",
|
|
@@ -7267,7 +7276,7 @@ const Gu = { class: "filter-props-panel props-panel" }, Uu = { class: "panel-hea
|
|
|
7267
7276
|
}, [
|
|
7268
7277
|
I("path", { d: "M320 128l384 384-384 384-64-64 320-320-320-320z" })
|
|
7269
7278
|
], -1)
|
|
7270
|
-
])
|
|
7279
|
+
]), 2),
|
|
7271
7280
|
I("span", null, xe(x.isNodeAdd ? "分支" : x.name ? ` ${x.name}` : "分支"), 1)
|
|
7272
7281
|
]),
|
|
7273
7282
|
X(i).length > 1 && A != 0 ? (P(), L("svg", {
|
|
@@ -7278,9 +7287,9 @@ const Gu = { class: "filter-props-panel props-panel" }, Uu = { class: "panel-hea
|
|
|
7278
7287
|
height: "18",
|
|
7279
7288
|
viewBox: "0 0 24 24",
|
|
7280
7289
|
fill: "#909399"
|
|
7281
|
-
},
|
|
7290
|
+
}, p[4] || (p[4] = [
|
|
7282
7291
|
I("path", { d: "M19 4h-3.5l-1-1h-5l-1 1H5v2h14V4zM6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9z" }, null, -1)
|
|
7283
|
-
])
|
|
7292
|
+
]), 8, ap)) : ve("", !0)
|
|
7284
7293
|
], 8, ip),
|
|
7285
7294
|
co(I("div", lp, [
|
|
7286
7295
|
I("div", cp, [
|
|
@@ -7314,14 +7323,14 @@ const Gu = { class: "filter-props-panel props-panel" }, Uu = { class: "panel-hea
|
|
|
7314
7323
|
onChange: (F) => S(x.edgeId, x)
|
|
7315
7324
|
}, {
|
|
7316
7325
|
default: G(() => [
|
|
7317
|
-
(P(!0), L(ie, null, le(
|
|
7326
|
+
(P(!0), L(ie, null, le(u.value, (F) => (P(), Ie(T, {
|
|
7318
7327
|
key: F.value,
|
|
7319
7328
|
label: F.label,
|
|
7320
7329
|
value: F.value
|
|
7321
7330
|
}, null, 8, ["label", "value"]))), 128))
|
|
7322
7331
|
]),
|
|
7323
|
-
_:
|
|
7324
|
-
},
|
|
7332
|
+
_: 2
|
|
7333
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"]),
|
|
7325
7334
|
H(v, {
|
|
7326
7335
|
modelValue: j.operator,
|
|
7327
7336
|
"onUpdate:modelValue": (F) => j.operator = F,
|
|
@@ -7336,8 +7345,8 @@ const Gu = { class: "filter-props-panel props-panel" }, Uu = { class: "panel-hea
|
|
|
7336
7345
|
value: F.value
|
|
7337
7346
|
}, null, 8, ["label", "value"]))), 128))
|
|
7338
7347
|
]),
|
|
7339
|
-
_:
|
|
7340
|
-
},
|
|
7348
|
+
_: 2
|
|
7349
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"]),
|
|
7341
7350
|
I("div", vp, [
|
|
7342
7351
|
["notEmpty", "isEmpty"].includes(j.operator) ? ve("", !0) : (P(), Ie(b, {
|
|
7343
7352
|
key: 0,
|
|
@@ -7351,7 +7360,7 @@ const Gu = { class: "filter-props-panel props-panel" }, Uu = { class: "panel-hea
|
|
|
7351
7360
|
key: 0,
|
|
7352
7361
|
class: "row-del-btn",
|
|
7353
7362
|
onClick: (F) => N(x.edgeId, x, R, V)
|
|
7354
|
-
},
|
|
7363
|
+
}, p[6] || (p[6] = [
|
|
7355
7364
|
I("svg", {
|
|
7356
7365
|
width: "16",
|
|
7357
7366
|
height: "16",
|
|
@@ -7360,7 +7369,7 @@ const Gu = { class: "filter-props-panel props-panel" }, Uu = { class: "panel-hea
|
|
|
7360
7369
|
}, [
|
|
7361
7370
|
I("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" })
|
|
7362
7371
|
], -1)
|
|
7363
|
-
])
|
|
7372
|
+
]), 8, yp)) : ve("", !0)
|
|
7364
7373
|
])
|
|
7365
7374
|
]))), 128)),
|
|
7366
7375
|
H(w, {
|
|
@@ -7368,22 +7377,22 @@ const Gu = { class: "filter-props-panel props-panel" }, Uu = { class: "panel-hea
|
|
|
7368
7377
|
class: "and-btn",
|
|
7369
7378
|
onClick: (j) => O(x.edgeId, x, R)
|
|
7370
7379
|
}, {
|
|
7371
|
-
default: G(() =>
|
|
7372
|
-
me("+ 且"
|
|
7373
|
-
])
|
|
7374
|
-
_:
|
|
7375
|
-
},
|
|
7380
|
+
default: G(() => p[7] || (p[7] = [
|
|
7381
|
+
me("+ 且")
|
|
7382
|
+
])),
|
|
7383
|
+
_: 2
|
|
7384
|
+
}, 1032, ["onClick"])
|
|
7376
7385
|
])
|
|
7377
7386
|
], 64))), 128)),
|
|
7378
7387
|
H(w, {
|
|
7379
7388
|
class: "or-btn",
|
|
7380
7389
|
onClick: ($) => C(x.edgeId, x)
|
|
7381
7390
|
}, {
|
|
7382
|
-
default: G(() =>
|
|
7383
|
-
me("+ 或"
|
|
7384
|
-
])
|
|
7385
|
-
_:
|
|
7386
|
-
},
|
|
7391
|
+
default: G(() => p[8] || (p[8] = [
|
|
7392
|
+
me("+ 或")
|
|
7393
|
+
])),
|
|
7394
|
+
_: 2
|
|
7395
|
+
}, 1032, ["onClick"])
|
|
7387
7396
|
])
|
|
7388
7397
|
])
|
|
7389
7398
|
], 512), [
|
|
@@ -7395,12 +7404,12 @@ const Gu = { class: "filter-props-panel props-panel" }, Uu = { class: "panel-hea
|
|
|
7395
7404
|
I("div", Ip, [
|
|
7396
7405
|
I("div", {
|
|
7397
7406
|
class: "collapse-header",
|
|
7398
|
-
onClick:
|
|
7407
|
+
onClick: c
|
|
7399
7408
|
}, [
|
|
7400
7409
|
I("div", _p, [
|
|
7401
7410
|
I("span", {
|
|
7402
7411
|
class: tt(["arrow-icon", { expand: X(l) }])
|
|
7403
|
-
},
|
|
7412
|
+
}, p[10] || (p[10] = [
|
|
7404
7413
|
I("svg", {
|
|
7405
7414
|
width: "16",
|
|
7406
7415
|
height: "16",
|
|
@@ -7409,13 +7418,13 @@ const Gu = { class: "filter-props-panel props-panel" }, Uu = { class: "panel-hea
|
|
|
7409
7418
|
}, [
|
|
7410
7419
|
I("path", { d: "M320 128l384 384-384 384-64-64 320-320-320-320z" })
|
|
7411
7420
|
], -1)
|
|
7412
|
-
])
|
|
7421
|
+
]), 2),
|
|
7413
7422
|
p[11] || (p[11] = I("span", null, "默认分支", -1))
|
|
7414
7423
|
])
|
|
7415
7424
|
]),
|
|
7416
|
-
co(I("div", Np,
|
|
7425
|
+
co(I("div", Np, p[12] || (p[12] = [
|
|
7417
7426
|
I("div", { class: "tip-text" }, "无需设置条件,其他分支均不满足时自动执行默认分支", -1)
|
|
7418
|
-
])
|
|
7427
|
+
]), 512), [
|
|
7419
7428
|
[uo, X(l)]
|
|
7420
7429
|
])
|
|
7421
7430
|
])
|
|
@@ -7425,10 +7434,10 @@ const Gu = { class: "filter-props-panel props-panel" }, Uu = { class: "panel-hea
|
|
|
7425
7434
|
onClick: m,
|
|
7426
7435
|
disabled: X(i).length + 1 >= Ln
|
|
7427
7436
|
}, {
|
|
7428
|
-
default: G(() =>
|
|
7437
|
+
default: G(() => p[13] || (p[13] = [
|
|
7429
7438
|
I("span", { class: "branch-btn" }, "+", -1),
|
|
7430
|
-
me(" 添加分支 "
|
|
7431
|
-
])
|
|
7439
|
+
me(" 添加分支 ")
|
|
7440
|
+
])),
|
|
7432
7441
|
_: 1
|
|
7433
7442
|
}, 8, ["disabled"])
|
|
7434
7443
|
])
|
|
@@ -7453,9 +7462,9 @@ const Gu = { class: "filter-props-panel props-panel" }, Uu = { class: "panel-hea
|
|
|
7453
7462
|
height: "20",
|
|
7454
7463
|
viewBox: "0 0 24 24",
|
|
7455
7464
|
fill: "#909399"
|
|
7456
|
-
},
|
|
7465
|
+
}, n[1] || (n[1] = [
|
|
7457
7466
|
I("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" }, null, -1)
|
|
7458
|
-
])
|
|
7467
|
+
])))
|
|
7459
7468
|
]),
|
|
7460
7469
|
n[3] || (n[3] = I("div", { class: "panel-body" }, [
|
|
7461
7470
|
I("span", { class: "content" }, "无需设置条件,其他分支均不满足时自动执行默认分支")
|
|
@@ -7493,7 +7502,7 @@ const Gu = { class: "filter-props-panel props-panel" }, Uu = { class: "panel-hea
|
|
|
7493
7502
|
const i = yt({
|
|
7494
7503
|
name: "",
|
|
7495
7504
|
condition: { orGroupList: [] }
|
|
7496
|
-
}),
|
|
7505
|
+
}), u = ee([
|
|
7497
7506
|
{ label: "变量A", value: "varA" },
|
|
7498
7507
|
{ label: "变量B", value: "varB" }
|
|
7499
7508
|
]);
|
|
@@ -7513,7 +7522,7 @@ const Gu = { class: "filter-props-panel props-panel" }, Uu = { class: "panel-hea
|
|
|
7513
7522
|
condition: Ve(_.condition)
|
|
7514
7523
|
}));
|
|
7515
7524
|
}
|
|
7516
|
-
function
|
|
7525
|
+
function c() {
|
|
7517
7526
|
g(a, i);
|
|
7518
7527
|
}
|
|
7519
7528
|
function h(f, _) {
|
|
@@ -7540,9 +7549,9 @@ const Gu = { class: "filter-props-panel props-panel" }, Uu = { class: "panel-hea
|
|
|
7540
7549
|
height: "20",
|
|
7541
7550
|
viewBox: "0 0 24 24",
|
|
7542
7551
|
fill: "#909399"
|
|
7543
|
-
},
|
|
7552
|
+
}, _[2] || (_[2] = [
|
|
7544
7553
|
I("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" }, null, -1)
|
|
7545
|
-
])
|
|
7554
|
+
])))
|
|
7546
7555
|
]),
|
|
7547
7556
|
I("div", Mp, [
|
|
7548
7557
|
I("div", Lp, [
|
|
@@ -7552,7 +7561,7 @@ const Gu = { class: "filter-props-panel props-panel" }, Uu = { class: "panel-hea
|
|
|
7552
7561
|
modelValue: i.name,
|
|
7553
7562
|
"onUpdate:modelValue": _[1] || (_[1] = (E) => i.name = E),
|
|
7554
7563
|
placeholder: "请输入分支名称",
|
|
7555
|
-
onInput:
|
|
7564
|
+
onInput: c
|
|
7556
7565
|
}, null, 8, ["modelValue"])
|
|
7557
7566
|
]),
|
|
7558
7567
|
I("div", Bp, [
|
|
@@ -7573,23 +7582,23 @@ const Gu = { class: "filter-props-panel props-panel" }, Uu = { class: "panel-hea
|
|
|
7573
7582
|
"onUpdate:modelValue": (v) => b.variable = v,
|
|
7574
7583
|
placeholder: "请选择变量",
|
|
7575
7584
|
style: { width: "30%" },
|
|
7576
|
-
onChange:
|
|
7585
|
+
onChange: c
|
|
7577
7586
|
}, {
|
|
7578
7587
|
default: G(() => [
|
|
7579
|
-
(P(!0), L(ie, null, le(
|
|
7588
|
+
(P(!0), L(ie, null, le(u.value, (v) => (P(), Ie(N, {
|
|
7580
7589
|
key: v.value,
|
|
7581
7590
|
label: v.label,
|
|
7582
7591
|
value: v.value
|
|
7583
7592
|
}, null, 8, ["label", "value"]))), 128))
|
|
7584
7593
|
]),
|
|
7585
|
-
_:
|
|
7586
|
-
},
|
|
7594
|
+
_: 2
|
|
7595
|
+
}, 1032, ["modelValue", "onUpdate:modelValue"]),
|
|
7587
7596
|
H(O, {
|
|
7588
7597
|
modelValue: b.operator,
|
|
7589
7598
|
"onUpdate:modelValue": (v) => b.operator = v,
|
|
7590
7599
|
placeholder: "选择...",
|
|
7591
7600
|
style: { width: "30%" },
|
|
7592
|
-
onChange:
|
|
7601
|
+
onChange: c
|
|
7593
7602
|
}, {
|
|
7594
7603
|
default: G(() => [
|
|
7595
7604
|
(P(!0), L(ie, null, le(X(Qt), (v) => (P(), Ie(N, {
|
|
@@ -7598,22 +7607,22 @@ const Gu = { class: "filter-props-panel props-panel" }, Uu = { class: "panel-hea
|
|
|
7598
7607
|
value: v.value
|
|
7599
7608
|
}, null, 8, ["label", "value"]))), 128))
|
|
7600
7609
|
]),
|
|
7601
|
-
_:
|
|
7602
|
-
},
|
|
7610
|
+
_: 2
|
|
7611
|
+
}, 1032, ["modelValue", "onUpdate:modelValue"]),
|
|
7603
7612
|
I("div", Hp, [
|
|
7604
7613
|
["notEmpty", "isEmpty"].includes(b.operator) ? ve("", !0) : (P(), Ie(S, {
|
|
7605
7614
|
key: 0,
|
|
7606
7615
|
modelValue: b.value,
|
|
7607
7616
|
"onUpdate:modelValue": (v) => b.value = v,
|
|
7608
7617
|
placeholder: "请输入",
|
|
7609
|
-
onInput:
|
|
7618
|
+
onInput: c
|
|
7610
7619
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]))
|
|
7611
7620
|
]),
|
|
7612
7621
|
E.andRowList.length > 1 || i.condition.orGroupList.length > 1 ? (P(), L("div", {
|
|
7613
7622
|
key: 0,
|
|
7614
7623
|
class: "row-del-btn",
|
|
7615
7624
|
onClick: (v) => h(p, T)
|
|
7616
|
-
},
|
|
7625
|
+
}, _[5] || (_[5] = [
|
|
7617
7626
|
I("svg", {
|
|
7618
7627
|
width: "16",
|
|
7619
7628
|
height: "16",
|
|
@@ -7622,7 +7631,7 @@ const Gu = { class: "filter-props-panel props-panel" }, Uu = { class: "panel-hea
|
|
|
7622
7631
|
}, [
|
|
7623
7632
|
I("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" })
|
|
7624
7633
|
], -1)
|
|
7625
|
-
])
|
|
7634
|
+
]), 8, jp)) : ve("", !0)
|
|
7626
7635
|
])
|
|
7627
7636
|
]))), 128)),
|
|
7628
7637
|
H(C, {
|
|
@@ -7630,20 +7639,20 @@ const Gu = { class: "filter-props-panel props-panel" }, Uu = { class: "panel-hea
|
|
|
7630
7639
|
class: "and-btn",
|
|
7631
7640
|
onClick: (b) => m(p)
|
|
7632
7641
|
}, {
|
|
7633
|
-
default: G(() =>
|
|
7634
|
-
me("+ 且"
|
|
7635
|
-
])
|
|
7636
|
-
_:
|
|
7637
|
-
},
|
|
7642
|
+
default: G(() => _[6] || (_[6] = [
|
|
7643
|
+
me("+ 且")
|
|
7644
|
+
])),
|
|
7645
|
+
_: 2
|
|
7646
|
+
}, 1032, ["onClick"])
|
|
7638
7647
|
])
|
|
7639
7648
|
], 64))), 128)),
|
|
7640
7649
|
H(C, {
|
|
7641
7650
|
class: "or-btn",
|
|
7642
7651
|
onClick: y
|
|
7643
7652
|
}, {
|
|
7644
|
-
default: G(() =>
|
|
7645
|
-
me("+ 或"
|
|
7646
|
-
])
|
|
7653
|
+
default: G(() => _[7] || (_[7] = [
|
|
7654
|
+
me("+ 或")
|
|
7655
|
+
])),
|
|
7647
7656
|
_: 1
|
|
7648
7657
|
})
|
|
7649
7658
|
])
|
|
@@ -7657,7 +7666,7 @@ const Gu = { class: "filter-props-panel props-panel" }, Uu = { class: "panel-hea
|
|
|
7657
7666
|
default: zp
|
|
7658
7667
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
7659
7668
|
export {
|
|
7660
|
-
|
|
7669
|
+
qp as A,
|
|
7661
7670
|
$r as B,
|
|
7662
7671
|
Bt as C,
|
|
7663
7672
|
re as E,
|
|
@@ -7668,19 +7677,19 @@ export {
|
|
|
7668
7677
|
Rt as N,
|
|
7669
7678
|
Yt as S,
|
|
7670
7679
|
he as _,
|
|
7671
|
-
|
|
7680
|
+
e1 as a,
|
|
7672
7681
|
Pl as b,
|
|
7673
|
-
|
|
7682
|
+
Jp as c,
|
|
7674
7683
|
d,
|
|
7675
|
-
|
|
7676
|
-
|
|
7684
|
+
n1 as e,
|
|
7685
|
+
Kp as f,
|
|
7677
7686
|
de as g,
|
|
7678
7687
|
ye as h,
|
|
7679
7688
|
ct as i,
|
|
7680
|
-
|
|
7689
|
+
Ro as j,
|
|
7681
7690
|
ts as k,
|
|
7682
7691
|
Mr as l,
|
|
7683
|
-
|
|
7684
|
-
|
|
7685
|
-
|
|
7692
|
+
o1 as p,
|
|
7693
|
+
Qp as r,
|
|
7694
|
+
t1 as u
|
|
7686
7695
|
};
|