4
4
5
5
``` ts
6
6
7
- import { _AbstractConstructor } from ' @angular/material/core' ;
8
7
import { AfterContentInit } from ' @angular/core' ;
9
8
import { AfterViewInit } from ' @angular/core' ;
10
9
import { AnimationEvent as AnimationEvent_2 } from ' @angular/animations' ;
11
10
import { AnimationTriggerMetadata } from ' @angular/animations' ;
12
11
import { ApplicationRef } from ' @angular/core' ;
13
- import { BooleanInput } from ' @angular/cdk/coercion' ;
14
- import { CanDisable } from ' @angular/material/core' ;
15
- import { CanDisableRipple } from ' @angular/material/core' ;
16
12
import { ChangeDetectorRef } from ' @angular/core' ;
17
13
import { ComponentFactoryResolver } from ' @angular/core' ;
18
- import { _Constructor } from ' @angular/material/core' ;
19
14
import { Direction } from ' @angular/cdk/bidi' ;
20
15
import { Directionality } from ' @angular/cdk/bidi' ;
21
16
import { ElementRef } from ' @angular/core' ;
@@ -89,14 +84,17 @@ export class MatMenu implements AfterContentInit, MatMenuPanel<MatMenuItem>, OnI
89
84
direction: Direction ;
90
85
focusFirstItem(origin ? : FocusOrigin ): void ;
91
86
_handleKeydown(event : KeyboardEvent ): void ;
92
- get hasBackdrop(): boolean | undefined ;
93
- set hasBackdrop(value : BooleanInput );
87
+ hasBackdrop? : boolean ;
94
88
_hovered(): Observable <MatMenuItem >;
95
89
_isAnimating: boolean ;
96
90
// @deprecated
97
91
items: QueryList <MatMenuItem >;
98
92
lazyContent: MatMenuContent ;
99
93
// (undocumented)
94
+ static ngAcceptInputType_hasBackdrop: any ;
95
+ // (undocumented)
96
+ static ngAcceptInputType_overlapTrigger: unknown ;
97
+ // (undocumented)
100
98
ngAfterContentInit(): void ;
101
99
// (undocumented)
102
100
ngOnDestroy(): void ;
@@ -105,8 +103,7 @@ export class MatMenu implements AfterContentInit, MatMenuPanel<MatMenuItem>, OnI
105
103
_onAnimationDone(event : AnimationEvent_2 ): void ;
106
104
// (undocumented)
107
105
_onAnimationStart(event : AnimationEvent_2 ): void ;
108
- get overlapTrigger(): boolean ;
109
- set overlapTrigger(value : BooleanInput );
106
+ overlapTrigger: boolean ;
110
107
overlayPanelClass: string | string [];
111
108
_panelAnimationState: ' void' | ' enter' ;
112
109
set panelClass(classes : string );
@@ -164,11 +161,13 @@ export interface MatMenuDefaultOptions {
164
161
}
165
162
166
163
// @public
167
- export class MatMenuItem extends _MatMenuItemBase implements FocusableOption , CanDisable , CanDisableRipple , AfterViewInit , OnDestroy {
164
+ export class MatMenuItem implements FocusableOption , AfterViewInit , OnDestroy {
168
165
constructor (elementRef : ElementRef <HTMLElement >, document : any , focusMonitor : FocusMonitor , parentMenu : MatMenuPanel <MatMenuItem > | undefined , changeDetectorRef : ChangeDetectorRef );
169
166
// @deprecated
170
167
constructor (elementRef : ElementRef <HTMLElement >, document ? : any , focusMonitor ? : FocusMonitor , parentMenu ? : MatMenuPanel <MatMenuItem >, changeDetectorRef ? : ChangeDetectorRef );
171
168
_checkDisabled(event : Event ): void ;
169
+ disabled: boolean ;
170
+ disableRipple: boolean ;
172
171
focus(origin ? : FocusOrigin , options ? : FocusOptions ): void ;
173
172
readonly _focused: Subject <MatMenuItem >;
174
173
_getHostElement(): HTMLElement ;
@@ -180,6 +179,10 @@ export class MatMenuItem extends _MatMenuItemBase implements FocusableOption, Ca
180
179
_highlighted: boolean ;
181
180
readonly _hovered: Subject <MatMenuItem >;
182
181
// (undocumented)
182
+ static ngAcceptInputType_disabled: unknown ;
183
+ // (undocumented)
184
+ static ngAcceptInputType_disableRipple: unknown ;
185
+ // (undocumented)
183
186
ngAfterViewInit(): void ;
184
187
// (undocumented)
185
188
ngOnDestroy(): void ;
@@ -192,7 +195,7 @@ export class MatMenuItem extends _MatMenuItemBase implements FocusableOption, Ca
192
195
_setTriggersSubmenu(triggersSubmenu : boolean ): void ;
193
196
_triggersSubmenu: boolean ;
194
197
// (undocumented)
195
- static ɵcmp: i0 .ɵɵComponentDeclaration <MatMenuItem , " [mat-menu-item]" , [" matMenuItem" ], { " disabled " : { " alias" : " disabled " ; " required" : false ; }; " disableRipple " : { " alias" : " disableRipple " ; " required" : false ; }; " role " : { " alias" : " role " ; " required" : false ; }; }, {}, never , [" mat-icon, [matMenuItemIcon]" , " *" ], false , never >;
198
+ static ɵcmp: i0 .ɵɵComponentDeclaration <MatMenuItem , " [mat-menu-item]" , [" matMenuItem" ], { " role " : { " alias" : " role " ; " required" : false ; }; " disabled " : { " alias" : " disabled " ; " required" : false ; }; " disableRipple " : { " alias" : " disableRipple " ; " required" : false ; }; }, {}, never , [" mat-icon, [matMenuItemIcon]" , " *" ], false , never >;
196
199
// (undocumented)
197
200
static ɵfac: i0 .ɵɵFactoryDeclaration <MatMenuItem , [null , null , null , { optional: true ; }, null ]>;
198
201
}
0 commit comments