import { EventSubscription } from "@mongez/events"; import { RestfulEndpoint } from "@mongez/http"; import { InputBuilder } from "./InputBuilder"; export declare class SelectInputBuilder extends InputBuilder { /** * select requests list */ requestsList: { request?: (props: any) => Promise; lazyRequest?: (props: any) => Promise; searchRequest?: (keywords: string, record: any) => Promise; dynamicRequest?: (props: any) => Promise; }; /** * Service class */ restfulService?: RestfulEndpoint; /** * Determine if it is a lazy service or not */ protected isLazyService: boolean; /** * Load options except the value from the settled records's key */ protected exceptKey: string; /** * Determine whether is multiple */ protected isMultiple: boolean; /** * Reset Event */ protected resetEvent?: EventSubscription; /** * Spawns list of inputs */ spawning: { selectBuilder?: SelectInputBuilder; displayed: boolean; initialValue?: any; searchAs?: string | ((value: string) => { [key: string]: any; }); }; /** * Boot */ protected boot(): void; /** * Set dropdown position */ dropdownPosition(position: "bottom" | "top" | "flip"): this; /** * Determine if select input is multiple */ multiple(isMultiple?: boolean): this; /** * Map options */ mapOption(option: any): this; /** * Set service class */ service(service: RestfulEndpoint): this; /** * Set options */ options(options: any[]): this; /** * Spawns a new select input */ spawns(input: SelectInputBuilder, searchAs: typeof this.spawning.searchAs): this; /** * Load request lazily */ lazy(isLazy?: boolean): this; /** * Load options except the given key */ except(key: string): this; /** * {@inheritDoc} */ protected parseDefaultValue(): any; /** * Set limit */ limit(limit: number): this; /** * Set request */ request(request: (record: any) => Promise): this; /** * Set lazy request */ lazyRequest(request: () => Promise): this; /** * Set search request */ searchRequest(request: (keywords: string, record: any) => Promise): this; /** * Set dynamic request */ dynamicRequest(request: () => Promise): this; /** * {@inheritDoc} */ protected preparingProps(): void; /** * Hide current spawn and any nested spawns */ hideSpawns(): void; /** * Hide nested spawns */ hideNestedSpawns(): void; /** * Triggered when form is closed */ protected onFormClose(): void; /** * Render the input */ protected renderContent(): any; } //# sourceMappingURL=SelectInputBuilder.d.ts.map