@billtaofbj/diagram 1.0.0 → 1.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/diagram.css +1 -1
- package/dist/index.cjs.js +8 -8
- package/dist/index.es.js +941 -831
- package/package.json +32 -26
package/dist/index.es.js
CHANGED
|
@@ -5,23 +5,42 @@ import { ElMessage as P } from "element-plus";
|
|
|
5
5
|
import F from "axios";
|
|
6
6
|
import * as I from "yjs";
|
|
7
7
|
import { HocuspocusProvider as L } from "@hocuspocus/provider";
|
|
8
|
-
import { ArrowDown as R, ArrowLeft as z, Bell as B, Clock as V, Close as H, Delete as U, Link as W, Loading as G, Monitor as K, Picture as
|
|
9
|
-
|
|
10
|
-
var Z = F.create({
|
|
8
|
+
import { ArrowDown as R, ArrowLeft as z, Bell as B, Clock as V, Close as H, Delete as U, Link as W, Loading as G, Monitor as K, Picture as ee, Plus as q, Promotion as te, Setting as J, Share as Y } from "@element-plus/icons-vue";
|
|
9
|
+
F.create({
|
|
11
10
|
baseURL: "/api",
|
|
12
11
|
timeout: 3e4
|
|
13
|
-
})
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
12
|
+
});
|
|
13
|
+
function ne(e = "/api") {
|
|
14
|
+
let t = F.create({
|
|
15
|
+
baseURL: e,
|
|
16
|
+
timeout: 3e4
|
|
17
|
+
});
|
|
18
|
+
return {
|
|
19
|
+
list: (e) => t.get("/documents/", { params: e }),
|
|
20
|
+
get: (e) => t.get(`/documents/${e}`),
|
|
21
|
+
create: (e) => t.post("/documents/", e),
|
|
22
|
+
update: (e, n) => t.put(`/documents/${e}`, n),
|
|
23
|
+
delete: (e) => t.delete(`/documents/${e}`),
|
|
24
|
+
addAttachment: (e, n) => t.post(`/documents/${e}/attachments`, n),
|
|
25
|
+
listAttachments: (e) => t.get(`/documents/${e}/attachments`)
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
function re(e = "/api") {
|
|
29
|
+
let t = F.create({
|
|
30
|
+
baseURL: e,
|
|
31
|
+
timeout: 3e4
|
|
32
|
+
});
|
|
33
|
+
return {
|
|
34
|
+
get: (e) => t.get(`/questionnaires/${e}`),
|
|
35
|
+
create: (e) => t.post("/questionnaires/", e),
|
|
36
|
+
update: (e, n) => t.put(`/questionnaires/${e}`, n)
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
re("/api");
|
|
40
|
+
var ie = ne("/api");
|
|
22
41
|
//#endregion
|
|
23
42
|
//#region ../../src/composables/useCollaboration.js
|
|
24
|
-
function
|
|
43
|
+
function ae(e, t = {}) {
|
|
25
44
|
let n = new I.Doc(), r = y(!1), i = y(!1), a = y(null), o = y([]), s = y(!1), c = v({
|
|
26
45
|
name: `用户${Math.floor(Math.random() * 1e3)}`,
|
|
27
46
|
color: `#${Math.floor(Math.random() * 16777215).toString(16).padStart(6, "0")}`
|
|
@@ -157,7 +176,7 @@ function ne(e, t = {}) {
|
|
|
157
176
|
}
|
|
158
177
|
//#endregion
|
|
159
178
|
//#region ../../src/utils/diagram-themes.js
|
|
160
|
-
var
|
|
179
|
+
var X = {
|
|
161
180
|
classic: {
|
|
162
181
|
name: "经典",
|
|
163
182
|
description: "扁平化设计,简洁清晰",
|
|
@@ -488,7 +507,7 @@ var re = {
|
|
|
488
507
|
},
|
|
489
508
|
animation: { defaultDuration: 2 }
|
|
490
509
|
}
|
|
491
|
-
},
|
|
510
|
+
}, oe = {
|
|
492
511
|
none: {
|
|
493
512
|
name: "无",
|
|
494
513
|
description: "默认无动画",
|
|
@@ -559,7 +578,7 @@ var re = {
|
|
|
559
578
|
description: "霓虹灯边框流动效果",
|
|
560
579
|
category: "glow"
|
|
561
580
|
}
|
|
562
|
-
},
|
|
581
|
+
}, se = {
|
|
563
582
|
none: {
|
|
564
583
|
name: "无",
|
|
565
584
|
description: "默认无动画"
|
|
@@ -585,8 +604,8 @@ var re = {
|
|
|
585
604
|
description: "霓虹灯效果流动"
|
|
586
605
|
}
|
|
587
606
|
};
|
|
588
|
-
function
|
|
589
|
-
let r = (
|
|
607
|
+
function ce(e, t, n) {
|
|
608
|
+
let r = (X[e] || X.classic).nodeStyle;
|
|
590
609
|
return t ? {
|
|
591
610
|
color: "#409eff",
|
|
592
611
|
width: 3,
|
|
@@ -607,13 +626,13 @@ function oe(e, t, n) {
|
|
|
607
626
|
dasharray: "none"
|
|
608
627
|
};
|
|
609
628
|
}
|
|
610
|
-
function
|
|
611
|
-
let t = (
|
|
629
|
+
function le(e) {
|
|
630
|
+
let t = (X[e] || X.classic).nodeStyle;
|
|
612
631
|
return t.sketchStyle ? "sketch" : t.shadow ? t.glowEffect ? "neon-glow" : t.backdropFilter ? "glass-shadow" : "shadow" : "none";
|
|
613
632
|
}
|
|
614
633
|
//#endregion
|
|
615
634
|
//#region ../../src/composables/useProcessDiagram.js
|
|
616
|
-
var
|
|
635
|
+
var ue = {
|
|
617
636
|
start: {
|
|
618
637
|
label: "开始",
|
|
619
638
|
desc: "流程的起点,每个流程图只能有一个开始节点",
|
|
@@ -785,22 +804,22 @@ var ce = {
|
|
|
785
804
|
shape: "rect",
|
|
786
805
|
color: "#dcdfe6"
|
|
787
806
|
}
|
|
788
|
-
},
|
|
807
|
+
}, de = oe, fe = {
|
|
789
808
|
solid: { label: "实线" },
|
|
790
809
|
dashed: { label: "虚线" },
|
|
791
810
|
dotted: { label: "点线" },
|
|
792
811
|
animated: { label: "动画线" }
|
|
793
|
-
},
|
|
812
|
+
}, pe = {
|
|
794
813
|
flow: "业务流程图",
|
|
795
814
|
swimlane: "泳道图",
|
|
796
815
|
architecture: "架构图"
|
|
797
|
-
},
|
|
816
|
+
}, me = {
|
|
798
817
|
approval: "审批流程图",
|
|
799
818
|
execution: "执行流程图",
|
|
800
819
|
dataflow: "数据流程图"
|
|
801
820
|
};
|
|
802
|
-
function
|
|
803
|
-
let i =
|
|
821
|
+
function Z(e, t, n, r = {}) {
|
|
822
|
+
let i = ue[e] || ue.process;
|
|
804
823
|
return {
|
|
805
824
|
id: "node_" + Date.now() + "_" + Math.random().toString(36).substr(2, 6),
|
|
806
825
|
type: e,
|
|
@@ -831,7 +850,7 @@ function pe(e, t, n, r = {}) {
|
|
|
831
850
|
...r
|
|
832
851
|
};
|
|
833
852
|
}
|
|
834
|
-
function
|
|
853
|
+
function he(e, t, n = {}) {
|
|
835
854
|
return {
|
|
836
855
|
id: "edge_" + Date.now() + "_" + Math.random().toString(36).substr(2, 6),
|
|
837
856
|
sourceId: e,
|
|
@@ -853,7 +872,7 @@ function me(e, t, n = {}) {
|
|
|
853
872
|
...n
|
|
854
873
|
};
|
|
855
874
|
}
|
|
856
|
-
function
|
|
875
|
+
function ge(e, t = "horizontal", n = {}) {
|
|
857
876
|
return {
|
|
858
877
|
id: "swim_" + Date.now() + "_" + Math.random().toString(36).substr(2, 6),
|
|
859
878
|
name: e,
|
|
@@ -876,7 +895,7 @@ function he(e, t = "horizontal", n = {}) {
|
|
|
876
895
|
...n
|
|
877
896
|
};
|
|
878
897
|
}
|
|
879
|
-
function
|
|
898
|
+
function _e(e, t, n = {}) {
|
|
880
899
|
return {
|
|
881
900
|
id: "lane_" + Date.now() + "_" + Math.random().toString(36).substr(2, 6),
|
|
882
901
|
swimlaneId: e,
|
|
@@ -895,7 +914,7 @@ function ge(e, t, n = {}) {
|
|
|
895
914
|
...n
|
|
896
915
|
};
|
|
897
916
|
}
|
|
898
|
-
function
|
|
917
|
+
function ve(e = "process", n = null) {
|
|
899
918
|
let r = e === "process", i = [
|
|
900
919
|
"start",
|
|
901
920
|
"end",
|
|
@@ -958,7 +977,7 @@ function _e(e = "process", n = null) {
|
|
|
958
977
|
dataflow: o,
|
|
959
978
|
execution: s
|
|
960
979
|
}[g.value] || i;
|
|
961
|
-
return Object.fromEntries(e.map((e) => [e,
|
|
980
|
+
return Object.fromEntries(e.map((e) => [e, ue[e]]));
|
|
962
981
|
}), w = t(() => c.find((e) => e.id === d.value) || null), T = t(() => l.find((e) => e.id === f.value) || null), E = () => {
|
|
963
982
|
x.value.push(JSON.parse(JSON.stringify({
|
|
964
983
|
nodes: c,
|
|
@@ -985,23 +1004,23 @@ function _e(e = "process", n = null) {
|
|
|
985
1004
|
c.length = 0, l.length = 0, u.length = 0, c.push(...e.nodes), l.push(...e.edges), u.push(...e.swimlanes);
|
|
986
1005
|
}, k = (e, t, n, r) => {
|
|
987
1006
|
E();
|
|
988
|
-
let i =
|
|
1007
|
+
let i = Z(e, t, n, r);
|
|
989
1008
|
return c.push(i), i;
|
|
990
1009
|
}, A = (e, t, n) => {
|
|
991
1010
|
let r = l.find((n) => n.sourceId === e && n.targetId === t);
|
|
992
1011
|
if (r) return r;
|
|
993
1012
|
E();
|
|
994
|
-
let i =
|
|
1013
|
+
let i = he(e, t, n);
|
|
995
1014
|
return l.push(i), i;
|
|
996
1015
|
}, j = (e, t, n) => {
|
|
997
1016
|
E();
|
|
998
|
-
let r =
|
|
1017
|
+
let r = ge(e, t, n);
|
|
999
1018
|
return u.push(r), r;
|
|
1000
1019
|
}, M = (e, t, n) => {
|
|
1001
1020
|
E();
|
|
1002
1021
|
let r = u.find((t) => t.id === e);
|
|
1003
1022
|
if (!r) return null;
|
|
1004
|
-
let i = r.lanes?.reduce((e, t) => e + (t.width || 200), 0) || 0, a = r.lanes?.length || 0, o =
|
|
1023
|
+
let i = r.lanes?.reduce((e, t) => e + (t.width || 200), 0) || 0, a = r.lanes?.length || 0, o = _e(e, t, {
|
|
1005
1024
|
width: r.direction === "vertical" && a > 0 ? Math.floor(i / a) : 200,
|
|
1006
1025
|
...n
|
|
1007
1026
|
});
|
|
@@ -1052,28 +1071,28 @@ function _e(e = "process", n = null) {
|
|
|
1052
1071
|
c.forEach((r, i) => {
|
|
1053
1072
|
e === "vertical" ? (r.x = 300, r.y = n, n += r.height + t) : (r.x = 50 + i * (r.width + t), r.y = 200);
|
|
1054
1073
|
});
|
|
1055
|
-
},
|
|
1074
|
+
}, ee = (e) => {
|
|
1056
1075
|
switch (R(), e) {
|
|
1057
1076
|
case "approval":
|
|
1058
|
-
|
|
1077
|
+
q();
|
|
1059
1078
|
break;
|
|
1060
1079
|
case "execution":
|
|
1061
|
-
|
|
1080
|
+
te();
|
|
1062
1081
|
break;
|
|
1063
1082
|
case "dataflow":
|
|
1064
|
-
|
|
1083
|
+
J();
|
|
1065
1084
|
break;
|
|
1066
1085
|
case "business":
|
|
1067
|
-
|
|
1086
|
+
Y();
|
|
1068
1087
|
break;
|
|
1069
1088
|
case "h-swimlane":
|
|
1070
|
-
|
|
1089
|
+
ne();
|
|
1071
1090
|
break;
|
|
1072
1091
|
case "v-swimlane":
|
|
1073
|
-
|
|
1092
|
+
re();
|
|
1074
1093
|
break;
|
|
1075
1094
|
}
|
|
1076
|
-
},
|
|
1095
|
+
}, q = () => {
|
|
1077
1096
|
_.value = "审批流程";
|
|
1078
1097
|
let e = k("start", 300, 30), t = k("person", 290, 130);
|
|
1079
1098
|
t.label = "申请人";
|
|
@@ -1087,7 +1106,7 @@ function _e(e = "process", n = null) {
|
|
|
1087
1106
|
a.label = "系统通知";
|
|
1088
1107
|
let o = k("end", 300, 730);
|
|
1089
1108
|
A(e.id, t.id), A(t.id, n.id), A(n.id, r.id), A(r.id, i.id, { label: "否" }), A(r.id, a.id, { label: "是" }), A(i.id, a.id), A(a.id, o.id);
|
|
1090
|
-
},
|
|
1109
|
+
}, te = () => {
|
|
1091
1110
|
_.value = "程序执行流程";
|
|
1092
1111
|
let e = k("start", 300, 30), t = k("api", 260, 130);
|
|
1093
1112
|
t.label = "接收请求";
|
|
@@ -1103,7 +1122,7 @@ function _e(e = "process", n = null) {
|
|
|
1103
1122
|
o.label = "返回响应";
|
|
1104
1123
|
let s = k("end", 300, 850), c = k("code", 480, 370);
|
|
1105
1124
|
c.label = "返回错误码", A(e.id, t.id), A(t.id, n.id), A(n.id, r.id), A(r.id, i.id, { label: "是" }), A(r.id, c.id, { label: "否" }), A(i.id, a.id), A(a.id, o.id), A(o.id, s.id), A(c.id, s.id);
|
|
1106
|
-
},
|
|
1125
|
+
}, J = () => {
|
|
1107
1126
|
_.value = "数据流程图";
|
|
1108
1127
|
let e = k("start", 300, 30), t = k("data", 260, 130);
|
|
1109
1128
|
t.label = "数据源输入";
|
|
@@ -1119,7 +1138,7 @@ function _e(e = "process", n = null) {
|
|
|
1119
1138
|
o.label = "生成报表";
|
|
1120
1139
|
let s = k("end", 300, 890);
|
|
1121
1140
|
A(e.id, t.id), A(t.id, n.id), A(n.id, r.id), A(r.id, i.id), A(i.id, a.id, { label: "通过" }), A(a.id, o.id), A(o.id, s.id);
|
|
1122
|
-
},
|
|
1141
|
+
}, Y = () => {
|
|
1123
1142
|
_.value = "业务流程图";
|
|
1124
1143
|
let e = k("start", 300, 30);
|
|
1125
1144
|
e.label = "客户提交申请";
|
|
@@ -1143,7 +1162,7 @@ function _e(e = "process", n = null) {
|
|
|
1143
1162
|
l.label = "退回补正";
|
|
1144
1163
|
let u = k("annotation", 480, 610);
|
|
1145
1164
|
u.label = "驳回并说明原因", A(e.id, t.id), A(t.id, n.id), A(n.id, r.id), A(r.id, i.id, { label: "是" }), A(r.id, l.id, { label: "否" }), A(l.id, t.id), A(i.id, a.id), A(a.id, o.id, { label: "通过" }), A(a.id, u.id, { label: "驳回" }), A(u.id, c.id), A(o.id, s.id), A(s.id, c.id);
|
|
1146
|
-
},
|
|
1165
|
+
}, ne = () => {
|
|
1147
1166
|
_.value = "水平泳道图 - 订单处理";
|
|
1148
1167
|
let e = j("订单处理流程", "horizontal", {
|
|
1149
1168
|
width: 900,
|
|
@@ -1168,7 +1187,7 @@ function _e(e = "process", n = null) {
|
|
|
1168
1187
|
c.label = "安排物流";
|
|
1169
1188
|
let l = k("end", 460, 370);
|
|
1170
1189
|
l.label = "送达客户", A(t.id, n.id), A(n.id, r.id), A(r.id, i.id), A(i.id, a.id), A(a.id, o.id, { label: "有货" }), A(a.id, s.id, { label: "缺货" }), A(o.id, s.id), A(s.id, c.id), A(c.id, l.id);
|
|
1171
|
-
},
|
|
1190
|
+
}, re = () => {
|
|
1172
1191
|
_.value = "垂直泳道图 - 审批流程";
|
|
1173
1192
|
let e = j("审批流程", "vertical", {
|
|
1174
1193
|
width: 750,
|
|
@@ -1194,8 +1213,8 @@ function _e(e = "process", n = null) {
|
|
|
1194
1213
|
};
|
|
1195
1214
|
return {
|
|
1196
1215
|
NODE_TYPES: C,
|
|
1197
|
-
ANIMATION_TYPES:
|
|
1198
|
-
LINE_STYLES:
|
|
1216
|
+
ANIMATION_TYPES: de,
|
|
1217
|
+
LINE_STYLES: fe,
|
|
1199
1218
|
nodes: c,
|
|
1200
1219
|
edges: l,
|
|
1201
1220
|
swimlanes: u,
|
|
@@ -1232,14 +1251,14 @@ function _e(e = "process", n = null) {
|
|
|
1232
1251
|
toJSON: W,
|
|
1233
1252
|
fromJSON: G,
|
|
1234
1253
|
autoLayout: K,
|
|
1235
|
-
loadTemplate:
|
|
1236
|
-
createNode:
|
|
1237
|
-
createEdge:
|
|
1238
|
-
PROCESS_TYPE_LABELS:
|
|
1239
|
-
EXECUTION_TYPE_LABELS:
|
|
1240
|
-
THEMES:
|
|
1241
|
-
ANIMATIONS:
|
|
1242
|
-
EDGE_ANIMATIONS:
|
|
1254
|
+
loadTemplate: ee,
|
|
1255
|
+
createNode: Z,
|
|
1256
|
+
createEdge: he,
|
|
1257
|
+
PROCESS_TYPE_LABELS: pe,
|
|
1258
|
+
EXECUTION_TYPE_LABELS: me,
|
|
1259
|
+
THEMES: X,
|
|
1260
|
+
ANIMATIONS: oe,
|
|
1261
|
+
EDGE_ANIMATIONS: se
|
|
1243
1262
|
};
|
|
1244
1263
|
}
|
|
1245
1264
|
//#endregion
|
|
@@ -1248,22 +1267,22 @@ var Q = (e, t) => {
|
|
|
1248
1267
|
let n = e.__vccOpts || e;
|
|
1249
1268
|
for (let [e, r] of t) n[e] = r;
|
|
1250
1269
|
return n;
|
|
1251
|
-
},
|
|
1270
|
+
}, ye = { class: "chat-header" }, be = { class: "chat-header-left" }, xe = { class: "chat-title" }, Se = { class: "online-users-list" }, Ce = { class: "online-user-item" }, we = { class: "online-user-name" }, $ = { key: 1 }, Te = { class: "online-user-name" }, Ee = { class: "chat-header-right" }, De = {
|
|
1252
1271
|
key: 0,
|
|
1253
1272
|
class: "chat-empty"
|
|
1254
|
-
},
|
|
1273
|
+
}, Oe = { class: "chat-empty-hint" }, ke = { key: 1 }, Ae = { class: "message-content" }, je = {
|
|
1255
1274
|
key: 0,
|
|
1256
1275
|
class: "message-meta"
|
|
1257
|
-
},
|
|
1276
|
+
}, Me = {
|
|
1258
1277
|
key: 0,
|
|
1259
1278
|
class: "message-mention"
|
|
1260
|
-
},
|
|
1279
|
+
}, Ne = ["innerHTML"], Pe = { class: "message-time" }, Fe = {
|
|
1261
1280
|
key: 1,
|
|
1262
1281
|
class: "chat-message chat-message-ai"
|
|
1263
|
-
},
|
|
1282
|
+
}, Ie = { class: "message-avatar ai" }, Le = { class: "chat-input-area" }, Re = {
|
|
1264
1283
|
key: 0,
|
|
1265
1284
|
class: "mention-popup"
|
|
1266
|
-
},
|
|
1285
|
+
}, ze = ["onClick", "onMouseenter"], Be = { key: 1 }, Ve = /*#__PURE__*/ Q({
|
|
1267
1286
|
__name: "AiChatPanel",
|
|
1268
1287
|
props: {
|
|
1269
1288
|
visible: {
|
|
@@ -1345,7 +1364,7 @@ var Q = (e, t) => {
|
|
|
1345
1364
|
}, G = (e) => {
|
|
1346
1365
|
let t = h.value.slice(0, M), n = h.value.slice(M + j.length + 1);
|
|
1347
1366
|
h.value = `${t}@${e.name} ${n}`, w.value = !1;
|
|
1348
|
-
},
|
|
1367
|
+
}, ee = (e) => {
|
|
1349
1368
|
if (e) {
|
|
1350
1369
|
if (e.shiftKey) return;
|
|
1351
1370
|
if (w.value) {
|
|
@@ -1365,19 +1384,19 @@ var Q = (e, t) => {
|
|
|
1365
1384
|
e && (n = e[1]);
|
|
1366
1385
|
}
|
|
1367
1386
|
d("send", t, { mentionedUser: n }), h.value = "", w.value = !1;
|
|
1368
|
-
},
|
|
1387
|
+
}, q = () => {
|
|
1369
1388
|
f(() => {
|
|
1370
1389
|
g.value && (g.value.scrollTop = g.value.scrollHeight);
|
|
1371
1390
|
});
|
|
1372
1391
|
};
|
|
1373
|
-
return E(() => u.messages.length,
|
|
1392
|
+
return E(() => u.messages.length, q), E(() => u.messages, q, { deep: !0 }), (t, l) => {
|
|
1374
1393
|
let u = x("el-icon"), f = x("el-tag"), y = x("el-popover"), E = x("el-button"), j = x("el-input");
|
|
1375
1394
|
return o.visible ? (_(), i("div", {
|
|
1376
1395
|
key: 0,
|
|
1377
1396
|
class: "ai-chat-panel",
|
|
1378
1397
|
style: m({ width: o.panelWidth + "px" })
|
|
1379
1398
|
}, [
|
|
1380
|
-
a("div",
|
|
1399
|
+
a("div", ye, [a("div", be, [
|
|
1381
1400
|
c(u, {
|
|
1382
1401
|
size: 18,
|
|
1383
1402
|
color: "#409EFF"
|
|
@@ -1385,7 +1404,7 @@ var Q = (e, t) => {
|
|
|
1385
1404
|
default: D(() => [c(C(K))]),
|
|
1386
1405
|
_: 1
|
|
1387
1406
|
}),
|
|
1388
|
-
a("span",
|
|
1407
|
+
a("span", xe, S(o.isCollab ? "协作聊天" : "AI 助手"), 1),
|
|
1389
1408
|
o.isCollab ? (_(), n(y, {
|
|
1390
1409
|
key: 0,
|
|
1391
1410
|
width: 200,
|
|
@@ -1401,12 +1420,12 @@ var Q = (e, t) => {
|
|
|
1401
1420
|
default: D(() => [s(S(F.value) + "人在线 ", 1)]),
|
|
1402
1421
|
_: 1
|
|
1403
1422
|
})]),
|
|
1404
|
-
default: D(() => [a("div",
|
|
1423
|
+
default: D(() => [a("div", Se, [a("div", Ce, [
|
|
1405
1424
|
a("div", {
|
|
1406
1425
|
class: "online-user-avatar",
|
|
1407
1426
|
style: m({ background: o.currentUser.color || "#409EFF" })
|
|
1408
1427
|
}, S((o.currentUser.name || "U").charAt(0)), 5),
|
|
1409
|
-
a("span",
|
|
1428
|
+
a("span", we, S(o.currentUser.name || "我"), 1),
|
|
1410
1429
|
c(f, {
|
|
1411
1430
|
size: "small",
|
|
1412
1431
|
type: o.isOwner ? "warning" : "success",
|
|
@@ -1430,8 +1449,8 @@ var Q = (e, t) => {
|
|
|
1430
1449
|
}, {
|
|
1431
1450
|
default: D(() => [c(C(K))]),
|
|
1432
1451
|
_: 1
|
|
1433
|
-
})) : (_(), i("span",
|
|
1434
|
-
a("span",
|
|
1452
|
+
})) : (_(), i("span", $, S((e.name || "U").charAt(0)), 1))], 4),
|
|
1453
|
+
a("span", Te, S(e.name || "未知用户"), 1),
|
|
1435
1454
|
e.isAi ? (_(), n(f, {
|
|
1436
1455
|
key: 0,
|
|
1437
1456
|
size: "small",
|
|
@@ -1454,7 +1473,7 @@ var Q = (e, t) => {
|
|
|
1454
1473
|
]))), 128))])]),
|
|
1455
1474
|
_: 1
|
|
1456
1475
|
})) : r("", !0)
|
|
1457
|
-
]), a("div",
|
|
1476
|
+
]), a("div", Ee, [
|
|
1458
1477
|
o.isCollab && o.unreadMention ? (_(), i("div", {
|
|
1459
1478
|
key: 0,
|
|
1460
1479
|
class: "mention-bell",
|
|
@@ -1499,7 +1518,7 @@ var Q = (e, t) => {
|
|
|
1499
1518
|
ref_key: "messagesRef",
|
|
1500
1519
|
ref: g
|
|
1501
1520
|
}, [
|
|
1502
|
-
o.messages.length === 0 ? (_(), i("div",
|
|
1521
|
+
o.messages.length === 0 ? (_(), i("div", De, [
|
|
1503
1522
|
c(u, {
|
|
1504
1523
|
size: 40,
|
|
1505
1524
|
color: "#c0c4cc"
|
|
@@ -1508,7 +1527,7 @@ var Q = (e, t) => {
|
|
|
1508
1527
|
_: 1
|
|
1509
1528
|
}),
|
|
1510
1529
|
a("p", null, S(o.isCollab ? "协作聊天室" : "你好!我是 AI 助手"), 1),
|
|
1511
|
-
a("p",
|
|
1530
|
+
a("p", Oe, S(o.isCollab ? "与团队成员和AI助手实时聊天" : "可以问我任何关于文档编辑的问题"), 1)
|
|
1512
1531
|
])) : r("", !0),
|
|
1513
1532
|
(_(!0), i(e, null, b(o.messages, (e) => (_(), i("div", {
|
|
1514
1533
|
key: e._msgId || e.time + e.content,
|
|
@@ -1522,18 +1541,18 @@ var Q = (e, t) => {
|
|
|
1522
1541
|
}, {
|
|
1523
1542
|
default: D(() => [c(C(K))]),
|
|
1524
1543
|
_: 1
|
|
1525
|
-
})) : (_(), i("span",
|
|
1526
|
-
o.isCollab && e.role === "user" ? (_(), i("div",
|
|
1544
|
+
})) : (_(), i("span", ke, S(R(e)), 1))], 4), a("div", Ae, [
|
|
1545
|
+
o.isCollab && e.role === "user" ? (_(), i("div", je, [a("span", {
|
|
1527
1546
|
class: "message-sender",
|
|
1528
1547
|
style: m({ color: e.user_color || "#67C23A" })
|
|
1529
|
-
}, S(e.user_name || "用户"), 5), e.mentioned_user ? (_(), i("span",
|
|
1548
|
+
}, S(e.user_name || "用户"), 5), e.mentioned_user ? (_(), i("span", Me, "@" + S(e.mentioned_user), 1)) : r("", !0)])) : r("", !0),
|
|
1530
1549
|
a("div", {
|
|
1531
1550
|
class: "message-text",
|
|
1532
1551
|
innerHTML: e.content
|
|
1533
|
-
}, null, 8,
|
|
1534
|
-
a("div",
|
|
1552
|
+
}, null, 8, Ne),
|
|
1553
|
+
a("div", Pe, S(e.time), 1)
|
|
1535
1554
|
])], 2))), 128)),
|
|
1536
|
-
o.loading ? (_(), i("div",
|
|
1555
|
+
o.loading ? (_(), i("div", Fe, [a("div", Ie, [c(u, { size: 16 }, {
|
|
1537
1556
|
default: D(() => [c(C(K))]),
|
|
1538
1557
|
_: 1
|
|
1539
1558
|
})]), l[7] ||= a("div", { class: "message-content" }, [a("div", { class: "message-text typing-indicator" }, [
|
|
@@ -1542,7 +1561,7 @@ var Q = (e, t) => {
|
|
|
1542
1561
|
a("span")
|
|
1543
1562
|
])], -1)])) : r("", !0)
|
|
1544
1563
|
], 512),
|
|
1545
|
-
a("div",
|
|
1564
|
+
a("div", Le, [a("div", {
|
|
1546
1565
|
class: "chat-input-wrapper",
|
|
1547
1566
|
ref_key: "inputWrapperRef",
|
|
1548
1567
|
ref: v
|
|
@@ -1557,7 +1576,7 @@ var Q = (e, t) => {
|
|
|
1557
1576
|
},
|
|
1558
1577
|
placeholder: o.isCollab ? "输入消息... @提及成员" : "输入消息...",
|
|
1559
1578
|
onKeydown: [
|
|
1560
|
-
k(A(
|
|
1579
|
+
k(A(ee, ["exact"]), ["enter"]),
|
|
1561
1580
|
k(A(V, ["prevent"]), ["down"]),
|
|
1562
1581
|
k(A(W, ["prevent"]), ["up"])
|
|
1563
1582
|
],
|
|
@@ -1568,7 +1587,7 @@ var Q = (e, t) => {
|
|
|
1568
1587
|
"placeholder",
|
|
1569
1588
|
"onKeydown"
|
|
1570
1589
|
]),
|
|
1571
|
-
w.value ? (_(), i("div",
|
|
1590
|
+
w.value ? (_(), i("div", Re, [(_(!0), i(e, null, b(T.value, (e, t) => (_(), i("div", {
|
|
1572
1591
|
key: e.id || e.clientId,
|
|
1573
1592
|
class: p(["mention-item", { active: t === O.value }]),
|
|
1574
1593
|
onClick: (t) => G(e),
|
|
@@ -1582,16 +1601,16 @@ var Q = (e, t) => {
|
|
|
1582
1601
|
}, {
|
|
1583
1602
|
default: D(() => [c(C(K))]),
|
|
1584
1603
|
_: 1
|
|
1585
|
-
})) : (_(), i("span",
|
|
1604
|
+
})) : (_(), i("span", Be, S((e.name || "U").charAt(0)), 1))], 4), a("span", null, S(e.name), 1)], 42, ze))), 128))])) : r("", !0),
|
|
1586
1605
|
c(E, {
|
|
1587
1606
|
class: "send-btn",
|
|
1588
1607
|
type: "primary",
|
|
1589
1608
|
circle: "",
|
|
1590
1609
|
disabled: !h.value.trim() || o.loading,
|
|
1591
|
-
onClick:
|
|
1610
|
+
onClick: ee
|
|
1592
1611
|
}, {
|
|
1593
1612
|
default: D(() => [c(u, null, {
|
|
1594
|
-
default: D(() => [c(C(
|
|
1613
|
+
default: D(() => [c(C(te))]),
|
|
1595
1614
|
_: 1
|
|
1596
1615
|
})]),
|
|
1597
1616
|
_: 1
|
|
@@ -1603,7 +1622,7 @@ var Q = (e, t) => {
|
|
|
1603
1622
|
}, [["__scopeId", "data-v-01960100"]]);
|
|
1604
1623
|
//#endregion
|
|
1605
1624
|
//#region ../../src/composables/useChat.js
|
|
1606
|
-
function
|
|
1625
|
+
function He() {
|
|
1607
1626
|
let e = y([]), t = y(!1), n = y(!1), r = y([]), i = y({
|
|
1608
1627
|
id: "",
|
|
1609
1628
|
name: "",
|
|
@@ -1751,7 +1770,7 @@ function Ve() {
|
|
|
1751
1770
|
}
|
|
1752
1771
|
//#endregion
|
|
1753
1772
|
//#region ../../src/composables/useVersionHistory.js
|
|
1754
|
-
var
|
|
1773
|
+
var Ue = "/api/document-versions", We = 5e3, Ge = () => {
|
|
1755
1774
|
let e = y([]), t = y(!1);
|
|
1756
1775
|
return {
|
|
1757
1776
|
versions: e,
|
|
@@ -1759,13 +1778,13 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
1759
1778
|
saveVersion: async ({ documentId: e, docType: t, content: n, userId: r, userName: i }) => {
|
|
1760
1779
|
if (!e || !t || !n) return null;
|
|
1761
1780
|
try {
|
|
1762
|
-
let { data: a } = await F.post(
|
|
1781
|
+
let { data: a } = await F.post(Ue, {
|
|
1763
1782
|
document_id: e,
|
|
1764
1783
|
doc_type: t,
|
|
1765
1784
|
content: typeof n == "string" ? n : JSON.stringify(n),
|
|
1766
1785
|
user_id: r || null,
|
|
1767
1786
|
user_name: i || null
|
|
1768
|
-
}, { timeout:
|
|
1787
|
+
}, { timeout: We });
|
|
1769
1788
|
return a;
|
|
1770
1789
|
} catch (e) {
|
|
1771
1790
|
return console.warn("[useVersionHistory] Failed to save version:", e), null;
|
|
@@ -1775,9 +1794,9 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
1775
1794
|
if (!n) return [];
|
|
1776
1795
|
t.value = !0;
|
|
1777
1796
|
try {
|
|
1778
|
-
let { data: t } = await F.get(
|
|
1797
|
+
let { data: t } = await F.get(Ue, {
|
|
1779
1798
|
params: { document_id: n },
|
|
1780
|
-
timeout:
|
|
1799
|
+
timeout: We
|
|
1781
1800
|
});
|
|
1782
1801
|
return e.value = t, t;
|
|
1783
1802
|
} catch (t) {
|
|
@@ -1788,26 +1807,26 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
1788
1807
|
},
|
|
1789
1808
|
getVersionContent: async (e) => {
|
|
1790
1809
|
try {
|
|
1791
|
-
let { data: t } = await F.get(`${
|
|
1810
|
+
let { data: t } = await F.get(`${Ue}/${e}`, { timeout: We });
|
|
1792
1811
|
return t;
|
|
1793
1812
|
} catch (e) {
|
|
1794
1813
|
return console.warn("[useVersionHistory] Failed to get version content:", e), null;
|
|
1795
1814
|
}
|
|
1796
1815
|
}
|
|
1797
1816
|
};
|
|
1798
|
-
},
|
|
1817
|
+
}, Ke = { class: "version-history-panel" }, qe = {
|
|
1799
1818
|
key: 0,
|
|
1800
1819
|
class: "loading-state"
|
|
1801
|
-
},
|
|
1820
|
+
}, Je = {
|
|
1802
1821
|
key: 1,
|
|
1803
1822
|
class: "empty-state"
|
|
1804
|
-
},
|
|
1823
|
+
}, Ye = {
|
|
1805
1824
|
key: 2,
|
|
1806
1825
|
class: "version-list"
|
|
1807
|
-
},
|
|
1826
|
+
}, Xe = {
|
|
1808
1827
|
key: 0,
|
|
1809
1828
|
class: "current-version"
|
|
1810
|
-
},
|
|
1829
|
+
}, Ze = { class: "current-version-header" }, Qe = { class: "version-number" }, $e = ["onClick"], et = { class: "version-number" }, tt = { class: "version-user" }, nt = { class: "panel-footer" }, rt = /*#__PURE__*/ Q({
|
|
1811
1830
|
__name: "VersionHistoryPanel",
|
|
1812
1831
|
props: {
|
|
1813
1832
|
modelValue: {
|
|
@@ -1821,7 +1840,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
1821
1840
|
},
|
|
1822
1841
|
emits: ["update:modelValue", "apply"],
|
|
1823
1842
|
setup(t, { expose: o, emit: l }) {
|
|
1824
|
-
let u = t, d = l, { versions: f, loading: m, loadVersions: h, getVersionContent: g } =
|
|
1843
|
+
let u = t, d = l, { versions: f, loading: m, loadVersions: h, getVersionContent: g } = Ge(), v = y(!1), w = y(null), T = y(!1), O = y(null);
|
|
1825
1844
|
E(() => u.modelValue, (e) => {
|
|
1826
1845
|
v.value = e, e && u.documentId && (w.value = null, h(u.documentId).then((e) => {
|
|
1827
1846
|
e && e.length > 0 && (O.value = e[0]);
|
|
@@ -1858,7 +1877,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
1858
1877
|
size: "420px",
|
|
1859
1878
|
"before-close": j
|
|
1860
1879
|
}, {
|
|
1861
|
-
footer: D(() => [a("div",
|
|
1880
|
+
footer: D(() => [a("div", nt, [c(g, {
|
|
1862
1881
|
type: "primary",
|
|
1863
1882
|
disabled: !w.value,
|
|
1864
1883
|
loading: T.value,
|
|
@@ -1867,22 +1886,22 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
1867
1886
|
default: D(() => [...o[4] ||= [s(" 切换到此版本 ", -1)]]),
|
|
1868
1887
|
_: 1
|
|
1869
1888
|
}, 8, ["disabled", "loading"])])]),
|
|
1870
|
-
default: D(() => [a("div",
|
|
1889
|
+
default: D(() => [a("div", Ke, [C(m) ? (_(), i("div", qe, [c(l, { class: "is-loading" }, {
|
|
1871
1890
|
default: D(() => [c(C(G))]),
|
|
1872
1891
|
_: 1
|
|
1873
|
-
}), o[1] ||= a("span", null, "加载中...", -1)])) : C(f).length === 0 ? (_(), i("div",
|
|
1892
|
+
}), o[1] ||= a("span", null, "加载中...", -1)])) : C(f).length === 0 ? (_(), i("div", Je, [c(l, {
|
|
1874
1893
|
size: 48,
|
|
1875
1894
|
color: "#c0c4cc"
|
|
1876
1895
|
}, {
|
|
1877
1896
|
default: D(() => [c(C(V))]),
|
|
1878
1897
|
_: 1
|
|
1879
|
-
}), o[2] ||= a("p", null, "暂无历史版本", -1)])) : (_(), i("div",
|
|
1898
|
+
}), o[2] ||= a("p", null, "暂无历史版本", -1)])) : (_(), i("div", Ye, [O.value ? (_(), i("div", Xe, [a("div", Ze, [c(u, {
|
|
1880
1899
|
type: "success",
|
|
1881
1900
|
size: "small"
|
|
1882
1901
|
}, {
|
|
1883
1902
|
default: D(() => [...o[3] ||= [s("当前版本", -1)]]),
|
|
1884
1903
|
_: 1
|
|
1885
|
-
}), a("span",
|
|
1904
|
+
}), a("span", Qe, "v" + S(O.value.version_number), 1)])])) : r("", !0), c(h, null, {
|
|
1886
1905
|
default: D(() => [(_(!0), i(e, null, b(C(f), (e) => (_(), n(d, {
|
|
1887
1906
|
key: e.id,
|
|
1888
1907
|
timestamp: M(e.created_at),
|
|
@@ -1893,7 +1912,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
1893
1912
|
default: D(() => [a("div", {
|
|
1894
1913
|
class: p(["version-item", { active: w.value?.id === e.id }]),
|
|
1895
1914
|
onClick: (t) => k(e)
|
|
1896
|
-
}, [a("span",
|
|
1915
|
+
}, [a("span", et, "版本号:v" + S(e.version_number), 1), a("span", tt, "提交人:" + S(e.user_name || "未知用户"), 1)], 10, $e)]),
|
|
1897
1916
|
_: 2
|
|
1898
1917
|
}, 1032, [
|
|
1899
1918
|
"timestamp",
|
|
@@ -1906,77 +1925,77 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
1906
1925
|
}, 8, ["modelValue"]);
|
|
1907
1926
|
};
|
|
1908
1927
|
}
|
|
1909
|
-
}, [["__scopeId", "data-v-87924b7c"]]),
|
|
1928
|
+
}, [["__scopeId", "data-v-87924b7c"]]), it = { class: "node-palette" }, at = { class: "palette-header" }, ot = { class: "palette-search" }, st = { class: "palette-list" }, ct = ["onDragstart"], lt = {
|
|
1910
1929
|
key: 0,
|
|
1911
1930
|
width: "24",
|
|
1912
1931
|
height: "24",
|
|
1913
1932
|
viewBox: "0 0 24 24"
|
|
1914
|
-
},
|
|
1933
|
+
}, ut = {
|
|
1915
1934
|
key: 1,
|
|
1916
1935
|
width: "24",
|
|
1917
1936
|
height: "24",
|
|
1918
1937
|
viewBox: "0 0 24 24"
|
|
1919
|
-
},
|
|
1938
|
+
}, dt = ["fill"], ft = {
|
|
1920
1939
|
key: 2,
|
|
1921
1940
|
width: "24",
|
|
1922
1941
|
height: "24",
|
|
1923
1942
|
viewBox: "0 0 24 24"
|
|
1924
|
-
},
|
|
1943
|
+
}, pt = ["fill"], mt = {
|
|
1925
1944
|
key: 3,
|
|
1926
1945
|
width: "24",
|
|
1927
1946
|
height: "24",
|
|
1928
1947
|
viewBox: "0 0 24 24"
|
|
1929
|
-
},
|
|
1948
|
+
}, ht = ["fill"], gt = ["stroke"], _t = {
|
|
1930
1949
|
key: 4,
|
|
1931
1950
|
width: "24",
|
|
1932
1951
|
height: "24",
|
|
1933
1952
|
viewBox: "0 0 24 24"
|
|
1934
|
-
},
|
|
1953
|
+
}, vt = ["fill"], yt = ["fill"], bt = {
|
|
1935
1954
|
key: 5,
|
|
1936
1955
|
width: "24",
|
|
1937
1956
|
height: "24",
|
|
1938
1957
|
viewBox: "0 0 24 24"
|
|
1939
|
-
},
|
|
1958
|
+
}, xt = ["fill"], St = {
|
|
1940
1959
|
key: 6,
|
|
1941
1960
|
width: "24",
|
|
1942
1961
|
height: "24",
|
|
1943
1962
|
viewBox: "0 0 24 24"
|
|
1944
|
-
},
|
|
1963
|
+
}, Ct = ["fill"], wt = {
|
|
1945
1964
|
key: 7,
|
|
1946
1965
|
width: "24",
|
|
1947
1966
|
height: "24",
|
|
1948
1967
|
viewBox: "0 0 24 24"
|
|
1949
|
-
},
|
|
1968
|
+
}, Tt = ["fill"], Et = {
|
|
1950
1969
|
key: 8,
|
|
1951
1970
|
width: "24",
|
|
1952
1971
|
height: "24",
|
|
1953
1972
|
viewBox: "0 0 24 24"
|
|
1954
|
-
},
|
|
1973
|
+
}, Dt = ["fill"], Ot = {
|
|
1955
1974
|
key: 9,
|
|
1956
1975
|
width: "24",
|
|
1957
1976
|
height: "24",
|
|
1958
1977
|
viewBox: "0 0 24 24"
|
|
1959
|
-
},
|
|
1978
|
+
}, kt = ["fill"], At = {
|
|
1960
1979
|
key: 10,
|
|
1961
1980
|
width: "24",
|
|
1962
1981
|
height: "24",
|
|
1963
1982
|
viewBox: "0 0 24 24"
|
|
1964
|
-
},
|
|
1983
|
+
}, jt = ["fill"], Mt = ["fill"], Nt = {
|
|
1965
1984
|
key: 11,
|
|
1966
1985
|
width: "24",
|
|
1967
1986
|
height: "24",
|
|
1968
1987
|
viewBox: "0 0 24 24"
|
|
1969
|
-
},
|
|
1988
|
+
}, Pt = ["fill"], Ft = ["fill"], It = {
|
|
1970
1989
|
key: 12,
|
|
1971
1990
|
width: "24",
|
|
1972
1991
|
height: "24",
|
|
1973
1992
|
viewBox: "0 0 24 24"
|
|
1974
|
-
},
|
|
1993
|
+
}, Lt = ["fill"], Rt = {
|
|
1975
1994
|
key: 13,
|
|
1976
1995
|
width: "24",
|
|
1977
1996
|
height: "24",
|
|
1978
1997
|
viewBox: "0 0 24 24"
|
|
1979
|
-
},
|
|
1998
|
+
}, zt = ["fill"], Bt = { class: "palette-label" }, Vt = /*#__PURE__*/ Q({
|
|
1980
1999
|
__name: "NodePalette",
|
|
1981
2000
|
props: {
|
|
1982
2001
|
NODE_TYPES: {
|
|
@@ -1990,68 +2009,73 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
1990
2009
|
typeDisabled: {
|
|
1991
2010
|
type: Boolean,
|
|
1992
2011
|
default: !1
|
|
2012
|
+
},
|
|
2013
|
+
showTypeSelector: {
|
|
2014
|
+
type: Boolean,
|
|
2015
|
+
default: !0
|
|
1993
2016
|
}
|
|
1994
2017
|
},
|
|
1995
2018
|
emits: ["set-type"],
|
|
1996
|
-
setup(
|
|
1997
|
-
let
|
|
1998
|
-
if (!
|
|
1999
|
-
let e =
|
|
2000
|
-
for (let [n, r] of Object.entries(
|
|
2019
|
+
setup(o, { emit: l }) {
|
|
2020
|
+
let u = o, d = y(""), f = t(() => {
|
|
2021
|
+
if (!d.value) return u.NODE_TYPES;
|
|
2022
|
+
let e = d.value.toLowerCase(), t = {};
|
|
2023
|
+
for (let [n, r] of Object.entries(u.NODE_TYPES)) (r.label.toLowerCase().includes(e) || r.desc && r.desc.toLowerCase().includes(e)) && (t[n] = r);
|
|
2001
2024
|
return t;
|
|
2002
|
-
}),
|
|
2025
|
+
}), p = (e, t) => {
|
|
2003
2026
|
e.dataTransfer.setData("node-type", t), e.dataTransfer.effectAllowed = "copy";
|
|
2004
2027
|
};
|
|
2005
|
-
return (t,
|
|
2006
|
-
let
|
|
2007
|
-
return _(), i("div",
|
|
2008
|
-
a("div",
|
|
2028
|
+
return (t, l) => {
|
|
2029
|
+
let u = x("el-icon"), h = x("el-button"), g = x("el-dropdown-item"), v = x("el-dropdown-menu"), y = x("el-dropdown"), w = x("el-input"), T = x("el-tooltip");
|
|
2030
|
+
return _(), i("div", it, [
|
|
2031
|
+
a("div", at, [l[6] ||= a("h4", null, "组件库", -1), o.showTypeSelector ? (_(), n(y, {
|
|
2032
|
+
key: 0,
|
|
2009
2033
|
trigger: "click",
|
|
2010
|
-
onCommand:
|
|
2034
|
+
onCommand: l[0] ||= (e) => t.$emit("set-type", e),
|
|
2011
2035
|
size: "small"
|
|
2012
2036
|
}, {
|
|
2013
|
-
dropdown: D(() => [c(
|
|
2037
|
+
dropdown: D(() => [c(v, null, {
|
|
2014
2038
|
default: D(() => [
|
|
2015
|
-
c(
|
|
2016
|
-
default: D(() => [...
|
|
2039
|
+
c(g, { command: "flow" }, {
|
|
2040
|
+
default: D(() => [...l[2] ||= [s("业务流程图", -1)]]),
|
|
2017
2041
|
_: 1
|
|
2018
2042
|
}),
|
|
2019
|
-
c(
|
|
2020
|
-
default: D(() => [...
|
|
2043
|
+
c(g, { command: "approval" }, {
|
|
2044
|
+
default: D(() => [...l[3] ||= [s("审批流程图", -1)]]),
|
|
2021
2045
|
_: 1
|
|
2022
2046
|
}),
|
|
2023
|
-
c(
|
|
2024
|
-
default: D(() => [...
|
|
2047
|
+
c(g, { command: "execution" }, {
|
|
2048
|
+
default: D(() => [...l[4] ||= [s("执行流程图", -1)]]),
|
|
2025
2049
|
_: 1
|
|
2026
2050
|
}),
|
|
2027
|
-
c(
|
|
2028
|
-
default: D(() => [...
|
|
2051
|
+
c(g, { command: "dataflow" }, {
|
|
2052
|
+
default: D(() => [...l[5] ||= [s("数据流程图", -1)]]),
|
|
2029
2053
|
_: 1
|
|
2030
2054
|
})
|
|
2031
2055
|
]),
|
|
2032
2056
|
_: 1
|
|
2033
2057
|
})]),
|
|
2034
|
-
default: D(() => [c(
|
|
2058
|
+
default: D(() => [c(h, {
|
|
2035
2059
|
size: "small",
|
|
2036
|
-
disabled:
|
|
2060
|
+
disabled: o.typeDisabled
|
|
2037
2061
|
}, {
|
|
2038
|
-
default: D(() => [s(S(
|
|
2062
|
+
default: D(() => [s(S(o.diagramTypeLabel) + " ", 1), c(u, null, {
|
|
2039
2063
|
default: D(() => [c(C(R))]),
|
|
2040
2064
|
_: 1
|
|
2041
2065
|
})]),
|
|
2042
2066
|
_: 1
|
|
2043
2067
|
}, 8, ["disabled"])]),
|
|
2044
2068
|
_: 1
|
|
2045
|
-
})]),
|
|
2046
|
-
a("div",
|
|
2069
|
+
})) : r("", !0)]),
|
|
2070
|
+
a("div", ot, [c(w, {
|
|
2047
2071
|
size: "small",
|
|
2048
|
-
modelValue:
|
|
2049
|
-
"onUpdate:modelValue":
|
|
2072
|
+
modelValue: d.value,
|
|
2073
|
+
"onUpdate:modelValue": l[1] ||= (e) => d.value = e,
|
|
2050
2074
|
placeholder: "搜索...",
|
|
2051
2075
|
clearable: "",
|
|
2052
2076
|
"prefix-icon": "Search"
|
|
2053
2077
|
}, null, 8, ["modelValue"])]),
|
|
2054
|
-
a("div",
|
|
2078
|
+
a("div", st, [(_(!0), i(e, null, b(f.value, (e, t) => (_(), n(T, {
|
|
2055
2079
|
key: t,
|
|
2056
2080
|
content: e.desc || e.label,
|
|
2057
2081
|
placement: "right",
|
|
@@ -2061,11 +2085,11 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
2061
2085
|
default: D(() => [a("div", {
|
|
2062
2086
|
class: "palette-item",
|
|
2063
2087
|
draggable: "true",
|
|
2064
|
-
onDragstart: (e) =>
|
|
2088
|
+
onDragstart: (e) => p(e, t)
|
|
2065
2089
|
}, [a("div", {
|
|
2066
2090
|
class: "palette-icon",
|
|
2067
2091
|
style: m({ background: e.color })
|
|
2068
|
-
}, [t === "custom" ? (_(), i("svg",
|
|
2092
|
+
}, [t === "custom" ? (_(), i("svg", lt, [...l[7] ||= [
|
|
2069
2093
|
a("rect", {
|
|
2070
2094
|
x: "3",
|
|
2071
2095
|
y: "3",
|
|
@@ -2093,7 +2117,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
2093
2117
|
stroke: "#909399",
|
|
2094
2118
|
"stroke-width": "1.5"
|
|
2095
2119
|
}, null, -1)
|
|
2096
|
-
]])) : e.shape === "ellipse" ? (_(), i("svg",
|
|
2120
|
+
]])) : e.shape === "ellipse" ? (_(), i("svg", ut, [a("ellipse", {
|
|
2097
2121
|
cx: "12",
|
|
2098
2122
|
cy: "12",
|
|
2099
2123
|
rx: "10",
|
|
@@ -2101,22 +2125,22 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
2101
2125
|
fill: e.color,
|
|
2102
2126
|
stroke: "#fff",
|
|
2103
2127
|
"stroke-width": "1"
|
|
2104
|
-
}, null, 8,
|
|
2128
|
+
}, null, 8, dt)])) : e.shape === "diamond" ? (_(), i("svg", ft, [a("polygon", {
|
|
2105
2129
|
points: "12,2 22,12 12,22 2,12",
|
|
2106
2130
|
fill: e.color,
|
|
2107
2131
|
stroke: "#fff",
|
|
2108
2132
|
"stroke-width": "1"
|
|
2109
|
-
}, null, 8,
|
|
2133
|
+
}, null, 8, pt)])) : e.shape === "person" ? (_(), i("svg", mt, [a("circle", {
|
|
2110
2134
|
cx: "12",
|
|
2111
2135
|
cy: "8",
|
|
2112
2136
|
r: "4",
|
|
2113
2137
|
fill: e.color
|
|
2114
|
-
}, null, 8,
|
|
2138
|
+
}, null, 8, ht), a("path", {
|
|
2115
2139
|
d: "M4 22 Q12 14 20 22",
|
|
2116
2140
|
fill: "none",
|
|
2117
2141
|
stroke: e.color,
|
|
2118
2142
|
"stroke-width": "2"
|
|
2119
|
-
}, null, 8,
|
|
2143
|
+
}, null, 8, gt)])) : e.shape === "cylinder" ? (_(), i("svg", _t, [
|
|
2120
2144
|
a("ellipse", {
|
|
2121
2145
|
cx: "12",
|
|
2122
2146
|
cy: "7",
|
|
@@ -2125,21 +2149,21 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
2125
2149
|
fill: e.color,
|
|
2126
2150
|
stroke: "#fff",
|
|
2127
2151
|
"stroke-width": "0.5"
|
|
2128
|
-
}, null, 8,
|
|
2152
|
+
}, null, 8, vt),
|
|
2129
2153
|
a("rect", {
|
|
2130
2154
|
x: "3",
|
|
2131
2155
|
y: "7",
|
|
2132
2156
|
width: "18",
|
|
2133
2157
|
height: "10",
|
|
2134
2158
|
fill: e.color
|
|
2135
|
-
}, null, 8,
|
|
2136
|
-
|
|
2159
|
+
}, null, 8, yt),
|
|
2160
|
+
l[8] ||= a("path", {
|
|
2137
2161
|
d: "M3 7 Q3 17 12 17 Q21 17 21 7",
|
|
2138
2162
|
fill: "none",
|
|
2139
2163
|
stroke: "#fff",
|
|
2140
2164
|
"stroke-width": "0.5"
|
|
2141
2165
|
}, null, -1),
|
|
2142
|
-
|
|
2166
|
+
l[9] ||= a("ellipse", {
|
|
2143
2167
|
cx: "12",
|
|
2144
2168
|
cy: "7",
|
|
2145
2169
|
rx: "9",
|
|
@@ -2148,12 +2172,12 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
2148
2172
|
stroke: "#fff",
|
|
2149
2173
|
"stroke-width": "1"
|
|
2150
2174
|
}, null, -1)
|
|
2151
|
-
])) : e.shape === "hexagon" ? (_(), i("svg",
|
|
2175
|
+
])) : e.shape === "hexagon" ? (_(), i("svg", bt, [a("polygon", {
|
|
2152
2176
|
points: "7,2 17,2 22,12 17,22 7,22 2,12",
|
|
2153
2177
|
fill: e.color,
|
|
2154
2178
|
stroke: "#fff",
|
|
2155
2179
|
"stroke-width": "1"
|
|
2156
|
-
}, null, 8,
|
|
2180
|
+
}, null, 8, xt)])) : e.shape === "timer" ? (_(), i("svg", St, [
|
|
2157
2181
|
a("circle", {
|
|
2158
2182
|
cx: "12",
|
|
2159
2183
|
cy: "12",
|
|
@@ -2161,8 +2185,8 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
2161
2185
|
fill: e.color,
|
|
2162
2186
|
stroke: "#fff",
|
|
2163
2187
|
"stroke-width": "1"
|
|
2164
|
-
}, null, 8,
|
|
2165
|
-
|
|
2188
|
+
}, null, 8, Ct),
|
|
2189
|
+
l[10] ||= a("line", {
|
|
2166
2190
|
x1: "12",
|
|
2167
2191
|
y1: "12",
|
|
2168
2192
|
x2: "12",
|
|
@@ -2171,7 +2195,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
2171
2195
|
"stroke-width": "1.5",
|
|
2172
2196
|
"stroke-linecap": "round"
|
|
2173
2197
|
}, null, -1),
|
|
2174
|
-
|
|
2198
|
+
l[11] ||= a("line", {
|
|
2175
2199
|
x1: "12",
|
|
2176
2200
|
y1: "12",
|
|
2177
2201
|
x2: "16",
|
|
@@ -2180,7 +2204,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
2180
2204
|
"stroke-width": "1",
|
|
2181
2205
|
"stroke-linecap": "round"
|
|
2182
2206
|
}, null, -1)
|
|
2183
|
-
])) : e.shape === "subprocess" ? (_(), i("svg",
|
|
2207
|
+
])) : e.shape === "subprocess" ? (_(), i("svg", wt, [a("rect", {
|
|
2184
2208
|
x: "2",
|
|
2185
2209
|
y: "4",
|
|
2186
2210
|
width: "20",
|
|
@@ -2189,44 +2213,44 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
2189
2213
|
fill: e.color,
|
|
2190
2214
|
stroke: "#fff",
|
|
2191
2215
|
"stroke-width": "1"
|
|
2192
|
-
}, null, 8,
|
|
2216
|
+
}, null, 8, Tt), l[12] ||= a("rect", {
|
|
2193
2217
|
x: "4",
|
|
2194
2218
|
y: "16",
|
|
2195
2219
|
width: "16",
|
|
2196
2220
|
height: "2",
|
|
2197
2221
|
rx: "1",
|
|
2198
2222
|
fill: "rgba(255,255,255,0.4)"
|
|
2199
|
-
}, null, -1)])) : e.shape === "document" ? (_(), i("svg",
|
|
2223
|
+
}, null, -1)])) : e.shape === "document" ? (_(), i("svg", Et, [a("path", {
|
|
2200
2224
|
d: "M4 2 H20 V16 Q15 13 12 16 Q9 19 4 16 Z",
|
|
2201
2225
|
fill: e.color,
|
|
2202
2226
|
stroke: "#fff",
|
|
2203
2227
|
"stroke-width": "1"
|
|
2204
|
-
}, null, 8,
|
|
2228
|
+
}, null, 8, Dt)])) : e.shape === "parallelogram" ? (_(), i("svg", Ot, [a("polygon", {
|
|
2205
2229
|
points: "5,4 22,4 19,20 2,20",
|
|
2206
2230
|
fill: e.color,
|
|
2207
2231
|
stroke: "#fff",
|
|
2208
2232
|
"stroke-width": "1"
|
|
2209
|
-
}, null, 8,
|
|
2233
|
+
}, null, 8, kt)])) : e.shape === "folder" ? (_(), i("svg", At, [a("path", {
|
|
2210
2234
|
d: "M2 8 H22 V21 H2 Z",
|
|
2211
2235
|
fill: e.color,
|
|
2212
2236
|
stroke: "#fff",
|
|
2213
2237
|
"stroke-width": "0.5"
|
|
2214
|
-
}, null, 8,
|
|
2238
|
+
}, null, 8, jt), a("path", {
|
|
2215
2239
|
d: "M2 8 V5 H9 L11 8",
|
|
2216
2240
|
fill: e.color,
|
|
2217
2241
|
stroke: "#fff",
|
|
2218
2242
|
"stroke-width": "1"
|
|
2219
|
-
}, null, 8,
|
|
2243
|
+
}, null, 8, Mt)])) : e.shape === "note" ? (_(), i("svg", Nt, [a("path", {
|
|
2220
2244
|
d: "M2 2 H22 V18 L18 22 H2 Z",
|
|
2221
2245
|
fill: e.color,
|
|
2222
2246
|
stroke: "#fff",
|
|
2223
2247
|
"stroke-width": "0.5"
|
|
2224
|
-
}, null, 8,
|
|
2248
|
+
}, null, 8, Pt), a("path", {
|
|
2225
2249
|
d: "M18 18 V22 L22 18",
|
|
2226
2250
|
fill: e.color,
|
|
2227
2251
|
stroke: "#fff",
|
|
2228
2252
|
"stroke-width": "0.5"
|
|
2229
|
-
}, null, 8,
|
|
2253
|
+
}, null, 8, Ft)])) : e.shape === "rounded闪电" ? (_(), i("svg", It, [a("rect", {
|
|
2230
2254
|
x: "2",
|
|
2231
2255
|
y: "6",
|
|
2232
2256
|
width: "20",
|
|
@@ -2235,11 +2259,11 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
2235
2259
|
fill: e.color,
|
|
2236
2260
|
stroke: "#fff",
|
|
2237
2261
|
"stroke-width": "1"
|
|
2238
|
-
}, null, 8,
|
|
2262
|
+
}, null, 8, Lt), l[13] ||= a("path", {
|
|
2239
2263
|
d: "M14 8 L10 12 H13 L11 16 L15 12 H12 Z",
|
|
2240
2264
|
fill: "#fff",
|
|
2241
2265
|
opacity: "0.9"
|
|
2242
|
-
}, null, -1)])) : (_(), i("svg",
|
|
2266
|
+
}, null, -1)])) : (_(), i("svg", Rt, [a("rect", {
|
|
2243
2267
|
x: "2",
|
|
2244
2268
|
y: "4",
|
|
2245
2269
|
width: "20",
|
|
@@ -2248,16 +2272,22 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
2248
2272
|
fill: e.color,
|
|
2249
2273
|
stroke: "#fff",
|
|
2250
2274
|
"stroke-width": "1"
|
|
2251
|
-
}, null, 8,
|
|
2275
|
+
}, null, 8, zt)]))], 4), a("span", Bt, S(e.label), 1)], 40, ct)]),
|
|
2252
2276
|
_: 2
|
|
2253
2277
|
}, 1032, ["content"]))), 128))])
|
|
2254
2278
|
]);
|
|
2255
2279
|
};
|
|
2256
2280
|
}
|
|
2257
|
-
}, [["__scopeId", "data-v-
|
|
2281
|
+
}, [["__scopeId", "data-v-ccb25fe4"]]), Ht = { class: "process-toolbar" }, Ut = {
|
|
2258
2282
|
key: 0,
|
|
2259
2283
|
class: "toolbar-group"
|
|
2260
|
-
}, Wt = {
|
|
2284
|
+
}, Wt = {
|
|
2285
|
+
key: 1,
|
|
2286
|
+
class: "toolbar-group"
|
|
2287
|
+
}, Gt = {
|
|
2288
|
+
key: 2,
|
|
2289
|
+
class: "toolbar-group"
|
|
2290
|
+
}, Kt = { class: "toolbar-group" }, qt = { class: "toolbar-group" }, Jt = { class: "toolbar-group" }, Yt = { class: "toolbar-group" }, Xt = { class: "toolbar-group" }, Zt = /*#__PURE__*/ Q({
|
|
2261
2291
|
__name: "ProcessToolbar",
|
|
2262
2292
|
props: {
|
|
2263
2293
|
animationPlaying: {
|
|
@@ -2287,6 +2317,14 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
2287
2317
|
showHistory: {
|
|
2288
2318
|
type: Boolean,
|
|
2289
2319
|
default: !1
|
|
2320
|
+
},
|
|
2321
|
+
showTemplateSelector: {
|
|
2322
|
+
type: Boolean,
|
|
2323
|
+
default: !0
|
|
2324
|
+
},
|
|
2325
|
+
showSwimlaneSelector: {
|
|
2326
|
+
type: Boolean,
|
|
2327
|
+
default: !0
|
|
2290
2328
|
}
|
|
2291
2329
|
},
|
|
2292
2330
|
emits: [
|
|
@@ -2317,8 +2355,8 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
2317
2355
|
};
|
|
2318
2356
|
return (t, o) => {
|
|
2319
2357
|
let h = x("ArrowDown"), g = x("el-icon"), v = x("el-button"), y = x("el-dropdown-item"), b = x("el-dropdown-menu"), w = x("el-dropdown"), T = x("RefreshLeft"), E = x("RefreshRight"), O = x("Grid"), k = x("el-option"), A = x("el-select"), j = x("Delete"), M = x("Check"), N = x("Clock"), P = x("el-input"), F = x("el-dialog");
|
|
2320
|
-
return _(), i("div",
|
|
2321
|
-
|
|
2358
|
+
return _(), i("div", Ht, [
|
|
2359
|
+
e.showTemplateSelector ? (_(), i("div", Ut, [c(w, {
|
|
2322
2360
|
trigger: "click",
|
|
2323
2361
|
onCommand: o[0] ||= (e) => t.$emit("set-template", e),
|
|
2324
2362
|
size: "small"
|
|
@@ -2363,15 +2401,15 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
2363
2401
|
_: 1
|
|
2364
2402
|
}, 8, ["disabled"])]),
|
|
2365
2403
|
_: 1
|
|
2366
|
-
})]),
|
|
2367
|
-
e.isJoinedCollab ? r("", !0) : (_(), i("div",
|
|
2404
|
+
})])) : r("", !0),
|
|
2405
|
+
e.isJoinedCollab ? r("", !0) : (_(), i("div", Wt, [c(v, {
|
|
2368
2406
|
size: "small",
|
|
2369
2407
|
type: e.isCollaborating ? "success" : "default",
|
|
2370
2408
|
onClick: o[1] ||= (n) => e.isCollaborating ? t.$emit("stop-collab") : t.$emit("start-collab"),
|
|
2371
2409
|
title: "协作"
|
|
2372
2410
|
}, {
|
|
2373
2411
|
default: D(() => [c(g, null, {
|
|
2374
|
-
default: D(() => [c(C(
|
|
2412
|
+
default: D(() => [c(C(Y))]),
|
|
2375
2413
|
_: 1
|
|
2376
2414
|
}), a("span", null, S(e.isCollaborating ? "协作中" : "协作"), 1)]),
|
|
2377
2415
|
_: 1
|
|
@@ -2388,7 +2426,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
2388
2426
|
})]),
|
|
2389
2427
|
_: 1
|
|
2390
2428
|
})) : r("", !0)])),
|
|
2391
|
-
|
|
2429
|
+
e.showSwimlaneSelector ? (_(), i("div", Gt, [c(w, {
|
|
2392
2430
|
trigger: "click",
|
|
2393
2431
|
onCommand: p
|
|
2394
2432
|
}, {
|
|
@@ -2410,8 +2448,8 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
2410
2448
|
_: 1
|
|
2411
2449
|
})]),
|
|
2412
2450
|
_: 1
|
|
2413
|
-
})]),
|
|
2414
|
-
a("div",
|
|
2451
|
+
})])) : r("", !0),
|
|
2452
|
+
a("div", Kt, [c(v, {
|
|
2415
2453
|
size: "small",
|
|
2416
2454
|
circle: "",
|
|
2417
2455
|
onClick: o[3] ||= (e) => t.$emit("undo"),
|
|
@@ -2436,7 +2474,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
2436
2474
|
})]),
|
|
2437
2475
|
_: 1
|
|
2438
2476
|
}, 8, ["disabled"])]),
|
|
2439
|
-
a("div",
|
|
2477
|
+
a("div", qt, [
|
|
2440
2478
|
c(v, {
|
|
2441
2479
|
size: "small",
|
|
2442
2480
|
onClick: o[5] ||= (e) => t.$emit("auto-layout"),
|
|
@@ -2480,7 +2518,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
2480
2518
|
_: 1
|
|
2481
2519
|
}, 8, ["modelValue"])
|
|
2482
2520
|
]),
|
|
2483
|
-
a("div",
|
|
2521
|
+
a("div", Jt, [c(w, {
|
|
2484
2522
|
trigger: "click",
|
|
2485
2523
|
onCommand: m
|
|
2486
2524
|
}, {
|
|
@@ -2525,7 +2563,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
2525
2563
|
default: D(() => [...o[33] ||= [s(" 导入 ", -1)]]),
|
|
2526
2564
|
_: 1
|
|
2527
2565
|
}, 8, ["disabled"])]),
|
|
2528
|
-
a("div",
|
|
2566
|
+
a("div", Yt, [c(v, {
|
|
2529
2567
|
size: "small",
|
|
2530
2568
|
onClick: o[10] ||= (e) => t.$emit("clear"),
|
|
2531
2569
|
disabled: e.disabled,
|
|
@@ -2552,7 +2590,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
2552
2590
|
_: 1
|
|
2553
2591
|
})]),
|
|
2554
2592
|
o[38] ||= a("div", { class: "toolbar-spacer" }, null, -1),
|
|
2555
|
-
a("div",
|
|
2593
|
+
a("div", Xt, [c(v, {
|
|
2556
2594
|
size: "small",
|
|
2557
2595
|
type: "primary",
|
|
2558
2596
|
onClick: o[12] ||= (e) => t.$emit("save")
|
|
@@ -2610,16 +2648,16 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
2610
2648
|
]);
|
|
2611
2649
|
};
|
|
2612
2650
|
}
|
|
2613
|
-
}, [["__scopeId", "data-v-
|
|
2651
|
+
}, [["__scopeId", "data-v-655606b2"]]), Qt = ["transform"], $t = { key: 0 }, en = ["id"], tn = ["offset", "stop-color"], nn = [
|
|
2614
2652
|
"width",
|
|
2615
2653
|
"height",
|
|
2616
2654
|
"rx"
|
|
2617
|
-
],
|
|
2655
|
+
], rn = [
|
|
2618
2656
|
"width",
|
|
2619
2657
|
"height",
|
|
2620
2658
|
"rx",
|
|
2621
2659
|
"stroke"
|
|
2622
|
-
],
|
|
2660
|
+
], an = [
|
|
2623
2661
|
"width",
|
|
2624
2662
|
"height",
|
|
2625
2663
|
"rx",
|
|
@@ -2627,19 +2665,19 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
2627
2665
|
"stroke-width",
|
|
2628
2666
|
"stroke-dasharray",
|
|
2629
2667
|
"filter"
|
|
2630
|
-
],
|
|
2668
|
+
], on = [
|
|
2631
2669
|
"x1",
|
|
2632
2670
|
"y1",
|
|
2633
2671
|
"x2",
|
|
2634
2672
|
"y2",
|
|
2635
2673
|
"stroke"
|
|
2636
|
-
],
|
|
2674
|
+
], sn = [
|
|
2637
2675
|
"x1",
|
|
2638
2676
|
"y1",
|
|
2639
2677
|
"x2",
|
|
2640
2678
|
"y2",
|
|
2641
2679
|
"stroke"
|
|
2642
|
-
],
|
|
2680
|
+
], cn = [
|
|
2643
2681
|
"width",
|
|
2644
2682
|
"height",
|
|
2645
2683
|
"rx",
|
|
@@ -2647,11 +2685,11 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
2647
2685
|
"stroke",
|
|
2648
2686
|
"stroke-width",
|
|
2649
2687
|
"filter"
|
|
2650
|
-
],
|
|
2688
|
+
], ln = [
|
|
2651
2689
|
"href",
|
|
2652
2690
|
"width",
|
|
2653
2691
|
"height"
|
|
2654
|
-
],
|
|
2692
|
+
], un = [
|
|
2655
2693
|
"cx",
|
|
2656
2694
|
"cy",
|
|
2657
2695
|
"rx",
|
|
@@ -2660,41 +2698,41 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
2660
2698
|
"stroke",
|
|
2661
2699
|
"stroke-width",
|
|
2662
2700
|
"filter"
|
|
2663
|
-
],
|
|
2701
|
+
], dn = [
|
|
2664
2702
|
"points",
|
|
2665
2703
|
"fill",
|
|
2666
2704
|
"stroke",
|
|
2667
2705
|
"stroke-width",
|
|
2668
2706
|
"filter"
|
|
2669
|
-
],
|
|
2707
|
+
], fn = { key: 10 }, pn = [
|
|
2670
2708
|
"cx",
|
|
2671
2709
|
"fill",
|
|
2672
2710
|
"stroke",
|
|
2673
2711
|
"stroke-width",
|
|
2674
2712
|
"filter"
|
|
2675
|
-
],
|
|
2713
|
+
], mn = ["d", "stroke"], hn = [
|
|
2676
2714
|
"x1",
|
|
2677
2715
|
"x2",
|
|
2678
2716
|
"stroke"
|
|
2679
|
-
],
|
|
2717
|
+
], gn = [
|
|
2680
2718
|
"x1",
|
|
2681
2719
|
"x2",
|
|
2682
2720
|
"stroke"
|
|
2683
|
-
],
|
|
2721
|
+
], _n = [
|
|
2684
2722
|
"x1",
|
|
2685
2723
|
"x2",
|
|
2686
2724
|
"stroke"
|
|
2687
|
-
],
|
|
2725
|
+
], vn = [
|
|
2688
2726
|
"x1",
|
|
2689
2727
|
"x2",
|
|
2690
2728
|
"y2",
|
|
2691
2729
|
"stroke"
|
|
2692
|
-
],
|
|
2730
|
+
], yn = [
|
|
2693
2731
|
"x1",
|
|
2694
2732
|
"x2",
|
|
2695
2733
|
"y2",
|
|
2696
2734
|
"stroke"
|
|
2697
|
-
],
|
|
2735
|
+
], bn = { key: 11 }, xn = [
|
|
2698
2736
|
"width",
|
|
2699
2737
|
"height",
|
|
2700
2738
|
"rx",
|
|
@@ -2702,47 +2740,47 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
2702
2740
|
"stroke",
|
|
2703
2741
|
"stroke-width",
|
|
2704
2742
|
"filter"
|
|
2705
|
-
],
|
|
2743
|
+
], Sn = ["y", "width"], Cn = { key: 12 }, wn = [
|
|
2706
2744
|
"d",
|
|
2707
2745
|
"fill",
|
|
2708
2746
|
"stroke",
|
|
2709
2747
|
"stroke-width",
|
|
2710
2748
|
"filter"
|
|
2711
|
-
],
|
|
2749
|
+
], Tn = { key: 13 }, En = [
|
|
2712
2750
|
"points",
|
|
2713
2751
|
"fill",
|
|
2714
2752
|
"stroke",
|
|
2715
2753
|
"stroke-width",
|
|
2716
2754
|
"filter"
|
|
2717
|
-
],
|
|
2755
|
+
], Dn = { key: 14 }, On = [
|
|
2718
2756
|
"d",
|
|
2719
2757
|
"fill",
|
|
2720
2758
|
"stroke",
|
|
2721
2759
|
"stroke-width",
|
|
2722
2760
|
"filter"
|
|
2723
|
-
],
|
|
2761
|
+
], kn = [
|
|
2724
2762
|
"d",
|
|
2725
2763
|
"fill",
|
|
2726
2764
|
"stroke",
|
|
2727
2765
|
"stroke-width"
|
|
2728
|
-
],
|
|
2766
|
+
], An = { key: 15 }, jn = [
|
|
2729
2767
|
"d",
|
|
2730
2768
|
"fill",
|
|
2731
2769
|
"stroke",
|
|
2732
2770
|
"stroke-width",
|
|
2733
2771
|
"filter"
|
|
2734
|
-
],
|
|
2772
|
+
], Mn = [
|
|
2735
2773
|
"d",
|
|
2736
2774
|
"fill",
|
|
2737
2775
|
"stroke",
|
|
2738
2776
|
"stroke-width"
|
|
2739
|
-
],
|
|
2777
|
+
], Nn = { key: 16 }, Pn = [
|
|
2740
2778
|
"d",
|
|
2741
2779
|
"fill",
|
|
2742
2780
|
"stroke",
|
|
2743
2781
|
"stroke-width",
|
|
2744
2782
|
"filter"
|
|
2745
|
-
],
|
|
2783
|
+
], Fn = [
|
|
2746
2784
|
"cx",
|
|
2747
2785
|
"cy",
|
|
2748
2786
|
"rx",
|
|
@@ -2750,18 +2788,18 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
2750
2788
|
"fill",
|
|
2751
2789
|
"stroke",
|
|
2752
2790
|
"stroke-width"
|
|
2753
|
-
],
|
|
2791
|
+
], In = [
|
|
2754
2792
|
"cx",
|
|
2755
2793
|
"cy",
|
|
2756
2794
|
"rx",
|
|
2757
2795
|
"ry"
|
|
2758
|
-
],
|
|
2796
|
+
], Ln = { key: 17 }, Rn = [
|
|
2759
2797
|
"points",
|
|
2760
2798
|
"fill",
|
|
2761
2799
|
"stroke",
|
|
2762
2800
|
"stroke-width",
|
|
2763
2801
|
"filter"
|
|
2764
|
-
],
|
|
2802
|
+
], zn = { key: 18 }, Bn = [
|
|
2765
2803
|
"cx",
|
|
2766
2804
|
"cy",
|
|
2767
2805
|
"r",
|
|
@@ -2769,21 +2807,21 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
2769
2807
|
"stroke",
|
|
2770
2808
|
"stroke-width",
|
|
2771
2809
|
"filter"
|
|
2772
|
-
],
|
|
2810
|
+
], Vn = [
|
|
2773
2811
|
"cx",
|
|
2774
2812
|
"cy",
|
|
2775
2813
|
"r"
|
|
2776
|
-
],
|
|
2814
|
+
], Hn = [
|
|
2777
2815
|
"x1",
|
|
2778
2816
|
"y1",
|
|
2779
2817
|
"x2",
|
|
2780
2818
|
"y2"
|
|
2781
|
-
],
|
|
2819
|
+
], Un = [
|
|
2782
2820
|
"x1",
|
|
2783
2821
|
"y1",
|
|
2784
2822
|
"x2",
|
|
2785
2823
|
"y2"
|
|
2786
|
-
],
|
|
2824
|
+
], Wn = ["cx", "cy"], Gn = { key: 19 }, Kn = [
|
|
2787
2825
|
"width",
|
|
2788
2826
|
"height",
|
|
2789
2827
|
"rx",
|
|
@@ -2791,7 +2829,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
2791
2829
|
"stroke",
|
|
2792
2830
|
"stroke-width",
|
|
2793
2831
|
"filter"
|
|
2794
|
-
],
|
|
2832
|
+
], qn = ["d"], Jn = [
|
|
2795
2833
|
"width",
|
|
2796
2834
|
"height",
|
|
2797
2835
|
"rx",
|
|
@@ -2799,22 +2837,22 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
2799
2837
|
"stroke",
|
|
2800
2838
|
"stroke-width",
|
|
2801
2839
|
"filter"
|
|
2802
|
-
],
|
|
2840
|
+
], Yn = [
|
|
2803
2841
|
"width",
|
|
2804
2842
|
"height",
|
|
2805
2843
|
"rx",
|
|
2806
2844
|
"stroke"
|
|
2807
|
-
],
|
|
2845
|
+
], Xn = [
|
|
2808
2846
|
"width",
|
|
2809
2847
|
"height",
|
|
2810
2848
|
"rx",
|
|
2811
2849
|
"stroke"
|
|
2812
|
-
],
|
|
2850
|
+
], Zn = [
|
|
2813
2851
|
"width",
|
|
2814
2852
|
"height",
|
|
2815
2853
|
"rx",
|
|
2816
2854
|
"stroke"
|
|
2817
|
-
],
|
|
2855
|
+
], Qn = [
|
|
2818
2856
|
"x",
|
|
2819
2857
|
"y",
|
|
2820
2858
|
"text-anchor",
|
|
@@ -2822,14 +2860,14 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
2822
2860
|
"fill",
|
|
2823
2861
|
"font-size",
|
|
2824
2862
|
"transform"
|
|
2825
|
-
],
|
|
2863
|
+
], $n = {
|
|
2826
2864
|
key: 0,
|
|
2827
2865
|
class: "resize-handles"
|
|
2828
|
-
},
|
|
2866
|
+
}, er = [
|
|
2829
2867
|
"x",
|
|
2830
2868
|
"y",
|
|
2831
2869
|
"onMousedown"
|
|
2832
|
-
],
|
|
2870
|
+
], tr = ["cx", "cy"], nr = ["cx", "cy"], rr = /*#__PURE__*/ Q({
|
|
2833
2871
|
__name: "DiagramNode",
|
|
2834
2872
|
props: {
|
|
2835
2873
|
node: {
|
|
@@ -2874,7 +2912,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
2874
2912
|
"hover-remark"
|
|
2875
2913
|
],
|
|
2876
2914
|
setup(n, { expose: o, emit: s }) {
|
|
2877
|
-
let c = n, l = s, u = y(null), d = y(!1), f = null, h = !1, g = null, v = null, x = t(() => c.connectMode || c.autoConnectMode), C = t(() =>
|
|
2915
|
+
let c = n, l = s, u = y(null), d = y(!1), f = null, h = !1, g = null, v = null, x = t(() => c.connectMode || c.autoConnectMode), C = t(() => X[c.theme] || X.classic), w = () => ({
|
|
2878
2916
|
"#67c23a": "success",
|
|
2879
2917
|
"#909399": "info",
|
|
2880
2918
|
"#409eff": "primary",
|
|
@@ -2963,13 +3001,13 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
2963
3001
|
return r = Math.round(d(p, f, c + 1 / 3) * 255), i = Math.round(d(p, f, c) * 255), a = Math.round(d(p, f, c - 1 / 3) * 255), `rgb(${r}, ${i}, ${a})`;
|
|
2964
3002
|
}
|
|
2965
3003
|
let j = t(() => T.value.type === "gradient" ? `url(#grad-${c.node.id})` : (T.value.type, T.value.color)), M = t(() => {
|
|
2966
|
-
let e =
|
|
3004
|
+
let e = ce(c.theme, c.selected, c.node.strokeColor), t = c.node.strokeWidth === void 0 ? e.width : c.node.strokeWidth, n = e.sketch ? "4,2" : "none";
|
|
2967
3005
|
return {
|
|
2968
3006
|
...e,
|
|
2969
3007
|
width: t,
|
|
2970
3008
|
dasharray: n
|
|
2971
3009
|
};
|
|
2972
|
-
}), N = t(() => c.theme === "neon" ? "#ffffff" : c.node.textColor), P = t(() =>
|
|
3010
|
+
}), N = t(() => c.theme === "neon" ? "#ffffff" : c.node.textColor), P = t(() => le(c.theme)), F = t(() => {
|
|
2973
3011
|
let e = c.node.labelPosition || "center", t = c.node.width, n = c.node.height;
|
|
2974
3012
|
switch (e) {
|
|
2975
3013
|
case "top": return {
|
|
@@ -3129,14 +3167,14 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
3129
3167
|
d.value = !1, f &&= (clearTimeout(f), null);
|
|
3130
3168
|
}, K = () => {
|
|
3131
3169
|
d.value = !1, G();
|
|
3132
|
-
},
|
|
3170
|
+
}, ee = () => {
|
|
3133
3171
|
(c.connectMode || c.autoConnectMode) && l("end-connect", h ? null : c.node.id);
|
|
3134
|
-
},
|
|
3172
|
+
}, q = () => {
|
|
3135
3173
|
l("select", c.node.id);
|
|
3136
|
-
},
|
|
3174
|
+
}, te = () => {
|
|
3137
3175
|
g &&= (g(), null);
|
|
3138
|
-
},
|
|
3139
|
-
|
|
3176
|
+
}, J = (e, t) => {
|
|
3177
|
+
te();
|
|
3140
3178
|
let n = t.clientX, r = t.clientY, i = c.node.width, a = c.node.height, o = (t) => {
|
|
3141
3179
|
let o = t.clientX - n, s = t.clientY - r, u = Math.max(60, i + o * e.dx), d = Math.max(30, a + s * e.dy);
|
|
3142
3180
|
l("resize", c.node.id, u, d);
|
|
@@ -3148,7 +3186,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
3148
3186
|
}, window.addEventListener("mousemove", o), window.addEventListener("mouseup", s);
|
|
3149
3187
|
};
|
|
3150
3188
|
return E(() => c.selected, (e) => {
|
|
3151
|
-
e || (
|
|
3189
|
+
e || (te(), U());
|
|
3152
3190
|
}), o({ clearAutoConnect: K }), (t, o) => (_(), i("g", {
|
|
3153
3191
|
class: p(["diagram-node", {
|
|
3154
3192
|
selected: n.selected,
|
|
@@ -3160,8 +3198,8 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
3160
3198
|
cursor: n.connectMode || n.autoConnectMode ? "crosshair" : "move"
|
|
3161
3199
|
}),
|
|
3162
3200
|
onMousedown: A(W, ["stop"]),
|
|
3163
|
-
onMouseup: A(
|
|
3164
|
-
onClick: A(
|
|
3201
|
+
onMouseup: A(ee, ["stop"]),
|
|
3202
|
+
onClick: A(q, ["stop"]),
|
|
3165
3203
|
onDblclick: o[0] ||= (e) => t.$emit("select", n.node.id),
|
|
3166
3204
|
onContextmenu: o[1] ||= A((e) => t.$emit("reset-state"), ["prevent"]),
|
|
3167
3205
|
onMouseenter: o[2] ||= (e) => t.$emit("hover-remark", {
|
|
@@ -3179,7 +3217,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
3179
3217
|
class: p(["node-shape", `anim-${n.node.animation}`]),
|
|
3180
3218
|
style: m(z.value)
|
|
3181
3219
|
}, [
|
|
3182
|
-
T.value.type === "gradient" ? (_(), i("defs",
|
|
3220
|
+
T.value.type === "gradient" ? (_(), i("defs", $t, [a("linearGradient", {
|
|
3183
3221
|
id: `grad-${n.node.id}`,
|
|
3184
3222
|
x1: "0%",
|
|
3185
3223
|
y1: "0%",
|
|
@@ -3189,7 +3227,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
3189
3227
|
key: t,
|
|
3190
3228
|
offset: `${t / (T.value.colors.length - 1) * 100}%`,
|
|
3191
3229
|
"stop-color": e
|
|
3192
|
-
}, null, 8,
|
|
3230
|
+
}, null, 8, tn))), 128))], 8, en)])) : r("", !0),
|
|
3193
3231
|
C.value.nodeStyle.glassHighlight ? (_(), i(e, { key: 1 }, [n.node.shape === "rect" ? (_(), i("rect", {
|
|
3194
3232
|
key: 0,
|
|
3195
3233
|
width: n.node.width,
|
|
@@ -3197,7 +3235,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
3197
3235
|
rx: C.value.nodeStyle.borderRadius,
|
|
3198
3236
|
fill: "rgba(255,255,255,0.15)",
|
|
3199
3237
|
style: { "pointer-events": "none" }
|
|
3200
|
-
}, null, 8,
|
|
3238
|
+
}, null, 8, nn)) : r("", !0)], 64)) : r("", !0),
|
|
3201
3239
|
C.value.nodeStyle.glowEffect && n.selected ? (_(), i(e, { key: 2 }, [n.node.shape === "rect" ? (_(), i("rect", {
|
|
3202
3240
|
key: 0,
|
|
3203
3241
|
x: -4,
|
|
@@ -3210,7 +3248,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
3210
3248
|
"stroke-width": 3,
|
|
3211
3249
|
filter: "url(#neon-glow-strong)",
|
|
3212
3250
|
class: "glow-rect"
|
|
3213
|
-
}, null, 8,
|
|
3251
|
+
}, null, 8, rn)) : r("", !0)], 64)) : r("", !0),
|
|
3214
3252
|
n.node.type === "custom" && (n.selected || n.node.strokeWidth > 0) ? (_(), i("rect", {
|
|
3215
3253
|
key: 3,
|
|
3216
3254
|
width: n.node.width,
|
|
@@ -3221,7 +3259,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
3221
3259
|
"stroke-width": n.selected ? 3 : n.node.strokeWidth,
|
|
3222
3260
|
"stroke-dasharray": n.node.strokeWidth > 0 ? "8,4" : "none",
|
|
3223
3261
|
filter: `url(#${P.value})`
|
|
3224
|
-
}, null, 8,
|
|
3262
|
+
}, null, 8, an)) : r("", !0),
|
|
3225
3263
|
n.node.type === "custom" && (n.selected || n.node.strokeWidth > 0) ? (_(), i("line", {
|
|
3226
3264
|
key: 4,
|
|
3227
3265
|
x1: n.node.width / 2,
|
|
@@ -3230,7 +3268,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
3230
3268
|
y2: n.node.height * .7,
|
|
3231
3269
|
stroke: n.selected ? "#409eff" : "#909399",
|
|
3232
3270
|
"stroke-width": "2"
|
|
3233
|
-
}, null, 8,
|
|
3271
|
+
}, null, 8, on)) : r("", !0),
|
|
3234
3272
|
n.node.type === "custom" && (n.selected || n.node.strokeWidth > 0) ? (_(), i("line", {
|
|
3235
3273
|
key: 5,
|
|
3236
3274
|
x1: n.node.width * .3,
|
|
@@ -3239,7 +3277,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
3239
3277
|
y2: n.node.height / 2,
|
|
3240
3278
|
stroke: n.selected ? "#409eff" : "#909399",
|
|
3241
3279
|
"stroke-width": "2"
|
|
3242
|
-
}, null, 8,
|
|
3280
|
+
}, null, 8, sn)) : n.node.shape === "rect" ? (_(), i("rect", {
|
|
3243
3281
|
key: 6,
|
|
3244
3282
|
width: n.node.width,
|
|
3245
3283
|
height: n.node.height,
|
|
@@ -3248,7 +3286,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
3248
3286
|
stroke: M.value.color,
|
|
3249
3287
|
"stroke-width": n.selected ? 3 : M.value.width,
|
|
3250
3288
|
filter: `url(#${P.value})`
|
|
3251
|
-
}, null, 8,
|
|
3289
|
+
}, null, 8, cn)) : r("", !0),
|
|
3252
3290
|
n.node.type === "custom" && n.node.image ? (_(), i("image", {
|
|
3253
3291
|
key: 7,
|
|
3254
3292
|
href: n.node.image,
|
|
@@ -3256,7 +3294,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
3256
3294
|
height: n.node.height,
|
|
3257
3295
|
preserveAspectRatio: "none",
|
|
3258
3296
|
style: { "pointer-events": "none" }
|
|
3259
|
-
}, null, 8,
|
|
3297
|
+
}, null, 8, ln)) : n.node.shape === "ellipse" ? (_(), i("ellipse", {
|
|
3260
3298
|
key: 8,
|
|
3261
3299
|
cx: n.node.width / 2,
|
|
3262
3300
|
cy: n.node.height / 2,
|
|
@@ -3266,14 +3304,14 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
3266
3304
|
stroke: M.value.color,
|
|
3267
3305
|
"stroke-width": n.selected ? 3 : M.value.width,
|
|
3268
3306
|
filter: `url(#${P.value})`
|
|
3269
|
-
}, null, 8,
|
|
3307
|
+
}, null, 8, un)) : n.node.shape === "diamond" ? (_(), i("polygon", {
|
|
3270
3308
|
key: 9,
|
|
3271
3309
|
points: I.value,
|
|
3272
3310
|
fill: j.value,
|
|
3273
3311
|
stroke: M.value.color,
|
|
3274
3312
|
"stroke-width": n.selected ? 3 : M.value.width,
|
|
3275
3313
|
filter: `url(#${P.value})`
|
|
3276
|
-
}, null, 8,
|
|
3314
|
+
}, null, 8, dn)) : n.node.shape === "person" ? (_(), i("g", fn, [
|
|
3277
3315
|
a("ellipse", {
|
|
3278
3316
|
cx: n.node.width / 2,
|
|
3279
3317
|
cy: 18,
|
|
@@ -3283,14 +3321,14 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
3283
3321
|
stroke: M.value.color,
|
|
3284
3322
|
"stroke-width": n.selected ? 3 : M.value.width,
|
|
3285
3323
|
filter: `url(#${P.value})`
|
|
3286
|
-
}, null, 8,
|
|
3324
|
+
}, null, 8, pn),
|
|
3287
3325
|
a("path", {
|
|
3288
3326
|
d: `M ${n.node.width / 2 - 18} 70 Q ${n.node.width / 2} 45 ${n.node.width / 2 + 18} 70`,
|
|
3289
3327
|
fill: "none",
|
|
3290
3328
|
stroke: M.value.color,
|
|
3291
3329
|
"stroke-width": "5",
|
|
3292
3330
|
"stroke-linecap": "round"
|
|
3293
|
-
}, null, 8,
|
|
3331
|
+
}, null, 8, mn),
|
|
3294
3332
|
a("line", {
|
|
3295
3333
|
x1: n.node.width / 2,
|
|
3296
3334
|
y1: 32,
|
|
@@ -3299,7 +3337,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
3299
3337
|
stroke: M.value.color,
|
|
3300
3338
|
"stroke-width": "5",
|
|
3301
3339
|
"stroke-linecap": "round"
|
|
3302
|
-
}, null, 8,
|
|
3340
|
+
}, null, 8, hn),
|
|
3303
3341
|
a("line", {
|
|
3304
3342
|
x1: n.node.width / 2,
|
|
3305
3343
|
y1: 38,
|
|
@@ -3308,7 +3346,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
3308
3346
|
stroke: M.value.color,
|
|
3309
3347
|
"stroke-width": "4",
|
|
3310
3348
|
"stroke-linecap": "round"
|
|
3311
|
-
}, null, 8,
|
|
3349
|
+
}, null, 8, gn),
|
|
3312
3350
|
a("line", {
|
|
3313
3351
|
x1: n.node.width / 2,
|
|
3314
3352
|
y1: 38,
|
|
@@ -3317,7 +3355,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
3317
3355
|
stroke: M.value.color,
|
|
3318
3356
|
"stroke-width": "4",
|
|
3319
3357
|
"stroke-linecap": "round"
|
|
3320
|
-
}, null, 8,
|
|
3358
|
+
}, null, 8, _n),
|
|
3321
3359
|
a("line", {
|
|
3322
3360
|
x1: n.node.width / 2,
|
|
3323
3361
|
y1: 70,
|
|
@@ -3326,7 +3364,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
3326
3364
|
stroke: M.value.color,
|
|
3327
3365
|
"stroke-width": "4",
|
|
3328
3366
|
"stroke-linecap": "round"
|
|
3329
|
-
}, null, 8,
|
|
3367
|
+
}, null, 8, vn),
|
|
3330
3368
|
a("line", {
|
|
3331
3369
|
x1: n.node.width / 2,
|
|
3332
3370
|
y1: 70,
|
|
@@ -3335,8 +3373,8 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
3335
3373
|
stroke: M.value.color,
|
|
3336
3374
|
"stroke-width": "4",
|
|
3337
3375
|
"stroke-linecap": "round"
|
|
3338
|
-
}, null, 8,
|
|
3339
|
-
])) : n.node.shape === "subprocess" ? (_(), i("g",
|
|
3376
|
+
}, null, 8, yn)
|
|
3377
|
+
])) : n.node.shape === "subprocess" ? (_(), i("g", bn, [a("rect", {
|
|
3340
3378
|
width: n.node.width,
|
|
3341
3379
|
height: n.node.height,
|
|
3342
3380
|
rx: C.value.nodeStyle.borderRadius,
|
|
@@ -3344,48 +3382,48 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
3344
3382
|
stroke: M.value.color,
|
|
3345
3383
|
"stroke-width": n.selected ? 3 : M.value.width,
|
|
3346
3384
|
filter: `url(#${P.value})`
|
|
3347
|
-
}, null, 8,
|
|
3385
|
+
}, null, 8, xn), a("rect", {
|
|
3348
3386
|
x: 4,
|
|
3349
3387
|
y: n.node.height - 14,
|
|
3350
3388
|
width: n.node.width - 8,
|
|
3351
3389
|
height: "10",
|
|
3352
3390
|
rx: "2",
|
|
3353
3391
|
fill: "rgba(255,255,255,0.3)"
|
|
3354
|
-
}, null, 8,
|
|
3392
|
+
}, null, 8, Sn)])) : n.node.shape === "document" ? (_(), i("g", Cn, [a("path", {
|
|
3355
3393
|
d: `M 0 0 H ${n.node.width} V ${n.node.height * .8} Q ${n.node.width * .75} ${n.node.height * .65} ${n.node.width * .5} ${n.node.height * .8} Q ${n.node.width * .25} ${n.node.height * .95} 0 ${n.node.height * .8} Z`,
|
|
3356
3394
|
fill: j.value,
|
|
3357
3395
|
stroke: M.value.color,
|
|
3358
3396
|
"stroke-width": n.selected ? 3 : M.value.width,
|
|
3359
3397
|
filter: `url(#${P.value})`
|
|
3360
|
-
}, null, 8,
|
|
3398
|
+
}, null, 8, wn)])) : n.node.shape === "parallelogram" ? (_(), i("g", Tn, [a("polygon", {
|
|
3361
3399
|
points: `${n.node.width * .15} 0, ${n.node.width} 0, ${n.node.width * .85} ${n.node.height}, 0 ${n.node.height}`,
|
|
3362
3400
|
fill: j.value,
|
|
3363
3401
|
stroke: M.value.color,
|
|
3364
3402
|
"stroke-width": n.selected ? 3 : M.value.width,
|
|
3365
3403
|
filter: `url(#${P.value})`
|
|
3366
|
-
}, null, 8,
|
|
3404
|
+
}, null, 8, En)])) : n.node.shape === "folder" ? (_(), i("g", Dn, [a("path", {
|
|
3367
3405
|
d: `M 0 12 H ${n.node.width} V ${n.node.height} H 0 Z`,
|
|
3368
3406
|
fill: j.value,
|
|
3369
3407
|
stroke: M.value.color,
|
|
3370
3408
|
"stroke-width": n.selected ? 3 : M.value.width,
|
|
3371
3409
|
filter: `url(#${P.value})`
|
|
3372
|
-
}, null, 8,
|
|
3410
|
+
}, null, 8, On), a("path", {
|
|
3373
3411
|
d: `M 0 12 V 0 H ${n.node.width * .35} L ${n.node.width * .45} 12`,
|
|
3374
3412
|
fill: j.value,
|
|
3375
3413
|
stroke: M.value.color,
|
|
3376
3414
|
"stroke-width": n.selected ? 3 : M.value.width
|
|
3377
|
-
}, null, 8,
|
|
3415
|
+
}, null, 8, kn)])) : n.node.shape === "note" ? (_(), i("g", An, [a("path", {
|
|
3378
3416
|
d: `M 0 0 H ${n.node.width} V ${n.node.height - 15} L ${n.node.width - 15} ${n.node.height} H 0 Z`,
|
|
3379
3417
|
fill: j.value,
|
|
3380
3418
|
stroke: M.value.color,
|
|
3381
3419
|
"stroke-width": n.selected ? 3 : M.value.width,
|
|
3382
3420
|
filter: `url(#${P.value})`
|
|
3383
|
-
}, null, 8,
|
|
3421
|
+
}, null, 8, jn), a("path", {
|
|
3384
3422
|
d: `M ${n.node.width - 15} ${n.node.height - 15} V ${n.node.height} L ${n.node.width} ${n.node.height - 15}`,
|
|
3385
3423
|
fill: j.value,
|
|
3386
3424
|
stroke: M.value.color,
|
|
3387
3425
|
"stroke-width": n.selected ? 3 : M.value.width
|
|
3388
|
-
}, null, 8,
|
|
3426
|
+
}, null, 8, Mn)])) : n.node.shape === "cylinder" ? (_(), i("g", Nn, [
|
|
3389
3427
|
a("path", {
|
|
3390
3428
|
d: `M 0 ${n.node.height * .15}
|
|
3391
3429
|
Q 0 ${n.node.height * .05} ${n.node.width * .1} ${n.node.height * .02}
|
|
@@ -3399,7 +3437,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
3399
3437
|
stroke: M.value.color,
|
|
3400
3438
|
"stroke-width": n.selected ? 3 : M.value.width,
|
|
3401
3439
|
filter: `url(#${P.value})`
|
|
3402
|
-
}, null, 8,
|
|
3440
|
+
}, null, 8, Pn),
|
|
3403
3441
|
a("ellipse", {
|
|
3404
3442
|
cx: n.node.width / 2,
|
|
3405
3443
|
cy: n.node.height * .15,
|
|
@@ -3408,7 +3446,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
3408
3446
|
fill: j.value,
|
|
3409
3447
|
stroke: M.value.color,
|
|
3410
3448
|
"stroke-width": n.selected ? 3 : M.value.width
|
|
3411
|
-
}, null, 8,
|
|
3449
|
+
}, null, 8, Fn),
|
|
3412
3450
|
a("ellipse", {
|
|
3413
3451
|
cx: n.node.width / 2,
|
|
3414
3452
|
cy: n.node.height * .15,
|
|
@@ -3416,14 +3454,14 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
3416
3454
|
ry: n.node.height * .08,
|
|
3417
3455
|
fill: "rgba(255,255,255,0.2)",
|
|
3418
3456
|
stroke: "none"
|
|
3419
|
-
}, null, 8,
|
|
3420
|
-
])) : n.node.shape === "hexagon" ? (_(), i("g",
|
|
3457
|
+
}, null, 8, In)
|
|
3458
|
+
])) : n.node.shape === "hexagon" ? (_(), i("g", Ln, [a("polygon", {
|
|
3421
3459
|
points: L.value,
|
|
3422
3460
|
fill: j.value,
|
|
3423
3461
|
stroke: M.value.color,
|
|
3424
3462
|
"stroke-width": n.selected ? 3 : M.value.width,
|
|
3425
3463
|
filter: `url(#${P.value})`
|
|
3426
|
-
}, null, 8,
|
|
3464
|
+
}, null, 8, Rn)])) : n.node.shape === "timer" ? (_(), i("g", zn, [
|
|
3427
3465
|
a("circle", {
|
|
3428
3466
|
cx: n.node.width / 2,
|
|
3429
3467
|
cy: n.node.height / 2,
|
|
@@ -3432,7 +3470,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
3432
3470
|
stroke: M.value.color,
|
|
3433
3471
|
"stroke-width": n.selected ? 3 : M.value.width,
|
|
3434
3472
|
filter: `url(#${P.value})`
|
|
3435
|
-
}, null, 8,
|
|
3473
|
+
}, null, 8, Bn),
|
|
3436
3474
|
a("circle", {
|
|
3437
3475
|
cx: n.node.width / 2,
|
|
3438
3476
|
cy: n.node.height / 2,
|
|
@@ -3440,7 +3478,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
3440
3478
|
fill: "none",
|
|
3441
3479
|
stroke: "rgba(255,255,255,0.4)",
|
|
3442
3480
|
"stroke-width": "1"
|
|
3443
|
-
}, null, 8,
|
|
3481
|
+
}, null, 8, Vn),
|
|
3444
3482
|
a("line", {
|
|
3445
3483
|
x1: n.node.width / 2,
|
|
3446
3484
|
y1: n.node.height / 2,
|
|
@@ -3449,7 +3487,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
3449
3487
|
stroke: "#fff",
|
|
3450
3488
|
"stroke-width": "2",
|
|
3451
3489
|
"stroke-linecap": "round"
|
|
3452
|
-
}, null, 8,
|
|
3490
|
+
}, null, 8, Hn),
|
|
3453
3491
|
a("line", {
|
|
3454
3492
|
x1: n.node.width / 2,
|
|
3455
3493
|
y1: n.node.height / 2,
|
|
@@ -3458,14 +3496,14 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
3458
3496
|
stroke: "#fff",
|
|
3459
3497
|
"stroke-width": "1.5",
|
|
3460
3498
|
"stroke-linecap": "round"
|
|
3461
|
-
}, null, 8,
|
|
3499
|
+
}, null, 8, Un),
|
|
3462
3500
|
a("circle", {
|
|
3463
3501
|
cx: n.node.width / 2,
|
|
3464
3502
|
cy: n.node.height / 2,
|
|
3465
3503
|
r: "3",
|
|
3466
3504
|
fill: "#fff"
|
|
3467
|
-
}, null, 8,
|
|
3468
|
-
])) : n.node.shape === "rounded闪电" ? (_(), i("g",
|
|
3505
|
+
}, null, 8, Wn)
|
|
3506
|
+
])) : n.node.shape === "rounded闪电" ? (_(), i("g", Gn, [a("rect", {
|
|
3469
3507
|
width: n.node.width,
|
|
3470
3508
|
height: n.node.height,
|
|
3471
3509
|
rx: n.node.height / 3,
|
|
@@ -3473,7 +3511,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
3473
3511
|
stroke: M.value.color,
|
|
3474
3512
|
"stroke-width": n.selected ? 3 : M.value.width,
|
|
3475
3513
|
filter: `url(#${P.value})`
|
|
3476
|
-
}, null, 8,
|
|
3514
|
+
}, null, 8, Kn), a("path", {
|
|
3477
3515
|
d: `M ${n.node.width * .55} ${n.node.height * .15}
|
|
3478
3516
|
L ${n.node.width * .35} ${n.node.height * .45}
|
|
3479
3517
|
H ${n.node.width * .52}
|
|
@@ -3482,7 +3520,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
3482
3520
|
H ${n.node.width * .48} Z`,
|
|
3483
3521
|
fill: "#fff",
|
|
3484
3522
|
opacity: "0.9"
|
|
3485
|
-
}, null, 8,
|
|
3523
|
+
}, null, 8, qn)])) : (_(), i("rect", {
|
|
3486
3524
|
key: 20,
|
|
3487
3525
|
width: n.node.width,
|
|
3488
3526
|
height: n.node.height,
|
|
@@ -3491,7 +3529,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
3491
3529
|
stroke: M.value.color,
|
|
3492
3530
|
"stroke-width": n.selected ? 3 : M.value.width,
|
|
3493
3531
|
filter: `url(#${P.value})`
|
|
3494
|
-
}, null, 8,
|
|
3532
|
+
}, null, 8, Jn)),
|
|
3495
3533
|
n.node.animation === "breathing" ? (_(), i("rect", {
|
|
3496
3534
|
key: 21,
|
|
3497
3535
|
width: n.node.width + 6,
|
|
@@ -3504,7 +3542,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
3504
3542
|
"stroke-width": "2",
|
|
3505
3543
|
class: "breathing-ring",
|
|
3506
3544
|
style: m(V.value)
|
|
3507
|
-
}, null, 12,
|
|
3545
|
+
}, null, 12, Yn)) : r("", !0),
|
|
3508
3546
|
n.node.animation === "glowPulse" ? (_(), i("rect", {
|
|
3509
3547
|
key: 22,
|
|
3510
3548
|
width: n.node.width,
|
|
@@ -3515,7 +3553,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
3515
3553
|
"stroke-width": "2",
|
|
3516
3554
|
class: "glow-pulse-ring",
|
|
3517
3555
|
style: m(B.value)
|
|
3518
|
-
}, null, 12,
|
|
3556
|
+
}, null, 12, Xn)) : r("", !0),
|
|
3519
3557
|
n.node.animation === "ripple" ? (_(), i("rect", {
|
|
3520
3558
|
key: 23,
|
|
3521
3559
|
x: -10,
|
|
@@ -3528,7 +3566,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
3528
3566
|
"stroke-width": "2",
|
|
3529
3567
|
class: "ripple-ring",
|
|
3530
3568
|
style: m(H.value)
|
|
3531
|
-
}, null, 12,
|
|
3569
|
+
}, null, 12, Zn)) : r("", !0)
|
|
3532
3570
|
], 6),
|
|
3533
3571
|
a("text", {
|
|
3534
3572
|
x: F.value.x,
|
|
@@ -3546,8 +3584,8 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
3546
3584
|
"pointer-events": "none",
|
|
3547
3585
|
"user-select": "none"
|
|
3548
3586
|
}
|
|
3549
|
-
}, S(n.node.label), 11,
|
|
3550
|
-
n.selected && !n.node.locked ? (_(), i("g",
|
|
3587
|
+
}, S(n.node.label), 11, Qn),
|
|
3588
|
+
n.selected && !n.node.locked ? (_(), i("g", $n, [(_(!0), i(e, null, b(R.value, (e) => (_(), i("rect", {
|
|
3551
3589
|
key: e.cursor,
|
|
3552
3590
|
x: e.x - 4,
|
|
3553
3591
|
y: e.y - 4,
|
|
@@ -3557,8 +3595,8 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
3557
3595
|
stroke: "#fff",
|
|
3558
3596
|
"stroke-width": "1",
|
|
3559
3597
|
style: m({ cursor: e.cursor }),
|
|
3560
|
-
onMousedown: A((t) =>
|
|
3561
|
-
}, null, 44,
|
|
3598
|
+
onMousedown: A((t) => J(e, t), ["stop"])
|
|
3599
|
+
}, null, 44, er))), 128))])) : r("", !0),
|
|
3562
3600
|
x.value ? (_(), i("circle", {
|
|
3563
3601
|
key: 1,
|
|
3564
3602
|
cx: n.node.width / 2,
|
|
@@ -3567,7 +3605,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
3567
3605
|
fill: "#409eff",
|
|
3568
3606
|
opacity: "0.6",
|
|
3569
3607
|
class: "connect-target"
|
|
3570
|
-
}, null, 8,
|
|
3608
|
+
}, null, 8, tr)) : r("", !0),
|
|
3571
3609
|
d.value ? (_(), i("circle", {
|
|
3572
3610
|
key: 2,
|
|
3573
3611
|
cx: n.node.width / 2,
|
|
@@ -3579,49 +3617,49 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
3579
3617
|
"stroke-dasharray": "113",
|
|
3580
3618
|
"stroke-dashoffset": "113",
|
|
3581
3619
|
class: "long-press-ring"
|
|
3582
|
-
}, null, 8,
|
|
3583
|
-
], 46,
|
|
3620
|
+
}, null, 8, nr)) : r("", !0)
|
|
3621
|
+
], 46, Qt));
|
|
3584
3622
|
}
|
|
3585
|
-
}, [["__scopeId", "data-v-e89a49e8"]]),
|
|
3623
|
+
}, [["__scopeId", "data-v-e89a49e8"]]), ir = ["d", "stroke-width"], ar = [
|
|
3586
3624
|
"d",
|
|
3587
3625
|
"stroke",
|
|
3588
3626
|
"stroke-width",
|
|
3589
3627
|
"stroke-dasharray"
|
|
3590
|
-
],
|
|
3628
|
+
], or = ["dur"], sr = ["fill"], cr = ["dur", "path"], lr = ["fill"], ur = [
|
|
3591
3629
|
"dur",
|
|
3592
3630
|
"path",
|
|
3593
3631
|
"begin"
|
|
3594
|
-
],
|
|
3632
|
+
], dr = ["fill"], fr = [
|
|
3595
3633
|
"dur",
|
|
3596
3634
|
"path",
|
|
3597
3635
|
"begin"
|
|
3598
|
-
],
|
|
3636
|
+
], pr = ["fill"], mr = ["dur", "path"], hr = ["dur"], gr = ["dur"], _r = ["fill"], vr = [
|
|
3599
3637
|
"dur",
|
|
3600
3638
|
"path",
|
|
3601
3639
|
"begin"
|
|
3602
|
-
],
|
|
3640
|
+
], yr = ["dur"], br = ["fill"], xr = [
|
|
3603
3641
|
"dur",
|
|
3604
3642
|
"path",
|
|
3605
3643
|
"begin"
|
|
3606
|
-
],
|
|
3644
|
+
], Sr = ["dur"], Cr = ["fill"], wr = ["dur", "path"], Tr = ["dur"], Er = ["dur"], Dr = ["fill"], Or = [
|
|
3607
3645
|
"dur",
|
|
3608
3646
|
"path",
|
|
3609
3647
|
"begin"
|
|
3610
|
-
],
|
|
3648
|
+
], kr = ["dur"], Ar = ["dur"], jr = ["fill"], Mr = ["dur", "path"], Nr = ["dur"], Pr = ["fill"], Fr = [
|
|
3611
3649
|
"dur",
|
|
3612
3650
|
"path",
|
|
3613
3651
|
"begin"
|
|
3614
|
-
],
|
|
3652
|
+
], Ir = ["dur"], Lr = ["transform"], Rr = ["x", "width"], zr = {
|
|
3615
3653
|
"text-anchor": "middle",
|
|
3616
3654
|
"dominant-baseline": "central",
|
|
3617
3655
|
fill: "#333",
|
|
3618
3656
|
"font-size": "12",
|
|
3619
3657
|
class: "edge-label"
|
|
3620
|
-
},
|
|
3658
|
+
}, Br = [
|
|
3621
3659
|
"points",
|
|
3622
3660
|
"fill",
|
|
3623
3661
|
"transform"
|
|
3624
|
-
],
|
|
3662
|
+
], Vr = /*#__PURE__*/ Q({
|
|
3625
3663
|
__name: "DiagramEdge",
|
|
3626
3664
|
props: {
|
|
3627
3665
|
edge: {
|
|
@@ -3743,7 +3781,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
3743
3781
|
stroke: "transparent",
|
|
3744
3782
|
"stroke-width": Math.max(e.edge.lineWidth + 8, 12),
|
|
3745
3783
|
class: "edge-hit-area"
|
|
3746
|
-
}, null, 8,
|
|
3784
|
+
}, null, 8, ir),
|
|
3747
3785
|
a("path", {
|
|
3748
3786
|
d: c.value,
|
|
3749
3787
|
fill: "none",
|
|
@@ -3763,7 +3801,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
3763
3801
|
to: "-24",
|
|
3764
3802
|
dur: (e.edge.animationDuration || 2) + "s",
|
|
3765
3803
|
repeatCount: "indefinite"
|
|
3766
|
-
}, null, 8,
|
|
3804
|
+
}, null, 8, or)) : r("", !0)], 14, ar),
|
|
3767
3805
|
e.animationPlaying && e.edge.animation === "flow" ? (_(), i("circle", {
|
|
3768
3806
|
key: 0,
|
|
3769
3807
|
r: "4",
|
|
@@ -3774,7 +3812,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
3774
3812
|
dur: (e.edge.animationDuration || 2) + "s",
|
|
3775
3813
|
repeatCount: "indefinite",
|
|
3776
3814
|
path: c.value
|
|
3777
|
-
}, null, 8,
|
|
3815
|
+
}, null, 8, cr)], 12, sr)) : r("", !0),
|
|
3778
3816
|
e.animationPlaying && e.edge.animation === "flow" ? (_(), i("circle", {
|
|
3779
3817
|
key: 1,
|
|
3780
3818
|
r: "3",
|
|
@@ -3787,7 +3825,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
3787
3825
|
repeatCount: "indefinite",
|
|
3788
3826
|
path: c.value,
|
|
3789
3827
|
begin: (e.edge.animationDuration || 2) / 3 + "s"
|
|
3790
|
-
}, null, 8,
|
|
3828
|
+
}, null, 8, ur)], 12, lr)) : r("", !0),
|
|
3791
3829
|
e.animationPlaying && e.edge.animation === "flow" ? (_(), i("circle", {
|
|
3792
3830
|
key: 2,
|
|
3793
3831
|
r: "3",
|
|
@@ -3800,7 +3838,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
3800
3838
|
repeatCount: "indefinite",
|
|
3801
3839
|
path: c.value,
|
|
3802
3840
|
begin: (e.edge.animationDuration || 2) * 2 / 3 + "s"
|
|
3803
|
-
}, null, 8,
|
|
3841
|
+
}, null, 8, fr)], 12, dr)) : r("", !0),
|
|
3804
3842
|
e.animationPlaying && e.edge.animation === "particleGlow" ? (_(), i("circle", {
|
|
3805
3843
|
key: 3,
|
|
3806
3844
|
r: "5",
|
|
@@ -3811,20 +3849,20 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
3811
3849
|
dur: (e.edge.animationDuration || 2) + "s",
|
|
3812
3850
|
repeatCount: "indefinite",
|
|
3813
3851
|
path: c.value
|
|
3814
|
-
}, null, 8,
|
|
3852
|
+
}, null, 8, mr),
|
|
3815
3853
|
a("animate", {
|
|
3816
3854
|
attributeName: "r",
|
|
3817
3855
|
values: "3;6;3",
|
|
3818
3856
|
dur: (e.edge.animationDuration || 2) + "s",
|
|
3819
3857
|
repeatCount: "indefinite"
|
|
3820
|
-
}, null, 8,
|
|
3858
|
+
}, null, 8, hr),
|
|
3821
3859
|
a("animate", {
|
|
3822
3860
|
attributeName: "opacity",
|
|
3823
3861
|
values: "0.5;1;0.5",
|
|
3824
3862
|
dur: (e.edge.animationDuration || 2) + "s",
|
|
3825
3863
|
repeatCount: "indefinite"
|
|
3826
|
-
}, null, 8,
|
|
3827
|
-
], 8,
|
|
3864
|
+
}, null, 8, gr)
|
|
3865
|
+
], 8, pr)) : r("", !0),
|
|
3828
3866
|
e.animationPlaying && e.edge.animation === "particleGlow" ? (_(), i("circle", {
|
|
3829
3867
|
key: 4,
|
|
3830
3868
|
r: "4",
|
|
@@ -3836,12 +3874,12 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
3836
3874
|
repeatCount: "indefinite",
|
|
3837
3875
|
path: c.value,
|
|
3838
3876
|
begin: (e.edge.animationDuration || 2) / 3 + "s"
|
|
3839
|
-
}, null, 8,
|
|
3877
|
+
}, null, 8, vr), a("animate", {
|
|
3840
3878
|
attributeName: "r",
|
|
3841
3879
|
values: "2;5;2",
|
|
3842
3880
|
dur: (e.edge.animationDuration || 2) + "s",
|
|
3843
3881
|
repeatCount: "indefinite"
|
|
3844
|
-
}, null, 8,
|
|
3882
|
+
}, null, 8, yr)], 8, _r)) : r("", !0),
|
|
3845
3883
|
e.animationPlaying && e.edge.animation === "particleGlow" ? (_(), i("circle", {
|
|
3846
3884
|
key: 5,
|
|
3847
3885
|
r: "4",
|
|
@@ -3853,12 +3891,12 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
3853
3891
|
repeatCount: "indefinite",
|
|
3854
3892
|
path: c.value,
|
|
3855
3893
|
begin: (e.edge.animationDuration || 2) * 2 / 3 + "s"
|
|
3856
|
-
}, null, 8,
|
|
3894
|
+
}, null, 8, xr), a("animate", {
|
|
3857
3895
|
attributeName: "r",
|
|
3858
3896
|
values: "2;5;2",
|
|
3859
3897
|
dur: (e.edge.animationDuration || 2) + "s",
|
|
3860
3898
|
repeatCount: "indefinite"
|
|
3861
|
-
}, null, 8,
|
|
3899
|
+
}, null, 8, Sr)], 8, br)) : r("", !0),
|
|
3862
3900
|
e.animationPlaying && e.edge.animation === "pulse" ? (_(), i("circle", {
|
|
3863
3901
|
key: 6,
|
|
3864
3902
|
r: "6",
|
|
@@ -3870,20 +3908,20 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
3870
3908
|
dur: (e.edge.animationDuration || 2) + "s",
|
|
3871
3909
|
repeatCount: "indefinite",
|
|
3872
3910
|
path: c.value
|
|
3873
|
-
}, null, 8,
|
|
3911
|
+
}, null, 8, wr),
|
|
3874
3912
|
a("animate", {
|
|
3875
3913
|
attributeName: "r",
|
|
3876
3914
|
values: "2;8;2",
|
|
3877
3915
|
dur: (e.edge.animationDuration || 2) + "s",
|
|
3878
3916
|
repeatCount: "indefinite"
|
|
3879
|
-
}, null, 8,
|
|
3917
|
+
}, null, 8, Tr),
|
|
3880
3918
|
a("animate", {
|
|
3881
3919
|
attributeName: "opacity",
|
|
3882
3920
|
values: "0;0.8;0",
|
|
3883
3921
|
dur: (e.edge.animationDuration || 2) + "s",
|
|
3884
3922
|
repeatCount: "indefinite"
|
|
3885
|
-
}, null, 8,
|
|
3886
|
-
], 8,
|
|
3923
|
+
}, null, 8, Er)
|
|
3924
|
+
], 8, Cr)) : r("", !0),
|
|
3887
3925
|
e.animationPlaying && e.edge.animation === "pulse" ? (_(), i("circle", {
|
|
3888
3926
|
key: 7,
|
|
3889
3927
|
r: "6",
|
|
@@ -3896,20 +3934,20 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
3896
3934
|
repeatCount: "indefinite",
|
|
3897
3935
|
path: c.value,
|
|
3898
3936
|
begin: (e.edge.animationDuration || 2) / 2 + "s"
|
|
3899
|
-
}, null, 8,
|
|
3937
|
+
}, null, 8, Or),
|
|
3900
3938
|
a("animate", {
|
|
3901
3939
|
attributeName: "r",
|
|
3902
3940
|
values: "2;8;2",
|
|
3903
3941
|
dur: (e.edge.animationDuration || 2) + "s",
|
|
3904
3942
|
repeatCount: "indefinite"
|
|
3905
|
-
}, null, 8,
|
|
3943
|
+
}, null, 8, kr),
|
|
3906
3944
|
a("animate", {
|
|
3907
3945
|
attributeName: "opacity",
|
|
3908
3946
|
values: "0;0.8;0",
|
|
3909
3947
|
dur: (e.edge.animationDuration || 2) + "s",
|
|
3910
3948
|
repeatCount: "indefinite"
|
|
3911
|
-
}, null, 8,
|
|
3912
|
-
], 8,
|
|
3949
|
+
}, null, 8, Ar)
|
|
3950
|
+
], 8, Dr)) : r("", !0),
|
|
3913
3951
|
e.animationPlaying && e.edge.animation === "neon" ? (_(), i("circle", {
|
|
3914
3952
|
key: 8,
|
|
3915
3953
|
r: "4",
|
|
@@ -3919,12 +3957,12 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
3919
3957
|
dur: (e.edge.animationDuration || 2) + "s",
|
|
3920
3958
|
repeatCount: "indefinite",
|
|
3921
3959
|
path: c.value
|
|
3922
|
-
}, null, 8,
|
|
3960
|
+
}, null, 8, Mr), a("animate", {
|
|
3923
3961
|
attributeName: "r",
|
|
3924
3962
|
values: "2;5;2",
|
|
3925
3963
|
dur: (e.edge.animationDuration || 2) + "s",
|
|
3926
3964
|
repeatCount: "indefinite"
|
|
3927
|
-
}, null, 8,
|
|
3965
|
+
}, null, 8, Nr)], 8, jr)) : r("", !0),
|
|
3928
3966
|
e.animationPlaying && e.edge.animation === "neon" ? (_(), i("circle", {
|
|
3929
3967
|
key: 9,
|
|
3930
3968
|
r: "4",
|
|
@@ -3936,12 +3974,12 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
3936
3974
|
repeatCount: "indefinite",
|
|
3937
3975
|
path: c.value,
|
|
3938
3976
|
begin: (e.edge.animationDuration || 2) / 2 + "s"
|
|
3939
|
-
}, null, 8,
|
|
3977
|
+
}, null, 8, Fr), a("animate", {
|
|
3940
3978
|
attributeName: "r",
|
|
3941
3979
|
values: "2;5;2",
|
|
3942
3980
|
dur: (e.edge.animationDuration || 2) + "s",
|
|
3943
3981
|
repeatCount: "indefinite"
|
|
3944
|
-
}, null, 8,
|
|
3982
|
+
}, null, 8, Ir)], 8, Pr)) : r("", !0),
|
|
3945
3983
|
e.edge.label ? (_(), i("g", {
|
|
3946
3984
|
key: 10,
|
|
3947
3985
|
transform: `translate(${l.value.x}, ${l.value.y})`
|
|
@@ -3954,32 +3992,32 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
3954
3992
|
fill: "#fff",
|
|
3955
3993
|
stroke: "#e4e7ed",
|
|
3956
3994
|
"stroke-width": "1"
|
|
3957
|
-
}, null, 8,
|
|
3995
|
+
}, null, 8, Rr), a("text", zr, S(e.edge.label), 1)], 8, Lr)) : r("", !0),
|
|
3958
3996
|
e.edge.arrowType === "none" ? r("", !0) : (_(), i("polygon", {
|
|
3959
3997
|
key: 11,
|
|
3960
3998
|
points: g.value,
|
|
3961
3999
|
fill: e.selected ? "#409eff" : e.edge.lineColor,
|
|
3962
4000
|
transform: `translate(${s.value.x}, ${s.value.y}) rotate(${h.value})`
|
|
3963
|
-
}, null, 8,
|
|
4001
|
+
}, null, 8, Br))
|
|
3964
4002
|
], 34)) : r("", !0);
|
|
3965
4003
|
}
|
|
3966
|
-
}, [["__scopeId", "data-v-737212ef"]]),
|
|
4004
|
+
}, [["__scopeId", "data-v-737212ef"]]), Hr = ["transform"], Ur = [
|
|
3967
4005
|
"width",
|
|
3968
4006
|
"height",
|
|
3969
4007
|
"fill",
|
|
3970
4008
|
"stroke",
|
|
3971
4009
|
"stroke-width"
|
|
3972
|
-
],
|
|
4010
|
+
], Wr = [
|
|
3973
4011
|
"width",
|
|
3974
4012
|
"height",
|
|
3975
4013
|
"fill",
|
|
3976
4014
|
"opacity"
|
|
3977
|
-
],
|
|
4015
|
+
], Gr = [
|
|
3978
4016
|
"width",
|
|
3979
4017
|
"height",
|
|
3980
4018
|
"fill",
|
|
3981
4019
|
"opacity"
|
|
3982
|
-
],
|
|
4020
|
+
], Kr = [
|
|
3983
4021
|
"x",
|
|
3984
4022
|
"y",
|
|
3985
4023
|
"fill",
|
|
@@ -3988,7 +4026,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
3988
4026
|
"font-weight",
|
|
3989
4027
|
"font-style",
|
|
3990
4028
|
"transform"
|
|
3991
|
-
],
|
|
4029
|
+
], qr = [
|
|
3992
4030
|
"x",
|
|
3993
4031
|
"y",
|
|
3994
4032
|
"text-anchor",
|
|
@@ -3997,63 +4035,63 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
3997
4035
|
"font-family",
|
|
3998
4036
|
"font-weight",
|
|
3999
4037
|
"font-style"
|
|
4000
|
-
],
|
|
4038
|
+
], Jr = ["y", "width"], Yr = {
|
|
4001
4039
|
xmlns: "http://www.w3.org/1999/xhtml",
|
|
4002
4040
|
class: "edit-name-container"
|
|
4003
|
-
},
|
|
4041
|
+
}, Xr = ["x", "height"], Zr = {
|
|
4004
4042
|
xmlns: "http://www.w3.org/1999/xhtml",
|
|
4005
4043
|
class: "edit-name-container vertical"
|
|
4006
|
-
},
|
|
4044
|
+
}, Qr = [
|
|
4007
4045
|
"x1",
|
|
4008
4046
|
"x2",
|
|
4009
4047
|
"onClick"
|
|
4010
|
-
],
|
|
4048
|
+
], $r = [
|
|
4011
4049
|
"x1",
|
|
4012
4050
|
"x2",
|
|
4013
4051
|
"stroke"
|
|
4014
|
-
],
|
|
4052
|
+
], ei = [
|
|
4015
4053
|
"y1",
|
|
4016
4054
|
"x2",
|
|
4017
4055
|
"y2",
|
|
4018
4056
|
"onClick",
|
|
4019
4057
|
"onMousedown"
|
|
4020
|
-
],
|
|
4058
|
+
], ti = [
|
|
4021
4059
|
"x1",
|
|
4022
4060
|
"x2",
|
|
4023
4061
|
"y2",
|
|
4024
4062
|
"onClick",
|
|
4025
4063
|
"onMousedown"
|
|
4026
|
-
],
|
|
4064
|
+
], ni = [
|
|
4027
4065
|
"y1",
|
|
4028
4066
|
"x2",
|
|
4029
4067
|
"y2",
|
|
4030
4068
|
"stroke"
|
|
4031
|
-
],
|
|
4069
|
+
], ri = [
|
|
4032
4070
|
"x1",
|
|
4033
4071
|
"x2",
|
|
4034
4072
|
"y2",
|
|
4035
4073
|
"stroke"
|
|
4036
|
-
],
|
|
4074
|
+
], ii = [
|
|
4037
4075
|
"y1",
|
|
4038
4076
|
"x2",
|
|
4039
4077
|
"y2",
|
|
4040
4078
|
"onClick"
|
|
4041
|
-
],
|
|
4079
|
+
], ai = [
|
|
4042
4080
|
"y1",
|
|
4043
4081
|
"x2",
|
|
4044
4082
|
"y2",
|
|
4045
4083
|
"stroke"
|
|
4046
|
-
],
|
|
4084
|
+
], oi = [
|
|
4047
4085
|
"x1",
|
|
4048
4086
|
"x2",
|
|
4049
4087
|
"y2",
|
|
4050
4088
|
"onClick"
|
|
4051
|
-
],
|
|
4089
|
+
], si = [
|
|
4052
4090
|
"x1",
|
|
4053
4091
|
"x2",
|
|
4054
4092
|
"y2",
|
|
4055
4093
|
"stroke"
|
|
4056
|
-
],
|
|
4094
|
+
], ci = [
|
|
4057
4095
|
"x",
|
|
4058
4096
|
"y",
|
|
4059
4097
|
"width",
|
|
@@ -4063,7 +4101,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
4063
4101
|
"stroke-width",
|
|
4064
4102
|
"opacity",
|
|
4065
4103
|
"onClick"
|
|
4066
|
-
],
|
|
4104
|
+
], li = [
|
|
4067
4105
|
"x",
|
|
4068
4106
|
"y",
|
|
4069
4107
|
"width",
|
|
@@ -4073,17 +4111,17 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
4073
4111
|
"stroke-width",
|
|
4074
4112
|
"opacity",
|
|
4075
4113
|
"onClick"
|
|
4076
|
-
],
|
|
4114
|
+
], ui = [
|
|
4077
4115
|
"x",
|
|
4078
4116
|
"y",
|
|
4079
4117
|
"width",
|
|
4080
4118
|
"fill"
|
|
4081
|
-
],
|
|
4119
|
+
], di = [
|
|
4082
4120
|
"x",
|
|
4083
4121
|
"y",
|
|
4084
4122
|
"width",
|
|
4085
4123
|
"fill"
|
|
4086
|
-
],
|
|
4124
|
+
], fi = [
|
|
4087
4125
|
"x",
|
|
4088
4126
|
"y",
|
|
4089
4127
|
"text-anchor",
|
|
@@ -4094,7 +4132,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
4094
4132
|
"font-style",
|
|
4095
4133
|
"onClick",
|
|
4096
4134
|
"onDblclick"
|
|
4097
|
-
],
|
|
4135
|
+
], pi = [
|
|
4098
4136
|
"x",
|
|
4099
4137
|
"y",
|
|
4100
4138
|
"text-anchor",
|
|
@@ -4105,29 +4143,29 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
4105
4143
|
"font-style",
|
|
4106
4144
|
"onClick",
|
|
4107
4145
|
"onDblclick"
|
|
4108
|
-
],
|
|
4146
|
+
], mi = [
|
|
4109
4147
|
"x",
|
|
4110
4148
|
"y",
|
|
4111
4149
|
"width"
|
|
4112
|
-
],
|
|
4150
|
+
], hi = {
|
|
4113
4151
|
xmlns: "http://www.w3.org/1999/xhtml",
|
|
4114
4152
|
class: "edit-lane-container"
|
|
4115
|
-
},
|
|
4153
|
+
}, gi = ["onBlur", "onKeydown"], _i = [
|
|
4116
4154
|
"x",
|
|
4117
4155
|
"y",
|
|
4118
4156
|
"width"
|
|
4119
|
-
],
|
|
4157
|
+
], vi = {
|
|
4120
4158
|
xmlns: "http://www.w3.org/1999/xhtml",
|
|
4121
4159
|
class: "edit-lane-container"
|
|
4122
|
-
},
|
|
4160
|
+
}, yi = ["onBlur", "onKeydown"], bi = ["x", "y"], xi = ["x", "y"], Si = ["x", "y"], Ci = [
|
|
4123
4161
|
"y1",
|
|
4124
4162
|
"x2",
|
|
4125
4163
|
"y2"
|
|
4126
|
-
],
|
|
4164
|
+
], wi = [
|
|
4127
4165
|
"x1",
|
|
4128
4166
|
"x2",
|
|
4129
4167
|
"y2"
|
|
4130
|
-
],
|
|
4168
|
+
], Ti = /*#__PURE__*/ Q({
|
|
4131
4169
|
__name: "SwimlaneNode",
|
|
4132
4170
|
props: {
|
|
4133
4171
|
swimlane: {
|
|
@@ -4212,17 +4250,17 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
4212
4250
|
window.removeEventListener("mousemove", a), window.removeEventListener("mouseup", o);
|
|
4213
4251
|
};
|
|
4214
4252
|
window.addEventListener("mousemove", a), window.addEventListener("mouseup", o);
|
|
4215
|
-
}, K = y(null),
|
|
4216
|
-
e.preventDefault(), K.value = t, s.swimlane.direction === "horizontal" ? (
|
|
4253
|
+
}, K = y(null), ee = y(0), q = y(0), te = y(0), J = (e, t) => {
|
|
4254
|
+
e.preventDefault(), K.value = t, s.swimlane.direction === "horizontal" ? (ee.value = h(t), te.value = s.swimlane.lanes[t].height) : (q.value = g(t), te.value = s.swimlane.lanes[t].width || v(t));
|
|
4217
4255
|
let n = {
|
|
4218
4256
|
x: e.clientX,
|
|
4219
4257
|
y: e.clientY
|
|
4220
4258
|
}, r = (e) => {
|
|
4221
4259
|
if (s.swimlane.direction === "horizontal") {
|
|
4222
|
-
let r = e.clientY - n.y, i = Math.max(40,
|
|
4260
|
+
let r = e.clientY - n.y, i = Math.max(40, te.value + r);
|
|
4223
4261
|
c("resize-lane", s.swimlane.id, s.swimlane.lanes[t].id, i);
|
|
4224
4262
|
} else {
|
|
4225
|
-
let r = e.clientX - n.x, i = Math.max(80,
|
|
4263
|
+
let r = e.clientX - n.x, i = Math.max(80, te.value + r);
|
|
4226
4264
|
c("resize-lane", s.swimlane.id, s.swimlane.lanes[t].id, null, i);
|
|
4227
4265
|
}
|
|
4228
4266
|
}, i = () => {
|
|
@@ -4244,7 +4282,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
4244
4282
|
rx: "4",
|
|
4245
4283
|
class: "swimlane-bg",
|
|
4246
4284
|
onClick: o[0] ||= A((e) => t.$emit("select"), ["stop"])
|
|
4247
|
-
}, null, 8,
|
|
4285
|
+
}, null, 8, Ur),
|
|
4248
4286
|
n.swimlane.direction === "horizontal" ? (_(), i("rect", {
|
|
4249
4287
|
key: 0,
|
|
4250
4288
|
width: l.value,
|
|
@@ -4255,7 +4293,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
4255
4293
|
class: "swimlane-header",
|
|
4256
4294
|
onClick: A(j, ["stop"]),
|
|
4257
4295
|
onDblclick: A(D, ["stop"])
|
|
4258
|
-
}, null, 40,
|
|
4296
|
+
}, null, 40, Wr)) : (_(), i("rect", {
|
|
4259
4297
|
key: 1,
|
|
4260
4298
|
width: n.swimlane.width,
|
|
4261
4299
|
height: u.value,
|
|
@@ -4265,7 +4303,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
4265
4303
|
class: "swimlane-header",
|
|
4266
4304
|
onClick: A(j, ["stop"]),
|
|
4267
4305
|
onDblclick: A(D, ["stop"])
|
|
4268
|
-
}, null, 40,
|
|
4306
|
+
}, null, 40, Gr)),
|
|
4269
4307
|
!x.value && n.swimlane.direction === "horizontal" ? (_(), i("text", {
|
|
4270
4308
|
key: 2,
|
|
4271
4309
|
x: l.value / 2,
|
|
@@ -4280,7 +4318,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
4280
4318
|
"pointer-events": "none",
|
|
4281
4319
|
transform: `rotate(-90, ${l.value / 2}, ${d.value / 2})`,
|
|
4282
4320
|
dy: "0.35em"
|
|
4283
|
-
}, S(n.swimlane.name), 9,
|
|
4321
|
+
}, S(n.swimlane.name), 9, Kr)) : !x.value && n.swimlane.direction === "vertical" ? (_(), i("text", {
|
|
4284
4322
|
key: 3,
|
|
4285
4323
|
x: n.swimlane.textAlign === "left" ? 8 : n.swimlane.textAlign === "right" ? n.swimlane.width - 8 : n.swimlane.width / 2,
|
|
4286
4324
|
y: u.value / 2,
|
|
@@ -4293,14 +4331,14 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
4293
4331
|
class: "swimlane-title",
|
|
4294
4332
|
"pointer-events": "none",
|
|
4295
4333
|
"dominant-baseline": "central"
|
|
4296
|
-
}, S(n.swimlane.name), 9,
|
|
4334
|
+
}, S(n.swimlane.name), 9, qr)) : r("", !0),
|
|
4297
4335
|
x.value && n.swimlane.direction === "horizontal" ? (_(), i("foreignObject", {
|
|
4298
4336
|
key: 4,
|
|
4299
4337
|
x: 0,
|
|
4300
4338
|
y: d.value / 2 - 14,
|
|
4301
4339
|
width: l.value,
|
|
4302
4340
|
height: 28
|
|
4303
|
-
}, [a("div",
|
|
4341
|
+
}, [a("div", Yr, [O(a("input", {
|
|
4304
4342
|
ref_key: "nameInputRef",
|
|
4305
4343
|
ref: E,
|
|
4306
4344
|
"onUpdate:modelValue": o[1] ||= (e) => C.value = e,
|
|
@@ -4315,14 +4353,14 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
4315
4353
|
onBlur: M,
|
|
4316
4354
|
onKeydown: [k(M, ["enter"]), k(N, ["escape"])],
|
|
4317
4355
|
onClick: o[2] ||= A(() => {}, ["stop"])
|
|
4318
|
-
}, null, 36), [[w, C.value]])])], 8,
|
|
4356
|
+
}, null, 36), [[w, C.value]])])], 8, Jr)) : r("", !0),
|
|
4319
4357
|
x.value && n.swimlane.direction === "vertical" ? (_(), i("foreignObject", {
|
|
4320
4358
|
key: 5,
|
|
4321
4359
|
x: n.swimlane.textAlign === "left" ? 0 : n.swimlane.textAlign === "right" ? n.swimlane.width - 120 : n.swimlane.width / 2 - 60,
|
|
4322
4360
|
y: 0,
|
|
4323
4361
|
width: 120,
|
|
4324
4362
|
height: u.value
|
|
4325
|
-
}, [a("div",
|
|
4363
|
+
}, [a("div", Zr, [O(a("input", {
|
|
4326
4364
|
ref_key: "nameInputRef",
|
|
4327
4365
|
ref: E,
|
|
4328
4366
|
"onUpdate:modelValue": o[3] ||= (e) => C.value = e,
|
|
@@ -4338,7 +4376,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
4338
4376
|
onBlur: M,
|
|
4339
4377
|
onKeydown: [k(M, ["enter"]), k(N, ["escape"])],
|
|
4340
4378
|
onClick: o[4] ||= A(() => {}, ["stop"])
|
|
4341
|
-
}, null, 36), [[w, C.value]])])], 8,
|
|
4379
|
+
}, null, 36), [[w, C.value]])])], 8, Xr)) : r("", !0),
|
|
4342
4380
|
n.swimlane.lanes && n.swimlane.lanes.length ? (_(!0), i(e, { key: 6 }, b(n.swimlane.lanes, (t, s) => (_(), i("g", { key: t.id }, [
|
|
4343
4381
|
s === 0 && n.swimlane.direction === "horizontal" ? (_(), i(e, { key: 0 }, [a("line", {
|
|
4344
4382
|
x1: l.value,
|
|
@@ -4350,8 +4388,8 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
4350
4388
|
class: "lane-divider-hit",
|
|
4351
4389
|
style: { cursor: "ns-resize" },
|
|
4352
4390
|
onClick: A((e) => P(t.id), ["stop"]),
|
|
4353
|
-
onMousedown: o[5] ||= A((e) =>
|
|
4354
|
-
}, null, 40,
|
|
4391
|
+
onMousedown: o[5] ||= A((e) => J(e, 0), ["stop"])
|
|
4392
|
+
}, null, 40, Qr), a("line", {
|
|
4355
4393
|
x1: l.value,
|
|
4356
4394
|
y1: 0,
|
|
4357
4395
|
x2: n.swimlane.width,
|
|
@@ -4361,7 +4399,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
4361
4399
|
"stroke-dasharray": "4,2",
|
|
4362
4400
|
class: "lane-divider",
|
|
4363
4401
|
"pointer-events": "none"
|
|
4364
|
-
}, null, 8,
|
|
4402
|
+
}, null, 8, $r)], 64)) : r("", !0),
|
|
4365
4403
|
s > 0 ? (_(), i(e, { key: 1 }, [n.swimlane.direction === "horizontal" ? (_(), i("line", {
|
|
4366
4404
|
key: 0,
|
|
4367
4405
|
x1: 0,
|
|
@@ -4373,8 +4411,8 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
4373
4411
|
class: "lane-divider-hit",
|
|
4374
4412
|
style: { cursor: "ns-resize" },
|
|
4375
4413
|
onClick: A((e) => P(n.swimlane.lanes[s - 1].id), ["stop"]),
|
|
4376
|
-
onMousedown: A((e) =>
|
|
4377
|
-
}, null, 40,
|
|
4414
|
+
onMousedown: A((e) => J(e, s - 1), ["stop"])
|
|
4415
|
+
}, null, 40, ei)) : (_(), i("line", {
|
|
4378
4416
|
key: 1,
|
|
4379
4417
|
x1: g(s),
|
|
4380
4418
|
y1: 0,
|
|
@@ -4385,8 +4423,8 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
4385
4423
|
class: "lane-divider-hit",
|
|
4386
4424
|
style: { cursor: "ew-resize" },
|
|
4387
4425
|
onClick: A((e) => P(n.swimlane.lanes[s - 1].id), ["stop"]),
|
|
4388
|
-
onMousedown: A((e) =>
|
|
4389
|
-
}, null, 40,
|
|
4426
|
+
onMousedown: A((e) => J(e, s - 1), ["stop"])
|
|
4427
|
+
}, null, 40, ti)), n.swimlane.direction === "horizontal" ? (_(), i("line", {
|
|
4390
4428
|
key: 2,
|
|
4391
4429
|
x1: 0,
|
|
4392
4430
|
y1: h(s),
|
|
@@ -4397,7 +4435,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
4397
4435
|
"stroke-dasharray": "4,2",
|
|
4398
4436
|
class: "lane-divider",
|
|
4399
4437
|
"pointer-events": "none"
|
|
4400
|
-
}, null, 8,
|
|
4438
|
+
}, null, 8, ni)) : (_(), i("line", {
|
|
4401
4439
|
key: 3,
|
|
4402
4440
|
x1: g(s),
|
|
4403
4441
|
y1: 0,
|
|
@@ -4408,7 +4446,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
4408
4446
|
"stroke-dasharray": "4,2",
|
|
4409
4447
|
class: "lane-divider",
|
|
4410
4448
|
"pointer-events": "none"
|
|
4411
|
-
}, null, 8,
|
|
4449
|
+
}, null, 8, ri))], 64)) : r("", !0),
|
|
4412
4450
|
s === n.swimlane.lanes.length - 1 && n.swimlane.direction === "horizontal" ? (_(), i(e, { key: 2 }, [a("line", {
|
|
4413
4451
|
x1: 0,
|
|
4414
4452
|
y1: d.value,
|
|
@@ -4419,8 +4457,8 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
4419
4457
|
class: "lane-divider-hit",
|
|
4420
4458
|
style: { cursor: "ns-resize" },
|
|
4421
4459
|
onClick: A((e) => P(t.id), ["stop"]),
|
|
4422
|
-
onMousedown: o[6] ||= A((e) =>
|
|
4423
|
-
}, null, 40,
|
|
4460
|
+
onMousedown: o[6] ||= A((e) => J(e, n.swimlane.lanes.length - 1), ["stop"])
|
|
4461
|
+
}, null, 40, ii), a("line", {
|
|
4424
4462
|
x1: 0,
|
|
4425
4463
|
y1: d.value,
|
|
4426
4464
|
x2: n.swimlane.width,
|
|
@@ -4430,7 +4468,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
4430
4468
|
"stroke-dasharray": "4,2",
|
|
4431
4469
|
class: "lane-divider",
|
|
4432
4470
|
"pointer-events": "none"
|
|
4433
|
-
}, null, 8,
|
|
4471
|
+
}, null, 8, ai)], 64)) : r("", !0),
|
|
4434
4472
|
s === n.swimlane.lanes.length - 1 && n.swimlane.direction === "vertical" ? (_(), i(e, { key: 3 }, [a("line", {
|
|
4435
4473
|
x1: g(n.swimlane.lanes.length),
|
|
4436
4474
|
y1: 0,
|
|
@@ -4441,8 +4479,8 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
4441
4479
|
class: "lane-divider-hit",
|
|
4442
4480
|
style: { cursor: "ew-resize" },
|
|
4443
4481
|
onClick: A((e) => P(t.id), ["stop"]),
|
|
4444
|
-
onMousedown: o[7] ||= A((e) =>
|
|
4445
|
-
}, null, 40,
|
|
4482
|
+
onMousedown: o[7] ||= A((e) => J(e, n.swimlane.lanes.length - 1), ["stop"])
|
|
4483
|
+
}, null, 40, oi), a("line", {
|
|
4446
4484
|
x1: g(n.swimlane.lanes.length),
|
|
4447
4485
|
y1: 0,
|
|
4448
4486
|
x2: g(n.swimlane.lanes.length),
|
|
@@ -4452,7 +4490,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
4452
4490
|
"stroke-dasharray": "4,2",
|
|
4453
4491
|
class: "lane-divider",
|
|
4454
4492
|
"pointer-events": "none"
|
|
4455
|
-
}, null, 8,
|
|
4493
|
+
}, null, 8, si)], 64)) : r("", !0),
|
|
4456
4494
|
n.swimlane.direction === "horizontal" ? (_(), i("rect", {
|
|
4457
4495
|
key: 4,
|
|
4458
4496
|
x: l.value + 4,
|
|
@@ -4466,7 +4504,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
4466
4504
|
opacity: t.opacity ?? .5,
|
|
4467
4505
|
class: "lane-bg",
|
|
4468
4506
|
onClick: A((e) => P(t.id), ["stop"])
|
|
4469
|
-
}, null, 8,
|
|
4507
|
+
}, null, 8, ci)) : (_(), i("rect", {
|
|
4470
4508
|
key: 5,
|
|
4471
4509
|
x: g(s) + 4,
|
|
4472
4510
|
y: u.value + 4,
|
|
@@ -4479,7 +4517,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
4479
4517
|
opacity: t.opacity ?? .5,
|
|
4480
4518
|
class: "lane-bg",
|
|
4481
4519
|
onClick: A((e) => P(t.id), ["stop"])
|
|
4482
|
-
}, null, 8,
|
|
4520
|
+
}, null, 8, li)),
|
|
4483
4521
|
t.headerColor ? O((_(), i("rect", {
|
|
4484
4522
|
key: 6,
|
|
4485
4523
|
x: l.value + 4,
|
|
@@ -4489,7 +4527,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
4489
4527
|
fill: t.headerColor,
|
|
4490
4528
|
rx: "2",
|
|
4491
4529
|
"pointer-events": "none"
|
|
4492
|
-
}, null, 8,
|
|
4530
|
+
}, null, 8, ui)), [[T, n.swimlane.direction === "horizontal"]]) : r("", !0),
|
|
4493
4531
|
t.headerColor ? O((_(), i("rect", {
|
|
4494
4532
|
key: 7,
|
|
4495
4533
|
x: g(s) + 4,
|
|
@@ -4499,7 +4537,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
4499
4537
|
fill: t.headerColor,
|
|
4500
4538
|
rx: "2",
|
|
4501
4539
|
"pointer-events": "none"
|
|
4502
|
-
}, null, 8,
|
|
4540
|
+
}, null, 8, di)), [[T, n.swimlane.direction === "vertical"]]) : r("", !0),
|
|
4503
4541
|
n.swimlane.direction === "horizontal" && F.value !== t.id ? (_(), i("text", {
|
|
4504
4542
|
key: 8,
|
|
4505
4543
|
x: t.textAlign === "center" ? (l.value + n.swimlane.width) / 2 : t.textAlign === "right" ? n.swimlane.width - 10 : l.value + 10,
|
|
@@ -4514,7 +4552,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
4514
4552
|
class: "lane-label",
|
|
4515
4553
|
onClick: A((e) => P(t.id), ["stop"]),
|
|
4516
4554
|
onDblclick: A((e) => R(t), ["stop"])
|
|
4517
|
-
}, S(t.name), 41,
|
|
4555
|
+
}, S(t.name), 41, fi)) : n.swimlane.direction === "vertical" && F.value !== t.id ? (_(), i("text", {
|
|
4518
4556
|
key: 9,
|
|
4519
4557
|
x: t.textAlign === "center" ? g(s) + v(s) / 2 : t.textAlign === "right" ? g(s) + v(s) - 10 : g(s) + 10,
|
|
4520
4558
|
y: u.value + 17,
|
|
@@ -4528,14 +4566,14 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
4528
4566
|
class: "lane-label",
|
|
4529
4567
|
onClick: A((e) => P(t.id), ["stop"]),
|
|
4530
4568
|
onDblclick: A((e) => R(t), ["stop"])
|
|
4531
|
-
}, S(t.name), 41,
|
|
4569
|
+
}, S(t.name), 41, pi)) : r("", !0),
|
|
4532
4570
|
F.value === t.id && n.swimlane.direction === "horizontal" ? (_(), i("foreignObject", {
|
|
4533
4571
|
key: 10,
|
|
4534
4572
|
x: l.value + 8,
|
|
4535
4573
|
y: h(s) + 4,
|
|
4536
4574
|
width: n.swimlane.width - l.value - 16,
|
|
4537
4575
|
height: 26
|
|
4538
|
-
}, [a("div",
|
|
4576
|
+
}, [a("div", hi, [O(a("input", {
|
|
4539
4577
|
ref_for: !0,
|
|
4540
4578
|
ref_key: "laneNameInputRef",
|
|
4541
4579
|
ref: L,
|
|
@@ -4552,14 +4590,14 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
4552
4590
|
onBlur: (e) => z(t),
|
|
4553
4591
|
onKeydown: [k((e) => z(t), ["enter"]), k(B, ["escape"])],
|
|
4554
4592
|
onClick: o[9] ||= A(() => {}, ["stop"])
|
|
4555
|
-
}, null, 44,
|
|
4593
|
+
}, null, 44, gi), [[w, I.value]])])], 8, mi)) : r("", !0),
|
|
4556
4594
|
F.value === t.id && n.swimlane.direction === "vertical" ? (_(), i("foreignObject", {
|
|
4557
4595
|
key: 11,
|
|
4558
4596
|
x: g(s) + 8,
|
|
4559
4597
|
y: u.value + 4,
|
|
4560
4598
|
width: v(s) - 16,
|
|
4561
4599
|
height: 26
|
|
4562
|
-
}, [a("div",
|
|
4600
|
+
}, [a("div", vi, [O(a("input", {
|
|
4563
4601
|
ref_for: !0,
|
|
4564
4602
|
ref_key: "laneNameInputRef",
|
|
4565
4603
|
ref: L,
|
|
@@ -4576,7 +4614,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
4576
4614
|
onBlur: (e) => z(t),
|
|
4577
4615
|
onKeydown: [k((e) => z(t), ["enter"]), k(B, ["escape"])],
|
|
4578
4616
|
onClick: o[11] ||= A(() => {}, ["stop"])
|
|
4579
|
-
}, null, 44,
|
|
4617
|
+
}, null, 44, yi), [[w, I.value]])])], 8, _i)) : r("", !0)
|
|
4580
4618
|
]))), 128)) : r("", !0),
|
|
4581
4619
|
n.selected ? (_(), i(e, { key: 7 }, [
|
|
4582
4620
|
a("rect", {
|
|
@@ -4590,7 +4628,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
4590
4628
|
style: { cursor: "ew-resize" },
|
|
4591
4629
|
onMousedown: o[12] ||= A((e) => W(e, "right"), ["stop", "prevent"]),
|
|
4592
4630
|
onClick: o[13] ||= A(() => {}, ["stop"])
|
|
4593
|
-
}, null, 40,
|
|
4631
|
+
}, null, 40, bi),
|
|
4594
4632
|
a("rect", {
|
|
4595
4633
|
x: n.swimlane.width / 2 - 10,
|
|
4596
4634
|
y: d.value - 4,
|
|
@@ -4602,7 +4640,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
4602
4640
|
style: { cursor: "ns-resize" },
|
|
4603
4641
|
onMousedown: o[14] ||= A((e) => W(e, "bottom"), ["stop", "prevent"]),
|
|
4604
4642
|
onClick: o[15] ||= A(() => {}, ["stop"])
|
|
4605
|
-
}, null, 40,
|
|
4643
|
+
}, null, 40, xi),
|
|
4606
4644
|
a("rect", {
|
|
4607
4645
|
x: g(n.swimlane.lanes?.length || 0) - 6,
|
|
4608
4646
|
y: d.value - 6,
|
|
@@ -4614,34 +4652,34 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
4614
4652
|
style: { cursor: "nwse-resize" },
|
|
4615
4653
|
onMousedown: o[16] ||= A((e) => W(e, "corner"), ["stop", "prevent"]),
|
|
4616
4654
|
onClick: o[17] ||= A(() => {}, ["stop"])
|
|
4617
|
-
}, null, 40,
|
|
4655
|
+
}, null, 40, Si)
|
|
4618
4656
|
], 64)) : r("", !0),
|
|
4619
4657
|
K.value === null ? r("", !0) : (_(), i(e, { key: 8 }, [n.swimlane.direction === "horizontal" ? (_(), i("line", {
|
|
4620
4658
|
key: 0,
|
|
4621
4659
|
x1: 0,
|
|
4622
|
-
y1:
|
|
4660
|
+
y1: ee.value,
|
|
4623
4661
|
x2: n.swimlane.width,
|
|
4624
|
-
y2:
|
|
4662
|
+
y2: ee.value,
|
|
4625
4663
|
stroke: "#409eff",
|
|
4626
4664
|
"stroke-width": "2",
|
|
4627
4665
|
"stroke-dasharray": "6,3"
|
|
4628
|
-
}, null, 8,
|
|
4666
|
+
}, null, 8, Ci)) : (_(), i("line", {
|
|
4629
4667
|
key: 1,
|
|
4630
|
-
x1:
|
|
4668
|
+
x1: q.value,
|
|
4631
4669
|
y1: 0,
|
|
4632
|
-
x2:
|
|
4670
|
+
x2: q.value,
|
|
4633
4671
|
y2: d.value,
|
|
4634
4672
|
stroke: "#409eff",
|
|
4635
4673
|
"stroke-width": "2",
|
|
4636
4674
|
"stroke-dasharray": "6,3"
|
|
4637
|
-
}, null, 8,
|
|
4638
|
-
], 42,
|
|
4675
|
+
}, null, 8, wi))], 64))
|
|
4676
|
+
], 42, Hr));
|
|
4639
4677
|
}
|
|
4640
|
-
}, [["__scopeId", "data-v-8e00b7cb"]]),
|
|
4678
|
+
}, [["__scopeId", "data-v-8e00b7cb"]]), Ei = [
|
|
4641
4679
|
"width",
|
|
4642
4680
|
"height",
|
|
4643
4681
|
"viewBox"
|
|
4644
|
-
],
|
|
4682
|
+
], Di = ["width", "height"], Oi = ["d"], ki = ["transform"], Ai = {
|
|
4645
4683
|
key: 0,
|
|
4646
4684
|
x: "-5000",
|
|
4647
4685
|
y: "-5000",
|
|
@@ -4649,12 +4687,12 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
4649
4687
|
height: "10000",
|
|
4650
4688
|
fill: "url(#grid)",
|
|
4651
4689
|
class: "grid-bg"
|
|
4652
|
-
},
|
|
4690
|
+
}, ji = { key: 1 }, Mi = [
|
|
4653
4691
|
"x1",
|
|
4654
4692
|
"y1",
|
|
4655
4693
|
"x2",
|
|
4656
4694
|
"y2"
|
|
4657
|
-
],
|
|
4695
|
+
], Ni = { class: "tooltip-content" }, Pi = { class: "zoom-controls" }, Fi = { class: "zoom-label" }, Ii = /*#__PURE__*/ Q({
|
|
4658
4696
|
__name: "DiagramCanvas",
|
|
4659
4697
|
props: {
|
|
4660
4698
|
nodes: {
|
|
@@ -4764,7 +4802,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
4764
4802
|
x: e.clientX,
|
|
4765
4803
|
y: e.clientY
|
|
4766
4804
|
}, e.preventDefault());
|
|
4767
|
-
},
|
|
4805
|
+
}, ee = (e) => {
|
|
4768
4806
|
if (M.value) {
|
|
4769
4807
|
let t = e.clientX - N.value.x, n = e.clientY - N.value.y;
|
|
4770
4808
|
(Math.abs(t) > 3 || Math.abs(n) > 3) && (G = !0), E.value += t, D.value += n, N.value = {
|
|
@@ -4779,28 +4817,28 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
4779
4817
|
y: (e.clientY - t.top - D.value) / T.value
|
|
4780
4818
|
};
|
|
4781
4819
|
}
|
|
4782
|
-
},
|
|
4820
|
+
}, q = () => {
|
|
4783
4821
|
M.value = !1, j.value = !1, d.autoConnectMode && f("end-connect", null);
|
|
4784
|
-
},
|
|
4822
|
+
}, te = (e) => {
|
|
4785
4823
|
let t = e.deltaY > 0 ? -.1 : .1;
|
|
4786
4824
|
T.value = Math.min(Math.max(T.value + t, .2), 3);
|
|
4787
|
-
},
|
|
4825
|
+
}, J = () => {
|
|
4788
4826
|
T.value = Math.min(T.value + .1, 3);
|
|
4789
|
-
},
|
|
4827
|
+
}, Y = () => {
|
|
4790
4828
|
T.value = Math.max(T.value - .1, .2);
|
|
4791
|
-
},
|
|
4829
|
+
}, ne = () => {
|
|
4792
4830
|
T.value = 1, E.value = 0, D.value = 0;
|
|
4793
|
-
},
|
|
4831
|
+
}, re = () => {
|
|
4794
4832
|
f("fit-view");
|
|
4795
|
-
},
|
|
4833
|
+
}, ie = (e, t, n) => {
|
|
4796
4834
|
f("node-drag", e, t, n);
|
|
4797
|
-
},
|
|
4835
|
+
}, ae = (e, t, n) => {
|
|
4798
4836
|
f("node-resize", e, t, n);
|
|
4799
|
-
},
|
|
4837
|
+
}, X = (e, t, n, r) => {
|
|
4800
4838
|
f("update-waypoint", e, t, n, r);
|
|
4801
|
-
}, ae = (e) => {
|
|
4802
|
-
(e.key === "Delete" || e.key === "Backspace") && d.selectedNodeId && f("select-node", null), e.key === "Escape" && f("reset-state");
|
|
4803
4839
|
}, oe = (e) => {
|
|
4840
|
+
(e.key === "Delete" || e.key === "Backspace") && d.selectedNodeId && f("select-node", null), e.key === "Escape" && f("reset-state");
|
|
4841
|
+
}, se = (e) => {
|
|
4804
4842
|
e.preventDefault();
|
|
4805
4843
|
let t = e.dataTransfer.getData("node-type");
|
|
4806
4844
|
if (!t) return;
|
|
@@ -4808,26 +4846,26 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
4808
4846
|
f("drop-node", t, (e.clientX - n.left - E.value) / T.value, (e.clientY - n.top - D.value) / T.value);
|
|
4809
4847
|
};
|
|
4810
4848
|
return h(() => {
|
|
4811
|
-
v.value?.addEventListener("drop",
|
|
4849
|
+
v.value?.addEventListener("drop", se), v.value?.addEventListener("dragover", (e) => e.preventDefault()), window.addEventListener("keydown", u);
|
|
4812
4850
|
}), g(() => {
|
|
4813
|
-
v.value?.removeEventListener("drop",
|
|
4851
|
+
v.value?.removeEventListener("drop", se), window.removeEventListener("keydown", u);
|
|
4814
4852
|
}), s({
|
|
4815
|
-
fitView:
|
|
4816
|
-
resetView:
|
|
4817
|
-
zoomIn:
|
|
4818
|
-
zoomOut:
|
|
4853
|
+
fitView: re,
|
|
4854
|
+
resetView: ne,
|
|
4855
|
+
zoomIn: J,
|
|
4856
|
+
zoomOut: Y,
|
|
4819
4857
|
svgRef: x
|
|
4820
4858
|
}), (t, s) => (_(), i("div", {
|
|
4821
4859
|
class: "diagram-canvas",
|
|
4822
4860
|
ref_key: "containerRef",
|
|
4823
4861
|
ref: v,
|
|
4824
4862
|
onMousedown: K,
|
|
4825
|
-
onMousemove:
|
|
4826
|
-
onMouseup:
|
|
4827
|
-
onWheel: A(
|
|
4863
|
+
onMousemove: ee,
|
|
4864
|
+
onMouseup: q,
|
|
4865
|
+
onWheel: A(te, ["prevent"]),
|
|
4828
4866
|
onClick: U,
|
|
4829
4867
|
onContextmenu: A(W, ["prevent"]),
|
|
4830
|
-
onKeydown:
|
|
4868
|
+
onKeydown: oe,
|
|
4831
4869
|
tabindex: "0"
|
|
4832
4870
|
}, [
|
|
4833
4871
|
(_(), i("svg", {
|
|
@@ -4847,8 +4885,8 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
4847
4885
|
fill: "none",
|
|
4848
4886
|
stroke: "#e8e8e8",
|
|
4849
4887
|
"stroke-width": "1"
|
|
4850
|
-
}, null, 8,
|
|
4851
|
-
O.value ? (_(), i("rect",
|
|
4888
|
+
}, null, 8, Oi)], 8, Di), s[11] ||= o("<filter id=\"shadow\" x=\"-20%\" y=\"-20%\" width=\"140%\" height=\"140%\" data-v-878b95c1><feDropShadow dx=\"2\" dy=\"2\" stdDeviation=\"3\" flood-opacity=\"0.15\" data-v-878b95c1></feDropShadow></filter><filter id=\"glow\" data-v-878b95c1><feGaussianBlur stdDeviation=\"3\" result=\"coloredBlur\" data-v-878b95c1></feGaussianBlur><feMerge data-v-878b95c1><feMergeNode in=\"coloredBlur\" data-v-878b95c1></feMergeNode><feMergeNode in=\"SourceGraphic\" data-v-878b95c1></feMergeNode></feMerge></filter><filter id=\"glass-shadow\" x=\"-20%\" y=\"-20%\" width=\"140%\" height=\"140%\" data-v-878b95c1><feDropShadow dx=\"4\" dy=\"4\" stdDeviation=\"8\" flood-opacity=\"0.1\" data-v-878b95c1></feDropShadow><feGaussianBlur in=\"SourceAlpha\" stdDeviation=\"1\" result=\"blur\" data-v-878b95c1></feGaussianBlur><feOffset in=\"blur\" dx=\"0\" dy=\"-2\" result=\"offsetBlur\" data-v-878b95c1></feOffset><feFlood flood-color=\"white\" flood-opacity=\"0.2\" result=\"color\" data-v-878b95c1></feFlood><feComposite in=\"color\" in2=\"offsetBlur\" operator=\"in\" result=\"shadow\" data-v-878b95c1></feComposite><feMerge data-v-878b95c1><feMergeNode in=\"shadow\" data-v-878b95c1></feMergeNode><feMergeNode in=\"SourceGraphic\" data-v-878b95c1></feMergeNode></feMerge></filter><filter id=\"neon-glow\" x=\"-50%\" y=\"-50%\" width=\"200%\" height=\"200%\" data-v-878b95c1><feGaussianBlur stdDeviation=\"4\" result=\"blur\" data-v-878b95c1></feGaussianBlur><feFlood flood-color=\"currentColor\" flood-opacity=\"0.6\" result=\"color\" data-v-878b95c1></feFlood><feComposite in=\"color\" in2=\"blur\" operator=\"in\" result=\"glow\" data-v-878b95c1></feComposite><feMerge data-v-878b95c1><feMergeNode in=\"glow\" data-v-878b95c1></feMergeNode><feMergeNode in=\"glow\" data-v-878b95c1></feMergeNode><feMergeNode in=\"SourceGraphic\" data-v-878b95c1></feMergeNode></feMerge></filter><filter id=\"neon-glow-strong\" x=\"-50%\" y=\"-50%\" width=\"200%\" height=\"200%\" data-v-878b95c1><feGaussianBlur stdDeviation=\"6\" result=\"blur\" data-v-878b95c1></feGaussianBlur><feFlood flood-color=\"currentColor\" flood-opacity=\"0.8\" result=\"color\" data-v-878b95c1></feFlood><feComposite in=\"color\" in2=\"blur\" operator=\"in\" result=\"glow\" data-v-878b95c1></feComposite><feMerge data-v-878b95c1><feMergeNode in=\"glow\" data-v-878b95c1></feMergeNode><feMergeNode in=\"glow\" data-v-878b95c1></feMergeNode><feMergeNode in=\"glow\" data-v-878b95c1></feMergeNode><feMergeNode in=\"SourceGraphic\" data-v-878b95c1></feMergeNode></feMerge></filter><filter id=\"sketch\" x=\"-10%\" y=\"-10%\" width=\"120%\" height=\"120%\" data-v-878b95c1><feTurbulence type=\"turbulence\" baseFrequency=\"0.03\" numOctaves=\"3\" seed=\"1\" result=\"turbulence\" data-v-878b95c1></feTurbulence><feDisplacementMap in=\"SourceGraphic\" in2=\"turbulence\" scale=\"4\" xChannelSelector=\"R\" yChannelSelector=\"G\" data-v-878b95c1></feDisplacementMap></filter>", 6)]), a("g", { transform: `translate(${E.value}, ${D.value}) scale(${T.value})` }, [
|
|
4889
|
+
O.value ? (_(), i("rect", Ai)) : r("", !0),
|
|
4852
4890
|
a("rect", {
|
|
4853
4891
|
x: "-5000",
|
|
4854
4892
|
y: "-5000",
|
|
@@ -4858,7 +4896,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
4858
4896
|
class: "canvas-bg",
|
|
4859
4897
|
onClick: s[0] ||= (e) => f("select-canvas")
|
|
4860
4898
|
}),
|
|
4861
|
-
(_(!0), i(e, null, b(n.swimlanes, (e) => (_(), i("g", { key: e.id }, [c(
|
|
4899
|
+
(_(!0), i(e, null, b(n.swimlanes, (e) => (_(), i("g", { key: e.id }, [c(Ti, {
|
|
4862
4900
|
swimlane: e,
|
|
4863
4901
|
selected: n.selectedSwimlaneId === e.id,
|
|
4864
4902
|
"selected-lane-id": n.selectedLaneId,
|
|
@@ -4876,14 +4914,14 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
4876
4914
|
"onSelect",
|
|
4877
4915
|
"onSelectLane"
|
|
4878
4916
|
])]))), 128)),
|
|
4879
|
-
(_(!0), i(e, null, b(n.edges, (e) => (_(), i("g", { key: e.id }, [c(
|
|
4917
|
+
(_(!0), i(e, null, b(n.edges, (e) => (_(), i("g", { key: e.id }, [c(Vr, {
|
|
4880
4918
|
edge: e,
|
|
4881
4919
|
source: H(e.sourceId),
|
|
4882
4920
|
target: H(e.targetId),
|
|
4883
4921
|
selected: n.selectedEdgeId === e.id,
|
|
4884
4922
|
"animation-playing": n.animationPlaying,
|
|
4885
4923
|
onSelect: (n) => t.$emit("select-edge", e.id),
|
|
4886
|
-
onUpdateWaypoint:
|
|
4924
|
+
onUpdateWaypoint: X,
|
|
4887
4925
|
onResetState: s[6] ||= (e) => t.$emit("reset-state"),
|
|
4888
4926
|
onHoverRemark: V
|
|
4889
4927
|
}, null, 8, [
|
|
@@ -4894,7 +4932,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
4894
4932
|
"animation-playing",
|
|
4895
4933
|
"onSelect"
|
|
4896
4934
|
])]))), 128)),
|
|
4897
|
-
(_(!0), i(e, null, b(I.value, (e) => (_(), i("g", { key: e.id }, [c(
|
|
4935
|
+
(_(!0), i(e, null, b(I.value, (e) => (_(), i("g", { key: e.id }, [c(rr, {
|
|
4898
4936
|
node: e,
|
|
4899
4937
|
selected: n.selectedNodeId === e.id,
|
|
4900
4938
|
"connect-mode": n.connectMode,
|
|
@@ -4906,8 +4944,8 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
4906
4944
|
onStartConnect: (n) => t.$emit("start-connect", e.id),
|
|
4907
4945
|
onEndConnect: (n) => t.$emit("end-connect", e.id),
|
|
4908
4946
|
onAutoConnectStart: (n) => t.$emit("auto-connect-start", e.id),
|
|
4909
|
-
onDrag:
|
|
4910
|
-
onResize:
|
|
4947
|
+
onDrag: ie,
|
|
4948
|
+
onResize: ae,
|
|
4911
4949
|
onDragEnd: s[7] ||= (e) => t.$emit("node-drag-end", e),
|
|
4912
4950
|
onResizeEnd: s[8] ||= (e) => t.$emit("node-resize-end", e),
|
|
4913
4951
|
onResetState: s[9] ||= (e) => t.$emit("reset-state"),
|
|
@@ -4925,7 +4963,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
4925
4963
|
"onEndConnect",
|
|
4926
4964
|
"onAutoConnectStart"
|
|
4927
4965
|
])]))), 128)),
|
|
4928
|
-
L.value && P.value ? (_(), i("g",
|
|
4966
|
+
L.value && P.value ? (_(), i("g", ji, [a("line", {
|
|
4929
4967
|
x1: L.value.x + L.value.width / 2,
|
|
4930
4968
|
y1: L.value.y + L.value.height / 2,
|
|
4931
4969
|
x2: P.value.x,
|
|
@@ -4933,8 +4971,8 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
4933
4971
|
stroke: "#409eff",
|
|
4934
4972
|
"stroke-width": "2",
|
|
4935
4973
|
"stroke-dasharray": "5,5"
|
|
4936
|
-
}, null, 8,
|
|
4937
|
-
], 8,
|
|
4974
|
+
}, null, 8, Mi)])) : r("", !0)
|
|
4975
|
+
], 8, ki)], 8, Ei)),
|
|
4938
4976
|
R.value && R.value.remark ? (_(), i("div", {
|
|
4939
4977
|
key: 0,
|
|
4940
4978
|
class: "remark-tooltip",
|
|
@@ -4942,23 +4980,23 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
4942
4980
|
left: z.value + "px",
|
|
4943
4981
|
top: B.value + "px"
|
|
4944
4982
|
})
|
|
4945
|
-
}, [a("div",
|
|
4946
|
-
a("div",
|
|
4983
|
+
}, [a("div", Ni, S(R.value.remark), 1)], 4)) : r("", !0),
|
|
4984
|
+
a("div", Pi, [
|
|
4947
4985
|
a("button", {
|
|
4948
|
-
onClick:
|
|
4986
|
+
onClick: J,
|
|
4949
4987
|
title: "放大"
|
|
4950
4988
|
}, "+"),
|
|
4951
|
-
a("span",
|
|
4989
|
+
a("span", Fi, S(Math.round(T.value * 100)) + "%", 1),
|
|
4952
4990
|
a("button", {
|
|
4953
|
-
onClick:
|
|
4991
|
+
onClick: Y,
|
|
4954
4992
|
title: "缩小"
|
|
4955
4993
|
}, "-"),
|
|
4956
4994
|
a("button", {
|
|
4957
|
-
onClick:
|
|
4995
|
+
onClick: ne,
|
|
4958
4996
|
title: "重置视图"
|
|
4959
4997
|
}, "⌂"),
|
|
4960
4998
|
a("button", {
|
|
4961
|
-
onClick:
|
|
4999
|
+
onClick: re,
|
|
4962
5000
|
title: "适应画布"
|
|
4963
5001
|
}, "⊞"),
|
|
4964
5002
|
a("button", {
|
|
@@ -4969,10 +5007,10 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
4969
5007
|
])
|
|
4970
5008
|
], 544));
|
|
4971
5009
|
}
|
|
4972
|
-
}, [["__scopeId", "data-v-878b95c1"]]),
|
|
5010
|
+
}, [["__scopeId", "data-v-878b95c1"]]), Li = { class: "param-dialog" }, Ri = { class: "json-import" }, zi = { class: "param-list" }, Bi = { class: "col-index" }, Vi = { class: "col-action" }, Hi = {
|
|
4973
5011
|
key: 0,
|
|
4974
5012
|
class: "param-empty"
|
|
4975
|
-
},
|
|
5013
|
+
}, Ui = /*#__PURE__*/ Q({
|
|
4976
5014
|
__name: "NodeParamDialog",
|
|
4977
5015
|
props: {
|
|
4978
5016
|
modelValue: {
|
|
@@ -5046,8 +5084,8 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
5046
5084
|
default: D(() => [...l[6] ||= [s("确定", -1)]]),
|
|
5047
5085
|
_: 1
|
|
5048
5086
|
})]),
|
|
5049
|
-
default: D(() => [a("div",
|
|
5050
|
-
a("div",
|
|
5087
|
+
default: D(() => [a("div", Li, [
|
|
5088
|
+
a("div", Ri, [c(u, {
|
|
5051
5089
|
modelValue: p.value,
|
|
5052
5090
|
"onUpdate:modelValue": l[0] ||= (e) => p.value = e,
|
|
5053
5091
|
type: "textarea",
|
|
@@ -5063,7 +5101,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
5063
5101
|
_: 1
|
|
5064
5102
|
})]),
|
|
5065
5103
|
c(T),
|
|
5066
|
-
a("div",
|
|
5104
|
+
a("div", zi, [
|
|
5067
5105
|
l[3] ||= a("div", { class: "param-list-header" }, [
|
|
5068
5106
|
a("span", { class: "col-index" }, "#"),
|
|
5069
5107
|
a("span", { class: "col-name" }, "参数名"),
|
|
@@ -5076,7 +5114,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
5076
5114
|
key: t,
|
|
5077
5115
|
class: "param-list-row"
|
|
5078
5116
|
}, [
|
|
5079
|
-
a("span",
|
|
5117
|
+
a("span", Bi, S(t + 1), 1),
|
|
5080
5118
|
c(u, {
|
|
5081
5119
|
modelValue: e.name,
|
|
5082
5120
|
"onUpdate:modelValue": (t) => e.name = t,
|
|
@@ -5124,7 +5162,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
5124
5162
|
]),
|
|
5125
5163
|
_: 1
|
|
5126
5164
|
}, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
5127
|
-
a("span",
|
|
5165
|
+
a("span", Vi, [c(y, {
|
|
5128
5166
|
size: "small",
|
|
5129
5167
|
type: "danger",
|
|
5130
5168
|
circle: "",
|
|
@@ -5137,7 +5175,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
5137
5175
|
_: 1
|
|
5138
5176
|
}, 8, ["onClick"])])
|
|
5139
5177
|
]))), 128)),
|
|
5140
|
-
f.value.length === 0 ? (_(), i("div",
|
|
5178
|
+
f.value.length === 0 ? (_(), i("div", Hi, " 暂无参数,点击下方按钮添加 ")) : r("", !0)
|
|
5141
5179
|
]),
|
|
5142
5180
|
c(y, {
|
|
5143
5181
|
size: "small",
|
|
@@ -5145,7 +5183,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
5145
5183
|
style: { "margin-top": "8px" }
|
|
5146
5184
|
}, {
|
|
5147
5185
|
default: D(() => [c(k, null, {
|
|
5148
|
-
default: D(() => [c(C(
|
|
5186
|
+
default: D(() => [c(C(q))]),
|
|
5149
5187
|
_: 1
|
|
5150
5188
|
}), l[4] ||= s(" 添加参数 ", -1)]),
|
|
5151
5189
|
_: 1
|
|
@@ -5155,48 +5193,48 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
5155
5193
|
}, 8, ["modelValue", "title"]);
|
|
5156
5194
|
};
|
|
5157
5195
|
}
|
|
5158
|
-
}, [["__scopeId", "data-v-8ae88a5a"]]),
|
|
5196
|
+
}, [["__scopeId", "data-v-8ae88a5a"]]), Wi = { class: "properties-panel" }, Gi = { class: "panel-section theme-section" }, Ki = { class: "theme-grid" }, qi = ["onClick"], Ji = { class: "theme-name" }, Yi = {
|
|
5159
5197
|
key: 0,
|
|
5160
5198
|
class: "panel-section"
|
|
5161
|
-
},
|
|
5199
|
+
}, Xi = { class: "prop-row" }, Zi = {
|
|
5162
5200
|
key: 0,
|
|
5163
5201
|
class: "prop-row prop-row-col"
|
|
5164
|
-
},
|
|
5202
|
+
}, Qi = { style: {
|
|
5165
5203
|
display: "flex",
|
|
5166
5204
|
gap: "4px",
|
|
5167
5205
|
width: "100%",
|
|
5168
5206
|
"align-items": "center"
|
|
5169
|
-
} },
|
|
5207
|
+
} }, $i = {
|
|
5170
5208
|
key: 0,
|
|
5171
5209
|
class: "image-preview"
|
|
5172
|
-
},
|
|
5210
|
+
}, ea = ["src"], ta = { class: "prop-row" }, na = { class: "prop-row" }, ra = { class: "prop-row" }, ia = { class: "prop-row" }, aa = { class: "prop-row" }, oa = { class: "prop-row" }, sa = { class: "prop-row" }, ca = { class: "prop-row" }, la = { class: "prop-row" }, ua = {
|
|
5173
5211
|
key: 1,
|
|
5174
5212
|
class: "prop-row prop-row-col"
|
|
5175
|
-
},
|
|
5213
|
+
}, da = { class: "prop-row-main" }, fa = { class: "prop-row" }, pa = {
|
|
5176
5214
|
key: 2,
|
|
5177
5215
|
class: "prop-row"
|
|
5178
|
-
},
|
|
5216
|
+
}, ma = {
|
|
5179
5217
|
key: 3,
|
|
5180
5218
|
class: "prop-row"
|
|
5181
|
-
},
|
|
5219
|
+
}, ha = { class: "prop-row" }, ga = { class: "prop-row prop-row-col" }, _a = { class: "prop-row" }, va = { class: "prop-row" }, ya = { class: "prop-row" }, ba = { class: "prop-actions" }, xa = {
|
|
5182
5220
|
key: 1,
|
|
5183
5221
|
class: "panel-section"
|
|
5184
|
-
},
|
|
5222
|
+
}, Sa = { class: "prop-row" }, Ca = { class: "prop-row" }, wa = { class: "prop-row" }, Ta = { class: "prop-row" }, Ea = { class: "prop-row" }, Da = { class: "prop-row" }, Oa = { class: "prop-row" }, ka = {
|
|
5185
5223
|
key: 0,
|
|
5186
5224
|
class: "prop-row"
|
|
5187
|
-
},
|
|
5225
|
+
}, Aa = {
|
|
5188
5226
|
key: 1,
|
|
5189
5227
|
class: "prop-row"
|
|
5190
|
-
},
|
|
5228
|
+
}, ja = { class: "prop-row prop-row-col" }, Ma = { class: "prop-actions" }, Na = {
|
|
5191
5229
|
key: 2,
|
|
5192
5230
|
class: "panel-section"
|
|
5193
|
-
},
|
|
5231
|
+
}, Pa = { class: "prop-row" }, Fa = { class: "prop-row" }, Ia = { class: "prop-row" }, La = { class: "prop-row" }, Ra = { class: "prop-row" }, za = { class: "prop-row" }, Ba = { class: "prop-row" }, Va = { class: "prop-row" }, Ha = { class: "prop-row" }, Ua = { class: "prop-row" }, Wa = { class: "prop-row" }, Ga = {
|
|
5194
5232
|
key: 3,
|
|
5195
5233
|
class: "panel-section"
|
|
5196
|
-
},
|
|
5234
|
+
}, Ka = { class: "prop-row" }, qa = { class: "prop-row" }, Ja = { class: "prop-row" }, Ya = { class: "prop-row" }, Xa = { class: "prop-row" }, Za = { class: "prop-row" }, Qa = { class: "prop-row" }, $a = { class: "prop-row" }, eo = { class: "prop-row" }, to = { class: "prop-row" }, no = { class: "prop-row" }, ro = { class: "prop-row" }, io = { class: "prop-row" }, ao = { class: "prop-actions" }, oo = {
|
|
5197
5235
|
key: 4,
|
|
5198
5236
|
class: "panel-section empty"
|
|
5199
|
-
},
|
|
5237
|
+
}, so = /*#__PURE__*/ Q({
|
|
5200
5238
|
__name: "PropertiesPanel",
|
|
5201
5239
|
props: {
|
|
5202
5240
|
selectedNode: {
|
|
@@ -5287,24 +5325,24 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
5287
5325
|
};
|
|
5288
5326
|
return (t, l) => {
|
|
5289
5327
|
let u = x("el-tag"), d = x("el-input"), y = x("el-icon"), L = x("el-button"), R = x("el-upload"), z = x("el-input-number"), B = x("el-color-picker"), V = x("el-option"), H = x("el-select"), W = x("el-checkbox"), G = x("el-slider"), K = x("el-dialog");
|
|
5290
|
-
return _(), i("div",
|
|
5291
|
-
a("div",
|
|
5328
|
+
return _(), i("div", Wi, [
|
|
5329
|
+
a("div", Gi, [l[61] ||= a("h4", null, "画布主题", -1), a("div", Ki, [(_(!0), i(e, null, b(C(X), (e, n) => (_(), i("div", {
|
|
5292
5330
|
key: n,
|
|
5293
5331
|
class: p(["theme-item", { active: o.currentTheme === n }]),
|
|
5294
5332
|
onClick: (e) => t.$emit("change-theme", n)
|
|
5295
|
-
}, [a("div", { class: p(["theme-preview", `theme-preview-${n}`]) }, [...l[60] ||= [a("div", { class: "preview-rect" }, null, -1), a("div", { class: "preview-circle" }, null, -1)]], 2), a("span",
|
|
5296
|
-
o.selectedNode ? (_(), i("div",
|
|
5333
|
+
}, [a("div", { class: p(["theme-preview", `theme-preview-${n}`]) }, [...l[60] ||= [a("div", { class: "preview-rect" }, null, -1), a("div", { class: "preview-circle" }, null, -1)]], 2), a("span", Ji, S(e.name), 1)], 10, qi))), 128))])]),
|
|
5334
|
+
o.selectedNode ? (_(), i("div", Yi, [
|
|
5297
5335
|
l[86] ||= a("h4", null, "节点属性", -1),
|
|
5298
|
-
a("div",
|
|
5336
|
+
a("div", Xi, [l[62] ||= a("label", null, "类型", -1), c(u, {
|
|
5299
5337
|
size: "small",
|
|
5300
5338
|
type: "info"
|
|
5301
5339
|
}, {
|
|
5302
5340
|
default: D(() => [s(S(O(o.selectedNode.type)), 1)]),
|
|
5303
5341
|
_: 1
|
|
5304
5342
|
})]),
|
|
5305
|
-
o.selectedNode.type === "custom" ? (_(), i("div",
|
|
5343
|
+
o.selectedNode.type === "custom" ? (_(), i("div", Zi, [
|
|
5306
5344
|
l[63] ||= a("label", null, "组件图片", -1),
|
|
5307
|
-
a("div",
|
|
5345
|
+
a("div", Qi, [
|
|
5308
5346
|
c(d, {
|
|
5309
5347
|
modelValue: o.selectedNode.image,
|
|
5310
5348
|
"onUpdate:modelValue": l[0] ||= (e) => o.selectedNode.image = e,
|
|
@@ -5322,7 +5360,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
5322
5360
|
circle: ""
|
|
5323
5361
|
}, {
|
|
5324
5362
|
default: D(() => [c(y, null, {
|
|
5325
|
-
default: D(() => [c(C(
|
|
5363
|
+
default: D(() => [c(C(ee))]),
|
|
5326
5364
|
_: 1
|
|
5327
5365
|
})]),
|
|
5328
5366
|
_: 1
|
|
@@ -5343,7 +5381,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
5343
5381
|
_: 1
|
|
5344
5382
|
})) : r("", !0)
|
|
5345
5383
|
]),
|
|
5346
|
-
o.selectedNode.image ? (_(), i("div",
|
|
5384
|
+
o.selectedNode.image ? (_(), i("div", $i, [a("img", {
|
|
5347
5385
|
src: o.selectedNode.image,
|
|
5348
5386
|
style: {
|
|
5349
5387
|
"max-width": "100%",
|
|
@@ -5351,15 +5389,15 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
5351
5389
|
border: "1px solid #e4e7ed",
|
|
5352
5390
|
"border-radius": "4px"
|
|
5353
5391
|
}
|
|
5354
|
-
}, null, 8,
|
|
5392
|
+
}, null, 8, ea)])) : r("", !0)
|
|
5355
5393
|
])) : r("", !0),
|
|
5356
|
-
a("div",
|
|
5394
|
+
a("div", ta, [l[64] ||= a("label", null, "名称", -1), c(d, {
|
|
5357
5395
|
size: "small",
|
|
5358
5396
|
modelValue: o.selectedNode.label,
|
|
5359
5397
|
"onUpdate:modelValue": l[1] ||= (e) => o.selectedNode.label = e,
|
|
5360
5398
|
onChange: N
|
|
5361
5399
|
}, null, 8, ["modelValue"])]),
|
|
5362
|
-
a("div",
|
|
5400
|
+
a("div", na, [l[65] ||= a("label", null, "宽度", -1), c(z, {
|
|
5363
5401
|
size: "small",
|
|
5364
5402
|
modelValue: o.selectedNode.width,
|
|
5365
5403
|
"onUpdate:modelValue": l[2] ||= (e) => o.selectedNode.width = e,
|
|
@@ -5367,7 +5405,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
5367
5405
|
max: 500,
|
|
5368
5406
|
onChange: N
|
|
5369
5407
|
}, null, 8, ["modelValue"])]),
|
|
5370
|
-
a("div",
|
|
5408
|
+
a("div", ra, [l[66] ||= a("label", null, "高度", -1), c(z, {
|
|
5371
5409
|
size: "small",
|
|
5372
5410
|
modelValue: o.selectedNode.height,
|
|
5373
5411
|
"onUpdate:modelValue": l[3] ||= (e) => o.selectedNode.height = e,
|
|
@@ -5375,19 +5413,19 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
5375
5413
|
max: 400,
|
|
5376
5414
|
onChange: N
|
|
5377
5415
|
}, null, 8, ["modelValue"])]),
|
|
5378
|
-
a("div",
|
|
5416
|
+
a("div", ia, [l[67] ||= a("label", null, "填充色", -1), c(B, {
|
|
5379
5417
|
size: "small",
|
|
5380
5418
|
modelValue: o.selectedNode.color,
|
|
5381
5419
|
"onUpdate:modelValue": l[4] ||= (e) => o.selectedNode.color = e,
|
|
5382
5420
|
onChange: N
|
|
5383
5421
|
}, null, 8, ["modelValue"])]),
|
|
5384
|
-
a("div",
|
|
5422
|
+
a("div", aa, [l[68] ||= a("label", null, "边框色", -1), c(B, {
|
|
5385
5423
|
size: "small",
|
|
5386
5424
|
modelValue: o.selectedNode.strokeColor,
|
|
5387
5425
|
"onUpdate:modelValue": l[5] ||= (e) => o.selectedNode.strokeColor = e,
|
|
5388
5426
|
onChange: N
|
|
5389
5427
|
}, null, 8, ["modelValue"])]),
|
|
5390
|
-
a("div",
|
|
5428
|
+
a("div", oa, [l[69] ||= a("label", null, "边框宽度", -1), c(z, {
|
|
5391
5429
|
size: "small",
|
|
5392
5430
|
modelValue: o.selectedNode.strokeWidth,
|
|
5393
5431
|
"onUpdate:modelValue": l[6] ||= (e) => o.selectedNode.strokeWidth = e,
|
|
@@ -5395,13 +5433,13 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
5395
5433
|
max: 10,
|
|
5396
5434
|
onChange: N
|
|
5397
5435
|
}, null, 8, ["modelValue"])]),
|
|
5398
|
-
a("div",
|
|
5436
|
+
a("div", sa, [l[70] ||= a("label", null, "文字色", -1), c(B, {
|
|
5399
5437
|
size: "small",
|
|
5400
5438
|
modelValue: o.selectedNode.textColor,
|
|
5401
5439
|
"onUpdate:modelValue": l[7] ||= (e) => o.selectedNode.textColor = e,
|
|
5402
5440
|
onChange: N
|
|
5403
5441
|
}, null, 8, ["modelValue"])]),
|
|
5404
|
-
a("div",
|
|
5442
|
+
a("div", ca, [l[71] ||= a("label", null, "字号", -1), c(z, {
|
|
5405
5443
|
size: "small",
|
|
5406
5444
|
modelValue: o.selectedNode.fontSize,
|
|
5407
5445
|
"onUpdate:modelValue": l[8] ||= (e) => o.selectedNode.fontSize = e,
|
|
@@ -5409,7 +5447,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
5409
5447
|
max: 36,
|
|
5410
5448
|
onChange: N
|
|
5411
5449
|
}, null, 8, ["modelValue"])]),
|
|
5412
|
-
a("div",
|
|
5450
|
+
a("div", la, [l[72] ||= a("label", null, "文字位置", -1), c(H, {
|
|
5413
5451
|
size: "small",
|
|
5414
5452
|
modelValue: o.selectedNode.labelPosition,
|
|
5415
5453
|
"onUpdate:modelValue": l[9] ||= (e) => o.selectedNode.labelPosition = e,
|
|
@@ -5443,7 +5481,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
5443
5481
|
]),
|
|
5444
5482
|
_: 1
|
|
5445
5483
|
}, 8, ["modelValue"])]),
|
|
5446
|
-
o.selectedNode.labelPosition === "left" || o.selectedNode.labelPosition === "right" ? (_(), i("div",
|
|
5484
|
+
o.selectedNode.labelPosition === "left" || o.selectedNode.labelPosition === "right" ? (_(), i("div", ua, [a("div", da, [l[73] ||= a("label", null, "文字方向", -1), c(z, {
|
|
5447
5485
|
size: "small",
|
|
5448
5486
|
modelValue: o.selectedNode.textRotation,
|
|
5449
5487
|
"onUpdate:modelValue": l[10] ||= (e) => o.selectedNode.textRotation = e,
|
|
@@ -5452,7 +5490,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
5452
5490
|
step: 15,
|
|
5453
5491
|
onChange: N
|
|
5454
5492
|
}, null, 8, ["modelValue"])]), l[74] ||= a("span", { class: "prop-hint" }, "-90°=向上 \xA0 0°=向右 \xA0 90°=向下", -1)])) : r("", !0),
|
|
5455
|
-
a("div",
|
|
5493
|
+
a("div", fa, [l[75] ||= a("label", null, "动画", -1), c(H, {
|
|
5456
5494
|
size: "small",
|
|
5457
5495
|
modelValue: o.selectedNode.animation,
|
|
5458
5496
|
"onUpdate:modelValue": l[11] ||= (e) => o.selectedNode.animation = e,
|
|
@@ -5465,7 +5503,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
5465
5503
|
}, null, 8, ["value", "label"]))), 128))]),
|
|
5466
5504
|
_: 1
|
|
5467
5505
|
}, 8, ["modelValue"])]),
|
|
5468
|
-
o.selectedNode.animation === "none" ? r("", !0) : (_(), i("div",
|
|
5506
|
+
o.selectedNode.animation === "none" ? r("", !0) : (_(), i("div", pa, [l[76] ||= a("label", null, "动画时长(秒)", -1), c(z, {
|
|
5469
5507
|
size: "small",
|
|
5470
5508
|
modelValue: o.selectedNode.animationDuration,
|
|
5471
5509
|
"onUpdate:modelValue": l[12] ||= (e) => o.selectedNode.animationDuration = e,
|
|
@@ -5474,7 +5512,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
5474
5512
|
step: .5,
|
|
5475
5513
|
onChange: N
|
|
5476
5514
|
}, null, 8, ["modelValue"])])),
|
|
5477
|
-
o.selectedNode.animation === "none" ? r("", !0) : (_(), i("div",
|
|
5515
|
+
o.selectedNode.animation === "none" ? r("", !0) : (_(), i("div", ma, [l[77] ||= a("label", null, "延迟(秒)", -1), c(z, {
|
|
5478
5516
|
size: "small",
|
|
5479
5517
|
modelValue: o.selectedNode.animationDelay,
|
|
5480
5518
|
"onUpdate:modelValue": l[13] ||= (e) => o.selectedNode.animationDelay = e,
|
|
@@ -5483,7 +5521,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
5483
5521
|
step: .5,
|
|
5484
5522
|
onChange: N
|
|
5485
5523
|
}, null, 8, ["modelValue"])])),
|
|
5486
|
-
a("div",
|
|
5524
|
+
a("div", ha, [c(W, {
|
|
5487
5525
|
modelValue: o.selectedNode.locked,
|
|
5488
5526
|
"onUpdate:modelValue": l[14] ||= (e) => o.selectedNode.locked = e,
|
|
5489
5527
|
onChange: N
|
|
@@ -5491,7 +5529,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
5491
5529
|
default: D(() => [...l[78] ||= [s("锁定", -1)]]),
|
|
5492
5530
|
_: 1
|
|
5493
5531
|
}, 8, ["modelValue"])]),
|
|
5494
|
-
a("div",
|
|
5532
|
+
a("div", ga, [l[79] ||= a("label", null, "备注说明", -1), c(d, {
|
|
5495
5533
|
modelValue: o.selectedNode.remark,
|
|
5496
5534
|
"onUpdate:modelValue": l[15] ||= (e) => o.selectedNode.remark = e,
|
|
5497
5535
|
type: "textarea",
|
|
@@ -5499,7 +5537,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
5499
5537
|
placeholder: "输入备注说明...",
|
|
5500
5538
|
onChange: N
|
|
5501
5539
|
}, null, 8, ["modelValue"])]),
|
|
5502
|
-
a("div",
|
|
5540
|
+
a("div", _a, [
|
|
5503
5541
|
l[80] ||= a("label", null, "输入参数", -1),
|
|
5504
5542
|
c(u, {
|
|
5505
5543
|
size: "small",
|
|
@@ -5514,13 +5552,13 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
5514
5552
|
onClick: g
|
|
5515
5553
|
}, {
|
|
5516
5554
|
default: D(() => [c(y, null, {
|
|
5517
|
-
default: D(() => [c(C(
|
|
5555
|
+
default: D(() => [c(C(J))]),
|
|
5518
5556
|
_: 1
|
|
5519
5557
|
})]),
|
|
5520
5558
|
_: 1
|
|
5521
5559
|
})
|
|
5522
5560
|
]),
|
|
5523
|
-
a("div",
|
|
5561
|
+
a("div", va, [
|
|
5524
5562
|
l[81] ||= a("label", null, "输出参数", -1),
|
|
5525
5563
|
c(u, {
|
|
5526
5564
|
size: "small",
|
|
@@ -5535,24 +5573,24 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
5535
5573
|
onClick: v
|
|
5536
5574
|
}, {
|
|
5537
5575
|
default: D(() => [c(y, null, {
|
|
5538
|
-
default: D(() => [c(C(
|
|
5576
|
+
default: D(() => [c(C(J))]),
|
|
5539
5577
|
_: 1
|
|
5540
5578
|
})]),
|
|
5541
5579
|
_: 1
|
|
5542
5580
|
})
|
|
5543
5581
|
]),
|
|
5544
|
-
a("div",
|
|
5582
|
+
a("div", ya, [l[82] ||= a("label", null, "动作设置", -1), c(L, {
|
|
5545
5583
|
size: "small",
|
|
5546
5584
|
circle: "",
|
|
5547
5585
|
onClick: l[16] ||= (e) => h.value = !0
|
|
5548
5586
|
}, {
|
|
5549
5587
|
default: D(() => [c(y, null, {
|
|
5550
|
-
default: D(() => [c(C(
|
|
5588
|
+
default: D(() => [c(C(J))]),
|
|
5551
5589
|
_: 1
|
|
5552
5590
|
})]),
|
|
5553
5591
|
_: 1
|
|
5554
5592
|
})]),
|
|
5555
|
-
a("div",
|
|
5593
|
+
a("div", ba, [
|
|
5556
5594
|
c(L, {
|
|
5557
5595
|
size: "small",
|
|
5558
5596
|
onClick: l[17] ||= (e) => t.$emit("bring-front")
|
|
@@ -5576,15 +5614,15 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
5576
5614
|
_: 1
|
|
5577
5615
|
})
|
|
5578
5616
|
])
|
|
5579
|
-
])) : o.selectedEdge ? (_(), i("div",
|
|
5617
|
+
])) : o.selectedEdge ? (_(), i("div", xa, [
|
|
5580
5618
|
l[98] ||= a("h4", null, "连线属性", -1),
|
|
5581
|
-
a("div",
|
|
5619
|
+
a("div", Sa, [l[87] ||= a("label", null, "标签", -1), c(d, {
|
|
5582
5620
|
size: "small",
|
|
5583
5621
|
modelValue: o.selectedEdge.label,
|
|
5584
5622
|
"onUpdate:modelValue": l[20] ||= (e) => o.selectedEdge.label = e,
|
|
5585
5623
|
onChange: N
|
|
5586
5624
|
}, null, 8, ["modelValue"])]),
|
|
5587
|
-
a("div",
|
|
5625
|
+
a("div", Ca, [l[88] ||= a("label", null, "线型", -1), c(H, {
|
|
5588
5626
|
size: "small",
|
|
5589
5627
|
modelValue: o.selectedEdge.lineStyle,
|
|
5590
5628
|
"onUpdate:modelValue": l[21] ||= (e) => o.selectedEdge.lineStyle = e,
|
|
@@ -5597,13 +5635,13 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
5597
5635
|
}, null, 8, ["value", "label"]))), 128))]),
|
|
5598
5636
|
_: 1
|
|
5599
5637
|
}, 8, ["modelValue"])]),
|
|
5600
|
-
a("div",
|
|
5638
|
+
a("div", wa, [l[89] ||= a("label", null, "线色", -1), c(B, {
|
|
5601
5639
|
size: "small",
|
|
5602
5640
|
modelValue: o.selectedEdge.lineColor,
|
|
5603
5641
|
"onUpdate:modelValue": l[22] ||= (e) => o.selectedEdge.lineColor = e,
|
|
5604
5642
|
onChange: N
|
|
5605
5643
|
}, null, 8, ["modelValue"])]),
|
|
5606
|
-
a("div",
|
|
5644
|
+
a("div", Ta, [l[90] ||= a("label", null, "线宽", -1), c(z, {
|
|
5607
5645
|
size: "small",
|
|
5608
5646
|
modelValue: o.selectedEdge.lineWidth,
|
|
5609
5647
|
"onUpdate:modelValue": l[23] ||= (e) => o.selectedEdge.lineWidth = e,
|
|
@@ -5611,7 +5649,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
5611
5649
|
max: 8,
|
|
5612
5650
|
onChange: N
|
|
5613
5651
|
}, null, 8, ["modelValue"])]),
|
|
5614
|
-
a("div",
|
|
5652
|
+
a("div", Ea, [l[91] ||= a("label", null, "箭头", -1), c(H, {
|
|
5615
5653
|
size: "small",
|
|
5616
5654
|
modelValue: o.selectedEdge.arrowType,
|
|
5617
5655
|
"onUpdate:modelValue": l[24] ||= (e) => o.selectedEdge.arrowType = e,
|
|
@@ -5626,7 +5664,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
5626
5664
|
})]),
|
|
5627
5665
|
_: 1
|
|
5628
5666
|
}, 8, ["modelValue"])]),
|
|
5629
|
-
a("div",
|
|
5667
|
+
a("div", Da, [l[92] ||= a("label", null, "曲线", -1), c(H, {
|
|
5630
5668
|
size: "small",
|
|
5631
5669
|
modelValue: o.selectedEdge.curveType,
|
|
5632
5670
|
"onUpdate:modelValue": l[25] ||= (e) => o.selectedEdge.curveType = e,
|
|
@@ -5641,7 +5679,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
5641
5679
|
})]),
|
|
5642
5680
|
_: 1
|
|
5643
5681
|
}, 8, ["modelValue"])]),
|
|
5644
|
-
a("div",
|
|
5682
|
+
a("div", Oa, [l[93] ||= a("label", null, "动画", -1), c(H, {
|
|
5645
5683
|
size: "small",
|
|
5646
5684
|
modelValue: o.selectedEdge.animation,
|
|
5647
5685
|
"onUpdate:modelValue": l[26] ||= (e) => o.selectedEdge.animation = e,
|
|
@@ -5654,7 +5692,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
5654
5692
|
}, null, 8, ["value", "label"])), 64))]),
|
|
5655
5693
|
_: 1
|
|
5656
5694
|
}, 8, ["modelValue"])]),
|
|
5657
|
-
o.selectedEdge.animation === "none" ? r("", !0) : (_(), i("div",
|
|
5695
|
+
o.selectedEdge.animation === "none" ? r("", !0) : (_(), i("div", ka, [l[94] ||= a("label", null, "动画时长(秒)", -1), c(z, {
|
|
5658
5696
|
size: "small",
|
|
5659
5697
|
modelValue: o.selectedEdge.animationDuration,
|
|
5660
5698
|
"onUpdate:modelValue": l[27] ||= (e) => o.selectedEdge.animationDuration = e,
|
|
@@ -5663,13 +5701,13 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
5663
5701
|
step: .5,
|
|
5664
5702
|
onChange: N
|
|
5665
5703
|
}, null, 8, ["modelValue"])])),
|
|
5666
|
-
o.selectedEdge.animation === "none" ? r("", !0) : (_(), i("div",
|
|
5704
|
+
o.selectedEdge.animation === "none" ? r("", !0) : (_(), i("div", Aa, [l[95] ||= a("label", null, "粒子颜色", -1), c(B, {
|
|
5667
5705
|
size: "small",
|
|
5668
5706
|
modelValue: o.selectedEdge.particleColor,
|
|
5669
5707
|
"onUpdate:modelValue": l[28] ||= (e) => o.selectedEdge.particleColor = e,
|
|
5670
5708
|
onChange: N
|
|
5671
5709
|
}, null, 8, ["modelValue"])])),
|
|
5672
|
-
a("div",
|
|
5710
|
+
a("div", ja, [l[96] ||= a("label", null, "备注说明", -1), c(d, {
|
|
5673
5711
|
modelValue: o.selectedEdge.remark,
|
|
5674
5712
|
"onUpdate:modelValue": l[29] ||= (e) => o.selectedEdge.remark = e,
|
|
5675
5713
|
type: "textarea",
|
|
@@ -5677,7 +5715,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
5677
5715
|
placeholder: "输入备注说明...",
|
|
5678
5716
|
onChange: N
|
|
5679
5717
|
}, null, 8, ["modelValue"])]),
|
|
5680
|
-
a("div",
|
|
5718
|
+
a("div", Ma, [c(L, {
|
|
5681
5719
|
size: "small",
|
|
5682
5720
|
type: "danger",
|
|
5683
5721
|
onClick: l[30] ||= (e) => t.$emit("delete-edge")
|
|
@@ -5685,15 +5723,15 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
5685
5723
|
default: D(() => [...l[97] ||= [s("删除连线", -1)]]),
|
|
5686
5724
|
_: 1
|
|
5687
5725
|
})])
|
|
5688
|
-
])) : o.selectedLane ? (_(), i("div",
|
|
5726
|
+
])) : o.selectedLane ? (_(), i("div", Na, [
|
|
5689
5727
|
l[110] ||= a("h4", null, "泳道名称属性", -1),
|
|
5690
|
-
a("div",
|
|
5728
|
+
a("div", Pa, [l[99] ||= a("label", null, "名称", -1), c(d, {
|
|
5691
5729
|
size: "small",
|
|
5692
5730
|
modelValue: o.selectedLane.name,
|
|
5693
5731
|
"onUpdate:modelValue": l[31] ||= (e) => o.selectedLane.name = e,
|
|
5694
5732
|
onChange: P
|
|
5695
5733
|
}, null, 8, ["modelValue"])]),
|
|
5696
|
-
a("div",
|
|
5734
|
+
a("div", Fa, [l[100] ||= a("label", null, "高度", -1), c(z, {
|
|
5697
5735
|
size: "small",
|
|
5698
5736
|
modelValue: o.selectedLane.height,
|
|
5699
5737
|
"onUpdate:modelValue": l[32] ||= (e) => o.selectedLane.height = e,
|
|
@@ -5701,20 +5739,20 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
5701
5739
|
max: 500,
|
|
5702
5740
|
onChange: P
|
|
5703
5741
|
}, null, 8, ["modelValue"])]),
|
|
5704
|
-
a("div",
|
|
5742
|
+
a("div", Ia, [l[101] ||= a("label", null, "背景色", -1), c(B, {
|
|
5705
5743
|
size: "small",
|
|
5706
5744
|
modelValue: o.selectedLane.color,
|
|
5707
5745
|
"onUpdate:modelValue": l[33] ||= (e) => o.selectedLane.color = e,
|
|
5708
5746
|
onChange: P
|
|
5709
5747
|
}, null, 8, ["modelValue"])]),
|
|
5710
|
-
a("div",
|
|
5748
|
+
a("div", La, [l[102] ||= a("label", null, "名称行背景", -1), c(B, {
|
|
5711
5749
|
size: "small",
|
|
5712
5750
|
modelValue: o.selectedLane.headerColor,
|
|
5713
5751
|
"onUpdate:modelValue": l[34] ||= (e) => o.selectedLane.headerColor = e,
|
|
5714
5752
|
"show-alpha": "",
|
|
5715
5753
|
onChange: P
|
|
5716
5754
|
}, null, 8, ["modelValue"])]),
|
|
5717
|
-
a("div",
|
|
5755
|
+
a("div", Ra, [l[103] ||= a("label", null, "背景透明度", -1), c(G, {
|
|
5718
5756
|
size: "small",
|
|
5719
5757
|
modelValue: j.value,
|
|
5720
5758
|
"onUpdate:modelValue": l[35] ||= (e) => j.value = e,
|
|
@@ -5727,13 +5765,13 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
5727
5765
|
},
|
|
5728
5766
|
onChange: M
|
|
5729
5767
|
}, null, 8, ["modelValue"])]),
|
|
5730
|
-
a("div",
|
|
5768
|
+
a("div", za, [l[104] ||= a("label", null, "文字色", -1), c(B, {
|
|
5731
5769
|
size: "small",
|
|
5732
5770
|
modelValue: o.selectedLane.textColor,
|
|
5733
5771
|
"onUpdate:modelValue": l[36] ||= (e) => o.selectedLane.textColor = e,
|
|
5734
5772
|
onChange: P
|
|
5735
5773
|
}, null, 8, ["modelValue"])]),
|
|
5736
|
-
a("div",
|
|
5774
|
+
a("div", Ba, [l[105] ||= a("label", null, "字号", -1), c(z, {
|
|
5737
5775
|
size: "small",
|
|
5738
5776
|
modelValue: o.selectedLane.fontSize,
|
|
5739
5777
|
"onUpdate:modelValue": l[37] ||= (e) => o.selectedLane.fontSize = e,
|
|
@@ -5741,7 +5779,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
5741
5779
|
max: 36,
|
|
5742
5780
|
onChange: P
|
|
5743
5781
|
}, null, 8, ["modelValue"])]),
|
|
5744
|
-
a("div",
|
|
5782
|
+
a("div", Va, [l[106] ||= a("label", null, "字体", -1), c(H, {
|
|
5745
5783
|
size: "small",
|
|
5746
5784
|
modelValue: o.selectedLane.fontFamily,
|
|
5747
5785
|
"onUpdate:modelValue": l[38] ||= (e) => o.selectedLane.fontFamily = e,
|
|
@@ -5783,7 +5821,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
5783
5821
|
]),
|
|
5784
5822
|
_: 1
|
|
5785
5823
|
}, 8, ["modelValue"])]),
|
|
5786
|
-
a("div",
|
|
5824
|
+
a("div", Ha, [l[107] ||= a("label", null, "字重", -1), c(H, {
|
|
5787
5825
|
size: "small",
|
|
5788
5826
|
modelValue: o.selectedLane.fontWeight,
|
|
5789
5827
|
"onUpdate:modelValue": l[39] ||= (e) => o.selectedLane.fontWeight = e,
|
|
@@ -5809,7 +5847,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
5809
5847
|
]),
|
|
5810
5848
|
_: 1
|
|
5811
5849
|
}, 8, ["modelValue"])]),
|
|
5812
|
-
a("div",
|
|
5850
|
+
a("div", Ua, [l[108] ||= a("label", null, "字体样式", -1), c(H, {
|
|
5813
5851
|
size: "small",
|
|
5814
5852
|
modelValue: o.selectedLane.fontStyle,
|
|
5815
5853
|
"onUpdate:modelValue": l[40] ||= (e) => o.selectedLane.fontStyle = e,
|
|
@@ -5831,7 +5869,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
5831
5869
|
]),
|
|
5832
5870
|
_: 1
|
|
5833
5871
|
}, 8, ["modelValue"])]),
|
|
5834
|
-
a("div",
|
|
5872
|
+
a("div", Wa, [l[109] ||= a("label", null, "文本对齐", -1), c(H, {
|
|
5835
5873
|
size: "small",
|
|
5836
5874
|
modelValue: o.selectedLane.textAlign,
|
|
5837
5875
|
"onUpdate:modelValue": l[41] ||= (e) => o.selectedLane.textAlign = e,
|
|
@@ -5853,19 +5891,19 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
5853
5891
|
]),
|
|
5854
5892
|
_: 1
|
|
5855
5893
|
}, 8, ["modelValue"])])
|
|
5856
|
-
])) : o.selectedSwimlane ? (_(), i("div",
|
|
5894
|
+
])) : o.selectedSwimlane ? (_(), i("div", Ga, [
|
|
5857
5895
|
l[126] ||= a("h4", null, "泳道属性", -1),
|
|
5858
|
-
a("div",
|
|
5896
|
+
a("div", Ka, [l[111] ||= a("label", null, "名称", -1), c(d, {
|
|
5859
5897
|
size: "small",
|
|
5860
5898
|
modelValue: o.selectedSwimlane.name,
|
|
5861
5899
|
"onUpdate:modelValue": l[42] ||= (e) => o.selectedSwimlane.name = e,
|
|
5862
5900
|
onChange: N
|
|
5863
5901
|
}, null, 8, ["modelValue"])]),
|
|
5864
|
-
a("div",
|
|
5902
|
+
a("div", qa, [l[112] ||= a("label", null, "方向", -1), c(u, { size: "small" }, {
|
|
5865
5903
|
default: D(() => [s(S(o.selectedSwimlane.direction === "horizontal" ? "水平" : "垂直"), 1)]),
|
|
5866
5904
|
_: 1
|
|
5867
5905
|
})]),
|
|
5868
|
-
a("div",
|
|
5906
|
+
a("div", Ja, [l[113] ||= a("label", null, "宽度", -1), c(z, {
|
|
5869
5907
|
size: "small",
|
|
5870
5908
|
modelValue: o.selectedSwimlane.width,
|
|
5871
5909
|
"onUpdate:modelValue": l[43] ||= (e) => o.selectedSwimlane.width = e,
|
|
@@ -5873,7 +5911,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
5873
5911
|
max: 2e3,
|
|
5874
5912
|
onChange: N
|
|
5875
5913
|
}, null, 8, ["modelValue"])]),
|
|
5876
|
-
a("div",
|
|
5914
|
+
a("div", Ya, [l[114] ||= a("label", null, "高度", -1), c(z, {
|
|
5877
5915
|
size: "small",
|
|
5878
5916
|
modelValue: o.selectedSwimlane.height,
|
|
5879
5917
|
"onUpdate:modelValue": l[44] ||= (e) => o.selectedSwimlane.height = e,
|
|
@@ -5881,19 +5919,19 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
5881
5919
|
max: 1e3,
|
|
5882
5920
|
onChange: N
|
|
5883
5921
|
}, null, 8, ["modelValue"])]),
|
|
5884
|
-
a("div",
|
|
5922
|
+
a("div", Xa, [l[115] ||= a("label", null, "背景色", -1), c(B, {
|
|
5885
5923
|
size: "small",
|
|
5886
5924
|
modelValue: o.selectedSwimlane.color,
|
|
5887
5925
|
"onUpdate:modelValue": l[45] ||= (e) => o.selectedSwimlane.color = e,
|
|
5888
5926
|
onChange: N
|
|
5889
5927
|
}, null, 8, ["modelValue"])]),
|
|
5890
|
-
a("div",
|
|
5928
|
+
a("div", Za, [l[116] ||= a("label", null, "标题背景色", -1), c(B, {
|
|
5891
5929
|
size: "small",
|
|
5892
5930
|
modelValue: o.selectedSwimlane.headerColor,
|
|
5893
5931
|
"onUpdate:modelValue": l[46] ||= (e) => o.selectedSwimlane.headerColor = e,
|
|
5894
5932
|
onChange: N
|
|
5895
5933
|
}, null, 8, ["modelValue"])]),
|
|
5896
|
-
a("div",
|
|
5934
|
+
a("div", Qa, [l[117] ||= a("label", null, "标题透明度", -1), c(G, {
|
|
5897
5935
|
size: "small",
|
|
5898
5936
|
modelValue: k.value,
|
|
5899
5937
|
"onUpdate:modelValue": l[47] ||= (e) => k.value = e,
|
|
@@ -5906,13 +5944,13 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
5906
5944
|
},
|
|
5907
5945
|
onChange: A
|
|
5908
5946
|
}, null, 8, ["modelValue"])]),
|
|
5909
|
-
a("div",
|
|
5947
|
+
a("div", $a, [l[118] ||= a("label", null, "标题文字色", -1), c(B, {
|
|
5910
5948
|
size: "small",
|
|
5911
5949
|
modelValue: o.selectedSwimlane.headerTextColor,
|
|
5912
5950
|
"onUpdate:modelValue": l[48] ||= (e) => o.selectedSwimlane.headerTextColor = e,
|
|
5913
5951
|
onChange: N
|
|
5914
5952
|
}, null, 8, ["modelValue"])]),
|
|
5915
|
-
a("div",
|
|
5953
|
+
a("div", eo, [l[119] ||= a("label", null, "字号", -1), c(z, {
|
|
5916
5954
|
size: "small",
|
|
5917
5955
|
modelValue: o.selectedSwimlane.fontSize,
|
|
5918
5956
|
"onUpdate:modelValue": l[49] ||= (e) => o.selectedSwimlane.fontSize = e,
|
|
@@ -5920,7 +5958,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
5920
5958
|
max: 36,
|
|
5921
5959
|
onChange: N
|
|
5922
5960
|
}, null, 8, ["modelValue"])]),
|
|
5923
|
-
a("div",
|
|
5961
|
+
a("div", to, [l[120] ||= a("label", null, "字体", -1), c(H, {
|
|
5924
5962
|
size: "small",
|
|
5925
5963
|
modelValue: o.selectedSwimlane.fontFamily,
|
|
5926
5964
|
"onUpdate:modelValue": l[50] ||= (e) => o.selectedSwimlane.fontFamily = e,
|
|
@@ -5962,7 +6000,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
5962
6000
|
]),
|
|
5963
6001
|
_: 1
|
|
5964
6002
|
}, 8, ["modelValue"])]),
|
|
5965
|
-
a("div",
|
|
6003
|
+
a("div", no, [l[121] ||= a("label", null, "字重", -1), c(H, {
|
|
5966
6004
|
size: "small",
|
|
5967
6005
|
modelValue: o.selectedSwimlane.fontWeight,
|
|
5968
6006
|
"onUpdate:modelValue": l[51] ||= (e) => o.selectedSwimlane.fontWeight = e,
|
|
@@ -5988,7 +6026,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
5988
6026
|
]),
|
|
5989
6027
|
_: 1
|
|
5990
6028
|
}, 8, ["modelValue"])]),
|
|
5991
|
-
a("div",
|
|
6029
|
+
a("div", ro, [l[122] ||= a("label", null, "字体样式", -1), c(H, {
|
|
5992
6030
|
size: "small",
|
|
5993
6031
|
modelValue: o.selectedSwimlane.fontStyle,
|
|
5994
6032
|
"onUpdate:modelValue": l[52] ||= (e) => o.selectedSwimlane.fontStyle = e,
|
|
@@ -6010,7 +6048,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
6010
6048
|
]),
|
|
6011
6049
|
_: 1
|
|
6012
6050
|
}, 8, ["modelValue"])]),
|
|
6013
|
-
a("div",
|
|
6051
|
+
a("div", io, [l[123] ||= a("label", null, "文本对齐", -1), c(H, {
|
|
6014
6052
|
size: "small",
|
|
6015
6053
|
modelValue: o.selectedSwimlane.textAlign,
|
|
6016
6054
|
"onUpdate:modelValue": l[53] ||= (e) => o.selectedSwimlane.textAlign = e,
|
|
@@ -6032,7 +6070,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
6032
6070
|
]),
|
|
6033
6071
|
_: 1
|
|
6034
6072
|
}, 8, ["modelValue"])]),
|
|
6035
|
-
a("div",
|
|
6073
|
+
a("div", ao, [c(L, {
|
|
6036
6074
|
size: "small",
|
|
6037
6075
|
onClick: l[54] ||= (e) => t.$emit("add-lane")
|
|
6038
6076
|
}, {
|
|
@@ -6046,15 +6084,15 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
6046
6084
|
default: D(() => [...l[125] ||= [s("删除", -1)]]),
|
|
6047
6085
|
_: 1
|
|
6048
6086
|
})])
|
|
6049
|
-
])) : (_(), i("div",
|
|
6050
|
-
c(
|
|
6087
|
+
])) : (_(), i("div", oo, [...l[127] ||= [a("p", null, "选择节点或连线查看属性", -1)]])),
|
|
6088
|
+
c(Ui, {
|
|
6051
6089
|
modelValue: f.value,
|
|
6052
6090
|
"onUpdate:modelValue": l[56] ||= (e) => f.value = e,
|
|
6053
6091
|
title: "输入参数设置",
|
|
6054
6092
|
parameters: o.selectedNode?.inputParams || [],
|
|
6055
6093
|
onConfirm: w
|
|
6056
6094
|
}, null, 8, ["modelValue", "parameters"]),
|
|
6057
|
-
c(
|
|
6095
|
+
c(Ui, {
|
|
6058
6096
|
modelValue: m.value,
|
|
6059
6097
|
"onUpdate:modelValue": l[57] ||= (e) => m.value = e,
|
|
6060
6098
|
title: "输出参数设置",
|
|
@@ -6083,61 +6121,100 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
6083
6121
|
]);
|
|
6084
6122
|
};
|
|
6085
6123
|
}
|
|
6086
|
-
}, [["__scopeId", "data-v-8d0fe2b9"]]),
|
|
6124
|
+
}, [["__scopeId", "data-v-8d0fe2b9"]]), co = { class: "process-diagram-editor" }, lo = { class: "editor-header" }, uo = { class: "header-left" }, fo = { class: "header-right" }, po = {
|
|
6087
6125
|
key: 0,
|
|
6088
6126
|
class: "collab-users"
|
|
6089
|
-
},
|
|
6127
|
+
}, mo = ["title"], ho = {
|
|
6090
6128
|
key: 0,
|
|
6091
6129
|
class: "collab-more"
|
|
6092
|
-
},
|
|
6130
|
+
}, go = { class: "editor-body" }, _o = { class: "editor-main" }, vo = "diagram", yo = /*#__PURE__*/ Q({
|
|
6093
6131
|
__name: "DiagramEditor",
|
|
6094
|
-
|
|
6095
|
-
|
|
6096
|
-
|
|
6132
|
+
props: {
|
|
6133
|
+
docId: {
|
|
6134
|
+
type: [Number, String],
|
|
6135
|
+
default: null
|
|
6136
|
+
},
|
|
6137
|
+
apiBase: {
|
|
6138
|
+
type: String,
|
|
6139
|
+
default: "/api"
|
|
6140
|
+
},
|
|
6141
|
+
saveApi: {
|
|
6142
|
+
type: [String, Function],
|
|
6143
|
+
default: null
|
|
6144
|
+
},
|
|
6145
|
+
loadApi: {
|
|
6146
|
+
type: [String, Function],
|
|
6147
|
+
default: null
|
|
6148
|
+
},
|
|
6149
|
+
wsUrl: {
|
|
6150
|
+
type: String,
|
|
6151
|
+
default: ""
|
|
6152
|
+
},
|
|
6153
|
+
user: {
|
|
6154
|
+
type: Object,
|
|
6155
|
+
default: null
|
|
6156
|
+
},
|
|
6157
|
+
uiConfig: {
|
|
6158
|
+
type: Object,
|
|
6159
|
+
default: () => ({})
|
|
6160
|
+
}
|
|
6161
|
+
},
|
|
6162
|
+
setup(o) {
|
|
6163
|
+
let s = o, l = N(), u = M(), f = u.name === "ProcessDiagram" || u.name === "NewProcessDiagram", p = f ? "process" : "execution", g = f ? "process-diagram-" : "exec-diagram-", v = t(() => ({
|
|
6164
|
+
backButton: "show",
|
|
6165
|
+
titleEditable: !0,
|
|
6166
|
+
authorEditable: !0,
|
|
6167
|
+
showTypeSelector: !0,
|
|
6168
|
+
showTemplateSelector: !0,
|
|
6169
|
+
showSwimlaneSelector: !0,
|
|
6170
|
+
initialDiagramType: null,
|
|
6171
|
+
...s.uiConfig
|
|
6172
|
+
})), w = t(() => s.docId ?? u.params.id), T = t(() => s.apiBase && s.apiBase !== "/api" ? ne(s.apiBase) : ie), O = y(!1), k = y(!1), { saveVersion: A } = Ge(), j = He(), I = u.query.type, L = ae(t(() => w.value || "new-doc")), R = null, B = y(null), V = y(null), H = y(!0), U = y(1), W = y(!1), G = y(!1), ee = y([]), q = y(!1), te = y(null), J = y(w.value || null), Y = y(s.user?.name || localStorage.getItem("diagram-user-name") || ""), re = null;
|
|
6173
|
+
E(Y, (e) => {
|
|
6097
6174
|
localStorage.setItem("diagram-user-name", e || "");
|
|
6098
6175
|
});
|
|
6099
|
-
let
|
|
6176
|
+
let X = y(null), oe = y(!1), se = y(!1), ce = null, le = () => {
|
|
6100
6177
|
if (!$.value?.trim()) {
|
|
6101
6178
|
P.warning("请输入流程图名称");
|
|
6102
6179
|
return;
|
|
6103
6180
|
}
|
|
6104
|
-
if (!
|
|
6181
|
+
if (!Y.value?.trim()) {
|
|
6105
6182
|
P.warning("请输入用户名称");
|
|
6106
6183
|
return;
|
|
6107
6184
|
}
|
|
6108
6185
|
try {
|
|
6109
|
-
let e =
|
|
6110
|
-
|
|
6111
|
-
let t =
|
|
6186
|
+
let e = w.value || `diagram-${Date.now()}`;
|
|
6187
|
+
te.value = e, L.connect(e, s.wsUrl || void 0), L.setLocalUser({ name: Y.value.trim() }), W.value = !0;
|
|
6188
|
+
let t = L.awareness.value;
|
|
6112
6189
|
t.on("change", () => {
|
|
6113
|
-
|
|
6190
|
+
ee.value = Array.from(t.getStates().entries()).filter(([e, t]) => t.user).map(([e, t]) => ({
|
|
6114
6191
|
clientId: e,
|
|
6115
6192
|
...t.user
|
|
6116
6193
|
}));
|
|
6117
|
-
}),
|
|
6118
|
-
ydoc:
|
|
6194
|
+
}), j.setCollabContext({
|
|
6195
|
+
ydoc: L.doc,
|
|
6119
6196
|
provider: t?.provider || null,
|
|
6120
|
-
onlineUsers:
|
|
6121
|
-
}),
|
|
6197
|
+
onlineUsers: ee
|
|
6198
|
+
}), j.setCurrentUser({
|
|
6122
6199
|
id: t.clientID,
|
|
6123
|
-
name:
|
|
6200
|
+
name: Y.value.trim(),
|
|
6124
6201
|
color: `#${Math.floor(Math.random() * 16777215).toString(16).padStart(6, "0")}`
|
|
6125
|
-
}),
|
|
6126
|
-
e && (
|
|
6127
|
-
}),
|
|
6202
|
+
}), L.onRemoteChange("diagram", (e) => {
|
|
6203
|
+
e && (q.value = !0, Je(e), q.value = !1);
|
|
6204
|
+
}), L.syncToYjs("diagram", qe()), R && R();
|
|
6128
6205
|
let n = null, r = () => {
|
|
6129
|
-
n && clearTimeout(n),
|
|
6206
|
+
n && clearTimeout(n), W.value && !q.value && L.isConnected.value && L.syncToYjs("diagram", qe());
|
|
6130
6207
|
};
|
|
6131
|
-
|
|
6132
|
-
|
|
6133
|
-
|
|
6134
|
-
|
|
6208
|
+
ce = r, R = E([
|
|
6209
|
+
Z,
|
|
6210
|
+
he,
|
|
6211
|
+
ge
|
|
6135
6212
|
], () => {
|
|
6136
|
-
|
|
6137
|
-
}, { deep: !0 }),
|
|
6138
|
-
e && !t &&
|
|
6213
|
+
se.value || (n && clearTimeout(n), n = setTimeout(r, 300));
|
|
6214
|
+
}, { deep: !0 }), re && re(), re = E(() => L.isConnected.value, (e, t) => {
|
|
6215
|
+
e && !t && W.value && L.syncToYjs("diagram", qe());
|
|
6139
6216
|
});
|
|
6140
|
-
let i =
|
|
6217
|
+
let i = f ? "process-diagram" : "execution-diagram", a = `${window.location.origin}/${i}/${e}?collab=1`;
|
|
6141
6218
|
navigator.clipboard.writeText(a).then(() => {
|
|
6142
6219
|
P.success("协作已开启,分享链接已复制");
|
|
6143
6220
|
}).catch(() => {
|
|
@@ -6146,44 +6223,44 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
6146
6223
|
} catch (e) {
|
|
6147
6224
|
console.error("协作连接失败:", e), P.error("协作连接失败: " + (e.message || e));
|
|
6148
6225
|
}
|
|
6149
|
-
},
|
|
6150
|
-
|
|
6151
|
-
},
|
|
6152
|
-
if (!
|
|
6153
|
-
|
|
6226
|
+
}, ue = () => {
|
|
6227
|
+
R &&= (R(), null), re &&= (re(), null), L.closeCollaboration(), W.value = !1, P.info("协作已关闭");
|
|
6228
|
+
}, de = async () => {
|
|
6229
|
+
if (!W.value) {
|
|
6230
|
+
le();
|
|
6154
6231
|
return;
|
|
6155
6232
|
}
|
|
6156
|
-
let e =
|
|
6233
|
+
let e = te.value || u.params.id;
|
|
6157
6234
|
if (!e) {
|
|
6158
6235
|
P.warning("请先开启协作");
|
|
6159
6236
|
return;
|
|
6160
6237
|
}
|
|
6161
|
-
let t =
|
|
6238
|
+
let t = f ? "process-diagram" : "execution-diagram", n = `${window.location.origin}/${t}/${e}?collab=1`;
|
|
6162
6239
|
try {
|
|
6163
6240
|
await navigator.clipboard.writeText(n), P.success("分享链接已复制");
|
|
6164
6241
|
} catch {
|
|
6165
6242
|
P.info(`分享链接: ${n}`);
|
|
6166
6243
|
}
|
|
6167
|
-
}, { NODE_TYPES:
|
|
6168
|
-
...
|
|
6169
|
-
...
|
|
6170
|
-
})[
|
|
6171
|
-
|
|
6172
|
-
},
|
|
6173
|
-
|
|
6174
|
-
},
|
|
6175
|
-
|
|
6176
|
-
},
|
|
6177
|
-
let n =
|
|
6244
|
+
}, { NODE_TYPES: fe, ANIMATION_TYPES: pe, LINE_STYLES: me, nodes: Z, edges: he, swimlanes: ge, selectedNodeId: _e, selectedEdgeId: Q, selectedSwimlaneId: ye, selectedNode: be, selectedEdge: xe, connectMode: Se, connectSource: Ce, diagramType: we, diagramTitle: $, currentTheme: Te, undoStack: Ee, redoStack: De, undo: Oe, redo: ke, addNode: Ae, addEdge: je, addSwimlane: Me, addLane: Ne, updateNode: Pe, updateEdge: Fe, removeNode: Ie, removeEdge: Le, removeSwimlane: Re, clearAll: ze, selectNode: Be, selectEdge: Ue, bringToFront: We, sendToBack: Ke, toJSON: qe, fromJSON: Je, autoLayout: Ye, loadTemplate: Xe, PROCESS_TYPE_LABELS: Ze, EXECUTION_TYPE_LABELS: Qe } = ve(p, v.value.initialDiagramType || I), $e = t(() => ({
|
|
6245
|
+
...Ze,
|
|
6246
|
+
...Qe
|
|
6247
|
+
})[we.value] || "流程图"), et = t(() => ge.find((e) => e.id === ye.value) || null), tt = y(null), nt = t(() => !et.value || !tt.value ? null : et.value.lanes?.find((e) => e.id === tt.value) || null), it = () => {
|
|
6248
|
+
_e.value = null, Q.value = null, ye.value = null, tt.value = null, Se.value = !1, Ce.value = null;
|
|
6249
|
+
}, at = () => {
|
|
6250
|
+
it(), oe.value = !1, X.value = null;
|
|
6251
|
+
}, ot = (e, t) => {
|
|
6252
|
+
ye.value = e, tt.value = t;
|
|
6253
|
+
}, st = (e, t) => {
|
|
6254
|
+
let n = ge.find((t) => t.id === e);
|
|
6178
6255
|
n && Object.assign(n, t);
|
|
6179
|
-
},
|
|
6180
|
-
let r =
|
|
6256
|
+
}, ct = (e, t, n) => {
|
|
6257
|
+
let r = ge.find((t) => t.id === e);
|
|
6181
6258
|
if (r) {
|
|
6182
6259
|
let e = r.lanes?.find((e) => e.id === t);
|
|
6183
6260
|
e && Object.assign(e, n);
|
|
6184
6261
|
}
|
|
6185
|
-
},
|
|
6186
|
-
let r =
|
|
6262
|
+
}, lt = (e, t, n) => {
|
|
6263
|
+
let r = ge.find((t) => t.id === e);
|
|
6187
6264
|
if (r) {
|
|
6188
6265
|
if (r.direction === "horizontal" && r.lanes?.length) {
|
|
6189
6266
|
let e = r.lanes.reduce((e, t) => e + t.height, 0);
|
|
@@ -6205,86 +6282,86 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
6205
6282
|
}
|
|
6206
6283
|
r.width = t, r.height = n;
|
|
6207
6284
|
}
|
|
6208
|
-
},
|
|
6209
|
-
let i =
|
|
6285
|
+
}, ut = (e, t, n, r) => {
|
|
6286
|
+
let i = ge.find((t) => t.id === e);
|
|
6210
6287
|
if (i) {
|
|
6211
6288
|
let e = i.lanes?.find((e) => e.id === t);
|
|
6212
6289
|
e && (n != null && (e.height = n), r != null && (e.width = r, i.direction === "vertical" && i.lanes?.length && (i.width = i.lanes.reduce((e, t) => e + (t.width || 200), 0))));
|
|
6213
6290
|
}
|
|
6214
|
-
},
|
|
6215
|
-
let r =
|
|
6291
|
+
}, dt = (e, t, n) => {
|
|
6292
|
+
let r = ge.find((t) => t.id === e);
|
|
6216
6293
|
r && (r.x = t, r.y = n);
|
|
6217
|
-
},
|
|
6218
|
-
|
|
6219
|
-
},
|
|
6220
|
-
|
|
6221
|
-
},
|
|
6222
|
-
|
|
6223
|
-
},
|
|
6224
|
-
|
|
6225
|
-
},
|
|
6226
|
-
|
|
6227
|
-
},
|
|
6228
|
-
|
|
6229
|
-
},
|
|
6230
|
-
let t =
|
|
6231
|
-
t && e && t !== e &&
|
|
6232
|
-
},
|
|
6233
|
-
|
|
6234
|
-
let r =
|
|
6294
|
+
}, ft = (e) => {
|
|
6295
|
+
we.value = e;
|
|
6296
|
+
}, pt = (e) => {
|
|
6297
|
+
Xe(e);
|
|
6298
|
+
}, mt = (e) => {
|
|
6299
|
+
Te.value = e;
|
|
6300
|
+
}, ht = (e, t, n) => {
|
|
6301
|
+
_e.value = Ae(e, t, n).id;
|
|
6302
|
+
}, gt = (e) => {
|
|
6303
|
+
oe.value = !1, X.value = null, Ce.value = e;
|
|
6304
|
+
}, _t = (e) => {
|
|
6305
|
+
X.value = e, oe.value = !0;
|
|
6306
|
+
}, vt = (e) => {
|
|
6307
|
+
let t = X.value || Ce.value;
|
|
6308
|
+
t && e && t !== e && je(t, e), Ce.value = null, X.value = null, oe.value = !1;
|
|
6309
|
+
}, yt = (e, t, n) => {
|
|
6310
|
+
se.value = !0;
|
|
6311
|
+
let r = Z.find((t) => t.id === e);
|
|
6235
6312
|
r && !r.locked && (r.x += t, r.y += n);
|
|
6236
|
-
},
|
|
6237
|
-
|
|
6238
|
-
},
|
|
6239
|
-
|
|
6240
|
-
let r =
|
|
6313
|
+
}, bt = () => {
|
|
6314
|
+
se.value = !1, ce && ce();
|
|
6315
|
+
}, xt = (e, t, n) => {
|
|
6316
|
+
se.value = !0;
|
|
6317
|
+
let r = Z.find((t) => t.id === e);
|
|
6241
6318
|
r && (r.width = t, r.height = n);
|
|
6242
|
-
},
|
|
6243
|
-
|
|
6244
|
-
},
|
|
6245
|
-
let t =
|
|
6246
|
-
|
|
6247
|
-
},
|
|
6248
|
-
|
|
6249
|
-
},
|
|
6250
|
-
|
|
6251
|
-
},
|
|
6252
|
-
if (
|
|
6253
|
-
let e = Math.min(...
|
|
6319
|
+
}, St = () => {
|
|
6320
|
+
se.value = !1, ce && ce();
|
|
6321
|
+
}, Ct = (e) => {
|
|
6322
|
+
let t = Me("泳道 " + (ge.length + 1), e);
|
|
6323
|
+
Ne(t.id, "角色A"), ye.value = t.id;
|
|
6324
|
+
}, wt = () => {
|
|
6325
|
+
et.value && Ne(et.value.id, "新泳道");
|
|
6326
|
+
}, Tt = () => {
|
|
6327
|
+
et.value && nt.value && ct(et.value.id, nt.value.id, {});
|
|
6328
|
+
}, Et = () => {
|
|
6329
|
+
if (Z.length === 0) return;
|
|
6330
|
+
let e = Math.min(...Z.map((e) => e.x)), t = Math.min(...Z.map((e) => e.y)), n = Math.max(...Z.map((e) => e.x + e.width)), r = Math.max(...Z.map((e) => e.y + e.height)), i = n - e || 1, a = r - t || 1, o = document.querySelector(".diagram-canvas");
|
|
6254
6331
|
if (!o) return;
|
|
6255
6332
|
let s = o.getBoundingClientRect(), c = (s.width - 120) / i, l = (s.height - 120) / a, u = Math.min(c, l, 2);
|
|
6256
|
-
|
|
6333
|
+
Z.forEach((n) => {
|
|
6257
6334
|
n.x = 60 + (n.x - e) * u, n.y = 60 + (n.y - t) * u, n.width *= u, n.height *= u;
|
|
6258
|
-
}),
|
|
6259
|
-
},
|
|
6260
|
-
let t =
|
|
6335
|
+
}), B.value && B.value.resetView();
|
|
6336
|
+
}, Dt = async (e) => {
|
|
6337
|
+
let t = qe();
|
|
6261
6338
|
switch (e) {
|
|
6262
6339
|
case "json":
|
|
6263
|
-
|
|
6340
|
+
Ot(t);
|
|
6264
6341
|
break;
|
|
6265
6342
|
case "svg":
|
|
6266
|
-
|
|
6343
|
+
kt();
|
|
6267
6344
|
break;
|
|
6268
6345
|
case "png":
|
|
6269
|
-
|
|
6346
|
+
At("png");
|
|
6270
6347
|
break;
|
|
6271
6348
|
case "html":
|
|
6272
|
-
|
|
6349
|
+
jt(t);
|
|
6273
6350
|
break;
|
|
6274
6351
|
case "pdf":
|
|
6275
|
-
|
|
6352
|
+
Nt();
|
|
6276
6353
|
break;
|
|
6277
6354
|
}
|
|
6278
|
-
},
|
|
6355
|
+
}, Ot = (e) => {
|
|
6279
6356
|
let t = new Blob([JSON.stringify(e, null, 2)], { type: "application/json" }), n = URL.createObjectURL(t), r = document.createElement("a");
|
|
6280
6357
|
r.href = n, r.download = `${$.value || "流程图"}.json`, r.click(), URL.revokeObjectURL(n), P.success("JSON已导出");
|
|
6281
|
-
},
|
|
6282
|
-
let e =
|
|
6358
|
+
}, kt = () => {
|
|
6359
|
+
let e = B.value?.svgRef;
|
|
6283
6360
|
if (!e) return;
|
|
6284
6361
|
let t = e.cloneNode(!0), n = new XMLSerializer().serializeToString(t), r = new Blob([n], { type: "image/svg+xml" }), i = URL.createObjectURL(r), a = document.createElement("a");
|
|
6285
6362
|
a.href = i, a.download = `${$.value || "流程图"}.svg`, a.click(), URL.revokeObjectURL(i), P.success("SVG已导出");
|
|
6286
|
-
},
|
|
6287
|
-
let t =
|
|
6363
|
+
}, At = async (e) => {
|
|
6364
|
+
let t = B.value?.svgRef;
|
|
6288
6365
|
if (!t) return;
|
|
6289
6366
|
let n = new XMLSerializer().serializeToString(t), r = document.createElement("canvas"), i = r.getContext("2d"), a = new Image(), o = new Blob([n], { type: "image/svg+xml;charset=utf-8" }), s = URL.createObjectURL(o);
|
|
6290
6367
|
a.onload = () => {
|
|
@@ -6293,7 +6370,7 @@ var He = "/api/document-versions", Ue = 5e3, We = () => {
|
|
|
6293
6370
|
n.href = URL.createObjectURL(t), n.download = `${$.value || "流程图"}.${e}`, n.click(), P.success(`${e.toUpperCase()}已导出`);
|
|
6294
6371
|
}, `image/${e}`);
|
|
6295
6372
|
}, a.src = s;
|
|
6296
|
-
},
|
|
6373
|
+
}, jt = (e) => {
|
|
6297
6374
|
let t = `<!DOCTYPE html>
|
|
6298
6375
|
<html lang="zh-CN">
|
|
6299
6376
|
<head>
|
|
@@ -6315,13 +6392,13 @@ svg { max-width: 100%; height: auto; }
|
|
|
6315
6392
|
<div class="container">
|
|
6316
6393
|
<h1>${e.title}</h1>
|
|
6317
6394
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4000 3000">
|
|
6318
|
-
${
|
|
6395
|
+
${Mt(e)}
|
|
6319
6396
|
</svg>
|
|
6320
6397
|
</div>
|
|
6321
6398
|
</body>
|
|
6322
6399
|
</html>`, n = new Blob([t], { type: "text/html;charset=utf-8" }), r = URL.createObjectURL(n), i = document.createElement("a");
|
|
6323
6400
|
i.href = r, i.download = `${e.title || "流程图"}.html`, i.click(), URL.revokeObjectURL(r), P.success("HTML已导出");
|
|
6324
|
-
},
|
|
6401
|
+
}, Mt = (e) => {
|
|
6325
6402
|
let t = "";
|
|
6326
6403
|
return (e.nodes || []).forEach((e) => {
|
|
6327
6404
|
let n = e.color || "#409eff", r = e.strokeColor || "#333";
|
|
@@ -6338,8 +6415,8 @@ ${Tt(e)}
|
|
|
6338
6415
|
t += `<line x1="${e}" y1="${a}" x2="${o}" y2="${s}" stroke="${n.lineColor}" stroke-width="${n.lineWidth}" marker-end="url(#arrowhead)"/>`;
|
|
6339
6416
|
}
|
|
6340
6417
|
}), t;
|
|
6341
|
-
},
|
|
6342
|
-
let e =
|
|
6418
|
+
}, Nt = () => {
|
|
6419
|
+
let e = B.value?.svgRef;
|
|
6343
6420
|
if (!e) return;
|
|
6344
6421
|
let t = new XMLSerializer().serializeToString(e), n = window.open("", "_blank");
|
|
6345
6422
|
n.document.write(`
|
|
@@ -6352,21 +6429,21 @@ ${Tt(e)}
|
|
|
6352
6429
|
</body>
|
|
6353
6430
|
</html>
|
|
6354
6431
|
`), n.document.close();
|
|
6355
|
-
},
|
|
6356
|
-
|
|
6357
|
-
},
|
|
6432
|
+
}, Pt = () => {
|
|
6433
|
+
V.value?.click();
|
|
6434
|
+
}, Ft = (e) => {
|
|
6358
6435
|
let t = e.target.files[0];
|
|
6359
6436
|
if (!t) return;
|
|
6360
6437
|
let n = new FileReader();
|
|
6361
6438
|
n.onload = (e) => {
|
|
6362
6439
|
try {
|
|
6363
|
-
|
|
6440
|
+
Je(JSON.parse(e.target.result)) ? P.success("导入成功") : P.error("无效的流程图文件");
|
|
6364
6441
|
} catch {
|
|
6365
6442
|
P.error("文件解析失败");
|
|
6366
6443
|
}
|
|
6367
6444
|
}, n.readAsText(t), e.target.value = "";
|
|
6368
|
-
},
|
|
6369
|
-
if (
|
|
6445
|
+
}, It = async () => {
|
|
6446
|
+
if (G.value && L.collaborationClosed.value) {
|
|
6370
6447
|
P.error("协作已关闭,无法提交保存");
|
|
6371
6448
|
return;
|
|
6372
6449
|
}
|
|
@@ -6374,45 +6451,57 @@ ${Tt(e)}
|
|
|
6374
6451
|
P.warning("请输入流程图名称");
|
|
6375
6452
|
return;
|
|
6376
6453
|
}
|
|
6377
|
-
if (!
|
|
6454
|
+
if (!Y.value?.trim()) {
|
|
6378
6455
|
P.warning("请输入用户名称");
|
|
6379
6456
|
return;
|
|
6380
6457
|
}
|
|
6381
6458
|
try {
|
|
6382
|
-
let e =
|
|
6459
|
+
let e = qe(), t = {
|
|
6383
6460
|
title: $.value || "流程图",
|
|
6384
6461
|
content: JSON.stringify(e),
|
|
6385
|
-
doc_type:
|
|
6386
|
-
}, n = s.
|
|
6387
|
-
|
|
6462
|
+
doc_type: f ? "process-diagram" : "exec-diagram"
|
|
6463
|
+
}, n = w.value, r = typeof s.saveApi == "function" ? s.saveApi : s.saveApi ? (e) => {
|
|
6464
|
+
let t = n ? `${s.saveApi}/${n}` : s.saveApi;
|
|
6465
|
+
return n ? F.put(t, e) : F.post(t, e);
|
|
6466
|
+
} : null;
|
|
6467
|
+
if (r) J.value = (await r(t, n)).data?.id || n;
|
|
6468
|
+
else if (n && n !== "new") await T.value.update(n, t), J.value = n;
|
|
6388
6469
|
else {
|
|
6389
|
-
let e = await
|
|
6390
|
-
|
|
6470
|
+
let e = await T.value.create(t);
|
|
6471
|
+
J.value = e.data.id, s.docId || l.replace(`/${f ? "process-diagram" : "execution-diagram"}/${e.data.id}`);
|
|
6391
6472
|
}
|
|
6392
|
-
P.success("已保存"),
|
|
6393
|
-
documentId: String(
|
|
6394
|
-
docType:
|
|
6473
|
+
P.success("已保存"), A({
|
|
6474
|
+
documentId: String(J.value || ""),
|
|
6475
|
+
docType: f ? "process-diagram" : "exec-diagram",
|
|
6395
6476
|
content: JSON.stringify(e),
|
|
6396
|
-
userId: String(
|
|
6397
|
-
userName:
|
|
6477
|
+
userId: String(j.currentUser.value?.id || ""),
|
|
6478
|
+
userName: j.currentUser.value?.name || Y.value || "未知"
|
|
6398
6479
|
});
|
|
6399
6480
|
} catch (e) {
|
|
6400
6481
|
P.error("保存失败: " + (e.message || e));
|
|
6401
6482
|
}
|
|
6402
|
-
},
|
|
6403
|
-
let e =
|
|
6483
|
+
}, Lt = async () => {
|
|
6484
|
+
let e = w.value;
|
|
6404
6485
|
if (e && e !== "new") try {
|
|
6405
|
-
|
|
6406
|
-
|
|
6486
|
+
if (typeof s.loadApi == "function") {
|
|
6487
|
+
let t = await s.loadApi(e);
|
|
6488
|
+
t.data && t.data.content && (Je(JSON.parse(t.data.content)), $.value = t.data.title || $.value);
|
|
6489
|
+
} else if (s.loadApi) {
|
|
6490
|
+
let t = await F.get(`${s.loadApi}/${e}`);
|
|
6491
|
+
t.data && t.data.content && (Je(JSON.parse(t.data.content)), $.value = t.data.title || $.value);
|
|
6492
|
+
} else {
|
|
6493
|
+
let t = await T.value.get(e);
|
|
6494
|
+
t.data && t.data.content && (Je(JSON.parse(t.data.content)), $.value = t.data.title || $.value);
|
|
6495
|
+
}
|
|
6407
6496
|
} catch {
|
|
6408
|
-
let t = localStorage.getItem(
|
|
6497
|
+
let t = localStorage.getItem(g + e);
|
|
6409
6498
|
if (t) try {
|
|
6410
|
-
|
|
6499
|
+
Je(JSON.parse(t));
|
|
6411
6500
|
} catch {}
|
|
6412
6501
|
}
|
|
6413
|
-
},
|
|
6414
|
-
|
|
6415
|
-
},
|
|
6502
|
+
}, Rt = () => {
|
|
6503
|
+
l.push("/");
|
|
6504
|
+
}, zt = [
|
|
6416
6505
|
"我可以帮您优化流程图布局、检查节点逻辑,或者提供流程设计建议。请问有什么需要帮助的?",
|
|
6417
6506
|
"这个流程图的节点连接看起来很清晰。建议检查一下是否有遗漏的分支或异常处理路径。",
|
|
6418
6507
|
"根据当前的流程结构,我建议在关键决策节点后添加明确的条件标注,使流程更易理解。",
|
|
@@ -6421,125 +6510,132 @@ ${Tt(e)}
|
|
|
6421
6510
|
"建议在流程开始和结束节点使用统一的样式,这样可以让读者更快识别流程的起止点。",
|
|
6422
6511
|
"这个执行图的逻辑链路比较长,建议在中间添加一些检查点节点,便于流程监控和调试。",
|
|
6423
6512
|
"我可以帮您生成流程图的文字说明文档,方便团队成员理解流程细节。"
|
|
6424
|
-
],
|
|
6425
|
-
let n =
|
|
6426
|
-
await
|
|
6513
|
+
], Bt = async (e, t = {}) => {
|
|
6514
|
+
let n = w.value ? `${vo}-${w.value}` : null;
|
|
6515
|
+
await j.sendMessage(e, {
|
|
6427
6516
|
...t,
|
|
6428
6517
|
roomId: n
|
|
6429
6518
|
});
|
|
6430
|
-
let r = t.mentionedUser, i = r && r.toLowerCase().includes("ai"), a =
|
|
6431
|
-
(!r || i || a.length === 0) && (
|
|
6432
|
-
|
|
6519
|
+
let r = t.mentionedUser, i = r && r.toLowerCase().includes("ai"), a = j.collabUsers.value.filter((e) => e.name !== j.currentUser.value.name);
|
|
6520
|
+
(!r || i || a.length === 0) && (j.loading.value = !0, setTimeout(() => {
|
|
6521
|
+
j.sendAiMessage(zt[Math.floor(Math.random() * zt.length)], n), j.loading.value = !1;
|
|
6433
6522
|
}, 800 + Math.random() * 1200));
|
|
6434
|
-
},
|
|
6435
|
-
let e =
|
|
6436
|
-
|
|
6437
|
-
},
|
|
6438
|
-
if (!
|
|
6523
|
+
}, Ht = () => {
|
|
6524
|
+
let e = w.value ? `${vo}-${w.value}` : null;
|
|
6525
|
+
j.clearMessages(e);
|
|
6526
|
+
}, Ut = () => {
|
|
6527
|
+
if (!w.value) {
|
|
6439
6528
|
P.warning("请先保存文档");
|
|
6440
6529
|
return;
|
|
6441
6530
|
}
|
|
6442
|
-
|
|
6443
|
-
},
|
|
6531
|
+
k.value = !0;
|
|
6532
|
+
}, Wt = (e) => {
|
|
6444
6533
|
try {
|
|
6445
6534
|
let t = typeof e == "string" ? JSON.parse(e) : e;
|
|
6446
|
-
|
|
6535
|
+
Je && Je(t);
|
|
6447
6536
|
} catch (e) {
|
|
6448
6537
|
console.error("Version apply error:", e);
|
|
6449
6538
|
}
|
|
6450
6539
|
};
|
|
6451
6540
|
return h(() => {
|
|
6452
|
-
|
|
6453
|
-
if (
|
|
6454
|
-
|
|
6455
|
-
let e = E(() =>
|
|
6456
|
-
t && (e(),
|
|
6541
|
+
Lt().then(() => {
|
|
6542
|
+
if (u.query.collab === "1") {
|
|
6543
|
+
G.value = !0, le();
|
|
6544
|
+
let e = E(() => L.isSynced.value, (t) => {
|
|
6545
|
+
t && (e(), L.checkCollaborationClosed() && (L.disconnect(), G.value = !1, W.value = !1, P.warning("该协作已关闭,无法加入")));
|
|
6457
6546
|
});
|
|
6458
|
-
|
|
6547
|
+
L.isSynced.value && L.checkCollaborationClosed() && (L.disconnect(), G.value = !1, W.value = !1, P.warning("该协作已关闭,无法加入"));
|
|
6459
6548
|
}
|
|
6460
6549
|
});
|
|
6461
|
-
}), (t,
|
|
6462
|
-
let
|
|
6463
|
-
return _(), i("div",
|
|
6464
|
-
a("div",
|
|
6465
|
-
|
|
6550
|
+
}), (t, o) => {
|
|
6551
|
+
let s = x("el-icon"), l = x("el-button"), u = x("el-input");
|
|
6552
|
+
return _(), i("div", co, [
|
|
6553
|
+
a("div", lo, [a("div", uo, [
|
|
6554
|
+
v.value.backButton === "hide" ? r("", !0) : (_(), n(l, {
|
|
6555
|
+
key: 0,
|
|
6466
6556
|
size: "small",
|
|
6467
6557
|
circle: "",
|
|
6468
|
-
|
|
6558
|
+
disabled: v.value.backButton === "disable",
|
|
6559
|
+
onClick: Rt
|
|
6469
6560
|
}, {
|
|
6470
|
-
default: D(() => [c(
|
|
6561
|
+
default: D(() => [c(s, null, {
|
|
6471
6562
|
default: D(() => [c(C(z))]),
|
|
6472
6563
|
_: 1
|
|
6473
6564
|
})]),
|
|
6474
6565
|
_: 1
|
|
6475
|
-
}),
|
|
6476
|
-
c(
|
|
6566
|
+
}, 8, ["disabled"])),
|
|
6567
|
+
c(u, {
|
|
6477
6568
|
modelValue: C($),
|
|
6478
|
-
"onUpdate:modelValue":
|
|
6569
|
+
"onUpdate:modelValue": o[0] ||= (e) => d($) ? $.value = e : null,
|
|
6479
6570
|
size: "small",
|
|
6480
6571
|
class: "title-input",
|
|
6481
6572
|
placeholder: "流程图标题 *",
|
|
6482
|
-
disabled:
|
|
6573
|
+
disabled: G.value || !v.value.titleEditable
|
|
6483
6574
|
}, null, 8, ["modelValue", "disabled"]),
|
|
6484
|
-
c(
|
|
6485
|
-
modelValue:
|
|
6486
|
-
"onUpdate:modelValue":
|
|
6575
|
+
c(u, {
|
|
6576
|
+
modelValue: Y.value,
|
|
6577
|
+
"onUpdate:modelValue": o[1] ||= (e) => Y.value = e,
|
|
6487
6578
|
size: "small",
|
|
6488
6579
|
class: "user-name-input",
|
|
6489
|
-
placeholder: "用户名称 *"
|
|
6490
|
-
|
|
6491
|
-
|
|
6580
|
+
placeholder: "用户名称 *",
|
|
6581
|
+
disabled: !v.value.authorEditable
|
|
6582
|
+
}, null, 8, ["modelValue", "disabled"])
|
|
6583
|
+
]), a("div", fo, [!G.value && C(L).peers.value.length > 0 ? (_(), i("div", po, [(_(!0), i(e, null, b(C(L).peers.value.slice(0, 5), (e) => (_(), i("div", {
|
|
6492
6584
|
key: e.clientId,
|
|
6493
6585
|
class: "collab-avatar",
|
|
6494
6586
|
style: m({ background: e.color }),
|
|
6495
6587
|
title: e.name
|
|
6496
|
-
}, S(e.name?.charAt(0)), 13,
|
|
6588
|
+
}, S(e.name?.charAt(0)), 13, mo))), 128)), C(L).peers.value.length > 5 ? (_(), i("span", ho, "+" + S(C(L).peers.value.length - 5), 1)) : r("", !0)])) : r("", !0), c(l, {
|
|
6497
6589
|
size: "small",
|
|
6498
6590
|
circle: "",
|
|
6499
|
-
type:
|
|
6500
|
-
onClick:
|
|
6591
|
+
type: O.value ? "primary" : "default",
|
|
6592
|
+
onClick: o[2] ||= (e) => O.value = !O.value,
|
|
6501
6593
|
title: "AI助手"
|
|
6502
6594
|
}, {
|
|
6503
|
-
default: D(() => [c(
|
|
6595
|
+
default: D(() => [c(s, null, {
|
|
6504
6596
|
default: D(() => [c(C(K))]),
|
|
6505
6597
|
_: 1
|
|
6506
6598
|
})]),
|
|
6507
6599
|
_: 1
|
|
6508
6600
|
}, 8, ["type"])])]),
|
|
6509
|
-
a("div",
|
|
6510
|
-
c(
|
|
6511
|
-
NODE_TYPES: C(
|
|
6512
|
-
"diagram-type-label":
|
|
6513
|
-
"type-disabled":
|
|
6514
|
-
|
|
6601
|
+
a("div", go, [
|
|
6602
|
+
c(Vt, {
|
|
6603
|
+
NODE_TYPES: C(fe),
|
|
6604
|
+
"diagram-type-label": $e.value,
|
|
6605
|
+
"type-disabled": G.value,
|
|
6606
|
+
"show-type-selector": v.value.showTypeSelector,
|
|
6607
|
+
onSetType: ft
|
|
6515
6608
|
}, null, 8, [
|
|
6516
6609
|
"NODE_TYPES",
|
|
6517
6610
|
"diagram-type-label",
|
|
6518
|
-
"type-disabled"
|
|
6611
|
+
"type-disabled",
|
|
6612
|
+
"show-type-selector"
|
|
6519
6613
|
]),
|
|
6520
|
-
a("div",
|
|
6521
|
-
"animation-playing":
|
|
6522
|
-
"can-undo": C(
|
|
6523
|
-
"can-redo": C(
|
|
6524
|
-
disabled:
|
|
6525
|
-
"is-collaborating":
|
|
6526
|
-
"is-joined-collab":
|
|
6527
|
-
|
|
6528
|
-
|
|
6529
|
-
|
|
6530
|
-
|
|
6531
|
-
|
|
6532
|
-
|
|
6533
|
-
|
|
6534
|
-
|
|
6535
|
-
|
|
6536
|
-
|
|
6537
|
-
|
|
6538
|
-
|
|
6539
|
-
|
|
6540
|
-
|
|
6541
|
-
|
|
6542
|
-
|
|
6614
|
+
a("div", _o, [c(Zt, {
|
|
6615
|
+
"animation-playing": H.value,
|
|
6616
|
+
"can-undo": C(Ee).length > 0,
|
|
6617
|
+
"can-redo": C(De).length > 0,
|
|
6618
|
+
disabled: G.value,
|
|
6619
|
+
"is-collaborating": W.value,
|
|
6620
|
+
"is-joined-collab": G.value,
|
|
6621
|
+
"show-template-selector": v.value.showTemplateSelector,
|
|
6622
|
+
"show-swimlane-selector": v.value.showSwimlaneSelector,
|
|
6623
|
+
onAddSwimlane: Ct,
|
|
6624
|
+
onUndo: C(Oe),
|
|
6625
|
+
onRedo: C(ke),
|
|
6626
|
+
onAutoLayout: C(Ye),
|
|
6627
|
+
onToggleAnimation: o[3] ||= (e) => H.value = !H.value,
|
|
6628
|
+
onSetAnimationSpeed: o[4] ||= (e) => U.value = e,
|
|
6629
|
+
onExport: Dt,
|
|
6630
|
+
onImportJson: Pt,
|
|
6631
|
+
onClear: C(ze),
|
|
6632
|
+
onSetTemplate: pt,
|
|
6633
|
+
onStartCollab: le,
|
|
6634
|
+
onStopCollab: ue,
|
|
6635
|
+
onShareCollab: de,
|
|
6636
|
+
onSave: It,
|
|
6637
|
+
"show-history": !!J.value,
|
|
6638
|
+
onHistory: Ut
|
|
6543
6639
|
}, null, 8, [
|
|
6544
6640
|
"animation-playing",
|
|
6545
6641
|
"can-undo",
|
|
@@ -6547,47 +6643,49 @@ ${Tt(e)}
|
|
|
6547
6643
|
"disabled",
|
|
6548
6644
|
"is-collaborating",
|
|
6549
6645
|
"is-joined-collab",
|
|
6646
|
+
"show-template-selector",
|
|
6647
|
+
"show-swimlane-selector",
|
|
6550
6648
|
"onUndo",
|
|
6551
6649
|
"onRedo",
|
|
6552
6650
|
"onAutoLayout",
|
|
6553
6651
|
"onClear",
|
|
6554
6652
|
"show-history"
|
|
6555
|
-
]), c(
|
|
6653
|
+
]), c(Ii, {
|
|
6556
6654
|
ref_key: "canvasRef",
|
|
6557
|
-
ref:
|
|
6558
|
-
nodes: C(
|
|
6559
|
-
edges: C(
|
|
6560
|
-
swimlanes: C(
|
|
6561
|
-
"selected-node-id": C(
|
|
6562
|
-
"selected-edge-id": C(
|
|
6563
|
-
"selected-swimlane-id": C(
|
|
6564
|
-
"selected-lane-id":
|
|
6565
|
-
"connect-mode": C(
|
|
6566
|
-
"connect-source": C(
|
|
6567
|
-
"animation-playing":
|
|
6568
|
-
theme: C(
|
|
6569
|
-
onSelectNode: C(
|
|
6570
|
-
onSelectEdge: C(
|
|
6571
|
-
onSelectSwimlane:
|
|
6572
|
-
onSelectLane:
|
|
6573
|
-
onUpdateSwimlane:
|
|
6574
|
-
onUpdateLane:
|
|
6575
|
-
onResizeSwimlane:
|
|
6576
|
-
onResizeLane:
|
|
6577
|
-
onMoveSwimlane:
|
|
6578
|
-
onSelectCanvas:
|
|
6579
|
-
"auto-connect-source":
|
|
6580
|
-
"auto-connect-mode":
|
|
6581
|
-
onStartConnect:
|
|
6582
|
-
onEndConnect:
|
|
6583
|
-
onAutoConnectStart:
|
|
6584
|
-
onNodeDrag:
|
|
6585
|
-
onNodeResize:
|
|
6586
|
-
onNodeDragEnd:
|
|
6587
|
-
onNodeResizeEnd:
|
|
6588
|
-
onDropNode:
|
|
6589
|
-
onResetState:
|
|
6590
|
-
onFitView:
|
|
6655
|
+
ref: B,
|
|
6656
|
+
nodes: C(Z),
|
|
6657
|
+
edges: C(he),
|
|
6658
|
+
swimlanes: C(ge),
|
|
6659
|
+
"selected-node-id": C(_e),
|
|
6660
|
+
"selected-edge-id": C(Q),
|
|
6661
|
+
"selected-swimlane-id": C(ye),
|
|
6662
|
+
"selected-lane-id": tt.value,
|
|
6663
|
+
"connect-mode": C(Se),
|
|
6664
|
+
"connect-source": C(Ce),
|
|
6665
|
+
"animation-playing": H.value,
|
|
6666
|
+
theme: C(Te),
|
|
6667
|
+
onSelectNode: C(Be),
|
|
6668
|
+
onSelectEdge: C(Ue),
|
|
6669
|
+
onSelectSwimlane: o[5] ||= (e) => ye.value = e,
|
|
6670
|
+
onSelectLane: ot,
|
|
6671
|
+
onUpdateSwimlane: st,
|
|
6672
|
+
onUpdateLane: ct,
|
|
6673
|
+
onResizeSwimlane: lt,
|
|
6674
|
+
onResizeLane: ut,
|
|
6675
|
+
onMoveSwimlane: dt,
|
|
6676
|
+
onSelectCanvas: it,
|
|
6677
|
+
"auto-connect-source": X.value,
|
|
6678
|
+
"auto-connect-mode": oe.value,
|
|
6679
|
+
onStartConnect: gt,
|
|
6680
|
+
onEndConnect: vt,
|
|
6681
|
+
onAutoConnectStart: _t,
|
|
6682
|
+
onNodeDrag: yt,
|
|
6683
|
+
onNodeResize: xt,
|
|
6684
|
+
onNodeDragEnd: bt,
|
|
6685
|
+
onNodeResizeEnd: St,
|
|
6686
|
+
onDropNode: ht,
|
|
6687
|
+
onResetState: at,
|
|
6688
|
+
onFitView: Et
|
|
6591
6689
|
}, null, 8, [
|
|
6592
6690
|
"nodes",
|
|
6593
6691
|
"edges",
|
|
@@ -6605,23 +6703,23 @@ ${Tt(e)}
|
|
|
6605
6703
|
"auto-connect-source",
|
|
6606
6704
|
"auto-connect-mode"
|
|
6607
6705
|
])]),
|
|
6608
|
-
c(
|
|
6609
|
-
"selected-node": C(
|
|
6610
|
-
"selected-edge": C(
|
|
6611
|
-
"selected-swimlane":
|
|
6612
|
-
"selected-lane":
|
|
6613
|
-
NODE_TYPES: C(
|
|
6614
|
-
ANIMATION_TYPES: C(
|
|
6615
|
-
LINE_STYLES: C(
|
|
6616
|
-
"current-theme": C(
|
|
6617
|
-
onDeleteNode:
|
|
6618
|
-
onDeleteEdge:
|
|
6619
|
-
onDeleteSwimlane:
|
|
6620
|
-
onBringFront:
|
|
6621
|
-
onSendBack:
|
|
6622
|
-
onAddLane:
|
|
6623
|
-
onUpdateLane:
|
|
6624
|
-
onChangeTheme:
|
|
6706
|
+
c(so, {
|
|
6707
|
+
"selected-node": C(be),
|
|
6708
|
+
"selected-edge": C(xe),
|
|
6709
|
+
"selected-swimlane": et.value,
|
|
6710
|
+
"selected-lane": nt.value,
|
|
6711
|
+
NODE_TYPES: C(fe),
|
|
6712
|
+
ANIMATION_TYPES: C(pe),
|
|
6713
|
+
LINE_STYLES: C(me),
|
|
6714
|
+
"current-theme": C(Te),
|
|
6715
|
+
onDeleteNode: o[6] ||= (e) => C(be) && C(Ie)(C(be).id),
|
|
6716
|
+
onDeleteEdge: o[7] ||= (e) => C(xe) && C(Le)(C(xe).id),
|
|
6717
|
+
onDeleteSwimlane: o[8] ||= (e) => et.value && C(Re)(et.value.id),
|
|
6718
|
+
onBringFront: o[9] ||= (e) => C(be) && C(We)(C(be).id),
|
|
6719
|
+
onSendBack: o[10] ||= (e) => C(be) && C(Ke)(C(be).id),
|
|
6720
|
+
onAddLane: wt,
|
|
6721
|
+
onUpdateLane: Tt,
|
|
6722
|
+
onChangeTheme: mt
|
|
6625
6723
|
}, null, 8, [
|
|
6626
6724
|
"selected-node",
|
|
6627
6725
|
"selected-edge",
|
|
@@ -6635,25 +6733,25 @@ ${Tt(e)}
|
|
|
6635
6733
|
]),
|
|
6636
6734
|
a("input", {
|
|
6637
6735
|
ref_key: "fileInput",
|
|
6638
|
-
ref:
|
|
6736
|
+
ref: V,
|
|
6639
6737
|
type: "file",
|
|
6640
6738
|
accept: ".json",
|
|
6641
6739
|
style: { display: "none" },
|
|
6642
|
-
onChange:
|
|
6740
|
+
onChange: Ft
|
|
6643
6741
|
}, null, 544),
|
|
6644
|
-
c(
|
|
6645
|
-
visible:
|
|
6646
|
-
messages: C(
|
|
6647
|
-
loading: C(
|
|
6648
|
-
"is-collab": C(
|
|
6649
|
-
"collab-users": C(
|
|
6650
|
-
"current-user": C(
|
|
6651
|
-
"is-owner": !
|
|
6652
|
-
onSend:
|
|
6653
|
-
onClose:
|
|
6654
|
-
"unread-mention": C(
|
|
6655
|
-
onClearUnread:
|
|
6656
|
-
onClear:
|
|
6742
|
+
c(Ve, {
|
|
6743
|
+
visible: O.value,
|
|
6744
|
+
messages: C(j).messages.value,
|
|
6745
|
+
loading: C(j).loading.value,
|
|
6746
|
+
"is-collab": C(j).isCollabMode.value,
|
|
6747
|
+
"collab-users": C(j).collabUsers.value,
|
|
6748
|
+
"current-user": C(j).currentUser.value,
|
|
6749
|
+
"is-owner": !G.value,
|
|
6750
|
+
onSend: Bt,
|
|
6751
|
+
onClose: o[11] ||= (e) => O.value = !1,
|
|
6752
|
+
"unread-mention": C(j).unreadMention.value,
|
|
6753
|
+
onClearUnread: o[12] ||= (e) => C(j).clearUnreadMention(),
|
|
6754
|
+
onClear: Ht
|
|
6657
6755
|
}, null, 8, [
|
|
6658
6756
|
"visible",
|
|
6659
6757
|
"messages",
|
|
@@ -6664,16 +6762,16 @@ ${Tt(e)}
|
|
|
6664
6762
|
"is-owner",
|
|
6665
6763
|
"unread-mention"
|
|
6666
6764
|
]),
|
|
6667
|
-
c(
|
|
6668
|
-
modelValue:
|
|
6669
|
-
"onUpdate:modelValue":
|
|
6670
|
-
"document-id":
|
|
6671
|
-
onApply:
|
|
6765
|
+
c(rt, {
|
|
6766
|
+
modelValue: k.value,
|
|
6767
|
+
"onUpdate:modelValue": o[13] ||= (e) => k.value = e,
|
|
6768
|
+
"document-id": J.value,
|
|
6769
|
+
onApply: Wt
|
|
6672
6770
|
}, null, 8, ["modelValue", "document-id"])
|
|
6673
6771
|
]);
|
|
6674
6772
|
};
|
|
6675
6773
|
}
|
|
6676
|
-
}, [["__scopeId", "data-v-
|
|
6774
|
+
}, [["__scopeId", "data-v-40342cc9"]]), bo = l({
|
|
6677
6775
|
name: "YourCompanyDiagram",
|
|
6678
6776
|
props: {
|
|
6679
6777
|
docId: {
|
|
@@ -6684,6 +6782,14 @@ ${Tt(e)}
|
|
|
6684
6782
|
type: String,
|
|
6685
6783
|
default: "/api"
|
|
6686
6784
|
},
|
|
6785
|
+
saveApi: {
|
|
6786
|
+
type: [String, Function],
|
|
6787
|
+
default: null
|
|
6788
|
+
},
|
|
6789
|
+
loadApi: {
|
|
6790
|
+
type: [String, Function],
|
|
6791
|
+
default: null
|
|
6792
|
+
},
|
|
6687
6793
|
wsUrl: {
|
|
6688
6794
|
type: String,
|
|
6689
6795
|
default: ""
|
|
@@ -6699,14 +6805,18 @@ ${Tt(e)}
|
|
|
6699
6805
|
roomId: {
|
|
6700
6806
|
type: String,
|
|
6701
6807
|
default: ""
|
|
6808
|
+
},
|
|
6809
|
+
uiConfig: {
|
|
6810
|
+
type: Object,
|
|
6811
|
+
default: () => ({})
|
|
6702
6812
|
}
|
|
6703
6813
|
},
|
|
6704
6814
|
setup(e, { slots: t }) {
|
|
6705
6815
|
return () => u("div", {
|
|
6706
6816
|
class: "yourcompany-diagram-wrapper",
|
|
6707
6817
|
style: "position:relative"
|
|
6708
|
-
}, [u(
|
|
6818
|
+
}, [u(yo, { ...e }), u(j)]);
|
|
6709
6819
|
}
|
|
6710
6820
|
});
|
|
6711
6821
|
//#endregion
|
|
6712
|
-
export {
|
|
6822
|
+
export { bo as default };
|