@processmaker/screen-builder 3.5.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/dist/vue-form-builder.css +1 -1
- package/dist/vue-form-builder.es.js +43 -26
- 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 +16 -9
- package/src/components/task.vue +7 -0
|
@@ -48965,8 +48965,7 @@ const gee = {
|
|
|
48965
48965
|
showJsonEditor: this.showJsonEditor,
|
|
48966
48966
|
editIndex: this.editIndex,
|
|
48967
48967
|
removeIndex: this.removeIndex,
|
|
48968
|
-
valueTypeReturned: this.valueTypeReturned
|
|
48969
|
-
optionAriaLabel: this.optionAriaLabel
|
|
48968
|
+
valueTypeReturned: this.valueTypeReturned
|
|
48970
48969
|
};
|
|
48971
48970
|
}
|
|
48972
48971
|
},
|
|
@@ -48976,7 +48975,7 @@ const gee = {
|
|
|
48976
48975
|
}, 1500);
|
|
48977
48976
|
},
|
|
48978
48977
|
mounted() {
|
|
48979
|
-
this.dataSource = this.options.dataSource, this.jsonData = this.options.jsonData, this.dataName = this.options.dataName, this.collectionOptions = this.options.collectionOptions, this.selectedDataSource = this.options.selectedDataSource, this.selectedEndPoint = this.options.selectedEndPoint, this.key = this.options.key, this.value = this.options.value, this.
|
|
48978
|
+
this.dataSource = this.options.dataSource, this.jsonData = this.options.jsonData, this.dataName = this.options.dataName, this.collectionOptions = this.options.collectionOptions, this.selectedDataSource = this.options.selectedDataSource, this.selectedEndPoint = this.options.selectedEndPoint, this.key = this.options.key, this.value = this.options.value, this.pmqlQuery = this.options.pmqlQuery, this.defaultOptionKey = this.options.defaultOptionKey, this.selectedOptions = this.options.selectedOptions, this.optionsList = this.options.optionsList ? this.options.optionsList : [], this.optionsListExtra = this.options.optionsListExtra ? this.options.optionsListExtra : [], this.jsonData = JSON.stringify(this.optionsList), this.showRenderAs = this.options.showRenderAs, this.renderAs = this.options.renderAs, this.allowMultiSelect = this.options.allowMultiSelect, this.valueTypeReturned = this.options.valueTypeReturned;
|
|
48980
48979
|
},
|
|
48981
48980
|
methods: {
|
|
48982
48981
|
monacoMounted(t) {
|
|
@@ -49045,7 +49044,7 @@ const gee = {
|
|
|
49045
49044
|
this.jsonData = JSON.stringify(this.optionsList), this.$emit("change", this.dataObjectOptions);
|
|
49046
49045
|
},
|
|
49047
49046
|
showEditOption(t) {
|
|
49048
|
-
this.optionCardType = "edit", this.editIndex = t, this.optionContent = this.optionsList[t][this.valueField], this.optionValue = this.optionsList[t][this.keyField], this.renderAs === "checkbox" && (this.optionAriaLabel = this.optionsListExtra[t][this.ariaLabelField]), this.optionError = "";
|
|
49047
|
+
this.optionCardType = "edit", this.editIndex = t, this.optionContent = this.optionsList[t][this.valueField], this.optionValue = this.optionsList[t][this.keyField], this.optionAriaLabel = "", this.renderAs === "checkbox" && (this.optionAriaLabel = this.optionsListExtra[t] ? this.optionsListExtra[t][this.ariaLabelField] : ""), this.optionError = "";
|
|
49049
49048
|
},
|
|
49050
49049
|
showAddOption() {
|
|
49051
49050
|
this.optionCardType = "insert", this.optionContent = "", this.optionValue = "", this.optionAriaLabel = "", this.showOptionCard = !0, this.optionError = "", this.editIndex = null;
|
|
@@ -49061,13 +49060,23 @@ const gee = {
|
|
|
49061
49060
|
[this.valueField]: this.optionContent,
|
|
49062
49061
|
[this.keyField]: this.optionValue
|
|
49063
49062
|
};
|
|
49064
|
-
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);
|
|
49065
49071
|
} else {
|
|
49066
49072
|
if (this.optionsList.find((e, r) => e[t.keyField] === this.optionValue && r !== this.editIndex)) {
|
|
49067
49073
|
this.optionError = "An item with the same key already exists";
|
|
49068
49074
|
return;
|
|
49069
49075
|
}
|
|
49070
|
-
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
|
+
});
|
|
49071
49080
|
}
|
|
49072
49081
|
this.jsonData = JSON.stringify(this.optionsList), this.showOptionCard = !1, this.optionError = "", this.editIndex = null;
|
|
49073
49082
|
},
|
|
@@ -49183,7 +49192,7 @@ var bee = function() {
|
|
|
49183
49192
|
yee,
|
|
49184
49193
|
!1,
|
|
49185
49194
|
null,
|
|
49186
|
-
"
|
|
49195
|
+
"b958aca2",
|
|
49187
49196
|
null,
|
|
49188
49197
|
null
|
|
49189
49198
|
);
|
|
@@ -53870,23 +53879,25 @@ const Xre = () => new Promise((t) => {
|
|
|
53870
53879
|
* @param {Object} data - The event data received from the socket listener.
|
|
53871
53880
|
*/
|
|
53872
53881
|
handleRedirect(t) {
|
|
53873
|
-
|
|
53874
|
-
|
|
53875
|
-
|
|
53876
|
-
|
|
53877
|
-
|
|
53878
|
-
|
|
53879
|
-
|
|
53880
|
-
|
|
53881
|
-
|
|
53882
|
-
|
|
53883
|
-
this.
|
|
53884
|
-
|
|
53885
|
-
|
|
53886
|
-
|
|
53887
|
-
|
|
53888
|
-
|
|
53889
|
-
|
|
53882
|
+
var e, r;
|
|
53883
|
+
if (!((r = (e = t.params) == null ? void 0 : e.activeTokens) != null && r.includes(this.taskId)))
|
|
53884
|
+
switch (t.method) {
|
|
53885
|
+
case "redirectToTask":
|
|
53886
|
+
this.handleRedirectToTask(t);
|
|
53887
|
+
break;
|
|
53888
|
+
case "processUpdated":
|
|
53889
|
+
this.handleProcessUpdated(t);
|
|
53890
|
+
break;
|
|
53891
|
+
case "processCompletedRedirect":
|
|
53892
|
+
this.processCompletedRedirect(
|
|
53893
|
+
t.params[0],
|
|
53894
|
+
this.userId,
|
|
53895
|
+
this.requestId
|
|
53896
|
+
);
|
|
53897
|
+
break;
|
|
53898
|
+
default:
|
|
53899
|
+
this.handleDefaultRedirect(t);
|
|
53900
|
+
}
|
|
53890
53901
|
},
|
|
53891
53902
|
/**
|
|
53892
53903
|
* Handles the 'redirectToTask' event by loading the specified task.
|
|
@@ -53948,7 +53959,13 @@ const Xre = () => new Promise((t) => {
|
|
|
53948
53959
|
`ProcessMaker.Models.ProcessRequest.${this.parentRequest}`,
|
|
53949
53960
|
".ProcessUpdated",
|
|
53950
53961
|
(t) => {
|
|
53951
|
-
|
|
53962
|
+
var e;
|
|
53963
|
+
if (["ACTIVITY_ACTIVATED"].includes(t.event)) {
|
|
53964
|
+
if ((e = t.activeTokens) != null && e.includes(this.taskId))
|
|
53965
|
+
return;
|
|
53966
|
+
this.closeTask(this.parentRequest);
|
|
53967
|
+
}
|
|
53968
|
+
["ACTIVITY_COMPLETED"].includes(t.event) && this.task.process_request.status === "COMPLETED" && this.processCompleted(), t.event === "ACTIVITY_EXCEPTION" && this.$emit("error", this.requestId);
|
|
53952
53969
|
}
|
|
53953
53970
|
);
|
|
53954
53971
|
},
|
|
@@ -54015,7 +54032,7 @@ var Ure = function() {
|
|
|
54015
54032
|
Gre,
|
|
54016
54033
|
!1,
|
|
54017
54034
|
null,
|
|
54018
|
-
"
|
|
54035
|
+
"7374c2d0",
|
|
54019
54036
|
null,
|
|
54020
54037
|
null
|
|
54021
54038
|
);
|