@opengeoweb/core 1.2.2 → 2.1.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.
- package/README.md +11 -12
- package/core.esm.js +10901 -9141
- package/core.umd.js +12644 -10566
- package/lib/components/ConfigurableMapWithSlider/ConfigurableMapWithSliderConnect.d.ts +14 -0
- package/lib/components/{LayerManager/LayerContainerRow/LayerRow/Menubutton/DeleteLayer/DeleteButton.spec.d.ts → ConfigurableMapWithSlider/ConfigurableMapWithSliderConnect.spec.d.ts} +0 -0
- package/lib/components/ConfigurableMapWithSlider/index.d.ts +1 -0
- package/lib/components/LayerManager/AddLayersButton/AddLayersButton.d.ts +1 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerManagerButton.d.ts +12 -0
- package/lib/components/LayerManager/LayerContainerRow/{LayerRow/Menubutton/DeleteLayer/DeleteLayerConnect.spec.d.ts → LayerManagerButton.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/ActivateLayer/ActivateLayer.d.ts +9 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/{Menubutton/DuplicateLayer/DuplicateButton.spec.d.ts → ActivateLayer/ActivateLayer.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/ActivateLayer/ActivateLayerConnect.d.ts +16 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/{Menubutton/DuplicateLayer/DuplicateLayerConnect.spec.d.ts → ActivateLayer/ActivateLayerConnect.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/{Menubutton/DeleteLayer/DeleteButton.d.ts → DeleteLayer/DeleteLayer.d.ts} +2 -1
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/{Menubutton/LayerManagerMenuButton.spec.d.ts → DeleteLayer/DeleteLayer.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/{Menubutton/DeleteLayer → DeleteLayer}/DeleteLayerConnect.d.ts +1 -0
- package/lib/components/LayerManager/LayerContainerRow/{SortableRowContainer/SortableRowContainer.spec.d.ts → LayerRow/DeleteLayer/DeleteLayerConnect.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelect.d.ts +1 -1
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/DragHandle/DragHandle.d.ts +7 -3
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/EnableLayer/EnableLayer.d.ts +1 -2
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/EnableLayer/EnableLayerConnect.d.ts +0 -1
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/LayerRow.d.ts +4 -2
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/LayerRowConnect.d.ts +11 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/Menubutton/{LayerManagerMenuButton.d.ts → MenuButton.d.ts} +1 -7
- package/lib/components/{MultiDimensionSelect/MultiDimensionSelectConnect.spec.d.ts → LayerManager/LayerContainerRow/LayerRow/Menubutton/MenuButton.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/Menubutton/MenuButtonConnect.d.ts +7 -0
- package/lib/components/{MultiDimensionSelect/MultiDimensionSelectDialog.spec.d.ts → LayerManager/LayerContainerRow/LayerRow/Menubutton/MenuButtonConnect.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/Menubutton/MenuItemButton.d.ts +8 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/OpacitySelect/OpacitySelect.d.ts +1 -1
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/OpacitySelect/OpacitySelectConnect.d.ts +0 -1
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderLayers/RenderLayers.d.ts +1 -1
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderLayers/RenderLayersConnect.d.ts +0 -1
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderStyles/RenderStyles.d.ts +1 -1
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/styles.d.ts +4 -0
- package/lib/components/LayerManager/LayerManager.d.ts +5 -1
- package/lib/components/LayerManager/LayerManager.stories.d.ts +3 -1
- package/lib/components/LayerManager/LayerManagerConnect.d.ts +1 -1
- package/lib/components/LayerManager/LayerManagerMapButtonConnect.d.ts +2 -0
- package/lib/components/LayerManager/LayerSelect/LayerSelect.d.ts +14 -0
- package/lib/components/{MultiDimensionSelect/VerticalDimensionSelect.spec.d.ts → LayerManager/LayerSelect/LayerSelect.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerSelect/LayerSelect.stories.d.ts +9 -0
- package/lib/components/LayerManager/LayerSelect/LayerSelectButtonConnect.d.ts +8 -0
- package/lib/components/LayerManager/LayerSelect/LayerSelectButtonConnect.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/LayerSelectConnect.d.ts +14 -0
- package/lib/components/LayerManager/LayerSelect/LayerSelectConnect.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopup.d.ts +11 -0
- package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopup.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopup.stories.d.ts +13 -0
- package/lib/components/LayerManager/{tooltipSelectContainerStyles.d.ts → tooltipContainerStyles.d.ts} +0 -0
- package/lib/components/Legend/LegendConnect.d.ts +1 -2
- package/lib/components/Legend/LegendDialog.d.ts +2 -0
- package/lib/components/Mapcontrols/MapControlButton.d.ts +11 -0
- package/lib/components/Mapcontrols/MapControlButton.spec.d.ts +1 -0
- package/lib/components/Mapcontrols/MapControls.d.ts +7 -0
- package/lib/components/Mapcontrols/MapControls.spec.d.ts +1 -0
- package/lib/components/Mapcontrols/ZoomControls.d.ts +0 -8
- package/lib/components/Mapcontrols/ZoomControlsConnect.d.ts +6 -0
- package/lib/components/Mapcontrols/ZoomControlsConnect.spec.d.ts +1 -0
- package/lib/components/Mapcontrols/index.d.ts +4 -0
- package/lib/components/MultiMapDimensionSelect/DimensionSelectButton.d.ts +8 -0
- package/lib/components/MultiMapDimensionSelect/DimensionSelectButton.spec.d.ts +1 -0
- package/lib/components/MultiMapDimensionSelect/DimensionSelectButtonConnect.d.ts +7 -0
- package/lib/components/MultiMapDimensionSelect/DimensionSelectButtonConnect.spec.d.ts +1 -0
- package/lib/components/MultiMapDimensionSelect/DimensionSelectDialogConnect.d.ts +12 -0
- package/lib/components/MultiMapDimensionSelect/DimensionSelectDialogConnect.spec.d.ts +1 -0
- package/lib/components/{MultiDimensionSelect/VerticalDimensionSelect.d.ts → MultiMapDimensionSelect/DimensionSelectSlider.d.ts} +5 -4
- package/lib/components/MultiMapDimensionSelect/DimensionSelectSlider.spec.d.ts +1 -0
- package/lib/components/MultiMapDimensionSelect/DimensionSelectSliderConnect.d.ts +11 -0
- package/lib/components/MultiMapDimensionSelect/DimensionSelectSliderConnect.spec.d.ts +1 -0
- package/lib/components/{MultiDimensionSelect → MultiMapDimensionSelect}/EnsembleDimensionExample.stories.d.ts +0 -0
- package/lib/components/{MultiDimensionSelect → MultiMapDimensionSelect}/MultiDimensionSelect.stories.d.ts +1 -0
- package/lib/components/MultiMapDimensionSelect/MultiDimensionSelectConfig.d.ts +11 -0
- package/lib/components/{MultiDimensionSelect → MultiMapDimensionSelect}/MultiDimensionSelectConnect.stories.d.ts +0 -1
- package/lib/components/MultiMapDimensionSelect/MultiDimensionSelectMapButtonsConnect.d.ts +6 -0
- package/lib/components/MultiMapDimensionSelect/MultiDimensionSelectMapButtonsConnect.spec.d.ts +1 -0
- package/lib/components/MultiMapDimensionSelect/MultiMapMultiDimensionSelect.stories.d.ts +2 -0
- package/lib/components/MultiMapDimensionSelect/MultiMapMultiDimensionSelectConnect.d.ts +9 -0
- package/lib/components/MultiMapDimensionSelect/MultiMapMultiDimensionSelectConnect.spec.d.ts +1 -0
- package/lib/components/MultiMapDimensionSelect/MultiMapSingleDimensionSelectConnect.d.ts +8 -0
- package/lib/components/MultiMapDimensionSelect/MultiMapSingleDimensionSelectConnect.spec.d.ts +1 -0
- package/lib/components/MultiMapDimensionSelect/index.d.ts +2 -0
- package/lib/components/MultiMapView/HarmoniePresets/HarmRefTimePreset.d.ts +9 -0
- package/lib/components/MultiMapView/HarmoniePresets/HarmRefTimePreset.spec.d.ts +1 -0
- package/lib/components/MultiMapView/HarmoniePresets/HarmonieTempAndPrecipPreset.d.ts +11 -0
- package/lib/components/MultiMapView/HarmoniePresets/index.d.ts +2 -0
- package/lib/components/MultiMapView/MultiMapView.stories.d.ts +0 -2
- package/lib/components/MultiMapView/MultiMapViewConnect.d.ts +6 -2
- package/lib/components/MultiMapView/storyUtils/mapPresets.d.ts +23 -11
- package/lib/components/Providers/Providers.d.ts +2 -1
- package/lib/components/ReactMapView/ReactMapView.d.ts +9 -9
- package/lib/components/ReactMapView/ReactMapViewParseLayer.d.ts +3 -2
- package/lib/components/ReactMapView/types.d.ts +3 -4
- package/lib/components/SyncGroups/ConfigurableConnectedMap.d.ts +5 -0
- package/lib/components/SyncGroups/SyncGroupList.d.ts +11 -0
- package/lib/components/SyncGroups/SyncGroupListItem.d.ts +10 -0
- package/lib/components/SyncGroups/SyncGroupViewer.d.ts +11 -7
- package/lib/components/SyncGroups/SyncGroupViewer.spec.d.ts +1 -0
- package/lib/components/SyncGroups/SyncGroupViewerConnect.d.ts +7 -1
- package/lib/components/SyncGroups/selector.d.ts +10 -0
- package/lib/components/SyncGroups/types.d.ts +17 -0
- package/lib/components/TimeSlider/TimeSliderButtons/TimeSliderButtonComponents.stories.d.ts +5 -0
- package/lib/components/TimeSlider/TimeSliderButtons/TimeSliderButtons.stories.d.ts +0 -4
- package/lib/components/TimeSlider/TimeSliderButtons/TimeStepButton/TimeStepButton.d.ts +2 -2
- package/lib/components/TimeSlider/TimeSliderRail/TimeSliderRail.d.ts +1 -1
- package/lib/components/TimeSlider/TimeSliderScaleSlider/TimeSliderScaleSlider.stories.d.ts +5 -1
- package/lib/components/TimeSlider/TimeSliderUtils.d.ts +11 -13
- package/lib/components/ToggleIconButton/ToggleIconButton.d.ts +9 -0
- package/lib/components/ToggleIconButton/ToggleIconButton.spec.d.ts +1 -0
- package/lib/components/ToggleIconButton/ToggleIconButton.stories.d.ts +13 -0
- package/lib/components/ToggleIconButton/index.d.ts +1 -0
- package/lib/components/TooltipSelect/TooltipSelect.d.ts +7 -0
- package/lib/components/TooltipSelect/TooltipSelect.spec.d.ts +1 -0
- package/lib/components/WMSLoader/services.d.ts +0 -1
- package/lib/index.d.ts +16 -4
- package/lib/store/generic/sagas.d.ts +7 -0
- package/lib/store/generic/synchronizationActions/actions.d.ts +5 -4
- package/lib/store/generic/synchronizationActions/constants.d.ts +1 -0
- package/lib/store/generic/synchronizationActions/types.d.ts +25 -11
- package/lib/store/generic/synchronizationGroups/actions.d.ts +4 -0
- package/lib/store/generic/synchronizationGroups/constants.d.ts +2 -0
- package/lib/store/generic/synchronizationGroups/index.d.ts +2 -1
- package/lib/store/generic/synchronizationGroups/selectors.d.ts +2 -1
- package/lib/store/generic/synchronizationGroups/selectors.spec.d.ts +1 -0
- package/lib/store/generic/synchronizationGroups/types.d.ts +7 -3
- package/lib/store/generic/synchronizationGroups/utils.d.ts +81 -0
- package/lib/store/generic/synchronizationGroups/utils.spec.d.ts +1 -0
- package/lib/store/generic/types.d.ts +7 -4
- package/lib/store/mapStore/layers/actions.d.ts +0 -3
- package/lib/store/mapStore/layers/selectors.d.ts +21 -1
- package/lib/store/mapStore/layers/types.d.ts +7 -0
- package/lib/store/mapStore/layers/utils.d.ts +4 -2
- package/lib/store/mapStore/layers/utils.spec.d.ts +1 -0
- package/lib/store/mapStore/map/selectors.d.ts +86 -4
- package/lib/store/mapStore/map/types.d.ts +2 -0
- package/lib/store/mapStore/service/actions.d.ts +1 -10
- package/lib/store/mapStore/service/constants.d.ts +0 -1
- package/lib/store/mapStore/service/reducer.d.ts +4 -2
- package/lib/store/mapStore/service/selectors.d.ts +9 -39
- package/lib/store/mapStore/service/types.d.ts +4 -15
- package/lib/store/mapStore/types.d.ts +1 -1
- package/lib/store/mapStore/utils/helpers.d.ts +2 -0
- package/lib/store/ui/actions.d.ts +12 -5
- package/lib/store/ui/constants.d.ts +1 -0
- package/lib/store/ui/reducer.d.ts +12 -4
- package/lib/store/ui/sagas.d.ts +5 -0
- package/lib/store/ui/sagas.test.d.ts +1 -0
- package/lib/store/ui/selectors.d.ts +21 -4
- package/lib/store/ui/types.d.ts +17 -4
- package/lib/storybookUtils/defaultStorySettings.d.ts +1 -0
- package/lib/utils/defaultConfigurations.d.ts +21 -0
- package/lib/utils/defaultTestSettings.d.ts +0 -44
- package/lib/utils/dimensionUtils.d.ts +13 -0
- package/lib/utils/dimensionUtils.spec.d.ts +1 -0
- package/lib/utils/getCapabilities.d.ts +2 -0
- package/lib/utils/{exampleLayers.d.ts → publicLayers.d.ts} +148 -70
- package/lib/utils/publicServices.d.ts +100 -0
- package/lib/utils/testLayers.d.ts +17 -0
- package/lib/utils/testUtils.d.ts +1 -0
- package/package.json +10 -10
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/Menubutton/DuplicateLayer/DuplicateButton.d.ts +0 -7
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/Menubutton/DuplicateLayer/DuplicateLayerConnect.d.ts +0 -7
- package/lib/components/LayerManager/LayerContainerRow/SortableRowContainer/SortableRowContainer.d.ts +0 -6
- package/lib/components/MultiDimensionSelect/MultiDimensionSelectConfig.d.ts +0 -3
- package/lib/components/MultiDimensionSelect/MultiDimensionSelectConnect.d.ts +0 -10
- package/lib/components/MultiDimensionSelect/MultiDimensionSelectDialog.d.ts +0 -12
- package/lib/components/MultiDimensionSelect/index.d.ts +0 -2
- package/lib/components/MultiDimensionSelect/types.d.ts +0 -18
- package/lib/components/MultiMapView/MultiMapViewHarmonie.stories.d.ts +0 -2
- package/lib/components/MultiMapView/storyUtils/HarmonieTempAndPrecipPreset.d.ts +0 -6
- package/lib/components/SyncGroups/SyncGroupComponent.d.ts +0 -13
- package/lib/components/SyncGroups/SyncGroupDialog.d.ts +0 -7
- package/lib/utils/DimensionUtils.d.ts +0 -3
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { AppStore } from '../../../types/types';
|
|
2
2
|
import { ServiceState, ServiceLayer } from './types';
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Retrieves all serviceIds
|
|
5
|
+
*
|
|
6
|
+
* Example: serviceIds = getServiceIds(store)
|
|
7
|
+
* @param {object} store store: object - object from which the service state will be extracted
|
|
8
|
+
* @returns {array} returnType: array - an array of all serviceIds
|
|
9
|
+
*/
|
|
10
|
+
export declare const getServiceIds: import("reselect").OutputSelector<AppStore, string[], (res: ServiceState) => string[]>;
|
|
4
11
|
/**
|
|
5
12
|
* Gets map services
|
|
6
13
|
*
|
|
@@ -8,7 +15,7 @@ import { Dimension, Layer } from '../types';
|
|
|
8
15
|
* @param {object} store store: object - Store object
|
|
9
16
|
* @returns {object} returnType: ServiceState
|
|
10
17
|
*/
|
|
11
|
-
export declare const getServices: import("reselect").OutputSelector<AppStore,
|
|
18
|
+
export declare const getServices: import("reselect").OutputSelector<AppStore, import("./types").Services, (res: ServiceState) => import("./types").Services>;
|
|
12
19
|
/**
|
|
13
20
|
* Gets map layers from servicename
|
|
14
21
|
*
|
|
@@ -17,40 +24,3 @@ export declare const getServices: import("reselect").OutputSelector<AppStore, an
|
|
|
17
24
|
* @returns {array} returnType: ServiceLayer[]
|
|
18
25
|
*/
|
|
19
26
|
export declare const getServiceLayersByName: (store: AppStore, serviceName: string) => ServiceLayer[];
|
|
20
|
-
/**
|
|
21
|
-
* Gets all dimensions of a layer from a service
|
|
22
|
-
*
|
|
23
|
-
* Example: dimensions = getServiceLayerDimensions(store, 'layer-id')
|
|
24
|
-
* @param {object} store store: object - Store object
|
|
25
|
-
* @param {string} layerId layerId: string - Id of the layer
|
|
26
|
-
* @returns {array} returnType: Dimension[]
|
|
27
|
-
*/
|
|
28
|
-
export declare const getServiceLayerDimensions: (store: AppStore, layerId: string) => Dimension[];
|
|
29
|
-
/**
|
|
30
|
-
* Gets all non time dimensions of a layer from a service
|
|
31
|
-
*
|
|
32
|
-
* Example: nonTimeDimensions = getServiceLayerNonTimeDimensions(store, 'layer-id')
|
|
33
|
-
* @param {object} store store: object - Store object
|
|
34
|
-
* @param {string} layerId layerId: string - Id of the layer
|
|
35
|
-
* @returns {array} returnType: Dimension[]
|
|
36
|
-
*/
|
|
37
|
-
export declare const getServiceLayerNonTimeDimensions: import("reselect").OutputParametricSelector<AppStore, string, Dimension[], (res: Dimension[]) => Dimension[]>;
|
|
38
|
-
/**
|
|
39
|
-
* Gets layers from store by dimension name
|
|
40
|
-
*
|
|
41
|
-
* Example: layer = getServiceLayersByDimension(store, 'dimName')
|
|
42
|
-
* @param {object} store object from which the layer state will be extracted
|
|
43
|
-
* @param {string} dimName dimension Name that the returned layers should contain
|
|
44
|
-
* @returns {array} returnType:Layer[] array containing layers with desired dimension name
|
|
45
|
-
*/
|
|
46
|
-
export declare const getServiceLayersByDimension: (store: AppStore, dimName: string) => Layer[];
|
|
47
|
-
/**
|
|
48
|
-
* Gets layers from store by dimension name for a certain map
|
|
49
|
-
*
|
|
50
|
-
* Example: layer = getMapServiceLayersByDimension(store, 'dimName')
|
|
51
|
-
* @param {object} store object from which the layer state will be extracted
|
|
52
|
-
* @param {string} mapId ]Id of the map
|
|
53
|
-
* @param {string} dimName dimension Name that the returned layers should contain
|
|
54
|
-
* @returns {array} returnType:Layer[] array containing layers containting requested dimension for specified map
|
|
55
|
-
*/
|
|
56
|
-
export declare const getMapServiceLayersByDimension: (store: AppStore, mapId: string, dimName: string) => Layer[];
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { Style } from '@opengeoweb/webmap';
|
|
2
2
|
import { Action } from 'redux';
|
|
3
|
-
import {
|
|
4
|
-
import { MAP_SERVICES_SET_LAYERS, MAP_SERVICES_LAYER_SET_STYLES, MAP_SERVICES_LAYER_SET_DIMENSIONS } from './constants';
|
|
3
|
+
import { MAP_SERVICES_SET_LAYERS, MAP_SERVICES_LAYER_SET_STYLES } from './constants';
|
|
5
4
|
export interface ServicesLayerStyles {
|
|
6
5
|
styles: Record<string, unknown>[];
|
|
7
|
-
dimensions?: Dimension[];
|
|
8
6
|
}
|
|
9
7
|
export interface Services {
|
|
10
8
|
[key: string]: Service;
|
|
@@ -23,17 +21,8 @@ export interface ServiceLayer {
|
|
|
23
21
|
path: string;
|
|
24
22
|
}
|
|
25
23
|
export interface ServiceState {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
export interface SetLayerDimensionsForServicePayload {
|
|
29
|
-
origin?: string;
|
|
30
|
-
service: string;
|
|
31
|
-
name: string;
|
|
32
|
-
dimensions: Dimension[];
|
|
33
|
-
}
|
|
34
|
-
interface SetLayerDimensionsForService extends Action {
|
|
35
|
-
type: typeof MAP_SERVICES_LAYER_SET_DIMENSIONS;
|
|
36
|
-
payload: SetLayerDimensionsForServicePayload;
|
|
24
|
+
byId: Services;
|
|
25
|
+
allIds: string[];
|
|
37
26
|
}
|
|
38
27
|
export interface SetLayersForServicePayload {
|
|
39
28
|
service: string;
|
|
@@ -53,5 +42,5 @@ interface SetLayerStylesForService extends Action {
|
|
|
53
42
|
type: typeof MAP_SERVICES_LAYER_SET_STYLES;
|
|
54
43
|
payload: SetLayerStylesForServicePayload;
|
|
55
44
|
}
|
|
56
|
-
export declare type ServiceActions =
|
|
45
|
+
export declare type ServiceActions = SetLayersForService | SetLayerStylesForService;
|
|
57
46
|
export {};
|
|
@@ -2,6 +2,8 @@ import { WMJSMap, WMLayer } from '@opengeoweb/webmap';
|
|
|
2
2
|
import { Dimension, WMJSDimension } from '../types';
|
|
3
3
|
export declare const generateLayerId: () => string;
|
|
4
4
|
export declare const generateMapId: () => string;
|
|
5
|
+
export declare const generateTimesliderId: () => string;
|
|
6
|
+
export declare const generateScreenId: () => string;
|
|
5
7
|
/**
|
|
6
8
|
* Registers a WMJSLayer in a lookuptable with a layerId
|
|
7
9
|
* @param {WMLayer} wmLayer
|
|
@@ -1,29 +1,36 @@
|
|
|
1
|
-
import { SetActiveMapIdForDialogPayload, UIActions, UIRegisterDialogPayload, UIToggleDialogPayload, UIUnRegisterDialogPayload } from './types';
|
|
1
|
+
import { SetActiveMapIdForDialogPayload, UIActions, UIOrderDialogPayload, UIRegisterDialogPayload, UIToggleDialogPayload, UIUnRegisterDialogPayload } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* Registers the dialog in the store and creates the dialog state
|
|
4
4
|
*
|
|
5
5
|
* Example: registerDialog({'dialogId1', type: 'legend}) you can optionally specify the activeMapId and whether the dialog is open
|
|
6
|
-
* @param {string} payload {type: 'legend' | 'layerManager' | '
|
|
6
|
+
* @param {string} payload {type: 'legend' | 'layerManager' | 'dimensionSelect-elevation', activeMapId?: string, setOpen?: boolean}
|
|
7
7
|
*/
|
|
8
8
|
export declare const registerDialog: (payload: UIRegisterDialogPayload) => UIActions;
|
|
9
9
|
/**
|
|
10
10
|
* Deletes the dialog from the store (from both allIds and byId)
|
|
11
11
|
*
|
|
12
12
|
* Example: unregisterDialog({type: 'legend'})
|
|
13
|
-
* @param {string} payload {type: 'legend' | 'layerManager' | '
|
|
13
|
+
* @param {string} payload {type: 'legend' | 'layerManager' | 'dimensionSelect-elevation'}
|
|
14
14
|
*/
|
|
15
15
|
export declare const unregisterDialog: (payload: UIUnRegisterDialogPayload) => UIActions;
|
|
16
16
|
/**
|
|
17
17
|
* Sets the active map id for a dialogtype
|
|
18
18
|
*
|
|
19
19
|
* Example: setActiveMapIdForDialog({ activeMapId: 'mapId1', type: 'legend'})
|
|
20
|
-
* @param {object} payload object with activeMapId: string, type: 'legend' | 'layerManager' | '
|
|
20
|
+
* @param {object} payload object with activeMapId: string, type: 'legend' | 'layerManager' | 'dimensionSelect-elevation'
|
|
21
21
|
*/
|
|
22
22
|
export declare const setActiveMapIdForDialog: (payload: SetActiveMapIdForDialogPayload) => UIActions;
|
|
23
23
|
/**
|
|
24
24
|
* Toggles the open state to the boolean you pass in
|
|
25
25
|
*
|
|
26
26
|
* Example: setToggleOpenDialog({ type: 'legend', setOpen: true})
|
|
27
|
-
* @param {object} payload object with type: 'legend' | 'layerManager' | '
|
|
27
|
+
* @param {object} payload object with type: 'legend' | 'layerManager' | 'dimensionSelect-elevation', setOpen: boolean (new state of dialog)
|
|
28
28
|
*/
|
|
29
29
|
export declare const setToggleOpenDialog: (payload: UIToggleDialogPayload) => UIActions;
|
|
30
|
+
/**
|
|
31
|
+
* Orders UI element to top
|
|
32
|
+
*
|
|
33
|
+
* Example: orderDialog({ type: 'legend'})
|
|
34
|
+
* @param {object} payload object with type: 'legend' | 'layerManager' | 'dimensionSelect-elevation'
|
|
35
|
+
*/
|
|
36
|
+
export declare const orderDialog: (payload: UIOrderDialogPayload) => UIActions;
|
|
@@ -2,3 +2,4 @@ export declare const UI_SET_ACTIVE_MAPID_FOR_DIALOG = "UI_SET_ACTIVE_MAPID_FOR_D
|
|
|
2
2
|
export declare const UI_REGISTER_DIALOG = "UI_REGISTER_DIALOG";
|
|
3
3
|
export declare const UI_UNREGISTER_DIALOG = "UI_UNREGISTER_DIALOG";
|
|
4
4
|
export declare const UI_TOGGLE_DIALOG = "UI_TOGGLE_DIALOG";
|
|
5
|
+
export declare const UI_ORDER_DIALOG = "UI_ORDER_DIALOG";
|
|
@@ -1,10 +1,18 @@
|
|
|
1
|
-
import { DialogType, UIActions, UIStoreType, UIType } from './types';
|
|
1
|
+
import { DialogType, Source, UIActions, UIStoreType, UIType } from './types';
|
|
2
2
|
interface CreateUIDialogElementProps {
|
|
3
3
|
activeMapId: string;
|
|
4
4
|
type: DialogType;
|
|
5
5
|
setOpen: boolean;
|
|
6
|
+
source?: Source;
|
|
6
7
|
}
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
8
|
+
export declare const moveToTop: <Type>(list: Type[], element: Type) => Type[];
|
|
9
|
+
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;
|
|
10
18
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { AppStore } from '../../types/types';
|
|
2
|
-
import { UIType } from './types';
|
|
2
|
+
import { DialogType, UIType } from './types';
|
|
3
3
|
/**
|
|
4
4
|
* Gets the active map Id and wether a dialog is open or closed
|
|
5
5
|
*
|
|
6
6
|
* Example: getDialogDetailsByType(store, 'legend')
|
|
7
7
|
* @param {object} store store object from which the ui state wll be extracted
|
|
8
|
-
* @param {string} dialogType type of the dialog 'legend' | 'layerManager' | '
|
|
8
|
+
* @param {string} dialogType type of the dialog 'legend' | 'layerManager' | 'dimensionSelect-elevation'
|
|
9
9
|
* @returns {array} [string, boolean] first element gives the active map id, second element whether the dialog is open
|
|
10
10
|
*/
|
|
11
11
|
export declare const getDialogDetailsByType: (store: AppStore, dialogType: string) => UIType;
|
|
@@ -13,7 +13,7 @@ export declare const getDialogDetailsByType: (store: AppStore, dialogType: strin
|
|
|
13
13
|
* For a given ui component: gets wether the dialog is open or closed
|
|
14
14
|
*
|
|
15
15
|
* @param {object} store store object from which the ui state wll be extracted
|
|
16
|
-
* @param {string} dialogType type of the dialog 'legend' | 'layerManager' | '
|
|
16
|
+
* @param {string} dialogType type of the dialog 'legend' | 'layerManager' | 'dimensionSelect-elevation'
|
|
17
17
|
* @returns {array} [string, boolean] first element gives the active map id, second element whether the dialog is open
|
|
18
18
|
*/
|
|
19
19
|
export declare const getisDialogOpen: import("reselect").OutputParametricSelector<AppStore, string, boolean, (res: UIType) => boolean>;
|
|
@@ -21,7 +21,24 @@ export declare const getisDialogOpen: import("reselect").OutputParametricSelecto
|
|
|
21
21
|
*For a given ui component: gets the active map Id
|
|
22
22
|
*
|
|
23
23
|
* @param {object} store store object from which the ui state wll be extracted
|
|
24
|
-
* @param {string} dialogType type of the dialog 'legend' | 'layerManager' | '
|
|
24
|
+
* @param {string} dialogType type of the dialog 'legend' | 'layerManager' | 'dimensionSelect-elevation'
|
|
25
25
|
* @returns {array} [string, boolean] first element gives the active map id, second element whether the dialog is open
|
|
26
26
|
*/
|
|
27
27
|
export declare const getDialogMapId: import("reselect").OutputParametricSelector<AppStore, string, string, (res: UIType) => string>;
|
|
28
|
+
/**
|
|
29
|
+
*For a given ui component: gets the order of visible dialog
|
|
30
|
+
*
|
|
31
|
+
* @param {object} store store object from which the ui state wll be extracted
|
|
32
|
+
* @param {DialogType} dialogType type of the dialog 'legend' | 'layerManager' | 'dimensionSelect-elevation' | dimensionSelect-ensemble_member
|
|
33
|
+
* @returns {number} the higher the order number the higher the zIndex
|
|
34
|
+
*/
|
|
35
|
+
export declare const getDialogOrder: import("reselect").OutputParametricSelector<AppStore, DialogType, number, (res: number) => number>;
|
|
36
|
+
/**
|
|
37
|
+
*For a given ui component: returns if ordered on top
|
|
38
|
+
*
|
|
39
|
+
* @param {object} store store object from which the ui state wll be extracted
|
|
40
|
+
* @param {DialogType} dialogType type of the dialog 'legend' | 'layerManager' | 'dimensionSelect-elevation' | dimensionSelect-ensemble_member
|
|
41
|
+
* @returns {boolean}
|
|
42
|
+
*/
|
|
43
|
+
export declare const getDialogIsOrderedOnTop: import("reselect").OutputParametricSelector<AppStore, DialogType, boolean, (res: boolean) => boolean>;
|
|
44
|
+
export declare const getDialogSource: import("reselect").OutputParametricSelector<AppStore, string, import("./types").Source, (res: UIType) => import("./types").Source>;
|
package/lib/store/ui/types.d.ts
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
import { Action } from 'redux';
|
|
2
|
-
import { UI_SET_ACTIVE_MAPID_FOR_DIALOG, UI_REGISTER_DIALOG, UI_TOGGLE_DIALOG, UI_UNREGISTER_DIALOG } from './constants';
|
|
3
|
-
export declare type DialogType = 'legend' | 'layerManager' | '
|
|
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';
|
|
4
|
+
export declare type Source = 'app' | 'module';
|
|
4
5
|
export interface UIType {
|
|
5
6
|
type: DialogType;
|
|
6
7
|
activeMapId: string;
|
|
7
8
|
isOpen: boolean;
|
|
9
|
+
source?: Source;
|
|
10
|
+
}
|
|
11
|
+
export interface UIStoreType {
|
|
12
|
+
order: DialogType[];
|
|
13
|
+
dialogs: Partial<Record<DialogType, UIType>>;
|
|
8
14
|
}
|
|
9
|
-
export declare type UIStoreType = Partial<Record<DialogType, UIType>>;
|
|
10
15
|
export interface UIModuleState {
|
|
11
16
|
ui?: UIStoreType;
|
|
12
17
|
}
|
|
@@ -14,6 +19,7 @@ export interface SetActiveMapIdForDialogPayload {
|
|
|
14
19
|
type: DialogType;
|
|
15
20
|
activeMapId: string;
|
|
16
21
|
setOpen?: boolean;
|
|
22
|
+
source?: Source;
|
|
17
23
|
}
|
|
18
24
|
export interface SetActiveMapIdForDialog extends Action {
|
|
19
25
|
type: typeof UI_SET_ACTIVE_MAPID_FOR_DIALOG;
|
|
@@ -43,4 +49,11 @@ export interface UIToggleDialog extends Action {
|
|
|
43
49
|
type: typeof UI_TOGGLE_DIALOG;
|
|
44
50
|
payload: UIToggleDialogPayload;
|
|
45
51
|
}
|
|
46
|
-
export
|
|
52
|
+
export interface UIOrderDialogPayload {
|
|
53
|
+
type: DialogType;
|
|
54
|
+
}
|
|
55
|
+
export interface UIOrderDialog extends Action {
|
|
56
|
+
type: typeof UI_ORDER_DIALOG;
|
|
57
|
+
payload: UIOrderDialogPayload;
|
|
58
|
+
}
|
|
59
|
+
export declare type UIActions = SetActiveMapIdForDialog | UIRegisterDialog | UIUnRegisterDialog | UIToggleDialog | UIOrderDialog;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const availableDefaultBaseLayers: ({
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
type: string;
|
|
5
|
+
layerType: import("../store/mapStore/types").LayerType;
|
|
6
|
+
} | {
|
|
7
|
+
service: string;
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
layerType: import("../store/mapStore/types").LayerType;
|
|
11
|
+
})[];
|
|
12
|
+
export declare const preloadedDefaultBaseServices: {
|
|
13
|
+
name: string;
|
|
14
|
+
url: string;
|
|
15
|
+
id: string;
|
|
16
|
+
}[];
|
|
17
|
+
export declare const preloadedDefaultMapServices: {
|
|
18
|
+
name: string;
|
|
19
|
+
url: string;
|
|
20
|
+
id: string;
|
|
21
|
+
}[];
|
|
@@ -107,11 +107,6 @@ export declare const defaultReduxServices: {
|
|
|
107
107
|
legendURL: string;
|
|
108
108
|
abstracttext: string;
|
|
109
109
|
}[];
|
|
110
|
-
dimensions: {
|
|
111
|
-
name: string;
|
|
112
|
-
units: string;
|
|
113
|
-
currentValue: string;
|
|
114
|
-
}[];
|
|
115
110
|
};
|
|
116
111
|
MULTI_DIMENSION_LAYER: {
|
|
117
112
|
styles: {
|
|
@@ -147,17 +142,6 @@ export declare const defaultReduxServices: {
|
|
|
147
142
|
legendURL: string;
|
|
148
143
|
abstracttext: string;
|
|
149
144
|
}[];
|
|
150
|
-
dimensions: ({
|
|
151
|
-
name: string;
|
|
152
|
-
units: string;
|
|
153
|
-
currentValue: string;
|
|
154
|
-
values?: undefined;
|
|
155
|
-
} | {
|
|
156
|
-
name: string;
|
|
157
|
-
units: string;
|
|
158
|
-
currentValue: string;
|
|
159
|
-
values: string;
|
|
160
|
-
})[];
|
|
161
145
|
};
|
|
162
146
|
LAYER_WITHOUT_TIME: {
|
|
163
147
|
styles: {
|
|
@@ -193,12 +177,6 @@ export declare const defaultReduxServices: {
|
|
|
193
177
|
legendURL: string;
|
|
194
178
|
abstracttext: string;
|
|
195
179
|
}[];
|
|
196
|
-
dimensions: {
|
|
197
|
-
name: string;
|
|
198
|
-
units: string;
|
|
199
|
-
currentValue: string;
|
|
200
|
-
values: string;
|
|
201
|
-
}[];
|
|
202
180
|
};
|
|
203
181
|
};
|
|
204
182
|
};
|
|
@@ -333,17 +311,6 @@ export declare const WmMultiDimensionServices: {
|
|
|
333
311
|
legendURL: string;
|
|
334
312
|
abstracttext: string;
|
|
335
313
|
}[];
|
|
336
|
-
dimensions: ({
|
|
337
|
-
name: string;
|
|
338
|
-
units: string;
|
|
339
|
-
currentValue: string;
|
|
340
|
-
values: string;
|
|
341
|
-
} | {
|
|
342
|
-
name: string;
|
|
343
|
-
units: string;
|
|
344
|
-
currentValue: string;
|
|
345
|
-
values?: undefined;
|
|
346
|
-
})[];
|
|
347
314
|
};
|
|
348
315
|
};
|
|
349
316
|
};
|
|
@@ -357,20 +324,9 @@ export declare const WmMultiDimensionServices: {
|
|
|
357
324
|
layer: {
|
|
358
325
|
RADNL_OPER_R___25PCPRR_L3_KNMI: {
|
|
359
326
|
styles: any[];
|
|
360
|
-
dimensions: {
|
|
361
|
-
name: string;
|
|
362
|
-
units: string;
|
|
363
|
-
currentValue: string;
|
|
364
|
-
}[];
|
|
365
327
|
};
|
|
366
328
|
LAYER_WITHOUT_TIME: {
|
|
367
329
|
styles: any[];
|
|
368
|
-
dimensions: {
|
|
369
|
-
name: string;
|
|
370
|
-
units: string;
|
|
371
|
-
currentValue: string;
|
|
372
|
-
values: string;
|
|
373
|
-
}[];
|
|
374
330
|
};
|
|
375
331
|
};
|
|
376
332
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { WMJSDimension } from '@opengeoweb/webmap';
|
|
3
|
+
export interface Mark {
|
|
4
|
+
value: number | string;
|
|
5
|
+
label?: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare const marksByDimension: (dim: WMJSDimension) => Mark[];
|
|
8
|
+
/**
|
|
9
|
+
* Re-formats moment's isoString to the string that is expected by WMJSDimension (for time).
|
|
10
|
+
* @param dateIn The input date to re-format, usually in the format `YYYY-MM-DDThh:mm:ss.uuuZ`
|
|
11
|
+
* @returns The formated input date in the format `YYYY-MM-DDThh:mm:ssZ`
|
|
12
|
+
*/
|
|
13
|
+
export declare const handleMomentISOString: (dateIn: string) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|