@opengeoweb/soundings 12.2.0 → 12.3.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 +1159 -345
- package/package.json +8 -8
- package/src/index.d.ts +4 -0
- package/src/lib/api/edr-api/api.d.ts +2 -2
- package/src/lib/api/edr-api/hooks.d.ts +3 -2
- package/src/lib/components/DrawUtils.d.ts +1 -2
- package/src/lib/components/MenuBar/LocationsMenu.d.ts +13 -0
- package/src/lib/components/{SoundingsMenuBar → MenuBar}/MenuBar.d.ts +2 -1
- package/src/lib/components/MenuBar/MenuBar.stories.d.ts +20 -0
- package/src/lib/components/MenuBar/SoundingsSourceMenu.d.ts +12 -0
- package/src/lib/components/Providers/Providers.d.ts +12 -0
- package/src/lib/components/SoundingsConnect.d.ts +1 -0
- package/src/lib/components/StaticLines/drawIsobars.d.ts +1 -0
- package/src/lib/components/WindBarbs/utils.d.ts +25 -0
- package/src/lib/components/WindBarbs/windsymbols.d.ts +5 -0
- package/src/lib/components/index.d.ts +2 -2
- package/src/lib/i18n.d.ts +1 -0
- package/src/lib/store/reducer.d.ts +7 -0
- package/src/lib/store/selectors.d.ts +105 -0
- package/src/lib/store/selectors.spec.d.ts +1 -0
- package/src/lib/store/store.d.ts +9 -0
- package/src/lib/store/types.d.ts +25 -0
- package/src/lib/components/SoundingsMenuBar/LocationsMenu.d.ts +0 -11
- package/src/lib/components/SoundingsMenuBar/MenuBar.stories.d.ts +0 -26
- package/src/lib/components/SoundingsSourceMenu.d.ts +0 -9
- /package/src/lib/{utils/testHandlers.d.ts → api/edr-api/fakeApi.d.ts} +0 -0
- /package/src/lib/components/{SoundingsMenuBar → MenuBar}/LocationsMenuConnect.d.ts +0 -0
- /package/src/lib/components/{SoundingsMenuBar → MenuBar}/MenuBarConnect.d.ts +0 -0
- /package/src/lib/components/{SoundingsMenuBar → MenuBar}/MenuBarConnect.spec.d.ts +0 -0
- /package/src/lib/components/{SoundingsSourceDialogConnect.d.ts → MenuBar/SoundingsSourceDialogConnect.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/soundings",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.3.0",
|
|
4
4
|
"description": "GeoWeb soundings library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -8,18 +8,18 @@
|
|
|
8
8
|
"url": "git@gitlab.com:opengeoweb/opengeoweb.git"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@opengeoweb/api": "12.
|
|
11
|
+
"@opengeoweb/api": "12.3.0",
|
|
12
12
|
"@tanstack/react-query": "^5.69.2",
|
|
13
13
|
"react": "^18.3.1",
|
|
14
14
|
"d3": "^7.9.0",
|
|
15
15
|
"react-i18next": "^15.1.1",
|
|
16
16
|
"i18next": "^23.11.5",
|
|
17
|
-
"@opengeoweb/shared": "12.
|
|
18
|
-
"@mui/material": "^
|
|
19
|
-
"@opengeoweb/store": "12.
|
|
20
|
-
"react-redux": "^
|
|
21
|
-
"@opengeoweb/theme": "12.
|
|
22
|
-
"
|
|
17
|
+
"@opengeoweb/shared": "12.3.0",
|
|
18
|
+
"@mui/material": "^7.0.1",
|
|
19
|
+
"@opengeoweb/store": "12.3.0",
|
|
20
|
+
"react-redux": "^9.2.0",
|
|
21
|
+
"@opengeoweb/theme": "12.3.0",
|
|
22
|
+
"@reduxjs/toolkit": "^2.6.1"
|
|
23
23
|
},
|
|
24
24
|
"module": "./index.esm.js",
|
|
25
25
|
"type": "module",
|
package/src/index.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import soundingsTranslations from '../locales/soundingsTranslations.json';
|
|
2
|
+
export { soundingsTranslations };
|
|
1
3
|
export * from './lib/components';
|
|
2
4
|
export * from './lib/utils/soundingsLookUp';
|
|
3
5
|
export * from './lib/api/edr-api/types';
|
|
6
|
+
export * from './lib/store/store';
|
|
7
|
+
export * from './lib/i18n';
|
|
@@ -2,5 +2,5 @@ import { CollectionsResponseFromBE, LocationsResponseFromBE, SoundingsInstances,
|
|
|
2
2
|
export declare const getCollections: () => Promise<CollectionsResponseFromBE>;
|
|
3
3
|
export declare const getCollectionLocations: (collectionId: string) => Promise<LocationsResponseFromBE>;
|
|
4
4
|
export declare const getCollectionInstance: (baseURL: string, collectionId: string) => Promise<SoundingsInstances>;
|
|
5
|
-
export declare const getEdrCollectionForLocation: (collectionId: string, locationId: string, parameters: string[], datetime: string) => Promise<CoverageCollection>;
|
|
6
|
-
export declare const getEdrCollectionForPosition: (collectionId: string, coordinates: [number, number], parameters: string[], datetime: string) => Promise<CoverageCollection>;
|
|
5
|
+
export declare const getEdrCollectionForLocation: (collectionId: string, instanceId: string | undefined, locationId: string, parameters: string[], datetime: string) => Promise<CoverageCollection>;
|
|
6
|
+
export declare const getEdrCollectionForPosition: (collectionId: string, instanceId: string | undefined, coordinates: [number, number], parameters: string[], datetime: string) => Promise<CoverageCollection>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { UseQueryResult } from '@tanstack/react-query';
|
|
2
2
|
import { SoundingFeature } from './types';
|
|
3
|
-
|
|
4
|
-
export declare const
|
|
3
|
+
type Coordinates = [number, number];
|
|
4
|
+
export declare const useEdrCollectionForLocationPosition: (collectionId: string, instanceId: string | undefined, location: string | Coordinates, datetime: string, parameters?: string[]) => UseQueryResult<SoundingFeature[]>;
|
|
5
|
+
export {};
|
|
@@ -22,7 +22,6 @@ export interface DrawAxis {
|
|
|
22
22
|
xScale: d3.ScaleLinear<number, number>;
|
|
23
23
|
yScale: d3.ScaleLogarithmic<number, number>;
|
|
24
24
|
height: number;
|
|
25
|
-
width: number;
|
|
26
25
|
}
|
|
27
26
|
export interface PlotSounding {
|
|
28
27
|
temperatureValues: number[];
|
|
@@ -35,6 +34,6 @@ export interface PlotSounding {
|
|
|
35
34
|
svg: d3.Selection<SVGElement, unknown, HTMLElement, undefined>;
|
|
36
35
|
}
|
|
37
36
|
export declare const initializeSvg: ({ svgRef, width, height, margin, }: InitializeSvg) => d3.Selection<SVGGElement, unknown, null, undefined>;
|
|
38
|
-
export declare const drawAxes: ({ svg, xScale, yScale, height
|
|
37
|
+
export declare const drawAxes: ({ svg, xScale, yScale, height }: DrawAxis) => void;
|
|
39
38
|
export declare const addLegends: ({ svg, width }: AddLegends) => void;
|
|
40
39
|
export declare const plotSounding: ({ temperatureValues, pressureValues, color, lineStyle, xScale, yScale, height, svg, }: PlotSounding) => void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LocationsResponseFromBE } from '../../api/edr-api/types';
|
|
2
|
+
export type ServicesWithId = LocationsResponseFromBE & {
|
|
3
|
+
id: string;
|
|
4
|
+
};
|
|
5
|
+
interface Props {
|
|
6
|
+
services: ServicesWithId[];
|
|
7
|
+
selectedLocations: Record<string, string | undefined>;
|
|
8
|
+
isOpen: boolean;
|
|
9
|
+
onClose: () => void;
|
|
10
|
+
updateSelectedLocation: (sourceId: string, locationId: string | undefined) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const LocationsMenu: ({ services, selectedLocations, isOpen, onClose, updateSelectedLocation, }: Props) => React.ReactElement;
|
|
13
|
+
export {};
|
|
@@ -6,6 +6,7 @@ export declare enum MenuOptions {
|
|
|
6
6
|
interface SoundingsMenuBarProps {
|
|
7
7
|
handleClick: (menuType: MenuOptions) => void;
|
|
8
8
|
isOpen: Record<MenuOptions, boolean>;
|
|
9
|
+
selectedSourcesAmount?: number;
|
|
9
10
|
}
|
|
10
|
-
export declare const SoundingsMenuBar: ({ handleClick, isOpen, }: SoundingsMenuBarProps) => React.ReactElement;
|
|
11
|
+
export declare const SoundingsMenuBar: ({ handleClick, isOpen, selectedSourcesAmount, }: SoundingsMenuBarProps) => React.ReactElement;
|
|
11
12
|
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { StoryObj } from '@storybook/react';
|
|
3
|
+
import { MenuOptions } from './MenuBar';
|
|
4
|
+
interface Props {
|
|
5
|
+
menu?: MenuOptions;
|
|
6
|
+
isDefaultOpen?: boolean;
|
|
7
|
+
selectedSourcesAmount?: number;
|
|
8
|
+
}
|
|
9
|
+
declare const SoundingsMenuBarStory: ({ menu, isDefaultOpen, selectedSourcesAmount, }: Props) => React.ReactElement;
|
|
10
|
+
declare const _default: {
|
|
11
|
+
title: string;
|
|
12
|
+
component: ({ menu, isDefaultOpen, selectedSourcesAmount, }: Props) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
15
|
+
type Story = StoryObj<typeof SoundingsMenuBarStory>;
|
|
16
|
+
export declare const LocationsLight: Story;
|
|
17
|
+
export declare const LocationsDark: Story;
|
|
18
|
+
export declare const SourcesLight: Story;
|
|
19
|
+
export declare const SourcesDark: Story;
|
|
20
|
+
export declare const SourcesSelected: Story;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SoundingsCollectionsWithInstances } from '../types';
|
|
3
|
+
import { SourceSelection } from '../../store/types';
|
|
4
|
+
interface SoundingsSourceMenuProps {
|
|
5
|
+
soundingsCollections: SoundingsCollectionsWithInstances[] | undefined;
|
|
6
|
+
isOpen?: boolean;
|
|
7
|
+
handleClose: () => void;
|
|
8
|
+
updateCollection: (sourceId: string, value: SourceSelection) => void;
|
|
9
|
+
sourceSelections: Record<string, SourceSelection>;
|
|
10
|
+
}
|
|
11
|
+
export declare const SoundingsSourceMenu: ({ soundingsCollections, isOpen, handleClose, updateCollection, sourceSelections, }: SoundingsSourceMenuProps) => React.ReactElement;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Store } from '@reduxjs/toolkit';
|
|
3
|
+
interface SoundingsTranslationsWrapperProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export declare const SoundingsI18nProvider: React.FC<SoundingsTranslationsWrapperProps>;
|
|
7
|
+
interface SoundingsStoreWrapperProps {
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
store: Store;
|
|
10
|
+
}
|
|
11
|
+
export declare const SoundingsStoreProvider: React.FC<SoundingsStoreWrapperProps>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Margin } from '../DrawUtils';
|
|
3
|
+
export interface WindDataType {
|
|
4
|
+
pressure: number;
|
|
5
|
+
windSpeed: number;
|
|
6
|
+
windDirection: number;
|
|
7
|
+
}
|
|
8
|
+
export interface DrawWindBarbsProps {
|
|
9
|
+
svgRef: React.MutableRefObject<SVGSVGElement | null>;
|
|
10
|
+
data: WindDataType[];
|
|
11
|
+
width: number;
|
|
12
|
+
height: number;
|
|
13
|
+
margin: Margin;
|
|
14
|
+
minPressure: number;
|
|
15
|
+
maxPressure: number;
|
|
16
|
+
barbColor?: string;
|
|
17
|
+
}
|
|
18
|
+
export declare const drawWindBarbs: ({ svgRef, data, width, height, margin, minPressure, maxPressure, barbColor, }: DrawWindBarbsProps) => void;
|
|
19
|
+
export declare const GrowthType: {
|
|
20
|
+
readonly LINEAR: "LINEAR";
|
|
21
|
+
readonly EXPONENTIAL: "EXPONENTIAL";
|
|
22
|
+
readonly CUBIC: "CUBIC";
|
|
23
|
+
};
|
|
24
|
+
export declare const removeItemsByGrowthType: (array: WindDataType[], growthType?: keyof typeof GrowthType, base?: number, initial?: number) => WindDataType[];
|
|
25
|
+
export declare const getWindSymbol: (value: number) => Node | null;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export * from './Soundings';
|
|
2
|
-
export * from './SoundingsSourceDialogConnect';
|
|
3
|
-
export * from './
|
|
2
|
+
export * from './MenuBar/SoundingsSourceDialogConnect';
|
|
3
|
+
export * from './MenuBar/LocationsMenuConnect';
|
package/src/lib/i18n.d.ts
CHANGED
|
@@ -4,3 +4,4 @@ export declare const SOUNDINGS_NAMESPACE = "soundings";
|
|
|
4
4
|
export declare const initSoundingsI18n: () => void;
|
|
5
5
|
export declare const translateKeyOutsideComponents: (key: string, params?: Record<string, string | number> | undefined) => string;
|
|
6
6
|
export declare const useSoundingsTranslation: () => UseTranslationResponse<typeof SOUNDINGS_NAMESPACE, typeof i18n>;
|
|
7
|
+
export { i18n };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Draft, PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
import { SoundingsStore, UpdateLocationPayload, UpdateSourcePayload } from './types';
|
|
3
|
+
export declare const initialSoundingsState: SoundingsStore;
|
|
4
|
+
export declare const soundingsReducer: import("redux").Reducer<SoundingsStore>, soundingsActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
5
|
+
updateSelectedSource: (draft: Draft<SoundingsStore>, payloadAction: PayloadAction<UpdateSourcePayload>) => void;
|
|
6
|
+
updateSelectedLocation: (draft: Draft<SoundingsStore>, payloadAction: PayloadAction<UpdateLocationPayload>) => void;
|
|
7
|
+
}, "soundings">;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { SoundingsModuleState, SoundingsStore, SourceSelection, SourceType } from './types';
|
|
2
|
+
export declare const getSourceSelections: ((state: SoundingsModuleState) => Record<string, SourceSelection>) & {
|
|
3
|
+
clearCache: () => void;
|
|
4
|
+
resultsCount: () => number;
|
|
5
|
+
resetResultsCount: () => void;
|
|
6
|
+
} & {
|
|
7
|
+
resultFunc: (resultFuncArgs_0: SoundingsStore) => Record<string, SourceSelection>;
|
|
8
|
+
memoizedResultFunc: ((resultFuncArgs_0: SoundingsStore) => Record<string, SourceSelection>) & {
|
|
9
|
+
clearCache: () => void;
|
|
10
|
+
resultsCount: () => number;
|
|
11
|
+
resetResultsCount: () => void;
|
|
12
|
+
};
|
|
13
|
+
lastResult: () => Record<string, SourceSelection>;
|
|
14
|
+
dependencies: [(store: SoundingsModuleState) => SoundingsStore];
|
|
15
|
+
recomputations: () => number;
|
|
16
|
+
resetRecomputations: () => void;
|
|
17
|
+
dependencyRecomputations: () => number;
|
|
18
|
+
resetDependencyRecomputations: () => void;
|
|
19
|
+
} & {
|
|
20
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
21
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
22
|
+
};
|
|
23
|
+
export declare const getLocationSelections: ((state: SoundingsModuleState) => Record<string, string | undefined>) & {
|
|
24
|
+
clearCache: () => void;
|
|
25
|
+
resultsCount: () => number;
|
|
26
|
+
resetResultsCount: () => void;
|
|
27
|
+
} & {
|
|
28
|
+
resultFunc: (resultFuncArgs_0: SoundingsStore) => Record<string, string | undefined>;
|
|
29
|
+
memoizedResultFunc: ((resultFuncArgs_0: SoundingsStore) => Record<string, string | undefined>) & {
|
|
30
|
+
clearCache: () => void;
|
|
31
|
+
resultsCount: () => number;
|
|
32
|
+
resetResultsCount: () => void;
|
|
33
|
+
};
|
|
34
|
+
lastResult: () => Record<string, string | undefined>;
|
|
35
|
+
dependencies: [(store: SoundingsModuleState) => SoundingsStore];
|
|
36
|
+
recomputations: () => number;
|
|
37
|
+
resetRecomputations: () => void;
|
|
38
|
+
dependencyRecomputations: () => number;
|
|
39
|
+
resetDependencyRecomputations: () => void;
|
|
40
|
+
} & {
|
|
41
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
42
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
43
|
+
};
|
|
44
|
+
export declare const getSelectedSources: ((state: SoundingsModuleState) => SourceType[]) & {
|
|
45
|
+
clearCache: () => void;
|
|
46
|
+
resultsCount: () => number;
|
|
47
|
+
resetResultsCount: () => void;
|
|
48
|
+
} & {
|
|
49
|
+
resultFunc: (resultFuncArgs_0: SoundingsStore) => SourceType[];
|
|
50
|
+
memoizedResultFunc: ((resultFuncArgs_0: SoundingsStore) => SourceType[]) & {
|
|
51
|
+
clearCache: () => void;
|
|
52
|
+
resultsCount: () => number;
|
|
53
|
+
resetResultsCount: () => void;
|
|
54
|
+
};
|
|
55
|
+
lastResult: () => SourceType[];
|
|
56
|
+
dependencies: [(store: SoundingsModuleState) => SoundingsStore];
|
|
57
|
+
recomputations: () => number;
|
|
58
|
+
resetRecomputations: () => void;
|
|
59
|
+
dependencyRecomputations: () => number;
|
|
60
|
+
resetDependencyRecomputations: () => void;
|
|
61
|
+
} & {
|
|
62
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
63
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
64
|
+
};
|
|
65
|
+
export declare const getSelectedSourcesAmount: ((state: SoundingsModuleState) => number) & {
|
|
66
|
+
clearCache: () => void;
|
|
67
|
+
resultsCount: () => number;
|
|
68
|
+
resetResultsCount: () => void;
|
|
69
|
+
} & {
|
|
70
|
+
resultFunc: (resultFuncArgs_0: SourceType[]) => number;
|
|
71
|
+
memoizedResultFunc: ((resultFuncArgs_0: SourceType[]) => number) & {
|
|
72
|
+
clearCache: () => void;
|
|
73
|
+
resultsCount: () => number;
|
|
74
|
+
resetResultsCount: () => void;
|
|
75
|
+
};
|
|
76
|
+
lastResult: () => number;
|
|
77
|
+
dependencies: [((state: SoundingsModuleState) => SourceType[]) & {
|
|
78
|
+
clearCache: () => void;
|
|
79
|
+
resultsCount: () => number;
|
|
80
|
+
resetResultsCount: () => void;
|
|
81
|
+
} & {
|
|
82
|
+
resultFunc: (resultFuncArgs_0: SoundingsStore) => SourceType[];
|
|
83
|
+
memoizedResultFunc: ((resultFuncArgs_0: SoundingsStore) => SourceType[]) & {
|
|
84
|
+
clearCache: () => void;
|
|
85
|
+
resultsCount: () => number;
|
|
86
|
+
resetResultsCount: () => void;
|
|
87
|
+
};
|
|
88
|
+
lastResult: () => SourceType[];
|
|
89
|
+
dependencies: [(store: SoundingsModuleState) => SoundingsStore];
|
|
90
|
+
recomputations: () => number;
|
|
91
|
+
resetRecomputations: () => void;
|
|
92
|
+
dependencyRecomputations: () => number;
|
|
93
|
+
resetDependencyRecomputations: () => void;
|
|
94
|
+
} & {
|
|
95
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
96
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
97
|
+
}];
|
|
98
|
+
recomputations: () => number;
|
|
99
|
+
resetRecomputations: () => void;
|
|
100
|
+
dependencyRecomputations: () => number;
|
|
101
|
+
resetDependencyRecomputations: () => void;
|
|
102
|
+
} & {
|
|
103
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
104
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
105
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Store } from '@reduxjs/toolkit';
|
|
2
|
+
import { UIModuleState, WebMapStateModuleState } from '@opengeoweb/store';
|
|
3
|
+
import { SoundingsModuleState } from './types';
|
|
4
|
+
export declare const soundingsReducersMap: {
|
|
5
|
+
soundings: import("redux").Reducer<import("./types").SoundingsStore>;
|
|
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
|
+
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>;
|
|
8
|
+
};
|
|
9
|
+
export declare const createMockStore: (mockState?: SoundingsModuleState | WebMapStateModuleState | UIModuleState) => Store;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface SourceType {
|
|
2
|
+
collectionId: string;
|
|
3
|
+
instanceId?: string;
|
|
4
|
+
}
|
|
5
|
+
export interface UpdateSourcePayload {
|
|
6
|
+
sourceId: string;
|
|
7
|
+
value: SourceSelection;
|
|
8
|
+
}
|
|
9
|
+
export interface SourceSelection {
|
|
10
|
+
instanceId?: string;
|
|
11
|
+
isChecked?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface UpdateLocationPayload {
|
|
14
|
+
sourceId: string;
|
|
15
|
+
locationId: string | undefined;
|
|
16
|
+
}
|
|
17
|
+
export interface SoundingsStore {
|
|
18
|
+
/** key: sourceId */
|
|
19
|
+
selectedSources: Record<string, SourceSelection>;
|
|
20
|
+
/** key: sourceId, value: locationId */
|
|
21
|
+
selectedLocations: Record<string, string | undefined>;
|
|
22
|
+
}
|
|
23
|
+
export interface SoundingsModuleState {
|
|
24
|
+
soundings: SoundingsStore;
|
|
25
|
+
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { LocationsResponseFromBE } from '../../api/edr-api/types';
|
|
2
|
-
export type ServicesWithId = LocationsResponseFromBE & {
|
|
3
|
-
id: string;
|
|
4
|
-
};
|
|
5
|
-
interface Props {
|
|
6
|
-
services: ServicesWithId[];
|
|
7
|
-
isOpen: boolean;
|
|
8
|
-
onClose: () => void;
|
|
9
|
-
}
|
|
10
|
-
export declare const LocationsMenu: ({ services, isOpen, onClose, }: Props) => React.ReactElement;
|
|
11
|
-
export {};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { StoryObj } from '@storybook/react';
|
|
3
|
-
import { MenuOptions, SoundingsMenuBar } from './MenuBar';
|
|
4
|
-
interface Props {
|
|
5
|
-
menu?: MenuOptions;
|
|
6
|
-
}
|
|
7
|
-
declare const _default: {
|
|
8
|
-
title: string;
|
|
9
|
-
component: ({ menu }: Props) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
10
|
-
};
|
|
11
|
-
export default _default;
|
|
12
|
-
type Story = StoryObj<typeof SoundingsMenuBar>;
|
|
13
|
-
export declare const LocationsMenuStory: {
|
|
14
|
-
args: {
|
|
15
|
-
menu: MenuOptions;
|
|
16
|
-
};
|
|
17
|
-
tags: string[];
|
|
18
|
-
parameters: {
|
|
19
|
-
zeplinLink: {
|
|
20
|
-
name: string;
|
|
21
|
-
link: string;
|
|
22
|
-
}[];
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
export declare const ComponentLight: Story;
|
|
26
|
-
export declare const ComponentDark: Story;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React, { ReactElement } from 'react';
|
|
2
|
-
import { SoundingsCollectionsWithInstances } from './types';
|
|
3
|
-
interface SoundingsSourceMenuProps {
|
|
4
|
-
soundingsCollections: SoundingsCollectionsWithInstances[] | undefined;
|
|
5
|
-
isOpen?: boolean;
|
|
6
|
-
handleClose: () => void;
|
|
7
|
-
}
|
|
8
|
-
export declare const SoundingsSourceMenu: ({ soundingsCollections, isOpen, handleClose, }: SoundingsSourceMenuProps) => React.ReactElement;
|
|
9
|
-
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|