@vaadin/checkbox 24.3.1 → 24.4.0-alpha1

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": "24.3.1",
3
+ "version": "24.4.0-alpha1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -37,12 +37,12 @@
37
37
  "dependencies": {
38
38
  "@open-wc/dedupe-mixin": "^1.3.0",
39
39
  "@polymer/polymer": "^3.0.0",
40
- "@vaadin/a11y-base": "~24.3.1",
41
- "@vaadin/component-base": "~24.3.1",
42
- "@vaadin/field-base": "~24.3.1",
43
- "@vaadin/vaadin-lumo-styles": "~24.3.1",
44
- "@vaadin/vaadin-material-styles": "~24.3.1",
45
- "@vaadin/vaadin-themable-mixin": "~24.3.1",
40
+ "@vaadin/a11y-base": "24.4.0-alpha1",
41
+ "@vaadin/component-base": "24.4.0-alpha1",
42
+ "@vaadin/field-base": "24.4.0-alpha1",
43
+ "@vaadin/vaadin-lumo-styles": "24.4.0-alpha1",
44
+ "@vaadin/vaadin-material-styles": "24.4.0-alpha1",
45
+ "@vaadin/vaadin-themable-mixin": "24.4.0-alpha1",
46
46
  "lit": "^3.0.0"
47
47
  },
48
48
  "devDependencies": {
@@ -54,5 +54,5 @@
54
54
  "web-types.json",
55
55
  "web-types.lit.json"
56
56
  ],
57
- "gitHead": "b81b3535adec8e4371ceb5d1ba5b12fa2a2abf22"
57
+ "gitHead": "3e2ed41c99d618ff7def2734fd863c21c85775a3"
58
58
  }
@@ -130,4 +130,10 @@ export const CheckboxMixin = (superclass) =>
130
130
 
131
131
  super._toggleChecked(checked);
132
132
  }
133
+
134
+ /**
135
+ * Fired when the checkbox is checked or unchecked by the user.
136
+ *
137
+ * @event change
138
+ */
133
139
  };
@@ -11,6 +11,13 @@ import { CheckedMixin } from '@vaadin/field-base/src/checked-mixin.js';
11
11
  import { LabelMixin } from '@vaadin/field-base/src/label-mixin.js';
12
12
  import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
13
13
 
14
+ /**
15
+ * Fired when the checkbox is checked or unchecked by the user.
16
+ */
17
+ export type CheckboxChangeEvent = Event & {
18
+ target: Checkbox;
19
+ };
20
+
14
21
  /**
15
22
  * Fired when the `checked` property changes.
16
23
  */
@@ -27,7 +34,9 @@ export interface CheckboxCustomEventMap {
27
34
  'indeterminate-changed': CheckboxIndeterminateChangedEvent;
28
35
  }
29
36
 
30
- export interface CheckboxEventMap extends HTMLElementEventMap, CheckboxCustomEventMap {}
37
+ export interface CheckboxEventMap extends HTMLElementEventMap, CheckboxCustomEventMap {
38
+ change: CheckboxChangeEvent;
39
+ }
31
40
 
32
41
  /**
33
42
  * `<vaadin-checkbox>` is an input field representing a binary choice.
@@ -58,6 +67,7 @@ export interface CheckboxEventMap extends HTMLElementEventMap, CheckboxCustomEve
58
67
  *
59
68
  * See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
60
69
  *
70
+ * @fires {Event} change - Fired when the checkbox is checked or unchecked by the user.
61
71
  * @fires {CustomEvent} checked-changed - Fired when the `checked` property changes.
62
72
  * @fires {CustomEvent} indeterminate-changed - Fired when the `indeterminate` property changes.
63
73
  */
@@ -42,6 +42,7 @@ registerStyles('vaadin-checkbox', checkboxStyles, { moduleId: 'vaadin-checkbox-s
42
42
  *
43
43
  * See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
44
44
  *
45
+ * @fires {Event} change - Fired when the checkbox is checked or unchecked by the user.
45
46
  * @fires {CustomEvent} checked-changed - Fired when the `checked` property changes.
46
47
  * @fires {CustomEvent} indeterminate-changed - Fired when the `indeterminate` property changes.
47
48
  *
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/checkbox",
4
- "version": "24.3.1",
4
+ "version": "24.4.0-alpha1",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -168,6 +168,10 @@
168
168
  }
169
169
  ],
170
170
  "events": [
171
+ {
172
+ "name": "change",
173
+ "description": "Fired when the checkbox is checked or unchecked by the user."
174
+ },
171
175
  {
172
176
  "name": "value-changed",
173
177
  "description": "Fired when the `value` property changes."
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/checkbox",
4
- "version": "24.3.1",
4
+ "version": "24.4.0-alpha1",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {
@@ -68,6 +68,13 @@
68
68
  "kind": "expression"
69
69
  }
70
70
  },
71
+ {
72
+ "name": "@change",
73
+ "description": "Fired when the checkbox is checked or unchecked by the user.",
74
+ "value": {
75
+ "kind": "expression"
76
+ }
77
+ },
71
78
  {
72
79
  "name": "@value-changed",
73
80
  "description": "Fired when the `value` property changes.",