1 | // Generated by dts-bundle v0.7.3
|
2 | // Dependencies for this module:
|
3 | // ../../@material/base/component
|
4 | // ../../@material/ripple/component
|
5 | // ../../@material/ripple/types
|
6 | // ../../@material/base/foundation
|
7 |
|
8 | declare module '@material/radio' {
|
9 | /**
|
10 | * @license
|
11 | * Copyright 2019 Google Inc.
|
12 | *
|
13 | * Permission is hereby granted, free of charge, to any person obtaining a copy
|
14 | * of this software and associated documentation files (the "Software"), to deal
|
15 | * in the Software without restriction, including without limitation the rights
|
16 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
17 | * copies of the Software, and to permit persons to whom the Software is
|
18 | * furnished to do so, subject to the following conditions:
|
19 | *
|
20 | * The above copyright notice and this permission notice shall be included in
|
21 | * all copies or substantial portions of the Software.
|
22 | *
|
23 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
24 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
25 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
26 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
27 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
28 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
29 | * THE SOFTWARE.
|
30 | */
|
31 | export * from '@material/radio/adapter';
|
32 | export * from '@material/radio/component';
|
33 | export * from '@material/radio/constants';
|
34 | export * from '@material/radio/foundation';
|
35 | }
|
36 |
|
37 | declare module '@material/radio/adapter' {
|
38 | /**
|
39 | * Defines the shape of the adapter expected by the foundation.
|
40 | * Implement this adapter for your framework of choice to delegate updates to
|
41 | * the component in your framework of choice. See architecture documentation
|
42 | * for more details.
|
43 | * https://github.com/material-components/material-components-web/blob/master/docs/code/architecture.md
|
44 | */
|
45 | export interface MDCRadioAdapter {
|
46 | addClass(className: string): void;
|
47 | removeClass(className: string): void;
|
48 | setNativeControlDisabled(disabled: boolean): void;
|
49 | }
|
50 | }
|
51 |
|
52 | declare module '@material/radio/component' {
|
53 | /**
|
54 | * @license
|
55 | * Copyright 2016 Google Inc.
|
56 | *
|
57 | * Permission is hereby granted, free of charge, to any person obtaining a copy
|
58 | * of this software and associated documentation files (the "Software"), to deal
|
59 | * in the Software without restriction, including without limitation the rights
|
60 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
61 | * copies of the Software, and to permit persons to whom the Software is
|
62 | * furnished to do so, subject to the following conditions:
|
63 | *
|
64 | * The above copyright notice and this permission notice shall be included in
|
65 | * all copies or substantial portions of the Software.
|
66 | *
|
67 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
68 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
69 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
70 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
71 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
72 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
73 | * THE SOFTWARE.
|
74 | */
|
75 | import { MDCComponent } from '@material/base/component';
|
76 | import { MDCRipple } from '@material/ripple/component';
|
77 | import { MDCRippleCapableSurface } from '@material/ripple/types';
|
78 | import { MDCRadioFoundation } from '@material/radio/foundation';
|
79 | export class MDCRadio extends MDCComponent<MDCRadioFoundation> implements MDCRippleCapableSurface {
|
80 | static attachTo(root: Element): MDCRadio;
|
81 | get checked(): boolean;
|
82 | set checked(checked: boolean);
|
83 | get disabled(): boolean;
|
84 | set disabled(disabled: boolean);
|
85 | get value(): string;
|
86 | set value(value: string);
|
87 | get ripple(): MDCRipple;
|
88 | destroy(): void;
|
89 | getDefaultFoundation(): MDCRadioFoundation;
|
90 | }
|
91 | }
|
92 |
|
93 | declare module '@material/radio/constants' {
|
94 | /**
|
95 | * @license
|
96 | * Copyright 2016 Google Inc.
|
97 | *
|
98 | * Permission is hereby granted, free of charge, to any person obtaining a copy
|
99 | * of this software and associated documentation files (the "Software"), to deal
|
100 | * in the Software without restriction, including without limitation the rights
|
101 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
102 | * copies of the Software, and to permit persons to whom the Software is
|
103 | * furnished to do so, subject to the following conditions:
|
104 | *
|
105 | * The above copyright notice and this permission notice shall be included in
|
106 | * all copies or substantial portions of the Software.
|
107 | *
|
108 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
109 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
110 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
111 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
112 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
113 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
114 | * THE SOFTWARE.
|
115 | */
|
116 | const strings: {
|
117 | NATIVE_CONTROL_SELECTOR: string;
|
118 | };
|
119 | const cssClasses: {
|
120 | DISABLED: string;
|
121 | ROOT: string;
|
122 | };
|
123 | export { strings, cssClasses };
|
124 | }
|
125 |
|
126 | declare module '@material/radio/foundation' {
|
127 | /**
|
128 | * @license
|
129 | * Copyright 2016 Google Inc.
|
130 | *
|
131 | * Permission is hereby granted, free of charge, to any person obtaining a copy
|
132 | * of this software and associated documentation files (the "Software"), to deal
|
133 | * in the Software without restriction, including without limitation the rights
|
134 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
135 | * copies of the Software, and to permit persons to whom the Software is
|
136 | * furnished to do so, subject to the following conditions:
|
137 | *
|
138 | * The above copyright notice and this permission notice shall be included in
|
139 | * all copies or substantial portions of the Software.
|
140 | *
|
141 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
142 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
143 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
144 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
145 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
146 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
147 | * THE SOFTWARE.
|
148 | */
|
149 | import { MDCFoundation } from '@material/base/foundation';
|
150 | import { MDCRadioAdapter } from '@material/radio/adapter';
|
151 | export class MDCRadioFoundation extends MDCFoundation<MDCRadioAdapter> {
|
152 | static get cssClasses(): {
|
153 | DISABLED: string;
|
154 | ROOT: string;
|
155 | };
|
156 | static get strings(): {
|
157 | NATIVE_CONTROL_SELECTOR: string;
|
158 | };
|
159 | static get defaultAdapter(): MDCRadioAdapter;
|
160 | constructor(adapter?: Partial<MDCRadioAdapter>);
|
161 | setDisabled(disabled: boolean): void;
|
162 | }
|
163 | export default MDCRadioFoundation;
|
164 | }
|
165 |
|