@web-utils/component 2.30.1 → 2.40.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 +5 -3
- 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.FX8xmbVB.mjs → FormTemp.7f91629d.mjs} +4 -4
- package/chunks/{confirmable-mixin.rTUMhoRH.mjs → confirmable-mixin.817b542f.mjs} +16 -6
- package/chunks/{dataformat.X_61lMA7.mjs → dataformat.f995e2f9.mjs} +1 -1
- package/chunks/{dic.6tk91Dmq.mjs → dic.eaac0823.mjs} +8 -10
- package/chunks/{event.NHA7rYFE.mjs → event.b5d855dd.mjs} +3 -3
- package/chunks/{form-input-mixin.IKogWBfn.mjs → form-input-mixin.4632ad36.mjs} +2 -2
- package/chunks/{form-item-mixin.BilKDUlK.mjs → form-item-mixin.ad148e7b.mjs} +1 -1
- package/chunks/{init.Ac4dKUJB.mjs → init.47f219b4.mjs} +3 -3
- package/chunks/{util.C2Bhx22L.mjs → util.ae730cde.mjs} +24 -18
- package/code-mirror-editor/index.mjs +404 -175
- 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 +6 -10
- package/custom-scrollbar/index.mjs +5 -9
- 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 +13 -9
- 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 +12 -6
- 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 +23 -9
- package/flow/style.css +1 -1
- package/flow-designer/index.mjs +156 -63
- package/flow-designer/style.css +1 -1
- package/flow-node/index.mjs +2 -2
- package/flow-viewer/index.mjs +20 -11
- package/flow-viewer/style.css +1 -1
- package/form-block/index.mjs +23 -20
- package/form-block/style.css +1 -1
- package/form-button/index.mjs +1 -1
- package/form-cascader/index.mjs +7 -5
- package/form-checkbox-group/index.mjs +9 -7
- package/form-checkbox-group/style.css +1 -1
- package/form-date-picker/index.mjs +41 -12
- package/form-holder/index.mjs +6 -3
- package/form-input/index.mjs +6 -4
- package/form-input-email/index.mjs +12 -8
- package/form-input-id-card/index.mjs +12 -8
- package/form-input-number/index.mjs +10 -8
- package/form-input-number/style.css +1 -1
- package/form-input-phone-number/index.mjs +12 -8
- package/form-input-tag/index.mjs +3 -3
- package/form-input-time/index.mjs +6 -4
- package/form-item/index.mjs +43 -37
- package/form-item/style.css +1 -1
- package/form-item-config-provider/index.mjs +1 -1
- package/form-item-group/index.mjs +15 -12
- package/form-item-group/style.css +1 -1
- package/form-radio-group/index.mjs +40 -38
- package/form-radio-group/style.css +1 -1
- package/form-select/index.mjs +7 -5
- package/form-switch/index.mjs +6 -4
- package/form-textarea/index.mjs +6 -4
- package/form-view/index.mjs +32 -10
- 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 +117 -99
- 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 +3 -3
- package/fy-draggable/style.css +1 -1
- package/fy-dynamic/index.mjs +51 -43
- 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 +539 -421
- 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 +21 -15
- package/fy-input-map/style.css +1 -1
- package/fy-input-number/index.mjs +2 -2
- package/fy-input-table/index.mjs +13 -10
- 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 +6 -9
- package/fy-tree/style.css +1 -1
- package/fy-u-editor/index.mjs +34 -32
- package/fy-u-editor/style.css +1 -1
- package/fy-upload/index.mjs +27 -27
- 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 +6 -2
- package/keyboard/index.mjs +21 -20
- 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 +5 -5
- 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 +21 -26
- package/pageable-table/style.css +1 -1
- package/pageable-view/index.mjs +37 -42
- package/pageable-view/style.css +1 -1
- package/photo-swipe/index.mjs +4 -2
- package/present-view/index.mjs +31 -9
- 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 +7 -7
- 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 +8 -8
- package/sign-panel/style.css +1 -1
- package/skeleton/index.mjs +10 -10
- package/skeleton/style.css +1 -1
- package/split-pane/index.mjs +19 -22
- 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 +10 -6
- package/table-view/index.mjs +28 -8
- 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 +9 -12
- package/text-ellipsis/style.css +1 -1
- package/tinymce-editor/index.mjs +77 -77
- 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 +25 -22
- package/vue-tree-select/style.css +1 -1
- package/vue-video-player/index.mjs +32 -29
- package/vue-video-player/style.css +1 -1
- package/watermark/index.mjs +11 -11
- package/watermark/style.css +1 -1
- package/web-types.json +31 -31
- package/x-input-tag/index.mjs +13 -13
- package/x-input-tag/style.css +1 -1
- /package/chunks/{form-pick-mixin.y-qhZJi6.mjs → form-pick-mixin.61ad06b2.mjs} +0 -0
- /package/chunks/{index.LGsb2aDq.mjs → index.57f871af.mjs} +0 -0
- /package/chunks/{input-number-mixin.GE2zr_3s.mjs → input-number-mixin.41a066be.mjs} +0 -0
- /package/chunks/{json-beautifier.fUZFSW5j.mjs → json-beautifier.21cfffea.mjs} +0 -0
- /package/chunks/{packages.v6r2Hr7E.mjs → packages.1fc9ccba.mjs} +0 -0
- /package/chunks/{permission.E9kZbW48.mjs → permission.ce5d2121.mjs} +0 -0
- /package/chunks/{slot.j1uMmBnG.mjs → slot.4b391395.mjs} +0 -0
- /package/chunks/{tab-mixin.tM9jcRT8.mjs → tab-mixin.e2b9c6a4.mjs} +0 -0
- /package/chunks/{vueComponentNormalizer.JwmUNtgn.mjs → vueComponentNormalizer.446f5dc4.mjs} +0 -0
package/flex-item/index.mjs
CHANGED
|
@@ -10,8 +10,8 @@ var r = (t, e, l) => e in t ? u(t, e, { enumerable: !0, configurable: !0, writab
|
|
|
10
10
|
x.call(e, l) && r(t, l, e[l]);
|
|
11
11
|
return t;
|
|
12
12
|
}, f = (t, e) => c(t, v(e));
|
|
13
|
-
import { g as m } from "../chunks/index.
|
|
14
|
-
import { n as d } from "../chunks/vueComponentNormalizer.
|
|
13
|
+
import { g as m } from "../chunks/index.57f871af.mjs";
|
|
14
|
+
import { n as d } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
15
15
|
const h = {
|
|
16
16
|
name: "FlexItem",
|
|
17
17
|
functional: !0,
|
|
@@ -51,10 +51,16 @@ const h = {
|
|
|
51
51
|
},
|
|
52
52
|
render(t, { children: e, data: l, props: n }) {
|
|
53
53
|
const o = m(l.class, n.relative ? "flex-item-relative" : "flex-item");
|
|
54
|
-
return n.absolute && !n.relative && o.push("flex-item-relative"), n.center || n.horizonCenter && n.verticalCenter ? (o.push("horizon-center"), o.push("vertical-center")) : (n.horizonCenter && o.push("horizon-center"), n.verticalCenter && o.push("vertical-center")), n.textCenter && o.push("text-center"), n.flexColumn && o.push("flex-column"), n.flexRow && o.push("flex-row"), n.absolute ? t("div", f(a({}, l), { class: o }), [
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
54
|
+
return n.absolute && !n.relative && o.push("flex-item-relative"), n.center || n.horizonCenter && n.verticalCenter ? (o.push("horizon-center"), o.push("vertical-center")) : (n.horizonCenter && o.push("horizon-center"), n.verticalCenter && o.push("vertical-center")), n.textCenter && o.push("text-center"), n.flexColumn && o.push("flex-column"), n.flexRow && o.push("flex-row"), n.absolute ? t("div", f(a({}, l), { class: o }), [
|
|
55
|
+
t(
|
|
56
|
+
"div",
|
|
57
|
+
{
|
|
58
|
+
class: "absolute",
|
|
59
|
+
style: "overflow:auto"
|
|
60
|
+
},
|
|
61
|
+
e
|
|
62
|
+
)
|
|
63
|
+
]) : t("div", f(a({}, l), { class: o }), e);
|
|
58
64
|
}
|
|
59
65
|
};
|
|
60
66
|
let C, y;
|
package/flex-row/index.mjs
CHANGED
|
@@ -10,8 +10,8 @@ var s = (t, e, n) => e in t ? u(t, e, { enumerable: !0, configurable: !0, writab
|
|
|
10
10
|
h.call(e, n) && s(t, n, e[n]);
|
|
11
11
|
return t;
|
|
12
12
|
}, c = (t, e) => f(t, _(e));
|
|
13
|
-
import { g as C } from "../chunks/index.
|
|
14
|
-
import { n as d } from "../chunks/vueComponentNormalizer.
|
|
13
|
+
import { g as C } from "../chunks/index.57f871af.mjs";
|
|
14
|
+
import { n as d } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
15
15
|
const x = {
|
|
16
16
|
name: "FlexRow",
|
|
17
17
|
functional: !0,
|
package/flex-scroller/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as o } from "../chunks/vueComponentNormalizer.
|
|
1
|
+
import { n as o } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
2
2
|
var r = function() {
|
|
3
3
|
var e = this, l = e.$createElement, n = e._self._c || l;
|
|
4
4
|
return n("div", {
|
|
@@ -30,18 +30,18 @@ var a = /* @__PURE__ */ o(
|
|
|
30
30
|
r,
|
|
31
31
|
c,
|
|
32
32
|
!1,
|
|
33
|
-
|
|
33
|
+
_,
|
|
34
34
|
null,
|
|
35
35
|
null,
|
|
36
36
|
null
|
|
37
37
|
);
|
|
38
|
-
function
|
|
38
|
+
function _(e) {
|
|
39
39
|
for (let l in t)
|
|
40
40
|
this[l] = t[l];
|
|
41
41
|
}
|
|
42
|
-
const
|
|
42
|
+
const f = /* @__PURE__ */ function() {
|
|
43
43
|
return a.exports;
|
|
44
44
|
}();
|
|
45
45
|
export {
|
|
46
|
-
|
|
46
|
+
f as default
|
|
47
47
|
};
|
package/flex-scroller/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.flex-scroller-wrapper{flex:auto;position:relative}.flex-scroller-wrapper .flex-scroller{position:absolute;top:0;bottom:0;left:0;right:0}.flex-scroller-wrapper .flex-scroller.content-scroll{overflow:auto}
|
|
1
|
+
.flex-scroller-wrapper{flex:auto;position:relative}.flex-scroller-wrapper .flex-scroller{position:absolute;top:0;bottom:0;left:0;right:0}.flex-scroller-wrapper .flex-scroller.content-scroll{overflow:auto}
|
package/flow/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as l, r as c } from "../chunks/util.
|
|
2
|
-
import { n as u } from "../chunks/vueComponentNormalizer.
|
|
1
|
+
import { s as l, r as c } from "../chunks/util.ae730cde.mjs";
|
|
2
|
+
import { n as u } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
3
3
|
var h = function() {
|
|
4
4
|
var t = this, e = t.$createElement, n = t._self._c || e;
|
|
5
5
|
return n("div", {
|
|
@@ -68,7 +68,20 @@ const f = {
|
|
|
68
68
|
// 默认设置参数
|
|
69
69
|
jsplumbSetting: {
|
|
70
70
|
// 动态锚点、位置自适应
|
|
71
|
-
Anchors: [
|
|
71
|
+
Anchors: [
|
|
72
|
+
"Top",
|
|
73
|
+
"TopCenter",
|
|
74
|
+
"TopRight",
|
|
75
|
+
"TopLeft",
|
|
76
|
+
"Right",
|
|
77
|
+
"RightMiddle",
|
|
78
|
+
"Bottom",
|
|
79
|
+
"BottomCenter",
|
|
80
|
+
"BottomRight",
|
|
81
|
+
"BottomLeft",
|
|
82
|
+
"Left",
|
|
83
|
+
"LeftMiddle"
|
|
84
|
+
],
|
|
72
85
|
Container: "",
|
|
73
86
|
// 连线的样式 StateMachine、Flowchart
|
|
74
87
|
Connector: "Flowchart",
|
|
@@ -98,14 +111,12 @@ const f = {
|
|
|
98
111
|
},
|
|
99
112
|
jsplumbSourceOptions: {
|
|
100
113
|
filter: ".avue-flow__node-drag",
|
|
101
|
-
/* "span"表示标签,".className"表示类,"#id"表示元素id */
|
|
102
114
|
filterExclude: !1,
|
|
103
115
|
anchor: "Continuous",
|
|
104
116
|
allowLoopback: !1
|
|
105
117
|
},
|
|
106
118
|
jsplumbTargetOptions: {
|
|
107
119
|
filter: ".avue-flow__node-drag",
|
|
108
|
-
/* "span"表示标签,".className"表示类,"#id"表示元素id */
|
|
109
120
|
filterExclude: !1,
|
|
110
121
|
anchor: "Continuous",
|
|
111
122
|
allowLoopback: !1
|
|
@@ -210,10 +221,13 @@ const f = {
|
|
|
210
221
|
}
|
|
211
222
|
for (let t = 0; t < this.option.lineList.length; t++) {
|
|
212
223
|
const e = this.option.lineList[t];
|
|
213
|
-
this.jsPlumb.connect(
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
224
|
+
this.jsPlumb.connect(
|
|
225
|
+
{
|
|
226
|
+
source: e.from,
|
|
227
|
+
target: e.to
|
|
228
|
+
},
|
|
229
|
+
this.jsplumbConnectOptions
|
|
230
|
+
);
|
|
217
231
|
}
|
|
218
232
|
this.$nextTick(function() {
|
|
219
233
|
this.loadEasyFlowFinish = !0;
|
package/flow/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.avue-flow{position:relative}.avue-flow .avue-draggable{padding:0}.avue-flow__node{box-sizing:border-box;border:1px solid #eee;border-radius:5px;flex-direction:column;width:200px;height:80px;display:flex;position:relative;overflow:hidden;box-shadow:0 0 12px #66a6e0}.avue-flow__node--active{border-width:2px;border-color:#f56c6c}.avue-flow__node-drag{margin:0 5px;display:inline-block}.avue-flow__node-header{background-color:#66a6e0;flex:1}.avue-flow__node-body{text-align:center;background:#fff;flex:1.5;justify-content:center;align-items:center;display:flex}
|
|
1
|
+
.avue-flow{position:relative}.avue-flow .avue-draggable{padding:0}.avue-flow__node{box-sizing:border-box;border:1px solid #eee;border-radius:5px;flex-direction:column;width:200px;height:80px;display:flex;position:relative;overflow:hidden;box-shadow:0 0 12px #66a6e0}.avue-flow__node--active{border-width:2px;border-color:#f56c6c}.avue-flow__node-drag{margin:0 5px;display:inline-block}.avue-flow__node-header{background-color:#66a6e0;flex:1}.avue-flow__node-body{text-align:center;background:#fff;flex:1.5;justify-content:center;align-items:center;display:flex}
|
package/flow-designer/index.mjs
CHANGED
|
@@ -26,7 +26,7 @@ var d = (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 k } 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.446f5dc4.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";
|
|
@@ -163,7 +163,11 @@ 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": f(
|
|
166
|
+
"append.receive-task": f(
|
|
167
|
+
"bpmn:ReceiveTask",
|
|
168
|
+
"bpmn-icon-receive-task",
|
|
169
|
+
p("Append ReceiveTask")
|
|
170
|
+
),
|
|
167
171
|
"append.message-intermediate-event": f(
|
|
168
172
|
"bpmn:IntermediateCatchEvent",
|
|
169
173
|
"bpmn-icon-intermediate-event-catch-message",
|
|
@@ -189,9 +193,14 @@ J.prototype.getContextPadEntries = function(e) {
|
|
|
189
193
|
{ eventDefinitionType: "bpmn:SignalEventDefinition" }
|
|
190
194
|
)
|
|
191
195
|
}) : ne(c, "bpmn:BoundaryEvent", "bpmn:CompensateEventDefinition") ? y(l, {
|
|
192
|
-
"append.compensation-activity": f(
|
|
193
|
-
|
|
194
|
-
|
|
196
|
+
"append.compensation-activity": f(
|
|
197
|
+
"bpmn:Task",
|
|
198
|
+
"bpmn-icon-task",
|
|
199
|
+
p("Append compensation activity"),
|
|
200
|
+
{
|
|
201
|
+
isForCompensation: !0
|
|
202
|
+
}
|
|
203
|
+
)
|
|
195
204
|
}) : !R(c, "bpmn:EndEvent") && !c.isForCompensation && !ne(c, "bpmn:IntermediateThrowEvent", "bpmn:LinkEventDefinition") && !Ge(c) && y(l, {
|
|
196
205
|
"append.end-event": f("bpmn:EndEvent", "bpmn-icon-end-event-none", p("Append EndEvent")),
|
|
197
206
|
"append.gateway": f("bpmn:ExclusiveGateway", "bpmn-icon-gateway-none", p("Append Gateway")),
|
|
@@ -215,12 +224,19 @@ J.prototype.getContextPadEntries = function(e) {
|
|
|
215
224
|
}
|
|
216
225
|
}
|
|
217
226
|
}
|
|
218
|
-
}), N(c, [
|
|
227
|
+
}), N(c, [
|
|
228
|
+
"bpmn:FlowNode",
|
|
229
|
+
"bpmn:InteractionNode",
|
|
230
|
+
"bpmn:DataObjectReference",
|
|
231
|
+
"bpmn:DataStoreReference"
|
|
232
|
+
]) && y(l, {
|
|
219
233
|
"append.text-annotation": f("bpmn:TextAnnotation", "bpmn-icon-text-annotation"),
|
|
220
234
|
connect: {
|
|
221
235
|
group: "connect",
|
|
222
236
|
className: "bpmn-icon-connection-multi",
|
|
223
|
-
title: p(
|
|
237
|
+
title: p(
|
|
238
|
+
`Connect using ${c.isForCompensation ? "" : "Sequence/MessageFlow or "}Association`
|
|
239
|
+
),
|
|
224
240
|
action: {
|
|
225
241
|
click: E,
|
|
226
242
|
dragstart: E
|
|
@@ -264,7 +280,19 @@ const it = {
|
|
|
264
280
|
contextPadProvider: ["type", J]
|
|
265
281
|
};
|
|
266
282
|
function L(e, i, t, n, s, r, a, o, m) {
|
|
267
|
-
Se.call(
|
|
283
|
+
Se.call(
|
|
284
|
+
this,
|
|
285
|
+
e,
|
|
286
|
+
i,
|
|
287
|
+
t,
|
|
288
|
+
n,
|
|
289
|
+
s,
|
|
290
|
+
r,
|
|
291
|
+
a,
|
|
292
|
+
o,
|
|
293
|
+
m,
|
|
294
|
+
2e3
|
|
295
|
+
), this._create = i, this._elementFactory = t, this._spaceTool = n, this._lassoTool = s, this._handTool = r, this._globalConnect = a, this._moddle = o, this._translate = m;
|
|
268
296
|
}
|
|
269
297
|
const Z = function() {
|
|
270
298
|
};
|
|
@@ -350,11 +378,31 @@ Z.prototype.getPaletteEntries = function() {
|
|
|
350
378
|
}
|
|
351
379
|
},
|
|
352
380
|
"tool-separator": { group: "tools", separator: !0 },
|
|
353
|
-
"create.start-event": m(
|
|
354
|
-
|
|
381
|
+
"create.start-event": m(
|
|
382
|
+
"bpmn:StartEvent",
|
|
383
|
+
"event",
|
|
384
|
+
"bpmn-icon-start-event-none",
|
|
385
|
+
o("Create StartEvent")
|
|
386
|
+
),
|
|
387
|
+
"create.intermediate-event": m(
|
|
388
|
+
"bpmn:IntermediateThrowEvent",
|
|
389
|
+
"event",
|
|
390
|
+
"bpmn-icon-intermediate-event-none",
|
|
391
|
+
o("Create Intermediate/Boundary Event")
|
|
392
|
+
),
|
|
355
393
|
"create.user-task": m("bpmn:UserTask", "activity", "bpmn-icon-user-task", o("Create User Task")),
|
|
356
|
-
"create.exclusive-gateway": m(
|
|
357
|
-
|
|
394
|
+
"create.exclusive-gateway": m(
|
|
395
|
+
"bpmn:ExclusiveGateway",
|
|
396
|
+
"activity",
|
|
397
|
+
"bpmn-icon-gateway-none",
|
|
398
|
+
o("Create Gateway")
|
|
399
|
+
),
|
|
400
|
+
"create.end-event": m(
|
|
401
|
+
"bpmn:EndEvent",
|
|
402
|
+
"activity",
|
|
403
|
+
"bpmn-icon-end-event-none",
|
|
404
|
+
o("Create EndEvent")
|
|
405
|
+
),
|
|
358
406
|
// 'create.sql-task': createAction('user:MySql', 'activity', 'bpmn-icon-mysql', 'MySQL 节点'),
|
|
359
407
|
// 'create.data-object': createAction('bpmn:DataObjectReference', 'data-object', 'bpmn-icon-data-object', translate('Create DataObjectReference')),
|
|
360
408
|
// 'create.data-store': createAction('bpmn:DataStoreReference', 'data-store', 'bpmn-icon-data-store', translate('Create DataStoreReference')),
|
|
@@ -380,7 +428,17 @@ Z.prototype.getPaletteEntries = function() {
|
|
|
380
428
|
// 'create.group': createAction('bpmn:Group', 'artifact', 'bpmn-icon-group', translate('Create Group'))
|
|
381
429
|
}), e;
|
|
382
430
|
};
|
|
383
|
-
L.$inject = [
|
|
431
|
+
L.$inject = [
|
|
432
|
+
"palette",
|
|
433
|
+
"create",
|
|
434
|
+
"elementFactory",
|
|
435
|
+
"spaceTool",
|
|
436
|
+
"lassoTool",
|
|
437
|
+
"handTool",
|
|
438
|
+
"globalConnect",
|
|
439
|
+
"moddle",
|
|
440
|
+
"translate"
|
|
441
|
+
];
|
|
384
442
|
L.prototype = new Z();
|
|
385
443
|
L.prototype.constructor = L;
|
|
386
444
|
const st = {
|
|
@@ -442,7 +500,7 @@ Ie.prototype = K.prototype;
|
|
|
442
500
|
Ce.prototype = new Ie();
|
|
443
501
|
Ce.prototype.constructor = K;
|
|
444
502
|
const pt = 200, mt = 100;
|
|
445
|
-
function
|
|
503
|
+
function _e(e, i, t) {
|
|
446
504
|
e.on("autoPlace", mt, function(n) {
|
|
447
505
|
const s = n.shape, r = n.source;
|
|
448
506
|
return ct(r, s);
|
|
@@ -463,7 +521,7 @@ function ke(e, i, t) {
|
|
|
463
521
|
}), o;
|
|
464
522
|
};
|
|
465
523
|
}
|
|
466
|
-
|
|
524
|
+
_e.$inject = ["eventBus", "modeling", "canvas"];
|
|
467
525
|
function ct(e, i) {
|
|
468
526
|
const t = pt, n = Je(e);
|
|
469
527
|
return {
|
|
@@ -473,9 +531,9 @@ function ct(e, i) {
|
|
|
473
531
|
}
|
|
474
532
|
const ut = {
|
|
475
533
|
__init__: ["autoPlaceSelectionBehavior"],
|
|
476
|
-
autoPlace: ["type",
|
|
534
|
+
autoPlace: ["type", _e]
|
|
477
535
|
};
|
|
478
|
-
function
|
|
536
|
+
function ke(e, i, t, n) {
|
|
479
537
|
const s = /* @__PURE__ */ Object.create(null);
|
|
480
538
|
switch (s.event = i.event, t && (s.id = i.id), i.listenerType) {
|
|
481
539
|
case "scriptListener":
|
|
@@ -771,7 +829,7 @@ var Ct = function() {
|
|
|
771
829
|
}
|
|
772
830
|
})], 1)])]);
|
|
773
831
|
}, It = [];
|
|
774
|
-
const
|
|
832
|
+
const _t = {
|
|
775
833
|
name: "ElementOtherConfig",
|
|
776
834
|
props: {
|
|
777
835
|
id: String,
|
|
@@ -790,7 +848,9 @@ const kt = {
|
|
|
790
848
|
if (He(this.element))
|
|
791
849
|
this.documentation = "";
|
|
792
850
|
else {
|
|
793
|
-
const {
|
|
851
|
+
const {
|
|
852
|
+
businessObject: { documentation: e }
|
|
853
|
+
} = this.element;
|
|
794
854
|
this.documentation = (e == null ? void 0 : e[0].text) || "";
|
|
795
855
|
}
|
|
796
856
|
}
|
|
@@ -798,7 +858,9 @@ const kt = {
|
|
|
798
858
|
},
|
|
799
859
|
methods: {
|
|
800
860
|
updateDocumentation() {
|
|
801
|
-
const { modeling: e } = this.bpmnInstances, {
|
|
861
|
+
const { modeling: e } = this.bpmnInstances, {
|
|
862
|
+
businessObject: { documentation: i }
|
|
863
|
+
} = this.element;
|
|
802
864
|
if (i != null && i.length)
|
|
803
865
|
i[0].set("text", this.documentation), e.updateProperties(this.element, { documentation: i });
|
|
804
866
|
else {
|
|
@@ -808,8 +870,8 @@ const kt = {
|
|
|
808
870
|
}
|
|
809
871
|
}
|
|
810
872
|
}, se = {};
|
|
811
|
-
var
|
|
812
|
-
|
|
873
|
+
var kt = /* @__PURE__ */ h(
|
|
874
|
+
_t,
|
|
813
875
|
Ct,
|
|
814
876
|
It,
|
|
815
877
|
!1,
|
|
@@ -823,7 +885,7 @@ function At(e) {
|
|
|
823
885
|
this[i] = se[i];
|
|
824
886
|
}
|
|
825
887
|
const wt = /* @__PURE__ */ function() {
|
|
826
|
-
return
|
|
888
|
+
return kt.exports;
|
|
827
889
|
}();
|
|
828
890
|
var $t = function() {
|
|
829
891
|
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
@@ -1807,7 +1869,11 @@ const sn = {
|
|
|
1807
1869
|
e.loopCharacteristics.isSequential ? this.loopCharacteristics = "SequentialMultiInstance" : this.loopCharacteristics = "ParallelMultiInstance", this.loopInstanceForm = T(u(u({}, this.defaultLoopInstanceForm), e.loopCharacteristics), {
|
|
1808
1870
|
completionCondition: (n = (t = (i = e.loopCharacteristics) == null ? void 0 : i.completionCondition) == null ? void 0 : t.body) != null ? n : "",
|
|
1809
1871
|
loopCardinality: (a = (r = (s = e.loopCharacteristics) == null ? void 0 : s.loopCardinality) == null ? void 0 : r.body) != null ? a : ""
|
|
1810
|
-
}), this.multiLoopInstance = this.element.businessObject.loopCharacteristics, e.loopCharacteristics.extensionElements && e.loopCharacteristics.extensionElements.values && e.loopCharacteristics.extensionElements.values.length && this.$set(
|
|
1872
|
+
}), this.multiLoopInstance = this.element.businessObject.loopCharacteristics, e.loopCharacteristics.extensionElements && e.loopCharacteristics.extensionElements.values && e.loopCharacteristics.extensionElements.values.length && this.$set(
|
|
1873
|
+
this.loopInstanceForm,
|
|
1874
|
+
"timeCycle",
|
|
1875
|
+
e.loopCharacteristics.extensionElements.values[0].body
|
|
1876
|
+
);
|
|
1811
1877
|
},
|
|
1812
1878
|
changeLoopCharacteristicsType(e) {
|
|
1813
1879
|
if (e === "Null") {
|
|
@@ -3055,7 +3121,9 @@ const Sn = {
|
|
|
3055
3121
|
methods: {
|
|
3056
3122
|
resetListenersList() {
|
|
3057
3123
|
var e, i, t, n;
|
|
3058
|
-
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(
|
|
3124
|
+
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(
|
|
3125
|
+
(s) => s.$type === `${this.prefix}:ExecutionListener`
|
|
3126
|
+
)) != null ? n : [], this.elementListenersList = this.bpmnElementListeners.map((s) => we(s));
|
|
3059
3127
|
},
|
|
3060
3128
|
changeFiledType(e) {
|
|
3061
3129
|
e === "string" ? (delete this.listenerFieldForm.expression, this.$set(this.listenerFieldForm, "string", "")) : (delete this.listenerFieldForm.string, this.$set(this.listenerFieldForm, "expression", ""));
|
|
@@ -3092,7 +3160,11 @@ const Sn = {
|
|
|
3092
3160
|
removeListener(e, i) {
|
|
3093
3161
|
return d(this, null, function* () {
|
|
3094
3162
|
try {
|
|
3095
|
-
yield this.$confirm("确认移除该监听器吗?", "提示"), this.bpmnElementListeners.splice(i, 1), this.elementListenersList.splice(i, 1), U(
|
|
3163
|
+
yield this.$confirm("确认移除该监听器吗?", "提示"), this.bpmnElementListeners.splice(i, 1), this.elementListenersList.splice(i, 1), U(
|
|
3164
|
+
this.bpmnInstances,
|
|
3165
|
+
this.element,
|
|
3166
|
+
this.otherExtensionList.concat(this.bpmnElementListeners)
|
|
3167
|
+
);
|
|
3096
3168
|
} catch (t) {
|
|
3097
3169
|
}
|
|
3098
3170
|
});
|
|
@@ -3103,8 +3175,14 @@ const Sn = {
|
|
|
3103
3175
|
var t, n, s, r;
|
|
3104
3176
|
if (!(yield this.$refs.listenerFormRef.validate()))
|
|
3105
3177
|
return;
|
|
3106
|
-
const i =
|
|
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(
|
|
3178
|
+
const i = ke(this.bpmnInstances, this.listenerForm, !1, this.prefix);
|
|
3179
|
+
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(
|
|
3180
|
+
(a) => a.$type !== `${this.prefix}:ExecutionListener`
|
|
3181
|
+
)) != null ? r : [], U(
|
|
3182
|
+
this.bpmnInstances,
|
|
3183
|
+
this.element,
|
|
3184
|
+
this.otherExtensionList.concat(this.bpmnElementListeners)
|
|
3185
|
+
), this.listenerFormModelVisible = !1, this.listenerForm = {};
|
|
3108
3186
|
});
|
|
3109
3187
|
}
|
|
3110
3188
|
}
|
|
@@ -3126,7 +3204,7 @@ function Cn(e) {
|
|
|
3126
3204
|
const In = /* @__PURE__ */ function() {
|
|
3127
3205
|
return Tn.exports;
|
|
3128
3206
|
}();
|
|
3129
|
-
var
|
|
3207
|
+
var _n = function() {
|
|
3130
3208
|
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
3131
3209
|
return t("div", {
|
|
3132
3210
|
staticClass: "panel-tab__content"
|
|
@@ -3292,7 +3370,7 @@ var kn = function() {
|
|
|
3292
3370
|
expression: "propertyForm.value"
|
|
3293
3371
|
}
|
|
3294
3372
|
})], 1)], 1)], 1)], 1);
|
|
3295
|
-
},
|
|
3373
|
+
}, kn = [];
|
|
3296
3374
|
const An = {
|
|
3297
3375
|
name: "ElementProperties",
|
|
3298
3376
|
inject: {
|
|
@@ -3323,7 +3401,10 @@ const An = {
|
|
|
3323
3401
|
methods: {
|
|
3324
3402
|
resetAttributesList() {
|
|
3325
3403
|
var e, i, t, n, s;
|
|
3326
|
-
this.otherExtensionList = [], this.bpmnElementProperties = (n = (t = (i = (e = this.element.businessObject) == null ? void 0 : e.extensionElements) == null ? void 0 : i.values) == null ? void 0 : t.filter((r) => (r.$type !== `${this.prefix}:Properties` && this.otherExtensionList.push(r), r.$type === `${this.prefix}:Properties`))) != null ? n : [], this.bpmnElementPropertyList = this.bpmnElementProperties.reduce(
|
|
3404
|
+
this.otherExtensionList = [], this.bpmnElementProperties = (n = (t = (i = (e = this.element.businessObject) == null ? void 0 : e.extensionElements) == null ? void 0 : i.values) == null ? void 0 : t.filter((r) => (r.$type !== `${this.prefix}:Properties` && this.otherExtensionList.push(r), r.$type === `${this.prefix}:Properties`))) != null ? n : [], this.bpmnElementPropertyList = this.bpmnElementProperties.reduce(
|
|
3405
|
+
(r, a) => r.concat(a.values),
|
|
3406
|
+
[]
|
|
3407
|
+
), this.elementPropertyList = g((s = this.bpmnElementPropertyList) != null ? s : []);
|
|
3327
3408
|
},
|
|
3328
3409
|
openAttributesForm(e, i) {
|
|
3329
3410
|
this.editingPropertyIndex = i, this.propertyForm = i === -1 ? {} : g(e), this.propertyFormModelVisible = !0, this.$nextTick(() => {
|
|
@@ -3346,10 +3427,14 @@ const An = {
|
|
|
3346
3427
|
saveAttribute() {
|
|
3347
3428
|
const { name: e, value: i } = this.propertyForm;
|
|
3348
3429
|
if (this.editingPropertyIndex !== -1)
|
|
3349
|
-
this.bpmnInstances.modeling.updateModdleProperties(
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3430
|
+
this.bpmnInstances.modeling.updateModdleProperties(
|
|
3431
|
+
this.element,
|
|
3432
|
+
this.bpmnElementPropertyList[this.editingPropertyIndex],
|
|
3433
|
+
{
|
|
3434
|
+
name: e,
|
|
3435
|
+
value: i
|
|
3436
|
+
}
|
|
3437
|
+
);
|
|
3353
3438
|
else {
|
|
3354
3439
|
const t = this.bpmnInstances.moddle.create(`${this.prefix}:Property`, { name: e, value: i }), n = this.bpmnInstances.moddle.create(`${this.prefix}:Properties`, {
|
|
3355
3440
|
values: this.bpmnElementPropertyList.concat([t])
|
|
@@ -3370,8 +3455,8 @@ const An = {
|
|
|
3370
3455
|
}, de = {};
|
|
3371
3456
|
var wn = /* @__PURE__ */ h(
|
|
3372
3457
|
An,
|
|
3373
|
-
kn,
|
|
3374
3458
|
_n,
|
|
3459
|
+
kn,
|
|
3375
3460
|
!1,
|
|
3376
3461
|
$n,
|
|
3377
3462
|
null,
|
|
@@ -4701,7 +4786,7 @@ var Rn = function() {
|
|
|
4701
4786
|
return e.removeListenerField(s, r);
|
|
4702
4787
|
}
|
|
4703
4788
|
}
|
|
4704
|
-
}, [e._v("移除")])];
|
|
4789
|
+
}, [e._v(" 移除 ")])];
|
|
4705
4790
|
}
|
|
4706
4791
|
}])
|
|
4707
4792
|
})], 1), t("div", {
|
|
@@ -4907,7 +4992,9 @@ const zn = {
|
|
|
4907
4992
|
methods: {
|
|
4908
4993
|
resetListenersList() {
|
|
4909
4994
|
var e, i, t, n;
|
|
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(
|
|
4995
|
+
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(
|
|
4996
|
+
(s) => s.$type === `${this.prefix}:TaskListener`
|
|
4997
|
+
)) != null ? n : [], this.elementListenersList = this.bpmnElementListeners.map((s) => we(s));
|
|
4911
4998
|
},
|
|
4912
4999
|
openListenerForm(e, i) {
|
|
4913
5000
|
return d(this, null, function* () {
|
|
@@ -4921,7 +5008,11 @@ const zn = {
|
|
|
4921
5008
|
removeListener(e, i) {
|
|
4922
5009
|
return d(this, null, function* () {
|
|
4923
5010
|
try {
|
|
4924
|
-
yield this.$confirm("确认移除该监听器吗?", "提示"), this.bpmnElementListeners.splice(i, 1), this.elementListenersList.splice(i, 1), U(
|
|
5011
|
+
yield this.$confirm("确认移除该监听器吗?", "提示"), this.bpmnElementListeners.splice(i, 1), this.elementListenersList.splice(i, 1), U(
|
|
5012
|
+
this.bpmnInstances,
|
|
5013
|
+
this.element,
|
|
5014
|
+
this.otherExtensionList.concat(this.bpmnElementListeners)
|
|
5015
|
+
);
|
|
4925
5016
|
} catch (t) {
|
|
4926
5017
|
}
|
|
4927
5018
|
});
|
|
@@ -4932,8 +5023,14 @@ const zn = {
|
|
|
4932
5023
|
var t, n, s, r;
|
|
4933
5024
|
if (!(yield this.$refs.listenerFormRef.validate()))
|
|
4934
5025
|
return;
|
|
4935
|
-
const i =
|
|
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(
|
|
5026
|
+
const i = ke(this.bpmnInstances, this.listenerForm, !0, this.prefix);
|
|
5027
|
+
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(
|
|
5028
|
+
(a) => a.$type !== `${this.prefix}:TaskListener`
|
|
5029
|
+
)) != null ? r : [], U(
|
|
5030
|
+
this.bpmnInstances,
|
|
5031
|
+
this.element,
|
|
5032
|
+
this.otherExtensionList.concat(this.bpmnElementListeners)
|
|
5033
|
+
), this.listenerFormModelVisible = !1, this.listenerForm = {};
|
|
4937
5034
|
});
|
|
4938
5035
|
},
|
|
4939
5036
|
// 打开监听器字段编辑弹窗
|
|
@@ -9279,41 +9376,41 @@ function A(e) {
|
|
|
9279
9376
|
}
|
|
9280
9377
|
A.$inject = ["eventBus"];
|
|
9281
9378
|
A.prototype.canCopyProperty = function(e, i) {
|
|
9282
|
-
if (ze(e) && !xi(e, i) ||
|
|
9379
|
+
if (ze(e) && !xi(e, i) || _(e, "camunda:InputOutput") && !this.canHostInputOutput(i) || Me(e, ["camunda:Connector", "camunda:Field"]) && !this.canHostConnector(i) || _(e, "camunda:In") && !this.canHostIn(i))
|
|
9283
9380
|
return !1;
|
|
9284
9381
|
};
|
|
9285
9382
|
A.prototype.canHostInputOutput = function(e) {
|
|
9286
9383
|
if (x(e, "camunda:Connector"))
|
|
9287
9384
|
return !0;
|
|
9288
9385
|
const t = x(e, "bpmn:FlowNode");
|
|
9289
|
-
return !(!t || Me(t, ["bpmn:StartEvent", "bpmn:Gateway", "bpmn:BoundaryEvent"]) ||
|
|
9386
|
+
return !(!t || Me(t, ["bpmn:StartEvent", "bpmn:Gateway", "bpmn:BoundaryEvent"]) || _(t, "bpmn:SubProcess") && t.get("triggeredByEvent"));
|
|
9290
9387
|
};
|
|
9291
9388
|
A.prototype.canHostConnector = function(e) {
|
|
9292
9389
|
const i = x(e, "camunda:ServiceTaskLike");
|
|
9293
|
-
return
|
|
9390
|
+
return _(i, "bpmn:MessageEventDefinition") ? x(e, "bpmn:IntermediateThrowEvent") || x(e, "bpmn:EndEvent") : !0;
|
|
9294
9391
|
};
|
|
9295
9392
|
A.prototype.canHostIn = function(e) {
|
|
9296
9393
|
return x(e, "bpmn:CallActivity") ? !0 : x(e, "bpmn:SignalEventDefinition") ? x(e, "bpmn:IntermediateThrowEvent") || x(e, "bpmn:EndEvent") : !0;
|
|
9297
9394
|
};
|
|
9298
|
-
function
|
|
9395
|
+
function _(e, i) {
|
|
9299
9396
|
return e && Ue(e.$instanceOf) && e.$instanceOf(i);
|
|
9300
9397
|
}
|
|
9301
9398
|
function Me(e, i) {
|
|
9302
|
-
return
|
|
9303
|
-
return
|
|
9399
|
+
return k(i, function(t) {
|
|
9400
|
+
return _(e, t);
|
|
9304
9401
|
});
|
|
9305
9402
|
}
|
|
9306
9403
|
function x(e, i) {
|
|
9307
9404
|
if (!i)
|
|
9308
9405
|
return e.$parent;
|
|
9309
|
-
if (
|
|
9406
|
+
if (_(e, i))
|
|
9310
9407
|
return e;
|
|
9311
9408
|
if (e.$parent)
|
|
9312
9409
|
return x(e.$parent, i);
|
|
9313
9410
|
}
|
|
9314
9411
|
function xi(e, i) {
|
|
9315
9412
|
const t = e.$type && e.$model.getTypeDescriptor(e.$type), n = t && t.meta && t.meta.allowedIn;
|
|
9316
|
-
return !n || Si(n) ? !0 :
|
|
9413
|
+
return !n || Si(n) ? !0 : k(n, function(s) {
|
|
9317
9414
|
return x(i, s);
|
|
9318
9415
|
});
|
|
9319
9416
|
}
|
|
@@ -9335,18 +9432,18 @@ function Ii(e) {
|
|
|
9335
9432
|
return e && e.length;
|
|
9336
9433
|
}
|
|
9337
9434
|
function V(e, i) {
|
|
9338
|
-
return Ii(e) &&
|
|
9435
|
+
return Ii(e) && k(e, function(t) {
|
|
9339
9436
|
return H(t, i);
|
|
9340
9437
|
});
|
|
9341
9438
|
}
|
|
9342
|
-
function
|
|
9343
|
-
return
|
|
9439
|
+
function _i(e, i) {
|
|
9440
|
+
return k(i, function(t) {
|
|
9344
9441
|
return H(e, t);
|
|
9345
9442
|
});
|
|
9346
9443
|
}
|
|
9347
9444
|
function G(e, i, t) {
|
|
9348
9445
|
const n = i.name, s = Ci[n.replace(/activiti:/, "")];
|
|
9349
|
-
return n === e &&
|
|
9446
|
+
return n === e && _i(t, s);
|
|
9350
9447
|
}
|
|
9351
9448
|
function W(e) {
|
|
9352
9449
|
e.on(
|
|
@@ -9365,7 +9462,7 @@ W.prototype.canCloneProperty = function(e, i) {
|
|
|
9365
9462
|
if (G("activiti:Connector", i, e) || G("activiti:Field", i, e))
|
|
9366
9463
|
return V(e.eventDefinitions, "bpmn:MessageEventDefinition");
|
|
9367
9464
|
};
|
|
9368
|
-
const
|
|
9465
|
+
const ki = {
|
|
9369
9466
|
__init__: ["ActivitiModdleExtension"],
|
|
9370
9467
|
ActivitiModdleExtension: ["type", W]
|
|
9371
9468
|
}, Ai = {
|
|
@@ -9380,12 +9477,12 @@ function wi(e) {
|
|
|
9380
9477
|
return e && e.length;
|
|
9381
9478
|
}
|
|
9382
9479
|
function z(e, i) {
|
|
9383
|
-
return wi(e) &&
|
|
9480
|
+
return wi(e) && k(e, function(t) {
|
|
9384
9481
|
return X(t, i);
|
|
9385
9482
|
});
|
|
9386
9483
|
}
|
|
9387
9484
|
function $i(e, i) {
|
|
9388
|
-
return
|
|
9485
|
+
return k(i, function(t) {
|
|
9389
9486
|
return X(e, t);
|
|
9390
9487
|
});
|
|
9391
9488
|
}
|
|
@@ -9851,7 +9948,7 @@ const Pi = {
|
|
|
9851
9948
|
const i = {
|
|
9852
9949
|
translate: ["value", Yn(this.translations || Qn)]
|
|
9853
9950
|
};
|
|
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(
|
|
9951
|
+
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(ki), e;
|
|
9855
9952
|
},
|
|
9856
9953
|
moddleExtensions() {
|
|
9857
9954
|
const e = {};
|
|
@@ -10148,11 +10245,7 @@ const zi = {
|
|
|
10148
10245
|
labelVisible: !1,
|
|
10149
10246
|
prefix: "flowable",
|
|
10150
10247
|
headerButtonSize: "mini",
|
|
10151
|
-
additionalModel: [
|
|
10152
|
-
it,
|
|
10153
|
-
st,
|
|
10154
|
-
ut
|
|
10155
|
-
]
|
|
10248
|
+
additionalModel: [it, st, ut]
|
|
10156
10249
|
}
|
|
10157
10250
|
};
|
|
10158
10251
|
},
|