@processmaker/screen-builder 3.8.47 → 3.8.48

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.
@@ -46191,6 +46191,16 @@ const bo = typeof window > "u" ? global : window, id = [
46191
46191
  }
46192
46192
  },
46193
46193
  methods: {
46194
+ isInScreenBuilder() {
46195
+ let t = this.$parent;
46196
+ for (; t; ) {
46197
+ const { _componentTag: e, name: r } = t.$options;
46198
+ if (e === "vue-form-builder" || e === "VueFormBuilder" || r === "VueFormBuilder")
46199
+ return !0;
46200
+ t = t.$parent;
46201
+ }
46202
+ return !1;
46203
+ },
46194
46204
  isSubmitButton(t) {
46195
46205
  return t.config && t.component === "FormButton" && t.config.event === "submit";
46196
46206
  },
@@ -46206,7 +46216,7 @@ const bo = typeof window > "u" ? global : window, id = [
46206
46216
  },
46207
46217
  loadScreen(t) {
46208
46218
  this.config = id, this.computed = [], this.customCSS = null, this.watchers = [], this.screenTitle = null, t && this.$dataProvider.getScreen(t).then((e) => {
46209
- this.config = e.data.config, this.hideSubmitButtons(this.config), this.computed = e.data.computed, this.customCSS = e.data.custom_css, this.watchers = e.data.watchers, this.screenTitle = e.data.title, this.isDisabled && this.disableForm(this.config), this.ancestorScreens.includes(this.screenTitle) ? bo.ProcessMaker.alert(`Rendering of nested "${this.screenTitle}" screen was disallowed to prevent loop.`, "warning") : (bo.nestedScreens || (bo.nestedScreens = {}), bo.nestedScreens["id_" + t] = this.config, this.$root.$emit("nested-screen-updated"));
46219
+ this.config = e.data.config, this.hideSubmitButtons(this.config), this.computed = e.data.computed, this.customCSS = e.data.custom_css, this.watchers = this.isInScreenBuilder() ? [] : e.data.watchers, this.screenTitle = e.data.title, this.isDisabled && this.disableForm(this.config), this.ancestorScreens.includes(this.screenTitle) ? bo.ProcessMaker.alert(`Rendering of nested "${this.screenTitle}" screen was disallowed to prevent loop.`, "warning") : (bo.nestedScreens || (bo.nestedScreens = {}), bo.nestedScreens["id_" + t] = this.config, this.$root.$emit("nested-screen-updated"));
46210
46220
  });
46211
46221
  },
46212
46222
  errors() {
@@ -53168,6 +53178,7 @@ const Vie = [
53168
53178
  Files: 5,
53169
53179
  Advanced: 6
53170
53180
  }, Wie = "Advanced", Xie = {
53181
+ name: "VueFormBuilder",
53171
53182
  components: {
53172
53183
  TabsBar: fie,
53173
53184
  draggable: Mi,
@@ -53920,7 +53931,7 @@ var Uie = function() {
53920
53931
  Jie,
53921
53932
  !1,
53922
53933
  null,
53923
- "0db10927"
53934
+ "6095148e"
53924
53935
  );
53925
53936
  const Qie = Gie.exports, Yie = 1, Zie = {
53926
53937
  name: "FormMultiColumn",