@opengeoweb/data-explorer 13.0.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.
Files changed (71) hide show
  1. package/README.md +100 -0
  2. package/index.d.ts +1 -0
  3. package/index.esm.js +8774 -0
  4. package/package.json +33 -0
  5. package/src/index.d.ts +5 -0
  6. package/src/lib/components/AreaFilter/AreaFilter.d.ts +11 -0
  7. package/src/lib/components/AreaFilter/AreaFilterConnect.d.ts +2 -0
  8. package/src/lib/components/AreaFilter/AreaFilterConnect.spec.d.ts +1 -0
  9. package/src/lib/components/AreaFilter/AreaFilterConnect.stories.d.ts +7 -0
  10. package/src/lib/components/AreaFilter/AreaFilterLocationSearch.d.ts +6 -0
  11. package/src/lib/components/AreaFilter/AreaFilterLocationSearch.spec.d.ts +1 -0
  12. package/src/lib/components/ConceptList/ConceptChip.d.ts +10 -0
  13. package/src/lib/components/ConceptList/ConceptChipConnect.d.ts +7 -0
  14. package/src/lib/components/ConceptList/ConceptList.d.ts +8 -0
  15. package/src/lib/components/ConceptList/ConceptListConnect.d.ts +2 -0
  16. package/src/lib/components/ConceptList/ConceptListConnect.spec.d.ts +1 -0
  17. package/src/lib/components/ConceptList/ConceptListConnect.stories.d.ts +7 -0
  18. package/src/lib/components/DataExplorer.d.ts +18 -0
  19. package/src/lib/components/DataExplorer.stories.d.ts +9 -0
  20. package/src/lib/components/DataExplorerConnect.d.ts +6 -0
  21. package/src/lib/components/DataExplorerConnect.spec.d.ts +1 -0
  22. package/src/lib/components/DataExplorerConnect.stories.d.ts +11 -0
  23. package/src/lib/components/DataExplorerFilters/DataExplorerFilterOption.d.ts +10 -0
  24. package/src/lib/components/DataExplorerFilters/DataExplorerFilters.d.ts +8 -0
  25. package/src/lib/components/DataExplorerFilters/DataExplorerFilters.stories.d.ts +7 -0
  26. package/src/lib/components/DataExplorerFilters/DataExplorerFiltersConnect.d.ts +2 -0
  27. package/src/lib/components/DataExplorerFilters/DataExplorerFiltersConnect.spec.d.ts +1 -0
  28. package/src/lib/components/DataExplorerFilters/DataExplorerSearchConnect.d.ts +2 -0
  29. package/src/lib/components/DataExplorerFilters/DataExplorerSearchConnect.spec.d.ts +1 -0
  30. package/src/lib/components/DataExplorerFilters/DataExplorerSearchConnect.stories.d.ts +7 -0
  31. package/src/lib/components/DataExplorerInfo/DataExplorerInfo.d.ts +15 -0
  32. package/src/lib/components/DataExplorerInfo/DataExplorerInfo.spec.d.ts +1 -0
  33. package/src/lib/components/DataExplorerInfo/DataExplorerInfo.stories.d.ts +7 -0
  34. package/src/lib/components/DataExplorerInfo/DataExplorerInfoButton.d.ts +7 -0
  35. package/src/lib/components/DataExplorerInfo/DataExplorerInfoButtonConnect.d.ts +8 -0
  36. package/src/lib/components/DataExplorerInfo/DataExplorerInfoConnect.d.ts +2 -0
  37. package/src/lib/components/DataExplorerInfo/InfoDialogBaseInfo.d.ts +4 -0
  38. package/src/lib/components/DataExplorerInfo/InfoDialogBaseInfo.stories.d.ts +7 -0
  39. package/src/lib/components/DataExplorerInfo/InfoDialogContacts.d.ts +4 -0
  40. package/src/lib/components/DataExplorerInfo/InfoDialogContacts.stories.d.ts +7 -0
  41. package/src/lib/components/DataExplorerInfo/InfoDialogGeographicalCoverage.d.ts +4 -0
  42. package/src/lib/components/DataExplorerInfo/InfoDialogGeographicalCoverage.stories.d.ts +7 -0
  43. package/src/lib/components/DataExplorerInfo/InfoDialogKeywords.d.ts +4 -0
  44. package/src/lib/components/DataExplorerInfo/InfoDialogKeywords.stories.d.ts +7 -0
  45. package/src/lib/components/DataExplorerInfo/InfoDialogLinks.d.ts +4 -0
  46. package/src/lib/components/DataExplorerInfo/InfoDialogLinks.stories.d.ts +7 -0
  47. package/src/lib/components/DataExplorerInfo/InfoDialogTime.d.ts +4 -0
  48. package/src/lib/components/DataExplorerInfo/InfoDialogTime.stories.d.ts +7 -0
  49. package/src/lib/components/DatasetList/DatasetAddRemoveButton.d.ts +10 -0
  50. package/src/lib/components/DatasetList/DatasetList.d.ts +10 -0
  51. package/src/lib/components/DatasetList/DatasetList.stories.d.ts +7 -0
  52. package/src/lib/components/DatasetList/DatasetListConnect.d.ts +2 -0
  53. package/src/lib/components/DatasetList/DatasetListConnect.spec.d.ts +1 -0
  54. package/src/lib/components/DatasetList/DatasetRow.d.ts +14 -0
  55. package/src/lib/components/DatasetList/DatasetRowConnect.d.ts +10 -0
  56. package/src/lib/components/DatasetList/DatasetRowConnect.spec.d.ts +1 -0
  57. package/src/lib/components/providers/Providers.d.ts +28 -0
  58. package/src/lib/components/providers/index.d.ts +1 -0
  59. package/src/lib/store/index.d.ts +4 -0
  60. package/src/lib/store/listeners.d.ts +2 -0
  61. package/src/lib/store/reducer.d.ts +12 -0
  62. package/src/lib/store/selectors.d.ts +191 -0
  63. package/src/lib/store/store.d.ts +15 -0
  64. package/src/lib/store/types.d.ts +187 -0
  65. package/src/lib/utils/dataexplorer-api/api.d.ts +7 -0
  66. package/src/lib/utils/dataexplorer-api/fakeApi.d.ts +15 -0
  67. package/src/lib/utils/dataexplorer-api/hooks.d.ts +7 -0
  68. package/src/lib/utils/i18n.d.ts +6 -0
  69. package/src/lib/utils/storyUtils.d.ts +8 -0
  70. package/src/lib/utils/timeUtils.d.ts +1 -0
  71. package/src/lib/utils/timeUtils.spec.d.ts +1 -0
