@web-utils/form-ui 1.0.0-beta76 → 1.0.0-beta78
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.d.ts +52 -0
- package/affix/index.d.ts +30 -0
- package/awesome-button/index.d.ts +60 -0
- package/capsule-tab/index.d.ts +30 -0
- package/card/index.d.ts +41 -0
- package/chunks/{Dhdoa4M6.mjs → 22GsbC-1.mjs} +1 -1
- package/chunks/{BkoWiWEW.mjs → 8i6khBvL2.mjs} +187 -188
- package/chunks/{DRXM1Mt22.mjs → B4GsYMXo.mjs} +1 -1
- package/chunks/{CWaId08S2.mjs → BEghYt1s2.mjs} +1 -1
- package/chunks/{BP_0cJ172.mjs → BPkYHRo52.mjs} +9 -9
- package/chunks/{CGVBF4Ml.mjs → BQytQPLa.mjs} +58 -51
- package/chunks/{CyQmVphZ.mjs → BUdSoC0y.mjs} +51 -52
- package/chunks/{Dje2xUVd2.mjs → BVUClQOx.mjs} +2 -2
- package/chunks/BWTQ3qdg.mjs +68 -0
- package/chunks/{D_gR5ibl2.mjs → Bo8lYN4n2.mjs} +2 -2
- package/chunks/{D6qJXu04.mjs → Bs926z902.mjs} +48 -49
- package/chunks/{DLdsvozr.mjs → Bvn6wnku.mjs} +2 -2
- package/chunks/{DNiq6hHj2.mjs → C4TRh7-t2.mjs} +3 -3
- package/chunks/{BZRmdKBG.mjs → CDalOJtl2.mjs} +65 -66
- package/chunks/{CpIXTVFU2.mjs → CGmbnjKL.mjs} +2 -2
- package/chunks/{kAaQhLJs2.mjs → COA3tHyu2.mjs} +1 -1
- package/chunks/{BTNnujZA2.mjs → CTYReSXN.mjs} +1 -1
- package/chunks/{CVM0lwn22.mjs → CfZWeZDD.mjs} +2 -2
- package/chunks/{DMDsZeqv.mjs → CiMBKxeJ.mjs} +1 -1
- package/chunks/{Dgwcljur.mjs → CkLpOk7H.mjs} +1 -1
- package/chunks/{CI-pH-gR2.mjs → Co0M4G3P.mjs} +1 -1
- package/chunks/{DFa2J7ul.mjs → Cwh7YPxJ.mjs} +151 -152
- package/chunks/{CFKKwzh72.mjs → D4FXesiK2.mjs} +2 -2
- package/chunks/{BM8snKHN2.mjs → DH-B0Lkz2.mjs} +2 -2
- package/chunks/{l5bfIjYm.mjs → DOdaQmeD.mjs} +576 -855
- package/chunks/{Cg6ahpHk.mjs → DQMWqQFe2.mjs} +2 -2
- package/chunks/{DyGddGTO.mjs → DbcxJ45j.mjs} +96 -97
- package/chunks/{B-WTB0ce2.mjs → DcgE9SF_2.mjs} +1 -1
- package/chunks/{285I1DfO.mjs → Dnb8jUG_.mjs} +14 -15
- package/chunks/{BaB0bq4I2.mjs → DxeRdYI82.mjs} +1 -1
- package/chunks/{Bq9KMIsC.mjs → YuRYvOxL.mjs} +162 -163
- package/chunks/{BLBHnUme2.mjs → Zdhb_SRi2.mjs} +1 -1
- package/chunks/{BvlU_Z6D2.mjs → eX0Esdvw2.mjs} +1 -1
- package/chunks/{CF23xugU2.mjs → hBvPGqka.mjs} +2 -2
- package/chunks/{DP7eF99m2.mjs → oXiNltCq.mjs} +1 -1
- package/chunks/{x2jJ6cfy2.mjs → shY1VkIE2.mjs} +1 -1
- package/chunks/{ohCkWdwS.mjs → tSaeUhnr.mjs} +1 -1
- package/chunks/{DvkUImww2.mjs → xe1XzZUE2.mjs} +9 -9
- package/code-mirror-editor/index.d.ts +50 -0
- package/confirm-button/index.d.ts +122 -0
- package/confirmable/index.d.ts +93 -0
- package/context-menu/index.d.ts +183 -0
- package/count-up/index.d.ts +70 -0
- package/custom-scrollbar/index.d.ts +49 -0
- package/data-box/index.d.ts +30 -0
- package/data-card/index.d.ts +20 -0
- package/data-card-text/index.d.ts +21 -0
- package/data-display/index.d.ts +20 -0
- package/data-icons/index.d.ts +21 -0
- package/data-imgtext/index.d.ts +18 -0
- package/data-operatext/index.d.ts +17 -0
- package/data-panel/index.d.ts +19 -0
- package/data-pay/index.d.ts +19 -0
- package/data-price/index.d.ts +17 -0
- package/data-progress/index.d.ts +19 -0
- package/data-rotate/index.d.ts +21 -0
- package/data-table-picker/index.d.ts +61 -0
- package/data-tabs/index.d.ts +21 -0
- package/dict-render/index.d.ts +28 -0
- package/e-charts/index.d.ts +79 -0
- package/easy-popup/index.d.ts +114 -0
- package/editable-progress/index.d.ts +68 -0
- package/editable-tree/index.d.ts +281 -0
- package/element-dialog/index.d.ts +376 -0
- package/element-resize-observer/index.d.ts +8 -0
- package/empty-view/index.d.ts +29 -0
- package/error-view/index.d.ts +25 -0
- package/flex-box/index.d.ts +44 -0
- package/flex-column/index.d.ts +41 -0
- package/flex-item/index.d.ts +77 -0
- package/flex-row/index.d.ts +41 -0
- package/flex-scroll-area/index.d.ts +22 -0
- package/flex-scroller/index.d.ts +26 -0
- package/flow-designer/index.d.ts +311 -0
- package/flow-designer/index.mjs +1 -1
- package/flow-viewer/index.d.ts +62 -0
- package/form-advice/index.d.ts +9 -0
- package/form-button/index.d.ts +123 -0
- package/form-card/index.d.ts +14 -0
- package/form-cascader/index.d.ts +478 -0
- package/form-cascader/index.mjs +1 -1
- package/form-cell/index.d.ts +25 -0
- package/form-checkbox/index.d.ts +314 -0
- package/form-checkbox/index.mjs +1 -1
- package/form-checkbox-group/index.d.ts +373 -0
- package/form-checkbox-group/index.mjs +1 -1
- package/form-date-picker/index.d.ts +480 -0
- package/form-date-picker/index.mjs +1 -1
- package/form-holder/index.d.ts +162 -0
- package/form-holder/index.mjs +1 -1
- package/form-image/index.d.ts +220 -0
- package/form-image/index.mjs +1 -1
- package/form-input/index.d.ts +378 -0
- package/form-input/index.mjs +1 -1
- package/form-input-cron-expression/index.d.ts +223 -0
- package/form-input-cron-expression/index.mjs +1 -1
- package/form-input-email/index.d.ts +376 -0
- package/form-input-email/index.mjs +1 -1
- package/form-input-id-card/index.d.ts +376 -0
- package/form-input-id-card/index.mjs +1 -1
- package/form-input-number/index.d.ts +329 -0
- package/form-input-number/index.mjs +1 -1
- package/form-input-phone-number/index.d.ts +376 -0
- package/form-input-phone-number/index.mjs +1 -1
- package/form-input-tag/index.d.ts +270 -0
- package/form-input-tag/index.mjs +1 -1
- package/form-input-time/index.d.ts +441 -0
- package/form-input-time/index.mjs +1 -1
- package/form-item-config-provider/index.d.ts +40 -0
- package/form-item-group/index.d.ts +92 -0
- package/form-item-group/index.mjs +1 -1
- package/form-item-x/index.d.ts +190 -0
- package/form-item-x/index.mjs +1 -1
- package/form-item-x/style.css +1 -1
- package/form-radio-group/index.d.ts +374 -0
- package/form-radio-group/index.mjs +1 -1
- package/form-rate/index.d.ts +325 -0
- package/form-rate/index.mjs +1 -1
- package/form-red-table/index.d.ts +21 -0
- package/form-row/index.d.ts +11 -0
- package/form-row/index.mjs +1 -1
- package/form-select/index.d.ts +606 -0
- package/form-select/index.mjs +1 -1
- package/form-slider/index.d.ts +352 -0
- package/form-slider/index.mjs +1 -1
- package/form-switch/index.d.ts +343 -0
- package/form-switch/index.mjs +1 -1
- package/form-table/index.d.ts +287 -0
- package/form-table/index.mjs +1 -1
- package/form-table-plus/index.d.ts +266 -0
- package/form-table-plus/index.mjs +1 -1
- package/form-text/index.d.ts +235 -0
- package/form-text/index.mjs +1 -1
- package/form-textarea/index.d.ts +351 -0
- package/form-textarea/index.mjs +1 -1
- package/form-time-select/index.d.ts +325 -0
- package/form-time-select/index.mjs +1 -1
- package/form-tree-select/index.d.ts +715 -0
- package/form-tree-select/index.mjs +1 -1
- package/form-tree-select-multiple/index.d.ts +717 -0
- package/form-tree-select-multiple/index.mjs +1 -1
- package/form-view/index.d.ts +226 -0
- package/form-view/index.mjs +2 -2
- package/guide-steps/index.d.ts +31 -0
- package/helper/input.mjs +1 -1
- package/highlight-j-s/index.d.ts +18 -0
- package/iframe-window/index.d.ts +9 -0
- package/image-cropper/index.d.ts +365 -0
- package/image-preview/index.d.ts +61 -0
- package/image-viewer/index.d.ts +25 -0
- package/index.css +1 -1
- package/index.d.ts +119 -119
- package/index.mjs +121 -121
- package/input-number-range/index.d.ts +41 -0
- package/keyboard/index.d.ts +64 -0
- package/keyboard/index.mjs +1 -1
- package/loading-view/index.d.ts +65 -0
- package/name-avatar/index.d.ts +62 -0
- package/nav-bar/index.d.ts +21 -0
- package/package.json +1 -1
- package/page/index.d.ts +21 -0
- package/page-header/index.d.ts +27 -0
- package/page-index/index.d.ts +82 -0
- package/page-index-top/index.d.ts +38 -0
- package/page-skeleton/index.d.ts +30 -0
- package/page-skeleton-new/index.d.ts +34 -0
- package/pageable-table/index.d.ts +400 -0
- package/photo-swipe/index.d.ts +18 -0
- package/photo-swipe/index.mjs +1 -1
- package/props/date.d.ts +1 -4
- package/props/date.mjs +18 -5
- package/sign-panel/index.d.ts +85 -0
- package/skeleton-panel/index.d.ts +27 -0
- package/split-pane/index.d.ts +106 -0
- package/split-pane/index.mjs +1 -1
- package/stateful/index.d.ts +92 -0
- package/sub-table/index.d.ts +109 -0
- package/sub-table/index.mjs +1 -1
- package/sub-table-plus/index.d.ts +109 -0
- package/sub-table-plus/index.mjs +1 -1
- package/swiper/index.d.ts +27 -0
- package/table-column/index.d.ts +163 -0
- package/table-column-def/index.d.ts +97 -0
- package/table-view/index.d.ts +346 -0
- package/table-view/index.mjs +3 -3
- package/tag-render/index.d.ts +48 -0
- package/text-ellipsis/index.d.ts +111 -0
- package/toolbar/index.d.ts +129 -0
- package/toolbar/index.mjs +1 -1
- package/toolbar-button/index.d.ts +189 -0
- package/vue-cron/index.d.ts +191 -0
- package/vue-cron/index.mjs +1 -1
- package/vue-qr-code/index.d.ts +47 -0
- package/vue-tags-input/index.d.ts +373 -0
- package/vue-tree-select/index.d.ts +1489 -0
- package/vue-tree-select/index.mjs +1 -1
- package/vue-video-player/index.d.ts +117 -0
- package/watermark/index.d.ts +97 -0
- package/watermark/index.mjs +1 -1
- package/web-types.json +1 -1
- package/x-input-tag/index.d.ts +2 -0
- package/year-calendar/index.d.ts +99 -0
- package/year-calendar/index.mjs +1 -1
- package/chunks/C7rEqtOR.mjs +0 -70
- package/chunks/CjjJimnU.mjs +0 -20
- package/chunks/{tJ_t87kJ.mjs → 6dNVtIN32.mjs} +0 -0
- package/chunks/{CJ7Ai-mH2.mjs → B1luuf_A2.mjs} +0 -0
- package/chunks/{B1jgu0ci.mjs → BAG_R87k2.mjs} +0 -0
- package/chunks/{gNfZhMJk2.mjs → BM5LdxU72.mjs} +0 -0
- package/chunks/{CZeL7oiY2.mjs → BhHMGhJ8.mjs} +0 -0
- package/chunks/{z6tpYT0z.mjs → BwL9Xz1F.mjs} +0 -0
- package/chunks/{C0gLPKS8.mjs → D9p3yGUu.mjs} +1 -1
- package/chunks/{Bh2SlzOo.mjs → DDcaXGrf2.mjs} +0 -0
- package/chunks/{B2Y1LWJ3.mjs → Dkw6LNCq2.mjs} +0 -0
- package/chunks/{C3pzNRoU2.mjs → DvGAwr6C.mjs} +2 -2
- package/chunks/{CeI6Qrij.mjs → DydcNRkF.mjs} +1 -1
- /package/chunks/{b_78-Wov2.mjs → FZqu01np2.mjs} +0 -0
- /package/chunks/{hPAfGilD.mjs → KOJEsarR2.mjs} +0 -0
- /package/chunks/{3UWcbJcG.mjs → PEU1JRcN2.mjs} +0 -0
|
@@ -1,74 +1,49 @@
|
|
|
1
1
|
import { t as e } from "./B1MSrc6f.mjs";
|
|
2
2
|
import { t } from "./V-Js6hNd.mjs";
|
|
3
3
|
import { t as n } from "./mnqSaATq.mjs";
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import { t as a } from "./CyQmVphZ.mjs";
|
|
7
|
-
import { t as o } from "./DFa2J7ul.mjs";
|
|
8
|
-
import { t as s } from "./Bq9KMIsC.mjs";
|
|
9
|
-
import { t as c } from "./DyGddGTO.mjs";
|
|
10
|
-
import { t as l } from "./BkoWiWEW.mjs";
|
|
11
|
-
import { t as u } from "./BZRmdKBG.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";
|
|
4
|
+
import r from "../highlight-j-s/index.mjs";
|
|
5
|
+
import { ElButtonGroup as i, ElCollapse as a, ElCollapseItem as o, ElTabPane as s, ElTabs as c, ElTooltip as l } from "element-plus/es";
|
|
14
6
|
import "element-plus/es/components/base/style/css";
|
|
15
|
-
import { createBlock as
|
|
16
|
-
import { isArray as
|
|
7
|
+
import { computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createTextVNode as h, createVNode as g, defineAsyncComponent as _, isVNode as v, markRaw as y, mergeProps as b, openBlock as x, provide as S, ref as C, renderSlot as w, toDisplayString as T, toRef as E, vShow as ee, watch as te, watchEffect as ne, withCtx as D, withDirectives as re } from "vue";
|
|
8
|
+
import { isArray as O } from "@web-utils/core";
|
|
17
9
|
import "element-plus/es/components/tooltip/style/css";
|
|
18
10
|
import "element-plus/es/components/collapse/style/css";
|
|
19
11
|
import "element-plus/es/components/collapse-item/style/css";
|
|
20
12
|
import "element-plus/es/components/tabs/style/css";
|
|
21
13
|
import "element-plus/es/components/tab-pane/style/css";
|
|
22
|
-
import
|
|
14
|
+
import k from "highlight.js/lib/core";
|
|
23
15
|
import "element-plus/es/components/button-group/style/css";
|
|
24
16
|
import "bpmn-js/dist/assets/bpmn-js.css";
|
|
25
17
|
import "bpmn-js/dist/assets/diagram-js.css";
|
|
26
18
|
import "bpmn-js/dist/assets/bpmn-font/css/bpmn-embedded.css";
|
|
27
19
|
import "bpmn-js-token-simulation/assets/css/bpmn-js-token-simulation.css";
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import { assign as P, forEach as F, isArray as
|
|
20
|
+
import A from "bpmn-js/lib/Modeler";
|
|
21
|
+
import j from "bpmn-js/lib/features/drilldown";
|
|
22
|
+
import M from "bpmn-js-token-simulation";
|
|
23
|
+
import N from "x2js";
|
|
24
|
+
import ie from "highlight.js/lib/languages/xml";
|
|
25
|
+
import ae from "highlight.js/lib/languages/json";
|
|
26
|
+
import { assign as P, forEach as F, isArray as I, isFunction as oe, isObject as se, some as L } from "min-dash";
|
|
35
27
|
import { is as R } from "bpmn-js/lib/util/ModelUtil";
|
|
36
|
-
import { isEventSubProcess as
|
|
28
|
+
import { isEventSubProcess as ce, isExpanded as le } from "bpmn-js/lib/util/DiUtil";
|
|
37
29
|
import { isAny as z } from "bpmn-js/lib/features/modeling/util/ModelingUtil";
|
|
38
|
-
import { getChildLanes as
|
|
39
|
-
import { hasPrimaryModifier as
|
|
40
|
-
import
|
|
30
|
+
import { getChildLanes as ue } from "bpmn-js/lib/features/modeling/util/LaneUtil";
|
|
31
|
+
import { hasPrimaryModifier as de } from "diagram-js/lib/util/Mouse";
|
|
32
|
+
import fe from "bpmn-js/lib/features/palette/PaletteProvider";
|
|
41
33
|
import B from "diagram-js/lib/features/auto-place/AutoPlace";
|
|
42
|
-
import { asTRBL as
|
|
43
|
-
//#region src/components/bpmn-process-designer/components/PropertiesPanel.vue
|
|
44
|
-
|
|
34
|
+
import { asTRBL as pe, getMid as me } from "diagram-js/lib/layout/LayoutUtil";
|
|
35
|
+
//#region src/components/bpmn-process-designer/components/PropertiesPanel.vue?vue&type=script&lang.jsx
|
|
36
|
+
function V(e) {
|
|
37
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !v(e);
|
|
38
|
+
}
|
|
39
|
+
var he = [
|
|
45
40
|
"base",
|
|
46
41
|
"task",
|
|
47
42
|
"form",
|
|
48
43
|
"multiInstance"
|
|
49
|
-
], be = {
|
|
44
|
+
], ge = _(() => import("./Cwh7YPxJ.mjs")), _e = _(() => import("./8i6khBvL2.mjs")), ve = _(() => import("./BUdSoC0y.mjs")), ye = _(() => import("./YuRYvOxL.mjs")), be = _(() => import("./D9p3yGUu.mjs")), xe = _(() => import("./Bs926z902.mjs")), Se = _(() => import("./DbcxJ45j.mjs")), Ce = _(() => import("./DydcNRkF.mjs")), we = _(() => import("./Dnb8jUG_.mjs")), Te = _(() => import("./CDalOJtl2.mjs")), Ee = {
|
|
50
45
|
name: "PropertiesPanel",
|
|
51
46
|
componentName: "MyPropertiesPanel",
|
|
52
|
-
components: {
|
|
53
|
-
UserTaskListeners: () => import("./DFa2J7ul.mjs").then((e) => e.n),
|
|
54
|
-
ElementForm: () => import("./BkoWiWEW.mjs").then((e) => e.n),
|
|
55
|
-
ElementProperties: () => import("./CyQmVphZ.mjs").then((e) => e.n),
|
|
56
|
-
ElementListeners: () => import("./Bq9KMIsC.mjs").then((e) => e.n),
|
|
57
|
-
SignalAndMassage: () => import("./C0gLPKS8.mjs"),
|
|
58
|
-
FlowCondition: () => import("./D6qJXu04.mjs").then((e) => e.n),
|
|
59
|
-
ElementMultiInstance: () => import("./DyGddGTO.mjs").then((e) => e.n),
|
|
60
|
-
ElementTask: () => import("./CeI6Qrij.mjs"),
|
|
61
|
-
ElementOtherConfig: () => import("./285I1DfO.mjs").then((e) => e.n),
|
|
62
|
-
ElementBaseInfo: () => import("./BZRmdKBG.mjs").then((e) => e.n)
|
|
63
|
-
},
|
|
64
|
-
provide() {
|
|
65
|
-
return {
|
|
66
|
-
prefix: this.prefix,
|
|
67
|
-
width: this.width,
|
|
68
|
-
context: this.context,
|
|
69
|
-
bpmnInstances: this.bpmnInstances
|
|
70
|
-
};
|
|
71
|
-
},
|
|
72
47
|
props: {
|
|
73
48
|
activeTabs: {
|
|
74
49
|
type: Array,
|
|
@@ -97,533 +72,279 @@ var ye = [
|
|
|
97
72
|
panelType: { type: String }
|
|
98
73
|
},
|
|
99
74
|
emits: ["initModels"],
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
elementId: "",
|
|
106
|
-
elementType: "",
|
|
107
|
-
conditionFormVisible: !1,
|
|
108
|
-
formVisible: !1,
|
|
109
|
-
isPanelVisible: !0
|
|
110
|
-
};
|
|
111
|
-
},
|
|
112
|
-
computed: {
|
|
113
|
-
isArray() {
|
|
114
|
-
return Array.isArray(this.useTabs);
|
|
115
|
-
},
|
|
116
|
-
isNullOrUndefined() {
|
|
117
|
-
return this.useTabs === null || this.useTabs === void 0;
|
|
118
|
-
},
|
|
119
|
-
isTab() {
|
|
120
|
-
return this.panelType === "tab";
|
|
121
|
-
}
|
|
122
|
-
},
|
|
123
|
-
watch: {
|
|
124
|
-
activeTabs: {
|
|
125
|
-
immediate: !0,
|
|
126
|
-
handler() {
|
|
127
|
-
this.activeTab = this.isTab ? "base" : ye;
|
|
75
|
+
setup(e, { emit: t, slots: n }) {
|
|
76
|
+
let r = C(!0), i = C(!1), d = C(!1), f = C(""), p = C(""), m = C(e.panelType === "tab" ? "base" : ["base"]), _ = {}, v = {}, y = null, b = u(() => Array.isArray(e.useTabs)), x = u(() => e.useTabs === null || e.useTabs === void 0), w = u(() => e.panelType === "tab"), T = () => {
|
|
77
|
+
if (!e.bpmnModeler) {
|
|
78
|
+
y = setTimeout(() => T(), 10);
|
|
79
|
+
return;
|
|
128
80
|
}
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
81
|
+
y && clearTimeout(y), v = {
|
|
82
|
+
modeler: e.bpmnModeler,
|
|
83
|
+
modeling: e.bpmnModeler.get("modeling"),
|
|
84
|
+
moddle: e.bpmnModeler.get("moddle"),
|
|
85
|
+
eventBus: e.bpmnModeler.get("eventBus"),
|
|
86
|
+
bpmnFactory: e.bpmnModeler.get("bpmnFactory"),
|
|
87
|
+
elementFactory: e.bpmnModeler.get("elementFactory"),
|
|
88
|
+
elementRegistry: e.bpmnModeler.get("elementRegistry"),
|
|
89
|
+
replace: e.bpmnModeler.get("replace"),
|
|
90
|
+
selection: e.bpmnModeler.get("selection")
|
|
91
|
+
}, t("initModels", v), D();
|
|
92
|
+
}, D = () => {
|
|
93
|
+
O(null), e.bpmnModeler.on("import.done", () => {
|
|
94
|
+
e.bpmnModeler.get("canvas").zoom("fit-viewport", "center"), O(null);
|
|
95
|
+
}), e.bpmnModeler.on("selection.changed", ({ newSelection: e }) => {
|
|
96
|
+
O(e[0] || null);
|
|
97
|
+
}), e.bpmnModeler.on("element.changed", ({ element: e }) => {
|
|
98
|
+
e && e.id === f.value && O(e);
|
|
99
|
+
});
|
|
100
|
+
}, O = (e) => {
|
|
101
|
+
let t = e;
|
|
102
|
+
t || (t = v.elementRegistry.find((e) => e.type === "bpmn:Process") ?? v.elementRegistry.find((e) => e.type === "bpmn:Collaboration")), t && (_ = t, f.value = t.id, p.value = t.type.split(":")[1] || "", i.value = !!(p.value === "SequenceFlow" && t.source && t.source.type.indexOf("StartEvent") === -1), d.value = p.value === "UserTask");
|
|
103
|
+
};
|
|
104
|
+
T(), ne(() => {
|
|
105
|
+
m.value = w.value ? "base" : he;
|
|
106
|
+
}), te(f, () => {
|
|
107
|
+
m.value = w.value ? "base" : he;
|
|
108
|
+
}), te(w, {
|
|
134
109
|
immediate: !0,
|
|
135
110
|
handler(e) {
|
|
136
|
-
e ?
|
|
111
|
+
e ? m.value = "base" : m.value = ["base"];
|
|
137
112
|
}
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
113
|
+
}), S("prefix", E(e, "prefix")), S("width", E(e, "width")), S("context", E(e, "context")), S("bpmnInstances", v);
|
|
114
|
+
let k = () => g(Te, {
|
|
115
|
+
id: f.value,
|
|
116
|
+
idEditDisabled: e.idEditDisabled,
|
|
117
|
+
type: p.value,
|
|
118
|
+
bpmnInstances: v,
|
|
119
|
+
element: _
|
|
120
|
+
}, null), A = () => g(be, { bpmnInstances: v }, null), j = () => g(xe, {
|
|
121
|
+
id: f.value,
|
|
122
|
+
element: _,
|
|
123
|
+
bpmnInstances: v,
|
|
124
|
+
type: p.value
|
|
125
|
+
}, null), M = () => g(_e, {
|
|
126
|
+
id: f.value,
|
|
127
|
+
element: _,
|
|
128
|
+
bpmnInstances: v,
|
|
129
|
+
type: p.value
|
|
130
|
+
}, null), N = () => g(Ce, {
|
|
131
|
+
id: f.value,
|
|
132
|
+
element: _,
|
|
133
|
+
bpmnInstances: v,
|
|
134
|
+
type: p.value
|
|
135
|
+
}, null), ie = () => g(Se, {
|
|
136
|
+
id: f.value,
|
|
137
|
+
element: _,
|
|
138
|
+
bpmnInstances: v,
|
|
139
|
+
type: p.value
|
|
140
|
+
}, null), ae = () => g(ye, {
|
|
141
|
+
id: f.value,
|
|
142
|
+
element: _,
|
|
143
|
+
bpmnInstances: v,
|
|
144
|
+
type: p.value
|
|
145
|
+
}, null), P = () => g(ge, {
|
|
146
|
+
id: f.value,
|
|
147
|
+
element: _,
|
|
148
|
+
bpmnInstances: v,
|
|
149
|
+
type: p.value
|
|
150
|
+
}, null), F = () => g(ve, {
|
|
151
|
+
id: f.value,
|
|
152
|
+
element: _,
|
|
153
|
+
bpmnInstances: v,
|
|
154
|
+
type: p.value
|
|
155
|
+
}, null), I = () => g(we, {
|
|
156
|
+
id: f.value,
|
|
157
|
+
element: _,
|
|
158
|
+
bpmnInstances: v
|
|
159
|
+
}, null), oe = () => {
|
|
160
|
+
let t = [];
|
|
161
|
+
if (x.value || b.value && e.useTabs.includes("base")) {
|
|
162
|
+
let e;
|
|
163
|
+
t.push(g(s, {
|
|
164
|
+
label: "常规",
|
|
165
|
+
name: "base"
|
|
166
|
+
}, V(e = k()) ? e : { default: () => [e] }));
|
|
148
167
|
}
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
"
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
"
|
|
216
|
-
"
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
})) :
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
lazy: ""
|
|
278
|
-
}, {
|
|
279
|
-
default: E(() => [x(A, {
|
|
280
|
-
id: f.elementId,
|
|
281
|
-
"bpmn-instances": f.bpmnInstances,
|
|
282
|
-
element: f.element,
|
|
283
|
-
type: f.elementType
|
|
284
|
-
}, null, 8, [
|
|
285
|
-
"id",
|
|
286
|
-
"bpmn-instances",
|
|
287
|
-
"element",
|
|
288
|
-
"type"
|
|
289
|
-
])]),
|
|
290
|
-
_: 1
|
|
291
|
-
}))]) : v("v-if", !0),
|
|
292
|
-
v(" 多实例 "),
|
|
293
|
-
(S.isNullOrUndefined || S.isArray && n.useTabs.includes("multiInstance")) && f.elementType.indexOf("Task") !== -1 ? (w(), _(O, {
|
|
294
|
-
key: "multiInstance",
|
|
295
|
-
label: "多实例",
|
|
296
|
-
name: "multiInstance",
|
|
297
|
-
lazy: ""
|
|
298
|
-
}, {
|
|
299
|
-
default: E(() => [x(j, {
|
|
300
|
-
id: f.elementId,
|
|
301
|
-
"bpmn-instances": f.bpmnInstances,
|
|
302
|
-
element: f.element,
|
|
303
|
-
type: f.elementType
|
|
304
|
-
}, null, 8, [
|
|
305
|
-
"id",
|
|
306
|
-
"bpmn-instances",
|
|
307
|
-
"element",
|
|
308
|
-
"type"
|
|
309
|
-
])]),
|
|
310
|
-
_: 1
|
|
311
|
-
})) : v("v-if", !0),
|
|
312
|
-
v(" 执行监听器 "),
|
|
313
|
-
S.isNullOrUndefined || S.isArray && n.useTabs.includes("listeners") ? (w(), _(O, {
|
|
314
|
-
key: "listeners",
|
|
315
|
-
label: "执行监听器",
|
|
316
|
-
name: "listeners",
|
|
317
|
-
lazy: ""
|
|
318
|
-
}, {
|
|
319
|
-
default: E(() => [x(M, {
|
|
320
|
-
id: f.elementId,
|
|
321
|
-
"bpmn-instances": f.bpmnInstances,
|
|
322
|
-
element: f.element,
|
|
323
|
-
type: f.elementType
|
|
324
|
-
}, null, 8, [
|
|
325
|
-
"id",
|
|
326
|
-
"bpmn-instances",
|
|
327
|
-
"element",
|
|
328
|
-
"type"
|
|
329
|
-
])]),
|
|
330
|
-
_: 1
|
|
331
|
-
})) : v("v-if", !0),
|
|
332
|
-
v(" 任务监听器 "),
|
|
333
|
-
(S.isNullOrUndefined || S.isArray && n.useTabs.includes("taskListeners")) && f.elementType === "UserTask" ? (w(), _(O, {
|
|
334
|
-
key: "taskListeners",
|
|
335
|
-
label: "任务监听器",
|
|
336
|
-
name: "taskListeners",
|
|
337
|
-
lazy: ""
|
|
338
|
-
}, {
|
|
339
|
-
default: E(() => [x(N, {
|
|
340
|
-
id: f.elementId,
|
|
341
|
-
"bpmn-instances": f.bpmnInstances,
|
|
342
|
-
element: f.element,
|
|
343
|
-
type: f.elementType
|
|
344
|
-
}, null, 8, [
|
|
345
|
-
"id",
|
|
346
|
-
"bpmn-instances",
|
|
347
|
-
"element",
|
|
348
|
-
"type"
|
|
349
|
-
])]),
|
|
350
|
-
_: 1
|
|
351
|
-
})) : v("v-if", !0),
|
|
352
|
-
v(" 扩展属性 "),
|
|
353
|
-
S.isNullOrUndefined || S.isArray && n.useTabs.includes("extensions") ? (w(), _(O, {
|
|
354
|
-
key: "extensions",
|
|
355
|
-
label: "扩展属性",
|
|
356
|
-
name: "extensions",
|
|
357
|
-
lazy: ""
|
|
358
|
-
}, {
|
|
359
|
-
default: E(() => [x(P, {
|
|
360
|
-
id: f.elementId,
|
|
361
|
-
"bpmn-instances": f.bpmnInstances,
|
|
362
|
-
element: f.element,
|
|
363
|
-
type: f.elementType
|
|
364
|
-
}, null, 8, [
|
|
365
|
-
"id",
|
|
366
|
-
"bpmn-instances",
|
|
367
|
-
"element",
|
|
368
|
-
"type"
|
|
369
|
-
])]),
|
|
370
|
-
_: 1
|
|
371
|
-
})) : v("v-if", !0),
|
|
372
|
-
v(" 其他 "),
|
|
373
|
-
S.isNullOrUndefined || S.isArray && n.useTabs.includes("other") ? (w(), _(O, {
|
|
374
|
-
key: "other",
|
|
375
|
-
label: "其他",
|
|
376
|
-
name: "other",
|
|
377
|
-
lazy: ""
|
|
378
|
-
}, {
|
|
379
|
-
default: E(() => [x(F, {
|
|
380
|
-
id: f.elementId,
|
|
381
|
-
element: f.element,
|
|
382
|
-
"bpmn-instances": f.bpmnInstances
|
|
383
|
-
}, null, 8, [
|
|
384
|
-
"id",
|
|
385
|
-
"element",
|
|
386
|
-
"bpmn-instances"
|
|
387
|
-
])]),
|
|
388
|
-
_: 1
|
|
389
|
-
})) : v("v-if", !0),
|
|
390
|
-
v(" 拓展 "),
|
|
391
|
-
S.isNullOrUndefined || S.isArray && n.useTabs.includes("extend") ? T(e.$slots, "extend", {
|
|
392
|
-
key: 10,
|
|
393
|
-
id: f.elementId,
|
|
394
|
-
bpmnInstances: f.bpmnInstances,
|
|
395
|
-
element: f.element,
|
|
396
|
-
type: f.elementType
|
|
397
|
-
}) : v("v-if", !0)
|
|
398
|
-
]),
|
|
399
|
-
_: 3
|
|
400
|
-
}, 8, ["modelValue"])), [[oe, f.isPanelVisible]]) : se((w(), _(R, {
|
|
401
|
-
key: 1,
|
|
402
|
-
modelValue: f.activeTab,
|
|
403
|
-
"onUpdate:modelValue": t[2] || (t[2] = (e) => f.activeTab = e)
|
|
404
|
-
}, {
|
|
405
|
-
default: E(() => [
|
|
406
|
-
v(" 常规 "),
|
|
407
|
-
S.isNullOrUndefined || S.isArray && n.useTabs.includes("base") ? (w(), _(I, {
|
|
408
|
-
key: 0,
|
|
409
|
-
name: "base"
|
|
410
|
-
}, {
|
|
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,
|
|
414
|
-
"id-edit-disabled": n.idEditDisabled,
|
|
415
|
-
type: f.elementType,
|
|
416
|
-
element: f.element,
|
|
417
|
-
"bpmn-instances": f.bpmnInstances
|
|
418
|
-
}, null, 8, [
|
|
419
|
-
"id",
|
|
420
|
-
"id-edit-disabled",
|
|
421
|
-
"type",
|
|
422
|
-
"element",
|
|
423
|
-
"bpmn-instances"
|
|
424
|
-
])]),
|
|
425
|
-
_: 1
|
|
426
|
-
})) : v("v-if", !0),
|
|
427
|
-
v(" 消息与信号 "),
|
|
428
|
-
(S.isNullOrUndefined || S.isArray && n.useTabs.includes("message")) && f.elementType === "Process" ? (w(), _(I, {
|
|
429
|
-
key: "message",
|
|
430
|
-
name: "message"
|
|
431
|
-
}, {
|
|
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"])]),
|
|
434
|
-
_: 1
|
|
435
|
-
})) : v("v-if", !0),
|
|
436
|
-
v(" 流转条件 "),
|
|
437
|
-
(S.isNullOrUndefined || S.isArray && n.useTabs.includes("condition")) && f.conditionFormVisible ? (w(), _(I, {
|
|
438
|
-
key: "condition",
|
|
439
|
-
name: "condition"
|
|
440
|
-
}, {
|
|
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
|
|
447
|
-
}, null, 8, [
|
|
448
|
-
"id",
|
|
449
|
-
"element",
|
|
450
|
-
"bpmn-instances",
|
|
451
|
-
"type"
|
|
452
|
-
])]),
|
|
453
|
-
_: 1
|
|
454
|
-
})) : v("v-if", !0),
|
|
455
|
-
v(" 表单 "),
|
|
456
|
-
S.isNullOrUndefined || S.isArray && n.useTabs.includes("form") ? T(e.$slots, "form", {
|
|
457
|
-
key: 3,
|
|
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, {
|
|
463
|
-
key: "form",
|
|
464
|
-
name: "form"
|
|
465
|
-
}, {
|
|
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
|
|
472
|
-
}, null, 8, [
|
|
473
|
-
"id",
|
|
474
|
-
"bpmn-instances",
|
|
475
|
-
"element",
|
|
476
|
-
"type"
|
|
477
|
-
])]),
|
|
478
|
-
_: 1
|
|
479
|
-
})) : v("v-if", !0)]) : v("v-if", !0),
|
|
480
|
-
v(" 任务 "),
|
|
481
|
-
S.isNullOrUndefined || S.isArray && n.useTabs.includes("task") ? T(e.$slots, "task", {
|
|
482
|
-
key: 4,
|
|
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, {
|
|
488
|
-
key: "task",
|
|
489
|
-
name: "task"
|
|
490
|
-
}, {
|
|
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
|
|
497
|
-
}, null, 8, [
|
|
498
|
-
"id",
|
|
499
|
-
"bpmn-instances",
|
|
500
|
-
"element",
|
|
501
|
-
"type"
|
|
502
|
-
])]),
|
|
503
|
-
_: 1
|
|
504
|
-
}))]) : v("v-if", !0),
|
|
505
|
-
v(" 多实例 "),
|
|
506
|
-
(S.isNullOrUndefined || S.isArray && n.useTabs.includes("multiInstance")) && f.elementType.indexOf("Task") !== -1 ? (w(), _(I, {
|
|
507
|
-
key: "multiInstance",
|
|
508
|
-
name: "multiInstance"
|
|
509
|
-
}, {
|
|
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
|
|
516
|
-
}, null, 8, [
|
|
517
|
-
"id",
|
|
518
|
-
"bpmn-instances",
|
|
519
|
-
"element",
|
|
520
|
-
"type"
|
|
521
|
-
])]),
|
|
522
|
-
_: 1
|
|
523
|
-
})) : v("v-if", !0),
|
|
524
|
-
v(" 执行监听器 "),
|
|
525
|
-
S.isNullOrUndefined || S.isArray && n.useTabs.includes("listeners") ? (w(), _(I, {
|
|
526
|
-
key: "listeners",
|
|
527
|
-
name: "listeners"
|
|
528
|
-
}, {
|
|
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))]),
|
|
535
|
-
_: 1
|
|
168
|
+
if ((x.value || b.value && e.useTabs.includes("message")) && p.value === "Process") {
|
|
169
|
+
let e;
|
|
170
|
+
t.push(g(s, {
|
|
171
|
+
label: "消息与信号",
|
|
172
|
+
name: "message"
|
|
173
|
+
}, V(e = A()) ? e : { default: () => [e] }));
|
|
174
|
+
}
|
|
175
|
+
if ((x.value || b.value && e.useTabs.includes("condition")) && i.value) {
|
|
176
|
+
let e;
|
|
177
|
+
t.push(g(s, {
|
|
178
|
+
label: "流转条件",
|
|
179
|
+
name: "condition"
|
|
180
|
+
}, V(e = j()) ? e : { default: () => [e] }));
|
|
181
|
+
}
|
|
182
|
+
if (x.value || b.value && e.useTabs.includes("form")) {
|
|
183
|
+
let r;
|
|
184
|
+
t.push(n.form ? n.form({
|
|
185
|
+
id: f.value,
|
|
186
|
+
bpmnInstances: v,
|
|
187
|
+
element: _,
|
|
188
|
+
type: p.value
|
|
189
|
+
}) : (x.value || b.value && e.useTabs.includes("form")) && d.value ? g(s, {
|
|
190
|
+
label: "表单",
|
|
191
|
+
name: "form",
|
|
192
|
+
lazy: !0
|
|
193
|
+
}, V(r = M()) ? r : { default: () => [r] }) : null);
|
|
194
|
+
}
|
|
195
|
+
if (x.value || b.value && e.useTabs.includes("task")) {
|
|
196
|
+
let e;
|
|
197
|
+
t.push(n.task ? n.task({
|
|
198
|
+
id: f.value,
|
|
199
|
+
bpmnInstances: v,
|
|
200
|
+
element: _,
|
|
201
|
+
type: p.value
|
|
202
|
+
}) : p.value.indexOf("Task") === -1 ? null : g(s, {
|
|
203
|
+
label: "任务",
|
|
204
|
+
name: "task",
|
|
205
|
+
lazy: !0
|
|
206
|
+
}, V(e = N()) ? e : { default: () => [e] }));
|
|
207
|
+
}
|
|
208
|
+
if ((x.value || b.value && e.useTabs.includes("multiInstance")) && p.value.indexOf("Task") !== -1) {
|
|
209
|
+
let e;
|
|
210
|
+
t.push(g(s, {
|
|
211
|
+
label: "多实例",
|
|
212
|
+
name: "multiInstance"
|
|
213
|
+
}, V(e = ie()) ? e : { default: () => [e] }));
|
|
214
|
+
}
|
|
215
|
+
if (x.value || b.value && e.useTabs.includes("listeners")) {
|
|
216
|
+
let e;
|
|
217
|
+
t.push(g(s, {
|
|
218
|
+
label: "执行监听器",
|
|
219
|
+
name: "listeners",
|
|
220
|
+
lazy: !0
|
|
221
|
+
}, V(e = ae()) ? e : { default: () => [e] }));
|
|
222
|
+
}
|
|
223
|
+
if ((x.value || b.value && e.useTabs.includes("taskListeners")) && p.value === "UserTask") {
|
|
224
|
+
let e;
|
|
225
|
+
t.push(g(s, {
|
|
226
|
+
label: "任务监听器",
|
|
227
|
+
name: "taskListeners",
|
|
228
|
+
lazy: !0
|
|
229
|
+
}, V(e = P()) ? e : { default: () => [e] }));
|
|
230
|
+
}
|
|
231
|
+
if (x.value || b.value && e.useTabs.includes("extensions")) {
|
|
232
|
+
let e;
|
|
233
|
+
t.push(g(s, {
|
|
234
|
+
label: "扩展属性",
|
|
235
|
+
name: "extensions",
|
|
236
|
+
lazy: !0
|
|
237
|
+
}, V(e = F()) ? e : { default: () => [e] }));
|
|
238
|
+
}
|
|
239
|
+
if (x.value || b.value && e.useTabs.includes("other")) {
|
|
240
|
+
let e;
|
|
241
|
+
t.push(g(s, {
|
|
242
|
+
label: "其他",
|
|
243
|
+
name: "other",
|
|
244
|
+
lazy: !0
|
|
245
|
+
}, V(e = I()) ? e : { default: () => [e] }));
|
|
246
|
+
}
|
|
247
|
+
return (x.value || b.value && e.useTabs.includes("extend")) && n.extend && t.push(n.extend({
|
|
248
|
+
id: f.value,
|
|
249
|
+
bpmnInstances: v,
|
|
250
|
+
element: _,
|
|
251
|
+
type: p.value
|
|
252
|
+
})), t;
|
|
253
|
+
}, se = () => {
|
|
254
|
+
let e;
|
|
255
|
+
return re(g(c, {
|
|
256
|
+
modelValue: m.value,
|
|
257
|
+
"onUpdate:modelValue": (e) => m.value = e
|
|
258
|
+
}, V(e = oe()) ? e : { default: () => [e] }), [[ee, r.value]]);
|
|
259
|
+
}, L = () => {
|
|
260
|
+
let t = [];
|
|
261
|
+
return (x.value || b.value && e.useTabs.includes("base")) && t.push(g(o, { name: "base" }, {
|
|
262
|
+
title: () => g("div", { class: "panel-tab__title" }, [g("i", { class: "el-icon-info" }, null), h("常规")]),
|
|
263
|
+
default: k
|
|
264
|
+
})), (x.value || b.value && e.useTabs.includes("message")) && p.value === "Process" && t.push(g(o, { name: "message" }, {
|
|
265
|
+
title: () => g("div", { class: "panel-tab__title" }, [g("i", { class: "el-icon-s-comment" }, null), h("消息与信号")]),
|
|
266
|
+
default: A
|
|
267
|
+
})), (x.value || b.value && e.useTabs.includes("condition")) && i.value && t.push(g(o, { name: "condition" }, {
|
|
268
|
+
title: () => g("div", { class: "panel-tab__title" }, [g("i", { class: "el-icon-s-promotion" }, null), h("流转条件")]),
|
|
269
|
+
default: j
|
|
270
|
+
})), (x.value || b.value && e.useTabs.includes("form")) && t.push(n.form ? n.form({
|
|
271
|
+
id: f.value,
|
|
272
|
+
bpmnInstances: v,
|
|
273
|
+
element: _,
|
|
274
|
+
type: p.value
|
|
275
|
+
}) : (x.value || b.value && e.useTabs.includes("form")) && d.value ? g(o, { name: "form" }, {
|
|
276
|
+
title: () => g("div", { class: "panel-tab__title" }, [g("i", { class: "el-icon-s-order" }, null), h("表单")]),
|
|
277
|
+
default: M
|
|
278
|
+
}) : null), (x.value || b.value && e.useTabs.includes("task")) && t.push(n.form ? n.form({
|
|
279
|
+
id: f.value,
|
|
280
|
+
bpmnInstances: v,
|
|
281
|
+
element: _,
|
|
282
|
+
type: p.value
|
|
283
|
+
}) : p.value.indexOf("Task") === -1 ? null : g(o, { name: "task" }, {
|
|
284
|
+
title: () => g("div", { class: "panel-tab__title" }, [g("i", { class: "el-icon-s-claim" }, null), h("任务")]),
|
|
285
|
+
default: N
|
|
286
|
+
})), (x.value || b.value && e.useTabs.includes("multiInstance")) && p.value.indexOf("Task") !== -1 && t.push(g(o, { name: "multiInstance" }, {
|
|
287
|
+
title: () => g("div", { class: "panel-tab__title" }, [g("i", { class: "el-icon-s-help" }, null), h("多实例")]),
|
|
288
|
+
default: ie
|
|
289
|
+
})), (x.value || b.value && e.useTabs.includes("listeners")) && t.push(g(o, { name: "listeners" }, {
|
|
290
|
+
title: () => g("div", { class: "panel-tab__title" }, [
|
|
291
|
+
g("i", { class: "el-icon-message-solid" }, null),
|
|
292
|
+
h("执行监听器"),
|
|
293
|
+
g(l, { effect: "light" }, {
|
|
294
|
+
content: () => g("p", null, [h("发送和退回时会触发")]),
|
|
295
|
+
default: () => g("i", { class: "el-icon-info" }, null)
|
|
536
296
|
})
|
|
537
|
-
])
|
|
538
|
-
default:
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
"element",
|
|
547
|
-
"type"
|
|
548
|
-
])]),
|
|
549
|
-
_: 1
|
|
550
|
-
})) : v("v-if", !0),
|
|
551
|
-
v(" 任务监听器 "),
|
|
552
|
-
(S.isNullOrUndefined || S.isArray && n.useTabs.includes("taskListeners")) && f.elementType === "UserTask" ? (w(), _(I, {
|
|
553
|
-
key: "taskListeners",
|
|
554
|
-
name: "taskListeners"
|
|
555
|
-
}, {
|
|
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))]),
|
|
562
|
-
_: 1
|
|
297
|
+
]),
|
|
298
|
+
default: ae
|
|
299
|
+
})), (x.value || b.value && e.useTabs.includes("taskListeners")) && p.value === "UserTask" && t.push(g(o, { name: "taskListeners" }, {
|
|
300
|
+
title: () => g("div", { class: "panel-tab__title" }, [
|
|
301
|
+
g("i", { class: "el-icon-message-solid" }, null),
|
|
302
|
+
h("执行监听器"),
|
|
303
|
+
g(l, { effect: "light" }, {
|
|
304
|
+
content: () => g("p", null, [h("任务实例的创建、指派、完成、删除、更新、超时会触发")]),
|
|
305
|
+
default: () => g("i", { class: "el-icon-info" }, null)
|
|
563
306
|
})
|
|
564
|
-
])
|
|
565
|
-
default:
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
}, null,
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
}))
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
}
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
},
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
element: f.element,
|
|
606
|
-
"bpmn-instances": f.bpmnInstances
|
|
607
|
-
}, null, 8, [
|
|
608
|
-
"id",
|
|
609
|
-
"element",
|
|
610
|
-
"bpmn-instances"
|
|
611
|
-
])]),
|
|
612
|
-
_: 1
|
|
613
|
-
})) : v("v-if", !0),
|
|
614
|
-
v(" 拓展 "),
|
|
615
|
-
S.isNullOrUndefined || S.isArray && n.useTabs.includes("extend") ? T(e.$slots, "extend", {
|
|
616
|
-
key: 10,
|
|
617
|
-
id: f.elementId,
|
|
618
|
-
bpmnInstances: f.bpmnInstances,
|
|
619
|
-
element: f.element,
|
|
620
|
-
type: f.elementType
|
|
621
|
-
}) : v("v-if", !0)
|
|
622
|
-
]),
|
|
623
|
-
_: 3
|
|
624
|
-
}, 8, ["modelValue"])), [[oe, f.isPanelVisible]])], 6);
|
|
625
|
-
}
|
|
626
|
-
var Te = /* @__PURE__ */ e(be, [["render", we]]), Ee = (e, t, n) => (n = n || "camunda", `<?xml version="1.0" encoding="UTF-8"?>
|
|
307
|
+
]),
|
|
308
|
+
default: P
|
|
309
|
+
})), (x.value || b.value && e.useTabs.includes("extensions")) && t.push(g(o, { name: "task" }, {
|
|
310
|
+
title: () => g("div", { class: "panel-tab__title" }, [g("i", { class: "el-icon-circle-plus" }, null), h("扩展属性")]),
|
|
311
|
+
default: F
|
|
312
|
+
})), (x.value || b.value && e.useTabs.includes("other")) && t.push(g(o, { name: "other" }, {
|
|
313
|
+
title: () => g("div", { class: "panel-tab__title" }, [g("i", { class: "el-icon-s-promotion" }, null), h("其他")]),
|
|
314
|
+
default: I
|
|
315
|
+
})), (x.value || b.value && e.useTabs.includes("extend")) && n.extend && t.push(n.extend({
|
|
316
|
+
id: f.value,
|
|
317
|
+
bpmnInstances: v,
|
|
318
|
+
element: _,
|
|
319
|
+
type: p.value
|
|
320
|
+
})), t;
|
|
321
|
+
}, R = () => {
|
|
322
|
+
let e;
|
|
323
|
+
return re(g(a, {
|
|
324
|
+
modelValue: m.value,
|
|
325
|
+
"onUpdate:modelValue": (e) => m.value = e
|
|
326
|
+
}, V(e = L()) ? e : { default: () => [e] }), [[ee, r.value]]);
|
|
327
|
+
};
|
|
328
|
+
return () => {
|
|
329
|
+
var t;
|
|
330
|
+
return g("div", {
|
|
331
|
+
class: ["process-panel__container", {
|
|
332
|
+
show: r.value,
|
|
333
|
+
hide: !r.value
|
|
334
|
+
}],
|
|
335
|
+
style: { width: `${r.value ? e.width : 34}px` },
|
|
336
|
+
onClick: () => {
|
|
337
|
+
r.value = !0;
|
|
338
|
+
}
|
|
339
|
+
}, [g("div", { style: "height: 40px; line-height: 40px" }, [g("i", {
|
|
340
|
+
class: ["open-properties-handel", r.value ? "el-icon-caret-right" : "el-icon-caret-left"],
|
|
341
|
+
onClick: (e) => {
|
|
342
|
+
e.stopPropagation(), r.value = !r.value;
|
|
343
|
+
}
|
|
344
|
+
}, null), r.value ? _ == null || (t = _.businessObject) == null ? void 0 : t.name : ""]), e.panelType === "tab" ? se() : R()]);
|
|
345
|
+
};
|
|
346
|
+
}
|
|
347
|
+
}, De = (e, t, n) => (n = n || "camunda", `<?xml version="1.0" encoding="UTF-8"?>
|
|
627
348
|
<bpmn2:definitions
|
|
628
349
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
629
350
|
xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL"
|
|
@@ -645,7 +366,7 @@ var Te = /* @__PURE__ */ e(be, [["render", we]]), Ee = (e, t, n) => (n = n || "c
|
|
|
645
366
|
</bpmn2:definitions>`);
|
|
646
367
|
//#endregion
|
|
647
368
|
//#region src/components/bpmn-process-designer/plugins/translate/customTranslate.js
|
|
648
|
-
function
|
|
369
|
+
function Oe(e) {
|
|
649
370
|
return function(t, n) {
|
|
650
371
|
return n = n || {}, t = e[t] || t, t.replace(/{([^}]+)}/g, function(t, r) {
|
|
651
372
|
let i = n[r];
|
|
@@ -655,7 +376,7 @@ function De(e) {
|
|
|
655
376
|
}
|
|
656
377
|
//#endregion
|
|
657
378
|
//#region src/components/bpmn-process-designer/plugins/translate/zh.js
|
|
658
|
-
var
|
|
379
|
+
var ke = {
|
|
659
380
|
"Append EndEvent": "追加结束事件",
|
|
660
381
|
"Append Gateway": "追加网关",
|
|
661
382
|
"Append Task": "追加任务",
|
|
@@ -892,7 +613,7 @@ var Oe = {
|
|
|
892
613
|
Data: "数据",
|
|
893
614
|
TextAnnotation: "文本说明",
|
|
894
615
|
Tasks: "任务"
|
|
895
|
-
},
|
|
616
|
+
}, H = [
|
|
896
617
|
{
|
|
897
618
|
name: "commentInForm",
|
|
898
619
|
isAttr: !0,
|
|
@@ -918,7 +639,7 @@ var Oe = {
|
|
|
918
639
|
isAttr: !0,
|
|
919
640
|
type: "String"
|
|
920
641
|
}
|
|
921
|
-
],
|
|
642
|
+
], Ae = {
|
|
922
643
|
name: "Camunda",
|
|
923
644
|
uri: "http://camunda.org/schema/1.0/bpmn",
|
|
924
645
|
prefix: "camunda",
|
|
@@ -1210,7 +931,7 @@ var Oe = {
|
|
|
1210
931
|
isAttr: !0,
|
|
1211
932
|
type: "String"
|
|
1212
933
|
},
|
|
1213
|
-
...
|
|
934
|
+
...H
|
|
1214
935
|
]
|
|
1215
936
|
},
|
|
1216
937
|
{
|
|
@@ -1850,7 +1571,7 @@ var Oe = {
|
|
|
1850
1571
|
}
|
|
1851
1572
|
],
|
|
1852
1573
|
emumerations: []
|
|
1853
|
-
},
|
|
1574
|
+
}, je = {
|
|
1854
1575
|
name: "Activiti",
|
|
1855
1576
|
uri: "http://activiti.org/bpmn",
|
|
1856
1577
|
prefix: "activiti",
|
|
@@ -2156,7 +1877,7 @@ var Oe = {
|
|
|
2156
1877
|
isAttr: !0,
|
|
2157
1878
|
type: "String"
|
|
2158
1879
|
},
|
|
2159
|
-
...
|
|
1880
|
+
...H
|
|
2160
1881
|
]
|
|
2161
1882
|
},
|
|
2162
1883
|
{
|
|
@@ -2772,7 +2493,7 @@ var Oe = {
|
|
|
2772
2493
|
}
|
|
2773
2494
|
],
|
|
2774
2495
|
emumerations: []
|
|
2775
|
-
},
|
|
2496
|
+
}, Me = {
|
|
2776
2497
|
name: "Flowable",
|
|
2777
2498
|
uri: "http://flowable.org/bpmn",
|
|
2778
2499
|
prefix: "flowable",
|
|
@@ -3071,7 +2792,7 @@ var Oe = {
|
|
|
3071
2792
|
isAttr: !0,
|
|
3072
2793
|
type: "String"
|
|
3073
2794
|
},
|
|
3074
|
-
...
|
|
2795
|
+
...H
|
|
3075
2796
|
]
|
|
3076
2797
|
},
|
|
3077
2798
|
{
|
|
@@ -3923,57 +3644,57 @@ var Oe = {
|
|
|
3923
3644
|
}]
|
|
3924
3645
|
}
|
|
3925
3646
|
]
|
|
3926
|
-
},
|
|
3927
|
-
function
|
|
3647
|
+
}, Ne = "*";
|
|
3648
|
+
function U(e) {
|
|
3928
3649
|
let t = this;
|
|
3929
3650
|
e.on("moddleCopy.canCopyProperty", function(e) {
|
|
3930
3651
|
let n = e.property, r = e.parent;
|
|
3931
3652
|
return t.canCopyProperty(n, r);
|
|
3932
3653
|
});
|
|
3933
3654
|
}
|
|
3934
|
-
|
|
3935
|
-
if (
|
|
3936
|
-
},
|
|
3937
|
-
if (
|
|
3938
|
-
let t =
|
|
3939
|
-
return !(!t ||
|
|
3655
|
+
U.$inject = ["eventBus"], U.prototype.canCopyProperty = function(e, t) {
|
|
3656
|
+
if (se(e) && !Fe(e, t) || W(e, "camunda:InputOutput") && !this.canHostInputOutput(t) || Pe(e, ["camunda:Connector", "camunda:Field"]) && !this.canHostConnector(t) || W(e, "camunda:In") && !this.canHostIn(t)) return !1;
|
|
3657
|
+
}, U.prototype.canHostInputOutput = function(e) {
|
|
3658
|
+
if (G(e, "camunda:Connector")) return !0;
|
|
3659
|
+
let t = G(e, "bpmn:FlowNode");
|
|
3660
|
+
return !(!t || Pe(t, [
|
|
3940
3661
|
"bpmn:StartEvent",
|
|
3941
3662
|
"bpmn:Gateway",
|
|
3942
3663
|
"bpmn:BoundaryEvent"
|
|
3943
|
-
]) ||
|
|
3944
|
-
},
|
|
3945
|
-
return
|
|
3946
|
-
},
|
|
3947
|
-
return
|
|
3664
|
+
]) || W(t, "bpmn:SubProcess") && t.get("triggeredByEvent"));
|
|
3665
|
+
}, U.prototype.canHostConnector = function(e) {
|
|
3666
|
+
return W(G(e, "camunda:ServiceTaskLike"), "bpmn:MessageEventDefinition") ? G(e, "bpmn:IntermediateThrowEvent") || G(e, "bpmn:EndEvent") : !0;
|
|
3667
|
+
}, U.prototype.canHostIn = function(e) {
|
|
3668
|
+
return G(e, "bpmn:CallActivity") ? !0 : G(e, "bpmn:SignalEventDefinition") ? G(e, "bpmn:IntermediateThrowEvent") || G(e, "bpmn:EndEvent") : !0;
|
|
3948
3669
|
};
|
|
3949
|
-
function
|
|
3950
|
-
return e &&
|
|
3670
|
+
function W(e, t) {
|
|
3671
|
+
return e && oe(e.$instanceOf) && e.$instanceOf(t);
|
|
3951
3672
|
}
|
|
3952
|
-
function
|
|
3673
|
+
function Pe(e, t) {
|
|
3953
3674
|
return L(t, function(t) {
|
|
3954
|
-
return
|
|
3675
|
+
return W(e, t);
|
|
3955
3676
|
});
|
|
3956
3677
|
}
|
|
3957
|
-
function
|
|
3678
|
+
function G(e, t) {
|
|
3958
3679
|
if (!t) return e.$parent;
|
|
3959
|
-
if (
|
|
3960
|
-
if (e.$parent) return
|
|
3680
|
+
if (W(e, t)) return e;
|
|
3681
|
+
if (e.$parent) return G(e.$parent, t);
|
|
3961
3682
|
}
|
|
3962
|
-
function
|
|
3683
|
+
function Fe(e, t) {
|
|
3963
3684
|
let n = e.$type && e.$model.getTypeDescriptor(e.$type), r = n && n.meta && n.meta.allowedIn;
|
|
3964
|
-
return !r ||
|
|
3965
|
-
return
|
|
3685
|
+
return !r || Ie(r) ? !0 : L(r, function(e) {
|
|
3686
|
+
return G(t, e);
|
|
3966
3687
|
});
|
|
3967
3688
|
}
|
|
3968
|
-
function
|
|
3969
|
-
return e.indexOf(
|
|
3689
|
+
function Ie(e) {
|
|
3690
|
+
return e.indexOf(Ne) !== -1;
|
|
3970
3691
|
}
|
|
3971
3692
|
//#endregion
|
|
3972
3693
|
//#region src/components/bpmn-process-designer/plugins/extension-moddle/camunda/index.js
|
|
3973
|
-
var
|
|
3694
|
+
var Le = {
|
|
3974
3695
|
__init__: ["camundaModdleExtension"],
|
|
3975
|
-
camundaModdleExtension: ["type",
|
|
3976
|
-
},
|
|
3696
|
+
camundaModdleExtension: ["type", U]
|
|
3697
|
+
}, Re = {
|
|
3977
3698
|
FailedJobRetryTimeCycle: [
|
|
3978
3699
|
"bpmn:StartEvent",
|
|
3979
3700
|
"bpmn:BoundaryEvent",
|
|
@@ -3983,42 +3704,42 @@ var Ie = {
|
|
|
3983
3704
|
Connector: ["bpmn:EndEvent", "bpmn:IntermediateThrowEvent"],
|
|
3984
3705
|
Field: ["bpmn:EndEvent", "bpmn:IntermediateThrowEvent"]
|
|
3985
3706
|
};
|
|
3986
|
-
function
|
|
3707
|
+
function K(e, t) {
|
|
3987
3708
|
return e && typeof e.$instanceOf == "function" && e.$instanceOf(t);
|
|
3988
3709
|
}
|
|
3989
|
-
function
|
|
3710
|
+
function ze(e) {
|
|
3990
3711
|
return e && e.length;
|
|
3991
3712
|
}
|
|
3992
|
-
function
|
|
3993
|
-
return
|
|
3994
|
-
return
|
|
3713
|
+
function q(e, t) {
|
|
3714
|
+
return ze(e) && L(e, function(e) {
|
|
3715
|
+
return K(e, t);
|
|
3995
3716
|
});
|
|
3996
3717
|
}
|
|
3997
|
-
function
|
|
3718
|
+
function Be(e, t) {
|
|
3998
3719
|
return L(t, function(t) {
|
|
3999
|
-
return
|
|
3720
|
+
return K(e, t);
|
|
4000
3721
|
});
|
|
4001
3722
|
}
|
|
4002
|
-
function
|
|
4003
|
-
let r = t.name, i =
|
|
4004
|
-
return r === e &&
|
|
3723
|
+
function J(e, t, n) {
|
|
3724
|
+
let r = t.name, i = Re[r.replace(/activiti:/, "")];
|
|
3725
|
+
return r === e && Be(n, i);
|
|
4005
3726
|
}
|
|
4006
|
-
function
|
|
3727
|
+
function Y(e) {
|
|
4007
3728
|
e.on("property.clone", function(e) {
|
|
4008
3729
|
let t = e.newElement, n = e.propertyDescriptor;
|
|
4009
3730
|
this.canCloneProperty(t, n);
|
|
4010
3731
|
}, this);
|
|
4011
3732
|
}
|
|
4012
|
-
|
|
4013
|
-
if (
|
|
4014
|
-
if (
|
|
3733
|
+
Y.$inject = ["eventBus"], Y.prototype.canCloneProperty = function(e, t) {
|
|
3734
|
+
if (J("activiti:FailedJobRetryTimeCycle", t, e)) return q(e.eventDefinitions, "bpmn:TimerEventDefinition") || q(e.eventDefinitions, "bpmn:SignalEventDefinition") || K(e.loopCharacteristics, "bpmn:MultiInstanceLoopCharacteristics");
|
|
3735
|
+
if (J("activiti:Connector", t, e) || J("activiti:Field", t, e)) return q(e.eventDefinitions, "bpmn:MessageEventDefinition");
|
|
4015
3736
|
};
|
|
4016
3737
|
//#endregion
|
|
4017
3738
|
//#region src/components/bpmn-process-designer/plugins/extension-moddle/activiti/index.js
|
|
4018
|
-
var
|
|
3739
|
+
var Ve = {
|
|
4019
3740
|
__init__: ["ActivitiModdleExtension"],
|
|
4020
|
-
ActivitiModdleExtension: ["type",
|
|
4021
|
-
},
|
|
3741
|
+
ActivitiModdleExtension: ["type", Y]
|
|
3742
|
+
}, He = {
|
|
4022
3743
|
FailedJobRetryTimeCycle: [
|
|
4023
3744
|
"bpmn:StartEvent",
|
|
4024
3745
|
"bpmn:BoundaryEvent",
|
|
@@ -4028,44 +3749,44 @@ var Be = {
|
|
|
4028
3749
|
Connector: ["bpmn:EndEvent", "bpmn:IntermediateThrowEvent"],
|
|
4029
3750
|
Field: ["bpmn:EndEvent", "bpmn:IntermediateThrowEvent"]
|
|
4030
3751
|
};
|
|
4031
|
-
function
|
|
3752
|
+
function X(e, t) {
|
|
4032
3753
|
return e && typeof e.$instanceOf == "function" && e.$instanceOf(t);
|
|
4033
3754
|
}
|
|
4034
|
-
function
|
|
3755
|
+
function Ue(e) {
|
|
4035
3756
|
return e && e.length;
|
|
4036
3757
|
}
|
|
4037
|
-
function
|
|
4038
|
-
return
|
|
4039
|
-
return
|
|
3758
|
+
function Z(e, t) {
|
|
3759
|
+
return Ue(e) && L(e, function(e) {
|
|
3760
|
+
return X(e, t);
|
|
4040
3761
|
});
|
|
4041
3762
|
}
|
|
4042
|
-
function
|
|
3763
|
+
function We(e, t) {
|
|
4043
3764
|
return L(t, function(t) {
|
|
4044
|
-
return
|
|
3765
|
+
return X(e, t);
|
|
4045
3766
|
});
|
|
4046
3767
|
}
|
|
4047
|
-
function
|
|
4048
|
-
let r = t.name, i =
|
|
4049
|
-
return r === e &&
|
|
3768
|
+
function Q(e, t, n) {
|
|
3769
|
+
let r = t.name, i = He[r.replace(/flowable:/, "")];
|
|
3770
|
+
return r === e && We(n, i);
|
|
4050
3771
|
}
|
|
4051
|
-
function
|
|
3772
|
+
function Ge(e) {
|
|
4052
3773
|
e.on("property.clone", function(e) {
|
|
4053
3774
|
let t = e.newElement, n = e.propertyDescriptor;
|
|
4054
3775
|
this.canCloneProperty(t, n);
|
|
4055
3776
|
}, this);
|
|
4056
3777
|
}
|
|
4057
|
-
|
|
4058
|
-
if (
|
|
4059
|
-
if (
|
|
3778
|
+
Ge.$inject = ["eventBus"], Ge.prototype.canCloneProperty = function(e, t) {
|
|
3779
|
+
if (Q("flowable:FailedJobRetryTimeCycle", t, e)) return Z(e.eventDefinitions, "bpmn:TimerEventDefinition") || Z(e.eventDefinitions, "bpmn:SignalEventDefinition") || X(e.loopCharacteristics, "bpmn:MultiInstanceLoopCharacteristics");
|
|
3780
|
+
if (Q("flowable:Connector", t, e) || Q("flowable:Field", t, e)) return Z(e.eventDefinitions, "bpmn:MessageEventDefinition");
|
|
4060
3781
|
};
|
|
4061
3782
|
//#endregion
|
|
4062
3783
|
//#region src/components/bpmn-process-designer/plugins/extension-moddle/flowable/index.js
|
|
4063
|
-
var
|
|
3784
|
+
var Ke = {
|
|
4064
3785
|
__init__: ["FlowableModdleExtension"],
|
|
4065
|
-
FlowableModdleExtension: ["type",
|
|
3786
|
+
FlowableModdleExtension: ["type", Ge]
|
|
4066
3787
|
};
|
|
4067
|
-
|
|
4068
|
-
var
|
|
3788
|
+
k.registerLanguage("xml", ie), k.registerLanguage("json", ae);
|
|
3789
|
+
var qe = {
|
|
4069
3790
|
name: "ProcessDesigner",
|
|
4070
3791
|
componentName: "MyProcessDesigner",
|
|
4071
3792
|
props: {
|
|
@@ -4144,24 +3865,24 @@ var Ke = {
|
|
|
4144
3865
|
computed: {
|
|
4145
3866
|
additionalModules() {
|
|
4146
3867
|
let e = [];
|
|
4147
|
-
if (this.onlyCustomizeAddi) return
|
|
4148
|
-
|
|
4149
|
-
let t = { translate: ["value",
|
|
4150
|
-
return e.push(t), this.simulation && e.push(
|
|
3868
|
+
if (this.onlyCustomizeAddi) return O(this.additionalModel) ? this.additionalModel || [] : [this.additionalModel];
|
|
3869
|
+
O(this.additionalModel) ? e.push(...this.additionalModel) : this.additionalModel && e.push(this.additionalModel);
|
|
3870
|
+
let t = { translate: ["value", Oe(this.translations || ke)] };
|
|
3871
|
+
return e.push(t), this.simulation && e.push(M), e.push(j), this.prefix === "camunda" && e.push(Le), this.prefix === "flowable" && e.push(Ke), this.prefix === "activiti" && e.push(Ve), e;
|
|
4151
3872
|
},
|
|
4152
3873
|
moddleExtensions() {
|
|
4153
3874
|
let e = {};
|
|
4154
3875
|
if (this.onlyCustomizeModdle) return this.moddleExtension || null;
|
|
4155
3876
|
if (this.moddleExtension) for (let t in this.moddleExtension) e[t] = this.moddleExtension[t];
|
|
4156
3877
|
return this.prefix === "activiti" && (e.activiti = {
|
|
4157
|
-
...Ae,
|
|
4158
|
-
types: [...Ae.types, ...this.extendTypes || []]
|
|
4159
|
-
}), this.prefix === "flowable" && (e.flowable = {
|
|
4160
3878
|
...je,
|
|
4161
3879
|
types: [...je.types, ...this.extendTypes || []]
|
|
3880
|
+
}), this.prefix === "flowable" && (e.flowable = {
|
|
3881
|
+
...Me,
|
|
3882
|
+
types: [...Me.types, ...this.extendTypes || []]
|
|
4162
3883
|
}), this.prefix === "camunda" && (e.camunda = {
|
|
4163
|
-
...
|
|
4164
|
-
types: [...
|
|
3884
|
+
...Ae,
|
|
3885
|
+
types: [...Ae.types, ...this.extendTypes || []]
|
|
4165
3886
|
}), e;
|
|
4166
3887
|
}
|
|
4167
3888
|
},
|
|
@@ -4173,7 +3894,7 @@ var Ke = {
|
|
|
4173
3894
|
},
|
|
4174
3895
|
methods: {
|
|
4175
3896
|
initBpmnModeler() {
|
|
4176
|
-
this.bpmnModeler || (this.bpmnModeler =
|
|
3897
|
+
this.bpmnModeler || (this.bpmnModeler = y(new A({
|
|
4177
3898
|
container: this.$refs["bpmn-canvas"],
|
|
4178
3899
|
additionalModules: this.additionalModules,
|
|
4179
3900
|
moddleExtensions: this.moddleExtensions,
|
|
@@ -4202,7 +3923,7 @@ var Ke = {
|
|
|
4202
3923
|
});
|
|
4203
3924
|
},
|
|
4204
3925
|
async createNewDiagram(e) {
|
|
4205
|
-
let t = this.processId || `Process_${(/* @__PURE__ */ new Date()).getTime()}`, n = this.processName || `业务流程_${(/* @__PURE__ */ new Date()).getTime()}`, r = e ||
|
|
3926
|
+
let t = this.processId || `Process_${(/* @__PURE__ */ new Date()).getTime()}`, n = this.processName || `业务流程_${(/* @__PURE__ */ new Date()).getTime()}`, r = e || De(t, n, this.prefix);
|
|
4206
3927
|
try {
|
|
4207
3928
|
let { warnings: e } = await this.bpmnModeler.importXML(r);
|
|
4208
3929
|
this.bpmnModeler.get("canvas").zoom("fit-viewport", "center"), e != null && e.length;
|
|
@@ -4214,7 +3935,7 @@ var Ke = {
|
|
|
4214
3935
|
try {
|
|
4215
3936
|
let { err: r, xml: i } = await this.bpmnModeler.saveXML();
|
|
4216
3937
|
r && console.error(`[Process Designer Warn ]: ${r.message || r}`);
|
|
4217
|
-
let { definitions: a } = new
|
|
3938
|
+
let { definitions: a } = new N().xml2js(i);
|
|
4218
3939
|
if (t = a.process._name || t, e === "xml" || e === "bpmn") {
|
|
4219
3940
|
let { href: r, filename: a } = this.setEncoded(e.toUpperCase(), t, i);
|
|
4220
3941
|
n(r, a);
|
|
@@ -4309,122 +4030,122 @@ var Ke = {
|
|
|
4309
4030
|
});
|
|
4310
4031
|
},
|
|
4311
4032
|
previewProcessJson() {
|
|
4312
|
-
let e = new
|
|
4033
|
+
let e = new N();
|
|
4313
4034
|
this.bpmnModeler.saveXML({ format: !0 }).then(({ xml: t }) => {
|
|
4314
4035
|
let { definitions: n } = e.xml2js(t);
|
|
4315
4036
|
n ? this.previewResult = JSON.stringify(n, null, 4) : this.previewResult = "", this.previewType = "json", this.previewModelVisible = !0;
|
|
4316
4037
|
});
|
|
4317
4038
|
}
|
|
4318
4039
|
}
|
|
4319
|
-
},
|
|
4040
|
+
}, Je = { class: "my-process-designer" }, Ye = { class: "my-process-designer__header" }, Xe = { class: "my-process-designer__container" }, Ze = {
|
|
4320
4041
|
ref: "bpmn-canvas",
|
|
4321
4042
|
class: "my-process-designer__canvas flow-background-image"
|
|
4322
4043
|
};
|
|
4323
|
-
function
|
|
4324
|
-
let
|
|
4325
|
-
return
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
default:
|
|
4330
|
-
|
|
4331
|
-
|
|
4044
|
+
function Qe(e, a, o, s, c, u) {
|
|
4045
|
+
let _ = n, v = l, y = i, b = r, S = t;
|
|
4046
|
+
return x(), p("div", Je, [
|
|
4047
|
+
m("div", Ye, [
|
|
4048
|
+
w(e.$slots, "control-header", {}, () => [
|
|
4049
|
+
g(y, { key: "file-control" }, {
|
|
4050
|
+
default: D(() => [
|
|
4051
|
+
w(e.$slots, "toolbar-buttons"),
|
|
4052
|
+
o.simulation ? (x(), d(v, {
|
|
4332
4053
|
key: 0,
|
|
4333
4054
|
effect: "light",
|
|
4334
4055
|
content: "导入流程"
|
|
4335
4056
|
}, {
|
|
4336
|
-
default:
|
|
4337
|
-
size:
|
|
4338
|
-
type:
|
|
4057
|
+
default: D(() => [g(_, {
|
|
4058
|
+
size: o.headerButtonSize,
|
|
4059
|
+
type: o.headerButtonType,
|
|
4339
4060
|
icon: "el-icon-folder-opened",
|
|
4340
|
-
onClick:
|
|
4061
|
+
onClick: a[0] || (a[0] = (t) => e.$refs.refFile.click())
|
|
4341
4062
|
}, {
|
|
4342
|
-
default:
|
|
4063
|
+
default: D(() => [...a[17] || (a[17] = [h(" 导入 ", -1)])]),
|
|
4343
4064
|
_: 1
|
|
4344
4065
|
}, 8, ["size", "type"])]),
|
|
4345
4066
|
_: 1
|
|
4346
|
-
})) :
|
|
4347
|
-
|
|
4348
|
-
content:
|
|
4349
|
-
|
|
4350
|
-
size:
|
|
4067
|
+
})) : f("v-if", !0),
|
|
4068
|
+
g(v, { effect: "light" }, {
|
|
4069
|
+
content: D(() => [
|
|
4070
|
+
g(_, {
|
|
4071
|
+
size: o.headerButtonSize,
|
|
4351
4072
|
text: "",
|
|
4352
|
-
onClick:
|
|
4073
|
+
onClick: a[1] || (a[1] = (e) => u.downloadProcessAsXml())
|
|
4353
4074
|
}, {
|
|
4354
|
-
default:
|
|
4075
|
+
default: D(() => [...a[19] || (a[19] = [h("下载为XML文件", -1)])]),
|
|
4355
4076
|
_: 1
|
|
4356
4077
|
}, 8, ["size"]),
|
|
4357
|
-
|
|
4358
|
-
|
|
4359
|
-
size:
|
|
4078
|
+
a[22] || (a[22] = m("br", null, null, -1)),
|
|
4079
|
+
g(_, {
|
|
4080
|
+
size: o.headerButtonSize,
|
|
4360
4081
|
text: "",
|
|
4361
|
-
onClick:
|
|
4082
|
+
onClick: a[2] || (a[2] = (e) => u.downloadProcessAsSvg())
|
|
4362
4083
|
}, {
|
|
4363
|
-
default:
|
|
4084
|
+
default: D(() => [...a[20] || (a[20] = [h("下载为SVG文件", -1)])]),
|
|
4364
4085
|
_: 1
|
|
4365
4086
|
}, 8, ["size"]),
|
|
4366
|
-
|
|
4367
|
-
|
|
4368
|
-
size:
|
|
4087
|
+
a[23] || (a[23] = m("br", null, null, -1)),
|
|
4088
|
+
g(_, {
|
|
4089
|
+
size: o.headerButtonSize,
|
|
4369
4090
|
text: "",
|
|
4370
|
-
onClick:
|
|
4091
|
+
onClick: a[3] || (a[3] = (e) => u.downloadProcessAsBpmn())
|
|
4371
4092
|
}, {
|
|
4372
|
-
default:
|
|
4093
|
+
default: D(() => [...a[21] || (a[21] = [h(" 下载为BPMN文件 ", -1)])]),
|
|
4373
4094
|
_: 1
|
|
4374
4095
|
}, 8, ["size"])
|
|
4375
4096
|
]),
|
|
4376
|
-
default:
|
|
4377
|
-
size:
|
|
4378
|
-
type:
|
|
4097
|
+
default: D(() => [g(_, {
|
|
4098
|
+
size: o.headerButtonSize,
|
|
4099
|
+
type: o.headerButtonType,
|
|
4379
4100
|
icon: "el-icon-download"
|
|
4380
4101
|
}, {
|
|
4381
|
-
default:
|
|
4102
|
+
default: D(() => [...a[18] || (a[18] = [h(" 下载 ", -1)])]),
|
|
4382
4103
|
_: 1
|
|
4383
4104
|
}, 8, ["size", "type"])]),
|
|
4384
4105
|
_: 1
|
|
4385
4106
|
}),
|
|
4386
|
-
|
|
4387
|
-
content:
|
|
4388
|
-
|
|
4389
|
-
size:
|
|
4107
|
+
g(v, { effect: "light" }, {
|
|
4108
|
+
content: D(() => [
|
|
4109
|
+
g(_, {
|
|
4110
|
+
size: o.headerButtonSize,
|
|
4390
4111
|
text: "",
|
|
4391
|
-
onClick:
|
|
4112
|
+
onClick: u.previewProcessXML
|
|
4392
4113
|
}, {
|
|
4393
|
-
default:
|
|
4114
|
+
default: D(() => [...a[24] || (a[24] = [h("预览XML", -1)])]),
|
|
4394
4115
|
_: 1
|
|
4395
4116
|
}, 8, ["size", "onClick"]),
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
size:
|
|
4117
|
+
a[26] || (a[26] = m("br", null, null, -1)),
|
|
4118
|
+
g(_, {
|
|
4119
|
+
size: o.headerButtonSize,
|
|
4399
4120
|
text: "",
|
|
4400
|
-
onClick:
|
|
4121
|
+
onClick: u.previewProcessJson
|
|
4401
4122
|
}, {
|
|
4402
|
-
default:
|
|
4123
|
+
default: D(() => [...a[25] || (a[25] = [h("预览JSON", -1)])]),
|
|
4403
4124
|
_: 1
|
|
4404
4125
|
}, 8, ["size", "onClick"])
|
|
4405
4126
|
]),
|
|
4406
|
-
default:
|
|
4407
|
-
size:
|
|
4408
|
-
type:
|
|
4127
|
+
default: D(() => [g(_, {
|
|
4128
|
+
size: o.headerButtonSize,
|
|
4129
|
+
type: o.headerButtonType,
|
|
4409
4130
|
icon: "el-icon-view"
|
|
4410
4131
|
}, {
|
|
4411
|
-
default:
|
|
4132
|
+
default: D(() => [...a[27] || (a[27] = [h("预览", -1)])]),
|
|
4412
4133
|
_: 1
|
|
4413
4134
|
}, 8, ["size", "type"])]),
|
|
4414
4135
|
_: 1
|
|
4415
4136
|
}),
|
|
4416
|
-
|
|
4137
|
+
o.simulation ? (x(), d(v, {
|
|
4417
4138
|
key: 1,
|
|
4418
4139
|
effect: "light",
|
|
4419
|
-
content:
|
|
4140
|
+
content: c.simulationStatus ? "退出模拟" : "开启模拟"
|
|
4420
4141
|
}, {
|
|
4421
|
-
default:
|
|
4422
|
-
size:
|
|
4423
|
-
type:
|
|
4142
|
+
default: D(() => [g(_, {
|
|
4143
|
+
size: o.headerButtonSize,
|
|
4144
|
+
type: o.headerButtonType,
|
|
4424
4145
|
icon: "el-icon-cpu",
|
|
4425
|
-
onClick:
|
|
4146
|
+
onClick: u.processSimulation
|
|
4426
4147
|
}, {
|
|
4427
|
-
default:
|
|
4148
|
+
default: D(() => [...a[28] || (a[28] = [h(" 模拟 ", -1)])]),
|
|
4428
4149
|
_: 1
|
|
4429
4150
|
}, 8, [
|
|
4430
4151
|
"size",
|
|
@@ -4432,165 +4153,165 @@ function Ze(e, r, i, a, o, s) {
|
|
|
4432
4153
|
"onClick"
|
|
4433
4154
|
])]),
|
|
4434
4155
|
_: 1
|
|
4435
|
-
}, 8, ["content"])) :
|
|
4156
|
+
}, 8, ["content"])) : f("v-if", !0)
|
|
4436
4157
|
]),
|
|
4437
4158
|
_: 3
|
|
4438
4159
|
}),
|
|
4439
|
-
|
|
4440
|
-
default:
|
|
4441
|
-
|
|
4160
|
+
g(y, { key: "align-control" }, {
|
|
4161
|
+
default: D(() => [
|
|
4162
|
+
g(v, {
|
|
4442
4163
|
effect: "light",
|
|
4443
4164
|
content: "向左对齐"
|
|
4444
4165
|
}, {
|
|
4445
|
-
default:
|
|
4446
|
-
size:
|
|
4166
|
+
default: D(() => [g(_, {
|
|
4167
|
+
size: o.headerButtonSize,
|
|
4447
4168
|
class: "align align-left",
|
|
4448
4169
|
icon: "el-icon-s-data",
|
|
4449
|
-
onClick:
|
|
4170
|
+
onClick: a[4] || (a[4] = (e) => u.elementsAlign("left"))
|
|
4450
4171
|
}, null, 8, ["size"])]),
|
|
4451
4172
|
_: 1
|
|
4452
4173
|
}),
|
|
4453
|
-
|
|
4174
|
+
g(v, {
|
|
4454
4175
|
effect: "light",
|
|
4455
4176
|
content: "向右对齐"
|
|
4456
4177
|
}, {
|
|
4457
|
-
default:
|
|
4458
|
-
size:
|
|
4178
|
+
default: D(() => [g(_, {
|
|
4179
|
+
size: o.headerButtonSize,
|
|
4459
4180
|
class: "align align-right",
|
|
4460
4181
|
icon: "el-icon-s-data",
|
|
4461
|
-
onClick:
|
|
4182
|
+
onClick: a[5] || (a[5] = (e) => u.elementsAlign("right"))
|
|
4462
4183
|
}, null, 8, ["size"])]),
|
|
4463
4184
|
_: 1
|
|
4464
4185
|
}),
|
|
4465
|
-
|
|
4186
|
+
g(v, {
|
|
4466
4187
|
effect: "light",
|
|
4467
4188
|
content: "向上对齐"
|
|
4468
4189
|
}, {
|
|
4469
|
-
default:
|
|
4470
|
-
size:
|
|
4190
|
+
default: D(() => [g(_, {
|
|
4191
|
+
size: o.headerButtonSize,
|
|
4471
4192
|
class: "align align-top",
|
|
4472
4193
|
icon: "el-icon-s-data",
|
|
4473
|
-
onClick:
|
|
4194
|
+
onClick: a[6] || (a[6] = (e) => u.elementsAlign("top"))
|
|
4474
4195
|
}, null, 8, ["size"])]),
|
|
4475
4196
|
_: 1
|
|
4476
4197
|
}),
|
|
4477
|
-
|
|
4198
|
+
g(v, {
|
|
4478
4199
|
effect: "light",
|
|
4479
4200
|
content: "向下对齐"
|
|
4480
4201
|
}, {
|
|
4481
|
-
default:
|
|
4482
|
-
size:
|
|
4202
|
+
default: D(() => [g(_, {
|
|
4203
|
+
size: o.headerButtonSize,
|
|
4483
4204
|
class: "align align-bottom",
|
|
4484
4205
|
icon: "el-icon-s-data",
|
|
4485
|
-
onClick:
|
|
4206
|
+
onClick: a[7] || (a[7] = (e) => u.elementsAlign("bottom"))
|
|
4486
4207
|
}, null, 8, ["size"])]),
|
|
4487
4208
|
_: 1
|
|
4488
4209
|
}),
|
|
4489
|
-
|
|
4210
|
+
g(v, {
|
|
4490
4211
|
effect: "light",
|
|
4491
4212
|
content: "水平居中"
|
|
4492
4213
|
}, {
|
|
4493
|
-
default:
|
|
4494
|
-
size:
|
|
4214
|
+
default: D(() => [g(_, {
|
|
4215
|
+
size: o.headerButtonSize,
|
|
4495
4216
|
class: "align align-center",
|
|
4496
4217
|
icon: "el-icon-s-data",
|
|
4497
|
-
onClick:
|
|
4218
|
+
onClick: a[8] || (a[8] = (e) => u.elementsAlign("center"))
|
|
4498
4219
|
}, null, 8, ["size"])]),
|
|
4499
4220
|
_: 1
|
|
4500
4221
|
}),
|
|
4501
|
-
|
|
4222
|
+
g(v, {
|
|
4502
4223
|
effect: "light",
|
|
4503
4224
|
content: "垂直居中"
|
|
4504
4225
|
}, {
|
|
4505
|
-
default:
|
|
4506
|
-
size:
|
|
4226
|
+
default: D(() => [g(_, {
|
|
4227
|
+
size: o.headerButtonSize,
|
|
4507
4228
|
class: "align align-middle",
|
|
4508
4229
|
icon: "el-icon-s-data",
|
|
4509
|
-
onClick:
|
|
4230
|
+
onClick: a[9] || (a[9] = (e) => u.elementsAlign("middle"))
|
|
4510
4231
|
}, null, 8, ["size"])]),
|
|
4511
4232
|
_: 1
|
|
4512
4233
|
})
|
|
4513
4234
|
]),
|
|
4514
4235
|
_: 1
|
|
4515
4236
|
}),
|
|
4516
|
-
|
|
4517
|
-
default:
|
|
4518
|
-
|
|
4237
|
+
g(y, { key: "scale-control" }, {
|
|
4238
|
+
default: D(() => [
|
|
4239
|
+
g(v, {
|
|
4519
4240
|
effect: "light",
|
|
4520
4241
|
content: "缩小视图"
|
|
4521
4242
|
}, {
|
|
4522
|
-
default:
|
|
4523
|
-
size:
|
|
4524
|
-
disabled:
|
|
4243
|
+
default: D(() => [g(_, {
|
|
4244
|
+
size: o.headerButtonSize,
|
|
4245
|
+
disabled: c.defaultZoom < .2,
|
|
4525
4246
|
icon: "el-icon-zoom-out",
|
|
4526
|
-
onClick:
|
|
4247
|
+
onClick: a[10] || (a[10] = (e) => u.processZoomOut())
|
|
4527
4248
|
}, null, 8, ["size", "disabled"])]),
|
|
4528
4249
|
_: 1
|
|
4529
4250
|
}),
|
|
4530
|
-
|
|
4531
|
-
default:
|
|
4251
|
+
g(_, { size: o.headerButtonSize }, {
|
|
4252
|
+
default: D(() => [h(T(`${Math.floor(c.defaultZoom * 10 * 10)}%`), 1)]),
|
|
4532
4253
|
_: 1
|
|
4533
4254
|
}, 8, ["size"]),
|
|
4534
|
-
|
|
4255
|
+
g(v, {
|
|
4535
4256
|
effect: "light",
|
|
4536
4257
|
content: "放大视图"
|
|
4537
4258
|
}, {
|
|
4538
|
-
default:
|
|
4539
|
-
size:
|
|
4540
|
-
disabled:
|
|
4259
|
+
default: D(() => [g(_, {
|
|
4260
|
+
size: o.headerButtonSize,
|
|
4261
|
+
disabled: c.defaultZoom > 4,
|
|
4541
4262
|
icon: "el-icon-zoom-in",
|
|
4542
|
-
onClick:
|
|
4263
|
+
onClick: a[11] || (a[11] = (e) => u.processZoomIn())
|
|
4543
4264
|
}, null, 8, ["size", "disabled"])]),
|
|
4544
4265
|
_: 1
|
|
4545
4266
|
}),
|
|
4546
|
-
|
|
4267
|
+
g(v, {
|
|
4547
4268
|
effect: "light",
|
|
4548
4269
|
content: "重置视图并居中"
|
|
4549
4270
|
}, {
|
|
4550
|
-
default:
|
|
4551
|
-
size:
|
|
4271
|
+
default: D(() => [g(_, {
|
|
4272
|
+
size: o.headerButtonSize,
|
|
4552
4273
|
icon: "el-icon-c-scale-to-original",
|
|
4553
|
-
onClick:
|
|
4274
|
+
onClick: a[12] || (a[12] = (e) => u.processReZoom())
|
|
4554
4275
|
}, null, 8, ["size"])]),
|
|
4555
4276
|
_: 1
|
|
4556
4277
|
})
|
|
4557
4278
|
]),
|
|
4558
4279
|
_: 1
|
|
4559
4280
|
}),
|
|
4560
|
-
|
|
4561
|
-
default:
|
|
4562
|
-
|
|
4281
|
+
g(y, { key: "stack-control" }, {
|
|
4282
|
+
default: D(() => [
|
|
4283
|
+
g(v, {
|
|
4563
4284
|
effect: "light",
|
|
4564
4285
|
content: "撤销"
|
|
4565
4286
|
}, {
|
|
4566
|
-
default:
|
|
4567
|
-
size:
|
|
4568
|
-
disabled: !
|
|
4287
|
+
default: D(() => [g(_, {
|
|
4288
|
+
size: o.headerButtonSize,
|
|
4289
|
+
disabled: !c.revocable,
|
|
4569
4290
|
icon: "el-icon-refresh-left",
|
|
4570
|
-
onClick:
|
|
4291
|
+
onClick: a[13] || (a[13] = (e) => u.processUndo())
|
|
4571
4292
|
}, null, 8, ["size", "disabled"])]),
|
|
4572
4293
|
_: 1
|
|
4573
4294
|
}),
|
|
4574
|
-
|
|
4295
|
+
g(v, {
|
|
4575
4296
|
effect: "light",
|
|
4576
4297
|
content: "恢复"
|
|
4577
4298
|
}, {
|
|
4578
|
-
default:
|
|
4579
|
-
size:
|
|
4580
|
-
disabled: !
|
|
4299
|
+
default: D(() => [g(_, {
|
|
4300
|
+
size: o.headerButtonSize,
|
|
4301
|
+
disabled: !c.recoverable,
|
|
4581
4302
|
icon: "el-icon-refresh-right",
|
|
4582
|
-
onClick:
|
|
4303
|
+
onClick: a[14] || (a[14] = (e) => u.processRedo())
|
|
4583
4304
|
}, null, 8, ["size", "disabled"])]),
|
|
4584
4305
|
_: 1
|
|
4585
4306
|
}),
|
|
4586
|
-
|
|
4307
|
+
g(v, {
|
|
4587
4308
|
effect: "light",
|
|
4588
4309
|
content: "重新绘制"
|
|
4589
4310
|
}, {
|
|
4590
|
-
default:
|
|
4591
|
-
size:
|
|
4311
|
+
default: D(() => [g(_, {
|
|
4312
|
+
size: o.headerButtonSize,
|
|
4592
4313
|
icon: "el-icon-refresh",
|
|
4593
|
-
onClick:
|
|
4314
|
+
onClick: u.processRestart
|
|
4594
4315
|
}, null, 8, ["size", "onClick"])]),
|
|
4595
4316
|
_: 1
|
|
4596
4317
|
})
|
|
@@ -4598,20 +4319,20 @@ function Ze(e, r, i, a, o, s) {
|
|
|
4598
4319
|
_: 1
|
|
4599
4320
|
})
|
|
4600
4321
|
]),
|
|
4601
|
-
|
|
4602
|
-
|
|
4322
|
+
f(" 用于打开本地文件"),
|
|
4323
|
+
m("input", {
|
|
4603
4324
|
id: "files",
|
|
4604
4325
|
ref: "refFile",
|
|
4605
4326
|
type: "file",
|
|
4606
4327
|
style: { display: "none" },
|
|
4607
4328
|
accept: ".xml, .bpmn",
|
|
4608
|
-
onChange:
|
|
4329
|
+
onChange: a[15] || (a[15] = (...e) => u.importLocalFile && u.importLocalFile(...e))
|
|
4609
4330
|
}, null, 544)
|
|
4610
4331
|
]),
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
modelValue:
|
|
4614
|
-
"onUpdate:modelValue":
|
|
4332
|
+
m("div", Xe, [m("div", Ze, null, 512)]),
|
|
4333
|
+
g(S, {
|
|
4334
|
+
modelValue: c.previewModelVisible,
|
|
4335
|
+
"onUpdate:modelValue": a[16] || (a[16] = (e) => c.previewModelVisible = e),
|
|
4615
4336
|
title: "预览",
|
|
4616
4337
|
class: "flow-dialog",
|
|
4617
4338
|
width: "60vw",
|
|
@@ -4619,26 +4340,26 @@ function Ze(e, r, i, a, o, s) {
|
|
|
4619
4340
|
"body-padding": !1,
|
|
4620
4341
|
"destroy-on-close": ""
|
|
4621
4342
|
}, {
|
|
4622
|
-
default:
|
|
4623
|
-
language:
|
|
4624
|
-
code:
|
|
4343
|
+
default: D(() => [g(b, {
|
|
4344
|
+
language: c.previewType,
|
|
4345
|
+
code: c.previewResult
|
|
4625
4346
|
}, null, 8, ["language", "code"])]),
|
|
4626
4347
|
_: 1
|
|
4627
4348
|
}, 8, ["modelValue"])
|
|
4628
4349
|
]);
|
|
4629
4350
|
}
|
|
4630
|
-
var
|
|
4351
|
+
var $e = /* @__PURE__ */ e(qe, [["render", Qe]]);
|
|
4631
4352
|
//#endregion
|
|
4632
4353
|
//#region src/components/bpmn-process-designer/plugins/content-pad/contentPadProvider.js
|
|
4633
|
-
function
|
|
4354
|
+
function et(e, t, n, r, i, a, o, s, c, l, u, d, f) {
|
|
4634
4355
|
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) {
|
|
4635
4356
|
let t = e.context.shape;
|
|
4636
|
-
if (!
|
|
4357
|
+
if (!de(e) || !r.isOpen(t)) return;
|
|
4637
4358
|
let n = r.getEntries(t);
|
|
4638
4359
|
n.replace && n.replace.action.click(e, t);
|
|
4639
4360
|
});
|
|
4640
4361
|
}
|
|
4641
|
-
|
|
4362
|
+
et.$inject = [
|
|
4642
4363
|
"config.contextPad",
|
|
4643
4364
|
"injector",
|
|
4644
4365
|
"eventBus",
|
|
@@ -4652,7 +4373,7 @@ Q.$inject = [
|
|
|
4652
4373
|
"rules",
|
|
4653
4374
|
"translate",
|
|
4654
4375
|
"elementRegistry"
|
|
4655
|
-
],
|
|
4376
|
+
], et.prototype.getContextPadEntries = function(e) {
|
|
4656
4377
|
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 = {};
|
|
4657
4378
|
if (e.type === "label") return d;
|
|
4658
4379
|
let f = e.businessObject;
|
|
@@ -4662,14 +4383,14 @@ Q.$inject = [
|
|
|
4662
4383
|
function m() {
|
|
4663
4384
|
n.removeElements([e]);
|
|
4664
4385
|
}
|
|
4665
|
-
function
|
|
4386
|
+
function h(e) {
|
|
4666
4387
|
let n = s.getContainer(), r = t.getPad(e).html, i = n.getBoundingClientRect(), a = r.getBoundingClientRect(), o = a.top - i.top;
|
|
4667
4388
|
return {
|
|
4668
4389
|
x: a.left - i.left,
|
|
4669
4390
|
y: o + a.height + 5
|
|
4670
4391
|
};
|
|
4671
4392
|
}
|
|
4672
|
-
function
|
|
4393
|
+
function g(e, t, n, i) {
|
|
4673
4394
|
typeof n != "string" && (i = n, n = u("Append {type}", { type: e.replace(/^bpmn:/, "") }));
|
|
4674
4395
|
function o(t, n) {
|
|
4675
4396
|
let o = r.createShape(P({ type: e }, i));
|
|
@@ -4688,13 +4409,13 @@ Q.$inject = [
|
|
|
4688
4409
|
}
|
|
4689
4410
|
};
|
|
4690
4411
|
}
|
|
4691
|
-
function
|
|
4412
|
+
function _(e) {
|
|
4692
4413
|
return function(r, i) {
|
|
4693
4414
|
n.splitLane(i, e), t.open(i, !0);
|
|
4694
4415
|
};
|
|
4695
4416
|
}
|
|
4696
|
-
if (z(f, ["bpmn:Lane", "bpmn:Participant"]) &&
|
|
4697
|
-
let t =
|
|
4417
|
+
if (z(f, ["bpmn:Lane", "bpmn:Participant"]) && le(f)) {
|
|
4418
|
+
let t = ue(e);
|
|
4698
4419
|
P(d, { "lane-insert-above": {
|
|
4699
4420
|
group: "lane-insert-above",
|
|
4700
4421
|
className: "bpmn-icon-lane-insert-above",
|
|
@@ -4706,12 +4427,12 @@ Q.$inject = [
|
|
|
4706
4427
|
group: "lane-divide",
|
|
4707
4428
|
className: "bpmn-icon-lane-divide-two",
|
|
4708
4429
|
title: u("Divide into two Lanes"),
|
|
4709
|
-
action: { click:
|
|
4430
|
+
action: { click: _(2) }
|
|
4710
4431
|
} }), e.height >= 180 && P(d, { "lane-divide-three": {
|
|
4711
4432
|
group: "lane-divide",
|
|
4712
4433
|
className: "bpmn-icon-lane-divide-three",
|
|
4713
4434
|
title: u("Divide into three Lanes"),
|
|
4714
|
-
action: { click:
|
|
4435
|
+
action: { click: _(3) }
|
|
4715
4436
|
} })), P(d, { "lane-insert-below": {
|
|
4716
4437
|
group: "lane-insert-below",
|
|
4717
4438
|
className: "bpmn-icon-lane-insert-below",
|
|
@@ -4722,22 +4443,22 @@ Q.$inject = [
|
|
|
4722
4443
|
} });
|
|
4723
4444
|
}
|
|
4724
4445
|
R(f, "bpmn:FlowNode") && (R(f, "bpmn:EventBasedGateway") ? P(d, {
|
|
4725
|
-
"append.receive-task":
|
|
4726
|
-
"append.message-intermediate-event":
|
|
4727
|
-
"append.timer-intermediate-event":
|
|
4728
|
-
"append.condition-intermediate-event":
|
|
4729
|
-
"append.signal-intermediate-event":
|
|
4730
|
-
}) :
|
|
4731
|
-
"append.end-event":
|
|
4732
|
-
"append.gateway":
|
|
4733
|
-
"append.append-task":
|
|
4734
|
-
"append.intermediate-event":
|
|
4446
|
+
"append.receive-task": g("bpmn:ReceiveTask", "bpmn-icon-receive-task", u("Append ReceiveTask")),
|
|
4447
|
+
"append.message-intermediate-event": g("bpmn:IntermediateCatchEvent", "bpmn-icon-intermediate-event-catch-message", u("Append MessageIntermediateCatchEvent"), { eventDefinitionType: "bpmn:MessageEventDefinition" }),
|
|
4448
|
+
"append.timer-intermediate-event": g("bpmn:IntermediateCatchEvent", "bpmn-icon-intermediate-event-catch-timer", u("Append TimerIntermediateCatchEvent"), { eventDefinitionType: "bpmn:TimerEventDefinition" }),
|
|
4449
|
+
"append.condition-intermediate-event": g("bpmn:IntermediateCatchEvent", "bpmn-icon-intermediate-event-catch-condition", u("Append ConditionIntermediateCatchEvent"), { eventDefinitionType: "bpmn:ConditionalEventDefinition" }),
|
|
4450
|
+
"append.signal-intermediate-event": g("bpmn:IntermediateCatchEvent", "bpmn-icon-intermediate-event-catch-signal", u("Append SignalIntermediateCatchEvent"), { eventDefinitionType: "bpmn:SignalEventDefinition" })
|
|
4451
|
+
}) : tt(f, "bpmn:BoundaryEvent", "bpmn:CompensateEventDefinition") ? P(d, { "append.compensation-activity": g("bpmn:Task", "bpmn-icon-task", u("Append compensation activity"), { isForCompensation: !0 }) }) : !R(f, "bpmn:EndEvent") && !f.isForCompensation && !tt(f, "bpmn:IntermediateThrowEvent", "bpmn:LinkEventDefinition") && !ce(f) && P(d, {
|
|
4452
|
+
"append.end-event": g("bpmn:EndEvent", "bpmn-icon-end-event-none", u("Append EndEvent")),
|
|
4453
|
+
"append.gateway": g("bpmn:ExclusiveGateway", "bpmn-icon-gateway-none", u("Append Gateway")),
|
|
4454
|
+
"append.append-task": g("bpmn:UserTask", "bpmn-icon-user-task", u("Append Task")),
|
|
4455
|
+
"append.intermediate-event": g("bpmn:IntermediateThrowEvent", "bpmn-icon-intermediate-event-none", u("Append Intermediate/Boundary Event"))
|
|
4735
4456
|
})), o.isEmpty(e, "bpmn-replace") || P(d, { replace: {
|
|
4736
4457
|
group: "edit",
|
|
4737
4458
|
className: "bpmn-icon-screw-wrench",
|
|
4738
4459
|
title: u("Change type"),
|
|
4739
4460
|
action: { click: function(e, t) {
|
|
4740
|
-
let n = P(
|
|
4461
|
+
let n = P(h(t), { cursor: {
|
|
4741
4462
|
x: e.x,
|
|
4742
4463
|
y: e.y
|
|
4743
4464
|
} });
|
|
@@ -4749,7 +4470,7 @@ Q.$inject = [
|
|
|
4749
4470
|
"bpmn:DataObjectReference",
|
|
4750
4471
|
"bpmn:DataStoreReference"
|
|
4751
4472
|
]) && P(d, {
|
|
4752
|
-
"append.text-annotation":
|
|
4473
|
+
"append.text-annotation": g("bpmn:TextAnnotation", "bpmn-icon-text-annotation"),
|
|
4753
4474
|
connect: {
|
|
4754
4475
|
group: "connect",
|
|
4755
4476
|
className: "bpmn-icon-connection-multi",
|
|
@@ -4767,16 +4488,16 @@ Q.$inject = [
|
|
|
4767
4488
|
click: p,
|
|
4768
4489
|
dragstart: p
|
|
4769
4490
|
}
|
|
4770
|
-
} }), R(f, "bpmn:Group") && P(d, { "append.text-annotation":
|
|
4771
|
-
let
|
|
4772
|
-
return
|
|
4491
|
+
} }), R(f, "bpmn:Group") && P(d, { "append.text-annotation": g("bpmn:TextAnnotation", "bpmn-icon-text-annotation") });
|
|
4492
|
+
let v = c.allowed("elements.delete", { elements: [e] });
|
|
4493
|
+
return I(v) && (v = v[0] === e), v && P(d, { delete: {
|
|
4773
4494
|
group: "edit",
|
|
4774
4495
|
className: "bpmn-icon-trash",
|
|
4775
4496
|
title: u("Remove"),
|
|
4776
4497
|
action: { click: m }
|
|
4777
4498
|
} }), d;
|
|
4778
4499
|
};
|
|
4779
|
-
function
|
|
4500
|
+
function tt(e, t, n) {
|
|
4780
4501
|
let r = e.$instanceOf(t), i = !1;
|
|
4781
4502
|
return F(e.eventDefinitions || [], function(e) {
|
|
4782
4503
|
e.$type === n && (i = !0);
|
|
@@ -4784,17 +4505,17 @@ function $e(e, t, n) {
|
|
|
4784
4505
|
}
|
|
4785
4506
|
//#endregion
|
|
4786
4507
|
//#region src/components/bpmn-process-designer/plugins/content-pad/index.js
|
|
4787
|
-
var
|
|
4508
|
+
var nt = {
|
|
4788
4509
|
__init__: ["contextPadProvider"],
|
|
4789
|
-
contextPadProvider: ["type",
|
|
4510
|
+
contextPadProvider: ["type", et]
|
|
4790
4511
|
};
|
|
4791
4512
|
//#endregion
|
|
4792
4513
|
//#region src/components/bpmn-process-designer/plugins/palette/CustomPalette.js
|
|
4793
4514
|
function $(e, t, n, r, i, a, o, s, c) {
|
|
4794
|
-
|
|
4515
|
+
fe.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;
|
|
4795
4516
|
}
|
|
4796
|
-
var
|
|
4797
|
-
|
|
4517
|
+
var rt = function() {};
|
|
4518
|
+
rt.prototype = fe.prototype, rt.prototype.getPaletteEntries = function() {
|
|
4798
4519
|
let e = {}, t = this._create, n = this._elementFactory, r = this._spaceTool, i = this._lassoTool, a = this._handTool, o = this._globalConnect, s = this._translate;
|
|
4799
4520
|
function c(e, r, i, a, o) {
|
|
4800
4521
|
function c(r) {
|
|
@@ -4904,19 +4625,19 @@ tt.prototype = ge.prototype, tt.prototype.getPaletteEntries = function() {
|
|
|
4904
4625
|
"globalConnect",
|
|
4905
4626
|
"moddle",
|
|
4906
4627
|
"translate"
|
|
4907
|
-
], $.prototype = new
|
|
4628
|
+
], $.prototype = new rt(), $.prototype.constructor = $;
|
|
4908
4629
|
//#endregion
|
|
4909
4630
|
//#region src/components/bpmn-process-designer/plugins/palette/index.js
|
|
4910
|
-
var
|
|
4631
|
+
var it = {
|
|
4911
4632
|
__init__: ["customPalette"],
|
|
4912
4633
|
customPalette: ["type", $]
|
|
4913
4634
|
};
|
|
4914
4635
|
//#endregion
|
|
4915
4636
|
//#region src/components/bpmn-process-designer/modules/auto-place/CustomAutoPlace.js
|
|
4916
|
-
function
|
|
4637
|
+
function at(e, t) {
|
|
4917
4638
|
B.call(this, e, t, 3e3), e.on("autoPlace", 3e3, function(e) {
|
|
4918
4639
|
let t = e.shape, n = e.source;
|
|
4919
|
-
return
|
|
4640
|
+
return lt(n, t);
|
|
4920
4641
|
}), this.append = function(n, r, i) {
|
|
4921
4642
|
e.fire("autoPlace.start", {
|
|
4922
4643
|
source: n,
|
|
@@ -4934,7 +4655,7 @@ function rt(e, t) {
|
|
|
4934
4655
|
}), o;
|
|
4935
4656
|
};
|
|
4936
4657
|
}
|
|
4937
|
-
function
|
|
4658
|
+
function ot(e) {
|
|
4938
4659
|
return {
|
|
4939
4660
|
top: e.y,
|
|
4940
4661
|
right: e.x + (e.width || 0),
|
|
@@ -4942,35 +4663,35 @@ function it(e) {
|
|
|
4942
4663
|
left: e.x
|
|
4943
4664
|
};
|
|
4944
4665
|
}
|
|
4945
|
-
function
|
|
4666
|
+
function st(e) {
|
|
4946
4667
|
return {
|
|
4947
4668
|
x: Math.round(e.x),
|
|
4948
4669
|
y: Math.round(e.y)
|
|
4949
4670
|
};
|
|
4950
4671
|
}
|
|
4951
|
-
function
|
|
4952
|
-
return
|
|
4672
|
+
function ct(e) {
|
|
4673
|
+
return st({
|
|
4953
4674
|
x: e.x + (e.width || 0) / 2,
|
|
4954
4675
|
y: e.y + (e.height || 0) / 2
|
|
4955
4676
|
});
|
|
4956
4677
|
}
|
|
4957
|
-
function
|
|
4678
|
+
function lt(e, t, n) {
|
|
4958
4679
|
n || (n = {});
|
|
4959
|
-
let r = n.defaultDistance || 50, i =
|
|
4680
|
+
let r = n.defaultDistance || 50, i = ct(e), a = ot(e);
|
|
4960
4681
|
return {
|
|
4961
4682
|
x: i.x,
|
|
4962
4683
|
y: a.bottom + r + t.height / 2
|
|
4963
4684
|
};
|
|
4964
4685
|
}
|
|
4965
|
-
var
|
|
4966
|
-
|
|
4686
|
+
var ut = function() {};
|
|
4687
|
+
ut.prototype = B.prototype, at.prototype = new ut(), at.prototype.constructor = B;
|
|
4967
4688
|
//#endregion
|
|
4968
4689
|
//#region src/components/bpmn-process-designer/modules/auto-place/rewriteAutoPlace.js
|
|
4969
|
-
var
|
|
4970
|
-
function
|
|
4971
|
-
e.on("autoPlace",
|
|
4690
|
+
var dt = 200, ft = 100;
|
|
4691
|
+
function pt(e, t, n) {
|
|
4692
|
+
e.on("autoPlace", ft, function(e) {
|
|
4972
4693
|
let t = e.shape, n = e.source;
|
|
4973
|
-
return
|
|
4694
|
+
return mt(n, t);
|
|
4974
4695
|
}), e.on("autoPlace.end", function(e) {
|
|
4975
4696
|
n.scrollToElement(e.shape);
|
|
4976
4697
|
}), this.append = function(n, r, i) {
|
|
@@ -4988,28 +4709,28 @@ function dt(e, t, n) {
|
|
|
4988
4709
|
}), o;
|
|
4989
4710
|
};
|
|
4990
4711
|
}
|
|
4991
|
-
|
|
4712
|
+
pt.$inject = [
|
|
4992
4713
|
"eventBus",
|
|
4993
4714
|
"modeling",
|
|
4994
4715
|
"canvas"
|
|
4995
4716
|
];
|
|
4996
|
-
function
|
|
4997
|
-
let n =
|
|
4717
|
+
function mt(e, t) {
|
|
4718
|
+
let n = dt, r = me(e);
|
|
4998
4719
|
return {
|
|
4999
|
-
x:
|
|
4720
|
+
x: pe(e).right + n + t.width / 2,
|
|
5000
4721
|
y: r.y
|
|
5001
4722
|
};
|
|
5002
4723
|
}
|
|
5003
4724
|
//#endregion
|
|
5004
4725
|
//#region src/components/bpmn-process-designer/modules/auto-place/index.js
|
|
5005
|
-
var
|
|
4726
|
+
var ht = {
|
|
5006
4727
|
__init__: ["autoPlaceSelectionBehavior"],
|
|
5007
|
-
autoPlace: ["type",
|
|
5008
|
-
},
|
|
4728
|
+
autoPlace: ["type", pt]
|
|
4729
|
+
}, gt = {
|
|
5009
4730
|
name: "FlowDesigner",
|
|
5010
4731
|
components: {
|
|
5011
|
-
PropertiesPanel:
|
|
5012
|
-
ProcessDesigner:
|
|
4732
|
+
PropertiesPanel: Ee,
|
|
4733
|
+
ProcessDesigner: $e
|
|
5013
4734
|
},
|
|
5014
4735
|
props: {
|
|
5015
4736
|
modelValue: String,
|
|
@@ -5035,10 +4756,10 @@ var pt = {
|
|
|
5035
4756
|
labelVisible: !1,
|
|
5036
4757
|
prefix: "flowable",
|
|
5037
4758
|
headerButtonSize: "small",
|
|
5038
|
-
additionalModel:
|
|
5039
|
-
et,
|
|
4759
|
+
additionalModel: y([
|
|
5040
4760
|
nt,
|
|
5041
|
-
|
|
4761
|
+
it,
|
|
4762
|
+
ht
|
|
5042
4763
|
])
|
|
5043
4764
|
}
|
|
5044
4765
|
};
|
|
@@ -5051,10 +4772,10 @@ var pt = {
|
|
|
5051
4772
|
await this.$nextTick(), await this.$refs.processDesigner.createNewDiagram(this.modelValue);
|
|
5052
4773
|
}
|
|
5053
4774
|
}
|
|
5054
|
-
},
|
|
5055
|
-
function
|
|
5056
|
-
let o =
|
|
5057
|
-
return
|
|
4775
|
+
}, _t = { class: "flow-designer" };
|
|
4776
|
+
function vt(e, t, n, r, i, a) {
|
|
4777
|
+
let o = $e, s = Ee;
|
|
4778
|
+
return x(), p("div", _t, [(x(), d(o, b({ key: `designer-${i.reloadIndex}` }, i.controlForm, {
|
|
5058
4779
|
ref: "processDesigner",
|
|
5059
4780
|
"model-value": n.modelValue,
|
|
5060
4781
|
"extend-types": n.extendTypes,
|
|
@@ -5066,13 +4787,13 @@ function gt(e, t, n, r, i, a) {
|
|
|
5066
4787
|
onInput: t[0] || (t[0] = (t) => e.$emit("update:modelValue", t)),
|
|
5067
4788
|
onInitFinished: a.initModeler
|
|
5068
4789
|
}), {
|
|
5069
|
-
"toolbar-buttons":
|
|
4790
|
+
"toolbar-buttons": D(() => [w(e.$slots, "toolbar-buttons", { modeler: i.modeler })]),
|
|
5070
4791
|
_: 3
|
|
5071
4792
|
}, 16, [
|
|
5072
4793
|
"model-value",
|
|
5073
4794
|
"extend-types",
|
|
5074
4795
|
"onInitFinished"
|
|
5075
|
-
])), n.usePanel && (n.useTabs === null || n.useTabs === void 0 || n.useTabs.length > 0) ? (
|
|
4796
|
+
])), n.usePanel && (n.useTabs === null || n.useTabs === void 0 || n.useTabs.length > 0) ? (x(), d(s, {
|
|
5076
4797
|
key: `penal-${i.reloadIndex}`,
|
|
5077
4798
|
"panel-type": n.panelType,
|
|
5078
4799
|
"use-tabs": n.useTabs,
|
|
@@ -5081,19 +4802,19 @@ function gt(e, t, n, r, i, a) {
|
|
|
5081
4802
|
prefix: i.controlForm.prefix,
|
|
5082
4803
|
class: "process-panel"
|
|
5083
4804
|
}, {
|
|
5084
|
-
task:
|
|
4805
|
+
task: D(({ id: t, bpmnInstances: n, element: r, type: i }) => [w(e.$slots, "task", {
|
|
5085
4806
|
id: t,
|
|
5086
4807
|
bpmnInstances: n,
|
|
5087
4808
|
element: r,
|
|
5088
4809
|
type: i
|
|
5089
4810
|
})]),
|
|
5090
|
-
form:
|
|
4811
|
+
form: D(({ id: t, bpmnInstances: n, element: r, type: i }) => [w(e.$slots, "form", {
|
|
5091
4812
|
id: t,
|
|
5092
4813
|
bpmnInstances: n,
|
|
5093
4814
|
element: r,
|
|
5094
4815
|
type: i
|
|
5095
4816
|
})]),
|
|
5096
|
-
extend:
|
|
4817
|
+
extend: D(({ id: t, bpmnInstances: n, element: r, type: i }) => [w(e.$slots, "extend", {
|
|
5097
4818
|
id: t,
|
|
5098
4819
|
bpmnInstances: n,
|
|
5099
4820
|
element: r,
|
|
@@ -5106,8 +4827,8 @@ function gt(e, t, n, r, i, a) {
|
|
|
5106
4827
|
"bpmn-modeler",
|
|
5107
4828
|
"context",
|
|
5108
4829
|
"prefix"
|
|
5109
|
-
])) :
|
|
4830
|
+
])) : f("v-if", !0)]);
|
|
5110
4831
|
}
|
|
5111
|
-
var
|
|
4832
|
+
var yt = /* @__PURE__ */ e(gt, [["render", vt]]);
|
|
5112
4833
|
//#endregion
|
|
5113
|
-
export {
|
|
4834
|
+
export { yt as t };
|