@processmaker/screen-builder 2.28.0 → 2.28.1-RC4.patch.FOUR.6050
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.common.js +2913 -2704
- package/dist/vue-form-builder.common.js.map +1 -1
- package/dist/vue-form-builder.css +1 -1
- package/dist/vue-form-builder.umd.js +2913 -2704
- package/dist/vue-form-builder.umd.js.map +1 -1
- package/dist/vue-form-builder.umd.min.js +5 -5
- package/dist/vue-form-builder.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/renderer/file-download.vue +1 -1
- package/src/components/renderer/file-upload.vue +6 -3
- package/src/components/renderer/form-button.vue +2 -1
- package/src/components/task.vue +12 -4
- package/src/mixins/extensions/PageNavigate.js +2 -1
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
>
|
|
19
19
|
<uploader-unsupport/>
|
|
20
20
|
|
|
21
|
-
<uploader-drop v-if="
|
|
21
|
+
<uploader-drop v-if="uploaderLoaded" class="form-control-file">
|
|
22
22
|
<p>{{ $t('Drop a file here to upload or') }}</p>
|
|
23
23
|
<uploader-btn
|
|
24
24
|
:attrs="nativeButtonAttrs"
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
<div v-if="nativeFiles[file.id]" style="flex: 1" class="overflow-hidden" :data-cy="file.file_name.replace(/[^0-9a-zA-Z\-]/g, '-')">
|
|
47
47
|
<uploader-file :file="nativeFiles[file.id]" :list="true" />
|
|
48
48
|
</div>
|
|
49
|
-
<div v-else style="flex: 1">
|
|
49
|
+
<div v-else class="text-truncate" :title="file.file_name" style="flex: 1">
|
|
50
50
|
<i class="fas fa-paperclip"/> {{ file.file_name }}
|
|
51
51
|
</div>
|
|
52
52
|
<div class="pt-1">
|
|
@@ -287,10 +287,13 @@ export default {
|
|
|
287
287
|
disabled: false,
|
|
288
288
|
files: [],
|
|
289
289
|
nativeFiles: {},
|
|
290
|
-
uploading: false,
|
|
290
|
+
uploading: false,
|
|
291
291
|
};
|
|
292
292
|
},
|
|
293
293
|
methods: {
|
|
294
|
+
uploaderLoaded() {
|
|
295
|
+
return this.$refs['uploader'];
|
|
296
|
+
},
|
|
294
297
|
setFiles() {
|
|
295
298
|
if (_.isEqual(this.filesData, this.files)) {
|
|
296
299
|
return;
|
|
@@ -38,10 +38,11 @@ export default {
|
|
|
38
38
|
computed: {
|
|
39
39
|
classList() {
|
|
40
40
|
let variant = this.variant || 'primary';
|
|
41
|
+
let isInvalid = this.$store.getters['globalErrorsModule/isValidScreen'] === false;
|
|
41
42
|
return {
|
|
42
43
|
btn: true,
|
|
43
44
|
['btn-' + variant]: true,
|
|
44
|
-
disabled: this.
|
|
45
|
+
disabled: this.event === 'submit' && isInvalid,
|
|
45
46
|
};
|
|
46
47
|
},
|
|
47
48
|
options() {
|
package/src/components/task.vue
CHANGED
|
@@ -327,17 +327,25 @@ export default {
|
|
|
327
327
|
this.redirecting = task.process_request_id;
|
|
328
328
|
this.$emit('redirect', task.id, true);
|
|
329
329
|
return;
|
|
330
|
-
} else
|
|
331
|
-
|
|
332
|
-
this.$emit('completed', this.parentRequest);
|
|
330
|
+
} else {
|
|
331
|
+
this.emitIfTaskCompleted(requestId);
|
|
333
332
|
}
|
|
334
333
|
this.taskId = task.id;
|
|
335
334
|
this.nodeId = task.element_id;
|
|
336
|
-
} else if (this.parentRequest) {
|
|
335
|
+
} else if (this.parentRequest && ['COMPLETED', 'CLOSED'].includes(this.task.process_request.status)) {
|
|
337
336
|
this.$emit('completed', this.parentRequest);
|
|
338
337
|
}
|
|
339
338
|
});
|
|
340
339
|
},
|
|
340
|
+
emitIfTaskCompleted(requestId) {
|
|
341
|
+
// Only emit completed after getting the subprocess tasks and there are no tasks and process is completed
|
|
342
|
+
if (this.task
|
|
343
|
+
&& this.parentRequest
|
|
344
|
+
&& requestId == this.task.process_request_id
|
|
345
|
+
&& this.task.process_request.status === 'COMPLETED') {
|
|
346
|
+
this.$emit('completed', this.parentRequest);
|
|
347
|
+
}
|
|
348
|
+
},
|
|
341
349
|
classHeaderCard(status) {
|
|
342
350
|
let header = 'bg-success';
|
|
343
351
|
switch (status) {
|
|
@@ -4,6 +4,7 @@ export default {
|
|
|
4
4
|
pageNavigate() {},
|
|
5
5
|
pageNavigationProperties({ properties }) {
|
|
6
6
|
properties['@page-navigate'] = 'pageNavigate';
|
|
7
|
+
properties[':validate'] = '$v';
|
|
7
8
|
},
|
|
8
9
|
pageNavigationBuild(screen) {
|
|
9
10
|
this.addData(screen, 'currentPage__', 'this._initialPage');
|
|
@@ -19,7 +20,7 @@ export default {
|
|
|
19
20
|
mounted() {
|
|
20
21
|
this.extensions.push({
|
|
21
22
|
onloadproperties(params) {
|
|
22
|
-
if (params.
|
|
23
|
+
if (params.element.component === 'FormButton' && params.element.config.event === 'pageNavigate') {
|
|
23
24
|
this.pageNavigationProperties(params);
|
|
24
25
|
}
|
|
25
26
|
},
|