@opengeoweb/taf 4.13.0 → 4.13.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
CHANGED
|
@@ -7,7 +7,7 @@ import { ReactSortable } from 'react-sortablejs';
|
|
|
7
7
|
import Sortable from 'sortablejs';
|
|
8
8
|
import { useAuthenticationContext } from '@opengeoweb/authentication';
|
|
9
9
|
import { getDeepProperty, ReactHookFormHiddenInput, ReactHookFormProvider } from '@opengeoweb/form-fields';
|
|
10
|
-
import { HIDDEN_INPUT_HELPER_IS_DRAFT, useIsMounted, CustomTooltip, ToolContainerDraggable, Avatar, getInitials, ToggleMenu, useConfirmationDialog, useDraftFormHelpers, usePreventBrowserClose, ToolButton, ToolHeader, AlertBanner, getErrorMessage as getErrorMessage$1, getWarningMessage, ConfirmationServiceProvider, usePoller, ErrorBoundary } from '@opengeoweb/shared';
|
|
10
|
+
import { HIDDEN_INPUT_HELPER_IS_DRAFT, useIsMounted, CustomTooltip, ToolContainerDraggable, Avatar, getInitials, IS_JEST, ToggleMenu, useConfirmationDialog, useDraftFormHelpers, usePreventBrowserClose, ToolButton, ToolHeader, AlertBanner, getErrorMessage as getErrorMessage$1, getWarningMessage, ConfirmationServiceProvider, usePoller, ErrorBoundary } from '@opengeoweb/shared';
|
|
11
11
|
import { snackbarActions } from '@opengeoweb/core';
|
|
12
12
|
import moment from 'moment';
|
|
13
13
|
import { isEqual } from 'lodash';
|
|
@@ -3125,6 +3125,7 @@ var IssuesPane = function IssuesPane(_ref) {
|
|
|
3125
3125
|
isOpen: isOpen,
|
|
3126
3126
|
"data-testid": "moveable-issues-pane",
|
|
3127
3127
|
bounds: "parent",
|
|
3128
|
+
cancel: "",
|
|
3128
3129
|
onDragEnd: function onDragEnd(event) {
|
|
3129
3130
|
if (event.x !== 0 && event.y !== 0) {
|
|
3130
3131
|
onUserHasDragged();
|
|
@@ -3260,18 +3261,43 @@ var TafAvatar = function TafAvatar(_ref) {
|
|
|
3260
3261
|
}, getInitials(editor))));
|
|
3261
3262
|
};
|
|
3262
3263
|
|
|
3264
|
+
/* *
|
|
3265
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
3266
|
+
* you may not use this file except in compliance with the License.
|
|
3267
|
+
* You may obtain a copy of the License at
|
|
3268
|
+
*
|
|
3269
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
3270
|
+
*
|
|
3271
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
3272
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
3273
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
3274
|
+
* See the License for the specific language governing permissions and
|
|
3275
|
+
* limitations under the License.
|
|
3276
|
+
*
|
|
3277
|
+
* Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
3278
|
+
* Copyright 2023 - Finnish Meteorological Institute (FMI)
|
|
3279
|
+
* */
|
|
3280
|
+
var TAF_MODULE_ID = 'tafmodule';
|
|
3281
|
+
var ResponsiveWrapper = function ResponsiveWrapper(_ref) {
|
|
3282
|
+
var children = _ref.children;
|
|
3283
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
3284
|
+
sx: {
|
|
3285
|
+
containerType: 'inline-size',
|
|
3286
|
+
containerName: TAF_MODULE_ID
|
|
3287
|
+
}
|
|
3288
|
+
}, children);
|
|
3289
|
+
};
|
|
3290
|
+
|
|
3263
3291
|
var textFieldStyle = function textFieldStyle(theme, shouldPreventUppercase) {
|
|
3264
|
-
return {
|
|
3292
|
+
return Object.assign(Object.assign({
|
|
3265
3293
|
// input
|
|
3266
|
-
marginRight: '2px',
|
|
3267
3294
|
marginBottom: '4px',
|
|
3268
|
-
width:
|
|
3295
|
+
width: '100%',
|
|
3269
3296
|
height: 46,
|
|
3270
3297
|
input: {
|
|
3271
3298
|
textAlign: 'center',
|
|
3272
3299
|
textTransform: shouldPreventUppercase ? 'none' : 'uppercase',
|
|
3273
|
-
|
|
3274
|
-
fontWeight: 500,
|
|
3300
|
+
fontWeight: 'normal',
|
|
3275
3301
|
paddingLeft: 0,
|
|
3276
3302
|
paddingRight: 0,
|
|
3277
3303
|
'&.Mui-disabled': {
|
|
@@ -3310,8 +3336,20 @@ var textFieldStyle = function textFieldStyle(theme, shouldPreventUppercase) {
|
|
|
3310
3336
|
'.Mui-disabled:before': {
|
|
3311
3337
|
borderColor: 'transparent'
|
|
3312
3338
|
}
|
|
3339
|
+
},
|
|
3340
|
+
'& .MuiFilledInput-root': {
|
|
3341
|
+
borderTopLeftRadius: '0px',
|
|
3342
|
+
borderTopRightRadius: '0px'
|
|
3313
3343
|
}
|
|
3314
|
-
}
|
|
3344
|
+
}, !IS_JEST && _defineProperty({}, "@container ".concat(TAF_MODULE_ID, " (min-width: 1440px)"), {
|
|
3345
|
+
'&.MuiFormControl-root.MuiTextField-root .inputText': {
|
|
3346
|
+
fontSize: 14
|
|
3347
|
+
}
|
|
3348
|
+
})), {
|
|
3349
|
+
'.inputText': {
|
|
3350
|
+
fontSize: 12
|
|
3351
|
+
}
|
|
3352
|
+
});
|
|
3315
3353
|
};
|
|
3316
3354
|
|
|
3317
3355
|
var getTafErrors = function getTafErrors(name, errors) {
|
|
@@ -3350,27 +3388,27 @@ var BaseTextField = /*#__PURE__*/React__default.memo(function (_a) {
|
|
|
3350
3388
|
return prevProps.value === nextProps.value && prevProps.error === nextProps.error && prevProps.name === nextProps.name && prevProps.disabled === nextProps.disabled;
|
|
3351
3389
|
});
|
|
3352
3390
|
|
|
3353
|
-
var TafFormTextField = function TafFormTextField(
|
|
3354
|
-
var label =
|
|
3355
|
-
|
|
3356
|
-
disabled =
|
|
3357
|
-
|
|
3358
|
-
name =
|
|
3359
|
-
|
|
3360
|
-
onChange =
|
|
3361
|
-
|
|
3362
|
-
onBlur =
|
|
3363
|
-
|
|
3364
|
-
defaultValue =
|
|
3365
|
-
|
|
3366
|
-
formatter =
|
|
3367
|
-
rules =
|
|
3368
|
-
|
|
3369
|
-
autoComplete =
|
|
3370
|
-
|
|
3371
|
-
autoFocus =
|
|
3372
|
-
|
|
3373
|
-
shouldPreventUppercase =
|
|
3391
|
+
var TafFormTextField = function TafFormTextField(_ref2) {
|
|
3392
|
+
var label = _ref2.label,
|
|
3393
|
+
_ref2$disabled = _ref2.disabled,
|
|
3394
|
+
disabled = _ref2$disabled === void 0 ? false : _ref2$disabled,
|
|
3395
|
+
_ref2$name = _ref2.name,
|
|
3396
|
+
name = _ref2$name === void 0 ? '' : _ref2$name,
|
|
3397
|
+
_ref2$onChange = _ref2.onChange,
|
|
3398
|
+
onChange = _ref2$onChange === void 0 ? function () {} : _ref2$onChange,
|
|
3399
|
+
_ref2$onBlur = _ref2.onBlur,
|
|
3400
|
+
onBlur = _ref2$onBlur === void 0 ? function () {} : _ref2$onBlur,
|
|
3401
|
+
_ref2$defaultValue = _ref2.defaultValue,
|
|
3402
|
+
defaultValue = _ref2$defaultValue === void 0 ? '' : _ref2$defaultValue,
|
|
3403
|
+
_ref2$formatter = _ref2.formatter,
|
|
3404
|
+
formatter = _ref2$formatter === void 0 ? null : _ref2$formatter,
|
|
3405
|
+
rules = _ref2.rules,
|
|
3406
|
+
_ref2$autoComplete = _ref2.autoComplete,
|
|
3407
|
+
autoComplete = _ref2$autoComplete === void 0 ? [] : _ref2$autoComplete,
|
|
3408
|
+
_ref2$autoFocus = _ref2.autoFocus,
|
|
3409
|
+
autoFocus = _ref2$autoFocus === void 0 ? false : _ref2$autoFocus,
|
|
3410
|
+
_ref2$shouldPreventUp = _ref2.shouldPreventUppercase,
|
|
3411
|
+
shouldPreventUppercase = _ref2$shouldPreventUp === void 0 ? false : _ref2$shouldPreventUp;
|
|
3374
3412
|
|
|
3375
3413
|
var _useFormContext = useFormContext(),
|
|
3376
3414
|
control = _useFormContext.control,
|
|
@@ -3399,7 +3437,8 @@ var TafFormTextField = function TafFormTextField(_ref) {
|
|
|
3399
3437
|
|
|
3400
3438
|
if (foundValue) {
|
|
3401
3439
|
setValue(name, foundValue.value, {
|
|
3402
|
-
shouldDirty: true
|
|
3440
|
+
shouldDirty: true,
|
|
3441
|
+
shouldValidate: true
|
|
3403
3442
|
});
|
|
3404
3443
|
setMaxLength(foundValue.value.length);
|
|
3405
3444
|
event.preventDefault();
|
|
@@ -3435,9 +3474,15 @@ var TafFormTextField = function TafFormTextField(_ref) {
|
|
|
3435
3474
|
onBlur();
|
|
3436
3475
|
}, [onBlur, name, setValue, shouldPreventUppercase]);
|
|
3437
3476
|
var hasError = !!fieldErrors;
|
|
3438
|
-
return /*#__PURE__*/React__default.createElement(
|
|
3439
|
-
|
|
3440
|
-
|
|
3477
|
+
return /*#__PURE__*/React__default.createElement(Grid, {
|
|
3478
|
+
item: true,
|
|
3479
|
+
sx: {
|
|
3480
|
+
width: "".concat(100 / 13, "%"),
|
|
3481
|
+
minWidth: 60
|
|
3482
|
+
}
|
|
3483
|
+
}, /*#__PURE__*/React__default.createElement(Controller, {
|
|
3484
|
+
render: function render(_ref3) {
|
|
3485
|
+
var field = _ref3.field;
|
|
3441
3486
|
var displayValue = formatter ? formatter(field.value) : getDisplayValue(field.value, disabled);
|
|
3442
3487
|
return /*#__PURE__*/React__default.createElement(BaseTextField, {
|
|
3443
3488
|
label: label,
|
|
@@ -3454,7 +3499,8 @@ var TafFormTextField = function TafFormTextField(_ref) {
|
|
|
3454
3499
|
return onBlurField(event, field.onBlur);
|
|
3455
3500
|
},
|
|
3456
3501
|
inputProps: {
|
|
3457
|
-
maxLength: maxLength
|
|
3502
|
+
maxLength: maxLength,
|
|
3503
|
+
className: 'inputText'
|
|
3458
3504
|
},
|
|
3459
3505
|
autoFocus: autoFocus,
|
|
3460
3506
|
shouldPreventUppercase: shouldPreventUppercase
|
|
@@ -3464,7 +3510,7 @@ var TafFormTextField = function TafFormTextField(_ref) {
|
|
|
3464
3510
|
control: control,
|
|
3465
3511
|
defaultValue: defaultValue,
|
|
3466
3512
|
rules: rules
|
|
3467
|
-
});
|
|
3513
|
+
}));
|
|
3468
3514
|
};
|
|
3469
3515
|
|
|
3470
3516
|
/* *
|
|
@@ -3741,6 +3787,14 @@ var TafFormRow = /*#__PURE__*/React__default.forwardRef(function (_a, ref) {
|
|
|
3741
3787
|
marginTop: '8px',
|
|
3742
3788
|
backgroundColor: 'geowebColors.cards.cardContainer',
|
|
3743
3789
|
position: 'relative',
|
|
3790
|
+
paddingLeft: {
|
|
3791
|
+
xs: '2px',
|
|
3792
|
+
lg: '10px'
|
|
3793
|
+
},
|
|
3794
|
+
paddingRight: {
|
|
3795
|
+
xs: '2px',
|
|
3796
|
+
lg: '10px'
|
|
3797
|
+
},
|
|
3744
3798
|
'&.sortable-chosen': {
|
|
3745
3799
|
boxShadow: 1
|
|
3746
3800
|
},
|
|
@@ -3755,12 +3809,10 @@ var TafFormRow = /*#__PURE__*/React__default.forwardRef(function (_a, ref) {
|
|
|
3755
3809
|
}, props, {
|
|
3756
3810
|
className: "formRow"
|
|
3757
3811
|
}), /*#__PURE__*/React__default.createElement(Grid, {
|
|
3758
|
-
columns: 24,
|
|
3759
3812
|
item: true,
|
|
3760
3813
|
container: true,
|
|
3761
3814
|
justifyContent: "flex-end",
|
|
3762
|
-
xs:
|
|
3763
|
-
sm: 23
|
|
3815
|
+
xs: true
|
|
3764
3816
|
}, !isChangeGroup && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(TafFormTextField, {
|
|
3765
3817
|
label: "Type",
|
|
3766
3818
|
name: fieldNames.messageType,
|
|
@@ -3777,9 +3829,11 @@ var TafFormRow = /*#__PURE__*/React__default.forwardRef(function (_a, ref) {
|
|
|
3777
3829
|
shouldPreventUppercase: true
|
|
3778
3830
|
})), isChangeGroup && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Box, {
|
|
3779
3831
|
sx: {
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
}
|
|
3832
|
+
marginRight: '2px',
|
|
3833
|
+
minWidth: 60
|
|
3834
|
+
},
|
|
3835
|
+
display: "flex",
|
|
3836
|
+
justifyContent: "center"
|
|
3783
3837
|
}, !disabled && dragHandle), /*#__PURE__*/React__default.createElement(TafFormTextField, {
|
|
3784
3838
|
label: "Prob",
|
|
3785
3839
|
name: fieldNames.probability,
|
|
@@ -4023,12 +4077,11 @@ var TafFormRow = /*#__PURE__*/React__default.forwardRef(function (_a, ref) {
|
|
|
4023
4077
|
container: true,
|
|
4024
4078
|
justifyContent: "flex-end",
|
|
4025
4079
|
alignItems: "flex-end",
|
|
4026
|
-
xs: 24,
|
|
4027
|
-
sm: 1,
|
|
4028
4080
|
sx: {
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4081
|
+
width: '3.5%',
|
|
4082
|
+
marginBottom: '14px',
|
|
4083
|
+
minWidth: 28
|
|
4084
|
+
}
|
|
4032
4085
|
}, /*#__PURE__*/React__default.createElement(TafFormOptionsButton, {
|
|
4033
4086
|
isChangeGroup: isChangeGroup,
|
|
4034
4087
|
addChangeGroupBelow: addChangeGroupBelow,
|
|
@@ -5270,7 +5323,12 @@ var TacOverview = function TacOverview(_ref) {
|
|
|
5270
5323
|
}))), /*#__PURE__*/React__default.createElement(Box, {
|
|
5271
5324
|
ref: scrollRef,
|
|
5272
5325
|
sx: {
|
|
5273
|
-
padding:
|
|
5326
|
+
padding: {
|
|
5327
|
+
xs: '12px',
|
|
5328
|
+
sm: '6px',
|
|
5329
|
+
md: '16px',
|
|
5330
|
+
lg: '24px'
|
|
5331
|
+
},
|
|
5274
5332
|
maxHeight: '100%',
|
|
5275
5333
|
overflow: 'auto'
|
|
5276
5334
|
}
|
|
@@ -6188,7 +6246,6 @@ var TafLayout = function TafLayout(_ref2) {
|
|
|
6188
6246
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
6189
6247
|
sx: {
|
|
6190
6248
|
minWidth: 320,
|
|
6191
|
-
maxWidth: 1272,
|
|
6192
6249
|
margin: 'auto',
|
|
6193
6250
|
height: '100%',
|
|
6194
6251
|
display: 'flex',
|
|
@@ -6397,7 +6454,7 @@ var TafModule = function TafModule() {
|
|
|
6397
6454
|
}, []);
|
|
6398
6455
|
usePoller([tafList, getTafListError], fetchNewTafList);
|
|
6399
6456
|
var hasTafListError = getTafListError !== null;
|
|
6400
|
-
return /*#__PURE__*/React.createElement(Box, {
|
|
6457
|
+
return /*#__PURE__*/React.createElement(ResponsiveWrapper, null, /*#__PURE__*/React.createElement(Box, {
|
|
6401
6458
|
component: "div",
|
|
6402
6459
|
id: "tafmodule",
|
|
6403
6460
|
sx: {
|
|
@@ -6422,7 +6479,7 @@ var TafModule = function TafModule() {
|
|
|
6422
6479
|
tafList: tafList,
|
|
6423
6480
|
onUpdateTaf: onUpdateTaf,
|
|
6424
6481
|
lastUpdateTime: lastUpdateTime
|
|
6425
|
-
}));
|
|
6482
|
+
})));
|
|
6426
6483
|
};
|
|
6427
6484
|
|
|
6428
6485
|
var Wrapper = function Wrapper(props) {
|
package/index.umd.js
CHANGED
|
@@ -3134,6 +3134,7 @@
|
|
|
3134
3134
|
isOpen: isOpen,
|
|
3135
3135
|
"data-testid": "moveable-issues-pane",
|
|
3136
3136
|
bounds: "parent",
|
|
3137
|
+
cancel: "",
|
|
3137
3138
|
onDragEnd: function onDragEnd(event) {
|
|
3138
3139
|
if (event.x !== 0 && event.y !== 0) {
|
|
3139
3140
|
onUserHasDragged();
|
|
@@ -3267,18 +3268,45 @@
|
|
|
3267
3268
|
}, shared.getInitials(editor))));
|
|
3268
3269
|
};
|
|
3269
3270
|
|
|
3271
|
+
/* *
|
|
3272
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
3273
|
+
* you may not use this file except in compliance with the License.
|
|
3274
|
+
* You may obtain a copy of the License at
|
|
3275
|
+
*
|
|
3276
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
3277
|
+
*
|
|
3278
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
3279
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
3280
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
3281
|
+
* See the License for the specific language governing permissions and
|
|
3282
|
+
* limitations under the License.
|
|
3283
|
+
*
|
|
3284
|
+
* Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
3285
|
+
* Copyright 2023 - Finnish Meteorological Institute (FMI)
|
|
3286
|
+
* */
|
|
3287
|
+
var TAF_MODULE_ID = 'tafmodule';
|
|
3288
|
+
var ResponsiveWrapper = function ResponsiveWrapper(_a) {
|
|
3289
|
+
var children = _a.children;
|
|
3290
|
+
return /*#__PURE__*/React__namespace.createElement(material.Box, {
|
|
3291
|
+
sx: {
|
|
3292
|
+
containerType: 'inline-size',
|
|
3293
|
+
containerName: TAF_MODULE_ID
|
|
3294
|
+
}
|
|
3295
|
+
}, children);
|
|
3296
|
+
};
|
|
3297
|
+
|
|
3270
3298
|
var textFieldStyle = function textFieldStyle(theme, shouldPreventUppercase) {
|
|
3271
|
-
|
|
3299
|
+
var _a;
|
|
3300
|
+
|
|
3301
|
+
return __assign(__assign({
|
|
3272
3302
|
// input
|
|
3273
|
-
marginRight: '2px',
|
|
3274
3303
|
marginBottom: '4px',
|
|
3275
|
-
width:
|
|
3304
|
+
width: '100%',
|
|
3276
3305
|
height: 46,
|
|
3277
3306
|
input: {
|
|
3278
3307
|
textAlign: 'center',
|
|
3279
3308
|
textTransform: shouldPreventUppercase ? 'none' : 'uppercase',
|
|
3280
|
-
|
|
3281
|
-
fontWeight: 500,
|
|
3309
|
+
fontWeight: 'normal',
|
|
3282
3310
|
paddingLeft: 0,
|
|
3283
3311
|
paddingRight: 0,
|
|
3284
3312
|
'&.Mui-disabled': {
|
|
@@ -3317,8 +3345,21 @@
|
|
|
3317
3345
|
'.Mui-disabled:before': {
|
|
3318
3346
|
borderColor: 'transparent'
|
|
3319
3347
|
}
|
|
3348
|
+
},
|
|
3349
|
+
'& .MuiFilledInput-root': {
|
|
3350
|
+
borderTopLeftRadius: '0px',
|
|
3351
|
+
borderTopRightRadius: '0px'
|
|
3320
3352
|
}
|
|
3321
|
-
}
|
|
3353
|
+
}, !shared.IS_JEST && (_a = {}, // container queries
|
|
3354
|
+
_a["@container " + TAF_MODULE_ID + " (min-width: 1440px)"] = {
|
|
3355
|
+
'&.MuiFormControl-root.MuiTextField-root .inputText': {
|
|
3356
|
+
fontSize: 14
|
|
3357
|
+
}
|
|
3358
|
+
}, _a)), {
|
|
3359
|
+
'.inputText': {
|
|
3360
|
+
fontSize: 12
|
|
3361
|
+
}
|
|
3362
|
+
});
|
|
3322
3363
|
};
|
|
3323
3364
|
|
|
3324
3365
|
var getTafErrors = function getTafErrors(name, errors) {
|
|
@@ -3405,7 +3446,8 @@
|
|
|
3405
3446
|
|
|
3406
3447
|
if (foundValue) {
|
|
3407
3448
|
setValue(name, foundValue.value, {
|
|
3408
|
-
shouldDirty: true
|
|
3449
|
+
shouldDirty: true,
|
|
3450
|
+
shouldValidate: true
|
|
3409
3451
|
});
|
|
3410
3452
|
setMaxLength(foundValue.value.length);
|
|
3411
3453
|
event.preventDefault();
|
|
@@ -3441,7 +3483,13 @@
|
|
|
3441
3483
|
onBlur();
|
|
3442
3484
|
}, [onBlur, name, setValue, shouldPreventUppercase]);
|
|
3443
3485
|
var hasError = !!fieldErrors;
|
|
3444
|
-
return /*#__PURE__*/React__default["default"].createElement(
|
|
3486
|
+
return /*#__PURE__*/React__default["default"].createElement(material.Grid, {
|
|
3487
|
+
item: true,
|
|
3488
|
+
sx: {
|
|
3489
|
+
width: 100 / 13 + "%",
|
|
3490
|
+
minWidth: 60
|
|
3491
|
+
}
|
|
3492
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactHookForm.Controller, {
|
|
3445
3493
|
render: function render(_a) {
|
|
3446
3494
|
var field = _a.field;
|
|
3447
3495
|
var displayValue = formatter ? formatter(field.value) : getDisplayValue(field.value, disabled);
|
|
@@ -3460,7 +3508,8 @@
|
|
|
3460
3508
|
return onBlurField(event, field.onBlur);
|
|
3461
3509
|
},
|
|
3462
3510
|
inputProps: {
|
|
3463
|
-
maxLength: maxLength
|
|
3511
|
+
maxLength: maxLength,
|
|
3512
|
+
className: 'inputText'
|
|
3464
3513
|
},
|
|
3465
3514
|
autoFocus: autoFocus,
|
|
3466
3515
|
shouldPreventUppercase: shouldPreventUppercase
|
|
@@ -3470,7 +3519,7 @@
|
|
|
3470
3519
|
control: control,
|
|
3471
3520
|
defaultValue: defaultValue,
|
|
3472
3521
|
rules: rules
|
|
3473
|
-
});
|
|
3522
|
+
}));
|
|
3474
3523
|
};
|
|
3475
3524
|
|
|
3476
3525
|
/* *
|
|
@@ -3744,6 +3793,14 @@
|
|
|
3744
3793
|
marginTop: '8px',
|
|
3745
3794
|
backgroundColor: 'geowebColors.cards.cardContainer',
|
|
3746
3795
|
position: 'relative',
|
|
3796
|
+
paddingLeft: {
|
|
3797
|
+
xs: '2px',
|
|
3798
|
+
lg: '10px'
|
|
3799
|
+
},
|
|
3800
|
+
paddingRight: {
|
|
3801
|
+
xs: '2px',
|
|
3802
|
+
lg: '10px'
|
|
3803
|
+
},
|
|
3747
3804
|
'&.sortable-chosen': {
|
|
3748
3805
|
boxShadow: 1
|
|
3749
3806
|
},
|
|
@@ -3758,12 +3815,10 @@
|
|
|
3758
3815
|
}, props, {
|
|
3759
3816
|
className: "formRow"
|
|
3760
3817
|
}), /*#__PURE__*/React__default["default"].createElement(material.Grid, {
|
|
3761
|
-
columns: 24,
|
|
3762
3818
|
item: true,
|
|
3763
3819
|
container: true,
|
|
3764
3820
|
justifyContent: "flex-end",
|
|
3765
|
-
xs:
|
|
3766
|
-
sm: 23
|
|
3821
|
+
xs: true
|
|
3767
3822
|
}, !isChangeGroup && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(TafFormTextField, {
|
|
3768
3823
|
label: "Type",
|
|
3769
3824
|
name: fieldNames.messageType,
|
|
@@ -3780,9 +3835,11 @@
|
|
|
3780
3835
|
shouldPreventUppercase: true
|
|
3781
3836
|
})), isChangeGroup && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(material.Box, {
|
|
3782
3837
|
sx: {
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
}
|
|
3838
|
+
marginRight: '2px',
|
|
3839
|
+
minWidth: 60
|
|
3840
|
+
},
|
|
3841
|
+
display: "flex",
|
|
3842
|
+
justifyContent: "center"
|
|
3786
3843
|
}, !disabled && dragHandle), /*#__PURE__*/React__default["default"].createElement(TafFormTextField, {
|
|
3787
3844
|
label: "Prob",
|
|
3788
3845
|
name: fieldNames.probability,
|
|
@@ -4026,12 +4083,11 @@
|
|
|
4026
4083
|
container: true,
|
|
4027
4084
|
justifyContent: "flex-end",
|
|
4028
4085
|
alignItems: "flex-end",
|
|
4029
|
-
xs: 24,
|
|
4030
|
-
sm: 1,
|
|
4031
4086
|
sx: {
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4087
|
+
width: '3.5%',
|
|
4088
|
+
marginBottom: '14px',
|
|
4089
|
+
minWidth: 28
|
|
4090
|
+
}
|
|
4035
4091
|
}, /*#__PURE__*/React__default["default"].createElement(TafFormOptionsButton, {
|
|
4036
4092
|
isChangeGroup: isChangeGroup,
|
|
4037
4093
|
addChangeGroupBelow: addChangeGroupBelow,
|
|
@@ -5294,7 +5350,12 @@
|
|
|
5294
5350
|
}))), /*#__PURE__*/React__default["default"].createElement(material.Box, {
|
|
5295
5351
|
ref: scrollRef,
|
|
5296
5352
|
sx: {
|
|
5297
|
-
padding:
|
|
5353
|
+
padding: {
|
|
5354
|
+
xs: '12px',
|
|
5355
|
+
sm: '6px',
|
|
5356
|
+
md: '16px',
|
|
5357
|
+
lg: '24px'
|
|
5358
|
+
},
|
|
5298
5359
|
maxHeight: '100%',
|
|
5299
5360
|
overflow: 'auto'
|
|
5300
5361
|
}
|
|
@@ -6215,7 +6276,6 @@
|
|
|
6215
6276
|
}, /*#__PURE__*/React__default["default"].createElement(material.Box, {
|
|
6216
6277
|
sx: {
|
|
6217
6278
|
minWidth: 320,
|
|
6218
|
-
maxWidth: 1272,
|
|
6219
6279
|
margin: 'auto',
|
|
6220
6280
|
height: '100%',
|
|
6221
6281
|
display: 'flex',
|
|
@@ -6419,7 +6479,7 @@
|
|
|
6419
6479
|
}, []);
|
|
6420
6480
|
shared.usePoller([tafList, getTafListError], fetchNewTafList);
|
|
6421
6481
|
var hasTafListError = getTafListError !== null;
|
|
6422
|
-
return /*#__PURE__*/React__namespace.createElement(material.Box, {
|
|
6482
|
+
return /*#__PURE__*/React__namespace.createElement(ResponsiveWrapper, null, /*#__PURE__*/React__namespace.createElement(material.Box, {
|
|
6423
6483
|
component: "div",
|
|
6424
6484
|
id: "tafmodule",
|
|
6425
6485
|
sx: {
|
|
@@ -6444,7 +6504,7 @@
|
|
|
6444
6504
|
tafList: tafList,
|
|
6445
6505
|
onUpdateTaf: onUpdateTaf,
|
|
6446
6506
|
lastUpdateTime: lastUpdateTime
|
|
6447
|
-
}));
|
|
6507
|
+
})));
|
|
6448
6508
|
};
|
|
6449
6509
|
|
|
6450
6510
|
var Wrapper = function Wrapper(props) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/taf",
|
|
3
|
-
"version": "4.13.
|
|
3
|
+
"version": "4.13.1",
|
|
4
4
|
"description": "GeoWeb TAF library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -12,25 +12,25 @@
|
|
|
12
12
|
"typings": "./index.d.ts",
|
|
13
13
|
"dependencies": {},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@opengeoweb/api": "4.13.
|
|
15
|
+
"@opengeoweb/api": "4.13.1",
|
|
16
16
|
"react": "^18.2.0",
|
|
17
17
|
"axios": "^0.25.0",
|
|
18
|
-
"@opengeoweb/shared": "4.13.
|
|
18
|
+
"@opengeoweb/shared": "4.13.1",
|
|
19
19
|
"@mui/material": "^5.10.8",
|
|
20
|
-
"@opengeoweb/theme": "4.13.
|
|
20
|
+
"@opengeoweb/theme": "4.13.1",
|
|
21
21
|
"react-draggable": "^4.4.5",
|
|
22
22
|
"re-resizable": "^6.9.0",
|
|
23
23
|
"@redux-eggs/core": "^2.2.0",
|
|
24
24
|
"react-redux": "^8.0.4",
|
|
25
|
-
"@opengeoweb/form-fields": "4.13.
|
|
25
|
+
"@opengeoweb/form-fields": "4.13.1",
|
|
26
26
|
"react-hook-form": "^7.41.5",
|
|
27
27
|
"moment": "^2.29.0",
|
|
28
28
|
"moment-timezone": "^0.5.31",
|
|
29
29
|
"@mui/x-date-pickers": "^5.0.4",
|
|
30
30
|
"lodash": "^4.17.20",
|
|
31
31
|
"date-fns": "^2.29.3",
|
|
32
|
-
"@opengeoweb/core": "4.13.
|
|
33
|
-
"@opengeoweb/webmap": "4.13.
|
|
32
|
+
"@opengeoweb/core": "4.13.1",
|
|
33
|
+
"@opengeoweb/webmap": "4.13.1",
|
|
34
34
|
"throttle-debounce": "^3.0.1",
|
|
35
35
|
"proj4": "^2.6.2",
|
|
36
36
|
"react-intl": "^5.17.5",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@redux-eggs/redux-toolkit": "^2.2.0",
|
|
47
47
|
"@redux-eggs/saga-extension": "^2.2.0",
|
|
48
48
|
"react-dom": "^18.2.0",
|
|
49
|
-
"@opengeoweb/authentication": "4.13.
|
|
49
|
+
"@opengeoweb/authentication": "4.13.1",
|
|
50
50
|
"react-router-dom": "^6.4.2",
|
|
51
51
|
"query-string": "^6.13.7",
|
|
52
52
|
"@emotion/react": "^11.10.4"
|