@processmaker/screen-builder 3.0.6 → 3.0.7
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.es.js +1044 -1036
- 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/renderer/form-collection-record-control.vue +10 -4
- package/src/mixins/Clipboard.js +2 -1
package/package.json
CHANGED
|
@@ -62,7 +62,8 @@ export default {
|
|
|
62
62
|
hasMustache: false,
|
|
63
63
|
flagDraft: {},
|
|
64
64
|
taskDraft: {},
|
|
65
|
-
enableDraft: true
|
|
65
|
+
enableDraft: true,
|
|
66
|
+
defaultColumnsRecordId: 1
|
|
66
67
|
};
|
|
67
68
|
},
|
|
68
69
|
computed: {
|
|
@@ -80,7 +81,6 @@ export default {
|
|
|
80
81
|
Object.keys(data).forEach((variable) => {
|
|
81
82
|
this.validationData && this.$set(this.validationData, variable, data[variable]);
|
|
82
83
|
});
|
|
83
|
-
|
|
84
84
|
if (this.collection) {
|
|
85
85
|
this.$set(this.collection, 'data', Array.isArray(data) ? data : [data]);
|
|
86
86
|
this.$set(this.collection, 'screen', this.screenCollectionId);
|
|
@@ -140,7 +140,6 @@ export default {
|
|
|
140
140
|
this.customCSS = null;
|
|
141
141
|
this.watchers = [];
|
|
142
142
|
this.screenTitle = null;
|
|
143
|
-
|
|
144
143
|
if (id) {
|
|
145
144
|
this.$dataProvider.getScreen(id).then((response) => {
|
|
146
145
|
this.config = response.data.config;
|
|
@@ -212,6 +211,9 @@ export default {
|
|
|
212
211
|
collection(collection) {
|
|
213
212
|
if(collection) {
|
|
214
213
|
this.selCollectionId = collection.collectionId;
|
|
214
|
+
const currentData = this.localData;
|
|
215
|
+
this.$set(collection, 'data', Array.isArray(currentData) ? currentData : [currentData]);
|
|
216
|
+
this.$set(collection, 'screen', this.screenCollectionId);
|
|
215
217
|
}
|
|
216
218
|
},
|
|
217
219
|
record(record) {
|
|
@@ -240,7 +242,11 @@ export default {
|
|
|
240
242
|
});
|
|
241
243
|
|
|
242
244
|
if (this.collection && this.record) {
|
|
243
|
-
this.
|
|
245
|
+
const recordId = this.isMustache(this.record) ? this.defaultColumnsRecordId : this.record;
|
|
246
|
+
if(this.isMustache(this.record)) {
|
|
247
|
+
this.hasMustache = true;
|
|
248
|
+
}
|
|
249
|
+
this.loadRecordCollection(this.collection.collectionId, recordId, this.collectionmode.modeId);
|
|
244
250
|
}
|
|
245
251
|
},
|
|
246
252
|
};
|
package/src/mixins/Clipboard.js
CHANGED
|
@@ -170,9 +170,10 @@ export default {
|
|
|
170
170
|
}
|
|
171
171
|
);
|
|
172
172
|
if (confirm) {
|
|
173
|
-
this.clipboardPage.items = [];
|
|
174
173
|
this.$store.dispatch("clipboardModule/clearClipboard");
|
|
175
174
|
this.$root.$emit('update-clipboard');
|
|
175
|
+
// Update the clipboard page with the new clipboard items
|
|
176
|
+
this.clipboardPage.items = this.$store.getters["clipboardModule/clipboardItems"];
|
|
176
177
|
}
|
|
177
178
|
},
|
|
178
179
|
|