@vaadin/field-base 24.3.0-alpha1 → 24.3.0-alpha10
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 +6 -6
- package/src/checked-mixin.js +0 -2
- package/src/clear-button-mixin.js +1 -1
- 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.3.0-
|
|
3
|
+
"version": "24.3.0-alpha10",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
34
34
|
"@polymer/polymer": "^3.0.0",
|
|
35
|
-
"@vaadin/a11y-base": "24.3.0-
|
|
36
|
-
"@vaadin/component-base": "24.3.0-
|
|
37
|
-
"lit": "^
|
|
35
|
+
"@vaadin/a11y-base": "24.3.0-alpha10",
|
|
36
|
+
"@vaadin/component-base": "24.3.0-alpha10",
|
|
37
|
+
"lit": "^3.0.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@esm-bundle/chai": "^4.3.4",
|
|
41
|
-
"@vaadin/testing-helpers": "^0.
|
|
41
|
+
"@vaadin/testing-helpers": "^0.6.0",
|
|
42
42
|
"sinon": "^13.0.2"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "0271523d93fe5df0425ff64206886614f3c6f401"
|
|
45
45
|
}
|
package/src/checked-mixin.js
CHANGED
|
@@ -103,7 +103,7 @@ export const ClearButtonMixin = (superclass) =>
|
|
|
103
103
|
* @protected
|
|
104
104
|
*/
|
|
105
105
|
_onClearAction() {
|
|
106
|
-
this.
|
|
106
|
+
this._inputElementValue = '';
|
|
107
107
|
// Note, according to the HTML spec, the native change event isn't composed
|
|
108
108
|
// while the input event is composed.
|
|
109
109
|
this.inputElement.dispatchEvent(new Event('input', { bubbles: true, composed: true }));
|
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
|
|