@vaadin/message-list 23.1.0-beta1 → 23.1.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-list",
|
|
3
|
-
"version": "23.1.0-
|
|
3
|
+
"version": "23.1.0-beta2",
|
|
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-beta2",
|
|
40
|
+
"@vaadin/component-base": "23.1.0-beta2",
|
|
41
|
+
"@vaadin/vaadin-lumo-styles": "23.1.0-beta2",
|
|
42
|
+
"@vaadin/vaadin-material-styles": "23.1.0-beta2",
|
|
43
|
+
"@vaadin/vaadin-themable-mixin": "23.1.0-beta2"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@esm-bundle/chai": "^4.3.4",
|
|
47
47
|
"@vaadin/testing-helpers": "^0.3.2",
|
|
48
48
|
"sinon": "^13.0.2"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "f11f9245a0b5e6bf912725a501c27c24b74e7c8d"
|
|
51
51
|
}
|
|
@@ -65,9 +65,7 @@ class MessageList extends ElementMixin(ThemableMixin(PolymerElement)) {
|
|
|
65
65
|
*/
|
|
66
66
|
items: {
|
|
67
67
|
type: Array,
|
|
68
|
-
value:
|
|
69
|
-
return [];
|
|
70
|
-
},
|
|
68
|
+
value: () => [],
|
|
71
69
|
observer: '_itemsChanged',
|
|
72
70
|
},
|
|
73
71
|
};
|
|
@@ -148,7 +146,7 @@ class MessageList extends ElementMixin(ThemableMixin(PolymerElement)) {
|
|
|
148
146
|
return;
|
|
149
147
|
}
|
|
150
148
|
|
|
151
|
-
//
|
|
149
|
+
// Get index of the item that was focused when event happened
|
|
152
150
|
const target = event.composedPath()[0];
|
|
153
151
|
let currentIndex = this._messages.indexOf(target);
|
|
154
152
|
|
|
@@ -166,7 +164,7 @@ class MessageList extends ElementMixin(ThemableMixin(PolymerElement)) {
|
|
|
166
164
|
currentIndex = this._messages.length - 1;
|
|
167
165
|
break;
|
|
168
166
|
default:
|
|
169
|
-
return; //
|
|
167
|
+
return; // Nothing to do
|
|
170
168
|
}
|
|
171
169
|
if (currentIndex < 0) {
|
|
172
170
|
currentIndex = this._messages.length - 1;
|