synapse-react-client
Version:
[](https://travis-ci.com/Sage-Bionetworks/Synapse-React-Client) [](https://badge.fury.io/js/synaps
34 lines (33 loc) • 1.43 kB
TypeScript
import * as React from 'react';
import { SQLOperator } from '../../utils/functions/sqlFunctions';
import { StackedBarChartProps } from '../StackedBarChart';
import { SynapseTableProps } from './SynapseTable';
import { TopLevelControlsProps } from './TopLevelControls';
import { SearchV2Props } from '../SearchV2';
declare type SearchParams = {
searchParams?: {
facetValue: string;
};
};
export declare type Operator = {
sqlOperator?: SQLOperator;
};
export declare type QueryCount = {
showQueryCount?: boolean;
};
declare type OwnProps = {
sql: string;
rgbIndex: number;
unitDescription?: string;
facetAliases?: Record<string, string>;
facet?: string;
showTopLevelControls?: boolean;
searchConfiguration?: SearchV2Props;
} & Omit<TopLevelControlsProps, 'entityId'>;
export declare type StandaloneQueryWrapperProps = Partial<StackedBarChartProps> & Partial<SynapseTableProps> & SearchParams & Operator & OwnProps;
/**
* This component was initially implemented on the portal side. It renders a StackedBarChart if link and linkText are provided, and renders a SynapseTable if a title is provided.
* If showTopLevelControls is set to true, then the SynapseTable will also include the TopLevelControls (search, export table, column selection).
*/
declare const StandaloneQueryWrapper: React.FunctionComponent<StandaloneQueryWrapperProps>;
export default StandaloneQueryWrapper;