Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/ui / dist / forms / form / typings.d.ts
Size: Mime:
/// <reference types="react" />
import { Serializable } from '@skava/typings';
import { InputType } from '../input/typings.inputs';
import { InputStateType } from '../input/typings';
export interface InputStateOptions {
}
export interface InputStateFromArgs {
    inputsList: Array<InputStateOptions>;
}
/**
 * === typescript types
 */
export interface KeyValueSpreadType {
    key: string;
    value: any;
}
export interface GetInputValueType extends Function {
    (input: InputType, index?: number): Serializable;
}
export declare type ClassNameArg = string | Serializable | Array<string>;
export interface ObserverFormClassListType {
    input: ClassNameArg;
    form: ClassNameArg;
    submitButton: ClassNameArg;
    cancelButton: ClassNameArg;
    buttonGroup: ClassNameArg;
}
export interface ObserverFormClassPropertyTypes {
    /**
     * added this
     */
    CancelCustomClass: string;
    SubmitCustomClass: string;
    ButtonGroupCustomClass: string;
    formClassName: string;
    formClassList: string;
    classList: any;
    cachedClassList: ObserverFormClassListType;
}
export interface FormStateType {
    name: string;
    hasAllValidInputs: boolean;
    inputsList: Array<InputStateType>;
    form: HTMLFormElement;
}
export interface ObserverFormType {
    state: FormStateType;
    classList?: ObserverFormClassListType;
    wording?: Object;
    Wrap: React.ClassicComponentClass;
    Input: React.ClassicComponentClass;
    onPrefil(inputState: InputStateType): InputStateType;
    /**
     * @private
     */
    _onPrefil(inputState: InputStateType): InputStateType;
    renderInput(inputState: InputStateType): HTMLInputElement;
    renderInputList(): Array<HTMLInputElement>;
    /**
     * @see FormState.hasAllValidInputs
     */
    validateForm(): boolean;
}
export interface ObserverFormProps {
    state: FormStateType;
    onHandleCancel?: Function;
    cancelState?: any;
}