@vaadin/field-base 24.5.0-alpha1 → 24.5.0-alpha11

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 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/overview) to learn about our development process, how to propose bugfixes and improvements, and how to test your changes to Vaadin components.
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-alpha1",
3
+ "version": "24.5.0-alpha11",
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-alpha1",
36
- "@vaadin/component-base": "24.5.0-alpha1",
35
+ "@vaadin/a11y-base": "24.5.0-alpha11",
36
+ "@vaadin/component-base": "24.5.0-alpha11",
37
37
  "lit": "^3.0.0"
38
38
  },
39
39
  "devDependencies": {
40
- "@esm-bundle/chai": "^4.3.4",
41
- "@vaadin/testing-helpers": "^0.6.0",
42
- "sinon": "^13.0.2"
40
+ "@vaadin/chai-plugins": "24.5.0-alpha11",
41
+ "@vaadin/testing-helpers": "^1.0.0",
42
+ "sinon": "^18.0.0"
43
43
  },
44
- "gitHead": "57806caac5468532a3b4e3dbdda730cd0fca193a"
44
+ "gitHead": "8426cea2803a10db518fc85752eeea4c5c755687"
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
  }
@@ -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
  }
@@ -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
  }