@opengeoweb/core 4.1.0 → 4.3.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 (101) hide show
  1. package/index.esm.js +2842 -2111
  2. package/index.umd.js +2852 -2120
  3. package/lib/components/CanvasComponent/CanvasComponent.d.ts +1 -0
  4. package/lib/components/LayerManager/LayerManager.d.ts +13 -0
  5. package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResults.d.ts +4 -4
  6. package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResults.stories.d.ts +12 -0
  7. package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsConnect.d.ts +0 -1
  8. package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsListItem.d.ts +5 -5
  9. package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsListItemConnect.d.ts +3 -2
  10. package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoButtonConnect.d.ts +11 -0
  11. package/lib/components/LayerManager/LayerSelect/{LayerSelectUtils.spec.d.ts → LayerInfo/LayerInfoButtonConnect.spec.d.ts} +0 -0
  12. package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoDialog.d.ts +14 -0
  13. package/lib/components/{TimeSlider/TimeSliderScaleSlider/TimeSliderScaleSlider.spec.d.ts → LayerManager/LayerSelect/LayerInfo/LayerInfoDialog.spec.d.ts} +0 -0
  14. package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoDialog.stories.d.ts +25 -0
  15. package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoDialogConnect.d.ts +3 -0
  16. package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoLegend.d.ts +10 -0
  17. package/lib/components/{TimeSlider/TimeSliderScaleSlider/TimeSliderScaleSliderConnect.spec.d.ts → LayerManager/LayerSelect/LayerInfo/LayerInfoLegend.spec.d.ts} +0 -0
  18. package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoList.d.ts +12 -0
  19. package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoText.d.ts +16 -0
  20. package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoUtils.d.ts +10 -0
  21. package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoUtils.spec.d.ts +1 -0
  22. package/lib/components/LayerManager/LayerSelect/LayerInfo/index.d.ts +2 -0
  23. package/lib/components/LayerManager/LayerSelect/LayerList/LayerList.d.ts +7 -6
  24. package/lib/components/LayerManager/LayerSelect/LayerList/LayerListConnect.d.ts +2 -0
  25. package/lib/components/LayerManager/LayerSelect/LayerList/LayerListDimensions.d.ts +7 -0
  26. package/lib/components/LayerManager/LayerSelect/LayerList/LayerListRow.d.ts +2 -1
  27. package/lib/components/LayerManager/LayerSelect/LayerList/LayerListUtils.d.ts +1 -1
  28. package/lib/components/LayerManager/LayerSelect/LayerSelect.d.ts +4 -0
  29. package/lib/components/LayerManager/LayerSelect/LayerSelect.stories.d.ts +8 -0
  30. package/lib/components/LayerManager/LayerSelect/LayerSelectConnect.d.ts +0 -2
  31. package/lib/components/LayerManager/LayerSelect/LayerSelectUtils.d.ts +75 -4
  32. package/lib/components/LayerManager/LayerSelect/SearchField/SearchFieldButtonContainer.d.ts +1 -0
  33. package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChipConnect.d.ts +2 -1
  34. package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceList.d.ts +1 -1
  35. package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceListConnect.d.ts +3 -1
  36. package/lib/components/LayerManager/LayerSelect/ServiceOptionsButton/ServiceOptionsButton.d.ts +4 -1
  37. package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.d.ts +13 -3
  38. package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.stories.d.ts +12 -0
  39. package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialogConnect.d.ts +6 -1
  40. package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopup.d.ts +11 -5
  41. package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopup.stories.d.ts +39 -7
  42. package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopupConnect.d.ts +2 -1
  43. package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopupConnect.stories.d.ts +9 -0
  44. package/lib/components/LayerManager/LayerSelect/ServicePopup/utils.d.ts +8 -0
  45. package/lib/components/LayerManager/LayerSelect/ServicePopup/utils.spec.d.ts +1 -0
  46. package/lib/components/LayerManager/useFetchServices.d.ts +4 -0
  47. package/lib/components/LayerManager/useFetchServices.spec.d.ts +1 -0
  48. package/lib/components/Legend/LegendLayout.d.ts +13 -0
  49. package/lib/components/Legend/LegendLayout.spec.d.ts +1 -0
  50. package/lib/components/MapControls/MapControlButton.d.ts +1 -1
  51. package/lib/components/MultiMapDimensionSelect/DimensionSelectDialogConnect.d.ts +1 -1
  52. package/lib/components/ReactMapView/ReactMapView.d.ts +2 -1
  53. package/lib/components/ReactMapView/ReactMapViewParseLayer.d.ts +2 -2
  54. package/lib/components/ReactMapView/types.d.ts +2 -1
  55. package/lib/components/Snackbar/SnackbarWrapperConnect.spec.d.ts +7 -0
  56. package/lib/components/TimeSlider/TimeSlider.d.ts +0 -1
  57. package/lib/components/TimeSlider/TimeSliderButtons/NowButton/NowButton.d.ts +8 -0
  58. package/lib/components/TimeSlider/TimeSliderButtons/NowButton/NowButton.spec.d.ts +1 -0
  59. package/lib/components/TimeSlider/TimeSliderButtons/NowButton/NowButtonConnect.d.ts +9 -0
  60. package/lib/components/TimeSlider/TimeSliderButtons/NowButton/NowButtonConnect.spec.d.ts +1 -0
  61. package/lib/components/TimeSlider/TimeSliderButtons/OptionsMenuButton/OptionsMenuButton.d.ts +2 -0
  62. package/lib/components/TimeSlider/TimeSliderButtons/OptionsMenuButton/OptionsMenuButtonConnect.d.ts +1 -0
  63. package/lib/components/TimeSlider/TimeSliderButtons/SpeedButton/SpeedButton.d.ts +1 -1
  64. package/lib/components/TimeSlider/TimeSliderButtons/SpeedButton/SpeedButtonConnect.d.ts +1 -5
  65. package/lib/components/TimeSlider/TimeSliderButtons/TimeScaleButton/TimeScaleButton.d.ts +11 -0
  66. package/lib/components/TimeSlider/TimeSliderButtons/TimeScaleButton/TimeScaleButton.spec.d.ts +1 -0
  67. package/lib/components/TimeSlider/TimeSliderButtons/TimeScaleButton/TimeScaleButtonConnect.d.ts +4 -0
  68. package/lib/components/TimeSlider/TimeSliderButtons/TimeScaleButton/TimeScaleButtonConnect.spec.d.ts +1 -0
  69. package/lib/components/TimeSlider/TimeSliderButtons/TimeSliderButtons.stories.d.ts +6 -0
  70. package/lib/components/TimeSlider/TimeSliderButtons/TimeSliderButtonsConnect.d.ts +1 -0
  71. package/lib/components/TimeSlider/TimeSliderButtons/TimeSliderMenu/TimeSliderMenu.d.ts +18 -0
  72. package/lib/components/TimeSlider/TimeSliderButtons/TimeSliderMenu/TimeSliderMenu.spec.d.ts +1 -0
  73. package/lib/components/TimeSlider/TimeSliderButtons/TimeSliderMenu/TimeSliderMenu.stories.d.ts +24 -0
  74. package/lib/components/TimeSlider/TimeSliderButtons/TimeStepButton/TimeStepButton.d.ts +1 -1
  75. package/lib/components/TimeSlider/TimeSliderButtons/TimeStepButton/TimeStepButton.stories.d.ts +18 -3
  76. package/lib/components/TimeSlider/TimeSliderLegend/TimeSliderLegend.d.ts +1 -0
  77. package/lib/components/TimeSlider/TimeSliderUtils.d.ts +5 -0
  78. package/lib/components/WMSLoader/services.d.ts +3 -1
  79. package/lib/hooks/index.d.ts +1 -0
  80. package/lib/hooks/useSetupDialog/index.d.ts +1 -0
  81. package/lib/hooks/useSetupDialog/useSetupDialog.d.ts +9 -0
  82. package/lib/hooks/useSetupDialog/useSetupDialog.spec.d.ts +1 -0
  83. package/lib/index.d.ts +1 -0
  84. package/lib/store/generic/synchronizationGroups/selectors.d.ts +2 -2
  85. package/lib/store/layerSelect/reducer.d.ts +8 -5
  86. package/lib/store/layerSelect/sagas.d.ts +3 -2
  87. package/lib/store/layerSelect/selectors.d.ts +71 -6
  88. package/lib/store/layerSelect/types.d.ts +34 -15
  89. package/lib/store/mapStore/map/sagas.d.ts +1 -1
  90. package/lib/store/mapStore/service/selectors.d.ts +0 -27
  91. package/lib/store/mapStore/service/types.d.ts +13 -3
  92. package/lib/store/ui/selectors.d.ts +5 -5
  93. package/lib/store/ui/types.d.ts +12 -1
  94. package/lib/store/utils.d.ts +2 -0
  95. package/lib/utils/__mocks__/getCapabilities.d.ts +2 -14
  96. package/lib/utils/defaultTestSettings.d.ts +3 -0
  97. package/lib/utils/getCapabilities.d.ts +4 -1
  98. package/package.json +11 -10
  99. package/lib/components/TimeSlider/TimeSliderScaleSlider/TimeSliderScaleSlider.d.ts +0 -12
  100. package/lib/components/TimeSlider/TimeSliderScaleSlider/TimeSliderScaleSlider.stories.d.ts +0 -13
  101. package/lib/components/TimeSlider/TimeSliderScaleSlider/TimeSliderScaleSliderConnect.d.ts +0 -24
