@vaadin/checkbox-group 25.4.0-alpha7 → 25.4.0-beta2

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/checkbox-group",
3
- "version": "25.4.0-alpha7",
3
+ "version": "25.4.0-beta2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -35,19 +35,19 @@
35
35
  ],
36
36
  "dependencies": {
37
37
  "@open-wc/dedupe-mixin": "^1.3.0",
38
- "@vaadin/a11y-base": "25.4.0-alpha7",
39
- "@vaadin/checkbox": "25.4.0-alpha7",
40
- "@vaadin/component-base": "25.4.0-alpha7",
41
- "@vaadin/field-base": "25.4.0-alpha7",
42
- "@vaadin/vaadin-themable-mixin": "25.4.0-alpha7",
38
+ "@vaadin/a11y-base": "25.4.0-beta2",
39
+ "@vaadin/checkbox": "25.4.0-beta2",
40
+ "@vaadin/component-base": "25.4.0-beta2",
41
+ "@vaadin/field-base": "25.4.0-beta2",
42
+ "@vaadin/vaadin-themable-mixin": "25.4.0-beta2",
43
43
  "lit": "^3.0.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@vaadin/aura": "25.4.0-alpha7",
47
- "@vaadin/chai-plugins": "25.4.0-alpha7",
48
- "@vaadin/test-runner-commands": "25.4.0-alpha7",
46
+ "@vaadin/aura": "25.4.0-beta2",
47
+ "@vaadin/chai-plugins": "25.4.0-beta2",
48
+ "@vaadin/test-runner-commands": "25.4.0-beta2",
49
49
  "@vaadin/testing-helpers": "^2.0.0",
50
- "@vaadin/vaadin-lumo-styles": "25.4.0-alpha7",
50
+ "@vaadin/vaadin-lumo-styles": "25.4.0-beta2",
51
51
  "sinon": "^22.0.0"
52
52
  },
53
53
  "customElements": "custom-elements.json",
@@ -55,5 +55,5 @@
55
55
  "web-types.json",
56
56
  "web-types.lit.json"
57
57
  ],
58
- "gitHead": "368fb0f0df09ec6f51766d9c44047c8d7620d6bd"
58
+ "gitHead": "27bfa8b38acfa223d7a3e73e30cf2c5f5b8203e5"
59
59
  }
@@ -77,6 +77,26 @@ export const CheckboxGroupMixin = (superclass) =>
77
77
  return this.__filterCheckboxes([...this.children]);
78
78
  }
79
79
 
80
+ /**
81
+ * Override method inherited from `FocusMixin`
82
+ * to move focus to the first enabled checkbox.
83
+ *
84
+ * @param {FocusOptions=} options
85
+ * @protected
86
+ * @override
87
+ */
88
+ focus(options) {
89
+ if (this.disabled) {
90
+ return;
91
+ }
92
+
93
+ const target = this.__checkboxes.find((checkbox) => !checkbox.disabled);
94
+ if (target) {
95
+ target.focus(options);
96
+ super.focus(options);
97
+ }
98
+ }
99
+
80
100
  /** @protected */
81
101
  ready() {
82
102
  super.ready();
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/checkbox-group",
4
- "version": "25.4.0-alpha7",
4
+ "version": "25.4.0-beta2",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/checkbox-group",
4
- "version": "25.4.0-alpha7",
4
+ "version": "25.4.0-beta2",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {