@opengeoweb/core 4.19.0 → 4.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.esm.js +257 -161
- package/index.umd.js +271 -174
- package/lib/components/LayerManager/LayerContainerRow/LayerContainerRow.d.ts +2 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/DeleteLayer/DeleteLayerConnect.d.ts +2 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/DragHandle/DragHandle.d.ts +3 -1
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/EnableLayer/EnableLayerConnect.d.ts +2 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/LayerRowConnect.d.ts +2 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/Menubutton/MenuButton.d.ts +2 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/Menubutton/MenuButtonConnect.d.ts +2 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/OpacitySelect/OpacitySelect.d.ts +1 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/OpacitySelect/OpacitySelectConnect.d.ts +1 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderLayers/RenderLayers.d.ts +1 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderLayers/RenderLayersConnect.d.ts +1 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderStyles/RenderStyles.d.ts +2 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderStyles/RenderStylesConnect.d.ts +2 -0
- package/lib/components/LayerManager/LayerManagerUtils.d.ts +30 -0
- package/lib/index.d.ts +2 -2
- package/lib/store/generic/index.d.ts +2 -0
- package/lib/store/generic/synchronizationGroups/index.d.ts +1 -0
- package/lib/store/generic/synchronizationGroups/selectors.d.ts +1 -0
- package/lib/store/generic/synchronizationGroups/types.d.ts +5 -1
- package/package.json +6 -6
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { LayerManagerCustomSettings } from '../LayerManagerUtils';
|
|
2
3
|
interface LayerContainerRowProps {
|
|
3
4
|
mapId: string;
|
|
5
|
+
settings?: LayerManagerCustomSettings['content'];
|
|
4
6
|
}
|
|
5
7
|
declare const LayerContainerRow: React.FC<LayerContainerRowProps>;
|
|
6
8
|
/**
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
interface DragHandleProps {
|
|
3
3
|
isDisabled?: boolean;
|
|
4
4
|
index?: number;
|
|
5
5
|
hideTooltip?: boolean;
|
|
6
6
|
isSorting?: boolean;
|
|
7
|
+
icon?: ReactNode;
|
|
8
|
+
tooltipTitle?: string;
|
|
7
9
|
}
|
|
8
10
|
export declare const TOOLTIP_TITLE = "Drag";
|
|
9
11
|
declare const DragHandle: React.FC<DragHandleProps>;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { LayerManagerCustomSettings } from '../../LayerManagerUtils';
|
|
2
3
|
interface LayerRowConnectProps {
|
|
3
4
|
layerId: string;
|
|
4
5
|
mapId: string;
|
|
5
6
|
dragHandle: React.ReactElement;
|
|
6
7
|
layerIndex: number;
|
|
8
|
+
settings?: LayerManagerCustomSettings['content'];
|
|
7
9
|
}
|
|
8
10
|
declare const LayerRowConnect: React.FC<LayerRowConnectProps>;
|
|
9
11
|
export default LayerRowConnect;
|
package/lib/components/LayerManager/LayerContainerRow/LayerRow/Menubutton/MenuButtonConnect.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ import * as React from 'react';
|
|
|
2
2
|
interface LayerManagerButtonProps {
|
|
3
3
|
mapId: string;
|
|
4
4
|
layerId?: string;
|
|
5
|
+
tooltipTitle?: string;
|
|
6
|
+
icon?: React.ReactNode;
|
|
5
7
|
}
|
|
6
8
|
declare const LayerManagerMenuButtonConnect: React.FC<LayerManagerButtonProps>;
|
|
7
9
|
export default LayerManagerMenuButtonConnect;
|
package/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderStyles/RenderStyles.d.ts
CHANGED
|
@@ -5,6 +5,8 @@ export interface RenderStylesProps {
|
|
|
5
5
|
currentLayerStyle: string;
|
|
6
6
|
onChangeLayerStyle: (style: string) => void;
|
|
7
7
|
isEnabled?: boolean;
|
|
8
|
+
icon?: React.ElementType;
|
|
9
|
+
tooltipPrefix?: string;
|
|
8
10
|
}
|
|
9
11
|
declare const RenderStyles: React.FC<RenderStylesProps>;
|
|
10
12
|
export default RenderStyles;
|
|
@@ -172,6 +172,36 @@ export interface LayerManagerCustomSettings {
|
|
|
172
172
|
title: string;
|
|
173
173
|
};
|
|
174
174
|
};
|
|
175
|
+
content?: {
|
|
176
|
+
dragHandle?: {
|
|
177
|
+
tooltipTitle?: string;
|
|
178
|
+
icon?: React.ReactNode;
|
|
179
|
+
};
|
|
180
|
+
enableLayer?: {
|
|
181
|
+
enabledIcon?: React.ReactNode;
|
|
182
|
+
disabledIcon?: React.ReactNode;
|
|
183
|
+
enabledTooltipTitle?: string;
|
|
184
|
+
disabledTooltipTitle?: string;
|
|
185
|
+
};
|
|
186
|
+
renderLayer?: {
|
|
187
|
+
tooltipPrefix?: string;
|
|
188
|
+
};
|
|
189
|
+
layerStyle?: {
|
|
190
|
+
tooltipPrefix?: string;
|
|
191
|
+
icon?: React.ElementType;
|
|
192
|
+
};
|
|
193
|
+
opacity?: {
|
|
194
|
+
tooltipPrefix?: string;
|
|
195
|
+
};
|
|
196
|
+
deleteLayer?: {
|
|
197
|
+
tooltipTitle?: string;
|
|
198
|
+
icon?: React.ReactNode;
|
|
199
|
+
};
|
|
200
|
+
menu?: {
|
|
201
|
+
tooltipTitle?: string;
|
|
202
|
+
icon?: React.ReactNode;
|
|
203
|
+
};
|
|
204
|
+
};
|
|
175
205
|
footer?: {
|
|
176
206
|
baseLayerRow?: {
|
|
177
207
|
title?: string;
|
package/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { mapSelectors, uiActions, uiSelectors, layerActions, genericActions, snackbarActions, routerActions, appActions, layerSelectors, genericSelectors } from './store';
|
|
1
|
+
import { mapSelectors, uiActions, uiSelectors, layerActions, genericActions, snackbarActions, routerActions, appActions, layerSelectors, genericSelectors, syncGroupsSelectors } from './store';
|
|
2
2
|
import * as mapTypes from './store/mapStore/types';
|
|
3
3
|
import * as layerTypes from './store/mapStore/layers/types';
|
|
4
4
|
import * as mapUtils from './store/mapStore/map/utils';
|
|
@@ -83,7 +83,7 @@ export declare const mapActions: {
|
|
|
83
83
|
onUpdateLayerInformation: import("@reduxjs/toolkit").ActionCreatorWithPayload<mapTypes.UpdateLayerInfoPayload, string>;
|
|
84
84
|
setSelectedFeature: import("@reduxjs/toolkit").ActionCreatorWithPayload<mapTypes.SetSelectedFeaturePayload, string>;
|
|
85
85
|
};
|
|
86
|
-
export { mapSelectors, mapTypes, mapUtils, layerTypes, layerReducer, layerActions, uiActions, uiSelectors, uiTypes, genericActions as syncGroupActions, snackbarActions, appActions, layerSelectors, routerActions, genericSelectors, };
|
|
86
|
+
export { mapSelectors, mapTypes, mapUtils, layerTypes, layerReducer, layerActions, uiActions, uiSelectors, uiTypes, genericActions as syncGroupActions, snackbarActions, appActions, layerSelectors, routerActions, genericSelectors, syncGroupsSelectors, };
|
|
87
87
|
export { synchronizationGroupConfig as synchronizationGroupModuleConfig };
|
|
88
88
|
export * from './components/ComponentsLookUp';
|
|
89
89
|
export * from './components/ConfigurableMap';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { syncGroupsSelectors } from './synchronizationGroups';
|
|
1
2
|
export declare const genericActions: {
|
|
2
3
|
setTime: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetTimePayload, string>;
|
|
3
4
|
setBbox: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetBboxPayload, string>;
|
|
@@ -12,3 +13,4 @@ export declare const genericActions: {
|
|
|
12
13
|
syncGroupSetViewState: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./synchronizationGroups/types").SyncGroupSetViewStatePayload, string>;
|
|
13
14
|
};
|
|
14
15
|
export * as genericSelectors from './selectors';
|
|
16
|
+
export { syncGroupsSelectors };
|
|
@@ -26,6 +26,7 @@ export declare const getSynchronizationGroup: (state: AppStore, id: string) => S
|
|
|
26
26
|
export declare const getSynchronizationGroupSource: (state: AppStore, id: string) => SynchronizationSource;
|
|
27
27
|
export declare const getTargets: (state: AppStore, payload: GenericActionPayload, actionType: SyncType) => GenericSyncActionPayload[];
|
|
28
28
|
export declare const getTargetGroups: (state: AppStore, payload: GenericActionPayload, actionType: SyncType) => string[];
|
|
29
|
+
export declare const getAllTargetGroupsForSource: (state: AppStore, sourceId: string) => string[];
|
|
29
30
|
export declare const syncGroupGetViewState: ((state: {
|
|
30
31
|
syncronizationGroupStore?: SynchronizationGroupState | undefined;
|
|
31
32
|
ui?: import("../../ui/types").UIStoreType | undefined;
|
|
@@ -12,6 +12,7 @@ export interface SynchronizationGroup {
|
|
|
12
12
|
allIds: string[];
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
|
+
declare type Origin = 'user' | 'system';
|
|
15
16
|
export declare type SynchronizationSourcePayLoadByType = Record<string, GenericActionPayload>;
|
|
16
17
|
export interface SynchronizationSource {
|
|
17
18
|
types: SyncType[];
|
|
@@ -46,10 +47,12 @@ export interface SyncGroupAddTargetPayload {
|
|
|
46
47
|
groupId: string;
|
|
47
48
|
targetId: string;
|
|
48
49
|
linked?: boolean;
|
|
50
|
+
origin?: Origin;
|
|
49
51
|
}
|
|
50
52
|
export interface SyncGroupRemoveTargetPayload {
|
|
51
53
|
groupId: string;
|
|
52
54
|
targetId: string;
|
|
55
|
+
origin?: Origin;
|
|
53
56
|
}
|
|
54
57
|
export interface SyncGroupLinkTargetPayload {
|
|
55
58
|
linked: boolean;
|
|
@@ -60,7 +63,7 @@ export interface SyncGroupAddGroupPayload {
|
|
|
60
63
|
groupId: string;
|
|
61
64
|
title: string;
|
|
62
65
|
type: SyncType;
|
|
63
|
-
origin?:
|
|
66
|
+
origin?: Origin;
|
|
64
67
|
}
|
|
65
68
|
export interface SyncGroupRemoveGroupPayload {
|
|
66
69
|
groupId: string;
|
|
@@ -76,3 +79,4 @@ export declare enum SyncGroupActionOrigin {
|
|
|
76
79
|
add = "ORIGIN_GENERIC_SYNCHRONIZATIONGROUP_UTILS_ADDACTION",
|
|
77
80
|
activateLayerId = "ORIGIN_GENERIC_SYNCHRONIZATIONGROUP_UTILS_ACTIVELAYERIDACTION"
|
|
78
81
|
}
|
|
82
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/core",
|
|
3
|
-
"version": "4.19.
|
|
3
|
+
"version": "4.19.1",
|
|
4
4
|
"description": "GeoWeb Core library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
"dependencies": {},
|
|
14
14
|
"peerDependencies": {
|
|
15
15
|
"react": "^18.2.0",
|
|
16
|
-
"@opengeoweb/shared": "4.19.
|
|
16
|
+
"@opengeoweb/shared": "4.19.1",
|
|
17
17
|
"@mui/material": "^5.12.0",
|
|
18
|
-
"@opengeoweb/theme": "4.19.
|
|
18
|
+
"@opengeoweb/theme": "4.19.1",
|
|
19
19
|
"@mui/x-date-pickers": "^6.2.1",
|
|
20
20
|
"react-draggable": "^4.4.5",
|
|
21
21
|
"re-resizable": "^6.9.0",
|
|
@@ -25,17 +25,17 @@
|
|
|
25
25
|
"axios": "^0.25.0",
|
|
26
26
|
"date-fns": "^2.29.3",
|
|
27
27
|
"moment": "^2.29.0",
|
|
28
|
-
"@opengeoweb/webmap": "4.19.
|
|
28
|
+
"@opengeoweb/webmap": "4.19.1",
|
|
29
29
|
"throttle-debounce": "^3.0.1",
|
|
30
30
|
"proj4": "^2.6.2",
|
|
31
|
-
"@opengeoweb/api": "4.19.
|
|
31
|
+
"@opengeoweb/api": "4.19.1",
|
|
32
32
|
"react-intl": "^5.17.5",
|
|
33
33
|
"react-sortablejs": "^6.1.4",
|
|
34
34
|
"sortablejs": "^1.15.0",
|
|
35
35
|
"immer": "^9.0.15",
|
|
36
36
|
"@reduxjs/toolkit": "^1.8.3",
|
|
37
37
|
"react-window": "^1.8.7",
|
|
38
|
-
"@opengeoweb/form-fields": "4.19.
|
|
38
|
+
"@opengeoweb/form-fields": "4.19.1",
|
|
39
39
|
"react-hook-form": "^7.41.5",
|
|
40
40
|
"moment-timezone": "^0.5.31",
|
|
41
41
|
"react-resize-detector": "^9.1.0",
|