@vaadin/number-field 25.0.0-alpha16 → 25.0.0-alpha17
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 +11 -11
- package/src/vaadin-number-field.d.ts +28 -7
- package/src/vaadin-number-field.js +26 -7
- package/web-types.json +2 -2
- package/web-types.lit.json +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/number-field",
|
|
3
|
-
"version": "25.0.0-
|
|
3
|
+
"version": "25.0.0-alpha17",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -34,23 +34,23 @@
|
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
37
|
-
"@vaadin/a11y-base": "25.0.0-
|
|
38
|
-
"@vaadin/component-base": "25.0.0-
|
|
39
|
-
"@vaadin/field-base": "25.0.0-
|
|
40
|
-
"@vaadin/input-container": "25.0.0-
|
|
41
|
-
"@vaadin/vaadin-themable-mixin": "25.0.0-
|
|
37
|
+
"@vaadin/a11y-base": "25.0.0-alpha17",
|
|
38
|
+
"@vaadin/component-base": "25.0.0-alpha17",
|
|
39
|
+
"@vaadin/field-base": "25.0.0-alpha17",
|
|
40
|
+
"@vaadin/input-container": "25.0.0-alpha17",
|
|
41
|
+
"@vaadin/vaadin-themable-mixin": "25.0.0-alpha17",
|
|
42
42
|
"lit": "^3.0.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@vaadin/chai-plugins": "25.0.0-
|
|
46
|
-
"@vaadin/test-runner-commands": "25.0.0-
|
|
45
|
+
"@vaadin/chai-plugins": "25.0.0-alpha17",
|
|
46
|
+
"@vaadin/test-runner-commands": "25.0.0-alpha17",
|
|
47
47
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
48
|
-
"@vaadin/vaadin-lumo-styles": "25.0.0-
|
|
49
|
-
"sinon": "^
|
|
48
|
+
"@vaadin/vaadin-lumo-styles": "25.0.0-alpha17",
|
|
49
|
+
"sinon": "^21.0.0"
|
|
50
50
|
},
|
|
51
51
|
"web-types": [
|
|
52
52
|
"web-types.json",
|
|
53
53
|
"web-types.lit.json"
|
|
54
54
|
],
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "8264c71309907be99368b09414f0f8d7f591e0b9"
|
|
56
56
|
}
|
|
@@ -57,18 +57,39 @@ export interface NumberFieldEventMap extends HTMLElementEventMap, NumberFieldCus
|
|
|
57
57
|
*
|
|
58
58
|
* ### Styling
|
|
59
59
|
*
|
|
60
|
-
*
|
|
61
|
-
* See [`<vaadin-text-field>`](#/elements/vaadin-text-field) for the styling documentation.
|
|
60
|
+
* The following shadow DOM parts are available for styling:
|
|
62
61
|
*
|
|
63
|
-
*
|
|
62
|
+
* Part name | Description
|
|
63
|
+
* ---------------------|----------------
|
|
64
|
+
* `label` | The label element
|
|
65
|
+
* `input-field` | The element that wraps prefix, value and suffix
|
|
66
|
+
* `clear-button` | The clear button
|
|
67
|
+
* `error-message` | The error message element
|
|
68
|
+
* `helper-text` | The helper text element wrapper
|
|
69
|
+
* `required-indicator` | The `required` state indicator element
|
|
70
|
+
* `increase-button` | Increase ("plus") button
|
|
71
|
+
* `decrease-button` | Decrease ("minus") button
|
|
64
72
|
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
73
|
+
* The following state attributes are available for styling:
|
|
74
|
+
*
|
|
75
|
+
* Attribute | Description
|
|
76
|
+
* ---------------------|---------------------------------
|
|
77
|
+
* `disabled` | Set when the element is disabled
|
|
78
|
+
* `has-value` | Set when the element has a value
|
|
79
|
+
* `has-label` | Set when the element has a label
|
|
80
|
+
* `has-helper` | Set when the element has helper text or slot
|
|
81
|
+
* `has-error-message` | Set when the element has an error message
|
|
82
|
+
* `has-tooltip` | Set when the element has a slotted tooltip
|
|
83
|
+
* `invalid` | Set when the element is invalid
|
|
84
|
+
* `input-prevented` | Temporarily set when invalid input is prevented
|
|
85
|
+
* `focused` | Set when the element is focused
|
|
86
|
+
* `focus-ring` | Set when the element is keyboard focused
|
|
87
|
+
* `readonly` | Set when the element is readonly
|
|
69
88
|
*
|
|
70
89
|
* Note, the `input-prevented` state attribute is only supported when `allowedCharPattern` is set.
|
|
71
90
|
*
|
|
91
|
+
* See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
|
|
92
|
+
*
|
|
72
93
|
* ### Change events
|
|
73
94
|
*
|
|
74
95
|
* Depending on the nature of the value change that the user attempts to commit e.g. by pressing Enter,
|
|
@@ -24,15 +24,34 @@ import { NumberFieldMixin } from './vaadin-number-field-mixin.js';
|
|
|
24
24
|
*
|
|
25
25
|
* ### Styling
|
|
26
26
|
*
|
|
27
|
-
*
|
|
28
|
-
* See [`<vaadin-text-field>`](#/elements/vaadin-text-field) for the styling documentation.
|
|
27
|
+
* The following shadow DOM parts are available for styling:
|
|
29
28
|
*
|
|
30
|
-
*
|
|
29
|
+
* Part name | Description
|
|
30
|
+
* ---------------------|----------------
|
|
31
|
+
* `label` | The label element
|
|
32
|
+
* `input-field` | The element that wraps prefix, value and suffix
|
|
33
|
+
* `clear-button` | The clear button
|
|
34
|
+
* `error-message` | The error message element
|
|
35
|
+
* `helper-text` | The helper text element wrapper
|
|
36
|
+
* `required-indicator` | The `required` state indicator element
|
|
37
|
+
* `increase-button` | Increase ("plus") button
|
|
38
|
+
* `decrease-button` | Decrease ("minus") button
|
|
31
39
|
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
40
|
+
* The following state attributes are available for styling:
|
|
41
|
+
*
|
|
42
|
+
* Attribute | Description
|
|
43
|
+
* ---------------------|---------------------------------
|
|
44
|
+
* `disabled` | Set when the element is disabled
|
|
45
|
+
* `has-value` | Set when the element has a value
|
|
46
|
+
* `has-label` | Set when the element has a label
|
|
47
|
+
* `has-helper` | Set when the element has helper text or slot
|
|
48
|
+
* `has-error-message` | Set when the element has an error message
|
|
49
|
+
* `has-tooltip` | Set when the element has a slotted tooltip
|
|
50
|
+
* `invalid` | Set when the element is invalid
|
|
51
|
+
* `input-prevented` | Temporarily set when invalid input is prevented
|
|
52
|
+
* `focused` | Set when the element is focused
|
|
53
|
+
* `focus-ring` | Set when the element is keyboard focused
|
|
54
|
+
* `readonly` | Set when the element is readonly
|
|
36
55
|
*
|
|
37
56
|
* Note, the `input-prevented` state attribute is only supported when `allowedCharPattern` is set.
|
|
38
57
|
*
|
package/web-types.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/number-field",
|
|
4
|
-
"version": "25.0.0-
|
|
4
|
+
"version": "25.0.0-alpha17",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
8
8
|
"elements": [
|
|
9
9
|
{
|
|
10
10
|
"name": "vaadin-number-field",
|
|
11
|
-
"description": "`<vaadin-number-field>` is an input field web component that only accepts numeric input.\n\n```html\n<vaadin-number-field label=\"Balance\"></vaadin-number-field>\n```\n\n### Styling\n\
|
|
11
|
+
"description": "`<vaadin-number-field>` is an input field web component that only accepts numeric input.\n\n```html\n<vaadin-number-field label=\"Balance\"></vaadin-number-field>\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n---------------------|----------------\n`label` | The label element\n`input-field` | The element that wraps prefix, value and suffix\n`clear-button` | The clear button\n`error-message` | The error message element\n`helper-text` | The helper text element wrapper\n`required-indicator` | The `required` state indicator element\n`increase-button` | Increase (\"plus\") button\n`decrease-button` | Decrease (\"minus\") button\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n---------------------|---------------------------------\n`disabled` | Set when the element is disabled\n`has-value` | Set when the element has a value\n`has-label` | Set when the element has a label\n`has-helper` | Set when the element has helper text or slot\n`has-error-message` | Set when the element has an error message\n`has-tooltip` | Set when the element has a slotted tooltip\n`invalid` | Set when the element is invalid\n`input-prevented` | Temporarily set when invalid input is prevented\n`focused` | Set when the element is focused\n`focus-ring` | Set when the element is keyboard focused\n`readonly` | Set when the element is readonly\n\nNote, the `input-prevented` state attribute is only supported when `allowedCharPattern` is set.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.\n\n### Change events\n\nDepending on the nature of the value change that the user attempts to commit e.g. by pressing Enter,\nthe component can fire either a `change` event or an `unparsable-change` event:\n\nValue change | Event\n:------------------------|:------------------\nempty => parsable | change\nempty => unparsable | unparsable-change\nparsable => empty | change\nparsable => parsable | change\nparsable => unparsable | change\nunparsable => empty | unparsable-change\nunparsable => parsable | change\nunparsable => unparsable | -\n\nNote, there is currently no way to detect unparsable => unparsable changes because the browser\ndoesn't provide access to unparsable values of native [type=number] inputs.",
|
|
12
12
|
"attributes": [
|
|
13
13
|
{
|
|
14
14
|
"name": "disabled",
|
package/web-types.lit.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/number-field",
|
|
4
|
-
"version": "25.0.0-
|
|
4
|
+
"version": "25.0.0-alpha17",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"framework": "lit",
|
|
7
7
|
"framework-config": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"elements": [
|
|
17
17
|
{
|
|
18
18
|
"name": "vaadin-number-field",
|
|
19
|
-
"description": "`<vaadin-number-field>` is an input field web component that only accepts numeric input.\n\n```html\n<vaadin-number-field label=\"Balance\"></vaadin-number-field>\n```\n\n### Styling\n\
|
|
19
|
+
"description": "`<vaadin-number-field>` is an input field web component that only accepts numeric input.\n\n```html\n<vaadin-number-field label=\"Balance\"></vaadin-number-field>\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n---------------------|----------------\n`label` | The label element\n`input-field` | The element that wraps prefix, value and suffix\n`clear-button` | The clear button\n`error-message` | The error message element\n`helper-text` | The helper text element wrapper\n`required-indicator` | The `required` state indicator element\n`increase-button` | Increase (\"plus\") button\n`decrease-button` | Decrease (\"minus\") button\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n---------------------|---------------------------------\n`disabled` | Set when the element is disabled\n`has-value` | Set when the element has a value\n`has-label` | Set when the element has a label\n`has-helper` | Set when the element has helper text or slot\n`has-error-message` | Set when the element has an error message\n`has-tooltip` | Set when the element has a slotted tooltip\n`invalid` | Set when the element is invalid\n`input-prevented` | Temporarily set when invalid input is prevented\n`focused` | Set when the element is focused\n`focus-ring` | Set when the element is keyboard focused\n`readonly` | Set when the element is readonly\n\nNote, the `input-prevented` state attribute is only supported when `allowedCharPattern` is set.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.\n\n### Change events\n\nDepending on the nature of the value change that the user attempts to commit e.g. by pressing Enter,\nthe component can fire either a `change` event or an `unparsable-change` event:\n\nValue change | Event\n:------------------------|:------------------\nempty => parsable | change\nempty => unparsable | unparsable-change\nparsable => empty | change\nparsable => parsable | change\nparsable => unparsable | change\nunparsable => empty | unparsable-change\nunparsable => parsable | change\nunparsable => unparsable | -\n\nNote, there is currently no way to detect unparsable => unparsable changes because the browser\ndoesn't provide access to unparsable values of native [type=number] inputs.",
|
|
20
20
|
"extension": true,
|
|
21
21
|
"attributes": [
|
|
22
22
|
{
|