UNPKG

@react-form-builder/core

Version:

React JSON Schema Form Builder to create complex, validated, reusable forms with no deep React knowledge required

24 lines (23 loc) 596 B
function a(r) { return new Proxy({}, { get(u, e) { return e === "toJSON" ? () => r.data : r.data[e]; }, set(u, e, i) { let l = !1; return r.allComponentFields.filter(({ dataKey: t }) => t === e).forEach(({ field: t }) => { l = !0, t.setValue(i); }), l || r.updateInitialData(e, i), !0; }, ownKeys() { return Reflect.ownKeys(r.data); }, getOwnPropertyDescriptor(u, e) { return Object.getOwnPropertyDescriptor(r.data, e); } }); } export { a as createDataProxy }; //# sourceMappingURL=createComponentDataProxy.js.map