@vaadin/checkbox-group 24.0.0-alpha9 → 24.0.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": "24.0.0-alpha9",
3
+ "version": "24.0.0-beta2",
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-beta2",
40
+ "@vaadin/component-base": "24.0.0-beta2",
41
+ "@vaadin/field-base": "24.0.0-beta2",
42
+ "@vaadin/vaadin-lumo-styles": "24.0.0-beta2",
43
+ "@vaadin/vaadin-material-styles": "24.0.0-beta2",
44
+ "@vaadin/vaadin-themable-mixin": "24.0.0-beta2"
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": "00086f1f6d487f042f189c9b9ecd7ba736960888"
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,14 +1,14 @@
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-beta2",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "elements": [
9
9
  {
10
10
  "name": "vaadin-checkbox-group",
11
- "description": "`<vaadin-checkbox-group>` is a web component that allows the user to choose several items from a group of binary choices.\n\n```html\n<vaadin-checkbox-group label=\"Preferred language of contact:\">\n <vaadin-checkbox value=\"en\" label=\"English\"></vaadin-checkbox>\n <vaadin-checkbox value=\"fr\" label=\"Français\"></vaadin-checkbox>\n <vaadin-checkbox value=\"de\" label=\"Deutsch\"></vaadin-checkbox>\n</vaadin-checkbox-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 checkbox 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 | Part name\n--------------------|-------------------------------------------|------------\n`disabled` | Set when the element is disabled | :host\n`invalid` | Set when the element is invalid | :host\n`focused` | Set when the element is focused | :host\n`has-label` | Set when the element has a label | :host\n`has-value` | Set when the element has a value | :host\n`has-helper` | Set when the element has helper text | :host\n`has-error-message` | Set when the element has an error message | :host\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/custom-theme/styling-components) documentation.",
11
+ "description": "`<vaadin-checkbox-group>` is a web component that allows the user to choose several items from a group of binary choices.\n\n```html\n<vaadin-checkbox-group label=\"Export data\">\n <vaadin-checkbox value=\"0\" label=\"Order ID\"></vaadin-checkbox>\n <vaadin-checkbox value=\"1\" label=\"Product name\"></vaadin-checkbox>\n <vaadin-checkbox value=\"2\" label=\"Customer\"></vaadin-checkbox>\n <vaadin-checkbox value=\"3\" label=\"Status\"></vaadin-checkbox>\n</vaadin-checkbox-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 checkbox 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 | Part name\n--------------------|-------------------------------------------|------------\n`disabled` | Set when the element is disabled | :host\n`invalid` | Set when the element is invalid | :host\n`focused` | Set when the element is focused | :host\n`has-label` | Set when the element has a label | :host\n`has-value` | Set when the element has a value | :host\n`has-helper` | Set when the element has helper text | :host\n`has-error-message` | Set when the element has an error message | :host\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/custom-theme/styling-components) documentation.",
12
12
  "attributes": [
13
13
  {
14
14
  "name": "disabled",
@@ -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-beta2",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {
@@ -16,7 +16,7 @@
16
16
  "elements": [
17
17
  {
18
18
  "name": "vaadin-checkbox-group",
19
- "description": "`<vaadin-checkbox-group>` is a web component that allows the user to choose several items from a group of binary choices.\n\n```html\n<vaadin-checkbox-group label=\"Preferred language of contact:\">\n <vaadin-checkbox value=\"en\" label=\"English\"></vaadin-checkbox>\n <vaadin-checkbox value=\"fr\" label=\"Français\"></vaadin-checkbox>\n <vaadin-checkbox value=\"de\" label=\"Deutsch\"></vaadin-checkbox>\n</vaadin-checkbox-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 checkbox 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 | Part name\n--------------------|-------------------------------------------|------------\n`disabled` | Set when the element is disabled | :host\n`invalid` | Set when the element is invalid | :host\n`focused` | Set when the element is focused | :host\n`has-label` | Set when the element has a label | :host\n`has-value` | Set when the element has a value | :host\n`has-helper` | Set when the element has helper text | :host\n`has-error-message` | Set when the element has an error message | :host\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/custom-theme/styling-components) documentation.",
19
+ "description": "`<vaadin-checkbox-group>` is a web component that allows the user to choose several items from a group of binary choices.\n\n```html\n<vaadin-checkbox-group label=\"Export data\">\n <vaadin-checkbox value=\"0\" label=\"Order ID\"></vaadin-checkbox>\n <vaadin-checkbox value=\"1\" label=\"Product name\"></vaadin-checkbox>\n <vaadin-checkbox value=\"2\" label=\"Customer\"></vaadin-checkbox>\n <vaadin-checkbox value=\"3\" label=\"Status\"></vaadin-checkbox>\n</vaadin-checkbox-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 checkbox 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 | Part name\n--------------------|-------------------------------------------|------------\n`disabled` | Set when the element is disabled | :host\n`invalid` | Set when the element is invalid | :host\n`focused` | Set when the element is focused | :host\n`has-label` | Set when the element has a label | :host\n`has-value` | Set when the element has a value | :host\n`has-helper` | Set when the element has helper text | :host\n`has-error-message` | Set when the element has an error message | :host\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/custom-theme/styling-components) documentation.",
20
20
  "extension": true,
21
21
  "attributes": [
22
22
  {