@vaadin/text-area 24.8.5 → 24.9.0-alpha2

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.8.5",
3
+ "version": "24.9.0-alpha2",
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.8.5",
40
- "@vaadin/component-base": "~24.8.5",
41
- "@vaadin/field-base": "~24.8.5",
42
- "@vaadin/input-container": "~24.8.5",
43
- "@vaadin/vaadin-lumo-styles": "~24.8.5",
44
- "@vaadin/vaadin-material-styles": "~24.8.5",
45
- "@vaadin/vaadin-themable-mixin": "~24.8.5",
39
+ "@vaadin/a11y-base": "24.9.0-alpha2",
40
+ "@vaadin/component-base": "24.9.0-alpha2",
41
+ "@vaadin/field-base": "24.9.0-alpha2",
42
+ "@vaadin/input-container": "24.9.0-alpha2",
43
+ "@vaadin/vaadin-lumo-styles": "24.9.0-alpha2",
44
+ "@vaadin/vaadin-material-styles": "24.9.0-alpha2",
45
+ "@vaadin/vaadin-themable-mixin": "24.9.0-alpha2",
46
46
  "lit": "^3.0.0"
47
47
  },
48
48
  "devDependencies": {
49
- "@vaadin/chai-plugins": "~24.8.5",
50
- "@vaadin/test-runner-commands": "~24.8.5",
49
+ "@vaadin/chai-plugins": "24.9.0-alpha2",
50
+ "@vaadin/test-runner-commands": "24.9.0-alpha2",
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": "a519b0d2b1d09d1ddaa4ff6829819f8a2be30ad8"
58
+ "gitHead": "dd99dece1b54942ab0e421892b089e506822c5f5"
59
59
  }
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.8.5",
4
+ "version": "24.9.0-alpha2",
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.8.5/#/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.9.0-alpha2/#/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.8.5",
4
+ "version": "24.9.0-alpha2",
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.8.5/#/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.9.0-alpha2/#/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
  {
@@ -1,83 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright (c) 2021 - 2025 Vaadin Ltd.
4
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
- */
6
- import '@vaadin/input-container/src/vaadin-lit-input-container.js';
7
- import { html, LitElement } from 'lit';
8
- import { ifDefined } from 'lit/directives/if-defined.js';
9
- import { defineCustomElement } from '@vaadin/component-base/src/define.js';
10
- import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
11
- import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
12
- import { TooltipController } from '@vaadin/component-base/src/tooltip-controller.js';
13
- import { inputFieldShared } from '@vaadin/field-base/src/styles/input-field-shared-styles.js';
14
- import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
15
- import { TextAreaMixin } from './vaadin-text-area-mixin.js';
16
- import { textAreaStyles } from './vaadin-text-area-styles.js';
17
-
18
- /**
19
- * LitElement based version of `<vaadin-text-area>` web component.
20
- *
21
- * ## Disclaimer
22
- *
23
- * This component is an experiment and not yet a part of Vaadin platform.
24
- * There is no ETA regarding specific Vaadin version where it'll land.
25
- * Feel free to try this code in your apps as per Apache 2.0 license.
26
- */
27
- export class TextArea extends TextAreaMixin(ThemableMixin(ElementMixin(PolylitMixin(LitElement)))) {
28
- static get is() {
29
- return 'vaadin-text-area';
30
- }
31
-
32
- static get styles() {
33
- return [inputFieldShared, textAreaStyles];
34
- }
35
-
36
- /** @protected */
37
- render() {
38
- return html`
39
- <div class="vaadin-text-area-container">
40
- <div part="label">
41
- <slot name="label"></slot>
42
- <span part="required-indicator" aria-hidden="true" @click="${this.focus}"></span>
43
- </div>
44
-
45
- <vaadin-input-container
46
- part="input-field"
47
- .readonly="${this.readonly}"
48
- .disabled="${this.disabled}"
49
- .invalid="${this.invalid}"
50
- theme="${ifDefined(this._theme)}"
51
- @scroll="${this._onScroll}"
52
- >
53
- <slot name="prefix" slot="prefix"></slot>
54
- <slot name="textarea"></slot>
55
- <slot name="suffix" slot="suffix"></slot>
56
- <div id="clearButton" part="clear-button" slot="suffix" aria-hidden="true"></div>
57
- </vaadin-input-container>
58
-
59
- <div part="helper-text">
60
- <slot name="helper"></slot>
61
- </div>
62
-
63
- <div part="error-message">
64
- <slot name="error-message"></slot>
65
- </div>
66
- </div>
67
-
68
- <slot name="tooltip"></slot>
69
- `;
70
- }
71
-
72
- /** @protected */
73
- ready() {
74
- super.ready();
75
-
76
- this._tooltipController = new TooltipController(this);
77
- this._tooltipController.setPosition('top');
78
- this._tooltipController.setAriaTarget(this.inputElement);
79
- this.addController(this._tooltipController);
80
- }
81
- }
82
-
83
- defineCustomElement(TextArea);
@@ -1,2 +0,0 @@
1
- import './vaadin-text-area-styles.js';
2
- import '../../src/vaadin-lit-text-area.js';
@@ -1,2 +0,0 @@
1
- import './vaadin-text-area-styles.js';
2
- import '../../src/vaadin-lit-text-area.js';
@@ -1,2 +0,0 @@
1
- import './vaadin-text-area-styles.js';
2
- import '../../src/vaadin-lit-text-area.js';
@@ -1,2 +0,0 @@
1
- import './vaadin-text-area-styles.js';
2
- import '../../src/vaadin-lit-text-area.js';
@@ -1 +0,0 @@
1
- export * from './src/vaadin-text-area.js';
@@ -1,3 +0,0 @@
1
- import './theme/lumo/vaadin-lit-text-area.js';
2
-
3
- export * from './src/vaadin-lit-text-area.js';