@gen3/frontend 0.11.14 → 0.11.17
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/dist/cjs/index.js +18 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/dts/components/Protected/ProtectedContent.d.ts.map +1 -1
- package/dist/dts/components/Protected/ProtectedContent.js +11 -3
- package/dist/dts/components/Protected/ProtectedContent.js.map +1 -1
- package/dist/dts/components/Providers/Gen3Provider.d.ts +6 -6
- package/dist/dts/features/Analysis/AnalysisCardCompact.stories.d.ts +14 -14
- package/dist/dts/features/DataLibrary/tables/SelectedItemsTable.d.ts.map +1 -1
- package/dist/dts/features/DataLibrary/tables/SelectedItemsTable.js +4 -2
- package/dist/dts/features/DataLibrary/tables/SelectedItemsTable.js.map +1 -1
- package/dist/esm/index.js +18 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +6 -6
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
package/dist/cjs/index.js
CHANGED
|
@@ -5634,8 +5634,19 @@ const ProtectedContent = ({ children, referer })=>{
|
|
|
5634
5634
|
onUnauthenticated();
|
|
5635
5635
|
}, 2000);
|
|
5636
5636
|
};
|
|
5637
|
+
const [stableStatus, setStableStatus] = React.useState();
|
|
5637
5638
|
const { status, pending } = useSession(true, delayRedirect);
|
|
5638
|
-
|
|
5639
|
+
React.useEffect(()=>{
|
|
5640
|
+
if (!pending && stableStatus !== status) {
|
|
5641
|
+
// only update stableStatus if session is not pending
|
|
5642
|
+
// this prevents flickering of the status
|
|
5643
|
+
setStableStatus(status);
|
|
5644
|
+
}
|
|
5645
|
+
}, [
|
|
5646
|
+
status,
|
|
5647
|
+
pending
|
|
5648
|
+
]);
|
|
5649
|
+
if (stableStatus !== 'issued') {
|
|
5639
5650
|
// not logged in
|
|
5640
5651
|
if (pending) return /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
5641
5652
|
className: "flex justify-center w-full mt-10",
|
|
@@ -23642,15 +23653,16 @@ const SelectedItemsTable = ({ validatedItems, rowSelection, setRowSelection, siz
|
|
|
23642
23653
|
const table = mantineReactTable.useMantineReactTable({
|
|
23643
23654
|
columns,
|
|
23644
23655
|
data: tableRows.rows,
|
|
23645
|
-
enableColumnResizing: false,
|
|
23646
23656
|
icons: TableIcons,
|
|
23647
23657
|
enableTopToolbar: false,
|
|
23648
23658
|
enableRowSelection: true,
|
|
23649
23659
|
enableBottomToolbar: tableRows.rows.length > 10,
|
|
23650
23660
|
enablePagination: tableRows.rows.length > 10,
|
|
23651
23661
|
enableRowActions: false,
|
|
23652
|
-
|
|
23662
|
+
enableColumnResizing: true,
|
|
23663
|
+
enableGrouping: true,
|
|
23653
23664
|
enableStickyHeader: true,
|
|
23665
|
+
enableStickyFooter: true,
|
|
23654
23666
|
enableHiding: true,
|
|
23655
23667
|
onRowSelectionChange: handleRowSelectionChange,
|
|
23656
23668
|
state: {
|
|
@@ -23658,6 +23670,9 @@ const SelectedItemsTable = ({ validatedItems, rowSelection, setRowSelection, siz
|
|
|
23658
23670
|
},
|
|
23659
23671
|
initialState: {
|
|
23660
23672
|
density: 'xs',
|
|
23673
|
+
grouping: [
|
|
23674
|
+
'datasetId'
|
|
23675
|
+
],
|
|
23661
23676
|
columnPinning: {
|
|
23662
23677
|
left: [
|
|
23663
23678
|
'mrt-row-select',
|