@opengeoweb/core 2.14.0 → 4.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.
- package/index.esm.js +570 -411
- package/index.umd.js +596 -411
- package/lib/components/ConfigurableMap/ConfigurableMapConnect.d.ts +1 -0
- package/lib/components/LayerManager/BaseLayerRow/BaseLayers/BaseLayersConnect.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/LayerSelectUtils.d.ts +3 -3
- package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.d.ts +0 -2
- package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopup.d.ts +3 -1
- package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopupConnect.d.ts +1 -0
- package/lib/components/Legend/LegendConnect.d.ts +1 -1
- package/lib/components/MapView/MapViewConnect.MapPin.stories.d.ts +4 -0
- package/lib/components/MapView/MapViewConnect.stories.d.ts +0 -1
- package/lib/components/MapWarning/MapWarningProperties.d.ts +16 -1
- package/lib/components/ReactMapView/ReactMapView.d.ts +1 -0
- package/lib/components/Snackbar/SnackbarWrapper.d.ts +9 -0
- package/lib/components/{CustomSwitch/CustomSwitch.spec.d.ts → Snackbar/SnackbarWrapper.spec.d.ts} +0 -0
- package/lib/components/Snackbar/SnackbarWrapper.stories.d.ts +7 -0
- package/lib/components/Snackbar/SnackbarWrapperConnect.d.ts +3 -0
- package/lib/components/Snackbar/SnackbarWrapperConnect.spec.d.ts +1 -0
- package/lib/components/TimeSlider/TimeSliderButtons/AutoUpdateButton/AutoUpdateButton.d.ts +2 -0
- package/lib/components/TimeSlider/TimeSliderButtons/SpeedButton/SpeedButton.d.ts +1 -0
- package/lib/components/TimeSlider/TimeSliderButtons/TimeStepButton/TimeStepButton.d.ts +1 -0
- package/lib/components/WMSLoader/services.d.ts +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/store/coreModuleConfig.d.ts +1 -1
- package/lib/store/index.d.ts +1 -0
- package/lib/store/layerSelect/types.d.ts +2 -0
- package/lib/store/mapStore/layers/reducer.d.ts +3 -1
- package/lib/store/mapStore/layers/types.d.ts +1 -0
- package/lib/store/mapStore/map/selectors.d.ts +1 -1
- package/lib/store/mapStore/map/types.d.ts +1 -0
- package/lib/store/mapStore/map/utils.d.ts +2 -1
- package/lib/store/mapStore/service/selectors.d.ts +2 -0
- package/lib/store/mapStore/service/types.d.ts +1 -0
- package/lib/store/snackbar/config.d.ts +4 -0
- package/lib/store/snackbar/index.d.ts +2 -0
- package/lib/store/snackbar/reducer.d.ts +11 -0
- package/lib/store/snackbar/reducer.spec.d.ts +1 -0
- package/lib/store/snackbar/sagas.d.ts +5 -0
- package/lib/store/snackbar/sagas.spec.d.ts +1 -0
- package/lib/store/snackbar/selectors.d.ts +10 -0
- package/lib/store/snackbar/selectors.spec.d.ts +1 -0
- package/lib/store/snackbar/types.d.ts +17 -0
- package/lib/utils/jsonPresetFilter.d.ts +11 -12
- package/lib/utils/types.d.ts +2 -1
- package/package.json +8 -7
- package/lib/components/CustomSwitch/CustomSwitch.d.ts +0 -3
- package/lib/components/CustomSwitch/CustomSwitch.stories.d.ts +0 -7
- package/lib/components/CustomSwitch/index.d.ts +0 -1
- 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,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,4 +1,4 @@
|
|
|
1
|
-
import { UserAddedServices } from '../../../utils/types';
|
|
1
|
+
import { NoIdService, UserAddedServices } from '../../../utils/types';
|
|
2
2
|
import { Service } from '../../WMSLoader/services';
|
|
3
|
-
export declare const mergePresetsAndUserAddedServices: (presets: Service[], userAddedServices: UserAddedServices) =>
|
|
4
|
-
export declare const
|
|
3
|
+
export declare const mergePresetsAndUserAddedServices: (presets: Service[], userAddedServices: UserAddedServices) => NoIdService[];
|
|
4
|
+
export declare const isNoIdService: (param: unknown) => param is NoIdService;
|
package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.d.ts
CHANGED
|
@@ -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?:
|
|
11
|
+
services?: ActiveServices;
|
|
10
12
|
serviceSetLayers: (payload: SetLayersForServicePayload) => void;
|
|
11
13
|
}
|
|
12
14
|
export declare const ADD_HEADING = "Add a new service";
|
|
@@ -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 =
|
|
3
|
+
export declare const IS_LEGEND_OPEN_BY_DEFAULT = false;
|
|
4
4
|
interface LegendConnectProps {
|
|
5
5
|
showMapId?: boolean;
|
|
6
6
|
source?: Source;
|
|
@@ -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:
|
|
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 {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { SnackbarProps } from '@mui/material';
|
|
3
|
+
interface SnackBarWrapperProps extends SnackbarProps {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
id: string;
|
|
6
|
+
onCloseSnackbar: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const SnackbarWrapper: React.FC<SnackBarWrapperProps>;
|
|
9
|
+
export {};
|
package/lib/components/{CustomSwitch/CustomSwitch.spec.d.ts → Snackbar/SnackbarWrapper.spec.d.ts}
RENAMED
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
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, };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const coreModuleConfig: (import("redux-dynamic-modules-saga").ISagaModule<import("./mapStore/types").WebMapStateModuleState> | import("redux-dynamic-modules-saga").ISagaModule<import("./generic/synchronizationGroups/types").SynchronizationGroupModuleState> | import("redux-dynamic-modules-saga").ISagaModule<import("./ui/types").UIModuleState> | import("redux-dynamic-modules-saga").ISagaModule<import("./layerSelect/types").LayerSelectModuleState>)[];
|
|
1
|
+
declare const coreModuleConfig: (import("redux-dynamic-modules-saga").ISagaModule<import("./mapStore/types").WebMapStateModuleState> | import("redux-dynamic-modules-saga").ISagaModule<import("./generic/synchronizationGroups/types").SynchronizationGroupModuleState> | import("redux-dynamic-modules-saga").ISagaModule<import("./ui/types").UIModuleState> | import("redux-dynamic-modules-saga").ISagaModule<import("./layerSelect/types").LayerSelectModuleState> | import("redux-dynamic-modules-saga").ISagaModule<import("./snackbar/types").SnackbarModuleStore>)[];
|
|
2
2
|
export default coreModuleConfig;
|
package/lib/store/index.d.ts
CHANGED
|
@@ -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>;
|
|
@@ -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
|
}
|
|
@@ -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
|
|
755
|
+
* @returns {boolean} returnType: boolean
|
|
756
756
|
*/
|
|
757
757
|
export declare const getDisableMapPin: ((state: {
|
|
758
758
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
@@ -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
|
}> & {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
import { OpenSnackbarPayload, SnackbarItem, SnackbarState, TriggerOpenSnackbarBySagaPayload } from './types';
|
|
3
|
+
export declare const snackbarAdapter: import("@reduxjs/toolkit").EntityAdapter<SnackbarItem>;
|
|
4
|
+
export declare const initialState: SnackbarState;
|
|
5
|
+
export declare const reducer: import("@reduxjs/toolkit").Reducer<SnackbarState, import("@reduxjs/toolkit").AnyAction>;
|
|
6
|
+
export declare const snackbarActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
7
|
+
openSnackbar: (draft: import("immer/dist/internal").WritableDraft<SnackbarState>, action: PayloadAction<OpenSnackbarPayload>) => void;
|
|
8
|
+
triggerOpenSnackbarBySaga: (draft: import("immer/dist/internal").WritableDraft<SnackbarState>, action: PayloadAction<TriggerOpenSnackbarBySagaPayload>) => void;
|
|
9
|
+
closeSnackbar: (draft: import("immer/dist/internal").WritableDraft<SnackbarState>) => void;
|
|
10
|
+
}>;
|
|
11
|
+
export declare type SnackbarActions = ReturnType<typeof snackbarActions.openSnackbar> | ReturnType<typeof snackbarActions.triggerOpenSnackbarBySaga> | ReturnType<typeof snackbarActions.closeSnackbar>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SnackbarModuleStore, SnackbarState } from './types';
|
|
2
|
+
export declare const getSnackbarStore: (store: SnackbarModuleStore) => SnackbarState;
|
|
3
|
+
export declare const getCurrentSnackbarMessages: (state: SnackbarModuleStore) => import("./types").SnackbarItem[];
|
|
4
|
+
export declare const getFirstSnackbarMessage: ((state: {
|
|
5
|
+
snackbar?: SnackbarState;
|
|
6
|
+
}) => import("./types").SnackbarItem) & import("reselect").OutputSelectorFields<(args_0: import("./types").SnackbarItem[]) => import("./types").SnackbarItem & {
|
|
7
|
+
clearCache: () => void;
|
|
8
|
+
}> & {
|
|
9
|
+
clearCache: () => void;
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { EntityState } from '@reduxjs/toolkit';
|
|
2
|
+
export interface SnackbarMessage {
|
|
3
|
+
message: string;
|
|
4
|
+
}
|
|
5
|
+
export interface SnackbarItem extends SnackbarMessage {
|
|
6
|
+
id: string;
|
|
7
|
+
}
|
|
8
|
+
export declare type SnackbarState = EntityState<SnackbarItem>;
|
|
9
|
+
export interface SnackbarModuleStore {
|
|
10
|
+
snackbar?: SnackbarState;
|
|
11
|
+
}
|
|
12
|
+
export interface OpenSnackbarPayload {
|
|
13
|
+
snackbarContent: SnackbarMessage;
|
|
14
|
+
}
|
|
15
|
+
export interface TriggerOpenSnackbarBySagaPayload {
|
|
16
|
+
snackbarContent: SnackbarItem;
|
|
17
|
+
}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { Service } from '../components/WMSLoader/services';
|
|
2
2
|
import { Layer } from '../store/mapStore/types';
|
|
3
|
-
|
|
3
|
+
declare type FilteredLayerList = {
|
|
4
|
+
mapLayers: Layer[];
|
|
5
|
+
baseLayers: Layer[];
|
|
6
|
+
overLayers?: Layer[];
|
|
7
|
+
};
|
|
8
|
+
interface FilteredMapPresets extends FilteredLayerList {
|
|
4
9
|
services?: Service[];
|
|
5
10
|
baseServices?: Service[];
|
|
6
|
-
baseLayers: Layer[];
|
|
7
|
-
mapLayers: Layer[];
|
|
8
11
|
}
|
|
9
12
|
export interface InitialAppPresetProps {
|
|
10
13
|
presetType?: string;
|
|
@@ -18,14 +21,10 @@ export interface InitialAppPresetProps {
|
|
|
18
21
|
export interface InitialAppPreset {
|
|
19
22
|
preset: InitialAppPresetProps;
|
|
20
23
|
}
|
|
21
|
-
export declare const
|
|
22
|
-
export declare const
|
|
23
|
-
export declare const filterLayers: (layers?: Layer[]) =>
|
|
24
|
-
mapLayers: Layer[];
|
|
25
|
-
baseLayers: Layer[];
|
|
26
|
-
overLayers: Layer[];
|
|
27
|
-
};
|
|
24
|
+
export declare const parseBoolean: (value: string | boolean) => boolean;
|
|
25
|
+
export declare const parseLayer: (layer: Layer) => Layer;
|
|
26
|
+
export declare const filterLayers: (layers?: Layer[], layerParser?: (layer: Layer) => Layer) => FilteredLayerList;
|
|
28
27
|
export declare const filterServices: (presetArray: Service[]) => Service[];
|
|
29
|
-
export declare const filterMapPresets: (
|
|
30
|
-
export declare const
|
|
28
|
+
export declare const filterMapPresets: (initialAppPreset: InitialAppPreset) => FilteredMapPresets;
|
|
29
|
+
export declare const getInitialAppPresets: (mapPreset: InitialAppPreset, defaultInitialPresets: InitialAppPreset) => InitialAppPresetProps;
|
|
31
30
|
export {};
|
package/lib/utils/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.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": "
|
|
16
|
+
"@opengeoweb/theme": "4.0.0",
|
|
17
17
|
"@mui/material": "^5.2.8",
|
|
18
|
-
"@mui/styles": "^5.2.3",
|
|
19
18
|
"moment": "^2.29.0",
|
|
20
19
|
"react-redux": "^8.0.2",
|
|
20
|
+
"@mui/styles": "^5.2.3",
|
|
21
21
|
"react-intl": "^5.17.5",
|
|
22
|
-
"
|
|
22
|
+
"lodash": "^4.17.20",
|
|
23
|
+
"@opengeoweb/shared": "4.0.0",
|
|
23
24
|
"react-draggable": "^4.4.3",
|
|
24
25
|
"re-resizable": "^6.9.0",
|
|
25
|
-
"
|
|
26
|
-
"@opengeoweb/form-fields": "2.14.0",
|
|
26
|
+
"@opengeoweb/form-fields": "4.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": "
|
|
31
|
+
"@opengeoweb/webmap": "4.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 { default as CustomSwitch } from './CustomSwitch';
|