@vaadin/message-input 24.9.0-alpha2 → 24.9.0-beta2

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": "24.9.0-alpha2",
3
+ "version": "24.9.0-beta2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -37,17 +37,17 @@
37
37
  "dependencies": {
38
38
  "@open-wc/dedupe-mixin": "^1.3.0",
39
39
  "@polymer/polymer": "^3.0.0",
40
- "@vaadin/button": "24.9.0-alpha2",
41
- "@vaadin/component-base": "24.9.0-alpha2",
42
- "@vaadin/text-area": "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",
40
+ "@vaadin/button": "24.9.0-beta2",
41
+ "@vaadin/component-base": "24.9.0-beta2",
42
+ "@vaadin/text-area": "24.9.0-beta2",
43
+ "@vaadin/vaadin-lumo-styles": "24.9.0-beta2",
44
+ "@vaadin/vaadin-material-styles": "24.9.0-beta2",
45
+ "@vaadin/vaadin-themable-mixin": "24.9.0-beta2",
46
46
  "lit": "^3.0.0"
47
47
  },
48
48
  "devDependencies": {
49
- "@vaadin/chai-plugins": "24.9.0-alpha2",
50
- "@vaadin/test-runner-commands": "24.9.0-alpha2",
49
+ "@vaadin/chai-plugins": "24.9.0-beta2",
50
+ "@vaadin/test-runner-commands": "24.9.0-beta2",
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": "dd99dece1b54942ab0e421892b089e506822c5f5"
58
+ "gitHead": "cf8def153fcf724b305f9ad823dc9af27e31ad07"
59
59
  }
@@ -129,9 +129,9 @@ export const MessageInputMixin = (superClass) =>
129
129
  this.addController(this._tooltipController);
130
130
  }
131
131
 
132
- focus() {
132
+ focus(options) {
133
133
  if (this._textArea) {
134
- this._textArea.focus();
134
+ this._textArea.focus(options);
135
135
  }
136
136
  }
137
137
 
@@ -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>(
@@ -23,6 +23,17 @@ import { MessageInputMixin } from './vaadin-message-input-mixin.js';
23
23
  * <vaadin-message-input></vaadin-message-input>
24
24
  * ```
25
25
  *
26
+ * ### Styling
27
+ *
28
+ * The following state attributes are available for styling:
29
+ *
30
+ * Attribute | Description
31
+ * ---------------|---------------------------------
32
+ * `disabled` | Set when the element is disabled
33
+ * `has-tooltip` | Set when the element has a slotted tooltip
34
+ *
35
+ * See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
36
+ *
26
37
  * @customElement
27
38
  * @extends HTMLElement
28
39
  * @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": "24.9.0-alpha2",
4
+ "version": "24.9.0-beta2",
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": "value",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/message-input",
4
- "version": "24.9.0-alpha2",
4
+ "version": "24.9.0-beta2",
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
  {