@vaadin/text-area 25.1.0-alpha6 → 25.1.0-alpha7
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/custom-elements.json +1177 -0
- package/package.json +13 -11
- package/src/vaadin-text-area.js +1 -1
- package/web-types.json +1 -1
- package/web-types.lit.json +1 -1
|
@@ -0,0 +1,1177 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "1.0.0",
|
|
3
|
+
"readme": "",
|
|
4
|
+
"modules": [
|
|
5
|
+
{
|
|
6
|
+
"kind": "javascript-module",
|
|
7
|
+
"path": "vaadin-text-area.js",
|
|
8
|
+
"declarations": [],
|
|
9
|
+
"exports": [
|
|
10
|
+
{
|
|
11
|
+
"kind": "js",
|
|
12
|
+
"name": "*",
|
|
13
|
+
"declaration": {
|
|
14
|
+
"name": "*",
|
|
15
|
+
"module": "src/vaadin-text-area.js"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"kind": "javascript-module",
|
|
22
|
+
"path": "src/vaadin-text-area-mixin.js",
|
|
23
|
+
"declarations": [
|
|
24
|
+
{
|
|
25
|
+
"kind": "mixin",
|
|
26
|
+
"description": "A mixin providing common text area functionality.",
|
|
27
|
+
"name": "TextAreaMixin",
|
|
28
|
+
"members": [
|
|
29
|
+
{
|
|
30
|
+
"kind": "field",
|
|
31
|
+
"name": "accessibleName",
|
|
32
|
+
"privacy": "public",
|
|
33
|
+
"type": {
|
|
34
|
+
"text": "string"
|
|
35
|
+
},
|
|
36
|
+
"description": "String used to label the component to screen reader users.",
|
|
37
|
+
"attribute": "accessible-name",
|
|
38
|
+
"inheritedFrom": {
|
|
39
|
+
"name": "FieldMixin",
|
|
40
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"kind": "field",
|
|
45
|
+
"name": "accessibleNameRef",
|
|
46
|
+
"privacy": "public",
|
|
47
|
+
"type": {
|
|
48
|
+
"text": "string"
|
|
49
|
+
},
|
|
50
|
+
"description": "Id of the element used as label of the component to screen reader users.",
|
|
51
|
+
"attribute": "accessible-name-ref",
|
|
52
|
+
"inheritedFrom": {
|
|
53
|
+
"name": "FieldMixin",
|
|
54
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"kind": "field",
|
|
59
|
+
"name": "allowedCharPattern",
|
|
60
|
+
"privacy": "public",
|
|
61
|
+
"type": {
|
|
62
|
+
"text": "string"
|
|
63
|
+
},
|
|
64
|
+
"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-]\"`",
|
|
65
|
+
"attribute": "allowed-char-pattern",
|
|
66
|
+
"inheritedFrom": {
|
|
67
|
+
"name": "InputControlMixin",
|
|
68
|
+
"package": "@vaadin/field-base/src/input-control-mixin.js"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"kind": "field",
|
|
73
|
+
"name": "autocapitalize",
|
|
74
|
+
"privacy": "public",
|
|
75
|
+
"type": {
|
|
76
|
+
"text": "string"
|
|
77
|
+
},
|
|
78
|
+
"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.",
|
|
79
|
+
"attribute": "autocapitalize",
|
|
80
|
+
"inheritedFrom": {
|
|
81
|
+
"name": "InputFieldMixin",
|
|
82
|
+
"package": "@vaadin/field-base/src/input-field-mixin.js"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"kind": "field",
|
|
87
|
+
"name": "autocomplete",
|
|
88
|
+
"privacy": "public",
|
|
89
|
+
"type": {
|
|
90
|
+
"text": "string"
|
|
91
|
+
},
|
|
92
|
+
"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",
|
|
93
|
+
"attribute": "autocomplete",
|
|
94
|
+
"inheritedFrom": {
|
|
95
|
+
"name": "InputFieldMixin",
|
|
96
|
+
"package": "@vaadin/field-base/src/input-field-mixin.js"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"kind": "field",
|
|
101
|
+
"name": "autocorrect",
|
|
102
|
+
"privacy": "public",
|
|
103
|
+
"type": {
|
|
104
|
+
"text": "string"
|
|
105
|
+
},
|
|
106
|
+
"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.",
|
|
107
|
+
"attribute": "autocorrect",
|
|
108
|
+
"inheritedFrom": {
|
|
109
|
+
"name": "InputFieldMixin",
|
|
110
|
+
"package": "@vaadin/field-base/src/input-field-mixin.js"
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"kind": "field",
|
|
115
|
+
"name": "autoselect",
|
|
116
|
+
"privacy": "public",
|
|
117
|
+
"type": {
|
|
118
|
+
"text": "boolean"
|
|
119
|
+
},
|
|
120
|
+
"description": "If true, the input text gets fully selected when the field is focused using click or touch / tap.",
|
|
121
|
+
"attribute": "autoselect",
|
|
122
|
+
"inheritedFrom": {
|
|
123
|
+
"name": "InputControlMixin",
|
|
124
|
+
"package": "@vaadin/field-base/src/input-control-mixin.js"
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"kind": "method",
|
|
129
|
+
"name": "checkValidity",
|
|
130
|
+
"description": "Returns true if the current textarea value satisfies all constraints (if any).",
|
|
131
|
+
"return": {
|
|
132
|
+
"type": {
|
|
133
|
+
"text": "boolean"
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"kind": "field",
|
|
139
|
+
"name": "clearButtonVisible",
|
|
140
|
+
"privacy": "public",
|
|
141
|
+
"type": {
|
|
142
|
+
"text": "boolean"
|
|
143
|
+
},
|
|
144
|
+
"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.",
|
|
145
|
+
"attribute": "clear-button-visible",
|
|
146
|
+
"inheritedFrom": {
|
|
147
|
+
"name": "ClearButtonMixin",
|
|
148
|
+
"package": "@vaadin/field-base/src/clear-button-mixin.js"
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"kind": "field",
|
|
153
|
+
"name": "errorMessage",
|
|
154
|
+
"privacy": "public",
|
|
155
|
+
"type": {
|
|
156
|
+
"text": "string"
|
|
157
|
+
},
|
|
158
|
+
"description": "Error to show when the field is invalid.",
|
|
159
|
+
"attribute": "error-message",
|
|
160
|
+
"inheritedFrom": {
|
|
161
|
+
"name": "FieldMixin",
|
|
162
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"kind": "field",
|
|
167
|
+
"name": "helperText",
|
|
168
|
+
"privacy": "public",
|
|
169
|
+
"type": {
|
|
170
|
+
"text": "string"
|
|
171
|
+
},
|
|
172
|
+
"description": "String used for the helper text.",
|
|
173
|
+
"attribute": "helper-text",
|
|
174
|
+
"inheritedFrom": {
|
|
175
|
+
"name": "FieldMixin",
|
|
176
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"kind": "field",
|
|
181
|
+
"name": "label",
|
|
182
|
+
"privacy": "public",
|
|
183
|
+
"type": {
|
|
184
|
+
"text": "string"
|
|
185
|
+
},
|
|
186
|
+
"description": "The label text for the input node.\nWhen no light dom defined via [slot=label], this value will be used.",
|
|
187
|
+
"attribute": "label",
|
|
188
|
+
"inheritedFrom": {
|
|
189
|
+
"name": "FieldMixin",
|
|
190
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"kind": "field",
|
|
195
|
+
"name": "maxlength",
|
|
196
|
+
"privacy": "public",
|
|
197
|
+
"type": {
|
|
198
|
+
"text": "number"
|
|
199
|
+
},
|
|
200
|
+
"description": "Maximum number of characters (in Unicode code points) that the user can enter.",
|
|
201
|
+
"attribute": "maxlength"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"kind": "field",
|
|
205
|
+
"name": "maxRows",
|
|
206
|
+
"privacy": "public",
|
|
207
|
+
"type": {
|
|
208
|
+
"text": "number"
|
|
209
|
+
},
|
|
210
|
+
"description": "Maximum number of rows to expand to before the text area starts scrolling. This effectively sets a max-height\non the `input-field` part. By default, it is not set, and the text area grows with the content without\nconstraints.",
|
|
211
|
+
"attribute": "max-rows"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"kind": "field",
|
|
215
|
+
"name": "minlength",
|
|
216
|
+
"privacy": "public",
|
|
217
|
+
"type": {
|
|
218
|
+
"text": "number"
|
|
219
|
+
},
|
|
220
|
+
"description": "Minimum number of characters (in Unicode code points) that the user can enter.",
|
|
221
|
+
"attribute": "minlength"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"kind": "field",
|
|
225
|
+
"name": "minRows",
|
|
226
|
+
"privacy": "public",
|
|
227
|
+
"type": {
|
|
228
|
+
"text": "number"
|
|
229
|
+
},
|
|
230
|
+
"description": "Minimum number of rows to show. Default is two rows.\n\nWhen using a custom slotted textarea, the minimum number of rows are not applied for backwards compatibility.",
|
|
231
|
+
"attribute": "min-rows"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"kind": "field",
|
|
235
|
+
"name": "name",
|
|
236
|
+
"privacy": "public",
|
|
237
|
+
"type": {
|
|
238
|
+
"text": "string"
|
|
239
|
+
},
|
|
240
|
+
"description": "The name of this field.",
|
|
241
|
+
"attribute": "name",
|
|
242
|
+
"inheritedFrom": {
|
|
243
|
+
"name": "InputControlMixin",
|
|
244
|
+
"package": "@vaadin/field-base/src/input-control-mixin.js"
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"kind": "field",
|
|
249
|
+
"name": "pattern",
|
|
250
|
+
"privacy": "public",
|
|
251
|
+
"type": {
|
|
252
|
+
"text": "string"
|
|
253
|
+
},
|
|
254
|
+
"description": "A regular expression that the value is checked against.\nThe pattern must match the entire value, not just some subset.",
|
|
255
|
+
"attribute": "pattern"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"kind": "field",
|
|
259
|
+
"name": "placeholder",
|
|
260
|
+
"privacy": "public",
|
|
261
|
+
"type": {
|
|
262
|
+
"text": "string"
|
|
263
|
+
},
|
|
264
|
+
"description": "A hint to the user of what can be entered in the field.",
|
|
265
|
+
"attribute": "placeholder",
|
|
266
|
+
"inheritedFrom": {
|
|
267
|
+
"name": "InputControlMixin",
|
|
268
|
+
"package": "@vaadin/field-base/src/input-control-mixin.js"
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"kind": "field",
|
|
273
|
+
"name": "readonly",
|
|
274
|
+
"privacy": "public",
|
|
275
|
+
"type": {
|
|
276
|
+
"text": "boolean"
|
|
277
|
+
},
|
|
278
|
+
"description": "When present, it specifies that the field is read-only.",
|
|
279
|
+
"attribute": "readonly",
|
|
280
|
+
"inheritedFrom": {
|
|
281
|
+
"name": "InputControlMixin",
|
|
282
|
+
"package": "@vaadin/field-base/src/input-control-mixin.js"
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"kind": "method",
|
|
287
|
+
"name": "scrollToEnd",
|
|
288
|
+
"description": "Scrolls the textarea to the end if it has a vertical scrollbar."
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"kind": "method",
|
|
292
|
+
"name": "scrollToStart",
|
|
293
|
+
"description": "Scrolls the textarea to the start if it has a vertical scrollbar."
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"kind": "field",
|
|
297
|
+
"name": "title",
|
|
298
|
+
"privacy": "public",
|
|
299
|
+
"type": {
|
|
300
|
+
"text": "string"
|
|
301
|
+
},
|
|
302
|
+
"description": "The text usually displayed in a tooltip popup when the mouse is over the field.",
|
|
303
|
+
"attribute": "title",
|
|
304
|
+
"inheritedFrom": {
|
|
305
|
+
"name": "InputControlMixin",
|
|
306
|
+
"package": "@vaadin/field-base/src/input-control-mixin.js"
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
],
|
|
310
|
+
"attributes": [
|
|
311
|
+
{
|
|
312
|
+
"name": "accessible-name",
|
|
313
|
+
"type": {
|
|
314
|
+
"text": "string"
|
|
315
|
+
},
|
|
316
|
+
"description": "String used to label the component to screen reader users.",
|
|
317
|
+
"fieldName": "accessibleName",
|
|
318
|
+
"inheritedFrom": {
|
|
319
|
+
"name": "FieldMixin",
|
|
320
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
"name": "accessible-name-ref",
|
|
325
|
+
"type": {
|
|
326
|
+
"text": "string"
|
|
327
|
+
},
|
|
328
|
+
"description": "Id of the element used as label of the component to screen reader users.",
|
|
329
|
+
"fieldName": "accessibleNameRef",
|
|
330
|
+
"inheritedFrom": {
|
|
331
|
+
"name": "FieldMixin",
|
|
332
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
333
|
+
}
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
"name": "allowed-char-pattern",
|
|
337
|
+
"type": {
|
|
338
|
+
"text": "string"
|
|
339
|
+
},
|
|
340
|
+
"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-]\"`",
|
|
341
|
+
"fieldName": "allowedCharPattern",
|
|
342
|
+
"inheritedFrom": {
|
|
343
|
+
"name": "InputControlMixin",
|
|
344
|
+
"package": "@vaadin/field-base/src/input-control-mixin.js"
|
|
345
|
+
}
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"name": "autocapitalize",
|
|
349
|
+
"type": {
|
|
350
|
+
"text": "string"
|
|
351
|
+
},
|
|
352
|
+
"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.",
|
|
353
|
+
"fieldName": "autocapitalize",
|
|
354
|
+
"inheritedFrom": {
|
|
355
|
+
"name": "InputFieldMixin",
|
|
356
|
+
"package": "@vaadin/field-base/src/input-field-mixin.js"
|
|
357
|
+
}
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"name": "autocomplete",
|
|
361
|
+
"type": {
|
|
362
|
+
"text": "string"
|
|
363
|
+
},
|
|
364
|
+
"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",
|
|
365
|
+
"fieldName": "autocomplete",
|
|
366
|
+
"inheritedFrom": {
|
|
367
|
+
"name": "InputFieldMixin",
|
|
368
|
+
"package": "@vaadin/field-base/src/input-field-mixin.js"
|
|
369
|
+
}
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
"name": "autocorrect",
|
|
373
|
+
"type": {
|
|
374
|
+
"text": "string"
|
|
375
|
+
},
|
|
376
|
+
"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.",
|
|
377
|
+
"fieldName": "autocorrect",
|
|
378
|
+
"inheritedFrom": {
|
|
379
|
+
"name": "InputFieldMixin",
|
|
380
|
+
"package": "@vaadin/field-base/src/input-field-mixin.js"
|
|
381
|
+
}
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
"name": "autoselect",
|
|
385
|
+
"type": {
|
|
386
|
+
"text": "boolean"
|
|
387
|
+
},
|
|
388
|
+
"description": "If true, the input text gets fully selected when the field is focused using click or touch / tap.",
|
|
389
|
+
"fieldName": "autoselect",
|
|
390
|
+
"inheritedFrom": {
|
|
391
|
+
"name": "InputControlMixin",
|
|
392
|
+
"package": "@vaadin/field-base/src/input-control-mixin.js"
|
|
393
|
+
}
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
"name": "clear-button-visible",
|
|
397
|
+
"type": {
|
|
398
|
+
"text": "boolean"
|
|
399
|
+
},
|
|
400
|
+
"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.",
|
|
401
|
+
"fieldName": "clearButtonVisible",
|
|
402
|
+
"inheritedFrom": {
|
|
403
|
+
"name": "ClearButtonMixin",
|
|
404
|
+
"package": "@vaadin/field-base/src/clear-button-mixin.js"
|
|
405
|
+
}
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
"name": "error-message",
|
|
409
|
+
"type": {
|
|
410
|
+
"text": "string"
|
|
411
|
+
},
|
|
412
|
+
"description": "Error to show when the field is invalid.",
|
|
413
|
+
"fieldName": "errorMessage",
|
|
414
|
+
"inheritedFrom": {
|
|
415
|
+
"name": "FieldMixin",
|
|
416
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
417
|
+
}
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
"name": "helper-text",
|
|
421
|
+
"type": {
|
|
422
|
+
"text": "string"
|
|
423
|
+
},
|
|
424
|
+
"description": "String used for the helper text.",
|
|
425
|
+
"fieldName": "helperText",
|
|
426
|
+
"inheritedFrom": {
|
|
427
|
+
"name": "FieldMixin",
|
|
428
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
429
|
+
}
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
"name": "label",
|
|
433
|
+
"type": {
|
|
434
|
+
"text": "string"
|
|
435
|
+
},
|
|
436
|
+
"description": "The label text for the input node.\nWhen no light dom defined via [slot=label], this value will be used.",
|
|
437
|
+
"fieldName": "label",
|
|
438
|
+
"inheritedFrom": {
|
|
439
|
+
"name": "FieldMixin",
|
|
440
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
441
|
+
}
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
"name": "max-rows",
|
|
445
|
+
"type": {
|
|
446
|
+
"text": "number"
|
|
447
|
+
},
|
|
448
|
+
"description": "Maximum number of rows to expand to before the text area starts scrolling. This effectively sets a max-height\non the `input-field` part. By default, it is not set, and the text area grows with the content without\nconstraints.",
|
|
449
|
+
"fieldName": "maxRows"
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
"name": "maxlength",
|
|
453
|
+
"type": {
|
|
454
|
+
"text": "number"
|
|
455
|
+
},
|
|
456
|
+
"description": "Maximum number of characters (in Unicode code points) that the user can enter.",
|
|
457
|
+
"fieldName": "maxlength"
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
"name": "min-rows",
|
|
461
|
+
"type": {
|
|
462
|
+
"text": "number"
|
|
463
|
+
},
|
|
464
|
+
"description": "Minimum number of rows to show. Default is two rows.\n\nWhen using a custom slotted textarea, the minimum number of rows are not applied for backwards compatibility.",
|
|
465
|
+
"fieldName": "minRows"
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
"name": "minlength",
|
|
469
|
+
"type": {
|
|
470
|
+
"text": "number"
|
|
471
|
+
},
|
|
472
|
+
"description": "Minimum number of characters (in Unicode code points) that the user can enter.",
|
|
473
|
+
"fieldName": "minlength"
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
"name": "name",
|
|
477
|
+
"type": {
|
|
478
|
+
"text": "string"
|
|
479
|
+
},
|
|
480
|
+
"description": "The name of this field.",
|
|
481
|
+
"fieldName": "name",
|
|
482
|
+
"inheritedFrom": {
|
|
483
|
+
"name": "InputControlMixin",
|
|
484
|
+
"package": "@vaadin/field-base/src/input-control-mixin.js"
|
|
485
|
+
}
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
"name": "pattern",
|
|
489
|
+
"type": {
|
|
490
|
+
"text": "string"
|
|
491
|
+
},
|
|
492
|
+
"description": "A regular expression that the value is checked against.\nThe pattern must match the entire value, not just some subset.",
|
|
493
|
+
"fieldName": "pattern"
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
"name": "placeholder",
|
|
497
|
+
"type": {
|
|
498
|
+
"text": "string"
|
|
499
|
+
},
|
|
500
|
+
"description": "A hint to the user of what can be entered in the field.",
|
|
501
|
+
"fieldName": "placeholder",
|
|
502
|
+
"inheritedFrom": {
|
|
503
|
+
"name": "InputControlMixin",
|
|
504
|
+
"package": "@vaadin/field-base/src/input-control-mixin.js"
|
|
505
|
+
}
|
|
506
|
+
},
|
|
507
|
+
{
|
|
508
|
+
"name": "readonly",
|
|
509
|
+
"type": {
|
|
510
|
+
"text": "boolean"
|
|
511
|
+
},
|
|
512
|
+
"description": "When present, it specifies that the field is read-only.",
|
|
513
|
+
"fieldName": "readonly",
|
|
514
|
+
"inheritedFrom": {
|
|
515
|
+
"name": "InputControlMixin",
|
|
516
|
+
"package": "@vaadin/field-base/src/input-control-mixin.js"
|
|
517
|
+
}
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
"name": "title",
|
|
521
|
+
"type": {
|
|
522
|
+
"text": "string"
|
|
523
|
+
},
|
|
524
|
+
"description": "The text usually displayed in a tooltip popup when the mouse is over the field.",
|
|
525
|
+
"fieldName": "title",
|
|
526
|
+
"inheritedFrom": {
|
|
527
|
+
"name": "InputControlMixin",
|
|
528
|
+
"package": "@vaadin/field-base/src/input-control-mixin.js"
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
],
|
|
532
|
+
"mixins": [
|
|
533
|
+
{
|
|
534
|
+
"name": "ResizeMixin",
|
|
535
|
+
"package": "@vaadin/component-base/src/resize-mixin.js"
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
"name": "InputFieldMixin",
|
|
539
|
+
"package": "@vaadin/field-base/src/input-field-mixin.js"
|
|
540
|
+
}
|
|
541
|
+
],
|
|
542
|
+
"parameters": [
|
|
543
|
+
{
|
|
544
|
+
"name": "superClass"
|
|
545
|
+
}
|
|
546
|
+
]
|
|
547
|
+
}
|
|
548
|
+
],
|
|
549
|
+
"exports": [
|
|
550
|
+
{
|
|
551
|
+
"kind": "js",
|
|
552
|
+
"name": "TextAreaMixin",
|
|
553
|
+
"declaration": {
|
|
554
|
+
"name": "TextAreaMixin",
|
|
555
|
+
"module": "src/vaadin-text-area-mixin.js"
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
]
|
|
559
|
+
},
|
|
560
|
+
{
|
|
561
|
+
"kind": "javascript-module",
|
|
562
|
+
"path": "src/vaadin-text-area.js",
|
|
563
|
+
"declarations": [
|
|
564
|
+
{
|
|
565
|
+
"kind": "class",
|
|
566
|
+
"description": "`<vaadin-text-area>` is a web component for multi-line text input.\n\n```html\n<vaadin-text-area label=\"Comment\"></vaadin-text-area>\n```\n\n### Prefixes and suffixes\n\nThese are child elements of a `<vaadin-text-area>` 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-area label=\"Description\">\n <div slot=\"prefix\">Details:</div>\n <div slot=\"suffix\">The end!</div>\n</vaadin-text-area>\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.",
|
|
567
|
+
"name": "TextArea",
|
|
568
|
+
"members": [
|
|
569
|
+
{
|
|
570
|
+
"kind": "field",
|
|
571
|
+
"name": "accessibleName",
|
|
572
|
+
"privacy": "public",
|
|
573
|
+
"type": {
|
|
574
|
+
"text": "string"
|
|
575
|
+
},
|
|
576
|
+
"description": "String used to label the component to screen reader users.",
|
|
577
|
+
"attribute": "accessible-name",
|
|
578
|
+
"inheritedFrom": {
|
|
579
|
+
"name": "FieldMixin",
|
|
580
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
581
|
+
}
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
"kind": "field",
|
|
585
|
+
"name": "accessibleNameRef",
|
|
586
|
+
"privacy": "public",
|
|
587
|
+
"type": {
|
|
588
|
+
"text": "string"
|
|
589
|
+
},
|
|
590
|
+
"description": "Id of the element used as label of the component to screen reader users.",
|
|
591
|
+
"attribute": "accessible-name-ref",
|
|
592
|
+
"inheritedFrom": {
|
|
593
|
+
"name": "FieldMixin",
|
|
594
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
595
|
+
}
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
"kind": "field",
|
|
599
|
+
"name": "allowedCharPattern",
|
|
600
|
+
"privacy": "public",
|
|
601
|
+
"type": {
|
|
602
|
+
"text": "string"
|
|
603
|
+
},
|
|
604
|
+
"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-]\"`",
|
|
605
|
+
"attribute": "allowed-char-pattern",
|
|
606
|
+
"inheritedFrom": {
|
|
607
|
+
"name": "InputControlMixin",
|
|
608
|
+
"package": "@vaadin/field-base/src/input-control-mixin.js"
|
|
609
|
+
}
|
|
610
|
+
},
|
|
611
|
+
{
|
|
612
|
+
"kind": "field",
|
|
613
|
+
"name": "autocapitalize",
|
|
614
|
+
"privacy": "public",
|
|
615
|
+
"type": {
|
|
616
|
+
"text": "string"
|
|
617
|
+
},
|
|
618
|
+
"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.",
|
|
619
|
+
"attribute": "autocapitalize",
|
|
620
|
+
"inheritedFrom": {
|
|
621
|
+
"name": "InputFieldMixin",
|
|
622
|
+
"package": "@vaadin/field-base/src/input-field-mixin.js"
|
|
623
|
+
}
|
|
624
|
+
},
|
|
625
|
+
{
|
|
626
|
+
"kind": "field",
|
|
627
|
+
"name": "autocomplete",
|
|
628
|
+
"privacy": "public",
|
|
629
|
+
"type": {
|
|
630
|
+
"text": "string"
|
|
631
|
+
},
|
|
632
|
+
"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",
|
|
633
|
+
"attribute": "autocomplete",
|
|
634
|
+
"inheritedFrom": {
|
|
635
|
+
"name": "InputFieldMixin",
|
|
636
|
+
"package": "@vaadin/field-base/src/input-field-mixin.js"
|
|
637
|
+
}
|
|
638
|
+
},
|
|
639
|
+
{
|
|
640
|
+
"kind": "field",
|
|
641
|
+
"name": "autocorrect",
|
|
642
|
+
"privacy": "public",
|
|
643
|
+
"type": {
|
|
644
|
+
"text": "string"
|
|
645
|
+
},
|
|
646
|
+
"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.",
|
|
647
|
+
"attribute": "autocorrect",
|
|
648
|
+
"inheritedFrom": {
|
|
649
|
+
"name": "InputFieldMixin",
|
|
650
|
+
"package": "@vaadin/field-base/src/input-field-mixin.js"
|
|
651
|
+
}
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
"kind": "field",
|
|
655
|
+
"name": "autoselect",
|
|
656
|
+
"privacy": "public",
|
|
657
|
+
"type": {
|
|
658
|
+
"text": "boolean"
|
|
659
|
+
},
|
|
660
|
+
"description": "If true, the input text gets fully selected when the field is focused using click or touch / tap.",
|
|
661
|
+
"attribute": "autoselect",
|
|
662
|
+
"inheritedFrom": {
|
|
663
|
+
"name": "InputControlMixin",
|
|
664
|
+
"package": "@vaadin/field-base/src/input-control-mixin.js"
|
|
665
|
+
}
|
|
666
|
+
},
|
|
667
|
+
{
|
|
668
|
+
"kind": "method",
|
|
669
|
+
"name": "checkValidity",
|
|
670
|
+
"description": "Returns true if the current textarea value satisfies all constraints (if any).",
|
|
671
|
+
"return": {
|
|
672
|
+
"type": {
|
|
673
|
+
"text": "boolean"
|
|
674
|
+
}
|
|
675
|
+
},
|
|
676
|
+
"inheritedFrom": {
|
|
677
|
+
"name": "TextAreaMixin",
|
|
678
|
+
"module": "src/vaadin-text-area-mixin.js"
|
|
679
|
+
}
|
|
680
|
+
},
|
|
681
|
+
{
|
|
682
|
+
"kind": "field",
|
|
683
|
+
"name": "clearButtonVisible",
|
|
684
|
+
"privacy": "public",
|
|
685
|
+
"type": {
|
|
686
|
+
"text": "boolean"
|
|
687
|
+
},
|
|
688
|
+
"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.",
|
|
689
|
+
"attribute": "clear-button-visible",
|
|
690
|
+
"inheritedFrom": {
|
|
691
|
+
"name": "ClearButtonMixin",
|
|
692
|
+
"package": "@vaadin/field-base/src/clear-button-mixin.js"
|
|
693
|
+
}
|
|
694
|
+
},
|
|
695
|
+
{
|
|
696
|
+
"kind": "field",
|
|
697
|
+
"name": "errorMessage",
|
|
698
|
+
"privacy": "public",
|
|
699
|
+
"type": {
|
|
700
|
+
"text": "string"
|
|
701
|
+
},
|
|
702
|
+
"description": "Error to show when the field is invalid.",
|
|
703
|
+
"attribute": "error-message",
|
|
704
|
+
"inheritedFrom": {
|
|
705
|
+
"name": "FieldMixin",
|
|
706
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
707
|
+
}
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
"kind": "field",
|
|
711
|
+
"name": "helperText",
|
|
712
|
+
"privacy": "public",
|
|
713
|
+
"type": {
|
|
714
|
+
"text": "string"
|
|
715
|
+
},
|
|
716
|
+
"description": "String used for the helper text.",
|
|
717
|
+
"attribute": "helper-text",
|
|
718
|
+
"inheritedFrom": {
|
|
719
|
+
"name": "FieldMixin",
|
|
720
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
721
|
+
}
|
|
722
|
+
},
|
|
723
|
+
{
|
|
724
|
+
"kind": "field",
|
|
725
|
+
"name": "maxlength",
|
|
726
|
+
"privacy": "public",
|
|
727
|
+
"type": {
|
|
728
|
+
"text": "number"
|
|
729
|
+
},
|
|
730
|
+
"description": "Maximum number of characters (in Unicode code points) that the user can enter.",
|
|
731
|
+
"attribute": "maxlength",
|
|
732
|
+
"inheritedFrom": {
|
|
733
|
+
"name": "TextAreaMixin",
|
|
734
|
+
"module": "src/vaadin-text-area-mixin.js"
|
|
735
|
+
}
|
|
736
|
+
},
|
|
737
|
+
{
|
|
738
|
+
"kind": "field",
|
|
739
|
+
"name": "maxRows",
|
|
740
|
+
"privacy": "public",
|
|
741
|
+
"type": {
|
|
742
|
+
"text": "number"
|
|
743
|
+
},
|
|
744
|
+
"description": "Maximum number of rows to expand to before the text area starts scrolling. This effectively sets a max-height\non the `input-field` part. By default, it is not set, and the text area grows with the content without\nconstraints.",
|
|
745
|
+
"attribute": "max-rows",
|
|
746
|
+
"inheritedFrom": {
|
|
747
|
+
"name": "TextAreaMixin",
|
|
748
|
+
"module": "src/vaadin-text-area-mixin.js"
|
|
749
|
+
}
|
|
750
|
+
},
|
|
751
|
+
{
|
|
752
|
+
"kind": "field",
|
|
753
|
+
"name": "minlength",
|
|
754
|
+
"privacy": "public",
|
|
755
|
+
"type": {
|
|
756
|
+
"text": "number"
|
|
757
|
+
},
|
|
758
|
+
"description": "Minimum number of characters (in Unicode code points) that the user can enter.",
|
|
759
|
+
"attribute": "minlength",
|
|
760
|
+
"inheritedFrom": {
|
|
761
|
+
"name": "TextAreaMixin",
|
|
762
|
+
"module": "src/vaadin-text-area-mixin.js"
|
|
763
|
+
}
|
|
764
|
+
},
|
|
765
|
+
{
|
|
766
|
+
"kind": "field",
|
|
767
|
+
"name": "minRows",
|
|
768
|
+
"privacy": "public",
|
|
769
|
+
"type": {
|
|
770
|
+
"text": "number"
|
|
771
|
+
},
|
|
772
|
+
"description": "Minimum number of rows to show. Default is two rows.\n\nWhen using a custom slotted textarea, the minimum number of rows are not applied for backwards compatibility.",
|
|
773
|
+
"attribute": "min-rows",
|
|
774
|
+
"inheritedFrom": {
|
|
775
|
+
"name": "TextAreaMixin",
|
|
776
|
+
"module": "src/vaadin-text-area-mixin.js"
|
|
777
|
+
}
|
|
778
|
+
},
|
|
779
|
+
{
|
|
780
|
+
"kind": "field",
|
|
781
|
+
"name": "name",
|
|
782
|
+
"privacy": "public",
|
|
783
|
+
"type": {
|
|
784
|
+
"text": "string"
|
|
785
|
+
},
|
|
786
|
+
"description": "The name of this field.",
|
|
787
|
+
"attribute": "name",
|
|
788
|
+
"inheritedFrom": {
|
|
789
|
+
"name": "InputControlMixin",
|
|
790
|
+
"package": "@vaadin/field-base/src/input-control-mixin.js"
|
|
791
|
+
}
|
|
792
|
+
},
|
|
793
|
+
{
|
|
794
|
+
"kind": "field",
|
|
795
|
+
"name": "pattern",
|
|
796
|
+
"privacy": "public",
|
|
797
|
+
"type": {
|
|
798
|
+
"text": "string"
|
|
799
|
+
},
|
|
800
|
+
"description": "A regular expression that the value is checked against.\nThe pattern must match the entire value, not just some subset.",
|
|
801
|
+
"attribute": "pattern",
|
|
802
|
+
"inheritedFrom": {
|
|
803
|
+
"name": "TextAreaMixin",
|
|
804
|
+
"module": "src/vaadin-text-area-mixin.js"
|
|
805
|
+
}
|
|
806
|
+
},
|
|
807
|
+
{
|
|
808
|
+
"kind": "field",
|
|
809
|
+
"name": "placeholder",
|
|
810
|
+
"privacy": "public",
|
|
811
|
+
"type": {
|
|
812
|
+
"text": "string"
|
|
813
|
+
},
|
|
814
|
+
"description": "A hint to the user of what can be entered in the field.",
|
|
815
|
+
"attribute": "placeholder",
|
|
816
|
+
"inheritedFrom": {
|
|
817
|
+
"name": "InputControlMixin",
|
|
818
|
+
"package": "@vaadin/field-base/src/input-control-mixin.js"
|
|
819
|
+
}
|
|
820
|
+
},
|
|
821
|
+
{
|
|
822
|
+
"kind": "field",
|
|
823
|
+
"name": "readonly",
|
|
824
|
+
"privacy": "public",
|
|
825
|
+
"type": {
|
|
826
|
+
"text": "boolean"
|
|
827
|
+
},
|
|
828
|
+
"description": "When present, it specifies that the field is read-only.",
|
|
829
|
+
"attribute": "readonly",
|
|
830
|
+
"inheritedFrom": {
|
|
831
|
+
"name": "InputControlMixin",
|
|
832
|
+
"package": "@vaadin/field-base/src/input-control-mixin.js"
|
|
833
|
+
}
|
|
834
|
+
},
|
|
835
|
+
{
|
|
836
|
+
"kind": "method",
|
|
837
|
+
"name": "scrollToEnd",
|
|
838
|
+
"description": "Scrolls the textarea to the end if it has a vertical scrollbar.",
|
|
839
|
+
"inheritedFrom": {
|
|
840
|
+
"name": "TextAreaMixin",
|
|
841
|
+
"module": "src/vaadin-text-area-mixin.js"
|
|
842
|
+
}
|
|
843
|
+
},
|
|
844
|
+
{
|
|
845
|
+
"kind": "method",
|
|
846
|
+
"name": "scrollToStart",
|
|
847
|
+
"description": "Scrolls the textarea to the start if it has a vertical scrollbar.",
|
|
848
|
+
"inheritedFrom": {
|
|
849
|
+
"name": "TextAreaMixin",
|
|
850
|
+
"module": "src/vaadin-text-area-mixin.js"
|
|
851
|
+
}
|
|
852
|
+
},
|
|
853
|
+
{
|
|
854
|
+
"kind": "field",
|
|
855
|
+
"name": "title",
|
|
856
|
+
"privacy": "public",
|
|
857
|
+
"type": {
|
|
858
|
+
"text": "string"
|
|
859
|
+
},
|
|
860
|
+
"description": "The text usually displayed in a tooltip popup when the mouse is over the field.",
|
|
861
|
+
"attribute": "title",
|
|
862
|
+
"inheritedFrom": {
|
|
863
|
+
"name": "InputControlMixin",
|
|
864
|
+
"package": "@vaadin/field-base/src/input-control-mixin.js"
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
],
|
|
868
|
+
"events": [
|
|
869
|
+
{
|
|
870
|
+
"type": {
|
|
871
|
+
"text": "Event"
|
|
872
|
+
},
|
|
873
|
+
"description": "Fired when the user commits a value change.",
|
|
874
|
+
"name": "change"
|
|
875
|
+
},
|
|
876
|
+
{
|
|
877
|
+
"type": {
|
|
878
|
+
"text": "Event"
|
|
879
|
+
},
|
|
880
|
+
"description": "Fired when the value is changed by the user: on every typing keystroke, and the value is cleared using the clear button.",
|
|
881
|
+
"name": "input"
|
|
882
|
+
},
|
|
883
|
+
{
|
|
884
|
+
"type": {
|
|
885
|
+
"text": "CustomEvent"
|
|
886
|
+
},
|
|
887
|
+
"description": "Fired when the `invalid` property changes.",
|
|
888
|
+
"name": "invalid-changed"
|
|
889
|
+
},
|
|
890
|
+
{
|
|
891
|
+
"type": {
|
|
892
|
+
"text": "CustomEvent"
|
|
893
|
+
},
|
|
894
|
+
"description": "Fired whenever the field is validated.",
|
|
895
|
+
"name": "validated"
|
|
896
|
+
},
|
|
897
|
+
{
|
|
898
|
+
"type": {
|
|
899
|
+
"text": "CustomEvent"
|
|
900
|
+
},
|
|
901
|
+
"description": "Fired when the `value` property changes.",
|
|
902
|
+
"name": "value-changed"
|
|
903
|
+
}
|
|
904
|
+
],
|
|
905
|
+
"mixins": [
|
|
906
|
+
{
|
|
907
|
+
"name": "TextAreaMixin",
|
|
908
|
+
"module": "src/vaadin-text-area-mixin.js"
|
|
909
|
+
},
|
|
910
|
+
{
|
|
911
|
+
"name": "ThemableMixin",
|
|
912
|
+
"package": "@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js"
|
|
913
|
+
},
|
|
914
|
+
{
|
|
915
|
+
"name": "ElementMixin",
|
|
916
|
+
"package": "@vaadin/component-base/src/element-mixin.js"
|
|
917
|
+
},
|
|
918
|
+
{
|
|
919
|
+
"name": "PolylitMixin",
|
|
920
|
+
"package": "@vaadin/component-base/src/polylit-mixin.js"
|
|
921
|
+
},
|
|
922
|
+
{
|
|
923
|
+
"name": "LumoInjectionMixin",
|
|
924
|
+
"package": "@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js"
|
|
925
|
+
}
|
|
926
|
+
],
|
|
927
|
+
"superclass": {
|
|
928
|
+
"name": "LitElement",
|
|
929
|
+
"package": "lit"
|
|
930
|
+
},
|
|
931
|
+
"tagName": "vaadin-text-area",
|
|
932
|
+
"customElement": true,
|
|
933
|
+
"attributes": [
|
|
934
|
+
{
|
|
935
|
+
"name": "accessible-name",
|
|
936
|
+
"type": {
|
|
937
|
+
"text": "string"
|
|
938
|
+
},
|
|
939
|
+
"description": "String used to label the component to screen reader users.",
|
|
940
|
+
"fieldName": "accessibleName",
|
|
941
|
+
"inheritedFrom": {
|
|
942
|
+
"name": "FieldMixin",
|
|
943
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
944
|
+
}
|
|
945
|
+
},
|
|
946
|
+
{
|
|
947
|
+
"name": "accessible-name-ref",
|
|
948
|
+
"type": {
|
|
949
|
+
"text": "string"
|
|
950
|
+
},
|
|
951
|
+
"description": "Id of the element used as label of the component to screen reader users.",
|
|
952
|
+
"fieldName": "accessibleNameRef",
|
|
953
|
+
"inheritedFrom": {
|
|
954
|
+
"name": "FieldMixin",
|
|
955
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
956
|
+
}
|
|
957
|
+
},
|
|
958
|
+
{
|
|
959
|
+
"name": "allowed-char-pattern",
|
|
960
|
+
"type": {
|
|
961
|
+
"text": "string"
|
|
962
|
+
},
|
|
963
|
+
"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-]\"`",
|
|
964
|
+
"fieldName": "allowedCharPattern",
|
|
965
|
+
"inheritedFrom": {
|
|
966
|
+
"name": "InputControlMixin",
|
|
967
|
+
"package": "@vaadin/field-base/src/input-control-mixin.js"
|
|
968
|
+
}
|
|
969
|
+
},
|
|
970
|
+
{
|
|
971
|
+
"name": "autocapitalize",
|
|
972
|
+
"type": {
|
|
973
|
+
"text": "string"
|
|
974
|
+
},
|
|
975
|
+
"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.",
|
|
976
|
+
"fieldName": "autocapitalize",
|
|
977
|
+
"inheritedFrom": {
|
|
978
|
+
"name": "InputFieldMixin",
|
|
979
|
+
"package": "@vaadin/field-base/src/input-field-mixin.js"
|
|
980
|
+
}
|
|
981
|
+
},
|
|
982
|
+
{
|
|
983
|
+
"name": "autocomplete",
|
|
984
|
+
"type": {
|
|
985
|
+
"text": "string"
|
|
986
|
+
},
|
|
987
|
+
"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",
|
|
988
|
+
"fieldName": "autocomplete",
|
|
989
|
+
"inheritedFrom": {
|
|
990
|
+
"name": "InputFieldMixin",
|
|
991
|
+
"package": "@vaadin/field-base/src/input-field-mixin.js"
|
|
992
|
+
}
|
|
993
|
+
},
|
|
994
|
+
{
|
|
995
|
+
"name": "autocorrect",
|
|
996
|
+
"type": {
|
|
997
|
+
"text": "string"
|
|
998
|
+
},
|
|
999
|
+
"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.",
|
|
1000
|
+
"fieldName": "autocorrect",
|
|
1001
|
+
"inheritedFrom": {
|
|
1002
|
+
"name": "InputFieldMixin",
|
|
1003
|
+
"package": "@vaadin/field-base/src/input-field-mixin.js"
|
|
1004
|
+
}
|
|
1005
|
+
},
|
|
1006
|
+
{
|
|
1007
|
+
"name": "autoselect",
|
|
1008
|
+
"type": {
|
|
1009
|
+
"text": "boolean"
|
|
1010
|
+
},
|
|
1011
|
+
"description": "If true, the input text gets fully selected when the field is focused using click or touch / tap.",
|
|
1012
|
+
"fieldName": "autoselect",
|
|
1013
|
+
"inheritedFrom": {
|
|
1014
|
+
"name": "InputControlMixin",
|
|
1015
|
+
"package": "@vaadin/field-base/src/input-control-mixin.js"
|
|
1016
|
+
}
|
|
1017
|
+
},
|
|
1018
|
+
{
|
|
1019
|
+
"name": "clear-button-visible",
|
|
1020
|
+
"type": {
|
|
1021
|
+
"text": "boolean"
|
|
1022
|
+
},
|
|
1023
|
+
"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.",
|
|
1024
|
+
"fieldName": "clearButtonVisible",
|
|
1025
|
+
"inheritedFrom": {
|
|
1026
|
+
"name": "ClearButtonMixin",
|
|
1027
|
+
"package": "@vaadin/field-base/src/clear-button-mixin.js"
|
|
1028
|
+
}
|
|
1029
|
+
},
|
|
1030
|
+
{
|
|
1031
|
+
"name": "error-message",
|
|
1032
|
+
"type": {
|
|
1033
|
+
"text": "string"
|
|
1034
|
+
},
|
|
1035
|
+
"description": "Error to show when the field is invalid.",
|
|
1036
|
+
"fieldName": "errorMessage",
|
|
1037
|
+
"inheritedFrom": {
|
|
1038
|
+
"name": "FieldMixin",
|
|
1039
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
1040
|
+
}
|
|
1041
|
+
},
|
|
1042
|
+
{
|
|
1043
|
+
"name": "helper-text",
|
|
1044
|
+
"type": {
|
|
1045
|
+
"text": "string"
|
|
1046
|
+
},
|
|
1047
|
+
"description": "String used for the helper text.",
|
|
1048
|
+
"fieldName": "helperText",
|
|
1049
|
+
"inheritedFrom": {
|
|
1050
|
+
"name": "FieldMixin",
|
|
1051
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
1052
|
+
}
|
|
1053
|
+
},
|
|
1054
|
+
{
|
|
1055
|
+
"name": "max-rows",
|
|
1056
|
+
"type": {
|
|
1057
|
+
"text": "number"
|
|
1058
|
+
},
|
|
1059
|
+
"description": "Maximum number of rows to expand to before the text area starts scrolling. This effectively sets a max-height\non the `input-field` part. By default, it is not set, and the text area grows with the content without\nconstraints.",
|
|
1060
|
+
"fieldName": "maxRows",
|
|
1061
|
+
"inheritedFrom": {
|
|
1062
|
+
"name": "TextAreaMixin",
|
|
1063
|
+
"module": "src/vaadin-text-area-mixin.js"
|
|
1064
|
+
}
|
|
1065
|
+
},
|
|
1066
|
+
{
|
|
1067
|
+
"name": "maxlength",
|
|
1068
|
+
"type": {
|
|
1069
|
+
"text": "number"
|
|
1070
|
+
},
|
|
1071
|
+
"description": "Maximum number of characters (in Unicode code points) that the user can enter.",
|
|
1072
|
+
"fieldName": "maxlength",
|
|
1073
|
+
"inheritedFrom": {
|
|
1074
|
+
"name": "TextAreaMixin",
|
|
1075
|
+
"module": "src/vaadin-text-area-mixin.js"
|
|
1076
|
+
}
|
|
1077
|
+
},
|
|
1078
|
+
{
|
|
1079
|
+
"name": "min-rows",
|
|
1080
|
+
"type": {
|
|
1081
|
+
"text": "number"
|
|
1082
|
+
},
|
|
1083
|
+
"description": "Minimum number of rows to show. Default is two rows.\n\nWhen using a custom slotted textarea, the minimum number of rows are not applied for backwards compatibility.",
|
|
1084
|
+
"fieldName": "minRows",
|
|
1085
|
+
"inheritedFrom": {
|
|
1086
|
+
"name": "TextAreaMixin",
|
|
1087
|
+
"module": "src/vaadin-text-area-mixin.js"
|
|
1088
|
+
}
|
|
1089
|
+
},
|
|
1090
|
+
{
|
|
1091
|
+
"name": "minlength",
|
|
1092
|
+
"type": {
|
|
1093
|
+
"text": "number"
|
|
1094
|
+
},
|
|
1095
|
+
"description": "Minimum number of characters (in Unicode code points) that the user can enter.",
|
|
1096
|
+
"fieldName": "minlength",
|
|
1097
|
+
"inheritedFrom": {
|
|
1098
|
+
"name": "TextAreaMixin",
|
|
1099
|
+
"module": "src/vaadin-text-area-mixin.js"
|
|
1100
|
+
}
|
|
1101
|
+
},
|
|
1102
|
+
{
|
|
1103
|
+
"name": "name",
|
|
1104
|
+
"type": {
|
|
1105
|
+
"text": "string"
|
|
1106
|
+
},
|
|
1107
|
+
"description": "The name of this field.",
|
|
1108
|
+
"fieldName": "name",
|
|
1109
|
+
"inheritedFrom": {
|
|
1110
|
+
"name": "InputControlMixin",
|
|
1111
|
+
"package": "@vaadin/field-base/src/input-control-mixin.js"
|
|
1112
|
+
}
|
|
1113
|
+
},
|
|
1114
|
+
{
|
|
1115
|
+
"name": "pattern",
|
|
1116
|
+
"type": {
|
|
1117
|
+
"text": "string"
|
|
1118
|
+
},
|
|
1119
|
+
"description": "A regular expression that the value is checked against.\nThe pattern must match the entire value, not just some subset.",
|
|
1120
|
+
"fieldName": "pattern",
|
|
1121
|
+
"inheritedFrom": {
|
|
1122
|
+
"name": "TextAreaMixin",
|
|
1123
|
+
"module": "src/vaadin-text-area-mixin.js"
|
|
1124
|
+
}
|
|
1125
|
+
},
|
|
1126
|
+
{
|
|
1127
|
+
"name": "placeholder",
|
|
1128
|
+
"type": {
|
|
1129
|
+
"text": "string"
|
|
1130
|
+
},
|
|
1131
|
+
"description": "A hint to the user of what can be entered in the field.",
|
|
1132
|
+
"fieldName": "placeholder",
|
|
1133
|
+
"inheritedFrom": {
|
|
1134
|
+
"name": "InputControlMixin",
|
|
1135
|
+
"package": "@vaadin/field-base/src/input-control-mixin.js"
|
|
1136
|
+
}
|
|
1137
|
+
},
|
|
1138
|
+
{
|
|
1139
|
+
"name": "readonly",
|
|
1140
|
+
"type": {
|
|
1141
|
+
"text": "boolean"
|
|
1142
|
+
},
|
|
1143
|
+
"description": "When present, it specifies that the field is read-only.",
|
|
1144
|
+
"fieldName": "readonly",
|
|
1145
|
+
"inheritedFrom": {
|
|
1146
|
+
"name": "InputControlMixin",
|
|
1147
|
+
"package": "@vaadin/field-base/src/input-control-mixin.js"
|
|
1148
|
+
}
|
|
1149
|
+
},
|
|
1150
|
+
{
|
|
1151
|
+
"name": "title",
|
|
1152
|
+
"type": {
|
|
1153
|
+
"text": "string"
|
|
1154
|
+
},
|
|
1155
|
+
"description": "The text usually displayed in a tooltip popup when the mouse is over the field.",
|
|
1156
|
+
"fieldName": "title",
|
|
1157
|
+
"inheritedFrom": {
|
|
1158
|
+
"name": "InputControlMixin",
|
|
1159
|
+
"package": "@vaadin/field-base/src/input-control-mixin.js"
|
|
1160
|
+
}
|
|
1161
|
+
}
|
|
1162
|
+
]
|
|
1163
|
+
}
|
|
1164
|
+
],
|
|
1165
|
+
"exports": [
|
|
1166
|
+
{
|
|
1167
|
+
"kind": "js",
|
|
1168
|
+
"name": "TextArea",
|
|
1169
|
+
"declaration": {
|
|
1170
|
+
"name": "TextArea",
|
|
1171
|
+
"module": "src/vaadin-text-area.js"
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1174
|
+
]
|
|
1175
|
+
}
|
|
1176
|
+
]
|
|
1177
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/text-area",
|
|
3
|
-
"version": "25.1.0-
|
|
3
|
+
"version": "25.1.0-alpha7",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"src",
|
|
24
24
|
"vaadin-*.d.ts",
|
|
25
25
|
"vaadin-*.js",
|
|
26
|
+
"custom-elements.json",
|
|
26
27
|
"web-types.json",
|
|
27
28
|
"web-types.lit.json"
|
|
28
29
|
],
|
|
@@ -34,24 +35,25 @@
|
|
|
34
35
|
],
|
|
35
36
|
"dependencies": {
|
|
36
37
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
37
|
-
"@vaadin/a11y-base": "25.1.0-
|
|
38
|
-
"@vaadin/component-base": "25.1.0-
|
|
39
|
-
"@vaadin/field-base": "25.1.0-
|
|
40
|
-
"@vaadin/input-container": "25.1.0-
|
|
41
|
-
"@vaadin/vaadin-themable-mixin": "25.1.0-
|
|
38
|
+
"@vaadin/a11y-base": "25.1.0-alpha7",
|
|
39
|
+
"@vaadin/component-base": "25.1.0-alpha7",
|
|
40
|
+
"@vaadin/field-base": "25.1.0-alpha7",
|
|
41
|
+
"@vaadin/input-container": "25.1.0-alpha7",
|
|
42
|
+
"@vaadin/vaadin-themable-mixin": "25.1.0-alpha7",
|
|
42
43
|
"lit": "^3.0.0"
|
|
43
44
|
},
|
|
44
45
|
"devDependencies": {
|
|
45
|
-
"@vaadin/aura": "25.1.0-
|
|
46
|
-
"@vaadin/chai-plugins": "25.1.0-
|
|
47
|
-
"@vaadin/test-runner-commands": "25.1.0-
|
|
46
|
+
"@vaadin/aura": "25.1.0-alpha7",
|
|
47
|
+
"@vaadin/chai-plugins": "25.1.0-alpha7",
|
|
48
|
+
"@vaadin/test-runner-commands": "25.1.0-alpha7",
|
|
48
49
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
49
|
-
"@vaadin/vaadin-lumo-styles": "25.1.0-
|
|
50
|
+
"@vaadin/vaadin-lumo-styles": "25.1.0-alpha7",
|
|
50
51
|
"sinon": "^21.0.0"
|
|
51
52
|
},
|
|
53
|
+
"customElements": "custom-elements.json",
|
|
52
54
|
"web-types": [
|
|
53
55
|
"web-types.json",
|
|
54
56
|
"web-types.lit.json"
|
|
55
57
|
],
|
|
56
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "98c586125f769c8fefd307536965293668fda81d"
|
|
57
59
|
}
|
package/src/vaadin-text-area.js
CHANGED
|
@@ -83,7 +83,7 @@ import { TextAreaMixin } from './vaadin-text-area-mixin.js';
|
|
|
83
83
|
* @fires {CustomEvent} value-changed - Fired when the `value` property changes.
|
|
84
84
|
* @fires {CustomEvent} validated - Fired whenever the field is validated.
|
|
85
85
|
*
|
|
86
|
-
* @customElement
|
|
86
|
+
* @customElement vaadin-text-area
|
|
87
87
|
* @extends HTMLElement
|
|
88
88
|
* @mixes ElementMixin
|
|
89
89
|
* @mixes TextAreaMixin
|
package/web-types.json
CHANGED