@nolwenture/formik-jsonschema-form 2.0.2 → 3.0.0-beta.1
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/README.md +18 -0
- package/dist/cjs/common/types/index.js +2 -0
- package/dist/cjs/index.js +15 -5
- package/dist/cjs/v3/codemod/bindings.js +124 -0
- package/dist/cjs/v3/codemod/cli.js +89 -0
- package/dist/cjs/v3/codemod/migrate.js +21 -0
- package/dist/cjs/v3/codemod/package.js +5 -0
- package/dist/cjs/v3/codemod/slots.js +27 -0
- package/dist/cjs/v3/codemod/transform.js +61 -0
- package/dist/cjs/v3/document/fromDocument.js +50 -0
- package/dist/cjs/v3/document/index.js +9 -0
- package/dist/cjs/v3/document/render.js +22 -0
- package/dist/cjs/v3/raw/compat/v2utils.js +39 -0
- package/dist/cjs/v3/raw/core/arrays.js +55 -0
- package/dist/cjs/v3/raw/core/choiceStyle.js +14 -0
- package/dist/cjs/v3/raw/core/conditionals.js +88 -0
- package/dist/cjs/v3/raw/core/dates.js +74 -0
- package/dist/cjs/v3/raw/core/defaults.js +31 -0
- package/dist/cjs/v3/raw/core/enums.js +37 -0
- package/dist/cjs/v3/raw/core/initialValues.js +68 -0
- package/dist/cjs/v3/raw/core/issues.js +42 -0
- package/dist/cjs/v3/raw/core/json.js +58 -0
- package/dist/cjs/v3/raw/core/merge.js +51 -0
- package/dist/cjs/v3/raw/core/paths.js +88 -0
- package/dist/cjs/v3/raw/core/policies/fileUploadView.js +4 -0
- package/dist/cjs/v3/raw/core/policies/optionalNumberInitial.js +7 -0
- package/dist/cjs/v3/raw/core/policies/storedFormats.js +5 -0
- package/dist/cjs/v3/raw/core/refs.js +104 -0
- package/dist/cjs/v3/raw/core/schemaType.js +75 -0
- package/dist/cjs/v3/raw/core/titles.js +30 -0
- package/dist/cjs/v3/raw/core/trail.js +18 -0
- package/dist/cjs/v3/raw/core/uiProps.js +72 -0
- package/dist/cjs/v3/raw/core/uiSchema.js +56 -0
- package/dist/cjs/v3/raw/dom/bind.js +84 -0
- package/dist/cjs/v3/raw/dom/build.js +27 -0
- package/dist/cjs/v3/raw/dom/controller.js +87 -0
- package/dist/cjs/v3/raw/dom/core.js +67 -0
- package/dist/cjs/v3/raw/dom/delegate.js +31 -0
- package/dist/cjs/v3/raw/dom/effects.js +67 -0
- package/dist/cjs/v3/raw/dom/elements.js +88 -0
- package/dist/cjs/v3/raw/dom/emitter.js +47 -0
- package/dist/cjs/v3/raw/dom/nodes.js +25 -0
- package/dist/cjs/v3/raw/dom/render.js +122 -0
- package/dist/cjs/v3/raw/dom/upload.js +186 -0
- package/dist/cjs/v3/raw/i18n/en.js +47 -0
- package/dist/cjs/v3/raw/i18n/fi.js +44 -0
- package/dist/cjs/v3/raw/i18n/index.js +14 -0
- package/dist/cjs/v3/raw/index.js +98 -0
- package/dist/cjs/v3/raw/model/classes.js +9 -0
- package/dist/cjs/v3/raw/model/form/actions.js +154 -0
- package/dist/cjs/v3/raw/model/form/any.js +27 -0
- package/dist/cjs/v3/raw/model/form/appearance.js +32 -0
- package/dist/cjs/v3/raw/model/form/array.js +69 -0
- package/dist/cjs/v3/raw/model/form/choice.js +74 -0
- package/dist/cjs/v3/raw/model/form/chrome.js +65 -0
- package/dist/cjs/v3/raw/model/form/componentTable.js +148 -0
- package/dist/cjs/v3/raw/model/form/date.js +53 -0
- package/dist/cjs/v3/raw/model/form/dispatch.js +119 -0
- package/dist/cjs/v3/raw/model/form/iconData.js +19 -0
- package/dist/cjs/v3/raw/model/form/icons.js +10 -0
- package/dist/cjs/v3/raw/model/form/index.js +43 -0
- package/dist/cjs/v3/raw/model/form/leaf.js +99 -0
- package/dist/cjs/v3/raw/model/form/markup.js +46 -0
- package/dist/cjs/v3/raw/model/form/object.js +105 -0
- package/dist/cjs/v3/raw/model/form/parts.js +26 -0
- package/dist/cjs/v3/raw/model/form/searchable.js +81 -0
- package/dist/cjs/v3/raw/model/form/templated.js +22 -0
- package/dist/cjs/v3/raw/model/form/upload.js +88 -0
- package/dist/cjs/v3/raw/model/styledChains.js +43 -0
- package/dist/cjs/v3/raw/model/view/build.js +165 -0
- package/dist/cjs/v3/raw/model/view/fields.js +102 -0
- package/dist/cjs/v3/raw/model/view/index.js +10 -0
- package/dist/cjs/v3/raw/model/view/markup.js +62 -0
- package/dist/cjs/v3/raw/model/view/toVNode.js +67 -0
- package/dist/cjs/v3/raw/model/view/values.js +58 -0
- package/dist/cjs/v3/raw/model/vnode.js +21 -0
- package/dist/cjs/v3/raw/sanitize/index.js +10 -0
- package/dist/cjs/v3/raw/sanitize/sanitizeHtml.js +128 -0
- package/dist/cjs/v3/raw/serialize/toDOM.js +150 -0
- package/dist/cjs/v3/raw/serialize/toString.js +58 -0
- package/dist/cjs/v3/raw/store/createStore.js +133 -0
- package/dist/cjs/v3/raw/styles/color.js +112 -0
- package/dist/cjs/v3/raw/styles/colorNames.js +30 -0
- package/dist/cjs/v3/raw/styles/defaultStyles.js +114 -0
- package/dist/cjs/v3/raw/styles/index.js +24 -0
- package/dist/cjs/v3/raw/styles/themeToCssVars.js +60 -0
- package/dist/cjs/v3/raw/styles/vars.js +28 -0
- package/dist/cjs/v3/raw/validation/arrays.js +78 -0
- package/dist/cjs/v3/raw/validation/conditions.js +63 -0
- package/dist/cjs/v3/raw/validation/index.js +182 -0
- package/dist/cjs/v3/raw/validation/keywords.js +113 -0
- package/dist/cjs/v3/raw/validation/messages.js +14 -0
- package/dist/cjs/v3/raw/validation/patterns.js +74 -0
- package/dist/cjs/v3/react/chain.js +7 -0
- package/dist/cjs/v3/react/compat.js +11 -0
- package/dist/cjs/v3/react/componentsProp.js +23 -0
- package/dist/cjs/v3/react/defined.js +6 -0
- package/dist/cjs/v3/react/ejs/EJSField.js +75 -0
- package/dist/cjs/v3/react/ejs/index.js +8 -0
- package/dist/cjs/v3/react/form/components.js +105 -0
- package/dist/cjs/v3/react/form/fields.js +75 -0
- package/dist/cjs/v3/react/form/host.js +100 -0
- package/dist/cjs/{Form/FormRegistry.js → v3/react/form/registry.js} +6 -7
- package/dist/cjs/v3/react/form/root.js +42 -0
- package/dist/cjs/v3/react/form/runtime.js +117 -0
- package/dist/cjs/v3/react/form/templates.js +58 -0
- package/dist/cjs/v3/react/form/upload.js +173 -0
- package/dist/cjs/v3/react/form/uploadContexts.js +27 -0
- package/dist/cjs/v3/react/form/useSetDefault.js +21 -0
- package/dist/cjs/v3/react/hostCore.js +59 -0
- package/dist/cjs/v3/react/index.js +45 -0
- package/dist/cjs/v3/react/selector.js +17 -0
- package/dist/cjs/v3/react/slots.js +19 -0
- package/dist/cjs/v3/react/toReact.js +63 -0
- package/dist/cjs/v3/react/view/components.js +63 -0
- package/dist/cjs/v3/react/view/fields.js +46 -0
- package/dist/cjs/v3/react/view/host.js +36 -0
- package/dist/cjs/v3/react/view/registry.js +20 -0
- package/dist/cjs/v3/react/view/root.js +37 -0
- package/dist/cjs/v3/react/view/templates.js +50 -0
- package/dist/esm/common/types/index.js +2 -0
- package/dist/esm/index.js +8 -5
- package/dist/esm/v3/document/fromDocument.js +46 -0
- package/dist/esm/v3/document/index.js +4 -0
- package/dist/esm/v3/document/render.js +18 -0
- package/dist/esm/v3/raw/compat/v2utils.js +15 -0
- package/dist/esm/v3/raw/core/arrays.js +49 -0
- package/dist/esm/v3/raw/core/choiceStyle.js +10 -0
- package/dist/esm/v3/raw/core/conditionals.js +82 -0
- package/dist/esm/v3/raw/core/dates.js +66 -0
- package/dist/esm/v3/raw/core/defaults.js +25 -0
- package/dist/esm/v3/raw/core/enums.js +32 -0
- package/dist/esm/v3/raw/core/initialValues.js +65 -0
- package/dist/esm/v3/raw/core/issues.js +36 -0
- package/dist/esm/v3/raw/core/json.js +49 -0
- package/dist/esm/v3/raw/core/merge.js +47 -0
- package/dist/esm/v3/raw/core/paths.js +79 -0
- package/dist/esm/v3/raw/core/policies/fileUploadView.js +1 -0
- package/dist/esm/v3/raw/core/policies/optionalNumberInitial.js +3 -0
- package/dist/esm/v3/raw/core/policies/storedFormats.js +2 -0
- package/dist/esm/v3/raw/core/refs.js +97 -0
- package/dist/esm/v3/raw/core/schemaType.js +68 -0
- package/dist/esm/v3/raw/core/titles.js +25 -0
- package/dist/esm/v3/raw/core/trail.js +14 -0
- package/dist/esm/v3/raw/core/uiProps.js +68 -0
- package/dist/esm/v3/raw/core/uiSchema.js +47 -0
- package/dist/esm/v3/raw/dom/bind.js +80 -0
- package/dist/esm/v3/raw/dom/build.js +23 -0
- package/dist/esm/v3/raw/dom/controller.js +83 -0
- package/dist/esm/v3/raw/dom/core.js +63 -0
- package/dist/esm/v3/raw/dom/delegate.js +25 -0
- package/dist/esm/v3/raw/dom/effects.js +62 -0
- package/dist/esm/v3/raw/dom/elements.js +84 -0
- package/dist/esm/v3/raw/dom/emitter.js +43 -0
- package/dist/esm/v3/raw/dom/nodes.js +20 -0
- package/dist/esm/v3/raw/dom/render.js +118 -0
- package/dist/esm/v3/raw/dom/upload.js +182 -0
- package/dist/esm/v3/raw/i18n/en.js +44 -0
- package/dist/esm/v3/raw/i18n/fi.js +41 -0
- package/dist/esm/v3/raw/i18n/index.js +9 -0
- package/dist/esm/v3/raw/index.js +33 -0
- package/dist/esm/v3/raw/model/classes.js +5 -0
- package/dist/esm/v3/raw/model/form/actions.js +150 -0
- package/dist/esm/v3/raw/model/form/any.js +23 -0
- package/dist/esm/v3/raw/model/form/appearance.js +27 -0
- package/dist/esm/v3/raw/model/form/array.js +65 -0
- package/dist/esm/v3/raw/model/form/choice.js +65 -0
- package/dist/esm/v3/raw/model/form/chrome.js +58 -0
- package/dist/esm/v3/raw/model/form/componentTable.js +145 -0
- package/dist/esm/v3/raw/model/form/date.js +48 -0
- package/dist/esm/v3/raw/model/form/dispatch.js +114 -0
- package/dist/esm/v3/raw/model/form/iconData.js +16 -0
- package/dist/esm/v3/raw/model/form/icons.js +6 -0
- package/dist/esm/v3/raw/model/form/index.js +32 -0
- package/dist/esm/v3/raw/model/form/leaf.js +89 -0
- package/dist/esm/v3/raw/model/form/markup.js +35 -0
- package/dist/esm/v3/raw/model/form/object.js +100 -0
- package/dist/esm/v3/raw/model/form/parts.js +21 -0
- package/dist/esm/v3/raw/model/form/searchable.js +76 -0
- package/dist/esm/v3/raw/model/form/templated.js +17 -0
- package/dist/esm/v3/raw/model/form/upload.js +81 -0
- package/dist/esm/v3/raw/model/styledChains.js +40 -0
- package/dist/esm/v3/raw/model/view/build.js +158 -0
- package/dist/esm/v3/raw/model/view/fields.js +90 -0
- package/dist/esm/v3/raw/model/view/index.js +6 -0
- package/dist/esm/v3/raw/model/view/markup.js +48 -0
- package/dist/esm/v3/raw/model/view/toVNode.js +63 -0
- package/dist/esm/v3/raw/model/view/values.js +50 -0
- package/dist/esm/v3/raw/model/vnode.js +13 -0
- package/dist/esm/v3/raw/sanitize/index.js +2 -0
- package/dist/esm/v3/raw/sanitize/sanitizeHtml.js +119 -0
- package/dist/esm/v3/raw/serialize/toDOM.js +145 -0
- package/dist/esm/v3/raw/serialize/toString.js +52 -0
- package/dist/esm/v3/raw/store/createStore.js +126 -0
- package/dist/esm/v3/raw/styles/color.js +104 -0
- package/dist/esm/v3/raw/styles/colorNames.js +27 -0
- package/dist/esm/v3/raw/styles/defaultStyles.js +111 -0
- package/dist/esm/v3/raw/styles/index.js +14 -0
- package/dist/esm/v3/raw/styles/themeToCssVars.js +55 -0
- package/dist/esm/v3/raw/styles/vars.js +24 -0
- package/dist/esm/v3/raw/validation/arrays.js +40 -0
- package/dist/esm/v3/raw/validation/conditions.js +60 -0
- package/dist/esm/v3/raw/validation/index.js +146 -0
- package/dist/esm/v3/raw/validation/keywords.js +73 -0
- package/dist/esm/v3/raw/validation/messages.js +10 -0
- package/dist/esm/v3/raw/validation/patterns.js +68 -0
- package/dist/esm/v3/react/chain.js +4 -0
- package/dist/esm/v3/react/compat.js +8 -0
- package/dist/esm/v3/react/componentsProp.js +18 -0
- package/dist/esm/v3/react/defined.js +2 -0
- package/dist/esm/v3/react/ejs/EJSField.js +67 -0
- package/dist/esm/v3/react/ejs/index.js +3 -0
- package/dist/esm/v3/react/form/components.js +101 -0
- package/dist/esm/v3/react/form/fields.js +70 -0
- package/dist/esm/v3/react/form/host.js +95 -0
- package/dist/esm/{Form/FormRegistry.js → v3/react/form/registry.js} +5 -3
- package/dist/esm/v3/react/form/root.js +38 -0
- package/dist/esm/v3/react/form/runtime.js +113 -0
- package/dist/esm/v3/react/form/templates.js +55 -0
- package/dist/esm/v3/react/form/upload.js +168 -0
- package/dist/esm/v3/react/form/uploadContexts.js +24 -0
- package/dist/esm/v3/react/form/useSetDefault.js +17 -0
- package/dist/esm/v3/react/hostCore.js +52 -0
- package/dist/esm/v3/react/index.js +18 -0
- package/dist/esm/v3/react/selector.js +13 -0
- package/dist/esm/v3/react/slots.js +15 -0
- package/dist/esm/v3/react/toReact.js +58 -0
- package/dist/esm/v3/react/view/components.js +59 -0
- package/dist/esm/v3/react/view/fields.js +43 -0
- package/dist/esm/v3/react/view/host.js +32 -0
- package/dist/esm/v3/react/view/registry.js +16 -0
- package/dist/esm/v3/react/view/root.js +33 -0
- package/dist/esm/v3/react/view/templates.js +47 -0
- package/dist/types/common/types/Form.d.ts +9 -32
- package/dist/types/common/types/Utils.d.ts +11 -0
- package/dist/types/common/types/index.d.ts +2 -0
- package/dist/types/index.d.ts +6 -4
- package/dist/types/v3/codemod/bindings.d.ts +18 -0
- package/dist/types/v3/codemod/cli.d.ts +2 -0
- package/dist/types/v3/codemod/migrate.d.ts +8 -0
- package/dist/types/v3/codemod/package.d.ts +2 -0
- package/dist/types/v3/codemod/slots.d.ts +13 -0
- package/dist/types/v3/codemod/transform.d.ts +29 -0
- package/dist/types/v3/document/fromDocument.d.ts +22 -0
- package/dist/types/v3/document/index.d.ts +4 -0
- package/dist/types/v3/document/render.d.ts +11 -0
- package/dist/types/v3/raw/compat/v2utils.d.ts +14 -0
- package/dist/types/v3/raw/core/arrays.d.ts +22 -0
- package/dist/types/v3/raw/core/choiceStyle.d.ts +4 -0
- package/dist/types/v3/raw/core/conditionals.d.ts +6 -0
- package/dist/types/v3/raw/core/dates.d.ts +8 -0
- package/dist/types/v3/raw/core/defaults.d.ts +15 -0
- package/dist/types/v3/raw/core/enums.d.ts +18 -0
- package/dist/types/v3/raw/core/initialValues.d.ts +12 -0
- package/dist/types/v3/raw/core/issues.d.ts +17 -0
- package/dist/types/v3/raw/core/json.d.ts +52 -0
- package/dist/types/v3/raw/core/merge.d.ts +6 -0
- package/dist/types/v3/raw/core/paths.d.ts +17 -0
- package/dist/types/v3/raw/core/policies/fileUploadView.d.ts +2 -0
- package/dist/types/v3/raw/core/policies/optionalNumberInitial.d.ts +4 -0
- package/dist/types/v3/raw/core/policies/storedFormats.d.ts +4 -0
- package/dist/types/v3/raw/core/refs.d.ts +41 -0
- package/dist/types/v3/raw/core/schemaType.d.ts +16 -0
- package/dist/types/v3/raw/core/titles.d.ts +2 -0
- package/dist/types/v3/raw/core/trail.d.ts +5 -0
- package/dist/types/v3/raw/core/uiProps.d.ts +12 -0
- package/dist/types/v3/raw/core/uiSchema.d.ts +19 -0
- package/dist/types/v3/raw/dom/bind.d.ts +2 -0
- package/dist/types/v3/raw/dom/build.d.ts +10 -0
- package/dist/types/v3/raw/dom/controller.d.ts +37 -0
- package/dist/types/v3/raw/dom/core.d.ts +43 -0
- package/dist/types/v3/raw/dom/delegate.d.ts +18 -0
- package/dist/types/v3/raw/dom/effects.d.ts +18 -0
- package/dist/types/v3/raw/dom/elements.d.ts +17 -0
- package/dist/types/v3/raw/dom/emitter.d.ts +8 -0
- package/dist/types/v3/raw/dom/nodes.d.ts +3 -0
- package/dist/types/v3/raw/dom/render.d.ts +2 -0
- package/dist/types/v3/raw/dom/types.d.ts +112 -0
- package/dist/types/v3/raw/dom/upload.d.ts +16 -0
- package/dist/types/v3/raw/i18n/en.d.ts +42 -0
- package/dist/types/v3/raw/i18n/fi.d.ts +2 -0
- package/dist/types/v3/raw/i18n/index.d.ts +9 -0
- package/dist/types/v3/raw/index.d.ts +43 -0
- package/dist/types/v3/raw/model/classes.d.ts +2 -0
- package/dist/types/v3/raw/model/form/actions.d.ts +41 -0
- package/dist/types/v3/raw/model/form/any.d.ts +5 -0
- package/dist/types/v3/raw/model/form/appearance.d.ts +9 -0
- package/dist/types/v3/raw/model/form/array.d.ts +4 -0
- package/dist/types/v3/raw/model/form/choice.d.ts +16 -0
- package/dist/types/v3/raw/model/form/chrome.d.ts +20 -0
- package/dist/types/v3/raw/model/form/componentTable.d.ts +2 -0
- package/dist/types/v3/raw/model/form/date.d.ts +13 -0
- package/dist/types/v3/raw/model/form/dispatch.d.ts +13 -0
- package/dist/types/v3/raw/model/form/iconData.d.ts +4 -0
- package/dist/types/v3/raw/model/form/icons.d.ts +2 -0
- package/dist/types/v3/raw/model/form/index.d.ts +38 -0
- package/dist/types/v3/raw/model/form/leaf.d.ts +29 -0
- package/dist/types/v3/raw/model/form/markup.d.ts +39 -0
- package/dist/types/v3/raw/model/form/object.d.ts +9 -0
- package/dist/types/v3/raw/model/form/parts.d.ts +10 -0
- package/dist/types/v3/raw/model/form/searchable.d.ts +5 -0
- package/dist/types/v3/raw/model/form/templated.d.ts +14 -0
- package/dist/types/v3/raw/model/form/types.d.ts +179 -0
- package/dist/types/v3/raw/model/form/upload.d.ts +28 -0
- package/dist/types/v3/raw/model/host.d.ts +46 -0
- package/dist/types/v3/raw/model/styledChains.d.ts +1 -0
- package/dist/types/v3/raw/model/view/build.d.ts +21 -0
- package/dist/types/v3/raw/model/view/fields.d.ts +31 -0
- package/dist/types/v3/raw/model/view/index.d.ts +6 -0
- package/dist/types/v3/raw/model/view/markup.d.ts +39 -0
- package/dist/types/v3/raw/model/view/toVNode.d.ts +3 -0
- package/dist/types/v3/raw/model/view/types.d.ts +109 -0
- package/dist/types/v3/raw/model/view/values.d.ts +10 -0
- package/dist/types/v3/raw/model/vnode.d.ts +24 -0
- package/dist/types/v3/raw/sanitize/index.d.ts +2 -0
- package/dist/types/v3/raw/sanitize/sanitizeHtml.d.ts +30 -0
- package/dist/types/v3/raw/serialize/toDOM.d.ts +14 -0
- package/dist/types/v3/raw/serialize/toString.d.ts +4 -0
- package/dist/types/v3/raw/store/createStore.d.ts +39 -0
- package/dist/types/v3/raw/styles/color.d.ts +15 -0
- package/dist/types/v3/raw/styles/colorNames.d.ts +1 -0
- package/dist/types/v3/raw/styles/defaultStyles.d.ts +1 -0
- package/dist/types/v3/raw/styles/index.d.ts +8 -0
- package/dist/types/v3/raw/styles/themeToCssVars.d.ts +4 -0
- package/dist/types/v3/raw/styles/vars.d.ts +43 -0
- package/dist/types/v3/raw/validation/arrays.d.ts +16 -0
- package/dist/types/v3/raw/validation/conditions.d.ts +10 -0
- package/dist/types/v3/raw/validation/index.d.ts +30 -0
- package/dist/types/v3/raw/validation/keywords.d.ts +10 -0
- package/dist/types/v3/raw/validation/messages.d.ts +8 -0
- package/dist/types/v3/raw/validation/patterns.d.ts +8 -0
- package/dist/types/v3/react/chain.d.ts +1 -0
- package/dist/types/v3/react/compat.d.ts +4 -0
- package/dist/types/v3/react/componentsProp.d.ts +5 -0
- package/dist/types/v3/react/defined.d.ts +1 -0
- package/dist/types/v3/react/ejs/EJSField.d.ts +14 -0
- package/dist/types/v3/react/ejs/index.d.ts +1 -0
- package/dist/types/v3/react/form/components.d.ts +3 -0
- package/dist/types/v3/react/form/fields.d.ts +8 -0
- package/dist/types/v3/react/form/host.d.ts +9 -0
- package/dist/types/v3/react/form/registry.d.ts +46 -0
- package/dist/types/v3/react/form/root.d.ts +32 -0
- package/dist/types/v3/react/form/runtime.d.ts +3 -0
- package/dist/types/v3/react/form/templates.d.ts +1 -0
- package/dist/types/v3/react/form/upload.d.ts +3 -0
- package/dist/types/v3/react/form/uploadContexts.d.ts +34 -0
- package/dist/types/v3/react/form/useSetDefault.d.ts +5 -0
- package/dist/types/v3/react/hostCore.d.ts +24 -0
- package/dist/types/v3/react/index.d.ts +23 -0
- package/dist/types/v3/react/selector.d.ts +10 -0
- package/dist/types/v3/react/slots.d.ts +4 -0
- package/dist/types/v3/react/toReact.d.ts +10 -0
- package/dist/types/v3/react/view/components.d.ts +8 -0
- package/dist/types/v3/react/view/fields.d.ts +4 -0
- package/dist/types/v3/react/view/host.d.ts +6 -0
- package/dist/types/v3/react/view/registry.d.ts +34 -0
- package/dist/types/v3/react/view/root.d.ts +32 -0
- package/dist/types/v3/react/view/templates.d.ts +15 -0
- package/package.json +97 -11
- package/styles.css +187 -0
- package/dist/cjs/Form/Form.js +0 -38
- package/dist/cjs/Form/components/Clickable.js +0 -11
- package/dist/cjs/Form/components/ErrorMessage.js +0 -23
- package/dist/cjs/Form/components/FieldInfo.js +0 -144
- package/dist/cjs/Form/components/FieldInput.js +0 -86
- package/dist/cjs/Form/components/Form.js +0 -52
- package/dist/cjs/Form/components/Icon.js +0 -5
- package/dist/cjs/Form/components/RequiredIndicator.js +0 -9
- package/dist/cjs/Form/components/index.js +0 -58
- package/dist/cjs/Form/fields/AnyField/AnyField.js +0 -30
- package/dist/cjs/Form/fields/AnyField/index.js +0 -38
- package/dist/cjs/Form/fields/AnyField/styledComponents.js +0 -6
- package/dist/cjs/Form/fields/ArrayField/ArrayField.js +0 -130
- package/dist/cjs/Form/fields/ArrayField/index.js +0 -38
- package/dist/cjs/Form/fields/ArrayField/styledComponents.js +0 -22
- package/dist/cjs/Form/fields/BooleanField/BooleanField.js +0 -26
- package/dist/cjs/Form/fields/BooleanField/index.js +0 -38
- package/dist/cjs/Form/fields/BooleanField/styledComponents.js +0 -18
- package/dist/cjs/Form/fields/DateField/DateField.js +0 -26
- package/dist/cjs/Form/fields/DateField/DateInput.js +0 -121
- package/dist/cjs/Form/fields/DateField/dateParsing.js +0 -68
- package/dist/cjs/Form/fields/DateField/index.js +0 -42
- package/dist/cjs/Form/fields/DateField/styledComponents.js +0 -60
- package/dist/cjs/Form/fields/FileUploadField/FileUploadField.js +0 -69
- package/dist/cjs/Form/fields/FileUploadField/FileUploadFieldInput.js +0 -21
- package/dist/cjs/Form/fields/FileUploadField/index.js +0 -41
- package/dist/cjs/Form/fields/FileUploadField/styledComponents.js +0 -63
- package/dist/cjs/Form/fields/FilesUploadField/FilesUploadField.js +0 -102
- package/dist/cjs/Form/fields/FilesUploadField/FilesUploadFieldInput.js +0 -174
- package/dist/cjs/Form/fields/FilesUploadField/index.js +0 -41
- package/dist/cjs/Form/fields/FilesUploadField/styledComponents.js +0 -217
- package/dist/cjs/Form/fields/MultipleChoiceField/MultipleChoiceField.js +0 -35
- package/dist/cjs/Form/fields/MultipleChoiceField/MultipleChoiceFieldInput.js +0 -40
- package/dist/cjs/Form/fields/MultipleChoiceField/index.js +0 -41
- package/dist/cjs/Form/fields/MultipleChoiceField/styledComponents.js +0 -24
- package/dist/cjs/Form/fields/NullField/NullField.js +0 -15
- package/dist/cjs/Form/fields/NullField/index.js +0 -37
- package/dist/cjs/Form/fields/NumberField/NumberField.js +0 -16
- package/dist/cjs/Form/fields/NumberField/index.js +0 -38
- package/dist/cjs/Form/fields/NumberField/styledComponents.js +0 -6
- package/dist/cjs/Form/fields/ObjectField/ObjectField.js +0 -190
- package/dist/cjs/Form/fields/ObjectField/ObjectFieldSection.js +0 -17
- package/dist/cjs/Form/fields/ObjectField/index.js +0 -41
- package/dist/cjs/Form/fields/ObjectField/styledComponents.js +0 -50
- package/dist/cjs/Form/fields/ObjectField/types.js +0 -10
- package/dist/cjs/Form/fields/RadioField/RadioField.js +0 -19
- package/dist/cjs/Form/fields/RadioField/RadioFieldInput.js +0 -11
- package/dist/cjs/Form/fields/RadioField/index.js +0 -41
- package/dist/cjs/Form/fields/RadioField/styledComponents.js +0 -78
- package/dist/cjs/Form/fields/SchemaField/SchemaField.js +0 -38
- package/dist/cjs/Form/fields/SchemaField/index.js +0 -37
- package/dist/cjs/Form/fields/SearchableMultiTagSelectField/SearchableMultiTagSelectField.js +0 -20
- package/dist/cjs/Form/fields/SearchableMultiTagSelectField/SearchableMultiTagSelectFieldInput.js +0 -27
- package/dist/cjs/Form/fields/SearchableMultiTagSelectField/index.js +0 -41
- package/dist/cjs/Form/fields/SearchableMultiTagSelectField/styledComponents.js +0 -71
- package/dist/cjs/Form/fields/SearchableSelectField/SearchableSelectField.js +0 -147
- package/dist/cjs/Form/fields/SearchableSelectField/index.js +0 -40
- package/dist/cjs/Form/fields/SearchableSelectField/styledComponents.js +0 -53
- package/dist/cjs/Form/fields/StringField/StringField.js +0 -44
- package/dist/cjs/Form/fields/StringField/index.js +0 -37
- package/dist/cjs/Form/fields/StringField/styledComponents.js +0 -6
- package/dist/cjs/Form/fields/TextAreaField/TextAreaField.js +0 -21
- package/dist/cjs/Form/fields/TextAreaField/index.js +0 -38
- package/dist/cjs/Form/fields/TextAreaField/styledComponents.js +0 -17
- package/dist/cjs/Form/fields/ToggleField/ToggleField.js +0 -19
- package/dist/cjs/Form/fields/ToggleField/ToggleFieldInput.js +0 -11
- package/dist/cjs/Form/fields/ToggleField/index.js +0 -41
- package/dist/cjs/Form/fields/ToggleField/styledComponents.js +0 -58
- package/dist/cjs/Form/fields/index.js +0 -93
- package/dist/cjs/Form/hooks/index.js +0 -17
- package/dist/cjs/Form/hooks/useSetDefault.js +0 -32
- package/dist/cjs/Form/index.js +0 -26
- package/dist/cjs/Form/styles/common.js +0 -259
- package/dist/cjs/Form/templates/ArrayFieldTemplate/ArrayFieldTemplate.js +0 -36
- package/dist/cjs/Form/templates/ArrayFieldTemplate/index.js +0 -38
- package/dist/cjs/Form/templates/ArrayFieldTemplate/styledComponents.js +0 -28
- package/dist/cjs/Form/templates/CollapsibleObjectFieldTemplate/CollapsibleObjectFieldTemplate.js +0 -41
- package/dist/cjs/Form/templates/CollapsibleObjectFieldTemplate/index.js +0 -38
- package/dist/cjs/Form/templates/CollapsibleObjectFieldTemplate/styledComponents.js +0 -55
- package/dist/cjs/Form/templates/FieldTemplate/FieldTemplate.js +0 -28
- package/dist/cjs/Form/templates/FieldTemplate/index.js +0 -37
- package/dist/cjs/Form/templates/ObjectFieldTemplate/ObjectFieldTemplate.js +0 -32
- package/dist/cjs/Form/templates/ObjectFieldTemplate/index.js +0 -38
- package/dist/cjs/Form/templates/ObjectFieldTemplate/styledComponents.js +0 -57
- package/dist/cjs/Form/templates/index.js +0 -55
- package/dist/cjs/Form/types/index.js +0 -17
- package/dist/cjs/FormView/FormView.js +0 -36
- package/dist/cjs/FormView/FormViewRegistry.js +0 -19
- package/dist/cjs/FormView/components/Field.js +0 -131
- package/dist/cjs/FormView/components/Form.js +0 -9
- package/dist/cjs/FormView/components/Icon.js +0 -7
- package/dist/cjs/FormView/components/index.js +0 -56
- package/dist/cjs/FormView/fields/AnyField.js +0 -26
- package/dist/cjs/FormView/fields/ArrayField.js +0 -32
- package/dist/cjs/FormView/fields/BooleanField.js +0 -33
- package/dist/cjs/FormView/fields/DateField.js +0 -12
- package/dist/cjs/FormView/fields/EJSField.js +0 -39
- package/dist/cjs/FormView/fields/FileUploadField.js +0 -7
- package/dist/cjs/FormView/fields/FilesUploadField.js +0 -7
- package/dist/cjs/FormView/fields/MultipleChoiceField.js +0 -30
- package/dist/cjs/FormView/fields/NullField.js +0 -14
- package/dist/cjs/FormView/fields/NumberField.js +0 -12
- package/dist/cjs/FormView/fields/ObjectField/ObjectField.js +0 -57
- package/dist/cjs/FormView/fields/ObjectField/ObjectFieldSection.js +0 -11
- package/dist/cjs/FormView/fields/ObjectField/index.js +0 -41
- package/dist/cjs/FormView/fields/ObjectField/styledComponents.js +0 -6
- package/dist/cjs/FormView/fields/RadioField.js +0 -15
- package/dist/cjs/FormView/fields/SchemaField.js +0 -38
- package/dist/cjs/FormView/fields/SearchableMultiTagSelectField.js +0 -14
- package/dist/cjs/FormView/fields/SearchableSelectField.js +0 -13
- package/dist/cjs/FormView/fields/StringField.js +0 -24
- package/dist/cjs/FormView/fields/TextAreaField.js +0 -18
- package/dist/cjs/FormView/fields/ToggleField.js +0 -15
- package/dist/cjs/FormView/fields/index.js +0 -81
- package/dist/cjs/FormView/index.js +0 -25
- package/dist/cjs/FormView/templates/ArrayFieldTemplate/ArrayFieldTemplate.js +0 -20
- package/dist/cjs/FormView/templates/ArrayFieldTemplate/index.js +0 -38
- package/dist/cjs/FormView/templates/ArrayFieldTemplate/styledComponents.js +0 -15
- package/dist/cjs/FormView/templates/FieldTemplate/FieldTemplate.js +0 -18
- package/dist/cjs/FormView/templates/FieldTemplate/index.js +0 -37
- package/dist/cjs/FormView/templates/ObjectFieldTemplate/ObjectFieldTemplate.js +0 -30
- package/dist/cjs/FormView/templates/ObjectFieldTemplate/index.js +0 -38
- package/dist/cjs/FormView/templates/ObjectFieldTemplate/styledComponents.js +0 -65
- package/dist/cjs/FormView/templates/index.js +0 -52
- package/dist/cjs/common/FileUploadContext.js +0 -15
- package/dist/cjs/common/FilesUploadContext.js +0 -14
- package/dist/cjs/common/constants.js +0 -13
- package/dist/cjs/common/index.js +0 -20
- package/dist/cjs/utils/createInitialValues.js +0 -38
- package/dist/cjs/utils/createValidationSchema.js +0 -397
- package/dist/cjs/utils/deepOverlap.js +0 -18
- package/dist/cjs/utils/extractUiSchema.js +0 -22
- package/dist/cjs/utils/getEnums.js +0 -56
- package/dist/cjs/utils/getHiddenProperties.js +0 -11
- package/dist/cjs/utils/getStyle.js +0 -21
- package/dist/cjs/utils/getTitleAndDescription.js +0 -19
- package/dist/cjs/utils/getTypes.js +0 -60
- package/dist/cjs/utils/immutablySwapItems.js +0 -10
- package/dist/cjs/utils/index.js +0 -31
- package/dist/cjs/utils/mergeSchemas.js +0 -30
- package/dist/cjs/utils/orderAdditionalProperties.js +0 -12
- package/dist/cjs/utils/orderByUiSchema.js +0 -29
- package/dist/cjs/utils/resolveSchema.js +0 -117
- package/dist/cjs/utils/setTitleValues.js +0 -25
- package/dist/cjs/utils/solveReferences.js +0 -25
- package/dist/esm/Form/Form.js +0 -34
- package/dist/esm/Form/components/Clickable.js +0 -7
- package/dist/esm/Form/components/ErrorMessage.js +0 -16
- package/dist/esm/Form/components/FieldInfo.js +0 -140
- package/dist/esm/Form/components/FieldInput.js +0 -50
- package/dist/esm/Form/components/Form.js +0 -13
- package/dist/esm/Form/components/Icon.js +0 -2
- package/dist/esm/Form/components/RequiredIndicator.js +0 -6
- package/dist/esm/Form/components/index.js +0 -22
- package/dist/esm/Form/fields/AnyField/AnyField.js +0 -26
- package/dist/esm/Form/fields/AnyField/index.js +0 -2
- package/dist/esm/Form/fields/AnyField/styledComponents.js +0 -3
- package/dist/esm/Form/fields/ArrayField/ArrayField.js +0 -126
- package/dist/esm/Form/fields/ArrayField/index.js +0 -2
- package/dist/esm/Form/fields/ArrayField/styledComponents.js +0 -16
- package/dist/esm/Form/fields/BooleanField/BooleanField.js +0 -22
- package/dist/esm/Form/fields/BooleanField/index.js +0 -2
- package/dist/esm/Form/fields/BooleanField/styledComponents.js +0 -15
- package/dist/esm/Form/fields/DateField/DateField.js +0 -22
- package/dist/esm/Form/fields/DateField/DateInput.js +0 -117
- package/dist/esm/Form/fields/DateField/dateParsing.js +0 -62
- package/dist/esm/Form/fields/DateField/index.js +0 -3
- package/dist/esm/Form/fields/DateField/styledComponents.js +0 -54
- package/dist/esm/Form/fields/FileUploadField/FileUploadField.js +0 -65
- package/dist/esm/Form/fields/FileUploadField/FileUploadFieldInput.js +0 -17
- package/dist/esm/Form/fields/FileUploadField/index.js +0 -5
- package/dist/esm/Form/fields/FileUploadField/styledComponents.js +0 -57
- package/dist/esm/Form/fields/FilesUploadField/FilesUploadField.js +0 -98
- package/dist/esm/Form/fields/FilesUploadField/FilesUploadFieldInput.js +0 -137
- package/dist/esm/Form/fields/FilesUploadField/index.js +0 -5
- package/dist/esm/Form/fields/FilesUploadField/styledComponents.js +0 -211
- package/dist/esm/Form/fields/MultipleChoiceField/MultipleChoiceField.js +0 -31
- package/dist/esm/Form/fields/MultipleChoiceField/MultipleChoiceFieldInput.js +0 -36
- package/dist/esm/Form/fields/MultipleChoiceField/index.js +0 -5
- package/dist/esm/Form/fields/MultipleChoiceField/styledComponents.js +0 -18
- package/dist/esm/Form/fields/NullField/NullField.js +0 -11
- package/dist/esm/Form/fields/NullField/index.js +0 -1
- package/dist/esm/Form/fields/NumberField/NumberField.js +0 -12
- package/dist/esm/Form/fields/NumberField/index.js +0 -2
- package/dist/esm/Form/fields/NumberField/styledComponents.js +0 -3
- package/dist/esm/Form/fields/ObjectField/ObjectField.js +0 -186
- package/dist/esm/Form/fields/ObjectField/ObjectFieldSection.js +0 -13
- package/dist/esm/Form/fields/ObjectField/index.js +0 -5
- package/dist/esm/Form/fields/ObjectField/styledComponents.js +0 -47
- package/dist/esm/Form/fields/ObjectField/types.js +0 -7
- package/dist/esm/Form/fields/RadioField/RadioField.js +0 -15
- package/dist/esm/Form/fields/RadioField/RadioFieldInput.js +0 -7
- package/dist/esm/Form/fields/RadioField/index.js +0 -5
- package/dist/esm/Form/fields/RadioField/styledComponents.js +0 -75
- package/dist/esm/Form/fields/SchemaField/SchemaField.js +0 -34
- package/dist/esm/Form/fields/SchemaField/index.js +0 -1
- package/dist/esm/Form/fields/SearchableMultiTagSelectField/SearchableMultiTagSelectField.js +0 -16
- package/dist/esm/Form/fields/SearchableMultiTagSelectField/SearchableMultiTagSelectFieldInput.js +0 -23
- package/dist/esm/Form/fields/SearchableMultiTagSelectField/index.js +0 -5
- package/dist/esm/Form/fields/SearchableMultiTagSelectField/styledComponents.js +0 -68
- package/dist/esm/Form/fields/SearchableSelectField/SearchableSelectField.js +0 -143
- package/dist/esm/Form/fields/SearchableSelectField/index.js +0 -4
- package/dist/esm/Form/fields/SearchableSelectField/styledComponents.js +0 -50
- package/dist/esm/Form/fields/StringField/StringField.js +0 -40
- package/dist/esm/Form/fields/StringField/index.js +0 -1
- package/dist/esm/Form/fields/StringField/styledComponents.js +0 -3
- package/dist/esm/Form/fields/TextAreaField/TextAreaField.js +0 -17
- package/dist/esm/Form/fields/TextAreaField/index.js +0 -2
- package/dist/esm/Form/fields/TextAreaField/styledComponents.js +0 -11
- package/dist/esm/Form/fields/ToggleField/ToggleField.js +0 -15
- package/dist/esm/Form/fields/ToggleField/ToggleFieldInput.js +0 -7
- package/dist/esm/Form/fields/ToggleField/index.js +0 -5
- package/dist/esm/Form/fields/ToggleField/styledComponents.js +0 -55
- package/dist/esm/Form/fields/index.js +0 -57
- package/dist/esm/Form/hooks/index.js +0 -1
- package/dist/esm/Form/hooks/useSetDefault.js +0 -28
- package/dist/esm/Form/index.js +0 -7
- package/dist/esm/Form/styles/common.js +0 -256
- package/dist/esm/Form/templates/ArrayFieldTemplate/ArrayFieldTemplate.js +0 -32
- package/dist/esm/Form/templates/ArrayFieldTemplate/index.js +0 -2
- package/dist/esm/Form/templates/ArrayFieldTemplate/styledComponents.js +0 -24
- package/dist/esm/Form/templates/CollapsibleObjectFieldTemplate/CollapsibleObjectFieldTemplate.js +0 -37
- package/dist/esm/Form/templates/CollapsibleObjectFieldTemplate/index.js +0 -2
- package/dist/esm/Form/templates/CollapsibleObjectFieldTemplate/styledComponents.js +0 -51
- package/dist/esm/Form/templates/FieldTemplate/FieldTemplate.js +0 -24
- package/dist/esm/Form/templates/FieldTemplate/index.js +0 -1
- package/dist/esm/Form/templates/ObjectFieldTemplate/ObjectFieldTemplate.js +0 -28
- package/dist/esm/Form/templates/ObjectFieldTemplate/index.js +0 -2
- package/dist/esm/Form/templates/ObjectFieldTemplate/styledComponents.js +0 -53
- package/dist/esm/Form/templates/index.js +0 -19
- package/dist/esm/Form/types/index.js +0 -1
- package/dist/esm/FormView/FormView.js +0 -29
- package/dist/esm/FormView/FormViewRegistry.js +0 -13
- package/dist/esm/FormView/components/Field.js +0 -123
- package/dist/esm/FormView/components/Form.js +0 -6
- package/dist/esm/FormView/components/Icon.js +0 -4
- package/dist/esm/FormView/components/index.js +0 -17
- package/dist/esm/FormView/fields/AnyField.js +0 -22
- package/dist/esm/FormView/fields/ArrayField.js +0 -28
- package/dist/esm/FormView/fields/BooleanField.js +0 -29
- package/dist/esm/FormView/fields/DateField.js +0 -8
- package/dist/esm/FormView/fields/EJSField.js +0 -32
- package/dist/esm/FormView/fields/FileUploadField.js +0 -3
- package/dist/esm/FormView/fields/FilesUploadField.js +0 -3
- package/dist/esm/FormView/fields/MultipleChoiceField.js +0 -26
- package/dist/esm/FormView/fields/NullField.js +0 -10
- package/dist/esm/FormView/fields/NumberField.js +0 -8
- package/dist/esm/FormView/fields/ObjectField/ObjectField.js +0 -53
- package/dist/esm/FormView/fields/ObjectField/ObjectFieldSection.js +0 -7
- package/dist/esm/FormView/fields/ObjectField/index.js +0 -5
- package/dist/esm/FormView/fields/ObjectField/styledComponents.js +0 -3
- package/dist/esm/FormView/fields/RadioField.js +0 -11
- package/dist/esm/FormView/fields/SchemaField.js +0 -34
- package/dist/esm/FormView/fields/SearchableMultiTagSelectField.js +0 -10
- package/dist/esm/FormView/fields/SearchableSelectField.js +0 -9
- package/dist/esm/FormView/fields/StringField.js +0 -20
- package/dist/esm/FormView/fields/TextAreaField.js +0 -14
- package/dist/esm/FormView/fields/ToggleField.js +0 -11
- package/dist/esm/FormView/fields/index.js +0 -45
- package/dist/esm/FormView/index.js +0 -6
- package/dist/esm/FormView/templates/ArrayFieldTemplate/ArrayFieldTemplate.js +0 -16
- package/dist/esm/FormView/templates/ArrayFieldTemplate/index.js +0 -2
- package/dist/esm/FormView/templates/ArrayFieldTemplate/styledComponents.js +0 -11
- package/dist/esm/FormView/templates/FieldTemplate/FieldTemplate.js +0 -14
- package/dist/esm/FormView/templates/FieldTemplate/index.js +0 -1
- package/dist/esm/FormView/templates/ObjectFieldTemplate/ObjectFieldTemplate.js +0 -26
- package/dist/esm/FormView/templates/ObjectFieldTemplate/index.js +0 -2
- package/dist/esm/FormView/templates/ObjectFieldTemplate/styledComponents.js +0 -58
- package/dist/esm/FormView/templates/index.js +0 -16
- package/dist/esm/common/FileUploadContext.js +0 -12
- package/dist/esm/common/FilesUploadContext.js +0 -11
- package/dist/esm/common/constants.js +0 -10
- package/dist/esm/common/index.js +0 -4
- package/dist/esm/utils/createInitialValues.js +0 -35
- package/dist/esm/utils/createValidationSchema.js +0 -361
- package/dist/esm/utils/deepOverlap.js +0 -14
- package/dist/esm/utils/extractUiSchema.js +0 -18
- package/dist/esm/utils/getEnums.js +0 -51
- package/dist/esm/utils/getHiddenProperties.js +0 -7
- package/dist/esm/utils/getStyle.js +0 -18
- package/dist/esm/utils/getTitleAndDescription.js +0 -14
- package/dist/esm/utils/getTypes.js +0 -53
- package/dist/esm/utils/immutablySwapItems.js +0 -7
- package/dist/esm/utils/index.js +0 -15
- package/dist/esm/utils/mergeSchemas.js +0 -26
- package/dist/esm/utils/orderAdditionalProperties.js +0 -9
- package/dist/esm/utils/orderByUiSchema.js +0 -26
- package/dist/esm/utils/resolveSchema.js +0 -112
- package/dist/esm/utils/setTitleValues.js +0 -21
- package/dist/esm/utils/solveReferences.js +0 -22
- package/dist/types/Form/Form.d.ts +0 -2
- package/dist/types/Form/FormRegistry.d.ts +0 -3
- package/dist/types/Form/components/Clickable.d.ts +0 -15
- package/dist/types/Form/components/ErrorMessage.d.ts +0 -3
- package/dist/types/Form/components/FieldInfo.d.ts +0 -10
- package/dist/types/Form/components/FieldInput.d.ts +0 -19
- package/dist/types/Form/components/Form.d.ts +0 -6
- package/dist/types/Form/components/Icon.d.ts +0 -1
- package/dist/types/Form/components/RequiredIndicator.d.ts +0 -1
- package/dist/types/Form/components/index.d.ts +0 -249
- package/dist/types/Form/fields/AnyField/AnyField.d.ts +0 -2
- package/dist/types/Form/fields/AnyField/index.d.ts +0 -2
- package/dist/types/Form/fields/AnyField/styledComponents.d.ts +0 -3
- package/dist/types/Form/fields/ArrayField/ArrayField.d.ts +0 -2
- package/dist/types/Form/fields/ArrayField/index.d.ts +0 -2
- package/dist/types/Form/fields/ArrayField/styledComponents.d.ts +0 -13
- package/dist/types/Form/fields/BooleanField/BooleanField.d.ts +0 -2
- package/dist/types/Form/fields/BooleanField/index.d.ts +0 -2
- package/dist/types/Form/fields/BooleanField/styledComponents.d.ts +0 -3
- package/dist/types/Form/fields/DateField/DateField.d.ts +0 -2
- package/dist/types/Form/fields/DateField/DateInput.d.ts +0 -17
- package/dist/types/Form/fields/DateField/dateParsing.d.ts +0 -9
- package/dist/types/Form/fields/DateField/index.d.ts +0 -3
- package/dist/types/Form/fields/DateField/styledComponents.d.ts +0 -4
- package/dist/types/Form/fields/FileUploadField/FileUploadField.d.ts +0 -2
- package/dist/types/Form/fields/FileUploadField/FileUploadFieldInput.d.ts +0 -25
- package/dist/types/Form/fields/FileUploadField/index.d.ts +0 -17
- package/dist/types/Form/fields/FileUploadField/styledComponents.d.ts +0 -11
- package/dist/types/Form/fields/FilesUploadField/FilesUploadField.d.ts +0 -2
- package/dist/types/Form/fields/FilesUploadField/FilesUploadFieldInput.d.ts +0 -42
- package/dist/types/Form/fields/FilesUploadField/index.d.ts +0 -37
- package/dist/types/Form/fields/FilesUploadField/styledComponents.d.ts +0 -32
- package/dist/types/Form/fields/MultipleChoiceField/MultipleChoiceField.d.ts +0 -2
- package/dist/types/Form/fields/MultipleChoiceField/MultipleChoiceFieldInput.d.ts +0 -17
- package/dist/types/Form/fields/MultipleChoiceField/index.d.ts +0 -22
- package/dist/types/Form/fields/MultipleChoiceField/styledComponents.d.ts +0 -16
- package/dist/types/Form/fields/NullField/NullField.d.ts +0 -2
- package/dist/types/Form/fields/NullField/index.d.ts +0 -1
- package/dist/types/Form/fields/NumberField/NumberField.d.ts +0 -2
- package/dist/types/Form/fields/NumberField/index.d.ts +0 -2
- package/dist/types/Form/fields/NumberField/styledComponents.d.ts +0 -1
- package/dist/types/Form/fields/ObjectField/ObjectField.d.ts +0 -2
- package/dist/types/Form/fields/ObjectField/ObjectFieldSection.d.ts +0 -3
- package/dist/types/Form/fields/ObjectField/index.d.ts +0 -20
- package/dist/types/Form/fields/ObjectField/styledComponents.d.ts +0 -15
- package/dist/types/Form/fields/ObjectField/types.d.ts +0 -19
- package/dist/types/Form/fields/RadioField/RadioField.d.ts +0 -2
- package/dist/types/Form/fields/RadioField/RadioFieldInput.d.ts +0 -11
- package/dist/types/Form/fields/RadioField/index.d.ts +0 -22
- package/dist/types/Form/fields/RadioField/styledComponents.d.ts +0 -16
- package/dist/types/Form/fields/SchemaField/SchemaField.d.ts +0 -2
- package/dist/types/Form/fields/SchemaField/index.d.ts +0 -1
- package/dist/types/Form/fields/SearchableMultiTagSelectField/SearchableMultiTagSelectField.d.ts +0 -2
- package/dist/types/Form/fields/SearchableMultiTagSelectField/SearchableMultiTagSelectFieldInput.d.ts +0 -11
- package/dist/types/Form/fields/SearchableMultiTagSelectField/index.d.ts +0 -21
- package/dist/types/Form/fields/SearchableMultiTagSelectField/styledComponents.d.ts +0 -15
- package/dist/types/Form/fields/SearchableSelectField/SearchableSelectField.d.ts +0 -2
- package/dist/types/Form/fields/SearchableSelectField/index.d.ts +0 -2
- package/dist/types/Form/fields/SearchableSelectField/styledComponents.d.ts +0 -22
- package/dist/types/Form/fields/SearchableSelectField/types.d.ts +0 -25
- package/dist/types/Form/fields/StringField/StringField.d.ts +0 -2
- package/dist/types/Form/fields/StringField/index.d.ts +0 -1
- package/dist/types/Form/fields/StringField/styledComponents.d.ts +0 -3
- package/dist/types/Form/fields/TextAreaField/TextAreaField.d.ts +0 -2
- package/dist/types/Form/fields/TextAreaField/index.d.ts +0 -2
- package/dist/types/Form/fields/TextAreaField/styledComponents.d.ts +0 -5
- package/dist/types/Form/fields/ToggleField/ToggleField.d.ts +0 -2
- package/dist/types/Form/fields/ToggleField/ToggleFieldInput.d.ts +0 -6
- package/dist/types/Form/fields/ToggleField/index.d.ts +0 -13
- package/dist/types/Form/fields/ToggleField/styledComponents.d.ts +0 -7
- package/dist/types/Form/fields/index.d.ts +0 -191
- package/dist/types/Form/hooks/index.d.ts +0 -1
- package/dist/types/Form/hooks/useSetDefault.d.ts +0 -2
- package/dist/types/Form/index.d.ts +0 -8
- package/dist/types/Form/styles/common.d.ts +0 -2
- package/dist/types/Form/templates/ArrayFieldTemplate/ArrayFieldTemplate.d.ts +0 -2
- package/dist/types/Form/templates/ArrayFieldTemplate/index.d.ts +0 -2
- package/dist/types/Form/templates/ArrayFieldTemplate/styledComponents.d.ts +0 -30
- package/dist/types/Form/templates/CollapsibleObjectFieldTemplate/CollapsibleObjectFieldTemplate.d.ts +0 -2
- package/dist/types/Form/templates/CollapsibleObjectFieldTemplate/index.d.ts +0 -2
- package/dist/types/Form/templates/CollapsibleObjectFieldTemplate/styledComponents.d.ts +0 -36
- package/dist/types/Form/templates/FieldTemplate/FieldTemplate.d.ts +0 -2
- package/dist/types/Form/templates/FieldTemplate/index.d.ts +0 -1
- package/dist/types/Form/templates/ObjectFieldTemplate/ObjectFieldTemplate.d.ts +0 -2
- package/dist/types/Form/templates/ObjectFieldTemplate/index.d.ts +0 -2
- package/dist/types/Form/templates/ObjectFieldTemplate/styledComponents.d.ts +0 -27
- package/dist/types/Form/templates/index.d.ts +0 -57
- package/dist/types/Form/types/FormRegistryContext.d.ts +0 -23
- package/dist/types/Form/types/index.d.ts +0 -1
- package/dist/types/FormView/FormView.d.ts +0 -4
- package/dist/types/FormView/FormViewRegistry.d.ts +0 -3
- package/dist/types/FormView/components/Field.d.ts +0 -35
- package/dist/types/FormView/components/Form.d.ts +0 -1
- package/dist/types/FormView/components/Icon.d.ts +0 -1
- package/dist/types/FormView/components/index.d.ts +0 -53
- package/dist/types/FormView/fields/AnyField.d.ts +0 -2
- package/dist/types/FormView/fields/ArrayField.d.ts +0 -2
- package/dist/types/FormView/fields/BooleanField.d.ts +0 -2
- package/dist/types/FormView/fields/DateField.d.ts +0 -2
- package/dist/types/FormView/fields/EJSField.d.ts +0 -2
- package/dist/types/FormView/fields/FileUploadField.d.ts +0 -2
- package/dist/types/FormView/fields/FilesUploadField.d.ts +0 -2
- package/dist/types/FormView/fields/MultipleChoiceField.d.ts +0 -2
- package/dist/types/FormView/fields/NullField.d.ts +0 -2
- package/dist/types/FormView/fields/NumberField.d.ts +0 -2
- package/dist/types/FormView/fields/ObjectField/ObjectField.d.ts +0 -2
- package/dist/types/FormView/fields/ObjectField/ObjectFieldSection.d.ts +0 -7
- package/dist/types/FormView/fields/ObjectField/index.d.ts +0 -8
- package/dist/types/FormView/fields/ObjectField/styledComponents.d.ts +0 -2
- package/dist/types/FormView/fields/RadioField.d.ts +0 -2
- package/dist/types/FormView/fields/SchemaField.d.ts +0 -2
- package/dist/types/FormView/fields/SearchableMultiTagSelectField.d.ts +0 -2
- package/dist/types/FormView/fields/SearchableSelectField.d.ts +0 -2
- package/dist/types/FormView/fields/StringField.d.ts +0 -2
- package/dist/types/FormView/fields/TextAreaField.d.ts +0 -2
- package/dist/types/FormView/fields/ToggleField.d.ts +0 -2
- package/dist/types/FormView/fields/index.d.ts +0 -9
- package/dist/types/FormView/index.d.ts +0 -7
- package/dist/types/FormView/templates/ArrayFieldTemplate/ArrayFieldTemplate.d.ts +0 -2
- package/dist/types/FormView/templates/ArrayFieldTemplate/index.d.ts +0 -2
- package/dist/types/FormView/templates/ArrayFieldTemplate/styledComponents.d.ts +0 -10
- package/dist/types/FormView/templates/FieldTemplate/FieldTemplate.d.ts +0 -2
- package/dist/types/FormView/templates/FieldTemplate/index.d.ts +0 -1
- package/dist/types/FormView/templates/ObjectFieldTemplate/ObjectFieldTemplate.d.ts +0 -2
- package/dist/types/FormView/templates/ObjectFieldTemplate/index.d.ts +0 -2
- package/dist/types/FormView/templates/ObjectFieldTemplate/styledComponents.d.ts +0 -10
- package/dist/types/FormView/templates/index.d.ts +0 -23
- package/dist/types/FormView/types/FormViewRegistryContext.d.ts +0 -21
- package/dist/types/FormView/types/index.d.ts +0 -1
- package/dist/types/common/FileUploadContext.d.ts +0 -18
- package/dist/types/common/FilesUploadContext.d.ts +0 -17
- package/dist/types/common/constants.d.ts +0 -10
- package/dist/types/common/index.d.ts +0 -4
- package/dist/types/styles/types.d.ts +0 -216
- package/dist/types/utils/createInitialValues.d.ts +0 -7
- package/dist/types/utils/createValidationSchema.d.ts +0 -31
- package/dist/types/utils/deepOverlap.d.ts +0 -1
- package/dist/types/utils/extractUiSchema.d.ts +0 -9
- package/dist/types/utils/getEnums.d.ts +0 -30
- package/dist/types/utils/getHiddenProperties.d.ts +0 -2
- package/dist/types/utils/getStyle.d.ts +0 -5
- package/dist/types/utils/getTitleAndDescription.d.ts +0 -12
- package/dist/types/utils/getTypes.d.ts +0 -5
- package/dist/types/utils/immutablySwapItems.d.ts +0 -1
- package/dist/types/utils/index.d.ts +0 -15
- package/dist/types/utils/mergeSchemas.d.ts +0 -1
- package/dist/types/utils/orderAdditionalProperties.d.ts +0 -2
- package/dist/types/utils/orderByUiSchema.d.ts +0 -2
- package/dist/types/utils/resolveSchema.d.ts +0 -4
- package/dist/types/utils/setTitleValues.d.ts +0 -1
- package/dist/types/utils/solveReferences.d.ts +0 -10
- /package/dist/cjs/{Form/fields/SearchableSelectField/types.js → common/types/Utils.js} +0 -0
- /package/dist/cjs/{styles → v3/raw/dom}/types.js +0 -0
- /package/dist/cjs/{Form/types/FormRegistryContext.js → v3/raw/model/form/types.js} +0 -0
- /package/dist/cjs/{FormView/types/FormViewRegistryContext.js → v3/raw/model/host.js} +0 -0
- /package/dist/cjs/{FormView/types/index.js → v3/raw/model/view/types.js} +0 -0
- /package/dist/esm/{Form/fields/SearchableSelectField/types.js → common/types/Utils.js} +0 -0
- /package/dist/esm/{styles → v3/raw/dom}/types.js +0 -0
- /package/dist/esm/{Form/types/FormRegistryContext.js → v3/raw/model/form/types.js} +0 -0
- /package/dist/esm/{FormView/types/FormViewRegistryContext.js → v3/raw/model/host.js} +0 -0
- /package/dist/esm/{FormView/types/index.js → v3/raw/model/view/types.js} +0 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { FormUiState } from "../model/form";
|
|
2
|
+
import type { VNode } from "../model/vnode";
|
|
3
|
+
import type { FormState, Store } from "../store/createStore";
|
|
4
|
+
import type { ControllerInit, ControllerOptions, FormEventType, Handler } from "./types";
|
|
5
|
+
export type ControllerUpdate = {
|
|
6
|
+
schema?: any;
|
|
7
|
+
uiSchema?: any;
|
|
8
|
+
values?: unknown;
|
|
9
|
+
options?: Partial<ControllerOptions>;
|
|
10
|
+
};
|
|
11
|
+
export declare class FormController {
|
|
12
|
+
private core;
|
|
13
|
+
private unbind?;
|
|
14
|
+
private unsubscribe;
|
|
15
|
+
private destroyed;
|
|
16
|
+
constructor(init: ControllerInit);
|
|
17
|
+
/** The RAW store (the state adapter): values, errors, touched, isSubmitting, submitCount. */
|
|
18
|
+
get store(): Store;
|
|
19
|
+
/** Draws the form into `target` and binds its events; idempotent per target. */
|
|
20
|
+
mount(target: HTMLElement): void;
|
|
21
|
+
/** New schema / uiSchema / values / options; the form is redrawn (in place). */
|
|
22
|
+
update(partial: ControllerUpdate): void;
|
|
23
|
+
/** Removes every listener (the document one too) and stops the uploads' timers; idempotent. */
|
|
24
|
+
destroy(): void;
|
|
25
|
+
getState(): FormState & {
|
|
26
|
+
ui: FormUiState;
|
|
27
|
+
};
|
|
28
|
+
/** The VNode tree of the last render: what every serialiser draws (toString / toDOM / toReact). */
|
|
29
|
+
getViewModel(): VNode | undefined;
|
|
30
|
+
/** The 2.x error map of `values`; without values, of the current ones, which then become the errors. */
|
|
31
|
+
validate(values?: unknown): Promise<unknown>;
|
|
32
|
+
/** What the submit button does: touch all, validate, then `submit` and `options.onSubmit` when valid. */
|
|
33
|
+
submit(): Promise<void>;
|
|
34
|
+
on<T extends FormEventType>(type: T, handler: Handler<T>): () => void;
|
|
35
|
+
off<T extends FormEventType>(type: T, handler: Handler<T>): void;
|
|
36
|
+
once<T extends FormEventType>(type: T, handler: Handler<T>): () => void;
|
|
37
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { FormAction, FormUiState } from "../model/form";
|
|
2
|
+
import type { VNode } from "../model/vnode";
|
|
3
|
+
import type { Store } from "../store/createStore";
|
|
4
|
+
import type { UploadHost } from "./upload";
|
|
5
|
+
import type { ControllerInit, ControllerOptions, FormEvent } from "./types";
|
|
6
|
+
import { createEmitter } from "./emitter";
|
|
7
|
+
export type Core = {
|
|
8
|
+
schema: any;
|
|
9
|
+
uiSchema: any;
|
|
10
|
+
options: ControllerOptions;
|
|
11
|
+
ui: FormUiState;
|
|
12
|
+
store: Store;
|
|
13
|
+
emitter: ReturnType<typeof createEmitter>;
|
|
14
|
+
uploads: UploadHost;
|
|
15
|
+
target?: HTMLElement;
|
|
16
|
+
/** The `on` descriptors of every element drawn (event delegation). */
|
|
17
|
+
records: WeakMap<Element, Record<string, unknown>>;
|
|
18
|
+
/** Searchable selects open in the last render: their document keydown actions (instance-scoped, Q-SEL-1). */
|
|
19
|
+
keyActions: Map<string, {
|
|
20
|
+
action: FormAction;
|
|
21
|
+
el: Element;
|
|
22
|
+
}>;
|
|
23
|
+
/** A text control's value as last drawn or reported (React's value tracker: a change fires once per new value). */
|
|
24
|
+
tracked: WeakMap<Element, string>;
|
|
25
|
+
/** The node paths of the last render (§2.7a appearances). */
|
|
26
|
+
seen: Set<string>;
|
|
27
|
+
/** Issues already emitted (a code is reported once per schema, not once per render). */
|
|
28
|
+
reported: Set<string>;
|
|
29
|
+
/** The active option scrolled into view per searchable path. */
|
|
30
|
+
scrolled: Map<string, number>;
|
|
31
|
+
/** The 2.x SchemaField props of the custom fields drawn (slot renderers get them). */
|
|
32
|
+
slotProps: Map<string, Record<string, unknown>>;
|
|
33
|
+
tree?: VNode;
|
|
34
|
+
scheduled: boolean;
|
|
35
|
+
render: () => void;
|
|
36
|
+
schedule: () => void;
|
|
37
|
+
emit: (event: FormEvent) => void;
|
|
38
|
+
dispatch: (action: FormAction, event?: object) => void;
|
|
39
|
+
element: (id: string) => HTMLElement | undefined;
|
|
40
|
+
/** Runs a store update; a failure is reported, never thrown. */
|
|
41
|
+
act: (update: () => Promise<unknown>) => void;
|
|
42
|
+
};
|
|
43
|
+
export declare const createCore: (init: ControllerInit, render: (core: Core) => void) => Core;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type DomHandler = (on: Record<string, any>, event: Event, el: Element) => void;
|
|
2
|
+
export declare const delegate: (root: Element, records: WeakMap<Element, Record<string, unknown>>, handle: DomHandler) => () => void;
|
|
3
|
+
/** Controls whose value is typed: React's onChange fires on `input` for them, on `change` for the rest. */
|
|
4
|
+
export declare const isTextControl: (el: Element) => boolean;
|
|
5
|
+
/** What a control's change carried (the ControlEvent of applyAction). */
|
|
6
|
+
export declare const controlEvent: (el: any) => {
|
|
7
|
+
checked: boolean;
|
|
8
|
+
value: any;
|
|
9
|
+
selected?: undefined;
|
|
10
|
+
} | {
|
|
11
|
+
selected: any[];
|
|
12
|
+
checked?: undefined;
|
|
13
|
+
value?: undefined;
|
|
14
|
+
} | {
|
|
15
|
+
value: any;
|
|
16
|
+
checked?: undefined;
|
|
17
|
+
selected?: undefined;
|
|
18
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ControlEvent, FormAction, FormUiState } from "../model/form";
|
|
2
|
+
import type { Store } from "../store/createStore";
|
|
3
|
+
import type { FormEvent } from "./types";
|
|
4
|
+
export type EffectHost = {
|
|
5
|
+
store: Store;
|
|
6
|
+
ui: () => FormUiState;
|
|
7
|
+
setUi: (ui: FormUiState) => void;
|
|
8
|
+
emit: (event: FormEvent) => void;
|
|
9
|
+
askKey: () => string | null | undefined;
|
|
10
|
+
picker: (id: string) => void;
|
|
11
|
+
/** A store promise that failed (formik logged these from submitForm): reported, never thrown. */
|
|
12
|
+
failed: (error: unknown) => void;
|
|
13
|
+
};
|
|
14
|
+
export declare const runAction: (host: EffectHost, action: FormAction, event?: ControlEvent) => void;
|
|
15
|
+
/** 2.x DateInput openPicker on an element of this form: the native picker, or focus + click. */
|
|
16
|
+
export declare const openPicker: (el: (HTMLElement & {
|
|
17
|
+
showPicker?: () => void;
|
|
18
|
+
}) | undefined) => void;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ControllerOptions } from "./types";
|
|
2
|
+
import { FormController } from "./controller";
|
|
3
|
+
export type FjsfFormElement = HTMLElement & {
|
|
4
|
+
schema: any;
|
|
5
|
+
uiSchema: any;
|
|
6
|
+
values: unknown;
|
|
7
|
+
options: ControllerOptions;
|
|
8
|
+
readonly controller: FormController | undefined;
|
|
9
|
+
};
|
|
10
|
+
/** Registers <fjsf-form> and <fjsf-form-view> (each once) in `registry`; without one (server-side) it does nothing. */
|
|
11
|
+
export declare const defineFjsfElements: (registry?: CustomElementRegistry | undefined) => void;
|
|
12
|
+
declare global {
|
|
13
|
+
interface HTMLElementTagNameMap {
|
|
14
|
+
"fjsf-form": FjsfFormElement;
|
|
15
|
+
"fjsf-form-view": FjsfFormElement;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { FormEvent, FormEventType, Handler } from "./types";
|
|
2
|
+
export declare const createEmitter: () => {
|
|
3
|
+
on: <T extends FormEventType>(type: T, handler: Handler<T>) => () => void;
|
|
4
|
+
off: <T extends FormEventType>(type: T, handler: Handler<T>) => void;
|
|
5
|
+
once: <T extends FormEventType>(type: T, handler: Handler<T>) => () => void;
|
|
6
|
+
emit: (event: FormEvent) => void;
|
|
7
|
+
clear: () => void;
|
|
8
|
+
};
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import type { Issue } from "../core/issues";
|
|
2
|
+
import type { FormUiState } from "../model/form";
|
|
3
|
+
import type { FileUploadView } from "../core/policies/fileUploadView";
|
|
4
|
+
import type { FormState, ValidationSchemaLike } from "../store/createStore";
|
|
5
|
+
export type ChangeCause = "input" | "add" | "remove" | "move" | "default" | "prune" | "additional-key";
|
|
6
|
+
/** §2.2: a discriminated union on `type`; every event fires after its state change is applied. */
|
|
7
|
+
export type FormEvent = {
|
|
8
|
+
type: "change";
|
|
9
|
+
path: string;
|
|
10
|
+
value: unknown;
|
|
11
|
+
values: unknown;
|
|
12
|
+
cause: ChangeCause;
|
|
13
|
+
} | {
|
|
14
|
+
type: "blur";
|
|
15
|
+
path: string;
|
|
16
|
+
} | {
|
|
17
|
+
type: "submit";
|
|
18
|
+
values: unknown;
|
|
19
|
+
} | {
|
|
20
|
+
type: "structure";
|
|
21
|
+
added: string[];
|
|
22
|
+
removed: string[];
|
|
23
|
+
prunedValues: string[];
|
|
24
|
+
} | {
|
|
25
|
+
type: "order";
|
|
26
|
+
path: string;
|
|
27
|
+
oldOrder: string[];
|
|
28
|
+
newOrder: string[];
|
|
29
|
+
} | {
|
|
30
|
+
type: "validate";
|
|
31
|
+
errors: unknown;
|
|
32
|
+
} | ({
|
|
33
|
+
type: "error";
|
|
34
|
+
} & Issue);
|
|
35
|
+
export type FormEventType = FormEvent["type"];
|
|
36
|
+
export type EventOf<T extends FormEventType> = Extract<FormEvent, {
|
|
37
|
+
type: T;
|
|
38
|
+
}>;
|
|
39
|
+
export type Handler<T extends FormEventType> = (event: EventOf<T>) => void;
|
|
40
|
+
/** The props a RAW field renderer gets for its slot (2.x SchemaField props, plus the value). */
|
|
41
|
+
export type SlotField = {
|
|
42
|
+
name: string;
|
|
43
|
+
schema: unknown;
|
|
44
|
+
uiSchema: unknown;
|
|
45
|
+
required?: boolean;
|
|
46
|
+
value: unknown;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* §2.6 RAW slot: fills the `<div data-fjsf-slot>` of a field the host provides. Called after every render
|
|
50
|
+
* with the same element while the field stays in place (it owns the element's content).
|
|
51
|
+
*/
|
|
52
|
+
export type SlotRenderer = (slot: HTMLElement, field: SlotField, controller: unknown) => void;
|
|
53
|
+
/** The host's upload functions (the shape of the React FileUploadContext / FilesUploadContext). */
|
|
54
|
+
export type UploadProgress = {
|
|
55
|
+
loaded: number;
|
|
56
|
+
total?: number | null;
|
|
57
|
+
};
|
|
58
|
+
export type Uploads = {
|
|
59
|
+
file?: {
|
|
60
|
+
uploadFile: (x: {
|
|
61
|
+
data: FormData;
|
|
62
|
+
onUploadProgress?: (e: UploadProgress) => void;
|
|
63
|
+
}) => Promise<unknown>;
|
|
64
|
+
fetchFile: (value: any) => Promise<{
|
|
65
|
+
name: string;
|
|
66
|
+
} | null | undefined>;
|
|
67
|
+
removeFile: (fileName: string) => Promise<unknown>;
|
|
68
|
+
};
|
|
69
|
+
files?: {
|
|
70
|
+
uploadFiles: (x: {
|
|
71
|
+
files: {
|
|
72
|
+
data: File;
|
|
73
|
+
progressId: string;
|
|
74
|
+
}[];
|
|
75
|
+
onUploadProgress?: (e: UploadProgress, progressId: string) => void;
|
|
76
|
+
}) => Promise<any[]>;
|
|
77
|
+
removeFile: (file: any) => Promise<unknown>;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
export type ControllerOptions = {
|
|
81
|
+
/** "form" (default): the editable Form; "view": the read-only FormView. */
|
|
82
|
+
mode?: "form" | "view";
|
|
83
|
+
validationSchema?: ValidationSchemaLike;
|
|
84
|
+
validateOnChange?: boolean;
|
|
85
|
+
validateOnBlur?: boolean;
|
|
86
|
+
onSubmit?: (values: any) => unknown;
|
|
87
|
+
className?: string;
|
|
88
|
+
hideSubmit?: boolean;
|
|
89
|
+
formLocalization?: any;
|
|
90
|
+
formOptions?: any;
|
|
91
|
+
hideUnmarkedAdditionalProperties?: boolean;
|
|
92
|
+
/** Additional properties get up/down buttons and `order` events (2.x: an onAdditionalPropertyOrderChange prop). */
|
|
93
|
+
orderable?: boolean;
|
|
94
|
+
/** RAW custom fields by name (`ui:field` strings and replaced built-ins). */
|
|
95
|
+
fields?: Record<string, SlotRenderer>;
|
|
96
|
+
uploads?: Uploads;
|
|
97
|
+
/** DateField's default locale (2.x read navigator.language; RAW reads no globals). */
|
|
98
|
+
locale?: string;
|
|
99
|
+
/** Q-FV-2, view mode. */
|
|
100
|
+
fileUploadView?: FileUploadView;
|
|
101
|
+
/** propertyAdd asks for the new key (2.x `prompt("Give key")`); default: globalThis.prompt when there is one. */
|
|
102
|
+
askKey?: () => string | null | undefined;
|
|
103
|
+
};
|
|
104
|
+
export type ControllerInit = {
|
|
105
|
+
schema: any;
|
|
106
|
+
uiSchema?: any;
|
|
107
|
+
values?: unknown;
|
|
108
|
+
state?: Partial<FormState> & {
|
|
109
|
+
ui?: FormUiState;
|
|
110
|
+
};
|
|
111
|
+
options?: ControllerOptions;
|
|
112
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { FieldProps } from "../model/form/chrome";
|
|
2
|
+
import type { FormBuildContext } from "../model/form";
|
|
3
|
+
import type { VChild } from "../model/vnode";
|
|
4
|
+
import type { Uploads } from "./types";
|
|
5
|
+
export type UploadHost = ReturnType<typeof createUploads>;
|
|
6
|
+
export declare const createUploads: (host: {
|
|
7
|
+
uploads: () => Uploads | undefined;
|
|
8
|
+
values: () => unknown;
|
|
9
|
+
setValue: (path: string, value: unknown) => void;
|
|
10
|
+
rerender: () => void;
|
|
11
|
+
pick: (id: string) => void;
|
|
12
|
+
}) => {
|
|
13
|
+
markup: (ctx: FormBuildContext, field: string, p: FieldProps) => VChild;
|
|
14
|
+
handle: (action: any, event: Event, el: Element) => boolean;
|
|
15
|
+
destroy: () => void;
|
|
16
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export declare const en: {
|
|
2
|
+
readonly "validation.error.required": "Required";
|
|
3
|
+
readonly "validation.error.minLength": "Must be at least {limit} characters";
|
|
4
|
+
readonly "validation.error.maxLength": "Must be at most {limit} characters";
|
|
5
|
+
readonly "validation.error.pattern": "Invalid format";
|
|
6
|
+
readonly "validation.error.minimum": "Must be at least {min}";
|
|
7
|
+
readonly "validation.error.maximum": "Must be at most {max}";
|
|
8
|
+
readonly "validation.error.exclusiveMinimum": "Must be more than {min}";
|
|
9
|
+
readonly "validation.error.exclusiveMaximum": "Must be less than {max}";
|
|
10
|
+
readonly "validation.error.multipleOf": "Must be a multiple of {multipleOf}";
|
|
11
|
+
readonly "validation.error.minItems": "Must have at least {min} items";
|
|
12
|
+
readonly "validation.error.maxItems": "Must have at most {max} items";
|
|
13
|
+
readonly "validation.error.uniqueItems": "Items must be unique";
|
|
14
|
+
readonly "validation.error.enum": "Invalid value";
|
|
15
|
+
readonly "validation.error.const": "Invalid value";
|
|
16
|
+
readonly "validation.error.notConst": "Invalid value";
|
|
17
|
+
readonly "form.submit": "Send";
|
|
18
|
+
readonly "form.additionalProperty.prompt": "Give key";
|
|
19
|
+
readonly "view.boolean.selected": "Selected";
|
|
20
|
+
readonly "view.boolean.notSelected": "Not selected";
|
|
21
|
+
readonly "field.date.picker": "Date picker";
|
|
22
|
+
readonly "field.unsupported": "!!! Unsupported field \"{name}\" !!!";
|
|
23
|
+
readonly "code.SCHEMA_UNSUPPORTED_TYPE": "Unsupported field type";
|
|
24
|
+
readonly "code.SCHEMA_MISSING_TYPE": "Field has no type";
|
|
25
|
+
readonly "code.SCHEMA_ARRAY_AMBIGUOUS": "Array item schema is ambiguous";
|
|
26
|
+
readonly "code.SCHEMA_ENUM_CONFLICT": "More than one of enum, oneOf and anyOf; enum wins, then oneOf";
|
|
27
|
+
readonly "code.REF_UNSUPPORTED": "Unsupported reference";
|
|
28
|
+
readonly "code.REF_NOT_FOUND": "Reference not found";
|
|
29
|
+
readonly "code.REF_CYCLE": "Circular reference";
|
|
30
|
+
readonly "code.REF_DEPTH_EXCEEDED": "Reference nesting is too deep";
|
|
31
|
+
readonly "code.PATTERN_INVALID": "Invalid pattern";
|
|
32
|
+
readonly "code.PATTERN_REJECTED": "Unsafe pattern was ignored";
|
|
33
|
+
readonly "code.PROP_REJECTED": "Property is not allowed";
|
|
34
|
+
readonly "code.KEY_REJECTED": "Key is not allowed";
|
|
35
|
+
readonly "code.KEY_AMBIGUOUS": "Key contains path characters";
|
|
36
|
+
readonly "code.FIELD_UNKNOWN": "Unknown field";
|
|
37
|
+
readonly "code.TEMPLATE_UNKNOWN": "Unknown template";
|
|
38
|
+
readonly "code.TEMPLATE_DISABLED": "Template is disabled here";
|
|
39
|
+
readonly "code.DOCUMENT_INVALID": "Document is not valid: the schema or a part of it was replaced";
|
|
40
|
+
readonly "code.SANITIZER_UNAVAILABLE": "HTML sanitiser is unavailable";
|
|
41
|
+
};
|
|
42
|
+
export type MessageKey = keyof typeof en;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { MessageKey } from "./en";
|
|
2
|
+
import { en } from "./en";
|
|
3
|
+
import { fi } from "./fi";
|
|
4
|
+
export type Locale = "en" | "fi";
|
|
5
|
+
export type Translate = (key: MessageKey | string, params?: Record<string, unknown>) => string;
|
|
6
|
+
export declare const catalogs: Record<Locale, Record<MessageKey, string>>;
|
|
7
|
+
export declare const createTranslator: (locale?: Locale, overrides?: Partial<Record<string, string>>) => Translate;
|
|
8
|
+
export type { MessageKey };
|
|
9
|
+
export { en, fi };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export * from "./core/json";
|
|
2
|
+
export * from "./core/issues";
|
|
3
|
+
export * from "./core/paths";
|
|
4
|
+
export { getSchemaType, guessType, normaliseType, defaultValueForType } from "./core/schemaType";
|
|
5
|
+
export type { NormalisedType } from "./core/schemaType";
|
|
6
|
+
export { mergeSchemas } from "./core/merge";
|
|
7
|
+
export { MAX_REF_DEPTH, hasReferences, parseRef, resolveRefs, solveReferences } from "./core/refs";
|
|
8
|
+
export type { RefContext, Resolved } from "./core/refs";
|
|
9
|
+
export { itemSchema, normalizeArraySchema, valueTypeMismatch } from "./core/arrays";
|
|
10
|
+
export type { ItemSchema, NormalisedArray } from "./core/arrays";
|
|
11
|
+
export { deepOverlap, resolveOneOfValue, resolveSchema } from "./core/conditionals";
|
|
12
|
+
export { defaultFor, isUnset, localIsoDate } from "./core/defaults";
|
|
13
|
+
export type { DefaultOptions } from "./core/defaults";
|
|
14
|
+
export { createInitialValues } from "./core/initialValues";
|
|
15
|
+
export type { InitialValuesOptions, InitialValuesType } from "./core/initialValues";
|
|
16
|
+
export { OPTIONAL_NUMBER_INITIAL, optionalNumberInitialValue } from "./core/policies/optionalNumberInitial";
|
|
17
|
+
export type { OptionalNumberInitial } from "./core/policies/optionalNumberInitial";
|
|
18
|
+
export { FILE_UPLOAD_VIEW } from "./core/policies/fileUploadView";
|
|
19
|
+
export type { FileUploadView } from "./core/policies/fileUploadView";
|
|
20
|
+
export * from "./core/uiSchema";
|
|
21
|
+
export * from "./core/enums";
|
|
22
|
+
export { immutablySwapItems, setTitleValues } from "./core/titles";
|
|
23
|
+
export { createValidationSchema } from "./validation";
|
|
24
|
+
export type { LocalizeType, ValidationOptions } from "./validation";
|
|
25
|
+
export { DEFAULT_PATTERN_INPUT_CAP, isUnsafePattern } from "./validation/patterns";
|
|
26
|
+
export { catalogs, createTranslator, en, fi } from "./i18n";
|
|
27
|
+
export type { Locale, MessageKey, Translate } from "./i18n";
|
|
28
|
+
export * from "./sanitize";
|
|
29
|
+
export { cx, h } from "./model/vnode";
|
|
30
|
+
export type { AttrValue, Attrs, VChild, VNode } from "./model/vnode";
|
|
31
|
+
export { escapeAttr, escapeText, toString as vnodeToString } from "./serialize/toString";
|
|
32
|
+
export { buildViewNode, renderViewToString } from "./model/view";
|
|
33
|
+
export type { ArrayItem, FieldKind, SectionNode, ViewChild, ViewNode, ViewOptions } from "./model/view/types";
|
|
34
|
+
export { toDOM } from "./serialize/toDOM";
|
|
35
|
+
export type { DomEnv } from "./serialize/toDOM";
|
|
36
|
+
export { createStore } from "./store/createStore";
|
|
37
|
+
export type { FormState, Store, StoreOptions, ValidationSchemaLike } from "./store/createStore";
|
|
38
|
+
export { FormController } from "./dom/controller";
|
|
39
|
+
export type { ControllerUpdate } from "./dom/controller";
|
|
40
|
+
export { defineFjsfElements } from "./dom/elements";
|
|
41
|
+
export type { FjsfFormElement } from "./dom/elements";
|
|
42
|
+
export type * from "./dom/types";
|
|
43
|
+
export { cssVarsToString, fjsfClassNames, fjsfSelectors, getDefaultStyles, themeToCssVars } from "./styles";
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { FormAction, FormUiState } from "./types";
|
|
2
|
+
/** What the DOM event carried. */
|
|
3
|
+
export type ControlEvent = {
|
|
4
|
+
value?: string;
|
|
5
|
+
checked?: boolean;
|
|
6
|
+
selected?: string[];
|
|
7
|
+
/** propertyAdd: the key the host asked for (prompt). */
|
|
8
|
+
key?: string | null;
|
|
9
|
+
/** Keyboard key (searchKey). */
|
|
10
|
+
keyName?: string;
|
|
11
|
+
/** Focus moved outside the field's container (searchLeave). */
|
|
12
|
+
leftContainer?: boolean;
|
|
13
|
+
};
|
|
14
|
+
export type ActionEffect = {
|
|
15
|
+
/** Set the value at a path (`""`: the root values). */
|
|
16
|
+
set?: {
|
|
17
|
+
path: string;
|
|
18
|
+
value: unknown;
|
|
19
|
+
};
|
|
20
|
+
touch?: string;
|
|
21
|
+
ui?: FormUiState;
|
|
22
|
+
/** 2.x onAdditionalPropertyOrderChange(path, previous, next). */
|
|
23
|
+
order?: {
|
|
24
|
+
path: string;
|
|
25
|
+
previous: string[];
|
|
26
|
+
next: string[];
|
|
27
|
+
};
|
|
28
|
+
submit?: true;
|
|
29
|
+
/** propertyAdd asks the host for a key (2.x `prompt("Give key")`). */
|
|
30
|
+
askKey?: true;
|
|
31
|
+
/** Mark touched without validating (2.x setFieldTouched(name, true, false)). */
|
|
32
|
+
touchQuietly?: string;
|
|
33
|
+
/** Set (or clear, `message: undefined`) a field error (2.x helpers.setError). */
|
|
34
|
+
error?: {
|
|
35
|
+
path: string;
|
|
36
|
+
message?: string;
|
|
37
|
+
};
|
|
38
|
+
/** Open the native date picker of this element (host-side, imperative). */
|
|
39
|
+
picker?: string;
|
|
40
|
+
};
|
|
41
|
+
export declare const applyAction: (action: FormAction, values: unknown, e?: ControlEvent, ui?: FormUiState) => ActionEffect;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { VChild } from "../vnode";
|
|
2
|
+
import type { ChildProps } from "./dispatch";
|
|
3
|
+
import type { Trail } from "../../core/trail";
|
|
4
|
+
import type { FormBuildContext } from "./types";
|
|
5
|
+
export declare const anyField: (ctx: FormBuildContext, p: ChildProps, chain: string[], trail?: Trail) => VChild;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Appearance } from "./types";
|
|
2
|
+
/** The nodes that appeared in this render and not in the previous one; `seen` becomes this render's set. */
|
|
3
|
+
export declare const newAppearances: (appeared: Appearance[], seen: Set<string>) => Appearance[];
|
|
4
|
+
export type Prune = {
|
|
5
|
+
path: string;
|
|
6
|
+
keys: string[];
|
|
7
|
+
};
|
|
8
|
+
/** The values with the defaults of the fresh nodes and the prunes applied (the same object when nothing changes). */
|
|
9
|
+
export declare const settle: (values: unknown, fresh: Appearance[], prune: Prune[], now?: Date) => unknown;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { VChild } from "../vnode";
|
|
2
|
+
import type { FieldProps } from "./chrome";
|
|
3
|
+
import type { FormBuildContext } from "./types";
|
|
4
|
+
import { getEnums } from "../../core/enums";
|
|
5
|
+
/** RadioField: true/false radios. formik checked them by strict equality with the string value (kept). */
|
|
6
|
+
export declare const radioField: (ctx: FormBuildContext, p: FieldProps) => VChild;
|
|
7
|
+
/** The RadioFieldInput markup (also the default of FormComponents.RadioFieldInput). */
|
|
8
|
+
export declare const radioInputsMarkup: (ctx: FormBuildContext, props: FieldProps, label: unknown) => VChild;
|
|
9
|
+
/** ToggleField: a checkbox (stores a boolean, Q-R19-1) and the toggle. */
|
|
10
|
+
export declare const toggleField: (ctx: FormBuildContext, p: FieldProps) => VChild;
|
|
11
|
+
/** The ToggleFieldInput markup (also the default of FormComponents.ToggleFieldInput). */
|
|
12
|
+
export declare const toggleInputMarkup: (ctx: FormBuildContext, props: FieldProps) => VChild;
|
|
13
|
+
/** MultipleChoiceField: one radio (single) or checkbox (multi) per option; stores the consts. */
|
|
14
|
+
export declare const multipleChoiceField: (ctx: FormBuildContext, p: FieldProps) => VChild;
|
|
15
|
+
/** The MultipleChoiceFieldInput markup (also the default of FormComponents.MultipleChoiceFieldInput). */
|
|
16
|
+
export declare const choicesInputMarkup: (ctx: FormBuildContext, props: FieldProps, enums: ReturnType<typeof getEnums>, style: unknown) => VChild;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { Attrs, VChild } from "../vnode";
|
|
2
|
+
import type { FormChrome } from "./markup";
|
|
3
|
+
import type { FormBuildContext } from "./types";
|
|
4
|
+
export type FieldProps = {
|
|
5
|
+
name: string;
|
|
6
|
+
schema: any;
|
|
7
|
+
ui: any;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
kind?: string;
|
|
10
|
+
hidden?: boolean;
|
|
11
|
+
/** The data-* props a 2.x field passed to its template (data-fjsf-string, data-fjsf-object, ...). */
|
|
12
|
+
data?: Attrs;
|
|
13
|
+
};
|
|
14
|
+
/** 2.x getInstrumentationAttributes. */
|
|
15
|
+
export declare const instrumentation: (p: FieldProps) => Attrs;
|
|
16
|
+
/** ErrorMessage (2.x: useField meta, shown when touched): a composite so pro3's HiddenErrorMessage can replace it. */
|
|
17
|
+
export declare const errorMarkup: (ctx: FormBuildContext, name: string, errorProps?: unknown) => VChild;
|
|
18
|
+
/** FieldInfo (ui:info): tooltip, or an inline box toggled by the info link (formOptions.components.FieldInfo.display). */
|
|
19
|
+
export declare const infoMarkup: (ctx: FormBuildContext, path: string, info: any) => VChild;
|
|
20
|
+
export declare const formChrome: (ctx: FormBuildContext, p: FieldProps, withError?: boolean) => FormChrome;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { VChild } from "../vnode";
|
|
2
|
+
import type { FieldProps } from "./chrome";
|
|
3
|
+
import type { FormBuildContext } from "./types";
|
|
4
|
+
/** What a date commit needs to know (2.x DateInput props). */
|
|
5
|
+
export type DateRules = {
|
|
6
|
+
locale: string;
|
|
7
|
+
min?: string;
|
|
8
|
+
max?: string;
|
|
9
|
+
invalid: string;
|
|
10
|
+
outOfRange: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const dateRules: (ctx: FormBuildContext, ui: any) => DateRules;
|
|
13
|
+
export declare const dateField: (ctx: FormBuildContext, p: FieldProps) => VChild;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { VChild } from "../vnode";
|
|
2
|
+
import type { FieldProps } from "./chrome";
|
|
3
|
+
import type { FormBuildContext } from "./types";
|
|
4
|
+
import type { Trail } from "../../core/trail";
|
|
5
|
+
export declare const COMPONENT_TYPES: Record<string, string>;
|
|
6
|
+
/** Built-in field names of slice S5. */
|
|
7
|
+
export declare const S5_FIELDS: Set<string>;
|
|
8
|
+
export type ChildProps = FieldProps & {
|
|
9
|
+
forceDefaultValue?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare const formField: (ctx: FormBuildContext, p: ChildProps, chain?: string[], trail?: Trail) => VChild;
|
|
12
|
+
/** One built-in field by name (2.x `FormFields.X`). */
|
|
13
|
+
export declare const builtIn: (ctx: FormBuildContext, component: string, p: ChildProps, chain?: string[], trail?: Trail) => VChild;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { Definitions } from "../../core/json";
|
|
2
|
+
import type { IssueSink } from "../../core/issues";
|
|
3
|
+
import type { VChild, VNode } from "../vnode";
|
|
4
|
+
import type { FormBuildContext, FormUiState } from "./types";
|
|
5
|
+
export type FormState = {
|
|
6
|
+
values: unknown;
|
|
7
|
+
errors?: unknown;
|
|
8
|
+
touched?: unknown;
|
|
9
|
+
submitting?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export type FormOptions = {
|
|
12
|
+
customFields?: string[];
|
|
13
|
+
formLocalization?: any;
|
|
14
|
+
formOptions?: any;
|
|
15
|
+
locale?: string;
|
|
16
|
+
ui?: FormUiState;
|
|
17
|
+
hideUnmarkedAdditionalProperties?: boolean;
|
|
18
|
+
orderable?: boolean;
|
|
19
|
+
sink?: IssueSink;
|
|
20
|
+
definitions?: Definitions;
|
|
21
|
+
defs?: Definitions;
|
|
22
|
+
uiDefinitions?: any;
|
|
23
|
+
};
|
|
24
|
+
export declare const createFormContext: (schema: any, uiSchema: any, state: FormState, o?: FormOptions) => FormBuildContext;
|
|
25
|
+
/** 2.x <Form>: formik's <form action="#"> (registry Form), the fields, then the caller's children or the submit button. */
|
|
26
|
+
export declare const formShell: (content: VChild, o: {
|
|
27
|
+
className?: string;
|
|
28
|
+
hideSubmit?: boolean;
|
|
29
|
+
submitting?: boolean;
|
|
30
|
+
children?: VChild;
|
|
31
|
+
}) => VNode;
|
|
32
|
+
export { applyAction } from "./actions";
|
|
33
|
+
export type { ActionEffect, ControlEvent } from "./actions";
|
|
34
|
+
export { newAppearances, settle } from "./appearance";
|
|
35
|
+
export type { Prune } from "./appearance";
|
|
36
|
+
export { builtIn, formField, S5_FIELDS } from "./dispatch";
|
|
37
|
+
export type { ChildProps } from "./dispatch";
|
|
38
|
+
export type * from "./types";
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { Attrs, VChild } from "../vnode";
|
|
2
|
+
import type { FieldProps } from "./chrome";
|
|
3
|
+
import type { FormBuildContext } from "./types";
|
|
4
|
+
/** `ui:props` for the control (2.x spread them verbatim), through the D5 allowlist. */
|
|
5
|
+
export declare const inputAttrs: (ctx: FormBuildContext, p: FieldProps) => Attrs;
|
|
6
|
+
/** The control's actions. Q-RO-1: a readOnly control never changes the value (browsers ignore readonly on select/checkbox). */
|
|
7
|
+
export declare const on: (p: FieldProps, parse: "text" | "number" | "checkbox" | "enum" | "multi" | "radio", consts?: unknown[]) => {
|
|
8
|
+
blur: {
|
|
9
|
+
type: string;
|
|
10
|
+
path: string;
|
|
11
|
+
};
|
|
12
|
+
click?: {
|
|
13
|
+
type: string;
|
|
14
|
+
} | undefined;
|
|
15
|
+
change?: {
|
|
16
|
+
consts?: unknown[] | undefined;
|
|
17
|
+
type: string;
|
|
18
|
+
path: string;
|
|
19
|
+
parse: "number" | "enum" | "radio" | "text" | "checkbox" | "multi";
|
|
20
|
+
} | undefined;
|
|
21
|
+
};
|
|
22
|
+
/** StringField / NumberField: an input, or a select for `oneOf`/`enum` consts. */
|
|
23
|
+
export declare const stringField: (ctx: FormBuildContext, p: FieldProps, numberField?: boolean) => VChild;
|
|
24
|
+
/** What an input shows for a stored value (React renders primitives; objects and arrays are not shown). */
|
|
25
|
+
export declare const textValue: (value: unknown) => string;
|
|
26
|
+
export declare const textAreaField: (ctx: FormBuildContext, p: FieldProps) => VChild;
|
|
27
|
+
/** BooleanField: a checkbox (stores true/false, Q-R19-1) and its ui:label, which toggles on click (BUG-FMK-1: nested path). */
|
|
28
|
+
export declare const booleanField: (ctx: FormBuildContext, p: FieldProps) => VChild;
|
|
29
|
+
export declare const nullField: (ctx: FormBuildContext, p: FieldProps) => VChild;
|