7
7
import { AfterContentInit } from ' @angular/core' ;
8
8
import { AfterViewInit } from ' @angular/core' ;
9
9
import { Direction } from ' @angular/cdk/bidi' ;
10
+ import { ElementRef } from ' @angular/core' ;
10
11
import { EventEmitter } from ' @angular/core' ;
12
+ import { FlexibleConnectedPositionStrategyOrigin } from ' @angular/cdk/overlay' ;
11
13
import { FocusableOption } from ' @angular/cdk/a11y' ;
12
14
import { FocusOrigin } from ' @angular/cdk/a11y' ;
13
15
import * as i0 from ' @angular/core' ;
@@ -18,7 +20,9 @@ import { InjectionToken } from '@angular/core';
18
20
import { Observable } from ' rxjs' ;
19
21
import { OnDestroy } from ' @angular/core' ;
20
22
import { OnInit } from ' @angular/core' ;
23
+ import { OverlayRef } from ' @angular/cdk/overlay' ;
21
24
import { QueryList } from ' @angular/core' ;
25
+ import * as rxjs from ' rxjs' ;
22
26
import { ScrollStrategy } from ' @angular/cdk/overlay' ;
23
27
import { Subject } from ' rxjs' ;
24
28
import { TemplateRef } from ' @angular/core' ;
@@ -190,7 +194,7 @@ export class MatMenuModule {
190
194
// (undocumented)
191
195
static ɵinj: i0 .ɵɵInjectorDeclaration <MatMenuModule >;
192
196
// (undocumented)
193
- static ɵmod: i0 .ɵɵNgModuleDeclaration <MatMenuModule , never , [typeof MatRippleModule , typeof MatCommonModule , typeof i2 .OverlayModule , typeof MatMenu , typeof MatMenuItem , typeof MatMenuContent , typeof MatMenuTrigger ], [typeof i5 .CdkScrollableModule , typeof MatMenu , typeof MatCommonModule , typeof MatMenuItem , typeof MatMenuContent , typeof MatMenuTrigger ]>;
197
+ static ɵmod: i0 .ɵɵNgModuleDeclaration <MatMenuModule , never , [typeof MatRippleModule , typeof MatCommonModule , typeof i2 .OverlayModule , typeof MatMenu , typeof MatMenuItem , typeof MatMenuContent , typeof MatMenuTrigger , typeof MatContextMenuTrigger ], [typeof i5 .CdkScrollableModule , typeof MatMenu , typeof MatCommonModule , typeof MatMenuItem , typeof MatMenuContent , typeof MatMenuTrigger , typeof MatContextMenuTrigger ]>;
194
198
}
195
199
196
200
// @public
@@ -234,22 +238,23 @@ export interface MatMenuPanel<T = any> {
234
238
}
235
239
236
240
// @public
237
- export class MatMenuTrigger implements AfterContentInit , OnDestroy {
241
+ export class MatMenuTrigger extends MatMenuTriggerBase implements AfterContentInit , OnDestroy {
238
242
constructor (... args : unknown []);
239
243
closeMenu(): void ;
240
244
// @deprecated (undocumented)
241
245
get _deprecatedMatMenuTriggerFor(): MatMenuPanel | null ;
242
246
set _deprecatedMatMenuTriggerFor(v : MatMenuPanel | null );
243
- get dir(): Direction ;
244
- focus(origin ? : FocusOrigin , options ? : FocusOptions ): void ;
247
+ // (undocumented)
248
+ protected _getOutsideClickStream(overlayRef : OverlayRef ): rxjs .Observable <MouseEvent >;
249
+ // (undocumented)
250
+ protected _getOverlayOrigin(): i0 .ElementRef <HTMLElement >;
245
251
_handleClick(event : MouseEvent ): void ;
246
252
_handleKeydown(event : KeyboardEvent ): void ;
247
253
_handleMousedown(event : MouseEvent ): void ;
248
254
get menu(): MatMenuPanel | null ;
249
255
set menu(menu : MatMenuPanel | null );
250
256
readonly menuClosed: EventEmitter <void >;
251
257
menuData: any ;
252
- get menuOpen(): boolean ;
253
258
readonly menuOpened: EventEmitter <void >;
254
259
// (undocumented)
255
260
ngAfterContentInit(): void ;
@@ -259,8 +264,6 @@ export class MatMenuTrigger implements AfterContentInit, OnDestroy {
259
264
readonly onMenuClose: EventEmitter <void >;
260
265
// @deprecated
261
266
readonly onMenuOpen: EventEmitter <void >;
262
- // (undocumented)
263
- _openedBy: Exclude <FocusOrigin , ' program' | null > | undefined ;
264
267
openMenu(): void ;
265
268
restoreFocus: boolean ;
266
269
toggleMenu(): void ;
0 commit comments