@processmaker/screen-builder 3.8.18 → 3.8.20
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/dist/vue-form-builder.css +1 -1
- package/dist/vue-form-builder.es.js +52 -15
- package/dist/vue-form-builder.es.js.map +1 -1
- package/dist/vue-form-builder.umd.js +1 -1
- package/dist/vue-form-builder.umd.js.map +1 -1
- package/package.json +3 -3
- package/src/components/inspector/variables-to-submit.vue +59 -13
|
@@ -51152,6 +51152,18 @@ const nre = {
|
|
|
51152
51152
|
someSelected() {
|
|
51153
51153
|
const t = this.filteredVariables.filter((e) => this.selectedVariables.includes(e)).length;
|
|
51154
51154
|
return t > 0 && t < this.filteredVariables.length;
|
|
51155
|
+
},
|
|
51156
|
+
/**
|
|
51157
|
+
* Source for computed properties to watch for changes
|
|
51158
|
+
*/
|
|
51159
|
+
computedPropertiesSource() {
|
|
51160
|
+
return this.getComputedProperties() || [];
|
|
51161
|
+
},
|
|
51162
|
+
/**
|
|
51163
|
+
* Source for watchers to watch for changes
|
|
51164
|
+
*/
|
|
51165
|
+
watchersSource() {
|
|
51166
|
+
return this.getWatchers() || [];
|
|
51155
51167
|
}
|
|
51156
51168
|
},
|
|
51157
51169
|
watch: {
|
|
@@ -51167,19 +51179,42 @@ const nre = {
|
|
|
51167
51179
|
"selectedControl.config.event"(t) {
|
|
51168
51180
|
this.event = t;
|
|
51169
51181
|
},
|
|
51170
|
-
|
|
51171
|
-
|
|
51182
|
+
formConfig: {
|
|
51183
|
+
handler() {
|
|
51184
|
+
this.$nextTick(() => {
|
|
51185
|
+
this.cleanupInvalidSelections();
|
|
51186
|
+
});
|
|
51187
|
+
},
|
|
51188
|
+
deep: !0,
|
|
51189
|
+
immediate: !0
|
|
51172
51190
|
},
|
|
51173
|
-
// Watch for computed properties changes
|
|
51174
|
-
|
|
51175
|
-
|
|
51191
|
+
// Watch for computed properties changes
|
|
51192
|
+
computedPropertiesSource: {
|
|
51193
|
+
handler() {
|
|
51194
|
+
this.$nextTick(() => {
|
|
51195
|
+
this.cleanupInvalidSelections();
|
|
51196
|
+
});
|
|
51197
|
+
},
|
|
51198
|
+
deep: !0
|
|
51176
51199
|
},
|
|
51177
|
-
// Watch for watchers changes
|
|
51178
|
-
|
|
51179
|
-
|
|
51200
|
+
// Watch for watchers changes
|
|
51201
|
+
watchersSource: {
|
|
51202
|
+
handler() {
|
|
51203
|
+
this.$nextTick(() => {
|
|
51204
|
+
this.cleanupInvalidSelections();
|
|
51205
|
+
});
|
|
51206
|
+
},
|
|
51207
|
+
deep: !0
|
|
51180
51208
|
}
|
|
51181
51209
|
},
|
|
51182
51210
|
methods: {
|
|
51211
|
+
/**
|
|
51212
|
+
* Remove selected variables that no longer exist in availableVariables
|
|
51213
|
+
*/
|
|
51214
|
+
cleanupInvalidSelections() {
|
|
51215
|
+
const t = this.availableVariables, e = this.selectedVariables.filter((r) => t.includes(r));
|
|
51216
|
+
e.length !== this.selectedVariables.length && (this.selectedVariables = e, e.length === 0 && (this.isEnabled = !1));
|
|
51217
|
+
},
|
|
51183
51218
|
/**
|
|
51184
51219
|
* Load variables from the variables tree
|
|
51185
51220
|
* Only includes root-level variables (no prefix, no dots in name)
|
|
@@ -51230,18 +51265,20 @@ const nre = {
|
|
|
51230
51265
|
* Get computed properties from various sources
|
|
51231
51266
|
*/
|
|
51232
51267
|
getComputedProperties() {
|
|
51233
|
-
var e, r, i, a, n, s, o, u;
|
|
51268
|
+
var e, r, i, a, n, s, o, u, l, c, d;
|
|
51234
51269
|
if ((r = (e = this.$root) == null ? void 0 : e.$data) != null && r.computed)
|
|
51235
51270
|
return this.$root.$data.computed;
|
|
51236
|
-
if ((a = (i = this
|
|
51271
|
+
if ((n = (a = (i = this.$root) == null ? void 0 : i.$children) == null ? void 0 : a[0]) != null && n.computed && Array.isArray(this.$root.$children[0].computed))
|
|
51272
|
+
return this.$root.$children[0].computed;
|
|
51273
|
+
if ((o = (s = this.builder) == null ? void 0 : s.screen) != null && o.computed)
|
|
51237
51274
|
return this.builder.screen.computed;
|
|
51238
|
-
if ((
|
|
51275
|
+
if ((u = this.builder) != null && u.computed)
|
|
51239
51276
|
return this.builder.computed;
|
|
51240
|
-
if ((
|
|
51277
|
+
if ((c = (l = this.$root) == null ? void 0 : l.$parent) != null && c.computed)
|
|
51241
51278
|
return this.$root.$parent.computed;
|
|
51242
51279
|
let t = this.$parent;
|
|
51243
|
-
for (let
|
|
51244
|
-
if ((
|
|
51280
|
+
for (let f = 0; f < 10 && t; f++) {
|
|
51281
|
+
if ((d = t.$data) != null && d.computed)
|
|
51245
51282
|
return t.$data.computed;
|
|
51246
51283
|
t = t.$parent;
|
|
51247
51284
|
}
|
|
@@ -51421,7 +51458,7 @@ var sre = function() {
|
|
|
51421
51458
|
ore,
|
|
51422
51459
|
!1,
|
|
51423
51460
|
null,
|
|
51424
|
-
"
|
|
51461
|
+
"33a2f6e8",
|
|
51425
51462
|
null,
|
|
51426
51463
|
null
|
|
51427
51464
|
);
|