@opengeoweb/data-explorer 14.3.0 → 14.5.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.
- package/index.esm.js +6348 -6296
- package/package.json +9 -9
- package/src/lib/components/AreaFilter/AreaFilter.d.ts +3 -3
- package/src/lib/components/AreaFilter/AreaFilterConnect.d.ts +1 -1
- package/src/lib/components/AreaFilter/AreaFilterConnect.stories.d.ts +1 -1
- package/src/lib/components/AreaFilter/AreaFilterLocationSearch.d.ts +1 -1
- package/src/lib/components/ConceptList/ConceptChip.d.ts +2 -2
- package/src/lib/components/ConceptList/ConceptChipConnect.d.ts +2 -2
- package/src/lib/components/ConceptList/ConceptList.d.ts +2 -2
- package/src/lib/components/ConceptList/ConceptListConnect.d.ts +1 -1
- package/src/lib/components/ConceptList/ConceptListConnect.stories.d.ts +1 -1
- package/src/lib/components/DataExplorer.d.ts +2 -2
- package/src/lib/components/DataExplorer.stories.d.ts +1 -1
- package/src/lib/components/DataExplorerConnect.d.ts +1 -1
- package/src/lib/components/DataExplorerConnect.stories.d.ts +1 -1
- package/src/lib/components/DataExplorerFilters/DataExplorerFilters.d.ts +4 -2
- package/src/lib/components/DataExplorerFilters/DataExplorerFilters.stories.d.ts +1 -1
- package/src/lib/components/DataExplorerFilters/DataExplorerFiltersConnect.d.ts +1 -1
- package/src/lib/components/DataExplorerFilters/DataExplorerSearchConnect.d.ts +1 -1
- package/src/lib/components/DataExplorerFilters/DataExplorerSearchConnect.stories.d.ts +1 -1
- package/src/lib/components/DataExplorerInfo/DataExplorerInfo.d.ts +2 -2
- package/src/lib/components/DataExplorerInfo/DataExplorerInfo.stories.d.ts +1 -1
- package/src/lib/components/DataExplorerInfo/DataExplorerInfoConnect.d.ts +1 -1
- package/src/lib/components/DataExplorerInfo/InfoDialogBaseInfo.d.ts +1 -1
- package/src/lib/components/DataExplorerInfo/InfoDialogBaseInfo.stories.d.ts +1 -1
- package/src/lib/components/DataExplorerInfo/InfoDialogContacts.d.ts +1 -1
- package/src/lib/components/DataExplorerInfo/InfoDialogContacts.stories.d.ts +1 -1
- package/src/lib/components/DataExplorerInfo/InfoDialogGeographicalCoverage.d.ts +1 -1
- package/src/lib/components/DataExplorerInfo/InfoDialogGeographicalCoverage.stories.d.ts +1 -1
- package/src/lib/components/DataExplorerInfo/InfoDialogKeywords.d.ts +1 -1
- package/src/lib/components/DataExplorerInfo/InfoDialogKeywords.stories.d.ts +1 -1
- package/src/lib/components/DataExplorerInfo/InfoDialogLinks.d.ts +1 -1
- package/src/lib/components/DataExplorerInfo/InfoDialogLinks.stories.d.ts +1 -1
- package/src/lib/components/DataExplorerInfo/InfoDialogTime.d.ts +1 -1
- package/src/lib/components/DataExplorerInfo/InfoDialogTime.stories.d.ts +1 -1
- package/src/lib/components/DataExplorerInfo/InfoDialogWMSMap.d.ts +5 -5
- package/src/lib/components/DataExplorerInfo/InfoDialogWMSMapConnect.d.ts +2 -2
- package/src/lib/components/DataExplorerInfo/InfoDialogWMSMapConnect.stories.d.ts +1 -1
- package/src/lib/components/DatasetList/DatasetAddRemoveButton.d.ts +1 -1
- package/src/lib/components/DatasetList/DatasetList.d.ts +2 -2
- package/src/lib/components/DatasetList/DatasetList.stories.d.ts +1 -1
- package/src/lib/components/DatasetList/DatasetListConnect.d.ts +1 -1
- package/src/lib/components/DatasetList/DatasetRow.d.ts +2 -2
- package/src/lib/components/DatasetList/DatasetRowConnect.d.ts +1 -1
- package/src/lib/components/providers/Providers.d.ts +3 -3
- package/src/lib/store/listeners.d.ts +1 -1
- package/src/lib/store/reducer.d.ts +3 -2
- package/src/lib/store/selectors.d.ts +22 -1
- package/src/lib/store/store.d.ts +4 -4
- package/src/lib/store/types.d.ts +6 -2
- package/src/lib/utils/data-explorerUtils.d.ts +8 -0
- package/src/lib/utils/data-explorerUtils.spec.d.ts +1 -0
- package/src/lib/utils/dataexplorer-api/api.d.ts +4 -4
- package/src/lib/utils/dataexplorer-api/fakeApi.d.ts +1 -1
- package/src/lib/utils/dataexplorer-api/hooks.d.ts +4 -4
- package/src/lib/utils/i18n.d.ts +1 -1
- package/src/lib/utils/storyUtils.d.ts +3 -2
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/data-explorer",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.5.0",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@mui/material": "^7.0.1",
|
|
6
|
-
"@opengeoweb/api": "14.
|
|
7
|
-
"@opengeoweb/core": "14.
|
|
8
|
-
"@opengeoweb/shared": "14.
|
|
9
|
-
"@opengeoweb/snackbar": "14.
|
|
10
|
-
"@opengeoweb/store": "14.
|
|
11
|
-
"@opengeoweb/theme": "14.
|
|
12
|
-
"@opengeoweb/webmap": "14.
|
|
13
|
-
"@opengeoweb/webmap-react": "14.
|
|
6
|
+
"@opengeoweb/api": "14.5.0",
|
|
7
|
+
"@opengeoweb/core": "14.5.0",
|
|
8
|
+
"@opengeoweb/shared": "14.5.0",
|
|
9
|
+
"@opengeoweb/snackbar": "14.5.0",
|
|
10
|
+
"@opengeoweb/store": "14.5.0",
|
|
11
|
+
"@opengeoweb/theme": "14.5.0",
|
|
12
|
+
"@opengeoweb/webmap": "14.5.0",
|
|
13
|
+
"@opengeoweb/webmap-react": "14.5.0",
|
|
14
14
|
"@reduxjs/toolkit": "^2.6.1",
|
|
15
15
|
"@tanstack/query-core": "^5.69.2",
|
|
16
16
|
"@tanstack/react-query": "^5.85.5",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { View } from 'ol';
|
|
3
|
-
import
|
|
1
|
+
import type { Feature } from 'geojson';
|
|
2
|
+
import type { View } from 'ol';
|
|
3
|
+
import React from 'react';
|
|
4
4
|
interface AreaFilterProps {
|
|
5
5
|
view: View;
|
|
6
6
|
tileURL: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export declare const AreaFilterConnect: React.FC;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { LocationSearchTypes } from '@opengeoweb/core';
|
|
2
|
+
import type { LocationSearchTypes } from '@opengeoweb/core';
|
|
3
3
|
export interface LocationSearchProps {
|
|
4
4
|
onSelectLocation?: (location?: LocationSearchTypes.LocationDetail) => void;
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { DataExplorerTypes } from '../../store';
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { DataExplorerTypes } from '../../store';
|
|
3
3
|
export interface ConceptChipConnectProps {
|
|
4
4
|
concept: DataExplorerTypes.Concept;
|
|
5
5
|
isInSearch: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { DataExplorerTypes } from '../../store';
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { DataExplorerTypes } from '../../store';
|
|
3
3
|
interface ConceptListProps {
|
|
4
4
|
concepts: DataExplorerTypes.Concept[];
|
|
5
5
|
datasetConcepts: string[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export declare const ConceptListConnect: React.FC;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { uiTypes } from '@opengeoweb/store';
|
|
2
1
|
import React from 'react';
|
|
3
|
-
import { Position, HeaderSize } from '@opengeoweb/shared';
|
|
2
|
+
import type { Position, HeaderSize } from '@opengeoweb/shared';
|
|
3
|
+
import type { uiTypes } from '@opengeoweb/store';
|
|
4
4
|
interface DataExplorerProps {
|
|
5
5
|
bounds?: string;
|
|
6
6
|
onClose: () => void;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Queryable } from '../../store/types';
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Queryable } from '../../store/types';
|
|
3
3
|
interface DataExplorerFiltersProps {
|
|
4
4
|
filters: Queryable[];
|
|
5
|
+
meteoGateOnly: boolean;
|
|
5
6
|
onSetFilterValue: (filter: string, value: string, checked: boolean) => void;
|
|
7
|
+
onToggleMeteoGateOnly: (enabled: boolean) => void;
|
|
6
8
|
}
|
|
7
9
|
export declare const DataExplorerFilters: React.FC<DataExplorerFiltersProps>;
|
|
8
10
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export declare const DataExplorerFiltersConnect: React.FC;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export declare const DataExplorerSearchConnect: React.FC;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react/*';
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react/*';
|
|
2
2
|
import { DataExplorerSearchConnect } from './DataExplorerSearchConnect';
|
|
3
3
|
declare const meta: Meta<typeof DataExplorerSearchConnect>;
|
|
4
4
|
export default meta;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Position, Source } from '@opengeoweb/shared';
|
|
3
|
-
import { DiscoveryMetadataFeature } from '../../store/types';
|
|
2
|
+
import type { Position, Source } from '@opengeoweb/shared';
|
|
3
|
+
import type { DiscoveryMetadataFeature } from '../../store/types';
|
|
4
4
|
export interface DataExplorerInfoProps {
|
|
5
5
|
onClose: () => void;
|
|
6
6
|
isOpen: boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export declare const DataExplorerInfoConnect: React.FC;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { InfoDialogContactsProps } from '../../store/types';
|
|
2
|
+
import type { InfoDialogContactsProps } from '../../store/types';
|
|
3
3
|
declare const DiscoveryCatalogueInfo: React.FC<InfoDialogContactsProps>;
|
|
4
4
|
export default DiscoveryCatalogueInfo;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { InfoDialogGeographicalCoverageProps } from '../../store/types';
|
|
2
|
+
import type { InfoDialogGeographicalCoverageProps } from '../../store/types';
|
|
3
3
|
declare const InfoDialogGeographicalCoverage: React.FC<InfoDialogGeographicalCoverageProps>;
|
|
4
4
|
export default InfoDialogGeographicalCoverage;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react/*';
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react/*';
|
|
2
2
|
import InfoDialogGeographicalCoverage from './InfoDialogGeographicalCoverage';
|
|
3
3
|
declare const meta: Meta<typeof InfoDialogGeographicalCoverage>;
|
|
4
4
|
export default meta;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { InfoDialogThemesAndKeywordsProps } from '../../store/types';
|
|
2
|
+
import type { InfoDialogThemesAndKeywordsProps } from '../../store/types';
|
|
3
3
|
declare const InfoDialogKeywords: React.FC<InfoDialogThemesAndKeywordsProps>;
|
|
4
4
|
export default InfoDialogKeywords;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import type { View } from 'ol';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { OGCWMSWMTSGetCapabilities } from '@opengeoweb/webmap';
|
|
4
4
|
interface InfoDialogWMSMapProps {
|
|
5
5
|
view: View;
|
|
6
6
|
geometry: {
|
|
7
7
|
type: string;
|
|
8
|
-
coordinates: number[][][];
|
|
8
|
+
coordinates: number[][][] | number[][][][];
|
|
9
9
|
};
|
|
10
10
|
dataLink: string;
|
|
11
|
-
getCapabilitiesJSON:
|
|
11
|
+
getCapabilitiesJSON: OGCWMSWMTSGetCapabilities;
|
|
12
12
|
}
|
|
13
13
|
export declare const InfoDialogWMSMap: React.FC<InfoDialogWMSMapProps>;
|
|
14
14
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { layerTypes } from '@opengeoweb/store';
|
|
3
|
-
import { DiscoveryMetadataItems } from '../../store/types';
|
|
2
|
+
import type { layerTypes } from '@opengeoweb/store';
|
|
3
|
+
import type { DiscoveryMetadataItems } from '../../store/types';
|
|
4
4
|
interface DatasetListProps {
|
|
5
5
|
datasets?: DiscoveryMetadataItems | null;
|
|
6
6
|
mapLayers: layerTypes.Layer[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export declare const DatasetListConnect: React.FC;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { layerTypes } from '@opengeoweb/store';
|
|
3
|
-
import { DiscoveryMetadataFeature } from '../../store/types';
|
|
2
|
+
import type { layerTypes } from '@opengeoweb/store';
|
|
3
|
+
import type { DiscoveryMetadataFeature } from '../../store/types';
|
|
4
4
|
interface DatasetRowProps {
|
|
5
5
|
addLayer: () => void;
|
|
6
6
|
deleteLayer: () => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { layerTypes } from '@opengeoweb/store';
|
|
3
|
-
import { DiscoveryMetadataFeature } from '../../store/types';
|
|
3
|
+
import type { DiscoveryMetadataFeature } from '../../store/types';
|
|
4
4
|
interface DatasetRowConnectProps {
|
|
5
5
|
feature: DiscoveryMetadataFeature;
|
|
6
6
|
mapLayers: layerTypes.Layer[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import type { Theme } from '@mui/material';
|
|
2
|
+
import type { Store } from '@reduxjs/toolkit';
|
|
1
3
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { ThemeProviderProps } from '@opengeoweb/theme';
|
|
4
|
-
import { Theme } from '@mui/material';
|
|
4
|
+
import type { ThemeProviderProps } from '@opengeoweb/theme';
|
|
5
5
|
export declare const DataExplorerThemeWrapper: React.FC<ThemeProviderProps>;
|
|
6
6
|
interface DataExplorerThemeStoreProviderProps {
|
|
7
7
|
children?: React.ReactNode;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DataExplorerModuleState } from './types';
|
|
1
|
+
import type { DataExplorerModuleState } from './types';
|
|
2
2
|
export declare const dataExplorerListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<DataExplorerModuleState, import("redux-thunk").ThunkDispatch<DataExplorerModuleState, unknown, import("redux").UnknownAction>, unknown>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Draft, PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
-
import { DataExplorerStoreType, DataExplorerPresets, SetSelectedDatasetPayload, SetQueryablesPayload, SetQueryableValuePayload, SetSearchFilterPayload, SetSelectedConceptPayload, SetWMSboxFilterPayload, SetBboxFilterPayload } from './types';
|
|
1
|
+
import type { Draft, PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
import type { DataExplorerStoreType, DataExplorerPresets, SetSelectedDatasetPayload, SetQueryablesPayload, SetQueryableValuePayload, SetSearchFilterPayload, SetSelectedConceptPayload, SetWMSboxFilterPayload, SetBboxFilterPayload, SetMeteogateOnlyPayload } from './types';
|
|
3
3
|
export declare const initialState: DataExplorerStoreType;
|
|
4
4
|
export declare const dataExplorerReducer: import("redux").Reducer<DataExplorerStoreType>, dataExplorerActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
5
5
|
setSearchFilter: (draft: Draft<DataExplorerStoreType>, action: PayloadAction<SetSearchFilterPayload>) => void;
|
|
@@ -10,4 +10,5 @@ export declare const dataExplorerReducer: import("redux").Reducer<DataExplorerSt
|
|
|
10
10
|
setDataExplorerConfiguration: (draft: Draft<DataExplorerStoreType>, action: PayloadAction<DataExplorerPresets>) => void;
|
|
11
11
|
setWMSbox: (draft: Draft<DataExplorerStoreType>, action: PayloadAction<SetWMSboxFilterPayload>) => void;
|
|
12
12
|
setBbox: (draft: Draft<DataExplorerStoreType>, action: PayloadAction<SetBboxFilterPayload>) => void;
|
|
13
|
+
setMeteogateOnly: (draft: Draft<DataExplorerStoreType>, action: PayloadAction<SetMeteogateOnlyPayload>) => void;
|
|
13
14
|
}, "dataexplorer">;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Concept, DataExplorerModuleState, DataExplorerStoreType, Queryable, QueryableConfiguration } from './types';
|
|
1
|
+
import type { Concept, DataExplorerModuleState, DataExplorerStoreType, Queryable, QueryableConfiguration } from './types';
|
|
2
2
|
export declare const getDataExplorerState: (state: DataExplorerModuleState) => DataExplorerStoreType | undefined;
|
|
3
3
|
export declare const getSearchFilter: ((state: DataExplorerModuleState) => string) & {
|
|
4
4
|
clearCache: () => void;
|
|
@@ -210,3 +210,24 @@ export declare const getAreaFilterTileLicense: ((state: DataExplorerModuleState)
|
|
|
210
210
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
211
211
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
212
212
|
};
|
|
213
|
+
export declare const getMeteogateOnly: ((state: DataExplorerModuleState) => boolean) & {
|
|
214
|
+
clearCache: () => void;
|
|
215
|
+
resultsCount: () => number;
|
|
216
|
+
resetResultsCount: () => void;
|
|
217
|
+
} & {
|
|
218
|
+
resultFunc: (resultFuncArgs_0: DataExplorerStoreType | undefined) => boolean;
|
|
219
|
+
memoizedResultFunc: ((resultFuncArgs_0: DataExplorerStoreType | undefined) => boolean) & {
|
|
220
|
+
clearCache: () => void;
|
|
221
|
+
resultsCount: () => number;
|
|
222
|
+
resetResultsCount: () => void;
|
|
223
|
+
};
|
|
224
|
+
lastResult: () => boolean;
|
|
225
|
+
dependencies: [(state: DataExplorerModuleState) => DataExplorerStoreType | undefined];
|
|
226
|
+
recomputations: () => number;
|
|
227
|
+
resetRecomputations: () => void;
|
|
228
|
+
dependencyRecomputations: () => number;
|
|
229
|
+
resetDependencyRecomputations: () => void;
|
|
230
|
+
} & {
|
|
231
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
232
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
233
|
+
};
|
package/src/lib/store/store.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { DataExplorerModuleState } from './types';
|
|
1
|
+
import type { Store } from '@reduxjs/toolkit';
|
|
2
|
+
import type { SnackbarModuleStore } from '@opengeoweb/snackbar';
|
|
3
|
+
import type { WebMapStateModuleState, SynchronizationGroupModuleState, UIModuleState } from '@opengeoweb/store';
|
|
4
|
+
import type { DataExplorerModuleState } from './types';
|
|
5
5
|
export declare const dataExplorerReducersMap: {
|
|
6
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
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>;
|
package/src/lib/store/types.d.ts
CHANGED
|
@@ -50,7 +50,7 @@ export interface InfoDialogBaseInfoProps {
|
|
|
50
50
|
}
|
|
51
51
|
export interface InfoDialogGeographicalCoverageProps {
|
|
52
52
|
type: string;
|
|
53
|
-
coordinates: number[][][];
|
|
53
|
+
coordinates: number[][][] | number[][][][];
|
|
54
54
|
}
|
|
55
55
|
export interface InfoDialogTimeProps {
|
|
56
56
|
interval?: string[];
|
|
@@ -109,7 +109,7 @@ export interface DiscoveryMetadataItems {
|
|
|
109
109
|
export interface DataExplorerWMSState {
|
|
110
110
|
geometry: {
|
|
111
111
|
type: string;
|
|
112
|
-
coordinates: number[][][];
|
|
112
|
+
coordinates: number[][][] | number[][][][];
|
|
113
113
|
};
|
|
114
114
|
links: {
|
|
115
115
|
href: string;
|
|
@@ -127,6 +127,7 @@ export interface DataExplorerStoreType {
|
|
|
127
127
|
queryableConfigurations: QueryableConfiguration[];
|
|
128
128
|
wmsbox?: number[];
|
|
129
129
|
bbox?: number[];
|
|
130
|
+
meteogateOnly?: boolean;
|
|
130
131
|
};
|
|
131
132
|
selectedDatasetId: string;
|
|
132
133
|
areaFilterTileURL?: string;
|
|
@@ -156,6 +157,9 @@ export interface SetSelectedDatasetPayload {
|
|
|
156
157
|
export interface SetBboxFilterPayload {
|
|
157
158
|
bbox: number[];
|
|
158
159
|
}
|
|
160
|
+
export interface SetMeteogateOnlyPayload {
|
|
161
|
+
enabled: boolean;
|
|
162
|
+
}
|
|
159
163
|
export interface Queryable {
|
|
160
164
|
id: string;
|
|
161
165
|
label: string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const findSmallestMultiPolygonFirstChild: (multiPolygons: number[][][][]) => number;
|
|
2
|
+
export declare const findLargestMultiPolygonFirstChild: (multiPolygons: number[][][][]) => number;
|
|
3
|
+
export declare const findSmallestMultiPolygonLastChild: (multiPolygons: number[][][][]) => number;
|
|
4
|
+
export declare const findLargestMultiPolygonLastChild: (multiPolygons: number[][][][]) => number;
|
|
5
|
+
export declare const findSmallestPolygonFirstChild: (pairs: number[][][]) => number;
|
|
6
|
+
export declare const findLargestPolygonFirstChild: (pairs: number[][][]) => number;
|
|
7
|
+
export declare const findSmallestPolygonLastChild: (pairs: number[][][]) => number;
|
|
8
|
+
export declare const findLargestPolygonLastChild: (pairs: number[][][]) => number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { FeatureCollection } from 'geojson';
|
|
2
|
-
import { Concept, DataExplorerPresets, DiscoveryMetadataFeature, DiscoveryMetadataItems, Queryable } from '../../store/types';
|
|
3
|
-
export declare const LIMIT =
|
|
4
|
-
export declare const fetchItems: (baseUrl: string, search?: string, queryables?: Queryable[], concepts?: Concept[], bbox?: number[]) => Promise<DiscoveryMetadataItems | null>;
|
|
1
|
+
import type { FeatureCollection } from 'geojson';
|
|
2
|
+
import type { Concept, DataExplorerPresets, DiscoveryMetadataFeature, DiscoveryMetadataItems, Queryable } from '../../store/types';
|
|
3
|
+
export declare const LIMIT = 10000;
|
|
4
|
+
export declare const fetchItems: (baseUrl: string, search?: string, queryables?: Queryable[], concepts?: Concept[], bbox?: number[], meteogateOnly?: boolean) => Promise<DiscoveryMetadataItems | null>;
|
|
5
5
|
export declare const fetchGeoJSON: (collectionUrl: string) => Promise<FeatureCollection | null>;
|
|
6
6
|
export declare const fetchItem: (baseUrl: string, datasetId: string) => Promise<DiscoveryMetadataFeature | null>;
|
|
7
7
|
export declare const getDataExplorerConfiguration: (productConfigKey: string) => Promise<DataExplorerPresets>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { UseQueryResult } from '@tanstack/react-query';
|
|
2
|
-
import { FeatureCollection } from 'geojson';
|
|
3
|
-
import { Concept, DataExplorerPresets, DiscoveryMetadataFeature, DiscoveryMetadataItems, Queryable } from '../../store/types';
|
|
1
|
+
import type { UseQueryResult } from '@tanstack/react-query';
|
|
2
|
+
import type { FeatureCollection } from 'geojson';
|
|
3
|
+
import type { Concept, DataExplorerPresets, DiscoveryMetadataFeature, DiscoveryMetadataItems, Queryable } from '../../store/types';
|
|
4
4
|
export declare const useGetDataexplorerConfiguration: (productConfigKey: string) => UseQueryResult<DataExplorerPresets>;
|
|
5
|
-
export declare const useFetchItems: (baseUrl: string, search?: string, queryables?: Queryable[], concepts?: Concept[], bbox?: number[], enabled?: boolean) => UseQueryResult<DiscoveryMetadataItems | null>;
|
|
5
|
+
export declare const useFetchItems: (baseUrl: string, search?: string, queryables?: Queryable[], concepts?: Concept[], bbox?: number[], meteogateOnly?: boolean, enabled?: boolean) => UseQueryResult<DiscoveryMetadataItems | null>;
|
|
6
6
|
export declare const useFetchGeoJSON: (collectionUrl: string) => UseQueryResult<FeatureCollection | null>;
|
|
7
7
|
export declare const useFetchItem: (baseUrl: string, datasetId: string) => UseQueryResult<DiscoveryMetadataFeature | null>;
|
package/src/lib/utils/i18n.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import i18n from 'i18next';
|
|
2
|
-
import { UseTranslationResponse } from 'react-i18next';
|
|
2
|
+
import type { UseTranslationResponse } from 'react-i18next';
|
|
3
3
|
export declare const DATA_EXPLORER_NAMESPACE = "dataexplorer";
|
|
4
4
|
export declare const initDataExplorerI18n: () => void;
|
|
5
5
|
export declare const translateInTestsAndStories: (key: string, params?: Record<string, string | number> | undefined) => string;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { DiscoveryMetadataFeature, InfoDialogBaseInfoProps, InfoDialogContactsProps, InfoDialogGeographicalCoverageProps, InfoDialogThemesAndKeywordsProps, InfoDialogLinksProps, InfoDialogTimeProps } from '../store/types';
|
|
1
|
+
import type { DiscoveryMetadataFeature, InfoDialogBaseInfoProps, InfoDialogContactsProps, InfoDialogGeographicalCoverageProps, InfoDialogThemesAndKeywordsProps, InfoDialogLinksProps, InfoDialogTimeProps } from '../store/types';
|
|
2
2
|
export declare const InfoDialogLinksMock: InfoDialogLinksProps[];
|
|
3
3
|
export declare const InfoDialogTimeMock: InfoDialogTimeProps;
|
|
4
4
|
export declare const CoordinatedUniversalTimeMock: InfoDialogTimeProps;
|
|
5
5
|
export declare const InfoDialogKeywordsMock: InfoDialogThemesAndKeywordsProps;
|
|
6
6
|
export declare const InfoDialogContactsMock: InfoDialogContactsProps;
|
|
7
|
-
export declare const
|
|
7
|
+
export declare const InfoDialogGeographicalCoveragePolygonMock: InfoDialogGeographicalCoverageProps;
|
|
8
|
+
export declare const InfoDialogGeographicalCoverageMultipolygonMock: InfoDialogGeographicalCoverageProps;
|
|
8
9
|
export declare const InfoDialogBaseInfoMock: InfoDialogBaseInfoProps;
|
|
9
10
|
export declare const featureInfoMock: DiscoveryMetadataFeature;
|