1- import { InputRendererOptions , ReactWrapperComponent , JsxRenderFunc } from '@angular-react/core' ;
2- import { ElementRef , EventEmitter , Input , OnInit , Output , ChangeDetectorRef } from '@angular/core' ;
1+ import { InputRendererOptions , JsxRenderFunc , ReactWrapperComponent } from '@angular-react/core' ;
2+ import { ChangeDetectorRef , ElementRef , EventEmitter , Input , OnInit , Output } from '@angular/core' ;
33import { IButtonProps } from 'office-ui-fabric-react/lib/Button' ;
4- import { IContextualMenuProps } from 'office-ui-fabric-react/lib/ContextualMenu' ;
54
65export abstract class FabBaseButtonComponent extends ReactWrapperComponent < IButtonProps > implements OnInit {
7- @Input ( ) componentRef ?: IButtonProps [ 'componentRef' ] ;
8- @Input ( ) href ?: IButtonProps [ 'href' ] ;
9- @Input ( ) primary ?: IButtonProps [ 'primary' ] ;
10- @Input ( ) uniqueId ?: IButtonProps [ 'uniqueId' ] ;
11- @Input ( ) disabled ?: IButtonProps [ 'disabled' ] ;
12- @Input ( ) primaryDisabled ?: IButtonProps [ 'primaryDisabled' ] ;
13- @Input ( ) styles ?: IButtonProps [ 'styles' ] ;
14- @Input ( ) theme ?: IButtonProps [ 'theme' ] ;
15- @Input ( ) checked ?: IButtonProps [ 'checked' ] ;
16- @Input ( ) className ?: IButtonProps [ 'className' ] ;
17- @Input ( ) ariaLabel ?: IButtonProps [ 'ariaLabel' ] ;
18- @Input ( ) ariaDescription ?: IButtonProps [ 'ariaDescription' ] ;
19- @Input ( ) ariaHidden ?: IButtonProps [ 'ariaHidden' ] ;
20- @Input ( ) text ?: IButtonProps [ 'text' ] ;
21- @Input ( ) iconProps ?: IButtonProps [ 'iconProps' ] ;
22- @Input ( ) menuProps ?: IButtonProps [ 'menuProps' ] ;
23- @Input ( ) split ?: IButtonProps [ 'split' ] ;
24- @Input ( ) menuIconProps ?: IButtonProps [ 'menuIconProps' ] ;
25- @Input ( ) splitButtonAriaLabel ?: IButtonProps [ 'splitButtonAriaLabel' ] ;
26- @Input ( ) secondaryText ?: IButtonProps [ 'secondaryText' ] ;
27- @Input ( ) toggled ?: IButtonProps [ 'toggled' ] ;
28- @Input ( ) data ?: IButtonProps [ 'data' ] ;
29- @Input ( ) getClassNames ?: IButtonProps [ 'getClassNames' ] ;
30- @Input ( ) getSplitButtonClassNames ?: IButtonProps [ 'getSplitButtonClassNames' ] ;
31- @Input ( ) menuTriggerKeyCode ?: IButtonProps [ 'menuTriggerKeyCode' ] ;
32- @Input ( ) keytipProps ?: IButtonProps [ 'keytipProps' ] ;
33- @Input ( ) persistMenu ?: IButtonProps [ 'persistMenu' ] ;
6+ @Input ( )
7+ componentRef ?: IButtonProps [ 'componentRef' ] ;
8+ @Input ( )
9+ href ?: IButtonProps [ 'href' ] ;
10+ @Input ( )
11+ primary ?: IButtonProps [ 'primary' ] ;
12+ @Input ( )
13+ uniqueId ?: IButtonProps [ 'uniqueId' ] ;
14+ @Input ( )
15+ disabled ?: IButtonProps [ 'disabled' ] ;
16+ @Input ( )
17+ primaryDisabled ?: IButtonProps [ 'primaryDisabled' ] ;
18+ @Input ( )
19+ styles ?: IButtonProps [ 'styles' ] ;
20+ @Input ( )
21+ theme ?: IButtonProps [ 'theme' ] ;
22+ @Input ( )
23+ checked ?: IButtonProps [ 'checked' ] ;
24+ @Input ( )
25+ className ?: IButtonProps [ 'className' ] ;
26+ @Input ( )
27+ ariaLabel ?: IButtonProps [ 'ariaLabel' ] ;
28+ @Input ( )
29+ ariaDescription ?: IButtonProps [ 'ariaDescription' ] ;
30+ @Input ( )
31+ ariaHidden ?: IButtonProps [ 'ariaHidden' ] ;
32+ @Input ( )
33+ text ?: IButtonProps [ 'text' ] ;
34+ @Input ( )
35+ iconProps ?: IButtonProps [ 'iconProps' ] ;
36+ @Input ( )
37+ menuProps ?: IButtonProps [ 'menuProps' ] ;
38+ @Input ( )
39+ split ?: IButtonProps [ 'split' ] ;
40+ @Input ( )
41+ menuIconProps ?: IButtonProps [ 'menuIconProps' ] ;
42+ @Input ( )
43+ splitButtonAriaLabel ?: IButtonProps [ 'splitButtonAriaLabel' ] ;
44+ @Input ( )
45+ menuAs ?: IButtonProps [ 'menuAs' ] ;
46+ @Input ( )
47+ secondaryText ?: IButtonProps [ 'secondaryText' ] ;
48+ @Input ( )
49+ toggled ?: IButtonProps [ 'toggled' ] ;
50+ @Input ( )
51+ data ?: IButtonProps [ 'data' ] ;
52+ @Input ( )
53+ getClassNames ?: IButtonProps [ 'getClassNames' ] ;
54+ @Input ( )
55+ getSplitButtonClassNames ?: IButtonProps [ 'getSplitButtonClassNames' ] ;
56+ @Input ( )
57+ menuTriggerKeyCode ?: IButtonProps [ 'menuTriggerKeyCode' ] ;
58+ @Input ( )
59+ keytipProps ?: IButtonProps [ 'keytipProps' ] ;
60+ @Input ( )
61+ persistMenu ?: IButtonProps [ 'persistMenu' ] ;
3462
35- @Input ( ) renderIcon ?: InputRendererOptions < IButtonProps > ;
36- @Input ( ) renderText ?: InputRendererOptions < IButtonProps > ;
37- @Input ( ) renderDescription ?: InputRendererOptions < IButtonProps > ;
38- @Input ( ) renderAriaDescription ?: InputRendererOptions < IButtonProps > ;
39- @Input ( ) renderChildren ?: InputRendererOptions < IButtonProps > ;
40- @Input ( ) renderMenuIcon ?: InputRendererOptions < IButtonProps > ;
41- @Input ( ) renderMenu ?: InputRendererOptions < IContextualMenuProps > ;
63+ @Input ( )
64+ renderIcon ?: InputRendererOptions < IButtonProps > ;
65+ @Input ( )
66+ renderText ?: InputRendererOptions < IButtonProps > ;
67+ @Input ( )
68+ renderDescription ?: InputRendererOptions < IButtonProps > ;
69+ @Input ( )
70+ renderAriaDescription ?: InputRendererOptions < IButtonProps > ;
71+ @Input ( )
72+ renderChildren ?: InputRendererOptions < IButtonProps > ;
73+ @Input ( )
74+ renderMenuIcon ?: InputRendererOptions < IButtonProps > ;
4275
43- @Output ( ) readonly onClick = new EventEmitter < MouseEvent > ( ) ;
44- @Output ( ) readonly onMenuClick = new EventEmitter < { ev ?: MouseEvent | KeyboardEvent ; button ?: IButtonProps } > ( ) ;
45- @Output ( ) readonly onAfterMenuDismiss = new EventEmitter < void > ( ) ;
76+ @Output ( )
77+ readonly onClick = new EventEmitter < MouseEvent > ( ) ;
78+ @Output ( )
79+ readonly onMenuClick = new EventEmitter < { ev ?: MouseEvent | KeyboardEvent ; button ?: IButtonProps } > ( ) ;
80+ @Output ( )
81+ readonly onAfterMenuDismiss = new EventEmitter < void > ( ) ;
4682
4783 onRenderIcon : ( props ?: IButtonProps , defaultRender ?: JsxRenderFunc < IButtonProps > ) => JSX . Element ;
4884 onRenderText : ( props ?: IButtonProps , defaultRender ?: JsxRenderFunc < IButtonProps > ) => JSX . Element ;
4985 onRenderDescription : ( props ?: IButtonProps , defaultRender ?: JsxRenderFunc < IButtonProps > ) => JSX . Element ;
5086 onRenderAriaDescription : ( props ?: IButtonProps , defaultRender ?: JsxRenderFunc < IButtonProps > ) => JSX . Element ;
5187 onRenderChildren : ( props ?: IButtonProps , defaultRender ?: JsxRenderFunc < IButtonProps > ) => JSX . Element ;
5288 onRenderMenuIcon : ( props ?: IButtonProps , defaultRender ?: JsxRenderFunc < IButtonProps > ) => JSX . Element ;
53- onRenderMenu : ( props ?: IContextualMenuProps , defaultRender ?: JsxRenderFunc < IContextualMenuProps > ) => JSX . Element ;
5489
5590 constructor ( elementRef : ElementRef , changeDetectorRef : ChangeDetectorRef ) {
5691 super ( elementRef , changeDetectorRef , true ) ;
@@ -66,7 +101,6 @@ export abstract class FabBaseButtonComponent extends ReactWrapperComponent<IButt
66101 this . onRenderAriaDescription = this . createRenderPropHandler ( this . renderAriaDescription ) ;
67102 this . onRenderChildren = this . createRenderPropHandler ( this . renderChildren ) ;
68103 this . onRenderMenuIcon = this . createRenderPropHandler ( this . renderMenuIcon ) ;
69- this . onRenderMenu = this . createRenderPropHandler ( this . renderMenu ) ;
70104 }
71105
72106 onMenuClickHandler ( ev ?: React . MouseEvent < HTMLElement > | React . KeyboardEvent < HTMLElement > , button ?: IButtonProps ) {
0 commit comments