@tanstack/table-core 8.11.2 → 8.11.3
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/LICENSE +21 -0
- package/build/lib/aggregationFns.js +9 -11
- package/build/lib/aggregationFns.js.map +1 -1
- package/build/lib/columnHelper.js +9 -11
- package/build/lib/columnHelper.js.map +1 -1
- package/build/lib/core/cell.js +9 -11
- package/build/lib/core/cell.js.map +1 -1
- package/build/lib/core/column.js +9 -11
- package/build/lib/core/column.js.map +1 -1
- package/build/lib/core/headers.js +9 -11
- package/build/lib/core/headers.js.map +1 -1
- package/build/lib/core/row.js +9 -11
- package/build/lib/core/row.js.map +1 -1
- package/build/lib/core/table.js +17 -15
- package/build/lib/core/table.js.map +1 -1
- package/build/lib/features/ColumnSizing.d.ts +1 -1
- package/build/lib/features/ColumnSizing.js +9 -11
- package/build/lib/features/ColumnSizing.js.map +1 -1
- package/build/lib/features/Expanding.js +9 -11
- package/build/lib/features/Expanding.js.map +1 -1
- package/build/lib/features/Filters.js +9 -11
- package/build/lib/features/Filters.js.map +1 -1
- package/build/lib/features/Grouping.js +9 -11
- package/build/lib/features/Grouping.js.map +1 -1
- package/build/lib/features/Ordering.js +9 -11
- package/build/lib/features/Ordering.js.map +1 -1
- package/build/lib/features/Pagination.js +9 -11
- package/build/lib/features/Pagination.js.map +1 -1
- package/build/lib/features/Pinning.js +9 -11
- package/build/lib/features/Pinning.js.map +1 -1
- package/build/lib/features/RowSelection.js +9 -11
- package/build/lib/features/RowSelection.js.map +1 -1
- package/build/lib/features/Sorting.js +9 -11
- package/build/lib/features/Sorting.js.map +1 -1
- package/build/lib/features/Visibility.js +9 -11
- package/build/lib/features/Visibility.js.map +1 -1
- package/build/lib/filterFns.js +9 -11
- package/build/lib/filterFns.js.map +1 -1
- package/build/lib/index.esm.js +17 -13
- package/build/lib/index.esm.js.map +1 -1
- package/build/lib/index.js +9 -11
- package/build/lib/index.js.map +1 -1
- package/build/lib/index.mjs +17 -13
- package/build/lib/index.mjs.map +1 -1
- package/build/lib/sortingFns.js +9 -11
- package/build/lib/sortingFns.js.map +1 -1
- package/build/lib/utils/filterRowsUtils.js +9 -11
- package/build/lib/utils/filterRowsUtils.js.map +1 -1
- package/build/lib/utils/getCoreRowModel.js +9 -11
- package/build/lib/utils/getCoreRowModel.js.map +1 -1
- package/build/lib/utils/getExpandedRowModel.js +9 -11
- package/build/lib/utils/getExpandedRowModel.js.map +1 -1
- package/build/lib/utils/getFacetedMinMaxValues.js +9 -11
- package/build/lib/utils/getFacetedMinMaxValues.js.map +1 -1
- package/build/lib/utils/getFacetedRowModel.js +9 -11
- package/build/lib/utils/getFacetedRowModel.js.map +1 -1
- package/build/lib/utils/getFacetedUniqueValues.js +9 -11
- package/build/lib/utils/getFacetedUniqueValues.js.map +1 -1
- package/build/lib/utils/getFilteredRowModel.js +9 -11
- package/build/lib/utils/getFilteredRowModel.js.map +1 -1
- package/build/lib/utils/getGroupedRowModel.js +9 -11
- package/build/lib/utils/getGroupedRowModel.js.map +1 -1
- package/build/lib/utils/getPaginationRowModel.js +9 -11
- package/build/lib/utils/getPaginationRowModel.js.map +1 -1
- package/build/lib/utils/getSortedRowModel.js +9 -11
- package/build/lib/utils/getSortedRowModel.js.map +1 -1
- package/build/lib/utils.js +9 -11
- package/build/lib/utils.js.map +1 -1
- package/build/umd/index.development.js +16 -14
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js +10 -10
- package/build/umd/index.production.js.map +1 -1
- package/package.json +13 -3
- package/src/aggregationFns.ts +0 -0
- package/src/columnHelper.ts +2 -2
- package/src/core/row.ts +2 -1
- package/src/core/table.ts +10 -5
- package/src/features/ColumnSizing.ts +11 -6
- package/src/features/Filters.ts +9 -9
- package/src/features/Grouping.ts +7 -5
- package/src/features/Sorting.ts +3 -3
- package/src/index.ts +0 -0
- package/src/types.ts +4 -2
- package/src/utils/getSortedRowModel.ts +5 -5
- package/src/utils.ts +14 -14
package/build/lib/index.js
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
* table-core
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) TanStack
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
8
|
+
*
|
|
9
|
+
* @license MIT
|
|
10
|
+
*/
|
|
11
11
|
'use strict';
|
|
12
12
|
|
|
13
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
14
|
-
|
|
15
13
|
var table = require('./core/table.js');
|
|
16
14
|
var column = require('./core/column.js');
|
|
17
15
|
var headers = require('./core/headers.js');
|
package/build/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/build/lib/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
* table-core
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) TanStack
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
8
|
+
*
|
|
9
|
+
* @license MIT
|
|
10
|
+
*/
|
|
11
11
|
// Is this type a tuple?
|
|
12
12
|
|
|
13
13
|
// If this type is a tuple, what indices are allowed?
|
|
@@ -2797,13 +2797,17 @@ function createTable(options) {
|
|
|
2797
2797
|
getRowModel: () => {
|
|
2798
2798
|
return table.getPaginationRowModel();
|
|
2799
2799
|
},
|
|
2800
|
+
//in next version, we should just pass in the row model as the optional 2nd arg
|
|
2800
2801
|
getRow: (id, searchAll) => {
|
|
2801
|
-
|
|
2802
|
+
let row = (searchAll ? table.getPrePaginationRowModel() : table.getRowModel()).rowsById[id];
|
|
2802
2803
|
if (!row) {
|
|
2803
|
-
|
|
2804
|
-
|
|
2804
|
+
row = table.getCoreRowModel().rowsById[id];
|
|
2805
|
+
if (!row) {
|
|
2806
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
2807
|
+
throw new Error(`getRow could not find row with ID: ${id}`);
|
|
2808
|
+
}
|
|
2809
|
+
throw new Error();
|
|
2805
2810
|
}
|
|
2806
|
-
throw new Error();
|
|
2807
2811
|
}
|
|
2808
2812
|
return row;
|
|
2809
2813
|
},
|