climb-onyx-gui 0.14.0-dev → 0.14.0-dev.3

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.
@@ -6,4 +6,4 @@ interface SidebarButtonProps extends ButtonProps {
6
6
  }
7
7
  declare function SidebarButton(props: SidebarButtonProps): import("react/jsx-runtime").JSX.Element;
8
8
  declare function CopyToClipboardButton(props: ButtonProps): import("react/jsx-runtime").JSX.Element;
9
- export { SidebarButton, CopyToClipboardButton };
9
+ export { CopyToClipboardButton, SidebarButton };
@@ -8,7 +8,6 @@ interface IDModalProps {
8
8
  handleProjectRecordShow: (recordID: string) => void;
9
9
  handleAnalysisShow: (analysisID: string) => void;
10
10
  }
11
- declare function DetailCellRendererFactory(props: ErrorModalProps): (cellRendererProps: CustomCellRendererProps) => any;
12
11
  declare function ClimbIDCellRendererFactory(props: IDModalProps): (cellRendererProps: CustomCellRendererProps) => import("react/jsx-runtime").JSX.Element;
13
12
  declare function AnalysisIDCellRendererFactory(props: IDModalProps): (cellRendererProps: CustomCellRendererProps) => import("react/jsx-runtime").JSX.Element;
14
13
  declare function S3ReportCellRendererFactory(props: ErrorModalProps): (cellRendererProps: CustomCellRendererProps) => import("react/jsx-runtime").JSX.Element;
