@vaadin/component-base 24.4.0-dev.223e39f050 → 24.4.0-dev.b3e1d14600
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/component-base",
|
|
3
|
-
"version": "24.4.0-dev.
|
|
3
|
+
"version": "24.4.0-dev.b3e1d14600",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"@vaadin/testing-helpers": "^0.6.0",
|
|
43
43
|
"sinon": "^13.0.2"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "502d4f5b03f770a83d270d98078cde230254dd0e"
|
|
46
46
|
}
|
|
@@ -201,7 +201,10 @@ export class Cache {
|
|
|
201
201
|
setPage(page, items) {
|
|
202
202
|
const startIndex = page * this.pageSize;
|
|
203
203
|
items.forEach((item, i) => {
|
|
204
|
-
|
|
204
|
+
const itemIndex = startIndex + i;
|
|
205
|
+
if (itemIndex < this.size) {
|
|
206
|
+
this.items[itemIndex] = item;
|
|
207
|
+
}
|
|
205
208
|
});
|
|
206
209
|
}
|
|
207
210
|
|
|
@@ -258,14 +258,14 @@ export class DataProviderController extends EventTarget {
|
|
|
258
258
|
return;
|
|
259
259
|
}
|
|
260
260
|
|
|
261
|
-
cache.setPage(page, items);
|
|
262
|
-
|
|
263
261
|
if (size !== undefined) {
|
|
264
262
|
cache.size = size;
|
|
265
263
|
} else if (params.parentItem) {
|
|
266
264
|
cache.size = items.length;
|
|
267
265
|
}
|
|
268
266
|
|
|
267
|
+
cache.setPage(page, items);
|
|
268
|
+
|
|
269
269
|
this.recalculateFlatSize();
|
|
270
270
|
|
|
271
271
|
this.hasData = true;
|
|
@@ -286,6 +286,6 @@ export class DataProviderController extends EventTarget {
|
|
|
286
286
|
|
|
287
287
|
/** @private */
|
|
288
288
|
__isPlaceholder(item) {
|
|
289
|
-
return
|
|
289
|
+
return item === this.placeholder;
|
|
290
290
|
}
|
|
291
291
|
}
|