@vaadin/checkbox 22.0.0-alpha9 → 22.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",
|
|
3
|
-
"version": "22.0.0-
|
|
3
|
+
"version": "22.0.0-beta1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -33,16 +33,16 @@
|
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@polymer/polymer": "^3.0.0",
|
|
36
|
-
"@vaadin/component-base": "22.0.0-
|
|
37
|
-
"@vaadin/field-base": "22.0.0-
|
|
38
|
-
"@vaadin/vaadin-lumo-styles": "22.0.0-
|
|
39
|
-
"@vaadin/vaadin-material-styles": "22.0.0-
|
|
40
|
-
"@vaadin/vaadin-themable-mixin": "22.0.0-
|
|
36
|
+
"@vaadin/component-base": "22.0.0-beta1",
|
|
37
|
+
"@vaadin/field-base": "22.0.0-beta1",
|
|
38
|
+
"@vaadin/vaadin-lumo-styles": "22.0.0-beta1",
|
|
39
|
+
"@vaadin/vaadin-material-styles": "22.0.0-beta1",
|
|
40
|
+
"@vaadin/vaadin-themable-mixin": "22.0.0-beta1"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@esm-bundle/chai": "^4.3.4",
|
|
44
44
|
"@vaadin/testing-helpers": "^0.3.0",
|
|
45
45
|
"sinon": "^9.2.0"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "4cf8a9d0504994200c610e44b3676114fef49c1e"
|
|
48
48
|
}
|
package/src/vaadin-checkbox.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export interface CheckboxEventMap extends HTMLElementEventMap, CheckboxCustomEve
|
|
|
32
32
|
* `<vaadin-checkbox>` is an input field representing a binary choice.
|
|
33
33
|
*
|
|
34
34
|
* ```html
|
|
35
|
-
* <vaadin-checkbox
|
|
35
|
+
* <vaadin-checkbox label="I accept the terms and conditions"></vaadin-checkbox>
|
|
36
36
|
* ```
|
|
37
37
|
*
|
|
38
38
|
* ### Styling
|
|
@@ -41,9 +41,7 @@ export interface CheckboxEventMap extends HTMLElementEventMap, CheckboxCustomEve
|
|
|
41
41
|
*
|
|
42
42
|
* Part name | Description
|
|
43
43
|
* ------------|----------------
|
|
44
|
-
* `container` | The container element
|
|
45
44
|
* `checkbox` | The wrapper element that contains slotted `<input type="checkbox">`
|
|
46
|
-
* `label` | The wrapper element that contains slotted `<label>`
|
|
47
45
|
*
|
|
48
46
|
* The following state attributes are available for styling:
|
|
49
47
|
*
|
package/src/vaadin-checkbox.js
CHANGED
|
@@ -17,7 +17,7 @@ import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mix
|
|
|
17
17
|
* `<vaadin-checkbox>` is an input field representing a binary choice.
|
|
18
18
|
*
|
|
19
19
|
* ```html
|
|
20
|
-
* <vaadin-checkbox
|
|
20
|
+
* <vaadin-checkbox label="I accept the terms and conditions"></vaadin-checkbox>
|
|
21
21
|
* ```
|
|
22
22
|
*
|
|
23
23
|
* ### Styling
|
|
@@ -26,9 +26,7 @@ import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mix
|
|
|
26
26
|
*
|
|
27
27
|
* Part name | Description
|
|
28
28
|
* ------------|----------------
|
|
29
|
-
* `container` | The container element.
|
|
30
29
|
* `checkbox` | The wrapper element that contains slotted <input type="checkbox">.
|
|
31
|
-
* `label` | The wrapper element that contains slotted <label>.
|
|
32
30
|
*
|
|
33
31
|
* The following state attributes are available for styling:
|
|
34
32
|
*
|
|
@@ -176,7 +174,7 @@ class Checkbox extends SlotLabelMixin(
|
|
|
176
174
|
this.stateTarget = input;
|
|
177
175
|
})
|
|
178
176
|
);
|
|
179
|
-
this.addController(new AriaLabelController(this.inputElement, this._labelNode));
|
|
177
|
+
this.addController(new AriaLabelController(this, this.inputElement, this._labelNode));
|
|
180
178
|
}
|
|
181
179
|
|
|
182
180
|
/**
|