@vaadin/message-input 25.3.0 → 25.4.0-alpha1
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/custom-elements.json
CHANGED
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
"name": "i18n",
|
|
42
42
|
"privacy": "public",
|
|
43
43
|
"type": {
|
|
44
|
-
"text": "Object"
|
|
44
|
+
"text": "Object | undefined"
|
|
45
45
|
},
|
|
46
|
-
"description": "The object used to localize this component. To change the default\nlocalization,
|
|
46
|
+
"description": "The object used to localize this component. To change the default\nlocalization, set this to an object that provides all properties, or\njust the individual properties you want to change.\n\nWhen not set, defaults to `undefined`.\n\nThe object has the following JSON structure and default values:\n```js\n{\n // Used as the button label\n send: 'Send',\n\n // Used as the input field's placeholder and aria-label\n message: 'Message'\n}\n```",
|
|
47
47
|
"attribute": "i18n",
|
|
48
48
|
"inheritedFrom": {
|
|
49
49
|
"name": "I18nMixin",
|
|
@@ -81,9 +81,9 @@
|
|
|
81
81
|
{
|
|
82
82
|
"name": "i18n",
|
|
83
83
|
"type": {
|
|
84
|
-
"text": "Object"
|
|
84
|
+
"text": "Object | undefined"
|
|
85
85
|
},
|
|
86
|
-
"description": "The object used to localize this component. To change the default\nlocalization,
|
|
86
|
+
"description": "The object used to localize this component. To change the default\nlocalization, set this to an object that provides all properties, or\njust the individual properties you want to change.\n\nWhen not set, defaults to `undefined`.\n\nShould be overridden by subclasses to provide a custom JSDoc with the\ndefault I18N properties.",
|
|
87
87
|
"fieldName": "i18n",
|
|
88
88
|
"inheritedFrom": {
|
|
89
89
|
"name": "I18nMixin",
|
|
@@ -155,9 +155,9 @@
|
|
|
155
155
|
"name": "i18n",
|
|
156
156
|
"privacy": "public",
|
|
157
157
|
"type": {
|
|
158
|
-
"text": "Object"
|
|
158
|
+
"text": "Object | undefined"
|
|
159
159
|
},
|
|
160
|
-
"description": "The object used to localize this component. To change the default\nlocalization,
|
|
160
|
+
"description": "The object used to localize this component. To change the default\nlocalization, set this to an object that provides all properties, or\njust the individual properties you want to change.\n\nWhen not set, defaults to `undefined`.\n\nThe object has the following JSON structure and default values:\n```js\n{\n // Used as the button label\n send: 'Send',\n\n // Used as the input field's placeholder and aria-label\n message: 'Message'\n}\n```",
|
|
161
161
|
"attribute": "i18n",
|
|
162
162
|
"inheritedFrom": {
|
|
163
163
|
"name": "I18nMixin",
|
|
@@ -208,9 +208,9 @@
|
|
|
208
208
|
{
|
|
209
209
|
"name": "i18n",
|
|
210
210
|
"type": {
|
|
211
|
-
"text": "Object"
|
|
211
|
+
"text": "Object | undefined"
|
|
212
212
|
},
|
|
213
|
-
"description": "The object used to localize this component. To change the default\nlocalization,
|
|
213
|
+
"description": "The object used to localize this component. To change the default\nlocalization, set this to an object that provides all properties, or\njust the individual properties you want to change.\n\nWhen not set, defaults to `undefined`.\n\nShould be overridden by subclasses to provide a custom JSDoc with the\ndefault I18N properties.",
|
|
214
214
|
"fieldName": "i18n",
|
|
215
215
|
"inheritedFrom": {
|
|
216
216
|
"name": "I18nMixin",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/message-input",
|
|
3
|
-
"version": "25.
|
|
3
|
+
"version": "25.4.0-alpha1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -35,19 +35,19 @@
|
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
38
|
-
"@vaadin/a11y-base": "
|
|
39
|
-
"@vaadin/button": "
|
|
40
|
-
"@vaadin/component-base": "
|
|
41
|
-
"@vaadin/text-area": "
|
|
42
|
-
"@vaadin/vaadin-themable-mixin": "
|
|
38
|
+
"@vaadin/a11y-base": "25.4.0-alpha1",
|
|
39
|
+
"@vaadin/button": "25.4.0-alpha1",
|
|
40
|
+
"@vaadin/component-base": "25.4.0-alpha1",
|
|
41
|
+
"@vaadin/text-area": "25.4.0-alpha1",
|
|
42
|
+
"@vaadin/vaadin-themable-mixin": "25.4.0-alpha1",
|
|
43
43
|
"lit": "^3.0.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@vaadin/aura": "
|
|
47
|
-
"@vaadin/chai-plugins": "
|
|
48
|
-
"@vaadin/test-runner-commands": "
|
|
46
|
+
"@vaadin/aura": "25.4.0-alpha1",
|
|
47
|
+
"@vaadin/chai-plugins": "25.4.0-alpha1",
|
|
48
|
+
"@vaadin/test-runner-commands": "25.4.0-alpha1",
|
|
49
49
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
50
|
-
"@vaadin/vaadin-lumo-styles": "
|
|
50
|
+
"@vaadin/vaadin-lumo-styles": "25.4.0-alpha1",
|
|
51
51
|
"sinon": "^22.0.0"
|
|
52
52
|
},
|
|
53
53
|
"customElements": "custom-elements.json",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"web-types.json",
|
|
56
56
|
"web-types.lit.json"
|
|
57
57
|
],
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "be38ec1866e96508f3f4591f95c949ef55903a34"
|
|
59
59
|
}
|
|
@@ -27,9 +27,11 @@ export declare class MessageInputMixinClass {
|
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
29
|
* The object used to localize this component. To change the default
|
|
30
|
-
* localization,
|
|
30
|
+
* localization, set this to an object that provides all properties, or
|
|
31
31
|
* just the individual properties you want to change.
|
|
32
32
|
*
|
|
33
|
+
* When not set, defaults to `undefined`.
|
|
34
|
+
*
|
|
33
35
|
* The object has the following JSON structure and default values:
|
|
34
36
|
* ```js
|
|
35
37
|
* {
|
|
@@ -41,7 +43,7 @@ export declare class MessageInputMixinClass {
|
|
|
41
43
|
* }
|
|
42
44
|
* ```
|
|
43
45
|
*/
|
|
44
|
-
i18n: MessageInputI18n;
|
|
46
|
+
i18n: MessageInputI18n | undefined;
|
|
45
47
|
|
|
46
48
|
/**
|
|
47
49
|
* Set to true to disable this element.
|
|
@@ -67,9 +67,11 @@ export const MessageInputMixin = (superClass) =>
|
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* The object used to localize this component. To change the default
|
|
70
|
-
* localization,
|
|
70
|
+
* localization, set this to an object that provides all properties, or
|
|
71
71
|
* just the individual properties you want to change.
|
|
72
72
|
*
|
|
73
|
+
* When not set, defaults to `undefined`.
|
|
74
|
+
*
|
|
73
75
|
* The object has the following JSON structure and default values:
|
|
74
76
|
* ```js
|
|
75
77
|
* {
|
|
@@ -80,7 +82,7 @@ export const MessageInputMixin = (superClass) =>
|
|
|
80
82
|
* message: 'Message'
|
|
81
83
|
* }
|
|
82
84
|
* ```
|
|
83
|
-
* @type {
|
|
85
|
+
* @type {MessageInputI18n | undefined}
|
|
84
86
|
*/
|
|
85
87
|
get i18n() {
|
|
86
88
|
return super.i18n;
|
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.
|
|
4
|
+
"version": "25.4.0-alpha1",
|
|
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```\n\n### Slots\n\nThe following slots are available for adding content to the message input:\n\nName | Description\n-----------|-------------\n`header` | Content displayed above the text area and controls\n`prefix` | Content displayed before the text area\n`button` | Button that submits the message, replacing the default one\n`footer` | Content displayed below the text area and controls\n\nWhen a custom button has no text content or accessible label, `aria-label` attribute\nis set based on the [`i18n`](https://cdn.vaadin.com/vaadin-web-components/25.
|
|
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### Slots\n\nThe following slots are available for adding content to the message input:\n\nName | Description\n-----------|-------------\n`header` | Content displayed above the text area and controls\n`prefix` | Content displayed before the text area\n`button` | Button that submits the message, replacing the default one\n`footer` | Content displayed below the text area and controls\n\nWhen a custom button has no text content or accessible label, `aria-label` attribute\nis set based on the [`i18n`](https://cdn.vaadin.com/vaadin-web-components/25.4.0-alpha1/#/elements/vaadin-message-input#property-i18n) property.\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`focused` | Set when the text area is focused\n`focus-ring` | Set when the text area is focused using the keyboard\n`has-header` | Set when the element has content in the header slot\n`has-prefix` | Set when the element has content in the prefix slot\n`has-footer` | Set when the element has content in the footer slot\n`has-tooltip` | Set when the element has a slotted tooltip\n\n### Internal components\n\nIn addition to `<vaadin-message-input>` itself, the following internal\ncomponents are themable:\n\n- `<vaadin-message-input-button>` - has the same API as `<vaadin-button>`\n- `<vaadin-text-area>`\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
|
|
12
12
|
"attributes": [
|
|
13
13
|
{
|
|
14
14
|
"name": "disabled",
|
|
@@ -51,10 +51,11 @@
|
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
53
|
"name": "i18n",
|
|
54
|
-
"description": "The object used to localize this component. To change the default\nlocalization,
|
|
54
|
+
"description": "The object used to localize this component. To change the default\nlocalization, set this to an object that provides all properties, or\njust the individual properties you want to change.\n\nWhen not set, defaults to `undefined`.\n\nThe object has the following JSON structure and default values:\n```js\n{\n // Used as the button label\n send: 'Send',\n\n // Used as the input field's placeholder and aria-label\n message: 'Message'\n}\n```",
|
|
55
55
|
"value": {
|
|
56
56
|
"type": [
|
|
57
|
-
"Object"
|
|
57
|
+
"Object",
|
|
58
|
+
"undefined"
|
|
58
59
|
]
|
|
59
60
|
}
|
|
60
61
|
},
|
package/web-types.lit.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/message-input",
|
|
4
|
-
"version": "25.
|
|
4
|
+
"version": "25.4.0-alpha1",
|
|
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```\n\n### Slots\n\nThe following slots are available for adding content to the message input:\n\nName | Description\n-----------|-------------\n`header` | Content displayed above the text area and controls\n`prefix` | Content displayed before the text area\n`button` | Button that submits the message, replacing the default one\n`footer` | Content displayed below the text area and controls\n\nWhen a custom button has no text content or accessible label, `aria-label` attribute\nis set based on the [`i18n`](https://cdn.vaadin.com/vaadin-web-components/25.
|
|
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### Slots\n\nThe following slots are available for adding content to the message input:\n\nName | Description\n-----------|-------------\n`header` | Content displayed above the text area and controls\n`prefix` | Content displayed before the text area\n`button` | Button that submits the message, replacing the default one\n`footer` | Content displayed below the text area and controls\n\nWhen a custom button has no text content or accessible label, `aria-label` attribute\nis set based on the [`i18n`](https://cdn.vaadin.com/vaadin-web-components/25.4.0-alpha1/#/elements/vaadin-message-input#property-i18n) property.\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`focused` | Set when the text area is focused\n`focus-ring` | Set when the text area is focused using the keyboard\n`has-header` | Set when the element has content in the header slot\n`has-prefix` | Set when the element has content in the prefix slot\n`has-footer` | Set when the element has content in the footer slot\n`has-tooltip` | Set when the element has a slotted tooltip\n\n### Internal components\n\nIn addition to `<vaadin-message-input>` itself, the following internal\ncomponents are themable:\n\n- `<vaadin-message-input-button>` - has the same API as `<vaadin-button>`\n- `<vaadin-text-area>`\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
|
|
20
20
|
"extension": true,
|
|
21
21
|
"attributes": [
|
|
22
22
|
{
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
30
|
"name": ".i18n",
|
|
31
|
-
"description": "The object used to localize this component. To change the default\nlocalization,
|
|
31
|
+
"description": "The object used to localize this component. To change the default\nlocalization, set this to an object that provides all properties, or\njust the individual properties you want to change.\n\nWhen not set, defaults to `undefined`.\n\nThe object has the following JSON structure and default values:\n```js\n{\n // Used as the button label\n send: 'Send',\n\n // Used as the input field's placeholder and aria-label\n message: 'Message'\n}\n```",
|
|
32
32
|
"value": {
|
|
33
33
|
"kind": "expression"
|
|
34
34
|
}
|