@opengeoweb/core 2.7.0 → 2.10.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 (110) hide show
  1. package/index.esm.js +5781 -7109
  2. package/index.umd.js +21254 -22471
  3. package/lib/components/ComponentsLookUp/componentsLookUp.d.ts +2 -3
  4. package/lib/components/{ConfigurableConnectedMap/ConfigurableConnectedMap.d.ts → ConfigurableMap/ConfigurableMapConnect.d.ts} +10 -11
  5. package/lib/components/{ConfigurableConnectedMap/ConfigurableConnectedMap.spec.d.ts → ConfigurableMap/ConfigurableMapConnect.spec.d.ts} +0 -0
  6. package/lib/components/ConfigurableMap/ConfigurableMapConnect.stories.d.ts +7 -0
  7. package/lib/components/ConfigurableMap/index.d.ts +1 -0
  8. package/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelect.d.ts +2 -2
  9. package/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelectConnect.d.ts +1 -0
  10. package/lib/components/LayerManager/LayerContainerRow/LayerRow/EnableLayer/EnableLayerConnect.d.ts +1 -0
  11. package/lib/components/LayerManager/LayerContainerRow/LayerRow/OpacitySelect/OpacitySelectConnect.d.ts +1 -0
  12. package/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderLayers/RenderLayersConnect.d.ts +1 -0
  13. package/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderStyles/RenderStylesConnect.d.ts +1 -0
  14. package/lib/components/LayerManager/LayerManager.d.ts +2 -0
  15. package/lib/components/LayerManager/LayerManager.stories.d.ts +9 -0
  16. package/lib/components/LayerManager/LayerSelect/LayerList/LayerAddRemoveButton.d.ts +3 -3
  17. package/lib/components/LayerManager/LayerSelect/LayerList/LayerList.d.ts +2 -2
  18. package/lib/components/LayerManager/LayerSelect/LayerList/LayerListRow.d.ts +3 -3
  19. package/lib/components/LayerManager/LayerSelect/LayerList/LayerListUtils.d.ts +1 -2
  20. package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChip.d.ts +4 -3
  21. package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChipConnect.d.ts +5 -3
  22. package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceList.d.ts +1 -3
  23. package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.d.ts +3 -2
  24. package/lib/components/Legend/LegendConnect.d.ts +2 -0
  25. package/lib/components/Legend/LegendMapButtonConnect.d.ts +1 -0
  26. package/lib/components/MultiMapView/HarmoniePresets/HarmonieTempAndPrecipPreset.d.ts +1 -0
  27. package/lib/components/MultiMapView/ModelRunInterval/ModelRunInterval.d.ts +2 -1
  28. package/lib/components/MultiMapView/MultiMapViewConnect.d.ts +3 -3
  29. package/lib/components/Providers/Providers.d.ts +1 -1
  30. package/lib/components/ReactMapView/AdagucMapDraw.d.ts +1 -1
  31. package/lib/components/ReactMapView/AdagucMapDrawTools.d.ts +1 -1
  32. package/lib/components/ReactMapView/ReactMapViewParseLayer.d.ts +0 -1
  33. package/lib/components/SyncGroups/selector.d.ts +0 -1
  34. package/lib/components/TimeSlider/TimeSlider.d.ts +2 -1
  35. package/lib/components/TimeSlider/TimeSliderLegend/TimeSliderLegend.d.ts +2 -1
  36. package/lib/components/TimeSlider/TimeSliderRail/TimeSliderRail.d.ts +2 -1
  37. package/lib/index.d.ts +7 -9
  38. package/lib/store/generic/actions.d.ts +3 -4
  39. package/lib/store/generic/index.d.ts +2 -0
  40. package/lib/store/generic/sagas.d.ts +10 -9
  41. package/lib/store/generic/selectors.d.ts +0 -1
  42. package/lib/store/generic/synchronizationActions/actions.d.ts +6 -5
  43. package/lib/store/generic/synchronizationActions/types.d.ts +10 -23
  44. package/lib/store/generic/synchronizationGroups/constants.d.ts +0 -8
  45. package/lib/store/generic/synchronizationGroups/index.d.ts +1 -2
  46. package/lib/store/generic/synchronizationGroups/reducer.d.ts +25 -3
  47. package/lib/store/generic/synchronizationGroups/sagas.d.ts +3 -3
  48. package/lib/store/generic/synchronizationGroups/selectors.d.ts +0 -2
  49. package/lib/store/generic/synchronizationGroups/types.d.ts +8 -38
  50. package/lib/store/generic/synchronizationGroups/utils.d.ts +0 -5
  51. package/lib/store/generic/types.d.ts +3 -12
  52. package/lib/store/index.d.ts +3 -0
  53. package/lib/store/layerSelect/reducer.d.ts +12 -2
  54. package/lib/store/layerSelect/sagas.d.ts +3 -3
  55. package/lib/store/layerSelect/selectors.d.ts +0 -6
  56. package/lib/store/layerSelect/types.d.ts +7 -35
  57. package/lib/store/mapStore/actions.d.ts +7 -3
  58. package/lib/store/mapStore/index.d.ts +1 -0
  59. package/lib/store/mapStore/layers/index.d.ts +1 -0
  60. package/lib/store/mapStore/layers/reducer.d.ts +42 -4
  61. package/lib/store/mapStore/layers/selectors.d.ts +0 -17
  62. package/lib/store/mapStore/layers/types.d.ts +24 -72
  63. package/lib/store/mapStore/map/actions.d.ts +6 -170
  64. package/lib/store/mapStore/map/reducer.d.ts +82 -4
  65. package/lib/store/mapStore/map/sagas.d.ts +13 -8
  66. package/lib/store/mapStore/map/selectors.d.ts +82 -39
  67. package/lib/store/mapStore/map/types.d.ts +26 -121
  68. package/lib/store/mapStore/map/utils.d.ts +2 -3
  69. package/lib/store/mapStore/service/reducer.d.ts +9 -4
  70. package/lib/store/mapStore/service/selectors.d.ts +0 -7
  71. package/lib/store/mapStore/service/types.d.ts +2 -12
  72. package/lib/store/mapStore/utils/helpers.d.ts +0 -1
  73. package/lib/store/ui/reducer.d.ts +20 -9
  74. package/lib/store/ui/selectors.d.ts +11 -8
  75. package/lib/store/ui/types.d.ts +6 -23
  76. package/lib/storybookUtils/defaultStorySettings.d.ts +2 -1
  77. package/lib/{store.d.ts → storybookUtils/store.d.ts} +0 -0
  78. package/lib/types/types.d.ts +1 -2
  79. package/lib/utils/jsonPresetFilter.d.ts +5 -0
  80. package/package.json +9 -9
  81. package/lib/components/ConfigurableConnectedMap/ConfigurableConnectedMap.stories.d.ts +0 -6
  82. package/lib/components/ConfigurableConnectedMap/index.d.ts +0 -1
  83. package/lib/components/ConfigurableMapWithSlider/ConfigurableMapWithSliderConnect.d.ts +0 -21
  84. package/lib/components/ConfigurableMapWithSlider/ConfigurableMapWithSliderConnect.spec.d.ts +0 -1
  85. package/lib/components/ConfigurableMapWithSlider/index.d.ts +0 -1
  86. package/lib/components/TimeSlider/TimeSliderButtons/ResetButton/ResetButton.d.ts +0 -9
  87. package/lib/components/TimeSlider/TimeSliderButtons/ResetButton/ResetButton.spec.d.ts +0 -1
  88. package/lib/components/TimeSlider/TimeSliderButtons/ResetButton/ResetButtonConnect.d.ts +0 -15
  89. package/lib/components/TimeSlider/TimeSliderButtons/ResetButton/ResetButtonConnect.spec.d.ts +0 -1
  90. package/lib/store/advancedLayerStore/actions.d.ts +0 -15
  91. package/lib/store/advancedLayerStore/config.d.ts +0 -4
  92. package/lib/store/advancedLayerStore/constants.d.ts +0 -2
  93. package/lib/store/advancedLayerStore/reducer.d.ts +0 -14
  94. package/lib/store/advancedLayerStore/reducer.spec.d.ts +0 -1
  95. package/lib/store/advancedLayerStore/selectors.d.ts +0 -21
  96. package/lib/store/advancedLayerStore/selectors.spec.d.ts +0 -1
  97. package/lib/store/advancedLayerStore/types.d.ts +0 -30
  98. package/lib/store/generic/constants.d.ts +0 -2
  99. package/lib/store/generic/synchronizationActions/constants.d.ts +0 -3
  100. package/lib/store/generic/synchronizationGroups/actions.d.ts +0 -80
  101. package/lib/store/layerSelect/actions.d.ts +0 -26
  102. package/lib/store/layerSelect/constants.d.ts +0 -7
  103. package/lib/store/mapStore/constants.d.ts +0 -3
  104. package/lib/store/mapStore/layers/actions.d.ts +0 -134
  105. package/lib/store/mapStore/layers/constants.d.ts +0 -17
  106. package/lib/store/mapStore/map/constants.d.ts +0 -26
  107. package/lib/store/mapStore/service/actions.d.ts +0 -15
  108. package/lib/store/mapStore/service/constants.d.ts +0 -2
  109. package/lib/store/ui/actions.d.ts +0 -36
  110. package/lib/store/ui/constants.d.ts +0 -5
