@opengeoweb/core 4.7.0 → 4.8.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 (39) hide show
  1. package/index.esm.js +1877 -1371
  2. package/index.umd.js +3119 -2573
  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/ReactMapView/ReactMapView.d.ts +8 -31
  21. package/lib/components/ReactMapView/ReactMapViewParseLayer.d.ts +2 -2
  22. package/lib/components/ReactMapView/utils.d.ts +22 -0
  23. package/lib/components/ReactMapView/utils.spec.d.ts +1 -0
  24. package/lib/index.d.ts +4 -2
  25. package/lib/store/app/config.d.ts +5 -0
  26. package/lib/store/app/index.d.ts +1 -0
  27. package/lib/store/app/reducer.d.ts +12 -0
  28. package/lib/store/app/reducer.spec.d.ts +1 -0
  29. package/lib/store/app/types.d.ts +6 -0
  30. package/lib/store/index.d.ts +1 -0
  31. package/lib/store/layerSelect/reducer.d.ts +4 -1
  32. package/lib/store/layerSelect/selectors.d.ts +9 -1
  33. package/lib/store/layerSelect/types.d.ts +14 -0
  34. package/lib/store/mapStore/map/reducer.d.ts +3 -1
  35. package/lib/store/mapStore/map/sagas.d.ts +2 -0
  36. package/lib/store/mapStore/map/selectors.d.ts +20 -0
  37. package/lib/store/mapStore/map/types.d.ts +9 -0
  38. package/lib/store/mapStore/utils/helpers.d.ts +2 -0
  39. 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,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 {};
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';
@@ -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';
@@ -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[];
@@ -1,5 +1,5 @@
1
1
  import { PayloadAction } from '@reduxjs/toolkit';
2
- import { WebMapState, SetActiveLayerIdPayload, SetBboxPayload, SetMapAnimationStartPayload, SetMapAnimationStopPayload, SetTimeSliderScalePayload, SetTimeStepPayload, SetAnimationStartTimePayload, SetAnimationEndTimePayload, SetAnimationDelayPayload, MoveLayerPayload, SetTimeSliderCenterTimePayload, SetTimeSliderDataScaleToSecondsPerPxPayload, ToggleAutoUpdatePayload, ToggleTimestepAutoPayload, ToggleTimeSliderHoverPayload, MapPinLocationPayload, DisableMapPinPayload, SetTimeSliderSecondsPerPxPayload, UpdateAllMapDimensionsPayload, ToggleTimeSliderIsVisiblePayload } from './types';
2
+ import { WebMapState, SetActiveLayerIdPayload, SetBboxPayload, SetMapAnimationStartPayload, SetMapAnimationStopPayload, SetTimeSliderScalePayload, SetTimeStepPayload, SetAnimationStartTimePayload, SetAnimationEndTimePayload, SetAnimationDelayPayload, MoveLayerPayload, SetTimeSliderCenterTimePayload, SetTimeSliderDataScaleToSecondsPerPxPayload, ToggleAutoUpdatePayload, ToggleTimestepAutoPayload, ToggleTimeSliderHoverPayload, MapPinLocationPayload, DisableMapPinPayload, SetTimeSliderSecondsPerPxPayload, UpdateAllMapDimensionsPayload, ToggleTimeSliderIsVisiblePayload, SetDockedLayerManagerSize } from './types';
3
3
  import { ToggleMapPinIsVisiblePayload, ToggleZoomControlsPayload, SetTimeSliderUnfilteredSelectedTimePayload } from '../types';
4
4
  /**
5
5
  * Checks if the layer id is already taken in one of the maps.
@@ -45,6 +45,7 @@ export declare const slice: import("@reduxjs/toolkit").Slice<WebMapState, {
45
45
  setMapPinLocation: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: PayloadAction<MapPinLocationPayload>) => void;
46
46
  setDisableMapPin: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: PayloadAction<DisableMapPinPayload>) => void;
47
47
  toggleMapPinIsVisible: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: PayloadAction<ToggleMapPinIsVisiblePayload>) => void;
48
+ setDockedLayerManagerSize: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: PayloadAction<SetDockedLayerManagerSize>) => void;
48
49
  }, "mapReducer">;
49
50
  export declare const mapActions: {
50
51
  setMapPreset: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetMapPresetPayload, string>;
@@ -78,5 +79,6 @@ export declare const mapActions: {
78
79
  setMapPinLocation: import("@reduxjs/toolkit").ActionCreatorWithPayload<MapPinLocationPayload, string>;
79
80
  setDisableMapPin: import("@reduxjs/toolkit").ActionCreatorWithPayload<DisableMapPinPayload, string>;
80
81
  toggleMapPinIsVisible: import("@reduxjs/toolkit").ActionCreatorWithPayload<ToggleMapPinIsVisiblePayload, string>;
82
+ setDockedLayerManagerSize: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetDockedLayerManagerSize, string>;
81
83
  };
82
84
  export declare const reducer: import("redux").Reducer<WebMapState, import("redux").AnyAction>;
@@ -7,6 +7,8 @@ export declare const generateTimeList: (start: Moment, end: Moment, interval: nu
7
7
  name: string;
8
8
  value: string;
9
9
  }[];
10
+ export declare const getAnimationEndTime: (animationEndTime: string) => string;
11
+ export declare const isAnimationEndTimeValid: (animationEndTime: string) => boolean;
10
12
  export declare function updateMapDraw(mapId: string, draw: any): void;
11
13
  export declare function startAnimationSaga({ payload, }: ReturnType<typeof mapActions.mapStartAnimation>): Generator;
12
14
  export declare function stopAnimationSaga({ payload, }: ReturnType<typeof mapActions.mapStopAnimation>): Generator;
@@ -900,3 +900,23 @@ export declare const getIsEnabledLayersForMapDimension: ((state: {
900
900
  }> & {
901
901
  clearCache: () => void;
902
902
  };
903
+ /**
904
+ * Returns the dockedLayerManagerSize originally set in mapPresets
905
+ *
906
+ * Example getDockedLayerManagerSize(store);
907
+ * @param {object} store store: object - store object
908
+ * @param {string} mapId mapId: string - Id of the map
909
+ * @returns {DockedLayerManagerSize} returnType: string
910
+ */
911
+ export declare const getDockedLayerManagerSize: ((state: {
912
+ syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
913
+ ui?: UIStoreType | undefined;
914
+ webmap?: WebMapState | undefined;
915
+ services?: import("../types").ServiceState | undefined;
916
+ layers?: import("../types").LayerState | undefined;
917
+ layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
918
+ }, params_0: string) => import("./types").DockedLayerManagerSize | undefined) & import("reselect").OutputSelectorFields<(args_0: WebMap) => (import("./types").DockedLayerManagerSize | undefined) & {
919
+ clearCache: () => void;
920
+ }> & {
921
+ clearCache: () => void;
922
+ };
@@ -40,7 +40,9 @@ export interface WebMap {
40
40
  disableMapPin?: boolean;
41
41
  displayMapPin?: boolean;
42
42
  legendId?: string;
43
+ dockedLayerManagerSize?: DockedLayerManagerSize;
43
44
  }
