@opengeoweb/core 1.2.3 → 2.1.1
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 +12582 -10424
- package/core.umd.js +10347 -7869
- package/lib/components/ComponentsLookUp/componentsLookUp.d.ts +47 -0
- package/lib/components/ComponentsLookUp/componentsLookUp.stories.d.ts +7 -0
- package/lib/components/{LayerManager/LayerContainerRow/LayerRow/Menubutton/DeleteLayer/DeleteButton.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 +35 -0
- package/lib/components/{LayerManager/LayerContainerRow/LayerRow/Menubutton/DeleteLayer/DeleteLayerConnect.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 +17 -0
- package/lib/components/{LayerManager/LayerContainerRow/LayerRow/Menubutton/DuplicateLayer/DuplicateButton.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/DescriptionRow/DescriptionRow.d.ts +1 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerManagerButton.d.ts +12 -0
- package/lib/components/LayerManager/LayerContainerRow/{LayerRow/Menubutton/DuplicateLayer/DuplicateLayerConnect.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/LayerManagerMenuButton.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/{SortableRowContainer/SortableRowContainer.spec.d.ts → LayerRow/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/{MultiDimensionSelect/MultiDimensionSelectConnect.spec.d.ts → LayerManager/LayerContainerRow/LayerRow/DeleteLayer/DeleteLayer.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/{Menubutton/DeleteLayer → DeleteLayer}/DeleteLayerConnect.d.ts +1 -0
- package/lib/components/{MultiDimensionSelect/MultiDimensionSelectDialog.spec.d.ts → LayerManager/LayerContainerRow/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/VerticalDimensionSelect.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/LayerManager/LayerContainerRow/LayerRow/Menubutton/MenuButtonConnect.spec.d.ts +1 -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 +7 -1
- package/lib/components/LayerManager/LayerManager.stories.d.ts +7 -7
- package/lib/components/LayerManager/LayerManagerConnect.d.ts +2 -1
- package/lib/components/LayerManager/LayerManagerConnect.stories.d.ts +5 -0
- package/lib/components/LayerManager/LayerManagerMapButtonConnect.d.ts +2 -0
- package/lib/components/LayerManager/LayerManagerStories.stories.d.ts +6 -0
- package/lib/components/LayerManager/LayerSelect/LayerSelect.d.ts +14 -0
- package/lib/components/LayerManager/LayerSelect/LayerSelect.spec.d.ts +1 -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 +16 -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/MapView/MapView.Error.stories.d.ts +4 -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/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 +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 +5 -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/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/PlayButton/PlayButtonConnect.d.ts +1 -0
- package/lib/components/TimeSlider/TimeSliderButtons/SpeedButton/SpeedButton.d.ts +0 -2
- 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/TimeSliderUtils.d.ts +18 -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 +18 -5
- 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/actions.d.ts +2 -2
- package/lib/store/mapStore/map/reducer.d.ts +7 -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/__mocks__/WMS111GetCapabilitiesGeoServicesRADAR.d.ts +2 -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 +8 -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 +12 -12
- 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/ConfigurableConnectedMap.d.ts +0 -15
- 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
package/README.md
CHANGED
|
@@ -14,9 +14,9 @@ npm install @opengeoweb/core
|
|
|
14
14
|
|
|
15
15
|
## Use
|
|
16
16
|
|
|
17
|
-
You can use any component exported from core by importing them. Below you can find a simplified example on how the MapViewConnect component and several mapActions
|
|
17
|
+
You can use any component exported from core by importing them. Some components need to be wrapped in the CoreThemeProvider, or CoreThemeStoreProvider for a connected component. You can also pass in your own theme if needed. Below you can find a simplified example on how the MapViewConnect component and several mapActions could be used:
|
|
18
18
|
|
|
19
|
-
```
|
|
19
|
+
```javascript
|
|
20
20
|
import { useDispatch } from 'react-redux';
|
|
21
21
|
import {
|
|
22
22
|
mapActions,
|
|
@@ -24,12 +24,11 @@ import {
|
|
|
24
24
|
LegendConnect,
|
|
25
25
|
LegendMapButtonConnect,
|
|
26
26
|
TimeSliderConnect,
|
|
27
|
+
CoreThemeStoreProvider,
|
|
28
|
+
store,
|
|
27
29
|
} from '@opengeoweb/core';
|
|
28
30
|
|
|
29
|
-
|
|
30
|
-
const ConnectedMapWithTimeSlider = ({
|
|
31
|
-
mapId,
|
|
32
|
-
}) => {
|
|
31
|
+
const ConnectedMapWithTimeSlider = ({ mapId }) => {
|
|
33
32
|
const dispatch = useDispatch();
|
|
34
33
|
|
|
35
34
|
React.useEffect(() => {
|
|
@@ -45,16 +44,16 @@ const ConnectedMapWithTimeSlider = ({
|
|
|
45
44
|
}, []);
|
|
46
45
|
|
|
47
46
|
return (
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
47
|
+
<CoreThemeStoreProvider store={store}>
|
|
48
|
+
<LegendConnect initialActiveMapId={mapId} />
|
|
49
|
+
<LegendMapButtonConnect mapId={mapId} />
|
|
50
|
+
<MapViewConnect mapId={mapId} displayTimeInMap />
|
|
51
|
+
<TimeSliderConnect sourceId="timeslider-1" mapId={mapId} />
|
|
52
|
+
</CoreThemeStoreProvider>
|
|
52
53
|
);
|
|
53
54
|
};
|
|
54
55
|
|
|
55
56
|
export default ConnectedMapWithTimeSlider;
|
|
56
|
-
|
|
57
|
-
|
|
58
57
|
```
|
|
59
58
|
|
|
60
59
|
## Documentation
|