@@ -1,5 +1,10 @@
1
- import { ServiceActions } from '../types';
2
- import { ServiceState } from './types';
1
+ import { PayloadAction } from '@reduxjs/toolkit';
2
+ import { MapStoreRemoveServicePayload, ServiceState, SetLayersForServicePayload } from './types';
3
+ import { onUpdateLayerInformation } from '../layers';
3
4
  export declare const initialState: ServiceState;
4
- export declare const WEBMAPJS_REDUCERNAME = "react-webmapjs";
5
- export declare const reducer: (state: ServiceState, action: ServiceActions) => ServiceState;
5
+ export declare const reducer: import("@reduxjs/toolkit").Reducer<ServiceState, import("@reduxjs/toolkit").AnyAction>;
6
+ export declare const serviceActions: import("@reduxjs/toolkit").CaseReducerActions<{
7
+ serviceSetLayers: (draft: import("immer/dist/internal").WritableDraft<ServiceState>, action: PayloadAction<SetLayersForServicePayload>) => void;
8
+ mapStoreRemoveService: (draft: import("immer/dist/internal").WritableDraft<ServiceState>, action: PayloadAction<MapStoreRemoveServicePayload>) => void;
9
+ }>;
10
+ export declare type ServiceActions = ReturnType<typeof serviceActions.mapStoreRemoveService> | ReturnType<typeof serviceActions.serviceSetLayers> | ReturnType<typeof onUpdateLayerInformation>;
@@ -8,7 +8,6 @@ import { ServiceState, ServiceLayer, ReduxService } from './types';
8
8
  * @returns {array} returnType: array - an array of all serviceIds
