@zac-apps/helium 1.3.0-beta.1 → 1.3.0-beta.2
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/dist/index.js +30 -29
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import React, { useState, createContext, useContext, useEffect } from 'react';
|
|
|
4
4
|
import moment from 'moment';
|
|
5
5
|
import { useImmer } from 'use-immer';
|
|
6
6
|
import useMediaQuery from '@mui/material/useMediaQuery';
|
|
7
|
-
import
|
|
7
|
+
import Grid from '@mui/material/Unstable_Grid2';
|
|
8
8
|
import TableBody from '@mui/material/TableBody';
|
|
9
9
|
import TableCell from '@mui/material/TableCell';
|
|
10
10
|
import TableHead from '@mui/material/TableHead';
|
|
@@ -29,6 +29,7 @@ import Button from '@mui/material/Button';
|
|
|
29
29
|
import moment$1 from 'moment/moment.js';
|
|
30
30
|
import Typography from '@mui/material/Typography';
|
|
31
31
|
import { LineChart, Line, CartesianGrid, XAxis, Label, YAxis, ReferenceLine, ReferenceArea, Tooltip } from 'recharts';
|
|
32
|
+
import Grid2 from '@mui/material/Grid2';
|
|
32
33
|
import Paper from '@mui/material/Paper';
|
|
33
34
|
import ButtonGroup from '@mui/material/ButtonGroup';
|
|
34
35
|
import Switch from '@mui/material/Switch';
|
|
@@ -242,7 +243,7 @@ function HeliumTable(_ref2) {
|
|
|
242
243
|
// Catch if no data present
|
|
243
244
|
|
|
244
245
|
if (heliumData.helium.length === 0) {
|
|
245
|
-
return /*#__PURE__*/jsx(
|
|
246
|
+
return /*#__PURE__*/jsx(Grid, {
|
|
246
247
|
children: /*#__PURE__*/jsx("em", {
|
|
247
248
|
children: "No Helium data found."
|
|
248
249
|
})
|
|
@@ -578,7 +579,7 @@ function AddPrognoEntry(_ref5) {
|
|
|
578
579
|
children: /*#__PURE__*/jsx("strong", {
|
|
579
580
|
children: "Add prediction row"
|
|
580
581
|
})
|
|
581
|
-
}), /*#__PURE__*/jsxs(
|
|
582
|
+
}), /*#__PURE__*/jsxs(Grid, {
|
|
582
583
|
children: [/*#__PURE__*/jsx(NumField, {
|
|
583
584
|
input: input,
|
|
584
585
|
SetInput: SetInput,
|
|
@@ -631,25 +632,25 @@ function HePrognosis(_ref6) {
|
|
|
631
632
|
d.setDate(d.getDate() + increments[i]);
|
|
632
633
|
dates = _objectSpread$3(_objectSpread$3({}, dates), {}, _defineProperty({}, increments[i], moment(d).format("ll")));
|
|
633
634
|
}
|
|
634
|
-
return /*#__PURE__*/jsxs(
|
|
635
|
+
return /*#__PURE__*/jsxs(Grid, {
|
|
635
636
|
container: true,
|
|
636
637
|
columns: {
|
|
637
638
|
xs: 6,
|
|
638
639
|
sm: 12
|
|
639
640
|
},
|
|
640
|
-
children: [/*#__PURE__*/jsx(
|
|
641
|
+
children: [/*#__PURE__*/jsx(Grid, {
|
|
641
642
|
xs: 6,
|
|
642
643
|
children: /*#__PURE__*/jsx(SelectSpecs, {
|
|
643
644
|
specs: specs,
|
|
644
645
|
SetSpecs: SetSpecs
|
|
645
646
|
})
|
|
646
|
-
}), /*#__PURE__*/jsx(
|
|
647
|
+
}), /*#__PURE__*/jsx(Grid, {
|
|
647
648
|
xs: 6,
|
|
648
649
|
children: /*#__PURE__*/jsx(AddPrognoEntry, {
|
|
649
650
|
increments: increments,
|
|
650
651
|
SetIncrements: SetIncrements
|
|
651
652
|
})
|
|
652
|
-
}), /*#__PURE__*/jsx(
|
|
653
|
+
}), /*#__PURE__*/jsx(Grid, {
|
|
653
654
|
xs: 12,
|
|
654
655
|
children: /*#__PURE__*/jsxs(AppTable, {
|
|
655
656
|
children: [/*#__PURE__*/jsxs(TableHead, {
|
|
@@ -679,7 +680,7 @@ function HePrognosis(_ref6) {
|
|
|
679
680
|
})
|
|
680
681
|
})]
|
|
681
682
|
})
|
|
682
|
-
}), /*#__PURE__*/jsxs(
|
|
683
|
+
}), /*#__PURE__*/jsxs(Grid, {
|
|
683
684
|
xs: 12,
|
|
684
685
|
sx: {
|
|
685
686
|
display: "flex",
|
|
@@ -925,7 +926,7 @@ function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t
|
|
|
925
926
|
function TupleResult(_ref) {
|
|
926
927
|
var children = _ref.children,
|
|
927
928
|
title = _ref.title;
|
|
928
|
-
return /*#__PURE__*/jsx(
|
|
929
|
+
return /*#__PURE__*/jsx(Grid, {
|
|
929
930
|
children: /*#__PURE__*/jsxs(AppTable, {
|
|
930
931
|
children: [/*#__PURE__*/jsx(TableHead, {
|
|
931
932
|
children: /*#__PURE__*/jsx(TableRow, {
|
|
@@ -1036,13 +1037,13 @@ function PairWizard(_ref4) {
|
|
|
1036
1037
|
limit: limit
|
|
1037
1038
|
}));
|
|
1038
1039
|
return /*#__PURE__*/jsx(React.Fragment, {
|
|
1039
|
-
children: /*#__PURE__*/jsxs(
|
|
1040
|
+
children: /*#__PURE__*/jsxs(Grid, {
|
|
1040
1041
|
container: true,
|
|
1041
1042
|
columns: {
|
|
1042
1043
|
xs: 6,
|
|
1043
1044
|
md: 12
|
|
1044
1045
|
},
|
|
1045
|
-
children: [/*#__PURE__*/jsxs(
|
|
1046
|
+
children: [/*#__PURE__*/jsxs(Grid, {
|
|
1046
1047
|
xs: 6,
|
|
1047
1048
|
sx: {
|
|
1048
1049
|
px: 2
|
|
@@ -1052,7 +1053,7 @@ function PairWizard(_ref4) {
|
|
|
1052
1053
|
children: /*#__PURE__*/jsx("strong", {
|
|
1053
1054
|
children: "Find earliest set of spectrometers requiring"
|
|
1054
1055
|
})
|
|
1055
|
-
}), /*#__PURE__*/jsx(
|
|
1056
|
+
}), /*#__PURE__*/jsx(Grid, {
|
|
1056
1057
|
sx: {
|
|
1057
1058
|
padding: 2,
|
|
1058
1059
|
display: "flex",
|
|
@@ -1067,13 +1068,13 @@ function PairWizard(_ref4) {
|
|
|
1067
1068
|
SetError: SetError
|
|
1068
1069
|
})
|
|
1069
1070
|
})
|
|
1070
|
-
}), /*#__PURE__*/jsx(
|
|
1071
|
+
}), /*#__PURE__*/jsx(Grid, {
|
|
1071
1072
|
children: /*#__PURE__*/jsx(SelectSpecs, {
|
|
1072
1073
|
specs: specs,
|
|
1073
1074
|
SetSpecs: SetSpecs
|
|
1074
1075
|
})
|
|
1075
1076
|
})]
|
|
1076
|
-
}), /*#__PURE__*/jsxs(
|
|
1077
|
+
}), /*#__PURE__*/jsxs(Grid, {
|
|
1077
1078
|
xs: 6,
|
|
1078
1079
|
sx: {
|
|
1079
1080
|
px: 2
|
|
@@ -1083,7 +1084,7 @@ function PairWizard(_ref4) {
|
|
|
1083
1084
|
children: /*#__PURE__*/jsx("strong", {
|
|
1084
1085
|
children: "Result"
|
|
1085
1086
|
})
|
|
1086
|
-
}), /*#__PURE__*/jsxs(
|
|
1087
|
+
}), /*#__PURE__*/jsxs(Grid, {
|
|
1087
1088
|
sx: {
|
|
1088
1089
|
px: 3
|
|
1089
1090
|
},
|
|
@@ -1126,13 +1127,13 @@ function FillTarget(_ref) {
|
|
|
1126
1127
|
spec: spec
|
|
1127
1128
|
});
|
|
1128
1129
|
return /*#__PURE__*/jsx(React.Fragment, {
|
|
1129
|
-
children: /*#__PURE__*/jsxs(
|
|
1130
|
+
children: /*#__PURE__*/jsxs(Grid, {
|
|
1130
1131
|
container: true,
|
|
1131
1132
|
columns: {
|
|
1132
1133
|
xs: 6,
|
|
1133
1134
|
md: 12
|
|
1134
1135
|
},
|
|
1135
|
-
children: [/*#__PURE__*/jsxs(
|
|
1136
|
+
children: [/*#__PURE__*/jsxs(Grid, {
|
|
1136
1137
|
xs: 6,
|
|
1137
1138
|
sx: {
|
|
1138
1139
|
px: 2
|
|
@@ -1142,7 +1143,7 @@ function FillTarget(_ref) {
|
|
|
1142
1143
|
children: /*#__PURE__*/jsx("strong", {
|
|
1143
1144
|
children: "Select Spectrometer"
|
|
1144
1145
|
})
|
|
1145
|
-
}), /*#__PURE__*/jsx(
|
|
1146
|
+
}), /*#__PURE__*/jsx(Grid, {
|
|
1146
1147
|
sx: {
|
|
1147
1148
|
padding: 2,
|
|
1148
1149
|
display: "flex",
|
|
@@ -1154,7 +1155,7 @@ function FillTarget(_ref) {
|
|
|
1154
1155
|
SetSpec: SetSpec
|
|
1155
1156
|
})
|
|
1156
1157
|
})]
|
|
1157
|
-
}), /*#__PURE__*/jsxs(
|
|
1158
|
+
}), /*#__PURE__*/jsxs(Grid, {
|
|
1158
1159
|
xs: 6,
|
|
1159
1160
|
sx: {
|
|
1160
1161
|
px: 2
|
|
@@ -1164,7 +1165,7 @@ function FillTarget(_ref) {
|
|
|
1164
1165
|
children: /*#__PURE__*/jsx("strong", {
|
|
1165
1166
|
children: "Current status"
|
|
1166
1167
|
})
|
|
1167
|
-
}), /*#__PURE__*/jsx(
|
|
1168
|
+
}), /*#__PURE__*/jsx(Grid, {
|
|
1168
1169
|
sx: {
|
|
1169
1170
|
padding: 2,
|
|
1170
1171
|
display: "flex",
|
|
@@ -1175,7 +1176,7 @@ function FillTarget(_ref) {
|
|
|
1175
1176
|
children: [currLevel, " % (", currLiter, " L)"]
|
|
1176
1177
|
})
|
|
1177
1178
|
})]
|
|
1178
|
-
}), /*#__PURE__*/jsxs(
|
|
1179
|
+
}), /*#__PURE__*/jsxs(Grid, {
|
|
1179
1180
|
xs: 6,
|
|
1180
1181
|
sx: {
|
|
1181
1182
|
px: 2
|
|
@@ -1185,7 +1186,7 @@ function FillTarget(_ref) {
|
|
|
1185
1186
|
children: /*#__PURE__*/jsx("strong", {
|
|
1186
1187
|
children: "Helium fill amount"
|
|
1187
1188
|
})
|
|
1188
|
-
}), /*#__PURE__*/jsx(
|
|
1189
|
+
}), /*#__PURE__*/jsx(Grid, {
|
|
1189
1190
|
sx: {
|
|
1190
1191
|
padding: 2,
|
|
1191
1192
|
display: "flex",
|
|
@@ -1201,7 +1202,7 @@ function FillTarget(_ref) {
|
|
|
1201
1202
|
})
|
|
1202
1203
|
})
|
|
1203
1204
|
})]
|
|
1204
|
-
}), /*#__PURE__*/jsxs(
|
|
1205
|
+
}), /*#__PURE__*/jsxs(Grid, {
|
|
1205
1206
|
xs: 6,
|
|
1206
1207
|
sx: {
|
|
1207
1208
|
px: 2
|
|
@@ -1211,7 +1212,7 @@ function FillTarget(_ref) {
|
|
|
1211
1212
|
children: /*#__PURE__*/jsx("strong", {
|
|
1212
1213
|
children: "After filling"
|
|
1213
1214
|
})
|
|
1214
|
-
}), /*#__PURE__*/jsx(
|
|
1215
|
+
}), /*#__PURE__*/jsx(Grid, {
|
|
1215
1216
|
sx: {
|
|
1216
1217
|
padding: 2,
|
|
1217
1218
|
display: "flex",
|
|
@@ -1658,7 +1659,7 @@ function Helium(props) {
|
|
|
1658
1659
|
graphDataMeta: graphDataMeta,
|
|
1659
1660
|
matches: matches
|
|
1660
1661
|
})
|
|
1661
|
-
}) : null, /*#__PURE__*/jsxs(
|
|
1662
|
+
}) : null, /*#__PURE__*/jsxs(Grid, {
|
|
1662
1663
|
sx: {
|
|
1663
1664
|
display: "flex",
|
|
1664
1665
|
flexFlow: "column wrap",
|
|
@@ -1668,7 +1669,7 @@ function Helium(props) {
|
|
|
1668
1669
|
title: "Helium Calculator",
|
|
1669
1670
|
size: cardSize,
|
|
1670
1671
|
collapsed: collapsed,
|
|
1671
|
-
children: [/*#__PURE__*/jsx(
|
|
1672
|
+
children: [/*#__PURE__*/jsx(Grid, {
|
|
1672
1673
|
children: /*#__PURE__*/jsxs(DivTitle, {
|
|
1673
1674
|
children: [/*#__PURE__*/jsx("strong", {
|
|
1674
1675
|
children: "Current levels"
|
|
@@ -1678,7 +1679,7 @@ function Helium(props) {
|
|
|
1678
1679
|
})]
|
|
1679
1680
|
})]
|
|
1680
1681
|
})
|
|
1681
|
-
}), /*#__PURE__*/jsx(
|
|
1682
|
+
}), /*#__PURE__*/jsx(Grid, {
|
|
1682
1683
|
children: /*#__PURE__*/jsx(HeliumTable, {
|
|
1683
1684
|
heliumLookupData: heliumLookupData,
|
|
1684
1685
|
heliumData: heliumData,
|
|
@@ -1690,7 +1691,7 @@ function Helium(props) {
|
|
|
1690
1691
|
title: "Spectrometer Set",
|
|
1691
1692
|
size: cardSize,
|
|
1692
1693
|
collapsed: collapsed,
|
|
1693
|
-
children: /*#__PURE__*/jsx(
|
|
1694
|
+
children: /*#__PURE__*/jsx(Grid, {
|
|
1694
1695
|
children: /*#__PURE__*/jsx(PairWizard, {
|
|
1695
1696
|
heliumData: heliumData
|
|
1696
1697
|
})
|
|
@@ -1699,7 +1700,7 @@ function Helium(props) {
|
|
|
1699
1700
|
title: "Estimated Consumption",
|
|
1700
1701
|
size: cardSize,
|
|
1701
1702
|
collapsed: collapsed,
|
|
1702
|
-
children: /*#__PURE__*/jsx(
|
|
1703
|
+
children: /*#__PURE__*/jsx(Grid, {
|
|
1703
1704
|
children: /*#__PURE__*/jsx(EstimateConsumption, {})
|
|
1704
1705
|
})
|
|
1705
1706
|
}), /*#__PURE__*/jsx(AppCard, {
|