@web-utils/component 2.8.14 → 2.8.16
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/easy-popup/index.mjs +3 -3
- package/flow-designer/index.mjs +538 -0
- package/flow-designer/style.css +1 -0
- package/flow-viewer/index.mjs +78 -92
- package/form-view/index.mjs +20 -15
- package/index.mjs +435 -443
- package/package.json +1 -1
- package/page-skeleton/index.mjs +27 -16
- package/present-view/index.mjs +24 -19
- package/split-pane/index.mjs +41 -38
- package/swiper/index.mjs +16 -11
- package/web-types.json +33 -194
- package/process-designer/index.mjs +0 -4676
- package/process-designer/style.css +0 -1
- package/process-palette/index.mjs +0 -190
- package/process-palette/style.css +0 -1
- package/properties-panel/index.mjs +0 -4791
- package/properties-panel/style.css +0 -1
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
import { assign as r } from "min-dash";
|
|
2
|
-
import { n as l } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
3
|
-
var i = function() {
|
|
4
|
-
var e = this, o = e.$createElement, n = e._self._c || o;
|
|
5
|
-
return n("div", {
|
|
6
|
-
staticClass: "my-process-palette"
|
|
7
|
-
}, [n("p", [e._v("palette")]), n("ElCollapse", [n("ElCollapseItem", {
|
|
8
|
-
attrs: {
|
|
9
|
-
title: "任务",
|
|
10
|
-
name: "1"
|
|
11
|
-
}
|
|
12
|
-
}, [n("div", {
|
|
13
|
-
staticClass: "custom-button",
|
|
14
|
-
on: {
|
|
15
|
-
click: function(t) {
|
|
16
|
-
return e.createElement(t, "Task");
|
|
17
|
-
},
|
|
18
|
-
mousedown: function(t) {
|
|
19
|
-
return e.createElement(t, "Task");
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}, [e._v(" 任务 ")]), n("div", {
|
|
23
|
-
staticClass: "custom-button",
|
|
24
|
-
on: {
|
|
25
|
-
click: function(t) {
|
|
26
|
-
return e.createElement(t, "UserTask");
|
|
27
|
-
},
|
|
28
|
-
mousedown: function(t) {
|
|
29
|
-
return e.createElement(t, "UserTask");
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}, [e._v(" 用户任务 ")]), n("div", {
|
|
33
|
-
staticClass: "custom-button",
|
|
34
|
-
on: {
|
|
35
|
-
click: function(t) {
|
|
36
|
-
return e.createElement(t, "SendTask");
|
|
37
|
-
},
|
|
38
|
-
mousedown: function(t) {
|
|
39
|
-
return e.createElement(t, "SendTask");
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}, [e._v(" 发送任务 ")]), n("div", {
|
|
43
|
-
staticClass: "custom-button",
|
|
44
|
-
on: {
|
|
45
|
-
click: function(t) {
|
|
46
|
-
return e.createElement(t, "ReceiveTask");
|
|
47
|
-
},
|
|
48
|
-
mousedown: function(t) {
|
|
49
|
-
return e.createElement(t, "ReceiveTask");
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}, [e._v(" 接收任务 ")]), n("div", {
|
|
53
|
-
staticClass: "custom-button",
|
|
54
|
-
on: {
|
|
55
|
-
click: function(t) {
|
|
56
|
-
return e.createElement(t, "ScriptTask");
|
|
57
|
-
},
|
|
58
|
-
mousedown: function(t) {
|
|
59
|
-
return e.createElement(t, "ScriptTask");
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}, [e._v(" 脚本任务 ")]), n("div", {
|
|
63
|
-
staticClass: "custom-button",
|
|
64
|
-
on: {
|
|
65
|
-
click: function(t) {
|
|
66
|
-
return e.createElement(t, "ServiceTask");
|
|
67
|
-
},
|
|
68
|
-
mousedown: function(t) {
|
|
69
|
-
return e.createElement(t, "ServiceTask");
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}, [e._v(" 服务任务 ")])]), n("ElCollapseItem", {
|
|
73
|
-
attrs: {
|
|
74
|
-
title: "网关",
|
|
75
|
-
name: "2"
|
|
76
|
-
}
|
|
77
|
-
}, [n("div", {
|
|
78
|
-
staticClass: "custom-button",
|
|
79
|
-
on: {
|
|
80
|
-
click: function(t) {
|
|
81
|
-
return e.createElement(t, "Gateway");
|
|
82
|
-
},
|
|
83
|
-
mousedown: function(t) {
|
|
84
|
-
return e.createElement(t, "Gateway");
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}, [e._v(" 网关 ")])]), n("ElCollapseItem", {
|
|
88
|
-
attrs: {
|
|
89
|
-
title: "开始",
|
|
90
|
-
name: "3"
|
|
91
|
-
}
|
|
92
|
-
}, [n("div", {
|
|
93
|
-
staticClass: "custom-button",
|
|
94
|
-
on: {
|
|
95
|
-
click: function(t) {
|
|
96
|
-
return e.createElement(t, "StartEvent");
|
|
97
|
-
},
|
|
98
|
-
mousedown: function(t) {
|
|
99
|
-
return e.createElement(t, "StartEvent");
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}, [e._v(" 开始 ")])]), n("ElCollapseItem", {
|
|
103
|
-
attrs: {
|
|
104
|
-
title: "结束",
|
|
105
|
-
name: "4"
|
|
106
|
-
}
|
|
107
|
-
}, [n("div", {
|
|
108
|
-
staticClass: "custom-button",
|
|
109
|
-
on: {
|
|
110
|
-
click: function(t) {
|
|
111
|
-
return e.createElement(t, "EndEvent");
|
|
112
|
-
},
|
|
113
|
-
mousedown: function(t) {
|
|
114
|
-
return e.createElement(t, "EndEvent");
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
}, [e._v(" 结束 ")])]), n("ElCollapseItem", {
|
|
118
|
-
attrs: {
|
|
119
|
-
title: "工具",
|
|
120
|
-
name: "5"
|
|
121
|
-
}
|
|
122
|
-
}, [n("div", {
|
|
123
|
-
staticClass: "custom-button",
|
|
124
|
-
on: {
|
|
125
|
-
click: function(t) {
|
|
126
|
-
return e.startTool(t, "handTool");
|
|
127
|
-
},
|
|
128
|
-
mousedown: function(t) {
|
|
129
|
-
return e.startTool(t, "handTool");
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
}, [e._v(" 手型工具 ")]), n("div", {
|
|
133
|
-
staticClass: "custom-button",
|
|
134
|
-
on: {
|
|
135
|
-
click: function(t) {
|
|
136
|
-
return e.startTool(t, "lassoTool");
|
|
137
|
-
},
|
|
138
|
-
mousedown: function(t) {
|
|
139
|
-
return e.startTool(t, "lassoTool");
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
}, [e._v(" 框选工具 ")]), n("div", {
|
|
143
|
-
staticClass: "custom-button",
|
|
144
|
-
on: {
|
|
145
|
-
click: function(t) {
|
|
146
|
-
return e.startTool(t, "connectTool");
|
|
147
|
-
},
|
|
148
|
-
mousedown: function(t) {
|
|
149
|
-
return e.startTool(t, "connectTool");
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
}, [e._v(" 连线工具 ")])])], 1)], 1);
|
|
153
|
-
}, u = [];
|
|
154
|
-
const m = {
|
|
155
|
-
name: "ProcessPalette",
|
|
156
|
-
data() {
|
|
157
|
-
return {};
|
|
158
|
-
},
|
|
159
|
-
mounted() {
|
|
160
|
-
},
|
|
161
|
-
methods: {
|
|
162
|
-
createElement(e, o, n = {}) {
|
|
163
|
-
const t = window.bpmnInstances.elementFactory, a = window.bpmnInstances.modeler.get("create"), s = t.createShape(r({ type: `bpmn:${o}` }, n));
|
|
164
|
-
n && (s.businessObject.di.isExpanded = n.isExpanded), a.start(e, s);
|
|
165
|
-
},
|
|
166
|
-
startTool(e, o) {
|
|
167
|
-
o === "handTool" && window.bpmnInstances.modeler.get("handTool").activateHand(e), o === "lassoTool" && window.bpmnInstances.modeler.get("lassoTool").activateSelection(e), o === "connectTool" && window.bpmnInstances.modeler.get("globalConnect").toggle(e);
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
}, c = {};
|
|
171
|
-
var d = /* @__PURE__ */ l(
|
|
172
|
-
m,
|
|
173
|
-
i,
|
|
174
|
-
u,
|
|
175
|
-
!1,
|
|
176
|
-
v,
|
|
177
|
-
null,
|
|
178
|
-
null,
|
|
179
|
-
null
|
|
180
|
-
);
|
|
181
|
-
function v(e) {
|
|
182
|
-
for (let o in c)
|
|
183
|
-
this[o] = c[o];
|
|
184
|
-
}
|
|
185
|
-
const E = /* @__PURE__ */ function() {
|
|
186
|
-
return d.exports;
|
|
187
|
-
}();
|
|
188
|
-
export {
|
|
189
|
-
E as default
|
|
190
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.my-process-palette{box-sizing:border-box;padding:8px}.my-process-palette .custom-button{box-sizing:border-box;margin-bottom:8px;padding:4px 8px;border:1px solid rgba(24,144,255,.8);border-radius:4px;cursor:pointer}.my-process-palette .custom-button:first-child{margin-top:8px}
|