@vaadin/field-base 24.5.0-alpha1 → 24.5.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/README.md +1 -1
- package/package.json +7 -7
- package/src/input-control-mixin.js +1 -1
- package/src/input-controller.js +4 -1
- package/src/validate-mixin.d.ts +0 -8
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ A set of mixins and controllers used by Vaadin field components.
|
|
|
4
4
|
|
|
5
5
|
## Contributing
|
|
6
6
|
|
|
7
|
-
Read the [contributing guide](https://vaadin.com/docs/latest/contributing
|
|
7
|
+
Read the [contributing guide](https://vaadin.com/docs/latest/contributing) to learn about our development process, how to propose bugfixes and improvements, and how to test your changes to Vaadin components.
|
|
8
8
|
|
|
9
9
|
## License
|
|
10
10
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/field-base",
|
|
3
|
-
"version": "24.5.0-
|
|
3
|
+
"version": "24.5.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.5.0-
|
|
36
|
-
"@vaadin/component-base": "24.5.0-
|
|
35
|
+
"@vaadin/a11y-base": "24.5.0-alpha10",
|
|
36
|
+
"@vaadin/component-base": "24.5.0-alpha10",
|
|
37
37
|
"lit": "^3.0.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@
|
|
41
|
-
"@vaadin/testing-helpers": "^0.
|
|
42
|
-
"sinon": "^
|
|
40
|
+
"@vaadin/chai-plugins": "24.5.0-alpha10",
|
|
41
|
+
"@vaadin/testing-helpers": "^1.0.0",
|
|
42
|
+
"sinon": "^18.0.0"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "6f9c37308031af872a98017bfab4de89aeacda51"
|
|
45
45
|
}
|
|
@@ -189,7 +189,7 @@ export const InputControlMixin = (superclass) =>
|
|
|
189
189
|
_onKeyDown(event) {
|
|
190
190
|
super._onKeyDown(event);
|
|
191
191
|
|
|
192
|
-
if (this.allowedCharPattern && !this.__shouldAcceptKey(event)) {
|
|
192
|
+
if (this.allowedCharPattern && !this.__shouldAcceptKey(event) && event.target === this.inputElement) {
|
|
193
193
|
event.preventDefault();
|
|
194
194
|
this._markInputPrevented();
|
|
195
195
|
}
|
package/src/input-controller.js
CHANGED
|
@@ -9,7 +9,9 @@ import { SlotController } from '@vaadin/component-base/src/slot-controller.js';
|
|
|
9
9
|
* A controller to create and initialize slotted `<input>` element.
|
|
10
10
|
*/
|
|
11
11
|
export class InputController extends SlotController {
|
|
12
|
-
constructor(host, callback) {
|
|
12
|
+
constructor(host, callback, options = {}) {
|
|
13
|
+
const { uniqueIdPrefix } = options;
|
|
14
|
+
|
|
13
15
|
super(host, 'input', 'input', {
|
|
14
16
|
initializer: (node, host) => {
|
|
15
17
|
if (host.value) {
|
|
@@ -27,6 +29,7 @@ export class InputController extends SlotController {
|
|
|
27
29
|
}
|
|
28
30
|
},
|
|
29
31
|
useUniqueId: true,
|
|
32
|
+
uniqueIdPrefix,
|
|
30
33
|
});
|
|
31
34
|
}
|
|
32
35
|
}
|
package/src/validate-mixin.d.ts
CHANGED
|
@@ -30,12 +30,4 @@ export declare class ValidateMixinClass {
|
|
|
30
30
|
* Returns true if the field value satisfies all constraints (if any).
|
|
31
31
|
*/
|
|
32
32
|
checkValidity(): boolean;
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Fired whenever the field is validated.
|
|
36
|
-
*
|
|
37
|
-
* @event validated
|
|
38
|
-
* @param {Object} detail
|
|
39
|
-
* @param {boolean} detail.valid the result of the validation.
|
|
40
|
-
*/
|
|
41
33
|
}
|