@vaadin/text-area 24.4.0-dev.223e39f050 → 24.4.0-dev.4b20a0c55.3

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/README.md CHANGED
@@ -5,7 +5,6 @@ An input field component for multi-line text input.
5
5
  [Documentation + Live Demo ↗](https://vaadin.com/docs/latest/components/text-area)
6
6
 
7
7
  [![npm version](https://badgen.net/npm/v/@vaadin/text-area)](https://www.npmjs.com/package/@vaadin/text-area)
8
- [![Discord](https://img.shields.io/discord/732335336448852018?label=discord)](https://discord.gg/PHmkCKC)
9
8
 
10
9
  ```html
11
10
  <vaadin-text-area label="Comment"></vaadin-text-area>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/text-area",
3
- "version": "24.4.0-dev.223e39f050",
3
+ "version": "24.4.0-dev.4b20a0c55.3",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -38,13 +38,13 @@
38
38
  "dependencies": {
39
39
  "@open-wc/dedupe-mixin": "^1.3.0",
40
40
  "@polymer/polymer": "^3.0.0",
41
- "@vaadin/a11y-base": "24.4.0-dev.223e39f050",
42
- "@vaadin/component-base": "24.4.0-dev.223e39f050",
43
- "@vaadin/field-base": "24.4.0-dev.223e39f050",
44
- "@vaadin/input-container": "24.4.0-dev.223e39f050",
45
- "@vaadin/vaadin-lumo-styles": "24.4.0-dev.223e39f050",
46
- "@vaadin/vaadin-material-styles": "24.4.0-dev.223e39f050",
47
- "@vaadin/vaadin-themable-mixin": "24.4.0-dev.223e39f050",
41
+ "@vaadin/a11y-base": "24.4.0-dev.4b20a0c55.3",
42
+ "@vaadin/component-base": "24.4.0-dev.4b20a0c55.3",
43
+ "@vaadin/field-base": "24.4.0-dev.4b20a0c55.3",
44
+ "@vaadin/input-container": "24.4.0-dev.4b20a0c55.3",
45
+ "@vaadin/vaadin-lumo-styles": "24.4.0-dev.4b20a0c55.3",
46
+ "@vaadin/vaadin-material-styles": "24.4.0-dev.4b20a0c55.3",
47
+ "@vaadin/vaadin-themable-mixin": "24.4.0-dev.4b20a0c55.3",
48
48
  "lit": "^3.0.0"
49
49
  },
50
50
  "devDependencies": {
@@ -56,5 +56,5 @@
56
56
  "web-types.json",
57
57
  "web-types.lit.json"
58
58
  ],
59
- "gitHead": "5e2e3bfc811c95aed9354235fab93fdbf43eb354"
59
+ "gitHead": "41cf17453d7506fb635c088a0425e20b6e82b89b"
60
60
  }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
3
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import type { Constructor } from '@open-wc/dedupe-mixin';
@@ -61,4 +61,14 @@ export declare class TextAreaMixinClass {
61
61
  * The pattern must match the entire value, not just some subset.
62
62
  */
63
63
  pattern: string;
64
+
65
+ /**
66
+ * Scrolls the textarea to the start if it has a vertical scrollbar.
67
+ */
68
+ scrollToStart(): void;
69
+
70
+ /**
71
+ * Scrolls the textarea to the end if it has a vertical scrollbar.
72
+ */
73
+ scrollToEnd(): void;
64
74
  }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
3
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import { ResizeMixin } from '@vaadin/component-base/src/resize-mixin.js';
@@ -178,6 +178,20 @@ export const TextAreaMixin = (superClass) =>
178
178
  inputField.scrollTop = scrollTop;
179
179
  }
180
180
 
181
+ /**
182
+ * Scrolls the textarea to the start if it has a vertical scrollbar.
183
+ */
184
+ scrollToStart() {
185
+ this._inputField.scrollTop = 0;
186
+ }
187
+
188
+ /**
189
+ * Scrolls the textarea to the end if it has a vertical scrollbar.
190
+ */
191
+ scrollToEnd() {
192
+ this._inputField.scrollTop = this._inputField.scrollHeight;
193
+ }
194
+
181
195
  /**
182
196
  * Returns true if the current textarea value satisfies all constraints (if any).
183
197
  * @return {boolean}
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
3
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import type { CSSResult } from 'lit';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
3
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import { css } from 'lit';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
3
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
3
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import '@vaadin/input-container/src/vaadin-input-container.js';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
3
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import '@vaadin/input-container/theme/lumo/vaadin-input-container-styles.js';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
3
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import './vaadin-text-area-styles.js';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
3
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import '@vaadin/input-container/theme/material/vaadin-input-container-styles.js';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
3
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import './vaadin-text-area-styles.js';