climb-onyx-gui 0.12.4 → 0.12.6
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/dist/Onyx.d.ts +1 -1
- package/dist/climb-onyx-gui.js +76497 -46522
- package/dist/components/Filter.d.ts +2 -10
- package/dist/components/FilterPanel.d.ts +10 -0
- package/dist/components/Graphs.d.ts +27 -0
- package/dist/components/QueryHandler.d.ts +9 -0
- package/dist/components/RecordModal.d.ts +9 -0
- package/dist/components/ResultsPanel.d.ts +15 -0
- package/dist/components/SearchBar.d.ts +9 -0
- package/dist/components/Table.d.ts +20 -0
- package/dist/components/TransformsPanel.d.ts +12 -0
- package/dist/interfaces.d.ts +21 -0
- package/dist/pages/Data.d.ts +1 -8
- package/dist/pages/Stats.d.ts +1 -6
- package/dist/style.css +2 -2
- package/dist/types.d.ts +16 -8
- package/package.json +5 -1
- package/dist/components/ErrorMessages.d.ts +0 -6
- package/dist/components/LoadingAlert.d.ts +0 -3
- package/dist/components/ResultsTable.d.ts +0 -10
|
@@ -1,21 +1,13 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { DataProps } from '../interfaces';
|
|
2
3
|
|
|
3
|
-
interface FilterProps {
|
|
4
|
-
project: string;
|
|
5
|
-
httpPathHandler: (path: string) => Promise<Response>;
|
|
4
|
+
interface FilterProps extends DataProps {
|
|
6
5
|
filter: {
|
|
7
6
|
field: string;
|
|
8
7
|
lookup: string;
|
|
9
8
|
value: string;
|
|
10
9
|
};
|
|
11
10
|
fieldList: string[];
|
|
12
|
-
projectFields: Map<string, {
|
|
13
|
-
type: string;
|
|
14
|
-
values?: string[];
|
|
15
|
-
}>;
|
|
16
|
-
typeLookups: Map<string, string[]>;
|
|
17
|
-
fieldDescriptions: Map<string, string>;
|
|
18
|
-
lookupDescriptions: Map<string, string>;
|
|
19
11
|
handleFieldChange: React.ChangeEventHandler<HTMLSelectElement>;
|
|
20
12
|
handleLookupChange: React.ChangeEventHandler<HTMLSelectElement>;
|
|
21
13
|
handleValueChange: React.ChangeEventHandler<HTMLInputElement | HTMLSelectElement>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FilterField } from '../types';
|
|
2
|
+
import { DataProps } from '../interfaces';
|
|
3
|
+
|
|
4
|
+
interface FilterPanelProps extends DataProps {
|
|
5
|
+
filterList: FilterField[];
|
|
6
|
+
setFilterList: (value: FilterField[]) => void;
|
|
7
|
+
filterFieldOptions: string[];
|
|
8
|
+
}
|
|
9
|
+
declare function FilterPanel(props: FilterPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default FilterPanel;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { default as Plotly } from 'plotly.js-basic-dist';
|
|
2
|
+
import { StatsProps } from '../interfaces';
|
|
3
|
+
|
|
4
|
+
interface BaseGraphProps {
|
|
5
|
+
data: Plotly.Data[];
|
|
6
|
+
title: string;
|
|
7
|
+
xTitle?: string;
|
|
8
|
+
yTitle?: string;
|
|
9
|
+
legendTitle?: string;
|
|
10
|
+
layout?: Record<string, unknown>;
|
|
11
|
+
darkMode: boolean;
|
|
12
|
+
uirevision: string;
|
|
13
|
+
}
|
|
14
|
+
interface GraphProps extends StatsProps {
|
|
15
|
+
field: string;
|
|
16
|
+
}
|
|
17
|
+
interface GroupedGraphProps extends GraphProps {
|
|
18
|
+
groupBy: string;
|
|
19
|
+
groupMode?: string;
|
|
20
|
+
}
|
|
21
|
+
declare function BaseGraph(props: BaseGraphProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
declare function ScatterGraph(props: GraphProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
declare function BarGraph(props: GraphProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
declare function PieGraph(props: GraphProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
declare function GroupedScatterGraph(props: GroupedGraphProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
declare function GroupedBarGraph(props: GroupedGraphProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export { BaseGraph, ScatterGraph, BarGraph, PieGraph, GroupedScatterGraph, GroupedBarGraph, };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ResultData } from '../types';
|
|
2
|
+
|
|
3
|
+
declare function QueryHandler({ isFetching, error, data, children, }: {
|
|
4
|
+
isFetching: boolean;
|
|
5
|
+
error: Error | null;
|
|
6
|
+
data: ResultData;
|
|
7
|
+
children: JSX.Element;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default QueryHandler;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DataProps } from '../interfaces';
|
|
2
|
+
|
|
3
|
+
interface RecordModalProps extends DataProps {
|
|
4
|
+
recordID: string;
|
|
5
|
+
show: boolean;
|
|
6
|
+
onHide: () => void;
|
|
7
|
+
}
|
|
8
|
+
declare function RecordModal(props: RecordModalProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default RecordModal;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ResultData } from '../types';
|
|
2
|
+
import { DataProps } from '../interfaces';
|
|
3
|
+
|
|
4
|
+
interface ResultsPanelProps extends DataProps {
|
|
5
|
+
resultPending: boolean;
|
|
6
|
+
resultError: Error | null;
|
|
7
|
+
resultData: ResultData;
|
|
8
|
+
searchParameters: string;
|
|
9
|
+
setSearchParameters: (params: string) => void;
|
|
10
|
+
pageNumber: number;
|
|
11
|
+
setPageNumber: (page: number) => void;
|
|
12
|
+
handleRecordModalShow: (climbID: string) => void;
|
|
13
|
+
}
|
|
14
|
+
declare function ResultsPanel(props: ResultsPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export default ResultsPanel;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DataProps } from '../interfaces';
|
|
2
|
+
|
|
3
|
+
interface SearchBarProps extends DataProps {
|
|
4
|
+
searchInput: string;
|
|
5
|
+
setSearchInput: (value: string) => void;
|
|
6
|
+
handleSearch: () => void;
|
|
7
|
+
}
|
|
8
|
+
declare function SearchBar(props: SearchBarProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default SearchBar;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { CustomCellRendererProps } from '@ag-grid-community/react';
|
|
2
|
+
import { ResultData } from '../types';
|
|
3
|
+
|
|
4
|
+
declare function Table({ project, data, searchParameters, headerNames, headerTooltips, headerTooltipPrefix, tooltipFields, flexOnly, isServerData, footer, cellRenderers, handleRecordModalShow, httpPathHandler, s3PathHandler, }: {
|
|
5
|
+
data: ResultData;
|
|
6
|
+
project?: string;
|
|
7
|
+
searchParameters?: string;
|
|
8
|
+
headerNames?: Map<string, string>;
|
|
9
|
+
headerTooltips?: Map<string, string>;
|
|
10
|
+
headerTooltipPrefix?: string;
|
|
11
|
+
tooltipFields?: string[];
|
|
12
|
+
flexOnly?: string[];
|
|
13
|
+
isServerData?: boolean;
|
|
14
|
+
footer?: string;
|
|
15
|
+
cellRenderers?: Map<string, (params: CustomCellRendererProps) => JSX.Element>;
|
|
16
|
+
handleRecordModalShow?: (climbID: string) => void;
|
|
17
|
+
httpPathHandler?: (path: string) => Promise<Response>;
|
|
18
|
+
s3PathHandler?: (path: string) => void;
|
|
19
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export default Table;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DataProps } from '../interfaces';
|
|
2
|
+
|
|
3
|
+
interface TransformsPanelProps extends DataProps {
|
|
4
|
+
transform: string;
|
|
5
|
+
setTransform: (value: string) => void;
|
|
6
|
+
transformList: string[];
|
|
7
|
+
setTransformList: (value: string[]) => void;
|
|
8
|
+
filterFieldOptions: string[];
|
|
9
|
+
listFieldOptions: string[];
|
|
10
|
+
}
|
|
11
|
+
declare function TransformsPanel(props: TransformsPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export default TransformsPanel;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ProjectField } from './types';
|
|
2
|
+
|
|
3
|
+
interface OnyxProps {
|
|
4
|
+
httpPathHandler: (path: string) => Promise<Response>;
|
|
5
|
+
s3PathHandler?: (path: string) => void;
|
|
6
|
+
fileWriter?: (path: string, content: string) => void;
|
|
7
|
+
extVersion?: string;
|
|
8
|
+
}
|
|
9
|
+
interface DataProps extends OnyxProps {
|
|
10
|
+
project: string;
|
|
11
|
+
projectFields: Map<string, ProjectField>;
|
|
12
|
+
typeLookups: Map<string, string[]>;
|
|
13
|
+
fieldDescriptions: Map<string, string>;
|
|
14
|
+
lookupDescriptions: Map<string, string>;
|
|
15
|
+
}
|
|
16
|
+
interface StatsProps extends OnyxProps {
|
|
17
|
+
project: string;
|
|
18
|
+
projectFields: Map<string, ProjectField>;
|
|
19
|
+
darkMode: boolean;
|
|
20
|
+
}
|
|
21
|
+
export type { OnyxProps, DataProps, StatsProps };
|
package/dist/pages/Data.d.ts
CHANGED
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DataProps } from '../interfaces';
|
|
2
2
|
|
|
3
|
-
interface DataProps extends OnyxProps {
|
|
4
|
-
project: string;
|
|
5
|
-
projectFields: Map<string, ProjectField>;
|
|
6
|
-
typeLookups: Map<string, string[]>;
|
|
7
|
-
fieldDescriptions: Map<string, string>;
|
|
8
|
-
lookupDescriptions: Map<string, string>;
|
|
9
|
-
}
|
|
10
3
|
declare function Data(props: DataProps): import("react/jsx-runtime").JSX.Element;
|
|
11
4
|
export default Data;
|
package/dist/pages/Stats.d.ts
CHANGED
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StatsProps } from '../interfaces';
|
|
2
2
|
|
|
3
|
-
interface StatsProps extends OnyxProps {
|
|
4
|
-
project: string;
|
|
5
|
-
projectFields: Map<string, ProjectField>;
|
|
6
|
-
darkMode: boolean;
|
|
7
|
-
}
|
|
8
3
|
declare function Stats(props: StatsProps): import("react/jsx-runtime").JSX.Element;
|
|
9
4
|
export default Stats;
|