@vaadin/radio-group 25.3.6 → 25.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +10 -10
- package/src/vaadin-radio-group-mixin.js +21 -0
- package/web-types.json +1 -1
- package/web-types.lit.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/radio-group",
|
|
3
|
-
"version": "25.3.
|
|
3
|
+
"version": "25.3.7",
|
|
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": "~25.3.
|
|
41
|
-
"@vaadin/component-base": "~25.3.
|
|
42
|
-
"@vaadin/field-base": "~25.3.
|
|
43
|
-
"@vaadin/vaadin-themable-mixin": "~25.3.
|
|
40
|
+
"@vaadin/a11y-base": "~25.3.7",
|
|
41
|
+
"@vaadin/component-base": "~25.3.7",
|
|
42
|
+
"@vaadin/field-base": "~25.3.7",
|
|
43
|
+
"@vaadin/vaadin-themable-mixin": "~25.3.7",
|
|
44
44
|
"lit": "^3.0.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@vaadin/aura": "~25.3.
|
|
48
|
-
"@vaadin/chai-plugins": "~25.3.
|
|
49
|
-
"@vaadin/test-runner-commands": "~25.3.
|
|
47
|
+
"@vaadin/aura": "~25.3.7",
|
|
48
|
+
"@vaadin/chai-plugins": "~25.3.7",
|
|
49
|
+
"@vaadin/test-runner-commands": "~25.3.7",
|
|
50
50
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
51
|
-
"@vaadin/vaadin-lumo-styles": "~25.3.
|
|
51
|
+
"@vaadin/vaadin-lumo-styles": "~25.3.7",
|
|
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": "a8a234c11fdd73670c47c270dc513fef984302bf"
|
|
60
60
|
}
|
|
@@ -94,6 +94,27 @@ export const RadioGroupMixin = (superclass) =>
|
|
|
94
94
|
return this.__filterRadioButtons([...this.children]);
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
+
/**
|
|
98
|
+
* Override method inherited from `FocusMixin` to move focus
|
|
99
|
+
* to the checked radio button, or to the first enabled one.
|
|
100
|
+
*
|
|
101
|
+
* @param {FocusOptions=} options
|
|
102
|
+
* @protected
|
|
103
|
+
* @override
|
|
104
|
+
*/
|
|
105
|
+
focus(options) {
|
|
106
|
+
if (this.disabled) {
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
const selected = this.__selectedRadioButton;
|
|
111
|
+
const target = selected && !selected.disabled ? selected : this.__radioButtons.find((radio) => !radio.disabled);
|
|
112
|
+
if (target) {
|
|
113
|
+
target.focus(options);
|
|
114
|
+
super.focus(options);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
97
118
|
/**
|
|
98
119
|
* A currently selected radio button.
|
|
99
120
|
*
|
package/web-types.json
CHANGED