@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.
Files changed (159) hide show
  1. package/dist/README.md +68 -0
  2. package/dist/index.d.ts +1 -0
  3. package/dist/index.esm.js +11827 -0
  4. package/dist/src/index.d.ts +4 -0
  5. package/dist/src/lib/components/ClockConnect/ClockConnect.d.ts +4 -0
  6. package/dist/src/lib/components/ClockConnect/OptionsMenu.d.ts +10 -0
  7. package/dist/src/lib/components/ClockConnect/index.d.ts +1 -0
  8. package/dist/src/lib/components/ComponentsLookUp/componentsLookUp.d.ts +62 -0
  9. package/dist/src/lib/components/ComponentsLookUp/index.d.ts +1 -0
  10. package/dist/src/lib/components/ConfigurableMapConnect/ConfigurableMapConnect.d.ts +51 -0
  11. package/dist/src/lib/components/ConfigurableMapConnect/index.d.ts +1 -0
  12. package/dist/src/lib/components/LanguageSelect/LanguageSelect.d.ts +14 -0
  13. package/dist/src/lib/components/LanguageSelect/index.d.ts +1 -0
  14. package/dist/src/lib/components/LayerInfoConnect/LayerInfoButtonConnect.d.ts +13 -0
  15. package/dist/src/lib/components/LayerInfoConnect/LayerInfoDialogConnect.d.ts +8 -0
  16. package/dist/src/lib/components/LayerInfoConnect/index.d.ts +2 -0
  17. package/dist/src/lib/components/LayerManager/AddLayersButton/AddLayersButton.d.ts +12 -0
  18. package/dist/src/lib/components/LayerManager/AddLayersPopup/AddLayersPopup.d.ts +12 -0
  19. package/dist/src/lib/components/LayerManager/AddLayersPopup/WMSLayerTree/WMSLayerTree.d.ts +9 -0
  20. package/dist/src/lib/components/LayerManager/AddLayersPopup/WMSLayerTree/WMSLayerTreeConnect.d.ts +25 -0
  21. package/dist/src/lib/components/LayerManager/AddLayersPopup/WMSLayerTree/WMSLayerTreeHeader.d.ts +7 -0
  22. package/dist/src/lib/components/LayerManager/AddLayersPopup/WMSServerList/WMSServerList.d.ts +9 -0
  23. package/dist/src/lib/components/LayerManager/BaseLayerRow/BaseLayerRow.d.ts +13 -0
  24. package/dist/src/lib/components/LayerManager/BaseLayerRow/BaseLayers/BaseLayers.d.ts +11 -0
  25. package/dist/src/lib/components/LayerManager/BaseLayerRow/BaseLayers/BaseLayersConnect.d.ts +22 -0
  26. package/dist/src/lib/components/LayerManager/DescriptionRow/DescriptionRow.d.ts +13 -0
  27. package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerContainerRow.d.ts +19 -0
  28. package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/AcceptanceTime/AcceptanceTime.d.ts +10 -0
  29. package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/AcceptanceTime/AcceptanceTimeConnect.d.ts +9 -0
  30. package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/ActivateLayer/ActivateLayer.d.ts +14 -0
  31. package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/ActivateLayer/ActivateLayerConnect.d.ts +16 -0
  32. package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/CustomDimensionSelect/CustomDimensionSelectConnect.d.ts +9 -0
  33. package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/DeleteLayer/DeleteLayerConnect.d.ts +18 -0
  34. package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelect.d.ts +28 -0
  35. package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelectConnect.d.ts +8 -0
  36. package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelectName.d.ts +13 -0
  37. package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelectValue.d.ts +26 -0
  38. package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/dimensionSelectHooks.d.ts +15 -0
  39. package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/DragHandle/DragHandle.d.ts +11 -0
  40. package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/EnableLayer/EnableLayerConnect.d.ts +19 -0
  41. package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/LayerRow.d.ts +67 -0
  42. package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/LayerRowConnect.d.ts +11 -0
  43. package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/LayerService/LayerService.d.ts +8 -0
  44. package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/LoadDuration/LoadDuration.d.ts +18 -0
  45. package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/LoadDuration/LoadingIndicatorProgressBar.d.ts +9 -0
  46. package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/Menubutton/MenuButton.d.ts +16 -0
  47. package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/Menubutton/MenuButtonConnect.d.ts +9 -0
  48. package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/MissingData/MissingData.d.ts +16 -0
  49. package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/MissingData/MissingDataConnect.d.ts +5 -0
  50. package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/OpacitySelect/OpacitySelect.d.ts +9 -0
  51. package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/OpacitySelect/OpacitySelectConnect.d.ts +16 -0
  52. package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderLayers/RenderEDRLayers.d.ts +18 -0
  53. package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderLayers/RenderLayerName.d.ts +6 -0
  54. package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderLayers/RenderLayers.d.ts +14 -0
  55. package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderLayers/RenderLayersConnect.d.ts +9 -0
  56. package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderStyles/RenderStyles.d.ts +14 -0
  57. package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderStyles/RenderStylesConnect.d.ts +10 -0
  58. package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/SelectableFeaturesCheckbox/SelectableFeaturesCheckbox.d.ts +8 -0
  59. package/dist/src/lib/components/LayerManager/LayerContainerRow/LayerRow/SelectableFeaturesCheckbox/SelectableFeaturesCheckboxConnect.d.ts +6 -0
  60. package/dist/src/lib/components/LayerManager/LayerManager.d.ts +32 -0
  61. package/dist/src/lib/components/LayerManager/LayerManagerConnect.d.ts +29 -0
  62. package/dist/src/lib/components/LayerManager/LayerManagerHeaderOptions.d.ts +50 -0
  63. package/dist/src/lib/components/LayerManager/LayerManagerHeaderOptionsConnect.d.ts +12 -0
  64. package/dist/src/lib/components/LayerManager/LayerManagerMapButtonConnect.d.ts +9 -0
  65. package/dist/src/lib/components/LayerManager/LayerManagerUtils.d.ts +329 -0
  66. package/dist/src/lib/components/LayerManager/LayerSelect/LayerSelectButton.d.ts +8 -0
  67. package/dist/src/lib/components/LayerManager/OverlayersRow/OverlayersSelect.d.ts +15 -0
  68. package/dist/src/lib/components/LayerManager/OverlayersRow/OverlayersSelectConnect.d.ts +6 -0
  69. package/dist/src/lib/components/LayerManager/ProjectionSelect/ProjectionSelect.d.ts +14 -0
  70. package/dist/src/lib/components/LayerManager/ProjectionSelect/ProjectionSelectConnect.d.ts +6 -0
  71. package/dist/src/lib/components/LayerManager/index.d.ts +9 -0
  72. package/dist/src/lib/components/LayerManager/useFetchServices.d.ts +4 -0
  73. package/dist/src/lib/components/LegendConnect/LegendConnect.d.ts +21 -0
  74. package/dist/src/lib/components/LegendConnect/LegendMapButtonConnect.d.ts +9 -0
  75. package/dist/src/lib/components/LegendConnect/index.d.ts +2 -0
  76. package/dist/src/lib/components/LocationSearch/LocationSearch.d.ts +10 -0
  77. package/dist/src/lib/components/LocationSearch/LocationSearchConnect.d.ts +5 -0
  78. package/dist/src/lib/components/LocationSearch/MyMapLocation.d.ts +9 -0
  79. package/dist/src/lib/components/LocationSearch/SearchControlButtonConnect.d.ts +8 -0
  80. package/dist/src/lib/components/LocationSearch/index.d.ts +5 -0
  81. package/dist/src/lib/components/LocationSearch/types.d.ts +23 -0
  82. package/dist/src/lib/components/LocationSearch/utils.d.ts +8 -0
  83. package/dist/src/lib/components/MapDrawToolRedux/OpenLayersFeatureLayerConnect.d.ts +21 -0
  84. package/dist/src/lib/components/MapOptions/FeatureInfo/GetFeatureInfoButtonConnect.d.ts +8 -0
  85. package/dist/src/lib/components/MapOptions/FeatureInfo/GetFeatureInfoConnect.d.ts +8 -0
  86. package/dist/src/lib/components/MapOptions/FeatureInfo/GetFeatureInfoDialog.d.ts +16 -0
  87. package/dist/src/lib/components/MapOptions/FeatureInfo/index.d.ts +3 -0
  88. package/dist/src/lib/components/MapOptions/FeatureInfo/utils.d.ts +19 -0
  89. package/dist/src/lib/components/MapOptions/MapOptionsButtonConnect.d.ts +8 -0
  90. package/dist/src/lib/components/MapOptions/MeasureTool/MeasureToolButton.d.ts +7 -0
  91. package/dist/src/lib/components/MapOptions/MeasureTool/index.d.ts +2 -0
  92. package/dist/src/lib/components/MapOptions/index.d.ts +4 -0
  93. package/dist/src/lib/components/MapViewConnect/OlMapViewConnect.d.ts +40 -0
  94. package/dist/src/lib/components/MapViewConnect/OlMapViewLayerConnect.d.ts +8 -0
  95. package/dist/src/lib/components/MapViewConnect/index.d.ts +3 -0
  96. package/dist/src/lib/components/MapViewConnect/olMapFeatureSyncUtils.d.ts +14 -0
  97. package/dist/src/lib/components/MapViewConnect/olMapUtils.d.ts +22 -0
  98. package/dist/src/lib/components/MapViewConnect/useGetOpenLayersView.d.ts +9 -0
  99. package/dist/src/lib/components/MapViewConnect/useMapViewLoadingIndicator.d.ts +1 -0
  100. package/dist/src/lib/components/MultiMapDimensionSelectConnect/DimensionSelectButtonConnect.d.ts +9 -0
  101. package/dist/src/lib/components/MultiMapDimensionSelectConnect/DimensionSelectDialogConnect.d.ts +14 -0
  102. package/dist/src/lib/components/MultiMapDimensionSelectConnect/DimensionSelectSliderConnect.d.ts +10 -0
  103. package/dist/src/lib/components/MultiMapDimensionSelectConnect/MultiDimensionSelectMapButtonsConnect.d.ts +8 -0
  104. package/dist/src/lib/components/MultiMapDimensionSelectConnect/MultiMapMultiDimensionSelectConnect.d.ts +9 -0
  105. package/dist/src/lib/components/MultiMapDimensionSelectConnect/MultiMapSingleDimensionSelectConnect.d.ts +8 -0
  106. package/dist/src/lib/components/MultiMapDimensionSelectConnect/index.d.ts +2 -0
  107. package/dist/src/lib/components/MultiMapViewConnect/HarmoniePresets/HarmonieTempAndPrecipPreset.d.ts +12 -0
  108. package/dist/src/lib/components/MultiMapViewConnect/HarmoniePresets/index.d.ts +1 -0
  109. package/dist/src/lib/components/MultiMapViewConnect/ModelRunInterval/ModelRunInterval.d.ts +18 -0
  110. package/dist/src/lib/components/MultiMapViewConnect/ModelRunInterval/index.d.ts +1 -0
  111. package/dist/src/lib/components/MultiMapViewConnect/MultiMapViewConnect.d.ts +29 -0
  112. package/dist/src/lib/components/MultiMapViewConnect/storyUtils/mapPresets.d.ts +177 -0
  113. package/dist/src/lib/components/Providers/Providers.d.ts +39 -0
  114. package/dist/src/lib/components/RouterWrapper/NavigateSetter.d.ts +1 -0
  115. package/dist/src/lib/components/RouterWrapper/RouterWrapperConnect.d.ts +6 -0
  116. package/dist/src/lib/components/RouterWrapper/index.d.ts +1 -0
  117. package/dist/src/lib/components/SelectedFeaturesDialog/SelectedFeature.d.ts +8 -0
  118. package/dist/src/lib/components/SelectedFeaturesDialog/SelectedFeaturesDialog.d.ts +14 -0
  119. package/dist/src/lib/components/SelectedFeaturesDialog/SelectedFeaturesDialogConnect.d.ts +2 -0
  120. package/dist/src/lib/components/SelectedFeaturesDialog/storyUtils.d.ts +3 -0
  121. package/dist/src/lib/components/SyncGroups/DraggableThings.d.ts +13 -0
  122. package/dist/src/lib/components/SyncGroups/SimpleTimeSlider.d.ts +8 -0
  123. package/dist/src/lib/components/SyncGroups/SimpleTimeSliderConnect.d.ts +19 -0
  124. package/dist/src/lib/components/SyncGroups/SyncGroupList.d.ts +12 -0
  125. package/dist/src/lib/components/SyncGroups/SyncGroupListItem.d.ts +10 -0
  126. package/dist/src/lib/components/SyncGroups/SyncGroupViewer.d.ts +18 -0
  127. package/dist/src/lib/components/SyncGroups/SyncGroupViewerConnect.d.ts +2 -0
  128. package/dist/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect/AnimationLengthButtonConnect.d.ts +5 -0
  129. package/dist/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect/AutoUpdateButtonConnect.d.ts +21 -0
  130. package/dist/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect/BackwardForwardStepButtonConnect.d.ts +6 -0
  131. package/dist/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect/NowButtonConnect.d.ts +8 -0
  132. package/dist/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect/OptionsMenuButtonConnect.d.ts +15 -0
  133. package/dist/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect/PlayButtonConnect.d.ts +17 -0
  134. package/dist/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect/SpeedButtonConnect.d.ts +6 -0
  135. package/dist/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect/TimeSpanButtonConnect.d.ts +5 -0
  136. package/dist/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect/TimeStepButtonConnect.d.ts +6 -0
  137. package/dist/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect.d.ts +8 -0
  138. package/dist/src/lib/components/TimeSliderConnect/TimeSliderConnect.d.ts +11 -0
  139. package/dist/src/lib/components/TimeSliderConnect/TimeSliderCurrentTimeBoxConnect.d.ts +37 -0
  140. package/dist/src/lib/components/TimeSliderConnect/TimeSliderLegendConnect.d.ts +14 -0
  141. package/dist/src/lib/components/TimeSliderConnect/index.d.ts +1 -0
  142. package/dist/src/lib/components/TimeSliderConnect/timesliderUtils.d.ts +11 -0
  143. package/dist/src/lib/index.d.ts +23 -0
  144. package/dist/src/lib/store/index.d.ts +1 -0
  145. package/dist/src/lib/store/store.d.ts +6 -0
  146. package/dist/src/lib/utils/defaultConfigurations.d.ts +4 -0
  147. package/dist/src/lib/utils/defaultTestSettings.d.ts +29 -0
  148. package/dist/src/lib/utils/i18n.d.ts +7 -0
  149. package/dist/src/lib/utils/jsonPresetFilter.d.ts +30 -0
  150. package/dist/src/lib/utils/location-api/api.d.ts +3 -0
  151. package/dist/src/lib/utils/location-api/fakeApi.d.ts +113 -0
  152. package/dist/src/lib/utils/location-api/hooks.d.ts +4 -0
  153. package/dist/src/lib/utils/sanitizeHTML.d.ts +3 -0
  154. package/dist/src/lib/utils/storyUtils.d.ts +32 -0
  155. package/dist/src/lib/utils/testDimensionData.d.ts +39 -0
  156. package/dist/src/lib/utils/testLayers.d.ts +70 -0
  157. package/dist/src/lib/utils/testUtils.d.ts +3 -0
  158. package/dist/src/lib/utils/verticalLevels.d.ts +4 -0
  159. package/package.json +3 -2