45
+ export declare type DockedLayerManagerSize = 'sizeSmall' | 'sizeMedium' | 'sizeLarge' | '';
44
46
  export interface WebMapState {
45
47
  byId: Record<string, WebMap>;
46
48
  allIds: string[];
@@ -81,6 +83,7 @@ export interface AnimationPayloadType {
81
83
  duration?: number;
82
84
  interval?: number;
83
85
  speed?: SpeedFactorType;
86
+ endTime?: string;
84
87
  }
85
88
  export declare enum MapActionOrigin {
86
89
  map = "map"
@@ -101,6 +104,8 @@ export interface MapPreset {
101
104
  animationPayload?: AnimationPayloadType;
102
105
  shouldShowLegend?: boolean;
103
106
  shouldShowLayerManager?: boolean;
107
+ shouldShowDockedLayerManager?: boolean;
108
+ dockedLayerManagerSize?: DockedLayerManagerSize;
104
109
  }
105
110
  export interface MapPresetInitialProps {
106
111
  mapPreset: MapPreset;
@@ -225,3 +230,7 @@ export interface SetMapPresetPayload {
225
230
  mapId: string;
226
231
  initialProps: MapPresetInitialProps;
227
232
  }
233
+ export interface SetDockedLayerManagerSize {
234
+ mapId: string;
235
+ dockedLayerManagerSize: DockedLayerManagerSize;
236
+ }
@@ -15,12 +15,14 @@ export declare const registerWMLayer: (wmLayer: WMLayer, layerId: string) => voi
15
15
  * @param {string} layerId
16
16
  */
17
17
  export declare const getWMLayerById: (layerId: string) => WMLayer;
18
+ export declare const unRegisterWMJSLayer: (layerId: string) => void;
18
19
  /**
19
20
  * Registers a WMJSMap in a lookuptable with a wmjsMapId
20
21
  * @param {WMJSMap} wmjsMap
21
22
  * @param {string} wmjsMapId
22
23
  */
23
24
  export declare const registerWMJSMap: (wmjsMap: WMJSMap, wmjsMapId: string) => void;
25
+ export declare const unRegisterWMJSMap: (wmjsMapId: string) => void;
24
26
  /**
25
27
  * Get the wmjsMap from the lookuptable with wmjsMapId
26
28
  * @param {string} wmjsMapId
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/core",
3
- "version": "4.7.0",
3
+ "version": "4.8.0",
4
4
  "description": "GeoWeb Core library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -13,25 +13,25 @@
13
13
  "dependencies": {},
14
14
  "peerDependencies": {
15
15
  "react": "^17.0.2",
16
- "@opengeoweb/theme": "4.7.0",
16
+ "@opengeoweb/shared": "4.8.0",
17
17
  "@mui/material": "^5.10.8",
18
- "moment": "^2.29.0",
19
- "react-redux": "^8.0.4",
20
- "@opengeoweb/webmap": "4.7.0",
21
- "throttle-debounce": "^3.0.1",
22
- "proj4": "^2.6.2",
23
- "axios": "^0.25.0",
24
- "@opengeoweb/api": "4.7.0",
25
- "@opengeoweb/shared": "4.7.0",
18
+ "@opengeoweb/theme": "4.8.0",
26
19
  "react-draggable": "^4.4.5",
27
20
  "re-resizable": "^6.9.0",
28
21
  "@redux-eggs/core": "^2.2.0",
29
- "@opengeoweb/form-fields": "4.7.0",
30
- "react-hook-form": "^6.12.1",
22
+ "react-redux": "^8.0.4",
23
+ "@opengeoweb/form-fields": "4.8.0",
24
+ "react-hook-form": "^7.41.5",
25
+ "moment": "^2.29.0",
31
26
  "moment-timezone": "^0.5.31",
32
27
  "@mui/x-date-pickers": "^5.0.4",
33
28
  "lodash": "^4.17.20",
29
+ "axios": "^0.25.0",
34
30
  "date-fns": "^2.29.3",
31
+ "@opengeoweb/webmap": "4.8.0",
32
+ "throttle-debounce": "^3.0.1",
33
+ "proj4": "^2.6.2",
34
+ "@opengeoweb/api": "4.8.0",
35
35
  "react-intl": "^5.17.5",
36
36
  "react-sortablejs": "^6.1.4",
37
37
  "sortablejs": "^1.15.0",