vlist 2.6.0 → 2.6.1
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/README.github.md +1 -1
- package/README.md +1 -1
- package/dist/config.js +1 -1
- package/dist/index.js +1 -1
- package/dist/size.json +1 -1
- package/dist/utils/grid-nav.d.ts +16 -0
- package/package.json +1 -1
package/dist/size.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"base":{"minified":"27.4","gzipped":"9.9","minBytes":28063,"gzBytes":10126},"a11y":{"minified":"30.
|
|
1
|
+
{"base":{"minified":"27.4","gzipped":"9.9","minBytes":28063,"gzBytes":10126},"a11y":{"minified":"30.7","gzipped":"11.1","minBytes":31393,"gzBytes":11359},"selection":{"minified":"36.8","gzipped":"12.7","minBytes":37682,"gzBytes":13000},"data":{"minified":"41.1","gzipped":"14.7","minBytes":42081,"gzBytes":15067},"scrollbar":{"minified":"34.5","gzipped":"11.9","minBytes":35325,"gzBytes":12177},"sortable":{"minified":"36.8","gzipped":"12.9","minBytes":37696,"gzBytes":13195},"groups":{"minified":"43.3","gzipped":"15.2","minBytes":44380,"gzBytes":15586},"page":{"minified":"29.8","gzipped":"10.7","minBytes":30549,"gzBytes":10910},"snapshots":{"minified":"30.7","gzipped":"11.0","minBytes":31417,"gzBytes":11310},"transition":{"minified":"34.2","gzipped":"11.7","minBytes":34987,"gzBytes":11998},"autosize":{"minified":"29.8","gzipped":"10.7","minBytes":30539,"gzBytes":10996},"grid":{"minified":"34.4","gzipped":"12.3","minBytes":35246,"gzBytes":12622},"table":{"minified":"45.7","gzipped":"15.7","minBytes":46799,"gzBytes":16096},"masonry":{"minified":"38.5","gzipped":"13.9","minBytes":39384,"gzBytes":14234},"tree":{"minified":"42.5","gzipped":"14.9","minBytes":43550,"gzBytes":15271},"search":{"minified":"36.5","gzipped":"13.1","minBytes":37376,"gzBytes":13371},"carousel":{"minified":"36.9","gzipped":"13.3","minBytes":37777,"gzBytes":13656}}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Clamp a PageUp/PageDown target index so it preserves the column in grid mode.
|
|
3
|
+
*
|
|
4
|
+
* For a linear list (`columns <= 1`) this is a plain `[0, total-1]` clamp. In a
|
|
5
|
+
* grid, overshooting the top/bottom should land on the **same column** of the
|
|
6
|
+
* first/last row — not the absolute first/last item, which would duplicate the
|
|
7
|
+
* Home/End behavior (and, on a boundary row, wrongly jump to the corner instead
|
|
8
|
+
* of staying put). See floor/vlist#60.
|
|
9
|
+
*
|
|
10
|
+
* @param target The raw target index (`current ± pageSize`), may be out of range.
|
|
11
|
+
* @param current The current focused index.
|
|
12
|
+
* @param columns Grid column count (`nav.ud`); 1 for a linear list.
|
|
13
|
+
* @param total Total item count.
|
|
14
|
+
*/
|
|
15
|
+
export declare function clampPageTarget(target: number, current: number, columns: number, total: number): number;
|
|
16
|
+
//# sourceMappingURL=grid-nav.d.ts.map
|