@opengeoweb/soundings 12.2.0 → 12.4.1
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 +1781 -554
- package/package.json +11 -9
- package/src/index.d.ts +4 -0
- package/src/lib/api/edr-api/api.d.ts +4 -5
- package/src/lib/api/edr-api/hooks.d.ts +16 -3
- package/src/lib/api/edr-api/types.d.ts +0 -23
- package/src/lib/{parser/coverages.d.ts → api/edr-api/utils.d.ts} +1 -1
- package/src/lib/components/EDRFetchAndParse.stories.d.ts +12 -5
- package/src/lib/components/MenuBar/LocationsMenu.d.ts +16 -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/MenuBarConnect.spec.d.ts +1 -0
- package/src/lib/components/MenuBar/SoundingsSourceDialogConnect.spec.d.ts +1 -0
- package/src/lib/components/MenuBar/SoundingsSourceMenu.d.ts +16 -0
- package/src/lib/components/Providers/Providers.d.ts +12 -0
- package/src/lib/components/{Soundings.d.ts → Soundings/Soundings.d.ts} +4 -5
- package/src/lib/components/Soundings/Soundings.spec.d.ts +1 -0
- package/src/lib/components/Soundings/SoundingsConnect.d.ts +6 -0
- package/src/lib/components/Soundings/SoundingsConnect.integration.spec.d.ts +1 -0
- package/src/lib/components/Soundings/SoundingsConnect.spec.d.ts +1 -0
- package/src/lib/components/Soundings/SoundingsConnect.stories.d.ts +35 -0
- package/src/lib/components/{DrawUtils.d.ts → Soundings/drawUtils.d.ts} +7 -6
- package/src/lib/components/Soundings/drawUtils.spec.d.ts +1 -0
- package/src/lib/components/{types.d.ts → Soundings/types.d.ts} +1 -1
- package/src/lib/components/SoundingsDemo.stories.d.ts +15 -0
- package/src/lib/components/SoundingsTimeSlider/SoundingsTimeSlider.d.ts +7 -0
- package/src/lib/components/SoundingsTimeSlider/SoundingsTimeSlider.spec.d.ts +1 -0
- package/src/lib/components/SoundingsTimeSlider/SoundingsTimeSlider.stories.d.ts +8 -0
- package/src/lib/components/SoundingsTimeSlider/SoundingsTimeSliderConnect.d.ts +6 -0
- package/src/lib/components/SoundingsTimeSlider/SoundingsTimeSliderConnect.spec.d.ts +1 -0
- package/src/lib/components/SoundingsTimeSlider/index.d.ts +2 -0
- package/src/lib/components/SoundingsTooltip/utils.d.ts +29 -0
- package/src/lib/components/SoundingsTooltip/utils.spec.d.ts +1 -0
- package/src/lib/components/StaticLines/drawIsobars.d.ts +1 -0
- package/src/lib/components/WindBarbs/utils.d.ts +20 -0
- package/src/lib/components/WindBarbs/utils.spec.d.ts +1 -0
- package/src/lib/components/WindBarbs/windsymbols.d.ts +5 -0
- package/src/lib/components/index.d.ts +3 -3
- package/src/lib/store/reducer.d.ts +8 -0
- package/src/lib/store/selectors.d.ts +126 -0
- package/src/lib/store/selectors.spec.d.ts +1 -0
- package/src/lib/store/store.d.ts +15 -0
- package/src/lib/store/types.d.ts +30 -0
- package/src/lib/{i18n.d.ts → utils/i18n.d.ts} +1 -0
- package/src/lib/utils/soundingsLookUp.spec.d.ts +1 -0
- package/src/lib/components/SoundingsConnect.d.ts +0 -5
- 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/conversions.d.ts +0 -11
- /package/src/lib/{utils/testHandlers.d.ts → api/edr-api/fakeApi.d.ts} +0 -0
- /package/src/lib/{components/Soundings.spec.d.ts → api/edr-api/hooks.spec.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/MenuBarConnect.spec.d.ts → MenuBar/MenuBarConnect.integration.spec.d.ts} +0 -0
- /package/src/lib/components/{SoundingsSourceDialogConnect.d.ts → MenuBar/SoundingsSourceDialogConnect.d.ts} +0 -0
- /package/src/lib/components/{Soundings.stories.d.ts → Soundings/Soundings.stories.d.ts} +0 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Store } from '@reduxjs/toolkit';
|
|
2
|
+
import { UIModuleState, WebMapStateModuleState } from '@opengeoweb/store';
|
|
3
|
+
import { SoundingsModuleState } from './types';
|
|
4
|
+
export declare const soundingsReducersMap: {
|
|
5
|
+
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>;
|
|
6
|
+
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>;
|
|
7
|
+
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>;
|
|
8
|
+
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>;
|
|
9
|
+
loadingIndicator: import("redux").Reducer<import("@reduxjs/toolkit").EntityState<import("dist/libs/store/src/store/generic/loadingIndicator/types").LoadingIndicatorType, string>, import("redux").UnknownAction, import("@reduxjs/toolkit").EntityState<import("dist/libs/store/src/store/generic/loadingIndicator/types").LoadingIndicatorType, string>>;
|
|
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
|
+
drawingtools: import("redux").Reducer<import("dist/libs/store/src/store/drawingTool/reducer").DrawingToolState, import("redux").UnknownAction, import("dist/libs/store/src/store/drawingTool/reducer").DrawingToolState>;
|
|
12
|
+
router: import("redux").Reducer<{}, import("redux").UnknownAction, {}>;
|
|
13
|
+
soundings: import("redux").Reducer<import("./types").SoundingsStore>;
|
|
14
|
+
};
|
|
15
|
+
export declare const createMockStore: (mockState?: SoundingsModuleState | WebMapStateModuleState | UIModuleState) => Store;
|
|
@@ -0,0 +1,30 @@
|
|
|
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 UpdateTimePayload {
|
|
18
|
+
selectedTime: string;
|
|
19
|
+
}
|
|
20
|
+
export interface SoundingsStore {
|
|
21
|
+
/** key: sourceId */
|
|
22
|
+
selectedSources: Record<string, SourceSelection>;
|
|
23
|
+
/** key: sourceId, value: locationId */
|
|
24
|
+
selectedLocations: Record<string, string | undefined>;
|
|
25
|
+
/** ISO date, e.g., 2025-01-02T12:00:00.000Z */
|
|
26
|
+
selectedTime: string;
|
|
27
|
+
}
|
|
28
|
+
export interface SoundingsModuleState {
|
|
29
|
+
soundings: SoundingsStore;
|
|
30
|
+
}
|
|
@@ -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 @@
|
|
|
1
|
+
export {};
|
|
@@ -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 {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const epsilon = 0.622;
|
|
2
|
-
export declare const e0 = 611.2;
|
|
3
|
-
export declare const aConstant = 17.67;
|
|
4
|
-
export declare const bConstant = 243.5;
|
|
5
|
-
export declare const tKelvinOffset = 273.15;
|
|
6
|
-
export declare const gConstant = 461.5;
|
|
7
|
-
export declare const hConstant = 2500000;
|
|
8
|
-
export declare function dewpointFromSpecificHumidity(specificHumidity: number, // specific humidity [kg/kg]
|
|
9
|
-
pressure: number): number;
|
|
10
|
-
export declare function dewpointFromRelativeHumidity(tCelsius: number, // air temperature [°C]
|
|
11
|
-
relHumidity: number): number;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|