@vaadin/message-input 25.1.0-beta1 → 25.1.0-beta3
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 +33 -103
- package/package.json +11 -11
- package/src/vaadin-message-input-mixin.js +1 -2
- package/src/vaadin-message-input.d.ts +2 -0
- package/src/vaadin-message-input.js +2 -0
- package/web-types.json +19 -4
- package/web-types.lit.json +1 -1
package/custom-elements.json
CHANGED
|
@@ -17,71 +17,6 @@
|
|
|
17
17
|
}
|
|
18
18
|
]
|
|
19
19
|
},
|
|
20
|
-
{
|
|
21
|
-
"kind": "javascript-module",
|
|
22
|
-
"path": "src/vaadin-message-input-button.js",
|
|
23
|
-
"declarations": [
|
|
24
|
-
{
|
|
25
|
-
"kind": "class",
|
|
26
|
-
"description": "An element used internally by `<vaadin-message-input>`. Not intended to be used separately.",
|
|
27
|
-
"name": "MessageInputButton",
|
|
28
|
-
"members": [],
|
|
29
|
-
"mixins": [
|
|
30
|
-
{
|
|
31
|
-
"name": "ButtonMixin",
|
|
32
|
-
"package": "@vaadin/button/src/vaadin-button-mixin.js"
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
"name": "DirMixin",
|
|
36
|
-
"package": "@vaadin/component-base/src/dir-mixin.js"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"name": "ThemableMixin",
|
|
40
|
-
"package": "@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"name": "PolylitMixin",
|
|
44
|
-
"package": "@vaadin/component-base/src/polylit-mixin.js"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"name": "LumoInjectionMixin",
|
|
48
|
-
"package": "@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js"
|
|
49
|
-
}
|
|
50
|
-
],
|
|
51
|
-
"superclass": {
|
|
52
|
-
"name": "LitElement",
|
|
53
|
-
"package": "lit"
|
|
54
|
-
},
|
|
55
|
-
"tagName": "vaadin-message-input-button",
|
|
56
|
-
"customElement": true,
|
|
57
|
-
"attributes": [
|
|
58
|
-
{
|
|
59
|
-
"name": "tabindex",
|
|
60
|
-
"type": {
|
|
61
|
-
"text": "number"
|
|
62
|
-
},
|
|
63
|
-
"description": "Indicates whether the element can be focused and where it participates in sequential keyboard navigation.",
|
|
64
|
-
"fieldName": "tabindex",
|
|
65
|
-
"inheritedFrom": {
|
|
66
|
-
"name": "TabindexMixin",
|
|
67
|
-
"package": "@vaadin/a11y-base/src/tabindex-mixin.js"
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
],
|
|
71
|
-
"events": []
|
|
72
|
-
}
|
|
73
|
-
],
|
|
74
|
-
"exports": [
|
|
75
|
-
{
|
|
76
|
-
"kind": "js",
|
|
77
|
-
"name": "MessageInputButton",
|
|
78
|
-
"declaration": {
|
|
79
|
-
"name": "MessageInputButton",
|
|
80
|
-
"module": "src/vaadin-message-input-button.js"
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
]
|
|
84
|
-
},
|
|
85
20
|
{
|
|
86
21
|
"kind": "javascript-module",
|
|
87
22
|
"path": "src/vaadin-message-input-mixin.js",
|
|
@@ -113,20 +48,12 @@
|
|
|
113
48
|
{
|
|
114
49
|
"kind": "field",
|
|
115
50
|
"name": "i18n",
|
|
116
|
-
"
|
|
117
|
-
"
|
|
118
|
-
"
|
|
119
|
-
"text": "!MessageInputI18n"
|
|
120
|
-
}
|
|
51
|
+
"privacy": "public",
|
|
52
|
+
"type": {
|
|
53
|
+
"text": "Object"
|
|
121
54
|
},
|
|
122
|
-
"
|
|
123
|
-
|
|
124
|
-
"name": "value",
|
|
125
|
-
"type": {
|
|
126
|
-
"text": "Object"
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
],
|
|
55
|
+
"description": "The object used to localize this component. To change the default\nlocalization, replace this with an object that provides all properties, or\njust the individual properties you want to change.\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```",
|
|
56
|
+
"attribute": "i18n",
|
|
130
57
|
"inheritedFrom": {
|
|
131
58
|
"name": "I18nMixin",
|
|
132
59
|
"package": "@vaadin/component-base/src/i18n-mixin.js"
|
|
@@ -162,6 +89,11 @@
|
|
|
162
89
|
},
|
|
163
90
|
{
|
|
164
91
|
"name": "i18n",
|
|
92
|
+
"type": {
|
|
93
|
+
"text": "Object"
|
|
94
|
+
},
|
|
95
|
+
"description": "The object used to localize this component. To change the default\nlocalization, replace this with an object that provides all properties, or\njust the individual properties you want to change.\n\nShould be overridden by subclasses to provide a custom JSDoc with the\ndefault I18N properties.",
|
|
96
|
+
"fieldName": "i18n",
|
|
165
97
|
"inheritedFrom": {
|
|
166
98
|
"name": "I18nMixin",
|
|
167
99
|
"package": "@vaadin/component-base/src/i18n-mixin.js"
|
|
@@ -239,20 +171,12 @@
|
|
|
239
171
|
{
|
|
240
172
|
"kind": "field",
|
|
241
173
|
"name": "i18n",
|
|
242
|
-
"
|
|
243
|
-
"
|
|
244
|
-
"
|
|
245
|
-
"text": "!MessageInputI18n"
|
|
246
|
-
}
|
|
174
|
+
"privacy": "public",
|
|
175
|
+
"type": {
|
|
176
|
+
"text": "Object"
|
|
247
177
|
},
|
|
248
|
-
"
|
|
249
|
-
|
|
250
|
-
"name": "value",
|
|
251
|
-
"type": {
|
|
252
|
-
"text": "Object"
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
],
|
|
178
|
+
"description": "The object used to localize this component. To change the default\nlocalization, replace this with an object that provides all properties, or\njust the individual properties you want to change.\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```",
|
|
179
|
+
"attribute": "i18n",
|
|
256
180
|
"inheritedFrom": {
|
|
257
181
|
"name": "I18nMixin",
|
|
258
182
|
"package": "@vaadin/component-base/src/i18n-mixin.js"
|
|
@@ -273,6 +197,19 @@
|
|
|
273
197
|
}
|
|
274
198
|
}
|
|
275
199
|
],
|
|
200
|
+
"events": [
|
|
201
|
+
{
|
|
202
|
+
"name": "submit",
|
|
203
|
+
"type": {
|
|
204
|
+
"text": "CustomEvent"
|
|
205
|
+
},
|
|
206
|
+
"description": "Fired when a new message is submitted, either by clicking the \"send\" button, or pressing the Enter key.",
|
|
207
|
+
"inheritedFrom": {
|
|
208
|
+
"name": "MessageInputMixin",
|
|
209
|
+
"module": "src/vaadin-message-input-mixin.js"
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
],
|
|
276
213
|
"mixins": [
|
|
277
214
|
{
|
|
278
215
|
"name": "MessageInputMixin",
|
|
@@ -316,6 +253,11 @@
|
|
|
316
253
|
},
|
|
317
254
|
{
|
|
318
255
|
"name": "i18n",
|
|
256
|
+
"type": {
|
|
257
|
+
"text": "Object"
|
|
258
|
+
},
|
|
259
|
+
"description": "The object used to localize this component. To change the default\nlocalization, replace this with an object that provides all properties, or\njust the individual properties you want to change.\n\nShould be overridden by subclasses to provide a custom JSDoc with the\ndefault I18N properties.",
|
|
260
|
+
"fieldName": "i18n",
|
|
319
261
|
"inheritedFrom": {
|
|
320
262
|
"name": "I18nMixin",
|
|
321
263
|
"package": "@vaadin/component-base/src/i18n-mixin.js"
|
|
@@ -333,18 +275,6 @@
|
|
|
333
275
|
"module": "src/vaadin-message-input-mixin.js"
|
|
334
276
|
}
|
|
335
277
|
}
|
|
336
|
-
],
|
|
337
|
-
"events": [
|
|
338
|
-
{
|
|
339
|
-
"name": "submit",
|
|
340
|
-
"type": {
|
|
341
|
-
"text": "CustomEvent"
|
|
342
|
-
},
|
|
343
|
-
"inheritedFrom": {
|
|
344
|
-
"name": "MessageInputMixin",
|
|
345
|
-
"module": "src/vaadin-message-input-mixin.js"
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
278
|
]
|
|
349
279
|
}
|
|
350
280
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/message-input",
|
|
3
|
-
"version": "25.1.0-
|
|
3
|
+
"version": "25.1.0-beta3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -35,24 +35,24 @@
|
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
38
|
-
"@vaadin/button": "25.1.0-
|
|
39
|
-
"@vaadin/component-base": "25.1.0-
|
|
40
|
-
"@vaadin/text-area": "25.1.0-
|
|
41
|
-
"@vaadin/vaadin-themable-mixin": "25.1.0-
|
|
38
|
+
"@vaadin/button": "25.1.0-beta3",
|
|
39
|
+
"@vaadin/component-base": "25.1.0-beta3",
|
|
40
|
+
"@vaadin/text-area": "25.1.0-beta3",
|
|
41
|
+
"@vaadin/vaadin-themable-mixin": "25.1.0-beta3",
|
|
42
42
|
"lit": "^3.0.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@vaadin/aura": "25.1.0-
|
|
46
|
-
"@vaadin/chai-plugins": "25.1.0-
|
|
47
|
-
"@vaadin/test-runner-commands": "25.1.0-
|
|
45
|
+
"@vaadin/aura": "25.1.0-beta3",
|
|
46
|
+
"@vaadin/chai-plugins": "25.1.0-beta3",
|
|
47
|
+
"@vaadin/test-runner-commands": "25.1.0-beta3",
|
|
48
48
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
49
|
-
"@vaadin/vaadin-lumo-styles": "25.1.0-
|
|
50
|
-
"sinon": "^21.0.
|
|
49
|
+
"@vaadin/vaadin-lumo-styles": "25.1.0-beta3",
|
|
50
|
+
"sinon": "^21.0.2"
|
|
51
51
|
},
|
|
52
52
|
"customElements": "custom-elements.json",
|
|
53
53
|
"web-types": [
|
|
54
54
|
"web-types.json",
|
|
55
55
|
"web-types.lit.json"
|
|
56
56
|
],
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "4251850231a42298fda23b83928da588831cdb5d"
|
|
58
58
|
}
|
|
@@ -31,7 +31,6 @@ export const MessageInputMixin = (superClass) =>
|
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
33
|
* Set to true to disable this element.
|
|
34
|
-
* @type {boolean}
|
|
35
34
|
*/
|
|
36
35
|
disabled: {
|
|
37
36
|
type: Boolean,
|
|
@@ -76,7 +75,7 @@ export const MessageInputMixin = (superClass) =>
|
|
|
76
75
|
* message: 'Message'
|
|
77
76
|
* }
|
|
78
77
|
* ```
|
|
79
|
-
* @
|
|
78
|
+
* @type {!MessageInputI18n}
|
|
80
79
|
*/
|
|
81
80
|
get i18n() {
|
|
82
81
|
return super.i18n;
|
|
@@ -51,6 +51,8 @@ export type MessageInputEventMap = HTMLElementEventMap & MessageInputCustomEvent
|
|
|
51
51
|
* - `<vaadin-text-area>`
|
|
52
52
|
*
|
|
53
53
|
* See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
|
|
54
|
+
*
|
|
55
|
+
* @fires {CustomEvent} submit - Fired when a new message is submitted, either by clicking the "send" button, or pressing the Enter key.
|
|
54
56
|
*/
|
|
55
57
|
declare class MessageInput extends MessageInputMixin(ThemableMixin(ElementMixin(HTMLElement))) {
|
|
56
58
|
addEventListener<K extends keyof MessageInputEventMap>(
|
|
@@ -45,6 +45,8 @@ import { MessageInputMixin } from './vaadin-message-input-mixin.js';
|
|
|
45
45
|
*
|
|
46
46
|
* See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
|
|
47
47
|
*
|
|
48
|
+
* @fires {CustomEvent} submit - Fired when a new message is submitted, either by clicking the "send" button, or pressing the Enter key.
|
|
49
|
+
*
|
|
48
50
|
* @customElement vaadin-message-input
|
|
49
51
|
* @extends HTMLElement
|
|
50
52
|
* @mixes MessageInputMixin
|
package/web-types.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.1.0-
|
|
4
|
+
"version": "25.1.0-beta3",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -15,7 +15,20 @@
|
|
|
15
15
|
"description": "Set to true to disable this element.",
|
|
16
16
|
"value": {
|
|
17
17
|
"type": [
|
|
18
|
-
"boolean"
|
|
18
|
+
"boolean",
|
|
19
|
+
"null",
|
|
20
|
+
"undefined"
|
|
21
|
+
]
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "i18n",
|
|
26
|
+
"description": "The object used to localize this component. To change the default\nlocalization, replace this with an object that provides all properties, or\njust the individual properties you want to change.\n\nShould be overridden by subclasses to provide a custom JSDoc with the\ndefault I18N properties.",
|
|
27
|
+
"value": {
|
|
28
|
+
"type": [
|
|
29
|
+
"Object",
|
|
30
|
+
"null",
|
|
31
|
+
"undefined"
|
|
19
32
|
]
|
|
20
33
|
}
|
|
21
34
|
},
|
|
@@ -49,7 +62,9 @@
|
|
|
49
62
|
"description": "Set to true to disable this element.",
|
|
50
63
|
"value": {
|
|
51
64
|
"type": [
|
|
52
|
-
"boolean"
|
|
65
|
+
"boolean",
|
|
66
|
+
"null",
|
|
67
|
+
"undefined"
|
|
53
68
|
]
|
|
54
69
|
}
|
|
55
70
|
},
|
|
@@ -58,7 +73,7 @@
|
|
|
58
73
|
"description": "The object used to localize this component. To change the default\nlocalization, replace this with an object that provides all properties, or\njust the individual properties you want to change.\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```",
|
|
59
74
|
"value": {
|
|
60
75
|
"type": [
|
|
61
|
-
"
|
|
76
|
+
"?"
|
|
62
77
|
]
|
|
63
78
|
}
|
|
64
79
|
},
|
package/web-types.lit.json
CHANGED