@processmaker/screen-builder 3.5.7 → 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.
@@ -49060,13 +49060,23 @@ const gee = {
49060
49060
  [this.valueField]: this.optionContent,
49061
49061
  [this.keyField]: this.optionValue
49062
49062
  };
49063
- this.renderAs === "checkbox" ? (this.optionsList.push(e), this.optionsListExtra.push({ ...e, [this.ariaLabelField]: this.optionAriaLabel })) : this.optionsList.push(e);
49063
+ if (this.renderAs === "checkbox") {
49064
+ const r = this.optionsList.length;
49065
+ this.optionsList.push(e), this.optionsListExtra[r] = {
49066
+ ...e,
49067
+ [this.ariaLabelField]: this.optionAriaLabel
49068
+ };
49069
+ } else
49070
+ this.optionsList.push(e);
49064
49071
  } else {
49065
49072
  if (this.optionsList.find((e, r) => e[t.keyField] === this.optionValue && r !== this.editIndex)) {
49066
49073
  this.optionError = "An item with the same key already exists";
49067
49074
  return;
49068
49075
  }
49069
- this.optionsList[this.editIndex][this.keyField] = this.optionValue, this.optionsList[this.editIndex][this.valueField] = this.optionContent, this.renderAs === "checkbox" && (this.optionsListExtra[this.editIndex] = { ...this.optionsList[this.editIndex], [this.ariaLabelField]: this.optionAriaLabel });
49076
+ this.optionsList[this.editIndex][this.keyField] = this.optionValue, this.optionsList[this.editIndex][this.valueField] = this.optionContent, this.renderAs === "checkbox" && (this.optionsListExtra[this.editIndex] = {
49077
+ ...this.optionsList[this.editIndex],
49078
+ [this.ariaLabelField]: this.optionAriaLabel
49079
+ });
49070
49080
  }
49071
49081
  this.jsonData = JSON.stringify(this.optionsList), this.showOptionCard = !1, this.optionError = "", this.editIndex = null;
49072
49082
  },
@@ -49182,7 +49192,7 @@ var bee = function() {
49182
49192
  yee,
49183
49193
  !1,
49184
49194
  null,
49185
- "1f7031a6",
49195
+ "b958aca2",
49186
49196
  null,
49187
49197
  null
49188
49198
  );
@@ -53949,7 +53959,13 @@ const Xre = () => new Promise((t) => {
53949
53959
  `ProcessMaker.Models.ProcessRequest.${this.parentRequest}`,
53950
53960
  ".ProcessUpdated",
53951
53961
  (t) => {
53952
- ["ACTIVITY_ACTIVATED"].includes(t.event) && this.closeTask(this.parentRequest), ["ACTIVITY_COMPLETED"].includes(t.event) && this.task.process_request.status === "COMPLETED" && this.processCompleted(), t.event === "ACTIVITY_EXCEPTION" && this.$emit("error", this.requestId);
53962
+ var e;
53963
+ if (["ACTIVITY_ACTIVATED"].includes(t.event)) {
53964
+ if ((e = t.activeTokens) != null && e.includes(this.taskId))
53965
+ return;
53966
+ this.closeTask(this.parentRequest);
53967
+ }
53968
+ ["ACTIVITY_COMPLETED"].includes(t.event) && this.task.process_request.status === "COMPLETED" && this.processCompleted(), t.event === "ACTIVITY_EXCEPTION" && this.$emit("error", this.requestId);
53953
53969
  }
53954
53970
  );
53955
53971
  },
@@ -54016,7 +54032,7 @@ var Ure = function() {
54016
54032
  Gre,
54017
54033
  !1,
54018
54034
  null,
54019
- "ccc93ef8",
54035
+ "7374c2d0",
54020
54036
  null,
54021
54037
  null
54022
54038
  );