@opengeoweb/sigmet-airmet 8.3.0 → 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 +274 -153
- package/package.json +14 -14
- 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,
|
|
@@ -4053,12 +4117,12 @@ function getContext() {
|
|
|
4053
4117
|
|
|
4054
4118
|
const ReactReduxContext = /*#__PURE__*/getContext();
|
|
4055
4119
|
|
|
4056
|
-
/**
|
|
4057
|
-
* Hook factory, which creates a `useReduxContext` hook bound to a given context. This is a low-level
|
|
4058
|
-
* hook that you should usually not need to call directly.
|
|
4059
|
-
*
|
|
4060
|
-
* @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
|
|
4061
|
-
* @returns {Function} A `useReduxContext` hook bound to the specified context.
|
|
4120
|
+
/**
|
|
4121
|
+
* Hook factory, which creates a `useReduxContext` hook bound to a given context. This is a low-level
|
|
4122
|
+
* hook that you should usually not need to call directly.
|
|
4123
|
+
*
|
|
4124
|
+
* @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
|
|
4125
|
+
* @returns {Function} A `useReduxContext` hook bound to the specified context.
|
|
4062
4126
|
*/
|
|
4063
4127
|
function createReduxContextHook(context = ReactReduxContext) {
|
|
4064
4128
|
return function useReduxContext() {
|
|
@@ -4071,21 +4135,21 @@ function createReduxContextHook(context = ReactReduxContext) {
|
|
|
4071
4135
|
return contextValue;
|
|
4072
4136
|
};
|
|
4073
4137
|
}
|
|
4074
|
-
/**
|
|
4075
|
-
* A hook to access the value of the `ReactReduxContext`. This is a low-level
|
|
4076
|
-
* hook that you should usually not need to call directly.
|
|
4077
|
-
*
|
|
4078
|
-
* @returns {any} the value of the `ReactReduxContext`
|
|
4079
|
-
*
|
|
4080
|
-
* @example
|
|
4081
|
-
*
|
|
4082
|
-
* import React from 'react'
|
|
4083
|
-
* import { useReduxContext } from 'react-redux'
|
|
4084
|
-
*
|
|
4085
|
-
* export const CounterComponent = () => {
|
|
4086
|
-
* const { store } = useReduxContext()
|
|
4087
|
-
* return <div>{store.getState()}</div>
|
|
4088
|
-
* }
|
|
4138
|
+
/**
|
|
4139
|
+
* A hook to access the value of the `ReactReduxContext`. This is a low-level
|
|
4140
|
+
* hook that you should usually not need to call directly.
|
|
4141
|
+
*
|
|
4142
|
+
* @returns {any} the value of the `ReactReduxContext`
|
|
4143
|
+
*
|
|
4144
|
+
* @example
|
|
4145
|
+
*
|
|
4146
|
+
* import React from 'react'
|
|
4147
|
+
* import { useReduxContext } from 'react-redux'
|
|
4148
|
+
*
|
|
4149
|
+
* export const CounterComponent = () => {
|
|
4150
|
+
* const { store } = useReduxContext()
|
|
4151
|
+
* return <div>{store.getState()}</div>
|
|
4152
|
+
* }
|
|
4089
4153
|
*/
|
|
4090
4154
|
|
|
4091
4155
|
const useReduxContext = /*#__PURE__*/createReduxContextHook();
|
|
@@ -4100,11 +4164,11 @@ const initializeUseSelector = fn => {
|
|
|
4100
4164
|
};
|
|
4101
4165
|
|
|
4102
4166
|
const refEquality = (a, b) => a === b;
|
|
4103
|
-
/**
|
|
4104
|
-
* Hook factory, which creates a `useSelector` hook bound to a given context.
|
|
4105
|
-
*
|
|
4106
|
-
* @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
|
|
4107
|
-
* @returns {Function} A `useSelector` hook bound to the specified context.
|
|
4167
|
+
/**
|
|
4168
|
+
* Hook factory, which creates a `useSelector` hook bound to a given context.
|
|
4169
|
+
*
|
|
4170
|
+
* @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
|
|
4171
|
+
* @returns {Function} A `useSelector` hook bound to the specified context.
|
|
4108
4172
|
*/
|
|
4109
4173
|
|
|
4110
4174
|
|
|
@@ -4152,10 +4216,21 @@ function createSelectorHook(context = ReactReduxContext) {
|
|
|
4152
4216
|
const toCompare = selector(state);
|
|
4153
4217
|
|
|
4154
4218
|
if (!equalityFn(selected, toCompare)) {
|
|
4219
|
+
let stack = undefined;
|
|
4220
|
+
|
|
4221
|
+
try {
|
|
4222
|
+
throw new Error();
|
|
4223
|
+
} catch (e) {
|
|
4224
|
+
({
|
|
4225
|
+
stack
|
|
4226
|
+
} = e);
|
|
4227
|
+
}
|
|
4228
|
+
|
|
4155
4229
|
console.warn('Selector ' + (selector.name || 'unknown') + ' returned a different result when called with the same parameters. This can lead to unnecessary rerenders.' + '\nSelectors that return a new reference (such as an object or an array) should be memoized: https://redux.js.org/usage/deriving-data-selectors#optimizing-selectors-with-memoization', {
|
|
4156
4230
|
state,
|
|
4157
4231
|
selected,
|
|
4158
|
-
selected2: toCompare
|
|
4232
|
+
selected2: toCompare,
|
|
4233
|
+
stack
|
|
4159
4234
|
});
|
|
4160
4235
|
}
|
|
4161
4236
|
}
|
|
@@ -4165,7 +4240,19 @@ function createSelectorHook(context = ReactReduxContext) {
|
|
|
4165
4240
|
if (finalNoopCheck === 'always' || finalNoopCheck === 'once' && firstRun.current) {
|
|
4166
4241
|
// @ts-ignore
|
|
4167
4242
|
if (selected === state) {
|
|
4168
|
-
|
|
4243
|
+
let stack = undefined;
|
|
4244
|
+
|
|
4245
|
+
try {
|
|
4246
|
+
throw new Error();
|
|
4247
|
+
} catch (e) {
|
|
4248
|
+
({
|
|
4249
|
+
stack
|
|
4250
|
+
} = e);
|
|
4251
|
+
}
|
|
4252
|
+
|
|
4253
|
+
console.warn('Selector ' + (selector.name || 'unknown') + ' returned the root state when called. This can lead to unnecessary rerenders.' + '\nSelectors that return the entire state are almost certainly a mistake, as they will cause a rerender whenever *anything* in state changes.', {
|
|
4254
|
+
stack
|
|
4255
|
+
});
|
|
4169
4256
|
}
|
|
4170
4257
|
}
|
|
4171
4258
|
|
|
@@ -4181,28 +4268,28 @@ function createSelectorHook(context = ReactReduxContext) {
|
|
|
4181
4268
|
return selectedState;
|
|
4182
4269
|
};
|
|
4183
4270
|
}
|
|
4184
|
-
/**
|
|
4185
|
-
* A hook to access the redux store's state. This hook takes a selector function
|
|
4186
|
-
* as an argument. The selector is called with the store state.
|
|
4187
|
-
*
|
|
4188
|
-
* This hook takes an optional equality comparison function as the second parameter
|
|
4189
|
-
* that allows you to customize the way the selected state is compared to determine
|
|
4190
|
-
* whether the component needs to be re-rendered.
|
|
4191
|
-
*
|
|
4192
|
-
* @param {Function} selector the selector function
|
|
4193
|
-
* @param {Function=} equalityFn the function that will be used to determine equality
|
|
4194
|
-
*
|
|
4195
|
-
* @returns {any} the selected state
|
|
4196
|
-
*
|
|
4197
|
-
* @example
|
|
4198
|
-
*
|
|
4199
|
-
* import React from 'react'
|
|
4200
|
-
* import { useSelector } from 'react-redux'
|
|
4201
|
-
*
|
|
4202
|
-
* export const CounterComponent = () => {
|
|
4203
|
-
* const counter = useSelector(state => state.counter)
|
|
4204
|
-
* return <div>{counter}</div>
|
|
4205
|
-
* }
|
|
4271
|
+
/**
|
|
4272
|
+
* A hook to access the redux store's state. This hook takes a selector function
|
|
4273
|
+
* as an argument. The selector is called with the store state.
|
|
4274
|
+
*
|
|
4275
|
+
* This hook takes an optional equality comparison function as the second parameter
|
|
4276
|
+
* that allows you to customize the way the selected state is compared to determine
|
|
4277
|
+
* whether the component needs to be re-rendered.
|
|
4278
|
+
*
|
|
4279
|
+
* @param {Function} selector the selector function
|
|
4280
|
+
* @param {Function=} equalityFn the function that will be used to determine equality
|
|
4281
|
+
*
|
|
4282
|
+
* @returns {any} the selected state
|
|
4283
|
+
*
|
|
4284
|
+
* @example
|
|
4285
|
+
*
|
|
4286
|
+
* import React from 'react'
|
|
4287
|
+
* import { useSelector } from 'react-redux'
|
|
4288
|
+
*
|
|
4289
|
+
* export const CounterComponent = () => {
|
|
4290
|
+
* const counter = useSelector(state => state.counter)
|
|
4291
|
+
* return <div>{counter}</div>
|
|
4292
|
+
* }
|
|
4206
4293
|
*/
|
|
4207
4294
|
|
|
4208
4295
|
const useSelector = /*#__PURE__*/createSelectorHook();
|
|
@@ -4729,11 +4816,11 @@ function shallowEqual(objA, objB) {
|
|
|
4729
4816
|
return true;
|
|
4730
4817
|
}
|
|
4731
4818
|
|
|
4732
|
-
/**
|
|
4733
|
-
* Hook factory, which creates a `useStore` hook bound to a given context.
|
|
4734
|
-
*
|
|
4735
|
-
* @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
|
|
4736
|
-
* @returns {Function} A `useStore` hook bound to the specified context.
|
|
4819
|
+
/**
|
|
4820
|
+
* Hook factory, which creates a `useStore` hook bound to a given context.
|
|
4821
|
+
*
|
|
4822
|
+
* @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
|
|
4823
|
+
* @returns {Function} A `useStore` hook bound to the specified context.
|
|
4737
4824
|
*/
|
|
4738
4825
|
|
|
4739
4826
|
function createStoreHook(context = ReactReduxContext) {
|
|
@@ -4748,29 +4835,29 @@ function createStoreHook(context = ReactReduxContext) {
|
|
|
4748
4835
|
return store;
|
|
4749
4836
|
};
|
|
4750
4837
|
}
|
|
4751
|
-
/**
|
|
4752
|
-
* A hook to access the redux store.
|
|
4753
|
-
*
|
|
4754
|
-
* @returns {any} the redux store
|
|
4755
|
-
*
|
|
4756
|
-
* @example
|
|
4757
|
-
*
|
|
4758
|
-
* import React from 'react'
|
|
4759
|
-
* import { useStore } from 'react-redux'
|
|
4760
|
-
*
|
|
4761
|
-
* export const ExampleComponent = () => {
|
|
4762
|
-
* const store = useStore()
|
|
4763
|
-
* return <div>{store.getState()}</div>
|
|
4764
|
-
* }
|
|
4838
|
+
/**
|
|
4839
|
+
* A hook to access the redux store.
|
|
4840
|
+
*
|
|
4841
|
+
* @returns {any} the redux store
|
|
4842
|
+
*
|
|
4843
|
+
* @example
|
|
4844
|
+
*
|
|
4845
|
+
* import React from 'react'
|
|
4846
|
+
* import { useStore } from 'react-redux'
|
|
4847
|
+
*
|
|
4848
|
+
* export const ExampleComponent = () => {
|
|
4849
|
+
* const store = useStore()
|
|
4850
|
+
* return <div>{store.getState()}</div>
|
|
4851
|
+
* }
|
|
4765
4852
|
*/
|
|
4766
4853
|
|
|
4767
4854
|
const useStore = /*#__PURE__*/createStoreHook();
|
|
4768
4855
|
|
|
4769
|
-
/**
|
|
4770
|
-
* Hook factory, which creates a `useDispatch` hook bound to a given context.
|
|
4771
|
-
*
|
|
4772
|
-
* @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
|
|
4773
|
-
* @returns {Function} A `useDispatch` hook bound to the specified context.
|
|
4856
|
+
/**
|
|
4857
|
+
* Hook factory, which creates a `useDispatch` hook bound to a given context.
|
|
4858
|
+
*
|
|
4859
|
+
* @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
|
|
4860
|
+
* @returns {Function} A `useDispatch` hook bound to the specified context.
|
|
4774
4861
|
*/
|
|
4775
4862
|
|
|
4776
4863
|
function createDispatchHook(context = ReactReduxContext) {
|
|
@@ -4782,26 +4869,26 @@ function createDispatchHook(context = ReactReduxContext) {
|
|
|
4782
4869
|
return store.dispatch;
|
|
4783
4870
|
};
|
|
4784
4871
|
}
|
|
4785
|
-
/**
|
|
4786
|
-
* A hook to access the redux `dispatch` function.
|
|
4787
|
-
*
|
|
4788
|
-
* @returns {any|function} redux store's `dispatch` function
|
|
4789
|
-
*
|
|
4790
|
-
* @example
|
|
4791
|
-
*
|
|
4792
|
-
* import React, { useCallback } from 'react'
|
|
4793
|
-
* import { useDispatch } from 'react-redux'
|
|
4794
|
-
*
|
|
4795
|
-
* export const CounterComponent = ({ value }) => {
|
|
4796
|
-
* const dispatch = useDispatch()
|
|
4797
|
-
* const increaseCounter = useCallback(() => dispatch({ type: 'increase-counter' }), [])
|
|
4798
|
-
* return (
|
|
4799
|
-
* <div>
|
|
4800
|
-
* <span>{value}</span>
|
|
4801
|
-
* <button onClick={increaseCounter}>Increase counter</button>
|
|
4802
|
-
* </div>
|
|
4803
|
-
* )
|
|
4804
|
-
* }
|
|
4872
|
+
/**
|
|
4873
|
+
* A hook to access the redux `dispatch` function.
|
|
4874
|
+
*
|
|
4875
|
+
* @returns {any|function} redux store's `dispatch` function
|
|
4876
|
+
*
|
|
4877
|
+
* @example
|
|
4878
|
+
*
|
|
4879
|
+
* import React, { useCallback } from 'react'
|
|
4880
|
+
* import { useDispatch } from 'react-redux'
|
|
4881
|
+
*
|
|
4882
|
+
* export const CounterComponent = ({ value }) => {
|
|
4883
|
+
* const dispatch = useDispatch()
|
|
4884
|
+
* const increaseCounter = useCallback(() => dispatch({ type: 'increase-counter' }), [])
|
|
4885
|
+
* return (
|
|
4886
|
+
* <div>
|
|
4887
|
+
* <span>{value}</span>
|
|
4888
|
+
* <button onClick={increaseCounter}>Increase counter</button>
|
|
4889
|
+
* </div>
|
|
4890
|
+
* )
|
|
4891
|
+
* }
|
|
4805
4892
|
*/
|
|
4806
4893
|
|
|
4807
4894
|
const useDispatch = /*#__PURE__*/createDispatchHook();
|
|
@@ -8278,8 +8365,28 @@ var SigmetForm = function SigmetForm(_ref) {
|
|
|
8278
8365
|
return /*#__PURE__*/React__default.createElement(Grid, {
|
|
8279
8366
|
container: true,
|
|
8280
8367
|
direction: "column",
|
|
8281
|
-
spacing:
|
|
8282
|
-
|
|
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, {
|
|
8283
8390
|
productType: "sigmet",
|
|
8284
8391
|
isDisabled: isDisabled,
|
|
8285
8392
|
isReadOnly: isReadOnly,
|
|
@@ -8360,10 +8467,7 @@ var SigmetForm = function SigmetForm(_ref) {
|
|
|
8360
8467
|
name: "validDateEndOfSigmetToCancel"
|
|
8361
8468
|
}), /*#__PURE__*/React__default.createElement(ReactHookFormHiddenInput, {
|
|
8362
8469
|
name: "validDateStartOfSigmetToCancel"
|
|
8363
|
-
})))
|
|
8364
|
-
isDisabled: isDisabled,
|
|
8365
|
-
isReadOnly: isReadOnly
|
|
8366
|
-
}));
|
|
8470
|
+
}))));
|
|
8367
8471
|
};
|
|
8368
8472
|
if (!showMap) {
|
|
8369
8473
|
return renderForm();
|
|
@@ -8531,8 +8635,28 @@ var AirmetForm = function AirmetForm(_ref) {
|
|
|
8531
8635
|
return /*#__PURE__*/React__default.createElement(Grid, {
|
|
8532
8636
|
container: true,
|
|
8533
8637
|
direction: "column",
|
|
8534
|
-
spacing:
|
|
8535
|
-
|
|
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, {
|
|
8536
8660
|
productType: "airmet",
|
|
8537
8661
|
isDisabled: isDisabled,
|
|
8538
8662
|
isReadOnly: isReadOnly,
|
|
@@ -8612,10 +8736,7 @@ var AirmetForm = function AirmetForm(_ref) {
|
|
|
8612
8736
|
name: "validDateEndOfAirmetToCancel"
|
|
8613
8737
|
}), /*#__PURE__*/React__default.createElement(ReactHookFormHiddenInput, {
|
|
8614
8738
|
name: "validDateStartOfAirmetToCancel"
|
|
8615
|
-
})))
|
|
8616
|
-
isDisabled: isDisabled,
|
|
8617
|
-
isReadOnly: isReadOnly
|
|
8618
|
-
}));
|
|
8739
|
+
}))));
|
|
8619
8740
|
};
|
|
8620
8741
|
if (!showMap) {
|
|
8621
8742
|
return renderForm();
|
|
@@ -12583,7 +12704,7 @@ tags.forEach(function (tagName) {
|
|
|
12583
12704
|
});
|
|
12584
12705
|
|
|
12585
12706
|
/**
|
|
12586
|
-
* @mui/styled-engine v5.14.
|
|
12707
|
+
* @mui/styled-engine v5.14.14
|
|
12587
12708
|
*
|
|
12588
12709
|
* @license MIT
|
|
12589
12710
|
* This source code is licensed under the MIT license found in the
|
|
@@ -16825,4 +16946,4 @@ var AirmetComponentsLookUp = function AirmetComponentsLookUp(payload, _ref) {
|
|
|
16825
16946
|
}
|
|
16826
16947
|
};
|
|
16827
16948
|
|
|
16828
|
-
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": {
|
|
@@ -12,27 +12,27 @@
|
|
|
12
12
|
"main": "./index.esm.js",
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@mui/material": "5.12.0",
|
|
15
|
-
"@mui/system": "5.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.
|
|
15
|
+
"@mui/system": "5.14.14",
|
|
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
|
-
"@reduxjs/toolkit": "1.9.
|
|
27
|
+
"@reduxjs/toolkit": "1.9.7",
|
|
28
28
|
"@turf/turf": "6.5.0",
|
|
29
29
|
"axios": "1.5.0",
|
|
30
30
|
"immer": "9.0.21",
|
|
31
31
|
"lodash": "4.17.21",
|
|
32
32
|
"moment": "2.29.4",
|
|
33
33
|
"react": "18.2.0",
|
|
34
|
-
"react-hook-form": "7.
|
|
35
|
-
"react-redux": "8.1.
|
|
34
|
+
"react-hook-form": "7.47.0",
|
|
35
|
+
"react-redux": "8.1.3"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {}
|
|
38
38
|
}
|
|
@@ -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
|
*/
|