@vaadin/text-field 24.9.0-alpha1 → 24.9.0-beta1

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/text-field",
3
- "version": "24.9.0-alpha1",
3
+ "version": "24.9.0-beta1",
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-alpha1",
40
- "@vaadin/component-base": "24.9.0-alpha1",
41
- "@vaadin/field-base": "24.9.0-alpha1",
42
- "@vaadin/input-container": "24.9.0-alpha1",
43
- "@vaadin/vaadin-lumo-styles": "24.9.0-alpha1",
44
- "@vaadin/vaadin-material-styles": "24.9.0-alpha1",
45
- "@vaadin/vaadin-themable-mixin": "24.9.0-alpha1",
39
+ "@vaadin/a11y-base": "24.9.0-beta1",
40
+ "@vaadin/component-base": "24.9.0-beta1",
41
+ "@vaadin/field-base": "24.9.0-beta1",
42
+ "@vaadin/input-container": "24.9.0-beta1",
43
+ "@vaadin/vaadin-lumo-styles": "24.9.0-beta1",
44
+ "@vaadin/vaadin-material-styles": "24.9.0-beta1",
45
+ "@vaadin/vaadin-themable-mixin": "24.9.0-beta1",
46
46
  "lit": "^3.0.0"
47
47
  },
48
48
  "devDependencies": {
49
- "@vaadin/chai-plugins": "24.9.0-alpha1",
50
- "@vaadin/test-runner-commands": "24.9.0-alpha1",
49
+ "@vaadin/chai-plugins": "24.9.0-beta1",
50
+ "@vaadin/test-runner-commands": "24.9.0-beta1",
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": "cc13d59f0e3cd1a3b0c19c1a900a5308446fe7ac"
58
+ "gitHead": "5f6e6e33217fef06e5d5cc52baa4d760969ef1e4"
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 | Description | Part name
87
- * --------------------|-------------|------------
88
- * `disabled` | Set to a disabled text field | :host
89
- * `has-value` | Set when the element has a value | :host
90
- * `has-label` | Set when the element has a label | :host
91
- * `has-helper` | Set when the element has helper text or slot | :host
92
- * `has-error-message` | Set when the element has an error message | :host
93
- * `invalid` | Set when the element is invalid | :host
94
- * `input-prevented` | Temporarily set when invalid input is prevented | :host
95
- * `focused` | Set when the element is focused | :host
96
- * `focus-ring` | Set when the element is keyboard focused | :host
97
- * `readonly` | Set to a readonly text field | :host
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
  *
@@ -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 | Description | Part name
60
- * --------------------|-------------|------------
61
- * `disabled` | Set to a disabled text field | :host
62
- * `has-value` | Set when the element has a value | :host
63
- * `has-label` | Set when the element has a label | :host
64
- * `has-helper` | Set when the element has helper text or slot | :host
65
- * `has-error-message` | Set when the element has an error message | :host
66
- * `invalid` | Set when the element is invalid | :host
67
- * `input-prevented` | Temporarily set when invalid input is prevented | :host
68
- * `focused` | Set when the element is focused | :host
69
- * `focus-ring` | Set when the element is keyboard focused | :host
70
- * `readonly` | Set to a readonly text field | :host
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-alpha1",
4
+ "version": "24.9.0-beta1",
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 | Description | Part name\n--------------------|-------------|------------\n`disabled` | Set to a disabled text field | :host\n`has-value` | Set when the element has a value | :host\n`has-label` | Set when the element has a label | :host\n`has-helper` | Set when the element has helper text or slot | :host\n`has-error-message` | Set when the element has an error message | :host\n`invalid` | Set when the element is invalid | :host\n`input-prevented` | Temporarily set when invalid input is prevented | :host\n`focused` | Set when the element is focused | :host\n`focus-ring` | Set when the element is keyboard focused | :host\n`readonly` | Set to a readonly text field | :host\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
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",
@@ -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-alpha1",
4
+ "version": "24.9.0-beta1",
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 | Description | Part name\n--------------------|-------------|------------\n`disabled` | Set to a disabled text field | :host\n`has-value` | Set when the element has a value | :host\n`has-label` | Set when the element has a label | :host\n`has-helper` | Set when the element has helper text or slot | :host\n`has-error-message` | Set when the element has an error message | :host\n`invalid` | Set when the element is invalid | :host\n`input-prevented` | Temporarily set when invalid input is prevented | :host\n`focused` | Set when the element is focused | :host\n`focus-ring` | Set when the element is keyboard focused | :host\n`readonly` | Set to a readonly text field | :host\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
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
  {