@processmaker/screen-builder 3.8.26 → 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.
- package/dist/vue-form-builder.css +1 -1
- package/dist/vue-form-builder.es.js +23 -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 +33 -2
- package/src/components/task.vue +8 -2
|
@@ -49563,7 +49563,10 @@ const ete = {
|
|
|
49563
49563
|
value: "object"
|
|
49564
49564
|
}
|
|
49565
49565
|
],
|
|
49566
|
-
valueTypeReturned: ""
|
|
49566
|
+
valueTypeReturned: "",
|
|
49567
|
+
assetType: null,
|
|
49568
|
+
assetTypeResolved: !1,
|
|
49569
|
+
screenId: null
|
|
49567
49570
|
};
|
|
49568
49571
|
},
|
|
49569
49572
|
watch: {
|
|
@@ -49672,13 +49675,21 @@ const ete = {
|
|
|
49672
49675
|
monacoMounted(t) {
|
|
49673
49676
|
t.getAction("editor.action.formatDocument").run();
|
|
49674
49677
|
},
|
|
49675
|
-
|
|
49676
|
-
this
|
|
49677
|
-
|
|
49678
|
+
resolveAssetType() {
|
|
49679
|
+
if (this.assetTypeResolved)
|
|
49680
|
+
return Promise.resolve(this.assetType);
|
|
49681
|
+
const t = window.location.pathname.match(/screen-builder\/(\d+)\/edit/);
|
|
49682
|
+
return t ? (this.screenId = t[1], this.$dataProvider.get(`/screens/${this.screenId}`).then((e) => (this.assetType = e.data.asset_type || null, this.assetTypeResolved = !0, this.assetType)).catch(() => (this.assetTypeResolved = !0, this.assetType))) : (this.assetTypeResolved = !0, Promise.resolve(this.assetType));
|
|
49683
|
+
},
|
|
49684
|
+
async getDataSourceList() {
|
|
49685
|
+
await this.resolveAssetType();
|
|
49686
|
+
const t = {};
|
|
49687
|
+
this.assetType && (t.asset_type = this.assetType === "PM_BLOCK" ? "all" : this.assetType), this.$dataProvider.get("/data_sources", { params: t }).then((e) => {
|
|
49688
|
+
let r = e.data.data;
|
|
49678
49689
|
this.dataSourcesList = [{
|
|
49679
49690
|
value: null,
|
|
49680
49691
|
text: this.$t("Select...")
|
|
49681
|
-
}].concat(
|
|
49692
|
+
}].concat(r.map(this.convertToSelectOptions)), this.setEndpointList(r);
|
|
49682
49693
|
});
|
|
49683
49694
|
},
|
|
49684
49695
|
setEndpointList(t) {
|
|
@@ -49883,7 +49894,7 @@ var tte = function() {
|
|
|
49883
49894
|
rte,
|
|
49884
49895
|
!1,
|
|
49885
49896
|
null,
|
|
49886
|
-
"
|
|
49897
|
+
"c6e4d04a",
|
|
49887
49898
|
null,
|
|
49888
49899
|
null
|
|
49889
49900
|
);
|
|
@@ -54857,12 +54868,15 @@ const Bie = () => new Promise((t) => {
|
|
|
54857
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);
|
|
54858
54869
|
},
|
|
54859
54870
|
prepareTask() {
|
|
54860
|
-
(!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 =
|
|
54861
|
-
{},
|
|
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(
|
|
54862
54872
|
this.requestData,
|
|
54863
54873
|
this.task.draft.data
|
|
54864
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;
|
|
54865
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
|
+
},
|
|
54866
54880
|
pageUpdate() {
|
|
54867
54881
|
this.$emit("updated-page-core");
|
|
54868
54882
|
},
|
|
@@ -55353,7 +55367,7 @@ var Hie = function() {
|
|
|
55353
55367
|
Vie,
|
|
55354
55368
|
!1,
|
|
55355
55369
|
null,
|
|
55356
|
-
"
|
|
55370
|
+
"efe159e2",
|
|
55357
55371
|
null,
|
|
55358
55372
|
null
|
|
55359
55373
|
);
|