@vaadin/component-base 24.3.0 → 24.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/component-base",
|
|
3
|
-
"version": "24.
|
|
3
|
+
"version": "24.4.0-alpha1",
|
|
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": "3e2ed41c99d618ff7def2734fd863c21c85775a3"
|
|
46
46
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import type { Constructor } from '@open-wc/dedupe-mixin';
|
|
7
|
-
import type { ReactiveController
|
|
7
|
+
import type { ReactiveController } from 'lit';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* A mixin for connecting controllers to the element.
|
|
@@ -13,16 +13,14 @@ export declare function ControllerMixin<T extends Constructor<HTMLElement>>(
|
|
|
13
13
|
superclass: T,
|
|
14
14
|
): Constructor<ControllerMixinClass> & T;
|
|
15
15
|
|
|
16
|
-
export declare class ControllerMixinClass
|
|
17
|
-
implements Pick<ReactiveControllerHost, 'addController' | 'removeController'>
|
|
18
|
-
{
|
|
16
|
+
export declare class ControllerMixinClass {
|
|
19
17
|
/**
|
|
20
18
|
* Registers a controller to participate in the element update cycle.
|
|
21
19
|
*/
|
|
22
|
-
addController(controller: ReactiveController): void;
|
|
20
|
+
protected addController(controller: ReactiveController): void;
|
|
23
21
|
|
|
24
22
|
/**
|
|
25
23
|
* Removes a controller from the element.
|
|
26
24
|
*/
|
|
27
|
-
removeController(controller: ReactiveController): void;
|
|
25
|
+
protected removeController(controller: ReactiveController): void;
|
|
28
26
|
}
|
|
@@ -237,6 +237,10 @@ export class DataProviderController extends EventTarget {
|
|
|
237
237
|
}
|
|
238
238
|
|
|
239
239
|
const callback = (items, size) => {
|
|
240
|
+
if (cache.pendingRequests[page] !== callback) {
|
|
241
|
+
return;
|
|
242
|
+
}
|
|
243
|
+
|
|
240
244
|
if (size !== undefined) {
|
|
241
245
|
cache.size = size;
|
|
242
246
|
} else if (params.parentItem) {
|
package/src/define.js
CHANGED