/** * @file select/Select * @author */ import Base from 'santd/base'; import Empty from '../empty'; import Icon from '../icon'; import Trigger from '../core/trigger'; import DropdownMenu from './DropdownMenu'; import Selector from './Selector'; import { preventDefaultEvent } from './util'; import { SelectProps as Props, SelectState as State, SelectComputed as Computed, RawValueType, TOption, TOptions, TOptionGroups, TOptionsInfo, SelInstanceProps, TMenuItem } from './interface'; import { TOption as ComponentOption } from './Option'; import { TOptGroup as ComponentOptGroup } from './OptGroup'; interface Messages { 'select:updateOptions': (this: Select) => void; 'select:setInputElement': (this: Select, payload: { value: Props['inputElement']; }) => void; 'select:inputChange': (this: Select, paylod: { value: InputEvent; }) => void; 'select:inputKeyDown': (this: Select, paylod: { value: KeyboardEvent; }) => void; } export default class Select extends Base { static template: string; static components: { 's-empty': typeof Empty; 's-icon': typeof Icon; 's-trigger': typeof Trigger; 's-dropdown-render': typeof DropdownMenu; 's-selector': typeof Selector; }; static computed: Computed; static messages: Messages; static Option: ComponentOption; static OptGroup: ComponentOptGroup; preventDefaultEvent: typeof preventDefaultEvent; props: SelInstanceProps; initData(): State; inited(): void; created(): void; attached(): void; updated(): void; detached(): void; updateOptions(): void; findFirstMenuItem(): any; getOptionsFromChildren(children?: any[], options?: TOptions, optionGroups?: TOptionGroups, currGroup?: TOptions, hasGroup?: boolean): { options: TOptions; optionGroups: TOptionGroups; }; getInputValueForCombobox(props: any, optionsInfo: TOptionsInfo, useDefaultValue?: boolean): any; getLabelFromOption(option: TOption): any; getOptionInfo(option: TOption): { disabled: boolean | undefined; label: any; option: TOption; title: string | undefined; value: RawValueType | undefined; }; getOptionsInfo(options?: TOptions): TOptionsInfo; getOptionLabelProp(props: Partial): string; getValueByInput(str: string): import("./interface").DefaultValueType | undefined; getValueFromProps(useDefaultValue?: boolean): RawValueType[]; setDropdownWidth(): void; setInputValue(inputValue: string, fireSearch?: boolean): void; setOpenState(open: boolean, config?: { needFocus?: boolean; fireSearch?: boolean; }): void; setState(props: Record, config?: { silent?: boolean; force?: boolean; }): void; forcePopupAlign(): void; maybeFocus(open: boolean, needFocus: boolean): void; openIfHasChildren(): void; removeSelected(selectedKey: RawValueType, e?: Event): void; fireChange(value: Props['value']): void; fireSelect(value: string): void; fireEvent(e: MouseEvent, type: 'mouseenter' | 'mouseleave'): void; handleArrowClick(e: MouseEvent): void; handleBackfill(item: TMenuItem | null): void; handleClearSelection(e: MouseEvent): void; handleInputChange(e: InputEvent): void; handleInputKeyDown(e: KeyboardEvent): void; handleKeyDown(e: KeyboardEvent): void; handleOuterBlur(e: Event): void; handleOuterFocus(e: Event): void; handlePlaceholderClick(): void; handlePopupFocus(): void; handleVisibleChange(open: boolean): void; focus(): void; blur(): void; clearBlurTime(): void; clearFocusTime(): void; clearComboboxTime(): void; timeoutFocus(): void; markMouseDown(): void; markMouseLeave(): void; } export {};