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 / input / InputChain.d.ts
Size: Mime:
import React from 'react';
import { InputStateType, ObserverInputProps } from './typings';
export interface InputChainMap extends Map<string, any> {
    get(key: string): any;
    set(key: string, value: any): this;
    get(key: 'state'): InputStateType;
    set(key: 'state', value: InputStateType): this;
    get(key: 'props'): ObserverInputProps;
    set(key: 'props', value: ObserverInputProps): this;
}
/**
 * @todo the input should have the aria-error props and that should be tested in a unit test
 */
declare class InputChain<Props = any, State = any> extends React.Component<Props, State> {
    store: InputChainMap;
    get(key: string): any;
    has(key: string): boolean;
    clear(): this;
    set(key: string, value: any): this;
    delete(key: string): this;
    merge(obj: Object): this;
    entries(): import("exotic/dist/types/obj/cast/fromCollectionToObj").CollectionAsObj<any>;
    /**
     * @note - had to change to this for testing & react warnings
     * @note - make sure it's always an object
     */
    setPluginState(state: InputStateType): InputChainMap;
    /**
     * @action
     */
    setPluginProps(props: Props): InputChainMap;
    /**
     * @action
     */
    /**
    * may also want to do relational
    *
    * @sriaarthi
    * @example
    *  - this can be done the same with `isEnabled`
    *    and would allow only being enabled once
    *    this.parent.get('add-to-account').isSelected
    */
    isValid: boolean;
    /**
     * === added these since they were commmon ===
     */
    /**
     * @computed
     */
    readonly type: string;
    /**
     * @action
     */
    setValue(value: any): void;
    /**
     * @computed
     */
    getValue(): any;
}
export { InputChain };
export default InputChain;