@tanstack/table-core 8.0.0-alpha.16 → 8.0.0-alpha.18
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/features/Filters.js +5 -6
- package/build/cjs/features/Filters.js.map +1 -1
- package/build/cjs/index.js +0 -1
- package/build/cjs/index.js.map +1 -1
- package/build/esm/index.js +6 -6
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +256 -256
- package/build/types/features/Filters.d.ts +4 -4
- package/build/umd/index.development.js +5 -6
- 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 +1 -1
- package/src/features/Filters.ts +8 -8
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/table-core",
|
|
3
3
|
"author": "Tanner Linsley",
|
|
4
|
-
"version": "8.0.0-alpha.
|
|
4
|
+
"version": "8.0.0-alpha.18",
|
|
5
5
|
"description": "Hooks for building lightweight, fast and extendable datagrids for React",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/tanstack/react-table#readme",
|
package/src/features/Filters.ts
CHANGED
|
@@ -132,15 +132,15 @@ export type FiltersInstance<TGenerics extends PartialGenerics> = {
|
|
|
132
132
|
|
|
133
133
|
//
|
|
134
134
|
|
|
135
|
-
export function getDefaultColumn<
|
|
136
|
-
TGenerics extends PartialGenerics
|
|
137
|
-
>(): FiltersColumnDef<TGenerics> {
|
|
138
|
-
return {
|
|
139
|
-
filterType: 'auto',
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
|
|
143
135
|
export const Filters = {
|
|
136
|
+
getDefaultColumn: <
|
|
137
|
+
TGenerics extends PartialGenerics
|
|
138
|
+
>(): FiltersColumnDef<TGenerics> => {
|
|
139
|
+
return {
|
|
140
|
+
filterType: 'auto',
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
|
|
144
144
|
getInitialState: (): FiltersTableState => {
|
|
145
145
|
return {
|
|
146
146
|
columnFilters: [],
|