|
| 1 | +export declare class A11yModule { |
| 2 | +} |
| 3 | + |
| 4 | +export declare class ActiveDescendantKeyManager<T> extends ListKeyManager<Highlightable & T> { |
| 5 | + setActiveItem(index: number): void; |
| 6 | + setActiveItem(item: T): void; |
| 7 | +} |
| 8 | + |
| 9 | +export declare const ARIA_DESCRIBER_PROVIDER: { |
| 10 | + provide: typeof AriaDescriber; |
| 11 | + deps: (Optional[] | InjectionToken<any>)[]; |
| 12 | + useFactory: typeof ARIA_DESCRIBER_PROVIDER_FACTORY; |
| 13 | +}; |
| 14 | + |
| 15 | +export declare function ARIA_DESCRIBER_PROVIDER_FACTORY(parentDispatcher: AriaDescriber, _document: any): AriaDescriber; |
| 16 | + |
| 17 | +export declare class AriaDescriber implements OnDestroy { |
| 18 | + constructor(_document: any); |
| 19 | + describe(hostElement: Element, message: string): void; |
| 20 | + ngOnDestroy(): void; |
| 21 | + removeDescription(hostElement: Element, message: string): void; |
| 22 | +} |
| 23 | + |
| 24 | +export declare type AriaLivePoliteness = 'off' | 'polite' | 'assertive'; |
| 25 | + |
| 26 | +export declare const CDK_DESCRIBEDBY_HOST_ATTRIBUTE = "cdk-describedby-host"; |
| 27 | + |
| 28 | +export declare const CDK_DESCRIBEDBY_ID_PREFIX = "cdk-describedby-message"; |
| 29 | + |
| 30 | +export declare class CdkAriaLive implements OnDestroy { |
| 31 | + politeness: AriaLivePoliteness; |
| 32 | + constructor(_elementRef: ElementRef, _liveAnnouncer: LiveAnnouncer, _contentObserver: ContentObserver, _ngZone: NgZone); |
| 33 | + ngOnDestroy(): void; |
| 34 | +} |
| 35 | + |
| 36 | +export declare class CdkMonitorFocus implements OnDestroy { |
| 37 | + cdkFocusChange: EventEmitter<FocusOrigin>; |
| 38 | + constructor(_elementRef: ElementRef<HTMLElement>, _focusMonitor: FocusMonitor); |
| 39 | + ngOnDestroy(): void; |
| 40 | +} |
| 41 | + |
| 42 | +export declare class CdkTrapFocus implements OnDestroy, AfterContentInit, DoCheck { |
| 43 | + autoCapture: boolean; |
| 44 | + enabled: boolean; |
| 45 | + focusTrap: FocusTrap; |
| 46 | + constructor(_elementRef: ElementRef<HTMLElement>, _focusTrapFactory: FocusTrapFactory, _document: any); |
| 47 | + ngAfterContentInit(): void; |
| 48 | + ngDoCheck(): void; |
| 49 | + ngOnDestroy(): void; |
| 50 | +} |
| 51 | + |
| 52 | +export declare const FOCUS_MONITOR_PROVIDER: { |
| 53 | + provide: typeof FocusMonitor; |
| 54 | + deps: (Optional[] | typeof NgZone | typeof Platform)[]; |
| 55 | + useFactory: typeof FOCUS_MONITOR_PROVIDER_FACTORY; |
| 56 | +}; |
| 57 | + |
| 58 | +export declare function FOCUS_MONITOR_PROVIDER_FACTORY(parentDispatcher: FocusMonitor, ngZone: NgZone, platform: Platform): FocusMonitor; |
| 59 | + |
| 60 | +export interface FocusableOption extends ListKeyManagerOption { |
| 61 | + focus(origin?: FocusOrigin): void; |
| 62 | +} |
| 63 | + |
| 64 | +export declare class FocusKeyManager<T> extends ListKeyManager<FocusableOption & T> { |
| 65 | + setActiveItem(index: number): void; |
| 66 | + setActiveItem(item: T): void; |
| 67 | + setFocusOrigin(origin: FocusOrigin): this; |
| 68 | +} |
| 69 | + |
| 70 | +export declare class FocusMonitor implements OnDestroy { |
| 71 | + constructor(_ngZone: NgZone, _platform: Platform); |
| 72 | + _onBlur(event: FocusEvent, element: HTMLElement): void; |
| 73 | + focusVia(element: ElementRef<HTMLElement>, origin: FocusOrigin, options?: FocusOptions): void; |
| 74 | + focusVia(element: HTMLElement, origin: FocusOrigin, options?: FocusOptions): void; |
| 75 | + monitor(element: HTMLElement, checkChildren?: boolean): Observable<FocusOrigin>; |
| 76 | + monitor(element: ElementRef<HTMLElement>, checkChildren?: boolean): Observable<FocusOrigin>; |
| 77 | + ngOnDestroy(): void; |
| 78 | + stopMonitoring(element: ElementRef<HTMLElement>): void; |
| 79 | + stopMonitoring(element: HTMLElement): void; |
| 80 | +} |
| 81 | + |
| 82 | +export interface FocusOptions { |
| 83 | + preventScroll?: boolean; |
| 84 | +} |
| 85 | + |
| 86 | +export declare type FocusOrigin = 'touch' | 'mouse' | 'keyboard' | 'program' | null; |
| 87 | + |
| 88 | +export declare class FocusTrap { |
| 89 | + enabled: boolean; |
| 90 | + constructor(_element: HTMLElement, _checker: InteractivityChecker, _ngZone: NgZone, _document: Document, deferAnchors?: boolean); |
| 91 | + attachAnchors(): boolean; |
| 92 | + destroy(): void; |
| 93 | + focusFirstTabbableElement(): boolean; |
| 94 | + focusFirstTabbableElementWhenReady(): Promise<boolean>; |
| 95 | + focusInitialElement(): boolean; |
| 96 | + focusInitialElementWhenReady(): Promise<boolean>; |
| 97 | + focusLastTabbableElement(): boolean; |
| 98 | + focusLastTabbableElementWhenReady(): Promise<boolean>; |
| 99 | + hasAttached(): boolean; |
| 100 | +} |
| 101 | + |
| 102 | +export declare class FocusTrapFactory { |
| 103 | + constructor(_checker: InteractivityChecker, _ngZone: NgZone, _document: any); |
| 104 | + create(element: HTMLElement, deferCaptureElements?: boolean): FocusTrap; |
| 105 | +} |
| 106 | + |
| 107 | +export interface Highlightable extends ListKeyManagerOption { |
| 108 | + setActiveStyles(): void; |
| 109 | + setInactiveStyles(): void; |
| 110 | +} |
| 111 | + |
| 112 | +export declare class InteractivityChecker { |
| 113 | + constructor(_platform: Platform); |
| 114 | + isDisabled(element: HTMLElement): boolean; |
| 115 | + isFocusable(element: HTMLElement): boolean; |
| 116 | + isTabbable(element: HTMLElement): boolean; |
| 117 | + isVisible(element: HTMLElement): boolean; |
| 118 | +} |
| 119 | + |
| 120 | +export declare function isFakeMousedownFromScreenReader(event: MouseEvent): boolean; |
| 121 | + |
| 122 | +export declare class ListKeyManager<T extends ListKeyManagerOption> { |
| 123 | + readonly activeItem: T | null; |
| 124 | + readonly activeItemIndex: number | null; |
| 125 | + change: Subject<number>; |
| 126 | + tabOut: Subject<void>; |
| 127 | + constructor(_items: QueryList<T> | T[]); |
| 128 | + onKeydown(event: KeyboardEvent): void; |
| 129 | + setActiveItem(index: number): void; |
| 130 | + setActiveItem(item: T): void; |
| 131 | + setFirstItemActive(): void; |
| 132 | + setLastItemActive(): void; |
| 133 | + setNextItemActive(): void; |
| 134 | + setPreviousItemActive(): void; |
| 135 | + skipPredicate(predicate: (item: T) => boolean): this; |
| 136 | + updateActiveItem(item: T): void; |
| 137 | + updateActiveItem(index: number): void; |
| 138 | + updateActiveItemIndex(index: number): void; |
| 139 | + withAllowedModifierKeys(keys: ListKeyManagerModifierKey[]): this; |
| 140 | + withHorizontalOrientation(direction: 'ltr' | 'rtl' | null): this; |
| 141 | + withTypeAhead(debounceInterval?: number): this; |
| 142 | + withVerticalOrientation(enabled?: boolean): this; |
| 143 | + withWrap(shouldWrap?: boolean): this; |
| 144 | +} |
| 145 | + |
| 146 | +export declare type ListKeyManagerModifierKey = 'altKey' | 'ctrlKey' | 'metaKey' | 'shiftKey'; |
| 147 | + |
| 148 | +export interface ListKeyManagerOption { |
| 149 | + disabled?: boolean; |
| 150 | + getLabel?(): string; |
| 151 | +} |
| 152 | + |
| 153 | +export declare const LIVE_ANNOUNCER_ELEMENT_TOKEN: InjectionToken<HTMLElement | null>; |
| 154 | + |
| 155 | +export declare function LIVE_ANNOUNCER_ELEMENT_TOKEN_FACTORY(): null; |
| 156 | + |
| 157 | +export declare const LIVE_ANNOUNCER_PROVIDER: Provider; |
| 158 | + |
| 159 | +export declare function LIVE_ANNOUNCER_PROVIDER_FACTORY(parentDispatcher: LiveAnnouncer, liveElement: any, _document: any, ngZone: NgZone): LiveAnnouncer; |
| 160 | + |
| 161 | +export declare class LiveAnnouncer implements OnDestroy { |
| 162 | + constructor(elementToken: any, _ngZone: NgZone, _document: any); |
| 163 | + announce(message: string): Promise<void>; |
| 164 | + announce(message: string, duration?: number): Promise<void>; |
| 165 | + announce(message: string, politeness?: AriaLivePoliteness, duration?: number): Promise<void>; |
| 166 | + announce(message: string, politeness?: AriaLivePoliteness): Promise<void>; |
| 167 | + clear(): void; |
| 168 | + ngOnDestroy(): void; |
| 169 | +} |
| 170 | + |
| 171 | +export declare const MESSAGES_CONTAINER_ID = "cdk-describedby-message-container"; |
| 172 | + |
| 173 | +export interface RegisteredMessage { |
| 174 | + messageElement: Element; |
| 175 | + referenceCount: number; |
| 176 | +} |
| 177 | + |
| 178 | +export declare const TOUCH_BUFFER_MS = 650; |
0 commit comments