@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,39 @@
|
|
|
1
|
+
export type FormState = {
|
|
2
|
+
values: any;
|
|
3
|
+
errors: any;
|
|
4
|
+
touched: any;
|
|
5
|
+
isSubmitting: boolean;
|
|
6
|
+
submitCount: number;
|
|
7
|
+
};
|
|
8
|
+
export type ValidationSchemaLike = {
|
|
9
|
+
validate: (values: unknown, options?: object) => Promise<unknown>;
|
|
10
|
+
};
|
|
11
|
+
export type StoreOptions = {
|
|
12
|
+
initialValues?: unknown;
|
|
13
|
+
validationSchema?: ValidationSchemaLike;
|
|
14
|
+
onSubmit?: (values: any, store: Store) => unknown;
|
|
15
|
+
validateOnChange?: boolean;
|
|
16
|
+
validateOnBlur?: boolean;
|
|
17
|
+
/** Called after every validation run with its errors (the controller's `validate` event). */
|
|
18
|
+
onValidated?: (errors: any) => void;
|
|
19
|
+
};
|
|
20
|
+
export type Store = {
|
|
21
|
+
getState(): FormState;
|
|
22
|
+
/** Replaces parts of the state without validating (formik setErrors / setTouched / resetForm({ values })). */
|
|
23
|
+
setState(patch: Partial<FormState>): void;
|
|
24
|
+
subscribe(listener: (state: FormState) => void): () => void;
|
|
25
|
+
setValues(values: unknown, shouldValidate?: boolean): Promise<void>;
|
|
26
|
+
setFieldValue(path: string, value: unknown, shouldValidate?: boolean): Promise<void>;
|
|
27
|
+
setFieldTouched(path: string, touched?: boolean, shouldValidate?: boolean): Promise<void>;
|
|
28
|
+
setFieldError(path: string, message: string | undefined): void;
|
|
29
|
+
setSubmitting(submitting: boolean): void;
|
|
30
|
+
validateForm(values?: unknown): Promise<any>;
|
|
31
|
+
submitForm(): Promise<void>;
|
|
32
|
+
};
|
|
33
|
+
/** formik prepareDataForValidation: "" is undefined, nested objects and arrays included. */
|
|
34
|
+
export declare const prepareForValidation: (values: any) => any;
|
|
35
|
+
/** formik yupToFormErrors: the first message per path. */
|
|
36
|
+
export declare const toFormErrors: (error: any) => any;
|
|
37
|
+
/** formik setNestedObjectValues(values, true): the touched map after a submit attempt. */
|
|
38
|
+
export declare const touchAll: (values: any, seen?: WeakSet<object>) => any;
|
|
39
|
+
export declare const createStore: (options?: StoreOptions) => Store;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type Rgb = {
|
|
2
|
+
red: number;
|
|
3
|
+
green: number;
|
|
4
|
+
blue: number;
|
|
5
|
+
alpha?: number;
|
|
6
|
+
};
|
|
7
|
+
/** polished parseToRgb; undefined where polished throws. */
|
|
8
|
+
export declare const parseToRgb: (color: string) => Rgb | undefined;
|
|
9
|
+
export declare const lighten: (amount: number, color: string) => string | undefined;
|
|
10
|
+
export declare const darken: (amount: number, color: string) => string | undefined;
|
|
11
|
+
/** polished getLuminance (relative luminance, 3 decimals). */
|
|
12
|
+
export declare const getLuminance: (color: string) => number | undefined;
|
|
13
|
+
/** polished readableColor(color) with its defaults: "#000" on light colours, "#fff" on dark ones. */
|
|
14
|
+
export declare const readableColor: (color: string) => string | undefined;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const NAMED_COLORS: Readonly<Record<string, string>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DEFAULT_STYLES: string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** The default stylesheet (also `styles.css`): inline it before your own CSS, e.g. in PDF HTML. */
|
|
2
|
+
export declare const getDefaultStyles: () => string;
|
|
3
|
+
/** Form registry names -> their class (an alias gives the class its element carries). Frozen for 3.x. */
|
|
4
|
+
export declare const fjsfClassNames: Readonly<Record<string, string>>;
|
|
5
|
+
/** The same as selectors (`.fjsf-X`), what `${FormComponents.X}` interpolates. */
|
|
6
|
+
export declare const fjsfSelectors: Readonly<Record<string, string>>;
|
|
7
|
+
export { themeToCssVars, cssVarsToString } from "./themeToCssVars";
|
|
8
|
+
export { varName, FOCUS_PROPERTIES, DERIVED_COLORS, DERIVED_URLS } from "./vars";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** The --fjsf-* variables of a theme (set them on :root or on a form's container). */
|
|
2
|
+
export declare const themeToCssVars: (theme: unknown) => Record<string, string>;
|
|
3
|
+
/** The variables as one CSS rule, e.g. for a <style> element or the PDF HTML. */
|
|
4
|
+
export declare const cssVarsToString: (vars: Record<string, string>, selector?: string) => string;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/** `--fjsf-color-text-default` for theme.color.text.default (camelCase keys become kebab-case). */
|
|
2
|
+
export declare const varName: (keys: readonly string[]) => string;
|
|
3
|
+
/** A theme's `focus.*` value is a declaration list; styles.css applies these three properties of it. */
|
|
4
|
+
export declare const FOCUS_PROPERTIES: readonly ["outline", "outline-offset", "box-shadow"];
|
|
5
|
+
/** The derived colours: variable, polished function, amount and the theme path it reads. */
|
|
6
|
+
export declare const DERIVED_COLORS: readonly [{
|
|
7
|
+
readonly name: "--fjsf-on-text";
|
|
8
|
+
readonly fn: "readableColor";
|
|
9
|
+
readonly path: readonly ["color", "text", "default"];
|
|
10
|
+
}, {
|
|
11
|
+
readonly name: "--fjsf-on-input";
|
|
12
|
+
readonly fn: "readableColor";
|
|
13
|
+
readonly path: readonly ["color", "background", "input"];
|
|
14
|
+
}, {
|
|
15
|
+
readonly name: "--fjsf-on-intent-none";
|
|
16
|
+
readonly fn: "readableColor";
|
|
17
|
+
readonly path: readonly ["color", "intent", "default", "none"];
|
|
18
|
+
}, {
|
|
19
|
+
readonly name: "--fjsf-on-neutral-500";
|
|
20
|
+
readonly fn: "readableColor";
|
|
21
|
+
readonly path: readonly ["color", "palette", "neutral", "500"];
|
|
22
|
+
}, {
|
|
23
|
+
readonly name: "--fjsf-border-muted";
|
|
24
|
+
readonly fn: "lighten";
|
|
25
|
+
readonly amount: 0.4;
|
|
26
|
+
readonly path: readonly ["color", "border", "default"];
|
|
27
|
+
}, {
|
|
28
|
+
readonly name: "--fjsf-text-muted";
|
|
29
|
+
readonly fn: "lighten";
|
|
30
|
+
readonly amount: 0.4;
|
|
31
|
+
readonly path: readonly ["color", "text", "default"];
|
|
32
|
+
}, {
|
|
33
|
+
readonly name: "--fjsf-primary-dark";
|
|
34
|
+
readonly fn: "darken";
|
|
35
|
+
readonly amount: 0.3;
|
|
36
|
+
readonly path: readonly ["color", "intent", "default", "primary"];
|
|
37
|
+
}];
|
|
38
|
+
/** 2.x encoded a theme colour into an SVG data URL (Form/styles/common.tsx:78,96, the select arrow): a variable holds the whole url(). */
|
|
39
|
+
export declare const DERIVED_URLS: readonly [{
|
|
40
|
+
readonly name: "--fjsf-select-arrow";
|
|
41
|
+
readonly path: readonly ["color", "text", "default"];
|
|
42
|
+
readonly url: (color: string) => string;
|
|
43
|
+
}];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as Yup from "yup";
|
|
2
|
+
import type { Schema } from "../core/json";
|
|
3
|
+
import type { IssueSink } from "../core/issues";
|
|
4
|
+
import type { MessageFn } from "./messages";
|
|
5
|
+
export type ArrayContext = {
|
|
6
|
+
/** Builds the Yup schema of one item (items count as required, as in 2.x). */
|
|
7
|
+
item: (schema: Schema) => Yup.ISchema<any>;
|
|
8
|
+
msg: MessageFn;
|
|
9
|
+
ui: any;
|
|
10
|
+
required: boolean;
|
|
11
|
+
sink: IssueSink;
|
|
12
|
+
path: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const buildArraySchema: (schema: Schema, ctx: ArrayContext) => Yup.ISchema<any>;
|
|
15
|
+
/** 2.x `type: array` + `anyOf` (multi-select): every value must be one of the consts. */
|
|
16
|
+
export declare const buildAnyOfArraySchema: (schema: Schema, ctx: Omit<ArrayContext, "item" | "sink" | "path">) => Yup.ISchema<any>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Schema } from "../core/json";
|
|
2
|
+
export type Condition = {
|
|
3
|
+
dependentKeys: string[];
|
|
4
|
+
conditionFn: (...values: any[]) => boolean;
|
|
5
|
+
};
|
|
6
|
+
export type ConditionalValidation = {
|
|
7
|
+
condition?: Condition;
|
|
8
|
+
schema: Schema;
|
|
9
|
+
};
|
|
10
|
+
export declare function getConditionalValidations(schema: Schema): ConditionalValidation[];
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as Yup from "yup";
|
|
2
|
+
import type { Definitions, Schema } from "../core/json";
|
|
3
|
+
import type { IssueSink } from "../core/issues";
|
|
4
|
+
import type { Condition } from "./conditions";
|
|
5
|
+
import type { LocalizeType } from "./messages";
|
|
6
|
+
import type { Translate } from "../i18n";
|
|
7
|
+
import type { Trail } from "../core/trail";
|
|
8
|
+
export type { LocalizeType };
|
|
9
|
+
type ConditionsContext = {
|
|
10
|
+
condition: Condition;
|
|
11
|
+
yupSchema: Yup.ISchema<any>;
|
|
12
|
+
};
|
|
13
|
+
export type ValidationOptions = {
|
|
14
|
+
localize?: LocalizeType;
|
|
15
|
+
translate?: Translate;
|
|
16
|
+
definitions?: Schema | Definitions;
|
|
17
|
+
/** Root `$defs` (2019-09+), passed down like `definitions`. */
|
|
18
|
+
defs?: Definitions;
|
|
19
|
+
conditionsContext?: Record<string, ConditionsContext[]>;
|
|
20
|
+
condition?: Condition;
|
|
21
|
+
sink?: IssueSink;
|
|
22
|
+
/** `$ref`s being expanded eagerly above this level (cycle guard). */
|
|
23
|
+
refChain?: string[];
|
|
24
|
+
/** Internal: the object schemas being expanded above this level (cycle and depth guard, BUG-110). */
|
|
25
|
+
trail?: Trail;
|
|
26
|
+
};
|
|
27
|
+
export declare function createValidationSchema(schemas: {
|
|
28
|
+
schema: Schema;
|
|
29
|
+
uiSchema?: any;
|
|
30
|
+
}, options?: ValidationOptions): Yup.ObjectSchema<any, Yup.AnyObject, any, "">;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as Yup from "yup";
|
|
2
|
+
import type { Schema } from "../core/json";
|
|
3
|
+
import type { IssueSink } from "../core/issues";
|
|
4
|
+
import type { MessageFn } from "./messages";
|
|
5
|
+
export declare const applyStringKeywords: (base: Yup.StringSchema, schema: Schema, ui: any, msg: MessageFn, sink: IssueSink, path: string) => Yup.StringSchema<string | undefined, Yup.AnyObject, undefined, "">;
|
|
6
|
+
export declare const applyNumberKeywords: (base: Yup.NumberSchema, schema: Schema, ui: any, msg: MessageFn) => Yup.NumberSchema<number | undefined, Yup.AnyObject, undefined, "">;
|
|
7
|
+
/** minItems / maxItems / uniqueItems (Q-VAL-6: deep equality instead of Set identity). */
|
|
8
|
+
export declare const applyArrayKeywords: (base: any, schema: Schema, ui: any, msg: MessageFn) => any;
|
|
9
|
+
/** enum / const (incl. `{ $data }`, Q-VAL-7 kept: last pointer segment) / not.const. */
|
|
10
|
+
export declare const applyValueKeywords: (base: any, schema: Schema, ui: any, msg: MessageFn) => any;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Translate } from "../i18n";
|
|
2
|
+
export type LocalizeType = (key: string, params?: Record<string, any>) => string;
|
|
3
|
+
export type MessageOptions = {
|
|
4
|
+
localize?: LocalizeType;
|
|
5
|
+
translate?: Translate;
|
|
6
|
+
};
|
|
7
|
+
export declare const makeMessage: ({ localize, translate }: MessageOptions) => (keyword: string, fieldUiSchema?: any, params?: Record<string, any>) => string;
|
|
8
|
+
export type MessageFn = ReturnType<typeof makeMessage>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IssueSink } from "../core/issues";
|
|
2
|
+
/** Values longer than this are not run through a pattern (they fail it instead). */
|
|
3
|
+
export declare const DEFAULT_PATTERN_INPUT_CAP = 10000;
|
|
4
|
+
export declare const isUnsafePattern: (pattern: string) => boolean;
|
|
5
|
+
/** A compiled pattern, or undefined when it is invalid or rejected (the keyword is skipped). */
|
|
6
|
+
export declare const compilePattern: (pattern: unknown, sink: IssueSink, path?: string) => RegExp | undefined;
|
|
7
|
+
/** Q-VAL-1 semantics with an input cap: over-long values never reach the regex. */
|
|
8
|
+
export declare const testPattern: (regex: RegExp, value: unknown, cap: number) => boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ChainContext: import("react").Context<string[]>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** 2.x SchemaField's schema type -> field name table. */
|
|
2
|
+
export declare const COMPONENT_TYPES: Readonly<Record<string, string>>;
|
|
3
|
+
/** 2.x FormView's outer wrapper (a styled div), as a compat primitive with its `fjsf-view-FormWrapper` class. */
|
|
4
|
+
export declare const FormWrapper: import("react").ForwardRefExoticComponent<Omit<any, "ref"> & import("react").RefAttributes<HTMLDivElement>> & import("./selector").StyledSelector;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const COMPONENTS_PROP_WARNING = "formik-jsonschema-form: the `components` prop is not supported in v3 and is ignored. Pass `slots` instead (each slot gets the library's component as `Default`); the fjsf-v3-codemod rewrites it.";
|
|
2
|
+
/** Warns once per process when `components` is passed (not in production). */
|
|
3
|
+
export declare const warnComponentsProp: (components: unknown) => void;
|
|
4
|
+
/** Tests: warn again. */
|
|
5
|
+
export declare const resetComponentsPropWarning: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const defined: <T>(map: Partial<Record<string, T>> | undefined) => Record<string, T>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ViewField } from "../view/registry";
|
|
2
|
+
/**
|
|
3
|
+
* The final HTML of the field, or `undefined` when nothing may be rendered. The template is NOT RUN unless the output can be
|
|
4
|
+
* sanitised: no window, or a window that cannot sanitise (a shim), reports `window` / `sanitizer` first. ejs-browser
|
|
5
|
+
* templates see Node's globals (SEC-SSR-2), so a server must never execute a tenant's template, and 2.x did (it ran it,
|
|
6
|
+
* then threw SANITIZER_UNAVAILABLE). A real DOM window in a server process still runs templates: only
|
|
7
|
+
* `setSanitizerWindow` without a global window stays disabled.
|
|
8
|
+
*/
|
|
9
|
+
export declare const renderTemplate: (template: unknown, scope: {
|
|
10
|
+
title: string;
|
|
11
|
+
description: string;
|
|
12
|
+
value: unknown;
|
|
13
|
+
}, onIssue: (detail: string) => void) => string | undefined;
|
|
14
|
+
export declare const EJSField: ViewField;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { EJSField, renderTemplate } from "./EJSField";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ChildProps, FormBuildContext } from "../../raw/model/form";
|
|
2
|
+
import type { FormField, FormFieldProps } from "./registry";
|
|
3
|
+
/** The RAW build context of the current form: Formik state, registry, replaced fields, UI state. */
|
|
4
|
+
export declare const useFormBuild: () => FormBuildContext;
|
|
5
|
+
/** 2.x field props -> the RAW child props. */
|
|
6
|
+
export declare const childProps: (p: FormFieldProps) => ChildProps;
|
|
7
|
+
export declare const SchemaField: FormField;
|
|
8
|
+
export declare const FormFields: Record<string, FormField>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { FormikContextType } from "formik";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
import type { VChild } from "../../raw/model/vnode";
|
|
4
|
+
import type { ToReactEnv } from "../toReact";
|
|
5
|
+
import type { FormRegistryContext, FormRuntime } from "./registry";
|
|
6
|
+
export declare const formHost: (registry: FormRegistryContext, hole?: ReactNode, holes?: Record<string, ReactNode>) => ToReactEnv["host"];
|
|
7
|
+
export declare const formBind: (runtime: FormRuntime, formik: FormikContextType<any> | undefined) => ToReactEnv["bind"];
|
|
8
|
+
/** toReact with the current registry and runtime; holes are where React children go. */
|
|
9
|
+
export declare const useFormRender: () => (node: VChild, hole?: ReactNode, holes?: Record<string, ReactNode>) => ReactNode;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { ComponentType } from "react";
|
|
2
|
+
import type { Definitions } from "../../raw/core/json";
|
|
3
|
+
import type { IssueSink } from "../../raw/core/issues";
|
|
4
|
+
import type { ControlEvent, FormAction, FormUiState } from "../../raw/model/form";
|
|
5
|
+
export type FormFieldProps = {
|
|
6
|
+
name: string;
|
|
7
|
+
schema: any;
|
|
8
|
+
uiSchema?: any;
|
|
9
|
+
required?: boolean;
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
};
|
|
12
|
+
export type FormField = ComponentType<FormFieldProps>;
|
|
13
|
+
export type FormRegistryContext = {
|
|
14
|
+
fields: Record<string, FormField>;
|
|
15
|
+
templates: Record<string, ComponentType<any>>;
|
|
16
|
+
/** The deprecated compat map (CM-a): 2.x keys, React primitives, slots applied. */
|
|
17
|
+
components: Record<string, any>;
|
|
18
|
+
definitions: Definitions | undefined;
|
|
19
|
+
uiSchemaDefinitions: Record<string, any> | undefined;
|
|
20
|
+
formContext: Record<string, any>;
|
|
21
|
+
formLocalization?: Record<string, any>;
|
|
22
|
+
formOptions?: Record<string, any>;
|
|
23
|
+
useItemsAsAdditionalItems: boolean;
|
|
24
|
+
hideUnmarkedAdditionalProperties: boolean;
|
|
25
|
+
onAdditionalPropertyOrderChange?: (fieldName: string, oldOrder: string[], newOrder: string[]) => void;
|
|
26
|
+
};
|
|
27
|
+
export declare const FormRegistry: import("react").Context<FormRegistryContext>;
|
|
28
|
+
export type FormRuntime = {
|
|
29
|
+
ui: FormUiState;
|
|
30
|
+
dispatch: (action: FormAction, event?: ControlEvent) => void;
|
|
31
|
+
/** Queues a values transform (defaults, pruning); all queued ones are applied as one setValues. */
|
|
32
|
+
settle: (transform: (values: unknown) => unknown) => void;
|
|
33
|
+
/** A ref for the active option of a searchable select: scrolls it into view when it changes (guarded). */
|
|
34
|
+
scrollActive?: (path: string, index: number) => (el: Element | null) => void;
|
|
35
|
+
/** Forgets the scrolled option of a searchable select (no option active). */
|
|
36
|
+
clearActive?: (path: string) => void;
|
|
37
|
+
/** Keeps AnyField types guessed on first render (only paths without a type yet). */
|
|
38
|
+
keepAnyTypes?: (guesses: Record<string, string>) => void;
|
|
39
|
+
/** Registers (or, with undefined, drops) the document keydown action of an open searchable select. */
|
|
40
|
+
onDocumentKey?: (path: string, action: FormAction | undefined) => void;
|
|
41
|
+
/** Q-SEL-1: the field container of a searchable select; only the instance holding focus reacts to the document key. */
|
|
42
|
+
keyTarget?: (path: string) => (el: Element | null) => void;
|
|
43
|
+
defs?: Definitions;
|
|
44
|
+
sink?: IssueSink;
|
|
45
|
+
};
|
|
46
|
+
export declare const FormRuntimeContext: import("react").Context<FormRuntime>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { IssueSink } from "../../raw/core/issues";
|
|
3
|
+
import type { ComponentType } from "react";
|
|
4
|
+
/** `T`: the form values (accepted for 2.x `FormProps<T>` users; values live in the surrounding Formik). */
|
|
5
|
+
export type FormProps<T = any> = {
|
|
6
|
+
schema: any;
|
|
7
|
+
uiSchema?: any;
|
|
8
|
+
className?: string;
|
|
9
|
+
children?: ReactNode;
|
|
10
|
+
/** Field components by name: 2.x `Field` components work unchanged (C6); `undefined` entries are ignored. */
|
|
11
|
+
fields?: Partial<Record<string, ComponentType<any>>>;
|
|
12
|
+
templates?: Record<string, any>;
|
|
13
|
+
/** Replaces `components` (D3): each slot gets the library's `Default` for its key. */
|
|
14
|
+
slots?: Record<string, any>;
|
|
15
|
+
formContext?: Record<string, any>;
|
|
16
|
+
formOptions?: Record<string, any>;
|
|
17
|
+
formLocalization?: Record<string, any>;
|
|
18
|
+
/** A no-op since A11: the array normaliser treats a single `items` like this already (deprecated). */
|
|
19
|
+
useItemsAsAdditionalItems?: boolean;
|
|
20
|
+
hideUnmarkedAdditionalProperties?: boolean;
|
|
21
|
+
onAdditionalPropertyOrderChange?: (fieldName: string, oldOrder: string[], newOrder: string[]) => void;
|
|
22
|
+
hideSubmit?: boolean;
|
|
23
|
+
/** Receives issue codes (REF_CYCLE, KEY_REJECTED, PROP_REJECTED, ...). */
|
|
24
|
+
sink?: IssueSink;
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated Removed in v3 (D3): use `slots`; each slot gets the library's component as `Default`.
|
|
27
|
+
* Typed `never` so a call that still passes it fails to compile; at runtime it is ignored with a warning.
|
|
28
|
+
*/
|
|
29
|
+
components?: never;
|
|
30
|
+
[key: string]: unknown;
|
|
31
|
+
};
|
|
32
|
+
export declare const Form: (props: FormProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { FormikContextType } from "formik";
|
|
2
|
+
import type { FormRegistryContext, FormRuntime } from "./registry";
|
|
3
|
+
export declare const useFormRuntime: (formik: FormikContextType<any> | undefined, registry: FormRegistryContext, root: Pick<FormRuntime, "defs" | "sink">) => FormRuntime;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const FormTemplates: Record<"ArrayFieldTemplate" | "CollapsibleObjectFieldTemplate" | "FieldTemplate" | "ObjectFieldTemplate", any> & Record<string, any>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export type UploadProgressEvent = {
|
|
2
|
+
loaded: number;
|
|
3
|
+
total?: number | null;
|
|
4
|
+
};
|
|
5
|
+
export type FileUploadContextType<T> = {
|
|
6
|
+
uploadFile: (x: {
|
|
7
|
+
data: FormData;
|
|
8
|
+
onUploadProgress?: (progressEvent: UploadProgressEvent) => void;
|
|
9
|
+
}) => Promise<T>;
|
|
10
|
+
fetchFile: (value: T) => Promise<{
|
|
11
|
+
name: string;
|
|
12
|
+
}>;
|
|
13
|
+
removeFile: (fileName: string) => Promise<{
|
|
14
|
+
success: boolean;
|
|
15
|
+
message?: string;
|
|
16
|
+
}>;
|
|
17
|
+
};
|
|
18
|
+
export type FilesUploadContextType<T> = {
|
|
19
|
+
uploadFiles: (x: {
|
|
20
|
+
files: {
|
|
21
|
+
data: File;
|
|
22
|
+
progressId: string;
|
|
23
|
+
}[];
|
|
24
|
+
onUploadProgress?: (e: UploadProgressEvent, progressId: string) => void;
|
|
25
|
+
}) => Promise<Array<T & {
|
|
26
|
+
progressId: string;
|
|
27
|
+
}>>;
|
|
28
|
+
removeFile: (file: T) => Promise<{
|
|
29
|
+
success: boolean;
|
|
30
|
+
message?: string;
|
|
31
|
+
}>;
|
|
32
|
+
};
|
|
33
|
+
export declare const FileUploadContext: import("react").Context<FileUploadContextType<any>>;
|
|
34
|
+
export declare const FilesUploadContext: import("react").Context<FilesUploadContextType<any>>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { TemplateHost } from "../raw/model/host";
|
|
3
|
+
import type { ToReactEnv } from "./toReact";
|
|
4
|
+
type Registry = {
|
|
5
|
+
fields: Record<string, any>;
|
|
6
|
+
templates: Record<string, any>;
|
|
7
|
+
components: Record<string, any>;
|
|
8
|
+
};
|
|
9
|
+
export type HostDefaults<R extends Registry> = {
|
|
10
|
+
components: Record<string, any>;
|
|
11
|
+
templates: Record<string, any>;
|
|
12
|
+
/** The classes the default element of a component chain carries (not passed to an override). */
|
|
13
|
+
defaultClasses: (names: string[]) => string[];
|
|
14
|
+
/** A replaced template's `children` (2.x shape per template). */
|
|
15
|
+
children: (registry: R, host: TemplateHost, env: ToReactEnv) => ReactNode;
|
|
16
|
+
};
|
|
17
|
+
/** Own entries only: a uiSchema naming `constructor` or `toString` finds nothing (SEC-6, SEC-SSR-3). */
|
|
18
|
+
export declare const own: (map: Record<string, any> | undefined, name: string | undefined) => any;
|
|
19
|
+
/** 2.x `components.A ?? components.B`. */
|
|
20
|
+
export declare const lookup: (map: Record<string, any>, names: string[]) => any;
|
|
21
|
+
/** Continues the $ref chain below a React boundary. */
|
|
22
|
+
export declare const chained: (chain: string[] | undefined, element: ReactNode) => string | number | boolean | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | import("react").FunctionComponentElement<import("react").ProviderProps<string[]>> | null | undefined;
|
|
23
|
+
export declare const createHost: <R extends Registry>(defaults: HostDefaults<R>) => (registry: R, hole?: ReactNode, holes?: Record<string, ReactNode>) => ToReactEnv["host"];
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export { FormView } from "./view/root";
|
|
2
|
+
export type { FormViewProps } from "./view/root";
|
|
3
|
+
export { FormViewRegistry } from "./view/registry";
|
|
4
|
+
export type { FormViewRegistryContext, ViewField, ViewFieldProps } from "./view/registry";
|
|
5
|
+
export { FormViewFields, SchemaField } from "./view/fields";
|
|
6
|
+
export { FormViewTemplates } from "./view/templates";
|
|
7
|
+
export type { ViewArrayTemplateProps, ViewTemplateProps } from "./view/templates";
|
|
8
|
+
export { FormViewComponents, compatComponents } from "./view/components";
|
|
9
|
+
export type { ViewSlot, ViewSlots } from "./view/components";
|
|
10
|
+
export { reactProps, toReact } from "./toReact";
|
|
11
|
+
export type { ToReactEnv } from "./toReact";
|
|
12
|
+
export { Form } from "./form/root";
|
|
13
|
+
export type { FormProps } from "./form/root";
|
|
14
|
+
export { FormRegistry } from "./form/registry";
|
|
15
|
+
export type { FormField, FormFieldProps, FormRegistryContext } from "./form/registry";
|
|
16
|
+
export { FormFields, SchemaField as FormSchemaField } from "./form/fields";
|
|
17
|
+
export { FormTemplates } from "./form/templates";
|
|
18
|
+
export { FormComponents, formCompatComponents } from "./form/components";
|
|
19
|
+
/** @deprecated 3.x: defaults are applied per node appearance (§2.7a); kept as a wrapper. */
|
|
20
|
+
export { useSetDefault } from "./form/useSetDefault";
|
|
21
|
+
export { FileUploadContext, FilesUploadContext } from "./form/uploadContexts";
|
|
22
|
+
export type { FileUploadContextType, FilesUploadContextType, UploadProgressEvent } from "./form/uploadContexts";
|
|
23
|
+
export { cssVarsToString, fjsfClassNames, fjsfSelectors, getDefaultStyles, themeToCssVars } from "../raw/styles";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type StyledSelector = {
|
|
2
|
+
styledComponentId: string;
|
|
3
|
+
foldedComponentIds: string;
|
|
4
|
+
target: string;
|
|
5
|
+
attrs: unknown[];
|
|
6
|
+
shouldForwardProp: (prop: string) => boolean;
|
|
7
|
+
toString: () => string;
|
|
8
|
+
};
|
|
9
|
+
/** `classes`: the element's chain, base first; the last one is the component's own class. */
|
|
10
|
+
export declare const asStyledSelector: <C extends object>(component: C, tag: string, classes: readonly string[]) => C & StyledSelector;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ComponentType } from "react";
|
|
2
|
+
export type Slot = ComponentType<any>;
|
|
3
|
+
export type Slots = Partial<Record<string, Slot>>;
|
|
4
|
+
export declare const withSlots: (defaults: Record<string, any>, fallback: Record<string, string>, slots?: Slots, aliases?: Record<string, string>) => Record<string, any>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { VChild, VNode } from "../raw/model/vnode";
|
|
3
|
+
export type ToReactEnv = {
|
|
4
|
+
/** Renders a host-marked node; `native` renders its default markup. */
|
|
5
|
+
host?: (node: VNode, native: () => ReactNode, env: ToReactEnv) => ReactNode;
|
|
6
|
+
/** Turns a node's `on` descriptors into React props (handlers, controlled value). */
|
|
7
|
+
bind?: (node: VNode, props: Record<string, unknown>) => Record<string, unknown>;
|
|
8
|
+
};
|
|
9
|
+
export declare const reactProps: (attrs: VNode["attrs"]) => Record<string, unknown>;
|
|
10
|
+
export declare const toReact: (child: VChild, env?: ToReactEnv) => ReactNode;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ComponentType } from "react";
|
|
2
|
+
export declare const FormViewComponents: Record<string, any>;
|
|
3
|
+
export type ViewSlotName = Exclude<keyof typeof FormViewComponents & string, "getComponents">;
|
|
4
|
+
/** A slot: the caller's component, rendered with the library's `Default` for that key. */
|
|
5
|
+
export type ViewSlot = ComponentType<any>;
|
|
6
|
+
export type ViewSlots = Partial<Record<string, ViewSlot>>;
|
|
7
|
+
/** registry.components: the defaults, with each known slot wrapped around its `Default`. Unknown keys are ignored. */
|
|
8
|
+
export declare const compatComponents: (slots?: ViewSlots) => Record<string, any>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { VChild } from "../../raw/model/vnode";
|
|
3
|
+
import type { FormViewRegistryContext } from "./registry";
|
|
4
|
+
export declare const viewHost: (registry: FormViewRegistryContext, hole?: ReactNode, holes?: Record<string, ReactNode>) => import("../toReact").ToReactEnv["host"];
|
|
5
|
+
/** toReact with the current registry; `hole` is where a template's React children go. */
|
|
6
|
+
export declare const useViewRender: () => (node: VChild, hole?: ReactNode) => ReactNode;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { ComponentType } from "react";
|
|
2
|
+
import type { Definitions } from "../../raw/core/json";
|
|
3
|
+
import type { IssueSink } from "../../raw/core/issues";
|
|
4
|
+
import type { FileUploadView } from "../../raw/core/policies/fileUploadView";
|
|
5
|
+
export type ViewFieldProps = {
|
|
6
|
+
name: string;
|
|
7
|
+
schema: any;
|
|
8
|
+
uiSchema?: any;
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
};
|
|
11
|
+
export type ViewField = ComponentType<ViewFieldProps>;
|
|
12
|
+
export type FormViewRegistryContext = {
|
|
13
|
+
fields: Record<string, ViewField>;
|
|
14
|
+
templates: Record<string, ComponentType<any>>;
|
|
15
|
+
/** The deprecated compat map (CM-a): 2.x keys, React primitives, slots applied. */
|
|
16
|
+
components: Record<string, any>;
|
|
17
|
+
definitions: Definitions | undefined;
|
|
18
|
+
uiSchemaDefinitions: Record<string, any> | undefined;
|
|
19
|
+
formContext: Record<string, any>;
|
|
20
|
+
formLocalization?: Record<string, any>;
|
|
21
|
+
formOptions?: Record<string, any>;
|
|
22
|
+
useItemsAsAdditionalItems: boolean;
|
|
23
|
+
hideUnmarkedAdditionalProperties: boolean;
|
|
24
|
+
};
|
|
25
|
+
export declare const FormViewRegistry: import("react").Context<FormViewRegistryContext>;
|
|
26
|
+
/** What the root knows that the 2.x registry has no key for (kept out of the C6 key set). */
|
|
27
|
+
export type ViewRoot = {
|
|
28
|
+
defs?: Definitions;
|
|
29
|
+
fileUploadView?: FileUploadView;
|
|
30
|
+
sink?: IssueSink;
|
|
31
|
+
};
|
|
32
|
+
export declare const ViewRootContext: import("react").Context<ViewRoot>;
|
|
33
|
+
/** The $refs being expanded above a React boundary (shared with Form, ../chain.ts). */
|
|
34
|
+
export { ChainContext as ViewChainContext } from "../chain";
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { IssueSink } from "../../raw/core/issues";
|
|
2
|
+
import type { FileUploadView } from "../../raw/core/policies/fileUploadView";
|
|
3
|
+
import type { ViewSlots } from "./components";
|
|
4
|
+
import type { ComponentType } from "react";
|
|
5
|
+
import { SchemaField } from "./fields";
|
|
6
|
+
export type FormViewProps = {
|
|
7
|
+
schema: any;
|
|
8
|
+
uiSchema?: any;
|
|
9
|
+
className?: string;
|
|
10
|
+
/** Field components by name: 2.x `Field` components work unchanged (C6); `undefined` entries are ignored. */
|
|
11
|
+
fields?: Partial<Record<string, ComponentType<any>>>;
|
|
12
|
+
templates?: Record<string, any>;
|
|
13
|
+
/** Replaces `components` (D3): each slot gets the library's `Default` for its key. */
|
|
14
|
+
slots?: ViewSlots;
|
|
15
|
+
formContext?: Record<string, any>;
|
|
16
|
+
formOptions?: Record<string, any>;
|
|
17
|
+
formLocalization?: Record<string, any>;
|
|
18
|
+
useItemsAsAdditionalItems?: boolean;
|
|
19
|
+
hideUnmarkedAdditionalProperties?: boolean;
|
|
20
|
+
/** Q-FV-2: file upload fields; defaults to FILE_UPLOAD_VIEW. */
|
|
21
|
+
fileUploadView?: FileUploadView;
|
|
22
|
+
/** Receives issue codes (REF_CYCLE, KEY_REJECTED, ...). */
|
|
23
|
+
sink?: IssueSink;
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated Removed in v3 (D3): use `slots`; each slot gets the library's component as `Default`.
|
|
26
|
+
* Typed `never` so a call that still passes it fails to compile; at runtime it is ignored with a warning.
|
|
27
|
+
*/
|
|
28
|
+
components?: never;
|
|
29
|
+
[key: string]: unknown;
|
|
30
|
+
};
|
|
31
|
+
export declare const FormView: (props: FormViewProps) => import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
export { SchemaField };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export type ViewTemplateProps = {
|
|
3
|
+
name?: string;
|
|
4
|
+
schema?: any;
|
|
5
|
+
uiSchema?: any;
|
|
6
|
+
title?: ReactNode;
|
|
7
|
+
description?: ReactNode;
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
};
|
|
11
|
+
export type ViewArrayTemplateProps = ViewTemplateProps & {
|
|
12
|
+
items?: unknown[];
|
|
13
|
+
renderItem: (item: any, index: number) => ReactNode;
|
|
14
|
+
};
|
|
15
|
+
export declare const FormViewTemplates: Record<"FieldTemplate" | "ObjectFieldTemplate" | "ArrayFieldTemplate", any> & Record<string, any>;
|