@opengeoweb/core 4.1.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 (66) hide show
  1. package/index.esm.js +2024 -1482
  2. package/index.umd.js +2053 -1506
  3. package/lib/components/LayerManager/LayerManager.d.ts +13 -0
  4. package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResults.d.ts +4 -4
  5. package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResults.stories.d.ts +18 -2
  6. package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsConnect.d.ts +0 -1
  7. package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsListItem.d.ts +5 -5
  8. package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsListItemConnect.d.ts +3 -2
  9. package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoButtonConnect.d.ts +11 -0
  10. package/lib/components/LayerManager/LayerSelect/{LayerSelectUtils.spec.d.ts → LayerInfo/LayerInfoButtonConnect.spec.d.ts} +0 -0
  11. package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoDialog.d.ts +14 -0
  12. package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoDialog.spec.d.ts +1 -0
  13. package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoDialog.stories.d.ts +25 -0
  14. package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoDialogConnect.d.ts +3 -0
  15. package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoList.d.ts +11 -0
  16. package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoText.d.ts +7 -0
  17. package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoUtils.d.ts +4 -0
  18. package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoUtils.spec.d.ts +1 -0
  19. package/lib/components/LayerManager/LayerSelect/LayerInfo/index.d.ts +2 -0
  20. package/lib/components/LayerManager/LayerSelect/LayerList/LayerList.d.ts +5 -3
  21. package/lib/components/LayerManager/LayerSelect/LayerList/LayerListConnect.d.ts +1 -0
  22. package/lib/components/LayerManager/LayerSelect/LayerList/LayerListRow.d.ts +1 -1
  23. package/lib/components/LayerManager/LayerSelect/LayerList/LayerListUtils.d.ts +1 -1
  24. package/lib/components/LayerManager/LayerSelect/LayerSelectConnect.d.ts +0 -2
  25. package/lib/components/LayerManager/LayerSelect/SearchField/SearchFieldButtonContainer.d.ts +1 -0
  26. package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChipConnect.d.ts +2 -1
  27. package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceList.d.ts +1 -1
  28. package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceListConnect.d.ts +3 -1
  29. package/lib/components/LayerManager/LayerSelect/ServiceOptionsButton/ServiceOptionsButton.d.ts +4 -1
  30. package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.d.ts +13 -3
  31. package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.stories.d.ts +18 -2
  32. package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialogConnect.d.ts +6 -1
  33. package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopup.d.ts +11 -5
  34. package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopup.stories.d.ts +49 -9
  35. package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopupConnect.d.ts +2 -1
  36. package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopupConnect.stories.d.ts +9 -0
  37. package/lib/components/LayerManager/LayerSelect/ServicePopup/utils.d.ts +8 -0
  38. package/lib/components/LayerManager/LayerSelect/ServicePopup/utils.spec.d.ts +1 -0
  39. package/lib/components/LayerManager/useFetchServices.d.ts +4 -0
  40. package/lib/components/LayerManager/useFetchServices.spec.d.ts +1 -0
  41. package/lib/components/MultiMapDimensionSelect/DimensionSelectDialogConnect.d.ts +1 -1
  42. package/lib/components/ReactMapView/types.d.ts +2 -1
  43. package/lib/components/Snackbar/SnackbarWrapperConnect.spec.d.ts +7 -0
  44. package/lib/components/TimeSlider/TimeSliderButtons/SpeedButton/SpeedButton.d.ts +1 -1
  45. package/lib/components/TimeSlider/TimeSliderButtons/SpeedButton/SpeedButtonConnect.d.ts +1 -5
  46. package/lib/components/TimeSlider/TimeSliderButtons/TimeSliderMenu/TimeSliderMenu.d.ts +18 -0
  47. package/lib/components/TimeSlider/TimeSliderButtons/TimeSliderMenu/TimeSliderMenu.spec.d.ts +1 -0
  48. package/lib/components/TimeSlider/TimeSliderButtons/TimeSliderMenu/TimeSliderMenu.stories.d.ts +28 -0
  49. package/lib/components/TimeSlider/TimeSliderButtons/TimeStepButton/TimeStepButton.d.ts +1 -1
  50. package/lib/components/TimeSlider/TimeSliderButtons/TimeStepButton/TimeStepButton.stories.d.ts +24 -3
  51. package/lib/components/WMSLoader/services.d.ts +1 -0
  52. package/lib/hooks/index.d.ts +1 -0
  53. package/lib/hooks/useSetupDialog/index.d.ts +1 -0
  54. package/lib/hooks/useSetupDialog/useSetupDialog.d.ts +9 -0
  55. package/lib/hooks/useSetupDialog/useSetupDialog.spec.d.ts +1 -0
  56. package/lib/index.d.ts +1 -0
  57. package/lib/store/layerSelect/reducer.d.ts +8 -5
  58. package/lib/store/layerSelect/sagas.d.ts +3 -2
  59. package/lib/store/layerSelect/selectors.d.ts +53 -6
  60. package/lib/store/layerSelect/types.d.ts +32 -13
  61. package/lib/store/mapStore/service/types.d.ts +4 -1
  62. package/lib/store/ui/types.d.ts +4 -1
  63. package/lib/utils/defaultTestSettings.d.ts +1 -0
  64. package/lib/utils/getCapabilities.d.ts +4 -1
  65. package/package.json +6 -6
  66. package/lib/components/LayerManager/LayerSelect/LayerSelectUtils.d.ts +0 -4
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import * as React from 'react';
2
2
  import { Dimension, MapActionOrigin } from '../../../../store/mapStore/types';
