@vaadin/field-base 24.2.0-beta1 → 24.2.0-beta3
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 +4 -4
- package/src/checked-mixin.js +0 -2
- package/src/input-controller.js +1 -1
- package/src/input-mixin.d.ts +0 -9
- package/src/input-mixin.js +1 -15
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/field-base",
|
|
3
|
-
"version": "24.2.0-
|
|
3
|
+
"version": "24.2.0-beta3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
34
34
|
"@polymer/polymer": "^3.0.0",
|
|
35
|
-
"@vaadin/a11y-base": "24.2.0-
|
|
36
|
-
"@vaadin/component-base": "24.2.0-
|
|
35
|
+
"@vaadin/a11y-base": "24.2.0-beta3",
|
|
36
|
+
"@vaadin/component-base": "24.2.0-beta3",
|
|
37
37
|
"lit": "^2.0.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"@vaadin/testing-helpers": "^0.5.0",
|
|
42
42
|
"sinon": "^13.0.2"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "91ea11e7ad706065340acdb93b92316919ce5e69"
|
|
45
45
|
}
|
package/src/checked-mixin.js
CHANGED
package/src/input-controller.js
CHANGED
|
@@ -13,7 +13,7 @@ export class InputController extends SlotController {
|
|
|
13
13
|
super(host, 'input', 'input', {
|
|
14
14
|
initializer: (node, host) => {
|
|
15
15
|
if (host.value) {
|
|
16
|
-
node.
|
|
16
|
+
node.value = host.value;
|
|
17
17
|
}
|
|
18
18
|
if (host.type) {
|
|
19
19
|
node.setAttribute('type', host.type);
|
package/src/input-mixin.d.ts
CHANGED
|
@@ -28,15 +28,6 @@ export declare class InputMixinClass {
|
|
|
28
28
|
*/
|
|
29
29
|
value: string;
|
|
30
30
|
|
|
31
|
-
/**
|
|
32
|
-
* Whether the field is dirty.
|
|
33
|
-
*
|
|
34
|
-
* The field is automatically marked as dirty once the user triggers
|
|
35
|
-
* an `input` or `change` event. Additionally, the field can be manually
|
|
36
|
-
* marked as dirty by setting the property to `true`.
|
|
37
|
-
*/
|
|
38
|
-
dirty: boolean;
|
|
39
|
-
|
|
40
31
|
/**
|
|
41
32
|
* Indicates whether the value is different from the default one.
|
|
42
33
|
* Override if the `value` property has a type other than `string`.
|
package/src/input-mixin.js
CHANGED
|
@@ -54,19 +54,6 @@ export const InputMixin = dedupingMixin(
|
|
|
54
54
|
sync: true,
|
|
55
55
|
},
|
|
56
56
|
|
|
57
|
-
/**
|
|
58
|
-
* Whether the field is dirty.
|
|
59
|
-
*
|
|
60
|
-
* The field is automatically marked as dirty once the user triggers
|
|
61
|
-
* an `input` or `change` event. Additionally, the field can be manually
|
|
62
|
-
* marked as dirty by setting the property to `true`.
|
|
63
|
-
*/
|
|
64
|
-
dirty: {
|
|
65
|
-
type: Boolean,
|
|
66
|
-
value: false,
|
|
67
|
-
notify: true,
|
|
68
|
-
},
|
|
69
|
-
|
|
70
57
|
/**
|
|
71
58
|
* Whether the input element has a non-empty value.
|
|
72
59
|
*
|
|
@@ -208,7 +195,7 @@ export const InputMixin = dedupingMixin(
|
|
|
208
195
|
}
|
|
209
196
|
|
|
210
197
|
/**
|
|
211
|
-
* An input event listener used to update `_hasInputValue`
|
|
198
|
+
* An input event listener used to update `_hasInputValue` property.
|
|
212
199
|
* Do not override this method.
|
|
213
200
|
*
|
|
214
201
|
* @param {Event} event
|
|
@@ -216,7 +203,6 @@ export const InputMixin = dedupingMixin(
|
|
|
216
203
|
*/
|
|
217
204
|
__onInput(event) {
|
|
218
205
|
this._setHasInputValue(event);
|
|
219
|
-
this.dirty = true;
|
|
220
206
|
this._onInput(event);
|
|
221
207
|
}
|
|
222
208
|
|