@opengeoweb/core 2.13.0 → 3.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 (42) hide show
  1. package/index.esm.js +249 -209
  2. package/index.umd.js +305 -270
  3. package/lib/components/ConfigurableMap/ConfigurableMapConnect.d.ts +1 -0
  4. package/lib/components/LayerManager/AddLayersButton/AddLayersButton.d.ts +0 -2
  5. package/lib/components/LayerManager/AddLayersPopup/AddLayersPopup.d.ts +0 -2
  6. package/lib/components/LayerManager/BaseLayerRow/BaseLayers/BaseLayersConnect.d.ts +1 -0
  7. package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.d.ts +0 -2
  8. package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopup.d.ts +3 -1
  9. package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopupConnect.d.ts +1 -0
  10. package/lib/components/Legend/LegendConnect.d.ts +1 -1
  11. package/lib/components/MapView/MapViewConnect.LayerChangeEnabledOpacity.stories.d.ts +2 -2
  12. package/lib/components/MapView/MapViewConnect.MapPin.stories.d.ts +4 -0
  13. package/lib/components/MapView/MapViewConnect.stories.d.ts +0 -1
  14. package/lib/components/MapWarning/MapWarningProperties.d.ts +16 -1
  15. package/lib/components/MultiMapDimensionSelect/DimensionSelectSlider.d.ts +1 -1
  16. package/lib/components/ReactMapView/ReactMapView.d.ts +1 -0
  17. package/lib/components/SyncGroups/SimpleTimeSliderConnect.d.ts +11 -1
  18. package/lib/components/TimeSlider/TimeSliderButtons/AutoUpdateButton/AutoUpdateButtonConnect.d.ts +8 -1
  19. package/lib/components/TimeSlider/TimeSliderButtons/PlayButton/PlayButtonConnect.d.ts +27 -2
  20. package/lib/components/TimeSlider/TimeSliderButtons/SpeedButton/SpeedButtonConnect.d.ts +2 -2
  21. package/lib/components/TimeSlider/TimeSliderConnect.d.ts +13 -1
  22. package/lib/components/TimeSlider/TimeSliderLegend/TimeSliderLegendConnect.d.ts +26 -1
  23. package/lib/components/TimeSlider/TimeSliderRail/TimeSliderRailConnect.d.ts +21 -2
  24. package/lib/components/TimeSlider/TimeSliderScaleSlider/TimeSliderScaleSliderConnect.d.ts +15 -1
  25. package/lib/components/WMSLoader/WMSLayerTree/WMSLayerTreeConnect.d.ts +14 -1
  26. package/lib/components/WMSLoader/services.d.ts +1 -0
  27. package/lib/index.d.ts +1 -0
  28. package/lib/store/layerSelect/types.d.ts +2 -0
  29. package/lib/store/mapStore/layers/reducer.d.ts +3 -1
  30. package/lib/store/mapStore/layers/selectors.d.ts +5 -5
  31. package/lib/store/mapStore/layers/types.d.ts +1 -0
  32. package/lib/store/mapStore/map/selectors.d.ts +4 -4
  33. package/lib/store/mapStore/map/types.d.ts +1 -0
  34. package/lib/store/mapStore/map/utils.d.ts +2 -1
  35. package/lib/store/mapStore/service/selectors.d.ts +2 -0
  36. package/lib/store/mapStore/service/types.d.ts +1 -0
  37. package/package.json +8 -7
  38. package/lib/components/CustomSwitch/CustomSwitch.d.ts +0 -3
  39. package/lib/components/CustomSwitch/CustomSwitch.spec.d.ts +0 -1
  40. package/lib/components/CustomSwitch/CustomSwitch.stories.d.ts +0 -7
  41. package/lib/components/CustomSwitch/index.d.ts +0 -1
  42. package/lib/components/MapView/MapViewConnect.DisableMapPin.stories.d.ts +0 -5
@@ -28,5 +28,6 @@ export interface ConfigurableMapConnectProps {
28
28
  displayLayerManagerAndLegendButtonInMap?: boolean;
29
29
  displayDimensionSelectButtonInMap?: boolean;
30
30
  multiLegend?: boolean;
31
+ shouldShowLayerManager?: boolean;
31
32
  }
32
33
  export declare const ConfigurableMapConnect: React.FC<ConfigurableMapConnectProps>;
@@ -2,9 +2,7 @@ import * as React from 'react';
2
2
  import { Service } from '../../WMSLoader/services';
3
3
  import { LayerType } from '../../../store/mapStore/types';
