@opengeoweb/core 1.2.2 → 2.1.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/README.md +11 -12
- package/core.esm.js +10901 -9141
- package/core.umd.js +12644 -10566
- package/lib/components/ConfigurableMapWithSlider/ConfigurableMapWithSliderConnect.d.ts +14 -0
- package/lib/components/{LayerManager/LayerContainerRow/LayerRow/Menubutton/DeleteLayer/DeleteButton.spec.d.ts → ConfigurableMapWithSlider/ConfigurableMapWithSliderConnect.spec.d.ts} +0 -0
- package/lib/components/ConfigurableMapWithSlider/index.d.ts +1 -0
- package/lib/components/LayerManager/AddLayersButton/AddLayersButton.d.ts +1 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerManagerButton.d.ts +12 -0
- package/lib/components/LayerManager/LayerContainerRow/{LayerRow/Menubutton/DeleteLayer/DeleteLayerConnect.spec.d.ts → LayerManagerButton.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/ActivateLayer/ActivateLayer.d.ts +9 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/{Menubutton/DuplicateLayer/DuplicateButton.spec.d.ts → ActivateLayer/ActivateLayer.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/ActivateLayer/ActivateLayerConnect.d.ts +16 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/{Menubutton/DuplicateLayer/DuplicateLayerConnect.spec.d.ts → ActivateLayer/ActivateLayerConnect.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/{Menubutton/DeleteLayer/DeleteButton.d.ts → DeleteLayer/DeleteLayer.d.ts} +2 -1
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/{Menubutton/LayerManagerMenuButton.spec.d.ts → DeleteLayer/DeleteLayer.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/{Menubutton/DeleteLayer → DeleteLayer}/DeleteLayerConnect.d.ts +1 -0
- package/lib/components/LayerManager/LayerContainerRow/{SortableRowContainer/SortableRowContainer.spec.d.ts → LayerRow/DeleteLayer/DeleteLayerConnect.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelect.d.ts +1 -1
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/DragHandle/DragHandle.d.ts +7 -3
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/EnableLayer/EnableLayer.d.ts +1 -2
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/EnableLayer/EnableLayerConnect.d.ts +0 -1
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/LayerRow.d.ts +4 -2
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/LayerRowConnect.d.ts +11 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/Menubutton/{LayerManagerMenuButton.d.ts → MenuButton.d.ts} +1 -7
- package/lib/components/{MultiDimensionSelect/MultiDimensionSelectConnect.spec.d.ts → LayerManager/LayerContainerRow/LayerRow/Menubutton/MenuButton.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/Menubutton/MenuButtonConnect.d.ts +7 -0
- package/lib/components/{MultiDimensionSelect/MultiDimensionSelectDialog.spec.d.ts → LayerManager/LayerContainerRow/LayerRow/Menubutton/MenuButtonConnect.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/Menubutton/MenuItemButton.d.ts +8 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/OpacitySelect/OpacitySelect.d.ts +1 -1
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/OpacitySelect/OpacitySelectConnect.d.ts +0 -1
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderLayers/RenderLayers.d.ts +1 -1
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderLayers/RenderLayersConnect.d.ts +0 -1
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderStyles/RenderStyles.d.ts +1 -1
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/styles.d.ts +4 -0
- package/lib/components/LayerManager/LayerManager.d.ts +5 -1
- package/lib/components/LayerManager/LayerManager.stories.d.ts +3 -1
- package/lib/components/LayerManager/LayerManagerConnect.d.ts +1 -1
- package/lib/components/LayerManager/LayerManagerMapButtonConnect.d.ts +2 -0
- package/lib/components/LayerManager/LayerSelect/LayerSelect.d.ts +14 -0
- package/lib/components/{MultiDimensionSelect/VerticalDimensionSelect.spec.d.ts → LayerManager/LayerSelect/LayerSelect.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerSelect/LayerSelect.stories.d.ts +9 -0
- package/lib/components/LayerManager/LayerSelect/LayerSelectButtonConnect.d.ts +8 -0
- package/lib/components/LayerManager/LayerSelect/LayerSelectButtonConnect.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/LayerSelectConnect.d.ts +14 -0
- package/lib/components/LayerManager/LayerSelect/LayerSelectConnect.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopup.d.ts +11 -0
- package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopup.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopup.stories.d.ts +13 -0
- package/lib/components/LayerManager/{tooltipSelectContainerStyles.d.ts → tooltipContainerStyles.d.ts} +0 -0
- package/lib/components/Legend/LegendConnect.d.ts +1 -2
- package/lib/components/Legend/LegendDialog.d.ts +2 -0
- package/lib/components/Mapcontrols/MapControlButton.d.ts +11 -0
- package/lib/components/Mapcontrols/MapControlButton.spec.d.ts +1 -0
- package/lib/components/Mapcontrols/MapControls.d.ts +7 -0
- package/lib/components/Mapcontrols/MapControls.spec.d.ts +1 -0
- package/lib/components/Mapcontrols/ZoomControls.d.ts +0 -8
- package/lib/components/Mapcontrols/ZoomControlsConnect.d.ts +6 -0
- package/lib/components/Mapcontrols/ZoomControlsConnect.spec.d.ts +1 -0
- package/lib/components/Mapcontrols/index.d.ts +4 -0
- package/lib/components/MultiMapDimensionSelect/DimensionSelectButton.d.ts +8 -0
- package/lib/components/MultiMapDimensionSelect/DimensionSelectButton.spec.d.ts +1 -0
- package/lib/components/MultiMapDimensionSelect/DimensionSelectButtonConnect.d.ts +7 -0
- package/lib/components/MultiMapDimensionSelect/DimensionSelectButtonConnect.spec.d.ts +1 -0
- package/lib/components/MultiMapDimensionSelect/DimensionSelectDialogConnect.d.ts +12 -0
- package/lib/components/MultiMapDimensionSelect/DimensionSelectDialogConnect.spec.d.ts +1 -0
- package/lib/components/{MultiDimensionSelect/VerticalDimensionSelect.d.ts → MultiMapDimensionSelect/DimensionSelectSlider.d.ts} +5 -4
- package/lib/components/MultiMapDimensionSelect/DimensionSelectSlider.spec.d.ts +1 -0
- package/lib/components/MultiMapDimensionSelect/DimensionSelectSliderConnect.d.ts +11 -0
- package/lib/components/MultiMapDimensionSelect/DimensionSelectSliderConnect.spec.d.ts +1 -0
- package/lib/components/{MultiDimensionSelect → MultiMapDimensionSelect}/EnsembleDimensionExample.stories.d.ts +0 -0
- package/lib/components/{MultiDimensionSelect → MultiMapDimensionSelect}/MultiDimensionSelect.stories.d.ts +1 -0
- package/lib/components/MultiMapDimensionSelect/MultiDimensionSelectConfig.d.ts +11 -0
- package/lib/components/{MultiDimensionSelect → MultiMapDimensionSelect}/MultiDimensionSelectConnect.stories.d.ts +0 -1
- package/lib/components/MultiMapDimensionSelect/MultiDimensionSelectMapButtonsConnect.d.ts +6 -0
- package/lib/components/MultiMapDimensionSelect/MultiDimensionSelectMapButtonsConnect.spec.d.ts +1 -0
- package/lib/components/MultiMapDimensionSelect/MultiMapMultiDimensionSelect.stories.d.ts +2 -0
- package/lib/components/MultiMapDimensionSelect/MultiMapMultiDimensionSelectConnect.d.ts +9 -0
- package/lib/components/MultiMapDimensionSelect/MultiMapMultiDimensionSelectConnect.spec.d.ts +1 -0
- package/lib/components/MultiMapDimensionSelect/MultiMapSingleDimensionSelectConnect.d.ts +8 -0
- package/lib/components/MultiMapDimensionSelect/MultiMapSingleDimensionSelectConnect.spec.d.ts +1 -0
- package/lib/components/MultiMapDimensionSelect/index.d.ts +2 -0
- package/lib/components/MultiMapView/HarmoniePresets/HarmRefTimePreset.d.ts +9 -0
- package/lib/components/MultiMapView/HarmoniePresets/HarmRefTimePreset.spec.d.ts +1 -0
- package/lib/components/MultiMapView/HarmoniePresets/HarmonieTempAndPrecipPreset.d.ts +11 -0
- package/lib/components/MultiMapView/HarmoniePresets/index.d.ts +2 -0
- package/lib/components/MultiMapView/MultiMapView.stories.d.ts +0 -2
- package/lib/components/MultiMapView/MultiMapViewConnect.d.ts +6 -2
- package/lib/components/MultiMapView/storyUtils/mapPresets.d.ts +23 -11
- package/lib/components/Providers/Providers.d.ts +2 -1
- package/lib/components/ReactMapView/ReactMapView.d.ts +9 -9
- package/lib/components/ReactMapView/ReactMapViewParseLayer.d.ts +3 -2
- package/lib/components/ReactMapView/types.d.ts +3 -4
- package/lib/components/SyncGroups/ConfigurableConnectedMap.d.ts +5 -0
- package/lib/components/SyncGroups/SyncGroupList.d.ts +11 -0
- package/lib/components/SyncGroups/SyncGroupListItem.d.ts +10 -0
- package/lib/components/SyncGroups/SyncGroupViewer.d.ts +11 -7
- package/lib/components/SyncGroups/SyncGroupViewer.spec.d.ts +1 -0
- package/lib/components/SyncGroups/SyncGroupViewerConnect.d.ts +7 -1
- package/lib/components/SyncGroups/selector.d.ts +10 -0
- package/lib/components/SyncGroups/types.d.ts +17 -0
- package/lib/components/TimeSlider/TimeSliderButtons/TimeSliderButtonComponents.stories.d.ts +5 -0
- package/lib/components/TimeSlider/TimeSliderButtons/TimeSliderButtons.stories.d.ts +0 -4
- package/lib/components/TimeSlider/TimeSliderButtons/TimeStepButton/TimeStepButton.d.ts +2 -2
- package/lib/components/TimeSlider/TimeSliderRail/TimeSliderRail.d.ts +1 -1
- package/lib/components/TimeSlider/TimeSliderScaleSlider/TimeSliderScaleSlider.stories.d.ts +5 -1
- package/lib/components/TimeSlider/TimeSliderUtils.d.ts +11 -13
- package/lib/components/ToggleIconButton/ToggleIconButton.d.ts +9 -0
- package/lib/components/ToggleIconButton/ToggleIconButton.spec.d.ts +1 -0
- package/lib/components/ToggleIconButton/ToggleIconButton.stories.d.ts +13 -0
- package/lib/components/ToggleIconButton/index.d.ts +1 -0
- package/lib/components/TooltipSelect/TooltipSelect.d.ts +7 -0
- package/lib/components/TooltipSelect/TooltipSelect.spec.d.ts +1 -0
- package/lib/components/WMSLoader/services.d.ts +0 -1
- package/lib/index.d.ts +16 -4
- package/lib/store/generic/sagas.d.ts +7 -0
- package/lib/store/generic/synchronizationActions/actions.d.ts +5 -4
- package/lib/store/generic/synchronizationActions/constants.d.ts +1 -0
- package/lib/store/generic/synchronizationActions/types.d.ts +25 -11
- package/lib/store/generic/synchronizationGroups/actions.d.ts +4 -0
- package/lib/store/generic/synchronizationGroups/constants.d.ts +2 -0
- package/lib/store/generic/synchronizationGroups/index.d.ts +2 -1
- package/lib/store/generic/synchronizationGroups/selectors.d.ts +2 -1
- package/lib/store/generic/synchronizationGroups/selectors.spec.d.ts +1 -0
- package/lib/store/generic/synchronizationGroups/types.d.ts +7 -3
- package/lib/store/generic/synchronizationGroups/utils.d.ts +81 -0
- package/lib/store/generic/synchronizationGroups/utils.spec.d.ts +1 -0
- package/lib/store/generic/types.d.ts +7 -4
- package/lib/store/mapStore/layers/actions.d.ts +0 -3
- package/lib/store/mapStore/layers/selectors.d.ts +21 -1
- package/lib/store/mapStore/layers/types.d.ts +7 -0
- package/lib/store/mapStore/layers/utils.d.ts +4 -2
- package/lib/store/mapStore/layers/utils.spec.d.ts +1 -0
- package/lib/store/mapStore/map/selectors.d.ts +86 -4
- package/lib/store/mapStore/map/types.d.ts +2 -0
- package/lib/store/mapStore/service/actions.d.ts +1 -10
- package/lib/store/mapStore/service/constants.d.ts +0 -1
- package/lib/store/mapStore/service/reducer.d.ts +4 -2
- package/lib/store/mapStore/service/selectors.d.ts +9 -39
- package/lib/store/mapStore/service/types.d.ts +4 -15
- package/lib/store/mapStore/types.d.ts +1 -1
- package/lib/store/mapStore/utils/helpers.d.ts +2 -0
- package/lib/store/ui/actions.d.ts +12 -5
- package/lib/store/ui/constants.d.ts +1 -0
- package/lib/store/ui/reducer.d.ts +12 -4
- package/lib/store/ui/sagas.d.ts +5 -0
- package/lib/store/ui/sagas.test.d.ts +1 -0
- package/lib/store/ui/selectors.d.ts +21 -4
- package/lib/store/ui/types.d.ts +17 -4
- package/lib/storybookUtils/defaultStorySettings.d.ts +1 -0
- package/lib/utils/defaultConfigurations.d.ts +21 -0
- package/lib/utils/defaultTestSettings.d.ts +0 -44
- package/lib/utils/dimensionUtils.d.ts +13 -0
- package/lib/utils/dimensionUtils.spec.d.ts +1 -0
- package/lib/utils/getCapabilities.d.ts +2 -0
- package/lib/utils/{exampleLayers.d.ts → publicLayers.d.ts} +148 -70
- package/lib/utils/publicServices.d.ts +100 -0
- package/lib/utils/testLayers.d.ts +17 -0
- package/lib/utils/testUtils.d.ts +1 -0
- package/package.json +10 -10
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/Menubutton/DuplicateLayer/DuplicateButton.d.ts +0 -7
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/Menubutton/DuplicateLayer/DuplicateLayerConnect.d.ts +0 -7
- package/lib/components/LayerManager/LayerContainerRow/SortableRowContainer/SortableRowContainer.d.ts +0 -6
- package/lib/components/MultiDimensionSelect/MultiDimensionSelectConfig.d.ts +0 -3
- package/lib/components/MultiDimensionSelect/MultiDimensionSelectConnect.d.ts +0 -10
- package/lib/components/MultiDimensionSelect/MultiDimensionSelectDialog.d.ts +0 -12
- package/lib/components/MultiDimensionSelect/index.d.ts +0 -2
- package/lib/components/MultiDimensionSelect/types.d.ts +0 -18
- package/lib/components/MultiMapView/MultiMapViewHarmonie.stories.d.ts +0 -2
- package/lib/components/MultiMapView/storyUtils/HarmonieTempAndPrecipPreset.d.ts +0 -6
- package/lib/components/SyncGroups/SyncGroupComponent.d.ts +0 -13
- package/lib/components/SyncGroups/SyncGroupDialog.d.ts +0 -7
- package/lib/utils/DimensionUtils.d.ts +0 -3
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Bbox, Layer } from '../../store/mapStore/types';
|
|
3
|
+
export interface ConfigurableMapWithSliderConnectProps {
|
|
4
|
+
id?: string;
|
|
5
|
+
activeLayerId?: string;
|
|
6
|
+
shouldAutoUpdate?: boolean;
|
|
7
|
+
title?: string;
|
|
8
|
+
layers: Layer[];
|
|
9
|
+
baseLayer?: Layer;
|
|
10
|
+
bbox?: Bbox;
|
|
11
|
+
srs?: string;
|
|
12
|
+
shouldShowZoomControls?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const ConfigurableMapWithSliderConnect: React.FC<ConfigurableMapWithSliderConnectProps>;
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ConfigurableMapWithSliderConnect';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { IconButtonProps } from '@material-ui/core';
|
|
3
|
+
interface LayerManagerButtonProps extends IconButtonProps {
|
|
4
|
+
tooltipTitle: string;
|
|
5
|
+
onClick?: (event: React.MouseEvent) => void;
|
|
6
|
+
isActive?: boolean;
|
|
7
|
+
isEnabled?: boolean;
|
|
8
|
+
icon: React.ReactNode;
|
|
9
|
+
testId: string;
|
|
10
|
+
}
|
|
11
|
+
declare const LayerManagerButton: React.FC<LayerManagerButtonProps>;
|
|
12
|
+
export default LayerManagerButton;
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface ActivateLayerProps {
|
|
3
|
+
layerId: string;
|
|
4
|
+
mapId: string;
|
|
5
|
+
}
|
|
6
|
+
declare const ActivateLayerConnect: React.FC<ActivateLayerProps>;
|
|
7
|
+
/**
|
|
8
|
+
* Activates a maplayer from the store
|
|
9
|
+
*
|
|
10
|
+
* Expects the following props:
|
|
11
|
+
* @param {string} mapId mapId: string - Id of the map
|
|
12
|
+
* @param {string} layerId layerId: string - Id of the layer that is activated
|
|
13
|
+
* @example
|
|
14
|
+
* ``` <ActivateLayerConnect mapId={mapId} layerId={layerId} />```
|
|
15
|
+
*/
|
|
16
|
+
export default ActivateLayerConnect;
|
|
File without changes
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
interface DeleteButtonProps {
|
|
3
|
-
tooltipTitle: string
|
|
3
|
+
tooltipTitle: string;
|
|
4
4
|
onClickDelete: () => void;
|
|
5
|
+
isEnabled?: boolean;
|
|
5
6
|
}
|
|
6
7
|
declare const DeleteButton: React.FC<DeleteButtonProps>;
|
|
7
8
|
export default DeleteButton;
|
|
File without changes
|
|
File without changes
|
package/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelect.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ interface DimensionSelectProps {
|
|
|
5
5
|
mapId: string;
|
|
6
6
|
availableLayerDimensions?: Dimension[];
|
|
7
7
|
onLayerChangeDimension: (mapId: string, layerId: string, dimensionName: string, dimensionValue: string) => void;
|
|
8
|
-
|
|
8
|
+
isEnabled?: boolean;
|
|
9
9
|
}
|
|
10
10
|
declare const DimensionSelect: React.FC<DimensionSelectProps>;
|
|
11
11
|
export default DimensionSelect;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
interface DragHandleProps {
|
|
3
|
+
isDisabled?: boolean;
|
|
4
|
+
index?: number;
|
|
5
|
+
hideTooltip?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const TOOLTIP_TITLE = "Drag a layer up or down";
|
|
8
|
+
declare const DragHandle: React.FC<DragHandleProps>;
|
|
5
9
|
export default DragHandle;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
interface EnableLayerProps {
|
|
3
|
-
|
|
3
|
+
isEnabled?: boolean;
|
|
4
4
|
title: string;
|
|
5
5
|
onChangeEnableLayer: (enable: boolean) => void;
|
|
6
|
-
isActive?: boolean;
|
|
7
6
|
}
|
|
8
7
|
declare const EnableLayer: React.FC<EnableLayerProps>;
|
|
9
8
|
export default EnableLayer;
|
|
@@ -41,10 +41,12 @@ interface LayerRowProps {
|
|
|
41
41
|
layerOpacityLayout?: React.ReactChild;
|
|
42
42
|
layerDimensionLayout?: React.ReactChild;
|
|
43
43
|
layerDeleteLayout?: React.ReactChild;
|
|
44
|
-
|
|
44
|
+
layerMenuLayout?: React.ReactChild;
|
|
45
|
+
layerActiveLayout?: React.ReactChild;
|
|
45
46
|
services?: Services;
|
|
46
47
|
layerManagerWidth: LayerManagerWidth;
|
|
47
|
-
|
|
48
|
+
isEnabled?: boolean;
|
|
49
|
+
dragHandle?: React.ReactElement;
|
|
48
50
|
}
|
|
49
51
|
declare const LayerRow: React.FC<LayerRowProps>;
|
|
50
52
|
export default LayerRow;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { LayerManagerWidth } from '../../LayerManagerUtils';
|
|
3
|
+
interface LayerRowConnectProps {
|
|
4
|
+
layerId: string;
|
|
5
|
+
mapId: string;
|
|
6
|
+
layerManagerWidth: LayerManagerWidth;
|
|
7
|
+
dragHandle: React.ReactElement;
|
|
8
|
+
layerIndex: number;
|
|
9
|
+
}
|
|
10
|
+
declare const LayerRowConnect: React.FC<LayerRowConnectProps>;
|
|
11
|
+
export default LayerRowConnect;
|
|
@@ -7,13 +7,7 @@ interface LayerManagerButtonProps {
|
|
|
7
7
|
mapId: string;
|
|
8
8
|
layerId: string;
|
|
9
9
|
}) => void;
|
|
10
|
-
|
|
11
|
-
mapId: string;
|
|
12
|
-
layerId: string;
|
|
13
|
-
}) => void;
|
|
14
|
-
layerDeleteLayout?: React.ReactChild;
|
|
15
|
-
layerDuplicateLayout?: React.ReactChild;
|
|
16
|
-
isActive?: boolean;
|
|
10
|
+
isEnabled?: boolean;
|
|
17
11
|
}
|
|
18
12
|
declare const LayerManagerMenuButton: React.FC<LayerManagerButtonProps>;
|
|
19
13
|
export default LayerManagerMenuButton;
|
|
File without changes
|
|
File without changes
|
package/lib/components/LayerManager/LayerContainerRow/LayerRow/OpacitySelect/OpacitySelect.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ interface OpacitySelectProps {
|
|
|
3
3
|
currentOpacity: number;
|
|
4
4
|
tooltipTitle: string;
|
|
5
5
|
onLayerChangeOpacity: (opacity: number) => void;
|
|
6
|
-
|
|
6
|
+
isEnabled?: boolean;
|
|
7
7
|
}
|
|
8
8
|
declare const OpacitySelect: React.FC<OpacitySelectProps>;
|
|
9
9
|
export default OpacitySelect;
|
package/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderStyles/RenderStyles.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ interface RenderStylesProps {
|
|
|
5
5
|
services: Service;
|
|
6
6
|
mapId: string;
|
|
7
7
|
onChangeLayerStyle: (mapId: string, layerId: string, style: string) => void;
|
|
8
|
-
|
|
8
|
+
isEnabled?: boolean;
|
|
9
9
|
}
|
|
10
10
|
declare const RenderStyles: React.FC<RenderStylesProps>;
|
|
11
11
|
export default RenderStyles;
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Layer } from '../../store/mapStore/types';
|
|
3
3
|
import { Service } from '../WMSLoader/services';
|
|
4
|
+
import { Source } from '../../store/ui/types';
|
|
4
5
|
interface LayerManagerProps {
|
|
5
6
|
mapId: string;
|
|
6
7
|
preloadedAvailableBaseLayers?: Layer[];
|
|
7
8
|
preloadedMapServices?: Service[];
|
|
8
9
|
preloadedBaseServices?: Service[];
|
|
9
|
-
bounds?:
|
|
10
|
+
bounds?: string;
|
|
10
11
|
showTitle?: boolean;
|
|
11
12
|
onClose: () => void;
|
|
13
|
+
onMouseDown?: () => void;
|
|
12
14
|
isOpen: boolean;
|
|
15
|
+
order?: number;
|
|
16
|
+
source?: Source;
|
|
13
17
|
}
|
|
14
18
|
declare const LayerManager: React.FC<LayerManagerProps>;
|
|
15
19
|
export default LayerManager;
|
|
@@ -3,7 +3,9 @@ declare const _default: {
|
|
|
3
3
|
title: string;
|
|
4
4
|
};
|
|
5
5
|
export default _default;
|
|
6
|
-
export declare const LayerManagerDemo: React.FC;
|
|
7
6
|
export declare const LayerManagerDemoLightTheme: React.FC;
|
|
8
7
|
export declare const LayerManagerDemoDarkTheme: React.FC;
|
|
8
|
+
export declare const LayerManagerUnconnectedDemoLightTheme: React.FC;
|
|
9
|
+
export declare const LayerManagerUnconnectedDemoDarkTheme: React.FC;
|
|
9
10
|
export declare const LayerManagerStoryWithMultiMaps: () => React.ReactElement;
|
|
11
|
+
export declare const MultiMapLayerManager: () => React.ReactElement;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { Source } from '../../store/ui/types';
|
|
2
3
|
interface LayerManagerMapButtonConnectProps {
|
|
3
4
|
mapId: string;
|
|
5
|
+
source?: Source;
|
|
4
6
|
}
|
|
5
7
|
declare const LayerManagerMapButtonConnect: React.FC<LayerManagerMapButtonConnectProps>;
|
|
6
8
|
export default LayerManagerMapButtonConnect;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Source } from '../../../store/ui/types';
|
|
3
|
+
interface LayerSelectProps {
|
|
4
|
+
mapId: string;
|
|
5
|
+
bounds?: string;
|
|
6
|
+
showTitle?: boolean;
|
|
7
|
+
onClose?: () => void;
|
|
8
|
+
onMouseDown?: () => void;
|
|
9
|
+
isOpen: boolean;
|
|
10
|
+
order?: number;
|
|
11
|
+
source?: Source;
|
|
12
|
+
}
|
|
13
|
+
declare const LayerSelect: React.FC<LayerSelectProps>;
|
|
14
|
+
export default LayerSelect;
|
|
File without changes
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const MapWithLayerSelectDemoLightTheme: React.FC;
|
|
7
|
+
export declare const MapWithLayerSelectDemoDarkTheme: React.FC;
|
|
8
|
+
export declare const LayerSelectDemoLightTheme: React.FC;
|
|
9
|
+
export declare const LayerSelectDemoDarkTheme: React.FC;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Source } from '../../../store/ui/types';
|
|
3
|
+
interface LayerSelectButtonConnectProps {
|
|
4
|
+
mapId: string;
|
|
5
|
+
source?: Source;
|
|
6
|
+
}
|
|
7
|
+
declare const LayerSelectButtonConnect: React.FC<LayerSelectButtonConnectProps>;
|
|
8
|
+
export default LayerSelectButtonConnect;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface LayerSelectConnectProps {
|
|
3
|
+
bounds?: string;
|
|
4
|
+
showTitle?: boolean;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* LayerSelectConnect is a component that is opened from LayerManager
|
|
8
|
+
* It's used to add Services and Layers to the application
|
|
9
|
+
* It doesn't expect any props, its subcomponents only read and write to redux store
|
|
10
|
+
*
|
|
11
|
+
* ``` <LayerSelectConnect />```
|
|
12
|
+
*/
|
|
13
|
+
declare const LayerSelectConnect: React.FC<LayerSelectConnectProps>;
|
|
14
|
+
export default LayerSelectConnect;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface ServicePopupProps {
|
|
3
|
+
servicePopupVariant: 'edit' | 'add' | 'save';
|
|
4
|
+
shouldDisableTransition?: boolean;
|
|
5
|
+
hideBackdrop?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const ADD_HEADING = "Add a new service";
|
|
8
|
+
export declare const EDIT_HEADING = "Edit service";
|
|
9
|
+
export declare const SAVE_HEADING = "Save service";
|
|
10
|
+
declare const ServicePopup: React.FC<ServicePopupProps>;
|
|
11
|
+
export default ServicePopup;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const ServicePopupLight: {
|
|
7
|
+
(): React.ReactElement;
|
|
8
|
+
storyName: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const ServicePopupDark: {
|
|
11
|
+
(): React.ReactElement;
|
|
12
|
+
storyName: string;
|
|
13
|
+
};
|
|
File without changes
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
interface LegendConnectProps {
|
|
3
|
-
initialActiveMapId?: string;
|
|
4
3
|
showMapId?: boolean;
|
|
5
4
|
}
|
|
6
5
|
/**
|
|
@@ -9,8 +8,8 @@ interface LegendConnectProps {
|
|
|
9
8
|
* a dialog should have the <LegendMapButtonConnect/> which is used to focus the correct map and open the dialog
|
|
10
9
|
*
|
|
11
10
|
* Expects the following props:
|
|
12
|
-
* @param {string} initialActiveMapId (optional) initialActiveMapId: string - Id of map that is initially active, if set dialog will be opend immediately
|
|
13
11
|
* @param {boolean} showMapId (optional) showMapId: boolean - show the id of the map in the dialog title of which the legend is shown in te dialog
|
|
12
|
+
|
|
14
13
|
* ``` <LegendConnect legendDialogId={legendDialogId} />```
|
|
15
14
|
*/
|
|
16
15
|
declare const LegendConnect: React.FC<LegendConnectProps>;
|
|
@@ -4,8 +4,10 @@ interface LegendDialogProps {
|
|
|
4
4
|
layers: Layer[];
|
|
5
5
|
isOpen: boolean;
|
|
6
6
|
onClose: () => void;
|
|
7
|
+
onMouseDown?: () => void;
|
|
7
8
|
mapId: string;
|
|
8
9
|
showMapId?: boolean;
|
|
10
|
+
order?: number;
|
|
9
11
|
}
|
|
10
12
|
declare const LegendDialog: React.FC<LegendDialogProps>;
|
|
11
13
|
export default LegendDialog;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { TooltipProps } from '@material-ui/core';
|
|
3
|
+
import { ToggleIconButtonProps } from '../ToggleIconButton/ToggleIconButton';
|
|
4
|
+
interface MapControlButtonProps extends ToggleIconButtonProps {
|
|
5
|
+
onClick: () => void;
|
|
6
|
+
isActive?: boolean;
|
|
7
|
+
placement?: TooltipProps['placement'];
|
|
8
|
+
children: React.ReactElement;
|
|
9
|
+
}
|
|
10
|
+
declare const MapControlButton: React.FC<MapControlButtonProps>;
|
|
11
|
+
export default MapControlButton;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export declare type ZoomType = 'zoomIn' | 'zoomOut' | 'zoomReset';
|
|
3
|
-
export declare const renderZoomIcon: (zoomType: ZoomType) => React.ReactChild;
|
|
4
|
-
interface ZoomButtonProps {
|
|
5
|
-
zoomType: ZoomType;
|
|
6
|
-
onClick: () => void;
|
|
7
|
-
className: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const ZoomButton: React.FC<ZoomButtonProps>;
|
|
10
2
|
interface ZoomControlsProps {
|
|
11
3
|
onZoomIn: () => void;
|
|
12
4
|
onZoomOut: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface DimensionSelectButtonProps {
|
|
3
|
+
dimension: string;
|
|
4
|
+
onClickDimensionButton: () => void;
|
|
5
|
+
isActive?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const DimensionSelectButton: React.FC<DimensionSelectButtonProps>;
|
|
8
|
+
export default DimensionSelectButton;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface DimensionSelectDialogConnectProps {
|
|
3
|
+
mapId: string;
|
|
4
|
+
dimensionName: string;
|
|
5
|
+
isOpen: boolean;
|
|
6
|
+
order?: number;
|
|
7
|
+
onMouseDown?: () => void;
|
|
8
|
+
onToggleDialog?: (isDialogOpen: boolean) => void;
|
|
9
|
+
index?: number;
|
|
10
|
+
}
|
|
11
|
+
declare const DimensionSelectDialogConnect: React.FC<DimensionSelectDialogConnectProps>;
|
|
12
|
+
export default DimensionSelectDialogConnect;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { Mark } from '
|
|
3
|
-
interface
|
|
2
|
+
import { Mark } from '../../utils/dimensionUtils';
|
|
3
|
+
interface DimensionSelectSliderProps {
|
|
4
4
|
marks: Mark[];
|
|
5
|
+
layerName: string;
|
|
5
6
|
reverse?: boolean;
|
|
6
7
|
isDisabled?: boolean;
|
|
7
8
|
managedValue?: number;
|
|
@@ -9,5 +10,5 @@ interface VerticalDimensionSelectProps {
|
|
|
9
10
|
alertColor?: string;
|
|
10
11
|
onChangeDimensionValue: (dimensionValue: string) => void;
|
|
11
12
|
}
|
|
12
|
-
declare const
|
|
13
|
-
export default
|
|
13
|
+
declare const DimensionSelectSlider: React.FC<DimensionSelectSliderProps>;
|
|
14
|
+
export default DimensionSelectSlider;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { DimensionConfig } from './MultiDimensionSelectConfig';
|
|
3
|
+
export interface DimensionSelectSliderConnectProps {
|
|
4
|
+
layerId: string;
|
|
5
|
+
dimConfig: DimensionConfig;
|
|
6
|
+
dimensionName: string;
|
|
7
|
+
handleDimensionValueChanged: (layerId: string, dimensionName: string, dimensionValue: string) => void;
|
|
8
|
+
handleSyncChanged: (layerId: string, dimensionName: string, dimensionValue: string, synced: boolean) => void;
|
|
9
|
+
}
|
|
10
|
+
declare const DimensionSelectSliderConnect: React.FC<DimensionSelectSliderConnectProps>;
|
|
11
|
+
export default DimensionSelectSliderConnect;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { SvgIconProps } from '@material-ui/core';
|
|
3
|
+
export interface DimensionConfig {
|
|
4
|
+
name: string;
|
|
5
|
+
label: string;
|
|
6
|
+
defaultUnit: string;
|
|
7
|
+
reversed: boolean;
|
|
8
|
+
iconType: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const dimensionConfig: DimensionConfig[];
|
|
11
|
+
export declare const getDimensionIcon: (iconType: string) => React.FC<SvgIconProps>;
|