@opengeoweb/core 13.2.1 → 14.0.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 +798 -164
- package/package.json +10 -10
- package/src/lib/components/LayerInfoConnect/LayerInfoButtonConnect.d.ts +1 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelectValue.d.ts +3 -1
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelectValue.spec.d.ts +1 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/LoadDuration/LoadDuration.d.ts +8 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/LoadDuration/LoadingIndicatorProgressBar.d.ts +9 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/LoadDuration/LoadingIndicatorProgressBar.spec.d.ts +1 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/Menubutton/MenuButton.d.ts +1 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderLayers/RenderFeatureLayers.d.ts +6 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/SelectableFeaturesCheckbox/SelectableFeaturesCheckbox.d.ts +8 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/SelectableFeaturesCheckbox/SelectableFeaturesCheckboxConnect.d.ts +6 -0
- package/src/lib/components/LayerManager/LayerManagerConnect.stories.d.ts +1 -0
- package/src/lib/components/LayerManager/index.d.ts +1 -0
- package/src/lib/components/MapDrawToolRedux/OpenLayersFeatureLayerConnect.d.ts +1 -1
- package/src/lib/components/MapViewConnect/olMapUtils.d.ts +1 -0
- package/src/lib/components/MapViewConnect/useMapViewLoadingIndicator.d.ts +1 -0
- package/src/lib/components/MapViewConnect/useMapViewLoadingIndicator.spec.d.ts +1 -0
- package/src/lib/components/SelectedFeaturesDialog/SelectedFeature.d.ts +8 -0
- package/src/lib/components/SelectedFeaturesDialog/SelectedFeaturesDialog.d.ts +14 -0
- package/src/lib/components/SelectedFeaturesDialog/SelectedFeaturesDialogConnect.d.ts +2 -0
- package/src/lib/components/SelectedFeaturesDialog/SelectedFeaturesDialogConnect.spec.d.ts +1 -0
- package/src/lib/components/SelectedFeaturesDialog/SelectedFeaturesDialogConnect.stories.d.ts +7 -0
- package/src/lib/components/SelectedFeaturesDialog/storyUtils.d.ts +3 -0
- package/src/lib/components/TimeSliderConnect/TimeSliderCurrentTimeBoxConnect.d.ts +8 -0
- package/src/lib/index.d.ts +3 -2
- package/src/lib/store/store.d.ts +1 -0
- package/src/lib/components/EDR/TimeawareEDRLocation.stories.d.ts +0 -15
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "14.0.1",
|
|
4
4
|
"description": "GeoWeb Core library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -8,22 +8,22 @@
|
|
|
8
8
|
"url": "git@gitlab.com:opengeoweb/opengeoweb.git"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@opengeoweb/shared": "
|
|
11
|
+
"@opengeoweb/shared": "14.0.1",
|
|
12
12
|
"react-redux": "^9.2.0",
|
|
13
|
-
"@opengeoweb/store": "
|
|
14
|
-
"@opengeoweb/time-slider": "
|
|
13
|
+
"@opengeoweb/store": "14.0.1",
|
|
14
|
+
"@opengeoweb/time-slider": "14.0.1",
|
|
15
15
|
"@reduxjs/toolkit": "^2.6.1",
|
|
16
|
-
"@opengeoweb/webmap-react": "
|
|
17
|
-
"@opengeoweb/webmap": "
|
|
18
|
-
"@opengeoweb/theme": "
|
|
16
|
+
"@opengeoweb/webmap-react": "14.0.1",
|
|
17
|
+
"@opengeoweb/webmap": "14.0.1",
|
|
18
|
+
"@opengeoweb/theme": "14.0.1",
|
|
19
19
|
"axios": "^1.7.7",
|
|
20
|
-
"@opengeoweb/layer-select": "
|
|
20
|
+
"@opengeoweb/layer-select": "14.0.1",
|
|
21
21
|
"lodash": "^4.17.21",
|
|
22
22
|
"ol": "^10.4.0",
|
|
23
23
|
"react-sortablejs": "^6.1.4",
|
|
24
24
|
"sortablejs": "^1.15.1",
|
|
25
25
|
"@mui/system": "^7.3.2",
|
|
26
|
-
"@opengeoweb/snackbar": "
|
|
26
|
+
"@opengeoweb/snackbar": "14.0.1",
|
|
27
27
|
"react-router-dom": "^6.21.0",
|
|
28
28
|
"react-draggable": "^4.4.6",
|
|
29
29
|
"i18next": "^25.0.1",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@mui/material": "^7.0.1",
|
|
33
33
|
"@sentry/react": "^8.34.0",
|
|
34
34
|
"@tanstack/react-query": "^5.85.5",
|
|
35
|
-
"@opengeoweb/api": "
|
|
35
|
+
"@opengeoweb/api": "14.0.1",
|
|
36
36
|
"@types/geojson": "^7946.0.14"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
@@ -8,7 +8,9 @@ export declare enum LatestOptions {
|
|
|
8
8
|
LATEST_3 = "Latest -3"
|
|
9
9
|
}
|
|
10
10
|
declare const DimensionSelectValue: FC<{
|
|
11
|
-
selectedDimension?: mapTypes.Dimension
|
|
11
|
+
selectedDimension?: Omit<mapTypes.Dimension, 'currentValue'> & {
|
|
12
|
+
currentValue?: string;
|
|
13
|
+
};
|
|
12
14
|
generatedValues: string[];
|
|
13
15
|
icon?: ElementType;
|
|
14
16
|
tooltip: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/LoadDuration/LoadDuration.d.ts
CHANGED
|
@@ -7,4 +7,12 @@ declare const LoadDuration: React.FC<{
|
|
|
7
7
|
mapId: string;
|
|
8
8
|
layerId: string;
|
|
9
9
|
}>;
|
|
10
|
+
/**
|
|
11
|
+
* Hook to subscribe to changes in the load duration for a map layer.
|
|
12
|
+
* This will only trigger a render when the load duration rounded down to seconds changes for the given layer and map combination
|
|
13
|
+
* @param mapId
|
|
14
|
+
* @param layerId
|
|
15
|
+
* @returns {number}
|
|
16
|
+
*/
|
|
17
|
+
export declare const useLoadDurationLabel: (mapId: string, layerId: string) => [string | undefined, number];
|
|
10
18
|
export default LoadDuration;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface LoadingIndicatorProgressBarProps {
|
|
2
|
+
progressPercentage: number;
|
|
3
|
+
width?: number;
|
|
4
|
+
height?: number;
|
|
5
|
+
top?: number;
|
|
6
|
+
left?: number;
|
|
7
|
+
}
|
|
8
|
+
declare const LoadingIndicatorProgressBar: ({ progressPercentage, width: loadingBarWidthInPx, height: loadingBarHeightPx, top, left, }: LoadingIndicatorProgressBarProps) => React.ReactElement;
|
|
9
|
+
export default LoadingIndicatorProgressBar;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -8,3 +8,4 @@ export declare const LayerManagerConnectLightTheme: Story;
|
|
|
8
8
|
export declare const LayerManagerConnectDarkTheme: Story;
|
|
9
9
|
export declare const LayerManagerConnectWithMultiMaps: () => React.ReactElement;
|
|
10
10
|
export declare const LayerManagerConnectWithTiledMap: () => React.ReactElement;
|
|
11
|
+
export declare const LayerManagerConnectRefTime: Story;
|
|
@@ -5,4 +5,5 @@ export { default as LayerManagerLayerContainerRow } from './LayerContainerRow/La
|
|
|
5
5
|
export { default as LayerManagerBaseLayerRow } from './BaseLayerRow/BaseLayerRow';
|
|
6
6
|
export { default as LayerManagerConnect } from './LayerManagerConnect';
|
|
7
7
|
export { default as LayerManagerMapButtonConnect } from './LayerManagerMapButtonConnect';
|
|
8
|
+
export { default as LoadingIndicatorProgressBar } from './LayerContainerRow/LayerRow/LoadDuration/LoadingIndicatorProgressBar';
|
|
8
9
|
export { useFetchServices } from './useFetchServices';
|
|
@@ -3,7 +3,7 @@ import { layerTypes } from '@opengeoweb/store';
|
|
|
3
3
|
import { StyleLike } from 'ol/style/Style';
|
|
4
4
|
import { HoverSelect } from '@opengeoweb/webmap-react';
|
|
5
5
|
interface OpenLayersFeatureLayerConnectProps {
|
|
6
|
-
layer: layerTypes.
|
|
6
|
+
layer: layerTypes.ReduxLayer;
|
|
7
7
|
layerId?: string;
|
|
8
8
|
zIndex: number;
|
|
9
9
|
style: StyleLike;
|
|
@@ -3,6 +3,7 @@ import { Dimension } from '@opengeoweb/webmap';
|
|
|
3
3
|
import { MapLocation, OnInitializeLayerProps, TimeContextType, UpdateLayerInfoPayload } from '@opengeoweb/webmap-react';
|
|
4
4
|
import { Feature, View } from 'ol';
|
|
5
5
|
export declare const makePrefetchTimeSpan: (timeSliderStartCenterEndTime: TimeSliderStartCenterEndTime, isAnimating: boolean, prefetchList: number[]) => TimeContextType;
|
|
6
|
+
export declare const usePrefetchTimeSpan: (timeSliderStartCenterEndTime: TimeSliderStartCenterEndTime, isAnimating: boolean, animationList: number[]) => TimeContextType;
|
|
6
7
|
export declare const makeLayerInfoPayload: (payload: OnInitializeLayerProps, mapDimensions: Dimension[], mapId: string) => UpdateLayerInfoPayload;
|
|
7
8
|
export declare const getCenterOfLinkedFeature: (feature: Feature | undefined, srs: string) => MapLocation | null;
|
|
8
9
|
interface UseFitAndHighlightWarningFeatureOptions {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useMapViewLoadingIndicator: (mapId: string, layerIds: string[]) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Position, Source } from '@opengeoweb/shared';
|
|
3
|
+
import { Feature } from 'geojson';
|
|
4
|
+
export interface SelectedFeaturesDialogProps {
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
isOpen: boolean;
|
|
7
|
+
onMouseDown?: () => void;
|
|
8
|
+
order?: number;
|
|
9
|
+
source?: Source;
|
|
10
|
+
startPosition?: Position;
|
|
11
|
+
features: Record<string, Feature>;
|
|
12
|
+
}
|
|
13
|
+
declare const SelectedFeaturesDialog: React.FC<SelectedFeaturesDialogProps>;
|
|
14
|
+
export default SelectedFeaturesDialog;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react/*';
|
|
2
|
+
import { SelectedFeaturesDialogConnect } from './SelectedFeaturesDialogConnect';
|
|
3
|
+
declare const meta: Meta<typeof SelectedFeaturesDialogConnect>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof SelectedFeaturesDialogConnect>;
|
|
6
|
+
export declare const SelectedFeaturesDialogConnectDemoLight: Story;
|
|
7
|
+
export declare const SelectedFeaturesDialogConnectDemoDark: Story;
|
|
@@ -6,6 +6,10 @@ interface TimeSliderCurrentTimeBoxConnectComponentProps {
|
|
|
6
6
|
centerTime?: number;
|
|
7
7
|
secondsPerPx?: number;
|
|
8
8
|
span?: number;
|
|
9
|
+
linkedMapAnimationInfo?: {
|
|
10
|
+
id: string;
|
|
11
|
+
isAnimating: boolean;
|
|
12
|
+
};
|
|
9
13
|
isAutoUpdating?: boolean;
|
|
10
14
|
setCenterTime?: typeof mapActions.setTimeSliderCenterTime;
|
|
11
15
|
unfilteredSelectedTime: number;
|
|
@@ -21,6 +25,10 @@ export declare const TimeSliderCurrentTimeBoxConnect: import("react-redux").Conn
|
|
|
21
25
|
centerTime?: number | undefined;
|
|
22
26
|
secondsPerPx?: number | undefined;
|
|
23
27
|
span?: number | undefined;
|
|
28
|
+
linkedMapAnimationInfo?: {
|
|
29
|
+
id: string;
|
|
30
|
+
isAnimating: boolean;
|
|
31
|
+
} | undefined;
|
|
24
32
|
isAutoUpdating?: boolean | undefined;
|
|
25
33
|
setCenterTime?: typeof mapActions.setTimeSliderCenterTime | undefined;
|
|
26
34
|
context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").UnknownAction> | null> | undefined;
|
package/src/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LayerManagerConnect, LayerManagerHeaderOptions, LayerManagerDescriptionRow, LayerManagerLayerContainerRow, LayerManagerBaseLayerRow, LayerManagerMapButtonConnect, LayerManager, useFetchServices } from './components/LayerManager';
|
|
1
|
+
import { LayerManagerConnect, LayerManagerHeaderOptions, LayerManagerDescriptionRow, LayerManagerLayerContainerRow, LayerManagerBaseLayerRow, LayerManagerMapButtonConnect, LayerManager, LoadingIndicatorProgressBar, useFetchServices } from './components/LayerManager';
|
|
2
2
|
import { MultiDimensionSelectMapButtonsConnect, MultiMapDimensionSelectConnect } from './components/MultiMapDimensionSelectConnect';
|
|
3
3
|
export * from './components/ComponentsLookUp';
|
|
4
4
|
export * from './components/ConfigurableMapConnect';
|
|
@@ -7,7 +7,7 @@ export * from './components/MultiMapViewConnect/MultiMapViewConnect';
|
|
|
7
7
|
export * from './components/MultiMapViewConnect/HarmoniePresets';
|
|
8
8
|
export * from './components/MapViewConnect';
|
|
9
9
|
export { LegendConnect, LegendMapButtonConnect, } from './components/LegendConnect';
|
|
10
|
-
export { LayerManagerConnect, LayerManagerHeaderOptions, LayerManagerDescriptionRow, LayerManagerBaseLayerRow, LayerManagerLayerContainerRow, LayerManagerMapButtonConnect, LayerManager, useFetchServices, };
|
|
10
|
+
export { LayerManagerConnect, LayerManagerHeaderOptions, LayerManagerDescriptionRow, LayerManagerBaseLayerRow, LayerManagerLayerContainerRow, LayerManagerMapButtonConnect, LayerManager, LoadingIndicatorProgressBar, useFetchServices, };
|
|
11
11
|
export { MultiDimensionSelectMapButtonsConnect, MultiMapDimensionSelectConnect, };
|
|
12
12
|
export * as testLayers from './utils/testLayers';
|
|
13
13
|
export * from './utils/jsonPresetFilter';
|
|
@@ -19,6 +19,7 @@ export * from './components/TimeSliderConnect';
|
|
|
19
19
|
export * from './components/LayerInfoConnect';
|
|
20
20
|
export * from './components/SentryRecordButton';
|
|
21
21
|
export * from './components/LanguageSelect';
|
|
22
|
+
export * from './components/SelectedFeaturesDialog/SelectedFeaturesDialogConnect';
|
|
22
23
|
export { useLocationDetail, useLocationList } from './utils/location-api/hooks';
|
|
23
24
|
export { fakeLocationDetailList, fakeLocationList, locationApiEndpoints, } from './utils/location-api/fakeApi';
|
|
24
25
|
export * as storyUtils from './utils/storyUtils';
|
package/src/lib/store/store.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export declare const coreReducerMap: {
|
|
|
8
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
9
|
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>;
|
|
10
10
|
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>;
|
|
11
|
+
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>>;
|
|
11
12
|
};
|
|
12
13
|
export declare const coreMiddlewares: import("@reduxjs/toolkit").ListenerMiddleware<import("@opengeoweb/store").CoreAppStore, import("redux-thunk").ThunkDispatch<import("@opengeoweb/store").CoreAppStore, unknown, import("redux").UnknownAction>, unknown>[];
|
|
13
14
|
export declare const createMockStore: (mockState?: WebMapStateModuleState | SynchronizationGroupModuleState | UIModuleState | SnackbarModuleStore) => Store;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import type { Meta } from '@storybook/react-webpack5';
|
|
3
|
-
import { TimeAwareEDRLocationLayer } from '@opengeoweb/webmap-react';
|
|
4
|
-
declare const meta: Meta<typeof TimeAwareEDRLocationLayer>;
|
|
5
|
-
export default meta;
|
|
6
|
-
export declare const EDRLocationDefault: {
|
|
7
|
-
(): React.ReactElement;
|
|
8
|
-
parameters: {
|
|
9
|
-
msw: {
|
|
10
|
-
handlers: {
|
|
11
|
-
locations: import("msw").HttpHandler[];
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
};
|