1 | import { AfterContentInit, EventEmitter, OnInit, QueryList, ModuleWithProviders } from '@angular/core';
|
2 | import { ControlValueAccessor } from '@angular/forms';
|
3 | import { MdUniqueSelectionDispatcher } from '@angular2-material/core';
|
4 | export { MdUniqueSelectionDispatcher } from '@angular2-material/core';
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | export declare const MD_RADIO_GROUP_CONTROL_VALUE_ACCESSOR: any;
|
10 |
|
11 | export declare class MdRadioChange {
|
12 | source: MdRadioButton;
|
13 | value: any;
|
14 | }
|
15 | export declare class MdRadioGroup implements AfterContentInit, ControlValueAccessor {
|
16 | |
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 | private _value;
|
23 |
|
24 | private _name;
|
25 |
|
26 | private _disabled;
|
27 |
|
28 | private _selected;
|
29 |
|
30 | private _isInitialized;
|
31 |
|
32 | private _controlValueAccessorChangeFn;
|
33 |
|
34 | onTouched: () => any;
|
35 |
|
36 | change: EventEmitter<MdRadioChange>;
|
37 |
|
38 | _radios: QueryList<MdRadioButton>;
|
39 | name: string;
|
40 | align: 'start' | 'end';
|
41 | disabled: boolean;
|
42 | value: any;
|
43 | selected: MdRadioButton;
|
44 | |
45 |
|
46 |
|
47 |
|
48 |
|
49 | ngAfterContentInit(): void;
|
50 | |
51 |
|
52 |
|
53 |
|
54 | _touch(): void;
|
55 | private _updateRadioButtonNames();
|
56 |
|
57 | private _updateSelectedRadioFromValue();
|
58 |
|
59 | private _emitChangeEvent();
|
60 | |
61 |
|
62 |
|
63 |
|
64 | writeValue(value: any): void;
|
65 | |
66 |
|
67 |
|
68 |
|
69 | registerOnChange(fn: (value: any) => void): void;
|
70 | |
71 |
|
72 |
|
73 |
|
74 | registerOnTouched(fn: any): void;
|
75 | }
|
76 | export declare class MdRadioButton implements OnInit {
|
77 | radioDispatcher: MdUniqueSelectionDispatcher;
|
78 | _isFocused: boolean;
|
79 |
|
80 | private _checked;
|
81 |
|
82 | id: string;
|
83 |
|
84 | name: string;
|
85 |
|
86 | ariaLabel: string;
|
87 |
|
88 | ariaLabelledby: string;
|
89 |
|
90 | private _disabled;
|
91 |
|
92 | private _value;
|
93 |
|
94 | radioGroup: MdRadioGroup;
|
95 |
|
96 | change: EventEmitter<MdRadioChange>;
|
97 | constructor(radioGroup: MdRadioGroup, radioDispatcher: MdUniqueSelectionDispatcher);
|
98 | readonly inputId: string;
|
99 | checked: boolean;
|
100 | /** MdRadioGroup reads this to assign its own value. */
|
101 | value: any;
|
102 | private _align;
|
103 | align: 'start' | 'end';
|
104 | disabled: boolean;
|
105 | /** TODO: internal */
|
106 | ngOnInit(): void;
|
107 | /** Dispatch change event with current value. */
|
108 | private _emitChangeEvent();
|
109 | /**
|
110 | * We use a hidden native input field to handle changes to focus state via keyboard navigation,
|
111 | * with visual rendering done separately. The native element is kept in sync with the overall
|
112 | * state of the component.
|
113 | */
|
114 | _onInputFocus(): void;
|
115 | /** TODO: internal */
|
116 | _onInputBlur(): void;
|
117 | /** TODO: internal */
|
118 | _onInputClick(event: Event): void;
|
119 | /**
|
120 | * Triggered when the radio button received a click or the input recognized any change.
|
121 | * Clicking on a label element, will trigger a change event on the associated input.
|
122 | * TODO: internal
|
123 | */
|
124 | _onInputChange(event: Event): void;
|
125 | }
|
126 | export declare class MdRadioModule {
|
127 | static forRoot(): ModuleWithProviders;
|
128 | }
|