@vaadin/checkbox 25.2.0-alpha10 → 25.2.0-alpha11

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": "25.2.0-alpha10",
3
+ "version": "25.2.0-alpha11",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -35,18 +35,18 @@
35
35
  ],
36
36
  "dependencies": {
37
37
  "@open-wc/dedupe-mixin": "^1.3.0",
38
- "@vaadin/a11y-base": "25.2.0-alpha10",
39
- "@vaadin/component-base": "25.2.0-alpha10",
40
- "@vaadin/field-base": "25.2.0-alpha10",
41
- "@vaadin/vaadin-themable-mixin": "25.2.0-alpha10",
38
+ "@vaadin/a11y-base": "25.2.0-alpha11",
39
+ "@vaadin/component-base": "25.2.0-alpha11",
40
+ "@vaadin/field-base": "25.2.0-alpha11",
41
+ "@vaadin/vaadin-themable-mixin": "25.2.0-alpha11",
42
42
  "lit": "^3.0.0"
43
43
  },
44
44
  "devDependencies": {
45
- "@vaadin/aura": "25.2.0-alpha10",
46
- "@vaadin/chai-plugins": "25.2.0-alpha10",
47
- "@vaadin/test-runner-commands": "25.2.0-alpha10",
45
+ "@vaadin/aura": "25.2.0-alpha11",
46
+ "@vaadin/chai-plugins": "25.2.0-alpha11",
47
+ "@vaadin/test-runner-commands": "25.2.0-alpha11",
48
48
  "@vaadin/testing-helpers": "^2.0.0",
49
- "@vaadin/vaadin-lumo-styles": "25.2.0-alpha10",
49
+ "@vaadin/vaadin-lumo-styles": "25.2.0-alpha11",
50
50
  "sinon": "^21.0.2"
51
51
  },
52
52
  "customElements": "custom-elements.json",
@@ -54,5 +54,5 @@
54
54
  "web-types.json",
55
55
  "web-types.lit.json"
56
56
  ],
57
- "gitHead": "1303b6a3eeecb44a9d26f2b53cb56d9e906febdf"
57
+ "gitHead": "fdc37e932709f95491a027aeb2090911cb7528c6"
58
58
  }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2021 - 2026 Vaadin Ltd.
3
+ * Copyright (c) 2017 - 2026 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import type { Constructor } from '@open-wc/dedupe-mixin';
@@ -13,13 +13,6 @@ import { LabelledInputController } from '@vaadin/field-base/src/labelled-input-c
13
13
 
14
14
  /**
15
15
  * A mixin providing common checkbox functionality.
16
- *
17
- * @polymerMixin
18
- * @mixes ActiveMixin
19
- * @mixes CheckedMixin
20
- * @mixes DelegateFocusMixin
21
- * @mixes FieldMixin
22
- * @mixes SlotStylesMixin
23
16
  */
24
17
  export const CheckboxMixin = (superclass) =>
25
18
  class CheckboxMixinClass extends SlotStylesMixin(
@@ -33,7 +26,6 @@ export const CheckboxMixin = (superclass) =>
33
26
  * The state is reset once the user switches the checkbox by hand.
34
27
  *
35
28
  * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox#Indeterminate_state_checkboxes
36
- *
37
29
  */
38
30
  indeterminate: {
39
31
  type: Boolean,
@@ -44,7 +36,6 @@ export const CheckboxMixin = (superclass) =>
44
36
 
45
37
  /**
46
38
  * The name of the checkbox.
47
- *
48
39
  */
49
40
  name: {
50
41
  type: String,
@@ -124,7 +115,7 @@ export const CheckboxMixin = (superclass) =>
124
115
  );
125
116
  this.addController(new LabelledInputController(this.inputElement, this._labelController));
126
117
 
127
- this._createMethodObserver('_checkedChanged(checked)');
118
+ this._createPropertyObserver('checked', '_checkedChanged');
128
119
  }
129
120
 
130
121
  /**
@@ -236,12 +227,10 @@ export const CheckboxMixin = (superclass) =>
236
227
  }
237
228
 
238
229
  /** @private */
239
- _checkedChanged(checked) {
240
- if (checked || this.__oldChecked) {
230
+ _checkedChanged(checked, oldChecked) {
231
+ if (checked || oldChecked) {
241
232
  this._requestValidation();
242
233
  }
243
-
244
- this.__oldChecked = checked;
245
234
  }
246
235
 
247
236
  /**
@@ -76,9 +76,6 @@ import { CheckboxMixin } from './vaadin-checkbox-mixin.js';
76
76
  *
77
77
  * @customElement vaadin-checkbox
78
78
  * @extends HTMLElement
79
- * @mixes CheckboxMixin
80
- * @mixes ThemableMixin
81
- * @mixes ElementMixin
82
79
  */
83
80
  export class Checkbox extends CheckboxMixin(ElementMixin(ThemableMixin(PolylitMixin(LumoInjectionMixin(LitElement))))) {
84
81
  static get is() {
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": "25.2.0-alpha10",
4
+ "version": "25.2.0-alpha11",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/checkbox",
4
- "version": "25.2.0-alpha10",
4
+ "version": "25.2.0-alpha11",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {