@vaadin/message-list 23.1.0-alpha1 → 23.1.0-alpha4
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 +8 -8
- package/src/vaadin-message-avatar.js +1 -1
- package/src/vaadin-message-list.js +4 -4
- package/src/vaadin-message.js +6 -6
- package/theme/lumo/vaadin-message-avatar-styles.js +1 -1
- package/theme/lumo/vaadin-message-styles.js +1 -1
- package/theme/material/vaadin-message-avatar-styles.js +1 -1
- package/theme/material/vaadin-message-list-styles.js +1 -1
- package/theme/material/vaadin-message-styles.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/message-list",
|
|
3
|
-
"version": "23.1.0-
|
|
3
|
+
"version": "23.1.0-alpha4",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -36,16 +36,16 @@
|
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@polymer/polymer": "^3.0.0",
|
|
39
|
-
"@vaadin/avatar": "23.1.0-
|
|
40
|
-
"@vaadin/component-base": "23.1.0-
|
|
41
|
-
"@vaadin/vaadin-lumo-styles": "23.1.0-
|
|
42
|
-
"@vaadin/vaadin-material-styles": "23.1.0-
|
|
43
|
-
"@vaadin/vaadin-themable-mixin": "23.1.0-
|
|
39
|
+
"@vaadin/avatar": "23.1.0-alpha4",
|
|
40
|
+
"@vaadin/component-base": "23.1.0-alpha4",
|
|
41
|
+
"@vaadin/vaadin-lumo-styles": "23.1.0-alpha4",
|
|
42
|
+
"@vaadin/vaadin-material-styles": "23.1.0-alpha4",
|
|
43
|
+
"@vaadin/vaadin-themable-mixin": "23.1.0-alpha4"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@esm-bundle/chai": "^4.3.4",
|
|
47
47
|
"@vaadin/testing-helpers": "^0.3.2",
|
|
48
|
-
"sinon": "^
|
|
48
|
+
"sinon": "^13.0.2"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "aacdb7fe09811894751f0378ff7fb66071892c71"
|
|
51
51
|
}
|
|
@@ -68,8 +68,8 @@ class MessageList extends ElementMixin(ThemableMixin(PolymerElement)) {
|
|
|
68
68
|
value: function () {
|
|
69
69
|
return [];
|
|
70
70
|
},
|
|
71
|
-
observer: '_itemsChanged'
|
|
72
|
-
}
|
|
71
|
+
observer: '_itemsChanged',
|
|
72
|
+
},
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
75
|
|
|
@@ -206,8 +206,8 @@ class MessageList extends ElementMixin(ThemableMixin(PolymerElement)) {
|
|
|
206
206
|
}
|
|
207
207
|
|
|
208
208
|
_getIndexOfFocusableElement() {
|
|
209
|
-
const index = this._messages.findIndex((e) => e.tabIndex
|
|
210
|
-
return index
|
|
209
|
+
const index = this._messages.findIndex((e) => e.tabIndex === 0);
|
|
210
|
+
return index !== -1 ? index : 0;
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
213
|
|
package/src/vaadin-message.js
CHANGED
|
@@ -59,7 +59,7 @@ class Message extends FocusMixin(ElementMixin(ThemableMixin(PolymerElement))) {
|
|
|
59
59
|
* so the formatting is up to you.
|
|
60
60
|
*/
|
|
61
61
|
time: {
|
|
62
|
-
type: String
|
|
62
|
+
type: String,
|
|
63
63
|
},
|
|
64
64
|
|
|
65
65
|
/**
|
|
@@ -69,7 +69,7 @@ class Message extends FocusMixin(ElementMixin(ThemableMixin(PolymerElement))) {
|
|
|
69
69
|
* Example: `message.userName = "Jessica Jacobs";`
|
|
70
70
|
*/
|
|
71
71
|
userName: {
|
|
72
|
-
type: String
|
|
72
|
+
type: String,
|
|
73
73
|
},
|
|
74
74
|
|
|
75
75
|
/**
|
|
@@ -79,7 +79,7 @@ class Message extends FocusMixin(ElementMixin(ThemableMixin(PolymerElement))) {
|
|
|
79
79
|
* Example: `message.userAbbr = "JJ";`
|
|
80
80
|
*/
|
|
81
81
|
userAbbr: {
|
|
82
|
-
type: String
|
|
82
|
+
type: String,
|
|
83
83
|
},
|
|
84
84
|
|
|
85
85
|
/**
|
|
@@ -88,7 +88,7 @@ class Message extends FocusMixin(ElementMixin(ThemableMixin(PolymerElement))) {
|
|
|
88
88
|
* Example: `message.userImg = "/static/img/avatar.jpg";`
|
|
89
89
|
*/
|
|
90
90
|
userImg: {
|
|
91
|
-
type: String
|
|
91
|
+
type: String,
|
|
92
92
|
},
|
|
93
93
|
|
|
94
94
|
/**
|
|
@@ -111,8 +111,8 @@ class Message extends FocusMixin(ElementMixin(ThemableMixin(PolymerElement))) {
|
|
|
111
111
|
* ```
|
|
112
112
|
*/
|
|
113
113
|
userColorIndex: {
|
|
114
|
-
type: Number
|
|
115
|
-
}
|
|
114
|
+
type: Number,
|
|
115
|
+
},
|
|
116
116
|
};
|
|
117
117
|
}
|
|
118
118
|
|