@dolusoft/query-table 3.16.0 → 3.18.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.
@@ -335,6 +335,12 @@ export interface VirtualOptions {
335
335
  * table, else the window (C-85).
336
336
  */
337
337
  scrollElement?: () => HTMLElement | null;
338
+ /**
339
+ * When `rows` change, keep the first row wholly in view where it is, found
340
+ * by `rowKey`, unless the first row is in view (C-119). Needs `rowKey`.
341
+ * Defaults to `false`.
342
+ */
343
+ keepAnchor?: boolean;
338
344
  }
339
345
  /** Options of `rowNavigation` (C-109). */
340
346
  export interface RowNavigationOptions<T> {
@@ -26,6 +26,8 @@ export interface RowWindowOptions<T> {
26
26
  /** The rows in drawing order: pinned top, the others, pinned bottom (C-74). */
27
27
  bodyRows: () => BodyRow<T>[];
28
28
  keyOf: (row: T, index: number) => string | number;
29
+ /** `rowKey` is given: a key names the same row after `rows` change. */
30
+ hasRowKey?: () => boolean;
29
31
  isExpanded: (row: T, index: number) => boolean;
30
32
  /** The `groupBy` prop (C-103); absent, no group is drawn. */
31
33
  groupBy?: () => ((row: T, index: number) => GroupKey | null | undefined) | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dolusoft/query-table",
3
- "version": "3.16.0",
3
+ "version": "3.18.0",
4
4
  "description": "A thin Vue 3 table for server-side data: it renders rows and emits sort, filter, search and paging changes. Built on TanStack Table.",
5
5
  "private": false,
6
6
  "type": "module",
@@ -45,8 +45,8 @@
45
45
  ],
46
46
  "license": "MIT",
47
47
  "dependencies": {
48
- "@dolusoft/query-protocol": "3.16.0",
49
- "@dolusoft/query-table-core": "3.16.0",
48
+ "@dolusoft/query-protocol": "3.18.0",
49
+ "@dolusoft/query-table-core": "3.18.0",
50
50
  "@tanstack/vue-table": "9.2.6"
51
51
  },
52
52
  "devDependencies": {