climb-onyx-gui 0.9.1 → 0.10.0

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.
@@ -1,5 +1,7 @@
1
- /// <reference types="react" />
2
- declare function Dropdown({ options, titles, value, placeholder, onChange, darkMode, }: {
1
+ import { default as React } from 'react';
2
+
3
+ declare function Dropdown({ isClearable, options, titles, value, placeholder, onChange, darkMode, }: {
4
+ isClearable?: boolean;
3
5
  options: string[];
4
6
  titles?: Map<string, string>;
5
7
  value: string;
@@ -0,0 +1,25 @@
1
+ import { default as React } from 'react';
2
+
3
+ interface FilterProps {
4
+ filter: {
5
+ field: string;
6
+ lookup: string;
7
+ value: string;
8
+ };
9
+ fieldList: string[];
10
+ projectFields: Map<string, {
11
+ type: string;
12
+ values?: string[];
13
+ }>;
14
+ typeLookups: Map<string, string[]>;
15
+ fieldDescriptions: Map<string, string>;
16
+ lookupDescriptions: Map<string, string>;
17
+ handleFieldChange: React.ChangeEventHandler<HTMLSelectElement>;
18
+ handleLookupChange: React.ChangeEventHandler<HTMLSelectElement>;
19
+ handleValueChange: React.ChangeEventHandler<HTMLInputElement | HTMLSelectElement>;
20
+ handleFilterAdd: () => void;
21
+ handleFilterRemove: () => void;
22
+ darkMode: boolean;
23
+ }
24
+ declare function Filter(props: FilterProps): import("react/jsx-runtime").JSX.Element;
25
+ export default Filter;
@@ -1,13 +1,11 @@
1
- declare function Header({ profile, projectName, projectList, handleProjectChange, handleThemeChange, guiVersion, extVersion, }: {
2
- profile: {
3
- username: string;
4
- site: string;
5
- };
1
+ interface HeaderProps {
2
+ httpPathHandler: (path: string) => Promise<Response>;
6
3
  projectName: string;
7
4
  projectList: string[];
8
5
  handleProjectChange: (p: string) => void;
9
6
  handleThemeChange: () => void;
10
7
  guiVersion?: string;
11
8
  extVersion?: string;
12
- }): import("react/jsx-runtime").JSX.Element;
9
+ }
10
+ declare function Header(props: HeaderProps): import("react/jsx-runtime").JSX.Element;
13
11
  export default Header;
@@ -1,4 +1,5 @@
1
- /// <reference types="react" />
1
+ import { default as React } from 'react';
2
+
2
3
  declare function Input({ value, placeholder, onChange, }: {
3
4
  value: string;
4
5
  placeholder?: string;
@@ -0,0 +1,2 @@
1
+ declare function LoadingAlert(): import("react/jsx-runtime").JSX.Element;
2
+ export default LoadingAlert;
@@ -1,6 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  declare const ResultsTable: import('react').NamedExoticComponent<{
3
3
  data: Record<string, string | number | boolean | null>[];
4
+ titles?: Map<string, string> | undefined;
4
5
  s3PathHandler?: ((path: string) => void) | undefined;
5
6
  }>;
6
7
  export default ResultsTable;
package/dist/style.css CHANGED
@@ -1,4 +1,4 @@
1
- @charset "UTF-8";.table{display:block;overflow-x:auto;overflow-y:scroll;overscroll-behavior-x:none;height:42vh;white-space:nowrap}.table thead{position:sticky;top:0;margin:0}.card-header{font-size:large;min-height:50px}.card-footer{height:50px}.panel{height:15vh;overflow-y:scroll}/*!
1
+ @charset "UTF-8";.table{display:block;overflow-x:auto;overflow-y:scroll;overscroll-behavior-x:none;height:47vh;white-space:nowrap}.table thead{position:sticky;top:0;margin:0}.card-header{font-size:large;min-height:50px}.card-footer{height:50px}.panel{height:15vh;overflow-y:scroll}.table-panel{height:48vh}/*!
2
2
  * Bootstrap v5.3.3 (https://getbootstrap.com/)
3
3
  * Copyright 2011-2024 The Bootstrap Authors
4
4
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "climb-onyx-gui",
3
- "version": "0.9.1",
3
+ "version": "0.10.0",
4
4
  "type": "module",
5
5
  "main": "dist/climb-onyx-gui.js",
6
6
  "types": "dist/main.d.ts",
@@ -8,7 +8,7 @@
8
8
  "dist"
9
9
  ],
10
10
  "sideEffects": [
11
- "**/*.css"
11
+ "**/*.css"
12
12
  ],
13
13
  "scripts": {
14
14
  "dev": "vite",
@@ -18,6 +18,7 @@
18
18
  "prepublishOnly": "npm run build"
19
19
  },
20
20
  "dependencies": {
21
+ "@tanstack/react-query": "^5.45.1",
21
22
  "export-to-csv": "^1.3.0",
22
23
  "react-bootstrap": "^2.10.2",
23
24
  "react-select": "^5.8.0"
@@ -27,8 +28,6 @@
27
28
  "react-dom": "^18.2.0"
28
29
  },
29
30
  "devDependencies": {
30
- "react": "^18.2.0",
31
- "react-dom": "^18.2.0",
32
31
  "@types/node": "^20.12.12",
33
32
  "@types/react": "^18.2.66",
34
33
  "@types/react-dom": "^18.2.22",
@@ -38,6 +37,8 @@
38
37
  "eslint": "^8.57.0",
39
38
  "eslint-plugin-react-hooks": "^4.6.0",
40
39
  "eslint-plugin-react-refresh": "^0.4.6",
40
+ "react": "^18.2.0",
41
+ "react-dom": "^18.2.0",
41
42
  "typescript": "^5.2.2",
42
43
  "vite": "^5.2.0",
43
44
  "vite-plugin-dts": "^3.9.1"