freemium-ui 1.0.136 → 1.0.137
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/lib/index.cjs.js +9 -2
- package/lib/index.esm.js +9 -2
- package/package.json +1 -1
package/lib/index.cjs.js
CHANGED
|
@@ -18203,7 +18203,6 @@ const Table = (props) => {
|
|
|
18203
18203
|
columns,
|
|
18204
18204
|
data,
|
|
18205
18205
|
initialState,
|
|
18206
|
-
state,
|
|
18207
18206
|
}, reactTable.useRowSelect, reactTable.useColumnOrder, (hooks) => {
|
|
18208
18207
|
hooks.visibleColumns.push((c) => showSelections
|
|
18209
18208
|
? [
|
|
@@ -18231,8 +18230,16 @@ const Table = (props) => {
|
|
|
18231
18230
|
]
|
|
18232
18231
|
: [...c]);
|
|
18233
18232
|
});
|
|
18234
|
-
const { getTableProps, getTableBodyProps, headerGroups, rows, state: { selectedRowIds }, prepareRow, getToggleAllRowsSelectedProps, } = tableInstance;
|
|
18233
|
+
const { getTableProps, getTableBodyProps, headerGroups, rows, state: { selectedRowIds }, prepareRow, setColumnOrder, getToggleAllRowsSelectedProps, } = tableInstance;
|
|
18234
|
+
React__default.useEffect(() => {
|
|
18235
|
+
console.log('useEffect');
|
|
18236
|
+
}, []);
|
|
18237
|
+
reactTable.useMountedLayoutEffect(() => {
|
|
18238
|
+
console.log('initialState?.columnOrder', initialState?.columnOrder);
|
|
18239
|
+
setColumnOrder(initialState?.columnOrder);
|
|
18240
|
+
}, [initialState?.columnOrder]);
|
|
18235
18241
|
reactTable.useMountedLayoutEffect(() => {
|
|
18242
|
+
console.log('selectedRowIds', selectedRowIds);
|
|
18236
18243
|
onRowSelect && onRowSelect(selectedRowIds);
|
|
18237
18244
|
}, [onRowSelect, selectedRowIds]);
|
|
18238
18245
|
return (React__default.createElement(TableContainer, { className: "fui-table" },
|
package/lib/index.esm.js
CHANGED
|
@@ -18194,7 +18194,6 @@ const Table = (props) => {
|
|
|
18194
18194
|
columns,
|
|
18195
18195
|
data,
|
|
18196
18196
|
initialState,
|
|
18197
|
-
state,
|
|
18198
18197
|
}, useRowSelect, useColumnOrder, (hooks) => {
|
|
18199
18198
|
hooks.visibleColumns.push((c) => showSelections
|
|
18200
18199
|
? [
|
|
@@ -18222,8 +18221,16 @@ const Table = (props) => {
|
|
|
18222
18221
|
]
|
|
18223
18222
|
: [...c]);
|
|
18224
18223
|
});
|
|
18225
|
-
const { getTableProps, getTableBodyProps, headerGroups, rows, state: { selectedRowIds }, prepareRow, getToggleAllRowsSelectedProps, } = tableInstance;
|
|
18224
|
+
const { getTableProps, getTableBodyProps, headerGroups, rows, state: { selectedRowIds }, prepareRow, setColumnOrder, getToggleAllRowsSelectedProps, } = tableInstance;
|
|
18225
|
+
React__default.useEffect(() => {
|
|
18226
|
+
console.log('useEffect');
|
|
18227
|
+
}, []);
|
|
18228
|
+
useMountedLayoutEffect(() => {
|
|
18229
|
+
console.log('initialState?.columnOrder', initialState?.columnOrder);
|
|
18230
|
+
setColumnOrder(initialState?.columnOrder);
|
|
18231
|
+
}, [initialState?.columnOrder]);
|
|
18226
18232
|
useMountedLayoutEffect(() => {
|
|
18233
|
+
console.log('selectedRowIds', selectedRowIds);
|
|
18227
18234
|
onRowSelect && onRowSelect(selectedRowIds);
|
|
18228
18235
|
}, [onRowSelect, selectedRowIds]);
|
|
18229
18236
|
return (React__default.createElement(TableContainer, { className: "fui-table" },
|