@opengeoweb/core 13.1.1 → 14.0.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.
Files changed (28) hide show
  1. package/index.esm.js +821 -171
  2. package/package.json +10 -10
  3. package/src/lib/components/LayerInfoConnect/LayerInfoButtonConnect.d.ts +1 -0
  4. package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelectValue.d.ts +3 -1
  5. package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelectValue.spec.d.ts +1 -0
  6. package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/LoadDuration/LoadDuration.d.ts +8 -0
  7. package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/LoadDuration/LoadingIndicatorProgressBar.d.ts +9 -0
  8. package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/LoadDuration/LoadingIndicatorProgressBar.spec.d.ts +1 -0
  9. package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/Menubutton/MenuButton.d.ts +1 -0
  10. package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderLayers/RenderFeatureLayers.d.ts +6 -0
  11. package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/SelectableFeaturesCheckbox/SelectableFeaturesCheckbox.d.ts +8 -0
  12. package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/SelectableFeaturesCheckbox/SelectableFeaturesCheckboxConnect.d.ts +6 -0
  13. package/src/lib/components/LayerManager/LayerManagerConnect.stories.d.ts +1 -0
  14. package/src/lib/components/LayerManager/index.d.ts +1 -0
  15. package/src/lib/components/MapDrawToolRedux/OpenLayersFeatureLayerConnect.d.ts +1 -1
  16. package/src/lib/components/MapViewConnect/olMapUtils.d.ts +1 -0
  17. package/src/lib/components/MapViewConnect/useMapViewLoadingIndicator.d.ts +1 -0
  18. package/src/lib/components/MapViewConnect/useMapViewLoadingIndicator.spec.d.ts +1 -0
  19. package/src/lib/components/SelectedFeaturesDialog/SelectedFeature.d.ts +8 -0
  20. package/src/lib/components/SelectedFeaturesDialog/SelectedFeaturesDialog.d.ts +14 -0
  21. package/src/lib/components/SelectedFeaturesDialog/SelectedFeaturesDialogConnect.d.ts +2 -0
  22. package/src/lib/components/SelectedFeaturesDialog/SelectedFeaturesDialogConnect.spec.d.ts +1 -0
  23. package/src/lib/components/SelectedFeaturesDialog/SelectedFeaturesDialogConnect.stories.d.ts +7 -0
  24. package/src/lib/components/SelectedFeaturesDialog/storyUtils.d.ts +3 -0
  25. package/src/lib/components/TimeSliderConnect/TimeSliderCurrentTimeBoxConnect.d.ts +8 -0
  26. package/src/lib/index.d.ts +3 -2
  27. package/src/lib/store/store.d.ts +1 -0
  28. 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": "13.1.1",
3
+ "version": "14.0.0",
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": "13.1.1",
11
+ "@opengeoweb/shared": "14.0.0",
12
12
  "react-redux": "^9.2.0",
13
- "@opengeoweb/store": "13.1.1",
14
- "@opengeoweb/time-slider": "13.1.1",
13
+ "@opengeoweb/store": "14.0.0",
14
+ "@opengeoweb/time-slider": "14.0.0",
15
15
  "@reduxjs/toolkit": "^2.6.1",
16
- "@opengeoweb/webmap-react": "13.1.1",
17
- "@opengeoweb/webmap": "13.1.1",
18
- "@opengeoweb/theme": "13.1.1",
16
+ "@opengeoweb/webmap-react": "14.0.0",
17
+ "@opengeoweb/webmap": "14.0.0",
18
+ "@opengeoweb/theme": "14.0.0",
19
19
  "axios": "^1.7.7",
20
- "@opengeoweb/layer-select": "13.1.1",
20
+ "@opengeoweb/layer-select": "14.0.0",
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": "13.1.1",
26
+ "@opengeoweb/snackbar": "14.0.0",
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": "13.1.1",
35
+ "@opengeoweb/api": "14.0.0",
36
36
  "@types/geojson": "^7946.0.14"
37
37
  },
38
38
  "peerDependencies": {
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import { uiTypes } from '@opengeoweb/store';
3
3
  interface LayerInfoButtonProps {
4
4
  isLayerMissing?: boolean;
5
+ isFeatureLayer?: boolean;
5
6
  mapId: string;
6
7
  serviceUrl: string;
7
8
  layerName: string;
@@ -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;
@@ -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;
@@ -2,6 +2,7 @@ import * as React from 'react';
2
2
  interface LayerManagerButtonProps {
3
3
  mapId: string;
4
4
  layerId?: string;
5
+ isFeatureLayer?: boolean;
5
6
  onLayerDuplicate?: (payload: {
6
7
  mapId: string;
7
8
  layerId: string;
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ export interface RenderFeatureLayersProps {
3
+ layerName: string;
4
+ }
5
+ declare const RenderFeatureLayers: React.FC<RenderFeatureLayersProps>;
6
+ export default RenderFeatureLayers;
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ interface SelectableFeaturesProps {
3
+ layerId: string;
4
+ isSelectable: boolean;
5
+ onToggleSelectable: () => void;
6
+ }
7
+ declare const SelectableFeatures: React.FC<SelectableFeaturesProps>;
8
+ export default SelectableFeatures;
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ interface SelectableFeaturesCheckboxConnectProps {
3
+ layerId: string;
4
+ }
5
+ declare const SelectableFeaturesCheckboxConnect: React.FC<SelectableFeaturesCheckboxConnectProps>;
6
+ export default SelectableFeaturesCheckboxConnect;
@@ -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.FeatureLayer;
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,8 @@
1
+ import React from 'react';
2
+ import { Feature } from 'geojson';
3
+ export interface SelectedFeatureProps {
4
+ feature: Feature;
5
+ layerName: string;
6
+ }
7
+ declare const SelectedFeature: React.FC<SelectedFeatureProps>;
8
+ export default SelectedFeature;
@@ -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,2 @@
1
+ import * as React from 'react';
2
+ export declare const SelectedFeaturesDialogConnect: React.FC;
@@ -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;
@@ -0,0 +1,3 @@
1
+ import { WebMapStateModuleState } from '@opengeoweb/store';
2
+ declare const mockState: WebMapStateModuleState;
3
+ export default mockState;
@@ -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;
@@ -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';
@@ -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
- };