Skip to content

Commit 02c003f

Browse files
committed
feat(cdk/a11y): Add new API goldens
1 parent 977680b commit 02c003f

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

tools/public_api_guard/cdk/a11y.d.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,25 @@ export interface Highlightable extends ListKeyManagerOption {
186186
setInactiveStyles(): void;
187187
}
188188

189+
export declare const INPUT_MODALITY_DETECTOR_DEFAULT_OPTIONS: InputModalityDetectorOptions;
190+
191+
export declare const INPUT_MODALITY_DETECTOR_OPTIONS: InjectionToken<InputModalityDetectorOptions>;
192+
193+
export declare type InputModality = 'keyboard' | 'mouse' | 'touch' | null;
194+
195+
export declare class InputModalityDetector implements OnDestroy {
196+
get inputModality(): InputModality;
197+
readonly inputModalityChange: Observable<InputModality>;
198+
constructor(platform: Platform, document: Document, options?: InputModalityDetectorOptions);
199+
ngOnDestroy(): void;
200+
static ɵfac: i0.ɵɵFactoryDef<InputModalityDetector, [null, null, { optional: true; }]>;
201+
static ɵprov: i0.ɵɵInjectableDef<InputModalityDetector>;
202+
}
203+
204+
export interface InputModalityDetectorOptions {
205+
ignoreKeys?: string[];
206+
}
207+
189208
export declare class InteractivityChecker {
190209
constructor(_platform: Platform);
191210
isDisabled(element: HTMLElement): boolean;
@@ -266,4 +285,6 @@ export interface RegisteredMessage {
266285
referenceCount: number;
267286
}
268287

288+
export declare const TIME_AFTER_TOUCH_MS = 650;
289+
269290
export declare const TOUCH_BUFFER_MS = 650;

0 commit comments

Comments
 (0)