@vaadin/integer-field 25.0.0-alpha9 → 25.0.0-beta2
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 +8 -9
- package/src/vaadin-integer-field.d.ts +27 -7
- package/src/vaadin-integer-field.js +28 -8
- package/vaadin-integer-field.js +1 -1
- package/web-types.json +2 -2
- package/web-types.lit.json +2 -2
- package/theme/lumo/vaadin-integer-field.d.ts +0 -7
- package/theme/lumo/vaadin-integer-field.js +0 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/integer-field",
|
|
3
|
-
"version": "25.0.0-
|
|
3
|
+
"version": "25.0.0-beta2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -21,7 +21,6 @@
|
|
|
21
21
|
"type": "module",
|
|
22
22
|
"files": [
|
|
23
23
|
"src",
|
|
24
|
-
"theme",
|
|
25
24
|
"vaadin-*.d.ts",
|
|
26
25
|
"vaadin-*.js",
|
|
27
26
|
"web-types.json",
|
|
@@ -34,19 +33,19 @@
|
|
|
34
33
|
"web-component"
|
|
35
34
|
],
|
|
36
35
|
"dependencies": {
|
|
37
|
-
"@vaadin/component-base": "25.0.0-
|
|
38
|
-
"@vaadin/number-field": "25.0.0-
|
|
39
|
-
"@vaadin/vaadin-lumo-styles": "25.0.0-alpha9"
|
|
36
|
+
"@vaadin/component-base": "25.0.0-beta2",
|
|
37
|
+
"@vaadin/number-field": "25.0.0-beta2"
|
|
40
38
|
},
|
|
41
39
|
"devDependencies": {
|
|
42
|
-
"@vaadin/chai-plugins": "25.0.0-
|
|
43
|
-
"@vaadin/test-runner-commands": "25.0.0-
|
|
40
|
+
"@vaadin/chai-plugins": "25.0.0-beta2",
|
|
41
|
+
"@vaadin/test-runner-commands": "25.0.0-beta2",
|
|
44
42
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
45
|
-
"
|
|
43
|
+
"@vaadin/vaadin-lumo-styles": "25.0.0-beta2",
|
|
44
|
+
"sinon": "^21.0.0"
|
|
46
45
|
},
|
|
47
46
|
"web-types": [
|
|
48
47
|
"web-types.json",
|
|
49
48
|
"web-types.lit.json"
|
|
50
49
|
],
|
|
51
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "e078f8371ae266f05c7ca1ec25686cc489c83f24"
|
|
52
51
|
}
|
|
@@ -55,15 +55,35 @@ export interface IntegerFieldEventMap extends HTMLElementEventMap, IntegerFieldC
|
|
|
55
55
|
*
|
|
56
56
|
* ### Styling
|
|
57
57
|
*
|
|
58
|
-
*
|
|
59
|
-
* See [`<vaadin-text-field>`](#/elements/vaadin-text-field) for the styling documentation.
|
|
58
|
+
* The following shadow DOM parts are available for styling:
|
|
60
59
|
*
|
|
61
|
-
*
|
|
60
|
+
* Part name | Description
|
|
61
|
+
* ---------------------|----------------
|
|
62
|
+
* `label` | The label element
|
|
63
|
+
* `input-field` | The element that wraps prefix, value and suffix
|
|
64
|
+
* `field-button` | Set on clear, decrease and increase buttons
|
|
65
|
+
* `clear-button` | The clear button
|
|
66
|
+
* `error-message` | The error message element
|
|
67
|
+
* `helper-text` | The helper text element wrapper
|
|
68
|
+
* `required-indicator` | The `required` state indicator element
|
|
69
|
+
* `increase-button` | Increase ("plus") button
|
|
70
|
+
* `decrease-button` | Decrease ("minus") button
|
|
62
71
|
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
72
|
+
* The following state attributes are available for styling:
|
|
73
|
+
*
|
|
74
|
+
* Attribute | Description
|
|
75
|
+
* ---------------------|---------------------------------
|
|
76
|
+
* `disabled` | Set when the element is disabled
|
|
77
|
+
* `has-value` | Set when the element has a value
|
|
78
|
+
* `has-label` | Set when the element has a label
|
|
79
|
+
* `has-helper` | Set when the element has helper text or slot
|
|
80
|
+
* `has-error-message` | Set when the element has an error message
|
|
81
|
+
* `has-tooltip` | Set when the element has a slotted tooltip
|
|
82
|
+
* `invalid` | Set when the element is invalid
|
|
83
|
+
* `input-prevented` | Temporarily set when invalid input is prevented
|
|
84
|
+
* `focused` | Set when the element is focused
|
|
85
|
+
* `focus-ring` | Set when the element is keyboard focused
|
|
86
|
+
* `readonly` | Set when the element is readonly
|
|
67
87
|
*
|
|
68
88
|
* See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
|
|
69
89
|
*
|
|
@@ -15,15 +15,35 @@ import { NumberField } from '@vaadin/number-field/src/vaadin-number-field.js';
|
|
|
15
15
|
*
|
|
16
16
|
* ### Styling
|
|
17
17
|
*
|
|
18
|
-
*
|
|
19
|
-
* See [`<vaadin-text-field>`](#/elements/vaadin-text-field) for the styling documentation.
|
|
18
|
+
* The following shadow DOM parts are available for styling:
|
|
20
19
|
*
|
|
21
|
-
*
|
|
20
|
+
* Part name | Description
|
|
21
|
+
* ---------------------|----------------
|
|
22
|
+
* `label` | The label element
|
|
23
|
+
* `input-field` | The element that wraps prefix, value and suffix
|
|
24
|
+
* `field-button` | Set on clear, decrease and increase buttons
|
|
25
|
+
* `clear-button` | The clear button
|
|
26
|
+
* `error-message` | The error message element
|
|
27
|
+
* `helper-text` | The helper text element wrapper
|
|
28
|
+
* `required-indicator` | The `required` state indicator element
|
|
29
|
+
* `increase-button` | Increase ("plus") button
|
|
30
|
+
* `decrease-button` | Decrease ("minus") button
|
|
22
31
|
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
32
|
+
* The following state attributes are available for styling:
|
|
33
|
+
*
|
|
34
|
+
* Attribute | Description
|
|
35
|
+
* ---------------------|---------------------------------
|
|
36
|
+
* `disabled` | Set when the element is disabled
|
|
37
|
+
* `has-value` | Set when the element has a value
|
|
38
|
+
* `has-label` | Set when the element has a label
|
|
39
|
+
* `has-helper` | Set when the element has helper text or slot
|
|
40
|
+
* `has-error-message` | Set when the element has an error message
|
|
41
|
+
* `has-tooltip` | Set when the element has a slotted tooltip
|
|
42
|
+
* `invalid` | Set when the element is invalid
|
|
43
|
+
* `input-prevented` | Temporarily set when invalid input is prevented
|
|
44
|
+
* `focused` | Set when the element is focused
|
|
45
|
+
* `focus-ring` | Set when the element is keyboard focused
|
|
46
|
+
* `readonly` | Set when the element is readonly
|
|
27
47
|
*
|
|
28
48
|
* See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
|
|
29
49
|
*
|
|
@@ -87,7 +107,7 @@ export class IntegerField extends NumberField {
|
|
|
87
107
|
/**
|
|
88
108
|
* Override an observer from `NumberField` to reset the step
|
|
89
109
|
* property when an invalid step is set.
|
|
90
|
-
* @param {number}
|
|
110
|
+
* @param {number} step
|
|
91
111
|
* @param {HTMLElement | undefined} inputElement
|
|
92
112
|
* @protected
|
|
93
113
|
* @override
|
package/vaadin-integer-field.js
CHANGED
package/web-types.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/integer-field",
|
|
4
|
-
"version": "25.0.0-
|
|
4
|
+
"version": "25.0.0-beta2",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
8
8
|
"elements": [
|
|
9
9
|
{
|
|
10
10
|
"name": "vaadin-integer-field",
|
|
11
|
-
"description": "`<vaadin-integer-field>` is an input field web component that only accepts entering integer numbers.\n\n```html\n<vaadin-integer-field label=\"X\"></vaadin-integer-field>\n```\n\n### Styling\n\
|
|
11
|
+
"description": "`<vaadin-integer-field>` is an input field web component that only accepts entering integer numbers.\n\n```html\n<vaadin-integer-field label=\"X\"></vaadin-integer-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`field-button` | Set on clear, decrease and increase buttons\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\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/integer-field",
|
|
4
|
-
"version": "25.0.0-
|
|
4
|
+
"version": "25.0.0-beta2",
|
|
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-integer-field",
|
|
19
|
-
"description": "`<vaadin-integer-field>` is an input field web component that only accepts entering integer numbers.\n\n```html\n<vaadin-integer-field label=\"X\"></vaadin-integer-field>\n```\n\n### Styling\n\
|
|
19
|
+
"description": "`<vaadin-integer-field>` is an input field web component that only accepts entering integer numbers.\n\n```html\n<vaadin-integer-field label=\"X\"></vaadin-integer-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`field-button` | Set on clear, decrease and increase buttons\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\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
|
{
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright (c) 2021 - 2025 Vaadin Ltd.
|
|
4
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
|
-
*/
|
|
6
|
-
import '@vaadin/number-field/theme/lumo/vaadin-number-field.js';
|
|
7
|
-
import '../../src/vaadin-integer-field.js';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright (c) 2021 - 2025 Vaadin Ltd.
|
|
4
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
|
-
*/
|
|
6
|
-
import '@vaadin/number-field/theme/lumo/vaadin-number-field.js';
|
|
7
|
-
import '../../src/vaadin-integer-field.js';
|