@complat/react-spectra-editor 1.0.0-rc2 → 1.0.0-rc20.patch-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/README.md +16 -0
- package/dist/__tests__/fixtures/aif_jcamp_1.js +136 -0
- package/dist/__tests__/fixtures/aif_jcamp_2.js +122 -0
- package/dist/__tests__/fixtures/backup/nmr1h_a.js +3518 -0
- package/dist/__tests__/fixtures/backup/xrd_jcamp_1.js +10705 -0
- package/dist/__tests__/fixtures/cds_jcamp.js +861 -0
- package/dist/__tests__/fixtures/compare_ir_1_jcamp.js +585 -0
- package/dist/__tests__/fixtures/compare_ir_2_jcamp.js +515 -0
- package/dist/__tests__/fixtures/compare_uv_vis_jcamp.js +640 -0
- package/dist/__tests__/fixtures/cyclic_voltammetry_1.js +778 -0
- package/dist/__tests__/fixtures/cyclic_voltammetry_2.js +758 -0
- package/dist/__tests__/fixtures/cyclic_voltammetry_3.js +759 -0
- package/dist/__tests__/fixtures/dls_acf_jcamp.js +148 -0
- package/dist/__tests__/fixtures/dls_intensity_jcamp.js +151 -0
- package/dist/__tests__/fixtures/emissions_jcamp.js +883 -0
- package/dist/__tests__/fixtures/hplc_uvvis_jcamp.js +638 -0
- package/dist/__tests__/fixtures/hplc_uvvis_jcamp_2.js +221 -0
- package/dist/__tests__/fixtures/ir_jcamp.js +148 -0
- package/dist/__tests__/fixtures/ir_result.js +46 -0
- package/dist/__tests__/fixtures/ir_svg.js +8 -0
- package/dist/__tests__/fixtures/ms_jcamp.js +64 -0
- package/dist/__tests__/fixtures/nmr13c_dept_jcamp.js +3543 -0
- package/dist/__tests__/fixtures/nmr13c_jcamp.js +1229 -0
- package/dist/__tests__/fixtures/nmr15n_jcamp.js +7177 -0
- package/dist/__tests__/fixtures/nmr19f_jcamp.js +6560 -0
- package/dist/__tests__/fixtures/nmr1h_2_jcamp.js +2005 -0
- package/dist/__tests__/fixtures/nmr1h_jcamp.js +4516 -0
- package/dist/__tests__/fixtures/nmr29si_jcamp.js +3029 -0
- package/dist/__tests__/fixtures/nmr31p_jcamp.js +3418 -0
- package/dist/__tests__/fixtures/nmr_result.js +68 -0
- package/dist/__tests__/fixtures/nmr_svg.js +8 -0
- package/dist/__tests__/fixtures/phenylalanin.js +142 -0
- package/dist/__tests__/fixtures/qDescValue.js +65 -0
- package/dist/__tests__/fixtures/raman_jcamp.js +410 -0
- package/dist/__tests__/fixtures/sec_1_jcamp.js +425 -0
- package/dist/__tests__/fixtures/sec_2_jcamp.js +407 -0
- package/dist/__tests__/fixtures/sec_3_jcamp.js +408 -0
- package/dist/__tests__/fixtures/sec_4_jcamp.js +407 -0
- package/dist/__tests__/fixtures/tga_jcamp.js +4157 -0
- package/dist/__tests__/fixtures/uv_vis_jcamp.js +249 -0
- package/dist/__tests__/fixtures/xrd_jcamp_1.js +436 -0
- package/dist/__tests__/fixtures/xrd_jcamp_2.js +955 -0
- package/dist/__tests__/fixtures/xrd_jcamp_3.js +1871 -0
- package/dist/__tests__/units/components/panel/graph_selection.test.js +72 -0
- package/dist/__tests__/units/components/panel/peaks.test.js +87 -0
- package/dist/actions/curve.js +15 -14
- package/dist/actions/cyclic_voltammetry.js +40 -60
- package/dist/actions/edit_peak.js +8 -12
- package/dist/actions/forecast.js +16 -24
- package/dist/actions/integration.js +12 -18
- package/dist/actions/jcamp.js +16 -24
- package/dist/actions/layout.js +4 -6
- package/dist/actions/manager.js +20 -30
- package/dist/actions/meta.js +4 -6
- package/dist/actions/multiplicity.js +24 -36
- package/dist/actions/scan.js +12 -18
- package/dist/actions/shift.js +8 -12
- package/dist/actions/status.js +12 -18
- package/dist/actions/submit.js +16 -24
- package/dist/actions/threshold.js +20 -30
- package/dist/actions/ui.js +25 -31
- package/dist/actions/wavelength.js +4 -6
- package/dist/app.js +25 -23
- package/dist/components/cmd_bar/01_viewer.js +24 -34
- package/dist/components/cmd_bar/02_zoom.js +18 -28
- package/dist/components/cmd_bar/03_peak.js +50 -66
- package/dist/components/cmd_bar/04_integration.js +70 -84
- package/dist/components/cmd_bar/05_multiplicity.js +42 -56
- package/dist/components/cmd_bar/06_undo_redo.js +22 -36
- package/dist/components/cmd_bar/07_pecker.js +24 -34
- package/dist/components/cmd_bar/common.js +11 -7
- package/dist/components/cmd_bar/index.js +17 -23
- package/dist/components/cmd_bar/r01_layout.js +79 -56
- package/dist/components/cmd_bar/r02_scan.js +70 -87
- package/dist/components/cmd_bar/r03_threshold.js +54 -68
- package/dist/components/cmd_bar/r04_submit.js +71 -83
- package/dist/components/cmd_bar/r05_submit_btn.js +64 -72
- package/dist/components/cmd_bar/r06_predict_btn.js +142 -152
- package/dist/components/cmd_bar/r07_wavelength_btn.js +28 -36
- package/dist/components/cmd_bar/tri_btn.js +91 -113
- package/dist/components/common/chem.js +2 -3
- package/dist/components/common/comps.js +2 -2
- package/dist/components/common/draw.js +30 -11
- package/dist/components/d3_line/index.js +154 -176
- package/dist/components/d3_line/line_focus.js +595 -739
- package/dist/components/d3_multi/index.js +153 -174
- package/dist/components/d3_multi/multi_focus.js +725 -850
- package/dist/components/d3_rect/index.js +112 -134
- package/dist/components/d3_rect/rect_focus.js +163 -208
- package/dist/components/forecast/comps.js +60 -68
- package/dist/components/forecast/ir_comps.js +49 -56
- package/dist/components/forecast/ir_viewer.js +61 -68
- package/dist/components/forecast/nmr_comps.js +62 -72
- package/dist/components/forecast/nmr_viewer.js +59 -68
- package/dist/components/forecast/section_loading.js +39 -63
- package/dist/components/forecast_viewer.js +109 -119
- package/dist/components/multi_jcamps_viewer.js +97 -113
- package/dist/components/panel/compare.js +183 -192
- package/dist/components/panel/cyclic_voltamery_data.js +149 -165
- package/dist/components/panel/graph_selection.js +143 -132
- package/dist/components/panel/index.js +112 -144
- package/dist/components/panel/info.js +125 -132
- package/dist/components/panel/multiplicity.js +215 -223
- package/dist/components/panel/multiplicity_coupling.js +108 -136
- package/dist/components/panel/multiplicity_select.js +43 -51
- package/dist/components/panel/peaks.js +130 -132
- package/dist/constants/action_type.js +23 -39
- package/dist/constants/list_layout.js +7 -4
- package/dist/constants/list_shift.js +117 -103
- package/dist/constants/list_ui.js +3 -6
- package/dist/constants/list_wavelength.js +7 -8
- package/dist/fn.js +2 -3
- package/dist/helpers/brush.js +49 -65
- package/dist/helpers/calc.js +2 -4
- package/dist/helpers/carbonFeatures.js +22 -20
- package/dist/helpers/cfg.js +49 -67
- package/dist/helpers/chem.js +450 -393
- package/dist/helpers/compass.js +92 -83
- package/dist/helpers/converter.js +52 -65
- package/dist/helpers/extractParams.js +60 -52
- package/dist/helpers/extractPeaksEdit.js +29 -25
- package/dist/helpers/focus.js +2 -6
- package/dist/helpers/format.js +416 -361
- package/dist/helpers/init.js +41 -37
- package/dist/helpers/integration.js +18 -21
- package/dist/helpers/mount.js +57 -61
- package/dist/helpers/multiplicity.js +19 -24
- package/dist/helpers/multiplicity_calc.js +39 -50
- package/dist/helpers/multiplicity_complat.js +21 -47
- package/dist/helpers/multiplicity_manual.js +49 -55
- package/dist/helpers/multiplicity_verify_basic.js +108 -111
- package/dist/helpers/shift.js +15 -23
- package/dist/helpers/zoom.js +7 -11
- package/dist/index.js +680 -630
- package/dist/layer_content.js +40 -43
- package/dist/layer_init.js +162 -184
- package/dist/layer_prism.js +38 -41
- package/dist/reducers/index.js +2 -3
- package/dist/reducers/reducer_curve.js +35 -26
- package/dist/reducers/reducer_edit_peak.js +122 -98
- package/dist/reducers/reducer_forecast.js +57 -44
- package/dist/reducers/reducer_integration.js +135 -103
- package/dist/reducers/reducer_jcamp.js +49 -44
- package/dist/reducers/reducer_layout.js +5 -6
- package/dist/reducers/reducer_manager.js +5 -6
- package/dist/reducers/reducer_meta.js +5 -6
- package/dist/reducers/reducer_multiplicity.js +100 -77
- package/dist/reducers/reducer_scan.js +17 -20
- package/dist/reducers/reducer_shift.js +115 -70
- package/dist/reducers/reducer_simulation.js +7 -8
- package/dist/reducers/reducer_status.js +5 -6
- package/dist/reducers/reducer_submit.js +12 -15
- package/dist/reducers/reducer_threshold.js +5 -6
- package/dist/reducers/reducer_ui.js +5 -6
- package/dist/reducers/reducer_voltammetry.js +156 -96
- package/dist/reducers/reducer_wavelength.js +5 -6
- package/dist/reducers/undo_redo_config.js +3 -5
- package/dist/sagas/index.js +2 -15
- package/dist/sagas/saga_edit_peak.js +54 -68
- package/dist/sagas/saga_manager.js +86 -130
- package/dist/sagas/saga_meta.js +25 -31
- package/dist/sagas/saga_multi_entities.js +40 -103
- package/dist/sagas/saga_multiplicity.js +336 -406
- package/dist/sagas/saga_ui.js +296 -475
- package/dist/setupTests.js +8 -0
- package/dist/third_party/jAnalyzer.js +66 -67
- package/dist/third_party/peakInterval.js +34 -34
- package/package.json +14 -14
- package/dist/components/cmd_bar/03_peak_bk.js +0 -139
- package/dist/components/cmd_bar/04_integration_bk.js +0 -180
- package/dist/components/cmd_bar/05_multiplicity_bk.js +0 -131
- package/dist/components/cmd_bar/r01_layout_bk.js +0 -186
- package/dist/components/cmd_bar/r06_predict_btn_bk.js +0 -220
- package/dist/components/d3_line/line_focus_bk.js +0 -825
- package/dist/components/d3_multi/index_bk.js +0 -210
- package/dist/components/d3_multi/multi_focus_bk.js +0 -533
- package/dist/components/panel/compare_bk.js +0 -256
- package/dist/components/panel/cyclic_voltamery_data_bk.js +0 -292
- package/dist/components/panel/index_bk.js +0 -178
- package/dist/components/panel/info_bk.js +0 -235
- package/dist/components/panel/multiplicity_bk.js +0 -280
- package/dist/helpers/carbonFeatures_bk.js +0 -45
- package/dist/helpers/cfg_bk.js +0 -80
- package/dist/helpers/chem_bk.js +0 -787
- package/dist/helpers/compass_bk.js +0 -149
- package/dist/helpers/converter_bk.js +0 -96
- package/dist/helpers/extractPeaksEdit_bk.js +0 -53
- package/dist/helpers/format_bk.js +0 -497
- package/dist/index_bk.js +0 -640
- package/dist/layer_content_bk.js +0 -105
- package/dist/layer_init_bk.js +0 -235
- package/dist/layer_prism_bk.js +0 -133
- package/dist/reducers/reducer_edit_peak_bk.js +0 -108
- package/dist/reducers/reducer_integration_bk.js +0 -134
- package/dist/reducers/reducer_jcamp_bk.js +0 -71
- package/dist/reducers/reducer_multiplicity_bk.js +0 -126
- package/dist/reducers/reducer_shift_bk.js +0 -88
- package/dist/reducers/reducer_voltammetry_bk.js +0 -287
- package/dist/sagas/saga_edit_peak_bk.js +0 -73
- package/dist/sagas/saga_multi_entities_bk.js +0 -106
- package/dist/sagas/saga_multiplicity_bk.js +0 -351
- package/dist/sagas/saga_ui_bk.js +0 -453
|
@@ -26,84 +26,78 @@ var _edit_peak = require("../../actions/edit_peak");
|
|
|
26
26
|
var _format = _interopRequireDefault(require("../../helpers/format"));
|
|
27
27
|
/* eslint-disable react/function-component-definition, no-unused-vars */
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
|
|
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
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
backgroundColor: theme.palette.background.default
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
rmBtn: {
|
|
78
|
-
color: 'red',
|
|
79
|
-
'&:hover': {
|
|
80
|
-
borderRadius: 12,
|
|
81
|
-
backgroundColor: 'red',
|
|
82
|
-
color: 'white'
|
|
83
|
-
}
|
|
29
|
+
const styles = theme => ({
|
|
30
|
+
chip: {
|
|
31
|
+
margin: '1px 0 1px 0'
|
|
32
|
+
},
|
|
33
|
+
panel: {
|
|
34
|
+
backgroundColor: '#eee',
|
|
35
|
+
display: 'table-row'
|
|
36
|
+
},
|
|
37
|
+
panelSummary: {
|
|
38
|
+
backgroundColor: '#eee',
|
|
39
|
+
height: 32
|
|
40
|
+
},
|
|
41
|
+
txtBadge: {},
|
|
42
|
+
panelDetail: {
|
|
43
|
+
backgroundColor: '#fff',
|
|
44
|
+
maxHeight: 'calc(90vh - 220px)',
|
|
45
|
+
// ROI
|
|
46
|
+
overflow: 'auto'
|
|
47
|
+
},
|
|
48
|
+
table: {
|
|
49
|
+
width: '100%'
|
|
50
|
+
},
|
|
51
|
+
tRowHeadPos: {
|
|
52
|
+
backgroundColor: '#999',
|
|
53
|
+
height: 32
|
|
54
|
+
},
|
|
55
|
+
tRowHeadNeg: {
|
|
56
|
+
backgroundColor: '#999',
|
|
57
|
+
height: 32
|
|
58
|
+
},
|
|
59
|
+
tTxtHead: {
|
|
60
|
+
color: 'white',
|
|
61
|
+
padding: '5px 5px 5px 5px'
|
|
62
|
+
},
|
|
63
|
+
tTxtHeadXY: {
|
|
64
|
+
color: 'white',
|
|
65
|
+
padding: '4px 0 4px 90px'
|
|
66
|
+
},
|
|
67
|
+
tTxt: {
|
|
68
|
+
padding: '4px 0 4px 0'
|
|
69
|
+
},
|
|
70
|
+
tRow: {
|
|
71
|
+
height: 28,
|
|
72
|
+
'&:nth-of-type(even)': {
|
|
73
|
+
backgroundColor: theme.palette.background.default
|
|
84
74
|
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
75
|
+
},
|
|
76
|
+
rmBtn: {
|
|
77
|
+
color: 'red',
|
|
78
|
+
'&:hover': {
|
|
79
|
+
borderRadius: 12,
|
|
80
|
+
backgroundColor: 'red',
|
|
81
|
+
color: 'white'
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
const createData = (classes, idx, x, y, cb, digits) => ({
|
|
86
|
+
idx: idx + 1,
|
|
87
|
+
x: x.toFixed(digits),
|
|
88
|
+
y,
|
|
89
|
+
rmBtn: /*#__PURE__*/_react.default.createElement(_HighlightOff.default, {
|
|
90
|
+
onClick: cb,
|
|
91
|
+
className: classes.rmBtn
|
|
92
|
+
})
|
|
93
|
+
});
|
|
94
|
+
const peakList = (peaks, digits, cbAct, classes, isPos) => {
|
|
95
|
+
const rows = peaks.map((pp, idx) => {
|
|
96
|
+
const onDelete = () => cbAct(pp);
|
|
103
97
|
return createData(classes, idx, pp.x, pp.y, onDelete, digits);
|
|
104
98
|
});
|
|
105
|
-
|
|
106
|
-
|
|
99
|
+
const rowKlass = isPos ? classes.tRowHeadPos : classes.tRowHeadNeg;
|
|
100
|
+
const headTxt = isPos ? 'P+' : 'P-';
|
|
107
101
|
return /*#__PURE__*/_react.default.createElement(_Table.default, {
|
|
108
102
|
className: classes.table
|
|
109
103
|
}, /*#__PURE__*/_react.default.createElement(_TableHead.default, null, /*#__PURE__*/_react.default.createElement(_TableRow.default, {
|
|
@@ -120,54 +114,64 @@ var peakList = function peakList(peaks, digits, cbAct, classes, isPos) {
|
|
|
120
114
|
}, "Y"), /*#__PURE__*/_react.default.createElement(_TableCell.default, {
|
|
121
115
|
align: "right",
|
|
122
116
|
className: (0, _classnames.default)(classes.tTxtHead, 'txt-sv-panel-head')
|
|
123
|
-
}, "-"))), /*#__PURE__*/_react.default.createElement(_TableBody.default, null, rows.map(
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
}, row.rmBtn));
|
|
141
|
-
})));
|
|
117
|
+
}, "-"))), /*#__PURE__*/_react.default.createElement(_TableBody.default, null, rows.map(row => /*#__PURE__*/_react.default.createElement(_TableRow.default, {
|
|
118
|
+
key: row.idx,
|
|
119
|
+
className: classes.tRow,
|
|
120
|
+
hover: true
|
|
121
|
+
}, /*#__PURE__*/_react.default.createElement(_TableCell.default, {
|
|
122
|
+
align: "right",
|
|
123
|
+
className: (0, _classnames.default)(classes.tTxt, 'txt-sv-panel-txt')
|
|
124
|
+
}, row.idx), /*#__PURE__*/_react.default.createElement(_TableCell.default, {
|
|
125
|
+
align: "right",
|
|
126
|
+
className: (0, _classnames.default)(classes.tTxt, 'txt-sv-panel-txt')
|
|
127
|
+
}, row.x), /*#__PURE__*/_react.default.createElement(_TableCell.default, {
|
|
128
|
+
align: "right",
|
|
129
|
+
className: (0, _classnames.default)(classes.tTxt, 'txt-sv-panel-txt')
|
|
130
|
+
}, row.y.toExponential(2)), /*#__PURE__*/_react.default.createElement(_TableCell.default, {
|
|
131
|
+
align: "right",
|
|
132
|
+
className: (0, _classnames.default)(classes.tTxt, 'txt-sv-panel-txt')
|
|
133
|
+
}, row.rmBtn)))));
|
|
142
134
|
};
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
135
|
+
const PeakPanel = _ref => {
|
|
136
|
+
let {
|
|
137
|
+
editPeakSt,
|
|
138
|
+
layoutSt,
|
|
139
|
+
classes,
|
|
140
|
+
expand,
|
|
141
|
+
onExapnd,
|
|
142
|
+
rmFromPosListAct,
|
|
143
|
+
rmFromNegListAct,
|
|
144
|
+
curveSt
|
|
145
|
+
} = _ref;
|
|
146
|
+
const {
|
|
147
|
+
curveIdx,
|
|
148
|
+
listCurves
|
|
149
|
+
} = curveSt;
|
|
150
|
+
const {
|
|
151
|
+
peaks
|
|
152
|
+
} = editPeakSt;
|
|
155
153
|
if (curveIdx >= peaks.length) {
|
|
156
154
|
return null;
|
|
157
155
|
}
|
|
158
|
-
|
|
156
|
+
const selectedEditPeaks = peaks[curveIdx];
|
|
159
157
|
if (!selectedEditPeaks) {
|
|
160
158
|
return null;
|
|
161
159
|
}
|
|
162
|
-
|
|
163
|
-
|
|
160
|
+
const {
|
|
161
|
+
pos,
|
|
162
|
+
neg
|
|
163
|
+
} = selectedEditPeaks;
|
|
164
|
+
const selectedCurve = listCurves[curveIdx];
|
|
164
165
|
if (!selectedCurve) {
|
|
165
166
|
return null;
|
|
166
167
|
}
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
168
|
+
const {
|
|
169
|
+
feature
|
|
170
|
+
} = selectedCurve;
|
|
171
|
+
const currentPeakOfCurve = (0, _chem.Convert2Peak)(feature);
|
|
172
|
+
const filteredArray = currentPeakOfCurve.filter(element => neg.includes(element));
|
|
173
|
+
const peaksData = [].concat(filteredArray).concat(pos);
|
|
174
|
+
const digits = _format.default.isEmWaveLayout(layoutSt) ? 0 : 4;
|
|
171
175
|
return /*#__PURE__*/_react.default.createElement(_core.Accordion, {
|
|
172
176
|
"data-testid": "PeaksPanelInfo",
|
|
173
177
|
expanded: expand,
|
|
@@ -187,22 +191,17 @@ var PeakPanel = function PeakPanel(_ref) {
|
|
|
187
191
|
className: (0, _classnames.default)(classes.panelDetail)
|
|
188
192
|
}, peakList(peaksData, digits, rmFromPosListAct, classes, true)));
|
|
189
193
|
};
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
return (0, _redux.bindActionCreators)({
|
|
202
|
-
rmFromPosListAct: _edit_peak.rmFromPosList,
|
|
203
|
-
rmFromNegListAct: _edit_peak.rmFromNegList
|
|
204
|
-
}, dispatch);
|
|
205
|
-
};
|
|
194
|
+
const mapStateToProps = (state, props) => (
|
|
195
|
+
// eslint-disable-line
|
|
196
|
+
{
|
|
197
|
+
editPeakSt: state.editPeak.present,
|
|
198
|
+
layoutSt: state.layout,
|
|
199
|
+
curveSt: state.curve
|
|
200
|
+
});
|
|
201
|
+
const mapDispatchToProps = dispatch => (0, _redux.bindActionCreators)({
|
|
202
|
+
rmFromPosListAct: _edit_peak.rmFromPosList,
|
|
203
|
+
rmFromNegListAct: _edit_peak.rmFromNegList
|
|
204
|
+
}, dispatch);
|
|
206
205
|
PeakPanel.propTypes = {
|
|
207
206
|
classes: _propTypes.default.object.isRequired,
|
|
208
207
|
expand: _propTypes.default.bool.isRequired,
|
|
@@ -213,7 +212,6 @@ PeakPanel.propTypes = {
|
|
|
213
212
|
rmFromNegListAct: _propTypes.default.func.isRequired,
|
|
214
213
|
curveSt: _propTypes.default.object.isRequired
|
|
215
214
|
};
|
|
216
|
-
var _default = (0, _reactRedux.connect)(
|
|
215
|
+
var _default = exports.default = (0, _reactRedux.connect)(
|
|
217
216
|
// eslint-disable-line
|
|
218
|
-
mapStateToProps, mapDispatchToProps)((0, _styles.withStyles)(styles)(PeakPanel)); // eslint-disable-line
|
|
219
|
-
exports.default = _default;
|
|
217
|
+
mapStateToProps, mapDispatchToProps)((0, _styles.withStyles)(styles)(PeakPanel)); // eslint-disable-line
|
|
@@ -4,29 +4,26 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.XRD = exports.UI = exports.THRESHOLD = exports.SUBMIT = exports.STATUS = exports.SIMULATION = exports.SHIFT = exports.SCAN = exports.MULTIPLICITY = exports.META = exports.MANAGER = exports.LAYOUT = exports.JCAMP = exports.INTEGRATION = exports.FORECAST = exports.EDITPEAK = exports.CYCLIC_VOLTA_METRY = exports.CURVE = void 0;
|
|
7
|
-
|
|
7
|
+
const THRESHOLD = exports.THRESHOLD = {
|
|
8
8
|
UPDATE_VALUE: 'THRESHOLD_UPDATE_VALUE',
|
|
9
9
|
RESET_VALUE: 'THRESHOLD_RESET_VALUE',
|
|
10
10
|
TOGGLE_ISEDIT: 'THRESHOLD_TOGGLE_ISEDIT',
|
|
11
11
|
UPDATE_UPPER_VALUE: 'THRESHOLD_UPDATE_UPPER_VALUE',
|
|
12
12
|
UPDATE_LOWER_VALUE: 'THRESHOLD_UPDATE_LOWER_VALUE'
|
|
13
13
|
};
|
|
14
|
-
exports.
|
|
15
|
-
var EDITPEAK = {
|
|
14
|
+
const EDITPEAK = exports.EDITPEAK = {
|
|
16
15
|
ADD_POSITIVE: 'ADD_TO_POSITIVE_EDITPEAK_LIST',
|
|
17
16
|
ADD_NEGATIVE: 'ADD_TO_NEGATIVE_EDITPEAK_LIST',
|
|
18
17
|
RM_NEGATIVE: 'RM_FROM_NEGATIVE_EDITPEAK_LIST',
|
|
19
18
|
RM_POSITIVE: 'RM_FROM_POSITIVE_EDITPEAK_LIST',
|
|
20
19
|
SHIFT: 'EDITPEAK_SHIFT'
|
|
21
20
|
};
|
|
22
|
-
exports.
|
|
23
|
-
var STATUS = {
|
|
21
|
+
const STATUS = exports.STATUS = {
|
|
24
22
|
TOGGLEBTNSUBMIT: 'TOGGLE_BTN_SUBMIT',
|
|
25
23
|
TOGGLEBTNALL: 'TOGGLE_BTN_ALL',
|
|
26
24
|
ENABLEBTNALL: 'ENABLE_BTN_ALL'
|
|
27
25
|
};
|
|
28
|
-
exports.
|
|
29
|
-
var MANAGER = {
|
|
26
|
+
const MANAGER = exports.MANAGER = {
|
|
30
27
|
RESETALL: 'RESET_ALL',
|
|
31
28
|
RESETSHIFT: 'RESET_SHIFT',
|
|
32
29
|
RESET_INIT_COMMON: 'RESET_INIT_COMMON',
|
|
@@ -34,24 +31,20 @@ var MANAGER = {
|
|
|
34
31
|
RESET_INIT_MS: 'RESET_INIT_MS',
|
|
35
32
|
RESET_INIT_COMMON_WITH_INTERGATION: 'RESET_INIT_COMMON_WITH_INTERGATION'
|
|
36
33
|
};
|
|
37
|
-
exports.
|
|
38
|
-
var LAYOUT = {
|
|
34
|
+
const LAYOUT = exports.LAYOUT = {
|
|
39
35
|
UPDATE: 'UPDATE_LAYOUT'
|
|
40
36
|
};
|
|
41
|
-
exports.
|
|
42
|
-
var SHIFT = {
|
|
37
|
+
const SHIFT = exports.SHIFT = {
|
|
43
38
|
SET_REF: 'SHIFT_SET_REF',
|
|
44
39
|
SET_PEAK: 'SHIFT_SET_PEAK',
|
|
45
40
|
RM_PEAK: 'SHIFT_RM_PEAK'
|
|
46
41
|
};
|
|
47
|
-
exports.
|
|
48
|
-
var SCAN = {
|
|
42
|
+
const SCAN = exports.SCAN = {
|
|
49
43
|
SET_TARGET: 'SCAN_SET_TARGET',
|
|
50
44
|
RESET_TARGET: 'SCAN_RESET_TARGET',
|
|
51
45
|
TOGGLE_ISAUTO: 'SCAN_TOGGLE_ISAUTO'
|
|
52
46
|
};
|
|
53
|
-
exports.
|
|
54
|
-
var UI = {
|
|
47
|
+
const UI = exports.UI = {
|
|
55
48
|
CLICK_TARGET: 'UI_CLICK_TARGET',
|
|
56
49
|
VIEWER: {
|
|
57
50
|
SET_TYPE: 'UI_VIEWER_SET_TYPE'
|
|
@@ -69,34 +62,30 @@ var UI = {
|
|
|
69
62
|
SCROLL: 'UI_WHEEL_SCROLL'
|
|
70
63
|
}
|
|
71
64
|
};
|
|
72
|
-
exports.
|
|
73
|
-
var FORECAST = {
|
|
65
|
+
const FORECAST = exports.FORECAST = {
|
|
74
66
|
INIT_STATUS: 'FORECAST_INIT_STATUS',
|
|
75
67
|
SET_IR_STATUS: 'FORECAST_SET_IR_STATUS',
|
|
76
68
|
SET_NMR_STATUS: 'FORECAST_SET_NMR_STATUS',
|
|
77
69
|
CLEAR_STATUS: 'FORECAST_CLEAR_STATUS'
|
|
78
70
|
};
|
|
79
|
-
exports.
|
|
80
|
-
var SUBMIT = {
|
|
71
|
+
const SUBMIT = exports.SUBMIT = {
|
|
81
72
|
TOGGLE_IS_ASCEND: 'SUBMIT_TOGGLE_IS_ASCEND',
|
|
82
73
|
TOGGLE_IS_INTENSITY: 'SUBMIT_TOGGLE_IS_INTENSITY',
|
|
83
74
|
UPDATE_OPERATION: 'SUBMIT_UPDATE_OPERATION',
|
|
84
75
|
UPDATE_DECIMAL: 'SUBMIT_UPDATE_DECIMAL'
|
|
85
76
|
};
|
|
86
|
-
exports.
|
|
87
|
-
var INTEGRATION = {
|
|
77
|
+
const INTEGRATION = exports.INTEGRATION = {
|
|
88
78
|
RM_ONE: 'INTEGRATION_RM_ONE',
|
|
89
79
|
SET_REF: 'INTEGRATION_SET_REF',
|
|
90
80
|
SET_FKR: 'INTEGRATION_SET_FKR',
|
|
91
81
|
RESET_ALL_RDC: 'INTEGRATION_RESET_ALL_RDC',
|
|
92
|
-
CLEAR_ALL: 'INTEGRATION_CLEAR_ALL'
|
|
82
|
+
CLEAR_ALL: 'INTEGRATION_CLEAR_ALL',
|
|
83
|
+
SWEEP: 'INTEGRATION_SWEEP'
|
|
93
84
|
};
|
|
94
|
-
exports.
|
|
95
|
-
var SIMULATION = {
|
|
85
|
+
const SIMULATION = exports.SIMULATION = {
|
|
96
86
|
RESET_ALL_RDC: 'SIMULATION_RESET_ALL_RDC'
|
|
97
87
|
};
|
|
98
|
-
exports.
|
|
99
|
-
var MULTIPLICITY = {
|
|
88
|
+
const MULTIPLICITY = exports.MULTIPLICITY = {
|
|
100
89
|
ONE_CLICK: 'MULTIPLICITY_ONE_CLICK',
|
|
101
90
|
ONE_CLICK_BY_UI: 'MULTIPLICITY_ONE_CLICK_BY_UI',
|
|
102
91
|
PEAK_RM_BY_PANEL: 'MULTIPLICITY_PEAK_RM_BY_PANEL',
|
|
@@ -113,24 +102,20 @@ var MULTIPLICITY = {
|
|
|
113
102
|
UPDATE_J: 'MULTIPLICITY_UPDATE_J',
|
|
114
103
|
CLEAR_ALL: 'MULTIPLICITY_CLEAR_ALL'
|
|
115
104
|
};
|
|
116
|
-
exports.
|
|
117
|
-
var META = {
|
|
105
|
+
const META = exports.META = {
|
|
118
106
|
UPDATE_PEAKS: 'META_UPDATE_PEAKS',
|
|
119
107
|
UPDATE_PEAKS_RDC: 'META_UPDATE_PEAKS_RDC'
|
|
120
108
|
};
|
|
121
|
-
exports.
|
|
122
|
-
var JCAMP = {
|
|
109
|
+
const JCAMP = exports.JCAMP = {
|
|
123
110
|
ADD_OTHERS: 'JCAMP_ADD_OTHERS',
|
|
124
111
|
RM_OTHERS_ONE: 'JCAMP_RM_OTHERS_ONE',
|
|
125
112
|
TOGGLE_SHOW: 'JCAMP_TOGGLE_SHOW',
|
|
126
113
|
CLEAR_ALL: 'JCAMP_CLEAR_ALL'
|
|
127
114
|
};
|
|
128
|
-
exports.
|
|
129
|
-
var XRD = {
|
|
115
|
+
const XRD = exports.XRD = {
|
|
130
116
|
UPDATE_WAVE_LENGTH: 'UPDATE_WAVE_LENGTH'
|
|
131
117
|
};
|
|
132
|
-
exports.
|
|
133
|
-
var CYCLIC_VOLTA_METRY = {
|
|
118
|
+
const CYCLIC_VOLTA_METRY = exports.CYCLIC_VOLTA_METRY = {
|
|
134
119
|
ADD_PAIR_PEAKS: 'ADD_PAIR_PEAKS',
|
|
135
120
|
REMOVE_PAIR_PEAKS: 'REMOVE_PAIR_PEAKS',
|
|
136
121
|
ADD_MAX_PEAK: 'ADD_MAX_PEAK',
|
|
@@ -144,9 +129,8 @@ var CYCLIC_VOLTA_METRY = {
|
|
|
144
129
|
RESETALL: 'RESETALL_VOLTA_METRY',
|
|
145
130
|
SET_REF: 'VOLTA_METRY_SET_REF'
|
|
146
131
|
};
|
|
147
|
-
exports.
|
|
148
|
-
var CURVE = {
|
|
132
|
+
const CURVE = exports.CURVE = {
|
|
149
133
|
SELECT_WORKING_CURVE: 'SELECT_WORKING_CURVE',
|
|
150
|
-
SET_ALL_CURVES: 'SET_ALL_CURVES'
|
|
151
|
-
|
|
152
|
-
|
|
134
|
+
SET_ALL_CURVES: 'SET_ALL_CURVES',
|
|
135
|
+
SET_SHOULD_SHOW_ALL_CURVES: 'SET_SHOULD_SHOW_ALL_CURVES'
|
|
136
|
+
};
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.LIST_LAYOUT = void 0;
|
|
7
|
-
|
|
7
|
+
const LIST_LAYOUT = exports.LIST_LAYOUT = {
|
|
8
8
|
PLAIN: 'PLAIN',
|
|
9
9
|
IR: 'IR',
|
|
10
10
|
RAMAN: 'RAMAN',
|
|
@@ -21,6 +21,9 @@ var LIST_LAYOUT = {
|
|
|
21
21
|
HPLC_UVVIS: 'HPLC UV/VIS',
|
|
22
22
|
CYCLIC_VOLTAMMETRY: 'CYCLIC VOLTAMMETRY',
|
|
23
23
|
CDS: 'CIRCULAR DICHROISM SPECTROSCOPY',
|
|
24
|
-
SEC: 'SIZE EXCLUSION CHROMATOGRAPHY'
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
SEC: 'SIZE EXCLUSION CHROMATOGRAPHY',
|
|
25
|
+
AIF: 'AIF',
|
|
26
|
+
EMISSIONS: 'Emissions',
|
|
27
|
+
DLS_ACF: 'DLS ACF',
|
|
28
|
+
DLS_INTENSITY: 'DLS intensity'
|
|
29
|
+
};
|