@opengeoweb/shared 9.19.0 → 9.20.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 +1455 -1067
- package/package.json +2 -2
- package/src/lib/components/CustomIconButton/CustomIconButton.d.ts +1 -1
- package/src/lib/components/CustomToggleButton/CustomToggleButton.d.ts +1 -1
- package/src/lib/components/ToolContainer/ToolContainerDraggable.d.ts +0 -2
- package/src/lib/types/types.d.ts +1 -0
package/index.esm.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import React__default, { useRef, Component } from 'react';
|
|
1
|
+
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
3
2
|
import { Box, Typography, Tooltip, IconButton, Dialog, DialogTitle, DialogContent, DialogActions, Button, CircularProgress, Alert, AlertTitle, useTheme, Drawer, Link, Avatar as Avatar$1, Paper, ClickAwayListener, MenuList, MenuItem, Grid, RadioGroup, FormControlLabel, Radio, List, ListItem, Tabs, Tab, Backdrop, Switch, Slider, ToggleButton, Menu, ListSubheader, ListItemText, ListItemIcon, Select, Accordion, AccordionSummary, AccordionDetails, FormLabel, TextField, InputAdornment } from '@mui/material';
|
|
4
3
|
import { Close, Exclamation, Success, Info, ChevronRight, GeoWebLogo, HamburgerMenu, Resize, Admin, useThemeContext, DragHandle, ArrowLeft, ArrowRight, KeyOption, ArrowUp, ArrowDown, KeyCommand, Options, ChevronDown, Search, Clear, Cached } from '@opengeoweb/theme';
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import React__default, { useRef, Component } from 'react';
|
|
5
6
|
import i18n from 'i18next';
|
|
6
7
|
import { initReactI18next, useTranslation } from 'react-i18next';
|
|
7
8
|
import { throttle, escapeRegExp, debounce } from 'lodash';
|
|
@@ -10,7 +11,7 @@ import { Resizable } from 're-resizable';
|
|
|
10
11
|
import * as Sentry from '@sentry/react';
|
|
11
12
|
import { styled } from '@mui/material/styles';
|
|
12
13
|
import { useStore } from 'react-redux';
|
|
13
|
-
import { parseISO, parse, format, isEqual, add as add$1, sub as sub$1, differenceInYears as differenceInYears$1, differenceInMonths as differenceInMonths$1, differenceInDays as differenceInDays$1, differenceInMinutes as differenceInMinutes$1, differenceInHours as differenceInHours$1, differenceInSeconds as differenceInSeconds$1, isBefore as isBefore$1, isAfter as isAfter$1, isValid as isValid$1, getUnixTime, fromUnixTime, set as set$3, getHours as getHours$1, startOfDay, addMinutes, addHours,
|
|
14
|
+
import { parseISO, parse, format, isEqual, add as add$1, sub as sub$1, differenceInYears as differenceInYears$1, differenceInMonths as differenceInMonths$1, differenceInDays as differenceInDays$1, differenceInMinutes as differenceInMinutes$1, differenceInHours as differenceInHours$1, differenceInSeconds as differenceInSeconds$1, isBefore as isBefore$1, isAfter as isAfter$1, isValid as isValid$1, getUnixTime, fromUnixTime, set as set$3, getHours as getHours$1, startOfDay, addMinutes, addHours, getDay, getDayOfYear, getMonth, getWeek, getYear, isWithinInterval } from 'date-fns';
|
|
14
15
|
import configureStore from 'redux-mock-store';
|
|
15
16
|
import { configureStore as configureStore$1 } from '@reduxjs/toolkit';
|
|
16
17
|
|
|
@@ -540,7 +541,9 @@ var store$3 = sharedStore.exports = globalThis$1[SHARED] || defineGlobalProperty
|
|
|
540
541
|
source: 'https://github.com/zloirock/core-js'
|
|
541
542
|
});
|
|
542
543
|
|
|
543
|
-
var
|
|
544
|
+
var sharedStoreExports = sharedStore.exports;
|
|
545
|
+
|
|
546
|
+
var store$2 = sharedStoreExports;
|
|
544
547
|
|
|
545
548
|
var shared$4 = function (key, value) {
|
|
546
549
|
return store$2[key] || (store$2[key] = value || {});
|
|
@@ -782,7 +785,7 @@ var functionName = {
|
|
|
782
785
|
|
|
783
786
|
var uncurryThis$j = functionUncurryThis;
|
|
784
787
|
var isCallable$h = isCallable$n;
|
|
785
|
-
var store$1 =
|
|
788
|
+
var store$1 = sharedStoreExports;
|
|
786
789
|
|
|
787
790
|
var functionToString = uncurryThis$j(Function.toString);
|
|
788
791
|
|
|
@@ -818,7 +821,7 @@ var global$h = global$p;
|
|
|
818
821
|
var isObject$9 = isObject$e;
|
|
819
822
|
var createNonEnumerableProperty$8 = createNonEnumerableProperty$9;
|
|
820
823
|
var hasOwn$a = hasOwnProperty_1;
|
|
821
|
-
var shared$1 =
|
|
824
|
+
var shared$1 = sharedStoreExports;
|
|
822
825
|
var sharedKey$2 = sharedKey$3;
|
|
823
826
|
var hiddenKeys$3 = hiddenKeys$4;
|
|
824
827
|
|
|
@@ -939,9 +942,11 @@ Function.prototype.toString = makeBuiltIn$2(function toString() {
|
|
|
939
942
|
return isCallable$f(this) && getInternalState$3(this).source || inspectSource$2(this);
|
|
940
943
|
}, 'toString');
|
|
941
944
|
|
|
945
|
+
var makeBuiltInExports = makeBuiltIn$3.exports;
|
|
946
|
+
|
|
942
947
|
var isCallable$e = isCallable$n;
|
|
943
948
|
var definePropertyModule$2 = objectDefineProperty;
|
|
944
|
-
var makeBuiltIn$1 =
|
|
949
|
+
var makeBuiltIn$1 = makeBuiltInExports;
|
|
945
950
|
var defineGlobalProperty$1 = defineGlobalProperty$3;
|
|
946
951
|
|
|
947
952
|
var defineBuiltIn$8 = function (O, key, value, options) {
|
|
@@ -1306,6 +1311,8 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
1306
1311
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
1307
1312
|
PERFORMANCE OF THIS SOFTWARE.
|
|
1308
1313
|
***************************************************************************** */
|
|
1314
|
+
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
1315
|
+
|
|
1309
1316
|
|
|
1310
1317
|
function __rest(s, e) {
|
|
1311
1318
|
var t = {};
|
|
@@ -1374,7 +1381,7 @@ const StatusTag = _a => {
|
|
|
1374
1381
|
icon
|
|
1375
1382
|
} = _a,
|
|
1376
1383
|
props = __rest(_a, ["content", "color", "icon"]);
|
|
1377
|
-
return
|
|
1384
|
+
return jsxs(Box, Object.assign({
|
|
1378
1385
|
display: "flex",
|
|
1379
1386
|
alignItems: "center",
|
|
1380
1387
|
textAlign: "center",
|
|
@@ -1382,17 +1389,23 @@ const StatusTag = _a => {
|
|
|
1382
1389
|
className: "statusTag",
|
|
1383
1390
|
position: "relative",
|
|
1384
1391
|
sx: Object.assign(Object.assign({}, tagStyle(color)), props.sx)
|
|
1385
|
-
},
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
},
|
|
1394
|
-
|
|
1395
|
-
|
|
1392
|
+
}, {
|
|
1393
|
+
children: [jsx(Box, Object.assign({
|
|
1394
|
+
sx: {
|
|
1395
|
+
position: 'absolute',
|
|
1396
|
+
color: 'geowebColors.iconButtons.flat.default.color'
|
|
1397
|
+
}
|
|
1398
|
+
}, {
|
|
1399
|
+
children: icon
|
|
1400
|
+
})), jsx(Typography, Object.assign({
|
|
1401
|
+
sx: {
|
|
1402
|
+
width: '100%'
|
|
1403
|
+
},
|
|
1404
|
+
variant: "caption"
|
|
1405
|
+
}, {
|
|
1406
|
+
children: content
|
|
1407
|
+
}))]
|
|
1408
|
+
}));
|
|
1396
1409
|
};
|
|
1397
1410
|
|
|
1398
1411
|
var wellKnownSymbol$h = wellKnownSymbol$j;
|
|
@@ -1443,7 +1456,7 @@ var toString$c = function (argument) {
|
|
|
1443
1456
|
return $String$1(argument);
|
|
1444
1457
|
};
|
|
1445
1458
|
|
|
1446
|
-
var makeBuiltIn =
|
|
1459
|
+
var makeBuiltIn = makeBuiltInExports;
|
|
1447
1460
|
var defineProperty$4 = objectDefineProperty;
|
|
1448
1461
|
|
|
1449
1462
|
var defineBuiltInAccessor$3 = function (target, name, descriptor) {
|
|
@@ -2069,7 +2082,7 @@ const useControlledTooltip = () => {
|
|
|
2069
2082
|
return [delayedTooltip, setTooltipOpen];
|
|
2070
2083
|
};
|
|
2071
2084
|
const CustomTooltip = props => {
|
|
2072
|
-
return
|
|
2085
|
+
return jsx(Tooltip, Object.assign({}, props, {
|
|
2073
2086
|
enterDelay: defaultDelay,
|
|
2074
2087
|
enterNextDelay: defaultDelay,
|
|
2075
2088
|
disableInteractive: true
|
|
@@ -2099,7 +2112,7 @@ const CustomIconButtonNoMemo = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
2099
2112
|
}
|
|
2100
2113
|
});
|
|
2101
2114
|
}, [defaultTooltipProps, tooltipTitle]);
|
|
2102
|
-
const renderIconButton = () => (
|
|
2115
|
+
const renderIconButton = () => jsx(IconButton, Object.assign({
|
|
2103
2116
|
"aria-label": tooltipTitle
|
|
2104
2117
|
}, props, {
|
|
2105
2118
|
size: size,
|
|
@@ -2114,8 +2127,12 @@ const CustomIconButtonNoMemo = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
2114
2127
|
color: `geowebColors.iconButtons.${variant}.default.color`
|
|
2115
2128
|
}
|
|
2116
2129
|
})
|
|
2117
|
-
}
|
|
2118
|
-
|
|
2130
|
+
}, {
|
|
2131
|
+
children: children
|
|
2132
|
+
}));
|
|
2133
|
+
return tooltipTitle && !props.disabled ? jsx(CustomTooltip, Object.assign({}, tooltipProps, {
|
|
2134
|
+
children: renderIconButton()
|
|
2135
|
+
})) : renderIconButton();
|
|
2119
2136
|
});
|
|
2120
2137
|
const CustomIconButton = /*#__PURE__*/React.memo(CustomIconButtonNoMemo);
|
|
2121
2138
|
|
|
@@ -2129,7 +2146,7 @@ const CustomDialog = _a => {
|
|
|
2129
2146
|
sx
|
|
2130
2147
|
} = _a,
|
|
2131
2148
|
other = __rest(_a, ["title", "onClose", "description", "actions", "children", "sx"]);
|
|
2132
|
-
return
|
|
2149
|
+
return jsxs(Dialog, Object.assign({
|
|
2133
2150
|
"data-testid": "customDialog",
|
|
2134
2151
|
PaperProps: {
|
|
2135
2152
|
sx: Object.assign({
|
|
@@ -2143,48 +2160,62 @@ const CustomDialog = _a => {
|
|
|
2143
2160
|
onClose('CLOSED');
|
|
2144
2161
|
},
|
|
2145
2162
|
"aria-labelledby": "dialog-title"
|
|
2146
|
-
}, other
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
}, /*#__PURE__*/React.createElement(Typography, {
|
|
2156
|
-
sx: {
|
|
2157
|
-
fontSize: '16px',
|
|
2158
|
-
fontWeight: 500
|
|
2159
|
-
},
|
|
2160
|
-
"data-testid": "customDialog-title",
|
|
2161
|
-
component: "span"
|
|
2162
|
-
}, title), /*#__PURE__*/React.createElement(CustomIconButton, {
|
|
2163
|
-
"data-testid": "customDialog-close",
|
|
2164
|
-
"aria-label": "close",
|
|
2165
|
-
onClick: () => onClose('CLOSED'),
|
|
2166
|
-
sx: {
|
|
2167
|
-
'&.MuiIconButton-root': {
|
|
2168
|
-
color: 'geowebColors.greys.accessible'
|
|
2163
|
+
}, other, {
|
|
2164
|
+
children: [jsxs(DialogTitle, Object.assign({
|
|
2165
|
+
id: "dialog-title",
|
|
2166
|
+
sx: {
|
|
2167
|
+
zIndex: 1,
|
|
2168
|
+
padding: 2,
|
|
2169
|
+
display: 'flex',
|
|
2170
|
+
justifyContent: 'space-between',
|
|
2171
|
+
alignItems: 'center'
|
|
2169
2172
|
}
|
|
2170
|
-
}
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2173
|
+
}, {
|
|
2174
|
+
children: [jsx(Typography, Object.assign({
|
|
2175
|
+
sx: {
|
|
2176
|
+
fontSize: '16px',
|
|
2177
|
+
fontWeight: 500
|
|
2178
|
+
},
|
|
2179
|
+
"data-testid": "customDialog-title",
|
|
2180
|
+
component: "span"
|
|
2181
|
+
}, {
|
|
2182
|
+
children: title
|
|
2183
|
+
})), jsx(CustomIconButton, Object.assign({
|
|
2184
|
+
"data-testid": "customDialog-close",
|
|
2185
|
+
"aria-label": "close",
|
|
2186
|
+
onClick: () => onClose('CLOSED'),
|
|
2187
|
+
sx: {
|
|
2188
|
+
'&.MuiIconButton-root': {
|
|
2189
|
+
color: 'geowebColors.greys.accessible'
|
|
2190
|
+
}
|
|
2191
|
+
}
|
|
2192
|
+
}, {
|
|
2193
|
+
children: jsx(Close, {
|
|
2194
|
+
"data-testid": "CloseIcon"
|
|
2195
|
+
})
|
|
2196
|
+
}))]
|
|
2197
|
+
})), jsxs(DialogContent, Object.assign({
|
|
2198
|
+
sx: {
|
|
2199
|
+
padding: '8px 16px'
|
|
2185
2200
|
}
|
|
2186
|
-
}
|
|
2187
|
-
|
|
2201
|
+
}, {
|
|
2202
|
+
children: [description && jsx(Typography, Object.assign({
|
|
2203
|
+
variant: "body1"
|
|
2204
|
+
}, {
|
|
2205
|
+
children: description
|
|
2206
|
+
})), children]
|
|
2207
|
+
})), jsx(DialogActions, Object.assign({
|
|
2208
|
+
sx: {
|
|
2209
|
+
padding: 2,
|
|
2210
|
+
flexDirection: {
|
|
2211
|
+
xs: 'column',
|
|
2212
|
+
sm: 'row'
|
|
2213
|
+
}
|
|
2214
|
+
}
|
|
2215
|
+
}, {
|
|
2216
|
+
children: actions
|
|
2217
|
+
}))]
|
|
2218
|
+
}));
|
|
2188
2219
|
};
|
|
2189
2220
|
|
|
2190
2221
|
const SHARED_NAMESPACE = 'shared';
|
|
@@ -2244,52 +2275,62 @@ const ConfirmationDialog = _a => {
|
|
|
2244
2275
|
} = _a,
|
|
2245
2276
|
other = __rest(_a, ["open", "title", "description", "confirmLabel", "cancelLabel", "onSubmit", "onClose", "content", "disableAutoFocus", "isLoading"]);
|
|
2246
2277
|
const rest = __rest(other, ["catchOnCancel"]); // remove unwanted props
|
|
2247
|
-
return
|
|
2278
|
+
return jsx(CustomDialog, Object.assign({
|
|
2248
2279
|
"data-testid": "confirmationDialog",
|
|
2249
2280
|
open: open,
|
|
2250
2281
|
title: title,
|
|
2251
2282
|
description: description,
|
|
2252
2283
|
onClose: onClose,
|
|
2253
|
-
actions:
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2284
|
+
actions: jsxs(Fragment, {
|
|
2285
|
+
children: [jsx(Button, Object.assign({
|
|
2286
|
+
"data-testid": "confirmationDialog-cancel",
|
|
2287
|
+
variant: "tertiary",
|
|
2288
|
+
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
|
|
2289
|
+
sx: theme => ({
|
|
2290
|
+
width: {
|
|
2291
|
+
xs: '100%',
|
|
2292
|
+
sm: '150px'
|
|
2293
|
+
},
|
|
2294
|
+
'&:focus': {
|
|
2295
|
+
outline: theme.palette.geowebColors.buttons.primary.focus.outline,
|
|
2296
|
+
borderColor: 'transparent'
|
|
2297
|
+
}
|
|
2298
|
+
}),
|
|
2299
|
+
onClick: () => onClose('CANCELLED')
|
|
2300
|
+
}, {
|
|
2301
|
+
children: cancelLabel
|
|
2302
|
+
})), isLoading ? jsx(Box, Object.assign({
|
|
2303
|
+
"data-testid": "confirm-dialog-spinner",
|
|
2304
|
+
sx: Object.assign(Object.assign({}, confirmStyle), {
|
|
2305
|
+
height: '40px',
|
|
2306
|
+
display: 'flex',
|
|
2307
|
+
justifyContent: 'center',
|
|
2308
|
+
alignItems: 'center'
|
|
2309
|
+
})
|
|
2310
|
+
}, {
|
|
2311
|
+
children: jsx(CircularProgress, {
|
|
2312
|
+
size: 40,
|
|
2313
|
+
color: "secondary"
|
|
2314
|
+
})
|
|
2315
|
+
})) : jsx(Button, Object.assign({
|
|
2316
|
+
"data-testid": "confirmationDialog-confirm",
|
|
2317
|
+
variant: "primary",
|
|
2318
|
+
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
|
|
2319
|
+
sx: theme => Object.assign(Object.assign({}, confirmStyle), {
|
|
2320
|
+
'&:focus': {
|
|
2321
|
+
outline: theme.palette.geowebColors.buttons.primary.focus.outline,
|
|
2322
|
+
borderColor: 'transparent'
|
|
2323
|
+
}
|
|
2324
|
+
}),
|
|
2325
|
+
onClick: onSubmit,
|
|
2326
|
+
autoFocus: !disableAutoFocus
|
|
2327
|
+
}, {
|
|
2328
|
+
children: confirmLabel
|
|
2329
|
+
}))]
|
|
2330
|
+
})
|
|
2331
|
+
}, rest, {
|
|
2332
|
+
children: content
|
|
2333
|
+
}));
|
|
2293
2334
|
};
|
|
2294
2335
|
|
|
2295
2336
|
var global$d = global$p;
|
|
@@ -3659,52 +3700,38 @@ const ConfirmationServiceProvider = ({
|
|
|
3659
3700
|
handleSubmit,
|
|
3660
3701
|
handleClose
|
|
3661
3702
|
} = useDialogActions(awaitingPromiseRef);
|
|
3662
|
-
return
|
|
3703
|
+
return jsxs(ConfirmationServiceContext.Provider, Object.assign({
|
|
3663
3704
|
value: openConfirmation
|
|
3664
|
-
},
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3705
|
+
}, {
|
|
3706
|
+
children: [children, jsx(ConfirmationDialog, Object.assign({
|
|
3707
|
+
open: Boolean(confirmationState),
|
|
3708
|
+
onSubmit: handleSubmit,
|
|
3709
|
+
onClose: handleClose
|
|
3710
|
+
}, confirmationState))]
|
|
3711
|
+
}));
|
|
3669
3712
|
};
|
|
3670
3713
|
|
|
3671
|
-
/* *
|
|
3672
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
3673
|
-
* you may not use this file except in compliance with the License.
|
|
3674
|
-
* You may obtain a copy of the License at
|
|
3675
|
-
*
|
|
3676
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
3677
|
-
*
|
|
3678
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
3679
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
3680
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
3681
|
-
* See the License for the specific language governing permissions and
|
|
3682
|
-
* limitations under the License.
|
|
3683
|
-
*
|
|
3684
|
-
* Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
3685
|
-
* Copyright 2021 - Finnish Meteorological Institute (FMI)
|
|
3686
|
-
* */
|
|
3687
3714
|
const AlertIcon = ({
|
|
3688
3715
|
severity: _severity = 'error',
|
|
3689
3716
|
dataTestId: _dataTestId = 'alert-icon'
|
|
3690
3717
|
}) => {
|
|
3691
3718
|
switch (_severity) {
|
|
3692
3719
|
case 'info':
|
|
3693
|
-
return
|
|
3720
|
+
return jsx(Info, {
|
|
3694
3721
|
sx: {
|
|
3695
3722
|
color: 'geowebColors.functional.notification'
|
|
3696
3723
|
},
|
|
3697
3724
|
"data-testid": _dataTestId
|
|
3698
3725
|
});
|
|
3699
3726
|
case 'success':
|
|
3700
|
-
return
|
|
3727
|
+
return jsx(Success, {
|
|
3701
3728
|
sx: {
|
|
3702
3729
|
color: 'geowebColors.functional.success'
|
|
3703
3730
|
},
|
|
3704
3731
|
"data-testid": _dataTestId
|
|
3705
3732
|
});
|
|
3706
3733
|
case 'warning':
|
|
3707
|
-
return
|
|
3734
|
+
return jsx(Exclamation, {
|
|
3708
3735
|
sx: {
|
|
3709
3736
|
color: 'geowebColors.functional.warning'
|
|
3710
3737
|
},
|
|
@@ -3712,7 +3739,7 @@ const AlertIcon = ({
|
|
|
3712
3739
|
});
|
|
3713
3740
|
case 'error':
|
|
3714
3741
|
default:
|
|
3715
|
-
return
|
|
3742
|
+
return jsx(Exclamation, {
|
|
3716
3743
|
sx: {
|
|
3717
3744
|
color: 'geowebColors.functional.error'
|
|
3718
3745
|
},
|
|
@@ -3737,19 +3764,21 @@ const AlertBanner = ({
|
|
|
3737
3764
|
if (!isOpen) {
|
|
3738
3765
|
return null;
|
|
3739
3766
|
}
|
|
3740
|
-
return
|
|
3767
|
+
return jsxs(Alert, Object.assign({
|
|
3741
3768
|
"data-testid": _dataTestId,
|
|
3742
3769
|
severity: _severity,
|
|
3743
|
-
icon:
|
|
3770
|
+
icon: jsx(AlertIcon, {
|
|
3744
3771
|
severity: _severity
|
|
3745
3772
|
}),
|
|
3746
|
-
action: _shouldClose ? (
|
|
3773
|
+
action: _shouldClose ? jsx(Button, Object.assign({
|
|
3747
3774
|
variant: "flat",
|
|
3748
3775
|
onClick: () => setIsOpen(false),
|
|
3749
3776
|
sx: {
|
|
3750
3777
|
backgroundColor: 'transparent!important'
|
|
3751
3778
|
}
|
|
3752
|
-
},
|
|
3779
|
+
}, {
|
|
3780
|
+
children: t('shared-close-caps')
|
|
3781
|
+
})) : undefined,
|
|
3753
3782
|
sx: _isCompact ? {
|
|
3754
3783
|
height: '32px',
|
|
3755
3784
|
boxSizing: 'border-box',
|
|
@@ -3778,69 +3807,65 @@ const AlertBanner = ({
|
|
|
3778
3807
|
padding: 0
|
|
3779
3808
|
}
|
|
3780
3809
|
}
|
|
3781
|
-
},
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
},
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3810
|
+
}, {
|
|
3811
|
+
children: [jsx(AlertTitle, Object.assign({
|
|
3812
|
+
sx: {
|
|
3813
|
+
fontSize: '14px',
|
|
3814
|
+
fontWeight: 'normal',
|
|
3815
|
+
marginTop: '0px!important',
|
|
3816
|
+
paddingTop: '0px!important',
|
|
3817
|
+
marginBottom: '0px!important',
|
|
3818
|
+
lineHeight: _isCompact ? '18px' : '24px'
|
|
3819
|
+
}
|
|
3820
|
+
}, {
|
|
3821
|
+
children: title
|
|
3822
|
+
})), _info && jsx(Box, Object.assign({
|
|
3823
|
+
sx: {
|
|
3824
|
+
fontSize: '16px',
|
|
3825
|
+
marginTop: 1,
|
|
3826
|
+
wordBreak: 'break-word',
|
|
3827
|
+
lineHeight: '22px'
|
|
3828
|
+
}
|
|
3829
|
+
}, {
|
|
3830
|
+
children: _info
|
|
3831
|
+
})), _actionButtonProps && jsx(Button, Object.assign({
|
|
3832
|
+
variant: "flat",
|
|
3833
|
+
onClick: event => {
|
|
3834
|
+
setIsOpen(false);
|
|
3835
|
+
_actionButtonProps.onClick(event);
|
|
3836
|
+
},
|
|
3837
|
+
sx: {
|
|
3838
|
+
backgroundColor: 'transparent!important'
|
|
3839
|
+
},
|
|
3840
|
+
startIcon: jsx(ChevronRight, {})
|
|
3841
|
+
}, {
|
|
3842
|
+
children: _actionButtonProps.title.toUpperCase()
|
|
3843
|
+
}))]
|
|
3844
|
+
}));
|
|
3808
3845
|
};
|
|
3809
3846
|
|
|
3810
|
-
/* *
|
|
3811
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
3812
|
-
* you may not use this file except in compliance with the License.
|
|
3813
|
-
* You may obtain a copy of the License at
|
|
3814
|
-
*
|
|
3815
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
3816
|
-
*
|
|
3817
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
3818
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
3819
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
3820
|
-
* See the License for the specific language governing permissions and
|
|
3821
|
-
* limitations under the License.
|
|
3822
|
-
*
|
|
3823
|
-
* Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
3824
|
-
* Copyright 2021 - Finnish Meteorological Institute (FMI)
|
|
3825
|
-
* */
|
|
3826
3847
|
const AppLayout = ({
|
|
3827
3848
|
header,
|
|
3828
3849
|
children
|
|
3829
3850
|
}) => {
|
|
3830
|
-
return
|
|
3851
|
+
return jsxs(Box, Object.assign({
|
|
3831
3852
|
sx: {
|
|
3832
3853
|
height: '100vh',
|
|
3833
3854
|
display: 'flex',
|
|
3834
3855
|
flexDirection: 'column'
|
|
3835
3856
|
},
|
|
3836
3857
|
"data-testid": "appLayout"
|
|
3837
|
-
},
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
|
|
3858
|
+
}, {
|
|
3859
|
+
children: [header, jsx(Box, Object.assign({
|
|
3860
|
+
component: "main",
|
|
3861
|
+
sx: {
|
|
3862
|
+
flex: 1,
|
|
3863
|
+
position: 'relative'
|
|
3864
|
+
}
|
|
3865
|
+
}, {
|
|
3866
|
+
children: children
|
|
3867
|
+
}))]
|
|
3868
|
+
}));
|
|
3844
3869
|
};
|
|
3845
3870
|
|
|
3846
3871
|
const AppHeader = ({
|
|
@@ -3859,7 +3884,7 @@ const AppHeader = ({
|
|
|
3859
3884
|
}
|
|
3860
3885
|
toggleDrawer(false);
|
|
3861
3886
|
};
|
|
3862
|
-
return
|
|
3887
|
+
return jsxs(Box, Object.assign({
|
|
3863
3888
|
component: "header",
|
|
3864
3889
|
role: "heading",
|
|
3865
3890
|
sx: {
|
|
@@ -3887,82 +3912,100 @@ const AppHeader = ({
|
|
|
3887
3912
|
}
|
|
3888
3913
|
}
|
|
3889
3914
|
}
|
|
3890
|
-
},
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
}, /*#__PURE__*/React__default.createElement(GeoWebLogo, {
|
|
3898
|
-
style: {
|
|
3899
|
-
position: 'relative',
|
|
3900
|
-
top: '-1px',
|
|
3901
|
-
right: '-1px'
|
|
3902
|
-
}
|
|
3903
|
-
}), /*#__PURE__*/React__default.createElement(Typography, {
|
|
3904
|
-
variant: "h1",
|
|
3905
|
-
sx: {
|
|
3906
|
-
display: 'none',
|
|
3907
|
-
fontSize: '20px',
|
|
3908
|
-
fontWeight: 500,
|
|
3909
|
-
fontStretch: 'normal',
|
|
3910
|
-
fontStyle: 'normal',
|
|
3911
|
-
lineHeight: 'normal',
|
|
3912
|
-
letterSpacing: '0.15px',
|
|
3913
|
-
overflow: 'hidden',
|
|
3914
|
-
whiteSpace: 'nowrap',
|
|
3915
|
-
textOverflow: 'ellipsis',
|
|
3916
|
-
color: 'geowebColors.typographyAndIcons.text',
|
|
3917
|
-
marginLeft: 1,
|
|
3918
|
-
maxWidth: 130
|
|
3919
|
-
}
|
|
3920
|
-
}, _title)), menu && ( /*#__PURE__*/React__default.createElement(Box, {
|
|
3921
|
-
className: "hamburger-btn",
|
|
3922
|
-
sx: {
|
|
3923
|
-
display: 'flex',
|
|
3924
|
-
alignItems: 'center',
|
|
3925
|
-
marginLeft: 1
|
|
3926
|
-
}
|
|
3927
|
-
}, /*#__PURE__*/React__default.createElement(CustomIconButton, {
|
|
3928
|
-
"data-testid": "menuButton",
|
|
3929
|
-
onClick: () => onToggleDrawer(true),
|
|
3930
|
-
isSelected: isDrawerOpen
|
|
3931
|
-
}, /*#__PURE__*/React__default.createElement(HamburgerMenu, null)), /*#__PURE__*/React__default.createElement(Drawer, {
|
|
3932
|
-
"data-testid": "app-drawer",
|
|
3933
|
-
anchor: "left",
|
|
3934
|
-
open: isDrawerOpen,
|
|
3935
|
-
onClose: () => onToggleDrawer(false),
|
|
3936
|
-
onClick: () => onToggleDrawer(false),
|
|
3937
|
-
onKeyDown: onKeyDown,
|
|
3938
|
-
sx: {
|
|
3939
|
-
'& .MuiDrawer-paper': {
|
|
3940
|
-
top: '40px'
|
|
3915
|
+
}, {
|
|
3916
|
+
children: [jsxs(Box, Object.assign({
|
|
3917
|
+
onClick: onClick,
|
|
3918
|
+
sx: {
|
|
3919
|
+
display: 'inherit',
|
|
3920
|
+
alignItems: 'center',
|
|
3921
|
+
cursor: onClick ? 'pointer' : 'auto'
|
|
3941
3922
|
}
|
|
3942
|
-
}
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
3923
|
+
}, {
|
|
3924
|
+
children: [jsx(GeoWebLogo, {
|
|
3925
|
+
style: {
|
|
3926
|
+
position: 'relative',
|
|
3927
|
+
top: '-1px',
|
|
3928
|
+
right: '-1px'
|
|
3929
|
+
}
|
|
3930
|
+
}), jsx(Typography, Object.assign({
|
|
3931
|
+
variant: "h1",
|
|
3932
|
+
sx: {
|
|
3933
|
+
display: 'none',
|
|
3934
|
+
fontSize: '20px',
|
|
3935
|
+
fontWeight: 500,
|
|
3936
|
+
fontStretch: 'normal',
|
|
3937
|
+
fontStyle: 'normal',
|
|
3938
|
+
lineHeight: 'normal',
|
|
3939
|
+
letterSpacing: '0.15px',
|
|
3940
|
+
overflow: 'hidden',
|
|
3941
|
+
whiteSpace: 'nowrap',
|
|
3942
|
+
textOverflow: 'ellipsis',
|
|
3943
|
+
color: 'geowebColors.typographyAndIcons.text',
|
|
3944
|
+
marginLeft: 1,
|
|
3945
|
+
maxWidth: 130
|
|
3946
|
+
}
|
|
3947
|
+
}, {
|
|
3948
|
+
children: _title
|
|
3949
|
+
}))]
|
|
3950
|
+
})), menu && jsxs(Box, Object.assign({
|
|
3951
|
+
className: "hamburger-btn",
|
|
3952
|
+
sx: {
|
|
3953
|
+
display: 'flex',
|
|
3954
|
+
alignItems: 'center',
|
|
3955
|
+
marginLeft: 1
|
|
3956
|
+
}
|
|
3957
|
+
}, {
|
|
3958
|
+
children: [jsx(CustomIconButton, Object.assign({
|
|
3959
|
+
"data-testid": "menuButton",
|
|
3960
|
+
onClick: () => onToggleDrawer(true),
|
|
3961
|
+
isSelected: isDrawerOpen
|
|
3962
|
+
}, {
|
|
3963
|
+
children: jsx(HamburgerMenu, {})
|
|
3964
|
+
})), jsx(Drawer, Object.assign({
|
|
3965
|
+
"data-testid": "app-drawer",
|
|
3966
|
+
anchor: "left",
|
|
3967
|
+
open: isDrawerOpen,
|
|
3968
|
+
onClose: () => onToggleDrawer(false),
|
|
3969
|
+
onClick: () => onToggleDrawer(false),
|
|
3970
|
+
onKeyDown: onKeyDown,
|
|
3971
|
+
sx: {
|
|
3972
|
+
'& .MuiDrawer-paper': {
|
|
3973
|
+
top: '40px'
|
|
3974
|
+
}
|
|
3975
|
+
}
|
|
3976
|
+
}, {
|
|
3977
|
+
children: jsx(Box, Object.assign({
|
|
3978
|
+
role: "presentation",
|
|
3979
|
+
sx: {
|
|
3980
|
+
width: '250px',
|
|
3981
|
+
overflowY: 'auto'
|
|
3982
|
+
}
|
|
3983
|
+
}, {
|
|
3984
|
+
children: menu
|
|
3985
|
+
}))
|
|
3986
|
+
}))]
|
|
3987
|
+
})), jsx(Box, Object.assign({
|
|
3988
|
+
className: "workspace-topbar",
|
|
3989
|
+
sx: {
|
|
3990
|
+
flexGrow: 1,
|
|
3991
|
+
display: 'flex',
|
|
3992
|
+
marginLeft: 1,
|
|
3993
|
+
alignItems: 'center',
|
|
3994
|
+
maxWidth: 168
|
|
3995
|
+
}
|
|
3996
|
+
}, {
|
|
3997
|
+
children: workspaceTopBar
|
|
3998
|
+
})), jsx(Box, Object.assign({
|
|
3999
|
+
sx: {
|
|
4000
|
+
display: 'flex',
|
|
4001
|
+
alignItems: 'center',
|
|
4002
|
+
flexGrow: 1,
|
|
4003
|
+
justifyContent: 'flex-end'
|
|
4004
|
+
}
|
|
4005
|
+
}, {
|
|
4006
|
+
children: userMenu
|
|
4007
|
+
}))]
|
|
4008
|
+
}));
|
|
3966
4009
|
};
|
|
3967
4010
|
|
|
3968
4011
|
const DraggableComponent$1 = _a => {
|
|
@@ -3975,12 +4018,14 @@ const DraggableComponent$1 = _a => {
|
|
|
3975
4018
|
// This makes sure that nothing is selected during drag
|
|
3976
4019
|
e.preventDefault();
|
|
3977
4020
|
};
|
|
3978
|
-
return
|
|
4021
|
+
return jsx(Draggable, Object.assign({
|
|
3979
4022
|
bounds: bounds
|
|
3980
4023
|
}, props, {
|
|
3981
4024
|
enableUserSelectHack: false,
|
|
3982
4025
|
onStart: onDragStart
|
|
3983
|
-
}
|
|
4026
|
+
}, {
|
|
4027
|
+
children: children
|
|
4028
|
+
}));
|
|
3984
4029
|
};
|
|
3985
4030
|
|
|
3986
4031
|
var classof$3 = classofRaw$2;
|
|
@@ -4198,7 +4243,7 @@ const ResizeComponent = _a => {
|
|
|
4198
4243
|
});
|
|
4199
4244
|
onResizeStop(event, direction, node, delta);
|
|
4200
4245
|
}, [setSize, onResizeStop, size]);
|
|
4201
|
-
return
|
|
4246
|
+
return jsx(Resizable
|
|
4202
4247
|
// TODO: implement bounds https://gitlab.com/opengeoweb/opengeoweb/-/issues/1035
|
|
4203
4248
|
, Object.assign({
|
|
4204
4249
|
// TODO: implement bounds https://gitlab.com/opengeoweb/opengeoweb/-/issues/1035
|
|
@@ -4207,7 +4252,7 @@ const ResizeComponent = _a => {
|
|
|
4207
4252
|
size: size,
|
|
4208
4253
|
onResizeStop: onStopResize,
|
|
4209
4254
|
handleComponent: {
|
|
4210
|
-
bottomRight: (
|
|
4255
|
+
bottomRight: jsx(Resize, {
|
|
4211
4256
|
style: {
|
|
4212
4257
|
fill: `${theme.palette.geowebColors.buttons.flat.default.color}`
|
|
4213
4258
|
},
|
|
@@ -4215,8 +4260,8 @@ const ResizeComponent = _a => {
|
|
|
4215
4260
|
display: 'none'
|
|
4216
4261
|
},
|
|
4217
4262
|
className: "resizableHandle"
|
|
4218
|
-
})
|
|
4219
|
-
bottomLeft: (
|
|
4263
|
+
}),
|
|
4264
|
+
bottomLeft: jsx(Resize, {
|
|
4220
4265
|
isRightAligned: true,
|
|
4221
4266
|
style: {
|
|
4222
4267
|
fill: `${theme.palette.geowebColors.buttons.flat.default.color}`
|
|
@@ -4225,7 +4270,7 @@ const ResizeComponent = _a => {
|
|
|
4225
4270
|
display: 'none'
|
|
4226
4271
|
},
|
|
4227
4272
|
className: "resizableHandle"
|
|
4228
|
-
})
|
|
4273
|
+
})
|
|
4229
4274
|
},
|
|
4230
4275
|
enable: {
|
|
4231
4276
|
top: false,
|
|
@@ -4238,7 +4283,9 @@ const ResizeComponent = _a => {
|
|
|
4238
4283
|
topLeft: true
|
|
4239
4284
|
},
|
|
4240
4285
|
onResizeStart: onStartResize
|
|
4241
|
-
}, props
|
|
4286
|
+
}, props, {
|
|
4287
|
+
children: children
|
|
4288
|
+
}));
|
|
4242
4289
|
};
|
|
4243
4290
|
|
|
4244
4291
|
var defineProperty = objectDefineProperty.f;
|
|
@@ -4588,18 +4635,24 @@ class ErrorBoundary extends React.Component {
|
|
|
4588
4635
|
overflowY: 'scroll'
|
|
4589
4636
|
};
|
|
4590
4637
|
if (error) {
|
|
4591
|
-
return
|
|
4638
|
+
return jsx(Box, Object.assign({
|
|
4592
4639
|
sx: displayOnTop ? displayOnTopStyles : normalStyles
|
|
4593
|
-
},
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
|
|
4640
|
+
}, {
|
|
4641
|
+
children: jsx(AlertBanner, {
|
|
4642
|
+
severity: "error",
|
|
4643
|
+
title: "Woops, an error has occurred. Please report the error shown below and reload the page if needed.",
|
|
4644
|
+
info: jsxs("div", {
|
|
4645
|
+
children: [jsx("br", {}), error.toString(), jsx("br", {}), errorInfo && errorInfo.componentStack, jsx("br", {}), jsx("br", {}), jsx(Link, Object.assign({
|
|
4646
|
+
underline: "always",
|
|
4647
|
+
style: {
|
|
4648
|
+
cursor: 'pointer'
|
|
4649
|
+
},
|
|
4650
|
+
onClick: () => window.location.reload()
|
|
4651
|
+
}, {
|
|
4652
|
+
children: reloadPage
|
|
4653
|
+
}))]
|
|
4654
|
+
})
|
|
4655
|
+
})
|
|
4603
4656
|
}));
|
|
4604
4657
|
}
|
|
4605
4658
|
return children;
|
|
@@ -4621,10 +4674,12 @@ const Avatar = ({
|
|
|
4621
4674
|
children,
|
|
4622
4675
|
size: _size = 'large'
|
|
4623
4676
|
}) => {
|
|
4624
|
-
return
|
|
4677
|
+
return jsx(Avatar$1, Object.assign({
|
|
4625
4678
|
"data-testid": "avatar",
|
|
4626
4679
|
sx: Object.assign({}, styles$5[_size])
|
|
4627
|
-
},
|
|
4680
|
+
}, {
|
|
4681
|
+
children: children
|
|
4682
|
+
}));
|
|
4628
4683
|
};
|
|
4629
4684
|
|
|
4630
4685
|
const styles$4 = {
|
|
@@ -4655,52 +4710,50 @@ const UserMenu = ({
|
|
|
4655
4710
|
initials,
|
|
4656
4711
|
isAdmin: _isAdmin = false
|
|
4657
4712
|
}) => {
|
|
4658
|
-
return
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
|
|
4713
|
+
return jsxs(Fragment, {
|
|
4714
|
+
children: [jsx(CustomIconButton, Object.assign({
|
|
4715
|
+
"data-testid": "userButton",
|
|
4716
|
+
onClick: _onToggle,
|
|
4717
|
+
sx: {
|
|
4718
|
+
'&.MuiButtonBase-root': Object.assign({
|
|
4719
|
+
background: 'transparent',
|
|
4720
|
+
'&:hover': {
|
|
4721
|
+
border: 'none',
|
|
4722
|
+
background: 'transparent'
|
|
4723
|
+
}
|
|
4724
|
+
}, _isAdmin && {
|
|
4725
|
+
svg: {
|
|
4726
|
+
width: 32,
|
|
4727
|
+
height: 32
|
|
4728
|
+
}
|
|
4729
|
+
})
|
|
4730
|
+
},
|
|
4731
|
+
size: "medium"
|
|
4732
|
+
}, {
|
|
4733
|
+
children: !_isAdmin ? jsx(Avatar, {
|
|
4734
|
+
children: initials
|
|
4735
|
+
}) : jsx(Admin, {
|
|
4736
|
+
children: initials
|
|
4673
4737
|
})
|
|
4674
|
-
},
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
|
|
4738
|
+
})), _isOpen && jsx(Paper, Object.assign({
|
|
4739
|
+
sx: styles$4.container,
|
|
4740
|
+
"data-testid": "userMenu"
|
|
4741
|
+
}, {
|
|
4742
|
+
children: jsx(ClickAwayListener, Object.assign({
|
|
4743
|
+
onClickAway: _onClose,
|
|
4744
|
+
mouseEvent: "onMouseDown"
|
|
4745
|
+
}, {
|
|
4746
|
+
children: jsx(MenuList, Object.assign({
|
|
4747
|
+
sx: styles$4.userMenu,
|
|
4748
|
+
variant: "menu"
|
|
4749
|
+
}, {
|
|
4750
|
+
children: children
|
|
4751
|
+
}))
|
|
4752
|
+
}))
|
|
4753
|
+
}))]
|
|
4754
|
+
});
|
|
4686
4755
|
};
|
|
4687
4756
|
|
|
4688
|
-
/* *
|
|
4689
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4690
|
-
* you may not use this file except in compliance with the License.
|
|
4691
|
-
* You may obtain a copy of the License at
|
|
4692
|
-
*
|
|
4693
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
4694
|
-
*
|
|
4695
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
4696
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
4697
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4698
|
-
* See the License for the specific language governing permissions and
|
|
4699
|
-
* limitations under the License.
|
|
4700
|
-
*
|
|
4701
|
-
* Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
4702
|
-
* Copyright 2021 - Finnish Meteorological Institute (FMI)
|
|
4703
|
-
* */
|
|
4704
4757
|
const MenuItemTheme = () => {
|
|
4705
4758
|
const {
|
|
4706
4759
|
isDark,
|
|
@@ -4709,50 +4762,44 @@ const MenuItemTheme = () => {
|
|
|
4709
4762
|
const {
|
|
4710
4763
|
t
|
|
4711
4764
|
} = useTranslation(SHARED_NAMESPACE);
|
|
4712
|
-
return
|
|
4765
|
+
return jsx(MenuItem, Object.assign({
|
|
4713
4766
|
divider: true
|
|
4714
|
-
},
|
|
4715
|
-
|
|
4716
|
-
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
|
|
4724
|
-
|
|
4725
|
-
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
|
|
4729
|
-
|
|
4730
|
-
|
|
4731
|
-
|
|
4732
|
-
|
|
4733
|
-
|
|
4734
|
-
|
|
4767
|
+
}, {
|
|
4768
|
+
children: jsxs(Grid, Object.assign({
|
|
4769
|
+
container: true
|
|
4770
|
+
}, {
|
|
4771
|
+
children: [jsx(Grid, Object.assign({
|
|
4772
|
+
item: true
|
|
4773
|
+
}, {
|
|
4774
|
+
children: t('shared-choose-app-mode')
|
|
4775
|
+
})), jsx(Grid, Object.assign({
|
|
4776
|
+
item: true
|
|
4777
|
+
}, {
|
|
4778
|
+
children: jsxs(RadioGroup, Object.assign({
|
|
4779
|
+
onChange: toggleTheme
|
|
4780
|
+
}, {
|
|
4781
|
+
children: [jsx(FormControlLabel, {
|
|
4782
|
+
value: true,
|
|
4783
|
+
control: jsx(Radio, {
|
|
4784
|
+
checked: !isDark
|
|
4785
|
+
}),
|
|
4786
|
+
label: "Light"
|
|
4787
|
+
}), jsx(FormControlLabel, {
|
|
4788
|
+
value: false,
|
|
4789
|
+
control: jsx(Radio, {
|
|
4790
|
+
checked: isDark
|
|
4791
|
+
}),
|
|
4792
|
+
label: "Dark"
|
|
4793
|
+
})]
|
|
4794
|
+
}))
|
|
4795
|
+
}))]
|
|
4796
|
+
}))
|
|
4797
|
+
}));
|
|
4735
4798
|
};
|
|
4736
4799
|
|
|
4737
|
-
/* *
|
|
4738
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4739
|
-
* you may not use this file except in compliance with the License.
|
|
4740
|
-
* You may obtain a copy of the License at
|
|
4741
|
-
*
|
|
4742
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
4743
|
-
*
|
|
4744
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
4745
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
4746
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4747
|
-
* See the License for the specific language governing permissions and
|
|
4748
|
-
* limitations under the License.
|
|
4749
|
-
*
|
|
4750
|
-
* Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
4751
|
-
* Copyright 2021 - Finnish Meteorological Institute (FMI)
|
|
4752
|
-
* */
|
|
4753
4800
|
// drag handles will be handled by DraggableResizable/Resizable
|
|
4754
4801
|
const ToolFooter = () => {
|
|
4755
|
-
return
|
|
4802
|
+
return jsx(Box, {
|
|
4756
4803
|
component: "footer",
|
|
4757
4804
|
sx: {
|
|
4758
4805
|
boxShadow: 1,
|
|
@@ -4834,8 +4881,8 @@ const ToolHeader = ({
|
|
|
4834
4881
|
className: _className = '',
|
|
4835
4882
|
leftHeaderComponent: _leftHeaderComponent = null,
|
|
4836
4883
|
rightHeaderComponent: _rightHeaderComponent = null,
|
|
4837
|
-
dragHandleIcon: _dragHandleIcon =
|
|
4838
|
-
closeIcon: _closeIcon =
|
|
4884
|
+
dragHandleIcon: _dragHandleIcon = jsx(DragHandle, {}),
|
|
4885
|
+
closeIcon: _closeIcon = jsx(Close, {
|
|
4839
4886
|
"data-testid": "CloseIcon"
|
|
4840
4887
|
})
|
|
4841
4888
|
}) => {
|
|
@@ -4846,7 +4893,7 @@ const ToolHeader = ({
|
|
|
4846
4893
|
const {
|
|
4847
4894
|
t
|
|
4848
4895
|
} = useTranslation(SHARED_NAMESPACE);
|
|
4849
|
-
return
|
|
4896
|
+
return jsx(Box, Object.assign({
|
|
4850
4897
|
component: "header",
|
|
4851
4898
|
className: _className,
|
|
4852
4899
|
sx: Object.assign(Object.assign({}, _rightHeaderComponent ? headerStyle : {}), {
|
|
@@ -4857,78 +4904,102 @@ const ToolHeader = ({
|
|
|
4857
4904
|
}),
|
|
4858
4905
|
role: "heading",
|
|
4859
4906
|
"aria-label": "toolheader"
|
|
4860
|
-
},
|
|
4861
|
-
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
|
|
4880
|
-
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
|
|
4884
|
-
|
|
4885
|
-
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
4907
|
-
|
|
4908
|
-
|
|
4909
|
-
|
|
4910
|
-
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
|
|
4915
|
-
|
|
4916
|
-
|
|
4917
|
-
|
|
4918
|
-
|
|
4919
|
-
|
|
4920
|
-
|
|
4921
|
-
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
|
|
4930
|
-
|
|
4931
|
-
|
|
4907
|
+
}, {
|
|
4908
|
+
children: jsxs(Grid, Object.assign({
|
|
4909
|
+
container: true,
|
|
4910
|
+
alignItems: "center",
|
|
4911
|
+
sx: {
|
|
4912
|
+
padding: styles.padding,
|
|
4913
|
+
height: styles.height
|
|
4914
|
+
}
|
|
4915
|
+
}, {
|
|
4916
|
+
children: [jsxs(Grid, Object.assign({
|
|
4917
|
+
className: "header-left",
|
|
4918
|
+
item: true,
|
|
4919
|
+
xs: columnSizeLeft,
|
|
4920
|
+
sx: {
|
|
4921
|
+
paddingRight: 1
|
|
4922
|
+
}
|
|
4923
|
+
}, {
|
|
4924
|
+
children: [_isDraggable && size !== 'xxs' && !_leftHeaderComponent && jsx(Grid, Object.assign({
|
|
4925
|
+
container: true,
|
|
4926
|
+
justifyContent: "flex-start"
|
|
4927
|
+
}, {
|
|
4928
|
+
children: jsx(CustomIconButton, Object.assign({
|
|
4929
|
+
"data-testid": "dragBtn",
|
|
4930
|
+
disableRipple: true,
|
|
4931
|
+
sx: {
|
|
4932
|
+
pointerEvents: 'none',
|
|
4933
|
+
'&.MuiIconButton-root': iconStyle
|
|
4934
|
+
}
|
|
4935
|
+
}, {
|
|
4936
|
+
children: _dragHandleIcon
|
|
4937
|
+
}))
|
|
4938
|
+
})), _leftHeaderComponent && _leftHeaderComponent]
|
|
4939
|
+
})), jsx(Grid, Object.assign({
|
|
4940
|
+
className: "header-title",
|
|
4941
|
+
item: true,
|
|
4942
|
+
xs: title ? columnSizeTitle : 0
|
|
4943
|
+
}, {
|
|
4944
|
+
children: jsxs(Grid, Object.assign({
|
|
4945
|
+
container: true,
|
|
4946
|
+
justifyContent: "center",
|
|
4947
|
+
alignItems: "center"
|
|
4948
|
+
}, {
|
|
4949
|
+
children: [title && jsx(Typography, Object.assign({
|
|
4950
|
+
variant: "h2",
|
|
4951
|
+
noWrap: true,
|
|
4952
|
+
sx: {
|
|
4953
|
+
fontSize: styles.fontSize,
|
|
4954
|
+
fontWeight: styles.fontWeight,
|
|
4955
|
+
lineHeight: styles.lineHeight,
|
|
4956
|
+
marginTop: styles.marginTop
|
|
4957
|
+
},
|
|
4958
|
+
role: "heading"
|
|
4959
|
+
}, {
|
|
4960
|
+
children: title
|
|
4961
|
+
})), size === 'xxs' && jsx(CustomIconButton, Object.assign({
|
|
4962
|
+
"data-testid": "dragBtn-xxs",
|
|
4963
|
+
disableRipple: true,
|
|
4964
|
+
sx: {
|
|
4965
|
+
pointerEvents: 'none',
|
|
4966
|
+
transform: 'rotate(90deg)',
|
|
4967
|
+
'&.MuiButtonBase-root.MuiIconButton-root': Object.assign(Object.assign({}, iconStyle), {
|
|
4968
|
+
height: 12
|
|
4969
|
+
})
|
|
4970
|
+
}
|
|
4971
|
+
}, {
|
|
4972
|
+
children: _dragHandleIcon
|
|
4973
|
+
}))]
|
|
4974
|
+
}))
|
|
4975
|
+
})), jsxs(Grid, Object.assign({
|
|
4976
|
+
className: "header-right",
|
|
4977
|
+
item: true,
|
|
4978
|
+
xs: columnSizeIcon,
|
|
4979
|
+
container: true,
|
|
4980
|
+
justifyContent: "flex-end"
|
|
4981
|
+
}, {
|
|
4982
|
+
children: [_rightHeaderComponent && _rightHeaderComponent, _onClose && jsx(CustomTooltip, Object.assign({
|
|
4983
|
+
title: t('shared-close'),
|
|
4984
|
+
placement: "bottom",
|
|
4985
|
+
sx: {
|
|
4986
|
+
pointerEvents: 'none'
|
|
4987
|
+
}
|
|
4988
|
+
}, {
|
|
4989
|
+
children: jsx(CustomIconButton, Object.assign({
|
|
4990
|
+
"data-testid": "closeBtn",
|
|
4991
|
+
onClick: _onClose,
|
|
4992
|
+
onTouchEnd: _onClose,
|
|
4993
|
+
sx: {
|
|
4994
|
+
'&.MuiButtonBase-root.MuiIconButton-root': iconStyle
|
|
4995
|
+
}
|
|
4996
|
+
}, {
|
|
4997
|
+
children: _closeIcon
|
|
4998
|
+
}))
|
|
4999
|
+
}))]
|
|
5000
|
+
}))]
|
|
5001
|
+
}))
|
|
5002
|
+
}));
|
|
4932
5003
|
};
|
|
4933
5004
|
|
|
4934
5005
|
const styles$3 = {
|
|
@@ -4964,25 +5035,31 @@ const ToolContainer = _a => {
|
|
|
4964
5035
|
closeIcon
|
|
4965
5036
|
} = _a,
|
|
4966
5037
|
props = __rest(_a, ["title", "size", "children", "onClose", "isResizable", "isDraggable", "maxHeight", "elevation", "headerClassName", "leftHeaderComponent", "rightHeaderComponent", "dragHandleIcon", "closeIcon"]);
|
|
4967
|
-
return
|
|
5038
|
+
return jsxs(Paper, Object.assign({
|
|
4968
5039
|
elevation: elevation,
|
|
4969
5040
|
sx: styles$3.container
|
|
4970
|
-
}, props
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
|
|
4974
|
-
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
|
|
4980
|
-
|
|
4981
|
-
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
|
|
4985
|
-
|
|
5041
|
+
}, props, {
|
|
5042
|
+
children: [jsx(ErrorBoundary, {
|
|
5043
|
+
children: jsx(ToolHeader, {
|
|
5044
|
+
title: title,
|
|
5045
|
+
size: size,
|
|
5046
|
+
isDraggable: isDraggable,
|
|
5047
|
+
onClose: onClose,
|
|
5048
|
+
className: headerClassName,
|
|
5049
|
+
leftHeaderComponent: leftHeaderComponent,
|
|
5050
|
+
rightHeaderComponent: rightHeaderComponent,
|
|
5051
|
+
dragHandleIcon: dragHandleIcon,
|
|
5052
|
+
closeIcon: closeIcon
|
|
5053
|
+
})
|
|
5054
|
+
}), jsx(Box, Object.assign({
|
|
5055
|
+
sx: styles$3.content,
|
|
5056
|
+
style: {
|
|
5057
|
+
maxHeight
|
|
5058
|
+
}
|
|
5059
|
+
}, {
|
|
5060
|
+
children: children
|
|
5061
|
+
})), isResizable && jsx(ToolFooter, {})]
|
|
5062
|
+
}));
|
|
4986
5063
|
};
|
|
4987
5064
|
|
|
4988
5065
|
const getRightPositionAndSize = ({
|
|
@@ -5183,8 +5260,6 @@ const DraggableComponent = _a => {
|
|
|
5183
5260
|
onMouseDown = () => {},
|
|
5184
5261
|
onResizeStop = () => {},
|
|
5185
5262
|
onDragEnd = () => {},
|
|
5186
|
-
onFocus = () => {},
|
|
5187
|
-
onBlur = () => {},
|
|
5188
5263
|
order = 1,
|
|
5189
5264
|
source = 'app',
|
|
5190
5265
|
leftHeaderComponent = null,
|
|
@@ -5194,7 +5269,7 @@ const DraggableComponent = _a => {
|
|
|
5194
5269
|
className,
|
|
5195
5270
|
sx = {}
|
|
5196
5271
|
} = _a,
|
|
5197
|
-
props = __rest(_a, ["title", "bounds", "cancel", "headerSize", "startSize", "startPosition", "children", "isOpen", "onClose", "initialMaxHeight", "onChangeSize", "onMouseDown", "onResizeStop", "onDragEnd", "
|
|
5272
|
+
props = __rest(_a, ["title", "bounds", "cancel", "headerSize", "startSize", "startPosition", "children", "isOpen", "onClose", "initialMaxHeight", "onChangeSize", "onMouseDown", "onResizeStop", "onDragEnd", "order", "source", "leftHeaderComponent", "rightHeaderComponent", "dragHandleIcon", "closeIcon", "className", "sx"]);
|
|
5198
5273
|
const zIndex = (source === 'app' ? BASE_Z_INDEX : 1000) + order;
|
|
5199
5274
|
const elevation = BASE_ELEVATION + order;
|
|
5200
5275
|
const nodeRef = React__default.useRef(null);
|
|
@@ -5243,7 +5318,7 @@ const DraggableComponent = _a => {
|
|
|
5243
5318
|
});
|
|
5244
5319
|
const toolcontainerId = React__default.useRef(Date.now().toString()).current;
|
|
5245
5320
|
const headerClassName = `header-${className || toolcontainerId}`;
|
|
5246
|
-
return isOpen ? (
|
|
5321
|
+
return isOpen ? jsx(DraggableComponent$1, Object.assign({
|
|
5247
5322
|
nodeRef: nodeRef,
|
|
5248
5323
|
bounds: bounds,
|
|
5249
5324
|
cancel: cancel,
|
|
@@ -5251,44 +5326,50 @@ const DraggableComponent = _a => {
|
|
|
5251
5326
|
onStop: onStopDrag,
|
|
5252
5327
|
handle: `.${headerClassName}`,
|
|
5253
5328
|
onMouseDown: onMouseDown
|
|
5254
|
-
},
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
}
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
|
|
5271
|
-
|
|
5272
|
-
|
|
5273
|
-
|
|
5274
|
-
|
|
5275
|
-
|
|
5276
|
-
|
|
5277
|
-
|
|
5278
|
-
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
|
|
5282
|
-
|
|
5283
|
-
|
|
5284
|
-
|
|
5285
|
-
|
|
5286
|
-
|
|
5287
|
-
|
|
5288
|
-
|
|
5289
|
-
|
|
5290
|
-
|
|
5291
|
-
|
|
5329
|
+
}, {
|
|
5330
|
+
children: jsx(Box, Object.assign({
|
|
5331
|
+
tabIndex: -1,
|
|
5332
|
+
sx: Object.assign(Object.assign(Object.assign({
|
|
5333
|
+
position: 'absolute',
|
|
5334
|
+
pointerEvents: 'all',
|
|
5335
|
+
zIndex
|
|
5336
|
+
}, startPosition), sx), {
|
|
5337
|
+
'&:hover .resizableHandle': {
|
|
5338
|
+
display: 'inline'
|
|
5339
|
+
}
|
|
5340
|
+
}),
|
|
5341
|
+
ref: nodeRef,
|
|
5342
|
+
className: "toolContainerDraggable",
|
|
5343
|
+
role: "dialog",
|
|
5344
|
+
"aria-label": title
|
|
5345
|
+
}, {
|
|
5346
|
+
children: jsx(ResizeComponent, Object.assign({}, props, {
|
|
5347
|
+
size: size,
|
|
5348
|
+
setSize: setSize,
|
|
5349
|
+
onResizeStart: onStartResize,
|
|
5350
|
+
onResizeStop: onStopResize,
|
|
5351
|
+
onResize: onResize
|
|
5352
|
+
}, {
|
|
5353
|
+
children: jsx(ToolContainer, Object.assign({
|
|
5354
|
+
maxHeight: initialMaxHeight,
|
|
5355
|
+
onClose: onClose,
|
|
5356
|
+
title: title,
|
|
5357
|
+
size: headerSize,
|
|
5358
|
+
isDraggable: true,
|
|
5359
|
+
isResizable: true,
|
|
5360
|
+
elevation: elevation,
|
|
5361
|
+
headerClassName: headerClassName,
|
|
5362
|
+
leftHeaderComponent: leftHeaderComponent,
|
|
5363
|
+
rightHeaderComponent: rightHeaderComponent,
|
|
5364
|
+
dragHandleIcon: dragHandleIcon,
|
|
5365
|
+
closeIcon: closeIcon,
|
|
5366
|
+
className: className
|
|
5367
|
+
}, {
|
|
5368
|
+
children: children
|
|
5369
|
+
}))
|
|
5370
|
+
}))
|
|
5371
|
+
}))
|
|
5372
|
+
})) : null;
|
|
5292
5373
|
};
|
|
5293
5374
|
|
|
5294
5375
|
const segmentStyle = {
|
|
@@ -5321,31 +5402,39 @@ const ShortCutSegment = ({
|
|
|
5321
5402
|
children
|
|
5322
5403
|
}) => {
|
|
5323
5404
|
if (_type === 'divider') {
|
|
5324
|
-
return
|
|
5405
|
+
return jsx(Typography, Object.assign({
|
|
5325
5406
|
sx: styles$2.divider,
|
|
5326
5407
|
"data-testid": "segment-divider",
|
|
5327
5408
|
component: "span"
|
|
5328
|
-
},
|
|
5409
|
+
}, {
|
|
5410
|
+
children: children
|
|
5411
|
+
}));
|
|
5329
5412
|
}
|
|
5330
5413
|
if (_type === 'icon') {
|
|
5331
|
-
return
|
|
5414
|
+
return jsx(Typography, Object.assign({
|
|
5332
5415
|
sx: styles$2.icon,
|
|
5333
5416
|
"data-testid": "segment-icon",
|
|
5334
5417
|
component: "span"
|
|
5335
|
-
},
|
|
5418
|
+
}, {
|
|
5419
|
+
children: children
|
|
5420
|
+
}));
|
|
5336
5421
|
}
|
|
5337
5422
|
if (_type === 'connect') {
|
|
5338
|
-
return
|
|
5423
|
+
return jsx(Typography, Object.assign({
|
|
5339
5424
|
sx: styles$2.connect,
|
|
5340
5425
|
"data-testid": "segment-connect",
|
|
5341
5426
|
component: "span"
|
|
5342
|
-
},
|
|
5427
|
+
}, {
|
|
5428
|
+
children: children
|
|
5429
|
+
}));
|
|
5343
5430
|
}
|
|
5344
|
-
return
|
|
5431
|
+
return jsx(Typography, Object.assign({
|
|
5345
5432
|
sx: segmentStyle,
|
|
5346
5433
|
"data-testid": "segment-text",
|
|
5347
5434
|
component: "span"
|
|
5348
|
-
},
|
|
5435
|
+
}, {
|
|
5436
|
+
children: children
|
|
5437
|
+
}));
|
|
5349
5438
|
};
|
|
5350
5439
|
|
|
5351
5440
|
const ShortcutList = ({
|
|
@@ -5356,211 +5445,414 @@ const ShortcutList = ({
|
|
|
5356
5445
|
} = useTranslation();
|
|
5357
5446
|
const shortcuts = [{
|
|
5358
5447
|
titleKey: 'shared-choose-selected-time',
|
|
5359
|
-
description: (
|
|
5448
|
+
description: jsx(ShortCutSegment, {
|
|
5449
|
+
children: t('shared-shortcut-left-click')
|
|
5450
|
+
})
|
|
5360
5451
|
}, {
|
|
5361
5452
|
titleKey: 'shared-move-selected-time',
|
|
5362
|
-
description: (
|
|
5453
|
+
description: jsx(ShortCutSegment, {
|
|
5454
|
+
children: t('shared-shortcut-mouse-scroll-timeslider')
|
|
5455
|
+
})
|
|
5363
5456
|
}, {
|
|
5364
5457
|
titleKey: 'shared-move-one-step',
|
|
5365
|
-
description: (
|
|
5366
|
-
|
|
5367
|
-
|
|
5368
|
-
|
|
5369
|
-
|
|
5370
|
-
|
|
5371
|
-
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
|
|
5376
|
-
|
|
5377
|
-
|
|
5378
|
-
|
|
5379
|
-
|
|
5380
|
-
|
|
5381
|
-
|
|
5382
|
-
|
|
5383
|
-
|
|
5384
|
-
|
|
5385
|
-
|
|
5386
|
-
|
|
5387
|
-
|
|
5388
|
-
|
|
5389
|
-
|
|
5390
|
-
|
|
5458
|
+
description: jsxs(Fragment, {
|
|
5459
|
+
children: [jsx(ShortCutSegment, Object.assign({
|
|
5460
|
+
type: "icon"
|
|
5461
|
+
}, {
|
|
5462
|
+
children: "Ctrl"
|
|
5463
|
+
})), jsx(ShortCutSegment, Object.assign({
|
|
5464
|
+
type: "connect"
|
|
5465
|
+
}, {
|
|
5466
|
+
children: "+"
|
|
5467
|
+
})), jsx(ShortCutSegment, Object.assign({
|
|
5468
|
+
type: "icon"
|
|
5469
|
+
}, {
|
|
5470
|
+
children: jsx(ArrowLeft, {})
|
|
5471
|
+
})), jsx(ShortCutSegment, Object.assign({
|
|
5472
|
+
type: "divider"
|
|
5473
|
+
}, {
|
|
5474
|
+
children: t('shared-shortcut-or')
|
|
5475
|
+
})), jsx(ShortCutSegment, Object.assign({
|
|
5476
|
+
type: "icon"
|
|
5477
|
+
}, {
|
|
5478
|
+
children: jsx(ArrowRight, {})
|
|
5479
|
+
}))]
|
|
5480
|
+
}),
|
|
5481
|
+
descriptionMac: jsxs(Fragment, {
|
|
5482
|
+
children: [jsx(ShortCutSegment, Object.assign({
|
|
5483
|
+
type: "icon"
|
|
5484
|
+
}, {
|
|
5485
|
+
children: "Ctrl"
|
|
5486
|
+
})), jsx(ShortCutSegment, Object.assign({
|
|
5487
|
+
type: "connect"
|
|
5488
|
+
}, {
|
|
5489
|
+
children: "+"
|
|
5490
|
+
})), jsx(ShortCutSegment, Object.assign({
|
|
5491
|
+
type: "icon"
|
|
5492
|
+
}, {
|
|
5493
|
+
children: jsx(KeyOption, {})
|
|
5494
|
+
})), jsx(ShortCutSegment, Object.assign({
|
|
5495
|
+
type: "connect"
|
|
5496
|
+
}, {
|
|
5497
|
+
children: "+"
|
|
5498
|
+
})), jsx(ShortCutSegment, Object.assign({
|
|
5499
|
+
type: "icon"
|
|
5500
|
+
}, {
|
|
5501
|
+
children: jsx(ArrowLeft, {})
|
|
5502
|
+
})), jsx(ShortCutSegment, Object.assign({
|
|
5503
|
+
type: "divider"
|
|
5504
|
+
}, {
|
|
5505
|
+
children: t('shared-shortcut-or')
|
|
5506
|
+
})), jsx(ShortCutSegment, Object.assign({
|
|
5507
|
+
type: "icon"
|
|
5508
|
+
}, {
|
|
5509
|
+
children: jsx(ArrowRight, {})
|
|
5510
|
+
}))]
|
|
5511
|
+
})
|
|
5391
5512
|
}, {
|
|
5392
5513
|
titleKey: 'shared-toggle-timeslider',
|
|
5393
|
-
description:
|
|
5514
|
+
description: jsx(ShortCutSegment, Object.assign({
|
|
5394
5515
|
type: "icon"
|
|
5395
|
-
},
|
|
5516
|
+
}, {
|
|
5517
|
+
children: "T"
|
|
5518
|
+
}))
|
|
5396
5519
|
}, {
|
|
5397
5520
|
titleKey: 'shared-timeslider-scale',
|
|
5398
|
-
description: (
|
|
5521
|
+
description: jsx(ShortCutSegment, {
|
|
5522
|
+
children: t('shared-shortcut-hold-click')
|
|
5523
|
+
})
|
|
5399
5524
|
}, {
|
|
5400
5525
|
titleKey: 'shared-expand-timeslider-scale',
|
|
5401
|
-
description: (
|
|
5402
|
-
|
|
5403
|
-
|
|
5526
|
+
description: jsxs(Fragment, {
|
|
5527
|
+
children: [jsx(ShortCutSegment, Object.assign({
|
|
5528
|
+
type: "icon"
|
|
5529
|
+
}, {
|
|
5530
|
+
children: "Ctrl"
|
|
5531
|
+
})), jsx(ShortCutSegment, {
|
|
5532
|
+
children: t('shared-shortcut-scroll')
|
|
5533
|
+
})]
|
|
5534
|
+
})
|
|
5404
5535
|
}, {
|
|
5405
5536
|
titleKey: 'shared-mouseover-selected-time',
|
|
5406
|
-
description: (
|
|
5537
|
+
description: jsx(ShortCutSegment, {
|
|
5538
|
+
children: t('shared-shortcut-hover')
|
|
5539
|
+
})
|
|
5407
5540
|
}, {
|
|
5408
5541
|
titleKey: 'shared-mouseover-on-off',
|
|
5409
|
-
description: (
|
|
5410
|
-
|
|
5411
|
-
|
|
5412
|
-
|
|
5413
|
-
|
|
5414
|
-
|
|
5415
|
-
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
-
|
|
5420
|
-
|
|
5421
|
-
|
|
5422
|
-
|
|
5423
|
-
|
|
5424
|
-
|
|
5425
|
-
|
|
5426
|
-
|
|
5427
|
-
|
|
5428
|
-
|
|
5429
|
-
|
|
5430
|
-
|
|
5542
|
+
description: jsxs(Fragment, {
|
|
5543
|
+
children: [jsx(ShortCutSegment, Object.assign({
|
|
5544
|
+
type: "icon"
|
|
5545
|
+
}, {
|
|
5546
|
+
children: "Ctrl"
|
|
5547
|
+
})), jsx(ShortCutSegment, Object.assign({
|
|
5548
|
+
type: "connect"
|
|
5549
|
+
}, {
|
|
5550
|
+
children: "+"
|
|
5551
|
+
})), jsx(ShortCutSegment, Object.assign({
|
|
5552
|
+
type: "icon"
|
|
5553
|
+
}, {
|
|
5554
|
+
children: "Alt"
|
|
5555
|
+
})), jsx(ShortCutSegment, Object.assign({
|
|
5556
|
+
type: "connect"
|
|
5557
|
+
}, {
|
|
5558
|
+
children: "+"
|
|
5559
|
+
})), jsx(ShortCutSegment, Object.assign({
|
|
5560
|
+
type: "icon"
|
|
5561
|
+
}, {
|
|
5562
|
+
children: "h"
|
|
5563
|
+
}))]
|
|
5564
|
+
}),
|
|
5565
|
+
descriptionMac: jsxs(Fragment, {
|
|
5566
|
+
children: [jsx(ShortCutSegment, Object.assign({
|
|
5567
|
+
type: "icon"
|
|
5568
|
+
}, {
|
|
5569
|
+
children: "Ctrl"
|
|
5570
|
+
})), jsx(ShortCutSegment, Object.assign({
|
|
5571
|
+
type: "connect"
|
|
5572
|
+
}, {
|
|
5573
|
+
children: "+"
|
|
5574
|
+
})), jsx(ShortCutSegment, Object.assign({
|
|
5575
|
+
type: "icon"
|
|
5576
|
+
}, {
|
|
5577
|
+
children: jsx(KeyOption, {})
|
|
5578
|
+
})), jsx(ShortCutSegment, Object.assign({
|
|
5579
|
+
type: "connect"
|
|
5580
|
+
}, {
|
|
5581
|
+
children: "+"
|
|
5582
|
+
})), jsx(ShortCutSegment, Object.assign({
|
|
5583
|
+
type: "icon"
|
|
5584
|
+
}, {
|
|
5585
|
+
children: "h"
|
|
5586
|
+
}))]
|
|
5587
|
+
})
|
|
5431
5588
|
}, {
|
|
5432
5589
|
titleKey: 'shared-change-timestep-or-speed',
|
|
5433
|
-
description: (
|
|
5434
|
-
|
|
5435
|
-
|
|
5436
|
-
|
|
5437
|
-
|
|
5438
|
-
|
|
5439
|
-
|
|
5440
|
-
|
|
5441
|
-
|
|
5442
|
-
|
|
5443
|
-
|
|
5444
|
-
|
|
5445
|
-
|
|
5446
|
-
|
|
5447
|
-
|
|
5448
|
-
|
|
5449
|
-
|
|
5450
|
-
|
|
5451
|
-
|
|
5452
|
-
|
|
5453
|
-
|
|
5454
|
-
|
|
5590
|
+
description: jsxs(Fragment, {
|
|
5591
|
+
children: [jsx(ShortCutSegment, Object.assign({
|
|
5592
|
+
type: "icon"
|
|
5593
|
+
}, {
|
|
5594
|
+
children: "Ctrl"
|
|
5595
|
+
})), jsx(ShortCutSegment, Object.assign({
|
|
5596
|
+
type: "connect"
|
|
5597
|
+
}, {
|
|
5598
|
+
children: "+"
|
|
5599
|
+
})), jsx(ShortCutSegment, Object.assign({
|
|
5600
|
+
type: "icon"
|
|
5601
|
+
}, {
|
|
5602
|
+
children: jsx(ArrowUp, {})
|
|
5603
|
+
})), jsx(ShortCutSegment, Object.assign({
|
|
5604
|
+
type: "divider"
|
|
5605
|
+
}, {
|
|
5606
|
+
children: t('shared-shortcut-or')
|
|
5607
|
+
})), jsx(ShortCutSegment, Object.assign({
|
|
5608
|
+
type: "icon"
|
|
5609
|
+
}, {
|
|
5610
|
+
children: jsx(ArrowDown, {})
|
|
5611
|
+
})), jsxs(ShortCutSegment, {
|
|
5612
|
+
children: ["(", t('shared-shortcut-when-active'), ")"]
|
|
5613
|
+
})]
|
|
5614
|
+
}),
|
|
5615
|
+
descriptionMac: jsxs(Fragment, {
|
|
5616
|
+
children: [jsx(ShortCutSegment, Object.assign({
|
|
5617
|
+
type: "icon"
|
|
5618
|
+
}, {
|
|
5619
|
+
children: jsx(KeyCommand, {})
|
|
5620
|
+
})), jsx(ShortCutSegment, Object.assign({
|
|
5621
|
+
type: "connect"
|
|
5622
|
+
}, {
|
|
5623
|
+
children: "+"
|
|
5624
|
+
})), jsx(ShortCutSegment, Object.assign({
|
|
5625
|
+
type: "icon"
|
|
5626
|
+
}, {
|
|
5627
|
+
children: jsx(ArrowUp, {})
|
|
5628
|
+
})), jsx(ShortCutSegment, Object.assign({
|
|
5629
|
+
type: "divider"
|
|
5630
|
+
}, {
|
|
5631
|
+
children: t('shared-shortcut-or')
|
|
5632
|
+
})), jsx(ShortCutSegment, Object.assign({
|
|
5633
|
+
type: "icon"
|
|
5634
|
+
}, {
|
|
5635
|
+
children: jsx(ArrowDown, {})
|
|
5636
|
+
})), jsxs(ShortCutSegment, {
|
|
5637
|
+
children: ["(", t('shared-shortcut-when-active'), ")"]
|
|
5638
|
+
})]
|
|
5639
|
+
})
|
|
5455
5640
|
}, {
|
|
5456
5641
|
titleKey: 'shared-return-to-current-time',
|
|
5457
|
-
description: (
|
|
5458
|
-
type: "icon"
|
|
5459
|
-
}, t('shared-shortcut-home'))),
|
|
5460
|
-
descriptionMac: ( /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(ShortCutSegment, {
|
|
5461
|
-
type: "icon"
|
|
5462
|
-
}, "fn"), /*#__PURE__*/React__default.createElement(ShortCutSegment, {
|
|
5463
|
-
type: "connect"
|
|
5464
|
-
}, "+"), /*#__PURE__*/React__default.createElement(ShortCutSegment, {
|
|
5642
|
+
description: jsx(ShortCutSegment, Object.assign({
|
|
5465
5643
|
type: "icon"
|
|
5466
|
-
},
|
|
5644
|
+
}, {
|
|
5645
|
+
children: t('shared-shortcut-home')
|
|
5646
|
+
})),
|
|
5647
|
+
descriptionMac: jsxs(Fragment, {
|
|
5648
|
+
children: [jsx(ShortCutSegment, Object.assign({
|
|
5649
|
+
type: "icon"
|
|
5650
|
+
}, {
|
|
5651
|
+
children: "fn"
|
|
5652
|
+
})), jsx(ShortCutSegment, Object.assign({
|
|
5653
|
+
type: "connect"
|
|
5654
|
+
}, {
|
|
5655
|
+
children: "+"
|
|
5656
|
+
})), jsx(ShortCutSegment, Object.assign({
|
|
5657
|
+
type: "icon"
|
|
5658
|
+
}, {
|
|
5659
|
+
children: jsx(ArrowLeft, {})
|
|
5660
|
+
}))]
|
|
5661
|
+
})
|
|
5467
5662
|
}, {
|
|
5468
5663
|
titleKey: 'shared-change-layer-values-scrolling',
|
|
5469
|
-
description: (
|
|
5470
|
-
|
|
5471
|
-
|
|
5472
|
-
|
|
5473
|
-
|
|
5474
|
-
|
|
5664
|
+
description: jsxs(Fragment, {
|
|
5665
|
+
children: [jsx(ShortCutSegment, Object.assign({
|
|
5666
|
+
type: "icon"
|
|
5667
|
+
}, {
|
|
5668
|
+
children: "Ctrl"
|
|
5669
|
+
})), jsxs(ShortCutSegment, {
|
|
5670
|
+
children: [' ', t('shared-shortcut-mouse-scroll')]
|
|
5671
|
+
})]
|
|
5672
|
+
}),
|
|
5673
|
+
descriptionMac: jsxs(Fragment, {
|
|
5674
|
+
children: [jsx(ShortCutSegment, Object.assign({
|
|
5675
|
+
type: "icon"
|
|
5676
|
+
}, {
|
|
5677
|
+
children: jsx(KeyCommand, {})
|
|
5678
|
+
})), jsxs(ShortCutSegment, {
|
|
5679
|
+
children: [' ', t('shared-shortcut-mouse-scroll')]
|
|
5680
|
+
})]
|
|
5681
|
+
})
|
|
5475
5682
|
}, {
|
|
5476
5683
|
titleKey: 'shared-change-layermanager-small',
|
|
5477
|
-
description: (
|
|
5478
|
-
|
|
5479
|
-
|
|
5480
|
-
|
|
5481
|
-
|
|
5482
|
-
|
|
5483
|
-
|
|
5484
|
-
|
|
5485
|
-
|
|
5486
|
-
|
|
5487
|
-
|
|
5488
|
-
|
|
5489
|
-
|
|
5490
|
-
|
|
5684
|
+
description: jsxs(Fragment, {
|
|
5685
|
+
children: [jsx(ShortCutSegment, Object.assign({
|
|
5686
|
+
type: "icon"
|
|
5687
|
+
}, {
|
|
5688
|
+
children: "Ctrl"
|
|
5689
|
+
})), jsx(ShortCutSegment, {
|
|
5690
|
+
children: " + "
|
|
5691
|
+
}), jsx(ShortCutSegment, Object.assign({
|
|
5692
|
+
type: "icon"
|
|
5693
|
+
}, {
|
|
5694
|
+
children: "Alt"
|
|
5695
|
+
})), jsx(ShortCutSegment, {
|
|
5696
|
+
children: " + "
|
|
5697
|
+
}), jsx(ShortCutSegment, Object.assign({
|
|
5698
|
+
type: "icon"
|
|
5699
|
+
}, {
|
|
5700
|
+
children: "s"
|
|
5701
|
+
}))]
|
|
5702
|
+
}),
|
|
5703
|
+
descriptionMac: jsxs(Fragment, {
|
|
5704
|
+
children: [jsx(ShortCutSegment, Object.assign({
|
|
5705
|
+
type: "icon"
|
|
5706
|
+
}, {
|
|
5707
|
+
children: "Ctrl"
|
|
5708
|
+
})), jsx(ShortCutSegment, {
|
|
5709
|
+
children: " + "
|
|
5710
|
+
}), jsx(ShortCutSegment, Object.assign({
|
|
5711
|
+
type: "icon"
|
|
5712
|
+
}, {
|
|
5713
|
+
children: jsx(KeyOption, {})
|
|
5714
|
+
})), jsx(ShortCutSegment, {
|
|
5715
|
+
children: " + "
|
|
5716
|
+
}), jsx(ShortCutSegment, Object.assign({
|
|
5717
|
+
type: "icon"
|
|
5718
|
+
}, {
|
|
5719
|
+
children: "s"
|
|
5720
|
+
}))]
|
|
5721
|
+
})
|
|
5491
5722
|
}, {
|
|
5492
5723
|
titleKey: 'shared-change-layermanager-medium',
|
|
5493
|
-
description: (
|
|
5494
|
-
|
|
5495
|
-
|
|
5496
|
-
|
|
5497
|
-
|
|
5498
|
-
|
|
5499
|
-
|
|
5500
|
-
|
|
5501
|
-
|
|
5502
|
-
|
|
5503
|
-
|
|
5504
|
-
|
|
5505
|
-
|
|
5506
|
-
|
|
5724
|
+
description: jsxs(Fragment, {
|
|
5725
|
+
children: [jsx(ShortCutSegment, Object.assign({
|
|
5726
|
+
type: "icon"
|
|
5727
|
+
}, {
|
|
5728
|
+
children: "Ctrl"
|
|
5729
|
+
})), jsx(ShortCutSegment, {
|
|
5730
|
+
children: " + "
|
|
5731
|
+
}), jsx(ShortCutSegment, Object.assign({
|
|
5732
|
+
type: "icon"
|
|
5733
|
+
}, {
|
|
5734
|
+
children: "Alt"
|
|
5735
|
+
})), jsx(ShortCutSegment, {
|
|
5736
|
+
children: " + "
|
|
5737
|
+
}), jsx(ShortCutSegment, Object.assign({
|
|
5738
|
+
type: "icon"
|
|
5739
|
+
}, {
|
|
5740
|
+
children: "m"
|
|
5741
|
+
}))]
|
|
5742
|
+
}),
|
|
5743
|
+
descriptionMac: jsxs(Fragment, {
|
|
5744
|
+
children: [jsx(ShortCutSegment, Object.assign({
|
|
5745
|
+
type: "icon"
|
|
5746
|
+
}, {
|
|
5747
|
+
children: "Ctrl"
|
|
5748
|
+
})), jsx(ShortCutSegment, {
|
|
5749
|
+
children: " + "
|
|
5750
|
+
}), jsx(ShortCutSegment, Object.assign({
|
|
5751
|
+
type: "icon"
|
|
5752
|
+
}, {
|
|
5753
|
+
children: jsx(KeyOption, {})
|
|
5754
|
+
})), jsx(ShortCutSegment, {
|
|
5755
|
+
children: " + "
|
|
5756
|
+
}), jsx(ShortCutSegment, Object.assign({
|
|
5757
|
+
type: "icon"
|
|
5758
|
+
}, {
|
|
5759
|
+
children: "m"
|
|
5760
|
+
}))]
|
|
5761
|
+
})
|
|
5507
5762
|
}, {
|
|
5508
5763
|
titleKey: 'shared-change-layermanager-large',
|
|
5509
|
-
description: (
|
|
5510
|
-
|
|
5511
|
-
|
|
5512
|
-
|
|
5513
|
-
|
|
5514
|
-
|
|
5515
|
-
|
|
5516
|
-
|
|
5517
|
-
|
|
5518
|
-
|
|
5519
|
-
|
|
5520
|
-
|
|
5521
|
-
|
|
5522
|
-
|
|
5764
|
+
description: jsxs(Fragment, {
|
|
5765
|
+
children: [jsx(ShortCutSegment, Object.assign({
|
|
5766
|
+
type: "icon"
|
|
5767
|
+
}, {
|
|
5768
|
+
children: "Ctrl"
|
|
5769
|
+
})), jsx(ShortCutSegment, {
|
|
5770
|
+
children: " + "
|
|
5771
|
+
}), jsx(ShortCutSegment, Object.assign({
|
|
5772
|
+
type: "icon"
|
|
5773
|
+
}, {
|
|
5774
|
+
children: "Alt"
|
|
5775
|
+
})), jsx(ShortCutSegment, {
|
|
5776
|
+
children: " + "
|
|
5777
|
+
}), jsx(ShortCutSegment, Object.assign({
|
|
5778
|
+
type: "icon"
|
|
5779
|
+
}, {
|
|
5780
|
+
children: "l"
|
|
5781
|
+
}))]
|
|
5782
|
+
}),
|
|
5783
|
+
descriptionMac: jsxs(Fragment, {
|
|
5784
|
+
children: [jsx(ShortCutSegment, Object.assign({
|
|
5785
|
+
type: "icon"
|
|
5786
|
+
}, {
|
|
5787
|
+
children: "Ctrl"
|
|
5788
|
+
})), jsx(ShortCutSegment, {
|
|
5789
|
+
children: " + "
|
|
5790
|
+
}), jsx(ShortCutSegment, Object.assign({
|
|
5791
|
+
type: "icon"
|
|
5792
|
+
}, {
|
|
5793
|
+
children: jsx(KeyOption, {})
|
|
5794
|
+
})), jsx(ShortCutSegment, {
|
|
5795
|
+
children: " + "
|
|
5796
|
+
}), jsx(ShortCutSegment, Object.assign({
|
|
5797
|
+
type: "icon"
|
|
5798
|
+
}, {
|
|
5799
|
+
children: "l"
|
|
5800
|
+
}))]
|
|
5801
|
+
})
|
|
5523
5802
|
}];
|
|
5524
|
-
return
|
|
5803
|
+
return jsx(List, Object.assign({
|
|
5525
5804
|
"data-testid": `list-${_platform}`
|
|
5526
|
-
},
|
|
5527
|
-
|
|
5528
|
-
|
|
5529
|
-
|
|
5530
|
-
|
|
5531
|
-
|
|
5532
|
-
|
|
5533
|
-
|
|
5534
|
-
|
|
5535
|
-
|
|
5536
|
-
|
|
5537
|
-
|
|
5538
|
-
|
|
5539
|
-
|
|
5540
|
-
|
|
5541
|
-
|
|
5542
|
-
|
|
5543
|
-
|
|
5544
|
-
|
|
5545
|
-
|
|
5546
|
-
|
|
5547
|
-
|
|
5548
|
-
|
|
5549
|
-
|
|
5550
|
-
|
|
5551
|
-
|
|
5805
|
+
}, {
|
|
5806
|
+
children: shortcuts.map((shortcut, index) => jsx(ListItem, Object.assign({
|
|
5807
|
+
sx: {
|
|
5808
|
+
minHeight: 56
|
|
5809
|
+
},
|
|
5810
|
+
divider: index !== shortcuts.length - 1
|
|
5811
|
+
}, {
|
|
5812
|
+
children: jsxs(Grid, Object.assign({
|
|
5813
|
+
container: true,
|
|
5814
|
+
direction: "row",
|
|
5815
|
+
justifyContent: "space-between",
|
|
5816
|
+
alignItems: "center"
|
|
5817
|
+
}, {
|
|
5818
|
+
children: [jsx(Grid, Object.assign({
|
|
5819
|
+
item: true,
|
|
5820
|
+
sx: {
|
|
5821
|
+
fontSize: 12,
|
|
5822
|
+
fontWeight: 300,
|
|
5823
|
+
letterSpacing: 0.4,
|
|
5824
|
+
opacity: 0.67
|
|
5825
|
+
}
|
|
5826
|
+
}, {
|
|
5827
|
+
children: t(shortcut.titleKey)
|
|
5828
|
+
})), jsx(Grid, Object.assign({
|
|
5829
|
+
item: true
|
|
5830
|
+
}, {
|
|
5831
|
+
children: jsx(Box, Object.assign({
|
|
5832
|
+
sx: {
|
|
5833
|
+
alignItems: 'center'
|
|
5834
|
+
}
|
|
5835
|
+
}, {
|
|
5836
|
+
children: _platform === 'mac' && shortcut.descriptionMac ? shortcut.descriptionMac : shortcut.description
|
|
5837
|
+
}))
|
|
5838
|
+
}))]
|
|
5839
|
+
}))
|
|
5840
|
+
}), shortcut.titleKey))
|
|
5841
|
+
}));
|
|
5552
5842
|
};
|
|
5553
5843
|
|
|
5554
5844
|
const TabPanel = ({
|
|
5555
5845
|
children,
|
|
5556
5846
|
value,
|
|
5557
5847
|
index
|
|
5558
|
-
}) => (
|
|
5848
|
+
}) => jsx("div", Object.assign({
|
|
5559
5849
|
role: "tabpanel",
|
|
5560
5850
|
hidden: value !== index,
|
|
5561
5851
|
id: `tabpanel-${index}`,
|
|
5562
5852
|
"aria-labelledby": `tab-${index}`
|
|
5563
|
-
},
|
|
5853
|
+
}, {
|
|
5854
|
+
children: value === index && children
|
|
5855
|
+
}));
|
|
5564
5856
|
const styles$1 = {
|
|
5565
5857
|
container: {
|
|
5566
5858
|
margin: '0px 20px',
|
|
@@ -5575,27 +5867,35 @@ const CheatSheet = () => {
|
|
|
5575
5867
|
const onChangeTab = (_event, newValue) => {
|
|
5576
5868
|
onChangeActiveTab(newValue);
|
|
5577
5869
|
};
|
|
5578
|
-
return
|
|
5870
|
+
return jsxs(Box, Object.assign({
|
|
5579
5871
|
sx: styles$1.container
|
|
5580
|
-
},
|
|
5581
|
-
|
|
5582
|
-
|
|
5583
|
-
|
|
5584
|
-
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
|
|
5592
|
-
|
|
5593
|
-
|
|
5594
|
-
|
|
5595
|
-
|
|
5596
|
-
|
|
5597
|
-
|
|
5598
|
-
|
|
5872
|
+
}, {
|
|
5873
|
+
children: [jsxs(Tabs, Object.assign({
|
|
5874
|
+
value: activeTab,
|
|
5875
|
+
onChange: onChangeTab,
|
|
5876
|
+
"aria-label": "platform"
|
|
5877
|
+
}, {
|
|
5878
|
+
children: [jsx(Tab, {
|
|
5879
|
+
sx: styles$1.tab,
|
|
5880
|
+
label: "Windows"
|
|
5881
|
+
}), jsx(Tab, {
|
|
5882
|
+
sx: styles$1.tab,
|
|
5883
|
+
label: "Mac"
|
|
5884
|
+
})]
|
|
5885
|
+
})), jsx(TabPanel, Object.assign({
|
|
5886
|
+
value: activeTab,
|
|
5887
|
+
index: 0
|
|
5888
|
+
}, {
|
|
5889
|
+
children: jsx(ShortcutList, {})
|
|
5890
|
+
})), jsx(TabPanel, Object.assign({
|
|
5891
|
+
value: activeTab,
|
|
5892
|
+
index: 1
|
|
5893
|
+
}, {
|
|
5894
|
+
children: jsx(ShortcutList, {
|
|
5895
|
+
platform: "mac"
|
|
5896
|
+
})
|
|
5897
|
+
}))]
|
|
5898
|
+
}));
|
|
5599
5899
|
};
|
|
5600
5900
|
|
|
5601
5901
|
const UserMenuItemCheatSheet = () => {
|
|
@@ -5609,31 +5909,43 @@ const UserMenuItemCheatSheet = () => {
|
|
|
5609
5909
|
const {
|
|
5610
5910
|
t
|
|
5611
5911
|
} = useTranslation(SHARED_NAMESPACE);
|
|
5612
|
-
return
|
|
5613
|
-
|
|
5614
|
-
|
|
5615
|
-
|
|
5616
|
-
|
|
5617
|
-
|
|
5618
|
-
|
|
5619
|
-
|
|
5620
|
-
|
|
5621
|
-
|
|
5622
|
-
|
|
5623
|
-
|
|
5624
|
-
|
|
5625
|
-
|
|
5626
|
-
|
|
5627
|
-
|
|
5628
|
-
|
|
5629
|
-
|
|
5630
|
-
|
|
5631
|
-
|
|
5632
|
-
|
|
5633
|
-
|
|
5634
|
-
|
|
5635
|
-
|
|
5636
|
-
|
|
5912
|
+
return jsxs(Fragment, {
|
|
5913
|
+
children: [jsx(MenuItem, Object.assign({
|
|
5914
|
+
"data-testid": "cheatsheet-btn",
|
|
5915
|
+
onClick: onOpen,
|
|
5916
|
+
divider: true
|
|
5917
|
+
}, {
|
|
5918
|
+
children: jsx(Grid, Object.assign({
|
|
5919
|
+
container: true
|
|
5920
|
+
}, {
|
|
5921
|
+
children: jsx(Grid, Object.assign({
|
|
5922
|
+
item: true
|
|
5923
|
+
}, {
|
|
5924
|
+
children: t('shared-cheat-sheet')
|
|
5925
|
+
}))
|
|
5926
|
+
}))
|
|
5927
|
+
})), jsx(Backdrop, Object.assign({
|
|
5928
|
+
"data-testid": "cheatsheet-content",
|
|
5929
|
+
open: open,
|
|
5930
|
+
sx: {
|
|
5931
|
+
zIndex: 1
|
|
5932
|
+
}
|
|
5933
|
+
}, {
|
|
5934
|
+
children: jsx(DraggableComponent, Object.assign({
|
|
5935
|
+
startSize: {
|
|
5936
|
+
width: 700
|
|
5937
|
+
},
|
|
5938
|
+
minHeight: 300,
|
|
5939
|
+
minWidth: 500,
|
|
5940
|
+
title: t('shared-cheat-sheet'),
|
|
5941
|
+
isOpen: true,
|
|
5942
|
+
onClose: onClose,
|
|
5943
|
+
bounds: "parent"
|
|
5944
|
+
}, {
|
|
5945
|
+
children: jsx(CheatSheet, {})
|
|
5946
|
+
}))
|
|
5947
|
+
}))]
|
|
5948
|
+
});
|
|
5637
5949
|
};
|
|
5638
5950
|
|
|
5639
5951
|
const UserMenuItemSentryRecording = ({
|
|
@@ -5695,88 +6007,130 @@ const UserMenuItemSentryRecording = ({
|
|
|
5695
6007
|
console.log(error);
|
|
5696
6008
|
}
|
|
5697
6009
|
});
|
|
5698
|
-
return
|
|
5699
|
-
|
|
5700
|
-
|
|
5701
|
-
|
|
5702
|
-
|
|
5703
|
-
|
|
5704
|
-
|
|
5705
|
-
|
|
5706
|
-
|
|
5707
|
-
|
|
5708
|
-
|
|
5709
|
-
|
|
5710
|
-
|
|
5711
|
-
|
|
5712
|
-
|
|
5713
|
-
|
|
5714
|
-
|
|
5715
|
-
|
|
5716
|
-
|
|
5717
|
-
|
|
5718
|
-
|
|
5719
|
-
|
|
5720
|
-
|
|
5721
|
-
|
|
5722
|
-
|
|
5723
|
-
|
|
5724
|
-
|
|
5725
|
-
|
|
5726
|
-
|
|
5727
|
-
|
|
5728
|
-
|
|
5729
|
-
|
|
5730
|
-
|
|
5731
|
-
|
|
5732
|
-
|
|
5733
|
-
|
|
5734
|
-
|
|
5735
|
-
|
|
5736
|
-
|
|
5737
|
-
|
|
5738
|
-
|
|
5739
|
-
|
|
5740
|
-
|
|
5741
|
-
|
|
5742
|
-
|
|
5743
|
-
|
|
5744
|
-
|
|
5745
|
-
|
|
5746
|
-
|
|
5747
|
-
|
|
5748
|
-
|
|
5749
|
-
|
|
5750
|
-
|
|
5751
|
-
|
|
5752
|
-
|
|
5753
|
-
|
|
5754
|
-
|
|
5755
|
-
|
|
5756
|
-
|
|
5757
|
-
|
|
5758
|
-
|
|
5759
|
-
|
|
5760
|
-
|
|
5761
|
-
|
|
5762
|
-
|
|
5763
|
-
|
|
5764
|
-
|
|
5765
|
-
|
|
5766
|
-
|
|
5767
|
-
|
|
5768
|
-
|
|
5769
|
-
|
|
5770
|
-
|
|
5771
|
-
|
|
5772
|
-
|
|
5773
|
-
|
|
5774
|
-
|
|
5775
|
-
|
|
5776
|
-
|
|
5777
|
-
|
|
5778
|
-
|
|
5779
|
-
|
|
6010
|
+
return jsxs(ErrorBoundary, {
|
|
6011
|
+
children: [jsx(MenuItem, Object.assign({
|
|
6012
|
+
"data-testid": "sentryRecording-btn",
|
|
6013
|
+
onClick: onOpen,
|
|
6014
|
+
divider: true
|
|
6015
|
+
}, {
|
|
6016
|
+
children: jsx(Grid, Object.assign({
|
|
6017
|
+
container: true
|
|
6018
|
+
}, {
|
|
6019
|
+
children: jsx(Grid, Object.assign({
|
|
6020
|
+
item: true
|
|
6021
|
+
}, {
|
|
6022
|
+
children: t('shared-sentry-recording')
|
|
6023
|
+
}))
|
|
6024
|
+
}))
|
|
6025
|
+
})), jsx(Backdrop, Object.assign({
|
|
6026
|
+
"data-testid": "sentryRecording-content",
|
|
6027
|
+
open: open,
|
|
6028
|
+
sx: {
|
|
6029
|
+
zIndex: 1
|
|
6030
|
+
}
|
|
6031
|
+
}, {
|
|
6032
|
+
children: jsx(DraggableComponent, Object.assign({
|
|
6033
|
+
startSize: {
|
|
6034
|
+
width: 700
|
|
6035
|
+
},
|
|
6036
|
+
minHeight: 300,
|
|
6037
|
+
minWidth: 500,
|
|
6038
|
+
title: "Sentry Recording",
|
|
6039
|
+
isOpen: true,
|
|
6040
|
+
onClose: onClose,
|
|
6041
|
+
bounds: "parent"
|
|
6042
|
+
}, {
|
|
6043
|
+
children: jsxs(Grid, Object.assign({
|
|
6044
|
+
container: true,
|
|
6045
|
+
spacing: 4,
|
|
6046
|
+
sx: {
|
|
6047
|
+
paddingLeft: '70px',
|
|
6048
|
+
paddingRight: '70px'
|
|
6049
|
+
}
|
|
6050
|
+
}, {
|
|
6051
|
+
children: [jsx(Grid, Object.assign({
|
|
6052
|
+
container: true,
|
|
6053
|
+
item: true,
|
|
6054
|
+
justifyContent: "center",
|
|
6055
|
+
sx: {
|
|
6056
|
+
textAlign: 'center'
|
|
6057
|
+
}
|
|
6058
|
+
}, {
|
|
6059
|
+
children: jsx(Typography, {
|
|
6060
|
+
children: t('shared-sentry-information')
|
|
6061
|
+
})
|
|
6062
|
+
})), jsx(Grid, Object.assign({
|
|
6063
|
+
container: true,
|
|
6064
|
+
item: true,
|
|
6065
|
+
justifyContent: "center",
|
|
6066
|
+
sx: {
|
|
6067
|
+
textAlign: 'center'
|
|
6068
|
+
}
|
|
6069
|
+
}, {
|
|
6070
|
+
children: jsx(Typography, {
|
|
6071
|
+
children: t('shared-sentry-enable-message')
|
|
6072
|
+
})
|
|
6073
|
+
})), jsxs(Grid, Object.assign({
|
|
6074
|
+
container: true,
|
|
6075
|
+
item: true,
|
|
6076
|
+
alignItems: "center",
|
|
6077
|
+
direction: "column"
|
|
6078
|
+
}, {
|
|
6079
|
+
children: [jsx(Switch, {
|
|
6080
|
+
checked: recordButtonEnabled && !canvasIntegrationEnabled,
|
|
6081
|
+
onChange: enableHTMLRecording,
|
|
6082
|
+
disabled: htmlRecordingEnabled
|
|
6083
|
+
}), recordButtonEnabled && !canvasIntegrationEnabled ? jsxs(Typography, {
|
|
6084
|
+
children: [" ", t('shared-sentry-disable')]
|
|
6085
|
+
}) : jsxs(Typography, {
|
|
6086
|
+
children: [" ", t('shared-sentry-enable')]
|
|
6087
|
+
})]
|
|
6088
|
+
})), jsxs(Grid, Object.assign({
|
|
6089
|
+
container: true,
|
|
6090
|
+
item: true,
|
|
6091
|
+
alignItems: "center",
|
|
6092
|
+
direction: "column"
|
|
6093
|
+
}, {
|
|
6094
|
+
children: [jsx(Switch, {
|
|
6095
|
+
disabled: true,
|
|
6096
|
+
checked: canvasIntegrationEnabled,
|
|
6097
|
+
onChange: enableHTMLAndCanvasRecording
|
|
6098
|
+
}), canvasIntegrationEnabled ? jsx(Typography, {
|
|
6099
|
+
children: t('shared-sentry-disable-both')
|
|
6100
|
+
}) : jsxs(Fragment, {
|
|
6101
|
+
children: [jsx(Typography, Object.assign({
|
|
6102
|
+
sx: {
|
|
6103
|
+
color: 'gray'
|
|
6104
|
+
}
|
|
6105
|
+
}, {
|
|
6106
|
+
children: t('shared-sentry-enable-both')
|
|
6107
|
+
})), jsxs(Typography, Object.assign({
|
|
6108
|
+
textAlign: "center",
|
|
6109
|
+
sx: {
|
|
6110
|
+
color: 'gray'
|
|
6111
|
+
}
|
|
6112
|
+
}, {
|
|
6113
|
+
children: ["(", t('shared-sentry-cors-wait'), ")"]
|
|
6114
|
+
}))]
|
|
6115
|
+
})]
|
|
6116
|
+
})), jsx(Grid, Object.assign({
|
|
6117
|
+
container: true,
|
|
6118
|
+
item: true,
|
|
6119
|
+
justifyContent: "center"
|
|
6120
|
+
}, {
|
|
6121
|
+
children: jsxs(Typography, Object.assign({
|
|
6122
|
+
sx: {
|
|
6123
|
+
paddingTop: '20px',
|
|
6124
|
+
textAlign: 'center'
|
|
6125
|
+
}
|
|
6126
|
+
}, {
|
|
6127
|
+
children: [' ', t('shared-sentry-disclaimer')]
|
|
6128
|
+
}))
|
|
6129
|
+
}))]
|
|
6130
|
+
}))
|
|
6131
|
+
}))
|
|
6132
|
+
}))]
|
|
6133
|
+
});
|
|
5780
6134
|
};
|
|
5781
6135
|
|
|
5782
6136
|
const useUserMenu = (open = false) => {
|
|
@@ -5920,7 +6274,7 @@ const CustomSlider = _a => {
|
|
|
5920
6274
|
}
|
|
5921
6275
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
5922
6276
|
}, []);
|
|
5923
|
-
return
|
|
6277
|
+
return jsx(Slider, Object.assign({
|
|
5924
6278
|
sx: sliderStyle,
|
|
5925
6279
|
ref: element,
|
|
5926
6280
|
value: value,
|
|
@@ -5945,7 +6299,7 @@ const CustomToggleButton = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
5945
6299
|
value = 0
|
|
5946
6300
|
} = _a,
|
|
5947
6301
|
props = __rest(_a, ["variant", "className", "value"]);
|
|
5948
|
-
return
|
|
6302
|
+
return jsx(ToggleButton, Object.assign({
|
|
5949
6303
|
ref: ref,
|
|
5950
6304
|
className: `${variant} ${className}`,
|
|
5951
6305
|
value: value
|
|
@@ -6001,7 +6355,7 @@ const ToggleMenu = ({
|
|
|
6001
6355
|
menuTitle: _menuTitle = '',
|
|
6002
6356
|
variant: _variant = 'tool',
|
|
6003
6357
|
isDefaultOpen: _isDefaultOpen = false,
|
|
6004
|
-
buttonIcon: _buttonIcon =
|
|
6358
|
+
buttonIcon: _buttonIcon = jsx(Options, {}),
|
|
6005
6359
|
isDisabled: _isDisabled = false
|
|
6006
6360
|
}) => {
|
|
6007
6361
|
const [anchorEl, setAnchorEl] = React.useState(null);
|
|
@@ -6023,79 +6377,100 @@ const ToggleMenu = ({
|
|
|
6023
6377
|
setAnchorEl(document.getElementById(_buttonTestId));
|
|
6024
6378
|
}
|
|
6025
6379
|
}, [_isDefaultOpen, _buttonTestId]);
|
|
6026
|
-
return
|
|
6027
|
-
|
|
6028
|
-
|
|
6029
|
-
|
|
6030
|
-
|
|
6031
|
-
|
|
6032
|
-
|
|
6033
|
-
|
|
6034
|
-
|
|
6035
|
-
|
|
6036
|
-
|
|
6037
|
-
|
|
6038
|
-
|
|
6039
|
-
|
|
6040
|
-
|
|
6041
|
-
|
|
6042
|
-
|
|
6043
|
-
|
|
6044
|
-
|
|
6045
|
-
|
|
6046
|
-
|
|
6047
|
-
|
|
6048
|
-
transformOrigin: transformOrigin,
|
|
6049
|
-
BackdropProps: {
|
|
6050
|
-
style: {
|
|
6051
|
-
opacity: 0,
|
|
6052
|
-
transition: 'none'
|
|
6053
|
-
}
|
|
6054
|
-
},
|
|
6055
|
-
MenuListProps: Object.assign({}, children && {
|
|
6056
|
-
style: {
|
|
6057
|
-
padding: '0px'
|
|
6058
|
-
}
|
|
6059
|
-
})
|
|
6060
|
-
}, _menuTitle && ( /*#__PURE__*/React.createElement(ListSubheader, {
|
|
6061
|
-
"data-testid": "toggleMenuTitle"
|
|
6062
|
-
}, /*#__PURE__*/React.createElement(Typography, {
|
|
6063
|
-
sx: {
|
|
6064
|
-
fontSize: '12px'
|
|
6065
|
-
}
|
|
6066
|
-
}, _menuTitle))), menuItems && menuItems.length ? menuItems.map(menuItem => {
|
|
6067
|
-
const {
|
|
6068
|
-
text,
|
|
6069
|
-
icon,
|
|
6070
|
-
action,
|
|
6071
|
-
isDisabled
|
|
6072
|
-
} = menuItem;
|
|
6073
|
-
return /*#__PURE__*/React.createElement(MenuItem, {
|
|
6074
|
-
key: text,
|
|
6075
|
-
onClick: event => {
|
|
6076
|
-
action(event);
|
|
6380
|
+
return jsxs(Fragment, {
|
|
6381
|
+
children: [jsx(CustomIconButton, Object.assign({
|
|
6382
|
+
tooltipProps: {
|
|
6383
|
+
placement: 'top',
|
|
6384
|
+
title: _tooltipTitle
|
|
6385
|
+
},
|
|
6386
|
+
isSelected: isOpen,
|
|
6387
|
+
sx: buttonSx,
|
|
6388
|
+
onClick: handleClick,
|
|
6389
|
+
"data-testid": _buttonTestId,
|
|
6390
|
+
variant: _variant,
|
|
6391
|
+
id: _buttonTestId,
|
|
6392
|
+
disabled: _isDisabled
|
|
6393
|
+
}, {
|
|
6394
|
+
children: _buttonIcon
|
|
6395
|
+
})), jsxs(Menu, Object.assign({
|
|
6396
|
+
anchorEl: anchorEl,
|
|
6397
|
+
open: isOpen,
|
|
6398
|
+
onClose: (event, reason) => {
|
|
6399
|
+
if (reason === 'tabKeyDown') {
|
|
6400
|
+
return;
|
|
6401
|
+
}
|
|
6077
6402
|
handleClose(event);
|
|
6078
6403
|
},
|
|
6079
|
-
|
|
6080
|
-
|
|
6081
|
-
|
|
6082
|
-
|
|
6083
|
-
|
|
6084
|
-
|
|
6085
|
-
}, /*#__PURE__*/React.createElement(Grid, {
|
|
6086
|
-
item: true
|
|
6087
|
-
}, /*#__PURE__*/React.createElement(ListItemText, null, text)), icon && ( /*#__PURE__*/React.createElement(Grid, {
|
|
6088
|
-
item: true,
|
|
6089
|
-
alignItems: "flex-end"
|
|
6090
|
-
}, /*#__PURE__*/React.createElement(ListItemIcon, {
|
|
6091
|
-
sx: {
|
|
6092
|
-
'&.MuiListItemIcon-root': {
|
|
6093
|
-
minWidth: '24px'
|
|
6404
|
+
anchorOrigin: anchorOrigin,
|
|
6405
|
+
transformOrigin: transformOrigin,
|
|
6406
|
+
BackdropProps: {
|
|
6407
|
+
style: {
|
|
6408
|
+
opacity: 0,
|
|
6409
|
+
transition: 'none'
|
|
6094
6410
|
}
|
|
6095
|
-
}
|
|
6096
|
-
|
|
6097
|
-
|
|
6098
|
-
|
|
6411
|
+
},
|
|
6412
|
+
MenuListProps: Object.assign({}, children && {
|
|
6413
|
+
style: {
|
|
6414
|
+
padding: '0px'
|
|
6415
|
+
}
|
|
6416
|
+
})
|
|
6417
|
+
}, {
|
|
6418
|
+
children: [_menuTitle && jsx(ListSubheader, Object.assign({
|
|
6419
|
+
"data-testid": "toggleMenuTitle"
|
|
6420
|
+
}, {
|
|
6421
|
+
children: jsx(Typography, Object.assign({
|
|
6422
|
+
sx: {
|
|
6423
|
+
fontSize: '12px'
|
|
6424
|
+
}
|
|
6425
|
+
}, {
|
|
6426
|
+
children: _menuTitle
|
|
6427
|
+
}))
|
|
6428
|
+
})), menuItems && menuItems.length ? menuItems.map(menuItem => {
|
|
6429
|
+
const {
|
|
6430
|
+
text,
|
|
6431
|
+
icon,
|
|
6432
|
+
action,
|
|
6433
|
+
isDisabled
|
|
6434
|
+
} = menuItem;
|
|
6435
|
+
return jsx(MenuItem, Object.assign({
|
|
6436
|
+
onClick: event => {
|
|
6437
|
+
action(event);
|
|
6438
|
+
handleClose(event);
|
|
6439
|
+
},
|
|
6440
|
+
disabled: isDisabled,
|
|
6441
|
+
selected: menuItem.isSelected
|
|
6442
|
+
}, {
|
|
6443
|
+
children: jsxs(Grid, Object.assign({
|
|
6444
|
+
container: true,
|
|
6445
|
+
spacing: 2,
|
|
6446
|
+
justifyContent: "space-between"
|
|
6447
|
+
}, {
|
|
6448
|
+
children: [jsx(Grid, Object.assign({
|
|
6449
|
+
item: true
|
|
6450
|
+
}, {
|
|
6451
|
+
children: jsx(ListItemText, {
|
|
6452
|
+
children: text
|
|
6453
|
+
})
|
|
6454
|
+
})), icon && jsx(Grid, Object.assign({
|
|
6455
|
+
item: true,
|
|
6456
|
+
alignItems: "flex-end"
|
|
6457
|
+
}, {
|
|
6458
|
+
children: jsx(ListItemIcon, Object.assign({
|
|
6459
|
+
sx: {
|
|
6460
|
+
'&.MuiListItemIcon-root': {
|
|
6461
|
+
minWidth: '24px'
|
|
6462
|
+
}
|
|
6463
|
+
}
|
|
6464
|
+
}, {
|
|
6465
|
+
children: icon
|
|
6466
|
+
}))
|
|
6467
|
+
}))]
|
|
6468
|
+
}))
|
|
6469
|
+
}), text);
|
|
6470
|
+
}) : jsx("div", {}) // Needed to make the menu work without any menuItems
|
|
6471
|
+
, children]
|
|
6472
|
+
}))]
|
|
6473
|
+
});
|
|
6099
6474
|
};
|
|
6100
6475
|
|
|
6101
6476
|
const TooltipSelect = _a => {
|
|
@@ -6148,25 +6523,27 @@ const TooltipSelect = _a => {
|
|
|
6148
6523
|
const onBlur = React.useCallback(() => {
|
|
6149
6524
|
setTooltipOpen(false);
|
|
6150
6525
|
}, [setTooltipOpen]);
|
|
6151
|
-
return
|
|
6526
|
+
return jsx(CustomTooltip, Object.assign({
|
|
6152
6527
|
title: tooltip,
|
|
6153
6528
|
placement: "top",
|
|
6154
6529
|
open: tooltipOpen
|
|
6155
|
-
},
|
|
6156
|
-
|
|
6157
|
-
|
|
6158
|
-
|
|
6159
|
-
|
|
6160
|
-
|
|
6161
|
-
|
|
6162
|
-
|
|
6163
|
-
|
|
6164
|
-
|
|
6165
|
-
|
|
6166
|
-
|
|
6167
|
-
|
|
6168
|
-
|
|
6169
|
-
|
|
6530
|
+
}, {
|
|
6531
|
+
children: jsx(StyledSelect, Object.assign({
|
|
6532
|
+
variant: variant,
|
|
6533
|
+
disableUnderline: true,
|
|
6534
|
+
onOpen: onOpen,
|
|
6535
|
+
onClose: onClose,
|
|
6536
|
+
onMouseEnter: onMouseEnter,
|
|
6537
|
+
onMouseLeave: onMouseLeave,
|
|
6538
|
+
onFocus: onFocus,
|
|
6539
|
+
onBlur: onBlur,
|
|
6540
|
+
onWheel: onWheel,
|
|
6541
|
+
isEnabled: isEnabled,
|
|
6542
|
+
hasBackgroundColor: hasBackgroundColor,
|
|
6543
|
+
additionalStyling: additionalStyling,
|
|
6544
|
+
skipLocalStyling: skipLocalStyling
|
|
6545
|
+
}, props))
|
|
6546
|
+
}));
|
|
6170
6547
|
};
|
|
6171
6548
|
// Style the select
|
|
6172
6549
|
const BaseSelect = styled(Select, {
|
|
@@ -6186,7 +6563,7 @@ const StyledSelect = styled( /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
6186
6563
|
additionalStyling
|
|
6187
6564
|
} = _a,
|
|
6188
6565
|
props = __rest(_a, ["className", "additionalStyling"]);
|
|
6189
|
-
return
|
|
6566
|
+
return jsx(BaseSelect, Object.assign({}, props, {
|
|
6190
6567
|
MenuProps: {
|
|
6191
6568
|
classes: {
|
|
6192
6569
|
paper: className
|
|
@@ -6304,7 +6681,7 @@ function withEggs(eggs) {
|
|
|
6304
6681
|
const store = useStore();
|
|
6305
6682
|
const [remover] = React.useState(() => store.addEggs(eggs));
|
|
6306
6683
|
React.useEffect(() => remover, [remover]);
|
|
6307
|
-
return
|
|
6684
|
+
return jsx(Component, Object.assign({}, props));
|
|
6308
6685
|
};
|
|
6309
6686
|
WithEggs.displayName = `withEggs(${Component.displayName || Component.name || 'Component'})`;
|
|
6310
6687
|
return WithEggs;
|
|
@@ -6325,7 +6702,7 @@ const CustomAccordion = _a => {
|
|
|
6325
6702
|
} = _a,
|
|
6326
6703
|
props = __rest(_a, ["title", "defaultExpanded", "disableGutters", "expandedElevation", "collapsedElevation", "transitionDuration", "detailsSx", "CustomExpandIcon", "children"]);
|
|
6327
6704
|
const [expanded, setExpanded] = React.useState(defaultExpanded);
|
|
6328
|
-
return
|
|
6705
|
+
return jsxs(Accordion, Object.assign({}, props, {
|
|
6329
6706
|
defaultExpanded: defaultExpanded,
|
|
6330
6707
|
elevation: expanded ? expandedElevation : collapsedElevation,
|
|
6331
6708
|
onChange: (_event, expanded) => setExpanded(expanded),
|
|
@@ -6333,11 +6710,17 @@ const CustomAccordion = _a => {
|
|
|
6333
6710
|
TransitionProps: {
|
|
6334
6711
|
timeout: transitionDuration
|
|
6335
6712
|
}
|
|
6336
|
-
}
|
|
6337
|
-
|
|
6338
|
-
|
|
6339
|
-
|
|
6340
|
-
|
|
6713
|
+
}, {
|
|
6714
|
+
children: [jsx(AccordionSummary, Object.assign({
|
|
6715
|
+
expandIcon: CustomExpandIcon ? jsx(CustomExpandIcon, {}) : jsx(ChevronDown, {})
|
|
6716
|
+
}, {
|
|
6717
|
+
children: title
|
|
6718
|
+
})), jsx(AccordionDetails, Object.assign({
|
|
6719
|
+
sx: detailsSx
|
|
6720
|
+
}, {
|
|
6721
|
+
children: children
|
|
6722
|
+
}))]
|
|
6723
|
+
}));
|
|
6341
6724
|
};
|
|
6342
6725
|
|
|
6343
6726
|
var $$4 = _export;
|
|
@@ -7203,24 +7586,29 @@ const SearchHighlight = ({
|
|
|
7203
7586
|
search
|
|
7204
7587
|
}) => {
|
|
7205
7588
|
if (search === '') {
|
|
7206
|
-
return
|
|
7589
|
+
return jsx("span", {
|
|
7590
|
+
children: _text
|
|
7591
|
+
});
|
|
7207
7592
|
}
|
|
7208
7593
|
const searchWords = search.split(' ').reduce((words, word) => word ? [...words, word.toLocaleLowerCase()] : words, []);
|
|
7209
7594
|
const searchRegex = searchWords.map(word => escapeRegExp(word)).join('|');
|
|
7210
7595
|
const textParts = _text.split(new RegExp(`(${searchRegex})`, 'gi'));
|
|
7211
|
-
return
|
|
7212
|
-
|
|
7213
|
-
|
|
7214
|
-
|
|
7215
|
-
|
|
7216
|
-
|
|
7217
|
-
|
|
7218
|
-
|
|
7219
|
-
|
|
7220
|
-
|
|
7221
|
-
|
|
7222
|
-
|
|
7223
|
-
|
|
7596
|
+
return jsx(Fragment, {
|
|
7597
|
+
children: textParts.map((part, index) => {
|
|
7598
|
+
const key = `${part}-${index}`;
|
|
7599
|
+
if (searchWords.some(search => part.toLocaleLowerCase().includes(search))) {
|
|
7600
|
+
return jsx("mark", Object.assign({
|
|
7601
|
+
style: highlightStyle,
|
|
7602
|
+
"data-testid": "mark"
|
|
7603
|
+
}, {
|
|
7604
|
+
children: part
|
|
7605
|
+
}), key);
|
|
7606
|
+
}
|
|
7607
|
+
return jsx("span", {
|
|
7608
|
+
children: part
|
|
7609
|
+
}, key);
|
|
7610
|
+
})
|
|
7611
|
+
});
|
|
7224
7612
|
};
|
|
7225
7613
|
|
|
7226
7614
|
const styles = {
|
|
@@ -7238,17 +7626,25 @@ const SwitchButton = _a => {
|
|
|
7238
7626
|
tooltip = 'Switch mode'
|
|
7239
7627
|
} = _a,
|
|
7240
7628
|
props = __rest(_a, ["activeLabel", "inActiveLabel", "tooltip"]);
|
|
7241
|
-
return
|
|
7629
|
+
return jsx(CustomTooltip, Object.assign({
|
|
7242
7630
|
title: tooltip
|
|
7243
|
-
},
|
|
7244
|
-
|
|
7245
|
-
|
|
7246
|
-
|
|
7247
|
-
|
|
7248
|
-
|
|
7249
|
-
|
|
7250
|
-
|
|
7251
|
-
|
|
7631
|
+
}, {
|
|
7632
|
+
children: jsxs("span", Object.assign({
|
|
7633
|
+
role: "button"
|
|
7634
|
+
}, {
|
|
7635
|
+
children: [jsx(FormLabel, Object.assign({
|
|
7636
|
+
sx: styles.label
|
|
7637
|
+
}, {
|
|
7638
|
+
children: inActiveLabel
|
|
7639
|
+
})), jsx(Switch, Object.assign({
|
|
7640
|
+
"data-testid": "switchMode"
|
|
7641
|
+
}, props)), jsx(FormLabel, Object.assign({
|
|
7642
|
+
sx: styles.label
|
|
7643
|
+
}, {
|
|
7644
|
+
children: activeLabel
|
|
7645
|
+
}))]
|
|
7646
|
+
}))
|
|
7647
|
+
}));
|
|
7252
7648
|
};
|
|
7253
7649
|
|
|
7254
7650
|
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
@@ -7289,11 +7685,13 @@ $({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, {
|
|
|
7289
7685
|
const isURL = string => /^https?:\/\//.test(string);
|
|
7290
7686
|
const ClearButton = ({
|
|
7291
7687
|
onClick
|
|
7292
|
-
}) => (
|
|
7688
|
+
}) => jsx(CustomIconButton, Object.assign({
|
|
7293
7689
|
tooltipTitle: "Clear",
|
|
7294
7690
|
sx: buttonStyle,
|
|
7295
7691
|
onClick: onClick
|
|
7296
|
-
},
|
|
7692
|
+
}, {
|
|
7693
|
+
children: jsx(Clear, {})
|
|
7694
|
+
}));
|
|
7297
7695
|
const buttonStyle = {
|
|
7298
7696
|
'&.MuiButtonBase-root.MuiIconButton-root': {
|
|
7299
7697
|
width: 48,
|
|
@@ -7310,26 +7708,34 @@ const SearchFieldButton = ({
|
|
|
7310
7708
|
t
|
|
7311
7709
|
} = useTranslation(SHARED_NAMESPACE);
|
|
7312
7710
|
if (isURL(localSearchString)) {
|
|
7313
|
-
return
|
|
7314
|
-
|
|
7315
|
-
|
|
7316
|
-
|
|
7317
|
-
|
|
7318
|
-
|
|
7319
|
-
|
|
7320
|
-
|
|
7321
|
-
|
|
7322
|
-
|
|
7711
|
+
return jsxs(Fragment, {
|
|
7712
|
+
children: [jsx("div", Object.assign({
|
|
7713
|
+
style: {
|
|
7714
|
+
marginRight: '15px'
|
|
7715
|
+
}
|
|
7716
|
+
}, {
|
|
7717
|
+
children: jsx(ClearButton, {
|
|
7718
|
+
onClick: () => onClickClear()
|
|
7719
|
+
})
|
|
7720
|
+
})), jsx(Button, Object.assign({
|
|
7721
|
+
variant: "tertiary",
|
|
7722
|
+
onClick: () => setPopupIsOpen(true)
|
|
7723
|
+
}, {
|
|
7724
|
+
children: t('shared-save')
|
|
7725
|
+
}))]
|
|
7726
|
+
});
|
|
7323
7727
|
}
|
|
7324
7728
|
if (localSearchString) {
|
|
7325
|
-
return
|
|
7729
|
+
return jsx(ClearButton, {
|
|
7326
7730
|
onClick: () => onClickClear()
|
|
7327
7731
|
});
|
|
7328
7732
|
}
|
|
7329
|
-
return
|
|
7733
|
+
return jsx(CustomIconButton, Object.assign({
|
|
7330
7734
|
tooltipTitle: t('shared-search'),
|
|
7331
7735
|
sx: buttonStyle
|
|
7332
|
-
},
|
|
7736
|
+
}, {
|
|
7737
|
+
children: jsx(Search, {})
|
|
7738
|
+
}));
|
|
7333
7739
|
};
|
|
7334
7740
|
|
|
7335
7741
|
const SearchField = ({
|
|
@@ -7382,7 +7788,7 @@ const SearchField = ({
|
|
|
7382
7788
|
setLocalSearchString(searchFilter);
|
|
7383
7789
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
7384
7790
|
}, [searchFilter]);
|
|
7385
|
-
return
|
|
7791
|
+
return jsx(TextField, {
|
|
7386
7792
|
variant: "filled",
|
|
7387
7793
|
label: translatedLabel,
|
|
7388
7794
|
value: localSearchString,
|
|
@@ -7392,40 +7798,26 @@ const SearchField = ({
|
|
|
7392
7798
|
autoFocus: true,
|
|
7393
7799
|
fullWidth: true,
|
|
7394
7800
|
InputProps: {
|
|
7395
|
-
endAdornment: (
|
|
7801
|
+
endAdornment: jsx(InputAdornment, Object.assign({
|
|
7396
7802
|
position: "end"
|
|
7397
|
-
},
|
|
7398
|
-
|
|
7399
|
-
|
|
7400
|
-
|
|
7401
|
-
|
|
7402
|
-
|
|
7403
|
-
|
|
7404
|
-
|
|
7405
|
-
|
|
7406
|
-
|
|
7407
|
-
|
|
7408
|
-
|
|
7803
|
+
}, {
|
|
7804
|
+
children: jsx(SearchFieldButton, {
|
|
7805
|
+
setPopupIsOpen: () => {
|
|
7806
|
+
onOpenServicePopup(localSearchString);
|
|
7807
|
+
setLocalSearchString('');
|
|
7808
|
+
},
|
|
7809
|
+
localSearchString: localSearchString,
|
|
7810
|
+
onClickClear: () => {
|
|
7811
|
+
setLocalSearchString('');
|
|
7812
|
+
setSearchFilterDebounced('');
|
|
7813
|
+
setUrlIsValid(false);
|
|
7814
|
+
}
|
|
7815
|
+
})
|
|
7816
|
+
}))
|
|
7409
7817
|
}
|
|
7410
7818
|
});
|
|
7411
7819
|
};
|
|
7412
7820
|
|
|
7413
|
-
/* *
|
|
7414
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7415
|
-
* you may not use this file except in compliance with the License.
|
|
7416
|
-
* You may obtain a copy of the License at
|
|
7417
|
-
*
|
|
7418
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
7419
|
-
*
|
|
7420
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
7421
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
7422
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
7423
|
-
* See the License for the specific language governing permissions and
|
|
7424
|
-
* limitations under the License.
|
|
7425
|
-
*
|
|
7426
|
-
* Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
7427
|
-
* Copyright 2023 - Finnish Meteorological Institute (FMI)
|
|
7428
|
-
* */
|
|
7429
7821
|
const getLastUpdateTitle = (time, t) => {
|
|
7430
7822
|
return t('shared-last-updated', {
|
|
7431
7823
|
time
|
|
@@ -7439,52 +7831,42 @@ const LastUpdateTime = ({
|
|
|
7439
7831
|
const {
|
|
7440
7832
|
t
|
|
7441
7833
|
} = useTranslation(SHARED_NAMESPACE);
|
|
7442
|
-
return
|
|
7834
|
+
return jsxs(Box, Object.assign({
|
|
7443
7835
|
sx: {
|
|
7444
7836
|
display: 'flex',
|
|
7445
7837
|
alignItems: 'center',
|
|
7446
7838
|
height: '100%',
|
|
7447
7839
|
justifyContent: 'flex-end'
|
|
7448
7840
|
}
|
|
7449
|
-
},
|
|
7450
|
-
|
|
7451
|
-
|
|
7452
|
-
|
|
7453
|
-
|
|
7454
|
-
|
|
7455
|
-
|
|
7456
|
-
"data-testid": dataTestId
|
|
7457
|
-
}, getLastUpdateTitle(lastUpdateTime, t)), /*#__PURE__*/React__default.createElement(CustomIconButton, {
|
|
7458
|
-
"data-testid": "refresh-button",
|
|
7459
|
-
onClick: _onPressRefresh,
|
|
7460
|
-
sx: {
|
|
7461
|
-
marginRight: {
|
|
7462
|
-
xs: 2,
|
|
7463
|
-
sm: 1
|
|
7841
|
+
}, {
|
|
7842
|
+
children: [jsx(Typography, Object.assign({
|
|
7843
|
+
sx: {
|
|
7844
|
+
color: 'geowebColors.captions.captionStatus.rgba',
|
|
7845
|
+
fontSize: '10px',
|
|
7846
|
+
lineHeight: '1.6',
|
|
7847
|
+
letterSpacing: '0.33px'
|
|
7464
7848
|
},
|
|
7465
|
-
|
|
7466
|
-
},
|
|
7467
|
-
|
|
7468
|
-
|
|
7469
|
-
|
|
7849
|
+
"data-testid": dataTestId
|
|
7850
|
+
}, {
|
|
7851
|
+
children: getLastUpdateTitle(lastUpdateTime, t)
|
|
7852
|
+
})), jsx(CustomIconButton, Object.assign({
|
|
7853
|
+
"data-testid": "refresh-button",
|
|
7854
|
+
onClick: _onPressRefresh,
|
|
7855
|
+
sx: {
|
|
7856
|
+
marginRight: {
|
|
7857
|
+
xs: 2,
|
|
7858
|
+
sm: 1
|
|
7859
|
+
},
|
|
7860
|
+
marginLeft: 1
|
|
7861
|
+
},
|
|
7862
|
+
tooltipTitle: t('shared-click-to-refresh'),
|
|
7863
|
+
variant: "tool"
|
|
7864
|
+
}, {
|
|
7865
|
+
children: jsx(Cached, {})
|
|
7866
|
+
}))]
|
|
7867
|
+
}));
|
|
7470
7868
|
};
|
|
7471
7869
|
|
|
7472
|
-
/* *
|
|
7473
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7474
|
-
* you may not use this file except in compliance with the License.
|
|
7475
|
-
* You may obtain a copy of the License at
|
|
7476
|
-
*
|
|
7477
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
7478
|
-
*
|
|
7479
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
7480
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
7481
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
7482
|
-
* See the License for the specific language governing permissions and
|
|
7483
|
-
* limitations under the License.
|
|
7484
|
-
*
|
|
7485
|
-
* Copyright 2020 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
7486
|
-
* Copyright 2020 - Finnish Meteorological Institute (FMI)
|
|
7487
|
-
* */
|
|
7488
7870
|
class CanvasComponent extends Component {
|
|
7489
7871
|
constructor(props) {
|
|
7490
7872
|
super(props);
|
|
@@ -7758,7 +8140,7 @@ class CanvasComponent extends Component {
|
|
|
7758
8140
|
render() {
|
|
7759
8141
|
this.updateCanvas();
|
|
7760
8142
|
this._handleWindowResize();
|
|
7761
|
-
return
|
|
8143
|
+
return jsx("div", Object.assign({
|
|
7762
8144
|
role: "button",
|
|
7763
8145
|
ref: this.canvascontaineroutside,
|
|
7764
8146
|
tabIndex: 0,
|
|
@@ -7771,31 +8153,37 @@ class CanvasComponent extends Component {
|
|
|
7771
8153
|
display: 'block',
|
|
7772
8154
|
overflow: 'hidden'
|
|
7773
8155
|
}
|
|
7774
|
-
},
|
|
7775
|
-
|
|
7776
|
-
|
|
7777
|
-
|
|
7778
|
-
|
|
7779
|
-
|
|
7780
|
-
|
|
7781
|
-
|
|
7782
|
-
|
|
7783
|
-
|
|
7784
|
-
|
|
7785
|
-
|
|
7786
|
-
|
|
7787
|
-
|
|
7788
|
-
|
|
7789
|
-
|
|
7790
|
-
|
|
7791
|
-
|
|
7792
|
-
|
|
7793
|
-
|
|
7794
|
-
|
|
7795
|
-
|
|
7796
|
-
|
|
7797
|
-
|
|
7798
|
-
|
|
8156
|
+
}, {
|
|
8157
|
+
children: jsx("div", Object.assign({
|
|
8158
|
+
ref: this.canvascontainer,
|
|
8159
|
+
style: {
|
|
8160
|
+
minWidth: 'inherit',
|
|
8161
|
+
minHeight: 'inherit',
|
|
8162
|
+
width: 'inherit',
|
|
8163
|
+
height: 'inherit',
|
|
8164
|
+
overflow: 'hidden',
|
|
8165
|
+
display: 'block',
|
|
8166
|
+
border: 'none'
|
|
8167
|
+
},
|
|
8168
|
+
"data-testid": "canvas-container"
|
|
8169
|
+
}, {
|
|
8170
|
+
children: jsx("div", Object.assign({
|
|
8171
|
+
style: {
|
|
8172
|
+
overflow: 'visible',
|
|
8173
|
+
width: 0,
|
|
8174
|
+
height: 0
|
|
8175
|
+
},
|
|
8176
|
+
role: "presentation",
|
|
8177
|
+
"aria-label": "canvas"
|
|
8178
|
+
}, {
|
|
8179
|
+
children: jsx("canvas", {
|
|
8180
|
+
ref: canvas => {
|
|
8181
|
+
this.canvas = canvas;
|
|
8182
|
+
}
|
|
8183
|
+
})
|
|
8184
|
+
}))
|
|
8185
|
+
}))
|
|
8186
|
+
}));
|
|
7799
8187
|
}
|
|
7800
8188
|
}
|
|
7801
8189
|
CanvasComponent.defaultProps = {
|
|
@@ -8544,56 +8932,56 @@ const convertNOWandTODAYFormatsToUTC = timeValue => {
|
|
|
8544
8932
|
|
|
8545
8933
|
var index = /*#__PURE__*/Object.freeze({
|
|
8546
8934
|
__proto__: null,
|
|
8547
|
-
|
|
8548
|
-
|
|
8549
|
-
|
|
8935
|
+
DATE_FORMAT_DATEPICKER: DATE_FORMAT_DATEPICKER,
|
|
8936
|
+
DATE_FORMAT_HOURS: DATE_FORMAT_HOURS,
|
|
8937
|
+
DATE_FORMAT_NAME_OF_DAY_MONTH: DATE_FORMAT_NAME_OF_DAY_MONTH,
|
|
8938
|
+
DATE_FORMAT_NAME_OF_MONTH: DATE_FORMAT_NAME_OF_MONTH,
|
|
8939
|
+
DATE_FORMAT_UTC: DATE_FORMAT_UTC,
|
|
8940
|
+
DATE_FORMAT_YEAR: DATE_FORMAT_YEAR,
|
|
8941
|
+
add: add,
|
|
8942
|
+
convertNOWFormatToUTC: convertNOWFormatToUTC,
|
|
8943
|
+
convertNOWandTODAYFormatsToUTC: convertNOWandTODAYFormatsToUTC,
|
|
8944
|
+
createDate: createDate,
|
|
8550
8945
|
dateToIsoString: dateToIsoString,
|
|
8551
|
-
setUTCDate: setUTCDate,
|
|
8552
8946
|
dateToString: dateToString,
|
|
8553
|
-
isBetween: isBetween,
|
|
8554
|
-
createDate: createDate,
|
|
8555
|
-
add: add,
|
|
8556
|
-
sub: sub,
|
|
8557
|
-
differenceInYears: differenceInYears,
|
|
8558
|
-
differenceInMonths: differenceInMonths,
|
|
8559
8947
|
differenceInDays: differenceInDays,
|
|
8560
|
-
differenceInMinutes: differenceInMinutes,
|
|
8561
8948
|
differenceInHours: differenceInHours,
|
|
8949
|
+
differenceInMinutes: differenceInMinutes,
|
|
8950
|
+
differenceInMonths: differenceInMonths,
|
|
8562
8951
|
differenceInSeconds: differenceInSeconds,
|
|
8563
|
-
|
|
8564
|
-
|
|
8565
|
-
|
|
8952
|
+
differenceInYears: differenceInYears,
|
|
8953
|
+
fromUnix: fromUnix,
|
|
8954
|
+
getCurrentTimeAsString: getCurrentTimeAsString,
|
|
8955
|
+
getDay: getDay,
|
|
8956
|
+
getDayOfYear: getDayOfYear,
|
|
8957
|
+
getHours: getHours,
|
|
8958
|
+
getMonth: getMonth,
|
|
8959
|
+
getNowUtc: getNowUtc,
|
|
8566
8960
|
getUtcFromString: getUtcFromString,
|
|
8961
|
+
getWeek: getWeek,
|
|
8962
|
+
getYear: getYear,
|
|
8963
|
+
isAfter: isAfter,
|
|
8964
|
+
isBefore: isBefore,
|
|
8965
|
+
isBetween: isBetween,
|
|
8966
|
+
isEqual: isEqual,
|
|
8567
8967
|
isValid: isValid,
|
|
8568
|
-
|
|
8569
|
-
|
|
8968
|
+
isValidIsoDateString: isValidIsoDateString,
|
|
8969
|
+
isWithinInterval: isWithinInterval,
|
|
8970
|
+
isoStringToDate: isoStringToDate,
|
|
8570
8971
|
parseCustomDateString: parseCustomDateString,
|
|
8571
|
-
|
|
8572
|
-
getCurrentTimeAsString: getCurrentTimeAsString,
|
|
8972
|
+
parseISO: parseISO,
|
|
8573
8973
|
set: set,
|
|
8574
|
-
|
|
8575
|
-
|
|
8974
|
+
setUTCDate: setUTCDate,
|
|
8975
|
+
startOfDay: startOfDay,
|
|
8576
8976
|
startOfDayUTC: startOfDayUTC,
|
|
8577
|
-
|
|
8977
|
+
startOfHourUTC: startOfHourUTC,
|
|
8578
8978
|
startOfMonthUTC: startOfMonthUTC,
|
|
8979
|
+
startOfWeekUTC: startOfWeekUTC,
|
|
8579
8980
|
startOfYearUTC: startOfYearUTC,
|
|
8580
|
-
|
|
8581
|
-
|
|
8582
|
-
|
|
8583
|
-
|
|
8584
|
-
parseISO: parseISO,
|
|
8585
|
-
isWithinInterval: isWithinInterval,
|
|
8586
|
-
getDayOfYear: getDayOfYear,
|
|
8587
|
-
getDay: getDay,
|
|
8588
|
-
getMonth: getMonth,
|
|
8589
|
-
getYear: getYear,
|
|
8590
|
-
getWeek: getWeek,
|
|
8591
|
-
DATE_FORMAT_DATEPICKER: DATE_FORMAT_DATEPICKER,
|
|
8592
|
-
DATE_FORMAT_UTC: DATE_FORMAT_UTC,
|
|
8593
|
-
DATE_FORMAT_YEAR: DATE_FORMAT_YEAR,
|
|
8594
|
-
DATE_FORMAT_HOURS: DATE_FORMAT_HOURS,
|
|
8595
|
-
DATE_FORMAT_NAME_OF_DAY_MONTH: DATE_FORMAT_NAME_OF_DAY_MONTH,
|
|
8596
|
-
DATE_FORMAT_NAME_OF_MONTH: DATE_FORMAT_NAME_OF_MONTH
|
|
8981
|
+
stringToDate: stringToDate,
|
|
8982
|
+
sub: sub,
|
|
8983
|
+
unix: unix,
|
|
8984
|
+
utc: utc
|
|
8597
8985
|
});
|
|
8598
8986
|
|
|
8599
8987
|
/* *
|