virtual-scroller 1.13.1 → 1.14.0
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/CHANGELOG.md +13 -0
- package/README.md +712 -524
- package/bundle/index-dom.html +2 -0
- package/bundle/virtual-scroller-dom.js +1 -1
- package/bundle/virtual-scroller-dom.js.map +1 -1
- package/bundle/virtual-scroller-react.js +1 -1
- package/bundle/virtual-scroller-react.js.map +1 -1
- package/bundle/virtual-scroller.js +1 -1
- package/bundle/virtual-scroller.js.map +1 -1
- package/commonjs/DOM/VirtualScroller.js +60 -31
- package/commonjs/DOM/VirtualScroller.js.map +1 -1
- package/commonjs/DOM/tbody.js +9 -9
- package/commonjs/DOM/tbody.js.map +1 -1
- package/commonjs/Layout.js +3 -3
- package/commonjs/Layout.js.map +1 -1
- package/commonjs/Scroll.js +3 -3
- package/commonjs/Scroll.js.map +1 -1
- package/commonjs/ScrollableContainerResizeHandler.js +4 -5
- package/commonjs/ScrollableContainerResizeHandler.js.map +1 -1
- package/commonjs/VirtualScroller.constructor.js +15 -27
- package/commonjs/VirtualScroller.constructor.js.map +1 -1
- package/commonjs/VirtualScroller.js +21 -14
- package/commonjs/VirtualScroller.js.map +1 -1
- package/commonjs/VirtualScroller.layout.js +2 -2
- package/commonjs/VirtualScroller.layout.js.map +1 -1
- package/commonjs/VirtualScroller.onRender.js +1 -1
- package/commonjs/VirtualScroller.onRender.js.map +1 -1
- package/commonjs/VirtualScroller.state.js +8 -0
- package/commonjs/VirtualScroller.state.js.map +1 -1
- package/commonjs/react/VirtualScroller.js +15 -5
- package/commonjs/react/VirtualScroller.js.map +1 -1
- package/commonjs/react/useState.js +1 -2
- package/commonjs/react/useState.js.map +1 -1
- package/commonjs/react/useVirtualScroller.js +8 -11
- package/commonjs/react/useVirtualScroller.js.map +1 -1
- package/dom/index.d.ts +5 -4
- package/index.d.ts +0 -1
- package/modules/DOM/VirtualScroller.js +60 -31
- package/modules/DOM/VirtualScroller.js.map +1 -1
- package/modules/DOM/tbody.js +10 -9
- package/modules/DOM/tbody.js.map +1 -1
- package/modules/Layout.js +3 -3
- package/modules/Layout.js.map +1 -1
- package/modules/Scroll.js +3 -3
- package/modules/Scroll.js.map +1 -1
- package/modules/ScrollableContainerResizeHandler.js +4 -5
- package/modules/ScrollableContainerResizeHandler.js.map +1 -1
- package/modules/VirtualScroller.constructor.js +16 -27
- package/modules/VirtualScroller.constructor.js.map +1 -1
- package/modules/VirtualScroller.js +21 -14
- package/modules/VirtualScroller.js.map +1 -1
- package/modules/VirtualScroller.layout.js +2 -2
- package/modules/VirtualScroller.layout.js.map +1 -1
- package/modules/VirtualScroller.onRender.js +1 -1
- package/modules/VirtualScroller.onRender.js.map +1 -1
- package/modules/VirtualScroller.state.js +8 -0
- package/modules/VirtualScroller.state.js.map +1 -1
- package/modules/react/VirtualScroller.js +15 -5
- package/modules/react/VirtualScroller.js.map +1 -1
- package/modules/react/useState.js +1 -2
- package/modules/react/useState.js.map +1 -1
- package/modules/react/useVirtualScroller.js +6 -9
- package/modules/react/useVirtualScroller.js.map +1 -1
- package/package.json +1 -1
- package/source/DOM/VirtualScroller.js +58 -27
- package/source/DOM/tbody.js +10 -9
- package/source/Layout.js +3 -3
- package/source/Scroll.js +3 -3
- package/source/ScrollableContainerResizeHandler.js +4 -4
- package/source/VirtualScroller.constructor.js +13 -27
- package/source/VirtualScroller.js +26 -13
- package/source/VirtualScroller.layout.js +2 -2
- package/source/VirtualScroller.onRender.js +1 -1
- package/source/VirtualScroller.state.js +8 -0
- package/source/react/VirtualScroller.js +16 -4
- package/source/react/useState.js +1 -2
- package/source/react/useVirtualScroller.js +0 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
<!-- `virtual-scroller`: in `.updateItems()` handle a case when `items.length` is the same, in which case find different items and if those items are rendered then maybe update them on screen and update their height, if the items are past rendered then maybe just discard all item heights past rendered, if the items are before rendered then maybe ignore and it will jump on scroll up which is kinda acceptable. -->
|
|
2
2
|
|
|
3
|
+
1.14.0 / 05.11.2025
|
|
4
|
+
===================
|
|
5
|
+
|
|
6
|
+
* Rewrote the readme.
|
|
7
|
+
* Added new options to `virtual-scroller/dom`:
|
|
8
|
+
* `readyToStart: boolean` — Disables the automatic calling of `.start()` method at creation time.
|
|
9
|
+
* `readyToRender: boolean` — Disables the automatic calling of `.start()` method at creation time, and also disables the automatic initial render of the list at creation time.
|
|
10
|
+
* The first parameter of `virtual-scroller/dom` class constructor — `itemsContainerElement: Element` — can now be a function that returns a container element. Theoretically, this could support hypothetical edge cases when the container element is not available yet at the time of constructing a `DOMVirtualScroller` class instance.
|
|
11
|
+
* Added `getScrollableContainer()` option that complements the existing `scrollableContainer` option. Theoretically, this could support hypothetical edge cases when the scrollable container element is not available yet at the time of constructing a `DOMVirtualScroller` class instance.
|
|
12
|
+
* Deprecated `tbody` option:
|
|
13
|
+
* Deprecated `tbody` property of the `<VirtualScroller/>` React component. It turns out that this property was partially ignored since May 2022. Now, instead of a developer having to specify it manually, it is automatically derived from the `as` property value: `tbody = as === "tbody"`.
|
|
14
|
+
* Removed `tbody` option of the "core" `VirtualScroller` class: it turns out that it can be detected automatically rather than specified manually.
|
|
15
|
+
|
|
3
16
|
1.12.3 / 23.03.2023
|
|
4
17
|
==================
|
|
5
18
|
|