@@ -0,0 +1,4 @@
1
+ import coreTranslations from '../locales/core.json';
2
+ export * from './lib';
3
+ export { CORE_NAMESPACE } from './lib/utils/i18n';
4
+ export { coreTranslations };
@@ -0,0 +1,4 @@
1
+ import type { FC } from 'react';
2
+ export declare const ClockConnect: FC<{
3
+ mapId: string;
4
+ }>;
@@ -0,0 +1,10 @@
1
+ import type { FC } from 'react';
2
+ export type PopperPlacement = 'right' | 'left' | 'top' | 'bottom';
3
+ export declare const getPopperplacement: (buttonElement: HTMLButtonElement | null, mapId: string) => PopperPlacement;
4
+ export interface OptionsMenuProps {
5
+ isOpen?: boolean;
6
+ popperPlacement: PopperPlacement;
7
+ buttonElement: HTMLButtonElement | null;
8
+ mapId: string;
9
+ }
10
+ export declare const OptionsMenu: FC<OptionsMenuProps>;
@@ -0,0 +1 @@
1
+ export * from './ClockConnect';
@@ -0,0 +1,62 @@
1
+ import React from 'react';
2
+ import type { Coordinates, PlotPreset, SourceSelection, TimeSeriesService } from '@opengeoweb/shared';
3
+ import type { mapTypes } from '@opengeoweb/store';
4
+ import type { InitialHarmTempAndPrecipProps } from '../MultiMapViewConnect/HarmoniePresets';
5
+ import type { ModelRunIntervalProps } from '../MultiMapViewConnect/ModelRunInterval';
6
+ export interface InitialMultiMapProps {
7
+ mapPreset: mapTypes.MapPreset[];
8
+ syncGroupsIds: string[];
9
+ shouldShowZoomControls?: boolean;
10
+ }
11
+ export interface InitialSliderProps {
12
+ sliderPreset: {
13
+ mapId: string;
14
+ };
15
+ syncGroupsIds: string[];
16
+ }
17
+ export interface InitialMapProps {
18
+ mapPreset: mapTypes.MapPreset;
19
+ syncGroupsIds: string[];
20
+ mapControls?: React.ReactNode;
21
+ shouldDisplayDrawControls?: boolean;
22
+ displaySearchButtonInMap?: boolean;
23
+ displayDataExplorerButtonOnMap?: boolean;
24
+ }
25
+ export interface InitialTimeSeriesProps {
26
+ plotPreset: PlotPreset;
27
+ services: TimeSeriesService[];
28
+ hideLocationMarkers?: boolean;
29
+ syncGroupsIds: string[];
30
+ }
31
+ export interface InitialSoundingsProps {
32
+ selectedSources: Record<string, SourceSelection>;
33
+ selectedLocations: Record<string, string | Coordinates | undefined>;
34
+ selectedTime?: string;
35
+ diagramType?: 'SKEWT' | 'BIJVOET' | 'EMAGRAM';
36
+ syncGroupsIds: string[];
37
+ }
38
+ export interface InitialPluginProps {
39
+ id: string;
40
+ name: string;
41
+ url: string;
42
+ author?: {
43
+ name?: string;
44
+ };
45
+ version?: string;
46
+ description?: string;
47
+ license?: string;
48
+ }
49
+ export type InitialProps = InitialMapProps | InitialMultiMapProps | InitialHarmTempAndPrecipProps | ModelRunIntervalProps | mapTypes.MapPresetInitialProps | InitialSliderProps | InitialTimeSeriesProps | InitialSoundingsProps | InitialPluginProps | Record<string, unknown>;
50
+ /**
51
+ * The lookup table is for registering your own components with the workspace.
52
+ * @param payload
53
+ * @returns
54
+ */
55
+ export type SupportedComponentTypes = 'Map' | 'MultiMap' | 'ModelRunInterval' | 'HarmonieTempAndPrecipPreset' | 'TimeSlider';
56
+ export interface ComponentsLookUpPayload {
57
+ componentType: SupportedComponentTypes;
58
+ id: string;
59
+ title?: string;
60
+ initialProps: InitialProps;
61
+ }
62
+ export declare const componentsLookUp: ({ componentType, initialProps, id, }: ComponentsLookUpPayload) => React.ReactElement;
@@ -0,0 +1 @@
1
+ export * from './componentsLookUp';
@@ -0,0 +1,51 @@
1
+ import type { StyleLike } from 'ol/style/Style';
2
+ import React from 'react';
3
+ import type { mapTypes, layerTypes } from '@opengeoweb/store';
4
+ import type { TileServerSettings } from '@opengeoweb/webmap';
5
+ export declare const defaultBbox: {
6
+ srs: "EPSG:3857";
7
+ bbox: {
8
+ left: number;
9
+ bottom: number;
10
+ right: number;
11
+ top: number;
12
+ };
13
+ };
14
+ export interface ConfigurableMapConnectProps {
15
+ id?: string;
16
+ dockedLayerManagerSize?: mapTypes.DockedLayerManagerSize;
17
+ shouldAutoUpdate?: boolean;
18
+ shouldAnimate?: boolean;
19
+ shouldAutoFetch?: boolean | number;
20
+ title?: string;
21
+ layers: layerTypes.Layer[];
22
+ tileServerSettings?: TileServerSettings;
23
+ autoUpdateLayerId?: string;
24
+ autoTimeStepLayerId?: string;
25
+ initialBbox?: mapTypes.Bbox;
26
+ srs?: string;
27
+ dimensions?: mapTypes.Dimension[];
28
+ animationPayload?: mapTypes.AnimationPayloadType;
29
+ shouldShowZoomControls?: boolean;
30
+ displayMapPin?: boolean;
31
+ showTimeSlider?: boolean;
32
+ disableTimeSlider?: boolean;
33
+ toggleTimestepAuto?: boolean;
34
+ displayTimeInMap?: boolean;
35
+ displayLayerManagerAndLegendButtonInMap?: boolean;
36
+ displayDimensionSelectButtonInMap?: boolean;
37
+ multiLegend?: boolean;
38
+ shouldShowLayerManager?: boolean;
39
+ shouldShowDockedLayerManager?: boolean;
40
+ isClockEnabled?: boolean;
41
+ displayGetFeatureInfoButtonInMap?: boolean;
42
+ shouldDisplayDrawControls?: boolean;
43
+ displaySearchButtonInMap?: boolean;
44
+ displayDataExplorerButtonOnMap?: boolean;
45
+ children?: React.ReactNode;
46
+ mapControls?: React.ReactNode;
47
+ shouldDisablePrefetching?: boolean;
48
+ featureStyle?: StyleLike;
49
+ shouldDisplayMeasureToolButton?: boolean;
50
+ }
51
+ export declare const ConfigurableMapConnect: React.FC<ConfigurableMapConnectProps>;
@@ -0,0 +1 @@
1
+ export * from './ConfigurableMapConnect';
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ export declare const languages: {
3
+ language: string;
4
+ code: string;
5
+ flag: React.ReactElement;
6
+ }[];
7
+ export declare const languageLocalStorageKey = "language";
8
+ export declare const getLanguageFromLocalStorage: () => string | null;
9
+ export declare const saveLanguageToLocalStorage: (languageKey: string) => void;
10
+ declare const LanguageSelect: React.FC<{
11
+ onChangeLanguage: (currentLanguage: string) => void;
12
+ isOpen?: boolean;
13
+ }>;
14
+ export default LanguageSelect;
@@ -0,0 +1 @@
1
+ export { default as LanguageSelect, getLanguageFromLocalStorage, saveLanguageToLocalStorage, languageLocalStorageKey, } from './LanguageSelect';
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { uiTypes } from '@opengeoweb/store';
3
+ interface LayerInfoButtonProps {
4
+ isLayerMissing?: boolean;
5
+ isFeatureLayer?: boolean;
6
+ mapId: string;
7
+ serviceUrl: string;
8
+ layerName: string;
9
+ layerId: string;
10
+ source?: uiTypes.Source;
11
+ }
12
+ export declare const LayerInfoButtonConnect: React.FC<LayerInfoButtonProps>;
13
+ export {};
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { uiTypes } from '@opengeoweb/store';
3
+ interface LayerInfoDialogConnectProps {
4
+ source: uiTypes.Source;
5
+ mapId: string;
6
+ }
7
+ export declare const LayerInfoDialogConnect: React.FC<LayerInfoDialogConnectProps>;
8
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from './LayerInfoButtonConnect';
2
+ export * from './LayerInfoDialogConnect';
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import type { serviceTypes } from '@opengeoweb/store';
3
+ import { LayerType } from '@opengeoweb/webmap';
4
+ interface AddLayerButtonProps {
5
+ onRenderTree?: (service: serviceTypes.InitialService) => React.ReactNode;
6
+ preloadedServices?: serviceTypes.InitialService[];
7
+ tooltip?: string;
8
+ layerType?: LayerType;
9
+ shouldFocus?: boolean;
10
+ }
11
+ declare const AddLayersButton: React.FC<AddLayerButtonProps>;
12
+ export default AddLayersButton;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import type { serviceTypes } from '@opengeoweb/store';
3
+ import { LayerType } from '@opengeoweb/webmap';
4
+ interface AddLayerPopupProps {
5
+ onRenderTree?: (service: serviceTypes.InitialService) => React.ReactNode;
6
+ preloadedServices?: serviceTypes.InitialService[];
7
+ open?: boolean;
8
+ handleClose?: () => void;
9
+ layerType?: LayerType;
10
+ }
11
+ declare const AddLayersPopup: React.FC<AddLayerPopupProps>;
12
+ export default AddLayersPopup;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import type { layerTypes, serviceTypes } from '@opengeoweb/store';
3
+ interface WMSLayerTreeProps {
4
+ service: serviceTypes.InitialService;
5
+ onClickLayer: (serviceURL: string, layerName: string) => void;
6
+ highlightedLayers: layerTypes.Layer[];
7
+ }
8
+ declare const WMSLayerTree: React.FC<WMSLayerTreeProps>;
9
+ export default WMSLayerTree;
@@ -0,0 +1,25 @@
1
+ import React from 'react';
2
+ import type { serviceTypes } from '@opengeoweb/store';
3
+ import { layerActions, layerTypes } from '@opengeoweb/store';
4
+ import { LayerType } from '@opengeoweb/webmap';
5
+ export interface WMSLayerTreeConnectProps {
6
+ service: serviceTypes.InitialService;
7
+ addLayer?: typeof layerActions.addLayer;
8
+ setBaseLayers?: typeof layerActions.setBaseLayers;
9
+ addAvailableBaseLayer?: typeof layerActions.addAvailableBaseLayer;
10
+ mapId: string;
11
+ loadedLayers?: layerTypes.Layer[];
12
+ layerType?: LayerType;
13
+ }
14
+ declare const WMSLayerTreeConnect: import("react-redux").ConnectedComponent<React.FC<WMSLayerTreeConnectProps>, {
15
+ mapId: string;
16
+ layerType?: LayerType | undefined;
17
+ service: serviceTypes.InitialService;
18
+ addLayer?: typeof layerActions.addLayer | undefined;
19
+ setBaseLayers?: typeof layerActions.setBaseLayers | undefined;
20
+ addAvailableBaseLayer?: typeof layerActions.addAvailableBaseLayer | undefined;
21
+ loadedLayers?: layerTypes.Layer[] | undefined;
22
+ context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").UnknownAction> | null> | undefined;
23
+ store?: import("redux").Store | undefined;
24
+ }>;
25
+ export default WMSLayerTreeConnect;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface WMSLayerTreeHeaderProps {
3
+ serviceName: string;
4
+ onClickReload?: () => void;
5
+ }
6
+ declare const WMSLayerTreeHeader: React.FC<WMSLayerTreeHeaderProps>;
7
+ export default WMSLayerTreeHeader;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import type { serviceTypes } from '@opengeoweb/store';
3
+ interface WMSServerListProps {
4
+ availableServices: serviceTypes.InitialService[];
5
+ handleChangeService: (service: serviceTypes.InitialService) => void;
6
+ service: serviceTypes.InitialService;
7
+ }
8
+ declare const WMSServerList: React.FC<WMSServerListProps>;
9
+ export default WMSServerList;
@@ -0,0 +1,13 @@
1
+ import { Grid } from '@mui/material';
2
+ import React from 'react';
3
+ import type { layerTypes, serviceTypes } from '@opengeoweb/store';
4
+ import type { LayerManagerCustomSettings } from '../LayerManagerUtils';
5
+ interface BaseLayerRowProps extends React.ComponentProps<typeof Grid> {
6
+ mapId: string;
7
+ preloadedAvailableBaseLayers?: layerTypes.Layer[];
8
+ preloadedServices?: serviceTypes.InitialService[];
9
+ tooltip?: string;
10
+ settings?: LayerManagerCustomSettings['footer'];
11
+ }
12
+ declare const BaseLayerRow: React.FC<BaseLayerRowProps>;
13
+ export default BaseLayerRow;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import type { layerTypes } from '@opengeoweb/store';
3
+ interface BaseLayersProps {
4
+ selectedBaseLayers: layerTypes.Layer[];
5
+ availableBaseLayers: layerTypes.Layer[];
6
+ onChangeBaseLayers: (name: string) => void;
7
+ icon?: React.ElementType;
8
+ tooltipPrefix?: string;
9
+ }
10
+ declare const BaseLayers: React.FC<BaseLayersProps>;
11
+ export default BaseLayers;
@@ -0,0 +1,22 @@
1
+ import React from 'react';
2
+ import { layerTypes } from '@opengeoweb/store';
3
+ export declare const constructLayerId: (baseLayer: layerTypes.Layer, selectedBaseLayers: layerTypes.Layer[]) => string;
4
+ export declare const constructListAvailableBaseLayers: (selectedBaseLayers: layerTypes.Layer[], preloadedAvailableBaseLayers: layerTypes.Layer[], mapId: string) => layerTypes.Layer[];
5
+ export declare const areAvailableBaseLayersSame: (availableBaseLayerList: layerTypes.Layer[], newBaseLayerList: layerTypes.Layer[]) => boolean;
6
+ interface BaseLayersConnectProps {
7
+ mapId: string;
8
+ preloadedAvailableBaseLayers: layerTypes.Layer[];
9
+ tooltipPrefix?: string;
10
+ icon?: React.ElementType;
11
+ }
12
+ declare const BaseLayersConnect: React.FC<BaseLayersConnectProps>;
13
+ /**
14
+ * Allows you to select a baselayer
15
+ *
16
+ * Expects the following props:
17
+ * @param {string} mapId mapId: string - Id of the map
18
+ * @param {layerTypes.Layer[]} preloadedAvailableBaseLayers preloadedAvailableBaseLayers: array of layerTypes.Layer objects - contains an array of layerTypes.Layer objects (consisting solely of type baseLayer) that are available to be shown as basemaps
19
+ * @example
20
+ * ``` <BaseLayersConnect mapId="mapid_1" preloadedAvailableBaseLayers = {baseLayersList} /> ```
21
+ */
22
+ export default BaseLayersConnect;
@@ -0,0 +1,13 @@
1
+ import { Grid } from '@mui/material';
2
+ import React from 'react';
3
+ import type { uiTypes } from '@opengeoweb/store';
4
+ import type { LayerManagerCustomSettings } from '../LayerManagerUtils';
5
+ interface DescriptionRowProps extends React.ComponentProps<typeof Grid> {
6
+ source?: uiTypes.Source;
7
+ settings?: LayerManagerCustomSettings['header'];
8
+ addLayerComponent?: React.ReactElement;
9
+ onToggleCollapsed?: (name: string) => void;
10
+ collapsedColumns?: Record<string, boolean>;
11
+ }
12
+ declare const DescriptionRow: React.FC<DescriptionRowProps>;
13
+ export default DescriptionRow;
@@ -0,0 +1,19 @@
1
+ import { Grid } from '@mui/material';
2
+ import React from 'react';
3
+ import type { LayerManagerCustomSettings } from '../LayerManagerUtils';
4
+ interface LayerContainerRowProps extends React.ComponentProps<typeof Grid> {
5
+ mapId: string;
6
+ settings?: LayerManagerCustomSettings['content'];
7
+ collapsedColumns?: Record<string, boolean>;
8
+ }
9
+ declare const LayerContainerRow: React.FC<LayerContainerRowProps>;
10
+ /**
11
+ * A Connected container component for rendering a sortable set of rows
12
+ *
13
+ * Expects the following props:
14
+ * @param {string} mapId mapId: string - Id of the map
15
+ * @param {LayerManagerWidth} layerManagerWidth layerManagerWidth: LayerManagerWidth - Width of the Layer Manager
16
+ * @example
17
+ * ``` <LayerContainerRow mapId={mapId} layerManagerWidth={LayerManagerWidth.lg} />```
18
+ */
19
+ export default LayerContainerRow;
@@ -0,0 +1,10 @@
1
+ import type { FC } from 'react';
2
+ import React from 'react';
3
+ export declare const AcceptanceTime: FC<{
4
+ isEnabled?: boolean;
5
+ acceptanceTimeInMinutes: number | null | undefined;
6
+ onChangeAcceptanceTime: (acceptanceTime: number | null) => void;
7
+ icon?: React.ElementType;
8
+ tooltipTitle?: string;
9
+ skipLocalStyling?: boolean;
10
+ }>;
@@ -0,0 +1,9 @@
1
+ import type { FC } from 'react';
2
+ import React from 'react';
3
+ export declare const AcceptanceTimeConnect: FC<{
4
+ layerId: string | undefined;
5
+ icon?: React.ElementType;
6
+ tooltipTitle?: string;
7
+ skipLocalStyling?: boolean;
8
+ mapId: string;
9
+ }>;
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ export declare enum AutoOptions {
3
+ BOTH = "Auto both",
4
+ NONE = "Auto none",
5
+ TIMESTEP = "Auto-timestep",
6
+ UPDATE = "Auto-update"
7
+ }
8
+ interface ActivateLayerProps {
9
+ onChange: (autoOption: AutoOptions) => void;
10
+ isEnabled: boolean;
11
+ current: AutoOptions;
12
+ }
13
+ declare const ActivateLayer: React.FC<ActivateLayerProps>;
14
+ export default ActivateLayer;
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ interface ActivateLayerProps {
3
+ layerId: string;
4
+ mapId: string;
5
+ }
6
+ declare const ActivateLayerConnect: React.FC<ActivateLayerProps>;
7
+ /**
8
+ * Activates a maplayer from the store
9
+ *
10
+ * Expects the following props:
11
+ * @param {string} mapId mapId: string - Id of the map
12
+ * @param {string} layerId layerId: string - Id of the layer that is activated
13
+ * @example
14
+ * ``` <ActivateLayerConnect mapId={mapId} layerId={layerId} />```
15
+ */
16
+ export default ActivateLayerConnect;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import type { LayerManagerCustomSettings } from '../../../LayerManagerUtils';
3
+ import type { DimensionSelectProps } from '../DimensionSelect/DimensionSelectConnect';
4
+ type Content = NonNullable<LayerManagerCustomSettings['content']>;
5
+ type Dimensions = NonNullable<Content['dimensions']>;
6
+ type DimensionsSettingsProps = Omit<Dimensions, 'nameMappings'>;
7
+ type CustomDimensionSelectProps = DimensionSelectProps & DimensionsSettingsProps;
8
+ declare const CustomDimensionSelectConnect: React.FC<CustomDimensionSelectProps>;
9
+ export default CustomDimensionSelectConnect;
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ interface DeleteLayerProps {
3
+ layerId: string;
4
+ mapId: string;
5
+ tooltipTitle?: string;
6
+ icon?: React.ReactNode;
7
+ }
8
+ declare const DeleteLayerConnect: React.FC<DeleteLayerProps>;
9
+ /**
10
+ * Deletes a maplayer from the store
11
+ *
12
+ * Expects the following props:
13
+ * @param {string} mapId mapId: string - Id of the map
14
+ * @param {string} layerId layerId: string - Id of the layer that is deleted
15
+ * @example
16
+ * ``` <DeleteLayerConnect mapId={mapId} layerId={layerId} />```
17
+ */
18
+ export default DeleteLayerConnect;
@@ -0,0 +1,28 @@
1
+ import type { TFunction } from 'i18next';
2
+ import type { ElementType, FC } from 'react';
3
+ import React from 'react';
4
+ import type { mapTypes, layerTypes } from '@opengeoweb/store';
5
+ import type { DimensionNameMappings, DimensionValueMappings } from '../../../LayerManagerUtils';
6
+ export interface SingleValueComponentProps extends mapTypes.Dimension {
7
+ position: 'dimension' | 'value';
8
+ nameMappings?: DimensionNameMappings;
9
+ valueMappings?: DimensionValueMappings;
10
+ }
11
+ export type DimensionTooltipGenerator = (t: TFunction, selectedDimension: mapTypes.Dimension, isValue?: boolean) => string;
12
+ export interface DimensionSelectProps {
13
+ layerDimensions?: mapTypes.Dimension[];
14
+ onLayerChangeDimension: (dimensionName: string, dimensionValue: string, origin?: layerTypes.LayerActionOrigin.layerManager) => void;
15
+ isEnabled?: boolean;
16
+ icon?: ElementType;
17
+ nameMappings?: DimensionNameMappings;
18
+ valueMappings?: DimensionValueMappings;
19
+ tooltipGenerator?: DimensionTooltipGenerator;
20
+ useLatestReferenceTime?: boolean;
21
+ setUseLatestReferenceTime?: (useLatestReferenceTime: boolean) => void;
22
+ SingleValueComponent?: React.FC<SingleValueComponentProps>;
23
+ hideLatestDuplicate?: boolean;
24
+ skipLocalStyling?: boolean;
25
+ layerId: string;
26
+ }
27
+ declare const DimensionSelect: FC<DimensionSelectProps>;
28
+ export default DimensionSelect;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ export interface DimensionSelectProps {
3
+ layerId: string;
4
+ mapId: string;
5
+ skipLocalStyling?: boolean;
6
+ }
7
+ declare const DimensionSelectConnect: React.FC<DimensionSelectProps>;
8
+ export default DimensionSelectConnect;
@@ -0,0 +1,13 @@
1
+ import type { ElementType, FC } from 'react';
2
+ import type { DimensionNameMappings } from '../../../LayerManagerUtils';
3
+ declare const DimensionSelectName: FC<{
4
+ dimensionNames: string[];
5
+ selectedDimensionName: string;
6
+ setSelectedDimensionName: (dimension: string) => void;
7
+ icon?: ElementType;
8
+ nameMappings?: DimensionNameMappings;
9
+ tooltip: string;
10
+ isEnabled: boolean;
11
+ skipLocalStyling?: boolean;
12
+ }>;
13
+ export default DimensionSelectName;
@@ -0,0 +1,26 @@
1
+ import type { ElementType, FC } from 'react';
2
+ import type { mapTypes } from '@opengeoweb/store';
3
+ import { layerTypes } from '@opengeoweb/store';
4
+ import type { DimensionValueMappings } from '../../../LayerManagerUtils';
5
+ export declare enum LatestOptions {
6
+ LATEST_0 = "Latest",
7
+ LATEST_1 = "Latest -1",
8
+ LATEST_2 = "Latest -2",
9
+ LATEST_3 = "Latest -3"
10
+ }
11
+ declare const DimensionSelectValue: FC<{
12
+ selectedDimension?: Omit<mapTypes.Dimension, 'currentValue'> & {
13
+ currentValue?: string;
14
+ };
15
+ generatedValues: string[];
16
+ icon?: ElementType;
17
+ tooltip: string;
18
+ isEnabled: boolean;
19
+ onLayerChangeDimension: (dimensionName: string, dimensionValue: string, origin?: layerTypes.LayerActionOrigin.layerManager) => void;
20
+ valueMappings?: DimensionValueMappings;
21
+ hideLatestDuplicate?: boolean;
22
+ useLatestReferenceTime?: boolean;
23
+ skipLocalStyling?: boolean;
24
+ setUseLatestReferenceTime?: (useLatestReferenceTime: boolean) => void;
25
+ }>;
26
+ export default DimensionSelectValue;
@@ -0,0 +1,15 @@
1
+ import type { layerTypes, mapTypes } from '@opengeoweb/store';
2
+ interface LayerChangeDimensionParams {
3
+ dimension: mapTypes.Dimension;
4
+ origin: layerTypes.LayerActionOrigin | undefined;
5
+ }
6
+ export declare const useLayerDimensions: (layerId: string, mapId: string) => {
7
+ layerDimensions: mapTypes.Dimension[];
8
+ isLayerEnabled: boolean;
9
+ layerChangeDimension: ({ dimension, origin, }: LayerChangeDimensionParams) => void;
10
+ };
11
+ export declare const useReferenceTimeWithLatestOption: (layerId: string) => {
12
+ useLatestReferenceTime: boolean;
13
+ setUseLatestReferenceTime: (useLatestReferenceTime: boolean) => void;
14
+ };
15
+ export {};
@@ -0,0 +1,11 @@
1
+ import type { ReactNode } from 'react';
2
+ import React from 'react';
3
+ interface DragHandleProps {
4
+ isDisabled?: boolean;
5
+ hideTooltip?: boolean;
6
+ isSorting?: boolean;
7
+ icon?: ReactNode;
8
+ tooltipTitle?: string;
9
+ }
10
+ declare const DragHandle: React.FC<DragHandleProps>;
11
+ export default DragHandle;
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ interface EnableLayerProps {
3
+ layerId: string;
4
+ mapId: string;
5
+ isEnabled?: boolean;
6
+ layerName?: string;
7
+ icon?: React.ReactNode;
8
+ tooltipTitle?: string;
9
+ }
10
+ declare const EnableLayerConnect: React.FC<EnableLayerProps>;
11
+ /**
12
+ * Allows you to show/hide a layer on the map
13
+ *
14
+ * Expects the following props:
15
+ * @param {string} layerId layerId: string - Id of the layer that is toggled
16
+ * @example
17
+ * ``` <EnableLayerConnect layerId={layerId} />```
18
+ */
19
+ export default EnableLayerConnect;
@@ -0,0 +1,67 @@
1
+ import React from 'react';
2
+ import type { serviceTypes, mapTypes, layerTypes } from '@opengeoweb/store';
3
+ interface LayerRowUnstyledProps {
4
+ layerId?: string;
5
+ layer?: layerTypes.Layer;
6
+ layerName?: string;
7
+ layerServiceName?: string;
8
+ mapId: string;
9
+ isEDRLayer?: boolean;
10
+ onLayerRowClick?: (layerId?: string) => void;
11
+ onLayerEnable?: (payload: {
12
+ layerId: string;
13
+ enabled: boolean;
14
+ }) => void;
15
+ onLayerChangeName?: (payload: {
16
+ layerId: string;
17
+ name: string;
18
+ }) => void;
19
+ onLayerChangeStyle?: (payload: {
20
+ layerId: string;
21
+ style: string;
22
+ }) => void;
23
+ onLayerChangeOpacity?: (payload: {
24
+ layerId: string;
25
+ opacity: number;
26
+ }) => void;
27
+ onLayerChangeDimension?: (payload: {
28
+ origin: string;
29
+ layerId: string;
30
+ dimension: mapTypes.Dimension;
31
+ }) => void;
32
+ onLayerDelete?: (payload: {
33
+ mapId: string;
34
+ layerId: string;
35
+ }) => void;
36
+ onLayerDuplicate?: (payload: {
37
+ mapId: string;
38
+ layerId: string;
39
+ }) => void;
40
+ onChangeAcceptanceTime?: (payload: {
41
+ layerId: string;
42
+ acceptanceTime: number | null;
43
+ }) => void;
44
+ layerEnableLayout?: React.ReactElement;
45
+ layerServicesLayout?: React.ReactElement;
46
+ layerStylesLayout?: React.ReactElement;
47
+ layerOpacityLayout?: React.ReactElement;
48
+ layerDimensionLayout?: React.ReactElement;
49
+ layerAcceptanceTimeLayout?: React.ReactElement;
50
+ layerMissingDataLayout?: React.ReactElement;
51
+ layerDeleteLayout?: React.ReactElement;
52
+ layerShowLayerInfoLayout?: React.ReactElement;
53
+ layerMenuLayout?: React.ReactElement;
54
+ layerActiveLayout?: React.ReactElement;
55
+ layerLoadDurationLayout?: React.ReactElement;
56
+ disableActivateLayer?: boolean;
57
+ services?: serviceTypes.Services;
58
+ isEnabled?: boolean;
59
+ dragHandle?: React.ReactElement;
60
+ isLayerMissing?: boolean;
61
+ className?: string;
62
+ collapsedColumns?: Record<string, boolean>;
63
+ }
64
+ declare const LayerRow: import("@emotion/styled").StyledComponent<LayerRowUnstyledProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
65
+ isEnabled?: boolean;
66
+ }, {}, {}>;
67
+ export default LayerRow;