@vaadin/text-area
Advanced tools
Comparing version 24.7.0-alpha9 to 24.7.0-beta1
{ | ||
"name": "@vaadin/text-area", | ||
"version": "24.7.0-alpha9", | ||
"version": "24.7.0-beta1", | ||
"publishConfig": { | ||
@@ -39,14 +39,14 @@ "access": "public" | ||
"@polymer/polymer": "^3.0.0", | ||
"@vaadin/a11y-base": "24.7.0-alpha9", | ||
"@vaadin/component-base": "24.7.0-alpha9", | ||
"@vaadin/field-base": "24.7.0-alpha9", | ||
"@vaadin/input-container": "24.7.0-alpha9", | ||
"@vaadin/vaadin-lumo-styles": "24.7.0-alpha9", | ||
"@vaadin/vaadin-material-styles": "24.7.0-alpha9", | ||
"@vaadin/vaadin-themable-mixin": "24.7.0-alpha9", | ||
"@vaadin/a11y-base": "24.7.0-beta1", | ||
"@vaadin/component-base": "24.7.0-beta1", | ||
"@vaadin/field-base": "24.7.0-beta1", | ||
"@vaadin/input-container": "24.7.0-beta1", | ||
"@vaadin/vaadin-lumo-styles": "24.7.0-beta1", | ||
"@vaadin/vaadin-material-styles": "24.7.0-beta1", | ||
"@vaadin/vaadin-themable-mixin": "24.7.0-beta1", | ||
"lit": "^3.0.0" | ||
}, | ||
"devDependencies": { | ||
"@vaadin/chai-plugins": "24.7.0-alpha9", | ||
"@vaadin/test-runner-commands": "24.7.0-alpha9", | ||
"@vaadin/chai-plugins": "24.7.0-beta1", | ||
"@vaadin/test-runner-commands": "24.7.0-beta1", | ||
"@vaadin/testing-helpers": "^1.1.0", | ||
@@ -59,3 +59,3 @@ "sinon": "^18.0.0" | ||
], | ||
"gitHead": "b0a16c6ed7fc50a22a42dcab0649d74f4c300485" | ||
"gitHead": "4043c518ef9b915cde612d2907ddc9bd10e5af17" | ||
} |
@@ -42,3 +42,3 @@ /** | ||
<slot name="label"></slot> | ||
<span part="required-indicator" aria-hidden="true"></span> | ||
<span part="required-indicator" aria-hidden="true" @click="${this.focus}"></span> | ||
</div> | ||
@@ -45,0 +45,0 @@ |
@@ -116,4 +116,2 @@ /** | ||
this.addEventListener('animationend', this._onAnimationEnd); | ||
this._inputField = this.shadowRoot.querySelector('[part=input-field]'); | ||
@@ -144,9 +142,2 @@ | ||
/** @private */ | ||
_onAnimationEnd(e) { | ||
if (e.animationName.indexOf('vaadin-text-area-appear') === 0) { | ||
this._updateHeight(); | ||
} | ||
} | ||
/** | ||
@@ -153,0 +144,0 @@ * @param {unknown} newVal |
@@ -9,6 +9,2 @@ /** | ||
export const textAreaStyles = css` | ||
:host { | ||
animation: 1ms vaadin-text-area-appear; | ||
} | ||
.vaadin-text-area-container { | ||
@@ -69,8 +65,2 @@ flex: auto; | ||
} | ||
@keyframes vaadin-text-area-appear { | ||
to { | ||
opacity: 1; | ||
} | ||
} | ||
`; |
@@ -74,3 +74,3 @@ /** | ||
<slot name="label"></slot> | ||
<span part="required-indicator" aria-hidden="true"></span> | ||
<span part="required-indicator" aria-hidden="true" on-click="focus"></span> | ||
</div> | ||
@@ -77,0 +77,0 @@ |
{ | ||
"$schema": "https://json.schemastore.org/web-types", | ||
"name": "@vaadin/text-area", | ||
"version": "24.7.0-alpha9", | ||
"version": "24.7.0-beta1", | ||
"description-markup": "markdown", | ||
@@ -11,3 +11,3 @@ "contributions": { | ||
"name": "vaadin-text-area", | ||
"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.7.0-alpha9/#/elements/vaadin-text-field) for the styling documentation.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.", | ||
"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.7.0-beta1/#/elements/vaadin-text-field) for the styling documentation.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.", | ||
"attributes": [ | ||
@@ -14,0 +14,0 @@ { |
{ | ||
"$schema": "https://json.schemastore.org/web-types", | ||
"name": "@vaadin/text-area", | ||
"version": "24.7.0-alpha9", | ||
"version": "24.7.0-beta1", | ||
"description-markup": "markdown", | ||
@@ -19,3 +19,3 @@ "framework": "lit", | ||
"name": "vaadin-text-area", | ||
"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.7.0-alpha9/#/elements/vaadin-text-field) for the styling documentation.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.", | ||
"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.7.0-beta1/#/elements/vaadin-text-field) for the styling documentation.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.", | ||
"extension": true, | ||
@@ -22,0 +22,0 @@ "attributes": [ |
81513
1726
+ Added@vaadin/a11y-base@24.7.0-beta1(transitive)
+ Added@vaadin/component-base@24.7.0-beta1(transitive)
+ Added@vaadin/field-base@24.7.0-beta1(transitive)
+ Added@vaadin/icon@24.7.0-beta1(transitive)
+ Added@vaadin/input-container@24.7.0-beta1(transitive)
+ Added@vaadin/vaadin-lumo-styles@24.7.0-beta1(transitive)
+ Added@vaadin/vaadin-material-styles@24.7.0-beta1(transitive)
+ Added@vaadin/vaadin-themable-mixin@24.7.0-beta1(transitive)
- Removed@vaadin/a11y-base@24.7.0-alpha9(transitive)
- Removed@vaadin/component-base@24.7.0-alpha9(transitive)
- Removed@vaadin/field-base@24.7.0-alpha9(transitive)
- Removed@vaadin/icon@24.7.0-alpha9(transitive)
- Removed@vaadin/input-container@24.7.0-alpha9(transitive)
- Removed@vaadin/vaadin-lumo-styles@24.7.0-alpha9(transitive)
- Removed@vaadin/vaadin-material-styles@24.7.0-alpha9(transitive)
- Removed@vaadin/vaadin-themable-mixin@24.7.0-alpha9(transitive)