@web-utils/component 3.3.11 → 3.3.12
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/flow-designer/index.mjs +89 -39
- package/package.json +1 -1
- package/web-types.json +22 -1
package/flow-designer/index.mjs
CHANGED
|
@@ -30,8 +30,8 @@ import { assign as y, isArray as Se, forEach as Te, isObject as Ce, isFunction a
|
|
|
30
30
|
import { is as R } from "bpmn-js/lib/util/ModelUtil";
|
|
31
31
|
import { isExpanded as _e, isEventSubProcess as Ie } from "bpmn-js/lib/util/DiUtil";
|
|
32
32
|
import { isAny as N } from "bpmn-js/lib/features/modeling/util/ModelingUtil";
|
|
33
|
-
import { getChildLanes as
|
|
34
|
-
import { hasPrimaryModifier as
|
|
33
|
+
import { getChildLanes as Ae } from "bpmn-js/lib/features/modeling/util/LaneUtil";
|
|
34
|
+
import { hasPrimaryModifier as we } from "diagram-js/lib/util/Mouse";
|
|
35
35
|
import oe from "bpmn-js/lib/features/palette/PaletteProvider";
|
|
36
36
|
import K from "diagram-js/lib/features/auto-place/AutoPlace";
|
|
37
37
|
import { getMid as $e, asTRBL as Le } from "diagram-js/lib/layout/LayoutUtil";
|
|
@@ -53,7 +53,7 @@ import "../highlight-j-s/style.css";
|
|
|
53
53
|
function J(n, e, t, i, s, a, r, o, p, F, m, l, c) {
|
|
54
54
|
n = n || {}, i.registerProvider(this), this._contextPad = i, this._modeling = s, this._elementFactory = a, this._connect = r, this._create = o, this._popupMenu = p, this._canvas = F, this._rules = m, this._translate = l, n.autoPlace !== !1 && (this._autoPlace = e.get("autoPlace", !1)), t.on("create.end", 250, function(E) {
|
|
55
55
|
const C = E.context.shape;
|
|
56
|
-
if (!
|
|
56
|
+
if (!we(E) || !i.isOpen(C))
|
|
57
57
|
return;
|
|
58
58
|
const f = i.getEntries(C);
|
|
59
59
|
f.replace && f.replace.action.click(E, C);
|
|
@@ -86,16 +86,16 @@ J.prototype.getContextPadEntries = function(n) {
|
|
|
86
86
|
t.removeElements([n]);
|
|
87
87
|
}
|
|
88
88
|
function C(b) {
|
|
89
|
-
const g = o.getContainer(),
|
|
89
|
+
const g = o.getContainer(), w = e.getPad(b).html, $ = g.getBoundingClientRect(), M = w.getBoundingClientRect(), D = M.top - $.top;
|
|
90
90
|
return {
|
|
91
91
|
x: M.left - $.left,
|
|
92
92
|
y: D + M.height + 5
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
|
-
function f(b, S, g,
|
|
96
|
-
typeof g != "string" && (
|
|
95
|
+
function f(b, S, g, w) {
|
|
96
|
+
typeof g != "string" && (w = g, g = m("Append {type}", { type: b.replace(/^bpmn:/, "") }));
|
|
97
97
|
function $(D, B) {
|
|
98
|
-
const V = i.createShape(y({ type: b },
|
|
98
|
+
const V = i.createShape(y({ type: b }, w));
|
|
99
99
|
a.start(D, V, {
|
|
100
100
|
source: B
|
|
101
101
|
});
|
|
@@ -107,7 +107,7 @@ J.prototype.getContextPadEntries = function(n) {
|
|
|
107
107
|
action: {
|
|
108
108
|
dragstart: $,
|
|
109
109
|
click: F ? function(D, B) {
|
|
110
|
-
const V = i.createShape(y({ type: b },
|
|
110
|
+
const V = i.createShape(y({ type: b }, w));
|
|
111
111
|
F.append(B, V);
|
|
112
112
|
} : $
|
|
113
113
|
}
|
|
@@ -119,7 +119,7 @@ J.prototype.getContextPadEntries = function(n) {
|
|
|
119
119
|
};
|
|
120
120
|
}
|
|
121
121
|
if (N(c, ["bpmn:Lane", "bpmn:Participant"]) && _e(c)) {
|
|
122
|
-
const b =
|
|
122
|
+
const b = Ae(n);
|
|
123
123
|
y(l, {
|
|
124
124
|
"lane-insert-above": {
|
|
125
125
|
group: "lane-insert-above",
|
|
@@ -926,7 +926,7 @@ var Ct = function() {
|
|
|
926
926
|
null,
|
|
927
927
|
null
|
|
928
928
|
);
|
|
929
|
-
const It = _t.exports,
|
|
929
|
+
const It = _t.exports, At = {
|
|
930
930
|
name: "ElementTaskConfig",
|
|
931
931
|
components: { UserTask: gt, ScriptTask: St, ReceiveTask: It },
|
|
932
932
|
props: {
|
|
@@ -977,7 +977,7 @@ const It = _t.exports, wt = {
|
|
|
977
977
|
}
|
|
978
978
|
}
|
|
979
979
|
};
|
|
980
|
-
var
|
|
980
|
+
var wt = function() {
|
|
981
981
|
var e = this, t = e._self._c;
|
|
982
982
|
return t("div", { staticClass: "panel-tab__content" }, [t("ElForm", { attrs: { size: "mini", "label-width": "90px" }, nativeOn: { submit: function(i) {
|
|
983
983
|
i.preventDefault();
|
|
@@ -989,8 +989,8 @@ var At = function() {
|
|
|
989
989
|
e.$set(e.taskConfigForm, "exclusive", i);
|
|
990
990
|
}, expression: "taskConfigForm.exclusive" } }) : e._e()], 1), t(e.witchTaskComponent, e._b({ tag: "Component" }, "Component", e.$props, !1))], 1)], 1);
|
|
991
991
|
}, $t = [], Lt = /* @__PURE__ */ h(
|
|
992
|
-
wt,
|
|
993
992
|
At,
|
|
993
|
+
wt,
|
|
994
994
|
$t,
|
|
995
995
|
!1,
|
|
996
996
|
null,
|
|
@@ -2146,20 +2146,42 @@ const gn = hn.exports, ie = ["base", "task", "form", "multiInstance"], vn = {
|
|
|
2146
2146
|
};
|
|
2147
2147
|
},
|
|
2148
2148
|
props: {
|
|
2149
|
-
|
|
2149
|
+
/**
|
|
2150
|
+
* 默认激活的面板
|
|
2151
|
+
*/
|
|
2152
|
+
activeTabs: {
|
|
2150
2153
|
type: Array,
|
|
2151
2154
|
default: () => ["base", "task", "form", "multiInstance"]
|
|
2152
2155
|
},
|
|
2156
|
+
/**
|
|
2157
|
+
* 使用的配置面板
|
|
2158
|
+
*/
|
|
2159
|
+
useTabs: Array,
|
|
2160
|
+
/**
|
|
2161
|
+
* bpmnModeler
|
|
2162
|
+
*/
|
|
2153
2163
|
bpmnModeler: Object,
|
|
2164
|
+
/**
|
|
2165
|
+
* 配置上下文
|
|
2166
|
+
*/
|
|
2154
2167
|
context: Object,
|
|
2168
|
+
/**
|
|
2169
|
+
* 前缀
|
|
2170
|
+
*/
|
|
2155
2171
|
prefix: {
|
|
2156
2172
|
type: String,
|
|
2157
2173
|
default: "camunda"
|
|
2158
2174
|
},
|
|
2175
|
+
/**
|
|
2176
|
+
* 宽度
|
|
2177
|
+
*/
|
|
2159
2178
|
width: {
|
|
2160
2179
|
type: Number,
|
|
2161
2180
|
default: 480
|
|
2162
2181
|
},
|
|
2182
|
+
/**
|
|
2183
|
+
* 是否禁用编辑
|
|
2184
|
+
*/
|
|
2163
2185
|
idEditDisabled: {
|
|
2164
2186
|
type: Boolean,
|
|
2165
2187
|
default: !1
|
|
@@ -2179,8 +2201,16 @@ const gn = hn.exports, ie = ["base", "task", "form", "multiInstance"], vn = {
|
|
|
2179
2201
|
isPanelVisible: !0
|
|
2180
2202
|
};
|
|
2181
2203
|
},
|
|
2204
|
+
computed: {
|
|
2205
|
+
isArray() {
|
|
2206
|
+
return Array.isArray(this.useTabs);
|
|
2207
|
+
},
|
|
2208
|
+
isNullOrUndefined() {
|
|
2209
|
+
return this.useTabs === null || this.useTabs === void 0;
|
|
2210
|
+
}
|
|
2211
|
+
},
|
|
2182
2212
|
watch: {
|
|
2183
|
-
|
|
2213
|
+
activeTabs: {
|
|
2184
2214
|
immediate: !0,
|
|
2185
2215
|
handler() {
|
|
2186
2216
|
this.activeTab = ie;
|
|
@@ -2238,35 +2268,35 @@ var En = function() {
|
|
|
2238
2268
|
i.stopPropagation(), e.isPanelVisible = !e.isPanelVisible;
|
|
2239
2269
|
} } })]), t("ElCollapse", { directives: [{ name: "show", rawName: "v-show", value: e.isPanelVisible, expression: "isPanelVisible" }], model: { value: e.activeTab, callback: function(i) {
|
|
2240
2270
|
e.activeTab = i;
|
|
2241
|
-
}, expression: "activeTab" } }, [t("ElCollapseItem", { attrs: { name: "base" }, scopedSlots: e._u([{ key: "title", fn: function() {
|
|
2271
|
+
}, expression: "activeTab" } }, [e.isNullOrUndefined || e.isArray && e.useTabs.includes("base") ? t("ElCollapseItem", { attrs: { name: "base" }, scopedSlots: e._u([{ key: "title", fn: function() {
|
|
2242
2272
|
return [t("div", { staticClass: "panel-tab__title" }, [t("i", { staticClass: "el-icon-info" }), e._v("常规")])];
|
|
2243
|
-
}, proxy: !0 }]) }, [t("ElementBaseInfo", { attrs: { id: e.elementId, "id-edit-disabled": e.idEditDisabled, type: e.elementType, element: e.element, "bpmn-instances": e.bpmnInstances } })], 1), e.elementType === "Process" ? t("ElCollapseItem", { key: "message", attrs: { name: "message" }, scopedSlots: e._u([{ key: "title", fn: function() {
|
|
2273
|
+
}, proxy: !0 }], null, !1, 2621733365) }, [t("ElementBaseInfo", { attrs: { id: e.elementId, "id-edit-disabled": e.idEditDisabled, type: e.elementType, element: e.element, "bpmn-instances": e.bpmnInstances } })], 1) : e._e(), (e.isNullOrUndefined || e.isArray && e.useTabs.includes("message")) && e.elementType === "Process" ? t("ElCollapseItem", { key: "message", attrs: { name: "message" }, scopedSlots: e._u([{ key: "title", fn: function() {
|
|
2244
2274
|
return [t("div", { staticClass: "panel-tab__title" }, [t("i", { staticClass: "el-icon-s-comment" }), e._v("消息与信号")])];
|
|
2245
|
-
}, proxy: !0 }], null, !1, 2715634709) }, [t("SignalAndMassage", { attrs: { "bpmn-instances": e.bpmnInstances } })], 1) : e._e(), e.conditionFormVisible ? t("ElCollapseItem", { key: "condition", attrs: { name: "condition" }, scopedSlots: e._u([{ key: "title", fn: function() {
|
|
2275
|
+
}, proxy: !0 }], null, !1, 2715634709) }, [t("SignalAndMassage", { attrs: { "bpmn-instances": e.bpmnInstances } })], 1) : e._e(), (e.isNullOrUndefined || e.isArray && e.useTabs.includes("condition")) && e.conditionFormVisible ? t("ElCollapseItem", { key: "condition", attrs: { name: "condition" }, scopedSlots: e._u([{ key: "title", fn: function() {
|
|
2246
2276
|
return [t("div", { staticClass: "panel-tab__title" }, [t("i", { staticClass: "el-icon-s-promotion" }), e._v("流转条件")])];
|
|
2247
|
-
}, proxy: !0 }], null, !1, 2203010800) }, [t("FlowCondition", { attrs: { id: e.elementId, element: e.element, "bpmn-instances": e.bpmnInstances, type: e.elementType } })], 1) : e._e(), e._t("form", function() {
|
|
2248
|
-
return [e.formVisible ? t("ElCollapseItem", { key: "form", attrs: { name: "form" }, scopedSlots: e._u([{ key: "title", fn: function() {
|
|
2277
|
+
}, proxy: !0 }], null, !1, 2203010800) }, [t("FlowCondition", { attrs: { id: e.elementId, element: e.element, "bpmn-instances": e.bpmnInstances, type: e.elementType } })], 1) : e._e(), e.isNullOrUndefined || e.isArray && e.useTabs.includes("form") ? e._t("form", function() {
|
|
2278
|
+
return [(e.isNullOrUndefined || e.isArray && e.useTabs.includes("base")) && e.formVisible ? t("ElCollapseItem", { key: "form", attrs: { name: "form" }, scopedSlots: e._u([{ key: "title", fn: function() {
|
|
2249
2279
|
return [t("div", { staticClass: "panel-tab__title" }, [t("i", { staticClass: "el-icon-s-order" }), e._v("表单")])];
|
|
2250
2280
|
}, proxy: !0 }], null, !1, 1341048650) }, [t("ElementForm", { attrs: { id: e.elementId, "bpmn-instances": e.bpmnInstances, element: e.element, type: e.elementType } })], 1) : e._e()];
|
|
2251
|
-
}, { id: e.elementId, bpmnInstances: e.bpmnInstances, element: e.element, type: e.elementType }), e._t("task", function() {
|
|
2281
|
+
}, { id: e.elementId, bpmnInstances: e.bpmnInstances, element: e.element, type: e.elementType }) : e._e(), e.isNullOrUndefined || e.isArray && e.useTabs.includes("task") ? e._t("task", function() {
|
|
2252
2282
|
return [e.elementType.indexOf("Task") !== -1 ? t("ElCollapseItem", { key: "task", attrs: { name: "task" }, scopedSlots: e._u([{ key: "title", fn: function() {
|
|
2253
2283
|
return [t("div", { staticClass: "panel-tab__title" }, [t("i", { staticClass: "el-icon-s-claim" }), e._v("任务")])];
|
|
2254
2284
|
}, proxy: !0 }], null, !1, 2144785833) }, [t("ElementTask", { attrs: { id: e.elementId, "bpmn-instances": e.bpmnInstances, element: e.element, type: e.elementType } })], 1) : e._e()];
|
|
2255
|
-
}, { id: e.elementId, bpmnInstances: e.bpmnInstances, element: e.element, type: e.elementType }), e.elementType.indexOf("Task") !== -1 ? t("ElCollapseItem", { key: "multiInstance", attrs: { name: "multiInstance" }, scopedSlots: e._u([{ key: "title", fn: function() {
|
|
2285
|
+
}, { id: e.elementId, bpmnInstances: e.bpmnInstances, element: e.element, type: e.elementType }) : e._e(), (e.isNullOrUndefined || e.isArray && e.useTabs.includes("multiInstance")) && e.elementType.indexOf("Task") !== -1 ? t("ElCollapseItem", { key: "multiInstance", attrs: { name: "multiInstance" }, scopedSlots: e._u([{ key: "title", fn: function() {
|
|
2256
2286
|
return [t("div", { staticClass: "panel-tab__title" }, [t("i", { staticClass: "el-icon-s-help" }), e._v("多实例")])];
|
|
2257
|
-
}, proxy: !0 }], null, !1, 1253501895) }, [t("ElementMultiInstance", { attrs: { id: e.elementId, "bpmn-instances": e.bpmnInstances, element: e.element, type: e.elementType } })], 1) : e._e(), t("ElCollapseItem", { key: "listeners", attrs: { name: "listeners" }, scopedSlots: e._u([{ key: "title", fn: function() {
|
|
2287
|
+
}, proxy: !0 }], null, !1, 1253501895) }, [t("ElementMultiInstance", { attrs: { id: e.elementId, "bpmn-instances": e.bpmnInstances, element: e.element, type: e.elementType } })], 1) : e._e(), e.isNullOrUndefined || e.isArray && e.useTabs.includes("listeners") ? t("ElCollapseItem", { key: "listeners", attrs: { name: "listeners" }, scopedSlots: e._u([{ key: "title", fn: function() {
|
|
2258
2288
|
return [t("div", { staticClass: "panel-tab__title" }, [t("i", { staticClass: "el-icon-message-solid" }), e._v("执行监听器"), t("ElTooltip", { attrs: { effect: "light" }, scopedSlots: e._u([{ key: "content", fn: function() {
|
|
2259
2289
|
return [t("p", [e._v("发送和退回时会触发")])];
|
|
2260
|
-
}, proxy: !0 }]) }, [t("i", { staticClass: "el-icon-info" })])], 1)];
|
|
2261
|
-
}, proxy: !0 }]) }, [t("ElementListeners", { attrs: { id: e.elementId, "bpmn-instances": e.bpmnInstances, element: e.element, type: e.elementType } })], 1), e.elementType === "UserTask" ? t("ElCollapseItem", { key: "taskListeners", attrs: { name: "taskListeners" }, scopedSlots: e._u([{ key: "title", fn: function() {
|
|
2290
|
+
}, proxy: !0 }], null, !1, 635466666) }, [t("i", { staticClass: "el-icon-info" })])], 1)];
|
|
2291
|
+
}, proxy: !0 }], null, !1, 579687766) }, [t("ElementListeners", { attrs: { id: e.elementId, "bpmn-instances": e.bpmnInstances, element: e.element, type: e.elementType } })], 1) : e._e(), (e.isNullOrUndefined || e.isArray && e.useTabs.includes("taskListeners")) && e.elementType === "UserTask" ? t("ElCollapseItem", { key: "taskListeners", attrs: { name: "taskListeners" }, scopedSlots: e._u([{ key: "title", fn: function() {
|
|
2262
2292
|
return [t("div", { staticClass: "panel-tab__title" }, [t("i", { staticClass: "el-icon-message-solid" }), e._v("任务监听器"), t("ElTooltip", { attrs: { effect: "light" }, scopedSlots: e._u([{ key: "content", fn: function() {
|
|
2263
2293
|
return [t("p", [e._v("任务实例的创建、指派、完成、删除、更新、超时会触发")])];
|
|
2264
2294
|
}, proxy: !0 }], null, !1, 1260848675) }, [t("i", { staticClass: "el-icon-info" })])], 1)];
|
|
2265
|
-
}, proxy: !0 }], null, !1, 1038413081) }, [t("UserTaskListeners", { attrs: { id: e.elementId, "bpmn-instances": e.bpmnInstances, element: e.element, type: e.elementType } })], 1) : e._e(), t("ElCollapseItem", { key: "extensions", attrs: { name: "extensions" }, scopedSlots: e._u([{ key: "title", fn: function() {
|
|
2295
|
+
}, proxy: !0 }], null, !1, 1038413081) }, [t("UserTaskListeners", { attrs: { id: e.elementId, "bpmn-instances": e.bpmnInstances, element: e.element, type: e.elementType } })], 1) : e._e(), e.isNullOrUndefined || e.isArray && e.useTabs.includes("extensions") ? t("ElCollapseItem", { key: "extensions", attrs: { name: "extensions" }, scopedSlots: e._u([{ key: "title", fn: function() {
|
|
2266
2296
|
return [t("div", { staticClass: "panel-tab__title" }, [t("i", { staticClass: "el-icon-circle-plus" }), e._v("扩展属性")])];
|
|
2267
|
-
}, proxy: !0 }]) }, [t("ElementProperties", { attrs: { id: e.elementId, "bpmn-instances": e.bpmnInstances, element: e.element, type: e.elementType } })], 1), t("ElCollapseItem", { key: "other", attrs: { name: "other" }, scopedSlots: e._u([{ key: "title", fn: function() {
|
|
2297
|
+
}, proxy: !0 }], null, !1, 1854866151) }, [t("ElementProperties", { attrs: { id: e.elementId, "bpmn-instances": e.bpmnInstances, element: e.element, type: e.elementType } })], 1) : e._e(), e.isNullOrUndefined || e.isArray && e.useTabs.includes("other") ? t("ElCollapseItem", { key: "other", attrs: { name: "other" }, scopedSlots: e._u([{ key: "title", fn: function() {
|
|
2268
2298
|
return [t("div", { staticClass: "panel-tab__title" }, [t("i", { staticClass: "el-icon-s-promotion" }), e._v("其他")])];
|
|
2269
|
-
}, proxy: !0 }]) }, [t("ElementOtherConfig", { attrs: { id: e.elementId, element: e.element, "bpmn-instances": e.bpmnInstances } })], 1), e._t("extend", null, { id: e.elementId, bpmnInstances: e.bpmnInstances, element: e.element, type: e.elementType })], 2)], 1);
|
|
2299
|
+
}, proxy: !0 }], null, !1, 520255146) }, [t("ElementOtherConfig", { attrs: { id: e.elementId, element: e.element, "bpmn-instances": e.bpmnInstances } })], 1) : e._e(), e.isNullOrUndefined || e.isArray && e.useTabs.includes("extend") ? e._t("extend", null, { id: e.elementId, bpmnInstances: e.bpmnInstances, element: e.element, type: e.elementType }) : e._e()], 2)], 1);
|
|
2270
2300
|
}, Fn = [], xn = /* @__PURE__ */ h(
|
|
2271
2301
|
vn,
|
|
2272
2302
|
En,
|
|
@@ -2553,7 +2583,7 @@ const kn = {
|
|
|
2553
2583
|
Data: "数据",
|
|
2554
2584
|
TextAnnotation: "文本说明",
|
|
2555
2585
|
Tasks: "任务"
|
|
2556
|
-
}, _n = "Camunda", In = "http://camunda.org/schema/1.0/bpmn",
|
|
2586
|
+
}, _n = "Camunda", In = "http://camunda.org/schema/1.0/bpmn", An = "camunda", wn = {
|
|
2557
2587
|
tagAlias: "lowerCase"
|
|
2558
2588
|
}, $n = [], Ln = [
|
|
2559
2589
|
{
|
|
@@ -3674,8 +3704,8 @@ const kn = {
|
|
|
3674
3704
|
], On = [], se = {
|
|
3675
3705
|
name: _n,
|
|
3676
3706
|
uri: In,
|
|
3677
|
-
prefix:
|
|
3678
|
-
xml:
|
|
3707
|
+
prefix: An,
|
|
3708
|
+
xml: wn,
|
|
3679
3709
|
associations: $n,
|
|
3680
3710
|
types: Ln,
|
|
3681
3711
|
emumerations: On
|
|
@@ -6160,29 +6190,29 @@ const kn = {
|
|
|
6160
6190
|
emumerations: Kn,
|
|
6161
6191
|
types: Jn
|
|
6162
6192
|
}, Zn = "*";
|
|
6163
|
-
function
|
|
6193
|
+
function A(n) {
|
|
6164
6194
|
const e = this;
|
|
6165
6195
|
n.on("moddleCopy.canCopyProperty", function(t) {
|
|
6166
6196
|
const i = t.property, s = t.parent;
|
|
6167
6197
|
return e.canCopyProperty(i, s);
|
|
6168
6198
|
});
|
|
6169
6199
|
}
|
|
6170
|
-
|
|
6171
|
-
|
|
6200
|
+
A.$inject = ["eventBus"];
|
|
6201
|
+
A.prototype.canCopyProperty = function(n, e) {
|
|
6172
6202
|
if (Ce(n) && !Hn(n, e) || _(n, "camunda:InputOutput") && !this.canHostInputOutput(e) || he(n, ["camunda:Connector", "camunda:Field"]) && !this.canHostConnector(e) || _(n, "camunda:In") && !this.canHostIn(e))
|
|
6173
6203
|
return !1;
|
|
6174
6204
|
};
|
|
6175
|
-
|
|
6205
|
+
A.prototype.canHostInputOutput = function(n) {
|
|
6176
6206
|
if (x(n, "camunda:Connector"))
|
|
6177
6207
|
return !0;
|
|
6178
6208
|
const t = x(n, "bpmn:FlowNode");
|
|
6179
6209
|
return !(!t || he(t, ["bpmn:StartEvent", "bpmn:Gateway", "bpmn:BoundaryEvent"]) || _(t, "bpmn:SubProcess") && t.get("triggeredByEvent"));
|
|
6180
6210
|
};
|
|
6181
|
-
|
|
6211
|
+
A.prototype.canHostConnector = function(n) {
|
|
6182
6212
|
const e = x(n, "camunda:ServiceTaskLike");
|
|
6183
6213
|
return _(e, "bpmn:MessageEventDefinition") ? x(n, "bpmn:IntermediateThrowEvent") || x(n, "bpmn:EndEvent") : !0;
|
|
6184
6214
|
};
|
|
6185
|
-
|
|
6215
|
+
A.prototype.canHostIn = function(n) {
|
|
6186
6216
|
return x(n, "bpmn:CallActivity") ? !0 : x(n, "bpmn:SignalEventDefinition") ? x(n, "bpmn:IntermediateThrowEvent") || x(n, "bpmn:EndEvent") : !0;
|
|
6187
6217
|
};
|
|
6188
6218
|
function _(n, e) {
|
|
@@ -6212,7 +6242,7 @@ function Wn(n) {
|
|
|
6212
6242
|
}
|
|
6213
6243
|
const Xn = {
|
|
6214
6244
|
__init__: ["camundaModdleExtension"],
|
|
6215
|
-
camundaModdleExtension: ["type",
|
|
6245
|
+
camundaModdleExtension: ["type", A]
|
|
6216
6246
|
}, Yn = {
|
|
6217
6247
|
FailedJobRetryTimeCycle: ["bpmn:StartEvent", "bpmn:BoundaryEvent", "bpmn:IntermediateCatchEvent", "bpmn:Activity"],
|
|
6218
6248
|
Connector: ["bpmn:EndEvent", "bpmn:IntermediateThrowEvent"],
|
|
@@ -6626,8 +6656,28 @@ const mi = pi.exports, ci = {
|
|
|
6626
6656
|
ProcessDesigner: mi
|
|
6627
6657
|
},
|
|
6628
6658
|
props: {
|
|
6659
|
+
/**
|
|
6660
|
+
* bpmnXML
|
|
6661
|
+
*/
|
|
6629
6662
|
value: String,
|
|
6663
|
+
/**
|
|
6664
|
+
* 是否使用侧栏
|
|
6665
|
+
*/
|
|
6666
|
+
usePanel: {
|
|
6667
|
+
type: Boolean,
|
|
6668
|
+
default: !0
|
|
6669
|
+
},
|
|
6670
|
+
/**
|
|
6671
|
+
* 使用的配置面板
|
|
6672
|
+
*/
|
|
6673
|
+
useTabs: Array,
|
|
6674
|
+
/**
|
|
6675
|
+
* 拓展类型
|
|
6676
|
+
*/
|
|
6630
6677
|
extendTypes: Array,
|
|
6678
|
+
/**
|
|
6679
|
+
* 配置上下文信息
|
|
6680
|
+
*/
|
|
6631
6681
|
context: Object
|
|
6632
6682
|
},
|
|
6633
6683
|
data() {
|
|
@@ -6659,13 +6709,13 @@ var ui = function() {
|
|
|
6659
6709
|
eventResizingEnabled: !0
|
|
6660
6710
|
}, keyboard: "" }, on: { input: (i) => e.$emit("input", i), "init-finished": e.initModeler }, scopedSlots: e._u([{ key: "toolbar-buttons", fn: function() {
|
|
6661
6711
|
return [e._t("toolbar-buttons", null, { modeler: e.modeler })];
|
|
6662
|
-
}, proxy: !0 }], null, !0) }, "ProcessDesigner", e.controlForm, !1)), t("PropertiesPanel", { key: `penal-${e.reloadIndex}`, staticClass: "process-panel", attrs: { "bpmn-modeler": e.modeler, context: e.context, prefix: e.controlForm.prefix }, scopedSlots: e._u([{ key: "task", fn: function({ id: i, bpmnInstances: s, element: a, type: r }) {
|
|
6712
|
+
}, proxy: !0 }], null, !0) }, "ProcessDesigner", e.controlForm, !1)), e.usePanel && (e.useTabs === null || e.useTabs === void 0 || e.useTabs.length > 0) ? t("PropertiesPanel", { key: `penal-${e.reloadIndex}`, staticClass: "process-panel", attrs: { "use-tabs": e.useTabs, "bpmn-modeler": e.modeler, context: e.context, prefix: e.controlForm.prefix }, scopedSlots: e._u([{ key: "task", fn: function({ id: i, bpmnInstances: s, element: a, type: r }) {
|
|
6663
6713
|
return [e._t("task", null, { id: i, bpmnInstances: s, element: a, type: r })];
|
|
6664
6714
|
} }, { key: "form", fn: function({ id: i, bpmnInstances: s, element: a, type: r }) {
|
|
6665
6715
|
return [e._t("form", null, { id: i, bpmnInstances: s, element: a, type: r })];
|
|
6666
6716
|
} }, { key: "extend", fn: function({ id: i, bpmnInstances: s, element: a, type: r }) {
|
|
6667
6717
|
return [e._t("extend", null, { id: i, bpmnInstances: s, element: a, type: r })];
|
|
6668
|
-
} }], null, !0) })], 1);
|
|
6718
|
+
} }], null, !0) }) : e._e()], 1);
|
|
6669
6719
|
}, di = [], fi = /* @__PURE__ */ h(
|
|
6670
6720
|
ci,
|
|
6671
6721
|
ui,
|
package/package.json
CHANGED
package/web-types.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"framework": "vue",
|
|
4
4
|
"name": "@web-utils/component",
|
|
5
|
-
"version": "3.3.
|
|
5
|
+
"version": "3.3.12",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
8
8
|
"description-markup": "markdown",
|
|
@@ -2629,14 +2629,34 @@
|
|
|
2629
2629
|
"attributes": [
|
|
2630
2630
|
{
|
|
2631
2631
|
"name": "value",
|
|
2632
|
+
"description": "bpmnXML",
|
|
2632
2633
|
"value": {
|
|
2633
2634
|
"kind": "expression",
|
|
2634
2635
|
"type": "string"
|
|
2635
2636
|
},
|
|
2636
2637
|
"default": ""
|
|
2637
2638
|
},
|
|
2639
|
+
{
|
|
2640
|
+
"name": "usePanel",
|
|
2641
|
+
"description": "是否使用侧栏",
|
|
2642
|
+
"value": {
|
|
2643
|
+
"kind": "expression",
|
|
2644
|
+
"type": "boolean"
|
|
2645
|
+
},
|
|
2646
|
+
"default": "true"
|
|
2647
|
+
},
|
|
2648
|
+
{
|
|
2649
|
+
"name": "useTabs",
|
|
2650
|
+
"description": "使用的配置面板",
|
|
2651
|
+
"value": {
|
|
2652
|
+
"kind": "expression",
|
|
2653
|
+
"type": "array"
|
|
2654
|
+
},
|
|
2655
|
+
"default": ""
|
|
2656
|
+
},
|
|
2638
2657
|
{
|
|
2639
2658
|
"name": "extendTypes",
|
|
2659
|
+
"description": "拓展类型",
|
|
2640
2660
|
"value": {
|
|
2641
2661
|
"kind": "expression",
|
|
2642
2662
|
"type": "array"
|
|
@@ -2645,6 +2665,7 @@
|
|
|
2645
2665
|
},
|
|
2646
2666
|
{
|
|
2647
2667
|
"name": "context",
|
|
2668
|
+
"description": "配置上下文信息",
|
|
2648
2669
|
"value": {
|
|
2649
2670
|
"kind": "expression",
|
|
2650
2671
|
"type": "object"
|