@gravity-ui/dynamic-forms 5.18.0 → 5.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +1 -0
- package/build/cjs/lib/core/components/Form/Controller/Controller.d.ts +11 -0
- package/build/cjs/lib/core/components/Form/Controller/index.d.ts +1 -0
- package/build/cjs/lib/core/components/Form/Controller/types.d.ts +98 -0
- package/build/cjs/lib/core/components/Form/Controller/utils.d.ts +27 -0
- package/build/cjs/lib/core/components/Form/DynamicField.d.ts +19 -0
- package/build/cjs/lib/core/components/Form/constants.d.ts +4 -0
- package/build/cjs/lib/core/components/Form/hooks/index.d.ts +17 -0
- package/build/cjs/lib/core/components/Form/hooks/useControllerMirror.d.ts +2 -0
- package/build/cjs/lib/core/components/Form/hooks/useCreateContext.d.ts +3 -0
- package/build/cjs/lib/core/components/Form/hooks/useCreateSearchContext.d.ts +3 -0
- package/build/cjs/lib/core/components/Form/hooks/useDynamicFieldMirror.d.ts +2 -0
- package/build/cjs/lib/core/components/Form/hooks/useDynamicFormsCtx.d.ts +1 -0
- package/build/cjs/lib/core/components/Form/hooks/useFormShared.d.ts +4 -0
- package/build/cjs/lib/core/components/Form/hooks/useFormSharedStore.d.ts +4 -0
- package/build/cjs/lib/core/components/Form/hooks/useGenerateRandomValue.d.ts +1 -0
- package/build/cjs/lib/core/components/Form/hooks/useIntegrationFF.d.ts +10 -0
- package/build/cjs/lib/core/components/Form/hooks/useMonaco.d.ts +1 -0
- package/build/cjs/lib/core/components/Form/hooks/useMutateDFState.d.ts +1 -0
- package/build/cjs/lib/core/components/Form/hooks/useMutators.d.ts +5 -0
- package/build/cjs/lib/core/components/Form/hooks/useSearch/index.d.ts +1 -0
- package/build/cjs/lib/core/components/Form/hooks/useSearch/useSearch.d.ts +4 -0
- package/build/cjs/lib/core/components/Form/hooks/useSearchContext.d.ts +1 -0
- package/build/cjs/lib/core/components/Form/hooks/useSearchStore.d.ts +6 -0
- package/build/cjs/lib/core/components/Form/hooks/useStore.d.ts +10 -0
- package/build/cjs/lib/core/components/Form/hooks/useStoreValue.d.ts +1 -0
- package/build/cjs/lib/core/components/Form/index.d.ts +6 -0
- package/build/cjs/lib/core/components/Form/types/array.d.ts +14 -0
- package/build/cjs/lib/core/components/Form/types/boolean.d.ts +14 -0
- package/build/cjs/lib/core/components/Form/types/config.d.ts +14 -0
- package/build/cjs/lib/core/components/Form/types/context.d.ts +23 -0
- package/build/cjs/lib/core/components/Form/types/field.d.ts +33 -0
- package/build/cjs/lib/core/components/Form/types/index.d.ts +16 -0
- package/build/cjs/lib/core/components/Form/types/input.d.ts +23 -0
- package/build/cjs/lib/core/components/Form/types/layout.d.ts +9 -0
- package/build/cjs/lib/core/components/Form/types/mirror.d.ts +15 -0
- package/build/cjs/lib/core/components/Form/types/mutators.d.ts +29 -0
- package/build/cjs/lib/core/components/Form/types/number.d.ts +14 -0
- package/build/cjs/lib/core/components/Form/types/object.d.ts +14 -0
- package/build/cjs/lib/core/components/Form/types/search.d.ts +8 -0
- package/build/cjs/lib/core/components/Form/types/store.d.ts +7 -0
- package/build/cjs/lib/core/components/Form/types/string.d.ts +14 -0
- package/build/cjs/lib/core/components/Form/types/validators.d.ts +8 -0
- package/build/cjs/lib/core/components/Form/types/value.d.ts +8 -0
- package/build/cjs/lib/core/components/Form/utils/common.d.ts +6 -0
- package/build/cjs/lib/core/components/Form/utils/index.d.ts +2 -0
- package/build/cjs/lib/core/components/Form/utils/search.d.ts +3 -0
- package/build/cjs/lib/core/components/View/DynamicView.d.ts +17 -0
- package/build/cjs/lib/core/components/View/ViewController.d.ts +7 -0
- package/build/cjs/lib/core/components/View/helpers.d.ts +1 -0
- package/build/cjs/lib/core/components/View/hooks/index.d.ts +7 -0
- package/build/cjs/lib/core/components/View/hooks/useComponents.d.ts +6 -0
- package/build/cjs/lib/core/components/View/hooks/useCreateContext.d.ts +3 -0
- package/build/cjs/lib/core/components/View/hooks/useDynamicFormsCtx.d.ts +1 -0
- package/build/cjs/lib/core/components/View/hooks/useMonaco.d.ts +1 -0
- package/build/cjs/lib/core/components/View/hooks/useRender.d.ts +15 -0
- package/build/cjs/lib/core/components/View/hooks/useViewShared.d.ts +4 -0
- package/build/cjs/lib/core/components/View/hooks/useViewSharedStore.d.ts +4 -0
- package/build/cjs/lib/core/components/View/index.d.ts +5 -0
- package/build/cjs/lib/core/components/View/types/array.d.ts +13 -0
- package/build/cjs/lib/core/components/View/types/boolean.d.ts +13 -0
- package/build/cjs/lib/core/components/View/types/config.d.ts +13 -0
- package/build/cjs/lib/core/components/View/types/context.d.ts +18 -0
- package/build/cjs/lib/core/components/View/types/index.d.ts +9 -0
- package/build/cjs/lib/core/components/View/types/layout.d.ts +8 -0
- package/build/cjs/lib/core/components/View/types/number.d.ts +13 -0
- package/build/cjs/lib/core/components/View/types/object.d.ts +13 -0
- package/build/cjs/lib/core/components/View/types/string.d.ts +13 -0
- package/build/cjs/lib/core/components/View/types/views.d.ts +23 -0
- package/build/cjs/lib/core/components/index.d.ts +2 -0
- package/build/cjs/lib/core/constants.d.ts +8 -0
- package/build/cjs/lib/core/helpers.d.ts +7 -0
- package/build/cjs/lib/core/index.d.ts +4 -0
- package/build/cjs/lib/core/types/index.d.ts +2 -0
- package/build/cjs/lib/core/types/specs.d.ts +194 -0
- package/build/cjs/lib/core/types/value.d.ts +5 -0
- package/build/cjs/lib/index.d.ts +2 -0
- package/build/cjs/lib/kit/components/AccordeonCard/AccordeonCard.d.ts +16 -0
- package/build/cjs/lib/kit/components/AccordeonCard/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Card/Card.d.ts +14 -0
- package/build/cjs/lib/kit/components/Card/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/CopyButton/CopyButton.d.ts +11 -0
- package/build/cjs/lib/kit/components/CopyButton/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/ErrorWrapper/ErrorWrapper.d.ts +10 -0
- package/build/cjs/lib/kit/components/ErrorWrapper/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/GenerateRandomValueButton/GenerateRandomValueButton.d.ts +8 -0
- package/build/cjs/lib/kit/components/GenerateRandomValueButton/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/GroupIndent/GroupIndent.d.ts +5 -0
- package/build/cjs/lib/kit/components/GroupIndent/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/HTMLContent/HTMLContent.d.ts +6 -0
- package/build/cjs/lib/kit/components/HTMLContent/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Inputs/ArrayBase/ArrayBase.d.ts +2 -0
- package/build/cjs/lib/kit/components/Inputs/ArrayBase/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Inputs/CardOneOf/CardOneOf.d.ts +2 -0
- package/build/cjs/lib/kit/components/Inputs/CardOneOf/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Inputs/Checkbox/Checkbox.d.ts +5 -0
- package/build/cjs/lib/kit/components/Inputs/Checkbox/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Inputs/CheckboxGroup/CheckboxGroup.d.ts +5 -0
- package/build/cjs/lib/kit/components/Inputs/CheckboxGroup/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Inputs/ColorPicker/ColorPicker.d.ts +21 -0
- package/build/cjs/lib/kit/components/Inputs/ColorPicker/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Inputs/DateInput/DateInput.d.ts +8 -0
- package/build/cjs/lib/kit/components/Inputs/DateInput/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Inputs/FileInput/FileInput.d.ts +3 -0
- package/build/cjs/lib/kit/components/Inputs/FileInput/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Inputs/FileInput/utils.d.ts +2 -0
- package/build/cjs/lib/kit/components/Inputs/MonacoInput/MonacoHeader.d.ts +11 -0
- package/build/cjs/lib/kit/components/Inputs/MonacoInput/MonacoInputBase.d.ts +9 -0
- package/build/cjs/lib/kit/components/Inputs/MonacoInput/MonacoInputDialog.d.ts +20 -0
- package/build/cjs/lib/kit/components/Inputs/MonacoInput/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Inputs/MonacoInput/useMonacoOptions.d.ts +2 -0
- package/build/cjs/lib/kit/components/Inputs/MultiOneOf/MultiOneOf.d.ts +7 -0
- package/build/cjs/lib/kit/components/Inputs/MultiOneOf/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Inputs/MultiSelect/MultiSelect.d.ts +6 -0
- package/build/cjs/lib/kit/components/Inputs/MultiSelect/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Inputs/Number/Number.d.ts +6 -0
- package/build/cjs/lib/kit/components/Inputs/Number/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Inputs/NumberWithScale/NumberWithScale.d.ts +3 -0
- package/build/cjs/lib/kit/components/Inputs/NumberWithScale/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Inputs/NumberWithScale/useInitial.d.ts +5 -0
- package/build/cjs/lib/kit/components/Inputs/ObjectBase/ObjectBase.d.ts +7 -0
- package/build/cjs/lib/kit/components/Inputs/ObjectBase/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Inputs/ObjectValueInput/ObjectValueInput.d.ts +2 -0
- package/build/cjs/lib/kit/components/Inputs/ObjectValueInput/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Inputs/OneOf/OneOf.d.ts +7 -0
- package/build/cjs/lib/kit/components/Inputs/OneOf/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Inputs/RadioGroup/RadioGroup.d.ts +6 -0
- package/build/cjs/lib/kit/components/Inputs/RadioGroup/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Inputs/RangeInputPicker/RangeInputPicker.d.ts +4 -0
- package/build/cjs/lib/kit/components/Inputs/RangeInputPicker/RangeInputPickerNumber.d.ts +4 -0
- package/build/cjs/lib/kit/components/Inputs/RangeInputPicker/index.d.ts +3 -0
- package/build/cjs/lib/kit/components/Inputs/RangeInputPicker/types.d.ts +15 -0
- package/build/cjs/lib/kit/components/Inputs/Secret/Secret.d.ts +2 -0
- package/build/cjs/lib/kit/components/Inputs/Secret/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Inputs/Select/Select.d.ts +6 -0
- package/build/cjs/lib/kit/components/Inputs/Select/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Inputs/Switch/Switch.d.ts +2 -0
- package/build/cjs/lib/kit/components/Inputs/Switch/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Inputs/TableArrayInput/TableArrayInput.d.ts +2 -0
- package/build/cjs/lib/kit/components/Inputs/TableArrayInput/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Inputs/Text/Text.d.ts +6 -0
- package/build/cjs/lib/kit/components/Inputs/Text/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Inputs/TextArea/TextArea.d.ts +5 -0
- package/build/cjs/lib/kit/components/Inputs/TextArea/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Inputs/TextContent/TextContent.d.ts +12 -0
- package/build/cjs/lib/kit/components/Inputs/TextContent/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Inputs/TextContent/utils.d.ts +4 -0
- package/build/cjs/lib/kit/components/Inputs/TextLink/TextLink.d.ts +2 -0
- package/build/cjs/lib/kit/components/Inputs/TextLink/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Inputs/TimeRangeSelector/TimeRangeSelector.d.ts +2 -0
- package/build/cjs/lib/kit/components/Inputs/TimeRangeSelector/components/TimeRangeSelect/TimeRangeSelect.d.ts +13 -0
- package/build/cjs/lib/kit/components/Inputs/TimeRangeSelector/components/TimeRangeSelect/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Inputs/TimeRangeSelector/components/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Inputs/TimeRangeSelector/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Inputs/TimeRangeSelector/utils.d.ts +16 -0
- package/build/cjs/lib/kit/components/Inputs/index.d.ts +26 -0
- package/build/cjs/lib/kit/components/Layouts/Accordeon/Accordeon.d.ts +8 -0
- package/build/cjs/lib/kit/components/Layouts/Accordeon/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Layouts/AccordeonCard/AccordeonCardForm.d.ts +3 -0
- package/build/cjs/lib/kit/components/Layouts/AccordeonCard/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Layouts/CardAccordeon.d.ts +3 -0
- package/build/cjs/lib/kit/components/Layouts/CardSection.d.ts +3 -0
- package/build/cjs/lib/kit/components/Layouts/Column/Column.d.ts +3 -0
- package/build/cjs/lib/kit/components/Layouts/Column/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Layouts/Row/Row.d.ts +4 -0
- package/build/cjs/lib/kit/components/Layouts/Row/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Layouts/Section/Section.d.ts +15 -0
- package/build/cjs/lib/kit/components/Layouts/Section/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Layouts/TableCell/TableCell.d.ts +3 -0
- package/build/cjs/lib/kit/components/Layouts/TableCell/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Layouts/Transparent/Transparent.d.ts +3 -0
- package/build/cjs/lib/kit/components/Layouts/Transparent/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Layouts/index.d.ts +9 -0
- package/build/cjs/lib/kit/components/LazyLoader/LazyLoader.d.ts +6 -0
- package/build/cjs/lib/kit/components/LazyLoader/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/LongValue/LongValue.d.ts +7 -0
- package/build/cjs/lib/kit/components/LongValue/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/RemoveButton/RemoveButton.d.ts +7 -0
- package/build/cjs/lib/kit/components/RemoveButton/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/SimpleVerticalAccordeon/SimpleVerticalAccordeon.d.ts +44 -0
- package/build/cjs/lib/kit/components/SimpleVerticalAccordeon/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/TogglerCard/TogglerCard.d.ts +11 -0
- package/build/cjs/lib/kit/components/TogglerCard/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/ViewLayouts/ViewAccordeon/ViewAccordeon.d.ts +8 -0
- package/build/cjs/lib/kit/components/ViewLayouts/ViewAccordeon/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/ViewLayouts/ViewAccordeonCard/ViewAccordeonCard.d.ts +3 -0
- package/build/cjs/lib/kit/components/ViewLayouts/ViewAccordeonCard/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/ViewLayouts/ViewCardAccordeon.d.ts +3 -0
- package/build/cjs/lib/kit/components/ViewLayouts/ViewCardSection.d.ts +3 -0
- package/build/cjs/lib/kit/components/ViewLayouts/ViewColumn/ViewColumn.d.ts +3 -0
- package/build/cjs/lib/kit/components/ViewLayouts/ViewColumn/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/ViewLayouts/ViewRow/ViewRow.d.ts +3 -0
- package/build/cjs/lib/kit/components/ViewLayouts/ViewRow/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/ViewLayouts/ViewSection/ViewSection.d.ts +6 -0
- package/build/cjs/lib/kit/components/ViewLayouts/ViewSection/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/ViewLayouts/ViewTableCell/ViewTableCell.d.ts +3 -0
- package/build/cjs/lib/kit/components/ViewLayouts/ViewTableCell/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/ViewLayouts/ViewTransparent/ViewTransparent.d.ts +3 -0
- package/build/cjs/lib/kit/components/ViewLayouts/ViewTransparent/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/ViewLayouts/index.d.ts +9 -0
- package/build/cjs/lib/kit/components/Views/ArrayBaseView/ArrayBaseView.d.ts +2 -0
- package/build/cjs/lib/kit/components/Views/ArrayBaseView/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Views/BaseView/BaseView.d.ts +3 -0
- package/build/cjs/lib/kit/components/Views/BaseView/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Views/CardOneOfView.d.ts +2 -0
- package/build/cjs/lib/kit/components/Views/CheckboxGroupView/CheckboxGroupView.d.ts +2 -0
- package/build/cjs/lib/kit/components/Views/CheckboxGroupView/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Views/ColorPickerView/ColorPickerView.d.ts +2 -0
- package/build/cjs/lib/kit/components/Views/ColorPickerView/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Views/DateView/DateView.d.ts +3 -0
- package/build/cjs/lib/kit/components/Views/DateView/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Views/FileInputView/FileInputView.d.ts +3 -0
- package/build/cjs/lib/kit/components/Views/FileInputView/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Views/MonacoInputView/MonacoBaseView.d.ts +3 -0
- package/build/cjs/lib/kit/components/Views/MonacoInputView/MonacoViewDialog.d.ts +15 -0
- package/build/cjs/lib/kit/components/Views/MonacoInputView/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Views/MultiOneOfView/MultiOneOfView.d.ts +7 -0
- package/build/cjs/lib/kit/components/Views/MultiOneOfView/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Views/MultiSelectView/MultiSelectView.d.ts +2 -0
- package/build/cjs/lib/kit/components/Views/MultiSelectView/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Views/NumberWithScaleView/NumberWithScaleView.d.ts +3 -0
- package/build/cjs/lib/kit/components/Views/NumberWithScaleView/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Views/ObjectBaseView/ObjectBaseView.d.ts +7 -0
- package/build/cjs/lib/kit/components/Views/ObjectBaseView/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Views/ObjectValueInputView/ObjectValueInputView.d.ts +2 -0
- package/build/cjs/lib/kit/components/Views/ObjectValueInputView/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Views/OneOfView/OneOfView.d.ts +7 -0
- package/build/cjs/lib/kit/components/Views/OneOfView/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Views/RangeInputPickerView/RangeInputPickerNumberView.d.ts +2 -0
- package/build/cjs/lib/kit/components/Views/RangeInputPickerView/RangeInputPickerView.d.ts +2 -0
- package/build/cjs/lib/kit/components/Views/RangeInputPickerView/index.d.ts +2 -0
- package/build/cjs/lib/kit/components/Views/TableArrayView/TableArrayView.d.ts +2 -0
- package/build/cjs/lib/kit/components/Views/TableArrayView/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Views/TextAreaView/TextAreaView.d.ts +2 -0
- package/build/cjs/lib/kit/components/Views/TextAreaView/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Views/TextContentView.d.ts +2 -0
- package/build/cjs/lib/kit/components/Views/TextLinkView/TextLinkView.d.ts +2 -0
- package/build/cjs/lib/kit/components/Views/TextLinkView/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Views/TimeRangeSelectorView/TimeRangeSelectorView.d.ts +2 -0
- package/build/cjs/lib/kit/components/Views/TimeRangeSelectorView/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Views/index.d.ts +20 -0
- package/build/cjs/lib/kit/components/index.d.ts +14 -0
- package/build/cjs/lib/kit/constants/common.d.ts +13 -0
- package/build/cjs/lib/kit/constants/config.d.ts +3 -0
- package/build/cjs/lib/kit/constants/index.d.ts +2 -0
- package/build/cjs/lib/kit/hooks/index.d.ts +2 -0
- package/build/cjs/lib/kit/hooks/useErrorChecker.d.ts +8 -0
- package/build/cjs/lib/kit/hooks/useOneOf/index.d.ts +1 -0
- package/build/cjs/lib/kit/hooks/useOneOf/useOneOf.d.ts +12 -0
- package/build/cjs/lib/kit/i18n/configure.d.ts +12 -0
- package/build/cjs/lib/kit/i18n/index.d.ts +2 -0
- package/build/cjs/lib/kit/index.d.ts +6 -0
- package/build/cjs/lib/kit/utils/bigIntMath.d.ts +2 -0
- package/build/cjs/lib/kit/utils/cn.d.ts +2 -0
- package/build/cjs/lib/kit/utils/common.d.ts +6 -0
- package/build/cjs/lib/kit/utils/index.d.ts +5 -0
- package/build/cjs/lib/kit/utils/objectInline.d.ts +4 -0
- package/build/cjs/lib/kit/utils/objectKeys.d.ts +4 -0
- package/build/cjs/lib/kit/validators/helpers.d.ts +7 -0
- package/build/cjs/lib/kit/validators/index.d.ts +2 -0
- package/build/cjs/lib/kit/validators/messages.d.ts +2 -0
- package/build/cjs/lib/kit/validators/types.d.ts +20 -0
- package/build/cjs/lib/kit/validators/validators.d.ts +42 -0
- package/build/cjs/lib/unstable/core/Entity/Entity.d.ts +10 -0
- package/build/cjs/lib/unstable/core/Entity/Entity.js +78 -0
- package/build/cjs/lib/unstable/core/Entity/index.d.ts +2 -0
- package/build/cjs/lib/unstable/core/Entity/index.js +5 -0
- package/build/cjs/lib/unstable/core/Entity/types.d.ts +27 -0
- package/build/cjs/lib/unstable/core/Entity/types.js +2 -0
- package/build/cjs/lib/unstable/core/Entity/utils.d.ts +3 -0
- package/build/cjs/lib/unstable/core/Entity/utils.js +40 -0
- package/build/cjs/lib/unstable/core/SchemaRenderer/SchemaRenderer.d.ts +5 -0
- package/build/cjs/lib/unstable/core/SchemaRenderer/SchemaRenderer.js +12 -0
- package/build/cjs/lib/unstable/core/SchemaRenderer/index.d.ts +1 -0
- package/build/cjs/lib/unstable/core/SchemaRenderer/index.js +5 -0
- package/build/cjs/lib/unstable/core/constants.d.ts +22 -0
- package/build/cjs/lib/unstable/core/constants.js +28 -0
- package/build/cjs/lib/unstable/core/index.d.ts +5 -0
- package/build/cjs/lib/unstable/core/index.js +15 -0
- package/build/cjs/lib/unstable/core/types/components.d.ts +29 -0
- package/build/cjs/lib/unstable/core/types/components.js +2 -0
- package/build/cjs/lib/unstable/core/types/config.d.ts +36 -0
- package/build/cjs/lib/unstable/core/types/config.js +2 -0
- package/build/cjs/lib/unstable/core/types/helpers.d.ts +18 -0
- package/build/cjs/lib/unstable/core/types/helpers.js +2 -0
- package/build/cjs/lib/unstable/core/types/index.d.ts +5 -0
- package/build/cjs/lib/unstable/core/types/index.js +8 -0
- package/build/cjs/lib/unstable/core/types/schema.d.ts +1186 -0
- package/build/cjs/lib/unstable/core/types/schema.js +2 -0
- package/build/cjs/lib/unstable/core/types/validation.d.ts +39 -0
- package/build/cjs/lib/unstable/core/types/validation.js +2 -0
- package/build/cjs/lib/unstable/core/types/values.d.ts +4 -0
- package/build/cjs/lib/unstable/core/types/values.js +2 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/constants.d.ts +1 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/constants.js +4 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/hooks/index.d.ts +2 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/hooks/index.js +7 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/hooks/useEntitiesState.d.ts +7 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/hooks/useEntitiesState.js +25 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/hooks/useSchemaRendererMutators.d.ts +10 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/hooks/useSchemaRendererMutators.js +17 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/index.d.ts +3 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/index.js +10 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/async-validation/async-validation.d.ts +3 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/async-validation/async-validation.js +35 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/async-validation/index.d.ts +2 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/async-validation/index.js +5 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/async-validation/types.d.ts +34 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/async-validation/types.js +2 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/external-errors/external-errors.d.ts +3 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/external-errors/external-errors.js +60 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/external-errors/index.d.ts +2 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/external-errors/index.js +5 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/external-errors/types.d.ts +25 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/external-errors/types.js +2 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/index.d.ts +13 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/index.js +16 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/schema-mutators/index.d.ts +2 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/schema-mutators/index.js +5 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/schema-mutators/schema-mutators.d.ts +3 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/schema-mutators/schema-mutators.js +81 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/schema-mutators/types.d.ts +26 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/schema-mutators/types.js +2 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/trigger-fields/index.d.ts +2 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/trigger-fields/index.js +5 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/trigger-fields/trigger-fields.d.ts +2 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/trigger-fields/trigger-fields.js +12 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/trigger-fields/types.d.ts +6 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/trigger-fields/types.js +2 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/types.d.ts +22 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/types.js +2 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/useSchemaRenderer.d.ts +37 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/useSchemaRenderer.js +86 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/common.d.ts +1 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/common.js +11 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/get-ajv-validate.d.ts +11 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/get-ajv-validate.js +39 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/get-validate.d.ts +14 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/get-validate.js +67 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/index.d.ts +2 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/index.js +7 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/process-ajv-error.d.ts +10 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/process-ajv-error.js +51 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/process-ajv-validate-errors.d.ts +20 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/process-ajv-validate-errors.js +43 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/process-entity-parameters-error.d.ts +15 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/process-entity-parameters-error.js +36 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/process-errors-state.d.ts +12 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/process-errors-state.js +17 -0
- package/build/cjs/lib/unstable/core/utils/common.d.ts +49 -0
- package/build/cjs/lib/unstable/core/utils/common.js +180 -0
- package/build/cjs/lib/unstable/core/utils/index.d.ts +1 -0
- package/build/cjs/lib/unstable/core/utils/index.js +4 -0
- package/build/cjs/lib/unstable/kit/Accordeon.d.ts +3 -0
- package/build/cjs/lib/unstable/kit/Accordeon.js +31 -0
- package/build/cjs/lib/unstable/kit/Any.d.ts +2 -0
- package/build/cjs/lib/unstable/kit/Any.js +21 -0
- package/build/cjs/lib/unstable/kit/ArrayBase.css +23 -0
- package/build/cjs/lib/unstable/kit/ArrayBase.d.ts +2 -0
- package/build/cjs/lib/unstable/kit/ArrayBase.js +101 -0
- package/build/cjs/lib/unstable/kit/MultiSelect.css +6 -0
- package/build/cjs/lib/unstable/kit/MultiSelect.d.ts +6 -0
- package/build/cjs/lib/unstable/kit/MultiSelect.js +66 -0
- package/build/cjs/lib/unstable/kit/ObjectBase.css +10 -0
- package/build/cjs/lib/unstable/kit/ObjectBase.d.ts +7 -0
- package/build/cjs/lib/unstable/kit/ObjectBase.js +71 -0
- package/build/cjs/lib/unstable/kit/Row.css +73 -0
- package/build/cjs/lib/unstable/kit/Row.d.ts +10 -0
- package/build/cjs/lib/unstable/kit/Row.js +50 -0
- package/build/cjs/lib/unstable/kit/Text.d.ts +6 -0
- package/build/cjs/lib/unstable/kit/Text.js +259 -0
- package/build/cjs/lib/unstable/kit/components/ArrayRemoveButton/ArrayRemoveButton.d.ts +5 -0
- package/build/cjs/lib/unstable/kit/components/ArrayRemoveButton/ArrayRemoveButton.js +29 -0
- package/build/cjs/lib/unstable/kit/components/ArrayRemoveButton/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/components/ArrayRemoveButton/index.js +5 -0
- package/build/cjs/lib/unstable/kit/components/ControlError/ControlError.css +33 -0
- package/build/cjs/lib/unstable/kit/components/ControlError/ControlError.d.ts +8 -0
- package/build/cjs/lib/unstable/kit/components/ControlError/ControlError.js +15 -0
- package/build/cjs/lib/unstable/kit/components/ControlError/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/components/ControlError/index.js +5 -0
- package/build/cjs/lib/unstable/kit/components/HTMLContent/HTMLContent.d.ts +6 -0
- package/build/cjs/lib/unstable/kit/components/HTMLContent/HTMLContent.js +11 -0
- package/build/cjs/lib/unstable/kit/components/HTMLContent/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/components/HTMLContent/index.js +5 -0
- package/build/cjs/lib/unstable/kit/components/index.d.ts +3 -0
- package/build/cjs/lib/unstable/kit/components/index.js +9 -0
- package/build/cjs/lib/unstable/kit/config.d.ts +95 -0
- package/build/cjs/lib/unstable/kit/config.js +68 -0
- package/build/cjs/lib/unstable/kit/constants/config.d.ts +112 -0
- package/build/cjs/lib/unstable/kit/constants/config.js +62 -0
- package/build/cjs/lib/unstable/kit/constants/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/constants/index.js +6 -0
- package/build/cjs/lib/unstable/kit/controls/ArrayBase/ArrayBase.d.ts +8 -0
- package/build/cjs/lib/unstable/kit/controls/ArrayBase/ArrayBase.js +46 -0
- package/build/cjs/lib/unstable/kit/controls/ArrayBase/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/ArrayBase/index.js +4 -0
- package/build/cjs/lib/unstable/kit/controls/Checkbox/Checkbox.css +5 -0
- package/build/cjs/lib/unstable/kit/controls/Checkbox/Checkbox.d.ts +6 -0
- package/build/cjs/lib/unstable/kit/controls/Checkbox/Checkbox.js +16 -0
- package/build/cjs/lib/unstable/kit/controls/Checkbox/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/Checkbox/index.js +5 -0
- package/build/cjs/lib/unstable/kit/controls/CheckboxGroup/CheckboxGroup.css +3 -0
- package/build/cjs/lib/unstable/kit/controls/CheckboxGroup/CheckboxGroup.d.ts +9 -0
- package/build/cjs/lib/unstable/kit/controls/CheckboxGroup/CheckboxGroup.js +37 -0
- package/build/cjs/lib/unstable/kit/controls/CheckboxGroup/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/CheckboxGroup/index.js +5 -0
- package/build/cjs/lib/unstable/kit/controls/ColorPicker/ColorPicker.d.ts +6 -0
- package/build/cjs/lib/unstable/kit/controls/ColorPicker/ColorPicker.js +24 -0
- package/build/cjs/lib/unstable/kit/controls/ColorPicker/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/ColorPicker/index.js +5 -0
- package/build/cjs/lib/unstable/kit/controls/DateInput/DateInput.css +3 -0
- package/build/cjs/lib/unstable/kit/controls/DateInput/DateInput.d.ts +8 -0
- package/build/cjs/lib/unstable/kit/controls/DateInput/DateInput.js +55 -0
- package/build/cjs/lib/unstable/kit/controls/DateInput/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/DateInput/index.js +5 -0
- package/build/cjs/lib/unstable/kit/controls/MultiSelect/MultiSelect.d.ts +8 -0
- package/build/cjs/lib/unstable/kit/controls/MultiSelect/MultiSelect.js +35 -0
- package/build/cjs/lib/unstable/kit/controls/MultiSelect/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/MultiSelect/index.js +5 -0
- package/build/cjs/lib/unstable/kit/controls/NumberBase/Number.d.ts +6 -0
- package/build/cjs/lib/unstable/kit/controls/NumberBase/Number.js +12 -0
- package/build/cjs/lib/unstable/kit/controls/NumberBase/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/NumberBase/index.js +5 -0
- package/build/cjs/lib/unstable/kit/controls/ObjectBase/ObjectBase.d.ts +8 -0
- package/build/cjs/lib/unstable/kit/controls/ObjectBase/ObjectBase.js +33 -0
- package/build/cjs/lib/unstable/kit/controls/ObjectBase/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/ObjectBase/index.js +5 -0
- package/build/cjs/lib/unstable/kit/controls/Password/Password.d.ts +6 -0
- package/build/cjs/lib/unstable/kit/controls/Password/Password.js +12 -0
- package/build/cjs/lib/unstable/kit/controls/Password/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/Password/index.js +5 -0
- package/build/cjs/lib/unstable/kit/controls/RadioGroup/RadioGroup.css +3 -0
- package/build/cjs/lib/unstable/kit/controls/RadioGroup/RadioGroup.d.ts +8 -0
- package/build/cjs/lib/unstable/kit/controls/RadioGroup/RadioGroup.js +24 -0
- package/build/cjs/lib/unstable/kit/controls/RadioGroup/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/RadioGroup/index.js +5 -0
- package/build/cjs/lib/unstable/kit/controls/RangeSlider/RangeSlider.css +3 -0
- package/build/cjs/lib/unstable/kit/controls/RangeSlider/RangeSlider.d.ts +7 -0
- package/build/cjs/lib/unstable/kit/controls/RangeSlider/RangeSlider.js +33 -0
- package/build/cjs/lib/unstable/kit/controls/RangeSlider/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/RangeSlider/index.js +5 -0
- package/build/cjs/lib/unstable/kit/controls/Select/Select.d.ts +9 -0
- package/build/cjs/lib/unstable/kit/controls/Select/Select.js +32 -0
- package/build/cjs/lib/unstable/kit/controls/Select/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/Select/index.js +5 -0
- package/build/cjs/lib/unstable/kit/controls/Slider/Slider.css +3 -0
- package/build/cjs/lib/unstable/kit/controls/Slider/Slider.d.ts +6 -0
- package/build/cjs/lib/unstable/kit/controls/Slider/Slider.js +19 -0
- package/build/cjs/lib/unstable/kit/controls/Slider/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/Slider/index.js +5 -0
- package/build/cjs/lib/unstable/kit/controls/StringBase/StringBase.d.ts +6 -0
- package/build/cjs/lib/unstable/kit/controls/StringBase/StringBase.js +12 -0
- package/build/cjs/lib/unstable/kit/controls/StringBase/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/StringBase/index.js +5 -0
- package/build/cjs/lib/unstable/kit/controls/Switch/Switch.css +5 -0
- package/build/cjs/lib/unstable/kit/controls/Switch/Switch.d.ts +6 -0
- package/build/cjs/lib/unstable/kit/controls/Switch/Switch.js +16 -0
- package/build/cjs/lib/unstable/kit/controls/Switch/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/Switch/index.js +5 -0
- package/build/cjs/lib/unstable/kit/controls/TextArea/TextArea.d.ts +6 -0
- package/build/cjs/lib/unstable/kit/controls/TextArea/TextArea.js +12 -0
- package/build/cjs/lib/unstable/kit/controls/TextArea/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/TextArea/index.js +5 -0
- package/build/cjs/lib/unstable/kit/controls/index.d.ts +16 -0
- package/build/cjs/lib/unstable/kit/controls/index.js +35 -0
- package/build/cjs/lib/unstable/kit/styles/functions.css +0 -0
- package/build/cjs/lib/unstable/kit/styles/variables.css +0 -0
- package/build/cjs/lib/unstable/kit/utils/cn.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/utils/cn.js +6 -0
- package/build/cjs/lib/unstable/kit/utils/common.d.ts +7 -0
- package/build/cjs/lib/unstable/kit/utils/common.js +27 -0
- package/build/cjs/lib/unstable/kit/utils/index.d.ts +2 -0
- package/build/cjs/lib/unstable/kit/utils/index.js +11 -0
- package/build/cjs/lib/unstable/kit/wrappers/Row/Row.css +27 -0
- package/build/cjs/lib/unstable/kit/wrappers/Row/Row.d.ts +6 -0
- package/build/cjs/lib/unstable/kit/wrappers/Row/Row.js +34 -0
- package/build/cjs/lib/unstable/kit/wrappers/Row/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/wrappers/Row/index.js +5 -0
- package/build/cjs/lib/unstable/kit/wrappers/Transparent/Transparent.css +6 -0
- package/build/cjs/lib/unstable/kit/wrappers/Transparent/Transparent.d.ts +3 -0
- package/build/cjs/lib/unstable/kit/wrappers/Transparent/Transparent.js +15 -0
- package/build/cjs/lib/unstable/kit/wrappers/Transparent/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/wrappers/Transparent/index.js +5 -0
- package/build/cjs/lib/unstable/kit/wrappers/index.d.ts +2 -0
- package/build/cjs/lib/unstable/kit/wrappers/index.js +7 -0
- package/build/cjs/unstable.d.ts +4 -0
- package/build/cjs/unstable.js +10 -0
- package/build/esm/lib/unstable/core/Entity/Entity.d.ts +10 -0
- package/build/esm/lib/unstable/core/Entity/Entity.js +74 -0
- package/build/esm/lib/unstable/core/Entity/index.d.ts +2 -0
- package/build/esm/lib/unstable/core/Entity/index.js +1 -0
- package/build/esm/lib/unstable/core/Entity/types.d.ts +27 -0
- package/build/esm/lib/unstable/core/Entity/types.js +1 -0
- package/build/esm/lib/unstable/core/Entity/utils.d.ts +3 -0
- package/build/esm/lib/unstable/core/Entity/utils.js +35 -0
- package/build/esm/lib/unstable/core/SchemaRenderer/SchemaRenderer.d.ts +5 -0
- package/build/esm/lib/unstable/core/SchemaRenderer/SchemaRenderer.js +8 -0
- package/build/esm/lib/unstable/core/SchemaRenderer/index.d.ts +1 -0
- package/build/esm/lib/unstable/core/SchemaRenderer/index.js +1 -0
- package/build/esm/lib/unstable/core/constants.d.ts +22 -0
- package/build/esm/lib/unstable/core/constants.js +25 -0
- package/build/esm/lib/unstable/core/index.d.ts +5 -0
- package/build/esm/lib/unstable/core/index.js +4 -0
- package/build/esm/lib/unstable/core/types/components.d.ts +29 -0
- package/build/esm/lib/unstable/core/types/components.js +1 -0
- package/build/esm/lib/unstable/core/types/config.d.ts +36 -0
- package/build/esm/lib/unstable/core/types/config.js +1 -0
- package/build/esm/lib/unstable/core/types/helpers.d.ts +18 -0
- package/build/esm/lib/unstable/core/types/helpers.js +1 -0
- package/build/esm/lib/unstable/core/types/index.d.ts +5 -0
- package/build/esm/lib/unstable/core/types/index.js +5 -0
- package/build/esm/lib/unstable/core/types/schema.d.ts +1186 -0
- package/build/esm/lib/unstable/core/types/schema.js +1 -0
- package/build/esm/lib/unstable/core/types/validation.d.ts +39 -0
- package/build/esm/lib/unstable/core/types/validation.js +1 -0
- package/build/esm/lib/unstable/core/types/values.d.ts +4 -0
- package/build/esm/lib/unstable/core/types/values.js +1 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/constants.d.ts +1 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/constants.js +1 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/hooks/index.d.ts +2 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/hooks/index.js +2 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/hooks/useEntitiesState.d.ts +7 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/hooks/useEntitiesState.js +20 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/hooks/useSchemaRendererMutators.d.ts +10 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/hooks/useSchemaRendererMutators.js +13 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/index.d.ts +3 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/index.js +3 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/async-validation/async-validation.d.ts +3 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/async-validation/async-validation.js +29 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/async-validation/index.d.ts +2 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/async-validation/index.js +2 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/async-validation/types.d.ts +34 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/async-validation/types.js +1 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/external-errors/external-errors.d.ts +3 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/external-errors/external-errors.js +54 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/external-errors/index.d.ts +2 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/external-errors/index.js +2 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/external-errors/types.d.ts +25 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/external-errors/types.js +1 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/index.d.ts +13 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/index.js +13 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/schema-mutators/index.d.ts +2 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/schema-mutators/index.js +2 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/schema-mutators/schema-mutators.d.ts +3 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/schema-mutators/schema-mutators.js +75 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/schema-mutators/types.d.ts +26 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/schema-mutators/types.js +1 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/trigger-fields/index.d.ts +2 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/trigger-fields/index.js +2 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/trigger-fields/trigger-fields.d.ts +2 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/trigger-fields/trigger-fields.js +8 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/trigger-fields/types.d.ts +6 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/mutators/trigger-fields/types.js +1 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/types.d.ts +22 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/types.js +1 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/useSchemaRenderer.d.ts +37 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/useSchemaRenderer.js +81 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/utils/common.d.ts +1 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/utils/common.js +7 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/utils/get-ajv-validate.d.ts +11 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/utils/get-ajv-validate.js +34 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/utils/get-validate.d.ts +14 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/utils/get-validate.js +62 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/utils/index.d.ts +2 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/utils/index.js +2 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/utils/process-ajv-error.d.ts +10 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/utils/process-ajv-error.js +46 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/utils/process-ajv-validate-errors.d.ts +20 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/utils/process-ajv-validate-errors.js +39 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/utils/process-entity-parameters-error.d.ts +15 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/utils/process-entity-parameters-error.js +31 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/utils/process-errors-state.d.ts +12 -0
- package/build/esm/lib/unstable/core/useSchemaRenderer/utils/process-errors-state.js +12 -0
- package/build/esm/lib/unstable/core/utils/common.d.ts +49 -0
- package/build/esm/lib/unstable/core/utils/common.js +165 -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/Accordeon.d.ts +3 -0
- package/build/esm/lib/unstable/kit/Accordeon.js +26 -0
- package/build/esm/lib/unstable/kit/Any.d.ts +2 -0
- package/build/esm/lib/unstable/kit/Any.js +16 -0
- package/build/esm/lib/unstable/kit/ArrayBase.css +23 -0
- package/build/esm/lib/unstable/kit/ArrayBase.d.ts +3 -0
- package/build/esm/lib/unstable/kit/ArrayBase.js +97 -0
- package/build/esm/lib/unstable/kit/MultiSelect.css +6 -0
- package/build/esm/lib/unstable/kit/MultiSelect.d.ts +7 -0
- package/build/esm/lib/unstable/kit/MultiSelect.js +62 -0
- package/build/esm/lib/unstable/kit/ObjectBase.css +10 -0
- package/build/esm/lib/unstable/kit/ObjectBase.d.ts +8 -0
- package/build/esm/lib/unstable/kit/ObjectBase.js +66 -0
- package/build/esm/lib/unstable/kit/Row.css +73 -0
- package/build/esm/lib/unstable/kit/Row.d.ts +11 -0
- package/build/esm/lib/unstable/kit/Row.js +47 -0
- package/build/esm/lib/unstable/kit/Text.d.ts +6 -0
- package/build/esm/lib/unstable/kit/Text.js +255 -0
- package/build/esm/lib/unstable/kit/components/ArrayRemoveButton/ArrayRemoveButton.d.ts +5 -0
- package/build/esm/lib/unstable/kit/components/ArrayRemoveButton/ArrayRemoveButton.js +24 -0
- package/build/esm/lib/unstable/kit/components/ArrayRemoveButton/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/components/ArrayRemoveButton/index.js +1 -0
- package/build/esm/lib/unstable/kit/components/ControlError/ControlError.css +33 -0
- package/build/esm/lib/unstable/kit/components/ControlError/ControlError.d.ts +9 -0
- package/build/esm/lib/unstable/kit/components/ControlError/ControlError.js +11 -0
- package/build/esm/lib/unstable/kit/components/ControlError/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/components/ControlError/index.js +1 -0
- package/build/esm/lib/unstable/kit/components/HTMLContent/HTMLContent.d.ts +6 -0
- package/build/esm/lib/unstable/kit/components/HTMLContent/HTMLContent.js +7 -0
- package/build/esm/lib/unstable/kit/components/HTMLContent/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/components/HTMLContent/index.js +1 -0
- package/build/esm/lib/unstable/kit/components/index.d.ts +3 -0
- package/build/esm/lib/unstable/kit/components/index.js +3 -0
- package/build/esm/lib/unstable/kit/config.d.ts +95 -0
- package/build/esm/lib/unstable/kit/config.js +65 -0
- package/build/esm/lib/unstable/kit/constants/config.d.ts +112 -0
- package/build/esm/lib/unstable/kit/constants/config.js +59 -0
- 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/controls/ArrayBase/ArrayBase.d.ts +8 -0
- package/build/esm/lib/unstable/kit/controls/ArrayBase/ArrayBase.js +42 -0
- package/build/esm/lib/unstable/kit/controls/ArrayBase/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/controls/ArrayBase/index.js +1 -0
- package/build/esm/lib/unstable/kit/controls/Checkbox/Checkbox.css +5 -0
- package/build/esm/lib/unstable/kit/controls/Checkbox/Checkbox.d.ts +7 -0
- package/build/esm/lib/unstable/kit/controls/Checkbox/Checkbox.js +13 -0
- package/build/esm/lib/unstable/kit/controls/Checkbox/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/controls/Checkbox/index.js +1 -0
- package/build/esm/lib/unstable/kit/controls/CheckboxGroup/CheckboxGroup.css +3 -0
- package/build/esm/lib/unstable/kit/controls/CheckboxGroup/CheckboxGroup.d.ts +10 -0
- package/build/esm/lib/unstable/kit/controls/CheckboxGroup/CheckboxGroup.js +34 -0
- package/build/esm/lib/unstable/kit/controls/CheckboxGroup/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/controls/CheckboxGroup/index.js +1 -0
- package/build/esm/lib/unstable/kit/controls/ColorPicker/ColorPicker.d.ts +6 -0
- package/build/esm/lib/unstable/kit/controls/ColorPicker/ColorPicker.js +21 -0
- package/build/esm/lib/unstable/kit/controls/ColorPicker/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/controls/ColorPicker/index.js +1 -0
- package/build/esm/lib/unstable/kit/controls/DateInput/DateInput.css +3 -0
- package/build/esm/lib/unstable/kit/controls/DateInput/DateInput.d.ts +9 -0
- package/build/esm/lib/unstable/kit/controls/DateInput/DateInput.js +53 -0
- package/build/esm/lib/unstable/kit/controls/DateInput/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/controls/DateInput/index.js +1 -0
- package/build/esm/lib/unstable/kit/controls/MultiSelect/MultiSelect.d.ts +8 -0
- package/build/esm/lib/unstable/kit/controls/MultiSelect/MultiSelect.js +32 -0
- package/build/esm/lib/unstable/kit/controls/MultiSelect/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/controls/MultiSelect/index.js +1 -0
- package/build/esm/lib/unstable/kit/controls/NumberBase/Number.d.ts +6 -0
- package/build/esm/lib/unstable/kit/controls/NumberBase/Number.js +8 -0
- package/build/esm/lib/unstable/kit/controls/NumberBase/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/controls/NumberBase/index.js +1 -0
- package/build/esm/lib/unstable/kit/controls/ObjectBase/ObjectBase.d.ts +8 -0
- package/build/esm/lib/unstable/kit/controls/ObjectBase/ObjectBase.js +29 -0
- package/build/esm/lib/unstable/kit/controls/ObjectBase/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/controls/ObjectBase/index.js +1 -0
- package/build/esm/lib/unstable/kit/controls/Password/Password.d.ts +6 -0
- package/build/esm/lib/unstable/kit/controls/Password/Password.js +8 -0
- package/build/esm/lib/unstable/kit/controls/Password/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/controls/Password/index.js +1 -0
- package/build/esm/lib/unstable/kit/controls/RadioGroup/RadioGroup.css +3 -0
- package/build/esm/lib/unstable/kit/controls/RadioGroup/RadioGroup.d.ts +9 -0
- package/build/esm/lib/unstable/kit/controls/RadioGroup/RadioGroup.js +22 -0
- package/build/esm/lib/unstable/kit/controls/RadioGroup/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/controls/RadioGroup/index.js +1 -0
- package/build/esm/lib/unstable/kit/controls/RangeSlider/RangeSlider.css +3 -0
- package/build/esm/lib/unstable/kit/controls/RangeSlider/RangeSlider.d.ts +8 -0
- package/build/esm/lib/unstable/kit/controls/RangeSlider/RangeSlider.js +31 -0
- package/build/esm/lib/unstable/kit/controls/RangeSlider/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/controls/RangeSlider/index.js +1 -0
- package/build/esm/lib/unstable/kit/controls/Select/Select.d.ts +9 -0
- package/build/esm/lib/unstable/kit/controls/Select/Select.js +29 -0
- package/build/esm/lib/unstable/kit/controls/Select/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/controls/Select/index.js +1 -0
- package/build/esm/lib/unstable/kit/controls/Slider/Slider.css +3 -0
- package/build/esm/lib/unstable/kit/controls/Slider/Slider.d.ts +7 -0
- package/build/esm/lib/unstable/kit/controls/Slider/Slider.js +16 -0
- package/build/esm/lib/unstable/kit/controls/Slider/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/controls/Slider/index.js +1 -0
- package/build/esm/lib/unstable/kit/controls/StringBase/StringBase.d.ts +6 -0
- package/build/esm/lib/unstable/kit/controls/StringBase/StringBase.js +8 -0
- package/build/esm/lib/unstable/kit/controls/StringBase/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/controls/StringBase/index.js +1 -0
- package/build/esm/lib/unstable/kit/controls/Switch/Switch.css +5 -0
- package/build/esm/lib/unstable/kit/controls/Switch/Switch.d.ts +7 -0
- package/build/esm/lib/unstable/kit/controls/Switch/Switch.js +13 -0
- package/build/esm/lib/unstable/kit/controls/Switch/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/controls/Switch/index.js +1 -0
- package/build/esm/lib/unstable/kit/controls/TextArea/TextArea.d.ts +6 -0
- package/build/esm/lib/unstable/kit/controls/TextArea/TextArea.js +8 -0
- package/build/esm/lib/unstable/kit/controls/TextArea/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/controls/TextArea/index.js +1 -0
- package/build/esm/lib/unstable/kit/controls/index.d.ts +16 -0
- package/build/esm/lib/unstable/kit/controls/index.js +16 -0
- package/build/esm/lib/unstable/kit/styles/functions.css +0 -0
- package/build/esm/lib/unstable/kit/styles/variables.css +0 -0
- package/build/esm/lib/unstable/kit/utils/cn.d.ts +1 -0
- package/build/esm/lib/unstable/kit/utils/cn.js +3 -0
- package/build/esm/lib/unstable/kit/utils/common.d.ts +7 -0
- package/build/esm/lib/unstable/kit/utils/common.js +19 -0
- package/build/esm/lib/unstable/kit/utils/index.d.ts +2 -0
- package/build/esm/lib/unstable/kit/utils/index.js +2 -0
- package/build/esm/lib/unstable/kit/wrappers/Row/Row.css +27 -0
- package/build/esm/lib/unstable/kit/wrappers/Row/Row.d.ts +7 -0
- package/build/esm/lib/unstable/kit/wrappers/Row/Row.js +31 -0
- package/build/esm/lib/unstable/kit/wrappers/Row/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/wrappers/Row/index.js +1 -0
- package/build/esm/lib/unstable/kit/wrappers/Transparent/Transparent.css +6 -0
- package/build/esm/lib/unstable/kit/wrappers/Transparent/Transparent.d.ts +4 -0
- package/build/esm/lib/unstable/kit/wrappers/Transparent/Transparent.js +12 -0
- package/build/esm/lib/unstable/kit/wrappers/Transparent/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/wrappers/Transparent/index.js +1 -0
- package/build/esm/lib/unstable/kit/wrappers/index.d.ts +2 -0
- package/build/esm/lib/unstable/kit/wrappers/index.js +2 -0
- package/build/esm/unstable.d.ts +4 -0
- package/build/esm/unstable.js +4 -0
- package/package.json +24 -2
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { type SchemaRendererConfig } from '../../core';
|
|
2
|
+
export declare const untypedConfig: {
|
|
3
|
+
readonly any: {
|
|
4
|
+
readonly controls: {
|
|
5
|
+
readonly date_input: {
|
|
6
|
+
readonly Component: import("react").NamedExoticComponent<import("../../core").ControlProps<import("../../core").JsonSchemaAny<any>, import("../controls").DateInputProps, {}>>;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
readonly views: {};
|
|
10
|
+
readonly wrappers: {
|
|
11
|
+
readonly row: import("react").NamedExoticComponent<import("../../core").WrapperProps<import("../../core").JsonSchema, import("../wrappers").RowProps>>;
|
|
12
|
+
readonly transparent: import("react").NamedExoticComponent<import("../../core").WrapperProps<import("../../core").JsonSchema, {}>>;
|
|
13
|
+
};
|
|
14
|
+
readonly validators: {};
|
|
15
|
+
};
|
|
16
|
+
readonly array: {
|
|
17
|
+
readonly controls: {
|
|
18
|
+
readonly base: {
|
|
19
|
+
readonly Component: import("react").NamedExoticComponent<import("../../core").ControlProps<import("../../core").JsonSchemaArray<any>, import("../controls").ArrayBaseProps, {}>>;
|
|
20
|
+
};
|
|
21
|
+
readonly checkbox_group: {
|
|
22
|
+
readonly Component: import("react").NamedExoticComponent<import("../../core").ControlProps<import("../../core").JsonSchemaArray<any>, import("../controls").CheckboxGroupProps, {}>>;
|
|
23
|
+
};
|
|
24
|
+
readonly select: {
|
|
25
|
+
readonly Component: import("react").NamedExoticComponent<import("../../core").ControlProps<import("../../core").JsonSchemaArray<any>, import("../controls").MultiSelectProps, {}>>;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
readonly views: {};
|
|
29
|
+
readonly wrappers: {
|
|
30
|
+
readonly row: import("react").NamedExoticComponent<import("../../core").WrapperProps<import("../../core").JsonSchema, import("../wrappers").RowProps>>;
|
|
31
|
+
readonly transparent: import("react").NamedExoticComponent<import("../../core").WrapperProps<import("../../core").JsonSchema, {}>>;
|
|
32
|
+
};
|
|
33
|
+
readonly validators: {};
|
|
34
|
+
};
|
|
35
|
+
readonly boolean: {
|
|
36
|
+
readonly controls: {
|
|
37
|
+
readonly base: {
|
|
38
|
+
readonly Component: import("react").NamedExoticComponent<import("../../core").ControlProps<import("../../core").JsonSchemaBoolean<any>, import("../controls").CheckboxProps, {}>>;
|
|
39
|
+
};
|
|
40
|
+
readonly switch: {
|
|
41
|
+
readonly Component: import("react").NamedExoticComponent<import("../../core").ControlProps<import("../../core").JsonSchemaBoolean<any>, import("../controls").SwitchProps, {}>>;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
readonly views: {};
|
|
45
|
+
readonly wrappers: {
|
|
46
|
+
readonly row: import("react").NamedExoticComponent<import("../../core").WrapperProps<import("../../core").JsonSchema, import("../wrappers").RowProps>>;
|
|
47
|
+
readonly transparent: import("react").NamedExoticComponent<import("../../core").WrapperProps<import("../../core").JsonSchema, {}>>;
|
|
48
|
+
};
|
|
49
|
+
readonly validators: {};
|
|
50
|
+
};
|
|
51
|
+
readonly number: {
|
|
52
|
+
readonly controls: {
|
|
53
|
+
readonly base: {
|
|
54
|
+
readonly Component: import("react").NamedExoticComponent<import("../../core").ControlProps<import("../../core").JsonSchemaNumber<any>, import("../controls").NumberBaseProps, {}>>;
|
|
55
|
+
};
|
|
56
|
+
readonly slider: {
|
|
57
|
+
readonly Component: import("react").NamedExoticComponent<import("../../core").ControlProps<import("../../core").JsonSchemaNumber<any>, import("../controls").SliderProps, {}>>;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
readonly views: {};
|
|
61
|
+
readonly wrappers: {
|
|
62
|
+
readonly row: import("react").NamedExoticComponent<import("../../core").WrapperProps<import("../../core").JsonSchema, import("../wrappers").RowProps>>;
|
|
63
|
+
readonly transparent: import("react").NamedExoticComponent<import("../../core").WrapperProps<import("../../core").JsonSchema, {}>>;
|
|
64
|
+
};
|
|
65
|
+
readonly validators: {};
|
|
66
|
+
};
|
|
67
|
+
readonly object: {
|
|
68
|
+
readonly controls: {
|
|
69
|
+
readonly base: {
|
|
70
|
+
readonly Component: import("react").NamedExoticComponent<import("../../core").ControlProps<import("../../core").JsonSchemaObject<any>, import("../controls").ObjectBaseProps, {}>>;
|
|
71
|
+
};
|
|
72
|
+
readonly range_slider: {
|
|
73
|
+
readonly Component: import("react").NamedExoticComponent<import("../../core").ControlProps<import("../../core").JsonSchemaObject<any>, import("../controls").RangeSliderProps, {}>>;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
readonly views: {};
|
|
77
|
+
readonly wrappers: {
|
|
78
|
+
readonly row: import("react").NamedExoticComponent<import("../../core").WrapperProps<import("../../core").JsonSchema, import("../wrappers").RowProps>>;
|
|
79
|
+
readonly transparent: import("react").NamedExoticComponent<import("../../core").WrapperProps<import("../../core").JsonSchema, {}>>;
|
|
80
|
+
};
|
|
81
|
+
readonly validators: {};
|
|
82
|
+
};
|
|
83
|
+
readonly string: {
|
|
84
|
+
readonly controls: {
|
|
85
|
+
readonly base: {
|
|
86
|
+
readonly Component: import("react").NamedExoticComponent<import("../../core").ControlProps<import("../../core").JsonSchemaString<any>, import("../controls").StringBaseProps, {}>>;
|
|
87
|
+
};
|
|
88
|
+
readonly color_picker: {
|
|
89
|
+
readonly Component: import("react").NamedExoticComponent<import("../../core").ControlProps<import("../../core").JsonSchemaString<any>, import("../controls").ColorPickerProps, {}>>;
|
|
90
|
+
};
|
|
91
|
+
readonly password: {
|
|
92
|
+
readonly Component: import("react").NamedExoticComponent<import("../../core").ControlProps<import("../../core").JsonSchemaString<any>, import("../controls").PasswordProps, {}>>;
|
|
93
|
+
};
|
|
94
|
+
readonly radio_group: {
|
|
95
|
+
readonly Component: import("react").NamedExoticComponent<import("../../core").ControlProps<import("../../core").JsonSchemaString<any>, import("../controls").RadioGroupProps, {}>>;
|
|
96
|
+
};
|
|
97
|
+
readonly select: {
|
|
98
|
+
readonly Component: import("react").NamedExoticComponent<import("../../core").ControlProps<import("../../core").JsonSchemaString<any>, import("../controls").SelectProps, {}>>;
|
|
99
|
+
};
|
|
100
|
+
readonly textarea: {
|
|
101
|
+
readonly Component: import("react").NamedExoticComponent<import("../../core").ControlProps<import("../../core").JsonSchemaString<any>, import("../controls").TextAreaProps, {}>>;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
readonly views: {};
|
|
105
|
+
readonly wrappers: {
|
|
106
|
+
readonly row: import("react").NamedExoticComponent<import("../../core").WrapperProps<import("../../core").JsonSchema, import("../wrappers").RowProps>>;
|
|
107
|
+
readonly transparent: import("react").NamedExoticComponent<import("../../core").WrapperProps<import("../../core").JsonSchema, {}>>;
|
|
108
|
+
};
|
|
109
|
+
readonly validators: {};
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
export declare const config: SchemaRendererConfig;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.config = exports.untypedConfig = void 0;
|
|
4
|
+
const core_1 = require("../../core");
|
|
5
|
+
const controls_1 = require("../controls");
|
|
6
|
+
const wrappers_1 = require("../wrappers");
|
|
7
|
+
exports.untypedConfig = {
|
|
8
|
+
[core_1.EntityType.Any]: {
|
|
9
|
+
controls: { date_input: { Component: controls_1.DateInput } },
|
|
10
|
+
views: {},
|
|
11
|
+
wrappers: { row: wrappers_1.Row, transparent: wrappers_1.Transparent },
|
|
12
|
+
validators: {},
|
|
13
|
+
},
|
|
14
|
+
[core_1.EntityType.Array]: {
|
|
15
|
+
controls: {
|
|
16
|
+
base: { Component: controls_1.ArrayBase },
|
|
17
|
+
checkbox_group: { Component: controls_1.CheckboxGroup },
|
|
18
|
+
select: { Component: controls_1.MultiSelect },
|
|
19
|
+
},
|
|
20
|
+
views: {},
|
|
21
|
+
wrappers: { row: wrappers_1.Row, transparent: wrappers_1.Transparent },
|
|
22
|
+
validators: {},
|
|
23
|
+
},
|
|
24
|
+
[core_1.EntityType.Boolean]: {
|
|
25
|
+
controls: { base: { Component: controls_1.Checkbox }, switch: { Component: controls_1.Switch } },
|
|
26
|
+
views: {},
|
|
27
|
+
wrappers: { row: wrappers_1.Row, transparent: wrappers_1.Transparent },
|
|
28
|
+
validators: {},
|
|
29
|
+
},
|
|
30
|
+
[core_1.EntityType.Number]: {
|
|
31
|
+
controls: {
|
|
32
|
+
base: { Component: controls_1.NumberBase },
|
|
33
|
+
slider: { Component: controls_1.Slider },
|
|
34
|
+
},
|
|
35
|
+
views: {},
|
|
36
|
+
wrappers: { row: wrappers_1.Row, transparent: wrappers_1.Transparent },
|
|
37
|
+
validators: {},
|
|
38
|
+
},
|
|
39
|
+
[core_1.EntityType.Object]: {
|
|
40
|
+
controls: {
|
|
41
|
+
base: { Component: controls_1.ObjectBase },
|
|
42
|
+
range_slider: { Component: controls_1.RangeSlider },
|
|
43
|
+
},
|
|
44
|
+
views: {},
|
|
45
|
+
wrappers: { row: wrappers_1.Row, transparent: wrappers_1.Transparent },
|
|
46
|
+
validators: {},
|
|
47
|
+
},
|
|
48
|
+
[core_1.EntityType.String]: {
|
|
49
|
+
controls: {
|
|
50
|
+
base: { Component: controls_1.StringBase },
|
|
51
|
+
color_picker: { Component: controls_1.ColorPicker },
|
|
52
|
+
password: { Component: controls_1.Password },
|
|
53
|
+
radio_group: { Component: controls_1.RadioGroup },
|
|
54
|
+
select: { Component: controls_1.Select },
|
|
55
|
+
textarea: { Component: controls_1.TextArea },
|
|
56
|
+
},
|
|
57
|
+
views: {},
|
|
58
|
+
wrappers: { row: wrappers_1.Row, transparent: wrappers_1.Transparent },
|
|
59
|
+
validators: {},
|
|
60
|
+
},
|
|
61
|
+
};
|
|
62
|
+
exports.config = exports.untypedConfig;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { config, untypedConfig } from './config';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.untypedConfig = exports.config = void 0;
|
|
4
|
+
var config_1 = require("./config");
|
|
5
|
+
Object.defineProperty(exports, "config", { enumerable: true, get: function () { return config_1.config; } });
|
|
6
|
+
Object.defineProperty(exports, "untypedConfig", { enumerable: true, get: function () { return config_1.untypedConfig; } });
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type JsonSchemaArray } from '../../../core';
|
|
3
|
+
export interface ArrayBaseProps {
|
|
4
|
+
addButtonText?: string;
|
|
5
|
+
addButtonPosition?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const ArrayBase: React.NamedExoticComponent<import("../../../core").ControlProps<JsonSchemaArray<any>, ArrayBaseProps, {}>>;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ArrayBase = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
+
const icons_1 = require("@gravity-ui/icons");
|
|
7
|
+
const uikit_1 = require("@gravity-ui/uikit");
|
|
8
|
+
const core_1 = require("../../../core");
|
|
9
|
+
const components_1 = require("../../components");
|
|
10
|
+
const utils_1 = require("../../utils");
|
|
11
|
+
const Component = ({ controlProps, input, meta, schema, }) => {
|
|
12
|
+
var _a;
|
|
13
|
+
const addButton = react_1.default.useMemo(() => {
|
|
14
|
+
const itemsSchema = schema.items;
|
|
15
|
+
if (Array.isArray(itemsSchema)) {
|
|
16
|
+
return null;
|
|
17
|
+
}
|
|
18
|
+
const onClick = () => input.onChange([...(input.value || []), itemsSchema === null || itemsSchema === void 0 ? void 0 : itemsSchema.default]);
|
|
19
|
+
return (react_1.default.createElement(uikit_1.Button, { onClick: onClick, disabled: controlProps.disabled || schema.readOnly, qa: `${input.name}-add-button` },
|
|
20
|
+
react_1.default.createElement(uikit_1.Icon, { data: icons_1.Plus, size: 14 }),
|
|
21
|
+
controlProps.addButtonText || null));
|
|
22
|
+
}, [
|
|
23
|
+
controlProps.addButtonText,
|
|
24
|
+
controlProps.disabled,
|
|
25
|
+
input.onChange,
|
|
26
|
+
input.value,
|
|
27
|
+
schema.default,
|
|
28
|
+
schema.items,
|
|
29
|
+
schema.readOnly,
|
|
30
|
+
]);
|
|
31
|
+
const items = react_1.default.useMemo(() => {
|
|
32
|
+
var _a;
|
|
33
|
+
const itemsSchema = schema.items;
|
|
34
|
+
if (Array.isArray(itemsSchema)) {
|
|
35
|
+
return itemsSchema.map((item, index) => (react_1.default.createElement(core_1.Entity, { name: `${input.name}[${index}]`, schema: item, key: index })));
|
|
36
|
+
}
|
|
37
|
+
return new Array((_a = input.value) === null || _a === void 0 ? void 0 : _a.length)
|
|
38
|
+
.fill(null)
|
|
39
|
+
.map((_, index) => (react_1.default.createElement(core_1.Entity, { name: `${input.name}[${index}]`, schema: itemsSchema, key: index })));
|
|
40
|
+
}, [input.name, (_a = input.value) === null || _a === void 0 ? void 0 : _a.length, schema.items]);
|
|
41
|
+
return (react_1.default.createElement(components_1.ControlError, { errorMessage: meta.error, validationState: (0, utils_1.getValidationState)(meta) },
|
|
42
|
+
react_1.default.createElement(uikit_1.Flex, { direction: "column", gap: 2 },
|
|
43
|
+
react_1.default.createElement(uikit_1.Flex, { direction: "column" }, items),
|
|
44
|
+
addButton)));
|
|
45
|
+
};
|
|
46
|
+
exports.ArrayBase = react_1.default.memo(Component);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ArrayBase';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { CheckboxProps as CheckboxBaseProps } from '@gravity-ui/uikit';
|
|
3
|
+
import type { JsonSchemaBoolean } from '../../../core';
|
|
4
|
+
export interface CheckboxProps extends Omit<CheckboxBaseProps, 'checked' | 'onFocus' | 'onBlur' | 'onChange' | 'onUpdate' | 'qa'> {
|
|
5
|
+
}
|
|
6
|
+
export declare const Checkbox: React.NamedExoticComponent<import("../../../core").ControlProps<JsonSchemaBoolean<any>, CheckboxProps, {}>>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Checkbox = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
+
const uikit_1 = require("@gravity-ui/uikit");
|
|
7
|
+
const components_1 = require("../../components");
|
|
8
|
+
const utils_1 = require("../../utils");
|
|
9
|
+
const b = (0, utils_1.block)('checkbox');
|
|
10
|
+
const Component = ({ controlProps, input, meta, schema, }) => {
|
|
11
|
+
var _a;
|
|
12
|
+
return (react_1.default.createElement(components_1.ControlError, { errorMessage: meta.error, validationState: (0, utils_1.getValidationState)(meta) },
|
|
13
|
+
react_1.default.createElement("div", { className: b() },
|
|
14
|
+
react_1.default.createElement(uikit_1.Checkbox, Object.assign({ disabled: schema.readOnly }, controlProps, { className: b(), checked: (_a = input.value) !== null && _a !== void 0 ? _a : false, onFocus: input.onFocus, onBlur: input.onBlur, onUpdate: input.onChange, qa: input.name })))));
|
|
15
|
+
};
|
|
16
|
+
exports.Checkbox = react_1.default.memo(Component);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Checkbox, type CheckboxProps } from './Checkbox';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { JsonSchemaArray } from '../../../core';
|
|
3
|
+
export interface CheckboxGroupProps {
|
|
4
|
+
enumDescriptions?: Record<string, string>;
|
|
5
|
+
optionsDisabled?: Record<string, boolean>;
|
|
6
|
+
direction?: 'row' | 'column';
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const CheckboxGroup: React.NamedExoticComponent<import("../../../core").ControlProps<JsonSchemaArray<any>, CheckboxGroupProps, {}>>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CheckboxGroup = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
+
const uikit_1 = require("@gravity-ui/uikit");
|
|
7
|
+
const components_1 = require("../../components");
|
|
8
|
+
const utils_1 = require("../../utils");
|
|
9
|
+
const b = (0, utils_1.block)('checkbox-group');
|
|
10
|
+
const Component = ({ controlProps, input, meta, schema, }) => {
|
|
11
|
+
const { direction, disabled, enumDescriptions, optionsDisabled } = controlProps;
|
|
12
|
+
const value = react_1.default.useMemo(() => (Array.isArray(input.value) ? input.value : []), [input.value]);
|
|
13
|
+
const options = react_1.default.useMemo(() => {
|
|
14
|
+
var _a, _b;
|
|
15
|
+
if (schema.items && 'enum' in schema.items) {
|
|
16
|
+
return (_b = (_a = schema === null || schema === void 0 ? void 0 : schema.items) === null || _a === void 0 ? void 0 : _a.enum) === null || _b === void 0 ? void 0 : _b.map((el) => {
|
|
17
|
+
const value = `${el}`;
|
|
18
|
+
return {
|
|
19
|
+
value,
|
|
20
|
+
text: (enumDescriptions === null || enumDescriptions === void 0 ? void 0 : enumDescriptions[value]) || value,
|
|
21
|
+
};
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
return;
|
|
25
|
+
}, [enumDescriptions, schema]);
|
|
26
|
+
const onUpdate = react_1.default.useCallback((optionValue, selected) => {
|
|
27
|
+
if (selected) {
|
|
28
|
+
input.onChange([...value, optionValue]);
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
input.onChange(value.filter((el) => el !== optionValue));
|
|
32
|
+
}
|
|
33
|
+
}, [input.onChange, value]);
|
|
34
|
+
return (react_1.default.createElement(components_1.ControlError, { errorMessage: meta.error, validationState: (0, utils_1.getValidationState)(meta) },
|
|
35
|
+
react_1.default.createElement(uikit_1.Flex, { className: b(), direction: direction, gap: 2 }, options === null || options === void 0 ? void 0 : options.map(({ value: optionValue, text }) => (react_1.default.createElement(uikit_1.Checkbox, { checked: value.includes(optionValue), onFocus: input.onFocus, onBlur: input.onBlur, onUpdate: (checked) => onUpdate(optionValue, checked), content: text, disabled: disabled || (optionsDisabled === null || optionsDisabled === void 0 ? void 0 : optionsDisabled[optionValue]) || schema.readOnly, qa: `${input.name}-${optionValue}`, key: optionValue }))))));
|
|
36
|
+
};
|
|
37
|
+
exports.CheckboxGroup = react_1.default.memo(Component);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CheckboxGroup, type CheckboxGroupProps } from './CheckboxGroup';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CheckboxGroup = void 0;
|
|
4
|
+
var CheckboxGroup_1 = require("./CheckboxGroup");
|
|
5
|
+
Object.defineProperty(exports, "CheckboxGroup", { enumerable: true, get: function () { return CheckboxGroup_1.CheckboxGroup; } });
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type unstable_ColorPickerProps as ColorPickerBaseProps } from '@gravity-ui/uikit/unstable';
|
|
3
|
+
import type { JsonSchemaString } from '../../../core';
|
|
4
|
+
export interface ColorPickerProps extends Omit<ColorPickerBaseProps, 'value' | 'onUpdate'> {
|
|
5
|
+
}
|
|
6
|
+
export declare const ColorPicker: React.NamedExoticComponent<import("../../../core").ControlProps<JsonSchemaString<any>, ColorPickerProps, {}>>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ColorPicker = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
+
const unstable_1 = require("@gravity-ui/uikit/unstable");
|
|
7
|
+
const components_1 = require("../../components");
|
|
8
|
+
const utils_1 = require("../../utils");
|
|
9
|
+
const Component = ({ controlProps, input, meta, schema, }) => {
|
|
10
|
+
var _a;
|
|
11
|
+
const { onOpenChange: onOpenChangeProps } = controlProps, restControlProps = tslib_1.__rest(controlProps, ["onOpenChange"]);
|
|
12
|
+
const onOpenChange = react_1.default.useCallback((open) => {
|
|
13
|
+
onOpenChangeProps === null || onOpenChangeProps === void 0 ? void 0 : onOpenChangeProps(open);
|
|
14
|
+
if (open) {
|
|
15
|
+
input.onFocus();
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
input.onBlur();
|
|
19
|
+
}
|
|
20
|
+
}, [input.onBlur, input.onFocus, onOpenChangeProps]);
|
|
21
|
+
return (react_1.default.createElement(components_1.ControlError, { errorMessage: meta.error, validationState: (0, utils_1.getValidationState)(meta) },
|
|
22
|
+
react_1.default.createElement(unstable_1.unstable_ColorPicker, Object.assign({ disabled: schema.readOnly }, restControlProps, { value: (_a = input.value) !== null && _a !== void 0 ? _a : '', onUpdate: input.onChange, onOpenChange: onOpenChange }))));
|
|
23
|
+
};
|
|
24
|
+
exports.ColorPicker = react_1.default.memo(Component);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ColorPicker, type ColorPickerProps } from './ColorPicker';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ColorPicker = void 0;
|
|
4
|
+
var ColorPicker_1 = require("./ColorPicker");
|
|
5
|
+
Object.defineProperty(exports, "ColorPicker", { enumerable: true, get: function () { return ColorPicker_1.ColorPicker; } });
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { DatePickerProps } from '@gravity-ui/date-components';
|
|
3
|
+
import type { JsonSchemaAny } from '../../../core';
|
|
4
|
+
export declare const DEFAULT_DATE_FORMAT = "DD.MM.YYYY HH:mm";
|
|
5
|
+
export interface DateInputProps extends Omit<DatePickerProps, 'value' | 'onFocus' | 'onBlur' | 'onChange' | 'onUpdate' | 'qa'> {
|
|
6
|
+
outputFormat?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const DateInput: React.NamedExoticComponent<import("../../../core").ControlProps<JsonSchemaAny<any>, DateInputProps, {}>>;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DateInput = exports.DEFAULT_DATE_FORMAT = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
+
const date_components_1 = require("@gravity-ui/date-components");
|
|
7
|
+
const date_utils_1 = require("@gravity-ui/date-utils");
|
|
8
|
+
const components_1 = require("../../components");
|
|
9
|
+
const utils_1 = require("../../utils");
|
|
10
|
+
exports.DEFAULT_DATE_FORMAT = 'DD.MM.YYYY HH:mm';
|
|
11
|
+
const b = (0, utils_1.block)('date-input');
|
|
12
|
+
const Component = ({ controlProps, input, meta, schema }) => {
|
|
13
|
+
var _a;
|
|
14
|
+
const { outputFormat, timeZone: timeZoneProp } = controlProps, restControlProps = tslib_1.__rest(controlProps, ["outputFormat", "timeZone"]);
|
|
15
|
+
const timeZone = timeZoneProp && (0, date_utils_1.isValidTimeZone)(timeZoneProp) ? timeZoneProp : undefined;
|
|
16
|
+
const onUpdate = react_1.default.useCallback((date) => {
|
|
17
|
+
if (!date) {
|
|
18
|
+
input.onChange(undefined);
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
if (outputFormat === 'date_time') {
|
|
22
|
+
input.onChange(date);
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
if (outputFormat === 'date') {
|
|
26
|
+
input.onChange(date.toDate());
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
if (outputFormat === 'timestamp') {
|
|
30
|
+
input.onChange({
|
|
31
|
+
seconds: Math.floor(date.toDate().getTime() / 1000),
|
|
32
|
+
nanos: 0,
|
|
33
|
+
});
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
if (outputFormat === 'string' || !outputFormat) {
|
|
37
|
+
input.onChange(date.toISOString());
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
input.onChange(date.format(outputFormat));
|
|
41
|
+
}, [outputFormat, input.onChange]);
|
|
42
|
+
const value = react_1.default.useMemo(() => {
|
|
43
|
+
if (!input.value) {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
let raw = input.value;
|
|
47
|
+
if (typeof raw === 'object' && raw !== null && 'seconds' in raw && raw.seconds) {
|
|
48
|
+
raw = raw.seconds * 1000;
|
|
49
|
+
}
|
|
50
|
+
return (0, date_utils_1.dateTimeParse)(raw, { format: outputFormat, timeZone }) || null;
|
|
51
|
+
}, [input.value, outputFormat, timeZone]);
|
|
52
|
+
return (react_1.default.createElement(components_1.ControlError, { errorMessage: meta.error, validationState: (0, utils_1.getValidationState)(meta) },
|
|
53
|
+
react_1.default.createElement(date_components_1.DatePicker, Object.assign({ className: b(), format: exports.DEFAULT_DATE_FORMAT, popupPlacement: "bottom-start", disabled: schema.readOnly, hasClear: true }, restControlProps, { value: value, onFocus: input.onFocus, onBlur: input.onBlur, onUpdate: onUpdate, placeholder: `${(_a = schema.examples) === null || _a === void 0 ? void 0 : _a[0]}`, timeZone: timeZone, "data-qa": input.name }))));
|
|
54
|
+
};
|
|
55
|
+
exports.DateInput = react_1.default.memo(Component);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DateInput, type DateInputProps } from './DateInput';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DateInput = void 0;
|
|
4
|
+
var DateInput_1 = require("./DateInput");
|
|
5
|
+
Object.defineProperty(exports, "DateInput", { enumerable: true, get: function () { return DateInput_1.DateInput; } });
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type SelectProps as SelectBaseProps } from '@gravity-ui/uikit';
|
|
3
|
+
import type { JsonSchemaArray } from '../../../core';
|
|
4
|
+
export interface MultiSelectProps extends Omit<SelectBaseProps, 'value' | 'onFocus' | 'onBlur' | 'onChange' | 'onUpdate' | 'multiple' | 'qa'> {
|
|
5
|
+
enumDescriptions?: Record<string, string>;
|
|
6
|
+
optionsMeta?: Record<string, string>;
|
|
7
|
+
}
|
|
8
|
+
export declare const MultiSelect: React.NamedExoticComponent<import("../../../core").ControlProps<JsonSchemaArray<any>, MultiSelectProps, {}>>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MultiSelect = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
+
const uikit_1 = require("@gravity-ui/uikit");
|
|
7
|
+
const isString_1 = tslib_1.__importDefault(require("lodash/isString"));
|
|
8
|
+
const utils_1 = require("../../utils");
|
|
9
|
+
const Component = ({ controlProps, input, meta, schema, }) => {
|
|
10
|
+
var _a, _b;
|
|
11
|
+
const { enumDescriptions, optionsMeta } = controlProps, restControlProps = tslib_1.__rest(controlProps, ["enumDescriptions", "optionsMeta"]);
|
|
12
|
+
const value = react_1.default.useMemo(() => (Array.isArray(input.value) && input.value.every(isString_1.default) ? input.value : undefined), [input.value]);
|
|
13
|
+
const enumValues = schema.items && 'enum' in schema.items ? schema.items.enum : undefined;
|
|
14
|
+
const options = react_1.default.useMemo(() => {
|
|
15
|
+
if (enumValues) {
|
|
16
|
+
return enumValues === null || enumValues === void 0 ? void 0 : enumValues.map((el) => {
|
|
17
|
+
const value = `${el}`;
|
|
18
|
+
const text = (enumDescriptions === null || enumDescriptions === void 0 ? void 0 : enumDescriptions[value]) || value;
|
|
19
|
+
const optionMeta = optionsMeta === null || optionsMeta === void 0 ? void 0 : optionsMeta[value];
|
|
20
|
+
let content = text;
|
|
21
|
+
if (optionMeta) {
|
|
22
|
+
content = (react_1.default.createElement(uikit_1.Flex, { direction: "column", gap: "0.5" },
|
|
23
|
+
react_1.default.createElement(uikit_1.Text, null, text),
|
|
24
|
+
react_1.default.createElement(uikit_1.Text, { color: "secondary" }, optionMeta)));
|
|
25
|
+
}
|
|
26
|
+
return { value, text, content, key: value, data: { optionMeta } };
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
return;
|
|
30
|
+
}, [enumDescriptions, enumValues, optionsMeta]);
|
|
31
|
+
const renderOption = react_1.default.useCallback((option) => (react_1.default.createElement(react_1.default.Fragment, { key: option.value }, option.content || option.text || option.value)), []);
|
|
32
|
+
const getOptionHeight = react_1.default.useCallback((option) => { var _a; return (((_a = option.data) === null || _a === void 0 ? void 0 : _a.optionMeta) ? 44 : 28); }, []);
|
|
33
|
+
return (react_1.default.createElement(uikit_1.Select, Object.assign({ width: "max", options: options, filterable: ((enumValues === null || enumValues === void 0 ? void 0 : enumValues.length) || 0) > 9, renderOption: renderOption, getOptionHeight: getOptionHeight, disabled: schema.readOnly }, restControlProps, { value: value, onFocus: input.onFocus, onBlur: input.onBlur, onUpdate: input.onChange, errorMessage: meta.error, validationState: (0, utils_1.getValidationState)(meta), placeholder: `${(_b = (_a = schema.examples) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b[0]}`, multiple: true, qa: input.name })));
|
|
34
|
+
};
|
|
35
|
+
exports.MultiSelect = react_1.default.memo(Component);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MultiSelect, type MultiSelectProps } from './MultiSelect';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MultiSelect = void 0;
|
|
4
|
+
var MultiSelect_1 = require("./MultiSelect");
|
|
5
|
+
Object.defineProperty(exports, "MultiSelect", { enumerable: true, get: function () { return MultiSelect_1.MultiSelect; } });
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type NumberInputProps } from '@gravity-ui/uikit';
|
|
3
|
+
import { type JsonSchemaNumber } from '../../../core';
|
|
4
|
+
export interface NumberBaseProps extends Omit<NumberInputProps, 'value' | 'defaultValue' | 'onFocus' | 'onBlur' | 'onChange' | 'onUpdate' | 'errorMessage' | 'validationState' | 'placeholder' | 'qa'> {
|
|
5
|
+
}
|
|
6
|
+
export declare const NumberBase: React.NamedExoticComponent<import("../../../core").ControlProps<JsonSchemaNumber<any>, NumberBaseProps, {}>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NumberBase = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
+
const uikit_1 = require("@gravity-ui/uikit");
|
|
7
|
+
const utils_1 = require("../../utils");
|
|
8
|
+
const Component = ({ controlProps, input, meta, schema, }) => {
|
|
9
|
+
var _a;
|
|
10
|
+
return (react_1.default.createElement(uikit_1.NumberInput, Object.assign({ allowDecimal: true, hiddenControls: true, hasClear: true, disabled: schema.readOnly }, controlProps, { value: input.value, defaultValue: schema.default, onBlur: input.onBlur, onFocus: input.onFocus, onUpdate: input.onChange, errorMessage: meta.error, validationState: (0, utils_1.getValidationState)(meta), placeholder: `${((_a = schema.examples) === null || _a === void 0 ? void 0 : _a[0]) || ''}`, qa: input.name })));
|
|
11
|
+
};
|
|
12
|
+
exports.NumberBase = react_1.default.memo(Component);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { NumberBase, type NumberBaseProps } from './Number';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type JsonSchemaObject } from '../../../core';
|
|
3
|
+
export interface ObjectBaseProps {
|
|
4
|
+
addButtonText?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
order?: string[];
|
|
7
|
+
}
|
|
8
|
+
export declare const ObjectBase: React.NamedExoticComponent<import("../../../core").ControlProps<JsonSchemaObject<any>, ObjectBaseProps, {}>>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ObjectBase = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
+
const icons_1 = require("@gravity-ui/icons");
|
|
7
|
+
const uikit_1 = require("@gravity-ui/uikit");
|
|
8
|
+
const core_1 = require("../../../core");
|
|
9
|
+
const components_1 = require("../../components");
|
|
10
|
+
const utils_1 = require("../../utils");
|
|
11
|
+
const Component = ({ controlProps, input, meta, schema, }) => {
|
|
12
|
+
const addButton = react_1.default.useMemo(() => {
|
|
13
|
+
const onClick = () => input.onChange(schema.default);
|
|
14
|
+
return (react_1.default.createElement(uikit_1.Button, { onClick: onClick, disabled: controlProps.disabled || schema.readOnly, qa: `${input.name}-add-button` },
|
|
15
|
+
react_1.default.createElement(uikit_1.Icon, { data: icons_1.Plus, size: 14 }),
|
|
16
|
+
controlProps.addButtonText || null));
|
|
17
|
+
}, [
|
|
18
|
+
controlProps.addButtonText,
|
|
19
|
+
controlProps.disabled,
|
|
20
|
+
input.onChange,
|
|
21
|
+
schema.default,
|
|
22
|
+
schema.readOnly,
|
|
23
|
+
]);
|
|
24
|
+
return (react_1.default.createElement(components_1.ControlError, { errorMessage: meta.error, validationState: (0, utils_1.getValidationState)(meta) },
|
|
25
|
+
react_1.default.createElement(uikit_1.Flex, { direction: "column", gap: 2 },
|
|
26
|
+
react_1.default.createElement(uikit_1.Flex, { direction: "column" },
|
|
27
|
+
(controlProps.order || Object.keys(schema.properties || {})).map((property) => {
|
|
28
|
+
var _a;
|
|
29
|
+
return (react_1.default.createElement(core_1.Entity, { name: `${input.name ? input.name + '.' : ''}${property}`, schema: (_a = schema.properties) === null || _a === void 0 ? void 0 : _a[property], key: property }));
|
|
30
|
+
}),
|
|
31
|
+
input.value ? null : addButton))));
|
|
32
|
+
};
|
|
33
|
+
exports.ObjectBase = react_1.default.memo(Component);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ObjectBase, type ObjectBaseProps } from './ObjectBase';
|