@vaadin/text-field 25.1.0-alpha7 → 25.1.0-alpha9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +11 -11
- package/web-types.json +139 -139
- package/web-types.lit.json +52 -52
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/text-field",
|
|
3
|
-
"version": "25.1.0-
|
|
3
|
+
"version": "25.1.0-alpha9",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -35,19 +35,19 @@
|
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
38
|
-
"@vaadin/a11y-base": "25.1.0-
|
|
39
|
-
"@vaadin/component-base": "25.1.0-
|
|
40
|
-
"@vaadin/field-base": "25.1.0-
|
|
41
|
-
"@vaadin/input-container": "25.1.0-
|
|
42
|
-
"@vaadin/vaadin-themable-mixin": "25.1.0-
|
|
38
|
+
"@vaadin/a11y-base": "25.1.0-alpha9",
|
|
39
|
+
"@vaadin/component-base": "25.1.0-alpha9",
|
|
40
|
+
"@vaadin/field-base": "25.1.0-alpha9",
|
|
41
|
+
"@vaadin/input-container": "25.1.0-alpha9",
|
|
42
|
+
"@vaadin/vaadin-themable-mixin": "25.1.0-alpha9",
|
|
43
43
|
"lit": "^3.0.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@vaadin/aura": "25.1.0-
|
|
47
|
-
"@vaadin/chai-plugins": "25.1.0-
|
|
48
|
-
"@vaadin/test-runner-commands": "25.1.0-
|
|
46
|
+
"@vaadin/aura": "25.1.0-alpha9",
|
|
47
|
+
"@vaadin/chai-plugins": "25.1.0-alpha9",
|
|
48
|
+
"@vaadin/test-runner-commands": "25.1.0-alpha9",
|
|
49
49
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
50
|
-
"@vaadin/vaadin-lumo-styles": "25.1.0-
|
|
50
|
+
"@vaadin/vaadin-lumo-styles": "25.1.0-alpha9",
|
|
51
51
|
"sinon": "^21.0.0"
|
|
52
52
|
},
|
|
53
53
|
"customElements": "custom-elements.json",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"web-types.json",
|
|
56
56
|
"web-types.lit.json"
|
|
57
57
|
],
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "ef432311376ba3dac4233cb23d393a49a425e0a4"
|
|
59
59
|
}
|
package/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/text-field",
|
|
4
|
-
"version": "25.1.0-
|
|
4
|
+
"version": "25.1.0-alpha9",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -11,30 +11,30 @@
|
|
|
11
11
|
"description": "`<vaadin-text-field>` is a web component that allows the user to input and edit text.\n\n```html\n<vaadin-text-field label=\"First Name\"></vaadin-text-field>\n```\n\n### Prefixes and suffixes\n\nThese are child elements of a `<vaadin-text-field>` that are displayed\ninline with the input, before or after.\nIn order for an element to be considered as a prefix, it must have the slot\nattribute set to `prefix` (and similarly for `suffix`).\n\n```html\n<vaadin-text-field label=\"Email address\">\n <div slot=\"prefix\">Sent to:</div>\n <div slot=\"suffix\">@vaadin.com</div>\n</vaadin-text-field>\n```\n\n### Styling\n\nThe following custom properties are available for styling:\n\nCustom property | Description | Default\n-------------------------------|----------------------------|---------\n`--vaadin-field-default-width` | Default width of the field | `12em`\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n---------------------|----------------\n`label` | The label element\n`input-field` | The element that wraps prefix, value and suffix\n`field-button` | Set on the clear button\n`clear-button` | The clear button\n`error-message` | The error message element\n`helper-text` | The helper text element wrapper\n`required-indicator` | The `required` state indicator element\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n---------------------|---------------------------------\n`disabled` | Set when the element is disabled\n`has-value` | Set when the element has a value\n`has-label` | Set when the element has a label\n`has-helper` | Set when the element has helper text or slot\n`has-error-message` | Set when the element has an error message\n`has-tooltip` | Set when the element has a slotted tooltip\n`invalid` | Set when the element is invalid\n`input-prevented` | Temporarily set when invalid input is prevented\n`focused` | Set when the element is focused\n`focus-ring` | Set when the element is keyboard focused\n`readonly` | Set when the element is readonly\n\nNote, the `input-prevented` state attribute is only supported when `allowedCharPattern` is set.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
|
|
12
12
|
"attributes": [
|
|
13
13
|
{
|
|
14
|
-
"name": "
|
|
15
|
-
"description": "
|
|
14
|
+
"name": "accessible-name",
|
|
15
|
+
"description": "String used to label the component to screen reader users.",
|
|
16
16
|
"value": {
|
|
17
17
|
"type": [
|
|
18
|
-
"
|
|
18
|
+
"string",
|
|
19
19
|
"null",
|
|
20
20
|
"undefined"
|
|
21
21
|
]
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
|
-
"name": "
|
|
26
|
-
"description": "
|
|
25
|
+
"name": "accessible-name-ref",
|
|
26
|
+
"description": "Id of the element used as label of the component to screen reader users.",
|
|
27
27
|
"value": {
|
|
28
28
|
"type": [
|
|
29
|
-
"
|
|
29
|
+
"string",
|
|
30
30
|
"null",
|
|
31
31
|
"undefined"
|
|
32
32
|
]
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
|
-
"name": "
|
|
37
|
-
"description": "
|
|
36
|
+
"name": "allowed-char-pattern",
|
|
37
|
+
"description": "A pattern matched against individual characters the user inputs.\n\nWhen set, the field will prevent:\n- `keydown` events if the entered key doesn't match `/^allowedCharPattern$/`\n- `paste` events if the pasted text doesn't match `/^allowedCharPattern*$/`\n- `drop` events if the dropped text doesn't match `/^allowedCharPattern*$/`\n\nFor example, to allow entering only numbers and minus signs, use:\n`allowedCharPattern = \"[\\\\d-]\"`",
|
|
38
38
|
"value": {
|
|
39
39
|
"type": [
|
|
40
40
|
"string",
|
|
@@ -44,85 +44,85 @@
|
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
|
-
"name": "
|
|
48
|
-
"description": "
|
|
47
|
+
"name": "autocapitalize",
|
|
48
|
+
"description": "This is a property supported by Safari and Chrome that is used to control whether\nautocapitalization should be enabled when the user is entering/editing the text.\nPossible values are:\ncharacters: Characters capitalization.\nwords: Words capitalization.\nsentences: Sentences capitalization.\nnone: No capitalization.",
|
|
49
49
|
"value": {
|
|
50
50
|
"type": [
|
|
51
|
-
"
|
|
51
|
+
"string",
|
|
52
52
|
"null",
|
|
53
53
|
"undefined"
|
|
54
54
|
]
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
|
-
"name": "
|
|
59
|
-
"description": "
|
|
58
|
+
"name": "autocomplete",
|
|
59
|
+
"description": "Whether the value of the control can be automatically completed by the browser.\nList of available options at:\nhttps://developer.mozilla.org/en/docs/Web/HTML/Element/input#attr-autocomplete",
|
|
60
60
|
"value": {
|
|
61
61
|
"type": [
|
|
62
|
-
"
|
|
62
|
+
"string",
|
|
63
63
|
"null",
|
|
64
64
|
"undefined"
|
|
65
65
|
]
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
|
-
"name": "
|
|
70
|
-
"description": "
|
|
69
|
+
"name": "autocorrect",
|
|
70
|
+
"description": "This is a property supported by Safari that is used to control whether\nautocorrection should be enabled when the user is entering/editing the text.\nPossible values are:\non: Enable autocorrection.\noff: Disable autocorrection.",
|
|
71
71
|
"value": {
|
|
72
72
|
"type": [
|
|
73
|
-
"
|
|
73
|
+
"string",
|
|
74
74
|
"null",
|
|
75
75
|
"undefined"
|
|
76
76
|
]
|
|
77
77
|
}
|
|
78
78
|
},
|
|
79
79
|
{
|
|
80
|
-
"name": "
|
|
81
|
-
"description": "
|
|
80
|
+
"name": "autofocus",
|
|
81
|
+
"description": "Specify that this control should have input focus when the page loads.",
|
|
82
82
|
"value": {
|
|
83
83
|
"type": [
|
|
84
|
-
"
|
|
84
|
+
"boolean",
|
|
85
85
|
"null",
|
|
86
86
|
"undefined"
|
|
87
87
|
]
|
|
88
88
|
}
|
|
89
89
|
},
|
|
90
90
|
{
|
|
91
|
-
"name": "
|
|
92
|
-
"description": "
|
|
91
|
+
"name": "autoselect",
|
|
92
|
+
"description": "If true, the input text gets fully selected when the field is focused using click or touch / tap.",
|
|
93
93
|
"value": {
|
|
94
94
|
"type": [
|
|
95
|
-
"
|
|
95
|
+
"boolean",
|
|
96
96
|
"null",
|
|
97
97
|
"undefined"
|
|
98
98
|
]
|
|
99
99
|
}
|
|
100
100
|
},
|
|
101
101
|
{
|
|
102
|
-
"name": "
|
|
103
|
-
"description": "
|
|
102
|
+
"name": "clear-button-visible",
|
|
103
|
+
"description": "Set to true to display the clear icon which clears the input.\n\nIt is up to the component to choose where to place the clear icon:\nin the Shadow DOM or in the light DOM. In any way, a reference to\nthe clear icon element should be provided via the `clearElement` getter.",
|
|
104
104
|
"value": {
|
|
105
105
|
"type": [
|
|
106
|
-
"
|
|
106
|
+
"boolean",
|
|
107
107
|
"null",
|
|
108
108
|
"undefined"
|
|
109
109
|
]
|
|
110
110
|
}
|
|
111
111
|
},
|
|
112
112
|
{
|
|
113
|
-
"name": "
|
|
114
|
-
"description": "
|
|
113
|
+
"name": "disabled",
|
|
114
|
+
"description": "If true, the user cannot interact with this element.",
|
|
115
115
|
"value": {
|
|
116
116
|
"type": [
|
|
117
|
-
"
|
|
117
|
+
"boolean",
|
|
118
118
|
"null",
|
|
119
119
|
"undefined"
|
|
120
120
|
]
|
|
121
121
|
}
|
|
122
122
|
},
|
|
123
123
|
{
|
|
124
|
-
"name": "
|
|
125
|
-
"description": "
|
|
124
|
+
"name": "error-message",
|
|
125
|
+
"description": "Error to show when the field is invalid.",
|
|
126
126
|
"value": {
|
|
127
127
|
"type": [
|
|
128
128
|
"string",
|
|
@@ -132,74 +132,74 @@
|
|
|
132
132
|
}
|
|
133
133
|
},
|
|
134
134
|
{
|
|
135
|
-
"name": "
|
|
136
|
-
"description": "
|
|
135
|
+
"name": "helper-text",
|
|
136
|
+
"description": "String used for the helper text.",
|
|
137
137
|
"value": {
|
|
138
138
|
"type": [
|
|
139
|
-
"
|
|
139
|
+
"string",
|
|
140
140
|
"null",
|
|
141
141
|
"undefined"
|
|
142
142
|
]
|
|
143
143
|
}
|
|
144
144
|
},
|
|
145
145
|
{
|
|
146
|
-
"name": "
|
|
147
|
-
"description": "
|
|
146
|
+
"name": "invalid",
|
|
147
|
+
"description": "Set to true when the field is invalid.",
|
|
148
148
|
"value": {
|
|
149
149
|
"type": [
|
|
150
|
-
"
|
|
150
|
+
"boolean",
|
|
151
151
|
"null",
|
|
152
152
|
"undefined"
|
|
153
153
|
]
|
|
154
154
|
}
|
|
155
155
|
},
|
|
156
156
|
{
|
|
157
|
-
"name": "
|
|
158
|
-
"description": "
|
|
157
|
+
"name": "label",
|
|
158
|
+
"description": "The label text for the input node.\nWhen no light dom defined via [slot=label], this value will be used.",
|
|
159
159
|
"value": {
|
|
160
160
|
"type": [
|
|
161
|
-
"
|
|
161
|
+
"string",
|
|
162
162
|
"null",
|
|
163
163
|
"undefined"
|
|
164
164
|
]
|
|
165
165
|
}
|
|
166
166
|
},
|
|
167
167
|
{
|
|
168
|
-
"name": "
|
|
169
|
-
"description": "
|
|
168
|
+
"name": "manual-validation",
|
|
169
|
+
"description": "Set to true to enable manual validation mode. This mode disables automatic\nconstraint validation, allowing you to control the validation process yourself.\nYou can still trigger constraint validation manually with the `validate()` method\nor use `checkValidity()` to assess the component's validity without affecting\nthe invalid state. In manual validation mode, you can also manipulate\nthe `invalid` property directly through your application logic without conflicts\nwith the component's internal validation.",
|
|
170
170
|
"value": {
|
|
171
171
|
"type": [
|
|
172
|
-
"
|
|
172
|
+
"boolean",
|
|
173
173
|
"null",
|
|
174
174
|
"undefined"
|
|
175
175
|
]
|
|
176
176
|
}
|
|
177
177
|
},
|
|
178
178
|
{
|
|
179
|
-
"name": "
|
|
180
|
-
"description": "
|
|
179
|
+
"name": "maxlength",
|
|
180
|
+
"description": "Maximum number of characters (in Unicode code points) that the user can enter.",
|
|
181
181
|
"value": {
|
|
182
182
|
"type": [
|
|
183
|
-
"
|
|
183
|
+
"number",
|
|
184
184
|
"null",
|
|
185
185
|
"undefined"
|
|
186
186
|
]
|
|
187
187
|
}
|
|
188
188
|
},
|
|
189
189
|
{
|
|
190
|
-
"name": "
|
|
191
|
-
"description": "
|
|
190
|
+
"name": "minlength",
|
|
191
|
+
"description": "Minimum number of characters (in Unicode code points) that the user can enter.",
|
|
192
192
|
"value": {
|
|
193
193
|
"type": [
|
|
194
|
-
"
|
|
194
|
+
"number",
|
|
195
195
|
"null",
|
|
196
196
|
"undefined"
|
|
197
197
|
]
|
|
198
198
|
}
|
|
199
199
|
},
|
|
200
200
|
{
|
|
201
|
-
"name": "
|
|
202
|
-
"description": "The
|
|
201
|
+
"name": "name",
|
|
202
|
+
"description": "The name of this field.",
|
|
203
203
|
"value": {
|
|
204
204
|
"type": [
|
|
205
205
|
"string",
|
|
@@ -209,8 +209,8 @@
|
|
|
209
209
|
}
|
|
210
210
|
},
|
|
211
211
|
{
|
|
212
|
-
"name": "
|
|
213
|
-
"description": "
|
|
212
|
+
"name": "pattern",
|
|
213
|
+
"description": "A regular expression that the value is checked against.\nThe pattern must match the entire value, not just some subset.",
|
|
214
214
|
"value": {
|
|
215
215
|
"type": [
|
|
216
216
|
"string",
|
|
@@ -220,8 +220,8 @@
|
|
|
220
220
|
}
|
|
221
221
|
},
|
|
222
222
|
{
|
|
223
|
-
"name": "
|
|
224
|
-
"description": "
|
|
223
|
+
"name": "placeholder",
|
|
224
|
+
"description": "A hint to the user of what can be entered in the field.",
|
|
225
225
|
"value": {
|
|
226
226
|
"type": [
|
|
227
227
|
"string",
|
|
@@ -231,41 +231,41 @@
|
|
|
231
231
|
}
|
|
232
232
|
},
|
|
233
233
|
{
|
|
234
|
-
"name": "
|
|
235
|
-
"description": "
|
|
234
|
+
"name": "readonly",
|
|
235
|
+
"description": "When present, it specifies that the field is read-only.",
|
|
236
236
|
"value": {
|
|
237
237
|
"type": [
|
|
238
|
-
"
|
|
238
|
+
"boolean",
|
|
239
239
|
"null",
|
|
240
240
|
"undefined"
|
|
241
241
|
]
|
|
242
242
|
}
|
|
243
243
|
},
|
|
244
244
|
{
|
|
245
|
-
"name": "
|
|
246
|
-
"description": "
|
|
245
|
+
"name": "required",
|
|
246
|
+
"description": "Specifies that the user must fill in a value.",
|
|
247
247
|
"value": {
|
|
248
248
|
"type": [
|
|
249
|
-
"
|
|
249
|
+
"boolean",
|
|
250
250
|
"null",
|
|
251
251
|
"undefined"
|
|
252
252
|
]
|
|
253
253
|
}
|
|
254
254
|
},
|
|
255
255
|
{
|
|
256
|
-
"name": "
|
|
257
|
-
"description": "
|
|
256
|
+
"name": "theme",
|
|
257
|
+
"description": "The theme variants to apply to the component.",
|
|
258
258
|
"value": {
|
|
259
259
|
"type": [
|
|
260
|
-
"
|
|
260
|
+
"string",
|
|
261
261
|
"null",
|
|
262
262
|
"undefined"
|
|
263
263
|
]
|
|
264
264
|
}
|
|
265
265
|
},
|
|
266
266
|
{
|
|
267
|
-
"name": "
|
|
268
|
-
"description": "
|
|
267
|
+
"name": "title",
|
|
268
|
+
"description": "The text usually displayed in a tooltip popup when the mouse is over the field.",
|
|
269
269
|
"value": {
|
|
270
270
|
"type": [
|
|
271
271
|
"string",
|
|
@@ -275,8 +275,8 @@
|
|
|
275
275
|
}
|
|
276
276
|
},
|
|
277
277
|
{
|
|
278
|
-
"name": "
|
|
279
|
-
"description": "The
|
|
278
|
+
"name": "value",
|
|
279
|
+
"description": "The value of the field.",
|
|
280
280
|
"value": {
|
|
281
281
|
"type": [
|
|
282
282
|
"string",
|
|
@@ -289,30 +289,30 @@
|
|
|
289
289
|
"js": {
|
|
290
290
|
"properties": [
|
|
291
291
|
{
|
|
292
|
-
"name": "
|
|
293
|
-
"description": "
|
|
292
|
+
"name": "accessibleName",
|
|
293
|
+
"description": "String used to label the component to screen reader users.",
|
|
294
294
|
"value": {
|
|
295
295
|
"type": [
|
|
296
|
-
"
|
|
296
|
+
"string",
|
|
297
297
|
"null",
|
|
298
298
|
"undefined"
|
|
299
299
|
]
|
|
300
300
|
}
|
|
301
301
|
},
|
|
302
302
|
{
|
|
303
|
-
"name": "
|
|
304
|
-
"description": "
|
|
303
|
+
"name": "accessibleNameRef",
|
|
304
|
+
"description": "Id of the element used as label of the component to screen reader users.",
|
|
305
305
|
"value": {
|
|
306
306
|
"type": [
|
|
307
|
-
"
|
|
307
|
+
"string",
|
|
308
308
|
"null",
|
|
309
309
|
"undefined"
|
|
310
310
|
]
|
|
311
311
|
}
|
|
312
312
|
},
|
|
313
313
|
{
|
|
314
|
-
"name": "
|
|
315
|
-
"description": "
|
|
314
|
+
"name": "allowedCharPattern",
|
|
315
|
+
"description": "A pattern matched against individual characters the user inputs.\n\nWhen set, the field will prevent:\n- `keydown` events if the entered key doesn't match `/^allowedCharPattern$/`\n- `paste` events if the pasted text doesn't match `/^allowedCharPattern*$/`\n- `drop` events if the dropped text doesn't match `/^allowedCharPattern*$/`\n\nFor example, to allow entering only numbers and minus signs, use:\n`allowedCharPattern = \"[\\\\d-]\"`",
|
|
316
316
|
"value": {
|
|
317
317
|
"type": [
|
|
318
318
|
"string",
|
|
@@ -322,85 +322,85 @@
|
|
|
322
322
|
}
|
|
323
323
|
},
|
|
324
324
|
{
|
|
325
|
-
"name": "
|
|
326
|
-
"description": "
|
|
325
|
+
"name": "autocapitalize",
|
|
326
|
+
"description": "This is a property supported by Safari and Chrome that is used to control whether\nautocapitalization should be enabled when the user is entering/editing the text.\nPossible values are:\ncharacters: Characters capitalization.\nwords: Words capitalization.\nsentences: Sentences capitalization.\nnone: No capitalization.",
|
|
327
327
|
"value": {
|
|
328
328
|
"type": [
|
|
329
|
-
"
|
|
329
|
+
"string",
|
|
330
330
|
"null",
|
|
331
331
|
"undefined"
|
|
332
332
|
]
|
|
333
333
|
}
|
|
334
334
|
},
|
|
335
335
|
{
|
|
336
|
-
"name": "
|
|
337
|
-
"description": "
|
|
336
|
+
"name": "autocomplete",
|
|
337
|
+
"description": "Whether the value of the control can be automatically completed by the browser.\nList of available options at:\nhttps://developer.mozilla.org/en/docs/Web/HTML/Element/input#attr-autocomplete",
|
|
338
338
|
"value": {
|
|
339
339
|
"type": [
|
|
340
|
-
"
|
|
340
|
+
"string",
|
|
341
341
|
"null",
|
|
342
342
|
"undefined"
|
|
343
343
|
]
|
|
344
344
|
}
|
|
345
345
|
},
|
|
346
346
|
{
|
|
347
|
-
"name": "
|
|
348
|
-
"description": "
|
|
347
|
+
"name": "autocorrect",
|
|
348
|
+
"description": "This is a property supported by Safari that is used to control whether\nautocorrection should be enabled when the user is entering/editing the text.\nPossible values are:\non: Enable autocorrection.\noff: Disable autocorrection.",
|
|
349
349
|
"value": {
|
|
350
350
|
"type": [
|
|
351
|
-
"
|
|
351
|
+
"string",
|
|
352
352
|
"null",
|
|
353
353
|
"undefined"
|
|
354
354
|
]
|
|
355
355
|
}
|
|
356
356
|
},
|
|
357
357
|
{
|
|
358
|
-
"name": "
|
|
359
|
-
"description": "
|
|
358
|
+
"name": "autofocus",
|
|
359
|
+
"description": "Specify that this control should have input focus when the page loads.",
|
|
360
360
|
"value": {
|
|
361
361
|
"type": [
|
|
362
|
-
"
|
|
362
|
+
"boolean",
|
|
363
363
|
"null",
|
|
364
364
|
"undefined"
|
|
365
365
|
]
|
|
366
366
|
}
|
|
367
367
|
},
|
|
368
368
|
{
|
|
369
|
-
"name": "
|
|
370
|
-
"description": "
|
|
369
|
+
"name": "autoselect",
|
|
370
|
+
"description": "If true, the input text gets fully selected when the field is focused using click or touch / tap.",
|
|
371
371
|
"value": {
|
|
372
372
|
"type": [
|
|
373
|
-
"
|
|
373
|
+
"boolean",
|
|
374
374
|
"null",
|
|
375
375
|
"undefined"
|
|
376
376
|
]
|
|
377
377
|
}
|
|
378
378
|
},
|
|
379
379
|
{
|
|
380
|
-
"name": "
|
|
381
|
-
"description": "
|
|
380
|
+
"name": "clearButtonVisible",
|
|
381
|
+
"description": "Set to true to display the clear icon which clears the input.\n\nIt is up to the component to choose where to place the clear icon:\nin the Shadow DOM or in the light DOM. In any way, a reference to\nthe clear icon element should be provided via the `clearElement` getter.",
|
|
382
382
|
"value": {
|
|
383
383
|
"type": [
|
|
384
|
-
"
|
|
384
|
+
"boolean",
|
|
385
385
|
"null",
|
|
386
386
|
"undefined"
|
|
387
387
|
]
|
|
388
388
|
}
|
|
389
389
|
},
|
|
390
390
|
{
|
|
391
|
-
"name": "
|
|
392
|
-
"description": "
|
|
391
|
+
"name": "disabled",
|
|
392
|
+
"description": "If true, the user cannot interact with this element.",
|
|
393
393
|
"value": {
|
|
394
394
|
"type": [
|
|
395
|
-
"
|
|
395
|
+
"boolean",
|
|
396
396
|
"null",
|
|
397
397
|
"undefined"
|
|
398
398
|
]
|
|
399
399
|
}
|
|
400
400
|
},
|
|
401
401
|
{
|
|
402
|
-
"name": "
|
|
403
|
-
"description": "
|
|
402
|
+
"name": "errorMessage",
|
|
403
|
+
"description": "Error to show when the field is invalid.",
|
|
404
404
|
"value": {
|
|
405
405
|
"type": [
|
|
406
406
|
"string",
|
|
@@ -410,74 +410,74 @@
|
|
|
410
410
|
}
|
|
411
411
|
},
|
|
412
412
|
{
|
|
413
|
-
"name": "
|
|
414
|
-
"description": "
|
|
413
|
+
"name": "helperText",
|
|
414
|
+
"description": "String used for the helper text.",
|
|
415
415
|
"value": {
|
|
416
416
|
"type": [
|
|
417
|
-
"
|
|
417
|
+
"string",
|
|
418
418
|
"null",
|
|
419
419
|
"undefined"
|
|
420
420
|
]
|
|
421
421
|
}
|
|
422
422
|
},
|
|
423
423
|
{
|
|
424
|
-
"name": "
|
|
425
|
-
"description": "
|
|
424
|
+
"name": "invalid",
|
|
425
|
+
"description": "Set to true when the field is invalid.",
|
|
426
426
|
"value": {
|
|
427
427
|
"type": [
|
|
428
|
-
"
|
|
428
|
+
"boolean",
|
|
429
429
|
"null",
|
|
430
430
|
"undefined"
|
|
431
431
|
]
|
|
432
432
|
}
|
|
433
433
|
},
|
|
434
434
|
{
|
|
435
|
-
"name": "
|
|
436
|
-
"description": "
|
|
435
|
+
"name": "label",
|
|
436
|
+
"description": "The label text for the input node.\nWhen no light dom defined via [slot=label], this value will be used.",
|
|
437
437
|
"value": {
|
|
438
438
|
"type": [
|
|
439
|
-
"
|
|
439
|
+
"string",
|
|
440
440
|
"null",
|
|
441
441
|
"undefined"
|
|
442
442
|
]
|
|
443
443
|
}
|
|
444
444
|
},
|
|
445
445
|
{
|
|
446
|
-
"name": "
|
|
447
|
-
"description": "
|
|
446
|
+
"name": "manualValidation",
|
|
447
|
+
"description": "Set to true to enable manual validation mode. This mode disables automatic\nconstraint validation, allowing you to control the validation process yourself.\nYou can still trigger constraint validation manually with the `validate()` method\nor use `checkValidity()` to assess the component's validity without affecting\nthe invalid state. In manual validation mode, you can also manipulate\nthe `invalid` property directly through your application logic without conflicts\nwith the component's internal validation.",
|
|
448
448
|
"value": {
|
|
449
449
|
"type": [
|
|
450
|
-
"
|
|
450
|
+
"boolean",
|
|
451
451
|
"null",
|
|
452
452
|
"undefined"
|
|
453
453
|
]
|
|
454
454
|
}
|
|
455
455
|
},
|
|
456
456
|
{
|
|
457
|
-
"name": "
|
|
458
|
-
"description": "
|
|
457
|
+
"name": "maxlength",
|
|
458
|
+
"description": "Maximum number of characters (in Unicode code points) that the user can enter.",
|
|
459
459
|
"value": {
|
|
460
460
|
"type": [
|
|
461
|
-
"
|
|
461
|
+
"number",
|
|
462
462
|
"null",
|
|
463
463
|
"undefined"
|
|
464
464
|
]
|
|
465
465
|
}
|
|
466
466
|
},
|
|
467
467
|
{
|
|
468
|
-
"name": "
|
|
469
|
-
"description": "
|
|
468
|
+
"name": "minlength",
|
|
469
|
+
"description": "Minimum number of characters (in Unicode code points) that the user can enter.",
|
|
470
470
|
"value": {
|
|
471
471
|
"type": [
|
|
472
|
-
"
|
|
472
|
+
"number",
|
|
473
473
|
"null",
|
|
474
474
|
"undefined"
|
|
475
475
|
]
|
|
476
476
|
}
|
|
477
477
|
},
|
|
478
478
|
{
|
|
479
|
-
"name": "
|
|
480
|
-
"description": "The
|
|
479
|
+
"name": "name",
|
|
480
|
+
"description": "The name of this field.",
|
|
481
481
|
"value": {
|
|
482
482
|
"type": [
|
|
483
483
|
"string",
|
|
@@ -487,8 +487,8 @@
|
|
|
487
487
|
}
|
|
488
488
|
},
|
|
489
489
|
{
|
|
490
|
-
"name": "
|
|
491
|
-
"description": "
|
|
490
|
+
"name": "pattern",
|
|
491
|
+
"description": "A regular expression that the value is checked against.\nThe pattern must match the entire value, not just some subset.",
|
|
492
492
|
"value": {
|
|
493
493
|
"type": [
|
|
494
494
|
"string",
|
|
@@ -498,8 +498,8 @@
|
|
|
498
498
|
}
|
|
499
499
|
},
|
|
500
500
|
{
|
|
501
|
-
"name": "
|
|
502
|
-
"description": "
|
|
501
|
+
"name": "placeholder",
|
|
502
|
+
"description": "A hint to the user of what can be entered in the field.",
|
|
503
503
|
"value": {
|
|
504
504
|
"type": [
|
|
505
505
|
"string",
|
|
@@ -509,41 +509,41 @@
|
|
|
509
509
|
}
|
|
510
510
|
},
|
|
511
511
|
{
|
|
512
|
-
"name": "
|
|
513
|
-
"description": "
|
|
512
|
+
"name": "readonly",
|
|
513
|
+
"description": "When present, it specifies that the field is read-only.",
|
|
514
514
|
"value": {
|
|
515
515
|
"type": [
|
|
516
|
-
"
|
|
516
|
+
"boolean",
|
|
517
517
|
"null",
|
|
518
518
|
"undefined"
|
|
519
519
|
]
|
|
520
520
|
}
|
|
521
521
|
},
|
|
522
522
|
{
|
|
523
|
-
"name": "
|
|
524
|
-
"description": "
|
|
523
|
+
"name": "required",
|
|
524
|
+
"description": "Specifies that the user must fill in a value.",
|
|
525
525
|
"value": {
|
|
526
526
|
"type": [
|
|
527
|
-
"
|
|
527
|
+
"boolean",
|
|
528
528
|
"null",
|
|
529
529
|
"undefined"
|
|
530
530
|
]
|
|
531
531
|
}
|
|
532
532
|
},
|
|
533
533
|
{
|
|
534
|
-
"name": "
|
|
535
|
-
"description": "
|
|
534
|
+
"name": "title",
|
|
535
|
+
"description": "The text usually displayed in a tooltip popup when the mouse is over the field.",
|
|
536
536
|
"value": {
|
|
537
537
|
"type": [
|
|
538
|
-
"
|
|
538
|
+
"string",
|
|
539
539
|
"null",
|
|
540
540
|
"undefined"
|
|
541
541
|
]
|
|
542
542
|
}
|
|
543
543
|
},
|
|
544
544
|
{
|
|
545
|
-
"name": "
|
|
546
|
-
"description": "
|
|
545
|
+
"name": "value",
|
|
546
|
+
"description": "The value of the field.",
|
|
547
547
|
"value": {
|
|
548
548
|
"type": [
|
|
549
549
|
"string",
|
|
@@ -554,10 +554,6 @@
|
|
|
554
554
|
}
|
|
555
555
|
],
|
|
556
556
|
"events": [
|
|
557
|
-
{
|
|
558
|
-
"name": "validated",
|
|
559
|
-
"description": "Fired whenever the field is validated."
|
|
560
|
-
},
|
|
561
557
|
{
|
|
562
558
|
"name": "change",
|
|
563
559
|
"description": "Fired when the user commits a value change."
|
|
@@ -570,6 +566,10 @@
|
|
|
570
566
|
"name": "invalid-changed",
|
|
571
567
|
"description": "Fired when the `invalid` property changes."
|
|
572
568
|
},
|
|
569
|
+
{
|
|
570
|
+
"name": "validated",
|
|
571
|
+
"description": "Fired whenever the field is validated."
|
|
572
|
+
},
|
|
573
573
|
{
|
|
574
574
|
"name": "value-changed",
|
|
575
575
|
"description": "Fired when the `value` property changes."
|
package/web-types.lit.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/text-field",
|
|
4
|
-
"version": "25.1.0-
|
|
4
|
+
"version": "25.1.0-alpha9",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"framework": "lit",
|
|
7
7
|
"framework-config": {
|
|
@@ -19,13 +19,6 @@
|
|
|
19
19
|
"description": "`<vaadin-text-field>` is a web component that allows the user to input and edit text.\n\n```html\n<vaadin-text-field label=\"First Name\"></vaadin-text-field>\n```\n\n### Prefixes and suffixes\n\nThese are child elements of a `<vaadin-text-field>` that are displayed\ninline with the input, before or after.\nIn order for an element to be considered as a prefix, it must have the slot\nattribute set to `prefix` (and similarly for `suffix`).\n\n```html\n<vaadin-text-field label=\"Email address\">\n <div slot=\"prefix\">Sent to:</div>\n <div slot=\"suffix\">@vaadin.com</div>\n</vaadin-text-field>\n```\n\n### Styling\n\nThe following custom properties are available for styling:\n\nCustom property | Description | Default\n-------------------------------|----------------------------|---------\n`--vaadin-field-default-width` | Default width of the field | `12em`\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n---------------------|----------------\n`label` | The label element\n`input-field` | The element that wraps prefix, value and suffix\n`field-button` | Set on the clear button\n`clear-button` | The clear button\n`error-message` | The error message element\n`helper-text` | The helper text element wrapper\n`required-indicator` | The `required` state indicator element\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n---------------------|---------------------------------\n`disabled` | Set when the element is disabled\n`has-value` | Set when the element has a value\n`has-label` | Set when the element has a label\n`has-helper` | Set when the element has helper text or slot\n`has-error-message` | Set when the element has an error message\n`has-tooltip` | Set when the element has a slotted tooltip\n`invalid` | Set when the element is invalid\n`input-prevented` | Temporarily set when invalid input is prevented\n`focused` | Set when the element is focused\n`focus-ring` | Set when the element is keyboard focused\n`readonly` | Set when the element is readonly\n\nNote, the `input-prevented` state attribute is only supported when `allowedCharPattern` is set.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
|
|
20
20
|
"extension": true,
|
|
21
21
|
"attributes": [
|
|
22
|
-
{
|
|
23
|
-
"name": "?disabled",
|
|
24
|
-
"description": "If true, the user cannot interact with this element.",
|
|
25
|
-
"value": {
|
|
26
|
-
"kind": "expression"
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
22
|
{
|
|
30
23
|
"name": "?autofocus",
|
|
31
24
|
"description": "Specify that this control should have input focus when the page loads.",
|
|
@@ -34,36 +27,36 @@
|
|
|
34
27
|
}
|
|
35
28
|
},
|
|
36
29
|
{
|
|
37
|
-
"name": "?
|
|
38
|
-
"description": "
|
|
30
|
+
"name": "?autoselect",
|
|
31
|
+
"description": "If true, the input text gets fully selected when the field is focused using click or touch / tap.",
|
|
39
32
|
"value": {
|
|
40
33
|
"kind": "expression"
|
|
41
34
|
}
|
|
42
35
|
},
|
|
43
36
|
{
|
|
44
|
-
"name": "?
|
|
45
|
-
"description": "Set to true to
|
|
37
|
+
"name": "?clearButtonVisible",
|
|
38
|
+
"description": "Set to true to display the clear icon which clears the input.\n\nIt is up to the component to choose where to place the clear icon:\nin the Shadow DOM or in the light DOM. In any way, a reference to\nthe clear icon element should be provided via the `clearElement` getter.",
|
|
46
39
|
"value": {
|
|
47
40
|
"kind": "expression"
|
|
48
41
|
}
|
|
49
42
|
},
|
|
50
43
|
{
|
|
51
|
-
"name": "?
|
|
52
|
-
"description": "
|
|
44
|
+
"name": "?disabled",
|
|
45
|
+
"description": "If true, the user cannot interact with this element.",
|
|
53
46
|
"value": {
|
|
54
47
|
"kind": "expression"
|
|
55
48
|
}
|
|
56
49
|
},
|
|
57
50
|
{
|
|
58
|
-
"name": "?
|
|
59
|
-
"description": "Set to true
|
|
51
|
+
"name": "?invalid",
|
|
52
|
+
"description": "Set to true when the field is invalid.",
|
|
60
53
|
"value": {
|
|
61
54
|
"kind": "expression"
|
|
62
55
|
}
|
|
63
56
|
},
|
|
64
57
|
{
|
|
65
|
-
"name": "?
|
|
66
|
-
"description": "
|
|
58
|
+
"name": "?manualValidation",
|
|
59
|
+
"description": "Set to true to enable manual validation mode. This mode disables automatic\nconstraint validation, allowing you to control the validation process yourself.\nYou can still trigger constraint validation manually with the `validate()` method\nor use `checkValidity()` to assess the component's validity without affecting\nthe invalid state. In manual validation mode, you can also manipulate\nthe `invalid` property directly through your application logic without conflicts\nwith the component's internal validation.",
|
|
67
60
|
"value": {
|
|
68
61
|
"kind": "expression"
|
|
69
62
|
}
|
|
@@ -76,120 +69,120 @@
|
|
|
76
69
|
}
|
|
77
70
|
},
|
|
78
71
|
{
|
|
79
|
-
"name": "
|
|
80
|
-
"description": "
|
|
72
|
+
"name": "?required",
|
|
73
|
+
"description": "Specifies that the user must fill in a value.",
|
|
81
74
|
"value": {
|
|
82
75
|
"kind": "expression"
|
|
83
76
|
}
|
|
84
77
|
},
|
|
85
78
|
{
|
|
86
|
-
"name": ".
|
|
87
|
-
"description": "
|
|
79
|
+
"name": ".accessibleName",
|
|
80
|
+
"description": "String used to label the component to screen reader users.",
|
|
88
81
|
"value": {
|
|
89
82
|
"kind": "expression"
|
|
90
83
|
}
|
|
91
84
|
},
|
|
92
85
|
{
|
|
93
|
-
"name": ".
|
|
94
|
-
"description": "
|
|
86
|
+
"name": ".accessibleNameRef",
|
|
87
|
+
"description": "Id of the element used as label of the component to screen reader users.",
|
|
95
88
|
"value": {
|
|
96
89
|
"kind": "expression"
|
|
97
90
|
}
|
|
98
91
|
},
|
|
99
92
|
{
|
|
100
|
-
"name": ".
|
|
101
|
-
"description": "
|
|
93
|
+
"name": ".allowedCharPattern",
|
|
94
|
+
"description": "A pattern matched against individual characters the user inputs.\n\nWhen set, the field will prevent:\n- `keydown` events if the entered key doesn't match `/^allowedCharPattern$/`\n- `paste` events if the pasted text doesn't match `/^allowedCharPattern*$/`\n- `drop` events if the dropped text doesn't match `/^allowedCharPattern*$/`\n\nFor example, to allow entering only numbers and minus signs, use:\n`allowedCharPattern = \"[\\\\d-]\"`",
|
|
102
95
|
"value": {
|
|
103
96
|
"kind": "expression"
|
|
104
97
|
}
|
|
105
98
|
},
|
|
106
99
|
{
|
|
107
|
-
"name": ".
|
|
108
|
-
"description": "
|
|
100
|
+
"name": ".autocapitalize",
|
|
101
|
+
"description": "This is a property supported by Safari and Chrome that is used to control whether\nautocapitalization should be enabled when the user is entering/editing the text.\nPossible values are:\ncharacters: Characters capitalization.\nwords: Words capitalization.\nsentences: Sentences capitalization.\nnone: No capitalization.",
|
|
109
102
|
"value": {
|
|
110
103
|
"kind": "expression"
|
|
111
104
|
}
|
|
112
105
|
},
|
|
113
106
|
{
|
|
114
|
-
"name": ".
|
|
115
|
-
"description": "
|
|
107
|
+
"name": ".autocomplete",
|
|
108
|
+
"description": "Whether the value of the control can be automatically completed by the browser.\nList of available options at:\nhttps://developer.mozilla.org/en/docs/Web/HTML/Element/input#attr-autocomplete",
|
|
116
109
|
"value": {
|
|
117
110
|
"kind": "expression"
|
|
118
111
|
}
|
|
119
112
|
},
|
|
120
113
|
{
|
|
121
|
-
"name": ".
|
|
122
|
-
"description": "
|
|
114
|
+
"name": ".autocorrect",
|
|
115
|
+
"description": "This is a property supported by Safari that is used to control whether\nautocorrection should be enabled when the user is entering/editing the text.\nPossible values are:\non: Enable autocorrection.\noff: Disable autocorrection.",
|
|
123
116
|
"value": {
|
|
124
117
|
"kind": "expression"
|
|
125
118
|
}
|
|
126
119
|
},
|
|
127
120
|
{
|
|
128
|
-
"name": ".
|
|
129
|
-
"description": "
|
|
121
|
+
"name": ".errorMessage",
|
|
122
|
+
"description": "Error to show when the field is invalid.",
|
|
130
123
|
"value": {
|
|
131
124
|
"kind": "expression"
|
|
132
125
|
}
|
|
133
126
|
},
|
|
134
127
|
{
|
|
135
|
-
"name": ".
|
|
136
|
-
"description": "
|
|
128
|
+
"name": ".helperText",
|
|
129
|
+
"description": "String used for the helper text.",
|
|
137
130
|
"value": {
|
|
138
131
|
"kind": "expression"
|
|
139
132
|
}
|
|
140
133
|
},
|
|
141
134
|
{
|
|
142
|
-
"name": ".
|
|
143
|
-
"description": "The text
|
|
135
|
+
"name": ".label",
|
|
136
|
+
"description": "The label text for the input node.\nWhen no light dom defined via [slot=label], this value will be used.",
|
|
144
137
|
"value": {
|
|
145
138
|
"kind": "expression"
|
|
146
139
|
}
|
|
147
140
|
},
|
|
148
141
|
{
|
|
149
|
-
"name": ".
|
|
150
|
-
"description": "
|
|
142
|
+
"name": ".maxlength",
|
|
143
|
+
"description": "Maximum number of characters (in Unicode code points) that the user can enter.",
|
|
151
144
|
"value": {
|
|
152
145
|
"kind": "expression"
|
|
153
146
|
}
|
|
154
147
|
},
|
|
155
148
|
{
|
|
156
|
-
"name": ".
|
|
157
|
-
"description": "
|
|
149
|
+
"name": ".minlength",
|
|
150
|
+
"description": "Minimum number of characters (in Unicode code points) that the user can enter.",
|
|
158
151
|
"value": {
|
|
159
152
|
"kind": "expression"
|
|
160
153
|
}
|
|
161
154
|
},
|
|
162
155
|
{
|
|
163
|
-
"name": ".
|
|
164
|
-
"description": "
|
|
156
|
+
"name": ".name",
|
|
157
|
+
"description": "The name of this field.",
|
|
165
158
|
"value": {
|
|
166
159
|
"kind": "expression"
|
|
167
160
|
}
|
|
168
161
|
},
|
|
169
162
|
{
|
|
170
|
-
"name": ".
|
|
171
|
-
"description": "
|
|
163
|
+
"name": ".pattern",
|
|
164
|
+
"description": "A regular expression that the value is checked against.\nThe pattern must match the entire value, not just some subset.",
|
|
172
165
|
"value": {
|
|
173
166
|
"kind": "expression"
|
|
174
167
|
}
|
|
175
168
|
},
|
|
176
169
|
{
|
|
177
|
-
"name": ".
|
|
178
|
-
"description": "
|
|
170
|
+
"name": ".placeholder",
|
|
171
|
+
"description": "A hint to the user of what can be entered in the field.",
|
|
179
172
|
"value": {
|
|
180
173
|
"kind": "expression"
|
|
181
174
|
}
|
|
182
175
|
},
|
|
183
176
|
{
|
|
184
|
-
"name": ".
|
|
185
|
-
"description": "
|
|
177
|
+
"name": ".title",
|
|
178
|
+
"description": "The text usually displayed in a tooltip popup when the mouse is over the field.",
|
|
186
179
|
"value": {
|
|
187
180
|
"kind": "expression"
|
|
188
181
|
}
|
|
189
182
|
},
|
|
190
183
|
{
|
|
191
|
-
"name": "
|
|
192
|
-
"description": "
|
|
184
|
+
"name": ".value",
|
|
185
|
+
"description": "The value of the field.",
|
|
193
186
|
"value": {
|
|
194
187
|
"kind": "expression"
|
|
195
188
|
}
|
|
@@ -215,6 +208,13 @@
|
|
|
215
208
|
"kind": "expression"
|
|
216
209
|
}
|
|
217
210
|
},
|
|
211
|
+
{
|
|
212
|
+
"name": "@validated",
|
|
213
|
+
"description": "Fired whenever the field is validated.",
|
|
214
|
+
"value": {
|
|
215
|
+
"kind": "expression"
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
218
|
{
|
|
219
219
|
"name": "@value-changed",
|
|
220
220
|
"description": "Fired when the `value` property changes.",
|