@processmaker/screen-builder 3.8.27 → 3.8.28
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.
|
@@ -54868,12 +54868,15 @@ const Bie = () => new Promise((t) => {
|
|
|
54868
54868
|
}))), this.taskPreview && this.task.status === "CLOSED" && (this.task.interstitial_screen._interstitial = !1, this.alwaysAllowEditing || (this.task.screen.config = this.disableForm(this.task.screen.config)), this.screen = this.task.screen);
|
|
54869
54869
|
},
|
|
54870
54870
|
prepareTask() {
|
|
54871
|
-
(!this.loadingButton || this.task.status === "ACTIVE") && (this.resetScreenState(), this.requestData = te.get(this.task, "request_data", {}), this.loopContext = te.get(this.task, "loop_context", ""), this.task.draft && (this.requestData =
|
|
54872
|
-
{},
|
|
54871
|
+
(!this.loadingButton || this.task.status === "ACTIVE") && (this.resetScreenState(), this.requestData = te.get(this.task, "request_data", {}), this.loopContext = te.get(this.task, "loop_context", ""), this.task.draft && (this.requestData = this.restoreDraftData(
|
|
54873
54872
|
this.requestData,
|
|
54874
54873
|
this.task.draft.data
|
|
54875
54874
|
)), this.refreshScreen++), this.$emit("task-updated", this.task), this.task.process_request.status === "ERROR" ? (this.hasErrors = !0, this.$emit("error", this.requestId)) : this.hasErrors = !1;
|
|
54876
54875
|
},
|
|
54876
|
+
restoreDraftData(t, e) {
|
|
54877
|
+
var i, a;
|
|
54878
|
+
return ((a = (i = globalThis == null ? void 0 : globalThis.ProcessMaker) == null ? void 0 : i.screen) == null ? void 0 : a.mergeDraftOnRestore) ?? !0 ? te.merge({}, t, e) : { ...t, ...e };
|
|
54879
|
+
},
|
|
54877
54880
|
pageUpdate() {
|
|
54878
54881
|
this.$emit("updated-page-core");
|
|
54879
54882
|
},
|
|
@@ -55364,7 +55367,7 @@ var Hie = function() {
|
|
|
55364
55367
|
Vie,
|
|
55365
55368
|
!1,
|
|
55366
55369
|
null,
|
|
55367
|
-
"
|
|
55370
|
+
"efe159e2",
|
|
55368
55371
|
null,
|
|
55369
55372
|
null
|
|
55370
55373
|
);
|