@processmaker/screen-builder 2.85.9 → 2.85.11
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 +15 -8
- 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 +11 -3
- package/src/components/renderer/file-upload.vue +1 -6
- package/src/components/renderer/form-input-masked.vue +9 -4
package/package.json
CHANGED
package/src/DataProvider.js
CHANGED
|
@@ -207,10 +207,18 @@ export default {
|
|
|
207
207
|
|
|
208
208
|
deleteFile(id, token = null) {
|
|
209
209
|
let url = `files/${id}`;
|
|
210
|
-
|
|
211
|
-
|
|
210
|
+
|
|
211
|
+
const queryParams = {
|
|
212
|
+
token
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
const taskId = get(window, '_current_task_id', 0);
|
|
216
|
+
|
|
217
|
+
if (taskId) {
|
|
218
|
+
queryParams.task_id = taskId;
|
|
212
219
|
}
|
|
213
|
-
|
|
220
|
+
|
|
221
|
+
return this.delete(url, { params: queryParams });
|
|
214
222
|
},
|
|
215
223
|
|
|
216
224
|
download(url) {
|
|
@@ -116,12 +116,6 @@ export default {
|
|
|
116
116
|
this.setPrefix();
|
|
117
117
|
if (this.$refs['uploader']) {
|
|
118
118
|
this.$refs['uploader'].$forceUpdate();
|
|
119
|
-
// Re-upload stored files;
|
|
120
|
-
// Files disappear when navigating between pages with the Page Navigation component
|
|
121
|
-
if (this.files.length > 0) {
|
|
122
|
-
this.$refs.uploader.uploader.addFiles(this.files);
|
|
123
|
-
this.uploading = false;
|
|
124
|
-
}
|
|
125
119
|
}
|
|
126
120
|
|
|
127
121
|
this.disabled = _.get(window, 'ProcessMaker.isSelfService', false);
|
|
@@ -284,6 +278,7 @@ export default {
|
|
|
284
278
|
data_name: this.name,
|
|
285
279
|
parent: null,
|
|
286
280
|
row_id: null,
|
|
281
|
+
task_id: _.get(window, '_current_task_id', 0),
|
|
287
282
|
},
|
|
288
283
|
testChunks: false,
|
|
289
284
|
// Setup our headers to deal with API calls
|
|
@@ -47,10 +47,7 @@ export default {
|
|
|
47
47
|
},
|
|
48
48
|
},
|
|
49
49
|
currencyValue() {
|
|
50
|
-
this.
|
|
51
|
-
this.currencyInput.inputmask.unmaskedvalue().replace(',', '.')
|
|
52
|
-
);
|
|
53
|
-
this.$emit('input', this.unformattedValue || 0);
|
|
50
|
+
this.handleInput();
|
|
54
51
|
},
|
|
55
52
|
},
|
|
56
53
|
methods: {
|
|
@@ -74,8 +71,16 @@ export default {
|
|
|
74
71
|
// the decimal does not trigger an input event
|
|
75
72
|
if (this.currencyValue !== event.target.value) {
|
|
76
73
|
this.currencyValue = event.target.value;
|
|
74
|
+
} else {
|
|
75
|
+
this.handleInput();
|
|
77
76
|
}
|
|
78
77
|
},
|
|
78
|
+
handleInput() {
|
|
79
|
+
this.unformattedValue = parseFloat(
|
|
80
|
+
this.currencyInput.inputmask.unmaskedvalue().replace(',', '.')
|
|
81
|
+
);
|
|
82
|
+
this.$emit('input', this.unformattedValue || 0);
|
|
83
|
+
}
|
|
79
84
|
},
|
|
80
85
|
mounted() {
|
|
81
86
|
this.loadMasks();
|