climb-onyx-gui 0.14.4 → 0.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,6 +4,9 @@ interface SidebarButtonProps extends ButtonProps {
4
4
  sidebarCollapsed: boolean;
5
5
  setSidebarCollapsed: (sideBarCollapsed: boolean) => void;
6
6
  }
7
+ interface CopyToClipboardButtonProps extends ButtonProps {
8
+ showTitle?: boolean;
9
+ }
7
10
  declare function SidebarButton(props: SidebarButtonProps): import("react/jsx-runtime").JSX.Element;
8
- declare function CopyToClipboardButton(props: ButtonProps): import("react/jsx-runtime").JSX.Element;
11
+ declare function CopyToClipboardButton(props: CopyToClipboardButtonProps): import("react/jsx-runtime").JSX.Element;
9
12
  export { CopyToClipboardButton, SidebarButton };
@@ -0,0 +1,12 @@
1
+ import { DataProps } from '../interfaces';
2
+ import { Field } from '../types';
3
+
4
+ interface ColumnsModalProps extends DataProps {
5
+ show: boolean;
6
+ onHide: () => void;
7
+ columns: Field[];
8
+ activeColumns: Field[];
9
+ setActiveColumns: (value: Field[]) => void;
10
+ }
11
+ declare function ColumnsModal(props: ColumnsModalProps): import("react/jsx-runtime").JSX.Element;
12
+ export default ColumnsModal;
@@ -1,9 +1,11 @@
1
1
  import { UseQueryResult } from '@tanstack/react-query';
2
2
  import { IDProps } from '../interfaces';
3
- import { DetailResponse, ErrorResponse } from '../types';
3
+ import { DetailResponse, ErrorResponse, RecordType } from '../types';
4
4
 
5
5
  interface DataPanelProps extends IDProps {
6
- queryHook: (props: IDProps) => UseQueryResult<DetailResponse | ErrorResponse, Error>;
6
+ dataPanelTabKey: string;
7
+ setDataPanelTabKey: (key: string) => void;
8
+ queryHook: (props: IDProps) => UseQueryResult<DetailResponse<RecordType> | ErrorResponse, Error>;
7
9
  setUnpublished: () => void;
8
10
  dataFields: Map<string, string>;
9
11
  }
@@ -1,9 +1,14 @@
1
1
  import { DataProps } from '../interfaces';
2
- import { DetailResponse, ErrorResponse } from '../types';
2
+ import { RecordType, DetailResponse, ErrorResponse } from '../types';
3
3
 
4
4
  interface DetailsProps extends DataProps {
5
- data: DetailResponse | ErrorResponse | undefined;
5
+ data: DetailResponse<RecordType> | ErrorResponse | undefined;
6
6
  handleErrorModalShow: (error: Error) => void;
7
7
  }
8
+ interface FieldProps extends DataProps {
9
+ field: string;
10
+ }
11
+ declare function Field(props: FieldProps): import("react/jsx-runtime").JSX.Element;
8
12
  declare function Details(props: DetailsProps): import("react/jsx-runtime").JSX.Element;
9
13
  export default Details;
14
+ export { Field };
@@ -1,4 +1,4 @@
1
- import { PageProps } from '../interfaces';
1
+ import { ProjectProps } from '../interfaces';
2
2
 
