@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,26 @@
|
|
|
1
|
+
// import {ArrayLayoutProps, ObjectLayoutProps, isArrayItem} from '../../../../core';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { ErrorWrapper } from '../../kit/components';
|
|
4
|
+
// import {useErrorChecker} from '../../../hooks';
|
|
5
|
+
// import {RemoveButton} from '../../kit/components/RemoveButton';
|
|
6
|
+
import { SimpleVerticalAccordeon } from '../../kit/components/SimpleVerticalAccordeon';
|
|
7
|
+
export const Accordeon = ({ schema, input, meta, children, wrapperProps, }) => {
|
|
8
|
+
const [open, setOpen] = React.useState(Boolean(wrapperProps === null || wrapperProps === void 0 ? void 0 : wrapperProps.open));
|
|
9
|
+
// const onDrop = React.useCallback(() => {
|
|
10
|
+
// setOpen(false);
|
|
11
|
+
// input.onDrop();
|
|
12
|
+
// }, [input.onDrop, setOpen]);
|
|
13
|
+
// const removeButton = React.useMemo(() => {
|
|
14
|
+
// if (!isArrayItem(name) && (spec.required || !input.value)) {
|
|
15
|
+
// return null;
|
|
16
|
+
// }
|
|
17
|
+
// return <RemoveButton name={name} onDrop={onDrop} />;
|
|
18
|
+
// }, [spec.required, input.value, onDrop, name]);
|
|
19
|
+
// useErrorChecker({name, meta, open, setOpen});
|
|
20
|
+
return (React.createElement(SimpleVerticalAccordeon, { name: input.name, title: schema.title || '', note: schema.description || '', open: open, onOpenChange: setOpen,
|
|
21
|
+
// headerActionsTemplate={removeButton}
|
|
22
|
+
hideInsteadOfDestroy: true, withBranchView: true },
|
|
23
|
+
React.createElement(ErrorWrapper, { name: input.name, meta: meta,
|
|
24
|
+
// ff
|
|
25
|
+
withoutChildErrorStyles: true }, children)));
|
|
26
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Button } from '@gravity-ui/uikit';
|
|
3
|
+
import { Entity } from '../core';
|
|
4
|
+
export const AnyInput = ({ input, schema }) => {
|
|
5
|
+
var _a;
|
|
6
|
+
const [state, setState] = React.useState(true);
|
|
7
|
+
// React.useEffect(() => {
|
|
8
|
+
// input.onChange(undefined);
|
|
9
|
+
// }, []);
|
|
10
|
+
return (React.createElement(React.Fragment, null,
|
|
11
|
+
React.createElement(Entity, { name: `${input.name}.bla`, schema: (_a = schema.oneOf) === null || _a === void 0 ? void 0 : _a[state ? 0 : 1] }),
|
|
12
|
+
React.createElement(Button, { onClick: () => {
|
|
13
|
+
input.onChange(undefined);
|
|
14
|
+
setState(!state);
|
|
15
|
+
} }, "Toggle")));
|
|
16
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
.array-base_add-button-right {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: flex-end;
|
|
4
|
+
}
|
|
5
|
+
.array-base_add-button-right .transparent {
|
|
6
|
+
align-items: flex-end;
|
|
7
|
+
}
|
|
8
|
+
.array-base__items-wrapper_add-button-down {
|
|
9
|
+
margin-bottom: 15px;
|
|
10
|
+
}
|
|
11
|
+
.array-base__items-wrapper_items-primitive {
|
|
12
|
+
min-width: 100%;
|
|
13
|
+
}
|
|
14
|
+
.array-base__items-wrapper_items-primitive:empty {
|
|
15
|
+
min-width: unset;
|
|
16
|
+
}
|
|
17
|
+
.array-base__item-prefix {
|
|
18
|
+
margin-top: -7px;
|
|
19
|
+
margin-bottom: 8px;
|
|
20
|
+
}
|
|
21
|
+
.array-base__add-button_right {
|
|
22
|
+
margin-left: 4px;
|
|
23
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Plus } from '@gravity-ui/icons';
|
|
3
|
+
import { Button, Icon, Text } from '@gravity-ui/uikit';
|
|
4
|
+
// import {
|
|
5
|
+
// ArrayInput,
|
|
6
|
+
// ArrayValue,
|
|
7
|
+
// Controller,
|
|
8
|
+
// FieldArrayValue,
|
|
9
|
+
// FieldValue,
|
|
10
|
+
// OBJECT_ARRAY_CNT,
|
|
11
|
+
// OBJECT_ARRAY_FLAG,
|
|
12
|
+
// Spec,
|
|
13
|
+
// ValidateError,
|
|
14
|
+
// isBooleanSpec,
|
|
15
|
+
// isCorrectSpec,
|
|
16
|
+
// isNumberSpec,
|
|
17
|
+
// isStringSpec,
|
|
18
|
+
// transformArrIn,
|
|
19
|
+
// } from '../../../../core';
|
|
20
|
+
import { block } from '../../kit/utils';
|
|
21
|
+
import { Entity } from '../core';
|
|
22
|
+
import './ArrayBase.css';
|
|
23
|
+
const b = block('array-base');
|
|
24
|
+
export const ArrayBase = ({ input, schema, meta }) => {
|
|
25
|
+
// const keys = React.useMemo(
|
|
26
|
+
// () =>
|
|
27
|
+
// Object.keys(arrayInput.value || {})
|
|
28
|
+
// .filter((k) => k !== OBJECT_ARRAY_FLAG && k !== OBJECT_ARRAY_CNT)
|
|
29
|
+
// .map((k) => k.split('<').join('').split('>').join(''))
|
|
30
|
+
// .sort((a, b) => Number(a) - Number(b)),
|
|
31
|
+
// [arrayInput.value],
|
|
32
|
+
// );
|
|
33
|
+
// const itemSpecCorrect = React.useMemo(() => isCorrectSpec(spec.items), [spec.items]);
|
|
34
|
+
// const itemsPrimitive = React.useMemo(() => {
|
|
35
|
+
// return isBooleanSpec(spec.items) || isNumberSpec(spec.items) || isStringSpec(spec.items);
|
|
36
|
+
// }, [spec.items]);
|
|
37
|
+
const getItemSpec = React.useCallback((idx) => {
|
|
38
|
+
const itemSpec = Object.assign({}, schema.items);
|
|
39
|
+
// @ts-expect-error
|
|
40
|
+
itemSpec.title = itemSpec.title ? `${itemSpec.title} ${idx + 1}` : `${idx + 1}`;
|
|
41
|
+
return itemSpec;
|
|
42
|
+
}, [schema.items]);
|
|
43
|
+
// const parentOnChange = React.useCallback(
|
|
44
|
+
// (childName: string, childValue: FieldValue, childErrors?: Record<string, ValidateError>) =>
|
|
45
|
+
// input.onChange(
|
|
46
|
+
// (currentValue) =>
|
|
47
|
+
// set({...currentValue}, childName.split(`${input.name}.`).join(''), childValue),
|
|
48
|
+
// childErrors,
|
|
49
|
+
// ),
|
|
50
|
+
// [input.onChange, input.name],
|
|
51
|
+
// );
|
|
52
|
+
const AddButton = React.useCallback(() => {
|
|
53
|
+
let onClick = () => input.onChange([...(input.value || []), undefined]);
|
|
54
|
+
let qa = `${input.name}-add-item`;
|
|
55
|
+
let title = schema.title;
|
|
56
|
+
if (!input.value && schema.default) {
|
|
57
|
+
onClick = () => {
|
|
58
|
+
// input.onChange(transformArrIn<ArrayValue, FieldArrayValue>(spec.defaultValue!));
|
|
59
|
+
input.onChange(schema.default);
|
|
60
|
+
};
|
|
61
|
+
qa = `${name}-init-arr`;
|
|
62
|
+
title = schema.title;
|
|
63
|
+
}
|
|
64
|
+
return (React.createElement(Button, { onClick: onClick, disabled: schema.readOnly, qa: qa },
|
|
65
|
+
React.createElement(Icon, { data: Plus, size: 14 }),
|
|
66
|
+
title || null));
|
|
67
|
+
}, [
|
|
68
|
+
// arrayInput,
|
|
69
|
+
// input,
|
|
70
|
+
// name,
|
|
71
|
+
// spec.defaultValue,
|
|
72
|
+
// spec.viewSpec.disabled,
|
|
73
|
+
// spec.viewSpec.itemLabel,
|
|
74
|
+
// spec.viewSpec.layoutTitle,
|
|
75
|
+
// spec.viewSpec.addButtonPosition,
|
|
76
|
+
input,
|
|
77
|
+
schema,
|
|
78
|
+
]);
|
|
79
|
+
const items = React.useMemo(() => (input.value || []).map((_key, idx) => {
|
|
80
|
+
const itemSpec = getItemSpec(idx);
|
|
81
|
+
if (!itemSpec) {
|
|
82
|
+
return null;
|
|
83
|
+
}
|
|
84
|
+
// const showItemPrefix = idx !== 0 && spec.viewSpec.itemPrefix;
|
|
85
|
+
return (React.createElement(React.Fragment, { key: `${input.name}[${idx}]` },
|
|
86
|
+
React.createElement(Entity, { name: input.name + `[${idx}]`,
|
|
87
|
+
// @ts-expect-error
|
|
88
|
+
schema: itemSpec })));
|
|
89
|
+
}), [input, schema]);
|
|
90
|
+
// if (!itemSpecCorrect) {
|
|
91
|
+
// return null;
|
|
92
|
+
// }
|
|
93
|
+
return (React.createElement("div", { className: b() },
|
|
94
|
+
React.createElement("div", { className: b('items-wrapper') }, items),
|
|
95
|
+
React.createElement(AddButton, null),
|
|
96
|
+
meta.error ? React.createElement(Text, { color: "danger" }, meta.error) : null));
|
|
97
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { SelectProps as SelectBaseProps } from '@gravity-ui/uikit';
|
|
2
|
+
import type { Control, JsonSchemaArray } from '../core/types';
|
|
3
|
+
import './MultiSelect.css';
|
|
4
|
+
export interface MultiSelectProps extends Omit<SelectBaseProps, 'onUpdate' | 'value' | 'onOpenChange' | 'disabled' | 'placeholder' | 'filterPlaceholder' | 'multiple' | 'qa'> {
|
|
5
|
+
withCustomOptions?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const MultiSelect: Control<JsonSchemaArray>;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Select } from '@gravity-ui/uikit';
|
|
3
|
+
// import {ArrayInput, FieldArrayValue, transformArrIn, transformArrOut} from '../../../../core';
|
|
4
|
+
import { block } from '../../kit/utils';
|
|
5
|
+
import './MultiSelect.css';
|
|
6
|
+
const b = block('multi-select');
|
|
7
|
+
export const MultiSelect = ({ input, schema }) => {
|
|
8
|
+
var _a, _b;
|
|
9
|
+
const { name, value, onBlur, onChange, onFocus } = input;
|
|
10
|
+
const filterable = React.useMemo(() => { var _a; return (((_a = schema.enum) === null || _a === void 0 ? void 0 : _a.length) || 0) > 9; }, [(_a = schema.enum) === null || _a === void 0 ? void 0 : _a.length]);
|
|
11
|
+
// const {withCustomOptions, options: externalOptions} = inputProps || {};
|
|
12
|
+
const options = React.useMemo(() => {
|
|
13
|
+
var _a, _b;
|
|
14
|
+
// withCustomOptions
|
|
15
|
+
// ? externalOptions || []
|
|
16
|
+
// :
|
|
17
|
+
// @ts-expect-error
|
|
18
|
+
return (_b = (_a = schema.items) === null || _a === void 0 ? void 0 : _a.enum) === null || _b === void 0 ? void 0 : _b.map((id) => ({
|
|
19
|
+
id,
|
|
20
|
+
value: id,
|
|
21
|
+
text: id,
|
|
22
|
+
content: id,
|
|
23
|
+
key: id,
|
|
24
|
+
}));
|
|
25
|
+
}, [
|
|
26
|
+
schema.enum,
|
|
27
|
+
schema.description,
|
|
28
|
+
// spec.viewSpec.selectParams?.meta,
|
|
29
|
+
// externalOptions,
|
|
30
|
+
// withCustomOptions,
|
|
31
|
+
]);
|
|
32
|
+
const renderOption = React.useCallback((option) => {
|
|
33
|
+
return React.createElement(React.Fragment, { key: option.value }, option.content || option.value);
|
|
34
|
+
}, []);
|
|
35
|
+
const getOptionHeight = React.useCallback(() => {
|
|
36
|
+
// if (spec.viewSpec.selectParams?.meta) {
|
|
37
|
+
// return 44;
|
|
38
|
+
// }
|
|
39
|
+
return 28;
|
|
40
|
+
}, []);
|
|
41
|
+
const handleToggle = React.useCallback((open) => {
|
|
42
|
+
if (open) {
|
|
43
|
+
onFocus();
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
onBlur();
|
|
47
|
+
}
|
|
48
|
+
}, [onFocus, onBlur]);
|
|
49
|
+
// const _value = React.useMemo(() => transformArrOut<FieldArrayValue, string[]>(value), [value]);
|
|
50
|
+
// const handleChange = React.useCallback(
|
|
51
|
+
// (value: string[]) => onChange(transformArrIn<string[], FieldArrayValue>(value)),
|
|
52
|
+
// [onChange],
|
|
53
|
+
// );
|
|
54
|
+
return (React.createElement(Select, { width: "max", className: b(), filterable: filterable, renderOption: renderOption, getOptionHeight: getOptionHeight,
|
|
55
|
+
// {...inputProps}
|
|
56
|
+
// @ts-expect-error
|
|
57
|
+
value: value, options: options, onUpdate: onChange, onOpenChange: handleToggle, disabled: schema.readOnly,
|
|
58
|
+
// @ts-expect-error
|
|
59
|
+
placeholder: ((_b = schema.examples) === null || _b === void 0 ? void 0 : _b[0]) || '',
|
|
60
|
+
// filterPlaceholder={spec.viewSpec.selectParams?.filterPlaceholder}
|
|
61
|
+
multiple: true, qa: name }));
|
|
62
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Control, ControlProps, JsonSchemaObject } from '../core/types';
|
|
3
|
+
import './ObjectBase.css';
|
|
4
|
+
export interface ObjectBaseProps extends ControlProps<JsonSchemaObject> {
|
|
5
|
+
inline?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const ObjectBase: React.FC<ObjectBaseProps>;
|
|
8
|
+
export declare const ObjectInline: Control<JsonSchemaObject>;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Text } from '@gravity-ui/uikit';
|
|
3
|
+
// import {Button, Icon} from '@gravity-ui/uikit';
|
|
4
|
+
import isObjectLike from 'lodash/isObjectLike';
|
|
5
|
+
// import {block, filterPropertiesForObjectInline} from '../../../kit/utils';
|
|
6
|
+
import { block } from '../../kit/utils';
|
|
7
|
+
import { Entity } from '../core';
|
|
8
|
+
import './ObjectBase.css';
|
|
9
|
+
const b = block('object-base');
|
|
10
|
+
export const ObjectBase = ({ inline, schema, input, meta, Wrapper, wrapperProps, }) => {
|
|
11
|
+
// const addBtn = React.useMemo(
|
|
12
|
+
// () => (
|
|
13
|
+
// <Button
|
|
14
|
+
// onClick={() => input.onChange(schema.default || {})}
|
|
15
|
+
// disabled={schema.readOnly}
|
|
16
|
+
// qa={`${name}-init-obj`}
|
|
17
|
+
// >
|
|
18
|
+
// <Icon data={Plus} size={14} />
|
|
19
|
+
// {schema.title || null}
|
|
20
|
+
// </Button>
|
|
21
|
+
// ),
|
|
22
|
+
// [schema.default, schema.title, input.onChange],
|
|
23
|
+
// );
|
|
24
|
+
const content = React.useMemo(() => {
|
|
25
|
+
if (!schema.properties ||
|
|
26
|
+
!isObjectLike(schema.properties) ||
|
|
27
|
+
!Object.keys(schema.properties || {}).length) {
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
// if (!inline && !input.value) {
|
|
31
|
+
// return addBtn;
|
|
32
|
+
// }
|
|
33
|
+
// todo
|
|
34
|
+
// const specProperties = inline
|
|
35
|
+
// ? filterPropertiesForObjectInline(schema.properties)
|
|
36
|
+
// : schema.properties;
|
|
37
|
+
const specProperties = schema.properties;
|
|
38
|
+
// todo
|
|
39
|
+
// const delimiter = spec.viewSpec.delimiter;
|
|
40
|
+
// const orderProperties = spec.viewSpec.order?.length
|
|
41
|
+
// ? spec.viewSpec.order
|
|
42
|
+
// : Object.keys(specProperties);
|
|
43
|
+
const orderProperties = Object.keys(specProperties);
|
|
44
|
+
return (React.createElement("div", { className: b('content', { inline }) }, orderProperties.map((property) => specProperties[property] ? (React.createElement(React.Fragment, { key: `${input.name ? input.name + '.' : ''}${property}` },
|
|
45
|
+
React.createElement(Entity, { schema: specProperties[property], name: `${input.name ? input.name + '.' : ''}${property}` }))) : null)));
|
|
46
|
+
}, [
|
|
47
|
+
schema.properties,
|
|
48
|
+
// spec.viewSpec.delimiter,
|
|
49
|
+
// spec.viewSpec.order,
|
|
50
|
+
// input.value,
|
|
51
|
+
inline,
|
|
52
|
+
// addBtn,
|
|
53
|
+
input.name,
|
|
54
|
+
]);
|
|
55
|
+
if (!Wrapper || !content) {
|
|
56
|
+
return content;
|
|
57
|
+
}
|
|
58
|
+
return (
|
|
59
|
+
// @ts-expect-error
|
|
60
|
+
React.createElement(Wrapper, { schema: schema, input: input, meta: meta, wrapperProps: wrapperProps },
|
|
61
|
+
content,
|
|
62
|
+
meta.error ? React.createElement(Text, { color: "danger" }, meta.error) : null));
|
|
63
|
+
};
|
|
64
|
+
export const ObjectInline = (props) => {
|
|
65
|
+
return React.createElement(ObjectBase, Object.assign({}, props, { inline: true }));
|
|
66
|
+
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
.row {
|
|
2
|
+
display: flex;
|
|
3
|
+
width: 500px;
|
|
4
|
+
max-width: 500px;
|
|
5
|
+
margin-bottom: 15px;
|
|
6
|
+
}
|
|
7
|
+
.row:last-child {
|
|
8
|
+
margin-bottom: 0;
|
|
9
|
+
}
|
|
10
|
+
.row__left {
|
|
11
|
+
width: 180px;
|
|
12
|
+
min-height: 28px;
|
|
13
|
+
display: flex;
|
|
14
|
+
margin-bottom: auto;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
flex-shrink: 0;
|
|
17
|
+
}
|
|
18
|
+
.row__left-inner {
|
|
19
|
+
display: inline;
|
|
20
|
+
margin-top: auto;
|
|
21
|
+
margin-bottom: auto;
|
|
22
|
+
}
|
|
23
|
+
.row__left::after {
|
|
24
|
+
content: "";
|
|
25
|
+
width: 100%;
|
|
26
|
+
flex-shrink: 1;
|
|
27
|
+
}
|
|
28
|
+
.row__title {
|
|
29
|
+
word-break: break-word;
|
|
30
|
+
margin-right: 3px;
|
|
31
|
+
}
|
|
32
|
+
.row__title_required::after {
|
|
33
|
+
content: "*";
|
|
34
|
+
color: var(--g-color-text-danger);
|
|
35
|
+
}
|
|
36
|
+
.row__note {
|
|
37
|
+
padding-right: 16px;
|
|
38
|
+
position: relative;
|
|
39
|
+
}
|
|
40
|
+
.row__note-inner {
|
|
41
|
+
position: absolute;
|
|
42
|
+
margin-top: 1px;
|
|
43
|
+
}
|
|
44
|
+
.row__note-inner .g-help-popover {
|
|
45
|
+
display: flex;
|
|
46
|
+
}
|
|
47
|
+
.row__note-inner .g-help-popover > span {
|
|
48
|
+
display: flex;
|
|
49
|
+
}
|
|
50
|
+
.row__right {
|
|
51
|
+
display: flex;
|
|
52
|
+
flex-direction: column;
|
|
53
|
+
flex-grow: 1;
|
|
54
|
+
margin-left: 15px;
|
|
55
|
+
}
|
|
56
|
+
.row__right-inner {
|
|
57
|
+
display: flex;
|
|
58
|
+
justify-content: space-around;
|
|
59
|
+
}
|
|
60
|
+
.row__description {
|
|
61
|
+
margin-top: 10px;
|
|
62
|
+
color: var(--g-color-text-secondary);
|
|
63
|
+
word-break: break-word;
|
|
64
|
+
}
|
|
65
|
+
.row__remove-button {
|
|
66
|
+
margin-left: 5px;
|
|
67
|
+
}
|
|
68
|
+
.row__required-mark {
|
|
69
|
+
color: var(--g-color-text-danger);
|
|
70
|
+
}
|
|
71
|
+
.row__error-wrapper {
|
|
72
|
+
min-width: 100%;
|
|
73
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { JsonSchema, WrapperProps } from '../core/types';
|
|
3
|
+
import './Row.css';
|
|
4
|
+
export declare const Row: React.MemoExoticComponent<(<Schema extends JsonSchema>(props: WrapperProps<Schema, {
|
|
5
|
+
qtest: boolean;
|
|
6
|
+
qwa?: string;
|
|
7
|
+
}>) => React.JSX.Element)>;
|
|
8
|
+
export declare const RowVerbose: React.MemoExoticComponent<(<Schema extends JsonSchema>(props: WrapperProps<Schema, {
|
|
9
|
+
qtest: boolean;
|
|
10
|
+
qwa?: string;
|
|
11
|
+
}>) => React.JSX.Element)>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// import {TrashBin} from '@gravity-ui/icons';
|
|
2
|
+
// import {Button, Icon, Text} from '@gravity-ui/uikit';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { HelpMark, Text } from '@gravity-ui/uikit';
|
|
5
|
+
// import // StringSpec,
|
|
6
|
+
// isArrayItem,
|
|
7
|
+
// isArraySpec,
|
|
8
|
+
// isObjectSpec,
|
|
9
|
+
// withGenerateButton,
|
|
10
|
+
// from '../../../';
|
|
11
|
+
// import {ErrorWrapper, GenerateRandomValueButton} from '../../../kit/components';
|
|
12
|
+
import { COMMON_POPOVER_PLACEMENT } from '../../../lib/kit/constants/common';
|
|
13
|
+
import { ErrorWrapper } from '../../kit/components';
|
|
14
|
+
import { block } from '../../kit/utils';
|
|
15
|
+
import './Row.css';
|
|
16
|
+
const b = block('row');
|
|
17
|
+
const RowBase = ({ schema, input, meta, verboseDescription, wrapperProps, children, }) => {
|
|
18
|
+
// const arrayItem = React.useMemo(() => isArrayItem(name), [name]);
|
|
19
|
+
// const generateButton = React.useMemo(() => withGenerateButton(spec), [spec]);
|
|
20
|
+
return (React.createElement("div", { className: b() },
|
|
21
|
+
React.createElement("div", { className: b('left') },
|
|
22
|
+
React.createElement("div", { className: b('left-inner') },
|
|
23
|
+
React.createElement(Text, { className: b('title', {
|
|
24
|
+
required: wrapperProps === null || wrapperProps === void 0 ? void 0 : wrapperProps.required,
|
|
25
|
+
}) }, schema.title),
|
|
26
|
+
!verboseDescription && schema.description ? (React.createElement("span", { className: b('note') },
|
|
27
|
+
React.createElement(Text, { className: b('note-inner') },
|
|
28
|
+
React.createElement(HelpMark, { popoverProps: {
|
|
29
|
+
placement: COMMON_POPOVER_PLACEMENT,
|
|
30
|
+
} }, schema.description)))) : null)),
|
|
31
|
+
React.createElement("div", { className: b('right') },
|
|
32
|
+
React.createElement("div", { className: b('right-inner') },
|
|
33
|
+
React.createElement(ErrorWrapper, { name: input.name,
|
|
34
|
+
// @ts-expect-error
|
|
35
|
+
meta: meta,
|
|
36
|
+
// withoutChildErrorStyles={
|
|
37
|
+
// // TODO: remove condition spec.viewSpec.type !== 'select'
|
|
38
|
+
// (isArraySpec(spec) && spec.viewSpec.type !== 'select') ||
|
|
39
|
+
// isObjectSpec(spec)
|
|
40
|
+
// }
|
|
41
|
+
className: b('error-wrapper'), ff: true }, children)),
|
|
42
|
+
verboseDescription && schema.description ? (React.createElement("div", { className: b('description'), dangerouslySetInnerHTML: { __html: schema.description } })) : null)));
|
|
43
|
+
};
|
|
44
|
+
const RowComponent = (props) => React.createElement(RowBase, Object.assign({}, props));
|
|
45
|
+
export const Row = React.memo(RowComponent);
|
|
46
|
+
const RowVerboseComponent = (props) => React.createElement(RowBase, Object.assign({ verboseDescription: true }, props));
|
|
47
|
+
export const RowVerbose = React.memo(RowVerboseComponent);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type TextInputProps as TextInputBaseProps } from '@gravity-ui/uikit';
|
|
3
|
+
import type { ControlProps, JsonSchemaNumber, JsonSchemaString } from '../core/types';
|
|
4
|
+
export interface TextProps extends Omit<TextInputBaseProps, 'value' | 'onBlur' | 'onFocus' | 'onUpdate' | 'disabled' | 'placeholder' | 'qa'> {
|
|
5
|
+
}
|
|
6
|
+
export declare const Text: React.MemoExoticComponent<(<T extends ControlProps<JsonSchemaNumber, TextProps> | ControlProps<JsonSchemaString, TextProps>>({ input, meta, schema, }: T) => React.JSX.Element)>;
|