@vaadin/text-area 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-area",
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
  }
@@ -72,8 +72,32 @@ export interface TextAreaEventMap extends HTMLElementEventMap, TextAreaCustomEve
72
72
  *
73
73
  * The following shadow DOM parts are available for styling:
74
74
  *
75
- * `<vaadin-text-area>` provides the same set of shadow DOM parts and state attributes as `<vaadin-text-field>`.
76
- * See [`<vaadin-text-field>`](#/elements/vaadin-text-field) for the styling documentation.
75
+ * Part name | Description
76
+ * ---------------------|----------------
77
+ * `label` | The label element
78
+ * `input-field` | The element that wraps prefix, value and suffix
79
+ * `clear-button` | The clear button
80
+ * `error-message` | The error message element
81
+ * `helper-text` | The helper text element wrapper
82
+ * `required-indicator` | The `required` state indicator element
83
+ *
84
+ * The following state attributes are available for styling:
85
+ *
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.
77
101
  *
78
102
  * See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
79
103
  *
@@ -44,8 +44,34 @@ registerStyles('vaadin-text-area', [inputFieldShared, textAreaStyles], { moduleI
44
44
  * -------------------------------|----------------------------|---------
45
45
  * `--vaadin-field-default-width` | Default width of the field | `12em`
46
46
  *
47
- * `<vaadin-text-area>` provides the same set of shadow DOM parts and state attributes as `<vaadin-text-field>`.
48
- * See [`<vaadin-text-field>`](#/elements/vaadin-text-field) for the styling documentation.
47
+ * The following shadow DOM parts are available for styling:
48
+ *
49
+ * Part name | Description
50
+ * ---------------------|----------------
51
+ * `label` | The label element
52
+ * `input-field` | The element that wraps prefix, value and suffix
53
+ * `clear-button` | The clear button
54
+ * `error-message` | The error message element
55
+ * `helper-text` | The helper text element wrapper
56
+ * `required-indicator` | The `required` state indicator element
57
+ *
58
+ * The following state attributes are available for styling:
59
+ *
60
+ * Attribute | Description
61
+ * ---------------------|---------------------------------
62
+ * `disabled` | Set when the element is disabled
63
+ * `has-value` | Set when the element has a value
64
+ * `has-label` | Set when the element has a label
65
+ * `has-helper` | Set when the element has helper text or slot
66
+ * `has-error-message` | Set when the element has an error message
67
+ * `has-tooltip` | Set when the element has a slotted tooltip
68
+ * `invalid` | Set when the element is invalid
69
+ * `input-prevented` | Temporarily set when invalid input is prevented
70
+ * `focused` | Set when the element is focused
71
+ * `focus-ring` | Set when the element is keyboard focused
72
+ * `readonly` | Set when the element is readonly
73
+ *
74
+ * Note, the `input-prevented` state attribute is only supported when `allowedCharPattern` is set.
49
75
  *
50
76
  * See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
51
77
  *
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-area",
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-area",
11
- "description": "`<vaadin-text-area>` is a web component for multi-line text input.\n\n```html\n<vaadin-text-area label=\"Comment\"></vaadin-text-area>\n```\n\n### Prefixes and suffixes\n\nThese are child elements of a `<vaadin-text-area>` 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-area label=\"Description\">\n <div slot=\"prefix\">Details:</div>\n <div slot=\"suffix\">The end!</div>\n</vaadin-text-area>\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\n`<vaadin-text-area>` provides the same set of shadow DOM parts and state attributes as `<vaadin-text-field>`.\nSee [`<vaadin-text-field>`](https://cdn.vaadin.com/vaadin-web-components/24.9.0-alpha1/#/elements/vaadin-text-field) for the styling documentation.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
11
+ "description": "`<vaadin-text-area>` is a web component for multi-line text input.\n\n```html\n<vaadin-text-area label=\"Comment\"></vaadin-text-area>\n```\n\n### Prefixes and suffixes\n\nThese are child elements of a `<vaadin-text-area>` 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-area label=\"Description\">\n <div slot=\"prefix\">Details:</div>\n <div slot=\"suffix\">The end!</div>\n</vaadin-text-area>\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-area",
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-area",
19
- "description": "`<vaadin-text-area>` is a web component for multi-line text input.\n\n```html\n<vaadin-text-area label=\"Comment\"></vaadin-text-area>\n```\n\n### Prefixes and suffixes\n\nThese are child elements of a `<vaadin-text-area>` 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-area label=\"Description\">\n <div slot=\"prefix\">Details:</div>\n <div slot=\"suffix\">The end!</div>\n</vaadin-text-area>\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\n`<vaadin-text-area>` provides the same set of shadow DOM parts and state attributes as `<vaadin-text-field>`.\nSee [`<vaadin-text-field>`](https://cdn.vaadin.com/vaadin-web-components/24.9.0-alpha1/#/elements/vaadin-text-field) for the styling documentation.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
19
+ "description": "`<vaadin-text-area>` is a web component for multi-line text input.\n\n```html\n<vaadin-text-area label=\"Comment\"></vaadin-text-area>\n```\n\n### Prefixes and suffixes\n\nThese are child elements of a `<vaadin-text-area>` 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-area label=\"Description\">\n <div slot=\"prefix\">Details:</div>\n <div slot=\"suffix\">The end!</div>\n</vaadin-text-area>\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
  {