climb-onyx-gui 0.13.0 → 0.14.0-dev.2
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 +11 -0
- package/dist/api/index.d.ts +64 -0
- package/dist/climb-onyx-gui.js +55503 -53641
- package/dist/components/Badges.d.ts +2 -0
- package/dist/components/Buttons.d.ts +9 -0
- package/dist/components/CellRenderers.d.ts +20 -0
- package/dist/components/DataField.d.ts +7 -0
- package/dist/components/DataPanel.d.ts +11 -0
- package/dist/components/Details.d.ts +9 -0
- package/dist/components/Dropdowns.d.ts +3 -5
- package/dist/components/ExportModal.d.ts +2 -1
- package/dist/components/Filter.d.ts +4 -3
- package/dist/components/FilterPanel.d.ts +4 -3
- package/dist/components/Graphs.d.ts +8 -6
- package/dist/components/Header.d.ts +7 -3
- package/dist/components/History.d.ts +9 -0
- package/dist/components/Inputs.d.ts +7 -1
- package/dist/components/JsonSearch.d.ts +9 -0
- package/dist/components/PageTitle.d.ts +6 -0
- package/dist/components/QueryHandler.d.ts +4 -3
- package/dist/components/ResultsPanel.d.ts +8 -7
- package/dist/components/SearchBar.d.ts +2 -3
- package/dist/components/Table.d.ts +14 -5
- package/dist/interfaces.d.ts +22 -8
- package/dist/pages/Analysis.d.ts +4 -0
- package/dist/pages/Graphs.d.ts +4 -0
- package/dist/pages/ProjectRecord.d.ts +4 -0
- package/dist/pages/Results.d.ts +4 -0
- package/dist/pages/Site.d.ts +4 -0
- package/dist/pages/User.d.ts +4 -0
- package/dist/style.css +2 -2
- package/dist/types.d.ts +80 -24
- package/dist/utils/functions.d.ts +15 -0
- package/dist/utils/hooks.d.ts +3 -0
- package/dist/utils/messages.d.ts +3 -0
- package/dist/utils/{graphStyles.d.ts → styles.d.ts} +4 -1
- package/package.json +4 -1
- package/dist/components/RecordModal.d.ts +0 -9
- package/dist/pages/Data.d.ts +0 -4
- package/dist/pages/Stats.d.ts +0 -4
- package/dist/utils/errorMessages.d.ts +0 -1
- package/dist/utils/generateKey.d.ts +0 -2
- package/dist/utils/selectStyles.d.ts +0 -4
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ButtonProps } from 'react-bootstrap/Button';
|
|
2
|
+
|
|
3
|
+
interface SidebarButtonProps extends ButtonProps {
|
|
4
|
+
sidebarCollapsed: boolean;
|
|
5
|
+
setSidebarCollapsed: (sideBarCollapsed: boolean) => void;
|
|
6
|
+
}
|
|
7
|
+
declare function SidebarButton(props: SidebarButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function CopyToClipboardButton(props: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export { CopyToClipboardButton, SidebarButton };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { CustomCellRendererProps } from '@ag-grid-community/react';
|
|
2
|
+
import { OnyxProps } from '../interfaces';
|
|
3
|
+
|
|
4
|
+
interface ErrorModalProps extends OnyxProps {
|
|
5
|
+
handleErrorModalShow: (error: Error) => void;
|
|
6
|
+
}
|
|
7
|
+
interface IDModalProps {
|
|
8
|
+
handleProjectRecordShow: (recordID: string) => void;
|
|
9
|
+
handleAnalysisShow: (analysisID: string) => void;
|
|
10
|
+
}
|
|
11
|
+
declare function ClimbIDCellRendererFactory(props: IDModalProps): (cellRendererProps: CustomCellRendererProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function AnalysisIDCellRendererFactory(props: IDModalProps): (cellRendererProps: CustomCellRendererProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare function S3ReportCellRendererFactory(props: ErrorModalProps): (cellRendererProps: CustomCellRendererProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare function TimestampCellRenderer(props: CustomCellRendererProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare function ActionCellRenderer(props: CustomCellRendererProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
declare function ChangeCellRenderer(props: CustomCellRendererProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
declare function HTTPStatusCellRenderer(props: CustomCellRendererProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
declare function HTTPMethodCellRenderer(props: CustomCellRendererProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
declare function JSONCellRenderer(props: CustomCellRendererProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export { ActionCellRenderer, AnalysisIDCellRendererFactory, ChangeCellRenderer, ClimbIDCellRendererFactory, HTTPMethodCellRenderer, HTTPStatusCellRenderer, JSONCellRenderer, S3ReportCellRendererFactory, TimestampCellRenderer, };
|
|
@@ -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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PageProps } from '../interfaces';
|
|
2
2
|
|
|
3
3
|
interface GenericDropdownProps {
|
|
4
4
|
options: string[];
|
|
@@ -14,10 +14,8 @@ interface DropdownProps extends GenericDropdownProps {
|
|
|
14
14
|
interface MultiDropdownProps extends GenericDropdownProps {
|
|
15
15
|
value: string[];
|
|
16
16
|
}
|
|
17
|
-
interface GenericChoiceProps {
|
|
18
|
-
project: string;
|
|
17
|
+
interface GenericChoiceProps extends PageProps {
|
|
19
18
|
field: string;
|
|
20
|
-
httpPathHandler: (path: string) => Promise<Response>;
|
|
21
19
|
}
|
|
22
20
|
interface ChoiceProps extends DropdownProps, GenericChoiceProps {
|
|
23
21
|
}
|
|
@@ -27,4 +25,4 @@ declare function Dropdown(props: DropdownProps): import("react/jsx-runtime").JSX
|
|
|
27
25
|
declare function MultiDropdown(props: MultiDropdownProps): import("react/jsx-runtime").JSX.Element;
|
|
28
26
|
declare function Choice(props: ChoiceProps): import("react/jsx-runtime").JSX.Element;
|
|
29
27
|
declare function MultiChoice(props: MultiChoiceProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
-
export {
|
|
28
|
+
export { Choice, Dropdown, MultiChoice, MultiDropdown };
|
|
@@ -4,7 +4,8 @@ interface ExportModalProps {
|
|
|
4
4
|
show: boolean;
|
|
5
5
|
onHide: () => void;
|
|
6
6
|
defaultFileNamePrefix: string;
|
|
7
|
-
|
|
7
|
+
defaultFileExtension: string;
|
|
8
|
+
fileExtensions?: string[];
|
|
8
9
|
exportProgressMessage: string;
|
|
9
10
|
handleExport: (exportProps: ExportHandlerProps) => void;
|
|
10
11
|
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { FilterField } 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;
|
|
6
|
-
filterList:
|
|
7
|
-
setFilterList: (value:
|
|
6
|
+
filterList: FilterConfig[];
|
|
7
|
+
setFilterList: (value: FilterConfig[]) => void;
|
|
8
8
|
fieldList: string[];
|
|
9
9
|
setEditMode: (value: boolean) => void;
|
|
10
|
+
disableLookups?: boolean;
|
|
10
11
|
}
|
|
11
12
|
declare function Filter(props: FilterProps): import("react/jsx-runtime").JSX.Element;
|
|
12
13
|
export default Filter;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { FilterField } from '../types';
|
|
2
1
|
import { DataProps } from '../interfaces';
|
|
2
|
+
import { FilterConfig } from '../types';
|
|
3
3
|
|
|
4
4
|
interface FilterPanelProps extends DataProps {
|
|
5
|
-
filterList:
|
|
6
|
-
setFilterList: (value:
|
|
5
|
+
filterList: FilterConfig[];
|
|
6
|
+
setFilterList: (value: FilterConfig[]) => void;
|
|
7
7
|
filterFieldOptions: string[];
|
|
8
|
+
disableLookups?: boolean;
|
|
8
9
|
}
|
|
9
10
|
declare function FilterPanel(props: FilterPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
10
11
|
export default FilterPanel;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { default as Plotly } from 'plotly.js-basic-dist';
|
|
2
|
+
import { DataProps } from '../interfaces';
|
|
2
3
|
import { GraphConfig } from '../types';
|
|
3
|
-
import { StatsProps } from '../interfaces';
|
|
4
4
|
|
|
5
|
-
interface
|
|
6
|
-
|
|
5
|
+
interface BasePlotProps {
|
|
6
|
+
plotData: Plotly.Data[];
|
|
7
7
|
title?: string;
|
|
8
8
|
xTitle?: string;
|
|
9
9
|
yTitle?: string;
|
|
@@ -13,13 +13,15 @@ interface BaseGraphProps {
|
|
|
13
13
|
darkMode: boolean;
|
|
14
14
|
uirevision: string;
|
|
15
15
|
}
|
|
16
|
-
interface GraphProps extends
|
|
16
|
+
interface GraphProps extends DataProps {
|
|
17
17
|
graphConfig: GraphConfig;
|
|
18
|
+
refresh: number;
|
|
19
|
+
setLastUpdated: (lastUpdated: string | null) => void;
|
|
18
20
|
}
|
|
19
|
-
declare function
|
|
21
|
+
declare function BasePlot(props: BasePlotProps): import("react/jsx-runtime").JSX.Element;
|
|
20
22
|
declare function ScatterGraph(props: GraphProps): import("react/jsx-runtime").JSX.Element;
|
|
21
23
|
declare function BarGraph(props: GraphProps): import("react/jsx-runtime").JSX.Element;
|
|
22
24
|
declare function PieGraph(props: GraphProps): import("react/jsx-runtime").JSX.Element;
|
|
23
25
|
declare function GroupedScatterGraph(props: GraphProps): import("react/jsx-runtime").JSX.Element;
|
|
24
26
|
declare function GroupedBarGraph(props: GraphProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
-
export {
|
|
27
|
+
export { BarGraph, BasePlot, GroupedBarGraph, GroupedScatterGraph, PieGraph, ScatterGraph, };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { PageProps } from '../interfaces';
|
|
2
|
+
|
|
3
|
+
interface HeaderProps extends PageProps {
|
|
3
4
|
projectName: string;
|
|
4
5
|
projectList: string[];
|
|
5
6
|
handleProjectChange: (p: string) => void;
|
|
@@ -7,8 +8,11 @@ interface HeaderProps {
|
|
|
7
8
|
extVersion?: string;
|
|
8
9
|
tabKey: string;
|
|
9
10
|
setTabKey: (k: string) => void;
|
|
10
|
-
darkMode: boolean;
|
|
11
11
|
handleThemeChange: () => void;
|
|
12
|
+
recordID: string;
|
|
13
|
+
handleProjectRecordHide: () => void;
|
|
14
|
+
analysisID: string;
|
|
15
|
+
handleAnalysisHide: () => void;
|
|
12
16
|
}
|
|
13
17
|
declare function Header(props: HeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
14
18
|
export default Header;
|
|
@@ -11,4 +11,10 @@ declare function MultiInput({ value, placeholder, limit, onChange, }: {
|
|
|
11
11
|
limit?: number;
|
|
12
12
|
onChange: React.ChangeEventHandler<HTMLInputElement>;
|
|
13
13
|
}): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
|
|
14
|
+
declare function RangeInput({ from, to, placeholder, onChange, }: {
|
|
15
|
+
from: string;
|
|
16
|
+
to: string;
|
|
17
|
+
placeholder?: string;
|
|
18
|
+
onChange: React.ChangeEventHandler<HTMLInputElement>;
|
|
19
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export { Input, MultiInput, RangeInput };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { JsonData } from 'json-edit-react';
|
|
2
|
+
import { PageProps } from '../interfaces';
|
|
3
|
+
|
|
4
|
+
interface JsonProps extends PageProps {
|
|
5
|
+
data: JsonData;
|
|
6
|
+
description: string;
|
|
7
|
+
}
|
|
8
|
+
declare function JsonSearch(props: JsonProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default JsonSearch;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ErrorResponse, SuccessResponse } from '../types';
|
|
2
3
|
|
|
3
4
|
declare function QueryHandler({ isFetching, error, data, children, }: {
|
|
4
5
|
isFetching: boolean;
|
|
5
6
|
error: Error | null;
|
|
6
|
-
data:
|
|
7
|
-
children:
|
|
7
|
+
data: SuccessResponse | ErrorResponse;
|
|
8
|
+
children: React.ReactNode;
|
|
8
9
|
}): import("react/jsx-runtime").JSX.Element;
|
|
9
10
|
export default QueryHandler;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ResultsProps } from '../interfaces';
|
|
2
|
+
import { ErrorResponse, ListResponse } from '../types';
|
|
3
3
|
|
|
4
|
-
interface ResultsPanelProps extends
|
|
5
|
-
resultPending: boolean;
|
|
6
|
-
resultError: Error | null;
|
|
7
|
-
resultData: ResultData;
|
|
4
|
+
interface ResultsPanelProps extends ResultsProps {
|
|
8
5
|
searchParameters: string;
|
|
9
|
-
|
|
6
|
+
isFetching: boolean;
|
|
7
|
+
error: Error | null;
|
|
8
|
+
data: ListResponse | ErrorResponse;
|
|
9
|
+
sidebarCollapsed: boolean;
|
|
10
|
+
setSidebarCollapsed: (sideBarCollapsed: boolean) => void;
|
|
10
11
|
}
|
|
11
12
|
declare function ResultsPanel(props: ResultsPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
12
13
|
export default ResultsPanel;
|
|
@@ -1,22 +1,31 @@
|
|
|
1
|
+
import { SortDirection } from '@ag-grid-community/core';
|
|
1
2
|
import { CustomCellRendererProps } from '@ag-grid-community/react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
3
|
+
import { OnyxProps } from '../interfaces';
|
|
4
|
+
import { ListResponse } from '../types';
|
|
4
5
|
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
type InputData = Record<string, string | number | boolean | object | null>[];
|
|
7
|
+
interface TableProps extends OnyxProps {
|
|
7
8
|
defaultFileNamePrefix: string;
|
|
8
9
|
headerNames?: Map<string, string>;
|
|
9
10
|
headerTooltips?: Map<string, string>;
|
|
10
11
|
headerTooltipPrefix?: string;
|
|
11
12
|
tooltipFields?: string[];
|
|
12
13
|
flexOnly?: string[];
|
|
14
|
+
includeOnly?: string[];
|
|
15
|
+
defaultSort?: Map<string, SortDirection>;
|
|
13
16
|
footer?: string;
|
|
14
17
|
cellRenderers?: Map<string, (params: CustomCellRendererProps) => JSX.Element>;
|
|
15
18
|
}
|
|
19
|
+
interface ClientTableProps extends TableProps {
|
|
20
|
+
data: InputData;
|
|
21
|
+
}
|
|
16
22
|
interface ServerPaginatedTableProps extends TableProps {
|
|
23
|
+
project: string;
|
|
24
|
+
response: ListResponse;
|
|
25
|
+
searchPath: string;
|
|
17
26
|
searchParameters: string;
|
|
18
27
|
}
|
|
19
|
-
declare function Table(props:
|
|
28
|
+
declare function Table(props: ClientTableProps): import("react/jsx-runtime").JSX.Element;
|
|
20
29
|
declare function ServerPaginatedTable(props: ServerPaginatedTableProps): import("react/jsx-runtime").JSX.Element;
|
|
21
30
|
export default Table;
|
|
22
31
|
export { ServerPaginatedTable };
|
package/dist/interfaces.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ExportStatus, ProjectField } from './types';
|
|
2
2
|
|
|
3
3
|
interface OnyxProps {
|
|
4
4
|
httpPathHandler: (path: string) => Promise<Response>;
|
|
@@ -6,18 +6,32 @@ interface OnyxProps {
|
|
|
6
6
|
fileWriter: (path: string, content: string) => Promise<void>;
|
|
7
7
|
extVersion?: string;
|
|
8
8
|
}
|
|
9
|
-
interface
|
|
9
|
+
interface ProjectProps extends OnyxProps {
|
|
10
10
|
project: string;
|
|
11
|
+
}
|
|
12
|
+
interface PageProps extends ProjectProps {
|
|
13
|
+
darkMode: boolean;
|
|
14
|
+
}
|
|
15
|
+
interface DataProps extends PageProps {
|
|
11
16
|
projectFields: Map<string, ProjectField>;
|
|
17
|
+
projectDescription: string;
|
|
12
18
|
typeLookups: Map<string, string[]>;
|
|
13
19
|
fieldDescriptions: Map<string, string>;
|
|
14
20
|
lookupDescriptions: Map<string, string>;
|
|
21
|
+
handleProjectRecordShow: (recordID: string) => void;
|
|
22
|
+
handleAnalysisShow: (analysisID: string) => void;
|
|
15
23
|
}
|
|
16
|
-
interface
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
24
|
+
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
|
+
interface ResultsProps extends DataProps {
|
|
33
|
+
title: string;
|
|
34
|
+
searchPath: string;
|
|
21
35
|
}
|
|
22
36
|
interface ExportHandlerProps {
|
|
23
37
|
fileName: string;
|
|
@@ -28,4 +42,4 @@ interface ExportHandlerProps {
|
|
|
28
42
|
setExportProgress: (exportProgress: number) => void;
|
|
29
43
|
setExportError: (error: Error) => void;
|
|
30
44
|
}
|
|
31
|
-
export type { OnyxProps,
|
|
45
|
+
export type { DataProps, ExportHandlerProps, IDProps, OnyxProps, PageProps, ProjectProps, ResultsProps, };
|