@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.
Files changed (189) hide show
  1. package/README.md +11 -12
  2. package/core.esm.js +12582 -10424
  3. package/core.umd.js +10347 -7869
  4. package/lib/components/ComponentsLookUp/componentsLookUp.d.ts +47 -0
  5. package/lib/components/ComponentsLookUp/componentsLookUp.stories.d.ts +7 -0
  6. package/lib/components/{LayerManager/LayerContainerRow/LayerRow/Menubutton/DeleteLayer/DeleteButton.spec.d.ts → ComponentsLookUp/componentsLookup.spec.d.ts} +0 -0
  7. package/lib/components/ComponentsLookUp/index.d.ts +1 -0
  8. package/lib/components/ConfigurableConnectedMap/ConfigurableConnectedMap.d.ts +35 -0
  9. package/lib/components/{LayerManager/LayerContainerRow/LayerRow/Menubutton/DeleteLayer/DeleteLayerConnect.spec.d.ts → ConfigurableConnectedMap/ConfigurableConnectedMap.spec.d.ts} +0 -0
  10. package/lib/components/ConfigurableConnectedMap/ConfigurableConnectedMap.stories.d.ts +6 -0
  11. package/lib/components/ConfigurableConnectedMap/index.d.ts +1 -0
  12. package/lib/components/ConfigurableMapWithSlider/ConfigurableMapWithSliderConnect.d.ts +17 -0
  13. package/lib/components/{LayerManager/LayerContainerRow/LayerRow/Menubutton/DuplicateLayer/DuplicateButton.spec.d.ts → ConfigurableMapWithSlider/ConfigurableMapWithSliderConnect.spec.d.ts} +0 -0
  14. package/lib/components/ConfigurableMapWithSlider/index.d.ts +1 -0
  15. package/lib/components/LayerManager/AddLayersButton/AddLayersButton.d.ts +1 -0
  16. package/lib/components/LayerManager/DescriptionRow/DescriptionRow.d.ts +1 -0
  17. package/lib/components/LayerManager/LayerContainerRow/LayerManagerButton.d.ts +12 -0
  18. package/lib/components/LayerManager/LayerContainerRow/{LayerRow/Menubutton/DuplicateLayer/DuplicateLayerConnect.spec.d.ts → LayerManagerButton.spec.d.ts} +0 -0
  19. package/lib/components/LayerManager/LayerContainerRow/LayerRow/ActivateLayer/ActivateLayer.d.ts +9 -0
  20. package/lib/components/LayerManager/LayerContainerRow/LayerRow/{Menubutton/LayerManagerMenuButton.spec.d.ts → ActivateLayer/ActivateLayer.spec.d.ts} +0 -0
  21. package/lib/components/LayerManager/LayerContainerRow/LayerRow/ActivateLayer/ActivateLayerConnect.d.ts +16 -0
  22. package/lib/components/LayerManager/LayerContainerRow/{SortableRowContainer/SortableRowContainer.spec.d.ts → LayerRow/ActivateLayer/ActivateLayerConnect.spec.d.ts} +0 -0
  23. package/lib/components/LayerManager/LayerContainerRow/LayerRow/{Menubutton/DeleteLayer/DeleteButton.d.ts → DeleteLayer/DeleteLayer.d.ts} +2 -1
  24. package/lib/components/{MultiDimensionSelect/MultiDimensionSelectConnect.spec.d.ts → LayerManager/LayerContainerRow/LayerRow/DeleteLayer/DeleteLayer.spec.d.ts} +0 -0
  25. package/lib/components/LayerManager/LayerContainerRow/LayerRow/{Menubutton/DeleteLayer → DeleteLayer}/DeleteLayerConnect.d.ts +1 -0
  26. package/lib/components/{MultiDimensionSelect/MultiDimensionSelectDialog.spec.d.ts → LayerManager/LayerContainerRow/LayerRow/DeleteLayer/DeleteLayerConnect.spec.d.ts} +0 -0
  27. package/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelect.d.ts +1 -1
  28. package/lib/components/LayerManager/LayerContainerRow/LayerRow/DragHandle/DragHandle.d.ts +7 -3
  29. package/lib/components/LayerManager/LayerContainerRow/LayerRow/EnableLayer/EnableLayer.d.ts +1 -2
  30. package/lib/components/LayerManager/LayerContainerRow/LayerRow/EnableLayer/EnableLayerConnect.d.ts +0 -1
  31. package/lib/components/LayerManager/LayerContainerRow/LayerRow/LayerRow.d.ts +4 -2
  32. package/lib/components/LayerManager/LayerContainerRow/LayerRow/LayerRowConnect.d.ts +11 -0
  33. package/lib/components/LayerManager/LayerContainerRow/LayerRow/Menubutton/{LayerManagerMenuButton.d.ts → MenuButton.d.ts} +1 -7
  34. package/lib/components/{MultiDimensionSelect/VerticalDimensionSelect.spec.d.ts → LayerManager/LayerContainerRow/LayerRow/Menubutton/MenuButton.spec.d.ts} +0 -0
  35. package/lib/components/LayerManager/LayerContainerRow/LayerRow/Menubutton/MenuButtonConnect.d.ts +7 -0
  36. package/lib/components/LayerManager/LayerContainerRow/LayerRow/Menubutton/MenuButtonConnect.spec.d.ts +1 -0
  37. package/lib/components/LayerManager/LayerContainerRow/LayerRow/Menubutton/MenuItemButton.d.ts +8 -0
  38. package/lib/components/LayerManager/LayerContainerRow/LayerRow/OpacitySelect/OpacitySelect.d.ts +1 -1
  39. package/lib/components/LayerManager/LayerContainerRow/LayerRow/OpacitySelect/OpacitySelectConnect.d.ts +0 -1
  40. package/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderLayers/RenderLayers.d.ts +1 -1
  41. package/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderLayers/RenderLayersConnect.d.ts +0 -1
  42. package/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderStyles/RenderStyles.d.ts +1 -1
  43. package/lib/components/LayerManager/LayerContainerRow/LayerRow/styles.d.ts +4 -0
  44. package/lib/components/LayerManager/LayerManager.d.ts +7 -1
  45. package/lib/components/LayerManager/LayerManager.stories.d.ts +7 -7
  46. package/lib/components/LayerManager/LayerManagerConnect.d.ts +2 -1
  47. package/lib/components/LayerManager/LayerManagerConnect.stories.d.ts +5 -0
  48. package/lib/components/LayerManager/LayerManagerMapButtonConnect.d.ts +2 -0
  49. package/lib/components/LayerManager/LayerManagerStories.stories.d.ts +6 -0
  50. package/lib/components/LayerManager/LayerSelect/LayerSelect.d.ts +14 -0
  51. package/lib/components/LayerManager/LayerSelect/LayerSelect.spec.d.ts +1 -0
  52. package/lib/components/LayerManager/LayerSelect/LayerSelect.stories.d.ts +9 -0
  53. package/lib/components/LayerManager/LayerSelect/LayerSelectButtonConnect.d.ts +8 -0
  54. package/lib/components/LayerManager/LayerSelect/LayerSelectButtonConnect.spec.d.ts +1 -0
  55. package/lib/components/LayerManager/LayerSelect/LayerSelectConnect.d.ts +16 -0
  56. package/lib/components/LayerManager/LayerSelect/LayerSelectConnect.spec.d.ts +1 -0
  57. package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopup.d.ts +11 -0
  58. package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopup.spec.d.ts +1 -0
  59. package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopup.stories.d.ts +13 -0
  60. package/lib/components/LayerManager/{tooltipSelectContainerStyles.d.ts → tooltipContainerStyles.d.ts} +0 -0
  61. package/lib/components/Legend/LegendConnect.d.ts +1 -2
  62. package/lib/components/Legend/LegendDialog.d.ts +2 -0
  63. package/lib/components/MapView/MapView.Error.stories.d.ts +4 -0
  64. package/lib/components/Mapcontrols/MapControlButton.d.ts +11 -0
  65. package/lib/components/Mapcontrols/MapControlButton.spec.d.ts +1 -0
  66. package/lib/components/Mapcontrols/MapControls.d.ts +7 -0
  67. package/lib/components/Mapcontrols/MapControls.spec.d.ts +1 -0
  68. package/lib/components/Mapcontrols/ZoomControls.d.ts +0 -8
  69. package/lib/components/Mapcontrols/ZoomControlsConnect.d.ts +6 -0
  70. package/lib/components/Mapcontrols/ZoomControlsConnect.spec.d.ts +1 -0
  71. package/lib/components/Mapcontrols/index.d.ts +4 -0
  72. package/lib/components/MultiMapDimensionSelect/DimensionSelectButton.d.ts +8 -0
  73. package/lib/components/MultiMapDimensionSelect/DimensionSelectButton.spec.d.ts +1 -0
  74. package/lib/components/MultiMapDimensionSelect/DimensionSelectButtonConnect.d.ts +7 -0
  75. package/lib/components/MultiMapDimensionSelect/DimensionSelectButtonConnect.spec.d.ts +1 -0
  76. package/lib/components/MultiMapDimensionSelect/DimensionSelectDialogConnect.d.ts +12 -0
  77. package/lib/components/MultiMapDimensionSelect/DimensionSelectDialogConnect.spec.d.ts +1 -0
  78. package/lib/components/MultiMapDimensionSelect/DimensionSelectDialogConnect.stories.d.ts +25 -0
  79. package/lib/components/{MultiDimensionSelect/VerticalDimensionSelect.d.ts → MultiMapDimensionSelect/DimensionSelectSlider.d.ts} +5 -4
  80. package/lib/components/MultiMapDimensionSelect/DimensionSelectSlider.spec.d.ts +1 -0
  81. package/lib/components/MultiMapDimensionSelect/DimensionSelectSliderConnect.d.ts +11 -0
  82. package/lib/components/MultiMapDimensionSelect/DimensionSelectSliderConnect.spec.d.ts +1 -0
  83. package/lib/components/{MultiDimensionSelect → MultiMapDimensionSelect}/EnsembleDimensionExample.stories.d.ts +0 -0
  84. package/lib/components/{MultiDimensionSelect → MultiMapDimensionSelect}/MultiDimensionSelect.stories.d.ts +2 -0
  85. package/lib/components/MultiMapDimensionSelect/MultiDimensionSelectConfig.d.ts +11 -0
  86. package/lib/components/{MultiDimensionSelect → MultiMapDimensionSelect}/MultiDimensionSelectConnect.stories.d.ts +0 -1
  87. package/lib/components/MultiMapDimensionSelect/MultiDimensionSelectMapButtonsConnect.d.ts +6 -0
  88. package/lib/components/MultiMapDimensionSelect/MultiDimensionSelectMapButtonsConnect.spec.d.ts +1 -0
  89. package/lib/components/MultiMapDimensionSelect/MultiMapMultiDimensionSelect.stories.d.ts +2 -0
  90. package/lib/components/MultiMapDimensionSelect/MultiMapMultiDimensionSelectConnect.d.ts +9 -0
  91. package/lib/components/MultiMapDimensionSelect/MultiMapMultiDimensionSelectConnect.spec.d.ts +1 -0
  92. package/lib/components/MultiMapDimensionSelect/MultiMapSingleDimensionSelectConnect.d.ts +8 -0
  93. package/lib/components/MultiMapDimensionSelect/MultiMapSingleDimensionSelectConnect.spec.d.ts +1 -0
  94. package/lib/components/MultiMapDimensionSelect/index.d.ts +2 -0
  95. package/lib/components/MultiMapView/HarmoniePresets/HarmRefTimePreset.d.ts +9 -0
  96. package/lib/components/MultiMapView/HarmoniePresets/HarmRefTimePreset.spec.d.ts +1 -0
  97. package/lib/components/MultiMapView/HarmoniePresets/HarmonieTempAndPrecipPreset.d.ts +11 -0
  98. package/lib/components/MultiMapView/HarmoniePresets/index.d.ts +2 -0
  99. package/lib/components/MultiMapView/MultiMapView.stories.d.ts +0 -2
  100. package/lib/components/MultiMapView/MultiMapViewConnect.d.ts +5 -2
  101. package/lib/components/MultiMapView/storyUtils/mapPresets.d.ts +23 -11
  102. package/lib/components/Providers/Providers.d.ts +2 -1
  103. package/lib/components/ReactMapView/ReactMapView.d.ts +9 -9
  104. package/lib/components/ReactMapView/ReactMapViewParseLayer.d.ts +3 -2
  105. package/lib/components/ReactMapView/types.d.ts +3 -4
  106. package/lib/components/SyncGroups/SyncGroupList.d.ts +11 -0
  107. package/lib/components/SyncGroups/SyncGroupListItem.d.ts +10 -0
  108. package/lib/components/SyncGroups/SyncGroupViewer.d.ts +11 -7
  109. package/lib/components/SyncGroups/SyncGroupViewer.spec.d.ts +1 -0
  110. package/lib/components/SyncGroups/SyncGroupViewerConnect.d.ts +7 -1
  111. package/lib/components/SyncGroups/selector.d.ts +10 -0
  112. package/lib/components/SyncGroups/types.d.ts +17 -0
  113. package/lib/components/TimeSlider/TimeSliderButtons/PlayButton/PlayButtonConnect.d.ts +1 -0
  114. package/lib/components/TimeSlider/TimeSliderButtons/SpeedButton/SpeedButton.d.ts +0 -2
  115. package/lib/components/TimeSlider/TimeSliderButtons/TimeSliderButtonComponents.stories.d.ts +5 -0
  116. package/lib/components/TimeSlider/TimeSliderButtons/TimeSliderButtons.stories.d.ts +0 -4
  117. package/lib/components/TimeSlider/TimeSliderButtons/TimeStepButton/TimeStepButton.d.ts +2 -2
  118. package/lib/components/TimeSlider/TimeSliderRail/TimeSliderRail.d.ts +1 -1
  119. package/lib/components/TimeSlider/TimeSliderUtils.d.ts +18 -13
  120. package/lib/components/ToggleIconButton/ToggleIconButton.d.ts +9 -0
  121. package/lib/components/ToggleIconButton/ToggleIconButton.spec.d.ts +1 -0
  122. package/lib/components/ToggleIconButton/ToggleIconButton.stories.d.ts +13 -0
  123. package/lib/components/ToggleIconButton/index.d.ts +1 -0
  124. package/lib/components/TooltipSelect/TooltipSelect.d.ts +7 -0
  125. package/lib/components/TooltipSelect/TooltipSelect.spec.d.ts +1 -0
  126. package/lib/components/WMSLoader/services.d.ts +0 -1
  127. package/lib/index.d.ts +18 -5
  128. package/lib/store/generic/sagas.d.ts +7 -0
  129. package/lib/store/generic/synchronizationActions/actions.d.ts +5 -4
  130. package/lib/store/generic/synchronizationActions/constants.d.ts +1 -0
  131. package/lib/store/generic/synchronizationActions/types.d.ts +25 -11
  132. package/lib/store/generic/synchronizationGroups/actions.d.ts +4 -0
  133. package/lib/store/generic/synchronizationGroups/constants.d.ts +2 -0
  134. package/lib/store/generic/synchronizationGroups/index.d.ts +2 -1
  135. package/lib/store/generic/synchronizationGroups/selectors.d.ts +2 -1
  136. package/lib/store/generic/synchronizationGroups/selectors.spec.d.ts +1 -0
  137. package/lib/store/generic/synchronizationGroups/types.d.ts +7 -3
  138. package/lib/store/generic/synchronizationGroups/utils.d.ts +81 -0
  139. package/lib/store/generic/synchronizationGroups/utils.spec.d.ts +1 -0
  140. package/lib/store/generic/types.d.ts +7 -4
  141. package/lib/store/mapStore/layers/actions.d.ts +0 -3
  142. package/lib/store/mapStore/layers/selectors.d.ts +21 -1
  143. package/lib/store/mapStore/layers/types.d.ts +7 -0
  144. package/lib/store/mapStore/layers/utils.d.ts +4 -2
  145. package/lib/store/mapStore/layers/utils.spec.d.ts +1 -0
  146. package/lib/store/mapStore/map/actions.d.ts +2 -2
  147. package/lib/store/mapStore/map/reducer.d.ts +7 -0
  148. package/lib/store/mapStore/map/selectors.d.ts +86 -4
  149. package/lib/store/mapStore/map/types.d.ts +2 -0
  150. package/lib/store/mapStore/service/actions.d.ts +1 -10
  151. package/lib/store/mapStore/service/constants.d.ts +0 -1
  152. package/lib/store/mapStore/service/reducer.d.ts +4 -2
  153. package/lib/store/mapStore/service/selectors.d.ts +9 -39
  154. package/lib/store/mapStore/service/types.d.ts +4 -15
  155. package/lib/store/mapStore/types.d.ts +1 -1
  156. package/lib/store/mapStore/utils/helpers.d.ts +2 -0
  157. package/lib/store/ui/actions.d.ts +12 -5
  158. package/lib/store/ui/constants.d.ts +1 -0
  159. package/lib/store/ui/reducer.d.ts +12 -4
  160. package/lib/store/ui/sagas.d.ts +5 -0
  161. package/lib/store/ui/sagas.test.d.ts +1 -0
  162. package/lib/store/ui/selectors.d.ts +21 -4
  163. package/lib/store/ui/types.d.ts +17 -4
  164. package/lib/storybookUtils/defaultStorySettings.d.ts +1 -0
  165. package/lib/utils/__mocks__/WMS111GetCapabilitiesGeoServicesRADAR.d.ts +2 -0
  166. package/lib/utils/defaultConfigurations.d.ts +21 -0
  167. package/lib/utils/defaultTestSettings.d.ts +0 -44
  168. package/lib/utils/dimensionUtils.d.ts +13 -0
  169. package/lib/utils/dimensionUtils.spec.d.ts +1 -0
  170. package/lib/utils/getCapabilities.d.ts +8 -0
  171. package/lib/utils/{exampleLayers.d.ts → publicLayers.d.ts} +148 -70
  172. package/lib/utils/publicServices.d.ts +100 -0
  173. package/lib/utils/testLayers.d.ts +17 -0
  174. package/lib/utils/testUtils.d.ts +1 -0
  175. package/package.json +12 -12
  176. package/lib/components/LayerManager/LayerContainerRow/LayerRow/Menubutton/DuplicateLayer/DuplicateButton.d.ts +0 -7
  177. package/lib/components/LayerManager/LayerContainerRow/LayerRow/Menubutton/DuplicateLayer/DuplicateLayerConnect.d.ts +0 -7
  178. package/lib/components/LayerManager/LayerContainerRow/SortableRowContainer/SortableRowContainer.d.ts +0 -6
  179. package/lib/components/MultiDimensionSelect/MultiDimensionSelectConfig.d.ts +0 -3
  180. package/lib/components/MultiDimensionSelect/MultiDimensionSelectConnect.d.ts +0 -10
  181. package/lib/components/MultiDimensionSelect/MultiDimensionSelectDialog.d.ts +0 -12
  182. package/lib/components/MultiDimensionSelect/index.d.ts +0 -2
  183. package/lib/components/MultiDimensionSelect/types.d.ts +0 -18
  184. package/lib/components/MultiMapView/MultiMapViewHarmonie.stories.d.ts +0 -2
  185. package/lib/components/MultiMapView/storyUtils/HarmonieTempAndPrecipPreset.d.ts +0 -6
  186. package/lib/components/SyncGroups/ConfigurableConnectedMap.d.ts +0 -15
  187. package/lib/components/SyncGroups/SyncGroupComponent.d.ts +0 -13
  188. package/lib/components/SyncGroups/SyncGroupDialog.d.ts +0 -7
  189. 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 are used:
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
- <LegendConnect initialActiveMapId={mapId}/>
49
- <LegendMapButtonConnect mapId={mapId} />
50
- <MapViewConnect mapId={mapId} displayTimeInMap />
51
- <TimeSliderConnect sourceId="timeslider-1" mapId={mapId} />
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