4
4
  interface AddLayerButtonProps {
5
- onClickService?: (serviceURL: string, layerName: string) => void;
6
5
  onRenderTree?: (service: Service) => React.ReactChild;
7
- highlightedLayers?: [];
8
6
  preloadedServices?: Service[];
9
7
  tooltip?: string;
10
8
  layerType?: LayerType;
@@ -2,9 +2,7 @@ import * as React from 'react';
2
2
  import { LayerType } from '../../../store/mapStore/types';
3
3
  import { Service } from '../../WMSLoader/services';
4
4
  interface AddLayerPopupProps {
5
- onClickService?: (serviceURL: string, layerName: string) => void;
6
5
  onRenderTree?: (service: Service) => React.ReactChild;
7
- highlightedLayers?: [];
8
6
  preloadedServices?: Service[];
9
7
  open?: boolean;
10
8
  handleClose?: () => void;
@@ -2,6 +2,7 @@ import * as React from 'react';
2
2
  import { Layer } from '../../../../store/mapStore/types';
3
3
  export declare const constructLayerId: (baseLayer: Layer, selectedBaseLayers: Layer[]) => string;
4
4
  export declare const constructListAvailableBaseLayers: (selectedBaseLayers: Layer[], preloadedAvailableBaseLayers: Layer[], mapId: string) => Layer[];
5
+ export declare const areAvailableBaseLayersSame: (availableBaseLayerList: Layer[], newBaseLayerList: Layer[]) => boolean;
5
6
  interface BaseLayersConnectProps {
6
7
  mapId: string;
7
8
  preloadedAvailableBaseLayers: Layer[];
@@ -1,10 +1,8 @@
1
1
  import * as React from 'react';
2
- import { ReduxLayer } from '../../../../store/mapStore/layers/types';
3
2
  import { ActiveServiceObject } from '../../../../store/layerSelect/types';
4
3
  interface ServiceOptionsDialogProps {
5
4
  services: Record<string, ActiveServiceObject>;
6
5
  mapStoreRemoveService?: (serviceId: string, serviceUrl: string) => void;
7
- layers?: ReduxLayer[];
8
6
  }
9
7
  declare const ServiceOptionsDialog: React.FC<ServiceOptionsDialogProps>;
10
8
  export default ServiceOptionsDialog;
@@ -1,12 +1,14 @@
1
1
  import * as React from 'react';
2
2
  import { SetLayersForServicePayload } from '../../../../store/mapStore/types';
3
+ import { ActiveServices } from '../../../../store/layerSelect/types';
3
4
  interface ServicePopupProps {
4
5
  servicePopupVariant: 'edit' | 'add' | 'save';
5
6
  hideBackdrop?: boolean;
6
7
  isOpen?: boolean;
7
8
  closePopup?: () => void;
9
+ serviceId?: string;
8
10
  url?: string;
9
- services?: any;
11
+ services?: ActiveServices;
10
12
  serviceSetLayers: (payload: SetLayersForServicePayload) => void;
11
13
  }
12
14
  export declare const ADD_HEADING = "Add a new service";
@@ -4,6 +4,7 @@ interface ServicePopupConnectProps {
4
4
  hideBackdrop?: boolean;
5
5
  isOpen?: boolean;
6
6
  closePopup?: () => void;
7
+ serviceId?: string;
7
8
  url?: string;
8
9
  }
9
10
  declare const ServicePopupConnect: React.FC<ServicePopupConnectProps>;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { Source } from '../../store/ui/types';
3
- export declare const IS_LEGEND_OPEN_BY_DEFAULT = true;
3
+ export declare const IS_LEGEND_OPEN_BY_DEFAULT = false;
4
4
  interface LegendConnectProps {
5
5
  showMapId?: boolean;
6
6
  source?: Source;
@@ -3,7 +3,7 @@ import { layerActions } from '../../store';
3
3
  import { Layer } from '../../store/mapStore/types';
4
4
  export interface LayerChangeOpacityInputProps {
5
5
  mapId: string;
6
- layerChangeOpacity: typeof layerActions.layerChangeOpacity;
7
- layers: Layer[];
6
+ layerChangeOpacity?: typeof layerActions.layerChangeOpacity;
7
+ layers?: Layer[];
8
8
  }
9
9
  export declare const LayerChangeEnableOpacityAction: () => React.ReactElement;
@@ -3,4 +3,8 @@ export declare const SetMapPinAction: {
3
3
  (): React.ReactElement;
4
4
  storyName: string;
5
5
  };
6
+ export declare const SetMapPinActionDisabled: {
7
+ (): React.ReactElement;
8
+ storyName: string;
9
+ };
6
10
  export declare const ToggleMapPinAction: () => React.ReactElement;
@@ -9,7 +9,6 @@ export * from './MapViewConnect.SetBaseLayers.stories';
9
9
  export * from './MapViewConnect.ToggleControls.stories';
10
10
  export * from './MapViewConnect.FeatureLayers.stories';
11
11
  export * from './MapViewConnect.MapPin.stories';
12
- export * from './MapViewConnect.DisableMapPin.stories';
13
12
  export * from './MapViewConnect.SelectorTest.stories';
14
13
  declare const _default: {
15
14
  title: string;
@@ -1,6 +1,21 @@
1
1
  import React from 'react';
2
2
  interface WarningListProps {
3
- selectedFeatureProperties: any;
3
+ selectedFeatureProperties: {
4
+ identifier?: string;
5
+ areaDesc?: string;
6
+ severity?: string;
7
+ certainty?: string;
8
+ onset?: string;
9
+ expires?: string;
10
+ languages?: Language[];
11
+ };
12
+ }
13
+ interface Language {
14
+ language: string;
15
+ event: string;
16
+ senderName: string;
17
+ headline: string;
18
+ description: string;
4
19
  }
5
20
  export declare const MapWarningProperties: React.FC<WarningListProps>;
6
21
  export {};
@@ -5,7 +5,7 @@ interface DimensionSelectSliderProps {
5
5
  layerName: string;
6
6
  reverse?: boolean;
7
7
  isDisabled?: boolean;
8
- managedValue?: number;
8
+ managedValue?: number | string;
9
9
  validSelection?: boolean;
10
10
  alertColor?: string;
11
11
  onChangeDimensionValue: (dimensionValue: string) => void;
@@ -52,6 +52,7 @@ declare class ReactMapView extends React.Component<ReactMapViewProps, ReactMapVi
52
52
  };
53
53
  shouldAutoFetch: boolean;
54
54
  displayMapPin: boolean;
55
+ disableMapPin: boolean;
55
56
  onMount: () => void;
56
57
  onUnMount: () => void;
57
58
  onMapChangeDimension: () => void;
@@ -1 +1,11 @@
1
- export declare const SimpleTimeSliderConnect: any;
1
+ import React from 'react';
2
+ import { genericActions } from '../../store';
3
+ interface SimpleTimeSliderConnectComponentProps {
4
+ id: string;
5
+ timeValue?: string;
6
+ setTime?: typeof genericActions.setTime;
7
+ syncGroupAddSource?: typeof genericActions.syncGroupAddSource;
8
+ syncGroupRemoveSource?: typeof genericActions.syncGroupRemoveSource;
9
+ }
10
+ export declare const SimpleTimeSliderConnect: import("react-redux").ConnectedComponent<React.FC<SimpleTimeSliderConnectComponentProps>, Omit<SimpleTimeSliderConnectComponentProps, "syncGroupAddSource" | "syncGroupRemoveSource" | "setTime" | "timeValue"> & SimpleTimeSliderConnectComponentProps & import("react-redux").ConnectProps>;
11
+ export {};
@@ -1,2 +1,9 @@
1
- declare const AutoUpdateButtonConnect: any;
1
+ import * as React from 'react';
2
+ import { mapActions } from '../../../../store';
3
+ interface ConnectedAutoUpdateButtonProps {
4
+ mapId: string;
5
+ isAutoUpdating?: boolean;
6
+ toggleAutoUpdate?: typeof mapActions.toggleAutoUpdate;
7
+ }
8
+ declare const AutoUpdateButtonConnect: import("react-redux").ConnectedComponent<import("react-redux").ConnectedComponent<({ mapId, isAutoUpdating, toggleAutoUpdate, }: ConnectedAutoUpdateButtonProps) => JSX.Element, Omit<ConnectedAutoUpdateButtonProps, "toggleAutoUpdate" | "isAutoUpdating"> & ConnectedAutoUpdateButtonProps & import("react-redux").ConnectProps>, (Omit<Omit<ConnectedAutoUpdateButtonProps, "toggleAutoUpdate" | "isAutoUpdating"> & ConnectedAutoUpdateButtonProps & import("react-redux").ConnectProps, "toggleAutoUpdate" | "isAutoUpdating"> | Omit<React.ClassAttributes<React.Component<Omit<ConnectedAutoUpdateButtonProps, "toggleAutoUpdate" | "isAutoUpdating"> & ConnectedAutoUpdateButtonProps & import("react-redux").ConnectProps, any, any>> & Omit<ConnectedAutoUpdateButtonProps, "toggleAutoUpdate" | "isAutoUpdating"> & ConnectedAutoUpdateButtonProps & import("react-redux").ConnectProps, "toggleAutoUpdate" | "isAutoUpdating">) & ConnectedAutoUpdateButtonProps & import("react-redux").ConnectProps>;
2
9
  export default AutoUpdateButtonConnect;
@@ -1,4 +1,5 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
+ import { ConnectedProps } from 'react-redux';
2
3
  import { mapActions } from '../../../../store';
3
4
  export declare const animationIntervalDefault = 5;
4
5
  export interface PlayButtonConnectProps {
@@ -12,5 +13,29 @@ export interface PlayButtonConnectProps {
12
13
  timeStep?: number;
13
14
  linkedMapAnimationInfo?: any;
14
15
  }
15
- declare const PlayButtonConnect: React.FC<PlayButtonConnectProps>;
16
+ declare const connectRedux: import("react-redux").InferableComponentEnhancerWithProps<{
17
+ animationStartTime: string;
18
+ animationEndTime: string;
19
+ timeStep: number;
20
+ linkedMapAnimationInfo: {
21
+ isAnimating: boolean;
22
+ id: string;
23
+ };
24
+ } & {
25
+ mapStartAnimation: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<import("../../../../store/mapStore/types").SetMapAnimationStartPayload, string>;
26
+ mapStopAnimation: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<import("../../../../store/mapStore/types").SetMapAnimationStopPayload, string>;
27
+ }, PlayButtonConnectProps>;
28
+ declare type Props = PlayButtonConnectProps & ConnectedProps<typeof connectRedux>;
29
+ declare const PlayButtonConnect: import("react-redux").ConnectedComponent<({ mapId, animationStartTime, animationEndTime, isDisabled, timeStep, linkedMapAnimationInfo, mapStartAnimation, mapStopAnimation, }: Props) => JSX.Element, Omit<PlayButtonConnectProps & {
30
+ animationStartTime: string;
31
+ animationEndTime: string;
32
+ timeStep: number;
33
+ linkedMapAnimationInfo: {
34
+ isAnimating: boolean;
35
+ id: string;
36
+ };
37
+ } & {
38
+ mapStartAnimation: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<import("../../../../store/mapStore/types").SetMapAnimationStartPayload, string>;
39
+ mapStopAnimation: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<import("../../../../store/mapStore/types").SetMapAnimationStopPayload, string>;
40
+ }, "mapStartAnimation" | "mapStopAnimation" | "animationStartTime" | "animationEndTime" | "timeStep" | "linkedMapAnimationInfo"> & PlayButtonConnectProps & import("react-redux").ConnectProps>;
16
41
  export default PlayButtonConnect;
@@ -1,9 +1,9 @@
1
- import * as React from 'react';
1
+ /// <reference types="react" />
2
2
  import { mapActions } from '../../../../store';
3
3
  interface SpeedButtonConnectProps {
4
4
  animationDelay?: number;
5
5
  mapId: string;
6
6
  setMapAnimationDelay?: typeof mapActions.setAnimationDelay;
7
7
  }
8
- declare const SpeedButtonConnect: React.FC<SpeedButtonConnectProps>;
8
+ declare const SpeedButtonConnect: import("react-redux").ConnectedComponent<({ animationDelay, mapId, setMapAnimationDelay, }: SpeedButtonConnectProps) => JSX.Element, Omit<SpeedButtonConnectProps, "animationDelay" | "setMapAnimationDelay"> & SpeedButtonConnectProps & import("react-redux").ConnectProps>;
9
9
  export default SpeedButtonConnect;
@@ -1,3 +1,15 @@
1
+ import * as React from 'react';
2
+ import { mapActions } from '../../store';
3
+ interface TimeSliderConnectProps {
4
+ sourceId: string;
5
+ mapId: string;
6
+ isTimeSliderHoverOn?: boolean;
7
+ isTimeSliderVisible?: boolean;
8
+ isAlwaysVisible?: boolean;
9
+ toggleTimeSliderHover?: typeof mapActions.toggleTimeSliderHover;
10
+ toggleTimeSliderIsVisible?: typeof mapActions.toggleTimeSliderIsVisible;
11
+ activeWindowId?: string;
12
+ }
1
13
  /**
2
14
  * TimeSlider component with components connected to the store displaying the time slider
3
15
  *
@@ -7,5 +19,5 @@
7
19
  * @example
8
20
  * ``` <TimeSliderConnect sourceId="timeslider-1" mapId={mapId} />```
9
21
  */
10
- declare const TimeSliderConnect: any;
22
+ declare const TimeSliderConnect: import("react-redux").ConnectedComponent<React.FC<TimeSliderConnectProps>, Omit<TimeSliderConnectProps, "toggleTimeSliderHover" | "toggleTimeSliderIsVisible" | "isTimeSliderHoverOn" | "activeWindowId" | "isTimeSliderVisible"> & TimeSliderConnectProps & import("react-redux").ConnectProps>;
11
23
  export default TimeSliderConnect;
@@ -1,4 +1,29 @@
1
- declare const _default: any;
1
+ import * as React from 'react';
2
+ import { Dimension, Layer, Scale } from '../../../store/mapStore/types';
3
+ import { mapActions, genericActions } from '../../../store';
4
+ interface TimeSliderLegendConnectProps {
5
+ sourceId?: string;
6
+ mapId: string;
7
+ dimensions?: Dimension[];
8
+ scale?: Scale;
9
+ centerTime?: number;
10
+ secondsPerPx?: number;
11
+ dataScaleToSecondsPerPx?: number;
12
+ layers?: Layer[];
13
+ isAnimating?: boolean;
14
+ timeStep?: number;
15
+ isTimeSliderHoverOn?: boolean;
16
+ animationStartTime?: string;
17
+ animationEndTime?: string;
18
+ activeWindowId?: string;
19
+ stopMapAnimation?: typeof mapActions.mapStopAnimation;
20
+ setTime?: typeof genericActions.setTime;
21
+ syncGroupAddSource?: typeof genericActions.syncGroupAddSource;
22
+ syncGroupRemoveSource?: typeof genericActions.syncGroupRemoveSource;
23
+ mapSetTimeSliderCenterTime?: typeof mapActions.setTimeSliderCenterTime;
24
+ mapSetTimeSliderSecondsPerPx?: typeof mapActions.setTimeSliderSecondsPerPx;
25
+ }
26
+ declare const _default: import("react-redux").ConnectedComponent<React.FC<TimeSliderLegendConnectProps>, Omit<TimeSliderLegendConnectProps, "syncGroupAddSource" | "syncGroupRemoveSource" | "layers" | "dimensions" | "scale" | "centerTime" | "secondsPerPx" | "dataScaleToSecondsPerPx" | "isAnimating" | "timeStep" | "isTimeSliderHoverOn" | "animationStartTime" | "animationEndTime" | "activeWindowId" | "stopMapAnimation" | "setTime" | "mapSetTimeSliderCenterTime" | "mapSetTimeSliderSecondsPerPx"> & TimeSliderLegendConnectProps & import("react-redux").ConnectProps>;
2
27
  /**
3
28
  * TimeSliderLegend component connected to the store displaying a legend of the time slider
4
29
  *
@@ -1,8 +1,27 @@
1
1
  import * as React from 'react';
2
- interface TimeSliderRailConnectProps {
2
+ import { mapActions, genericActions } from '../../../store';
3
+ import { Dimension, Layer, Scale } from '../../../store/mapStore/types';
4
+ interface TimeSliderRailConnectComponentProps {
3
5
  sourceId: string;
4
6
  mapId: string;
7
+ dimensions?: Dimension[];
8
+ timeStep?: number;
9
+ layers?: Layer[];
10
+ animationStartTime?: string;
11
+ animationEndTime?: string;
12
+ isAnimating?: boolean;
13
+ centerTime?: number;
14
+ secondsPerPx?: number;
5
15
  isTimeSliderHoverOn?: boolean;
16
+ scale?: Scale;
17
+ activeWindowId?: string;
18
+ setAnimationStartTime?: typeof mapActions.setAnimationStartTime;
19
+ setAnimationEndTime?: typeof mapActions.setAnimationEndTime;
20
+ stopMapAnimation?: typeof mapActions.mapStopAnimation;
21
+ setTime?: typeof genericActions.setTime;
22
+ syncGroupAddSource?: typeof genericActions.syncGroupAddSource;
23
+ syncGroupRemoveSource?: typeof genericActions.syncGroupRemoveSource;
24
+ mapSetTimeSliderCenterTime?: typeof mapActions.setTimeSliderCenterTime;
6
25
  }
7
- declare const TimeSliderRailConnect: React.FC<TimeSliderRailConnectProps>;
26
+ declare const TimeSliderRailConnect: import("react-redux").ConnectedComponent<React.FC<TimeSliderRailConnectComponentProps>, Omit<TimeSliderRailConnectComponentProps, "setAnimationStartTime" | "setAnimationEndTime" | "syncGroupAddSource" | "syncGroupRemoveSource" | "layers" | "dimensions" | "timeStep" | "animationStartTime" | "animationEndTime" | "isAnimating" | "centerTime" | "secondsPerPx" | "isTimeSliderHoverOn" | "scale" | "activeWindowId" | "stopMapAnimation" | "setTime" | "mapSetTimeSliderCenterTime"> & TimeSliderRailConnectComponentProps & import("react-redux").ConnectProps>;
8
27
  export default TimeSliderRailConnect;
@@ -1,3 +1,17 @@
1
+ import * as React from 'react';
2
+ import { mapActions } from '../../../store';
3
+ import { Layer, Dimension, Scale } from '../../../store/mapStore/types';
4
+ export interface ConnectedScaleSliderProps {
5
+ timeSliderScale?: Scale;
6
+ mapId: string;
7
+ layers?: Layer[];
8
+ centerTime?: number;
9
+ secondsPerPx?: number;
10
+ dimensions?: Dimension[];
11
+ mapSetTimeSliderScale?: typeof mapActions.setTimeSliderScale;
12
+ mapSetTimeSliderDataScaleToSecondsPerPx?: typeof mapActions.setTimeSliderDataScaleToSecondsPerPx;
13
+ mapSetTimeSliderCenterTime?: typeof mapActions.setTimeSliderCenterTime;
14
+ }
1
15
  /**
2
16
  * TimeSliderScaleSlider component connected to the store displaying a scale slider of the time slider
3
17
  *
@@ -6,5 +20,5 @@
6
20
  * @example
7
21
  * ``` <TimeSliderScaleSliderConnect mapId={mapId} />```
8
22
  */
9
- declare const TimeSliderScaleSliderConnect: any;
23
+ declare const TimeSliderScaleSliderConnect: import("react-redux").ConnectedComponent<React.FC<ConnectedScaleSliderProps>, Omit<ConnectedScaleSliderProps, "layers" | "timeSliderScale" | "centerTime" | "secondsPerPx" | "dimensions" | "mapSetTimeSliderScale" | "mapSetTimeSliderDataScaleToSecondsPerPx" | "mapSetTimeSliderCenterTime"> & ConnectedScaleSliderProps & import("react-redux").ConnectProps>;
10
24
  export default TimeSliderScaleSliderConnect;
@@ -1,2 +1,15 @@
1
- declare const WMSLayerTreeConnect: any;
1
+ import React from 'react';
2
+ import { Layer, LayerType } from '../../../store/mapStore/types';
3
+ import { layerActions } from '../../../store';
4
+ import { Service } from '../services';
5
+ export interface WMSLayerTreeConnectProps {
6
+ service: Service;
7
+ addLayer?: typeof layerActions.addLayer;
8
+ setBaseLayers?: typeof layerActions.setBaseLayers;
9
+ addAvailableBaseLayer?: typeof layerActions.addAvailableBaseLayer;
10
+ mapId: string;
11
+ loadedLayers?: Layer[];
12
+ layerType?: LayerType;
13
+ }
14
+ declare const WMSLayerTreeConnect: import("react-redux").ConnectedComponent<React.FC<WMSLayerTreeConnectProps>, Omit<WMSLayerTreeConnectProps, "addLayer" | "setBaseLayers" | "addAvailableBaseLayer" | "loadedLayers"> & WMSLayerTreeConnectProps & import("react-redux").ConnectProps>;
2
15
  export default WMSLayerTreeConnect;
@@ -2,4 +2,5 @@ export interface Service {
2
2
  name: string;
3
3
  url: string;
4
4
  id: string;
5
+ isUserAddedService?: boolean;
5
6
  }
package/lib/index.d.ts CHANGED
@@ -71,6 +71,7 @@ export declare const mapActions: {
71
71
  layerSetDimensions: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.SetLayerDimensionsPayload, string>;
72
72
  addAvailableBaseLayer: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.AddAvailableBaseLayerPayload, string>;
73
73
  addAvailableBaseLayers: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.AddAvailableBaseLayersPayload, string>;
74
+ setAvailableBaseLayers: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.AddAvailableBaseLayersPayload, string>;
74
75
  onUpdateLayerInformation: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<mapTypes.UpdateLayerInfoPayload, string>;
75
76
  };
76
77
  export { mapSelectors, mapTypes, mapUtils, layerReducer, layerActions, uiActions, uiSelectors, uiTypes, genericActions as syncGroupActions, };
@@ -3,6 +3,7 @@ export interface ActiveServiceObject {
3
3
  serviceUrl?: string;
4
4
  enabled?: boolean;
5
5
  keywordsPerService?: string[];
6
+ isUserAddedService?: boolean;
6
7
  }
7
8
  export interface ActiveServices {
8
9
  [key: string]: ActiveServiceObject;
@@ -51,6 +52,7 @@ export interface AddKeywordsAndActiveServicesPayload {
51
52
  serviceName: string;
52
53
  serviceUrl: string;
53
54
  keywords: string[];
55
+ isUserAddedService: boolean;
54
56
  }
55
57
  export interface LayerSelectServiceRemovedPayload {
56
58
  serviceId: string;
@@ -1,5 +1,5 @@
1
1
  import { PayloadAction } from '@reduxjs/toolkit';
2
- import { LayerState, Layer, AddLayerPayload, SetLayerDimensionPayload, SetLayerEnabledPayload, SetLayerOpacityPayload, SetLayerStylePayload, SetLayerNamePayload, SetLayerGeojsonPayload, DeleteLayerPayload, ErrorLayerPayload, SetLayersPayload, SetBaseLayersPayload, AddBaseLayerPayload, SetLayerDimensionsPayload, AddAvailableBaseLayerPayload, AddAvailableBaseLayersPayload, UpdateLayerInfoPayload } from './types';
2
+ import { LayerState, Layer, AddLayerPayload, SetLayerDimensionPayload, SetLayerEnabledPayload, SetLayerOpacityPayload, SetLayerStylePayload, SetLayerNamePayload, SetLayerGeojsonPayload, DeleteLayerPayload, ErrorLayerPayload, SetLayersPayload, SetBaseLayersPayload, AddBaseLayerPayload, SetLayerDimensionsPayload, AddAvailableBaseLayerPayload, AddAvailableBaseLayersPayload, UpdateLayerInfoPayload, SetAvailableBaseLayersPayload } from './types';
3
3
  export declare const createLayer: ({ id, opacity, enabled, layerType, status, ...props }: Layer) => Layer;
4
4
  export declare const initialState: LayerState;
5
5
  export declare const slice: import("@reduxjs/toolkit").Slice<LayerState, {
@@ -19,6 +19,7 @@ export declare const slice: import("@reduxjs/toolkit").Slice<LayerState, {
19
19
  layerSetDimensions: (draft: import("immer/dist/internal").WritableDraft<LayerState>, action: PayloadAction<SetLayerDimensionsPayload>) => void;
20
20
  addAvailableBaseLayer: (draft: import("immer/dist/internal").WritableDraft<LayerState>, action: PayloadAction<AddAvailableBaseLayerPayload>) => void;
21
21
  addAvailableBaseLayers: (draft: import("immer/dist/internal").WritableDraft<LayerState>, action: PayloadAction<AddAvailableBaseLayersPayload>) => void;
22
+ setAvailableBaseLayers: (draft: import("immer/dist/internal").WritableDraft<LayerState>, action: PayloadAction<SetAvailableBaseLayersPayload>) => void;
22
23
  onUpdateLayerInformation: (draft: import("immer/dist/internal").WritableDraft<LayerState>, action: PayloadAction<UpdateLayerInfoPayload>) => LayerState;
23
24
  }, "layerReducer">;
24
25
  export declare const reducer: import("@reduxjs/toolkit").Reducer<LayerState, import("@reduxjs/toolkit").AnyAction>;
@@ -39,6 +40,7 @@ export declare const layerActions: import("@reduxjs/toolkit").CaseReducerActions
39
40
  layerSetDimensions: (draft: import("immer/dist/internal").WritableDraft<LayerState>, action: PayloadAction<SetLayerDimensionsPayload>) => void;
40
41
  addAvailableBaseLayer: (draft: import("immer/dist/internal").WritableDraft<LayerState>, action: PayloadAction<AddAvailableBaseLayerPayload>) => void;
41
42
  addAvailableBaseLayers: (draft: import("immer/dist/internal").WritableDraft<LayerState>, action: PayloadAction<AddAvailableBaseLayersPayload>) => void;
43
+ setAvailableBaseLayers: (draft: import("immer/dist/internal").WritableDraft<LayerState>, action: PayloadAction<SetAvailableBaseLayersPayload>) => void;
42
44
  onUpdateLayerInformation: (draft: import("immer/dist/internal").WritableDraft<LayerState>, action: PayloadAction<UpdateLayerInfoPayload>) => LayerState;
43
45
  }>;
44
46
  export declare type LayerActions = ReturnType<typeof layerActions.layerSetDimensions> | ReturnType<typeof layerActions.layerChangeStyle> | ReturnType<typeof layerActions.addAvailableBaseLayer> | ReturnType<typeof layerActions.addAvailableBaseLayers> | ReturnType<typeof layerActions.addBaseLayer> | ReturnType<typeof layerActions.addLayer> | ReturnType<typeof layerActions.baseLayerDelete> | ReturnType<typeof layerActions.onUpdateLayerInformation> | ReturnType<typeof layerActions.layerChangeDimension> | ReturnType<typeof layerActions.layerChangeEnabled> | ReturnType<typeof layerActions.layerChangeGeojson> | ReturnType<typeof layerActions.layerChangeName> | ReturnType<typeof layerActions.layerChangeOpacity> | ReturnType<typeof layerActions.layerDelete> | ReturnType<typeof layerActions.layerError> | ReturnType<typeof layerActions.setBaseLayers> | ReturnType<typeof layerActions.setLayers>;
@@ -1,5 +1,5 @@
1
- import { Dimension } from '@opengeoweb/webmap';
2
1
  import { AppStore } from '../../../types/types';
2
+ import { Dimension } from '../types';
3
3
  import { LayerState, Layer, LayerStatus } from './types';
4
4
  /**
5
5
  * Gets a layer from the layers part of the store by its Id
@@ -139,7 +139,7 @@ export declare const getLayerDimensions: ((state: {
139
139
  services?: import("../types").ServiceState;
140
140
  layers?: LayerState;
141
141
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
142
- }, params_0: string) => import("../types").Dimension[]) & import("reselect").OutputSelectorFields<((args_0: Layer) => import("../types").Dimension[]) & {
142
+ }, params_0: string) => Dimension[]) & import("reselect").OutputSelectorFields<((args_0: Layer) => Dimension[]) & {
143
143
  clearCache: () => void;
144
144
  }> & {
145
145
  clearCache: () => void;
@@ -159,7 +159,7 @@ export declare const getLayerNonTimeDimensions: ((state: {
159
159
  services?: import("../types").ServiceState;
160
160
  layers?: LayerState;
161
161
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
162
- }, params_0: string) => import("../types").Dimension[]) & import("reselect").OutputSelectorFields<((args_0: import("../types").Dimension[]) => import("../types").Dimension[]) & {
162
+ }, params_0: string) => Dimension[]) & import("reselect").OutputSelectorFields<((args_0: Dimension[]) => Dimension[]) & {
163
163
  clearCache: () => void;
164
164
  }> & {
165
165
  clearCache: () => void;
@@ -179,7 +179,7 @@ export declare const getLayerTimeDimension: ((state: {
179
179
  services?: import("../types").ServiceState;
180
180
  layers?: LayerState;
181
181
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
182
- }, params_0: string) => {}) & import("reselect").OutputSelectorFields<((args_0: import("../types").Dimension[]) => {}) & {
182
+ }, params_0: string) => Dimension) & import("reselect").OutputSelectorFields<((args_0: Dimension[]) => Dimension) & {
183
183
  clearCache: () => void;
184
184
  }> & {
185
185
  clearCache: () => void;
@@ -200,7 +200,7 @@ export declare const getLayerDimension: ((state: {
200
200
  services?: import("../types").ServiceState;
201
201
  layers?: LayerState;
202
202
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
203
- }, params_0: string, params_1: string) => Dimension) & import("reselect").OutputSelectorFields<((args_0: import("../types").Dimension[], args_1: string) => Dimension) & {
203
+ }, params_0: string, params_1: string) => Dimension) & import("reselect").OutputSelectorFields<((args_0: Dimension[], args_1: string) => Dimension) & {
204
204
  clearCache: () => void;
205
205
  }> & {
206
206
  clearCache: () => void;
@@ -143,6 +143,7 @@ export interface AddAvailableBaseLayersPayload {
143
143
  layers: ReduxLayer[];
144
144
  origin?: string;
145
145
  }
146
+ export declare type SetAvailableBaseLayersPayload = AddAvailableBaseLayersPayload;
146
147
  export interface ErrorLayerPayload extends LayerPayload {
147
148
  error: Error;
148
149
  }
@@ -1,4 +1,4 @@
1
- import { MapPreset, Scale, WebMap, WebMapState } from './types';
1
+ import { Bbox, MapPreset, Scale, WebMap, WebMapState } from './types';
2
2
  import { AppStore } from '../../../types/types';
3
3
  import { Layer } from '../types';
4
4
  import { UIStoreType } from '../../ui/types';
@@ -270,7 +270,7 @@ export declare const getBbox: ((state: {
270
270
  services?: import("../types").ServiceState;
271
271
  layers?: import("../types").LayerState;
272
272
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
273
- }, params_0: string) => {}) & import("reselect").OutputSelectorFields<((args_0: WebMap) => {}) & {
273
+ }, params_0: string) => Bbox) & import("reselect").OutputSelectorFields<((args_0: WebMap) => Bbox) & {
274
274
  clearCache: () => void;
275
275
  }> & {
276
276
  clearCache: () => void;
@@ -752,7 +752,7 @@ export declare const getPinLocation: ((state: {
752
752
  * Example getDisableMapPin(store);
753
753
  * @param {object} store store: object - store object
754
754
  * @param {string} mapId mapId: string - Id of the map
755
- * @returns {boolean} returnType: boolean or undefined
755
+ * @returns {boolean} returnType: boolean
756
756
  */
757
757
  export declare const getDisableMapPin: ((state: {
758
758
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
@@ -861,7 +861,7 @@ export declare const getMapPreset: ((state: {
861
861
  services?: import("../types").ServiceState;
862
862
  layers?: import("../types").LayerState;
863
863
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
864
- }, params_0: string) => MapPreset) & import("reselect").OutputSelectorFields<((args_0: import("../types").ReduxLayer[], args_1: import("../types").ReduxLayer[], args_2: import("../types").ReduxLayer[], args_3: {}, args_4: string, args_5: string, args_6: boolean, args_7: boolean, args_8: boolean, args_9: boolean, args_10: boolean, args_11: number, args_12: number, args_13: boolean, args_14: string, args_15: UIStoreType) => MapPreset) & {
864
+ }, params_0: string) => MapPreset) & import("reselect").OutputSelectorFields<((args_0: import("../types").ReduxLayer[], args_1: import("../types").ReduxLayer[], args_2: import("../types").ReduxLayer[], args_3: Bbox, args_4: string, args_5: string, args_6: boolean, args_7: boolean, args_8: boolean, args_9: boolean, args_10: boolean, args_11: number, args_12: number, args_13: boolean, args_14: string, args_15: UIStoreType) => MapPreset) & {
865
865
  clearCache: () => void;
866
866
  }> & {
867
867
  clearCache: () => void;
@@ -94,6 +94,7 @@ export interface MapPreset {
94
94
  toggleTimestepAuto?: boolean;
95
95
  animationPayload?: AnimationPayloadType;
96
96
  shouldShowLegend?: boolean;
97
+ shouldShowLayerManager?: boolean;
97
98
  }
98
99
  export interface MapPresetInitialProps {
99
100
  mapPreset: MapPreset;
@@ -26,9 +26,10 @@ interface CreateMapProps {
26
26
  isTimeSliderVisible?: boolean;
27
27
  activeMapPresetId?: string;
28
28
  displayMapPin?: boolean;
29
+ disableMapPin?: boolean;
29
30
  shouldShowZoomControls?: boolean;
30
31
  }
31
- export declare const createMap: ({ id, isAnimating, animationStartTime, animationEndTime, isAutoUpdating, bbox, srs, baseLayers, overLayers, mapLayers, featureLayers, dimensions, activeLayerId, timeSliderScale, timeStep, animationDelay, timeSliderCenterTime, timeSliderSecondsPerPx, timeSliderDataScaleToSecondsPerPx, isTimestepAuto, isTimeSliderHoverOn, isTimeSliderVisible, activeMapPresetId, displayMapPin, shouldShowZoomControls, }: CreateMapProps) => WebMap;
32
+ export declare const createMap: ({ id, isAnimating, animationStartTime, animationEndTime, isAutoUpdating, bbox, srs, baseLayers, overLayers, mapLayers, featureLayers, dimensions, activeLayerId, timeSliderScale, timeStep, animationDelay, timeSliderCenterTime, timeSliderSecondsPerPx, timeSliderDataScaleToSecondsPerPx, isTimestepAuto, isTimeSliderHoverOn, isTimeSliderVisible, activeMapPresetId, displayMapPin, disableMapPin, shouldShowZoomControls, }: CreateMapProps) => WebMap;
32
33
  export declare const checkValidLayersPayload: (layers: Layer[], mapId: string) => boolean;
33
34
  /**
34
35
  * This will get the map from the map draftstate.
@@ -136,9 +136,11 @@ export declare const getServicesInArray: ((state: {
136
136
  }) => {
137
137
  name: string;
138
138
  serviceUrl: string;
139
+ isUserAddedService: boolean;
139
140
  }[]) & import("reselect").OutputSelectorFields<((args_0: ServiceState) => {
140
141
  name: string;
141
142
  serviceUrl: string;
143
+ isUserAddedService: boolean;
142
144
  }[]) & {
143
145
  clearCache: () => void;
144
146
  }> & {
@@ -7,6 +7,7 @@ export interface ReduxService {
7
7
  serviceUrl?: string;
8
8
  active?: boolean;
9
9
  layers?: ServiceLayer[];
10
+ isUserAddedService?: boolean;
10
11
  }
11
12
  /**
12
13
  * Used in the services object of webmap to keep a list of available layers in the service
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/core",
3
- "version": "2.13.0",
3
+ "version": "3.0.0",
4
4
  "description": "GeoWeb Core library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -13,25 +13,26 @@
13
13
  "dependencies": {},
14
14
  "peerDependencies": {
15
15
  "react": "^17.0.2",
16
- "@opengeoweb/theme": "2.13.0",
16
+ "@opengeoweb/theme": "3.0.0",
17
17
  "@mui/material": "^5.2.8",
18
18
  "@mui/styles": "^5.2.3",
19
19
  "moment": "^2.29.0",
20
- "react-redux": "7.2.2",
20
+ "react-redux": "^8.0.2",
21
21
  "react-intl": "^5.17.5",
22
- "@opengeoweb/shared": "2.13.0",
22
+ "lodash": "^4.17.20",
23
+ "@opengeoweb/shared": "3.0.0",
23
24
  "react-draggable": "^4.4.3",
24
25
  "re-resizable": "^6.9.0",
25
- "lodash": "^4.17.20",
26
- "@opengeoweb/form-fields": "2.13.0",
26
+ "@opengeoweb/form-fields": "3.0.0",
27
27
  "react-hook-form": "^6.12.1",
28
28
  "moment-timezone": "^0.5.31",
29
29
  "@mui/lab": "^5.0.0-alpha.64",
30
30
  "axios": "^0.25.0",
31
- "@opengeoweb/webmap": "2.13.0",
31
+ "@opengeoweb/webmap": "3.0.0",
32
32
  "throttle-debounce": "^3.0.1",
33
33
  "proj4": "^2.6.2",
34
34
  "react-sortablejs": "^6.0.0",
35
+ "react-window": "^1.8.7",
35
36
  "immer": "^9.0.15",
36
37
  "redux-dynamic-modules": "^5.2.0",
37
38
  "@reduxjs/toolkit": "^1.8.3",
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const CustomSwitch: import("react").JSXElementConstructor<Omit<import("@mui/material").SwitchProps, "classes"> & import("@mui/styles/withStyles").StyledComponentProps<"switchBase" | "checked" | "track"> & object>;
3
- export default CustomSwitch;
@@ -1 +0,0 @@
1
- export {};
@@ -1,7 +0,0 @@
1
- import * as React from 'react';
2
- export declare const CustomSwitchLightTheme: () => React.ReactElement;
3
- export declare const CustomSwitchDarkTheme: () => React.ReactElement;
4
- declare const _default: {
5
- title: string;
6
- };
7
- export default _default;
@@ -1 +0,0 @@
1
- export { default as CustomSwitch } from './CustomSwitch';