vlist 3.6.4 → 3.7.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.
@@ -12,6 +12,10 @@ import type { VListPlugin } from "../../core/types";
12
12
  export interface SnapshotsPluginConfig {
13
13
  restore?: ScrollSnapshot;
14
14
  autoSave?: string;
15
+ /** Which saved position restore uses. "legacy" (default) restores the saved
16
+ * pixels when the item count matches; "anchor" restores the saved row and
17
+ * its offset within the row, whatever the saved pixels were. */
18
+ restorePosition?: "legacy" | "anchor";
15
19
  }
16
20
  /** Methods the snapshots plugin adds to the list instance. */
17
21
  export interface SnapshotsMethods {
@@ -15,6 +15,8 @@ import type { VListItem } from "../../types";
15
15
  import type { VListPlugin } from "../../core/types";
16
16
  import type { TableConfig, TableColumn, TableSort } from "./types";
17
17
  import type { TableFeature, TableFeatureMethods } from "./feature";
18
+ import type { ColumnPinMethods } from "./pin";
19
+ import type { ColumnReorderMethods } from "./reorder";
18
20
  export interface TablePluginConfig<T extends VListItem = VListItem> extends TableConfig<T> {
19
21
  /**
20
22
  * Features mounted by this table, in array order. `columnPin()` is one.
@@ -46,5 +48,22 @@ export interface TableMethods<T extends VListItem = VListItem> {
46
48
  export declare function table<T extends VListItem, const F extends readonly TableFeature<T>[]>(config: Omit<TablePluginConfig<T>, "features"> & {
47
49
  features: F;
48
50
  }): VListPlugin<T, TableMethods<T> & TableFeatureMethods<F>>;
51
+ export declare function table<T extends VListItem = VListItem>(config: Omit<TablePluginConfig<T>, "features"> & {
52
+ features: readonly [
53
+ TableFeature<T, ColumnPinMethods>,
54
+ TableFeature<T, ColumnReorderMethods>,
55
+ ...(readonly TableFeature<T>[])
56
+ ] | readonly [
57
+ TableFeature<T, ColumnReorderMethods>,
58
+ TableFeature<T, ColumnPinMethods>,
59
+ ...(readonly TableFeature<T>[])
60
+ ];
61
+ }): VListPlugin<T, TableMethods<T> & ColumnPinMethods & ColumnReorderMethods>;
62
+ export declare function table<T extends VListItem = VListItem>(config: Omit<TablePluginConfig<T>, "features"> & {
63
+ features: readonly [TableFeature<T, ColumnPinMethods>, ...(readonly TableFeature<T>[])] | readonly [...(readonly TableFeature<T>[]), TableFeature<T, ColumnPinMethods>];
64
+ }): VListPlugin<T, TableMethods<T> & ColumnPinMethods>;
65
+ export declare function table<T extends VListItem = VListItem>(config: Omit<TablePluginConfig<T>, "features"> & {
66
+ features: readonly [TableFeature<T, ColumnReorderMethods>, ...(readonly TableFeature<T>[])] | readonly [...(readonly TableFeature<T>[]), TableFeature<T, ColumnReorderMethods>];
67
+ }): VListPlugin<T, TableMethods<T> & ColumnReorderMethods>;
49
68
  export declare function table<T extends VListItem = VListItem>(config: TablePluginConfig<T>): VListPlugin<T, TableMethods<T>>;
50
69
  //# sourceMappingURL=plugin.d.ts.map
package/dist/size.json CHANGED
@@ -1 +1 @@
1
- {"base":{"minified":"27.2","gzipped":"10.4","minBytes":27845,"gzBytes":10678},"synthetic":{"minified":"34.1","gzipped":"13.0","minBytes":34911,"gzBytes":13347},"synthetic + carousel":{"minified":"49.5","gzipped":"18.3","minBytes":50704,"gzBytes":18744},"synthetic + sortable":{"minified":"45.7","gzipped":"16.7","minBytes":46839,"gzBytes":17073},"createStats":{"minified":"27.8","gzipped":"10.7","minBytes":28447,"gzBytes":10907},"synthetic + createStats":{"minified":"34.7","gzipped":"13.3","minBytes":35513,"gzBytes":13569},"native":{"minified":"27.2","gzipped":"10.4","minBytes":27845,"gzBytes":10684},"vue":{"minified":"27.6","gzipped":"10.6","minBytes":28235,"gzBytes":10853},"svelte":{"minified":"27.4","gzipped":"10.5","minBytes":28030,"gzBytes":10754},"solid":{"minified":"27.5","gzipped":"10.6","minBytes":28142,"gzBytes":10817},"react":{"minified":"27.6","gzipped":"10.6","minBytes":28282,"gzBytes":10869},"react + grid":{"minified":"35.3","gzipped":"13.3","minBytes":36193,"gzBytes":13635},"a11y":{"minified":"32.5","gzipped":"12.4","minBytes":33302,"gzBytes":12688},"selection":{"minified":"37.5","gzipped":"13.9","minBytes":38444,"gzBytes":14226},"data":{"minified":"40.8","gzipped":"15.2","minBytes":41816,"gzBytes":15601},"scrollbar":{"minified":"35.3","gzipped":"13.3","minBytes":36195,"gzBytes":13629},"sortable":{"minified":"38.8","gzipped":"14.0","minBytes":39755,"gzBytes":14365},"groups":{"minified":"43.6","gzipped":"16.1","minBytes":44669,"gzBytes":16456},"page":{"minified":"30.3","gzipped":"11.5","minBytes":30992,"gzBytes":11802},"snapshots":{"minified":"30.5","gzipped":"11.6","minBytes":31226,"gzBytes":11849},"transition":{"minified":"33.9","gzipped":"12.4","minBytes":34752,"gzBytes":12710},"autosize":{"minified":"32.1","gzipped":"12.2","minBytes":32886,"gzBytes":12471},"grid":{"minified":"34.9","gzipped":"13.1","minBytes":35756,"gzBytes":13446},"table":{"minified":"45.5","gzipped":"16.7","minBytes":46641,"gzBytes":17134},"masonry":{"minified":"39.6","gzipped":"14.9","minBytes":40517,"gzBytes":15290},"tree":{"minified":"43.5","gzipped":"15.8","minBytes":44532,"gzBytes":16206},"search":{"minified":"36.5","gzipped":"13.9","minBytes":37414,"gzBytes":14265},"carousel":{"minified":"43.4","gzipped":"16.0","minBytes":44476,"gzBytes":16401}}
1
+ {"base":{"minified":"27.2","gzipped":"10.4","minBytes":27845,"gzBytes":10678},"synthetic":{"minified":"34.1","gzipped":"13.0","minBytes":34911,"gzBytes":13347},"synthetic + carousel":{"minified":"49.5","gzipped":"18.3","minBytes":50704,"gzBytes":18744},"synthetic + sortable":{"minified":"45.7","gzipped":"16.7","minBytes":46839,"gzBytes":17073},"createStats":{"minified":"27.8","gzipped":"10.7","minBytes":28447,"gzBytes":10907},"synthetic + createStats":{"minified":"34.7","gzipped":"13.3","minBytes":35513,"gzBytes":13569},"native":{"minified":"27.2","gzipped":"10.4","minBytes":27845,"gzBytes":10684},"vue":{"minified":"27.6","gzipped":"10.6","minBytes":28235,"gzBytes":10853},"svelte":{"minified":"27.4","gzipped":"10.5","minBytes":28030,"gzBytes":10754},"solid":{"minified":"27.5","gzipped":"10.6","minBytes":28142,"gzBytes":10817},"react":{"minified":"27.6","gzipped":"10.6","minBytes":28282,"gzBytes":10869},"react + grid":{"minified":"35.3","gzipped":"13.3","minBytes":36193,"gzBytes":13635},"a11y":{"minified":"32.5","gzipped":"12.4","minBytes":33302,"gzBytes":12688},"selection":{"minified":"37.5","gzipped":"13.9","minBytes":38444,"gzBytes":14226},"data":{"minified":"40.8","gzipped":"15.2","minBytes":41816,"gzBytes":15601},"scrollbar":{"minified":"35.3","gzipped":"13.3","minBytes":36195,"gzBytes":13629},"sortable":{"minified":"38.8","gzipped":"14.0","minBytes":39755,"gzBytes":14365},"groups":{"minified":"43.6","gzipped":"16.1","minBytes":44669,"gzBytes":16456},"page":{"minified":"30.3","gzipped":"11.5","minBytes":30992,"gzBytes":11802},"snapshots":{"minified":"30.8","gzipped":"11.7","minBytes":31589,"gzBytes":12000},"transition":{"minified":"33.9","gzipped":"12.4","minBytes":34752,"gzBytes":12710},"autosize":{"minified":"32.1","gzipped":"12.2","minBytes":32886,"gzBytes":12471},"grid":{"minified":"34.9","gzipped":"13.1","minBytes":35756,"gzBytes":13446},"table":{"minified":"45.5","gzipped":"16.7","minBytes":46641,"gzBytes":17135},"masonry":{"minified":"39.6","gzipped":"14.9","minBytes":40517,"gzBytes":15290},"tree":{"minified":"43.5","gzipped":"15.8","minBytes":44532,"gzBytes":16206},"search":{"minified":"36.5","gzipped":"13.9","minBytes":37414,"gzBytes":14265},"carousel":{"minified":"43.4","gzipped":"16.0","minBytes":44476,"gzBytes":16401}}
package/dist/version.json CHANGED
@@ -1 +1 @@
1
- {"version":"3.6.4","commit":"10298a2","builtAt":"2026-11-10T12:21:43.534Z","released":true}
1
+ {"version":"3.7.0","commit":"35b275a","builtAt":"2026-11-10T16:44:45.245Z","released":true}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vlist",
3
- "version": "3.6.4",
3
+ "version": "3.7.0",
4
4
  "description": "Lightweight, high-performance virtual list with zero dependencies",
5
5
  "author": {
6
6
  "name": "Floor IO",