@@ -0,0 +1,191 @@
1
+ import { Concept, DataExplorerModuleState, DataExplorerStoreType, Queryable, QueryableConfiguration } from './types';
2
+ export declare const getDataExplorerState: (state: DataExplorerModuleState) => DataExplorerStoreType | undefined;
3
+ export declare const getSearchFilter: ((state: DataExplorerModuleState) => string) & {
4
+ clearCache: () => void;
5
+ resultsCount: () => number;
6
+ resetResultsCount: () => void;
7
+ } & {
8
+ resultFunc: (resultFuncArgs_0: DataExplorerStoreType | undefined) => string;
9
+ memoizedResultFunc: ((resultFuncArgs_0: DataExplorerStoreType | undefined) => string) & {
10
+ clearCache: () => void;
11
+ resultsCount: () => number;
12
+ resetResultsCount: () => void;
13
+ };
14
+ lastResult: () => string;
15
+ dependencies: [(state: DataExplorerModuleState) => DataExplorerStoreType | undefined];
16
+ recomputations: () => number;
17
+ resetRecomputations: () => void;
18
+ dependencyRecomputations: () => number;
19
+ resetDependencyRecomputations: () => void;
20
+ } & {
21
+ argsMemoize: typeof import("reselect").weakMapMemoize;
22
+ memoize: typeof import("reselect").weakMapMemoize;
23
+ };
24
+ export declare const getQueryables: ((state: DataExplorerModuleState) => Queryable[]) & {
25
+ clearCache: () => void;
26
+ resultsCount: () => number;
27
+ resetResultsCount: () => void;
28
+ } & {
29
+ resultFunc: (resultFuncArgs_0: DataExplorerStoreType | undefined) => Queryable[];
30
+ memoizedResultFunc: ((resultFuncArgs_0: DataExplorerStoreType | undefined) => Queryable[]) & {
31
+ clearCache: () => void;
32
+ resultsCount: () => number;
33
+ resetResultsCount: () => void;
34
+ };
35
+ lastResult: () => Queryable[];
36
+ dependencies: [(state: DataExplorerModuleState) => DataExplorerStoreType | undefined];
37
+ recomputations: () => number;
38
+ resetRecomputations: () => void;
39
+ dependencyRecomputations: () => number;
40
+ resetDependencyRecomputations: () => void;
41
+ } & {
42
+ argsMemoize: typeof import("reselect").weakMapMemoize;
43
+ memoize: typeof import("reselect").weakMapMemoize;
44
+ };
45
+ export declare const getQueryableConfigurations: ((state: DataExplorerModuleState) => QueryableConfiguration[]) & {
46
+ clearCache: () => void;
47
+ resultsCount: () => number;
48
+ resetResultsCount: () => void;
49
+ } & {
50
+ resultFunc: (resultFuncArgs_0: DataExplorerStoreType | undefined) => QueryableConfiguration[];
51
+ memoizedResultFunc: ((resultFuncArgs_0: DataExplorerStoreType | undefined) => QueryableConfiguration[]) & {
52
+ clearCache: () => void;
53
+ resultsCount: () => number;
54
+ resetResultsCount: () => void;
55
+ };
56
+ lastResult: () => QueryableConfiguration[];
57
+ dependencies: [(state: DataExplorerModuleState) => DataExplorerStoreType | undefined];
58
+ recomputations: () => number;
59
+ resetRecomputations: () => void;
60
+ dependencyRecomputations: () => number;
61
+ resetDependencyRecomputations: () => void;
62
+ } & {
63
+ argsMemoize: typeof import("reselect").weakMapMemoize;
64
+ memoize: typeof import("reselect").weakMapMemoize;
65
+ };
66
+ export declare const getConcepts: ((state: DataExplorerModuleState) => Concept[]) & {
67
+ clearCache: () => void;
68
+ resultsCount: () => number;
69
+ resetResultsCount: () => void;
70
+ } & {
71
+ resultFunc: (resultFuncArgs_0: DataExplorerStoreType | undefined) => Concept[];
72
+ memoizedResultFunc: ((resultFuncArgs_0: DataExplorerStoreType | undefined) => Concept[]) & {
73
+ clearCache: () => void;
74
+ resultsCount: () => number;
75
+ resetResultsCount: () => void;
76
+ };
77
+ lastResult: () => Concept[];
78
+ dependencies: [(state: DataExplorerModuleState) => DataExplorerStoreType | undefined];
79
+ recomputations: () => number;
80
+ resetRecomputations: () => void;
81
+ dependencyRecomputations: () => number;
82
+ resetDependencyRecomputations: () => void;
83
+ } & {
84
+ argsMemoize: typeof import("reselect").weakMapMemoize;
85
+ memoize: typeof import("reselect").weakMapMemoize;
86
+ };
87
+ export declare const getSelectedDatasetId: ((state: DataExplorerModuleState) => string) & {
88
+ clearCache: () => void;
89
+ resultsCount: () => number;
90
+ resetResultsCount: () => void;
91
+ } & {
92
+ resultFunc: (resultFuncArgs_0: DataExplorerStoreType | undefined) => string;
93
+ memoizedResultFunc: ((resultFuncArgs_0: DataExplorerStoreType | undefined) => string) & {
94
+ clearCache: () => void;
95
+ resultsCount: () => number;
96
+ resetResultsCount: () => void;
97
+ };
98
+ lastResult: () => string;
99
+ dependencies: [(state: DataExplorerModuleState) => DataExplorerStoreType | undefined];
100
+ recomputations: () => number;
101
+ resetRecomputations: () => void;
102
+ dependencyRecomputations: () => number;
103
+ resetDependencyRecomputations: () => void;
104
+ } & {
105
+ argsMemoize: typeof import("reselect").weakMapMemoize;
106
+ memoize: typeof import("reselect").weakMapMemoize;
107
+ };
108
+ export declare const getDiscoveryCatalogueURL: ((state: DataExplorerModuleState) => string) & {
109
+ clearCache: () => void;
110
+ resultsCount: () => number;
111
+ resetResultsCount: () => void;
112
+ } & {
113
+ resultFunc: (resultFuncArgs_0: DataExplorerStoreType | undefined) => string;
114
+ memoizedResultFunc: ((resultFuncArgs_0: DataExplorerStoreType | undefined) => string) & {
115
+ clearCache: () => void;
116
+ resultsCount: () => number;
117
+ resetResultsCount: () => void;
118
+ };
119
+ lastResult: () => string;
120
+ dependencies: [(state: DataExplorerModuleState) => DataExplorerStoreType | undefined];
121
+ recomputations: () => number;
122
+ resetRecomputations: () => void;
123
+ dependencyRecomputations: () => number;
124
+ resetDependencyRecomputations: () => void;
125
+ } & {
126
+ argsMemoize: typeof import("reselect").weakMapMemoize;
127
+ memoize: typeof import("reselect").weakMapMemoize;
128
+ };
129
+ export declare const getBbox: ((state: DataExplorerModuleState) => number[]) & {
130
+ clearCache: () => void;
131
+ resultsCount: () => number;
132
+ resetResultsCount: () => void;
133
+ } & {
134
+ resultFunc: (resultFuncArgs_0: DataExplorerStoreType | undefined) => number[];
135
+ memoizedResultFunc: ((resultFuncArgs_0: DataExplorerStoreType | undefined) => number[]) & {
136
+ clearCache: () => void;
137
+ resultsCount: () => number;
138
+ resetResultsCount: () => void;
139
+ };
140
+ lastResult: () => number[];
141
+ dependencies: [(state: DataExplorerModuleState) => DataExplorerStoreType | undefined];
142
+ recomputations: () => number;
143
+ resetRecomputations: () => void;
144
+ dependencyRecomputations: () => number;
145
+ resetDependencyRecomputations: () => void;
146
+ } & {
147
+ argsMemoize: typeof import("reselect").weakMapMemoize;
148
+ memoize: typeof import("reselect").weakMapMemoize;
149
+ };
150
+ export declare const getAreaFilterTileURL: ((state: DataExplorerModuleState) => string) & {
151
+ clearCache: () => void;
152
+ resultsCount: () => number;
153
+ resetResultsCount: () => void;
154
+ } & {
155
+ resultFunc: (resultFuncArgs_0: DataExplorerStoreType | undefined) => string;
156
+ memoizedResultFunc: ((resultFuncArgs_0: DataExplorerStoreType | undefined) => string) & {
157
+ clearCache: () => void;
158
+ resultsCount: () => number;
159
+ resetResultsCount: () => void;
160
+ };
161
+ lastResult: () => string;
162
+ dependencies: [(state: DataExplorerModuleState) => DataExplorerStoreType | undefined];
163
+ recomputations: () => number;
164
+ resetRecomputations: () => void;
165
+ dependencyRecomputations: () => number;
166
+ resetDependencyRecomputations: () => void;
167
+ } & {
168
+ argsMemoize: typeof import("reselect").weakMapMemoize;
169
+ memoize: typeof import("reselect").weakMapMemoize;
170
+ };
171
+ export declare const getAreaFilterTileLicense: ((state: DataExplorerModuleState) => string) & {
172
+ clearCache: () => void;
173
+ resultsCount: () => number;
174
+ resetResultsCount: () => void;
175
+ } & {
176
+ resultFunc: (resultFuncArgs_0: DataExplorerStoreType | undefined) => string;
177
+ memoizedResultFunc: ((resultFuncArgs_0: DataExplorerStoreType | undefined) => string) & {
178
+ clearCache: () => void;
179
+ resultsCount: () => number;
180
+ resetResultsCount: () => void;
181
+ };
182
+ lastResult: () => string;
183
+ dependencies: [(state: DataExplorerModuleState) => DataExplorerStoreType | undefined];
184
+ recomputations: () => number;
185
+ resetRecomputations: () => void;
186
+ dependencyRecomputations: () => number;
187
+ resetDependencyRecomputations: () => void;
188
+ } & {
189
+ argsMemoize: typeof import("reselect").weakMapMemoize;
190
+ memoize: typeof import("reselect").weakMapMemoize;
191
+ };
@@ -0,0 +1,15 @@
1
+ import { SnackbarModuleStore } from '@opengeoweb/snackbar';
2
+ import { WebMapStateModuleState, SynchronizationGroupModuleState, UIModuleState } from '@opengeoweb/store';
3
+ import { Store } from '@reduxjs/toolkit';
4
+ import { DataExplorerModuleState } from './types';
5
+ export declare const dataExplorerReducersMap: {
6
+ webmap: import("redux").Reducer<import("dist/libs/store/src/store/map/types").WebMapState, import("redux").UnknownAction, import("dist/libs/store/src/store/map/types").WebMapState>;
7
+ services: import("redux").Reducer<import("dist/libs/store/src/store/map/types").ServiceState, import("redux").UnknownAction, import("dist/libs/store/src/store/map/types").ServiceState>;
8
+ layers: import("redux").Reducer<import("dist/libs/store/src/store/map/types").LayerState, import("redux").UnknownAction, import("dist/libs/store/src/store/map/types").LayerState>;
9
+ syncGroups: import("redux").Reducer<import("dist/libs/store/src/store/generic/syncGroups/types").SynchronizationGroupState, import("redux").UnknownAction, import("dist/libs/store/src/store/generic/syncGroups/types").SynchronizationGroupState>;
10
+ ui: import("redux").Reducer<import("dist/libs/store/src/store/ui/types").UIStoreType, import("redux").UnknownAction, import("dist/libs/store/src/store/ui/types").UIStoreType>;
11
+ dataExplorer: import("redux").Reducer<import("./types").DataExplorerStoreType>;
12
+ snackbar: import("redux").Reducer<import("dist/libs/snackbar/src/lib/store/types").SnackbarState, import("redux").UnknownAction, import("dist/libs/snackbar/src/lib/store/types").SnackbarState>;
13
+ };
14
+ export declare const dataExplorerMiddlewares: (import("@reduxjs/toolkit").ListenerMiddleware<import("@opengeoweb/store").CoreAppStore, import("redux-thunk").ThunkDispatch<import("@opengeoweb/store").CoreAppStore, unknown, import("redux").UnknownAction>, unknown> | import("@reduxjs/toolkit").ListenerMiddleware<DataExplorerModuleState, import("redux-thunk").ThunkDispatch<DataExplorerModuleState, unknown, import("redux").UnknownAction>, unknown> | import("@reduxjs/toolkit").ListenerMiddleware<SnackbarModuleStore, import("redux-thunk").ThunkDispatch<SnackbarModuleStore, unknown, import("redux").UnknownAction>, unknown>)[];
15
+ export declare const createMockStore: (mockState?: WebMapStateModuleState | SynchronizationGroupModuleState | UIModuleState | DataExplorerModuleState | SnackbarModuleStore) => Store;
@@ -0,0 +1,187 @@
1
+ export interface DiscoveryMetadataFeature {
2
+ id: string;
3
+ conformsTo: string[];
4
+ type: string;
5
+ geometry: InfoDialogGeographicalCoverageProps;
6
+ properties: {
7
+ identifier?: string;
8
+ title?: string;
9
+ description?: string;
10
+ formats?: {
11
+ name: string;
12
+ }[];
13
+ themes?: InfoDialogThemesProps[];
14
+ language?: {
15
+ code: string;
16
+ };
17
+ type?: string;
18
+ updated?: string;
19
+ created?: string;
20
+ rights?: string;
21
+ contacts: InfoDialogContactsProps[];
22
+ keywords?: string[];
23
+ 'wmo:dataPolicy': string;
24
+ };
25
+ links: InfoDialogLinksProps[];
26
+ time: InfoDialogTimeProps;
27
+ }
28
+ export interface InfoDialogBaseInfoProps {
29
+ properties: {
30
+ identifier?: string;
31
+ title?: string;
32
+ description?: string;
33
+ formats?: {
34
+ name: string;
35
+ }[];
36
+ themes?: InfoDialogThemesProps[];
37
+ language?: {
38
+ code: string;
39
+ };
40
+ type?: string;
41
+ updated?: string;
42
+ created?: string;
43
+ rights?: string;
44
+ contacts: InfoDialogContactsProps[];
45
+ keywords?: string[];
46
+ 'wmo:dataPolicy': string;
47
+ };
48
+ datasetLink: string;
49
+ id: string;
50
+ }
51
+ export interface InfoDialogGeographicalCoverageProps {
52
+ type: string;
53
+ coordinates: number[][][];
54
+ }
55
+ export interface InfoDialogTimeProps {
56
+ interval: string[];
57
+ resolution?: string;
58
+ }
59
+ export interface InfoDialogThemesAndKeywordsProps {
60
+ themes?: InfoDialogThemesProps[];
61
+ keywords?: string[];
62
+ }
63
+ export interface InfoDialogThemesProps {
64
+ concepts: {
65
+ id: string;
66
+ }[];
67
+ scheme: string;
68
+ }
69
+ export interface InfoDialogLinksProps {
70
+ href: string;
71
+ rel: string;
72
+ title: string;
73
+ type: string;
74
+ }
75
+ export interface InfoDialogContactsProps {
76
+ addresses?: {
77
+ administrativeArea?: string;
78
+ city?: string;
79
+ country?: string;
80
+ deliveryPoint?: string[];
81
+ postalCode?: string;
82
+ }[];
83
+ contactInstructions?: string;
84
+ emails?: {
85
+ value: string;
86
+ }[];
87
+ hoursOfService?: string;
88
+ links?: {
89
+ href: string;
90
+ rel: string;
91
+ type: string;
92
+ }[];
93
+ name?: string;
94
+ organization?: string;
95
+ phones?: {
96
+ value: string;
97
+ }[];
98
+ position?: string;
99
+ roles?: string[];
100
+ }
101
+ export interface DiscoveryMetadataItems {
102
+ type: string;
103
+ features: DiscoveryMetadataFeature[];
104
+ numberMatched: number;
105
+ numberReturned: number;
106
+ links: object[];
107
+ timeStamp: string;
108
+ }
109
+ export interface DataExplorerStoreType {
110
+ discoveryCatalogueURL: string;
111
+ filters: {
112
+ searchFilter: string;
113
+ queryables: Queryable[];
114
+ concepts: Concept[];
115
+ queryableConfigurations: QueryableConfiguration[];
116
+ bbox?: number[];
117
+ };
118
+ selectedDatasetId: string;
119
+ areaFilterTileURL?: string;
120
+ areaFilterTileLicense?: string;
121
+ }
122
+ export interface DataExplorerModuleState {
123
+ dataExplorer?: DataExplorerStoreType;
124
+ }
125
+ export interface SetSearchFilterPayload {
126
+ filterText: string;
127
+ }
128
+ export interface SetQueryablesPayload {
129
+ queryables: Queryable[];
130
+ }
131
+ export interface SetQueryableValuePayload {
132
+ id: string;
133
+ value: string;
134
+ checked: boolean;
135
+ }
136
+ export interface SetSelectedConceptPayload {
137
+ id: string;
138
+ }
139
+ export interface SetSelectedDatasetPayload {
140
+ id: string;
141
+ }
142
+ export interface SetBboxFilterPayload {
143
+ bbox: number[];
144
+ }
145
+ export interface Queryable {
146
+ id: string;
147
+ label: string;
148
+ values: QueryableValue[];
149
+ selected: string[];
150
+ }
151
+ export interface QueryableValue {
152
+ value: string;
153
+ datasetCount: number;
154
+ }
155
+ export interface Concept {
156
+ id: string;
157
+ label: string;
158
+ selected: boolean;
159
+ }
160
+ export declare enum DatasetFormat {
161
+ WMS = "WMS",
162
+ GeoJSON = "GeoJSON"
163
+ }
164
+ export interface AddLayerParams {
165
+ serviceUrl: string;
166
+ layerName: string;
167
+ datasetFormat: DatasetFormat;
168
+ }
169
+ export interface DeleteLayerParams {
170
+ layerId: string;
171
+ layerIndex: number;
172
+ }
173
+ export interface ConceptConfiguration {
174
+ id: string;
175
+ label: string;
176
+ }
177
+ export interface QueryableConfiguration {
178
+ id: string;
179
+ label: string;
180
+ }
181
+ export interface DataExplorerPresets {
182
+ discoveryCatalogueURL: string;
183
+ concepts: ConceptConfiguration[];
184
+ queryables: QueryableConfiguration[];
185
+ areaFilterTileURL?: string;
186
+ areaFilterTileLicense?: string;
187
+ }
@@ -0,0 +1,7 @@
1
+ import { FeatureCollection } from 'geojson';
2
+ import { Concept, DataExplorerPresets, DiscoveryMetadataFeature, DiscoveryMetadataItems, Queryable } from '../../store/types';
3
+ export declare const LIMIT = 2000;
4
+ export declare const fetchItems: (baseUrl: string, search?: string, queryables?: Queryable[], concepts?: Concept[], bbox?: number[]) => Promise<DiscoveryMetadataItems | null>;
5
+ export declare const fetchGeoJSON: (collectionUrl: string) => Promise<FeatureCollection | null>;
6
+ export declare const fetchItem: (baseUrl: string, datasetId: string) => Promise<DiscoveryMetadataFeature | null>;
7
+ export declare const getDataExplorerConfiguration: (productConfigKey: string) => Promise<DataExplorerPresets>;
@@ -0,0 +1,15 @@
1
+ import { DiscoveryMetadataItems } from '../../store/types';
2
+ export declare const testPresets: {
3
+ discoveryCatalogueURL: string;
4
+ concepts: {
5
+ id: string;
6
+ label: string;
7
+ }[];
8
+ queryables: {
9
+ id: string;
10
+ label: string;
11
+ }[];
12
+ areaFilterTileLicense: string;
13
+ };
14
+ export declare const fakeDatasets: DiscoveryMetadataItems;
15
+ export declare const dataexplorerEndpoints: import("msw").HttpHandler[];
@@ -0,0 +1,7 @@
1
+ import { UseQueryResult } from '@tanstack/react-query';
2
+ import { FeatureCollection } from 'geojson';
3
+ import { Concept, DataExplorerPresets, DiscoveryMetadataFeature, DiscoveryMetadataItems, Queryable } from '../../store/types';
4
+ export declare const useGetDataexplorerConfiguration: (productConfigKey: string) => UseQueryResult<DataExplorerPresets>;
5
+ export declare const useFetchItems: (baseUrl: string, search?: string, queryables?: Queryable[], concepts?: Concept[], bbox?: number[]) => UseQueryResult<DiscoveryMetadataItems | null>;
6
+ export declare const useFetchGeoJSON: (collectionUrl: string) => UseQueryResult<FeatureCollection | null>;
7
+ export declare const useFetchItem: (baseUrl: string, datasetId: string) => UseQueryResult<DiscoveryMetadataFeature | null>;
@@ -0,0 +1,6 @@
1
+ import i18n from 'i18next';
2
+ import { UseTranslationResponse } from 'react-i18next';
3
+ export declare const DATA_EXPLORER_NAMESPACE = "dataexplorer";
4
+ export declare const initDataExplorerI18n: () => void;
5
+ export declare const translateKeyOutsideComponents: (key: string, params?: Record<string, string | number> | undefined) => string;
6
+ export declare const useDataExplorerTranslation: () => UseTranslationResponse<typeof DATA_EXPLORER_NAMESPACE, typeof i18n>;
@@ -0,0 +1,8 @@
1
+ import { DiscoveryMetadataFeature, InfoDialogBaseInfoProps, InfoDialogContactsProps, InfoDialogGeographicalCoverageProps, InfoDialogThemesAndKeywordsProps, InfoDialogLinksProps, InfoDialogTimeProps } from '../store/types';
2
+ export declare const InfoDialogLinksMock: InfoDialogLinksProps[];
3
+ export declare const InfoDialogTimeMock: InfoDialogTimeProps;
4
+ export declare const InfoDialogKeywordsMock: InfoDialogThemesAndKeywordsProps;
5
+ export declare const InfoDialogContactsMock: InfoDialogContactsProps;
6
+ export declare const InfoDialogGeographicalCoverageMock: InfoDialogGeographicalCoverageProps;
7
+ export declare const InfoDialogBaseInfoMock: InfoDialogBaseInfoProps;
8
+ export declare const featureInfoMock: DiscoveryMetadataFeature;
@@ -0,0 +1 @@
1
+ export declare const parseISO8601Duration: (isoDuration: string) => string;
@@ -0,0 +1 @@
1
+ export {};