@lekseek/ui
Version:
Vue 3 components library
189 lines (188 loc) • 5.29 kB
TypeScript
import { AutocompleteItem, AutocompleteSelectedItem } from './models';
declare type Props = {
modelValue?: AutocompleteSelectedItem | AutocompleteSelectedItem[] | null;
items: AutocompleteItem[];
placeholder?: string | null;
type?: string;
required?: boolean;
min?: number | string | null;
max?: number | string | null;
maxlength?: number | string | null;
step?: number;
label?: string | null;
width?: number | null;
leftIcon?: string | null;
leftIconClickable?: boolean;
leftIconColor?: string | null;
disabled?: boolean;
maxHeight?: number;
listPosition?: 'top' | 'bottom';
itemsLoading?: boolean;
itemsError?: boolean;
itemsReloadable?: boolean;
textarea?: boolean;
rows?: number | string | null;
noMatchingItemsText?: string;
external?: boolean;
searchDelay?: number;
multiple?: boolean;
clearable?: boolean;
dark?: boolean;
light?: boolean;
bordered?: boolean;
rounded: boolean;
roundedLg?: boolean;
round?: boolean;
error?: boolean;
depressed?: boolean;
size?: 'sm' | 'md' | 'lg';
};
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
modelValue: null;
placeholder: null;
type: string;
required: boolean;
min: null;
max: null;
maxlength: null;
step: number;
label: null;
width: null;
leftIcon: null;
leftIconClickable: boolean;
leftIconColor: null;
disabled: boolean;
maxHeight: number;
listPosition: string;
itemsLoading: boolean;
itemsError: boolean;
itemsReloadable: boolean;
textarea: boolean;
rows: null;
noMatchingItemsText: string;
external: boolean;
searchDelay: number;
multiple: boolean;
clearable: boolean;
dark: boolean;
light: boolean;
bordered: boolean;
rounded: boolean;
roundedLg: boolean;
round: boolean;
error: boolean;
depressed: boolean;
size: string;
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
focus: () => void;
} & {
blur: (event: any) => void;
} & {
"click-left-icon": () => void;
} & {
"click-right-icon": () => void;
} & {
select: (item: AutocompleteItem) => void;
} & {
update: (value: any) => void;
} & {
reload: () => void;
} & {
search: (value: any) => void;
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
modelValue: null;
placeholder: null;
type: string;
required: boolean;
min: null;
max: null;
maxlength: null;
step: number;
label: null;
width: null;
leftIcon: null;
leftIconClickable: boolean;
leftIconColor: null;
disabled: boolean;
maxHeight: number;
listPosition: string;
itemsLoading: boolean;
itemsError: boolean;
itemsReloadable: boolean;
textarea: boolean;
rows: null;
noMatchingItemsText: string;
external: boolean;
searchDelay: number;
multiple: boolean;
clearable: boolean;
dark: boolean;
light: boolean;
bordered: boolean;
rounded: boolean;
roundedLg: boolean;
round: boolean;
error: boolean;
depressed: boolean;
size: string;
}>>> & {
onBlur?: ((event: any) => any) | undefined;
onFocus?: (() => any) | undefined;
"onClick-left-icon"?: (() => any) | undefined;
"onClick-right-icon"?: (() => any) | undefined;
onSelect?: ((item: AutocompleteItem) => any) | undefined;
onSearch?: ((value: any) => any) | undefined;
onUpdate?: ((value: any) => any) | undefined;
onReload?: (() => any) | undefined;
}, {
error: boolean;
bordered: boolean;
dark: boolean;
light: boolean;
type: string;
size: "sm" | "md" | "lg";
modelValue: AutocompleteSelectedItem | AutocompleteSelectedItem[] | null;
placeholder: string | null;
required: boolean;
min: string | number | null;
max: string | number | null;
maxlength: string | number | null;
step: number;
label: string | null;
width: number | null;
leftIcon: string | null;
leftIconClickable: boolean;
leftIconColor: string | null;
disabled: boolean;
depressed: boolean;
rounded: boolean;
roundedLg: boolean;
round: boolean;
rows: string | number | null;
textarea: boolean;
maxHeight: number;
listPosition: "top" | "bottom";
itemsLoading: boolean;
itemsError: boolean;
itemsReloadable: boolean;
noMatchingItemsText: string;
external: boolean;
searchDelay: number;
multiple: boolean;
clearable: boolean;
}>;
export default _default;
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
declare type __VLS_TypePropsToRuntimeProps<T> = {
[K in keyof T]-?: {} extends Pick<T, K> ? {
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
} : {
type: import('vue').PropType<T[K]>;
required: true;
};
};
declare type __VLS_WithDefaults<P, D> = {
[K in keyof P]: K extends keyof D ? P[K] & {
default: D[K];
} : P[K];
};