3
3
  export declare const timeStepTitle = "Time step";
4
4
  export interface TimeStepButtonProps {
@@ -1,9 +1,30 @@
1
- import React from 'react';
2
1
  declare const _default: {
3
2
  title: string;
4
3
  };
5
4
  export default _default;
6
- export declare const TimeStepButtonDemo: {
7
- (): React.ReactElement;
5
+ export declare const TimeStepButtonDemoLight: {
6
+ (): JSX.Element;
8
7
  storyName: string;
8
+ story: {
9
+ name: string;
10
+ parameters: {
11
+ zeplinLink: {
12
+ name: string;
13
+ link: string;
14
+ }[];
15
+ };
16
+ };
17
+ };
18
+ export declare const TimeStepButtonDemoDark: {
19
+ (): JSX.Element;
20
+ storyName: string;
21
+ story: {
22
+ name: string;
23
+ parameters: {
24
+ zeplinLink: {
25
+ name: string;
26
+ link: string;
27
+ }[];
28
+ };
29
+ };
9
30
  };
@@ -3,4 +3,5 @@ export interface Service {
3
3
  url: string;
4
4
  id: string;
5
5
  isUserAddedService?: boolean;
6
+ abstract?: string;
6
7
  }
@@ -0,0 +1 @@
1
+ export * from './useSetupDialog';
@@ -0,0 +1 @@
1
+ export * from './useSetupDialog';
@@ -0,0 +1,9 @@
1
+ import type { uiTypes } from '../..';
2
+ export interface SetupDialogReturnValue {
3
+ setDialogOrder: () => void;
4
+ dialogOrder: number;
5
+ onCloseDialog: () => void;
6
+ uiSource: uiTypes.Source;
7
+ isDialogOpen: boolean;
8
+ }
9
+ export declare const useSetupDialog: (dialogType: uiTypes.DialogType) => SetupDialogReturnValue;
@@ -0,0 +1 @@
1
+ export {};
package/lib/index.d.ts CHANGED
@@ -8,6 +8,7 @@ import * as SyncGroups from './store/generic/synchronizationGroups';
8
8
  import coreModuleConfig from './store/coreModuleConfig';
9
9
  import { LayerManagerConnect, LayerManagerMapButtonConnect } from './components/LayerManager';
10
10
  import { MultiDimensionSelectMapButtonsConnect, MultiMapDimensionSelectConnect } from './components/MultiMapDimensionSelect';
11
+ export * from './hooks';
11
12
  export * from './components/MultiMapView/MultiMapViewConnect';
12
13
  export * from './components/MultiMapView/HarmoniePresets';
13
14
  export { MapViewConnect, MapView, MapViewLayer } from './components/MapView';
@@ -1,13 +1,16 @@
1
1
  import { PayloadAction } from '@reduxjs/toolkit';
2
- import { AddKeywordsAndActiveServicesPayload, DisableActiveServicePayload, EnableActiveServicePayload, EnableOnlyOneKeywordPayload, LayerSelectServiceRemovedPayload, LayerSelectStoreType, SetSearchFilterPayload, ToggleKeywordsPayload } from './types';
2
+ import { AddKeywordsAndActiveServicesPayload, DisableActiveServicePayload, EnableActiveServicePayload, EnableOnlyOneKeywordPayload, LayerSelectRemoveServicePayload, LayerSelectStoreType, SetAllServicesEnabledPayload, SetActiveLayerInfoPayload, SetSearchFilterPayload, ToggleKeywordsPayload } from './types';
3
3
  export declare const initialState: LayerSelectStoreType;
4
4
  export declare const reducer: import("@reduxjs/toolkit").Reducer<LayerSelectStoreType, import("@reduxjs/toolkit").AnyAction>;
5
5
  export declare const layerSelectActions: import("@reduxjs/toolkit").CaseReducerActions<{
6
6
  setSearchFilter: (draft: import("immer/dist/internal").WritableDraft<LayerSelectStoreType>, action: PayloadAction<SetSearchFilterPayload>) => void;
7
- addKeywordsAndActiveServices: (draft: import("immer/dist/internal").WritableDraft<LayerSelectStoreType>, action: PayloadAction<AddKeywordsAndActiveServicesPayload>) => void;
8
- layerSelectServiceRemoved: (draft: import("immer/dist/internal").WritableDraft<LayerSelectStoreType>, action: PayloadAction<LayerSelectServiceRemovedPayload>) => void;
7
+ setAllServicesEnabled: (draft: import("immer/dist/internal").WritableDraft<LayerSelectStoreType>, action: PayloadAction<SetAllServicesEnabledPayload>) => void;
8
+ addFiltersAndActiveServices: (draft: import("immer/dist/internal").WritableDraft<LayerSelectStoreType>, action: PayloadAction<AddKeywordsAndActiveServicesPayload>) => void;
9
+ layerSelectRemoveService: (draft: import("immer/dist/internal").WritableDraft<LayerSelectStoreType>, action: PayloadAction<LayerSelectRemoveServicePayload>) => void;
9
10
  enableActiveService: (draft: import("immer/dist/internal").WritableDraft<LayerSelectStoreType>, action: PayloadAction<EnableActiveServicePayload>) => void;
10
11
  disableActiveService: (draft: import("immer/dist/internal").WritableDraft<LayerSelectStoreType>, action: PayloadAction<DisableActiveServicePayload>) => void;
11
- toggleKeywords: (draft: import("immer/dist/internal").WritableDraft<LayerSelectStoreType>, action: PayloadAction<ToggleKeywordsPayload>) => void;
12
- enableOnlyOneKeyword: (draft: import("immer/dist/internal").WritableDraft<LayerSelectStoreType>, action: PayloadAction<EnableOnlyOneKeywordPayload>) => void;
12
+ toggleFilter: (draft: import("immer/dist/internal").WritableDraft<LayerSelectStoreType>, action: PayloadAction<ToggleKeywordsPayload>) => void;
13
+ enableOnlyOneFilter: (draft: import("immer/dist/internal").WritableDraft<LayerSelectStoreType>, action: PayloadAction<EnableOnlyOneKeywordPayload>) => void;
14
+ setActiveLayerInfo: (draft: import("immer/dist/internal").WritableDraft<LayerSelectStoreType>, action: PayloadAction<SetActiveLayerInfoPayload>) => void;
13
15
  }>;
16
+ export declare type LayerSelectActions = ReturnType<typeof layerSelectActions.setSearchFilter> | ReturnType<typeof layerSelectActions.addFiltersAndActiveServices> | ReturnType<typeof layerSelectActions.layerSelectRemoveService> | ReturnType<typeof layerSelectActions.enableActiveService> | ReturnType<typeof layerSelectActions.disableActiveService> | ReturnType<typeof layerSelectActions.toggleFilter> | ReturnType<typeof layerSelectActions.enableOnlyOneFilter> | ReturnType<typeof layerSelectActions.setActiveLayerInfo>;
@@ -1,7 +1,8 @@
1
1
  import { SagaIterator } from 'redux-saga';
2
- import { ServiceActions, serviceActions } from '../mapStore/service/reducer';
2
+ import { serviceActions, ServiceActions } from '../mapStore/service/reducer';
3
+ import { LayerSelectActions } from './reducer';
3
4
  export declare function newServiceAddedSaga(capturedAction: ServiceActions): SagaIterator;
4
- export declare function layerSelectServiceRemovedSaga(capturedAction: ServiceActions): SagaIterator;
5
+ export declare function layerSelectRemoveServiceSaga(capturedAction: LayerSelectActions): SagaIterator;
5
6
  export declare function addServiceToLocalStorageSaga({ payload, }: ReturnType<typeof serviceActions.serviceSetLayers>): void;
6
7
  export declare function removeServiceFromLocalStorageSaga({ payload, }: ReturnType<typeof serviceActions.mapStoreRemoveService>): void;
7
8
  export declare function rootSaga(): SagaIterator;
@@ -1,5 +1,5 @@
1
1
  import { AppStore } from '../../types/types';
2
- import { LayerSelectStoreType, ActiveServices, KeywordObject } from './types';
2
+ import { LayerSelectStoreType, ActiveServices, ActiveServiceObject, Filter, ActiveLayerObject } from './types';
3
3
  /**
4
4
  * Returns search filter string
5
5
  *
@@ -38,6 +38,15 @@ export declare const getActiveServices: ((state: {
38
38
  }> & {
39
39
  clearCache: () => void;
40
40
  };
41
+ /**
42
+ * Returns active services by id
43
+ *
44
+ * Example getActiveServices(store, 'server-id');
45
+ * @param {object} store store: object - store object
46
+ * @param {serverId} serverId serverId: string - active server id
47
+ * @returns {object} returnType: object of active service
48
+ */
49
+ export declare const getActiveServiceById: (store: AppStore, serviceId: string) => ActiveServiceObject;
41
50
  /**
42
51
  * Returns all ids of enabled services
43
52
  *
@@ -64,7 +73,7 @@ export declare const getEnabledServiceIds: ((state: {
64
73
  * @param {object} store store: object - store object
65
74
  * @returns {array} returnType: array of keyword ids that are checked
66
75
  */
67
- export declare const getCheckedKeywordIds: ((state: {
76
+ export declare const getCheckedFilterIds: ((state: {
68
77
  syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
69
78
  ui?: import("../ui/types").UIStoreType;
70
79
  webmap?: import("../mapStore/types").WebMapState;
@@ -83,7 +92,7 @@ export declare const getCheckedKeywordIds: ((state: {
83
92
  * @param {object} store store: object - store object
84
93
  * @returns {array} returnType: array of all keyword ids
85
94
  */
86
- export declare const getAllKeywordIds: ((state: {
95
+ export declare const getAllFilterIds: ((state: {
87
96
  syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
88
97
  ui?: import("../ui/types").UIStoreType;
89
98
  webmap?: import("../mapStore/types").WebMapState;
@@ -95,6 +104,25 @@ export declare const getAllKeywordIds: ((state: {
95
104
  }> & {
96
105
  clearCache: () => void;
97
106
  };
107
+ /**
108
+ * Returns all filters
109
+ *
110
+ * Example getAllFilters(store);
111
+ * @param {object} store store: object - store object
112
+ * @returns {array} returnType: array of all filters
113
+ */
114
+ export declare const getAllFilters: ((state: {
115
+ syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
116
+ ui?: import("../ui/types").UIStoreType;
117
+ webmap?: import("../mapStore/types").WebMapState;
118
+ services?: import("../mapStore/types").ServiceState;
119
+ layers?: import("../mapStore/types").LayerState;
120
+ layerSelect?: LayerSelectStoreType;
121
+ }) => Filter[]) & import("reselect").OutputSelectorFields<(args_0: LayerSelectStoreType) => Filter[] & {
122
+ clearCache: () => void;
123
+ }> & {
124
+ clearCache: () => void;
125
+ };
98
126
  /**
99
127
  * Returns if all keywords are checked
100
128
  *
@@ -102,7 +130,7 @@ export declare const getAllKeywordIds: ((state: {
102
130
  * @param {object} store store: object - store object
103
131
  * @returns {array} returnType: boolean if all keywords are checked
104
132
  */
105
- export declare const isAllKeywordsChecked: ((state: {
133
+ export declare const isAllFiltersChecked: ((state: {
106
134
  syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
107
135
  ui?: import("../ui/types").UIStoreType;
108
136
  webmap?: import("../mapStore/types").WebMapState;
@@ -119,7 +147,26 @@ export declare const isAllKeywordsChecked: ((state: {
119
147
  *
120
148
  * Example: keywordObject = getKeywordObjectById(store, 'keywordId')
121
149
  * @param {object} store object from which the keyword state will be extracted
122
- * @param {string} keywordId Id of the keyword
150
+ * @param {string} filterId Id of the keyword
123
151
  * @returns {object} object containing keyword information (id, amount, amountVisible, checked)
124
152
  */
125
- export declare const getKeywordObjectById: (store: AppStore, keywordId: string) => KeywordObject;
153
+ export declare const getFilterById: (store: AppStore, filterId: string) => Filter;
154
+ /**
155
+ * Returns the active layer info
156
+ *
157
+ * Example getActiveLayerInfo(store);
158
+ * @param {object} store store: object - store object
159
+ * @returns {object} returnType: ActiveLayerObject
160
+ */
161
+ export declare const getActiveLayerInfo: ((state: {
162
+ syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
163
+ ui?: import("../ui/types").UIStoreType;
164
+ webmap?: import("../mapStore/types").WebMapState;
165
+ services?: import("../mapStore/types").ServiceState;
166
+ layers?: import("../mapStore/types").LayerState;
167
+ layerSelect?: LayerSelectStoreType;
168
+ }) => ActiveLayerObject) & import("reselect").OutputSelectorFields<(args_0: LayerSelectStoreType) => ActiveLayerObject & {
169
+ clearCache: () => void;
170
+ }> & {
171
+ clearCache: () => void;
172
+ };
@@ -1,8 +1,14 @@
1
+ import { ServiceLayer } from '../mapStore/types';
2
+ export interface ActiveLayerObject extends ServiceLayer {
3
+ serviceName: string;
4
+ }
1
5
  export interface ActiveServiceObject {
6
+ serviceId?: string;
2
7
  serviceName?: string;
3
8
  serviceUrl?: string;
9
+ abstract?: string;
4
10
  enabled?: boolean;
5
- keywordsPerService?: string[];
11
+ filterIds?: string[];
6
12
  isUserAddedService?: boolean;
7
13
  }
8
14
  export interface ActiveServices {
@@ -12,17 +18,19 @@ export interface ActiveServiceType {
12
18
  byId: ActiveServices;
13
19
  allIds: string[];
14
20
  }
15
- export interface KeywordObject {
16
- id?: string;
21
+ export interface Filter {
22
+ id: string;
23
+ name: string;
17
24
  amount?: number;
18
25
  amountVisible?: number;
19
26
  checked?: boolean;
27
+ type: 'keyword' | 'group';
20
28
  }
21
- export interface Keywords {
22
- [key: string]: KeywordObject;
29
+ export interface FiltersById {
30
+ [key: string]: Filter;
23
31
  }
24
- export interface KeywordType {
25
- byId: Keywords;
32
+ export interface Filters {
33
+ byId: FiltersById;
26
34
  allIds: string[];
27
35
  }
28
36
  export interface LayerSelectModuleState {
@@ -30,36 +38,47 @@ export interface LayerSelectModuleState {
30
38
  }
31
39
  export interface LayerSelectStoreType {
32
40
  filters: FiltersType;
41
+ allServicesEnabled: boolean;
42
+ activeLayerInfo: ActiveLayerObject;
33
43
  }
34
44
  export interface FiltersType {
35
45
  searchFilter: string;
36
46
  activeServices: ActiveServiceType;
37
- keywords: KeywordType;
47
+ filters: Filters;
38
48
  }
39
49
  export interface SetSearchFilterPayload {
40
50
  filterText: string;
41
51
  }
52
+ export interface SetAllServicesEnabledPayload {
53
+ allServicesEnabled: boolean;
54
+ }
42
55
  export interface EnableActiveServicePayload {
43
56
  serviceId: string;
44
- keywords: string[];
57
+ filters: string[];
45
58
  }
46
59
  export interface DisableActiveServicePayload {
47
60
  serviceId: string;
48
- keywords: string[];
61
+ filters: string[];
49
62
  }
50
63
  export interface AddKeywordsAndActiveServicesPayload {
51
64
  serviceId: string;
52
65
  serviceName: string;
53
66
  serviceUrl: string;
67
+ abstract?: string;
54
68
  keywords: string[];
55
69
  isUserAddedService: boolean;
70
+ groups: string[];
56
71
  }
57
- export interface LayerSelectServiceRemovedPayload {
72
+ export interface LayerSelectRemoveServicePayload {
58
73
  serviceId: string;
74
+ serviceUrl?: string;
59
75
  }
60
76
  export interface ToggleKeywordsPayload {
61
- keywords: string[];
77
+ filterIds: string[];
62
78
  }
63
79
  export interface EnableOnlyOneKeywordPayload {
64
- keyword: string;
80
+ filterId: string;
81
+ }
82
+ export interface SetActiveLayerInfoPayload {
83
+ layer: ActiveLayerObject;
65
84
  }
@@ -1,4 +1,4 @@
1
- import { Style } from '@opengeoweb/webmap';
1
+ import { Dimension, GeographicBoundingBox, Style } from '@opengeoweb/webmap';
2
2
  export interface Services {
3
3
  [key: string]: ReduxService;
4
4
  }
@@ -20,6 +20,8 @@ export interface ServiceLayer {
20
20
  abstract?: string;
21
21
  keywords?: string[];
22
22
  styles?: Style[];
23
+ dimensions?: Dimension[];
24
+ geographicBoundingBox?: GeographicBoundingBox;
23
25
  }
24
26
  export interface ServiceState {
25
27
  byId: Services;
@@ -29,6 +31,7 @@ export interface SetLayersForServicePayload {
29
31
  id: string;
30
32
  name: string;
31
33
  serviceUrl: string;
34
+ abstract?: string;
32
35
  layers: ServiceLayer[];
33
36
  isUserAddedService: boolean;
34
37
  }
@@ -1,6 +1,9 @@
1
1
  import { MapActionOrigin } from '../mapStore/types';
2
2
  declare type LegendDialogType = string;
3
- export declare type DialogType = 'layerManager' | 'layerSelect' | 'dimensionSelect-elevation' | 'dimensionSelect-ensemble_member' | 'keywordFilter' | 'timeSeriesManager' | 'timeSeriesSelect' | 'syncGroups' | LegendDialogType;
3
+ export declare enum DialogTypes {
4
+ LayerInfo = "layerInfo"
5
+ }
6
+ export declare type DialogType = 'layerManager' | 'layerSelect' | DialogTypes.LayerInfo | 'dimensionSelect-elevation' | 'dimensionSelect-ensemble_member' | 'keywordFilter' | 'timeSeriesManager' | 'timeSeriesSelect' | 'syncGroups' | LegendDialogType;
4
7
  export declare type Source = 'app' | 'module';
5
8
  export interface UIType {
6
9
  type: DialogType;
@@ -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.1.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,27 +13,27 @@
13
13
  "dependencies": {},
14
14
  "peerDependencies": {
15
15
  "react": "^17.0.2",
16
- "@opengeoweb/theme": "4.1.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
20
  "react-intl": "^5.17.5",
21
21
  "lodash": "^4.17.20",
22
- "@opengeoweb/shared": "4.1.0",
22
+ "@opengeoweb/shared": "4.2.0",
23
23
  "react-draggable": "^4.4.3",
24
24
  "re-resizable": "^6.9.0",
25
- "@opengeoweb/form-fields": "4.1.0",
25
+ "@opengeoweb/form-fields": "4.2.0",
26
26
  "react-hook-form": "^6.12.1",
27
27
  "moment-timezone": "^0.5.31",
28
28
  "@mui/lab": "^5.0.0-alpha.64",
29
29
  "axios": "^0.25.0",
30
- "@opengeoweb/webmap": "4.1.0",
30
+ "@opengeoweb/webmap": "4.2.0",
31
31
  "throttle-debounce": "^3.0.1",
32
32
  "proj4": "^2.6.2",
33
33
  "react-sortablejs": "^6.0.0",
34
34
  "react-window": "^1.8.7",
35
- "immer": "^9.0.15",
36
35
  "redux-dynamic-modules": "^5.2.0",
36
+ "immer": "^9.0.15",
37
37
  "@reduxjs/toolkit": "^1.8.3",
38
38
  "lodash.clonedeep": "^4.5.0",
39
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;