@tanstack/react-table 8.0.0-alpha.79 → 8.0.0-alpha.82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/react-table/src/index.js +5 -0
- package/build/cjs/react-table/src/index.js.map +1 -1
- package/build/cjs/table-core/build/esm/index.js +32 -14
- package/build/cjs/table-core/build/esm/index.js.map +1 -1
- package/build/esm/index.js +28 -15
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +17 -17
- package/build/umd/index.development.js +32 -14
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js +1 -1
- package/build/umd/index.production.js.map +1 -1
- package/package.json +2 -2
|
@@ -102,11 +102,13 @@ exports.Pinning = index.Pinning;
|
|
|
102
102
|
exports.RowSelection = index.RowSelection;
|
|
103
103
|
exports.Sorting = index.Sorting;
|
|
104
104
|
exports.Visibility = index.Visibility;
|
|
105
|
+
exports.aggregationFns = index.aggregationFns;
|
|
105
106
|
exports.buildHeaderGroups = index.buildHeaderGroups;
|
|
106
107
|
exports.createTableFactory = index.createTableFactory;
|
|
107
108
|
exports.createTableInstance = index.createTableInstance;
|
|
108
109
|
exports.defaultColumnSizing = index.defaultColumnSizing;
|
|
109
110
|
exports.expandRows = index.expandRows;
|
|
111
|
+
exports.filterFns = index.filterFns;
|
|
110
112
|
exports.flattenBy = index.flattenBy;
|
|
111
113
|
exports.functionalUpdate = index.functionalUpdate;
|
|
112
114
|
exports.getCoreRowModel = index.getCoreRowModel;
|
|
@@ -121,12 +123,15 @@ exports.getSortedRowModel = index.getSortedRowModel;
|
|
|
121
123
|
exports.isFunction = index.isFunction;
|
|
122
124
|
exports.isRowSelected = index.isRowSelected;
|
|
123
125
|
exports.makeStateUpdater = index.makeStateUpdater;
|
|
126
|
+
exports.mean = index.mean;
|
|
124
127
|
exports.memo = index.memo;
|
|
125
128
|
exports.noop = index.noop;
|
|
126
129
|
exports.orderColumns = index.orderColumns;
|
|
127
130
|
exports.passiveEventSupported = index.passiveEventSupported;
|
|
131
|
+
exports.reSplitAlphaNumeric = index.reSplitAlphaNumeric;
|
|
128
132
|
exports.selectRowsFn = index.selectRowsFn;
|
|
129
133
|
exports.shouldAutoRemoveFilter = index.shouldAutoRemoveFilter;
|
|
134
|
+
exports.sortingFns = index.sortingFns;
|
|
130
135
|
exports.createTable = createTable;
|
|
131
136
|
exports.render = render;
|
|
132
137
|
exports.useTableInstance = useTableInstance;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/index.tsx"],"sourcesContent":["import * as React from 'react'\nexport * from '@tanstack/table-core'\n\nimport {\n createTableInstance,\n TableOptions,\n TableInstance,\n Table,\n TableGenerics,\n createTableFactory,\n Overwrite,\n PartialKeys,\n} from '@tanstack/table-core'\n\nexport type Renderable<TProps> =\n | React.ReactNode\n | React.FunctionComponent<TProps>\n | React.Component<TProps>\n\nexport type Render = <TProps extends {}>(\n Comp: Renderable<TProps>,\n props: TProps\n) => React.ReactNode | JSX.Element\n\nexport type ReactTableGenerics = Overwrite<\n TableGenerics,\n { Renderer: Render; Rendered: ReturnType<Render> }\n>\n\n//\n\nexport const render: Render = (Comp, props) =>\n !Comp ? null : isReactComponent(Comp) ? <Comp {...props} /> : Comp\n\nfunction isReactComponent(component: unknown): component is React.FC {\n return (\n isClassComponent(component) ||\n typeof component === 'function' ||\n isExoticComponent(component)\n )\n}\n\nfunction isClassComponent(component: any) {\n return (\n typeof component === 'function' &&\n (() => {\n const proto = Object.getPrototypeOf(component)\n return proto.prototype && proto.prototype.isReactComponent\n })()\n )\n}\n\nfunction isExoticComponent(component: any) {\n return (\n typeof component === 'object' &&\n typeof component.$$typeof === 'symbol' &&\n ['react.memo', 'react.forward_ref'].includes(component.$$typeof.description)\n )\n}\n\nexport const createTable = createTableFactory({ render })\n\n// const useIsomorphicLayoutEffect =\n// typeof document !== 'undefined' ? React.useLayoutEffect : React.useEffect\n\nexport type UseTableInstanceOptions<TGenerics extends ReactTableGenerics> =\n PartialKeys<\n Omit<TableOptions<TGenerics>, 'render'>,\n 'state' | 'onStateChange'\n >\n\nexport function useTableInstance<TGenerics extends ReactTableGenerics>(\n table: Table<TGenerics>,\n options: UseTableInstanceOptions<TGenerics>\n): TableInstance<TGenerics> {\n // Compose in the generic options to the user options\n const resolvedOptions: TableOptions<TGenerics> = {\n ...table.options,\n state: {}, // Dummy state\n onStateChange: () => {}, // noop\n render,\n ...options,\n }\n\n // Create a new table instance and store it in state\n const [instanceRef] = React.useState(() => ({\n current: createTableInstance<TGenerics>(resolvedOptions),\n }))\n\n // By default, manage table state here using the instance's initial state\n const [state, setState] = React.useState(\n () => instanceRef.current.initialState\n )\n\n // Compose the default state above with any user state. This will allow the user\n // to only control a subset of the state if desired.\n instanceRef.current.setOptions(prev => ({\n ...prev,\n ...options,\n state: {\n ...state,\n ...options.state,\n },\n // Similarly, we'll maintain both our internal state and any user-provided\n // state.\n onStateChange: updater => {\n setState(updater)\n options.onStateChange?.(updater)\n },\n }))\n\n return instanceRef.current\n}\n"],"names":["render","Comp","props","isReactComponent","React","component","isClassComponent","isExoticComponent","proto","Object","getPrototypeOf","prototype","$$typeof","includes","description","createTable","createTableFactory","useTableInstance","table","options","resolvedOptions","state","onStateChange","instanceRef","useState","current","createTableInstance","setState","initialState","setOptions","prev","updater"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BA;AAEO,MAAMA,MAAc,GAAG,CAACC,IAAD,EAAOC,KAAP,KAC5B,CAACD,IAAD,GAAQ,IAAR,GAAeE,gBAAgB,CAACF,IAAD,CAAhB,gBAAyBG,gBAAA,CAAA,aAAA,CAAC,IAAD,EAAUF,KAAV,CAAzB,GAA+CD,KADzD;;AAGP,SAASE,gBAAT,CAA0BE,SAA1B,EAAqE;AACnE,EAAA,OACEC,gBAAgB,CAACD,SAAD,CAAhB,IACA,OAAOA,SAAP,KAAqB,UADrB,IAEAE,iBAAi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,CAACE,OAAZ,CAAoBG,YADF,CAA1B,CAhB0B;AAqB1B;;AACAL,EAAAA,WAAW,CAACE,OAAZ,CAAoBI,UAApB,CAA+BC,IAAI,KAAK,EACtC,GAAGA,IADmC;AAEtC,IAAA,GAAGX,OAFmC;AAGtCE,IAAAA,KAAK,EAAE,EACL,GAAGA,KADE;AAEL,MAAA,GAAGF,OAAO,CAACE,KAAAA;AAFN,KAH+B;AAOtC;AACA;AACAC,IAAAA,aAAa,EAAES,OAAO,IAAI;AACxBJ,MAAAA,QAAQ,CAACI,OAAD,CAAR,CAAA;AACAZ,MAAAA,OAAO,CAACG,aAAR,IAAA,IAAA,GAAA,KAAA,CAAA,GAAAH,OAAO,CAACG,aAAR,CAAwBS,OAAxB,CAAA,CAAA;AACD,KAAA;AAZqC,GAAL,CAAnC,CAAA,CAAA;AAeA,EAAOR,OAAAA,WAAW,CAACE,OAAnB,CAAA;AACD
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/index.tsx"],"sourcesContent":["import * as React from 'react'\nexport * from '@tanstack/table-core'\n\nimport {\n createTableInstance,\n TableOptions,\n TableInstance,\n Table,\n TableGenerics,\n createTableFactory,\n Overwrite,\n PartialKeys,\n} from '@tanstack/table-core'\n\nexport type Renderable<TProps> =\n | React.ReactNode\n | React.FunctionComponent<TProps>\n | React.Component<TProps>\n\nexport type Render = <TProps extends {}>(\n Comp: Renderable<TProps>,\n props: TProps\n) => React.ReactNode | JSX.Element\n\nexport type ReactTableGenerics = Overwrite<\n TableGenerics,\n { Renderer: Render; Rendered: ReturnType<Render> }\n>\n\n//\n\nexport const render: Render = (Comp, props) =>\n !Comp ? null : isReactComponent(Comp) ? <Comp {...props} /> : Comp\n\nfunction isReactComponent(component: unknown): component is React.FC {\n return (\n isClassComponent(component) ||\n typeof component === 'function' ||\n isExoticComponent(component)\n )\n}\n\nfunction isClassComponent(component: any) {\n return (\n typeof component === 'function' &&\n (() => {\n const proto = Object.getPrototypeOf(component)\n return proto.prototype && proto.prototype.isReactComponent\n })()\n )\n}\n\nfunction isExoticComponent(component: any) {\n return (\n typeof component === 'object' &&\n typeof component.$$typeof === 'symbol' &&\n ['react.memo', 'react.forward_ref'].includes(component.$$typeof.description)\n )\n}\n\nexport const createTable = createTableFactory({ render })\n\n// const useIsomorphicLayoutEffect =\n// typeof document !== 'undefined' ? React.useLayoutEffect : React.useEffect\n\nexport type UseTableInstanceOptions<TGenerics extends ReactTableGenerics> =\n PartialKeys<\n Omit<TableOptions<TGenerics>, 'render'>,\n 'state' | 'onStateChange'\n >\n\nexport function useTableInstance<TGenerics extends ReactTableGenerics>(\n table: Table<TGenerics>,\n options: UseTableInstanceOptions<TGenerics>\n): TableInstance<TGenerics> {\n // Compose in the generic options to the user options\n const resolvedOptions: TableOptions<TGenerics> = {\n ...table.options,\n state: {}, // Dummy state\n onStateChange: () => {}, // noop\n render,\n ...options,\n }\n\n // Create a new table instance and store it in state\n const [instanceRef] = React.useState(() => ({\n current: createTableInstance<TGenerics>(resolvedOptions),\n }))\n\n // By default, manage table state here using the instance's initial state\n const [state, setState] = React.useState(\n () => instanceRef.current.initialState\n )\n\n // Compose the default state above with any user state. This will allow the user\n // to only control a subset of the state if desired.\n instanceRef.current.setOptions(prev => ({\n ...prev,\n ...options,\n state: {\n ...state,\n ...options.state,\n },\n // Similarly, we'll maintain both our internal state and any user-provided\n // state.\n onStateChange: updater => {\n setState(updater)\n options.onStateChange?.(updater)\n },\n }))\n\n return instanceRef.current\n}\n"],"names":["render","Comp","props","isReactComponent","React","component","isClassComponent","isExoticComponent","proto","Object","getPrototypeOf","prototype","$$typeof","includes","description","createTable","createTableFactory","useTableInstance","table","options","resolvedOptions","state","onStateChange","instanceRef","useState","current","createTableInstance","setState","initialState","setOptions","prev","updater"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BA;AAEO,MAAMA,MAAc,GAAG,CAACC,IAAD,EAAOC,KAAP,KAC5B,CAACD,IAAD,GAAQ,IAAR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,WAAD,CAAA,GAAgBnB,gBAAK,CAACoB,QAAN,CAAe,OAAO;AAC1CC,IAAAA,OAAO,EAAEC,yBAAmB,CAAYN,eAAZ,CAAA;AADc,GAAP,CAAf,CAAtB,CAX0B;;AAgB1B,EAAA,MAAM,CAACC,KAAD,EAAQM,QAAR,CAAA,GAAoBvB,gBAAK,CAACoB,QAAN,CACxB,MAAMD,WAAW,CAACE,OAAZ,CAAoBG,YADF,CAA1B,CAhB0B;AAqB1B;;AACAL,EAAAA,WAAW,CAACE,OAAZ,CAAoBI,UAApB,CAA+BC,IAAI,KAAK,EACtC,GAAGA,IADmC;AAEtC,IAAA,GAAGX,OAFmC;AAGtCE,IAAAA,KAAK,EAAE,EACL,GAAGA,KADE;AAEL,MAAA,GAAGF,OAAO,CAACE,KAAAA;AAFN,KAH+B;AAOtC;AACA;AACAC,IAAAA,aAAa,EAAES,OAAO,IAAI;AACxBJ,MAAAA,QAAQ,CAACI,OAAD,CAAR,CAAA;AACAZ,MAAAA,OAAO,CAACG,aAAR,IAAA,IAAA,GAAA,KAAA,CAAA,GAAAH,OAAO,CAACG,aAAR,CAAwBS,OAAxB,CAAA,CAAA;AACD,KAAA;AAZqC,GAAL,CAAnC,CAAA,CAAA;AAeA,EAAOR,OAAAA,WAAW,CAACE,OAAnB,CAAA;AACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -300,7 +300,7 @@ const Rows = {
|
|
|
300
300
|
const column = instance.getColumn(columnId);
|
|
301
301
|
|
|
302
302
|
if (!column.accessorFn) {
|
|
303
|
-
|
|
303
|
+
return undefined;
|
|
304
304
|
}
|
|
305
305
|
|
|
306
306
|
row.valuesCache[columnId] = column.accessorFn(row.original, rowIndex);
|
|
@@ -1097,7 +1097,8 @@ const Filters = {
|
|
|
1097
1097
|
},
|
|
1098
1098
|
createRow: (row, instance) => {
|
|
1099
1099
|
return {
|
|
1100
|
-
|
|
1100
|
+
columnFilters: {},
|
|
1101
|
+
columnFiltersMeta: {},
|
|
1101
1102
|
subRowsByFacetId: {}
|
|
1102
1103
|
};
|
|
1103
1104
|
},
|
|
@@ -2339,7 +2340,7 @@ const Sorting = {
|
|
|
2339
2340
|
createColumn: (column, instance) => {
|
|
2340
2341
|
return {
|
|
2341
2342
|
getAutoSortingFn: () => {
|
|
2342
|
-
const firstRows = instance.getFilteredRowModel().flatRows.slice(
|
|
2343
|
+
const firstRows = instance.getFilteredRowModel().flatRows.slice(10);
|
|
2343
2344
|
let isString = false;
|
|
2344
2345
|
|
|
2345
2346
|
for (const row of firstRows) {
|
|
@@ -3187,6 +3188,7 @@ function createTable(_, __, options) {
|
|
|
3187
3188
|
setRowType: () => table,
|
|
3188
3189
|
setTableMetaType: () => table,
|
|
3189
3190
|
setColumnMetaType: () => table,
|
|
3191
|
+
setFilterMetaType: () => table,
|
|
3190
3192
|
setOptions: newOptions => createTable(_, __, { ...options,
|
|
3191
3193
|
...newOptions
|
|
3192
3194
|
}),
|
|
@@ -3314,7 +3316,7 @@ function filterRowModelFromLeafs(rowsToFilter, filterRow, instance) {
|
|
|
3314
3316
|
|
|
3315
3317
|
if ((_row$subRows = row.subRows) != null && _row$subRows.length) {
|
|
3316
3318
|
newRow = instance.createRow(row.id, row.original, row.index, row.depth);
|
|
3317
|
-
newRow.
|
|
3319
|
+
newRow.columnFilters = row.columnFilters;
|
|
3318
3320
|
newRow.subRows = recurseFilterRows(row.subRows, depth + 1);
|
|
3319
3321
|
|
|
3320
3322
|
if (!newRow.subRows.length) {
|
|
@@ -3387,6 +3389,11 @@ function filterRowModelFromRoot(rowsToFilter, filterRow, instance) {
|
|
|
3387
3389
|
function getFilteredRowModel() {
|
|
3388
3390
|
return instance => memo(() => [instance.getPreFilteredRowModel(), instance.getState().columnFilters, instance.getState().globalFilter], (rowModel, columnFilters, globalFilter) => {
|
|
3389
3391
|
if (!rowModel.rows.length || !(columnFilters != null && columnFilters.length) && !globalFilter) {
|
|
3392
|
+
for (let i = 0; i < rowModel.flatRows.length; i++) {
|
|
3393
|
+
rowModel.flatRows[i].columnFilters = {};
|
|
3394
|
+
rowModel.flatRows[i].columnFiltersMeta = {};
|
|
3395
|
+
}
|
|
3396
|
+
|
|
3390
3397
|
return rowModel;
|
|
3391
3398
|
}
|
|
3392
3399
|
|
|
@@ -3441,28 +3448,34 @@ function getFilteredRowModel() {
|
|
|
3441
3448
|
|
|
3442
3449
|
for (let j = 0; j < rowModel.flatRows.length; j++) {
|
|
3443
3450
|
const row = rowModel.flatRows[j];
|
|
3444
|
-
row.
|
|
3451
|
+
row.columnFilters = {};
|
|
3445
3452
|
|
|
3446
3453
|
if (resolvedColumnFilters.length) {
|
|
3447
3454
|
for (let i = 0; i < resolvedColumnFilters.length; i++) {
|
|
3448
|
-
currentColumnFilter = resolvedColumnFilters[i];
|
|
3455
|
+
currentColumnFilter = resolvedColumnFilters[i];
|
|
3456
|
+
const id = currentColumnFilter.id; // Tag the row with the column filter state
|
|
3449
3457
|
|
|
3450
|
-
row.
|
|
3458
|
+
row.columnFilters[id] = currentColumnFilter.filterFn(row, id, currentColumnFilter.resolvedValue, filterMeta => {
|
|
3459
|
+
row.columnFiltersMeta[id] = filterMeta;
|
|
3460
|
+
});
|
|
3451
3461
|
}
|
|
3452
3462
|
}
|
|
3453
3463
|
|
|
3454
3464
|
if (resolvedGlobalFilters.length) {
|
|
3455
3465
|
for (let i = 0; i < resolvedGlobalFilters.length; i++) {
|
|
3456
|
-
currentGlobalFilter = resolvedGlobalFilters[i];
|
|
3466
|
+
currentGlobalFilter = resolvedGlobalFilters[i];
|
|
3467
|
+
const id = currentGlobalFilter.id; // Tag the row with the first truthy global filter state
|
|
3457
3468
|
|
|
3458
|
-
if (currentGlobalFilter.filterFn(row,
|
|
3459
|
-
row.
|
|
3469
|
+
if (currentGlobalFilter.filterFn(row, id, currentGlobalFilter.resolvedValue, filterMeta => {
|
|
3470
|
+
row.columnFiltersMeta[id] = filterMeta;
|
|
3471
|
+
})) {
|
|
3472
|
+
row.columnFilters.__global__ = true;
|
|
3460
3473
|
break;
|
|
3461
3474
|
}
|
|
3462
3475
|
}
|
|
3463
3476
|
|
|
3464
|
-
if (row.
|
|
3465
|
-
row.
|
|
3477
|
+
if (row.columnFilters.__global__ !== true) {
|
|
3478
|
+
row.columnFilters.__global__ = false;
|
|
3466
3479
|
}
|
|
3467
3480
|
}
|
|
3468
3481
|
}
|
|
@@ -3470,7 +3483,7 @@ function getFilteredRowModel() {
|
|
|
3470
3483
|
const filterRowsImpl = row => {
|
|
3471
3484
|
// Horizontally filter rows through each column
|
|
3472
3485
|
for (let i = 0; i < filterableIds.length; i++) {
|
|
3473
|
-
if (row.
|
|
3486
|
+
if (row.columnFilters[filterableIds[i]] === false) {
|
|
3474
3487
|
return false;
|
|
3475
3488
|
}
|
|
3476
3489
|
}
|
|
@@ -3504,7 +3517,7 @@ function getFacetedRowModel() {
|
|
|
3504
3517
|
const filterRowsImpl = row => {
|
|
3505
3518
|
// Horizontally filter rows through each column
|
|
3506
3519
|
for (let i = 0; i < filterableIds.length; i++) {
|
|
3507
|
-
if (row.
|
|
3520
|
+
if (row.columnFilters[filterableIds[i]] === false) {
|
|
3508
3521
|
return false;
|
|
3509
3522
|
}
|
|
3510
3523
|
}
|
|
@@ -3923,11 +3936,13 @@ exports.Pinning = Pinning;
|
|
|
3923
3936
|
exports.RowSelection = RowSelection;
|
|
3924
3937
|
exports.Sorting = Sorting;
|
|
3925
3938
|
exports.Visibility = Visibility;
|
|
3939
|
+
exports.aggregationFns = aggregationFns;
|
|
3926
3940
|
exports.buildHeaderGroups = buildHeaderGroups;
|
|
3927
3941
|
exports.createTableFactory = createTableFactory;
|
|
3928
3942
|
exports.createTableInstance = createTableInstance;
|
|
3929
3943
|
exports.defaultColumnSizing = defaultColumnSizing;
|
|
3930
3944
|
exports.expandRows = expandRows;
|
|
3945
|
+
exports.filterFns = filterFns;
|
|
3931
3946
|
exports.flattenBy = flattenBy;
|
|
3932
3947
|
exports.functionalUpdate = functionalUpdate;
|
|
3933
3948
|
exports.getCoreRowModel = getCoreRowModel;
|
|
@@ -3942,10 +3957,13 @@ exports.getSortedRowModel = getSortedRowModel;
|
|
|
3942
3957
|
exports.isFunction = isFunction;
|
|
3943
3958
|
exports.isRowSelected = isRowSelected;
|
|
3944
3959
|
exports.makeStateUpdater = makeStateUpdater;
|
|
3960
|
+
exports.mean = mean;
|
|
3945
3961
|
exports.memo = memo;
|
|
3946
3962
|
exports.noop = noop;
|
|
3947
3963
|
exports.orderColumns = orderColumns;
|
|
3948
3964
|
exports.passiveEventSupported = passiveEventSupported;
|
|
3965
|
+
exports.reSplitAlphaNumeric = reSplitAlphaNumeric;
|
|
3949
3966
|
exports.selectRowsFn = selectRowsFn;
|
|
3950
3967
|
exports.shouldAutoRemoveFilter = shouldAutoRemoveFilter;
|
|
3968
|
+
exports.sortingFns = sortingFns;
|
|
3951
3969
|
//# sourceMappingURL=index.js.map
|