@opengeoweb/core 9.29.0 → 9.29.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 +68 -114
- package/package.json +1 -1
- package/src/lib/components/LanguageSelect/Languages.stories.d.ts +2 -1
- package/src/lib/components/LayerManager/BaseLayerRow/BaseLayerRow.d.ts +1 -1
- package/src/lib/components/LayerManager/DescriptionRow/DescriptionRow.d.ts +1 -1
- package/src/lib/components/LayerManager/LayerContainerRow/LayerContainerRow.d.ts +1 -1
- package/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect/BackwardForwardStepButtonConnect.d.ts +2 -1
- package/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect/SpeedButtonConnect.d.ts +2 -1
- package/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect/TimeSpanButtonConnect.d.ts +2 -1
package/index.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import React__default, { useState, useCallback, useRef } from 'react';
|
|
4
|
-
import {
|
|
4
|
+
import { Grid2, Box, MenuItem, Typography, useTheme, Popper, Fade, Tooltip, styled, LinearProgress, FormControl, InputLabel, Paper, List, ListItemButton, ListItemText, CircularProgress, ListSubheader, Dialog, DialogTitle, DialogContent, DialogContentText, TextField, InputAdornment, DialogActions, Button, circularProgressClasses, ListItemIcon, Checkbox } from '@mui/material';
|
|
5
5
|
import { SHARED_NAMESPACE, sharedTranslations, CustomIconButton, TooltipSelect, AlertIcon, sliderHeaderStyle, CustomSlider, ToggleMenu, CustomTooltip, tooltipContainerStyles, renderCounter, AlertBanner, CustomAccordion, PROJECTION, calculateStartSize, ToolContainerDraggable, useDebounce, dateUtils, withEggs, ErrorBoundary } from '@opengeoweb/shared';
|
|
6
6
|
import { CollapseSmall, CollapseMedium, CollapseLarge, CollapseWindow, ExpandWindow, LayersAdd, CloudLoading, Copy, None, FastForward, AutoUpdateActive, Both, Visibility, VisibilityOff, Delete, DragHandle as DragHandle$1, Cached, Add, MapAdd, WorldMapProjection, Layers, ExitDomain, Info, Search, Exclamation, MyLocation, Close, ThemeWrapper, lightTheme } from '@opengeoweb/theme';
|
|
7
7
|
import i18n from 'i18next';
|
|
@@ -2341,9 +2341,8 @@ const DescriptionRow = _a => {
|
|
|
2341
2341
|
})
|
|
2342
2342
|
}) : undefined);
|
|
2343
2343
|
const hasMapPresetsModule = mapPresetsModule !== undefined;
|
|
2344
|
-
return jsxs(
|
|
2344
|
+
return jsxs(Grid2, Object.assign({
|
|
2345
2345
|
container: true,
|
|
2346
|
-
item: true,
|
|
2347
2346
|
"data-testid": "descriptionRow",
|
|
2348
2347
|
sx: {
|
|
2349
2348
|
height: 40
|
|
@@ -2351,8 +2350,7 @@ const DescriptionRow = _a => {
|
|
|
2351
2350
|
className: "descriptionRow",
|
|
2352
2351
|
alignItems: "center"
|
|
2353
2352
|
}, gridProps, {
|
|
2354
|
-
children: [jsx(
|
|
2355
|
-
item: true,
|
|
2353
|
+
children: [jsx(Grid2, Object.assign({
|
|
2356
2354
|
className: columnClasses.column1,
|
|
2357
2355
|
sx: Object.assign(Object.assign({}, leftButtonsStyle), {
|
|
2358
2356
|
justifyContent: 'center',
|
|
@@ -2363,7 +2361,7 @@ const DescriptionRow = _a => {
|
|
|
2363
2361
|
tooltipTitle: (_b = settings === null || settings === void 0 ? void 0 : settings.addLayer) === null || _b === void 0 ? void 0 : _b.tooltipTitle,
|
|
2364
2362
|
icon: (_c = settings === null || settings === void 0 ? void 0 : settings.addLayer) === null || _c === void 0 ? void 0 : _c.icon
|
|
2365
2363
|
})
|
|
2366
|
-
})), jsxs(
|
|
2364
|
+
})), jsxs(Grid2, Object.assign({
|
|
2367
2365
|
className: columnClasses.column2
|
|
2368
2366
|
}, {
|
|
2369
2367
|
children: [jsx(Box, Object.assign({
|
|
@@ -2379,7 +2377,7 @@ const DescriptionRow = _a => {
|
|
|
2379
2377
|
}, {
|
|
2380
2378
|
children: mapPresetsModuleInline
|
|
2381
2379
|
}))]
|
|
2382
|
-
})), jsx(
|
|
2380
|
+
})), jsx(Grid2, Object.assign({
|
|
2383
2381
|
className: columnClasses.column3
|
|
2384
2382
|
}, {
|
|
2385
2383
|
children: jsx(Box, Object.assign({
|
|
@@ -2387,7 +2385,7 @@ const DescriptionRow = _a => {
|
|
|
2387
2385
|
}, {
|
|
2388
2386
|
children: (_g = (_f = settings === null || settings === void 0 ? void 0 : settings.layerStyle) === null || _f === void 0 ? void 0 : _f.title) !== null && _g !== void 0 ? _g : t('layermanager-style-title')
|
|
2389
2387
|
}))
|
|
2390
|
-
})), jsx(
|
|
2388
|
+
})), jsx(Grid2, Object.assign({
|
|
2391
2389
|
className: columnClasses.column4
|
|
2392
2390
|
}, {
|
|
2393
2391
|
children: jsx(Box, Object.assign({
|
|
@@ -2395,7 +2393,7 @@ const DescriptionRow = _a => {
|
|
|
2395
2393
|
}, {
|
|
2396
2394
|
children: (_j = (_h = settings === null || settings === void 0 ? void 0 : settings.opacity) === null || _h === void 0 ? void 0 : _h.title) !== null && _j !== void 0 ? _j : t('layermanager-opacity-title')
|
|
2397
2395
|
}))
|
|
2398
|
-
})), jsx(
|
|
2396
|
+
})), jsx(Grid2, Object.assign({
|
|
2399
2397
|
className: columnClasses.column5
|
|
2400
2398
|
}, {
|
|
2401
2399
|
children: jsx(Box, Object.assign({
|
|
@@ -2403,7 +2401,7 @@ const DescriptionRow = _a => {
|
|
|
2403
2401
|
}, {
|
|
2404
2402
|
children: (_l = (_k = settings === null || settings === void 0 ? void 0 : settings.dimensions) === null || _k === void 0 ? void 0 : _k.title) !== null && _l !== void 0 ? _l : t('layermanager-dimensions-title')
|
|
2405
2403
|
}))
|
|
2406
|
-
})), jsx(
|
|
2404
|
+
})), jsx(Grid2, Object.assign({
|
|
2407
2405
|
className: columnClasses.acceptanceTime
|
|
2408
2406
|
}, {
|
|
2409
2407
|
children: jsx(Box, Object.assign({
|
|
@@ -2413,7 +2411,7 @@ const DescriptionRow = _a => {
|
|
|
2413
2411
|
}, {
|
|
2414
2412
|
children: (_o = (_m = settings === null || settings === void 0 ? void 0 : settings.acceptanceTime) === null || _m === void 0 ? void 0 : _m.title) !== null && _o !== void 0 ? _o : t('layermanager-acceptance-time')
|
|
2415
2413
|
}))
|
|
2416
|
-
})), jsx(
|
|
2414
|
+
})), jsx(Grid2, Object.assign({
|
|
2417
2415
|
className: columnClasses.loadDuration
|
|
2418
2416
|
}, {
|
|
2419
2417
|
children: jsx(Box, Object.assign({
|
|
@@ -2424,7 +2422,7 @@ const DescriptionRow = _a => {
|
|
|
2424
2422
|
}, {
|
|
2425
2423
|
children: jsx(CloudLoading, {})
|
|
2426
2424
|
}))
|
|
2427
|
-
})), jsx(
|
|
2425
|
+
})), jsx(Grid2, {
|
|
2428
2426
|
className: columnClasses.column6
|
|
2429
2427
|
})]
|
|
2430
2428
|
}));
|
|
@@ -2948,15 +2946,14 @@ const DimensionSelect = ({
|
|
|
2948
2946
|
const defaultValueTooltip = (_d = defaultDimensionValueTooltip(selectedDimension)) !== null && _d !== void 0 ? _d : '';
|
|
2949
2947
|
const nameTooltip = (_e = tooltipGenerator === null || tooltipGenerator === void 0 ? void 0 : tooltipGenerator(selectedDimension)) !== null && _e !== void 0 ? _e : defaultNameTooltip;
|
|
2950
2948
|
const valueTooltip = (_f = tooltipGenerator === null || tooltipGenerator === void 0 ? void 0 : tooltipGenerator(selectedDimension, true)) !== null && _f !== void 0 ? _f : defaultValueTooltip;
|
|
2951
|
-
return jsx(
|
|
2949
|
+
return jsx(Grid2, Object.assign({
|
|
2952
2950
|
container: true,
|
|
2953
2951
|
direction: "row",
|
|
2954
2952
|
justifyContent: "flex-start",
|
|
2955
2953
|
alignItems: "center"
|
|
2956
2954
|
}, {
|
|
2957
|
-
children: jsxs(
|
|
2958
|
-
|
|
2959
|
-
xs: 12
|
|
2955
|
+
children: jsxs(Grid2, Object.assign({
|
|
2956
|
+
size: 12
|
|
2960
2957
|
}, {
|
|
2961
2958
|
children: [collapseDimensionDropdown ? jsx(SingleValueComponent, Object.assign({}, _layerDimensions[0], {
|
|
2962
2959
|
nameMappings: nameMappings,
|
|
@@ -3984,8 +3981,7 @@ const LayerRowUnstyled = ({
|
|
|
3984
3981
|
jsx("div", Object.assign({
|
|
3985
3982
|
className: className
|
|
3986
3983
|
}, {
|
|
3987
|
-
children: jsxs(
|
|
3988
|
-
item: true,
|
|
3984
|
+
children: jsxs(Grid2, Object.assign({
|
|
3989
3985
|
container: true,
|
|
3990
3986
|
"data-testid": `layerRow-${layerId}`,
|
|
3991
3987
|
className: "layerRow",
|
|
@@ -4028,8 +4024,7 @@ const LayerRowUnstyled = ({
|
|
|
4028
4024
|
DeleteLayer: layerDeleteLayout || jsx(DeleteLayer, {
|
|
4029
4025
|
onClick: deleteLayer
|
|
4030
4026
|
})
|
|
4031
|
-
}), jsx(
|
|
4032
|
-
item: true,
|
|
4027
|
+
}), jsx(Grid2, Object.assign({
|
|
4033
4028
|
className: columnClasses.column1,
|
|
4034
4029
|
alignItems: "center"
|
|
4035
4030
|
}, {
|
|
@@ -4044,8 +4039,7 @@ const LayerRowUnstyled = ({
|
|
|
4044
4039
|
onChangeEnable: changeEnable,
|
|
4045
4040
|
onChangeActive: onClickRow
|
|
4046
4041
|
})
|
|
4047
|
-
})), jsx(
|
|
4048
|
-
item: true,
|
|
4042
|
+
})), jsx(Grid2, Object.assign({
|
|
4049
4043
|
className: columnClasses.column2
|
|
4050
4044
|
}, {
|
|
4051
4045
|
children: layerServicesLayout || jsx(RenderLayers, {
|
|
@@ -4058,8 +4052,7 @@ const LayerRowUnstyled = ({
|
|
|
4058
4052
|
});
|
|
4059
4053
|
}
|
|
4060
4054
|
})
|
|
4061
|
-
})), _isLayerMissing ? jsx(
|
|
4062
|
-
item: true,
|
|
4055
|
+
})), _isLayerMissing ? jsx(Grid2, Object.assign({
|
|
4063
4056
|
className: columnClasses.column7
|
|
4064
4057
|
}, {
|
|
4065
4058
|
children: jsx(AlertBanner, {
|
|
@@ -4067,24 +4060,21 @@ const LayerRowUnstyled = ({
|
|
|
4067
4060
|
isCompact: true
|
|
4068
4061
|
})
|
|
4069
4062
|
})) : jsxs(Fragment, {
|
|
4070
|
-
children: [jsx(
|
|
4071
|
-
item: true,
|
|
4063
|
+
children: [jsx(Grid2, Object.assign({
|
|
4072
4064
|
className: columnClasses.column3
|
|
4073
4065
|
}, {
|
|
4074
4066
|
children: layerStylesLayout || jsx(Styles, {
|
|
4075
4067
|
style: layer.style,
|
|
4076
4068
|
onChangeStyle: changeStyle
|
|
4077
4069
|
})
|
|
4078
|
-
})), jsx(
|
|
4079
|
-
item: true,
|
|
4070
|
+
})), jsx(Grid2, Object.assign({
|
|
4080
4071
|
className: columnClasses.column4
|
|
4081
4072
|
}, {
|
|
4082
4073
|
children: layerOpacityLayout || jsx(Opacity, {
|
|
4083
4074
|
opacity: layer.opacity,
|
|
4084
4075
|
onChangeOpacity: changeOpacity
|
|
4085
4076
|
})
|
|
4086
|
-
})), jsx(
|
|
4087
|
-
item: true,
|
|
4077
|
+
})), jsx(Grid2, Object.assign({
|
|
4088
4078
|
className: columnClasses.column5
|
|
4089
4079
|
}, {
|
|
4090
4080
|
children: layerDimensionLayout || jsx(DimensionSelect, {
|
|
@@ -4101,16 +4091,14 @@ const LayerRowUnstyled = ({
|
|
|
4101
4091
|
});
|
|
4102
4092
|
}
|
|
4103
4093
|
})
|
|
4104
|
-
})), jsx(
|
|
4105
|
-
item: true,
|
|
4094
|
+
})), jsx(Grid2, Object.assign({
|
|
4106
4095
|
className: columnClasses.acceptanceTime
|
|
4107
4096
|
}, {
|
|
4108
4097
|
children: layerAcceptanceTimeLayout || jsx(Acceptance, {
|
|
4109
4098
|
acceptanceTime: layer.acceptanceTimeInMinutes,
|
|
4110
4099
|
onChangeAcceptanceTime: changeAcceptanceTime
|
|
4111
4100
|
})
|
|
4112
|
-
})), jsx(
|
|
4113
|
-
item: true,
|
|
4101
|
+
})), jsx(Grid2, Object.assign({
|
|
4114
4102
|
display: "flex",
|
|
4115
4103
|
justifyContent: "flex-end",
|
|
4116
4104
|
className: columnClasses.loadDuration
|
|
@@ -4120,8 +4108,7 @@ const LayerRowUnstyled = ({
|
|
|
4120
4108
|
mapId: mapId
|
|
4121
4109
|
})
|
|
4122
4110
|
}))]
|
|
4123
|
-
}), jsxs(
|
|
4124
|
-
item: true,
|
|
4111
|
+
}), jsxs(Grid2, Object.assign({
|
|
4125
4112
|
className: columnClasses.column6,
|
|
4126
4113
|
alignItems: "center"
|
|
4127
4114
|
}, {
|
|
@@ -4195,68 +4182,53 @@ const Accordion = ({
|
|
|
4195
4182
|
}))]
|
|
4196
4183
|
})
|
|
4197
4184
|
}, {
|
|
4198
|
-
children: jsxs(
|
|
4185
|
+
children: jsxs(Grid2, Object.assign({
|
|
4199
4186
|
container: true,
|
|
4200
4187
|
sx: {
|
|
4201
4188
|
padding: '16px 32px'
|
|
4202
4189
|
},
|
|
4203
4190
|
spacing: 3
|
|
4204
4191
|
}, {
|
|
4205
|
-
children: [jsxs(
|
|
4206
|
-
container: true
|
|
4207
|
-
item: true
|
|
4192
|
+
children: [jsxs(Grid2, Object.assign({
|
|
4193
|
+
container: true
|
|
4208
4194
|
}, {
|
|
4209
|
-
children: [jsx(
|
|
4210
|
-
item: true
|
|
4211
|
-
}, {
|
|
4195
|
+
children: [jsx(Grid2, {
|
|
4212
4196
|
children: t('layermanager-style-title')
|
|
4213
|
-
})
|
|
4214
|
-
})), jsxs(
|
|
4197
|
+
}), Styles]
|
|
4198
|
+
})), jsxs(Grid2, Object.assign({
|
|
4215
4199
|
container: true,
|
|
4216
|
-
item: true,
|
|
4217
4200
|
sx: {
|
|
4218
4201
|
'.MuiButtonBase-root': {
|
|
4219
4202
|
justifyContent: 'flex-start'
|
|
4220
4203
|
}
|
|
4221
4204
|
}
|
|
4222
4205
|
}, {
|
|
4223
|
-
children: [jsx(
|
|
4224
|
-
item: true
|
|
4225
|
-
}, {
|
|
4206
|
+
children: [jsx(Grid2, {
|
|
4226
4207
|
children: t('layermanager-opacity-title')
|
|
4227
|
-
})
|
|
4228
|
-
})), jsxs(
|
|
4229
|
-
container: true
|
|
4230
|
-
item: true
|
|
4208
|
+
}), Opacity]
|
|
4209
|
+
})), jsxs(Grid2, Object.assign({
|
|
4210
|
+
container: true
|
|
4231
4211
|
}, {
|
|
4232
|
-
children: [jsx(
|
|
4233
|
-
item: true
|
|
4234
|
-
}, {
|
|
4212
|
+
children: [jsx(Grid2, {
|
|
4235
4213
|
children: t('layermanager-acceptance-time')
|
|
4236
|
-
})
|
|
4237
|
-
})), jsxs(
|
|
4214
|
+
}), Acceptance]
|
|
4215
|
+
})), jsxs(Grid2, Object.assign({
|
|
4238
4216
|
container: true,
|
|
4239
|
-
item: true,
|
|
4240
4217
|
flexDirection: "column"
|
|
4241
4218
|
}, {
|
|
4242
|
-
children: [jsx(
|
|
4243
|
-
item: true
|
|
4244
|
-
}, {
|
|
4219
|
+
children: [jsx(Grid2, {
|
|
4245
4220
|
children: jsx(CloudLoading, {})
|
|
4246
|
-
})
|
|
4247
|
-
})), jsxs(
|
|
4221
|
+
}), LoadDuration]
|
|
4222
|
+
})), jsxs(Grid2, Object.assign({
|
|
4248
4223
|
container: true,
|
|
4249
|
-
item: true,
|
|
4250
4224
|
justifyContent: "center",
|
|
4251
4225
|
spacing: 2
|
|
4252
4226
|
}, {
|
|
4253
|
-
children: [jsx(
|
|
4254
|
-
item: true,
|
|
4227
|
+
children: [jsx(Grid2, Object.assign({
|
|
4255
4228
|
sx: {}
|
|
4256
4229
|
}, {
|
|
4257
4230
|
children: ShowLayerInfo
|
|
4258
|
-
})), jsx(
|
|
4259
|
-
item: true,
|
|
4231
|
+
})), jsx(Grid2, Object.assign({
|
|
4260
4232
|
sx: {}
|
|
4261
4233
|
}, {
|
|
4262
4234
|
children: DeleteLayer
|
|
@@ -5158,9 +5130,8 @@ const LayerContainerRow = /*#__PURE__*/React.memo(_a => {
|
|
|
5158
5130
|
});
|
|
5159
5131
|
}
|
|
5160
5132
|
}, [layerLength, rowsToDisplay]);
|
|
5161
|
-
return jsx(
|
|
5133
|
+
return jsx(Grid2, Object.assign({
|
|
5162
5134
|
container: true,
|
|
5163
|
-
item: true,
|
|
5164
5135
|
"data-testid": "layerContainerRow",
|
|
5165
5136
|
className: "layerContainerRow",
|
|
5166
5137
|
sx: {
|
|
@@ -5691,23 +5662,18 @@ const WMSServerList = ({
|
|
|
5691
5662
|
};
|
|
5692
5663
|
const sortedServices = [...availableServices].sort((a, b) => a.name.localeCompare(b.name));
|
|
5693
5664
|
return jsxs(Fragment, {
|
|
5694
|
-
children: [jsx(
|
|
5665
|
+
children: [jsx(Grid2, Object.assign({
|
|
5695
5666
|
container: true,
|
|
5696
5667
|
direction: "row",
|
|
5697
|
-
spacing: 1,
|
|
5698
5668
|
style: {
|
|
5699
|
-
height: '
|
|
5669
|
+
height: '26px'
|
|
5700
5670
|
}
|
|
5701
5671
|
}, {
|
|
5702
|
-
children: jsx(
|
|
5703
|
-
|
|
5672
|
+
children: jsx(InputLabel, Object.assign({
|
|
5673
|
+
shrink: true,
|
|
5674
|
+
htmlFor: "select-multiple-native"
|
|
5704
5675
|
}, {
|
|
5705
|
-
children:
|
|
5706
|
-
shrink: true,
|
|
5707
|
-
htmlFor: "select-multiple-native"
|
|
5708
|
-
}, {
|
|
5709
|
-
children: t('add-layer-popup-available-services')
|
|
5710
|
-
}))
|
|
5676
|
+
children: t('add-layer-popup-available-services')
|
|
5711
5677
|
}))
|
|
5712
5678
|
})), jsx(Paper, Object.assign({
|
|
5713
5679
|
style: {
|
|
@@ -5741,15 +5707,13 @@ const WMSLayerTreeHeader = ({
|
|
|
5741
5707
|
const {
|
|
5742
5708
|
t
|
|
5743
5709
|
} = useCoreTranslation();
|
|
5744
|
-
return jsxs(
|
|
5710
|
+
return jsxs(Grid2, Object.assign({
|
|
5745
5711
|
container: true,
|
|
5746
5712
|
direction: "row",
|
|
5747
5713
|
spacing: 1,
|
|
5748
5714
|
justifyContent: "space-between"
|
|
5749
5715
|
}, {
|
|
5750
|
-
children: [jsx(
|
|
5751
|
-
item: true
|
|
5752
|
-
}, {
|
|
5716
|
+
children: [jsx(Grid2, {
|
|
5753
5717
|
children: jsx(InputLabel, Object.assign({
|
|
5754
5718
|
shrink: true,
|
|
5755
5719
|
htmlFor: "select-multiple-native"
|
|
@@ -5758,9 +5722,7 @@ const WMSLayerTreeHeader = ({
|
|
|
5758
5722
|
serviceName
|
|
5759
5723
|
})
|
|
5760
5724
|
}))
|
|
5761
|
-
})
|
|
5762
|
-
item: true
|
|
5763
|
-
}, {
|
|
5725
|
+
}), onClickReload && jsx(Grid2, {
|
|
5764
5726
|
children: jsx(CustomIconButton, Object.assign({
|
|
5765
5727
|
tooltipTitle: t('add-layer-popup-reload-layers'),
|
|
5766
5728
|
"data-testid": "reloadLayers",
|
|
@@ -5768,7 +5730,7 @@ const WMSLayerTreeHeader = ({
|
|
|
5768
5730
|
}, {
|
|
5769
5731
|
children: jsx(Cached, {})
|
|
5770
5732
|
}))
|
|
5771
|
-
})
|
|
5733
|
+
})]
|
|
5772
5734
|
}));
|
|
5773
5735
|
};
|
|
5774
5736
|
|
|
@@ -6270,14 +6232,13 @@ const AddLayersPopup = ({
|
|
|
6270
6232
|
}), jsx(Box, Object.assign({
|
|
6271
6233
|
m: 2
|
|
6272
6234
|
}, {
|
|
6273
|
-
children: jsx(
|
|
6235
|
+
children: jsx(Grid2, Object.assign({
|
|
6274
6236
|
container: true,
|
|
6275
6237
|
direction: "row",
|
|
6276
6238
|
alignItems: "center"
|
|
6277
6239
|
}, {
|
|
6278
|
-
children: jsx(
|
|
6279
|
-
|
|
6280
|
-
xs: 12
|
|
6240
|
+
children: jsx(Grid2, Object.assign({
|
|
6241
|
+
size: 12
|
|
6281
6242
|
}, {
|
|
6282
6243
|
children: jsx(TextField, {
|
|
6283
6244
|
margin: "dense",
|
|
@@ -6328,24 +6289,22 @@ const AddLayersPopup = ({
|
|
|
6328
6289
|
})), jsx(Box, Object.assign({
|
|
6329
6290
|
m: 2
|
|
6330
6291
|
}, {
|
|
6331
|
-
children: jsxs(
|
|
6292
|
+
children: jsxs(Grid2, Object.assign({
|
|
6332
6293
|
container: true,
|
|
6333
6294
|
direction: "row",
|
|
6334
6295
|
alignItems: "center",
|
|
6335
6296
|
spacing: 3
|
|
6336
6297
|
}, {
|
|
6337
|
-
children: [jsx(
|
|
6338
|
-
|
|
6339
|
-
xs: 4
|
|
6298
|
+
children: [jsx(Grid2, Object.assign({
|
|
6299
|
+
size: 4
|
|
6340
6300
|
}, {
|
|
6341
6301
|
children: jsx(WMSServerList, {
|
|
6342
6302
|
availableServices: services,
|
|
6343
6303
|
service: activeService,
|
|
6344
6304
|
handleChangeService: handleChangeService
|
|
6345
6305
|
})
|
|
6346
|
-
})), jsx(
|
|
6347
|
-
|
|
6348
|
-
xs: 8
|
|
6306
|
+
})), jsx(Grid2, Object.assign({
|
|
6307
|
+
size: 8
|
|
6349
6308
|
}, {
|
|
6350
6309
|
children: onRenderTree ? onRenderTree(activeService) : jsx(WMSLayerTreeConnect, {
|
|
6351
6310
|
mapId: "",
|
|
@@ -6438,9 +6397,8 @@ const BaseLayerRow = _a => {
|
|
|
6438
6397
|
} = _a,
|
|
6439
6398
|
gridProps = __rest(_a, ["mapId", "preloadedAvailableBaseLayers", "preloadedServices", "tooltip", "settings"]);
|
|
6440
6399
|
const theme = useTheme();
|
|
6441
|
-
return jsxs(
|
|
6400
|
+
return jsxs(Grid2, Object.assign({
|
|
6442
6401
|
container: true,
|
|
6443
|
-
item: true,
|
|
6444
6402
|
"data-testid": "baseLayerRow",
|
|
6445
6403
|
className: "addLayer-column",
|
|
6446
6404
|
sx: Object.assign({
|
|
@@ -6448,8 +6406,7 @@ const BaseLayerRow = _a => {
|
|
|
6448
6406
|
height: '36px'
|
|
6449
6407
|
}, theme.palette.geowebColors.layerManager.baseLayerRow.root)
|
|
6450
6408
|
}, gridProps, {
|
|
6451
|
-
children: [jsxs(
|
|
6452
|
-
item: true,
|
|
6409
|
+
children: [jsxs(Grid2, Object.assign({
|
|
6453
6410
|
className: columnClasses.column1,
|
|
6454
6411
|
sx: [{
|
|
6455
6412
|
marginTop: '-2px'
|
|
@@ -6464,8 +6421,7 @@ const BaseLayerRow = _a => {
|
|
|
6464
6421
|
layerType: LayerType.baseLayer
|
|
6465
6422
|
})
|
|
6466
6423
|
}), (_d = settings === null || settings === void 0 ? void 0 : settings.baseLayerRow) === null || _d === void 0 ? void 0 : _d.title]
|
|
6467
|
-
})), jsx(
|
|
6468
|
-
item: true,
|
|
6424
|
+
})), jsx(Grid2, Object.assign({
|
|
6469
6425
|
className: columnClasses.column2
|
|
6470
6426
|
}, {
|
|
6471
6427
|
children: jsx(BaseLayersConnect, {
|
|
@@ -6577,7 +6533,7 @@ const ProjectionSelect = ({
|
|
|
6577
6533
|
const index = availableProjections.findIndex(projection => projection.value === currentProjection);
|
|
6578
6534
|
const currentProjectionObject = availableProjections.find(projection => projection.value === currentProjection);
|
|
6579
6535
|
const title = t('projection-title');
|
|
6580
|
-
return jsxs(
|
|
6536
|
+
return jsxs(Grid2, Object.assign({
|
|
6581
6537
|
container: true,
|
|
6582
6538
|
className: "setProjection-column",
|
|
6583
6539
|
sx: {
|
|
@@ -6585,8 +6541,7 @@ const ProjectionSelect = ({
|
|
|
6585
6541
|
height: '36px'
|
|
6586
6542
|
}
|
|
6587
6543
|
}, {
|
|
6588
|
-
children: [jsx(
|
|
6589
|
-
item: true,
|
|
6544
|
+
children: [jsx(Grid2, Object.assign({
|
|
6590
6545
|
className: columnClasses.column1,
|
|
6591
6546
|
sx: [{
|
|
6592
6547
|
marginTop: '-2px'
|
|
@@ -6601,8 +6556,7 @@ const ProjectionSelect = ({
|
|
|
6601
6556
|
}, {
|
|
6602
6557
|
children: jsx(WorldMapProjection, {})
|
|
6603
6558
|
}))
|
|
6604
|
-
})), jsx(
|
|
6605
|
-
item: true,
|
|
6559
|
+
})), jsx(Grid2, Object.assign({
|
|
6606
6560
|
className: columnClasses.column2
|
|
6607
6561
|
}, {
|
|
6608
6562
|
children: jsx(FormControl, Object.assign({
|
|
@@ -6802,7 +6756,7 @@ const LayerManager = ({
|
|
|
6802
6756
|
title: error,
|
|
6803
6757
|
shouldClose: true
|
|
6804
6758
|
})
|
|
6805
|
-
})), jsxs(
|
|
6759
|
+
})), jsxs(Grid2, Object.assign({
|
|
6806
6760
|
container: true,
|
|
6807
6761
|
"data-testid": "layerManagerRowContainer",
|
|
6808
6762
|
sx: styles$1.layerRowContainer
|
|
@@ -8382,7 +8336,7 @@ const GetFeatureInfoDialog = ({
|
|
|
8382
8336
|
if (!result) {
|
|
8383
8337
|
return null;
|
|
8384
8338
|
}
|
|
8385
|
-
return jsxs(
|
|
8339
|
+
return jsxs(Grid2, Object.assign({
|
|
8386
8340
|
sx: {
|
|
8387
8341
|
margin: '4px 6px 4px 6px',
|
|
8388
8342
|
padding: '6px',
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { Grid } from '@mui/material';
|
|
2
|
+
import { Grid2 as Grid } from '@mui/material';
|
|
3
3
|
import { layerTypes, serviceTypes } from '@opengeoweb/store';
|
|
4
4
|
import { LayerManagerCustomSettings } from '../LayerManagerUtils';
|
|
5
5
|
interface BaseLayerRowProps extends React.ComponentProps<typeof Grid> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { Grid } from '@mui/material';
|
|
2
|
+
import { Grid2 as Grid } from '@mui/material';
|
|
3
3
|
import { LayerManagerCustomSettings } from '../LayerManagerUtils';
|
|
4
4
|
interface LayerContainerRowProps extends React.ComponentProps<typeof Grid> {
|
|
5
5
|
mapId: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
export interface BackwardForwardStepButtonConnectProps {
|
|
2
3
|
mapId: string;
|
|
3
4
|
isForwardStep?: boolean;
|
|
4
5
|
}
|
|
5
|
-
export declare const BackwardForwardStepButtonConnect: ({ isForwardStep, mapId, }: BackwardForwardStepButtonConnectProps) =>
|
|
6
|
+
export declare const BackwardForwardStepButtonConnect: ({ isForwardStep, mapId, }: BackwardForwardStepButtonConnectProps) => React.ReactElement;
|
package/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect/SpeedButtonConnect.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
interface SpeedButtonConnectProps {
|
|
2
3
|
mapId: string;
|
|
3
4
|
}
|
|
4
|
-
export declare const SpeedButtonConnect: ({ mapId, }: SpeedButtonConnectProps) =>
|
|
5
|
+
export declare const SpeedButtonConnect: ({ mapId, }: SpeedButtonConnectProps) => React.ReactElement;
|
|
5
6
|
export {};
|
package/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect/TimeSpanButtonConnect.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
export interface TimeSpanButtonConnectProps {
|
|
2
3
|
mapId: string;
|
|
3
4
|
}
|
|
4
|
-
export declare const TimeSpanButtonConnect: ({ mapId, }: TimeSpanButtonConnectProps) =>
|
|
5
|
+
export declare const TimeSpanButtonConnect: ({ mapId, }: TimeSpanButtonConnectProps) => React.ReactElement;
|