UNPKG

@react-form-builder/core

Version:

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

30 lines (29 loc) 800 B
import { Store as t } from "../../stores/Store.js"; import { string as r } from "../annotation/stringAnnotation.js"; import { toArray as m } from "../annotation/toArray.js"; import { createAnnotation as a } from "../annotation/utils/createAnnotation.js"; import { Meta as d } from "../define/utils/Meta.js"; import { modalModel as i } from "./modalModel.js"; const p = m({ modalTemplate: r.required.setup({ editor: "templateTypePicker" }) }), n = a("modalProps"), l = [ n.build("modalProps") ], s = { onCreateNode: (c, o) => { const { form: e } = o; !e.modalType && o instanceof t && (e.modalType = o.getFirstComponentTypeWithRole("modal")); } }, v = new d( i.type, p, [], [], l, void 0, void 0, s ); export { v as modalMeta }; //# sourceMappingURL=modalMeta.js.map