@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 +9 -9
- package/src/vaadin-checkbox-group.d.ts +5 -4
- package/src/vaadin-checkbox-group.js +15 -14
- 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/checkbox-group",
|
|
3
|
-
"version": "24.0.0-
|
|
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-
|
|
40
|
-
"@vaadin/component-base": "24.0.0-
|
|
41
|
-
"@vaadin/field-base": "24.0.0-
|
|
42
|
-
"@vaadin/vaadin-lumo-styles": "24.0.0-
|
|
43
|
-
"@vaadin/vaadin-material-styles": "24.0.0-
|
|
44
|
-
"@vaadin/vaadin-themable-mixin": "24.0.0-
|
|
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.
|
|
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": "
|
|
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="
|
|
42
|
-
* <vaadin-checkbox value="
|
|
43
|
-
* <vaadin-checkbox value="
|
|
44
|
-
* <vaadin-checkbox value="
|
|
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="
|
|
21
|
-
* <vaadin-checkbox value="
|
|
22
|
-
* <vaadin-checkbox value="
|
|
23
|
-
* <vaadin-checkbox value="
|
|
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
package/web-types.lit.json
CHANGED