@tanstack/react-table 8.5.30 → 8.7.0

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.
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ export * from '@tanstack/table-core';
3
+ import { TableOptions, RowData } from '@tanstack/table-core';
4
+ export type Renderable<TProps> = React.ReactNode | React.ComponentType<TProps>;
5
+ export declare function flexRender<TProps extends object>(Comp: Renderable<TProps>, props: TProps): React.ReactNode | JSX.Element;
6
+ export declare function useReactTable<TData extends RowData>(options: TableOptions<TData>): import("@tanstack/table-core").Table<TData>;
@@ -0,0 +1,71 @@
1
+ /**
2
+ * react-table
3
+ *
4
+ * Copyright (c) TanStack
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE.md file in the root directory of this source tree.
8
+ *
9
+ * @license MIT
10
+ */
11
+ import * as React from 'react';
12
+ import { createTable } from '@tanstack/table-core';
13
+ export * from '@tanstack/table-core';
14
+
15
+ //
16
+
17
+ function flexRender(Comp, props) {
18
+ return !Comp ? null : isReactComponent(Comp) ? /*#__PURE__*/React.createElement(Comp, props) : Comp;
19
+ }
20
+ function isReactComponent(component) {
21
+ return isClassComponent(component) || typeof component === 'function' || isExoticComponent(component);
22
+ }
23
+ function isClassComponent(component) {
24
+ return typeof component === 'function' && (() => {
25
+ const proto = Object.getPrototypeOf(component);
26
+ return proto.prototype && proto.prototype.isReactComponent;
27
+ })();
28
+ }
29
+ function isExoticComponent(component) {
30
+ return typeof component === 'object' && typeof component.$$typeof === 'symbol' && ['react.memo', 'react.forward_ref'].includes(component.$$typeof.description);
31
+ }
32
+ function useReactTable(options) {
33
+ // Compose in the generic options to the user options
34
+ const resolvedOptions = {
35
+ state: {},
36
+ // Dummy state
37
+ onStateChange: () => {},
38
+ // noop
39
+ renderFallbackValue: null,
40
+ ...options
41
+ };
42
+
43
+ // Create a new table and store it in state
44
+ const [tableRef] = React.useState(() => ({
45
+ current: createTable(resolvedOptions)
46
+ }));
47
+
48
+ // By default, manage table state here using the table's initial state
49
+ const [state, setState] = React.useState(() => tableRef.current.initialState);
50
+
51
+ // Compose the default state above with any user state. This will allow the user
52
+ // to only control a subset of the state if desired.
53
+ tableRef.current.setOptions(prev => ({
54
+ ...prev,
55
+ ...options,
56
+ state: {
57
+ ...state,
58
+ ...options.state
59
+ },
60
+ // Similarly, we'll maintain both our internal state and any user-provided
61
+ // state.
62
+ onStateChange: updater => {
63
+ setState(updater);
64
+ options.onStateChange == null ? void 0 : options.onStateChange(updater);
65
+ }
66
+ }));
67
+ return tableRef.current;
68
+ }
69
+
70
+ export { flexRender, useReactTable };
71
+ //# sourceMappingURL=index.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm.js","sources":["../../src/index.tsx"],"sourcesContent":["import * as React from 'react'\nexport * from '@tanstack/table-core'\n\nimport {\n TableOptions,\n TableOptionsResolved,\n RowData,\n createTable,\n} from '@tanstack/table-core'\n\nexport type Renderable<TProps> = React.ReactNode | React.ComponentType<TProps>\n\n//\n\nexport function flexRender<TProps extends object>(\n Comp: Renderable<TProps>,\n props: TProps\n): React.ReactNode | JSX.Element {\n return !Comp ? null : isReactComponent<TProps>(Comp) ? (\n <Comp {...props} />\n ) : (\n Comp\n )\n}\n\nfunction isReactComponent<TProps>(\n component: unknown\n): component is React.ComponentType<TProps> {\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 function useReactTable<TData extends RowData>(\n options: TableOptions<TData>\n) {\n // Compose in the generic options to the user options\n const resolvedOptions: TableOptionsResolved<TData> = {\n state: {}, // Dummy state\n onStateChange: () => {}, // noop\n renderFallbackValue: null,\n ...options,\n }\n\n // Create a new table and store it in state\n const [tableRef] = React.useState(() => ({\n current: createTable<TData>(resolvedOptions),\n }))\n\n // By default, manage table state here using the table's initial state\n const [state, setState] = React.useState(() => tableRef.current.initialState)\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 tableRef.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 tableRef.current\n}\n"],"names":["flexRender","Comp","props","isReactComponent","component","isClassComponent","isExoticComponent","proto","Object","getPrototypeOf","prototype","$$typeof","includes","description","useReactTable","options","resolvedOptions","state","onStateChange","renderFallbackValue","tableRef","React","useState","current","createTable","setState","initialState","setOptions","prev","updater"],"mappings":";;;;;;;;;;;;;;AAYA;;AAEO,SAASA,UAAU,CACxBC,IAAwB,EACxBC,KAAa,EACkB;AAC/B,EAAA,OAAO,CAACD,IAAI,GAAG,IAAI,GAAGE,gBAAgB,CAASF,IAAI,CAAC,gBAClD,oBAAC,IAAI,EAAKC,KAAK,CAAI,GAEnBD,IACD,CAAA;AACH,CAAA;AAEA,SAASE,gBAAgB,CACvBC,SAAkB,EACwB;AAC1C,EAAA,OACEC,gBAAgB,CAACD,SAAS,CAAC,IAC3B,OAAOA,SAAS,KAAK,UAAU,IAC/BE,iBAAiB,CAACF,SAAS,CAAC,CAAA;AAEhC,CAAA;AAEA,SAASC,gBAAgB,CAACD,SAAc,EAAE;AACxC,EAAA,OACE,OAAOA,SAAS,KAAK,UAAU,IAC/B,CAAC,MAAM;AACL,IAAA,MAAMG,KAAK,GAAGC,MAAM,CAACC,cAAc,CAACL,SAAS,CAAC,CAAA;IAC9C,OAAOG,KAAK,CAACG,SAAS,IAAIH,KAAK,CAACG,SAAS,CAACP,gBAAgB,CAAA;AAC5D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AAOT,QAAQ,CAACG,OAAO,CAAA;AACzB;;;;"}
@@ -13,7 +13,7 @@
13
13
  Object.defineProperty(exports, '__esModule', { value: true });
