@processmaker/screen-builder 3.5.7 → 3.7.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/dist/vue-form-builder.css +1 -1
- package/dist/vue-form-builder.es.js +39 -9
- package/dist/vue-form-builder.es.js.map +1 -1
- package/dist/vue-form-builder.umd.js +2 -2
- package/dist/vue-form-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/inspector/options-list.vue +12 -6
- package/src/components/task.vue +8 -1
- package/src/components/vue-form-builder.vue +14 -2
- package/src/form-builder-controls.js +1 -0
|
@@ -49060,13 +49060,23 @@ const gee = {
|
|
|
49060
49060
|
[this.valueField]: this.optionContent,
|
|
49061
49061
|
[this.keyField]: this.optionValue
|
|
49062
49062
|
};
|
|
49063
|
-
this.renderAs === "checkbox"
|
|
49063
|
+
if (this.renderAs === "checkbox") {
|
|
49064
|
+
const r = this.optionsList.length;
|
|
49065
|
+
this.optionsList.push(e), this.optionsListExtra[r] = {
|
|
49066
|
+
...e,
|
|
49067
|
+
[this.ariaLabelField]: this.optionAriaLabel
|
|
49068
|
+
};
|
|
49069
|
+
} else
|
|
49070
|
+
this.optionsList.push(e);
|
|
49064
49071
|
} else {
|
|
49065
49072
|
if (this.optionsList.find((e, r) => e[t.keyField] === this.optionValue && r !== this.editIndex)) {
|
|
49066
49073
|
this.optionError = "An item with the same key already exists";
|
|
49067
49074
|
return;
|
|
49068
49075
|
}
|
|
49069
|
-
this.optionsList[this.editIndex][this.keyField] = this.optionValue, this.optionsList[this.editIndex][this.valueField] = this.optionContent, this.renderAs === "checkbox" && (this.optionsListExtra[this.editIndex] = {
|
|
49076
|
+
this.optionsList[this.editIndex][this.keyField] = this.optionValue, this.optionsList[this.editIndex][this.valueField] = this.optionContent, this.renderAs === "checkbox" && (this.optionsListExtra[this.editIndex] = {
|
|
49077
|
+
...this.optionsList[this.editIndex],
|
|
49078
|
+
[this.ariaLabelField]: this.optionAriaLabel
|
|
49079
|
+
});
|
|
49070
49080
|
}
|
|
49071
49081
|
this.jsonData = JSON.stringify(this.optionsList), this.showOptionCard = !1, this.optionError = "", this.editIndex = null;
|
|
49072
49082
|
},
|
|
@@ -49182,7 +49192,7 @@ var bee = function() {
|
|
|
49182
49192
|
yee,
|
|
49183
49193
|
!1,
|
|
49184
49194
|
null,
|
|
49185
|
-
"
|
|
49195
|
+
"b958aca2",
|
|
49186
49196
|
null,
|
|
49187
49197
|
null
|
|
49188
49198
|
);
|
|
@@ -51821,13 +51831,24 @@ const mre = [
|
|
|
51821
51831
|
);
|
|
51822
51832
|
return t > this.pageDelete ? t - 1 : t;
|
|
51823
51833
|
},
|
|
51834
|
+
// This function is used to calculate the new index of the references FormRecordList
|
|
51835
|
+
calcNewIndexForFormRecordList(t, e, r) {
|
|
51836
|
+
if (r[this.pageDelete].items.length > 0)
|
|
51837
|
+
throw new Error(
|
|
51838
|
+
`${this.$t(
|
|
51839
|
+
"Can not delete this page, it is referenced by"
|
|
51840
|
+
)}: ${e}`
|
|
51841
|
+
);
|
|
51842
|
+
return t > this.pageDelete ? t - 1 : t;
|
|
51843
|
+
},
|
|
51824
51844
|
// Update Record list references
|
|
51825
51845
|
updateRecordListReferences() {
|
|
51826
51846
|
this.config.forEach((t) => {
|
|
51827
51847
|
t.items.forEach((e) => {
|
|
51828
|
-
e.component === "FormRecordList" && (e.config.form = this.
|
|
51848
|
+
e.component === "FormRecordList" && (e.config.form = this.calcNewIndexForFormRecordList(
|
|
51829
51849
|
e.config.form * 1,
|
|
51830
|
-
e.config.label
|
|
51850
|
+
e.config.label,
|
|
51851
|
+
this.config
|
|
51831
51852
|
));
|
|
51832
51853
|
});
|
|
51833
51854
|
});
|
|
@@ -52073,7 +52094,7 @@ var yre = function() {
|
|
|
52073
52094
|
xre,
|
|
52074
52095
|
!1,
|
|
52075
52096
|
null,
|
|
52076
|
-
"
|
|
52097
|
+
"aa06dd3c",
|
|
52077
52098
|
null,
|
|
52078
52099
|
null
|
|
52079
52100
|
);
|
|
@@ -52366,6 +52387,7 @@ const Ire = Iu(Ere), hae = Iu(jre), mae = Iu([zre]), Lre = Iu([uP, lP]), Fre = N
|
|
|
52366
52387
|
allowMultiSelect: !1,
|
|
52367
52388
|
selectedOptions: [],
|
|
52368
52389
|
optionsList: [],
|
|
52390
|
+
optionsListExtra: [],
|
|
52369
52391
|
key: "value",
|
|
52370
52392
|
value: "content",
|
|
52371
52393
|
ariaLabel: "ariaLabel",
|
|
@@ -53500,7 +53522,9 @@ const Xre = () => new Promise((t) => {
|
|
|
53500
53522
|
return t.config !== void 0 && (t.config.disabled = !0), t.items !== void 0 && this.disableForm(t.items), t;
|
|
53501
53523
|
},
|
|
53502
53524
|
showSimpleErrorMessage() {
|
|
53503
|
-
this.renderComponent =
|
|
53525
|
+
this.renderComponent = null, setTimeout(() => {
|
|
53526
|
+
this.renderComponent = "simpleErrorMessage";
|
|
53527
|
+
}, 0);
|
|
53504
53528
|
},
|
|
53505
53529
|
loadScreen(t) {
|
|
53506
53530
|
this.disabled = !0;
|
|
@@ -53949,7 +53973,13 @@ const Xre = () => new Promise((t) => {
|
|
|
53949
53973
|
`ProcessMaker.Models.ProcessRequest.${this.parentRequest}`,
|
|
53950
53974
|
".ProcessUpdated",
|
|
53951
53975
|
(t) => {
|
|
53952
|
-
|
|
53976
|
+
var e;
|
|
53977
|
+
if (["ACTIVITY_ACTIVATED"].includes(t.event)) {
|
|
53978
|
+
if ((e = t.activeTokens) != null && e.includes(this.taskId))
|
|
53979
|
+
return;
|
|
53980
|
+
this.closeTask(this.parentRequest);
|
|
53981
|
+
}
|
|
53982
|
+
["ACTIVITY_COMPLETED"].includes(t.event) && this.task.process_request.status === "COMPLETED" && this.processCompleted(), t.event === "ACTIVITY_EXCEPTION" && this.$emit("error", this.requestId);
|
|
53953
53983
|
}
|
|
53954
53984
|
);
|
|
53955
53985
|
},
|
|
@@ -54016,7 +54046,7 @@ var Ure = function() {
|
|
|
54016
54046
|
Gre,
|
|
54017
54047
|
!1,
|
|
54018
54048
|
null,
|
|
54019
|
-
"
|
|
54049
|
+
"8cad2101",
|
|
54020
54050
|
null,
|
|
54021
54051
|
null
|
|
54022
54052
|
);
|