@processmaker/screen-builder 3.8.27 → 3.8.29
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 +16 -7
- package/dist/vue-form-builder.es.js.map +1 -1
- package/dist/vue-form-builder.umd.js +3 -3
- package/dist/vue-form-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/DataProvider.js +12 -1
- package/src/components/inspector/collection-records-list.vue +3 -0
- package/src/components/task.vue +8 -2
|
@@ -22707,9 +22707,15 @@ const tl = {
|
|
|
22707
22707
|
if (a)
|
|
22708
22708
|
return Promise.resolve({ data: a });
|
|
22709
22709
|
const n = new Promise((s, o) => {
|
|
22710
|
-
|
|
22711
|
-
|
|
22712
|
-
|
|
22710
|
+
let u = e || "";
|
|
22711
|
+
const l = this.authQueryString();
|
|
22712
|
+
if (l && !u.includes("request_id=")) {
|
|
22713
|
+
const c = l.startsWith("?") ? l.slice(1) : l;
|
|
22714
|
+
u ? u += `${u.includes("?") ? "&" : "?"}${c}` : u = `?${c}`;
|
|
22715
|
+
}
|
|
22716
|
+
this.get(`${i}/${t}${u}`).then((c) => {
|
|
22717
|
+
c.data.nested && this.addNestedScreenCache(c.data.nested), s(c);
|
|
22718
|
+
}).catch((c) => o(c));
|
|
22713
22719
|
});
|
|
22714
22720
|
return this.cachedScreenPromises.push({ id: t, query: e, screenPromise: n }), n;
|
|
22715
22721
|
},
|
|
@@ -47463,7 +47469,7 @@ const Dp = s$.exports, Og = [
|
|
|
47463
47469
|
text: e.name,
|
|
47464
47470
|
value: e.id
|
|
47465
47471
|
}))
|
|
47466
|
-
];
|
|
47472
|
+
], this.collectionId && this.updateScreenIds();
|
|
47467
47473
|
});
|
|
47468
47474
|
},
|
|
47469
47475
|
getFields() {
|
|
@@ -54868,12 +54874,15 @@ const Bie = () => new Promise((t) => {
|
|
|
54868
54874
|
}))), 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
54875
|
},
|
|
54870
54876
|
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
|
-
{},
|
|
54877
|
+
(!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
54878
|
this.requestData,
|
|
54874
54879
|
this.task.draft.data
|
|
54875
54880
|
)), 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
54881
|
},
|
|
54882
|
+
restoreDraftData(t, e) {
|
|
54883
|
+
var i, a;
|
|
54884
|
+
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 };
|
|
54885
|
+
},
|
|
54877
54886
|
pageUpdate() {
|
|
54878
54887
|
this.$emit("updated-page-core");
|
|
54879
54888
|
},
|
|
@@ -55364,7 +55373,7 @@ var Hie = function() {
|
|
|
55364
55373
|
Vie,
|
|
55365
55374
|
!1,
|
|
55366
55375
|
null,
|
|
55367
|
-
"
|
|
55376
|
+
"efe159e2",
|
|
55368
55377
|
null,
|
|
55369
55378
|
null
|
|
55370
55379
|
);
|