@processmaker/screen-builder 3.6.0 → 3.7.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.
@@ -51831,13 +51831,24 @@ const mre = [
51831
51831
  );
51832
51832
  return t > this.pageDelete ? t - 1 : t;
51833
51833
  },
51834
+ // This function is used to calculate the new index of the references FormRecordList
51835
+ calcNewIndexForFormRecordList(t, e, r) {
51836
+ if (r[this.pageDelete].items.length > 0)
51837
+ throw new Error(
51838
+ `${this.$t(
51839
+ "Can not delete this page, it is referenced by"
51840
+ )}: ${e}`
51841
+ );
51842
+ return t > this.pageDelete ? t - 1 : t;
51843
+ },
51834
51844
  // Update Record list references
51835
51845
  updateRecordListReferences() {
51836
51846
  this.config.forEach((t) => {
51837
51847
  t.items.forEach((e) => {
51838
- e.component === "FormRecordList" && (e.config.form = this.calcNewIndexFor(
51848
+ e.component === "FormRecordList" && (e.config.form = this.calcNewIndexForFormRecordList(
51839
51849
  e.config.form * 1,
51840
- e.config.label
51850
+ e.config.label,
51851
+ this.config
51841
51852
  ));
51842
51853
  });
51843
51854
  });
@@ -52083,7 +52094,7 @@ var yre = function() {
52083
52094
  xre,
52084
52095
  !1,
52085
52096
  null,
52086
- "005f6612",
52097
+ "aa06dd3c",
52087
52098
  null,
52088
52099
  null
52089
52100
  );
@@ -52376,6 +52387,7 @@ const Ire = Iu(Ere), hae = Iu(jre), mae = Iu([zre]), Lre = Iu([uP, lP]), Fre = N
52376
52387
  allowMultiSelect: !1,
52377
52388
  selectedOptions: [],
52378
52389
  optionsList: [],
52390
+ optionsListExtra: [],
52379
52391
  key: "value",
52380
52392
  value: "content",
52381
52393
  ariaLabel: "ariaLabel",
@@ -53510,7 +53522,9 @@ const Xre = () => new Promise((t) => {
53510
53522
  return t.config !== void 0 && (t.config.disabled = !0), t.items !== void 0 && this.disableForm(t.items), t;
53511
53523
  },
53512
53524
  showSimpleErrorMessage() {
53513
- this.renderComponent = "simpleErrorMessage";
53525
+ this.renderComponent = null, setTimeout(() => {
53526
+ this.renderComponent = "simpleErrorMessage";
53527
+ }, 0);
53514
53528
  },
53515
53529
  loadScreen(t) {
53516
53530
  this.disabled = !0;
@@ -54032,7 +54046,7 @@ var Ure = function() {
54032
54046
  Gre,
54033
54047
  !1,
54034
54048
  null,
54035
- "7374c2d0",
54049
+ "8cad2101",
54036
54050
  null,
54037
54051
  null
54038
54052
  );