@processmaker/screen-builder 2.87.1 → 2.87.2
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 +455 -454
- package/dist/vue-form-builder.es.js.map +1 -1
- package/dist/vue-form-builder.umd.js +4 -4
- package/dist/vue-form-builder.umd.js.map +1 -1
- package/package.json +3 -3
- package/src/DataProvider.js +3 -3
- package/src/components/inspector/options-list.vue +1 -1
- package/src/mixins/ScreenBase.js +1 -0
- package/src/mixins/ValidationRules.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@processmaker/screen-builder",
|
|
3
|
-
"version": "2.87.
|
|
3
|
+
"version": "2.87.2",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"dev": "VITE_COVERAGE=true vite",
|
|
6
6
|
"build": "vite build",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@fortawesome/fontawesome-free": "^5.6.1",
|
|
57
57
|
"@originjs/vite-plugin-commonjs": "^1.0.3",
|
|
58
58
|
"@panter/vue-i18next": "^0.15.2",
|
|
59
|
-
"@processmaker/vue-form-elements": "0.53.
|
|
59
|
+
"@processmaker/vue-form-elements": "0.53.1",
|
|
60
60
|
"@processmaker/vue-multiselect": "2.3.0",
|
|
61
61
|
"@storybook/addon-essentials": "^7.6.13",
|
|
62
62
|
"@storybook/addon-interactions": "^7.6.13",
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
},
|
|
116
116
|
"peerDependencies": {
|
|
117
117
|
"@panter/vue-i18next": "^0.15.0",
|
|
118
|
-
"@processmaker/vue-form-elements": "0.53.
|
|
118
|
+
"@processmaker/vue-form-elements": "0.53.1",
|
|
119
119
|
"i18next": "^15.0.8",
|
|
120
120
|
"vue": "^2.6.12",
|
|
121
121
|
"vuex": "^3.1.1"
|
package/src/DataProvider.js
CHANGED
|
@@ -173,7 +173,7 @@ export default {
|
|
|
173
173
|
* @param {object} params
|
|
174
174
|
* @returns {object}
|
|
175
175
|
*/
|
|
176
|
-
getDataSource(dataSourceId, params) {
|
|
176
|
+
getDataSource(dataSourceId, params, nonce = null) {
|
|
177
177
|
// keep backwards compatibility
|
|
178
178
|
if (
|
|
179
179
|
!window.ProcessMaker.screen.cacheEnabled &&
|
|
@@ -190,7 +190,7 @@ export default {
|
|
|
190
190
|
pmds_data: JSON.stringify(params.data)
|
|
191
191
|
}
|
|
192
192
|
}).then((response) => {
|
|
193
|
-
return response;
|
|
193
|
+
return [response, nonce];
|
|
194
194
|
});
|
|
195
195
|
},
|
|
196
196
|
|
|
@@ -246,7 +246,7 @@ export default {
|
|
|
246
246
|
},
|
|
247
247
|
|
|
248
248
|
getCollectionRecords(collectionId, options, nonce = null) {
|
|
249
|
-
options.useCache = window.ProcessMaker
|
|
249
|
+
options.useCache = window.ProcessMaker?.screen?.cacheEnabled;
|
|
250
250
|
|
|
251
251
|
return this.get(
|
|
252
252
|
`/collections/${collectionId}/records${this.authQueryString()}`,
|
package/src/mixins/ScreenBase.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { helpers } from 'vuelidate/lib/validators';
|
|
2
2
|
import moment from 'moment';
|
|
3
|
-
import { get } from 'lodash';
|
|
3
|
+
import { get, isNil } from 'lodash';
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
6
|
minLength,
|
|
@@ -161,7 +161,7 @@ export const regex = (expression) => helpers.withParams({expression}, (value) =>
|
|
|
161
161
|
});
|
|
162
162
|
|
|
163
163
|
export const required = (value) => {
|
|
164
|
-
return value instanceof Array
|
|
164
|
+
return value instanceof Array ? value.length > 0 : !isNil(value) && value !== '' && value !== false;
|
|
165
165
|
};
|
|
166
166
|
|
|
167
167
|
export const requiredIf = (variable, expected, fieldName) => helpers.withParams({variable, expected}, function(value, data) {
|