@processmaker/screen-builder 3.5.5 → 3.5.7

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.
@@ -48965,8 +48965,7 @@ const gee = {
48965
48965
  showJsonEditor: this.showJsonEditor,
48966
48966
  editIndex: this.editIndex,
48967
48967
  removeIndex: this.removeIndex,
48968
- valueTypeReturned: this.valueTypeReturned,
48969
- optionAriaLabel: this.optionAriaLabel
48968
+ valueTypeReturned: this.valueTypeReturned
48970
48969
  };
48971
48970
  }
48972
48971
  },
@@ -48976,7 +48975,7 @@ const gee = {
48976
48975
  }, 1500);
48977
48976
  },
48978
48977
  mounted() {
48979
- this.dataSource = this.options.dataSource, this.jsonData = this.options.jsonData, this.dataName = this.options.dataName, this.collectionOptions = this.options.collectionOptions, this.selectedDataSource = this.options.selectedDataSource, this.selectedEndPoint = this.options.selectedEndPoint, this.key = this.options.key, this.value = this.options.value, this.optionAriaLabel = this.options.ariaLabel, this.pmqlQuery = this.options.pmqlQuery, this.defaultOptionKey = this.options.defaultOptionKey, this.selectedOptions = this.options.selectedOptions, this.optionsList = this.options.optionsList ? this.options.optionsList : [], this.optionsListExtra = this.options.optionsListExtra ? this.options.optionsListExtra : [], this.jsonData = JSON.stringify(this.optionsList), this.showRenderAs = this.options.showRenderAs, this.renderAs = this.options.renderAs, this.allowMultiSelect = this.options.allowMultiSelect, this.valueTypeReturned = this.options.valueTypeReturned;
48978
+ this.dataSource = this.options.dataSource, this.jsonData = this.options.jsonData, this.dataName = this.options.dataName, this.collectionOptions = this.options.collectionOptions, this.selectedDataSource = this.options.selectedDataSource, this.selectedEndPoint = this.options.selectedEndPoint, this.key = this.options.key, this.value = this.options.value, this.pmqlQuery = this.options.pmqlQuery, this.defaultOptionKey = this.options.defaultOptionKey, this.selectedOptions = this.options.selectedOptions, this.optionsList = this.options.optionsList ? this.options.optionsList : [], this.optionsListExtra = this.options.optionsListExtra ? this.options.optionsListExtra : [], this.jsonData = JSON.stringify(this.optionsList), this.showRenderAs = this.options.showRenderAs, this.renderAs = this.options.renderAs, this.allowMultiSelect = this.options.allowMultiSelect, this.valueTypeReturned = this.options.valueTypeReturned;
48980
48979
  },
