Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@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.0.0-alpha.63 to 8.0.0-alpha.64

10

build/cjs/core.js

@@ -60,6 +60,10 @@ /**

var initialState = _rollupPluginBabelHelpers["extends"]({}, coreInitialState, (_options$initialState = options.initialState) != null ? _options$initialState : {}, instance._features.reduce(function (obj, feature) {
return Object.assign(obj, feature.getInitialState == null ? void 0 : feature.getInitialState(options.initialState));
}, {}));
var initialState = _rollupPluginBabelHelpers["extends"]({}, coreInitialState, (_options$initialState = options.initialState) != null ? _options$initialState : {});
instance._features.forEach(function (feature) {
var _feature$getInitialSt;
initialState = (_feature$getInitialSt = feature.getInitialState == null ? void 0 : feature.getInitialState(initialState)) != null ? _feature$getInitialSt : initialState;
});
var queued = [];

@@ -66,0 +70,0 @@ var queuedTimeout = false;

@@ -28,4 +28,4 @@ /**

},
getInitialState: function getInitialState() {
return {
getInitialState: function getInitialState(state) {
return _rollupPluginBabelHelpers["extends"]({
columnSizing: {},

@@ -40,3 +40,3 @@ columnSizingInfo: {

}
};
}, state);
},

@@ -43,0 +43,0 @@ getDefaultOptions: function getDefaultOptions(instance) {

@@ -20,6 +20,6 @@ /**

var Expanding = {
getInitialState: function getInitialState() {
return {
getInitialState: function getInitialState(state) {
return _rollupPluginBabelHelpers["extends"]({
expanded: {}
};
}, state);
},

@@ -26,0 +26,0 @@ getDefaultOptions: function getDefaultOptions(instance) {

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

var _rollupPluginBabelHelpers = require('../_virtual/_rollupPluginBabelHelpers.js');
var filterFns = require('../filterFns.js');

@@ -26,4 +27,4 @@ var utils = require('../utils.js');

},
getInitialState: function getInitialState() {
return {
getInitialState: function getInitialState(state) {
return _rollupPluginBabelHelpers["extends"]({
columnFilters: [],

@@ -33,3 +34,3 @@ globalFilter: undefined,

globalFilterProgress: 1
};
}, state);
},

@@ -42,3 +43,3 @@ getDefaultOptions: function getDefaultOptions(instance) {

globalFilterFn: 'auto',
getColumnCanGlobalFilterFn: function getColumnCanGlobalFilterFn(column) {
getColumnCanGlobalFilter: function getColumnCanGlobalFilter(column) {
var _instance$getCoreRowM, _instance$getCoreRowM2;

@@ -172,2 +173,3 @@

globalFilterFn = _instance$options.globalFilterFn;
debugger;
return utils.isFunction(globalFilterFn) ? globalFilterFn : globalFilterFn === 'auto' ? instance.getGlobalAutoFilterFn() : (_ref2 = userFilterFns == null ? void 0 : userFilterFns[globalFilterFn]) != null ? _ref2 : filterFns.filterFns[globalFilterFn];

@@ -207,3 +209,3 @@ },

getColumnCanColumnFilter: function getColumnCanColumnFilter(columnId) {
var _ref3, _ref4, _ref5, _ref6, _ref7, _column$enableAllFilt;
var _column$enableColumnF, _instance$options$ena;

@@ -216,6 +218,6 @@ var column = instance.getColumn(columnId);

return (_ref3 = (_ref4 = (_ref5 = (_ref6 = (_ref7 = (_column$enableAllFilt = column.enableAllFilters) != null ? _column$enableAllFilt : column.enableColumnFilter) != null ? _ref7 : instance.options.enableFilters) != null ? _ref6 : instance.options.enableColumnFilters) != null ? _ref5 : column.defaultCanColumnFilter) != null ? _ref4 : column.defaultCanFilter) != null ? _ref3 : !!column.accessorFn;
return ((_column$enableColumnF = column.enableColumnFilter) != null ? _column$enableColumnF : true) && ((_instance$options$ena = instance.options.enableColumnFilters) != null ? _instance$options$ena : true) && !!column.accessorFn;
},
getColumnCanGlobalFilter: function getColumnCanGlobalFilter(columnId) {
var _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _instance$options$ena;
var _column$enableGlobalF, _instance$options$ena2, _instance$options$get;

@@ -228,3 +230,3 @@ var column = instance.getColumn(columnId);

return (_ref8 = ((_ref9 = (_ref10 = (_ref11 = (_ref12 = (_ref13 = (_instance$options$ena = instance.options.enableFilters) != null ? _instance$options$ena : instance.options.enableGlobalFilter) != null ? _ref13 : column.enableAllFilters) != null ? _ref12 : column.enableGlobalFilter) != null ? _ref11 : column.defaultCanGlobalFilter) != null ? _ref10 : column.defaultCanFilter) != null ? _ref9 : !!column.accessorFn) && (instance.options.getColumnCanGlobalFilterFn == null ? void 0 : instance.options.getColumnCanGlobalFilterFn(column))) != null ? _ref8 : true;
return ((_column$enableGlobalF = column.enableGlobalFilter) != null ? _column$enableGlobalF : true) && ((_instance$options$ena2 = instance.options.enableGlobalFilter) != null ? _instance$options$ena2 : true) && ((_instance$options$get = instance.options.getColumnCanGlobalFilter == null ? void 0 : instance.options.getColumnCanGlobalFilter(column)) != null ? _instance$options$get : true) && !!column.accessorFn;
},

@@ -231,0 +233,0 @@ getColumnIsFiltered: function getColumnIsFiltered(columnId) {

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

var _rollupPluginBabelHelpers = require('../_virtual/_rollupPluginBabelHelpers.js');
var aggregationFns = require('../aggregationFns.js');

@@ -26,6 +27,6 @@ var utils = require('../utils.js');

},
getInitialState: function getInitialState() {
return {
getInitialState: function getInitialState(state) {
return _rollupPluginBabelHelpers["extends"]({
grouping: []
};
}, state);
},

@@ -189,26 +190,27 @@ getDefaultOptions: function getDefaultOptions(instance) {

};
},
orderColumns: function orderColumns(leafColumns, grouping, groupedColumnMode) {
if (!(grouping != null && grouping.length) || !groupedColumnMode) {
return leafColumns;
}
}
};
function orderColumns(leafColumns, grouping, groupedColumnMode) {
if (!(grouping != null && grouping.length) || !groupedColumnMode) {
return leafColumns;
}
var nonGroupingColumns = leafColumns.filter(function (col) {
return !grouping.includes(col.id);
});
var nonGroupingColumns = leafColumns.filter(function (col) {
return !grouping.includes(col.id);
});
if (groupedColumnMode === 'remove') {
return nonGroupingColumns;
}
var groupingColumns = grouping.map(function (g) {
return leafColumns.find(function (col) {
return col.id === g;
});
}).filter(Boolean);
return [].concat(groupingColumns, nonGroupingColumns);
if (groupedColumnMode === 'remove') {
return nonGroupingColumns;
}
};
var groupingColumns = grouping.map(function (g) {
return leafColumns.find(function (col) {
return col.id === g;
});
}).filter(Boolean);
return [].concat(groupingColumns, nonGroupingColumns);
}
exports.Grouping = Grouping;
exports.orderColumns = orderColumns;
//# sourceMappingURL=Grouping.js.map

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

var _rollupPluginBabelHelpers = require('../_virtual/_rollupPluginBabelHelpers.js');
var utils = require('../utils.js');

@@ -21,6 +22,6 @@ var Grouping = require('./Grouping.js');

var Ordering = {
getInitialState: function getInitialState() {
return {
getInitialState: function getInitialState(state) {
return _rollupPluginBabelHelpers["extends"]({
columnOrder: []
};
}, state);
},

@@ -77,3 +78,3 @@ getDefaultOptions: function getDefaultOptions(instance) {

return Grouping.Grouping.orderColumns(orderedColumns, grouping, groupedColumnMode);
return Grouping.orderColumns(orderedColumns, grouping, groupedColumnMode);
};

@@ -80,0 +81,0 @@ }, {

@@ -20,4 +20,4 @@ /**

var Pagination = {
getInitialState: function getInitialState(initialState) {
return {
getInitialState: function getInitialState(state) {
return _rollupPluginBabelHelpers["extends"]({}, state, {
pagination: _rollupPluginBabelHelpers["extends"]({

@@ -27,4 +27,4 @@ pageCount: -1,

pageSize: 10
}, initialState == null ? void 0 : initialState.pagination)
};
}, state == null ? void 0 : state.pagination)
});
},

@@ -31,0 +31,0 @@ getDefaultOptions: function getDefaultOptions(instance) {

@@ -20,4 +20,4 @@ /**

var Pinning = {
getInitialState: function getInitialState() {
return {
getInitialState: function getInitialState(state) {
return _rollupPluginBabelHelpers["extends"]({
columnPinning: {

@@ -27,3 +27,3 @@ left: [],

}
};
}, state);
},

@@ -112,63 +112,2 @@ getDefaultOptions: function getDefaultOptions(instance) {

},
createCell: function createCell(cell, instance) {
return {
getCenterVisibleCells: utils.memo(function () {
return [cell.row._getAllVisibleCells(), instance.getState().columnPinning.left, instance.getState().columnPinning.right];
}, function (allCells, left, right) {
var leftAndRight = [].concat(left != null ? left : [], right != null ? right : []);
return allCells.filter(function (d) {
return !leftAndRight.includes(d.columnId);
});
}, {
key: 'row.getCenterVisibleCells',
debug: function debug() {
var _instance$options$deb4;
return (_instance$options$deb4 = instance.options.debugAll) != null ? _instance$options$deb4 : instance.options.debugRows;
}
}),
getLeftVisibleCells: utils.memo(function () {
return [cell.row._getAllVisibleCells(), instance.getState().columnPinning.left,,];
}, function (allCells, left) {
var cells = (left != null ? left : []).map(function (columnId) {
return allCells.find(function (cell) {
return cell.columnId === columnId;
});
}).filter(Boolean).map(function (d) {
return _rollupPluginBabelHelpers["extends"]({}, d, {
position: 'left'
});
});
return cells;
}, {
key: 'row.getLeftVisibleCells',
debug: function debug() {
var _instance$options$deb5;
return (_instance$options$deb5 = instance.options.debugAll) != null ? _instance$options$deb5 : instance.options.debugRows;
}
}),
getRightVisibleCells: utils.memo(function () {
return [cell.row._getAllVisibleCells(), instance.getState().columnPinning.right];
}, function (allCells, right) {
var cells = (right != null ? right : []).map(function (columnId) {
return allCells.find(function (cell) {
return cell.columnId === columnId;
});
}).filter(Boolean).map(function (d) {
return _rollupPluginBabelHelpers["extends"]({}, d, {
position: 'left'
});
});
return cells;
}, {
key: 'row.getRightVisibleCells',
debug: function debug() {
var _instance$options$deb6;
return (_instance$options$deb6 = instance.options.debugAll) != null ? _instance$options$deb6 : instance.options.debugRows;
}
})
};
},
createInstance: function createInstance(instance) {

@@ -237,5 +176,5 @@ return {

return leafColumns.some(function (d) {
var _ref, _ref2, _d$enablePinning;
var _d$enablePinning, _instance$options$ena;
return (_ref = (_ref2 = (_d$enablePinning = d.enablePinning) != null ? _d$enablePinning : instance.options.enablePinning) != null ? _ref2 : d.defaultCanPin) != null ? _ref : !!d.accessorFn;
return ((_d$enablePinning = d.enablePinning) != null ? _d$enablePinning : true) && ((_instance$options$ena = instance.options.enablePinning) != null ? _instance$options$ena : true);
});

@@ -287,5 +226,5 @@ },

debug: function debug() {
var _instance$options$deb7;
var _instance$options$deb4;
return (_instance$options$deb7 = instance.options.debugAll) != null ? _instance$options$deb7 : instance.options.debugColumns;
return (_instance$options$deb4 = instance.options.debugAll) != null ? _instance$options$deb4 : instance.options.debugColumns;
}

@@ -304,5 +243,5 @@ }),

debug: function debug() {
var _instance$options$deb8;
var _instance$options$deb5;
return (_instance$options$deb8 = instance.options.debugAll) != null ? _instance$options$deb8 : instance.options.debugColumns;
return (_instance$options$deb5 = instance.options.debugAll) != null ? _instance$options$deb5 : instance.options.debugColumns;
}

@@ -320,5 +259,5 @@ }),

debug: function debug() {
var _instance$options$deb9;
var _instance$options$deb6;
return (_instance$options$deb9 = instance.options.debugAll) != null ? _instance$options$deb9 : instance.options.debugColumns;
return (_instance$options$deb6 = instance.options.debugAll) != null ? _instance$options$deb6 : instance.options.debugColumns;
}

@@ -325,0 +264,0 @@ })

@@ -20,6 +20,6 @@ /**

var RowSelection = {
getInitialState: function getInitialState() {
return {
getInitialState: function getInitialState(state) {
return _rollupPluginBabelHelpers["extends"]({
rowSelection: {}
};
}, state);
},

@@ -26,0 +26,0 @@ getDefaultOptions: function getDefaultOptions(instance) {

@@ -21,2 +21,7 @@ /**

var Sorting = {
getInitialState: function getInitialState(state) {
return _rollupPluginBabelHelpers["extends"]({
sorting: []
}, state);
},
getDefaultColumn: function getDefaultColumn() {

@@ -27,7 +32,2 @@ return {

},
getInitialState: function getInitialState() {
return {
sorting: []
};
},
getDefaultOptions: function getDefaultOptions(instance) {

@@ -34,0 +34,0 @@ return {

@@ -20,6 +20,6 @@ /**

var Visibility = {
getInitialState: function getInitialState() {
return {
getInitialState: function getInitialState(state) {
return _rollupPluginBabelHelpers["extends"]({
columnVisibility: {}
};
}, state);
},

@@ -26,0 +26,0 @@ getDefaultOptions: function getDefaultOptions(instance) {

@@ -49,2 +49,3 @@ /**

exports.Grouping = Grouping.Grouping;
exports.orderColumns = Grouping.orderColumns;
exports.Headers = Headers.Headers;

@@ -51,0 +52,0 @@ exports.buildHeaderGroups = Headers.buildHeaderGroups;

@@ -10,3 +10,3 @@ {

{
"uid": "e911-64",
"uid": "7947-64",
"name": "\u0000rollupPluginBabelHelpers.js"

@@ -18,3 +18,3 @@ },

{
"uid": "e911-66",
"uid": "7947-66",
"name": "utils.ts"

@@ -26,55 +26,55 @@ },

{
"uid": "e911-68",
"uid": "7947-68",
"name": "Columns.ts"
},
{
"uid": "e911-70",
"uid": "7947-70",
"name": "Rows.ts"
},
{
"uid": "e911-72",
"uid": "7947-72",
"name": "Cells.ts"
},
{
"uid": "e911-74",
"uid": "7947-74",
"name": "ColumnSizing.ts"
},
{
"uid": "e911-76",
"uid": "7947-76",
"name": "Expanding.ts"
},
{
"uid": "e911-80",
"uid": "7947-80",
"name": "Filters.ts"
},
{
"uid": "e911-84",
"uid": "7947-84",
"name": "Grouping.ts"
},
{
"uid": "e911-86",
"uid": "7947-86",
"name": "Ordering.ts"
},
{
"uid": "e911-88",
"uid": "7947-88",
"name": "Pagination.ts"
},
{
"uid": "e911-90",
"uid": "7947-90",
"name": "Pinning.ts"
},
{
"uid": "e911-92",
"uid": "7947-92",
"name": "RowSelection.ts"
},
{
"uid": "e911-96",
"uid": "7947-96",
"name": "Sorting.ts"
},
{
"uid": "e911-98",
"uid": "7947-98",
"name": "Visibility.ts"
},
{
"uid": "e911-100",
"uid": "7947-100",
"name": "Headers.ts"

@@ -85,19 +85,19 @@ }

{
"uid": "e911-78",
"uid": "7947-78",
"name": "filterFns.ts"
},
{
"uid": "e911-82",
"uid": "7947-82",
"name": "aggregationFns.ts"
},
{
"uid": "e911-94",
"uid": "7947-94",
"name": "sortingFns.ts"
},
{
"uid": "e911-102",
"uid": "7947-102",
"name": "core.ts"
},
{
"uid": "e911-104",
"uid": "7947-104",
"name": "createTable.ts"

@@ -109,35 +109,35 @@ },

{
"uid": "e911-106",
"uid": "7947-106",
"name": "getCoreRowModelSync.ts"
},
{
"uid": "e911-108",
"uid": "7947-108",
"name": "getCoreRowModelAsync.ts"
},
{
"uid": "e911-110",
"uid": "7947-110",
"name": "filterRowsUtils.ts"
},
{
"uid": "e911-112",
"uid": "7947-112",
"name": "getColumnFilteredRowModelSync.ts"
},
{
"uid": "e911-114",
"uid": "7947-114",
"name": "getGlobalFilteredRowModelSync.ts"
},
{
"uid": "e911-116",
"uid": "7947-116",
"name": "getSortedRowModelSync.ts"
},
{
"uid": "e911-118",
"uid": "7947-118",
"name": "getGroupedRowModel.ts"
},
{
"uid": "e911-120",
"uid": "7947-120",
"name": "getExpandedRowModel.ts"
},
{
"uid": "e911-122",
"uid": "7947-122",
"name": "getPaginationRowModel.ts"

@@ -148,3 +148,3 @@ }

{
"uid": "e911-124",
"uid": "7947-124",
"name": "index.ts"

@@ -160,194 +160,194 @@ }

"nodeParts": {
"e911-64": {
"7947-64": {
"renderedLength": 2695,
"gzipLength": 1065,
"brotliLength": 0,
"mainUid": "e911-63"
"mainUid": "7947-63"
},
"e911-66": {
"7947-66": {
"renderedLength": 7408,
"gzipLength": 1895,
"brotliLength": 0,
"mainUid": "e911-65"
"mainUid": "7947-65"
},
"e911-68": {
"7947-68": {
"renderedLength": 7169,
"gzipLength": 1386,
"brotliLength": 0,
"mainUid": "e911-67"
"mainUid": "7947-67"
},
"e911-70": {
"7947-70": {
"renderedLength": 2013,
"gzipLength": 671,
"brotliLength": 0,
"mainUid": "e911-69"
"mainUid": "7947-69"
},
"e911-72": {
"7947-72": {
"renderedLength": 2415,
"gzipLength": 642,
"brotliLength": 0,
"mainUid": "e911-71"
"mainUid": "7947-71"
},
"e911-74": {
"renderedLength": 13618,
"gzipLength": 2498,
"7947-74": {
"renderedLength": 13640,
"gzipLength": 2509,
"brotliLength": 0,
"mainUid": "e911-73"
"mainUid": "7947-73"
},
"e911-76": {
"renderedLength": 7153,
"gzipLength": 1498,
"7947-76": {
"renderedLength": 7175,
"gzipLength": 1511,
"brotliLength": 0,
"mainUid": "e911-75"
"mainUid": "7947-75"
},
"e911-78": {
"7947-78": {
"renderedLength": 4925,
"gzipLength": 807,
"brotliLength": 0,
"mainUid": "e911-77"
"mainUid": "7947-77"
},
"e911-80": {
"renderedLength": 13250,
"gzipLength": 2394,
"7947-80": {
"renderedLength": 12959,
"gzipLength": 2304,
"brotliLength": 0,
"mainUid": "e911-79"
"mainUid": "7947-79"
},
"e911-82": {
"7947-82": {
"renderedLength": 2672,
"gzipLength": 771,
"brotliLength": 0,
"mainUid": "e911-81"
"mainUid": "7947-81"
},
"e911-84": {
"renderedLength": 7344,
"gzipLength": 1521,
"7947-84": {
"renderedLength": 7317,
"gzipLength": 1533,
"brotliLength": 0,
"mainUid": "e911-83"
"mainUid": "7947-83"
},
"e911-86": {
"renderedLength": 2586,
"gzipLength": 794,
"7947-86": {
"renderedLength": 2599,
"gzipLength": 805,
"brotliLength": 0,
"mainUid": "e911-85"
"mainUid": "7947-85"
},
"e911-88": {
"7947-88": {
"renderedLength": 6033,
"gzipLength": 1245,
"gzipLength": 1255,
"brotliLength": 0,
"mainUid": "e911-87"
"mainUid": "7947-87"
},
"e911-90": {
"renderedLength": 12828,
"gzipLength": 1658,
"7947-90": {
"renderedLength": 10368,
"gzipLength": 1566,
"brotliLength": 0,
"mainUid": "e911-89"
"mainUid": "7947-89"
},
"e911-92": {
"renderedLength": 15485,
"gzipLength": 2661,
"7947-92": {
"renderedLength": 15507,
"gzipLength": 2671,
"brotliLength": 0,
"mainUid": "e911-91"
"mainUid": "7947-91"
},
"e911-94": {
"7947-94": {
"renderedLength": 2753,
"gzipLength": 846,
"brotliLength": 0,
"mainUid": "e911-93"
"mainUid": "7947-93"
},
"e911-96": {
"renderedLength": 11142,
"gzipLength": 2332,
"7947-96": {
"renderedLength": 11164,
"gzipLength": 2337,
"brotliLength": 0,
"mainUid": "e911-95"
"mainUid": "7947-95"
},
"e911-98": {
"renderedLength": 6959,
"gzipLength": 1289,
"7947-98": {
"renderedLength": 6981,
"gzipLength": 1297,
"brotliLength": 0,
"mainUid": "e911-97"
"mainUid": "7947-97"
},
"e911-100": {
"7947-100": {
"renderedLength": 18481,
"gzipLength": 2898,
"brotliLength": 0,
"mainUid": "e911-99"
"mainUid": "7947-99"
},
"e911-102": {
"renderedLength": 3601,
"gzipLength": 1032,
"7947-102": {
"renderedLength": 3685,
"gzipLength": 1069,
"brotliLength": 0,
"mainUid": "e911-101"
"mainUid": "7947-101"
},
"e911-104": {
"7947-104": {
"renderedLength": 1882,
"gzipLength": 562,
"brotliLength": 0,
"mainUid": "e911-103"
"mainUid": "7947-103"
},
"e911-106": {
"7947-106": {
"renderedLength": 2417,
"gzipLength": 792,
"brotliLength": 0,
"mainUid": "e911-105"
"mainUid": "7947-105"
},
"e911-108": {
"7947-108": {
"renderedLength": 3514,
"gzipLength": 1006,
"brotliLength": 0,
"mainUid": "e911-107"
"mainUid": "7947-107"
},
"e911-110": {
"7947-110": {
"renderedLength": 2457,
"gzipLength": 568,
"brotliLength": 0,
"mainUid": "e911-109"
"mainUid": "7947-109"
},
"e911-112": {
"7947-112": {
"renderedLength": 3132,
"gzipLength": 897,
"brotliLength": 0,
"mainUid": "e911-111"
"mainUid": "7947-111"
},
"e911-114": {
"7947-114": {
"renderedLength": 2471,
"gzipLength": 698,
"brotliLength": 0,
"mainUid": "e911-113"
"mainUid": "7947-113"
},
"e911-116": {
"7947-116": {
"renderedLength": 3438,
"gzipLength": 1024,
"brotliLength": 0,
"mainUid": "e911-115"
"mainUid": "7947-115"
},
"e911-118": {
"7947-118": {
"renderedLength": 5827,
"gzipLength": 1540,
"brotliLength": 0,
"mainUid": "e911-117"
"mainUid": "7947-117"
},
"e911-120": {
"7947-120": {
"renderedLength": 1385,
"gzipLength": 494,
"brotliLength": 0,
"mainUid": "e911-119"
"mainUid": "7947-119"
},
"e911-122": {
"7947-122": {
"renderedLength": 1254,
"gzipLength": 407,
"brotliLength": 0,
"mainUid": "e911-121"
"mainUid": "7947-121"
},
"e911-124": {
"7947-124": {
"renderedLength": 0,
"gzipLength": 0,
"brotliLength": 0,
"mainUid": "e911-123"
"mainUid": "7947-123"
}
},
"nodeMetas": {
"e911-63": {
"7947-63": {
"id": "\u0000rollupPluginBabelHelpers.js",
"moduleParts": {
"index.production.js": "e911-64"
"index.production.js": "7947-64"
},

@@ -357,50 +357,59 @@ "imported": [],

{
"uid": "e911-101"
"uid": "7947-101"
},
{
"uid": "e911-103"
"uid": "7947-103"
},
{
"uid": "e911-73"
"uid": "7947-73"
},
{
"uid": "e911-75"
"uid": "7947-75"
},
{
"uid": "e911-87"
"uid": "7947-79"
},
{
"uid": "e911-89"
"uid": "7947-83"
},
{
"uid": "e911-91"
"uid": "7947-85"
},
{
"uid": "e911-95"
"uid": "7947-87"
},
{
"uid": "e911-97"
"uid": "7947-89"
},
{
"uid": "e911-65"
"uid": "7947-91"
},
{
"uid": "e911-107"
"uid": "7947-95"
},
{
"uid": "e911-67"
"uid": "7947-97"
},
{
"uid": "e911-81"
"uid": "7947-65"
},
{
"uid": "7947-107"
},
{
"uid": "7947-67"
},
{
"uid": "7947-81"
}
]
},
"e911-65": {
"7947-65": {
"id": "/packages/table-core/src/utils.ts",
"moduleParts": {
"index.production.js": "e911-66"
"index.production.js": "7947-66"
},
"imported": [
{
"uid": "e911-63"
"uid": "7947-63"
}

@@ -410,86 +419,86 @@ ],

{
"uid": "e911-123"
"uid": "7947-123"
},
{
"uid": "e911-101"
"uid": "7947-101"
},
{
"uid": "e911-73"
"uid": "7947-73"
},
{
"uid": "e911-75"
"uid": "7947-75"
},
{
"uid": "e911-79"
"uid": "7947-79"
},
{
"uid": "e911-83"
"uid": "7947-83"
},
{
"uid": "e911-99"
"uid": "7947-99"
},
{
"uid": "e911-85"
"uid": "7947-85"
},
{
"uid": "e911-87"
"uid": "7947-87"
},
{
"uid": "e911-89"
"uid": "7947-89"
},
{
"uid": "e911-91"
"uid": "7947-91"
},
{
"uid": "e911-95"
"uid": "7947-95"
},
{
"uid": "e911-97"
"uid": "7947-97"
},
{
"uid": "e911-105"
"uid": "7947-105"
},
{
"uid": "e911-107"
"uid": "7947-107"
},
{
"uid": "e911-111"
"uid": "7947-111"
},
{
"uid": "e911-113"
"uid": "7947-113"
},
{
"uid": "e911-115"
"uid": "7947-115"
},
{
"uid": "e911-117"
"uid": "7947-117"
},
{
"uid": "e911-119"
"uid": "7947-119"
},
{
"uid": "e911-121"
"uid": "7947-121"
},
{
"uid": "e911-67"
"uid": "7947-67"
},
{
"uid": "e911-69"
"uid": "7947-69"
},
{
"uid": "e911-71"
"uid": "7947-71"
}
]
},
"e911-67": {
"7947-67": {
"id": "/packages/table-core/src/features/Columns.ts",
"moduleParts": {
"index.production.js": "e911-68"
"index.production.js": "7947-68"
},
"imported": [
{
"uid": "e911-63"
"uid": "7947-63"
},
{
"uid": "e911-65"
"uid": "7947-65"
}

@@ -499,14 +508,14 @@ ],

{
"uid": "e911-101"
"uid": "7947-101"
}
]
},
"e911-69": {
"7947-69": {
"id": "/packages/table-core/src/features/Rows.ts",
"moduleParts": {
"index.production.js": "e911-70"
"index.production.js": "7947-70"
},
"imported": [
{
"uid": "e911-65"
"uid": "7947-65"
}

@@ -516,14 +525,14 @@ ],

{
"uid": "e911-101"
"uid": "7947-101"
}
]
},
"e911-71": {
"7947-71": {
"id": "/packages/table-core/src/features/Cells.ts",
"moduleParts": {
"index.production.js": "e911-72"
"index.production.js": "7947-72"
},
"imported": [
{
"uid": "e911-65"
"uid": "7947-65"
}

@@ -533,17 +542,17 @@ ],

{
"uid": "e911-101"
"uid": "7947-101"
}
]
},
"e911-73": {
"7947-73": {
"id": "/packages/table-core/src/features/ColumnSizing.ts",
"moduleParts": {
"index.production.js": "e911-74"
"index.production.js": "7947-74"
},
"imported": [
{
"uid": "e911-63"
"uid": "7947-63"
},
{
"uid": "e911-65"
"uid": "7947-65"
}

@@ -553,20 +562,20 @@ ],

{
"uid": "e911-123"
"uid": "7947-123"
},
{
"uid": "e911-101"
"uid": "7947-101"
}
]
},
"e911-75": {
"7947-75": {
"id": "/packages/table-core/src/features/Expanding.ts",
"moduleParts": {
"index.production.js": "e911-76"
"index.production.js": "7947-76"
},
"imported": [
{
"uid": "e911-63"
"uid": "7947-63"
},
{
"uid": "e911-65"
"uid": "7947-65"
}

@@ -576,13 +585,13 @@ ],

{
"uid": "e911-123"
"uid": "7947-123"
},
{
"uid": "e911-101"
"uid": "7947-101"
}
]
},
"e911-77": {
"7947-77": {
"id": "/packages/table-core/src/filterFns.ts",
"moduleParts": {
"index.production.js": "e911-78"
"index.production.js": "7947-78"
},

@@ -592,17 +601,20 @@ "imported": [],

{
"uid": "e911-79"
"uid": "7947-79"
}
]
},
"e911-79": {
"7947-79": {
"id": "/packages/table-core/src/features/Filters.ts",
"moduleParts": {
"index.production.js": "e911-80"
"index.production.js": "7947-80"
},
"imported": [
{
"uid": "e911-77"
"uid": "7947-63"
},
{
"uid": "e911-65"
"uid": "7947-77"
},
{
"uid": "7947-65"
}

@@ -612,17 +624,17 @@ ],

{
"uid": "e911-123"
"uid": "7947-123"
},
{
"uid": "e911-101"
"uid": "7947-101"
}
]
},
"e911-81": {
"7947-81": {
"id": "/packages/table-core/src/aggregationFns.ts",
"moduleParts": {
"index.production.js": "e911-82"
"index.production.js": "7947-82"
},
"imported": [
{
"uid": "e911-63"
"uid": "7947-63"
}

@@ -632,20 +644,23 @@ ],

{
"uid": "e911-101"
"uid": "7947-101"
},
{
"uid": "e911-83"
"uid": "7947-83"
}
]
},
"e911-83": {
"7947-83": {
"id": "/packages/table-core/src/features/Grouping.ts",
"moduleParts": {
"index.production.js": "e911-84"
"index.production.js": "7947-84"
},
"imported": [
{
"uid": "e911-81"
"uid": "7947-63"
},
{
"uid": "e911-65"
"uid": "7947-81"
},
{
"uid": "7947-65"
}

@@ -655,23 +670,26 @@ ],

{
"uid": "e911-123"
"uid": "7947-123"
},
{
"uid": "e911-101"
"uid": "7947-101"
},
{
"uid": "e911-85"
"uid": "7947-85"
}
]
},
"e911-85": {
"7947-85": {
"id": "/packages/table-core/src/features/Ordering.ts",
"moduleParts": {
"index.production.js": "e911-86"
"index.production.js": "7947-86"
},
"imported": [
{
"uid": "e911-65"
"uid": "7947-63"
},
{
"uid": "e911-83"
"uid": "7947-65"
},
{
"uid": "7947-83"
}

@@ -681,20 +699,20 @@ ],

{
"uid": "e911-123"
"uid": "7947-123"
},
{
"uid": "e911-101"
"uid": "7947-101"
}
]
},
"e911-87": {
"7947-87": {
"id": "/packages/table-core/src/features/Pagination.ts",
"moduleParts": {
"index.production.js": "e911-88"
"index.production.js": "7947-88"
},
"imported": [
{
"uid": "e911-63"
"uid": "7947-63"
},
{
"uid": "e911-65"
"uid": "7947-65"
}

@@ -704,20 +722,20 @@ ],

{
"uid": "e911-123"
"uid": "7947-123"
},
{
"uid": "e911-101"
"uid": "7947-101"
}
]
},
"e911-89": {
"7947-89": {
"id": "/packages/table-core/src/features/Pinning.ts",
"moduleParts": {
"index.production.js": "e911-90"
"index.production.js": "7947-90"
},
"imported": [
{
"uid": "e911-63"
"uid": "7947-63"
},
{
"uid": "e911-65"
"uid": "7947-65"
}

@@ -727,20 +745,20 @@ ],

{
"uid": "e911-123"
"uid": "7947-123"
},
{
"uid": "e911-101"
"uid": "7947-101"
}
]
},
"e911-91": {
"7947-91": {
"id": "/packages/table-core/src/features/RowSelection.ts",
"moduleParts": {
"index.production.js": "e911-92"
"index.production.js": "7947-92"
},
"imported": [
{
"uid": "e911-63"
"uid": "7947-63"
},
{
"uid": "e911-65"
"uid": "7947-65"
}

@@ -750,13 +768,13 @@ ],

{
"uid": "e911-123"
"uid": "7947-123"
},
{
"uid": "e911-101"
"uid": "7947-101"
}
]
},
"e911-93": {
"7947-93": {
"id": "/packages/table-core/src/sortingFns.ts",
"moduleParts": {
"index.production.js": "e911-94"
"index.production.js": "7947-94"
},

@@ -766,20 +784,20 @@ "imported": [],

{
"uid": "e911-95"
"uid": "7947-95"
}
]
},
"e911-95": {
"7947-95": {
"id": "/packages/table-core/src/features/Sorting.ts",
"moduleParts": {
"index.production.js": "e911-96"
"index.production.js": "7947-96"
},
"imported": [
{
"uid": "e911-63"
"uid": "7947-63"
},
{
"uid": "e911-93"
"uid": "7947-93"
},
{
"uid": "e911-65"
"uid": "7947-65"
}

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

{
"uid": "e911-123"
"uid": "7947-123"
},
{
"uid": "e911-101"
"uid": "7947-101"
}
]
},
"e911-97": {
"7947-97": {
"id": "/packages/table-core/src/features/Visibility.ts",
"moduleParts": {
"index.production.js": "e911-98"
"index.production.js": "7947-98"
},
"imported": [
{
"uid": "e911-63"
"uid": "7947-63"
},
{
"uid": "e911-65"
"uid": "7947-65"
}

@@ -812,17 +830,17 @@ ],

{
"uid": "e911-123"
"uid": "7947-123"
},
{
"uid": "e911-101"
"uid": "7947-101"
}
]
},
"e911-99": {
"7947-99": {
"id": "/packages/table-core/src/features/Headers.ts",
"moduleParts": {
"index.production.js": "e911-100"
"index.production.js": "7947-100"
},
"imported": [
{
"uid": "e911-65"
"uid": "7947-65"
}

@@ -832,65 +850,65 @@ ],

{
"uid": "e911-123"
"uid": "7947-123"
},
{
"uid": "e911-101"
"uid": "7947-101"
}
]
},
"e911-101": {
"7947-101": {
"id": "/packages/table-core/src/core.ts",
"moduleParts": {
"index.production.js": "e911-102"
"index.production.js": "7947-102"
},
"imported": [
{
"uid": "e911-63"
"uid": "7947-63"
},
{
"uid": "e911-65"
"uid": "7947-65"
},
{
"uid": "e911-67"
"uid": "7947-67"
},
{
"uid": "e911-69"
"uid": "7947-69"
},
{
"uid": "e911-71"
"uid": "7947-71"
},
{
"uid": "e911-73"
"uid": "7947-73"
},
{
"uid": "e911-75"
"uid": "7947-75"
},
{
"uid": "e911-79"
"uid": "7947-79"
},
{
"uid": "e911-83"
"uid": "7947-83"
},
{
"uid": "e911-85"
"uid": "7947-85"
},
{
"uid": "e911-87"
"uid": "7947-87"
},
{
"uid": "e911-89"
"uid": "7947-89"
},
{
"uid": "e911-91"
"uid": "7947-91"
},
{
"uid": "e911-95"
"uid": "7947-95"
},
{
"uid": "e911-97"
"uid": "7947-97"
},
{
"uid": "e911-99"
"uid": "7947-99"
},
{
"uid": "e911-81"
"uid": "7947-81"
}

@@ -900,14 +918,14 @@ ],

{
"uid": "e911-123"
"uid": "7947-123"
}
]
},
"e911-103": {
"7947-103": {
"id": "/packages/table-core/src/createTable.ts",
"moduleParts": {
"index.production.js": "e911-104"
"index.production.js": "7947-104"
},
"imported": [
{
"uid": "e911-63"
"uid": "7947-63"
}

@@ -917,14 +935,14 @@ ],

{
"uid": "e911-123"
"uid": "7947-123"
}
]
},
"e911-105": {
"7947-105": {
"id": "/packages/table-core/src/utils/getCoreRowModelSync.ts",
"moduleParts": {
"index.production.js": "e911-106"
"index.production.js": "7947-106"
},
"imported": [
{
"uid": "e911-65"
"uid": "7947-65"
}

@@ -934,17 +952,17 @@ ],

{
"uid": "e911-123"
"uid": "7947-123"
}
]
},
"e911-107": {
"7947-107": {
"id": "/packages/table-core/src/utils/getCoreRowModelAsync.ts",
"moduleParts": {
"index.production.js": "e911-108"
"index.production.js": "7947-108"
},
"imported": [
{
"uid": "e911-63"
"uid": "7947-63"
},
{
"uid": "e911-65"
"uid": "7947-65"
}

@@ -954,10 +972,10 @@ ],

{
"uid": "e911-123"
"uid": "7947-123"
}
]
},
"e911-109": {
"7947-109": {
"id": "/packages/table-core/src/utils/filterRowsUtils.ts",
"moduleParts": {
"index.production.js": "e911-110"
"index.production.js": "7947-110"
},

@@ -967,20 +985,20 @@ "imported": [],

{
"uid": "e911-111"
"uid": "7947-111"
},
{
"uid": "e911-113"
"uid": "7947-113"
}
]
},
"e911-111": {
"7947-111": {
"id": "/packages/table-core/src/utils/getColumnFilteredRowModelSync.ts",
"moduleParts": {
"index.production.js": "e911-112"
"index.production.js": "7947-112"
},
"imported": [
{
"uid": "e911-65"
"uid": "7947-65"
},
{
"uid": "e911-109"
"uid": "7947-109"
}

@@ -990,17 +1008,17 @@ ],

{
"uid": "e911-123"
"uid": "7947-123"
}
]
},
"e911-113": {
"7947-113": {
"id": "/packages/table-core/src/utils/getGlobalFilteredRowModelSync.ts",
"moduleParts": {
"index.production.js": "e911-114"
"index.production.js": "7947-114"
},
"imported": [
{
"uid": "e911-65"
"uid": "7947-65"
},
{
"uid": "e911-109"
"uid": "7947-109"
}

@@ -1010,14 +1028,14 @@ ],

{
"uid": "e911-123"
"uid": "7947-123"
}
]
},
"e911-115": {
"7947-115": {
"id": "/packages/table-core/src/utils/getSortedRowModelSync.ts",
"moduleParts": {
"index.production.js": "e911-116"
"index.production.js": "7947-116"
},
"imported": [
{
"uid": "e911-65"
"uid": "7947-65"
}

@@ -1027,14 +1045,14 @@ ],

{
"uid": "e911-123"
"uid": "7947-123"
}
]
},
"e911-117": {
"7947-117": {
"id": "/packages/table-core/src/utils/getGroupedRowModel.ts",
"moduleParts": {
"index.production.js": "e911-118"
"index.production.js": "7947-118"
},
"imported": [
{
"uid": "e911-65"
"uid": "7947-65"
}

@@ -1044,14 +1062,14 @@ ],

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

@@ -1061,20 +1079,20 @@ ],

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

@@ -1084,80 +1102,80 @@ ],

{
"uid": "e911-123"
"uid": "7947-123"
}
]
},
"e911-123": {
"7947-123": {
"id": "/packages/table-core/src/index.ts",
"moduleParts": {
"index.production.js": "e911-124"
"index.production.js": "7947-124"
},
"imported": [
{
"uid": "e911-101"
"uid": "7947-101"
},
{
"uid": "e911-125"
"uid": "7947-125"
},
{
"uid": "e911-103"
"uid": "7947-103"
},
{
"uid": "e911-73"
"uid": "7947-73"
},
{
"uid": "e911-75"
"uid": "7947-75"
},
{
"uid": "e911-79"
"uid": "7947-79"
},
{
"uid": "e911-83"
"uid": "7947-83"
},
{
"uid": "e911-99"
"uid": "7947-99"
},
{
"uid": "e911-85"
"uid": "7947-85"
},
{
"uid": "e911-87"
"uid": "7947-87"
},
{
"uid": "e911-89"
"uid": "7947-89"
},
{
"uid": "e911-91"
"uid": "7947-91"
},
{
"uid": "e911-95"
"uid": "7947-95"
},
{
"uid": "e911-97"
"uid": "7947-97"
},
{
"uid": "e911-65"
"uid": "7947-65"
},
{
"uid": "e911-105"
"uid": "7947-105"
},
{
"uid": "e911-107"
"uid": "7947-107"
},
{
"uid": "e911-111"
"uid": "7947-111"
},
{
"uid": "e911-113"
"uid": "7947-113"
},
{
"uid": "e911-115"
"uid": "7947-115"
},
{
"uid": "e911-117"
"uid": "7947-117"
},
{
"uid": "e911-119"
"uid": "7947-119"
},
{
"uid": "e911-121"
"uid": "7947-121"
}

@@ -1168,3 +1186,3 @@ ],

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

@@ -1175,3 +1193,3 @@ "moduleParts": {},

{
"uid": "e911-123"
"uid": "7947-123"
}

@@ -1178,0 +1196,0 @@ ]

import { RowModel } from '..';
import { OnChangeFn, TableGenerics, TableInstance, Row, Updater } from '../types';
import { OnChangeFn, TableGenerics, TableInstance, Row, Updater, TableFeature } from '../types';
export declare type ExpandedStateList = Record<string, boolean>;

@@ -44,7 +44,2 @@ export declare type ExpandedState = true | Record<string, boolean>;

};
export declare const Expanding: {
getInitialState: () => ExpandedTableState;
getDefaultOptions: <TGenerics extends TableGenerics>(instance: TableInstance<TGenerics>) => ExpandedOptions<TGenerics>;
createInstance: <TGenerics_1 extends TableGenerics>(instance: TableInstance<TGenerics_1>) => ExpandedInstance<TGenerics_1>;
createRow: <TGenerics_2 extends TableGenerics>(row: Row<TGenerics_2>, instance: TableInstance<TGenerics_2>) => ExpandedRow;
};
export declare const Expanding: TableFeature;
import { RowModel } from '..';
import { BuiltInFilterFn } from '../filterFns';
import { Column, OnChangeFn, TableGenerics, TableInstance, Row, Updater } from '../types';
import { Column, OnChangeFn, TableGenerics, TableInstance, Row, Updater, TableFeature } from '../types';
import { Overwrite } from '../utils';

@@ -27,8 +27,4 @@ export declare type FiltersTableState = {

}>>;
enableAllFilters?: boolean;
enableColumnFilter?: boolean;
enableGlobalFilter?: boolean;
defaultCanFilter?: boolean;
defaultCanColumnFilter?: boolean;
defaultCanGlobalFilter?: boolean;
};

@@ -52,3 +48,2 @@ export declare type FiltersColumn<TGenerics extends TableGenerics> = {

filterFns?: TGenerics['FilterFns'];
enableFilters?: boolean;
manualColumnFiltering?: boolean;

@@ -63,3 +58,3 @@ onColumnFiltersChange?: OnChangeFn<ColumnFiltersState>;

getGlobalFilteredRowModel?: (instance: TableInstance<TGenerics>) => () => RowModel<TGenerics>;
getColumnCanGlobalFilterFn?: (column: Column<TGenerics>) => boolean;
getColumnCanGlobalFilter?: (column: Column<TGenerics>) => boolean;
};

@@ -88,9 +83,3 @@ export declare type FiltersInstance<TGenerics extends TableGenerics> = {

};
export declare const Filters: {
getDefaultColumn: <TGenerics extends TableGenerics>() => FiltersColumnDef<TGenerics>;
getInitialState: () => FiltersTableState;
getDefaultOptions: <TGenerics_1 extends TableGenerics>(instance: TableInstance<TGenerics_1>) => FiltersOptions<TGenerics_1>;
createColumn: <TGenerics_2 extends TableGenerics>(column: Column<TGenerics_2>, instance: TableInstance<TGenerics_2>) => FiltersColumn<TGenerics_2>;
createInstance: <TGenerics_3 extends TableGenerics>(instance: TableInstance<TGenerics_3>) => FiltersInstance<TGenerics_3>;
};
export declare const Filters: TableFeature;
export declare function shouldAutoRemoveFilter<TGenerics extends TableGenerics>(filterFn?: FilterFn<TGenerics>, value?: any, column?: Column<TGenerics>): boolean;
import { RowModel } from '..';
import { BuiltInAggregationFn } from '../aggregationFns';
import { Cell, Column, OnChangeFn, TableInstance, Row, Updater, Renderable, TableGenerics } from '../types';
import { Cell, Column, OnChangeFn, TableInstance, Row, Updater, Renderable, TableGenerics, TableFeature } from '../types';
import { Overwrite } from '../utils';

@@ -77,11 +77,3 @@ export declare type GroupingState = string[];

};
export declare const Grouping: {
getDefaultColumn: <TGenerics extends TableGenerics>() => GroupingColumnDef<TGenerics>;
getInitialState: () => GroupingTableState;
getDefaultOptions: <TGenerics_1 extends TableGenerics>(instance: TableInstance<TGenerics_1>) => GroupingOptions<TGenerics_1>;
createColumn: <TGenerics_2 extends TableGenerics>(column: Column<TGenerics_2>, instance: TableInstance<TGenerics_2>) => GroupingColumn<TGenerics_2>;
createInstance: <TGenerics_3 extends TableGenerics>(instance: TableInstance<TGenerics_3>) => GroupingInstance<TGenerics_3>;
createRow: <TGenerics_4 extends TableGenerics>(row: Row<TGenerics_4>, instance: TableInstance<TGenerics_4>) => GroupingRow;
createCell: <TGenerics_5 extends TableGenerics>(cell: Cell<TGenerics_5>, column: Column<TGenerics_5>, row: Row<TGenerics_5>, instance: TableInstance<TGenerics_5>) => GroupingCell<TGenerics_5>;
orderColumns: <TGenerics_6 extends TableGenerics>(leafColumns: Column<TGenerics_6>[], grouping: string[], groupedColumnMode?: GroupingColumnMode) => Column<TGenerics_6>[];
};
export declare const Grouping: TableFeature;
export declare function orderColumns<TGenerics extends TableGenerics>(leafColumns: Column<TGenerics>[], grouping: string[], groupedColumnMode?: GroupingColumnMode): Column<TGenerics>[];

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

import { TableInstance, OnChangeFn, Updater, Column, TableGenerics } from '../types';
import { OnChangeFn, Updater, Column, TableGenerics, TableFeature } from '../types';
export declare type ColumnOrderTableState = {

@@ -17,6 +17,2 @@ columnOrder: ColumnOrderState;

};
export declare const Ordering: {
getInitialState: () => ColumnOrderTableState;
getDefaultOptions: <TGenerics extends TableGenerics>(instance: TableInstance<TGenerics>) => ColumnOrderDefaultOptions;
createInstance: <TGenerics_1 extends TableGenerics>(instance: TableInstance<TGenerics_1>) => ColumnOrderInstance<TGenerics_1>;
};
export declare const Ordering: TableFeature;

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

import { OnChangeFn, Updater, TableInstance, Column, TableGenerics, Row, Cell } from '../types';
import { OnChangeFn, Updater, Column, TableGenerics, Cell, TableFeature } from '../types';
export declare type ColumnPinningPosition = false | 'left' | 'right';

@@ -19,3 +19,2 @@ export declare type ColumnPinningState = {

enablePinning?: boolean;
defaultCanPin?: boolean;
};

@@ -33,7 +32,2 @@ export declare type ColumnPinningColumn = {

};
export declare type ColumnPinningCell<TGenerics extends TableGenerics> = {
getLeftVisibleCells: () => Cell<TGenerics>[];
getCenterVisibleCells: () => Cell<TGenerics>[];
getRightVisibleCells: () => Cell<TGenerics>[];
};
export declare type ColumnPinningInstance<TGenerics extends TableGenerics> = {

@@ -51,9 +45,2 @@ setColumnPinning: (updater: Updater<ColumnPinningState>) => void;

};
export declare const Pinning: {
getInitialState: () => ColumnPinningTableState;
getDefaultOptions: <TGenerics extends TableGenerics>(instance: TableInstance<TGenerics>) => ColumnPinningDefaultOptions;
createColumn: <TGenerics_1 extends TableGenerics>(column: Column<TGenerics_1>, instance: TableInstance<TGenerics_1>) => ColumnPinningColumn;
createRow: <TGenerics_2 extends TableGenerics>(row: Row<TGenerics_2>, instance: TableInstance<TGenerics_2>) => ColumnPinningRow<TGenerics_2>;
createCell: <TGenerics_3 extends TableGenerics>(cell: Cell<TGenerics_3>, instance: TableInstance<TGenerics_3>) => ColumnPinningCell<TGenerics_3>;
createInstance: <TGenerics_4 extends TableGenerics>(instance: TableInstance<TGenerics_4>) => ColumnPinningInstance<TGenerics_4>;
};
export declare const Pinning: TableFeature;

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

import { OnChangeFn, TableGenerics, TableInstance, Row, RowModel, Updater } from '../types';
import { OnChangeFn, TableGenerics, TableInstance, Row, RowModel, Updater, TableFeature } from '../types';
export declare type RowSelectionState = Record<string, boolean>;

@@ -7,6 +7,6 @@ export declare type RowSelectionTableState = {

export declare type RowSelectionOptions<TGenerics extends TableGenerics> = {
onRowSelectionChange?: OnChangeFn<RowSelectionState>;
enableRowSelection?: boolean | ((row: Row<TGenerics>) => boolean);
enableMultiRowSelection?: boolean | ((row: Row<TGenerics>) => boolean);
enableSubRowSelection?: boolean | ((row: Row<TGenerics>) => boolean);
onRowSelectionChange?: OnChangeFn<RowSelectionState>;
};

@@ -44,9 +44,4 @@ export declare type RowSelectionRow = {

};
export declare const RowSelection: {
getInitialState: () => RowSelectionTableState;
getDefaultOptions: <TGenerics extends TableGenerics>(instance: TableInstance<TGenerics>) => RowSelectionOptions<TGenerics>;
createInstance: <TGenerics_1 extends TableGenerics>(instance: TableInstance<TGenerics_1>) => RowSelectionInstance<TGenerics_1>;
createRow: <TGenerics_2 extends TableGenerics>(row: Row<TGenerics_2>, instance: TableInstance<TGenerics_2>) => RowSelectionRow;
};
export declare const RowSelection: TableFeature;
export declare function selectRowsFn<TGenerics extends TableGenerics>(instance: TableInstance<TGenerics>, rowModel: RowModel<TGenerics>): RowModel<TGenerics>;
export declare function isRowSelected<TGenerics extends TableGenerics>(row: Row<TGenerics>, selection: Record<string, boolean>, instance: TableInstance<TGenerics>): boolean | 'some';
import { RowModel } from '..';
import { BuiltInSortingFn } from '../sortingFns';
import { Column, OnChangeFn, TableGenerics, TableInstance, Row, Updater } from '../types';
import { OnChangeFn, TableGenerics, TableInstance, Row, Updater, TableFeature } from '../types';
import { Overwrite } from '../utils';

@@ -71,8 +71,2 @@ export declare type SortDirection = 'asc' | 'desc';

};
export declare const Sorting: {
getDefaultColumn: <TGenerics extends TableGenerics>() => SortingColumnDef<TGenerics>;
getInitialState: () => SortingTableState;
getDefaultOptions: <TGenerics_1 extends TableGenerics>(instance: TableInstance<TGenerics_1>) => SortingOptions<TGenerics_1>;
createColumn: <TGenerics_2 extends TableGenerics>(column: Column<TGenerics_2>, instance: TableInstance<TGenerics_2>) => SortingColumn<TGenerics_2>;
createInstance: <TGenerics_3 extends TableGenerics>(instance: TableInstance<TGenerics_3>) => SortingInstance<TGenerics_3>;
};
export declare const Sorting: TableFeature;

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

import { Cell, Column, OnChangeFn, TableGenerics, TableInstance, Updater, Row } from '../types';
import { Cell, Column, OnChangeFn, TableGenerics, Updater, TableFeature } from '../types';
export declare type VisibilityOptions = {

@@ -43,11 +43,2 @@ onColumnVisibilityChange?: OnChangeFn<VisibilityState>;

};
export declare const Visibility: {
getInitialState: () => VisibilityTableState;
getDefaultOptions: <TGenerics extends TableGenerics>(instance: TableInstance<TGenerics>) => VisibilityDefaultOptions;
getDefaultColumn: () => {
defaultIsVisible: boolean;
};
createColumn: <TGenerics_1 extends TableGenerics>(column: Column<TGenerics_1>, instance: TableInstance<TGenerics_1>) => VisibilityColumn;
createRow: <TGenerics_2 extends TableGenerics>(row: Row<TGenerics_2>, instance: TableInstance<TGenerics_2>) => VisibilityRow<TGenerics_2>;
createInstance: <TGenerics_3 extends TableGenerics>(instance: TableInstance<TGenerics_3>) => VisibilityInstance<TGenerics_3>;
};
export declare const Visibility: TableFeature;
{
"name": "@tanstack/table-core",
"author": "Tanner Linsley",
"version": "8.0.0-alpha.63",
"version": "8.0.0-alpha.64",
"description": "Hooks for building lightweight, fast and extendable datagrids for React",

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

@@ -119,10 +119,11 @@ import { functionalUpdate, RequiredKeys } from './utils'

const initialState = {
let initialState = {
...coreInitialState,
...(options.initialState ?? {}),
...instance._features.reduce((obj, feature) => {
return Object.assign(obj, feature.getInitialState?.(options.initialState))
}, {}),
} as TableState
instance._features.forEach(feature => {
initialState = feature.getInitialState?.(initialState) ?? initialState
})
const queued: (() => void)[] = []

@@ -129,0 +130,0 @@ let queuedTimeout = false

@@ -101,3 +101,3 @@ import {

},
getInitialState: (): ColumnSizingTableState => {
getInitialState: (state): ColumnSizingTableState => {
return {

@@ -113,2 +113,3 @@ columnSizing: {},

},
...state,
}

@@ -115,0 +116,0 @@ },

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

Updater,
TableFeature,
} from '../types'

@@ -61,6 +62,7 @@ import { makeStateUpdater } from '../utils'

export const Expanding = {
getInitialState: (): ExpandedTableState => {
export const Expanding: TableFeature = {
getInitialState: (state): ExpandedTableState => {
return {
expanded: {},
...state,
}

@@ -67,0 +69,0 @@ },

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

Updater,
TableFeature,
} from '../types'

@@ -61,8 +62,4 @@ import {

filterFn?: FilterFnOption<Overwrite<TGenerics, { Value: any }>>
enableAllFilters?: boolean
enableColumnFilter?: boolean
enableGlobalFilter?: boolean
defaultCanFilter?: boolean
defaultCanColumnFilter?: boolean
defaultCanGlobalFilter?: boolean
}

@@ -86,3 +83,3 @@

filterFns?: TGenerics['FilterFns']
enableFilters?: boolean
// Column

@@ -95,2 +92,3 @@ manualColumnFiltering?: boolean

) => () => RowModel<TGenerics>
// Global

@@ -104,3 +102,3 @@ manualGlobalFiltering?: boolean

) => () => RowModel<TGenerics>
getColumnCanGlobalFilterFn?: (column: Column<TGenerics>) => boolean
getColumnCanGlobalFilter?: (column: Column<TGenerics>) => boolean
}

@@ -140,3 +138,3 @@

export const Filters = {
export const Filters: TableFeature = {
getDefaultColumn: <

@@ -150,3 +148,3 @@ TGenerics extends TableGenerics

getInitialState: (): FiltersTableState => {
getInitialState: (state): FiltersTableState => {
return {

@@ -157,2 +155,3 @@ columnFilters: [],

globalFilterProgress: 1,
...state,
}

@@ -169,3 +168,3 @@ },

globalFilterFn: 'auto',
getColumnCanGlobalFilterFn: column => {
getColumnCanGlobalFilter: column => {
const value = instance

@@ -293,2 +292,4 @@ .getCoreRowModel()

debugger
return isFunction(globalFilterFn)

@@ -344,8 +345,4 @@ ? globalFilterFn

return (
column.enableAllFilters ??
column.enableColumnFilter ??
instance.options.enableFilters ??
instance.options.enableColumnFilters ??
column.defaultCanColumnFilter ??
column.defaultCanFilter ??
(column.enableColumnFilter ?? true) &&
(instance.options.enableColumnFilters ?? true) &&
!!column.accessorFn

@@ -363,11 +360,6 @@ )

return (
((instance.options.enableFilters ??
instance.options.enableGlobalFilter ??
column.enableAllFilters ??
column.enableGlobalFilter ??
column.defaultCanGlobalFilter ??
column.defaultCanFilter ??
!!column.accessorFn) &&
instance.options.getColumnCanGlobalFilterFn?.(column)) ??
true
(column.enableGlobalFilter ?? true) &&
(instance.options.enableGlobalFilter ?? true) &&
(instance.options.getColumnCanGlobalFilter?.(column) ?? true) &&
!!column.accessorFn
)

@@ -374,0 +366,0 @@ },

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

TableGenerics,
TableFeature,
} from '../types'

@@ -120,3 +121,3 @@ import { isFunction, makeStateUpdater, Overwrite } from '../utils'

export const Grouping = {
export const Grouping: TableFeature = {
getDefaultColumn: <

@@ -130,5 +131,6 @@ TGenerics extends TableGenerics

getInitialState: (): GroupingTableState => {
getInitialState: (state): GroupingTableState => {
return {
grouping: [],
...state,
}

@@ -308,26 +310,26 @@ },

},
}
orderColumns: <TGenerics extends TableGenerics>(
leafColumns: Column<TGenerics>[],
grouping: string[],
groupedColumnMode?: GroupingColumnMode
) => {
if (!grouping?.length || !groupedColumnMode) {
return leafColumns
}
export function orderColumns<TGenerics extends TableGenerics>(
leafColumns: Column<TGenerics>[],
grouping: string[],
groupedColumnMode?: GroupingColumnMode
) {
if (!grouping?.length || !groupedColumnMode) {
return leafColumns
}
const nonGroupingColumns = leafColumns.filter(
col => !grouping.includes(col.id)
)
const nonGroupingColumns = leafColumns.filter(
col => !grouping.includes(col.id)
)
if (groupedColumnMode === 'remove') {
return nonGroupingColumns
}
if (groupedColumnMode === 'remove') {
return nonGroupingColumns
}
const groupingColumns = grouping
.map(g => leafColumns.find(col => col.id === g)!)
.filter(Boolean)
const groupingColumns = grouping
.map(g => leafColumns.find(col => col.id === g)!)
.filter(Boolean)
return [...groupingColumns, ...nonGroupingColumns]
},
return [...groupingColumns, ...nonGroupingColumns]
}

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

TableGenerics,
TableFeature,
} from '../types'
import { Grouping } from './Grouping'
import { Grouping, orderColumns } from './Grouping'

@@ -38,6 +39,7 @@ export type ColumnOrderTableState = {

export const Ordering = {
getInitialState: (): ColumnOrderTableState => {
export const Ordering: TableFeature = {
getInitialState: (state): ColumnOrderTableState => {
return {
columnOrder: [],
...state,
}

@@ -100,7 +102,3 @@ },

return Grouping.orderColumns(
orderedColumns,
grouping,
groupedColumnMode
)
return orderColumns(orderedColumns, grouping, groupedColumnMode)
},

@@ -107,0 +105,0 @@ {

@@ -62,4 +62,5 @@ import {

export const Pagination: TableFeature = {
getInitialState: (initialState): PaginationTableState => {
getInitialState: (state): PaginationTableState => {
return {
...state,
pagination: {

@@ -69,3 +70,3 @@ pageCount: -1,

pageSize: 10,
...initialState?.pagination,
...state?.pagination,
},

@@ -72,0 +73,0 @@ }

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

Cell,
TableFeature,
} from '../types'

@@ -35,3 +36,2 @@ import { makeStateUpdater, memo } from '../utils'

enablePinning?: boolean
defaultCanPin?: boolean
}

@@ -52,8 +52,2 @@

export type ColumnPinningCell<TGenerics extends TableGenerics> = {
getLeftVisibleCells: () => Cell<TGenerics>[]
getCenterVisibleCells: () => Cell<TGenerics>[]
getRightVisibleCells: () => Cell<TGenerics>[]
}
export type ColumnPinningInstance<TGenerics extends TableGenerics> = {

@@ -74,4 +68,4 @@ setColumnPinning: (updater: Updater<ColumnPinningState>) => void

export const Pinning = {
getInitialState: (): ColumnPinningTableState => {
export const Pinning: TableFeature = {
getInitialState: (state): ColumnPinningTableState => {
return {

@@ -82,2 +76,3 @@ columnPinning: {

},
...state,
}

@@ -167,63 +162,2 @@ },

createCell: <TGenerics extends TableGenerics>(
cell: Cell<TGenerics>,
instance: TableInstance<TGenerics>
): ColumnPinningCell<TGenerics> => {
return {
getCenterVisibleCells: memo(
() => [
cell.row._getAllVisibleCells(),
instance.getState().columnPinning.left,
instance.getState().columnPinning.right,
],
(allCells, left, right) => {
const leftAndRight: string[] = [...(left ?? []), ...(right ?? [])]
return allCells.filter(d => !leftAndRight.includes(d.columnId))
},
{
key: 'row.getCenterVisibleCells',
debug: () => instance.options.debugAll ?? instance.options.debugRows,
}
),
getLeftVisibleCells: memo(
() => [
cell.row._getAllVisibleCells(),
instance.getState().columnPinning.left,
,
],
(allCells, left) => {
const cells = (left ?? [])
.map(columnId => allCells.find(cell => cell.columnId === columnId)!)
.filter(Boolean)
.map(d => ({ ...d, position: 'left' } as Cell<TGenerics>))
return cells
},
{
key: 'row.getLeftVisibleCells',
debug: () => instance.options.debugAll ?? instance.options.debugRows,
}
),
getRightVisibleCells: memo(
() => [
cell.row._getAllVisibleCells(),
instance.getState().columnPinning.right,
],
(allCells, right) => {
const cells = (right ?? [])
.map(columnId => allCells.find(cell => cell.columnId === columnId)!)
.filter(Boolean)
.map(d => ({ ...d, position: 'left' } as Cell<TGenerics>))
return cells
},
{
key: 'row.getRightVisibleCells',
debug: () => instance.options.debugAll ?? instance.options.debugRows,
}
),
}
},
createInstance: <TGenerics extends TableGenerics>(

@@ -286,6 +220,4 @@ instance: TableInstance<TGenerics>

d =>
d.enablePinning ??
instance.options.enablePinning ??
d.defaultCanPin ??
!!d.accessorFn
(d.enablePinning ?? true) &&
(instance.options.enablePinning ?? true)
)

@@ -292,0 +224,0 @@ },

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

Updater,
TableFeature,
} from '../types'

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

export type RowSelectionOptions<TGenerics extends TableGenerics> = {
onRowSelectionChange?: OnChangeFn<RowSelectionState>
enableRowSelection?: boolean | ((row: Row<TGenerics>) => boolean)
enableMultiRowSelection?: boolean | ((row: Row<TGenerics>) => boolean)
enableSubRowSelection?: boolean | ((row: Row<TGenerics>) => boolean)
onRowSelectionChange?: OnChangeFn<RowSelectionState>
// enableGroupingRowSelection?:

@@ -81,6 +82,7 @@ // | boolean

export const RowSelection = {
getInitialState: (): RowSelectionTableState => {
export const RowSelection: TableFeature = {
getInitialState: (state): RowSelectionTableState => {
return {
rowSelection: {},
...state,
}

@@ -87,0 +89,0 @@ },

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

Updater,
TableFeature,
} from '../types'

@@ -112,3 +113,10 @@

export const Sorting = {
export const Sorting: TableFeature = {
getInitialState: (state): SortingTableState => {
return {
sorting: [],
...state,
}
},
getDefaultColumn: <

@@ -122,8 +130,2 @@ TGenerics extends TableGenerics

getInitialState: (): SortingTableState => {
return {
sorting: [],
}
},
getDefaultOptions: <TGenerics extends TableGenerics>(

@@ -130,0 +132,0 @@ instance: TableInstance<TGenerics>

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

Row,
TableFeature,
} from '../types'

@@ -66,6 +67,7 @@ import { makeStateUpdater, memo } from '../utils'

export const Visibility = {
getInitialState: (): VisibilityTableState => {
export const Visibility: TableFeature = {
getInitialState: (state): VisibilityTableState => {
return {
columnVisibility: {},
...state,
}

@@ -72,0 +74,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 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

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