@opengeoweb/sigmet-airmet 8.3.1 → 8.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.esm.js +156 -58
- package/package.json +10 -10
- package/src/lib/components/ProductForms/ProductForm.styles.d.ts +31 -1
- package/src/lib/types.d.ts +8 -0
package/index.esm.js
CHANGED
|
@@ -416,6 +416,15 @@ function _toPropertyKey(arg) {
|
|
|
416
416
|
return typeof key === "symbol" ? key : String(key);
|
|
417
417
|
}
|
|
418
418
|
|
|
419
|
+
/**
|
|
420
|
+
* The possible type for the sigmet
|
|
421
|
+
*/
|
|
422
|
+
var SigmetType;
|
|
423
|
+
(function (SigmetType) {
|
|
424
|
+
SigmetType["NORMAL"] = "Normal";
|
|
425
|
+
SigmetType["TEST"] = "Test";
|
|
426
|
+
SigmetType["EXERCISE"] = "Exercise";
|
|
427
|
+
})(SigmetType || (SigmetType = {}));
|
|
419
428
|
/**
|
|
420
429
|
* The possible phenomena for the sigmet
|
|
421
430
|
*/
|
|
@@ -586,6 +595,20 @@ var styles$2 = {
|
|
|
586
595
|
containerItem: {
|
|
587
596
|
' .MuiTypography-subtitle1': {
|
|
588
597
|
marginTop: 1
|
|
598
|
+
},
|
|
599
|
+
paddingTop: '8px!important',
|
|
600
|
+
'+ .MuiGrid-item': {
|
|
601
|
+
paddingTop: 0
|
|
602
|
+
},
|
|
603
|
+
'.MuiButtonBase-root.MuiRadio-root': {
|
|
604
|
+
padding: '6px',
|
|
605
|
+
marginLeft: '3px'
|
|
606
|
+
},
|
|
607
|
+
'.MuiFormControl-root.MuiTextField-root': {
|
|
608
|
+
marginBottom: 0
|
|
609
|
+
},
|
|
610
|
+
'.MuiGrid-root': {
|
|
611
|
+
alignItems: 'flex-start'
|
|
589
612
|
}
|
|
590
613
|
},
|
|
591
614
|
volcanicField: {
|
|
@@ -604,7 +627,10 @@ var styles$2 = {
|
|
|
604
627
|
marginBottom: 2
|
|
605
628
|
},
|
|
606
629
|
latitude: {
|
|
607
|
-
width: '97%'
|
|
630
|
+
width: '97%',
|
|
631
|
+
'.MuiFormControl-root.MuiTextField-root': {
|
|
632
|
+
margin: 0
|
|
633
|
+
}
|
|
608
634
|
},
|
|
609
635
|
unit: {
|
|
610
636
|
width: '95%'
|
|
@@ -623,12 +649,25 @@ var styles$2 = {
|
|
|
623
649
|
},
|
|
624
650
|
helperText: {
|
|
625
651
|
' .MuiFormHelperText-root': {
|
|
626
|
-
|
|
627
|
-
|
|
652
|
+
top: 'auto',
|
|
653
|
+
position: 'relative',
|
|
654
|
+
lineHeight: '1.33em',
|
|
628
655
|
'&.Mui-error': {
|
|
629
656
|
top: 'auto',
|
|
630
657
|
position: 'relative'
|
|
631
658
|
}
|
|
659
|
+
},
|
|
660
|
+
'.MuiFormLabel-root.MuiInputLabel-root': {
|
|
661
|
+
top: -4,
|
|
662
|
+
lineHeight: '1.33em'
|
|
663
|
+
},
|
|
664
|
+
'.MuiSvgIcon-root': {
|
|
665
|
+
width: '0.8em',
|
|
666
|
+
height: '0.8em'
|
|
667
|
+
},
|
|
668
|
+
'.MuiButtonBase-root.MuiIconButton-root': {
|
|
669
|
+
padding: '2px',
|
|
670
|
+
marginLeft: '-4px'
|
|
632
671
|
}
|
|
633
672
|
}
|
|
634
673
|
};
|
|
@@ -1533,6 +1572,7 @@ var Levels = function Levels(_ref) {
|
|
|
1533
1572
|
}
|
|
1534
1573
|
},
|
|
1535
1574
|
sx: styles$2.unit,
|
|
1575
|
+
size: "small",
|
|
1536
1576
|
disabled: isDisabled,
|
|
1537
1577
|
isReadOnly: isReadOnly,
|
|
1538
1578
|
defaultValue: 'FL',
|
|
@@ -1577,6 +1617,7 @@ var Levels = function Levels(_ref) {
|
|
|
1577
1617
|
}
|
|
1578
1618
|
}
|
|
1579
1619
|
},
|
|
1620
|
+
size: "small",
|
|
1580
1621
|
disabled: isDisabled,
|
|
1581
1622
|
isReadOnly: isReadOnly,
|
|
1582
1623
|
autoFocus: true
|
|
@@ -1613,6 +1654,7 @@ var Levels = function Levels(_ref) {
|
|
|
1613
1654
|
}
|
|
1614
1655
|
}
|
|
1615
1656
|
},
|
|
1657
|
+
size: "small",
|
|
1616
1658
|
sx: styles$2.unit,
|
|
1617
1659
|
disabled: isDisabled,
|
|
1618
1660
|
isReadOnly: isReadOnly,
|
|
@@ -1634,6 +1676,7 @@ var Levels = function Levels(_ref) {
|
|
|
1634
1676
|
name: "level.value",
|
|
1635
1677
|
label: "Upper level",
|
|
1636
1678
|
sx: styles$2.levelField,
|
|
1679
|
+
size: "small",
|
|
1637
1680
|
rules: {
|
|
1638
1681
|
validate: {
|
|
1639
1682
|
isRequired: isRequired,
|
|
@@ -1708,6 +1751,7 @@ var Levels = function Levels(_ref) {
|
|
|
1708
1751
|
}
|
|
1709
1752
|
}
|
|
1710
1753
|
},
|
|
1754
|
+
size: "small",
|
|
1711
1755
|
sx: styles$2.unit,
|
|
1712
1756
|
disabled: isDisabled,
|
|
1713
1757
|
isReadOnly: isReadOnly,
|
|
@@ -1758,6 +1802,7 @@ var Levels = function Levels(_ref) {
|
|
|
1758
1802
|
}
|
|
1759
1803
|
}
|
|
1760
1804
|
},
|
|
1805
|
+
size: "small",
|
|
1761
1806
|
disabled: isDisabled,
|
|
1762
1807
|
isReadOnly: isReadOnly
|
|
1763
1808
|
}))))) : null, /*#__PURE__*/React__default.createElement(RadioButtonAndLabel, {
|
|
@@ -1801,6 +1846,7 @@ var Levels = function Levels(_ref) {
|
|
|
1801
1846
|
isRequired: isRequired
|
|
1802
1847
|
}
|
|
1803
1848
|
},
|
|
1849
|
+
size: "small",
|
|
1804
1850
|
sx: styles$2.unit,
|
|
1805
1851
|
disabled: isDisabled,
|
|
1806
1852
|
isReadOnly: isReadOnly,
|
|
@@ -1845,6 +1891,7 @@ var Levels = function Levels(_ref) {
|
|
|
1845
1891
|
}
|
|
1846
1892
|
}
|
|
1847
1893
|
},
|
|
1894
|
+
size: "small",
|
|
1848
1895
|
disabled: isDisabled,
|
|
1849
1896
|
isReadOnly: isReadOnly,
|
|
1850
1897
|
autoFocus: true
|
|
@@ -1879,8 +1926,9 @@ var ObservationForecast = function ObservationForecast(_ref) {
|
|
|
1879
1926
|
return /*#__PURE__*/React__default.createElement(ProductFormFieldLayout, {
|
|
1880
1927
|
sx: {
|
|
1881
1928
|
paddingTop: '8px!important',
|
|
1882
|
-
'
|
|
1883
|
-
|
|
1929
|
+
'.MuiButtonBase-root.MuiRadio-root': {
|
|
1930
|
+
padding: '6px',
|
|
1931
|
+
marginLeft: '3px'
|
|
1884
1932
|
}
|
|
1885
1933
|
}
|
|
1886
1934
|
}, /*#__PURE__*/React__default.createElement(ReactHookFormRadioGroup, {
|
|
@@ -2001,6 +2049,7 @@ var Phenomenon = function Phenomenon(_ref) {
|
|
|
2001
2049
|
},
|
|
2002
2050
|
disabled: isDisabled,
|
|
2003
2051
|
isReadOnly: isReadOnly,
|
|
2052
|
+
size: "small",
|
|
2004
2053
|
"data-testid": "phenomenon",
|
|
2005
2054
|
onChange: function onChange() {
|
|
2006
2055
|
if (getValues('movementType') === 'NO_VA_EXP') {
|
|
@@ -2008,8 +2057,7 @@ var Phenomenon = function Phenomenon(_ref) {
|
|
|
2008
2057
|
}
|
|
2009
2058
|
triggerValidations(['validDateStart', 'validDateEnd'], getValues, trigger);
|
|
2010
2059
|
_onChange();
|
|
2011
|
-
}
|
|
2012
|
-
autoFocus: true
|
|
2060
|
+
}
|
|
2013
2061
|
}, Object.keys(phenomenaList).map(function (key) {
|
|
2014
2062
|
return /*#__PURE__*/React__default.createElement(MenuItem, {
|
|
2015
2063
|
value: key,
|
|
@@ -2232,6 +2280,7 @@ var Progress = function Progress(_ref) {
|
|
|
2232
2280
|
rules: {
|
|
2233
2281
|
validate: isRequired
|
|
2234
2282
|
},
|
|
2283
|
+
size: "small",
|
|
2235
2284
|
sx: styles$2.movement,
|
|
2236
2285
|
disabled: isDisabled,
|
|
2237
2286
|
isReadOnly: isReadOnly,
|
|
@@ -2259,6 +2308,7 @@ var Progress = function Progress(_ref) {
|
|
|
2259
2308
|
rules: {
|
|
2260
2309
|
validate: isRequired
|
|
2261
2310
|
},
|
|
2311
|
+
size: "small",
|
|
2262
2312
|
sx: styles$2.unit,
|
|
2263
2313
|
disabled: isDisabled,
|
|
2264
2314
|
isReadOnly: isReadOnly,
|
|
@@ -2304,6 +2354,7 @@ var Progress = function Progress(_ref) {
|
|
|
2304
2354
|
}
|
|
2305
2355
|
}
|
|
2306
2356
|
},
|
|
2357
|
+
size: "small",
|
|
2307
2358
|
disabled: isDisabled,
|
|
2308
2359
|
isReadOnly: isReadOnly,
|
|
2309
2360
|
"data-testid": "movement-movementSpeed",
|
|
@@ -2424,8 +2475,7 @@ var SelectFIR = function SelectFIR(_ref) {
|
|
|
2424
2475
|
onChange(changeEvent);
|
|
2425
2476
|
};
|
|
2426
2477
|
return /*#__PURE__*/React__default.createElement(ProductFormFieldLayout, {
|
|
2427
|
-
title: "Where"
|
|
2428
|
-
sx: styles$2.containerItem
|
|
2478
|
+
title: "Where"
|
|
2429
2479
|
}, /*#__PURE__*/React__default.createElement(ReactHookFormSelect, {
|
|
2430
2480
|
name: "locationIndicatorATSR",
|
|
2431
2481
|
label: isReadOnly ? 'FIR' : 'Select FIR',
|
|
@@ -2437,7 +2487,8 @@ var SelectFIR = function SelectFIR(_ref) {
|
|
|
2437
2487
|
disabled: isDisabled,
|
|
2438
2488
|
isReadOnly: isReadOnly,
|
|
2439
2489
|
defaultValue: locationIndicatorATSR,
|
|
2440
|
-
onChange: onChangeLocationATSR
|
|
2490
|
+
onChange: onChangeLocationATSR,
|
|
2491
|
+
size: "small"
|
|
2441
2492
|
}, optionsFIR.map(function (fir) {
|
|
2442
2493
|
return /*#__PURE__*/React__default.createElement(MenuItem, {
|
|
2443
2494
|
key: "".concat(fir.ATSR, "-").concat(fir.FIR),
|
|
@@ -2476,41 +2527,33 @@ var SelectFIR = function SelectFIR(_ref) {
|
|
|
2476
2527
|
* */
|
|
2477
2528
|
var Type = function Type(_ref) {
|
|
2478
2529
|
var isReadOnly = _ref.isReadOnly,
|
|
2479
|
-
isDisabled = _ref.isDisabled
|
|
2480
|
-
|
|
2481
|
-
|
|
2530
|
+
isDisabled = _ref.isDisabled,
|
|
2531
|
+
_ref$onChange = _ref.onChange,
|
|
2532
|
+
_onChange = _ref$onChange === void 0 ? function () {} : _ref$onChange;
|
|
2533
|
+
var _useFormContext = useFormContext(),
|
|
2534
|
+
getValues = _useFormContext.getValues,
|
|
2535
|
+
trigger = _useFormContext.trigger;
|
|
2536
|
+
var label = getFieldLabel('Type', isReadOnly);
|
|
2482
2537
|
return /*#__PURE__*/React__default.createElement(ProductFormFieldLayout, {
|
|
2483
|
-
title: "Type"
|
|
2484
|
-
|
|
2485
|
-
}, /*#__PURE__*/React__default.createElement(Grid, {
|
|
2486
|
-
item: true,
|
|
2487
|
-
xs: 12
|
|
2488
|
-
}, /*#__PURE__*/React__default.createElement(ReactHookFormRadioGroup, {
|
|
2538
|
+
title: "Type"
|
|
2539
|
+
}, /*#__PURE__*/React__default.createElement(ReactHookFormSelect, {
|
|
2489
2540
|
name: "type",
|
|
2490
|
-
|
|
2491
|
-
validate: {
|
|
2492
|
-
isRequired: isRequired
|
|
2493
|
-
}
|
|
2494
|
-
},
|
|
2541
|
+
label: label,
|
|
2495
2542
|
disabled: isDisabled,
|
|
2496
2543
|
isReadOnly: isReadOnly,
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
label: "Exercise",
|
|
2511
|
-
disabled: isDisabled,
|
|
2512
|
-
"data-testid": "type-EXERCISE"
|
|
2513
|
-
}))));
|
|
2544
|
+
size: "small",
|
|
2545
|
+
"data-testid": "type",
|
|
2546
|
+
onChange: function onChange() {
|
|
2547
|
+
triggerValidations(['validDateStart', 'validDateEnd'], getValues, trigger);
|
|
2548
|
+
_onChange();
|
|
2549
|
+
},
|
|
2550
|
+
autoFocus: true
|
|
2551
|
+
}, Object.keys(SigmetType).map(function (key) {
|
|
2552
|
+
return /*#__PURE__*/React__default.createElement(MenuItem, {
|
|
2553
|
+
value: key,
|
|
2554
|
+
key: key
|
|
2555
|
+
}, SigmetType[key]);
|
|
2556
|
+
})));
|
|
2514
2557
|
};
|
|
2515
2558
|
|
|
2516
2559
|
/* *
|
|
@@ -2578,7 +2621,8 @@ var ValidFrom = function ValidFrom(_ref) {
|
|
|
2578
2621
|
},
|
|
2579
2622
|
disabled: isDisabled,
|
|
2580
2623
|
isReadOnly: isReadOnly,
|
|
2581
|
-
"data-testid": "valid-from"
|
|
2624
|
+
"data-testid": "valid-from",
|
|
2625
|
+
sx: styles$2.helperText
|
|
2582
2626
|
}));
|
|
2583
2627
|
};
|
|
2584
2628
|
|
|
@@ -2643,7 +2687,8 @@ var ValidUntil = function ValidUntil(_ref) {
|
|
|
2643
2687
|
onChange: function onChange() {
|
|
2644
2688
|
triggerValidations(['validDateStart', 'observationOrForecastTime'], getValues, trigger);
|
|
2645
2689
|
_onChange();
|
|
2646
|
-
}
|
|
2690
|
+
},
|
|
2691
|
+
sx: styles$2.helperText
|
|
2647
2692
|
}));
|
|
2648
2693
|
};
|
|
2649
2694
|
|
|
@@ -2698,7 +2743,8 @@ var VolcanicFields = function VolcanicFields(_ref) {
|
|
|
2698
2743
|
disabled: isDisabled,
|
|
2699
2744
|
helperText: helperText,
|
|
2700
2745
|
upperCase: true,
|
|
2701
|
-
isReadOnly: isReadOnly
|
|
2746
|
+
isReadOnly: isReadOnly,
|
|
2747
|
+
size: "small"
|
|
2702
2748
|
})), (!isReadOnly || !!watch('vaSigmetVolcanoCoordinates.latitude')) && /*#__PURE__*/React__default.createElement(Grid, {
|
|
2703
2749
|
item: true,
|
|
2704
2750
|
xs: 6
|
|
@@ -2716,6 +2762,7 @@ var VolcanicFields = function VolcanicFields(_ref) {
|
|
|
2716
2762
|
}
|
|
2717
2763
|
}
|
|
2718
2764
|
},
|
|
2765
|
+
size: "small",
|
|
2719
2766
|
sx: Object.assign({}, styles$2.latitude),
|
|
2720
2767
|
disabled: isDisabled,
|
|
2721
2768
|
onChange: function onChange() {
|
|
@@ -2730,6 +2777,8 @@ var VolcanicFields = function VolcanicFields(_ref) {
|
|
|
2730
2777
|
"data-testid": "vaSigmetVolcanoCoordinates.longitude",
|
|
2731
2778
|
label: "Longitude",
|
|
2732
2779
|
inputMode: "decimal",
|
|
2780
|
+
size: "small",
|
|
2781
|
+
sx: Object.assign({}, styles$2.latitude),
|
|
2733
2782
|
rules: {
|
|
2734
2783
|
required: true,
|
|
2735
2784
|
validate: {
|
|
@@ -2847,6 +2896,7 @@ var SurfaceVisibility = function SurfaceVisibility(_ref) {
|
|
|
2847
2896
|
}
|
|
2848
2897
|
}
|
|
2849
2898
|
},
|
|
2899
|
+
size: "small",
|
|
2850
2900
|
disabled: isDisabled,
|
|
2851
2901
|
isReadOnly: isReadOnly
|
|
2852
2902
|
})), /*#__PURE__*/React__default.createElement(Grid, {
|
|
@@ -2866,7 +2916,8 @@ var SurfaceVisibility = function SurfaceVisibility(_ref) {
|
|
|
2866
2916
|
onChange: function onChange(event) {
|
|
2867
2917
|
event.stopPropagation();
|
|
2868
2918
|
_onChange();
|
|
2869
|
-
}
|
|
2919
|
+
},
|
|
2920
|
+
size: "small"
|
|
2870
2921
|
}, Object.keys(VisibilityCause).map(function (key) {
|
|
2871
2922
|
return /*#__PURE__*/React__default.createElement(MenuItem, {
|
|
2872
2923
|
value: key,
|
|
@@ -2965,6 +3016,7 @@ var SurfaceWind = function SurfaceWind(_ref) {
|
|
|
2965
3016
|
}
|
|
2966
3017
|
}
|
|
2967
3018
|
},
|
|
3019
|
+
size: "small",
|
|
2968
3020
|
disabled: isDisabled,
|
|
2969
3021
|
isReadOnly: isReadOnly,
|
|
2970
3022
|
"data-testid": "surfaceWind-windDirection"
|
|
@@ -2983,6 +3035,7 @@ var SurfaceWind = function SurfaceWind(_ref) {
|
|
|
2983
3035
|
isRequired: isRequired
|
|
2984
3036
|
}
|
|
2985
3037
|
},
|
|
3038
|
+
size: "small",
|
|
2986
3039
|
sx: styles$2.unit,
|
|
2987
3040
|
disabled: isDisabled,
|
|
2988
3041
|
isReadOnly: isReadOnly,
|
|
@@ -3021,6 +3074,7 @@ var SurfaceWind = function SurfaceWind(_ref) {
|
|
|
3021
3074
|
}
|
|
3022
3075
|
}
|
|
3023
3076
|
},
|
|
3077
|
+
size: "small",
|
|
3024
3078
|
disabled: isDisabled,
|
|
3025
3079
|
isReadOnly: isReadOnly,
|
|
3026
3080
|
"data-testid": "surfaceWind-windSpeed"
|
|
@@ -3185,6 +3239,7 @@ var CloudLevels = function CloudLevels(_ref) {
|
|
|
3185
3239
|
isRequired: isRequired
|
|
3186
3240
|
}
|
|
3187
3241
|
},
|
|
3242
|
+
size: "small",
|
|
3188
3243
|
sx: styles$2.unit,
|
|
3189
3244
|
disabled: isDisabled,
|
|
3190
3245
|
isReadOnly: isReadOnly,
|
|
@@ -3207,6 +3262,7 @@ var CloudLevels = function CloudLevels(_ref) {
|
|
|
3207
3262
|
name: "cloudLevel.value",
|
|
3208
3263
|
label: "Upper level",
|
|
3209
3264
|
"data-testid": "cloudLevel-value",
|
|
3265
|
+
size: "small",
|
|
3210
3266
|
sx: styles$2.levelField,
|
|
3211
3267
|
rules: {
|
|
3212
3268
|
validate: {
|
|
@@ -3289,6 +3345,7 @@ var CloudLevels = function CloudLevels(_ref) {
|
|
|
3289
3345
|
isRequired: isRequired
|
|
3290
3346
|
}
|
|
3291
3347
|
},
|
|
3348
|
+
size: "small",
|
|
3292
3349
|
sx: styles$2.unit,
|
|
3293
3350
|
disabled: isDisabled,
|
|
3294
3351
|
isReadOnly: isReadOnly,
|
|
@@ -3338,6 +3395,7 @@ var CloudLevels = function CloudLevels(_ref) {
|
|
|
3338
3395
|
}
|
|
3339
3396
|
}
|
|
3340
3397
|
},
|
|
3398
|
+
size: "small",
|
|
3341
3399
|
disabled: isDisabled,
|
|
3342
3400
|
isReadOnly: isReadOnly
|
|
3343
3401
|
})))))));
|
|
@@ -3534,6 +3592,12 @@ var IssuedAt = function IssuedAt(_ref) {
|
|
|
3534
3592
|
var date = _ref.date,
|
|
3535
3593
|
isReadOnly = _ref.isReadOnly;
|
|
3536
3594
|
return /*#__PURE__*/React__default.createElement(ProductFormFieldLayout, {
|
|
3595
|
+
sx: {
|
|
3596
|
+
paddingTop: 0,
|
|
3597
|
+
'+ .MuiGrid-item': {
|
|
3598
|
+
paddingTop: 0
|
|
3599
|
+
}
|
|
3600
|
+
},
|
|
3537
3601
|
title: "Issued at"
|
|
3538
3602
|
}, /*#__PURE__*/React__default.createElement(Grid, {
|
|
3539
3603
|
item: true,
|
|
@@ -8301,8 +8365,28 @@ var SigmetForm = function SigmetForm(_ref) {
|
|
|
8301
8365
|
return /*#__PURE__*/React__default.createElement(Grid, {
|
|
8302
8366
|
container: true,
|
|
8303
8367
|
direction: "column",
|
|
8304
|
-
spacing:
|
|
8305
|
-
|
|
8368
|
+
spacing: 2,
|
|
8369
|
+
sx: {
|
|
8370
|
+
'.MuiSelect-select.MuiInputBase-input.MuiFilledInput-input': {
|
|
8371
|
+
paddingTop: '17px',
|
|
8372
|
+
paddingBottom: '0px'
|
|
8373
|
+
},
|
|
8374
|
+
'.MuiInputBase-input.MuiFilledInput-input': {
|
|
8375
|
+
paddingTop: '15px',
|
|
8376
|
+
paddingBottom: '2px'
|
|
8377
|
+
},
|
|
8378
|
+
'+ .MuiGrid-item': {
|
|
8379
|
+
paddingTop: '16px'
|
|
8380
|
+
},
|
|
8381
|
+
'.MuiFormHelperText-root': {
|
|
8382
|
+
lineHeight: '1.33em'
|
|
8383
|
+
}
|
|
8384
|
+
}
|
|
8385
|
+
}, /*#__PURE__*/React__default.createElement(Type, {
|
|
8386
|
+
isDisabled: isDisabled,
|
|
8387
|
+
isReadOnly: isReadOnly,
|
|
8388
|
+
onChange: onChangeForm
|
|
8389
|
+
}), !isCancelSigmet && /*#__PURE__*/React__default.createElement(Phenomenon, {
|
|
8306
8390
|
productType: "sigmet",
|
|
8307
8391
|
isDisabled: isDisabled,
|
|
8308
8392
|
isReadOnly: isReadOnly,
|
|
@@ -8383,10 +8467,7 @@ var SigmetForm = function SigmetForm(_ref) {
|
|
|
8383
8467
|
name: "validDateEndOfSigmetToCancel"
|
|
8384
8468
|
}), /*#__PURE__*/React__default.createElement(ReactHookFormHiddenInput, {
|
|
8385
8469
|
name: "validDateStartOfSigmetToCancel"
|
|
8386
|
-
})))
|
|
8387
|
-
isDisabled: isDisabled,
|
|
8388
|
-
isReadOnly: isReadOnly
|
|
8389
|
-
}));
|
|
8470
|
+
}))));
|
|
8390
8471
|
};
|
|
8391
8472
|
if (!showMap) {
|
|
8392
8473
|
return renderForm();
|
|
@@ -8554,8 +8635,28 @@ var AirmetForm = function AirmetForm(_ref) {
|
|
|
8554
8635
|
return /*#__PURE__*/React__default.createElement(Grid, {
|
|
8555
8636
|
container: true,
|
|
8556
8637
|
direction: "column",
|
|
8557
|
-
spacing:
|
|
8558
|
-
|
|
8638
|
+
spacing: 2,
|
|
8639
|
+
sx: {
|
|
8640
|
+
'.MuiSelect-select.MuiInputBase-input.MuiFilledInput-input': {
|
|
8641
|
+
paddingTop: '17px',
|
|
8642
|
+
paddingBottom: '0px'
|
|
8643
|
+
},
|
|
8644
|
+
'.MuiInputBase-input.MuiFilledInput-input': {
|
|
8645
|
+
paddingTop: '15px',
|
|
8646
|
+
paddingBottom: '2px'
|
|
8647
|
+
},
|
|
8648
|
+
'+ .MuiGrid-item': {
|
|
8649
|
+
paddingTop: '16px'
|
|
8650
|
+
},
|
|
8651
|
+
'.MuiFormHelperText-root': {
|
|
8652
|
+
lineHeight: '1.33em'
|
|
8653
|
+
}
|
|
8654
|
+
}
|
|
8655
|
+
}, /*#__PURE__*/React__default.createElement(Type, {
|
|
8656
|
+
isDisabled: isDisabled,
|
|
8657
|
+
isReadOnly: isReadOnly,
|
|
8658
|
+
onChange: onChangeForm
|
|
8659
|
+
}), !isCancelAirmet && /*#__PURE__*/React__default.createElement(Phenomenon, {
|
|
8559
8660
|
productType: "airmet",
|
|
8560
8661
|
isDisabled: isDisabled,
|
|
8561
8662
|
isReadOnly: isReadOnly,
|
|
@@ -8635,10 +8736,7 @@ var AirmetForm = function AirmetForm(_ref) {
|
|
|
8635
8736
|
name: "validDateEndOfAirmetToCancel"
|
|
8636
8737
|
}), /*#__PURE__*/React__default.createElement(ReactHookFormHiddenInput, {
|
|
8637
8738
|
name: "validDateStartOfAirmetToCancel"
|
|
8638
|
-
})))
|
|
8639
|
-
isDisabled: isDisabled,
|
|
8640
|
-
isReadOnly: isReadOnly
|
|
8641
|
-
}));
|
|
8739
|
+
}))));
|
|
8642
8740
|
};
|
|
8643
8741
|
if (!showMap) {
|
|
8644
8742
|
return renderForm();
|
|
@@ -16848,4 +16946,4 @@ var AirmetComponentsLookUp = function AirmetComponentsLookUp(payload, _ref) {
|
|
|
16848
16946
|
}
|
|
16849
16947
|
};
|
|
16850
16948
|
|
|
16851
|
-
export { AirmetComponentsLookUp, AirmetForm, AirmetPhenomena, CloudLevelUnits, ContentDialog, Direction, DownloadSigmetAirmetConfigWrapper, LevelUnits, MapViewGeoJson, MetInfoWrapper, MovementUnit, ProductList, ProductListRow, ProductStatusDescription, SigmetComponentsLookUp, SigmetForm, SigmetPhenomena, StartOrEndDrawing, VisibilityCause, WindUnit, airmetConfig, createApi$1 as createApi, createApi as createFakeApi, isInstanceOfAirmet, isInstanceOfCancelAirmet, isInstanceOfCancelSigmet, isInstanceOfCancelSigmetOrAirmet, isInstanceOfSigmet, isInstanceOfSigmetOrAirmet, sigmetConfig };
|
|
16949
|
+
export { AirmetComponentsLookUp, AirmetForm, AirmetPhenomena, CloudLevelUnits, ContentDialog, Direction, DownloadSigmetAirmetConfigWrapper, LevelUnits, MapViewGeoJson, MetInfoWrapper, MovementUnit, ProductList, ProductListRow, ProductStatusDescription, SigmetComponentsLookUp, SigmetForm, SigmetPhenomena, SigmetType, StartOrEndDrawing, VisibilityCause, WindUnit, airmetConfig, createApi$1 as createApi, createApi as createFakeApi, isInstanceOfAirmet, isInstanceOfCancelAirmet, isInstanceOfCancelSigmet, isInstanceOfCancelSigmetOrAirmet, isInstanceOfSigmet, isInstanceOfSigmetOrAirmet, sigmetConfig };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/sigmet-airmet",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.4.0",
|
|
4
4
|
"description": "GeoWeb Sigmet/Airmet library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -13,15 +13,15 @@
|
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@mui/material": "5.12.0",
|
|
15
15
|
"@mui/system": "5.14.14",
|
|
16
|
-
"@opengeoweb/api": "8.
|
|
17
|
-
"@opengeoweb/authentication": "8.
|
|
18
|
-
"@opengeoweb/core": "8.
|
|
19
|
-
"@opengeoweb/form-fields": "8.
|
|
20
|
-
"@opengeoweb/shared": "8.
|
|
21
|
-
"@opengeoweb/store": "8.
|
|
22
|
-
"@opengeoweb/theme": "8.
|
|
23
|
-
"@opengeoweb/webmap": "8.
|
|
24
|
-
"@opengeoweb/webmap-react": "8.
|
|
16
|
+
"@opengeoweb/api": "8.4.0",
|
|
17
|
+
"@opengeoweb/authentication": "8.4.0",
|
|
18
|
+
"@opengeoweb/core": "8.4.0",
|
|
19
|
+
"@opengeoweb/form-fields": "8.4.0",
|
|
20
|
+
"@opengeoweb/shared": "8.4.0",
|
|
21
|
+
"@opengeoweb/store": "8.4.0",
|
|
22
|
+
"@opengeoweb/theme": "8.4.0",
|
|
23
|
+
"@opengeoweb/webmap": "8.4.0",
|
|
24
|
+
"@opengeoweb/webmap-react": "8.4.0",
|
|
25
25
|
"@redux-eggs/redux-toolkit": "2.2.0",
|
|
26
26
|
"@redux-eggs/saga-extension": "2.2.0",
|
|
27
27
|
"@reduxjs/toolkit": "1.9.7",
|
|
@@ -11,6 +11,20 @@ export declare const styles: {
|
|
|
11
11
|
' .MuiTypography-subtitle1': {
|
|
12
12
|
marginTop: number;
|
|
13
13
|
};
|
|
14
|
+
paddingTop: string;
|
|
15
|
+
'+ .MuiGrid-item': {
|
|
16
|
+
paddingTop: number;
|
|
17
|
+
};
|
|
18
|
+
'.MuiButtonBase-root.MuiRadio-root': {
|
|
19
|
+
padding: string;
|
|
20
|
+
marginLeft: string;
|
|
21
|
+
};
|
|
22
|
+
'.MuiFormControl-root.MuiTextField-root': {
|
|
23
|
+
marginBottom: number;
|
|
24
|
+
};
|
|
25
|
+
'.MuiGrid-root': {
|
|
26
|
+
alignItems: string;
|
|
27
|
+
};
|
|
14
28
|
};
|
|
15
29
|
volcanicField: {
|
|
16
30
|
marginBottom: number;
|
|
@@ -29,6 +43,9 @@ export declare const styles: {
|
|
|
29
43
|
};
|
|
30
44
|
latitude: {
|
|
31
45
|
width: string;
|
|
46
|
+
'.MuiFormControl-root.MuiTextField-root': {
|
|
47
|
+
margin: number;
|
|
48
|
+
};
|
|
32
49
|
};
|
|
33
50
|
unit: {
|
|
34
51
|
width: string;
|
|
@@ -47,12 +64,25 @@ export declare const styles: {
|
|
|
47
64
|
};
|
|
48
65
|
helperText: {
|
|
49
66
|
' .MuiFormHelperText-root': {
|
|
67
|
+
top: string;
|
|
50
68
|
position: string;
|
|
51
|
-
|
|
69
|
+
lineHeight: string;
|
|
52
70
|
'&.Mui-error': {
|
|
53
71
|
top: string;
|
|
54
72
|
position: string;
|
|
55
73
|
};
|
|
56
74
|
};
|
|
75
|
+
'.MuiFormLabel-root.MuiInputLabel-root': {
|
|
76
|
+
top: number;
|
|
77
|
+
lineHeight: string;
|
|
78
|
+
};
|
|
79
|
+
'.MuiSvgIcon-root': {
|
|
80
|
+
width: string;
|
|
81
|
+
height: string;
|
|
82
|
+
};
|
|
83
|
+
'.MuiButtonBase-root.MuiIconButton-root': {
|
|
84
|
+
padding: string;
|
|
85
|
+
marginLeft: string;
|
|
86
|
+
};
|
|
57
87
|
};
|
|
58
88
|
};
|
package/src/lib/types.d.ts
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { mapTypes } from '@opengeoweb/store';
|
|
3
3
|
export type ProductType = 'sigmet' | 'airmet';
|
|
4
|
+
/**
|
|
5
|
+
* The possible type for the sigmet
|
|
6
|
+
*/
|
|
7
|
+
export declare enum SigmetType {
|
|
8
|
+
'NORMAL' = "Normal",
|
|
9
|
+
'TEST' = "Test",
|
|
10
|
+
'EXERCISE' = "Exercise"
|
|
11
|
+
}
|
|
4
12
|
/**
|
|
5
13
|
* The possible phenomena for the sigmet
|
|
6
14
|
*/
|