@opengeoweb/core 1.3.0 → 2.1.3
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 +7809 -5270
- package/core.umd.js +7897 -5209
- package/lib/components/ComponentsLookUp/componentsLookUp.d.ts +48 -0
- package/lib/components/ComponentsLookUp/componentsLookUp.stories.d.ts +7 -0
- package/lib/components/{MultiDimensionSelect/MultiDimensionSelectConnect.spec.d.ts → ComponentsLookUp/componentsLookup.spec.d.ts} +0 -0
- package/lib/components/ComponentsLookUp/index.d.ts +1 -0
- package/lib/components/ConfigurableConnectedMap/ConfigurableConnectedMap.d.ts +37 -0
- package/lib/components/{MultiDimensionSelect/MultiDimensionSelectDialog.spec.d.ts → ConfigurableConnectedMap/ConfigurableConnectedMap.spec.d.ts} +0 -0
- package/lib/components/ConfigurableConnectedMap/ConfigurableConnectedMap.stories.d.ts +6 -0
- package/lib/components/ConfigurableConnectedMap/index.d.ts +1 -0
- package/lib/components/ConfigurableMapWithSlider/ConfigurableMapWithSliderConnect.d.ts +5 -0
- package/lib/components/CustomSwitch/CustomSwitch.d.ts +3 -0
- package/lib/components/{MultiDimensionSelect/VerticalDimensionSelect.spec.d.ts → CustomSwitch/CustomSwitch.spec.d.ts} +0 -0
- package/lib/components/CustomSwitch/CustomSwitch.stories.d.ts +3 -0
- package/lib/components/CustomSwitch/index.d.ts +1 -0
- package/lib/components/LayerManager/DescriptionRow/DescriptionRow.d.ts +1 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/DeleteLayer/DeleteLayerConnect.d.ts +1 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelect.d.ts +4 -5
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelectConnect.d.ts +0 -1
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/LayerRowConnect.d.ts +1 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderStyles/RenderStyles.d.ts +5 -5
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderStyles/RenderStylesConnect.d.ts +0 -1
- package/lib/components/LayerManager/LayerManager.d.ts +2 -0
- package/lib/components/LayerManager/LayerManager.stories.d.ts +7 -6
- package/lib/components/LayerManager/LayerManagerConnect.d.ts +1 -0
- package/lib/components/LayerManager/LayerManagerConnect.stories.d.ts +5 -0
- package/lib/components/LayerManager/LayerManagerStories.stories.d.ts +6 -0
- package/lib/components/LayerManager/LayerSelect/KeywordFilterButton/KeywordFilterButtonConnect.d.ts +8 -0
- package/lib/components/{TimeSlider/TimeSliderButtons/ToggleIconButton.spec.d.ts → LayerManager/LayerSelect/KeywordFilterButton/KeywordFilterButtonConnect.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResults.d.ts +16 -0
- package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResults.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResults.stories.d.ts +13 -0
- package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsConnect.d.ts +7 -0
- package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsListItem.d.ts +10 -0
- package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsListItem.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerList.d.ts +9 -0
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerList.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerListConnect.d.ts +6 -0
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerListConnect.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/LayerSelect.stories.d.ts +7 -7
- package/lib/components/LayerManager/LayerSelect/LayerSelectConnect.d.ts +2 -0
- package/lib/components/LayerManager/LayerSelect/LayerSelectConnect.stories.d.ts +3 -0
- package/lib/components/LayerManager/LayerSelect/LayerSelectStories.stories.d.ts +6 -0
- package/lib/components/LayerManager/LayerSelect/SearchField/SearchField.d.ts +7 -0
- package/lib/components/LayerManager/LayerSelect/SearchField/SearchField.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/SearchField/SearchFieldButtonContainer.d.ts +8 -0
- package/lib/components/LayerManager/LayerSelect/SearchField/SearchFieldButtonContainer.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/SearchField/SearchFieldConnect.d.ts +3 -0
- package/lib/components/LayerManager/LayerSelect/SearchField/SearchFieldConnect.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChip.d.ts +8 -0
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChip.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceList.d.ts +8 -0
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceList.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceListConnect.d.ts +6 -0
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceListConnect.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/ServiceOptionsButton/ServiceOptionsButton.d.ts +3 -0
- package/lib/components/LayerManager/LayerSelect/ServiceOptionsButton/ServiceOptionsButton.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/ServiceOptionsButton/ServiceOptionsButton.stories.d.ts +7 -0
- package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.d.ts +6 -0
- package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.stories.d.ts +13 -0
- package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopup.d.ts +13 -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/Legend/LegendConnect.d.ts +4 -2
- package/lib/components/Legend/LegendDialog.d.ts +2 -0
- package/lib/components/Legend/LegendMapButtonConnect.d.ts +2 -0
- package/lib/components/MapView/MapView.Error.stories.d.ts +4 -0
- package/lib/components/MapView/{MapView.MapCursor.stories.d.ts → MapView.MapPin.stories.d.ts} +1 -1
- package/lib/components/MapView/MapView.ShowLayerInfo.stories.d.ts +5 -0
- package/lib/components/MapView/MapView.stories.d.ts +2 -1
- package/lib/components/MapView/MapViewConnect.MapPin.stories.d.ts +5 -0
- package/lib/components/MapView/MapViewConnect.d.ts +5 -3
- package/lib/components/MapView/MapViewConnect.stories.d.ts +1 -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/index.d.ts +2 -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 +9 -0
- package/lib/components/MultiMapDimensionSelect/DimensionSelectButtonConnect.spec.d.ts +1 -0
- package/lib/components/MultiMapDimensionSelect/DimensionSelectDialogConnect.d.ts +14 -0
- package/lib/components/MultiMapDimensionSelect/DimensionSelectDialogConnect.spec.d.ts +1 -0
- package/lib/components/MultiMapDimensionSelect/DimensionSelectDialogConnect.stories.d.ts +25 -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 +2 -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 +8 -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 +2 -5
- package/lib/components/MultiMapView/HarmoniePresets/HarmonieTempAndPrecipPreset.d.ts +1 -4
- package/lib/components/MultiMapView/MultiMapView.stories.d.ts +2 -0
- package/lib/components/MultiMapView/MultiMapView10x10.stories.d.ts +2 -0
- package/lib/components/MultiMapView/MultiMapViewConnect.d.ts +1 -1
- package/lib/components/ReactMapView/ReactMapView.d.ts +5 -3
- package/lib/components/ReactMapView/ReactMapViewParseLayer.d.ts +3 -2
- package/lib/components/ReactMapView/types.d.ts +6 -13
- package/lib/components/TimeSlider/TimeSliderButtons/PlayButton/PlayButtonConnect.d.ts +3 -3
- package/lib/components/TimeSlider/TimeSliderButtons/SpeedButton/SpeedButton.d.ts +0 -2
- package/lib/components/TimeSlider/TimeSliderButtons/TimeSliderButtonComponents.stories.d.ts +0 -1
- package/lib/components/TimeSlider/TimeSliderRail/TimeSliderRail.d.ts +4 -4
- package/lib/components/TimeSlider/TimeSliderUtils.d.ts +10 -1
- package/lib/components/{TimeSlider/TimeSliderButtons → ToggleIconButton}/ToggleIconButton.d.ts +1 -0
- package/lib/components/ToggleIconButton/ToggleIconButton.spec.d.ts +1 -0
- package/lib/components/{TimeSlider/TimeSliderButtons → ToggleIconButton}/ToggleIconButton.stories.d.ts +4 -0
- package/lib/components/ToggleIconButton/index.d.ts +1 -0
- package/lib/index.d.ts +9 -5
- package/lib/store/coreModuleConfig.d.ts +1 -1
- package/lib/store/generic/sagas.d.ts +8 -2
- package/lib/store/generic/synchronizationGroups/index.d.ts +2 -1
- package/lib/store/generic/synchronizationGroups/sagas.d.ts +0 -1
- package/lib/store/generic/synchronizationGroups/utils.d.ts +79 -2
- package/lib/store/generic/types.d.ts +3 -3
- package/lib/store/layerSelect/actions.d.ts +15 -0
- package/lib/store/layerSelect/config.d.ts +4 -0
- package/lib/store/layerSelect/constants.d.ts +2 -0
- package/lib/store/layerSelect/reducer.d.ts +3 -0
- package/lib/store/layerSelect/reducer.spec.d.ts +1 -0
- package/lib/store/layerSelect/sagas.d.ts +5 -0
- package/lib/store/layerSelect/sagas.spec.d.ts +1 -0
- package/lib/store/layerSelect/selectors.d.ts +4 -0
- package/lib/store/layerSelect/selectors.spec.d.ts +1 -0
- package/lib/store/layerSelect/types.d.ts +35 -0
- package/lib/store/mapStore/layers/actions.d.ts +8 -4
- package/lib/store/mapStore/layers/constants.d.ts +1 -0
- package/lib/store/mapStore/layers/selectors.d.ts +39 -1
- package/lib/store/mapStore/layers/types.d.ts +28 -10
- 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/actions.d.ts +12 -5
- package/lib/store/mapStore/map/constants.d.ts +1 -0
- package/lib/store/mapStore/map/reducer.d.ts +7 -0
- package/lib/store/mapStore/map/selectors.d.ts +48 -6
- package/lib/store/mapStore/map/types.d.ts +21 -7
- package/lib/store/mapStore/service/actions.d.ts +1 -17
- package/lib/store/mapStore/service/constants.d.ts +0 -2
- 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 +11 -30
- package/lib/store/mapStore/types.d.ts +1 -1
- package/lib/store/mapStore/utils/helpers.d.ts +4 -3
- package/lib/store/ui/actions.d.ts +6 -6
- 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 +5 -5
- package/lib/store/ui/types.d.ts +2 -1
- package/lib/storybookUtils/HelperComponents.d.ts +1 -1
- package/lib/types/types.d.ts +2 -1
- package/lib/utils/__mocks__/WMS111GetCapabilitiesGeoServicesRADAR.d.ts +2 -0
- package/lib/utils/defaultTestSettings.d.ts +56 -233
- package/lib/utils/dimensionUtils.d.ts +5 -1
- package/lib/utils/getCapabilities.d.ts +8 -0
- package/lib/utils/testUtils.d.ts +3 -2
- package/package.json +9 -9
- package/lib/components/MultiDimensionSelect/MultiDimensionSelectConfig.d.ts +0 -3
- package/lib/components/MultiDimensionSelect/MultiDimensionSelectConnect.d.ts +0 -15
- package/lib/components/MultiDimensionSelect/MultiDimensionSelectDialog.d.ts +0 -15
- package/lib/components/MultiDimensionSelect/MultiDimensionSelectDialogConnect.d.ts +0 -8
- package/lib/components/MultiDimensionSelect/index.d.ts +0 -2
- package/lib/components/MultiDimensionSelect/types.d.ts +0 -18
- package/lib/components/SyncGroups/ConfigurableConnectedMap.d.ts +0 -17
- package/lib/components/SyncGroups/SyncGroupDialog.d.ts +0 -7
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { Source } from '../../store/ui/types';
|
|
2
3
|
interface LegendMapButtonProps {
|
|
3
4
|
mapId: string;
|
|
5
|
+
source?: Source;
|
|
4
6
|
}
|
|
5
7
|
declare const LegendMapButtonConnect: React.FC<LegendMapButtonProps>;
|
|
6
8
|
export default LegendMapButtonConnect;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export * from './MapView.Error.stories';
|
|
3
|
-
export * from './MapView.
|
|
3
|
+
export * from './MapView.MapPin.stories';
|
|
4
4
|
export * from './MapView.Passive.stories';
|
|
5
5
|
export * from './MapView.RadarAnimation.stories';
|
|
6
6
|
export * from './MapView.RadarData.stories';
|
|
7
7
|
export * from './MapView.SetProjectionBBox.stories';
|
|
8
8
|
export * from './MapView.SetProjectionBBoxLocalState.stories';
|
|
9
|
+
export * from './MapView.ShowLayerInfo.stories';
|
|
9
10
|
declare const _default: {
|
|
10
11
|
title: string;
|
|
11
12
|
component: import("react").FC<import("./types").MapViewProps>;
|
|
@@ -5,8 +5,10 @@ export interface MapViewConnectProps {
|
|
|
5
5
|
controls?: {
|
|
6
6
|
zoomControls?: boolean;
|
|
7
7
|
};
|
|
8
|
+
displayMapPin?: boolean;
|
|
8
9
|
showScaleBar?: boolean;
|
|
9
10
|
children?: React.ReactNode;
|
|
11
|
+
showLayerInfo?: boolean;
|
|
10
12
|
}
|
|
11
13
|
/**
|
|
12
14
|
* Connected component used to display the map and selected layers.
|
|
@@ -16,10 +18,10 @@ export interface MapViewConnectProps {
|
|
|
16
18
|
* @param {string} mapId mapId: string - Id of the map
|
|
17
19
|
* @param {object} [controls.zoomControls] **optional** controls: object - toggle the map controls, zoomControls defaults to true
|
|
18
20
|
* @param {boolean} [displayTimeInMap] **optional** displayTimeInMap: boolean, toggles the mapTime, defaults to true
|
|
21
|
+
* @param {boolean} [displayMapPin] **optional** displayMapPin: boolean, toggle the display of pin on click, defaults to false
|
|
22
|
+
* @param {boolean} [showScaleBar] **optional** showScaleBar: boolean, toggles the scaleBar, defaults to true
|
|
19
23
|
* @example
|
|
20
|
-
* ```<MapViewConnect mapId={mapId} />```
|
|
21
|
-
* @example
|
|
22
|
-
* ```<MapViewConnect mapId={mapId} controls={{ zoomControls: false }} displayTimeInMap={false} />```
|
|
24
|
+
* ```<MapViewConnect mapId={mapId} controls={{ zoomControls: false }} displayTimeInMap={false} showScaleBar={false}/>```
|
|
23
25
|
*/
|
|
24
26
|
declare const MapViewConnect: React.FC<MapViewConnectProps>;
|
|
25
27
|
export default MapViewConnect;
|
|
@@ -8,6 +8,7 @@ export * from './MapViewConnect.LayerChangeEnabledOpacity.stories';
|
|
|
8
8
|
export * from './MapViewConnect.SetBaseLayers.stories';
|
|
9
9
|
export * from './MapViewConnect.ToggleControls.stories';
|
|
10
10
|
export * from './MapViewConnect.FeatureLayers.stories';
|
|
11
|
+
export * from './MapViewConnect.MapPin.stories';
|
|
11
12
|
declare const _default: {
|
|
12
13
|
title: string;
|
|
13
14
|
component: import("react").FC<import("./MapViewConnect").MapViewConnectProps>;
|
|
@@ -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,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,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Source } from '../../store/ui/types';
|
|
3
|
+
interface DimensionSelectMapButtonProps {
|
|
4
|
+
mapId: string;
|
|
5
|
+
dimension: string;
|
|
6
|
+
source?: Source;
|
|
7
|
+
}
|
|
8
|
+
declare const DimensionSelectMapButtonConnect: React.FC<DimensionSelectMapButtonProps>;
|
|
9
|
+
export default DimensionSelectMapButtonConnect;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Source } from '../../store/ui/types';
|
|
3
|
+
interface DimensionSelectDialogConnectProps {
|
|
4
|
+
mapId: string;
|
|
5
|
+
dimensionName: string;
|
|
6
|
+
isOpen: boolean;
|
|
7
|
+
order?: number;
|
|
8
|
+
onMouseDown?: () => void;
|
|
9
|
+
onToggleDialog?: (isDialogOpen: boolean) => void;
|
|
10
|
+
index?: number;
|
|
11
|
+
source?: Source;
|
|
12
|
+
}
|
|
13
|
+
declare const DimensionSelectDialogConnect: React.FC<DimensionSelectDialogConnectProps>;
|
|
14
|
+
export default DimensionSelectDialogConnect;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const DimensionSelectElevationLight: {
|
|
3
|
+
(): React.ReactElement;
|
|
4
|
+
storyName: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const DimensionSelectElevationDark: {
|
|
7
|
+
(): React.ReactElement;
|
|
8
|
+
storyName: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const DimensionSelectEnsembleMemberLight: {
|
|
11
|
+
(): React.ReactElement;
|
|
12
|
+
storyName: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const DimensionSelectEnsembleMemberDark: {
|
|
15
|
+
(): React.ReactElement;
|
|
16
|
+
storyName: string;
|
|
17
|
+
};
|
|
18
|
+
export declare const DimensionSelectInvalidSyncLight: {
|
|
19
|
+
(): React.ReactElement;
|
|
20
|
+
storyName: string;
|
|
21
|
+
};
|
|
22
|
+
export declare const DimensionSelectInvalidSyncDark: {
|
|
23
|
+
(): React.ReactElement;
|
|
24
|
+
storyName: string;
|
|
25
|
+
};
|
|
@@ -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
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
export * from './MultiMapMultiDimensionSelect.stories';
|
|
1
2
|
export * from './EnsembleDimensionExample.stories';
|
|
2
3
|
export * from './MultiDimensionSelectConnect.stories';
|
|
4
|
+
export * from './DimensionSelectDialogConnect.stories';
|
|
3
5
|
declare const _default: {
|
|
4
6
|
title: string;
|
|
5
7
|
};
|
|
@@ -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>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Source } from '../../store/ui/types';
|
|
3
|
+
interface MultiDimensionSelectMapButtonsConnectProps {
|
|
4
|
+
mapId: string;
|
|
5
|
+
source?: Source;
|
|
6
|
+
}
|
|
7
|
+
declare const MultiDimensionSelectMapButtonsConnect: React.FC<MultiDimensionSelectMapButtonsConnectProps>;
|
|
8
|
+
export default MultiDimensionSelectMapButtonsConnect;
|
package/lib/components/MultiMapDimensionSelect/MultiDimensionSelectMapButtonsConnect.spec.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare const MultiMapMultiDimensionSelectConnect: React.FC;
|
|
3
|
+
/**
|
|
4
|
+
* Component used to control values for all dimension other than time and ref.time
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ``` <MultiMapMultiDimensionSelectConnect /> ```
|
|
8
|
+
*/
|
|
9
|
+
export default MultiMapMultiDimensionSelectConnect;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const getDimensionType: (dimensionName: string) => string;
|
|
3
|
+
interface MultiMapSingleDimensionSelectConnectProps {
|
|
4
|
+
dimensionName: string;
|
|
5
|
+
index?: number;
|
|
6
|
+
}
|
|
7
|
+
declare const MultiMapSingleDimensionSelectConnect: React.FC<MultiMapSingleDimensionSelectConnectProps>;
|
|
8
|
+
export default MultiMapSingleDimensionSelectConnect;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Layer } from '../../../store/mapStore/types';
|
|
3
3
|
import { MultiMapPreset } from '../MultiMapViewConnect';
|
|
4
|
-
export declare const makeMapPreset: (timeIncrement: number, uniqueId: string, referenceTime: string, layers: Layer[], layerSyncGroupId: string, displayLayerManagerButtonInMap: boolean) => MultiMapPreset;
|
|
4
|
+
export declare const makeMapPreset: (timeIncrement: number, uniqueId: string, referenceTime: string, layers: Layer[], layerSyncGroupId: string, displayLayerManagerButtonInMap: boolean, displayDimensionSelectButtonInMap: boolean) => MultiMapPreset;
|
|
5
5
|
export interface InitialHarmRefTimeProps {
|
|
6
6
|
layers?: Layer[];
|
|
7
7
|
layerSyncGroupId: string;
|
|
8
8
|
}
|
|
9
|
-
export
|
|
10
|
-
id: string;
|
|
11
|
-
}
|
|
12
|
-
export declare const HarmRefTimePreset: React.FC<HarmRefTimePresetProps>;
|
|
9
|
+
export declare const HarmRefTimePreset: React.FC<InitialHarmRefTimeProps>;
|
|
@@ -8,7 +8,4 @@ export interface InitialHarmTempAndPrecipProps {
|
|
|
8
8
|
bottomrowGroup?: string;
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
|
-
export
|
|
12
|
-
id: string;
|
|
13
|
-
}
|
|
14
|
-
export declare const HarmonieTempAndPrecipPreset: React.FC<HarmonieTempAndPrecipPresetProps>;
|
|
11
|
+
export declare const HarmonieTempAndPrecipPreset: React.FC<InitialHarmTempAndPrecipProps>;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { MultiMapViewStory2x2 } from './MultiMapView2x2.stories';
|
|
2
2
|
import { MultiMapViewStory4x3 } from './MultiMapView4x3.stories';
|
|
3
|
+
import { MultiMapViewStory10x10 } from './MultiMapView10x10.stories';
|
|
3
4
|
export { MultiMapViewStory2x2 };
|
|
4
5
|
export { MultiMapViewStory4x3 };
|
|
6
|
+
export { MultiMapViewStory10x10 };
|
|
5
7
|
declare const _default: {
|
|
6
8
|
title: string;
|
|
7
9
|
};
|
|
@@ -11,9 +11,9 @@ export interface MultiMapPreset {
|
|
|
11
11
|
displayTimeInMap?: boolean;
|
|
12
12
|
layerSyncGroupId?: string;
|
|
13
13
|
displayLayerManagerButtonInMap?: boolean;
|
|
14
|
+
displayDimensionSelectButtonInMap?: boolean;
|
|
14
15
|
}
|
|
15
16
|
export interface MultiMapViewProps {
|
|
16
|
-
id: string;
|
|
17
17
|
rows: number;
|
|
18
18
|
cols: number;
|
|
19
19
|
maps: MultiMapPreset[];
|
|
@@ -18,6 +18,7 @@ export declare const isAMapLayer: (layer: Layer) => boolean;
|
|
|
18
18
|
* @param layer The Layer object, or the props from the ReactWMJSLayer
|
|
19
19
|
*/
|
|
20
20
|
export declare const isAGeoJSONLayer: (layer: Layer) => boolean;
|
|
21
|
+
export declare const ORIGIN_REACTMAPVIEW_ONMAPCHANGEDIMENSION = "ORIGIN_REACTMAPVIEW_ONMAPCHANGEDIMENSION";
|
|
21
22
|
interface ReactMapViewState {
|
|
22
23
|
adagucInitialised: boolean;
|
|
23
24
|
}
|
|
@@ -41,7 +42,6 @@ declare class ReactMapView extends React.Component<ReactMapViewProps, ReactMapVi
|
|
|
41
42
|
adagucWebMapJSRef: any;
|
|
42
43
|
refetchTimer: any;
|
|
43
44
|
static defaultProps: {
|
|
44
|
-
xml2jsonrequestURL: string;
|
|
45
45
|
srs: string;
|
|
46
46
|
bbox: {
|
|
47
47
|
left: number;
|
|
@@ -50,7 +50,7 @@ declare class ReactMapView extends React.Component<ReactMapViewProps, ReactMapVi
|
|
|
50
50
|
top: number;
|
|
51
51
|
};
|
|
52
52
|
shouldAutoFetch: boolean;
|
|
53
|
-
|
|
53
|
+
displayMapPin: boolean;
|
|
54
54
|
onMount: () => void;
|
|
55
55
|
onUnMount: () => void;
|
|
56
56
|
onMapChangeDimension: () => void;
|
|
@@ -60,13 +60,15 @@ declare class ReactMapView extends React.Component<ReactMapViewProps, ReactMapVi
|
|
|
60
60
|
onLayerSetDimensions: () => void;
|
|
61
61
|
onServiceSetLayers: () => void;
|
|
62
62
|
onLayerSetStyles: () => void;
|
|
63
|
-
onSetLayerDimensionsForService: () => void;
|
|
64
63
|
onMapZoomEnd: () => void;
|
|
65
64
|
};
|
|
66
65
|
constructor(props: ReactMapViewProps);
|
|
67
66
|
componentDidMount(): void;
|
|
68
67
|
componentDidUpdate: (prevProps: ReactMapViewProps) => void;
|
|
69
68
|
componentWillUnmount(): void;
|
|
69
|
+
onDimChangeListener(): void;
|
|
70
|
+
onAfterSetBBoxListener(wmjsMap: WMJSMap): void;
|
|
71
|
+
onUpdateBBoxListener(newBbox: WMBBOX): void;
|
|
70
72
|
onStartRefetchTimer: () => void;
|
|
71
73
|
getWMJSLayerFromReactLayer(wmLayers: WMLayer[], reactWebMapJSLayer: React.ReactElement, index: number): {
|
|
72
74
|
layer: WMLayer;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { WMLayer, WMJSMap } from '@opengeoweb/webmap';
|
|
2
|
-
import { SetLayerStylePayload, SetLayersForServicePayload,
|
|
2
|
+
import { SetLayerStylePayload, SetLayersForServicePayload, SetLayerStylesPayload, UpdateAllMapDimensionsPayload, SetLayerDimensionsPayload } from '../../store/mapStore/types';
|
|
3
3
|
import { MapViewProps } from '../MapView/types';
|
|
4
|
-
export declare const
|
|
4
|
+
export declare const ORIGIN_REACTMAPVIEWPARSELAYER = "ReactMapViewParseLayer";
|
|
5
|
+
export declare const setServiceMetadata: (wmLayer: WMLayer, mapId: string, webMapJSInstance: WMJSMap, mapProperties: MapViewProps, onMapUpdateAllDimensions?: (payload: UpdateAllMapDimensionsPayload) => void, onLayerChangeStyle?: (payload: SetLayerStylePayload) => void, onServiceSetLayers?: (payload: SetLayersForServicePayload) => void, onLayerSetStyles?: (payload: SetLayerStylesPayload) => void, onLayerSetDimensions?: (payload: SetLayerDimensionsPayload) => void) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { WMJSMap } from '@opengeoweb/webmap';
|
|
3
|
-
import { SetMapDimensionPayload,
|
|
3
|
+
import { SetMapDimensionPayload, SetLayerStylePayload, SetLayerDimensionPayload, SetLayersForServicePayload, SetLayerStylesPayload, UpdateAllMapDimensionsPayload, Dimension, SetBboxPayload, SetLayerDimensionsPayload, Bbox, MapPinLocationPayload, MapLocation } from '../../store/mapStore/types';
|
|
4
4
|
export interface ReactMapViewProps {
|
|
5
5
|
listeners?: {
|
|
6
6
|
name?: string;
|
|
@@ -20,13 +20,10 @@ export interface ReactMapViewProps {
|
|
|
20
20
|
animationDelay?: number;
|
|
21
21
|
dimensions?: Dimension[];
|
|
22
22
|
onClick?: () => void;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
mapCursorLocation?: {
|
|
26
|
-
lon: number;
|
|
27
|
-
lat: number;
|
|
28
|
-
};
|
|
23
|
+
displayMapPin?: boolean;
|
|
24
|
+
mapPinLocation?: MapLocation;
|
|
29
25
|
shouldAutoFetch?: boolean;
|
|
26
|
+
showLayerInfo?: boolean;
|
|
30
27
|
onMount?: (mapId: string, WMJSMapInstance: WMJSMap) => void;
|
|
31
28
|
onUnMount?: (mapId: string, WMJSMapInstance: WMJSMap) => void;
|
|
32
29
|
onMapChangeDimension?: (payload: SetMapDimensionPayload) => void;
|
|
@@ -34,13 +31,9 @@ export interface ReactMapViewProps {
|
|
|
34
31
|
onLayerChangeStyle?: (payload: SetLayerStylePayload) => void;
|
|
35
32
|
onLayerChangeDimension?: (payload: SetLayerDimensionPayload) => void;
|
|
36
33
|
onServiceSetLayers?: (payload: SetLayersForServicePayload) => void;
|
|
37
|
-
onLayerSetStyles?: (payload:
|
|
38
|
-
onSetLayerDimensionsForService?: (payload: SetLayerDimensionsForServicePayload) => void;
|
|
34
|
+
onLayerSetStyles?: (payload: SetLayerStylesPayload) => void;
|
|
39
35
|
onMapZoomEnd?: (payload: SetBboxPayload) => void;
|
|
40
36
|
onRegisterAdaguc?: (WMJSMapInstance: WMJSMap) => void;
|
|
41
37
|
onLayerSetDimensions?: (payload: SetLayerDimensionsPayload) => void;
|
|
42
|
-
|
|
43
|
-
lon: number;
|
|
44
|
-
lat: number;
|
|
45
|
-
}) => void;
|
|
38
|
+
onMapPinChangeLocation?: (payload: MapPinLocationPayload) => void;
|
|
46
39
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Moment } from 'moment';
|
|
3
2
|
import * as mapActions from '../../../../store/mapStore/actions';
|
|
3
|
+
export declare const animationIntervalDefault = 5;
|
|
4
4
|
export interface PlayButtonConnectProps {
|
|
5
5
|
mapId: string;
|
|
6
6
|
isAnimating?: boolean;
|
|
7
|
-
animationStartTime?:
|
|
8
|
-
animationEndTime?:
|
|
7
|
+
animationStartTime?: string;
|
|
8
|
+
animationEndTime?: string;
|
|
9
9
|
isDisabled?: boolean;
|
|
10
10
|
mapStartAnimation?: typeof mapActions.mapStartAnimation;
|
|
11
11
|
mapStopAnimation?: typeof mapActions.mapStopAnimation;
|
|
@@ -6,15 +6,15 @@ interface TimeSliderRailProps {
|
|
|
6
6
|
secondsPerPx: number;
|
|
7
7
|
selectedTime?: moment.Moment;
|
|
8
8
|
timeStep?: number;
|
|
9
|
-
animationStartTime?:
|
|
10
|
-
animationEndTime?:
|
|
9
|
+
animationStartTime?: string;
|
|
10
|
+
animationEndTime?: string;
|
|
11
11
|
currentTime?: number;
|
|
12
12
|
dataStartTime?: number;
|
|
13
13
|
dataEndTime?: number;
|
|
14
14
|
isTimeSliderHoverOn?: boolean;
|
|
15
15
|
scale?: Scale;
|
|
16
|
-
onSetAnimationStartTime?: (time:
|
|
17
|
-
onSetAnimationEndTime?: (time:
|
|
16
|
+
onSetAnimationStartTime?: (time: string) => void;
|
|
17
|
+
onSetAnimationEndTime?: (time: string) => void;
|
|
18
18
|
onSetNewDate?: (newDate: string) => void;
|
|
19
19
|
onSetCenterTime?: (newTime: number) => void;
|
|
20
20
|
}
|
|
@@ -4,11 +4,18 @@ import { DateInterval } from '@opengeoweb/webmap';
|
|
|
4
4
|
import { Dimension, Layer, Scale } from '../../store/mapStore/types';
|
|
5
5
|
import CanvasComponent from '../CanvasComponent/CanvasComponent';
|
|
6
6
|
export declare const defaultAnimationDelayAtStart = 250;
|
|
7
|
+
export declare const defaultDelay = 1000;
|
|
8
|
+
export declare const speedFactors: SpeedFactorType[];
|
|
9
|
+
export declare type SpeedFactorType = 0.1 | 0.2 | 0.5 | 1 | 2 | 4 | 8 | 16;
|
|
7
10
|
export interface TimeBounds {
|
|
8
11
|
selectedTime: number;
|
|
9
12
|
startTime: number;
|
|
10
13
|
endTime: number;
|
|
11
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* Returns speed delay for given speedFactor. For options, see defined above in "speedFactors"
|
|
17
|
+
*/
|
|
18
|
+
export declare const getSpeedDelay: (speedFactor: SpeedFactorType) => number;
|
|
12
19
|
/**
|
|
13
20
|
* Returns time bounds from the given dimension. If no time dimension given, current time is returned as default
|
|
14
21
|
*/
|
|
@@ -30,7 +37,9 @@ export declare const onsetNewDateDebounced: (dateToSet: string, onSetNewDate: (n
|
|
|
30
37
|
export declare const roundWithTimeStep: (unixTime: number, timeStep: number, type?: string) => number;
|
|
31
38
|
export declare const setNewRoundedTime: (x: number, centerTime: number, width: number, secondsPerPx: number, timeStep: number, dataStartTime: number, dataEndTime: number, onSetNewDate: (newDate: string) => void) => void;
|
|
32
39
|
export declare const getDataLimitsFromLayers: (layers: Layer[]) => Array<number>;
|
|
33
|
-
export declare const
|
|
40
|
+
export declare const getNextTimeStepvalue: (value: number, max: number) => number;
|
|
41
|
+
export declare const getPreviousTimeStepvalue: (value: number, min: number) => number;
|
|
42
|
+
export declare const getValueFromKeyboardEvent: (event: React.KeyboardEvent<HTMLInputElement>, value: number, min: number, max: number, supportFourDirectionNavigation?: boolean) => number;
|
|
34
43
|
export declare const getTimeStepFromDataInterval: (timeInterval: DateInterval) => number;
|
|
35
44
|
export declare const getActiveLayerTimeStep: (timeDimension: Dimension) => number | null;
|
|
36
45
|
/**
|
package/lib/components/{TimeSlider/TimeSliderButtons → ToggleIconButton}/ToggleIconButton.d.ts
RENAMED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ToggleButtonProps } from '@material-ui/lab';
|
|
3
|
+
export declare const useButtonStyles: (props: ToggleIconButtonProps) => import("@material-ui/styles").ClassNameMap<"button">;
|
|
3
4
|
export interface ToggleIconButtonProps extends ToggleButtonProps {
|
|
4
5
|
active?: boolean;
|
|
5
6
|
width?: number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ToggleIconButton } from './ToggleIconButton';
|