@complat/react-spectra-editor 1.3.5 → 1.4.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/dist/__tests__/fixtures/nmr1h_2_jcamp.js +3199 -1944
- package/dist/__tests__/units/components/cmd_bar/01_viewer.test.js +21 -18
- package/dist/__tests__/units/components/cmd_bar/02_zoom.test.js +15 -13
- package/dist/__tests__/units/components/cmd_bar/03_peak.test.js +35 -26
- package/dist/__tests__/units/components/cmd_bar/07_pecker.test.js +17 -14
- package/dist/__tests__/units/components/cmd_bar/r08_change_axes.test.js +15 -13
- package/dist/__tests__/units/components/common/comps.test.js +9 -8
- package/dist/__tests__/units/components/common/draw.test.js +26 -34
- package/dist/__tests__/units/components/panel/graph_selection.test.js +25 -22
- package/dist/__tests__/units/components/panel/info.test.js +30 -25
- package/dist/__tests__/units/components/panel/peaks.test.js +29 -24
- package/dist/actions/manager.js +6 -2
- package/dist/actions/ui.js +13 -21
- package/dist/app.js +45 -45
- package/dist/components/cmd_bar/01_viewer.js +38 -31
- package/dist/components/cmd_bar/02_zoom.js +34 -27
- package/dist/components/cmd_bar/03_peak.js +85 -64
- package/dist/components/cmd_bar/04_integration.js +97 -76
- package/dist/components/cmd_bar/05_multiplicity.js +94 -67
- package/dist/components/cmd_bar/06_undo_redo.js +41 -32
- package/dist/components/cmd_bar/07_pecker.js +70 -47
- package/dist/components/cmd_bar/common.js +8 -8
- package/dist/components/cmd_bar/index.js +20 -21
- package/dist/components/cmd_bar/r01_layout.js +201 -137
- package/dist/components/cmd_bar/r02_scan.js +63 -51
- package/dist/components/cmd_bar/r03_threshold.js +95 -69
- package/dist/components/cmd_bar/r04_submit.js +155 -133
- package/dist/components/cmd_bar/r05_submit_btn.js +39 -36
- package/dist/components/cmd_bar/r06_predict_btn.js +66 -52
- package/dist/components/cmd_bar/r07_wavelength_btn.js +35 -31
- package/dist/components/cmd_bar/r08_change_axes.js +65 -56
- package/dist/components/cmd_bar/r09_detector.js +38 -33
- package/dist/components/cmd_bar/tri_btn.js +37 -25
- package/dist/components/common/comps.js +5 -6
- package/dist/components/d3_line/index.js +2 -1
- package/dist/components/d3_line/line_focus.js +32 -34
- package/dist/components/d3_multi/index.js +2 -1
- package/dist/components/d3_multi/multi_focus.js +60 -37
- package/dist/components/d3_rect/index.js +2 -1
- package/dist/components/d3_rect/rect_focus.js +18 -20
- package/dist/components/forecast/comps.js +169 -132
- package/dist/components/forecast/ir_comps.js +88 -69
- package/dist/components/forecast/ir_viewer.js +35 -28
- package/dist/components/forecast/nmr_comps.js +105 -76
- package/dist/components/forecast/nmr_viewer.js +36 -29
- package/dist/components/forecast/section_loading.js +22 -17
- package/dist/components/forecast_viewer.js +19 -17
- package/dist/components/multi_jcamps_viewer.js +44 -38
- package/dist/components/panel/compare.js +92 -76
- package/dist/components/panel/cyclic_voltamery_data.js +171 -122
- package/dist/components/panel/graph_selection.js +113 -90
- package/dist/components/panel/index.js +43 -39
- package/dist/components/panel/info.js +203 -156
- package/dist/components/panel/multiplicity.js +85 -63
- package/dist/components/panel/multiplicity_coupling.js +36 -29
- package/dist/components/panel/multiplicity_select.js +20 -19
- package/dist/components/panel/peaks.js +78 -56
- package/dist/constants/action_type.js +2 -1
- package/dist/helpers/cfg.js +1 -2
- package/dist/helpers/chem.js +5 -13
- package/dist/helpers/converter.js +1 -2
- package/dist/helpers/extractParams.js +1 -2
- package/dist/helpers/extractPeaksEdit.js +3 -6
- package/dist/helpers/format.js +28 -63
- package/dist/helpers/init.js +5 -9
- package/dist/helpers/integration.js +1 -2
- package/dist/helpers/mount.js +1 -2
- package/dist/index.js +306 -276
- package/dist/layer_content.js +14 -14
- package/dist/layer_init.js +12 -11
- package/dist/layer_prism.js +83 -72
- package/dist/reducers/reducer_axes.js +2 -5
- package/dist/reducers/reducer_curve.js +8 -6
- package/dist/reducers/reducer_detector.js +1 -3
- package/dist/reducers/reducer_edit_peak.js +1 -3
- package/dist/reducers/reducer_forecast.js +1 -3
- package/dist/reducers/reducer_integration.js +1 -3
- package/dist/reducers/reducer_jcamp.js +5 -8
- package/dist/reducers/reducer_layout.js +1 -3
- package/dist/reducers/reducer_manager.js +1 -3
- package/dist/reducers/reducer_meta.js +1 -3
- package/dist/reducers/reducer_multiplicity.js +3 -3
- package/dist/reducers/reducer_scan.js +1 -3
- package/dist/reducers/reducer_shift.js +1 -3
- package/dist/reducers/reducer_simulation.js +1 -3
- package/dist/reducers/reducer_status.js +1 -3
- package/dist/reducers/reducer_submit.js +1 -3
- package/dist/reducers/reducer_threshold.js +199 -29
- package/dist/reducers/reducer_ui.js +1 -3
- package/dist/reducers/reducer_voltammetry.js +3 -7
- package/dist/reducers/reducer_wavelength.js +1 -3
- package/dist/sagas/saga_multi_entities.js +35 -14
- package/dist/sagas/saga_multiplicity.js +1 -2
- package/dist/third_party/jAnalyzer.js +1 -1
- package/package.json +18 -1
|
@@ -15,46 +15,52 @@ var _CheckCircleOutline = _interopRequireDefault(require("@mui/icons-material/Ch
|
|
|
15
15
|
var _HighlightOff = _interopRequireDefault(require("@mui/icons-material/HighlightOff"));
|
|
16
16
|
var _comps = require("./comps");
|
|
17
17
|
var _forecast = require("../../actions/forecast");
|
|
18
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
19
|
/* eslint-disable react/function-component-definition, react/destructuring-assignment */
|
|
19
20
|
|
|
20
|
-
const baseSelectNmrStatus =
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
} = _ref;
|
|
21
|
+
const baseSelectNmrStatus = ({
|
|
22
|
+
// eslint-disable-line
|
|
23
|
+
idx,
|
|
24
|
+
atom,
|
|
25
|
+
status,
|
|
26
|
+
identity,
|
|
27
|
+
setNmrStatusAct
|
|
28
|
+
}) => {
|
|
29
29
|
const theStatus = ['accept', 'reject'].includes(status) ? status : '';
|
|
30
|
-
return /*#__PURE__*/
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
30
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.FormControl, {
|
|
31
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Select, {
|
|
32
|
+
value: theStatus,
|
|
33
|
+
onChange: e => {
|
|
34
|
+
setNmrStatusAct({
|
|
35
|
+
predictions: {
|
|
36
|
+
idx,
|
|
37
|
+
atom,
|
|
38
|
+
identity,
|
|
39
|
+
value: e.target.value
|
|
40
|
+
},
|
|
41
|
+
svgs: []
|
|
42
|
+
});
|
|
43
|
+
},
|
|
44
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.MenuItem, {
|
|
45
|
+
value: "accept",
|
|
46
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CheckCircleOutline.default, {
|
|
47
|
+
style: {
|
|
48
|
+
color: '#4caf50'
|
|
49
|
+
}
|
|
50
|
+
})
|
|
51
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.MenuItem, {
|
|
52
|
+
value: "reject",
|
|
53
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_HighlightOff.default, {
|
|
54
|
+
style: {
|
|
55
|
+
color: '#e91e63'
|
|
56
|
+
}
|
|
57
|
+
})
|
|
58
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.MenuItem, {
|
|
59
|
+
value: "",
|
|
60
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {})
|
|
61
|
+
})]
|
|
62
|
+
})
|
|
63
|
+
});
|
|
58
64
|
};
|
|
59
65
|
const bssMapStateToProps = (state, props) => (
|
|
60
66
|
// eslint-disable-line
|
|
@@ -83,45 +89,68 @@ const realFormat = (val, status) => {
|
|
|
83
89
|
}
|
|
84
90
|
return numFormat(val);
|
|
85
91
|
};
|
|
86
|
-
const NmrTableHeader = classes => /*#__PURE__*/
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
}, (0,
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
}, (0,
|
|
92
|
+
const NmrTableHeader = classes => /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.TableHead, {
|
|
93
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.TableRow, {
|
|
94
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.TableCell, {
|
|
95
|
+
children: (0, _comps.TxtLabel)(classes, 'Atom', 'txt-prd-table-title')
|
|
96
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.TableCell, {
|
|
97
|
+
align: "right",
|
|
98
|
+
children: (0, _comps.TxtLabel)(classes, 'Prediction (ppm)', 'txt-prd-table-title')
|
|
99
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.TableCell, {
|
|
100
|
+
align: "right",
|
|
101
|
+
children: (0, _comps.TxtLabel)(classes, 'Real (ppm)', 'txt-prd-table-title')
|
|
102
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.TableCell, {
|
|
103
|
+
align: "right",
|
|
104
|
+
children: (0, _comps.TxtLabel)(classes, 'Diff (ppm)', 'txt-prd-table-title')
|
|
105
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.TableCell, {
|
|
106
|
+
align: "right",
|
|
107
|
+
children: (0, _comps.TxtLabel)(classes, 'Machine', 'txt-prd-table-title')
|
|
108
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.TableCell, {
|
|
109
|
+
align: "right",
|
|
110
|
+
children: (0, _comps.TxtLabel)(classes, 'Owner', 'txt-prd-table-title')
|
|
111
|
+
})]
|
|
112
|
+
})
|
|
113
|
+
});
|
|
97
114
|
exports.NmrTableHeader = NmrTableHeader;
|
|
98
|
-
const NmrTableBodyRow = (classes, row, idx) => /*#__PURE__*/
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
}, (0,
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
}, (0,
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
115
|
+
const NmrTableBodyRow = (classes, row, idx) => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.TableRow, {
|
|
116
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.TableCell, {
|
|
117
|
+
component: "th",
|
|
118
|
+
scope: "row",
|
|
119
|
+
children: (0, _comps.TxtLabel)(classes, row.atom, 'txt-prd-table-content')
|
|
120
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.TableCell, {
|
|
121
|
+
align: "right",
|
|
122
|
+
children: (0, _comps.TxtLabel)(classes, numFormat(row.prediction), 'txt-prd-table-content')
|
|
123
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.TableCell, {
|
|
124
|
+
align: "right",
|
|
125
|
+
children: (0, _comps.TxtLabel)(classes, realFormat(row.real, row.status), 'txt-prd-table-content')
|
|
126
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.TableCell, {
|
|
127
|
+
align: "right",
|
|
128
|
+
children: (0, _comps.TxtLabel)(classes, realFormat(row.diff, row.status), 'txt-prd-table-content')
|
|
129
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.TableCell, {
|
|
130
|
+
align: "right",
|
|
131
|
+
children: (0, _comps.StatusIcon)(row.status)
|
|
132
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.TableCell, {
|
|
133
|
+
align: "right",
|
|
134
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(SelectNmrStatus, {
|
|
135
|
+
idx: idx,
|
|
136
|
+
atom: row.atom,
|
|
137
|
+
status: row.statusOwner,
|
|
138
|
+
identity: "Owner"
|
|
139
|
+
})
|
|
140
|
+
})]
|
|
141
|
+
}, `${idx}-${row.atom}`);
|
|
119
142
|
exports.NmrTableBodyRow = NmrTableBodyRow;
|
|
120
|
-
const SectionReference = classes => /*#__PURE__*/
|
|
121
|
-
className: (0, _classnames.default)(classes.reference)
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
143
|
+
const SectionReference = classes => /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
144
|
+
className: (0, _classnames.default)(classes.reference),
|
|
145
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("p", {
|
|
146
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
147
|
+
children: "NMR prediction source: "
|
|
148
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("a", {
|
|
149
|
+
href: "https://www.ncbi.nlm.nih.gov/pubmed/15464159",
|
|
150
|
+
target: "_blank",
|
|
151
|
+
rel: "noopener noreferrer",
|
|
152
|
+
children: "nmrshiftdb"
|
|
153
|
+
})]
|
|
154
|
+
})
|
|
155
|
+
});
|
|
127
156
|
exports.SectionReference = SectionReference;
|
|
@@ -14,6 +14,7 @@ var _styles = require("@mui/styles");
|
|
|
14
14
|
var _material = require("@mui/material");
|
|
15
15
|
var _comps = require("./comps");
|
|
16
16
|
var _nmr_comps = require("./nmr_comps");
|
|
17
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
18
|
const Styles = () => ({
|
|
18
19
|
root: {
|
|
19
20
|
overflowX: 'hidden',
|
|
@@ -58,37 +59,43 @@ const sectionTable = (classes, pds) => {
|
|
|
58
59
|
const renderMsg = (0, _comps.notToRenderAnalysis)(pds);
|
|
59
60
|
if (renderMsg) return renderMsg;
|
|
60
61
|
const dict = pds.output.result[0];
|
|
61
|
-
if (!dict) return /*#__PURE__*/
|
|
62
|
-
return /*#__PURE__*/
|
|
63
|
-
className: classes.tableRoot
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
62
|
+
if (!dict) return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {});
|
|
63
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Paper, {
|
|
64
|
+
className: classes.tableRoot,
|
|
65
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Table, {
|
|
66
|
+
className: classes.table,
|
|
67
|
+
size: "small",
|
|
68
|
+
children: [(0, _nmr_comps.NmrTableHeader)(classes), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.TableBody, {
|
|
69
|
+
children: dict.shifts.sort((a, b) => a.atom - b.atom).map((row, idx) => (0, _nmr_comps.NmrTableBodyRow)(classes, row, idx))
|
|
70
|
+
})]
|
|
71
|
+
})
|
|
72
|
+
});
|
|
68
73
|
};
|
|
69
|
-
const NmrViewer =
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
className: (0, _classnames.default)(classes.root, 'card-forecast-viewer')
|
|
79
|
-
}, /*#__PURE__*/_react.default.createElement(_material.Grid, {
|
|
74
|
+
const NmrViewer = ({
|
|
75
|
+
// eslint-disable-line
|
|
76
|
+
classes,
|
|
77
|
+
molecule,
|
|
78
|
+
inputCb,
|
|
79
|
+
forecastSt
|
|
80
|
+
}) => /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
81
|
+
className: (0, _classnames.default)(classes.root, 'card-forecast-viewer'),
|
|
82
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Grid, {
|
|
80
83
|
className: (0, _classnames.default)(classes.container),
|
|
81
|
-
container: true
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
84
|
+
container: true,
|
|
85
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Grid, {
|
|
86
|
+
item: true,
|
|
87
|
+
xs: 4,
|
|
88
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Paper, {
|
|
89
|
+
className: classes.svgRoot,
|
|
90
|
+
children: (0, _comps.sectionSvg)(classes, forecastSt.predictions)
|
|
91
|
+
})
|
|
92
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Grid, {
|
|
93
|
+
item: true,
|
|
94
|
+
xs: 8,
|
|
95
|
+
children: sectionTable(classes, forecastSt.predictions)
|
|
96
|
+
})]
|
|
97
|
+
}), (0, _comps.sectionInput)(classes, molecule, inputCb), (0, _nmr_comps.SectionReference)(classes)]
|
|
98
|
+
});
|
|
92
99
|
const mapStateToProps = (state, props) => (
|
|
93
100
|
// eslint-disable-line
|
|
94
101
|
{
|
|
@@ -8,6 +8,7 @@ exports.default = void 0;
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _CircularProgress = _interopRequireDefault(require("@mui/material/CircularProgress"));
|
|
10
10
|
var _ErrorOutline = _interopRequireDefault(require("@mui/icons-material/ErrorOutline"));
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
12
|
const styleLoading = {
|
|
12
13
|
alignItems: 'center',
|
|
13
14
|
display: 'flex',
|
|
@@ -27,25 +28,29 @@ class SectionLoading extends _react.default.Component {
|
|
|
27
28
|
}), 5000);
|
|
28
29
|
}
|
|
29
30
|
renderLoading() {
|
|
30
|
-
return /*#__PURE__*/
|
|
31
|
-
style: styleLoading
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
31
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
32
|
+
style: styleLoading,
|
|
33
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CircularProgress.default, {
|
|
34
|
+
style: {
|
|
35
|
+
color: 'blue',
|
|
36
|
+
fontSize: 50
|
|
37
|
+
}
|
|
38
|
+
})
|
|
39
|
+
});
|
|
38
40
|
}
|
|
39
41
|
renderNotFound() {
|
|
40
|
-
return /*#__PURE__*/
|
|
41
|
-
style: styleLoading
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
42
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
43
|
+
style: styleLoading,
|
|
44
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ErrorOutline.default, {
|
|
45
|
+
style: {
|
|
46
|
+
color: '#ffc107',
|
|
47
|
+
fontSize: 50,
|
|
48
|
+
margin: 20
|
|
49
|
+
}
|
|
50
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("h3", {
|
|
51
|
+
children: "Structure Not Found"
|
|
52
|
+
})]
|
|
53
|
+
});
|
|
49
54
|
}
|
|
50
55
|
render() {
|
|
51
56
|
const {
|
|
@@ -16,6 +16,7 @@ var _ir_viewer = _interopRequireDefault(require("./forecast/ir_viewer"));
|
|
|
16
16
|
var _forecast = require("../actions/forecast");
|
|
17
17
|
var _ui = require("../actions/ui");
|
|
18
18
|
var _list_ui = require("../constants/list_ui");
|
|
19
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
20
|
/* eslint-disable react/no-unused-prop-types */
|
|
20
21
|
|
|
21
22
|
const styles = () => ({
|
|
@@ -94,23 +95,24 @@ class ForecastViewer extends _react.default.Component {
|
|
|
94
95
|
jcamps
|
|
95
96
|
} = jcampSt;
|
|
96
97
|
const comparisons = jcamps[curveIdx].others;
|
|
97
|
-
return /*#__PURE__*/
|
|
98
|
-
className: classes.root
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
98
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
99
|
+
className: classes.root,
|
|
100
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index.default, {
|
|
101
|
+
topic: topic,
|
|
102
|
+
feature: feature,
|
|
103
|
+
cLabel: cLabel,
|
|
104
|
+
xLabel: isXRD && wavelength ? `${xLabel}, WL=${wavelength.value} ${wavelength.unit}` : xLabel,
|
|
105
|
+
yLabel: yLabel,
|
|
106
|
+
comparisons: comparisons,
|
|
107
|
+
isHidden: viewer !== _list_ui.LIST_UI_VIEWER_TYPE.SPECTRUM
|
|
108
|
+
}), viewer === _list_ui.LIST_UI_VIEWER_TYPE.ANALYSIS && isNmr && /*#__PURE__*/(0, _jsxRuntime.jsx)(_nmr_viewer.default, {
|
|
109
|
+
molecule: molecule,
|
|
110
|
+
inputCb: inputCb
|
|
111
|
+
}), viewer === _list_ui.LIST_UI_VIEWER_TYPE.ANALYSIS && isIr && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ir_viewer.default, {
|
|
112
|
+
molecule: molecule,
|
|
113
|
+
inputCb: inputCb
|
|
114
|
+
})]
|
|
115
|
+
});
|
|
114
116
|
}
|
|
115
117
|
}
|
|
116
118
|
const mapStateToProps = (state, _) => (
|
|
@@ -18,6 +18,7 @@ var _curve = require("../actions/curve");
|
|
|
18
18
|
var _cyclic_voltammetry = require("../actions/cyclic_voltammetry");
|
|
19
19
|
var _list_layout = require("../constants/list_layout");
|
|
20
20
|
var _format = _interopRequireDefault(require("../helpers/format"));
|
|
21
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
22
|
/* eslint-disable react/default-props-match-prop-types,
|
|
22
23
|
react/require-default-props, react/no-unused-prop-types, react/jsx-boolean-value,
|
|
23
24
|
prefer-object-spread */
|
|
@@ -67,7 +68,7 @@ class MultiJcampsViewer extends _react.default.Component {
|
|
|
67
68
|
layoutSt,
|
|
68
69
|
integrationSt
|
|
69
70
|
} = this.props;
|
|
70
|
-
if (!entities || entities.length === 0) return /*#__PURE__*/
|
|
71
|
+
if (!entities || entities.length === 0) return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {});
|
|
71
72
|
const separateCondition = _format.default.isGCLayout(layoutSt) ? 'yUnit' : 'xUnit';
|
|
72
73
|
const seperatedSubLayouts = seperatingSubLayout(entities, separateCondition, layoutSt);
|
|
73
74
|
const {
|
|
@@ -82,43 +83,48 @@ class MultiJcampsViewer extends _react.default.Component {
|
|
|
82
83
|
integrations
|
|
83
84
|
} = integrationSt;
|
|
84
85
|
const currentIntegration = integrations[curveIdx];
|
|
85
|
-
return /*#__PURE__*/
|
|
86
|
-
className: classes.root
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
86
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
87
|
+
className: classes.root,
|
|
88
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.default, {
|
|
89
|
+
feature: feature,
|
|
90
|
+
operations: operations,
|
|
91
|
+
editorOnly: true,
|
|
92
|
+
hideThreshold: !_format.default.isNmrLayout(layoutSt)
|
|
93
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
94
|
+
className: "react-spectrum-editor",
|
|
95
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Grid.default, {
|
|
96
|
+
container: true,
|
|
97
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Grid.default, {
|
|
98
|
+
item: true,
|
|
99
|
+
xs: 9,
|
|
100
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.default, {
|
|
101
|
+
entities: entities,
|
|
102
|
+
topic: topic,
|
|
103
|
+
xLabel: feature.xUnit,
|
|
104
|
+
yLabel: feature.yUnit,
|
|
105
|
+
feature: feature
|
|
106
|
+
})
|
|
107
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Grid.default, {
|
|
108
|
+
item: true,
|
|
109
|
+
xs: 3,
|
|
110
|
+
align: "center",
|
|
111
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.default, {
|
|
112
|
+
jcampIdx: curveIdx,
|
|
113
|
+
entityFileNames: entityFileNames,
|
|
114
|
+
userManualLink: userManualLink,
|
|
115
|
+
feature: feature,
|
|
116
|
+
molSvg: molSvg,
|
|
117
|
+
exactMass: exactMass,
|
|
118
|
+
subLayoutsInfo: seperatedSubLayouts,
|
|
119
|
+
integration: currentIntegration,
|
|
120
|
+
descriptions: "",
|
|
121
|
+
canChangeDescription: () => {},
|
|
122
|
+
onDescriptionChanged: () => {}
|
|
123
|
+
})
|
|
124
|
+
})]
|
|
125
|
+
})
|
|
126
|
+
})]
|
|
127
|
+
});
|
|
122
128
|
}
|
|
123
129
|
}
|
|
124
130
|
const mapStateToProps = (state, _) => (
|