@tanstack/react-table 0.0.1-alpha.9 → 8.0.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/_virtual/_rollupPluginBabelHelpers.js +112 -0
- package/build/cjs/_virtual/_rollupPluginBabelHelpers.js.map +1 -0
- package/build/cjs/aggregationTypes.js +130 -0
- package/build/cjs/aggregationTypes.js.map +1 -0
- package/build/cjs/core.js +552 -0
- package/build/cjs/core.js.map +1 -0
- package/build/cjs/createTable.js +108 -0
- package/build/cjs/createTable.js.map +1 -0
- package/build/cjs/features/ColumnSizing.js +317 -0
- package/build/cjs/features/ColumnSizing.js.map +1 -0
- package/build/cjs/features/Expanding.js +255 -0
- package/build/cjs/features/Expanding.js.map +1 -0
- package/build/cjs/features/Filters.js +445 -0
- package/build/cjs/features/Filters.js.map +1 -0
- package/build/cjs/features/Grouping.js +249 -0
- package/build/cjs/features/Grouping.js.map +1 -0
- package/build/cjs/features/Headers.js +549 -0
- package/build/cjs/features/Headers.js.map +1 -0
- package/build/cjs/features/Ordering.js +86 -0
- package/build/cjs/features/Ordering.js.map +1 -0
- package/build/cjs/features/Pagination.js +194 -0
- package/build/cjs/features/Pagination.js.map +1 -0
- package/build/cjs/features/Pinning.js +149 -0
- package/build/cjs/features/Pinning.js.map +1 -0
- package/build/cjs/features/RowSelection.js +541 -0
- package/build/cjs/features/RowSelection.js.map +1 -0
- package/build/cjs/features/Sorting.js +327 -0
- package/build/cjs/features/Sorting.js.map +1 -0
- package/build/cjs/features/Visibility.js +166 -0
- package/build/cjs/features/Visibility.js.map +1 -0
- package/build/cjs/filterTypes.js +172 -0
- package/build/cjs/filterTypes.js.map +1 -0
- package/build/cjs/index.js +30 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/sortTypes.js +122 -0
- package/build/cjs/sortTypes.js.map +1 -0
- package/build/cjs/utils/columnFilterRowsFn.js +131 -0
- package/build/cjs/utils/columnFilterRowsFn.js.map +1 -0
- package/build/cjs/utils/expandRowsFn.js +38 -0
- package/build/cjs/utils/expandRowsFn.js.map +1 -0
- package/build/cjs/utils/globalFilterRowsFn.js +101 -0
- package/build/cjs/utils/globalFilterRowsFn.js.map +1 -0
- package/build/cjs/utils/groupRowsFn.js +155 -0
- package/build/cjs/utils/groupRowsFn.js.map +1 -0
- package/build/cjs/utils/sortRowsFn.js +94 -0
- package/build/cjs/utils/sortRowsFn.js.map +1 -0
- package/build/cjs/utils.js +146 -0
- package/build/cjs/utils.js.map +1 -0
- package/build/esm/index.js +4747 -0
- package/build/esm/index.js.map +1 -0
- package/build/stats-html.html +2689 -0
- package/build/stats-react.json +817 -0
- package/build/types/aggregationTypes.d.ts +22 -0
- package/build/types/core.d.ts +111 -0
- package/build/types/createTable.d.ts +53 -0
- package/build/types/features/ColumnSizing.d.ts +67 -0
- package/build/types/features/Expanding.d.ts +53 -0
- package/build/types/features/Filters.d.ts +98 -0
- package/build/types/features/Grouping.d.ts +82 -0
- package/build/types/features/Headers.d.ts +41 -0
- package/build/types/features/Ordering.d.ts +19 -0
- package/build/types/features/Pagination.d.ts +43 -0
- package/build/types/features/Pinning.d.ts +39 -0
- package/build/types/features/RowSelection.d.ts +66 -0
- package/build/types/features/Sorting.d.ts +78 -0
- package/build/types/features/Visibility.d.ts +47 -0
- package/build/types/filterTypes.d.ts +50 -0
- package/build/types/index.d.ts +7 -0
- package/build/types/sortTypes.d.ts +18 -0
- package/build/types/types.d.ts +127 -0
- package/build/types/utils/columnFilterRowsFn.d.ts +2 -0
- package/build/types/utils/expandRowsFn.d.ts +2 -0
- package/build/types/utils/globalFilterRowsFn.d.ts +2 -0
- package/build/types/utils/groupRowsFn.d.ts +2 -0
- package/build/types/utils/paginateRowsFn.d.ts +2 -0
- package/build/types/utils/sortRowsFn.d.ts +2 -0
- package/build/types/utils.d.ts +28 -0
- package/{dist/react-table.development.js → build/umd/index.development.js} +1617 -249
- package/build/umd/index.development.js.map +1 -0
- package/build/umd/index.production.js +12 -0
- package/build/umd/index.production.js.map +1 -0
- package/package.json +9 -94
- package/src/core.tsx +252 -264
- package/src/createTable.tsx +69 -9
- package/src/features/ColumnSizing.ts +453 -0
- package/src/features/Expanding.ts +27 -11
- package/src/features/Filters.ts +75 -20
- package/src/features/Grouping.ts +27 -12
- package/src/features/Headers.ts +55 -50
- package/src/features/Ordering.ts +2 -3
- package/src/features/Pagination.ts +314 -0
- package/src/features/Pinning.ts +3 -16
- package/src/features/RowSelection.ts +831 -0
- package/src/features/Sorting.ts +82 -22
- package/src/features/Visibility.ts +2 -4
- package/src/sortTypes.ts +1 -1
- package/src/types.ts +55 -9
- package/src/utils/columnFilterRowsFn.ts +5 -12
- package/src/utils/expandRowsFn.ts +2 -5
- package/src/utils/globalFilterRowsFn.ts +3 -10
- package/src/utils/groupRowsFn.ts +3 -5
- package/src/utils/paginateRowsFn.ts +34 -0
- package/src/utils/sortRowsFn.ts +5 -5
- package/src/utils.tsx +20 -6
- package/dist/react-table.development.js.map +0 -1
- package/dist/react-table.production.min.js +0 -2
- package/dist/react-table.production.min.js.map +0 -1
- package/lib/index.js +0 -65
- package/src/features/notest/useAbsoluteLayout.test.js +0 -152
- package/src/features/notest/useBlockLayout.test.js +0 -158
- package/src/features/notest/useColumnOrder.test.js +0 -186
- package/src/features/notest/useExpanded.test.js +0 -125
- package/src/features/notest/useFilters.test.js +0 -393
- package/src/features/notest/useFiltersAndRowSelect.test.js +0 -256
- package/src/features/notest/useFlexLayout.test.js +0 -152
- package/src/features/notest/useGroupBy.test.js +0 -259
- package/src/features/notest/usePagination.test.js +0 -231
- package/src/features/notest/useResizeColumns.test.js +0 -229
- package/src/features/notest/useRowSelect.test.js +0 -250
- package/src/features/notest/useRowState.test.js +0 -178
- package/src/features/tests/Visibility.test.tsx +0 -225
- package/src/features/tests/__snapshots__/Visibility.test.tsx.snap +0 -390
- package/src/features/tests/withSorting.notest.tsx +0 -341
- package/src/features/withColumnResizing.ts +0 -281
- package/src/features/withPagination.ts +0 -208
- package/src/features/withRowSelection.ts +0 -467
- package/src/test-utils/makeTestData.ts +0 -41
- package/src/tests/__snapshots__/core.test.tsx.snap +0 -148
- package/src/tests/core.test.tsx +0 -241
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/react-table",
|
|
3
|
-
"
|
|
3
|
+
"author": "Tanner Linsley",
|
|
4
|
+
"version": "8.0.0-alpha.3",
|
|
4
5
|
"description": "Hooks for building lightweight, fast and extendable datagrids for React",
|
|
5
6
|
"license": "MIT",
|
|
6
|
-
"homepage": "https://github.com/
|
|
7
|
+
"homepage": "https://github.com/tanstack/react-table#readme",
|
|
7
8
|
"repository": {
|
|
8
9
|
"type": "git",
|
|
9
|
-
"url": "git+https://github.com/
|
|
10
|
+
"url": "git+https://github.com/tanstack/react-table.git"
|
|
10
11
|
},
|
|
11
12
|
"publishConfig": {
|
|
12
13
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -21,105 +22,19 @@
|
|
|
21
22
|
"type": "github",
|
|
22
23
|
"url": "https://github.com/sponsors/tannerlinsley"
|
|
23
24
|
},
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"test": "(is-ci && yarn test:ci) || yarn test:dev",
|
|
29
|
-
"test:dev": "jest --watch",
|
|
30
|
-
"test:ci": "jest",
|
|
31
|
-
"test:coverage": "yarn test:ci; open coverage/lcov-report/index.html",
|
|
32
|
-
"build": "yarn format && yarn build:commonjs && yarn build:es && yarn build:umd && yarn build:types",
|
|
33
|
-
"build:commonjs": "rimraf ./lib && cross-env BABEL_ENV=commonjs babel --extensions .ts,.tsx --ignore ./src/**/tests/**/* ./src --out-dir lib",
|
|
34
|
-
"build:es": "rimraf ./es && babel --extensions .ts,.tsx --ignore ./src/**/tests/**/* ./src --out-dir es",
|
|
35
|
-
"build:umd": "rimraf ./dist && cross-env NODE_ENV=production rollup -c && rollup-plugin-visualizer stats-react.json",
|
|
36
|
-
"build:types": "rimraf ./types && tsc --project ./tsconfig.types.json && replace 'import type' 'import' ./types -r --silent && replace 'export type' 'export' ./types -r --silent",
|
|
37
|
-
"watch": "yarn watch:commonjs & yarn watch:es & yarn watch:umd & yarn watch:types",
|
|
38
|
-
"watch:commonjs": "rimraf ./lib && cross-env BABEL_ENV=commonjs babel --watch --extensions .ts,.tsx --ignore ./src/**/tests/**/* ./src --out-dir lib",
|
|
39
|
-
"watch:es": "rimraf ./es && babel --watch --extensions .ts,.tsx --ignore ./src/**/tests/**/* ./src --out-dir es",
|
|
40
|
-
"watch:umd": "rimraf ./dist && cross-env NODE_ENV=production rollup -w -c && rollup-plugin-visualizer stats-react.json",
|
|
41
|
-
"watch:types": "rimraf ./types && tsc --watch --project ./tsconfig.types.json && replace 'import type' 'import' ./types -r --silent && replace 'export type' 'export' ./types -r --silent",
|
|
42
|
-
"now-build": "yarn && cd www && yarn && yarn build",
|
|
43
|
-
"prettier": "prettier \"{.,src,src/**,example/src,example/src/**}/*.{md,js,jsx,ts,tsx,json}\"",
|
|
44
|
-
"start": "yarn watch",
|
|
45
|
-
"format": "yarn prettier --write",
|
|
46
|
-
"stats": "open ./stats.html",
|
|
47
|
-
"doctoc": "doctoc README.md"
|
|
48
|
-
},
|
|
25
|
+
"module": "build/esm/index.js",
|
|
26
|
+
"main": "build/cjs/index.js",
|
|
27
|
+
"browser": "build/umd/index.production.min.js",
|
|
28
|
+
"types": "build/types/index.d.ts",
|
|
49
29
|
"engines": {
|
|
50
30
|
"node": ">=12"
|
|
51
31
|
},
|
|
52
|
-
"release": {
|
|
53
|
-
"branches": [
|
|
54
|
-
"master",
|
|
55
|
-
{
|
|
56
|
-
"name": "beta",
|
|
57
|
-
"prerelease": true
|
|
58
|
-
}
|
|
59
|
-
]
|
|
60
|
-
},
|
|
61
32
|
"files": [
|
|
62
|
-
"
|
|
33
|
+
"build",
|
|
63
34
|
"src"
|
|
64
35
|
],
|
|
65
|
-
"browserslist": [
|
|
66
|
-
"last 2 versions",
|
|
67
|
-
"> 0.2%"
|
|
68
|
-
],
|
|
69
36
|
"peerDependencies": {
|
|
70
37
|
"react": ">=16",
|
|
71
38
|
"react-dom": ">=16"
|
|
72
|
-
},
|
|
73
|
-
"dependencies": {
|
|
74
|
-
"ts-toolbelt": "^9.6.0"
|
|
75
|
-
},
|
|
76
|
-
"devDependencies": {
|
|
77
|
-
"@babel/cli": "^7.15.7",
|
|
78
|
-
"@babel/core": "^7.15.8",
|
|
79
|
-
"@babel/plugin-transform-runtime": "^7.15.8",
|
|
80
|
-
"@babel/preset-env": "^7.15.8",
|
|
81
|
-
"@babel/preset-react": "^7.14.5",
|
|
82
|
-
"@babel/preset-typescript": "^7.15.0",
|
|
83
|
-
"@rollup/plugin-replace": "^3.0.0",
|
|
84
|
-
"@testing-library/jest-dom": "^5.14.1",
|
|
85
|
-
"@testing-library/react": "^12.1.2",
|
|
86
|
-
"@testing-library/react-hooks": "^7.0.2",
|
|
87
|
-
"@types/react": "^17.0.27",
|
|
88
|
-
"@types/react-dom": "^17.0.9",
|
|
89
|
-
"@types/semver": "^7.3.9",
|
|
90
|
-
"babel-plugin-const-enum": "^1.1.0",
|
|
91
|
-
"babel-plugin-dev-expression": "^0.2.2",
|
|
92
|
-
"babel-plugin-transform-async-to-promises": "^0.8.15",
|
|
93
|
-
"conventional-changelog-angular": "^5.0.13",
|
|
94
|
-
"cross-env": "^7.0.3",
|
|
95
|
-
"current-git-branch": "^1.1.0",
|
|
96
|
-
"doctoc": "^2.1.0",
|
|
97
|
-
"fast-async": "^6.3.8",
|
|
98
|
-
"git-log-parser": "^1.2.0",
|
|
99
|
-
"is-ci": "^3.0.0",
|
|
100
|
-
"jest": "^27.4.5",
|
|
101
|
-
"jsonfile": "^6.1.0",
|
|
102
|
-
"lerna": "^4.0.0",
|
|
103
|
-
"prettier": "^2.4.1",
|
|
104
|
-
"prompt-confirm": "^2.0.4",
|
|
105
|
-
"react": "^17.0.2",
|
|
106
|
-
"react-dom": "^17.0.2",
|
|
107
|
-
"react-test-renderer": "^17.0.2",
|
|
108
|
-
"replace": "^1.2.1",
|
|
109
|
-
"rimraf": "^3.0.2",
|
|
110
|
-
"rollup": "^2.16.1",
|
|
111
|
-
"rollup-plugin-babel": "^4.4.0",
|
|
112
|
-
"rollup-plugin-commonjs": "^10.1.0",
|
|
113
|
-
"rollup-plugin-jscc": "^1.0.0",
|
|
114
|
-
"rollup-plugin-node-resolve": "^5.2.0",
|
|
115
|
-
"rollup-plugin-peer-deps-external": "^2.2.2",
|
|
116
|
-
"rollup-plugin-prettier": "^2.1.0",
|
|
117
|
-
"rollup-plugin-size": "^0.2.2",
|
|
118
|
-
"rollup-plugin-terser": "^7.0.2",
|
|
119
|
-
"rollup-plugin-visualizer": "^5.5.2",
|
|
120
|
-
"stream-to-array": "^2.3.0",
|
|
121
|
-
"ts-node": "^10.3.0",
|
|
122
|
-
"tslib": "^2.3.1",
|
|
123
|
-
"typescript": "^4.4.3"
|
|
124
39
|
}
|
|
125
40
|
}
|