@web-utils/component 3.0.2 → 3.0.4
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/address-input/index.mjs +14 -14
- package/chat/index.mjs +39 -40
- package/chunk-file-uploader/index.mjs +35 -594
- package/chunk-file-uploader/style.css +1 -1
- package/chunks/FormTemp.d079292b.mjs +139 -0
- package/chunks/{dataformat.816df805.mjs → dataformat.e655611c.mjs} +6 -6
- package/chunks/detail.d6f8e347.mjs +29 -0
- package/chunks/{dic.3b4ba802.mjs → dic.eaac0823.mjs} +40 -40
- package/chunks/{event.4377230d.mjs → event.10295951.mjs} +2 -2
- package/chunks/form-input-mixin.78a567bc.mjs +24 -0
- package/chunks/form-item-mixin.57cb2019.mjs +140 -0
- package/chunks/{index.d91bd77a.mjs → index.57f871af.mjs} +7 -7
- package/chunks/{init.f0a03127.mjs → init.47f219b4.mjs} +2 -2
- package/chunks/input-number-mixin.41a066be.mjs +60 -0
- package/chunks/{util.7844e2c2.mjs → util.ae730cde.mjs} +21 -21
- package/count-up/index.mjs +17 -14
- package/data-box/index.mjs +18 -19
- package/data-display/index.mjs +17 -18
- package/data-icons/index.mjs +16 -17
- package/data-panel/index.mjs +20 -21
- package/data-pay/index.mjs +15 -16
- package/data-progress/index.mjs +19 -20
- package/data-rotate/index.mjs +35 -36
- package/data-table-picker/index.mjs +23 -25
- package/data-tabs/index.mjs +15 -16
- package/dialog-form/index.mjs +24 -28
- package/dynamic-table/index.mjs +34 -35
- package/easy-popup/index.mjs +56 -29
- package/editable-tree/index.mjs +485 -134
- package/element-dialog/index.mjs +127 -37
- package/empty-view/index.mjs +31 -13
- package/flex-column/index.mjs +1 -1
- package/flex-item/index.mjs +1 -1
- package/flex-row/index.mjs +1 -1
- package/flow/index.mjs +40 -105
- package/flow-designer/index.mjs +555 -615
- package/flow-node/index.mjs +47 -15
- package/flow-viewer/index.mjs +78 -167
- package/form-cascader/index.mjs +24 -24
- package/form-checkbox-group/index.mjs +35 -79
- package/form-date-picker/index.mjs +22 -22
- package/form-holder/index.mjs +1 -1
- package/form-input/index.mjs +86 -28
- package/form-input-email/index.mjs +18 -18
- package/form-input-id-card/index.mjs +27 -27
- package/form-input-number/index.mjs +59 -219
- package/form-input-phone-number/index.mjs +27 -27
- package/form-input-tag/index.mjs +38 -160
- package/form-input-time/index.mjs +16 -16
- package/form-item/index.mjs +146 -15
- package/form-item-group/index.mjs +164 -14
- package/form-radio-group/index.mjs +41 -41
- package/form-select/index.mjs +20 -20
- package/form-switch/index.mjs +19 -19
- package/form-textarea/index.mjs +29 -29
- package/form-view/index.mjs +42 -46
- package/fy-array/index.mjs +2 -2
- package/fy-cascader/index.mjs +15 -15
- package/fy-checkbox/index.mjs +1 -1
- package/fy-code/index.mjs +1 -1
- package/fy-curd/index.mjs +2821 -210
- package/fy-date/index.mjs +59 -17
- package/fy-draggable/index.mjs +1 -1
- package/fy-dynamic/index.mjs +208 -64
- package/fy-empty/index.mjs +29 -12
- package/fy-form/index.mjs +743 -178
- package/fy-form-design/index.mjs +1013 -1540
- package/fy-input/index.mjs +105 -17
- package/fy-input-color/index.mjs +67 -16
- package/fy-input-icon/index.mjs +119 -23
- package/fy-input-map/index.mjs +14 -15
- package/fy-input-number/index.mjs +1 -1
- package/fy-input-table/index.mjs +19 -21
- package/fy-input-tree/index.mjs +3 -3
- package/fy-radio/index.mjs +1 -1
- package/fy-rate/index.mjs +50 -16
- package/fy-select/index.mjs +126 -29
- package/fy-slider/index.mjs +2 -2
- package/fy-switch/index.mjs +1 -1
- package/fy-tabs/index.mjs +51 -15
- package/fy-time/index.mjs +1 -1
- package/fy-title/index.mjs +1 -1
- package/fy-tree/index.mjs +23 -25
- package/fy-u-editor/index.mjs +1 -1
- package/fy-upload/index.mjs +2 -2
- package/highlight-j-s/index.mjs +29 -19
- package/icon-temp/index.mjs +30 -12
- package/iframe-window/index.mjs +18 -19
- package/image-cropper/index.mjs +22 -23
- package/image-preview/index.mjs +1 -1
- package/input-number/index.mjs +173 -63
- package/license/index.mjs +1 -1
- package/loading-view/index.mjs +33 -15
- package/login/index.mjs +1 -1
- package/nav-bar/index.mjs +31 -15
- package/package.json +1 -1
- package/page/index.mjs +20 -12
- package/page-header/index.mjs +34 -13
- package/page-index-top/index.mjs +53 -100
- package/page-skeleton/index.mjs +35 -18
- package/page-skeleton-new/index.mjs +15 -16
- package/pageable-table/index.mjs +228 -86
- package/pageable-view/index.mjs +1 -1
- package/present-view/index.mjs +71 -75
- package/record-video/index.mjs +1 -1
- package/resize-observer/index.mjs +29 -21
- package/search/index.mjs +9 -9
- package/search-popover/index.mjs +1 -1
- package/sign/index.mjs +1 -1
- package/split-pane/index.mjs +45 -40
- package/swiper/index.mjs +13 -14
- package/table-view/index.mjs +97 -631
- package/text-ellipsis/index.mjs +1 -1
- package/tinymce-editor/index.mjs +63 -63
- package/toolbar/index.mjs +208 -15
- package/toolbar-button/index.mjs +56 -30
- package/verify/index.mjs +1 -1
- package/watermark/index.mjs +1 -1
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +118 -49
- package/chunks/CountUp.f1a19f35.mjs +0 -124
- package/chunks/CountUp.vue_vue_type_template_lang.1f68c96e.mjs +0 -8
- package/chunks/EasyPopup.vue_vue_type_style_index_0_lang.89350bda.mjs +0 -32
- package/chunks/EditableTree.vue_vue_type_style_index_0_lang.5dba9f89.mjs +0 -356
- package/chunks/ElementDialog.d8f3105c.mjs +0 -211
- package/chunks/ElementDialog.vue_vue_type_style_index_0_lang.57cb8e07.mjs +0 -95
- package/chunks/EmptyView.e2430422.mjs +0 -51
- package/chunks/EmptyView.vue_vue_type_style_index_0_lang.ffa84770.mjs +0 -23
- package/chunks/FlowNode.vue_vue_type_template_lang.662bdcfa.mjs +0 -37
- package/chunks/FormInput.vue_vue_type_template_lang.3cb79386.mjs +0 -65
- package/chunks/FormItem.2920ac0c.mjs +0 -45
- package/chunks/FormItem.vue_vue_type_style_index_0_lang.970bd712.mjs +0 -258
- package/chunks/FormItemGroup.41daddb6.mjs +0 -64
- package/chunks/FormItemGroup.vue_vue_type_style_index_0_lang.b588a8ea.mjs +0 -155
- package/chunks/FyCurd.8acd2983.mjs +0 -548
- package/chunks/FyCurd.vue_vue_type_style_index_0_lang.4fbd4b30.mjs +0 -2945
- package/chunks/FyDate.vue_vue_type_style_index_0_lang.429c03e3.mjs +0 -47
- package/chunks/FyDynamic.vue_vue_type_style_index_0_lang.304417ce.mjs +0 -151
- package/chunks/FyEmpty.vue_vue_type_style_index_0_lang.fc8bd24c.mjs +0 -22
- package/chunks/FyForm.0294e494.mjs +0 -439
- package/chunks/FyForm.vue_vue_type_style_index_0_lang.6e64daee.mjs +0 -737
- package/chunks/FyInput.vue_vue_type_template_lang.d2c56811.mjs +0 -93
- package/chunks/FyInputColor.vue_vue_type_template_lang.6eca0ddd.mjs +0 -56
- package/chunks/FyInputIcon.vue_vue_type_style_index_0_lang.11a6a221.mjs +0 -158
- package/chunks/FyRate.vue_vue_type_style_index_0_lang.82174185.mjs +0 -39
- package/chunks/FySelect.vue_vue_type_style_index_0_lang.5f0f3244.mjs +0 -102
- package/chunks/FyTabs.vue_vue_type_template_lang.66af5ac9.mjs +0 -41
- package/chunks/HighlightJS.vue_vue_type_style_index_0_lang.fefeaa3b.mjs +0 -15
- package/chunks/IconTemp.42c48e1f.mjs +0 -32
- package/chunks/IconTemp.vue_vue_type_style_index_0_lang.a0777b31.mjs +0 -23
- package/chunks/InputNumber.vue_vue_type_style_index_0_lang.18046bd3.mjs +0 -172
- package/chunks/LoadingView.vue_vue_type_style_index_0_lang.4c3fff2a.mjs +0 -23
- package/chunks/NavBar.vue_vue_type_style_index_0_lang.e21b57f3.mjs +0 -21
- package/chunks/Page.81f4b8d9.mjs +0 -32
- package/chunks/Page.vue_vue_type_style_index_0_lang.cb4f9bf2.mjs +0 -13
- package/chunks/PageHeader.vue_vue_type_style_index_0_lang.3bcca5aa.mjs +0 -26
- package/chunks/PageSkeleton.vue_vue_type_style_index_0_lang.8621381f.mjs +0 -88
- package/chunks/PageableTable.333cbdc1.mjs +0 -335
- package/chunks/PageableTable.vue_vue_type_style_index_0_lang.fd89fb43.mjs +0 -148
- package/chunks/ResizeObserver.60f728f0.mjs +0 -54
- package/chunks/ResizeObserver.vue_vue_type_style_index_0_lang.7079029c.mjs +0 -13
- package/chunks/TableColumn.8503272e.mjs +0 -106
- package/chunks/Toolbar.5c539dbb.mjs +0 -24
- package/chunks/Toolbar.vue_vue_type_style_index_0_lang.7594243c.mjs +0 -275
- package/chunks/ToolbarButton.vue_vue_type_style_index_0_lang.e2cb14ba.mjs +0 -31
- package/chunks/XInputTag.vue_vue_type_style_index_0_lang.7ad045b3.mjs +0 -74
package/flow-designer/index.mjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var He = Object.defineProperty, We = Object.defineProperties;
|
|
2
|
+
var Xe = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var de = Object.getOwnPropertySymbols;
|
|
4
|
+
var Ye = Object.prototype.hasOwnProperty, Qe = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var fe = (e, i, t) => i in e ? He(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t, v = (e, i) => {
|
|
6
6
|
for (var t in i || (i = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var t of
|
|
10
|
-
|
|
7
|
+
Ye.call(i, t) && fe(e, t, i[t]);
|
|
8
|
+
if (de)
|
|
9
|
+
for (var t of de(i))
|
|
10
|
+
Qe.call(i, t) && fe(e, t, i[t]);
|
|
11
11
|
return e;
|
|
12
|
-
}, P = (e, i) =>
|
|
13
|
-
var
|
|
12
|
+
}, P = (e, i) => We(e, Xe(i));
|
|
13
|
+
var g = (e, i, t) => new Promise((n, s) => {
|
|
14
14
|
var r = (b) => {
|
|
15
15
|
try {
|
|
16
16
|
m(t.next(b));
|
|
@@ -26,17 +26,17 @@ var v = (e, i, t) => new Promise((n, s) => {
|
|
|
26
26
|
}, m = (b) => b.done ? n(b.value) : Promise.resolve(b.value).then(r, l);
|
|
27
27
|
m((t = t.apply(e, i)).next());
|
|
28
28
|
});
|
|
29
|
-
import { assign as S, isArray as
|
|
30
|
-
import { is as
|
|
31
|
-
import { isExpanded as
|
|
32
|
-
import { isAny as
|
|
33
|
-
import { getChildLanes as
|
|
34
|
-
import { hasPrimaryModifier as
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import { getMid as
|
|
38
|
-
import { fastClone as A, isBlank as
|
|
39
|
-
import
|
|
29
|
+
import { assign as S, isArray as et, forEach as tt, isObject as nt, isFunction as it, some as V } from "min-dash";
|
|
30
|
+
import { is as X } from "bpmn-js/lib/util/ModelUtil";
|
|
31
|
+
import { isExpanded as st, isEventSubProcess as rt } from "bpmn-js/lib/util/DiUtil";
|
|
32
|
+
import { isAny as ne } from "bpmn-js/lib/features/modeling/util/ModelingUtil";
|
|
33
|
+
import { getChildLanes as at } from "bpmn-js/lib/features/modeling/util/LaneUtil";
|
|
34
|
+
import { hasPrimaryModifier as ot } from "diagram-js/lib/util/Mouse";
|
|
35
|
+
import je from "bpmn-js/lib/features/palette/PaletteProvider";
|
|
36
|
+
import re from "diagram-js/lib/features/auto-place/AutoPlace";
|
|
37
|
+
import { getMid as lt, asTRBL as pt } from "diagram-js/lib/layout/LayoutUtil";
|
|
38
|
+
import { fastClone as A, isBlank as ct, isArray as be } from "@web-utils/core";
|
|
39
|
+
import ye from "element-ui/lib/switch";
|
|
40
40
|
import a from "element-ui/lib/form-item";
|
|
41
41
|
import p from "element-ui/lib/input";
|
|
42
42
|
import C from "element-ui/lib/form";
|
|
@@ -44,41 +44,38 @@ import { n as _ } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
|
44
44
|
import u from "element-ui/lib/option";
|
|
45
45
|
import y from "element-ui/lib/select";
|
|
46
46
|
import o from "element-ui/lib/button";
|
|
47
|
-
import
|
|
48
|
-
import R from "element-ui/lib/checkbox";
|
|
47
|
+
import j from "element-ui/lib/checkbox";
|
|
49
48
|
import c from "element-ui/lib/table-column";
|
|
50
49
|
import I from "element-ui/lib/table";
|
|
51
50
|
import k from "element-ui/lib/divider";
|
|
52
|
-
import
|
|
51
|
+
import ae from "element-ui/lib/drawer";
|
|
53
52
|
import O from "element-ui/lib/collapse-item";
|
|
54
|
-
import
|
|
53
|
+
import mt from "element-ui/lib/collapse";
|
|
55
54
|
import "bpmn-js/dist/assets/bpmn-js.css";
|
|
56
55
|
import "bpmn-js/dist/assets/diagram-js.css";
|
|
57
56
|
import "bpmn-js/dist/assets/bpmn-font/css/bpmn-embedded.css";
|
|
58
57
|
import "bpmn-js-token-simulation/assets/css/bpmn-js-token-simulation.css";
|
|
59
|
-
import
|
|
60
|
-
import
|
|
61
|
-
import
|
|
62
|
-
import
|
|
63
|
-
import
|
|
64
|
-
import
|
|
65
|
-
import
|
|
66
|
-
import
|
|
58
|
+
import ut from "bpmn-js/lib/Modeler";
|
|
59
|
+
import dt from "bpmn-js/lib/features/drilldown/index.js";
|
|
60
|
+
import ft from "bpmn-js-token-simulation";
|
|
61
|
+
import bt from "x2js";
|
|
62
|
+
import Re from "highlight.js/lib/core";
|
|
63
|
+
import yt from "highlight.js/lib/languages/xml";
|
|
64
|
+
import ht from "highlight.js/lib/languages/json";
|
|
65
|
+
import vt from "@web-utils/component/highlight-j-s";
|
|
67
66
|
import "@web-utils/component/highlight-j-s/style.css";
|
|
68
|
-
import "highlight.js/styles/atom-one-dark-reasonable.css";
|
|
69
|
-
import { s as Lt, r as Mt } from "../chunks/HighlightJS.vue_vue_type_style_index_0_lang.fefeaa3b.mjs";
|
|
70
67
|
import E from "element-ui/lib/tooltip";
|
|
71
|
-
import
|
|
72
|
-
function
|
|
68
|
+
import Y from "element-ui/lib/button-group";
|
|
69
|
+
function oe(e, i, t, n, s, r, l, m, b, $, f, d, h) {
|
|
73
70
|
e = e || {}, n.registerProvider(this), this._contextPad = n, this._modeling = s, this._elementFactory = r, this._connect = l, this._create = m, this._popupMenu = b, this._canvas = $, this._rules = f, this._translate = d, e.autoPlace !== !1 && (this._autoPlace = i.get("autoPlace", !1)), t.on("create.end", 250, function(w) {
|
|
74
71
|
const D = w.context.shape;
|
|
75
|
-
if (!
|
|
72
|
+
if (!ot(w) || !n.isOpen(D))
|
|
76
73
|
return;
|
|
77
74
|
const x = n.getEntries(D);
|
|
78
75
|
x.replace && x.replace.action.click(w, D);
|
|
79
76
|
});
|
|
80
77
|
}
|
|
81
|
-
|
|
78
|
+
oe.$inject = [
|
|
82
79
|
"config.contextPad",
|
|
83
80
|
"injector",
|
|
84
81
|
"eventBus",
|
|
@@ -93,7 +90,7 @@ pe.$inject = [
|
|
|
93
90
|
"translate",
|
|
94
91
|
"elementRegistry"
|
|
95
92
|
];
|
|
96
|
-
|
|
93
|
+
oe.prototype.getContextPadEntries = function(e) {
|
|
97
94
|
const i = this._contextPad, t = this._modeling, n = this._elementFactory, s = this._connect, r = this._create, l = this._popupMenu, m = this._canvas, b = this._rules, $ = this._autoPlace, f = this._translate, d = {};
|
|
98
95
|
if (e.type === "label")
|
|
99
96
|
return d;
|
|
@@ -101,22 +98,22 @@ pe.prototype.getContextPadEntries = function(e) {
|
|
|
101
98
|
function w(F, M) {
|
|
102
99
|
s.start(F, M);
|
|
103
100
|
}
|
|
104
|
-
function
|
|
101
|
+
function q() {
|
|
105
102
|
t.removeElements([e]);
|
|
106
103
|
}
|
|
107
104
|
function D(F) {
|
|
108
|
-
const T = m.getContainer(), U = i.getPad(F).html,
|
|
105
|
+
const T = m.getContainer(), U = i.getPad(F).html, N = T.getBoundingClientRect(), J = U.getBoundingClientRect(), Z = J.top - N.top;
|
|
109
106
|
return {
|
|
110
|
-
x:
|
|
111
|
-
y:
|
|
107
|
+
x: J.left - N.left,
|
|
108
|
+
y: Z + J.height + 5
|
|
112
109
|
};
|
|
113
110
|
}
|
|
114
111
|
function x(F, M, T, U) {
|
|
115
112
|
typeof T != "string" && (U = T, T = f("Append {type}", { type: F.replace(/^bpmn:/, "") }));
|
|
116
|
-
function
|
|
117
|
-
const
|
|
118
|
-
r.start(
|
|
119
|
-
source:
|
|
113
|
+
function N(Z, H) {
|
|
114
|
+
const W = n.createShape(S({ type: F }, U));
|
|
115
|
+
r.start(Z, W, {
|
|
116
|
+
source: H
|
|
120
117
|
});
|
|
121
118
|
}
|
|
122
119
|
return {
|
|
@@ -124,21 +121,21 @@ pe.prototype.getContextPadEntries = function(e) {
|
|
|
124
121
|
className: M,
|
|
125
122
|
title: T,
|
|
126
123
|
action: {
|
|
127
|
-
dragstart:
|
|
128
|
-
click: $ ? function(
|
|
129
|
-
const
|
|
130
|
-
$.append(
|
|
131
|
-
} :
|
|
124
|
+
dragstart: N,
|
|
125
|
+
click: $ ? function(Z, H) {
|
|
126
|
+
const W = n.createShape(S({ type: F }, U));
|
|
127
|
+
$.append(H, W);
|
|
128
|
+
} : N
|
|
132
129
|
}
|
|
133
130
|
};
|
|
134
131
|
}
|
|
135
|
-
function
|
|
132
|
+
function K(F) {
|
|
136
133
|
return function(M, T) {
|
|
137
134
|
t.splitLane(T, F), i.open(T, !0);
|
|
138
135
|
};
|
|
139
136
|
}
|
|
140
|
-
if (
|
|
141
|
-
const F =
|
|
137
|
+
if (ne(h, ["bpmn:Lane", "bpmn:Participant"]) && st(h)) {
|
|
138
|
+
const F = at(e);
|
|
142
139
|
S(d, {
|
|
143
140
|
"lane-insert-above": {
|
|
144
141
|
group: "lane-insert-above",
|
|
@@ -156,7 +153,7 @@ pe.prototype.getContextPadEntries = function(e) {
|
|
|
156
153
|
className: "bpmn-icon-lane-divide-two",
|
|
157
154
|
title: f("Divide into two Lanes"),
|
|
158
155
|
action: {
|
|
159
|
-
click:
|
|
156
|
+
click: K(2)
|
|
160
157
|
}
|
|
161
158
|
}
|
|
162
159
|
}), e.height >= 180 && S(d, {
|
|
@@ -165,7 +162,7 @@ pe.prototype.getContextPadEntries = function(e) {
|
|
|
165
162
|
className: "bpmn-icon-lane-divide-three",
|
|
166
163
|
title: f("Divide into three Lanes"),
|
|
167
164
|
action: {
|
|
168
|
-
click:
|
|
165
|
+
click: K(3)
|
|
169
166
|
}
|
|
170
167
|
}
|
|
171
168
|
})), S(d, {
|
|
@@ -181,7 +178,7 @@ pe.prototype.getContextPadEntries = function(e) {
|
|
|
181
178
|
}
|
|
182
179
|
});
|
|
183
180
|
}
|
|
184
|
-
|
|
181
|
+
X(h, "bpmn:FlowNode") && (X(h, "bpmn:EventBasedGateway") ? S(d, {
|
|
185
182
|
"append.receive-task": x(
|
|
186
183
|
"bpmn:ReceiveTask",
|
|
187
184
|
"bpmn-icon-receive-task",
|
|
@@ -211,7 +208,7 @@ pe.prototype.getContextPadEntries = function(e) {
|
|
|
211
208
|
f("Append SignalIntermediateCatchEvent"),
|
|
212
209
|
{ eventDefinitionType: "bpmn:SignalEventDefinition" }
|
|
213
210
|
)
|
|
214
|
-
}) :
|
|
211
|
+
}) : he(h, "bpmn:BoundaryEvent", "bpmn:CompensateEventDefinition") ? S(d, {
|
|
215
212
|
"append.compensation-activity": x(
|
|
216
213
|
"bpmn:Task",
|
|
217
214
|
"bpmn-icon-task",
|
|
@@ -220,7 +217,7 @@ pe.prototype.getContextPadEntries = function(e) {
|
|
|
220
217
|
isForCompensation: !0
|
|
221
218
|
}
|
|
222
219
|
)
|
|
223
|
-
}) : !
|
|
220
|
+
}) : !X(h, "bpmn:EndEvent") && !h.isForCompensation && !he(h, "bpmn:IntermediateThrowEvent", "bpmn:LinkEventDefinition") && !rt(h) && S(d, {
|
|
224
221
|
"append.end-event": x("bpmn:EndEvent", "bpmn-icon-end-event-none", f("Append EndEvent")),
|
|
225
222
|
"append.gateway": x("bpmn:ExclusiveGateway", "bpmn-icon-gateway-none", f("Append Gateway")),
|
|
226
223
|
"append.append-task": x("bpmn:UserTask", "bpmn-icon-user-task", f("Append Task")),
|
|
@@ -243,7 +240,7 @@ pe.prototype.getContextPadEntries = function(e) {
|
|
|
243
240
|
}
|
|
244
241
|
}
|
|
245
242
|
}
|
|
246
|
-
}),
|
|
243
|
+
}), ne(h, [
|
|
247
244
|
"bpmn:FlowNode",
|
|
248
245
|
"bpmn:InteractionNode",
|
|
249
246
|
"bpmn:DataObjectReference",
|
|
@@ -261,7 +258,7 @@ pe.prototype.getContextPadEntries = function(e) {
|
|
|
261
258
|
dragstart: w
|
|
262
259
|
}
|
|
263
260
|
}
|
|
264
|
-
}),
|
|
261
|
+
}), ne(h, ["bpmn:DataObjectReference", "bpmn:DataStoreReference"]) && S(d, {
|
|
265
262
|
connect: {
|
|
266
263
|
group: "connect",
|
|
267
264
|
className: "bpmn-icon-connection-multi",
|
|
@@ -271,35 +268,35 @@ pe.prototype.getContextPadEntries = function(e) {
|
|
|
271
268
|
dragstart: w
|
|
272
269
|
}
|
|
273
270
|
}
|
|
274
|
-
}),
|
|
271
|
+
}), X(h, "bpmn:Group") && S(d, {
|
|
275
272
|
"append.text-annotation": x("bpmn:TextAnnotation", "bpmn-icon-text-annotation")
|
|
276
273
|
});
|
|
277
|
-
let
|
|
278
|
-
return
|
|
274
|
+
let B = b.allowed("elements.delete", { elements: [e] });
|
|
275
|
+
return et(B) && (B = B[0] === e), B && S(d, {
|
|
279
276
|
delete: {
|
|
280
277
|
group: "edit",
|
|
281
278
|
className: "bpmn-icon-trash",
|
|
282
279
|
title: f("Remove"),
|
|
283
280
|
action: {
|
|
284
|
-
click:
|
|
281
|
+
click: q
|
|
285
282
|
}
|
|
286
283
|
}
|
|
287
284
|
}), d;
|
|
288
285
|
};
|
|
289
|
-
function
|
|
286
|
+
function he(e, i, t) {
|
|
290
287
|
const n = e.$instanceOf(i);
|
|
291
288
|
let s = !1;
|
|
292
289
|
const r = e.eventDefinitions || [];
|
|
293
|
-
return
|
|
290
|
+
return tt(r, function(l) {
|
|
294
291
|
l.$type === t && (s = !0);
|
|
295
292
|
}), n && s;
|
|
296
293
|
}
|
|
297
|
-
const
|
|
294
|
+
const gt = {
|
|
298
295
|
__init__: ["contextPadProvider"],
|
|
299
|
-
contextPadProvider: ["type",
|
|
296
|
+
contextPadProvider: ["type", oe]
|
|
300
297
|
};
|
|
301
|
-
function
|
|
302
|
-
|
|
298
|
+
function G(e, i, t, n, s, r, l, m, b) {
|
|
299
|
+
je.call(
|
|
303
300
|
this,
|
|
304
301
|
e,
|
|
305
302
|
i,
|
|
@@ -313,21 +310,21 @@ function K(e, i, t, n, s, r, l, m, b) {
|
|
|
313
310
|
2e3
|
|
314
311
|
), this._create = i, this._elementFactory = t, this._spaceTool = n, this._lassoTool = s, this._handTool = r, this._globalConnect = l, this._moddle = m, this._translate = b;
|
|
315
312
|
}
|
|
316
|
-
const
|
|
313
|
+
const le = function() {
|
|
317
314
|
};
|
|
318
|
-
|
|
319
|
-
|
|
315
|
+
le.prototype = je.prototype;
|
|
316
|
+
le.prototype.getPaletteEntries = function() {
|
|
320
317
|
const e = {}, i = this._create, t = this._elementFactory, n = this._spaceTool, s = this._lassoTool, r = this._handTool, l = this._globalConnect, m = this._translate;
|
|
321
|
-
function b(d, h, w,
|
|
322
|
-
function x(
|
|
318
|
+
function b(d, h, w, q, D) {
|
|
319
|
+
function x(B) {
|
|
323
320
|
const F = t.createShape(S({ type: d }, D));
|
|
324
|
-
D && (F.businessObject.di.isExpanded = D.isExpanded), i.start(
|
|
321
|
+
D && (F.businessObject.di.isExpanded = D.isExpanded), i.start(B, F);
|
|
325
322
|
}
|
|
326
|
-
const
|
|
323
|
+
const K = d.replace(/^bpmn:/, "");
|
|
327
324
|
return {
|
|
328
325
|
group: h,
|
|
329
326
|
className: w,
|
|
330
|
-
title:
|
|
327
|
+
title: q || m("Create {type}", { type: K }),
|
|
331
328
|
action: {
|
|
332
329
|
dragstart: x,
|
|
333
330
|
click: x
|
|
@@ -447,7 +444,7 @@ ce.prototype.getPaletteEntries = function() {
|
|
|
447
444
|
// 'create.group': createAction('bpmn:Group', 'artifact', 'bpmn-icon-group', translate('Create Group'))
|
|
448
445
|
}), e;
|
|
449
446
|
};
|
|
450
|
-
|
|
447
|
+
G.$inject = [
|
|
451
448
|
"palette",
|
|
452
449
|
"create",
|
|
453
450
|
"elementFactory",
|
|
@@ -458,16 +455,16 @@ K.$inject = [
|
|
|
458
455
|
"moddle",
|
|
459
456
|
"translate"
|
|
460
457
|
];
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
const
|
|
458
|
+
G.prototype = new le();
|
|
459
|
+
G.prototype.constructor = G;
|
|
460
|
+
const xt = {
|
|
464
461
|
__init__: ["customPalette"],
|
|
465
|
-
customPalette: ["type",
|
|
462
|
+
customPalette: ["type", G]
|
|
466
463
|
};
|
|
467
|
-
function
|
|
468
|
-
|
|
464
|
+
function Ve(e, i) {
|
|
465
|
+
re.call(this, e, i, 3e3), e.on("autoPlace", 3e3, function(t) {
|
|
469
466
|
const n = t.shape, s = t.source;
|
|
470
|
-
return
|
|
467
|
+
return _t(s, n);
|
|
471
468
|
}), this.append = function(t, n, s) {
|
|
472
469
|
e.fire("autoPlace.start", {
|
|
473
470
|
source: t,
|
|
@@ -485,7 +482,7 @@ function Ne(e, i) {
|
|
|
485
482
|
}), l;
|
|
486
483
|
};
|
|
487
484
|
}
|
|
488
|
-
function
|
|
485
|
+
function Ft(e) {
|
|
489
486
|
return {
|
|
490
487
|
top: e.y,
|
|
491
488
|
right: e.x + (e.width || 0),
|
|
@@ -493,36 +490,36 @@ function Dt(e) {
|
|
|
493
490
|
left: e.x
|
|
494
491
|
};
|
|
495
492
|
}
|
|
496
|
-
function
|
|
493
|
+
function St(e) {
|
|
497
494
|
return {
|
|
498
495
|
x: Math.round(e.x),
|
|
499
496
|
y: Math.round(e.y)
|
|
500
497
|
};
|
|
501
498
|
}
|
|
502
|
-
function
|
|
503
|
-
return
|
|
499
|
+
function Et(e) {
|
|
500
|
+
return St({
|
|
504
501
|
x: e.x + (e.width || 0) / 2,
|
|
505
502
|
y: e.y + (e.height || 0) / 2
|
|
506
503
|
});
|
|
507
504
|
}
|
|
508
|
-
function
|
|
505
|
+
function _t(e, i, t) {
|
|
509
506
|
t || (t = {});
|
|
510
|
-
const n = t.defaultDistance || 50, s =
|
|
507
|
+
const n = t.defaultDistance || 50, s = Et(e), r = Ft(e);
|
|
511
508
|
return {
|
|
512
509
|
x: s.x,
|
|
513
510
|
y: r.bottom + n + i.height / 2
|
|
514
511
|
};
|
|
515
512
|
}
|
|
516
|
-
const
|
|
513
|
+
const ze = function() {
|
|
517
514
|
};
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
const
|
|
522
|
-
function
|
|
523
|
-
e.on("autoPlace",
|
|
515
|
+
ze.prototype = re.prototype;
|
|
516
|
+
Ve.prototype = new ze();
|
|
517
|
+
Ve.prototype.constructor = re;
|
|
518
|
+
const Tt = 200, kt = 100;
|
|
519
|
+
function Ue(e, i, t) {
|
|
520
|
+
e.on("autoPlace", kt, function(n) {
|
|
524
521
|
const s = n.shape, r = n.source;
|
|
525
|
-
return
|
|
522
|
+
return At(r, s);
|
|
526
523
|
}), e.on("autoPlace.end", function(n) {
|
|
527
524
|
t.scrollToElement(n.shape);
|
|
528
525
|
}), this.append = function(n, s, r) {
|
|
@@ -540,23 +537,23 @@ function Ge(e, i, t) {
|
|
|
540
537
|
}), m;
|
|
541
538
|
};
|
|
542
539
|
}
|
|
543
|
-
|
|
544
|
-
function
|
|
545
|
-
const t =
|
|
540
|
+
Ue.$inject = ["eventBus", "modeling", "canvas"];
|
|
541
|
+
function At(e, i) {
|
|
542
|
+
const t = Tt, n = lt(e);
|
|
546
543
|
return {
|
|
547
|
-
x:
|
|
544
|
+
x: pt(e).right + t + i.width / 2,
|
|
548
545
|
y: n.y
|
|
549
546
|
};
|
|
550
547
|
}
|
|
551
|
-
const
|
|
548
|
+
const Ct = {
|
|
552
549
|
__init__: ["autoPlaceSelectionBehavior"],
|
|
553
|
-
autoPlace: ["type",
|
|
550
|
+
autoPlace: ["type", Ue]
|
|
554
551
|
};
|
|
555
|
-
function
|
|
552
|
+
function Ne(e, i, t, n) {
|
|
556
553
|
const s = /* @__PURE__ */ Object.create(null);
|
|
557
554
|
switch (s.event = i.event, t && (s.id = i.id), i.listenerType) {
|
|
558
555
|
case "scriptListener":
|
|
559
|
-
s.script =
|
|
556
|
+
s.script = $t(e, i, n);
|
|
560
557
|
break;
|
|
561
558
|
case "expressionListener":
|
|
562
559
|
s.expression = i.expression;
|
|
@@ -567,26 +564,26 @@ function qe(e, i, t, n) {
|
|
|
567
564
|
default:
|
|
568
565
|
s.class = i.class;
|
|
569
566
|
}
|
|
570
|
-
if (i.fields && (s.fields = i.fields.map((r) =>
|
|
567
|
+
if (i.fields && (s.fields = i.fields.map((r) => wt(e, r, n))), t && i.event === "timeout" && i.eventDefinitionType) {
|
|
571
568
|
const r = e.moddle.create("bpmn:FormalExpression", {
|
|
572
569
|
body: i.eventTimeDefinitions
|
|
573
570
|
}), l = e.moddle.create("bpmn:TimerEventDefinition", {
|
|
574
|
-
id: `TimerEventDefinition_${
|
|
571
|
+
id: `TimerEventDefinition_${It(8)}`,
|
|
575
572
|
[`time${i.eventDefinitionType.replace(/^\S/, (m) => m.toUpperCase())}`]: r
|
|
576
573
|
});
|
|
577
574
|
s.eventDefinitions = [l];
|
|
578
575
|
}
|
|
579
576
|
return e.moddle.create(`${n}:${t ? "TaskListener" : "ExecutionListener"}`, s);
|
|
580
577
|
}
|
|
581
|
-
function
|
|
578
|
+
function wt(e, i, t) {
|
|
582
579
|
const { name: n, fieldType: s, string: r, expression: l } = i, m = s === "string" ? { name: n, string: r } : { name: n, expression: l };
|
|
583
580
|
return e.moddle.create(`${t}:Field`, m);
|
|
584
581
|
}
|
|
585
|
-
function
|
|
582
|
+
function $t(e, i, t) {
|
|
586
583
|
const { scriptType: n, scriptFormat: s, value: r, resource: l } = i, m = n === "inlineScript" ? { scriptFormat: s, value: r } : { scriptFormat: s, resource: l };
|
|
587
584
|
return e.moddle.create(`${t}:Script`, m);
|
|
588
585
|
}
|
|
589
|
-
function
|
|
586
|
+
function te(e, i, t) {
|
|
590
587
|
const n = e.moddle.create("bpmn:ExtensionElements", {
|
|
591
588
|
values: t
|
|
592
589
|
});
|
|
@@ -594,19 +591,19 @@ function ie(e, i, t) {
|
|
|
594
591
|
extensionElements: n
|
|
595
592
|
});
|
|
596
593
|
}
|
|
597
|
-
function
|
|
594
|
+
function It(e = 8, i) {
|
|
598
595
|
let t = "";
|
|
599
596
|
const n = i || "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
|
600
597
|
for (let s = e; s > 0; --s)
|
|
601
598
|
t += n[Math.floor(Math.random() * n.length)];
|
|
602
599
|
return t;
|
|
603
600
|
}
|
|
604
|
-
const
|
|
605
|
-
|
|
606
|
-
},
|
|
601
|
+
const Lt = (e, i = "body") => e ? e.get(i) : null, Mt = (e, i, t = "body", n) => {
|
|
602
|
+
Pt(e, i, { [t]: n });
|
|
603
|
+
}, Pt = ({ modeling: e }, i, t) => {
|
|
607
604
|
e.updateProperties(i, t);
|
|
608
605
|
};
|
|
609
|
-
var
|
|
606
|
+
var Ot = function() {
|
|
610
607
|
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
611
608
|
return t("div", {
|
|
612
609
|
staticClass: "panel-tab__content"
|
|
@@ -705,7 +702,7 @@ var Wt = function() {
|
|
|
705
702
|
attrs: {
|
|
706
703
|
label: "可执行"
|
|
707
704
|
}
|
|
708
|
-
}, [t(
|
|
705
|
+
}, [t(ye, {
|
|
709
706
|
attrs: {
|
|
710
707
|
"active-text": "是",
|
|
711
708
|
"inactive-text": "否"
|
|
@@ -726,7 +723,7 @@ var Wt = function() {
|
|
|
726
723
|
attrs: {
|
|
727
724
|
label: "状态"
|
|
728
725
|
}
|
|
729
|
-
}, [t(
|
|
726
|
+
}, [t(ye, {
|
|
730
727
|
attrs: {
|
|
731
728
|
"active-text": "展开",
|
|
732
729
|
"inactive-text": "折叠"
|
|
@@ -744,8 +741,8 @@ var Wt = function() {
|
|
|
744
741
|
expression: "businessObject.isExpanded"
|
|
745
742
|
}
|
|
746
743
|
})], 1) : e._e()], 2)], 1);
|
|
747
|
-
},
|
|
748
|
-
const
|
|
744
|
+
}, Dt = [];
|
|
745
|
+
const Bt = {
|
|
749
746
|
name: "ElementBaseInfo",
|
|
750
747
|
inject: {
|
|
751
748
|
prefix: "prefix",
|
|
@@ -777,7 +774,7 @@ const Yt = {
|
|
|
777
774
|
methods: {
|
|
778
775
|
init(e) {
|
|
779
776
|
const { businessObject: i } = this.element;
|
|
780
|
-
e ? (this.businessObject = A(i), this.businessObject.$type === "bpmn:SubProcess" && this.$set(this.businessObject, "isExpanded", this.element.di.isExpanded)) : this.businessObject = {}, this.skipExpression =
|
|
777
|
+
e ? (this.businessObject = A(i), this.businessObject.$type === "bpmn:SubProcess" && this.$set(this.businessObject, "isExpanded", this.element.di.isExpanded)) : this.businessObject = {}, this.skipExpression = Lt(i, this.skipExpressionProp);
|
|
781
778
|
},
|
|
782
779
|
updateBaseInfo(e) {
|
|
783
780
|
const { modeling: i } = this.bpmnInstances;
|
|
@@ -795,28 +792,28 @@ const Yt = {
|
|
|
795
792
|
i.updateProperties(this.element, { [e]: this.businessObject[e] });
|
|
796
793
|
},
|
|
797
794
|
updateProp(e, i) {
|
|
798
|
-
|
|
795
|
+
Mt(this.bpmnInstances, this.element, e, i);
|
|
799
796
|
}
|
|
800
797
|
}
|
|
801
|
-
},
|
|
802
|
-
var
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
798
|
+
}, ve = {};
|
|
799
|
+
var jt = /* @__PURE__ */ _(
|
|
800
|
+
Bt,
|
|
801
|
+
Ot,
|
|
802
|
+
Dt,
|
|
806
803
|
!1,
|
|
807
|
-
|
|
804
|
+
Rt,
|
|
808
805
|
null,
|
|
809
806
|
null,
|
|
810
807
|
null
|
|
811
808
|
);
|
|
812
|
-
function
|
|
813
|
-
for (let i in
|
|
814
|
-
this[i] =
|
|
809
|
+
function Rt(e) {
|
|
810
|
+
for (let i in ve)
|
|
811
|
+
this[i] = ve[i];
|
|
815
812
|
}
|
|
816
|
-
const
|
|
817
|
-
return
|
|
813
|
+
const Vt = /* @__PURE__ */ function() {
|
|
814
|
+
return jt.exports;
|
|
818
815
|
}();
|
|
819
|
-
var
|
|
816
|
+
var zt = function() {
|
|
820
817
|
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
821
818
|
return t("div", {
|
|
822
819
|
staticClass: "panel-tab__content"
|
|
@@ -847,8 +844,8 @@ var tn = function() {
|
|
|
847
844
|
expression: "documentation"
|
|
848
845
|
}
|
|
849
846
|
})], 1)])]);
|
|
850
|
-
},
|
|
851
|
-
const
|
|
847
|
+
}, Ut = [];
|
|
848
|
+
const Nt = {
|
|
852
849
|
name: "ElementOtherConfig",
|
|
853
850
|
props: {
|
|
854
851
|
id: String,
|
|
@@ -864,7 +861,7 @@ const sn = {
|
|
|
864
861
|
id: {
|
|
865
862
|
immediate: !0,
|
|
866
863
|
handler() {
|
|
867
|
-
if (
|
|
864
|
+
if (ct(this.element))
|
|
868
865
|
this.documentation = "";
|
|
869
866
|
else {
|
|
870
867
|
const {
|
|
@@ -888,25 +885,25 @@ const sn = {
|
|
|
888
885
|
}
|
|
889
886
|
}
|
|
890
887
|
}
|
|
891
|
-
},
|
|
892
|
-
var
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
888
|
+
}, ge = {};
|
|
889
|
+
var Gt = /* @__PURE__ */ _(
|
|
890
|
+
Nt,
|
|
891
|
+
zt,
|
|
892
|
+
Ut,
|
|
896
893
|
!1,
|
|
897
|
-
|
|
894
|
+
qt,
|
|
898
895
|
null,
|
|
899
896
|
null,
|
|
900
897
|
null
|
|
901
898
|
);
|
|
902
|
-
function
|
|
903
|
-
for (let i in
|
|
904
|
-
this[i] =
|
|
899
|
+
function qt(e) {
|
|
900
|
+
for (let i in ge)
|
|
901
|
+
this[i] = ge[i];
|
|
905
902
|
}
|
|
906
|
-
const
|
|
907
|
-
return
|
|
903
|
+
const Kt = /* @__PURE__ */ function() {
|
|
904
|
+
return Gt.exports;
|
|
908
905
|
}();
|
|
909
|
-
var
|
|
906
|
+
var Jt = function() {
|
|
910
907
|
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
911
908
|
return t("div", {
|
|
912
909
|
staticStyle: {
|
|
@@ -1056,8 +1053,8 @@ var on = function() {
|
|
|
1056
1053
|
expression: "userTaskForm.priority"
|
|
1057
1054
|
}
|
|
1058
1055
|
})], 1)], 1);
|
|
1059
|
-
},
|
|
1060
|
-
const
|
|
1056
|
+
}, Zt = [];
|
|
1057
|
+
const Ht = {
|
|
1061
1058
|
name: "UserTask",
|
|
1062
1059
|
props: {
|
|
1063
1060
|
id: String,
|
|
@@ -1099,25 +1096,25 @@ const pn = {
|
|
|
1099
1096
|
e === "candidateUsers" || e === "candidateGroups" ? i[e] = this.userTaskForm[e] && this.userTaskForm[e].length ? this.userTaskForm[e].join() : null : i[e] = this.userTaskForm[e] || null, this.bpmnInstances.modeling.updateProperties(this.element, i);
|
|
1100
1097
|
}
|
|
1101
1098
|
}
|
|
1102
|
-
},
|
|
1103
|
-
var
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1099
|
+
}, xe = {};
|
|
1100
|
+
var Wt = /* @__PURE__ */ _(
|
|
1101
|
+
Ht,
|
|
1102
|
+
Jt,
|
|
1103
|
+
Zt,
|
|
1107
1104
|
!1,
|
|
1108
|
-
|
|
1105
|
+
Xt,
|
|
1109
1106
|
null,
|
|
1110
1107
|
null,
|
|
1111
1108
|
null
|
|
1112
1109
|
);
|
|
1113
|
-
function
|
|
1114
|
-
for (let i in
|
|
1115
|
-
this[i] =
|
|
1110
|
+
function Xt(e) {
|
|
1111
|
+
for (let i in xe)
|
|
1112
|
+
this[i] = xe[i];
|
|
1116
1113
|
}
|
|
1117
|
-
const
|
|
1118
|
-
return
|
|
1114
|
+
const Yt = /* @__PURE__ */ function() {
|
|
1115
|
+
return Wt.exports;
|
|
1119
1116
|
}();
|
|
1120
|
-
var
|
|
1117
|
+
var Qt = function() {
|
|
1121
1118
|
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
1122
1119
|
return t("div", {
|
|
1123
1120
|
staticStyle: {
|
|
@@ -1256,8 +1253,8 @@ var dn = function() {
|
|
|
1256
1253
|
expression: "scriptTaskForm.resultVariable"
|
|
1257
1254
|
}
|
|
1258
1255
|
})], 1)], 1);
|
|
1259
|
-
},
|
|
1260
|
-
const
|
|
1256
|
+
}, en = [];
|
|
1257
|
+
const tn = {
|
|
1261
1258
|
name: "ScriptTask",
|
|
1262
1259
|
props: {
|
|
1263
1260
|
id: String,
|
|
@@ -1297,25 +1294,25 @@ const bn = {
|
|
|
1297
1294
|
e.scriptFormat = this.scriptTaskForm.scriptFormat || null, e.resultVariable = this.scriptTaskForm.resultVariable || null, this.scriptTaskForm.scriptType === "inline" ? (e.script = this.scriptTaskForm.script || null, e.resource = null) : (e.resource = this.scriptTaskForm.resource || null, e.script = null), this.bpmnInstances.modeling.updateProperties(this.element, e);
|
|
1298
1295
|
}
|
|
1299
1296
|
}
|
|
1300
|
-
},
|
|
1301
|
-
var
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1297
|
+
}, Fe = {};
|
|
1298
|
+
var nn = /* @__PURE__ */ _(
|
|
1299
|
+
tn,
|
|
1300
|
+
Qt,
|
|
1301
|
+
en,
|
|
1305
1302
|
!1,
|
|
1306
|
-
|
|
1303
|
+
sn,
|
|
1307
1304
|
null,
|
|
1308
1305
|
null,
|
|
1309
1306
|
null
|
|
1310
1307
|
);
|
|
1311
|
-
function
|
|
1312
|
-
for (let i in
|
|
1313
|
-
this[i] =
|
|
1308
|
+
function sn(e) {
|
|
1309
|
+
for (let i in Fe)
|
|
1310
|
+
this[i] = Fe[i];
|
|
1314
1311
|
}
|
|
1315
|
-
const
|
|
1316
|
-
return
|
|
1312
|
+
const rn = /* @__PURE__ */ function() {
|
|
1313
|
+
return nn.exports;
|
|
1317
1314
|
}();
|
|
1318
|
-
var
|
|
1315
|
+
var an = function() {
|
|
1319
1316
|
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
1320
1317
|
return t("div", {
|
|
1321
1318
|
staticStyle: {
|
|
@@ -1363,7 +1360,7 @@ var vn = function() {
|
|
|
1363
1360
|
on: {
|
|
1364
1361
|
click: e.openMessageModel
|
|
1365
1362
|
}
|
|
1366
|
-
})], 1)]), t(
|
|
1363
|
+
})], 1)]), t("ElementDialog", {
|
|
1367
1364
|
attrs: {
|
|
1368
1365
|
visible: e.messageModelVisible,
|
|
1369
1366
|
"close-on-click-modal": !1,
|
|
@@ -1434,8 +1431,8 @@ var vn = function() {
|
|
|
1434
1431
|
expression: "newMessageForm.name"
|
|
1435
1432
|
}
|
|
1436
1433
|
})], 1)], 1)], 1)], 1);
|
|
1437
|
-
},
|
|
1438
|
-
const
|
|
1434
|
+
}, on = [];
|
|
1435
|
+
const ln = {
|
|
1439
1436
|
name: "ReceiveTask",
|
|
1440
1437
|
props: {
|
|
1441
1438
|
id: String,
|
|
@@ -1487,25 +1484,25 @@ const Fn = {
|
|
|
1487
1484
|
});
|
|
1488
1485
|
}
|
|
1489
1486
|
}
|
|
1490
|
-
},
|
|
1491
|
-
var
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1487
|
+
}, Se = {};
|
|
1488
|
+
var pn = /* @__PURE__ */ _(
|
|
1489
|
+
ln,
|
|
1490
|
+
an,
|
|
1491
|
+
on,
|
|
1495
1492
|
!1,
|
|
1496
|
-
|
|
1493
|
+
cn,
|
|
1497
1494
|
null,
|
|
1498
1495
|
null,
|
|
1499
1496
|
null
|
|
1500
1497
|
);
|
|
1501
|
-
function
|
|
1502
|
-
for (let i in
|
|
1503
|
-
this[i] =
|
|
1498
|
+
function cn(e) {
|
|
1499
|
+
for (let i in Se)
|
|
1500
|
+
this[i] = Se[i];
|
|
1504
1501
|
}
|
|
1505
|
-
const
|
|
1506
|
-
return
|
|
1502
|
+
const mn = /* @__PURE__ */ function() {
|
|
1503
|
+
return pn.exports;
|
|
1507
1504
|
}();
|
|
1508
|
-
var
|
|
1505
|
+
var un = function() {
|
|
1509
1506
|
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
1510
1507
|
return t("div", {
|
|
1511
1508
|
staticClass: "panel-tab__content"
|
|
@@ -1523,7 +1520,7 @@ var Tn = function() {
|
|
|
1523
1520
|
attrs: {
|
|
1524
1521
|
label: "异步延续"
|
|
1525
1522
|
}
|
|
1526
|
-
}, [t(
|
|
1523
|
+
}, [t(j, {
|
|
1527
1524
|
attrs: {
|
|
1528
1525
|
label: "异步前"
|
|
1529
1526
|
},
|
|
@@ -1537,7 +1534,7 @@ var Tn = function() {
|
|
|
1537
1534
|
},
|
|
1538
1535
|
expression: "taskConfigForm.asyncBefore"
|
|
1539
1536
|
}
|
|
1540
|
-
}), t(
|
|
1537
|
+
}), t(j, {
|
|
1541
1538
|
attrs: {
|
|
1542
1539
|
label: "异步后"
|
|
1543
1540
|
},
|
|
@@ -1551,7 +1548,7 @@ var Tn = function() {
|
|
|
1551
1548
|
},
|
|
1552
1549
|
expression: "taskConfigForm.asyncAfter"
|
|
1553
1550
|
}
|
|
1554
|
-
}), e.taskConfigForm.asyncAfter || e.taskConfigForm.asyncBefore ? t(
|
|
1551
|
+
}), e.taskConfigForm.asyncAfter || e.taskConfigForm.asyncBefore ? t(j, {
|
|
1555
1552
|
attrs: {
|
|
1556
1553
|
label: "排除"
|
|
1557
1554
|
},
|
|
@@ -1568,10 +1565,10 @@ var Tn = function() {
|
|
|
1568
1565
|
}) : e._e()], 1), t(e.witchTaskComponent, e._b({
|
|
1569
1566
|
tag: "Component"
|
|
1570
1567
|
}, "Component", e.$props, !1))], 1)], 1);
|
|
1571
|
-
},
|
|
1572
|
-
const
|
|
1568
|
+
}, dn = [];
|
|
1569
|
+
const fn = {
|
|
1573
1570
|
name: "ElementTaskConfig",
|
|
1574
|
-
components: { UserTask:
|
|
1571
|
+
components: { UserTask: Yt, ScriptTask: rn, ReceiveTask: mn },
|
|
1575
1572
|
props: {
|
|
1576
1573
|
id: String,
|
|
1577
1574
|
element: Object,
|
|
@@ -1616,28 +1613,28 @@ const An = {
|
|
|
1616
1613
|
},
|
|
1617
1614
|
methods: {
|
|
1618
1615
|
changeTaskAsync() {
|
|
1619
|
-
!this.taskConfigForm.asyncBefore && !this.taskConfigForm.asyncAfter && (this.taskConfigForm.exclusive = !1), this.bpmnInstances.modeling.updateProperties(this.element,
|
|
1616
|
+
!this.taskConfigForm.asyncBefore && !this.taskConfigForm.asyncAfter && (this.taskConfigForm.exclusive = !1), this.bpmnInstances.modeling.updateProperties(this.element, v({}, this.taskConfigForm));
|
|
1620
1617
|
}
|
|
1621
1618
|
}
|
|
1622
|
-
},
|
|
1623
|
-
var
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1619
|
+
}, Ee = {};
|
|
1620
|
+
var bn = /* @__PURE__ */ _(
|
|
1621
|
+
fn,
|
|
1622
|
+
un,
|
|
1623
|
+
dn,
|
|
1627
1624
|
!1,
|
|
1628
|
-
|
|
1625
|
+
yn,
|
|
1629
1626
|
null,
|
|
1630
1627
|
null,
|
|
1631
1628
|
null
|
|
1632
1629
|
);
|
|
1633
|
-
function
|
|
1634
|
-
for (let i in
|
|
1635
|
-
this[i] =
|
|
1630
|
+
function yn(e) {
|
|
1631
|
+
for (let i in Ee)
|
|
1632
|
+
this[i] = Ee[i];
|
|
1636
1633
|
}
|
|
1637
|
-
const
|
|
1638
|
-
return
|
|
1634
|
+
const hn = /* @__PURE__ */ function() {
|
|
1635
|
+
return bn.exports;
|
|
1639
1636
|
}();
|
|
1640
|
-
var
|
|
1637
|
+
var vn = function() {
|
|
1641
1638
|
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
1642
1639
|
return t("div", {
|
|
1643
1640
|
staticClass: "panel-tab__content"
|
|
@@ -1767,7 +1764,7 @@ var In = function() {
|
|
|
1767
1764
|
attrs: {
|
|
1768
1765
|
label: "异步状态"
|
|
1769
1766
|
}
|
|
1770
|
-
}, [t(
|
|
1767
|
+
}, [t(j, {
|
|
1771
1768
|
attrs: {
|
|
1772
1769
|
label: "异步前"
|
|
1773
1770
|
},
|
|
@@ -1783,7 +1780,7 @@ var In = function() {
|
|
|
1783
1780
|
},
|
|
1784
1781
|
expression: "loopInstanceForm.asyncBefore"
|
|
1785
1782
|
}
|
|
1786
|
-
}), t(
|
|
1783
|
+
}), t(j, {
|
|
1787
1784
|
attrs: {
|
|
1788
1785
|
label: "异步后"
|
|
1789
1786
|
},
|
|
@@ -1799,7 +1796,7 @@ var In = function() {
|
|
|
1799
1796
|
},
|
|
1800
1797
|
expression: "loopInstanceForm.asyncAfter"
|
|
1801
1798
|
}
|
|
1802
|
-
}), e.loopInstanceForm.asyncAfter || e.loopInstanceForm.asyncBefore ? t(
|
|
1799
|
+
}), e.loopInstanceForm.asyncAfter || e.loopInstanceForm.asyncBefore ? t(j, {
|
|
1803
1800
|
attrs: {
|
|
1804
1801
|
label: "排除"
|
|
1805
1802
|
},
|
|
@@ -1836,8 +1833,8 @@ var In = function() {
|
|
|
1836
1833
|
expression: "loopInstanceForm.timeCycle"
|
|
1837
1834
|
}
|
|
1838
1835
|
})], 1) : e._e()] : e._e()], 2)], 1);
|
|
1839
|
-
},
|
|
1840
|
-
const
|
|
1836
|
+
}, gn = [];
|
|
1837
|
+
const xn = {
|
|
1841
1838
|
name: "ElementMultiInstance",
|
|
1842
1839
|
inject: {
|
|
1843
1840
|
prefix: "prefix"
|
|
@@ -1885,7 +1882,7 @@ const Mn = {
|
|
|
1885
1882
|
this.loopCharacteristics = "StandardLoop", this.loopInstanceForm = {};
|
|
1886
1883
|
return;
|
|
1887
1884
|
}
|
|
1888
|
-
e.loopCharacteristics.isSequential ? this.loopCharacteristics = "SequentialMultiInstance" : this.loopCharacteristics = "ParallelMultiInstance", this.loopInstanceForm = P(
|
|
1885
|
+
e.loopCharacteristics.isSequential ? this.loopCharacteristics = "SequentialMultiInstance" : this.loopCharacteristics = "ParallelMultiInstance", this.loopInstanceForm = P(v(v({}, this.defaultLoopInstanceForm), e.loopCharacteristics), {
|
|
1889
1886
|
completionCondition: (n = (t = (i = e.loopCharacteristics) == null ? void 0 : i.completionCondition) == null ? void 0 : t.body) != null ? n : "",
|
|
1890
1887
|
loopCardinality: (l = (r = (s = e.loopCharacteristics) == null ? void 0 : s.loopCardinality) == null ? void 0 : r.body) != null ? l : ""
|
|
1891
1888
|
}), this.multiLoopInstance = this.element.businessObject.loopCharacteristics, e.loopCharacteristics.extensionElements && e.loopCharacteristics.extensionElements.values && e.loopCharacteristics.extensionElements.values.length && this.$set(
|
|
@@ -1953,25 +1950,25 @@ const Mn = {
|
|
|
1953
1950
|
!i && !t ? (this.$set(this.loopInstanceForm, "exclusive", !1), n = { asyncBefore: !1, asyncAfter: !1, exclusive: !1, extensionElements: null }) : n[e] = this.loopInstanceForm[e], this.bpmnInstances.modeling.updateModdleProperties(this.element, this.multiLoopInstance, n);
|
|
1954
1951
|
}
|
|
1955
1952
|
}
|
|
1956
|
-
},
|
|
1957
|
-
var
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1953
|
+
}, _e = {};
|
|
1954
|
+
var Fn = /* @__PURE__ */ _(
|
|
1955
|
+
xn,
|
|
1956
|
+
vn,
|
|
1957
|
+
gn,
|
|
1961
1958
|
!1,
|
|
1962
|
-
|
|
1959
|
+
Sn,
|
|
1963
1960
|
null,
|
|
1964
1961
|
null,
|
|
1965
1962
|
null
|
|
1966
1963
|
);
|
|
1967
|
-
function
|
|
1968
|
-
for (let i in
|
|
1969
|
-
this[i] =
|
|
1964
|
+
function Sn(e) {
|
|
1965
|
+
for (let i in _e)
|
|
1966
|
+
this[i] = _e[i];
|
|
1970
1967
|
}
|
|
1971
|
-
const
|
|
1972
|
-
return
|
|
1968
|
+
const En = /* @__PURE__ */ function() {
|
|
1969
|
+
return Fn.exports;
|
|
1973
1970
|
}();
|
|
1974
|
-
var
|
|
1971
|
+
var _n = function() {
|
|
1975
1972
|
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
1976
1973
|
return t("div", {
|
|
1977
1974
|
staticClass: "panel-tab__content"
|
|
@@ -2140,8 +2137,8 @@ var Dn = function() {
|
|
|
2140
2137
|
expression: "flowConditionForm.resource"
|
|
2141
2138
|
}
|
|
2142
2139
|
})], 1) : e._e()] : e._e()], 2)], 1);
|
|
2143
|
-
},
|
|
2144
|
-
const
|
|
2140
|
+
}, Tn = [];
|
|
2141
|
+
const kn = {
|
|
2145
2142
|
name: "FlowCondition",
|
|
2146
2143
|
props: {
|
|
2147
2144
|
id: String,
|
|
@@ -2157,7 +2154,7 @@ const jn = {
|
|
|
2157
2154
|
id: {
|
|
2158
2155
|
immediate: !0,
|
|
2159
2156
|
handler() {
|
|
2160
|
-
return
|
|
2157
|
+
return g(this, null, function* () {
|
|
2161
2158
|
yield this.$nextTick(), this.resetFlowCondition();
|
|
2162
2159
|
});
|
|
2163
2160
|
}
|
|
@@ -2174,7 +2171,7 @@ const jn = {
|
|
|
2174
2171
|
this.flowConditionForm = { type: "normal" };
|
|
2175
2172
|
else {
|
|
2176
2173
|
const e = this.element.businessObject.conditionExpression;
|
|
2177
|
-
if (this.flowConditionForm = P(
|
|
2174
|
+
if (this.flowConditionForm = P(v({}, e), { type: "condition" }), this.flowConditionForm.resource) {
|
|
2178
2175
|
this.$set(this.flowConditionForm, "conditionType", "script"), this.$set(this.flowConditionForm, "scriptType", "externalScript");
|
|
2179
2176
|
return;
|
|
2180
2177
|
}
|
|
@@ -2212,25 +2209,25 @@ const jn = {
|
|
|
2212
2209
|
e === "expression" ? r = this.bpmnInstances.moddle.create("bpmn:FormalExpression", { body: t }) : i === "inlineScript" ? (r = this.bpmnInstances.moddle.create("bpmn:FormalExpression", { body: t, language: s }), this.$set(this.flowConditionForm, "resource", "")) : (this.$set(this.flowConditionForm, "body", ""), r = this.bpmnInstances.moddle.create("bpmn:FormalExpression", { resource: n, language: s })), this.bpmnInstances.modeling.updateProperties(this.element, { conditionExpression: r });
|
|
2213
2210
|
}
|
|
2214
2211
|
}
|
|
2215
|
-
},
|
|
2216
|
-
var
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2212
|
+
}, Te = {};
|
|
2213
|
+
var An = /* @__PURE__ */ _(
|
|
2214
|
+
kn,
|
|
2215
|
+
_n,
|
|
2216
|
+
Tn,
|
|
2220
2217
|
!1,
|
|
2221
|
-
|
|
2218
|
+
Cn,
|
|
2222
2219
|
null,
|
|
2223
2220
|
null,
|
|
2224
2221
|
null
|
|
2225
2222
|
);
|
|
2226
|
-
function
|
|
2227
|
-
for (let i in
|
|
2228
|
-
this[i] =
|
|
2223
|
+
function Cn(e) {
|
|
2224
|
+
for (let i in Te)
|
|
2225
|
+
this[i] = Te[i];
|
|
2229
2226
|
}
|
|
2230
|
-
const
|
|
2231
|
-
return
|
|
2227
|
+
const wn = /* @__PURE__ */ function() {
|
|
2228
|
+
return An.exports;
|
|
2232
2229
|
}();
|
|
2233
|
-
var
|
|
2230
|
+
var $n = function() {
|
|
2234
2231
|
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
2235
2232
|
return t("div", {
|
|
2236
2233
|
staticClass: "panel-tab__content"
|
|
@@ -2317,7 +2314,7 @@ var zn = function() {
|
|
|
2317
2314
|
"max-width": "300px",
|
|
2318
2315
|
"show-overflow-tooltip": ""
|
|
2319
2316
|
}
|
|
2320
|
-
})], 1), t(
|
|
2317
|
+
})], 1), t("ElementDialog", {
|
|
2321
2318
|
attrs: {
|
|
2322
2319
|
visible: e.modelVisible,
|
|
2323
2320
|
title: e.modelConfig.title,
|
|
@@ -2397,7 +2394,7 @@ var zn = function() {
|
|
|
2397
2394
|
expression: "modelObjectForm.name"
|
|
2398
2395
|
}
|
|
2399
2396
|
})], 1)], 1)], 1)], 1);
|
|
2400
|
-
},
|
|
2397
|
+
}, In = [function() {
|
|
2401
2398
|
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
2402
2399
|
return t("span", [t("i", {
|
|
2403
2400
|
staticClass: "el-icon-menu",
|
|
@@ -2416,7 +2413,7 @@ var zn = function() {
|
|
|
2416
2413
|
}
|
|
2417
2414
|
}), e._v("信号列表")]);
|
|
2418
2415
|
}];
|
|
2419
|
-
const
|
|
2416
|
+
const Ln = {
|
|
2420
2417
|
name: "SignalAndMessage",
|
|
2421
2418
|
props: {
|
|
2422
2419
|
bpmnInstances: Object
|
|
@@ -2441,7 +2438,7 @@ const Un = {
|
|
|
2441
2438
|
methods: {
|
|
2442
2439
|
initDataList() {
|
|
2443
2440
|
this.rootElements = this.bpmnInstances.modeler.getDefinitions().rootElements, this.messageIdMap = {}, this.signalIdMap = {}, this.messageList = [], this.signalList = [], this.rootElements.forEach((e) => {
|
|
2444
|
-
e.$type === "bpmn:Message" && (this.messageIdMap[e.id] = !0, this.messageList.push(
|
|
2441
|
+
e.$type === "bpmn:Message" && (this.messageIdMap[e.id] = !0, this.messageList.push(v({}, e))), e.$type === "bpmn:Signal" && (this.signalIdMap[e.id] = !0, this.signalList.push(v({}, e)));
|
|
2445
2442
|
});
|
|
2446
2443
|
},
|
|
2447
2444
|
openModel(e) {
|
|
@@ -2462,27 +2459,27 @@ const Un = {
|
|
|
2462
2459
|
this.modelVisible = !1, this.initDataList();
|
|
2463
2460
|
}
|
|
2464
2461
|
}
|
|
2465
|
-
},
|
|
2466
|
-
var
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2462
|
+
}, ke = {};
|
|
2463
|
+
var Mn = /* @__PURE__ */ _(
|
|
2464
|
+
Ln,
|
|
2465
|
+
$n,
|
|
2466
|
+
In,
|
|
2470
2467
|
!1,
|
|
2471
|
-
|
|
2468
|
+
Pn,
|
|
2472
2469
|
null,
|
|
2473
2470
|
null,
|
|
2474
2471
|
null
|
|
2475
2472
|
);
|
|
2476
|
-
function
|
|
2477
|
-
for (let i in
|
|
2478
|
-
this[i] =
|
|
2473
|
+
function Pn(e) {
|
|
2474
|
+
for (let i in ke)
|
|
2475
|
+
this[i] = ke[i];
|
|
2479
2476
|
}
|
|
2480
|
-
const
|
|
2481
|
-
return
|
|
2477
|
+
const On = /* @__PURE__ */ function() {
|
|
2478
|
+
return Mn.exports;
|
|
2482
2479
|
}();
|
|
2483
|
-
function
|
|
2484
|
-
let i =
|
|
2485
|
-
if (e.script && (i = P(
|
|
2480
|
+
function Ge(e) {
|
|
2481
|
+
let i = v({}, e);
|
|
2482
|
+
if (e.script && (i = P(v(v({}, e), e.script), {
|
|
2486
2483
|
scriptType: e.script.resource ? "externalScript" : "inlineScript"
|
|
2487
2484
|
})), e.event === "timeout" && e.eventDefinitions && e.eventDefinitions.length) {
|
|
2488
2485
|
let t = "";
|
|
@@ -2492,31 +2489,31 @@ function We(e) {
|
|
|
2492
2489
|
}
|
|
2493
2490
|
return i;
|
|
2494
2491
|
}
|
|
2495
|
-
function
|
|
2492
|
+
function qe(e) {
|
|
2496
2493
|
var t, n;
|
|
2497
2494
|
let i;
|
|
2498
|
-
return e.class && (i = "classListener"), e.expression && (i = "expressionListener"), e.delegateExpression && (i = "delegateExpressionListener"), e.script && (i = "scriptListener"), P(
|
|
2499
|
-
fields: (n = e.fields) == null ? void 0 : n.map((s) => P(
|
|
2495
|
+
return e.class && (i = "classListener"), e.expression && (i = "expressionListener"), e.delegateExpression && (i = "delegateExpressionListener"), e.script && (i = "scriptListener"), P(v(v({}, A(e)), (t = e.script) != null ? t : {}), {
|
|
2496
|
+
fields: (n = e.fields) == null ? void 0 : n.map((s) => P(v({}, s), { fieldType: s.expression ? "expression" : "string" })),
|
|
2500
2497
|
listenerType: i
|
|
2501
2498
|
});
|
|
2502
2499
|
}
|
|
2503
|
-
const
|
|
2500
|
+
const Ke = {
|
|
2504
2501
|
classListener: "Java 类",
|
|
2505
2502
|
expressionListener: "表达式",
|
|
2506
2503
|
delegateExpressionListener: "代理表达式",
|
|
2507
2504
|
scriptListener: "脚本"
|
|
2508
|
-
},
|
|
2505
|
+
}, Dn = {
|
|
2509
2506
|
create: "创建",
|
|
2510
2507
|
assignment: "指派",
|
|
2511
2508
|
complete: "完成",
|
|
2512
2509
|
delete: "删除",
|
|
2513
2510
|
update: "更新",
|
|
2514
2511
|
timeout: "超时"
|
|
2515
|
-
},
|
|
2512
|
+
}, Je = {
|
|
2516
2513
|
string: "字符串",
|
|
2517
2514
|
expression: "表达式"
|
|
2518
2515
|
};
|
|
2519
|
-
var
|
|
2516
|
+
var Bn = function() {
|
|
2520
2517
|
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
2521
2518
|
return t("div", {
|
|
2522
2519
|
staticClass: "panel-tab__content"
|
|
@@ -2599,7 +2596,7 @@ var Zn = function() {
|
|
|
2599
2596
|
return e.openListenerForm(null);
|
|
2600
2597
|
}
|
|
2601
2598
|
}
|
|
2602
|
-
}, [e._v("添加监听器")])], 1), t(
|
|
2599
|
+
}, [e._v("添加监听器")])], 1), t(ae, {
|
|
2603
2600
|
staticClass: "flow-drawer",
|
|
2604
2601
|
attrs: {
|
|
2605
2602
|
visible: e.listenerFormModelVisible,
|
|
@@ -2951,7 +2948,7 @@ var Zn = function() {
|
|
|
2951
2948
|
on: {
|
|
2952
2949
|
click: e.saveListenerConfig
|
|
2953
2950
|
}
|
|
2954
|
-
}, [e._v("保 存")])], 1)], 1), t(
|
|
2951
|
+
}, [e._v("保 存")])], 1)], 1), t("ElementDialog", {
|
|
2955
2952
|
attrs: {
|
|
2956
2953
|
title: "字段配置",
|
|
2957
2954
|
visible: e.listenerFieldFormModelVisible,
|
|
@@ -3094,8 +3091,8 @@ var Zn = function() {
|
|
|
3094
3091
|
expression: "listenerFieldForm.expression"
|
|
3095
3092
|
}
|
|
3096
3093
|
})], 1) : e._e()], 1)], 1)], 1);
|
|
3097
|
-
},
|
|
3098
|
-
const
|
|
3094
|
+
}, jn = [];
|
|
3095
|
+
const Rn = {
|
|
3099
3096
|
name: "ElementListeners",
|
|
3100
3097
|
inject: {
|
|
3101
3098
|
prefix: "prefix",
|
|
@@ -3123,15 +3120,15 @@ const Wn = {
|
|
|
3123
3120
|
// 监听器所在下标,-1 为新增
|
|
3124
3121
|
editingListenerFieldIndex: -1,
|
|
3125
3122
|
// 字段所在下标,-1 为新增
|
|
3126
|
-
listenerTypeObject:
|
|
3127
|
-
fieldTypeObject:
|
|
3123
|
+
listenerTypeObject: Ke,
|
|
3124
|
+
fieldTypeObject: Je
|
|
3128
3125
|
};
|
|
3129
3126
|
},
|
|
3130
3127
|
watch: {
|
|
3131
3128
|
id: {
|
|
3132
3129
|
immediate: !0,
|
|
3133
3130
|
handler(e) {
|
|
3134
|
-
return
|
|
3131
|
+
return g(this, null, function* () {
|
|
3135
3132
|
e && (yield this.$nextTick(), this.resetListenersList());
|
|
3136
3133
|
});
|
|
3137
3134
|
}
|
|
@@ -3142,16 +3139,16 @@ const Wn = {
|
|
|
3142
3139
|
var e, i, t, n;
|
|
3143
3140
|
this.otherExtensionList = [], this.bpmnElementListeners = (n = (t = (i = (e = this.element.businessObject) == null ? void 0 : e.extensionElements) == null ? void 0 : i.values) == null ? void 0 : t.filter(
|
|
3144
3141
|
(s) => s.$type === `${this.prefix}:ExecutionListener`
|
|
3145
|
-
)) != null ? n : [], this.elementListenersList = this.bpmnElementListeners.map((s) =>
|
|
3142
|
+
)) != null ? n : [], this.elementListenersList = this.bpmnElementListeners.map((s) => qe(s));
|
|
3146
3143
|
},
|
|
3147
3144
|
changeFiledType(e) {
|
|
3148
3145
|
e === "string" ? (delete this.listenerFieldForm.expression, this.$set(this.listenerFieldForm, "string", "")) : (delete this.listenerFieldForm.string, this.$set(this.listenerFieldForm, "expression", ""));
|
|
3149
3146
|
},
|
|
3150
3147
|
// 打开 监听器详情 侧边栏
|
|
3151
3148
|
openListenerForm(e, i) {
|
|
3152
|
-
return
|
|
3149
|
+
return g(this, null, function* () {
|
|
3153
3150
|
var t;
|
|
3154
|
-
e ? (this.listenerForm =
|
|
3151
|
+
e ? (this.listenerForm = Ge(e), this.editingListenerIndex = i) : (this.listenerForm = {}, this.editingListenerIndex = -1), e && e.fields ? this.fieldsListOfListener = e.fields.map((n) => v({}, n)) : (this.fieldsListOfListener = [], this.$set(this.listenerForm, "fields", [])), this.listenerFormModelVisible = !0, yield this.$nextTick(), (t = this.$refs.listenerFormRef) == null || t.clearValidate();
|
|
3155
3152
|
});
|
|
3156
3153
|
},
|
|
3157
3154
|
// 打开监听器字段编辑弹窗
|
|
@@ -3162,13 +3159,13 @@ const Wn = {
|
|
|
3162
3159
|
},
|
|
3163
3160
|
// 保存监听器注入字段
|
|
3164
3161
|
saveListenerFiled() {
|
|
3165
|
-
return
|
|
3162
|
+
return g(this, null, function* () {
|
|
3166
3163
|
(yield this.$refs.listenerFieldFormRef.validate()) && (this.editingListenerFieldIndex === -1 ? (this.fieldsListOfListener.push(this.listenerFieldForm), this.listenerForm.fields.push(this.listenerFieldForm)) : (this.fieldsListOfListener.splice(this.editingListenerFieldIndex, 1, this.listenerFieldForm), this.listenerForm.fields.splice(this.editingListenerFieldIndex, 1, this.listenerFieldForm)), this.listenerFieldFormModelVisible = !1, yield this.$nextTick(), this.listenerFieldForm = {});
|
|
3167
3164
|
});
|
|
3168
3165
|
},
|
|
3169
3166
|
// 移除监听器字段
|
|
3170
3167
|
removeListenerField(e, i) {
|
|
3171
|
-
return
|
|
3168
|
+
return g(this, null, function* () {
|
|
3172
3169
|
try {
|
|
3173
3170
|
yield this.$confirm("确认移除该字段吗?", "提示"), this.fieldsListOfListener.splice(i, 1), this.listenerForm.fields.splice(i, 1);
|
|
3174
3171
|
} catch (t) {
|
|
@@ -3177,9 +3174,9 @@ const Wn = {
|
|
|
3177
3174
|
},
|
|
3178
3175
|
// 移除监听器
|
|
3179
3176
|
removeListener(e, i) {
|
|
3180
|
-
return
|
|
3177
|
+
return g(this, null, function* () {
|
|
3181
3178
|
try {
|
|
3182
|
-
yield this.$confirm("确认移除该监听器吗?", "提示"), this.bpmnElementListeners.splice(i, 1), this.elementListenersList.splice(i, 1),
|
|
3179
|
+
yield this.$confirm("确认移除该监听器吗?", "提示"), this.bpmnElementListeners.splice(i, 1), this.elementListenersList.splice(i, 1), te(
|
|
3183
3180
|
this.bpmnInstances,
|
|
3184
3181
|
this.element,
|
|
3185
3182
|
this.otherExtensionList.concat(this.bpmnElementListeners)
|
|
@@ -3190,14 +3187,14 @@ const Wn = {
|
|
|
3190
3187
|
},
|
|
3191
3188
|
// 保存监听器配置
|
|
3192
3189
|
saveListenerConfig() {
|
|
3193
|
-
return
|
|
3190
|
+
return g(this, null, function* () {
|
|
3194
3191
|
var t, n, s, r;
|
|
3195
3192
|
if (!(yield this.$refs.listenerFormRef.validate()))
|
|
3196
3193
|
return;
|
|
3197
|
-
const i =
|
|
3194
|
+
const i = Ne(this.bpmnInstances, this.listenerForm, !1, this.prefix);
|
|
3198
3195
|
this.editingListenerIndex === -1 ? (this.bpmnElementListeners.push(i), this.elementListenersList.push(this.listenerForm)) : (this.bpmnElementListeners.splice(this.editingListenerIndex, 1, i), this.elementListenersList.splice(this.editingListenerIndex, 1, this.listenerForm)), this.otherExtensionList = (r = (s = (n = (t = this.element.businessObject) == null ? void 0 : t.extensionElements) == null ? void 0 : n.values) == null ? void 0 : s.filter(
|
|
3199
3196
|
(l) => l.$type !== `${this.prefix}:ExecutionListener`
|
|
3200
|
-
)) != null ? r : [],
|
|
3197
|
+
)) != null ? r : [], te(
|
|
3201
3198
|
this.bpmnInstances,
|
|
3202
3199
|
this.element,
|
|
3203
3200
|
this.otherExtensionList.concat(this.bpmnElementListeners)
|
|
@@ -3205,25 +3202,25 @@ const Wn = {
|
|
|
3205
3202
|
});
|
|
3206
3203
|
}
|
|
3207
3204
|
}
|
|
3208
|
-
},
|
|
3209
|
-
var
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3205
|
+
}, Ae = {};
|
|
3206
|
+
var Vn = /* @__PURE__ */ _(
|
|
3207
|
+
Rn,
|
|
3208
|
+
Bn,
|
|
3209
|
+
jn,
|
|
3213
3210
|
!1,
|
|
3214
|
-
|
|
3211
|
+
zn,
|
|
3215
3212
|
null,
|
|
3216
3213
|
null,
|
|
3217
3214
|
null
|
|
3218
3215
|
);
|
|
3219
|
-
function
|
|
3220
|
-
for (let i in
|
|
3221
|
-
this[i] =
|
|
3216
|
+
function zn(e) {
|
|
3217
|
+
for (let i in Ae)
|
|
3218
|
+
this[i] = Ae[i];
|
|
3222
3219
|
}
|
|
3223
|
-
const
|
|
3224
|
-
return
|
|
3220
|
+
const Un = /* @__PURE__ */ function() {
|
|
3221
|
+
return Vn.exports;
|
|
3225
3222
|
}();
|
|
3226
|
-
var
|
|
3223
|
+
var Nn = function() {
|
|
3227
3224
|
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
3228
3225
|
return t("div", {
|
|
3229
3226
|
staticClass: "panel-tab__content"
|
|
@@ -3307,7 +3304,7 @@ var Qn = function() {
|
|
|
3307
3304
|
return e.openAttributesForm(null, -1);
|
|
3308
3305
|
}
|
|
3309
3306
|
}
|
|
3310
|
-
}, [e._v("添加属性")])], 1), t(
|
|
3307
|
+
}, [e._v("添加属性")])], 1), t("ElementDialog", {
|
|
3311
3308
|
attrs: {
|
|
3312
3309
|
visible: e.propertyFormModelVisible,
|
|
3313
3310
|
title: "属性配置",
|
|
@@ -3389,8 +3386,8 @@ var Qn = function() {
|
|
|
3389
3386
|
expression: "propertyForm.value"
|
|
3390
3387
|
}
|
|
3391
3388
|
})], 1)], 1)], 1)], 1);
|
|
3392
|
-
},
|
|
3393
|
-
const
|
|
3389
|
+
}, Gn = [];
|
|
3390
|
+
const qn = {
|
|
3394
3391
|
name: "ElementProperties",
|
|
3395
3392
|
inject: {
|
|
3396
3393
|
prefix: "prefix",
|
|
@@ -3471,25 +3468,25 @@ const ti = {
|
|
|
3471
3468
|
});
|
|
3472
3469
|
}
|
|
3473
3470
|
}
|
|
3474
|
-
},
|
|
3475
|
-
var
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3471
|
+
}, Ce = {};
|
|
3472
|
+
var Kn = /* @__PURE__ */ _(
|
|
3473
|
+
qn,
|
|
3474
|
+
Nn,
|
|
3475
|
+
Gn,
|
|
3479
3476
|
!1,
|
|
3480
|
-
|
|
3477
|
+
Jn,
|
|
3481
3478
|
null,
|
|
3482
3479
|
null,
|
|
3483
3480
|
null
|
|
3484
3481
|
);
|
|
3485
|
-
function
|
|
3486
|
-
for (let i in
|
|
3487
|
-
this[i] =
|
|
3482
|
+
function Jn(e) {
|
|
3483
|
+
for (let i in Ce)
|
|
3484
|
+
this[i] = Ce[i];
|
|
3488
3485
|
}
|
|
3489
|
-
const
|
|
3490
|
-
return
|
|
3486
|
+
const Zn = /* @__PURE__ */ function() {
|
|
3487
|
+
return Kn.exports;
|
|
3491
3488
|
}();
|
|
3492
|
-
var
|
|
3489
|
+
var Hn = function() {
|
|
3493
3490
|
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
3494
3491
|
return t("div", {
|
|
3495
3492
|
staticClass: "panel-tab__content"
|
|
@@ -3643,7 +3640,7 @@ var si = function() {
|
|
|
3643
3640
|
return e.openFieldForm(null, -1);
|
|
3644
3641
|
}
|
|
3645
3642
|
}
|
|
3646
|
-
}, [e._v("添加字段")])], 1), t(
|
|
3643
|
+
}, [e._v("添加字段")])], 1), t(ae, {
|
|
3647
3644
|
staticClass: "flow-drawer",
|
|
3648
3645
|
attrs: {
|
|
3649
3646
|
visible: e.fieldModelVisible,
|
|
@@ -4045,7 +4042,7 @@ var si = function() {
|
|
|
4045
4042
|
on: {
|
|
4046
4043
|
click: e.saveField
|
|
4047
4044
|
}
|
|
4048
|
-
}, [e._v("保 存")])], 1)], 2), t(
|
|
4045
|
+
}, [e._v("保 存")])], 1)], 2), t("ElementDialog", {
|
|
4049
4046
|
attrs: {
|
|
4050
4047
|
visible: e.fieldOptionModelVisible,
|
|
4051
4048
|
title: e.optionModelTitle,
|
|
@@ -4158,8 +4155,8 @@ var si = function() {
|
|
|
4158
4155
|
expression: "fieldOptionForm.value"
|
|
4159
4156
|
}
|
|
4160
4157
|
})], 1) : e._e()], 1)], 1)], 1);
|
|
4161
|
-
},
|
|
4162
|
-
const
|
|
4158
|
+
}, Wn = [];
|
|
4159
|
+
const Xn = {
|
|
4163
4160
|
name: "ElementForm",
|
|
4164
4161
|
inject: {
|
|
4165
4162
|
prefix: "prefix",
|
|
@@ -4207,7 +4204,7 @@ const ai = {
|
|
|
4207
4204
|
id: {
|
|
4208
4205
|
immediate: !0,
|
|
4209
4206
|
handler(e) {
|
|
4210
|
-
return
|
|
4207
|
+
return g(this, null, function* () {
|
|
4211
4208
|
e && (yield this.$nextTick(), this.resetFormList());
|
|
4212
4209
|
});
|
|
4213
4210
|
}
|
|
@@ -4290,25 +4287,25 @@ const ai = {
|
|
|
4290
4287
|
});
|
|
4291
4288
|
}
|
|
4292
4289
|
}
|
|
4293
|
-
},
|
|
4294
|
-
var
|
|
4295
|
-
|
|
4296
|
-
|
|
4297
|
-
|
|
4290
|
+
}, we = {};
|
|
4291
|
+
var Yn = /* @__PURE__ */ _(
|
|
4292
|
+
Xn,
|
|
4293
|
+
Hn,
|
|
4294
|
+
Wn,
|
|
4298
4295
|
!1,
|
|
4299
|
-
|
|
4296
|
+
Qn,
|
|
4300
4297
|
null,
|
|
4301
4298
|
null,
|
|
4302
4299
|
null
|
|
4303
4300
|
);
|
|
4304
|
-
function
|
|
4305
|
-
for (let i in
|
|
4306
|
-
this[i] =
|
|
4301
|
+
function Qn(e) {
|
|
4302
|
+
for (let i in we)
|
|
4303
|
+
this[i] = we[i];
|
|
4307
4304
|
}
|
|
4308
|
-
const
|
|
4309
|
-
return
|
|
4305
|
+
const ei = /* @__PURE__ */ function() {
|
|
4306
|
+
return Yn.exports;
|
|
4310
4307
|
}();
|
|
4311
|
-
var
|
|
4308
|
+
var ti = function() {
|
|
4312
4309
|
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
4313
4310
|
return t("div", {
|
|
4314
4311
|
staticClass: "panel-tab__content"
|
|
@@ -4401,7 +4398,7 @@ var pi = function() {
|
|
|
4401
4398
|
return e.openListenerForm(null);
|
|
4402
4399
|
}
|
|
4403
4400
|
}
|
|
4404
|
-
}, [e._v("添加监听器")])], 1), t(
|
|
4401
|
+
}, [e._v("添加监听器")])], 1), t(ae, {
|
|
4405
4402
|
staticClass: "flow-drawer",
|
|
4406
4403
|
attrs: {
|
|
4407
4404
|
visible: e.listenerFormModelVisible,
|
|
@@ -4827,7 +4824,7 @@ var pi = function() {
|
|
|
4827
4824
|
on: {
|
|
4828
4825
|
click: e.saveListenerConfig
|
|
4829
4826
|
}
|
|
4830
|
-
}, [e._v("保 存")])], 1)], 1), t(
|
|
4827
|
+
}, [e._v("保 存")])], 1)], 1), t("ElementDialog", {
|
|
4831
4828
|
attrs: {
|
|
4832
4829
|
title: "字段配置",
|
|
4833
4830
|
visible: e.listenerFieldFormModelVisible,
|
|
@@ -4967,8 +4964,8 @@ var pi = function() {
|
|
|
4967
4964
|
expression: "listenerFieldForm.expression"
|
|
4968
4965
|
}
|
|
4969
4966
|
})], 1) : e._e()], 1)], 1)], 1);
|
|
4970
|
-
},
|
|
4971
|
-
const
|
|
4967
|
+
}, ni = [];
|
|
4968
|
+
const ii = {
|
|
4972
4969
|
name: "UserTaskListeners",
|
|
4973
4970
|
inject: {
|
|
4974
4971
|
prefix: "prefix",
|
|
@@ -4982,11 +4979,11 @@ const mi = {
|
|
|
4982
4979
|
data() {
|
|
4983
4980
|
return {
|
|
4984
4981
|
elementListenersList: [],
|
|
4985
|
-
listenerEventTypeObject:
|
|
4986
|
-
listenerTypeObject:
|
|
4982
|
+
listenerEventTypeObject: Dn,
|
|
4983
|
+
listenerTypeObject: Ke,
|
|
4987
4984
|
listenerFormModelVisible: !1,
|
|
4988
4985
|
listenerForm: {},
|
|
4989
|
-
fieldTypeObject:
|
|
4986
|
+
fieldTypeObject: Je,
|
|
4990
4987
|
fieldsListOfListener: [],
|
|
4991
4988
|
listenerFieldFormModelVisible: !1,
|
|
4992
4989
|
// 监听器 注入字段表单弹窗 显示状态
|
|
@@ -5002,7 +4999,7 @@ const mi = {
|
|
|
5002
4999
|
id: {
|
|
5003
5000
|
immediate: !0,
|
|
5004
5001
|
handler(e) {
|
|
5005
|
-
return
|
|
5002
|
+
return g(this, null, function* () {
|
|
5006
5003
|
e && (yield this.$nextTick(), this.resetListenersList());
|
|
5007
5004
|
});
|
|
5008
5005
|
}
|
|
@@ -5013,21 +5010,21 @@ const mi = {
|
|
|
5013
5010
|
var e, i, t, n;
|
|
5014
5011
|
this.otherExtensionList = [], this.bpmnElementListeners = (n = (t = (i = (e = this.element.businessObject) == null ? void 0 : e.extensionElements) == null ? void 0 : i.values) == null ? void 0 : t.filter(
|
|
5015
5012
|
(s) => s.$type === `${this.prefix}:TaskListener`
|
|
5016
|
-
)) != null ? n : [], this.elementListenersList = this.bpmnElementListeners.map((s) =>
|
|
5013
|
+
)) != null ? n : [], this.elementListenersList = this.bpmnElementListeners.map((s) => qe(s));
|
|
5017
5014
|
},
|
|
5018
5015
|
openListenerForm(e, i) {
|
|
5019
|
-
return
|
|
5016
|
+
return g(this, null, function* () {
|
|
5020
5017
|
var t;
|
|
5021
|
-
e ? (this.listenerForm =
|
|
5018
|
+
e ? (this.listenerForm = Ge(e), this.editingListenerIndex = i) : (this.listenerForm = {}, this.editingListenerIndex = -1), e && e.fields ? this.fieldsListOfListener = e.fields.map((n) => P(v({}, n), {
|
|
5022
5019
|
fieldType: n.string ? "string" : "expression"
|
|
5023
5020
|
})) : (this.fieldsListOfListener = [], this.$set(this.listenerForm, "fields", [])), this.listenerFormModelVisible = !0, yield this.$nextTick(), (t = this.$refs.listenerFormRef) == null || t.clearValidate();
|
|
5024
5021
|
});
|
|
5025
5022
|
},
|
|
5026
5023
|
// 移除监听器
|
|
5027
5024
|
removeListener(e, i) {
|
|
5028
|
-
return
|
|
5025
|
+
return g(this, null, function* () {
|
|
5029
5026
|
try {
|
|
5030
|
-
yield this.$confirm("确认移除该监听器吗?", "提示"), this.bpmnElementListeners.splice(i, 1), this.elementListenersList.splice(i, 1),
|
|
5027
|
+
yield this.$confirm("确认移除该监听器吗?", "提示"), this.bpmnElementListeners.splice(i, 1), this.elementListenersList.splice(i, 1), te(
|
|
5031
5028
|
this.bpmnInstances,
|
|
5032
5029
|
this.element,
|
|
5033
5030
|
this.otherExtensionList.concat(this.bpmnElementListeners)
|
|
@@ -5038,14 +5035,14 @@ const mi = {
|
|
|
5038
5035
|
},
|
|
5039
5036
|
// 保存监听器
|
|
5040
5037
|
saveListenerConfig() {
|
|
5041
|
-
return
|
|
5038
|
+
return g(this, null, function* () {
|
|
5042
5039
|
var t, n, s, r;
|
|
5043
5040
|
if (!(yield this.$refs.listenerFormRef.validate()))
|
|
5044
5041
|
return;
|
|
5045
|
-
const i =
|
|
5042
|
+
const i = Ne(this.bpmnInstances, this.listenerForm, !0, this.prefix);
|
|
5046
5043
|
this.editingListenerIndex === -1 ? (this.bpmnElementListeners.push(i), this.elementListenersList.push(this.listenerForm)) : (this.bpmnElementListeners.splice(this.editingListenerIndex, 1, i), this.elementListenersList.splice(this.editingListenerIndex, 1, this.listenerForm)), this.otherExtensionList = (r = (s = (n = (t = this.element.businessObject) == null ? void 0 : t.extensionElements) == null ? void 0 : n.values) == null ? void 0 : s.filter(
|
|
5047
5044
|
(l) => l.$type !== `${this.prefix}:TaskListener`
|
|
5048
|
-
)) != null ? r : [],
|
|
5045
|
+
)) != null ? r : [], te(
|
|
5049
5046
|
this.bpmnInstances,
|
|
5050
5047
|
this.element,
|
|
5051
5048
|
this.otherExtensionList.concat(this.bpmnElementListeners)
|
|
@@ -5054,20 +5051,20 @@ const mi = {
|
|
|
5054
5051
|
},
|
|
5055
5052
|
// 打开监听器字段编辑弹窗
|
|
5056
5053
|
openListenerFieldForm(e, i) {
|
|
5057
|
-
return
|
|
5054
|
+
return g(this, null, function* () {
|
|
5058
5055
|
var t;
|
|
5059
5056
|
this.listenerFieldForm = e ? A(e) : {}, this.editingListenerFieldIndex = e ? i : -1, this.listenerFieldFormModelVisible = !0, yield this.$nextTick(), (t = this.$refs.listenerFieldFormRef) == null || t.clearValidate();
|
|
5060
5057
|
});
|
|
5061
5058
|
},
|
|
5062
5059
|
// 保存监听器注入字段
|
|
5063
5060
|
saveListenerFiled() {
|
|
5064
|
-
return
|
|
5061
|
+
return g(this, null, function* () {
|
|
5065
5062
|
(yield this.$refs.listenerFieldFormRef.validate()) && (this.editingListenerFieldIndex === -1 ? (this.fieldsListOfListener.push(this.listenerFieldForm), this.listenerForm.fields.push(this.listenerFieldForm)) : (this.fieldsListOfListener.splice(this.editingListenerFieldIndex, 1, this.listenerFieldForm), this.listenerForm.fields.splice(this.editingListenerFieldIndex, 1, this.listenerFieldForm)), this.listenerFieldFormModelVisible = !1, yield this.$nextTick(), this.listenerFieldForm = {});
|
|
5066
5063
|
});
|
|
5067
5064
|
},
|
|
5068
5065
|
// 移除监听器字段
|
|
5069
5066
|
removeListenerField(e, i) {
|
|
5070
|
-
return
|
|
5067
|
+
return g(this, null, function* () {
|
|
5071
5068
|
try {
|
|
5072
5069
|
yield this.$confirm("确认移除该字段吗?", "提示"), this.fieldsListOfListener.splice(i, 1), this.listenerForm.fields.splice(i, 1);
|
|
5073
5070
|
} catch (t) {
|
|
@@ -5075,25 +5072,25 @@ const mi = {
|
|
|
5075
5072
|
});
|
|
5076
5073
|
}
|
|
5077
5074
|
}
|
|
5078
|
-
},
|
|
5079
|
-
var
|
|
5080
|
-
|
|
5081
|
-
|
|
5082
|
-
|
|
5075
|
+
}, $e = {};
|
|
5076
|
+
var si = /* @__PURE__ */ _(
|
|
5077
|
+
ii,
|
|
5078
|
+
ti,
|
|
5079
|
+
ni,
|
|
5083
5080
|
!1,
|
|
5084
|
-
|
|
5081
|
+
ri,
|
|
5085
5082
|
null,
|
|
5086
5083
|
null,
|
|
5087
5084
|
null
|
|
5088
5085
|
);
|
|
5089
|
-
function
|
|
5090
|
-
for (let i in
|
|
5091
|
-
this[i] =
|
|
5086
|
+
function ri(e) {
|
|
5087
|
+
for (let i in $e)
|
|
5088
|
+
this[i] = $e[i];
|
|
5092
5089
|
}
|
|
5093
|
-
const
|
|
5094
|
-
return
|
|
5090
|
+
const ai = /* @__PURE__ */ function() {
|
|
5091
|
+
return si.exports;
|
|
5095
5092
|
}();
|
|
5096
|
-
var
|
|
5093
|
+
var oi = function() {
|
|
5097
5094
|
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
5098
5095
|
return t("div", {
|
|
5099
5096
|
class: ["process-panel__container", {
|
|
@@ -5120,7 +5117,7 @@ var fi = function() {
|
|
|
5120
5117
|
n.stopPropagation(), e.isPanelVisible = !e.isPanelVisible;
|
|
5121
5118
|
}
|
|
5122
5119
|
}
|
|
5123
|
-
})]), t(
|
|
5120
|
+
})]), t(mt, {
|
|
5124
5121
|
directives: [{
|
|
5125
5122
|
name: "show",
|
|
5126
5123
|
rawName: "v-show",
|
|
@@ -5149,7 +5146,7 @@ var fi = function() {
|
|
|
5149
5146
|
},
|
|
5150
5147
|
proxy: !0
|
|
5151
5148
|
}])
|
|
5152
|
-
}, [t(
|
|
5149
|
+
}, [t("ElementBaseInfo", {
|
|
5153
5150
|
attrs: {
|
|
5154
5151
|
id: e.elementId,
|
|
5155
5152
|
"id-edit-disabled": e.idEditDisabled,
|
|
@@ -5193,7 +5190,7 @@ var fi = function() {
|
|
|
5193
5190
|
},
|
|
5194
5191
|
proxy: !0
|
|
5195
5192
|
}], null, !1, 2203010800)
|
|
5196
|
-
}, [t(
|
|
5193
|
+
}, [t("FlowCondition", {
|
|
5197
5194
|
attrs: {
|
|
5198
5195
|
id: e.elementId,
|
|
5199
5196
|
element: e.element,
|
|
@@ -5217,7 +5214,7 @@ var fi = function() {
|
|
|
5217
5214
|
},
|
|
5218
5215
|
proxy: !0
|
|
5219
5216
|
}], null, !1, 1341048650)
|
|
5220
|
-
}, [t(
|
|
5217
|
+
}, [t("ElementForm", {
|
|
5221
5218
|
attrs: {
|
|
5222
5219
|
id: e.elementId,
|
|
5223
5220
|
"bpmn-instances": e.bpmnInstances,
|
|
@@ -5276,7 +5273,7 @@ var fi = function() {
|
|
|
5276
5273
|
},
|
|
5277
5274
|
proxy: !0
|
|
5278
5275
|
}], null, !1, 1253501895)
|
|
5279
|
-
}, [t(
|
|
5276
|
+
}, [t("ElementMultiInstance", {
|
|
5280
5277
|
attrs: {
|
|
5281
5278
|
id: e.elementId,
|
|
5282
5279
|
"bpmn-instances": e.bpmnInstances,
|
|
@@ -5299,7 +5296,7 @@ var fi = function() {
|
|
|
5299
5296
|
},
|
|
5300
5297
|
proxy: !0
|
|
5301
5298
|
}])
|
|
5302
|
-
}, [t(
|
|
5299
|
+
}, [t("ElementListeners", {
|
|
5303
5300
|
attrs: {
|
|
5304
5301
|
id: e.elementId,
|
|
5305
5302
|
"bpmn-instances": e.bpmnInstances,
|
|
@@ -5322,7 +5319,7 @@ var fi = function() {
|
|
|
5322
5319
|
},
|
|
5323
5320
|
proxy: !0
|
|
5324
5321
|
}], null, !1, 3617698803)
|
|
5325
|
-
}, [t(
|
|
5322
|
+
}, [t("UserTaskListeners", {
|
|
5326
5323
|
attrs: {
|
|
5327
5324
|
id: e.elementId,
|
|
5328
5325
|
"bpmn-instances": e.bpmnInstances,
|
|
@@ -5345,7 +5342,7 @@ var fi = function() {
|
|
|
5345
5342
|
},
|
|
5346
5343
|
proxy: !0
|
|
5347
5344
|
}])
|
|
5348
|
-
}, [t(
|
|
5345
|
+
}, [t("ElementProperties", {
|
|
5349
5346
|
attrs: {
|
|
5350
5347
|
id: e.elementId,
|
|
5351
5348
|
"bpmn-instances": e.bpmnInstances,
|
|
@@ -5368,7 +5365,7 @@ var fi = function() {
|
|
|
5368
5365
|
},
|
|
5369
5366
|
proxy: !0
|
|
5370
5367
|
}])
|
|
5371
|
-
}, [t(
|
|
5368
|
+
}, [t("ElementOtherConfig", {
|
|
5372
5369
|
attrs: {
|
|
5373
5370
|
id: e.elementId,
|
|
5374
5371
|
element: e.element,
|
|
@@ -5380,21 +5377,21 @@ var fi = function() {
|
|
|
5380
5377
|
element: e.element,
|
|
5381
5378
|
type: e.elementType
|
|
5382
5379
|
})], 2)], 1);
|
|
5383
|
-
},
|
|
5384
|
-
const
|
|
5380
|
+
}, li = [];
|
|
5381
|
+
const Ie = ["base", "task", "form", "multiInstance"], pi = {
|
|
5385
5382
|
name: "PropertiesPanel",
|
|
5386
5383
|
componentName: "MyPropertiesPanel",
|
|
5387
5384
|
components: {
|
|
5388
|
-
UserTaskListeners:
|
|
5389
|
-
ElementForm:
|
|
5390
|
-
ElementProperties:
|
|
5391
|
-
ElementListeners:
|
|
5392
|
-
SignalAndMassage:
|
|
5393
|
-
FlowCondition:
|
|
5394
|
-
ElementMultiInstance:
|
|
5395
|
-
ElementTask:
|
|
5396
|
-
ElementOtherConfig:
|
|
5397
|
-
ElementBaseInfo:
|
|
5385
|
+
UserTaskListeners: ai,
|
|
5386
|
+
ElementForm: ei,
|
|
5387
|
+
ElementProperties: Zn,
|
|
5388
|
+
ElementListeners: Un,
|
|
5389
|
+
SignalAndMassage: On,
|
|
5390
|
+
FlowCondition: wn,
|
|
5391
|
+
ElementMultiInstance: En,
|
|
5392
|
+
ElementTask: hn,
|
|
5393
|
+
ElementOtherConfig: Kt,
|
|
5394
|
+
ElementBaseInfo: Vt
|
|
5398
5395
|
},
|
|
5399
5396
|
provide() {
|
|
5400
5397
|
return {
|
|
@@ -5440,12 +5437,12 @@ const Me = ["base", "task", "form", "multiInstance"], yi = {
|
|
|
5440
5437
|
tab: {
|
|
5441
5438
|
immediate: !0,
|
|
5442
5439
|
handler() {
|
|
5443
|
-
this.activeTab =
|
|
5440
|
+
this.activeTab = Ie;
|
|
5444
5441
|
}
|
|
5445
5442
|
},
|
|
5446
5443
|
elementId: {
|
|
5447
5444
|
handler() {
|
|
5448
|
-
this.activeTab =
|
|
5445
|
+
this.activeTab = Ie;
|
|
5449
5446
|
}
|
|
5450
5447
|
}
|
|
5451
5448
|
},
|
|
@@ -5486,24 +5483,24 @@ const Me = ["base", "task", "form", "multiInstance"], yi = {
|
|
|
5486
5483
|
i || (i = (t = this.bpmnInstances.elementRegistry.find((n) => n.type === "bpmn:Process")) != null ? t : this.bpmnInstances.elementRegistry.find((n) => n.type === "bpmn:Collaboration")), i && (this.element = i, this.elementId = i.id, this.elementType = i.type.split(":")[1] || "", this.conditionFormVisible = !!(this.elementType === "SequenceFlow" && i.source && i.source.type.indexOf("StartEvent") === -1), this.formVisible = this.elementType === "UserTask" || this.elementType === "StartEvent");
|
|
5487
5484
|
}
|
|
5488
5485
|
}
|
|
5489
|
-
},
|
|
5490
|
-
var
|
|
5491
|
-
|
|
5492
|
-
|
|
5493
|
-
|
|
5486
|
+
}, Le = {};
|
|
5487
|
+
var ci = /* @__PURE__ */ _(
|
|
5488
|
+
pi,
|
|
5489
|
+
oi,
|
|
5490
|
+
li,
|
|
5494
5491
|
!1,
|
|
5495
|
-
|
|
5492
|
+
mi,
|
|
5496
5493
|
null,
|
|
5497
5494
|
null,
|
|
5498
5495
|
null
|
|
5499
5496
|
);
|
|
5500
|
-
function
|
|
5501
|
-
for (let i in
|
|
5502
|
-
this[i] =
|
|
5497
|
+
function mi(e) {
|
|
5498
|
+
for (let i in Le)
|
|
5499
|
+
this[i] = Le[i];
|
|
5503
5500
|
}
|
|
5504
|
-
const
|
|
5505
|
-
return
|
|
5506
|
-
}(),
|
|
5501
|
+
const ui = /* @__PURE__ */ function() {
|
|
5502
|
+
return ci.exports;
|
|
5503
|
+
}(), di = (e, i, t) => (t = t || "camunda", `<?xml version="1.0" encoding="UTF-8"?>
|
|
5507
5504
|
<bpmn2:definitions
|
|
5508
5505
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
5509
5506
|
xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL"
|
|
@@ -5523,7 +5520,7 @@ const st = /* @__PURE__ */ function() {
|
|
|
5523
5520
|
</bpmndi:BPMNPlane>
|
|
5524
5521
|
</bpmndi:BPMNDiagram>
|
|
5525
5522
|
</bpmn2:definitions>`);
|
|
5526
|
-
function
|
|
5523
|
+
function fi(e) {
|
|
5527
5524
|
return function(i, t) {
|
|
5528
5525
|
return t = t || {}, i = e[i] || i, i.replace(/{([^}]+)}/g, function(n, s) {
|
|
5529
5526
|
let r = t[s];
|
|
@@ -5531,7 +5528,7 @@ function xi(e) {
|
|
|
5531
5528
|
});
|
|
5532
5529
|
};
|
|
5533
5530
|
}
|
|
5534
|
-
const
|
|
5531
|
+
const bi = {
|
|
5535
5532
|
// 添加部分
|
|
5536
5533
|
"Append EndEvent": "追加结束事件",
|
|
5537
5534
|
"Append Gateway": "追加网关",
|
|
@@ -5779,9 +5776,9 @@ const Fi = {
|
|
|
5779
5776
|
Data: "数据",
|
|
5780
5777
|
TextAnnotation: "文本说明",
|
|
5781
5778
|
Tasks: "任务"
|
|
5782
|
-
},
|
|
5779
|
+
}, yi = "Camunda", hi = "http://camunda.org/schema/1.0/bpmn", vi = "camunda", gi = {
|
|
5783
5780
|
tagAlias: "lowerCase"
|
|
5784
|
-
},
|
|
5781
|
+
}, xi = [], Fi = [
|
|
5785
5782
|
{
|
|
5786
5783
|
name: "Definitions",
|
|
5787
5784
|
isAbstract: !0,
|
|
@@ -6897,17 +6894,17 @@ const Fi = {
|
|
|
6897
6894
|
}
|
|
6898
6895
|
]
|
|
6899
6896
|
}
|
|
6900
|
-
],
|
|
6901
|
-
name:
|
|
6902
|
-
uri:
|
|
6903
|
-
prefix:
|
|
6904
|
-
xml:
|
|
6905
|
-
associations:
|
|
6906
|
-
types:
|
|
6907
|
-
emumerations:
|
|
6908
|
-
},
|
|
6897
|
+
], Si = [], Me = {
|
|
6898
|
+
name: yi,
|
|
6899
|
+
uri: hi,
|
|
6900
|
+
prefix: vi,
|
|
6901
|
+
xml: gi,
|
|
6902
|
+
associations: xi,
|
|
6903
|
+
types: Fi,
|
|
6904
|
+
emumerations: Si
|
|
6905
|
+
}, Ei = "Activiti", _i = "http://activiti.org/bpmn", Ti = "activiti", ki = {
|
|
6909
6906
|
tagAlias: "lowerCase"
|
|
6910
|
-
},
|
|
6907
|
+
}, Ai = [], Ci = [
|
|
6911
6908
|
{
|
|
6912
6909
|
name: "Definitions",
|
|
6913
6910
|
isAbstract: !0,
|
|
@@ -8005,17 +8002,17 @@ const Fi = {
|
|
|
8005
8002
|
}
|
|
8006
8003
|
]
|
|
8007
8004
|
}
|
|
8008
|
-
],
|
|
8009
|
-
name:
|
|
8010
|
-
uri:
|
|
8011
|
-
prefix:
|
|
8012
|
-
xml:
|
|
8013
|
-
associations:
|
|
8014
|
-
types:
|
|
8015
|
-
emumerations:
|
|
8016
|
-
},
|
|
8005
|
+
], wi = [], Pe = {
|
|
8006
|
+
name: Ei,
|
|
8007
|
+
uri: _i,
|
|
8008
|
+
prefix: Ti,
|
|
8009
|
+
xml: ki,
|
|
8010
|
+
associations: Ai,
|
|
8011
|
+
types: Ci,
|
|
8012
|
+
emumerations: wi
|
|
8013
|
+
}, $i = "Flowable", Ii = "http://flowable.org/bpmn", Li = "flowable", Mi = {
|
|
8017
8014
|
tagAlias: "lowerCase"
|
|
8018
|
-
},
|
|
8015
|
+
}, Pi = [], Oi = [], Di = [
|
|
8019
8016
|
{
|
|
8020
8017
|
name: "InOutBinding",
|
|
8021
8018
|
superClass: [
|
|
@@ -9377,94 +9374,94 @@ const Fi = {
|
|
|
9377
9374
|
}
|
|
9378
9375
|
]
|
|
9379
9376
|
}
|
|
9380
|
-
],
|
|
9381
|
-
name:
|
|
9382
|
-
uri:
|
|
9383
|
-
prefix:
|
|
9384
|
-
xml:
|
|
9385
|
-
associations:
|
|
9386
|
-
emumerations:
|
|
9387
|
-
types:
|
|
9388
|
-
},
|
|
9389
|
-
function
|
|
9377
|
+
], Oe = {
|
|
9378
|
+
name: $i,
|
|
9379
|
+
uri: Ii,
|
|
9380
|
+
prefix: Li,
|
|
9381
|
+
xml: Mi,
|
|
9382
|
+
associations: Pi,
|
|
9383
|
+
emumerations: Oi,
|
|
9384
|
+
types: Di
|
|
9385
|
+
}, Bi = "*";
|
|
9386
|
+
function z(e) {
|
|
9390
9387
|
const i = this;
|
|
9391
9388
|
e.on("moddleCopy.canCopyProperty", function(t) {
|
|
9392
9389
|
const n = t.property, s = t.parent;
|
|
9393
9390
|
return i.canCopyProperty(n, s);
|
|
9394
9391
|
});
|
|
9395
9392
|
}
|
|
9396
|
-
|
|
9397
|
-
|
|
9398
|
-
if (
|
|
9393
|
+
z.$inject = ["eventBus"];
|
|
9394
|
+
z.prototype.canCopyProperty = function(e, i) {
|
|
9395
|
+
if (nt(e) && !ji(e, i) || R(e, "camunda:InputOutput") && !this.canHostInputOutput(i) || Ze(e, ["camunda:Connector", "camunda:Field"]) && !this.canHostConnector(i) || R(e, "camunda:In") && !this.canHostIn(i))
|
|
9399
9396
|
return !1;
|
|
9400
9397
|
};
|
|
9401
|
-
|
|
9398
|
+
z.prototype.canHostInputOutput = function(e) {
|
|
9402
9399
|
if (L(e, "camunda:Connector"))
|
|
9403
9400
|
return !0;
|
|
9404
9401
|
const t = L(e, "bpmn:FlowNode");
|
|
9405
|
-
return !(!t ||
|
|
9402
|
+
return !(!t || Ze(t, ["bpmn:StartEvent", "bpmn:Gateway", "bpmn:BoundaryEvent"]) || R(t, "bpmn:SubProcess") && t.get("triggeredByEvent"));
|
|
9406
9403
|
};
|
|
9407
|
-
|
|
9404
|
+
z.prototype.canHostConnector = function(e) {
|
|
9408
9405
|
const i = L(e, "camunda:ServiceTaskLike");
|
|
9409
|
-
return
|
|
9406
|
+
return R(i, "bpmn:MessageEventDefinition") ? L(e, "bpmn:IntermediateThrowEvent") || L(e, "bpmn:EndEvent") : !0;
|
|
9410
9407
|
};
|
|
9411
|
-
|
|
9408
|
+
z.prototype.canHostIn = function(e) {
|
|
9412
9409
|
return L(e, "bpmn:CallActivity") ? !0 : L(e, "bpmn:SignalEventDefinition") ? L(e, "bpmn:IntermediateThrowEvent") || L(e, "bpmn:EndEvent") : !0;
|
|
9413
9410
|
};
|
|
9414
|
-
function
|
|
9415
|
-
return e &&
|
|
9411
|
+
function R(e, i) {
|
|
9412
|
+
return e && it(e.$instanceOf) && e.$instanceOf(i);
|
|
9416
9413
|
}
|
|
9417
|
-
function
|
|
9418
|
-
return
|
|
9419
|
-
return
|
|
9414
|
+
function Ze(e, i) {
|
|
9415
|
+
return V(i, function(t) {
|
|
9416
|
+
return R(e, t);
|
|
9420
9417
|
});
|
|
9421
9418
|
}
|
|
9422
9419
|
function L(e, i) {
|
|
9423
9420
|
if (!i)
|
|
9424
9421
|
return e.$parent;
|
|
9425
|
-
if (
|
|
9422
|
+
if (R(e, i))
|
|
9426
9423
|
return e;
|
|
9427
9424
|
if (e.$parent)
|
|
9428
9425
|
return L(e.$parent, i);
|
|
9429
9426
|
}
|
|
9430
|
-
function
|
|
9427
|
+
function ji(e, i) {
|
|
9431
9428
|
const t = e.$type && e.$model.getTypeDescriptor(e.$type), n = t && t.meta && t.meta.allowedIn;
|
|
9432
|
-
return !n ||
|
|
9429
|
+
return !n || Ri(n) ? !0 : V(n, function(s) {
|
|
9433
9430
|
return L(i, s);
|
|
9434
9431
|
});
|
|
9435
9432
|
}
|
|
9436
|
-
function
|
|
9437
|
-
return e.indexOf(
|
|
9433
|
+
function Ri(e) {
|
|
9434
|
+
return e.indexOf(Bi) !== -1;
|
|
9438
9435
|
}
|
|
9439
|
-
const
|
|
9436
|
+
const Vi = {
|
|
9440
9437
|
__init__: ["camundaModdleExtension"],
|
|
9441
|
-
camundaModdleExtension: ["type",
|
|
9442
|
-
},
|
|
9438
|
+
camundaModdleExtension: ["type", z]
|
|
9439
|
+
}, zi = {
|
|
9443
9440
|
FailedJobRetryTimeCycle: ["bpmn:StartEvent", "bpmn:BoundaryEvent", "bpmn:IntermediateCatchEvent", "bpmn:Activity"],
|
|
9444
9441
|
Connector: ["bpmn:EndEvent", "bpmn:IntermediateThrowEvent"],
|
|
9445
9442
|
Field: ["bpmn:EndEvent", "bpmn:IntermediateThrowEvent"]
|
|
9446
9443
|
};
|
|
9447
|
-
function
|
|
9444
|
+
function pe(e, i) {
|
|
9448
9445
|
return e && typeof e.$instanceOf == "function" && e.$instanceOf(i);
|
|
9449
9446
|
}
|
|
9450
|
-
function
|
|
9447
|
+
function Ui(e) {
|
|
9451
9448
|
return e && e.length;
|
|
9452
9449
|
}
|
|
9453
|
-
function
|
|
9454
|
-
return
|
|
9455
|
-
return
|
|
9450
|
+
function Q(e, i) {
|
|
9451
|
+
return Ui(e) && V(e, function(t) {
|
|
9452
|
+
return pe(t, i);
|
|
9456
9453
|
});
|
|
9457
9454
|
}
|
|
9458
|
-
function
|
|
9459
|
-
return
|
|
9460
|
-
return
|
|
9455
|
+
function Ni(e, i) {
|
|
9456
|
+
return V(i, function(t) {
|
|
9457
|
+
return pe(e, t);
|
|
9461
9458
|
});
|
|
9462
9459
|
}
|
|
9463
|
-
function
|
|
9464
|
-
const n = i.name, s =
|
|
9465
|
-
return n === e &&
|
|
9460
|
+
function ie(e, i, t) {
|
|
9461
|
+
const n = i.name, s = zi[n.replace(/activiti:/, "")];
|
|
9462
|
+
return n === e && Ni(t, s);
|
|
9466
9463
|
}
|
|
9467
|
-
function
|
|
9464
|
+
function ce(e) {
|
|
9468
9465
|
e.on(
|
|
9469
9466
|
"property.clone",
|
|
9470
9467
|
function(i) {
|
|
@@ -9474,42 +9471,42 @@ function ue(e) {
|
|
|
9474
9471
|
this
|
|
9475
9472
|
);
|
|
9476
9473
|
}
|
|
9477
|
-
|
|
9478
|
-
|
|
9479
|
-
if (
|
|
9480
|
-
return
|
|
9481
|
-
if (
|
|
9482
|
-
return
|
|
9474
|
+
ce.$inject = ["eventBus"];
|
|
9475
|
+
ce.prototype.canCloneProperty = function(e, i) {
|
|
9476
|
+
if (ie("activiti:FailedJobRetryTimeCycle", i, e))
|
|
9477
|
+
return Q(e.eventDefinitions, "bpmn:TimerEventDefinition") || Q(e.eventDefinitions, "bpmn:SignalEventDefinition") || pe(e.loopCharacteristics, "bpmn:MultiInstanceLoopCharacteristics");
|
|
9478
|
+
if (ie("activiti:Connector", i, e) || ie("activiti:Field", i, e))
|
|
9479
|
+
return Q(e.eventDefinitions, "bpmn:MessageEventDefinition");
|
|
9483
9480
|
};
|
|
9484
|
-
const
|
|
9481
|
+
const Gi = {
|
|
9485
9482
|
__init__: ["ActivitiModdleExtension"],
|
|
9486
|
-
ActivitiModdleExtension: ["type",
|
|
9487
|
-
},
|
|
9483
|
+
ActivitiModdleExtension: ["type", ce]
|
|
9484
|
+
}, qi = {
|
|
9488
9485
|
FailedJobRetryTimeCycle: ["bpmn:StartEvent", "bpmn:BoundaryEvent", "bpmn:IntermediateCatchEvent", "bpmn:Activity"],
|
|
9489
9486
|
Connector: ["bpmn:EndEvent", "bpmn:IntermediateThrowEvent"],
|
|
9490
9487
|
Field: ["bpmn:EndEvent", "bpmn:IntermediateThrowEvent"]
|
|
9491
9488
|
};
|
|
9492
|
-
function
|
|
9489
|
+
function me(e, i) {
|
|
9493
9490
|
return e && typeof e.$instanceOf == "function" && e.$instanceOf(i);
|
|
9494
9491
|
}
|
|
9495
|
-
function
|
|
9492
|
+
function Ki(e) {
|
|
9496
9493
|
return e && e.length;
|
|
9497
9494
|
}
|
|
9498
|
-
function
|
|
9499
|
-
return
|
|
9500
|
-
return
|
|
9495
|
+
function ee(e, i) {
|
|
9496
|
+
return Ki(e) && V(e, function(t) {
|
|
9497
|
+
return me(t, i);
|
|
9501
9498
|
});
|
|
9502
9499
|
}
|
|
9503
|
-
function
|
|
9504
|
-
return
|
|
9505
|
-
return
|
|
9500
|
+
function Ji(e, i) {
|
|
9501
|
+
return V(i, function(t) {
|
|
9502
|
+
return me(e, t);
|
|
9506
9503
|
});
|
|
9507
9504
|
}
|
|
9508
|
-
function
|
|
9509
|
-
const n = i.name, s =
|
|
9510
|
-
return n === e &&
|
|
9505
|
+
function se(e, i, t) {
|
|
9506
|
+
const n = i.name, s = qi[n.replace(/flowable:/, "")];
|
|
9507
|
+
return n === e && Ji(t, s);
|
|
9511
9508
|
}
|
|
9512
|
-
function
|
|
9509
|
+
function ue(e) {
|
|
9513
9510
|
e.on(
|
|
9514
9511
|
"property.clone",
|
|
9515
9512
|
function(i) {
|
|
@@ -9519,82 +9516,25 @@ function fe(e) {
|
|
|
9519
9516
|
this
|
|
9520
9517
|
);
|
|
9521
9518
|
}
|
|
9522
|
-
|
|
9523
|
-
|
|
9524
|
-
if (
|
|
9525
|
-
return
|
|
9526
|
-
if (
|
|
9527
|
-
return
|
|
9519
|
+
ue.$inject = ["eventBus"];
|
|
9520
|
+
ue.prototype.canCloneProperty = function(e, i) {
|
|
9521
|
+
if (se("flowable:FailedJobRetryTimeCycle", i, e))
|
|
9522
|
+
return ee(e.eventDefinitions, "bpmn:TimerEventDefinition") || ee(e.eventDefinitions, "bpmn:SignalEventDefinition") || me(e.loopCharacteristics, "bpmn:MultiInstanceLoopCharacteristics");
|
|
9523
|
+
if (se("flowable:Connector", i, e) || se("flowable:Field", i, e))
|
|
9524
|
+
return ee(e.eventDefinitions, "bpmn:MessageEventDefinition");
|
|
9528
9525
|
};
|
|
9529
|
-
const
|
|
9526
|
+
const Zi = {
|
|
9530
9527
|
__init__: ["FlowableModdleExtension"],
|
|
9531
|
-
FlowableModdleExtension: ["type",
|
|
9532
|
-
}
|
|
9533
|
-
|
|
9534
|
-
props: {
|
|
9535
|
-
language: String,
|
|
9536
|
-
code: String,
|
|
9537
|
-
autodetect: Boolean
|
|
9538
|
-
},
|
|
9539
|
-
data: function() {
|
|
9540
|
-
return {
|
|
9541
|
-
detectedLanguage: ""
|
|
9542
|
-
};
|
|
9543
|
-
},
|
|
9544
|
-
computed: {
|
|
9545
|
-
className() {
|
|
9546
|
-
return this.detectedLanguage ? `hljs ${this.detectedLanguage}` : "";
|
|
9547
|
-
},
|
|
9548
|
-
highlighted() {
|
|
9549
|
-
if (!this.language && !q.getLanguage(this.language))
|
|
9550
|
-
return console.warn(`The language "${this.language}" you specified could not be found.`), {
|
|
9551
|
-
language: "",
|
|
9552
|
-
value: _t(this.code)
|
|
9553
|
-
};
|
|
9554
|
-
let e = {};
|
|
9555
|
-
return !this.language || this.autodetect ? e = q.highlightAuto(this.code) : e = q.highlight(this.code, {
|
|
9556
|
-
language: this.language,
|
|
9557
|
-
ignoreIllegals: this.ignoreIllegals
|
|
9558
|
-
}), e;
|
|
9559
|
-
},
|
|
9560
|
-
ignoreIllegals() {
|
|
9561
|
-
return !0;
|
|
9562
|
-
}
|
|
9563
|
-
},
|
|
9564
|
-
watch: {
|
|
9565
|
-
"highlighted.language": {
|
|
9566
|
-
immediate: !0,
|
|
9567
|
-
handler(e) {
|
|
9568
|
-
this.detectedLanguage = e;
|
|
9569
|
-
}
|
|
9570
|
-
}
|
|
9571
|
-
}
|
|
9572
|
-
}, je = {};
|
|
9573
|
-
var ns = /* @__PURE__ */ _(
|
|
9574
|
-
ts,
|
|
9575
|
-
Mt,
|
|
9576
|
-
Lt,
|
|
9577
|
-
!1,
|
|
9578
|
-
is,
|
|
9579
|
-
null,
|
|
9580
|
-
null,
|
|
9581
|
-
null
|
|
9582
|
-
);
|
|
9583
|
-
function is(e) {
|
|
9584
|
-
for (let i in je)
|
|
9585
|
-
this[i] = je[i];
|
|
9586
|
-
}
|
|
9587
|
-
const ss = /* @__PURE__ */ function() {
|
|
9588
|
-
return ns.exports;
|
|
9589
|
-
}();
|
|
9590
|
-
var rs = function() {
|
|
9528
|
+
FlowableModdleExtension: ["type", ue]
|
|
9529
|
+
};
|
|
9530
|
+
var Hi = function() {
|
|
9591
9531
|
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
9592
9532
|
return t("div", {
|
|
9593
9533
|
staticClass: "my-process-designer"
|
|
9594
9534
|
}, [t("div", {
|
|
9595
9535
|
staticClass: "my-process-designer__header"
|
|
9596
9536
|
}, [e._t("control-header", function() {
|
|
9597
|
-
return [t(
|
|
9537
|
+
return [t(Y, {
|
|
9598
9538
|
key: "file-control"
|
|
9599
9539
|
}, [e._t("toolbar-buttons"), e.simulation ? t(E, {
|
|
9600
9540
|
attrs: {
|
|
@@ -9706,7 +9646,7 @@ var rs = function() {
|
|
|
9706
9646
|
on: {
|
|
9707
9647
|
click: e.processSimulation
|
|
9708
9648
|
}
|
|
9709
|
-
}, [e._v(" 模拟 ")])], 1) : e._e()], 2), t(
|
|
9649
|
+
}, [e._v(" 模拟 ")])], 1) : e._e()], 2), t(Y, {
|
|
9710
9650
|
key: "align-control"
|
|
9711
9651
|
}, [t(E, {
|
|
9712
9652
|
attrs: {
|
|
@@ -9804,7 +9744,7 @@ var rs = function() {
|
|
|
9804
9744
|
return e.elementsAlign("middle");
|
|
9805
9745
|
}
|
|
9806
9746
|
}
|
|
9807
|
-
})], 1)], 1), t(
|
|
9747
|
+
})], 1)], 1), t(Y, {
|
|
9808
9748
|
key: "scale-control"
|
|
9809
9749
|
}, [t(E, {
|
|
9810
9750
|
attrs: {
|
|
@@ -9857,7 +9797,7 @@ var rs = function() {
|
|
|
9857
9797
|
return e.processReZoom();
|
|
9858
9798
|
}
|
|
9859
9799
|
}
|
|
9860
|
-
})], 1)], 1), t(
|
|
9800
|
+
})], 1)], 1), t(Y, {
|
|
9861
9801
|
key: "stack-control"
|
|
9862
9802
|
}, [t(E, {
|
|
9863
9803
|
attrs: {
|
|
@@ -9923,7 +9863,7 @@ var rs = function() {
|
|
|
9923
9863
|
}, [t("div", {
|
|
9924
9864
|
ref: "bpmn-canvas",
|
|
9925
9865
|
staticClass: "my-process-designer__canvas flow-background-image"
|
|
9926
|
-
})]), t(
|
|
9866
|
+
})]), t("ElementDialog", {
|
|
9927
9867
|
attrs: {
|
|
9928
9868
|
title: "预览",
|
|
9929
9869
|
width: "60vw",
|
|
@@ -9937,19 +9877,19 @@ var rs = function() {
|
|
|
9937
9877
|
e.previewModelVisible = n;
|
|
9938
9878
|
}
|
|
9939
9879
|
}
|
|
9940
|
-
}, [t(
|
|
9880
|
+
}, [t("HighlightJS", {
|
|
9941
9881
|
attrs: {
|
|
9942
9882
|
language: e.previewType,
|
|
9943
9883
|
code: e.previewResult
|
|
9944
9884
|
}
|
|
9945
9885
|
})], 1)], 1);
|
|
9946
|
-
},
|
|
9947
|
-
|
|
9948
|
-
|
|
9949
|
-
const
|
|
9886
|
+
}, Wi = [];
|
|
9887
|
+
Re.registerLanguage("xml", yt);
|
|
9888
|
+
Re.registerLanguage("json", ht);
|
|
9889
|
+
const Xi = {
|
|
9950
9890
|
name: "ProcessDesigner",
|
|
9951
9891
|
components: {
|
|
9952
|
-
HighlightJS:
|
|
9892
|
+
HighlightJS: vt
|
|
9953
9893
|
},
|
|
9954
9894
|
componentName: "MyProcessDesigner",
|
|
9955
9895
|
props: {
|
|
@@ -10019,12 +9959,12 @@ const os = {
|
|
|
10019
9959
|
additionalModules() {
|
|
10020
9960
|
const e = [];
|
|
10021
9961
|
if (this.onlyCustomizeAddi)
|
|
10022
|
-
return
|
|
10023
|
-
|
|
9962
|
+
return be(this.additionalModel) ? this.additionalModel || [] : [this.additionalModel];
|
|
9963
|
+
be(this.additionalModel) ? e.push(...this.additionalModel) : this.additionalModel && e.push(this.additionalModel);
|
|
10024
9964
|
const i = {
|
|
10025
|
-
translate: ["value",
|
|
9965
|
+
translate: ["value", fi(this.translations || bi)]
|
|
10026
9966
|
};
|
|
10027
|
-
return e.push(i), this.simulation && e.push(
|
|
9967
|
+
return e.push(i), this.simulation && e.push(ft), e.push(dt), this.prefix === "camunda" && e.push(Vi), this.prefix === "flowable" && e.push(Zi), this.prefix === "activiti" && e.push(Gi), e;
|
|
10028
9968
|
},
|
|
10029
9969
|
moddleExtensions() {
|
|
10030
9970
|
const e = {};
|
|
@@ -10033,12 +9973,12 @@ const os = {
|
|
|
10033
9973
|
if (this.moddleExtension)
|
|
10034
9974
|
for (const i in this.moddleExtension)
|
|
10035
9975
|
e[i] = this.moddleExtension[i];
|
|
10036
|
-
return this.prefix === "activiti" && (e.activiti = P(
|
|
10037
|
-
types: [...
|
|
10038
|
-
})), this.prefix === "flowable" && (e.flowable = P(
|
|
10039
|
-
types: [...Be.types, ...this.extendTypes || []]
|
|
10040
|
-
})), this.prefix === "camunda" && (e.camunda = P(g({}, Oe), {
|
|
9976
|
+
return this.prefix === "activiti" && (e.activiti = P(v({}, Pe), {
|
|
9977
|
+
types: [...Pe.types, ...this.extendTypes || []]
|
|
9978
|
+
})), this.prefix === "flowable" && (e.flowable = P(v({}, Oe), {
|
|
10041
9979
|
types: [...Oe.types, ...this.extendTypes || []]
|
|
9980
|
+
})), this.prefix === "camunda" && (e.camunda = P(v({}, Me), {
|
|
9981
|
+
types: [...Me.types, ...this.extendTypes || []]
|
|
10042
9982
|
})), e;
|
|
10043
9983
|
}
|
|
10044
9984
|
},
|
|
@@ -10049,7 +9989,7 @@ const os = {
|
|
|
10049
9989
|
},
|
|
10050
9990
|
methods: {
|
|
10051
9991
|
initBpmnModeler() {
|
|
10052
|
-
this.bpmnModeler || (this.bpmnModeler = new
|
|
9992
|
+
this.bpmnModeler || (this.bpmnModeler = new ut(v({
|
|
10053
9993
|
container: this.$refs["bpmn-canvas"],
|
|
10054
9994
|
keyboard: this.keyboard ? { bindTo: document } : null,
|
|
10055
9995
|
additionalModules: this.additionalModules,
|
|
@@ -10063,7 +10003,7 @@ const os = {
|
|
|
10063
10003
|
const s = t.replace(/\./g, "-"), r = n ? n.element : null;
|
|
10064
10004
|
i.$emit(s, r, n);
|
|
10065
10005
|
});
|
|
10066
|
-
}), e.on("commandStack.changed", (t) =>
|
|
10006
|
+
}), e.on("commandStack.changed", (t) => g(this, null, function* () {
|
|
10067
10007
|
try {
|
|
10068
10008
|
this.recoverable = this.bpmnModeler.get("commandStack").canRedo(), this.revocable = this.bpmnModeler.get("commandStack").canUndo();
|
|
10069
10009
|
const { xml: n } = yield this.bpmnModeler.saveXML({ format: !0 });
|
|
@@ -10079,8 +10019,8 @@ const os = {
|
|
|
10079
10019
|
},
|
|
10080
10020
|
/* 创建新的流程图 */
|
|
10081
10021
|
createNewDiagram(e) {
|
|
10082
|
-
return
|
|
10083
|
-
const i = this.processId || `Process_${(/* @__PURE__ */ new Date()).getTime()}`, t = this.processName || `业务流程_${(/* @__PURE__ */ new Date()).getTime()}`, n = e ||
|
|
10022
|
+
return g(this, null, function* () {
|
|
10023
|
+
const i = this.processId || `Process_${(/* @__PURE__ */ new Date()).getTime()}`, t = this.processName || `业务流程_${(/* @__PURE__ */ new Date()).getTime()}`, n = e || di(i, t, this.prefix);
|
|
10084
10024
|
try {
|
|
10085
10025
|
const { warnings: s } = yield this.bpmnModeler.importXML(n);
|
|
10086
10026
|
this.bpmnModeler.get("canvas").zoom("fit-viewport", "center"), s != null && s.length;
|
|
@@ -10095,7 +10035,7 @@ const os = {
|
|
|
10095
10035
|
* @param {*} name
|
|
10096
10036
|
*/
|
|
10097
10037
|
downloadProcess(e, i = "diagram") {
|
|
10098
|
-
return
|
|
10038
|
+
return g(this, null, function* () {
|
|
10099
10039
|
try {
|
|
10100
10040
|
if (e === "xml" || e === "bpmn") {
|
|
10101
10041
|
const { err: n, xml: s } = yield this.bpmnModeler.saveXML();
|
|
@@ -10200,36 +10140,36 @@ const os = {
|
|
|
10200
10140
|
});
|
|
10201
10141
|
},
|
|
10202
10142
|
previewProcessJson() {
|
|
10203
|
-
const e = new
|
|
10143
|
+
const e = new bt();
|
|
10204
10144
|
this.bpmnModeler.saveXML({ format: !0 }).then(({ xml: i }) => {
|
|
10205
10145
|
const { definitions: t } = e.xml2js(i);
|
|
10206
10146
|
t ? this.previewResult = JSON.stringify(t, null, 4) : this.previewResult = "", this.previewType = "json", this.previewModelVisible = !0;
|
|
10207
10147
|
});
|
|
10208
10148
|
}
|
|
10209
10149
|
}
|
|
10210
|
-
},
|
|
10211
|
-
var
|
|
10212
|
-
|
|
10213
|
-
|
|
10214
|
-
|
|
10150
|
+
}, De = {};
|
|
10151
|
+
var Yi = /* @__PURE__ */ _(
|
|
10152
|
+
Xi,
|
|
10153
|
+
Hi,
|
|
10154
|
+
Wi,
|
|
10215
10155
|
!1,
|
|
10216
|
-
|
|
10156
|
+
Qi,
|
|
10217
10157
|
null,
|
|
10218
10158
|
null,
|
|
10219
10159
|
null
|
|
10220
10160
|
);
|
|
10221
|
-
function
|
|
10222
|
-
for (let i in
|
|
10223
|
-
this[i] =
|
|
10161
|
+
function Qi(e) {
|
|
10162
|
+
for (let i in De)
|
|
10163
|
+
this[i] = De[i];
|
|
10224
10164
|
}
|
|
10225
|
-
const
|
|
10226
|
-
return
|
|
10165
|
+
const es = /* @__PURE__ */ function() {
|
|
10166
|
+
return Yi.exports;
|
|
10227
10167
|
}();
|
|
10228
|
-
var
|
|
10168
|
+
var ts = function() {
|
|
10229
10169
|
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
10230
10170
|
return t("div", {
|
|
10231
10171
|
staticClass: "flow-designer"
|
|
10232
|
-
}, [t(
|
|
10172
|
+
}, [t("ProcessDesigner", e._b({
|
|
10233
10173
|
key: `designer-${e.reloadIndex}`,
|
|
10234
10174
|
ref: "processDesigner",
|
|
10235
10175
|
attrs: {
|
|
@@ -10256,7 +10196,7 @@ var cs = function() {
|
|
|
10256
10196
|
},
|
|
10257
10197
|
proxy: !0
|
|
10258
10198
|
}], null, !0)
|
|
10259
|
-
}, "ProcessDesigner", e.controlForm, !1)), t(
|
|
10199
|
+
}, "ProcessDesigner", e.controlForm, !1)), t("PropertiesPanel", {
|
|
10260
10200
|
key: `penal-${e.reloadIndex}`,
|
|
10261
10201
|
staticClass: "process-panel",
|
|
10262
10202
|
attrs: {
|
|
@@ -10298,12 +10238,12 @@ var cs = function() {
|
|
|
10298
10238
|
}
|
|
10299
10239
|
}], null, !0)
|
|
10300
10240
|
})], 1);
|
|
10301
|
-
},
|
|
10302
|
-
const
|
|
10241
|
+
}, ns = [];
|
|
10242
|
+
const is = {
|
|
10303
10243
|
name: "FlowDesigner",
|
|
10304
10244
|
components: {
|
|
10305
|
-
PropertiesPanel:
|
|
10306
|
-
ProcessDesigner:
|
|
10245
|
+
PropertiesPanel: ui,
|
|
10246
|
+
ProcessDesigner: es
|
|
10307
10247
|
},
|
|
10308
10248
|
props: {
|
|
10309
10249
|
value: String,
|
|
@@ -10321,7 +10261,7 @@ const us = {
|
|
|
10321
10261
|
labelVisible: !1,
|
|
10322
10262
|
prefix: "flowable",
|
|
10323
10263
|
headerButtonSize: "mini",
|
|
10324
|
-
additionalModel: [
|
|
10264
|
+
additionalModel: [gt, xt, Ct]
|
|
10325
10265
|
}
|
|
10326
10266
|
};
|
|
10327
10267
|
},
|
|
@@ -10330,24 +10270,24 @@ const us = {
|
|
|
10330
10270
|
this.modeler = e;
|
|
10331
10271
|
}
|
|
10332
10272
|
}
|
|
10333
|
-
},
|
|
10334
|
-
var
|
|
10335
|
-
|
|
10336
|
-
|
|
10337
|
-
|
|
10273
|
+
}, Be = {};
|
|
10274
|
+
var ss = /* @__PURE__ */ _(
|
|
10275
|
+
is,
|
|
10276
|
+
ts,
|
|
10277
|
+
ns,
|
|
10338
10278
|
!1,
|
|
10339
|
-
|
|
10279
|
+
rs,
|
|
10340
10280
|
null,
|
|
10341
10281
|
null,
|
|
10342
10282
|
null
|
|
10343
10283
|
);
|
|
10344
|
-
function
|
|
10345
|
-
for (let i in
|
|
10346
|
-
this[i] =
|
|
10284
|
+
function rs(e) {
|
|
10285
|
+
for (let i in Be)
|
|
10286
|
+
this[i] = Be[i];
|
|
10347
10287
|
}
|
|
10348
|
-
const
|
|
10349
|
-
return
|
|
10288
|
+
const Js = /* @__PURE__ */ function() {
|
|
10289
|
+
return ss.exports;
|
|
10350
10290
|
}();
|
|
10351
10291
|
export {
|
|
10352
|
-
|
|
10292
|
+
Js as default
|
|
10353
10293
|
};
|