@processmaker/screen-builder 3.5.0 → 3.5.2
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 +39 -17
- 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/collection-display-mode.vue +22 -8
- package/src/components/inspector/collection-records-list.vue +10 -6
- package/src/components/inspector/options-list.vue +0 -8
- package/src/components/renderer/form-collection-record-control.vue +7 -2
- package/src/components/task.vue +8 -1
|
@@ -46889,7 +46889,11 @@ const yp = L_.exports, yg = [
|
|
|
46889
46889
|
watch: {
|
|
46890
46890
|
value: {
|
|
46891
46891
|
handler(t) {
|
|
46892
|
-
|
|
46892
|
+
if (!t) {
|
|
46893
|
+
this.collectionId = null;
|
|
46894
|
+
return;
|
|
46895
|
+
}
|
|
46896
|
+
yg.forEach((e) => this[e] = t[e]);
|
|
46893
46897
|
},
|
|
46894
46898
|
immediate: !0
|
|
46895
46899
|
},
|
|
@@ -47021,7 +47025,8 @@ const V_ = typeof window > "u" ? global : window, Xc = [
|
|
|
47021
47025
|
flagDraft: {},
|
|
47022
47026
|
taskDraft: {},
|
|
47023
47027
|
enableDraft: !0,
|
|
47024
|
-
defaultColumnsRecordId: 1
|
|
47028
|
+
defaultColumnsRecordId: 1,
|
|
47029
|
+
defaultCollectionMode: "Edit"
|
|
47025
47030
|
};
|
|
47026
47031
|
},
|
|
47027
47032
|
computed: {
|
|
@@ -47071,14 +47076,17 @@ const V_ = typeof window > "u" ? global : window, Xc = [
|
|
|
47071
47076
|
}
|
|
47072
47077
|
},
|
|
47073
47078
|
mounted() {
|
|
47074
|
-
|
|
47075
|
-
|
|
47079
|
+
var t;
|
|
47080
|
+
if (this.$root.$on("taskdraft-input", (e) => {
|
|
47081
|
+
this.taskDraft = e;
|
|
47076
47082
|
}), this.collection && this.record) {
|
|
47077
|
-
const
|
|
47078
|
-
this.isMustache(this.record) && (this.hasMustache = !0)
|
|
47083
|
+
const e = this.isMustache(this.record) ? this.defaultColumnsRecordId : this.record;
|
|
47084
|
+
this.isMustache(this.record) && (this.hasMustache = !0);
|
|
47085
|
+
const r = ((t = this.collectionmode) == null ? void 0 : t.modeId) ?? this.defaultCollectionMode;
|
|
47086
|
+
this.loadRecordCollection(
|
|
47079
47087
|
this.collection.collectionId,
|
|
47080
|
-
|
|
47081
|
-
|
|
47088
|
+
e,
|
|
47089
|
+
r
|
|
47082
47090
|
);
|
|
47083
47091
|
}
|
|
47084
47092
|
},
|
|
@@ -47587,18 +47595,35 @@ const n$ = a$.exports, s$ = {
|
|
|
47587
47595
|
data() {
|
|
47588
47596
|
return {
|
|
47589
47597
|
mode: "",
|
|
47590
|
-
submitCollectionCheck: null
|
|
47598
|
+
submitCollectionCheck: null,
|
|
47599
|
+
defaultMode: "Edit"
|
|
47591
47600
|
};
|
|
47592
47601
|
},
|
|
47593
47602
|
computed: {
|
|
47594
47603
|
showCollectionCheck() {
|
|
47595
|
-
return this.mode ===
|
|
47604
|
+
return this.mode === this.defaultMode;
|
|
47605
|
+
}
|
|
47606
|
+
},
|
|
47607
|
+
watch: {
|
|
47608
|
+
value: {
|
|
47609
|
+
handler(t) {
|
|
47610
|
+
this.updateModeAndCollectionCheck(t);
|
|
47611
|
+
},
|
|
47612
|
+
deep: !0
|
|
47596
47613
|
}
|
|
47597
47614
|
},
|
|
47598
47615
|
mounted() {
|
|
47599
|
-
this.
|
|
47616
|
+
this.updateModeAndCollectionCheck(this.value);
|
|
47600
47617
|
},
|
|
47601
47618
|
methods: {
|
|
47619
|
+
/**
|
|
47620
|
+
* Update the mode and collection check value
|
|
47621
|
+
*
|
|
47622
|
+
* @param {Object} value
|
|
47623
|
+
*/
|
|
47624
|
+
updateModeAndCollectionCheck(t) {
|
|
47625
|
+
this.mode = t.modeId || this.defaultMode, this.submitCollectionCheck = t.submitCollectionCheck ?? !0;
|
|
47626
|
+
},
|
|
47602
47627
|
saveFields() {
|
|
47603
47628
|
this.$emit("input", {
|
|
47604
47629
|
modeId: this.mode,
|
|
@@ -48873,9 +48898,6 @@ const gee = {
|
|
|
48873
48898
|
},
|
|
48874
48899
|
endPointList() {
|
|
48875
48900
|
this.endPointList.some((t) => t.value === this.selectedEndPoint) || this.endPointList.length > 0 && (this.selectedEndPoint = this.endPointList[0].value);
|
|
48876
|
-
},
|
|
48877
|
-
renderAs(t) {
|
|
48878
|
-
this.dataSource === "provideData" && t !== "dropdown" && (this.optionsListExtra = this.optionsList.map((e) => ({ ...e, [this.ariaLabelField]: "" })));
|
|
48879
48901
|
}
|
|
48880
48902
|
},
|
|
48881
48903
|
computed: {
|
|
@@ -49151,7 +49173,7 @@ var bee = function() {
|
|
|
49151
49173
|
yee,
|
|
49152
49174
|
!1,
|
|
49153
49175
|
null,
|
|
49154
|
-
"
|
|
49176
|
+
"fbac63ef",
|
|
49155
49177
|
null,
|
|
49156
49178
|
null
|
|
49157
49179
|
);
|
|
@@ -53865,7 +53887,7 @@ const Xre = () => new Promise((t) => {
|
|
|
53865
53887
|
window.location.href = await this.getDestinationUrl();
|
|
53866
53888
|
return;
|
|
53867
53889
|
}
|
|
53868
|
-
this.nodeId = t.params[0].nodeId, this.taskId = t.params[0].tokenId, this.reload();
|
|
53890
|
+
this.nodeId = t.params[0].nodeId, this.taskId = t.params[0].tokenId, this.renderComponent === "ConversationalForm" && (window.location.href = `/tasks/${this.taskId}/edit`), this.reload();
|
|
53869
53891
|
}
|
|
53870
53892
|
},
|
|
53871
53893
|
/**
|
|
@@ -53979,7 +54001,7 @@ var Ure = function() {
|
|
|
53979
54001
|
Gre,
|
|
53980
54002
|
!1,
|
|
53981
54003
|
null,
|
|
53982
|
-
"
|
|
54004
|
+
"7cfa615a",
|
|
53983
54005
|
null,
|
|
53984
54006
|
null
|
|
53985
54007
|
);
|