climb-onyx-gui 0.13.0 → 0.14.0-dev.10

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 (44) hide show
  1. package/LICENSE +674 -0
  2. package/dist/api/hooks.d.ts +11 -0
  3. package/dist/api/index.d.ts +64 -0
  4. package/dist/climb-onyx-gui.js +52253 -50383
  5. package/dist/components/Badges.d.ts +2 -0
  6. package/dist/components/Buttons.d.ts +9 -0
  7. package/dist/components/CellRenderers.d.ts +20 -0
  8. package/dist/components/DataField.d.ts +7 -0
  9. package/dist/components/DataPanel.d.ts +11 -0
  10. package/dist/components/Details.d.ts +9 -0
  11. package/dist/components/Dropdowns.d.ts +3 -5
  12. package/dist/components/ExportModal.d.ts +2 -2
  13. package/dist/components/Filter.d.ts +4 -3
  14. package/dist/components/FilterPanel.d.ts +4 -3
  15. package/dist/components/Graphs.d.ts +8 -6
  16. package/dist/components/Header.d.ts +7 -5
  17. package/dist/components/History.d.ts +9 -0
  18. package/dist/components/Inputs.d.ts +7 -1
  19. package/dist/components/JsonSearch.d.ts +9 -0
  20. package/dist/components/PageTitle.d.ts +6 -0
  21. package/dist/components/QueryHandler.d.ts +4 -3
  22. package/dist/components/ResultsPanel.d.ts +8 -7
  23. package/dist/components/SearchBar.d.ts +2 -3
  24. package/dist/components/Table.d.ts +14 -5
  25. package/dist/interfaces.d.ts +25 -11
  26. package/dist/pages/Analysis.d.ts +4 -0
  27. package/dist/pages/Graphs.d.ts +4 -0
  28. package/dist/pages/ProjectRecord.d.ts +4 -0
  29. package/dist/pages/Results.d.ts +4 -0
  30. package/dist/pages/Site.d.ts +4 -0
  31. package/dist/pages/User.d.ts +4 -0
  32. package/dist/style.css +2 -2
  33. package/dist/types.d.ts +83 -29
  34. package/dist/utils/functions.d.ts +17 -0
  35. package/dist/utils/hooks.d.ts +3 -0
  36. package/dist/utils/messages.d.ts +4 -0
  37. package/dist/utils/{graphStyles.d.ts → styles.d.ts} +4 -1
  38. package/package.json +4 -1
  39. package/dist/components/RecordModal.d.ts +0 -9
  40. package/dist/pages/Data.d.ts +0 -4
  41. package/dist/pages/Stats.d.ts +0 -4
  42. package/dist/utils/errorMessages.d.ts +0 -1
  43. package/dist/utils/generateKey.d.ts +0 -2
  44. package/dist/utils/selectStyles.d.ts +0 -4
