@opengeoweb/data-explorer 21.2.0 → 21.3.0-nightly-20261127
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/README.md +11 -0
- package/dist/README.md +11 -0
- package/dist/index.esm.js +2664 -2424
- package/dist/src/index.d.ts +4 -1
- package/dist/src/lib/components/AreaFilter/AreaFilterConnect.d.ts +3 -1
- package/dist/src/lib/components/ConceptList/ConceptChipConnect.d.ts +1 -0
- package/dist/src/lib/components/ConceptList/ConceptList.d.ts +1 -0
- package/dist/src/lib/components/ConceptList/ConceptListConnect.d.ts +3 -1
- package/dist/src/lib/components/DataExplorer.d.ts +2 -0
- package/dist/src/lib/components/DataExplorerConnect.d.ts +2 -1
- package/dist/src/lib/components/DataExplorerContent.d.ts +10 -0
- package/dist/src/lib/components/DataExplorerFilters/DataExplorerFiltersConnect.d.ts +3 -1
- package/dist/src/lib/components/DataExplorerFilters/DataExplorerSearchConnect.d.ts +3 -1
- package/dist/src/lib/components/DataExplorerInfo/DataExplorerInfoButtonConnect.d.ts +1 -0
- package/dist/src/lib/components/DataExplorerPanelContent.d.ts +13 -0
- package/dist/src/lib/components/DatasetActionsContext.d.ts +19 -0
- package/dist/src/lib/components/DatasetList/DatasetList.d.ts +3 -0
- package/dist/src/lib/components/DatasetList/DatasetListConnect.d.ts +5 -1
- package/dist/src/lib/components/DatasetList/DatasetRow.d.ts +1 -0
- package/dist/src/lib/components/DatasetList/DatasetRowConnect.d.ts +3 -0
- package/dist/src/lib/components/useDataExplorer.d.ts +5 -0
- package/dist/src/lib/store/reducer.d.ts +7 -6
- package/dist/src/lib/store/selectors.d.ts +47 -67
- package/dist/src/lib/store/types.d.ts +27 -25
- package/dist/src/lib/utils/dataexplorer-api/hooks.d.ts +0 -2
- package/package.json +11 -11
package/dist/src/index.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import dataExplorerTranslations from '../locales/dataexplorer.json';
|
|
2
2
|
export { DataExplorerConnect } from './lib/components/DataExplorerConnect';
|
|
3
|
-
export type { DatasetTimeseriesRequest, AddDatasetTimeseries, } from './lib/components/DatasetActionsContext';
|
|
3
|
+
export type { DatasetMapLayerRequest, AddDatasetMapLayer, DatasetTimeseriesRequest, AddDatasetTimeseries, DatasetMapLayerRemovalRequest, RemoveDatasetMapLayer, } from './lib/components/DatasetActionsContext';
|
|
4
4
|
export { dataExplorerMiddlewares, dataExplorerReducersMap, DataExplorerTypes, } from './lib/store';
|
|
5
5
|
export { DATA_EXPLORER_NAMESPACE } from './lib/utils/i18n';
|
|
6
6
|
export { dataExplorerTranslations };
|
|
7
|
+
export { DataExplorerPanelContent } from './lib/components/DataExplorerPanelContent';
|
|
8
|
+
export { DATA_EXPLORER_DIALOG_VIEW_ID, dataExplorerActions, dataExplorerSelectors, } from './lib/store';
|
|
9
|
+
export type { DataExplorerLookUpPayload, DataExplorerPreset, } from './lib/store/types';
|
|
@@ -2,6 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import type { Position, HeaderSize } from '@opengeoweb/shared';
|
|
3
3
|
import type { uiTypes } from '@opengeoweb/store';
|
|
4
4
|
interface DataExplorerProps {
|
|
5
|
+
viewId: string;
|
|
6
|
+
targetMapId: string;
|
|
5
7
|
bounds?: string;
|
|
6
8
|
onClose: () => void;
|
|
7
9
|
onMouseDown?: () => void;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { AddDatasetTimeseries } from './DatasetActionsContext';
|
|
2
|
+
import type { AddDatasetTimeseries, AddDatasetMapLayer } from './DatasetActionsContext';
|
|
3
3
|
interface Props {
|
|
4
4
|
productConfigKey: string;
|
|
5
5
|
onAddTimeseries?: AddDatasetTimeseries;
|
|
6
|
+
onAddMapLayer?: AddDatasetMapLayer;
|
|
6
7
|
}
|
|
7
8
|
export declare const DataExplorerConnect: React.FC<Props>;
|
|
8
9
|
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface DataExplorerContentProps {
|
|
3
|
+
viewId: string;
|
|
4
|
+
targetMapId: string;
|
|
5
|
+
targetMapIds?: string[];
|
|
6
|
+
loading?: boolean;
|
|
7
|
+
error?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const DataExplorerContent: React.FC<DataExplorerContentProps>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { AddDatasetTimeseries, AddDatasetMapLayer, RemoveDatasetMapLayer } from './DatasetActionsContext';
|
|
3
|
+
interface DataExplorerPanelProps {
|
|
4
|
+
viewId: string;
|
|
5
|
+
targetMapId: string;
|
|
6
|
+
targetMapIds?: string[];
|
|
7
|
+
productConfigKey: string;
|
|
8
|
+
onAddTimeseries?: AddDatasetTimeseries;
|
|
9
|
+
onAddMapLayer?: AddDatasetMapLayer;
|
|
10
|
+
onRemoveMapLayer?: RemoveDatasetMapLayer;
|
|
11
|
+
}
|
|
12
|
+
export declare const DataExplorerPanelContent: React.FC<DataExplorerPanelProps>;
|
|
13
|
+
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import type { layerTypes } from '@opengeoweb/store';
|
|
2
3
|
import type { InfoDialogLinksProps } from '../store/types';
|
|
3
4
|
export interface DatasetTimeseriesRequest {
|
|
4
5
|
title: string;
|
|
@@ -6,12 +7,30 @@ export interface DatasetTimeseriesRequest {
|
|
|
6
7
|
targetMapId?: string;
|
|
7
8
|
}
|
|
8
9
|
export type AddDatasetTimeseries = (request: DatasetTimeseriesRequest) => Promise<void>;
|
|
10
|
+
export interface DatasetMapLayerRequest {
|
|
11
|
+
title: string;
|
|
12
|
+
targetMapId?: string;
|
|
13
|
+
createLayer: () => Promise<layerTypes.Layer>;
|
|
14
|
+
}
|
|
15
|
+
/** Resolves the destination, adds the layer, and returns the selected map ID. */
|
|
16
|
+
export type AddDatasetMapLayer = (request: DatasetMapLayerRequest) => Promise<string | undefined>;
|
|
17
|
+
export interface DatasetMapLayerRemovalRequest {
|
|
18
|
+
targetMapIds: string[];
|
|
19
|
+
layerName: string;
|
|
20
|
+
serviceUrl: string;
|
|
21
|
+
}
|
|
22
|
+
export type RemoveDatasetMapLayer = (request: DatasetMapLayerRemovalRequest) => void;
|
|
9
23
|
interface DatasetActions {
|
|
10
24
|
addTimeseries?: AddDatasetTimeseries;
|
|
25
|
+
addMapLayer?: AddDatasetMapLayer;
|
|
26
|
+
removeMapLayer?: RemoveDatasetMapLayer;
|
|
27
|
+
isAddingMapLayer: boolean;
|
|
11
28
|
isAddingTimeseries: boolean;
|
|
12
29
|
}
|
|
13
30
|
export declare const DatasetActionsProvider: React.FC<{
|
|
14
31
|
onAddTimeseries?: AddDatasetTimeseries;
|
|
32
|
+
onAddMapLayer?: AddDatasetMapLayer;
|
|
33
|
+
onRemoveMapLayer?: RemoveDatasetMapLayer;
|
|
15
34
|
children: React.ReactNode;
|
|
16
35
|
}>;
|
|
17
36
|
export declare const useDatasetActions: () => DatasetActions;
|
|
@@ -2,6 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import type { layerTypes } from '@opengeoweb/store';
|
|
3
3
|
import type { DiscoveryMetadataItems } from '../../store/types';
|
|
4
4
|
interface DatasetListProps {
|
|
5
|
+
viewId: string;
|
|
6
|
+
targetMapId: string;
|
|
7
|
+
targetMapIds?: string[];
|
|
5
8
|
datasets?: DiscoveryMetadataItems | null;
|
|
6
9
|
mapLayers: layerTypes.Layer[];
|
|
7
10
|
searchFilter: string;
|
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import type { layerTypes } from '@opengeoweb/store';
|
|
3
3
|
import type { DiscoveryMetadataFeature } from '../../store/types';
|
|
4
4
|
interface DatasetRowProps {
|
|
5
|
+
viewId: string;
|
|
5
6
|
addLayer: () => void;
|
|
6
7
|
deleteLayer: () => void;
|
|
7
8
|
feature: DiscoveryMetadataFeature;
|
|
@@ -2,6 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { layerTypes } from '@opengeoweb/store';
|
|
3
3
|
import type { DiscoveryMetadataFeature } from '../../store/types';
|
|
4
4
|
interface DatasetRowConnectProps {
|
|
5
|
+
viewId: string;
|
|
6
|
+
targetMapId: string;
|
|
7
|
+
targetMapIds: string[];
|
|
5
8
|
feature: DiscoveryMetadataFeature;
|
|
6
9
|
mapLayers: layerTypes.Layer[];
|
|
7
10
|
searchFilter: string;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import type { Draft, PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
-
import type { DataExplorerStoreType, DataExplorerPresets, SetSelectedDatasetPayload, SetQueryablesPayload, SetQueryableValuePayload, SetSearchFilterPayload, SetSelectedConceptPayload,
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
2
|
+
import type { DataExplorerStoreType, DataExplorerViewPayload, DataExplorerPresets, SetSelectedDatasetPayload, SetQueryablesPayload, SetQueryableValuePayload, SetSearchFilterPayload, SetSelectedConceptPayload, SetBboxFilterPayload, SetMeteogateOnlyPayload } from './types';
|
|
3
|
+
export declare const DATA_EXPLORER_DIALOG_VIEW_ID = "dataExplorerDialog";
|
|
4
|
+
export declare const dataExplorerActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
5
|
+
registerView: (draft: Draft<DataExplorerStoreType>, action: PayloadAction<DataExplorerViewPayload>) => void;
|
|
6
|
+
unregisterView: (draft: Draft<DataExplorerStoreType>, action: PayloadAction<DataExplorerViewPayload>) => void;
|
|
5
7
|
setSearchFilter: (draft: Draft<DataExplorerStoreType>, action: PayloadAction<SetSearchFilterPayload>) => void;
|
|
6
8
|
setQueryables: (draft: Draft<DataExplorerStoreType>, action: PayloadAction<SetQueryablesPayload>) => void;
|
|
7
9
|
setQueryableValue: (draft: Draft<DataExplorerStoreType>, action: PayloadAction<SetQueryableValuePayload>) => void;
|
|
8
10
|
setSelectedDatasetId: (draft: Draft<DataExplorerStoreType>, action: PayloadAction<SetSelectedDatasetPayload>) => void;
|
|
9
11
|
setSelectedConcept: (draft: Draft<DataExplorerStoreType>, action: PayloadAction<SetSelectedConceptPayload>) => void;
|
|
10
|
-
setDataExplorerConfiguration: (draft: Draft<DataExplorerStoreType>, action: PayloadAction<DataExplorerPresets>) => void;
|
|
11
|
-
setWMSbox: (draft: Draft<DataExplorerStoreType>, action: PayloadAction<SetWMSboxFilterPayload>) => void;
|
|
12
|
+
setDataExplorerConfiguration: (draft: Draft<DataExplorerStoreType>, action: PayloadAction<DataExplorerPresets & DataExplorerViewPayload>) => void;
|
|
12
13
|
setBbox: (draft: Draft<DataExplorerStoreType>, action: PayloadAction<SetBboxFilterPayload>) => void;
|
|
13
14
|
setMeteogateOnly: (draft: Draft<DataExplorerStoreType>, action: PayloadAction<SetMeteogateOnlyPayload>) => void;
|
|
14
|
-
}, "dataexplorer">;
|
|
15
|
+
}, "dataexplorer">, dataExplorerReducer: import("redux").Reducer<DataExplorerStoreType>;
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import type { Concept, DataExplorerModuleState, DataExplorerStoreType, Queryable, QueryableConfiguration } from './types';
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
1
|
+
import type { Concept, DataExplorerModuleState, DataExplorerStoreType, DataExplorerViewState, Queryable, QueryableConfiguration } from './types';
|
|
2
|
+
export declare const getDataExplorerView: (state: DataExplorerModuleState, viewId: string) => DataExplorerViewState | undefined;
|
|
3
|
+
export declare const getInfoSelection: (state: DataExplorerModuleState) => DataExplorerStoreType["infoSelection"];
|
|
4
|
+
export declare const getSearchFilter: ((state: DataExplorerModuleState, viewId: string) => string) & {
|
|
4
5
|
clearCache: () => void;
|
|
5
6
|
resultsCount: () => number;
|
|
6
7
|
resetResultsCount: () => void;
|
|
7
8
|
} & {
|
|
8
|
-
resultFunc: (resultFuncArgs_0:
|
|
9
|
-
memoizedResultFunc: ((resultFuncArgs_0:
|
|
9
|
+
resultFunc: (resultFuncArgs_0: DataExplorerViewState | undefined) => string;
|
|
10
|
+
memoizedResultFunc: ((resultFuncArgs_0: DataExplorerViewState | undefined) => string) & {
|
|
10
11
|
clearCache: () => void;
|
|
11
12
|
resultsCount: () => number;
|
|
12
13
|
resetResultsCount: () => void;
|
|
13
14
|
};
|
|
14
15
|
lastResult: () => string;
|
|
15
|
-
dependencies: [(state: DataExplorerModuleState) =>
|
|
16
|
+
dependencies: [(state: DataExplorerModuleState, viewId: string) => DataExplorerViewState | undefined];
|
|
16
17
|
recomputations: () => number;
|
|
17
18
|
resetRecomputations: () => void;
|
|
18
19
|
dependencyRecomputations: () => number;
|
|
@@ -21,19 +22,19 @@ export declare const getSearchFilter: ((state: DataExplorerModuleState) => strin
|
|
|
21
22
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
22
23
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
23
24
|
};
|
|
24
|
-
export declare const getQueryables: ((state: DataExplorerModuleState) => Queryable[]) & {
|
|
25
|
+
export declare const getQueryables: ((state: DataExplorerModuleState, viewId: string) => Queryable[]) & {
|
|
25
26
|
clearCache: () => void;
|
|
26
27
|
resultsCount: () => number;
|
|
27
28
|
resetResultsCount: () => void;
|
|
28
29
|
} & {
|
|
29
|
-
resultFunc: (resultFuncArgs_0:
|
|
30
|
-
memoizedResultFunc: ((resultFuncArgs_0:
|
|
30
|
+
resultFunc: (resultFuncArgs_0: DataExplorerViewState | undefined) => Queryable[];
|
|
31
|
+
memoizedResultFunc: ((resultFuncArgs_0: DataExplorerViewState | undefined) => Queryable[]) & {
|
|
31
32
|
clearCache: () => void;
|
|
32
33
|
resultsCount: () => number;
|
|
33
34
|
resetResultsCount: () => void;
|
|
34
35
|
};
|
|
35
36
|
lastResult: () => Queryable[];
|
|
36
|
-
dependencies: [(state: DataExplorerModuleState) =>
|
|
37
|
+
dependencies: [(state: DataExplorerModuleState, viewId: string) => DataExplorerViewState | undefined];
|
|
37
38
|
recomputations: () => number;
|
|
38
39
|
resetRecomputations: () => void;
|
|
39
40
|
dependencyRecomputations: () => number;
|
|
@@ -42,19 +43,19 @@ export declare const getQueryables: ((state: DataExplorerModuleState) => Queryab
|
|
|
42
43
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
43
44
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
44
45
|
};
|
|
45
|
-
export declare const getQueryableConfigurations: ((state: DataExplorerModuleState) => QueryableConfiguration[]) & {
|
|
46
|
+
export declare const getQueryableConfigurations: ((state: DataExplorerModuleState, viewId: string) => QueryableConfiguration[]) & {
|
|
46
47
|
clearCache: () => void;
|
|
47
48
|
resultsCount: () => number;
|
|
48
49
|
resetResultsCount: () => void;
|
|
49
50
|
} & {
|
|
50
|
-
resultFunc: (resultFuncArgs_0:
|
|
51
|
-
memoizedResultFunc: ((resultFuncArgs_0:
|
|
51
|
+
resultFunc: (resultFuncArgs_0: DataExplorerViewState | undefined) => QueryableConfiguration[];
|
|
52
|
+
memoizedResultFunc: ((resultFuncArgs_0: DataExplorerViewState | undefined) => QueryableConfiguration[]) & {
|
|
52
53
|
clearCache: () => void;
|
|
53
54
|
resultsCount: () => number;
|
|
54
55
|
resetResultsCount: () => void;
|
|
55
56
|
};
|
|
56
57
|
lastResult: () => QueryableConfiguration[];
|
|
57
|
-
dependencies: [(state: DataExplorerModuleState) =>
|
|
58
|
+
dependencies: [(state: DataExplorerModuleState, viewId: string) => DataExplorerViewState | undefined];
|
|
58
59
|
recomputations: () => number;
|
|
59
60
|
resetRecomputations: () => void;
|
|
60
61
|
dependencyRecomputations: () => number;
|
|
@@ -63,19 +64,19 @@ export declare const getQueryableConfigurations: ((state: DataExplorerModuleStat
|
|
|
63
64
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
64
65
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
65
66
|
};
|
|
66
|
-
export declare const getConcepts: ((state: DataExplorerModuleState) => Concept[]) & {
|
|
67
|
+
export declare const getConcepts: ((state: DataExplorerModuleState, viewId: string) => Concept[]) & {
|
|
67
68
|
clearCache: () => void;
|
|
68
69
|
resultsCount: () => number;
|
|
69
70
|
resetResultsCount: () => void;
|
|
70
71
|
} & {
|
|
71
|
-
resultFunc: (resultFuncArgs_0:
|
|
72
|
-
memoizedResultFunc: ((resultFuncArgs_0:
|
|
72
|
+
resultFunc: (resultFuncArgs_0: DataExplorerViewState | undefined) => Concept[];
|
|
73
|
+
memoizedResultFunc: ((resultFuncArgs_0: DataExplorerViewState | undefined) => Concept[]) & {
|
|
73
74
|
clearCache: () => void;
|
|
74
75
|
resultsCount: () => number;
|
|
75
76
|
resetResultsCount: () => void;
|
|
76
77
|
};
|
|
77
78
|
lastResult: () => Concept[];
|
|
78
|
-
dependencies: [(state: DataExplorerModuleState) =>
|
|
79
|
+
dependencies: [(state: DataExplorerModuleState, viewId: string) => DataExplorerViewState | undefined];
|
|
79
80
|
recomputations: () => number;
|
|
80
81
|
resetRecomputations: () => void;
|
|
81
82
|
dependencyRecomputations: () => number;
|
|
@@ -84,19 +85,19 @@ export declare const getConcepts: ((state: DataExplorerModuleState) => Concept[]
|
|
|
84
85
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
85
86
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
86
87
|
};
|
|
87
|
-
export declare const getSelectedDatasetId: ((state: DataExplorerModuleState) => string) & {
|
|
88
|
+
export declare const getSelectedDatasetId: ((state: DataExplorerModuleState, viewId: string) => string) & {
|
|
88
89
|
clearCache: () => void;
|
|
89
90
|
resultsCount: () => number;
|
|
90
91
|
resetResultsCount: () => void;
|
|
91
92
|
} & {
|
|
92
|
-
resultFunc: (resultFuncArgs_0:
|
|
93
|
-
memoizedResultFunc: ((resultFuncArgs_0:
|
|
93
|
+
resultFunc: (resultFuncArgs_0: DataExplorerViewState | undefined) => string;
|
|
94
|
+
memoizedResultFunc: ((resultFuncArgs_0: DataExplorerViewState | undefined) => string) & {
|
|
94
95
|
clearCache: () => void;
|
|
95
96
|
resultsCount: () => number;
|
|
96
97
|
resetResultsCount: () => void;
|
|
97
98
|
};
|
|
98
99
|
lastResult: () => string;
|
|
99
|
-
dependencies: [(state: DataExplorerModuleState) =>
|
|
100
|
+
dependencies: [(state: DataExplorerModuleState, viewId: string) => DataExplorerViewState | undefined];
|
|
100
101
|
recomputations: () => number;
|
|
101
102
|
resetRecomputations: () => void;
|
|
102
103
|
dependencyRecomputations: () => number;
|
|
@@ -105,19 +106,19 @@ export declare const getSelectedDatasetId: ((state: DataExplorerModuleState) =>
|
|
|
105
106
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
106
107
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
107
108
|
};
|
|
108
|
-
export declare const getDiscoveryCatalogueURL: ((state: DataExplorerModuleState) => string) & {
|
|
109
|
+
export declare const getDiscoveryCatalogueURL: ((state: DataExplorerModuleState, viewId: string) => string) & {
|
|
109
110
|
clearCache: () => void;
|
|
110
111
|
resultsCount: () => number;
|
|
111
112
|
resetResultsCount: () => void;
|
|
112
113
|
} & {
|
|
113
|
-
resultFunc: (resultFuncArgs_0:
|
|
114
|
-
memoizedResultFunc: ((resultFuncArgs_0:
|
|
114
|
+
resultFunc: (resultFuncArgs_0: DataExplorerViewState | undefined) => string;
|
|
115
|
+
memoizedResultFunc: ((resultFuncArgs_0: DataExplorerViewState | undefined) => string) & {
|
|
115
116
|
clearCache: () => void;
|
|
116
117
|
resultsCount: () => number;
|
|
117
118
|
resetResultsCount: () => void;
|
|
118
119
|
};
|
|
119
120
|
lastResult: () => string;
|
|
120
|
-
dependencies: [(state: DataExplorerModuleState) =>
|
|
121
|
+
dependencies: [(state: DataExplorerModuleState, viewId: string) => DataExplorerViewState | undefined];
|
|
121
122
|
recomputations: () => number;
|
|
122
123
|
resetRecomputations: () => void;
|
|
123
124
|
dependencyRecomputations: () => number;
|
|
@@ -126,19 +127,19 @@ export declare const getDiscoveryCatalogueURL: ((state: DataExplorerModuleState)
|
|
|
126
127
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
127
128
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
128
129
|
};
|
|
129
|
-
export declare const
|
|
130
|
+
export declare const getBbox: ((state: DataExplorerModuleState, viewId: string) => number[]) & {
|
|
130
131
|
clearCache: () => void;
|
|
131
132
|
resultsCount: () => number;
|
|
132
133
|
resetResultsCount: () => void;
|
|
133
134
|
} & {
|
|
134
|
-
resultFunc: (resultFuncArgs_0:
|
|
135
|
-
memoizedResultFunc: ((resultFuncArgs_0:
|
|
135
|
+
resultFunc: (resultFuncArgs_0: DataExplorerViewState | undefined) => number[];
|
|
136
|
+
memoizedResultFunc: ((resultFuncArgs_0: DataExplorerViewState | undefined) => number[]) & {
|
|
136
137
|
clearCache: () => void;
|
|
137
138
|
resultsCount: () => number;
|
|
138
139
|
resetResultsCount: () => void;
|
|
139
140
|
};
|
|
140
141
|
lastResult: () => number[];
|
|
141
|
-
dependencies: [(state: DataExplorerModuleState) =>
|
|
142
|
+
dependencies: [(state: DataExplorerModuleState, viewId: string) => DataExplorerViewState | undefined];
|
|
142
143
|
recomputations: () => number;
|
|
143
144
|
resetRecomputations: () => void;
|
|
144
145
|
dependencyRecomputations: () => number;
|
|
@@ -147,40 +148,19 @@ export declare const getWMSbox: ((state: DataExplorerModuleState) => number[]) &
|
|
|
147
148
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
148
149
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
149
150
|
};
|
|
150
|
-
export declare const
|
|
151
|
+
export declare const getAreaFilterTileURL: ((state: DataExplorerModuleState, viewId: string) => string) & {
|
|
151
152
|
clearCache: () => void;
|
|
152
153
|
resultsCount: () => number;
|
|
153
154
|
resetResultsCount: () => void;
|
|
154
155
|
} & {
|
|
155
|
-
resultFunc: (resultFuncArgs_0:
|
|
156
|
-
memoizedResultFunc: ((resultFuncArgs_0:
|
|
157
|
-
clearCache: () => void;
|
|
158
|
-
resultsCount: () => number;
|
|
159
|
-
resetResultsCount: () => void;
|
|
160
|
-
};
|
|
161
|
-
lastResult: () => number[];
|
|
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 getAreaFilterTileURL: ((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) & {
|
|
156
|
+
resultFunc: (resultFuncArgs_0: DataExplorerViewState | undefined) => string;
|
|
157
|
+
memoizedResultFunc: ((resultFuncArgs_0: DataExplorerViewState | undefined) => string) & {
|
|
178
158
|
clearCache: () => void;
|
|
179
159
|
resultsCount: () => number;
|
|
180
160
|
resetResultsCount: () => void;
|
|
181
161
|
};
|
|
182
162
|
lastResult: () => string;
|
|
183
|
-
dependencies: [(state: DataExplorerModuleState) =>
|
|
163
|
+
dependencies: [(state: DataExplorerModuleState, viewId: string) => DataExplorerViewState | undefined];
|
|
184
164
|
recomputations: () => number;
|
|
185
165
|
resetRecomputations: () => void;
|
|
186
166
|
dependencyRecomputations: () => number;
|
|
@@ -189,19 +169,19 @@ export declare const getAreaFilterTileURL: ((state: DataExplorerModuleState) =>
|
|
|
189
169
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
190
170
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
191
171
|
};
|
|
192
|
-
export declare const getAreaFilterTileLicense: ((state: DataExplorerModuleState) => string) & {
|
|
172
|
+
export declare const getAreaFilterTileLicense: ((state: DataExplorerModuleState, viewId: string) => string) & {
|
|
193
173
|
clearCache: () => void;
|
|
194
174
|
resultsCount: () => number;
|
|
195
175
|
resetResultsCount: () => void;
|
|
196
176
|
} & {
|
|
197
|
-
resultFunc: (resultFuncArgs_0:
|
|
198
|
-
memoizedResultFunc: ((resultFuncArgs_0:
|
|
177
|
+
resultFunc: (resultFuncArgs_0: DataExplorerViewState | undefined) => string;
|
|
178
|
+
memoizedResultFunc: ((resultFuncArgs_0: DataExplorerViewState | undefined) => string) & {
|
|
199
179
|
clearCache: () => void;
|
|
200
180
|
resultsCount: () => number;
|
|
201
181
|
resetResultsCount: () => void;
|
|
202
182
|
};
|
|
203
183
|
lastResult: () => string;
|
|
204
|
-
dependencies: [(state: DataExplorerModuleState) =>
|
|
184
|
+
dependencies: [(state: DataExplorerModuleState, viewId: string) => DataExplorerViewState | undefined];
|
|
205
185
|
recomputations: () => number;
|
|
206
186
|
resetRecomputations: () => void;
|
|
207
187
|
dependencyRecomputations: () => number;
|
|
@@ -210,19 +190,19 @@ export declare const getAreaFilterTileLicense: ((state: DataExplorerModuleState)
|
|
|
210
190
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
211
191
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
212
192
|
};
|
|
213
|
-
export declare const getMeteogateOnly: ((state: DataExplorerModuleState) => boolean) & {
|
|
193
|
+
export declare const getMeteogateOnly: ((state: DataExplorerModuleState, viewId: string) => boolean) & {
|
|
214
194
|
clearCache: () => void;
|
|
215
195
|
resultsCount: () => number;
|
|
216
196
|
resetResultsCount: () => void;
|
|
217
197
|
} & {
|
|
218
|
-
resultFunc: (resultFuncArgs_0:
|
|
219
|
-
memoizedResultFunc: ((resultFuncArgs_0:
|
|
198
|
+
resultFunc: (resultFuncArgs_0: DataExplorerViewState | undefined) => boolean;
|
|
199
|
+
memoizedResultFunc: ((resultFuncArgs_0: DataExplorerViewState | undefined) => boolean) & {
|
|
220
200
|
clearCache: () => void;
|
|
221
201
|
resultsCount: () => number;
|
|
222
202
|
resetResultsCount: () => void;
|
|
223
203
|
};
|
|
224
204
|
lastResult: () => boolean;
|
|
225
|
-
dependencies: [(state: DataExplorerModuleState) =>
|
|
205
|
+
dependencies: [(state: DataExplorerModuleState, viewId: string) => DataExplorerViewState | undefined];
|
|
226
206
|
recomputations: () => number;
|
|
227
207
|
resetRecomputations: () => void;
|
|
228
208
|
dependencyRecomputations: () => number;
|
|
@@ -231,19 +211,19 @@ export declare const getMeteogateOnly: ((state: DataExplorerModuleState) => bool
|
|
|
231
211
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
232
212
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
233
213
|
};
|
|
234
|
-
export declare const getShowMeteoGateBranding: ((state: DataExplorerModuleState) => boolean) & {
|
|
214
|
+
export declare const getShowMeteoGateBranding: ((state: DataExplorerModuleState, viewId: string) => boolean) & {
|
|
235
215
|
clearCache: () => void;
|
|
236
216
|
resultsCount: () => number;
|
|
237
217
|
resetResultsCount: () => void;
|
|
238
218
|
} & {
|
|
239
|
-
resultFunc: (resultFuncArgs_0:
|
|
240
|
-
memoizedResultFunc: ((resultFuncArgs_0:
|
|
219
|
+
resultFunc: (resultFuncArgs_0: DataExplorerViewState | undefined) => boolean;
|
|
220
|
+
memoizedResultFunc: ((resultFuncArgs_0: DataExplorerViewState | undefined) => boolean) & {
|
|
241
221
|
clearCache: () => void;
|
|
242
222
|
resultsCount: () => number;
|
|
243
223
|
resetResultsCount: () => void;
|
|
244
224
|
};
|
|
245
225
|
lastResult: () => boolean;
|
|
246
|
-
dependencies: [(state: DataExplorerModuleState) =>
|
|
226
|
+
dependencies: [(state: DataExplorerModuleState, viewId: string) => DataExplorerViewState | undefined];
|
|
247
227
|
recomputations: () => number;
|
|
248
228
|
resetRecomputations: () => void;
|
|
249
229
|
dependencyRecomputations: () => number;
|
|
@@ -106,19 +106,7 @@ export interface DiscoveryMetadataItems {
|
|
|
106
106
|
links: InfoDialogLinksProps[];
|
|
107
107
|
timeStamp?: string;
|
|
108
108
|
}
|
|
109
|
-
export interface
|
|
110
|
-
geometry: {
|
|
111
|
-
type: string;
|
|
112
|
-
coordinates: number[][][] | number[][][][];
|
|
113
|
-
};
|
|
114
|
-
links: {
|
|
115
|
-
href: string;
|
|
116
|
-
rel: string;
|
|
117
|
-
title?: string;
|
|
118
|
-
type: string;
|
|
119
|
-
}[];
|
|
120
|
-
}
|
|
121
|
-
export interface DataExplorerStoreType {
|
|
109
|
+
export interface DataExplorerViewState {
|
|
122
110
|
discoveryCatalogueURL: string;
|
|
123
111
|
showMeteoGateBranding?: boolean;
|
|
124
112
|
filters: {
|
|
@@ -126,39 +114,48 @@ export interface DataExplorerStoreType {
|
|
|
126
114
|
queryables: Queryable[];
|
|
127
115
|
concepts: Concept[];
|
|
128
116
|
queryableConfigurations: QueryableConfiguration[];
|
|
129
|
-
wmsbox?: number[];
|
|
130
117
|
bbox?: number[];
|
|
131
118
|
meteogateOnly?: boolean;
|
|
132
119
|
};
|
|
133
120
|
selectedDatasetId: string;
|
|
134
121
|
areaFilterTileURL?: string;
|
|
135
122
|
areaFilterTileLicense?: string;
|
|
136
|
-
|
|
123
|
+
}
|
|
124
|
+
export interface DataExplorerStoreType {
|
|
125
|
+
byId: Record<string, DataExplorerViewState>;
|
|
126
|
+
infoSelection?: {
|
|
127
|
+
viewId: string;
|
|
128
|
+
id: string;
|
|
129
|
+
baseUrl: string;
|
|
130
|
+
};
|
|
137
131
|
}
|
|
138
132
|
export interface DataExplorerModuleState {
|
|
139
133
|
dataExplorer?: DataExplorerStoreType;
|
|
140
134
|
}
|
|
141
|
-
export interface
|
|
135
|
+
export interface DataExplorerViewPayload {
|
|
136
|
+
viewId: string;
|
|
137
|
+
}
|
|
138
|
+
export interface SetSearchFilterPayload extends DataExplorerViewPayload {
|
|
142
139
|
filterText: string;
|
|
143
140
|
}
|
|
144
|
-
export interface SetQueryablesPayload {
|
|
141
|
+
export interface SetQueryablesPayload extends DataExplorerViewPayload {
|
|
145
142
|
queryables: Queryable[];
|
|
146
143
|
}
|
|
147
|
-
export interface SetQueryableValuePayload {
|
|
144
|
+
export interface SetQueryableValuePayload extends DataExplorerViewPayload {
|
|
148
145
|
id: string;
|
|
149
146
|
value: string;
|
|
150
147
|
checked: boolean;
|
|
151
148
|
}
|
|
152
|
-
export interface SetSelectedConceptPayload {
|
|
149
|
+
export interface SetSelectedConceptPayload extends DataExplorerViewPayload {
|
|
153
150
|
id: string;
|
|
154
151
|
}
|
|
155
|
-
export interface SetSelectedDatasetPayload {
|
|
152
|
+
export interface SetSelectedDatasetPayload extends DataExplorerViewPayload {
|
|
156
153
|
id: string;
|
|
157
154
|
}
|
|
158
|
-
export interface SetBboxFilterPayload {
|
|
155
|
+
export interface SetBboxFilterPayload extends DataExplorerViewPayload {
|
|
159
156
|
bbox: number[];
|
|
160
157
|
}
|
|
161
|
-
export interface SetMeteogateOnlyPayload {
|
|
158
|
+
export interface SetMeteogateOnlyPayload extends DataExplorerViewPayload {
|
|
162
159
|
enabled: boolean;
|
|
163
160
|
}
|
|
164
161
|
export interface Queryable {
|
|
@@ -167,9 +164,6 @@ export interface Queryable {
|
|
|
167
164
|
values: QueryableValue[];
|
|
168
165
|
selected: string[];
|
|
169
166
|
}
|
|
170
|
-
export interface SetWMSboxFilterPayload {
|
|
171
|
-
wmsBox: number[];
|
|
172
|
-
}
|
|
173
167
|
export interface QueryableValue {
|
|
174
168
|
value: string;
|
|
175
169
|
datasetCount: number;
|
|
@@ -208,3 +202,11 @@ export interface DataExplorerPresets {
|
|
|
208
202
|
areaFilterTileURL?: string;
|
|
209
203
|
areaFilterTileLicense?: string;
|
|
210
204
|
}
|
|
205
|
+
export type DataExplorerPreset = Record<string, never>;
|
|
206
|
+
export interface DataExplorerLookUpPayload {
|
|
207
|
+
componentType: 'DataExplorer';
|
|
208
|
+
id: string;
|
|
209
|
+
initialProps?: {
|
|
210
|
+
dataExplorerPreset?: DataExplorerPreset;
|
|
211
|
+
};
|
|
212
|
+
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import type { UseQueryResult } from '@tanstack/react-query';
|
|
2
|
-
import type { FeatureCollection } from 'geojson';
|
|
3
2
|
import type { Concept, DataExplorerPresets, DiscoveryMetadataFeature, DiscoveryMetadataItems, Queryable } from '../../store/types';
|
|
4
3
|
export declare const useGetDataexplorerConfiguration: (productConfigKey: string) => UseQueryResult<DataExplorerPresets>;
|
|
5
4
|
export declare const useFetchItems: (baseUrl: string, search?: string, queryables?: Queryable[], concepts?: Concept[], bbox?: number[], meteogateOnly?: boolean, enabled?: boolean) => UseQueryResult<DiscoveryMetadataItems | null>;
|
|
6
|
-
export declare const useFetchGeoJSON: (collectionUrl: string) => UseQueryResult<FeatureCollection | null>;
|
|
7
5
|
export declare const useFetchItem: (baseUrl: string, datasetId: string) => UseQueryResult<DiscoveryMetadataFeature | null>;
|