@myparcel-dev/vue-form-builder 1.0.0-beta.44-pdk.1 → 1.0.0-beta.44-pdk-compatible
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/index.js +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -472,11 +472,11 @@ class We {
|
|
|
472
472
|
n(this, "values");
|
|
473
473
|
n(this, "getFieldMemoized", ge((t) => o(this.fields).find((r) => r.name === t) ?? null));
|
|
474
474
|
const { fields: r, ...i } = e;
|
|
475
|
-
|
|
476
|
-
|
|
475
|
+
e.hookNames = [...ee, ...e.hookNames ?? []], this.hooks = Z(e), this.on = this.hooks.register.bind(this.hooks), this.off = this.hooks.unregister.bind(this.hooks), this.name = t, this.config = i, this.values = $({}), y(this.config.field.wrapper), y(this.config.fieldDefaults.wrapper), r.forEach((a, u) => {
|
|
476
|
+
;
|
|
477
477
|
const h = this.createFieldInstance(a, this);
|
|
478
|
-
|
|
479
|
-
}),
|
|
478
|
+
o(this.fields).push(h), .length, "items");
|
|
479
|
+
}), ), this.interactiveFields = b(() => o(this.fields).filter((a) => p(a, "ref"))), this.isDirty = b(() => o(this.interactiveFields).some((a) => o(a.isDirty))), this.stable.value = !0;
|
|
480
480
|
}
|
|
481
481
|
async addElement(t, e, r = "after") {
|
|
482
482
|
await this.hooks.execute(c.BeforeAddElement, this, t);
|