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
package/dist/types.d.ts
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
interface OnyxProps {
|
|
2
|
-
httpPathHandler: (path: string) => Promise<Response>;
|
|
3
|
-
s3PathHandler?: (path: string) => void;
|
|
4
|
-
fileWriter?: (path: string, content: string) => void;
|
|
5
|
-
extVersion?: string;
|
|
6
|
-
}
|
|
7
1
|
type ProjectField = {
|
|
8
2
|
type: string;
|
|
9
3
|
description: string;
|
|
@@ -11,10 +5,24 @@ type ProjectField = {
|
|
|
11
5
|
values?: string[];
|
|
12
6
|
fields?: Record<string, ProjectField>;
|
|
13
7
|
};
|
|
8
|
+
type FilterField = {
|
|
9
|
+
key: string;
|
|
10
|
+
field: string;
|
|
11
|
+
lookup: string;
|
|
12
|
+
value: string;
|
|
13
|
+
};
|
|
14
14
|
type OptionType = {
|
|
15
15
|
label: string;
|
|
16
16
|
value: string;
|
|
17
17
|
};
|
|
18
|
-
type ResultType = Record<string, string | number | boolean | null>;
|
|
18
|
+
type ResultType = Record<string, string | number | boolean | object | null>;
|
|
19
19
|
type ErrorType = Record<string, string | string[]>;
|
|
20
|
-
|
|
20
|
+
type ResultData = {
|
|
21
|
+
status: string;
|
|
22
|
+
code: number;
|
|
23
|
+
next?: string;
|
|
24
|
+
previous?: string;
|
|
25
|
+
data?: ResultType[];
|
|
26
|
+
messages?: ErrorType;
|
|
27
|
+
};
|
|
28
|
+
export type { ProjectField, FilterField, OptionType, ResultType, ErrorType, ResultData, };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "climb-onyx-gui",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/climb-onyx-gui.js",
|
|
6
6
|
"types": "dist/main.d.ts",
|
|
@@ -18,6 +18,10 @@
|
|
|
18
18
|
"prepublishOnly": "npm run build"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
+
"@ag-grid-community/client-side-row-model": "^32.1.0",
|
|
22
|
+
"@ag-grid-community/core": "^32.1.0",
|
|
23
|
+
"@ag-grid-community/react": "^32.1.0",
|
|
24
|
+
"@ag-grid-community/styles": "^32.1.0",
|
|
21
25
|
"@tanstack/react-query": "^4.36.1",
|
|
22
26
|
"export-to-csv": "^1.3.0",
|
|
23
27
|
"plotly.js-basic-dist": "^2.33.0",
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ResultType } from '../types';
|
|
2
|
-
|
|
3
|
-
declare const ResultsTable: import('react').NamedExoticComponent<{
|
|
4
|
-
data: ResultType[];
|
|
5
|
-
titles?: Map<string, string> | undefined;
|
|
6
|
-
recordDetailHandler?: ((climbID: string) => void) | undefined;
|
|
7
|
-
s3PathHandler?: ((path: string) => void) | undefined;
|
|
8
|
-
isSortable?: boolean | undefined;
|
|
9
|
-
}>;
|
|
10
|
-
export default ResultsTable;
|