(
props: {
readonly queries: any;
readonly queriesId?: Id;
readonly queryId: Id;
} & StoreProp,
)
| 884 | }; |
| 885 | |
| 886 | const QueryView = ( |
| 887 | props: { |
| 888 | readonly queries: any; |
| 889 | readonly queriesId?: Id; |
| 890 | readonly queryId: Id; |
| 891 | } & StoreProp, |
| 892 | ) => { |
| 893 | const uniqueId = getUniqueId('q', props.queriesId, props.queryId); |
| 894 | const sort = useCell(STATE_TABLE, uniqueId, SORT_CELL, props.s); |
| 895 | const sortProps = createMemo( |
| 896 | () => jsonParse((sort() as string) ?? '[]') as [Id, boolean, number], |
| 897 | ); |
| 898 | const handleChange = useSetCellCallback( |
| 899 | STATE_TABLE, |
| 900 | uniqueId, |
| 901 | SORT_CELL, |
| 902 | jsonStringWithMap, |
| 903 | props.s, |
| 904 | ); |
| 905 | return ( |
| 906 | <Details uniqueId={uniqueId} title={'Query: ' + props.queryId} s={props.s}> |
| 907 | <ResultSortedTableInHtmlTable |
| 908 | queryId={props.queryId} |
| 909 | queries={props.queries} |
| 910 | cellId={sortProps()[0]} |
| 911 | descending={sortProps()[1]} |
| 912 | offset={sortProps()[2]} |
| 913 | limit={10} |
| 914 | paginator={true} |
| 915 | sortOnClick={true} |
| 916 | onChange={handleChange} |
| 917 | /> |
| 918 | </Details> |
| 919 | ); |
| 920 | }; |
| 921 | |
| 922 | const QueriesView = (props: {readonly queriesId?: Id} & StoreProp) => { |
| 923 | const queries = useQueries(props.queriesId); |
nothing calls this directly
no test coverage detected
searching dependent graphs…