324 lines
80 KiB
TypeScript
324 lines
80 KiB
TypeScript
|
|
import { EpPropFinalized, EpPropMergeType } from "../../../utils/vue/props/types.js";
|
||
|
|
import { Awaitable, Mutable } from "../../../utils/typescript.js";
|
||
|
|
import { Options, Placement } from "../../popper/index.js";
|
||
|
|
import { InputAutoSize, InputModelModifiers, InputProps, InputType } from "../../input/src/input.js";
|
||
|
|
import { ElTooltipContentProps } from "../../tooltip/src/content.js";
|
||
|
|
import _default from "./autocomplete.vue.js";
|
||
|
|
import * as _$vue from "vue";
|
||
|
|
import { ComponentInstance, ExtractPublicPropTypes } from "vue";
|
||
|
|
import { ComponentExposed } from "vue-component-type-helpers";
|
||
|
|
|
||
|
|
//#region ../../packages/components/autocomplete/src/autocomplete.d.ts
|
||
|
|
type AutocompleteDataItem = Record<string, any>;
|
||
|
|
type AutocompleteData<T extends AutocompleteDataItem = AutocompleteDataItem> = T[];
|
||
|
|
type AutocompleteFetchSuggestionsCallback<T extends AutocompleteDataItem = AutocompleteDataItem> = (data: AutocompleteData<T>) => void;
|
||
|
|
type AutocompleteFetchSuggestions<T extends AutocompleteDataItem = AutocompleteDataItem> = ((queryString: string, cb: AutocompleteFetchSuggestionsCallback<T>) => Awaitable<AutocompleteData<T> | void>) | AutocompleteData<T>;
|
||
|
|
type AutocompletePlacement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end';
|
||
|
|
interface AutocompleteProps<T extends AutocompleteDataItem = AutocompleteDataItem> extends InputProps {
|
||
|
|
/**
|
||
|
|
* @description key name of the input suggestion object for display
|
||
|
|
*/
|
||
|
|
valueKey?: string;
|
||
|
|
/**
|
||
|
|
* @description binding value
|
||
|
|
*/
|
||
|
|
modelValue?: string | number;
|
||
|
|
/**
|
||
|
|
* @description debounce delay when typing, in milliseconds
|
||
|
|
*/
|
||
|
|
debounce?: number;
|
||
|
|
/**
|
||
|
|
* @description placement of the popup menu
|
||
|
|
*/
|
||
|
|
placement?: AutocompletePlacement;
|
||
|
|
/**
|
||
|
|
* @description a method to fetch input suggestions. When suggestions are ready, invoke `callback(data:[])` to return them to Autocomplete
|
||
|
|
*/
|
||
|
|
fetchSuggestions?: AutocompleteFetchSuggestions<T>;
|
||
|
|
/**
|
||
|
|
* @description custom class name for autocomplete's dropdown
|
||
|
|
*/
|
||
|
|
popperClass?: ElTooltipContentProps['popperClass'];
|
||
|
|
/**
|
||
|
|
* @description custom style for autocomplete's dropdown
|
||
|
|
*/
|
||
|
|
popperStyle?: ElTooltipContentProps['popperStyle'];
|
||
|
|
/**
|
||
|
|
* @description [popper.js](https://popper.js.org/docs/v2/) parameters
|
||
|
|
*/
|
||
|
|
popperOptions?: Partial<Options>;
|
||
|
|
/**
|
||
|
|
* @description determines whether the arrow is displayed
|
||
|
|
*/
|
||
|
|
showArrow?: boolean;
|
||
|
|
/**
|
||
|
|
* @description whether show suggestions when input focus
|
||
|
|
*/
|
||
|
|
triggerOnFocus?: boolean;
|
||
|
|
/**
|
||
|
|
* @description whether to emit a `select` event on enter when there is no autocomplete match
|
||
|
|
*/
|
||
|
|
selectWhenUnmatched?: boolean;
|
||
|
|
/**
|
||
|
|
* @description whether to hide the loading icon in remote search
|
||
|
|
*/
|
||
|
|
hideLoading?: boolean;
|
||
|
|
/**
|
||
|
|
* @description whether select dropdown is teleported to the body
|
||
|
|
*/
|
||
|
|
teleported?: ElTooltipContentProps['teleported'];
|
||
|
|
/**
|
||
|
|
* @description which select dropdown appends to
|
||
|
|
*/
|
||
|
|
appendTo?: ElTooltipContentProps['appendTo'];
|
||
|
|
/**
|
||
|
|
* @description whether to highlight first item in remote search suggestions by default
|
||
|
|
*/
|
||
|
|
highlightFirstItem?: boolean;
|
||
|
|
/**
|
||
|
|
* @description whether the width of the dropdown is the same as the input
|
||
|
|
*/
|
||
|
|
fitInputWidth?: boolean;
|
||
|
|
/**
|
||
|
|
* @description whether keyboard navigation loops from end to start
|
||
|
|
*/
|
||
|
|
loopNavigation?: boolean;
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* @deprecated Removed after 3.0.0, Use `AutocompleteProps` instead.
|
||
|
|
*/
|
||
|
|
declare const autocompleteProps: {
|
||
|
|
readonly valueKey: EpPropFinalized<StringConstructor, unknown, unknown, "value", boolean>;
|
||
|
|
readonly modelValue: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
||
|
|
readonly debounce: EpPropFinalized<NumberConstructor, unknown, unknown, 300, boolean>;
|
||
|
|
readonly placement: EpPropFinalized<(new (...args: any[]) => "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement) | (((new (...args: any[]) => "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement)) | null)[], "bottom" | "top" | "top-start" | "top-end" | "bottom-start" | "bottom-end", unknown, "bottom-start", boolean>;
|
||
|
|
readonly fetchSuggestions: EpPropFinalized<(new (...args: any[]) => ((queryString: string, cb: AutocompleteFetchSuggestionsCallback<AutocompleteDataItem>) => Awaitable<void | AutocompleteData<AutocompleteDataItem>>) | AutocompleteData<AutocompleteDataItem>) | (() => AutocompleteFetchSuggestions<AutocompleteDataItem>) | (((new (...args: any[]) => ((queryString: string, cb: AutocompleteFetchSuggestionsCallback<AutocompleteDataItem>) => Awaitable<void | AutocompleteData<AutocompleteDataItem>>) | AutocompleteData<AutocompleteDataItem>) | (() => AutocompleteFetchSuggestions<AutocompleteDataItem>)) | null)[], unknown, unknown, () => void, boolean>;
|
||
|
|
readonly popperClass: {
|
||
|
|
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => string | {
|
||
|
|
[x: string]: boolean;
|
||
|
|
} | (string | {
|
||
|
|
[x: string]: boolean;
|
||
|
|
} | (string | {
|
||
|
|
[x: string]: boolean;
|
||
|
|
} | (string | {
|
||
|
|
[x: string]: boolean;
|
||
|
|
} | (string | {
|
||
|
|
[x: string]: boolean;
|
||
|
|
} | (string | {
|
||
|
|
[x: string]: boolean;
|
||
|
|
} | (string | {
|
||
|
|
[x: string]: boolean;
|
||
|
|
} | (string | {
|
||
|
|
[x: string]: boolean;
|
||
|
|
} | (string | {
|
||
|
|
[x: string]: boolean;
|
||
|
|
} | (string | {
|
||
|
|
[x: string]: boolean;
|
||
|
|
} | (string | {
|
||
|
|
[x: string]: boolean;
|
||
|
|
} | (string | {
|
||
|
|
[x: string]: boolean;
|
||
|
|
} | /*elided*/any)[])[])[])[])[])[])[])[])[])[])[]) | (() => string | {
|
||
|
|
[x: string]: boolean;
|
||
|
|
} | (string | {
|
||
|
|
[x: string]: boolean;
|
||
|
|
} | (string | {
|
||
|
|
[x: string]: boolean;
|
||
|
|
} | (string | {
|
||
|
|
[x: string]: boolean;
|
||
|
|
} | (string | {
|
||
|
|
[x: string]: boolean;
|
||
|
|
} | (string | {
|
||
|
|
[x: string]: boolean;
|
||
|
|
} | (string | {
|
||
|
|
[x: string]: boolean;
|
||
|
|
} | (string | {
|
||
|
|
[x: string]: boolean;
|
||
|
|
} | (string | {
|
||
|
|
[x: string]: boolean;
|
||
|
|
} | (string | {
|
||
|
|
[x: string]: boolean;
|
||
|
|
} | (string | {
|
||
|
|
[x: string]: boolean;
|
||
|
|
} | (string | {
|
||
|
|
[x: string]: boolean;
|
||
|
|
} | /*elided*/any)[])[])[])[])[])[])[])[])[])[])[]) | (((new (...args: any[]) => string | {
|
||
|
|
[x: string]: boolean;
|
||
|
|
} | (string | {
|
||
|
|
[x: string]: boolean;
|
||
|
|
} | (string | {
|
||
|
|
[x: string]: boolean;
|
||
|
|
} | (string | {
|
||
|
|
[x: string]: boolean;
|
||
|
|
} | (string | {
|
||
|
|
[x: string]: boolean;
|
||
|
|
} | (string | {
|
||
|
|
[x: string]: boolean;
|
||
|
|
} | (string | {
|
||
|
|
[x: string]: boolean;
|
||
|
|
} | (string | {
|
||
|
|
[x: string]: boolean;
|
||
|
|
} | (string | {
|
||
|
|
[x: string]: boolean;
|
||
|
|
} | (string | {
|
||
|
|
[x: string]: boolean;
|
||
|
|
} | (string | {
|
||
|
|
[x: string]: boolean;
|
||
|
|
} | (string | {
|
||
|
|
[x: string]: boolean;
|
||
|
|
} | /*elided*/any)[])[])[])[])[])[])[])[])[])[])[]) | (() => string | {
|
||
|
|
[x: string]: boolean;
|
||
|
|
} | (string | {
|
||
|
|
[x: string]: boolean;
|
||
|
|
} | (string | {
|
||
|
|
[x: string]: boolean;
|
||
|
|
} | (string | {
|
||
|
|
[x: string]: boolean;
|
||
|
|
} | (string | {
|
||
|
|
[x: string]: boolean;
|
||
|
|
} | (string | {
|
||
|
|
[x: string]: boolean;
|
||
|
|
} | (string | {
|
||
|
|
[x: string]: boolean;
|
||
|
|
} | (string | {
|
||
|
|
[x: string]: boolean;
|
||
|
|
} | (string | {
|
||
|
|
[x: string]: boolean;
|
||
|
|
} | (string | {
|
||
|
|
[x: string]: boolean;
|
||
|
|
} | (string | {
|
||
|
|
[x: string]: boolean;
|
||
|
|
} | (string | {
|
||
|
|
[x: string]: boolean;
|
||
|
|
} | /*elided*/any)[])[])[])[])[])[])[])[])[])[])[])) | null)[], unknown, unknown>>;
|
||
|
|
readonly required: false;
|
||
|
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
||
|
|
__epPropKey: true;
|
||
|
|
};
|
||
|
|
readonly popperStyle: EpPropFinalized<(new (...args: any[]) => string | false | _$vue.CSSProperties | _$vue.StyleValue[]) | (() => _$vue.StyleValue) | (((new (...args: any[]) => string | false | _$vue.CSSProperties | _$vue.StyleValue[]) | (() => _$vue.StyleValue)) | null)[], unknown, unknown, undefined, boolean>;
|
||
|
|
readonly popperOptions: EpPropFinalized<(new (...args: any[]) => Partial<Options>) | (() => Partial<Options>) | (((new (...args: any[]) => Partial<Options>) | (() => Partial<Options>)) | null)[], unknown, unknown, () => {}, boolean>;
|
||
|
|
readonly showArrow: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||
|
|
readonly triggerOnFocus: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||
|
|
readonly selectWhenUnmatched: BooleanConstructor;
|
||
|
|
readonly hideLoading: BooleanConstructor;
|
||
|
|
readonly teleported: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||
|
|
readonly appendTo: {
|
||
|
|
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | (((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement)) | null)[], unknown, unknown>>;
|
||
|
|
readonly required: false;
|
||
|
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
||
|
|
__epPropKey: true;
|
||
|
|
};
|
||
|
|
readonly highlightFirstItem: BooleanConstructor;
|
||
|
|
readonly fitInputWidth: BooleanConstructor;
|
||
|
|
readonly loopNavigation: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||
|
|
readonly inputmode: EpPropFinalized<(new (...args: any[]) => "text" | "email" | "search" | "tel" | "url" | "none" | "numeric" | "decimal") | (() => "text" | "email" | "search" | "tel" | "url" | "none" | "numeric" | "decimal" | undefined) | (((new (...args: any[]) => "text" | "email" | "search" | "tel" | "url" | "none" | "numeric" | "decimal") | (() => "text" | "email" | "search" | "tel" | "url" | "none" | "numeric" | "decimal" | undefined)) | null)[], unknown, unknown, undefined, boolean>;
|
||
|
|
readonly name: StringConstructor;
|
||
|
|
readonly ariaLabel: StringConstructor;
|
||
|
|
readonly id: EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
||
|
|
readonly size: {
|
||
|
|
readonly type: _$vue.PropType<EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
||
|
|
readonly required: false;
|
||
|
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
||
|
|
__epPropKey: true;
|
||
|
|
};
|
||
|
|
readonly disabled: EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
||
|
|
readonly modelModifiers: EpPropFinalized<(new (...args: any[]) => InputModelModifiers) | (() => InputModelModifiers) | (((new (...args: any[]) => InputModelModifiers) | (() => InputModelModifiers)) | null)[], unknown, unknown, () => {}, boolean>;
|
||
|
|
readonly maxlength: {
|
||
|
|
readonly type: _$vue.PropType<EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
||
|
|
readonly required: false;
|
||
|
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
||
|
|
__epPropKey: true;
|
||
|
|
};
|
||
|
|
readonly minlength: {
|
||
|
|
readonly type: _$vue.PropType<EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
||
|
|
readonly required: false;
|
||
|
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
||
|
|
__epPropKey: true;
|
||
|
|
};
|
||
|
|
readonly type: EpPropFinalized<(new (...args: any[]) => string) | (() => InputType) | (((new (...args: any[]) => string) | (() => InputType)) | null)[], unknown, unknown, "text", boolean>;
|
||
|
|
readonly resize: {
|
||
|
|
readonly type: _$vue.PropType<EpPropMergeType<StringConstructor, "none" | "both" | "horizontal" | "vertical", unknown>>;
|
||
|
|
readonly required: false;
|
||
|
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
||
|
|
__epPropKey: true;
|
||
|
|
};
|
||
|
|
readonly autosize: EpPropFinalized<(new (...args: any[]) => boolean | {
|
||
|
|
minRows?: number;
|
||
|
|
maxRows?: number;
|
||
|
|
}) | (() => InputAutoSize) | (((new (...args: any[]) => boolean | {
|
||
|
|
minRows?: number;
|
||
|
|
maxRows?: number;
|
||
|
|
}) | (() => InputAutoSize)) | null)[], unknown, unknown, false, boolean>;
|
||
|
|
readonly autocomplete: EpPropFinalized<(new (...args: any[]) => "" | "email" | "tel" | "off" | "name" | "on" | "additional-name" | "address-level1" | "address-level2" | "address-level3" | "address-level4" | "address-line1" | "address-line2" | "address-line3" | "bday-day" | "bday-month" | "bday-year" | "cc-csc" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-family-name" | "cc-given-name" | "cc-name" | "cc-number" | "cc-type" | "country" | "country-name" | "current-password" | "family-name" | "given-name" | "honorific-prefix" | "honorific-suffix" | "new-password" | "one-time-code" | "organization" | "postal-code" | "street-address" | "transaction-amount" | "transaction-currency" | "username" | "tel-area-code" | "tel-country-code" | "tel-extension" | "tel-local" | "tel-local-prefix" | "tel-local-suffix" | "tel-national" | "home email" | "home tel" | "home tel-area-code" | "home tel-country-code" | "home tel-extension" | "home tel-local" | "home tel-local-prefix" | "home tel-local-suffix" | "home tel-national" | "mobile email" | "mobile tel" | "mobile tel-area-code" | "mobile tel-country-code" | "mobile tel-extension" | "mobile tel-local" | "mobile tel-local-prefix" | "mobile tel-local-suffix" | "mobile tel-national" | "work email" | "work tel" | "work tel-area-code" | "work tel-country-code" | "work tel-extension" | "work tel-local" | "work tel-local-prefix" | "work tel-local-suffix" | "work tel-national" | "name webauthn" | "additional-name webauthn" | "address-level1 webauthn" | "address-level2 webauthn" | "address-level3 webauthn" | "address-level4 webauthn" | "address-line1 webauthn" | "address-line2 webauthn" | "address-line3 webauthn" | "bday-day webauthn" | "bday-month webauthn" | "bday-year webauthn" | "cc-csc webauthn" | "cc-exp webauthn" | "cc-exp-month webauthn" | "cc-exp-year webauthn" | "cc-family-name webauthn" | "cc-given-name webauthn" | "cc-name webauthn" | "cc-number webauthn" | "cc-type webauthn" | "country webauthn" | "country-name webauthn" | "current-password webauthn" | "family-name webauthn" | "given-name webauthn" | "honorific-prefix webauthn" | "honorific-suffix webauthn" | "new-password webauthn" | "one-time-code webauthn" | "organization webauthn" | "postal-code webauthn" | "street-address webauthn" | "transaction-amount webauthn" | "transaction-currency webauthn" | "username webauthn" | "email webauthn" | "tel webauthn" | "tel-area-code webauthn" | "tel-country-code webauthn" | "tel-extension webauthn" | "tel-local webauthn" | "tel-local-prefix webauthn" | "tel-local-suffix webauthn" | "tel-national webauthn" | "home email webauthn" | "home tel webauthn" | "home tel-area-code webauthn" | "home tel-country-code webauthn" | "home tel-extension webauthn" | "home tel-local webauthn" | "home tel-local-prefix webauthn" | "home tel-local-suffix webauthn" | "home tel-national webauthn" | "mobile email webauthn" | "mobile tel webauthn" | "mobile tel-area-code webauthn" | "mobile tel-country-code webauthn" | "mobile tel-extension webauthn" | "mobile tel-local webauthn" | "mobile tel-local-prefix webauthn" | "mobile tel-local-suffix webauthn" | "mobile tel-national webauthn" | "work email webauthn" | "work tel webauthn" | "work tel-area-code webauthn" | "work tel-country-code webauthn" | "work tel-extension webauthn" | "work tel-local webauthn" | "work tel-local-prefix webauthn" | "work tel-local-suffix webauthn" | "work tel-national webauthn" | "billing name" | "billing name webauthn" | "billing additional-name" | "billing additional-name webauthn" | "billing address-level1" | "billing address-level1 webauthn" | "billing address-level2" | "billing address-level2 webauthn" | "billing address-level3" | "billing address-level3 webauthn" | "billing address-level4" | "billing address-level4 webauthn" | "billing address-line1" | "billing address-line1 webauthn" | "billing address-line2" | "billing address-line2 webauthn" | "billing address-line3" | "billing address-line3 webauthn" | "billing bday-day" | "billing bday-day webauthn" | "billing bday-month" | "billing bday-month webauthn" | "billing bday-year
|
||
|
|
readonly formatter: {
|
||
|
|
readonly type: _$vue.PropType<Function>;
|
||
|
|
readonly required: false;
|
||
|
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
||
|
|
__epPropKey: true;
|
||
|
|
};
|
||
|
|
readonly parser: {
|
||
|
|
readonly type: _$vue.PropType<Function>;
|
||
|
|
readonly required: false;
|
||
|
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
||
|
|
__epPropKey: true;
|
||
|
|
};
|
||
|
|
readonly placeholder: {
|
||
|
|
readonly type: _$vue.PropType<string>;
|
||
|
|
readonly required: false;
|
||
|
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
||
|
|
__epPropKey: true;
|
||
|
|
};
|
||
|
|
readonly form: {
|
||
|
|
readonly type: _$vue.PropType<string>;
|
||
|
|
readonly required: false;
|
||
|
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
||
|
|
__epPropKey: true;
|
||
|
|
};
|
||
|
|
readonly readonly: BooleanConstructor;
|
||
|
|
readonly clearable: BooleanConstructor;
|
||
|
|
readonly clearIcon: EpPropFinalized<(new (...args: any[]) => (string | _$vue.Component) & {}) | (() => string | _$vue.Component) | (((new (...args: any[]) => (string | _$vue.Component) & {}) | (() => string | _$vue.Component)) | null)[], unknown, unknown, _$vue.DefineComponent<{}, void, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>, boolean>;
|
||
|
|
readonly showPassword: BooleanConstructor;
|
||
|
|
readonly showWordLimit: BooleanConstructor;
|
||
|
|
readonly wordLimitPosition: EpPropFinalized<StringConstructor, "inside" | "outside", unknown, "inside", boolean>;
|
||
|
|
readonly suffixIcon: {
|
||
|
|
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => (string | _$vue.Component) & {}) | (() => string | _$vue.Component) | (((new (...args: any[]) => (string | _$vue.Component) & {}) | (() => string | _$vue.Component)) | null)[], unknown, unknown>>;
|
||
|
|
readonly required: false;
|
||
|
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
||
|
|
__epPropKey: true;
|
||
|
|
};
|
||
|
|
readonly prefixIcon: {
|
||
|
|
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => (string | _$vue.Component) & {}) | (() => string | _$vue.Component) | (((new (...args: any[]) => (string | _$vue.Component) & {}) | (() => string | _$vue.Component)) | null)[], unknown, unknown>>;
|
||
|
|
readonly required: false;
|
||
|
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
||
|
|
__epPropKey: true;
|
||
|
|
};
|
||
|
|
readonly containerRole: EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
||
|
|
readonly tabindex: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, 0, boolean>;
|
||
|
|
readonly validateEvent: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||
|
|
readonly inputStyle: EpPropFinalized<(new (...args: any[]) => string | false | _$vue.CSSProperties | _$vue.StyleValue[]) | (() => _$vue.StyleValue) | (((new (...args: any[]) => string | false | _$vue.CSSProperties | _$vue.StyleValue[]) | (() => _$vue.StyleValue)) | null)[], unknown, unknown, () => Mutable<{}>, boolean>;
|
||
|
|
readonly countGraphemes: {
|
||
|
|
readonly type: _$vue.PropType<(value: string) => number>;
|
||
|
|
readonly required: false;
|
||
|
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
||
|
|
__epPropKey: true;
|
||
|
|
};
|
||
|
|
readonly autofocus: BooleanConstructor;
|
||
|
|
readonly rows: EpPropFinalized<NumberConstructor, unknown, unknown, 2, boolean>;
|
||
|
|
};
|
||
|
|
/**
|
||
|
|
* @deprecated Removed after 3.0.0, Use `AutocompleteProps` instead.
|
||
|
|
*/
|
||
|
|
type AutocompletePropsPublic = ExtractPublicPropTypes<typeof autocompleteProps>;
|
||
|
|
declare const autocompleteEmits: {
|
||
|
|
"update:modelValue": (value: string | number) => boolean;
|
||
|
|
input: (value: string | number) => boolean;
|
||
|
|
change: (value: string | number) => boolean;
|
||
|
|
focus: (evt: FocusEvent) => boolean;
|
||
|
|
blur: (evt: FocusEvent) => boolean;
|
||
|
|
clear: () => boolean;
|
||
|
|
select: (item: Record<string, any>) => boolean;
|
||
|
|
};
|
||
|
|
type AutocompleteEmits = typeof autocompleteEmits;
|
||
|
|
type AutocompleteInstance = ComponentInstance<typeof _default> & ComponentExposed<typeof _default>;
|
||
|
|
//#endregion
|
||
|
|
export { AutocompleteData, AutocompleteDataItem, AutocompleteEmits, AutocompleteFetchSuggestions, AutocompleteFetchSuggestionsCallback, AutocompleteInstance, AutocompletePlacement, AutocompleteProps, AutocompletePropsPublic, autocompleteEmits, autocompleteProps };
|