@vaadin/integer-field 23.1.0 → 23.2.0-alpha2
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.
|
|
3
|
+
"version": "23.2.0-alpha2",
|
|
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": "
|
|
37
|
-
"@vaadin/vaadin-lumo-styles": "
|
|
38
|
-
"@vaadin/vaadin-material-styles": "
|
|
36
|
+
"@vaadin/number-field": "23.2.0-alpha2",
|
|
37
|
+
"@vaadin/vaadin-lumo-styles": "23.2.0-alpha2",
|
|
38
|
+
"@vaadin/vaadin-material-styles": "23.2.0-alpha2"
|
|
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": "
|
|
45
|
+
"gitHead": "c9b8113d0fa9a602f8b9cb915c1826355af2e8df"
|
|
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
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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
|
/**
|