UNPKG

armisa-models

Version:
52 lines (51 loc) 2.07 kB
import { AxiosInstance } from "axios"; import { EnumValidateState } from "../../enums"; import { ElementFactory } from "../../Page/ElementsOfFormFactory/ElementFactory"; import { IMainStateFactory } from "../../Types"; import { SIMPLECODE } from "amisa-paths"; export type IResultOfValidate = true | [string, EnumValidateState]; export type ISimpleCodeState = 'clear' | 'ok' | 'newCode'; export declare class SimpleCodeFactory extends ElementFactory { #private; isMainCodeOfPage: boolean; required: boolean; caption: string; showHasChangeFlag: boolean; tabIndex?: number | undefined; urls: SIMPLECODE; apiAxios: AxiosInstance; forceUpdate: () => void; get any(): any; focusToElement: () => void; showListView?: () => void; name: string; id: number | null; private refreshAllfromOfMainCode; private setValidationState; codeWaitForLoad: null | string; private timerForLoad; private clearTimerForLoad; getCodeData: () => void; private getCodeDataAxios; codeValueState: ISimpleCodeState; childCount: number; validate: () => IResultOfValidate; restartDefaultValue: () => void; refreshHasChange: () => void; get text(): string; setText(text: string): void; get value(): number | null; get code(): number; setValue(code: number): void; deseriallize: (e?: number | null) => void; clearData: () => void; constructor(_mainStateFactory: IMainStateFactory, _fieldName: string, _dispose: () => void, urls: SIMPLECODE, isMainCodeOfPage: boolean, required: boolean, caption: string, showHasChangeFlag: boolean, tabIndex?: number | undefined, payLoadKey?: string, responseKey?: string, history?: { key: string; axios: (controllerPath: string) => AxiosInstance; controllerPath: string; actionPath?: string; }); forceUpdateSpinner: () => void; onChangeHandlerElement: (element: HTMLInputElement) => void; onChangeHandlerCode: (code: string) => void; }