@processmaker/screen-builder 2.83.3 → 2.83.5
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 +29 -9
- 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/components/renderer/file-upload.vue +12 -1
- package/src/components/renderer/form-empty-table.vue +1 -1
- package/src/components/renderer/form-requests.vue +6 -1
- package/src/components/renderer/form-tasks.vue +6 -1
- package/src/main.js +5 -1
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
{{ $t('File uploads are unavailable in preview mode.') }}
|
|
6
6
|
</b-card>
|
|
7
7
|
<uploader
|
|
8
|
-
v-
|
|
8
|
+
v-if="!inPreviewMode && showComponent"
|
|
9
9
|
:options="options"
|
|
10
10
|
:attrs="attrs"
|
|
11
11
|
ref="uploader"
|
|
@@ -106,6 +106,10 @@ export default {
|
|
|
106
106
|
|
|
107
107
|
this.$root.$on('removed-loop',
|
|
108
108
|
(loop, removed) => this.listenRemovedLoop(loop, removed));
|
|
109
|
+
|
|
110
|
+
window.ProcessMaker.EventBus.$on("modal-shown", () => {
|
|
111
|
+
this.clearFiles();
|
|
112
|
+
});
|
|
109
113
|
|
|
110
114
|
this.removeDefaultClasses();
|
|
111
115
|
|
|
@@ -297,9 +301,16 @@ export default {
|
|
|
297
301
|
nativeFiles: {},
|
|
298
302
|
uploading: false,
|
|
299
303
|
invalidFile: false,
|
|
304
|
+
showComponent: true,
|
|
300
305
|
};
|
|
301
306
|
},
|
|
302
307
|
methods: {
|
|
308
|
+
clearFiles() {
|
|
309
|
+
this.showComponent = false;
|
|
310
|
+
this.$nextTick(() => {
|
|
311
|
+
this.showComponent = true;
|
|
312
|
+
});
|
|
313
|
+
},
|
|
303
314
|
uploaderLoaded() {
|
|
304
315
|
return this.$refs['uploader'];
|
|
305
316
|
},
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
</vuetable>
|
|
49
49
|
</div>
|
|
50
50
|
<div v-else>
|
|
51
|
-
<formEmpty link="Requests" title="No Requests to Show" url="
|
|
51
|
+
<formEmpty link="Requests" title="No Requests to Show" :url="noDataUrl" />
|
|
52
52
|
</div>
|
|
53
53
|
</template>
|
|
54
54
|
|
|
@@ -81,6 +81,11 @@ export default {
|
|
|
81
81
|
]
|
|
82
82
|
};
|
|
83
83
|
},
|
|
84
|
+
computed: {
|
|
85
|
+
noDataUrl() {
|
|
86
|
+
return `${window.ProcessMaker?.app?.url}/requests`;
|
|
87
|
+
}
|
|
88
|
+
},
|
|
84
89
|
mounted() {
|
|
85
90
|
this.setFields();
|
|
86
91
|
this.pmql = `requester = "${Processmaker.user.username}"`;
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
<component :is="tasksPreview" ref="preview-sidebar" />
|
|
47
47
|
</div>
|
|
48
48
|
<div v-else>
|
|
49
|
-
<formEmpty link="Tasks" title="No tasks in sight" url="
|
|
49
|
+
<formEmpty link="Tasks" title="No tasks in sight" :url="noDataUrl" />
|
|
50
50
|
</div>
|
|
51
51
|
</template>
|
|
52
52
|
|
|
@@ -82,6 +82,11 @@ export default {
|
|
|
82
82
|
(window.SharedComponents && window.SharedComponents.TasksHome) || {}
|
|
83
83
|
};
|
|
84
84
|
},
|
|
85
|
+
computed: {
|
|
86
|
+
noDataUrl() {
|
|
87
|
+
return `${window.ProcessMaker?.app?.url}/tasks`;
|
|
88
|
+
}
|
|
89
|
+
},
|
|
85
90
|
mounted() {
|
|
86
91
|
this.setFields();
|
|
87
92
|
this.pmql = `(user_id = ${ProcessMaker.user.id}) AND (status = "In Progress")`;
|
package/src/main.js
CHANGED
|
@@ -110,13 +110,17 @@ const cacheEnabled = document.head.querySelector(
|
|
|
110
110
|
const cacheTimeout = document.head.querySelector(
|
|
111
111
|
"meta[name='screen-cache-timeout']"
|
|
112
112
|
);
|
|
113
|
-
|
|
113
|
+
// Get the current protocol, hostname, and port
|
|
114
|
+
const { protocol, hostname, port } = window.location;
|
|
114
115
|
window.ProcessMaker = {
|
|
115
116
|
isStub: true,
|
|
116
117
|
user: {
|
|
117
118
|
id: 1,
|
|
118
119
|
lang: "en"
|
|
119
120
|
},
|
|
121
|
+
app: {
|
|
122
|
+
url: `${protocol}//${hostname}:${port}` // Create a URL with the current port
|
|
123
|
+
},
|
|
120
124
|
apiClient: {
|
|
121
125
|
create() {
|
|
122
126
|
return this;
|