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 | import { NgZone } from '@angular/core';
|
---|
9 | import { InteractivityChecker } from '../interactivity-checker/interactivity-checker';
|
---|
10 | import { FocusTrap } from './focus-trap';
|
---|
11 | import { FocusTrapManager, ManagedFocusTrap } from './focus-trap-manager';
|
---|
12 | import { FocusTrapInertStrategy } from './focus-trap-inert-strategy';
|
---|
13 | import { ConfigurableFocusTrapConfig } from './configurable-focus-trap-config';
|
---|
14 | /**
|
---|
15 | * Class that allows for trapping focus within a DOM element.
|
---|
16 | *
|
---|
17 | * This class uses a strategy pattern that determines how it traps focus.
|
---|
18 | * See FocusTrapInertStrategy.
|
---|
19 | */
|
---|
20 | export declare class ConfigurableFocusTrap extends FocusTrap implements ManagedFocusTrap {
|
---|
21 | private _focusTrapManager;
|
---|
22 | private _inertStrategy;
|
---|
23 | /** Whether the FocusTrap is enabled. */
|
---|
24 | get enabled(): boolean;
|
---|
25 | set enabled(value: boolean);
|
---|
26 | constructor(_element: HTMLElement, _checker: InteractivityChecker, _ngZone: NgZone, _document: Document, _focusTrapManager: FocusTrapManager, _inertStrategy: FocusTrapInertStrategy, config: ConfigurableFocusTrapConfig);
|
---|
27 | /** Notifies the FocusTrapManager that this FocusTrap will be destroyed. */
|
---|
28 | destroy(): void;
|
---|
29 | /** @docs-private Implemented as part of ManagedFocusTrap. */
|
---|
30 | _enable(): void;
|
---|
31 | /** @docs-private Implemented as part of ManagedFocusTrap. */
|
---|
32 | _disable(): void;
|
---|
33 | }
|
---|