@@ -24,8 +24,8 @@ import { FocusableOption } from '@angular/cdk/a11y';
24
24
import { FocusMonitor } from ' @angular/cdk/a11y' ;
25
25
import { FocusOrigin } from ' @angular/cdk/a11y' ;
26
26
import * 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 ' ;
29
29
import * as i7 from ' @angular/cdk/overlay' ;
30
30
import * as i8 from ' @angular/cdk/scrolling' ;
31
31
import { InjectionToken } from ' @angular/core' ;
@@ -162,17 +162,25 @@ export class _MatMenuBase implements AfterContentInit, MatMenuPanel<MatMenuItem>
162
162
}
163
163
164
164
// @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 {
166
174
constructor (_template : TemplateRef <any >, _componentFactoryResolver : ComponentFactoryResolver , _appRef : ApplicationRef , _injector : Injector , _viewContainerRef : ViewContainerRef , _document : any , _changeDetectorRef ? : ChangeDetectorRef | undefined );
167
175
attach(context ? : any ): void ;
168
176
readonly _attached: Subject <void >;
169
177
detach(): void ;
170
178
// (undocumented)
171
179
ngOnDestroy(): void ;
172
180
// (undocumented)
173
- static ɵdir: i0 .ɵɵDirectiveDeclaration <MatMenuContent , " ng-template[matMenuContent] " , never , {}, {}, never >;
181
+ static ɵdir: i0 .ɵɵDirectiveDeclaration <_MatMenuContentBase , never , never , {}, {}, never >;
174
182
// (undocumented)
175
- static ɵfac: i0 .ɵɵFactoryDeclaration <MatMenuContent , never >;
183
+ static ɵfac: i0 .ɵɵFactoryDeclaration <_MatMenuContentBase , never >;
176
184
}
177
185
178
186
// @public
@@ -185,16 +193,6 @@ export interface MatMenuDefaultOptions {
185
193
yPosition: MenuPositionY ;
186
194
}
187
195
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
-
198
196
// @public
199
197
export class MatMenuItem extends _MatMenuItemBase implements FocusableOption , CanDisable , CanDisableRipple , AfterViewInit , OnDestroy {
200
198
constructor (_elementRef : ElementRef <HTMLElement >,
@@ -236,7 +234,7 @@ export class MatMenuModule {
236
234
// (undocumented)
237
235
static ɵinj: i0 .ɵɵInjectorDeclaration <MatMenuModule >;
238
236
// (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 ]>;
240
238
}
241
239
242
240
// @public
@@ -280,8 +278,22 @@ export interface MatMenuPanel<T = any> {
280
278
}
281
279
282
280
// @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 {
284
290
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 ;
285
297
closeMenu(): void ;
286
298
// @deprecated (undocumented)
287
299
get _deprecatedMatMenuTriggerFor(): MatMenuPanel ;
@@ -313,9 +325,9 @@ export class MatMenuTrigger implements AfterContentInit, OnDestroy {
313
325
triggersSubmenu(): boolean ;
314
326
updatePosition(): void ;
315
327
// (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 >;
317
329
// (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 ]>;
319
331
}
320
332
321
333
// @public
0 commit comments