@vaadin/integer-field 23.1.0 → 23.2.0-dev.53560527d

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/integer-field",
3
- "version": "23.1.0",
3
+ "version": "23.2.0-dev.53560527d",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -33,14 +33,14 @@
33
33
  ],
34
34
  "dependencies": {
35
35
  "@polymer/polymer": "^3.0.0",
36
- "@vaadin/number-field": "^23.1.0",
37
- "@vaadin/vaadin-lumo-styles": "^23.1.0",
38
- "@vaadin/vaadin-material-styles": "^23.1.0"
36
+ "@vaadin/number-field": "23.2.0-dev.53560527d",
37
+ "@vaadin/vaadin-lumo-styles": "23.2.0-dev.53560527d",
38
+ "@vaadin/vaadin-material-styles": "23.2.0-dev.53560527d"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@esm-bundle/chai": "^4.3.4",
42
42
  "@vaadin/testing-helpers": "^0.3.2",
43
43
  "sinon": "^13.0.2"
44
44
  },
45
- "gitHead": "322bba42b83f908a78cd972b06acadc5da95a69d"
45
+ "gitHead": "6c5c18369b09e22e76365d8a8a5e4bbb220f969b"
46
46
  }
@@ -51,8 +51,6 @@ export interface IntegerFieldEventMap extends HTMLElementEventMap, IntegerFieldC
51
51
  * `increase-button` | Increase ("plus") button
52
52
  * `decrease-button` | Decrease ("minus") button
53
53
  *
54
- * Note, the `input-prevented` state attribute is not supported by `<vaadin-integer-field>`.
55
- *
56
54
  * See [Styling Components](https://vaadin.com/docs/latest/ds/customization/styling-components) documentation.
57
55
  *
58
56
  * @fires {Event} input - Fired when the value is changed by the user: on every typing keystroke, and the value is cleared using the clear button.
@@ -24,8 +24,6 @@ import { NumberField } from '@vaadin/number-field/src/vaadin-number-field.js';
24
24
  * `increase-button` | Increase ("plus") button
25
25
  * `decrease-button` | Decrease ("minus") button
26
26
  *
27
- * Note, the `input-prevented` state attribute is not supported by `<vaadin-integer-field>`.
28
- *
29
27
  * See [Styling Components](https://vaadin.com/docs/latest/ds/customization/styling-components) documentation.
30
28
  *
31
29
  * @fires {Event} input - Fired when the value is changed by the user: on every typing keystroke, and the value is cleared using the clear button.
@@ -40,23 +38,10 @@ export class IntegerField extends NumberField {
40
38
  return 'vaadin-integer-field';
41
39
  }
42
40
 
43
- static get properties() {
44
- return {
45
- /**
46
- * A pattern matched against individual characters the user inputs.
47
- * When set, the field will prevent:
48
- * - `keyDown` events if the entered key doesn't match `/^_enabledCharPattern$/`
49
- * - `paste` events if the pasted text doesn't match `/^_enabledCharPattern*$/`
50
- * - `drop` events if the dropped text doesn't match `/^_enabledCharPattern*$/`
51
- *
52
- * For example, to enable entering only numbers and minus signs,
53
- * `_enabledCharPattern = "[\\d-]"`
54
- * @protected
55
- */
56
- _enabledCharPattern: {
57
- value: '[-+\\d]',
58
- },
59
- };
41
+ constructor() {
42
+ super();
43
+
44
+ this.allowedCharPattern = '[-+\\d]';
60
45
  }
61
46
 
62
47
  /**