@opengeoweb/core 4.0.0 → 4.2.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.
Files changed (84) hide show
  1. package/index.esm.js +2771 -2289
  2. package/index.umd.js +2799 -2293
  3. package/lib/components/LayerManager/LayerManager.d.ts +13 -0
  4. package/lib/components/LayerManager/LayerManager.stories.d.ts +12 -0
  5. package/lib/components/LayerManager/LayerManagerConnect.stories.d.ts +18 -2
  6. package/lib/components/LayerManager/LayerManagerUtils.d.ts +49 -2
  7. package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResults.d.ts +4 -4
  8. package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResults.stories.d.ts +18 -2
  9. package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsConnect.d.ts +0 -1
  10. package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsListItem.d.ts +5 -5
  11. package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsListItemConnect.d.ts +3 -2
  12. package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoButtonConnect.d.ts +11 -0
  13. package/lib/components/LayerManager/LayerSelect/{LayerSelectUtils.spec.d.ts → LayerInfo/LayerInfoButtonConnect.spec.d.ts} +0 -0
  14. package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoDialog.d.ts +14 -0
  15. package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoDialog.spec.d.ts +1 -0
  16. package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoDialog.stories.d.ts +25 -0
  17. package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoDialogConnect.d.ts +3 -0
  18. package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoList.d.ts +11 -0
  19. package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoText.d.ts +7 -0
  20. package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoUtils.d.ts +4 -0
  21. package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoUtils.spec.d.ts +1 -0
  22. package/lib/components/LayerManager/LayerSelect/LayerInfo/index.d.ts +2 -0
  23. package/lib/components/LayerManager/LayerSelect/LayerList/LayerList.d.ts +5 -3
  24. package/lib/components/LayerManager/LayerSelect/LayerList/LayerListConnect.d.ts +1 -0
  25. package/lib/components/LayerManager/LayerSelect/LayerList/LayerListRow.d.ts +1 -1
  26. package/lib/components/LayerManager/LayerSelect/LayerList/LayerListUtils.d.ts +1 -1
  27. package/lib/components/LayerManager/LayerSelect/LayerSelect.stories.d.ts +12 -0
  28. package/lib/components/LayerManager/LayerSelect/LayerSelectConnect.d.ts +0 -2
  29. package/lib/components/LayerManager/LayerSelect/SearchField/SearchFieldButtonContainer.d.ts +1 -0
  30. package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChipConnect.d.ts +2 -1
  31. package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceList.d.ts +1 -1
  32. package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceListConnect.d.ts +3 -1
  33. package/lib/components/LayerManager/LayerSelect/ServiceOptionsButton/ServiceOptionsButton.d.ts +4 -1
  34. package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.d.ts +13 -3
  35. package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.stories.d.ts +18 -2
  36. package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialogConnect.d.ts +6 -1
  37. package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopup.d.ts +11 -5
  38. package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopup.stories.d.ts +49 -9
  39. package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopupConnect.d.ts +2 -1
  40. package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopupConnect.stories.d.ts +9 -0
  41. package/lib/components/LayerManager/LayerSelect/ServicePopup/utils.d.ts +8 -0
  42. package/lib/components/LayerManager/LayerSelect/ServicePopup/utils.spec.d.ts +1 -0
  43. package/lib/components/LayerManager/useFetchServices.d.ts +4 -0
  44. package/lib/components/LayerManager/useFetchServices.spec.d.ts +1 -0
  45. package/lib/components/MapView/useKeyboardZoomAndPan.d.ts +1 -0
  46. package/lib/components/MapView/useKeyboardZoomAndPan.spec.d.ts +1 -0
  47. package/lib/components/MapView/useTouchZoomPan.d.ts +1 -0
  48. package/lib/components/MapView/useTouchZoomPan.spec.d.ts +1 -0
  49. package/lib/components/MapWarning/MapWarningProperties.d.ts +1 -0
  50. package/lib/components/MultiMapDimensionSelect/DimensionSelectDialogConnect.d.ts +1 -1
  51. package/lib/components/MultiMapView/MultiMapViewConnect.d.ts +0 -1
  52. package/lib/components/ReactMapView/AdagucMapDraw.d.ts +12 -0
  53. package/lib/components/ReactMapView/types.d.ts +2 -1
  54. package/lib/components/Snackbar/SnackbarWrapperConnect.spec.d.ts +7 -0
  55. package/lib/components/Snackbar/index.d.ts +1 -0
  56. package/lib/components/TimeSlider/TimeSliderButtons/SpeedButton/SpeedButton.d.ts +1 -1
  57. package/lib/components/TimeSlider/TimeSliderButtons/SpeedButton/SpeedButtonConnect.d.ts +1 -5
  58. package/lib/components/TimeSlider/TimeSliderButtons/TimeSliderButtons.d.ts +0 -3
  59. package/lib/components/TimeSlider/TimeSliderButtons/TimeSliderMenu/TimeSliderMenu.d.ts +18 -0
  60. package/lib/components/TimeSlider/TimeSliderButtons/TimeSliderMenu/TimeSliderMenu.spec.d.ts +1 -0
  61. package/lib/components/TimeSlider/TimeSliderButtons/TimeSliderMenu/TimeSliderMenu.stories.d.ts +28 -0
  62. package/lib/components/TimeSlider/TimeSliderButtons/TimeStepButton/TimeStepButton.d.ts +3 -2
  63. package/lib/components/TimeSlider/TimeSliderButtons/TimeStepButton/TimeStepButton.stories.d.ts +30 -0
  64. package/lib/components/TimeSlider/TimeSliderConnect.stories.d.ts +6 -0
  65. package/lib/components/WMSLoader/services.d.ts +1 -0
  66. package/lib/hooks/index.d.ts +1 -0
  67. package/lib/hooks/useSetupDialog/index.d.ts +1 -0
  68. package/lib/hooks/useSetupDialog/useSetupDialog.d.ts +9 -0
  69. package/lib/hooks/useSetupDialog/useSetupDialog.spec.d.ts +1 -0
  70. package/lib/index.d.ts +5 -3
  71. package/lib/store/layerSelect/reducer.d.ts +8 -5
  72. package/lib/store/layerSelect/sagas.d.ts +3 -2
  73. package/lib/store/layerSelect/selectors.d.ts +53 -6
  74. package/lib/store/layerSelect/types.d.ts +32 -13
  75. package/lib/store/mapStore/service/types.d.ts +4 -1
  76. package/lib/store/snackbar/types.d.ts +2 -4
  77. package/lib/store/ui/types.d.ts +4 -1
  78. package/lib/storybookUtils/HelperComponents.d.ts +0 -1
  79. package/lib/storybookUtils/storyComponents/MapDrawGeoJSON.d.ts +34 -7
  80. package/lib/utils/defaultTestSettings.d.ts +1 -0
  81. package/lib/utils/getCapabilities.d.ts +4 -1
  82. package/package.json +6 -7
  83. package/lib/components/LayerManager/LayerSelect/LayerSelectUtils.d.ts +0 -4
  84. package/lib/storybookUtils/storyComponents/MapDrawGeoJSONStyles.d.ts +0 -4
