diff --git a/src/component-library/Pages/RSE/PageRSEProtocols.tsx b/src/component-library/Pages/RSE/PageRSEProtocols.tsx index 3eb207649..47a49eb75 100644 --- a/src/component-library/Pages/RSE/PageRSEProtocols.tsx +++ b/src/component-library/Pages/RSE/PageRSEProtocols.tsx @@ -16,95 +16,145 @@ export const PageRSEProtocols = ( tableData: RSEProtocolViewModel } ) => { - const shortstyle = { style: "w-20" } - const shortstyleblue = { style: "w-20 bg-blue-100"} - const shortstylepink = { style: "w-20 bg-pink-100"} + const shortstyleblue = { style: "w-20 sm:w-10 bg-blue-100 dark:bg-blue-900"} + const shortstylepink = { style: "w-20 sm:w-10 bg-pink-100 dark:bg-pink-900"} const columnHelper = createColumnHelper() const tablecolumns: any[] = [ columnHelper.accessor("scheme", { id: "scheme", header: info =>

Scheme

, cell: info =>

{info.getValue()}

, - meta: { style: "w-24" } + meta: { style: "w-20" } }), columnHelper.accessor("hostname", { id: "hostname", header: info =>

Hostname

, - cell: info =>

{info.getValue()}

+ cell: info =>

{info.getValue()}

, + meta: { style: "w-26 lg:w-36" } }), columnHelper.accessor("port", { id: "port", - header: info =>

Port

, - cell: info =>

{info.getValue()}

, - meta: { style: "w-24" } + header: info =>( +
+

Port

+
+ ), + cell: info =>

{info.getValue()}

, + meta: { style: "w-20" } }), columnHelper.accessor("prefix", { id: "prefix", - header: info =>

Prefix

, + header: info => ( +
+

Prefix

+
+ ), cell: info =>

{info.getValue()}

, + meta: { style: "w-24" } }), columnHelper.accessor("priorities_lan.read", { id: "priorities_lan.read", - header: info => , - cell: info =>

{info.getValue()}

, - meta: shortstyleblue - }), + header: info => (
+

L/R

+

LAN/R

+ +
+ ), + cell: info =>

{info.getValue()}

, + meta: shortstyleblue + }), columnHelper.accessor("priorities_lan.write", { id: "priorities_lan.write", - header: info => , - cell: info =>

{info.getValue()}

, + header: info => (
+

L/W

+

LAN/W

+ +
+ ), + cell: info =>

{info.getValue()}

, meta: shortstyleblue }), columnHelper.accessor("priorities_lan.delete", { id: "priorities_lan.delete", - header: info => , - cell: info =>

{info.getValue()}

, + header: info => (
+

L/D

+

LAN/D

+ +
+ ), + cell: info =>

{info.getValue()}

, meta: shortstyleblue }), columnHelper.accessor("priorities_wan.read", { - id: "priorities_lan.read", - header: info => , - cell: info =>

{info.getValue()}

, + id: "priorities_wan.read", + header: info => (
+

W/R

+

WAN/R

+ +
+ ), + cell: info =>

{info.getValue()}

, meta: shortstylepink }), columnHelper.accessor("priorities_wan.write", { - id: "priorities_lan.write", - header: info => , - cell: info =>

{info.getValue()}

, + id: "priorities_wan.write", + header: info =>
+

W/W

+

WAN/W

+ +
+ , + cell: info =>

{info.getValue()}

, meta: shortstylepink }), columnHelper.accessor("priorities_wan.delete", { - id: "priorities_lan.delete", - header: info => , - cell: info =>

{info.getValue()}

, + id: "priorities_wan.delete", + header: info => (
+

W/D

+

WAN/D

+ +
+ ), + cell: info =>

{info.getValue()}

, meta: shortstylepink, }), - // columnHelper.accessor("priorities_wan.tpc", { - // id: "priorities_lan.tpc", - // header: info => , - // cell: info =>

{info.getValue()}

, - // meta: shortstylepink, - // }), columnHelper.accessor("priorities_wan.tpcwrite", { - id: "priorities_lan.tpcwrite", - header: info => , - cell: info =>

{info.getValue()}

, + id: "priorities_wan.tpcwrite", + header: info => (
+

T/W

+

TCP/W

+ + +
+ ), + cell: info =>

{info.getValue()}

, meta: shortstylepink, }), columnHelper.accessor("priorities_wan.tpcread", { - id: "priorities_lan.tpcread", - header: info => , - cell: info =>

{info.getValue()}

, + id: "priorities_wan.tpcread", + header: info => (
+

T/R

+

TCP/R

+ +
+ ), + cell: info =>

{info.getValue()}

, meta: shortstylepink, }), ] + return ( tabledata={props.tableData.protocols || []} tablecolumns={tablecolumns} tablestyling={{ - pageSize: 5, + pageSize: 10, } as TableStyling} + tableselecting={{ + enableRowSelection: true, + handleChange: (rows: RSEProtocol[]) => {}, + } + } /> ); }; \ No newline at end of file diff --git a/src/component-library/StreamedTables/NormalTable.tsx b/src/component-library/StreamedTables/NormalTable.tsx index bf84c74ec..9190e68f6 100644 --- a/src/component-library/StreamedTables/NormalTable.tsx +++ b/src/component-library/StreamedTables/NormalTable.tsx @@ -4,6 +4,7 @@ import { TableHeader } from "./TableHeader"; import { TableBody } from "./TableBody"; import { NormalTableProps } from "./types"; import { usePrepareTable } from "./helpers"; +import { TableBreakout } from "./TableBreakout"; export function NormalTable(props: NormalTableProps) { @@ -13,6 +14,7 @@ export function NormalTable(props: NormalTableProps) { tabledata: props.tabledata, tablecolumns: props.tablecolumns, tablestyling: props.tablestyling, + tableselecting: props.tableselecting, }) return ( @@ -35,6 +37,19 @@ export function NormalTable(props: NormalTableProps) { role="rowgroup" aria-label="NormalTable Footer" > + + + } + row={table.getSelectedRowModel().flatRows[0]} + /> + +