@vaadin/checkbox-group 24.0.0-alpha9 → 24.0.0-beta1

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": "24.0.0-alpha9",
3
+ "version": "24.0.0-beta1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -36,21 +36,21 @@
36
36
  ],
37
37
  "dependencies": {
38
38
  "@polymer/polymer": "^3.0.0",
39
- "@vaadin/checkbox": "24.0.0-alpha9",
40
- "@vaadin/component-base": "24.0.0-alpha9",
41
- "@vaadin/field-base": "24.0.0-alpha9",
42
- "@vaadin/vaadin-lumo-styles": "24.0.0-alpha9",
43
- "@vaadin/vaadin-material-styles": "24.0.0-alpha9",
44
- "@vaadin/vaadin-themable-mixin": "24.0.0-alpha9"
39
+ "@vaadin/checkbox": "24.0.0-beta1",
40
+ "@vaadin/component-base": "24.0.0-beta1",
41
+ "@vaadin/field-base": "24.0.0-beta1",
42
+ "@vaadin/vaadin-lumo-styles": "24.0.0-beta1",
43
+ "@vaadin/vaadin-material-styles": "24.0.0-beta1",
44
+ "@vaadin/vaadin-themable-mixin": "24.0.0-beta1"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@esm-bundle/chai": "^4.3.4",
48
- "@vaadin/testing-helpers": "^0.3.2",
48
+ "@vaadin/testing-helpers": "^0.4.0",
49
49
  "sinon": "^13.0.2"
50
50
  },
51
51
  "web-types": [
52
52
  "web-types.json",
53
53
  "web-types.lit.json"
54
54
  ],
55
- "gitHead": "cc3f747164041566b300bde4b105d2475649e93f"
55
+ "gitHead": "c5b48921a62482746df8e46994b37e1490fec27e"
56
56
  }
@@ -38,10 +38,11 @@ export interface CheckboxGroupEventMap extends HTMLElementEventMap, CheckboxGrou
38
38
  * `<vaadin-checkbox-group>` is a web component that allows the user to choose several items from a group of binary choices.
39
39
  *
40
40
  * ```html
41
- * <vaadin-checkbox-group label="Preferred language of contact:">
42
- * <vaadin-checkbox value="en" label="English"></vaadin-checkbox>
43
- * <vaadin-checkbox value="fr" label="Français"></vaadin-checkbox>
44
- * <vaadin-checkbox value="de" label="Deutsch"></vaadin-checkbox>
41
+ * <vaadin-checkbox-group label="Export data">
42
+ * <vaadin-checkbox value="0" label="Order ID"></vaadin-checkbox>
43
+ * <vaadin-checkbox value="1" label="Product name"></vaadin-checkbox>
44
+ * <vaadin-checkbox value="2" label="Customer"></vaadin-checkbox>
45
+ * <vaadin-checkbox value="3" label="Status"></vaadin-checkbox>
45
46
  * </vaadin-checkbox-group>
46
47
  * ```
47
48
  *
@@ -17,10 +17,11 @@ import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mix
17
17
  * `<vaadin-checkbox-group>` is a web component that allows the user to choose several items from a group of binary choices.
18
18
  *
19
19
  * ```html
20
- * <vaadin-checkbox-group label="Preferred language of contact:">
21
- * <vaadin-checkbox value="en" label="English"></vaadin-checkbox>
22
- * <vaadin-checkbox value="fr" label="Français"></vaadin-checkbox>
23
- * <vaadin-checkbox value="de" label="Deutsch"></vaadin-checkbox>
20
+ * <vaadin-checkbox-group label="Export data">
21
+ * <vaadin-checkbox value="0" label="Order ID"></vaadin-checkbox>
22
+ * <vaadin-checkbox value="1" label="Product name"></vaadin-checkbox>
23
+ * <vaadin-checkbox value="2" label="Customer"></vaadin-checkbox>
24
+ * <vaadin-checkbox value="3" label="Status"></vaadin-checkbox>
24
25
  * </vaadin-checkbox-group>
25
26
  * ```
26
27
  *
@@ -144,6 +145,16 @@ class CheckboxGroup extends FieldMixin(FocusMixin(DisabledMixin(ElementMixin(The
144
145
  this.__onCheckboxCheckedChanged = this.__onCheckboxCheckedChanged.bind(this);
145
146
  }
146
147
 
148
+ /**
149
+ * A collection of the checkboxes.
150
+ *
151
+ * @return {!Array<!Checkbox>}
152
+ * @private
153
+ */
154
+ get __checkboxes() {
155
+ return this.__filterCheckboxes([...this.children]);
156
+ }
157
+
147
158
  /** @protected */
148
159
  ready() {
149
160
  super.ready();
@@ -187,16 +198,6 @@ class CheckboxGroup extends FieldMixin(FocusMixin(DisabledMixin(ElementMixin(The
187
198
  return nodes.filter((child) => child instanceof Checkbox);
188
199
  }
189
200
 
190
- /**
191
- * A collection of the checkboxes.
192
- *
193
- * @return {!Array<!Checkbox>}
194
- * @private
195
- */
196
- get __checkboxes() {
197
- return this.__filterCheckboxes([...this.children]);
198
- }
199
-
200
201
  /**
201
202
  * @param {!Array<!Checkbox>} checkboxes
202
203
  * @private
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": "24.0.0-alpha9",
4
+ "version": "24.0.0-alpha12",
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": "24.0.0-alpha9",
4
+ "version": "24.0.0-alpha12",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {