@opengeoweb/core 19.0.0 → 19.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/dist/README.md +68 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +11827 -0
- package/dist/src/index.d.ts +4 -0
- package/dist/src/lib/components/ClockConnect/ClockConnect.d.ts +4 -0
- package/dist/src/lib/components/ClockConnect/OptionsMenu.d.ts +10 -0
- package/dist/src/lib/components/ClockConnect/index.d.ts +1 -0
- package/dist/src/lib/components/ComponentsLookUp/componentsLookUp.d.ts +62 -0
- package/dist/src/lib/components/ComponentsLookUp/index.d.ts +1 -0
- package/dist/src/lib/components/ConfigurableMapConnect/ConfigurableMapConnect.d.ts +51 -0
- package/dist/src/lib/components/ConfigurableMapConnect/index.d.ts +1 -0
- package/dist/src/lib/components/LanguageSelect/LanguageSelect.d.ts +14 -0
- package/dist/src/lib/components/LanguageSelect/index.d.ts +1 -0
- package/dist/src/lib/components/LayerInfoConnect/LayerInfoButtonConnect.d.ts +13 -0
- package/dist/src/lib/components/LayerInfoConnect/LayerInfoDialogConnect.d.ts +8 -0
- package/dist/src/lib/components/LayerInfoConnect/index.d.ts +2 -0
- package/dist/src/lib/components/LayerManager/AddLayersButton/AddLayersButton.d.ts +12 -0
- package/dist/src/lib/components/LayerManager/AddLayersPopup/AddLayersPopup.d.ts +12 -0
- package/dist/src/lib/components/LayerManager/AddLayersPopup/WMSLayerTree/WMSLayerTree.d.ts +9 -0
- package/dist/src/lib/components/LayerManager/AddLayersPopup/WMSLayerTree/WMSLayerTreeConnect.d.ts +25 -0
- package/dist/src/lib/components/LayerManager/AddLayersPopup/WMSLayerTree/WMSLayerTreeHeader.d.ts +7 -0
- package/dist/src/lib/components/LayerManager/AddLayersPopup/WMSServerList/WMSServerList.d.ts +9 -0
- package/dist/src/lib/components/LayerManager/BaseLayerRow/BaseLayerRow.d.ts +13 -0
- package/dist/src/lib/components/LayerManager/BaseLayerRow/BaseLayers/BaseLayers.d.ts +11 -0
- package/dist/src/lib/components/LayerManager/BaseLayerRow/BaseLayers/BaseLayersConnect.d.ts +22 -0
- package/dist/src/lib/components/LayerManager/DescriptionRow/DescriptionRow.d.ts +13 -0
- package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerContainerRow.d.ts +19 -0
- package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/AcceptanceTime/AcceptanceTime.d.ts +10 -0
- package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/AcceptanceTime/AcceptanceTimeConnect.d.ts +9 -0
- package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/ActivateLayer/ActivateLayer.d.ts +14 -0
- package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/ActivateLayer/ActivateLayerConnect.d.ts +16 -0
- package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/CustomDimensionSelect/CustomDimensionSelectConnect.d.ts +9 -0
- package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/DeleteLayer/DeleteLayerConnect.d.ts +18 -0
- package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelect.d.ts +28 -0
- package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelectConnect.d.ts +8 -0
- package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelectName.d.ts +13 -0
- package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelectValue.d.ts +26 -0
- package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/dimensionSelectHooks.d.ts +15 -0
- package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/DragHandle/DragHandle.d.ts +11 -0
- package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/EnableLayer/EnableLayerConnect.d.ts +19 -0
- package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/LayerRow.d.ts +67 -0
- package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/LayerRowConnect.d.ts +11 -0
- package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/LayerService/LayerService.d.ts +8 -0
- package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/LoadDuration/LoadDuration.d.ts +18 -0
- package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/LoadDuration/LoadingIndicatorProgressBar.d.ts +9 -0
- package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/Menubutton/MenuButton.d.ts +16 -0
- package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/Menubutton/MenuButtonConnect.d.ts +9 -0
- package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/MissingData/MissingData.d.ts +16 -0
- package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/MissingData/MissingDataConnect.d.ts +5 -0
- package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/OpacitySelect/OpacitySelect.d.ts +9 -0
- package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/OpacitySelect/OpacitySelectConnect.d.ts +16 -0
- package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderLayers/RenderEDRLayers.d.ts +18 -0
- package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderLayers/RenderLayerName.d.ts +6 -0
- package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderLayers/RenderLayers.d.ts +14 -0
- package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderLayers/RenderLayersConnect.d.ts +9 -0
- package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderStyles/RenderStyles.d.ts +14 -0
- package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderStyles/RenderStylesConnect.d.ts +10 -0
- package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/SelectableFeaturesCheckbox/SelectableFeaturesCheckbox.d.ts +8 -0
- package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/SelectableFeaturesCheckbox/SelectableFeaturesCheckboxConnect.d.ts +6 -0
- package/dist/src/lib/components/LayerManager/LayerManager.d.ts +32 -0
- package/dist/src/lib/components/LayerManager/LayerManagerConnect.d.ts +29 -0
- package/dist/src/lib/components/LayerManager/LayerManagerHeaderOptions.d.ts +50 -0
- package/dist/src/lib/components/LayerManager/LayerManagerHeaderOptionsConnect.d.ts +12 -0
- package/dist/src/lib/components/LayerManager/LayerManagerMapButtonConnect.d.ts +9 -0
- package/dist/src/lib/components/LayerManager/LayerManagerUtils.d.ts +329 -0
- package/dist/src/lib/components/LayerManager/LayerSelect/LayerSelectButton.d.ts +8 -0
- package/dist/src/lib/components/LayerManager/OverlayersRow/OverlayersSelect.d.ts +15 -0
- package/dist/src/lib/components/LayerManager/OverlayersRow/OverlayersSelectConnect.d.ts +6 -0
- package/dist/src/lib/components/LayerManager/ProjectionSelect/ProjectionSelect.d.ts +14 -0
- package/dist/src/lib/components/LayerManager/ProjectionSelect/ProjectionSelectConnect.d.ts +6 -0
- package/dist/src/lib/components/LayerManager/index.d.ts +9 -0
- package/dist/src/lib/components/LayerManager/useFetchServices.d.ts +4 -0
- package/dist/src/lib/components/LegendConnect/LegendConnect.d.ts +21 -0
- package/dist/src/lib/components/LegendConnect/LegendMapButtonConnect.d.ts +9 -0
- package/dist/src/lib/components/LegendConnect/index.d.ts +2 -0
- package/dist/src/lib/components/LocationSearch/LocationSearch.d.ts +10 -0
- package/dist/src/lib/components/LocationSearch/LocationSearchConnect.d.ts +5 -0
- package/dist/src/lib/components/LocationSearch/MyMapLocation.d.ts +9 -0
- package/dist/src/lib/components/LocationSearch/SearchControlButtonConnect.d.ts +8 -0
- package/dist/src/lib/components/LocationSearch/index.d.ts +5 -0
- package/dist/src/lib/components/LocationSearch/types.d.ts +23 -0
- package/dist/src/lib/components/LocationSearch/utils.d.ts +8 -0
- package/dist/src/lib/components/MapDrawToolRedux/OpenLayersFeatureLayerConnect.d.ts +21 -0
- package/dist/src/lib/components/MapOptions/FeatureInfo/GetFeatureInfoButtonConnect.d.ts +8 -0
- package/dist/src/lib/components/MapOptions/FeatureInfo/GetFeatureInfoConnect.d.ts +8 -0
- package/dist/src/lib/components/MapOptions/FeatureInfo/GetFeatureInfoDialog.d.ts +16 -0
- package/dist/src/lib/components/MapOptions/FeatureInfo/index.d.ts +3 -0
- package/dist/src/lib/components/MapOptions/FeatureInfo/utils.d.ts +19 -0
- package/dist/src/lib/components/MapOptions/MapOptionsButtonConnect.d.ts +8 -0
- package/dist/src/lib/components/MapOptions/MeasureTool/MeasureToolButton.d.ts +7 -0
- package/dist/src/lib/components/MapOptions/MeasureTool/index.d.ts +2 -0
- package/dist/src/lib/components/MapOptions/index.d.ts +4 -0
- package/dist/src/lib/components/MapViewConnect/OlMapViewConnect.d.ts +40 -0
- package/dist/src/lib/components/MapViewConnect/OlMapViewLayerConnect.d.ts +8 -0
- package/dist/src/lib/components/MapViewConnect/index.d.ts +3 -0
- package/dist/src/lib/components/MapViewConnect/olMapFeatureSyncUtils.d.ts +14 -0
- package/dist/src/lib/components/MapViewConnect/olMapUtils.d.ts +22 -0
- package/dist/src/lib/components/MapViewConnect/useGetOpenLayersView.d.ts +9 -0
- package/dist/src/lib/components/MapViewConnect/useMapViewLoadingIndicator.d.ts +1 -0
- package/dist/src/lib/components/MultiMapDimensionSelectConnect/DimensionSelectButtonConnect.d.ts +9 -0
- package/dist/src/lib/components/MultiMapDimensionSelectConnect/DimensionSelectDialogConnect.d.ts +14 -0
- package/dist/src/lib/components/MultiMapDimensionSelectConnect/DimensionSelectSliderConnect.d.ts +10 -0
- package/dist/src/lib/components/MultiMapDimensionSelectConnect/MultiDimensionSelectMapButtonsConnect.d.ts +8 -0
- package/dist/src/lib/components/MultiMapDimensionSelectConnect/MultiMapMultiDimensionSelectConnect.d.ts +9 -0
- package/dist/src/lib/components/MultiMapDimensionSelectConnect/MultiMapSingleDimensionSelectConnect.d.ts +8 -0
- package/dist/src/lib/components/MultiMapDimensionSelectConnect/index.d.ts +2 -0
- package/dist/src/lib/components/MultiMapViewConnect/HarmoniePresets/HarmonieTempAndPrecipPreset.d.ts +12 -0
- package/dist/src/lib/components/MultiMapViewConnect/HarmoniePresets/index.d.ts +1 -0
- package/dist/src/lib/components/MultiMapViewConnect/ModelRunInterval/ModelRunInterval.d.ts +18 -0
- package/dist/src/lib/components/MultiMapViewConnect/ModelRunInterval/index.d.ts +1 -0
- package/dist/src/lib/components/MultiMapViewConnect/MultiMapViewConnect.d.ts +29 -0
- package/dist/src/lib/components/MultiMapViewConnect/storyUtils/mapPresets.d.ts +177 -0
- package/dist/src/lib/components/Providers/Providers.d.ts +39 -0
- package/dist/src/lib/components/RouterWrapper/NavigateSetter.d.ts +1 -0
- package/dist/src/lib/components/RouterWrapper/RouterWrapperConnect.d.ts +6 -0
- package/dist/src/lib/components/RouterWrapper/index.d.ts +1 -0
- package/dist/src/lib/components/SelectedFeaturesDialog/SelectedFeature.d.ts +8 -0
- package/dist/src/lib/components/SelectedFeaturesDialog/SelectedFeaturesDialog.d.ts +14 -0
- package/dist/src/lib/components/SelectedFeaturesDialog/SelectedFeaturesDialogConnect.d.ts +2 -0
- package/dist/src/lib/components/SelectedFeaturesDialog/storyUtils.d.ts +3 -0
- package/dist/src/lib/components/SyncGroups/DraggableThings.d.ts +13 -0
- package/dist/src/lib/components/SyncGroups/SimpleTimeSlider.d.ts +8 -0
- package/dist/src/lib/components/SyncGroups/SimpleTimeSliderConnect.d.ts +19 -0
- package/dist/src/lib/components/SyncGroups/SyncGroupList.d.ts +12 -0
- package/dist/src/lib/components/SyncGroups/SyncGroupListItem.d.ts +10 -0
- package/dist/src/lib/components/SyncGroups/SyncGroupViewer.d.ts +18 -0
- package/dist/src/lib/components/SyncGroups/SyncGroupViewerConnect.d.ts +2 -0
- package/dist/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect/AnimationLengthButtonConnect.d.ts +5 -0
- package/dist/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect/AutoUpdateButtonConnect.d.ts +21 -0
- package/dist/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect/BackwardForwardStepButtonConnect.d.ts +6 -0
- package/dist/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect/NowButtonConnect.d.ts +8 -0
- package/dist/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect/OptionsMenuButtonConnect.d.ts +15 -0
- package/dist/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect/PlayButtonConnect.d.ts +17 -0
- package/dist/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect/SpeedButtonConnect.d.ts +6 -0
- package/dist/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect/TimeSpanButtonConnect.d.ts +5 -0
- package/dist/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect/TimeStepButtonConnect.d.ts +6 -0
- package/dist/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect.d.ts +8 -0
- package/dist/src/lib/components/TimeSliderConnect/TimeSliderConnect.d.ts +11 -0
- package/dist/src/lib/components/TimeSliderConnect/TimeSliderCurrentTimeBoxConnect.d.ts +37 -0
- package/dist/src/lib/components/TimeSliderConnect/TimeSliderLegendConnect.d.ts +14 -0
- package/dist/src/lib/components/TimeSliderConnect/index.d.ts +1 -0
- package/dist/src/lib/components/TimeSliderConnect/timesliderUtils.d.ts +11 -0
- package/dist/src/lib/index.d.ts +23 -0
- package/dist/src/lib/store/index.d.ts +1 -0
- package/dist/src/lib/store/store.d.ts +6 -0
- package/dist/src/lib/utils/defaultConfigurations.d.ts +4 -0
- package/dist/src/lib/utils/defaultTestSettings.d.ts +29 -0
- package/dist/src/lib/utils/i18n.d.ts +7 -0
- package/dist/src/lib/utils/jsonPresetFilter.d.ts +30 -0
- package/dist/src/lib/utils/location-api/api.d.ts +3 -0
- package/dist/src/lib/utils/location-api/fakeApi.d.ts +113 -0
- package/dist/src/lib/utils/location-api/hooks.d.ts +4 -0
- package/dist/src/lib/utils/sanitizeHTML.d.ts +3 -0
- package/dist/src/lib/utils/storyUtils.d.ts +32 -0
- package/dist/src/lib/utils/testDimensionData.d.ts +39 -0
- package/dist/src/lib/utils/testLayers.d.ts +70 -0
- package/dist/src/lib/utils/testUtils.d.ts +3 -0
- package/dist/src/lib/utils/verticalLevels.d.ts +4 -0
- package/package.json +3 -2
package/dist/README.md
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+

|
|
2
|
+

|
|
3
|
+
|
|
4
|
+
# Core
|
|
5
|
+
|
|
6
|
+
React component library with Core components for the opengeoweb project.
|
|
7
|
+
This library was generated with [Nx](https://nx.dev).
|
|
8
|
+
|
|
9
|
+
## Installation
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
npm install @opengeoweb/core @opengeoweb/store @opengeoweb/time-slider
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Use
|
|
16
|
+
|
|
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
|
+
|
|
19
|
+
```javascript
|
|
20
|
+
import { useDispatch } from 'react-redux';
|
|
21
|
+
import {
|
|
22
|
+
MapViewConnect,
|
|
23
|
+
LegendConnect,
|
|
24
|
+
LegendMapButtonConnect,
|
|
25
|
+
CoreThemeStoreProvider,
|
|
26
|
+
} from '@opengeoweb/core';
|
|
27
|
+
import { storeMiddlewares, storeReducerMap } from '@opengeoweb/store';
|
|
28
|
+
import { TimeSliderConnect } from '@opengeoweb/time-slider';
|
|
29
|
+
import { configureStore } from '@reduxjs/toolkit';
|
|
30
|
+
|
|
31
|
+
const store = configureStore({
|
|
32
|
+
reducer: {
|
|
33
|
+
...storeReducerMap,
|
|
34
|
+
},
|
|
35
|
+
middleware: [...storeMiddlewares],
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
const ConnectedMapWithTimeSlider = ({ mapId }) => {
|
|
39
|
+
const dispatch = useDispatch();
|
|
40
|
+
|
|
41
|
+
React.useEffect(() => {
|
|
42
|
+
// set layers
|
|
43
|
+
dispatch(mapActions.setLayers({ layers: [radarLayer], mapId }));
|
|
44
|
+
// baseLayers
|
|
45
|
+
dispatch(
|
|
46
|
+
mapActions.setBaseLayers({
|
|
47
|
+
mapId,
|
|
48
|
+
layers: [baseLayerGrey, overLayer],
|
|
49
|
+
}),
|
|
50
|
+
);
|
|
51
|
+
}, []);
|
|
52
|
+
|
|
53
|
+
return (
|
|
54
|
+
<CoreThemeStoreProvider store={store}>
|
|
55
|
+
<LegendConnect initialActiveMapId={mapId} />
|
|
56
|
+
<LegendMapButtonConnect mapId={mapId} />
|
|
57
|
+
<MapViewConnect mapId={mapId} displayTimeInMap />
|
|
58
|
+
<TimeSliderConnect sourceId="timeslider-1" mapId={mapId} />
|
|
59
|
+
</CoreThemeStoreProvider>
|
|
60
|
+
);
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
export default ConnectedMapWithTimeSlider;
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
### TypeScript Documentation
|
|
67
|
+
|
|
68
|
+
- [TypeScript Docs](https://opengeoweb.gitlab.io/opengeoweb/typescript-docs/core/)
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./src/index";
|