Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/interact.../assets/admin/vendor/autocomp...
File: autocomplete.d.ts
export declare const enum EventTrigger {
[0] Fix | Delete
Keyboard = 0,
[1] Fix | Delete
Focus = 1
[2] Fix | Delete
}
[3] Fix | Delete
export interface AutocompleteItem {
[4] Fix | Delete
label?: string;
[5] Fix | Delete
group?: string;
[6] Fix | Delete
}
[7] Fix | Delete
export interface AutocompleteSettings<T extends AutocompleteItem> {
[8] Fix | Delete
input: HTMLInputElement;
[9] Fix | Delete
render?: (item: T, currentValue: string) => HTMLDivElement | undefined;
[10] Fix | Delete
renderGroup?: (name: string, currentValue: string) => HTMLDivElement | undefined;
[11] Fix | Delete
className?: string;
[12] Fix | Delete
minLength?: number;
[13] Fix | Delete
emptyMsg?: string;
[14] Fix | Delete
onSelect: (item: T, input: HTMLInputElement) => void;
[15] Fix | Delete
/**
[16] Fix | Delete
* Show autocomplete on focus event. Focus event will ignore the `minLength` property and will always call `fetch`.
[17] Fix | Delete
*/
[18] Fix | Delete
showOnFocus?: boolean;
[19] Fix | Delete
fetch: (text: string, update: (items: T[] | false) => void, trigger: EventTrigger) => void;
[20] Fix | Delete
debounceWaitMs?: number;
[21] Fix | Delete
/**
[22] Fix | Delete
* Callback for additional autocomplete customization
[23] Fix | Delete
* @param {HTMLInputElement} input - input box associated with autocomplete
[24] Fix | Delete
* @param {ClientRect | DOMRect} inputRect - size of the input box and its position relative to the viewport
[25] Fix | Delete
* @param {HTMLDivElement} container - container with suggestions
[26] Fix | Delete
* @param {number} maxHeight - max height that can be used by autocomplete
[27] Fix | Delete
*/
[28] Fix | Delete
customize?: (input: HTMLInputElement, inputRect: ClientRect | DOMRect, container: HTMLDivElement, maxHeight: number) => void;
[29] Fix | Delete
/**
[30] Fix | Delete
* Prevents automatic form submit when ENTER is pressed
[31] Fix | Delete
*/
[32] Fix | Delete
preventSubmit?: boolean;
[33] Fix | Delete
}
[34] Fix | Delete
export interface AutocompleteResult {
[35] Fix | Delete
destroy: () => void;
[36] Fix | Delete
}
[37] Fix | Delete
export default function autocomplete<T extends AutocompleteItem>(settings: AutocompleteSettings<T>): AutocompleteResult;
[38] Fix | Delete
[39] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function