14
14
 
15
15
  var React = require('react');
16
- var index = require('../../table-core/build/esm/index.js');
16
+ var tableCore = require('@tanstack/table-core');
17
17
 
18
18
  function _interopNamespace(e) {
19
19
  if (e && e.__esModule) return e;
@@ -65,7 +65,7 @@ function useReactTable(options) {
65
65
 
66
66
  // Create a new table and store it in state
67
67
  const [tableRef] = React__namespace.useState(() => ({
68
- current: index.createTable(resolvedOptions)
68
+ current: tableCore.createTable(resolvedOptions)
69
69
  }));
70
70
 
71
71
  // By default, manage table state here using the table's initial state
@@ -90,50 +90,12 @@ function useReactTable(options) {
90
90
  return tableRef.current;
91
91
  }
92
92
 
93
- exports.ColumnSizing = index.ColumnSizing;
94
- exports.Expanding = index.Expanding;
95
- exports.Filters = index.Filters;
96
- exports.Grouping = index.Grouping;
97
- exports.Headers = index.Headers;
98
- exports.Ordering = index.Ordering;
99
- exports.Pagination = index.Pagination;
100
- exports.Pinning = index.Pinning;
101
- exports.RowSelection = index.RowSelection;
102
- exports.Sorting = index.Sorting;
103
- exports.Visibility = index.Visibility;
104
- exports.aggregationFns = index.aggregationFns;
105
- exports.buildHeaderGroups = index.buildHeaderGroups;
106
- exports.createCell = index.createCell;
107
- exports.createColumn = index.createColumn;
108
- exports.createColumnHelper = index.createColumnHelper;
109
- exports.createRow = index.createRow;
110
- exports.createTable = index.createTable;
111
- exports.defaultColumnSizing = index.defaultColumnSizing;
112
- exports.expandRows = index.expandRows;
113
- exports.filterFns = index.filterFns;
114
- exports.flattenBy = index.flattenBy;
115
- exports.functionalUpdate = index.functionalUpdate;
116
- exports.getCoreRowModel = index.getCoreRowModel;
117
- exports.getExpandedRowModel = index.getExpandedRowModel;
118
- exports.getFacetedMinMaxValues = index.getFacetedMinMaxValues;
119
- exports.getFacetedRowModel = index.getFacetedRowModel;
120
- exports.getFacetedUniqueValues = index.getFacetedUniqueValues;
121
- exports.getFilteredRowModel = index.getFilteredRowModel;
122
- exports.getGroupedRowModel = index.getGroupedRowModel;
123
- exports.getPaginationRowModel = index.getPaginationRowModel;
124
- exports.getSortedRowModel = index.getSortedRowModel;
125
- exports.isFunction = index.isFunction;
126
- exports.isRowSelected = index.isRowSelected;
127
- exports.isSubRowSelected = index.isSubRowSelected;
128
- exports.makeStateUpdater = index.makeStateUpdater;
129
- exports.memo = index.memo;
130
- exports.noop = index.noop;
131
- exports.orderColumns = index.orderColumns;
132
- exports.passiveEventSupported = index.passiveEventSupported;
133
- exports.reSplitAlphaNumeric = index.reSplitAlphaNumeric;
134
- exports.selectRowsFn = index.selectRowsFn;
135
- exports.shouldAutoRemoveFilter = index.shouldAutoRemoveFilter;
136
- exports.sortingFns = index.sortingFns;
137
93
  exports.flexRender = flexRender;
138
94
  exports.useReactTable = useReactTable;
95
+ Object.keys(tableCore).forEach(function (k) {
96
+ if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
97
+ enumerable: true,
98
+ get: function () { return tableCore[k]; }
99
+ });
100
+ });
139
101
  //# sourceMappingURL=index.js.map
