@tanstack/table-core
Advanced tools
Comparing version 8.0.0-alpha.19 to 8.0.0-alpha.20
@@ -33,2 +33,3 @@ /** | ||
return { | ||
generics: undefined, | ||
__options: __options != null ? __options : { | ||
@@ -35,0 +36,0 @@ render: function render() { |
@@ -29,5 +29,2 @@ /** | ||
autoResetExpanded: true, | ||
getIsRowExpanded: function getIsRowExpanded(row) { | ||
return !!(row == null ? void 0 : row.original).expanded; | ||
}, | ||
expandSubRows: true, | ||
@@ -107,3 +104,3 @@ paginateExpandedRows: true | ||
var row = instance.getRow(rowId); | ||
var row = instance.getPreExpandedRowModel().rowsById[rowId]; | ||
@@ -119,3 +116,3 @@ if (!row) { | ||
var expanded = instance.getState().expanded; | ||
return !!((_instance$options$get = instance.options.getIsRowExpanded == null ? void 0 : instance.options.getIsRowExpanded(row)) != null ? _instance$options$get : expanded || (expanded == null ? void 0 : expanded[rowId])); | ||
return !!((_instance$options$get = instance.options.getIsRowExpanded == null ? void 0 : instance.options.getIsRowExpanded(row)) != null ? _instance$options$get : expanded === true || (expanded == null ? void 0 : expanded[rowId])); | ||
}, | ||
@@ -194,3 +191,3 @@ getRowCanExpand: function getRowCanExpand(rowId) { | ||
if (!expandRowsFn || // Do not expand if rows are not included in pagination | ||
!paginateExpandedRows || !Object.keys(expanded != null ? expanded : {}).length) { | ||
!paginateExpandedRows || expanded !== true && !Object.keys(expanded != null ? expanded : {}).length) { | ||
return rowModel; | ||
@@ -206,5 +203,2 @@ } | ||
return (_instance$options$deb = instance.options.debugAll) != null ? _instance$options$deb : instance.options.debugTable; | ||
}, | ||
onChange: function onChange() { | ||
instance._notifyPageIndexReset(); | ||
} | ||
@@ -211,0 +205,0 @@ }), |
@@ -137,4 +137,4 @@ /** | ||
pageIndex = _instance$getState$pa.pageIndex, | ||
pageCount = _instance$getState$pa.pageCount, | ||
pageSize = _instance$getState$pa.pageSize; | ||
var pageCount = instance.getPageCount(); | ||
@@ -141,0 +141,0 @@ if (pageCount === -1) { |
@@ -16,3 +16,2 @@ /** | ||
var core = require('./core.js'); | ||
var types = require('./types.js'); | ||
var createTable = require('./createTable.js'); | ||
@@ -41,3 +40,2 @@ var ColumnSizing = require('./features/ColumnSizing.js'); | ||
exports.createTableInstance = core.createTableInstance; | ||
exports.Please_use_the_create_table_column_utilities_to_define_columns = types.Please_use_the_create_table_column_utilities_to_define_columns; | ||
exports.init = createTable.init; | ||
@@ -44,0 +42,0 @@ exports.ColumnSizing = ColumnSizing.ColumnSizing; |
@@ -17,3 +17,2 @@ /** | ||
var expandedRows = []; | ||
var expandSubRows = instance.options.expandSubRows; | ||
@@ -25,3 +24,3 @@ var handleRow = function handleRow(row) { | ||
if (expandSubRows && (_row$subRows = row.subRows) != null && _row$subRows.length && instance.getIsRowExpanded(row.id)) { | ||
if (instance.options.expandSubRows && (_row$subRows = row.subRows) != null && _row$subRows.length && instance.getIsRowExpanded(row.id)) { | ||
row.subRows.forEach(handleRow); | ||
@@ -28,0 +27,0 @@ } |
@@ -10,3 +10,3 @@ { | ||
{ | ||
"uid": "468e-53", | ||
"uid": "eaf8-52", | ||
"name": "\u0000rollupPluginBabelHelpers.js" | ||
@@ -18,54 +18,50 @@ }, | ||
{ | ||
"uid": "468e-55", | ||
"uid": "eaf8-54", | ||
"name": "utils.tsx" | ||
}, | ||
{ | ||
"uid": "468e-57", | ||
"name": "types.ts" | ||
}, | ||
{ | ||
"name": "features", | ||
"children": [ | ||
{ | ||
"uid": "468e-59", | ||
"uid": "eaf8-56", | ||
"name": "Visibility.ts" | ||
}, | ||
{ | ||
"uid": "468e-63", | ||
"uid": "eaf8-60", | ||
"name": "Grouping.ts" | ||
}, | ||
{ | ||
"uid": "468e-65", | ||
"uid": "eaf8-62", | ||
"name": "Ordering.ts" | ||
}, | ||
{ | ||
"uid": "468e-67", | ||
"uid": "eaf8-64", | ||
"name": "Pinning.ts" | ||
}, | ||
{ | ||
"uid": "468e-69", | ||
"uid": "eaf8-66", | ||
"name": "ColumnSizing.ts" | ||
}, | ||
{ | ||
"uid": "468e-71", | ||
"uid": "eaf8-68", | ||
"name": "Headers.ts" | ||
}, | ||
{ | ||
"uid": "468e-75", | ||
"uid": "eaf8-72", | ||
"name": "Filters.ts" | ||
}, | ||
{ | ||
"uid": "468e-79", | ||
"uid": "eaf8-76", | ||
"name": "Sorting.ts" | ||
}, | ||
{ | ||
"uid": "468e-81", | ||
"uid": "eaf8-78", | ||
"name": "Expanding.ts" | ||
}, | ||
{ | ||
"uid": "468e-83", | ||
"uid": "eaf8-80", | ||
"name": "Pagination.ts" | ||
}, | ||
{ | ||
"uid": "468e-85", | ||
"uid": "eaf8-82", | ||
"name": "RowSelection.ts" | ||
@@ -76,19 +72,19 @@ } | ||
{ | ||
"uid": "468e-61", | ||
"uid": "eaf8-58", | ||
"name": "aggregationTypes.ts" | ||
}, | ||
{ | ||
"uid": "468e-73", | ||
"uid": "eaf8-70", | ||
"name": "filterTypes.ts" | ||
}, | ||
{ | ||
"uid": "468e-77", | ||
"uid": "eaf8-74", | ||
"name": "sortTypes.ts" | ||
}, | ||
{ | ||
"uid": "468e-87", | ||
"uid": "eaf8-84", | ||
"name": "core.tsx" | ||
}, | ||
{ | ||
"uid": "468e-89", | ||
"uid": "eaf8-86", | ||
"name": "createTable.tsx" | ||
@@ -100,23 +96,23 @@ }, | ||
{ | ||
"uid": "468e-91", | ||
"uid": "eaf8-88", | ||
"name": "columnFilterRowsFn.ts" | ||
}, | ||
{ | ||
"uid": "468e-93", | ||
"uid": "eaf8-90", | ||
"name": "globalFilterRowsFn.ts" | ||
}, | ||
{ | ||
"uid": "468e-95", | ||
"uid": "eaf8-92", | ||
"name": "sortRowsFn.ts" | ||
}, | ||
{ | ||
"uid": "468e-97", | ||
"uid": "eaf8-94", | ||
"name": "groupRowsFn.ts" | ||
}, | ||
{ | ||
"uid": "468e-99", | ||
"uid": "eaf8-96", | ||
"name": "expandRowsFn.ts" | ||
}, | ||
{ | ||
"uid": "468e-101", | ||
"uid": "eaf8-98", | ||
"name": "paginateRowsFn.ts" | ||
@@ -127,3 +123,3 @@ } | ||
{ | ||
"uid": "468e-103", | ||
"uid": "eaf8-100", | ||
"name": "index.tsx" | ||
@@ -139,164 +135,158 @@ } | ||
"nodeParts": { | ||
"468e-53": { | ||
"eaf8-52": { | ||
"renderedLength": 2695, | ||
"gzipLength": 1065, | ||
"brotliLength": 0, | ||
"mainUid": "468e-52" | ||
"mainUid": "eaf8-51" | ||
}, | ||
"468e-55": { | ||
"eaf8-54": { | ||
"renderedLength": 3906, | ||
"gzipLength": 1358, | ||
"brotliLength": 0, | ||
"mainUid": "468e-54" | ||
"mainUid": "eaf8-53" | ||
}, | ||
"468e-57": { | ||
"renderedLength": 85, | ||
"gzipLength": 95, | ||
"brotliLength": 0, | ||
"mainUid": "468e-56" | ||
}, | ||
"468e-59": { | ||
"eaf8-56": { | ||
"renderedLength": 6367, | ||
"gzipLength": 1219, | ||
"brotliLength": 0, | ||
"mainUid": "468e-58" | ||
"mainUid": "eaf8-55" | ||
}, | ||
"468e-61": { | ||
"eaf8-58": { | ||
"renderedLength": 2520, | ||
"gzipLength": 755, | ||
"brotliLength": 0, | ||
"mainUid": "468e-60" | ||
"mainUid": "eaf8-57" | ||
}, | ||
"468e-63": { | ||
"eaf8-60": { | ||
"renderedLength": 8351, | ||
"gzipLength": 1807, | ||
"brotliLength": 0, | ||
"mainUid": "468e-62" | ||
"mainUid": "eaf8-59" | ||
}, | ||
"468e-65": { | ||
"eaf8-62": { | ||
"renderedLength": 2639, | ||
"gzipLength": 799, | ||
"brotliLength": 0, | ||
"mainUid": "468e-64" | ||
"mainUid": "eaf8-61" | ||
}, | ||
"468e-67": { | ||
"eaf8-64": { | ||
"renderedLength": 5479, | ||
"gzipLength": 1030, | ||
"brotliLength": 0, | ||
"mainUid": "468e-66" | ||
"mainUid": "eaf8-63" | ||
}, | ||
"468e-69": { | ||
"eaf8-66": { | ||
"renderedLength": 10919, | ||
"gzipLength": 2166, | ||
"brotliLength": 0, | ||
"mainUid": "468e-68" | ||
"mainUid": "eaf8-65" | ||
}, | ||
"468e-71": { | ||
"eaf8-68": { | ||
"renderedLength": 23655, | ||
"gzipLength": 3372, | ||
"brotliLength": 0, | ||
"mainUid": "468e-70" | ||
"mainUid": "eaf8-67" | ||
}, | ||
"468e-73": { | ||
"eaf8-70": { | ||
"renderedLength": 4437, | ||
"gzipLength": 786, | ||
"brotliLength": 0, | ||
"mainUid": "468e-72" | ||
"mainUid": "eaf8-69" | ||
}, | ||
"468e-75": { | ||
"eaf8-72": { | ||
"renderedLength": 16506, | ||
"gzipLength": 2898, | ||
"brotliLength": 0, | ||
"mainUid": "468e-74" | ||
"mainUid": "eaf8-71" | ||
}, | ||
"468e-77": { | ||
"eaf8-74": { | ||
"renderedLength": 2752, | ||
"gzipLength": 846, | ||
"brotliLength": 0, | ||
"mainUid": "468e-76" | ||
"mainUid": "eaf8-73" | ||
}, | ||
"468e-79": { | ||
"eaf8-76": { | ||
"renderedLength": 12092, | ||
"gzipLength": 2589, | ||
"brotliLength": 0, | ||
"mainUid": "468e-78" | ||
"mainUid": "eaf8-75" | ||
}, | ||
"468e-81": { | ||
"renderedLength": 7896, | ||
"gzipLength": 1718, | ||
"eaf8-78": { | ||
"renderedLength": 7715, | ||
"gzipLength": 1675, | ||
"brotliLength": 0, | ||
"mainUid": "468e-80" | ||
"mainUid": "eaf8-77" | ||
}, | ||
"468e-83": { | ||
"renderedLength": 6386, | ||
"gzipLength": 1279, | ||
"eaf8-80": { | ||
"renderedLength": 6378, | ||
"gzipLength": 1280, | ||
"brotliLength": 0, | ||
"mainUid": "468e-82" | ||
"mainUid": "eaf8-79" | ||
}, | ||
"468e-85": { | ||
"eaf8-82": { | ||
"renderedLength": 18164, | ||
"gzipLength": 3123, | ||
"brotliLength": 0, | ||
"mainUid": "468e-84" | ||
"mainUid": "eaf8-81" | ||
}, | ||
"468e-87": { | ||
"eaf8-84": { | ||
"renderedLength": 18020, | ||
"gzipLength": 3510, | ||
"brotliLength": 0, | ||
"mainUid": "468e-86" | ||
"mainUid": "eaf8-83" | ||
}, | ||
"468e-89": { | ||
"renderedLength": 1417, | ||
"gzipLength": 402, | ||
"eaf8-86": { | ||
"renderedLength": 1444, | ||
"gzipLength": 413, | ||
"brotliLength": 0, | ||
"mainUid": "468e-88" | ||
"mainUid": "eaf8-85" | ||
}, | ||
"468e-91": { | ||
"eaf8-88": { | ||
"renderedLength": 3174, | ||
"gzipLength": 863, | ||
"brotliLength": 0, | ||
"mainUid": "468e-90" | ||
"mainUid": "eaf8-87" | ||
}, | ||
"468e-93": { | ||
"eaf8-90": { | ||
"renderedLength": 2540, | ||
"gzipLength": 721, | ||
"brotliLength": 0, | ||
"mainUid": "468e-92" | ||
"mainUid": "eaf8-89" | ||
}, | ||
"468e-95": { | ||
"eaf8-92": { | ||
"renderedLength": 2436, | ||
"gzipLength": 818, | ||
"brotliLength": 0, | ||
"mainUid": "468e-94" | ||
"mainUid": "eaf8-91" | ||
}, | ||
"468e-97": { | ||
"eaf8-94": { | ||
"renderedLength": 4814, | ||
"gzipLength": 1358, | ||
"brotliLength": 0, | ||
"mainUid": "468e-96" | ||
"mainUid": "eaf8-93" | ||
}, | ||
"468e-99": { | ||
"renderedLength": 595, | ||
"gzipLength": 266, | ||
"eaf8-96": { | ||
"renderedLength": 556, | ||
"gzipLength": 265, | ||
"brotliLength": 0, | ||
"mainUid": "468e-98" | ||
"mainUid": "eaf8-95" | ||
}, | ||
"468e-101": { | ||
"eaf8-98": { | ||
"renderedLength": 720, | ||
"gzipLength": 281, | ||
"brotliLength": 0, | ||
"mainUid": "468e-100" | ||
"mainUid": "eaf8-97" | ||
}, | ||
"468e-103": { | ||
"eaf8-100": { | ||
"renderedLength": 0, | ||
"gzipLength": 0, | ||
"brotliLength": 0, | ||
"mainUid": "468e-102" | ||
"mainUid": "eaf8-99" | ||
} | ||
}, | ||
"nodeMetas": { | ||
"468e-52": { | ||
"eaf8-51": { | ||
"id": "\u0000rollupPluginBabelHelpers.js", | ||
"moduleParts": { | ||
"index.production.js": "468e-53" | ||
"index.production.js": "eaf8-52" | ||
}, | ||
@@ -306,41 +296,41 @@ "imported": [], | ||
{ | ||
"uid": "468e-86" | ||
"uid": "eaf8-83" | ||
}, | ||
{ | ||
"uid": "468e-88" | ||
"uid": "eaf8-85" | ||
}, | ||
{ | ||
"uid": "468e-68" | ||
"uid": "eaf8-65" | ||
}, | ||
{ | ||
"uid": "468e-80" | ||
"uid": "eaf8-77" | ||
}, | ||
{ | ||
"uid": "468e-82" | ||
"uid": "eaf8-79" | ||
}, | ||
{ | ||
"uid": "468e-84" | ||
"uid": "eaf8-81" | ||
}, | ||
{ | ||
"uid": "468e-78" | ||
"uid": "eaf8-75" | ||
}, | ||
{ | ||
"uid": "468e-58" | ||
"uid": "eaf8-55" | ||
}, | ||
{ | ||
"uid": "468e-54" | ||
"uid": "eaf8-53" | ||
}, | ||
{ | ||
"uid": "468e-60" | ||
"uid": "eaf8-57" | ||
} | ||
] | ||
}, | ||
"468e-54": { | ||
"eaf8-53": { | ||
"id": "/packages/table-core/src/utils.tsx", | ||
"moduleParts": { | ||
"index.production.js": "468e-55" | ||
"index.production.js": "eaf8-54" | ||
}, | ||
"imported": [ | ||
{ | ||
"uid": "468e-52" | ||
"uid": "eaf8-51" | ||
} | ||
@@ -350,71 +340,56 @@ ], | ||
{ | ||
"uid": "468e-102" | ||
"uid": "eaf8-99" | ||
}, | ||
{ | ||
"uid": "468e-86" | ||
"uid": "eaf8-83" | ||
}, | ||
{ | ||
"uid": "468e-68" | ||
"uid": "eaf8-65" | ||
}, | ||
{ | ||
"uid": "468e-80" | ||
"uid": "eaf8-77" | ||
}, | ||
{ | ||
"uid": "468e-74" | ||
"uid": "eaf8-71" | ||
}, | ||
{ | ||
"uid": "468e-62" | ||
"uid": "eaf8-59" | ||
}, | ||
{ | ||
"uid": "468e-70" | ||
"uid": "eaf8-67" | ||
}, | ||
{ | ||
"uid": "468e-64" | ||
"uid": "eaf8-61" | ||
}, | ||
{ | ||
"uid": "468e-82" | ||
"uid": "eaf8-79" | ||
}, | ||
{ | ||
"uid": "468e-66" | ||
"uid": "eaf8-63" | ||
}, | ||
{ | ||
"uid": "468e-84" | ||
"uid": "eaf8-81" | ||
}, | ||
{ | ||
"uid": "468e-78" | ||
"uid": "eaf8-75" | ||
}, | ||
{ | ||
"uid": "468e-58" | ||
"uid": "eaf8-55" | ||
}, | ||
{ | ||
"uid": "468e-96" | ||
"uid": "eaf8-93" | ||
} | ||
] | ||
}, | ||
"468e-56": { | ||
"id": "/packages/table-core/src/types.ts", | ||
"moduleParts": { | ||
"index.production.js": "468e-57" | ||
}, | ||
"imported": [], | ||
"importedBy": [ | ||
{ | ||
"uid": "468e-102" | ||
}, | ||
{ | ||
"uid": "468e-86" | ||
} | ||
] | ||
}, | ||
"468e-58": { | ||
"eaf8-55": { | ||
"id": "/packages/table-core/src/features/Visibility.ts", | ||
"moduleParts": { | ||
"index.production.js": "468e-59" | ||
"index.production.js": "eaf8-56" | ||
}, | ||
"imported": [ | ||
{ | ||
"uid": "468e-52" | ||
"uid": "eaf8-51" | ||
}, | ||
{ | ||
"uid": "468e-54" | ||
"uid": "eaf8-53" | ||
} | ||
@@ -424,17 +399,17 @@ ], | ||
{ | ||
"uid": "468e-102" | ||
"uid": "eaf8-99" | ||
}, | ||
{ | ||
"uid": "468e-86" | ||
"uid": "eaf8-83" | ||
} | ||
] | ||
}, | ||
"468e-60": { | ||
"eaf8-57": { | ||
"id": "/packages/table-core/src/aggregationTypes.ts", | ||
"moduleParts": { | ||
"index.production.js": "468e-61" | ||
"index.production.js": "eaf8-58" | ||
}, | ||
"imported": [ | ||
{ | ||
"uid": "468e-52" | ||
"uid": "eaf8-51" | ||
} | ||
@@ -444,17 +419,17 @@ ], | ||
{ | ||
"uid": "468e-62" | ||
"uid": "eaf8-59" | ||
} | ||
] | ||
}, | ||
"468e-62": { | ||
"eaf8-59": { | ||
"id": "/packages/table-core/src/features/Grouping.ts", | ||
"moduleParts": { | ||
"index.production.js": "468e-63" | ||
"index.production.js": "eaf8-60" | ||
}, | ||
"imported": [ | ||
{ | ||
"uid": "468e-60" | ||
"uid": "eaf8-57" | ||
}, | ||
{ | ||
"uid": "468e-54" | ||
"uid": "eaf8-53" | ||
} | ||
@@ -464,23 +439,23 @@ ], | ||
{ | ||
"uid": "468e-102" | ||
"uid": "eaf8-99" | ||
}, | ||
{ | ||
"uid": "468e-86" | ||
"uid": "eaf8-83" | ||
}, | ||
{ | ||
"uid": "468e-64" | ||
"uid": "eaf8-61" | ||
} | ||
] | ||
}, | ||
"468e-64": { | ||
"eaf8-61": { | ||
"id": "/packages/table-core/src/features/Ordering.ts", | ||
"moduleParts": { | ||
"index.production.js": "468e-65" | ||
"index.production.js": "eaf8-62" | ||
}, | ||
"imported": [ | ||
{ | ||
"uid": "468e-54" | ||
"uid": "eaf8-53" | ||
}, | ||
{ | ||
"uid": "468e-62" | ||
"uid": "eaf8-59" | ||
} | ||
@@ -490,17 +465,17 @@ ], | ||
{ | ||
"uid": "468e-102" | ||
"uid": "eaf8-99" | ||
}, | ||
{ | ||
"uid": "468e-86" | ||
"uid": "eaf8-83" | ||
} | ||
] | ||
}, | ||
"468e-66": { | ||
"eaf8-63": { | ||
"id": "/packages/table-core/src/features/Pinning.ts", | ||
"moduleParts": { | ||
"index.production.js": "468e-67" | ||
"index.production.js": "eaf8-64" | ||
}, | ||
"imported": [ | ||
{ | ||
"uid": "468e-54" | ||
"uid": "eaf8-53" | ||
} | ||
@@ -510,20 +485,20 @@ ], | ||
{ | ||
"uid": "468e-102" | ||
"uid": "eaf8-99" | ||
}, | ||
{ | ||
"uid": "468e-86" | ||
"uid": "eaf8-83" | ||
} | ||
] | ||
}, | ||
"468e-68": { | ||
"eaf8-65": { | ||
"id": "/packages/table-core/src/features/ColumnSizing.ts", | ||
"moduleParts": { | ||
"index.production.js": "468e-69" | ||
"index.production.js": "eaf8-66" | ||
}, | ||
"imported": [ | ||
{ | ||
"uid": "468e-52" | ||
"uid": "eaf8-51" | ||
}, | ||
{ | ||
"uid": "468e-54" | ||
"uid": "eaf8-53" | ||
} | ||
@@ -533,23 +508,23 @@ ], | ||
{ | ||
"uid": "468e-102" | ||
"uid": "eaf8-99" | ||
}, | ||
{ | ||
"uid": "468e-86" | ||
"uid": "eaf8-83" | ||
}, | ||
{ | ||
"uid": "468e-70" | ||
"uid": "eaf8-67" | ||
} | ||
] | ||
}, | ||
"468e-70": { | ||
"eaf8-67": { | ||
"id": "/packages/table-core/src/features/Headers.ts", | ||
"moduleParts": { | ||
"index.production.js": "468e-71" | ||
"index.production.js": "eaf8-68" | ||
}, | ||
"imported": [ | ||
{ | ||
"uid": "468e-54" | ||
"uid": "eaf8-53" | ||
}, | ||
{ | ||
"uid": "468e-68" | ||
"uid": "eaf8-65" | ||
} | ||
@@ -559,13 +534,13 @@ ], | ||
{ | ||
"uid": "468e-102" | ||
"uid": "eaf8-99" | ||
}, | ||
{ | ||
"uid": "468e-86" | ||
"uid": "eaf8-83" | ||
} | ||
] | ||
}, | ||
"468e-72": { | ||
"eaf8-69": { | ||
"id": "/packages/table-core/src/filterTypes.ts", | ||
"moduleParts": { | ||
"index.production.js": "468e-73" | ||
"index.production.js": "eaf8-70" | ||
}, | ||
@@ -575,17 +550,17 @@ "imported": [], | ||
{ | ||
"uid": "468e-74" | ||
"uid": "eaf8-71" | ||
} | ||
] | ||
}, | ||
"468e-74": { | ||
"eaf8-71": { | ||
"id": "/packages/table-core/src/features/Filters.ts", | ||
"moduleParts": { | ||
"index.production.js": "468e-75" | ||
"index.production.js": "eaf8-72" | ||
}, | ||
"imported": [ | ||
{ | ||
"uid": "468e-72" | ||
"uid": "eaf8-69" | ||
}, | ||
{ | ||
"uid": "468e-54" | ||
"uid": "eaf8-53" | ||
} | ||
@@ -595,13 +570,13 @@ ], | ||
{ | ||
"uid": "468e-102" | ||
"uid": "eaf8-99" | ||
}, | ||
{ | ||
"uid": "468e-86" | ||
"uid": "eaf8-83" | ||
} | ||
] | ||
}, | ||
"468e-76": { | ||
"eaf8-73": { | ||
"id": "/packages/table-core/src/sortTypes.ts", | ||
"moduleParts": { | ||
"index.production.js": "468e-77" | ||
"index.production.js": "eaf8-74" | ||
}, | ||
@@ -611,20 +586,20 @@ "imported": [], | ||
{ | ||
"uid": "468e-78" | ||
"uid": "eaf8-75" | ||
} | ||
] | ||
}, | ||
"468e-78": { | ||
"eaf8-75": { | ||
"id": "/packages/table-core/src/features/Sorting.ts", | ||
"moduleParts": { | ||
"index.production.js": "468e-79" | ||
"index.production.js": "eaf8-76" | ||
}, | ||
"imported": [ | ||
{ | ||
"uid": "468e-52" | ||
"uid": "eaf8-51" | ||
}, | ||
{ | ||
"uid": "468e-76" | ||
"uid": "eaf8-73" | ||
}, | ||
{ | ||
"uid": "468e-54" | ||
"uid": "eaf8-53" | ||
} | ||
@@ -634,20 +609,20 @@ ], | ||
{ | ||
"uid": "468e-102" | ||
"uid": "eaf8-99" | ||
}, | ||
{ | ||
"uid": "468e-86" | ||
"uid": "eaf8-83" | ||
} | ||
] | ||
}, | ||
"468e-80": { | ||
"eaf8-77": { | ||
"id": "/packages/table-core/src/features/Expanding.ts", | ||
"moduleParts": { | ||
"index.production.js": "468e-81" | ||
"index.production.js": "eaf8-78" | ||
}, | ||
"imported": [ | ||
{ | ||
"uid": "468e-52" | ||
"uid": "eaf8-51" | ||
}, | ||
{ | ||
"uid": "468e-54" | ||
"uid": "eaf8-53" | ||
} | ||
@@ -657,20 +632,20 @@ ], | ||
{ | ||
"uid": "468e-102" | ||
"uid": "eaf8-99" | ||
}, | ||
{ | ||
"uid": "468e-86" | ||
"uid": "eaf8-83" | ||
} | ||
] | ||
}, | ||
"468e-82": { | ||
"eaf8-79": { | ||
"id": "/packages/table-core/src/features/Pagination.ts", | ||
"moduleParts": { | ||
"index.production.js": "468e-83" | ||
"index.production.js": "eaf8-80" | ||
}, | ||
"imported": [ | ||
{ | ||
"uid": "468e-52" | ||
"uid": "eaf8-51" | ||
}, | ||
{ | ||
"uid": "468e-54" | ||
"uid": "eaf8-53" | ||
} | ||
@@ -680,20 +655,20 @@ ], | ||
{ | ||
"uid": "468e-102" | ||
"uid": "eaf8-99" | ||
}, | ||
{ | ||
"uid": "468e-86" | ||
"uid": "eaf8-83" | ||
} | ||
] | ||
}, | ||
"468e-84": { | ||
"eaf8-81": { | ||
"id": "/packages/table-core/src/features/RowSelection.ts", | ||
"moduleParts": { | ||
"index.production.js": "468e-85" | ||
"index.production.js": "eaf8-82" | ||
}, | ||
"imported": [ | ||
{ | ||
"uid": "468e-52" | ||
"uid": "eaf8-51" | ||
}, | ||
{ | ||
"uid": "468e-54" | ||
"uid": "eaf8-53" | ||
} | ||
@@ -703,56 +678,53 @@ ], | ||
{ | ||
"uid": "468e-102" | ||
"uid": "eaf8-99" | ||
}, | ||
{ | ||
"uid": "468e-86" | ||
"uid": "eaf8-83" | ||
} | ||
] | ||
}, | ||
"468e-86": { | ||
"eaf8-83": { | ||
"id": "/packages/table-core/src/core.tsx", | ||
"moduleParts": { | ||
"index.production.js": "468e-87" | ||
"index.production.js": "eaf8-84" | ||
}, | ||
"imported": [ | ||
{ | ||
"uid": "468e-52" | ||
"uid": "eaf8-51" | ||
}, | ||
{ | ||
"uid": "468e-54" | ||
"uid": "eaf8-53" | ||
}, | ||
{ | ||
"uid": "468e-56" | ||
"uid": "eaf8-55" | ||
}, | ||
{ | ||
"uid": "468e-58" | ||
"uid": "eaf8-61" | ||
}, | ||
{ | ||
"uid": "468e-64" | ||
"uid": "eaf8-63" | ||
}, | ||
{ | ||
"uid": "468e-66" | ||
"uid": "eaf8-67" | ||
}, | ||
{ | ||
"uid": "468e-70" | ||
"uid": "eaf8-71" | ||
}, | ||
{ | ||
"uid": "468e-74" | ||
"uid": "eaf8-75" | ||
}, | ||
{ | ||
"uid": "468e-78" | ||
"uid": "eaf8-59" | ||
}, | ||
{ | ||
"uid": "468e-62" | ||
"uid": "eaf8-77" | ||
}, | ||
{ | ||
"uid": "468e-80" | ||
"uid": "eaf8-65" | ||
}, | ||
{ | ||
"uid": "468e-68" | ||
"uid": "eaf8-79" | ||
}, | ||
{ | ||
"uid": "468e-82" | ||
}, | ||
{ | ||
"uid": "468e-84" | ||
"uid": "eaf8-81" | ||
} | ||
@@ -762,14 +734,14 @@ ], | ||
{ | ||
"uid": "468e-102" | ||
"uid": "eaf8-99" | ||
} | ||
] | ||
}, | ||
"468e-88": { | ||
"eaf8-85": { | ||
"id": "/packages/table-core/src/createTable.tsx", | ||
"moduleParts": { | ||
"index.production.js": "468e-89" | ||
"index.production.js": "eaf8-86" | ||
}, | ||
"imported": [ | ||
{ | ||
"uid": "468e-52" | ||
"uid": "eaf8-51" | ||
} | ||
@@ -779,10 +751,10 @@ ], | ||
{ | ||
"uid": "468e-102" | ||
"uid": "eaf8-99" | ||
} | ||
] | ||
}, | ||
"468e-90": { | ||
"eaf8-87": { | ||
"id": "/packages/table-core/src/utils/columnFilterRowsFn.ts", | ||
"moduleParts": { | ||
"index.production.js": "468e-91" | ||
"index.production.js": "eaf8-88" | ||
}, | ||
@@ -792,10 +764,10 @@ "imported": [], | ||
{ | ||
"uid": "468e-102" | ||
"uid": "eaf8-99" | ||
} | ||
] | ||
}, | ||
"468e-92": { | ||
"eaf8-89": { | ||
"id": "/packages/table-core/src/utils/globalFilterRowsFn.ts", | ||
"moduleParts": { | ||
"index.production.js": "468e-93" | ||
"index.production.js": "eaf8-90" | ||
}, | ||
@@ -805,10 +777,10 @@ "imported": [], | ||
{ | ||
"uid": "468e-102" | ||
"uid": "eaf8-99" | ||
} | ||
] | ||
}, | ||
"468e-94": { | ||
"eaf8-91": { | ||
"id": "/packages/table-core/src/utils/sortRowsFn.ts", | ||
"moduleParts": { | ||
"index.production.js": "468e-95" | ||
"index.production.js": "eaf8-92" | ||
}, | ||
@@ -818,14 +790,14 @@ "imported": [], | ||
{ | ||
"uid": "468e-102" | ||
"uid": "eaf8-99" | ||
} | ||
] | ||
}, | ||
"468e-96": { | ||
"eaf8-93": { | ||
"id": "/packages/table-core/src/utils/groupRowsFn.ts", | ||
"moduleParts": { | ||
"index.production.js": "468e-97" | ||
"index.production.js": "eaf8-94" | ||
}, | ||
"imported": [ | ||
{ | ||
"uid": "468e-54" | ||
"uid": "eaf8-53" | ||
} | ||
@@ -835,10 +807,10 @@ ], | ||
{ | ||
"uid": "468e-102" | ||
"uid": "eaf8-99" | ||
} | ||
] | ||
}, | ||
"468e-98": { | ||
"eaf8-95": { | ||
"id": "/packages/table-core/src/utils/expandRowsFn.ts", | ||
"moduleParts": { | ||
"index.production.js": "468e-99" | ||
"index.production.js": "eaf8-96" | ||
}, | ||
@@ -848,17 +820,17 @@ "imported": [], | ||
{ | ||
"uid": "468e-102" | ||
"uid": "eaf8-99" | ||
}, | ||
{ | ||
"uid": "468e-100" | ||
"uid": "eaf8-97" | ||
} | ||
] | ||
}, | ||
"468e-100": { | ||
"eaf8-97": { | ||
"id": "/packages/table-core/src/utils/paginateRowsFn.ts", | ||
"moduleParts": { | ||
"index.production.js": "468e-101" | ||
"index.production.js": "eaf8-98" | ||
}, | ||
"imported": [ | ||
{ | ||
"uid": "468e-98" | ||
"uid": "eaf8-95" | ||
} | ||
@@ -868,74 +840,74 @@ ], | ||
{ | ||
"uid": "468e-102" | ||
"uid": "eaf8-99" | ||
} | ||
] | ||
}, | ||
"468e-102": { | ||
"eaf8-99": { | ||
"id": "/packages/table-core/src/index.tsx", | ||
"moduleParts": { | ||
"index.production.js": "468e-103" | ||
"index.production.js": "eaf8-100" | ||
}, | ||
"imported": [ | ||
{ | ||
"uid": "468e-86" | ||
"uid": "eaf8-83" | ||
}, | ||
{ | ||
"uid": "468e-56" | ||
"uid": "eaf8-101" | ||
}, | ||
{ | ||
"uid": "468e-88" | ||
"uid": "eaf8-85" | ||
}, | ||
{ | ||
"uid": "468e-68" | ||
"uid": "eaf8-65" | ||
}, | ||
{ | ||
"uid": "468e-80" | ||
"uid": "eaf8-77" | ||
}, | ||
{ | ||
"uid": "468e-74" | ||
"uid": "eaf8-71" | ||
}, | ||
{ | ||
"uid": "468e-62" | ||
"uid": "eaf8-59" | ||
}, | ||
{ | ||
"uid": "468e-70" | ||
"uid": "eaf8-67" | ||
}, | ||
{ | ||
"uid": "468e-64" | ||
"uid": "eaf8-61" | ||
}, | ||
{ | ||
"uid": "468e-82" | ||
"uid": "eaf8-79" | ||
}, | ||
{ | ||
"uid": "468e-66" | ||
"uid": "eaf8-63" | ||
}, | ||
{ | ||
"uid": "468e-84" | ||
"uid": "eaf8-81" | ||
}, | ||
{ | ||
"uid": "468e-78" | ||
"uid": "eaf8-75" | ||
}, | ||
{ | ||
"uid": "468e-58" | ||
"uid": "eaf8-55" | ||
}, | ||
{ | ||
"uid": "468e-54" | ||
"uid": "eaf8-53" | ||
}, | ||
{ | ||
"uid": "468e-90" | ||
"uid": "eaf8-87" | ||
}, | ||
{ | ||
"uid": "468e-92" | ||
"uid": "eaf8-89" | ||
}, | ||
{ | ||
"uid": "468e-94" | ||
"uid": "eaf8-91" | ||
}, | ||
{ | ||
"uid": "468e-96" | ||
"uid": "eaf8-93" | ||
}, | ||
{ | ||
"uid": "468e-98" | ||
"uid": "eaf8-95" | ||
}, | ||
{ | ||
"uid": "468e-100" | ||
"uid": "eaf8-97" | ||
} | ||
@@ -945,2 +917,12 @@ ], | ||
"isEntry": true | ||
}, | ||
"eaf8-101": { | ||
"id": "/packages/table-core/src/types.ts", | ||
"moduleParts": {}, | ||
"imported": [], | ||
"importedBy": [ | ||
{ | ||
"uid": "eaf8-99" | ||
} | ||
] | ||
} | ||
@@ -947,0 +929,0 @@ }, |
import { RequiredKeys } from './utils'; | ||
import { Updater, PropGetterValue, Options, TableState, ColumnDef, Row, Column, Cell, Header, AccessorFn, TableProps, TableBodyProps, PropGetter, Getter, RowProps, CellProps, TableInstance, RowValues, Please_use_the_create_table_column_utilities_to_define_columns, PartialGenerics, Renderable, UseRenderer } from './types'; | ||
import { Updater, PropGetterValue, Options, TableState, ColumnDef, Row, Column, Cell, Header, AccessorFn, TableProps, TableBodyProps, PropGetter, Getter, RowProps, CellProps, TableInstance, RowValues, PartialGenerics, Renderable, UseRenderer } from './types'; | ||
import { RowModel } from '.'; | ||
@@ -94,3 +94,2 @@ export declare type CoreOptions<TGenerics extends PartialGenerics> = { | ||
meta?: TGenerics['ColumnMeta']; | ||
[Please_use_the_create_table_column_utilities_to_define_columns]: true; | ||
}; | ||
@@ -97,0 +96,0 @@ export declare type CoreColumn<TGenerics extends PartialGenerics> = { |
import { CustomFilterTypes } from './features/Filters'; | ||
import { CustomAggregationTypes } from './features/Grouping'; | ||
import { CustomSortingTypes } from './features/Sorting'; | ||
import { ColumnDef, AccessorFn, PartialGenerics, _NonGenerated, AnyRender } from './types'; | ||
import { ColumnDef, AccessorFn, PartialGenerics, AnyRender } from './types'; | ||
import { Overwrite, PartialKeys } from './utils'; | ||
@@ -20,10 +20,11 @@ export declare type CreateTableFactory<TGenerics extends PartialGenerics> = <TSubGenerics extends { | ||
export declare type Table<TGenerics extends PartialGenerics> = { | ||
generics: TGenerics; | ||
__options: CreateTableFactoryOptions<any, any, any, any>; | ||
createColumns: (columns: ColumnDef<TGenerics>[]) => ColumnDef<TGenerics>[]; | ||
createGroup: (column: Overwrite<Overwrite<_NonGenerated<ColumnDef<TGenerics>>, { | ||
createColumns: <TColumnDef extends ColumnDef<any>>(columns: TColumnDef[]) => TColumnDef[]; | ||
createGroup: (column: Overwrite<Overwrite<ColumnDef<any>, { | ||
header: string; | ||
id?: string; | ||
}> | Overwrite<_NonGenerated<ColumnDef<TGenerics>>, { | ||
}> | Overwrite<ColumnDef<any>, { | ||
id: string; | ||
header?: string | ColumnDef<TGenerics>['header']; | ||
header?: string | ((...any: any) => any); | ||
}>, { | ||
@@ -34,10 +35,10 @@ accessorFn?: never; | ||
}>) => ColumnDef<TGenerics>; | ||
createDisplayColumn: (column: PartialKeys<Overwrite<_NonGenerated<ColumnDef<TGenerics>>, { | ||
createDisplayColumn: (column: Overwrite<PartialKeys<ColumnDef<TGenerics>, 'accessorFn' | 'accessorKey'>, { | ||
columns?: ColumnDef<any>[]; | ||
}>, 'accessorFn' | 'accessorKey'>) => ColumnDef<TGenerics>; | ||
createDataColumn: <TAccessor extends AccessorFn<TGenerics['Row']> | keyof TGenerics['Row']>(accessor: TAccessor, column: Overwrite<TAccessor extends (...args: any[]) => any ? _NonGenerated<ColumnDef<Overwrite<TGenerics, { | ||
}>) => ColumnDef<TGenerics>; | ||
createDataColumn: <TAccessor extends AccessorFn<TGenerics['Row']> | keyof TGenerics['Row']>(accessor: TAccessor, column: Overwrite<TAccessor extends (...args: any[]) => any ? ColumnDef<Overwrite<TGenerics, { | ||
Value: ReturnType<TAccessor>; | ||
}>>> : TAccessor extends keyof TGenerics['Row'] ? Overwrite<_NonGenerated<ColumnDef<Overwrite<TGenerics, { | ||
}>> : TAccessor extends keyof TGenerics['Row'] ? Overwrite<ColumnDef<Overwrite<TGenerics, { | ||
Value: TGenerics['Row'][TAccessor]; | ||
}>>>, { | ||
}>>, { | ||
id?: string; | ||
@@ -48,5 +49,3 @@ }> : never, { | ||
columns?: ColumnDef<any>[]; | ||
}>) => ColumnDef<Overwrite<TGenerics, { | ||
Value: TAccessor extends (...args: any[]) => any ? ReturnType<TAccessor> : TAccessor extends keyof TGenerics['Row'] ? TGenerics['Row'][TAccessor] : never; | ||
}>>; | ||
}>) => ColumnDef<TGenerics>; | ||
}; | ||
@@ -53,0 +52,0 @@ declare type InitTable<TRender extends AnyRender> = { |
@@ -1,2 +0,2 @@ | ||
import { Getter, OnChangeFn, PartialGenerics, PropGetterValue, TableInstance, Row, RowModel, Updater, AnyGenerics } from '../types'; | ||
import { Getter, OnChangeFn, PartialGenerics, PropGetterValue, TableInstance, Row, RowModel, Updater } from '../types'; | ||
export declare type RowSelectionState = Record<string, boolean>; | ||
@@ -57,4 +57,4 @@ export declare type RowSelectionTableState = { | ||
}; | ||
export declare function selectRowsFn<TGenerics extends AnyGenerics>(instance: TableInstance<TGenerics>, rowModel: RowModel<TGenerics>): RowModel<TGenerics>; | ||
export declare function selectRowsFn<TGenerics extends PartialGenerics>(instance: TableInstance<TGenerics>, rowModel: RowModel<TGenerics>): RowModel<TGenerics>; | ||
export declare function isRowSelected<TGenerics extends PartialGenerics>(row: Row<TGenerics>, selection: Record<string, boolean>, instance: TableInstance<TGenerics>): boolean | 'some'; | ||
export {}; |
@@ -27,3 +27,3 @@ import { CoreColumn, CoreColumnDef, CoreOptions, CoreRow, TableCore } from './core'; | ||
export declare type AnyGenerics = { | ||
[TKey in keyof PartialGenerics]: any; | ||
[TKey in keyof PartialGenerics]?: any; | ||
}; | ||
@@ -45,6 +45,2 @@ export declare type TableInstance<TGenerics extends PartialGenerics> = TableCore<TGenerics> & VisibilityInstance<TGenerics> & ColumnOrderInstance<TGenerics> & ColumnPinningInstance<TGenerics> & HeadersInstance<TGenerics> & FiltersInstance<TGenerics> & SortingInstance<TGenerics> & GroupingInstance<TGenerics> & ColumnSizingInstance<TGenerics> & ExpandedInstance<TGenerics> & PaginationInstance<TGenerics> & RowSelectionInstance<TGenerics>; | ||
export declare type AccessorFn<TData> = (originalRow: TData, index: number) => any; | ||
export declare const Please_use_the_create_table_column_utilities_to_define_columns: unique symbol; | ||
export declare type _NonGenerated<T> = Overwrite<T, { | ||
[Please_use_the_create_table_column_utilities_to_define_columns]?: never; | ||
}>; | ||
export declare type Renderable<TGenerics extends PartialGenerics, TProps> = string | ((props: TProps) => ReturnType<UseRenderer<TGenerics>>); | ||
@@ -51,0 +47,0 @@ export declare type ColumnDef<TGenerics extends PartialGenerics> = CoreColumnDef<TGenerics> & VisibilityColumnDef & ColumnPinningColumnDef & FiltersColumnDef<TGenerics> & SortingColumnDef<TGenerics> & GroupingColumnDef<TGenerics> & ColumnSizingColumnDef; |
{ | ||
"name": "@tanstack/table-core", | ||
"author": "Tanner Linsley", | ||
"version": "8.0.0-alpha.19", | ||
"version": "8.0.0-alpha.20", | ||
"description": "Hooks for building lightweight, fast and extendable datagrids for React", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
@@ -6,2 +6,3 @@ import { | ||
OnChangeFn, | ||
AnyGenerics, | ||
PartialGenerics, | ||
@@ -8,0 +9,0 @@ PropGetterValue, |
@@ -6,2 +6,3 @@ import { MouseEvent, TouchEvent } from 'react' | ||
OnChangeFn, | ||
AnyGenerics, | ||
PartialGenerics, | ||
@@ -86,3 +87,2 @@ PropGetterValue, | ||
autoResetExpanded: true, | ||
getIsRowExpanded: row => !!(row?.original as { expanded?: any }).expanded, | ||
expandSubRows: true, | ||
@@ -165,3 +165,3 @@ paginateExpandedRows: true, | ||
getIsRowExpanded: rowId => { | ||
const row = instance.getRow(rowId) | ||
const row = instance.getPreExpandedRowModel().rowsById[rowId] | ||
@@ -181,3 +181,3 @@ if (!row) { | ||
instance.options.getIsRowExpanded?.(row) ?? | ||
(expanded || expanded?.[rowId]) | ||
(expanded === true || expanded?.[rowId]) | ||
) | ||
@@ -283,3 +283,3 @@ }, | ||
!paginateExpandedRows || | ||
!Object.keys(expanded ?? {}).length | ||
(expanded !== true && !Object.keys(expanded ?? {}).length) | ||
) { | ||
@@ -294,5 +294,2 @@ return rowModel | ||
debug: () => instance.options.debugAll ?? instance.options.debugTable, | ||
onChange: () => { | ||
instance._notifyPageIndexReset() | ||
}, | ||
} | ||
@@ -299,0 +296,0 @@ ), |
@@ -6,2 +6,3 @@ import { RowModel } from '..' | ||
OnChangeFn, | ||
AnyGenerics, | ||
PartialGenerics, | ||
@@ -8,0 +9,0 @@ TableInstance, |
@@ -12,2 +12,3 @@ import { RowModel } from '..' | ||
Updater, | ||
AnyGenerics, | ||
PartialGenerics, | ||
@@ -14,0 +15,0 @@ Renderable, |
@@ -12,2 +12,3 @@ import { | ||
HeaderProps, | ||
AnyGenerics, | ||
PartialGenerics, | ||
@@ -14,0 +15,0 @@ PropGetterValue, |
@@ -8,2 +8,3 @@ import { functionalUpdate, makeStateUpdater, memo } from '../utils' | ||
Column, | ||
AnyGenerics, | ||
PartialGenerics, | ||
@@ -10,0 +11,0 @@ } from '../types' |
import { | ||
OnChangeFn, | ||
AnyGenerics, | ||
PartialGenerics, | ||
@@ -189,5 +190,6 @@ TableInstance, | ||
getCanNextPage: () => { | ||
const { pageIndex, pageCount, pageSize } = | ||
instance.getState().pagination | ||
const { pageIndex, pageSize } = instance.getState().pagination | ||
const pageCount = instance.getPageCount() | ||
if (pageCount === -1) { | ||
@@ -194,0 +196,0 @@ return true |
@@ -6,2 +6,3 @@ import { | ||
Column, | ||
AnyGenerics, | ||
PartialGenerics, | ||
@@ -8,0 +9,0 @@ } from '../types' |
import { | ||
Getter, | ||
OnChangeFn, | ||
AnyGenerics, | ||
PartialGenerics, | ||
@@ -10,3 +11,2 @@ PropGetterValue, | ||
Updater, | ||
AnyGenerics, | ||
} from '../types' | ||
@@ -585,3 +585,3 @@ import { functionalUpdate, makeStateUpdater, memo, propGetter } from '../utils' | ||
export function selectRowsFn<TGenerics extends AnyGenerics>( | ||
export function selectRowsFn<TGenerics extends PartialGenerics>( | ||
instance: TableInstance<TGenerics>, | ||
@@ -588,0 +588,0 @@ rowModel: RowModel<TGenerics> |
@@ -10,2 +10,3 @@ import { MouseEvent, TouchEvent } from 'react' | ||
OnChangeFn, | ||
AnyGenerics, | ||
PartialGenerics, | ||
@@ -12,0 +13,0 @@ PropGetterValue, |
@@ -6,2 +6,3 @@ import { | ||
OnChangeFn, | ||
AnyGenerics, | ||
PartialGenerics, | ||
@@ -8,0 +9,0 @@ PropGetterValue, |
@@ -1,2 +0,2 @@ | ||
import { PartialGenerics, Row } from './types' | ||
import { PartialGenerics, AnyGenerics, Row } from './types' | ||
@@ -3,0 +3,0 @@ export const filterTypes = { |
@@ -1,2 +0,2 @@ | ||
import { PartialGenerics, Row } from './types' | ||
import { PartialGenerics, AnyGenerics, Row } from './types' | ||
@@ -3,0 +3,0 @@ export const reSplitAlphaNumeric = /([0-9]+)/gm |
@@ -97,3 +97,3 @@ import { | ||
export type AnyGenerics = { | ||
[TKey in keyof PartialGenerics]: any | ||
[TKey in keyof PartialGenerics]?: any | ||
} | ||
@@ -163,12 +163,21 @@ | ||
export const Please_use_the_create_table_column_utilities_to_define_columns: unique symbol = | ||
Symbol() | ||
// export type UserColumnDef<TGenerics extends PartialGenerics> = Overwrite< | ||
// ColumnDef<TGenerics>, | ||
// GeneratedProperties<false> | ||
// > | ||
export type _NonGenerated<T> = Overwrite< | ||
T, | ||
{ | ||
[Please_use_the_create_table_column_utilities_to_define_columns]?: never | ||
} | ||
> | ||
// type _GeneratedProperties = { | ||
// ['Column definitions should be generated with the table.createColumn() (and related) utilities']: false | ||
// } | ||
// export type GeneratedProperties<T> = T extends true | ||
// ? { | ||
// [TKey in keyof _GeneratedProperties]: true | ||
// } | ||
// : T extends false | ||
// ? { | ||
// [TKey in keyof _GeneratedProperties]?: false | ||
// } | ||
// : never | ||
export type Renderable<TGenerics extends PartialGenerics, TProps> = | ||
@@ -175,0 +184,0 @@ | string |
@@ -1,2 +0,8 @@ | ||
import { AnyGenerics, TableInstance, Row, RowModel } from '../types' | ||
import { | ||
AnyGenerics, | ||
TableInstance, | ||
Row, | ||
RowModel, | ||
PartialGenerics, | ||
} from '../types' | ||
@@ -3,0 +9,0 @@ export function columnFilterRowsFn<TGenerics extends AnyGenerics>( |
@@ -1,2 +0,8 @@ | ||
import { TableInstance, Row, RowModel, AnyGenerics } from '../types' | ||
import { | ||
TableInstance, | ||
Row, | ||
RowModel, | ||
AnyGenerics, | ||
PartialGenerics, | ||
} from '../types' | ||
@@ -9,4 +15,2 @@ export function expandRowsFn<TGenerics extends AnyGenerics>( | ||
const { expandSubRows } = instance.options | ||
const handleRow = (row: Row<TGenerics>) => { | ||
@@ -16,3 +20,3 @@ expandedRows.push(row) | ||
if ( | ||
expandSubRows && | ||
instance.options.expandSubRows && | ||
row.subRows?.length && | ||
@@ -19,0 +23,0 @@ instance.getIsRowExpanded(row.id) |
@@ -1,2 +0,8 @@ | ||
import { TableInstance, Row, RowModel, AnyGenerics } from '../types' | ||
import { | ||
TableInstance, | ||
Row, | ||
RowModel, | ||
AnyGenerics, | ||
PartialGenerics, | ||
} from '../types' | ||
@@ -3,0 +9,0 @@ export function globalFilterRowsFn<TGenerics extends AnyGenerics>( |
@@ -1,2 +0,8 @@ | ||
import { TableInstance, Row, RowModel, AnyGenerics } from '../types' | ||
import { | ||
TableInstance, | ||
Row, | ||
RowModel, | ||
AnyGenerics, | ||
PartialGenerics, | ||
} from '../types' | ||
import { flattenBy } from '../utils' | ||
@@ -154,3 +160,3 @@ | ||
function groupBy<TGenerics extends AnyGenerics>( | ||
function groupBy<TGenerics extends PartialGenerics>( | ||
rows: Row<TGenerics>[], | ||
@@ -157,0 +163,0 @@ columnId: string |
@@ -1,2 +0,8 @@ | ||
import { TableInstance, Row, RowModel, AnyGenerics } from '../types' | ||
import { | ||
TableInstance, | ||
Row, | ||
RowModel, | ||
AnyGenerics, | ||
PartialGenerics, | ||
} from '../types' | ||
import { SortingFn } from '../features/Sorting' | ||
@@ -3,0 +9,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 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 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 not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2229539
109
20829