48981
48980
  methods: {
48982
48981
  monacoMounted(t) {
@@ -49045,7 +49044,7 @@ const gee = {
49045
49044
  this.jsonData = JSON.stringify(this.optionsList), this.$emit("change", this.dataObjectOptions);
49046
49045
  },
49047
49046
  showEditOption(t) {
49048
- this.optionCardType = "edit", this.editIndex = t, this.optionContent = this.optionsList[t][this.valueField], this.optionValue = this.optionsList[t][this.keyField], this.renderAs === "checkbox" && (this.optionAriaLabel = this.optionsListExtra[t][this.ariaLabelField]), this.optionError = "";
49047
+ this.optionCardType = "edit", this.editIndex = t, this.optionContent = this.optionsList[t][this.valueField], this.optionValue = this.optionsList[t][this.keyField], this.optionAriaLabel = "", this.renderAs === "checkbox" && (this.optionAriaLabel = this.optionsListExtra[t] ? this.optionsListExtra[t][this.ariaLabelField] : ""), this.optionError = "";
49049
49048
  },
49050
49049
  showAddOption() {
49051
49050
  this.optionCardType = "insert", this.optionContent = "", this.optionValue = "", this.optionAriaLabel = "", this.showOptionCard = !0, this.optionError = "", this.editIndex = null;
@@ -49183,7 +49182,7 @@ var bee = function() {
49183
49182
  yee,
49184
49183
  !1,
49185
49184
  null,
49186
- "245a3588",
49185
+ "1f7031a6",
49187
49186
  null,
49188
49187
  null
49189
49188
  );
@@ -51785,7 +51784,7 @@ const mre = [
51785
51784
  this.extendedPages[this.currentPage].items.splice(t, 1), this.inspection.inspector.splice(0, this.inspection.inspector.length), this.updateState();
51786
51785
  },
51787
51786
  duplicateItem(t) {
51788
- const e = re.cloneDeep(this.config[this.currentPage].items[t]);
51787
+ const e = re.cloneDeep(this.extendedPages[this.currentPage].items[t]);
51789
51788
  this.updateUuids(e), this.extendedPages[this.currentPage].items.push(e);
51790
51789
  },
51791
51790
  openEditPageModal(t) {
@@ -52016,7 +52015,7 @@ var yre = function() {
52016
52015
  return e.addToClipboard(e.extendedPages[i].items[n]);
52017
52016
  }, removeFromClipboard: function(s) {
52018
52017
  return e.removeFromClipboard(e.extendedPages[i].items[n]);
52019
- } } }) : e._e(), r("button", { staticClass: "btn btn-sm btn-primary mr-2", attrs: { title: e.$t("Copy Control") }, on: { click: function(s) {
52018
+ } } }) : e._e(), r("button", { staticClass: "btn btn-sm btn-primary mr-2", attrs: { title: e.$t("Copy Control"), "data-test": "copy-control-btn" }, on: { click: function(s) {
52020
52019
  return e.duplicateItem(n);
52021
52020
  } } }, [r("i", { staticClass: "fas fa-copy text-light" })]), r("button", { staticClass: "btn btn-sm btn-danger", attrs: { title: e.$t("Delete Control") }, on: { click: function(s) {
52022
52021
  return e.deleteItem(n);
@@ -52074,7 +52073,7 @@ var yre = function() {
52074
52073
  xre,
52075
52074
  !1,
52076
52075
  null,
52077
- "20d88fee",
52076
+ "005f6612",
52078
52077
  null,
52079
52078
  null
52080
52079
  );
@@ -53870,23 +53869,25 @@ const Xre = () => new Promise((t) => {
53870
53869
  * @param {Object} data - The event data received from the socket listener.
53871
53870
  */
53872
53871
  handleRedirect(t) {
53873
- switch (t.method) {
53874
- case "redirectToTask":
53875
- this.handleRedirectToTask(t);
53876
- break;
53877
- case "processUpdated":
53878
- this.handleProcessUpdated(t);
53879
- break;
53880
- case "processCompletedRedirect":
53881
- this.processCompletedRedirect(
53882
- t.params[0],
53883
- this.userId,
53884
- this.requestId
53885
- );
53886
- break;
53887
- default:
53888
- this.handleDefaultRedirect(t);
53889
- }
53872
+ var e, r;
53873
+ if (!((r = (e = t.params) == null ? void 0 : e.activeTokens) != null && r.includes(this.taskId)))
53874
+ switch (t.method) {
53875
+ case "redirectToTask":
53876
+ this.handleRedirectToTask(t);
53877
+ break;
53878
+ case "processUpdated":
53879
+ this.handleProcessUpdated(t);
53880
+ break;
53881
+ case "processCompletedRedirect":
53882
+ this.processCompletedRedirect(
53883
+ t.params[0],
53884
+ this.userId,
53885
+ this.requestId
53886
+ );
53887
+ break;
53888
+ default:
53889
+ this.handleDefaultRedirect(t);
53890
+ }
53890
53891
  },
53891
53892
  /**
53892
53893
  * Handles the 'redirectToTask' event by loading the specified task.
@@ -54015,7 +54016,7 @@ var Ure = function() {
54015
54016
  Gre,
54016
54017
  !1,
54017
54018
  null,
54018
- "7cfa615a",
54019
+ "ccc93ef8",
54019
54020
  null,
54020
54021
  null
54021
54022
  );