climb-onyx-gui 0.12.19 → 0.14.0-dev

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.
Files changed (43) hide show
  1. package/dist/api/hooks.d.ts +11 -0
  2. package/dist/api/index.d.ts +69 -0
  3. package/dist/climb-onyx-gui.js +71224 -69355
  4. package/dist/components/Badges.d.ts +2 -0
  5. package/dist/components/Buttons.d.ts +9 -0
  6. package/dist/components/CellRenderers.d.ts +21 -0
  7. package/dist/components/DataField.d.ts +9 -0
  8. package/dist/components/Dropdowns.d.ts +2 -4
  9. package/dist/components/ExportModal.d.ts +2 -1
  10. package/dist/components/FieldsModal.d.ts +0 -0
  11. package/dist/components/Filter.d.ts +4 -3
  12. package/dist/components/FilterPanel.d.ts +4 -3
  13. package/dist/components/Graphs.d.ts +8 -6
  14. package/dist/components/Header.d.ts +7 -3
  15. package/dist/components/History.d.ts +9 -0
  16. package/dist/components/Inputs.d.ts +7 -1
  17. package/dist/components/Json.d.ts +8 -0
  18. package/dist/components/ObjectDetails.d.ts +9 -0
  19. package/dist/components/PageTitle.d.ts +6 -0
  20. package/dist/components/QueryHandler.d.ts +4 -3
  21. package/dist/components/ResultsPanel.d.ts +8 -7
  22. package/dist/components/SearchBar.d.ts +2 -3
  23. package/dist/components/Table.d.ts +14 -5
  24. package/dist/interfaces.d.ts +13 -7
  25. package/dist/pages/Analysis.d.ts +8 -0
  26. package/dist/pages/Graphs.d.ts +4 -0
  27. package/dist/pages/ProjectRecord.d.ts +8 -0
  28. package/dist/pages/Results.d.ts +4 -0
  29. package/dist/pages/Site.d.ts +4 -0
  30. package/dist/pages/User.d.ts +4 -0
  31. package/dist/style.css +2 -2
  32. package/dist/types.d.ts +64 -23
  33. package/dist/utils/functions.d.ts +15 -0
  34. package/dist/utils/hooks.d.ts +3 -0
  35. package/dist/utils/messages.d.ts +3 -0
  36. package/dist/utils/{graphStyles.d.ts → styles.d.ts} +4 -1
  37. package/package.json +4 -1
  38. package/dist/components/RecordModal.d.ts +0 -9
  39. package/dist/pages/Data.d.ts +0 -4
  40. package/dist/pages/Stats.d.ts +0 -4
  41. package/dist/utils/errorMessages.d.ts +0 -1
  42. package/dist/utils/generateKey.d.ts +0 -2
  43. package/dist/utils/selectStyles.d.ts +0 -4
@@ -0,0 +1,2 @@
1
+ declare function UnpublishedBadge(): import("react/jsx-runtime").JSX.Element;
2
+ export { UnpublishedBadge };
@@ -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 { SidebarButton, CopyToClipboardButton };
@@ -0,0 +1,21 @@
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 DetailCellRendererFactory(props: ErrorModalProps): (cellRendererProps: CustomCellRendererProps) => any;
12
+ declare function ClimbIDCellRendererFactory(props: IDModalProps): (cellRendererProps: CustomCellRendererProps) => import("react/jsx-runtime").JSX.Element;
13
+ declare function AnalysisIDCellRendererFactory(props: IDModalProps): (cellRendererProps: CustomCellRendererProps) => import("react/jsx-runtime").JSX.Element;
14
+ declare function S3ReportCellRendererFactory(props: ErrorModalProps): (cellRendererProps: CustomCellRendererProps) => import("react/jsx-runtime").JSX.Element;
15
+ declare function TimestampCellRenderer(props: CustomCellRendererProps): import("react/jsx-runtime").JSX.Element;
16
+ declare function ActionCellRenderer(props: CustomCellRendererProps): import("react/jsx-runtime").JSX.Element;
17
+ declare function ChangeCellRenderer(props: CustomCellRendererProps): import("react/jsx-runtime").JSX.Element;
18
+ declare function HTTPStatusCellRenderer(props: CustomCellRendererProps): import("react/jsx-runtime").JSX.Element;
19
+ declare function HTTPMethodCellRenderer(props: CustomCellRendererProps): import("react/jsx-runtime").JSX.Element;
20
+ declare function JSONCellRenderer(props: CustomCellRendererProps): import("react/jsx-runtime").JSX.Element;
21
+ export { DetailCellRendererFactory, ClimbIDCellRendererFactory, AnalysisIDCellRendererFactory, S3ReportCellRendererFactory, TimestampCellRenderer, ActionCellRenderer, ChangeCellRenderer, HTTPStatusCellRenderer, HTTPMethodCellRenderer, JSONCellRenderer, };
@@ -0,0 +1,9 @@
1
+ import { RecordType } from '../types';
2
+
3
+ interface DataFieldProps {
4
+ record: RecordType;
5
+ field: string;
6
+ name: string;
7
+ }
8
+ declare function DataField(props: DataFieldProps): import("react/jsx-runtime").JSX.Element;
9
+ export default DataField;
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
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
  }
