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