Socket
Socket
Sign inDemoInstall

@tanstack/table-core

Package Overview
Dependencies
Maintainers
1
Versions
195
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tanstack/table-core - npm Package Compare versions

Comparing version 8.5.20 to 8.5.21

4

build/cjs/utils.js

@@ -15,2 +15,6 @@ /**

// Is this type a tuple?
// If this type is a tuple, what indices are allowed?
///

@@ -17,0 +21,0 @@

624

build/stats-react.json

@@ -13,3 +13,3 @@ {

{
"uid": "2621-64",
"uid": "a321-64",
"name": "utils.ts"

@@ -21,19 +21,19 @@ },

{
"uid": "2621-66",
"uid": "a321-66",
"name": "column.ts"
},
{
"uid": "2621-68",
"uid": "a321-68",
"name": "headers.ts"
},
{
"uid": "2621-96",
"uid": "a321-96",
"name": "table.ts"
},
{
"uid": "2621-98",
"uid": "a321-98",
"name": "cell.ts"
},
{
"uid": "2621-100",
"uid": "a321-100",
"name": "row.ts"

@@ -47,39 +47,39 @@ }

{
"uid": "2621-70",
"uid": "a321-70",
"name": "ColumnSizing.ts"
},
{
"uid": "2621-72",
"uid": "a321-72",
"name": "Expanding.ts"
},
{
"uid": "2621-76",
"uid": "a321-76",
"name": "Filters.ts"
},
{
"uid": "2621-80",
"uid": "a321-80",
"name": "Grouping.ts"
},
{
"uid": "2621-82",
"uid": "a321-82",
"name": "Ordering.ts"
},
{
"uid": "2621-84",
"uid": "a321-84",
"name": "Pagination.ts"
},
{
"uid": "2621-86",
"uid": "a321-86",
"name": "Pinning.ts"
},
{
"uid": "2621-88",
"uid": "a321-88",
"name": "RowSelection.ts"
},
{
"uid": "2621-92",
"uid": "a321-92",
"name": "Sorting.ts"
},
{
"uid": "2621-94",
"uid": "a321-94",
"name": "Visibility.ts"

@@ -90,15 +90,15 @@ }

{
"uid": "2621-74",
"uid": "a321-74",
"name": "filterFns.ts"
},
{
"uid": "2621-78",
"uid": "a321-78",
"name": "aggregationFns.ts"
},
{
"uid": "2621-90",
"uid": "a321-90",
"name": "sortingFns.ts"
},
{
"uid": "2621-102",
"uid": "a321-102",
"name": "columnHelper.ts"

@@ -110,39 +110,39 @@ },

{
"uid": "2621-104",
"uid": "a321-104",
"name": "getCoreRowModel.ts"
},
{
"uid": "2621-106",
"uid": "a321-106",
"name": "filterRowsUtils.ts"
},
{
"uid": "2621-108",
"uid": "a321-108",
"name": "getFilteredRowModel.ts"
},
{
"uid": "2621-110",
"uid": "a321-110",
"name": "getFacetedRowModel.ts"
},
{
"uid": "2621-112",
"uid": "a321-112",
"name": "getFacetedUniqueValues.ts"
},
{
"uid": "2621-114",
"uid": "a321-114",
"name": "getFacetedMinMaxValues.ts"
},
{
"uid": "2621-116",
"uid": "a321-116",
"name": "getSortedRowModel.ts"
},
{
"uid": "2621-118",
"uid": "a321-118",
"name": "getGroupedRowModel.ts"
},
{
"uid": "2621-120",
"uid": "a321-120",
"name": "getExpandedRowModel.ts"
},
{
"uid": "2621-122",
"uid": "a321-122",
"name": "getPaginationRowModel.ts"

@@ -153,3 +153,3 @@ }

{
"uid": "2621-124",
"uid": "a321-124",
"name": "index.ts"

@@ -165,194 +165,194 @@ }

"nodeParts": {
"2621-64": {
"renderedLength": 2191,
"gzipLength": 794,
"a321-64": {
"renderedLength": 2276,
"gzipLength": 835,
"brotliLength": 0,
"mainUid": "2621-63"
"mainUid": "a321-63"
},
"2621-66": {
"a321-66": {
"renderedLength": 2315,
"gzipLength": 789,
"brotliLength": 0,
"mainUid": "2621-65"
"mainUid": "a321-65"
},
"2621-68": {
"a321-68": {
"renderedLength": 12758,
"gzipLength": 2299,
"brotliLength": 0,
"mainUid": "2621-67"
"mainUid": "a321-67"
},
"2621-70": {
"a321-70": {
"renderedLength": 9827,
"gzipLength": 2131,
"brotliLength": 0,
"mainUid": "2621-69"
"mainUid": "a321-69"
},
"2621-72": {
"a321-72": {
"renderedLength": 5137,
"gzipLength": 1235,
"brotliLength": 0,
"mainUid": "2621-71"
"mainUid": "a321-71"
},
"2621-74": {
"a321-74": {
"renderedLength": 3228,
"gzipLength": 759,
"brotliLength": 0,
"mainUid": "2621-73"
"mainUid": "a321-73"
},
"2621-76": {
"a321-76": {
"renderedLength": 9342,
"gzipLength": 1745,
"brotliLength": 0,
"mainUid": "2621-75"
"mainUid": "a321-75"
},
"2621-78": {
"a321-78": {
"renderedLength": 2432,
"gzipLength": 653,
"brotliLength": 0,
"mainUid": "2621-77"
"mainUid": "a321-77"
},
"2621-80": {
"a321-80": {
"renderedLength": 4715,
"gzipLength": 1240,
"brotliLength": 0,
"mainUid": "2621-79"
"mainUid": "a321-79"
},
"2621-82": {
"a321-82": {
"renderedLength": 2151,
"gzipLength": 737,
"brotliLength": 0,
"mainUid": "2621-81"
"mainUid": "a321-81"
},
"2621-84": {
"a321-84": {
"renderedLength": 5418,
"gzipLength": 1251,
"brotliLength": 0,
"mainUid": "2621-83"
"mainUid": "a321-83"
},
"2621-86": {
"a321-86": {
"renderedLength": 6528,
"gzipLength": 1229,
"brotliLength": 0,
"mainUid": "2621-85"
"mainUid": "a321-85"
},
"2621-88": {
"a321-88": {
"renderedLength": 12344,
"gzipLength": 2410,
"brotliLength": 0,
"mainUid": "2621-87"
"mainUid": "a321-87"
},
"2621-90": {
"a321-90": {
"renderedLength": 2933,
"gzipLength": 929,
"brotliLength": 0,
"mainUid": "2621-89"
"mainUid": "a321-89"
},
"2621-92": {
"a321-92": {
"renderedLength": 8211,
"gzipLength": 2005,
"brotliLength": 0,
"mainUid": "2621-91"
"mainUid": "a321-91"
},
"2621-94": {
"a321-94": {
"renderedLength": 4056,
"gzipLength": 979,
"brotliLength": 0,
"mainUid": "2621-93"
"mainUid": "a321-93"
},
"2621-96": {
"a321-96": {
"renderedLength": 6382,
"gzipLength": 1631,
"brotliLength": 0,
"mainUid": "2621-95"
"mainUid": "a321-95"
},
"2621-98": {
"a321-98": {
"renderedLength": 829,
"gzipLength": 381,
"brotliLength": 0,
"mainUid": "2621-97"
"mainUid": "a321-97"
},
"2621-100": {
"a321-100": {
"renderedLength": 2324,
"gzipLength": 679,
"brotliLength": 0,
"mainUid": "2621-99"
"mainUid": "a321-99"
},
"2621-102": {
"a321-102": {
"renderedLength": 1194,
"gzipLength": 414,
"brotliLength": 0,
"mainUid": "2621-101"
"mainUid": "a321-101"
},
"2621-104": {
"a321-104": {
"renderedLength": 1836,
"gzipLength": 729,
"brotliLength": 0,
"mainUid": "2621-103"
"mainUid": "a321-103"
},
"2621-106": {
"a321-106": {
"renderedLength": 2419,
"gzipLength": 590,
"brotliLength": 0,
"mainUid": "2621-105"
"mainUid": "a321-105"
},
"2621-108": {
"a321-108": {
"renderedLength": 3766,
"gzipLength": 1021,
"brotliLength": 0,
"mainUid": "2621-107"
"mainUid": "a321-107"
},
"2621-110": {
"a321-110": {
"renderedLength": 1060,
"gzipLength": 469,
"brotliLength": 0,
"mainUid": "2621-109"
"mainUid": "a321-109"
},
"2621-112": {
"a321-112": {
"renderedLength": 849,
"gzipLength": 364,
"brotliLength": 0,
"mainUid": "2621-111"
"mainUid": "a321-111"
},
"2621-114": {
"a321-114": {
"renderedLength": 1115,
"gzipLength": 430,
"brotliLength": 0,
"mainUid": "2621-113"
"mainUid": "a321-113"
},
"2621-116": {
"a321-116": {
"renderedLength": 2906,
"gzipLength": 955,
"brotliLength": 0,
"mainUid": "2621-115"
"mainUid": "a321-115"
},
"2621-118": {
"a321-118": {
"renderedLength": 5108,
"gzipLength": 1426,
"brotliLength": 0,
"mainUid": "2621-117"
"mainUid": "a321-117"
},
"2621-120": {
"a321-120": {
"renderedLength": 1102,
"gzipLength": 461,
"brotliLength": 0,
"mainUid": "2621-119"
"mainUid": "a321-119"
},
"2621-122": {
"a321-122": {
"renderedLength": 1330,
"gzipLength": 454,
"brotliLength": 0,
"mainUid": "2621-121"
"mainUid": "a321-121"
},
"2621-124": {
"a321-124": {
"renderedLength": 0,
"gzipLength": 0,
"brotliLength": 0,
"mainUid": "2621-123"
"mainUid": "a321-123"
}
},
"nodeMetas": {
"2621-63": {
"a321-63": {
"id": "/packages/table-core/src/utils.ts",
"moduleParts": {
"index.production.js": "2621-64"
"index.production.js": "a321-64"
},

@@ -362,86 +362,86 @@ "imported": [],

{
"uid": "2621-123"
"uid": "a321-123"
},
{
"uid": "2621-95"
"uid": "a321-95"
},
{
"uid": "2621-65"
"uid": "a321-65"
},
{
"uid": "2621-67"
"uid": "a321-67"
},
{
"uid": "2621-99"
"uid": "a321-99"
},
{
"uid": "2621-97"
"uid": "a321-97"
},
{
"uid": "2621-69"
"uid": "a321-69"
},
{
"uid": "2621-71"
"uid": "a321-71"
},
{
"uid": "2621-75"
"uid": "a321-75"
},
{
"uid": "2621-79"
"uid": "a321-79"
},
{
"uid": "2621-81"
"uid": "a321-81"
},
{
"uid": "2621-83"
"uid": "a321-83"
},
{
"uid": "2621-85"
"uid": "a321-85"
},
{
"uid": "2621-87"
"uid": "a321-87"
},
{
"uid": "2621-91"
"uid": "a321-91"
},
{
"uid": "2621-93"
"uid": "a321-93"
},
{
"uid": "2621-103"
"uid": "a321-103"
},
{
"uid": "2621-107"
"uid": "a321-107"
},
{
"uid": "2621-109"
"uid": "a321-109"
},
{
"uid": "2621-111"
"uid": "a321-111"
},
{
"uid": "2621-113"
"uid": "a321-113"
},
{
"uid": "2621-115"
"uid": "a321-115"
},
{
"uid": "2621-117"
"uid": "a321-117"
},
{
"uid": "2621-119"
"uid": "a321-119"
},
{
"uid": "2621-121"
"uid": "a321-121"
}
]
},
"2621-65": {
"a321-65": {
"id": "/packages/table-core/src/core/column.ts",
"moduleParts": {
"index.production.js": "2621-66"
"index.production.js": "a321-66"
},
"imported": [
{
"uid": "2621-63"
"uid": "a321-63"
}

@@ -451,17 +451,17 @@ ],

{
"uid": "2621-123"
"uid": "a321-123"
},
{
"uid": "2621-95"
"uid": "a321-95"
}
]
},
"2621-67": {
"a321-67": {
"id": "/packages/table-core/src/core/headers.ts",
"moduleParts": {
"index.production.js": "2621-68"
"index.production.js": "a321-68"
},
"imported": [
{
"uid": "2621-63"
"uid": "a321-63"
}

@@ -471,17 +471,17 @@ ],

{
"uid": "2621-123"
"uid": "a321-123"
},
{
"uid": "2621-95"
"uid": "a321-95"
}
]
},
"2621-69": {
"a321-69": {
"id": "/packages/table-core/src/features/ColumnSizing.ts",
"moduleParts": {
"index.production.js": "2621-70"
"index.production.js": "a321-70"
},
"imported": [
{
"uid": "2621-63"
"uid": "a321-63"
}

@@ -491,17 +491,17 @@ ],

{
"uid": "2621-123"
"uid": "a321-123"
},
{
"uid": "2621-95"
"uid": "a321-95"
}
]
},
"2621-71": {
"a321-71": {
"id": "/packages/table-core/src/features/Expanding.ts",
"moduleParts": {
"index.production.js": "2621-72"
"index.production.js": "a321-72"
},
"imported": [
{
"uid": "2621-63"
"uid": "a321-63"
}

@@ -511,13 +511,13 @@ ],

{
"uid": "2621-123"
"uid": "a321-123"
},
{
"uid": "2621-95"
"uid": "a321-95"
}
]
},
"2621-73": {
"a321-73": {
"id": "/packages/table-core/src/filterFns.ts",
"moduleParts": {
"index.production.js": "2621-74"
"index.production.js": "a321-74"
},

@@ -527,20 +527,20 @@ "imported": [],

{
"uid": "2621-123"
"uid": "a321-123"
},
{
"uid": "2621-75"
"uid": "a321-75"
}
]
},
"2621-75": {
"a321-75": {
"id": "/packages/table-core/src/features/Filters.ts",
"moduleParts": {
"index.production.js": "2621-76"
"index.production.js": "a321-76"
},
"imported": [
{
"uid": "2621-73"
"uid": "a321-73"
},
{
"uid": "2621-63"
"uid": "a321-63"
}

@@ -550,13 +550,13 @@ ],

{
"uid": "2621-123"
"uid": "a321-123"
},
{
"uid": "2621-95"
"uid": "a321-95"
}
]
},
"2621-77": {
"a321-77": {
"id": "/packages/table-core/src/aggregationFns.ts",
"moduleParts": {
"index.production.js": "2621-78"
"index.production.js": "a321-78"
},

@@ -566,20 +566,20 @@ "imported": [],

{
"uid": "2621-123"
"uid": "a321-123"
},
{
"uid": "2621-79"
"uid": "a321-79"
}
]
},
"2621-79": {
"a321-79": {
"id": "/packages/table-core/src/features/Grouping.ts",
"moduleParts": {
"index.production.js": "2621-80"
"index.production.js": "a321-80"
},
"imported": [
{
"uid": "2621-77"
"uid": "a321-77"
},
{
"uid": "2621-63"
"uid": "a321-63"
}

@@ -589,23 +589,23 @@ ],

{
"uid": "2621-123"
"uid": "a321-123"
},
{
"uid": "2621-95"
"uid": "a321-95"
},
{
"uid": "2621-81"
"uid": "a321-81"
}
]
},
"2621-81": {
"a321-81": {
"id": "/packages/table-core/src/features/Ordering.ts",
"moduleParts": {
"index.production.js": "2621-82"
"index.production.js": "a321-82"
},
"imported": [
{
"uid": "2621-63"
"uid": "a321-63"
},
{
"uid": "2621-79"
"uid": "a321-79"
}

@@ -615,17 +615,17 @@ ],

{
"uid": "2621-123"
"uid": "a321-123"
},
{
"uid": "2621-95"
"uid": "a321-95"
}
]
},
"2621-83": {
"a321-83": {
"id": "/packages/table-core/src/features/Pagination.ts",
"moduleParts": {
"index.production.js": "2621-84"
"index.production.js": "a321-84"
},
"imported": [
{
"uid": "2621-63"
"uid": "a321-63"
}

@@ -635,17 +635,17 @@ ],

{
"uid": "2621-123"
"uid": "a321-123"
},
{
"uid": "2621-95"
"uid": "a321-95"
}
]
},
"2621-85": {
"a321-85": {
"id": "/packages/table-core/src/features/Pinning.ts",
"moduleParts": {
"index.production.js": "2621-86"
"index.production.js": "a321-86"
},
"imported": [
{
"uid": "2621-63"
"uid": "a321-63"
}

@@ -655,17 +655,17 @@ ],

{
"uid": "2621-123"
"uid": "a321-123"
},
{
"uid": "2621-95"
"uid": "a321-95"
}
]
},
"2621-87": {
"a321-87": {
"id": "/packages/table-core/src/features/RowSelection.ts",
"moduleParts": {
"index.production.js": "2621-88"
"index.production.js": "a321-88"
},
"imported": [
{
"uid": "2621-63"
"uid": "a321-63"
}

@@ -675,13 +675,13 @@ ],

{
"uid": "2621-123"
"uid": "a321-123"
},
{
"uid": "2621-95"
"uid": "a321-95"
}
]
},
"2621-89": {
"a321-89": {
"id": "/packages/table-core/src/sortingFns.ts",
"moduleParts": {
"index.production.js": "2621-90"
"index.production.js": "a321-90"
},

@@ -691,20 +691,20 @@ "imported": [],

{
"uid": "2621-123"
"uid": "a321-123"
},
{
"uid": "2621-91"
"uid": "a321-91"
}
]
},
"2621-91": {
"a321-91": {
"id": "/packages/table-core/src/features/Sorting.ts",
"moduleParts": {
"index.production.js": "2621-92"
"index.production.js": "a321-92"
},
"imported": [
{
"uid": "2621-89"
"uid": "a321-89"
},
{
"uid": "2621-63"
"uid": "a321-63"
}

@@ -714,17 +714,17 @@ ],

{
"uid": "2621-123"
"uid": "a321-123"
},
{
"uid": "2621-95"
"uid": "a321-95"
}
]
},
"2621-93": {
"a321-93": {
"id": "/packages/table-core/src/features/Visibility.ts",
"moduleParts": {
"index.production.js": "2621-94"
"index.production.js": "a321-94"
},
"imported": [
{
"uid": "2621-63"
"uid": "a321-63"
}

@@ -734,53 +734,53 @@ ],

{
"uid": "2621-123"
"uid": "a321-123"
},
{
"uid": "2621-95"
"uid": "a321-95"
}
]
},
"2621-95": {
"a321-95": {
"id": "/packages/table-core/src/core/table.ts",
"moduleParts": {
"index.production.js": "2621-96"
"index.production.js": "a321-96"
},
"imported": [
{
"uid": "2621-63"
"uid": "a321-63"
},
{
"uid": "2621-65"
"uid": "a321-65"
},
{
"uid": "2621-67"
"uid": "a321-67"
},
{
"uid": "2621-69"
"uid": "a321-69"
},
{
"uid": "2621-71"
"uid": "a321-71"
},
{
"uid": "2621-75"
"uid": "a321-75"
},
{
"uid": "2621-79"
"uid": "a321-79"
},
{
"uid": "2621-81"
"uid": "a321-81"
},
{
"uid": "2621-83"
"uid": "a321-83"
},
{
"uid": "2621-85"
"uid": "a321-85"
},
{
"uid": "2621-87"
"uid": "a321-87"
},
{
"uid": "2621-91"
"uid": "a321-91"
},
{
"uid": "2621-93"
"uid": "a321-93"
}

@@ -790,14 +790,14 @@ ],

{
"uid": "2621-123"
"uid": "a321-123"
}
]
},
"2621-97": {
"a321-97": {
"id": "/packages/table-core/src/core/cell.ts",
"moduleParts": {
"index.production.js": "2621-98"
"index.production.js": "a321-98"
},
"imported": [
{
"uid": "2621-63"
"uid": "a321-63"
}

@@ -807,20 +807,20 @@ ],

{
"uid": "2621-123"
"uid": "a321-123"
},
{
"uid": "2621-99"
"uid": "a321-99"
}
]
},
"2621-99": {
"a321-99": {
"id": "/packages/table-core/src/core/row.ts",
"moduleParts": {
"index.production.js": "2621-100"
"index.production.js": "a321-100"
},
"imported": [
{
"uid": "2621-63"
"uid": "a321-63"
},
{
"uid": "2621-97"
"uid": "a321-97"
}

@@ -830,19 +830,19 @@ ],

{
"uid": "2621-123"
"uid": "a321-123"
},
{
"uid": "2621-103"
"uid": "a321-103"
},
{
"uid": "2621-117"
"uid": "a321-117"
},
{
"uid": "2621-105"
"uid": "a321-105"
}
]
},
"2621-101": {
"a321-101": {
"id": "/packages/table-core/src/columnHelper.ts",
"moduleParts": {
"index.production.js": "2621-102"
"index.production.js": "a321-102"
},

@@ -852,17 +852,17 @@ "imported": [],

{
"uid": "2621-123"
"uid": "a321-123"
}
]
},
"2621-103": {
"a321-103": {
"id": "/packages/table-core/src/utils/getCoreRowModel.ts",
"moduleParts": {
"index.production.js": "2621-104"
"index.production.js": "a321-104"
},
"imported": [
{
"uid": "2621-99"
"uid": "a321-99"
},
{
"uid": "2621-63"
"uid": "a321-63"
}

@@ -872,14 +872,14 @@ ],

{
"uid": "2621-123"
"uid": "a321-123"
}
]
},
"2621-105": {
"a321-105": {
"id": "/packages/table-core/src/utils/filterRowsUtils.ts",
"moduleParts": {
"index.production.js": "2621-106"
"index.production.js": "a321-106"
},
"imported": [
{
"uid": "2621-99"
"uid": "a321-99"
}

@@ -889,20 +889,20 @@ ],

{
"uid": "2621-107"
"uid": "a321-107"
},
{
"uid": "2621-109"
"uid": "a321-109"
}
]
},
"2621-107": {
"a321-107": {
"id": "/packages/table-core/src/utils/getFilteredRowModel.ts",
"moduleParts": {
"index.production.js": "2621-108"
"index.production.js": "a321-108"
},
"imported": [
{
"uid": "2621-63"
"uid": "a321-63"
},
{
"uid": "2621-105"
"uid": "a321-105"
}

@@ -912,17 +912,17 @@ ],

{
"uid": "2621-123"
"uid": "a321-123"
}
]
},
"2621-109": {
"a321-109": {
"id": "/packages/table-core/src/utils/getFacetedRowModel.ts",
"moduleParts": {
"index.production.js": "2621-110"
"index.production.js": "a321-110"
},
"imported": [
{
"uid": "2621-63"
"uid": "a321-63"
},
{
"uid": "2621-105"
"uid": "a321-105"
}

@@ -932,14 +932,14 @@ ],

{
"uid": "2621-123"
"uid": "a321-123"
}
]
},
"2621-111": {
"a321-111": {
"id": "/packages/table-core/src/utils/getFacetedUniqueValues.ts",
"moduleParts": {
"index.production.js": "2621-112"
"index.production.js": "a321-112"
},
"imported": [
{
"uid": "2621-63"
"uid": "a321-63"
}

@@ -949,14 +949,14 @@ ],

{
"uid": "2621-123"
"uid": "a321-123"
}
]
},
"2621-113": {
"a321-113": {
"id": "/packages/table-core/src/utils/getFacetedMinMaxValues.ts",
"moduleParts": {
"index.production.js": "2621-114"
"index.production.js": "a321-114"
},
"imported": [
{
"uid": "2621-63"
"uid": "a321-63"
}

@@ -966,14 +966,14 @@ ],

{
"uid": "2621-123"
"uid": "a321-123"
}
]
},
"2621-115": {
"a321-115": {
"id": "/packages/table-core/src/utils/getSortedRowModel.ts",
"moduleParts": {
"index.production.js": "2621-116"
"index.production.js": "a321-116"
},
"imported": [
{
"uid": "2621-63"
"uid": "a321-63"
}

@@ -983,17 +983,17 @@ ],

{
"uid": "2621-123"
"uid": "a321-123"
}
]
},
"2621-117": {
"a321-117": {
"id": "/packages/table-core/src/utils/getGroupedRowModel.ts",
"moduleParts": {
"index.production.js": "2621-118"
"index.production.js": "a321-118"
},
"imported": [
{
"uid": "2621-99"
"uid": "a321-99"
},
{
"uid": "2621-63"
"uid": "a321-63"
}

@@ -1003,14 +1003,14 @@ ],

{
"uid": "2621-123"
"uid": "a321-123"
}
]
},
"2621-119": {
"a321-119": {
"id": "/packages/table-core/src/utils/getExpandedRowModel.ts",
"moduleParts": {
"index.production.js": "2621-120"
"index.production.js": "a321-120"
},
"imported": [
{
"uid": "2621-63"
"uid": "a321-63"
}

@@ -1020,20 +1020,20 @@ ],

{
"uid": "2621-123"
"uid": "a321-123"
},
{
"uid": "2621-121"
"uid": "a321-121"
}
]
},
"2621-121": {
"a321-121": {
"id": "/packages/table-core/src/utils/getPaginationRowModel.ts",
"moduleParts": {
"index.production.js": "2621-122"
"index.production.js": "a321-122"
},
"imported": [
{
"uid": "2621-63"
"uid": "a321-63"
},
{
"uid": "2621-119"
"uid": "a321-119"
}

@@ -1043,101 +1043,101 @@ ],

{
"uid": "2621-123"
"uid": "a321-123"
}
]
},
"2621-123": {
"a321-123": {
"id": "/packages/table-core/src/index.ts",
"moduleParts": {
"index.production.js": "2621-124"
"index.production.js": "a321-124"
},
"imported": [
{
"uid": "2621-95"
"uid": "a321-95"
},
{
"uid": "2621-125"
"uid": "a321-125"
},
{
"uid": "2621-65"
"uid": "a321-65"
},
{
"uid": "2621-67"
"uid": "a321-67"
},
{
"uid": "2621-99"
"uid": "a321-99"
},
{
"uid": "2621-97"
"uid": "a321-97"
},
{
"uid": "2621-69"
"uid": "a321-69"
},
{
"uid": "2621-71"
"uid": "a321-71"
},
{
"uid": "2621-75"
"uid": "a321-75"
},
{
"uid": "2621-79"
"uid": "a321-79"
},
{
"uid": "2621-81"
"uid": "a321-81"
},
{
"uid": "2621-83"
"uid": "a321-83"
},
{
"uid": "2621-85"
"uid": "a321-85"
},
{
"uid": "2621-87"
"uid": "a321-87"
},
{
"uid": "2621-91"
"uid": "a321-91"
},
{
"uid": "2621-93"
"uid": "a321-93"
},
{
"uid": "2621-73"
"uid": "a321-73"
},
{
"uid": "2621-89"
"uid": "a321-89"
},
{
"uid": "2621-77"
"uid": "a321-77"
},
{
"uid": "2621-101"
"uid": "a321-101"
},
{
"uid": "2621-63"
"uid": "a321-63"
},
{
"uid": "2621-103"
"uid": "a321-103"
},
{
"uid": "2621-107"
"uid": "a321-107"
},
{
"uid": "2621-109"
"uid": "a321-109"
},
{
"uid": "2621-111"
"uid": "a321-111"
},
{
"uid": "2621-113"
"uid": "a321-113"
},
{
"uid": "2621-115"
"uid": "a321-115"
},
{
"uid": "2621-117"
"uid": "a321-117"
},
{
"uid": "2621-119"
"uid": "a321-119"
},
{
"uid": "2621-121"
"uid": "a321-121"
}

@@ -1148,3 +1148,3 @@ ],

},
"2621-125": {
"a321-125": {
"id": "/packages/table-core/src/types.ts",

@@ -1155,3 +1155,3 @@ "moduleParts": {},

{
"uid": "2621-123"
"uid": "a321-123"
}

@@ -1158,0 +1158,0 @@ ]

@@ -12,13 +12,13 @@ /**

declare type VisibilityState = Record<string, boolean>;
interface VisibilityTableState {
declare type VisibilityTableState = {
columnVisibility: VisibilityState;
}
interface VisibilityOptions {
};
declare type VisibilityOptions = {
onColumnVisibilityChange?: OnChangeFn<VisibilityState>;
enableHiding?: boolean;
}
interface VisibilityDefaultOptions {
};
declare type VisibilityDefaultOptions = {
onColumnVisibilityChange: OnChangeFn<VisibilityState>;
}
interface VisibilityInstance<TData extends RowData> {
};
declare type VisibilityInstance<TData extends RowData> = {
getVisibleFlatColumns: () => Column<TData, unknown>[];

@@ -35,11 +35,11 @@ getVisibleLeafColumns: () => Column<TData, unknown>[];

getToggleAllColumnsVisibilityHandler: () => (event: unknown) => void;
}
interface VisibilityColumnDef {
};
declare type VisibilityColumnDef = {
enableHiding?: boolean;
}
interface VisibilityRow<TData extends RowData> {
};
declare type VisibilityRow<TData extends RowData> = {
_getAllVisibleCells: () => Cell<TData, unknown>[];
getVisibleCells: () => Cell<TData, unknown>[];
}
interface VisibilityColumn {
};
declare type VisibilityColumn = {
getCanHide: () => boolean;

@@ -49,41 +49,41 @@ getIsVisible: () => boolean;

getToggleVisibilityHandler: () => (event: unknown) => void;
}
};
declare const Visibility: TableFeature;
interface ColumnOrderTableState {
declare type ColumnOrderTableState = {
columnOrder: ColumnOrderState;
}
};
declare type ColumnOrderState = string[];
interface ColumnOrderOptions {
declare type ColumnOrderOptions = {
onColumnOrderChange?: OnChangeFn<ColumnOrderState>;
}
interface ColumnOrderDefaultOptions {
};
declare type ColumnOrderDefaultOptions = {
onColumnOrderChange: OnChangeFn<ColumnOrderState>;
}
interface ColumnOrderInstance<TData extends RowData> {
};
declare type ColumnOrderInstance<TData extends RowData> = {
setColumnOrder: (updater: Updater<ColumnOrderState>) => void;
resetColumnOrder: (defaultState?: boolean) => void;
_getOrderColumnsFn: () => (columns: Column<TData, unknown>[]) => Column<TData, unknown>[];
}
};
declare const Ordering: TableFeature;
declare type ColumnPinningPosition = false | 'left' | 'right';
interface ColumnPinningState {
declare type ColumnPinningState = {
left?: string[];
right?: string[];
}
interface ColumnPinningTableState {
};
declare type ColumnPinningTableState = {
columnPinning: ColumnPinningState;
}
interface ColumnPinningOptions {
};
declare type ColumnPinningOptions = {
onColumnPinningChange?: OnChangeFn<ColumnPinningState>;
enablePinning?: boolean;
}
interface ColumnPinningDefaultOptions {
};
declare type ColumnPinningDefaultOptions = {
onColumnPinningChange: OnChangeFn<ColumnPinningState>;
}
interface ColumnPinningColumnDef {
};
declare type ColumnPinningColumnDef = {
enablePinning?: boolean;
}
interface ColumnPinningColumn {
};
declare type ColumnPinningColumn = {
getCanPin: () => boolean;

@@ -93,9 +93,9 @@ getPinnedIndex: () => number;

pin: (position: ColumnPinningPosition) => void;
}
interface ColumnPinningRow<TData extends RowData> {
};
declare type ColumnPinningRow<TData extends RowData> = {
getLeftVisibleCells: () => Cell<TData, unknown>[];
getCenterVisibleCells: () => Cell<TData, unknown>[];
getRightVisibleCells: () => Cell<TData, unknown>[];
}
interface ColumnPinningInstance<TData extends RowData> {
};
declare type ColumnPinningInstance<TData extends RowData> = {
setColumnPinning: (updater: Updater<ColumnPinningState>) => void;

@@ -107,16 +107,16 @@ resetColumnPinning: (defaultState?: boolean) => void;

getCenterLeafColumns: () => Column<TData, unknown>[];
}
};
declare const Pinning: TableFeature;
interface CoreHeaderGroup<TData extends RowData> {
declare type CoreHeaderGroup<TData extends RowData> = {
id: string;
depth: number;
headers: Header<TData, unknown>[];
}
interface HeaderContext<TData, TValue> {
};
declare type HeaderContext<TData, TValue> = {
table: Table<TData>;
header: Header<TData, TValue>;
column: Column<TData, TValue>;
}
interface CoreHeader<TData extends RowData, TValue> {
};
declare type CoreHeader<TData extends RowData, TValue> = {
id: string;

@@ -134,4 +134,4 @@ index: number;

getContext: () => HeaderContext<TData, TValue>;
}
interface HeadersInstance<TData extends RowData> {
};
declare type HeadersInstance<TData extends RowData> = {
getHeaderGroups: () => HeaderGroup<TData>[];

@@ -153,3 +153,3 @@ getLeftHeaderGroups: () => HeaderGroup<TData>[];

getRightLeafHeaders: () => Header<TData, unknown>[];
}
};
declare const Headers: TableFeature;

@@ -171,21 +171,21 @@ declare function buildHeaderGroups<TData extends RowData>(allColumns: Column<TData, unknown>[], columnsToGroup: Column<TData, unknown>[], table: Table<TData>, headerFamily?: 'center' | 'left' | 'right'): HeaderGroup<TData>[];

interface FiltersTableState {
declare type FiltersTableState = {
columnFilters: ColumnFiltersState;
globalFilter: any;
}
};
declare type ColumnFiltersState = ColumnFilter[];
interface ColumnFilter {
declare type ColumnFilter = {
id: string;
value: unknown;
}
interface ResolvedColumnFilter<TData extends RowData> {
};
declare type ResolvedColumnFilter<TData extends RowData> = {
id: string;
resolvedValue: unknown;
filterFn: FilterFn<TData>;
}
interface FilterFn<TData extends RowData> {
};
declare type FilterFn<TData extends RowData> = {
(row: Row<TData>, columnId: string, filterValue: any, addMeta: (meta: FilterMeta) => void): boolean;
resolveFilterValue?: TransformFilterValueFn<TData>;
autoRemove?: ColumnFilterAutoRemoveTestFn<TData>;
}
};
declare type TransformFilterValueFn<TData extends RowData> = (value: any, column?: Column<TData, unknown>) => unknown;

@@ -195,8 +195,8 @@ declare type ColumnFilterAutoRemoveTestFn<TData extends RowData> = (value: any, column?: Column<TData, unknown>) => boolean;

declare type FilterFnOption<TData extends RowData> = 'auto' | BuiltInFilterFn | keyof FilterFns | FilterFn<TData>;
interface FiltersColumnDef<TData extends RowData> {
declare type FiltersColumnDef<TData extends RowData> = {
filterFn?: FilterFnOption<TData>;
enableColumnFilter?: boolean;
enableGlobalFilter?: boolean;
}
interface FiltersColumn<TData extends RowData> {
};
declare type FiltersColumn<TData extends RowData> = {
getAutoFilterFn: () => FilterFn<TData> | undefined;

@@ -216,8 +216,8 @@ getFilterFn: () => FilterFn<TData> | undefined;

_getFacetedMinMaxValues?: () => undefined | [number, number];
}
interface FiltersRow<TData extends RowData> {
};
declare type FiltersRow<TData extends RowData> = {
columnFilters: Record<string, boolean>;
columnFiltersMeta: Record<string, FilterMeta>;
}
interface FiltersOptionsBase<TData extends RowData> {
};
declare type FiltersOptions<TData extends RowData> = {
enableFilters?: boolean;

@@ -236,11 +236,8 @@ manualFiltering?: boolean;

getFacetedMinMaxValues?: (table: Table<TData>, columnId: string) => () => undefined | [number, number];
}
declare type ResolvedFilterFns = keyof FilterFns extends never ? {
} & (keyof FilterFns extends never ? {
filterFns?: Record<string, FilterFn<any>>;
} : {
filterFns: Record<keyof FilterFns, FilterFn<any>>;
};
interface FiltersOptions<TData extends RowData> extends FiltersOptionsBase<TData>, ResolvedFilterFns {
}
interface FiltersInstance<TData extends RowData> {
});
declare type FiltersInstance<TData extends RowData> = {
setColumnFilters: (updater: Updater<ColumnFiltersState>) => void;

@@ -261,3 +258,3 @@ resetColumnFilters: (defaultState?: boolean) => void;

_getGlobalFacetedMinMaxValues?: () => undefined | [number, number];
}
};
declare const Filters: TableFeature;

@@ -278,16 +275,16 @@ declare function shouldAutoRemoveFilter<TData extends RowData>(filterFn?: FilterFn<TData>, value?: any, column?: Column<TData, unknown>): boolean;

declare type SortDirection = 'asc' | 'desc';
interface ColumnSort {
declare type ColumnSort = {
id: string;
desc: boolean;
}
};
declare type SortingState = ColumnSort[];
interface SortingTableState {
declare type SortingTableState = {
sorting: SortingState;
}
interface SortingFn<TData extends RowData> {
};
declare type SortingFn<TData extends RowData> = {
(rowA: Row<TData>, rowB: Row<TData>, columnId: string): number;
}
};
declare type CustomSortingFns<TData extends RowData> = Record<string, SortingFn<TData>>;
declare type SortingFnOption<TData extends RowData> = 'auto' | keyof SortingFns | BuiltInSortingFn | SortingFn<TData>;
interface SortingColumnDef<TData extends RowData> {
declare type SortingColumnDef<TData extends RowData> = {
sortingFn?: SortingFnOption<TData>;

@@ -299,4 +296,4 @@ sortDescFirst?: boolean;

sortUndefined?: false | -1 | 1;
}
interface SortingColumn<TData extends RowData> {
};
declare type SortingColumn<TData extends RowData> = {
getAutoSortingFn: () => SortingFn<TData>;

@@ -314,4 +311,4 @@ getAutoSortDir: () => SortDirection;

getToggleSortingHandler: () => undefined | ((event: unknown) => void);
}
interface SortingOptionsBase {
};
declare type SortingOptions<TData extends RowData> = {
manualSorting?: boolean;

@@ -327,11 +324,8 @@ onSortingChange?: OnChangeFn<SortingState>;

isMultiSortEvent?: (e: unknown) => boolean;
}
declare type ResolvedSortingFns = keyof SortingFns extends never ? {
} & (keyof SortingFns extends never ? {
sortingFns?: Record<string, SortingFn<any>>;
} : {
sortingFns: Record<keyof SortingFns, SortingFn<any>>;
};
interface SortingOptions<TData extends RowData> extends SortingOptionsBase, ResolvedSortingFns {
}
interface SortingInstance<TData extends RowData> {
});
declare type SortingInstance<TData extends RowData> = {
setSorting: (updater: Updater<SortingState>) => void;

@@ -342,3 +336,3 @@ resetSorting: (defaultState?: boolean) => void;

_getSortedRowModel?: () => RowModel<TData>;
}
};
declare const Sorting: TableFeature;

@@ -360,14 +354,14 @@

declare type GroupingState = string[];
interface GroupingTableState {
declare type GroupingTableState = {
grouping: GroupingState;
}
};
declare type AggregationFn<TData extends RowData> = (columnId: string, leafRows: Row<TData>[], childRows: Row<TData>[]) => any;
declare type CustomAggregationFns = Record<string, AggregationFn<any>>;
declare type AggregationFnOption<TData extends RowData> = 'auto' | keyof AggregationFns | BuiltInAggregationFn | AggregationFn<TData>;
interface GroupingColumnDef<TData extends RowData, TValue> {
declare type GroupingColumnDef<TData extends RowData, TValue> = {
aggregationFn?: AggregationFnOption<TData>;
aggregatedCell?: ColumnDefTemplate<ReturnType<Cell<TData, TValue>['getContext']>>;
enableGrouping?: boolean;
}
interface GroupingColumn<TData extends RowData> {
};
declare type GroupingColumn<TData extends RowData> = {
getCanGroup: () => boolean;

@@ -380,4 +374,4 @@ getIsGrouped: () => boolean;

getAggregationFn: () => AggregationFn<TData> | undefined;
}
interface GroupingRow {
};
declare type GroupingRow = {
groupingColumnId?: string;

@@ -387,13 +381,13 @@ groupingValue?: unknown;

_groupingValuesCache: Record<string, any>;
}
interface GroupingCell {
};
declare type GroupingCell = {
getIsGrouped: () => boolean;
getIsPlaceholder: () => boolean;
getIsAggregated: () => boolean;
}
interface ColumnDefaultOptions {
};
declare type ColumnDefaultOptions = {
onGroupingChange: OnChangeFn<GroupingState>;
enableGrouping: boolean;
}
interface GroupingOptionsBase {
};
declare type GroupingOptions = {
manualGrouping?: boolean;

@@ -404,12 +398,9 @@ onGroupingChange?: OnChangeFn<GroupingState>;

groupedColumnMode?: false | 'reorder' | 'remove';
}
declare type ResolvedAggregationFns = keyof AggregationFns extends never ? {
} & (keyof AggregationFns extends never ? {
aggregationFns?: Record<string, AggregationFn<any>>;
} : {
aggregationFns: Record<keyof AggregationFns, AggregationFn<any>>;
};
interface GroupingOptions extends GroupingOptionsBase, ResolvedAggregationFns {
}
});
declare type GroupingColumnMode = false | 'reorder' | 'remove';
interface GroupingInstance<TData extends RowData> {
declare type GroupingInstance<TData extends RowData> = {
setGrouping: (updater: Updater<GroupingState>) => void;

@@ -420,3 +411,3 @@ resetGrouping: (defaultState?: boolean) => void;

_getGroupedRowModel?: () => RowModel<TData>;
}
};
declare const Grouping: TableFeature;

@@ -427,6 +418,6 @@ declare function orderColumns<TData extends RowData>(leafColumns: Column<TData, unknown>[], grouping: string[], groupedColumnMode?: GroupingColumnMode): Column<TData, unknown>[];

declare type ExpandedState = true | Record<string, boolean>;
interface ExpandedTableState {
declare type ExpandedTableState = {
expanded: ExpandedState;
}
interface ExpandedRow {
};
declare type ExpandedRow = {
toggleExpanded: (expanded?: boolean) => void;

@@ -436,4 +427,4 @@ getIsExpanded: () => boolean;

getToggleExpandedHandler: () => () => void;
}
interface ExpandedOptions<TData extends RowData> {
};
declare type ExpandedOptions<TData extends RowData> = {
manualExpanding?: boolean;

@@ -447,4 +438,4 @@ onExpandedChange?: OnChangeFn<ExpandedState>;

paginateExpandedRows?: boolean;
}
interface ExpandedInstance<TData extends RowData> {
};
declare type ExpandedInstance<TData extends RowData> = {
_autoResetExpanded: () => void;

@@ -462,11 +453,11 @@ setExpanded: (updater: Updater<ExpandedState>) => void;

getPreExpandedRowModel: () => RowModel<TData>;
}
};
declare const Expanding: TableFeature;
interface ColumnSizingTableState {
declare type ColumnSizingTableState = {
columnSizing: ColumnSizingState;
columnSizingInfo: ColumnSizingInfoState;
}
};
declare type ColumnSizingState = Record<string, number>;
interface ColumnSizingInfoState {
declare type ColumnSizingInfoState = {
startOffset: null | number;

@@ -478,5 +469,5 @@ startSize: null | number;

columnSizingStart: [string, number][];
}
};
declare type ColumnResizeMode = 'onChange' | 'onEnd';
interface ColumnSizingOptions {
declare type ColumnSizingOptions = {
enableColumnResizing?: boolean;

@@ -486,9 +477,9 @@ columnResizeMode?: ColumnResizeMode;

onColumnSizingInfoChange?: OnChangeFn<ColumnSizingInfoState>;
}
interface ColumnSizingDefaultOptions {
};
declare type ColumnSizingDefaultOptions = {
columnResizeMode: ColumnResizeMode;
onColumnSizingChange: OnChangeFn<ColumnSizingState>;
onColumnSizingInfoChange: OnChangeFn<ColumnSizingInfoState>;
}
interface ColumnSizingInstance {
};
declare type ColumnSizingInstance = {
setColumnSizing: (updater: Updater<ColumnSizingState>) => void;

@@ -502,4 +493,4 @@ setColumnSizingInfo: (updater: Updater<ColumnSizingInfoState>) => void;

getRightTotalSize: () => number;
}
interface ColumnSizingColumnDef {
};
declare type ColumnSizingColumnDef = {
enableResizing?: boolean;

@@ -509,4 +500,4 @@ size?: number;

maxSize?: number;
}
interface ColumnSizingColumn {
};
declare type ColumnSizingColumn = {
getSize: () => number;

@@ -517,8 +508,8 @@ getStart: (position?: ColumnPinningPosition) => number;

resetSize: () => void;
}
interface ColumnSizingHeader {
};
declare type ColumnSizingHeader = {
getSize: () => number;
getStart: (position?: ColumnPinningPosition) => number;
getResizeHandler: () => (event: unknown) => void;
}
};
declare const defaultColumnSizing: {

@@ -532,13 +523,13 @@ size: number;

interface PaginationState {
declare type PaginationState = {
pageIndex: number;
pageSize: number;
}
interface PaginationTableState {
};
declare type PaginationTableState = {
pagination: PaginationState;
}
interface PaginationInitialTableState {
};
declare type PaginationInitialTableState = {
pagination?: Partial<PaginationState>;
}
interface PaginationOptions {
};
declare type PaginationOptions = {
pageCount?: number;

@@ -549,7 +540,7 @@ manualPagination?: boolean;

getPaginationRowModel?: (table: Table<any>) => () => RowModel<any>;
}
interface PaginationDefaultOptions {
};
declare type PaginationDefaultOptions = {
onPaginationChange: OnChangeFn<PaginationState>;
}
interface PaginationInstance<TData extends RowData> {
};
declare type PaginationInstance<TData extends RowData> = {
_autoResetPageIndex: () => void;

@@ -572,10 +563,10 @@ setPagination: (updater: Updater<PaginationState>) => void;

getPageCount: () => number;
}
};
declare const Pagination: TableFeature;
declare type RowSelectionState = Record<string, boolean>;
interface RowSelectionTableState {
declare type RowSelectionTableState = {
rowSelection: RowSelectionState;
}
interface RowSelectionOptions<TData extends RowData> {
};
declare type RowSelectionOptions<TData extends RowData> = {
enableRowSelection?: boolean | ((row: Row<TData>) => boolean);

@@ -585,4 +576,4 @@ enableMultiRowSelection?: boolean | ((row: Row<TData>) => boolean);

onRowSelectionChange?: OnChangeFn<RowSelectionState>;
}
interface RowSelectionRow {
};
declare type RowSelectionRow = {
getIsSelected: () => boolean;

@@ -596,4 +587,4 @@ getIsSomeSelected: () => boolean;

getToggleSelectedHandler: () => (event: unknown) => void;
}
interface RowSelectionInstance<TData extends RowData> {
};
declare type RowSelectionInstance<TData extends RowData> = {
getToggleAllRowsSelectedHandler: () => (event: unknown) => void;

@@ -613,3 +604,3 @@ getToggleAllPageRowsSelectedHandler: () => (event: unknown) => void;

getGroupedSelectedRowModel: () => RowModel<TData>;
}
};
declare const RowSelection: TableFeature;

@@ -620,3 +611,3 @@ declare function selectRowsFn<TData extends RowData>(table: Table<TData>, rowModel: RowModel<TData>): RowModel<TData>;

interface CoreRow<TData extends RowData> {
declare type CoreRow<TData extends RowData> = {
id: string;

@@ -636,6 +627,6 @@ index: number;

_getAllCellsByColumnId: () => Record<string, Cell<TData, unknown>>;
}
};
declare const createRow: <TData extends unknown>(table: Table<TData>, id: string, original: TData, rowIndex: number, depth: number, subRows?: Row<TData>[] | undefined) => Row<TData>;
interface CellContext<TData extends RowData, TValue> {
declare type CellContext<TData extends RowData, TValue> = {
table: Table<TData>;

@@ -647,4 +638,4 @@ column: Column<TData, TValue>;

renderValue: Getter<TValue | null>;
}
interface CoreCell<TData extends RowData, TValue> {
};
declare type CoreCell<TData extends RowData, TValue> = {
id: string;

@@ -656,6 +647,6 @@ getValue: CellContext<TData, TValue>['getValue'];

getContext: () => CellContext<TData, TValue>;
}
};
declare function createCell<TData extends RowData, TValue>(table: Table<TData>, row: Row<TData>, column: Column<TData, TValue>, columnId: string): Cell<TData, TValue>;
interface CoreColumn<TData extends RowData, TValue> {
declare type CoreColumn<TData extends RowData, TValue> = {
id: string;

@@ -669,3 +660,3 @@ depth: number;

getLeafColumns: () => Column<TData, TValue>[];
}
};
declare function createColumn<TData extends RowData, TValue>(table: Table<TData>, columnDef: ColumnDef<TData, TValue>, depth: number, parent?: Column<TData, TValue>): Column<TData, TValue>;

@@ -689,37 +680,26 @@

declare type AnyRender = (Comp: any, props: any) => any;
interface Table<TData extends RowData> extends CoreInstance<TData>, HeadersInstance<TData>, VisibilityInstance<TData>, ColumnOrderInstance<TData>, ColumnPinningInstance<TData>, FiltersInstance<TData>, SortingInstance<TData>, GroupingInstance<TData>, ColumnSizingInstance, ExpandedInstance<TData>, PaginationInstance<TData>, RowSelectionInstance<TData> {
}
interface FeatureOptions<TData extends RowData> extends VisibilityOptions, ColumnOrderOptions, ColumnPinningOptions, FiltersOptions<TData>, SortingOptions<TData>, GroupingOptions, ExpandedOptions<TData>, ColumnSizingOptions, PaginationOptions, RowSelectionOptions<TData> {
}
declare type TableOptionsResolved<TData extends RowData> = CoreOptions<TData> & FeatureOptions<TData>;
interface TableOptions<TData extends RowData> extends PartialKeys<TableOptionsResolved<TData>, 'state' | 'onStateChange' | 'renderFallbackValue'> {
}
interface TableState extends CoreTableState, VisibilityTableState, ColumnOrderTableState, ColumnPinningTableState, FiltersTableState, SortingTableState, ExpandedTableState, GroupingTableState, ColumnSizingTableState, PaginationTableState, RowSelectionTableState {
}
interface CompleteInitialTableState extends CoreTableState, VisibilityTableState, ColumnOrderTableState, ColumnPinningTableState, FiltersTableState, SortingTableState, ExpandedTableState, GroupingTableState, ColumnSizingTableState, PaginationInitialTableState, RowSelectionTableState {
}
interface InitialTableState extends Partial<CompleteInitialTableState> {
}
interface Row<TData extends RowData> extends CoreRow<TData>, VisibilityRow<TData>, ColumnPinningRow<TData>, FiltersRow<TData>, GroupingRow, RowSelectionRow, ExpandedRow {
}
interface RowModel<TData extends RowData> {
declare type Table<TData extends RowData> = CoreInstance<TData> & HeadersInstance<TData> & VisibilityInstance<TData> & ColumnOrderInstance<TData> & ColumnPinningInstance<TData> & FiltersInstance<TData> & SortingInstance<TData> & GroupingInstance<TData> & ColumnSizingInstance & ExpandedInstance<TData> & PaginationInstance<TData> & RowSelectionInstance<TData>;
declare type TableOptionsResolved<TData extends RowData> = CoreOptions<TData> & VisibilityOptions & ColumnOrderOptions & ColumnPinningOptions & FiltersOptions<TData> & SortingOptions<TData> & GroupingOptions & ExpandedOptions<TData> & ColumnSizingOptions & PaginationOptions & RowSelectionOptions<TData>;
declare type TableOptions<TData extends RowData> = PartialKeys<TableOptionsResolved<TData>, 'state' | 'onStateChange' | 'renderFallbackValue'>;
declare type TableState = CoreTableState & VisibilityTableState & ColumnOrderTableState & ColumnPinningTableState & FiltersTableState & SortingTableState & ExpandedTableState & GroupingTableState & ColumnSizingTableState & PaginationTableState & RowSelectionTableState;
declare type InitialTableState = Partial<CoreTableState & VisibilityTableState & ColumnOrderTableState & ColumnPinningTableState & FiltersTableState & SortingTableState & ExpandedTableState & GroupingTableState & ColumnSizingTableState & PaginationInitialTableState & RowSelectionTableState>;
declare type Row<TData extends RowData> = CoreRow<TData> & VisibilityRow<TData> & ColumnPinningRow<TData> & FiltersRow<TData> & GroupingRow & RowSelectionRow & ExpandedRow;
declare type RowModel<TData extends RowData> = {
rows: Row<TData>[];
flatRows: Row<TData>[];
rowsById: Record<string, Row<TData>>;
}
};
declare type AccessorFn<TData extends RowData, TValue = unknown> = (originalRow: TData, index: number) => TValue;
declare type ColumnDefTemplate<TProps extends object> = string | ((props: TProps) => any);
declare type StringOrTemplateHeader<TData, TValue> = string | ColumnDefTemplate<HeaderContext<TData, TValue>>;
interface StringHeaderIdentifier {
declare type StringHeaderIdentifier = {
header: string;
id?: string;
}
interface IdIdentifier<TData extends RowData, TValue> {
};
declare type IdIdentifier<TData extends RowData, TValue> = {
id: string;
header?: StringOrTemplateHeader<TData, TValue>;
}
};
declare type ColumnIdentifiers<TData extends RowData, TValue> = IdIdentifier<TData, TValue> | StringHeaderIdentifier;
interface ColumnDefExtensions<TData extends RowData, TValue = unknown> extends VisibilityColumnDef, ColumnPinningColumnDef, FiltersColumnDef<TData>, SortingColumnDef<TData>, GroupingColumnDef<TData, TValue>, ColumnSizingColumnDef {
}
interface ColumnDefBase<TData extends RowData, TValue = unknown> extends ColumnDefExtensions<TData, TValue> {
declare type ColumnDefBase<TData extends RowData, TValue = unknown> = {
getUniqueValues?: AccessorFn<TData, unknown[]>;

@@ -729,21 +709,19 @@ footer?: ColumnDefTemplate<HeaderContext<TData, TValue>>;

meta?: ColumnMeta<TData, TValue>;
}
interface IdentifiedColumnDef<TData extends RowData, TValue = unknown> extends ColumnDefBase<TData, TValue> {
} & VisibilityColumnDef & ColumnPinningColumnDef & FiltersColumnDef<TData> & SortingColumnDef<TData> & GroupingColumnDef<TData, TValue> & ColumnSizingColumnDef;
declare type IdentifiedColumnDef<TData extends RowData, TValue = unknown> = ColumnDefBase<TData, TValue> & {
id?: string;
header?: StringOrTemplateHeader<TData, TValue>;
}
};
declare type DisplayColumnDef<TData extends RowData, TValue = unknown> = ColumnDefBase<TData, TValue> & ColumnIdentifiers<TData, TValue>;
interface GroupColumnDefBase<TData extends RowData, TValue = unknown> extends ColumnDefBase<TData, TValue> {
declare type GroupColumnDef<TData extends RowData, TValue = unknown> = ColumnDefBase<TData, TValue> & ColumnIdentifiers<TData, TValue> & {
columns?: ColumnDef<TData, any>[];
}
declare type GroupColumnDef<TData extends RowData, TValue = unknown> = GroupColumnDefBase<TData, TValue> & ColumnIdentifiers<TData, TValue>;
interface AccessorFnColumnDefBase<TData extends RowData, TValue = unknown> extends ColumnDefBase<TData, TValue> {
};
declare type AccessorFnColumnDef<TData extends RowData, TValue = unknown> = ColumnDefBase<TData, TValue> & ColumnIdentifiers<TData, TValue> & {
accessorFn: AccessorFn<TData, TValue>;
}
declare type AccessorFnColumnDef<TData extends RowData, TValue = unknown> = AccessorFnColumnDefBase<TData, TValue> & ColumnIdentifiers<TData, TValue>;
interface AccessorKeyColumnDefBase<TData extends RowData, TValue = unknown> extends ColumnDefBase<TData, TValue> {
};
declare type AccessorKeyColumnDef<TData extends RowData, TValue = unknown> = {
id?: string;
} & Partial<ColumnIdentifiers<TData, TValue>> & ColumnDefBase<TData, TValue> & {
accessorKey: string | keyof TData;
}
declare type AccessorKeyColumnDef<TData extends RowData, TValue = unknown> = AccessorKeyColumnDefBase<TData, TValue> & Partial<ColumnIdentifiers<TData, TValue>>;
};
declare type AccessorColumnDef<TData extends RowData, TValue = unknown> = AccessorKeyColumnDef<TData, TValue> | AccessorFnColumnDef<TData, TValue>;

@@ -754,15 +732,9 @@ declare type ColumnDef<TData extends RowData, TValue = unknown> = DisplayColumnDef<TData, TValue> | GroupColumnDef<TData, TValue> | AccessorColumnDef<TData, TValue>;

};
interface Column<TData extends RowData, TValue = unknown> extends CoreColumn<TData, TValue>, VisibilityColumn, ColumnPinningColumn, FiltersColumn<TData>, SortingColumn<TData>, GroupingColumn<TData>, ColumnSizingColumn {
}
interface Cell<TData extends RowData, TValue> extends CoreCell<TData, TValue>, GroupingCell {
}
interface Header<TData extends RowData, TValue> extends CoreHeader<TData, TValue>, ColumnSizingHeader {
}
interface HeaderGroup<TData extends RowData> extends CoreHeaderGroup<TData> {
}
declare type Column<TData extends RowData, TValue = unknown> = CoreColumn<TData, TValue> & VisibilityColumn & ColumnPinningColumn & FiltersColumn<TData> & SortingColumn<TData> & GroupingColumn<TData> & ColumnSizingColumn;
declare type Cell<TData extends RowData, TValue> = CoreCell<TData, TValue> & GroupingCell;
declare type Header<TData extends RowData, TValue> = CoreHeader<TData, TValue> & ColumnSizingHeader;
declare type HeaderGroup<TData extends RowData> = CoreHeaderGroup<TData>;
declare type PartialKeys<T, K extends keyof T> = Omit<T, K> & Partial<T>;
declare type RequiredKeys<T, K extends keyof T> = T & {
[P in K]-?: T[P];
};
declare type PartialKeys<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
declare type RequiredKeys<T, K extends keyof T> = Omit<T, K> & Required<Pick<T, K>>;
declare type Overwrite<T, U extends {

@@ -774,34 +746,11 @@ [TKey in keyof T]?: any;

declare type IsKnown<T, Y, N> = unknown extends T ? N : Y;
declare type IndexableData = Record<string | number, any>;
declare type DeepValue<T, TProp> = T extends IndexableData ? TProp extends `${infer TBranch}.${infer TDeepProp}` ? DeepValue<T[TBranch], TDeepProp> : TProp extends keyof T ? T[TProp] : never : never;
declare type Join<K, P> = K extends string | number ? P extends string | number ? `${K}${'' extends P ? '' : '.'}${P}` : never : never;
declare type Prev = [
never,
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
...0[]
];
declare type ExplicitLeaves = Date | Number | BigInt | String | Set<unknown> | Map<unknown, unknown> | WeakSet<object> | WeakMap<object, unknown>;
declare type DeepKeys<T, D extends number = 10> = [D] extends [never] ? never : T extends ExplicitLeaves ? never : T extends object ? {
[K in keyof T]-?: K extends string | number ? `${K}` | Join<K, DeepKeys<T[K], Prev[D]>> : never;
}[keyof T] : '';
declare type ComputeRange<N extends number, Result extends Array<unknown> = []> = Result['length'] extends N ? Result : ComputeRange<N, [...Result, Result['length']]>;
declare type Index40 = ComputeRange<40>[number];
declare type IsTuple<T> = T extends readonly any[] & {
length: infer Length;
} ? Length extends Index40 ? T : never : never;
declare type AllowedIndexes<Tuple extends ReadonlyArray<any>, Keys extends number = never> = Tuple extends readonly [] ? Keys : Tuple extends readonly [infer _, ...infer Tail] ? AllowedIndexes<Tail, Keys | Tail['length']> : Keys;
declare type DeepKeys<T> = unknown extends T ? keyof T : object extends T ? string : T extends readonly any[] & IsTuple<T> ? AllowedIndexes<T> | DeepKeysPrefix<T, AllowedIndexes<T>> : T extends any[] ? never & 'Dynamic length array indexing is not supported' : T extends Date ? never : T extends object ? (keyof T & string) | DeepKeysPrefix<T, keyof T> : never;
declare type DeepKeysPrefix<T, TPrefix> = TPrefix extends keyof T & (number | string) ? `${TPrefix}.${DeepKeys<T[TPrefix]> & string}` : never;
declare type DeepValue<T, TProp> = T extends Record<string | number, any> ? TProp extends `${infer TBranch}.${infer TDeepProp}` ? DeepValue<T[TBranch], TDeepProp> : T[TProp & string] : never;
declare type NoInfer<T> = [T][T extends any ? 0 : never];

@@ -821,3 +770,3 @@ declare type Getter<TValue> = <TTValue = TValue>() => NoInfer<TTValue>;

interface TableFeature {
declare type TableFeature = {
getDefaultOptions?: (table: any) => any;

@@ -831,6 +780,5 @@ getInitialState?: (initialState?: InitialTableState) => any;

createRow?: (row: any, table: any) => any;
}
interface CoreTableState {
}
interface CoreOptions<TData extends RowData> {
};
declare type CoreTableState = {};
declare type CoreOptions<TData extends RowData> = {
data: TData[];

@@ -854,4 +802,4 @@ state: Partial<TableState>;

renderFallbackValue: any;
}
interface CoreInstance<TData extends RowData> {
};
declare type CoreInstance<TData extends RowData> = {
initialState: TableState;

@@ -877,12 +825,10 @@ reset: () => void;

getColumn: (columnId: string) => Column<TData, unknown>;
}
};
declare function createTable<TData extends RowData>(options: TableOptionsResolved<TData>): Table<TData>;
declare type AccessorType<TData, TAccessor> = TAccessor extends AccessorFn<TData, infer TReturn> ? TReturn : DeepValue<TData, TAccessor>;
declare type Accessor<TData extends RowData> = <TAccessor extends AccessorFn<TData> | string, TValue extends AccessorType<TData, TAccessor>>(accessor: TAccessor, column: TAccessor extends AccessorFn<TData> ? DisplayColumnDef<TData, TValue> : IdentifiedColumnDef<TData, TValue>) => TValue extends never ? never : AccessorColumnDef<TData, AccessorType<TData, TAccessor>>;
interface ColumnHelper<TData extends RowData> {
accessor: Accessor<TData>;
display: (column: DisplayColumnDef<TData>) => DisplayColumnDef<TData>;
group: (column: GroupColumnDef<TData>) => GroupColumnDef<TData>;
}
declare type ColumnHelper<TData extends RowData> = {
accessor: <TAccessor extends AccessorFn<TData> | DeepKeys<TData>, TValue extends TAccessor extends AccessorFn<TData, infer TReturn> ? TReturn : TAccessor extends DeepKeys<TData> ? DeepValue<TData, TAccessor> : never>(accessor: TAccessor, column: TAccessor extends AccessorFn<TData> ? DisplayColumnDef<TData, TValue> : IdentifiedColumnDef<TData, TValue>) => ColumnDef<TData, TValue>;
display: (column: DisplayColumnDef<TData>) => ColumnDef<TData, unknown>;
group: (column: GroupColumnDef<TData>) => ColumnDef<TData, unknown>;
};
declare function createColumnHelper<TData extends RowData>(): ColumnHelper<TData>;

@@ -889,0 +835,0 @@

{
"name": "@tanstack/table-core",
"author": "Tanner Linsley",
"version": "8.5.20",
"version": "8.5.21",
"description": "Headless UI for building powerful tables & datagrids for TS/JS.",

@@ -6,0 +6,0 @@ "license": "MIT",

import {
AccessorColumnDef,
AccessorFn,
ColumnDef,
DisplayColumnDef,

@@ -9,3 +9,3 @@ GroupColumnDef,

} from './types'
import { DeepValue } from './utils'
import { DeepKeys, DeepValue, RequiredKeys } from './utils'

@@ -53,25 +53,18 @@ // type Person = {

type AccessorType<TData, TAccessor> = TAccessor extends AccessorFn<
TData,
infer TReturn
>
? TReturn
: DeepValue<TData, TAccessor>
type Accessor<TData extends RowData> = <
TAccessor extends AccessorFn<TData> | string,
TValue extends AccessorType<TData, TAccessor>
>(
accessor: TAccessor,
column: TAccessor extends AccessorFn<TData>
? DisplayColumnDef<TData, TValue>
: IdentifiedColumnDef<TData, TValue>
) => TValue extends never
? never
: AccessorColumnDef<TData, AccessorType<TData, TAccessor>>
export interface ColumnHelper<TData extends RowData> {
accessor: Accessor<TData>
display: (column: DisplayColumnDef<TData>) => DisplayColumnDef<TData>
group: (column: GroupColumnDef<TData>) => GroupColumnDef<TData>
export type ColumnHelper<TData extends RowData> = {
accessor: <
TAccessor extends AccessorFn<TData> | DeepKeys<TData>,
TValue extends TAccessor extends AccessorFn<TData, infer TReturn>
? TReturn
: TAccessor extends DeepKeys<TData>
? DeepValue<TData, TAccessor>
: never
>(
accessor: TAccessor,
column: TAccessor extends AccessorFn<TData>
? DisplayColumnDef<TData, TValue>
: IdentifiedColumnDef<TData, TValue>
) => ColumnDef<TData, TValue>
display: (column: DisplayColumnDef<TData>) => ColumnDef<TData, unknown>
group: (column: GroupColumnDef<TData>) => ColumnDef<TData, unknown>
}

@@ -94,5 +87,5 @@

},
display: column => column as DisplayColumnDef<TData>,
group: column => column as GroupColumnDef<TData>,
display: column => column as ColumnDef<TData, unknown>,
group: column => column as ColumnDef<TData, unknown>,
}
}
import { RowData, Cell, Column, Row, Table } from '../types'
import { Getter, memo } from '../utils'
export interface CellContext<TData extends RowData, TValue> {
export type CellContext<TData extends RowData, TValue> = {
table: Table<TData>

@@ -13,3 +13,3 @@ column: Column<TData, TValue>

export interface CoreCell<TData extends RowData, TValue> {
export type CoreCell<TData extends RowData, TValue> = {
id: string

@@ -28,3 +28,3 @@ getValue: CellContext<TData, TValue>['getValue']

columnId: string
): Cell<TData, TValue> {
) {
const getRenderValue = () =>

@@ -31,0 +31,0 @@ cell.getValue() ?? table.options.renderFallbackValue

@@ -0,1 +1,2 @@

import { TaggedTemplateExpression } from '@babel/types'
import {

@@ -6,3 +7,5 @@ Column,

ColumnDef,
ColumnDefTemplate,
RowData,
ColumnMeta,
ColumnDefResolved,

@@ -12,3 +15,3 @@ } from '../types'

export interface CoreColumn<TData extends RowData, TValue> {
export type CoreColumn<TData extends RowData, TValue> = {
id: string

@@ -29,3 +32,3 @@ depth: number

parent?: Column<TData, TValue>
): Column<TData, TValue> {
) {
const defaultColumn = table._getDefaultColumnDef()

@@ -32,0 +35,0 @@

@@ -5,3 +5,3 @@ import { RowData, Column, Header, HeaderGroup, Table } from '../types'

export interface CoreHeaderGroup<TData extends RowData> {
export type CoreHeaderGroup<TData extends RowData> = {
id: string

@@ -12,3 +12,3 @@ depth: number

export interface HeaderContext<TData, TValue> {
export type HeaderContext<TData, TValue> = {
table: Table<TData>

@@ -19,3 +19,3 @@ header: Header<TData, TValue>

export interface CoreHeader<TData extends RowData, TValue> {
export type CoreHeader<TData extends RowData, TValue> = {
id: string

@@ -35,3 +35,3 @@ index: number

export interface HeadersInstance<TData extends RowData> {
export type HeadersInstance<TData extends RowData> = {
getHeaderGroups: () => HeaderGroup<TData>[]

@@ -70,3 +70,3 @@ getLeftHeaderGroups: () => HeaderGroup<TData>[]

}
): Header<TData, TValue> {
) {
const id = options.id ?? column.id

@@ -73,0 +73,0 @@

@@ -5,3 +5,3 @@ import { RowData, Cell, Row, Table } from '../types'

export interface CoreRow<TData extends RowData> {
export type CoreRow<TData extends RowData> = {
id: string

@@ -8,0 +8,0 @@ index: number

@@ -1,2 +0,2 @@

import { functionalUpdate, memo, RequiredKeys } from '../utils'
import { flattenBy, functionalUpdate, memo, RequiredKeys } from '../utils'

@@ -8,2 +8,3 @@ import {

Table,
ColumnDefTemplate,
InitialTableState,

@@ -29,3 +30,3 @@ Row,

import { Filters } from '../features/Filters'
import { Grouping } from '../features/Grouping'
import { Grouping, GroupingColumnDef } from '../features/Grouping'
import { Ordering } from '../features/Ordering'

@@ -38,3 +39,3 @@ import { Pagination } from '../features/Pagination'

export interface TableFeature {
export type TableFeature = {
getDefaultOptions?: (table: any) => any

@@ -66,5 +67,5 @@ getInitialState?: (initialState?: InitialTableState) => any

export interface CoreTableState {}
export type CoreTableState = {}
export interface CoreOptions<TData extends RowData> {
export type CoreOptions<TData extends RowData> = {
data: TData[]

@@ -93,3 +94,3 @@ state: Partial<TableState>

export interface CoreInstance<TData extends RowData> {
export type CoreInstance<TData extends RowData> = {
initialState: TableState

@@ -96,0 +97,0 @@ reset: () => void

@@ -8,3 +8,3 @@ import { TableFeature } from '../core/table'

export interface ColumnSizingTableState {
export type ColumnSizingTableState = {
columnSizing: ColumnSizingState

@@ -16,3 +16,3 @@ columnSizingInfo: ColumnSizingInfoState

export interface ColumnSizingInfoState {
export type ColumnSizingInfoState = {
startOffset: null | number

@@ -28,3 +28,3 @@ startSize: null | number

export interface ColumnSizingOptions {
export type ColumnSizingOptions = {
enableColumnResizing?: boolean

@@ -36,3 +36,3 @@ columnResizeMode?: ColumnResizeMode

export interface ColumnSizingDefaultOptions {
export type ColumnSizingDefaultOptions = {
columnResizeMode: ColumnResizeMode

@@ -43,3 +43,3 @@ onColumnSizingChange: OnChangeFn<ColumnSizingState>

export interface ColumnSizingInstance {
export type ColumnSizingInstance = {
setColumnSizing: (updater: Updater<ColumnSizingState>) => void

@@ -55,3 +55,3 @@ setColumnSizingInfo: (updater: Updater<ColumnSizingInfoState>) => void

export interface ColumnSizingColumnDef {
export type ColumnSizingColumnDef = {
enableResizing?: boolean

@@ -63,3 +63,3 @@ size?: number

export interface ColumnSizingColumn {
export type ColumnSizingColumn = {
getSize: () => number

@@ -72,3 +72,3 @@ getStart: (position?: ColumnPinningPosition) => number

export interface ColumnSizingHeader {
export type ColumnSizingHeader = {
getSize: () => number

@@ -75,0 +75,0 @@ getStart: (position?: ColumnPinningPosition) => number

@@ -8,7 +8,7 @@ import { RowModel } from '..'

export type ExpandedState = true | Record<string, boolean>
export interface ExpandedTableState {
export type ExpandedTableState = {
expanded: ExpandedState
}
export interface ExpandedRow {
export type ExpandedRow = {
toggleExpanded: (expanded?: boolean) => void

@@ -20,3 +20,3 @@ getIsExpanded: () => boolean

export interface ExpandedOptions<TData extends RowData> {
export type ExpandedOptions<TData extends RowData> = {
manualExpanding?: boolean

@@ -32,3 +32,3 @@ onExpandedChange?: OnChangeFn<ExpandedState>

export interface ExpandedInstance<TData extends RowData> {
export type ExpandedInstance<TData extends RowData> = {
_autoResetExpanded: () => void

@@ -35,0 +35,0 @@ setExpanded: (updater: Updater<ExpandedState>) => void

@@ -16,3 +16,3 @@ import { RowModel } from '..'

export interface FiltersTableState {
export type FiltersTableState = {
columnFilters: ColumnFiltersState

@@ -24,3 +24,3 @@ globalFilter: any

export interface ColumnFilter {
export type ColumnFilter = {
id: string

@@ -30,3 +30,3 @@ value: unknown

export interface ResolvedColumnFilter<TData extends RowData> {
export type ResolvedColumnFilter<TData extends RowData> = {
id: string

@@ -37,3 +37,3 @@ resolvedValue: unknown

export interface FilterFn<TData extends RowData> {
export type FilterFn<TData extends RowData> = {
(

@@ -71,3 +71,3 @@ row: Row<TData>,

export interface FiltersColumnDef<TData extends RowData> {
export type FiltersColumnDef<TData extends RowData> = {
filterFn?: FilterFnOption<TData>

@@ -78,3 +78,3 @@ enableColumnFilter?: boolean

export interface FiltersColumn<TData extends RowData> {
export type FiltersColumn<TData extends RowData> = {
getAutoFilterFn: () => FilterFn<TData> | undefined

@@ -96,3 +96,3 @@ getFilterFn: () => FilterFn<TData> | undefined

export interface FiltersRow<TData extends RowData> {
export type FiltersRow<TData extends RowData> = {
columnFilters: Record<string, boolean>

@@ -102,3 +102,3 @@ columnFiltersMeta: Record<string, FilterMeta>

interface FiltersOptionsBase<TData extends RowData> {
export type FiltersOptions<TData extends RowData> = {
enableFilters?: boolean

@@ -132,5 +132,3 @@ manualFiltering?: boolean

) => () => undefined | [number, number]
}
type ResolvedFilterFns = keyof FilterFns extends never
} & (keyof FilterFns extends never
? {

@@ -141,9 +139,5 @@ filterFns?: Record<string, FilterFn<any>>

filterFns: Record<keyof FilterFns, FilterFn<any>>
}
})
export interface FiltersOptions<TData extends RowData>
extends FiltersOptionsBase<TData>,
ResolvedFilterFns {}
export interface FiltersInstance<TData extends RowData> {
export type FiltersInstance<TData extends RowData> = {
setColumnFilters: (updater: Updater<ColumnFiltersState>) => void

@@ -150,0 +144,0 @@

@@ -19,3 +19,3 @@ import { RowModel } from '..'

export interface GroupingTableState {
export type GroupingTableState = {
grouping: GroupingState

@@ -38,3 +38,3 @@ }

export interface GroupingColumnDef<TData extends RowData, TValue> {
export type GroupingColumnDef<TData extends RowData, TValue> = {
aggregationFn?: AggregationFnOption<TData>

@@ -47,3 +47,3 @@ aggregatedCell?: ColumnDefTemplate<

export interface GroupingColumn<TData extends RowData> {
export type GroupingColumn<TData extends RowData> = {
getCanGroup: () => boolean

@@ -58,3 +58,3 @@ getIsGrouped: () => boolean

export interface GroupingRow {
export type GroupingRow = {
groupingColumnId?: string

@@ -66,3 +66,3 @@ groupingValue?: unknown

export interface GroupingCell {
export type GroupingCell = {
getIsGrouped: () => boolean

@@ -73,3 +73,3 @@ getIsPlaceholder: () => boolean

export interface ColumnDefaultOptions {
export type ColumnDefaultOptions = {
// Column

@@ -80,3 +80,3 @@ onGroupingChange: OnChangeFn<GroupingState>

interface GroupingOptionsBase {
export type GroupingOptions = {
manualGrouping?: boolean

@@ -87,5 +87,3 @@ onGroupingChange?: OnChangeFn<GroupingState>

groupedColumnMode?: false | 'reorder' | 'remove'
}
type ResolvedAggregationFns = keyof AggregationFns extends never
} & (keyof AggregationFns extends never
? {

@@ -96,11 +94,7 @@ aggregationFns?: Record<string, AggregationFn<any>>

aggregationFns: Record<keyof AggregationFns, AggregationFn<any>>
}
})
export interface GroupingOptions
extends GroupingOptionsBase,
ResolvedAggregationFns {}
export type GroupingColumnMode = false | 'reorder' | 'remove'
export interface GroupingInstance<TData extends RowData> {
export type GroupingInstance<TData extends RowData> = {
setGrouping: (updater: Updater<GroupingState>) => void

@@ -107,0 +101,0 @@ resetGrouping: (defaultState?: boolean) => void

@@ -5,6 +5,6 @@ import { makeStateUpdater, memo } from '../utils'

import { orderColumns } from './Grouping'
import { Grouping, orderColumns } from './Grouping'
import { TableFeature } from '../core/table'
export interface ColumnOrderTableState {
export type ColumnOrderTableState = {
columnOrder: ColumnOrderState

@@ -15,11 +15,11 @@ }

export interface ColumnOrderOptions {
export type ColumnOrderOptions = {
onColumnOrderChange?: OnChangeFn<ColumnOrderState>
}
export interface ColumnOrderDefaultOptions {
export type ColumnOrderDefaultOptions = {
onColumnOrderChange: OnChangeFn<ColumnOrderState>
}
export interface ColumnOrderInstance<TData extends RowData> {
export type ColumnOrderInstance<TData extends RowData> = {
setColumnOrder: (updater: Updater<ColumnOrderState>) => void

@@ -26,0 +26,0 @@ resetColumnOrder: (defaultState?: boolean) => void

@@ -5,3 +5,3 @@ import { TableFeature } from '../core/table'

export interface PaginationState {
export type PaginationState = {
pageIndex: number

@@ -11,11 +11,11 @@ pageSize: number

export interface PaginationTableState {
export type PaginationTableState = {
pagination: PaginationState
}
export interface PaginationInitialTableState {
export type PaginationInitialTableState = {
pagination?: Partial<PaginationState>
}
export interface PaginationOptions {
export type PaginationOptions = {
pageCount?: number

@@ -28,7 +28,7 @@ manualPagination?: boolean

export interface PaginationDefaultOptions {
export type PaginationDefaultOptions = {
onPaginationChange: OnChangeFn<PaginationState>
}
export interface PaginationInstance<TData extends RowData> {
export type PaginationInstance<TData extends RowData> = {
_autoResetPageIndex: () => void

@@ -35,0 +35,0 @@ setPagination: (updater: Updater<PaginationState>) => void

@@ -15,3 +15,3 @@ import { TableFeature } from '../core/table'

export interface ColumnPinningState {
export type ColumnPinningState = {
left?: string[]

@@ -21,7 +21,7 @@ right?: string[]

export interface ColumnPinningTableState {
export type ColumnPinningTableState = {
columnPinning: ColumnPinningState
}
export interface ColumnPinningOptions {
export type ColumnPinningOptions = {
onColumnPinningChange?: OnChangeFn<ColumnPinningState>

@@ -31,11 +31,11 @@ enablePinning?: boolean

export interface ColumnPinningDefaultOptions {
export type ColumnPinningDefaultOptions = {
onColumnPinningChange: OnChangeFn<ColumnPinningState>
}
export interface ColumnPinningColumnDef {
export type ColumnPinningColumnDef = {
enablePinning?: boolean
}
export interface ColumnPinningColumn {
export type ColumnPinningColumn = {
getCanPin: () => boolean

@@ -47,3 +47,3 @@ getPinnedIndex: () => number

export interface ColumnPinningRow<TData extends RowData> {
export type ColumnPinningRow<TData extends RowData> = {
getLeftVisibleCells: () => Cell<TData, unknown>[]

@@ -54,3 +54,3 @@ getCenterVisibleCells: () => Cell<TData, unknown>[]

export interface ColumnPinningInstance<TData extends RowData> {
export type ColumnPinningInstance<TData extends RowData> = {
setColumnPinning: (updater: Updater<ColumnPinningState>) => void

@@ -57,0 +57,0 @@ resetColumnPinning: (defaultState?: boolean) => void

@@ -7,7 +7,7 @@ import { TableFeature } from '../core/table'

export interface RowSelectionTableState {
export type RowSelectionTableState = {
rowSelection: RowSelectionState
}
export interface RowSelectionOptions<TData extends RowData> {
export type RowSelectionOptions<TData extends RowData> = {
enableRowSelection?: boolean | ((row: Row<TData>) => boolean)

@@ -30,3 +30,3 @@ enableMultiRowSelection?: boolean | ((row: Row<TData>) => boolean)

export interface RowSelectionRow {
export type RowSelectionRow = {
getIsSelected: () => boolean

@@ -42,3 +42,3 @@ getIsSomeSelected: () => boolean

export interface RowSelectionInstance<TData extends RowData> {
export type RowSelectionInstance<TData extends RowData> = {
getToggleAllRowsSelectedHandler: () => (event: unknown) => void

@@ -45,0 +45,0 @@ getToggleAllPageRowsSelectedHandler: () => (event: unknown) => void

@@ -23,3 +23,3 @@ import { RowModel } from '..'

export interface ColumnSort {
export type ColumnSort = {
id: string

@@ -31,7 +31,7 @@ desc: boolean

export interface SortingTableState {
export type SortingTableState = {
sorting: SortingState
}
export interface SortingFn<TData extends RowData> {
export type SortingFn<TData extends RowData> = {
(rowA: Row<TData>, rowB: Row<TData>, columnId: string): number

@@ -51,3 +51,3 @@ }

export interface SortingColumnDef<TData extends RowData> {
export type SortingColumnDef<TData extends RowData> = {
sortingFn?: SortingFnOption<TData>

@@ -61,3 +61,3 @@ sortDescFirst?: boolean

export interface SortingColumn<TData extends RowData> {
export type SortingColumn<TData extends RowData> = {
getAutoSortingFn: () => SortingFn<TData>

@@ -77,3 +77,3 @@ getAutoSortDir: () => SortDirection

interface SortingOptionsBase {
export type SortingOptions<TData extends RowData> = {
manualSorting?: boolean

@@ -89,5 +89,3 @@ onSortingChange?: OnChangeFn<SortingState>

isMultiSortEvent?: (e: unknown) => boolean
}
type ResolvedSortingFns = keyof SortingFns extends never
} & (keyof SortingFns extends never
? {

@@ -98,9 +96,5 @@ sortingFns?: Record<string, SortingFn<any>>

sortingFns: Record<keyof SortingFns, SortingFn<any>>
}
})
export interface SortingOptions<TData extends RowData>
extends SortingOptionsBase,
ResolvedSortingFns {}
export interface SortingInstance<TData extends RowData> {
export type SortingInstance<TData extends RowData> = {
setSorting: (updater: Updater<SortingState>) => void

@@ -107,0 +101,0 @@ resetSorting: (defaultState?: boolean) => void

@@ -15,7 +15,7 @@ import { TableFeature } from '../core/table'

export interface VisibilityTableState {
export type VisibilityTableState = {
columnVisibility: VisibilityState
}
export interface VisibilityOptions {
export type VisibilityOptions = {
onColumnVisibilityChange?: OnChangeFn<VisibilityState>

@@ -25,7 +25,7 @@ enableHiding?: boolean

export interface VisibilityDefaultOptions {
export type VisibilityDefaultOptions = {
onColumnVisibilityChange: OnChangeFn<VisibilityState>
}
export interface VisibilityInstance<TData extends RowData> {
export type VisibilityInstance<TData extends RowData> = {
getVisibleFlatColumns: () => Column<TData, unknown>[]

@@ -44,7 +44,7 @@ getVisibleLeafColumns: () => Column<TData, unknown>[]

export interface VisibilityColumnDef {
export type VisibilityColumnDef = {
enableHiding?: boolean
}
export interface VisibilityRow<TData extends RowData> {
export type VisibilityRow<TData extends RowData> = {
_getAllVisibleCells: () => Cell<TData, unknown>[]

@@ -54,3 +54,3 @@ getVisibleCells: () => Cell<TData, unknown>[]

export interface VisibilityColumn {
export type VisibilityColumn = {
getCanHide: () => boolean

@@ -57,0 +57,0 @@ getIsVisible: () => boolean

@@ -30,2 +30,3 @@ import { CoreOptions, CoreTableState, CoreInstance } from './core/table'

import {
FilterFn,
FiltersColumn,

@@ -46,2 +47,3 @@ FiltersColumnDef,

import {
CustomAggregationFns,
GroupingCell,

@@ -82,3 +84,3 @@ GroupingColumn,

import { CoreRow } from './core/row'
import { PartialKeys, UnionToIntersection } from './utils'
import { DeepKeys, PartialKeys, UnionToIntersection } from './utils'
import { CellContext, CoreCell } from './core/cell'

@@ -88,11 +90,6 @@ import { CoreColumn } from './core/column'

export interface TableMeta<TData extends RowData> {}
export interface ColumnMeta<TData extends RowData, TValue> {}
export interface FilterMeta {}
export interface FilterFns {}
export interface SortingFns {}
export interface AggregationFns {}

@@ -107,75 +104,67 @@

export interface Table<TData extends RowData>
extends CoreInstance<TData>,
HeadersInstance<TData>,
VisibilityInstance<TData>,
ColumnOrderInstance<TData>,
ColumnPinningInstance<TData>,
FiltersInstance<TData>,
SortingInstance<TData>,
GroupingInstance<TData>,
ColumnSizingInstance,
ExpandedInstance<TData>,
PaginationInstance<TData>,
RowSelectionInstance<TData> {}
export type Table<TData extends RowData> = CoreInstance<TData> &
HeadersInstance<TData> &
VisibilityInstance<TData> &
ColumnOrderInstance<TData> &
ColumnPinningInstance<TData> &
FiltersInstance<TData> &
SortingInstance<TData> &
GroupingInstance<TData> &
ColumnSizingInstance &
ExpandedInstance<TData> &
PaginationInstance<TData> &
RowSelectionInstance<TData>
interface FeatureOptions<TData extends RowData>
extends VisibilityOptions,
ColumnOrderOptions,
ColumnPinningOptions,
FiltersOptions<TData>,
SortingOptions<TData>,
GroupingOptions,
ExpandedOptions<TData>,
ColumnSizingOptions,
PaginationOptions,
RowSelectionOptions<TData> {}
export type TableOptionsResolved<TData extends RowData> = CoreOptions<TData> &
FeatureOptions<TData>
VisibilityOptions &
ColumnOrderOptions &
ColumnPinningOptions &
FiltersOptions<TData> &
SortingOptions<TData> &
GroupingOptions &
ExpandedOptions<TData> &
ColumnSizingOptions &
PaginationOptions &
RowSelectionOptions<TData>
export interface TableOptions<TData extends RowData>
extends PartialKeys<
TableOptionsResolved<TData>,
'state' | 'onStateChange' | 'renderFallbackValue'
> {}
export type TableOptions<TData extends RowData> = PartialKeys<
TableOptionsResolved<TData>,
'state' | 'onStateChange' | 'renderFallbackValue'
>
export interface TableState
extends CoreTableState,
VisibilityTableState,
ColumnOrderTableState,
ColumnPinningTableState,
FiltersTableState,
SortingTableState,
ExpandedTableState,
GroupingTableState,
ColumnSizingTableState,
PaginationTableState,
RowSelectionTableState {}
export type TableState = CoreTableState &
VisibilityTableState &
ColumnOrderTableState &
ColumnPinningTableState &
FiltersTableState &
SortingTableState &
ExpandedTableState &
GroupingTableState &
ColumnSizingTableState &
PaginationTableState &
RowSelectionTableState
interface CompleteInitialTableState
extends CoreTableState,
VisibilityTableState,
ColumnOrderTableState,
ColumnPinningTableState,
FiltersTableState,
SortingTableState,
ExpandedTableState,
GroupingTableState,
ColumnSizingTableState,
PaginationInitialTableState,
RowSelectionTableState {}
export type InitialTableState = Partial<
CoreTableState &
VisibilityTableState &
ColumnOrderTableState &
ColumnPinningTableState &
FiltersTableState &
SortingTableState &
ExpandedTableState &
GroupingTableState &
ColumnSizingTableState &
PaginationInitialTableState &
RowSelectionTableState
>
export interface InitialTableState extends Partial<CompleteInitialTableState> {}
export type Row<TData extends RowData> = CoreRow<TData> &
VisibilityRow<TData> &
ColumnPinningRow<TData> &
FiltersRow<TData> &
GroupingRow &
RowSelectionRow &
ExpandedRow
export interface Row<TData extends RowData>
extends CoreRow<TData>,
VisibilityRow<TData>,
ColumnPinningRow<TData>,
FiltersRow<TData>,
GroupingRow,
RowSelectionRow,
ExpandedRow {}
export interface RowModel<TData extends RowData> {
export type RowModel<TData extends RowData> = {
rows: Row<TData>[]

@@ -199,3 +188,3 @@ flatRows: Row<TData>[]

interface StringHeaderIdentifier {
type StringHeaderIdentifier = {
header: string

@@ -205,3 +194,3 @@ id?: string

interface IdIdentifier<TData extends RowData, TValue> {
type IdIdentifier<TData extends RowData, TValue> = {
id: string

@@ -217,12 +206,3 @@ header?: StringOrTemplateHeader<TData, TValue>

interface ColumnDefExtensions<TData extends RowData, TValue = unknown>
extends VisibilityColumnDef,
ColumnPinningColumnDef,
FiltersColumnDef<TData>,
SortingColumnDef<TData>,
GroupingColumnDef<TData, TValue>,
ColumnSizingColumnDef {}
export interface ColumnDefBase<TData extends RowData, TValue = unknown>
extends ColumnDefExtensions<TData, TValue> {
export type ColumnDefBase<TData extends RowData, TValue = unknown> = {
getUniqueValues?: AccessorFn<TData, unknown[]>

@@ -232,8 +212,15 @@ footer?: ColumnDefTemplate<HeaderContext<TData, TValue>>

meta?: ColumnMeta<TData, TValue>
}
} & VisibilityColumnDef &
ColumnPinningColumnDef &
FiltersColumnDef<TData> &
SortingColumnDef<TData> &
GroupingColumnDef<TData, TValue> &
ColumnSizingColumnDef
//
export interface IdentifiedColumnDef<TData extends RowData, TValue = unknown>
extends ColumnDefBase<TData, TValue> {
export type IdentifiedColumnDef<
TData extends RowData,
TValue = unknown
> = ColumnDefBase<TData, TValue> & {
id?: string

@@ -248,34 +235,25 @@ header?: StringOrTemplateHeader<TData, TValue>

interface GroupColumnDefBase<TData extends RowData, TValue = unknown>
extends ColumnDefBase<TData, TValue> {
columns?: ColumnDef<TData, any>[]
}
export type GroupColumnDef<
TData extends RowData,
TValue = unknown
> = GroupColumnDefBase<TData, TValue> & ColumnIdentifiers<TData, TValue>
> = ColumnDefBase<TData, TValue> &
ColumnIdentifiers<TData, TValue> & {
columns?: ColumnDef<TData, any>[]
}
interface AccessorFnColumnDefBase<TData extends RowData, TValue = unknown>
extends ColumnDefBase<TData, TValue> {
accessorFn: AccessorFn<TData, TValue>
}
export type AccessorFnColumnDef<
TData extends RowData,
TValue = unknown
> = AccessorFnColumnDefBase<TData, TValue> & ColumnIdentifiers<TData, TValue>
> = ColumnDefBase<TData, TValue> &
ColumnIdentifiers<TData, TValue> & {
accessorFn: AccessorFn<TData, TValue>
}
interface AccessorKeyColumnDefBase<TData extends RowData, TValue = unknown>
extends ColumnDefBase<TData, TValue> {
export type AccessorKeyColumnDef<TData extends RowData, TValue = unknown> = {
id?: string
accessorKey: string | keyof TData
}
} & Partial<ColumnIdentifiers<TData, TValue>> &
ColumnDefBase<TData, TValue> & {
accessorKey: string | keyof TData
}
export type AccessorKeyColumnDef<
TData extends RowData,
TValue = unknown
> = AccessorKeyColumnDefBase<TData, TValue> &
Partial<ColumnIdentifiers<TData, TValue>>
export type AccessorColumnDef<TData extends RowData, TValue = unknown> =

@@ -299,20 +277,19 @@ | AccessorKeyColumnDef<TData, TValue>

export interface Column<TData extends RowData, TValue = unknown>
extends CoreColumn<TData, TValue>,
ColumnVisibilityColumn,
ColumnPinningColumn,
FiltersColumn<TData>,
SortingColumn<TData>,
GroupingColumn<TData>,
ColumnSizingColumn {}
export type Column<TData extends RowData, TValue = unknown> = CoreColumn<
TData,
TValue
> &
ColumnVisibilityColumn &
ColumnPinningColumn &
FiltersColumn<TData> &
SortingColumn<TData> &
GroupingColumn<TData> &
ColumnSizingColumn
export interface Cell<TData extends RowData, TValue>
extends CoreCell<TData, TValue>,
GroupingCell {}
export type Cell<TData extends RowData, TValue> = CoreCell<TData, TValue> &
GroupingCell
export interface Header<TData extends RowData, TValue>
extends CoreHeader<TData, TValue>,
ColumnSizingHeader {}
export type Header<TData extends RowData, TValue> = CoreHeader<TData, TValue> &
ColumnSizingHeader
export interface HeaderGroup<TData extends RowData>
extends CoreHeaderGroup<TData> {}
export type HeaderGroup<TData extends RowData> = CoreHeaderGroup<TData>
import { TableState, Updater } from './types'
export type PartialKeys<T, K extends keyof T> = Omit<T, K> & Partial<T>
export type RequiredKeys<T, K extends keyof T> = T & { [P in K]-?: T[P] }
export type PartialKeys<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>
export type RequiredKeys<T, K extends keyof T> = Omit<T, K> &
Required<Pick<T, K>>
export type Overwrite<T, U extends { [TKey in keyof T]?: any }> = Omit<

@@ -20,65 +21,51 @@ T,

type IndexableData = Record<string | number, any>
export type DeepValue<T, TProp> = T extends IndexableData
? TProp extends `${infer TBranch}.${infer TDeepProp}`
? DeepValue<T[TBranch], TDeepProp>
: TProp extends keyof T
? T[TProp]
: never
: never
type ComputeRange<
N extends number,
Result extends Array<unknown> = []
> = Result['length'] extends N
? Result
: ComputeRange<N, [...Result, Result['length']]>
type Index40 = ComputeRange<40>[number]
type Join<K, P> = K extends string | number
? P extends string | number
? `${K}${'' extends P ? '' : '.'}${P}`
// Is this type a tuple?
type IsTuple<T> = T extends readonly any[] & { length: infer Length }
? Length extends Index40
? T
: never
: never
type Prev = [
never,
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
...0[]
]
// If this type is a tuple, what indices are allowed?
type AllowedIndexes<
Tuple extends ReadonlyArray<any>,
Keys extends number = never
> = Tuple extends readonly []
? Keys
: Tuple extends readonly [infer _, ...infer Tail]
? AllowedIndexes<Tail, Keys | Tail['length']>
: Keys
type ExplicitLeaves =
| Date
| Number
| BigInt
| String
| Set<unknown>
| Map<unknown, unknown>
| WeakSet<object>
| WeakMap<object, unknown>
export type DeepKeys<T, D extends number = 10> = [D] extends [never]
export type DeepKeys<T> = unknown extends T
? keyof T
: object extends T
? string
: T extends readonly any[] & IsTuple<T>
? AllowedIndexes<T> | DeepKeysPrefix<T, AllowedIndexes<T>>
: T extends any[]
? never & 'Dynamic length array indexing is not supported'
: T extends Date
? never
: T extends ExplicitLeaves
? never
: T extends object
? {
[K in keyof T]-?: K extends string | number
? `${K}` | Join<K, DeepKeys<T[K], Prev[D]>>
: never
}[keyof T]
: ''
? (keyof T & string) | DeepKeysPrefix<T, keyof T>
: never
type DeepKeysPrefix<T, TPrefix> = TPrefix extends keyof T & (number | string)
? `${TPrefix}.${DeepKeys<T[TPrefix]> & string}`
: never
export type DeepValue<T, TProp> = T extends Record<string | number, any>
? TProp extends `${infer TBranch}.${infer TDeepProp}`
? DeepValue<T[TBranch], TDeepProp>
: T[TProp & string]
: never
export type NoInfer<T> = [T][T extends any ? 0 : never]

@@ -85,0 +72,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc