@tanstack/table-core 8.0.0-alpha.54 → 8.0.0-alpha.55
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/build/cjs/features/ColumnSizing.js.map +1 -1
- package/build/cjs/features/Headers.js.map +1 -1
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +289 -289
- package/build/types/features/ColumnSizing.d.ts +4 -4
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js.map +1 -1
- package/package.json +1 -1
- package/src/features/ColumnSizing.ts +5 -5
- package/src/features/Headers.ts +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/table-core",
|
|
3
3
|
"author": "Tanner Linsley",
|
|
4
|
-
"version": "8.0.0-alpha.
|
|
4
|
+
"version": "8.0.0-alpha.55",
|
|
5
5
|
"description": "Hooks for building lightweight, fast and extendable datagrids for React",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/tanstack/react-table#readme",
|
|
@@ -12,6 +12,11 @@ import { makeStateUpdater, propGetter } from '../utils'
|
|
|
12
12
|
|
|
13
13
|
//
|
|
14
14
|
|
|
15
|
+
export type ColumnSizingTableState = {
|
|
16
|
+
columnSizing: ColumnSizing
|
|
17
|
+
columnSizingInfo: ColumnSizingInfoState
|
|
18
|
+
}
|
|
19
|
+
|
|
15
20
|
export type ColumnSizing = Record<string, number>
|
|
16
21
|
|
|
17
22
|
export type ColumnSizingInfoState = {
|
|
@@ -23,11 +28,6 @@ export type ColumnSizingInfoState = {
|
|
|
23
28
|
columnSizingStart: [string, number][]
|
|
24
29
|
}
|
|
25
30
|
|
|
26
|
-
export type ColumnSizingTableState = {
|
|
27
|
-
columnSizing: ColumnSizing
|
|
28
|
-
columnSizingInfo: ColumnSizingInfoState
|
|
29
|
-
}
|
|
30
|
-
|
|
31
31
|
export type ColumnResizeMode = 'onChange' | 'onEnd'
|
|
32
32
|
|
|
33
33
|
export type ColumnSizingOptions = {
|
package/src/features/Headers.ts
CHANGED
|
@@ -119,7 +119,7 @@ export const Headers = {
|
|
|
119
119
|
instance.getState().columnPinning.right,
|
|
120
120
|
],
|
|
121
121
|
(allCells, left, right) => {
|
|
122
|
-
const leftAndRight = [...(left ?? []), ...(right ?? [])]
|
|
122
|
+
const leftAndRight: string[] = [...(left ?? []), ...(right ?? [])]
|
|
123
123
|
|
|
124
124
|
return allCells.filter(d => !leftAndRight.includes(d.columnId))
|
|
125
125
|
},
|