@vaadin/checkbox 24.6.0-alpha6 → 24.6.0-alpha8

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.6.0-alpha6",
3
+ "version": "24.6.0-alpha8",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -37,16 +37,16 @@
37
37
  "dependencies": {
38
38
  "@open-wc/dedupe-mixin": "^1.3.0",
39
39
  "@polymer/polymer": "^3.0.0",
40
- "@vaadin/a11y-base": "24.6.0-alpha6",
41
- "@vaadin/component-base": "24.6.0-alpha6",
42
- "@vaadin/field-base": "24.6.0-alpha6",
43
- "@vaadin/vaadin-lumo-styles": "24.6.0-alpha6",
44
- "@vaadin/vaadin-material-styles": "24.6.0-alpha6",
45
- "@vaadin/vaadin-themable-mixin": "24.6.0-alpha6",
40
+ "@vaadin/a11y-base": "24.6.0-alpha8",
41
+ "@vaadin/component-base": "24.6.0-alpha8",
42
+ "@vaadin/field-base": "24.6.0-alpha8",
43
+ "@vaadin/vaadin-lumo-styles": "24.6.0-alpha8",
44
+ "@vaadin/vaadin-material-styles": "24.6.0-alpha8",
45
+ "@vaadin/vaadin-themable-mixin": "24.6.0-alpha8",
46
46
  "lit": "^3.0.0"
47
47
  },
48
48
  "devDependencies": {
49
- "@vaadin/chai-plugins": "24.6.0-alpha6",
49
+ "@vaadin/chai-plugins": "24.6.0-alpha8",
50
50
  "@vaadin/testing-helpers": "^1.0.0",
51
51
  "sinon": "^18.0.0"
52
52
  },
@@ -54,5 +54,5 @@
54
54
  "web-types.json",
55
55
  "web-types.lit.json"
56
56
  ],
57
- "gitHead": "53f2f0c6cb9324a832ee7c0a052db927e151e167"
57
+ "gitHead": "a11e1510c4caa08775b202714f5fc1198c22132a"
58
58
  }
@@ -222,14 +222,14 @@ export const CheckboxMixin = (superclass) =>
222
222
  // Do not validate when focusout is caused by document
223
223
  // losing focus, which happens on browser tab switch.
224
224
  if (!focused && document.hasFocus()) {
225
- this.validate();
225
+ this._requestValidation();
226
226
  }
227
227
  }
228
228
 
229
229
  /** @private */
230
230
  _checkedChanged(checked) {
231
231
  if (checked || this.__oldChecked) {
232
- this.validate();
232
+ this._requestValidation();
233
233
  }
234
234
 
235
235
  this.__oldChecked = checked;
@@ -246,7 +246,7 @@ export const CheckboxMixin = (superclass) =>
246
246
  super._requiredChanged(required);
247
247
 
248
248
  if (required === false) {
249
- this.validate();
249
+ this._requestValidation();
250
250
  }
251
251
  }
252
252
 
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.6.0-alpha6",
4
+ "version": "24.6.0-alpha8",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -74,6 +74,17 @@
74
74
  ]
75
75
  }
76
76
  },
77
+ {
78
+ "name": "manual-validation",
79
+ "description": "Set to true to enable manual validation mode. This mode disables automatic\nconstraint validation, allowing you to control the validation process yourself.\nYou can still trigger constraint validation manually with the `validate()` method\nor use `checkValidity()` to assess the component's validity without affecting\nthe invalid state. In manual validation mode, you can also manipulate\nthe `invalid` property directly through your application logic without conflicts\nwith the component's internal validation.",
80
+ "value": {
81
+ "type": [
82
+ "boolean",
83
+ "null",
84
+ "undefined"
85
+ ]
86
+ }
87
+ },
77
88
  {
78
89
  "name": "required",
79
90
  "description": "Specifies that the user must fill in a value.",
@@ -236,6 +247,17 @@
236
247
  ]
237
248
  }
238
249
  },
250
+ {
251
+ "name": "manualValidation",
252
+ "description": "Set to true to enable manual validation mode. This mode disables automatic\nconstraint validation, allowing you to control the validation process yourself.\nYou can still trigger constraint validation manually with the `validate()` method\nor use `checkValidity()` to assess the component's validity without affecting\nthe invalid state. In manual validation mode, you can also manipulate\nthe `invalid` property directly through your application logic without conflicts\nwith the component's internal validation.",
253
+ "value": {
254
+ "type": [
255
+ "boolean",
256
+ "null",
257
+ "undefined"
258
+ ]
259
+ }
260
+ },
239
261
  {
240
262
  "name": "required",
241
263
  "description": "Specifies that the user must fill in a value.",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/checkbox",
4
- "version": "24.6.0-alpha6",
4
+ "version": "24.6.0-alpha8",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {
@@ -47,6 +47,13 @@
47
47
  "kind": "expression"
48
48
  }
49
49
  },
50
+ {
51
+ "name": "?manualValidation",
52
+ "description": "Set to true to enable manual validation mode. This mode disables automatic\nconstraint validation, allowing you to control the validation process yourself.\nYou can still trigger constraint validation manually with the `validate()` method\nor use `checkValidity()` to assess the component's validity without affecting\nthe invalid state. In manual validation mode, you can also manipulate\nthe `invalid` property directly through your application logic without conflicts\nwith the component's internal validation.",
53
+ "value": {
54
+ "kind": "expression"
55
+ }
56
+ },
50
57
  {
51
58
  "name": "?required",
52
59
  "description": "Specifies that the user must fill in a value.",