@processmaker/screen-builder 2.30.1 → 2.50.0
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/.eslintrc.js +36 -57
- package/dist/vue-form-builder.common.js +1136 -1101
- package/dist/vue-form-builder.common.js.map +1 -1
- package/dist/vue-form-builder.umd.js +1136 -1101
- package/dist/vue-form-builder.umd.js.map +1 -1
- package/dist/vue-form-builder.umd.min.js +2 -2
- package/dist/vue-form-builder.umd.min.js.map +1 -1
- package/package.json +10 -5
- package/src/.DS_Store +0 -0
- package/src/App.vue +2 -9
- package/src/components/renderer/file-download.vue +5 -0
- package/src/components/renderer/form-masked-input.vue +1 -1
- package/src/components/task.vue +1 -8
- package/src/mixins/ScreenBase.js +2 -0
- package/src/mixins/computedFields.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@processmaker/screen-builder",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.50.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"serve": "vue-cli-service serve",
|
|
6
6
|
"build": "vue-cli-service build",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@cypress/code-coverage": "^3.8.1",
|
|
39
39
|
"@fortawesome/fontawesome-free": "^5.6.1",
|
|
40
40
|
"@panter/vue-i18next": "^0.15.2",
|
|
41
|
-
"@processmaker/vue-form-elements": "0.
|
|
41
|
+
"@processmaker/vue-form-elements": "0.40.0",
|
|
42
42
|
"@processmaker/vue-multiselect": "^2.2.0",
|
|
43
43
|
"@vue/cli-plugin-babel": "^3.6.0",
|
|
44
44
|
"@vue/cli-plugin-e2e-cypress": "^4.0.3",
|
|
@@ -54,9 +54,13 @@
|
|
|
54
54
|
"css-tree": "^1.0.0-alpha.29",
|
|
55
55
|
"cypress": "^3.8.0",
|
|
56
56
|
"cypress-wait-until": "^1.7.1",
|
|
57
|
-
"eslint": "^
|
|
57
|
+
"eslint": "^8.21.0",
|
|
58
|
+
"eslint-config-airbnb-base": "^15.0.0",
|
|
59
|
+
"eslint-config-prettier": "^8.5.0",
|
|
60
|
+
"eslint-plugin-import": "^2.26.0",
|
|
58
61
|
"eslint-plugin-jest": "^22.4.1",
|
|
59
|
-
"eslint-plugin-
|
|
62
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
63
|
+
"eslint-plugin-vue": "^9.3.0",
|
|
60
64
|
"expr-eval": "^2.0.2",
|
|
61
65
|
"i18next": "^15.0.8",
|
|
62
66
|
"identity-obj-proxy": "^3.0.0",
|
|
@@ -64,6 +68,7 @@
|
|
|
64
68
|
"monaco-editor-webpack-plugin": "~1.7.0",
|
|
65
69
|
"mustache": "^3.0.1",
|
|
66
70
|
"nyc": "^15.1.0",
|
|
71
|
+
"prettier": "2.7.1",
|
|
67
72
|
"sass": "^1.53.0",
|
|
68
73
|
"sass-loader": "^10.3.1",
|
|
69
74
|
"v-calendar": "^0.9.7",
|
|
@@ -82,7 +87,7 @@
|
|
|
82
87
|
},
|
|
83
88
|
"peerDependencies": {
|
|
84
89
|
"@panter/vue-i18next": "^0.15.0",
|
|
85
|
-
"@processmaker/vue-form-elements": "0.
|
|
90
|
+
"@processmaker/vue-form-elements": "0.40.0",
|
|
86
91
|
"i18next": "^15.0.8",
|
|
87
92
|
"vue": "^2.6.12",
|
|
88
93
|
"vuex": "^3.1.1"
|
package/src/.DS_Store
CHANGED
|
Binary file
|
package/src/App.vue
CHANGED
|
@@ -74,13 +74,6 @@
|
|
|
74
74
|
<!-- Preview -->
|
|
75
75
|
<b-row class="h-100 m-0" id="preview" v-show="displayPreview" data-cy="preview">
|
|
76
76
|
<b-col class="overflow-auto h-100" data-cy="preview-content">
|
|
77
|
-
<div v-if="$store.getters['globalErrorsModule/isValidScreen'] === false" class="alert alert-danger mt-3">
|
|
78
|
-
<i class="fas fa-exclamation-circle"/>
|
|
79
|
-
{{ $store.getters['globalErrorsModule/getErrorMessage'] }}
|
|
80
|
-
<button type="button" class="close" aria-label="Close" @click="$store.dispatch('globalErrorsModule/close')">
|
|
81
|
-
<span aria-hidden="true">×</span>
|
|
82
|
-
</button>
|
|
83
|
-
</div>
|
|
84
77
|
<vue-form-renderer ref="renderer"
|
|
85
78
|
:key="rendererKey"
|
|
86
79
|
v-model="previewData"
|
|
@@ -458,7 +451,7 @@ export default {
|
|
|
458
451
|
if (customCSS) {
|
|
459
452
|
this.customCSS = customCSS;
|
|
460
453
|
}
|
|
461
|
-
|
|
454
|
+
|
|
462
455
|
if (computed) {
|
|
463
456
|
this.computed = JSON.parse(computed);
|
|
464
457
|
}
|
|
@@ -611,7 +604,7 @@ export default {
|
|
|
611
604
|
.modal-backdrop {
|
|
612
605
|
opacity: 0.5;
|
|
613
606
|
}
|
|
614
|
-
|
|
607
|
+
|
|
615
608
|
.form-group--error {
|
|
616
609
|
animation: none;
|
|
617
610
|
}
|
|
@@ -112,6 +112,11 @@ export default {
|
|
|
112
112
|
requestEndpoint(file) {
|
|
113
113
|
let endpoint = this.endpoint;
|
|
114
114
|
|
|
115
|
+
if (_.has(window, 'PM4ConfigOverrides.useDefaultUrlDownload') && window.PM4ConfigOverrides.useDefaultUrlDownload) {
|
|
116
|
+
// Use default endpoint when coming from a package.
|
|
117
|
+
return `../files/${file.id}/contents`;
|
|
118
|
+
}
|
|
119
|
+
|
|
115
120
|
if (_.has(window, 'PM4ConfigOverrides.getFileEndpoint')) {
|
|
116
121
|
endpoint = window.PM4ConfigOverrides.getFileEndpoint;
|
|
117
122
|
return `${endpoint}/${file.id}`;
|
package/src/components/task.vue
CHANGED
|
@@ -8,13 +8,6 @@
|
|
|
8
8
|
<template v-if="screen">
|
|
9
9
|
<div class="card card-body border-top-0 h-100" :class="screenTypeClass">
|
|
10
10
|
<div v-if="renderComponent === 'task-screen'">
|
|
11
|
-
<div v-if="$store.getters['globalErrorsModule/isValidScreen'] === false" class="alert alert-danger mt-3">
|
|
12
|
-
<i class="fas fa-exclamation-circle"/>
|
|
13
|
-
{{ $store.getters['globalErrorsModule/getErrorMessage'] }}
|
|
14
|
-
<button type="button" class="close" aria-label="Close" @click="$store.dispatch('globalErrorsModule/close')">
|
|
15
|
-
<span aria-hidden="true">×</span>
|
|
16
|
-
</button>
|
|
17
|
-
</div>
|
|
18
11
|
<vue-form-renderer
|
|
19
12
|
ref="renderer"
|
|
20
13
|
v-model="requestData"
|
|
@@ -250,7 +243,7 @@ export default {
|
|
|
250
243
|
this.task = response.data;
|
|
251
244
|
this.checkTaskStatus();
|
|
252
245
|
if (window.PM4ConfigOverrides.getScreenEndpoint && window.PM4ConfigOverrides.getScreenEndpoint.includes('tasks/')) {
|
|
253
|
-
const screenPath = window.PM4ConfigOverrides.getScreenEndpoint.split('/');
|
|
246
|
+
const screenPath = window.PM4ConfigOverrides.getScreenEndpoint.split('/');
|
|
254
247
|
screenPath[1] = this.task.id;
|
|
255
248
|
window.PM4ConfigOverrides.getScreenEndpoint = screenPath.join('/');
|
|
256
249
|
}
|
package/src/mixins/ScreenBase.js
CHANGED
|
@@ -111,6 +111,8 @@ export default {
|
|
|
111
111
|
},
|
|
112
112
|
submitForm() {
|
|
113
113
|
if (this.$v.$invalid) {
|
|
114
|
+
let msgError = this.$store.getters['globalErrorsModule/getErrorMessage'];
|
|
115
|
+
window.ProcessMaker.alert(msgError, 'danger');
|
|
114
116
|
//if the form is not valid the data is not emitted
|
|
115
117
|
return;
|
|
116
118
|
}
|
|
@@ -14,7 +14,7 @@ export default {
|
|
|
14
14
|
|
|
15
15
|
const data = new Proxy(Object.assign({}, this), {
|
|
16
16
|
get(data, name) {
|
|
17
|
-
if (data[name] === undefined || !isEqual(data[name]
|
|
17
|
+
if (data[name] === undefined || !isEqual(data[name], self.vdata[name])) {
|
|
18
18
|
return self.vdata[name];
|
|
19
19
|
} else {
|
|
20
20
|
return data[name];
|