@@ -18,4 +17,4 @@ declare function ChangeCellRenderer(props: CustomCellRendererProps): import("rea
18
17
  declare function HTTPStatusCellRenderer(props: CustomCellRendererProps): import("react/jsx-runtime").JSX.Element;
19
18
  declare function HTTPMethodCellRenderer(props: CustomCellRendererProps): import("react/jsx-runtime").JSX.Element;
20
19
  declare function JSONCellRenderer(props: CustomCellRendererProps): import("react/jsx-runtime").JSX.Element;
21
- export { DetailCellRendererFactory, ClimbIDCellRendererFactory, AnalysisIDCellRendererFactory, S3ReportCellRendererFactory, TimestampCellRenderer, ActionCellRenderer, ChangeCellRenderer, HTTPStatusCellRenderer, HTTPMethodCellRenderer, JSONCellRenderer, };
20
+ export { ActionCellRenderer, AnalysisIDCellRendererFactory, ChangeCellRenderer, ClimbIDCellRendererFactory, HTTPMethodCellRenderer, HTTPStatusCellRenderer, JSONCellRenderer, S3ReportCellRendererFactory, TimestampCellRenderer, };
@@ -1,9 +1,7 @@
1
- import { RecordType } from '../types';
2
-
1
+ /// <reference types="react" />
3
2
  interface DataFieldProps {
4
- record: RecordType;
5
- field: string;
6
3
  name: string;
4
+ value: string | JSX.Element;
7
5
  }
8
6
  declare function DataField(props: DataFieldProps): import("react/jsx-runtime").JSX.Element;
9
7
  export default DataField;
@@ -0,0 +1,11 @@
1
+ import { UseQueryResult } from '@tanstack/react-query';
2
+ import { IDProps } from '../interfaces';
3
+ import { DetailResponse, ErrorResponse } from '../types';
4
+
5
+ interface DataPanelProps extends IDProps {
6
+ queryHook: (props: IDProps) => UseQueryResult<DetailResponse | ErrorResponse, Error>;
7
+ setUnpublished: () => void;
8
+ dataFields: Map<string, string>;
9
+ }
10
+ declare function DataPanel(props: DataPanelProps): import("react/jsx-runtime").JSX.Element;
11
+ export default DataPanel;
@@ -0,0 +1,9 @@
1
+ import { DataProps } from '../interfaces';
2
+ import { DetailResponse, ErrorResponse } from '../types';
3
+
4
+ interface DetailsProps extends DataProps {
5
+ data: DetailResponse | ErrorResponse | undefined;
6
+ handleErrorModalShow: (error: Error) => void;
7
+ }
8
+ declare function Details(props: DetailsProps): import("react/jsx-runtime").JSX.Element;
9
+ export default Details;
@@ -25,4 +25,4 @@ declare function Dropdown(props: DropdownProps): import("react/jsx-runtime").JSX
25
25
  declare function MultiDropdown(props: MultiDropdownProps): import("react/jsx-runtime").JSX.Element;
26
26
  declare function Choice(props: ChoiceProps): import("react/jsx-runtime").JSX.Element;
27
27
  declare function MultiChoice(props: MultiChoiceProps): import("react/jsx-runtime").JSX.Element;
28
- export { Dropdown, MultiDropdown, Choice, MultiChoice };
28
+ export { Choice, Dropdown, MultiChoice, MultiDropdown };
@@ -1,5 +1,5 @@
1
- import { FilterConfig } from '../types';
2
1
  import { DataProps } from '../interfaces';
2
+ import { FilterConfig } from '../types';
3
3
 
4
4
  interface FilterProps extends DataProps {
5
5
  index: number;
@@ -1,5 +1,5 @@
1
- import { FilterConfig } from '../types';
2
1
  import { DataProps } from '../interfaces';
2
+ import { FilterConfig } from '../types';
3
3
 
4
4
  interface FilterPanelProps extends DataProps {
5
5
  filterList: FilterConfig[];
@@ -1,6 +1,6 @@
1
1
  import { default as Plotly } from 'plotly.js-basic-dist';
2
- import { GraphConfig } from '../types';
3
2
  import { DataProps } from '../interfaces';
3
+ import { GraphConfig } from '../types';
4
4
 
5
5
  interface BasePlotProps {
6
6
  plotData: Plotly.Data[];
@@ -24,4 +24,4 @@ declare function BarGraph(props: GraphProps): import("react/jsx-runtime").JSX.El
24
24
  declare function PieGraph(props: GraphProps): import("react/jsx-runtime").JSX.Element;
25
25
  declare function GroupedScatterGraph(props: GraphProps): import("react/jsx-runtime").JSX.Element;
26
26
  declare function GroupedBarGraph(props: GraphProps): import("react/jsx-runtime").JSX.Element;
27
- export { BasePlot, ScatterGraph, BarGraph, PieGraph, GroupedScatterGraph, GroupedBarGraph, };
27
+ export { BarGraph, BasePlot, GroupedBarGraph, GroupedScatterGraph, PieGraph, ScatterGraph, };
@@ -4,8 +4,6 @@ interface HeaderProps extends PageProps {
4
4
  projectName: string;
5
5
  projectList: string[];
6
6
  handleProjectChange: (p: string) => void;
7
- guiVersion?: string;
8
- extVersion?: string;
9
7
  tabKey: string;
10
8
  setTabKey: (k: string) => void;
11
9
  handleThemeChange: () => void;
@@ -3,6 +3,7 @@ import { PageProps } from '../interfaces';
3
3
 
4
4
  interface JsonProps extends PageProps {
5
5
  data: JsonData;
6
+ description: string;
6
7
  }
7
8
  declare function JsonSearch(props: JsonProps): import("react/jsx-runtime").JSX.Element;
8
- export { JsonSearch };
9
+ export default JsonSearch;
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { SuccessResponse, ErrorResponse } from '../types';
2
+ import { ErrorResponse, SuccessResponse } from '../types';
3
3
 
4
4
  declare function QueryHandler({ isFetching, error, data, children, }: {
5
5
  isFetching: boolean;
@@ -1,11 +1,11 @@
1
- import { RecordListResponse, ErrorResponse } from '../types';
2
1
  import { ResultsProps } from '../interfaces';
2
+ import { ErrorResponse, ListResponse } from '../types';
3
3
 
4
4
  interface ResultsPanelProps extends ResultsProps {
5
5
  searchParameters: string;
6
6
  isFetching: boolean;
7
7
  error: Error | null;
8
- data: RecordListResponse | ErrorResponse;
8
+ data: ListResponse | ErrorResponse;
9
9
  sidebarCollapsed: boolean;
10
10
  setSidebarCollapsed: (sideBarCollapsed: boolean) => void;
11
11
  }
@@ -1,7 +1,7 @@
1
- import { CustomCellRendererProps } from '@ag-grid-community/react';
2
1
  import { SortDirection } from '@ag-grid-community/core';
3
- import { RecordListResponse } from '../types';
2
+ import { CustomCellRendererProps } from '@ag-grid-community/react';
4
3
  import { OnyxProps } from '../interfaces';
4
+ import { ListResponse } from '../types';
5
5
 
6
6
  type InputData = Record<string, string | number | boolean | object | null>[];
7
7
  interface TableProps extends OnyxProps {
@@ -21,7 +21,7 @@ interface ClientTableProps extends TableProps {
21
21
  }
22
22
  interface ServerPaginatedTableProps extends TableProps {
23
23
  project: string;
24
- response: RecordListResponse;
24
+ response: ListResponse;
25
25
  searchPath: string;
26
26
  searchParameters: string;
27
27
  }
@@ -1,18 +1,18 @@
1
- import { ProjectField, ExportStatus } from './types';
1
+ import { ExportStatus, ProjectField } from './types';
2
2
 
3
- interface OnyxProps {
3
+ export interface OnyxProps {
4
4
  httpPathHandler: (path: string) => Promise<Response>;
5
5
  s3PathHandler: (path: string) => Promise<void>;
6
6
  fileWriter: (path: string, content: string) => Promise<void>;
7
- extVersion?: string;
7
+ extVersion: string;
8
8
  }
9
- interface ProjectProps extends OnyxProps {
9
+ export interface ProjectProps extends OnyxProps {
10
10
  project: string;
11
11
  }
12
- interface PageProps extends ProjectProps {
12
+ export interface PageProps extends ProjectProps {
13
13
  darkMode: boolean;
14
14
  }
15
- interface DataProps extends PageProps {
15
+ export interface DataProps extends PageProps {
16
16
  projectFields: Map<string, ProjectField>;
17
17
  projectDescription: string;
18
18
  typeLookups: Map<string, string[]>;
@@ -21,11 +21,19 @@ interface DataProps extends PageProps {
21
21
  handleProjectRecordShow: (recordID: string) => void;
22
22
  handleAnalysisShow: (analysisID: string) => void;
23
23
  }
24
- interface ResultsProps extends DataProps {
24
+ export interface IDProps extends DataProps {
25
+ ID: string;
26
+ tabKey: string;
27
+ setTabKey: (key: string) => void;
28
+ dataPanelTabKey: string;
29
+ setDataPanelTabKey: (key: string) => void;
30
+ onHide: () => void;
31
+ }
32
+ export interface ResultsProps extends DataProps {
25
33
  title: string;
26
34
  searchPath: string;
27
35
  }
28
- interface ExportHandlerProps {
36
+ export interface ExportHandlerProps {
29
37
  fileName: string;
30
38
  statusToken: {
31
39
  status: ExportStatus;
@@ -34,4 +42,3 @@ interface ExportHandlerProps {
34
42
  setExportProgress: (exportProgress: number) => void;
35
43
  setExportError: (error: Error) => void;
36
44
  }
37
- export type { OnyxProps, ProjectProps, PageProps, DataProps, ResultsProps, ExportHandlerProps, };
@@ -1,8 +1,4 @@
1
- import { DataProps } from '../interfaces';
1
+ import { IDProps } from '../interfaces';
2
2
 
3
- interface AnalysisProps extends DataProps {
4
- analysisID: string;
5
- onHide: () => void;
6
- }
7
- declare function Analysis(props: AnalysisProps): import("react/jsx-runtime").JSX.Element;
3
+ declare function Analysis(props: IDProps): import("react/jsx-runtime").JSX.Element;
8
4
  export default Analysis;
@@ -1,8 +1,4 @@
1
- import { DataProps } from '../interfaces';
1
+ import { IDProps } from '../interfaces';
2
2
 
3
- interface ProjectRecordProps extends DataProps {
4
- recordID: string;
5
- onHide: () => void;
6
- }
7
- declare function ProjectRecord(props: ProjectRecordProps): import("react/jsx-runtime").JSX.Element;
3
+ declare function ProjectRecord(props: IDProps): import("react/jsx-runtime").JSX.Element;
8
4
  export default ProjectRecord;