@web-utils/component 2.12.0 → 2.14.0
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 +9 -9
- package/address-input/style.css +1 -1
- package/affix/index.mjs +1 -1
- package/affix/style.css +1 -1
- package/aside-menu/index.mjs +20 -20
- package/aside-menu/style.css +1 -1
- package/avatar/index.mjs +1 -1
- package/avatar/style.css +1 -1
- package/awesome-button/index.mjs +1 -1
- package/base.css +1 -1
- package/capsule-tab/index.mjs +10 -10
- package/capsule-tab/style.css +1 -1
- package/card/index.mjs +23 -23
- package/card/style.css +1 -1
- package/carousel/index.mjs +5 -5
- package/carousel/style.css +1 -1
- package/chat/index.mjs +2 -2
- package/chat/style.css +1 -1
- package/chunk-file-uploader/index.mjs +3 -3
- package/chunk-file-uploader/style.css +1 -1
- package/chunks/{FormTemp.a70cc55d.mjs → FormTemp.FX8xmbVB.mjs} +4 -4
- package/chunks/{confirmable-mixin.d89088b0.mjs → confirmable-mixin.rTUMhoRH.mjs} +25 -24
- package/chunks/{dataformat.504544b2.mjs → dataformat.X_61lMA7.mjs} +1 -1
- package/chunks/{dic.9277cfae.mjs → dic.6tk91Dmq.mjs} +1 -1
- package/chunks/{event.67cfd4fb.mjs → event.NHA7rYFE.mjs} +3 -3
- package/chunks/{form-input-mixin.4632ad36.mjs → form-input-mixin.IKogWBfn.mjs} +2 -2
- package/chunks/{form-item-mixin.ad148e7b.mjs → form-item-mixin.BilKDUlK.mjs} +1 -1
- package/chunks/{init.7338d214.mjs → init.Ac4dKUJB.mjs} +3 -3
- package/code-mirror-editor/index.mjs +36 -36
- package/code-mirror-editor/style.css +1 -1
- package/color-picker/index.mjs +1 -1
- package/comment/index.mjs +18 -18
- package/comment/style.css +1 -1
- package/confirm-button/index.mjs +2 -2
- package/confirmable/index.mjs +2 -2
- package/context-menu/index.mjs +9 -9
- package/context-menu/style.css +1 -1
- package/count-up/index.mjs +1 -1
- package/custom-scrollbar/index.mjs +6 -6
- package/data-box/index.mjs +8 -8
- package/data-box/style.css +1 -1
- package/data-card/index.mjs +19 -19
- package/data-card/style.css +1 -1
- package/data-cardtext/index.mjs +22 -22
- package/data-cardtext/style.css +1 -1
- package/data-display/index.mjs +24 -24
- package/data-display/style.css +1 -1
- package/data-icons/index.mjs +13 -13
- package/data-icons/style.css +1 -1
- package/data-imgtext/index.mjs +18 -18
- package/data-imgtext/style.css +1 -1
- package/data-operatext/index.mjs +28 -28
- package/data-operatext/style.css +1 -1
- package/data-panel/index.mjs +15 -15
- package/data-panel/style.css +1 -1
- package/data-pay/index.mjs +7 -7
- package/data-pay/style.css +1 -1
- package/data-price/index.mjs +5 -5
- package/data-price/style.css +1 -1
- package/data-progress/index.mjs +16 -16
- package/data-progress/style.css +1 -1
- package/data-rotate/index.mjs +7 -7
- package/data-rotate/style.css +1 -1
- package/data-table-picker/index.mjs +2 -2
- package/data-tabs/index.mjs +6 -6
- package/data-tabs/style.css +1 -1
- package/dialog-form/index.mjs +47 -47
- package/dialog-form/style.css +1 -1
- package/dynamic-table/index.mjs +15 -15
- package/dynamic-table/style.css +1 -1
- package/e-charts/index.mjs +7 -7
- package/e-charts/style.css +1 -1
- package/easy-popup/index.mjs +15 -15
- package/easy-popup/style.css +1 -1
- package/editable-progress/index.mjs +1 -1
- package/editable-progress/style.css +1 -1
- package/editable-tree/index.mjs +5 -5
- package/editable-tree/style.css +1 -1
- package/egd-collapse/index.mjs +1 -1
- package/egd-collapse-item/index.mjs +1 -1
- package/element-dialog/index.mjs +8 -8
- package/element-dialog/style.css +1 -1
- package/empty-view/index.mjs +9 -9
- package/empty-view/style.css +1 -1
- package/error-view/index.mjs +13 -13
- package/error-view/style.css +1 -1
- package/flex-column/index.mjs +2 -2
- package/flex-item/index.mjs +2 -2
- package/flex-row/index.mjs +2 -2
- package/flex-scroller/index.mjs +5 -5
- package/flex-scroller/style.css +1 -1
- package/flow/index.mjs +2 -2
- package/flow/style.css +1 -1
- package/flow-designer/index.mjs +83 -83
- package/flow-designer/style.css +1 -1
- package/flow-node/index.mjs +2 -2
- package/flow-viewer/index.mjs +4 -4
- package/flow-viewer/style.css +1 -1
- package/form-block/index.mjs +16 -16
- package/form-block/style.css +1 -1
- package/form-button/index.mjs +1 -1
- package/form-cascader/index.mjs +4 -4
- package/form-checkbox-group/index.mjs +6 -6
- package/form-checkbox-group/style.css +1 -1
- package/form-date-picker/index.mjs +4 -4
- package/form-holder/index.mjs +2 -2
- package/form-input/index.mjs +3 -3
- package/form-input-email/index.mjs +3 -3
- package/form-input-id-card/index.mjs +3 -3
- package/form-input-number/index.mjs +8 -8
- package/form-input-number/style.css +1 -1
- package/form-input-phone-number/index.mjs +3 -3
- package/form-input-tag/index.mjs +3 -3
- package/form-input-time/index.mjs +3 -3
- package/form-item/index.mjs +18 -18
- package/form-item/style.css +1 -1
- package/form-item-config-provider/index.mjs +1 -1
- package/form-item-group/index.mjs +4 -4
- package/form-item-group/style.css +1 -1
- package/form-radio-group/index.mjs +37 -37
- package/form-radio-group/style.css +1 -1
- package/form-select/index.mjs +4 -4
- package/form-switch/index.mjs +3 -3
- package/form-textarea/index.mjs +3 -3
- package/form-view/index.mjs +7 -7
- package/form-view/style.css +1 -1
- package/fy-array/index.mjs +9 -9
- package/fy-array/style.css +1 -1
- package/fy-article/index.mjs +7 -7
- package/fy-article/style.css +1 -1
- package/fy-cascader/index.mjs +2 -2
- package/fy-checkbox/index.mjs +6 -6
- package/fy-checkbox/style.css +1 -1
- package/fy-code/index.mjs +2 -2
- package/fy-curd/index.mjs +9 -9
- package/fy-curd/style.css +1 -1
- package/fy-date/index.mjs +8 -8
- package/fy-date/style.css +1 -1
- package/fy-draggable/index.mjs +2 -2
- package/fy-draggable/style.css +1 -1
- package/fy-dynamic/index.mjs +7 -7
- package/fy-dynamic/style.css +1 -1
- package/fy-empty/index.mjs +10 -10
- package/fy-empty/style.css +1 -1
- package/fy-form/index.mjs +42 -42
- package/fy-form/style.css +1 -1
- package/fy-form-design/index.mjs +3 -3
- package/fy-form-design/style.css +1 -1
- package/fy-input/index.mjs +2 -2
- package/fy-input-color/index.mjs +2 -2
- package/fy-input-icon/index.mjs +5 -5
- package/fy-input-icon/style.css +1 -1
- package/fy-input-map/index.mjs +8 -8
- package/fy-input-map/style.css +1 -1
- package/fy-input-number/index.mjs +2 -2
- package/fy-input-table/index.mjs +2 -2
- package/fy-input-table/style.css +1 -1
- package/fy-input-tree/index.mjs +6 -6
- package/fy-input-tree/style.css +1 -1
- package/fy-progress/index.mjs +1 -1
- package/fy-radio/index.mjs +6 -6
- package/fy-radio/style.css +1 -1
- package/fy-rate/index.mjs +4 -4
- package/fy-rate/style.css +1 -1
- package/fy-select/index.mjs +27 -27
- package/fy-select/style.css +1 -1
- package/fy-slider/index.mjs +3 -3
- package/fy-switch/index.mjs +2 -2
- package/fy-tabs/index.mjs +1 -1
- package/fy-time/index.mjs +2 -2
- package/fy-title/index.mjs +14 -14
- package/fy-title/style.css +1 -1
- package/fy-tree/index.mjs +3 -3
- package/fy-tree/style.css +1 -1
- package/fy-u-editor/index.mjs +14 -14
- package/fy-u-editor/style.css +1 -1
- package/fy-upload/index.mjs +17 -17
- package/fy-upload/style.css +1 -1
- package/guide-steps/index.mjs +12 -12
- package/guide-steps/style.css +1 -1
- package/highlight-j-s/index.mjs +1 -1
- package/highlight-j-s/style.css +1 -1
- package/icon-card/index.mjs +9 -9
- package/icon-card/style.css +1 -1
- package/icon-temp/index.mjs +16 -16
- package/icon-temp/style.css +1 -1
- package/iframe-window/index.mjs +5 -5
- package/iframe-window/style.css +1 -1
- package/image-cropper/index.mjs +10 -10
- package/image-cropper/style.css +1 -1
- package/image-preview/index.mjs +7 -7
- package/image-preview/style.css +1 -1
- package/image-viewer/index.mjs +5 -5
- package/image-viewer/style.css +1 -1
- package/input-number/index.mjs +2 -2
- package/input-number/style.css +1 -1
- package/input-number-range/index.mjs +7 -7
- package/input-number-range/style.css +1 -1
- package/keep-view-alive/index.mjs +1 -1
- package/keyboard/index.mjs +12 -12
- package/keyboard/style.css +1 -1
- package/license/index.mjs +2 -2
- package/loading-view/index.mjs +5 -5
- package/loading-view/style.css +1 -1
- package/login/index.mjs +4 -4
- package/login/style.css +1 -1
- package/monaco-editor/index.mjs +2 -2
- package/name-avatar/index.mjs +6 -6
- package/name-avatar/style.css +1 -1
- package/nav-bar/index.mjs +8 -8
- package/nav-bar/style.css +1 -1
- package/not-implement/index.mjs +15 -15
- package/not-implement/style.css +1 -1
- package/notice/index.mjs +1 -1
- package/notice/style.css +1 -1
- package/package.json +1 -1
- package/page/index.mjs +8 -8
- package/page/style.css +1 -1
- package/page-header/index.mjs +6 -6
- package/page-header/style.css +1 -1
- package/page-index/index.mjs +19 -19
- package/page-index/style.css +1 -1
- package/page-index-top/index.mjs +1 -1
- package/page-skeleton/index.mjs +21 -21
- package/page-skeleton/style.css +1 -1
- package/page-skeleton-new/index.mjs +3 -3
- package/page-skeleton-new/style.css +1 -1
- package/pageable-table/index.mjs +12 -12
- package/pageable-table/style.css +1 -1
- package/pageable-view/index.mjs +28 -28
- package/pageable-view/style.css +1 -1
- package/photo-swipe/index.mjs +1 -1
- package/present-view/index.mjs +7 -7
- package/present-view/style.css +1 -1
- package/queue/index.mjs +4 -4
- package/queue/style.css +1 -1
- package/record-video/index.mjs +14 -14
- package/record-video/style.css +1 -1
- package/resize-observer/index.mjs +6 -6
- package/resize-observer/style.css +1 -1
- package/search/index.mjs +6 -6
- package/search/style.css +1 -1
- package/search-popover/index.mjs +6 -6
- package/search-popover/style.css +1 -1
- package/sign/index.mjs +31 -31
- package/sign/style.css +1 -1
- package/sign-panel/index.mjs +5 -5
- package/sign-panel/style.css +1 -1
- package/skeleton/index.mjs +10 -10
- package/skeleton/style.css +1 -1
- package/split-pane/index.mjs +18 -18
- package/split-pane/style.css +1 -1
- package/stateful/index.mjs +12 -12
- package/stateful/style.css +1 -1
- package/static-pageable-table/index.mjs +9 -9
- package/static-pageable-table/style.css +1 -1
- package/swiper/index.mjs +7 -7
- package/swiper/style.css +1 -1
- package/tab/index.mjs +2 -2
- package/tab/style.css +1 -1
- package/tab-item/index.mjs +2 -2
- package/table-column/index.mjs +1 -1
- package/table-view/index.mjs +6 -6
- package/table-view/style.css +1 -1
- package/tag-render/index.mjs +29 -29
- package/tag-render/style.css +1 -1
- package/text-ellipsis/index.mjs +8 -8
- package/text-ellipsis/style.css +1 -1
- package/tinymce-editor/index.mjs +70 -70
- package/tinymce-editor/style.css +1 -1
- package/toolbar/index.mjs +1 -1
- package/toolbar/style.css +1 -1
- package/toolbar-button/index.mjs +6 -6
- package/toolbar-button/style.css +1 -1
- package/verify/index.mjs +10 -10
- package/verify/style.css +1 -1
- package/vue-cron/index.mjs +1 -1
- package/vue-cron/style.css +1 -1
- package/vue-qr-code/index.mjs +1 -1
- package/vue-quill-editor/index.mjs +3 -3
- package/vue-quill-editor/style.css +1 -1
- package/vue-tags-input/index.mjs +1 -1
- package/vue-tags-input/style.css +1 -1
- package/vue-tree-select/index.mjs +364 -369
- package/vue-tree-select/style.css +1 -1
- package/vue-video-player/index.mjs +25 -25
- package/vue-video-player/style.css +1 -1
- package/watermark/index.mjs +11 -11
- package/watermark/style.css +1 -1
- package/web-types.json +27 -3
- package/x-input-tag/index.mjs +13 -13
- package/x-input-tag/style.css +1 -1
- /package/chunks/{form-pick-mixin.61ad06b2.mjs → form-pick-mixin.y-qhZJi6.mjs} +0 -0
- /package/chunks/{index.57f871af.mjs → index.LGsb2aDq.mjs} +0 -0
- /package/chunks/{input-number-mixin.41a066be.mjs → input-number-mixin.GE2zr_3s.mjs} +0 -0
- /package/chunks/{json-beautifier.21cfffea.mjs → json-beautifier.fUZFSW5j.mjs} +0 -0
- /package/chunks/{packages.1fc9ccba.mjs → packages.v6r2Hr7E.mjs} +0 -0
- /package/chunks/{permission.ce5d2121.mjs → permission.E9kZbW48.mjs} +0 -0
- /package/chunks/{slot.4b391395.mjs → slot.j1uMmBnG.mjs} +0 -0
- /package/chunks/{tab-mixin.e2b9c6a4.mjs → tab-mixin.tM9jcRT8.mjs} +0 -0
- /package/chunks/{util.c5724c4a.mjs → util.C2Bhx22L.mjs} +0 -0
- /package/chunks/{vueComponentNormalizer.446f5dc4.mjs → vueComponentNormalizer.JwmUNtgn.mjs} +0 -0
package/flow-designer/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ var Oe = Object.defineProperty, Pe = Object.defineProperties;
|
|
|
2
2
|
var De = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Q = Object.getOwnPropertySymbols;
|
|
4
4
|
var Be = Object.prototype.hasOwnProperty, je = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var ee = (e, i, t) => i in e ? Oe(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t,
|
|
5
|
+
var ee = (e, i, t) => i in e ? Oe(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t, u = (e, i) => {
|
|
6
6
|
for (var t in i || (i = {}))
|
|
7
7
|
Be.call(i, t) && ee(e, t, i[t]);
|
|
8
8
|
if (Q)
|
|
@@ -10,7 +10,7 @@ var ee = (e, i, t) => i in e ? Oe(e, i, { enumerable: !0, configurable: !0, writ
|
|
|
10
10
|
je.call(i, t) && ee(e, t, i[t]);
|
|
11
11
|
return e;
|
|
12
12
|
}, T = (e, i) => Pe(e, De(i));
|
|
13
|
-
var
|
|
13
|
+
var d = (e, i, t) => new Promise((n, s) => {
|
|
14
14
|
var r = (m) => {
|
|
15
15
|
try {
|
|
16
16
|
o(t.next(m));
|
|
@@ -26,7 +26,7 @@ var u = (e, i, t) => new Promise((n, s) => {
|
|
|
26
26
|
}, o = (m) => m.done ? n(m.value) : Promise.resolve(m.value).then(r, a);
|
|
27
27
|
o((t = t.apply(e, i)).next());
|
|
28
28
|
});
|
|
29
|
-
import { assign as y, isArray as Re, forEach as Ve, isObject as ze, isFunction as Ue, some as
|
|
29
|
+
import { assign as y, isArray as Re, forEach as Ve, isObject as ze, isFunction as Ue, some as _ } from "min-dash";
|
|
30
30
|
import { is as R } from "bpmn-js/lib/util/ModelUtil";
|
|
31
31
|
import { isExpanded as Ne, isEventSubProcess as Ge } from "bpmn-js/lib/util/DiUtil";
|
|
32
32
|
import { isAny as N } from "bpmn-js/lib/features/modeling/util/ModelingUtil";
|
|
@@ -36,7 +36,7 @@ import Se from "bpmn-js/lib/features/palette/PaletteProvider";
|
|
|
36
36
|
import K from "diagram-js/lib/features/auto-place/AutoPlace";
|
|
37
37
|
import { getMid as Je, asTRBL as Ze } from "diagram-js/lib/layout/LayoutUtil";
|
|
38
38
|
import { fastClone as g, isBlank as He, isArray as te } from "@web-utils/core";
|
|
39
|
-
import { n as h } from "../chunks/vueComponentNormalizer.
|
|
39
|
+
import { n as h } from "../chunks/vueComponentNormalizer.JwmUNtgn.mjs";
|
|
40
40
|
import "bpmn-js/dist/assets/bpmn-js.css";
|
|
41
41
|
import "bpmn-js/dist/assets/diagram-js.css";
|
|
42
42
|
import "bpmn-js/dist/assets/bpmn-font/css/bpmn-embedded.css";
|
|
@@ -55,8 +55,8 @@ function J(e, i, t, n, s, r, a, o, m, F, p, l, c) {
|
|
|
55
55
|
const C = E.context.shape;
|
|
56
56
|
if (!Ke(E) || !n.isOpen(C))
|
|
57
57
|
return;
|
|
58
|
-
const
|
|
59
|
-
|
|
58
|
+
const f = n.getEntries(C);
|
|
59
|
+
f.replace && f.replace.action.click(E, C);
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
62
|
J.$inject = [
|
|
@@ -92,7 +92,7 @@ J.prototype.getContextPadEntries = function(e) {
|
|
|
92
92
|
y: D + P.height + 5
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function f(b, S, v, w) {
|
|
96
96
|
typeof v != "string" && (w = v, v = p("Append {type}", { type: b.replace(/^bpmn:/, "") }));
|
|
97
97
|
function $(D, B) {
|
|
98
98
|
const j = n.createShape(y({ type: b }, w));
|
|
@@ -163,40 +163,40 @@ J.prototype.getContextPadEntries = function(e) {
|
|
|
163
163
|
});
|
|
164
164
|
}
|
|
165
165
|
R(c, "bpmn:FlowNode") && (R(c, "bpmn:EventBasedGateway") ? y(l, {
|
|
166
|
-
"append.receive-task":
|
|
167
|
-
"append.message-intermediate-event":
|
|
166
|
+
"append.receive-task": f("bpmn:ReceiveTask", "bpmn-icon-receive-task", p("Append ReceiveTask")),
|
|
167
|
+
"append.message-intermediate-event": f(
|
|
168
168
|
"bpmn:IntermediateCatchEvent",
|
|
169
169
|
"bpmn-icon-intermediate-event-catch-message",
|
|
170
170
|
p("Append MessageIntermediateCatchEvent"),
|
|
171
171
|
{ eventDefinitionType: "bpmn:MessageEventDefinition" }
|
|
172
172
|
),
|
|
173
|
-
"append.timer-intermediate-event":
|
|
173
|
+
"append.timer-intermediate-event": f(
|
|
174
174
|
"bpmn:IntermediateCatchEvent",
|
|
175
175
|
"bpmn-icon-intermediate-event-catch-timer",
|
|
176
176
|
p("Append TimerIntermediateCatchEvent"),
|
|
177
177
|
{ eventDefinitionType: "bpmn:TimerEventDefinition" }
|
|
178
178
|
),
|
|
179
|
-
"append.condition-intermediate-event":
|
|
179
|
+
"append.condition-intermediate-event": f(
|
|
180
180
|
"bpmn:IntermediateCatchEvent",
|
|
181
181
|
"bpmn-icon-intermediate-event-catch-condition",
|
|
182
182
|
p("Append ConditionIntermediateCatchEvent"),
|
|
183
183
|
{ eventDefinitionType: "bpmn:ConditionalEventDefinition" }
|
|
184
184
|
),
|
|
185
|
-
"append.signal-intermediate-event":
|
|
185
|
+
"append.signal-intermediate-event": f(
|
|
186
186
|
"bpmn:IntermediateCatchEvent",
|
|
187
187
|
"bpmn-icon-intermediate-event-catch-signal",
|
|
188
188
|
p("Append SignalIntermediateCatchEvent"),
|
|
189
189
|
{ eventDefinitionType: "bpmn:SignalEventDefinition" }
|
|
190
190
|
)
|
|
191
191
|
}) : ne(c, "bpmn:BoundaryEvent", "bpmn:CompensateEventDefinition") ? y(l, {
|
|
192
|
-
"append.compensation-activity":
|
|
192
|
+
"append.compensation-activity": f("bpmn:Task", "bpmn-icon-task", p("Append compensation activity"), {
|
|
193
193
|
isForCompensation: !0
|
|
194
194
|
})
|
|
195
195
|
}) : !R(c, "bpmn:EndEvent") && !c.isForCompensation && !ne(c, "bpmn:IntermediateThrowEvent", "bpmn:LinkEventDefinition") && !Ge(c) && y(l, {
|
|
196
|
-
"append.end-event":
|
|
197
|
-
"append.gateway":
|
|
198
|
-
"append.append-task":
|
|
199
|
-
"append.intermediate-event":
|
|
196
|
+
"append.end-event": f("bpmn:EndEvent", "bpmn-icon-end-event-none", p("Append EndEvent")),
|
|
197
|
+
"append.gateway": f("bpmn:ExclusiveGateway", "bpmn-icon-gateway-none", p("Append Gateway")),
|
|
198
|
+
"append.append-task": f("bpmn:UserTask", "bpmn-icon-user-task", p("Append Task")),
|
|
199
|
+
"append.intermediate-event": f(
|
|
200
200
|
"bpmn:IntermediateThrowEvent",
|
|
201
201
|
"bpmn-icon-intermediate-event-none",
|
|
202
202
|
p("Append Intermediate/Boundary Event")
|
|
@@ -216,7 +216,7 @@ J.prototype.getContextPadEntries = function(e) {
|
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
218
|
}), N(c, ["bpmn:FlowNode", "bpmn:InteractionNode", "bpmn:DataObjectReference", "bpmn:DataStoreReference"]) && y(l, {
|
|
219
|
-
"append.text-annotation":
|
|
219
|
+
"append.text-annotation": f("bpmn:TextAnnotation", "bpmn-icon-text-annotation"),
|
|
220
220
|
connect: {
|
|
221
221
|
group: "connect",
|
|
222
222
|
className: "bpmn-icon-connection-multi",
|
|
@@ -237,7 +237,7 @@ J.prototype.getContextPadEntries = function(e) {
|
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
239
|
}), R(c, "bpmn:Group") && y(l, {
|
|
240
|
-
"append.text-annotation":
|
|
240
|
+
"append.text-annotation": f("bpmn:TextAnnotation", "bpmn-icon-text-annotation")
|
|
241
241
|
});
|
|
242
242
|
let I = m.allowed("elements.delete", { elements: [e] });
|
|
243
243
|
return Re(I) && (I = I[0] === e), I && y(l, {
|
|
@@ -272,7 +272,7 @@ Z.prototype = Se.prototype;
|
|
|
272
272
|
Z.prototype.getPaletteEntries = function() {
|
|
273
273
|
const e = {}, i = this._create, t = this._elementFactory, n = this._spaceTool, s = this._lassoTool, r = this._handTool, a = this._globalConnect, o = this._translate;
|
|
274
274
|
function m(l, c, E, M, C) {
|
|
275
|
-
function
|
|
275
|
+
function f(I) {
|
|
276
276
|
const b = t.createShape(y({ type: l }, C));
|
|
277
277
|
C && (b.businessObject.di.isExpanded = C.isExpanded), i.start(I, b);
|
|
278
278
|
}
|
|
@@ -282,8 +282,8 @@ Z.prototype.getPaletteEntries = function() {
|
|
|
282
282
|
className: E,
|
|
283
283
|
title: M || o("Create {type}", { type: O }),
|
|
284
284
|
action: {
|
|
285
|
-
dragstart:
|
|
286
|
-
click:
|
|
285
|
+
dragstart: f,
|
|
286
|
+
click: f
|
|
287
287
|
}
|
|
288
288
|
};
|
|
289
289
|
}
|
|
@@ -442,7 +442,7 @@ Ie.prototype = K.prototype;
|
|
|
442
442
|
Ce.prototype = new Ie();
|
|
443
443
|
Ce.prototype.constructor = K;
|
|
444
444
|
const pt = 200, mt = 100;
|
|
445
|
-
function
|
|
445
|
+
function ke(e, i, t) {
|
|
446
446
|
e.on("autoPlace", mt, function(n) {
|
|
447
447
|
const s = n.shape, r = n.source;
|
|
448
448
|
return ct(r, s);
|
|
@@ -463,7 +463,7 @@ function _e(e, i, t) {
|
|
|
463
463
|
}), o;
|
|
464
464
|
};
|
|
465
465
|
}
|
|
466
|
-
|
|
466
|
+
ke.$inject = ["eventBus", "modeling", "canvas"];
|
|
467
467
|
function ct(e, i) {
|
|
468
468
|
const t = pt, n = Je(e);
|
|
469
469
|
return {
|
|
@@ -473,9 +473,9 @@ function ct(e, i) {
|
|
|
473
473
|
}
|
|
474
474
|
const ut = {
|
|
475
475
|
__init__: ["autoPlaceSelectionBehavior"],
|
|
476
|
-
autoPlace: ["type",
|
|
476
|
+
autoPlace: ["type", ke]
|
|
477
477
|
};
|
|
478
|
-
function
|
|
478
|
+
function _e(e, i, t, n) {
|
|
479
479
|
const s = /* @__PURE__ */ Object.create(null);
|
|
480
480
|
switch (s.event = i.event, t && (s.id = i.id), i.listenerType) {
|
|
481
481
|
case "scriptListener":
|
|
@@ -771,7 +771,7 @@ var Ct = function() {
|
|
|
771
771
|
}
|
|
772
772
|
})], 1)])]);
|
|
773
773
|
}, It = [];
|
|
774
|
-
const
|
|
774
|
+
const kt = {
|
|
775
775
|
name: "ElementOtherConfig",
|
|
776
776
|
props: {
|
|
777
777
|
id: String,
|
|
@@ -808,8 +808,8 @@ const _t = {
|
|
|
808
808
|
}
|
|
809
809
|
}
|
|
810
810
|
}, se = {};
|
|
811
|
-
var
|
|
812
|
-
|
|
811
|
+
var _t = /* @__PURE__ */ h(
|
|
812
|
+
kt,
|
|
813
813
|
Ct,
|
|
814
814
|
It,
|
|
815
815
|
!1,
|
|
@@ -823,7 +823,7 @@ function At(e) {
|
|
|
823
823
|
this[i] = se[i];
|
|
824
824
|
}
|
|
825
825
|
const wt = /* @__PURE__ */ function() {
|
|
826
|
-
return
|
|
826
|
+
return _t.exports;
|
|
827
827
|
}();
|
|
828
828
|
var $t = function() {
|
|
829
829
|
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
@@ -1535,7 +1535,7 @@ const Xt = {
|
|
|
1535
1535
|
},
|
|
1536
1536
|
methods: {
|
|
1537
1537
|
changeTaskAsync() {
|
|
1538
|
-
!this.taskConfigForm.asyncBefore && !this.taskConfigForm.asyncAfter && (this.taskConfigForm.exclusive = !1), this.bpmnInstances.modeling.updateProperties(this.element,
|
|
1538
|
+
!this.taskConfigForm.asyncBefore && !this.taskConfigForm.asyncAfter && (this.taskConfigForm.exclusive = !1), this.bpmnInstances.modeling.updateProperties(this.element, u({}, this.taskConfigForm));
|
|
1539
1539
|
}
|
|
1540
1540
|
}
|
|
1541
1541
|
}, le = {};
|
|
@@ -1804,7 +1804,7 @@ const sn = {
|
|
|
1804
1804
|
this.loopCharacteristics = "StandardLoop", this.loopInstanceForm = {};
|
|
1805
1805
|
return;
|
|
1806
1806
|
}
|
|
1807
|
-
e.loopCharacteristics.isSequential ? this.loopCharacteristics = "SequentialMultiInstance" : this.loopCharacteristics = "ParallelMultiInstance", this.loopInstanceForm = T(
|
|
1807
|
+
e.loopCharacteristics.isSequential ? this.loopCharacteristics = "SequentialMultiInstance" : this.loopCharacteristics = "ParallelMultiInstance", this.loopInstanceForm = T(u(u({}, this.defaultLoopInstanceForm), e.loopCharacteristics), {
|
|
1808
1808
|
completionCondition: (n = (t = (i = e.loopCharacteristics) == null ? void 0 : i.completionCondition) == null ? void 0 : t.body) != null ? n : "",
|
|
1809
1809
|
loopCardinality: (a = (r = (s = e.loopCharacteristics) == null ? void 0 : s.loopCardinality) == null ? void 0 : r.body) != null ? a : ""
|
|
1810
1810
|
}), this.multiLoopInstance = this.element.businessObject.loopCharacteristics, e.loopCharacteristics.extensionElements && e.loopCharacteristics.extensionElements.values && e.loopCharacteristics.extensionElements.values.length && this.$set(this.loopInstanceForm, "timeCycle", e.loopCharacteristics.extensionElements.values[0].body);
|
|
@@ -2072,7 +2072,7 @@ const mn = {
|
|
|
2072
2072
|
id: {
|
|
2073
2073
|
immediate: !0,
|
|
2074
2074
|
handler() {
|
|
2075
|
-
return
|
|
2075
|
+
return d(this, null, function* () {
|
|
2076
2076
|
yield this.$nextTick(), this.resetFlowCondition();
|
|
2077
2077
|
});
|
|
2078
2078
|
}
|
|
@@ -2089,7 +2089,7 @@ const mn = {
|
|
|
2089
2089
|
this.flowConditionForm = { type: "normal" };
|
|
2090
2090
|
else {
|
|
2091
2091
|
const e = this.element.businessObject.conditionExpression;
|
|
2092
|
-
if (this.flowConditionForm = T(
|
|
2092
|
+
if (this.flowConditionForm = T(u({}, e), { type: "condition" }), this.flowConditionForm.resource) {
|
|
2093
2093
|
this.$set(this.flowConditionForm, "conditionType", "script"), this.$set(this.flowConditionForm, "scriptType", "externalScript");
|
|
2094
2094
|
return;
|
|
2095
2095
|
}
|
|
@@ -2356,7 +2356,7 @@ const yn = {
|
|
|
2356
2356
|
methods: {
|
|
2357
2357
|
initDataList() {
|
|
2358
2358
|
this.rootElements = this.bpmnInstances.modeler.getDefinitions().rootElements, this.messageIdMap = {}, this.signalIdMap = {}, this.messageList = [], this.signalList = [], this.rootElements.forEach((e) => {
|
|
2359
|
-
e.$type === "bpmn:Message" && (this.messageIdMap[e.id] = !0, this.messageList.push(
|
|
2359
|
+
e.$type === "bpmn:Message" && (this.messageIdMap[e.id] = !0, this.messageList.push(u({}, e))), e.$type === "bpmn:Signal" && (this.signalIdMap[e.id] = !0, this.signalList.push(u({}, e)));
|
|
2360
2360
|
});
|
|
2361
2361
|
},
|
|
2362
2362
|
openModel(e) {
|
|
@@ -2396,8 +2396,8 @@ const gn = /* @__PURE__ */ function() {
|
|
|
2396
2396
|
return hn.exports;
|
|
2397
2397
|
}();
|
|
2398
2398
|
function Ae(e) {
|
|
2399
|
-
let i =
|
|
2400
|
-
if (e.script && (i = T(
|
|
2399
|
+
let i = u({}, e);
|
|
2400
|
+
if (e.script && (i = T(u(u({}, e), e.script), {
|
|
2401
2401
|
scriptType: e.script.resource ? "externalScript" : "inlineScript"
|
|
2402
2402
|
})), e.event === "timeout" && e.eventDefinitions && e.eventDefinitions.length) {
|
|
2403
2403
|
let t = "";
|
|
@@ -2410,8 +2410,8 @@ function Ae(e) {
|
|
|
2410
2410
|
function we(e) {
|
|
2411
2411
|
var t, n;
|
|
2412
2412
|
let i;
|
|
2413
|
-
return e.class && (i = "classListener"), e.expression && (i = "expressionListener"), e.delegateExpression && (i = "delegateExpressionListener"), e.script && (i = "scriptListener"), T(
|
|
2414
|
-
fields: (n = e.fields) == null ? void 0 : n.map((s) => T(
|
|
2413
|
+
return e.class && (i = "classListener"), e.expression && (i = "expressionListener"), e.delegateExpression && (i = "delegateExpressionListener"), e.script && (i = "scriptListener"), T(u(u({}, g(e)), (t = e.script) != null ? t : {}), {
|
|
2414
|
+
fields: (n = e.fields) == null ? void 0 : n.map((s) => T(u({}, s), { fieldType: s.expression ? "expression" : "string" })),
|
|
2415
2415
|
listenerType: i
|
|
2416
2416
|
});
|
|
2417
2417
|
}
|
|
@@ -3046,7 +3046,7 @@ const Sn = {
|
|
|
3046
3046
|
id: {
|
|
3047
3047
|
immediate: !0,
|
|
3048
3048
|
handler(e) {
|
|
3049
|
-
return
|
|
3049
|
+
return d(this, null, function* () {
|
|
3050
3050
|
e && (yield this.$nextTick(), this.resetListenersList());
|
|
3051
3051
|
});
|
|
3052
3052
|
}
|
|
@@ -3062,9 +3062,9 @@ const Sn = {
|
|
|
3062
3062
|
},
|
|
3063
3063
|
// 打开 监听器详情 侧边栏
|
|
3064
3064
|
openListenerForm(e, i) {
|
|
3065
|
-
return
|
|
3065
|
+
return d(this, null, function* () {
|
|
3066
3066
|
var t;
|
|
3067
|
-
e ? (this.listenerForm = Ae(e), this.editingListenerIndex = i) : (this.listenerForm = {}, this.editingListenerIndex = -1), e && e.fields ? this.fieldsListOfListener = e.fields : (this.fieldsListOfListener = [], this.$set(this.listenerForm, "fields", [])), this.listenerFormModelVisible = !0, yield this.$nextTick(), (t = this.$refs.listenerFormRef) == null || t.clearValidate();
|
|
3067
|
+
e ? (this.listenerForm = Ae(e), this.editingListenerIndex = i) : (this.listenerForm = {}, this.editingListenerIndex = -1), e && e.fields ? this.fieldsListOfListener = e.fields.map((n) => u({}, n)) : (this.fieldsListOfListener = [], this.$set(this.listenerForm, "fields", [])), this.listenerFormModelVisible = !0, yield this.$nextTick(), (t = this.$refs.listenerFormRef) == null || t.clearValidate();
|
|
3068
3068
|
});
|
|
3069
3069
|
},
|
|
3070
3070
|
// 打开监听器字段编辑弹窗
|
|
@@ -3075,13 +3075,13 @@ const Sn = {
|
|
|
3075
3075
|
},
|
|
3076
3076
|
// 保存监听器注入字段
|
|
3077
3077
|
saveListenerFiled() {
|
|
3078
|
-
return
|
|
3078
|
+
return d(this, null, function* () {
|
|
3079
3079
|
(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 = {});
|
|
3080
3080
|
});
|
|
3081
3081
|
},
|
|
3082
3082
|
// 移除监听器字段
|
|
3083
3083
|
removeListenerField(e, i) {
|
|
3084
|
-
return
|
|
3084
|
+
return d(this, null, function* () {
|
|
3085
3085
|
try {
|
|
3086
3086
|
yield this.$confirm("确认移除该字段吗?", "提示"), this.fieldsListOfListener.splice(i, 1), this.listenerForm.fields.splice(i, 1);
|
|
3087
3087
|
} catch (t) {
|
|
@@ -3090,7 +3090,7 @@ const Sn = {
|
|
|
3090
3090
|
},
|
|
3091
3091
|
// 移除监听器
|
|
3092
3092
|
removeListener(e, i) {
|
|
3093
|
-
return
|
|
3093
|
+
return d(this, null, function* () {
|
|
3094
3094
|
try {
|
|
3095
3095
|
yield this.$confirm("确认移除该监听器吗?", "提示"), this.bpmnElementListeners.splice(i, 1), this.elementListenersList.splice(i, 1), U(this.bpmnInstances, this.element, this.otherExtensionList.concat(this.bpmnElementListeners));
|
|
3096
3096
|
} catch (t) {
|
|
@@ -3099,11 +3099,11 @@ const Sn = {
|
|
|
3099
3099
|
},
|
|
3100
3100
|
// 保存监听器配置
|
|
3101
3101
|
saveListenerConfig() {
|
|
3102
|
-
return
|
|
3102
|
+
return d(this, null, function* () {
|
|
3103
3103
|
var t, n, s, r;
|
|
3104
3104
|
if (!(yield this.$refs.listenerFormRef.validate()))
|
|
3105
3105
|
return;
|
|
3106
|
-
const i =
|
|
3106
|
+
const i = _e(this.bpmnInstances, this.listenerForm, !1, this.prefix);
|
|
3107
3107
|
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((a) => a.$type !== `${this.prefix}:ExecutionListener`)) != null ? r : [], U(this.bpmnInstances, this.element, this.otherExtensionList.concat(this.bpmnElementListeners)), this.listenerFormModelVisible = !1, this.listenerForm = {};
|
|
3108
3108
|
});
|
|
3109
3109
|
}
|
|
@@ -3126,7 +3126,7 @@ function Cn(e) {
|
|
|
3126
3126
|
const In = /* @__PURE__ */ function() {
|
|
3127
3127
|
return Tn.exports;
|
|
3128
3128
|
}();
|
|
3129
|
-
var
|
|
3129
|
+
var kn = function() {
|
|
3130
3130
|
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
3131
3131
|
return t("div", {
|
|
3132
3132
|
staticClass: "panel-tab__content"
|
|
@@ -3292,7 +3292,7 @@ var _n = function() {
|
|
|
3292
3292
|
expression: "propertyForm.value"
|
|
3293
3293
|
}
|
|
3294
3294
|
})], 1)], 1)], 1)], 1);
|
|
3295
|
-
},
|
|
3295
|
+
}, _n = [];
|
|
3296
3296
|
const An = {
|
|
3297
3297
|
name: "ElementProperties",
|
|
3298
3298
|
inject: {
|
|
@@ -3370,8 +3370,8 @@ const An = {
|
|
|
3370
3370
|
}, de = {};
|
|
3371
3371
|
var wn = /* @__PURE__ */ h(
|
|
3372
3372
|
An,
|
|
3373
|
-
_n,
|
|
3374
3373
|
kn,
|
|
3374
|
+
_n,
|
|
3375
3375
|
!1,
|
|
3376
3376
|
$n,
|
|
3377
3377
|
null,
|
|
@@ -4103,7 +4103,7 @@ const Pn = {
|
|
|
4103
4103
|
id: {
|
|
4104
4104
|
immediate: !0,
|
|
4105
4105
|
handler(e) {
|
|
4106
|
-
return
|
|
4106
|
+
return d(this, null, function* () {
|
|
4107
4107
|
e && (yield this.$nextTick(), this.resetFormList());
|
|
4108
4108
|
});
|
|
4109
4109
|
}
|
|
@@ -4898,7 +4898,7 @@ const zn = {
|
|
|
4898
4898
|
id: {
|
|
4899
4899
|
immediate: !0,
|
|
4900
4900
|
handler(e) {
|
|
4901
|
-
return
|
|
4901
|
+
return d(this, null, function* () {
|
|
4902
4902
|
e && (yield this.$nextTick(), this.resetListenersList());
|
|
4903
4903
|
});
|
|
4904
4904
|
}
|
|
@@ -4910,16 +4910,16 @@ const zn = {
|
|
|
4910
4910
|
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((s) => s.$type === `${this.prefix}:TaskListener`)) != null ? n : [], this.elementListenersList = this.bpmnElementListeners.map((s) => we(s));
|
|
4911
4911
|
},
|
|
4912
4912
|
openListenerForm(e, i) {
|
|
4913
|
-
return
|
|
4913
|
+
return d(this, null, function* () {
|
|
4914
4914
|
var t;
|
|
4915
|
-
e ? (this.listenerForm = Ae(e), this.editingListenerIndex = i) : (this.listenerForm = {}, this.editingListenerIndex = -1), e && e.fields ? this.fieldsListOfListener = e.fields.map((n) => T(
|
|
4915
|
+
e ? (this.listenerForm = Ae(e), this.editingListenerIndex = i) : (this.listenerForm = {}, this.editingListenerIndex = -1), e && e.fields ? this.fieldsListOfListener = e.fields.map((n) => T(u({}, n), {
|
|
4916
4916
|
fieldType: n.string ? "string" : "expression"
|
|
4917
4917
|
})) : (this.fieldsListOfListener = [], this.$set(this.listenerForm, "fields", [])), this.listenerFormModelVisible = !0, yield this.$nextTick(), (t = this.$refs.listenerFormRef) == null || t.clearValidate();
|
|
4918
4918
|
});
|
|
4919
4919
|
},
|
|
4920
4920
|
// 移除监听器
|
|
4921
4921
|
removeListener(e, i) {
|
|
4922
|
-
return
|
|
4922
|
+
return d(this, null, function* () {
|
|
4923
4923
|
try {
|
|
4924
4924
|
yield this.$confirm("确认移除该监听器吗?", "提示"), this.bpmnElementListeners.splice(i, 1), this.elementListenersList.splice(i, 1), U(this.bpmnInstances, this.element, this.otherExtensionList.concat(this.bpmnElementListeners));
|
|
4925
4925
|
} catch (t) {
|
|
@@ -4928,30 +4928,30 @@ const zn = {
|
|
|
4928
4928
|
},
|
|
4929
4929
|
// 保存监听器
|
|
4930
4930
|
saveListenerConfig() {
|
|
4931
|
-
return
|
|
4931
|
+
return d(this, null, function* () {
|
|
4932
4932
|
var t, n, s, r;
|
|
4933
4933
|
if (!(yield this.$refs.listenerFormRef.validate()))
|
|
4934
4934
|
return;
|
|
4935
|
-
const i =
|
|
4935
|
+
const i = _e(this.bpmnInstances, this.listenerForm, !0, this.prefix);
|
|
4936
4936
|
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((a) => a.$type !== `${this.prefix}:TaskListener`)) != null ? r : [], U(this.bpmnInstances, this.element, this.otherExtensionList.concat(this.bpmnElementListeners)), this.listenerFormModelVisible = !1, this.listenerForm = {};
|
|
4937
4937
|
});
|
|
4938
4938
|
},
|
|
4939
4939
|
// 打开监听器字段编辑弹窗
|
|
4940
4940
|
openListenerFieldForm(e, i) {
|
|
4941
|
-
return
|
|
4941
|
+
return d(this, null, function* () {
|
|
4942
4942
|
var t;
|
|
4943
4943
|
this.listenerFieldForm = e ? g(e) : {}, this.editingListenerFieldIndex = e ? i : -1, this.listenerFieldFormModelVisible = !0, yield this.$nextTick(), (t = this.$refs.listenerFieldFormRef) == null || t.clearValidate();
|
|
4944
4944
|
});
|
|
4945
4945
|
},
|
|
4946
4946
|
// 保存监听器注入字段
|
|
4947
4947
|
saveListenerFiled() {
|
|
4948
|
-
return
|
|
4948
|
+
return d(this, null, function* () {
|
|
4949
4949
|
(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 = {});
|
|
4950
4950
|
});
|
|
4951
4951
|
},
|
|
4952
4952
|
// 移除监听器字段
|
|
4953
4953
|
removeListenerField(e, i) {
|
|
4954
|
-
return
|
|
4954
|
+
return d(this, null, function* () {
|
|
4955
4955
|
try {
|
|
4956
4956
|
yield this.$confirm("确认移除该字段吗?", "提示"), this.fieldsListOfListener.splice(i, 1), this.listenerForm.fields.splice(i, 1);
|
|
4957
4957
|
} catch (t) {
|
|
@@ -9279,41 +9279,41 @@ function A(e) {
|
|
|
9279
9279
|
}
|
|
9280
9280
|
A.$inject = ["eventBus"];
|
|
9281
9281
|
A.prototype.canCopyProperty = function(e, i) {
|
|
9282
|
-
if (ze(e) && !xi(e, i) ||
|
|
9282
|
+
if (ze(e) && !xi(e, i) || k(e, "camunda:InputOutput") && !this.canHostInputOutput(i) || Me(e, ["camunda:Connector", "camunda:Field"]) && !this.canHostConnector(i) || k(e, "camunda:In") && !this.canHostIn(i))
|
|
9283
9283
|
return !1;
|
|
9284
9284
|
};
|
|
9285
9285
|
A.prototype.canHostInputOutput = function(e) {
|
|
9286
9286
|
if (x(e, "camunda:Connector"))
|
|
9287
9287
|
return !0;
|
|
9288
9288
|
const t = x(e, "bpmn:FlowNode");
|
|
9289
|
-
return !(!t || Me(t, ["bpmn:StartEvent", "bpmn:Gateway", "bpmn:BoundaryEvent"]) ||
|
|
9289
|
+
return !(!t || Me(t, ["bpmn:StartEvent", "bpmn:Gateway", "bpmn:BoundaryEvent"]) || k(t, "bpmn:SubProcess") && t.get("triggeredByEvent"));
|
|
9290
9290
|
};
|
|
9291
9291
|
A.prototype.canHostConnector = function(e) {
|
|
9292
9292
|
const i = x(e, "camunda:ServiceTaskLike");
|
|
9293
|
-
return
|
|
9293
|
+
return k(i, "bpmn:MessageEventDefinition") ? x(e, "bpmn:IntermediateThrowEvent") || x(e, "bpmn:EndEvent") : !0;
|
|
9294
9294
|
};
|
|
9295
9295
|
A.prototype.canHostIn = function(e) {
|
|
9296
9296
|
return x(e, "bpmn:CallActivity") ? !0 : x(e, "bpmn:SignalEventDefinition") ? x(e, "bpmn:IntermediateThrowEvent") || x(e, "bpmn:EndEvent") : !0;
|
|
9297
9297
|
};
|
|
9298
|
-
function
|
|
9298
|
+
function k(e, i) {
|
|
9299
9299
|
return e && Ue(e.$instanceOf) && e.$instanceOf(i);
|
|
9300
9300
|
}
|
|
9301
9301
|
function Me(e, i) {
|
|
9302
|
-
return
|
|
9303
|
-
return
|
|
9302
|
+
return _(i, function(t) {
|
|
9303
|
+
return k(e, t);
|
|
9304
9304
|
});
|
|
9305
9305
|
}
|
|
9306
9306
|
function x(e, i) {
|
|
9307
9307
|
if (!i)
|
|
9308
9308
|
return e.$parent;
|
|
9309
|
-
if (
|
|
9309
|
+
if (k(e, i))
|
|
9310
9310
|
return e;
|
|
9311
9311
|
if (e.$parent)
|
|
9312
9312
|
return x(e.$parent, i);
|
|
9313
9313
|
}
|
|
9314
9314
|
function xi(e, i) {
|
|
9315
9315
|
const t = e.$type && e.$model.getTypeDescriptor(e.$type), n = t && t.meta && t.meta.allowedIn;
|
|
9316
|
-
return !n || Si(n) ? !0 :
|
|
9316
|
+
return !n || Si(n) ? !0 : _(n, function(s) {
|
|
9317
9317
|
return x(i, s);
|
|
9318
9318
|
});
|
|
9319
9319
|
}
|
|
@@ -9335,18 +9335,18 @@ function Ii(e) {
|
|
|
9335
9335
|
return e && e.length;
|
|
9336
9336
|
}
|
|
9337
9337
|
function V(e, i) {
|
|
9338
|
-
return Ii(e) &&
|
|
9338
|
+
return Ii(e) && _(e, function(t) {
|
|
9339
9339
|
return H(t, i);
|
|
9340
9340
|
});
|
|
9341
9341
|
}
|
|
9342
|
-
function
|
|
9343
|
-
return
|
|
9342
|
+
function ki(e, i) {
|
|
9343
|
+
return _(i, function(t) {
|
|
9344
9344
|
return H(e, t);
|
|
9345
9345
|
});
|
|
9346
9346
|
}
|
|
9347
9347
|
function G(e, i, t) {
|
|
9348
9348
|
const n = i.name, s = Ci[n.replace(/activiti:/, "")];
|
|
9349
|
-
return n === e &&
|
|
9349
|
+
return n === e && ki(t, s);
|
|
9350
9350
|
}
|
|
9351
9351
|
function W(e) {
|
|
9352
9352
|
e.on(
|
|
@@ -9365,7 +9365,7 @@ W.prototype.canCloneProperty = function(e, i) {
|
|
|
9365
9365
|
if (G("activiti:Connector", i, e) || G("activiti:Field", i, e))
|
|
9366
9366
|
return V(e.eventDefinitions, "bpmn:MessageEventDefinition");
|
|
9367
9367
|
};
|
|
9368
|
-
const
|
|
9368
|
+
const _i = {
|
|
9369
9369
|
__init__: ["ActivitiModdleExtension"],
|
|
9370
9370
|
ActivitiModdleExtension: ["type", W]
|
|
9371
9371
|
}, Ai = {
|
|
@@ -9380,12 +9380,12 @@ function wi(e) {
|
|
|
9380
9380
|
return e && e.length;
|
|
9381
9381
|
}
|
|
9382
9382
|
function z(e, i) {
|
|
9383
|
-
return wi(e) &&
|
|
9383
|
+
return wi(e) && _(e, function(t) {
|
|
9384
9384
|
return X(t, i);
|
|
9385
9385
|
});
|
|
9386
9386
|
}
|
|
9387
9387
|
function $i(e, i) {
|
|
9388
|
-
return
|
|
9388
|
+
return _(i, function(t) {
|
|
9389
9389
|
return X(e, t);
|
|
9390
9390
|
});
|
|
9391
9391
|
}
|
|
@@ -9851,7 +9851,7 @@ const Pi = {
|
|
|
9851
9851
|
const i = {
|
|
9852
9852
|
translate: ["value", Yn(this.translations || Qn)]
|
|
9853
9853
|
};
|
|
9854
|
-
return e.push(i), this.simulation && e.push(Ye), e.push(Xe), this.prefix === "camunda" && e.push(Ti), this.prefix === "flowable" && e.push(Li), this.prefix === "activiti" && e.push(
|
|
9854
|
+
return e.push(i), this.simulation && e.push(Ye), e.push(Xe), this.prefix === "camunda" && e.push(Ti), this.prefix === "flowable" && e.push(Li), this.prefix === "activiti" && e.push(_i), e;
|
|
9855
9855
|
},
|
|
9856
9856
|
moddleExtensions() {
|
|
9857
9857
|
const e = {};
|
|
@@ -9860,11 +9860,11 @@ const Pi = {
|
|
|
9860
9860
|
if (this.moddleExtension)
|
|
9861
9861
|
for (const i in this.moddleExtension)
|
|
9862
9862
|
e[i] = this.moddleExtension[i];
|
|
9863
|
-
return this.prefix === "activiti" && (e.activiti = T(
|
|
9863
|
+
return this.prefix === "activiti" && (e.activiti = T(u({}, ge), {
|
|
9864
9864
|
types: [...ge.types, ...this.extendTypes || []]
|
|
9865
|
-
})), this.prefix === "flowable" && (e.flowable = T(
|
|
9865
|
+
})), this.prefix === "flowable" && (e.flowable = T(u({}, Ee), {
|
|
9866
9866
|
types: [...Ee.types, ...this.extendTypes || []]
|
|
9867
|
-
})), this.prefix === "camunda" && (e.camunda = T(
|
|
9867
|
+
})), this.prefix === "camunda" && (e.camunda = T(u({}, ve), {
|
|
9868
9868
|
types: [...ve.types, ...this.extendTypes || []]
|
|
9869
9869
|
})), e;
|
|
9870
9870
|
}
|
|
@@ -9876,7 +9876,7 @@ const Pi = {
|
|
|
9876
9876
|
},
|
|
9877
9877
|
methods: {
|
|
9878
9878
|
initBpmnModeler() {
|
|
9879
|
-
this.bpmnModeler || (this.bpmnModeler = new We(
|
|
9879
|
+
this.bpmnModeler || (this.bpmnModeler = new We(u({
|
|
9880
9880
|
container: this.$refs["bpmn-canvas"],
|
|
9881
9881
|
keyboard: this.keyboard ? { bindTo: document } : null,
|
|
9882
9882
|
additionalModules: this.additionalModules,
|
|
@@ -9890,7 +9890,7 @@ const Pi = {
|
|
|
9890
9890
|
const s = t.replace(/\./g, "-"), r = n ? n.element : null;
|
|
9891
9891
|
i.$emit(s, r, n);
|
|
9892
9892
|
});
|
|
9893
|
-
}), e.on("commandStack.changed", (t) =>
|
|
9893
|
+
}), e.on("commandStack.changed", (t) => d(this, null, function* () {
|
|
9894
9894
|
try {
|
|
9895
9895
|
this.recoverable = this.bpmnModeler.get("commandStack").canRedo(), this.revocable = this.bpmnModeler.get("commandStack").canUndo();
|
|
9896
9896
|
const { xml: n } = yield this.bpmnModeler.saveXML({ format: !0 });
|
|
@@ -9906,7 +9906,7 @@ const Pi = {
|
|
|
9906
9906
|
},
|
|
9907
9907
|
/* 创建新的流程图 */
|
|
9908
9908
|
createNewDiagram(e) {
|
|
9909
|
-
return
|
|
9909
|
+
return d(this, null, function* () {
|
|
9910
9910
|
const i = this.processId || `Process_${(/* @__PURE__ */ new Date()).getTime()}`, t = this.processName || `业务流程_${(/* @__PURE__ */ new Date()).getTime()}`, n = e || Xn(i, t, this.prefix);
|
|
9911
9911
|
try {
|
|
9912
9912
|
const { warnings: s } = yield this.bpmnModeler.importXML(n);
|
|
@@ -9922,7 +9922,7 @@ const Pi = {
|
|
|
9922
9922
|
* @param {*} name
|
|
9923
9923
|
*/
|
|
9924
9924
|
downloadProcess(e, i = "diagram") {
|
|
9925
|
-
return
|
|
9925
|
+
return d(this, null, function* () {
|
|
9926
9926
|
try {
|
|
9927
9927
|
if (e === "xml" || e === "bpmn") {
|
|
9928
9928
|
const { err: n, xml: s } = yield this.bpmnModeler.saveXML();
|
package/flow-designer/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.process-panel__container{box-sizing:border-box;border-left:1px solid #eee;max-height:100%;padding:0 8px;transition:width .25s ease-in;overflow-x:hidden;overflow-y:auto;box-shadow:0 0 8px #ccc}.process-panel__container.hide:hover{background-color:#e8f4ff}.process-panel__container.show{overflow-x:auto}.process-panel__container .open-properties-handel{color:#606266;text-align:center;cursor:pointer;font-size:20px}.process-panel__container .open-properties-handel:hover{color:#1682e6}.process-panel__container .element-property{align-items:flex-start;width:100%;margin:8px 0;display:flex}.process-panel__container .element-property .element-property__label{box-sizing:border-box;text-align:right;width:90px;padding-right:12px;font-size:14px;line-height:32px;display:block;overflow:hidden}.process-panel__container .element-property .element-property__value{flex:1;line-height:32px}.process-panel__container .element-property .el-form-item{width:100%;margin-bottom:0;padding-bottom:18px}.process-panel__container .list-property{flex-direction:column}.process-panel__container .list-property .element-listener-item{grid-column-gap:8px;grid-template-columns:16px auto 32px 32px;width:100%;display:inline-grid}.process-panel__container .list-property .element-listener-item+.element-listener-item{margin-top:8px}.process-panel__container .el-collapse-item__content{padding-bottom:0}.process-panel__container .el-input.is-disabled .el-input__inner{color:#999}.process-panel__container .el-form-item.el-form-item--mini{margin-bottom:0}.process-panel__container .el-form-item.el-form-item--mini+.el-form-item{margin-top:16px}.panel-tab__title{padding:0 8px;font-size:1.1em;font-weight:600;line-height:1.2em}.panel-tab__title i{margin-right:8px;font-size:1.2em}.panel-tab__content{box-sizing:border-box;border-top:1px solid #eee;width:100%;padding:8px 16px}.panel-tab__content .panel-tab__content--title{justify-content:space-between;padding-bottom:8px;display:flex}.panel-tab__content .panel-tab__content--title span{text-align:left;flex:1}.listener-filed__title{justify-content:space-between;align-items:center;width:100%;margin-top:0;display:inline-flex}.listener-filed__title span{text-align:left;width:200px;font-size:14px}.listener-filed__title i{margin-right:8px}.element-drawer__button{justify-content:space-around;width:100%;margin-top:8px;display:inline-flex}.element-drawer__button>.el-button{width:100%}.flow-drawer .el-drawer__body{padding:10px}.my-process-designer{box-sizing:border-box;flex-direction:column;flex:1;width:100%;height:100%;display:flex}.my-process-designer .bts-toggle-mode{display:none}.my-process-designer .djs-palette.open .djs-palette-entries div[class^=bpmn-icon-]:before,.my-process-designer .djs-palette.open .djs-palette-entries div[class*=bpmn-icon-]:before{line-height:unset}.my-process-designer .djs-palette.open .djs-palette-entries div.entry{position:relative}.my-process-designer .djs-palette.open .djs-palette-entries div.entry:hover:after{z-index:100;box-sizing:border-box;font-variant:normal;text-transform:none;-webkit-text-decoration:inherit;text-decoration:inherit;vertical-align:text-bottom;content:attr(title);background:#fafafa;border:1px solid #ccc;border-radius:4px;width:-webkit-max-content;width:-moz-max-content;width:max-content;padding:0 16px;font-size:.5em;display:inline-block;position:absolute;top:0;bottom:0;right:-10px;overflow:hidden;transform:translate(100%);box-shadow:0 0 6px #eee}.my-process-designer .my-process-designer__header{width:100%;min-height:36px}.my-process-designer .my-process-designer__header .el-button{text-align:center}.my-process-designer .my-process-designer__header .el-button-group{margin:4px}.my-process-designer .my-process-designer__header .el-tooltip__popper .el-button{text-align:left;width:100%;padding-left:8px;padding-right:8px}.my-process-designer .my-process-designer__header .el-tooltip__popper .el-button:hover{color:#fff;background:rgba(64,158,255,.8)}.my-process-designer .my-process-designer__header .align{position:relative}.my-process-designer .my-process-designer__header .align i:after{content:"|";position:absolute;transform:rotate(90deg)translate(200%,60%)}.my-process-designer .my-process-designer__header .align.align-left i{transform:rotate(90deg)}.my-process-designer .my-process-designer__header .align.align-right i{transform:rotate(-90deg)}.my-process-designer .my-process-designer__header .align.align-top i{transform:rotate(180deg)}.my-process-designer .my-process-designer__header .align.align-bottom i{transform:rotate(0)}.my-process-designer .my-process-designer__header .align.align-center i{transform:rotate(90deg)}.my-process-designer .my-process-designer__header .align.align-center i:after{transform:rotate(90deg)translateY(60%)}.my-process-designer .my-process-designer__header .align.align-middle i{transform:rotate(0)}.my-process-designer .my-process-designer__header .align.align-middle i:after{transform:rotate(90deg)translateY(60%)}.my-process-designer .my-process-designer__container{flex:1;width:100%;display:inline-flex}.my-process-designer .my-process-designer__container .my-process-designer__canvas{flex:1;height:100%;position:relative}.my-process-designer .my-process-designer__container .my-process-designer__canvas div.toggle-mode{display:none}.my-process-designer .my-process-designer__container .my-process-designer__property-panel{z-index:10;height:100%;overflow-x:scroll;overflow-y:auto}.my-process-designer .my-process-designer__container .my-process-designer__property-panel *{box-sizing:border-box}.flow-designer{background-color:#fff;width:100%;height:100%;display:flex}
|
|
1
|
+
.process-panel__container{box-sizing:border-box;border-left:1px solid #eee;max-height:100%;padding:0 8px;transition:width .25s ease-in;overflow-x:hidden;overflow-y:auto;box-shadow:0 0 8px #ccc}.process-panel__container.hide:hover{background-color:#e8f4ff}.process-panel__container.show{overflow-x:auto}.process-panel__container .open-properties-handel{color:#606266;text-align:center;cursor:pointer;font-size:20px}.process-panel__container .open-properties-handel:hover{color:#1682e6}.process-panel__container .element-property{align-items:flex-start;width:100%;margin:8px 0;display:flex}.process-panel__container .element-property .element-property__label{box-sizing:border-box;text-align:right;width:90px;padding-right:12px;font-size:14px;line-height:32px;display:block;overflow:hidden}.process-panel__container .element-property .element-property__value{flex:1;line-height:32px}.process-panel__container .element-property .el-form-item{width:100%;margin-bottom:0;padding-bottom:18px}.process-panel__container .list-property{flex-direction:column}.process-panel__container .list-property .element-listener-item{grid-column-gap:8px;grid-template-columns:16px auto 32px 32px;width:100%;display:inline-grid}.process-panel__container .list-property .element-listener-item+.element-listener-item{margin-top:8px}.process-panel__container .el-collapse-item__content{padding-bottom:0}.process-panel__container .el-input.is-disabled .el-input__inner{color:#999}.process-panel__container .el-form-item.el-form-item--mini{margin-bottom:0}.process-panel__container .el-form-item.el-form-item--mini+.el-form-item{margin-top:16px}.panel-tab__title{padding:0 8px;font-size:1.1em;font-weight:600;line-height:1.2em}.panel-tab__title i{margin-right:8px;font-size:1.2em}.panel-tab__content{box-sizing:border-box;border-top:1px solid #eee;width:100%;padding:8px 16px}.panel-tab__content .panel-tab__content--title{justify-content:space-between;padding-bottom:8px;display:flex}.panel-tab__content .panel-tab__content--title span{text-align:left;flex:1}.listener-filed__title{justify-content:space-between;align-items:center;width:100%;margin-top:0;display:inline-flex}.listener-filed__title span{text-align:left;width:200px;font-size:14px}.listener-filed__title i{margin-right:8px}.element-drawer__button{justify-content:space-around;width:100%;margin-top:8px;display:inline-flex}.element-drawer__button>.el-button{width:100%}.flow-drawer .el-drawer__body{padding:10px}.my-process-designer{box-sizing:border-box;flex-direction:column;flex:1;width:100%;height:100%;display:flex}.my-process-designer .bts-toggle-mode{display:none}.my-process-designer .djs-palette.open .djs-palette-entries div[class^=bpmn-icon-]:before,.my-process-designer .djs-palette.open .djs-palette-entries div[class*=bpmn-icon-]:before{line-height:unset}.my-process-designer .djs-palette.open .djs-palette-entries div.entry{position:relative}.my-process-designer .djs-palette.open .djs-palette-entries div.entry:hover:after{z-index:100;box-sizing:border-box;font-variant:normal;text-transform:none;-webkit-text-decoration:inherit;text-decoration:inherit;vertical-align:text-bottom;content:attr(title);background:#fafafa;border:1px solid #ccc;border-radius:4px;width:-webkit-max-content;width:-moz-max-content;width:max-content;padding:0 16px;font-size:.5em;display:inline-block;position:absolute;top:0;bottom:0;right:-10px;overflow:hidden;transform:translate(100%);box-shadow:0 0 6px #eee}.my-process-designer .my-process-designer__header{width:100%;min-height:36px}.my-process-designer .my-process-designer__header .el-button{text-align:center}.my-process-designer .my-process-designer__header .el-button-group{margin:4px}.my-process-designer .my-process-designer__header .el-tooltip__popper .el-button{text-align:left;width:100%;padding-left:8px;padding-right:8px}.my-process-designer .my-process-designer__header .el-tooltip__popper .el-button:hover{color:#fff;background:rgba(64,158,255,.8)}.my-process-designer .my-process-designer__header .align{position:relative}.my-process-designer .my-process-designer__header .align i:after{content:"|";position:absolute;transform:rotate(90deg)translate(200%,60%)}.my-process-designer .my-process-designer__header .align.align-left i{transform:rotate(90deg)}.my-process-designer .my-process-designer__header .align.align-right i{transform:rotate(-90deg)}.my-process-designer .my-process-designer__header .align.align-top i{transform:rotate(180deg)}.my-process-designer .my-process-designer__header .align.align-bottom i{transform:rotate(0)}.my-process-designer .my-process-designer__header .align.align-center i{transform:rotate(90deg)}.my-process-designer .my-process-designer__header .align.align-center i:after{transform:rotate(90deg)translateY(60%)}.my-process-designer .my-process-designer__header .align.align-middle i{transform:rotate(0)}.my-process-designer .my-process-designer__header .align.align-middle i:after{transform:rotate(90deg)translateY(60%)}.my-process-designer .my-process-designer__container{flex:1;width:100%;display:inline-flex}.my-process-designer .my-process-designer__container .my-process-designer__canvas{flex:1;height:100%;position:relative}.my-process-designer .my-process-designer__container .my-process-designer__canvas div.toggle-mode{display:none}.my-process-designer .my-process-designer__container .my-process-designer__property-panel{z-index:10;height:100%;overflow-x:scroll;overflow-y:auto}.my-process-designer .my-process-designer__container .my-process-designer__property-panel *{box-sizing:border-box}.flow-designer{background-color:#fff;width:100%;height:100%;display:flex}
|
package/flow-node/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as n } from "../chunks/util.
|
|
2
|
-
import { n as r } from "../chunks/vueComponentNormalizer.
|
|
1
|
+
import { s as n } from "../chunks/util.C2Bhx22L.mjs";
|
|
2
|
+
import { n as r } from "../chunks/vueComponentNormalizer.JwmUNtgn.mjs";
|
|
3
3
|
var l = function() {
|
|
4
4
|
var e = this, o = e.$createElement, t = e._self._c || o;
|
|
5
5
|
return t("div", {
|
package/flow-viewer/index.mjs
CHANGED
|
@@ -30,9 +30,9 @@ import $ from "bpmn-js/lib/NavigatedViewer";
|
|
|
30
30
|
import d from "diagram-js/lib/navigation/zoomscroll/ZoomScroll";
|
|
31
31
|
import { create as c, attr as p, append as m } from "tiny-svg";
|
|
32
32
|
import { query as A } from "min-dom";
|
|
33
|
-
import
|
|
33
|
+
import S from "@web-utils/component/easy-popup";
|
|
34
34
|
import "@web-utils/component/easy-popup/style.css";
|
|
35
|
-
import { n as
|
|
35
|
+
import { n as F } from "../chunks/vueComponentNormalizer.JwmUNtgn.mjs";
|
|
36
36
|
var B = function() {
|
|
37
37
|
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
38
38
|
return t("div", {
|
|
@@ -63,7 +63,7 @@ const f = d.prototype._handleWheel, P = {
|
|
|
63
63
|
}, W = {
|
|
64
64
|
name: "FlowViewer",
|
|
65
65
|
components: {
|
|
66
|
-
EasyPopup:
|
|
66
|
+
EasyPopup: S
|
|
67
67
|
},
|
|
68
68
|
props: {
|
|
69
69
|
xml: {
|
|
@@ -187,7 +187,7 @@ const f = d.prototype._handleWheel, P = {
|
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
189
|
}, _ = {};
|
|
190
|
-
var X = /* @__PURE__ */
|
|
190
|
+
var X = /* @__PURE__ */ F(
|
|
191
191
|
W,
|
|
192
192
|
B,
|
|
193
193
|
C,
|
package/flow-viewer/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.flow-viewer{width:100%;height:400px}.flow-viewer .highlight g.djs-visual rect,.flow-viewer .highlight g.djs-visual circle,.flow-viewer .highlight g.djs-visual polygon,.flow-viewer .highlight g.djs-visual path{stroke:var(--highlight-color)!important}.flow-viewer .highlight g.djs-visual polygon+path{fill:var(--highlight-color)!important}@keyframes dashoffset{to{stroke-dashoffset:100%}}.flow-viewer .highlight-current g.djs-visual rect{stroke-dasharray:8;animation:40s linear infinite forwards dashoffset;fill:#fbe9d1!important;stroke:#d67e7d!important}.flow-viewer .highlight-line g.djs-visual path{stroke:var(--highlight-color)!important;stroke-width:2px!important;marker-end:url(#sequenceflow-arrow-green)!important}
|
|
1
|
+
.flow-viewer{width:100%;height:400px}.flow-viewer .highlight g.djs-visual rect,.flow-viewer .highlight g.djs-visual circle,.flow-viewer .highlight g.djs-visual polygon,.flow-viewer .highlight g.djs-visual path{stroke:var(--highlight-color)!important}.flow-viewer .highlight g.djs-visual polygon+path{fill:var(--highlight-color)!important}@keyframes dashoffset{to{stroke-dashoffset:100%}}.flow-viewer .highlight-current g.djs-visual rect{stroke-dasharray:8;animation:40s linear infinite forwards dashoffset;fill:#fbe9d1!important;stroke:#d67e7d!important}.flow-viewer .highlight-line g.djs-visual path{stroke:var(--highlight-color)!important;stroke-width:2px!important;marker-end:url(#sequenceflow-arrow-green)!important}
|