9
9
  */
10
10
  export declare const getServiceIds: ((state: {
11
- advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
12
11
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
13
12
  ui?: import("../../ui/types").UIStoreType;
14
13
  webmap?: import("../types").WebMapState;
@@ -28,7 +27,6 @@ export declare const getServiceIds: ((state: {
28
27
  * @returns {object} returnType: ServiceState
29
28
  */
30
29
  export declare const getServices: ((state: {
31
- advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
32
30
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
33
31
  ui?: import("../../ui/types").UIStoreType;
34
32
  webmap?: import("../types").WebMapState;
@@ -48,7 +46,6 @@ export declare const getServices: ((state: {
48
46
  * @returns {ReduxService} returnType: Service
49
47
  */
50
48
  export declare const getServiceByName: ((state: {
51
- advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
52
49
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
53
50
  ui?: import("../../ui/types").UIStoreType;
54
51
  webmap?: import("../types").WebMapState;
@@ -69,7 +66,6 @@ export declare const getServiceByName: ((state: {
69
66
  * @returns {array} returnType: ServiceLayer[] - All layers within the service object.
70
67
  */
71
68
  export declare const getLayersFromService: ((state: {
72
- advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
73
69
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
74
70
  ui?: import("../../ui/types").UIStoreType;
75
71
  webmap?: import("../types").WebMapState;
@@ -91,7 +87,6 @@ export declare const getLayersFromService: ((state: {
91
87
  * @returns {ServiceLayer} returnType: ServiceLayer - The layer from the service object.
92
88
  */
93
89
  export declare const getLayerFromService: ((state: {
94
- advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
95
90
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
96
91
  ui?: import("../../ui/types").UIStoreType;
97
92
  webmap?: import("../types").WebMapState;
@@ -113,7 +108,6 @@ export declare const getLayerFromService: ((state: {
113
108
  * @returns {array} returnType: Style[] - array containing layer styles
114
109
  */
115
110
  export declare const getLayerStyles: ((state: {
116
- advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
117
111
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
118
112
  ui?: import("../../ui/types").UIStoreType;
119
113
  webmap?: import("../types").WebMapState;
@@ -133,7 +127,6 @@ export declare const getLayerStyles: ((state: {
133
127
  * @returns {array} returnType: [] - array containing services
134
128
  */
135
129
  export declare const getServicesInArray: ((state: {
136
- advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
137
130
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
138
131
  ui?: import("../../ui/types").UIStoreType;
139
132
  webmap?: import("../types").WebMapState;
@@ -1,7 +1,4 @@
1
1
  import { Style } from '@opengeoweb/webmap';
2
- import { Action } from 'redux';
3
- import type { UpdateLayerInfo } from '../types';
4
- import { MAP_SERVICES_SET_LAYERS, MAP_SERVICES_REMOVE_SERVICE } from './constants';
5
2
  export interface Services {
6
3
  [key: string]: ReduxService;
7
4
  }
@@ -28,20 +25,13 @@ export interface ServiceState {
28
25
  allIds: string[];
29
26
  }
30
27
  export interface SetLayersForServicePayload {
28
+ id: string;
31
29
  name: string;
32
30
  serviceUrl: string;
33
31
  layers: ServiceLayer[];
34
32
  isUserAddedService: boolean;
35
33
  }
36
- export interface SetLayersForService extends Action {
37
- type: typeof MAP_SERVICES_SET_LAYERS;
38
- payload: SetLayersForServicePayload;
39
- }
40
34
  export interface MapStoreRemoveServicePayload {
35
+ id: string;
41
36
  serviceUrl: string;
42
37
  }
43
- export interface MapStoreRemoveService extends Action {
44
- type: typeof MAP_SERVICES_REMOVE_SERVICE;
45
- payload: MapStoreRemoveServicePayload;
46
- }
47
- export declare type ServiceActions = SetLayersForService | UpdateLayerInfo | MapStoreRemoveService;
@@ -4,7 +4,6 @@ export declare const dateFormat = "YYYY-MM-DDTHH:mm:ss[Z]";
4
4
  export declare const generateLayerId: () => string;
5
5
  export declare const generateMapId: () => string;
6
6
  export declare const generateTimesliderId: () => string;
7
- export declare const generateServiceId: () => string;
8
7
  export declare const generateTimeSeriesId: () => string;
9
8
  /**
10
9
  * Registers a WMJSLayer in a lookuptable with a layerId
@@ -1,4 +1,5 @@
1
- import { DialogType, Source, UIActions, UIStoreType, UIType } from './types';
1
+ import { PayloadAction } from '@reduxjs/toolkit';
2
+ import { DialogType, SetActiveMapIdForDialogPayload, SetActiveWindowIdPayload, Source, UIOrderDialogPayload, UIRegisterDialogPayload, UIStoreType, UIToggleDialogPayload, UIType, UIUnRegisterDialogPayload } from './types';
2
3
  interface CreateUIDialogElementProps {
3
4
  activeMapId: string;
4
5
  type: DialogType;
@@ -7,12 +8,22 @@ interface CreateUIDialogElementProps {
7
8
  }
8
9
  export declare const moveToTop: <Type>(list: Type[], element: Type) => Type[];
9
10
  export declare const createUIDialogElement: ({ activeMapId, type, setOpen, source, }: CreateUIDialogElementProps) => UIType;
10
- export declare const initialState: {
11
- order: any[];
12
- dialogs: {};
13
- };
14
- export declare const reducer: (state: {
15
- order: any[];
16
- dialogs: {};
17
- }, action: UIActions) => UIStoreType;
11
+ export declare const initialState: UIStoreType;
12
+ export declare const slice: import("@reduxjs/toolkit").Slice<UIStoreType, {
13
+ registerDialog: (draft: import("immer/dist/internal").WritableDraft<UIStoreType>, action: PayloadAction<UIRegisterDialogPayload>) => void;
14
+ unregisterDialog: (draft: import("immer/dist/internal").WritableDraft<UIStoreType>, action: PayloadAction<UIUnRegisterDialogPayload>) => void;
15
+ setActiveMapIdForDialog: (draft: import("immer/dist/internal").WritableDraft<UIStoreType>, action: PayloadAction<SetActiveMapIdForDialogPayload>) => void;
16
+ setToggleOpenDialog: (draft: import("immer/dist/internal").WritableDraft<UIStoreType>, action: PayloadAction<UIToggleDialogPayload>) => void;
17
+ orderDialog: (draft: import("immer/dist/internal").WritableDraft<UIStoreType>, action: PayloadAction<UIOrderDialogPayload>) => void;
18
+ setActiveWindowId: (draft: import("immer/dist/internal").WritableDraft<UIStoreType>, action: PayloadAction<SetActiveWindowIdPayload>) => void;
19
+ }, "uiReducer">;
20
+ export declare const reducer: import("@reduxjs/toolkit").Reducer<UIStoreType, import("@reduxjs/toolkit").AnyAction>;
21
+ export declare const uiActions: import("@reduxjs/toolkit").CaseReducerActions<{
22
+ registerDialog: (draft: import("immer/dist/internal").WritableDraft<UIStoreType>, action: PayloadAction<UIRegisterDialogPayload>) => void;
23
+ unregisterDialog: (draft: import("immer/dist/internal").WritableDraft<UIStoreType>, action: PayloadAction<UIUnRegisterDialogPayload>) => void;
24
+ setActiveMapIdForDialog: (draft: import("immer/dist/internal").WritableDraft<UIStoreType>, action: PayloadAction<SetActiveMapIdForDialogPayload>) => void;
25
+ setToggleOpenDialog: (draft: import("immer/dist/internal").WritableDraft<UIStoreType>, action: PayloadAction<UIToggleDialogPayload>) => void;
26
+ orderDialog: (draft: import("immer/dist/internal").WritableDraft<UIStoreType>, action: PayloadAction<UIOrderDialogPayload>) => void;
27
+ setActiveWindowId: (draft: import("immer/dist/internal").WritableDraft<UIStoreType>, action: PayloadAction<SetActiveWindowIdPayload>) => void;
28
+ }>;
18
29
  export {};
@@ -1,5 +1,5 @@
1
1
  import { AppStore } from '../../types/types';
2
- import { DialogType, UIType } from './types';
2
+ import { UIType } from './types';
3
3
  /**
4
4
  * Gets the active map Id and wether a dialog is open or closed
5
5
  *
@@ -17,7 +17,6 @@ export declare const getDialogDetailsByType: (store: AppStore, dialogType: strin
17
17
  * @returns {boolean} returnType: boolean
18
18
  */
19
19
  export declare const getisDialogOpen: ((state: {
20
- advancedLayerStore?: import("../advancedLayerStore/types").AdvancedLayerStoreState;
21
20
  syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
22
21
  ui?: import("./types").UIStoreType;
23
22
  webmap?: import("../mapStore/types").WebMapState;
@@ -37,7 +36,6 @@ export declare const getisDialogOpen: ((state: {
37
36
  * @returns {string} returnType: string - the active map id
38
37
  */
39
38
  export declare const getDialogMapId: ((state: {
40
- advancedLayerStore?: import("../advancedLayerStore/types").AdvancedLayerStoreState;
41
39
  syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
42
40
  ui?: import("./types").UIStoreType;
43
41
  webmap?: import("../mapStore/types").WebMapState;
@@ -57,14 +55,13 @@ export declare const getDialogMapId: ((state: {
57
55
  * @returns {number} the higher the order number the higher the zIndex
58
56
  */
59
57
  export declare const getDialogOrder: ((state: {
60
- advancedLayerStore?: import("../advancedLayerStore/types").AdvancedLayerStoreState;
61
58
  syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
62
59
  ui?: import("./types").UIStoreType;
63
60
  webmap?: import("../mapStore/types").WebMapState;
64
61
  services?: import("../mapStore/types").ServiceState;
65
62
  layers?: import("../mapStore/types").LayerState;
66
63
  layerSelect?: import("../layerSelect/types").LayerSelectStoreType;
67
- }, params_0: DialogType) => number) & import("reselect").OutputSelectorFields<(args_0: number) => number & {
64
+ }, params_0: string) => number) & import("reselect").OutputSelectorFields<(args_0: number) => number & {
68
65
  clearCache: () => void;
69
66
  }> & {
70
67
  clearCache: () => void;
@@ -77,20 +74,18 @@ export declare const getDialogOrder: ((state: {
77
74
  * @returns {boolean}
78
75
  */
79
76
  export declare const getDialogIsOrderedOnTop: ((state: {
80
- advancedLayerStore?: import("../advancedLayerStore/types").AdvancedLayerStoreState;
81
77
  syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
82
78
  ui?: import("./types").UIStoreType;
83
79
  webmap?: import("../mapStore/types").WebMapState;
84
80
  services?: import("../mapStore/types").ServiceState;
85
81
  layers?: import("../mapStore/types").LayerState;
86
82
  layerSelect?: import("../layerSelect/types").LayerSelectStoreType;
87
- }, params_0: DialogType) => boolean) & import("reselect").OutputSelectorFields<(args_0: boolean) => boolean & {
83
+ }, params_0: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: boolean) => boolean & {
88
84
  clearCache: () => void;
89
85
  }> & {
90
86
  clearCache: () => void;
91
87
  };
92
88
  export declare const getDialogSource: ((state: {
93
- advancedLayerStore?: import("../advancedLayerStore/types").AdvancedLayerStoreState;
94
89
  syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
95
90
  ui?: import("./types").UIStoreType;
96
91
  webmap?: import("../mapStore/types").WebMapState;
@@ -102,3 +97,11 @@ export declare const getDialogSource: ((state: {
102
97
  }> & {
103
98
  clearCache: () => void;
104
99
  };
100
+ /**
101
+ * Get the active window that should receive keyboard shortcuts
102
+ *
103
+ * Example: getActiveWindowId(store)
104
+ * @param {object} store store object from which the window state will be extracted
105
+ * @returns {string} active window id
106
+ */
107
+ export declare const getActiveWindowId: (store: AppStore) => string;
@@ -1,6 +1,5 @@
1
- import { Action } from 'redux';
2
- import { UI_SET_ACTIVE_MAPID_FOR_DIALOG, UI_REGISTER_DIALOG, UI_TOGGLE_DIALOG, UI_UNREGISTER_DIALOG, UI_ORDER_DIALOG } from './constants';
3
- export declare type DialogType = 'legend' | 'layerManager' | 'layerSelect' | 'dimensionSelect-elevation' | 'dimensionSelect-ensemble_member' | 'keywordFilter' | 'timeSeriesManager' | 'timeSeriesSelect' | 'syncGroups';
1
+ declare type LegendDialogType = string;
2
+ export declare type DialogType = 'layerManager' | 'layerSelect' | 'dimensionSelect-elevation' | 'dimensionSelect-ensemble_member' | 'keywordFilter' | 'timeSeriesManager' | 'timeSeriesSelect' | 'syncGroups' | LegendDialogType;
4
3
  export declare type Source = 'app' | 'module';
5
4
  export interface UIType {
6
5
  type: DialogType;
@@ -11,6 +10,7 @@ export interface UIType {
11
10
  export interface UIStoreType {
12
11
  order: DialogType[];
13
12
  dialogs: Partial<Record<DialogType, UIType>>;
13
+ activeWindowId?: string;
14
14
  }
15
15
  export interface UIModuleState {
16
16
  ui?: UIStoreType;
@@ -21,40 +21,23 @@ export interface SetActiveMapIdForDialogPayload {
21
21
  setOpen?: boolean;
22
22
  source?: Source;
23
23
  }
24
- export interface SetActiveMapIdForDialog extends Action {
25
- type: typeof UI_SET_ACTIVE_MAPID_FOR_DIALOG;
26
- payload: SetActiveMapIdForDialogPayload;
27
- }
28
24
  export interface UIRegisterDialogPayload {
29
25
  type: DialogType;
30
26
  activeMapId?: string;
31
27
  setOpen?: boolean;
32
28
  source?: Source;
33
29
  }
34
- export interface UIRegisterDialog extends Action {
35
- type: typeof UI_REGISTER_DIALOG;
36
- payload: UIRegisterDialogPayload;
37
- }
38
30
  export interface UIUnRegisterDialogPayload {
39
31
  type: DialogType;
40
32
  }
41
- export interface UIUnRegisterDialog extends Action {
42
- type: typeof UI_UNREGISTER_DIALOG;
43
- payload: UIUnRegisterDialogPayload;
44
- }
45
33
  export interface UIToggleDialogPayload {
46
34
  type: DialogType;
47
35
  setOpen: boolean;
48
36
  }
49
- export interface UIToggleDialog extends Action {
50
- type: typeof UI_TOGGLE_DIALOG;
51
- payload: UIToggleDialogPayload;
52
- }
53
37
  export interface UIOrderDialogPayload {
54
38
  type: DialogType;
55
39
  }
56
- export interface UIOrderDialog extends Action {
57
- type: typeof UI_ORDER_DIALOG;
58
- payload: UIOrderDialogPayload;
40
+ export interface SetActiveWindowIdPayload {
41
+ activeWindowId: string;
59
42
  }
60
- export declare type UIActions = SetActiveMapIdForDialog | UIRegisterDialog | UIUnRegisterDialog | UIToggleDialog | UIOrderDialog;
43
+ export {};
@@ -1,4 +1,5 @@
1
- import { Layer, Bbox, LayerActions, DeleteLayerPayload, SetLayerDimensionPayload, SetLayerEnabledPayload, SetLayerStylePayload, SetLayerNamePayload, SetLayerOpacityPayload } from '../store/mapStore/types';
1
+ import { Layer, Bbox, DeleteLayerPayload, SetLayerDimensionPayload, SetLayerEnabledPayload, SetLayerStylePayload, SetLayerNamePayload, SetLayerOpacityPayload } from '../store/mapStore/types';
2
+ import { LayerActions } from '../store/mapStore/layers/reducer';
2
3
  export declare const initialBbox: {
3
4
  srs: string;
4
5
  bbox: {
File without changes
@@ -1,7 +1,6 @@
1
1
  import { WebMapStateModuleState } from '../store/mapStore/types';
2
- import { AdvancedLayerStoreModuleState } from '../store/advancedLayerStore/types';
3
2
  import { SynchronizationGroupModuleState } from '../store/generic/synchronizationGroups/types';
4
3
  import { UIModuleState } from '../store/ui/types';
5
4
  import { LayerSelectModuleState } from '../store/layerSelect/types';
6
- export interface AppStore extends AdvancedLayerStoreModuleState, SynchronizationGroupModuleState, UIModuleState, WebMapStateModuleState, LayerSelectModuleState {
5
+ export interface AppStore extends SynchronizationGroupModuleState, UIModuleState, WebMapStateModuleState, LayerSelectModuleState {
7
6
  }
@@ -20,6 +20,11 @@ export interface InitialAppPreset {
20
20
  }
21
21
  export declare const filterBaseLayers: (presetArray: unknown[]) => Layer[];
22
22
  export declare const filterMapLayers: (presetArray: unknown[]) => Layer[];
23
+ export declare const filterLayers: (layers?: Layer[]) => {
24
+ mapLayers: Layer[];
25
+ baseLayers: Layer[];
26
+ overLayers: Layer[];
27
+ };
23
28
  export declare const filterServices: (presetArray: Service[]) => Service[];
24
29
  export declare const filterMapPresets: (presets: InitialAppPreset) => FilteredMapPresets;
25
30
  export declare const getInitialPresets: (mapPreset: InitialAppPreset, defaultInitialPresets: InitialAppPreset) => InitialAppPresetProps;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/core",
3
- "version": "2.7.0",
3
+ "version": "2.10.0",
4
4
  "description": "GeoWeb Core library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -13,32 +13,32 @@
13
13
  "dependencies": {},
14
14
  "peerDependencies": {
15
15
  "react": "^17.0.2",
16
- "@opengeoweb/theme": "2.7.0",
16
+ "@opengeoweb/theme": "2.10.0",
17
17
  "@mui/material": "^5.2.8",
18
18
  "@mui/styles": "^5.2.3",
19
19
  "@mui/icons-material": "^5.2.5",
20
- "react-redux": "7.2.2",
21
20
  "moment": "^2.29.0",
21
+ "react-redux": "7.2.2",
22
+ "@opengeoweb/icons": "2.10.0",
22
23
  "react-intl": "^5.17.5",
23
- "@opengeoweb/shared": "2.7.0",
24
+ "@opengeoweb/shared": "2.10.0",
24
25
  "react-draggable": "^4.4.3",
25
26
  "re-resizable": "^6.9.0",
26
27
  "lodash": "^4.17.20",
27
- "@opengeoweb/form-fields": "2.7.0",
28
+ "@opengeoweb/form-fields": "2.10.0",
28
29
  "react-hook-form": "^6.12.1",
29
30
  "moment-timezone": "^0.5.31",
30
31
  "@mui/lab": "^5.0.0-alpha.64",
31
32
  "axios": "^0.25.0",
32
- "@opengeoweb/webmap": "2.7.0",
33
+ "@opengeoweb/webmap": "2.10.0",
33
34
  "throttle-debounce": "^3.0.1",
34
35
  "proj4": "^2.6.2",
35
36
  "react-sortablejs": "^6.0.0",
37
+ "immer": "^9.0.15",
36
38
  "redux-dynamic-modules": "^5.2.0",
37
- "redux": "^4.0.4",
38
- "immer": "^9.0.6",
39
+ "@reduxjs/toolkit": "^1.8.3",
39
40
  "lodash.clonedeep": "^4.5.0",
40
41
  "@turf/turf": "^5.1.6",
41
- "reselect": "^4.1.5",
42
42
  "redux-dynamic-modules-saga": "^5.2.0",
43
43
  "redux-saga": "^1.1.3"
44
44
  }
@@ -1,6 +0,0 @@
1
- import * as React from 'react';
2
- export declare const ConfigurableConnectedMapDemo: () => React.ReactElement;
3
- declare const _default: {
4
- title: string;
5
- };
6
- export default _default;
@@ -1 +0,0 @@
1
- export * from './ConfigurableConnectedMap';
@@ -1,21 +0,0 @@
1
- import React from 'react';
2
- import { AnimationPayloadType, Bbox, Layer } from '../../store/mapStore/types';
3
- export interface ConfigurableMapWithSliderConnectProps {
4
- id?: string;
5
- activeLayerId?: string;
6
- shouldAutoUpdate?: boolean;
7
- shouldAnimate?: boolean;
8
- title?: string;
9
- layers: Layer[];
10
- baseLayer?: Layer;
11
- overLayers?: Layer[];
12
- bbox?: Bbox;
13
- srs?: string;
14
- shouldShowZoomControls?: boolean;
15
- animationPayload?: AnimationPayloadType;
16
- displayMapPin?: boolean;
17
- showTimeSlider?: boolean;
18
- toggleTimestepAuto?: boolean;
19
- setTimestep?: number;
20
- }
21
- export declare const ConfigurableMapWithSliderConnect: React.FC<ConfigurableMapWithSliderConnectProps>;
@@ -1 +0,0 @@
1
- export * from './ConfigurableMapWithSliderConnect';
@@ -1,9 +0,0 @@
1
- import * as React from 'react';
2
- export interface ResetButtonProps {
3
- isDisabled?: boolean;
4
- textAnnotation?: string;
5
- onToggleReset?: () => void;
6
- }
7
- export declare const defaultTextAnnotation = "RESET";
8
- declare const ResetButton: React.FC<ResetButtonProps>;
9
- export default ResetButton;
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- import { mapActions } from '../../../..';
3
- import { Dimension } from '../../../../store/mapStore/types';
4
- export declare const defaultAnimationDuration = 6;
5
- export interface ResetButtonConnectProps {
6
- mapId: string;
7
- isDisabled?: boolean;
8
- textAnnotation?: string;
9
- dimensions?: Dimension[];
10
- mapStopAnimation?: typeof mapActions.mapStopAnimation;
11
- setAnimationStartTime?: typeof mapActions.setAnimationStartTime;
12
- setAnimationEndTime?: typeof mapActions.setAnimationEndTime;
13
- }
14
- declare const ResetButtonConnect: React.FC<ResetButtonConnectProps>;
15
- export default ResetButtonConnect;
@@ -1,15 +0,0 @@
1
- import { AdvancedLayerStoreActions, SetTimeResolutionPayload, SetTimeValuePayload } from './types';
2
- /**
3
- * Sets time start, end, value and resolution if passed in (timeResolution must be in seconds)
4
- *
5
- * Example: setTimeResolution ({ timeStart: momentValue, timeEnd: momentValue, timeValue: momentValue, timeResolution: 300 });
6
- * @param {object} payload object with: timeStart?: Moment, timeEnd?: Moment, timeValue?: Moment, timeResolution?: number->(in seconds);
7
- */
8
- export declare const setTimeResolution: (payload: SetTimeResolutionPayload) => AdvancedLayerStoreActions;
9
- /**
10
- * Sets time value
11
- *
12
- * Example: setTimeValue ({ timeValue: value });
13
- * @param {object} payload Object with timeValue: Moment;
14
- */
15
- export declare const setTimeValue: (payload: SetTimeValuePayload) => AdvancedLayerStoreActions;
@@ -1,4 +0,0 @@
1
- import { IModule } from 'redux-dynamic-modules';
2
- import { AdvancedLayerStoreModuleState } from './types';
3
- declare const moduleConfig: IModule<AdvancedLayerStoreModuleState>;
4
- export default moduleConfig;
@@ -1,2 +0,0 @@
1
- export declare const ADVANCED_LAYER_STORE_SET_TIMERESOLUTION = "ADVANCED_LAYER_STORE_SET_TIMERESOLUTION";
2
- export declare const ADVANCED_LAYER_STORE_SET_TIMEVALUE = "ADVANCED_LAYER_STORE_SET_TIMEVALUE";
@@ -1,14 +0,0 @@
1
- import { AdvancedLayerStoreState, AdvancedLayerStoreActions } from './types';
2
- import { LayerActions, MapActions } from '../mapStore/types';
3
- export declare const initialState: {
4
- timeResolution: number;
5
- timeStart: any;
6
- timeEnd: any;
7
- timeValue: any;
8
- };
9
- export declare const reducer: (state: {
10
- timeResolution: number;
11
- timeStart: any;
12
- timeEnd: any;
13
- timeValue: any;
14
- }, action: AdvancedLayerStoreActions | LayerActions | MapActions) => AdvancedLayerStoreState;
@@ -1 +0,0 @@
1
- export {};
@@ -1,21 +0,0 @@
1
- import { AdvancedLayerStoreState } from './types';
2
- /**
3
- * Extracts the state of the advancedLayerStore from the store
4
- *
5
- * Example: advancedLayerStore = getAdvancedLayerStore(store);
6
- * @param {object} store store: object - object from which the advancedLayerStore state will be extracted
7
- * @returns {object} returnType: object - advancedLayerStore state part of the store
8
- */
9
- export declare const getAdvancedLayerStore: ((state: {
10
- advancedLayerStore?: AdvancedLayerStoreState;
11
- syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
12
- ui?: import("../ui/types").UIStoreType;
13
- webmap?: import("../mapStore/types").WebMapState;
14
- services?: import("../mapStore/types").ServiceState;
15
- layers?: import("../mapStore/types").LayerState;
16
- layerSelect?: import("../layerSelect/types").LayerSelectStoreType;
17
- }) => AdvancedLayerStoreState) & import("reselect").OutputSelectorFields<(args_0: AdvancedLayerStoreState) => AdvancedLayerStoreState & {
18
- clearCache: () => void;
19
- }> & {
20
- clearCache: () => void;
21
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,30 +0,0 @@
1
- import { Moment } from 'moment';
2
- import { Action } from 'redux';
3
- import { ADVANCED_LAYER_STORE_SET_TIMERESOLUTION, ADVANCED_LAYER_STORE_SET_TIMEVALUE } from './constants';
4
- export interface AdvancedLayerStoreState {
5
- timeResolution: number;
6
- timeStart: string;
7
- timeEnd: string;
8
- timeValue: string;
9
- }
10
- export interface AdvancedLayerStoreModuleState {
11
- advancedLayerStore?: AdvancedLayerStoreState;
12
- }
13
- export interface SetTimeResolutionPayload {
14
- timeStart?: Moment;
15
- timeEnd?: Moment;
16
- timeValue?: Moment;
17
- timeResolution?: number;
18
- }
19
- export interface SetTimeResolution extends Action {
20
- type: typeof ADVANCED_LAYER_STORE_SET_TIMERESOLUTION;
21
- payload: SetTimeResolutionPayload;
22
- }
23
- export interface SetTimeValuePayload {
24
- timeValue: Moment;
25
- }
26
- export interface SetTimeValue extends Action {
27
- type: typeof ADVANCED_LAYER_STORE_SET_TIMEVALUE;
28
- payload: SetTimeValuePayload;
29
- }
30
- export declare type AdvancedLayerStoreActions = SetTimeResolution | SetTimeValue;
@@ -1,2 +0,0 @@
1
- export declare const GENERIC_SETTIME = "GENERIC_SETTIME";
2
- export declare const GENERIC_SETBBOX = "GENERIC_SETBBOX";
@@ -1,3 +0,0 @@
1
- export declare const GENERIC_SYNC_SETTIME = "GENERIC_SYNC_SETTIME";
2
- export declare const GENERIC_SYNC_SETBBOX = "GENERIC_SYNC_SETBBOX";
3
- export declare const GENERIC_SYNC_SETLAYERACTIONS = "GENERIC_SYNC_SETLAYERACTIONS";
@@ -1,80 +0,0 @@
1
- import { SyncGroupAddGroupPayload, SyncGroupAddTargetPayload, SyncGroupLinkTargetPayload, SyncGroupRemoveGroupPayload, SyncGroupRemoveSourcePayload, SyncGroupRemoveTargetPayload, SyncGroupsAddSourcePayload, SynchronizationGroupActions, SyncGroupSetViewStatePayload } from './types';
2
- /**
3
- * Add a source component to the sources list.
4
- *
5
- * @param payload: SyncGroupsAddSourcePayload;
6
- * {
7
- * id: string; // The id of the source ;
8
- * type: SyncType[]; // The types of this source
9
- * defaultPayload?: GenericActionPayload; // Optional default value of this source
10
- * }
11
- */
12
- export declare const syncGroupAddSource: (payload: SyncGroupsAddSourcePayload) => SynchronizationGroupActions;
13
- /**
14
- * Remove a source from the sources list. Besides removing it from the sources list, the reducer will also remove the source from the synchronization groups.
15
- *
16
- * @param payload SyncGroupRemoveSourcePayload;
17
- * {
18
- * id: string; // The source id to remove
19
- * }
20
- */
21
- export declare const syncGroupRemoveSource: (payload: SyncGroupRemoveSourcePayload) => SynchronizationGroupActions;
22
- /**
23
- * Add a target (which should be in the sources list) to this synchronization group.
24
- * The source will get the value set according to the other targets in the group. T
25
- * The value is set via a secondary action (via saga's) to allow the other reducers (not part of SyncGroups) to process the new value
26
- *
27
- * @param payload: SyncGroupAddTargetPayload;
28
- * {
29
- * id: string; // SyncGroup Id to add the target to.
30
- * targetId: string; // TargetId of the target
31
- * linked?: boolean; // Whether it should be linked to the group or not, if not set it is always linked (true)
32
- * }
33
- */
34
- export declare const syncGroupAddTarget: (payload: SyncGroupAddTargetPayload) => SynchronizationGroupActions;
35
- /**
36
- * Remove a target from the group
37
- * @param payload: SyncGroupRemoveTargetPayload;
38
- * {
39
- * id: string; // SyncGroup Id to remove target from;
40
- * targetId: string; // Target id to remove
41
- * }
42
- */
43
- export declare const syncGroupRemoveTarget: (payload: SyncGroupRemoveTargetPayload) => SynchronizationGroupActions;
44
- /**
45
- * Toggle linking of a target in this group.
46
- * When linking is set to enabled, the value of the group is given to this target via an extra action (via saga's)
47
- *
48
- * @param payload: SyncGroupLinkTargetPayload;
49
- * {
50
- * linked: boolean; // Target is linked or not in this group
51
- * id: string; // SyncGroup Id
52
- * targetId: string; // The targetId to set linked for
53
- * }
54
- */
55
- export declare const syncGroupLinkTarget: (payload: SyncGroupLinkTargetPayload) => SynchronizationGroupActions;
56
- /**
57
- * Add a synchronization group
58
- *
59
- * @param payload: syncGroupAddGroupPayload;
60
- * {
61
- * id: string; // Syncgroup id
62
- * title: string; // Title for sync group
63
- * type: SyncType[]; // SyncGroup type
64
- * }
65
- */
66
- export declare const syncGroupAddGroup: (payload: SyncGroupAddGroupPayload) => SynchronizationGroupActions;
67
- /**
68
- * Remove a synchronization group
69
- *
70
- * @param payload: syncGroupRemoveGroupPayload;
71
- * {
72
- * id: string; // Syncgroup id
73
- * }
74
- */
75
- export declare const syncGroupRemoveGroup: (payload: SyncGroupRemoveGroupPayload) => SynchronizationGroupActions;
76
- /**
77
- * Clear syncGroups
78
- */
79
- export declare const syncGroupClear: () => SynchronizationGroupActions;
80
- export declare const syncGroupSetViewState: (payload: SyncGroupSetViewStatePayload) => SynchronizationGroupActions;