@processmaker/screen-builder 3.8.16 → 3.8.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.css +1 -1
- package/dist/vue-form-builder.es.js +19 -27
- package/dist/vue-form-builder.es.js.map +1 -1
- package/dist/vue-form-builder.umd.js +2 -2
- package/dist/vue-form-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/accordions.js +0 -20
- package/src/components/inspector/variables-to-submit.vue +17 -0
- package/src/components/task.vue +2 -15
package/package.json
CHANGED
|
@@ -70,26 +70,6 @@ export default [
|
|
|
70
70
|
"defaultValue",
|
|
71
71
|
"showForDesktop",
|
|
72
72
|
{name: "customFormatter", showFor: "FormInput"},
|
|
73
|
-
{name: "ariaLabel", showFor: "FormInput"},
|
|
74
|
-
{name: "ariaLabel", showFor: "FormSelectList"},
|
|
75
|
-
{name: "ariaLabel", showFor: "FormDatePicker"},
|
|
76
|
-
{name: "ariaLabel", showFor: "FormCheckbox"},
|
|
77
|
-
{name: "ariaLabel", showFor: "FormDatePicker"},
|
|
78
|
-
{name: "ariaLabel", showFor: "FileUpload"},
|
|
79
|
-
{name: "ariaLabel", showFor: "FileDownload"},
|
|
80
|
-
{name: "ariaLabel", showFor: "FormSelectList"},
|
|
81
|
-
{name: "ariaLabel", showFor: "FormButton"},
|
|
82
|
-
{name: "ariaLabel", showFor: "FormTextArea"},
|
|
83
|
-
{name: "tabindex", showFor: "FormInput"},
|
|
84
|
-
{name: "tabindex", showFor: "FormSelectList"},
|
|
85
|
-
{name: "tabindex", showFor: "FormDatePicker"},
|
|
86
|
-
{name: "tabindex", showFor: "FormCheckbox"},
|
|
87
|
-
{name: "tabindex", showFor: "FormDatePicker"},
|
|
88
|
-
{name: "tabindex", showFor: "FileUpload"},
|
|
89
|
-
{name: "tabindex", showFor: "FileDownload"},
|
|
90
|
-
{name: "tabindex", showFor: "FormSelectList"},
|
|
91
|
-
{name: "tabindex", showFor: "FormButton"},
|
|
92
|
-
{name: "tabindex", showFor: "FormTextArea"},
|
|
93
73
|
{name: "encryptedConfig", showFor: "FormInput"},
|
|
94
74
|
{name: "variablesToSubmit", showFor: "FormButton"},
|
|
95
75
|
],
|
|
@@ -392,6 +392,23 @@ export default {
|
|
|
392
392
|
* Single Responsibility: Only handles variable name extraction
|
|
393
393
|
*/
|
|
394
394
|
extractVariableFromItem(item, variables) {
|
|
395
|
+
// Components that don't have submittable variables
|
|
396
|
+
const displayOnlyComponents = [
|
|
397
|
+
'FormNestedScreen',
|
|
398
|
+
'FormHtmlViewer',
|
|
399
|
+
'FormMultiColumn',
|
|
400
|
+
'FormCollectionRecordControl',
|
|
401
|
+
'FormCollectionViewControl',
|
|
402
|
+
'FormAvatar',
|
|
403
|
+
'FormListTable',
|
|
404
|
+
'FormAnalyticsChart',
|
|
405
|
+
'CaseProgressBar',
|
|
406
|
+
'FileDownload',
|
|
407
|
+
];
|
|
408
|
+
// Skip display-only and container components that don't have submittable variables
|
|
409
|
+
if (displayOnlyComponents.includes(item.component)) {
|
|
410
|
+
return;
|
|
411
|
+
}
|
|
395
412
|
const variableName = item.config?.name;
|
|
396
413
|
if (variableName && !variableName.startsWith('_parent.')) {
|
|
397
414
|
variables[variableName] = null;
|
package/src/components/task.vue
CHANGED
|
@@ -692,7 +692,7 @@ export default {
|
|
|
692
692
|
return null;
|
|
693
693
|
}
|
|
694
694
|
},
|
|
695
|
-
|
|
695
|
+
|
|
696
696
|
/**
|
|
697
697
|
* Handles redirection upon process completion, considering destination type and user task validation.
|
|
698
698
|
* @async
|
|
@@ -831,20 +831,7 @@ export default {
|
|
|
831
831
|
* @param {Object} data - The event data received from the socket listener.
|
|
832
832
|
*/
|
|
833
833
|
handleProcessUpdate(data) {
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
// If the activity is completed and there is an element destination, set the element destination to the task
|
|
837
|
-
if (
|
|
838
|
-
event === "ACTIVITY_COMPLETED" &&
|
|
839
|
-
this.task.id === tokenId &&
|
|
840
|
-
elementDestination
|
|
841
|
-
) {
|
|
842
|
-
this.task.elementDestination = elementDestination;
|
|
843
|
-
// update allow_interstitial based on the element destination change after the submit
|
|
844
|
-
this.task.allow_interstitial = elementDestination.type === "displayNextAssignedTask";
|
|
845
|
-
}
|
|
846
|
-
|
|
847
|
-
if (event === 'ACTIVITY_EXCEPTION') {
|
|
834
|
+
if (data.event === 'ACTIVITY_EXCEPTION') {
|
|
848
835
|
this.$emit('error', this.requestId);
|
|
849
836
|
window.location.href = `/requests/${this.requestId}`;
|
|
850
837
|
}
|