@opengeoweb/core 2.2.0 → 2.4.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 (79) hide show
  1. package/index.esm.js +3105 -2112
  2. package/index.umd.js +3376 -2335
  3. package/lib/components/ComponentsLookUp/componentsLookUp.d.ts +3 -3
  4. package/lib/components/ConfigurableConnectedMap/ConfigurableConnectedMap.d.ts +2 -0
  5. package/lib/components/ConfigurableMapWithSlider/ConfigurableMapWithSliderConnect.d.ts +3 -0
  6. package/lib/components/LayerManager/LayerContainerRow/LayerRow/LayerRow.d.ts +1 -0
  7. package/lib/components/LayerManager/LayerContainerRow/{LayerManagerButton.spec.d.ts → LayerRow/LayerRowConnect.spec.d.ts} +0 -0
  8. package/lib/components/LayerManager/LayerContainerRow/LayerRow/Menubutton/MenuButton.d.ts +0 -2
  9. package/lib/components/LayerManager/LayerManagerUtils.d.ts +2 -2
  10. package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResults.d.ts +1 -3
  11. package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsListItem.d.ts +4 -5
  12. package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsListItemConnect.d.ts +6 -0
  13. package/lib/components/LayerManager/{LayerContainerRow/LayerRow/DeleteLayer/DeleteLayer.spec.d.ts → LayerSelect/KeywordFilterResults/KeywordFilterResultsListItemConnect.spec.d.ts} +0 -0
  14. package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterSelectAllSwitchConnect.d.ts +3 -0
  15. package/lib/components/LayerManager/{LayerContainerRow/LayerRow/EnableLayer/EnableLayer.spec.d.ts → LayerSelect/KeywordFilterResults/KeywordFilterSelectAllSwitchConnect.spec.d.ts} +0 -0
  16. package/lib/components/LayerManager/LayerSelect/LayerList/LayerAddRemoveButton.d.ts +18 -0
  17. package/lib/components/{ToggleIconButton/ToggleIconButton.spec.d.ts → LayerManager/LayerSelect/LayerList/LayerAddRemoveButton.spec.d.ts} +0 -0
  18. package/lib/components/LayerManager/LayerSelect/LayerList/LayerList.d.ts +12 -2
  19. package/lib/components/LayerManager/LayerSelect/LayerList/LayerListConnect.d.ts +1 -0
  20. package/lib/components/LayerManager/LayerSelect/LayerList/LayerListUtils.d.ts +1 -2
  21. package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.d.ts +4 -1
  22. package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialogConnect.d.ts +3 -0
  23. package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialogConnect.spec.d.ts +1 -0
  24. package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopup.d.ts +3 -0
  25. package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopupConnect.d.ts +10 -0
  26. package/lib/components/MapControls/MapControlButton.d.ts +2 -2
  27. package/lib/components/MapView/MapViewConnect.DisableMapPin.stories.d.ts +5 -0
  28. package/lib/components/MapView/MapViewConnect.stories.d.ts +1 -0
  29. package/lib/components/MultiMapView/HarmoniePresets/HarmRefTimePreset.d.ts +2 -2
  30. package/lib/components/MultiMapView/HarmoniePresets/HarmonieTempAndPrecipPreset.d.ts +4 -4
  31. package/lib/components/MultiMapView/MultiMapViewConnect.d.ts +2 -1
  32. package/lib/components/MultiMapView/storyUtils/mapPresets.d.ts +81 -0
  33. package/lib/components/ReactMapView/types.d.ts +1 -0
  34. package/lib/components/SyncGroups/SyncGroupViewer.d.ts +2 -0
  35. package/lib/components/SyncGroups/SyncGroupViewerConnect.d.ts +1 -6
  36. package/lib/components/SyncGroups/selector.d.ts +4 -4
  37. package/lib/components/TimeSlider/TimeSliderButtons/PlayButton/PlayButtonConnect.d.ts +1 -0
  38. package/lib/components/TimeSlider/TimeSliderLegend/TimeSliderLegend.d.ts +2 -0
  39. package/lib/components/TimeSlider/TimeSliderLegend/TimeSliderLegendRenderFunctions.d.ts +1 -1
  40. package/lib/components/TooltipSelect/TooltipSelect.d.ts +1 -1
  41. package/lib/index.d.ts +6 -1
  42. package/lib/store/generic/selectors.d.ts +1 -0
  43. package/lib/store/generic/synchronizationGroups/actions.d.ts +2 -1
  44. package/lib/store/generic/synchronizationGroups/constants.d.ts +1 -0
  45. package/lib/store/generic/synchronizationGroups/sagas.d.ts +1 -0
  46. package/lib/store/generic/synchronizationGroups/selectors.d.ts +13 -0
  47. package/lib/store/generic/synchronizationGroups/types.d.ts +12 -2
  48. package/lib/store/layerSelect/actions.d.ts +4 -2
  49. package/lib/store/layerSelect/constants.d.ts +3 -1
  50. package/lib/store/layerSelect/sagas.d.ts +1 -0
  51. package/lib/store/layerSelect/selectors.d.ts +59 -9
  52. package/lib/store/layerSelect/types.d.ts +33 -12
  53. package/lib/store/mapStore/layers/selectors.d.ts +24 -12
  54. package/lib/store/mapStore/map/actions.d.ts +8 -1
  55. package/lib/store/mapStore/map/constants.d.ts +1 -0
  56. package/lib/store/mapStore/map/selectors.d.ts +90 -27
  57. package/lib/store/mapStore/map/types.d.ts +11 -2
  58. package/lib/store/mapStore/service/actions.d.ts +8 -1
  59. package/lib/store/mapStore/service/constants.d.ts +1 -0
  60. package/lib/store/mapStore/service/selectors.d.ts +34 -6
  61. package/lib/store/mapStore/service/types.d.ts +9 -2
  62. package/lib/store/ui/selectors.d.ts +2 -2
  63. package/lib/store/ui/types.d.ts +1 -1
  64. package/lib/store/utils.d.ts +6 -0
  65. package/lib/utils/defaultConfigurations.d.ts +3 -21
  66. package/lib/utils/getCapabilities.d.ts +1 -0
  67. package/lib/utils/jsonPresetFilter.d.ts +10 -0
  68. package/lib/utils/jsonPresetFilter.spec.d.ts +1 -0
  69. package/lib/utils/testUtils.d.ts +2 -1
  70. package/lib/utils/types.d.ts +43 -0
  71. package/package.json +5 -5
  72. package/lib/components/LayerManager/LayerContainerRow/LayerManagerButton.d.ts +0 -12
  73. package/lib/components/LayerManager/LayerContainerRow/LayerRow/DeleteLayer/DeleteLayer.d.ts +0 -8
  74. package/lib/components/LayerManager/LayerContainerRow/LayerRow/EnableLayer/EnableLayer.d.ts +0 -8
  75. package/lib/components/LayerManager/LayerContainerRow/LayerRow/Menubutton/MenuItemButton.d.ts +0 -8
  76. package/lib/components/LayerManager/LayerContainerRow/LayerRow/styles.d.ts +0 -4
  77. package/lib/components/ToggleIconButton/ToggleIconButton.d.ts +0 -12
  78. package/lib/components/ToggleIconButton/ToggleIconButton.stories.d.ts +0 -13
  79. package/lib/components/ToggleIconButton/index.d.ts +0 -1
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { Bbox, Layer } from '../../store/mapStore/types';
3
3
  import { AnimationPayloadType } from '../ConfigurableConnectedMap';
