@vaadin/checkbox 22.0.0-beta2 → 22.0.2
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.
|
|
3
|
+
"version": "22.0.2",
|
|
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.
|
|
37
|
-
"@vaadin/field-base": "22.0.
|
|
38
|
-
"@vaadin/vaadin-lumo-styles": "22.0.
|
|
39
|
-
"@vaadin/vaadin-material-styles": "22.0.
|
|
40
|
-
"@vaadin/vaadin-themable-mixin": "22.0.
|
|
36
|
+
"@vaadin/component-base": "^22.0.2",
|
|
37
|
+
"@vaadin/field-base": "^22.0.2",
|
|
38
|
+
"@vaadin/vaadin-lumo-styles": "^22.0.2",
|
|
39
|
+
"@vaadin/vaadin-material-styles": "^22.0.2",
|
|
40
|
+
"@vaadin/vaadin-themable-mixin": "^22.0.2"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@esm-bundle/chai": "^4.3.4",
|
|
44
|
-
"@vaadin/testing-helpers": "^0.3.
|
|
44
|
+
"@vaadin/testing-helpers": "^0.3.2",
|
|
45
45
|
"sinon": "^9.2.0"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "df21370c4a655a38eac11f79686021ab3b0887ad"
|
|
48
48
|
}
|
package/src/vaadin-checkbox.d.ts
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 { ActiveMixin } from '@vaadin/component-base/src/active-mixin.js';
|
|
7
|
+
import { ControllerMixin } from '@vaadin/component-base/src/controller-mixin.js';
|
|
7
8
|
import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
|
|
8
9
|
import { CheckedMixin } from '@vaadin/field-base/src/checked-mixin.js';
|
|
9
10
|
import { DelegateFocusMixin } from '@vaadin/field-base/src/delegate-focus-mixin.js';
|
|
@@ -61,7 +62,7 @@ export interface CheckboxEventMap extends HTMLElementEventMap, CheckboxCustomEve
|
|
|
61
62
|
* @fires {CustomEvent} indeterminate-changed - Fired when the `indeterminate` property changes.
|
|
62
63
|
*/
|
|
63
64
|
declare class Checkbox extends SlotLabelMixin(
|
|
64
|
-
CheckedMixin(DelegateFocusMixin(ActiveMixin(ElementMixin(ThemableMixin(HTMLElement)))))
|
|
65
|
+
CheckedMixin(DelegateFocusMixin(ActiveMixin(ElementMixin(ThemableMixin(ControllerMixin(HTMLElement))))))
|
|
65
66
|
) {
|
|
66
67
|
/**
|
|
67
68
|
* True if the checkbox is in the indeterminate state which means
|
package/src/vaadin-checkbox.js
CHANGED
|
@@ -5,11 +5,12 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { html, PolymerElement } from '@polymer/polymer/polymer-element.js';
|
|
7
7
|
import { ActiveMixin } from '@vaadin/component-base/src/active-mixin.js';
|
|
8
|
+
import { ControllerMixin } from '@vaadin/component-base/src/controller-mixin.js';
|
|
8
9
|
import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
|
|
9
|
-
import { AriaLabelController } from '@vaadin/field-base/src/aria-label-controller.js';
|
|
10
10
|
import { CheckedMixin } from '@vaadin/field-base/src/checked-mixin.js';
|
|
11
11
|
import { DelegateFocusMixin } from '@vaadin/field-base/src/delegate-focus-mixin.js';
|
|
12
12
|
import { InputController } from '@vaadin/field-base/src/input-controller.js';
|
|
13
|
+
import { LabelledInputController } from '@vaadin/field-base/src/labelled-input-controller.js';
|
|
13
14
|
import { SlotLabelMixin } from '@vaadin/field-base/src/slot-label-mixin.js';
|
|
14
15
|
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
15
16
|
|
|
@@ -46,6 +47,7 @@ import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mix
|
|
|
46
47
|
* @fires {CustomEvent} indeterminate-changed - Fired when the `indeterminate` property changes.
|
|
47
48
|
*
|
|
48
49
|
* @extends HTMLElement
|
|
50
|
+
* @mixes ControllerMixin
|
|
49
51
|
* @mixes ThemableMixin
|
|
50
52
|
* @mixes ElementMixin
|
|
51
53
|
* @mixes ActiveMixin
|
|
@@ -54,7 +56,7 @@ import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mix
|
|
|
54
56
|
* @mixes SlotLabelMixin
|
|
55
57
|
*/
|
|
56
58
|
class Checkbox extends SlotLabelMixin(
|
|
57
|
-
CheckedMixin(DelegateFocusMixin(ActiveMixin(ElementMixin(ThemableMixin(PolymerElement)))))
|
|
59
|
+
CheckedMixin(DelegateFocusMixin(ActiveMixin(ElementMixin(ThemableMixin(ControllerMixin(PolymerElement))))))
|
|
58
60
|
) {
|
|
59
61
|
static get is() {
|
|
60
62
|
return 'vaadin-checkbox';
|
|
@@ -174,7 +176,7 @@ class Checkbox extends SlotLabelMixin(
|
|
|
174
176
|
this.stateTarget = input;
|
|
175
177
|
})
|
|
176
178
|
);
|
|
177
|
-
this.addController(new
|
|
179
|
+
this.addController(new LabelledInputController(this.inputElement, this._labelNode));
|
|
178
180
|
}
|
|
179
181
|
|
|
180
182
|
/**
|