vue-dadata
Version:
Vue component for hinting addresses using dadata.ru
278 lines (277 loc) • 10.6 kB
TypeScript
import { HighlightOptions } from './types';
declare const _default: import('vue').DefineComponent<{}, {
token: string;
query: import('vue').Ref<string, string>;
suggestion: import('vue').Ref<undefined, undefined>;
highlightOptions: HighlightOptions;
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {
VueDadata: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
token: {
type: StringConstructor;
required: true;
};
modelValue: {
type: StringConstructor;
required: true;
};
suggestion: {
type: import('vue').PropType<import('./types').Suggestion | undefined>;
default: () => undefined;
};
placeholder: {
type: StringConstructor;
default: string;
};
url: {
type: StringConstructor;
default: undefined;
};
debounceWait: {
type: StringConstructor;
default: string;
};
disabled: {
type: BooleanConstructor;
default: boolean;
};
fromBound: {
type: import('vue').PropType<import('./types').BoundsType>;
default: undefined;
};
toBound: {
type: import('vue').PropType<import('./types').BoundsType>;
default: undefined;
};
inputName: {
type: StringConstructor;
default: string;
};
locationOptions: {
type: import('vue').PropType<import('./types').LocationOptions>;
default: undefined;
};
classes: {
type: import('vue').PropType<import('./types').VueDadataClasses>;
default: () => import('./types').VueDadataClasses;
};
highlightOptions: {
type: import('vue').PropType<HighlightOptions>;
default: () => HighlightOptions;
};
autocomplete: {
type: BooleanConstructor;
default: boolean;
};
}>, {
KeyEvent: typeof import('./types').KeyEvent;
queryProxy: import('vue').WritableComputedRef<string, string>;
suggestionProxy: import('vue').WritableComputedRef<import('./types').Suggestion | undefined, import('./types').Suggestion | undefined>;
inputFocused: import('vue').Ref<boolean, boolean>;
suggestionsVisible: import('vue').Ref<boolean, boolean>;
suggestionList: import('vue').Ref<import('./types').Suggestion[], import('./types').Suggestion[]>;
proxyClasses: import('vue').ComputedRef<import('./types').VueDadataClasses>;
proxyHighlightOptions: import('vue').ComputedRef<HighlightOptions>;
suggestionIndex: import('vue').Ref<number, number>;
onInputChange: () => void;
onKeyPress: (keyboardEvent: KeyboardEvent, keyEvent: import('./types').KeyEvent) => void;
onInputFocus: () => void;
onInputBlur: () => void;
onSuggestionClick: (index: number) => void;
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("update:modelValue" | "update:suggestion" | "handleError")[], "update:modelValue" | "update:suggestion" | "handleError", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
token: {
type: StringConstructor;
required: true;
};
modelValue: {
type: StringConstructor;
required: true;
};
suggestion: {
type: import('vue').PropType<import('./types').Suggestion | undefined>;
default: () => undefined;
};
placeholder: {
type: StringConstructor;
default: string;
};
url: {
type: StringConstructor;
default: undefined;
};
debounceWait: {
type: StringConstructor;
default: string;
};
disabled: {
type: BooleanConstructor;
default: boolean;
};
fromBound: {
type: import('vue').PropType<import('./types').BoundsType>;
default: undefined;
};
toBound: {
type: import('vue').PropType<import('./types').BoundsType>;
default: undefined;
};
inputName: {
type: StringConstructor;
default: string;
};
locationOptions: {
type: import('vue').PropType<import('./types').LocationOptions>;
default: undefined;
};
classes: {
type: import('vue').PropType<import('./types').VueDadataClasses>;
default: () => import('./types').VueDadataClasses;
};
highlightOptions: {
type: import('vue').PropType<HighlightOptions>;
default: () => HighlightOptions;
};
autocomplete: {
type: BooleanConstructor;
default: boolean;
};
}>> & Readonly<{
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
"onUpdate:suggestion"?: ((...args: any[]) => any) | undefined;
onHandleError?: ((...args: any[]) => any) | undefined;
}>, {
suggestion: import('./types').Suggestion | undefined;
placeholder: string;
url: string;
debounceWait: string;
disabled: boolean;
fromBound: import('./types').BoundsType;
toBound: import('./types').BoundsType;
inputName: string;
locationOptions: import('./types').LocationOptions;
classes: import('./types').VueDadataClasses;
highlightOptions: HighlightOptions;
autocomplete: boolean;
}, {}, {
WordHighlighter: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
query: {
type: (StringConstructor | RegExpConstructor)[];
required: true;
default: string;
};
caseSensitive: {
type: BooleanConstructor;
default: boolean;
};
diacriticsSensitive: {
type: BooleanConstructor;
default: boolean;
};
splitBySpace: {
type: BooleanConstructor;
default: boolean;
};
matchMode: {
type: import('vue').PropType<"exact" | "partial">;
default: string;
};
highlightClass: {
type: import('vue').PropType<Record<string, boolean> | string | string[]>;
default: string;
};
highlightStyle: {
type: import('vue').PropType<Record<string, boolean> | string | string[]>;
default: string;
};
highlightTag: {
type: StringConstructor;
default: string;
};
wrapperTag: {
type: StringConstructor;
default: string;
};
wrapperClass: {
type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
default: string;
};
textToHighlight: {
type: StringConstructor;
default: string;
};
htmlToHighlight: {
type: StringConstructor;
default: string;
};
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
[key: string]: any;
}> | import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
[key: string]: any;
}>[] | undefined, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "matches"[], "matches", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
query: {
type: (StringConstructor | RegExpConstructor)[];
required: true;
default: string;
};
caseSensitive: {
type: BooleanConstructor;
default: boolean;
};
diacriticsSensitive: {
type: BooleanConstructor;
default: boolean;
};
splitBySpace: {
type: BooleanConstructor;
default: boolean;
};
matchMode: {
type: import('vue').PropType<"exact" | "partial">;
default: string;
};
highlightClass: {
type: import('vue').PropType<Record<string, boolean> | string | string[]>;
default: string;
};
highlightStyle: {
type: import('vue').PropType<Record<string, boolean> | string | string[]>;
default: string;
};
highlightTag: {
type: StringConstructor;
default: string;
};
wrapperTag: {
type: StringConstructor;
default: string;
};
wrapperClass: {
type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
default: string;
};
textToHighlight: {
type: StringConstructor;
default: string;
};
htmlToHighlight: {
type: StringConstructor;
default: string;
};
}>> & Readonly<{
onMatches?: ((...args: any[]) => any) | undefined;
}>, {
query: string | RegExp;
caseSensitive: boolean;
diacriticsSensitive: boolean;
splitBySpace: boolean;
matchMode: "exact" | "partial";
highlightClass: string | Record<string, boolean> | string[];
highlightStyle: string | Record<string, boolean> | string[];
highlightTag: string;
wrapperTag: string;
wrapperClass: string | Record<string, any> | unknown[];
textToHighlight: string;
htmlToHighlight: string;
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
export default _default;