climb-onyx-gui 0.14.0-dev → 0.14.0-dev.11
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.
- package/LICENSE +674 -0
- package/dist/api/hooks.d.ts +2 -2
- package/dist/api/index.d.ts +27 -32
- package/dist/climb-onyx-gui.js +49212 -49211
- package/dist/components/Buttons.d.ts +1 -1
- package/dist/components/CellRenderers.d.ts +1 -2
- package/dist/components/DataField.d.ts +2 -4
- package/dist/components/DataPanel.d.ts +11 -0
- package/dist/components/Details.d.ts +9 -0
- package/dist/components/Dropdowns.d.ts +1 -1
- package/dist/components/ExportModal.d.ts +0 -1
- package/dist/components/Filter.d.ts +1 -1
- package/dist/components/FilterPanel.d.ts +1 -1
- package/dist/components/Graphs.d.ts +3 -3
- package/dist/components/Header.d.ts +0 -2
- package/dist/components/{Json.d.ts → JsonSearch.d.ts} +2 -1
- package/dist/components/QueryHandler.d.ts +1 -1
- package/dist/components/ResultsPanel.d.ts +2 -2
- package/dist/components/Table.d.ts +3 -3
- package/dist/interfaces.d.ts +19 -11
- package/dist/pages/Analysis.d.ts +2 -6
- package/dist/pages/ProjectRecord.d.ts +2 -6
- package/dist/style.css +1 -1
- package/dist/types.d.ts +48 -35
- package/dist/utils/functions.d.ts +8 -6
- package/dist/utils/hooks.d.ts +1 -1
- package/dist/utils/messages.d.ts +2 -1
- package/dist/utils/styles.d.ts +1 -1
- package/package.json +1 -1
- package/dist/components/FieldsModal.d.ts +0 -0
- package/dist/components/ObjectDetails.d.ts +0 -9
|
@@ -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 {
|
|
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 {
|
|
20
|
+
export { ActionCellRenderer, AnalysisIDCellRendererFactory, ChangeCellRenderer, ClimbIDCellRendererFactory, HTTPMethodCellRenderer, HTTPStatusCellRenderer, JSONCellRenderer, S3ReportCellRendererFactory, TimestampCellRenderer, };
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
|
|
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 {
|
|
28
|
+
export { Choice, Dropdown, MultiChoice, MultiDropdown };
|
|
@@ -6,7 +6,6 @@ interface ExportModalProps {
|
|
|
6
6
|
defaultFileNamePrefix: string;
|
|
7
7
|
defaultFileExtension: string;
|
|
8
8
|
fileExtensions?: string[];
|
|
9
|
-
exportProgressMessage: string;
|
|
10
9
|
handleExport: (exportProps: ExportHandlerProps) => void;
|
|
11
10
|
}
|
|
12
11
|
declare function ExportModal(props: ExportModalProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -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[];
|
|
@@ -15,7 +15,7 @@ interface BasePlotProps {
|
|
|
15
15
|
}
|
|
16
16
|
interface GraphProps extends DataProps {
|
|
17
17
|
graphConfig: GraphConfig;
|
|
18
|
-
refresh: number;
|
|
18
|
+
refresh: number | null;
|
|
19
19
|
setLastUpdated: (lastUpdated: string | null) => void;
|
|
20
20
|
}
|
|
21
21
|
declare function BasePlot(props: BasePlotProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -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,
|
|
27
|
+
export { BarGraph, BasePlot, GroupedBarGraph, GroupedScatterGraph, PieGraph, ScatterGraph, };
|
|
@@ -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
|
|
9
|
+
export default JsonSearch;
|
|
@@ -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:
|
|
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 {
|
|
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:
|
|
24
|
+
response: ListResponse;
|
|
25
25
|
searchPath: string;
|
|
26
26
|
searchParameters: string;
|
|
27
27
|
}
|
package/dist/interfaces.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
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
|
|
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,17 +21,25 @@ interface DataProps extends PageProps {
|
|
|
21
21
|
handleProjectRecordShow: (recordID: string) => void;
|
|
22
22
|
handleAnalysisShow: (analysisID: string) => void;
|
|
23
23
|
}
|
|
24
|
-
interface
|
|
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;
|
|
32
40
|
};
|
|
33
|
-
setExportStatus: (
|
|
34
|
-
setExportProgress: (
|
|
41
|
+
setExportStatus: (status: ExportStatus) => void;
|
|
42
|
+
setExportProgress: (progress: number) => void;
|
|
43
|
+
setExportProgressMessage: (message: string) => void;
|
|
35
44
|
setExportError: (error: Error) => void;
|
|
36
45
|
}
|
|
37
|
-
export type { OnyxProps, ProjectProps, PageProps, DataProps, ResultsProps, ExportHandlerProps, };
|
package/dist/pages/Analysis.d.ts
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IDProps } from '../interfaces';
|
|
2
2
|
|
|
3
|
-
|
|
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 {
|
|
1
|
+
import { IDProps } from '../interfaces';
|
|
2
2
|
|
|
3
|
-
|
|
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;
|