@vaadin/message-input 25.0.0-alpha16 → 25.0.0-alpha18

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/message-input",
3
- "version": "25.0.0-alpha16",
3
+ "version": "25.0.0-alpha18",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -34,22 +34,22 @@
34
34
  ],
35
35
  "dependencies": {
36
36
  "@open-wc/dedupe-mixin": "^1.3.0",
37
- "@vaadin/button": "25.0.0-alpha16",
38
- "@vaadin/component-base": "25.0.0-alpha16",
39
- "@vaadin/text-area": "25.0.0-alpha16",
40
- "@vaadin/vaadin-themable-mixin": "25.0.0-alpha16",
37
+ "@vaadin/button": "25.0.0-alpha18",
38
+ "@vaadin/component-base": "25.0.0-alpha18",
39
+ "@vaadin/text-area": "25.0.0-alpha18",
40
+ "@vaadin/vaadin-themable-mixin": "25.0.0-alpha18",
41
41
  "lit": "^3.0.0"
42
42
  },
43
43
  "devDependencies": {
44
- "@vaadin/chai-plugins": "25.0.0-alpha16",
45
- "@vaadin/test-runner-commands": "25.0.0-alpha16",
44
+ "@vaadin/chai-plugins": "25.0.0-alpha18",
45
+ "@vaadin/test-runner-commands": "25.0.0-alpha18",
46
46
  "@vaadin/testing-helpers": "^2.0.0",
47
- "@vaadin/vaadin-lumo-styles": "25.0.0-alpha16",
48
- "sinon": "^18.0.0"
47
+ "@vaadin/vaadin-lumo-styles": "25.0.0-alpha18",
48
+ "sinon": "^21.0.0"
49
49
  },
50
50
  "web-types": [
51
51
  "web-types.json",
52
52
  "web-types.lit.json"
53
53
  ],
54
- "gitHead": "4b316158a4a4f702f032bc9940fc82f0faa840f4"
54
+ "gitHead": "cb5cafb5687a117ebead1b81e2116991cec13abe"
55
55
  }
@@ -127,9 +127,9 @@ export const MessageInputMixin = (superClass) =>
127
127
  this.addController(this._tooltipController);
128
128
  }
129
129
 
130
- focus() {
130
+ focus(options) {
131
131
  if (this._textArea) {
132
- this._textArea.focus();
132
+ this._textArea.focus(options);
133
133
  }
134
134
  }
135
135
 
@@ -32,6 +32,17 @@ export type MessageInputEventMap = HTMLElementEventMap & MessageInputCustomEvent
32
32
  * ```html
33
33
  * <vaadin-message-input></vaadin-message-input>
34
34
  * ```
35
+ *
36
+ * ### Styling
37
+ *
38
+ * The following state attributes are available for styling:
39
+ *
40
+ * Attribute | Description
41
+ * ---------------|---------------------------------
42
+ * `disabled` | Set when the element is disabled
43
+ * `has-tooltip` | Set when the element has a slotted tooltip
44
+ *
45
+ * See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
35
46
  */
36
47
  declare class MessageInput extends MessageInputMixin(ThemableMixin(ElementMixin(HTMLElement))) {
37
48
  addEventListener<K extends keyof MessageInputEventMap>(
@@ -26,6 +26,17 @@ import { MessageInputMixin } from './vaadin-message-input-mixin.js';
26
26
  * <vaadin-message-input></vaadin-message-input>
27
27
  * ```
28
28
  *
29
+ * ### Styling
30
+ *
31
+ * The following state attributes are available for styling:
32
+ *
33
+ * Attribute | Description
34
+ * ---------------|---------------------------------
35
+ * `disabled` | Set when the element is disabled
36
+ * `has-tooltip` | Set when the element has a slotted tooltip
37
+ *
38
+ * See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
39
+ *
29
40
  * @customElement
30
41
  * @extends HTMLElement
31
42
  * @mixes MessageInputMixin
package/web-types.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/message-input",
4
- "version": "25.0.0-alpha16",
4
+ "version": "25.0.0-alpha18",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "elements": [
9
9
  {
10
10
  "name": "vaadin-message-input",
11
- "description": "`<vaadin-message-input>` is a Web Component for sending messages.\nIt consists of a text area that grows on along with the content, and a send button to send message.\n\nThe message can be sent by one of the following actions:\n- by pressing Enter (use Shift + Enter to add a new line)\n- by clicking `submit` button.\n\n```html\n<vaadin-message-input></vaadin-message-input>\n```",
11
+ "description": "`<vaadin-message-input>` is a Web Component for sending messages.\nIt consists of a text area that grows on along with the content, and a send button to send message.\n\nThe message can be sent by one of the following actions:\n- by pressing Enter (use Shift + Enter to add a new line)\n- by clicking `submit` button.\n\n```html\n<vaadin-message-input></vaadin-message-input>\n```\n\n### Styling\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n---------------|---------------------------------\n`disabled` | Set when the element is disabled\n`has-tooltip` | Set when the element has a slotted tooltip\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
12
12
  "attributes": [
13
13
  {
14
14
  "name": "i18n",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/message-input",
4
- "version": "25.0.0-alpha16",
4
+ "version": "25.0.0-alpha18",
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-message-input",
19
- "description": "`<vaadin-message-input>` is a Web Component for sending messages.\nIt consists of a text area that grows on along with the content, and a send button to send message.\n\nThe message can be sent by one of the following actions:\n- by pressing Enter (use Shift + Enter to add a new line)\n- by clicking `submit` button.\n\n```html\n<vaadin-message-input></vaadin-message-input>\n```",
19
+ "description": "`<vaadin-message-input>` is a Web Component for sending messages.\nIt consists of a text area that grows on along with the content, and a send button to send message.\n\nThe message can be sent by one of the following actions:\n- by pressing Enter (use Shift + Enter to add a new line)\n- by clicking `submit` button.\n\n```html\n<vaadin-message-input></vaadin-message-input>\n```\n\n### Styling\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n---------------|---------------------------------\n`disabled` | Set when the element is disabled\n`has-tooltip` | Set when the element has a slotted tooltip\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
20
20
  "extension": true,
21
21
  "attributes": [
22
22
  {