@processmaker/screen-builder 2.5.27-alpha.1 → 2.5.27
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 +5621 -5423
- package/dist/vue-form-builder.common.js.map +1 -1
- package/dist/vue-form-builder.umd.js +5621 -5423
- package/dist/vue-form-builder.umd.js.map +1 -1
- package/dist/vue-form-builder.umd.min.js +49 -49
- package/dist/vue-form-builder.umd.min.js.map +1 -1
- package/package-lock.json +4 -4
- package/package.json +3 -3
- package/src/.DS_Store +0 -0
- package/src/mixins/ScreenBase.js +5 -1
- package/src/mixins/extensions/DataManager.js +1 -1
package/package-lock.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@processmaker/screen-builder",
|
|
3
|
-
"version": "2.5.27
|
|
3
|
+
"version": "2.5.27",
|
|
4
4
|
"lockfileVersion": 1,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"dependencies": {
|
|
@@ -2165,9 +2165,9 @@
|
|
|
2165
2165
|
}
|
|
2166
2166
|
},
|
|
2167
2167
|
"@processmaker/vue-form-elements": {
|
|
2168
|
-
"version": "0.18.4-
|
|
2169
|
-
"resolved": "https://registry.npmjs.org/@processmaker/vue-form-elements/-/vue-form-elements-0.18.4-
|
|
2170
|
-
"integrity": "sha512-
|
|
2168
|
+
"version": "0.18.4-P",
|
|
2169
|
+
"resolved": "https://registry.npmjs.org/@processmaker/vue-form-elements/-/vue-form-elements-0.18.4-P.tgz",
|
|
2170
|
+
"integrity": "sha512-atIRCB1bdMM2AzoaRJ0RvY6cslUFwwG4V5WWLg08y5jcuaVQS83N6BRPwVCkx0pPt5Wxw09bsYU3bf8ybX9VIw==",
|
|
2171
2171
|
"dev": true,
|
|
2172
2172
|
"requires": {
|
|
2173
2173
|
"@tinymce/tinymce-vue": "2.0.0",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@processmaker/screen-builder",
|
|
3
|
-
"version": "2.5.27
|
|
3
|
+
"version": "2.5.27",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"serve": "vue-cli-service serve",
|
|
6
6
|
"build": "vue-cli-service build",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@cypress/code-coverage": "^3.8.1",
|
|
45
45
|
"@fortawesome/fontawesome-free": "^5.6.1",
|
|
46
46
|
"@panter/vue-i18next": "^0.15.2",
|
|
47
|
-
"@processmaker/vue-form-elements": "0.18.4-
|
|
47
|
+
"@processmaker/vue-form-elements": "0.18.4-P",
|
|
48
48
|
"@vue/cli-plugin-babel": "^3.6.0",
|
|
49
49
|
"@vue/cli-plugin-e2e-cypress": "^4.0.3",
|
|
50
50
|
"@vue/cli-plugin-eslint": "^3.6.0",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
},
|
|
84
84
|
"peerDependencies": {
|
|
85
85
|
"@panter/vue-i18next": "^0.15.0",
|
|
86
|
-
"@processmaker/vue-form-elements": "0.18.4-
|
|
86
|
+
"@processmaker/vue-form-elements": "0.18.4-P",
|
|
87
87
|
"i18next": "^15.0.8",
|
|
88
88
|
"vue": "^2.6.12",
|
|
89
89
|
"vuex": "^3.1.1"
|
package/src/.DS_Store
ADDED
|
Binary file
|
package/src/mixins/ScreenBase.js
CHANGED
|
@@ -108,7 +108,7 @@ export default {
|
|
|
108
108
|
},
|
|
109
109
|
});
|
|
110
110
|
},
|
|
111
|
-
initialValue(component, dataFormat) {
|
|
111
|
+
initialValue(component, dataFormat, config) {
|
|
112
112
|
let value = null;
|
|
113
113
|
if (component === 'FormInput') {
|
|
114
114
|
if (stringFormats.includes(dataFormat)) {
|
|
@@ -118,6 +118,10 @@ export default {
|
|
|
118
118
|
}
|
|
119
119
|
} else if (component === 'FormTextArea') {
|
|
120
120
|
value = '';
|
|
121
|
+
} else if (component === 'FormSelectList' && config.options.allowMultiSelect) {
|
|
122
|
+
value = [];
|
|
123
|
+
} else if (component === 'FormSelectList' && !config.options.allowMultiSelect) {
|
|
124
|
+
value = null;
|
|
121
125
|
}
|
|
122
126
|
return value;
|
|
123
127
|
},
|
|
@@ -10,7 +10,7 @@ export default {
|
|
|
10
10
|
this.addData(screen, v.name, `
|
|
11
11
|
this.getValue(${JSON.stringify(v.name)}, this.vdata) ||
|
|
12
12
|
this.getValue(${JSON.stringify(v.name)}, data) ||
|
|
13
|
-
this.initialValue('${component}', '${dataFormat}')
|
|
13
|
+
this.initialValue('${component}', '${dataFormat}', ${JSON.stringify(v.config)})
|
|
14
14
|
`);
|
|
15
15
|
this.addWatch(screen, v.name, `this.setValue(${JSON.stringify(v.name)}, value, this.vdata);`);
|
|
16
16
|
this.addWatch(screen, `vdata.${v.name}`, `this.${v.name} = this.vdata.${v.name};`);
|