Files
dsProject/dsBase/WebRoot/html/cdn/es/components/roving-focus-group/src/utils.d.ts
2025-08-14 15:45:08 +08:00

9 lines
506 B
TypeScript

import type { HTMLAttributes } from 'vue';
declare type Orientation = HTMLAttributes['aria-orientation'];
declare type Direction = 'ltr' | 'rtl';
declare type FocusIntent = 'first' | 'last' | 'prev' | 'next';
export declare const getFocusIntent: (event: KeyboardEvent, orientation?: Orientation, dir?: Direction | undefined) => FocusIntent | undefined;
export declare const reorderArray: <T>(array: T[], atIdx: number) => T[];
export declare const focusFirst: (elements: HTMLElement[]) => void;
export {};