@opengeoweb/core 4.1.0 → 4.3.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 +2842 -2111
- package/index.umd.js +2852 -2120
- package/lib/components/CanvasComponent/CanvasComponent.d.ts +1 -0
- package/lib/components/LayerManager/LayerManager.d.ts +13 -0
- package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResults.d.ts +4 -4
- package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResults.stories.d.ts +12 -0
- package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsConnect.d.ts +0 -1
- package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsListItem.d.ts +5 -5
- package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsListItemConnect.d.ts +3 -2
- package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoButtonConnect.d.ts +11 -0
- package/lib/components/LayerManager/LayerSelect/{LayerSelectUtils.spec.d.ts → LayerInfo/LayerInfoButtonConnect.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoDialog.d.ts +14 -0
- package/lib/components/{TimeSlider/TimeSliderScaleSlider/TimeSliderScaleSlider.spec.d.ts → LayerManager/LayerSelect/LayerInfo/LayerInfoDialog.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoDialog.stories.d.ts +25 -0
- package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoDialogConnect.d.ts +3 -0
- package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoLegend.d.ts +10 -0
- package/lib/components/{TimeSlider/TimeSliderScaleSlider/TimeSliderScaleSliderConnect.spec.d.ts → LayerManager/LayerSelect/LayerInfo/LayerInfoLegend.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoList.d.ts +12 -0
- package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoText.d.ts +16 -0
- package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoUtils.d.ts +10 -0
- package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoUtils.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/LayerInfo/index.d.ts +2 -0
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerList.d.ts +7 -6
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerListConnect.d.ts +2 -0
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerListDimensions.d.ts +7 -0
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerListRow.d.ts +2 -1
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerListUtils.d.ts +1 -1
- package/lib/components/LayerManager/LayerSelect/LayerSelect.d.ts +4 -0
- package/lib/components/LayerManager/LayerSelect/LayerSelect.stories.d.ts +8 -0
- package/lib/components/LayerManager/LayerSelect/LayerSelectConnect.d.ts +0 -2
- package/lib/components/LayerManager/LayerSelect/LayerSelectUtils.d.ts +75 -4
- package/lib/components/LayerManager/LayerSelect/SearchField/SearchFieldButtonContainer.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChipConnect.d.ts +2 -1
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceList.d.ts +1 -1
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceListConnect.d.ts +3 -1
- package/lib/components/LayerManager/LayerSelect/ServiceOptionsButton/ServiceOptionsButton.d.ts +4 -1
- package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.d.ts +13 -3
- package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.stories.d.ts +12 -0
- package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialogConnect.d.ts +6 -1
- package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopup.d.ts +11 -5
- package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopup.stories.d.ts +39 -7
- package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopupConnect.d.ts +2 -1
- package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopupConnect.stories.d.ts +9 -0
- package/lib/components/LayerManager/LayerSelect/ServicePopup/utils.d.ts +8 -0
- package/lib/components/LayerManager/LayerSelect/ServicePopup/utils.spec.d.ts +1 -0
- package/lib/components/LayerManager/useFetchServices.d.ts +4 -0
- package/lib/components/LayerManager/useFetchServices.spec.d.ts +1 -0
- package/lib/components/Legend/LegendLayout.d.ts +13 -0
- package/lib/components/Legend/LegendLayout.spec.d.ts +1 -0
- package/lib/components/MapControls/MapControlButton.d.ts +1 -1
- package/lib/components/MultiMapDimensionSelect/DimensionSelectDialogConnect.d.ts +1 -1
- package/lib/components/ReactMapView/ReactMapView.d.ts +2 -1
- package/lib/components/ReactMapView/ReactMapViewParseLayer.d.ts +2 -2
- package/lib/components/ReactMapView/types.d.ts +2 -1
- package/lib/components/Snackbar/SnackbarWrapperConnect.spec.d.ts +7 -0
- package/lib/components/TimeSlider/TimeSlider.d.ts +0 -1
- package/lib/components/TimeSlider/TimeSliderButtons/NowButton/NowButton.d.ts +8 -0
- package/lib/components/TimeSlider/TimeSliderButtons/NowButton/NowButton.spec.d.ts +1 -0
- package/lib/components/TimeSlider/TimeSliderButtons/NowButton/NowButtonConnect.d.ts +9 -0
- package/lib/components/TimeSlider/TimeSliderButtons/NowButton/NowButtonConnect.spec.d.ts +1 -0
- package/lib/components/TimeSlider/TimeSliderButtons/OptionsMenuButton/OptionsMenuButton.d.ts +2 -0
- package/lib/components/TimeSlider/TimeSliderButtons/OptionsMenuButton/OptionsMenuButtonConnect.d.ts +1 -0
- package/lib/components/TimeSlider/TimeSliderButtons/SpeedButton/SpeedButton.d.ts +1 -1
- package/lib/components/TimeSlider/TimeSliderButtons/SpeedButton/SpeedButtonConnect.d.ts +1 -5
- package/lib/components/TimeSlider/TimeSliderButtons/TimeScaleButton/TimeScaleButton.d.ts +11 -0
- package/lib/components/TimeSlider/TimeSliderButtons/TimeScaleButton/TimeScaleButton.spec.d.ts +1 -0
- package/lib/components/TimeSlider/TimeSliderButtons/TimeScaleButton/TimeScaleButtonConnect.d.ts +4 -0
- package/lib/components/TimeSlider/TimeSliderButtons/TimeScaleButton/TimeScaleButtonConnect.spec.d.ts +1 -0
- package/lib/components/TimeSlider/TimeSliderButtons/TimeSliderButtons.stories.d.ts +6 -0
- package/lib/components/TimeSlider/TimeSliderButtons/TimeSliderButtonsConnect.d.ts +1 -0
- package/lib/components/TimeSlider/TimeSliderButtons/TimeSliderMenu/TimeSliderMenu.d.ts +18 -0
- package/lib/components/TimeSlider/TimeSliderButtons/TimeSliderMenu/TimeSliderMenu.spec.d.ts +1 -0
- package/lib/components/TimeSlider/TimeSliderButtons/TimeSliderMenu/TimeSliderMenu.stories.d.ts +24 -0
- package/lib/components/TimeSlider/TimeSliderButtons/TimeStepButton/TimeStepButton.d.ts +1 -1
- package/lib/components/TimeSlider/TimeSliderButtons/TimeStepButton/TimeStepButton.stories.d.ts +18 -3
- package/lib/components/TimeSlider/TimeSliderLegend/TimeSliderLegend.d.ts +1 -0
- package/lib/components/TimeSlider/TimeSliderUtils.d.ts +5 -0
- package/lib/components/WMSLoader/services.d.ts +3 -1
- package/lib/hooks/index.d.ts +1 -0
- package/lib/hooks/useSetupDialog/index.d.ts +1 -0
- package/lib/hooks/useSetupDialog/useSetupDialog.d.ts +9 -0
- package/lib/hooks/useSetupDialog/useSetupDialog.spec.d.ts +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/store/generic/synchronizationGroups/selectors.d.ts +2 -2
- package/lib/store/layerSelect/reducer.d.ts +8 -5
- package/lib/store/layerSelect/sagas.d.ts +3 -2
- package/lib/store/layerSelect/selectors.d.ts +71 -6
- package/lib/store/layerSelect/types.d.ts +34 -15
- package/lib/store/mapStore/map/sagas.d.ts +1 -1
- package/lib/store/mapStore/service/selectors.d.ts +0 -27
- package/lib/store/mapStore/service/types.d.ts +13 -3
- package/lib/store/ui/selectors.d.ts +5 -5
- package/lib/store/ui/types.d.ts +12 -1
- package/lib/store/utils.d.ts +2 -0
- package/lib/utils/__mocks__/getCapabilities.d.ts +2 -14
- package/lib/utils/defaultTestSettings.d.ts +3 -0
- package/lib/utils/getCapabilities.d.ts +4 -1
- package/package.json +11 -10
- package/lib/components/TimeSlider/TimeSliderScaleSlider/TimeSliderScaleSlider.d.ts +0 -12
- package/lib/components/TimeSlider/TimeSliderScaleSlider/TimeSliderScaleSlider.stories.d.ts +0 -13
- package/lib/components/TimeSlider/TimeSliderScaleSlider/TimeSliderScaleSliderConnect.d.ts +0 -24
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { NoIdService, UserAddedServices } from '../../utils/types';
|
|
2
|
+
import { Service } from '../WMSLoader/services';
|
|
3
|
+
export declare const useFetchServices: (dialogType: string, preloadedServices?: Service[]) => void;
|
|
4
|
+
export declare const mergePresetsAndUserAddedServices: (presets: Service[], userAddedServices: UserAddedServices) => NoIdService[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Dimension } from '../../store/mapStore/types';
|
|
3
|
+
interface LegendLayoutProps {
|
|
4
|
+
title: string;
|
|
5
|
+
name: string;
|
|
6
|
+
dimensions: Dimension[];
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
height?: number;
|
|
9
|
+
width?: number;
|
|
10
|
+
minWidth?: number;
|
|
11
|
+
}
|
|
12
|
+
declare const LegendLayout: React.FC<LegendLayoutProps>;
|
|
13
|
+
export default LegendLayout;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -5,7 +5,7 @@ interface MapControlButtonProps extends ToolButtonProps {
|
|
|
5
5
|
onClick: () => void;
|
|
6
6
|
isActive?: boolean;
|
|
7
7
|
placement?: TooltipProps['placement'];
|
|
8
|
-
children: React.
|
|
8
|
+
children: React.ReactNode;
|
|
9
9
|
}
|
|
10
10
|
declare const MapControlButton: React.FC<MapControlButtonProps>;
|
|
11
11
|
export default MapControlButton;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
1
2
|
import * as React from 'react';
|
|
2
3
|
import { WMJSMap, WMLayer, WMBBOX } from '@opengeoweb/webmap';
|
|
3
4
|
import { FeatureLayer } from './AdagucMapDrawContainer';
|
|
@@ -41,7 +42,7 @@ declare class ReactMapView extends React.Component<ReactMapViewProps, ReactMapVi
|
|
|
41
42
|
currentHeight: any;
|
|
42
43
|
adagucContainerRef: any;
|
|
43
44
|
adagucWebMapJSRef: any;
|
|
44
|
-
refetchTimer:
|
|
45
|
+
refetchTimer: NodeJS.Timeout;
|
|
45
46
|
static defaultProps: {
|
|
46
47
|
srs: string;
|
|
47
48
|
bbox: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { WMLayer, WMJSMap } from '@opengeoweb/webmap';
|
|
1
|
+
import { WMLayer, WMJSMap, WMJSDimension } from '@opengeoweb/webmap';
|
|
2
2
|
import { UpdateLayerInfoPayload } from '../../store/mapStore/types';
|
|
3
3
|
import { MapViewProps } from '../MapView/types';
|
|
4
|
-
export declare const getCurrentDimensionValue: (dimensions:
|
|
4
|
+
export declare const getCurrentDimensionValue: (dimensions: WMJSDimension[], name: string) => string;
|
|
5
5
|
export declare const setServiceMetadata: (wmLayer: WMLayer, mapId: string, webMapJSInstance: WMJSMap, mapProperties: MapViewProps, onUpdateLayerInformation?: (payload: UpdateLayerInfoPayload) => void) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { WMJSMap } from '@opengeoweb/webmap';
|
|
3
|
-
import { SetMapDimensionPayload, Dimension, SetBboxPayload, Bbox, MapPinLocationPayload, MapLocation, UpdateLayerInfoPayload } from '../../store/mapStore/types';
|
|
3
|
+
import { SetMapDimensionPayload, Dimension, SetBboxPayload, Bbox, MapPinLocationPayload, MapLocation, UpdateLayerInfoPayload, Services } from '../../store/mapStore/types';
|
|
4
4
|
export interface ReactMapViewProps {
|
|
5
5
|
listeners?: {
|
|
6
6
|
name?: string;
|
|
@@ -25,6 +25,7 @@ export interface ReactMapViewProps {
|
|
|
25
25
|
shouldAutoFetch?: boolean;
|
|
26
26
|
showLayerInfo?: boolean;
|
|
27
27
|
disableMapPin?: boolean;
|
|
28
|
+
services?: Services;
|
|
28
29
|
onMount?: (mapId: string, WMJSMapInstance: WMJSMap) => void;
|
|
29
30
|
onUnMount?: (mapId: string, WMJSMapInstance: WMJSMap) => void;
|
|
30
31
|
onMapChangeDimension?: (payload: SetMapDimensionPayload) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const defaultAnimationDuration = 6;
|
|
3
|
+
export interface NowButtonConnectProps {
|
|
4
|
+
sourceId: string;
|
|
5
|
+
mapId: string;
|
|
6
|
+
isDisabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const NowButtonConnect: React.FC<NowButtonConnectProps>;
|
|
9
|
+
export default NowButtonConnect;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/lib/components/TimeSlider/TimeSliderButtons/OptionsMenuButton/OptionsMenuButton.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
interface OptionsMenuButtonProps {
|
|
3
|
+
nowBtn?: React.ReactChild;
|
|
3
4
|
autoUpdateBtn?: React.ReactChild;
|
|
4
5
|
speedBtn?: React.ReactChild;
|
|
5
6
|
timeStepBtn?: React.ReactChild;
|
|
7
|
+
timeScaleBtn?: React.ReactChild;
|
|
6
8
|
}
|
|
7
9
|
declare const OptionsMenuButton: React.FC<OptionsMenuButtonProps>;
|
|
8
10
|
export default OptionsMenuButton;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { mapActions } from '../../../../store';
|
|
3
1
|
interface SpeedButtonConnectProps {
|
|
4
|
-
animationDelay?: number;
|
|
5
2
|
mapId: string;
|
|
6
|
-
setMapAnimationDelay?: typeof mapActions.setAnimationDelay;
|
|
7
3
|
}
|
|
8
|
-
declare const SpeedButtonConnect:
|
|
4
|
+
declare const SpeedButtonConnect: ({ mapId, }: SpeedButtonConnectProps) => JSX.Element;
|
|
9
5
|
export default SpeedButtonConnect;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Layer, Scale } from '../../../../store/mapStore/types';
|
|
2
|
+
interface TimeScaleButtonProps {
|
|
3
|
+
layers?: Layer[];
|
|
4
|
+
timeSliderScale: Scale;
|
|
5
|
+
centerTime: number;
|
|
6
|
+
secondsPerPx: number;
|
|
7
|
+
selectedTime: number;
|
|
8
|
+
onChangeTimeSliderScale: (scale: number, newCenterTime: number, dataScalePerPx: number) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const TimeScaleButton: ({ layers, timeSliderScale, centerTime, secondsPerPx, selectedTime, onChangeTimeSliderScale, }: TimeScaleButtonProps) => JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/lib/components/TimeSlider/TimeSliderButtons/TimeScaleButton/TimeScaleButtonConnect.spec.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface Mark {
|
|
3
|
+
label?: string;
|
|
4
|
+
value: number;
|
|
5
|
+
text: string;
|
|
6
|
+
}
|
|
7
|
+
export interface TimeSliderMenuProps {
|
|
8
|
+
marks: Mark[];
|
|
9
|
+
value: number;
|
|
10
|
+
handleMenuItemClick: (mark: Mark) => void;
|
|
11
|
+
title: string;
|
|
12
|
+
icon: JSX.Element;
|
|
13
|
+
isOpenByDefault?: boolean;
|
|
14
|
+
isDisabled?: boolean;
|
|
15
|
+
handleAutoClick?: () => void;
|
|
16
|
+
isAutoSelected?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export declare const TimeSliderMenu: ({ marks, value, isOpenByDefault, handleMenuItemClick, isDisabled, handleAutoClick, isAutoSelected, title, icon, }: TimeSliderMenuProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/lib/components/TimeSlider/TimeSliderButtons/TimeSliderMenu/TimeSliderMenu.stories.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
};
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const TimeSliderMenuDemoLight: {
|
|
6
|
+
(): JSX.Element;
|
|
7
|
+
storyName: string;
|
|
8
|
+
parameters: {
|
|
9
|
+
zeplinLink: {
|
|
10
|
+
name: string;
|
|
11
|
+
link: string;
|
|
12
|
+
}[];
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export declare const TimeSliderMenuDemoDark: {
|
|
16
|
+
(): JSX.Element;
|
|
17
|
+
storyName: string;
|
|
18
|
+
parameters: {
|
|
19
|
+
zeplinLink: {
|
|
20
|
+
name: string;
|
|
21
|
+
link: string;
|
|
22
|
+
}[];
|
|
23
|
+
};
|
|
24
|
+
};
|
package/lib/components/TimeSlider/TimeSliderButtons/TimeStepButton/TimeStepButton.stories.d.ts
CHANGED
|
@@ -1,9 +1,24 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
declare const _default: {
|
|
3
2
|
title: string;
|
|
4
3
|
};
|
|
5
4
|
export default _default;
|
|
6
|
-
export declare const
|
|
7
|
-
():
|
|
5
|
+
export declare const TimeStepButtonDemoLight: {
|
|
6
|
+
(): JSX.Element;
|
|
8
7
|
storyName: string;
|
|
8
|
+
parameters: {
|
|
9
|
+
zeplinLink: {
|
|
10
|
+
name: string;
|
|
11
|
+
link: string;
|
|
12
|
+
}[];
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export declare const TimeStepButtonDemoDark: {
|
|
16
|
+
(): JSX.Element;
|
|
17
|
+
storyName: string;
|
|
18
|
+
parameters: {
|
|
19
|
+
zeplinLink: {
|
|
20
|
+
name: string;
|
|
21
|
+
link: string;
|
|
22
|
+
}[];
|
|
23
|
+
};
|
|
9
24
|
};
|
|
@@ -19,4 +19,5 @@ export interface TimeSliderLegendProps {
|
|
|
19
19
|
onZoom?: (newSecondsPerPx: number, newCenterTime: number) => void;
|
|
20
20
|
}
|
|
21
21
|
declare const TimeSliderLegend: React.FC<TimeSliderLegendProps>;
|
|
22
|
+
export declare const TIME_SLIDER_LEGEND_HEIGHT = 50;
|
|
22
23
|
export default TimeSliderLegend;
|
|
@@ -3,6 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import { DateInterval } from '@opengeoweb/webmap';
|
|
4
4
|
import { Dimension, Layer, Scale, SpeedFactorType } from '../../store/mapStore/types';
|
|
5
5
|
import CanvasComponent from '../CanvasComponent/CanvasComponent';
|
|
6
|
+
export declare const millisecondsInSecond = 1000;
|
|
6
7
|
export declare const defaultAnimationDelayAtStart = 250;
|
|
7
8
|
export declare const defaultDelay = 1000;
|
|
8
9
|
export declare const defaultTimeStep = 5;
|
|
@@ -109,3 +110,7 @@ export declare const needleGeom: {
|
|
|
109
110
|
};
|
|
110
111
|
export declare const AUTO_MOVE_AREA_PADDING = 1;
|
|
111
112
|
export declare const getAutoMoveAreaWidth: (scale: Scale) => number;
|
|
113
|
+
/** Reusable business logic for how to handle events that set time to now (closest).
|
|
114
|
+
* Used in NowButton and TimeSliderLegend.
|
|
115
|
+
*/
|
|
116
|
+
export declare const handleSetNowEvent: (timeStep: number, dataStartTime: number, dataEndTime: number, currentTime: number, onSetNewDate: (newDate: string) => void, onSetCenterTime: (newTime: number) => void) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './useSetupDialog';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './useSetupDialog';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { uiTypes } from '../..';
|
|
2
|
+
export interface SetupDialogReturnValue {
|
|
3
|
+
setDialogOrder: () => void;
|
|
4
|
+
dialogOrder: number;
|
|
5
|
+
onCloseDialog: () => void;
|
|
6
|
+
uiSource: uiTypes.Source;
|
|
7
|
+
isDialogOpen: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const useSetupDialog: (dialogType: uiTypes.DialogType) => SetupDialogReturnValue;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/lib/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ import * as SyncGroups from './store/generic/synchronizationGroups';
|
|
|
8
8
|
import coreModuleConfig from './store/coreModuleConfig';
|
|
9
9
|
import { LayerManagerConnect, LayerManagerMapButtonConnect } from './components/LayerManager';
|
|
10
10
|
import { MultiDimensionSelectMapButtonsConnect, MultiMapDimensionSelectConnect } from './components/MultiMapDimensionSelect';
|
|
11
|
+
export * from './hooks';
|
|
11
12
|
export * from './components/MultiMapView/MultiMapViewConnect';
|
|
12
13
|
export * from './components/MultiMapView/HarmoniePresets';
|
|
13
14
|
export { MapViewConnect, MapView, MapViewLayer } from './components/MapView';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AppStore } from '../../../types/types';
|
|
2
|
-
import {
|
|
2
|
+
import { GenericSyncActionPayload } from '../synchronizationActions/types';
|
|
3
3
|
import { GenericActionPayload } from '../types';
|
|
4
4
|
import { SynchronizationGroup, SynchronizationGroupState, SynchronizationSource, SyncType } from './types';
|
|
5
5
|
export declare const syncGroupStore: (store: AppStore) => SynchronizationGroupState;
|
|
@@ -24,7 +24,7 @@ export declare const getSynchronizationGroupState: ((state: {
|
|
|
24
24
|
};
|
|
25
25
|
export declare const getSynchronizationGroup: (state: AppStore, id: string) => SynchronizationGroup;
|
|
26
26
|
export declare const getSynchronizationGroupSource: (state: AppStore, id: string) => SynchronizationSource;
|
|
27
|
-
export declare const getTargets: (state: AppStore, payload: GenericActionPayload, actionType: SyncType) =>
|
|
27
|
+
export declare const getTargets: (state: AppStore, payload: GenericActionPayload, actionType: SyncType) => GenericSyncActionPayload[];
|
|
28
28
|
export declare const getTargetGroups: (state: AppStore, payload: GenericActionPayload, actionType: SyncType) => string[];
|
|
29
29
|
export declare const syncGroupGetViewState: ((state: {
|
|
30
30
|
syncronizationGroupStore?: SynchronizationGroupState;
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
-
import { AddKeywordsAndActiveServicesPayload, DisableActiveServicePayload, EnableActiveServicePayload, EnableOnlyOneKeywordPayload,
|
|
2
|
+
import { AddKeywordsAndActiveServicesPayload, DisableActiveServicePayload, EnableActiveServicePayload, EnableOnlyOneKeywordPayload, LayerSelectRemoveServicePayload, LayerSelectStoreType, SetAllServicesEnabledPayload, SetActiveLayerInfoPayload, SetSearchFilterPayload, ToggleKeywordsPayload } from './types';
|
|
3
3
|
export declare const initialState: LayerSelectStoreType;
|
|
4
4
|
export declare const reducer: import("@reduxjs/toolkit").Reducer<LayerSelectStoreType, import("@reduxjs/toolkit").AnyAction>;
|
|
5
5
|
export declare const layerSelectActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
6
6
|
setSearchFilter: (draft: import("immer/dist/internal").WritableDraft<LayerSelectStoreType>, action: PayloadAction<SetSearchFilterPayload>) => void;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
setAllServicesEnabled: (draft: import("immer/dist/internal").WritableDraft<LayerSelectStoreType>, action: PayloadAction<SetAllServicesEnabledPayload>) => void;
|
|
8
|
+
addFiltersAndActiveServices: (draft: import("immer/dist/internal").WritableDraft<LayerSelectStoreType>, action: PayloadAction<AddKeywordsAndActiveServicesPayload>) => void;
|
|
9
|
+
layerSelectRemoveService: (draft: import("immer/dist/internal").WritableDraft<LayerSelectStoreType>, action: PayloadAction<LayerSelectRemoveServicePayload>) => void;
|
|
9
10
|
enableActiveService: (draft: import("immer/dist/internal").WritableDraft<LayerSelectStoreType>, action: PayloadAction<EnableActiveServicePayload>) => void;
|
|
10
11
|
disableActiveService: (draft: import("immer/dist/internal").WritableDraft<LayerSelectStoreType>, action: PayloadAction<DisableActiveServicePayload>) => void;
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
toggleFilter: (draft: import("immer/dist/internal").WritableDraft<LayerSelectStoreType>, action: PayloadAction<ToggleKeywordsPayload>) => void;
|
|
13
|
+
enableOnlyOneFilter: (draft: import("immer/dist/internal").WritableDraft<LayerSelectStoreType>, action: PayloadAction<EnableOnlyOneKeywordPayload>) => void;
|
|
14
|
+
setActiveLayerInfo: (draft: import("immer/dist/internal").WritableDraft<LayerSelectStoreType>, action: PayloadAction<SetActiveLayerInfoPayload>) => void;
|
|
13
15
|
}>;
|
|
16
|
+
export declare type LayerSelectActions = ReturnType<typeof layerSelectActions.setSearchFilter> | ReturnType<typeof layerSelectActions.addFiltersAndActiveServices> | ReturnType<typeof layerSelectActions.layerSelectRemoveService> | ReturnType<typeof layerSelectActions.enableActiveService> | ReturnType<typeof layerSelectActions.disableActiveService> | ReturnType<typeof layerSelectActions.toggleFilter> | ReturnType<typeof layerSelectActions.enableOnlyOneFilter> | ReturnType<typeof layerSelectActions.setActiveLayerInfo>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { SagaIterator } from 'redux-saga';
|
|
2
|
-
import {
|
|
2
|
+
import { serviceActions, ServiceActions } from '../mapStore/service/reducer';
|
|
3
|
+
import { LayerSelectActions } from './reducer';
|
|
3
4
|
export declare function newServiceAddedSaga(capturedAction: ServiceActions): SagaIterator;
|
|
4
|
-
export declare function
|
|
5
|
+
export declare function layerSelectRemoveServiceSaga(capturedAction: LayerSelectActions): SagaIterator;
|
|
5
6
|
export declare function addServiceToLocalStorageSaga({ payload, }: ReturnType<typeof serviceActions.serviceSetLayers>): void;
|
|
6
7
|
export declare function removeServiceFromLocalStorageSaga({ payload, }: ReturnType<typeof serviceActions.mapStoreRemoveService>): void;
|
|
7
8
|
export declare function rootSaga(): SagaIterator;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AppStore } from '../../types/types';
|
|
2
|
-
import { LayerSelectStoreType, ActiveServices,
|
|
2
|
+
import { LayerSelectStoreType, ActiveServices, ActiveServiceObject, Filter, ActiveLayerObject } from './types';
|
|
3
3
|
/**
|
|
4
4
|
* Returns search filter string
|
|
5
5
|
*
|
|
@@ -38,6 +38,15 @@ export declare const getActiveServices: ((state: {
|
|
|
38
38
|
}> & {
|
|
39
39
|
clearCache: () => void;
|
|
40
40
|
};
|
|
41
|
+
/**
|
|
42
|
+
* Returns active services by id
|
|
43
|
+
*
|
|
44
|
+
* Example getActiveServices(store, 'server-id');
|
|
45
|
+
* @param {object} store store: object - store object
|
|
46
|
+
* @param {serverId} serverId serverId: string - active server id
|
|
47
|
+
* @returns {object} returnType: object of active service
|
|
48
|
+
*/
|
|
49
|
+
export declare const getActiveServiceById: (store: AppStore, serviceId: string) => ActiveServiceObject;
|
|
41
50
|
/**
|
|
42
51
|
* Returns all ids of enabled services
|
|
43
52
|
*
|
|
@@ -64,7 +73,7 @@ export declare const getEnabledServiceIds: ((state: {
|
|
|
64
73
|
* @param {object} store store: object - store object
|
|
65
74
|
* @returns {array} returnType: array of keyword ids that are checked
|
|
66
75
|
*/
|
|
67
|
-
export declare const
|
|
76
|
+
export declare const getCheckedFilterIds: ((state: {
|
|
68
77
|
syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
69
78
|
ui?: import("../ui/types").UIStoreType;
|
|
70
79
|
webmap?: import("../mapStore/types").WebMapState;
|
|
@@ -83,7 +92,7 @@ export declare const getCheckedKeywordIds: ((state: {
|
|
|
83
92
|
* @param {object} store store: object - store object
|
|
84
93
|
* @returns {array} returnType: array of all keyword ids
|
|
85
94
|
*/
|
|
86
|
-
export declare const
|
|
95
|
+
export declare const getAllFilterIds: ((state: {
|
|
87
96
|
syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
88
97
|
ui?: import("../ui/types").UIStoreType;
|
|
89
98
|
webmap?: import("../mapStore/types").WebMapState;
|
|
@@ -95,6 +104,25 @@ export declare const getAllKeywordIds: ((state: {
|
|
|
95
104
|
}> & {
|
|
96
105
|
clearCache: () => void;
|
|
97
106
|
};
|
|
107
|
+
/**
|
|
108
|
+
* Returns all filters
|
|
109
|
+
*
|
|
110
|
+
* Example getAllFilters(store);
|
|
111
|
+
* @param {object} store store: object - store object
|
|
112
|
+
* @returns {array} returnType: array of all filters
|
|
113
|
+
*/
|
|
114
|
+
export declare const getAllFilters: ((state: {
|
|
115
|
+
syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
116
|
+
ui?: import("../ui/types").UIStoreType;
|
|
117
|
+
webmap?: import("../mapStore/types").WebMapState;
|
|
118
|
+
services?: import("../mapStore/types").ServiceState;
|
|
119
|
+
layers?: import("../mapStore/types").LayerState;
|
|
120
|
+
layerSelect?: LayerSelectStoreType;
|
|
121
|
+
}) => Filter[]) & import("reselect").OutputSelectorFields<(args_0: LayerSelectStoreType) => Filter[] & {
|
|
122
|
+
clearCache: () => void;
|
|
123
|
+
}> & {
|
|
124
|
+
clearCache: () => void;
|
|
125
|
+
};
|
|
98
126
|
/**
|
|
99
127
|
* Returns if all keywords are checked
|
|
100
128
|
*
|
|
@@ -102,7 +130,7 @@ export declare const getAllKeywordIds: ((state: {
|
|
|
102
130
|
* @param {object} store store: object - store object
|
|
103
131
|
* @returns {array} returnType: boolean if all keywords are checked
|
|
104
132
|
*/
|
|
105
|
-
export declare const
|
|
133
|
+
export declare const isAllFiltersChecked: ((state: {
|
|
106
134
|
syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
107
135
|
ui?: import("../ui/types").UIStoreType;
|
|
108
136
|
webmap?: import("../mapStore/types").WebMapState;
|
|
@@ -119,7 +147,44 @@ export declare const isAllKeywordsChecked: ((state: {
|
|
|
119
147
|
*
|
|
120
148
|
* Example: keywordObject = getKeywordObjectById(store, 'keywordId')
|
|
121
149
|
* @param {object} store object from which the keyword state will be extracted
|
|
122
|
-
* @param {string}
|
|
150
|
+
* @param {string} filterId Id of the keyword
|
|
123
151
|
* @returns {object} object containing keyword information (id, amount, amountVisible, checked)
|
|
124
152
|
*/
|
|
125
|
-
export declare const
|
|
153
|
+
export declare const getFilterById: (store: AppStore, filterId: string) => Filter;
|
|
154
|
+
/**
|
|
155
|
+
* Returns the active layer info
|
|
156
|
+
*
|
|
157
|
+
* Example getActiveLayerInfo(store);
|
|
158
|
+
* @param {object} store store: object - store object
|
|
159
|
+
* @returns {object} returnType: ActiveLayerObject
|
|
160
|
+
*/
|
|
161
|
+
export declare const getActiveLayerInfo: ((state: {
|
|
162
|
+
syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
163
|
+
ui?: import("../ui/types").UIStoreType;
|
|
164
|
+
webmap?: import("../mapStore/types").WebMapState;
|
|
165
|
+
services?: import("../mapStore/types").ServiceState;
|
|
166
|
+
layers?: import("../mapStore/types").LayerState;
|
|
167
|
+
layerSelect?: LayerSelectStoreType;
|
|
168
|
+
}) => ActiveLayerObject) & import("reselect").OutputSelectorFields<(args_0: LayerSelectStoreType) => ActiveLayerObject & {
|
|
169
|
+
clearCache: () => void;
|
|
170
|
+
}> & {
|
|
171
|
+
clearCache: () => void;
|
|
172
|
+
};
|
|
173
|
+
/**
|
|
174
|
+
* Returns a filtered active layer object based on the given filter settings
|
|
175
|
+
* Example: layerSelectSelectors.getFilteredLayers(store, filteredSettings);
|
|
176
|
+
* @param {object} store store: object - object from which the service state will be extracted
|
|
177
|
+
* @returns {array} returnType: ActiveLayerObject - an array of all filtered activelayers
|
|
178
|
+
*/
|
|
179
|
+
export declare const getFilteredLayers: ((state: {
|
|
180
|
+
syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
181
|
+
ui?: import("../ui/types").UIStoreType;
|
|
182
|
+
webmap?: import("../mapStore/types").WebMapState;
|
|
183
|
+
services?: import("../mapStore/types").ServiceState;
|
|
184
|
+
layers?: import("../mapStore/types").LayerState;
|
|
185
|
+
layerSelect?: LayerSelectStoreType;
|
|
186
|
+
}) => ActiveLayerObject[]) & import("reselect").OutputSelectorFields<(args_0: string[], args_1: import("../mapStore/types").Services, args_2: string[], args_3: boolean, args_4: string) => ActiveLayerObject[] & {
|
|
187
|
+
clearCache: () => void;
|
|
188
|
+
}> & {
|
|
189
|
+
clearCache: () => void;
|
|
190
|
+
};
|