@opengeoweb/core 9.33.1-spike-ol.6 → 9.35.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/core",
3
- "version": "9.33.1-spike-ol.6",
3
+ "version": "9.35.0",
4
4
  "description": "GeoWeb Core library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import { mapTypes, layerTypes } from '@opengeoweb/store';
3
+ import { TileServerSettings } from '@opengeoweb/webmap';
3
4
  export declare const defaultBbox: {
4
5
  srs: "EPSG:3857";
5
6
  bbox: {
@@ -17,6 +18,7 @@ export interface ConfigurableMapConnectProps {
17
18
  shouldAutoFetch?: boolean | number;
18
19
  title?: string;
19
20
  layers: layerTypes.Layer[];
21
+ tileServerSettings?: TileServerSettings;
20
22
  autoUpdateLayerId?: string;
21
23
  autoTimeStepLayerId?: string;
22
24
  bbox?: mapTypes.Bbox;
@@ -6,6 +6,8 @@ interface DescriptionRowProps extends React.ComponentProps<typeof Grid> {
6
6
  source?: uiTypes.Source;
7
7
  settings?: LayerManagerCustomSettings['header'];
8
8
  addLayerComponent?: React.ReactElement;
9
+ onToggleCollapsed?: (name: string) => void;
10
+ collapsedColumns?: Record<string, boolean>;
9
11
  }
10
12
  declare const DescriptionRow: React.FC<DescriptionRowProps>;
11
13
  export default DescriptionRow;
@@ -4,6 +4,7 @@ import { LayerManagerCustomSettings } from '../LayerManagerUtils';
4
4
  interface LayerContainerRowProps extends React.ComponentProps<typeof Grid> {
5
5
  mapId: string;
6
6
  settings?: LayerManagerCustomSettings['content'];
7
+ collapsedColumns?: Record<string, boolean>;
7
8
  }
8
9
  declare const LayerContainerRow: React.FC<LayerContainerRowProps>;
9
10
  /**
@@ -59,6 +59,7 @@ interface LayerRowUnstyledProps {
59
59
  dragHandle?: React.ReactElement;
60
60
  isLayerMissing?: boolean;
61
61
  className: string;
62
+ collapsedColumns?: Record<string, boolean>;
62
63
  }
63
64
  declare const LayerRow: import("@emotion/styled").StyledComponent<LayerRowProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
64
65
  isEnabled?: boolean | undefined;
@@ -5,6 +5,7 @@ interface LayerRowConnectProps {
5
5
  mapId: string;
6
6
  dragHandle: React.ReactElement;
7
7
  settings?: LayerManagerCustomSettings['content'];
8
+ collapsedColumns?: Record<string, boolean>;
8
9
  }
9
10
  declare const LayerRowConnect: React.FC<LayerRowConnectProps>;
10
11
  export default LayerRowConnect;
@@ -23,6 +23,7 @@ interface LayerManagerProps {
23
23
  settings?: LayerManagerCustomSettings;
24
24
  headerSize?: HeaderSize;
25
25
  addLayerComponent?: React.ReactElement;
26
+ defaultCollapsedColumns?: Record<string, boolean>;
26
27
  }
27
28
  declare const LayerManager: React.FC<LayerManagerProps>;
28
29
  export default LayerManager;
@@ -80,3 +80,11 @@ export declare const LayerManagerWithErrorDark: {
80
80
  (): React.ReactElement;
81
81
  tags: string[];
82
82
  };
83
+ export declare const LayerManagerCollapsedLight: {
84
+ (): React.ReactElement;
85
+ tags: string[];
86
+ };
87
+ export declare const LayerManagerCollapsedDark: {
88
+ (): React.ReactElement;
89
+ tags: string[];
90
+ };
@@ -12,6 +12,9 @@ export declare const columnClasses: {
12
12
  column7: string;
13
13
  acceptanceTime: string;
14
14
  loadDuration: string;
15
+ columnHeader: string;
16
+ baseLayer: string;
17
+ columnTarget: string;
15
18
  };
16
19
  export declare const leftButtonsStyle: {
17
20
  width: number;
@@ -19,25 +22,88 @@ export declare const leftButtonsStyle: {
19
22
  background: string;
20
23
  };
21
24
  export declare const layerManagerStyle: {
25
+ '.column-hover-icon': {
26
+ display: string;
27
+ };
28
+ '.columnHeader:hover': {
29
+ backgroundColor: string;
30
+ cursor: string;
31
+ '.column-hover-icon': {
32
+ display: string;
33
+ };
34
+ };
22
35
  '.layerManagerContainer': {
23
36
  containerType: string;
24
37
  };
38
+ '.descriptionRow': {
39
+ height: string;
40
+ marginTop: string;
41
+ marginBottom: string;
42
+ };
25
43
  '.is-dragging header+.MuiBox-root': {
26
44
  overflow: string;
27
45
  };
46
+ '.baseLayer': {
47
+ width: string;
48
+ };
28
49
  '.column-2': {
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;
29
59
  width: string;
30
60
  };
31
61
  '.column-3': {
62
+ height: string;
63
+ alignContent: string;
64
+ alignItems: string;
65
+ display: string;
66
+ justifyContent: string;
67
+ whiteSpace: string;
68
+ overflow: string;
69
+ color: string;
70
+ flexGrow: number;
32
71
  width: string;
33
72
  };
34
73
  '.column-4': {
74
+ flexGrow: number;
75
+ height: string;
76
+ alignContent: string;
77
+ alignItems: string;
78
+ display: string;
79
+ justifyContent: string;
80
+ whiteSpace: string;
81
+ overflow: string;
82
+ color: string;
35
83
  width: string;
36
84
  };
37
85
  '.column-5': {
86
+ height: string;
87
+ alignContent: string;
88
+ alignItems: string;
89
+ display: string;
90
+ justifyContent: string;
91
+ whiteSpace: string;
92
+ overflow: string;
93
+ color: string;
94
+ flexGrow: number;
38
95
  width: string;
39
96
  };
40
97
  '.column-acceptanceTime': {
98
+ flexGrow: number;
99
+ height: string;
100
+ alignContent: string;
101
+ alignItems: string;
102
+ display: string;
103
+ justifyContent: string;
104
+ whiteSpace: string;
105
+ overflow: string;
106
+ color: string;
41
107
  width: number;
42
108
  };
43
109
  '.column-loadDuration': {
@@ -76,7 +142,7 @@ export declare const layerManagerStyle: {
76
142
  '.activateLayer-btn, .enable-btn, .column-2, .column-3, .column-4, .column-5, .column-6, .column-7, .column-acceptanceTime, .column-loadDuration': {
77
143
  display: string;
78
144
  };
79
- '#mappresets-menubutton, .addLayer-column, .setProjection-column': {
145
+ '.addLayer-column, .setProjection-column': {
80
146
  display: string;
81
147
  };
82
148
  '.descriptionRow': {
@@ -106,10 +172,10 @@ export declare const layerManagerStyle: {
106
172
  };
107
173
  '@container (max-width: 600px)': {
108
174
  '.layermanager': {
109
- '.column-3, .column-4, .column-5, .column-6, .column-7, .column-acceptanceTime, .column-loadDuration': {
175
+ '.column-2, .column-3, .column-4, .column-5, .column-6, .column-7, .column-acceptanceTime, .column-loadDuration': {
110
176
  display: string;
111
177
  };
112
- '.column-2': {
178
+ '.columnLayerName, .baseLayer': {
113
179
  width: string;
114
180
  };
115
181
  };
@@ -10,6 +10,8 @@ interface SyncGroupViewerProps {
10
10
  syncGroupRemoveGroup: (payload: syncGroupsTypes.SyncGroupRemoveGroupPayload) => void;
11
11
  onMouseDown?: () => void;
12
12
  order?: number;
13
+ isTimeScrollingEnabled?: boolean;
14
+ toggleTimeScroll: (payload: syncGroupsTypes.SyncGroupToggleIsTimeScrollingEnabled) => void;
13
15
  }
14
16
  export declare const SyncGroupViewer: React.FC<SyncGroupViewerProps>;
15
17
  export {};
@@ -5,6 +5,7 @@ interface TimeSliderConnectProps {
5
5
  sourceId: string;
6
6
  mapId: string;
7
7
  isAlwaysVisible?: boolean;
8
+ mapWindowRef?: React.MutableRefObject<null>;
8
9
  }
9
10
  export declare const TimeSliderConnect: React.FC<TimeSliderConnectProps>;
10
11
  export {};
@@ -4,6 +4,7 @@ interface TimeSliderLegendConnectProps {
4
4
  onSetTimeSliderSpan?: (newSpan: number, newCenterTime: number, newSecondsPerPx: number) => void;
5
5
  unfilteredSelectedTime: number;
6
6
  setUnfilteredSelectedTime: (unfilteredSelectedTime: number) => void;
7
+ mapWindowRef?: React.MutableRefObject<HTMLElement | null>;
7
8
  }
8
9
  export declare const TimeSliderLegendConnect: React.FC<TimeSliderLegendConnectProps>;
9
10
  export {};
@@ -1,6 +1,5 @@
1
1
  import { mapTypes } from '@opengeoweb/store';
2
2
  import { TimeBounds } from '@opengeoweb/timeslider';
3
- export declare const useTurnOffAutoUpdateIfItsOn: (mapId: string) => (() => void);
4
3
  /**
5
4
  * Returns time bounds from the given dimension. If no time dimension given, current time is returned as default
6
5
  */