@metacell/geppetto-meta-ui
Version:
React components from geppetto-meta to create neuroscience applications and visualize data.
123 lines (122 loc) • 4.99 kB
TypeScript
export function GroupComponent(conf: any): ({ value }: {
value: any;
}) => any;
export function IconComponent({ icon, action, color, tooltip }: any): ({ value, }: {
value: any;
}) => import("react/jsx-runtime").JSX.Element;
export function MultiStatusComponent(availableStatuses: any): {
new (props: any): {
state: {
statusIdx: number;
};
value: any;
render(): import("react/jsx-runtime").JSX.Element;
context: unknown;
setState<K extends string | number | symbol>(state: any, callback?: () => void): void;
forceUpdate(callback?: () => void): void;
readonly props: Readonly<any>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>): any;
componentDidUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
};
contextType?: React.Context<any>;
};
export function WrapperComponent(action: any, customComponent: any): ({ value }: {
value: any;
}) => import("react/jsx-runtime").JSX.Element;
export function ImageComponent({ title, alt, defaultImg, action }: any): ({ value, }: {
value: any;
}) => import("react/jsx-runtime").JSX.Element;
export function ParameterInputComponent({ placeholder, onBlur, onKeyPress, readOnly, classString, unit, defaultValue, }: any): ({ value }: {
value: any;
}) => import("react/jsx-runtime").JSX.Element;
export function ColorComponent({ action, defaultColor, icon }: {
action: any;
defaultColor: any;
icon: any;
}): ({ value, }: {
value: any;
}) => import("react/jsx-runtime").JSX.Element;
export function LinkComponent({ text }: {
text: any;
}): ({ value }: {
value: any;
}) => import("react/jsx-runtime").JSX.Element;
export const defaultColumnConfiguration: {
id: string;
title: string;
source: string;
}[];
declare class ListViewer extends React.Component<any, any, any> {
constructor(props: any, context: any);
builtInComponents: {
GroupComponent: (conf: any) => ({ value }: {
value: any;
}) => any;
IconComponent: ({ icon, action, color, tooltip }: any) => ({ value, }: {
value: any;
}) => import("react/jsx-runtime").JSX.Element;
WrapperComponent: (action: any, customComponent: any) => ({ value }: {
value: any;
}) => import("react/jsx-runtime").JSX.Element;
LinkComponent: ({ text }: {
text: any;
}) => ({ value }: {
value: any;
}) => import("react/jsx-runtime").JSX.Element;
ImageComponent: ({ title, alt, defaultImg, action }: any) => ({ value, }: {
value: any;
}) => import("react/jsx-runtime").JSX.Element;
};
/**
* Parses the configuration for further processing, inserting defaults and adjusting types
* @param {id, action, customComponent, configuration} colConf
*/
preprocessColumnConfiguration(conf: any): any;
handlerObject: any;
getColumnConfiguration(): any;
getData(): any;
incrementalId: number;
preprocessAction(action: any): any;
preprocessComponent(customComponent: any): any;
getFilterFn(): any;
/**
* <ColumnDefinition key="path" id="path" customComponent={CustomColumn} />,
* <ColumnDefinition key="controls" id="actions" customHeadingComponent={CustomHeading} customComponent={CustomActions(buttonsConf)} />
* @param {*} param0
*/
getColumnDefinition(conf: any): React.CElement<any, React.Component<any, any, any>>;
getColumnDefinitions(): any;
getLayout(): any;
getPlugins(): any[];
render(): import("react/jsx-runtime").JSX.Element;
}
declare namespace ListViewer {
namespace defaultProps {
const handler: {};
}
namespace propTypes {
export const instances: any;
const handler_1: any;
export { handler_1 as handler };
export const infiniteScroll: any;
export const columnConfiguration: any;
export const filter: any;
export const customComponents: any;
export const showPagination: any;
}
}
export default ListViewer;
import React from "react";