@vaadin/custom-field 24.4.10 → 24.4.11
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 +18 -18
- package/src/vaadin-custom-field-mixin.js +17 -2
- package/web-types.json +3 -3
- package/web-types.lit.json +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/custom-field",
|
|
3
|
-
"version": "24.4.
|
|
3
|
+
"version": "24.4.11",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -38,32 +38,32 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
40
40
|
"@polymer/polymer": "^3.0.0",
|
|
41
|
-
"@vaadin/a11y-base": "~24.4.
|
|
42
|
-
"@vaadin/component-base": "~24.4.
|
|
43
|
-
"@vaadin/field-base": "~24.4.
|
|
44
|
-
"@vaadin/vaadin-lumo-styles": "~24.4.
|
|
45
|
-
"@vaadin/vaadin-material-styles": "~24.4.
|
|
46
|
-
"@vaadin/vaadin-themable-mixin": "~24.4.
|
|
41
|
+
"@vaadin/a11y-base": "~24.4.11",
|
|
42
|
+
"@vaadin/component-base": "~24.4.11",
|
|
43
|
+
"@vaadin/field-base": "~24.4.11",
|
|
44
|
+
"@vaadin/vaadin-lumo-styles": "~24.4.11",
|
|
45
|
+
"@vaadin/vaadin-material-styles": "~24.4.11",
|
|
46
|
+
"@vaadin/vaadin-themable-mixin": "~24.4.11",
|
|
47
47
|
"lit": "^3.0.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@esm-bundle/chai": "^4.3.4",
|
|
51
|
-
"@vaadin/combo-box": "~24.4.
|
|
52
|
-
"@vaadin/date-picker": "~24.4.
|
|
53
|
-
"@vaadin/email-field": "~24.4.
|
|
54
|
-
"@vaadin/form-layout": "~24.4.
|
|
55
|
-
"@vaadin/number-field": "~24.4.
|
|
56
|
-
"@vaadin/password-field": "~24.4.
|
|
57
|
-
"@vaadin/select": "~24.4.
|
|
51
|
+
"@vaadin/combo-box": "~24.4.11",
|
|
52
|
+
"@vaadin/date-picker": "~24.4.11",
|
|
53
|
+
"@vaadin/email-field": "~24.4.11",
|
|
54
|
+
"@vaadin/form-layout": "~24.4.11",
|
|
55
|
+
"@vaadin/number-field": "~24.4.11",
|
|
56
|
+
"@vaadin/password-field": "~24.4.11",
|
|
57
|
+
"@vaadin/select": "~24.4.11",
|
|
58
58
|
"@vaadin/testing-helpers": "^0.6.0",
|
|
59
|
-
"@vaadin/text-area": "~24.4.
|
|
60
|
-
"@vaadin/text-field": "~24.4.
|
|
61
|
-
"@vaadin/time-picker": "~24.4.
|
|
59
|
+
"@vaadin/text-area": "~24.4.11",
|
|
60
|
+
"@vaadin/text-field": "~24.4.11",
|
|
61
|
+
"@vaadin/time-picker": "~24.4.11",
|
|
62
62
|
"sinon": "^13.0.2"
|
|
63
63
|
},
|
|
64
64
|
"web-types": [
|
|
65
65
|
"web-types.json",
|
|
66
66
|
"web-types.lit.json"
|
|
67
67
|
],
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "1312f60a4bb0b3158428171271fb5c0d88a1b61e"
|
|
69
69
|
}
|
|
@@ -190,6 +190,21 @@ export const CustomFieldMixin = (superClass) =>
|
|
|
190
190
|
return true;
|
|
191
191
|
}
|
|
192
192
|
|
|
193
|
+
/**
|
|
194
|
+
* Override an observer from `FieldMixin`
|
|
195
|
+
* to validate when required is removed.
|
|
196
|
+
*
|
|
197
|
+
* @protected
|
|
198
|
+
* @override
|
|
199
|
+
*/
|
|
200
|
+
_requiredChanged(required) {
|
|
201
|
+
super._requiredChanged(required);
|
|
202
|
+
|
|
203
|
+
if (required === false) {
|
|
204
|
+
this.validate();
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
193
208
|
/**
|
|
194
209
|
* @param {KeyboardEvent} e
|
|
195
210
|
* @protected
|
|
@@ -259,12 +274,12 @@ export const CustomFieldMixin = (superClass) =>
|
|
|
259
274
|
|
|
260
275
|
/** @private */
|
|
261
276
|
__valueChanged(value, oldValue) {
|
|
277
|
+
this.__toggleHasValue(value);
|
|
278
|
+
|
|
262
279
|
if (this.__settingValue || !this.inputs) {
|
|
263
280
|
return;
|
|
264
281
|
}
|
|
265
282
|
|
|
266
|
-
this.__toggleHasValue(value);
|
|
267
|
-
|
|
268
283
|
const parseFn = this.parseValue || defaultParseValue;
|
|
269
284
|
const valuesArray = parseFn.apply(this, [value]);
|
|
270
285
|
if (!valuesArray || valuesArray.length === 0) {
|
package/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/custom-field",
|
|
4
|
-
"version": "24.4.
|
|
4
|
+
"version": "24.4.11",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
},
|
|
101
101
|
{
|
|
102
102
|
"name": "value",
|
|
103
|
-
"description": "The value of the field. When wrapping several inputs, it will contain `\\t`\n(Tab character) as a delimiter indicating parts intended to be used as the\ncorresponding inputs values.\nUse the [`formatValue`](https://cdn.vaadin.com/vaadin-web-components/24.4.
|
|
103
|
+
"description": "The value of the field. When wrapping several inputs, it will contain `\\t`\n(Tab character) as a delimiter indicating parts intended to be used as the\ncorresponding inputs values.\nUse the [`formatValue`](https://cdn.vaadin.com/vaadin-web-components/24.4.11/#/elements/vaadin-custom-field#property-formatValue)\nand [`parseValue`](https://cdn.vaadin.com/vaadin-web-components/24.4.11/#/elements/vaadin-custom-field#property-parseValue)\nproperties to customize this behavior.",
|
|
104
104
|
"value": {
|
|
105
105
|
"type": [
|
|
106
106
|
"string",
|
|
@@ -213,7 +213,7 @@
|
|
|
213
213
|
},
|
|
214
214
|
{
|
|
215
215
|
"name": "value",
|
|
216
|
-
"description": "The value of the field. When wrapping several inputs, it will contain `\\t`\n(Tab character) as a delimiter indicating parts intended to be used as the\ncorresponding inputs values.\nUse the [`formatValue`](https://cdn.vaadin.com/vaadin-web-components/24.4.
|
|
216
|
+
"description": "The value of the field. When wrapping several inputs, it will contain `\\t`\n(Tab character) as a delimiter indicating parts intended to be used as the\ncorresponding inputs values.\nUse the [`formatValue`](https://cdn.vaadin.com/vaadin-web-components/24.4.11/#/elements/vaadin-custom-field#property-formatValue)\nand [`parseValue`](https://cdn.vaadin.com/vaadin-web-components/24.4.11/#/elements/vaadin-custom-field#property-parseValue)\nproperties to customize this behavior.",
|
|
217
217
|
"value": {
|
|
218
218
|
"type": [
|
|
219
219
|
"string",
|
package/web-types.lit.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/custom-field",
|
|
4
|
-
"version": "24.4.
|
|
4
|
+
"version": "24.4.11",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"framework": "lit",
|
|
7
7
|
"framework-config": {
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
},
|
|
78
78
|
{
|
|
79
79
|
"name": ".value",
|
|
80
|
-
"description": "The value of the field. When wrapping several inputs, it will contain `\\t`\n(Tab character) as a delimiter indicating parts intended to be used as the\ncorresponding inputs values.\nUse the [`formatValue`](https://cdn.vaadin.com/vaadin-web-components/24.4.
|
|
80
|
+
"description": "The value of the field. When wrapping several inputs, it will contain `\\t`\n(Tab character) as a delimiter indicating parts intended to be used as the\ncorresponding inputs values.\nUse the [`formatValue`](https://cdn.vaadin.com/vaadin-web-components/24.4.11/#/elements/vaadin-custom-field#property-formatValue)\nand [`parseValue`](https://cdn.vaadin.com/vaadin-web-components/24.4.11/#/elements/vaadin-custom-field#property-parseValue)\nproperties to customize this behavior.",
|
|
81
81
|
"value": {
|
|
82
82
|
"kind": "expression"
|
|
83
83
|
}
|