@vaadin/text-area 24.7.0-alpha8 → 24.7.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.7.0-alpha8",
3
+ "version": "24.7.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.7.0-alpha8",
40
- "@vaadin/component-base": "24.7.0-alpha8",
41
- "@vaadin/field-base": "24.7.0-alpha8",
42
- "@vaadin/input-container": "24.7.0-alpha8",
43
- "@vaadin/vaadin-lumo-styles": "24.7.0-alpha8",
44
- "@vaadin/vaadin-material-styles": "24.7.0-alpha8",
45
- "@vaadin/vaadin-themable-mixin": "24.7.0-alpha8",
39
+ "@vaadin/a11y-base": "24.7.0-beta1",
40
+ "@vaadin/component-base": "24.7.0-beta1",
41
+ "@vaadin/field-base": "24.7.0-beta1",
42
+ "@vaadin/input-container": "24.7.0-beta1",
43
+ "@vaadin/vaadin-lumo-styles": "24.7.0-beta1",
44
+ "@vaadin/vaadin-material-styles": "24.7.0-beta1",
45
+ "@vaadin/vaadin-themable-mixin": "24.7.0-beta1",
46
46
  "lit": "^3.0.0"
47
47
  },
48
48
  "devDependencies": {
49
- "@vaadin/chai-plugins": "24.7.0-alpha8",
50
- "@vaadin/test-runner-commands": "24.7.0-alpha8",
49
+ "@vaadin/chai-plugins": "24.7.0-beta1",
50
+ "@vaadin/test-runner-commands": "24.7.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": "d015035192480fcc8cc9df5d00a950f177b83c32"
58
+ "gitHead": "4043c518ef9b915cde612d2907ddc9bd10e5af17"
59
59
  }
@@ -39,7 +39,7 @@ export class TextArea extends TextAreaMixin(ThemableMixin(ElementMixin(PolylitMi
39
39
  <div class="vaadin-text-area-container">
40
40
  <div part="label">
41
41
  <slot name="label"></slot>
42
- <span part="required-indicator" aria-hidden="true"></span>
42
+ <span part="required-indicator" aria-hidden="true" @click="${this.focus}"></span>
43
43
  </div>
44
44
 
45
45
  <vaadin-input-container
@@ -113,8 +113,6 @@ export const TextAreaMixin = (superClass) =>
113
113
  this.addController(this.__textAreaController);
114
114
  this.addController(new LabelledInputController(this.inputElement, this._labelController));
115
115
 
116
- this.addEventListener('animationend', this._onAnimationEnd);
117
-
118
116
  this._inputField = this.shadowRoot.querySelector('[part=input-field]');
119
117
 
120
118
  // Wheel scrolling results in async scroll events. Preventing the wheel
@@ -140,13 +138,6 @@ export const TextAreaMixin = (superClass) =>
140
138
  this._inputField.style.setProperty('--_text-area-vertical-scroll-position', `${this._inputField.scrollTop}px`);
141
139
  }
142
140
 
143
- /** @private */
144
- _onAnimationEnd(e) {
145
- if (e.animationName.indexOf('vaadin-text-area-appear') === 0) {
146
- this._updateHeight();
147
- }
148
- }
149
-
150
141
  /**
151
142
  * @param {unknown} newVal
152
143
  * @param {unknown} oldVal
@@ -6,10 +6,6 @@
6
6
  import { css } from 'lit';
7
7
 
8
8
  export const textAreaStyles = css`
9
- :host {
10
- animation: 1ms vaadin-text-area-appear;
11
- }
12
-
13
9
  .vaadin-text-area-container {
14
10
  flex: auto;
15
11
  }
@@ -65,10 +61,4 @@ export const textAreaStyles = css`
65
61
  :host([disabled]) ::slotted(textarea) {
66
62
  user-select: none;
67
63
  }
68
-
69
- @keyframes vaadin-text-area-appear {
70
- to {
71
- opacity: 1;
72
- }
73
- }
74
64
  `;
@@ -71,7 +71,7 @@ export class TextArea extends TextAreaMixin(ThemableMixin(ElementMixin(PolymerEl
71
71
  <div class="vaadin-text-area-container">
72
72
  <div part="label">
73
73
  <slot name="label"></slot>
74
- <span part="required-indicator" aria-hidden="true"></span>
74
+ <span part="required-indicator" aria-hidden="true" on-click="focus"></span>
75
75
  </div>
76
76
 
77
77
  <vaadin-input-container
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.7.0-alpha8",
4
+ "version": "24.7.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.7.0-alpha8/#/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\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.",
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.7.0-alpha8",
4
+ "version": "24.7.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.7.0-alpha8/#/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\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.",
20
20
  "extension": true,
21
21
  "attributes": [
22
22
  {