@vaadin/checkbox 24.2.0-alpha8 → 24.2.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-mixin.js +0 -12
- package/src/vaadin-checkbox.js +4 -1
- 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",
|
|
3
|
-
"version": "24.2.0-
|
|
3
|
+
"version": "24.2.0-beta1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -39,22 +39,22 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
41
41
|
"@polymer/polymer": "^3.0.0",
|
|
42
|
-
"@vaadin/a11y-base": "24.2.0-
|
|
43
|
-
"@vaadin/component-base": "24.2.0-
|
|
44
|
-
"@vaadin/field-base": "24.2.0-
|
|
45
|
-
"@vaadin/vaadin-lumo-styles": "24.2.0-
|
|
46
|
-
"@vaadin/vaadin-material-styles": "24.2.0-
|
|
47
|
-
"@vaadin/vaadin-themable-mixin": "24.2.0-
|
|
42
|
+
"@vaadin/a11y-base": "24.2.0-beta1",
|
|
43
|
+
"@vaadin/component-base": "24.2.0-beta1",
|
|
44
|
+
"@vaadin/field-base": "24.2.0-beta1",
|
|
45
|
+
"@vaadin/vaadin-lumo-styles": "24.2.0-beta1",
|
|
46
|
+
"@vaadin/vaadin-material-styles": "24.2.0-beta1",
|
|
47
|
+
"@vaadin/vaadin-themable-mixin": "24.2.0-beta1",
|
|
48
48
|
"lit": "^2.0.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@esm-bundle/chai": "^4.3.4",
|
|
52
|
-
"@vaadin/testing-helpers": "^0.
|
|
52
|
+
"@vaadin/testing-helpers": "^0.5.0",
|
|
53
53
|
"sinon": "^13.0.2"
|
|
54
54
|
},
|
|
55
55
|
"web-types": [
|
|
56
56
|
"web-types.json",
|
|
57
57
|
"web-types.lit.json"
|
|
58
58
|
],
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "67c8eef57d1c59e7476e29adaf003cf4548878f2"
|
|
60
60
|
}
|
|
@@ -103,18 +103,6 @@ export const CheckboxMixin = (superclass) =>
|
|
|
103
103
|
return super._shouldSetActive(event);
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
/**
|
|
107
|
-
* Override to mark the field as dirty on change.
|
|
108
|
-
*
|
|
109
|
-
* @param {Event} event
|
|
110
|
-
* @protected
|
|
111
|
-
* @override
|
|
112
|
-
*/
|
|
113
|
-
_onChange(event) {
|
|
114
|
-
this.dirty = true;
|
|
115
|
-
super._onChange(event);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
106
|
/**
|
|
119
107
|
* Override method inherited from `CheckedMixin` to reset
|
|
120
108
|
* `indeterminate` state checkbox is toggled by the user.
|
package/src/vaadin-checkbox.js
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { html, PolymerElement } from '@polymer/polymer/polymer-element.js';
|
|
7
|
+
import { defineCustomElement } from '@vaadin/component-base/src/define.js';
|
|
7
8
|
import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
|
|
8
9
|
import { TooltipController } from '@vaadin/component-base/src/tooltip-controller.js';
|
|
9
10
|
import { registerStyles, ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
@@ -44,6 +45,7 @@ registerStyles('vaadin-checkbox', checkboxStyles, { moduleId: 'vaadin-checkbox-s
|
|
|
44
45
|
* @fires {CustomEvent} checked-changed - Fired when the `checked` property changes.
|
|
45
46
|
* @fires {CustomEvent} indeterminate-changed - Fired when the `indeterminate` property changes.
|
|
46
47
|
*
|
|
48
|
+
* @customElement
|
|
47
49
|
* @extends HTMLElement
|
|
48
50
|
* @mixes CheckboxMixin
|
|
49
51
|
* @mixes ThemableMixin
|
|
@@ -70,8 +72,9 @@ export class Checkbox extends CheckboxMixin(ElementMixin(ThemableMixin(PolymerEl
|
|
|
70
72
|
super.ready();
|
|
71
73
|
|
|
72
74
|
this._tooltipController = new TooltipController(this);
|
|
75
|
+
this._tooltipController.setAriaTarget(this.inputElement);
|
|
73
76
|
this.addController(this._tooltipController);
|
|
74
77
|
}
|
|
75
78
|
}
|
|
76
79
|
|
|
77
|
-
|
|
80
|
+
defineCustomElement(Checkbox);
|
package/web-types.json
CHANGED