@@ -0,0 +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 TableOptions,\n TableOptionsResolved,\n RowData,\n createTable,\n} from '@tanstack/table-core'\n\nexport type Renderable<TProps> = React.ReactNode | React.ComponentType<TProps>\n\n//\n\nexport function flexRender<TProps extends object>(\n Comp: Renderable<TProps>,\n props: TProps\n): React.ReactNode | JSX.Element {\n return !Comp ? null : isReactComponent<TProps>(Comp) ? (\n <Comp {...props} />\n ) : (\n Comp\n )\n}\n\nfunction isReactComponent<TProps>(\n component: unknown\n): component is React.ComponentType<TProps> {\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 function useReactTable<TData extends RowData>(\n options: TableOptions<TData>\n) {\n // Compose in the generic options to the user options\n const resolvedOptions: TableOptionsResolved<TData> = {\n state: {}, // Dummy state\n onStateChange: () => {}, // noop\n renderFallbackValue: null,\n ...options,\n }\n\n // Create a new table and store it in state\n const [tableRef] = React.useState(() => ({\n current: createTable<TData>(resolvedOptions),\n }))\n\n // By default, manage table state here using the table's initial state\n const [state, setState] = React.useState(() => tableRef.current.initialState)\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 tableRef.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 tableRef.current\n}\n"],"names":["flexRender","Comp","props","isReactComponent","React","component","isClassComponent","isExoticComponent","proto","Object","getPrototypeOf","prototype","$$typeof","includes","description","useReactTable","options","resolvedOptions","state","onStateChange","renderFallbackValue","tableRef","useState","current","createTable","setState","initialState","setOptions","prev","updater"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAYA;;AAEO,SAASA,UAAU,CACxBC,IAAwB,EACxBC,KAAa,EACkB;AAC/B,EAAA,OAAO,CAACD,IAAI,GAAG,IAAI,GAAGE,gBAAgB,CAASF,IAAI,CAAC,gBAClDG,+BAAC,IAAI,EAAKF,KAAK,CAAI,GAEnBD,IACD,CAAA;AACH,CAAA;AAEA,SAASE,gBAAgB,CACvBE,SAAkB,EACwB;AAC1C,EAAA,OACEC,gBAAgB,CAACD,SAAS,CAAC,IAC3B,OAAOA,SAAS,KAAK,UAAU,IAC/BE,iB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AACL,MAAA,GAAGA,KAAK;AACR,MAAA,GAAGF,OAAO,CAACE,KAAAA;KACZ;AACD;AACA;IACAC,aAAa,EAAEU,OAAO,IAAI;MACxBJ,QAAQ,CAACI,OAAO,CAAC,CAAA;MACjBb,OAAO,CAACG,aAAa,IAArBH,IAAAA,GAAAA,KAAAA,CAAAA,GAAAA,OAAO,CAACG,aAAa,CAAGU,OAAO,CAAC,CAAA;AAClC,KAAA;AACF,GAAC,CAAC,CAAC,CAAA;EAEH,OAAOR,QAAQ,CAACE,OAAO,CAAA;AACzB;;;;;;;;;;;"}
@@ -0,0 +1,71 @@
1
+ /**
2
+ * react-table
3
+ *
4
+ * Copyright (c) TanStack
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE.md file in the root directory of this source tree.
8
+ *
9
+ * @license MIT
10
+ */
11
+ import * as React from 'react';
12
+ import { createTable } from '@tanstack/table-core';
13
+ export * from '@tanstack/table-core';
14
+
15
+ //
16
+
17
+ function flexRender(Comp, props) {
18
+ return !Comp ? null : isReactComponent(Comp) ? /*#__PURE__*/React.createElement(Comp, props) : Comp;
19
+ }
20
+ function isReactComponent(component) {
21
+ return isClassComponent(component) || typeof component === 'function' || isExoticComponent(component);
22
+ }
23
+ function isClassComponent(component) {
24
+ return typeof component === 'function' && (() => {
25
+ const proto = Object.getPrototypeOf(component);
26
+ return proto.prototype && proto.prototype.isReactComponent;
27
+ })();
28
+ }
29
+ function isExoticComponent(component) {
30
+ return typeof component === 'object' && typeof component.$$typeof === 'symbol' && ['react.memo', 'react.forward_ref'].includes(component.$$typeof.description);
31
+ }
32
+ function useReactTable(options) {
33
+ // Compose in the generic options to the user options
34
+ const resolvedOptions = {
35
+ state: {},
36
+ // Dummy state
37
+ onStateChange: () => {},
38
+ // noop
39
+ renderFallbackValue: null,
40
+ ...options
41
+ };
42
+
43
+ // Create a new table and store it in state
44
+ const [tableRef] = React.useState(() => ({
45
+ current: createTable(resolvedOptions)
46
+ }));
47
+
48
+ // By default, manage table state here using the table's initial state
49
+ const [state, setState] = React.useState(() => tableRef.current.initialState);
50
+
51
+ // Compose the default state above with any user state. This will allow the user
52
+ // to only control a subset of the state if desired.
53
+ tableRef.current.setOptions(prev => ({
54
+ ...prev,
55
+ ...options,
56
+ state: {
57
+ ...state,
58
+ ...options.state
59
+ },
60
+ // Similarly, we'll maintain both our internal state and any user-provided
61
+ // state.
62
+ onStateChange: updater => {
63
+ setState(updater);
64
+ options.onStateChange == null ? void 0 : options.onStateChange(updater);
65
+ }
66
+ }));
67
+ return tableRef.current;
68
+ }
69
+
70
+ export { flexRender, useReactTable };
71
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../src/index.tsx"],"sourcesContent":["import * as React from 'react'\nexport * from '@tanstack/table-core'\n\nimport {\n TableOptions,\n TableOptionsResolved,\n RowData,\n createTable,\n} from '@tanstack/table-core'\n\nexport type Renderable<TProps> = React.ReactNode | React.ComponentType<TProps>\n\n//\n\nexport function flexRender<TProps extends object>(\n Comp: Renderable<TProps>,\n props: TProps\n): React.ReactNode | JSX.Element {\n return !Comp ? null : isReactComponent<TProps>(Comp) ? (\n <Comp {...props} />\n ) : (\n Comp\n )\n}\n\nfunction isReactComponent<TProps>(\n component: unknown\n): component is React.ComponentType<TProps> {\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 function useReactTable<TData extends RowData>(\n options: TableOptions<TData>\n) {\n // Compose in the generic options to the user options\n const resolvedOptions: TableOptionsResolved<TData> = {\n state: {}, // Dummy state\n onStateChange: () => {}, // noop\n renderFallbackValue: null,\n ...options,\n }\n\n // Create a new table and store it in state\n const [tableRef] = React.useState(() => ({\n current: createTable<TData>(resolvedOptions),\n }))\n\n // By default, manage table state here using the table's initial state\n const [state, setState] = React.useState(() => tableRef.current.initialState)\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 tableRef.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 tableRef.current\n}\n"],"names":["flexRender","Comp","props","isReactComponent","component","isClassComponent","isExoticComponent","proto","Object","getPrototypeOf","prototype","$$typeof","includes","description","useReactTable","options","resolvedOptions","state","onStateChange","renderFallbackValue","tableRef","React","useState","current","createTable","setState","initialState","setOptions","prev","updater"],"mappings":";;;;;;;;;;;;;;AAYA;;AAEO,SAASA,UAAU,CACxBC,IAAwB,EACxBC,KAAa,EACkB;AAC/B,EAAA,OAAO,CAACD,IAAI,GAAG,IAAI,GAAGE,gBAAgB,CAASF,IAAI,CAAC,gBAClD,oBAAC,IAAI,EAAKC,KAAK,CAAI,GAEnBD,IACD,CAAA;AACH,CAAA;AAEA,SAASE,gBAAgB,CACvBC,SAAkB,EACwB;AAC1C,EAAA,OACEC,gBAAgB,CAACD,SAAS,CAAC,IAC3B,OAAOA,SAAS,KAAK,UAAU,IAC/BE,iBAAiB,CAACF,SAAS,CAAC,CAAA;AAEhC,CAAA;AAEA,SAASC,gBAAgB,CAACD,SAAc,EAAE;AACxC,EAAA,OACE,OAAOA,SAAS,KAAK,UAAU,IAC/B,CAAC,MAAM;AACL,IAAA,MAAMG,KAAK,GAAGC,MAAM,CAACC,cAAc,CAACL,SAAS,CAAC,CAAA;IAC9C,OAAOG,KAAK,CAACG,SAAS,IAAIH,KAAK,CAACG,SAAS,CAACP,gBAAgB,CAAA;AAC5D,GAAC,GAAG,CAAA;AAER,CAA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