4
4
  import { InitialHarmRefTimeProps, InitialHarmTempAndPrecipProps } from '../MultiMapView/HarmoniePresets';
5
- export interface MapPreset {
5
+ interface TSMapPreset {
6
6
  layers?: Layer[];
7
7
  activeLayerId?: string;
8
8
  baseLayer?: Layer;
@@ -16,12 +16,12 @@ export interface MapPreset {
16
16
  displayMapPin?: boolean;
17
17
  }
18
18
  interface InitialMultiMapProps {
19
- mapPreset: MapPreset[];
19
+ mapPreset: TSMapPreset[];
20
20
  syncGroupsIds: string[];
21
21
  shouldShowZoomControls?: boolean;
22
22
  }
23
23
  interface InitialMapProps {
24
- mapPreset: MapPreset;
24
+ mapPreset: TSMapPreset;
25
25
  syncGroupsIds: string[];
26
26
  shouldShowZoomControls?: boolean;
27
27
  }
@@ -33,5 +33,7 @@ export interface ConfigurableConnectedMapProps {
33
33
  animationPayload?: AnimationPayloadType;
34
34
  shouldShowZoomControls?: boolean;
35
35
  displayMapPin?: boolean;
36
+ toggleTimestepAuto?: boolean;
37
+ setTimestep?: number;
36
38
  }
37
39
  export declare const ConfigurableConnectedMap: React.FC<ConfigurableConnectedMapProps>;
@@ -15,5 +15,8 @@ export interface ConfigurableMapWithSliderConnectProps {
15
15
  shouldShowZoomControls?: boolean;
16
16
  animationPayload?: AnimationPayloadType;
17
17
  displayMapPin?: boolean;
18
+ showTimeSlider?: boolean;
19
+ toggleTimestepAuto?: boolean;
20
+ setTimestep?: number;
18
21
  }
19
22
  export declare const ConfigurableMapWithSliderConnect: React.FC<ConfigurableMapWithSliderConnectProps>;
@@ -47,6 +47,7 @@ interface LayerRowProps {
47
47
  layerManagerWidth: LayerManagerWidth;
48
48
  isEnabled?: boolean;
49
49
  dragHandle?: React.ReactElement;
50
+ isLayerMissing?: boolean;
50
51
  }
51
52
  declare const LayerRow: React.FC<LayerRowProps>;
52
53
  export default LayerRow;
@@ -1,13 +1,11 @@
1
1
  import * as React from 'react';
2
2
  interface LayerManagerButtonProps {
3
- tooltipTitle: string;
4
3
  mapId: string;
5
4
  layerId?: string;
6
5
  onLayerDuplicate?: (payload: {
7
6
  mapId: string;
8
7
  layerId: string;
9
8
  }) => void;
10
- isEnabled?: boolean;
11
9
  }
12
10
  declare const LayerManagerMenuButton: React.FC<LayerManagerButtonProps>;
13
11
  export default LayerManagerMenuButton;
@@ -1,5 +1,5 @@
1
- export declare const LayerManagerColumnsLarge: (props?: any) => import("@mui/styles").ClassNameMap<"column1" | "column2" | "column3" | "column4" | "column5" | "column6">;
2
- export declare const LayerManagerColumnsSmall: (props?: any) => import("@mui/styles").ClassNameMap<"column1" | "column2" | "column3" | "column4" | "column5" | "column6">;
1
+ export declare const LayerManagerColumnsLarge: (props?: any) => import("@mui/styles").ClassNameMap<"column1" | "column2" | "column3" | "column4" | "column5" | "column6" | "columns35">;
2
+ export declare const LayerManagerColumnsSmall: (props?: any) => import("@mui/styles").ClassNameMap<"column1" | "column2" | "column3" | "column4" | "column5" | "column6" | "columns35">;
3
3
  export declare enum LayerManagerWidth {
4
4
  sm = 0,
5
5
  lg = 1
@@ -1,8 +1,7 @@
1
1
  import * as React from 'react';
2
- import { KeywordObject } from '../../../../store/layerSelect/types';
3
2
  import { Source } from '../../../../store/ui/types';
4
3
  interface KeywordFilterResultsProps {
5
- keywordObjects: KeywordObject[];
4
+ allKeywordIds: string[];
6
5
  mapId: string;
7
6
  bounds?: string;
8
7
  showTitle?: boolean;
@@ -11,7 +10,6 @@ interface KeywordFilterResultsProps {
11
10
  isOpen: boolean;
12
11
  order?: number;
13
12
  source?: Source;
14
- updateKeywords: (keywords: KeywordObject[]) => void;
15
13
  }
16
14
  declare const KeywordFilterResults: React.FC<KeywordFilterResultsProps>;
17
15
  export default KeywordFilterResults;
@@ -1,10 +1,9 @@
1
1
  import * as React from 'react';
2
+ import { KeywordObject } from '../../../../store/layerSelect/types';
2
3
  interface FilterListItemProps {
3
- index: number;
4
- text: string;
5
- checked: boolean;
6
- toggleCheckbox: (index: number) => void;
7
- selectOnlyOne: (index: number) => void;
4
+ keyword: KeywordObject;
5
+ toggleKeywords: (keywords: string[]) => void;
6
+ enableOnlyOneKeyword: (keyword: string) => void;
8
7
  }
9
8
  declare const FilterListItem: React.FC<FilterListItemProps>;
10
9
  export default FilterListItem;
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ interface KeywordFilterResultsListItemConnectProps {
3
+ keyword: string;
4
+ }
5
+ declare const KeywordFilterResultsListItemConnect: React.FC<KeywordFilterResultsListItemConnectProps>;
6
+ export default KeywordFilterResultsListItemConnect;
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ declare const KeywordFilterSelectAllSwitchConnect: React.FC;
3
+ export default KeywordFilterSelectAllSwitchConnect;
@@ -0,0 +1,18 @@
1
+ import * as React from 'react';
2
+ import { ReduxLayer } from '../../../../store/mapStore/layers/types';
3
+ interface LayerAddRemoveButtonProps {
4
+ layer: ReduxLayer;
5
+ layerIndex: number;
6
+ serviceId: string;
7
+ addLayer: ({ serviceURL, layerName }: {
8
+ serviceURL: any;
9
+ layerName: any;
10
+ }) => void;
11
+ deleteLayer: ({ layerId, layerIndex }: {
12
+ layerId: any;
13
+ layerIndex: any;
14
+ }) => void;
15
+ mapLayers: ReduxLayer[];
16
+ }
17
+ declare const LayerAddRemoveButton: React.FC<LayerAddRemoveButtonProps>;
18
+ export default LayerAddRemoveButton;
@@ -1,12 +1,22 @@
1
1
  import * as React from 'react';
2
+ import { ReduxLayer } from '../../../../store/mapStore/layers/types';
2
3
  import { Services } from '../../../../store/mapStore/service/types';
3
- import { KeywordObject } from '../../../../store/layerSelect/types';
4
4
  interface LayerListProps {
5
5
  services: Services;
6
6
  serviceIds: string[];
7
7
  layerSelectHeight: number;
8
+ addLayer: ({ serviceURL, layerName }: {
9
+ serviceURL: any;
10
+ layerName: any;
11
+ }) => void;
12
+ deleteLayer: ({ layerId, layerIndex }: {
13
+ layerId: any;
14
+ layerIndex: any;
15
+ }) => void;
8
16
  searchString: string;
9
- keywords: KeywordObject[];
17
+ mapLayers: ReduxLayer[];
18
+ keywordIds: string[];
19
+ allKeywordsActive: boolean;
10
20
  }
11
21
  declare const LayerList: React.FC<LayerListProps>;
12
22
  export default LayerList;
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
2
  interface LayerListConnectProps {
3
+ mapId: string;
3
4
  layerSelectHeight: number;
4
5
  }
5
6
  declare const LayerListConnect: React.FC<LayerListConnectProps>;
@@ -1,3 +1,2 @@
1
1
  import { ServiceLayer, Services } from '../../../../store/mapStore/service/types';
2
- import { KeywordObject } from '../../../../store/layerSelect/types';
3
- export declare const filterLayersFromService: (serviceId: string, services: Services, keywords: KeywordObject[], searchString: string) => ServiceLayer[];
2
+ export declare const filterLayersFromService: (serviceId: string, services: Services, keywordIds: string[], allKeywordsActive: boolean, searchString: string) => ServiceLayer[];
@@ -1,6 +1,9 @@
1
1
  import * as React from 'react';
2
+ import { ReduxLayer } from '../../../../store/mapStore/layers/types';
2
3
  interface ServiceOptionsDialogProps {
3
- services: string[];
4
+ services: Record<string, string>[];
5
+ mapStoreRemoveService?: (service: string) => void;
6
+ layers?: ReduxLayer[];
4
7
  }
5
8
  declare const ServiceOptionsDialog: React.FC<ServiceOptionsDialogProps>;
6
9
  export default ServiceOptionsDialog;
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ declare const ServiceOptionsDialogConnect: React.FC;
3
+ export default ServiceOptionsDialogConnect;
@@ -1,10 +1,13 @@
1
1
  import * as React from 'react';
2
+ import { SetLayersForServicePayload } from '../../../../store/mapStore/types';
2
3
  interface ServicePopupProps {
3
4
  servicePopupVariant: 'edit' | 'add' | 'save';
4
5
  hideBackdrop?: boolean;
5
6
  isOpen?: boolean;
6
7
  closePopup?: () => void;
7
8
  url?: string;
9
+ services?: any;
10
+ serviceSetLayers: (payload: SetLayersForServicePayload) => void;
8
11
  }
9
12
  export declare const ADD_HEADING = "Add a new service";
10
13
  export declare const EDIT_HEADING = "Edit service";
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ interface ServicePopupConnectProps {
3
+ servicePopupVariant: 'edit' | 'add' | 'save';
4
+ hideBackdrop?: boolean;
5
+ isOpen?: boolean;
6
+ closePopup?: () => void;
7
+ url?: string;
8
+ }
9
+ declare const ServicePopupConnect: React.FC<ServicePopupConnectProps>;
10
+ export default ServicePopupConnect;
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { TooltipProps } from '@mui/material';
3
- import { ToggleIconButtonProps } from '../ToggleIconButton/ToggleIconButton';
4
- interface MapControlButtonProps extends ToggleIconButtonProps {
3
+ import { ToolButtonProps } from '@opengeoweb/shared';
4
+ interface MapControlButtonProps extends ToolButtonProps {
5
5
  onClick: () => void;
6
6
  isActive?: boolean;
7
7
  placement?: TooltipProps['placement'];
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ export declare const SetAndDisableMapPinAction: {
3
+ (): React.ReactElement;
4
+ storyName: string;
5
+ };
@@ -9,6 +9,7 @@ export * from './MapViewConnect.SetBaseLayers.stories';
9
9
  export * from './MapViewConnect.ToggleControls.stories';
10
10
  export * from './MapViewConnect.FeatureLayers.stories';
11
11
  export * from './MapViewConnect.MapPin.stories';
12
+ export * from './MapViewConnect.DisableMapPin.stories';
12
13
  export * from './MapViewConnect.SelectorTest.stories';
13
14
  declare const _default: {
14
15
  title: string;
@@ -1,9 +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, displayDimensionSelectButtonInMap: boolean) => MultiMapPreset;
4
+ export declare const makeMapPreset: (timeIncrement: number, uniqueId: string, referenceTime: string, layers: Layer[], syncGroupsIds: string[], displayLayerManagerButtonInMap: boolean, displayDimensionSelectButtonInMap: boolean) => MultiMapPreset;
5
5
  export interface InitialHarmRefTimeProps {
6
6
  layers?: Layer[];
7
- layerSyncGroupId: string;
7
+ syncGroupsIds: string[];
8
8
  }
9
9
  export declare const HarmRefTimePreset: React.FC<InitialHarmRefTimeProps>;
@@ -2,10 +2,10 @@ import * as React from 'react';
2
2
  import { Layer } from '../../../store/mapStore/types';
3
3
  export interface InitialHarmTempAndPrecipProps {
4
4
  layers: {
5
- toprow: Layer;
6
- bottomrow: Layer;
7
- toprowGroup?: string;
8
- bottomrowGroup?: string;
5
+ topRow: Layer;
6
+ bottomRow: Layer;
7
+ topRowSyncGroups?: string[];
8
+ bottomRowSyncGroups?: string[];
9
9
  };
10
10
  }
11
11
  export declare const HarmonieTempAndPrecipPreset: React.FC<InitialHarmTempAndPrecipProps>;
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import { Bbox, Layer } from '../../store/mapStore/types';
3
3
  export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"box" | "zoomControls">;
4
4
  export interface MultiMapPreset {
5
+ id: string;
5
6
  title?: string;
6
7
  layers: Layer[];
7
8
  activeLayerId?: string;
@@ -9,9 +10,9 @@ export interface MultiMapPreset {
9
10
  bbox?: Bbox;
10
11
  srs?: string;
11
12
  displayTimeInMap?: boolean;
12
- layerSyncGroupId?: string;
13
13
  displayLayerManagerButtonInMap?: boolean;
14
14
  displayDimensionSelectButtonInMap?: boolean;
15
+ syncGroupsIds?: string[];
15
16
  }
16
17
  export interface MultiMapViewProps {
17
18
  rows: number;
@@ -8,6 +8,15 @@ export declare const mapPresetRadar: {
8
8
  id: string;
9
9
  layerType: import("../../../store/mapStore/types").LayerType;
10
10
  }[];
11
+ proj: {
12
+ bbox: {
13
+ left: number;
14
+ bottom: number;
15
+ right: number;
16
+ top: number;
17
+ };
18
+ srs: string;
19
+ };
11
20
  };
12
21
  export declare const mapPresetObsTA: {
13
22
  layers: {
@@ -16,6 +25,15 @@ export declare const mapPresetObsTA: {
16
25
  id: string;
17
26
  layerType: import("../../../store/mapStore/types").LayerType;
18
27
  }[];
28
+ proj: {
29
+ bbox: {
30
+ left: number;
31
+ bottom: number;
32
+ right: number;
33
+ top: number;
34
+ };
35
+ srs: string;
36
+ };
19
37
  };
20
38
  export declare const mapPresetObsWind: {
21
39
  layers: {
@@ -24,6 +42,15 @@ export declare const mapPresetObsWind: {
24
42
  id: string;
25
43
  layerType: import("../../../store/mapStore/types").LayerType;
26
44
  }[];
45
+ proj: {
46
+ bbox: {
47
+ left: number;
48
+ bottom: number;
49
+ right: number;
50
+ top: number;
51
+ };
52
+ srs: string;
53
+ };
27
54
  };
28
55
  export declare const mapPresetObsPP: {
29
56
  layers: {
@@ -32,6 +59,15 @@ export declare const mapPresetObsPP: {
32
59
  id: string;
33
60
  layerType: import("../../../store/mapStore/types").LayerType;
34
61
  }[];
62
+ proj: {
63
+ bbox: {
64
+ left: number;
65
+ bottom: number;
66
+ right: number;
67
+ top: number;
68
+ };
69
+ srs: string;
70
+ };
35
71
  };
36
72
  export declare const mapPresetObsRH: {
37
73
  layers: {
@@ -40,6 +76,15 @@ export declare const mapPresetObsRH: {
40
76
  id: string;
41
77
  layerType: import("../../../store/mapStore/types").LayerType;
42
78
  }[];
79
+ proj: {
80
+ bbox: {
81
+ left: number;
82
+ bottom: number;
83
+ right: number;
84
+ top: number;
85
+ };
86
+ srs: string;
87
+ };
43
88
  };
44
89
  export declare const mapPresetObsQG: {
45
90
  layers: {
@@ -48,6 +93,15 @@ export declare const mapPresetObsQG: {
48
93
  id: string;
49
94
  layerType: import("../../../store/mapStore/types").LayerType;
50
95
  }[];
96
+ proj: {
97
+ bbox: {
98
+ left: number;
99
+ bottom: number;
100
+ right: number;
101
+ top: number;
102
+ };
103
+ srs: string;
104
+ };
51
105
  };
52
106
  export declare const mapPresetEumetsat: {
53
107
  layers: {
@@ -75,6 +129,15 @@ export declare const mapPresetHarmoniePrecipitationFlux: {
75
129
  layerType: import("../../../store/mapStore/types").LayerType;
76
130
  enabled: boolean;
77
131
  }[];
132
+ proj: {
133
+ bbox: {
134
+ left: number;
135
+ bottom: number;
136
+ right: number;
137
+ top: number;
138
+ };
139
+ srs: string;
140
+ };
78
141
  };
79
142
  export declare const mapPresetHarmonieTemperature2m: {
80
143
  layers: {
@@ -84,6 +147,15 @@ export declare const mapPresetHarmonieTemperature2m: {
84
147
  layerType: import("../../../store/mapStore/types").LayerType;
85
148
  enabled: boolean;
86
149
  }[];
150
+ proj: {
151
+ bbox: {
152
+ left: number;
153
+ bottom: number;
154
+ right: number;
155
+ top: number;
156
+ };
157
+ srs: string;
158
+ };
87
159
  };
88
160
  export declare const mapPresetHarmoniePressureMSL: {
89
161
  layers: {
@@ -93,4 +165,13 @@ export declare const mapPresetHarmoniePressureMSL: {
93
165
  layerType: import("../../../store/mapStore/types").LayerType;
94
166
  enabled: boolean;
95
167
  }[];
168
+ proj: {
169
+ bbox: {
170
+ left: number;
171
+ bottom: number;
172
+ right: number;
173
+ top: number;
174
+ };
175
+ srs: string;
176
+ };
96
177
  };
@@ -24,6 +24,7 @@ export interface ReactMapViewProps {
24
24
  mapPinLocation?: MapLocation;
25
25
  shouldAutoFetch?: boolean;
26
26
  showLayerInfo?: boolean;
27
+ disableMapPin?: boolean;
27
28
  onMount?: (mapId: string, WMJSMapInstance: WMJSMap) => void;
28
29
  onUnMount?: (mapId: string, WMJSMapInstance: WMJSMap) => void;
29
30
  onMapChangeDimension?: (payload: SetMapDimensionPayload) => void;
@@ -9,6 +9,8 @@ interface SyncGroupViewerProps {
9
9
  syncGroupRemoveTarget: (payload: SyncgroupTypes.SyncGroupRemoveTargetPayload) => void;
10
10
  syncGroupAddGroup: (payload: SyncgroupTypes.SyncGroupAddGroupPayload) => void;
11
11
  syncGroupRemoveGroup: (payload: SyncgroupTypes.SyncGroupRemoveGroupPayload) => void;
12
+ onMouseDown?: () => void;
13
+ order?: number;
12
14
  }
13
15
  export declare const SyncGroupViewer: React.FC<SyncGroupViewerProps>;
14
16
  export {};
@@ -1,7 +1,2 @@
1
1
  import * as React from 'react';
2
- interface ConnectProps {
3
- onClose?: () => void;
4
- isOpen?: boolean;
5
- }
6
- export declare const SyncGroupViewerConnect: React.FC<ConnectProps>;
7
- export {};
2
+ export declare const SyncGroupViewerConnect: React.FC;
@@ -1,20 +1,20 @@
1
- import { SynchronizationGroupState, SyncType } from '../../store/generic/synchronizationGroups/types';
1
+ import { SynchronizationGroups, SynchronizationSources, SyncType } from '../../store/generic/synchronizationGroups/types';
2
2
  import { SyncGroupViewState } from './types';
3
3
  export declare const groupTypes: {
4
4
  title: string;
5
5
  syncType: SyncType;
6
6
  groupType: string;
7
7
  }[];
8
- export declare const createSyncGroupViewState: (syncState: SynchronizationGroupState) => SyncGroupViewState;
8
+ export declare const createSyncGroupViewState: (groups: SynchronizationGroups, sources: SynchronizationSources) => SyncGroupViewState;
9
9
  export declare const createSyncGroupViewStateSelector: ((state: {
10
10
  advancedLayerStore?: import("../../store/advancedLayerStore/types").AdvancedLayerStoreState;
11
- syncronizationGroupStore?: SynchronizationGroupState;
11
+ syncronizationGroupStore?: import("../../store/generic/synchronizationGroups/types").SynchronizationGroupState;
12
12
  ui?: import("../../store/ui/types").UIStoreType;
13
13
  webmap?: import("../../store/mapStore/types").WebMapState;
14
14
  services?: import("../../store/mapStore/types").ServiceState;
15
15
  layers?: import("../../store/mapStore/types").LayerState;
16
16
  layerSelect?: import("../../store/layerSelect/types").LayerSelectStoreType;
17
- }) => SyncGroupViewState) & import("reselect").OutputSelectorFields<(args_0: SynchronizationGroupState) => SyncGroupViewState & {
17
+ }) => SyncGroupViewState) & import("reselect").OutputSelectorFields<(args_0: SynchronizationGroups, args_1: SynchronizationSources) => SyncGroupViewState & {
18
18
  clearCache: () => void;
19
19
  }> & {
20
20
  clearCache: () => void;
@@ -10,6 +10,7 @@ export interface PlayButtonConnectProps {
10
10
  mapStartAnimation?: typeof mapActions.mapStartAnimation;
11
11
  mapStopAnimation?: typeof mapActions.mapStopAnimation;
12
12
  timeStep?: number;
13
+ linkedMapAnimationInfo?: any;
13
14
  }
14
15
  declare const PlayButtonConnect: React.FC<PlayButtonConnectProps>;
15
16
  export default PlayButtonConnect;
@@ -9,6 +9,8 @@ interface TimeSliderLegendProps {
9
9
  currentTime?: number;
10
10
  dataStartTime?: number;
11
11
  dataEndTime?: number;
12
+ animationStartTime?: string;
13
+ animationEndTime?: string;
12
14
  isTimeSliderHoverOn?: boolean;
13
15
  timeStep?: number;
14
16
  onSetNewDate?: (newDate: string) => void;
@@ -2,4 +2,4 @@ import { Theme } from '@mui/material';
2
2
  import { Scale } from '../../../store/mapStore/types';
3
3
  export declare const getRoundedStartAndEnd: (visibleTimeStart: number, visibleTimeEnd: number, scale: Scale) => [number, number];
4
4
  export declare const getCustomRoundedStartAndEnd: (visibleTimeStart: number, visibleTimeEnd: number, unit: string) => [number, number];
5
- export declare const renderTimeSliderLegend: (context: CanvasRenderingContext2D, theme: Theme, canvasWidth: number, height: number, centerTime: number, secondsPerPx: number, dataScaleToSecondsPerPx: number, selectedTimeUnix: number, scale: Scale, currentTimeUnix: number) => void;
5
+ export declare const renderTimeSliderLegend: (context: CanvasRenderingContext2D, theme: Theme, canvasWidth: number, height: number, centerTime: number, secondsPerPx: number, dataScaleToSecondsPerPx: number, selectedTimeUnix: number, scale: Scale, currentTimeUnix: number, animationStartTime: number, animationEndTime: number) => void;
@@ -1,6 +1,5 @@
1
1
  import * as React from 'react';
2
2
  import { SelectProps } from '@mui/material';
3
- export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"select">;
4
3
  declare type ListELement = {
5
4
  value: string;
6
5
  };
@@ -9,6 +8,7 @@ interface TooltipSelectProps extends SelectProps {
9
8
  list?: ListELement[];
10
9
  currentIndex?: number;
11
10
  onChangeMouseWheel?: (element: ListELement) => void;
11
+ requiresCtrlToChange?: boolean;
12
12
  }
13
13
  declare const TooltipSelect: React.FC<TooltipSelectProps>;
14
14
  export default TooltipSelect;
package/lib/index.d.ts CHANGED
@@ -4,6 +4,7 @@ import * as mapTypes from './store/mapStore/types';
4
4
  import * as mapConstants from './store/mapStore/constants';
5
5
  import * as mapUtils from './store/mapStore/map/utils';
6
6
  import * as uiActions from './store/ui/actions';
7
+ import * as uiSelectors from './store/ui/selectors';
7
8
  import * as uiTypes from './store/ui/types';
8
9
  import * as syncGroupActions from './store/generic/actions';
9
10
  import * as layerReducer from './store/mapStore/layers/reducer';
@@ -21,7 +22,7 @@ export { LegendConnect, Legend, LegendMapButtonConnect, } from './components/Leg
21
22
  export { ZoomControls, ZoomControlConnect } from './components/MapControls';
22
23
  export { TimeSliderConnect } from './components/TimeSlider';
23
24
  export { MapControls } from './components/MapControls';
24
- export { mapActions, mapSelectors, mapTypes, mapConstants, mapUtils, layerReducer, uiActions, uiTypes, syncGroupActions, };
25
+ export { mapActions, mapSelectors, mapTypes, mapConstants, mapUtils, layerReducer, uiActions, uiSelectors, uiTypes, syncGroupActions, };
25
26
  export { synchronizationGroupConfig as synchronizationGroupModuleConfig };
26
27
  export * from './components/ComponentsLookUp';
27
28
  export * from './components/ConfigurableMapWithSlider';
@@ -38,5 +39,9 @@ export { MultiDimensionSelectMapButtonsConnect, MultiMapDimensionSelectConnect,
38
39
  export * as publicLayers from './utils/publicLayers';
39
40
  export * as publicServices from './utils/publicServices';
40
41
  export * as testLayers from './utils/testLayers';
42
+ export * from './utils/jsonPresetFilter';
43
+ export * from './utils/types';
41
44
  export * as defaultConfigurations from './utils/defaultConfigurations';
42
45
  export * from './components/Providers/Providers';
46
+ export { default as uiModuleConfig } from './store/ui/config';
47
+ export { default as mapModuleConfig } from './store/mapStore/config';
@@ -15,6 +15,7 @@ export declare const getSynchronizationGroupStore: ((state: {
15
15
  export declare const getTime: ((state: {
16
16
  sources: import("./synchronizationGroups/types").SynchronizationSources;
17
17
  groups: import("./synchronizationGroups/types").SynchronizationGroups;
18
+ viewState: import("../../components/SyncGroups/types").SyncGroupViewState;
18
19
  }, params_0: string) => string) & import("reselect").OutputSelectorFields<(args_0: SynchronizationSource) => string & {
19
20
  clearCache: () => void;
20
21
  }> & {
@@ -1,4 +1,4 @@
1
- import { SyncGroupAddGroupPayload, SyncGroupAddTargetPayload, SyncGroupLinkTargetPayload, SyncGroupRemoveGroupPayload, SyncGroupRemoveSourcePayload, SyncGroupRemoveTargetPayload, SyncGroupsAddSourcePayload, SynchronizationGroupActions } from './types';
1
+ import { SyncGroupAddGroupPayload, SyncGroupAddTargetPayload, SyncGroupLinkTargetPayload, SyncGroupRemoveGroupPayload, SyncGroupRemoveSourcePayload, SyncGroupRemoveTargetPayload, SyncGroupsAddSourcePayload, SynchronizationGroupActions, SyncGroupSetViewStatePayload } from './types';
2
2
  /**
3
3
  * Add a source component to the sources list.
4
4
  *
@@ -77,3 +77,4 @@ export declare const syncGroupRemoveGroup: (payload: SyncGroupRemoveGroupPayload
77
77
  * Clear syncGroups
78
78
  */
79
79
  export declare const syncGroupClear: () => SynchronizationGroupActions;
80
+ export declare const syncGroupSetViewState: (payload: SyncGroupSetViewStatePayload) => SynchronizationGroupActions;
@@ -9,3 +9,4 @@ export declare const SYNCGROUPS_CLEAR = "SYNCGROUPS_CLEAR";
9
9
  export declare const SYNCGROUPS_TYPE_SETTIME = "SYNCGROUPS_TYPE_SETTIME";
10
10
  export declare const SYNCGROUPS_TYPE_SETBBOX = "SYNCGROUPS_TYPE_SETBBOX";
11
11
  export declare const SYNCGROUPS_TYPE_SETLAYERACTIONS = "SYNCGROUPS_TYPE_SETLAYERACTIONS";
12
+ export declare const SYNCGROUPS_SET_VIEW_STATE = "SYNCGROUPS_SET_VIEW_STATE";
@@ -3,5 +3,6 @@ import { SyncGroupAddTarget, SyncGroupLinkTarget } from './types';
3
3
  export declare function updateSourceValueWhenLinkingComponentToGroupSaga(groupId: string, targetToUpdate: string): SagaIterator;
4
4
  export declare function addGroupTargetSaga({ payload, }: SyncGroupAddTarget): SagaIterator;
5
5
  export declare function linkGroupTargetSaga({ payload, }: SyncGroupLinkTarget): SagaIterator;
6
+ export declare function updateViewStateSaga(): SagaIterator;
6
7
  declare function rootSaga(): SagaIterator;
7
8
  export default rootSaga;
@@ -27,3 +27,16 @@ export declare const getSynchronizationGroup: (state: AppStore, id: string) => S
27
27
  export declare const getSynchronizationGroupSource: (state: AppStore, id: string) => SynchronizationSource;
28
28
  export declare const getTargets: (state: AppStore, payload: GenericActionPayload, actionType: SyncType) => SetBboxSyncPayload[] | SetTimeSyncPayload[];
29
29
  export declare const getTargetGroups: (state: AppStore, payload: GenericActionPayload, actionType: SyncType) => string[];
30
+ export declare const syncGroupGetViewState: ((state: {
31
+ advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
32
+ syncronizationGroupStore?: SynchronizationGroupState;
33
+ ui?: import("../../ui/types").UIStoreType;
34
+ webmap?: import("../../mapStore/types").WebMapState;
35
+ services?: import("../../mapStore/types").ServiceState;
36
+ layers?: import("../../mapStore/types").LayerState;
37
+ layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
38
+ }) => import("../../../components/SyncGroups/types").SyncGroupViewState) & import("reselect").OutputSelectorFields<(args_0: SynchronizationGroupState) => import("../../../components/SyncGroups/types").SyncGroupViewState & {
39
+ clearCache: () => void;
40
+ }> & {
41
+ clearCache: () => void;
42
+ };