@vaadin/checkbox-group 24.3.0-alpha1 → 24.3.0-alpha3

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-group",
3
- "version": "24.3.0-alpha1",
3
+ "version": "24.3.0-alpha3",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -36,13 +36,13 @@
36
36
  ],
37
37
  "dependencies": {
38
38
  "@polymer/polymer": "^3.0.0",
39
- "@vaadin/a11y-base": "24.3.0-alpha1",
40
- "@vaadin/checkbox": "24.3.0-alpha1",
41
- "@vaadin/component-base": "24.3.0-alpha1",
42
- "@vaadin/field-base": "24.3.0-alpha1",
43
- "@vaadin/vaadin-lumo-styles": "24.3.0-alpha1",
44
- "@vaadin/vaadin-material-styles": "24.3.0-alpha1",
45
- "@vaadin/vaadin-themable-mixin": "24.3.0-alpha1"
39
+ "@vaadin/a11y-base": "24.3.0-alpha3",
40
+ "@vaadin/checkbox": "24.3.0-alpha3",
41
+ "@vaadin/component-base": "24.3.0-alpha3",
42
+ "@vaadin/field-base": "24.3.0-alpha3",
43
+ "@vaadin/vaadin-lumo-styles": "24.3.0-alpha3",
44
+ "@vaadin/vaadin-material-styles": "24.3.0-alpha3",
45
+ "@vaadin/vaadin-themable-mixin": "24.3.0-alpha3"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@esm-bundle/chai": "^4.3.4",
@@ -53,5 +53,5 @@
53
53
  "web-types.json",
54
54
  "web-types.lit.json"
55
55
  ],
56
- "gitHead": "9ca6f3ca220a777e8eea181a1f5717e39a732240"
56
+ "gitHead": "9162ca5fb9879dbcc8c68a77c1acb3af2c497a15"
57
57
  }
@@ -14,11 +14,6 @@ import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mix
14
14
  */
15
15
  export type CheckboxGroupInvalidChangedEvent = CustomEvent<{ value: boolean }>;
16
16
 
17
- /**
18
- * Fired when the `dirty` property changes.
19
- */
20
- export type CheckboxGroupDirtyChangedEvent = CustomEvent<{ value: boolean }>;
21
-
22
17
  /**
23
18
  * Fired when the `value` property changes.
24
19
  */
