@web-utils/component 3.4.6 → 3.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/chat/index.mjs +1 -1
- package/chunks/ElementBaseInfo.jv89Vjy1.mjs +118 -0
- package/chunks/ElementForm.4QQYs5uq.mjs +241 -0
- package/chunks/ElementListeners.vfHHHAOL.mjs +255 -0
- package/chunks/ElementMultiInstance.3Z28ewuh.mjs +191 -0
- package/chunks/ElementOtherConfig.B1NfMTYh.mjs +60 -0
- package/chunks/ElementProperties.CRIQaaPc.mjs +112 -0
- package/chunks/ElementTaskConfig.MBbkLrth.mjs +326 -0
- package/chunks/FlowCondition.BfU9kw6h.mjs +132 -0
- package/chunks/{FormTemp.CJOJOy8K.mjs → FormTemp.BSpnNput.mjs} +4 -4
- package/chunks/SignalAndMessage.CH6L7cYu.mjs +96 -0
- package/chunks/UserTaskListeners.XXe5dC5I.mjs +210 -0
- package/chunks/confirmable-mixin.D4LAArE5.mjs +114 -0
- package/chunks/{dataformat.ARPY2U57.mjs → dataformat.B9UvztrQ.mjs} +7 -7
- package/chunks/{dic.DBmh9yzU.mjs → dic.CET0XdKP.mjs} +3 -3
- package/chunks/{event.mRPNW7Cx.mjs → event.BT1F_1vF.mjs} +6 -6
- package/chunks/{form-input-mixin.DMuQta5I.mjs → form-input-mixin.BkKiqJhi.mjs} +2 -2
- package/chunks/{form-item-mixin.CdcqXa2h.mjs → form-item-mixin.CG4ZwzMC.mjs} +1 -1
- package/chunks/{index.DwCBGcYk.mjs → index.MAFc4eFi.mjs} +4 -4
- package/chunks/{init.CauLYxJq.mjs → init.ofpxEyAI.mjs} +8 -8
- package/chunks/{json-beautifier.j1-U5g4P.mjs → json-beautifier.Bp3GslGm.mjs} +2 -0
- package/chunks/{util.BaRFvfAi.mjs → util.CoahLDYn.mjs} +7 -7
- package/chunks/utilSelf.CRqpl0Cz.mjs +56 -0
- package/chunks/utils.DRcxC1Fb.mjs +60 -0
- package/code-mirror-editor/index.mjs +45 -45
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/data-table-picker/index.mjs +1 -1
- package/dialog-form/index.mjs +1 -1
- package/e-charts/index.mjs +3 -3
- package/editable-tree/index.mjs +13 -13
- package/element-listeners/style.css +1 -0
- package/element-multi-instance/style.css +1 -0
- package/ellipsis/index.mjs +148 -0
- package/ellipsis/style.css +1 -0
- package/flex-column/index.mjs +1 -1
- package/flex-item/index.mjs +1 -1
- package/flex-row/index.mjs +1 -1
- package/flow/index.mjs +1 -1
- package/flow-designer/index.mjs +519 -2134
- package/flow-designer/style.css +1 -1
- package/flow-node/index.mjs +1 -1
- package/form-cascader/index.mjs +5 -5
- package/form-checkbox-group/index.mjs +2 -2
- package/form-date-picker/index.mjs +2 -2
- package/form-holder/index.mjs +1 -1
- package/form-input/index.mjs +2 -2
- package/form-input-email/index.mjs +2 -2
- package/form-input-id-card/index.mjs +2 -2
- package/form-input-number/index.mjs +2 -2
- package/form-input-phone-number/index.mjs +2 -2
- package/form-input-tag/index.mjs +2 -2
- package/form-input-time/index.mjs +2 -2
- package/form-item/index.mjs +1 -1
- package/form-radio-group/index.mjs +2 -2
- package/form-select/index.mjs +2 -2
- package/form-switch/index.mjs +2 -2
- package/form-textarea/index.mjs +2 -2
- package/form-view/index.mjs +3 -3
- package/fy-array/index.mjs +2 -2
- package/fy-cascader/index.mjs +1 -1
- package/fy-checkbox/index.mjs +1 -1
- package/fy-code/index.mjs +1 -1
- package/fy-curd/index.mjs +9 -9
- package/fy-date/index.mjs +1 -1
- package/fy-draggable/index.mjs +1 -1
- package/fy-dynamic/index.mjs +2 -2
- package/fy-empty/index.mjs +1 -1
- package/fy-form/index.mjs +14 -14
- package/fy-form-design/index.mjs +2 -2
- package/fy-input/index.mjs +1 -1
- package/fy-input-color/index.mjs +1 -1
- package/fy-input-icon/index.mjs +1 -1
- package/fy-input-map/index.mjs +1 -1
- package/fy-input-number/index.mjs +1 -1
- package/fy-input-table/index.mjs +1 -1
- package/fy-input-tree/index.mjs +1 -1
- package/fy-input-tree/style.css +1 -1
- package/fy-radio/index.mjs +1 -1
- package/fy-rate/index.mjs +1 -1
- package/fy-select/index.mjs +3 -3
- package/fy-slider/index.mjs +2 -2
- package/fy-switch/index.mjs +1 -1
- package/fy-time/index.mjs +1 -1
- package/fy-title/index.mjs +1 -1
- package/fy-tree/index.mjs +1 -1
- package/fy-u-editor/index.mjs +1 -1
- package/fy-upload/index.mjs +2 -2
- package/image-cropper/index.mjs +1 -1
- package/image-preview/index.mjs +1 -1
- package/index.mjs +455 -451
- package/license/index.mjs +1 -1
- package/login/index.mjs +1 -1
- package/monaco-editor/index.mjs +1 -1
- package/package.json +16 -16
- package/page-index/index.mjs +1 -1
- package/page-index-top/index.mjs +1 -1
- package/pageable-table/index.mjs +3 -3
- package/pageable-view/index.mjs +3 -3
- package/present-view/index.mjs +3 -3
- package/record-video/index.mjs +1 -1
- package/resize-observer/index.mjs +1 -1
- package/search/index.mjs +2 -2
- package/search-popover/index.mjs +4 -4
- package/sign/index.mjs +1 -1
- package/table-view/index.mjs +6 -6
- package/text-ellipsis/index.mjs +1 -1
- package/verify/index.mjs +1 -1
- package/vue-tree-select/index.mjs +354 -347
- package/vue-tree-select/style.css +1 -1
- package/watermark/index.mjs +1 -1
- package/web-types.json +82 -4
- package/chunks/confirmable-mixin.D2KW-Qlc.mjs +0 -116
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
var m = Object.defineProperty, u = Object.defineProperties;
|
|
2
|
+
var f = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var c = Object.getOwnPropertySymbols;
|
|
4
|
+
var d = Object.prototype.hasOwnProperty, h = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var r = (o, t, e) => t in o ? m(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e, s = (o, t) => {
|
|
6
|
+
for (var e in t || (t = {}))
|
|
7
|
+
d.call(t, e) && r(o, e, t[e]);
|
|
8
|
+
if (c)
|
|
9
|
+
for (var e of c(t))
|
|
10
|
+
h.call(t, e) && r(o, e, t[e]);
|
|
11
|
+
return o;
|
|
12
|
+
}, p = (o, t) => u(o, f(t));
|
|
13
|
+
import { n as C } from "./_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
14
|
+
const I = {
|
|
15
|
+
name: "ElementMultiInstance",
|
|
16
|
+
inject: {
|
|
17
|
+
prefix: "prefix"
|
|
18
|
+
},
|
|
19
|
+
props: {
|
|
20
|
+
id: String,
|
|
21
|
+
element: Object,
|
|
22
|
+
bpmnInstances: Object
|
|
23
|
+
},
|
|
24
|
+
data() {
|
|
25
|
+
return {
|
|
26
|
+
loopCharacteristics: "",
|
|
27
|
+
// 默认配置,用来覆盖原始不存在的选项,避免报错
|
|
28
|
+
defaultLoopInstanceForm: {
|
|
29
|
+
completionCondition: "",
|
|
30
|
+
loopCardinality: "",
|
|
31
|
+
extensionElements: [],
|
|
32
|
+
asyncAfter: !1,
|
|
33
|
+
asyncBefore: !1,
|
|
34
|
+
exclusive: !1
|
|
35
|
+
},
|
|
36
|
+
loopInstanceForm: {}
|
|
37
|
+
};
|
|
38
|
+
},
|
|
39
|
+
watch: {
|
|
40
|
+
id: {
|
|
41
|
+
immediate: !0,
|
|
42
|
+
handler() {
|
|
43
|
+
const { businessObject: o } = this.element;
|
|
44
|
+
this.getElementLoop(o);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
beforeDestroy() {
|
|
49
|
+
this.multiLoopInstance = null;
|
|
50
|
+
},
|
|
51
|
+
methods: {
|
|
52
|
+
getElementLoop(o) {
|
|
53
|
+
var t, e, n, l, a, i;
|
|
54
|
+
if (!o.loopCharacteristics) {
|
|
55
|
+
this.loopCharacteristics = "Null", this.loopInstanceForm = {};
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
if (o.loopCharacteristics.$type === "bpmn:StandardLoopCharacteristics") {
|
|
59
|
+
this.loopCharacteristics = "StandardLoop", this.loopInstanceForm = {};
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
o.loopCharacteristics.isSequential ? this.loopCharacteristics = "SequentialMultiInstance" : this.loopCharacteristics = "ParallelMultiInstance", this.loopInstanceForm = p(s(s({}, this.defaultLoopInstanceForm), o.loopCharacteristics), {
|
|
63
|
+
completionCondition: (n = (e = (t = o.loopCharacteristics) == null ? void 0 : t.completionCondition) == null ? void 0 : e.body) != null ? n : "",
|
|
64
|
+
loopCardinality: (i = (a = (l = o.loopCharacteristics) == null ? void 0 : l.loopCardinality) == null ? void 0 : a.body) != null ? i : ""
|
|
65
|
+
}), this.multiLoopInstance = this.element.businessObject.loopCharacteristics, o.loopCharacteristics.extensionElements && o.loopCharacteristics.extensionElements.values && o.loopCharacteristics.extensionElements.values.length && this.$set(this.loopInstanceForm, "timeCycle", o.loopCharacteristics.extensionElements.values[0].body);
|
|
66
|
+
},
|
|
67
|
+
changeLoopCharacteristicsType(o) {
|
|
68
|
+
if (o === "Null") {
|
|
69
|
+
this.bpmnInstances.modeling.updateProperties(this.element, { loopCharacteristics: null });
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
if (o === "StandardLoop") {
|
|
73
|
+
const t = this.bpmnInstances.moddle.create("bpmn:StandardLoopCharacteristics");
|
|
74
|
+
this.bpmnInstances.modeling.updateProperties(this.element, {
|
|
75
|
+
loopCharacteristics: t
|
|
76
|
+
}), this.multiLoopInstance = null;
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
o === "SequentialMultiInstance" ? this.multiLoopInstance = this.bpmnInstances.moddle.create("bpmn:MultiInstanceLoopCharacteristics", {
|
|
80
|
+
isSequential: !0
|
|
81
|
+
}) : this.multiLoopInstance = this.bpmnInstances.moddle.create("bpmn:MultiInstanceLoopCharacteristics"), this.bpmnInstances.modeling.updateProperties(this.element, {
|
|
82
|
+
loopCharacteristics: this.multiLoopInstance
|
|
83
|
+
});
|
|
84
|
+
},
|
|
85
|
+
// 循环基数
|
|
86
|
+
updateLoopCardinality(o) {
|
|
87
|
+
let t = null;
|
|
88
|
+
o && o.length && (t = this.bpmnInstances.moddle.create("bpmn:FormalExpression", { body: o })), this.bpmnInstances.modeling.updateModdleProperties(this.element, this.multiLoopInstance, {
|
|
89
|
+
loopCardinality: t
|
|
90
|
+
});
|
|
91
|
+
},
|
|
92
|
+
// 完成条件
|
|
93
|
+
updateLoopCondition(o) {
|
|
94
|
+
let t = null;
|
|
95
|
+
o && o.length && (t = this.bpmnInstances.moddle.create("bpmn:FormalExpression", { body: o })), this.bpmnInstances.modeling.updateModdleProperties(this.element, this.multiLoopInstance, {
|
|
96
|
+
completionCondition: t
|
|
97
|
+
});
|
|
98
|
+
},
|
|
99
|
+
// 重试周期
|
|
100
|
+
updateLoopTimeCycle(o) {
|
|
101
|
+
const t = this.bpmnInstances.moddle.create("bpmn:ExtensionElements", {
|
|
102
|
+
values: [
|
|
103
|
+
this.bpmnInstances.moddle.create(`${this.prefix}:FailedJobRetryTimeCycle`, {
|
|
104
|
+
body: o
|
|
105
|
+
})
|
|
106
|
+
]
|
|
107
|
+
});
|
|
108
|
+
this.bpmnInstances.modeling.updateModdleProperties(this.element, this.multiLoopInstance, {
|
|
109
|
+
extensionElements: t
|
|
110
|
+
});
|
|
111
|
+
},
|
|
112
|
+
// 直接更新的基础信息
|
|
113
|
+
updateLoopBase() {
|
|
114
|
+
this.bpmnInstances.modeling.updateModdleProperties(this.element, this.multiLoopInstance, {
|
|
115
|
+
collection: this.loopInstanceForm.collection || null,
|
|
116
|
+
elementVariable: this.loopInstanceForm.elementVariable || null
|
|
117
|
+
});
|
|
118
|
+
},
|
|
119
|
+
// 各异步状态
|
|
120
|
+
updateLoopAsync(o) {
|
|
121
|
+
const { asyncBefore: t, asyncAfter: e } = this.loopInstanceForm;
|
|
122
|
+
let n = /* @__PURE__ */ Object.create(null);
|
|
123
|
+
!t && !e ? (this.$set(this.loopInstanceForm, "exclusive", !1), n = { asyncBefore: !1, asyncAfter: !1, exclusive: !1, extensionElements: null }) : n[o] = this.loopInstanceForm[o], this.bpmnInstances.modeling.updateModdleProperties(this.element, this.multiLoopInstance, n);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
var y = function() {
|
|
128
|
+
var t = this, e = t._self._c;
|
|
129
|
+
return e("div", { staticClass: "panel-tab__content element-multi-instance" }, [e("ElForm", { attrs: { size: "mini", "label-width": "100px" }, nativeOn: { submit: function(n) {
|
|
130
|
+
n.preventDefault();
|
|
131
|
+
} } }, [e("ElFormItem", { attrs: { label: "回路特性" }, scopedSlots: t._u([{ key: "label", fn: function() {
|
|
132
|
+
return [t._v(" 回路特性 "), e("ElTooltip", { attrs: { effect: "light" }, scopedSlots: t._u([{ key: "content", fn: function() {
|
|
133
|
+
return [e("ul", [e("li", { staticClass: "flow-tips-list-item" }, [e("span", { staticClass: "flow-tips-keyword" }, [t._v("并行")]), t._v(" 一次性创建所有任务实例")]), e("li", { staticClass: "flow-tips-list-item" }, [e("span", { staticClass: "flow-tips-keyword" }, [t._v("串行")]), t._v(" 完成一个任务实例再创建一个任务实例,直到环节完成")]), e("li", { staticClass: "flow-tips-list-item" }, [e("span", { staticClass: "flow-tips-keyword" }, [t._v("循环事件")]), t._v(" 未知")])])];
|
|
134
|
+
}, proxy: !0 }]) }, [e("i", { staticClass: "el-icon-info" })])];
|
|
135
|
+
}, proxy: !0 }]) }, [e("ElSelect", { on: { change: t.changeLoopCharacteristicsType }, model: { value: t.loopCharacteristics, callback: function(n) {
|
|
136
|
+
t.loopCharacteristics = n;
|
|
137
|
+
}, expression: "loopCharacteristics" } }, [e("ElOption", { attrs: { label: "并行", value: "ParallelMultiInstance" } }), e("ElOption", { attrs: { label: "串行", value: "SequentialMultiInstance" } }), e("ElOption", { attrs: { label: "循环事件", value: "StandardLoop" } }), e("ElOption", { attrs: { label: "无", value: "Null" } })], 1)], 1), t.loopCharacteristics === "ParallelMultiInstance" || t.loopCharacteristics === "SequentialMultiInstance" ? [e("ElFormItem", { key: "loopCardinality", attrs: { label: "循环基数" }, scopedSlots: t._u([{ key: "label", fn: function() {
|
|
138
|
+
return [t._v(" 循环基数 "), e("ElTooltip", { attrs: { effect: "light" }, scopedSlots: t._u([{ key: "content", fn: function() {
|
|
139
|
+
return [e("div", [t._v("与任务实例数相对,可不填")])];
|
|
140
|
+
}, proxy: !0 }], null, !1, 3306633709) }, [e("i", { staticClass: "el-icon-info" })])];
|
|
141
|
+
}, proxy: !0 }], null, !1, 3757615878) }, [e("ElInput", { attrs: { clearable: "" }, on: { change: t.updateLoopCardinality }, model: { value: t.loopInstanceForm.loopCardinality, callback: function(n) {
|
|
142
|
+
t.$set(t.loopInstanceForm, "loopCardinality", n);
|
|
143
|
+
}, expression: "loopInstanceForm.loopCardinality" } })], 1), e("ElFormItem", { key: "collection", attrs: { label: "集合名称", required: "" }, scopedSlots: t._u([{ key: "label", fn: function() {
|
|
144
|
+
return [t._v(" 集合变量 "), e("ElTooltip", { attrs: { effect: "light" }, scopedSlots: t._u([{ key: "content", fn: function() {
|
|
145
|
+
return [e("p", [t._v("流程变量名,设置为 "), e("span", { staticClass: "flow-tips-keyword" }, [t._v("${handlers}")]), t._v(" 就行")])];
|
|
146
|
+
}, proxy: !0 }], null, !1, 2769289721) }, [e("i", { staticClass: "el-icon-info" })])];
|
|
147
|
+
}, proxy: !0 }], null, !1, 3139340263) }, [e("ElInput", { attrs: { clearable: "" }, on: { change: t.updateLoopBase }, model: { value: t.loopInstanceForm.collection, callback: function(n) {
|
|
148
|
+
t.$set(t.loopInstanceForm, "collection", n);
|
|
149
|
+
}, expression: "loopInstanceForm.collection" } })], 1), e("ElFormItem", { key: "elementVariable", attrs: { label: "元素名称", required: "" }, scopedSlots: t._u([{ key: "label", fn: function() {
|
|
150
|
+
return [t._v(" 元素变量 "), e("ElTooltip", { attrs: { effect: "light" }, scopedSlots: t._u([{ key: "content", fn: function() {
|
|
151
|
+
return [e("p", [t._v(" 流程变量名,设置为 "), e("span", { staticClass: "flow-tips-keyword" }, [t._v("handler")]), t._v(' 就行,注意与"'), e("span", { staticClass: "flow-tips-keyword" }, [t._v("处理人")]), t._v('"中的"'), e("span", { staticClass: "flow-tips-keyword" }, [t._v("分配人员")]), t._v('"值保持一致 ')])];
|
|
152
|
+
}, proxy: !0 }], null, !1, 952223137) }, [e("i", { staticClass: "el-icon-info" })])];
|
|
153
|
+
}, proxy: !0 }], null, !1, 1907746023) }, [e("ElInput", { attrs: { clearable: "" }, on: { change: t.updateLoopBase }, model: { value: t.loopInstanceForm.elementVariable, callback: function(n) {
|
|
154
|
+
t.$set(t.loopInstanceForm, "elementVariable", n);
|
|
155
|
+
}, expression: "loopInstanceForm.elementVariable" } })], 1), e("ElFormItem", { key: "completionCondition", attrs: { label: "完成条件" }, scopedSlots: t._u([{ key: "label", fn: function() {
|
|
156
|
+
return [t._v(" 完成条件 "), e("ElTooltip", { attrs: { effect: "light" }, scopedSlots: t._u([{ key: "content", fn: function() {
|
|
157
|
+
return [e("p", { staticClass: "flow-tips-title" }, [t._v("特殊流程变量:")]), e("ul", [e("li", { staticClass: "flow-tips-list-item" }, [e("span", { staticClass: "flow-tips-keyword" }, [t._v("nrOfInstances")]), t._v(" 总实例数")]), e("li", { staticClass: "flow-tips-list-item" }, [e("span", { staticClass: "flow-tips-keyword" }, [t._v("nrOfCompletedInstances")]), t._v(" 已完成的实例数")]), e("li", { staticClass: "flow-tips-list-item" }, [e("span", { staticClass: "flow-tips-keyword" }, [t._v("nrOfActiveInstances")]), t._v(" 未完成实例数")])]), e("p", { staticClass: "flow-tips-title" }, [t._v("示例:")]), e("ul", [e("li", { staticClass: "flow-tips-list-item" }, [e("span", { staticClass: "flow-tips-keyword" }, [t._v("${nrOfCompletedInstances/nrOfInstances >= 1}")]), t._v(":所有实例完成结束该环节 ")]), e("li", { staticClass: "flow-tips-list-item" }, [e("span", { staticClass: "flow-tips-keyword" }, [t._v("${nrOfCompletedInstances/nrOfInstances >= 0.5}")]), t._v(":50%实例完成结束该环节 ")]), e("li", { staticClass: "flow-tips-list-item" }, [e("span", { staticClass: "flow-tips-keyword" }, [t._v("${nrOfCompletedInstances >= 1}")]), t._v(":有一个实例完成结束该环节")])]), e("p", { staticClass: "flow-tips-title" }, [t._v("不填要等所有实例完成才会结束该环节")])];
|
|
158
|
+
}, proxy: !0 }], null, !1, 2952075778) }, [e("i", { staticClass: "el-icon-info" })])];
|
|
159
|
+
}, proxy: !0 }], null, !1, 2319413861) }, [e("ElInput", { attrs: { clearable: "" }, on: { change: t.updateLoopCondition }, model: { value: t.loopInstanceForm.completionCondition, callback: function(n) {
|
|
160
|
+
t.$set(t.loopInstanceForm, "completionCondition", n);
|
|
161
|
+
}, expression: "loopInstanceForm.completionCondition" } })], 1), e("ElFormItem", { key: "async", attrs: { label: "异步状态" }, scopedSlots: t._u([{ key: "label", fn: function() {
|
|
162
|
+
return [t._v(" 异步状态 "), e("ElTooltip", { attrs: { effect: "light" }, scopedSlots: t._u([{ key: "content", fn: function() {
|
|
163
|
+
return [e("div", [t._v("目前没用到")])];
|
|
164
|
+
}, proxy: !0 }], null, !1, 1935913218) }, [e("i", { staticClass: "el-icon-info" })])];
|
|
165
|
+
}, proxy: !0 }], null, !1, 474663414) }, [e("ElCheckbox", { attrs: { label: "异步前" }, on: { change: function(n) {
|
|
166
|
+
return t.updateLoopAsync("asyncBefore");
|
|
167
|
+
} }, model: { value: t.loopInstanceForm.asyncBefore, callback: function(n) {
|
|
168
|
+
t.$set(t.loopInstanceForm, "asyncBefore", n);
|
|
169
|
+
}, expression: "loopInstanceForm.asyncBefore" } }), e("ElCheckbox", { attrs: { label: "异步后" }, on: { change: function(n) {
|
|
170
|
+
return t.updateLoopAsync("asyncAfter");
|
|
171
|
+
} }, model: { value: t.loopInstanceForm.asyncAfter, callback: function(n) {
|
|
172
|
+
t.$set(t.loopInstanceForm, "asyncAfter", n);
|
|
173
|
+
}, expression: "loopInstanceForm.asyncAfter" } }), t.loopInstanceForm.asyncAfter || t.loopInstanceForm.asyncBefore ? e("ElCheckbox", { attrs: { label: "排除" }, on: { change: function(n) {
|
|
174
|
+
return t.updateLoopAsync("exclusive");
|
|
175
|
+
} }, model: { value: t.loopInstanceForm.exclusive, callback: function(n) {
|
|
176
|
+
t.$set(t.loopInstanceForm, "exclusive", n);
|
|
177
|
+
}, expression: "loopInstanceForm.exclusive" } }) : t._e()], 1), t.loopInstanceForm.asyncAfter || t.loopInstanceForm.asyncBefore ? e("ElFormItem", { key: "timeCycle", attrs: { label: "重试周期", prop: "timeCycle" } }, [e("ElInput", { attrs: { clearable: "" }, on: { change: t.updateLoopTimeCycle }, model: { value: t.loopInstanceForm.timeCycle, callback: function(n) {
|
|
178
|
+
t.$set(t.loopInstanceForm, "timeCycle", n);
|
|
179
|
+
}, expression: "loopInstanceForm.timeCycle" } })], 1) : t._e()] : t._e()], 2)], 1);
|
|
180
|
+
}, v = [], _ = /* @__PURE__ */ C(
|
|
181
|
+
I,
|
|
182
|
+
y,
|
|
183
|
+
v,
|
|
184
|
+
!1,
|
|
185
|
+
null,
|
|
186
|
+
null
|
|
187
|
+
);
|
|
188
|
+
const x = _.exports;
|
|
189
|
+
export {
|
|
190
|
+
x as default
|
|
191
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { isBlank as i } from "@web-utils/core";
|
|
2
|
+
import { n as o } from "./_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
3
|
+
const a = {
|
|
4
|
+
name: "ElementOtherConfig",
|
|
5
|
+
props: {
|
|
6
|
+
id: String,
|
|
7
|
+
element: Object,
|
|
8
|
+
bpmnInstances: Object
|
|
9
|
+
},
|
|
10
|
+
data() {
|
|
11
|
+
return {
|
|
12
|
+
documentation: ""
|
|
13
|
+
};
|
|
14
|
+
},
|
|
15
|
+
watch: {
|
|
16
|
+
id: {
|
|
17
|
+
immediate: !0,
|
|
18
|
+
handler() {
|
|
19
|
+
if (i(this.element))
|
|
20
|
+
this.documentation = "";
|
|
21
|
+
else {
|
|
22
|
+
const {
|
|
23
|
+
businessObject: { documentation: e }
|
|
24
|
+
} = this.element;
|
|
25
|
+
this.documentation = (e == null ? void 0 : e[0].text) || "";
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
methods: {
|
|
31
|
+
updateDocumentation() {
|
|
32
|
+
const { modeling: e } = this.bpmnInstances, {
|
|
33
|
+
businessObject: { documentation: t }
|
|
34
|
+
} = this.element;
|
|
35
|
+
if (t != null && t.length)
|
|
36
|
+
t[0].set("text", this.documentation), e.updateProperties(this.element, { documentation: t });
|
|
37
|
+
else {
|
|
38
|
+
const { bpmnFactory: n } = this.bpmnInstances, s = n.create("bpmn:Documentation", { text: this.documentation });
|
|
39
|
+
e.updateProperties(this.element, { documentation: [s] });
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
var c = function() {
|
|
45
|
+
var t = this, n = t._self._c;
|
|
46
|
+
return n("div", { staticClass: "panel-tab__content" }, [n("div", { staticClass: "element-property input-property" }, [n("div", { staticClass: "element-property__label" }, [t._v("元素文档:")]), n("div", { staticClass: "element-property__value" }, [n("ElInput", { attrs: { type: "textarea", size: "mini", resize: "vertical", autosize: { minRows: 2, maxRows: 4 } }, on: { input: t.updateDocumentation }, model: { value: t.documentation, callback: function(s) {
|
|
47
|
+
t.documentation = s;
|
|
48
|
+
}, expression: "documentation" } })], 1)])]);
|
|
49
|
+
}, m = [], r = /* @__PURE__ */ o(
|
|
50
|
+
a,
|
|
51
|
+
c,
|
|
52
|
+
m,
|
|
53
|
+
!1,
|
|
54
|
+
null,
|
|
55
|
+
null
|
|
56
|
+
);
|
|
57
|
+
const u = r.exports;
|
|
58
|
+
export {
|
|
59
|
+
u as default
|
|
60
|
+
};
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { fastClone as o } from "@web-utils/core";
|
|
2
|
+
import { n as p } from "./_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
3
|
+
const a = {
|
|
4
|
+
name: "ElementProperties",
|
|
5
|
+
inject: {
|
|
6
|
+
prefix: "prefix",
|
|
7
|
+
width: "width"
|
|
8
|
+
},
|
|
9
|
+
props: {
|
|
10
|
+
id: String,
|
|
11
|
+
element: Object,
|
|
12
|
+
bpmnInstances: Object
|
|
13
|
+
},
|
|
14
|
+
data() {
|
|
15
|
+
return {
|
|
16
|
+
elementPropertyList: [],
|
|
17
|
+
propertyForm: {},
|
|
18
|
+
editingPropertyIndex: -1,
|
|
19
|
+
propertyFormModelVisible: !1
|
|
20
|
+
};
|
|
21
|
+
},
|
|
22
|
+
watch: {
|
|
23
|
+
id: {
|
|
24
|
+
immediate: !0,
|
|
25
|
+
handler(i) {
|
|
26
|
+
i && i.length && this.resetAttributesList();
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
methods: {
|
|
31
|
+
resetAttributesList() {
|
|
32
|
+
var i, t, e, r, n;
|
|
33
|
+
this.otherExtensionList = [], this.bpmnElementProperties = (r = (e = (t = (i = this.element.businessObject) == null ? void 0 : i.extensionElements) == null ? void 0 : t.values) == null ? void 0 : e.filter((s) => (s.$type !== `${this.prefix}:Properties` && this.otherExtensionList.push(s), s.$type === `${this.prefix}:Properties`))) != null ? r : [], this.bpmnElementPropertyList = this.bpmnElementProperties.reduce((s, l) => s.concat(l.values), []), this.elementPropertyList = o((n = this.bpmnElementPropertyList) != null ? n : []);
|
|
34
|
+
},
|
|
35
|
+
openAttributesForm(i, t) {
|
|
36
|
+
this.editingPropertyIndex = t, this.propertyForm = t === -1 ? {} : o(i), this.propertyFormModelVisible = !0, this.$nextTick(() => {
|
|
37
|
+
this.$refs.attributeFormRef && this.$refs.attributeFormRef.clearValidate();
|
|
38
|
+
});
|
|
39
|
+
},
|
|
40
|
+
removeAttributes(i, t) {
|
|
41
|
+
this.$confirm("确认移除该属性吗?", "提示", {
|
|
42
|
+
confirmButtonText: "确 认",
|
|
43
|
+
cancelButtonText: "取 消"
|
|
44
|
+
}).then(() => {
|
|
45
|
+
this.elementPropertyList.splice(t, 1), this.bpmnElementPropertyList.splice(t, 1);
|
|
46
|
+
const e = this.bpmnInstances.moddle.create(`${this.prefix}:Properties`, {
|
|
47
|
+
values: this.bpmnElementPropertyList
|
|
48
|
+
});
|
|
49
|
+
this.updateElementExtensions(e), this.resetAttributesList();
|
|
50
|
+
}).catch(() => {
|
|
51
|
+
});
|
|
52
|
+
},
|
|
53
|
+
saveAttribute() {
|
|
54
|
+
const { name: i, value: t } = this.propertyForm;
|
|
55
|
+
if (this.editingPropertyIndex !== -1)
|
|
56
|
+
this.bpmnInstances.modeling.updateModdleProperties(this.element, this.bpmnElementPropertyList[this.editingPropertyIndex], {
|
|
57
|
+
name: i,
|
|
58
|
+
value: t
|
|
59
|
+
});
|
|
60
|
+
else {
|
|
61
|
+
const e = this.bpmnInstances.moddle.create(`${this.prefix}:Property`, { name: i, value: t }), r = this.bpmnInstances.moddle.create(`${this.prefix}:Properties`, {
|
|
62
|
+
values: this.bpmnElementPropertyList.concat([e])
|
|
63
|
+
});
|
|
64
|
+
this.updateElementExtensions(r);
|
|
65
|
+
}
|
|
66
|
+
this.propertyFormModelVisible = !1, this.resetAttributesList();
|
|
67
|
+
},
|
|
68
|
+
updateElementExtensions(i) {
|
|
69
|
+
const t = this.bpmnInstances.moddle.create("bpmn:ExtensionElements", {
|
|
70
|
+
values: this.otherExtensionList.concat([i])
|
|
71
|
+
});
|
|
72
|
+
this.bpmnInstances.modeling.updateProperties(this.element, {
|
|
73
|
+
extensionElements: t
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
var m = function() {
|
|
79
|
+
var t = this, e = t._self._c;
|
|
80
|
+
return e("div", { staticClass: "panel-tab__content" }, [e("ElTable", { attrs: { data: t.elementPropertyList, size: "mini", "max-height": "240", border: "", fit: "" } }, [e("ElTableColumn", { attrs: { label: "序号", width: "50px", type: "index" } }), e("ElTableColumn", { attrs: { label: "属性名", prop: "name", "min-width": "100px", "show-overflow-tooltip": "" } }), e("ElTableColumn", { attrs: { label: "属性值", prop: "value", "min-width": "100px", "show-overflow-tooltip": "" } }), e("ElTableColumn", { attrs: { label: "操作", width: "90px" }, scopedSlots: t._u([{ key: "default", fn: function({ row: r, $index: n }) {
|
|
81
|
+
return [e("ElButton", { attrs: { size: "mini", type: "text" }, on: { click: function(s) {
|
|
82
|
+
return t.openAttributesForm(r, n);
|
|
83
|
+
} } }, [t._v("编辑")]), e("ElDivider", { attrs: { direction: "vertical" } }), e("ElButton", { staticStyle: { color: "#ff4d4f" }, attrs: { size: "mini", type: "text" }, on: { click: function(s) {
|
|
84
|
+
return t.removeAttributes(r, n);
|
|
85
|
+
} } }, [t._v("移除")])];
|
|
86
|
+
} }]) })], 1), e("div", { staticClass: "element-drawer__button" }, [e("ElButton", { attrs: { size: "mini", type: "primary", icon: "el-icon-plus" }, on: { click: function(r) {
|
|
87
|
+
return t.openAttributesForm(null, -1);
|
|
88
|
+
} } }, [t._v("添加属性")])], 1), e("ElementDialog", { staticClass: "flow-dialog", attrs: { visible: t.propertyFormModelVisible, title: "属性配置", width: "600px", "append-to-body": "", "destroy-on-close": "" }, on: { "update:visible": function(r) {
|
|
89
|
+
t.propertyFormModelVisible = r;
|
|
90
|
+
} }, scopedSlots: t._u([{ key: "footer", fn: function() {
|
|
91
|
+
return [e("ElButton", { attrs: { size: "mini" }, on: { click: function(r) {
|
|
92
|
+
t.propertyFormModelVisible = !1;
|
|
93
|
+
} } }, [t._v("取 消")]), e("ElButton", { attrs: { size: "mini", type: "primary" }, on: { click: t.saveAttribute } }, [t._v("确 定")])];
|
|
94
|
+
}, proxy: !0 }]) }, [e("ElForm", { ref: "attributeFormRef", attrs: { model: t.propertyForm, "label-width": "80px", size: "mini" }, nativeOn: { submit: function(r) {
|
|
95
|
+
r.preventDefault();
|
|
96
|
+
} } }, [e("ElFormItem", { attrs: { label: "属性名:", prop: "name" } }, [e("ElInput", { attrs: { clearable: "" }, model: { value: t.propertyForm.name, callback: function(r) {
|
|
97
|
+
t.$set(t.propertyForm, "name", r);
|
|
98
|
+
}, expression: "propertyForm.name" } })], 1), e("ElFormItem", { attrs: { label: "属性值:", prop: "value" } }, [e("ElInput", { attrs: { clearable: "" }, model: { value: t.propertyForm.value, callback: function(r) {
|
|
99
|
+
t.$set(t.propertyForm, "value", r);
|
|
100
|
+
}, expression: "propertyForm.value" } })], 1)], 1)], 1)], 1);
|
|
101
|
+
}, c = [], u = /* @__PURE__ */ p(
|
|
102
|
+
a,
|
|
103
|
+
m,
|
|
104
|
+
c,
|
|
105
|
+
!1,
|
|
106
|
+
null,
|
|
107
|
+
null
|
|
108
|
+
);
|
|
109
|
+
const h = u.exports;
|
|
110
|
+
export {
|
|
111
|
+
h as default
|
|
112
|
+
};
|