3
3
  interface GenericDropdownProps {
4
4
  options: string[];
@@ -14,7 +14,7 @@ interface DropdownProps extends GenericDropdownProps {
14
14
  interface MultiDropdownProps extends GenericDropdownProps {
15
15
  value: string[];
16
16
  }
17
- interface GenericChoiceProps extends PageProps {
17
+ interface GenericChoiceProps extends ProjectProps {
18
18
  field: string;
19
19
  }
20
20
  interface ChoiceProps extends DropdownProps, GenericChoiceProps {
@@ -2,9 +2,10 @@ import { DataProps } from '../interfaces';
2
2
  import { FilterConfig } from '../types';
3
3
 
4
4
  interface FilterProps extends DataProps {
5
+ filter: FilterConfig;
5
6
  index: number;
6
7
  filterList: FilterConfig[];
7
- setFilterList: (value: FilterConfig[]) => void;
8
+ setFilterList: (filters: FilterConfig[]) => void;
8
9
  fieldList: string[];
9
10
  setEditMode: (value: boolean) => void;
10
11
  disableLookups?: boolean;
@@ -3,7 +3,7 @@ import { FilterConfig } from '../types';
3
3
 
4
4
  interface FilterPanelProps extends DataProps {
5
5
  filterList: FilterConfig[];
6
- setFilterList: (value: FilterConfig[]) => void;
6
+ setFilterList: (filters: FilterConfig[]) => void;
7
7
  filterFieldOptions: string[];
8
8
  disableLookups?: boolean;
9
9
  }
@@ -1,15 +1,16 @@
1
- import { default as Plotly } from 'plotly.js-basic-dist';
1
+ import { default as Plotly, Layout } from 'plotly.js-basic-dist';
2
2
  import { DataProps } from '../interfaces';
3
- import { GraphConfig } from '../types';
3
+ import { GraphConfig, Field } from '../types';
4
4
 
5
5
  interface BasePlotProps {
6
+ fields: Map<string, Field>;
6
7
  plotData: Plotly.Data[];
7
8
  title?: string;
8
9
  xTitle?: string;
9
10
  yTitle?: string;
10
11
  yAxisType?: string;
11
12
  legendTitle?: string;
12
- layout?: Record<string, unknown>;
13
+ layout?: Partial<Layout>;
13
14
  darkMode: boolean;
14
15
  uirevision: string;
15
16
  }
@@ -1,14 +1,17 @@
1
1
  import { PageProps } from '../interfaces';
2
+ import { Project, RecentlyViewed } from '../types';
2
3
 
3
4
  interface HeaderProps extends PageProps {
4
- projectName: string;
5
- projectList: string[];
6
- handleProjectChange: (p: string) => void;
7
- tabKey: string;
8
- setTabKey: (k: string) => void;
5
+ project?: Project;
6
+ projects: Project[];
7
+ recentlyViewed: RecentlyViewed[];
9
8
  handleThemeChange: () => void;
9
+ handleProjectChange: (p: Project) => void;
10
+ handleProjectRecordShow: (recordID: string) => void;
11
+ handleAnalysisShow: (analysisID: string) => void;
10
12
  handleProjectRecordHide: () => void;
11
13
  handleAnalysisHide: () => void;
14
+ handleRecentlyViewed: (ID: string, handleShowID: (ID: string) => void) => void;
12
15
  }
13
16
  declare function Header(props: HeaderProps): import("react/jsx-runtime").JSX.Element;
14
17
  export default Header;
@@ -0,0 +1,9 @@
1
+ import { ProjectProps } from '../interfaces';
2
+
3
+ interface HistoryPanelProps extends ProjectProps {
4
+ name?: string;
5
+ searchPath: string;
6
+ ID: string;
7
+ }
8
+ declare function HistoryPanel(props: HistoryPanelProps): import("react/jsx-runtime").JSX.Element;
9
+ export default HistoryPanel;
@@ -1,7 +1,7 @@
1
1
  import { JsonData } from 'json-edit-react';
2
- import { PageProps } from '../interfaces';
2
+ import { ProjectProps } from '../interfaces';
3
3
 
4
- interface JsonProps extends PageProps {
4
+ interface JsonProps extends ProjectProps {
5
5
  data: JsonData;
6
6
  description: string;
7
7
  }
@@ -1,6 +1,6 @@
1
1
  interface PageTitleProps {
2
2
  title: string;
3
- projectDescription: string;
3
+ description: string;
4
4
  }
5
5
  declare function PageTitle(props: PageTitleProps): import("react/jsx-runtime").JSX.Element;
6
6
  export default PageTitle;
@@ -1,10 +1,18 @@
1
- import { default as React } from 'react';
2
1
  import { ErrorResponse, SuccessResponse } from '../types';
3
2
 
3
+ export declare function BaseSpinner({ delay, children, }: {
4
+ delay?: number;
5
+ children: React.ReactNode;
6
+ }): import("react/jsx-runtime").JSX.Element;
7
+ export declare function TextQueryHandler({ isFetching, error, children, }: {
8
+ isFetching: boolean;
9
+ error: Error | null;
10
+ children: React.ReactNode;
11
+ }): import("react/jsx-runtime").JSX.Element;
4
12
  declare function QueryHandler({ isFetching, error, data, children, }: {
5
13
  isFetching: boolean;
6
14
  error: Error | null;
7
- data: SuccessResponse | ErrorResponse;
15
+ data: SuccessResponse | ErrorResponse | undefined;
8
16
  children: React.ReactNode;
9
17
  }): import("react/jsx-runtime").JSX.Element;
10
18
  export default QueryHandler;
@@ -0,0 +1,12 @@
1
+ import { UseQueryResult } from '@tanstack/react-query';
2
+ import { IDProps } from '../interfaces';
3
+ import { ErrorResponse, RecordType, ListResponse } from '../types';
4
+
5
+ interface RelatedPanelProps extends IDProps {
6
+ queryHook: (props: IDProps) => UseQueryResult<ListResponse<RecordType> | ErrorResponse, Error>;
7
+ title: string;
8
+ description: string;
9
+ defaultFileNamePrefix: string;
10
+ }
11
+ declare function RelatedPanel(props: RelatedPanelProps): import("react/jsx-runtime").JSX.Element;
12
+ export default RelatedPanel;
@@ -0,0 +1,8 @@
1
+ interface ResizerProps {
2
+ defaultWidth: number;
3
+ minWidth: number;
4
+ maxWidth: number;
5
+ setWidth: (width: number) => void;
6
+ }
7
+ export default function Resizer(props: ResizerProps): import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -1,13 +1,15 @@
1
1
  import { ResultsProps } from '../interfaces';
2
- import { ErrorResponse, ListResponse } from '../types';
2
+ import { ErrorResponse, ListResponse, RecordType } from '../types';
3
3
 
4
4
  interface ResultsPanelProps extends ResultsProps {
5
5
  searchParameters: string;
6
+ pageSize: number;
6
7
  isFetching: boolean;
7
8
  error: Error | null;
8
- data: ListResponse | ErrorResponse;
9
+ data: ListResponse<RecordType> | ErrorResponse | undefined;
9
10
  sidebarCollapsed: boolean;
10
11
  setSidebarCollapsed: (sideBarCollapsed: boolean) => void;
12
+ setColumnsModalShow: (show: boolean) => void;
11
13
  }
12
14
  declare function ResultsPanel(props: ResultsPanelProps): import("react/jsx-runtime").JSX.Element;
13
15
  export default ResultsPanel;
@@ -0,0 +1,10 @@
1
+ import { DataProps } from '../interfaces';
2
+
3
+ interface SummariseProps extends DataProps {
4
+ summariseList: string[];
5
+ setSummariseList: (value: string[]) => void;
6
+ filterFieldOptions: string[];
7
+ setEditMode: (value: boolean) => void;
8
+ }
9
+ declare function Summarise(props: SummariseProps): import("react/jsx-runtime").JSX.Element;
10
+ export default Summarise;
@@ -0,0 +1,9 @@
1
+ import { DataProps } from '../interfaces';
2
+
3
+ interface SummarisePanelProps extends DataProps {
4
+ summariseList: string[];
5
+ setSummariseList: (value: string[]) => void;
6
+ filterFieldOptions: string[];
7
+ }
8
+ declare function SummarisePanel(props: SummarisePanelProps): import("react/jsx-runtime").JSX.Element;
9
+ export default SummarisePanel;
@@ -1,7 +1,7 @@
1
1
  import { SortDirection } from '@ag-grid-community/core';
2
2
  import { CustomCellRendererProps } from '@ag-grid-community/react';
3
- import { OnyxProps } from '../interfaces';
4
- import { ListResponse } from '../types';
3
+ import { OnyxProps, ProjectProps } from '../interfaces';
4
+ import { RecordType, ListResponse } from '../types';
5
5
 
6
6
  type InputData = Record<string, string | number | boolean | object | null>[];
7
7
  interface TableProps extends OnyxProps {
@@ -19,11 +19,11 @@ interface TableProps extends OnyxProps {
19
19
  interface ClientTableProps extends TableProps {
20
20
  data: InputData;
21
21
  }
22
- interface ServerPaginatedTableProps extends TableProps {
23
- project: string;
24
- response: ListResponse;
22
+ interface ServerPaginatedTableProps extends TableProps, ProjectProps {
23
+ response: ListResponse<RecordType>;
25
24
  searchPath: string;
26
25
  searchParameters: string;
26
+ pageSize: number;
27
27
  }
28
28
  declare function Table(props: ClientTableProps): import("react/jsx-runtime").JSX.Element;
29
29
  declare function ServerPaginatedTable(props: ServerPaginatedTableProps): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,5 @@
1
- import { ExportStatus, ProjectField } from './types';
1
+ import { Dispatch, SetStateAction } from 'react';
2
+ import { ExportStatus, Project, Field, TabState } from './types';
2
3
 
3
4
  export interface OnyxProps {
4
5
  httpPathHandler: (path: string) => Promise<Response>;
@@ -6,31 +7,30 @@ export interface OnyxProps {
6
7
  fileWriter: (path: string, content: string) => Promise<void>;
7
8
  extVersion: string;
8
9
  }
9
- export interface ProjectProps extends OnyxProps {
10
- project: string;
11
- }
12
- export interface PageProps extends ProjectProps {
10
+ export interface PageProps extends OnyxProps {
13
11
  darkMode: boolean;
12
+ tabState: TabState;
13
+ setTabState: Dispatch<SetStateAction<TabState>>;
14
+ }
15
+ export interface ProjectProps extends PageProps {
16
+ project: Project;
14
17
  }
15
- export interface DataProps extends PageProps {
16
- projectFields: Map<string, ProjectField>;
18
+ export interface DataProps extends ProjectProps {
19
+ fields: Map<string, Field>;
17
20
  projectDescription: string;
18
21
  typeLookups: Map<string, string[]>;
19
- fieldDescriptions: Map<string, string>;
20
22
  lookupDescriptions: Map<string, string>;
21
23
  handleProjectRecordShow: (recordID: string) => void;
22
24
  handleAnalysisShow: (analysisID: string) => void;
23
25
  }
24
26
  export interface IDProps extends DataProps {
25
27
  ID: string;
26
- tabKey: string;
27
- setTabKey: (key: string) => void;
28
- dataPanelTabKey: string;
29
- setDataPanelTabKey: (key: string) => void;
30
28
  onHide: () => void;
31
29
  }
32
30
  export interface ResultsProps extends DataProps {
31
+ defaultFields: string[];
33
32
  title: string;
33
+ commandBase: string;
34
34
  searchPath: string;
35
35
  }
36
36
  export interface ExportHandlerProps {
@@ -1,4 +1,4 @@
1
- import { PageProps } from '../interfaces';
1
+ import { ProjectProps } from '../interfaces';
2
2
 
3
- declare function Site(props: PageProps): import("react/jsx-runtime").JSX.Element;
3
+ declare function Site(props: ProjectProps): import("react/jsx-runtime").JSX.Element;
4
4
  export default Site;
@@ -1,4 +1,4 @@
1
- import { PageProps } from '../interfaces';
1
+ import { ProjectProps } from '../interfaces';
2
2
 
3
- declare function User(props: PageProps): import("react/jsx-runtime").JSX.Element;
3
+ declare function User(props: ProjectProps): import("react/jsx-runtime").JSX.Element;
4
4
  export default User;