1 | import { NgZone } from '@angular/core';
|
2 | import { Observable } from 'rxjs';
|
3 | export declare const FOCUSABLE_ELEMENTS_SELECTOR: string;
|
4 | /**
|
5 | * Returns first and last focusable elements inside of a given element based on specific CSS selector
|
6 | */
|
7 | export declare function getFocusableBoundaryElements(element: HTMLElement): HTMLElement[];
|
8 | /**
|
9 | * Function that enforces browser focus to be trapped inside a DOM element.
|
10 | *
|
11 | * Works only for clicks inside the element and navigation with 'Tab', ignoring clicks outside of the element
|
12 | *
|
13 | * @param zone Angular zone
|
14 | * @param element The element around which focus will be trapped inside
|
15 | * @param stopFocusTrap$ The observable stream. When completed the focus trap will clean up listeners
|
16 | * and free internal resources
|
17 | * @param refocusOnClick Put the focus back to the last focused element whenever a click occurs on element (default to
|
18 | * false)
|
19 | */
|
20 | export declare const ngbFocusTrap: (zone: NgZone, element: HTMLElement, stopFocusTrap$: Observable<any>, refocusOnClick?: boolean) => void;
|