@opengeoweb/core 15.2.0 → 16.0.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/index.esm.js +2767 -2446
- package/package.json +10 -10
- package/src/lib/components/ClockConnect/ClockConnect.d.ts +2 -2
- package/src/lib/components/ClockConnect/ClockConnect.stories.d.ts +10 -0
- package/src/lib/components/ClockConnect/OptionsMenu.d.ts +9 -0
- package/src/lib/components/LayerInfoConnect/LayerInfoDialogConnect.d.ts +1 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/LayerRow.d.ts +1 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/LayerService/LayerService.d.ts +8 -0
- package/src/lib/components/LayerManager/LayerManager.d.ts +6 -2
- package/src/lib/components/LayerManager/LayerManagerConnect.persistence.spec.d.ts +1 -0
- package/src/lib/components/LayerManager/LayerManagerUtils.d.ts +20 -4
- package/src/lib/components/MapViewConnect/olMapUtils.d.ts +3 -3
- package/src/lib/components/SyncGroups/SyncGroupViewer.d.ts +1 -0
- package/src/lib/components/SyncGroups/SyncGroups.Naming.stories.d.ts +8 -0
- package/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect/AnimationLengthButtonConnect.spec.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "16.0.0",
|
|
4
4
|
"description": "GeoWeb Core library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -8,22 +8,22 @@
|
|
|
8
8
|
"url": "git@gitlab.com:opengeoweb/opengeoweb.git"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@opengeoweb/shared": "
|
|
11
|
+
"@opengeoweb/shared": "16.0.0",
|
|
12
12
|
"react-redux": "^9.2.0",
|
|
13
|
-
"@opengeoweb/store": "
|
|
14
|
-
"@opengeoweb/time-slider": "
|
|
13
|
+
"@opengeoweb/store": "16.0.0",
|
|
14
|
+
"@opengeoweb/time-slider": "16.0.0",
|
|
15
15
|
"@reduxjs/toolkit": "^2.6.1",
|
|
16
|
-
"@opengeoweb/webmap-react": "
|
|
17
|
-
"@opengeoweb/webmap": "
|
|
18
|
-
"@opengeoweb/theme": "
|
|
16
|
+
"@opengeoweb/webmap-react": "16.0.0",
|
|
17
|
+
"@opengeoweb/webmap": "16.0.0",
|
|
18
|
+
"@opengeoweb/theme": "16.0.0",
|
|
19
19
|
"axios": "^1.7.7",
|
|
20
|
-
"@opengeoweb/layer-select": "
|
|
20
|
+
"@opengeoweb/layer-select": "16.0.0",
|
|
21
21
|
"lodash": "^4.17.21",
|
|
22
22
|
"ol": "^10.4.0",
|
|
23
23
|
"react-sortablejs": "^6.1.4",
|
|
24
24
|
"sortablejs": "^1.15.1",
|
|
25
25
|
"@mui/system": "^7.3.2",
|
|
26
|
-
"@opengeoweb/snackbar": "
|
|
26
|
+
"@opengeoweb/snackbar": "16.0.0",
|
|
27
27
|
"react-router-dom": "^6.21.0",
|
|
28
28
|
"react-draggable": "^4.4.6",
|
|
29
29
|
"i18next": "^25.0.1",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"dompurify": "^3.0.6",
|
|
32
32
|
"@mui/material": "^7.0.1",
|
|
33
33
|
"@tanstack/react-query": "^5.85.5",
|
|
34
|
-
"@opengeoweb/api": "
|
|
34
|
+
"@opengeoweb/api": "16.0.0",
|
|
35
35
|
"@types/geojson": "^7946.0.14",
|
|
36
36
|
"@turf/turf": "^7.2.0",
|
|
37
37
|
"proj4": "^2.15.0"
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
import { ClockConnect } from './ClockConnect';
|
|
3
|
+
declare const meta: Meta<typeof ClockConnect>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof ClockConnect>;
|
|
6
|
+
export declare const ClockConnectLight: Story;
|
|
7
|
+
export declare const ClockConnectLightOpen: Story;
|
|
8
|
+
export declare const ClockConnectDarkOpen: Story;
|
|
9
|
+
export declare const ClockConnectLightOpenLarge: Story;
|
|
10
|
+
export declare const ClockConnectDarkOpenLarge: Story;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
export type PopperPlacement = 'right' | 'left' | 'top' | 'bottom';
|
|
3
|
+
export declare const getPopperplacement: (buttonElement: HTMLButtonElement | null, mapId: string) => PopperPlacement;
|
|
4
|
+
export declare const OptionsMenu: FC<{
|
|
5
|
+
isOpen?: boolean;
|
|
6
|
+
popperPlacement: PopperPlacement;
|
|
7
|
+
buttonElement: HTMLButtonElement | null;
|
|
8
|
+
mapId: string;
|
|
9
|
+
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { Position, DraggableSize, HeaderSize } from '@opengeoweb/shared';
|
|
3
|
-
import type { layerTypes, serviceTypes, uiTypes } from '@opengeoweb/store';
|
|
2
|
+
import type { DraggablePosition, Position, DraggableSize, HeaderSize } from '@opengeoweb/shared';
|
|
3
|
+
import type { layerTypes, mapTypes, serviceTypes, uiTypes } from '@opengeoweb/store';
|
|
4
4
|
import type { LayerManagerCustomSettings } from './LayerManagerUtils';
|
|
5
5
|
interface LayerManagerProps {
|
|
6
6
|
mapId: string;
|
|
@@ -17,7 +17,11 @@ interface LayerManagerProps {
|
|
|
17
17
|
error?: string;
|
|
18
18
|
isDockedLayerManager?: boolean;
|
|
19
19
|
onToggleDock?: () => void;
|
|
20
|
+
onDockedLayerManagerDragEnd?: (position: DraggablePosition) => void;
|
|
21
|
+
onDockedLayerManagerSizeChange?: (size: mapTypes.DockedLayerManagerSize) => void;
|
|
22
|
+
onDockedLayerManagerDimensionsChange?: (dimensions: mapTypes.DockedLayerManagerDimensions) => void;
|
|
20
23
|
size?: DraggableSize;
|
|
24
|
+
startDraggablePosition?: DraggablePosition;
|
|
21
25
|
startPosition?: Position;
|
|
22
26
|
settings?: LayerManagerCustomSettings;
|
|
23
27
|
headerSize?: HeaderSize;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -3,6 +3,7 @@ import type { DimensionTooltipGenerator, SingleValueComponentProps } from './Lay
|
|
|
3
3
|
import type { Size, ToolbarButtonSettings } from './LayerManagerHeaderOptions';
|
|
4
4
|
export declare const columnClasses: {
|
|
5
5
|
column1: string;
|
|
6
|
+
columnService: string;
|
|
6
7
|
column2: string;
|
|
7
8
|
column3: string;
|
|
8
9
|
column4: string;
|
|
@@ -45,6 +46,18 @@ export declare const layerManagerStyle: {
|
|
|
45
46
|
'.baseLayer': {
|
|
46
47
|
width: string;
|
|
47
48
|
};
|
|
49
|
+
'.column-service': {
|
|
50
|
+
height: string;
|
|
51
|
+
alignContent: string;
|
|
52
|
+
alignItems: string;
|
|
53
|
+
display: string;
|
|
54
|
+
justifyContent: string;
|
|
55
|
+
whiteSpace: string;
|
|
56
|
+
overflow: string;
|
|
57
|
+
color: string;
|
|
58
|
+
flexGrow: number;
|
|
59
|
+
width: string;
|
|
60
|
+
};
|
|
48
61
|
'.column-2': {
|
|
49
62
|
height: string;
|
|
50
63
|
alignContent: string;
|
|
@@ -70,6 +83,7 @@ export declare const layerManagerStyle: {
|
|
|
70
83
|
width: string;
|
|
71
84
|
};
|
|
72
85
|
'.column-4': {
|
|
86
|
+
flexGrow: number;
|
|
73
87
|
height: string;
|
|
74
88
|
alignContent: string;
|
|
75
89
|
alignItems: string;
|
|
@@ -78,8 +92,7 @@ export declare const layerManagerStyle: {
|
|
|
78
92
|
whiteSpace: string;
|
|
79
93
|
overflow: string;
|
|
80
94
|
color: string;
|
|
81
|
-
|
|
82
|
-
width: string;
|
|
95
|
+
width: number;
|
|
83
96
|
};
|
|
84
97
|
'.column-5': {
|
|
85
98
|
height: string;
|
|
@@ -138,7 +151,7 @@ export declare const layerManagerStyle: {
|
|
|
138
151
|
'.enable-btn-mini': {
|
|
139
152
|
display: string;
|
|
140
153
|
};
|
|
141
|
-
'.activateLayer-btn, .enable-btn, .column-2, .column-3, .column-4, .column-5, .column-6, .column-7, .column-acceptanceTime, .column-loadDuration': {
|
|
154
|
+
'.activateLayer-btn, .enable-btn, .column-service, .column-2, .column-3, .column-4, .column-5, .column-6, .column-7, .column-acceptanceTime, .column-loadDuration': {
|
|
142
155
|
display: string;
|
|
143
156
|
};
|
|
144
157
|
'.addLayer-column, .setProjection-column, .overlayers-column': {
|
|
@@ -171,7 +184,7 @@ export declare const layerManagerStyle: {
|
|
|
171
184
|
};
|
|
172
185
|
'@container (max-width: 600px)': {
|
|
173
186
|
'.layermanager': {
|
|
174
|
-
'.column-2, .column-3, .column-4, .column-5, .column-6, .column-7, .column-acceptanceTime, .column-loadDuration': {
|
|
187
|
+
'.column-service, .column-2, .column-3, .column-4, .column-5, .column-6, .column-7, .column-acceptanceTime, .column-loadDuration': {
|
|
175
188
|
display: string;
|
|
176
189
|
};
|
|
177
190
|
'.columnLayerName, .baseLayer': {
|
|
@@ -229,6 +242,9 @@ export interface LayerManagerCustomSettings {
|
|
|
229
242
|
tooltipTitle?: string;
|
|
230
243
|
icon?: React.ReactNode;
|
|
231
244
|
};
|
|
245
|
+
layerService?: {
|
|
246
|
+
title: string;
|
|
247
|
+
};
|
|
232
248
|
layerName?: {
|
|
233
249
|
title: string;
|
|
234
250
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Feature, View } from 'ol';
|
|
2
|
-
import type {
|
|
2
|
+
import type { TimeSliderStartEndStep } from '@opengeoweb/store';
|
|
3
3
|
import type { Dimension, RefTimeDimensionModes } from '@opengeoweb/webmap';
|
|
4
4
|
import type { MapLocation, OnInitializeLayerProps, TimeContextType, UpdateLayerInfoPayload } from '@opengeoweb/webmap-react';
|
|
5
|
-
export declare const makePrefetchTimeSpan: (timeSliderStartCenterEndTime:
|
|
6
|
-
export declare const usePrefetchTimeSpan: (timeSliderStartCenterEndTime:
|
|
5
|
+
export declare const makePrefetchTimeSpan: (timeSliderStartCenterEndTime: TimeSliderStartEndStep, isAnimating: boolean, prefetchList: number[]) => TimeContextType;
|
|
6
|
+
export declare const usePrefetchTimeSpan: (timeSliderStartCenterEndTime: TimeSliderStartEndStep, isAnimating: boolean, animationList: number[], refTimeDimensionModes?: RefTimeDimensionModes) => TimeContextType;
|
|
7
7
|
export declare const makeLayerInfoPayload: (payload: OnInitializeLayerProps, mapDimensions: Dimension[], mapId: string) => UpdateLayerInfoPayload;
|
|
8
8
|
export declare const getCenterOfLinkedFeature: (feature: Feature | undefined, srs: string) => MapLocation | null;
|
|
9
9
|
interface UseFitAndHighlightWarningFeatureOptions {
|
|
@@ -12,6 +12,7 @@ interface SyncGroupViewerProps {
|
|
|
12
12
|
order?: number;
|
|
13
13
|
isTimeScrollingEnabled?: boolean;
|
|
14
14
|
toggleTimeScroll: (payload: syncGroupsTypes.SyncGroupToggleIsTimeScrollingEnabled) => void;
|
|
15
|
+
toggleSyncGroupsViewer: (isOpen: boolean) => void;
|
|
15
16
|
}
|
|
16
17
|
export declare const SyncGroupViewer: React.FC<SyncGroupViewerProps>;
|
|
17
18
|
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
import { SyncGroupViewer } from './SyncGroupViewer';
|
|
3
|
+
declare const meta: Meta<typeof SyncGroupViewer>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof SyncGroupViewer>;
|
|
6
|
+
export declare const UnsavedViews: Story;
|
|
7
|
+
export declare const SavedViews: Story;
|
|
8
|
+
export declare const MixedViews: Story;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { WebMapStateModuleState } from '@opengeoweb/store';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const mockStateMapWithAnimationEndWithoutLayers: (mapId: string, animationEndTime: string) => WebMapStateModuleState;
|