@processmaker/screen-builder 3.5.6 → 3.6.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/dist/vue-form-builder.css +1 -1
- package/dist/vue-form-builder.es.js +43 -26
- 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/inspector/options-list.vue +16 -9
- package/src/components/task.vue +7 -0
package/package.json
CHANGED
|
@@ -472,7 +472,6 @@ export default {
|
|
|
472
472
|
editIndex: this.editIndex,
|
|
473
473
|
removeIndex: this.removeIndex,
|
|
474
474
|
valueTypeReturned: this.valueTypeReturned,
|
|
475
|
-
optionAriaLabel: this.optionAriaLabel,
|
|
476
475
|
};
|
|
477
476
|
},
|
|
478
477
|
},
|
|
@@ -490,7 +489,6 @@ export default {
|
|
|
490
489
|
this.selectedEndPoint = this.options.selectedEndPoint,
|
|
491
490
|
this.key = this.options.key;
|
|
492
491
|
this.value = this.options.value;
|
|
493
|
-
this.optionAriaLabel = this.options.ariaLabel;
|
|
494
492
|
this.pmqlQuery = this.options.pmqlQuery;
|
|
495
493
|
this.defaultOptionKey= this.options.defaultOptionKey;
|
|
496
494
|
this.selectedOptions = this.options.selectedOptions;
|
|
@@ -593,8 +591,11 @@ export default {
|
|
|
593
591
|
this.editIndex = index;
|
|
594
592
|
this.optionContent = this.optionsList[index][this.valueField];
|
|
595
593
|
this.optionValue = this.optionsList[index][this.keyField];
|
|
594
|
+
this.optionAriaLabel = "";
|
|
596
595
|
if (this.renderAs === "checkbox") {
|
|
597
|
-
this.optionAriaLabel = this.optionsListExtra[index]
|
|
596
|
+
this.optionAriaLabel = this.optionsListExtra[index]
|
|
597
|
+
? this.optionsListExtra[index][this.ariaLabelField]
|
|
598
|
+
: "";
|
|
598
599
|
}
|
|
599
600
|
this.optionError = '';
|
|
600
601
|
},
|
|
@@ -616,13 +617,16 @@ export default {
|
|
|
616
617
|
return;
|
|
617
618
|
}
|
|
618
619
|
const newOption = {
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
620
|
+
[this.valueField]: this.optionContent,
|
|
621
|
+
[this.keyField]: this.optionValue
|
|
622
|
+
};
|
|
622
623
|
if (this.renderAs === "checkbox") {
|
|
624
|
+
const index = this.optionsList.length;
|
|
623
625
|
this.optionsList.push(newOption);
|
|
624
|
-
this.optionsListExtra
|
|
625
|
-
|
|
626
|
+
this.optionsListExtra[index] = {
|
|
627
|
+
...newOption,
|
|
628
|
+
[this.ariaLabelField]: this.optionAriaLabel
|
|
629
|
+
};
|
|
626
630
|
} else {
|
|
627
631
|
this.optionsList.push(newOption);
|
|
628
632
|
}
|
|
@@ -634,7 +638,10 @@ export default {
|
|
|
634
638
|
this.optionsList[this.editIndex][this.keyField] = this.optionValue;
|
|
635
639
|
this.optionsList[this.editIndex][this.valueField] = this.optionContent;
|
|
636
640
|
if (this.renderAs === "checkbox") {
|
|
637
|
-
this.optionsListExtra[this.editIndex] = {
|
|
641
|
+
this.optionsListExtra[this.editIndex] = {
|
|
642
|
+
...this.optionsList[this.editIndex],
|
|
643
|
+
[this.ariaLabelField]: this.optionAriaLabel
|
|
644
|
+
};
|
|
638
645
|
}
|
|
639
646
|
}
|
|
640
647
|
|
package/src/components/task.vue
CHANGED
|
@@ -850,6 +850,10 @@ export default {
|
|
|
850
850
|
* @param {Object} data - The event data received from the socket listener.
|
|
851
851
|
*/
|
|
852
852
|
handleRedirect(data) {
|
|
853
|
+
// Validate if the task is still active before redirects
|
|
854
|
+
if (data.params?.activeTokens?.includes(this.taskId)) {
|
|
855
|
+
return;
|
|
856
|
+
}
|
|
853
857
|
switch (data.method) {
|
|
854
858
|
case 'redirectToTask':
|
|
855
859
|
this.handleRedirectToTask(data);
|
|
@@ -974,6 +978,9 @@ export default {
|
|
|
974
978
|
if (
|
|
975
979
|
['ACTIVITY_ACTIVATED'].includes(data.event)
|
|
976
980
|
) {
|
|
981
|
+
if (data.activeTokens?.includes(this.taskId)) {
|
|
982
|
+
return;
|
|
983
|
+
}
|
|
977
984
|
this.closeTask(this.parentRequest);
|
|
978
985
|
}
|
|
979
986
|
if (
|