UNPKG

element-plus

Version:

A Component Library for Vue 3

28 lines (27 loc) 1.11 kB
import type { Nullable } from 'element-plus/es/utils/types'; export declare const EVENT_CODE: { tab: string; enter: string; space: string; left: string; up: string; right: string; down: string; esc: string; delete: string; backspace: string; }; export declare const isVisible: (element: HTMLElement) => boolean; export declare const obtainAllFocusableElements: (element: HTMLElement) => HTMLElement[]; export declare const isFocusable: (element: HTMLElement) => boolean; export declare const attemptFocus: (element: HTMLElement) => boolean; export declare const triggerEvent: (elm: HTMLElement, name: string, ...opts: Array<boolean>) => HTMLElement; export declare const isLeaf: (el: HTMLElement) => boolean; export declare const getSibling: (el: HTMLElement, distance: number, elClass: string) => Nullable<Element>; export declare const focusNode: (el: any) => void; declare const Utils: { IgnoreUtilFocusChanges: boolean; focusFirstDescendant(element: HTMLElement): boolean; focusLastDescendant(element: HTMLElement): boolean; }; export default Utils;