Last change
on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
971 bytes
|
Line | |
---|
1 | /**
|
---|
2 | * @license
|
---|
3 | * Copyright Google LLC All Rights Reserved.
|
---|
4 | *
|
---|
5 | * Use of this source code is governed by an MIT-style license that can be
|
---|
6 | * found in the LICENSE file at https://angular.io/license
|
---|
7 | */
|
---|
8 | /**
|
---|
9 | * A FocusTrap managed by FocusTrapManager.
|
---|
10 | * Implemented by ConfigurableFocusTrap to avoid circular dependency.
|
---|
11 | */
|
---|
12 | export interface ManagedFocusTrap {
|
---|
13 | _enable(): void;
|
---|
14 | _disable(): void;
|
---|
15 | focusInitialElementWhenReady(): Promise<boolean>;
|
---|
16 | }
|
---|
17 | /** Injectable that ensures only the most recently enabled FocusTrap is active. */
|
---|
18 | export declare class FocusTrapManager {
|
---|
19 | private _focusTrapStack;
|
---|
20 | /**
|
---|
21 | * Disables the FocusTrap at the top of the stack, and then pushes
|
---|
22 | * the new FocusTrap onto the stack.
|
---|
23 | */
|
---|
24 | register(focusTrap: ManagedFocusTrap): void;
|
---|
25 | /**
|
---|
26 | * Removes the FocusTrap from the stack, and activates the
|
---|
27 | * FocusTrap that is the new top of the stack.
|
---|
28 | */
|
---|
29 | deregister(focusTrap: ManagedFocusTrap): void;
|
---|
30 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.