@@ -79,6 +79,8 @@ export declare class EventListenerFocusTrapInertStrategy implements FocusTrapIne
79
79
preventFocus ( focusTrap : ConfigurableFocusTrap ) : void ;
80
80
}
81
81
82
+ export declare const FOCUS_MONITOR_GLOBAL_OPTIONS : InjectionToken < Partial < FocusMonitorOptions > > ;
83
+
82
84
export declare const FOCUS_TRAP_INERT_STRATEGY : InjectionToken < FocusTrapInertStrategy > ;
83
85
84
86
export interface FocusableOption extends ListKeyManagerOption {
@@ -92,19 +94,26 @@ export declare class FocusKeyManager<T> extends ListKeyManager<FocusableOption &
92
94
}
93
95
94
96
export declare class FocusMonitor implements OnDestroy {
95
- constructor ( _ngZone : NgZone , _platform : Platform ) ;
97
+ constructor ( _ngZone : NgZone , _platform : Platform , globalFocusMonitorOptions ?: Partial < FocusMonitorOptions > ) ;
96
98
_onBlur ( event : FocusEvent , element : HTMLElement ) : void ;
97
99
focusVia ( element : HTMLElement , origin : FocusOrigin , options ?: FocusOptions ) : void ;
98
100
focusVia ( element : ElementRef < HTMLElement > , origin : FocusOrigin , options ?: FocusOptions ) : void ;
99
101
monitor ( element : HTMLElement , checkChildren ?: boolean ) : Observable < FocusOrigin > ;
100
102
monitor ( element : ElementRef < HTMLElement > , checkChildren ?: boolean ) : Observable < FocusOrigin > ;
103
+ monitor ( element : HTMLElement , options ?: FocusMonitorOptions ) : Observable < FocusOrigin > ;
104
+ monitor ( element : ElementRef < HTMLElement > , options ?: FocusMonitorOptions ) : Observable < FocusOrigin > ;
101
105
ngOnDestroy ( ) : void ;
102
106
stopMonitoring ( element : HTMLElement ) : void ;
103
107
stopMonitoring ( element : ElementRef < HTMLElement > ) : void ;
104
108
static ɵfac : i0 . ɵɵFactoryDef < FocusMonitor > ;
105
109
static ɵprov : i0 . ɵɵInjectableDef < FocusMonitor > ;
106
110
}
107
111
112
+ export interface FocusMonitorOptions {
113
+ checkChildren : boolean ;
114
+ detectionWindow : number | 'indefinite' ;
115
+ }
116
+
108
117
export interface FocusOptions {
109
118
preventScroll ?: boolean ;
110
119
}
0 commit comments