@@ -24,8 +24,8 @@ import { FocusableOption } from '@angular/cdk/a11y';
2424import { FocusMonitor } from ' @angular/cdk/a11y' ;
2525import { FocusOrigin } from ' @angular/cdk/a11y' ;
2626import * as i0 from ' @angular/core' ;
27- import * as i3 from ' @angular/material/core ' ;
28- import * as i6 from ' @angular/common ' ;
27+ import * as i5 from ' @angular/common ' ;
28+ import * as i6 from ' @angular/material/core ' ;
2929import * as i7 from ' @angular/cdk/overlay' ;
3030import * as i8 from ' @angular/cdk/scrolling' ;
3131import { InjectionToken } from ' @angular/core' ;
@@ -162,17 +162,25 @@ export class _MatMenuBase implements AfterContentInit, MatMenuPanel<MatMenuItem>
162162}
163163
164164// @public
165- export class MatMenuContent implements OnDestroy {
165+ export class MatMenuContent extends _MatMenuContentBase {
166+ // (undocumented)
167+ static ɵdir: i0 .ɵɵDirectiveDeclaration <MatMenuContent , " ng-template[matMenuContent]" , never , {}, {}, never >;
168+ // (undocumented)
169+ static ɵfac: i0 .ɵɵFactoryDeclaration <MatMenuContent , never >;
170+ }
171+
172+ // @public (undocumented)
173+ export abstract class _MatMenuContentBase implements OnDestroy {
166174 constructor (_template : TemplateRef <any >, _componentFactoryResolver : ComponentFactoryResolver , _appRef : ApplicationRef , _injector : Injector , _viewContainerRef : ViewContainerRef , _document : any , _changeDetectorRef ? : ChangeDetectorRef | undefined );
167175 attach(context ? : any ): void ;
168176 readonly _attached: Subject <void >;
169177 detach(): void ;
170178 // (undocumented)
171179 ngOnDestroy(): void ;
172180 // (undocumented)
173- static ɵdir: i0 .ɵɵDirectiveDeclaration <MatMenuContent , " ng-template[matMenuContent] " , never , {}, {}, never >;
181+ static ɵdir: i0 .ɵɵDirectiveDeclaration <_MatMenuContentBase , never , never , {}, {}, never >;
174182 // (undocumented)
175- static ɵfac: i0 .ɵɵFactoryDeclaration <MatMenuContent , never >;
183+ static ɵfac: i0 .ɵɵFactoryDeclaration <_MatMenuContentBase , never >;
176184}
177185
178186// @public
@@ -185,16 +193,6 @@ export interface MatMenuDefaultOptions {
185193 yPosition: MenuPositionY ;
186194}
187195
188- // @public
189- export class _MatMenuDirectivesModule {
190- // (undocumented)
191- static ɵfac: i0 .ɵɵFactoryDeclaration <_MatMenuDirectivesModule , never >;
192- // (undocumented)
193- static ɵinj: i0 .ɵɵInjectorDeclaration <_MatMenuDirectivesModule >;
194- // (undocumented)
195- static ɵmod: i0 .ɵɵNgModuleDeclaration <_MatMenuDirectivesModule , [typeof i1 .MatMenuTrigger , typeof i2 .MatMenuContent ], never , [typeof i1 .MatMenuTrigger , typeof i2 .MatMenuContent , typeof i3 .MatCommonModule ]>;
196- }
197-
198196// @public
199197export class MatMenuItem extends _MatMenuItemBase implements FocusableOption , CanDisable , CanDisableRipple , AfterViewInit , OnDestroy {
200198 constructor (_elementRef : ElementRef <HTMLElement >,
@@ -236,7 +234,7 @@ export class MatMenuModule {
236234 // (undocumented)
237235 static ɵinj: i0 .ɵɵInjectorDeclaration <MatMenuModule >;
238236 // (undocumented)
239- static ɵmod: i0 .ɵɵNgModuleDeclaration <MatMenuModule , [typeof i4 .MatMenu , typeof i5 .MatMenuItem ], [typeof i6 .CommonModule , typeof i3 .MatCommonModule , typeof i3 .MatRippleModule , typeof i7 .OverlayModule , typeof _MatMenuDirectivesModule ], [typeof i8 .CdkScrollableModule , typeof i3 .MatCommonModule , typeof i4 .MatMenu , typeof i5 .MatMenuItem , typeof _MatMenuDirectivesModule ]>;
237+ static ɵmod: i0 .ɵɵNgModuleDeclaration <MatMenuModule , [typeof i1 .MatMenu , typeof i2 .MatMenuItem , typeof i3 . MatMenuTrigger , typeof i4 . MatMenuContent ], [typeof i5 .CommonModule , typeof i6 .MatCommonModule , typeof i6 .MatRippleModule , typeof i7 .OverlayModule ], [typeof i8 .CdkScrollableModule , typeof i6 .MatCommonModule , typeof i1 .MatMenu , typeof i2 .MatMenuItem , typeof i3 . MatMenuTrigger , typeof i4 . MatMenuContent ]>;
240238}
241239
242240// @public
@@ -280,8 +278,22 @@ export interface MatMenuPanel<T = any> {
280278}
281279
282280// @public
283- export class MatMenuTrigger implements AfterContentInit , OnDestroy {
281+ export class MatMenuTrigger extends _MatMenuTriggerBase {
282+ // (undocumented)
283+ static ɵdir: i0 .ɵɵDirectiveDeclaration <MatMenuTrigger , " [mat-menu-trigger-for], [matMenuTriggerFor]" , [" matMenuTrigger" ], {}, {}, never >;
284+ // (undocumented)
285+ static ɵfac: i0 .ɵɵFactoryDeclaration <MatMenuTrigger , never >;
286+ }
287+
288+ // @public (undocumented)
289+ export abstract class _MatMenuTriggerBase implements AfterContentInit , OnDestroy {
284290 constructor (_overlay : Overlay , _element : ElementRef <HTMLElement >, _viewContainerRef : ViewContainerRef , scrollStrategy : any , parentMenu : MatMenuPanel , _menuItemInstance : MatMenuItem , _dir : Directionality , _focusMonitor ? : FocusMonitor | undefined );
291+ // (undocumented)
292+ get _ariaControl(): string | null | undefined ;
293+ // (undocumented)
294+ get _ariaExpanded(): true | null ;
295+ // (undocumented)
296+ _ariaHaspopup: boolean ;
285297 closeMenu(): void ;
286298 // @deprecated (undocumented)
287299 get _deprecatedMatMenuTriggerFor(): MatMenuPanel ;
@@ -313,9 +325,9 @@ export class MatMenuTrigger implements AfterContentInit, OnDestroy {
313325 triggersSubmenu(): boolean ;
314326 updatePosition(): void ;
315327 // (undocumented)
316- static ɵdir: i0 .ɵɵDirectiveDeclaration <MatMenuTrigger , " [mat-menu-trigger-for], [matMenuTriggerFor] " , [ " matMenuTrigger " ] , { " _deprecatedMatMenuTriggerFor" : " mat-menu-trigger-for" ; " menu" : " matMenuTriggerFor" ; " menuData" : " matMenuTriggerData" ; " restoreFocus" : " matMenuTriggerRestoreFocus" ; }, { " menuOpened" : " menuOpened" ; " onMenuOpen" : " onMenuOpen" ; " menuClosed" : " menuClosed" ; " onMenuClose" : " onMenuClose" ; }, never >;
328+ static ɵdir: i0 .ɵɵDirectiveDeclaration <_MatMenuTriggerBase , never , never , { " _deprecatedMatMenuTriggerFor" : " mat-menu-trigger-for" ; " menu" : " matMenuTriggerFor" ; " menuData" : " matMenuTriggerData" ; " restoreFocus" : " matMenuTriggerRestoreFocus" ; }, { " menuOpened" : " menuOpened" ; " onMenuOpen" : " onMenuOpen" ; " menuClosed" : " menuClosed" ; " onMenuClose" : " onMenuClose" ; }, never >;
317329 // (undocumented)
318- static ɵfac: i0 .ɵɵFactoryDeclaration <MatMenuTrigger , [null , null , null , null , { optional: true ; }, { optional: true ; self: true ; }, { optional: true ; }, null ]>;
330+ static ɵfac: i0 .ɵɵFactoryDeclaration <_MatMenuTriggerBase , [null , null , null , null , { optional: true ; }, { optional: true ; self: true ; }, { optional: true ; }, null ]>;
319331}
320332
321333// @public
0 commit comments