@@ -32,8 +27,6 @@ export type CheckboxGroupValidatedEvent = CustomEvent<{ valid: boolean }>;
32
27
  export interface CheckboxGroupCustomEventMap {
33
28
  'invalid-changed': CheckboxGroupInvalidChangedEvent;
34
29
 
35
- 'dirty-changed': CheckboxGroupDirtyChangedEvent;
36
-
37
30
  'value-changed': CheckboxGroupValueChangedEvent;
38
31
 
39
32
  validated: CheckboxGroupValidatedEvent;
@@ -80,7 +73,6 @@ export interface CheckboxGroupEventMap extends HTMLElementEventMap, CheckboxGrou
80
73
  * See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
81
74
  *
82
75
  * @fires {CustomEvent} invalid-changed - Fired when the `invalid` property changes.
83
- * @fires {CustomEvent} dirty-changed - Fired when the `dirty` property changes.
84
76
  * @fires {CustomEvent} value-changed - Fired when the `value` property changes.
85
77
  * @fires {CustomEvent} validated - Fired whenever the field is validated.
86
78
  */
@@ -93,15 +85,6 @@ declare class CheckboxGroup extends FieldMixin(FocusMixin(DisabledMixin(ElementM
93
85
  */
94
86
  value: string[];
95
87
 
96
- /**
97
- * Whether the field is dirty.
98
- *
99
- * The field is automatically marked as dirty once the user triggers
100
- * a `change` event. Additionally, the field can be manually marked
101
- * as dirty by setting the property to `true`.
102
- */
103
- dirty: boolean;
104
-
105
88
  addEventListener<K extends keyof CheckboxGroupEventMap>(
106
89
  type: K,
107
90
  listener: (this: CheckboxGroup, ev: CheckboxGroupEventMap[K]) => void,
@@ -141,19 +141,6 @@ class CheckboxGroup extends FieldMixin(FocusMixin(DisabledMixin(ElementMixin(The
141
141
  notify: true,
142
142
  observer: '__valueChanged',
143
143
  },
144
-
145
- /**
146
- * Whether the field is dirty.
147
- *
148
- * The field is automatically marked as dirty once the user triggers
149
- * a `change` event. Additionally, the field can be manually marked
150
- * as dirty by setting the property to `true`.
151
- */
152
- dirty: {
153
- type: Boolean,
154
- value: false,
155
- notify: true,
156
- },
157
144
  };
158
145
  }
159
146
 
@@ -162,7 +149,6 @@ class CheckboxGroup extends FieldMixin(FocusMixin(DisabledMixin(ElementMixin(The
162
149
 
163
150
  this.__registerCheckbox = this.__registerCheckbox.bind(this);
164
151
  this.__unregisterCheckbox = this.__unregisterCheckbox.bind(this);
165
- this.__onCheckboxChange = this.__onCheckboxChange.bind(this);
166
152
  this.__onCheckboxCheckedChanged = this.__onCheckboxCheckedChanged.bind(this);
167
153
 
168
154
  this._tooltipController = new TooltipController(this);
@@ -258,7 +244,6 @@ class CheckboxGroup extends FieldMixin(FocusMixin(DisabledMixin(ElementMixin(The
258
244
  * @private
259
245
  */
260
246
  __registerCheckbox(checkbox) {
261
- checkbox.addEventListener('change', this.__onCheckboxChange);
262
247
  checkbox.addEventListener('checked-changed', this.__onCheckboxCheckedChanged);
263
248
 
264
249
  if (this.disabled) {
@@ -279,7 +264,6 @@ class CheckboxGroup extends FieldMixin(FocusMixin(DisabledMixin(ElementMixin(The
279
264
  * @private
280
265
  */
281
266
  __unregisterCheckbox(checkbox) {
282
- checkbox.removeEventListener('change', this.__onCheckboxChange);
283
267
  checkbox.removeEventListener('checked-changed', this.__onCheckboxCheckedChanged);
284
268
 
285
269
  if (checkbox.checked) {
@@ -333,11 +317,6 @@ class CheckboxGroup extends FieldMixin(FocusMixin(DisabledMixin(ElementMixin(The
333
317
  }
334
318
  }
335
319
 
336
- /** @private */
337
- __onCheckboxChange() {
338
- this.dirty = true;
339
- }
340
-
341
320
  /**
342
321
  * @param {!CustomEvent} event
343
322
  * @private
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-group",
4
- "version": "24.3.0-alpha1",
4
+ "version": "24.3.0-alpha3",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -98,17 +98,6 @@
98
98
  ]
99
99
  }
100
100
  },
101
- {
102
- "name": "dirty",
103
- "description": "Whether the field is dirty.\n\nThe field is automatically marked as dirty once the user triggers\na `change` event. Additionally, the field can be manually marked\nas dirty by setting the property to `true`.",
104
- "value": {
105
- "type": [
106
- "boolean",
107
- "null",
108
- "undefined"
109
- ]
110
- }
111
- },
112
101
  {
113
102
  "name": "theme",
114
103
  "description": "The theme variants to apply to the component.",
@@ -219,17 +208,6 @@
219
208
  "Array.<string>"
220
209
  ]
221
210
  }
222
- },
223
- {
224
- "name": "dirty",
225
- "description": "Whether the field is dirty.\n\nThe field is automatically marked as dirty once the user triggers\na `change` event. Additionally, the field can be manually marked\nas dirty by setting the property to `true`.",
226
- "value": {
227
- "type": [
228
- "boolean",
229
- "null",
230
- "undefined"
231
- ]
232
- }
233
211
  }
234
212
  ],
235
213
  "events": [
@@ -241,10 +219,6 @@
241
219
  "name": "value-changed",
242
220
  "description": "Fired when the `value` property changes."
243
221
  },
244
- {
245
- "name": "dirty-changed",
246
- "description": "Fired when the `dirty` property changes."
247
- },
248
222
  {
249
223
  "name": "invalid-changed",
250
224
  "description": "Fired when the `invalid` property changes."
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/checkbox-group",
4
- "version": "24.3.0-alpha1",
4
+ "version": "24.3.0-alpha3",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {
@@ -40,13 +40,6 @@
40
40
  "kind": "expression"
41
41
  }
42
42
  },
43
- {
44
- "name": "?dirty",
45
- "description": "Whether the field is dirty.\n\nThe field is automatically marked as dirty once the user triggers\na `change` event. Additionally, the field can be manually marked\nas dirty by setting the property to `true`.",
46
- "value": {
47
- "kind": "expression"
48
- }
49
- },
50
43
  {
51
44
  "name": ".label",
52
45
  "description": "The label text for the input node.\nWhen no light dom defined via [slot=label], this value will be used.",
@@ -103,13 +96,6 @@
103
96
  "kind": "expression"
104
97
  }
105
98
  },
106
- {
107
- "name": "@dirty-changed",
108
- "description": "Fired when the `dirty` property changes.",
109
- "value": {
110
- "kind": "expression"
111
- }
112
- },
113
99
  {
114
100
  "name": "@invalid-changed",
115
101
  "description": "Fired when the `invalid` property changes.",