@@ -17,12 +17,12 @@ export declare abstract class _MatRadioButtonBase extends _MatRadioButtonMixinBa
17
17
get labelPosition ( ) : 'before' | 'after' ;
18
18
set labelPosition ( value : 'before' | 'after' ) ;
19
19
name : string ;
20
- radioGroup : MatRadioGroup ;
20
+ radioGroup : _MatRadioGroupBase < _MatRadioButtonBase > ;
21
21
get required ( ) : boolean ;
22
22
set required ( value : boolean ) ;
23
23
get value ( ) : any ;
24
24
set value ( value : any ) ;
25
- constructor ( radioGroup : MatRadioGroup , elementRef : ElementRef , _changeDetector : ChangeDetectorRef , _focusMonitor : FocusMonitor , _radioDispatcher : UniqueSelectionDispatcher , _animationMode ?: string | undefined , _providerOverride ?: MatRadioDefaultOptions | undefined ) ;
25
+ constructor ( radioGroup : _MatRadioGroupBase < _MatRadioButtonBase > , elementRef : ElementRef , _changeDetector : ChangeDetectorRef , _focusMonitor : FocusMonitor , _radioDispatcher : UniqueSelectionDispatcher , _animationMode ?: string | undefined , _providerOverride ?: MatRadioDefaultOptions | undefined ) ;
26
26
_isRippleDisabled ( ) : boolean ;
27
27
_markForCheck ( ) : void ;
28
28
_onInputChange ( event : Event ) : void ;
@@ -40,32 +40,9 @@ export declare abstract class _MatRadioButtonBase extends _MatRadioButtonMixinBa
40
40
static ɵfac : i0 . ɵɵFactoryDef < _MatRadioButtonBase , [ { optional : true ; } , null , null , null , null , { optional : true ; } , { optional : true ; } ] > ;
41
41
}
42
42
43
- export declare const MAT_RADIO_DEFAULT_OPTIONS : InjectionToken < MatRadioDefaultOptions > ;
44
-
45
- export declare function MAT_RADIO_DEFAULT_OPTIONS_FACTORY ( ) : MatRadioDefaultOptions ;
46
-
47
- export declare const MAT_RADIO_GROUP_CONTROL_VALUE_ACCESSOR : any ;
48
-
49
- export declare class MatRadioButton extends _MatRadioButtonBase {
50
- static ɵcmp : i0 . ɵɵComponentDefWithMeta < MatRadioButton , "mat-radio-button" , [ "matRadioButton" ] , { "disableRipple" : "disableRipple" ; "tabIndex" : "tabIndex" ; } , { } , never , [ "*" ] > ;
51
- static ɵfac : i0 . ɵɵFactoryDef < MatRadioButton , never > ;
52
- }
53
-
54
- export declare class MatRadioChange {
55
- source : MatRadioButton ;
56
- value : any ;
57
- constructor (
58
- source : MatRadioButton ,
59
- value : any ) ;
60
- }
61
-
62
- export interface MatRadioDefaultOptions {
63
- color : ThemePalette ;
64
- }
65
-
66
- export declare class MatRadioGroup implements AfterContentInit , ControlValueAccessor {
43
+ export declare abstract class _MatRadioGroupBase < T extends _MatRadioButtonBase > implements AfterContentInit , ControlValueAccessor {
67
44
_controlValueAccessorChangeFn : ( value : any ) => void ;
68
- _radios : QueryList < MatRadioButton > ;
45
+ abstract _radios : QueryList < T > ;
69
46
readonly change : EventEmitter < MatRadioChange > ;
70
47
color : ThemePalette ;
71
48
get disabled ( ) : boolean ;
@@ -77,8 +54,8 @@ export declare class MatRadioGroup implements AfterContentInit, ControlValueAcce
77
54
onTouched : ( ) => any ;
78
55
get required ( ) : boolean ;
79
56
set required ( value : boolean ) ;
80
- get selected ( ) : MatRadioButton | null ;
81
- set selected ( selected : MatRadioButton | null ) ;
57
+ get selected ( ) : T | null ;
58
+ set selected ( selected : T | null ) ;
82
59
get value ( ) : any ;
83
60
set value ( newValue : any ) ;
84
61
constructor ( _changeDetector : ChangeDetectorRef ) ;
@@ -93,7 +70,36 @@ export declare class MatRadioGroup implements AfterContentInit, ControlValueAcce
93
70
writeValue ( value : any ) : void ;
94
71
static ngAcceptInputType_disabled : BooleanInput ;
95
72
static ngAcceptInputType_required : BooleanInput ;
96
- static ɵdir : i0 . ɵɵDirectiveDefWithMeta < MatRadioGroup , "mat-radio-group" , [ "matRadioGroup" ] , { "color" : "color" ; "name" : "name" ; "labelPosition" : "labelPosition" ; "value" : "value" ; "selected" : "selected" ; "disabled" : "disabled" ; "required" : "required" ; } , { "change" : "change" ; } , [ "_radios" ] > ;
73
+ static ɵdir : i0 . ɵɵDirectiveDefWithMeta < _MatRadioGroupBase < any > , never , never , { "color" : "color" ; "name" : "name" ; "labelPosition" : "labelPosition" ; "value" : "value" ; "selected" : "selected" ; "disabled" : "disabled" ; "required" : "required" ; } , { "change" : "change" ; } , never > ;
74
+ static ɵfac : i0 . ɵɵFactoryDef < _MatRadioGroupBase < any > , never > ;
75
+ }
76
+
77
+ export declare const MAT_RADIO_DEFAULT_OPTIONS : InjectionToken < MatRadioDefaultOptions > ;
78
+
79
+ export declare function MAT_RADIO_DEFAULT_OPTIONS_FACTORY ( ) : MatRadioDefaultOptions ;
80
+
81
+ export declare const MAT_RADIO_GROUP_CONTROL_VALUE_ACCESSOR : any ;
82
+
83
+ export declare class MatRadioButton extends _MatRadioButtonBase {
84
+ static ɵcmp : i0 . ɵɵComponentDefWithMeta < MatRadioButton , "mat-radio-button" , [ "matRadioButton" ] , { "disableRipple" : "disableRipple" ; "tabIndex" : "tabIndex" ; } , { } , never , [ "*" ] > ;
85
+ static ɵfac : i0 . ɵɵFactoryDef < MatRadioButton , never > ;
86
+ }
87
+
88
+ export declare class MatRadioChange {
89
+ source : _MatRadioButtonBase ;
90
+ value : any ;
91
+ constructor (
92
+ source : _MatRadioButtonBase ,
93
+ value : any ) ;
94
+ }
95
+
96
+ export interface MatRadioDefaultOptions {
97
+ color : ThemePalette ;
98
+ }
99
+
100
+ export declare class MatRadioGroup extends _MatRadioGroupBase < MatRadioButton > {
101
+ _radios : QueryList < MatRadioButton > ;
102
+ static ɵdir : i0 . ɵɵDirectiveDefWithMeta < MatRadioGroup , "mat-radio-group" , [ "matRadioGroup" ] , { } , { } , [ "_radios" ] > ;
97
103
static ɵfac : i0 . ɵɵFactoryDef < MatRadioGroup , never > ;
98
104
}
99
105
0 commit comments