UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

23 lines 2.11 kB
import { QueryOrDeprecatedSearchParams } from '@/components/CardContainerLogic/CardContainerLogic'; import { Query, QueryBundleRequest } from '@sage-bionetworks/synapse-types'; import { QueryVisualizationWrapperProps } from '../QueryVisualizationWrapper'; import { QueryWrapperProps } from '../QueryWrapper/QueryWrapper'; import { QueryWrapperPlotNavProps } from '../QueryWrapperPlotNav/QueryWrapperPlotNav'; import { SearchV2Props } from '../SynapseTable/SearchV2'; import { SynapseTableConfiguration } from '../SynapseTable/SynapseTable'; import { TopLevelControlsProps, CustomControl } from '../SynapseTable/TopLevelControls/TopLevelControls'; type StandaloneQueryWrapperOwnProps = { showTopLevelControls?: boolean; searchConfiguration?: Omit<SearchV2Props, 'queryContext' | 'queryVisualizationContext'>; customControls?: CustomControl[]; } & Omit<TopLevelControlsProps, 'customControls'> & Pick<QueryVisualizationWrapperProps, 'rgbIndex' | 'unitDescription' | 'columnAliases' | 'noContentPlaceholderType' | 'showLastUpdatedOn' | 'visibleColumnCount' | 'additionalFiltersSessionStorageKey'> & Pick<QueryWrapperProps, 'fileIdColumnName' | 'fileNameColumnName' | 'fileVersionColumnName' | 'onQueryResultBundleChange' | 'shouldDeepLink'> & Pick<QueryWrapperPlotNavProps, 'cardConfiguration' | 'tableConfiguration'>; export type StandaloneQueryWrapperProps = QueryOrDeprecatedSearchParams & SynapseTableConfiguration & StandaloneQueryWrapperOwnProps; export declare const generateInitQueryRequest: (query: Query) => QueryBundleRequest; export declare function getQueryFromProps(props: StandaloneQueryWrapperProps): Query; /** * This component was initially implemented on the portal side. It 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 function StandaloneQueryWrapper(props: StandaloneQueryWrapperProps): import("react/jsx-runtime").JSX.Element; export default StandaloneQueryWrapper; //# sourceMappingURL=StandaloneQueryWrapper.d.ts.map