@opengeoweb/core 4.7.1 → 4.9.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.
Files changed (52) hide show
  1. package/index.esm.js +2113 -1586
  2. package/index.umd.js +3399 -2817
  3. package/lib/components/AppWrapper/AppWrapperConnect.d.ts +6 -0
  4. package/lib/components/AppWrapper/index.d.ts +1 -0
  5. package/lib/components/ConfigurableMap/ConfigurableMapConnect.d.ts +3 -1
  6. package/lib/components/LayerManager/LayerManagerUtils.d.ts +3 -0
  7. package/lib/components/LayerManager/LayerSelect/LayerList/LayerList.d.ts +1 -0
  8. package/lib/components/LayerManager/LayerSelect/LayerList/LayerListRow.d.ts +1 -0
  9. package/lib/components/LayerManager/LayerSelect/LayerList/SearchHighlight.d.ts +7 -0
  10. package/lib/components/LayerManager/LayerSelect/LayerList/SearchHighlight.spec.d.ts +1 -0
  11. package/lib/components/LayerManager/LayerSelect/LayerManagerUtils.spec.d.ts +1 -0
  12. package/lib/components/LayerManager/LayerSelect/SearchField/SearchField.d.ts +1 -0
  13. package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.d.ts +2 -3
  14. package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialogConnect.d.ts +0 -2
  15. package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopup.d.ts +1 -2
  16. package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopupConnect.d.ts +1 -10
  17. package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopupConnect.spec.d.ts +1 -0
  18. package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopupConnect.stories.d.ts +0 -3
  19. package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopupDialogConnect.d.ts +11 -0
  20. package/lib/components/LayerManager/index.d.ts +1 -0
  21. package/lib/components/ReactMapView/ReactMapView.d.ts +8 -31
  22. package/lib/components/ReactMapView/ReactMapViewParseLayer.d.ts +2 -2
  23. package/lib/components/ReactMapView/utils.d.ts +22 -0
  24. package/lib/components/ReactMapView/utils.spec.d.ts +1 -0
  25. package/lib/components/TimeSlider/TimeSlider.d.ts +7 -0
  26. package/lib/components/TimeSlider/TimeSliderConnect.d.ts +2 -27
  27. package/lib/components/TimeSlider/TimeSliderLegend/TimeSliderLegend.d.ts +0 -1
  28. package/lib/components/TimeSlider/TimeSliderLegend/TimeSliderLegendConnect.d.ts +2 -57
  29. package/lib/index.d.ts +6 -4
  30. package/lib/store/app/config.d.ts +5 -0
  31. package/lib/store/app/index.d.ts +1 -0
  32. package/lib/store/app/reducer.d.ts +12 -0
  33. package/lib/store/app/reducer.spec.d.ts +1 -0
  34. package/lib/store/app/types.d.ts +6 -0
  35. package/lib/store/index.d.ts +1 -0
  36. package/lib/store/layerSelect/reducer.d.ts +4 -1
  37. package/lib/store/layerSelect/selectors.d.ts +9 -1
  38. package/lib/store/layerSelect/types.d.ts +14 -0
  39. package/lib/store/mapStore/layers/selectors.d.ts +11 -11
  40. package/lib/store/mapStore/layers/types.d.ts +0 -2
  41. package/lib/store/mapStore/map/reducer.d.ts +3 -1
  42. package/lib/store/mapStore/map/sagas.d.ts +2 -0
  43. package/lib/store/mapStore/map/selectors.d.ts +20 -0
  44. package/lib/store/mapStore/map/types.d.ts +10 -1
  45. package/lib/store/mapStore/map/utils.d.ts +1 -1
  46. package/lib/store/mapStore/service/selectors.d.ts +4 -4
  47. package/lib/store/mapStore/service/types.d.ts +2 -12
  48. package/lib/store/mapStore/utils/helpers.d.ts +2 -0
  49. package/lib/utils/__mocks__/getCapabilities.d.ts +1 -1
  50. package/lib/utils/defaultTestSettings.d.ts +21 -1
  51. package/lib/utils/getCapabilities.d.ts +1 -17
  52. package/package.json +12 -12
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ interface AppWrapperProps {
3
+ children: React.ReactElement;
4
+ }
5
+ export declare const AppWrapperConnect: React.FC<AppWrapperProps>;
6
+ export {};
@@ -0,0 +1 @@
1
+ export * from './AppWrapperConnect';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { AnimationPayloadType, Bbox, Layer } from '../../store/mapStore/types';
2
+ import { AnimationPayloadType, Bbox, DockedLayerManagerSize, Layer } from '../../store/mapStore/types';
3
3
  export declare const defaultBbox: {
4
4
  srs: string;
5
5
  bbox: {
@@ -11,6 +11,7 @@ export declare const defaultBbox: {
11
11
  };
12
12
  export interface ConfigurableMapConnectProps {
13
13
  id?: string;
14
+ dockedLayerManagerSize?: DockedLayerManagerSize;
14
15
  shouldAutoUpdate?: boolean;
15
16
  shouldAnimate?: boolean;
16
17
  title?: string;
@@ -29,6 +30,7 @@ export interface ConfigurableMapConnectProps {
29
30
  displayDimensionSelectButtonInMap?: boolean;
30
31
  multiLegend?: boolean;
31
32
  shouldShowLayerManager?: boolean;
33
+ shouldShowDockedLayerManager?: boolean;
32
34
  showClock?: boolean;
33
35
  displayGetFeatureInfoButtonInMap?: boolean;
34
36
  children?: React.ReactNode;
@@ -1,3 +1,5 @@
1
+ import { DockedLayerManagerSize } from '../../store/mapStore/types';
2
+ import { Size } from './LayerManagerHeaderOptions';
1
3
  export declare const columnClasses: {
2
4
  column1: string;
3
5
  column2: string;
@@ -149,3 +151,4 @@ export declare const layerManagerStyle: {
149
151
  display: string;
150
152
  };
151
153
  };
154
+ export declare const returnCorrectSize: (sizeResult: DockedLayerManagerSize | undefined) => Size;
@@ -18,6 +18,7 @@ export interface LayerListProps {
18
18
  }) => void;
19
19
  mapLayers: ReduxLayer[];
20
20
  mapId: string;
21
+ searchFilter: string;
21
22
  }
22
23
  declare const LayerList: React.FC<LayerListProps>;
23
24
  export default LayerList;
@@ -15,6 +15,7 @@ interface LayerListRowProps {
15
15
  mapLayers: ReduxLayer[];
16
16
  mapId: string;
17
17
  layerSelectWidth: number;
18
+ searchFilter: string;
18
19
  }
19
20
  declare const LayerListRow: React.FC<LayerListRowProps>;
20
21
  export default LayerListRow;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface HighlightProps {
3
+ text: string;
4
+ search: string;
5
+ }
6
+ declare const SearchHighlight: React.FC<HighlightProps>;
7
+ export default SearchHighlight;
@@ -2,6 +2,7 @@ import * as React from 'react';
2
2
  interface SearchFieldProps {
3
3
  searchFilter: string;
4
4
  setSearchFilter: (filterText: string) => void;
5
+ onOpenServicePopup: (url: string) => void;
5
6
  }
6
7
  declare const SearchField: React.FC<SearchFieldProps>;
7
8
  export default SearchField;
@@ -1,6 +1,5 @@
1
1
  import * as React from 'react';
2
- import { ActiveServiceObjectEntities } from '../../../../store/layerSelect/types';
3
- import { PopupVariant } from '../ServicePopup/ServicePopup';
2
+ import { ActiveServiceObjectEntities, PopupVariant } from '../../../../store/layerSelect/types';
4
3
  import { ReduxLayer } from '../../../../store/mapStore/types';
5
4
  interface ServiceOptionsDialogProps {
6
5
  services: ActiveServiceObjectEntities;
@@ -14,7 +13,7 @@ export interface ServicePopupInfo {
14
13
  isOpen: boolean;
15
14
  serviceId?: string;
16
15
  serviceUrl?: string;
17
- popupVariant?: PopupVariant;
16
+ variant?: PopupVariant;
18
17
  }
19
18
  declare const ServiceOptionsDialog: React.FC<ServiceOptionsDialogProps>;
20
19
  export default ServiceOptionsDialog;
@@ -1,8 +1,6 @@
1
1
  import * as React from 'react';
2
- import { ServicePopupInfo } from './ServiceOptionsDialog';
3
2
  interface ServiceOptionsDialogConnectProps {
4
3
  mapId?: string;
5
- setServicePopupInfo?: (popupInfo: ServicePopupInfo) => void;
6
4
  }
7
5
  export declare const getServiceSuccesUpdateMessage: (serviceName: string) => string;
8
6
  export declare const getServiceFailedUpdateMessage: (error: Error) => string;
@@ -1,7 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { SetLayersForServicePayload } from '../../../../store/mapStore/types';
3
- import { ActiveServiceObjectEntities } from '../../../../store/layerSelect/types';
4
- export declare type PopupVariant = 'edit' | 'add' | 'save' | 'show';
3
+ import { ActiveServiceObjectEntities, PopupVariant } from '../../../../store/layerSelect/types';
5
4
  export interface ServicePopupProps {
6
5
  servicePopupVariant: PopupVariant;
7
6
  hideBackdrop?: boolean;
@@ -1,12 +1,3 @@
1
1
  import React from 'react';
2
- import { PopupVariant } from './ServicePopup';
3
- interface ServicePopupConnectProps {
4
- servicePopupVariant: PopupVariant;
5
- hideBackdrop?: boolean;
6
- isOpen?: boolean;
7
- closePopup?: () => void;
8
- serviceId?: string;
9
- url?: string;
10
- }
11
- declare const ServicePopupConnect: React.FC<ServicePopupConnectProps>;
2
+ declare const ServicePopupConnect: React.FC;
12
3
  export default ServicePopupConnect;
@@ -3,7 +3,4 @@ declare const _default: {
3
3
  title: string;
4
4
  };
5
5
  export default _default;
6
- export declare const ServicePopupConnectAdd: React.FC;
7
- export declare const ServicePopupConnectShow: React.FC;
8
6
  export declare const ServicePopupAddWithExistingServiceError: React.FC;
9
- export declare const ServicePopupEdit: React.FC;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { PopupVariant } from '../../../../store/layerSelect/types';
3
+ interface ServicePopupDialogConnectType {
4
+ isOpen: boolean;
5
+ serviceId?: string;
6
+ variant: PopupVariant;
7
+ url?: string;
8
+ setServicePopupClosed: () => void;
9
+ }
10
+ declare const ServicePopupDialogConnect: React.FC<ServicePopupDialogConnectType>;
11
+ export default ServicePopupDialogConnect;
@@ -1,3 +1,4 @@
1
+ export { default as LayerManager } from './LayerManager';
1
2
  export { default as LayerManagerConnect } from './LayerManagerConnect';
2
3
  export { default as DockedLayerManagerConnect } from './DockedLayerManagerConnect';
3
4
  export { default as LayerSelectConnect } from './LayerSelect/LayerSelectConnect';
@@ -1,45 +1,26 @@
1
1
  /// <reference types="node" />
2
2
  import * as React from 'react';
3
3
  import { WMJSMap, WMLayer, WMBBOX } from '@opengeoweb/webmap';
4
- import { FeatureLayer } from './AdagucMapDrawContainer';
5
4
  import { ReactMapViewProps } from './types';
6
- import { Layer } from '../../store/mapStore/layers/types';
7
- /**
8
- * Returns filtered list of props with geoJson
9
- * @param children React.ReactNode, layers with geoJson
10
- */
11
- export declare const getFeatureLayers: (children: React.ReactNode) => FeatureLayer[];
12
- /**
13
- * Returns true if this is a maplayer and not a baselayer or overlayer
14
- * @param layer The Layer object, or the props from the ReactWMJSLayer
15
- */
16
- export declare const isAMapLayer: (layer: Layer) => boolean;
17
- /**
18
- * Returns true if this is a geojsonlayer (layer containing geojson field)
19
- * @param layer The Layer object, or the props from the ReactWMJSLayer
20
- */
21
- export declare const isAGeoJSONLayer: (layer: Layer) => boolean;
22
5
  export declare const ORIGIN_REACTMAPVIEW_ONMAPCHANGEDIMENSION = "ORIGIN_REACTMAPVIEW_ONMAPCHANGEDIMENSION";
23
6
  export declare const ORIGIN_REACTMAPVIEW_ONUPDATELAYERINFO = "ORIGIN_REACTMAPVIEW_ONUPDATELAYERINFO";
24
7
  interface ReactMapViewState {
25
8
  adagucInitialised: boolean;
26
9
  }
27
10
  interface AdagucObjectProp {
28
- webMapJSCreated: boolean;
29
11
  initialized: boolean;
30
12
  baseLayers: WMLayer[];
31
- webMapJS: WMJSMap;
32
13
  oldbbox: WMBBOX;
33
- }
34
- declare class ReactMapView extends React.Component<ReactMapViewProps, ReactMapViewState> {
35
- adaguc: AdagucObjectProp;
14
+ currentWidth: number;
15
+ currentHeight: number;
36
16
  currentMapProps: {
37
17
  children?: React.ReactNode;
38
18
  };
19
+ }
20
+ declare class ReactMapView extends React.Component<ReactMapViewProps, ReactMapViewState> {
21
+ adaguc: AdagucObjectProp;
39
22
  mapTimer: undefined;
40
23
  featureLayerUpdateTimer: undefined;
41
- currentWidth: undefined;
42
- currentHeight: undefined;
43
24
  adagucContainerRef: any;
44
25
  adagucWebMapJSRef: any;
45
26
  refetchTimer: NodeJS.Timeout;
@@ -64,19 +45,15 @@ declare class ReactMapView extends React.Component<ReactMapViewProps, ReactMapVi
64
45
  componentDidUpdate: (prevProps: ReactMapViewProps) => void;
65
46
  componentWillUnmount(): void;
66
47
  onDimChangeListener(): void;
67
- onAfterSetBBoxListener(wmjsMap: WMJSMap): void;
48
+ onAfterSetBBoxListener(): void;
68
49
  onUpdateBBoxListener(newBbox: WMBBOX): void;
69
50
  onStartRefetchTimer: () => void;
70
- getWMJSLayerFromReactLayer(wmLayers: WMLayer[], reactWebMapJSLayer: React.ReactElement, index: number): {
71
- layer: WMLayer;
72
- layerArrayMutated: boolean;
73
- };
74
51
  clearRefetchTimer: () => void;
75
52
  parseWMJSLayer: (wmLayer: WMLayer, forceReload: boolean, child?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined) => void;
76
- checkNewProps(prevProps: ReactMapViewProps, props: ReactMapViewProps): void;
53
+ updateWMJSMapProps(prevProps: ReactMapViewProps, props: ReactMapViewProps): void;
77
54
  drawDebounced(): void;
78
55
  handleWindowResize(): void;
79
- checkAdaguc(): void;
56
+ mountWMJSMap(): WMJSMap | null;
80
57
  resize(): void;
81
58
  render(): React.ReactElement;
82
59
  }
@@ -1,5 +1,5 @@
1
- import { WMLayer, WMJSMap, WMJSDimension } from '@opengeoweb/webmap';
1
+ import { WMLayer, WMJSDimension } from '@opengeoweb/webmap';
2
2
  import { UpdateLayerInfoPayload } from '../../store/mapStore/types';
3
3
  import { MapViewProps } from '../MapView/types';
4
4
  export declare const getCurrentDimensionValue: (dimensions: WMJSDimension[] | undefined, name: string) => string;
5
- export declare const setServiceMetadata: (wmLayer: WMLayer, mapId: string, webMapJSInstance: WMJSMap, mapProperties: MapViewProps, onUpdateLayerInformation?: ((payload: UpdateLayerInfoPayload) => void) | undefined) => void;
5
+ export declare const setServiceMetadata: (wmLayer: WMLayer, mapId: string, mapProperties: MapViewProps, onUpdateLayerInformation?: ((payload: UpdateLayerInfoPayload) => void) | undefined) => void;
@@ -0,0 +1,22 @@
1
+ import { WMLayer } from '@opengeoweb/webmap';
2
+ import { Layer } from '../../store/mapStore/types';
3
+ import { FeatureLayer } from './AdagucMapDrawContainer';
4
+ /**
5
+ * Returns filtered list of props with geoJson
6
+ * @param children React.ReactNode, layers with geoJson
7
+ */
8
+ export declare const getFeatureLayers: (children: React.ReactNode) => FeatureLayer[];
9
+ /**
10
+ * Returns true if this is a maplayer and not a baselayer or overlayer
11
+ * @param layer The Layer object, or the props from the ReactWMJSLayer
12
+ */
13
+ export declare const isAMapLayer: (layer: Layer) => boolean;
14
+ /**
15
+ * Returns true if this is a geojsonlayer (layer containing geojson field)
16
+ * @param layer The Layer object, or the props from the ReactWMJSLayer
17
+ */
18
+ export declare const isAGeoJSONLayer: (layer: Layer) => boolean;
19
+ export declare const getWMJSLayerFromReactLayer: (mapId: string, wmLayers: WMLayer[], reactWebMapJSLayer: React.ReactElement, wmLayerIndex: number) => {
20
+ layer: WMLayer;
21
+ layerArrayMutated: boolean;
22
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -7,6 +7,13 @@ export interface TimeSliderProps {
7
7
  mapIsActive?: boolean;
8
8
  onToggleTimeSlider?: (isVisible: boolean) => void;
9
9
  isVisible?: boolean;
10
+ timeStep: number;
11
+ dataStartTime: number;
12
+ dataEndTime: number;
13
+ selectedTime: number;
14
+ currentTime: number;
15
+ onSetNewDate: (newDate: string) => void;
16
+ onSetCenterTime: (newTime: number) => void;
10
17
  }
11
18
  declare const TimeSlider: React.FC<TimeSliderProps>;
12
19
  export default TimeSlider;
@@ -1,34 +1,9 @@
1
1
  import * as React from 'react';
2
- import { mapActions } from '../../store';
2
+ export declare const useUpdateTimestep: (mapId: string) => void;
3
3
  interface TimeSliderConnectProps {
4
4
  sourceId: string;
5
5
  mapId: string;
6
- isTimeSliderHoverOn?: boolean;
7
- isTimeSliderVisible?: boolean;
8
6
  isAlwaysVisible?: boolean;
9
- toggleTimeSliderHover?: typeof mapActions.toggleTimeSliderHover;
10
- toggleTimeSliderIsVisible?: typeof mapActions.toggleTimeSliderIsVisible;
11
- activeWindowId?: string;
12
7
  }
13
- /**
14
- * TimeSlider component with components connected to the store displaying the time slider
15
- *
16
- * Expects the following props:
17
- * @param {string} mapId mapId: string - Id of the map
18
- * @param {string} sourceId sourceId: string - Source Id of the timeslider
19
- * @example
20
- * ``` <TimeSliderConnect sourceId="timeslider-1" mapId={mapId} />```
21
- */
22
- declare const TimeSliderConnect: import("react-redux").ConnectedComponent<React.FC<TimeSliderConnectProps>, {
23
- sourceId: string;
24
- mapId: string;
25
- isAlwaysVisible?: boolean | undefined;
26
- isTimeSliderHoverOn?: boolean | undefined;
27
- isTimeSliderVisible?: boolean | undefined;
28
- toggleTimeSliderHover?: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("../../store/mapStore/types").ToggleTimeSliderHoverPayload, string> | undefined;
29
- toggleTimeSliderIsVisible?: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("../../store/mapStore/types").ToggleTimeSliderIsVisiblePayload, string> | undefined;
30
- activeWindowId?: string | undefined;
31
- context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
32
- store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
33
- }>;
8
+ declare const TimeSliderConnect: React.FC<TimeSliderConnectProps>;
34
9
  export default TimeSliderConnect;
@@ -16,7 +16,6 @@ export interface TimeSliderLegendProps {
16
16
  animationEndTime?: string;
17
17
  isTimeSliderHoverOn?: boolean;
18
18
  timeStep?: number;
19
- mapIsActive?: boolean;
20
19
  unfilteredSelectedTime?: number;
21
20
  setUnfilteredSelectedTime: (unfliteredSelectedTime: number) => void;
22
21
  onSetNewDate?: (newDate: string) => void;
@@ -1,62 +1,7 @@
1
1
  import * as React from 'react';
2
- import { Dimension, Layer, Scale } from '../../../store/mapStore/types';
3
- import { mapActions, genericActions } from '../../../store';
4
2
  interface TimeSliderLegendConnectProps {
5
3
  sourceId?: string;
6
4
  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
- unfilteredSelectedTime?: number;
20
- setTimeSliderUnfilteredSelectedTime?: typeof mapActions.setTimeSliderUnfilteredSelectedTime;
21
- stopMapAnimation?: typeof mapActions.mapStopAnimation;
22
- setTime?: typeof genericActions.setTime;
23
- mapSetTimeSliderCenterTime?: typeof mapActions.setTimeSliderCenterTime;
24
- mapSetTimeSliderSecondsPerPx?: typeof mapActions.setTimeSliderSecondsPerPx;
25
- setAnimationStartTime?: typeof mapActions.setAnimationStartTime;
26
- setAnimationEndTime?: typeof mapActions.setAnimationEndTime;
27
5
  }
28
- declare const _default: import("react-redux").ConnectedComponent<React.FC<TimeSliderLegendConnectProps>, {
29
- sourceId?: string | undefined;
30
- mapId: string;
31
- dimensions?: Dimension[] | undefined;
32
- scale?: Scale | undefined;
33
- centerTime?: number | undefined;
34
- secondsPerPx?: number | undefined;
35
- dataScaleToSecondsPerPx?: number | undefined;
36
- layers?: Layer[] | undefined;
37
- isAnimating?: boolean | undefined;
38
- timeStep?: number | undefined;
39
- isTimeSliderHoverOn?: boolean | undefined;
40
- animationStartTime?: string | undefined;
41
- animationEndTime?: string | undefined;
42
- activeWindowId?: string | undefined;
43
- unfilteredSelectedTime?: number | undefined;
44
- setTimeSliderUnfilteredSelectedTime?: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("../../../store/mapStore/types").SetTimeSliderUnfilteredSelectedTimePayload, string> | undefined;
45
- stopMapAnimation?: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("../../../store/mapStore/types").SetMapAnimationStopPayload, string> | undefined;
46
- setTime?: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("../../../store/generic/types").SetTimePayload, string> | undefined;
47
- mapSetTimeSliderCenterTime?: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("../../../store/mapStore/types").SetTimeSliderCenterTimePayload, string> | undefined;
48
- mapSetTimeSliderSecondsPerPx?: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("../../../store/mapStore/types").SetTimeSliderSecondsPerPxPayload, string> | undefined;
49
- setAnimationStartTime?: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("../../../store/mapStore/types").SetAnimationStartTimePayload, string> | undefined;
50
- setAnimationEndTime?: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("../../../store/mapStore/types").SetAnimationEndTimePayload, string> | undefined;
51
- context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
52
- store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
53
- }>;
54
- /**
55
- * TimeSliderLegend component connected to the store displaying a legend of the time slider
56
- *
57
- * Expects the following props:
58
- * @param {string} mapId mapId: string - Id of the map
59
- * @example
60
- * ``` <TimeSliderLegendConnect mapId={mapId} />```
61
- */
62
- export default _default;
6
+ declare const TimeSliderLegendConnect: React.FC<TimeSliderLegendConnectProps>;
7
+ export default TimeSliderLegendConnect;
package/lib/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { mapSelectors, uiActions, uiSelectors, layerActions, genericActions, snackbarActions, layerSelectors } from './store';
1
+ import { mapSelectors, uiActions, uiSelectors, layerActions, genericActions, snackbarActions, appActions, layerSelectors } from './store';
2
2
  import * as mapTypes from './store/mapStore/types';
3
3
  import * as layerTypes from './store/mapStore/layers/types';
4
4
  import * as mapUtils from './store/mapStore/map/utils';
@@ -7,7 +7,7 @@ import { reducer as layerReducer } from './store/mapStore/layers/reducer';
7
7
  import synchronizationGroupConfig from './store/generic/config';
8
8
  import * as SyncGroups from './store/generic/synchronizationGroups';
9
9
  import coreModuleConfig from './store/coreModuleConfig';
10
- import { LayerManagerConnect, LayerSelectConnect, LayerManagerMapButtonConnect, DockedLayerManagerConnect } from './components/LayerManager';
10
+ import { LayerManagerConnect, LayerSelectConnect, LayerManagerMapButtonConnect, DockedLayerManagerConnect, LayerManager } from './components/LayerManager';
11
11
  import { MultiDimensionSelectMapButtonsConnect, MultiMapDimensionSelectConnect } from './components/MultiMapDimensionSelect';
12
12
  export * from './hooks';
13
13
  export * from './components/MultiMapView/MultiMapViewConnect';
@@ -52,6 +52,7 @@ export declare const mapActions: {
52
52
  setMapPinLocation: import("@reduxjs/toolkit").ActionCreatorWithPayload<mapTypes.MapPinLocationPayload, string>;
53
53
  setDisableMapPin: import("@reduxjs/toolkit").ActionCreatorWithPayload<mapTypes.DisableMapPinPayload, string>;
54
54
  toggleMapPinIsVisible: import("@reduxjs/toolkit").ActionCreatorWithPayload<mapTypes.ToggleMapPinIsVisiblePayload, string>;
55
+ setDockedLayerManagerSize: import("@reduxjs/toolkit").ActionCreatorWithPayload<mapTypes.SetDockedLayerManagerSize, string>;
55
56
  addLayer: import("@reduxjs/toolkit").ActionCreatorWithPayload<mapTypes.AddLayerPayload, string>;
56
57
  layerChangeDimension: import("@reduxjs/toolkit").ActionCreatorWithPayload<mapTypes.SetLayerDimensionPayload, string>;
57
58
  layerChangeEnabled: import("@reduxjs/toolkit").ActionCreatorWithPayload<mapTypes.SetLayerEnabledPayload, string>;
@@ -72,7 +73,7 @@ export declare const mapActions: {
72
73
  onUpdateLayerInformation: import("@reduxjs/toolkit").ActionCreatorWithPayload<mapTypes.UpdateLayerInfoPayload, string>;
73
74
  setSelectedFeature: import("@reduxjs/toolkit").ActionCreatorWithPayload<mapTypes.SetSelectedFeaturePayload, string>;
74
75
  };
75
- export { mapSelectors, mapTypes, mapUtils, layerTypes, layerReducer, layerActions, uiActions, uiSelectors, uiTypes, genericActions as syncGroupActions, snackbarActions, layerSelectors, };
76
+ export { mapSelectors, mapTypes, mapUtils, layerTypes, layerReducer, layerActions, uiActions, uiSelectors, uiTypes, genericActions as syncGroupActions, snackbarActions, appActions, layerSelectors, };
76
77
  export { synchronizationGroupConfig as synchronizationGroupModuleConfig };
77
78
  export * from './components/ComponentsLookUp';
78
79
  export * from './components/ConfigurableMap';
@@ -82,7 +83,7 @@ export { SyncGroups };
82
83
  export { store } from './storybookUtils/store';
83
84
  export * from './types/types';
84
85
  export { coreModuleConfig };
85
- export { LayerManagerConnect, LayerSelectConnect, LayerManagerMapButtonConnect, DockedLayerManagerConnect, };
86
+ export { LayerManagerConnect, LayerSelectConnect, LayerManagerMapButtonConnect, DockedLayerManagerConnect, LayerManager, };
86
87
  export { MultiDimensionSelectMapButtonsConnect, MultiMapDimensionSelectConnect, };
87
88
  export * as publicLayers from './utils/publicLayers';
88
89
  export * as publicServices from './utils/publicServices';
@@ -92,6 +93,7 @@ export * from './utils/types';
92
93
  export * as defaultConfigurations from './utils/defaultConfigurations';
93
94
  export * from './components/Providers/Providers';
94
95
  export * from './components/Snackbar';
96
+ export * from './components/AppWrapper';
95
97
  export { default as uiModuleConfig } from './store/ui/config';
96
98
  export { default as mapModuleConfig } from './store/mapStore/config';
97
99
  export { default as synchronizationGroupsConfig } from './store/generic/config';
@@ -0,0 +1,5 @@
1
+ import { Store } from '@reduxjs/toolkit';
2
+ import { Egg } from '@redux-eggs/core';
3
+ import { AppModuleStore } from './types';
4
+ declare const appModuleConfig: Egg<Store<AppModuleStore>>;
5
+ export default appModuleConfig;
@@ -0,0 +1 @@
1
+ export { appActions } from './reducer';
@@ -0,0 +1,12 @@
1
+ export declare const initialState: {
2
+ isInitialised: boolean;
3
+ };
4
+ export declare const reducer: import("redux").Reducer<{
5
+ isInitialised: boolean;
6
+ }, import("redux").AnyAction>;
7
+ export declare const appActions: import("@reduxjs/toolkit").CaseReducerActions<{
8
+ initialiseApp: (draft: import("immer/dist/internal").WritableDraft<{
9
+ isInitialised: boolean;
10
+ }>) => void;
11
+ }>;
12
+ export declare type AppActions = ReturnType<typeof appActions.initialiseApp>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ export interface AppStoreState {
2
+ isInitialised: boolean;
3
+ }
4
+ export interface AppModuleStore {
5
+ app?: AppStoreState;
6
+ }
@@ -3,3 +3,4 @@ export * from './layerSelect';
3
3
  export * from './ui';
4
4
  export * from './generic';
5
5
  export * from './snackbar';
6
+ export * from './app';
@@ -1,12 +1,15 @@
1
1
  import { PayloadAction } from '@reduxjs/toolkit';
2
- import { AddKeywordsAndActiveServicesPayload, DisableActiveServicePayload, EnableActiveServicePayload, EnableOnlyOneKeywordPayload, LayerSelectRemoveServicePayload, LayerSelectStoreType, SetAllServicesEnabledPayload, SetActiveLayerInfoPayload, SetSearchFilterPayload, ToggleKeywordsPayload, Filter, ActiveServiceObject } from './types';
2
+ import { AddKeywordsAndActiveServicesPayload, DisableActiveServicePayload, EnableActiveServicePayload, EnableOnlyOneKeywordPayload, LayerSelectRemoveServicePayload, LayerSelectStoreType, SetAllServicesEnabledPayload, SetActiveLayerInfoPayload, SetSearchFilterPayload, ToggleKeywordsPayload, Filter, ActiveServiceObject, ToggleServicePopupPayload, ServicePopupObject } from './types';
3
3
  export declare const layerSelectFilterAdapter: import("@reduxjs/toolkit").EntityAdapter<Filter>;
4
4
  export declare const layerSelectActiveServicesAdapter: import("@reduxjs/toolkit").EntityAdapter<ActiveServiceObject>;
5
+ export declare const initialServicePopupState: ServicePopupObject;
5
6
  export declare const initialState: LayerSelectStoreType;
6
7
  export declare const reducer: import("redux").Reducer<LayerSelectStoreType, import("redux").AnyAction>;
7
8
  export declare const layerSelectActions: import("@reduxjs/toolkit").CaseReducerActions<{
8
9
  setSearchFilter: (draft: import("immer/dist/internal").WritableDraft<LayerSelectStoreType>, action: PayloadAction<SetSearchFilterPayload>) => void;
9
10
  setAllServicesEnabled: (draft: import("immer/dist/internal").WritableDraft<LayerSelectStoreType>, action: PayloadAction<SetAllServicesEnabledPayload>) => void;
11
+ closeServicePopupOpen: (draft: import("immer/dist/internal").WritableDraft<LayerSelectStoreType>) => void;
12
+ toggleServicePopup: (draft: import("immer/dist/internal").WritableDraft<LayerSelectStoreType>, action: PayloadAction<ToggleServicePopupPayload>) => void;
10
13
  addFiltersAndActiveServices: (draft: import("immer/dist/internal").WritableDraft<LayerSelectStoreType>, action: PayloadAction<AddKeywordsAndActiveServicesPayload>) => void;
11
14
  layerSelectRemoveService: (draft: import("immer/dist/internal").WritableDraft<LayerSelectStoreType>, action: PayloadAction<LayerSelectRemoveServicePayload>) => void;
12
15
  enableActiveService: (draft: import("immer/dist/internal").WritableDraft<LayerSelectStoreType>, action: PayloadAction<EnableActiveServicePayload>) => void;
@@ -1,5 +1,5 @@
1
1
  import { AppStore } from '../../types/types';
2
- import { LayerSelectStoreType, ActiveServiceObject, ActiveLayerObject, ActiveServiceObjectEntities } from './types';
2
+ import { LayerSelectStoreType, ActiveServiceObject, ActiveLayerObject, ActiveServiceObjectEntities, ServicePopupObject } from './types';
3
3
  /**
4
4
  * Returns search filter string
5
5
  *
@@ -155,3 +155,11 @@ export declare const getFilteredLayers: ((state: {
155
155
  }> & {
156
156
  clearCache: () => void;
157
157
  };
158
+ /**
159
+ * Returns service popup details
160
+ *
161
+ * Example getActiveServices(store, 'server-id');
162
+ * @param {object} store store: object - store object
163
+ * @returns {object} returnType: object of active service
164
+ */
165
+ export declare const getServicePopupDetails: (store: AppStore) => ServicePopupObject;
@@ -33,10 +33,18 @@ export interface FiltersType {
33
33
  activeServices: ActiveServiceType;
34
34
  filters: Filters;
35
35
  }
36
+ export declare type PopupVariant = 'edit' | 'add' | 'save' | 'show';
37
+ export interface ServicePopupObject {
38
+ isOpen: boolean;
39
+ variant: PopupVariant;
40
+ url?: string;
41
+ serviceId?: string;
42
+ }
36
43
  export interface LayerSelectStoreType {
37
44
  filters: FiltersType;
38
45
  allServicesEnabled: boolean;
39
46
  activeLayerInfo: ActiveLayerObject;
47
+ servicePopup: ServicePopupObject;
40
48
  }
41
49
  export interface LayerSelectModuleState {
42
50
  layerSelect?: LayerSelectStoreType;
@@ -47,6 +55,12 @@ export interface SetSearchFilterPayload {
47
55
  export interface SetAllServicesEnabledPayload {
48
56
  allServicesEnabled: boolean;
49
57
  }
58
+ export interface ToggleServicePopupPayload {
59
+ url?: string;
60
+ variant: PopupVariant;
61
+ serviceId?: string;
62
+ isOpen: boolean;
63
+ }
50
64
  export interface EnableActiveServicePayload {
51
65
  serviceId: string;
52
66
  filters: string[];