Skip to content

Commit 673e05d

Browse files
committed
Accept updated declaration file.
1 parent c908f35 commit 673e05d

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

tools/public_api_guard/cdk/a11y.d.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ export declare class EventListenerFocusTrapInertStrategy implements FocusTrapIne
7979
preventFocus(focusTrap: ConfigurableFocusTrap): void;
8080
}
8181

82+
export declare const FOCUS_MONITOR_GLOBAL_OPTIONS: InjectionToken<Partial<FocusMonitorOptions>>;
83+
8284
export declare const FOCUS_TRAP_INERT_STRATEGY: InjectionToken<FocusTrapInertStrategy>;
8385

8486
export interface FocusableOption extends ListKeyManagerOption {
@@ -92,19 +94,26 @@ export declare class FocusKeyManager<T> extends ListKeyManager<FocusableOption &
9294
}
9395

9496
export declare class FocusMonitor implements OnDestroy {
95-
constructor(_ngZone: NgZone, _platform: Platform);
97+
constructor(_ngZone: NgZone, _platform: Platform, globalFocusMonitorOptions?: Partial<FocusMonitorOptions>);
9698
_onBlur(event: FocusEvent, element: HTMLElement): void;
9799
focusVia(element: HTMLElement, origin: FocusOrigin, options?: FocusOptions): void;
98100
focusVia(element: ElementRef<HTMLElement>, origin: FocusOrigin, options?: FocusOptions): void;
99101
monitor(element: HTMLElement, checkChildren?: boolean): Observable<FocusOrigin>;
100102
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>;
101105
ngOnDestroy(): void;
102106
stopMonitoring(element: HTMLElement): void;
103107
stopMonitoring(element: ElementRef<HTMLElement>): void;
104108
static ɵfac: i0.ɵɵFactoryDef<FocusMonitor>;
105109
static ɵprov: i0.ɵɵInjectableDef<FocusMonitor>;
106110
}
107111

112+
export interface FocusMonitorOptions {
113+
checkChildren: boolean;
114+
detectionWindow: number | 'indefinite';
115+
}
116+
108117
export interface FocusOptions {
109118
preventScroll?: boolean;
110119
}

0 commit comments

Comments
 (0)