source: trip-planner-front/node_modules/@angular/cdk/a11y/focus-trap/configurable-focus-trap.d.ts@ 6a3a178

Last change on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.5 KB
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 */
8import { NgZone } from '@angular/core';
9import { InteractivityChecker } from '../interactivity-checker/interactivity-checker';
10import { FocusTrap } from './focus-trap';
11import { FocusTrapManager, ManagedFocusTrap } from './focus-trap-manager';
12import { FocusTrapInertStrategy } from './focus-trap-inert-strategy';
13import { 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 */
20export 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}
Note: See TracBrowser for help on using the repository browser.