@vaadin/radio-group 25.2.7 → 25.3.0-alpha10
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 +131 -65
- package/package.json +10 -10
- package/src/styles/vaadin-radio-group-base-styles.js +1 -0
- package/src/vaadin-radio-button.js +1 -0
- package/src/vaadin-radio-group-mixin.js +10 -17
- package/src/vaadin-radio-group.js +1 -0
- package/web-types.json +25 -11
- package/web-types.lit.json +10 -3
package/custom-elements.json
CHANGED
|
@@ -353,34 +353,6 @@
|
|
|
353
353
|
"name": "checked-changed"
|
|
354
354
|
}
|
|
355
355
|
],
|
|
356
|
-
"mixins": [
|
|
357
|
-
{
|
|
358
|
-
"name": "RadioButtonMixin",
|
|
359
|
-
"module": "src/vaadin-radio-button-mixin.js"
|
|
360
|
-
},
|
|
361
|
-
{
|
|
362
|
-
"name": "ElementMixin",
|
|
363
|
-
"package": "@vaadin/component-base/src/element-mixin.js"
|
|
364
|
-
},
|
|
365
|
-
{
|
|
366
|
-
"name": "ThemableMixin",
|
|
367
|
-
"package": "@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js"
|
|
368
|
-
},
|
|
369
|
-
{
|
|
370
|
-
"name": "PolylitMixin",
|
|
371
|
-
"package": "@vaadin/component-base/src/polylit-mixin.js"
|
|
372
|
-
},
|
|
373
|
-
{
|
|
374
|
-
"name": "LumoInjectionMixin",
|
|
375
|
-
"package": "@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js"
|
|
376
|
-
}
|
|
377
|
-
],
|
|
378
|
-
"superclass": {
|
|
379
|
-
"name": "LitElement",
|
|
380
|
-
"package": "lit"
|
|
381
|
-
},
|
|
382
|
-
"tagName": "vaadin-radio-button",
|
|
383
|
-
"customElement": true,
|
|
384
356
|
"attributes": [
|
|
385
357
|
{
|
|
386
358
|
"name": "autofocus",
|
|
@@ -442,6 +414,13 @@
|
|
|
442
414
|
"module": "src/vaadin-radio-button-mixin.js"
|
|
443
415
|
}
|
|
444
416
|
},
|
|
417
|
+
{
|
|
418
|
+
"type": {
|
|
419
|
+
"text": "string"
|
|
420
|
+
},
|
|
421
|
+
"description": "The theme variants to apply to the component.",
|
|
422
|
+
"name": "theme"
|
|
423
|
+
},
|
|
445
424
|
{
|
|
446
425
|
"name": "value",
|
|
447
426
|
"type": {
|
|
@@ -454,7 +433,35 @@
|
|
|
454
433
|
"package": "@vaadin/field-base/src/input-mixin.js"
|
|
455
434
|
}
|
|
456
435
|
}
|
|
457
|
-
]
|
|
436
|
+
],
|
|
437
|
+
"mixins": [
|
|
438
|
+
{
|
|
439
|
+
"name": "RadioButtonMixin",
|
|
440
|
+
"module": "src/vaadin-radio-button-mixin.js"
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
"name": "ElementMixin",
|
|
444
|
+
"package": "@vaadin/component-base/src/element-mixin.js"
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
"name": "ThemableMixin",
|
|
448
|
+
"package": "@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js"
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
"name": "PolylitMixin",
|
|
452
|
+
"package": "@vaadin/component-base/src/polylit-mixin.js"
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
"name": "LumoInjectionMixin",
|
|
456
|
+
"package": "@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js"
|
|
457
|
+
}
|
|
458
|
+
],
|
|
459
|
+
"superclass": {
|
|
460
|
+
"name": "LitElement",
|
|
461
|
+
"package": "lit"
|
|
462
|
+
},
|
|
463
|
+
"tagName": "vaadin-radio-button",
|
|
464
|
+
"customElement": true
|
|
458
465
|
}
|
|
459
466
|
],
|
|
460
467
|
"exports": [
|
|
@@ -477,6 +484,20 @@
|
|
|
477
484
|
"description": "A mixin providing common radio-group functionality.",
|
|
478
485
|
"name": "RadioGroupMixin",
|
|
479
486
|
"members": [
|
|
487
|
+
{
|
|
488
|
+
"kind": "field",
|
|
489
|
+
"name": "accessibleDescriptionRef",
|
|
490
|
+
"privacy": "public",
|
|
491
|
+
"type": {
|
|
492
|
+
"text": "string"
|
|
493
|
+
},
|
|
494
|
+
"description": "A space-separated list of IDs referencing the elements that\ndescribe the component for screen reader users. The referenced\nelements are announced in addition to the helper text and\nthe error message.",
|
|
495
|
+
"attribute": "accessible-description-ref",
|
|
496
|
+
"inheritedFrom": {
|
|
497
|
+
"name": "FieldMixin",
|
|
498
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
499
|
+
}
|
|
500
|
+
},
|
|
480
501
|
{
|
|
481
502
|
"kind": "field",
|
|
482
503
|
"name": "accessibleName",
|
|
@@ -484,7 +505,7 @@
|
|
|
484
505
|
"type": {
|
|
485
506
|
"text": "string"
|
|
486
507
|
},
|
|
487
|
-
"description": "String used to label the component
|
|
508
|
+
"description": "String used to label the component for screen reader users.",
|
|
488
509
|
"attribute": "accessible-name",
|
|
489
510
|
"inheritedFrom": {
|
|
490
511
|
"name": "FieldMixin",
|
|
@@ -498,7 +519,7 @@
|
|
|
498
519
|
"type": {
|
|
499
520
|
"text": "string"
|
|
500
521
|
},
|
|
501
|
-
"description": "
|
|
522
|
+
"description": "A space-separated list of IDs referencing the elements that\nlabel the component for screen reader users.",
|
|
502
523
|
"attribute": "accessible-name-ref",
|
|
503
524
|
"inheritedFrom": {
|
|
504
525
|
"name": "FieldMixin",
|
|
@@ -663,12 +684,24 @@
|
|
|
663
684
|
}
|
|
664
685
|
],
|
|
665
686
|
"attributes": [
|
|
687
|
+
{
|
|
688
|
+
"name": "accessible-description-ref",
|
|
689
|
+
"type": {
|
|
690
|
+
"text": "string"
|
|
691
|
+
},
|
|
692
|
+
"description": "A space-separated list of IDs referencing the elements that\ndescribe the component for screen reader users. The referenced\nelements are announced in addition to the helper text and\nthe error message.",
|
|
693
|
+
"fieldName": "accessibleDescriptionRef",
|
|
694
|
+
"inheritedFrom": {
|
|
695
|
+
"name": "FieldMixin",
|
|
696
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
697
|
+
}
|
|
698
|
+
},
|
|
666
699
|
{
|
|
667
700
|
"name": "accessible-name",
|
|
668
701
|
"type": {
|
|
669
702
|
"text": "string"
|
|
670
703
|
},
|
|
671
|
-
"description": "String used to label the component
|
|
704
|
+
"description": "String used to label the component for screen reader users.",
|
|
672
705
|
"fieldName": "accessibleName",
|
|
673
706
|
"inheritedFrom": {
|
|
674
707
|
"name": "FieldMixin",
|
|
@@ -680,7 +713,7 @@
|
|
|
680
713
|
"type": {
|
|
681
714
|
"text": "string"
|
|
682
715
|
},
|
|
683
|
-
"description": "
|
|
716
|
+
"description": "A space-separated list of IDs referencing the elements that\nlabel the component for screen reader users.",
|
|
684
717
|
"fieldName": "accessibleNameRef",
|
|
685
718
|
"inheritedFrom": {
|
|
686
719
|
"name": "FieldMixin",
|
|
@@ -853,6 +886,20 @@
|
|
|
853
886
|
"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.",
|
|
854
887
|
"name": "RadioGroup",
|
|
855
888
|
"members": [
|
|
889
|
+
{
|
|
890
|
+
"kind": "field",
|
|
891
|
+
"name": "accessibleDescriptionRef",
|
|
892
|
+
"privacy": "public",
|
|
893
|
+
"type": {
|
|
894
|
+
"text": "string"
|
|
895
|
+
},
|
|
896
|
+
"description": "A space-separated list of IDs referencing the elements that\ndescribe the component for screen reader users. The referenced\nelements are announced in addition to the helper text and\nthe error message.",
|
|
897
|
+
"attribute": "accessible-description-ref",
|
|
898
|
+
"inheritedFrom": {
|
|
899
|
+
"name": "FieldMixin",
|
|
900
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
901
|
+
}
|
|
902
|
+
},
|
|
856
903
|
{
|
|
857
904
|
"kind": "field",
|
|
858
905
|
"name": "accessibleName",
|
|
@@ -860,7 +907,7 @@
|
|
|
860
907
|
"type": {
|
|
861
908
|
"text": "string"
|
|
862
909
|
},
|
|
863
|
-
"description": "String used to label the component
|
|
910
|
+
"description": "String used to label the component for screen reader users.",
|
|
864
911
|
"attribute": "accessible-name",
|
|
865
912
|
"inheritedFrom": {
|
|
866
913
|
"name": "FieldMixin",
|
|
@@ -874,7 +921,7 @@
|
|
|
874
921
|
"type": {
|
|
875
922
|
"text": "string"
|
|
876
923
|
},
|
|
877
|
-
"description": "
|
|
924
|
+
"description": "A space-separated list of IDs referencing the elements that\nlabel the component for screen reader users.",
|
|
878
925
|
"attribute": "accessible-name-ref",
|
|
879
926
|
"inheritedFrom": {
|
|
880
927
|
"name": "FieldMixin",
|
|
@@ -1073,41 +1120,25 @@
|
|
|
1073
1120
|
"name": "value-changed"
|
|
1074
1121
|
}
|
|
1075
1122
|
],
|
|
1076
|
-
"
|
|
1077
|
-
{
|
|
1078
|
-
"name": "RadioGroupMixin",
|
|
1079
|
-
"module": "src/vaadin-radio-group-mixin.js"
|
|
1080
|
-
},
|
|
1081
|
-
{
|
|
1082
|
-
"name": "ElementMixin",
|
|
1083
|
-
"package": "@vaadin/component-base/src/element-mixin.js"
|
|
1084
|
-
},
|
|
1085
|
-
{
|
|
1086
|
-
"name": "ThemableMixin",
|
|
1087
|
-
"package": "@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js"
|
|
1088
|
-
},
|
|
1123
|
+
"attributes": [
|
|
1089
1124
|
{
|
|
1090
|
-
"name": "
|
|
1091
|
-
"
|
|
1125
|
+
"name": "accessible-description-ref",
|
|
1126
|
+
"type": {
|
|
1127
|
+
"text": "string"
|
|
1128
|
+
},
|
|
1129
|
+
"description": "A space-separated list of IDs referencing the elements that\ndescribe the component for screen reader users. The referenced\nelements are announced in addition to the helper text and\nthe error message.",
|
|
1130
|
+
"fieldName": "accessibleDescriptionRef",
|
|
1131
|
+
"inheritedFrom": {
|
|
1132
|
+
"name": "FieldMixin",
|
|
1133
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
1134
|
+
}
|
|
1092
1135
|
},
|
|
1093
|
-
{
|
|
1094
|
-
"name": "LumoInjectionMixin",
|
|
1095
|
-
"package": "@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js"
|
|
1096
|
-
}
|
|
1097
|
-
],
|
|
1098
|
-
"superclass": {
|
|
1099
|
-
"name": "LitElement",
|
|
1100
|
-
"package": "lit"
|
|
1101
|
-
},
|
|
1102
|
-
"tagName": "vaadin-radio-group",
|
|
1103
|
-
"customElement": true,
|
|
1104
|
-
"attributes": [
|
|
1105
1136
|
{
|
|
1106
1137
|
"name": "accessible-name",
|
|
1107
1138
|
"type": {
|
|
1108
1139
|
"text": "string"
|
|
1109
1140
|
},
|
|
1110
|
-
"description": "String used to label the component
|
|
1141
|
+
"description": "String used to label the component for screen reader users.",
|
|
1111
1142
|
"fieldName": "accessibleName",
|
|
1112
1143
|
"inheritedFrom": {
|
|
1113
1144
|
"name": "FieldMixin",
|
|
@@ -1119,7 +1150,7 @@
|
|
|
1119
1150
|
"type": {
|
|
1120
1151
|
"text": "string"
|
|
1121
1152
|
},
|
|
1122
|
-
"description": "
|
|
1153
|
+
"description": "A space-separated list of IDs referencing the elements that\nlabel the component for screen reader users.",
|
|
1123
1154
|
"fieldName": "accessibleNameRef",
|
|
1124
1155
|
"inheritedFrom": {
|
|
1125
1156
|
"name": "FieldMixin",
|
|
@@ -1234,6 +1265,13 @@
|
|
|
1234
1265
|
"package": "@vaadin/field-base/src/validate-mixin.js"
|
|
1235
1266
|
}
|
|
1236
1267
|
},
|
|
1268
|
+
{
|
|
1269
|
+
"type": {
|
|
1270
|
+
"text": "string"
|
|
1271
|
+
},
|
|
1272
|
+
"description": "The theme variants to apply to the component.",
|
|
1273
|
+
"name": "theme"
|
|
1274
|
+
},
|
|
1237
1275
|
{
|
|
1238
1276
|
"name": "value",
|
|
1239
1277
|
"type": {
|
|
@@ -1246,7 +1284,35 @@
|
|
|
1246
1284
|
"module": "src/vaadin-radio-group-mixin.js"
|
|
1247
1285
|
}
|
|
1248
1286
|
}
|
|
1249
|
-
]
|
|
1287
|
+
],
|
|
1288
|
+
"mixins": [
|
|
1289
|
+
{
|
|
1290
|
+
"name": "RadioGroupMixin",
|
|
1291
|
+
"module": "src/vaadin-radio-group-mixin.js"
|
|
1292
|
+
},
|
|
1293
|
+
{
|
|
1294
|
+
"name": "ElementMixin",
|
|
1295
|
+
"package": "@vaadin/component-base/src/element-mixin.js"
|
|
1296
|
+
},
|
|
1297
|
+
{
|
|
1298
|
+
"name": "ThemableMixin",
|
|
1299
|
+
"package": "@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js"
|
|
1300
|
+
},
|
|
1301
|
+
{
|
|
1302
|
+
"name": "PolylitMixin",
|
|
1303
|
+
"package": "@vaadin/component-base/src/polylit-mixin.js"
|
|
1304
|
+
},
|
|
1305
|
+
{
|
|
1306
|
+
"name": "LumoInjectionMixin",
|
|
1307
|
+
"package": "@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js"
|
|
1308
|
+
}
|
|
1309
|
+
],
|
|
1310
|
+
"superclass": {
|
|
1311
|
+
"name": "LitElement",
|
|
1312
|
+
"package": "lit"
|
|
1313
|
+
},
|
|
1314
|
+
"tagName": "vaadin-radio-group",
|
|
1315
|
+
"customElement": true
|
|
1250
1316
|
}
|
|
1251
1317
|
],
|
|
1252
1318
|
"exports": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/radio-group",
|
|
3
|
-
"version": "25.
|
|
3
|
+
"version": "25.3.0-alpha10",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -37,18 +37,18 @@
|
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
40
|
-
"@vaadin/a11y-base": "
|
|
41
|
-
"@vaadin/component-base": "
|
|
42
|
-
"@vaadin/field-base": "
|
|
43
|
-
"@vaadin/vaadin-themable-mixin": "
|
|
40
|
+
"@vaadin/a11y-base": "25.3.0-alpha10",
|
|
41
|
+
"@vaadin/component-base": "25.3.0-alpha10",
|
|
42
|
+
"@vaadin/field-base": "25.3.0-alpha10",
|
|
43
|
+
"@vaadin/vaadin-themable-mixin": "25.3.0-alpha10",
|
|
44
44
|
"lit": "^3.0.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@vaadin/aura": "
|
|
48
|
-
"@vaadin/chai-plugins": "
|
|
49
|
-
"@vaadin/test-runner-commands": "
|
|
47
|
+
"@vaadin/aura": "25.3.0-alpha10",
|
|
48
|
+
"@vaadin/chai-plugins": "25.3.0-alpha10",
|
|
49
|
+
"@vaadin/test-runner-commands": "25.3.0-alpha10",
|
|
50
50
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
51
|
-
"@vaadin/vaadin-lumo-styles": "
|
|
51
|
+
"@vaadin/vaadin-lumo-styles": "25.3.0-alpha10",
|
|
52
52
|
"sinon": "^22.0.0"
|
|
53
53
|
},
|
|
54
54
|
"customElements": "custom-elements.json",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"web-types.json",
|
|
57
57
|
"web-types.lit.json"
|
|
58
58
|
],
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "f2833abdf9b613fa0d0ed216830e3f4de87b7dac"
|
|
60
60
|
}
|
|
@@ -63,6 +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
|
+
* @attr {string} theme - The theme variants to apply to the component.
|
|
66
67
|
* @customElement vaadin-radio-button
|
|
67
68
|
* @extends HTMLElement
|
|
68
69
|
*/
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
import { DisabledMixin } from '@vaadin/a11y-base/src/disabled-mixin.js';
|
|
7
7
|
import { FocusMixin } from '@vaadin/a11y-base/src/focus-mixin.js';
|
|
8
8
|
import { KeyboardMixin } from '@vaadin/a11y-base/src/keyboard-mixin.js';
|
|
9
|
+
import { setOrRemoveAttribute } from '@vaadin/component-base/src/dom-utils.js';
|
|
9
10
|
import { SlotObserver } from '@vaadin/component-base/src/slot-observer.js';
|
|
10
11
|
import { TooltipController } from '@vaadin/component-base/src/tooltip-controller.js';
|
|
11
12
|
import { generateUniqueId } from '@vaadin/component-base/src/unique-id-utils.js';
|
|
@@ -137,6 +138,15 @@ export const RadioGroupMixin = (superclass) =>
|
|
|
137
138
|
this.addController(this._tooltipController);
|
|
138
139
|
}
|
|
139
140
|
|
|
141
|
+
/** @protected */
|
|
142
|
+
updated(props) {
|
|
143
|
+
super.updated(props);
|
|
144
|
+
|
|
145
|
+
if (props.has('invalid')) {
|
|
146
|
+
setOrRemoveAttribute(this, 'aria-invalid', this.invalid);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
140
150
|
/**
|
|
141
151
|
* @param {!Array<!Node>} nodes
|
|
142
152
|
* @return {!Array<!RadioButton>}
|
|
@@ -173,23 +183,6 @@ export const RadioGroupMixin = (superclass) =>
|
|
|
173
183
|
}
|
|
174
184
|
}
|
|
175
185
|
|
|
176
|
-
/**
|
|
177
|
-
* Override an observer from `FieldMixin`.
|
|
178
|
-
*
|
|
179
|
-
* @param {boolean} invalid
|
|
180
|
-
* @protected
|
|
181
|
-
* @override
|
|
182
|
-
*/
|
|
183
|
-
_invalidChanged(invalid) {
|
|
184
|
-
super._invalidChanged(invalid);
|
|
185
|
-
|
|
186
|
-
if (invalid) {
|
|
187
|
-
this.setAttribute('aria-invalid', 'true');
|
|
188
|
-
} else {
|
|
189
|
-
this.removeAttribute('aria-invalid');
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
|
|
193
186
|
/** @private */
|
|
194
187
|
__nameChanged(name) {
|
|
195
188
|
this.__radioButtons.forEach((radioButton) => {
|
|
@@ -75,6 +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
|
+
* @attr {string} theme - The theme variants to apply to the component.
|
|
78
79
|
* @customElement vaadin-radio-group
|
|
79
80
|
* @extends HTMLElement
|
|
80
81
|
*/
|
package/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/radio-group",
|
|
4
|
-
"version": "25.
|
|
4
|
+
"version": "25.3.0-alpha10",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -60,9 +60,7 @@
|
|
|
60
60
|
"description": "The theme variants to apply to the component.",
|
|
61
61
|
"value": {
|
|
62
62
|
"type": [
|
|
63
|
-
"string"
|
|
64
|
-
"null",
|
|
65
|
-
"undefined"
|
|
63
|
+
"string"
|
|
66
64
|
]
|
|
67
65
|
}
|
|
68
66
|
},
|
|
@@ -145,9 +143,18 @@
|
|
|
145
143
|
"name": "vaadin-radio-group",
|
|
146
144
|
"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.",
|
|
147
145
|
"attributes": [
|
|
146
|
+
{
|
|
147
|
+
"name": "accessible-description-ref",
|
|
148
|
+
"description": "A space-separated list of IDs referencing the elements that\ndescribe the component for screen reader users. The referenced\nelements are announced in addition to the helper text and\nthe error message.",
|
|
149
|
+
"value": {
|
|
150
|
+
"type": [
|
|
151
|
+
"string"
|
|
152
|
+
]
|
|
153
|
+
}
|
|
154
|
+
},
|
|
148
155
|
{
|
|
149
156
|
"name": "accessible-name",
|
|
150
|
-
"description": "String used to label the component
|
|
157
|
+
"description": "String used to label the component for screen reader users.",
|
|
151
158
|
"value": {
|
|
152
159
|
"type": [
|
|
153
160
|
"string"
|
|
@@ -156,7 +163,7 @@
|
|
|
156
163
|
},
|
|
157
164
|
{
|
|
158
165
|
"name": "accessible-name-ref",
|
|
159
|
-
"description": "
|
|
166
|
+
"description": "A space-separated list of IDs referencing the elements that\nlabel the component for screen reader users.",
|
|
160
167
|
"value": {
|
|
161
168
|
"type": [
|
|
162
169
|
"string"
|
|
@@ -249,9 +256,7 @@
|
|
|
249
256
|
"description": "The theme variants to apply to the component.",
|
|
250
257
|
"value": {
|
|
251
258
|
"type": [
|
|
252
|
-
"string"
|
|
253
|
-
"null",
|
|
254
|
-
"undefined"
|
|
259
|
+
"string"
|
|
255
260
|
]
|
|
256
261
|
}
|
|
257
262
|
},
|
|
@@ -267,9 +272,18 @@
|
|
|
267
272
|
],
|
|
268
273
|
"js": {
|
|
269
274
|
"properties": [
|
|
275
|
+
{
|
|
276
|
+
"name": "accessibleDescriptionRef",
|
|
277
|
+
"description": "A space-separated list of IDs referencing the elements that\ndescribe the component for screen reader users. The referenced\nelements are announced in addition to the helper text and\nthe error message.",
|
|
278
|
+
"value": {
|
|
279
|
+
"type": [
|
|
280
|
+
"string"
|
|
281
|
+
]
|
|
282
|
+
}
|
|
283
|
+
},
|
|
270
284
|
{
|
|
271
285
|
"name": "accessibleName",
|
|
272
|
-
"description": "String used to label the component
|
|
286
|
+
"description": "String used to label the component for screen reader users.",
|
|
273
287
|
"value": {
|
|
274
288
|
"type": [
|
|
275
289
|
"string"
|
|
@@ -278,7 +292,7 @@
|
|
|
278
292
|
},
|
|
279
293
|
{
|
|
280
294
|
"name": "accessibleNameRef",
|
|
281
|
-
"description": "
|
|
295
|
+
"description": "A space-separated list of IDs referencing the elements that\nlabel the component for screen reader users.",
|
|
282
296
|
"value": {
|
|
283
297
|
"type": [
|
|
284
298
|
"string"
|
package/web-types.lit.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/radio-group",
|
|
4
|
-
"version": "25.
|
|
4
|
+
"version": "25.3.0-alpha10",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"framework": "lit",
|
|
7
7
|
"framework-config": {
|
|
@@ -75,16 +75,23 @@
|
|
|
75
75
|
"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.",
|
|
76
76
|
"extension": true,
|
|
77
77
|
"attributes": [
|
|
78
|
+
{
|
|
79
|
+
"name": ".accessibleDescriptionRef",
|
|
80
|
+
"description": "A space-separated list of IDs referencing the elements that\ndescribe the component for screen reader users. The referenced\nelements are announced in addition to the helper text and\nthe error message.",
|
|
81
|
+
"value": {
|
|
82
|
+
"kind": "expression"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
78
85
|
{
|
|
79
86
|
"name": ".accessibleName",
|
|
80
|
-
"description": "String used to label the component
|
|
87
|
+
"description": "String used to label the component for screen reader users.",
|
|
81
88
|
"value": {
|
|
82
89
|
"kind": "expression"
|
|
83
90
|
}
|
|
84
91
|
},
|
|
85
92
|
{
|
|
86
93
|
"name": ".accessibleNameRef",
|
|
87
|
-
"description": "
|
|
94
|
+
"description": "A space-separated list of IDs referencing the elements that\nlabel the component for screen reader users.",
|
|
88
95
|
"value": {
|
|
89
96
|
"kind": "expression"
|
|
90
97
|
}
|