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 { ConfigurableFocusTrap } from './configurable-focus-trap';
|
---|
11 | import { ConfigurableFocusTrapConfig } from './configurable-focus-trap-config';
|
---|
12 | import { FocusTrapInertStrategy } from './focus-trap-inert-strategy';
|
---|
13 | import { FocusTrapManager } from './focus-trap-manager';
|
---|
14 | /** Factory that allows easy instantiation of configurable focus traps. */
|
---|
15 | import * as ɵngcc0 from '@angular/core';
|
---|
16 | export declare class ConfigurableFocusTrapFactory {
|
---|
17 | private _checker;
|
---|
18 | private _ngZone;
|
---|
19 | private _focusTrapManager;
|
---|
20 | private _document;
|
---|
21 | private _inertStrategy;
|
---|
22 | constructor(_checker: InteractivityChecker, _ngZone: NgZone, _focusTrapManager: FocusTrapManager, _document: any, _inertStrategy?: FocusTrapInertStrategy);
|
---|
23 | /**
|
---|
24 | * Creates a focus-trapped region around the given element.
|
---|
25 | * @param element The element around which focus will be trapped.
|
---|
26 | * @param config The focus trap configuration.
|
---|
27 | * @returns The created focus trap instance.
|
---|
28 | */
|
---|
29 | create(element: HTMLElement, config?: ConfigurableFocusTrapConfig): ConfigurableFocusTrap;
|
---|
30 | /**
|
---|
31 | * @deprecated Pass a config object instead of the `deferCaptureElements` flag.
|
---|
32 | * @breaking-change 11.0.0
|
---|
33 | */
|
---|
34 | create(element: HTMLElement, deferCaptureElements: boolean): ConfigurableFocusTrap;
|
---|
35 | static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<ConfigurableFocusTrapFactory, [null, null, null, null, { optional: true; }]>;
|
---|
36 | }
|
---|
37 |
|
---|
38 | //# sourceMappingURL=configurable-focus-trap-factory.d.ts.map |
---|