@vaadin/virtual-list 24.0.0-alpha9 → 24.0.0-beta1
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 +9 -9
- package/src/vaadin-virtual-list.js +18 -18
- package/web-types.json +1 -1
- package/web-types.lit.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/virtual-list",
|
|
3
|
-
"version": "24.0.0-
|
|
3
|
+
"version": "24.0.0-beta1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -38,16 +38,16 @@
|
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@polymer/polymer": "^3.0.0",
|
|
41
|
-
"@vaadin/component-base": "24.0.0-
|
|
42
|
-
"@vaadin/lit-renderer": "24.0.0-
|
|
43
|
-
"@vaadin/vaadin-lumo-styles": "24.0.0-
|
|
44
|
-
"@vaadin/vaadin-material-styles": "24.0.0-
|
|
45
|
-
"@vaadin/vaadin-themable-mixin": "24.0.0-
|
|
41
|
+
"@vaadin/component-base": "24.0.0-beta1",
|
|
42
|
+
"@vaadin/lit-renderer": "24.0.0-beta1",
|
|
43
|
+
"@vaadin/vaadin-lumo-styles": "24.0.0-beta1",
|
|
44
|
+
"@vaadin/vaadin-material-styles": "24.0.0-beta1",
|
|
45
|
+
"@vaadin/vaadin-themable-mixin": "24.0.0-beta1"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@esm-bundle/chai": "^4.3.4",
|
|
49
|
-
"@vaadin/polymer-legacy-adapter": "24.0.0-
|
|
50
|
-
"@vaadin/testing-helpers": "^0.
|
|
49
|
+
"@vaadin/polymer-legacy-adapter": "24.0.0-beta1",
|
|
50
|
+
"@vaadin/testing-helpers": "^0.4.0",
|
|
51
51
|
"lit": "^2.0.0",
|
|
52
52
|
"sinon": "^13.0.2"
|
|
53
53
|
},
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"web-types.json",
|
|
56
56
|
"web-types.lit.json"
|
|
57
57
|
],
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "c5b48921a62482746df8e46994b37e1490fec27e"
|
|
59
59
|
}
|
|
@@ -101,6 +101,24 @@ class VirtualList extends ElementMixin(ControllerMixin(ThemableMixin(PolymerElem
|
|
|
101
101
|
return ['__itemsOrRendererChanged(items, renderer, __virtualizer)'];
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
+
/**
|
|
105
|
+
* Gets the index of the first visible item in the viewport.
|
|
106
|
+
*
|
|
107
|
+
* @return {number}
|
|
108
|
+
*/
|
|
109
|
+
get firstVisibleIndex() {
|
|
110
|
+
return this.__virtualizer.firstVisibleIndex;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Gets the index of the last visible item in the viewport.
|
|
115
|
+
*
|
|
116
|
+
* @return {number}
|
|
117
|
+
*/
|
|
118
|
+
get lastVisibleIndex() {
|
|
119
|
+
return this.__virtualizer.lastVisibleIndex;
|
|
120
|
+
}
|
|
121
|
+
|
|
104
122
|
/** @protected */
|
|
105
123
|
ready() {
|
|
106
124
|
super.ready();
|
|
@@ -170,24 +188,6 @@ class VirtualList extends ElementMixin(ControllerMixin(ThemableMixin(PolymerElem
|
|
|
170
188
|
}
|
|
171
189
|
}
|
|
172
190
|
|
|
173
|
-
/**
|
|
174
|
-
* Gets the index of the first visible item in the viewport.
|
|
175
|
-
*
|
|
176
|
-
* @return {number}
|
|
177
|
-
*/
|
|
178
|
-
get firstVisibleIndex() {
|
|
179
|
-
return this.__virtualizer.firstVisibleIndex;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
/**
|
|
183
|
-
* Gets the index of the last visible item in the viewport.
|
|
184
|
-
*
|
|
185
|
-
* @return {number}
|
|
186
|
-
*/
|
|
187
|
-
get lastVisibleIndex() {
|
|
188
|
-
return this.__virtualizer.lastVisibleIndex;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
191
|
/**
|
|
192
192
|
* Requests an update for the content of the rows.
|
|
193
193
|
* While performing the update, it invokes the renderer passed in the `renderer` property for each visible row.
|
package/web-types.json
CHANGED
package/web-types.lit.json
CHANGED