@@ -4,7 +4,8 @@ interface ExportModalProps {
4
4
  show: boolean;
5
5
  onHide: () => void;
6
6
  defaultFileNamePrefix: string;
7
- fileExtension: string;
7
+ defaultFileExtension: string;
8
+ fileExtensions?: string[];
8
9
  exportProgressMessage: string;
9
10
  handleExport: (exportProps: ExportHandlerProps) => void;
10
11
  }
File without changes
@@ -1,12 +1,13 @@
1
- import { FilterField } from '../types';
1
+ import { FilterConfig } from '../types';
2
2
  import { DataProps } from '../interfaces';
3
3
 
4
4
  interface FilterProps extends DataProps {
5
5
  index: number;
6
- filterList: FilterField[];
7
- setFilterList: (value: FilterField[]) => void;
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';
1
+ import { FilterConfig } from '../types';
2
2
  import { DataProps } from '../interfaces';
3
3
 
4
4
  interface FilterPanelProps extends DataProps {
5
- filterList: FilterField[];
6
- setFilterList: (value: FilterField[]) => void;
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
2
  import { GraphConfig } from '../types';
3
- import { StatsProps } from '../interfaces';
3
+ import { DataProps } from '../interfaces';
4
4
 
5
- interface BaseGraphProps {
6
- data: Plotly.Data[];
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 StatsProps {
16
+ interface GraphProps extends DataProps {
17
17
  graphConfig: GraphConfig;
18
+ refresh: number;
19
+ setLastUpdated: (lastUpdated: string | null) => void;
18
20
  }
19
- declare function BaseGraph(props: BaseGraphProps): import("react/jsx-runtime").JSX.Element;
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 { BaseGraph, ScatterGraph, BarGraph, PieGraph, GroupedScatterGraph, GroupedBarGraph, };
27
+ export { BasePlot, ScatterGraph, BarGraph, PieGraph, GroupedScatterGraph, GroupedBarGraph, };
@@ -1,5 +1,6 @@
1
- interface HeaderProps {
2
- httpPathHandler: (path: string) => Promise<Response>;
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;
@@ -0,0 +1,9 @@
1
+ import { PageProps } from '../interfaces';
2
+
3
+ interface HistoryProps extends PageProps {
4
+ name?: string;
5
+ searchPath: string;
6
+ ID: string;
7
+ }
8
+ declare function History(props: HistoryProps): import("react/jsx-runtime").JSX.Element;
9
+ export default History;
@@ -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
- export { Input, MultiInput };
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,8 @@
1
+ import { JsonData } from 'json-edit-react';
2
+ import { PageProps } from '../interfaces';
3
+
4
+ interface JsonProps extends PageProps {
5
+ data: JsonData;
6
+ }
7
+ declare function JsonSearch(props: JsonProps): import("react/jsx-runtime").JSX.Element;
8
+ export { JsonSearch };
@@ -0,0 +1,9 @@
1
+ import { ErrorResponse, RecordDetailResponse } from '../types';
2
+ import { DataProps } from '../interfaces';
3
+
4
+ interface ObjectDetailsProps extends DataProps {
5
+ data: RecordDetailResponse | ErrorResponse;
6
+ handleErrorModalShow: (error: Error) => void;
7
+ }
8
+ declare function ObjectDetails(props: ObjectDetailsProps): import("react/jsx-runtime").JSX.Element;
9
+ export default ObjectDetails;
@@ -0,0 +1,6 @@
1
+ interface PageTitleProps {
2
+ title: string;
3
+ projectDescription: string;
4
+ }
5
+ declare function PageTitle(props: PageTitleProps): import("react/jsx-runtime").JSX.Element;
6
+ export default PageTitle;
@@ -1,9 +1,10 @@
1
- import { ResultData } from '../types';
1
+ import { default as React } from 'react';
2
+ import { SuccessResponse, ErrorResponse } from '../types';
2
3
 
3
4
  declare function QueryHandler({ isFetching, error, data, children, }: {
4
5
  isFetching: boolean;
5
6
  error: Error | null;
6
- data: ResultData;
7
- children: JSX.Element;
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 { ResultData } from '../types';
2
- import { DataProps } from '../interfaces';
1
+ import { RecordListResponse, ErrorResponse } from '../types';
2
+ import { ResultsProps } from '../interfaces';
3
3
 
4
- interface ResultsPanelProps extends DataProps {
5
- resultPending: boolean;
6
- resultError: Error | null;
7
- resultData: ResultData;
4
+ interface ResultsPanelProps extends ResultsProps {
8
5
  searchParameters: string;
9
- handleRecordModalShow: (climbID: string) => void;
6
+ isFetching: boolean;
7
+ error: Error | null;
8
+ data: RecordListResponse | 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,6 +1,5 @@
1
- import { DataProps } from '../interfaces';
2
-
3
- interface SearchBarProps extends DataProps {
1
+ interface SearchBarProps {
2
+ placeholder: string;
4
3
  searchInput: string;
5
4
  setSearchInput: (value: string) => void;
6
5
  handleSearch: () => void;
@@ -1,22 +1,31 @@
1
1
  import { CustomCellRendererProps } from '@ag-grid-community/react';
2
- import { ResultData } from '../types';
3
- import { DataProps } from '../interfaces';
2
+ import { SortDirection } from '@ag-grid-community/core';
3
+ import { RecordListResponse } from '../types';
4
+ import { OnyxProps } from '../interfaces';
4
5
 
5
- interface TableProps extends DataProps {
6
- data: ResultData;
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: RecordListResponse;
25
+ searchPath: string;
17
26
  searchParameters: string;
18
27
  }
19
- declare function Table(props: TableProps): import("react/jsx-runtime").JSX.Element;
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 };
@@ -6,18 +6,24 @@ interface OnyxProps {
6
6
  fileWriter: (path: string, content: string) => Promise<void>;
7
7
  extVersion?: string;
8
8
  }
9
- interface DataProps extends OnyxProps {
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 StatsProps extends OnyxProps {
17
- project: string;
18
- projectFields: Map<string, ProjectField>;
19
- fieldDescriptions: Map<string, string>;
20
- darkMode: boolean;
24
+ interface ResultsProps extends DataProps {
25
+ title: string;
26
+ searchPath: string;
21
27
  }
22
28
  interface ExportHandlerProps {
23
29
  fileName: string;
@@ -28,4 +34,4 @@ interface ExportHandlerProps {
28
34
  setExportProgress: (exportProgress: number) => void;
29
35
  setExportError: (error: Error) => void;
30
36
  }
31
- export type { OnyxProps, DataProps, StatsProps, ExportHandlerProps };
37
+ export type { OnyxProps, ProjectProps, PageProps, DataProps, ResultsProps, ExportHandlerProps, };
@@ -0,0 +1,8 @@
1
+ import { DataProps } from '../interfaces';
2
+
3
+ interface AnalysisProps extends DataProps {
4
+ analysisID: string;
5
+ onHide: () => void;
6
+ }
7
+ declare function Analysis(props: AnalysisProps): import("react/jsx-runtime").JSX.Element;
8
+ export default Analysis;
@@ -0,0 +1,4 @@
1
+ import { DataProps } from '../interfaces';
2
+
3
+ declare function Graphs(props: DataProps): import("react/jsx-runtime").JSX.Element;
4
+ export default Graphs;
@@ -0,0 +1,8 @@
1
+ import { DataProps } from '../interfaces';
2
+
3
+ interface ProjectRecordProps extends DataProps {
4
+ recordID: string;
5
+ onHide: () => void;
6
+ }
7
+ declare function ProjectRecord(props: ProjectRecordProps): import("react/jsx-runtime").JSX.Element;
8
+ export default ProjectRecord;
@@ -0,0 +1,4 @@
1
+ import { ResultsProps } from '../interfaces';
2
+
3
+ declare function Results(props: ResultsProps): import("react/jsx-runtime").JSX.Element;
4
+ export default Results;
@@ -0,0 +1,4 @@
1
+ import { PageProps } from '../interfaces';
2
+
3
+ declare function Site(props: PageProps): import("react/jsx-runtime").JSX.Element;
4
+ export default Site;
@@ -0,0 +1,4 @@
1
+ import { PageProps } from '../interfaces';
2
+
3
+ declare function User(props: PageProps): import("react/jsx-runtime").JSX.Element;
4
+ export default User;