File size: 1,879 Bytes
bc20498 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
/**
* Handles segment navigation based on the provided keyboard event and field ID.
*
* @param e - The keyboard event
* @param fieldId - The ID of the field we're navigating within
*/
export declare function handleSegmentNavigation(e: KeyboardEvent, fieldId: string): void;
/**
* Retrieves the next segment in the list of segments relative to the provided node.
*
* @param node - The node we're starting from
* @param segments - The list of candidate segments to navigate through
*/
export declare function getNextSegment(node: HTMLElement, segments: HTMLElement[]): HTMLElement | null;
/**
* Retrieves the previous segment in the list of segments relative to the provided node.
*
* @param node - The node we're starting from
* @param segments - The list of candidate segments to navigate through
*/
export declare function getPrevSegment(node: HTMLElement, segments: HTMLElement[]): HTMLElement | null;
/**
* Retrieves an object containing the next and previous segments relative to the current node.
*
* @param node - The node we're starting from
* @param fieldId - The ID of the field we're navigating within
*/
export declare function getPrevNextSegments(node: HTMLElement, fieldId: string): {
next: HTMLElement | null;
prev: HTMLElement | null;
};
/**
* Shifts the focus to the next segment in the list of segments
* within the field identified by the provided ID.
*/
export declare function moveToNextSegment(e: KeyboardEvent, fieldId: string): void;
export declare function isSegmentNavigationKey(key: string): boolean;
/**
* Retrieves all the interactive segments within the field identified by the provided ID.
*/
export declare function getSegments(id: string): HTMLElement[];
/**
* Get the first interactive segment within the field identified by the provided ID.
*/
export declare function getFirstSegment(id: string): HTMLElement;
|