@processmaker/screen-builder 3.8.26 → 3.8.27
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 +17 -6
- package/dist/vue-form-builder.es.js.map +1 -1
- package/dist/vue-form-builder.umd.js +1 -1
- package/dist/vue-form-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/inspector/options-list.vue +33 -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
|
);
|