@vaadin/text-field 24.9.0-alpha2 → 24.9.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 +11 -11
- package/src/vaadin-text-field.d.ts +15 -12
- package/src/vaadin-text-field.js +15 -12
- 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/text-field",
|
|
3
|
-
"version": "24.9.0-
|
|
3
|
+
"version": "24.9.0-beta2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -36,18 +36,18 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
38
38
|
"@polymer/polymer": "^3.0.0",
|
|
39
|
-
"@vaadin/a11y-base": "24.9.0-
|
|
40
|
-
"@vaadin/component-base": "24.9.0-
|
|
41
|
-
"@vaadin/field-base": "24.9.0-
|
|
42
|
-
"@vaadin/input-container": "24.9.0-
|
|
43
|
-
"@vaadin/vaadin-lumo-styles": "24.9.0-
|
|
44
|
-
"@vaadin/vaadin-material-styles": "24.9.0-
|
|
45
|
-
"@vaadin/vaadin-themable-mixin": "24.9.0-
|
|
39
|
+
"@vaadin/a11y-base": "24.9.0-beta2",
|
|
40
|
+
"@vaadin/component-base": "24.9.0-beta2",
|
|
41
|
+
"@vaadin/field-base": "24.9.0-beta2",
|
|
42
|
+
"@vaadin/input-container": "24.9.0-beta2",
|
|
43
|
+
"@vaadin/vaadin-lumo-styles": "24.9.0-beta2",
|
|
44
|
+
"@vaadin/vaadin-material-styles": "24.9.0-beta2",
|
|
45
|
+
"@vaadin/vaadin-themable-mixin": "24.9.0-beta2",
|
|
46
46
|
"lit": "^3.0.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@vaadin/chai-plugins": "24.9.0-
|
|
50
|
-
"@vaadin/test-runner-commands": "24.9.0-
|
|
49
|
+
"@vaadin/chai-plugins": "24.9.0-beta2",
|
|
50
|
+
"@vaadin/test-runner-commands": "24.9.0-beta2",
|
|
51
51
|
"@vaadin/testing-helpers": "^1.1.0",
|
|
52
52
|
"sinon": "^18.0.0"
|
|
53
53
|
},
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"web-types.json",
|
|
56
56
|
"web-types.lit.json"
|
|
57
57
|
],
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "cf8def153fcf724b305f9ad823dc9af27e31ad07"
|
|
59
59
|
}
|
|
@@ -83,18 +83,21 @@ export interface TextFieldEventMap extends HTMLElementEventMap, TextFieldCustomE
|
|
|
83
83
|
*
|
|
84
84
|
* The following state attributes are available for styling:
|
|
85
85
|
*
|
|
86
|
-
* Attribute
|
|
87
|
-
*
|
|
88
|
-
* `disabled`
|
|
89
|
-
* `has-value`
|
|
90
|
-
* `has-label`
|
|
91
|
-
* `has-helper`
|
|
92
|
-
* `has-error-message`
|
|
93
|
-
* `
|
|
94
|
-
* `
|
|
95
|
-
* `
|
|
96
|
-
* `
|
|
97
|
-
* `
|
|
86
|
+
* Attribute | Description
|
|
87
|
+
* ---------------------|---------------------------------
|
|
88
|
+
* `disabled` | Set when the element is disabled
|
|
89
|
+
* `has-value` | Set when the element has a value
|
|
90
|
+
* `has-label` | Set when the element has a label
|
|
91
|
+
* `has-helper` | Set when the element has helper text or slot
|
|
92
|
+
* `has-error-message` | Set when the element has an error message
|
|
93
|
+
* `has-tooltip` | Set when the element has a slotted tooltip
|
|
94
|
+
* `invalid` | Set when the element is invalid
|
|
95
|
+
* `input-prevented` | Temporarily set when invalid input is prevented
|
|
96
|
+
* `focused` | Set when the element is focused
|
|
97
|
+
* `focus-ring` | Set when the element is keyboard focused
|
|
98
|
+
* `readonly` | Set when the element is readonly
|
|
99
|
+
*
|
|
100
|
+
* Note, the `input-prevented` state attribute is only supported when `allowedCharPattern` is set.
|
|
98
101
|
*
|
|
99
102
|
* See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
|
|
100
103
|
*
|
package/src/vaadin-text-field.js
CHANGED
|
@@ -56,18 +56,21 @@ registerStyles('vaadin-text-field', inputFieldShared, { moduleId: 'vaadin-text-f
|
|
|
56
56
|
*
|
|
57
57
|
* The following state attributes are available for styling:
|
|
58
58
|
*
|
|
59
|
-
* Attribute
|
|
60
|
-
*
|
|
61
|
-
* `disabled`
|
|
62
|
-
* `has-value`
|
|
63
|
-
* `has-label`
|
|
64
|
-
* `has-helper`
|
|
65
|
-
* `has-error-message`
|
|
66
|
-
* `
|
|
67
|
-
* `
|
|
68
|
-
* `
|
|
69
|
-
* `
|
|
70
|
-
* `
|
|
59
|
+
* Attribute | Description
|
|
60
|
+
* ---------------------|---------------------------------
|
|
61
|
+
* `disabled` | Set when the element is disabled
|
|
62
|
+
* `has-value` | Set when the element has a value
|
|
63
|
+
* `has-label` | Set when the element has a label
|
|
64
|
+
* `has-helper` | Set when the element has helper text or slot
|
|
65
|
+
* `has-error-message` | Set when the element has an error message
|
|
66
|
+
* `has-tooltip` | Set when the element has a slotted tooltip
|
|
67
|
+
* `invalid` | Set when the element is invalid
|
|
68
|
+
* `input-prevented` | Temporarily set when invalid input is prevented
|
|
69
|
+
* `focused` | Set when the element is focused
|
|
70
|
+
* `focus-ring` | Set when the element is keyboard focused
|
|
71
|
+
* `readonly` | Set when the element is readonly
|
|
72
|
+
*
|
|
73
|
+
* Note, the `input-prevented` state attribute is only supported when `allowedCharPattern` is set.
|
|
71
74
|
*
|
|
72
75
|
* See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
|
|
73
76
|
*
|
package/web-types.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/text-field",
|
|
4
|
-
"version": "24.9.0-
|
|
4
|
+
"version": "24.9.0-beta2",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
8
8
|
"elements": [
|
|
9
9
|
{
|
|
10
10
|
"name": "vaadin-text-field",
|
|
11
|
-
"description": "`<vaadin-text-field>` is a web component that allows the user to input and edit text.\n\n```html\n<vaadin-text-field label=\"First Name\"></vaadin-text-field>\n```\n\n### Prefixes and suffixes\n\nThese are child elements of a `<vaadin-text-field>` that are displayed\ninline with the input, before or after.\nIn order for an element to be considered as a prefix, it must have the slot\nattribute set to `prefix` (and similarly for `suffix`).\n\n```html\n<vaadin-text-field label=\"Email address\">\n <div slot=\"prefix\">Sent to:</div>\n <div slot=\"suffix\">@vaadin.com</div>\n</vaadin-text-field>\n```\n\n### Styling\n\nThe following custom properties are available for styling:\n\nCustom property | Description | Default\n-------------------------------|----------------------------|---------\n`--vaadin-field-default-width` | Default width of the field | `12em`\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\nThe following state attributes are available for styling:\n\nAttribute
|
|
11
|
+
"description": "`<vaadin-text-field>` is a web component that allows the user to input and edit text.\n\n```html\n<vaadin-text-field label=\"First Name\"></vaadin-text-field>\n```\n\n### Prefixes and suffixes\n\nThese are child elements of a `<vaadin-text-field>` that are displayed\ninline with the input, before or after.\nIn order for an element to be considered as a prefix, it must have the slot\nattribute set to `prefix` (and similarly for `suffix`).\n\n```html\n<vaadin-text-field label=\"Email address\">\n <div slot=\"prefix\">Sent to:</div>\n <div slot=\"suffix\">@vaadin.com</div>\n</vaadin-text-field>\n```\n\n### Styling\n\nThe following custom properties are available for styling:\n\nCustom property | Description | Default\n-------------------------------|----------------------------|---------\n`--vaadin-field-default-width` | Default width of the field | `12em`\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\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.",
|
|
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/text-field",
|
|
4
|
-
"version": "24.9.0-
|
|
4
|
+
"version": "24.9.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-text-field",
|
|
19
|
-
"description": "`<vaadin-text-field>` is a web component that allows the user to input and edit text.\n\n```html\n<vaadin-text-field label=\"First Name\"></vaadin-text-field>\n```\n\n### Prefixes and suffixes\n\nThese are child elements of a `<vaadin-text-field>` that are displayed\ninline with the input, before or after.\nIn order for an element to be considered as a prefix, it must have the slot\nattribute set to `prefix` (and similarly for `suffix`).\n\n```html\n<vaadin-text-field label=\"Email address\">\n <div slot=\"prefix\">Sent to:</div>\n <div slot=\"suffix\">@vaadin.com</div>\n</vaadin-text-field>\n```\n\n### Styling\n\nThe following custom properties are available for styling:\n\nCustom property | Description | Default\n-------------------------------|----------------------------|---------\n`--vaadin-field-default-width` | Default width of the field | `12em`\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\nThe following state attributes are available for styling:\n\nAttribute
|
|
19
|
+
"description": "`<vaadin-text-field>` is a web component that allows the user to input and edit text.\n\n```html\n<vaadin-text-field label=\"First Name\"></vaadin-text-field>\n```\n\n### Prefixes and suffixes\n\nThese are child elements of a `<vaadin-text-field>` that are displayed\ninline with the input, before or after.\nIn order for an element to be considered as a prefix, it must have the slot\nattribute set to `prefix` (and similarly for `suffix`).\n\n```html\n<vaadin-text-field label=\"Email address\">\n <div slot=\"prefix\">Sent to:</div>\n <div slot=\"suffix\">@vaadin.com</div>\n</vaadin-text-field>\n```\n\n### Styling\n\nThe following custom properties are available for styling:\n\nCustom property | Description | Default\n-------------------------------|----------------------------|---------\n`--vaadin-field-default-width` | Default width of the field | `12em`\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\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.",
|
|
20
20
|
"extension": true,
|
|
21
21
|
"attributes": [
|
|
22
22
|
{
|