/*! * devextreme-react * Version: 22.2.6 * Build date: Tue Apr 18 2023 * * Copyright (c) 2012 - 2023 Developer Express Inc. ALL RIGHTS RESERVED * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file in the root of the project for details. * * https://github.com/DevExpress/devextreme-react */ /// import dxValidator, { Properties as IValidatorOptions } from "devextreme/ui/validator"; import { ExtensionComponent as BaseComponent } from "./core/extension-component"; import NestedOption from "./core/nested-option"; declare class Validator extends BaseComponent> { get instance(): dxValidator; protected _WidgetClass: typeof dxValidator; protected independentEvents: string[]; protected _expectedChildren: { adapter: { optionName: string; isCollectionItem: boolean; }; AsyncRule: { optionName: string; isCollectionItem: boolean; }; CompareRule: { optionName: string; isCollectionItem: boolean; }; CustomRule: { optionName: string; isCollectionItem: boolean; }; EmailRule: { optionName: string; isCollectionItem: boolean; }; NumericRule: { optionName: string; isCollectionItem: boolean; }; PatternRule: { optionName: string; isCollectionItem: boolean; }; RangeRule: { optionName: string; isCollectionItem: boolean; }; RequiredRule: { optionName: string; isCollectionItem: boolean; }; StringLengthRule: { optionName: string; isCollectionItem: boolean; }; validationRule: { optionName: string; isCollectionItem: boolean; }; }; } declare type IAdapterProps = React.PropsWithChildren<{ applyValidationResults?: any; bypass?: any; focus?: any; getValue?: any; reset?: any; validationRequestsCallbacks?: any; }>; declare class Adapter extends NestedOption { static OptionName: string; } declare type IAsyncRuleProps = React.PropsWithChildren<{ ignoreEmptyValue?: any; message?: any; reevaluate?: any; type?: any; validationCallback?: any; }>; declare class AsyncRule extends NestedOption { static OptionName: string; static IsCollectionItem: boolean; static PredefinedProps: { type: string; }; } declare type ICompareRuleProps = React.PropsWithChildren<{ comparisonTarget?: any; comparisonType?: any; ignoreEmptyValue?: any; message?: any; type?: any; }>; declare class CompareRule extends NestedOption { static OptionName: string; static IsCollectionItem: boolean; static PredefinedProps: { type: string; }; } declare type ICustomRuleProps = React.PropsWithChildren<{ ignoreEmptyValue?: any; message?: any; reevaluate?: any; type?: any; validationCallback?: any; }>; declare class CustomRule extends NestedOption { static OptionName: string; static IsCollectionItem: boolean; static PredefinedProps: { type: string; }; } declare type IEmailRuleProps = React.PropsWithChildren<{ ignoreEmptyValue?: any; message?: any; type?: any; }>; declare class EmailRule extends NestedOption { static OptionName: string; static IsCollectionItem: boolean; static PredefinedProps: { type: string; }; } declare type INumericRuleProps = React.PropsWithChildren<{ ignoreEmptyValue?: any; message?: any; type?: any; }>; declare class NumericRule extends NestedOption { static OptionName: string; static IsCollectionItem: boolean; static PredefinedProps: { type: string; }; } declare type IPatternRuleProps = React.PropsWithChildren<{ ignoreEmptyValue?: any; message?: any; pattern?: any; type?: any; }>; declare class PatternRule extends NestedOption { static OptionName: string; static IsCollectionItem: boolean; static PredefinedProps: { type: string; }; } declare type IRangeRuleProps = React.PropsWithChildren<{ ignoreEmptyValue?: any; max?: any; message?: any; min?: any; reevaluate?: any; type?: any; }>; declare class RangeRule extends NestedOption { static OptionName: string; static IsCollectionItem: boolean; static PredefinedProps: { type: string; }; } declare type IRequiredRuleProps = React.PropsWithChildren<{ message?: any; trim?: any; type?: any; }>; declare class RequiredRule extends NestedOption { static OptionName: string; static IsCollectionItem: boolean; static PredefinedProps: { type: string; }; } declare type IStringLengthRuleProps = React.PropsWithChildren<{ ignoreEmptyValue?: any; max?: any; message?: any; min?: any; trim?: any; type?: any; }>; declare class StringLengthRule extends NestedOption { static OptionName: string; static IsCollectionItem: boolean; static PredefinedProps: { type: string; }; } declare type IValidationRuleProps = React.PropsWithChildren<{ message?: any; trim?: any; type?: any; ignoreEmptyValue?: any; max?: any; min?: any; reevaluate?: any; validationCallback?: any; comparisonTarget?: any; comparisonType?: any; pattern?: any; }>; declare class ValidationRule extends NestedOption { static OptionName: string; static IsCollectionItem: boolean; static PredefinedProps: { type: string; }; } export default Validator; export { Validator, IValidatorOptions, Adapter, IAdapterProps, AsyncRule, IAsyncRuleProps, CompareRule, ICompareRuleProps, CustomRule, ICustomRuleProps, EmailRule, IEmailRuleProps, NumericRule, INumericRuleProps, PatternRule, IPatternRuleProps, RangeRule, IRangeRuleProps, RequiredRule, IRequiredRuleProps, StringLengthRule, IStringLengthRuleProps, ValidationRule, IValidationRuleProps };