@web-utils/component 2.30.0 → 2.30.2
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 +4 -2
- package/chunks/{FormTemp.FX8xmbVB.mjs → FormTemp.CtpL-vJy.mjs} +2 -2
- package/chunks/{confirmable-mixin.rTUMhoRH.mjs → confirmable-mixin.GqdyYLEM.mjs} +16 -6
- package/chunks/{dataformat.X_61lMA7.mjs → dataformat.Ab9PZnVk.mjs} +1 -1
- package/chunks/{dic.6tk91Dmq.mjs → dic.7JBaVHv6.mjs} +8 -10
- package/chunks/{event.NHA7rYFE.mjs → event.lbJYeMJp.mjs} +2 -2
- package/chunks/{init.Ac4dKUJB.mjs → init.6oF7OO2W.mjs} +2 -2
- package/chunks/{util.C2Bhx22L.mjs → util.y1gUGRqi.mjs} +24 -18
- package/code-mirror-editor/index.mjs +380 -151
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/count-up/index.mjs +5 -9
- package/custom-scrollbar/index.mjs +4 -8
- package/dialog-form/index.mjs +1 -1
- package/element-dialog/index.mjs +5 -1
- package/flex-item/index.mjs +10 -4
- package/flow/index.mjs +22 -8
- package/flow-designer/index.mjs +125 -32
- package/flow-node/index.mjs +1 -1
- package/flow-viewer/index.mjs +16 -7
- package/form-block/index.mjs +10 -7
- package/form-cascader/index.mjs +3 -1
- package/form-checkbox-group/index.mjs +3 -1
- package/form-date-picker/index.mjs +37 -8
- package/form-holder/index.mjs +4 -1
- package/form-input/index.mjs +3 -1
- package/form-input-email/index.mjs +9 -5
- package/form-input-id-card/index.mjs +9 -5
- package/form-input-number/index.mjs +3 -1
- package/form-input-phone-number/index.mjs +9 -5
- package/form-input-time/index.mjs +3 -1
- package/form-item/index.mjs +28 -22
- package/form-item-group/index.mjs +11 -8
- package/form-radio-group/index.mjs +3 -1
- package/form-select/index.mjs +3 -1
- package/form-switch/index.mjs +3 -1
- package/form-textarea/index.mjs +3 -1
- package/form-view/index.mjs +25 -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 +113 -95
- package/fy-date/index.mjs +1 -1
- package/fy-draggable/index.mjs +2 -2
- package/fy-dynamic/index.mjs +42 -34
- package/fy-empty/index.mjs +1 -1
- package/fy-form/index.mjs +5 -5
- package/fy-form-design/index.mjs +537 -419
- package/fy-form-design/style.css +1 -1
- 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 +14 -8
- package/fy-input-number/index.mjs +1 -1
- package/fy-input-table/index.mjs +12 -9
- package/fy-input-tree/index.mjs +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 +4 -7
- package/fy-u-editor/index.mjs +32 -30
- package/fy-upload/index.mjs +14 -14
- package/image-cropper/index.mjs +1 -1
- package/image-preview/index.mjs +1 -1
- package/keep-view-alive/index.mjs +5 -1
- package/keyboard/index.mjs +9 -8
- package/license/index.mjs +1 -1
- package/login/index.mjs +1 -1
- package/not-implement/index.mjs +1 -1
- package/notice/index.mjs +4 -4
- package/package.json +1 -1
- package/pageable-table/index.mjs +9 -14
- package/pageable-view/index.mjs +9 -14
- package/photo-swipe/index.mjs +3 -1
- package/present-view/index.mjs +24 -2
- package/record-video/index.mjs +1 -1
- package/search/index.mjs +3 -3
- package/search-popover/index.mjs +1 -1
- package/sign/index.mjs +1 -1
- package/sign-panel/index.mjs +3 -3
- package/split-pane/index.mjs +1 -4
- package/table-column/index.mjs +9 -5
- package/table-view/index.mjs +22 -2
- package/text-ellipsis/index.mjs +2 -5
- package/tinymce-editor/index.mjs +14 -14
- package/verify/index.mjs +1 -1
- package/vue-tree-select/index.mjs +24 -21
- package/vue-video-player/index.mjs +8 -5
- package/web-types.json +31 -31
package/flex-item/index.mjs
CHANGED
|
@@ -51,10 +51,16 @@ const h = {
|
|
|
51
51
|
},
|
|
52
52
|
render(t, { children: e, data: l, props: n }) {
|
|
53
53
|
const o = m(l.class, n.relative ? "flex-item-relative" : "flex-item");
|
|
54
|
-
return n.absolute && !n.relative && o.push("flex-item-relative"), n.center || n.horizonCenter && n.verticalCenter ? (o.push("horizon-center"), o.push("vertical-center")) : (n.horizonCenter && o.push("horizon-center"), n.verticalCenter && o.push("vertical-center")), n.textCenter && o.push("text-center"), n.flexColumn && o.push("flex-column"), n.flexRow && o.push("flex-row"), n.absolute ? t("div", f(a({}, l), { class: o }), [
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
54
|
+
return n.absolute && !n.relative && o.push("flex-item-relative"), n.center || n.horizonCenter && n.verticalCenter ? (o.push("horizon-center"), o.push("vertical-center")) : (n.horizonCenter && o.push("horizon-center"), n.verticalCenter && o.push("vertical-center")), n.textCenter && o.push("text-center"), n.flexColumn && o.push("flex-column"), n.flexRow && o.push("flex-row"), n.absolute ? t("div", f(a({}, l), { class: o }), [
|
|
55
|
+
t(
|
|
56
|
+
"div",
|
|
57
|
+
{
|
|
58
|
+
class: "absolute",
|
|
59
|
+
style: "overflow:auto"
|
|
60
|
+
},
|
|
61
|
+
e
|
|
62
|
+
)
|
|
63
|
+
]) : t("div", f(a({}, l), { class: o }), e);
|
|
58
64
|
}
|
|
59
65
|
};
|
|
60
66
|
let C, y;
|
package/flow/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as l, r as c } from "../chunks/util.
|
|
1
|
+
import { s as l, r as c } from "../chunks/util.y1gUGRqi.mjs";
|
|
2
2
|
import { n as u } from "../chunks/vueComponentNormalizer.JwmUNtgn.mjs";
|
|
3
3
|
var h = function() {
|
|
4
4
|
var t = this, e = t.$createElement, n = t._self._c || e;
|
|
@@ -68,7 +68,20 @@ const f = {
|
|
|
68
68
|
// 默认设置参数
|
|
69
69
|
jsplumbSetting: {
|
|
70
70
|
// 动态锚点、位置自适应
|
|
71
|
-
Anchors: [
|
|
71
|
+
Anchors: [
|
|
72
|
+
"Top",
|
|
73
|
+
"TopCenter",
|
|
74
|
+
"TopRight",
|
|
75
|
+
"TopLeft",
|
|
76
|
+
"Right",
|
|
77
|
+
"RightMiddle",
|
|
78
|
+
"Bottom",
|
|
79
|
+
"BottomCenter",
|
|
80
|
+
"BottomRight",
|
|
81
|
+
"BottomLeft",
|
|
82
|
+
"Left",
|
|
83
|
+
"LeftMiddle"
|
|
84
|
+
],
|
|
72
85
|
Container: "",
|
|
73
86
|
// 连线的样式 StateMachine、Flowchart
|
|
74
87
|
Connector: "Flowchart",
|
|
@@ -98,14 +111,12 @@ const f = {
|
|
|
98
111
|
},
|
|
99
112
|
jsplumbSourceOptions: {
|
|
100
113
|
filter: ".avue-flow__node-drag",
|
|
101
|
-
/* "span"表示标签,".className"表示类,"#id"表示元素id */
|
|
102
114
|
filterExclude: !1,
|
|
103
115
|
anchor: "Continuous",
|
|
104
116
|
allowLoopback: !1
|
|
105
117
|
},
|
|
106
118
|
jsplumbTargetOptions: {
|
|
107
119
|
filter: ".avue-flow__node-drag",
|
|
108
|
-
/* "span"表示标签,".className"表示类,"#id"表示元素id */
|
|
109
120
|
filterExclude: !1,
|
|
110
121
|
anchor: "Continuous",
|
|
111
122
|
allowLoopback: !1
|
|
@@ -210,10 +221,13 @@ const f = {
|
|
|
210
221
|
}
|
|
211
222
|
for (let t = 0; t < this.option.lineList.length; t++) {
|
|
212
223
|
const e = this.option.lineList[t];
|
|
213
|
-
this.jsPlumb.connect(
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
224
|
+
this.jsPlumb.connect(
|
|
225
|
+
{
|
|
226
|
+
source: e.from,
|
|
227
|
+
target: e.to
|
|
228
|
+
},
|
|
229
|
+
this.jsplumbConnectOptions
|
|
230
|
+
);
|
|
217
231
|
}
|
|
218
232
|
this.$nextTick(function() {
|
|
219
233
|
this.loadEasyFlowFinish = !0;
|
package/flow-designer/index.mjs
CHANGED
|
@@ -163,7 +163,11 @@ J.prototype.getContextPadEntries = function(e) {
|
|
|
163
163
|
});
|
|
164
164
|
}
|
|
165
165
|
R(c, "bpmn:FlowNode") && (R(c, "bpmn:EventBasedGateway") ? y(l, {
|
|
166
|
-
"append.receive-task": f(
|
|
166
|
+
"append.receive-task": f(
|
|
167
|
+
"bpmn:ReceiveTask",
|
|
168
|
+
"bpmn-icon-receive-task",
|
|
169
|
+
p("Append ReceiveTask")
|
|
170
|
+
),
|
|
167
171
|
"append.message-intermediate-event": f(
|
|
168
172
|
"bpmn:IntermediateCatchEvent",
|
|
169
173
|
"bpmn-icon-intermediate-event-catch-message",
|
|
@@ -189,9 +193,14 @@ J.prototype.getContextPadEntries = function(e) {
|
|
|
189
193
|
{ eventDefinitionType: "bpmn:SignalEventDefinition" }
|
|
190
194
|
)
|
|
191
195
|
}) : ne(c, "bpmn:BoundaryEvent", "bpmn:CompensateEventDefinition") ? y(l, {
|
|
192
|
-
"append.compensation-activity": f(
|
|
193
|
-
|
|
194
|
-
|
|
196
|
+
"append.compensation-activity": f(
|
|
197
|
+
"bpmn:Task",
|
|
198
|
+
"bpmn-icon-task",
|
|
199
|
+
p("Append compensation activity"),
|
|
200
|
+
{
|
|
201
|
+
isForCompensation: !0
|
|
202
|
+
}
|
|
203
|
+
)
|
|
195
204
|
}) : !R(c, "bpmn:EndEvent") && !c.isForCompensation && !ne(c, "bpmn:IntermediateThrowEvent", "bpmn:LinkEventDefinition") && !Ge(c) && y(l, {
|
|
196
205
|
"append.end-event": f("bpmn:EndEvent", "bpmn-icon-end-event-none", p("Append EndEvent")),
|
|
197
206
|
"append.gateway": f("bpmn:ExclusiveGateway", "bpmn-icon-gateway-none", p("Append Gateway")),
|
|
@@ -215,12 +224,19 @@ J.prototype.getContextPadEntries = function(e) {
|
|
|
215
224
|
}
|
|
216
225
|
}
|
|
217
226
|
}
|
|
218
|
-
}), N(c, [
|
|
227
|
+
}), N(c, [
|
|
228
|
+
"bpmn:FlowNode",
|
|
229
|
+
"bpmn:InteractionNode",
|
|
230
|
+
"bpmn:DataObjectReference",
|
|
231
|
+
"bpmn:DataStoreReference"
|
|
232
|
+
]) && y(l, {
|
|
219
233
|
"append.text-annotation": f("bpmn:TextAnnotation", "bpmn-icon-text-annotation"),
|
|
220
234
|
connect: {
|
|
221
235
|
group: "connect",
|
|
222
236
|
className: "bpmn-icon-connection-multi",
|
|
223
|
-
title: p(
|
|
237
|
+
title: p(
|
|
238
|
+
`Connect using ${c.isForCompensation ? "" : "Sequence/MessageFlow or "}Association`
|
|
239
|
+
),
|
|
224
240
|
action: {
|
|
225
241
|
click: E,
|
|
226
242
|
dragstart: E
|
|
@@ -264,7 +280,19 @@ const it = {
|
|
|
264
280
|
contextPadProvider: ["type", J]
|
|
265
281
|
};
|
|
266
282
|
function L(e, i, t, n, s, r, a, o, m) {
|
|
267
|
-
Se.call(
|
|
283
|
+
Se.call(
|
|
284
|
+
this,
|
|
285
|
+
e,
|
|
286
|
+
i,
|
|
287
|
+
t,
|
|
288
|
+
n,
|
|
289
|
+
s,
|
|
290
|
+
r,
|
|
291
|
+
a,
|
|
292
|
+
o,
|
|
293
|
+
m,
|
|
294
|
+
2e3
|
|
295
|
+
), this._create = i, this._elementFactory = t, this._spaceTool = n, this._lassoTool = s, this._handTool = r, this._globalConnect = a, this._moddle = o, this._translate = m;
|
|
268
296
|
}
|
|
269
297
|
const Z = function() {
|
|
270
298
|
};
|
|
@@ -350,11 +378,31 @@ Z.prototype.getPaletteEntries = function() {
|
|
|
350
378
|
}
|
|
351
379
|
},
|
|
352
380
|
"tool-separator": { group: "tools", separator: !0 },
|
|
353
|
-
"create.start-event": m(
|
|
354
|
-
|
|
381
|
+
"create.start-event": m(
|
|
382
|
+
"bpmn:StartEvent",
|
|
383
|
+
"event",
|
|
384
|
+
"bpmn-icon-start-event-none",
|
|
385
|
+
o("Create StartEvent")
|
|
386
|
+
),
|
|
387
|
+
"create.intermediate-event": m(
|
|
388
|
+
"bpmn:IntermediateThrowEvent",
|
|
389
|
+
"event",
|
|
390
|
+
"bpmn-icon-intermediate-event-none",
|
|
391
|
+
o("Create Intermediate/Boundary Event")
|
|
392
|
+
),
|
|
355
393
|
"create.user-task": m("bpmn:UserTask", "activity", "bpmn-icon-user-task", o("Create User Task")),
|
|
356
|
-
"create.exclusive-gateway": m(
|
|
357
|
-
|
|
394
|
+
"create.exclusive-gateway": m(
|
|
395
|
+
"bpmn:ExclusiveGateway",
|
|
396
|
+
"activity",
|
|
397
|
+
"bpmn-icon-gateway-none",
|
|
398
|
+
o("Create Gateway")
|
|
399
|
+
),
|
|
400
|
+
"create.end-event": m(
|
|
401
|
+
"bpmn:EndEvent",
|
|
402
|
+
"activity",
|
|
403
|
+
"bpmn-icon-end-event-none",
|
|
404
|
+
o("Create EndEvent")
|
|
405
|
+
),
|
|
358
406
|
// 'create.sql-task': createAction('user:MySql', 'activity', 'bpmn-icon-mysql', 'MySQL 节点'),
|
|
359
407
|
// 'create.data-object': createAction('bpmn:DataObjectReference', 'data-object', 'bpmn-icon-data-object', translate('Create DataObjectReference')),
|
|
360
408
|
// 'create.data-store': createAction('bpmn:DataStoreReference', 'data-store', 'bpmn-icon-data-store', translate('Create DataStoreReference')),
|
|
@@ -380,7 +428,17 @@ Z.prototype.getPaletteEntries = function() {
|
|
|
380
428
|
// 'create.group': createAction('bpmn:Group', 'artifact', 'bpmn-icon-group', translate('Create Group'))
|
|
381
429
|
}), e;
|
|
382
430
|
};
|
|
383
|
-
L.$inject = [
|
|
431
|
+
L.$inject = [
|
|
432
|
+
"palette",
|
|
433
|
+
"create",
|
|
434
|
+
"elementFactory",
|
|
435
|
+
"spaceTool",
|
|
436
|
+
"lassoTool",
|
|
437
|
+
"handTool",
|
|
438
|
+
"globalConnect",
|
|
439
|
+
"moddle",
|
|
440
|
+
"translate"
|
|
441
|
+
];
|
|
384
442
|
L.prototype = new Z();
|
|
385
443
|
L.prototype.constructor = L;
|
|
386
444
|
const st = {
|
|
@@ -790,7 +848,9 @@ const kt = {
|
|
|
790
848
|
if (He(this.element))
|
|
791
849
|
this.documentation = "";
|
|
792
850
|
else {
|
|
793
|
-
const {
|
|
851
|
+
const {
|
|
852
|
+
businessObject: { documentation: e }
|
|
853
|
+
} = this.element;
|
|
794
854
|
this.documentation = (e == null ? void 0 : e[0].text) || "";
|
|
795
855
|
}
|
|
796
856
|
}
|
|
@@ -798,7 +858,9 @@ const kt = {
|
|
|
798
858
|
},
|
|
799
859
|
methods: {
|
|
800
860
|
updateDocumentation() {
|
|
801
|
-
const { modeling: e } = this.bpmnInstances, {
|
|
861
|
+
const { modeling: e } = this.bpmnInstances, {
|
|
862
|
+
businessObject: { documentation: i }
|
|
863
|
+
} = this.element;
|
|
802
864
|
if (i != null && i.length)
|
|
803
865
|
i[0].set("text", this.documentation), e.updateProperties(this.element, { documentation: i });
|
|
804
866
|
else {
|
|
@@ -1807,7 +1869,11 @@ const sn = {
|
|
|
1807
1869
|
e.loopCharacteristics.isSequential ? this.loopCharacteristics = "SequentialMultiInstance" : this.loopCharacteristics = "ParallelMultiInstance", this.loopInstanceForm = T(u(u({}, this.defaultLoopInstanceForm), e.loopCharacteristics), {
|
|
1808
1870
|
completionCondition: (n = (t = (i = e.loopCharacteristics) == null ? void 0 : i.completionCondition) == null ? void 0 : t.body) != null ? n : "",
|
|
1809
1871
|
loopCardinality: (a = (r = (s = e.loopCharacteristics) == null ? void 0 : s.loopCardinality) == null ? void 0 : r.body) != null ? a : ""
|
|
1810
|
-
}), this.multiLoopInstance = this.element.businessObject.loopCharacteristics, e.loopCharacteristics.extensionElements && e.loopCharacteristics.extensionElements.values && e.loopCharacteristics.extensionElements.values.length && this.$set(
|
|
1872
|
+
}), this.multiLoopInstance = this.element.businessObject.loopCharacteristics, e.loopCharacteristics.extensionElements && e.loopCharacteristics.extensionElements.values && e.loopCharacteristics.extensionElements.values.length && this.$set(
|
|
1873
|
+
this.loopInstanceForm,
|
|
1874
|
+
"timeCycle",
|
|
1875
|
+
e.loopCharacteristics.extensionElements.values[0].body
|
|
1876
|
+
);
|
|
1811
1877
|
},
|
|
1812
1878
|
changeLoopCharacteristicsType(e) {
|
|
1813
1879
|
if (e === "Null") {
|
|
@@ -3055,7 +3121,9 @@ const Sn = {
|
|
|
3055
3121
|
methods: {
|
|
3056
3122
|
resetListenersList() {
|
|
3057
3123
|
var e, i, t, n;
|
|
3058
|
-
this.otherExtensionList = [], this.bpmnElementListeners = (n = (t = (i = (e = this.element.businessObject) == null ? void 0 : e.extensionElements) == null ? void 0 : i.values) == null ? void 0 : t.filter(
|
|
3124
|
+
this.otherExtensionList = [], this.bpmnElementListeners = (n = (t = (i = (e = this.element.businessObject) == null ? void 0 : e.extensionElements) == null ? void 0 : i.values) == null ? void 0 : t.filter(
|
|
3125
|
+
(s) => s.$type === `${this.prefix}:ExecutionListener`
|
|
3126
|
+
)) != null ? n : [], this.elementListenersList = this.bpmnElementListeners.map((s) => we(s));
|
|
3059
3127
|
},
|
|
3060
3128
|
changeFiledType(e) {
|
|
3061
3129
|
e === "string" ? (delete this.listenerFieldForm.expression, this.$set(this.listenerFieldForm, "string", "")) : (delete this.listenerFieldForm.string, this.$set(this.listenerFieldForm, "expression", ""));
|
|
@@ -3092,7 +3160,11 @@ const Sn = {
|
|
|
3092
3160
|
removeListener(e, i) {
|
|
3093
3161
|
return d(this, null, function* () {
|
|
3094
3162
|
try {
|
|
3095
|
-
yield this.$confirm("确认移除该监听器吗?", "提示"), this.bpmnElementListeners.splice(i, 1), this.elementListenersList.splice(i, 1), U(
|
|
3163
|
+
yield this.$confirm("确认移除该监听器吗?", "提示"), this.bpmnElementListeners.splice(i, 1), this.elementListenersList.splice(i, 1), U(
|
|
3164
|
+
this.bpmnInstances,
|
|
3165
|
+
this.element,
|
|
3166
|
+
this.otherExtensionList.concat(this.bpmnElementListeners)
|
|
3167
|
+
);
|
|
3096
3168
|
} catch (t) {
|
|
3097
3169
|
}
|
|
3098
3170
|
});
|
|
@@ -3104,7 +3176,13 @@ const Sn = {
|
|
|
3104
3176
|
if (!(yield this.$refs.listenerFormRef.validate()))
|
|
3105
3177
|
return;
|
|
3106
3178
|
const i = _e(this.bpmnInstances, this.listenerForm, !1, this.prefix);
|
|
3107
|
-
this.editingListenerIndex === -1 ? (this.bpmnElementListeners.push(i), this.elementListenersList.push(this.listenerForm)) : (this.bpmnElementListeners.splice(this.editingListenerIndex, 1, i), this.elementListenersList.splice(this.editingListenerIndex, 1, this.listenerForm)), this.otherExtensionList = (r = (s = (n = (t = this.element.businessObject) == null ? void 0 : t.extensionElements) == null ? void 0 : n.values) == null ? void 0 : s.filter(
|
|
3179
|
+
this.editingListenerIndex === -1 ? (this.bpmnElementListeners.push(i), this.elementListenersList.push(this.listenerForm)) : (this.bpmnElementListeners.splice(this.editingListenerIndex, 1, i), this.elementListenersList.splice(this.editingListenerIndex, 1, this.listenerForm)), this.otherExtensionList = (r = (s = (n = (t = this.element.businessObject) == null ? void 0 : t.extensionElements) == null ? void 0 : n.values) == null ? void 0 : s.filter(
|
|
3180
|
+
(a) => a.$type !== `${this.prefix}:ExecutionListener`
|
|
3181
|
+
)) != null ? r : [], U(
|
|
3182
|
+
this.bpmnInstances,
|
|
3183
|
+
this.element,
|
|
3184
|
+
this.otherExtensionList.concat(this.bpmnElementListeners)
|
|
3185
|
+
), this.listenerFormModelVisible = !1, this.listenerForm = {};
|
|
3108
3186
|
});
|
|
3109
3187
|
}
|
|
3110
3188
|
}
|
|
@@ -3323,7 +3401,10 @@ const An = {
|
|
|
3323
3401
|
methods: {
|
|
3324
3402
|
resetAttributesList() {
|
|
3325
3403
|
var e, i, t, n, s;
|
|
3326
|
-
this.otherExtensionList = [], this.bpmnElementProperties = (n = (t = (i = (e = this.element.businessObject) == null ? void 0 : e.extensionElements) == null ? void 0 : i.values) == null ? void 0 : t.filter((r) => (r.$type !== `${this.prefix}:Properties` && this.otherExtensionList.push(r), r.$type === `${this.prefix}:Properties`))) != null ? n : [], this.bpmnElementPropertyList = this.bpmnElementProperties.reduce(
|
|
3404
|
+
this.otherExtensionList = [], this.bpmnElementProperties = (n = (t = (i = (e = this.element.businessObject) == null ? void 0 : e.extensionElements) == null ? void 0 : i.values) == null ? void 0 : t.filter((r) => (r.$type !== `${this.prefix}:Properties` && this.otherExtensionList.push(r), r.$type === `${this.prefix}:Properties`))) != null ? n : [], this.bpmnElementPropertyList = this.bpmnElementProperties.reduce(
|
|
3405
|
+
(r, a) => r.concat(a.values),
|
|
3406
|
+
[]
|
|
3407
|
+
), this.elementPropertyList = g((s = this.bpmnElementPropertyList) != null ? s : []);
|
|
3327
3408
|
},
|
|
3328
3409
|
openAttributesForm(e, i) {
|
|
3329
3410
|
this.editingPropertyIndex = i, this.propertyForm = i === -1 ? {} : g(e), this.propertyFormModelVisible = !0, this.$nextTick(() => {
|
|
@@ -3346,10 +3427,14 @@ const An = {
|
|
|
3346
3427
|
saveAttribute() {
|
|
3347
3428
|
const { name: e, value: i } = this.propertyForm;
|
|
3348
3429
|
if (this.editingPropertyIndex !== -1)
|
|
3349
|
-
this.bpmnInstances.modeling.updateModdleProperties(
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3430
|
+
this.bpmnInstances.modeling.updateModdleProperties(
|
|
3431
|
+
this.element,
|
|
3432
|
+
this.bpmnElementPropertyList[this.editingPropertyIndex],
|
|
3433
|
+
{
|
|
3434
|
+
name: e,
|
|
3435
|
+
value: i
|
|
3436
|
+
}
|
|
3437
|
+
);
|
|
3353
3438
|
else {
|
|
3354
3439
|
const t = this.bpmnInstances.moddle.create(`${this.prefix}:Property`, { name: e, value: i }), n = this.bpmnInstances.moddle.create(`${this.prefix}:Properties`, {
|
|
3355
3440
|
values: this.bpmnElementPropertyList.concat([t])
|
|
@@ -4701,7 +4786,7 @@ var Rn = function() {
|
|
|
4701
4786
|
return e.removeListenerField(s, r);
|
|
4702
4787
|
}
|
|
4703
4788
|
}
|
|
4704
|
-
}, [e._v("移除")])];
|
|
4789
|
+
}, [e._v(" 移除 ")])];
|
|
4705
4790
|
}
|
|
4706
4791
|
}])
|
|
4707
4792
|
})], 1), t("div", {
|
|
@@ -4907,7 +4992,9 @@ const zn = {
|
|
|
4907
4992
|
methods: {
|
|
4908
4993
|
resetListenersList() {
|
|
4909
4994
|
var e, i, t, n;
|
|
4910
|
-
this.otherExtensionList = [], this.bpmnElementListeners = (n = (t = (i = (e = this.element.businessObject) == null ? void 0 : e.extensionElements) == null ? void 0 : i.values) == null ? void 0 : t.filter(
|
|
4995
|
+
this.otherExtensionList = [], this.bpmnElementListeners = (n = (t = (i = (e = this.element.businessObject) == null ? void 0 : e.extensionElements) == null ? void 0 : i.values) == null ? void 0 : t.filter(
|
|
4996
|
+
(s) => s.$type === `${this.prefix}:TaskListener`
|
|
4997
|
+
)) != null ? n : [], this.elementListenersList = this.bpmnElementListeners.map((s) => we(s));
|
|
4911
4998
|
},
|
|
4912
4999
|
openListenerForm(e, i) {
|
|
4913
5000
|
return d(this, null, function* () {
|
|
@@ -4921,7 +5008,11 @@ const zn = {
|
|
|
4921
5008
|
removeListener(e, i) {
|
|
4922
5009
|
return d(this, null, function* () {
|
|
4923
5010
|
try {
|
|
4924
|
-
yield this.$confirm("确认移除该监听器吗?", "提示"), this.bpmnElementListeners.splice(i, 1), this.elementListenersList.splice(i, 1), U(
|
|
5011
|
+
yield this.$confirm("确认移除该监听器吗?", "提示"), this.bpmnElementListeners.splice(i, 1), this.elementListenersList.splice(i, 1), U(
|
|
5012
|
+
this.bpmnInstances,
|
|
5013
|
+
this.element,
|
|
5014
|
+
this.otherExtensionList.concat(this.bpmnElementListeners)
|
|
5015
|
+
);
|
|
4925
5016
|
} catch (t) {
|
|
4926
5017
|
}
|
|
4927
5018
|
});
|
|
@@ -4933,7 +5024,13 @@ const zn = {
|
|
|
4933
5024
|
if (!(yield this.$refs.listenerFormRef.validate()))
|
|
4934
5025
|
return;
|
|
4935
5026
|
const i = _e(this.bpmnInstances, this.listenerForm, !0, this.prefix);
|
|
4936
|
-
this.editingListenerIndex === -1 ? (this.bpmnElementListeners.push(i), this.elementListenersList.push(this.listenerForm)) : (this.bpmnElementListeners.splice(this.editingListenerIndex, 1, i), this.elementListenersList.splice(this.editingListenerIndex, 1, this.listenerForm)), this.otherExtensionList = (r = (s = (n = (t = this.element.businessObject) == null ? void 0 : t.extensionElements) == null ? void 0 : n.values) == null ? void 0 : s.filter(
|
|
5027
|
+
this.editingListenerIndex === -1 ? (this.bpmnElementListeners.push(i), this.elementListenersList.push(this.listenerForm)) : (this.bpmnElementListeners.splice(this.editingListenerIndex, 1, i), this.elementListenersList.splice(this.editingListenerIndex, 1, this.listenerForm)), this.otherExtensionList = (r = (s = (n = (t = this.element.businessObject) == null ? void 0 : t.extensionElements) == null ? void 0 : n.values) == null ? void 0 : s.filter(
|
|
5028
|
+
(a) => a.$type !== `${this.prefix}:TaskListener`
|
|
5029
|
+
)) != null ? r : [], U(
|
|
5030
|
+
this.bpmnInstances,
|
|
5031
|
+
this.element,
|
|
5032
|
+
this.otherExtensionList.concat(this.bpmnElementListeners)
|
|
5033
|
+
), this.listenerFormModelVisible = !1, this.listenerForm = {};
|
|
4937
5034
|
});
|
|
4938
5035
|
},
|
|
4939
5036
|
// 打开监听器字段编辑弹窗
|
|
@@ -10148,11 +10245,7 @@ const zi = {
|
|
|
10148
10245
|
labelVisible: !1,
|
|
10149
10246
|
prefix: "flowable",
|
|
10150
10247
|
headerButtonSize: "mini",
|
|
10151
|
-
additionalModel: [
|
|
10152
|
-
it,
|
|
10153
|
-
st,
|
|
10154
|
-
ut
|
|
10155
|
-
]
|
|
10248
|
+
additionalModel: [it, st, ut]
|
|
10156
10249
|
}
|
|
10157
10250
|
};
|
|
10158
10251
|
},
|
package/flow-node/index.mjs
CHANGED
package/flow-viewer/index.mjs
CHANGED
|
@@ -165,12 +165,15 @@ const f = d.prototype._handleWheel, P = {
|
|
|
165
165
|
}), m(h, a);
|
|
166
166
|
const r = A("defs", this.$el);
|
|
167
167
|
m(r, n), m(r, h);
|
|
168
|
-
}), this.bpmnViewer.importXML(this.xml), this.$watch(
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
168
|
+
}), this.bpmnViewer.importXML(this.xml), this.$watch(
|
|
169
|
+
() => ({
|
|
170
|
+
activities: this.activities,
|
|
171
|
+
historicActivities: this.historicActivities
|
|
172
|
+
}),
|
|
173
|
+
({ activities: e, historicActivities: i }) => {
|
|
174
|
+
this.highlightFlow(i, e);
|
|
175
|
+
}
|
|
176
|
+
);
|
|
174
177
|
},
|
|
175
178
|
beforeDestroy() {
|
|
176
179
|
var e;
|
|
@@ -182,7 +185,13 @@ const f = d.prototype._handleWheel, P = {
|
|
|
182
185
|
},
|
|
183
186
|
highlightFlow(e, i) {
|
|
184
187
|
this.elementRegistry.getAll().forEach((t) => {
|
|
185
|
-
[
|
|
188
|
+
[
|
|
189
|
+
"bpmn:StartEvent",
|
|
190
|
+
"bpmn:UserTask",
|
|
191
|
+
"bpmn:ExclusiveGateway",
|
|
192
|
+
"bpmn:ParallelGateway",
|
|
193
|
+
"bpmn:EndEvent"
|
|
194
|
+
].includes(t.type) && (e.includes(t.id) && !i.includes(t.id) ? this.canvas.addMarker(t, "highlight") : this.canvas.removeMarker(t, "highlight")), t.type === "bpmn:SequenceFlow" && (e.includes(t.id) ? this.canvas.addMarker(t, "highlight-line") : this.canvas.removeMarker(t, "highlight-line")), t.type === "bpmn:UserTask" && (i.includes(t.id) ? this.canvas.addMarker(t, "highlight-current") : this.canvas.removeMarker(t, "highlight-current"));
|
|
186
195
|
});
|
|
187
196
|
}
|
|
188
197
|
}
|
package/form-block/index.mjs
CHANGED
|
@@ -86,13 +86,16 @@ const l = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
|
|
|
86
86
|
formConfig: i,
|
|
87
87
|
$scopedSlots: o
|
|
88
88
|
} = this;
|
|
89
|
-
return t ?
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
89
|
+
return t ? (
|
|
90
|
+
// eslint-disable-next-line no-undef
|
|
91
|
+
e("ElRow", {
|
|
92
|
+
attrs: {
|
|
93
|
+
gutter: a
|
|
94
|
+
}
|
|
95
|
+
}, [o.default({
|
|
96
|
+
disabled: i.disabled
|
|
97
|
+
})])
|
|
98
|
+
) : o.default({
|
|
96
99
|
disabled: i.disabled
|
|
97
100
|
});
|
|
98
101
|
},
|
package/form-cascader/index.mjs
CHANGED
|
@@ -72,7 +72,9 @@ var k = function() {
|
|
|
72
72
|
}], null, !0)
|
|
73
73
|
}, "FormItem", e.formItemProps, !1));
|
|
74
74
|
}, x = [];
|
|
75
|
-
const P = Object.keys(s.props || s.default.props).filter(
|
|
75
|
+
const P = Object.keys(s.props || s.default.props).filter(
|
|
76
|
+
(e) => !["value", "placeholder", "disabled", "options", "showAllLevels", "show-all-levels", "separator"].includes(e)
|
|
77
|
+
), w = {
|
|
76
78
|
name: "FormCascader",
|
|
77
79
|
mixins: [m, f],
|
|
78
80
|
props: {
|
|
@@ -92,7 +92,9 @@ var _ = function() {
|
|
|
92
92
|
}], null, !0)
|
|
93
93
|
}, "FormItem", e.formItemProps, !1));
|
|
94
94
|
}, v = [];
|
|
95
|
-
const x = Object.keys(s.props || s.default.props).filter(
|
|
95
|
+
const x = Object.keys(s.props || s.default.props).filter(
|
|
96
|
+
(e) => !["value", "placeholder", "disabled"].includes(e)
|
|
97
|
+
), g = {
|
|
96
98
|
name: "FormCheckboxGroup",
|
|
97
99
|
mixins: [f, m],
|
|
98
100
|
props: {
|
|
@@ -66,7 +66,33 @@ var x = function() {
|
|
|
66
66
|
}], null, !0)
|
|
67
67
|
}, "FormItem", e.formItemProps, !1));
|
|
68
68
|
}, P = [];
|
|
69
|
-
const S = [
|
|
69
|
+
const S = [
|
|
70
|
+
"type",
|
|
71
|
+
"timeArrowControl",
|
|
72
|
+
"size",
|
|
73
|
+
"format",
|
|
74
|
+
"valueFormat",
|
|
75
|
+
"readonly",
|
|
76
|
+
"placeholder",
|
|
77
|
+
"startPlaceholder",
|
|
78
|
+
"endPlaceholder",
|
|
79
|
+
"prefixIcon",
|
|
80
|
+
"clearIcon",
|
|
81
|
+
"name",
|
|
82
|
+
"disabled",
|
|
83
|
+
"clearable",
|
|
84
|
+
"id",
|
|
85
|
+
"popperClass",
|
|
86
|
+
"editable",
|
|
87
|
+
"align",
|
|
88
|
+
"value",
|
|
89
|
+
"defaultValue",
|
|
90
|
+
"defaultTime",
|
|
91
|
+
"rangeSeparator",
|
|
92
|
+
"pickerOptions",
|
|
93
|
+
"unlinkPanels",
|
|
94
|
+
"validateEvent"
|
|
95
|
+
].filter((e) => !["value", "placeholder", "disabled", "type", "pickerOptions"].includes(e)), D = {
|
|
70
96
|
name: "FormDatePicker",
|
|
71
97
|
mixins: [y, g],
|
|
72
98
|
props: {
|
|
@@ -148,13 +174,16 @@ const S = ["type", "timeArrowControl", "size", "format", "valueFormat", "readonl
|
|
|
148
174
|
return this.year ? "yyyy" : this.month || this.monthRange ? "yyyy-MM" : this.week ? "yyyy 第 WW 周" : this.dateTime || this.dateTimeRange ? "yyyy-MM-dd HH:mm" : "yyyy-MM-dd";
|
|
149
175
|
},
|
|
150
176
|
inputProps() {
|
|
151
|
-
return _(
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
177
|
+
return _(
|
|
178
|
+
o(i(i({}, k(this.$attrs)), this.$props), {
|
|
179
|
+
valueFormat: this.week ? "yyyy-MM-dd" : this.valueFormat || this.fat,
|
|
180
|
+
format: this.format || this.fat,
|
|
181
|
+
rangeSeparator: this.rangeSeparator || "至",
|
|
182
|
+
startPlaceholder: this.startPlaceholder || "开始日期",
|
|
183
|
+
endPlaceholder: this.endPlaceholder || "结束日期"
|
|
184
|
+
}),
|
|
185
|
+
S
|
|
186
|
+
);
|
|
158
187
|
},
|
|
159
188
|
range() {
|
|
160
189
|
return this.dateTimeRange || this.dateRange || this.monthRange;
|
package/form-holder/index.mjs
CHANGED
|
@@ -90,7 +90,10 @@ const v = {
|
|
|
90
90
|
}
|
|
91
91
|
},
|
|
92
92
|
created() {
|
|
93
|
-
this.required || u.call(
|
|
93
|
+
this.required || u.call(
|
|
94
|
+
c(this, (e) => ["FormView", "FormHolder"].includes(e.$options.name)),
|
|
95
|
+
"一般情况下不建议设置 required=false,因为 required 设置为 false 后必填字段要自行维护,在处理表格时会比较复杂,请自行权衡利弊"
|
|
96
|
+
);
|
|
94
97
|
},
|
|
95
98
|
methods: {
|
|
96
99
|
clearValidate(e) {
|
package/form-input/index.mjs
CHANGED
|
@@ -72,7 +72,9 @@ var y = function() {
|
|
|
72
72
|
}], null, !0)
|
|
73
73
|
}, "FormItem", e.formItemProps, !1));
|
|
74
74
|
}, h = [];
|
|
75
|
-
const b = Object.keys(u.props || u.default.props).filter(
|
|
75
|
+
const b = Object.keys(u.props || u.default.props).filter(
|
|
76
|
+
(e) => !["value", "placeholder", "disabled"].includes(e)
|
|
77
|
+
), x = {
|
|
76
78
|
name: "FormInput",
|
|
77
79
|
mixins: [d],
|
|
78
80
|
props: {
|
|
@@ -60,7 +60,9 @@ var h = function() {
|
|
|
60
60
|
}], null, !0)
|
|
61
61
|
}, "FormItem", e.formItemProps, !1));
|
|
62
62
|
}, x = [];
|
|
63
|
-
const b = Object.keys(a.props || a.default.props).filter(
|
|
63
|
+
const b = Object.keys(a.props || a.default.props).filter(
|
|
64
|
+
(e) => !["value", "placeholder", "disabled"].includes(e)
|
|
65
|
+
), I = {
|
|
64
66
|
name: "FormInputEmail",
|
|
65
67
|
mixins: [f],
|
|
66
68
|
props: {
|
|
@@ -79,10 +81,12 @@ const b = Object.keys(a.props || a.default.props).filter((e) => !["value", "plac
|
|
|
79
81
|
},
|
|
80
82
|
methods: {
|
|
81
83
|
getRules() {
|
|
82
|
-
return [
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
84
|
+
return [
|
|
85
|
+
{
|
|
86
|
+
validator: y,
|
|
87
|
+
message: "请输入正确的邮箱!"
|
|
88
|
+
}
|
|
89
|
+
];
|
|
86
90
|
}
|
|
87
91
|
}
|
|
88
92
|
}, u = {};
|
|
@@ -66,7 +66,9 @@ var h = function() {
|
|
|
66
66
|
}], null, !0)
|
|
67
67
|
}, "FormItem", r.formItemProps, !1));
|
|
68
68
|
}, I = [];
|
|
69
|
-
const b = Object.keys(u.props || u.default.props).filter(
|
|
69
|
+
const b = Object.keys(u.props || u.default.props).filter(
|
|
70
|
+
(r) => !["value", "placeholder", "disabled"].includes(r)
|
|
71
|
+
), x = {
|
|
70
72
|
name: "FormInputIdCard",
|
|
71
73
|
mixins: [f],
|
|
72
74
|
props: {
|
|
@@ -86,10 +88,12 @@ const b = Object.keys(u.props || u.default.props).filter((r) => !["value", "plac
|
|
|
86
88
|
methods: {
|
|
87
89
|
validateIdCard: i,
|
|
88
90
|
getRules() {
|
|
89
|
-
return [
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
return [
|
|
92
|
+
{
|
|
93
|
+
validator: i,
|
|
94
|
+
message: "请输入正确的身份证号码!"
|
|
95
|
+
}
|
|
96
|
+
];
|
|
93
97
|
}
|
|
94
98
|
}
|
|
95
99
|
}, p = {};
|
|
@@ -84,7 +84,9 @@ var b = function() {
|
|
|
84
84
|
}], null, !0)
|
|
85
85
|
}, "FormItem", e.formItemProps, !1));
|
|
86
86
|
}, x = [];
|
|
87
|
-
const v = Object.keys(_.props).filter(
|
|
87
|
+
const v = Object.keys(_.props).filter(
|
|
88
|
+
(e) => !["value", "placeholder", "disabled", "precision", "max", "min"].includes(e)
|
|
89
|
+
), I = {
|
|
88
90
|
name: "FormInputNumber",
|
|
89
91
|
mixins: [f],
|
|
90
92
|
props: {
|
|
@@ -58,7 +58,9 @@ var y = function() {
|
|
|
58
58
|
}], null, !0)
|
|
59
59
|
}, "FormItem", e.formItemProps, !1));
|
|
60
60
|
}, b = [];
|
|
61
|
-
const I = Object.keys(s.props || s.default.props).filter(
|
|
61
|
+
const I = Object.keys(s.props || s.default.props).filter(
|
|
62
|
+
(e) => !["value", "placeholder", "disabled"].includes(e)
|
|
63
|
+
), x = {
|
|
62
64
|
name: "FormInputPhoneNumber",
|
|
63
65
|
mixins: [c],
|
|
64
66
|
props: {
|
|
@@ -77,10 +79,12 @@ const I = Object.keys(s.props || s.default.props).filter((e) => !["value", "plac
|
|
|
77
79
|
},
|
|
78
80
|
methods: {
|
|
79
81
|
getRules() {
|
|
80
|
-
return [
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
return [
|
|
83
|
+
{
|
|
84
|
+
validator: f,
|
|
85
|
+
message: "请输入正确的手机号码!"
|
|
86
|
+
}
|
|
87
|
+
];
|
|
84
88
|
},
|
|
85
89
|
emitInput(e) {
|
|
86
90
|
this.$emit("input", e);
|