@processmaker/screen-builder 2.77.15 → 2.77.17
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 +519 -160
- 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 +519 -160
- package/dist/vue-form-builder.umd.js.map +1 -1
- package/dist/vue-form-builder.umd.min.js +6 -6
- package/dist/vue-form-builder.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/renderer/form-analytics-chart.vue +11 -10
- package/src/mixins/extensions/ValidationRules.js +18 -2
package/package.json
CHANGED
|
@@ -5,21 +5,17 @@
|
|
|
5
5
|
class="card-header d-flex justify-content-between align-items-center"
|
|
6
6
|
>
|
|
7
7
|
<span class="control-text">{{ title }}</span>
|
|
8
|
+
<b-link @click="openExternalLink">
|
|
9
|
+
<i class="fas fa-external-link-alt custom-icon" />
|
|
10
|
+
</b-link>
|
|
8
11
|
</div>
|
|
9
12
|
<div>
|
|
10
13
|
<div class="d-flex flex-wrap p-2">
|
|
11
14
|
<template>
|
|
12
15
|
<b-col cols="12">
|
|
13
|
-
<b-card
|
|
14
|
-
:
|
|
15
|
-
|
|
16
|
-
tag="article"
|
|
17
|
-
class="mb-0 mr-0 card-graphic"
|
|
18
|
-
>
|
|
19
|
-
<b-card-text>
|
|
20
|
-
<b-embed type="iframe" :src="graphic.link"></b-embed>
|
|
21
|
-
</b-card-text>
|
|
22
|
-
</b-card>
|
|
16
|
+
<b-card-text>
|
|
17
|
+
<b-embed type="iframe" :src="graphic.link"></b-embed>
|
|
18
|
+
</b-card-text>
|
|
23
19
|
</b-col>
|
|
24
20
|
</template>
|
|
25
21
|
</div>
|
|
@@ -37,6 +33,11 @@ export default {
|
|
|
37
33
|
graphic: []
|
|
38
34
|
};
|
|
39
35
|
},
|
|
36
|
+
methods: {
|
|
37
|
+
openExternalLink() {
|
|
38
|
+
window.open("/package-analytics-reporting", "_blank");
|
|
39
|
+
}
|
|
40
|
+
},
|
|
40
41
|
watch: {
|
|
41
42
|
listChartOption() {
|
|
42
43
|
if (this.listChartOption && this.listChartOption.name) {
|
|
@@ -17,8 +17,8 @@ export default {
|
|
|
17
17
|
console.error("Invalid variable name");
|
|
18
18
|
}
|
|
19
19
|
} else {
|
|
20
|
-
properties[':class'] = `{ 'form-group--error': showValidationErrors && ${this.checkVariableExists('$v.vdata.' + element.config.name)} && $v.vdata.${element.config.name}.$invalid || showValidationErrors && ${this.checkVariableExists('$v.schema.' + element.config.name)} && $v.schema.${element.config.name}.$invalid }`;
|
|
21
|
-
properties[':error'] = `showValidationErrors && ${this.checkVariableExists('$v.vdata.' + element.config.name)} && validationMessage($v.vdata.${element.config.name}) || showValidationErrors && ${this.checkVariableExists('$v.schema.' + element.config.name)} && validationMessage($v.schema.${element.config.name})`;
|
|
20
|
+
properties[':class'] = `{ 'form-group--error': (showValidationErrors || ${this.fieldValidationShow(element)}) && ${this.checkVariableExists('$v.vdata.' + element.config.name)} && $v.vdata.${element.config.name}.$invalid || (showValidationErrors || ${this.fieldValidationShow(element)}) && ${this.checkVariableExists('$v.schema.' + element.config.name)} && $v.schema.${element.config.name}.$invalid }`;
|
|
21
|
+
properties[':error'] = `(showValidationErrors || ${this.fieldValidationShow(element)}) && ${this.checkVariableExists('$v.vdata.' + element.config.name)} && validationMessage($v.vdata.${element.config.name}) || (showValidationErrors || ${this.fieldValidationShow(element)}) && ${this.checkVariableExists('$v.schema.' + element.config.name)} && validationMessage($v.schema.${element.config.name})`;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
},
|
|
@@ -53,5 +53,21 @@ export default {
|
|
|
53
53
|
}, {str: '', variable: ''});
|
|
54
54
|
return check.str;
|
|
55
55
|
},
|
|
56
|
+
fieldValidationShow (element) {
|
|
57
|
+
let showError = true;
|
|
58
|
+
if (element.config && element.config.validation) {
|
|
59
|
+
const validationHidden = ['Required', 'Required if'];
|
|
60
|
+
if (Array.isArray(element.config.validation)) {
|
|
61
|
+
element.config.validation.forEach((validation) => {
|
|
62
|
+
if (validationHidden.includes(validation.content)) {
|
|
63
|
+
showError = false;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
} else {
|
|
67
|
+
showError = validationHidden.includes(element.config.validation);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
return showError;
|
|
71
|
+
}
|
|
56
72
|
},
|
|
57
73
|
};
|