@gravity-ui/dynamic-forms 5.19.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/index.d.ts +2 -0
- package/build/cjs/lib/unstable/core/Entity/types.d.ts +27 -0
- package/build/cjs/lib/unstable/core/Entity/utils.d.ts +3 -0
- package/build/cjs/lib/unstable/core/SchemaRenderer/SchemaRenderer.d.ts +5 -0
- package/build/cjs/lib/unstable/core/SchemaRenderer/index.d.ts +1 -0
- package/build/cjs/lib/unstable/core/constants.d.ts +22 -0
- package/build/cjs/lib/unstable/core/index.d.ts +5 -0
- package/build/cjs/lib/unstable/core/types/components.d.ts +29 -0
- package/build/cjs/lib/unstable/core/types/config.d.ts +36 -0
- package/build/cjs/lib/unstable/core/types/helpers.d.ts +18 -0
- package/build/cjs/lib/unstable/core/types/index.d.ts +5 -0
- package/build/cjs/lib/unstable/core/types/schema.d.ts +1186 -0
- package/build/cjs/lib/unstable/core/types/validation.d.ts +39 -0
- package/build/cjs/lib/unstable/core/types/values.d.ts +4 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/constants.d.ts +1 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/hooks/index.d.ts +2 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/hooks/useEntitiesState.d.ts +7 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/hooks/useSchemaRendererMutators.d.ts +10 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/index.d.ts +3 -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/index.d.ts +2 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/async-validation/types.d.ts +34 -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/index.d.ts +2 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/external-errors/types.d.ts +25 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/index.d.ts +13 -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/schema-mutators.d.ts +3 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/schema-mutators/types.d.ts +26 -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/trigger-fields.d.ts +2 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/trigger-fields/types.d.ts +6 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/types.d.ts +22 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/useSchemaRenderer.d.ts +37 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/common.d.ts +1 -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-validate.d.ts +14 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/index.d.ts +2 -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-validate-errors.d.ts +20 -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-errors-state.d.ts +12 -0
- package/build/cjs/lib/unstable/core/utils/common.d.ts +49 -0
- package/build/cjs/lib/unstable/core/utils/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/Accordeon.d.ts +3 -0
- package/build/cjs/lib/unstable/kit/Any.d.ts +2 -0
- package/build/cjs/lib/unstable/kit/ArrayBase.d.ts +2 -0
- package/build/cjs/lib/unstable/kit/MultiSelect.d.ts +6 -0
- package/build/cjs/lib/unstable/kit/ObjectBase.d.ts +7 -0
- package/build/cjs/lib/unstable/kit/Row.d.ts +10 -0
- package/build/cjs/lib/unstable/kit/Text.d.ts +6 -0
- package/build/cjs/lib/unstable/kit/components/ArrayRemoveButton/ArrayRemoveButton.d.ts +5 -0
- package/build/cjs/lib/unstable/kit/components/ArrayRemoveButton/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/components/ControlError/ControlError.d.ts +8 -0
- package/build/cjs/lib/unstable/kit/components/ControlError/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/components/HTMLContent/HTMLContent.d.ts +6 -0
- package/build/cjs/lib/unstable/kit/components/HTMLContent/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/components/index.d.ts +3 -0
- package/build/cjs/lib/unstable/kit/config.d.ts +95 -0
- package/build/cjs/lib/unstable/kit/constants/config.d.ts +112 -0
- package/build/cjs/lib/unstable/kit/constants/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/ArrayBase/ArrayBase.d.ts +8 -0
- package/build/cjs/lib/unstable/kit/controls/ArrayBase/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/Checkbox/Checkbox.d.ts +6 -0
- package/build/cjs/lib/unstable/kit/controls/Checkbox/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/CheckboxGroup/CheckboxGroup.d.ts +9 -0
- package/build/cjs/lib/unstable/kit/controls/CheckboxGroup/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/ColorPicker/ColorPicker.d.ts +6 -0
- package/build/cjs/lib/unstable/kit/controls/ColorPicker/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/DateInput/DateInput.d.ts +8 -0
- package/build/cjs/lib/unstable/kit/controls/DateInput/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/MultiSelect/MultiSelect.d.ts +8 -0
- package/build/cjs/lib/unstable/kit/controls/MultiSelect/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/NumberBase/Number.d.ts +6 -0
- package/build/cjs/lib/unstable/kit/controls/NumberBase/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/ObjectBase/ObjectBase.d.ts +8 -0
- package/build/cjs/lib/unstable/kit/controls/ObjectBase/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/Password/Password.d.ts +6 -0
- package/build/cjs/lib/unstable/kit/controls/Password/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/RadioGroup/RadioGroup.d.ts +8 -0
- package/build/cjs/lib/unstable/kit/controls/RadioGroup/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/RangeSlider/RangeSlider.d.ts +7 -0
- package/build/cjs/lib/unstable/kit/controls/RangeSlider/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/Select/Select.d.ts +9 -0
- package/build/cjs/lib/unstable/kit/controls/Select/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/Slider/Slider.d.ts +6 -0
- package/build/cjs/lib/unstable/kit/controls/Slider/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/StringBase/StringBase.d.ts +6 -0
- package/build/cjs/lib/unstable/kit/controls/StringBase/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/Switch/Switch.d.ts +6 -0
- package/build/cjs/lib/unstable/kit/controls/Switch/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/TextArea/TextArea.d.ts +6 -0
- package/build/cjs/lib/unstable/kit/controls/TextArea/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/index.d.ts +16 -0
- package/build/cjs/lib/unstable/kit/utils/cn.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/utils/common.d.ts +7 -0
- package/build/cjs/lib/unstable/kit/utils/index.d.ts +2 -0
- package/build/cjs/lib/unstable/kit/wrappers/Row/Row.d.ts +6 -0
- package/build/cjs/lib/unstable/kit/wrappers/Row/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/wrappers/Transparent/Transparent.d.ts +3 -0
- package/build/cjs/lib/unstable/kit/wrappers/Transparent/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/wrappers/index.d.ts +2 -0
- package/build/cjs/unstable.d.ts +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { FormValue, Spec } from '../../../types';
|
|
2
|
+
export declare const isCorrectConfig: (candidate: any) => boolean;
|
|
3
|
+
export declare const transformArrIn: <Type extends FormValue, ReturnType extends FormValue = Type>(value: Type) => ReturnType;
|
|
4
|
+
export declare const transformArrOut: <Type extends FormValue, ReturnType extends FormValue = Type>(value: Type) => ReturnType;
|
|
5
|
+
export declare const isArrayItem: (name: string) => boolean;
|
|
6
|
+
export declare const withGenerateButton: (spec: Spec) => boolean | undefined;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { MonacoEditorProps } from 'react-monaco-editor/lib/types';
|
|
3
|
+
import type { FormValue, Spec } from '../../types';
|
|
4
|
+
import type { DynamicViewConfig } from './types';
|
|
5
|
+
export interface DynamicViewProps {
|
|
6
|
+
value: FormValue;
|
|
7
|
+
spec: Spec;
|
|
8
|
+
config: DynamicViewConfig;
|
|
9
|
+
Link?: React.ComponentType<{
|
|
10
|
+
value: FormValue;
|
|
11
|
+
link: Spec['viewSpec']['link'];
|
|
12
|
+
}>;
|
|
13
|
+
Monaco?: React.ComponentType<MonacoEditorProps>;
|
|
14
|
+
showLayoutDescription?: boolean;
|
|
15
|
+
shared?: Record<string, any>;
|
|
16
|
+
}
|
|
17
|
+
export declare const DynamicView: ({ value, spec, config, Link, Monaco, showLayoutDescription, shared: externalShared, }: DynamicViewProps) => React.JSX.Element | null;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Spec } from '../../types';
|
|
3
|
+
export interface ViewControllerProps<SpecType extends Spec> {
|
|
4
|
+
spec: SpecType;
|
|
5
|
+
name: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const ViewController: <SpecType extends Spec>({ spec, name, }: ViewControllerProps<SpecType>) => React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isCorrectViewConfig: (candidate: any) => boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { FormValue, Spec } from '../../../types';
|
|
2
|
+
import type { DynamicViewConfig, IndependentViewEntity, ViewEntity, ViewLayoutType } from '../types';
|
|
3
|
+
export declare const useComponents: <Value extends FormValue, SpecType extends Spec>(spec: SpecType, config: DynamicViewConfig) => {
|
|
4
|
+
viewEntity: ViewEntity<Value, SpecType> | IndependentViewEntity<Value, SpecType> | undefined;
|
|
5
|
+
Layout: ViewLayoutType<Value, SpecType> | undefined;
|
|
6
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useDynamicFormsCtx: () => import("..").DynamicViewContext;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useMonaco: () => import("react").ComponentType<import("react-monaco-editor").MonacoEditorProps> | undefined;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { FormValue, Spec } from '../../../types';
|
|
3
|
+
import type { IndependentViewEntity, ViewEntity, ViewLayoutType } from '../types';
|
|
4
|
+
export interface UseRenderParams<Value extends FormValue, SpecType extends Spec> {
|
|
5
|
+
value: Value;
|
|
6
|
+
name: string;
|
|
7
|
+
spec: SpecType;
|
|
8
|
+
viewEntity?: ViewEntity<Value, SpecType> | IndependentViewEntity<Value, SpecType>;
|
|
9
|
+
Layout?: ViewLayoutType<Value, SpecType>;
|
|
10
|
+
Link?: React.ComponentType<{
|
|
11
|
+
value: Value;
|
|
12
|
+
link: SpecType['viewSpec']['link'];
|
|
13
|
+
}>;
|
|
14
|
+
}
|
|
15
|
+
export declare const useRender: <Value extends FormValue, SpecType extends Spec>({ value, name, spec, viewEntity, Layout, Link, }: UseRenderParams<Value, SpecType>) => React.JSX.Element | null;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ArraySpec, ArrayValue } from '../../../types';
|
|
2
|
+
import type { IndependentViewEntity, IndependentViewProps, IndependentViewType, ViewEntity, ViewLayoutProps, ViewLayoutType, ViewLayoutsMap, ViewProps, ViewType, ViewTypeConfig, ViewsMap } from './';
|
|
3
|
+
export type ArrayViewProps = ViewProps<ArrayValue, ArraySpec>;
|
|
4
|
+
export type ArrayIndependentViewProps = IndependentViewProps<ArrayValue, ArraySpec>;
|
|
5
|
+
export type ArrayViewLayoutProps = ViewLayoutProps<ArrayValue, ArraySpec>;
|
|
6
|
+
export type ArrayView = ViewType<ArrayValue, ArraySpec>;
|
|
7
|
+
export type ArrayIndependentView = IndependentViewType<ArrayValue, ArraySpec>;
|
|
8
|
+
export type ArrayViewLayout = ViewLayoutType<ArrayValue, ArraySpec>;
|
|
9
|
+
export type ArrayViewEntity = ViewEntity<ArrayValue, ArraySpec>;
|
|
10
|
+
export type ArrayIndependentViewEntity = IndependentViewEntity<ArrayValue, ArraySpec>;
|
|
11
|
+
export type ArrayViewsMap = ViewsMap<ArrayValue, ArraySpec>;
|
|
12
|
+
export type ArrayViewLayoutsMap = ViewLayoutsMap<ArrayValue, ArraySpec>;
|
|
13
|
+
export type ArrayViewConfig = ViewTypeConfig<ArrayValue, ArraySpec>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { BooleanSpec } from '../../../types';
|
|
2
|
+
import type { IndependentViewEntity, IndependentViewProps, IndependentViewType, ViewEntity, ViewLayoutProps, ViewLayoutType, ViewLayoutsMap, ViewProps, ViewType, ViewTypeConfig, ViewsMap } from './';
|
|
3
|
+
export type BooleanViewProps = ViewProps<boolean, BooleanSpec>;
|
|
4
|
+
export type BooleanIndependentViewProps = IndependentViewProps<boolean, BooleanSpec>;
|
|
5
|
+
export type BooleanViewLayoutProps = ViewLayoutProps<boolean, BooleanSpec>;
|
|
6
|
+
export type BooleanView = ViewType<boolean, BooleanSpec>;
|
|
7
|
+
export type BooleanIndependentView = IndependentViewType<boolean, BooleanSpec>;
|
|
8
|
+
export type BooleanViewLayout = ViewLayoutType<boolean, BooleanSpec>;
|
|
9
|
+
export type BooleanViewEntity = ViewEntity<boolean, BooleanSpec>;
|
|
10
|
+
export type BooleanIndependentViewEntity = IndependentViewEntity<boolean, BooleanSpec>;
|
|
11
|
+
export type BooleanViewsMap = ViewsMap<boolean, BooleanSpec>;
|
|
12
|
+
export type BooleanViewLayoutsMap = ViewLayoutsMap<boolean, BooleanSpec>;
|
|
13
|
+
export type BooleanViewConfig = ViewTypeConfig<boolean, BooleanSpec>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { FormValue, Spec } from '../../../types';
|
|
2
|
+
import type { ArrayViewConfig, BooleanViewConfig, NumberViewConfig, ObjectViewConfig, StringViewConfig, ViewLayoutsMap, ViewsMap } from './';
|
|
3
|
+
export interface ViewTypeConfig<Value extends FormValue, SpecType extends Spec> {
|
|
4
|
+
views: ViewsMap<Value, SpecType>;
|
|
5
|
+
layouts: ViewLayoutsMap<Value, SpecType>;
|
|
6
|
+
}
|
|
7
|
+
export interface DynamicViewConfig {
|
|
8
|
+
array: ArrayViewConfig;
|
|
9
|
+
boolean: BooleanViewConfig;
|
|
10
|
+
number: NumberViewConfig;
|
|
11
|
+
object: ObjectViewConfig;
|
|
12
|
+
string: StringViewConfig;
|
|
13
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { MonacoEditorProps } from 'react-monaco-editor/lib/types';
|
|
3
|
+
import type { FormValue, Spec } from '../../../types';
|
|
4
|
+
import type { DynamicViewConfig } from './';
|
|
5
|
+
export interface DynamicViewContext {
|
|
6
|
+
config: DynamicViewConfig;
|
|
7
|
+
value: FormValue;
|
|
8
|
+
showLayoutDescription?: boolean;
|
|
9
|
+
Link?: React.ComponentType<{
|
|
10
|
+
value: FormValue;
|
|
11
|
+
link: Spec['viewSpec']['link'];
|
|
12
|
+
}>;
|
|
13
|
+
Monaco?: React.ComponentType<MonacoEditorProps>;
|
|
14
|
+
shared: {
|
|
15
|
+
store: Record<string, any>;
|
|
16
|
+
onChangeShared: (name: string, value: any) => void;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { FormValue, Spec } from '../../../';
|
|
3
|
+
import type { ViewProps } from './';
|
|
4
|
+
export type ViewLayoutProps<Value extends FormValue, SpecType extends Spec<undefined, undefined, Record<string, any> | undefined> = Spec> = {
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
} & ViewProps<Value, SpecType>;
|
|
7
|
+
export type ViewLayoutType<Value extends FormValue, SpecType extends Spec> = (props: ViewLayoutProps<Value, SpecType>) => React.ReactNode | Promise<React.ReactNode>;
|
|
8
|
+
export type ViewLayoutsMap<Value extends FormValue, SpecType extends Spec> = Record<string, ViewLayoutType<Value, SpecType> | undefined>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { NumberSpec } from '../../../types';
|
|
2
|
+
import type { IndependentViewEntity, IndependentViewProps, IndependentViewType, ViewEntity, ViewLayoutProps, ViewLayoutType, ViewLayoutsMap, ViewProps, ViewType, ViewTypeConfig, ViewsMap } from './';
|
|
3
|
+
export type NumberViewProps = ViewProps<number, NumberSpec>;
|
|
4
|
+
export type NumberIndependentViewProps = IndependentViewProps<number, NumberSpec>;
|
|
5
|
+
export type NumberViewLayoutProps = ViewLayoutProps<number, NumberSpec>;
|
|
6
|
+
export type NumberView = ViewType<number, NumberSpec>;
|
|
7
|
+
export type NumberIndependentView = IndependentViewType<number, NumberSpec>;
|
|
8
|
+
export type NumberViewLayout = ViewLayoutType<number, NumberSpec>;
|
|
9
|
+
export type NumberViewEntity = ViewEntity<number, NumberSpec>;
|
|
10
|
+
export type NumberIndependentViewEntity = IndependentViewEntity<number, NumberSpec>;
|
|
11
|
+
export type NumberViewsMap = ViewsMap<number, NumberSpec>;
|
|
12
|
+
export type NumberViewLayoutsMap = ViewLayoutsMap<number, NumberSpec>;
|
|
13
|
+
export type NumberViewConfig = ViewTypeConfig<number, NumberSpec>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ObjectSpec, ObjectValue } from '../../../types';
|
|
2
|
+
import type { IndependentViewEntity, IndependentViewProps, IndependentViewType, ViewEntity, ViewLayoutProps, ViewLayoutType, ViewLayoutsMap, ViewProps, ViewType, ViewTypeConfig, ViewsMap } from './';
|
|
3
|
+
export type ObjectViewProps = ViewProps<ObjectValue, ObjectSpec>;
|
|
4
|
+
export type ObjectIndependentViewProps = IndependentViewProps<ObjectValue, ObjectSpec>;
|
|
5
|
+
export type ObjectViewLayoutProps = ViewLayoutProps<ObjectValue, ObjectSpec>;
|
|
6
|
+
export type ObjectView = ViewType<ObjectValue, ObjectSpec>;
|
|
7
|
+
export type ObjectIndependentView = IndependentViewType<ObjectValue, ObjectSpec>;
|
|
8
|
+
export type ObjectViewLayout = ViewLayoutType<ObjectValue, ObjectSpec>;
|
|
9
|
+
export type ObjectViewEntity = ViewEntity<ObjectValue, ObjectSpec>;
|
|
10
|
+
export type ObjectIndependentViewEntity = IndependentViewEntity<ObjectValue, ObjectSpec>;
|
|
11
|
+
export type ObjectViewsMap = ViewsMap<ObjectValue, ObjectSpec>;
|
|
12
|
+
export type ObjectViewLayoutsMap = ViewLayoutsMap<ObjectValue, ObjectSpec>;
|
|
13
|
+
export type ObjectViewConfig = ViewTypeConfig<ObjectValue, ObjectSpec>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { StringSpec } from '../../../types';
|
|
2
|
+
import type { IndependentViewEntity, IndependentViewProps, IndependentViewType, ViewEntity, ViewLayoutProps, ViewLayoutType, ViewLayoutsMap, ViewProps, ViewType, ViewTypeConfig, ViewsMap } from './';
|
|
3
|
+
export type StringViewProps = ViewProps<string, StringSpec>;
|
|
4
|
+
export type StringIndependentViewProps = IndependentViewProps<string, StringSpec>;
|
|
5
|
+
export type StringViewLayoutProps = ViewLayoutProps<string, StringSpec>;
|
|
6
|
+
export type StringView = ViewType<string, StringSpec>;
|
|
7
|
+
export type StringIndependentView = IndependentViewType<string, StringSpec>;
|
|
8
|
+
export type StringViewLayout = ViewLayoutType<string, StringSpec>;
|
|
9
|
+
export type StringViewEntity = ViewEntity<string, StringSpec>;
|
|
10
|
+
export type StringIndependentViewEntity = IndependentViewEntity<string, StringSpec>;
|
|
11
|
+
export type StringViewsMap = ViewsMap<string, StringSpec>;
|
|
12
|
+
export type StringViewLayoutsMap = ViewLayoutsMap<string, StringSpec>;
|
|
13
|
+
export type StringViewConfig = ViewTypeConfig<string, StringSpec>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { FormValue, Spec } from '../../../';
|
|
3
|
+
import type { ViewLayoutType } from './';
|
|
4
|
+
export type ViewProps<Value extends FormValue, SpecType extends Spec<undefined, undefined, Record<string, any> | undefined> = Spec> = {
|
|
5
|
+
spec: SpecType;
|
|
6
|
+
name: string;
|
|
7
|
+
value?: Value;
|
|
8
|
+
linkValue?: React.ReactElement;
|
|
9
|
+
};
|
|
10
|
+
export type IndependentViewProps<Value extends FormValue, SpecType extends Spec> = {
|
|
11
|
+
Layout: ViewLayoutType<Value, SpecType> | undefined;
|
|
12
|
+
} & ViewProps<Value, SpecType>;
|
|
13
|
+
export type ViewType<Value extends FormValue, SpecType extends Spec> = (props: ViewProps<Value, SpecType>) => React.ReactNode | Promise<React.ReactNode>;
|
|
14
|
+
export type IndependentViewType<Value extends FormValue, SpecType extends Spec> = (props: IndependentViewProps<Value, SpecType>) => React.ReactNode | Promise<React.ReactNode>;
|
|
15
|
+
export type ViewEntity<Value extends FormValue, SpecType extends Spec> = {
|
|
16
|
+
Component: ViewType<Value, SpecType>;
|
|
17
|
+
independent?: false;
|
|
18
|
+
};
|
|
19
|
+
export type IndependentViewEntity<Value extends FormValue, SpecType extends Spec> = {
|
|
20
|
+
Component: IndependentViewType<Value, SpecType>;
|
|
21
|
+
independent: true;
|
|
22
|
+
};
|
|
23
|
+
export type ViewsMap<Value extends FormValue, SpecType extends Spec> = Record<string, ViewEntity<Value, SpecType> | IndependentViewEntity<Value, SpecType> | undefined>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ArraySpec, BooleanSpec, NumberSpec, ObjectSpec, StringSpec } from './types';
|
|
2
|
+
export declare const isCorrectSpec: (candidate: any) => boolean;
|
|
3
|
+
export declare const isArraySpec: (candidate: any) => candidate is ArraySpec;
|
|
4
|
+
export declare const isBooleanSpec: (candidate: any) => candidate is BooleanSpec;
|
|
5
|
+
export declare const isNumberSpec: (candidate: any) => candidate is NumberSpec;
|
|
6
|
+
export declare const isObjectSpec: (candidate: any) => candidate is ObjectSpec;
|
|
7
|
+
export declare const isStringSpec: (candidate: any) => candidate is StringSpec;
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import type { AlertProps, ButtonSize, LabelProps, TextProps } from '@gravity-ui/uikit';
|
|
2
|
+
import type { ReadAsMethod, SpecTypes } from '../constants';
|
|
3
|
+
import type { ArrayValue, ObjectValue } from './';
|
|
4
|
+
export interface ArraySpec<LinkType = any, InputComponentProps extends Record<string, any> | undefined = undefined, LayoutComponentProps extends Record<string, any> | undefined = undefined> {
|
|
5
|
+
defaultValue?: ArrayValue;
|
|
6
|
+
type: SpecTypes.Array;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
maxLength?: bigint;
|
|
9
|
+
minLength?: bigint;
|
|
10
|
+
items?: Spec;
|
|
11
|
+
enum?: string[];
|
|
12
|
+
description?: Record<string, string>;
|
|
13
|
+
validator?: string;
|
|
14
|
+
viewSpec: {
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
type: string;
|
|
17
|
+
layout?: string;
|
|
18
|
+
layoutTitle?: string;
|
|
19
|
+
layoutDescription?: string;
|
|
20
|
+
layoutOpen?: boolean;
|
|
21
|
+
itemLabel?: string;
|
|
22
|
+
itemPrefix?: string;
|
|
23
|
+
table?: {
|
|
24
|
+
label: string;
|
|
25
|
+
property: string;
|
|
26
|
+
description?: string;
|
|
27
|
+
width?: number;
|
|
28
|
+
}[];
|
|
29
|
+
link?: LinkType;
|
|
30
|
+
placeholder?: string;
|
|
31
|
+
addButtonPosition?: 'down' | 'right';
|
|
32
|
+
hidden?: boolean;
|
|
33
|
+
selectParams?: {
|
|
34
|
+
filterPlaceholder?: string;
|
|
35
|
+
meta?: Record<string, string>;
|
|
36
|
+
};
|
|
37
|
+
inputProps?: InputComponentProps;
|
|
38
|
+
layoutProps?: LayoutComponentProps;
|
|
39
|
+
checkboxGroupParams?: {
|
|
40
|
+
placement?: 'horizontal' | 'vertical';
|
|
41
|
+
disabled?: Record<string, boolean>;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export interface BooleanSpec<LinkType = any, InputComponentProps extends Record<string, any> | undefined = undefined, LayoutComponentProps extends Record<string, any> | undefined = undefined> {
|
|
46
|
+
defaultValue?: boolean;
|
|
47
|
+
type: SpecTypes.Boolean;
|
|
48
|
+
required?: boolean;
|
|
49
|
+
validator?: string;
|
|
50
|
+
viewSpec: {
|
|
51
|
+
disabled?: boolean;
|
|
52
|
+
type: string;
|
|
53
|
+
layout?: string;
|
|
54
|
+
layoutTitle?: string;
|
|
55
|
+
layoutDescription?: string;
|
|
56
|
+
layoutOpen?: boolean;
|
|
57
|
+
link?: LinkType;
|
|
58
|
+
hidden?: boolean;
|
|
59
|
+
inputProps?: InputComponentProps;
|
|
60
|
+
layoutProps?: LayoutComponentProps;
|
|
61
|
+
viewColor?: {
|
|
62
|
+
true: TextProps['color'];
|
|
63
|
+
false: TextProps['color'];
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
export interface NumberSpec<LinkType = any, InputComponentProps extends Record<string, any> | undefined = undefined, LayoutComponentProps extends Record<string, any> | undefined = undefined> {
|
|
68
|
+
defaultValue?: number;
|
|
69
|
+
type: SpecTypes.Number;
|
|
70
|
+
required?: boolean;
|
|
71
|
+
maximum?: number;
|
|
72
|
+
minimum?: number;
|
|
73
|
+
format?: 'float' | 'int64';
|
|
74
|
+
validator?: string;
|
|
75
|
+
viewSpec: {
|
|
76
|
+
disabled?: boolean;
|
|
77
|
+
type: string;
|
|
78
|
+
layout?: string;
|
|
79
|
+
layoutTitle?: string;
|
|
80
|
+
layoutDescription?: string;
|
|
81
|
+
layoutOpen?: boolean;
|
|
82
|
+
link?: LinkType;
|
|
83
|
+
placeholder?: string;
|
|
84
|
+
copy?: boolean;
|
|
85
|
+
hidden?: boolean;
|
|
86
|
+
inputProps?: InputComponentProps;
|
|
87
|
+
layoutProps?: LayoutComponentProps;
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
export interface ObjectSpec<LinkType = any, InputComponentProps extends Record<string, any> | undefined = undefined, LayoutComponentProps extends Record<string, any> | undefined = undefined> {
|
|
91
|
+
defaultValue?: ObjectValue;
|
|
92
|
+
type: SpecTypes.Object;
|
|
93
|
+
required?: boolean;
|
|
94
|
+
properties?: Record<string, Spec>;
|
|
95
|
+
description?: Record<string, string>;
|
|
96
|
+
validator?: string;
|
|
97
|
+
viewSpec: {
|
|
98
|
+
disabled?: boolean;
|
|
99
|
+
type: string;
|
|
100
|
+
layout?: string;
|
|
101
|
+
layoutTitle?: string;
|
|
102
|
+
layoutDescription?: string;
|
|
103
|
+
layoutOpen?: boolean;
|
|
104
|
+
order?: string[];
|
|
105
|
+
link?: LinkType;
|
|
106
|
+
oneOfParams?: {
|
|
107
|
+
toggler?: 'select' | 'radio' | 'card' | 'checkbox' | 'switch';
|
|
108
|
+
booleanMap?: Record<'true' | 'false', string>;
|
|
109
|
+
};
|
|
110
|
+
placeholder?: string;
|
|
111
|
+
hidden?: boolean;
|
|
112
|
+
inputProps?: InputComponentProps;
|
|
113
|
+
layoutProps?: LayoutComponentProps;
|
|
114
|
+
delimiter?: Record<string, string>;
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
export interface StringSpec<LinkType = any, InputComponentProps extends Record<string, any> | undefined = undefined, LayoutComponentProps extends Record<string, any> | undefined = undefined> {
|
|
118
|
+
defaultValue?: string;
|
|
119
|
+
type: SpecTypes.String;
|
|
120
|
+
required?: boolean;
|
|
121
|
+
maxLength?: bigint;
|
|
122
|
+
minLength?: bigint;
|
|
123
|
+
pattern?: string;
|
|
124
|
+
patternError?: string;
|
|
125
|
+
enum?: string[];
|
|
126
|
+
description?: Record<string, string>;
|
|
127
|
+
validator?: string;
|
|
128
|
+
viewSpec: {
|
|
129
|
+
disabled?: boolean;
|
|
130
|
+
type: string;
|
|
131
|
+
layout?: string;
|
|
132
|
+
layoutTitle?: string;
|
|
133
|
+
layoutDescription?: string;
|
|
134
|
+
layoutOpen?: boolean;
|
|
135
|
+
link?: LinkType;
|
|
136
|
+
sizeParams?: {
|
|
137
|
+
defaultType: string;
|
|
138
|
+
scale: Record<string, {
|
|
139
|
+
factor: string;
|
|
140
|
+
title: string;
|
|
141
|
+
}>;
|
|
142
|
+
viewType?: string;
|
|
143
|
+
};
|
|
144
|
+
monacoParams?: {
|
|
145
|
+
language?: string;
|
|
146
|
+
fontSize?: number;
|
|
147
|
+
headerIconSize?: number;
|
|
148
|
+
headerIconIndent?: number;
|
|
149
|
+
headerTitleVariant?: TextProps['variant'];
|
|
150
|
+
headerDialogButtonSize?: ButtonSize;
|
|
151
|
+
headerDialogIconSize?: number;
|
|
152
|
+
};
|
|
153
|
+
hideValues?: string[];
|
|
154
|
+
placeholder?: string;
|
|
155
|
+
hidden?: boolean;
|
|
156
|
+
textContentParams?: {
|
|
157
|
+
themeLabel?: LabelProps['theme'];
|
|
158
|
+
text: string;
|
|
159
|
+
icon?: string;
|
|
160
|
+
iconColor?: TextProps['color'];
|
|
161
|
+
titleAlert?: string;
|
|
162
|
+
themeAlert?: AlertProps['theme'];
|
|
163
|
+
viewAlert?: AlertProps['view'];
|
|
164
|
+
};
|
|
165
|
+
fileInput?: {
|
|
166
|
+
accept?: string;
|
|
167
|
+
readAsMethod?: ReadAsMethod;
|
|
168
|
+
ignoreText?: boolean;
|
|
169
|
+
};
|
|
170
|
+
dateInput?: {
|
|
171
|
+
outputFormat?: string;
|
|
172
|
+
printFormat?: string;
|
|
173
|
+
timeZone?: string;
|
|
174
|
+
};
|
|
175
|
+
copy?: boolean;
|
|
176
|
+
selectParams?: {
|
|
177
|
+
filterPlaceholder?: string;
|
|
178
|
+
meta?: Record<string, string>;
|
|
179
|
+
};
|
|
180
|
+
radioGroupParams?: {
|
|
181
|
+
direction?: 'horizontal' | 'vertical';
|
|
182
|
+
disabled?: Record<string, boolean>;
|
|
183
|
+
};
|
|
184
|
+
inputProps?: InputComponentProps;
|
|
185
|
+
layoutProps?: LayoutComponentProps;
|
|
186
|
+
generateRandomValueButton?: boolean;
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
export interface NumberWithScaleSpec extends StringSpec {
|
|
190
|
+
minimum?: number;
|
|
191
|
+
maximum?: number;
|
|
192
|
+
format?: 'float' | 'int64';
|
|
193
|
+
}
|
|
194
|
+
export type Spec<LinkType = any, InputComponentProps extends Record<string, any> | undefined = undefined, LayoutComponentProps extends Record<string, any> | undefined = undefined> = ArraySpec<LinkType, InputComponentProps, LayoutComponentProps> | BooleanSpec<LinkType, InputComponentProps, LayoutComponentProps> | NumberSpec<LinkType, InputComponentProps, LayoutComponentProps> | ObjectSpec<LinkType, InputComponentProps, LayoutComponentProps> | StringSpec<LinkType, InputComponentProps, LayoutComponentProps>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface AccordeonCardProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
name: string;
|
|
5
|
+
header: React.ReactNode;
|
|
6
|
+
description?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
open?: boolean;
|
|
9
|
+
onToggle?: (value: boolean) => void;
|
|
10
|
+
headerActionsTemplate?: React.ReactNode;
|
|
11
|
+
ignoreHeaderToggle?: boolean;
|
|
12
|
+
titleSize?: 's' | 'm';
|
|
13
|
+
alwaysOpen?: boolean;
|
|
14
|
+
classNameBody?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const AccordeonCard: React.FC<AccordeonCardProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './AccordeonCard';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface CardProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
name: string;
|
|
5
|
+
title?: string | React.ReactNode;
|
|
6
|
+
description?: string;
|
|
7
|
+
actions?: React.ReactNode;
|
|
8
|
+
open?: boolean;
|
|
9
|
+
onToggle?: (value: boolean) => void;
|
|
10
|
+
alwaysOpen?: boolean;
|
|
11
|
+
disableHeaderToggle?: boolean;
|
|
12
|
+
checkEmptyBody?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const Card: React.FC<CardProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Card';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { FormValue, Spec } from '../../../core';
|
|
3
|
+
export interface CopyButtonProps {
|
|
4
|
+
spec: Spec;
|
|
5
|
+
value: FormValue;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
* Use the with-copy-button scss mixin for visible on hover
|
|
10
|
+
*/
|
|
11
|
+
export declare const CopyButton: React.FC<CopyButtonProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './CopyButton';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { FieldRenderProps, FieldValue } from '../../../core';
|
|
3
|
+
export interface ErrorWrapperProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
name: string;
|
|
6
|
+
meta: FieldRenderProps<FieldValue>['meta'];
|
|
7
|
+
withoutChildErrorStyles?: boolean;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const ErrorWrapper: React.FC<ErrorWrapperProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ErrorWrapper';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { StringSpec } from '../../../core/types';
|
|
3
|
+
interface GenerateRandomValueButtonProps {
|
|
4
|
+
spec: StringSpec;
|
|
5
|
+
onChange: (value: string) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const GenerateRandomValueButton: React.FC<GenerateRandomValueButtonProps>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './GenerateRandomValueButton';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './GroupIndent';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './HTMLContent';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ArrayBase';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './CardOneOf';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { CheckboxProps as CheckboxBaseProps } from '@gravity-ui/uikit';
|
|
2
|
+
import type { BooleanInput } from '../../../../core';
|
|
3
|
+
export interface CheckboxProps extends Omit<CheckboxBaseProps, 'checked' | 'onChange' | 'onBlur' | 'onFocus' | 'disabled' | 'qa'> {
|
|
4
|
+
}
|
|
5
|
+
export declare const Checkbox: BooleanInput<CheckboxProps>;
|