@processmaker/screen-builder 3.8.46 → 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@processmaker/screen-builder",
3
- "version": "3.8.46",
3
+ "version": "3.8.48",
4
4
  "scripts": {
5
5
  "dev": "VITE_COVERAGE=true vite",
6
6
  "build": "vite build",
@@ -61,7 +61,7 @@
61
61
  "@fortawesome/fontawesome-free": "^5.6.1",
62
62
  "@originjs/vite-plugin-commonjs": "^1.0.3",
63
63
  "@panter/vue-i18next": "^0.15.2",
64
- "@processmaker/vue-form-elements": "0.65.13",
64
+ "@processmaker/vue-form-elements": "0.65.14",
65
65
  "@processmaker/vue-multiselect": "2.3.3",
66
66
  "@storybook/addon-essentials": "^7.6.13",
67
67
  "@storybook/addon-interactions": "^7.6.13",
@@ -125,7 +125,7 @@
125
125
  },
126
126
  "peerDependencies": {
127
127
  "@panter/vue-i18next": "^0.15.0",
128
- "@processmaker/vue-form-elements": "0.65.13",
128
+ "@processmaker/vue-form-elements": "0.65.14",
129
129
  "i18next": "^15.0.8",
130
130
  "vue": "^2.6.12",
131
131
  "vuex": "^3.1.1"
@@ -88,6 +88,17 @@ export default {
88
88
  },
89
89
  },
90
90
  methods: {
91
+ isInScreenBuilder() {
92
+ let parent = this.$parent;
93
+ while (parent) {
94
+ const { _componentTag: tag, name } = parent.$options;
95
+ if (tag === 'vue-form-builder' || tag === 'VueFormBuilder' || name === 'VueFormBuilder') {
96
+ return true;
97
+ }
98
+ parent = parent.$parent;
99
+ }
100
+ return false;
101
+ },
91
102
  isSubmitButton(item) {
92
103
  return item.config && item.component === 'FormButton' && item.config.event === 'submit';
93
104
  },
@@ -146,7 +157,7 @@ export default {
146
157
  this.hideSubmitButtons(this.config);
147
158
  this.computed = response.data.computed;
148
159
  this.customCSS = response.data.custom_css;
149
- this.watchers = response.data.watchers;
160
+ this.watchers = this.isInScreenBuilder() ? [] : response.data.watchers;
150
161
  this.screenTitle = response.data.title;
151
162
 
152
163
  if (this.isDisabled) {
@@ -615,6 +615,7 @@ const defaultGroupOrder = {
615
615
  const DEFAULT_GROUP = "Advanced";
616
616
 
617
617
  export default {
618
+ name: 'VueFormBuilder',
618
619
  components: {
619
620
  TabsBar,
620
621
  draggable,