@@ -1,9 +1,15 @@
1
+ import { ServiceLayer, ServiceScope } 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[];
6
- isUserAddedService?: boolean;
11
+ filterIds?: string[];
12
+ scope?: ServiceScope;
7
13
  }
8
14
  export interface ActiveServices {
9
15
  [key: string]: ActiveServiceObject;
@@ -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
- isUserAddedService: boolean;
69
+ scope: ServiceScope;
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
  }
@@ -9,7 +9,7 @@ export declare const generateTimeList: (start: Moment, end: Moment, interval: nu
9
9
  name: string;
10
10
  value: string;
11
11
  }[];
12
- export declare function updateMapDraw(mapId: string, draw: unknown): void;
12
+ export declare function updateMapDraw(mapId: string, draw: any): void;
13
13
  export declare function startAnimationSaga({ payload, }: ReturnType<typeof mapActions.mapStartAnimation>): Generator;
14
14
  export declare function stopAnimationSaga({ payload, }: ReturnType<typeof mapActions.mapStopAnimation>): Generator;
15
15
  export declare function deleteLayerSaga({ payload, }: ReturnType<typeof layerActions.layerDelete>): SagaIterator;
@@ -119,30 +119,3 @@ export declare const getLayerStyles: ((state: {
119
119
  }> & {
120
120
  clearCache: () => void;
121
121
  };
122
- /**
123
- * Gets services and maps them into an array
124
- *
125
- * Example: services = getServices(store)
126
- * @param {object} store store: object - Store object
127
- * @returns {array} returnType: [] - array containing services
128
- */
129
- export declare const getServicesInArray: ((state: {
130
- syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
131
- ui?: import("../../ui/types").UIStoreType;
132
- webmap?: import("../types").WebMapState;
133
- services?: ServiceState;
134
- layers?: import("../types").LayerState;
135
- layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
136
- }) => {
137
- name: string;
138
- serviceUrl: string;
139
- isUserAddedService: boolean;
140
- }[]) & import("reselect").OutputSelectorFields<((args_0: ServiceState) => {
141
- name: string;
142
- serviceUrl: string;
143
- isUserAddedService: boolean;
144
- }[]) & {
145
- clearCache: () => void;
146
- }> & {
147
- clearCache: () => void;
148
- };
@@ -1,13 +1,14 @@
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
  }
5
+ export declare type ServiceScope = 'user' | 'system';
5
6
  export interface ReduxService {
6
7
  name?: string;
7
8
  serviceUrl?: string;
8
9
  active?: boolean;
9
10
  layers?: ServiceLayer[];
10
- isUserAddedService?: boolean;
11
+ scope?: ServiceScope;
11
12
  }
12
13
  /**
13
14
  * Used in the services object of webmap to keep a list of available layers in the service
@@ -20,6 +21,8 @@ export interface ServiceLayer {
20
21
  abstract?: string;
21
22
  keywords?: string[];
22
23
  styles?: Style[];
24
+ dimensions?: Dimension[];
25
+ geographicBoundingBox?: GeographicBoundingBox;
23
26
  }
24
27
  export interface ServiceState {
25
28
  byId: Services;
@@ -29,10 +32,17 @@ export interface SetLayersForServicePayload {
29
32
  id: string;
30
33
  name: string;
31
34
  serviceUrl: string;
35
+ abstract?: string;
32
36
  layers: ServiceLayer[];
33
- isUserAddedService: boolean;
37
+ scope: ServiceScope;
34
38
  }
35
39
  export interface MapStoreRemoveServicePayload {
36
40
  id: string;
37
41
  serviceUrl: string;
38
42
  }
43
+ export interface ServiceFilterSettings {
44
+ enabledServiceIds: string[];
45
+ searchString: string;
46
+ checkedFilterIds: string[];
47
+ allFiltersActive: boolean;
48
+ }
@@ -6,7 +6,7 @@ export declare const getUiStore: (store: AppStore) => UIStoreType;
6
6
  *
7
7
  * Example: getDialogDetailsByType(store, 'legend')
8
8
  * @param {object} store store object from which the ui state wll be extracted
9
- * @param {string} dialogType type of the dialog 'legend' | 'layerManager' | 'dimensionSelect-elevation'
9
+ * @param {string} dialogType type of the dialog
10
10
  * @returns {array} [string, boolean] first element gives the active map id, second element whether the dialog is open
11
11
  */
12
12
  export declare const getDialogDetailsByType: (store: AppStore, dialogType: string) => UIType;
@@ -14,7 +14,7 @@ export declare const getDialogDetailsByType: (store: AppStore, dialogType: strin
14
14
  * For a given ui component: gets wether the dialog is open or closed
15
15
  *
16
16
  * @param {object} store store object from which the ui state wll be extracted
17
- * @param {string} dialogType type of the dialog 'legend' | 'layerManager' | 'dimensionSelect-elevation'
17
+ * @param {string} dialogType type of the dialog
18
18
  * @returns {boolean} returnType: boolean
19
19
  */
20
20
  export declare const getisDialogOpen: ((state: {
@@ -33,7 +33,7 @@ export declare const getisDialogOpen: ((state: {
33
33
  *For a given ui component: gets the active map Id
34
34
  *
35
35
  * @param {object} store store object from which the ui state wll be extracted
36
- * @param {string} dialogType type of the dialog 'legend' | 'layerManager' | 'dimensionSelect-elevation'
36
+ * @param {string} dialogType type of the dialog
37
37
  * @returns {string} returnType: string - the active map id
38
38
  */
39
39
  export declare const getDialogMapId: ((state: {
@@ -52,7 +52,7 @@ export declare const getDialogMapId: ((state: {
52
52
  *For a given ui component: gets the order of visible dialog
53
53
  *
54
54
  * @param {object} store store object from which the ui state wll be extracted
55
- * @param {DialogType} dialogType type of the dialog 'legend' | 'layerManager' | 'dimensionSelect-elevation' | dimensionSelect-ensemble_member
55
+ * @param {DialogType} dialogType type of the dialog
56
56
  * @returns {number} the higher the order number the higher the zIndex
57
57
  */
58
58
  export declare const getDialogOrder: ((state: {
@@ -71,7 +71,7 @@ export declare const getDialogOrder: ((state: {
71
71
  *For a given ui component: returns if ordered on top
72
72
  *
73
73
  * @param {object} store store object from which the ui state wll be extracted
74
- * @param {DialogType} dialogType type of the dialog 'legend' | 'layerManager' | 'dimensionSelect-elevation' | dimensionSelect-ensemble_member
74
+ * @param {DialogType} dialogType type of the dialog
75
75
  * @returns {boolean}
76
76
  */
77
77
  export declare const getDialogIsOrderedOnTop: ((state: {
@@ -1,6 +1,17 @@
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
+ SyncGroups = "syncGroups",
6
+ TimeSeriesSelect = "timeSeriesSelect",
7
+ TimeSeriesManager = "timeSeriesManager",
8
+ KeywordFilter = "keywordFilter",
9
+ DimensionSelectEnsembleMember = "dimensionSelect-ensemble_member",
10
+ DimensionSelectElevation = "dimensionSelect-elevation",
11
+ LayerManager = "layerManager",
12
+ LayerSelect = "layerSelect"
13
+ }
14
+ export declare type DialogType = DialogTypes | LegendDialogType;
4
15
  export declare type Source = 'app' | 'module';
5
16
  export interface UIType {
6
17
  type: DialogType;
@@ -1,6 +1,8 @@
1
+ import { ServiceScope } from './mapStore/types';
1
2
  export declare const selectorMemoizationOptions: {
2
3
  memoizeOptions: {
3
4
  maxSize: number;
4
5
  resultEqualityCheck: (value: any, other: any) => boolean;
5
6
  };
6
7
  };
8
+ export declare const isUserAddedService: (scope: ServiceScope) => boolean;
@@ -30,20 +30,8 @@ export declare const mockLayersWithChildren: {
30
30
  children: any[];
31
31
  }[];
32
32
  };
33
- export declare const mockLayersWithNoTitle: {
34
- leaf: boolean;
35
- name: string;
36
- title: any;
37
- path: any[];
38
- children: any[];
39
- };
40
- export declare const mockLayersWithNoTitleOrName: {
41
- leaf: boolean;
42
- name: any;
43
- title: any;
44
- path: any[];
45
- children: any[];
46
- };
33
+ export declare const mockLayersWithNoTitle: LayerTree;
34
+ export declare const mockLayersWithNoTitleOrName: LayerTree;
47
35
  export declare const mockLayersWithSubcategory: {
48
36
  leaf: boolean;
49
37
  name: any;
@@ -1,5 +1,6 @@
1
1
  import { LayerOptions, Style, WMLayer } from '@opengeoweb/webmap';
2
2
  import { Service } from '../components/WMSLoader/services';
3
+ import { ActiveLayerObject } from '../store/layerSelect/types';
3
4
  import { Layer, LayerType, Services } from '../store/mapStore/types';
4
5
  export declare const defaultReduxLayerRadarColor: {
5
6
  service: string;
@@ -24,6 +25,8 @@ export declare const makeGeoservicesRadarLayer: () => WMLayer;
24
25
  export declare const styleListForRADNL25PCPCMLayer: Style[];
25
26
  export declare const styleListForRADNLOPERR25PCPRRL3KNMILayer: Style[];
26
27
  export declare const defaultReduxServices: Services;
28
+ export declare const defaultReduxActiveLayers: ActiveLayerObject[];
29
+ export declare const defaultReduxActiveLayersWithoutOptionalVariables: ActiveLayerObject[];
27
30
  export declare const multiDimensionLayer: Layer;
28
31
  export declare const flDimensionLayer: Layer;
29
32
  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.3.0",
4
4
  "description": "GeoWeb Core library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -13,27 +13,28 @@
13
13
  "dependencies": {},
14
14
  "peerDependencies": {
15
15
  "react": "^17.0.2",
16
- "@opengeoweb/theme": "4.1.0",
17
- "@mui/material": "^5.2.8",
16
+ "@opengeoweb/theme": "4.3.0",
17
+ "@mui/material": "^5.10.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",
23
- "react-draggable": "^4.4.3",
22
+ "@opengeoweb/shared": "4.3.0",
23
+ "react-draggable": "^4.4.5",
24
24
  "re-resizable": "^6.9.0",
25
- "@opengeoweb/form-fields": "4.1.0",
25
+ "@opengeoweb/form-fields": "4.3.0",
26
26
  "react-hook-form": "^6.12.1",
27
27
  "moment-timezone": "^0.5.31",
28
- "@mui/lab": "^5.0.0-alpha.64",
28
+ "@mui/x-date-pickers": "^5.0.4",
29
29
  "axios": "^0.25.0",
30
- "@opengeoweb/webmap": "4.1.0",
30
+ "@opengeoweb/webmap": "4.3.0",
31
31
  "throttle-debounce": "^3.0.1",
32
32
  "proj4": "^2.6.2",
33
- "react-sortablejs": "^6.0.0",
33
+ "react-sortablejs": "^6.1.4",
34
+ "sortablejs": "^1.15.0",
34
35
  "react-window": "^1.8.7",
35
- "immer": "^9.0.15",
36
36
  "redux-dynamic-modules": "^5.2.0",
37
+ "immer": "^9.0.15",
37
38
  "@reduxjs/toolkit": "^1.8.3",
38
39
  "lodash.clonedeep": "^4.5.0",
39
40
  "@turf/turf": "^5.1.6",
@@ -1,12 +0,0 @@
1
- import * as React from 'react';
2
- import { Layer, Scale } from '../../../store/mapStore/types';
3
- interface TimeSliderScaleSliderProps {
4
- layers?: Layer[];
5
- timeSliderScale: Scale;
6
- centerTime: number;
7
- secondsPerPx: number;
8
- selectedTime: number;
9
- onChangeTimeSliderScale: (scale: number, newCenterTime: number, dataScalePerPx: number) => void;
10
- }
11
- declare const TimeSliderScaleSlider: React.FC<TimeSliderScaleSliderProps>;
12
- export default TimeSliderScaleSlider;
@@ -1,13 +0,0 @@
1
- import * as React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const TimeSliderScaleLightDemo: {
7
- (): React.ReactElement;
8
- storyName: string;
9
- };
10
- export declare const TimeSliderScaleDarkDemo: {
11
- (): React.ReactElement;
12
- storyName: string;
13
- };
@@ -1,24 +0,0 @@
1
- import * as React from 'react';
2
- import { mapActions } from '../../../store';
3
- import { Layer, Dimension, Scale } from '../../../store/mapStore/types';
4
- export interface ConnectedScaleSliderProps {
5
- timeSliderScale?: Scale;
6
- mapId: string;
7
- layers?: Layer[];
8
- centerTime?: number;
9
- secondsPerPx?: number;
10
- dimensions?: Dimension[];
11
- mapSetTimeSliderScale?: typeof mapActions.setTimeSliderScale;
12
- mapSetTimeSliderDataScaleToSecondsPerPx?: typeof mapActions.setTimeSliderDataScaleToSecondsPerPx;
13
- mapSetTimeSliderCenterTime?: typeof mapActions.setTimeSliderCenterTime;
14
- }
15
- /**
16
- * TimeSliderScaleSlider component connected to the store displaying a scale slider of the time slider
17
- *
18
- * Expects the following props:
19
- * @param {string} mapId mapId: string - Id of the map
20
- * @example
21
- * ``` <TimeSliderScaleSliderConnect mapId={mapId} />```
22
- */
23
- declare const TimeSliderScaleSliderConnect: import("react-redux").ConnectedComponent<React.FC<ConnectedScaleSliderProps>, Omit<ConnectedScaleSliderProps, "layers" | "timeSliderScale" | "centerTime" | "secondsPerPx" | "dimensions" | "mapSetTimeSliderScale" | "mapSetTimeSliderDataScaleToSecondsPerPx" | "mapSetTimeSliderCenterTime"> & ConnectedScaleSliderProps & import("react-redux").ConnectProps>;
24
- export default TimeSliderScaleSliderConnect;