@@ -1,5 +1,36 @@
1
1
  import React from 'react';
2
- export declare const useDrawPolyStoryStyles: (props?: any) => import("@mui/styles").ClassNameMap<"MapDrawGeoJSONContainer" | "MapDrawGeoJSONMapContainer" | "MapDrawGeoJSONControlsContainer" | "MapDrawGeoJSONTextAreaContainer" | "MapDrawGeoJSONTextArea">;
2
+ export declare const drawPolyStoryStyles: {
3
+ MapDrawGeoJSONContainer: {
4
+ display: string;
5
+ gridTemplateColumns: string;
6
+ gridTemplateRows: string;
7
+ gridTemplateAreas: string;
8
+ width: string;
9
+ height: string;
10
+ };
11
+ MapDrawGeoJSONMapContainer: {
12
+ gridArea: string;
13
+ width: string;
14
+ height: string;
15
+ };
16
+ MapDrawGeoJSONControlsContainer: {
17
+ gridArea: string;
18
+ width: string;
19
+ height: string;
20
+ };
21
+ MapDrawGeoJSONTextAreaContainer: {
22
+ gridArea: string;
23
+ width: string;
24
+ height: string;
25
+ };
26
+ MapDrawGeoJSONTextArea: {
27
+ padding: number;
28
+ border: string;
29
+ width: string;
30
+ height: string;
31
+ fontSize: string;
32
+ };
33
+ };
3
34
  export declare const useGeoJSON: () => {
4
35
  editModes: {
5
36
  key: string;
@@ -16,9 +47,5 @@ export declare const useGeoJSON: () => {
16
47
  changeDrawMode: (mode: string) => void;
17
48
  setEditMode: (on: boolean) => void;
18
49
  };
19
- declare const _default: React.JSXElementConstructor<Omit<{
20
- classes: import("@mui/styles").ClassNameMap<string>;
21
- } & Record<string, unknown> & {
22
- children?: React.ReactNode;
23
- }, string> & import("@mui/styles").StyledComponentProps<string> & Record<string, unknown>>;
24
- export default _default;
50
+ declare const DrawPolyStory: React.FC;
51
+ export default DrawPolyStory;
@@ -24,6 +24,7 @@ export declare const makeGeoservicesRadarLayer: () => WMLayer;
24
24
  export declare const styleListForRADNL25PCPCMLayer: Style[];
25
25
  export declare const styleListForRADNLOPERR25PCPRRL3KNMILayer: Style[];
26
26
  export declare const defaultReduxServices: Services;
27
+ export declare const ReduxServicesWithoutOptionalVariables: Services;
27
28
  export declare const multiDimensionLayer: Layer;
28
29
  export declare const flDimensionLayer: Layer;
29
30
  export declare const WmMultiDimensionLayer: WMLayer;
@@ -1,3 +1,4 @@
1
+ import { Dimension, GeographicBoundingBox, Style } from '@opengeoweb/webmap';
1
2
  /**
2
3
  * Represents the layers as advertised in the WMS GetCapabilities document
3
4
  */
@@ -10,7 +11,9 @@ export interface LayerTree {
10
11
  keywords?: string[];
11
12
  abstract?: string;
12
13
  text?: string;
13
- styles?: any[];
14
+ styles?: Style[];
15
+ dimensions?: Dimension[];
16
+ geographicBoundingBox?: GeographicBoundingBox;
14
17
  }
15
18
  /**
16
19
  * Converts webmapjs node structure to LayerTree
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/core",
3
- "version": "4.0.0",
3
+ "version": "4.2.0",
4
4
  "description": "GeoWeb Core library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -13,28 +13,27 @@
13
13
  "dependencies": {},
14
14
  "peerDependencies": {
15
15
  "react": "^17.0.2",
16
- "@opengeoweb/theme": "4.0.0",
16
+ "@opengeoweb/theme": "4.2.0",
17
17
  "@mui/material": "^5.2.8",
18
18
  "moment": "^2.29.0",
19
19
  "react-redux": "^8.0.2",
20
- "@mui/styles": "^5.2.3",
21
20
  "react-intl": "^5.17.5",
22
21
  "lodash": "^4.17.20",
23
- "@opengeoweb/shared": "4.0.0",
22
+ "@opengeoweb/shared": "4.2.0",
24
23
  "react-draggable": "^4.4.3",
25
24
  "re-resizable": "^6.9.0",
26
- "@opengeoweb/form-fields": "4.0.0",
25
+ "@opengeoweb/form-fields": "4.2.0",
27
26
  "react-hook-form": "^6.12.1",
28
27
  "moment-timezone": "^0.5.31",
29
28
  "@mui/lab": "^5.0.0-alpha.64",
30
29
  "axios": "^0.25.0",
31
- "@opengeoweb/webmap": "4.0.0",
30
+ "@opengeoweb/webmap": "4.2.0",
32
31
  "throttle-debounce": "^3.0.1",
33
32
  "proj4": "^2.6.2",
34
33
  "react-sortablejs": "^6.0.0",
35
34
  "react-window": "^1.8.7",
36
- "immer": "^9.0.15",
37
35
  "redux-dynamic-modules": "^5.2.0",
36
+ "immer": "^9.0.15",
38
37
  "@reduxjs/toolkit": "^1.8.3",
39
38
  "lodash.clonedeep": "^4.5.0",
40
39
  "@turf/turf": "^5.1.6",
@@ -1,4 +0,0 @@
1
- import { NoIdService, UserAddedServices } from '../../../utils/types';
2
- import { Service } from '../../WMSLoader/services';
3
- export declare const mergePresetsAndUserAddedServices: (presets: Service[], userAddedServices: UserAddedServices) => NoIdService[];
4
- export declare const isNoIdService: (param: unknown) => param is NoIdService;
@@ -1,4 +0,0 @@
1
- import { Theme } from '@mui/material';
2
- import { StyleRulesCallback } from '@mui/styles';
3
- declare const mapDrawGeoJSONStyles: StyleRulesCallback<Theme, Record<string, unknown>>;
4
- export default mapDrawGeoJSONStyles;