@vaadin/checkbox 23.1.0-alpha2 → 23.1.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": "23.1.0-
|
|
3
|
+
"version": "23.1.0-beta1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -34,16 +34,16 @@
|
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@polymer/polymer": "^3.0.0",
|
|
37
|
-
"@vaadin/component-base": "23.1.0-
|
|
38
|
-
"@vaadin/field-base": "23.1.0-
|
|
39
|
-
"@vaadin/vaadin-lumo-styles": "23.1.0-
|
|
40
|
-
"@vaadin/vaadin-material-styles": "23.1.0-
|
|
41
|
-
"@vaadin/vaadin-themable-mixin": "23.1.0-
|
|
37
|
+
"@vaadin/component-base": "23.1.0-beta1",
|
|
38
|
+
"@vaadin/field-base": "23.1.0-beta1",
|
|
39
|
+
"@vaadin/vaadin-lumo-styles": "23.1.0-beta1",
|
|
40
|
+
"@vaadin/vaadin-material-styles": "23.1.0-beta1",
|
|
41
|
+
"@vaadin/vaadin-themable-mixin": "23.1.0-beta1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@esm-bundle/chai": "^4.3.4",
|
|
45
45
|
"@vaadin/testing-helpers": "^0.3.2",
|
|
46
|
-
"sinon": "^
|
|
46
|
+
"sinon": "^13.0.2"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "8be43cf83102a6b9ccf309687446e590ce0164e8"
|
|
49
49
|
}
|
package/src/vaadin-checkbox.d.ts
CHANGED
|
@@ -62,7 +62,7 @@ export interface CheckboxEventMap extends HTMLElementEventMap, CheckboxCustomEve
|
|
|
62
62
|
* @fires {CustomEvent} indeterminate-changed - Fired when the `indeterminate` property changes.
|
|
63
63
|
*/
|
|
64
64
|
declare class Checkbox extends LabelMixin(
|
|
65
|
-
CheckedMixin(DelegateFocusMixin(ActiveMixin(ElementMixin(ThemableMixin(ControllerMixin(HTMLElement))))))
|
|
65
|
+
CheckedMixin(DelegateFocusMixin(ActiveMixin(ElementMixin(ThemableMixin(ControllerMixin(HTMLElement)))))),
|
|
66
66
|
) {
|
|
67
67
|
/**
|
|
68
68
|
* True if the checkbox is in the indeterminate state which means
|
|
@@ -81,13 +81,13 @@ declare class Checkbox extends LabelMixin(
|
|
|
81
81
|
addEventListener<K extends keyof CheckboxEventMap>(
|
|
82
82
|
type: K,
|
|
83
83
|
listener: (this: Checkbox, ev: CheckboxEventMap[K]) => void,
|
|
84
|
-
options?: boolean | AddEventListenerOptions
|
|
84
|
+
options?: boolean | AddEventListenerOptions,
|
|
85
85
|
): void;
|
|
86
86
|
|
|
87
87
|
removeEventListener<K extends keyof CheckboxEventMap>(
|
|
88
88
|
type: K,
|
|
89
89
|
listener: (this: Checkbox, ev: CheckboxEventMap[K]) => void,
|
|
90
|
-
options?: boolean | EventListenerOptions
|
|
90
|
+
options?: boolean | EventListenerOptions,
|
|
91
91
|
): void;
|
|
92
92
|
}
|
|
93
93
|
|
package/src/vaadin-checkbox.js
CHANGED
|
@@ -57,7 +57,7 @@ import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mix
|
|
|
57
57
|
* @mixes LabelMixin
|
|
58
58
|
*/
|
|
59
59
|
class Checkbox extends LabelMixin(
|
|
60
|
-
CheckedMixin(DelegateFocusMixin(ActiveMixin(ElementMixin(ThemableMixin(ControllerMixin(PolymerElement))))))
|
|
60
|
+
CheckedMixin(DelegateFocusMixin(ActiveMixin(ElementMixin(ThemableMixin(ControllerMixin(PolymerElement)))))),
|
|
61
61
|
) {
|
|
62
62
|
static get is() {
|
|
63
63
|
return 'vaadin-checkbox';
|
|
@@ -132,7 +132,7 @@ class Checkbox extends LabelMixin(
|
|
|
132
132
|
type: Boolean,
|
|
133
133
|
notify: true,
|
|
134
134
|
value: false,
|
|
135
|
-
reflectToAttribute: true
|
|
135
|
+
reflectToAttribute: true,
|
|
136
136
|
},
|
|
137
137
|
|
|
138
138
|
/**
|
|
@@ -142,8 +142,8 @@ class Checkbox extends LabelMixin(
|
|
|
142
142
|
*/
|
|
143
143
|
name: {
|
|
144
144
|
type: String,
|
|
145
|
-
value: ''
|
|
146
|
-
}
|
|
145
|
+
value: '',
|
|
146
|
+
},
|
|
147
147
|
};
|
|
148
148
|
}
|
|
149
149
|
|
|
@@ -184,8 +184,8 @@ class Checkbox extends LabelMixin(
|
|
|
184
184
|
new SlotTargetController(
|
|
185
185
|
this.$.noop,
|
|
186
186
|
() => this._labelController.node,
|
|
187
|
-
() => this.__warnDeprecated()
|
|
188
|
-
)
|
|
187
|
+
() => this.__warnDeprecated(),
|
|
188
|
+
),
|
|
189
189
|
);
|
|
190
190
|
}
|
|
191
191
|
}
|
|
@@ -194,7 +194,7 @@ class Checkbox extends LabelMixin(
|
|
|
194
194
|
__warnDeprecated() {
|
|
195
195
|
console.warn(
|
|
196
196
|
`WARNING: Since Vaadin 22, placing the label as a direct child of a <vaadin-checkbox> is deprecated.
|
|
197
|
-
Please use <label slot="label"> wrapper or the label property instead
|
|
197
|
+
Please use <label slot="label"> wrapper or the label property instead.`,
|
|
198
198
|
);
|
|
199
199
|
}
|
|
200
200
|
|