license import { InjectionToken } from '@angular/core' ; import { FocusTrap } from './focus-trap' ; /** The injection token used to specify the inert strategy. */ export const FOCUS_TRAP_INERT_STRATEGY = new InjectionToken < FocusTrapInertStrategy > ( 'FOCUS_TRAP_INERT_STRATEGY' ) ; /**
 * A strategy that dictates how FocusTrap should prevent elements
 * outside of the FocusTrap from being focused.
 */ export interface FocusTrapInertStrategy { /** Makes all elements outside focusTrap unfocusable. */ preventFocus ( focusTrap ) : void ; /** Reverts elements made unfocusable by preventFocus to their previous state. */ allowFocus ( focusTrap ) : void ; }