@web-utils/form-ui 1.0.0-beta71 → 1.0.0-beta73
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 +1 -1
- package/affix/index.d.ts +0 -2
- package/affix/index.mjs +2 -3
- package/capsule-tab/index.mjs +1 -1
- package/card/index.mjs +15 -14
- package/chunks/-fXBgN9b2.mjs +37 -0
- package/chunks/{B3d4fdGH.mjs → -yfgKY3g.mjs} +1 -1
- package/chunks/{BeWNlclr.mjs → -zgWD713.mjs} +44 -40
- package/chunks/{5itVLmv82.mjs → 8A7LSgb4.mjs} +26 -25
- package/chunks/{DoOkwYtO.mjs → Apjns0ZM.mjs} +72 -67
- package/chunks/B0BOjeph2.mjs +108 -0
- package/chunks/BD6_5FSI.mjs +178 -0
- package/chunks/BE4V5Vf5.mjs +133 -0
- package/chunks/{DfJJr053.mjs → BGJjAw5E.mjs} +1 -1
- package/chunks/{DhQF2ZlD.mjs → BH7VEktl.mjs} +19 -17
- package/chunks/{CjmfMN1X2.mjs → BI6kCG2j2.mjs} +2 -2
- package/chunks/{6kdakei5.mjs → BYtFzO-8.mjs} +138 -133
- package/chunks/{CaRunrOV2.mjs → B_AUZSOW.mjs} +589 -760
- package/chunks/BctSGDgW2.mjs +29 -0
- package/chunks/{B5voIv4_.mjs → Bes1uXng.mjs} +28 -24
- package/chunks/BhIWiH5R.mjs +661 -0
- package/chunks/BhzlH7Az.mjs +90 -0
- package/chunks/{D6vTCC1Z2.mjs → BrelfRGo2.mjs} +14 -13
- package/chunks/{Z0BPDZlb.mjs → BsqIRxSS.mjs} +6 -5
- package/chunks/{TtxSplBB.mjs → C--HDCqy.mjs} +13 -10
- package/chunks/{DTUh8o0p2.mjs → C6mb7Nru2.mjs} +4 -4
- package/chunks/{CIybFvu92.mjs → CFoSvMJ-2.mjs} +1 -1
- package/chunks/{Ch_zaHx9.mjs → CO3taG7t2.mjs} +1 -1
- package/chunks/{DNSPORak.mjs → CZUhA3sf.mjs} +298 -4
- package/chunks/Ccxbv7uz2.mjs +34 -0
- package/chunks/Ce4tNNzg2.mjs +63 -0
- package/chunks/{B1GA44yT2.mjs → CelJ2L8A2.mjs} +2 -2
- package/chunks/CjYOitzM2.mjs +31 -0
- package/chunks/Cknuquqx.mjs +32 -0
- package/chunks/ClVh1Lek.mjs +130 -0
- package/chunks/CwyebsNL2.mjs +39 -0
- package/chunks/{9rQitPz7.mjs → D6DYxngS.mjs} +132 -127
- package/chunks/D6YM84Pf2.mjs +29 -0
- package/chunks/{BkEMJ725.mjs → DTq5QLoT.mjs} +43 -39
- package/chunks/{BvcK4D8A2.mjs → DVMfVn-M.mjs} +14 -10
- package/chunks/DVdQHb_v.mjs +50 -0
- package/chunks/{BaLjN8Ow.mjs → Daa7nl7U.mjs} +19 -15
- package/chunks/{D9qn1x3X2.mjs → Dh_BQpvC2.mjs} +2 -2
- package/chunks/DizOY5i8.mjs +69 -0
- package/chunks/{BQNqBw8h2.mjs → DjaV6_cg2.mjs} +2 -2
- package/chunks/{CbbjpJFg2.mjs → Dm3gQGoV2.mjs} +2 -2
- package/chunks/DqW9QtF3.mjs +68 -0
- package/chunks/{DbtlO6wD.mjs → DqWJCka8.mjs} +9 -7
- package/chunks/{BI-ZFlSw2.mjs → DrWUdRj32.mjs} +2 -2
- package/chunks/Dv7YRB2U2.mjs +25 -0
- package/chunks/DyLQsqWJ.mjs +61 -0
- package/chunks/HsHwYW1a.mjs +99 -0
- package/chunks/KDVLIvaS.mjs +30 -0
- package/chunks/{DxL9oojv2.mjs → Lkg7bYLD2.mjs} +73 -74
- package/chunks/{T_jwNKBr.mjs → Opn85Hlx2.mjs} +1 -1
- package/chunks/{BoId6V9J.mjs → YdNYH25C.mjs} +1 -1
- package/chunks/{BvbjlaN02.mjs → gTgPZrgY2.mjs} +119 -120
- package/chunks/{3gUkQF12.mjs → jsgk7Yse2.mjs} +2 -2
- package/chunks/nL59ZuIk.mjs +58 -0
- package/chunks/{CDqVJ7U3.mjs → neuEq1De.mjs} +70 -67
- package/chunks/{B8wGY5Hs2.mjs → sWVkgzQt2.mjs} +2 -2
- package/chunks/{Wl17p0C82.mjs → tjwOOiNr2.mjs} +31 -30
- package/code-mirror-editor/index.mjs +1 -1
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/context-menu/index.mjs +1 -1
- package/count-up/index.mjs +1 -1
- package/custom-scrollbar/index.mjs +1 -1
- package/data-box/index.mjs +9 -8
- package/data-card/index.mjs +8 -7
- package/data-card-text/index.mjs +8 -7
- package/data-display/index.mjs +9 -8
- package/data-icons/index.mjs +9 -8
- package/data-imgtext/index.mjs +9 -8
- package/data-operatext/index.mjs +8 -7
- package/data-panel/index.mjs +9 -8
- package/data-pay/index.mjs +10 -9
- package/data-price/index.mjs +8 -7
- package/data-progress/index.mjs +10 -9
- package/data-rotate/index.mjs +9 -8
- package/data-table-picker/index.mjs +11 -10
- package/data-tabs/index.mjs +9 -8
- package/dict-render/index.mjs +1 -1
- package/e-charts/index.mjs +2 -2
- package/easy-popup/index.mjs +1 -1
- package/editable-progress/index.mjs +8 -7
- package/editable-tree/index.mjs +595 -2
- package/element-dialog/index.mjs +1 -1
- package/element-resize-observer/index.mjs +1 -1
- package/flex-box/index.mjs +1 -1
- package/flex-column/index.mjs +1 -1
- package/flex-item/index.mjs +1 -1
- package/flex-row/index.mjs +1 -1
- package/flex-scroller/index.mjs +1 -1
- package/flow-designer/index.mjs +1 -1
- package/flow-viewer/index.mjs +1 -1
- package/form-cascader/index.mjs +1 -1
- package/form-checkbox/index.mjs +1 -1
- package/form-checkbox-group/index.mjs +1 -1
- package/form-date-picker/index.mjs +1 -1
- package/form-holder/index.mjs +1 -1
- package/form-image/index.mjs +1 -1
- package/form-input/index.mjs +1 -1
- package/form-input-cron-expression/index.mjs +1 -1
- package/form-input-email/index.mjs +1 -1
- package/form-input-id-card/index.mjs +1 -1
- package/form-input-number/index.mjs +1 -1
- package/form-input-phone-number/index.mjs +1 -1
- package/form-input-tag/index.mjs +1 -1
- package/form-input-time/index.mjs +1 -1
- package/form-item-group/index.mjs +1 -1
- package/form-item-x/index.mjs +1 -1
- package/form-radio-group/index.mjs +1 -1
- package/form-rate/index.mjs +1 -1
- package/form-row/index.mjs +1 -1
- package/form-select/index.mjs +1 -1
- package/form-slider/index.mjs +1 -1
- package/form-switch/index.mjs +1 -1
- package/form-table/index.mjs +1 -1
- package/form-table-plus/index.mjs +1 -1
- package/form-text/index.mjs +1 -1
- package/form-textarea/index.mjs +1 -1
- package/form-time-select/index.mjs +1 -1
- package/form-tree-select/index.mjs +1 -1
- package/form-tree-select-multiple/index.mjs +1 -1
- package/form-view/index.mjs +3 -3
- package/guide-steps/index.mjs +77 -2
- package/helper/dictionary.mjs +1 -1
- package/helper/input.mjs +1 -1
- package/highlight-j-s/index.mjs +1 -1
- package/iframe-window/index.mjs +1 -1
- package/image-cropper/index.mjs +12 -11
- package/image-preview/index.d.ts +1 -153
- package/image-preview/index.mjs +201 -2
- package/image-viewer/index.mjs +1 -1
- package/index.css +1 -1
- package/index.mjs +101 -101
- package/input-number-range/index.mjs +7 -6
- package/keyboard/index.mjs +1 -1
- package/loading-view/index.mjs +1 -1
- package/name-avatar/index.mjs +1 -1
- package/nav-bar/index.mjs +3 -2
- package/package.json +5 -1
- package/page-index/index.mjs +14 -13
- package/page-index-top/index.mjs +12 -10
- package/pageable-table/index.mjs +1 -1
- package/photo-swipe/index.mjs +1 -1
- package/props/col.mjs +1 -1
- package/props/form-item.mjs +1 -1
- package/sign-panel/index.mjs +1 -1
- package/skeleton-panel/index.mjs +3 -2
- package/split-pane/index.mjs +1 -1
- package/sub-table/index.mjs +1 -1
- package/sub-table-plus/index.mjs +1 -1
- package/swiper/index.mjs +2 -2
- package/table-column/index.mjs +1 -1
- package/table-column-def/index.mjs +1 -1
- package/table-view/index.mjs +108 -106
- package/tag-render/index.mjs +21 -20
- package/text-ellipsis/index.d.ts +1 -1
- package/text-ellipsis/index.mjs +1 -1
- package/toolbar/index.mjs +1 -1
- package/toolbar-button/index.mjs +1 -1
- package/vue-cron/index.mjs +1 -1
- package/vue-tags-input/index.mjs +1 -1
- package/vue-tree-select/index.mjs +1 -1
- package/vue-video-player/index.d.ts +1 -1
- package/vue-video-player/index.mjs +1 -1
- package/watermark/index.mjs +1 -1
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +47 -46
- package/year-calendar/index.mjs +1 -1
- package/chunks/49634Q2N2.mjs +0 -936
- package/chunks/77cFhiAz.mjs +0 -13
- package/chunks/7JVbVOff2.mjs +0 -46
- package/chunks/B1ATN2my.mjs +0 -26
- package/chunks/B7O8aGqC2.mjs +0 -58
- package/chunks/BBPczt0U.mjs +0 -4
- package/chunks/BBqq6o072.mjs +0 -243
- package/chunks/BCVhSMZN.mjs +0 -1328
- package/chunks/BDVLN2ly.mjs +0 -105
- package/chunks/BEysX5TF2.mjs +0 -1038
- package/chunks/BIj6pa8Z.mjs +0 -15
- package/chunks/BJby9uHB2.mjs +0 -233
- package/chunks/BUAQybGW.mjs +0 -230
- package/chunks/BVIHqL6g.mjs +0 -17
- package/chunks/BVSQ6DfJ.mjs +0 -17
- package/chunks/B__5L22p2.mjs +0 -346
- package/chunks/Baam4z-g.mjs +0 -275
- package/chunks/Bdeug17L.mjs +0 -42
- package/chunks/BecO0t0_2.mjs +0 -2430
- package/chunks/BffxPn8a.mjs +0 -34
- package/chunks/Bgw_3soo.mjs +0 -35
- package/chunks/BjCfQFUL.mjs +0 -54
- package/chunks/BjWs-r2V.mjs +0 -25
- package/chunks/BlB1fEo92.mjs +0 -8
- package/chunks/BrYtAPbN2.mjs +0 -161
- package/chunks/BsKwchVA.mjs +0 -14
- package/chunks/BsM0L7CS.mjs +0 -132
- package/chunks/C5f3Xfsc2.mjs +0 -36
- package/chunks/C7l9aZGE.mjs +0 -577
- package/chunks/CFvkR9Ze2.mjs +0 -31
- package/chunks/CGM03LI5.mjs +0 -588
- package/chunks/CPejK_GQ2.mjs +0 -383
- package/chunks/CQSTyCVP.mjs +0 -6
- package/chunks/CQxz8uUc.mjs +0 -454
- package/chunks/CR29QUwT2.mjs +0 -28
- package/chunks/CWvo-ucD.mjs +0 -446
- package/chunks/C_eGir-J.mjs +0 -17
- package/chunks/Calzy0Az.mjs +0 -1275
- package/chunks/CbgD7y-5.mjs +0 -5
- package/chunks/CbsGuLZz2.mjs +0 -105
- package/chunks/CcT5SsZk.mjs +0 -48
- package/chunks/CdBytH8S.mjs +0 -266
- package/chunks/CiFlMt6Z.mjs +0 -41
- package/chunks/Cjkq49252.mjs +0 -60
- package/chunks/CnCSm3LY2.mjs +0 -4
- package/chunks/CsLrkldT2.mjs +0 -225
- package/chunks/Csiz_xCa2.mjs +0 -273
- package/chunks/Ctd3_wOH2.mjs +0 -6
- package/chunks/Cu2A_1vk2.mjs +0 -106
- package/chunks/CuoF9V8s.mjs +0 -3091
- package/chunks/CwBq1JZV.mjs +0 -250
- package/chunks/CwWfRmD3.mjs +0 -57
- package/chunks/CwqeV7002.mjs +0 -67
- package/chunks/Cy8jqgun2.mjs +0 -41
- package/chunks/D-hj62se2.mjs +0 -525
- package/chunks/D3Xixh5v.mjs +0 -5
- package/chunks/D4oNQiIK.mjs +0 -461
- package/chunks/D8r81QxD.mjs +0 -732
- package/chunks/DL0o_C092.mjs +0 -1093
- package/chunks/DLgn1tQG2.mjs +0 -60
- package/chunks/DStwh2ne.mjs +0 -281
- package/chunks/DXiLi19u2.mjs +0 -33
- package/chunks/DZ0frL1U.mjs +0 -69
- package/chunks/D_qwjNah.mjs +0 -1094
- package/chunks/Dg9Q-Tbi2.mjs +0 -299
- package/chunks/Dls3rTka2.mjs +0 -24
- package/chunks/DnBzQ-xh.mjs +0 -4
- package/chunks/DoNfjRR1.mjs +0 -68
- package/chunks/DrKq_frR.mjs +0 -98
- package/chunks/DsYXqJLZ.mjs +0 -641
- package/chunks/DsZznbt2.mjs +0 -208
- package/chunks/Dsd58O0g.mjs +0 -25
- package/chunks/Dtq1xYk8.mjs +0 -47
- package/chunks/EA6hte7s2.mjs +0 -49
- package/chunks/FeuisuNY2.mjs +0 -88
- package/chunks/GEtlriHC.mjs +0 -188
- package/chunks/GsvG1yFW.mjs +0 -1919
- package/chunks/KGmxNbpi.mjs +0 -21
- package/chunks/Q2Mal3Qn2.mjs +0 -439
- package/chunks/akEzJ4kG.mjs +0 -18
- package/chunks/cMuWbLPt.mjs +0 -196
- package/chunks/gh52LMTG.mjs +0 -12
- package/chunks/hgAOQY9a.mjs +0 -406
- package/chunks/lGc5ksPb.mjs +0 -279
- package/chunks/mD3gmiOy2.mjs +0 -96
- package/chunks/nLBvkerV2.mjs +0 -621
- package/chunks/pZQfJv282.mjs +0 -4
- package/chunks/qrHhuZXg.mjs +0 -465
- package/chunks/uqKZ4RIo.mjs +0 -222
- /package/chunks/{B31ub5xS.mjs → BBvIPqcc.mjs} +0 -0
- /package/chunks/{e70aZf3z.mjs → BoCxKwBf.mjs} +0 -0
- /package/chunks/{h-Uhst9y.mjs → CE67pCwD.mjs} +0 -0
- /package/chunks/{BMTtnkb7.mjs → CQeEP_Tl.mjs} +0 -0
- /package/chunks/{BwYEpK-u.mjs → CaczibeD.mjs} +0 -0
- /package/chunks/{BPpMbPS8.mjs → DZCryyFG.mjs} +0 -0
- /package/chunks/{BVuwiZGi.mjs → Dq63V0CC.mjs} +0 -0
- /package/chunks/{C1RsHtGI.mjs → OEBJ-trG.mjs} +0 -0
- /package/chunks/{7Cv9Cq-02.mjs → fjtZc9Rq2.mjs} +0 -0
|
@@ -1,236 +1,65 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { t as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { t as
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import { t as me } from "./BkEMJ725.mjs";
|
|
25
|
-
import he from "../highlight-j-s/index.mjs";
|
|
26
|
-
import { computed as x, createBlock as S, createCommentVNode as C, createElementBlock as w, createElementVNode as T, createTextVNode as E, createVNode as D, defineComponent as ge, inject as _e, markRaw as O, mergeProps as ve, normalizeClass as k, normalizeStyle as ye, openBlock as A, provide as be, ref as j, renderSlot as M, resolveComponent as xe, resolveDynamicComponent as Se, toDisplayString as N, unref as P, vShow as F, watch as Ce, withCtx as I, withDirectives as we, withKeys as Te, withModifiers as Ee } from "vue";
|
|
27
|
-
import { isArray as De } from "@web-utils/core";
|
|
28
|
-
import Oe from "highlight.js/lib/core";
|
|
1
|
+
import { t as e } from "./CaczibeD.mjs";
|
|
2
|
+
import { t } from "./BD6_5FSI.mjs";
|
|
3
|
+
import { t as n } from "./BH7VEktl.mjs";
|
|
4
|
+
import { t as r } from "./Daa7nl7U.mjs";
|
|
5
|
+
import { t as i } from "./DqWJCka8.mjs";
|
|
6
|
+
import { t as a } from "./Bes1uXng.mjs";
|
|
7
|
+
import { t as o } from "./D6DYxngS.mjs";
|
|
8
|
+
import { t as s } from "./BYtFzO-8.mjs";
|
|
9
|
+
import { t as c } from "./-zgWD713.mjs";
|
|
10
|
+
import { t as l } from "./Apjns0ZM.mjs";
|
|
11
|
+
import { t as u } from "./DTq5QLoT.mjs";
|
|
12
|
+
import d from "../highlight-j-s/index.mjs";
|
|
13
|
+
import { ElButtonGroup as f, ElCollapse as p, ElCollapseItem as m, ElTabPane as ee, ElTabs as h, ElTooltip as g } from "element-plus/es";
|
|
14
|
+
import "element-plus/es/components/base/style/css";
|
|
15
|
+
import { createBlock as _, createCommentVNode as v, createElementBlock as te, createElementVNode as y, createTextVNode as b, createVNode as x, markRaw as S, mergeProps as C, normalizeClass as ne, normalizeStyle as re, openBlock as w, renderSlot as T, resolveComponent as ie, toDisplayString as ae, vShow as oe, withCtx as E, withDirectives as se, withModifiers as ce } from "vue";
|
|
16
|
+
import { isArray as D } from "@web-utils/core";
|
|
17
|
+
import "element-plus/es/components/tooltip/style/css";
|
|
18
|
+
import "element-plus/es/components/collapse/style/css";
|
|
19
|
+
import "element-plus/es/components/collapse-item/style/css";
|
|
20
|
+
import "element-plus/es/components/tabs/style/css";
|
|
21
|
+
import "element-plus/es/components/tab-pane/style/css";
|
|
22
|
+
import O from "highlight.js/lib/core";
|
|
23
|
+
import "element-plus/es/components/button-group/style/css";
|
|
29
24
|
import "bpmn-js/dist/assets/bpmn-js.css";
|
|
30
25
|
import "bpmn-js/dist/assets/diagram-js.css";
|
|
31
26
|
import "bpmn-js/dist/assets/bpmn-font/css/bpmn-embedded.css";
|
|
32
27
|
import "bpmn-js-token-simulation/assets/css/bpmn-js-token-simulation.css";
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import { assign as
|
|
40
|
-
import { is as
|
|
41
|
-
import { isEventSubProcess as
|
|
42
|
-
import { isAny as
|
|
43
|
-
import { getChildLanes as
|
|
44
|
-
import { hasPrimaryModifier as
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import { asTRBL as
|
|
48
|
-
//#region
|
|
49
|
-
var
|
|
50
|
-
accordion: Boolean,
|
|
51
|
-
modelValue: {
|
|
52
|
-
type: p([
|
|
53
|
-
Array,
|
|
54
|
-
String,
|
|
55
|
-
Number
|
|
56
|
-
]),
|
|
57
|
-
default: () => ee([])
|
|
58
|
-
},
|
|
59
|
-
expandIconPosition: {
|
|
60
|
-
type: p([String]),
|
|
61
|
-
default: "right"
|
|
62
|
-
},
|
|
63
|
-
beforeCollapse: { type: p(Function) }
|
|
64
|
-
}), Je = {
|
|
65
|
-
[e]: Ke,
|
|
66
|
-
[t]: Ke
|
|
67
|
-
}, Ye = Symbol("collapseContextKey"), Xe = l({
|
|
68
|
-
title: {
|
|
69
|
-
type: String,
|
|
70
|
-
default: ""
|
|
71
|
-
},
|
|
72
|
-
name: {
|
|
73
|
-
type: p([String, Number]),
|
|
74
|
-
default: void 0
|
|
75
|
-
},
|
|
76
|
-
icon: {
|
|
77
|
-
type: v,
|
|
78
|
-
default: m
|
|
79
|
-
},
|
|
80
|
-
disabled: Boolean
|
|
81
|
-
}), Ze = "ElCollapse", Qe = (i, a) => {
|
|
82
|
-
let o = j(y(i.modelValue)), s = (n) => {
|
|
83
|
-
o.value = n;
|
|
84
|
-
let r = i.accordion ? o.value[0] : o.value;
|
|
85
|
-
a(e, r), a(t, r);
|
|
86
|
-
}, l = (e) => {
|
|
87
|
-
if (i.accordion) s([o.value[0] === e ? "" : e]);
|
|
88
|
-
else {
|
|
89
|
-
let t = [...o.value], n = t.indexOf(e);
|
|
90
|
-
n > -1 ? t.splice(n, 1) : t.push(e), s(t);
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
|
-
return Ce(() => i.modelValue, () => o.value = y(i.modelValue), { deep: !0 }), be(Ye, {
|
|
94
|
-
activeNames: o,
|
|
95
|
-
handleItemClick: async (e) => {
|
|
96
|
-
let { beforeCollapse: t } = i;
|
|
97
|
-
if (!t) {
|
|
98
|
-
l(e);
|
|
99
|
-
return;
|
|
100
|
-
}
|
|
101
|
-
let a = t(e);
|
|
102
|
-
[c(a), u(a)].includes(!0) || n(Ze, "beforeCollapse must return type `Promise<boolean>` or `boolean`"), c(a) ? a.then((t) => {
|
|
103
|
-
t !== !1 && l(e);
|
|
104
|
-
}).catch((e) => {
|
|
105
|
-
r(Ze, `some error occurred: ${e}`);
|
|
106
|
-
}) : a && l(e);
|
|
107
|
-
}
|
|
108
|
-
}), {
|
|
109
|
-
activeNames: o,
|
|
110
|
-
setActiveNames: s
|
|
111
|
-
};
|
|
112
|
-
}, $e = (e) => {
|
|
113
|
-
let t = d("collapse");
|
|
114
|
-
return { rootKls: x(() => [t.b(), t.b(`icon-position-${e.expandIconPosition}`)]) };
|
|
115
|
-
}, et = /* @__PURE__ */ ge({
|
|
116
|
-
name: "ElCollapse",
|
|
117
|
-
__name: "collapse",
|
|
118
|
-
props: qe,
|
|
119
|
-
emits: Je,
|
|
120
|
-
setup(e, { expose: t, emit: n }) {
|
|
121
|
-
let r = e, { activeNames: i, setActiveNames: a } = Qe(r, n), { rootKls: o } = $e(r);
|
|
122
|
-
return t({
|
|
123
|
-
activeNames: i,
|
|
124
|
-
setActiveNames: a
|
|
125
|
-
}), (e, t) => (A(), w("div", { class: k(P(o)) }, [M(e.$slots, "default")], 2));
|
|
126
|
-
}
|
|
127
|
-
}), tt = (e) => {
|
|
128
|
-
let t = _e(Ye), { namespace: n } = d("collapse"), r = j(!1), i = j(!1), a = _(), o = x(() => a.current++), s = x(() => e.name ?? `${n.value}-id-${a.prefix}-${P(o)}`);
|
|
129
|
-
return {
|
|
130
|
-
focusing: r,
|
|
131
|
-
id: o,
|
|
132
|
-
isActive: x(() => t == null ? void 0 : t.activeNames.value.includes(P(s))),
|
|
133
|
-
handleFocus: () => {
|
|
134
|
-
setTimeout(() => {
|
|
135
|
-
i.value ? i.value = !1 : r.value = !0;
|
|
136
|
-
}, 50);
|
|
137
|
-
},
|
|
138
|
-
handleHeaderClick: (n) => {
|
|
139
|
-
var a;
|
|
140
|
-
e.disabled || (a = n.target) != null && a.closest("input, textarea, select") || (t == null || t.handleItemClick(P(s)), r.value = !1, i.value = !0);
|
|
141
|
-
},
|
|
142
|
-
handleEnterClick: (e) => {
|
|
143
|
-
var n;
|
|
144
|
-
(n = e.target) != null && n.closest("input, textarea, select") || (e.preventDefault(), t == null || t.handleItemClick(P(s)));
|
|
145
|
-
}
|
|
146
|
-
};
|
|
147
|
-
}, nt = (e, { focusing: t, isActive: n, id: r }) => {
|
|
148
|
-
let i = d("collapse"), a = x(() => [
|
|
149
|
-
i.b("item"),
|
|
150
|
-
i.is("active", P(n)),
|
|
151
|
-
i.is("disabled", e.disabled)
|
|
152
|
-
]), o = x(() => [
|
|
153
|
-
i.be("item", "header"),
|
|
154
|
-
i.is("active", P(n)),
|
|
155
|
-
{ focusing: P(t) && !e.disabled }
|
|
156
|
-
]), s = x(() => [i.be("item", "arrow"), i.is("active", P(n))]);
|
|
157
|
-
return {
|
|
158
|
-
itemTitleKls: x(() => [i.be("item", "title")]),
|
|
159
|
-
arrowKls: s,
|
|
160
|
-
headKls: o,
|
|
161
|
-
rootKls: a,
|
|
162
|
-
itemWrapperKls: x(() => i.be("item", "wrap")),
|
|
163
|
-
itemContentKls: x(() => i.be("item", "content")),
|
|
164
|
-
scopedContentId: x(() => i.b(`content-${P(r)}`)),
|
|
165
|
-
scopedHeadId: x(() => i.b(`head-${P(r)}`))
|
|
166
|
-
};
|
|
167
|
-
}, rt = [
|
|
168
|
-
"id",
|
|
169
|
-
"aria-expanded",
|
|
170
|
-
"aria-controls",
|
|
171
|
-
"aria-describedby",
|
|
172
|
-
"tabindex",
|
|
173
|
-
"aria-disabled"
|
|
174
|
-
], it = [
|
|
175
|
-
"id",
|
|
176
|
-
"aria-hidden",
|
|
177
|
-
"aria-labelledby"
|
|
178
|
-
], at = /* @__PURE__ */ ge({
|
|
179
|
-
name: "ElCollapseItem",
|
|
180
|
-
__name: "collapse-item",
|
|
181
|
-
props: Xe,
|
|
182
|
-
setup(e, { expose: t }) {
|
|
183
|
-
let n = e, { focusing: r, id: i, isActive: a, handleFocus: o, handleHeaderClick: s, handleEnterClick: c } = tt(n), { arrowKls: l, headKls: u, rootKls: d, itemTitleKls: f, itemWrapperKls: p, itemContentKls: m, scopedContentId: g, scopedHeadId: _ } = nt(n, {
|
|
184
|
-
focusing: r,
|
|
185
|
-
isActive: a,
|
|
186
|
-
id: i
|
|
187
|
-
});
|
|
188
|
-
return t({ isActive: a }), (t, n) => (A(), w("div", { class: k(P(d)) }, [T("div", {
|
|
189
|
-
id: P(_),
|
|
190
|
-
class: k(P(u)),
|
|
191
|
-
"aria-expanded": P(a),
|
|
192
|
-
"aria-controls": P(g),
|
|
193
|
-
"aria-describedby": P(g),
|
|
194
|
-
tabindex: e.disabled ? void 0 : 0,
|
|
195
|
-
"aria-disabled": e.disabled,
|
|
196
|
-
role: "button",
|
|
197
|
-
onClick: n[0] || (n[0] = (...e) => P(s) && P(s)(...e)),
|
|
198
|
-
onKeydown: n[1] || (n[1] = Te(Ee((...e) => P(c) && P(c)(...e), ["stop"]), ["space", "enter"])),
|
|
199
|
-
onFocus: n[2] || (n[2] = (...e) => P(o) && P(o)(...e)),
|
|
200
|
-
onBlur: n[3] || (n[3] = (e) => r.value = !1)
|
|
201
|
-
}, [T("span", { class: k(P(f)) }, [M(t.$slots, "title", { isActive: P(a) }, () => [E(N(e.title), 1)])], 2), M(t.$slots, "icon", { isActive: P(a) }, () => [D(P(h), { class: k(P(l)) }, {
|
|
202
|
-
default: I(() => [(A(), S(Se(e.icon)))]),
|
|
203
|
-
_: 1
|
|
204
|
-
}, 8, ["class"])])], 42, rt), D(P(te), null, {
|
|
205
|
-
default: I(() => [we(T("div", {
|
|
206
|
-
id: P(g),
|
|
207
|
-
role: "region",
|
|
208
|
-
class: k(P(p)),
|
|
209
|
-
"aria-hidden": !P(a),
|
|
210
|
-
"aria-labelledby": P(_)
|
|
211
|
-
}, [T("div", { class: k(P(m)) }, [M(t.$slots, "default")], 2)], 10, it), [[F, P(a)]])]),
|
|
212
|
-
_: 3
|
|
213
|
-
})], 2));
|
|
214
|
-
}
|
|
215
|
-
}), ot = f(et, { CollapseItem: at }), st = s(at), ct = [
|
|
28
|
+
import k from "bpmn-js/lib/Modeler";
|
|
29
|
+
import le from "bpmn-js/lib/features/drilldown";
|
|
30
|
+
import A from "bpmn-js-token-simulation";
|
|
31
|
+
import j from "x2js";
|
|
32
|
+
import M from "highlight.js/lib/languages/xml";
|
|
33
|
+
import N from "highlight.js/lib/languages/json";
|
|
34
|
+
import { assign as P, forEach as F, isArray as ue, isFunction as I, isObject as de, some as L } from "min-dash";
|
|
35
|
+
import { is as R } from "bpmn-js/lib/util/ModelUtil";
|
|
36
|
+
import { isEventSubProcess as fe, isExpanded as pe } from "bpmn-js/lib/util/DiUtil";
|
|
37
|
+
import { isAny as z } from "bpmn-js/lib/features/modeling/util/ModelingUtil";
|
|
38
|
+
import { getChildLanes as me } from "bpmn-js/lib/features/modeling/util/LaneUtil";
|
|
39
|
+
import { hasPrimaryModifier as he } from "diagram-js/lib/util/Mouse";
|
|
40
|
+
import ge from "bpmn-js/lib/features/palette/PaletteProvider";
|
|
41
|
+
import B from "diagram-js/lib/features/auto-place/AutoPlace";
|
|
42
|
+
import { asTRBL as _e, getMid as ve } from "diagram-js/lib/layout/LayoutUtil";
|
|
43
|
+
//#region src/components/bpmn-process-designer/components/PropertiesPanel.vue
|
|
44
|
+
var ye = [
|
|
216
45
|
"base",
|
|
217
46
|
"task",
|
|
218
47
|
"form",
|
|
219
48
|
"multiInstance"
|
|
220
|
-
],
|
|
49
|
+
], be = {
|
|
221
50
|
name: "PropertiesPanel",
|
|
222
51
|
componentName: "MyPropertiesPanel",
|
|
223
52
|
components: {
|
|
224
|
-
UserTaskListeners: () => import("./
|
|
225
|
-
ElementForm: () => import("./
|
|
226
|
-
ElementProperties: () => import("./
|
|
227
|
-
ElementListeners: () => import("./
|
|
228
|
-
SignalAndMassage: () => import("./
|
|
229
|
-
FlowCondition: () => import("./
|
|
230
|
-
ElementMultiInstance: () => import("
|
|
231
|
-
ElementTask: () => import("./
|
|
232
|
-
ElementOtherConfig: () => import("./
|
|
233
|
-
ElementBaseInfo: () => import("./
|
|
53
|
+
UserTaskListeners: () => import("./D6DYxngS.mjs").then((e) => e.n),
|
|
54
|
+
ElementForm: () => import("./Apjns0ZM.mjs").then((e) => e.n),
|
|
55
|
+
ElementProperties: () => import("./Bes1uXng.mjs").then((e) => e.n),
|
|
56
|
+
ElementListeners: () => import("./BYtFzO-8.mjs").then((e) => e.n),
|
|
57
|
+
SignalAndMassage: () => import("./C--HDCqy.mjs"),
|
|
58
|
+
FlowCondition: () => import("./Daa7nl7U.mjs").then((e) => e.n),
|
|
59
|
+
ElementMultiInstance: () => import("./-zgWD713.mjs").then((e) => e.n),
|
|
60
|
+
ElementTask: () => import("./neuEq1De.mjs"),
|
|
61
|
+
ElementOtherConfig: () => import("./DqWJCka8.mjs").then((e) => e.n),
|
|
62
|
+
ElementBaseInfo: () => import("./DTq5QLoT.mjs").then((e) => e.n)
|
|
234
63
|
},
|
|
235
64
|
provide() {
|
|
236
65
|
return {
|
|
@@ -295,11 +124,11 @@ var Ke = (e) => o(e) || a(e) || i(e), qe = l({
|
|
|
295
124
|
activeTabs: {
|
|
296
125
|
immediate: !0,
|
|
297
126
|
handler() {
|
|
298
|
-
this.activeTab = this.isTab ? "base" :
|
|
127
|
+
this.activeTab = this.isTab ? "base" : ye;
|
|
299
128
|
}
|
|
300
129
|
},
|
|
301
130
|
elementId: { handler() {
|
|
302
|
-
this.activeTab = this.isTab ? "base" :
|
|
131
|
+
this.activeTab = this.isTab ? "base" : ye;
|
|
303
132
|
} },
|
|
304
133
|
isTab: {
|
|
305
134
|
immediate: !0,
|
|
@@ -317,7 +146,7 @@ var Ke = (e) => o(e) || a(e) || i(e), qe = l({
|
|
|
317
146
|
this.timer = setTimeout(() => this.initModels(), 10);
|
|
318
147
|
return;
|
|
319
148
|
}
|
|
320
|
-
this.timer && clearTimeout(this.timer), this.bpmnInstances =
|
|
149
|
+
this.timer && clearTimeout(this.timer), this.bpmnInstances = S({
|
|
321
150
|
modeler: this.bpmnModeler,
|
|
322
151
|
modeling: this.bpmnModeler.get("modeling"),
|
|
323
152
|
moddle: this.bpmnModeler.get("moddle"),
|
|
@@ -340,45 +169,45 @@ var Ke = (e) => o(e) || a(e) || i(e), qe = l({
|
|
|
340
169
|
},
|
|
341
170
|
initFormOnChanged(e) {
|
|
342
171
|
let t = e;
|
|
343
|
-
t || (t = this.bpmnInstances.elementRegistry.find((e) => e.type === "bpmn:Process") ?? this.bpmnInstances.elementRegistry.find((e) => e.type === "bpmn:Collaboration")), t && (this.element =
|
|
172
|
+
t || (t = this.bpmnInstances.elementRegistry.find((e) => e.type === "bpmn:Process") ?? this.bpmnInstances.elementRegistry.find((e) => e.type === "bpmn:Collaboration")), t && (this.element = S(t), this.elementId = t.id, this.elementType = t.type.split(":")[1] || "", this.conditionFormVisible = !!(this.elementType === "SequenceFlow" && t.source && t.source.type.indexOf("StartEvent") === -1), this.formVisible = this.elementType === "UserTask");
|
|
344
173
|
}
|
|
345
174
|
}
|
|
346
|
-
},
|
|
175
|
+
}, xe = { style: {
|
|
347
176
|
height: "40px",
|
|
348
177
|
"line-height": "40px"
|
|
349
|
-
} },
|
|
350
|
-
function
|
|
351
|
-
var
|
|
352
|
-
let
|
|
353
|
-
return
|
|
354
|
-
class:
|
|
355
|
-
show:
|
|
356
|
-
hide: !
|
|
178
|
+
} }, Se = { class: "panel-tab__title" }, Ce = { class: "panel-tab__title" };
|
|
179
|
+
function we(e, t, n, d, f, S) {
|
|
180
|
+
var C;
|
|
181
|
+
let D = u, O = ee, k = ie("SignalAndMassage"), le = l, A = ie("ElementTask"), j = c, M = s, N = o, P = a, F = i, ue = h, I = m, de = r, L = g, R = p;
|
|
182
|
+
return w(), te("div", {
|
|
183
|
+
class: ne(["process-panel__container", {
|
|
184
|
+
show: f.isPanelVisible,
|
|
185
|
+
hide: !f.isPanelVisible
|
|
357
186
|
}]),
|
|
358
|
-
style:
|
|
359
|
-
onClick: t[3] || (t[3] = (e) =>
|
|
360
|
-
}, [
|
|
361
|
-
class:
|
|
362
|
-
onClick: t[0] || (t[0] =
|
|
363
|
-
}, null, 2),
|
|
187
|
+
style: re({ width: `${f.isPanelVisible ? n.width : 34}px` }),
|
|
188
|
+
onClick: t[3] || (t[3] = (e) => f.isPanelVisible = !0)
|
|
189
|
+
}, [y("div", xe, [y("i", {
|
|
190
|
+
class: ne(["open-properties-handel", f.isPanelVisible ? "el-icon-caret-right" : "el-icon-caret-left"]),
|
|
191
|
+
onClick: t[0] || (t[0] = ce((e) => f.isPanelVisible = !f.isPanelVisible, ["stop"]))
|
|
192
|
+
}, null, 2), b(" " + ae(f.isPanelVisible ? (C = f.element) == null || (C = C.businessObject) == null ? void 0 : C.name : ""), 1)]), n.panelType === "tab" ? se((w(), _(ue, {
|
|
364
193
|
key: 0,
|
|
365
|
-
modelValue:
|
|
366
|
-
"onUpdate:modelValue": t[1] || (t[1] = (e) =>
|
|
194
|
+
modelValue: f.activeTab,
|
|
195
|
+
"onUpdate:modelValue": t[1] || (t[1] = (e) => f.activeTab = e)
|
|
367
196
|
}, {
|
|
368
|
-
default:
|
|
369
|
-
|
|
370
|
-
|
|
197
|
+
default: E(() => [
|
|
198
|
+
v(" 常规 "),
|
|
199
|
+
S.isNullOrUndefined || S.isArray && n.useTabs.includes("base") ? (w(), _(O, {
|
|
371
200
|
key: 0,
|
|
372
201
|
label: "常规",
|
|
373
202
|
name: "base",
|
|
374
203
|
lazy: ""
|
|
375
204
|
}, {
|
|
376
|
-
default:
|
|
377
|
-
id:
|
|
205
|
+
default: E(() => [x(D, {
|
|
206
|
+
id: f.elementId,
|
|
378
207
|
"id-edit-disabled": n.idEditDisabled,
|
|
379
|
-
type:
|
|
380
|
-
element:
|
|
381
|
-
"bpmn-instances":
|
|
208
|
+
type: f.elementType,
|
|
209
|
+
element: f.element,
|
|
210
|
+
"bpmn-instances": f.bpmnInstances
|
|
382
211
|
}, null, 8, [
|
|
383
212
|
"id",
|
|
384
213
|
"id-edit-disabled",
|
|
@@ -387,45 +216,45 @@ function pt(e, t, n, r, i, a) {
|
|
|
387
216
|
"bpmn-instances"
|
|
388
217
|
])]),
|
|
389
218
|
_: 1
|
|
390
|
-
})) :
|
|
391
|
-
|
|
392
|
-
(
|
|
219
|
+
})) : v("v-if", !0),
|
|
220
|
+
v(" 消息与信号 "),
|
|
221
|
+
(S.isNullOrUndefined || S.isArray && n.useTabs.includes("message")) && f.elementType === "Process" ? (w(), _(O, {
|
|
393
222
|
key: 1,
|
|
394
223
|
label: "消息与信号",
|
|
395
224
|
name: "message",
|
|
396
225
|
lazy: ""
|
|
397
226
|
}, {
|
|
398
|
-
default:
|
|
227
|
+
default: E(() => [x(k, { "bpmn-instances": f.bpmnInstances }, null, 8, ["bpmn-instances"])]),
|
|
399
228
|
_: 1
|
|
400
|
-
})) :
|
|
401
|
-
|
|
402
|
-
(
|
|
229
|
+
})) : v("v-if", !0),
|
|
230
|
+
v(" 流转条件 "),
|
|
231
|
+
(S.isNullOrUndefined || S.isArray && n.useTabs.includes("condition")) && f.conditionFormVisible ? (w(), _(O, {
|
|
403
232
|
key: 2,
|
|
404
233
|
label: "流转条件",
|
|
405
234
|
name: "condition",
|
|
406
235
|
lazy: ""
|
|
407
236
|
}, {
|
|
408
|
-
default:
|
|
237
|
+
default: E(() => [x(k, { "bpmn-instances": f.bpmnInstances }, null, 8, ["bpmn-instances"])]),
|
|
409
238
|
_: 1
|
|
410
|
-
})) :
|
|
411
|
-
|
|
412
|
-
|
|
239
|
+
})) : v("v-if", !0),
|
|
240
|
+
v(" 表单 "),
|
|
241
|
+
S.isNullOrUndefined || S.isArray && n.useTabs.includes("form") ? T(e.$slots, "form", {
|
|
413
242
|
key: 3,
|
|
414
|
-
id:
|
|
415
|
-
bpmnInstances:
|
|
416
|
-
element:
|
|
417
|
-
type:
|
|
418
|
-
}, () => [(
|
|
243
|
+
id: f.elementId,
|
|
244
|
+
bpmnInstances: f.bpmnInstances,
|
|
245
|
+
element: f.element,
|
|
246
|
+
type: f.elementType
|
|
247
|
+
}, () => [(S.isNullOrUndefined || S.isArray && n.useTabs.includes("base")) && f.formVisible ? (w(), _(O, {
|
|
419
248
|
key: "form",
|
|
420
249
|
label: "表单",
|
|
421
250
|
name: "form",
|
|
422
251
|
lazy: ""
|
|
423
252
|
}, {
|
|
424
|
-
default:
|
|
425
|
-
id:
|
|
426
|
-
"bpmn-instances":
|
|
427
|
-
element:
|
|
428
|
-
type:
|
|
253
|
+
default: E(() => [x(le, {
|
|
254
|
+
id: f.elementId,
|
|
255
|
+
"bpmn-instances": f.bpmnInstances,
|
|
256
|
+
element: f.element,
|
|
257
|
+
type: f.elementType
|
|
429
258
|
}, null, 8, [
|
|
430
259
|
"id",
|
|
431
260
|
"bpmn-instances",
|
|
@@ -433,25 +262,25 @@ function pt(e, t, n, r, i, a) {
|
|
|
433
262
|
"type"
|
|
434
263
|
])]),
|
|
435
264
|
_: 1
|
|
436
|
-
})) :
|
|
437
|
-
|
|
438
|
-
|
|
265
|
+
})) : v("v-if", !0)]) : v("v-if", !0),
|
|
266
|
+
v(" 任务 "),
|
|
267
|
+
S.isNullOrUndefined || S.isArray && n.useTabs.includes("task") ? T(e.$slots, "task", {
|
|
439
268
|
key: 4,
|
|
440
|
-
id:
|
|
441
|
-
bpmnInstances:
|
|
442
|
-
element:
|
|
443
|
-
type:
|
|
444
|
-
}, () => [
|
|
269
|
+
id: f.elementId,
|
|
270
|
+
bpmnInstances: f.bpmnInstances,
|
|
271
|
+
element: f.element,
|
|
272
|
+
type: f.elementType
|
|
273
|
+
}, () => [f.elementType.indexOf("Task") === -1 ? v("v-if", !0) : (w(), _(O, {
|
|
445
274
|
key: "task",
|
|
446
275
|
label: "任务",
|
|
447
276
|
name: "task",
|
|
448
277
|
lazy: ""
|
|
449
278
|
}, {
|
|
450
|
-
default:
|
|
451
|
-
id:
|
|
452
|
-
"bpmn-instances":
|
|
453
|
-
element:
|
|
454
|
-
type:
|
|
279
|
+
default: E(() => [x(A, {
|
|
280
|
+
id: f.elementId,
|
|
281
|
+
"bpmn-instances": f.bpmnInstances,
|
|
282
|
+
element: f.element,
|
|
283
|
+
type: f.elementType
|
|
455
284
|
}, null, 8, [
|
|
456
285
|
"id",
|
|
457
286
|
"bpmn-instances",
|
|
@@ -459,19 +288,19 @@ function pt(e, t, n, r, i, a) {
|
|
|
459
288
|
"type"
|
|
460
289
|
])]),
|
|
461
290
|
_: 1
|
|
462
|
-
}))]) :
|
|
463
|
-
|
|
464
|
-
(
|
|
291
|
+
}))]) : v("v-if", !0),
|
|
292
|
+
v(" 多实例 "),
|
|
293
|
+
(S.isNullOrUndefined || S.isArray && n.useTabs.includes("multiInstance")) && f.elementType.indexOf("Task") !== -1 ? (w(), _(O, {
|
|
465
294
|
key: "multiInstance",
|
|
466
295
|
label: "多实例",
|
|
467
296
|
name: "multiInstance",
|
|
468
297
|
lazy: ""
|
|
469
298
|
}, {
|
|
470
|
-
default:
|
|
471
|
-
id:
|
|
472
|
-
"bpmn-instances":
|
|
473
|
-
element:
|
|
474
|
-
type:
|
|
299
|
+
default: E(() => [x(j, {
|
|
300
|
+
id: f.elementId,
|
|
301
|
+
"bpmn-instances": f.bpmnInstances,
|
|
302
|
+
element: f.element,
|
|
303
|
+
type: f.elementType
|
|
475
304
|
}, null, 8, [
|
|
476
305
|
"id",
|
|
477
306
|
"bpmn-instances",
|
|
@@ -479,19 +308,19 @@ function pt(e, t, n, r, i, a) {
|
|
|
479
308
|
"type"
|
|
480
309
|
])]),
|
|
481
310
|
_: 1
|
|
482
|
-
})) :
|
|
483
|
-
|
|
484
|
-
|
|
311
|
+
})) : v("v-if", !0),
|
|
312
|
+
v(" 执行监听器 "),
|
|
313
|
+
S.isNullOrUndefined || S.isArray && n.useTabs.includes("listeners") ? (w(), _(O, {
|
|
485
314
|
key: "listeners",
|
|
486
315
|
label: "执行监听器",
|
|
487
316
|
name: "listeners",
|
|
488
317
|
lazy: ""
|
|
489
318
|
}, {
|
|
490
|
-
default:
|
|
491
|
-
id:
|
|
492
|
-
"bpmn-instances":
|
|
493
|
-
element:
|
|
494
|
-
type:
|
|
319
|
+
default: E(() => [x(M, {
|
|
320
|
+
id: f.elementId,
|
|
321
|
+
"bpmn-instances": f.bpmnInstances,
|
|
322
|
+
element: f.element,
|
|
323
|
+
type: f.elementType
|
|
495
324
|
}, null, 8, [
|
|
496
325
|
"id",
|
|
497
326
|
"bpmn-instances",
|
|
@@ -499,19 +328,19 @@ function pt(e, t, n, r, i, a) {
|
|
|
499
328
|
"type"
|
|
500
329
|
])]),
|
|
501
330
|
_: 1
|
|
502
|
-
})) :
|
|
503
|
-
|
|
504
|
-
(
|
|
331
|
+
})) : v("v-if", !0),
|
|
332
|
+
v(" 任务监听器 "),
|
|
333
|
+
(S.isNullOrUndefined || S.isArray && n.useTabs.includes("taskListeners")) && f.elementType === "UserTask" ? (w(), _(O, {
|
|
505
334
|
key: "taskListeners",
|
|
506
335
|
label: "任务监听器",
|
|
507
336
|
name: "taskListeners",
|
|
508
337
|
lazy: ""
|
|
509
338
|
}, {
|
|
510
|
-
default:
|
|
511
|
-
id:
|
|
512
|
-
"bpmn-instances":
|
|
513
|
-
element:
|
|
514
|
-
type:
|
|
339
|
+
default: E(() => [x(N, {
|
|
340
|
+
id: f.elementId,
|
|
341
|
+
"bpmn-instances": f.bpmnInstances,
|
|
342
|
+
element: f.element,
|
|
343
|
+
type: f.elementType
|
|
515
344
|
}, null, 8, [
|
|
516
345
|
"id",
|
|
517
346
|
"bpmn-instances",
|
|
@@ -519,19 +348,19 @@ function pt(e, t, n, r, i, a) {
|
|
|
519
348
|
"type"
|
|
520
349
|
])]),
|
|
521
350
|
_: 1
|
|
522
|
-
})) :
|
|
523
|
-
|
|
524
|
-
|
|
351
|
+
})) : v("v-if", !0),
|
|
352
|
+
v(" 扩展属性 "),
|
|
353
|
+
S.isNullOrUndefined || S.isArray && n.useTabs.includes("extensions") ? (w(), _(O, {
|
|
525
354
|
key: "extensions",
|
|
526
355
|
label: "扩展属性",
|
|
527
356
|
name: "extensions",
|
|
528
357
|
lazy: ""
|
|
529
358
|
}, {
|
|
530
|
-
default:
|
|
531
|
-
id:
|
|
532
|
-
"bpmn-instances":
|
|
533
|
-
element:
|
|
534
|
-
type:
|
|
359
|
+
default: E(() => [x(P, {
|
|
360
|
+
id: f.elementId,
|
|
361
|
+
"bpmn-instances": f.bpmnInstances,
|
|
362
|
+
element: f.element,
|
|
363
|
+
type: f.elementType
|
|
535
364
|
}, null, 8, [
|
|
536
365
|
"id",
|
|
537
366
|
"bpmn-instances",
|
|
@@ -539,53 +368,53 @@ function pt(e, t, n, r, i, a) {
|
|
|
539
368
|
"type"
|
|
540
369
|
])]),
|
|
541
370
|
_: 1
|
|
542
|
-
})) :
|
|
543
|
-
|
|
544
|
-
|
|
371
|
+
})) : v("v-if", !0),
|
|
372
|
+
v(" 其他 "),
|
|
373
|
+
S.isNullOrUndefined || S.isArray && n.useTabs.includes("other") ? (w(), _(O, {
|
|
545
374
|
key: "other",
|
|
546
375
|
label: "其他",
|
|
547
376
|
name: "other",
|
|
548
377
|
lazy: ""
|
|
549
378
|
}, {
|
|
550
|
-
default:
|
|
551
|
-
id:
|
|
552
|
-
element:
|
|
553
|
-
"bpmn-instances":
|
|
379
|
+
default: E(() => [x(F, {
|
|
380
|
+
id: f.elementId,
|
|
381
|
+
element: f.element,
|
|
382
|
+
"bpmn-instances": f.bpmnInstances
|
|
554
383
|
}, null, 8, [
|
|
555
384
|
"id",
|
|
556
385
|
"element",
|
|
557
386
|
"bpmn-instances"
|
|
558
387
|
])]),
|
|
559
388
|
_: 1
|
|
560
|
-
})) :
|
|
561
|
-
|
|
562
|
-
|
|
389
|
+
})) : v("v-if", !0),
|
|
390
|
+
v(" 拓展 "),
|
|
391
|
+
S.isNullOrUndefined || S.isArray && n.useTabs.includes("extend") ? T(e.$slots, "extend", {
|
|
563
392
|
key: 10,
|
|
564
|
-
id:
|
|
565
|
-
bpmnInstances:
|
|
566
|
-
element:
|
|
567
|
-
type:
|
|
568
|
-
}) :
|
|
393
|
+
id: f.elementId,
|
|
394
|
+
bpmnInstances: f.bpmnInstances,
|
|
395
|
+
element: f.element,
|
|
396
|
+
type: f.elementType
|
|
397
|
+
}) : v("v-if", !0)
|
|
569
398
|
]),
|
|
570
399
|
_: 3
|
|
571
|
-
}, 8, ["modelValue"])), [[
|
|
400
|
+
}, 8, ["modelValue"])), [[oe, f.isPanelVisible]]) : se((w(), _(R, {
|
|
572
401
|
key: 1,
|
|
573
|
-
modelValue:
|
|
574
|
-
"onUpdate:modelValue": t[2] || (t[2] = (e) =>
|
|
402
|
+
modelValue: f.activeTab,
|
|
403
|
+
"onUpdate:modelValue": t[2] || (t[2] = (e) => f.activeTab = e)
|
|
575
404
|
}, {
|
|
576
|
-
default:
|
|
577
|
-
|
|
578
|
-
|
|
405
|
+
default: E(() => [
|
|
406
|
+
v(" 常规 "),
|
|
407
|
+
S.isNullOrUndefined || S.isArray && n.useTabs.includes("base") ? (w(), _(I, {
|
|
579
408
|
key: 0,
|
|
580
409
|
name: "base"
|
|
581
410
|
}, {
|
|
582
|
-
title:
|
|
583
|
-
default:
|
|
584
|
-
id:
|
|
411
|
+
title: E(() => [...t[4] || (t[4] = [y("div", { class: "panel-tab__title" }, [y("i", { class: "el-icon-info" }), b(" 常规 ")], -1)])]),
|
|
412
|
+
default: E(() => [x(D, {
|
|
413
|
+
id: f.elementId,
|
|
585
414
|
"id-edit-disabled": n.idEditDisabled,
|
|
586
|
-
type:
|
|
587
|
-
element:
|
|
588
|
-
"bpmn-instances":
|
|
415
|
+
type: f.elementType,
|
|
416
|
+
element: f.element,
|
|
417
|
+
"bpmn-instances": f.bpmnInstances
|
|
589
418
|
}, null, 8, [
|
|
590
419
|
"id",
|
|
591
420
|
"id-edit-disabled",
|
|
@@ -594,27 +423,27 @@ function pt(e, t, n, r, i, a) {
|
|
|
594
423
|
"bpmn-instances"
|
|
595
424
|
])]),
|
|
596
425
|
_: 1
|
|
597
|
-
})) :
|
|
598
|
-
|
|
599
|
-
(
|
|
426
|
+
})) : v("v-if", !0),
|
|
427
|
+
v(" 消息与信号 "),
|
|
428
|
+
(S.isNullOrUndefined || S.isArray && n.useTabs.includes("message")) && f.elementType === "Process" ? (w(), _(I, {
|
|
600
429
|
key: "message",
|
|
601
430
|
name: "message"
|
|
602
431
|
}, {
|
|
603
|
-
title:
|
|
604
|
-
default:
|
|
432
|
+
title: E(() => [...t[5] || (t[5] = [y("div", { class: "panel-tab__title" }, [y("i", { class: "el-icon-s-comment" }), b(" 消息与信号 ")], -1)])]),
|
|
433
|
+
default: E(() => [x(k, { "bpmn-instances": f.bpmnInstances }, null, 8, ["bpmn-instances"])]),
|
|
605
434
|
_: 1
|
|
606
|
-
})) :
|
|
607
|
-
|
|
608
|
-
(
|
|
435
|
+
})) : v("v-if", !0),
|
|
436
|
+
v(" 流转条件 "),
|
|
437
|
+
(S.isNullOrUndefined || S.isArray && n.useTabs.includes("condition")) && f.conditionFormVisible ? (w(), _(I, {
|
|
609
438
|
key: "condition",
|
|
610
439
|
name: "condition"
|
|
611
440
|
}, {
|
|
612
|
-
title:
|
|
613
|
-
default:
|
|
614
|
-
id:
|
|
615
|
-
element:
|
|
616
|
-
"bpmn-instances":
|
|
617
|
-
type:
|
|
441
|
+
title: E(() => [...t[6] || (t[6] = [y("div", { class: "panel-tab__title" }, [y("i", { class: "el-icon-s-promotion" }), b(" 流转条件 ")], -1)])]),
|
|
442
|
+
default: E(() => [x(de, {
|
|
443
|
+
id: f.elementId,
|
|
444
|
+
element: f.element,
|
|
445
|
+
"bpmn-instances": f.bpmnInstances,
|
|
446
|
+
type: f.elementType
|
|
618
447
|
}, null, 8, [
|
|
619
448
|
"id",
|
|
620
449
|
"element",
|
|
@@ -622,24 +451,24 @@ function pt(e, t, n, r, i, a) {
|
|
|
622
451
|
"type"
|
|
623
452
|
])]),
|
|
624
453
|
_: 1
|
|
625
|
-
})) :
|
|
626
|
-
|
|
627
|
-
|
|
454
|
+
})) : v("v-if", !0),
|
|
455
|
+
v(" 表单 "),
|
|
456
|
+
S.isNullOrUndefined || S.isArray && n.useTabs.includes("form") ? T(e.$slots, "form", {
|
|
628
457
|
key: 3,
|
|
629
|
-
id:
|
|
630
|
-
bpmnInstances:
|
|
631
|
-
element:
|
|
632
|
-
type:
|
|
633
|
-
}, () => [(
|
|
458
|
+
id: f.elementId,
|
|
459
|
+
bpmnInstances: f.bpmnInstances,
|
|
460
|
+
element: f.element,
|
|
461
|
+
type: f.elementType
|
|
462
|
+
}, () => [(S.isNullOrUndefined || S.isArray && n.useTabs.includes("base")) && f.formVisible ? (w(), _(I, {
|
|
634
463
|
key: "form",
|
|
635
464
|
name: "form"
|
|
636
465
|
}, {
|
|
637
|
-
title:
|
|
638
|
-
default:
|
|
639
|
-
id:
|
|
640
|
-
"bpmn-instances":
|
|
641
|
-
element:
|
|
642
|
-
type:
|
|
466
|
+
title: E(() => [...t[7] || (t[7] = [y("div", { class: "panel-tab__title" }, [y("i", { class: "el-icon-s-order" }), b(" 表单 ")], -1)])]),
|
|
467
|
+
default: E(() => [x(le, {
|
|
468
|
+
id: f.elementId,
|
|
469
|
+
"bpmn-instances": f.bpmnInstances,
|
|
470
|
+
element: f.element,
|
|
471
|
+
type: f.elementType
|
|
643
472
|
}, null, 8, [
|
|
644
473
|
"id",
|
|
645
474
|
"bpmn-instances",
|
|
@@ -647,24 +476,24 @@ function pt(e, t, n, r, i, a) {
|
|
|
647
476
|
"type"
|
|
648
477
|
])]),
|
|
649
478
|
_: 1
|
|
650
|
-
})) :
|
|
651
|
-
|
|
652
|
-
|
|
479
|
+
})) : v("v-if", !0)]) : v("v-if", !0),
|
|
480
|
+
v(" 任务 "),
|
|
481
|
+
S.isNullOrUndefined || S.isArray && n.useTabs.includes("task") ? T(e.$slots, "task", {
|
|
653
482
|
key: 4,
|
|
654
|
-
id:
|
|
655
|
-
bpmnInstances:
|
|
656
|
-
element:
|
|
657
|
-
type:
|
|
658
|
-
}, () => [
|
|
483
|
+
id: f.elementId,
|
|
484
|
+
bpmnInstances: f.bpmnInstances,
|
|
485
|
+
element: f.element,
|
|
486
|
+
type: f.elementType
|
|
487
|
+
}, () => [f.elementType.indexOf("Task") === -1 ? v("v-if", !0) : (w(), _(I, {
|
|
659
488
|
key: "task",
|
|
660
489
|
name: "task"
|
|
661
490
|
}, {
|
|
662
|
-
title:
|
|
663
|
-
default:
|
|
664
|
-
id:
|
|
665
|
-
"bpmn-instances":
|
|
666
|
-
element:
|
|
667
|
-
type:
|
|
491
|
+
title: E(() => [...t[8] || (t[8] = [y("div", { class: "panel-tab__title" }, [y("i", { class: "el-icon-s-claim" }), b(" 任务 ")], -1)])]),
|
|
492
|
+
default: E(() => [x(A, {
|
|
493
|
+
id: f.elementId,
|
|
494
|
+
"bpmn-instances": f.bpmnInstances,
|
|
495
|
+
element: f.element,
|
|
496
|
+
type: f.elementType
|
|
668
497
|
}, null, 8, [
|
|
669
498
|
"id",
|
|
670
499
|
"bpmn-instances",
|
|
@@ -672,18 +501,18 @@ function pt(e, t, n, r, i, a) {
|
|
|
672
501
|
"type"
|
|
673
502
|
])]),
|
|
674
503
|
_: 1
|
|
675
|
-
}))]) :
|
|
676
|
-
|
|
677
|
-
(
|
|
504
|
+
}))]) : v("v-if", !0),
|
|
505
|
+
v(" 多实例 "),
|
|
506
|
+
(S.isNullOrUndefined || S.isArray && n.useTabs.includes("multiInstance")) && f.elementType.indexOf("Task") !== -1 ? (w(), _(I, {
|
|
678
507
|
key: "multiInstance",
|
|
679
508
|
name: "multiInstance"
|
|
680
509
|
}, {
|
|
681
|
-
title:
|
|
682
|
-
default:
|
|
683
|
-
id:
|
|
684
|
-
"bpmn-instances":
|
|
685
|
-
element:
|
|
686
|
-
type:
|
|
510
|
+
title: E(() => [...t[9] || (t[9] = [y("div", { class: "panel-tab__title" }, [y("i", { class: "el-icon-s-help" }), b(" 多实例 ")], -1)])]),
|
|
511
|
+
default: E(() => [x(j, {
|
|
512
|
+
id: f.elementId,
|
|
513
|
+
"bpmn-instances": f.bpmnInstances,
|
|
514
|
+
element: f.element,
|
|
515
|
+
type: f.elementType
|
|
687
516
|
}, null, 8, [
|
|
688
517
|
"id",
|
|
689
518
|
"bpmn-instances",
|
|
@@ -691,26 +520,26 @@ function pt(e, t, n, r, i, a) {
|
|
|
691
520
|
"type"
|
|
692
521
|
])]),
|
|
693
522
|
_: 1
|
|
694
|
-
})) :
|
|
695
|
-
|
|
696
|
-
|
|
523
|
+
})) : v("v-if", !0),
|
|
524
|
+
v(" 执行监听器 "),
|
|
525
|
+
S.isNullOrUndefined || S.isArray && n.useTabs.includes("listeners") ? (w(), _(I, {
|
|
697
526
|
key: "listeners",
|
|
698
527
|
name: "listeners"
|
|
699
528
|
}, {
|
|
700
|
-
title:
|
|
701
|
-
t[12] || (t[12] =
|
|
702
|
-
t[13] || (t[13] =
|
|
703
|
-
|
|
704
|
-
content:
|
|
705
|
-
default:
|
|
529
|
+
title: E(() => [y("div", Se, [
|
|
530
|
+
t[12] || (t[12] = y("i", { class: "el-icon-message-solid" }, null, -1)),
|
|
531
|
+
t[13] || (t[13] = b(" 执行监听器 ", -1)),
|
|
532
|
+
x(L, { effect: "light" }, {
|
|
533
|
+
content: E(() => [...t[10] || (t[10] = [y("p", null, "发送和退回时会触发", -1)])]),
|
|
534
|
+
default: E(() => [t[11] || (t[11] = y("i", { class: "el-icon-info" }, null, -1))]),
|
|
706
535
|
_: 1
|
|
707
536
|
})
|
|
708
537
|
])]),
|
|
709
|
-
default:
|
|
710
|
-
id:
|
|
711
|
-
"bpmn-instances":
|
|
712
|
-
element:
|
|
713
|
-
type:
|
|
538
|
+
default: E(() => [x(M, {
|
|
539
|
+
id: f.elementId,
|
|
540
|
+
"bpmn-instances": f.bpmnInstances,
|
|
541
|
+
element: f.element,
|
|
542
|
+
type: f.elementType
|
|
714
543
|
}, null, 8, [
|
|
715
544
|
"id",
|
|
716
545
|
"bpmn-instances",
|
|
@@ -718,26 +547,26 @@ function pt(e, t, n, r, i, a) {
|
|
|
718
547
|
"type"
|
|
719
548
|
])]),
|
|
720
549
|
_: 1
|
|
721
|
-
})) :
|
|
722
|
-
|
|
723
|
-
(
|
|
550
|
+
})) : v("v-if", !0),
|
|
551
|
+
v(" 任务监听器 "),
|
|
552
|
+
(S.isNullOrUndefined || S.isArray && n.useTabs.includes("taskListeners")) && f.elementType === "UserTask" ? (w(), _(I, {
|
|
724
553
|
key: "taskListeners",
|
|
725
554
|
name: "taskListeners"
|
|
726
555
|
}, {
|
|
727
|
-
title:
|
|
728
|
-
t[16] || (t[16] =
|
|
729
|
-
t[17] || (t[17] =
|
|
730
|
-
|
|
731
|
-
content:
|
|
732
|
-
default:
|
|
556
|
+
title: E(() => [y("div", Ce, [
|
|
557
|
+
t[16] || (t[16] = y("i", { class: "el-icon-message-solid" }, null, -1)),
|
|
558
|
+
t[17] || (t[17] = b(" 任务监听器 ", -1)),
|
|
559
|
+
x(L, { effect: "light" }, {
|
|
560
|
+
content: E(() => [...t[14] || (t[14] = [y("p", null, "任务实例的创建、指派、完成、删除、更新、超时会触发", -1)])]),
|
|
561
|
+
default: E(() => [t[15] || (t[15] = y("i", { class: "el-icon-info" }, null, -1))]),
|
|
733
562
|
_: 1
|
|
734
563
|
})
|
|
735
564
|
])]),
|
|
736
|
-
default:
|
|
737
|
-
id:
|
|
738
|
-
"bpmn-instances":
|
|
739
|
-
element:
|
|
740
|
-
type:
|
|
565
|
+
default: E(() => [x(N, {
|
|
566
|
+
id: f.elementId,
|
|
567
|
+
"bpmn-instances": f.bpmnInstances,
|
|
568
|
+
element: f.element,
|
|
569
|
+
type: f.elementType
|
|
741
570
|
}, null, 8, [
|
|
742
571
|
"id",
|
|
743
572
|
"bpmn-instances",
|
|
@@ -745,18 +574,18 @@ function pt(e, t, n, r, i, a) {
|
|
|
745
574
|
"type"
|
|
746
575
|
])]),
|
|
747
576
|
_: 1
|
|
748
|
-
})) :
|
|
749
|
-
|
|
750
|
-
|
|
577
|
+
})) : v("v-if", !0),
|
|
578
|
+
v(" 扩展属性 "),
|
|
579
|
+
S.isNullOrUndefined || S.isArray && n.useTabs.includes("extensions") ? (w(), _(I, {
|
|
751
580
|
key: "extensions",
|
|
752
581
|
name: "extensions"
|
|
753
582
|
}, {
|
|
754
|
-
title:
|
|
755
|
-
default:
|
|
756
|
-
id:
|
|
757
|
-
"bpmn-instances":
|
|
758
|
-
element:
|
|
759
|
-
type:
|
|
583
|
+
title: E(() => [...t[18] || (t[18] = [y("div", { class: "panel-tab__title" }, [y("i", { class: "el-icon-circle-plus" }), b(" 扩展属性 ")], -1)])]),
|
|
584
|
+
default: E(() => [x(P, {
|
|
585
|
+
id: f.elementId,
|
|
586
|
+
"bpmn-instances": f.bpmnInstances,
|
|
587
|
+
element: f.element,
|
|
588
|
+
type: f.elementType
|
|
760
589
|
}, null, 8, [
|
|
761
590
|
"id",
|
|
762
591
|
"bpmn-instances",
|
|
@@ -764,37 +593,37 @@ function pt(e, t, n, r, i, a) {
|
|
|
764
593
|
"type"
|
|
765
594
|
])]),
|
|
766
595
|
_: 1
|
|
767
|
-
})) :
|
|
768
|
-
|
|
769
|
-
|
|
596
|
+
})) : v("v-if", !0),
|
|
597
|
+
v(" 其他 "),
|
|
598
|
+
S.isNullOrUndefined || S.isArray && n.useTabs.includes("other") ? (w(), _(I, {
|
|
770
599
|
key: "other",
|
|
771
600
|
name: "other"
|
|
772
601
|
}, {
|
|
773
|
-
title:
|
|
774
|
-
default:
|
|
775
|
-
id:
|
|
776
|
-
element:
|
|
777
|
-
"bpmn-instances":
|
|
602
|
+
title: E(() => [...t[19] || (t[19] = [y("div", { class: "panel-tab__title" }, [y("i", { class: "el-icon-s-promotion" }), b(" 其他 ")], -1)])]),
|
|
603
|
+
default: E(() => [x(F, {
|
|
604
|
+
id: f.elementId,
|
|
605
|
+
element: f.element,
|
|
606
|
+
"bpmn-instances": f.bpmnInstances
|
|
778
607
|
}, null, 8, [
|
|
779
608
|
"id",
|
|
780
609
|
"element",
|
|
781
610
|
"bpmn-instances"
|
|
782
611
|
])]),
|
|
783
612
|
_: 1
|
|
784
|
-
})) :
|
|
785
|
-
|
|
786
|
-
|
|
613
|
+
})) : v("v-if", !0),
|
|
614
|
+
v(" 拓展 "),
|
|
615
|
+
S.isNullOrUndefined || S.isArray && n.useTabs.includes("extend") ? T(e.$slots, "extend", {
|
|
787
616
|
key: 10,
|
|
788
|
-
id:
|
|
789
|
-
bpmnInstances:
|
|
790
|
-
element:
|
|
791
|
-
type:
|
|
792
|
-
}) :
|
|
617
|
+
id: f.elementId,
|
|
618
|
+
bpmnInstances: f.bpmnInstances,
|
|
619
|
+
element: f.element,
|
|
620
|
+
type: f.elementType
|
|
621
|
+
}) : v("v-if", !0)
|
|
793
622
|
]),
|
|
794
623
|
_: 3
|
|
795
|
-
}, 8, ["modelValue"])), [[
|
|
624
|
+
}, 8, ["modelValue"])), [[oe, f.isPanelVisible]])], 6);
|
|
796
625
|
}
|
|
797
|
-
var
|
|
626
|
+
var Te = /* @__PURE__ */ e(be, [["render", we]]), Ee = (e, t, n) => (n = n || "camunda", `<?xml version="1.0" encoding="UTF-8"?>
|
|
798
627
|
<bpmn2:definitions
|
|
799
628
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
800
629
|
xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL"
|
|
@@ -816,7 +645,7 @@ var mt = /* @__PURE__ */ ae(lt, [["render", pt]]), ht = (e, t, n) => (n = n || "
|
|
|
816
645
|
</bpmn2:definitions>`);
|
|
817
646
|
//#endregion
|
|
818
647
|
//#region src/components/bpmn-process-designer/plugins/translate/customTranslate.js
|
|
819
|
-
function
|
|
648
|
+
function De(e) {
|
|
820
649
|
return function(t, n) {
|
|
821
650
|
return n = n || {}, t = e[t] || t, t.replace(/{([^}]+)}/g, function(t, r) {
|
|
822
651
|
let i = n[r];
|
|
@@ -826,7 +655,7 @@ function gt(e) {
|
|
|
826
655
|
}
|
|
827
656
|
//#endregion
|
|
828
657
|
//#region src/components/bpmn-process-designer/plugins/translate/zh.js
|
|
829
|
-
var
|
|
658
|
+
var Oe = {
|
|
830
659
|
"Append EndEvent": "追加结束事件",
|
|
831
660
|
"Append Gateway": "追加网关",
|
|
832
661
|
"Append Task": "追加任务",
|
|
@@ -1063,7 +892,7 @@ var _t = {
|
|
|
1063
892
|
Data: "数据",
|
|
1064
893
|
TextAnnotation: "文本说明",
|
|
1065
894
|
Tasks: "任务"
|
|
1066
|
-
},
|
|
895
|
+
}, V = [
|
|
1067
896
|
{
|
|
1068
897
|
name: "commentInForm",
|
|
1069
898
|
isAttr: !0,
|
|
@@ -1089,7 +918,7 @@ var _t = {
|
|
|
1089
918
|
isAttr: !0,
|
|
1090
919
|
type: "String"
|
|
1091
920
|
}
|
|
1092
|
-
],
|
|
921
|
+
], ke = {
|
|
1093
922
|
name: "Camunda",
|
|
1094
923
|
uri: "http://camunda.org/schema/1.0/bpmn",
|
|
1095
924
|
prefix: "camunda",
|
|
@@ -1381,7 +1210,7 @@ var _t = {
|
|
|
1381
1210
|
isAttr: !0,
|
|
1382
1211
|
type: "String"
|
|
1383
1212
|
},
|
|
1384
|
-
...
|
|
1213
|
+
...V
|
|
1385
1214
|
]
|
|
1386
1215
|
},
|
|
1387
1216
|
{
|
|
@@ -2021,7 +1850,7 @@ var _t = {
|
|
|
2021
1850
|
}
|
|
2022
1851
|
],
|
|
2023
1852
|
emumerations: []
|
|
2024
|
-
},
|
|
1853
|
+
}, Ae = {
|
|
2025
1854
|
name: "Activiti",
|
|
2026
1855
|
uri: "http://activiti.org/bpmn",
|
|
2027
1856
|
prefix: "activiti",
|
|
@@ -2327,7 +2156,7 @@ var _t = {
|
|
|
2327
2156
|
isAttr: !0,
|
|
2328
2157
|
type: "String"
|
|
2329
2158
|
},
|
|
2330
|
-
...
|
|
2159
|
+
...V
|
|
2331
2160
|
]
|
|
2332
2161
|
},
|
|
2333
2162
|
{
|
|
@@ -2943,7 +2772,7 @@ var _t = {
|
|
|
2943
2772
|
}
|
|
2944
2773
|
],
|
|
2945
2774
|
emumerations: []
|
|
2946
|
-
},
|
|
2775
|
+
}, je = {
|
|
2947
2776
|
name: "Flowable",
|
|
2948
2777
|
uri: "http://flowable.org/bpmn",
|
|
2949
2778
|
prefix: "flowable",
|
|
@@ -3242,7 +3071,7 @@ var _t = {
|
|
|
3242
3071
|
isAttr: !0,
|
|
3243
3072
|
type: "String"
|
|
3244
3073
|
},
|
|
3245
|
-
...
|
|
3074
|
+
...V
|
|
3246
3075
|
]
|
|
3247
3076
|
},
|
|
3248
3077
|
{
|
|
@@ -4094,57 +3923,57 @@ var _t = {
|
|
|
4094
3923
|
}]
|
|
4095
3924
|
}
|
|
4096
3925
|
]
|
|
4097
|
-
},
|
|
4098
|
-
function
|
|
3926
|
+
}, Me = "*";
|
|
3927
|
+
function H(e) {
|
|
4099
3928
|
let t = this;
|
|
4100
3929
|
e.on("moddleCopy.canCopyProperty", function(e) {
|
|
4101
3930
|
let n = e.property, r = e.parent;
|
|
4102
3931
|
return t.canCopyProperty(n, r);
|
|
4103
3932
|
});
|
|
4104
3933
|
}
|
|
4105
|
-
|
|
4106
|
-
if (
|
|
4107
|
-
},
|
|
4108
|
-
if (
|
|
4109
|
-
let t =
|
|
4110
|
-
return !(!t ||
|
|
3934
|
+
H.$inject = ["eventBus"], H.prototype.canCopyProperty = function(e, t) {
|
|
3935
|
+
if (de(e) && !Pe(e, t) || U(e, "camunda:InputOutput") && !this.canHostInputOutput(t) || Ne(e, ["camunda:Connector", "camunda:Field"]) && !this.canHostConnector(t) || U(e, "camunda:In") && !this.canHostIn(t)) return !1;
|
|
3936
|
+
}, H.prototype.canHostInputOutput = function(e) {
|
|
3937
|
+
if (W(e, "camunda:Connector")) return !0;
|
|
3938
|
+
let t = W(e, "bpmn:FlowNode");
|
|
3939
|
+
return !(!t || Ne(t, [
|
|
4111
3940
|
"bpmn:StartEvent",
|
|
4112
3941
|
"bpmn:Gateway",
|
|
4113
3942
|
"bpmn:BoundaryEvent"
|
|
4114
|
-
]) ||
|
|
4115
|
-
},
|
|
4116
|
-
return W(
|
|
4117
|
-
},
|
|
4118
|
-
return
|
|
3943
|
+
]) || U(t, "bpmn:SubProcess") && t.get("triggeredByEvent"));
|
|
3944
|
+
}, H.prototype.canHostConnector = function(e) {
|
|
3945
|
+
return U(W(e, "camunda:ServiceTaskLike"), "bpmn:MessageEventDefinition") ? W(e, "bpmn:IntermediateThrowEvent") || W(e, "bpmn:EndEvent") : !0;
|
|
3946
|
+
}, H.prototype.canHostIn = function(e) {
|
|
3947
|
+
return W(e, "bpmn:CallActivity") ? !0 : W(e, "bpmn:SignalEventDefinition") ? W(e, "bpmn:IntermediateThrowEvent") || W(e, "bpmn:EndEvent") : !0;
|
|
4119
3948
|
};
|
|
4120
|
-
function
|
|
4121
|
-
return e &&
|
|
3949
|
+
function U(e, t) {
|
|
3950
|
+
return e && I(e.$instanceOf) && e.$instanceOf(t);
|
|
4122
3951
|
}
|
|
4123
|
-
function
|
|
4124
|
-
return
|
|
4125
|
-
return
|
|
3952
|
+
function Ne(e, t) {
|
|
3953
|
+
return L(t, function(t) {
|
|
3954
|
+
return U(e, t);
|
|
4126
3955
|
});
|
|
4127
3956
|
}
|
|
4128
|
-
function
|
|
3957
|
+
function W(e, t) {
|
|
4129
3958
|
if (!t) return e.$parent;
|
|
4130
|
-
if (
|
|
4131
|
-
if (e.$parent) return
|
|
3959
|
+
if (U(e, t)) return e;
|
|
3960
|
+
if (e.$parent) return W(e.$parent, t);
|
|
4132
3961
|
}
|
|
4133
|
-
function
|
|
3962
|
+
function Pe(e, t) {
|
|
4134
3963
|
let n = e.$type && e.$model.getTypeDescriptor(e.$type), r = n && n.meta && n.meta.allowedIn;
|
|
4135
|
-
return !r ||
|
|
4136
|
-
return
|
|
3964
|
+
return !r || Fe(r) ? !0 : L(r, function(e) {
|
|
3965
|
+
return W(t, e);
|
|
4137
3966
|
});
|
|
4138
3967
|
}
|
|
4139
|
-
function
|
|
4140
|
-
return e.indexOf(
|
|
3968
|
+
function Fe(e) {
|
|
3969
|
+
return e.indexOf(Me) !== -1;
|
|
4141
3970
|
}
|
|
4142
3971
|
//#endregion
|
|
4143
3972
|
//#region src/components/bpmn-process-designer/plugins/extension-moddle/camunda/index.js
|
|
4144
|
-
var
|
|
3973
|
+
var Ie = {
|
|
4145
3974
|
__init__: ["camundaModdleExtension"],
|
|
4146
|
-
camundaModdleExtension: ["type",
|
|
4147
|
-
},
|
|
3975
|
+
camundaModdleExtension: ["type", H]
|
|
3976
|
+
}, Le = {
|
|
4148
3977
|
FailedJobRetryTimeCycle: [
|
|
4149
3978
|
"bpmn:StartEvent",
|
|
4150
3979
|
"bpmn:BoundaryEvent",
|
|
@@ -4154,42 +3983,42 @@ var Tt = {
|
|
|
4154
3983
|
Connector: ["bpmn:EndEvent", "bpmn:IntermediateThrowEvent"],
|
|
4155
3984
|
Field: ["bpmn:EndEvent", "bpmn:IntermediateThrowEvent"]
|
|
4156
3985
|
};
|
|
4157
|
-
function
|
|
3986
|
+
function G(e, t) {
|
|
4158
3987
|
return e && typeof e.$instanceOf == "function" && e.$instanceOf(t);
|
|
4159
3988
|
}
|
|
4160
|
-
function
|
|
3989
|
+
function Re(e) {
|
|
4161
3990
|
return e && e.length;
|
|
4162
3991
|
}
|
|
4163
|
-
function
|
|
4164
|
-
return
|
|
4165
|
-
return
|
|
3992
|
+
function K(e, t) {
|
|
3993
|
+
return Re(e) && L(e, function(e) {
|
|
3994
|
+
return G(e, t);
|
|
4166
3995
|
});
|
|
4167
3996
|
}
|
|
4168
|
-
function
|
|
4169
|
-
return
|
|
4170
|
-
return
|
|
3997
|
+
function ze(e, t) {
|
|
3998
|
+
return L(t, function(t) {
|
|
3999
|
+
return G(e, t);
|
|
4171
4000
|
});
|
|
4172
4001
|
}
|
|
4173
|
-
function
|
|
4174
|
-
let r = t.name, i =
|
|
4175
|
-
return r === e &&
|
|
4002
|
+
function q(e, t, n) {
|
|
4003
|
+
let r = t.name, i = Le[r.replace(/activiti:/, "")];
|
|
4004
|
+
return r === e && ze(n, i);
|
|
4176
4005
|
}
|
|
4177
|
-
function
|
|
4006
|
+
function J(e) {
|
|
4178
4007
|
e.on("property.clone", function(e) {
|
|
4179
4008
|
let t = e.newElement, n = e.propertyDescriptor;
|
|
4180
4009
|
this.canCloneProperty(t, n);
|
|
4181
4010
|
}, this);
|
|
4182
4011
|
}
|
|
4183
|
-
|
|
4184
|
-
if (
|
|
4185
|
-
if (
|
|
4012
|
+
J.$inject = ["eventBus"], J.prototype.canCloneProperty = function(e, t) {
|
|
4013
|
+
if (q("activiti:FailedJobRetryTimeCycle", t, e)) return K(e.eventDefinitions, "bpmn:TimerEventDefinition") || K(e.eventDefinitions, "bpmn:SignalEventDefinition") || G(e.loopCharacteristics, "bpmn:MultiInstanceLoopCharacteristics");
|
|
4014
|
+
if (q("activiti:Connector", t, e) || q("activiti:Field", t, e)) return K(e.eventDefinitions, "bpmn:MessageEventDefinition");
|
|
4186
4015
|
};
|
|
4187
4016
|
//#endregion
|
|
4188
4017
|
//#region src/components/bpmn-process-designer/plugins/extension-moddle/activiti/index.js
|
|
4189
|
-
var
|
|
4018
|
+
var Be = {
|
|
4190
4019
|
__init__: ["ActivitiModdleExtension"],
|
|
4191
|
-
ActivitiModdleExtension: ["type",
|
|
4192
|
-
},
|
|
4020
|
+
ActivitiModdleExtension: ["type", J]
|
|
4021
|
+
}, Ve = {
|
|
4193
4022
|
FailedJobRetryTimeCycle: [
|
|
4194
4023
|
"bpmn:StartEvent",
|
|
4195
4024
|
"bpmn:BoundaryEvent",
|
|
@@ -4199,44 +4028,44 @@ var kt = {
|
|
|
4199
4028
|
Connector: ["bpmn:EndEvent", "bpmn:IntermediateThrowEvent"],
|
|
4200
4029
|
Field: ["bpmn:EndEvent", "bpmn:IntermediateThrowEvent"]
|
|
4201
4030
|
};
|
|
4202
|
-
function
|
|
4031
|
+
function Y(e, t) {
|
|
4203
4032
|
return e && typeof e.$instanceOf == "function" && e.$instanceOf(t);
|
|
4204
4033
|
}
|
|
4205
|
-
function
|
|
4034
|
+
function He(e) {
|
|
4206
4035
|
return e && e.length;
|
|
4207
4036
|
}
|
|
4208
|
-
function
|
|
4209
|
-
return
|
|
4210
|
-
return
|
|
4037
|
+
function X(e, t) {
|
|
4038
|
+
return He(e) && L(e, function(e) {
|
|
4039
|
+
return Y(e, t);
|
|
4211
4040
|
});
|
|
4212
4041
|
}
|
|
4213
|
-
function
|
|
4214
|
-
return
|
|
4215
|
-
return
|
|
4042
|
+
function Ue(e, t) {
|
|
4043
|
+
return L(t, function(t) {
|
|
4044
|
+
return Y(e, t);
|
|
4216
4045
|
});
|
|
4217
4046
|
}
|
|
4218
|
-
function
|
|
4219
|
-
let r = t.name, i =
|
|
4220
|
-
return r === e &&
|
|
4047
|
+
function Z(e, t, n) {
|
|
4048
|
+
let r = t.name, i = Ve[r.replace(/flowable:/, "")];
|
|
4049
|
+
return r === e && Ue(n, i);
|
|
4221
4050
|
}
|
|
4222
|
-
function
|
|
4051
|
+
function We(e) {
|
|
4223
4052
|
e.on("property.clone", function(e) {
|
|
4224
4053
|
let t = e.newElement, n = e.propertyDescriptor;
|
|
4225
4054
|
this.canCloneProperty(t, n);
|
|
4226
4055
|
}, this);
|
|
4227
4056
|
}
|
|
4228
|
-
|
|
4229
|
-
if (
|
|
4230
|
-
if (
|
|
4057
|
+
We.$inject = ["eventBus"], We.prototype.canCloneProperty = function(e, t) {
|
|
4058
|
+
if (Z("flowable:FailedJobRetryTimeCycle", t, e)) return X(e.eventDefinitions, "bpmn:TimerEventDefinition") || X(e.eventDefinitions, "bpmn:SignalEventDefinition") || Y(e.loopCharacteristics, "bpmn:MultiInstanceLoopCharacteristics");
|
|
4059
|
+
if (Z("flowable:Connector", t, e) || Z("flowable:Field", t, e)) return X(e.eventDefinitions, "bpmn:MessageEventDefinition");
|
|
4231
4060
|
};
|
|
4232
4061
|
//#endregion
|
|
4233
4062
|
//#region src/components/bpmn-process-designer/plugins/extension-moddle/flowable/index.js
|
|
4234
|
-
var
|
|
4063
|
+
var Ge = {
|
|
4235
4064
|
__init__: ["FlowableModdleExtension"],
|
|
4236
|
-
FlowableModdleExtension: ["type",
|
|
4065
|
+
FlowableModdleExtension: ["type", We]
|
|
4237
4066
|
};
|
|
4238
|
-
|
|
4239
|
-
var
|
|
4067
|
+
O.registerLanguage("xml", M), O.registerLanguage("json", N);
|
|
4068
|
+
var Ke = {
|
|
4240
4069
|
name: "ProcessDesigner",
|
|
4241
4070
|
componentName: "MyProcessDesigner",
|
|
4242
4071
|
props: {
|
|
@@ -4319,24 +4148,24 @@ var It = {
|
|
|
4319
4148
|
computed: {
|
|
4320
4149
|
additionalModules() {
|
|
4321
4150
|
let e = [];
|
|
4322
|
-
if (this.onlyCustomizeAddi) return
|
|
4323
|
-
|
|
4324
|
-
let t = { translate: ["value",
|
|
4325
|
-
return e.push(t), this.simulation && e.push(
|
|
4151
|
+
if (this.onlyCustomizeAddi) return D(this.additionalModel) ? this.additionalModel || [] : [this.additionalModel];
|
|
4152
|
+
D(this.additionalModel) ? e.push(...this.additionalModel) : this.additionalModel && e.push(this.additionalModel);
|
|
4153
|
+
let t = { translate: ["value", De(this.translations || Oe)] };
|
|
4154
|
+
return e.push(t), this.simulation && e.push(A), e.push(le), this.prefix === "camunda" && e.push(Ie), this.prefix === "flowable" && e.push(Ge), this.prefix === "activiti" && e.push(Be), e;
|
|
4326
4155
|
},
|
|
4327
4156
|
moddleExtensions() {
|
|
4328
4157
|
let e = {};
|
|
4329
4158
|
if (this.onlyCustomizeModdle) return this.moddleExtension || null;
|
|
4330
4159
|
if (this.moddleExtension) for (let t in this.moddleExtension) e[t] = this.moddleExtension[t];
|
|
4331
4160
|
return this.prefix === "activiti" && (e.activiti = {
|
|
4332
|
-
...
|
|
4333
|
-
types: [...
|
|
4161
|
+
...Ae,
|
|
4162
|
+
types: [...Ae.types, ...this.extendTypes || []]
|
|
4334
4163
|
}), this.prefix === "flowable" && (e.flowable = {
|
|
4335
|
-
...
|
|
4336
|
-
types: [...
|
|
4164
|
+
...je,
|
|
4165
|
+
types: [...je.types, ...this.extendTypes || []]
|
|
4337
4166
|
}), this.prefix === "camunda" && (e.camunda = {
|
|
4338
|
-
...
|
|
4339
|
-
types: [...
|
|
4167
|
+
...ke,
|
|
4168
|
+
types: [...ke.types, ...this.extendTypes || []]
|
|
4340
4169
|
}), e;
|
|
4341
4170
|
}
|
|
4342
4171
|
},
|
|
@@ -4348,7 +4177,7 @@ var It = {
|
|
|
4348
4177
|
},
|
|
4349
4178
|
methods: {
|
|
4350
4179
|
initBpmnModeler() {
|
|
4351
|
-
this.bpmnModeler || (this.bpmnModeler =
|
|
4180
|
+
this.bpmnModeler || (this.bpmnModeler = S(new k({
|
|
4352
4181
|
container: this.$refs["bpmn-canvas"],
|
|
4353
4182
|
keyboard: this.keyboard ? { bindTo: document } : null,
|
|
4354
4183
|
additionalModules: this.additionalModules,
|
|
@@ -4378,7 +4207,7 @@ var It = {
|
|
|
4378
4207
|
});
|
|
4379
4208
|
},
|
|
4380
4209
|
async createNewDiagram(e) {
|
|
4381
|
-
let t = this.processId || `Process_${(/* @__PURE__ */ new Date()).getTime()}`, n = this.processName || `业务流程_${(/* @__PURE__ */ new Date()).getTime()}`, r = e ||
|
|
4210
|
+
let t = this.processId || `Process_${(/* @__PURE__ */ new Date()).getTime()}`, n = this.processName || `业务流程_${(/* @__PURE__ */ new Date()).getTime()}`, r = e || Ee(t, n, this.prefix);
|
|
4382
4211
|
try {
|
|
4383
4212
|
let { warnings: e } = await this.bpmnModeler.importXML(r);
|
|
4384
4213
|
this.bpmnModeler.get("canvas").zoom("fit-viewport", "center"), e != null && e.length;
|
|
@@ -4390,7 +4219,7 @@ var It = {
|
|
|
4390
4219
|
try {
|
|
4391
4220
|
let { err: r, xml: i } = await this.bpmnModeler.saveXML();
|
|
4392
4221
|
r && console.error(`[Process Designer Warn ]: ${r.message || r}`);
|
|
4393
|
-
let { definitions: a } = new
|
|
4222
|
+
let { definitions: a } = new j().xml2js(i);
|
|
4394
4223
|
if (t = a.process._name || t, e === "xml" || e === "bpmn") {
|
|
4395
4224
|
let { href: r, filename: a } = this.setEncoded(e.toUpperCase(), t, i);
|
|
4396
4225
|
n(r, a);
|
|
@@ -4485,122 +4314,122 @@ var It = {
|
|
|
4485
4314
|
});
|
|
4486
4315
|
},
|
|
4487
4316
|
previewProcessJson() {
|
|
4488
|
-
let e = new
|
|
4317
|
+
let e = new j();
|
|
4489
4318
|
this.bpmnModeler.saveXML({ format: !0 }).then(({ xml: t }) => {
|
|
4490
4319
|
let { definitions: n } = e.xml2js(t);
|
|
4491
4320
|
n ? this.previewResult = JSON.stringify(n, null, 4) : this.previewResult = "", this.previewType = "json", this.previewModelVisible = !0;
|
|
4492
4321
|
});
|
|
4493
4322
|
}
|
|
4494
4323
|
}
|
|
4495
|
-
},
|
|
4324
|
+
}, qe = { class: "my-process-designer" }, Je = { class: "my-process-designer__header" }, Ye = { class: "my-process-designer__container" }, Xe = {
|
|
4496
4325
|
ref: "bpmn-canvas",
|
|
4497
4326
|
class: "my-process-designer__canvas flow-background-image"
|
|
4498
4327
|
};
|
|
4499
|
-
function
|
|
4500
|
-
let
|
|
4501
|
-
return
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
|
|
4505
|
-
default:
|
|
4506
|
-
|
|
4507
|
-
|
|
4328
|
+
function Ze(e, r, i, a, o, s) {
|
|
4329
|
+
let c = n, l = g, u = f, p = d, m = t;
|
|
4330
|
+
return w(), te("div", qe, [
|
|
4331
|
+
y("div", Je, [
|
|
4332
|
+
T(e.$slots, "control-header", {}, () => [
|
|
4333
|
+
x(u, { key: "file-control" }, {
|
|
4334
|
+
default: E(() => [
|
|
4335
|
+
T(e.$slots, "toolbar-buttons"),
|
|
4336
|
+
i.simulation ? (w(), _(l, {
|
|
4508
4337
|
key: 0,
|
|
4509
4338
|
effect: "light",
|
|
4510
4339
|
content: "导入流程"
|
|
4511
4340
|
}, {
|
|
4512
|
-
default:
|
|
4513
|
-
size:
|
|
4514
|
-
type:
|
|
4341
|
+
default: E(() => [x(c, {
|
|
4342
|
+
size: i.headerButtonSize,
|
|
4343
|
+
type: i.headerButtonType,
|
|
4515
4344
|
icon: "el-icon-folder-opened",
|
|
4516
|
-
onClick:
|
|
4345
|
+
onClick: r[0] || (r[0] = (t) => e.$refs.refFile.click())
|
|
4517
4346
|
}, {
|
|
4518
|
-
default:
|
|
4347
|
+
default: E(() => [...r[17] || (r[17] = [b(" 导入 ", -1)])]),
|
|
4519
4348
|
_: 1
|
|
4520
4349
|
}, 8, ["size", "type"])]),
|
|
4521
4350
|
_: 1
|
|
4522
|
-
})) :
|
|
4523
|
-
|
|
4524
|
-
content:
|
|
4525
|
-
|
|
4526
|
-
size:
|
|
4351
|
+
})) : v("v-if", !0),
|
|
4352
|
+
x(l, { effect: "light" }, {
|
|
4353
|
+
content: E(() => [
|
|
4354
|
+
x(c, {
|
|
4355
|
+
size: i.headerButtonSize,
|
|
4527
4356
|
text: "",
|
|
4528
|
-
onClick:
|
|
4357
|
+
onClick: r[1] || (r[1] = (e) => s.downloadProcessAsXml())
|
|
4529
4358
|
}, {
|
|
4530
|
-
default:
|
|
4359
|
+
default: E(() => [...r[19] || (r[19] = [b("下载为XML文件", -1)])]),
|
|
4531
4360
|
_: 1
|
|
4532
4361
|
}, 8, ["size"]),
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
size:
|
|
4362
|
+
r[22] || (r[22] = y("br", null, null, -1)),
|
|
4363
|
+
x(c, {
|
|
4364
|
+
size: i.headerButtonSize,
|
|
4536
4365
|
text: "",
|
|
4537
|
-
onClick:
|
|
4366
|
+
onClick: r[2] || (r[2] = (e) => s.downloadProcessAsSvg())
|
|
4538
4367
|
}, {
|
|
4539
|
-
default:
|
|
4368
|
+
default: E(() => [...r[20] || (r[20] = [b("下载为SVG文件", -1)])]),
|
|
4540
4369
|
_: 1
|
|
4541
4370
|
}, 8, ["size"]),
|
|
4542
|
-
|
|
4543
|
-
|
|
4544
|
-
size:
|
|
4371
|
+
r[23] || (r[23] = y("br", null, null, -1)),
|
|
4372
|
+
x(c, {
|
|
4373
|
+
size: i.headerButtonSize,
|
|
4545
4374
|
text: "",
|
|
4546
|
-
onClick:
|
|
4375
|
+
onClick: r[3] || (r[3] = (e) => s.downloadProcessAsBpmn())
|
|
4547
4376
|
}, {
|
|
4548
|
-
default:
|
|
4377
|
+
default: E(() => [...r[21] || (r[21] = [b(" 下载为BPMN文件 ", -1)])]),
|
|
4549
4378
|
_: 1
|
|
4550
4379
|
}, 8, ["size"])
|
|
4551
4380
|
]),
|
|
4552
|
-
default:
|
|
4553
|
-
size:
|
|
4554
|
-
type:
|
|
4381
|
+
default: E(() => [x(c, {
|
|
4382
|
+
size: i.headerButtonSize,
|
|
4383
|
+
type: i.headerButtonType,
|
|
4555
4384
|
icon: "el-icon-download"
|
|
4556
4385
|
}, {
|
|
4557
|
-
default:
|
|
4386
|
+
default: E(() => [...r[18] || (r[18] = [b(" 下载 ", -1)])]),
|
|
4558
4387
|
_: 1
|
|
4559
4388
|
}, 8, ["size", "type"])]),
|
|
4560
4389
|
_: 1
|
|
4561
4390
|
}),
|
|
4562
|
-
|
|
4563
|
-
content:
|
|
4564
|
-
|
|
4565
|
-
size:
|
|
4391
|
+
x(l, { effect: "light" }, {
|
|
4392
|
+
content: E(() => [
|
|
4393
|
+
x(c, {
|
|
4394
|
+
size: i.headerButtonSize,
|
|
4566
4395
|
text: "",
|
|
4567
|
-
onClick:
|
|
4396
|
+
onClick: s.previewProcessXML
|
|
4568
4397
|
}, {
|
|
4569
|
-
default:
|
|
4398
|
+
default: E(() => [...r[24] || (r[24] = [b("预览XML", -1)])]),
|
|
4570
4399
|
_: 1
|
|
4571
4400
|
}, 8, ["size", "onClick"]),
|
|
4572
|
-
|
|
4573
|
-
|
|
4574
|
-
size:
|
|
4401
|
+
r[26] || (r[26] = y("br", null, null, -1)),
|
|
4402
|
+
x(c, {
|
|
4403
|
+
size: i.headerButtonSize,
|
|
4575
4404
|
text: "",
|
|
4576
|
-
onClick:
|
|
4405
|
+
onClick: s.previewProcessJson
|
|
4577
4406
|
}, {
|
|
4578
|
-
default:
|
|
4407
|
+
default: E(() => [...r[25] || (r[25] = [b("预览JSON", -1)])]),
|
|
4579
4408
|
_: 1
|
|
4580
4409
|
}, 8, ["size", "onClick"])
|
|
4581
4410
|
]),
|
|
4582
|
-
default:
|
|
4583
|
-
size:
|
|
4584
|
-
type:
|
|
4411
|
+
default: E(() => [x(c, {
|
|
4412
|
+
size: i.headerButtonSize,
|
|
4413
|
+
type: i.headerButtonType,
|
|
4585
4414
|
icon: "el-icon-view"
|
|
4586
4415
|
}, {
|
|
4587
|
-
default:
|
|
4416
|
+
default: E(() => [...r[27] || (r[27] = [b("预览", -1)])]),
|
|
4588
4417
|
_: 1
|
|
4589
4418
|
}, 8, ["size", "type"])]),
|
|
4590
4419
|
_: 1
|
|
4591
4420
|
}),
|
|
4592
|
-
|
|
4421
|
+
i.simulation ? (w(), _(l, {
|
|
4593
4422
|
key: 1,
|
|
4594
4423
|
effect: "light",
|
|
4595
|
-
content:
|
|
4424
|
+
content: o.simulationStatus ? "退出模拟" : "开启模拟"
|
|
4596
4425
|
}, {
|
|
4597
|
-
default:
|
|
4598
|
-
size:
|
|
4599
|
-
type:
|
|
4426
|
+
default: E(() => [x(c, {
|
|
4427
|
+
size: i.headerButtonSize,
|
|
4428
|
+
type: i.headerButtonType,
|
|
4600
4429
|
icon: "el-icon-cpu",
|
|
4601
|
-
onClick:
|
|
4430
|
+
onClick: s.processSimulation
|
|
4602
4431
|
}, {
|
|
4603
|
-
default:
|
|
4432
|
+
default: E(() => [...r[28] || (r[28] = [b(" 模拟 ", -1)])]),
|
|
4604
4433
|
_: 1
|
|
4605
4434
|
}, 8, [
|
|
4606
4435
|
"size",
|
|
@@ -4608,165 +4437,165 @@ function Vt(e, t, n, r, i, a) {
|
|
|
4608
4437
|
"onClick"
|
|
4609
4438
|
])]),
|
|
4610
4439
|
_: 1
|
|
4611
|
-
}, 8, ["content"])) :
|
|
4440
|
+
}, 8, ["content"])) : v("v-if", !0)
|
|
4612
4441
|
]),
|
|
4613
4442
|
_: 3
|
|
4614
4443
|
}),
|
|
4615
|
-
|
|
4616
|
-
default:
|
|
4617
|
-
|
|
4444
|
+
x(u, { key: "align-control" }, {
|
|
4445
|
+
default: E(() => [
|
|
4446
|
+
x(l, {
|
|
4618
4447
|
effect: "light",
|
|
4619
4448
|
content: "向左对齐"
|
|
4620
4449
|
}, {
|
|
4621
|
-
default:
|
|
4622
|
-
size:
|
|
4450
|
+
default: E(() => [x(c, {
|
|
4451
|
+
size: i.headerButtonSize,
|
|
4623
4452
|
class: "align align-left",
|
|
4624
4453
|
icon: "el-icon-s-data",
|
|
4625
|
-
onClick:
|
|
4454
|
+
onClick: r[4] || (r[4] = (e) => s.elementsAlign("left"))
|
|
4626
4455
|
}, null, 8, ["size"])]),
|
|
4627
4456
|
_: 1
|
|
4628
4457
|
}),
|
|
4629
|
-
|
|
4458
|
+
x(l, {
|
|
4630
4459
|
effect: "light",
|
|
4631
4460
|
content: "向右对齐"
|
|
4632
4461
|
}, {
|
|
4633
|
-
default:
|
|
4634
|
-
size:
|
|
4462
|
+
default: E(() => [x(c, {
|
|
4463
|
+
size: i.headerButtonSize,
|
|
4635
4464
|
class: "align align-right",
|
|
4636
4465
|
icon: "el-icon-s-data",
|
|
4637
|
-
onClick:
|
|
4466
|
+
onClick: r[5] || (r[5] = (e) => s.elementsAlign("right"))
|
|
4638
4467
|
}, null, 8, ["size"])]),
|
|
4639
4468
|
_: 1
|
|
4640
4469
|
}),
|
|
4641
|
-
|
|
4470
|
+
x(l, {
|
|
4642
4471
|
effect: "light",
|
|
4643
4472
|
content: "向上对齐"
|
|
4644
4473
|
}, {
|
|
4645
|
-
default:
|
|
4646
|
-
size:
|
|
4474
|
+
default: E(() => [x(c, {
|
|
4475
|
+
size: i.headerButtonSize,
|
|
4647
4476
|
class: "align align-top",
|
|
4648
4477
|
icon: "el-icon-s-data",
|
|
4649
|
-
onClick:
|
|
4478
|
+
onClick: r[6] || (r[6] = (e) => s.elementsAlign("top"))
|
|
4650
4479
|
}, null, 8, ["size"])]),
|
|
4651
4480
|
_: 1
|
|
4652
4481
|
}),
|
|
4653
|
-
|
|
4482
|
+
x(l, {
|
|
4654
4483
|
effect: "light",
|
|
4655
4484
|
content: "向下对齐"
|
|
4656
4485
|
}, {
|
|
4657
|
-
default:
|
|
4658
|
-
size:
|
|
4486
|
+
default: E(() => [x(c, {
|
|
4487
|
+
size: i.headerButtonSize,
|
|
4659
4488
|
class: "align align-bottom",
|
|
4660
4489
|
icon: "el-icon-s-data",
|
|
4661
|
-
onClick:
|
|
4490
|
+
onClick: r[7] || (r[7] = (e) => s.elementsAlign("bottom"))
|
|
4662
4491
|
}, null, 8, ["size"])]),
|
|
4663
4492
|
_: 1
|
|
4664
4493
|
}),
|
|
4665
|
-
|
|
4494
|
+
x(l, {
|
|
4666
4495
|
effect: "light",
|
|
4667
4496
|
content: "水平居中"
|
|
4668
4497
|
}, {
|
|
4669
|
-
default:
|
|
4670
|
-
size:
|
|
4498
|
+
default: E(() => [x(c, {
|
|
4499
|
+
size: i.headerButtonSize,
|
|
4671
4500
|
class: "align align-center",
|
|
4672
4501
|
icon: "el-icon-s-data",
|
|
4673
|
-
onClick:
|
|
4502
|
+
onClick: r[8] || (r[8] = (e) => s.elementsAlign("center"))
|
|
4674
4503
|
}, null, 8, ["size"])]),
|
|
4675
4504
|
_: 1
|
|
4676
4505
|
}),
|
|
4677
|
-
|
|
4506
|
+
x(l, {
|
|
4678
4507
|
effect: "light",
|
|
4679
4508
|
content: "垂直居中"
|
|
4680
4509
|
}, {
|
|
4681
|
-
default:
|
|
4682
|
-
size:
|
|
4510
|
+
default: E(() => [x(c, {
|
|
4511
|
+
size: i.headerButtonSize,
|
|
4683
4512
|
class: "align align-middle",
|
|
4684
4513
|
icon: "el-icon-s-data",
|
|
4685
|
-
onClick:
|
|
4514
|
+
onClick: r[9] || (r[9] = (e) => s.elementsAlign("middle"))
|
|
4686
4515
|
}, null, 8, ["size"])]),
|
|
4687
4516
|
_: 1
|
|
4688
4517
|
})
|
|
4689
4518
|
]),
|
|
4690
4519
|
_: 1
|
|
4691
4520
|
}),
|
|
4692
|
-
|
|
4693
|
-
default:
|
|
4694
|
-
|
|
4521
|
+
x(u, { key: "scale-control" }, {
|
|
4522
|
+
default: E(() => [
|
|
4523
|
+
x(l, {
|
|
4695
4524
|
effect: "light",
|
|
4696
4525
|
content: "缩小视图"
|
|
4697
4526
|
}, {
|
|
4698
|
-
default:
|
|
4699
|
-
size:
|
|
4700
|
-
disabled:
|
|
4527
|
+
default: E(() => [x(c, {
|
|
4528
|
+
size: i.headerButtonSize,
|
|
4529
|
+
disabled: o.defaultZoom < .2,
|
|
4701
4530
|
icon: "el-icon-zoom-out",
|
|
4702
|
-
onClick:
|
|
4531
|
+
onClick: r[10] || (r[10] = (e) => s.processZoomOut())
|
|
4703
4532
|
}, null, 8, ["size", "disabled"])]),
|
|
4704
4533
|
_: 1
|
|
4705
4534
|
}),
|
|
4706
|
-
|
|
4707
|
-
default:
|
|
4535
|
+
x(c, { size: i.headerButtonSize }, {
|
|
4536
|
+
default: E(() => [b(ae(`${Math.floor(o.defaultZoom * 10 * 10)}%`), 1)]),
|
|
4708
4537
|
_: 1
|
|
4709
4538
|
}, 8, ["size"]),
|
|
4710
|
-
|
|
4539
|
+
x(l, {
|
|
4711
4540
|
effect: "light",
|
|
4712
4541
|
content: "放大视图"
|
|
4713
4542
|
}, {
|
|
4714
|
-
default:
|
|
4715
|
-
size:
|
|
4716
|
-
disabled:
|
|
4543
|
+
default: E(() => [x(c, {
|
|
4544
|
+
size: i.headerButtonSize,
|
|
4545
|
+
disabled: o.defaultZoom > 4,
|
|
4717
4546
|
icon: "el-icon-zoom-in",
|
|
4718
|
-
onClick:
|
|
4547
|
+
onClick: r[11] || (r[11] = (e) => s.processZoomIn())
|
|
4719
4548
|
}, null, 8, ["size", "disabled"])]),
|
|
4720
4549
|
_: 1
|
|
4721
4550
|
}),
|
|
4722
|
-
|
|
4551
|
+
x(l, {
|
|
4723
4552
|
effect: "light",
|
|
4724
4553
|
content: "重置视图并居中"
|
|
4725
4554
|
}, {
|
|
4726
|
-
default:
|
|
4727
|
-
size:
|
|
4555
|
+
default: E(() => [x(c, {
|
|
4556
|
+
size: i.headerButtonSize,
|
|
4728
4557
|
icon: "el-icon-c-scale-to-original",
|
|
4729
|
-
onClick:
|
|
4558
|
+
onClick: r[12] || (r[12] = (e) => s.processReZoom())
|
|
4730
4559
|
}, null, 8, ["size"])]),
|
|
4731
4560
|
_: 1
|
|
4732
4561
|
})
|
|
4733
4562
|
]),
|
|
4734
4563
|
_: 1
|
|
4735
4564
|
}),
|
|
4736
|
-
|
|
4737
|
-
default:
|
|
4738
|
-
|
|
4565
|
+
x(u, { key: "stack-control" }, {
|
|
4566
|
+
default: E(() => [
|
|
4567
|
+
x(l, {
|
|
4739
4568
|
effect: "light",
|
|
4740
4569
|
content: "撤销"
|
|
4741
4570
|
}, {
|
|
4742
|
-
default:
|
|
4743
|
-
size:
|
|
4744
|
-
disabled: !
|
|
4571
|
+
default: E(() => [x(c, {
|
|
4572
|
+
size: i.headerButtonSize,
|
|
4573
|
+
disabled: !o.revocable,
|
|
4745
4574
|
icon: "el-icon-refresh-left",
|
|
4746
|
-
onClick:
|
|
4575
|
+
onClick: r[13] || (r[13] = (e) => s.processUndo())
|
|
4747
4576
|
}, null, 8, ["size", "disabled"])]),
|
|
4748
4577
|
_: 1
|
|
4749
4578
|
}),
|
|
4750
|
-
|
|
4579
|
+
x(l, {
|
|
4751
4580
|
effect: "light",
|
|
4752
4581
|
content: "恢复"
|
|
4753
4582
|
}, {
|
|
4754
|
-
default:
|
|
4755
|
-
size:
|
|
4756
|
-
disabled: !
|
|
4583
|
+
default: E(() => [x(c, {
|
|
4584
|
+
size: i.headerButtonSize,
|
|
4585
|
+
disabled: !o.recoverable,
|
|
4757
4586
|
icon: "el-icon-refresh-right",
|
|
4758
|
-
onClick:
|
|
4587
|
+
onClick: r[14] || (r[14] = (e) => s.processRedo())
|
|
4759
4588
|
}, null, 8, ["size", "disabled"])]),
|
|
4760
4589
|
_: 1
|
|
4761
4590
|
}),
|
|
4762
|
-
|
|
4591
|
+
x(l, {
|
|
4763
4592
|
effect: "light",
|
|
4764
4593
|
content: "重新绘制"
|
|
4765
4594
|
}, {
|
|
4766
|
-
default:
|
|
4767
|
-
size:
|
|
4595
|
+
default: E(() => [x(c, {
|
|
4596
|
+
size: i.headerButtonSize,
|
|
4768
4597
|
icon: "el-icon-refresh",
|
|
4769
|
-
onClick:
|
|
4598
|
+
onClick: s.processRestart
|
|
4770
4599
|
}, null, 8, ["size", "onClick"])]),
|
|
4771
4600
|
_: 1
|
|
4772
4601
|
})
|
|
@@ -4774,20 +4603,20 @@ function Vt(e, t, n, r, i, a) {
|
|
|
4774
4603
|
_: 1
|
|
4775
4604
|
})
|
|
4776
4605
|
]),
|
|
4777
|
-
|
|
4778
|
-
|
|
4606
|
+
v(" 用于打开本地文件"),
|
|
4607
|
+
y("input", {
|
|
4779
4608
|
id: "files",
|
|
4780
4609
|
ref: "refFile",
|
|
4781
4610
|
type: "file",
|
|
4782
4611
|
style: { display: "none" },
|
|
4783
4612
|
accept: ".xml, .bpmn",
|
|
4784
|
-
onChange:
|
|
4613
|
+
onChange: r[15] || (r[15] = (...e) => s.importLocalFile && s.importLocalFile(...e))
|
|
4785
4614
|
}, null, 544)
|
|
4786
4615
|
]),
|
|
4787
|
-
|
|
4788
|
-
|
|
4789
|
-
modelValue:
|
|
4790
|
-
"onUpdate:modelValue":
|
|
4616
|
+
y("div", Ye, [y("div", Xe, null, 512)]),
|
|
4617
|
+
x(m, {
|
|
4618
|
+
modelValue: o.previewModelVisible,
|
|
4619
|
+
"onUpdate:modelValue": r[16] || (r[16] = (e) => o.previewModelVisible = e),
|
|
4791
4620
|
title: "预览",
|
|
4792
4621
|
class: "flow-dialog",
|
|
4793
4622
|
width: "60vw",
|
|
@@ -4795,26 +4624,26 @@ function Vt(e, t, n, r, i, a) {
|
|
|
4795
4624
|
"body-padding": !1,
|
|
4796
4625
|
"destroy-on-close": ""
|
|
4797
4626
|
}, {
|
|
4798
|
-
default:
|
|
4799
|
-
language:
|
|
4800
|
-
code:
|
|
4627
|
+
default: E(() => [x(p, {
|
|
4628
|
+
language: o.previewType,
|
|
4629
|
+
code: o.previewResult
|
|
4801
4630
|
}, null, 8, ["language", "code"])]),
|
|
4802
4631
|
_: 1
|
|
4803
4632
|
}, 8, ["modelValue"])
|
|
4804
4633
|
]);
|
|
4805
4634
|
}
|
|
4806
|
-
var
|
|
4635
|
+
var Qe = /* @__PURE__ */ e(Ke, [["render", Ze]]);
|
|
4807
4636
|
//#endregion
|
|
4808
4637
|
//#region src/components/bpmn-process-designer/plugins/content-pad/contentPadProvider.js
|
|
4809
|
-
function
|
|
4638
|
+
function Q(e, t, n, r, i, a, o, s, c, l, u, d, f) {
|
|
4810
4639
|
e = e || {}, r.registerProvider(this), this._contextPad = r, this._modeling = i, this._elementFactory = a, this._connect = o, this._create = s, this._popupMenu = c, this._canvas = l, this._rules = u, this._translate = d, e.autoPlace !== !1 && (this._autoPlace = t.get("autoPlace", !1)), n.on("create.end", 250, function(e) {
|
|
4811
4640
|
let t = e.context.shape;
|
|
4812
|
-
if (!
|
|
4641
|
+
if (!he(e) || !r.isOpen(t)) return;
|
|
4813
4642
|
let n = r.getEntries(t);
|
|
4814
4643
|
n.replace && n.replace.action.click(e, t);
|
|
4815
4644
|
});
|
|
4816
4645
|
}
|
|
4817
|
-
|
|
4646
|
+
Q.$inject = [
|
|
4818
4647
|
"config.contextPad",
|
|
4819
4648
|
"injector",
|
|
4820
4649
|
"eventBus",
|
|
@@ -4828,7 +4657,7 @@ Ut.$inject = [
|
|
|
4828
4657
|
"rules",
|
|
4829
4658
|
"translate",
|
|
4830
4659
|
"elementRegistry"
|
|
4831
|
-
],
|
|
4660
|
+
], Q.prototype.getContextPadEntries = function(e) {
|
|
4832
4661
|
let t = this._contextPad, n = this._modeling, r = this._elementFactory, i = this._connect, a = this._create, o = this._popupMenu, s = this._canvas, c = this._rules, l = this._autoPlace, u = this._translate, d = {};
|
|
4833
4662
|
if (e.type === "label") return d;
|
|
4834
4663
|
let f = e.businessObject;
|
|
@@ -4838,17 +4667,17 @@ Ut.$inject = [
|
|
|
4838
4667
|
function m() {
|
|
4839
4668
|
n.removeElements([e]);
|
|
4840
4669
|
}
|
|
4841
|
-
function
|
|
4670
|
+
function ee(e) {
|
|
4842
4671
|
let n = s.getContainer(), r = t.getPad(e).html, i = n.getBoundingClientRect(), a = r.getBoundingClientRect(), o = a.top - i.top;
|
|
4843
4672
|
return {
|
|
4844
4673
|
x: a.left - i.left,
|
|
4845
4674
|
y: o + a.height + 5
|
|
4846
4675
|
};
|
|
4847
4676
|
}
|
|
4848
|
-
function
|
|
4677
|
+
function h(e, t, n, i) {
|
|
4849
4678
|
typeof n != "string" && (i = n, n = u("Append {type}", { type: e.replace(/^bpmn:/, "") }));
|
|
4850
4679
|
function o(t, n) {
|
|
4851
|
-
let o = r.createShape(
|
|
4680
|
+
let o = r.createShape(P({ type: e }, i));
|
|
4852
4681
|
a.start(t, o, { source: n });
|
|
4853
4682
|
}
|
|
4854
4683
|
return {
|
|
@@ -4858,37 +4687,37 @@ Ut.$inject = [
|
|
|
4858
4687
|
action: {
|
|
4859
4688
|
dragstart: o,
|
|
4860
4689
|
click: l ? function(t, n) {
|
|
4861
|
-
let a = r.createShape(
|
|
4690
|
+
let a = r.createShape(P({ type: e }, i));
|
|
4862
4691
|
l.append(n, a);
|
|
4863
4692
|
} : o
|
|
4864
4693
|
}
|
|
4865
4694
|
};
|
|
4866
4695
|
}
|
|
4867
|
-
function
|
|
4696
|
+
function g(e) {
|
|
4868
4697
|
return function(r, i) {
|
|
4869
4698
|
n.splitLane(i, e), t.open(i, !0);
|
|
4870
4699
|
};
|
|
4871
4700
|
}
|
|
4872
|
-
if (
|
|
4873
|
-
let t =
|
|
4874
|
-
|
|
4701
|
+
if (z(f, ["bpmn:Lane", "bpmn:Participant"]) && pe(f)) {
|
|
4702
|
+
let t = me(e);
|
|
4703
|
+
P(d, { "lane-insert-above": {
|
|
4875
4704
|
group: "lane-insert-above",
|
|
4876
4705
|
className: "bpmn-icon-lane-insert-above",
|
|
4877
4706
|
title: u("Add Lane above"),
|
|
4878
4707
|
action: { click: function(e, t) {
|
|
4879
4708
|
n.addLane(t, "top");
|
|
4880
4709
|
} }
|
|
4881
|
-
} }), t.length < 2 && (e.height >= 120 &&
|
|
4710
|
+
} }), t.length < 2 && (e.height >= 120 && P(d, { "lane-divide-two": {
|
|
4882
4711
|
group: "lane-divide",
|
|
4883
4712
|
className: "bpmn-icon-lane-divide-two",
|
|
4884
4713
|
title: u("Divide into two Lanes"),
|
|
4885
|
-
action: { click:
|
|
4886
|
-
} }), e.height >= 180 &&
|
|
4714
|
+
action: { click: g(2) }
|
|
4715
|
+
} }), e.height >= 180 && P(d, { "lane-divide-three": {
|
|
4887
4716
|
group: "lane-divide",
|
|
4888
4717
|
className: "bpmn-icon-lane-divide-three",
|
|
4889
4718
|
title: u("Divide into three Lanes"),
|
|
4890
|
-
action: { click:
|
|
4891
|
-
} })),
|
|
4719
|
+
action: { click: g(3) }
|
|
4720
|
+
} })), P(d, { "lane-insert-below": {
|
|
4892
4721
|
group: "lane-insert-below",
|
|
4893
4722
|
className: "bpmn-icon-lane-insert-below",
|
|
4894
4723
|
title: u("Add Lane below"),
|
|
@@ -4897,35 +4726,35 @@ Ut.$inject = [
|
|
|
4897
4726
|
} }
|
|
4898
4727
|
} });
|
|
4899
4728
|
}
|
|
4900
|
-
|
|
4901
|
-
"append.receive-task":
|
|
4902
|
-
"append.message-intermediate-event":
|
|
4903
|
-
"append.timer-intermediate-event":
|
|
4904
|
-
"append.condition-intermediate-event":
|
|
4905
|
-
"append.signal-intermediate-event":
|
|
4906
|
-
}) :
|
|
4907
|
-
"append.end-event":
|
|
4908
|
-
"append.gateway":
|
|
4909
|
-
"append.append-task":
|
|
4910
|
-
"append.intermediate-event":
|
|
4911
|
-
})), o.isEmpty(e, "bpmn-replace") ||
|
|
4729
|
+
R(f, "bpmn:FlowNode") && (R(f, "bpmn:EventBasedGateway") ? P(d, {
|
|
4730
|
+
"append.receive-task": h("bpmn:ReceiveTask", "bpmn-icon-receive-task", u("Append ReceiveTask")),
|
|
4731
|
+
"append.message-intermediate-event": h("bpmn:IntermediateCatchEvent", "bpmn-icon-intermediate-event-catch-message", u("Append MessageIntermediateCatchEvent"), { eventDefinitionType: "bpmn:MessageEventDefinition" }),
|
|
4732
|
+
"append.timer-intermediate-event": h("bpmn:IntermediateCatchEvent", "bpmn-icon-intermediate-event-catch-timer", u("Append TimerIntermediateCatchEvent"), { eventDefinitionType: "bpmn:TimerEventDefinition" }),
|
|
4733
|
+
"append.condition-intermediate-event": h("bpmn:IntermediateCatchEvent", "bpmn-icon-intermediate-event-catch-condition", u("Append ConditionIntermediateCatchEvent"), { eventDefinitionType: "bpmn:ConditionalEventDefinition" }),
|
|
4734
|
+
"append.signal-intermediate-event": h("bpmn:IntermediateCatchEvent", "bpmn-icon-intermediate-event-catch-signal", u("Append SignalIntermediateCatchEvent"), { eventDefinitionType: "bpmn:SignalEventDefinition" })
|
|
4735
|
+
}) : $e(f, "bpmn:BoundaryEvent", "bpmn:CompensateEventDefinition") ? P(d, { "append.compensation-activity": h("bpmn:Task", "bpmn-icon-task", u("Append compensation activity"), { isForCompensation: !0 }) }) : !R(f, "bpmn:EndEvent") && !f.isForCompensation && !$e(f, "bpmn:IntermediateThrowEvent", "bpmn:LinkEventDefinition") && !fe(f) && P(d, {
|
|
4736
|
+
"append.end-event": h("bpmn:EndEvent", "bpmn-icon-end-event-none", u("Append EndEvent")),
|
|
4737
|
+
"append.gateway": h("bpmn:ExclusiveGateway", "bpmn-icon-gateway-none", u("Append Gateway")),
|
|
4738
|
+
"append.append-task": h("bpmn:UserTask", "bpmn-icon-user-task", u("Append Task")),
|
|
4739
|
+
"append.intermediate-event": h("bpmn:IntermediateThrowEvent", "bpmn-icon-intermediate-event-none", u("Append Intermediate/Boundary Event"))
|
|
4740
|
+
})), o.isEmpty(e, "bpmn-replace") || P(d, { replace: {
|
|
4912
4741
|
group: "edit",
|
|
4913
4742
|
className: "bpmn-icon-screw-wrench",
|
|
4914
4743
|
title: u("Change type"),
|
|
4915
4744
|
action: { click: function(e, t) {
|
|
4916
|
-
let n =
|
|
4745
|
+
let n = P(ee(t), { cursor: {
|
|
4917
4746
|
x: e.x,
|
|
4918
4747
|
y: e.y
|
|
4919
4748
|
} });
|
|
4920
4749
|
o.open(t, "bpmn-replace", n);
|
|
4921
4750
|
} }
|
|
4922
|
-
} }),
|
|
4751
|
+
} }), z(f, [
|
|
4923
4752
|
"bpmn:FlowNode",
|
|
4924
4753
|
"bpmn:InteractionNode",
|
|
4925
4754
|
"bpmn:DataObjectReference",
|
|
4926
4755
|
"bpmn:DataStoreReference"
|
|
4927
|
-
]) &&
|
|
4928
|
-
"append.text-annotation":
|
|
4756
|
+
]) && P(d, {
|
|
4757
|
+
"append.text-annotation": h("bpmn:TextAnnotation", "bpmn-icon-text-annotation"),
|
|
4929
4758
|
connect: {
|
|
4930
4759
|
group: "connect",
|
|
4931
4760
|
className: "bpmn-icon-connection-multi",
|
|
@@ -4935,7 +4764,7 @@ Ut.$inject = [
|
|
|
4935
4764
|
dragstart: p
|
|
4936
4765
|
}
|
|
4937
4766
|
}
|
|
4938
|
-
}),
|
|
4767
|
+
}), z(f, ["bpmn:DataObjectReference", "bpmn:DataStoreReference"]) && P(d, { connect: {
|
|
4939
4768
|
group: "connect",
|
|
4940
4769
|
className: "bpmn-icon-connection-multi",
|
|
4941
4770
|
title: u("Connect using DataInputAssociation"),
|
|
@@ -4943,38 +4772,38 @@ Ut.$inject = [
|
|
|
4943
4772
|
click: p,
|
|
4944
4773
|
dragstart: p
|
|
4945
4774
|
}
|
|
4946
|
-
} }),
|
|
4947
|
-
let
|
|
4948
|
-
return
|
|
4775
|
+
} }), R(f, "bpmn:Group") && P(d, { "append.text-annotation": h("bpmn:TextAnnotation", "bpmn-icon-text-annotation") });
|
|
4776
|
+
let _ = c.allowed("elements.delete", { elements: [e] });
|
|
4777
|
+
return ue(_) && (_ = _[0] === e), _ && P(d, { delete: {
|
|
4949
4778
|
group: "edit",
|
|
4950
4779
|
className: "bpmn-icon-trash",
|
|
4951
4780
|
title: u("Remove"),
|
|
4952
4781
|
action: { click: m }
|
|
4953
4782
|
} }), d;
|
|
4954
4783
|
};
|
|
4955
|
-
function
|
|
4784
|
+
function $e(e, t, n) {
|
|
4956
4785
|
let r = e.$instanceOf(t), i = !1;
|
|
4957
|
-
return
|
|
4786
|
+
return F(e.eventDefinitions || [], function(e) {
|
|
4958
4787
|
e.$type === n && (i = !0);
|
|
4959
4788
|
}), r && i;
|
|
4960
4789
|
}
|
|
4961
4790
|
//#endregion
|
|
4962
4791
|
//#region src/components/bpmn-process-designer/plugins/content-pad/index.js
|
|
4963
|
-
var
|
|
4792
|
+
var et = {
|
|
4964
4793
|
__init__: ["contextPadProvider"],
|
|
4965
|
-
contextPadProvider: ["type",
|
|
4794
|
+
contextPadProvider: ["type", Q]
|
|
4966
4795
|
};
|
|
4967
4796
|
//#endregion
|
|
4968
4797
|
//#region src/components/bpmn-process-designer/plugins/palette/CustomPalette.js
|
|
4969
|
-
function
|
|
4970
|
-
|
|
4798
|
+
function $(e, t, n, r, i, a, o, s, c) {
|
|
4799
|
+
ge.call(this, e, t, n, r, i, a, o, s, c, 2e3), this._create = t, this._elementFactory = n, this._spaceTool = r, this._lassoTool = i, this._handTool = a, this._globalConnect = o, this._moddle = s, this._translate = c;
|
|
4971
4800
|
}
|
|
4972
|
-
var
|
|
4973
|
-
|
|
4801
|
+
var tt = function() {};
|
|
4802
|
+
tt.prototype = ge.prototype, tt.prototype.getPaletteEntries = function() {
|
|
4974
4803
|
let e = {}, t = this._create, n = this._elementFactory, r = this._spaceTool, i = this._lassoTool, a = this._handTool, o = this._globalConnect, s = this._translate;
|
|
4975
4804
|
function c(e, r, i, a, o) {
|
|
4976
4805
|
function c(r) {
|
|
4977
|
-
let i = n.createShape(
|
|
4806
|
+
let i = n.createShape(P({ type: e }, o));
|
|
4978
4807
|
e === "bpmn:UserTask" && (i.businessObject.candidateUsers = "${handlers}"), o && (i.businessObject.di.isExpanded = o.isExpanded), t.start(r, i);
|
|
4979
4808
|
}
|
|
4980
4809
|
let l = e.replace(/^bpmn:/, "");
|
|
@@ -5005,7 +4834,7 @@ $.prototype = Ue.prototype, $.prototype.getPaletteEntries = function() {
|
|
|
5005
4834
|
function u(e) {
|
|
5006
4835
|
t.start(e, n.createParticipantShape());
|
|
5007
4836
|
}
|
|
5008
|
-
return
|
|
4837
|
+
return P(e, {
|
|
5009
4838
|
"hand-tool": {
|
|
5010
4839
|
group: "tools",
|
|
5011
4840
|
className: "bpmn-icon-hand-tool",
|
|
@@ -5070,7 +4899,7 @@ $.prototype = Ue.prototype, $.prototype.getPaletteEntries = function() {
|
|
|
5070
4899
|
}
|
|
5071
4900
|
}
|
|
5072
4901
|
}), e;
|
|
5073
|
-
},
|
|
4902
|
+
}, $.$inject = [
|
|
5074
4903
|
"palette",
|
|
5075
4904
|
"create",
|
|
5076
4905
|
"elementFactory",
|
|
@@ -5080,19 +4909,19 @@ $.prototype = Ue.prototype, $.prototype.getPaletteEntries = function() {
|
|
|
5080
4909
|
"globalConnect",
|
|
5081
4910
|
"moddle",
|
|
5082
4911
|
"translate"
|
|
5083
|
-
],
|
|
4912
|
+
], $.prototype = new tt(), $.prototype.constructor = $;
|
|
5084
4913
|
//#endregion
|
|
5085
4914
|
//#region src/components/bpmn-process-designer/plugins/palette/index.js
|
|
5086
|
-
var
|
|
4915
|
+
var nt = {
|
|
5087
4916
|
__init__: ["customPalette"],
|
|
5088
|
-
customPalette: ["type",
|
|
4917
|
+
customPalette: ["type", $]
|
|
5089
4918
|
};
|
|
5090
4919
|
//#endregion
|
|
5091
4920
|
//#region src/components/bpmn-process-designer/modules/auto-place/CustomAutoPlace.js
|
|
5092
|
-
function
|
|
5093
|
-
|
|
4921
|
+
function rt(e, t) {
|
|
4922
|
+
B.call(this, e, t, 3e3), e.on("autoPlace", 3e3, function(e) {
|
|
5094
4923
|
let t = e.shape, n = e.source;
|
|
5095
|
-
return
|
|
4924
|
+
return st(n, t);
|
|
5096
4925
|
}), this.append = function(n, r, i) {
|
|
5097
4926
|
e.fire("autoPlace.start", {
|
|
5098
4927
|
source: n,
|
|
@@ -5110,7 +4939,7 @@ function qt(e, t) {
|
|
|
5110
4939
|
}), o;
|
|
5111
4940
|
};
|
|
5112
4941
|
}
|
|
5113
|
-
function
|
|
4942
|
+
function it(e) {
|
|
5114
4943
|
return {
|
|
5115
4944
|
top: e.y,
|
|
5116
4945
|
right: e.x + (e.width || 0),
|
|
@@ -5118,35 +4947,35 @@ function Jt(e) {
|
|
|
5118
4947
|
left: e.x
|
|
5119
4948
|
};
|
|
5120
4949
|
}
|
|
5121
|
-
function
|
|
4950
|
+
function at(e) {
|
|
5122
4951
|
return {
|
|
5123
4952
|
x: Math.round(e.x),
|
|
5124
4953
|
y: Math.round(e.y)
|
|
5125
4954
|
};
|
|
5126
4955
|
}
|
|
5127
|
-
function
|
|
5128
|
-
return
|
|
4956
|
+
function ot(e) {
|
|
4957
|
+
return at({
|
|
5129
4958
|
x: e.x + (e.width || 0) / 2,
|
|
5130
4959
|
y: e.y + (e.height || 0) / 2
|
|
5131
4960
|
});
|
|
5132
4961
|
}
|
|
5133
|
-
function
|
|
4962
|
+
function st(e, t, n) {
|
|
5134
4963
|
n || (n = {});
|
|
5135
|
-
let r = n.defaultDistance || 50, i =
|
|
4964
|
+
let r = n.defaultDistance || 50, i = ot(e), a = it(e);
|
|
5136
4965
|
return {
|
|
5137
4966
|
x: i.x,
|
|
5138
4967
|
y: a.bottom + r + t.height / 2
|
|
5139
4968
|
};
|
|
5140
4969
|
}
|
|
5141
|
-
var
|
|
5142
|
-
|
|
4970
|
+
var ct = function() {};
|
|
4971
|
+
ct.prototype = B.prototype, rt.prototype = new ct(), rt.prototype.constructor = B;
|
|
5143
4972
|
//#endregion
|
|
5144
4973
|
//#region src/components/bpmn-process-designer/modules/auto-place/rewriteAutoPlace.js
|
|
5145
|
-
var
|
|
5146
|
-
function
|
|
5147
|
-
e.on("autoPlace",
|
|
4974
|
+
var lt = 200, ut = 100;
|
|
4975
|
+
function dt(e, t, n) {
|
|
4976
|
+
e.on("autoPlace", ut, function(e) {
|
|
5148
4977
|
let t = e.shape, n = e.source;
|
|
5149
|
-
return
|
|
4978
|
+
return ft(n, t);
|
|
5150
4979
|
}), e.on("autoPlace.end", function(e) {
|
|
5151
4980
|
n.scrollToElement(e.shape);
|
|
5152
4981
|
}), this.append = function(n, r, i) {
|
|
@@ -5164,28 +4993,28 @@ function tn(e, t, n) {
|
|
|
5164
4993
|
}), o;
|
|
5165
4994
|
};
|
|
5166
4995
|
}
|
|
5167
|
-
|
|
4996
|
+
dt.$inject = [
|
|
5168
4997
|
"eventBus",
|
|
5169
4998
|
"modeling",
|
|
5170
4999
|
"canvas"
|
|
5171
5000
|
];
|
|
5172
|
-
function
|
|
5173
|
-
let n =
|
|
5001
|
+
function ft(e, t) {
|
|
5002
|
+
let n = lt, r = ve(e);
|
|
5174
5003
|
return {
|
|
5175
|
-
x:
|
|
5004
|
+
x: _e(e).right + n + t.width / 2,
|
|
5176
5005
|
y: r.y
|
|
5177
5006
|
};
|
|
5178
5007
|
}
|
|
5179
5008
|
//#endregion
|
|
5180
5009
|
//#region src/components/bpmn-process-designer/modules/auto-place/index.js
|
|
5181
|
-
var
|
|
5010
|
+
var pt = {
|
|
5182
5011
|
__init__: ["autoPlaceSelectionBehavior"],
|
|
5183
|
-
autoPlace: ["type",
|
|
5184
|
-
},
|
|
5012
|
+
autoPlace: ["type", dt]
|
|
5013
|
+
}, mt = {
|
|
5185
5014
|
name: "FlowDesigner",
|
|
5186
5015
|
components: {
|
|
5187
|
-
PropertiesPanel:
|
|
5188
|
-
ProcessDesigner:
|
|
5016
|
+
PropertiesPanel: Te,
|
|
5017
|
+
ProcessDesigner: Qe
|
|
5189
5018
|
},
|
|
5190
5019
|
props: {
|
|
5191
5020
|
modelValue: String,
|
|
@@ -5211,10 +5040,10 @@ var rn = {
|
|
|
5211
5040
|
labelVisible: !1,
|
|
5212
5041
|
prefix: "flowable",
|
|
5213
5042
|
headerButtonSize: "small",
|
|
5214
|
-
additionalModel:
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
|
|
5043
|
+
additionalModel: S([
|
|
5044
|
+
et,
|
|
5045
|
+
nt,
|
|
5046
|
+
pt
|
|
5218
5047
|
])
|
|
5219
5048
|
}
|
|
5220
5049
|
};
|
|
@@ -5227,10 +5056,10 @@ var rn = {
|
|
|
5227
5056
|
await this.$nextTick(), await this.$refs.processDesigner.createNewDiagram(this.modelValue);
|
|
5228
5057
|
}
|
|
5229
5058
|
}
|
|
5230
|
-
},
|
|
5231
|
-
function
|
|
5232
|
-
let o =
|
|
5233
|
-
return
|
|
5059
|
+
}, ht = { class: "flow-designer" };
|
|
5060
|
+
function gt(e, t, n, r, i, a) {
|
|
5061
|
+
let o = Qe, s = Te;
|
|
5062
|
+
return w(), te("div", ht, [(w(), _(o, C({ key: `designer-${i.reloadIndex}` }, i.controlForm, {
|
|
5234
5063
|
ref: "processDesigner",
|
|
5235
5064
|
"model-value": n.modelValue,
|
|
5236
5065
|
"extend-types": n.extendTypes,
|
|
@@ -5242,13 +5071,13 @@ function sn(e, t, n, r, i, a) {
|
|
|
5242
5071
|
onInput: t[0] || (t[0] = (t) => e.$emit("update:modelValue", t)),
|
|
5243
5072
|
onInitFinished: a.initModeler
|
|
5244
5073
|
}), {
|
|
5245
|
-
"toolbar-buttons":
|
|
5074
|
+
"toolbar-buttons": E(() => [T(e.$slots, "toolbar-buttons", { modeler: i.modeler })]),
|
|
5246
5075
|
_: 3
|
|
5247
5076
|
}, 16, [
|
|
5248
5077
|
"model-value",
|
|
5249
5078
|
"extend-types",
|
|
5250
5079
|
"onInitFinished"
|
|
5251
|
-
])), n.usePanel && (n.useTabs === null || n.useTabs === void 0 || n.useTabs.length > 0) ? (
|
|
5080
|
+
])), n.usePanel && (n.useTabs === null || n.useTabs === void 0 || n.useTabs.length > 0) ? (w(), _(s, {
|
|
5252
5081
|
key: `penal-${i.reloadIndex}`,
|
|
5253
5082
|
"panel-type": n.panelType,
|
|
5254
5083
|
"use-tabs": n.useTabs,
|
|
@@ -5257,19 +5086,19 @@ function sn(e, t, n, r, i, a) {
|
|
|
5257
5086
|
prefix: i.controlForm.prefix,
|
|
5258
5087
|
class: "process-panel"
|
|
5259
5088
|
}, {
|
|
5260
|
-
task:
|
|
5089
|
+
task: E(({ id: t, bpmnInstances: n, element: r, type: i }) => [T(e.$slots, "task", {
|
|
5261
5090
|
id: t,
|
|
5262
5091
|
bpmnInstances: n,
|
|
5263
5092
|
element: r,
|
|
5264
5093
|
type: i
|
|
5265
5094
|
})]),
|
|
5266
|
-
form:
|
|
5095
|
+
form: E(({ id: t, bpmnInstances: n, element: r, type: i }) => [T(e.$slots, "form", {
|
|
5267
5096
|
id: t,
|
|
5268
5097
|
bpmnInstances: n,
|
|
5269
5098
|
element: r,
|
|
5270
5099
|
type: i
|
|
5271
5100
|
})]),
|
|
5272
|
-
extend:
|
|
5101
|
+
extend: E(({ id: t, bpmnInstances: n, element: r, type: i }) => [T(e.$slots, "extend", {
|
|
5273
5102
|
id: t,
|
|
5274
5103
|
bpmnInstances: n,
|
|
5275
5104
|
element: r,
|
|
@@ -5282,8 +5111,8 @@ function sn(e, t, n, r, i, a) {
|
|
|
5282
5111
|
"bpmn-modeler",
|
|
5283
5112
|
"context",
|
|
5284
5113
|
"prefix"
|
|
5285
|
-
])) :
|
|
5114
|
+
])) : v("v-if", !0)]);
|
|
5286
5115
|
}
|
|
5287
|
-
var
|
|
5116
|
+
var _t = /* @__PURE__ */ e(mt, [["render", gt]]);
|
|
5288
5117
|
//#endregion
|
|
5289
|
-
export {
|
|
5118
|
+
export { _t as t };
|