@gravity-ui/dynamic-forms 5.20.0 → 5.21.0
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/build/cjs/lib/core/components/Form/DynamicField.js +3 -0
- package/build/cjs/lib/core/components/View/DynamicView.js +3 -0
- package/build/cjs/lib/core/helpers.d.ts +3 -1
- package/build/cjs/lib/core/helpers.js +27 -1
- package/build/cjs/lib/unstable/core/SchemaRenderer/SchemaRenderer.js +3 -3
- package/build/cjs/lib/unstable/core/SchemaRendererNode/SchemaRendererNode.d.ts +11 -0
- package/build/cjs/lib/unstable/core/SchemaRendererNode/SchemaRendererNode.js +131 -0
- package/build/cjs/lib/unstable/core/SchemaRendererNode/index.d.ts +3 -0
- package/build/cjs/lib/unstable/core/SchemaRendererNode/index.js +8 -0
- package/build/cjs/lib/unstable/core/SchemaRendererNode/types.d.ts +3 -0
- package/build/cjs/lib/unstable/core/SchemaRendererNode/utils.d.ts +25 -0
- package/build/cjs/lib/unstable/core/SchemaRendererNode/utils.js +162 -0
- package/build/cjs/lib/unstable/core/constants.d.ts +12 -1
- package/build/cjs/lib/unstable/core/constants.js +22 -10
- package/build/cjs/lib/unstable/core/index.d.ts +6 -3
- package/build/cjs/lib/unstable/core/index.js +18 -8
- package/build/cjs/lib/unstable/core/types/components.d.ts +21 -21
- package/build/cjs/lib/unstable/core/types/config.d.ts +28 -27
- package/build/cjs/lib/unstable/core/types/helpers.d.ts +22 -17
- package/build/cjs/lib/unstable/core/types/index.d.ts +1 -0
- package/build/cjs/lib/unstable/core/types/jsl-errors.d.ts +105 -0
- package/build/cjs/lib/unstable/core/types/schema.d.ts +63 -164
- package/build/cjs/lib/unstable/core/types/validation.d.ts +30 -32
- package/build/cjs/lib/unstable/core/useSchemaRenderer/constants.d.ts +1 -1
- package/build/cjs/lib/unstable/core/useSchemaRenderer/constants.js +2 -2
- package/build/cjs/lib/unstable/core/useSchemaRenderer/index.d.ts +3 -3
- package/build/cjs/lib/unstable/core/useSchemaRenderer/index.js +3 -6
- package/build/cjs/lib/unstable/core/useSchemaRenderer/types/index.d.ts +4 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/types/index.js +7 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/types/patches.d.ts +21 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/types/state.d.ts +34 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/types/subscription.d.ts +13 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/types/validation.d.ts +10 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/useSchemaRenderer.d.ts +7 -28
- package/build/cjs/lib/unstable/core/useSchemaRenderer/useSchemaRenderer.js +95 -69
- package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/get-dispatch.d.ts +3 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/get-dispatch.js +54 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/get-run-validate.d.ts +2 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/get-run-validate.js +19 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/get-schema-root-node.d.ts +11 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/get-schema-root-node.js +136 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/get-subscribe.d.ts +6 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/get-subscribe.js +63 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/get-validate.d.ts +3 -14
- package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/get-validate.js +69 -48
- package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/index.d.ts +3 -1
- package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/index.js +7 -3
- package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/parse-errors.d.ts +14 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/parse-errors.js +338 -0
- package/build/cjs/lib/unstable/core/useSchemaRendererState/index.d.ts +1 -0
- package/build/cjs/lib/unstable/core/useSchemaRendererState/index.js +5 -0
- package/build/cjs/lib/unstable/core/useSchemaRendererState/useSchemaRendererState.d.ts +9 -0
- package/build/cjs/lib/unstable/core/useSchemaRendererState/useSchemaRendererState.js +62 -0
- package/build/cjs/lib/unstable/core/useSchemaRendererTools/index.d.ts +1 -0
- package/build/cjs/lib/unstable/core/useSchemaRendererTools/index.js +5 -0
- package/build/cjs/lib/unstable/core/useSchemaRendererTools/useSchemaRendererTools.d.ts +8 -0
- package/build/cjs/lib/unstable/core/useSchemaRendererTools/useSchemaRendererTools.js +19 -0
- package/build/cjs/lib/unstable/core/useSchemaRendererTools/utils/external-errors.d.ts +18 -0
- package/build/cjs/lib/unstable/core/useSchemaRendererTools/utils/external-errors.js +38 -0
- package/build/cjs/lib/unstable/core/useSchemaRendererTools/utils/index.d.ts +3 -0
- package/build/cjs/lib/unstable/core/useSchemaRendererTools/utils/index.js +11 -0
- package/build/cjs/lib/unstable/core/useSchemaRendererTools/utils/schema-patch.d.ts +12 -0
- package/build/cjs/lib/unstable/core/useSchemaRendererTools/utils/schema-patch.js +175 -0
- package/build/cjs/lib/unstable/core/useSchemaRendererTools/utils/user-context.d.ts +9 -0
- package/build/cjs/lib/unstable/core/useSchemaRendererTools/utils/user-context.js +17 -0
- package/build/cjs/lib/unstable/core/utils/common.d.ts +36 -25
- package/build/cjs/lib/unstable/core/utils/common.js +46 -108
- package/build/cjs/lib/unstable/core/utils/definers.d.ts +58 -0
- package/build/cjs/lib/unstable/core/utils/definers.js +9 -0
- package/build/cjs/lib/unstable/core/utils/index.d.ts +1 -0
- package/build/cjs/lib/unstable/core/utils/index.js +1 -0
- package/build/cjs/lib/unstable/kit/components/ArrayRemoveButton/ArrayRemoveButton.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/components/ArrayRemoveButton/ArrayRemoveButton.js +2 -2
- package/build/cjs/lib/unstable/kit/components/CopyButton/CopyButton.css +9 -0
- package/build/cjs/lib/unstable/kit/components/CopyButton/CopyButton.d.ts +7 -0
- package/build/cjs/lib/unstable/kit/components/CopyButton/CopyButton.js +18 -0
- package/build/cjs/lib/unstable/kit/components/CopyButton/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/components/CopyButton/index.js +5 -0
- package/build/cjs/lib/unstable/kit/components/EmptyEntityValue/EmptyEntityValue.d.ts +2 -0
- package/build/cjs/lib/unstable/kit/components/EmptyEntityValue/EmptyEntityValue.js +11 -0
- package/build/cjs/lib/unstable/kit/components/EmptyEntityValue/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/components/EmptyEntityValue/index.js +5 -0
- package/build/cjs/lib/unstable/kit/components/EntityContainer/EntityContainer.css +22 -0
- package/build/cjs/lib/unstable/kit/components/EntityContainer/EntityContainer.d.ts +8 -0
- package/build/cjs/lib/unstable/kit/components/EntityContainer/EntityContainer.js +14 -0
- package/build/cjs/lib/unstable/kit/components/EntityContainer/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/components/EntityContainer/index.js +5 -0
- package/build/cjs/lib/unstable/kit/components/EntityError/EntityError.css +3 -0
- package/build/cjs/lib/unstable/kit/components/EntityError/EntityError.d.ts +6 -0
- package/build/cjs/lib/unstable/kit/components/EntityError/EntityError.js +15 -0
- package/build/cjs/lib/unstable/kit/components/EntityError/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/components/EntityError/index.js +5 -0
- package/build/cjs/lib/unstable/kit/components/LayoutContainer/LayoutContainer.css +11 -0
- package/build/cjs/lib/unstable/kit/components/LayoutContainer/LayoutContainer.d.ts +7 -0
- package/build/cjs/lib/unstable/kit/components/LayoutContainer/LayoutContainer.js +13 -0
- package/build/cjs/lib/unstable/kit/components/LayoutContainer/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/components/LayoutContainer/index.js +5 -0
- package/build/cjs/lib/unstable/kit/components/LongValue/LongValue.css +19 -0
- package/build/cjs/lib/unstable/kit/components/LongValue/LongValue.d.ts +7 -0
- package/build/cjs/lib/unstable/kit/components/LongValue/LongValue.js +42 -0
- package/build/cjs/lib/unstable/kit/components/LongValue/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/components/LongValue/index.js +5 -0
- package/build/cjs/lib/unstable/kit/components/MonacoContainer/MonacoContainer.css +21 -0
- package/build/cjs/lib/unstable/kit/components/MonacoContainer/MonacoContainer.d.ts +12 -0
- package/build/cjs/lib/unstable/kit/components/MonacoContainer/MonacoContainer.js +21 -0
- package/build/cjs/lib/unstable/kit/components/MonacoContainer/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/components/MonacoContainer/index.js +5 -0
- package/build/cjs/lib/unstable/kit/components/index.d.ts +7 -3
- package/build/cjs/lib/unstable/kit/components/index.js +15 -7
- package/build/cjs/lib/unstable/kit/constants/common.d.ts +2 -0
- package/build/cjs/lib/unstable/kit/constants/common.js +5 -0
- package/build/cjs/lib/unstable/kit/constants/config.d.ts +445 -76
- package/build/cjs/lib/unstable/kit/constants/config.js +198 -76
- package/build/cjs/lib/unstable/kit/constants/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/constants/index.js +4 -1
- package/build/cjs/lib/unstable/kit/entities/Alert/Alert.d.ts +8 -0
- package/build/cjs/lib/unstable/kit/entities/Alert/Alert.js +27 -0
- package/build/cjs/lib/unstable/kit/entities/ArrayEntity/ArrayEntity.css +3 -0
- package/build/cjs/lib/unstable/kit/entities/ArrayEntity/ArrayEntity.d.ts +6 -0
- package/build/cjs/lib/unstable/kit/entities/ArrayEntity/ArrayEntity.js +57 -0
- package/build/cjs/lib/unstable/kit/entities/ArrayEntity/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/entities/ArrayEntity/index.js +5 -0
- package/build/cjs/lib/unstable/kit/entities/ArrayTable/ArrayTable.css +45 -0
- package/build/cjs/lib/unstable/kit/entities/ArrayTable/ArrayTable.d.ts +7 -0
- package/build/cjs/lib/unstable/kit/entities/ArrayTable/ArrayTable.js +102 -0
- package/build/cjs/lib/unstable/kit/entities/DotValue/DotValue.d.ts +4 -0
- package/build/cjs/lib/unstable/kit/entities/DotValue/DotValue.js +33 -0
- package/build/cjs/lib/unstable/kit/entities/FewOfNested/FewOfNested.css +17 -0
- package/build/cjs/lib/unstable/kit/entities/FewOfNested/FewOfNested.d.ts +7 -0
- package/build/cjs/lib/unstable/kit/entities/FewOfNested/FewOfNested.js +73 -0
- package/build/cjs/lib/unstable/kit/entities/Label/Label.d.ts +8 -0
- package/build/cjs/lib/unstable/kit/entities/Label/Label.js +30 -0
- package/build/cjs/lib/unstable/kit/entities/Monaco/Monaco.css +6 -0
- package/build/cjs/lib/unstable/kit/entities/Monaco/Monaco.d.ts +7 -0
- package/build/cjs/lib/unstable/kit/entities/Monaco/Monaco.js +80 -0
- package/build/cjs/lib/unstable/kit/entities/Monaco/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/entities/Monaco/index.js +5 -0
- package/build/cjs/lib/unstable/kit/entities/ObjectEntity/ObjectEntity.d.ts +6 -0
- package/build/cjs/lib/unstable/kit/entities/ObjectEntity/ObjectEntity.js +16 -0
- package/build/cjs/lib/unstable/kit/entities/ObjectEntity/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/entities/ObjectEntity/index.js +5 -0
- package/build/cjs/lib/unstable/kit/entities/ObjectInline/ObjectInline.css +11 -0
- package/build/cjs/lib/unstable/kit/entities/ObjectInline/ObjectInline.d.ts +7 -0
- package/build/cjs/lib/unstable/kit/entities/ObjectInline/ObjectInline.js +26 -0
- package/build/cjs/lib/unstable/kit/entities/OneOfNested/OneOfNested.css +17 -0
- package/build/cjs/lib/unstable/kit/entities/OneOfNested/OneOfNested.d.ts +11 -0
- package/build/cjs/lib/unstable/kit/entities/OneOfNested/OneOfNested.js +70 -0
- package/build/cjs/lib/unstable/kit/entities/TextContent/TextContent.css +19 -0
- package/build/cjs/lib/unstable/kit/entities/TextContent/TextContent.d.ts +8 -0
- package/build/cjs/lib/unstable/kit/entities/TextContent/TextContent.js +31 -0
- package/build/cjs/lib/unstable/kit/entities/index.d.ts +11 -0
- package/build/cjs/lib/unstable/kit/entities/index.js +25 -0
- package/build/cjs/lib/unstable/kit/form-entities/CheckboxGroupInput/CheckboxGroupInput.css +9 -0
- package/build/cjs/lib/unstable/kit/form-entities/CheckboxGroupInput/CheckboxGroupInput.d.ts +8 -0
- package/build/cjs/lib/unstable/kit/form-entities/CheckboxGroupInput/CheckboxGroupInput.js +42 -0
- package/build/cjs/lib/unstable/kit/form-entities/CheckboxGroupInput/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/form-entities/CheckboxGroupInput/index.js +5 -0
- package/build/cjs/lib/unstable/kit/form-entities/CheckboxInput/CheckboxInput.css +11 -0
- package/build/cjs/lib/unstable/kit/form-entities/CheckboxInput/CheckboxInput.d.ts +5 -0
- package/build/cjs/lib/unstable/kit/form-entities/CheckboxInput/CheckboxInput.js +20 -0
- package/build/cjs/lib/unstable/kit/form-entities/CheckboxInput/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/form-entities/CheckboxInput/index.js +5 -0
- package/build/cjs/lib/unstable/kit/form-entities/ColorPickerInput/ColorPickerInput.css +6 -0
- package/build/cjs/lib/unstable/kit/form-entities/ColorPickerInput/ColorPickerInput.d.ts +5 -0
- package/build/cjs/lib/unstable/kit/form-entities/ColorPickerInput/ColorPickerInput.js +25 -0
- package/build/cjs/lib/unstable/kit/form-entities/ColorPickerInput/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/form-entities/ColorPickerInput/index.js +5 -0
- package/build/cjs/lib/unstable/kit/form-entities/DateInput/DateInput.d.ts +6 -0
- package/build/cjs/lib/unstable/kit/form-entities/DateInput/DateInput.js +47 -0
- package/build/cjs/lib/unstable/kit/form-entities/FileInput/FileInput.d.ts +6 -0
- package/build/cjs/lib/unstable/kit/form-entities/FileInput/FileInput.js +53 -0
- package/build/cjs/lib/unstable/kit/form-entities/MultiSelectInput/MultiSelectInput.d.ts +7 -0
- package/build/cjs/lib/unstable/kit/form-entities/MultiSelectInput/MultiSelectInput.js +38 -0
- package/build/cjs/lib/unstable/kit/form-entities/MultiSelectInput/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/form-entities/MultiSelectInput/index.js +5 -0
- package/build/cjs/lib/unstable/kit/form-entities/NumberInput/NumberInput.css +3 -0
- package/build/cjs/lib/unstable/kit/form-entities/NumberInput/NumberInput.d.ts +5 -0
- package/build/cjs/lib/unstable/kit/form-entities/NumberInput/NumberInput.js +16 -0
- package/build/cjs/lib/unstable/kit/form-entities/NumberInput/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/form-entities/NumberInput/index.js +5 -0
- package/build/cjs/lib/unstable/kit/form-entities/NumberWithScaleInput/NumberWithScaleInput.css +6 -0
- package/build/cjs/lib/unstable/kit/form-entities/NumberWithScaleInput/NumberWithScaleInput.d.ts +11 -0
- package/build/cjs/lib/unstable/kit/form-entities/NumberWithScaleInput/NumberWithScaleInput.js +76 -0
- package/build/cjs/lib/unstable/kit/form-entities/NumberWithScaleInput/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/form-entities/NumberWithScaleInput/index.js +5 -0
- package/build/cjs/lib/unstable/kit/form-entities/PasswordInput/PasswordInput.css +3 -0
- package/build/cjs/lib/unstable/kit/form-entities/PasswordInput/PasswordInput.d.ts +5 -0
- package/build/cjs/lib/unstable/kit/form-entities/PasswordInput/PasswordInput.js +16 -0
- package/build/cjs/lib/unstable/kit/form-entities/PasswordInput/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/form-entities/PasswordInput/index.js +5 -0
- package/build/cjs/lib/unstable/kit/form-entities/RadioGroupInput/RadioGroupInput.css +13 -0
- package/build/cjs/lib/unstable/kit/form-entities/RadioGroupInput/RadioGroupInput.d.ts +7 -0
- package/build/cjs/lib/unstable/kit/form-entities/RadioGroupInput/RadioGroupInput.js +24 -0
- package/build/cjs/lib/unstable/kit/form-entities/RadioGroupInput/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/form-entities/RadioGroupInput/index.js +5 -0
- package/build/cjs/lib/unstable/kit/form-entities/RangeInput/RangeInput.css +8 -0
- package/build/cjs/lib/unstable/kit/form-entities/RangeInput/RangeInput.d.ts +6 -0
- package/build/cjs/lib/unstable/kit/form-entities/RangeInput/RangeInput.js +71 -0
- package/build/cjs/lib/unstable/kit/form-entities/RangeInput/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/form-entities/RangeInput/index.js +5 -0
- package/build/cjs/lib/unstable/kit/form-entities/RangeSliderInput/RangeSliderInput.d.ts +6 -0
- package/build/cjs/lib/unstable/kit/form-entities/RangeSliderInput/RangeSliderInput.js +35 -0
- package/build/cjs/lib/unstable/kit/form-entities/RangeSliderInput/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/form-entities/RangeSliderInput/index.js +5 -0
- package/build/cjs/lib/unstable/kit/form-entities/SegmentedRadioGroupInput/SegmentedRadioGroupInput.css +6 -0
- package/build/cjs/lib/unstable/kit/form-entities/SegmentedRadioGroupInput/SegmentedRadioGroupInput.d.ts +7 -0
- package/build/cjs/lib/unstable/kit/form-entities/SegmentedRadioGroupInput/SegmentedRadioGroupInput.js +29 -0
- package/build/cjs/lib/unstable/kit/form-entities/SegmentedRadioGroupInput/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/form-entities/SegmentedRadioGroupInput/index.js +5 -0
- package/build/cjs/lib/unstable/kit/form-entities/SelectInput/SelectInput.d.ts +8 -0
- package/build/cjs/lib/unstable/kit/form-entities/SelectInput/SelectInput.js +35 -0
- package/build/cjs/lib/unstable/kit/form-entities/SelectInput/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/form-entities/SelectInput/index.js +5 -0
- package/build/cjs/lib/unstable/kit/form-entities/SliderInput/SliderInput.d.ts +5 -0
- package/build/cjs/lib/unstable/kit/form-entities/SliderInput/SliderInput.js +21 -0
- package/build/cjs/lib/unstable/kit/form-entities/SliderInput/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/form-entities/SliderInput/index.js +5 -0
- package/build/cjs/lib/unstable/kit/form-entities/StringInput/StringInput.css +3 -0
- package/build/cjs/lib/unstable/kit/form-entities/StringInput/StringInput.d.ts +5 -0
- package/build/cjs/lib/unstable/kit/form-entities/StringInput/StringInput.js +15 -0
- package/build/cjs/lib/unstable/kit/form-entities/StringInput/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/form-entities/StringInput/index.js +5 -0
- package/build/cjs/lib/unstable/kit/form-entities/StringNumberWithScaleInput/StringNumberWithScaleInput.css +6 -0
- package/build/cjs/lib/unstable/kit/form-entities/StringNumberWithScaleInput/StringNumberWithScaleInput.d.ts +11 -0
- package/build/cjs/lib/unstable/kit/form-entities/StringNumberWithScaleInput/StringNumberWithScaleInput.js +81 -0
- package/build/cjs/lib/unstable/kit/form-entities/StringNumberWithScaleInput/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/form-entities/StringNumberWithScaleInput/index.js +5 -0
- package/build/cjs/lib/unstable/kit/form-entities/SwitchInput/SwitchInput.css +11 -0
- package/build/cjs/lib/unstable/kit/form-entities/SwitchInput/SwitchInput.d.ts +5 -0
- package/build/cjs/lib/unstable/kit/form-entities/SwitchInput/SwitchInput.js +20 -0
- package/build/cjs/lib/unstable/kit/form-entities/SwitchInput/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/form-entities/SwitchInput/index.js +5 -0
- package/build/cjs/lib/unstable/kit/form-entities/TextAreaInput/TextAreaInput.css +3 -0
- package/build/cjs/lib/unstable/kit/form-entities/TextAreaInput/TextAreaInput.d.ts +5 -0
- package/build/cjs/lib/unstable/kit/form-entities/TextAreaInput/TextAreaInput.js +15 -0
- package/build/cjs/lib/unstable/kit/form-entities/TextAreaInput/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/form-entities/TextAreaInput/index.js +5 -0
- package/build/cjs/lib/unstable/kit/form-entities/index.d.ts +19 -0
- package/build/cjs/lib/unstable/kit/form-entities/index.js +41 -0
- package/build/cjs/lib/unstable/kit/form-layouts/FormColumn/FormColumn.css +21 -0
- package/build/cjs/lib/unstable/kit/form-layouts/FormColumn/FormColumn.d.ts +5 -0
- package/build/cjs/lib/unstable/kit/form-layouts/FormColumn/FormColumn.js +35 -0
- package/build/cjs/lib/unstable/kit/form-layouts/FormColumn/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/form-layouts/FormColumn/index.js +5 -0
- package/build/cjs/lib/unstable/kit/form-layouts/FormRow/FormRow.css +25 -0
- package/build/cjs/lib/unstable/kit/form-layouts/FormRow/FormRow.d.ts +5 -0
- package/build/cjs/lib/unstable/kit/form-layouts/FormRow/FormRow.js +35 -0
- package/build/cjs/lib/unstable/kit/form-layouts/FormRow/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/form-layouts/FormRow/index.js +5 -0
- package/build/cjs/lib/unstable/kit/form-layouts/index.d.ts +2 -0
- package/build/cjs/lib/unstable/kit/form-layouts/index.js +7 -0
- package/build/cjs/lib/unstable/kit/index.d.ts +9 -0
- package/build/cjs/lib/unstable/kit/index.js +12 -0
- package/build/cjs/lib/unstable/kit/layouts/Accordeon/Accordeon.css +46 -0
- package/build/cjs/lib/unstable/kit/layouts/Accordeon/Accordeon.d.ts +9 -0
- package/build/cjs/lib/unstable/kit/layouts/Accordeon/Accordeon.js +47 -0
- package/build/cjs/lib/unstable/kit/layouts/Card/Card.css +41 -0
- package/build/cjs/lib/unstable/kit/layouts/Card/Card.d.ts +7 -0
- package/build/cjs/lib/unstable/kit/layouts/Card/Card.js +50 -0
- package/build/cjs/lib/unstable/kit/layouts/Card/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/layouts/Card/index.js +5 -0
- package/build/cjs/lib/unstable/kit/layouts/Section/Section.css +34 -0
- package/build/cjs/lib/unstable/kit/layouts/Section/Section.d.ts +7 -0
- package/build/cjs/lib/unstable/kit/layouts/Section/Section.js +39 -0
- package/build/cjs/lib/unstable/kit/layouts/Transparent/Transparent.css +12 -0
- package/build/cjs/lib/unstable/kit/layouts/Transparent/Transparent.d.ts +5 -0
- package/build/cjs/lib/unstable/kit/layouts/Transparent/Transparent.js +21 -0
- package/build/cjs/lib/unstable/kit/layouts/index.d.ts +4 -0
- package/build/cjs/lib/unstable/kit/layouts/index.js +11 -0
- package/build/cjs/lib/unstable/kit/overview-entities/BooleanValue/BooleanValue.d.ts +14 -0
- package/build/cjs/lib/unstable/kit/overview-entities/BooleanValue/BooleanValue.js +25 -0
- package/build/cjs/lib/unstable/kit/overview-entities/BooleanValue/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/overview-entities/BooleanValue/index.js +5 -0
- package/build/cjs/lib/unstable/kit/overview-entities/ColorPickerValue/ColorPickerValue.css +6 -0
- package/build/cjs/lib/unstable/kit/overview-entities/ColorPickerValue/ColorPickerValue.d.ts +5 -0
- package/build/cjs/lib/unstable/kit/overview-entities/ColorPickerValue/ColorPickerValue.js +19 -0
- package/build/cjs/lib/unstable/kit/overview-entities/ColorPickerValue/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/overview-entities/ColorPickerValue/index.js +5 -0
- package/build/cjs/lib/unstable/kit/overview-entities/DateValue/DateValue.d.ts +9 -0
- package/build/cjs/lib/unstable/kit/overview-entities/DateValue/DateValue.js +20 -0
- package/build/cjs/lib/unstable/kit/overview-entities/DateValue/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/overview-entities/DateValue/index.js +5 -0
- package/build/cjs/lib/unstable/kit/overview-entities/NumberValue/NumberValue.d.ts +5 -0
- package/build/cjs/lib/unstable/kit/overview-entities/NumberValue/NumberValue.js +15 -0
- package/build/cjs/lib/unstable/kit/overview-entities/NumberValue/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/overview-entities/NumberValue/index.js +5 -0
- package/build/cjs/lib/unstable/kit/overview-entities/NumberWithScaleValue/NumberWithScaleValue.d.ts +10 -0
- package/build/cjs/lib/unstable/kit/overview-entities/NumberWithScaleValue/NumberWithScaleValue.js +34 -0
- package/build/cjs/lib/unstable/kit/overview-entities/NumberWithScaleValue/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/overview-entities/NumberWithScaleValue/index.js +5 -0
- package/build/cjs/lib/unstable/kit/overview-entities/PrimitiveArrayValue/PrimitiveArrayValue.d.ts +7 -0
- package/build/cjs/lib/unstable/kit/overview-entities/PrimitiveArrayValue/PrimitiveArrayValue.js +27 -0
- package/build/cjs/lib/unstable/kit/overview-entities/PrimitiveArrayValue/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/overview-entities/PrimitiveArrayValue/index.js +5 -0
- package/build/cjs/lib/unstable/kit/overview-entities/RangeValue/RangeValue.d.ts +7 -0
- package/build/cjs/lib/unstable/kit/overview-entities/RangeValue/RangeValue.js +24 -0
- package/build/cjs/lib/unstable/kit/overview-entities/RangeValue/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/overview-entities/RangeValue/index.js +5 -0
- package/build/cjs/lib/unstable/kit/overview-entities/StringNumberWithScaleValue/StringNumberWithScaleValue.d.ts +10 -0
- package/build/cjs/lib/unstable/kit/overview-entities/StringNumberWithScaleValue/StringNumberWithScaleValue.js +35 -0
- package/build/cjs/lib/unstable/kit/overview-entities/StringNumberWithScaleValue/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/overview-entities/StringNumberWithScaleValue/index.js +5 -0
- package/build/cjs/lib/unstable/kit/overview-entities/StringValue/StringValue.d.ts +5 -0
- package/build/cjs/lib/unstable/kit/overview-entities/StringValue/StringValue.js +14 -0
- package/build/cjs/lib/unstable/kit/overview-entities/StringValue/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/overview-entities/StringValue/index.js +5 -0
- package/build/cjs/lib/unstable/kit/overview-entities/index.d.ts +9 -0
- package/build/cjs/lib/unstable/kit/overview-entities/index.js +21 -0
- package/build/cjs/lib/unstable/kit/overview-layouts/OverviewColumn/OverviewColumn.css +22 -0
- package/build/cjs/lib/unstable/kit/overview-layouts/OverviewColumn/OverviewColumn.d.ts +2 -0
- package/build/cjs/lib/unstable/kit/overview-layouts/OverviewColumn/OverviewColumn.js +28 -0
- package/build/cjs/lib/unstable/kit/overview-layouts/OverviewColumn/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/overview-layouts/OverviewColumn/index.js +5 -0
- package/build/cjs/lib/unstable/kit/overview-layouts/OverviewRow/OverviewRow.css +38 -0
- package/build/cjs/lib/unstable/kit/overview-layouts/OverviewRow/OverviewRow.d.ts +2 -0
- package/build/cjs/lib/unstable/kit/overview-layouts/OverviewRow/OverviewRow.js +28 -0
- package/build/cjs/lib/unstable/kit/overview-layouts/OverviewRow/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/overview-layouts/OverviewRow/index.js +5 -0
- package/build/cjs/lib/unstable/kit/overview-layouts/index.d.ts +2 -0
- package/build/cjs/lib/unstable/kit/overview-layouts/index.js +7 -0
- package/build/cjs/lib/unstable/kit/utils/common.d.ts +4 -1
- package/build/cjs/lib/unstable/kit/utils/common.js +19 -5
- package/build/cjs/lib/unstable/kit/utils/date.d.ts +2 -0
- package/build/cjs/lib/unstable/kit/utils/date.js +15 -0
- package/build/cjs/lib/unstable/kit/utils/index.d.ts +3 -1
- package/build/cjs/lib/unstable/kit/utils/index.js +14 -1
- package/build/cjs/lib/unstable/kit/utils/transformer.d.ts +18 -0
- package/build/cjs/lib/unstable/kit/utils/transformer.js +2912 -0
- package/build/cjs/unstable.d.ts +1 -3
- package/build/cjs/unstable.js +1 -6
- package/build/esm/lib/core/components/Form/DynamicField.js +4 -1
- package/build/esm/lib/core/components/View/DynamicView.js +4 -1
- package/build/esm/lib/core/helpers.d.ts +3 -1
- package/build/esm/lib/core/helpers.js +24 -0
- package/build/esm/lib/unstable/core/SchemaRenderer/SchemaRenderer.js +3 -3
- package/build/esm/lib/unstable/core/SchemaRendererNode/SchemaRendererNode.d.ts +11 -0
- package/build/esm/lib/unstable/core/SchemaRendererNode/SchemaRendererNode.js +127 -0
- package/build/esm/lib/unstable/core/SchemaRendererNode/index.d.ts +3 -0
- package/build/esm/lib/unstable/core/SchemaRendererNode/index.js +2 -0
- package/build/esm/lib/unstable/core/SchemaRendererNode/types.d.ts +3 -0
- package/build/esm/lib/unstable/core/SchemaRendererNode/utils.d.ts +25 -0
- package/build/esm/lib/unstable/core/SchemaRendererNode/utils.js +156 -0
- package/build/esm/lib/unstable/core/constants.d.ts +12 -1
- package/build/esm/lib/unstable/core/constants.js +21 -9
- package/build/esm/lib/unstable/core/index.d.ts +6 -3
- package/build/esm/lib/unstable/core/index.js +6 -3
- package/build/esm/lib/unstable/core/types/components.d.ts +21 -21
- package/build/esm/lib/unstable/core/types/config.d.ts +28 -27
- package/build/esm/lib/unstable/core/types/helpers.d.ts +22 -17
- package/build/esm/lib/unstable/core/types/index.d.ts +1 -0
- package/build/esm/lib/unstable/core/types/jsl-errors.d.ts +105 -0
- package/build/esm/lib/unstable/core/types/schema.d.ts +63 -164
- package/build/esm/lib/unstable/core/types/validation.d.ts +30 -32
- package/build/esm/lib/unstable/core/useSchemaRenderer/constants.d.ts +1 -1
- package/build/esm/lib/unstable/core/useSchemaRenderer/constants.js +1 -1
- package/build/esm/lib/unstable/core/useSchemaRenderer/index.d.ts +3 -3
- package/build/esm/lib/unstable/core/useSchemaRenderer/index.js +2 -3
- package/build/esm/lib/unstable/core/useSchemaRenderer/types/index.d.ts +4 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/types/index.js +4 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/types/patches.d.ts +21 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/types/state.d.ts +34 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/types/subscription.d.ts +13 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/types/validation.d.ts +10 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/useSchemaRenderer.d.ts +7 -28
- package/build/esm/lib/unstable/core/useSchemaRenderer/useSchemaRenderer.js +97 -71
- package/build/esm/lib/unstable/core/useSchemaRenderer/utils/get-dispatch.d.ts +3 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/utils/get-dispatch.js +50 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/utils/get-run-validate.d.ts +2 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/utils/get-run-validate.js +15 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/utils/get-schema-root-node.d.ts +11 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/utils/get-schema-root-node.js +131 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/utils/get-subscribe.d.ts +6 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/utils/get-subscribe.js +59 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/utils/get-validate.d.ts +3 -14
- package/build/esm/lib/unstable/core/useSchemaRenderer/utils/get-validate.js +70 -49
- package/build/esm/lib/unstable/core/useSchemaRenderer/utils/index.d.ts +3 -1
- package/build/esm/lib/unstable/core/useSchemaRenderer/utils/index.js +3 -1
- package/build/esm/lib/unstable/core/useSchemaRenderer/utils/parse-errors.d.ts +14 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/utils/parse-errors.js +334 -0
- package/build/esm/lib/unstable/core/useSchemaRendererState/index.d.ts +1 -0
- package/build/esm/lib/unstable/core/useSchemaRendererState/index.js +1 -0
- package/build/esm/lib/unstable/core/useSchemaRendererState/useSchemaRendererState.d.ts +9 -0
- package/build/esm/lib/unstable/core/useSchemaRendererState/useSchemaRendererState.js +57 -0
- package/build/esm/lib/unstable/core/useSchemaRendererTools/index.d.ts +1 -0
- package/build/esm/lib/unstable/core/useSchemaRendererTools/index.js +1 -0
- package/build/esm/lib/unstable/core/useSchemaRendererTools/useSchemaRendererTools.d.ts +8 -0
- package/build/esm/lib/unstable/core/useSchemaRendererTools/useSchemaRendererTools.js +14 -0
- package/build/esm/lib/unstable/core/useSchemaRendererTools/utils/external-errors.d.ts +18 -0
- package/build/esm/lib/unstable/core/useSchemaRendererTools/utils/external-errors.js +32 -0
- package/build/esm/lib/unstable/core/useSchemaRendererTools/utils/index.d.ts +3 -0
- package/build/esm/lib/unstable/core/useSchemaRendererTools/utils/index.js +3 -0
- package/build/esm/lib/unstable/core/useSchemaRendererTools/utils/schema-patch.d.ts +12 -0
- package/build/esm/lib/unstable/core/useSchemaRendererTools/utils/schema-patch.js +169 -0
- package/build/esm/lib/unstable/core/useSchemaRendererTools/utils/user-context.d.ts +9 -0
- package/build/esm/lib/unstable/core/useSchemaRendererTools/utils/user-context.js +13 -0
- package/build/esm/lib/unstable/core/utils/common.d.ts +36 -25
- package/build/esm/lib/unstable/core/utils/common.js +40 -97
- package/build/esm/lib/unstable/core/utils/definers.d.ts +58 -0
- package/build/esm/lib/unstable/core/utils/definers.js +3 -0
- package/build/esm/lib/unstable/core/utils/index.d.ts +1 -0
- package/build/esm/lib/unstable/core/utils/index.js +1 -0
- package/build/esm/lib/unstable/kit/components/ArrayRemoveButton/ArrayRemoveButton.d.ts +1 -0
- package/build/esm/lib/unstable/kit/components/ArrayRemoveButton/ArrayRemoveButton.js +2 -2
- package/build/esm/lib/unstable/kit/components/CopyButton/CopyButton.css +9 -0
- package/build/esm/lib/unstable/kit/components/CopyButton/CopyButton.d.ts +8 -0
- package/build/esm/lib/unstable/kit/components/CopyButton/CopyButton.js +14 -0
- package/build/esm/lib/unstable/kit/components/CopyButton/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/components/CopyButton/index.js +1 -0
- package/build/esm/lib/unstable/kit/components/EmptyEntityValue/EmptyEntityValue.d.ts +2 -0
- package/build/esm/lib/unstable/kit/components/EmptyEntityValue/EmptyEntityValue.js +6 -0
- package/build/esm/lib/unstable/kit/components/EmptyEntityValue/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/components/EmptyEntityValue/index.js +1 -0
- package/build/esm/lib/unstable/kit/components/EntityContainer/EntityContainer.css +22 -0
- package/build/esm/lib/unstable/kit/components/EntityContainer/EntityContainer.d.ts +9 -0
- package/build/esm/lib/unstable/kit/components/EntityContainer/EntityContainer.js +11 -0
- package/build/esm/lib/unstable/kit/components/EntityContainer/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/components/EntityContainer/index.js +1 -0
- package/build/esm/lib/unstable/kit/components/EntityError/EntityError.css +3 -0
- package/build/esm/lib/unstable/kit/components/EntityError/EntityError.d.ts +7 -0
- package/build/esm/lib/unstable/kit/components/EntityError/EntityError.js +11 -0
- package/build/esm/lib/unstable/kit/components/EntityError/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/components/EntityError/index.js +1 -0
- package/build/esm/lib/unstable/kit/components/LayoutContainer/LayoutContainer.css +11 -0
- package/build/esm/lib/unstable/kit/components/LayoutContainer/LayoutContainer.d.ts +8 -0
- package/build/esm/lib/unstable/kit/components/LayoutContainer/LayoutContainer.js +10 -0
- package/build/esm/lib/unstable/kit/components/LayoutContainer/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/components/LayoutContainer/index.js +1 -0
- package/build/esm/lib/unstable/kit/components/LongValue/LongValue.css +19 -0
- package/build/esm/lib/unstable/kit/components/LongValue/LongValue.d.ts +8 -0
- package/build/esm/lib/unstable/kit/components/LongValue/LongValue.js +39 -0
- package/build/esm/lib/unstable/kit/components/LongValue/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/components/LongValue/index.js +1 -0
- package/build/esm/lib/unstable/kit/components/MonacoContainer/MonacoContainer.css +21 -0
- package/build/esm/lib/unstable/kit/components/MonacoContainer/MonacoContainer.d.ts +13 -0
- package/build/esm/lib/unstable/kit/components/MonacoContainer/MonacoContainer.js +17 -0
- package/build/esm/lib/unstable/kit/components/MonacoContainer/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/components/MonacoContainer/index.js +1 -0
- package/build/esm/lib/unstable/kit/components/index.d.ts +7 -3
- package/build/esm/lib/unstable/kit/components/index.js +7 -3
- package/build/esm/lib/unstable/kit/constants/common.d.ts +2 -0
- package/build/esm/lib/unstable/kit/constants/common.js +2 -0
- package/build/esm/lib/unstable/kit/constants/config.d.ts +445 -76
- package/build/esm/lib/unstable/kit/constants/config.js +191 -69
- package/build/esm/lib/unstable/kit/constants/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/constants/index.js +1 -0
- package/build/esm/lib/unstable/kit/entities/Alert/Alert.d.ts +8 -0
- package/build/esm/lib/unstable/kit/entities/Alert/Alert.js +23 -0
- package/build/esm/lib/unstable/kit/entities/ArrayEntity/ArrayEntity.css +3 -0
- package/build/esm/lib/unstable/kit/entities/ArrayEntity/ArrayEntity.d.ts +7 -0
- package/build/esm/lib/unstable/kit/entities/ArrayEntity/ArrayEntity.js +53 -0
- package/build/esm/lib/unstable/kit/entities/ArrayEntity/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/entities/ArrayEntity/index.js +1 -0
- package/build/esm/lib/unstable/kit/entities/ArrayTable/ArrayTable.css +45 -0
- package/build/esm/lib/unstable/kit/entities/ArrayTable/ArrayTable.d.ts +8 -0
- package/build/esm/lib/unstable/kit/entities/ArrayTable/ArrayTable.js +98 -0
- package/build/esm/lib/unstable/kit/entities/DotValue/DotValue.d.ts +4 -0
- package/build/esm/lib/unstable/kit/entities/DotValue/DotValue.js +28 -0
- package/build/esm/lib/unstable/kit/entities/FewOfNested/FewOfNested.css +17 -0
- package/build/esm/lib/unstable/kit/entities/FewOfNested/FewOfNested.d.ts +8 -0
- package/build/esm/lib/unstable/kit/entities/FewOfNested/FewOfNested.js +69 -0
- package/build/esm/lib/unstable/kit/entities/Label/Label.d.ts +8 -0
- package/build/esm/lib/unstable/kit/entities/Label/Label.js +26 -0
- package/build/esm/lib/unstable/kit/entities/Monaco/Monaco.css +6 -0
- package/build/esm/lib/unstable/kit/entities/Monaco/Monaco.d.ts +8 -0
- package/build/esm/lib/unstable/kit/entities/Monaco/Monaco.js +77 -0
- package/build/esm/lib/unstable/kit/entities/Monaco/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/entities/Monaco/index.js +1 -0
- package/build/esm/lib/unstable/kit/entities/ObjectEntity/ObjectEntity.d.ts +6 -0
- package/build/esm/lib/unstable/kit/entities/ObjectEntity/ObjectEntity.js +11 -0
- package/build/esm/lib/unstable/kit/entities/ObjectEntity/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/entities/ObjectEntity/index.js +1 -0
- package/build/esm/lib/unstable/kit/entities/ObjectInline/ObjectInline.css +11 -0
- package/build/esm/lib/unstable/kit/entities/ObjectInline/ObjectInline.d.ts +8 -0
- package/build/esm/lib/unstable/kit/entities/ObjectInline/ObjectInline.js +22 -0
- package/build/esm/lib/unstable/kit/entities/OneOfNested/OneOfNested.css +17 -0
- package/build/esm/lib/unstable/kit/entities/OneOfNested/OneOfNested.d.ts +12 -0
- package/build/esm/lib/unstable/kit/entities/OneOfNested/OneOfNested.js +66 -0
- package/build/esm/lib/unstable/kit/entities/TextContent/TextContent.css +19 -0
- package/build/esm/lib/unstable/kit/entities/TextContent/TextContent.d.ts +9 -0
- package/build/esm/lib/unstable/kit/entities/TextContent/TextContent.js +28 -0
- package/build/esm/lib/unstable/kit/entities/index.d.ts +11 -0
- package/build/esm/lib/unstable/kit/entities/index.js +11 -0
- package/build/esm/lib/unstable/kit/form-entities/CheckboxGroupInput/CheckboxGroupInput.css +9 -0
- package/build/esm/lib/unstable/kit/form-entities/CheckboxGroupInput/CheckboxGroupInput.d.ts +9 -0
- package/build/esm/lib/unstable/kit/form-entities/CheckboxGroupInput/CheckboxGroupInput.js +38 -0
- package/build/esm/lib/unstable/kit/form-entities/CheckboxGroupInput/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/form-entities/CheckboxGroupInput/index.js +1 -0
- package/build/esm/lib/unstable/kit/form-entities/CheckboxInput/CheckboxInput.css +11 -0
- package/build/esm/lib/unstable/kit/form-entities/CheckboxInput/CheckboxInput.d.ts +6 -0
- package/build/esm/lib/unstable/kit/form-entities/CheckboxInput/CheckboxInput.js +16 -0
- package/build/esm/lib/unstable/kit/form-entities/CheckboxInput/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/form-entities/CheckboxInput/index.js +1 -0
- package/build/esm/lib/unstable/kit/form-entities/ColorPickerInput/ColorPickerInput.css +6 -0
- package/build/esm/lib/unstable/kit/form-entities/ColorPickerInput/ColorPickerInput.d.ts +6 -0
- package/build/esm/lib/unstable/kit/form-entities/ColorPickerInput/ColorPickerInput.js +22 -0
- package/build/esm/lib/unstable/kit/form-entities/ColorPickerInput/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/form-entities/ColorPickerInput/index.js +1 -0
- package/build/esm/lib/unstable/kit/form-entities/DateInput/DateInput.d.ts +7 -0
- package/build/esm/lib/unstable/kit/form-entities/DateInput/DateInput.js +44 -0
- package/build/esm/lib/unstable/kit/form-entities/FileInput/FileInput.d.ts +6 -0
- package/build/esm/lib/unstable/kit/form-entities/FileInput/FileInput.js +49 -0
- package/build/esm/lib/unstable/kit/form-entities/MultiSelectInput/MultiSelectInput.d.ts +7 -0
- package/build/esm/lib/unstable/kit/form-entities/MultiSelectInput/MultiSelectInput.js +34 -0
- package/build/esm/lib/unstable/kit/form-entities/MultiSelectInput/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/form-entities/MultiSelectInput/index.js +1 -0
- package/build/esm/lib/unstable/kit/form-entities/NumberInput/NumberInput.css +3 -0
- package/build/esm/lib/unstable/kit/form-entities/NumberInput/NumberInput.d.ts +6 -0
- package/build/esm/lib/unstable/kit/form-entities/NumberInput/NumberInput.js +12 -0
- package/build/esm/lib/unstable/kit/form-entities/NumberInput/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/form-entities/NumberInput/index.js +1 -0
- package/build/esm/lib/unstable/kit/form-entities/NumberWithScaleInput/NumberWithScaleInput.css +6 -0
- package/build/esm/lib/unstable/kit/form-entities/NumberWithScaleInput/NumberWithScaleInput.d.ts +12 -0
- package/build/esm/lib/unstable/kit/form-entities/NumberWithScaleInput/NumberWithScaleInput.js +73 -0
- package/build/esm/lib/unstable/kit/form-entities/NumberWithScaleInput/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/form-entities/NumberWithScaleInput/index.js +1 -0
- package/build/esm/lib/unstable/kit/form-entities/PasswordInput/PasswordInput.css +3 -0
- package/build/esm/lib/unstable/kit/form-entities/PasswordInput/PasswordInput.d.ts +6 -0
- package/build/esm/lib/unstable/kit/form-entities/PasswordInput/PasswordInput.js +12 -0
- package/build/esm/lib/unstable/kit/form-entities/PasswordInput/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/form-entities/PasswordInput/index.js +1 -0
- package/build/esm/lib/unstable/kit/form-entities/RadioGroupInput/RadioGroupInput.css +13 -0
- package/build/esm/lib/unstable/kit/form-entities/RadioGroupInput/RadioGroupInput.d.ts +8 -0
- package/build/esm/lib/unstable/kit/form-entities/RadioGroupInput/RadioGroupInput.js +21 -0
- package/build/esm/lib/unstable/kit/form-entities/RadioGroupInput/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/form-entities/RadioGroupInput/index.js +1 -0
- package/build/esm/lib/unstable/kit/form-entities/RangeInput/RangeInput.css +8 -0
- package/build/esm/lib/unstable/kit/form-entities/RangeInput/RangeInput.d.ts +7 -0
- package/build/esm/lib/unstable/kit/form-entities/RangeInput/RangeInput.js +67 -0
- package/build/esm/lib/unstable/kit/form-entities/RangeInput/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/form-entities/RangeInput/index.js +1 -0
- package/build/esm/lib/unstable/kit/form-entities/RangeSliderInput/RangeSliderInput.d.ts +6 -0
- package/build/esm/lib/unstable/kit/form-entities/RangeSliderInput/RangeSliderInput.js +31 -0
- package/build/esm/lib/unstable/kit/form-entities/RangeSliderInput/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/form-entities/RangeSliderInput/index.js +1 -0
- package/build/esm/lib/unstable/kit/form-entities/SegmentedRadioGroupInput/SegmentedRadioGroupInput.css +6 -0
- package/build/esm/lib/unstable/kit/form-entities/SegmentedRadioGroupInput/SegmentedRadioGroupInput.d.ts +8 -0
- package/build/esm/lib/unstable/kit/form-entities/SegmentedRadioGroupInput/SegmentedRadioGroupInput.js +26 -0
- package/build/esm/lib/unstable/kit/form-entities/SegmentedRadioGroupInput/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/form-entities/SegmentedRadioGroupInput/index.js +1 -0
- package/build/esm/lib/unstable/kit/form-entities/SelectInput/SelectInput.d.ts +8 -0
- package/build/esm/lib/unstable/kit/form-entities/SelectInput/SelectInput.js +31 -0
- package/build/esm/lib/unstable/kit/form-entities/SelectInput/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/form-entities/SelectInput/index.js +1 -0
- package/build/esm/lib/unstable/kit/form-entities/SliderInput/SliderInput.d.ts +5 -0
- package/build/esm/lib/unstable/kit/form-entities/SliderInput/SliderInput.js +16 -0
- package/build/esm/lib/unstable/kit/form-entities/SliderInput/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/form-entities/SliderInput/index.js +1 -0
- package/build/esm/lib/unstable/kit/form-entities/StringInput/StringInput.css +3 -0
- package/build/esm/lib/unstable/kit/form-entities/StringInput/StringInput.d.ts +6 -0
- package/build/esm/lib/unstable/kit/form-entities/StringInput/StringInput.js +11 -0
- package/build/esm/lib/unstable/kit/form-entities/StringInput/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/form-entities/StringInput/index.js +1 -0
- package/build/esm/lib/unstable/kit/form-entities/StringNumberWithScaleInput/StringNumberWithScaleInput.css +6 -0
- package/build/esm/lib/unstable/kit/form-entities/StringNumberWithScaleInput/StringNumberWithScaleInput.d.ts +12 -0
- package/build/esm/lib/unstable/kit/form-entities/StringNumberWithScaleInput/StringNumberWithScaleInput.js +78 -0
- package/build/esm/lib/unstable/kit/form-entities/StringNumberWithScaleInput/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/form-entities/StringNumberWithScaleInput/index.js +1 -0
- package/build/esm/lib/unstable/kit/form-entities/SwitchInput/SwitchInput.css +11 -0
- package/build/esm/lib/unstable/kit/form-entities/SwitchInput/SwitchInput.d.ts +6 -0
- package/build/esm/lib/unstable/kit/form-entities/SwitchInput/SwitchInput.js +16 -0
- package/build/esm/lib/unstable/kit/form-entities/SwitchInput/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/form-entities/SwitchInput/index.js +1 -0
- package/build/esm/lib/unstable/kit/form-entities/TextAreaInput/TextAreaInput.css +3 -0
- package/build/esm/lib/unstable/kit/form-entities/TextAreaInput/TextAreaInput.d.ts +6 -0
- package/build/esm/lib/unstable/kit/form-entities/TextAreaInput/TextAreaInput.js +11 -0
- package/build/esm/lib/unstable/kit/form-entities/TextAreaInput/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/form-entities/TextAreaInput/index.js +1 -0
- package/build/esm/lib/unstable/kit/form-entities/index.d.ts +19 -0
- package/build/esm/lib/unstable/kit/form-entities/index.js +19 -0
- package/build/esm/lib/unstable/kit/form-layouts/FormColumn/FormColumn.css +21 -0
- package/build/esm/lib/unstable/kit/form-layouts/FormColumn/FormColumn.d.ts +6 -0
- package/build/esm/lib/unstable/kit/form-layouts/FormColumn/FormColumn.js +31 -0
- package/build/esm/lib/unstable/kit/form-layouts/FormColumn/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/form-layouts/FormColumn/index.js +1 -0
- package/build/esm/lib/unstable/kit/form-layouts/FormRow/FormRow.css +25 -0
- package/build/esm/lib/unstable/kit/form-layouts/FormRow/FormRow.d.ts +6 -0
- package/build/esm/lib/unstable/kit/form-layouts/FormRow/FormRow.js +31 -0
- package/build/esm/lib/unstable/kit/form-layouts/FormRow/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/form-layouts/FormRow/index.js +1 -0
- package/build/esm/lib/unstable/kit/form-layouts/index.d.ts +2 -0
- package/build/esm/lib/unstable/kit/form-layouts/index.js +2 -0
- package/build/esm/lib/unstable/kit/index.d.ts +9 -0
- package/build/esm/lib/unstable/kit/index.js +9 -0
- package/build/esm/lib/unstable/kit/layouts/Accordeon/Accordeon.css +46 -0
- package/build/esm/lib/unstable/kit/layouts/Accordeon/Accordeon.d.ts +10 -0
- package/build/esm/lib/unstable/kit/layouts/Accordeon/Accordeon.js +44 -0
- package/build/esm/lib/unstable/kit/layouts/Card/Card.css +41 -0
- package/build/esm/lib/unstable/kit/layouts/Card/Card.d.ts +8 -0
- package/build/esm/lib/unstable/kit/layouts/Card/Card.js +47 -0
- package/build/esm/lib/unstable/kit/layouts/Card/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/layouts/Card/index.js +1 -0
- package/build/esm/lib/unstable/kit/layouts/Section/Section.css +34 -0
- package/build/esm/lib/unstable/kit/layouts/Section/Section.d.ts +8 -0
- package/build/esm/lib/unstable/kit/layouts/Section/Section.js +36 -0
- package/build/esm/lib/unstable/kit/layouts/Transparent/Transparent.css +12 -0
- package/build/esm/lib/unstable/kit/layouts/Transparent/Transparent.d.ts +6 -0
- package/build/esm/lib/unstable/kit/layouts/Transparent/Transparent.js +17 -0
- package/build/esm/lib/unstable/kit/layouts/index.d.ts +4 -0
- package/build/esm/lib/unstable/kit/layouts/index.js +4 -0
- package/build/esm/lib/unstable/kit/overview-entities/BooleanValue/BooleanValue.d.ts +14 -0
- package/build/esm/lib/unstable/kit/overview-entities/BooleanValue/BooleanValue.js +21 -0
- package/build/esm/lib/unstable/kit/overview-entities/BooleanValue/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/overview-entities/BooleanValue/index.js +1 -0
- package/build/esm/lib/unstable/kit/overview-entities/ColorPickerValue/ColorPickerValue.css +6 -0
- package/build/esm/lib/unstable/kit/overview-entities/ColorPickerValue/ColorPickerValue.d.ts +6 -0
- package/build/esm/lib/unstable/kit/overview-entities/ColorPickerValue/ColorPickerValue.js +15 -0
- package/build/esm/lib/unstable/kit/overview-entities/ColorPickerValue/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/overview-entities/ColorPickerValue/index.js +1 -0
- package/build/esm/lib/unstable/kit/overview-entities/DateValue/DateValue.d.ts +9 -0
- package/build/esm/lib/unstable/kit/overview-entities/DateValue/DateValue.js +16 -0
- package/build/esm/lib/unstable/kit/overview-entities/DateValue/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/overview-entities/DateValue/index.js +1 -0
- package/build/esm/lib/unstable/kit/overview-entities/NumberValue/NumberValue.d.ts +5 -0
- package/build/esm/lib/unstable/kit/overview-entities/NumberValue/NumberValue.js +10 -0
- package/build/esm/lib/unstable/kit/overview-entities/NumberValue/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/overview-entities/NumberValue/index.js +1 -0
- package/build/esm/lib/unstable/kit/overview-entities/NumberWithScaleValue/NumberWithScaleValue.d.ts +10 -0
- package/build/esm/lib/unstable/kit/overview-entities/NumberWithScaleValue/NumberWithScaleValue.js +30 -0
- package/build/esm/lib/unstable/kit/overview-entities/NumberWithScaleValue/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/overview-entities/NumberWithScaleValue/index.js +1 -0
- package/build/esm/lib/unstable/kit/overview-entities/PrimitiveArrayValue/PrimitiveArrayValue.d.ts +7 -0
- package/build/esm/lib/unstable/kit/overview-entities/PrimitiveArrayValue/PrimitiveArrayValue.js +23 -0
- package/build/esm/lib/unstable/kit/overview-entities/PrimitiveArrayValue/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/overview-entities/PrimitiveArrayValue/index.js +1 -0
- package/build/esm/lib/unstable/kit/overview-entities/RangeValue/RangeValue.d.ts +7 -0
- package/build/esm/lib/unstable/kit/overview-entities/RangeValue/RangeValue.js +20 -0
- package/build/esm/lib/unstable/kit/overview-entities/RangeValue/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/overview-entities/RangeValue/index.js +1 -0
- package/build/esm/lib/unstable/kit/overview-entities/StringNumberWithScaleValue/StringNumberWithScaleValue.d.ts +10 -0
- package/build/esm/lib/unstable/kit/overview-entities/StringNumberWithScaleValue/StringNumberWithScaleValue.js +31 -0
- package/build/esm/lib/unstable/kit/overview-entities/StringNumberWithScaleValue/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/overview-entities/StringNumberWithScaleValue/index.js +1 -0
- package/build/esm/lib/unstable/kit/overview-entities/StringValue/StringValue.d.ts +5 -0
- package/build/esm/lib/unstable/kit/overview-entities/StringValue/StringValue.js +9 -0
- package/build/esm/lib/unstable/kit/overview-entities/StringValue/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/overview-entities/StringValue/index.js +1 -0
- package/build/esm/lib/unstable/kit/overview-entities/index.d.ts +9 -0
- package/build/esm/lib/unstable/kit/overview-entities/index.js +9 -0
- package/build/esm/lib/unstable/kit/overview-layouts/OverviewColumn/OverviewColumn.css +22 -0
- package/build/esm/lib/unstable/kit/overview-layouts/OverviewColumn/OverviewColumn.d.ts +3 -0
- package/build/esm/lib/unstable/kit/overview-layouts/OverviewColumn/OverviewColumn.js +24 -0
- package/build/esm/lib/unstable/kit/overview-layouts/OverviewColumn/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/overview-layouts/OverviewColumn/index.js +1 -0
- package/build/esm/lib/unstable/kit/overview-layouts/OverviewRow/OverviewRow.css +38 -0
- package/build/esm/lib/unstable/kit/overview-layouts/OverviewRow/OverviewRow.d.ts +3 -0
- package/build/esm/lib/unstable/kit/overview-layouts/OverviewRow/OverviewRow.js +24 -0
- package/build/esm/lib/unstable/kit/overview-layouts/OverviewRow/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/overview-layouts/OverviewRow/index.js +1 -0
- package/build/esm/lib/unstable/kit/overview-layouts/index.d.ts +2 -0
- package/build/esm/lib/unstable/kit/overview-layouts/index.js +2 -0
- package/build/esm/lib/unstable/kit/utils/common.d.ts +4 -1
- package/build/esm/lib/unstable/kit/utils/common.js +15 -4
- package/build/esm/lib/unstable/kit/utils/date.d.ts +2 -0
- package/build/esm/lib/unstable/kit/utils/date.js +11 -0
- package/build/esm/lib/unstable/kit/utils/index.d.ts +3 -1
- package/build/esm/lib/unstable/kit/utils/index.js +3 -1
- package/build/esm/lib/unstable/kit/utils/transformer.d.ts +18 -0
- package/build/esm/lib/unstable/kit/utils/transformer.js +2907 -0
- package/build/esm/unstable.d.ts +1 -3
- package/build/esm/unstable.js +1 -3
- package/package.json +3 -2
- package/build/cjs/lib/unstable/core/Entity/Entity.d.ts +0 -10
- package/build/cjs/lib/unstable/core/Entity/Entity.js +0 -78
- package/build/cjs/lib/unstable/core/Entity/index.d.ts +0 -3
- package/build/cjs/lib/unstable/core/Entity/index.js +0 -7
- package/build/cjs/lib/unstable/core/Entity/types.d.ts +0 -27
- package/build/cjs/lib/unstable/core/Entity/utils.d.ts +0 -3
- package/build/cjs/lib/unstable/core/Entity/utils.js +0 -40
- package/build/cjs/lib/unstable/core/useSchemaRenderer/hooks/index.d.ts +0 -2
- package/build/cjs/lib/unstable/core/useSchemaRenderer/hooks/index.js +0 -7
- package/build/cjs/lib/unstable/core/useSchemaRenderer/hooks/useEntitiesState.d.ts +0 -7
- package/build/cjs/lib/unstable/core/useSchemaRenderer/hooks/useEntitiesState.js +0 -25
- package/build/cjs/lib/unstable/core/useSchemaRenderer/hooks/useSchemaRendererMutators.d.ts +0 -10
- package/build/cjs/lib/unstable/core/useSchemaRenderer/hooks/useSchemaRendererMutators.js +0 -17
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/async-validation/async-validation.d.ts +0 -3
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/async-validation/async-validation.js +0 -35
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/async-validation/index.d.ts +0 -2
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/async-validation/index.js +0 -5
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/async-validation/types.d.ts +0 -34
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/external-errors/external-errors.d.ts +0 -3
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/external-errors/external-errors.js +0 -60
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/external-errors/index.d.ts +0 -2
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/external-errors/index.js +0 -5
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/external-errors/types.d.ts +0 -25
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/index.d.ts +0 -13
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/index.js +0 -16
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/schema-mutators/index.d.ts +0 -2
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/schema-mutators/index.js +0 -5
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/schema-mutators/schema-mutators.d.ts +0 -3
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/schema-mutators/schema-mutators.js +0 -81
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/schema-mutators/types.d.ts +0 -26
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/trigger-fields/index.d.ts +0 -2
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/trigger-fields/index.js +0 -5
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/trigger-fields/trigger-fields.d.ts +0 -2
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/trigger-fields/trigger-fields.js +0 -12
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/trigger-fields/types.d.ts +0 -6
- package/build/cjs/lib/unstable/core/useSchemaRenderer/types.d.ts +0 -22
- package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/common.d.ts +0 -1
- package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/common.js +0 -11
- package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/get-ajv-validate.d.ts +0 -11
- package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/get-ajv-validate.js +0 -39
- package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/process-ajv-error.d.ts +0 -10
- package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/process-ajv-error.js +0 -51
- package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/process-ajv-validate-errors.d.ts +0 -20
- package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/process-ajv-validate-errors.js +0 -43
- package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/process-entity-parameters-error.d.ts +0 -15
- package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/process-entity-parameters-error.js +0 -36
- package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/process-errors-state.d.ts +0 -12
- package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/process-errors-state.js +0 -17
- package/build/cjs/lib/unstable/kit/components/ControlContainer/ControlContainer.css +0 -20
- package/build/cjs/lib/unstable/kit/components/ControlContainer/ControlContainer.d.ts +0 -7
- package/build/cjs/lib/unstable/kit/components/ControlContainer/ControlContainer.js +0 -14
- package/build/cjs/lib/unstable/kit/components/ControlContainer/index.d.ts +0 -1
- package/build/cjs/lib/unstable/kit/components/ControlContainer/index.js +0 -5
- package/build/cjs/lib/unstable/kit/components/ControlError/ControlError.css +0 -3
- package/build/cjs/lib/unstable/kit/components/ControlError/ControlError.d.ts +0 -6
- package/build/cjs/lib/unstable/kit/components/ControlError/ControlError.js +0 -15
- package/build/cjs/lib/unstable/kit/components/ControlError/index.d.ts +0 -1
- package/build/cjs/lib/unstable/kit/components/ControlError/index.js +0 -5
- package/build/cjs/lib/unstable/kit/components/WrapperContainer/WrapperContainer.css +0 -8
- package/build/cjs/lib/unstable/kit/components/WrapperContainer/WrapperContainer.d.ts +0 -6
- package/build/cjs/lib/unstable/kit/components/WrapperContainer/WrapperContainer.js +0 -13
- package/build/cjs/lib/unstable/kit/components/WrapperContainer/index.d.ts +0 -1
- package/build/cjs/lib/unstable/kit/components/WrapperContainer/index.js +0 -5
- package/build/cjs/lib/unstable/kit/controls/Alert/Alert.d.ts +0 -9
- package/build/cjs/lib/unstable/kit/controls/Alert/Alert.js +0 -27
- package/build/cjs/lib/unstable/kit/controls/ArrayBase/ArrayBase.d.ts +0 -8
- package/build/cjs/lib/unstable/kit/controls/ArrayBase/ArrayBase.js +0 -49
- package/build/cjs/lib/unstable/kit/controls/ArrayBase/index.d.ts +0 -1
- package/build/cjs/lib/unstable/kit/controls/ArrayBase/index.js +0 -4
- package/build/cjs/lib/unstable/kit/controls/ArrayTable/ArrayTable.css +0 -39
- package/build/cjs/lib/unstable/kit/controls/ArrayTable/ArrayTable.d.ts +0 -8
- package/build/cjs/lib/unstable/kit/controls/ArrayTable/ArrayTable.js +0 -88
- package/build/cjs/lib/unstable/kit/controls/Checkbox/Checkbox.css +0 -11
- package/build/cjs/lib/unstable/kit/controls/Checkbox/Checkbox.d.ts +0 -6
- package/build/cjs/lib/unstable/kit/controls/Checkbox/Checkbox.js +0 -20
- package/build/cjs/lib/unstable/kit/controls/Checkbox/index.d.ts +0 -1
- package/build/cjs/lib/unstable/kit/controls/Checkbox/index.js +0 -5
- package/build/cjs/lib/unstable/kit/controls/CheckboxGroup/CheckboxGroup.css +0 -9
- package/build/cjs/lib/unstable/kit/controls/CheckboxGroup/CheckboxGroup.d.ts +0 -9
- package/build/cjs/lib/unstable/kit/controls/CheckboxGroup/CheckboxGroup.js +0 -42
- package/build/cjs/lib/unstable/kit/controls/CheckboxGroup/index.d.ts +0 -1
- package/build/cjs/lib/unstable/kit/controls/CheckboxGroup/index.js +0 -5
- package/build/cjs/lib/unstable/kit/controls/ColorPicker/ColorPicker.css +0 -6
- package/build/cjs/lib/unstable/kit/controls/ColorPicker/ColorPicker.d.ts +0 -6
- package/build/cjs/lib/unstable/kit/controls/ColorPicker/ColorPicker.js +0 -25
- package/build/cjs/lib/unstable/kit/controls/ColorPicker/index.d.ts +0 -1
- package/build/cjs/lib/unstable/kit/controls/ColorPicker/index.js +0 -5
- package/build/cjs/lib/unstable/kit/controls/DateInput/DateInput.d.ts +0 -8
- package/build/cjs/lib/unstable/kit/controls/DateInput/DateInput.js +0 -56
- package/build/cjs/lib/unstable/kit/controls/DotValue/DotValue.d.ts +0 -5
- package/build/cjs/lib/unstable/kit/controls/DotValue/DotValue.js +0 -30
- package/build/cjs/lib/unstable/kit/controls/FewOfNested/FewOfNested.css +0 -14
- package/build/cjs/lib/unstable/kit/controls/FewOfNested/FewOfNested.d.ts +0 -8
- package/build/cjs/lib/unstable/kit/controls/FewOfNested/FewOfNested.js +0 -63
- package/build/cjs/lib/unstable/kit/controls/FileInput/FileInput.d.ts +0 -7
- package/build/cjs/lib/unstable/kit/controls/FileInput/FileInput.js +0 -53
- package/build/cjs/lib/unstable/kit/controls/Label/Label.d.ts +0 -9
- package/build/cjs/lib/unstable/kit/controls/Label/Label.js +0 -28
- package/build/cjs/lib/unstable/kit/controls/MultiSelect/MultiSelect.d.ts +0 -8
- package/build/cjs/lib/unstable/kit/controls/MultiSelect/MultiSelect.js +0 -38
- package/build/cjs/lib/unstable/kit/controls/MultiSelect/index.d.ts +0 -1
- package/build/cjs/lib/unstable/kit/controls/MultiSelect/index.js +0 -5
- package/build/cjs/lib/unstable/kit/controls/NumberBase/NumberBase.css +0 -3
- package/build/cjs/lib/unstable/kit/controls/NumberBase/NumberBase.d.ts +0 -6
- package/build/cjs/lib/unstable/kit/controls/NumberBase/NumberBase.js +0 -16
- package/build/cjs/lib/unstable/kit/controls/NumberBase/index.d.ts +0 -1
- package/build/cjs/lib/unstable/kit/controls/NumberBase/index.js +0 -5
- package/build/cjs/lib/unstable/kit/controls/ObjectBase/ObjectBase.d.ts +0 -7
- package/build/cjs/lib/unstable/kit/controls/ObjectBase/ObjectBase.js +0 -15
- package/build/cjs/lib/unstable/kit/controls/ObjectBase/index.d.ts +0 -1
- package/build/cjs/lib/unstable/kit/controls/ObjectBase/index.js +0 -5
- package/build/cjs/lib/unstable/kit/controls/ObjectInline/ObjectInline.css +0 -8
- package/build/cjs/lib/unstable/kit/controls/ObjectInline/ObjectInline.d.ts +0 -8
- package/build/cjs/lib/unstable/kit/controls/ObjectInline/ObjectInline.js +0 -25
- package/build/cjs/lib/unstable/kit/controls/OneOfNested/OneOfNested.css +0 -14
- package/build/cjs/lib/unstable/kit/controls/OneOfNested/OneOfNested.d.ts +0 -12
- package/build/cjs/lib/unstable/kit/controls/OneOfNested/OneOfNested.js +0 -64
- package/build/cjs/lib/unstable/kit/controls/Password/Password.css +0 -3
- package/build/cjs/lib/unstable/kit/controls/Password/Password.d.ts +0 -6
- package/build/cjs/lib/unstable/kit/controls/Password/Password.js +0 -16
- package/build/cjs/lib/unstable/kit/controls/Password/index.d.ts +0 -1
- package/build/cjs/lib/unstable/kit/controls/Password/index.js +0 -5
- package/build/cjs/lib/unstable/kit/controls/RadioGroup/RadioGroup.css +0 -13
- package/build/cjs/lib/unstable/kit/controls/RadioGroup/RadioGroup.d.ts +0 -8
- package/build/cjs/lib/unstable/kit/controls/RadioGroup/RadioGroup.js +0 -24
- package/build/cjs/lib/unstable/kit/controls/RadioGroup/index.d.ts +0 -1
- package/build/cjs/lib/unstable/kit/controls/RadioGroup/index.js +0 -5
- package/build/cjs/lib/unstable/kit/controls/RangeSlider/RangeSlider.d.ts +0 -7
- package/build/cjs/lib/unstable/kit/controls/RangeSlider/RangeSlider.js +0 -35
- package/build/cjs/lib/unstable/kit/controls/RangeSlider/index.d.ts +0 -1
- package/build/cjs/lib/unstable/kit/controls/RangeSlider/index.js +0 -5
- package/build/cjs/lib/unstable/kit/controls/SegmentedRadioGroup/SegmentedRadioGroup.css +0 -6
- package/build/cjs/lib/unstable/kit/controls/SegmentedRadioGroup/SegmentedRadioGroup.d.ts +0 -8
- package/build/cjs/lib/unstable/kit/controls/SegmentedRadioGroup/SegmentedRadioGroup.js +0 -29
- package/build/cjs/lib/unstable/kit/controls/SegmentedRadioGroup/index.d.ts +0 -1
- package/build/cjs/lib/unstable/kit/controls/SegmentedRadioGroup/index.js +0 -5
- package/build/cjs/lib/unstable/kit/controls/Select/Select.d.ts +0 -9
- package/build/cjs/lib/unstable/kit/controls/Select/Select.js +0 -35
- package/build/cjs/lib/unstable/kit/controls/Select/index.d.ts +0 -1
- package/build/cjs/lib/unstable/kit/controls/Select/index.js +0 -5
- package/build/cjs/lib/unstable/kit/controls/Slider/Slider.d.ts +0 -6
- package/build/cjs/lib/unstable/kit/controls/Slider/Slider.js +0 -21
- package/build/cjs/lib/unstable/kit/controls/Slider/index.d.ts +0 -1
- package/build/cjs/lib/unstable/kit/controls/Slider/index.js +0 -5
- package/build/cjs/lib/unstable/kit/controls/StringBase/StringBase.css +0 -3
- package/build/cjs/lib/unstable/kit/controls/StringBase/StringBase.d.ts +0 -6
- package/build/cjs/lib/unstable/kit/controls/StringBase/StringBase.js +0 -15
- package/build/cjs/lib/unstable/kit/controls/StringBase/index.d.ts +0 -1
- package/build/cjs/lib/unstable/kit/controls/StringBase/index.js +0 -5
- package/build/cjs/lib/unstable/kit/controls/Switch/Switch.css +0 -11
- package/build/cjs/lib/unstable/kit/controls/Switch/Switch.d.ts +0 -6
- package/build/cjs/lib/unstable/kit/controls/Switch/Switch.js +0 -20
- package/build/cjs/lib/unstable/kit/controls/Switch/index.d.ts +0 -1
- package/build/cjs/lib/unstable/kit/controls/Switch/index.js +0 -5
- package/build/cjs/lib/unstable/kit/controls/TextArea/TextArea.css +0 -3
- package/build/cjs/lib/unstable/kit/controls/TextArea/TextArea.d.ts +0 -6
- package/build/cjs/lib/unstable/kit/controls/TextArea/TextArea.js +0 -15
- package/build/cjs/lib/unstable/kit/controls/TextArea/index.d.ts +0 -1
- package/build/cjs/lib/unstable/kit/controls/TextArea/index.js +0 -5
- package/build/cjs/lib/unstable/kit/controls/TextContent/TextContent.css +0 -10
- package/build/cjs/lib/unstable/kit/controls/TextContent/TextContent.d.ts +0 -9
- package/build/cjs/lib/unstable/kit/controls/TextContent/TextContent.js +0 -29
- package/build/cjs/lib/unstable/kit/controls/index.d.ts +0 -26
- package/build/cjs/lib/unstable/kit/controls/index.js +0 -55
- package/build/cjs/lib/unstable/kit/wrappers/Accordeon/Accordeon.css +0 -35
- package/build/cjs/lib/unstable/kit/wrappers/Accordeon/Accordeon.d.ts +0 -10
- package/build/cjs/lib/unstable/kit/wrappers/Accordeon/Accordeon.js +0 -39
- package/build/cjs/lib/unstable/kit/wrappers/Row/Row.css +0 -24
- package/build/cjs/lib/unstable/kit/wrappers/Row/Row.d.ts +0 -6
- package/build/cjs/lib/unstable/kit/wrappers/Row/Row.js +0 -35
- package/build/cjs/lib/unstable/kit/wrappers/Row/index.d.ts +0 -1
- package/build/cjs/lib/unstable/kit/wrappers/Row/index.js +0 -5
- package/build/cjs/lib/unstable/kit/wrappers/Section/Section.css +0 -23
- package/build/cjs/lib/unstable/kit/wrappers/Section/Section.d.ts +0 -8
- package/build/cjs/lib/unstable/kit/wrappers/Section/Section.js +0 -36
- package/build/cjs/lib/unstable/kit/wrappers/Transparent/Transparent.css +0 -6
- package/build/cjs/lib/unstable/kit/wrappers/Transparent/Transparent.d.ts +0 -3
- package/build/cjs/lib/unstable/kit/wrappers/Transparent/Transparent.js +0 -17
- package/build/cjs/lib/unstable/kit/wrappers/index.d.ts +0 -4
- package/build/cjs/lib/unstable/kit/wrappers/index.js +0 -11
- package/build/esm/lib/unstable/core/Entity/Entity.d.ts +0 -10
- package/build/esm/lib/unstable/core/Entity/Entity.js +0 -74
- package/build/esm/lib/unstable/core/Entity/index.d.ts +0 -3
- package/build/esm/lib/unstable/core/Entity/index.js +0 -2
- package/build/esm/lib/unstable/core/Entity/types.d.ts +0 -27
- package/build/esm/lib/unstable/core/Entity/utils.d.ts +0 -3
- package/build/esm/lib/unstable/core/Entity/utils.js +0 -35
- package/build/esm/lib/unstable/core/useSchemaRenderer/hooks/index.d.ts +0 -2
- package/build/esm/lib/unstable/core/useSchemaRenderer/hooks/index.js +0 -2
- package/build/esm/lib/unstable/core/useSchemaRenderer/hooks/useEntitiesState.d.ts +0 -7
- package/build/esm/lib/unstable/core/useSchemaRenderer/hooks/useEntitiesState.js +0 -20
- package/build/esm/lib/unstable/core/useSchemaRenderer/hooks/useSchemaRendererMutators.d.ts +0 -10
- package/build/esm/lib/unstable/core/useSchemaRenderer/hooks/useSchemaRendererMutators.js +0 -13
- package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/async-validation/async-validation.d.ts +0 -3
- package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/async-validation/async-validation.js +0 -29
- package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/async-validation/index.d.ts +0 -2
- package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/async-validation/index.js +0 -2
- package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/async-validation/types.d.ts +0 -34
- package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/external-errors/external-errors.d.ts +0 -3
- package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/external-errors/external-errors.js +0 -54
- package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/external-errors/index.d.ts +0 -2
- package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/external-errors/index.js +0 -2
- package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/external-errors/types.d.ts +0 -25
- package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/index.d.ts +0 -13
- package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/index.js +0 -13
- package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/schema-mutators/index.d.ts +0 -2
- package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/schema-mutators/index.js +0 -2
- package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/schema-mutators/schema-mutators.d.ts +0 -3
- package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/schema-mutators/schema-mutators.js +0 -75
- package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/schema-mutators/types.d.ts +0 -26
- package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/trigger-fields/index.d.ts +0 -2
- package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/trigger-fields/index.js +0 -2
- package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/trigger-fields/trigger-fields.d.ts +0 -2
- package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/trigger-fields/trigger-fields.js +0 -8
- package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/trigger-fields/types.d.ts +0 -6
- package/build/esm/lib/unstable/core/useSchemaRenderer/types.d.ts +0 -22
- package/build/esm/lib/unstable/core/useSchemaRenderer/utils/common.d.ts +0 -1
- package/build/esm/lib/unstable/core/useSchemaRenderer/utils/common.js +0 -7
- package/build/esm/lib/unstable/core/useSchemaRenderer/utils/get-ajv-validate.d.ts +0 -11
- package/build/esm/lib/unstable/core/useSchemaRenderer/utils/get-ajv-validate.js +0 -34
- package/build/esm/lib/unstable/core/useSchemaRenderer/utils/process-ajv-error.d.ts +0 -10
- package/build/esm/lib/unstable/core/useSchemaRenderer/utils/process-ajv-error.js +0 -46
- package/build/esm/lib/unstable/core/useSchemaRenderer/utils/process-ajv-validate-errors.d.ts +0 -20
- package/build/esm/lib/unstable/core/useSchemaRenderer/utils/process-ajv-validate-errors.js +0 -39
- package/build/esm/lib/unstable/core/useSchemaRenderer/utils/process-entity-parameters-error.d.ts +0 -15
- package/build/esm/lib/unstable/core/useSchemaRenderer/utils/process-entity-parameters-error.js +0 -31
- package/build/esm/lib/unstable/core/useSchemaRenderer/utils/process-errors-state.d.ts +0 -12
- package/build/esm/lib/unstable/core/useSchemaRenderer/utils/process-errors-state.js +0 -12
- package/build/esm/lib/unstable/kit/components/ControlContainer/ControlContainer.css +0 -20
- package/build/esm/lib/unstable/kit/components/ControlContainer/ControlContainer.d.ts +0 -8
- package/build/esm/lib/unstable/kit/components/ControlContainer/ControlContainer.js +0 -12
- package/build/esm/lib/unstable/kit/components/ControlContainer/index.d.ts +0 -1
- package/build/esm/lib/unstable/kit/components/ControlContainer/index.js +0 -1
- package/build/esm/lib/unstable/kit/components/ControlError/ControlError.css +0 -3
- package/build/esm/lib/unstable/kit/components/ControlError/ControlError.d.ts +0 -7
- package/build/esm/lib/unstable/kit/components/ControlError/ControlError.js +0 -11
- package/build/esm/lib/unstable/kit/components/ControlError/index.d.ts +0 -1
- package/build/esm/lib/unstable/kit/components/ControlError/index.js +0 -1
- package/build/esm/lib/unstable/kit/components/WrapperContainer/WrapperContainer.css +0 -8
- package/build/esm/lib/unstable/kit/components/WrapperContainer/WrapperContainer.d.ts +0 -7
- package/build/esm/lib/unstable/kit/components/WrapperContainer/WrapperContainer.js +0 -11
- package/build/esm/lib/unstable/kit/components/WrapperContainer/index.d.ts +0 -1
- package/build/esm/lib/unstable/kit/components/WrapperContainer/index.js +0 -1
- package/build/esm/lib/unstable/kit/controls/Alert/Alert.d.ts +0 -9
- package/build/esm/lib/unstable/kit/controls/Alert/Alert.js +0 -24
- package/build/esm/lib/unstable/kit/controls/ArrayBase/ArrayBase.d.ts +0 -8
- package/build/esm/lib/unstable/kit/controls/ArrayBase/ArrayBase.js +0 -45
- package/build/esm/lib/unstable/kit/controls/ArrayBase/index.d.ts +0 -1
- package/build/esm/lib/unstable/kit/controls/ArrayBase/index.js +0 -1
- package/build/esm/lib/unstable/kit/controls/ArrayTable/ArrayTable.css +0 -39
- package/build/esm/lib/unstable/kit/controls/ArrayTable/ArrayTable.d.ts +0 -9
- package/build/esm/lib/unstable/kit/controls/ArrayTable/ArrayTable.js +0 -85
- package/build/esm/lib/unstable/kit/controls/Checkbox/Checkbox.css +0 -11
- package/build/esm/lib/unstable/kit/controls/Checkbox/Checkbox.d.ts +0 -7
- package/build/esm/lib/unstable/kit/controls/Checkbox/Checkbox.js +0 -17
- package/build/esm/lib/unstable/kit/controls/Checkbox/index.d.ts +0 -1
- package/build/esm/lib/unstable/kit/controls/Checkbox/index.js +0 -1
- package/build/esm/lib/unstable/kit/controls/CheckboxGroup/CheckboxGroup.css +0 -9
- package/build/esm/lib/unstable/kit/controls/CheckboxGroup/CheckboxGroup.d.ts +0 -10
- package/build/esm/lib/unstable/kit/controls/CheckboxGroup/CheckboxGroup.js +0 -39
- package/build/esm/lib/unstable/kit/controls/CheckboxGroup/index.d.ts +0 -1
- package/build/esm/lib/unstable/kit/controls/CheckboxGroup/index.js +0 -1
- package/build/esm/lib/unstable/kit/controls/ColorPicker/ColorPicker.css +0 -6
- package/build/esm/lib/unstable/kit/controls/ColorPicker/ColorPicker.d.ts +0 -7
- package/build/esm/lib/unstable/kit/controls/ColorPicker/ColorPicker.js +0 -23
- package/build/esm/lib/unstable/kit/controls/ColorPicker/index.d.ts +0 -1
- package/build/esm/lib/unstable/kit/controls/ColorPicker/index.js +0 -1
- package/build/esm/lib/unstable/kit/controls/DateInput/DateInput.d.ts +0 -9
- package/build/esm/lib/unstable/kit/controls/DateInput/DateInput.js +0 -54
- package/build/esm/lib/unstable/kit/controls/DotValue/DotValue.d.ts +0 -5
- package/build/esm/lib/unstable/kit/controls/DotValue/DotValue.js +0 -26
- package/build/esm/lib/unstable/kit/controls/FewOfNested/FewOfNested.css +0 -14
- package/build/esm/lib/unstable/kit/controls/FewOfNested/FewOfNested.d.ts +0 -9
- package/build/esm/lib/unstable/kit/controls/FewOfNested/FewOfNested.js +0 -60
- package/build/esm/lib/unstable/kit/controls/FileInput/FileInput.d.ts +0 -7
- package/build/esm/lib/unstable/kit/controls/FileInput/FileInput.js +0 -50
- package/build/esm/lib/unstable/kit/controls/Label/Label.d.ts +0 -9
- package/build/esm/lib/unstable/kit/controls/Label/Label.js +0 -25
- package/build/esm/lib/unstable/kit/controls/MultiSelect/MultiSelect.d.ts +0 -8
- package/build/esm/lib/unstable/kit/controls/MultiSelect/MultiSelect.js +0 -35
- package/build/esm/lib/unstable/kit/controls/MultiSelect/index.d.ts +0 -1
- package/build/esm/lib/unstable/kit/controls/MultiSelect/index.js +0 -1
- package/build/esm/lib/unstable/kit/controls/NumberBase/NumberBase.css +0 -3
- package/build/esm/lib/unstable/kit/controls/NumberBase/NumberBase.d.ts +0 -7
- package/build/esm/lib/unstable/kit/controls/NumberBase/NumberBase.js +0 -13
- package/build/esm/lib/unstable/kit/controls/NumberBase/index.d.ts +0 -1
- package/build/esm/lib/unstable/kit/controls/NumberBase/index.js +0 -1
- package/build/esm/lib/unstable/kit/controls/ObjectBase/ObjectBase.d.ts +0 -7
- package/build/esm/lib/unstable/kit/controls/ObjectBase/ObjectBase.js +0 -11
- package/build/esm/lib/unstable/kit/controls/ObjectBase/index.d.ts +0 -1
- package/build/esm/lib/unstable/kit/controls/ObjectBase/index.js +0 -1
- package/build/esm/lib/unstable/kit/controls/ObjectInline/ObjectInline.css +0 -8
- package/build/esm/lib/unstable/kit/controls/ObjectInline/ObjectInline.d.ts +0 -9
- package/build/esm/lib/unstable/kit/controls/ObjectInline/ObjectInline.js +0 -22
- package/build/esm/lib/unstable/kit/controls/OneOfNested/OneOfNested.css +0 -14
- package/build/esm/lib/unstable/kit/controls/OneOfNested/OneOfNested.d.ts +0 -13
- package/build/esm/lib/unstable/kit/controls/OneOfNested/OneOfNested.js +0 -61
- package/build/esm/lib/unstable/kit/controls/Password/Password.css +0 -3
- package/build/esm/lib/unstable/kit/controls/Password/Password.d.ts +0 -7
- package/build/esm/lib/unstable/kit/controls/Password/Password.js +0 -13
- package/build/esm/lib/unstable/kit/controls/Password/index.d.ts +0 -1
- package/build/esm/lib/unstable/kit/controls/Password/index.js +0 -1
- package/build/esm/lib/unstable/kit/controls/RadioGroup/RadioGroup.css +0 -13
- package/build/esm/lib/unstable/kit/controls/RadioGroup/RadioGroup.d.ts +0 -9
- package/build/esm/lib/unstable/kit/controls/RadioGroup/RadioGroup.js +0 -22
- package/build/esm/lib/unstable/kit/controls/RadioGroup/index.d.ts +0 -1
- package/build/esm/lib/unstable/kit/controls/RadioGroup/index.js +0 -1
- package/build/esm/lib/unstable/kit/controls/RangeSlider/RangeSlider.d.ts +0 -7
- package/build/esm/lib/unstable/kit/controls/RangeSlider/RangeSlider.js +0 -32
- package/build/esm/lib/unstable/kit/controls/RangeSlider/index.d.ts +0 -1
- package/build/esm/lib/unstable/kit/controls/RangeSlider/index.js +0 -1
- package/build/esm/lib/unstable/kit/controls/SegmentedRadioGroup/SegmentedRadioGroup.css +0 -6
- package/build/esm/lib/unstable/kit/controls/SegmentedRadioGroup/SegmentedRadioGroup.d.ts +0 -9
- package/build/esm/lib/unstable/kit/controls/SegmentedRadioGroup/SegmentedRadioGroup.js +0 -27
- package/build/esm/lib/unstable/kit/controls/SegmentedRadioGroup/index.d.ts +0 -1
- package/build/esm/lib/unstable/kit/controls/SegmentedRadioGroup/index.js +0 -1
- package/build/esm/lib/unstable/kit/controls/Select/Select.d.ts +0 -9
- package/build/esm/lib/unstable/kit/controls/Select/Select.js +0 -32
- package/build/esm/lib/unstable/kit/controls/Select/index.d.ts +0 -1
- package/build/esm/lib/unstable/kit/controls/Select/index.js +0 -1
- package/build/esm/lib/unstable/kit/controls/Slider/Slider.d.ts +0 -6
- package/build/esm/lib/unstable/kit/controls/Slider/Slider.js +0 -17
- package/build/esm/lib/unstable/kit/controls/Slider/index.d.ts +0 -1
- package/build/esm/lib/unstable/kit/controls/Slider/index.js +0 -1
- package/build/esm/lib/unstable/kit/controls/StringBase/StringBase.css +0 -3
- package/build/esm/lib/unstable/kit/controls/StringBase/StringBase.d.ts +0 -7
- package/build/esm/lib/unstable/kit/controls/StringBase/StringBase.js +0 -12
- package/build/esm/lib/unstable/kit/controls/StringBase/index.d.ts +0 -1
- package/build/esm/lib/unstable/kit/controls/StringBase/index.js +0 -1
- package/build/esm/lib/unstable/kit/controls/Switch/Switch.css +0 -11
- package/build/esm/lib/unstable/kit/controls/Switch/Switch.d.ts +0 -7
- package/build/esm/lib/unstable/kit/controls/Switch/Switch.js +0 -17
- package/build/esm/lib/unstable/kit/controls/Switch/index.d.ts +0 -1
- package/build/esm/lib/unstable/kit/controls/Switch/index.js +0 -1
- package/build/esm/lib/unstable/kit/controls/TextArea/TextArea.css +0 -3
- package/build/esm/lib/unstable/kit/controls/TextArea/TextArea.d.ts +0 -7
- package/build/esm/lib/unstable/kit/controls/TextArea/TextArea.js +0 -12
- package/build/esm/lib/unstable/kit/controls/TextArea/index.d.ts +0 -1
- package/build/esm/lib/unstable/kit/controls/TextArea/index.js +0 -1
- package/build/esm/lib/unstable/kit/controls/TextContent/TextContent.css +0 -10
- package/build/esm/lib/unstable/kit/controls/TextContent/TextContent.d.ts +0 -10
- package/build/esm/lib/unstable/kit/controls/TextContent/TextContent.js +0 -27
- package/build/esm/lib/unstable/kit/controls/index.d.ts +0 -26
- package/build/esm/lib/unstable/kit/controls/index.js +0 -26
- package/build/esm/lib/unstable/kit/wrappers/Accordeon/Accordeon.css +0 -35
- package/build/esm/lib/unstable/kit/wrappers/Accordeon/Accordeon.d.ts +0 -11
- package/build/esm/lib/unstable/kit/wrappers/Accordeon/Accordeon.js +0 -37
- package/build/esm/lib/unstable/kit/wrappers/Row/Row.css +0 -24
- package/build/esm/lib/unstable/kit/wrappers/Row/Row.d.ts +0 -7
- package/build/esm/lib/unstable/kit/wrappers/Row/Row.js +0 -32
- package/build/esm/lib/unstable/kit/wrappers/Row/index.d.ts +0 -1
- package/build/esm/lib/unstable/kit/wrappers/Row/index.js +0 -1
- package/build/esm/lib/unstable/kit/wrappers/Section/Section.css +0 -23
- package/build/esm/lib/unstable/kit/wrappers/Section/Section.d.ts +0 -9
- package/build/esm/lib/unstable/kit/wrappers/Section/Section.js +0 -34
- package/build/esm/lib/unstable/kit/wrappers/Transparent/Transparent.css +0 -6
- package/build/esm/lib/unstable/kit/wrappers/Transparent/Transparent.d.ts +0 -4
- package/build/esm/lib/unstable/kit/wrappers/Transparent/Transparent.js +0 -14
- package/build/esm/lib/unstable/kit/wrappers/index.d.ts +0 -4
- package/build/esm/lib/unstable/kit/wrappers/index.js +0 -4
- /package/build/cjs/lib/unstable/core/{Entity → SchemaRendererNode}/types.js +0 -0
- /package/build/cjs/lib/unstable/core/{useSchemaRenderer/mutators/async-validation/types.js → types/jsl-errors.js} +0 -0
- /package/build/cjs/lib/unstable/core/useSchemaRenderer/{mutators/external-errors/types.js → types/patches.js} +0 -0
- /package/build/cjs/lib/unstable/core/useSchemaRenderer/{mutators/schema-mutators/types.js → types/state.js} +0 -0
- /package/build/cjs/lib/unstable/core/useSchemaRenderer/{mutators/trigger-fields/types.js → types/subscription.js} +0 -0
- /package/build/cjs/lib/unstable/core/useSchemaRenderer/{types.js → types/validation.js} +0 -0
- /package/build/cjs/lib/unstable/kit/{controls → entities}/Alert/index.d.ts +0 -0
- /package/build/cjs/lib/unstable/kit/{controls → entities}/Alert/index.js +0 -0
- /package/build/cjs/lib/unstable/kit/{controls → entities}/ArrayTable/index.d.ts +0 -0
- /package/build/cjs/lib/unstable/kit/{controls → entities}/ArrayTable/index.js +0 -0
- /package/build/cjs/lib/unstable/kit/{controls → entities}/DotValue/index.d.ts +0 -0
- /package/build/cjs/lib/unstable/kit/{controls → entities}/DotValue/index.js +0 -0
- /package/build/cjs/lib/unstable/kit/{controls → entities}/FewOfNested/index.d.ts +0 -0
- /package/build/cjs/lib/unstable/kit/{controls → entities}/FewOfNested/index.js +0 -0
- /package/build/cjs/lib/unstable/kit/{controls → entities}/Label/index.d.ts +0 -0
- /package/build/cjs/lib/unstable/kit/{controls → entities}/Label/index.js +0 -0
- /package/build/cjs/lib/unstable/kit/{controls → entities}/ObjectInline/index.d.ts +0 -0
- /package/build/cjs/lib/unstable/kit/{controls → entities}/ObjectInline/index.js +0 -0
- /package/build/cjs/lib/unstable/kit/{controls → entities}/OneOfNested/index.d.ts +0 -0
- /package/build/cjs/lib/unstable/kit/{controls → entities}/OneOfNested/index.js +0 -0
- /package/build/cjs/lib/unstable/kit/{controls → entities}/TextContent/index.d.ts +0 -0
- /package/build/cjs/lib/unstable/kit/{controls → entities}/TextContent/index.js +0 -0
- /package/build/cjs/lib/unstable/kit/{controls → form-entities}/DateInput/DateInput.css +0 -0
- /package/build/cjs/lib/unstable/kit/{controls → form-entities}/DateInput/index.d.ts +0 -0
- /package/build/cjs/lib/unstable/kit/{controls → form-entities}/DateInput/index.js +0 -0
- /package/build/cjs/lib/unstable/kit/{controls → form-entities}/FileInput/index.d.ts +0 -0
- /package/build/cjs/lib/unstable/kit/{controls → form-entities}/FileInput/index.js +0 -0
- /package/build/cjs/lib/unstable/kit/{wrappers → layouts}/Accordeon/index.d.ts +0 -0
- /package/build/cjs/lib/unstable/kit/{wrappers → layouts}/Accordeon/index.js +0 -0
- /package/build/cjs/lib/unstable/kit/{wrappers → layouts}/Section/index.d.ts +0 -0
- /package/build/cjs/lib/unstable/kit/{wrappers → layouts}/Section/index.js +0 -0
- /package/build/cjs/lib/unstable/kit/{wrappers → layouts}/Transparent/index.d.ts +0 -0
- /package/build/cjs/lib/unstable/kit/{wrappers → layouts}/Transparent/index.js +0 -0
- /package/build/esm/lib/unstable/core/{Entity → SchemaRendererNode}/types.js +0 -0
- /package/build/esm/lib/unstable/core/{useSchemaRenderer/mutators/async-validation/types.js → types/jsl-errors.js} +0 -0
- /package/build/esm/lib/unstable/core/useSchemaRenderer/{mutators/external-errors/types.js → types/patches.js} +0 -0
- /package/build/esm/lib/unstable/core/useSchemaRenderer/{mutators/schema-mutators/types.js → types/state.js} +0 -0
- /package/build/esm/lib/unstable/core/useSchemaRenderer/{mutators/trigger-fields/types.js → types/subscription.js} +0 -0
- /package/build/esm/lib/unstable/core/useSchemaRenderer/{types.js → types/validation.js} +0 -0
- /package/build/esm/lib/unstable/kit/{controls → entities}/Alert/index.d.ts +0 -0
- /package/build/esm/lib/unstable/kit/{controls → entities}/Alert/index.js +0 -0
- /package/build/esm/lib/unstable/kit/{controls → entities}/ArrayTable/index.d.ts +0 -0
- /package/build/esm/lib/unstable/kit/{controls → entities}/ArrayTable/index.js +0 -0
- /package/build/esm/lib/unstable/kit/{controls → entities}/DotValue/index.d.ts +0 -0
- /package/build/esm/lib/unstable/kit/{controls → entities}/DotValue/index.js +0 -0
- /package/build/esm/lib/unstable/kit/{controls → entities}/FewOfNested/index.d.ts +0 -0
- /package/build/esm/lib/unstable/kit/{controls → entities}/FewOfNested/index.js +0 -0
- /package/build/esm/lib/unstable/kit/{controls → entities}/Label/index.d.ts +0 -0
- /package/build/esm/lib/unstable/kit/{controls → entities}/Label/index.js +0 -0
- /package/build/esm/lib/unstable/kit/{controls → entities}/ObjectInline/index.d.ts +0 -0
- /package/build/esm/lib/unstable/kit/{controls → entities}/ObjectInline/index.js +0 -0
- /package/build/esm/lib/unstable/kit/{controls → entities}/OneOfNested/index.d.ts +0 -0
- /package/build/esm/lib/unstable/kit/{controls → entities}/OneOfNested/index.js +0 -0
- /package/build/esm/lib/unstable/kit/{controls → entities}/TextContent/index.d.ts +0 -0
- /package/build/esm/lib/unstable/kit/{controls → entities}/TextContent/index.js +0 -0
- /package/build/esm/lib/unstable/kit/{controls → form-entities}/DateInput/DateInput.css +0 -0
- /package/build/esm/lib/unstable/kit/{controls → form-entities}/DateInput/index.d.ts +0 -0
- /package/build/esm/lib/unstable/kit/{controls → form-entities}/DateInput/index.js +0 -0
- /package/build/esm/lib/unstable/kit/{controls → form-entities}/FileInput/index.d.ts +0 -0
- /package/build/esm/lib/unstable/kit/{controls → form-entities}/FileInput/index.js +0 -0
- /package/build/esm/lib/unstable/kit/{wrappers → layouts}/Accordeon/index.d.ts +0 -0
- /package/build/esm/lib/unstable/kit/{wrappers → layouts}/Accordeon/index.js +0 -0
- /package/build/esm/lib/unstable/kit/{wrappers → layouts}/Section/index.d.ts +0 -0
- /package/build/esm/lib/unstable/kit/{wrappers → layouts}/Section/index.js +0 -0
- /package/build/esm/lib/unstable/kit/{wrappers → layouts}/Transparent/index.d.ts +0 -0
- /package/build/esm/lib/unstable/kit/{wrappers → layouts}/Transparent/index.js +0 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { v4 as uuidv4 } from 'uuid';
|
|
2
|
+
import { getServiceFieldName } from '../../utils';
|
|
3
|
+
import { SCHEMA_RENDERER_SERVICE_FIELD } from '../constants';
|
|
4
|
+
export const getSubscribe = (form, headName) => {
|
|
5
|
+
const srName = getServiceFieldName(SCHEMA_RENDERER_SERVICE_FIELD, headName);
|
|
6
|
+
const subscribe = (subscriber) => {
|
|
7
|
+
var _a, _b;
|
|
8
|
+
const id = uuidv4();
|
|
9
|
+
const srField = form.getFieldState(srName);
|
|
10
|
+
const srState = (_a = srField === null || srField === void 0 ? void 0 : srField.data) === null || _a === void 0 ? void 0 : _a.state;
|
|
11
|
+
if (srState) {
|
|
12
|
+
const { subscribers } = srState;
|
|
13
|
+
subscribers.byId[id] = subscriber;
|
|
14
|
+
(_b = subscriber.schemaPaths) === null || _b === void 0 ? void 0 : _b.forEach((schemaPath) => {
|
|
15
|
+
let set = subscribers.byPath.get(schemaPath);
|
|
16
|
+
if (!set) {
|
|
17
|
+
set = new Set();
|
|
18
|
+
subscribers.byPath.set(schemaPath, set);
|
|
19
|
+
}
|
|
20
|
+
set.add(id);
|
|
21
|
+
});
|
|
22
|
+
if (subscriber.name) {
|
|
23
|
+
let set = subscribers.byName.get(subscriber.name);
|
|
24
|
+
if (!set) {
|
|
25
|
+
set = new Set();
|
|
26
|
+
subscribers.byName.set(subscriber.name, set);
|
|
27
|
+
}
|
|
28
|
+
set.add(id);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return id;
|
|
32
|
+
};
|
|
33
|
+
const unsubscribe = (id) => {
|
|
34
|
+
var _a, _b, _c, _d;
|
|
35
|
+
const srField = form.getFieldState(srName);
|
|
36
|
+
const srState = (_a = srField === null || srField === void 0 ? void 0 : srField.data) === null || _a === void 0 ? void 0 : _a.state;
|
|
37
|
+
if (srState) {
|
|
38
|
+
const { subscribers } = srState;
|
|
39
|
+
const subscriber = subscribers.byId[id];
|
|
40
|
+
if (subscriber) {
|
|
41
|
+
(_b = subscriber.schemaPaths) === null || _b === void 0 ? void 0 : _b.forEach((schemaPath) => {
|
|
42
|
+
var _a, _b;
|
|
43
|
+
(_a = subscribers.byPath.get(schemaPath)) === null || _a === void 0 ? void 0 : _a.delete(id);
|
|
44
|
+
if (((_b = subscribers.byPath.get(schemaPath)) === null || _b === void 0 ? void 0 : _b.size) === 0) {
|
|
45
|
+
subscribers.byPath.delete(schemaPath);
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
if (subscriber.name) {
|
|
49
|
+
(_c = subscribers.byName.get(subscriber.name)) === null || _c === void 0 ? void 0 : _c.delete(id);
|
|
50
|
+
if (((_d = subscribers.byName.get(subscriber.name)) === null || _d === void 0 ? void 0 : _d.size) === 0) {
|
|
51
|
+
subscribers.byName.delete(subscriber.name);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
delete subscribers.byId[id];
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
return { subscribe, unsubscribe };
|
|
59
|
+
};
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type {
|
|
3
|
-
|
|
4
|
-
export type GetValidateParams = {
|
|
5
|
-
config: SchemaRendererConfig;
|
|
6
|
-
errorMessages: ErrorMessages;
|
|
7
|
-
name: string;
|
|
8
|
-
setAsyncValidationCache?: SetAsyncValidationCacheMutator;
|
|
9
|
-
setAsyncValidationWaiters?: SetAsyncValidationWaitersMutator;
|
|
10
|
-
setErrors: (errors: Record<string, SyncValidateError>) => void;
|
|
11
|
-
};
|
|
12
|
-
type GetValidateReturn = FieldValidator<FieldValue>;
|
|
13
|
-
export declare const getValidate: ({ config, errorMessages, name, setAsyncValidationCache, setAsyncValidationWaiters, setErrors, }: GetValidateParams) => GetValidateReturn;
|
|
14
|
-
export {};
|
|
1
|
+
import type { FormApi } from 'final-form';
|
|
2
|
+
import type { ValidationError } from '../../types';
|
|
3
|
+
export declare const getValidate: (form: FormApi, headName: string) => () => ValidationError | Promise<ValidationError>;
|
|
@@ -1,62 +1,83 @@
|
|
|
1
1
|
import get from 'lodash/get';
|
|
2
|
-
import isBoolean from 'lodash/isBoolean';
|
|
3
2
|
import isObjectLike from 'lodash/isObjectLike';
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
export const getValidate = (
|
|
3
|
+
import { SchemaRendererEventType } from '../../constants';
|
|
4
|
+
import { arrayPathToDotBracket, dotBracketToArrayPath, getServiceFieldName, getValuePaths, } from '../../utils';
|
|
5
|
+
import { SCHEMA_RENDERER_SERVICE_FIELD } from '../constants';
|
|
6
|
+
import { getSchemaRootNode } from './get-schema-root-node';
|
|
7
|
+
import { getParser } from './parse-errors';
|
|
8
|
+
export const getValidate = (form, headName) => {
|
|
9
|
+
let config;
|
|
10
10
|
let schema;
|
|
11
|
-
let
|
|
12
|
-
return (
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
let schemaNode;
|
|
12
|
+
return () => {
|
|
13
|
+
var _a;
|
|
14
|
+
const allValues = form.getState().values;
|
|
15
|
+
const value = headName ? get(allValues, headName) : allValues;
|
|
16
|
+
const srName = getServiceFieldName(SCHEMA_RENDERER_SERVICE_FIELD, headName);
|
|
17
|
+
const srField = form.getFieldState(srName);
|
|
18
|
+
const srState = (_a = srField === null || srField === void 0 ? void 0 : srField.data) === null || _a === void 0 ? void 0 : _a.state;
|
|
19
|
+
if (!srState) {
|
|
15
20
|
return false;
|
|
16
21
|
}
|
|
17
|
-
if (schema !==
|
|
18
|
-
|
|
19
|
-
|
|
22
|
+
if (srState.schema !== schema || srState.config !== config) {
|
|
23
|
+
config = srState.config;
|
|
24
|
+
schema = srState.schema;
|
|
25
|
+
schemaNode = getSchemaRootNode({ config, schema });
|
|
20
26
|
}
|
|
21
|
-
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
const validateErrors = schemaNode.validate(value).errors;
|
|
28
|
+
const waiters = {};
|
|
29
|
+
const jslErrors = {};
|
|
30
|
+
const npErrors = {};
|
|
31
|
+
validateErrors.forEach((error) => {
|
|
32
|
+
const parser = getParser(error.code);
|
|
33
|
+
parser({
|
|
34
|
+
allValues,
|
|
35
|
+
error,
|
|
36
|
+
form,
|
|
37
|
+
headName,
|
|
38
|
+
setJSLError: (n, e) => {
|
|
39
|
+
jslErrors[n] = e;
|
|
40
|
+
},
|
|
41
|
+
setNPError: (n, e) => {
|
|
42
|
+
npErrors[n] = e;
|
|
43
|
+
},
|
|
44
|
+
setWaiter: (n, w) => {
|
|
45
|
+
waiters[n] = w;
|
|
46
|
+
},
|
|
47
|
+
state: srState,
|
|
48
|
+
});
|
|
30
49
|
});
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
...externalRegularErrorItems,
|
|
41
|
-
...ajvErrorItems,
|
|
42
|
-
...entityParametersErrorItems,
|
|
43
|
-
...externalPriorityErrorItems,
|
|
44
|
-
].forEach((item) => {
|
|
45
|
-
if (!item.error) {
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
if (isObjectLike(item.error)) {
|
|
49
|
-
getValuePaths(item.error).forEach((childPath) => {
|
|
50
|
-
result.errors[formatFinalFormPath([name, ...item.path, ...childPath])] = get(item.error, childPath);
|
|
50
|
+
const allErrors = {};
|
|
51
|
+
Object.entries(Object.assign(Object.assign(Object.assign(Object.assign({}, srState === null || srState === void 0 ? void 0 : srState.regularErrors), jslErrors), npErrors), srState === null || srState === void 0 ? void 0 : srState.priorityErrors)).forEach(([n, e]) => {
|
|
52
|
+
if (isObjectLike(e)) {
|
|
53
|
+
getValuePaths(e).forEach((childArrPath) => {
|
|
54
|
+
const childName = arrayPathToDotBracket([
|
|
55
|
+
...dotBracketToArrayPath(n),
|
|
56
|
+
...childArrPath,
|
|
57
|
+
]);
|
|
58
|
+
allErrors[childName] = get(e, childArrPath);
|
|
51
59
|
});
|
|
52
|
-
return;
|
|
53
60
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
return;
|
|
61
|
+
else {
|
|
62
|
+
allErrors[n] = e;
|
|
57
63
|
}
|
|
58
64
|
});
|
|
59
|
-
|
|
60
|
-
|
|
65
|
+
const newErrors = {};
|
|
66
|
+
Object.keys(Object.assign(Object.assign({}, srState.errors), allErrors)).forEach((key) => {
|
|
67
|
+
if (srState.errors[key] !== allErrors[key]) {
|
|
68
|
+
newErrors[key] = allErrors[key];
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
srState.errors = allErrors;
|
|
72
|
+
srState.waiters = Object.assign(Object.assign({}, srState.waiters), waiters);
|
|
73
|
+
if (Object.values(newErrors).length) {
|
|
74
|
+
srState.dispatchEvent([
|
|
75
|
+
{ type: SchemaRendererEventType.Error, names: Object.keys(newErrors) },
|
|
76
|
+
]);
|
|
77
|
+
}
|
|
78
|
+
if (Object.values(waiters).length) {
|
|
79
|
+
return Promise.race(Object.values(waiters).map((w) => w.promise)).then(() => Object.values(allErrors).some(Boolean) ? 'error' : false);
|
|
80
|
+
}
|
|
81
|
+
return Object.values(allErrors).some(Boolean) ? 'error' : false;
|
|
61
82
|
};
|
|
62
83
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { FormApi } from 'final-form';
|
|
2
|
+
import type { JSLErrors, ObjectValue, ValidationError } from '../../types';
|
|
3
|
+
import type { SchemaRendererState, ValidationWaiter } from '../types';
|
|
4
|
+
export interface ParseErrorParams {
|
|
5
|
+
allValues: ObjectValue;
|
|
6
|
+
error: JSLErrors.Error;
|
|
7
|
+
form: FormApi<any>;
|
|
8
|
+
headName: string;
|
|
9
|
+
setJSLError: (name: string, error: ValidationError) => void;
|
|
10
|
+
setNPError: (name: string, error: ValidationError) => void;
|
|
11
|
+
setWaiter: (name: string, waiter: ValidationWaiter) => void;
|
|
12
|
+
state: SchemaRendererState;
|
|
13
|
+
}
|
|
14
|
+
export declare function getParser(code: JSLErrors.ErrorCode): (params: ParseErrorParams) => void;
|
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
import get from 'lodash/get';
|
|
2
|
+
import isEqual from 'lodash/isEqual';
|
|
3
|
+
import isFunction from 'lodash/isFunction';
|
|
4
|
+
import isObject from 'lodash/isObject';
|
|
5
|
+
import isString from 'lodash/isString';
|
|
6
|
+
import omit from 'lodash/omit';
|
|
7
|
+
import { arrayPathToDotBracket, dotBracketToArrayPath, getSchemaByPointer, pointerToArrayPath, } from '../../utils';
|
|
8
|
+
const getNameFromRoot = (headName, pointer) => arrayPathToDotBracket([...dotBracketToArrayPath(headName), ...pointerToArrayPath(pointer)]);
|
|
9
|
+
const extractMessage = (messages, error) => {
|
|
10
|
+
const codeToKeyword = {
|
|
11
|
+
'additional-items-error': 'additionalItems',
|
|
12
|
+
'any-of-error': 'anyOf',
|
|
13
|
+
'const-error': 'const',
|
|
14
|
+
'contains-any-error': 'contains',
|
|
15
|
+
'contains-min-error': 'contains',
|
|
16
|
+
'enum-error': 'enum',
|
|
17
|
+
'exclusive-maximum-error': 'exclusiveMaximum',
|
|
18
|
+
'exclusive-minimum-error': 'exclusiveMinimum',
|
|
19
|
+
'invalid-property-name-error': 'propertyNames',
|
|
20
|
+
'max-items-error': 'maxItems',
|
|
21
|
+
'max-length-error': 'maxLength',
|
|
22
|
+
'max-properties-error': 'maxProperties',
|
|
23
|
+
'maximum-error': 'maximum',
|
|
24
|
+
'min-items-error': 'minItems',
|
|
25
|
+
'min-length-error': 'minLength',
|
|
26
|
+
'min-properties-error': 'minProperties',
|
|
27
|
+
'minimum-error': 'minimum',
|
|
28
|
+
'missing-dependency-error': 'dependencies',
|
|
29
|
+
'multiple-of-error': 'multipleOf',
|
|
30
|
+
'no-additional-properties-error': 'additionalProperties',
|
|
31
|
+
'node-parameters-error': undefined,
|
|
32
|
+
'not-error': 'not',
|
|
33
|
+
'one-of-error': 'oneOf',
|
|
34
|
+
'pattern-error': 'pattern',
|
|
35
|
+
'required-property-error': 'required',
|
|
36
|
+
'type-error': 'type',
|
|
37
|
+
'unique-items-error': 'uniqueItems',
|
|
38
|
+
};
|
|
39
|
+
const keyword = codeToKeyword[error.code];
|
|
40
|
+
const messageBySchema = keyword ? messages === null || messages === void 0 ? void 0 : messages[keyword] : undefined;
|
|
41
|
+
if (isString(messageBySchema)) {
|
|
42
|
+
return messageBySchema;
|
|
43
|
+
}
|
|
44
|
+
if (isFunction(messageBySchema)) {
|
|
45
|
+
return messageBySchema(error);
|
|
46
|
+
}
|
|
47
|
+
const codeToPropertyKey = {
|
|
48
|
+
'missing-dependency-error': 'missingProperty',
|
|
49
|
+
'required-property-error': 'key',
|
|
50
|
+
};
|
|
51
|
+
const propertyKey = codeToPropertyKey[error.code];
|
|
52
|
+
if (isObject(messageBySchema) && propertyKey) {
|
|
53
|
+
const message = get(messageBySchema, get(error.data, propertyKey));
|
|
54
|
+
if (isString(message)) {
|
|
55
|
+
return message;
|
|
56
|
+
}
|
|
57
|
+
if (isFunction(message)) {
|
|
58
|
+
return message(error);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
return undefined;
|
|
62
|
+
};
|
|
63
|
+
const getInstanceSchema = ({ error, form, headName, state, }) => {
|
|
64
|
+
var _a;
|
|
65
|
+
const nameFromRoot = getNameFromRoot(headName, error.data.pointer);
|
|
66
|
+
const field = form.getFieldState(nameFromRoot);
|
|
67
|
+
const schemaPath = (_a = field === null || field === void 0 ? void 0 : field.data) === null || _a === void 0 ? void 0 : _a.schemaPath;
|
|
68
|
+
if (schemaPath) {
|
|
69
|
+
const schema = getSchemaByPointer(state.schema, schemaPath);
|
|
70
|
+
if (schema) {
|
|
71
|
+
return schema;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
return undefined;
|
|
75
|
+
};
|
|
76
|
+
const parseError = (params) => {
|
|
77
|
+
var _a, _b, _c;
|
|
78
|
+
const { error, headName, setJSLError, state } = params;
|
|
79
|
+
const nameFromRoot = getNameFromRoot(headName, error.data.pointer);
|
|
80
|
+
const message = extractMessage((_a = error.data.schema.nodeParameters) === null || _a === void 0 ? void 0 : _a.errorMessages, error) ||
|
|
81
|
+
extractMessage((_c = (_b = getInstanceSchema(params)) === null || _b === void 0 ? void 0 : _b.nodeParameters) === null || _c === void 0 ? void 0 : _c.errorMessages, error) ||
|
|
82
|
+
extractMessage(state.errorMessages, error) ||
|
|
83
|
+
error.message;
|
|
84
|
+
setJSLError(nameFromRoot, message);
|
|
85
|
+
};
|
|
86
|
+
const parseAdditionalItemsError = (params) => {
|
|
87
|
+
var _a, _b, _c, _d, _e;
|
|
88
|
+
const { error, form, headName, setJSLError, state } = params;
|
|
89
|
+
if (error.code !== 'additional-items-error') {
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
const nameFromRoot = getNameFromRoot(headName, error.data.pointer);
|
|
93
|
+
const parentPointer = error.data.pointer.replace(/\/[^/]*$/, '');
|
|
94
|
+
const parentError = Object.assign(Object.assign({}, error), { data: Object.assign(Object.assign({}, error.data), { pointer: parentPointer }) });
|
|
95
|
+
const parentParams = Object.assign(Object.assign({}, params), { error: parentError });
|
|
96
|
+
if (form.getFieldState(nameFromRoot)) {
|
|
97
|
+
const message = extractMessage((_a = error.data.schema.nodeParameters) === null || _a === void 0 ? void 0 : _a.errorMessages, error) ||
|
|
98
|
+
extractMessage((_c = (_b = getInstanceSchema(params)) === null || _b === void 0 ? void 0 : _b.nodeParameters) === null || _c === void 0 ? void 0 : _c.errorMessages, error) ||
|
|
99
|
+
extractMessage((_e = (_d = getInstanceSchema(parentParams)) === null || _d === void 0 ? void 0 : _d.nodeParameters) === null || _e === void 0 ? void 0 : _e.errorMessages, error) ||
|
|
100
|
+
extractMessage(state.errorMessages, error) ||
|
|
101
|
+
error.message;
|
|
102
|
+
setJSLError(nameFromRoot, message);
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
parseError(parentParams);
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
const parseSchemaContainsError = (params) => {
|
|
109
|
+
var _a, _b, _c, _d;
|
|
110
|
+
const { error, headName, setJSLError, state } = params;
|
|
111
|
+
if (error.code !== 'contains-min-error') {
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
const nameFromRoot = getNameFromRoot(headName, error.data.pointer);
|
|
115
|
+
const message = extractMessage((_a = error.data.schema.contains.nodeParameters) === null || _a === void 0 ? void 0 : _a.errorMessages, error) ||
|
|
116
|
+
extractMessage((_b = error.data.schema.nodeParameters) === null || _b === void 0 ? void 0 : _b.errorMessages, error) ||
|
|
117
|
+
extractMessage((_d = (_c = getInstanceSchema(params)) === null || _c === void 0 ? void 0 : _c.nodeParameters) === null || _d === void 0 ? void 0 : _d.errorMessages, error) ||
|
|
118
|
+
extractMessage(state.errorMessages, error) ||
|
|
119
|
+
error.message;
|
|
120
|
+
setJSLError(nameFromRoot, message);
|
|
121
|
+
};
|
|
122
|
+
const parseInvalidPropertyNameError = (params) => {
|
|
123
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
124
|
+
const { error, form, headName, setJSLError, state } = params;
|
|
125
|
+
if (error.code !== 'invalid-property-name-error') {
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
const nestedError = error.data.validationError;
|
|
129
|
+
const propertyNameFromRoot = getNameFromRoot(headName, nestedError.data.pointer);
|
|
130
|
+
if (form.getFieldState(propertyNameFromRoot)) {
|
|
131
|
+
const nestedParams = Object.assign(Object.assign({}, params), { error: nestedError });
|
|
132
|
+
const message = extractMessage((_a = nestedError.data.schema.nodeParameters) === null || _a === void 0 ? void 0 : _a.errorMessages, nestedError) ||
|
|
133
|
+
extractMessage((_c = (_b = getInstanceSchema(nestedParams)) === null || _b === void 0 ? void 0 : _b.nodeParameters) === null || _c === void 0 ? void 0 : _c.errorMessages, nestedError) ||
|
|
134
|
+
extractMessage((_d = error.data.schema.nodeParameters) === null || _d === void 0 ? void 0 : _d.errorMessages, error) ||
|
|
135
|
+
extractMessage((_f = (_e = getInstanceSchema(params)) === null || _e === void 0 ? void 0 : _e.nodeParameters) === null || _f === void 0 ? void 0 : _f.errorMessages, error) ||
|
|
136
|
+
extractMessage(state.errorMessages, nestedError) ||
|
|
137
|
+
extractMessage(state.errorMessages, error) ||
|
|
138
|
+
nestedError.message;
|
|
139
|
+
setJSLError(propertyNameFromRoot, message);
|
|
140
|
+
}
|
|
141
|
+
else {
|
|
142
|
+
const nameFromRoot = getNameFromRoot(headName, error.data.pointer);
|
|
143
|
+
const message = extractMessage((_g = nestedError.data.schema.nodeParameters) === null || _g === void 0 ? void 0 : _g.errorMessages, error) ||
|
|
144
|
+
extractMessage((_h = error.data.schema.nodeParameters) === null || _h === void 0 ? void 0 : _h.errorMessages, error) ||
|
|
145
|
+
extractMessage((_k = (_j = getInstanceSchema(params)) === null || _j === void 0 ? void 0 : _j.nodeParameters) === null || _k === void 0 ? void 0 : _k.errorMessages, error) ||
|
|
146
|
+
extractMessage(state.errorMessages, error) ||
|
|
147
|
+
error.message;
|
|
148
|
+
setJSLError(nameFromRoot, message);
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
const parseMissingDependencyError = (params) => {
|
|
152
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
153
|
+
const { error, form, headName, setJSLError, state } = params;
|
|
154
|
+
if (error.code !== 'missing-dependency-error') {
|
|
155
|
+
return;
|
|
156
|
+
}
|
|
157
|
+
const propertyPointer = `${error.data.pointer}/${error.data.missingProperty}`;
|
|
158
|
+
const propertyNameFromRoot = getNameFromRoot(headName, propertyPointer);
|
|
159
|
+
if (form.getFieldState(propertyNameFromRoot)) {
|
|
160
|
+
const propertyError = Object.assign(Object.assign({}, error), { data: Object.assign(Object.assign({}, error.data), { pointer: propertyPointer }) });
|
|
161
|
+
const message = extractMessage((_a = propertyError.data.schema.nodeParameters) === null || _a === void 0 ? void 0 : _a.errorMessages, propertyError) ||
|
|
162
|
+
extractMessage((_c = (_b = getInstanceSchema(Object.assign(Object.assign({}, params), { error: propertyError }))) === null || _b === void 0 ? void 0 : _b.nodeParameters) === null || _c === void 0 ? void 0 : _c.errorMessages, propertyError) ||
|
|
163
|
+
extractMessage((_e = (_d = getInstanceSchema(params)) === null || _d === void 0 ? void 0 : _d.nodeParameters) === null || _e === void 0 ? void 0 : _e.errorMessages, propertyError) ||
|
|
164
|
+
extractMessage(state.errorMessages, propertyError) ||
|
|
165
|
+
propertyError.message;
|
|
166
|
+
setJSLError(propertyNameFromRoot, message);
|
|
167
|
+
}
|
|
168
|
+
else {
|
|
169
|
+
const nameFromRoot = getNameFromRoot(headName, error.data.pointer);
|
|
170
|
+
const message = extractMessage((_f = error.data.schema.nodeParameters) === null || _f === void 0 ? void 0 : _f.errorMessages, error) ||
|
|
171
|
+
extractMessage((_h = (_g = getInstanceSchema(params)) === null || _g === void 0 ? void 0 : _g.nodeParameters) === null || _h === void 0 ? void 0 : _h.errorMessages, error) ||
|
|
172
|
+
extractMessage(state.errorMessages, error) ||
|
|
173
|
+
error.message;
|
|
174
|
+
setJSLError(nameFromRoot, message);
|
|
175
|
+
}
|
|
176
|
+
};
|
|
177
|
+
const parseAdditionalPropertiesError = (params) => {
|
|
178
|
+
var _a, _b, _c, _d, _e;
|
|
179
|
+
const { error, form, headName, setJSLError, state } = params;
|
|
180
|
+
if (error.code !== 'no-additional-properties-error') {
|
|
181
|
+
return;
|
|
182
|
+
}
|
|
183
|
+
const nameFromRoot = getNameFromRoot(headName, error.data.pointer);
|
|
184
|
+
const parentPointer = error.data.pointer.replace(/\/[^/]*$/, '');
|
|
185
|
+
const parentError = Object.assign(Object.assign({}, error), { data: Object.assign(Object.assign({}, error.data), { pointer: parentPointer }) });
|
|
186
|
+
const parentParams = Object.assign(Object.assign({}, params), { error: parentError });
|
|
187
|
+
if (form.getFieldState(nameFromRoot)) {
|
|
188
|
+
const message = extractMessage((_a = error.data.schema.nodeParameters) === null || _a === void 0 ? void 0 : _a.errorMessages, error) ||
|
|
189
|
+
extractMessage((_c = (_b = getInstanceSchema(params)) === null || _b === void 0 ? void 0 : _b.nodeParameters) === null || _c === void 0 ? void 0 : _c.errorMessages, error) ||
|
|
190
|
+
extractMessage((_e = (_d = getInstanceSchema(parentParams)) === null || _d === void 0 ? void 0 : _d.nodeParameters) === null || _e === void 0 ? void 0 : _e.errorMessages, error) ||
|
|
191
|
+
extractMessage(state.errorMessages, error) ||
|
|
192
|
+
error.message;
|
|
193
|
+
setJSLError(nameFromRoot, message);
|
|
194
|
+
}
|
|
195
|
+
else {
|
|
196
|
+
parseError(parentParams);
|
|
197
|
+
}
|
|
198
|
+
};
|
|
199
|
+
const parseNPError = ({ allValues, error, headName, setNPError, setWaiter, state, }) => {
|
|
200
|
+
if (error.code !== 'node-parameters-error') {
|
|
201
|
+
return;
|
|
202
|
+
}
|
|
203
|
+
const nameFromRoot = getNameFromRoot(headName, error.data.pointer);
|
|
204
|
+
const params = omit(error.data, 'pointer');
|
|
205
|
+
const cache = state.cache[nameFromRoot];
|
|
206
|
+
const cacheItem = cache === null || cache === void 0 ? void 0 : cache.find((c) => isEqual(params, omit(c, 'result')));
|
|
207
|
+
const waiter = state.waiters[nameFromRoot];
|
|
208
|
+
if (cacheItem) {
|
|
209
|
+
setNPError(nameFromRoot, cacheItem.result);
|
|
210
|
+
return;
|
|
211
|
+
}
|
|
212
|
+
if (!waiter || !isEqual(params, omit(waiter, 'promise'))) {
|
|
213
|
+
const errorOrPromise = params.validator(params.value, allValues);
|
|
214
|
+
if (errorOrPromise instanceof Promise) {
|
|
215
|
+
const w = Object.assign(Object.assign({}, params), { promise: errorOrPromise });
|
|
216
|
+
setWaiter(nameFromRoot, w);
|
|
217
|
+
errorOrPromise.then((result) => {
|
|
218
|
+
// eslint-disable-next-line no-param-reassign
|
|
219
|
+
state.cache[nameFromRoot] = [
|
|
220
|
+
...(state.cache[nameFromRoot] || []),
|
|
221
|
+
Object.assign(Object.assign({}, params), { result }),
|
|
222
|
+
];
|
|
223
|
+
if (state.waiters[nameFromRoot] === w) {
|
|
224
|
+
// eslint-disable-next-line no-param-reassign
|
|
225
|
+
state.waiters[nameFromRoot] = undefined;
|
|
226
|
+
state.runValidate();
|
|
227
|
+
}
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
else {
|
|
231
|
+
setNPError(nameFromRoot, errorOrPromise);
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
};
|
|
235
|
+
const parseNotError = (params) => {
|
|
236
|
+
var _a, _b, _c, _d;
|
|
237
|
+
const { error, headName, setJSLError, state } = params;
|
|
238
|
+
if (error.code !== 'not-error') {
|
|
239
|
+
return;
|
|
240
|
+
}
|
|
241
|
+
const nameFromRoot = getNameFromRoot(headName, error.data.pointer);
|
|
242
|
+
const message = extractMessage((_a = error.data.not.nodeParameters) === null || _a === void 0 ? void 0 : _a.errorMessages, error) ||
|
|
243
|
+
extractMessage((_b = error.data.schema.nodeParameters) === null || _b === void 0 ? void 0 : _b.errorMessages, error) ||
|
|
244
|
+
extractMessage((_d = (_c = getInstanceSchema(params)) === null || _c === void 0 ? void 0 : _c.nodeParameters) === null || _d === void 0 ? void 0 : _d.errorMessages, error) ||
|
|
245
|
+
extractMessage(state.errorMessages, error) ||
|
|
246
|
+
error.message;
|
|
247
|
+
setJSLError(nameFromRoot, message);
|
|
248
|
+
};
|
|
249
|
+
const parseOneOfError = (params) => {
|
|
250
|
+
var _a, _b, _c;
|
|
251
|
+
const { error, headName, setJSLError, state } = params;
|
|
252
|
+
if (error.code !== 'one-of-error') {
|
|
253
|
+
return;
|
|
254
|
+
}
|
|
255
|
+
const nameFromRoot = getNameFromRoot(headName, error.data.pointer);
|
|
256
|
+
const message = extractMessage((_a = error.data.schema.nodeParameters) === null || _a === void 0 ? void 0 : _a.errorMessages, error) ||
|
|
257
|
+
extractMessage((_c = (_b = getInstanceSchema(params)) === null || _b === void 0 ? void 0 : _b.nodeParameters) === null || _c === void 0 ? void 0 : _c.errorMessages, error);
|
|
258
|
+
if (message) {
|
|
259
|
+
setJSLError(nameFromRoot, message);
|
|
260
|
+
}
|
|
261
|
+
else {
|
|
262
|
+
const firstError = error.data.errors[0];
|
|
263
|
+
const parser = getParser(firstError.code);
|
|
264
|
+
if (parser) {
|
|
265
|
+
parser(Object.assign(Object.assign({}, params), { error: firstError }));
|
|
266
|
+
}
|
|
267
|
+
else {
|
|
268
|
+
setJSLError(nameFromRoot, extractMessage(state.errorMessages, error) || error.message);
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
};
|
|
272
|
+
const parseRequiredPropertyError = (params) => {
|
|
273
|
+
var _a, _b, _c, _d, _e;
|
|
274
|
+
const { error, form, headName, setJSLError, state } = params;
|
|
275
|
+
if (error.code !== 'required-property-error') {
|
|
276
|
+
return;
|
|
277
|
+
}
|
|
278
|
+
const propertyPointer = `${error.data.pointer}/${error.data.key}`;
|
|
279
|
+
const propertyNameFromRoot = getNameFromRoot(headName, propertyPointer);
|
|
280
|
+
const propertyError = Object.assign(Object.assign({}, error), { data: Object.assign(Object.assign({}, error.data), { pointer: propertyPointer }) });
|
|
281
|
+
const propertyParams = Object.assign(Object.assign({}, params), { error: propertyError });
|
|
282
|
+
if (form.getFieldState(propertyNameFromRoot)) {
|
|
283
|
+
const message = extractMessage((_a = error.data.schema.nodeParameters) === null || _a === void 0 ? void 0 : _a.errorMessages, propertyError) ||
|
|
284
|
+
extractMessage((_c = (_b = getInstanceSchema(propertyParams)) === null || _b === void 0 ? void 0 : _b.nodeParameters) === null || _c === void 0 ? void 0 : _c.errorMessages, propertyError) ||
|
|
285
|
+
extractMessage((_e = (_d = getInstanceSchema(params)) === null || _d === void 0 ? void 0 : _d.nodeParameters) === null || _e === void 0 ? void 0 : _e.errorMessages, propertyError) ||
|
|
286
|
+
extractMessage(state.errorMessages, propertyError) ||
|
|
287
|
+
propertyError.message;
|
|
288
|
+
setJSLError(propertyNameFromRoot, message);
|
|
289
|
+
}
|
|
290
|
+
else {
|
|
291
|
+
parseError(params);
|
|
292
|
+
}
|
|
293
|
+
};
|
|
294
|
+
const parseUniqueItemsError = (params) => {
|
|
295
|
+
const { error } = params;
|
|
296
|
+
if (error.code !== 'unique-items-error') {
|
|
297
|
+
return;
|
|
298
|
+
}
|
|
299
|
+
const parentError = Object.assign(Object.assign({}, error), { data: Object.assign(Object.assign({}, error.data), { pointer: error.data.arrayPointer }) });
|
|
300
|
+
const parentParams = Object.assign(Object.assign({}, params), { error: parentError });
|
|
301
|
+
parseError(parentParams);
|
|
302
|
+
};
|
|
303
|
+
export function getParser(code) {
|
|
304
|
+
const parserByCode = {
|
|
305
|
+
'additional-items-error': parseAdditionalItemsError,
|
|
306
|
+
'any-of-error': parseError,
|
|
307
|
+
'const-error': parseError,
|
|
308
|
+
'contains-any-error': parseError,
|
|
309
|
+
'contains-min-error': parseSchemaContainsError,
|
|
310
|
+
'enum-error': parseError,
|
|
311
|
+
'exclusive-maximum-error': parseError,
|
|
312
|
+
'exclusive-minimum-error': parseError,
|
|
313
|
+
'invalid-property-name-error': parseInvalidPropertyNameError,
|
|
314
|
+
'max-items-error': parseError,
|
|
315
|
+
'max-length-error': parseError,
|
|
316
|
+
'max-properties-error': parseError,
|
|
317
|
+
'maximum-error': parseError,
|
|
318
|
+
'min-items-error': parseError,
|
|
319
|
+
'min-length-error': parseError,
|
|
320
|
+
'min-properties-error': parseError,
|
|
321
|
+
'minimum-error': parseError,
|
|
322
|
+
'missing-dependency-error': parseMissingDependencyError,
|
|
323
|
+
'multiple-of-error': parseError,
|
|
324
|
+
'no-additional-properties-error': parseAdditionalPropertiesError,
|
|
325
|
+
'node-parameters-error': parseNPError,
|
|
326
|
+
'not-error': parseNotError,
|
|
327
|
+
'one-of-error': parseOneOfError,
|
|
328
|
+
'pattern-error': parseError,
|
|
329
|
+
'required-property-error': parseRequiredPropertyError,
|
|
330
|
+
'type-error': parseError,
|
|
331
|
+
'unique-items-error': parseUniqueItemsError,
|
|
332
|
+
};
|
|
333
|
+
return parserByCode[code];
|
|
334
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type UseSchemaRendererStateParams, useSchemaRendererState } from './useSchemaRendererState';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useSchemaRendererState } from './useSchemaRendererState';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SchemaRendererEventType } from '../constants';
|
|
2
|
+
import { type SchemaRendererState } from '../useSchemaRenderer';
|
|
3
|
+
export interface UseSchemaRendererStateParams {
|
|
4
|
+
headName: string;
|
|
5
|
+
name?: string;
|
|
6
|
+
schemaPath?: string;
|
|
7
|
+
subscriptions?: SchemaRendererEventType[];
|
|
8
|
+
}
|
|
9
|
+
export declare const useSchemaRendererState: <UserContext extends Record<string, unknown> = Record<string, unknown>>({ headName, name, schemaPath, subscriptions, }: UseSchemaRendererStateParams) => SchemaRendererState<UserContext> | undefined;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useForm } from 'react-final-form';
|
|
3
|
+
import { SchemaRendererEventType } from '../constants';
|
|
4
|
+
import { SCHEMA_RENDERER_SERVICE_FIELD } from '../useSchemaRenderer';
|
|
5
|
+
import { getSchemaByPointer, getServiceFieldName } from '../utils';
|
|
6
|
+
export const useSchemaRendererState = ({ headName, name, schemaPath, subscriptions = Object.values(SchemaRendererEventType), }) => {
|
|
7
|
+
const form = useForm();
|
|
8
|
+
const uuidRef = React.useRef(null);
|
|
9
|
+
const [tick, setTick] = React.useState(0);
|
|
10
|
+
const srName = React.useMemo(() => getServiceFieldName(SCHEMA_RENDERER_SERVICE_FIELD, headName), [headName]);
|
|
11
|
+
React.useMemo(() => {
|
|
12
|
+
var _a;
|
|
13
|
+
const srField = form.getFieldState(srName);
|
|
14
|
+
const srState = (_a = srField === null || srField === void 0 ? void 0 : srField.data) === null || _a === void 0 ? void 0 : _a.state;
|
|
15
|
+
if (srState) {
|
|
16
|
+
if (uuidRef.current) {
|
|
17
|
+
srState.unsubscribe(uuidRef.current);
|
|
18
|
+
}
|
|
19
|
+
const subscription = subscriptions.reduce((acc, s) => (Object.assign(Object.assign({}, acc), { [s]: true })), {});
|
|
20
|
+
const walk = (path, paths = new Set()) => {
|
|
21
|
+
if (path && !paths.has(path)) {
|
|
22
|
+
paths.add(path);
|
|
23
|
+
const schema = getSchemaByPointer(srState.schema || {}, path);
|
|
24
|
+
return [path, ...walk(schema === null || schema === void 0 ? void 0 : schema.$ref, paths)];
|
|
25
|
+
}
|
|
26
|
+
return [];
|
|
27
|
+
};
|
|
28
|
+
const schemaPaths = walk(schemaPath);
|
|
29
|
+
uuidRef.current = srState.subscribe({
|
|
30
|
+
name,
|
|
31
|
+
schemaPaths,
|
|
32
|
+
callback: () => setTick((t) => t + 1),
|
|
33
|
+
subscription,
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
}, [form, name, schemaPath, srName, subscriptions.join(',')]);
|
|
37
|
+
const state = React.useMemo(() => {
|
|
38
|
+
var _a;
|
|
39
|
+
const srField = form.getFieldState(srName);
|
|
40
|
+
const srState = (_a = srField === null || srField === void 0 ? void 0 : srField.data) === null || _a === void 0 ? void 0 : _a.state;
|
|
41
|
+
if (srState) {
|
|
42
|
+
return Object.assign({}, srState);
|
|
43
|
+
}
|
|
44
|
+
return undefined;
|
|
45
|
+
}, [form, srName, tick]);
|
|
46
|
+
React.useEffect(() => {
|
|
47
|
+
return () => {
|
|
48
|
+
var _a;
|
|
49
|
+
const srField = form.getFieldState(srName);
|
|
50
|
+
const srState = (_a = srField === null || srField === void 0 ? void 0 : srField.data) === null || _a === void 0 ? void 0 : _a.state;
|
|
51
|
+
if (srState && uuidRef.current) {
|
|
52
|
+
srState.unsubscribe(uuidRef.current);
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
}, []);
|
|
56
|
+
return state;
|
|
57
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useSchemaRendererTools } from './useSchemaRendererTools';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useSchemaRendererTools } from './useSchemaRendererTools';
|