@@ -0,0 +1,11 @@
1
+ import { ChoicesResponse, ErrorResponse, FieldsResponse, ProjectField } from '../types';
2
+
3
+ declare const useFieldsInfo: (fieldsResponse: FieldsResponse | ErrorResponse) => {
4
+ name: string;
5
+ description: string;
6
+ fields: Map<string, ProjectField>;
7
+ descriptions: Map<string, string>;
8
+ };
9
+ declare const useChoiceDescriptions: (data: ChoicesResponse | ErrorResponse) => Map<string, string>;
10
+ declare const useChoicesDescriptions: (fields: string[], data: (ChoicesResponse | ErrorResponse)[]) => Map<string, Map<string, string>>;
11
+ export { useChoiceDescriptions, useChoicesDescriptions, useFieldsInfo };
@@ -0,0 +1,64 @@
1
+ import { UseQueryResult } from '@tanstack/react-query';
2
+ import { OnyxProps, ProjectProps } from '../interfaces';
3
+ import { DetailResponse, ErrorResponse, GraphConfig, ListResponse } from '../types';
4
+
5
+ interface ChoiceProps extends ProjectProps {
6
+ field: string;
7
+ }
8
+ interface ChoicesProps extends ProjectProps {
9
+ fields: string[];
10
+ }
11
+ interface IDProps extends ProjectProps {
12
+ searchPath?: string;
13
+ ID: string;
14
+ }
15
+ interface QueryProps extends ProjectProps {
16
+ searchPath: string;
17
+ searchParameters: string;
18
+ }
19
+ interface GraphQueryProps extends ProjectProps {
20
+ graphConfig: GraphConfig;
21
+ }
22
+ /** Fetch types */
23
+ declare const useTypesQuery: (props: OnyxProps) => UseQueryResult<any, unknown>;
24
+ /** Fetch lookups */
25
+ declare const useLookupsQuery: (props: OnyxProps) => UseQueryResult<any, unknown>;
26
+ /** Fetch user profile */
27
+ declare const useProfileQuery: (props: OnyxProps) => UseQueryResult<any, unknown>;
28
+ /** Fetch user project permissions */
29
+ declare const useProjectPermissionsQuery: (props: OnyxProps) => UseQueryResult<any, unknown>;
30
+ /** Fetch project fields */
31
+ declare const useProjectFieldsQuery: (props: ProjectProps) => UseQueryResult<any, unknown>;
32
+ /** Fetch analysis fields */
33
+ declare const useAnalysisFieldsQuery: (props: ProjectProps) => UseQueryResult<any, unknown>;
34
+ /** Fetch choices for a field */
35
+ declare const useChoicesQuery: (props: ChoiceProps) => UseQueryResult<any, unknown>;
36
+ /** Fetch choices for multiple fields */
37
+ declare const useChoicesQueries: (props: ChoicesProps) => UseQueryResult<any, unknown>[];
38
+ /** Fetch user activity */
39
+ declare const useActivityQuery: (props: OnyxProps) => UseQueryResult<any, unknown>;
40
+ /** Fetch site users */
41
+ declare const useSiteUsersQuery: (props: OnyxProps) => UseQueryResult<any, unknown>;
42
+ /** Fetch history from ID */
43
+ declare const useHistoryQuery: (props: IDProps) => UseQueryResult<any, unknown>;
44
+ /** Fetch record from record ID */
45
+ declare const useRecordQuery: (props: IDProps) => UseQueryResult<DetailResponse | ErrorResponse, Error>;
46
+ /** Fetch record analyses from record ID */
47
+ declare const useRecordAnalysesQuery: (props: IDProps) => UseQueryResult<any, unknown>;
48
+ /** Fetch analysis from analysis ID */
49
+ declare const useAnalysisQuery: (props: IDProps) => UseQueryResult<DetailResponse | ErrorResponse, Error>;
50
+ /** Fetch analysis records from analysis ID */
51
+ declare const useAnalysisRecordsQuery: (props: IDProps) => UseQueryResult<any, unknown>;
52
+ /** Fetch upstream analyses from analysis ID */
53
+ declare const useAnalysisUpstreamQuery: (props: IDProps) => UseQueryResult<ListResponse | ErrorResponse, Error>;
54
+ /** Fetch downstream analyses from analysis ID */
55
+ declare const useAnalysisDownstreamQuery: (props: IDProps) => UseQueryResult<ListResponse | ErrorResponse, Error>;
56
+ /** Fetch results from path and search parameters */
57
+ declare const useResultsQuery: (props: QueryProps) => UseQueryResult<any, unknown>;
58
+ /** Fetch count from path and search parameters */
59
+ declare const useCountQuery: (props: QueryProps) => UseQueryResult<any, unknown>;
60
+ /** Fetch summary from project and field */
61
+ declare const useSummaryQuery: (props: GraphQueryProps) => UseQueryResult<any, unknown>;
62
+ /** Fetch grouped summary from project, field, and groupBy */
63
+ declare const useGroupedSummaryQuery: (props: GraphQueryProps) => UseQueryResult<any, unknown>;
64
+ export { useActivityQuery, useAnalysisDownstreamQuery, useAnalysisFieldsQuery, useAnalysisQuery, useAnalysisRecordsQuery, useAnalysisUpstreamQuery, useChoicesQueries, useChoicesQuery, useCountQuery, useGroupedSummaryQuery, useHistoryQuery, useLookupsQuery, useProfileQuery, useProjectFieldsQuery, useProjectPermissionsQuery, useRecordAnalysesQuery, useRecordQuery, useResultsQuery, useSiteUsersQuery, useSummaryQuery, useTypesQuery, };