@vaadin/virtual-list 23.1.0-beta4 → 23.1.0-rc3
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-virtual-list.d.ts +11 -11
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/virtual-list",
|
|
3
|
-
"version": "23.1.0-
|
|
3
|
+
"version": "23.1.0-rc3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -36,18 +36,18 @@
|
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@polymer/polymer": "^3.0.0",
|
|
39
|
-
"@vaadin/component-base": "23.1.0-
|
|
40
|
-
"@vaadin/lit-renderer": "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/component-base": "23.1.0-rc3",
|
|
40
|
+
"@vaadin/lit-renderer": "23.1.0-rc3",
|
|
41
|
+
"@vaadin/vaadin-lumo-styles": "23.1.0-rc3",
|
|
42
|
+
"@vaadin/vaadin-material-styles": "23.1.0-rc3",
|
|
43
|
+
"@vaadin/vaadin-themable-mixin": "23.1.0-rc3"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@esm-bundle/chai": "^4.3.4",
|
|
47
|
-
"@vaadin/polymer-legacy-adapter": "23.1.0-
|
|
47
|
+
"@vaadin/polymer-legacy-adapter": "23.1.0-rc3",
|
|
48
48
|
"@vaadin/testing-helpers": "^0.3.2",
|
|
49
49
|
"lit": "^2.0.0",
|
|
50
50
|
"sinon": "^13.0.2"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "49c312fbe0228adb559296d45655bbfd4eac6235"
|
|
53
53
|
}
|
|
@@ -41,6 +41,16 @@ export type VirtualListRenderer<TItem> = (
|
|
|
41
41
|
* @mixes ThemableMixin
|
|
42
42
|
*/
|
|
43
43
|
declare class VirtualList<TItem = VirtualListDefaultItem> extends ElementMixin(ThemableMixin(HTMLElement)) {
|
|
44
|
+
/**
|
|
45
|
+
* Gets the index of the first visible item in the viewport.
|
|
46
|
+
*/
|
|
47
|
+
readonly firstVisibleIndex: number;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Gets the index of the last visible item in the viewport.
|
|
51
|
+
*/
|
|
52
|
+
readonly lastVisibleIndex: number;
|
|
53
|
+
|
|
44
54
|
/**
|
|
45
55
|
* Custom function for rendering the content of every item.
|
|
46
56
|
* Receives three arguments:
|
|
@@ -57,23 +67,13 @@ declare class VirtualList<TItem = VirtualListDefaultItem> extends ElementMixin(T
|
|
|
57
67
|
/**
|
|
58
68
|
* An array containing items determining how many instances to render.
|
|
59
69
|
*/
|
|
60
|
-
items:
|
|
70
|
+
items: TItem[] | undefined;
|
|
61
71
|
|
|
62
72
|
/**
|
|
63
73
|
* Scroll to a specific index in the virtual list.
|
|
64
74
|
*/
|
|
65
75
|
scrollToIndex(index: number): void;
|
|
66
76
|
|
|
67
|
-
/**
|
|
68
|
-
* Gets the index of the first visible item in the viewport.
|
|
69
|
-
*/
|
|
70
|
-
readonly firstVisibleIndex: number;
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* Gets the index of the last visible item in the viewport.
|
|
74
|
-
*/
|
|
75
|
-
readonly lastVisibleIndex: number;
|
|
76
|
-
|
|
77
77
|
/**
|
|
78
78
|
* Requests an update for the content of the rows.
|
|
79
79
|
* While performing the update, it invokes the renderer passed in the `renderer` property for each visible row.
|