@vaadin/radio-group 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 +828 -0
- package/package.json +12 -10
- package/src/vaadin-radio-button.js +1 -1
- package/src/vaadin-radio-group.js +1 -1
- package/web-types.json +1 -1
- package/web-types.lit.json +1 -1
|
@@ -0,0 +1,828 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "1.0.0",
|
|
3
|
+
"readme": "",
|
|
4
|
+
"modules": [
|
|
5
|
+
{
|
|
6
|
+
"kind": "javascript-module",
|
|
7
|
+
"path": "vaadin-radio-group.js",
|
|
8
|
+
"declarations": [],
|
|
9
|
+
"exports": [
|
|
10
|
+
{
|
|
11
|
+
"kind": "js",
|
|
12
|
+
"name": "*",
|
|
13
|
+
"declaration": {
|
|
14
|
+
"name": "*",
|
|
15
|
+
"module": "src/vaadin-radio-group.js"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"kind": "javascript-module",
|
|
22
|
+
"path": "vaadin-radio-button.js",
|
|
23
|
+
"declarations": [],
|
|
24
|
+
"exports": [
|
|
25
|
+
{
|
|
26
|
+
"kind": "js",
|
|
27
|
+
"name": "*",
|
|
28
|
+
"declaration": {
|
|
29
|
+
"name": "*",
|
|
30
|
+
"module": "src/vaadin-radio-button.js"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"kind": "javascript-module",
|
|
37
|
+
"path": "src/vaadin-radio-button-mixin.js",
|
|
38
|
+
"declarations": [
|
|
39
|
+
{
|
|
40
|
+
"kind": "mixin",
|
|
41
|
+
"description": "A mixin providing common radio-button functionality.",
|
|
42
|
+
"name": "RadioButtonMixin",
|
|
43
|
+
"members": [
|
|
44
|
+
{
|
|
45
|
+
"kind": "field",
|
|
46
|
+
"name": "checked",
|
|
47
|
+
"privacy": "public",
|
|
48
|
+
"type": {
|
|
49
|
+
"text": "boolean"
|
|
50
|
+
},
|
|
51
|
+
"description": "True if the element is checked.",
|
|
52
|
+
"attribute": "checked",
|
|
53
|
+
"inheritedFrom": {
|
|
54
|
+
"name": "CheckedMixin",
|
|
55
|
+
"package": "@vaadin/field-base/src/checked-mixin.js"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"kind": "field",
|
|
60
|
+
"name": "label",
|
|
61
|
+
"privacy": "public",
|
|
62
|
+
"type": {
|
|
63
|
+
"text": "string"
|
|
64
|
+
},
|
|
65
|
+
"description": "The label text for the input node.\nWhen no light dom defined via [slot=label], this value will be used.",
|
|
66
|
+
"attribute": "label",
|
|
67
|
+
"inheritedFrom": {
|
|
68
|
+
"name": "LabelMixin",
|
|
69
|
+
"package": "@vaadin/field-base/src/label-mixin.js"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"kind": "field",
|
|
74
|
+
"name": "name",
|
|
75
|
+
"privacy": "public",
|
|
76
|
+
"type": {
|
|
77
|
+
"text": "string"
|
|
78
|
+
},
|
|
79
|
+
"description": "The name of the radio button.",
|
|
80
|
+
"attribute": "name"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"kind": "field",
|
|
84
|
+
"name": "tabindex",
|
|
85
|
+
"type": {
|
|
86
|
+
"text": "number"
|
|
87
|
+
},
|
|
88
|
+
"default": "0"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"kind": "field",
|
|
92
|
+
"name": "value",
|
|
93
|
+
"type": {
|
|
94
|
+
"text": "string"
|
|
95
|
+
},
|
|
96
|
+
"default": "'on'"
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
"attributes": [
|
|
100
|
+
{
|
|
101
|
+
"name": "checked",
|
|
102
|
+
"type": {
|
|
103
|
+
"text": "boolean"
|
|
104
|
+
},
|
|
105
|
+
"description": "True if the element is checked.",
|
|
106
|
+
"fieldName": "checked",
|
|
107
|
+
"inheritedFrom": {
|
|
108
|
+
"name": "CheckedMixin",
|
|
109
|
+
"package": "@vaadin/field-base/src/checked-mixin.js"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"name": "label",
|
|
114
|
+
"type": {
|
|
115
|
+
"text": "string"
|
|
116
|
+
},
|
|
117
|
+
"description": "The label text for the input node.\nWhen no light dom defined via [slot=label], this value will be used.",
|
|
118
|
+
"fieldName": "label",
|
|
119
|
+
"inheritedFrom": {
|
|
120
|
+
"name": "LabelMixin",
|
|
121
|
+
"package": "@vaadin/field-base/src/label-mixin.js"
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"name": "name",
|
|
126
|
+
"type": {
|
|
127
|
+
"text": "string"
|
|
128
|
+
},
|
|
129
|
+
"description": "The name of the radio button.",
|
|
130
|
+
"fieldName": "name"
|
|
131
|
+
}
|
|
132
|
+
],
|
|
133
|
+
"mixins": [
|
|
134
|
+
{
|
|
135
|
+
"name": "SlotStylesMixin",
|
|
136
|
+
"package": "@vaadin/component-base/src/slot-styles-mixin.js"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"name": "LabelMixin",
|
|
140
|
+
"package": "@vaadin/field-base/src/label-mixin.js"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"name": "CheckedMixin",
|
|
144
|
+
"package": "@vaadin/field-base/src/checked-mixin.js"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"name": "DelegateFocusMixin",
|
|
148
|
+
"package": "@vaadin/a11y-base/src/delegate-focus-mixin.js"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"name": "ActiveMixin",
|
|
152
|
+
"package": "@vaadin/a11y-base/src/active-mixin.js"
|
|
153
|
+
}
|
|
154
|
+
],
|
|
155
|
+
"parameters": [
|
|
156
|
+
{
|
|
157
|
+
"name": "superclass"
|
|
158
|
+
}
|
|
159
|
+
]
|
|
160
|
+
}
|
|
161
|
+
],
|
|
162
|
+
"exports": [
|
|
163
|
+
{
|
|
164
|
+
"kind": "js",
|
|
165
|
+
"name": "RadioButtonMixin",
|
|
166
|
+
"declaration": {
|
|
167
|
+
"name": "RadioButtonMixin",
|
|
168
|
+
"module": "src/vaadin-radio-button-mixin.js"
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
]
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"kind": "javascript-module",
|
|
175
|
+
"path": "src/vaadin-radio-button.js",
|
|
176
|
+
"declarations": [
|
|
177
|
+
{
|
|
178
|
+
"kind": "class",
|
|
179
|
+
"description": "`<vaadin-radio-button>` is a web component representing a choice in a radio group.\nOnly one radio button in the group can be selected at the same time.\n\n```html\n<vaadin-radio-group label=\"Travel class\">\n <vaadin-radio-button value=\"economy\" label=\"Economy\"></vaadin-radio-button>\n <vaadin-radio-button value=\"business\" label=\"Business\"></vaadin-radio-button>\n <vaadin-radio-button value=\"firstClass\" label=\"First Class\"></vaadin-radio-button>\n</vaadin-radio-group>\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n------------|----------------\n`radio` | The wrapper element that contains slotted `<input type=\"radio\">`.\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n-------------|--------------------------\n`active` | Set when the radio button is pressed, either with a pointer or the keyboard.\n`disabled` | Set when the radio button is disabled.\n`focus-ring` | Set when the radio button is focused using the keyboard.\n`focused` | Set when the radio button is focused.\n`checked` | Set when the radio button is checked.\n`has-label` | Set when the radio button has a label.\n\nThe following custom CSS properties are available for styling:\n\nCustom CSS property |\n:--------------------------------------------|\n| `--vaadin-radio-button-background` |\n| `--vaadin-radio-button-border-color` |\n| `--vaadin-radio-button-border-width` |\n| `--vaadin-radio-button-gap` |\n| `--vaadin-radio-button-label-color` |\n| `--vaadin-radio-button-label-font-size` |\n| `--vaadin-radio-button-label-font-weight` |\n| `--vaadin-radio-button-label-line-height` |\n| `--vaadin-radio-button-marker-color` |\n| `--vaadin-radio-button-marker-size` |\n| `--vaadin-radio-button-size` |\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
|
|
180
|
+
"name": "RadioButton",
|
|
181
|
+
"members": [
|
|
182
|
+
{
|
|
183
|
+
"kind": "field",
|
|
184
|
+
"name": "checked",
|
|
185
|
+
"privacy": "public",
|
|
186
|
+
"type": {
|
|
187
|
+
"text": "boolean"
|
|
188
|
+
},
|
|
189
|
+
"description": "True if the element is checked.",
|
|
190
|
+
"attribute": "checked",
|
|
191
|
+
"inheritedFrom": {
|
|
192
|
+
"name": "CheckedMixin",
|
|
193
|
+
"package": "@vaadin/field-base/src/checked-mixin.js"
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"kind": "field",
|
|
198
|
+
"name": "label",
|
|
199
|
+
"privacy": "public",
|
|
200
|
+
"type": {
|
|
201
|
+
"text": "string"
|
|
202
|
+
},
|
|
203
|
+
"description": "The label text for the input node.\nWhen no light dom defined via [slot=label], this value will be used.",
|
|
204
|
+
"attribute": "label",
|
|
205
|
+
"inheritedFrom": {
|
|
206
|
+
"name": "LabelMixin",
|
|
207
|
+
"package": "@vaadin/field-base/src/label-mixin.js"
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"kind": "field",
|
|
212
|
+
"name": "name",
|
|
213
|
+
"privacy": "public",
|
|
214
|
+
"type": {
|
|
215
|
+
"text": "string"
|
|
216
|
+
},
|
|
217
|
+
"description": "The name of the radio button.",
|
|
218
|
+
"attribute": "name",
|
|
219
|
+
"inheritedFrom": {
|
|
220
|
+
"name": "RadioButtonMixin",
|
|
221
|
+
"module": "src/vaadin-radio-button-mixin.js"
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"kind": "field",
|
|
226
|
+
"name": "tabindex",
|
|
227
|
+
"type": {
|
|
228
|
+
"text": "number"
|
|
229
|
+
},
|
|
230
|
+
"default": "0",
|
|
231
|
+
"inheritedFrom": {
|
|
232
|
+
"name": "RadioButtonMixin",
|
|
233
|
+
"module": "src/vaadin-radio-button-mixin.js"
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"kind": "field",
|
|
238
|
+
"name": "value",
|
|
239
|
+
"type": {
|
|
240
|
+
"text": "string"
|
|
241
|
+
},
|
|
242
|
+
"default": "'on'",
|
|
243
|
+
"inheritedFrom": {
|
|
244
|
+
"name": "RadioButtonMixin",
|
|
245
|
+
"module": "src/vaadin-radio-button-mixin.js"
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
],
|
|
249
|
+
"events": [
|
|
250
|
+
{
|
|
251
|
+
"type": {
|
|
252
|
+
"text": "CustomEvent"
|
|
253
|
+
},
|
|
254
|
+
"description": "Fired when the `checked` property changes.",
|
|
255
|
+
"name": "checked-changed"
|
|
256
|
+
}
|
|
257
|
+
],
|
|
258
|
+
"mixins": [
|
|
259
|
+
{
|
|
260
|
+
"name": "RadioButtonMixin",
|
|
261
|
+
"module": "src/vaadin-radio-button-mixin.js"
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"name": "ElementMixin",
|
|
265
|
+
"package": "@vaadin/component-base/src/element-mixin.js"
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"name": "ThemableMixin",
|
|
269
|
+
"package": "@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js"
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"name": "PolylitMixin",
|
|
273
|
+
"package": "@vaadin/component-base/src/polylit-mixin.js"
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"name": "LumoInjectionMixin",
|
|
277
|
+
"package": "@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js"
|
|
278
|
+
}
|
|
279
|
+
],
|
|
280
|
+
"superclass": {
|
|
281
|
+
"name": "LitElement",
|
|
282
|
+
"package": "lit"
|
|
283
|
+
},
|
|
284
|
+
"tagName": "vaadin-radio-button",
|
|
285
|
+
"customElement": true,
|
|
286
|
+
"attributes": [
|
|
287
|
+
{
|
|
288
|
+
"name": "checked",
|
|
289
|
+
"type": {
|
|
290
|
+
"text": "boolean"
|
|
291
|
+
},
|
|
292
|
+
"description": "True if the element is checked.",
|
|
293
|
+
"fieldName": "checked",
|
|
294
|
+
"inheritedFrom": {
|
|
295
|
+
"name": "CheckedMixin",
|
|
296
|
+
"package": "@vaadin/field-base/src/checked-mixin.js"
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"name": "label",
|
|
301
|
+
"type": {
|
|
302
|
+
"text": "string"
|
|
303
|
+
},
|
|
304
|
+
"description": "The label text for the input node.\nWhen no light dom defined via [slot=label], this value will be used.",
|
|
305
|
+
"fieldName": "label",
|
|
306
|
+
"inheritedFrom": {
|
|
307
|
+
"name": "LabelMixin",
|
|
308
|
+
"package": "@vaadin/field-base/src/label-mixin.js"
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"name": "name",
|
|
313
|
+
"type": {
|
|
314
|
+
"text": "string"
|
|
315
|
+
},
|
|
316
|
+
"description": "The name of the radio button.",
|
|
317
|
+
"fieldName": "name",
|
|
318
|
+
"inheritedFrom": {
|
|
319
|
+
"name": "RadioButtonMixin",
|
|
320
|
+
"module": "src/vaadin-radio-button-mixin.js"
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
]
|
|
324
|
+
}
|
|
325
|
+
],
|
|
326
|
+
"exports": [
|
|
327
|
+
{
|
|
328
|
+
"kind": "js",
|
|
329
|
+
"name": "RadioButton",
|
|
330
|
+
"declaration": {
|
|
331
|
+
"name": "RadioButton",
|
|
332
|
+
"module": "src/vaadin-radio-button.js"
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
]
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"kind": "javascript-module",
|
|
339
|
+
"path": "src/vaadin-radio-group-mixin.js",
|
|
340
|
+
"declarations": [
|
|
341
|
+
{
|
|
342
|
+
"kind": "mixin",
|
|
343
|
+
"description": "A mixin providing common radio-group functionality.",
|
|
344
|
+
"name": "RadioGroupMixin",
|
|
345
|
+
"members": [
|
|
346
|
+
{
|
|
347
|
+
"kind": "field",
|
|
348
|
+
"name": "accessibleName",
|
|
349
|
+
"privacy": "public",
|
|
350
|
+
"type": {
|
|
351
|
+
"text": "string"
|
|
352
|
+
},
|
|
353
|
+
"description": "String used to label the component to screen reader users.",
|
|
354
|
+
"attribute": "accessible-name",
|
|
355
|
+
"inheritedFrom": {
|
|
356
|
+
"name": "FieldMixin",
|
|
357
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
358
|
+
}
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
"kind": "field",
|
|
362
|
+
"name": "accessibleNameRef",
|
|
363
|
+
"privacy": "public",
|
|
364
|
+
"type": {
|
|
365
|
+
"text": "string"
|
|
366
|
+
},
|
|
367
|
+
"description": "Id of the element used as label of the component to screen reader users.",
|
|
368
|
+
"attribute": "accessible-name-ref",
|
|
369
|
+
"inheritedFrom": {
|
|
370
|
+
"name": "FieldMixin",
|
|
371
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
372
|
+
}
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
"kind": "field",
|
|
376
|
+
"name": "errorMessage",
|
|
377
|
+
"privacy": "public",
|
|
378
|
+
"type": {
|
|
379
|
+
"text": "string"
|
|
380
|
+
},
|
|
381
|
+
"description": "Error to show when the field is invalid.",
|
|
382
|
+
"attribute": "error-message",
|
|
383
|
+
"inheritedFrom": {
|
|
384
|
+
"name": "FieldMixin",
|
|
385
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
386
|
+
}
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
"kind": "field",
|
|
390
|
+
"name": "helperText",
|
|
391
|
+
"privacy": "public",
|
|
392
|
+
"type": {
|
|
393
|
+
"text": "string"
|
|
394
|
+
},
|
|
395
|
+
"description": "String used for the helper text.",
|
|
396
|
+
"attribute": "helper-text",
|
|
397
|
+
"inheritedFrom": {
|
|
398
|
+
"name": "FieldMixin",
|
|
399
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
400
|
+
}
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
"kind": "field",
|
|
404
|
+
"name": "label",
|
|
405
|
+
"privacy": "public",
|
|
406
|
+
"type": {
|
|
407
|
+
"text": "string"
|
|
408
|
+
},
|
|
409
|
+
"description": "The label text for the input node.\nWhen no light dom defined via [slot=label], this value will be used.",
|
|
410
|
+
"attribute": "label",
|
|
411
|
+
"inheritedFrom": {
|
|
412
|
+
"name": "LabelMixin",
|
|
413
|
+
"package": "@vaadin/field-base/src/label-mixin.js"
|
|
414
|
+
}
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
"kind": "field",
|
|
418
|
+
"name": "name",
|
|
419
|
+
"privacy": "public",
|
|
420
|
+
"type": {
|
|
421
|
+
"text": "string"
|
|
422
|
+
},
|
|
423
|
+
"description": "The name of the control, which is submitted with the form data.",
|
|
424
|
+
"attribute": "name"
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
"kind": "field",
|
|
428
|
+
"name": "readonly",
|
|
429
|
+
"privacy": "public",
|
|
430
|
+
"type": {
|
|
431
|
+
"text": "boolean"
|
|
432
|
+
},
|
|
433
|
+
"description": "When present, the user cannot modify the value of the radio group.\nThe property works similarly to the `disabled` property.\nWhile the `disabled` property disables all radio buttons inside the group,\nthe `readonly` property disables only unchecked ones.",
|
|
434
|
+
"attribute": "readonly"
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
"kind": "field",
|
|
438
|
+
"name": "value",
|
|
439
|
+
"privacy": "public",
|
|
440
|
+
"type": {
|
|
441
|
+
"text": "string"
|
|
442
|
+
},
|
|
443
|
+
"description": "The value of the radio group.",
|
|
444
|
+
"attribute": "value"
|
|
445
|
+
}
|
|
446
|
+
],
|
|
447
|
+
"attributes": [
|
|
448
|
+
{
|
|
449
|
+
"name": "accessible-name",
|
|
450
|
+
"type": {
|
|
451
|
+
"text": "string"
|
|
452
|
+
},
|
|
453
|
+
"description": "String used to label the component to screen reader users.",
|
|
454
|
+
"fieldName": "accessibleName",
|
|
455
|
+
"inheritedFrom": {
|
|
456
|
+
"name": "FieldMixin",
|
|
457
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
458
|
+
}
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
"name": "accessible-name-ref",
|
|
462
|
+
"type": {
|
|
463
|
+
"text": "string"
|
|
464
|
+
},
|
|
465
|
+
"description": "Id of the element used as label of the component to screen reader users.",
|
|
466
|
+
"fieldName": "accessibleNameRef",
|
|
467
|
+
"inheritedFrom": {
|
|
468
|
+
"name": "FieldMixin",
|
|
469
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
470
|
+
}
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
"name": "error-message",
|
|
474
|
+
"type": {
|
|
475
|
+
"text": "string"
|
|
476
|
+
},
|
|
477
|
+
"description": "Error to show when the field is invalid.",
|
|
478
|
+
"fieldName": "errorMessage",
|
|
479
|
+
"inheritedFrom": {
|
|
480
|
+
"name": "FieldMixin",
|
|
481
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
482
|
+
}
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
"name": "helper-text",
|
|
486
|
+
"type": {
|
|
487
|
+
"text": "string"
|
|
488
|
+
},
|
|
489
|
+
"description": "String used for the helper text.",
|
|
490
|
+
"fieldName": "helperText",
|
|
491
|
+
"inheritedFrom": {
|
|
492
|
+
"name": "FieldMixin",
|
|
493
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
494
|
+
}
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
"name": "label",
|
|
498
|
+
"type": {
|
|
499
|
+
"text": "string"
|
|
500
|
+
},
|
|
501
|
+
"description": "The label text for the input node.\nWhen no light dom defined via [slot=label], this value will be used.",
|
|
502
|
+
"fieldName": "label",
|
|
503
|
+
"inheritedFrom": {
|
|
504
|
+
"name": "LabelMixin",
|
|
505
|
+
"package": "@vaadin/field-base/src/label-mixin.js"
|
|
506
|
+
}
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
"name": "name",
|
|
510
|
+
"type": {
|
|
511
|
+
"text": "string"
|
|
512
|
+
},
|
|
513
|
+
"description": "The name of the control, which is submitted with the form data.",
|
|
514
|
+
"fieldName": "name"
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
"name": "readonly",
|
|
518
|
+
"type": {
|
|
519
|
+
"text": "boolean"
|
|
520
|
+
},
|
|
521
|
+
"description": "When present, the user cannot modify the value of the radio group.\nThe property works similarly to the `disabled` property.\nWhile the `disabled` property disables all radio buttons inside the group,\nthe `readonly` property disables only unchecked ones.",
|
|
522
|
+
"fieldName": "readonly"
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
"name": "value",
|
|
526
|
+
"type": {
|
|
527
|
+
"text": "string"
|
|
528
|
+
},
|
|
529
|
+
"description": "The value of the radio group.",
|
|
530
|
+
"fieldName": "value"
|
|
531
|
+
}
|
|
532
|
+
],
|
|
533
|
+
"mixins": [
|
|
534
|
+
{
|
|
535
|
+
"name": "FieldMixin",
|
|
536
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
537
|
+
},
|
|
538
|
+
{
|
|
539
|
+
"name": "FocusMixin",
|
|
540
|
+
"package": "@vaadin/a11y-base/src/focus-mixin.js"
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
"name": "DisabledMixin",
|
|
544
|
+
"package": "@vaadin/a11y-base/src/disabled-mixin.js"
|
|
545
|
+
},
|
|
546
|
+
{
|
|
547
|
+
"name": "KeyboardMixin",
|
|
548
|
+
"package": "@vaadin/a11y-base/src/keyboard-mixin.js"
|
|
549
|
+
}
|
|
550
|
+
],
|
|
551
|
+
"parameters": [
|
|
552
|
+
{
|
|
553
|
+
"name": "superclass"
|
|
554
|
+
}
|
|
555
|
+
]
|
|
556
|
+
}
|
|
557
|
+
],
|
|
558
|
+
"exports": [
|
|
559
|
+
{
|
|
560
|
+
"kind": "js",
|
|
561
|
+
"name": "RadioGroupMixin",
|
|
562
|
+
"declaration": {
|
|
563
|
+
"name": "RadioGroupMixin",
|
|
564
|
+
"module": "src/vaadin-radio-group-mixin.js"
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
]
|
|
568
|
+
},
|
|
569
|
+
{
|
|
570
|
+
"kind": "javascript-module",
|
|
571
|
+
"path": "src/vaadin-radio-group.js",
|
|
572
|
+
"declarations": [
|
|
573
|
+
{
|
|
574
|
+
"kind": "class",
|
|
575
|
+
"description": "`<vaadin-radio-group>` is a web component that allows the user to choose one item from a group of choices.\n\n```html\n<vaadin-radio-group label=\"Travel class\">\n <vaadin-radio-button value=\"economy\" label=\"Economy\"></vaadin-radio-button>\n <vaadin-radio-button value=\"business\" label=\"Business\"></vaadin-radio-button>\n <vaadin-radio-button value=\"firstClass\" label=\"First Class\"></vaadin-radio-button>\n</vaadin-radio-group>\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n---------------------|----------------\n`label` | The slotted label element wrapper\n`group-field` | The radio button elements wrapper\n`helper-text` | The slotted helper text element wrapper\n`error-message` | The slotted error message 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`readonly` | Set when the element is readonly\n`invalid` | Set when the element is invalid\n`focused` | Set when the element is focused\n`has-label` | Set when the element has a label\n`has-value` | Set when the element has a value\n`has-helper` | Set when the element has helper text\n`has-error-message` | Set when the element has an error message\n`has-tooltip` | Set when the element has a slotted tooltip\n\nThe following custom CSS properties are available for styling:\n\nCustom CSS property |\n:--------------------------------------------------|\n| `--vaadin-input-field-error-color` |\n| `--vaadin-input-field-error-font-size` |\n| `--vaadin-input-field-error-font-weight` |\n| `--vaadin-input-field-error-line-height` |\n| `--vaadin-input-field-label-color` |\n| `--vaadin-input-field-label-font-size` |\n| `--vaadin-input-field-label-font-weight` |\n| `--vaadin-input-field-label-line-height` |\n| `--vaadin-input-field-helper-color` |\n| `--vaadin-input-field-helper-font-size` |\n| `--vaadin-input-field-helper-font-weight` |\n| `--vaadin-input-field-helper-line-height` |\n| `--vaadin-input-field-required-indicator-color` |\n| `--vaadin-input-field-required-indicator` |\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
|
|
576
|
+
"name": "RadioGroup",
|
|
577
|
+
"members": [
|
|
578
|
+
{
|
|
579
|
+
"kind": "field",
|
|
580
|
+
"name": "accessibleName",
|
|
581
|
+
"privacy": "public",
|
|
582
|
+
"type": {
|
|
583
|
+
"text": "string"
|
|
584
|
+
},
|
|
585
|
+
"description": "String used to label the component to screen reader users.",
|
|
586
|
+
"attribute": "accessible-name",
|
|
587
|
+
"inheritedFrom": {
|
|
588
|
+
"name": "FieldMixin",
|
|
589
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
590
|
+
}
|
|
591
|
+
},
|
|
592
|
+
{
|
|
593
|
+
"kind": "field",
|
|
594
|
+
"name": "accessibleNameRef",
|
|
595
|
+
"privacy": "public",
|
|
596
|
+
"type": {
|
|
597
|
+
"text": "string"
|
|
598
|
+
},
|
|
599
|
+
"description": "Id of the element used as label of the component to screen reader users.",
|
|
600
|
+
"attribute": "accessible-name-ref",
|
|
601
|
+
"inheritedFrom": {
|
|
602
|
+
"name": "FieldMixin",
|
|
603
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
604
|
+
}
|
|
605
|
+
},
|
|
606
|
+
{
|
|
607
|
+
"kind": "field",
|
|
608
|
+
"name": "errorMessage",
|
|
609
|
+
"privacy": "public",
|
|
610
|
+
"type": {
|
|
611
|
+
"text": "string"
|
|
612
|
+
},
|
|
613
|
+
"description": "Error to show when the field is invalid.",
|
|
614
|
+
"attribute": "error-message",
|
|
615
|
+
"inheritedFrom": {
|
|
616
|
+
"name": "FieldMixin",
|
|
617
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
618
|
+
}
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
"kind": "field",
|
|
622
|
+
"name": "helperText",
|
|
623
|
+
"privacy": "public",
|
|
624
|
+
"type": {
|
|
625
|
+
"text": "string"
|
|
626
|
+
},
|
|
627
|
+
"description": "String used for the helper text.",
|
|
628
|
+
"attribute": "helper-text",
|
|
629
|
+
"inheritedFrom": {
|
|
630
|
+
"name": "FieldMixin",
|
|
631
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
632
|
+
}
|
|
633
|
+
},
|
|
634
|
+
{
|
|
635
|
+
"kind": "field",
|
|
636
|
+
"name": "name",
|
|
637
|
+
"privacy": "public",
|
|
638
|
+
"type": {
|
|
639
|
+
"text": "string"
|
|
640
|
+
},
|
|
641
|
+
"description": "The name of the control, which is submitted with the form data.",
|
|
642
|
+
"attribute": "name",
|
|
643
|
+
"inheritedFrom": {
|
|
644
|
+
"name": "RadioGroupMixin",
|
|
645
|
+
"module": "src/vaadin-radio-group-mixin.js"
|
|
646
|
+
}
|
|
647
|
+
},
|
|
648
|
+
{
|
|
649
|
+
"kind": "field",
|
|
650
|
+
"name": "readonly",
|
|
651
|
+
"privacy": "public",
|
|
652
|
+
"type": {
|
|
653
|
+
"text": "boolean"
|
|
654
|
+
},
|
|
655
|
+
"description": "When present, the user cannot modify the value of the radio group.\nThe property works similarly to the `disabled` property.\nWhile the `disabled` property disables all radio buttons inside the group,\nthe `readonly` property disables only unchecked ones.",
|
|
656
|
+
"attribute": "readonly",
|
|
657
|
+
"inheritedFrom": {
|
|
658
|
+
"name": "RadioGroupMixin",
|
|
659
|
+
"module": "src/vaadin-radio-group-mixin.js"
|
|
660
|
+
}
|
|
661
|
+
},
|
|
662
|
+
{
|
|
663
|
+
"kind": "field",
|
|
664
|
+
"name": "value",
|
|
665
|
+
"privacy": "public",
|
|
666
|
+
"type": {
|
|
667
|
+
"text": "string"
|
|
668
|
+
},
|
|
669
|
+
"description": "The value of the radio group.",
|
|
670
|
+
"attribute": "value",
|
|
671
|
+
"inheritedFrom": {
|
|
672
|
+
"name": "RadioGroupMixin",
|
|
673
|
+
"module": "src/vaadin-radio-group-mixin.js"
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
],
|
|
677
|
+
"events": [
|
|
678
|
+
{
|
|
679
|
+
"type": {
|
|
680
|
+
"text": "CustomEvent"
|
|
681
|
+
},
|
|
682
|
+
"description": "Fired when the `invalid` property changes.",
|
|
683
|
+
"name": "invalid-changed"
|
|
684
|
+
},
|
|
685
|
+
{
|
|
686
|
+
"type": {
|
|
687
|
+
"text": "CustomEvent"
|
|
688
|
+
},
|
|
689
|
+
"description": "Fired whenever the field is validated.",
|
|
690
|
+
"name": "validated"
|
|
691
|
+
},
|
|
692
|
+
{
|
|
693
|
+
"type": {
|
|
694
|
+
"text": "CustomEvent"
|
|
695
|
+
},
|
|
696
|
+
"description": "Fired when the `value` property changes.",
|
|
697
|
+
"name": "value-changed"
|
|
698
|
+
}
|
|
699
|
+
],
|
|
700
|
+
"mixins": [
|
|
701
|
+
{
|
|
702
|
+
"name": "RadioGroupMixin",
|
|
703
|
+
"module": "src/vaadin-radio-group-mixin.js"
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
"name": "ElementMixin",
|
|
707
|
+
"package": "@vaadin/component-base/src/element-mixin.js"
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
"name": "ThemableMixin",
|
|
711
|
+
"package": "@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js"
|
|
712
|
+
},
|
|
713
|
+
{
|
|
714
|
+
"name": "PolylitMixin",
|
|
715
|
+
"package": "@vaadin/component-base/src/polylit-mixin.js"
|
|
716
|
+
},
|
|
717
|
+
{
|
|
718
|
+
"name": "LumoInjectionMixin",
|
|
719
|
+
"package": "@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js"
|
|
720
|
+
}
|
|
721
|
+
],
|
|
722
|
+
"superclass": {
|
|
723
|
+
"name": "LitElement",
|
|
724
|
+
"package": "lit"
|
|
725
|
+
},
|
|
726
|
+
"tagName": "vaadin-radio-group",
|
|
727
|
+
"customElement": true,
|
|
728
|
+
"attributes": [
|
|
729
|
+
{
|
|
730
|
+
"name": "accessible-name",
|
|
731
|
+
"type": {
|
|
732
|
+
"text": "string"
|
|
733
|
+
},
|
|
734
|
+
"description": "String used to label the component to screen reader users.",
|
|
735
|
+
"fieldName": "accessibleName",
|
|
736
|
+
"inheritedFrom": {
|
|
737
|
+
"name": "FieldMixin",
|
|
738
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
739
|
+
}
|
|
740
|
+
},
|
|
741
|
+
{
|
|
742
|
+
"name": "accessible-name-ref",
|
|
743
|
+
"type": {
|
|
744
|
+
"text": "string"
|
|
745
|
+
},
|
|
746
|
+
"description": "Id of the element used as label of the component to screen reader users.",
|
|
747
|
+
"fieldName": "accessibleNameRef",
|
|
748
|
+
"inheritedFrom": {
|
|
749
|
+
"name": "FieldMixin",
|
|
750
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
751
|
+
}
|
|
752
|
+
},
|
|
753
|
+
{
|
|
754
|
+
"name": "error-message",
|
|
755
|
+
"type": {
|
|
756
|
+
"text": "string"
|
|
757
|
+
},
|
|
758
|
+
"description": "Error to show when the field is invalid.",
|
|
759
|
+
"fieldName": "errorMessage",
|
|
760
|
+
"inheritedFrom": {
|
|
761
|
+
"name": "FieldMixin",
|
|
762
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
763
|
+
}
|
|
764
|
+
},
|
|
765
|
+
{
|
|
766
|
+
"name": "helper-text",
|
|
767
|
+
"type": {
|
|
768
|
+
"text": "string"
|
|
769
|
+
},
|
|
770
|
+
"description": "String used for the helper text.",
|
|
771
|
+
"fieldName": "helperText",
|
|
772
|
+
"inheritedFrom": {
|
|
773
|
+
"name": "FieldMixin",
|
|
774
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
775
|
+
}
|
|
776
|
+
},
|
|
777
|
+
{
|
|
778
|
+
"name": "name",
|
|
779
|
+
"type": {
|
|
780
|
+
"text": "string"
|
|
781
|
+
},
|
|
782
|
+
"description": "The name of the control, which is submitted with the form data.",
|
|
783
|
+
"fieldName": "name",
|
|
784
|
+
"inheritedFrom": {
|
|
785
|
+
"name": "RadioGroupMixin",
|
|
786
|
+
"module": "src/vaadin-radio-group-mixin.js"
|
|
787
|
+
}
|
|
788
|
+
},
|
|
789
|
+
{
|
|
790
|
+
"name": "readonly",
|
|
791
|
+
"type": {
|
|
792
|
+
"text": "boolean"
|
|
793
|
+
},
|
|
794
|
+
"description": "When present, the user cannot modify the value of the radio group.\nThe property works similarly to the `disabled` property.\nWhile the `disabled` property disables all radio buttons inside the group,\nthe `readonly` property disables only unchecked ones.",
|
|
795
|
+
"fieldName": "readonly",
|
|
796
|
+
"inheritedFrom": {
|
|
797
|
+
"name": "RadioGroupMixin",
|
|
798
|
+
"module": "src/vaadin-radio-group-mixin.js"
|
|
799
|
+
}
|
|
800
|
+
},
|
|
801
|
+
{
|
|
802
|
+
"name": "value",
|
|
803
|
+
"type": {
|
|
804
|
+
"text": "string"
|
|
805
|
+
},
|
|
806
|
+
"description": "The value of the radio group.",
|
|
807
|
+
"fieldName": "value",
|
|
808
|
+
"inheritedFrom": {
|
|
809
|
+
"name": "RadioGroupMixin",
|
|
810
|
+
"module": "src/vaadin-radio-group-mixin.js"
|
|
811
|
+
}
|
|
812
|
+
}
|
|
813
|
+
]
|
|
814
|
+
}
|
|
815
|
+
],
|
|
816
|
+
"exports": [
|
|
817
|
+
{
|
|
818
|
+
"kind": "js",
|
|
819
|
+
"name": "RadioGroup",
|
|
820
|
+
"declaration": {
|
|
821
|
+
"name": "RadioGroup",
|
|
822
|
+
"module": "src/vaadin-radio-group.js"
|
|
823
|
+
}
|
|
824
|
+
}
|
|
825
|
+
]
|
|
826
|
+
}
|
|
827
|
+
]
|
|
828
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/radio-group",
|
|
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
|
],
|
|
@@ -36,23 +37,24 @@
|
|
|
36
37
|
],
|
|
37
38
|
"dependencies": {
|
|
38
39
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
39
|
-
"@vaadin/a11y-base": "25.1.0-
|
|
40
|
-
"@vaadin/component-base": "25.1.0-
|
|
41
|
-
"@vaadin/field-base": "25.1.0-
|
|
42
|
-
"@vaadin/vaadin-themable-mixin": "25.1.0-
|
|
40
|
+
"@vaadin/a11y-base": "25.1.0-alpha7",
|
|
41
|
+
"@vaadin/component-base": "25.1.0-alpha7",
|
|
42
|
+
"@vaadin/field-base": "25.1.0-alpha7",
|
|
43
|
+
"@vaadin/vaadin-themable-mixin": "25.1.0-alpha7",
|
|
43
44
|
"lit": "^3.0.0"
|
|
44
45
|
},
|
|
45
46
|
"devDependencies": {
|
|
46
|
-
"@vaadin/aura": "25.1.0-
|
|
47
|
-
"@vaadin/chai-plugins": "25.1.0-
|
|
48
|
-
"@vaadin/test-runner-commands": "25.1.0-
|
|
47
|
+
"@vaadin/aura": "25.1.0-alpha7",
|
|
48
|
+
"@vaadin/chai-plugins": "25.1.0-alpha7",
|
|
49
|
+
"@vaadin/test-runner-commands": "25.1.0-alpha7",
|
|
49
50
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
50
|
-
"@vaadin/vaadin-lumo-styles": "25.1.0-
|
|
51
|
+
"@vaadin/vaadin-lumo-styles": "25.1.0-alpha7",
|
|
51
52
|
"sinon": "^21.0.0"
|
|
52
53
|
},
|
|
54
|
+
"customElements": "custom-elements.json",
|
|
53
55
|
"web-types": [
|
|
54
56
|
"web-types.json",
|
|
55
57
|
"web-types.lit.json"
|
|
56
58
|
],
|
|
57
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "98c586125f769c8fefd307536965293668fda81d"
|
|
58
60
|
}
|
|
@@ -63,7 +63,7 @@ import { RadioButtonMixin } from './vaadin-radio-button-mixin.js';
|
|
|
63
63
|
*
|
|
64
64
|
* @fires {CustomEvent} checked-changed - Fired when the `checked` property changes.
|
|
65
65
|
*
|
|
66
|
-
* @customElement
|
|
66
|
+
* @customElement vaadin-radio-button
|
|
67
67
|
* @extends HTMLElement
|
|
68
68
|
* @mixes ThemableMixin
|
|
69
69
|
* @mixes ElementMixin
|
|
@@ -75,7 +75,7 @@ import { RadioGroupMixin } from './vaadin-radio-group-mixin.js';
|
|
|
75
75
|
* @fires {CustomEvent} value-changed - Fired when the `value` property changes.
|
|
76
76
|
* @fires {CustomEvent} validated - Fired whenever the field is validated.
|
|
77
77
|
*
|
|
78
|
-
* @customElement
|
|
78
|
+
* @customElement vaadin-radio-group
|
|
79
79
|
* @extends HTMLElement
|
|
80
80
|
* @mixes ThemableMixin
|
|
81
81
|
* @mixes ElementMixin
|
package/web-types.json
CHANGED
package/web-types.lit.json
CHANGED