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