@processmaker/screen-builder 3.8.13 → 3.8.15

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@processmaker/screen-builder",
3
- "version": "3.8.13",
3
+ "version": "3.8.15",
4
4
  "scripts": {
5
5
  "dev": "VITE_COVERAGE=true vite",
6
6
  "build": "vite build",
@@ -58,7 +58,7 @@
58
58
  "@fortawesome/fontawesome-free": "^5.6.1",
59
59
  "@originjs/vite-plugin-commonjs": "^1.0.3",
60
60
  "@panter/vue-i18next": "^0.15.2",
61
- "@processmaker/vue-form-elements": "0.65.4",
61
+ "@processmaker/vue-form-elements": "0.65.5",
62
62
  "@processmaker/vue-multiselect": "2.3.0",
63
63
  "@storybook/addon-essentials": "^7.6.13",
64
64
  "@storybook/addon-interactions": "^7.6.13",
@@ -117,7 +117,7 @@
117
117
  },
118
118
  "peerDependencies": {
119
119
  "@panter/vue-i18next": "^0.15.0",
120
- "@processmaker/vue-form-elements": "0.65.4",
120
+ "@processmaker/vue-form-elements": "0.65.5",
121
121
  "i18next": "^15.0.8",
122
122
  "vue": "^2.6.12",
123
123
  "vuex": "^3.1.1"
@@ -442,7 +442,7 @@ export default {
442
442
  field: "after_or_equal:",
443
443
  content: this.$t("After or Equal to Date"),
444
444
  helper: this.$t(
445
- "The field unter validation must be after or equal to the given field."
445
+ "The field under validation must be after or equal to the given field."
446
446
  ),
447
447
  visible: true,
448
448
  configs: [
@@ -459,7 +459,7 @@ export default {
459
459
  field: "before:",
460
460
  content: this.$t("Before Date"),
461
461
  helper: this.$t(
462
- "The field unter validation must be before the given date."
462
+ "The field under validation must be before the given date."
463
463
  ),
464
464
  visible: true,
465
465
  configs: [
@@ -476,7 +476,7 @@ export default {
476
476
  field: "before_or_equal:",
477
477
  content: this.$t("Before or Equal to Date"),
478
478
  helper: this.$t(
479
- "The field unter validation must be before or equal to the given field."
479
+ "The field under validation must be before or equal to the given field."
480
480
  ),
481
481
  visible: true,
482
482
  configs: [
@@ -690,7 +690,7 @@ export default {
690
690
  return null;
691
691
  }
692
692
  },
693
-
693
+
694
694
  /**
695
695
  * Handles redirection upon process completion, considering destination type and user task validation.
696
696
  * @async
@@ -829,7 +829,20 @@ export default {
829
829
  * @param {Object} data - The event data received from the socket listener.
830
830
  */
831
831
  handleProcessUpdate(data) {
832
- if (data.event === 'ACTIVITY_EXCEPTION') {
832
+ const { event, elementDestination, tokenId } = data;
833
+
834
+ // If the activity is completed and there is an element destination, set the element destination to the task
835
+ if (
836
+ event === "ACTIVITY_COMPLETED" &&
837
+ this.task.id === tokenId &&
838
+ elementDestination
839
+ ) {
840
+ this.task.elementDestination = elementDestination;
841
+ // update allow_interstitial based on the element destination change after the submit
842
+ this.task.allow_interstitial = elementDestination.type === "displayNextAssignedTask";
843
+ }
844
+
845
+ if (event === 'ACTIVITY_EXCEPTION') {
833
846
  this.$emit('error', this.requestId);
834
847
  window.location.href = `/requests/${this.requestId}`;
835
848
  }