You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -14,11 +15,12 @@ import { createThemedClasses } from '../../utils/theme';
14
15
theme: 'input'
15
16
}
16
17
})
17
-
exportclassInput{
18
-
mode: any;
19
-
color: any;
20
-
styleTmr: any;
18
+
exportclassInputimplementsInputComponent{
19
+
mode: string;
20
+
color: string;
21
+
21
22
didBlurAfterEdit: boolean;
23
+
styleTmr: number;
22
24
23
25
@Element()el: HTMLElement;
24
26
@@ -37,6 +39,16 @@ export class Input {
37
39
*/
38
40
@Event()ionFocus: EventEmitter;
39
41
42
+
/**
43
+
* @input {string} If the value of the type attribute is `"file"`, then this attribute will indicate the types of files that the server accepts, otherwise it will be ignored. The value must be a comma-separated list of unique content type specifiers.
44
+
*/
45
+
@Prop()accept: string;
46
+
47
+
/**
48
+
* @input {string} Indicates whether and how the text value should be automatically capitalized as it is entered/edited by the user. Defaults to `"none"`.
49
+
*/
50
+
@Prop()autocapitalize: string='none';
51
+
40
52
/**
41
53
* @input {string} Indicates whether the value of the control can be automatically completed by the browser. Defaults to `"off"`.
42
54
*/
@@ -50,7 +62,7 @@ export class Input {
50
62
/**
51
63
* @input {string} This Boolean attribute lets you specify that a form control should have input focus when the page loads. Defaults to `false`.
52
64
*/
53
-
@Prop()autofocus: boolean;
65
+
@Prop()autofocus: boolean=false;
54
66
55
67
/**
56
68
* @input {boolean} If true and the type is `checkbox` or `radio`, the control is selected by default. Defaults to `false`.
@@ -72,9 +84,9 @@ export class Input {
72
84
@Prop()clearInput: boolean=false;
73
85
74
86
/**
75
-
* @input {boolean} If true, the value will be cleared after focus upon edit. Defaults to `true` when `type` is `"password"`, `false` for all other types. Defaults to `false`.
87
+
* @input {boolean} If true, the value will be cleared after focus upon edit. Defaults to `true` when `type` is `"password"`, `false` for all other types.
76
88
*/
77
-
@Prop({state: true})clearOnEdit: boolean;
89
+
@Prop({state: true})clearOnEdit: boolean;
78
90
79
91
/**
80
92
* @input {boolean} If true, the user cannot interact with this element. Defaults to `false`.
@@ -90,15 +102,45 @@ export class Input {
90
102
}
91
103
92
104
/**
93
-
* @input {any} The minimum value, which must not be greater than its maximum (max attribute) value.
105
+
* @input {string} A hint to the browser for which keyboard to display. This attribute applies when the value of the type attribute is `"text"`, `"password"`, `"email"`, or `"url"`. Possible values are: `"verbatim"`, `"latin"`, `"latin-name"`, `"latin-prose"`, `"full-width-latin"`, `"kana"`, `"katakana"`, `"numeric"`, `"tel"`, `"email"`, `"url"`.
94
106
*/
95
-
@Prop()min: string;
107
+
@Prop()inputmode: string;
96
108
97
109
/**
98
-
* @input {any} The maximum value, which must not be less than its minimum (min attribute) value.
110
+
* @input {string} The maximum value, which must not be less than its minimum (min attribute) value.
99
111
*/
100
112
@Prop()max: string;
101
113
114
+
/**
115
+
* @input {number} If the value of the type attribute is `text`, `email`, `search`, `password`, `tel`, or `url`, this attribute specifies the maximum number of characters that the user can enter.
116
+
*/
117
+
@Prop()maxlength: number;
118
+
119
+
/**
120
+
* @input {string} The minimum value, which must not be greater than its maximum (max attribute) value.
121
+
*/
122
+
@Prop()min: string;
123
+
124
+
/**
125
+
* @input {number} If the value of the type attribute is `text`, `email`, `search`, `password`, `tel`, or `url`, this attribute specifies the minimum number of characters that the user can enter.
126
+
*/
127
+
@Prop()minlength: number;
128
+
129
+
/**
130
+
* @input {boolean} If true, the user can enter more than one value. This attribute applies when the type attribute is set to `"email"` or `"file"`, otherwise it is ignored.
131
+
*/
132
+
@Prop()multiple: boolean;
133
+
134
+
/**
135
+
* @input {string} The name of the control, which is submitted with the form data.
136
+
*/
137
+
@Prop()name: string;
138
+
139
+
/**
140
+
* @input {string} A regular expression that the value is checked against. The pattern must match the entire value, not just some subset. Use the title attribute to describe the pattern to help the user. This attribute applies when the value of the type attribute is `"text"`, `"search"`, `"tel"`, `"url"`, `"email"`, or `"password"`, otherwise it is ignored.
141
+
*/
142
+
@Prop()pattern: string;
143
+
102
144
/**
103
145
* @input {string} Instructional text that shows before the input has a value.
104
146
*/
@@ -109,16 +151,31 @@ export class Input {
109
151
*/
110
152
@Prop()readonly: boolean=false;
111
153
154
+
/**
155
+
* @input {boolean} If true, the user must fill in a value before submitting a form.
156
+
*/
157
+
@Prop()required: boolean=false;
158
+
159
+
/**
160
+
* @input {number} This is a nonstandard attribute supported by Safari that only applies when the type is `"search"`. Its value should be a nonnegative decimal integer.
161
+
*/
162
+
@Prop()results: number;
163
+
112
164
/**
113
165
* @input {string} If true, the element will have its spelling and grammar checked. Defaults to `false`.
114
166
*/
115
167
@Prop()spellcheck: boolean=false;
116
168
117
169
/**
118
-
* @input {any} Works with the min and max attributes to limit the increments at which a value can be set.
170
+
* @input {string} Works with the min and max attributes to limit the increments at which a value can be set. Possible values are: `"any"` or a positive floating point number.
119
171
*/
120
172
@Prop()step: string;
121
173
174
+
/**
175
+
* @input {number} The initial size of the control. This value is in pixels unless the value of the type attribute is `"text"` or `"password"`, in which case it is an integer number of characters. This attribute applies only when the `type` attribute is set to `"text"`, `"search"`, `"tel"`, `"url"`, `"email"`, or `"password"`, otherwise it is ignored.
176
+
*/
177
+
@Prop()size: number;
178
+
122
179
/**
123
180
* @input {string} The type of control to display. The default type is text. Possible values are: `"text"`, `"password"`, `"email"`, `"number"`, `"search"`, `"tel"`, or `"url"`.
0 commit comments