@tanstack/react-table 8.0.0-alpha.2 → 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/core.js +84 -51
- package/build/cjs/core.js.map +1 -1
- package/build/cjs/createTable.js +11 -6
- package/build/cjs/createTable.js.map +1 -1
- package/build/cjs/features/ColumnSizing.js +2 -16
- package/build/cjs/features/ColumnSizing.js.map +1 -1
- package/build/cjs/features/Expanding.js +23 -2
- package/build/cjs/features/Expanding.js.map +1 -1
- package/build/cjs/features/Filters.js +54 -5
- package/build/cjs/features/Filters.js.map +1 -1
- package/build/cjs/features/Grouping.js +23 -2
- package/build/cjs/features/Grouping.js.map +1 -1
- package/build/cjs/features/Headers.js +87 -24
- package/build/cjs/features/Headers.js.map +1 -1
- package/build/cjs/features/Ordering.js +4 -1
- package/build/cjs/features/Ordering.js.map +1 -1
- package/build/cjs/features/Pagination.js +194 -0
- package/build/cjs/features/Pagination.js.map +1 -0
- package/build/cjs/features/Pinning.js +0 -14
- package/build/cjs/features/Pinning.js.map +1 -1
- package/build/cjs/features/RowSelection.js +541 -0
- package/build/cjs/features/RowSelection.js.map +1 -0
- package/build/cjs/features/Sorting.js +76 -18
- package/build/cjs/features/Sorting.js.map +1 -1
- package/build/cjs/features/Visibility.js +8 -2
- package/build/cjs/features/Visibility.js.map +1 -1
- package/build/cjs/sortTypes.js +1 -0
- package/build/cjs/sortTypes.js.map +1 -1
- package/build/cjs/utils/columnFilterRowsFn.js +3 -2
- package/build/cjs/utils/columnFilterRowsFn.js.map +1 -1
- package/build/cjs/utils/expandRowsFn.js +2 -2
- package/build/cjs/utils/expandRowsFn.js.map +1 -1
- package/build/cjs/utils/globalFilterRowsFn.js +3 -2
- package/build/cjs/utils/globalFilterRowsFn.js.map +1 -1
- package/build/cjs/utils/groupRowsFn.js +4 -3
- package/build/cjs/utils/groupRowsFn.js.map +1 -1
- package/build/cjs/utils/sortRowsFn.js +3 -2
- package/build/cjs/utils/sortRowsFn.js.map +1 -1
- package/build/cjs/utils.js +6 -3
- package/build/cjs/utils.js.map +1 -1
- package/build/esm/index.js +2608 -1583
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +318 -248
- package/build/types/core.d.ts +10 -25
- package/build/types/createTable.d.ts +20 -2
- package/build/types/features/ColumnSizing.d.ts +4 -10
- package/build/types/features/Expanding.d.ts +2 -1
- package/build/types/features/Filters.d.ts +7 -2
- package/build/types/features/Grouping.d.ts +2 -2
- package/build/types/features/Ordering.d.ts +1 -1
- package/build/types/features/Pagination.d.ts +43 -0
- package/build/types/features/Pinning.d.ts +3 -3
- package/build/types/features/RowSelection.d.ts +66 -0
- package/build/types/features/Sorting.d.ts +5 -2
- package/build/types/sortTypes.d.ts +1 -0
- package/build/types/types.d.ts +9 -6
- package/build/types/utils/columnFilterRowsFn.d.ts +2 -2
- package/build/types/utils/expandRowsFn.d.ts +2 -2
- package/build/types/utils/globalFilterRowsFn.d.ts +2 -2
- package/build/types/utils/groupRowsFn.d.ts +2 -2
- package/build/types/utils/paginateRowsFn.d.ts +2 -0
- package/build/types/utils/sortRowsFn.d.ts +2 -2
- package/build/types/utils.d.ts +5 -1
- package/build/umd/index.development.js +2608 -1583
- 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/core.tsx +222 -272
- package/src/createTable.tsx +68 -8
- package/src/features/ColumnSizing.ts +8 -37
- package/src/features/Expanding.ts +27 -11
- package/src/features/Filters.ts +74 -19
- package/src/features/Grouping.ts +27 -12
- package/src/features/Headers.ts +26 -58
- 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 +25 -8
- 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 +12 -4
- package/src/features/withPagination.oldts +0 -208
- package/src/features/withRowSelection.oldts +0 -467
package/build/stats-html.html
CHANGED
|
@@ -2669,7 +2669,7 @@ var drawChart = (function (exports) {
|
|
|
2669
2669
|
</script>
|
|
2670
2670
|
<script>
|
|
2671
2671
|
/*<!--*/
|
|
2672
|
-
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.production.js","children":[{"name":"packages/react-table/src","children":[{"name":"utils","children":[{"uid":"
|
|
2672
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.production.js","children":[{"name":"packages/react-table/src","children":[{"name":"utils","children":[{"uid":"a4f8-1","name":"columnFilterRowsFn.ts"},{"uid":"a4f8-3","name":"globalFilterRowsFn.ts"},{"uid":"a4f8-5","name":"sortRowsFn.ts"},{"uid":"a4f8-11","name":"groupRowsFn.ts"},{"uid":"a4f8-13","name":"expandRowsFn.ts"}]},{"uid":"a4f8-9","name":"utils.tsx"},{"name":"features","children":[{"uid":"a4f8-15","name":"Visibility.ts"},{"uid":"a4f8-19","name":"Grouping.ts"},{"uid":"a4f8-21","name":"Ordering.ts"},{"uid":"a4f8-23","name":"Pinning.ts"},{"uid":"a4f8-25","name":"Headers.ts"},{"uid":"a4f8-29","name":"Filters.ts"},{"uid":"a4f8-33","name":"Sorting.ts"},{"uid":"a4f8-35","name":"Expanding.ts"},{"uid":"a4f8-37","name":"ColumnSizing.ts"},{"uid":"a4f8-39","name":"Pagination.ts"},{"uid":"a4f8-41","name":"RowSelection.ts"}]},{"uid":"a4f8-17","name":"aggregationTypes.ts"},{"uid":"a4f8-27","name":"filterTypes.ts"},{"uid":"a4f8-31","name":"sortTypes.ts"},{"uid":"a4f8-43","name":"core.tsx"},{"uid":"a4f8-45","name":"createTable.tsx"},{"uid":"a4f8-47","name":"index.tsx"}]},{"uid":"a4f8-7","name":"\u0000rollupPluginBabelHelpers.js"}]}],"isRoot":true},"nodeParts":{"a4f8-1":{"renderedLength":3174,"gzipLength":863,"brotliLength":0,"mainUid":"a4f8-0"},"a4f8-3":{"renderedLength":2540,"gzipLength":721,"brotliLength":0,"mainUid":"a4f8-2"},"a4f8-5":{"renderedLength":2436,"gzipLength":818,"brotliLength":0,"mainUid":"a4f8-4"},"a4f8-7":{"renderedLength":2695,"gzipLength":1065,"brotliLength":0,"mainUid":"a4f8-6"},"a4f8-9":{"renderedLength":4119,"gzipLength":1464,"brotliLength":0,"mainUid":"a4f8-8"},"a4f8-11":{"renderedLength":4814,"gzipLength":1358,"brotliLength":0,"mainUid":"a4f8-10"},"a4f8-13":{"renderedLength":595,"gzipLength":266,"brotliLength":0,"mainUid":"a4f8-12"},"a4f8-15":{"renderedLength":5635,"gzipLength":1151,"brotliLength":0,"mainUid":"a4f8-14"},"a4f8-17":{"renderedLength":2520,"gzipLength":755,"brotliLength":0,"mainUid":"a4f8-16"},"a4f8-19":{"renderedLength":7990,"gzipLength":1739,"brotliLength":0,"mainUid":"a4f8-18"},"a4f8-21":{"renderedLength":2419,"gzipLength":757,"brotliLength":0,"mainUid":"a4f8-20"},"a4f8-23":{"renderedLength":5178,"gzipLength":1014,"brotliLength":0,"mainUid":"a4f8-22"},"a4f8-25":{"renderedLength":18878,"gzipLength":2991,"brotliLength":0,"mainUid":"a4f8-24"},"a4f8-27":{"renderedLength":4437,"gzipLength":786,"brotliLength":0,"mainUid":"a4f8-26"},"a4f8-29":{"renderedLength":17178,"gzipLength":3007,"brotliLength":0,"mainUid":"a4f8-28"},"a4f8-31":{"renderedLength":2752,"gzipLength":846,"brotliLength":0,"mainUid":"a4f8-30"},"a4f8-33":{"renderedLength":11632,"gzipLength":2582,"brotliLength":0,"mainUid":"a4f8-32"},"a4f8-35":{"renderedLength":8046,"gzipLength":1752,"brotliLength":0,"mainUid":"a4f8-34"},"a4f8-37":{"renderedLength":9842,"gzipLength":2050,"brotliLength":0,"mainUid":"a4f8-36"},"a4f8-39":{"renderedLength":6238,"gzipLength":1297,"brotliLength":0,"mainUid":"a4f8-38"},"a4f8-41":{"renderedLength":17855,"gzipLength":3118,"brotliLength":0,"mainUid":"a4f8-40"},"a4f8-43":{"renderedLength":17033,"gzipLength":3478,"brotliLength":0,"mainUid":"a4f8-42"},"a4f8-45":{"renderedLength":1855,"gzipLength":503,"brotliLength":0,"mainUid":"a4f8-44"},"a4f8-47":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"a4f8-46"}},"nodeMetas":{"a4f8-0":{"id":"/packages/react-table/src/utils/columnFilterRowsFn.ts","moduleParts":{"index.production.js":"a4f8-1"},"imported":[],"importedBy":[{"uid":"a4f8-46"}]},"a4f8-2":{"id":"/packages/react-table/src/utils/globalFilterRowsFn.ts","moduleParts":{"index.production.js":"a4f8-3"},"imported":[],"importedBy":[{"uid":"a4f8-46"}]},"a4f8-4":{"id":"/packages/react-table/src/utils/sortRowsFn.ts","moduleParts":{"index.production.js":"a4f8-5"},"imported":[],"importedBy":[{"uid":"a4f8-46"}]},"a4f8-6":{"id":"\u0000rollupPluginBabelHelpers.js","moduleParts":{"index.production.js":"a4f8-7"},"imported":[],"importedBy":[{"uid":"a4f8-44"},{"uid":"a4f8-8"},{"uid":"a4f8-42"},{"uid":"a4f8-14"},{"uid":"a4f8-32"},{"uid":"a4f8-34"},{"uid":"a4f8-36"},{"uid":"a4f8-38"},{"uid":"a4f8-40"},{"uid":"a4f8-16"}]},"a4f8-8":{"id":"/packages/react-table/src/utils.tsx","moduleParts":{"index.production.js":"a4f8-9"},"imported":[{"uid":"a4f8-6"},{"uid":"a4f8-49"}],"importedBy":[{"uid":"a4f8-10"},{"uid":"a4f8-42"},{"uid":"a4f8-14"},{"uid":"a4f8-20"},{"uid":"a4f8-22"},{"uid":"a4f8-24"},{"uid":"a4f8-28"},{"uid":"a4f8-32"},{"uid":"a4f8-18"},{"uid":"a4f8-34"},{"uid":"a4f8-36"},{"uid":"a4f8-38"},{"uid":"a4f8-40"}]},"a4f8-10":{"id":"/packages/react-table/src/utils/groupRowsFn.ts","moduleParts":{"index.production.js":"a4f8-11"},"imported":[{"uid":"a4f8-8"}],"importedBy":[{"uid":"a4f8-46"}]},"a4f8-12":{"id":"/packages/react-table/src/utils/expandRowsFn.ts","moduleParts":{"index.production.js":"a4f8-13"},"imported":[],"importedBy":[{"uid":"a4f8-46"}]},"a4f8-14":{"id":"/packages/react-table/src/features/Visibility.ts","moduleParts":{"index.production.js":"a4f8-15"},"imported":[{"uid":"a4f8-6"},{"uid":"a4f8-8"}],"importedBy":[{"uid":"a4f8-42"}]},"a4f8-16":{"id":"/packages/react-table/src/aggregationTypes.ts","moduleParts":{"index.production.js":"a4f8-17"},"imported":[{"uid":"a4f8-6"}],"importedBy":[{"uid":"a4f8-18"}]},"a4f8-18":{"id":"/packages/react-table/src/features/Grouping.ts","moduleParts":{"index.production.js":"a4f8-19"},"imported":[{"uid":"a4f8-16"},{"uid":"a4f8-8"}],"importedBy":[{"uid":"a4f8-42"},{"uid":"a4f8-20"}]},"a4f8-20":{"id":"/packages/react-table/src/features/Ordering.ts","moduleParts":{"index.production.js":"a4f8-21"},"imported":[{"uid":"a4f8-8"},{"uid":"a4f8-18"}],"importedBy":[{"uid":"a4f8-42"}]},"a4f8-22":{"id":"/packages/react-table/src/features/Pinning.ts","moduleParts":{"index.production.js":"a4f8-23"},"imported":[{"uid":"a4f8-8"}],"importedBy":[{"uid":"a4f8-42"}]},"a4f8-24":{"id":"/packages/react-table/src/features/Headers.ts","moduleParts":{"index.production.js":"a4f8-25"},"imported":[{"uid":"a4f8-8"}],"importedBy":[{"uid":"a4f8-42"}]},"a4f8-26":{"id":"/packages/react-table/src/filterTypes.ts","moduleParts":{"index.production.js":"a4f8-27"},"imported":[],"importedBy":[{"uid":"a4f8-28"}]},"a4f8-28":{"id":"/packages/react-table/src/features/Filters.ts","moduleParts":{"index.production.js":"a4f8-29"},"imported":[{"uid":"a4f8-26"},{"uid":"a4f8-8"}],"importedBy":[{"uid":"a4f8-42"}]},"a4f8-30":{"id":"/packages/react-table/src/sortTypes.ts","moduleParts":{"index.production.js":"a4f8-31"},"imported":[],"importedBy":[{"uid":"a4f8-32"}]},"a4f8-32":{"id":"/packages/react-table/src/features/Sorting.ts","moduleParts":{"index.production.js":"a4f8-33"},"imported":[{"uid":"a4f8-6"},{"uid":"a4f8-30"},{"uid":"a4f8-8"}],"importedBy":[{"uid":"a4f8-42"}]},"a4f8-34":{"id":"/packages/react-table/src/features/Expanding.ts","moduleParts":{"index.production.js":"a4f8-35"},"imported":[{"uid":"a4f8-6"},{"uid":"a4f8-8"}],"importedBy":[{"uid":"a4f8-42"}]},"a4f8-36":{"id":"/packages/react-table/src/features/ColumnSizing.ts","moduleParts":{"index.production.js":"a4f8-37"},"imported":[{"uid":"a4f8-6"},{"uid":"a4f8-8"}],"importedBy":[{"uid":"a4f8-42"}]},"a4f8-38":{"id":"/packages/react-table/src/features/Pagination.ts","moduleParts":{"index.production.js":"a4f8-39"},"imported":[{"uid":"a4f8-6"},{"uid":"a4f8-8"}],"importedBy":[{"uid":"a4f8-42"}]},"a4f8-40":{"id":"/packages/react-table/src/features/RowSelection.ts","moduleParts":{"index.production.js":"a4f8-41"},"imported":[{"uid":"a4f8-6"},{"uid":"a4f8-8"}],"importedBy":[{"uid":"a4f8-42"}]},"a4f8-42":{"id":"/packages/react-table/src/core.tsx","moduleParts":{"index.production.js":"a4f8-43"},"imported":[{"uid":"a4f8-6"},{"uid":"a4f8-8"},{"uid":"a4f8-14"},{"uid":"a4f8-20"},{"uid":"a4f8-22"},{"uid":"a4f8-24"},{"uid":"a4f8-28"},{"uid":"a4f8-32"},{"uid":"a4f8-18"},{"uid":"a4f8-34"},{"uid":"a4f8-36"},{"uid":"a4f8-38"},{"uid":"a4f8-40"}],"importedBy":[{"uid":"a4f8-44"}]},"a4f8-44":{"id":"/packages/react-table/src/createTable.tsx","moduleParts":{"index.production.js":"a4f8-45"},"imported":[{"uid":"a4f8-6"},{"uid":"a4f8-49"},{"uid":"a4f8-42"}],"importedBy":[{"uid":"a4f8-46"}]},"a4f8-46":{"id":"/packages/react-table/src/index.tsx","moduleParts":{"index.production.js":"a4f8-47"},"imported":[{"uid":"a4f8-48"},{"uid":"a4f8-0"},{"uid":"a4f8-2"},{"uid":"a4f8-4"},{"uid":"a4f8-10"},{"uid":"a4f8-12"},{"uid":"a4f8-44"}],"importedBy":[],"isEntry":true},"a4f8-48":{"id":"/packages/react-table/src/types.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"a4f8-46"}]},"a4f8-49":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"a4f8-44"},{"uid":"a4f8-8"}],"isExternal":true}},"env":{"rollup":"2.66.0"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
|
|
2673
2673
|
|
|
2674
2674
|
const run = () => {
|
|
2675
2675
|
const width = window.innerWidth;
|