@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.
Files changed (202) hide show
  1. package/README.md +16 -0
  2. package/dist/__tests__/fixtures/aif_jcamp_1.js +136 -0
  3. package/dist/__tests__/fixtures/aif_jcamp_2.js +122 -0
  4. package/dist/__tests__/fixtures/backup/nmr1h_a.js +3518 -0
  5. package/dist/__tests__/fixtures/backup/xrd_jcamp_1.js +10705 -0
  6. package/dist/__tests__/fixtures/cds_jcamp.js +861 -0
  7. package/dist/__tests__/fixtures/compare_ir_1_jcamp.js +585 -0
  8. package/dist/__tests__/fixtures/compare_ir_2_jcamp.js +515 -0
  9. package/dist/__tests__/fixtures/compare_uv_vis_jcamp.js +640 -0
  10. package/dist/__tests__/fixtures/cyclic_voltammetry_1.js +778 -0
  11. package/dist/__tests__/fixtures/cyclic_voltammetry_2.js +758 -0
  12. package/dist/__tests__/fixtures/cyclic_voltammetry_3.js +759 -0
  13. package/dist/__tests__/fixtures/dls_acf_jcamp.js +148 -0
  14. package/dist/__tests__/fixtures/dls_intensity_jcamp.js +151 -0
  15. package/dist/__tests__/fixtures/emissions_jcamp.js +883 -0
  16. package/dist/__tests__/fixtures/hplc_uvvis_jcamp.js +638 -0
  17. package/dist/__tests__/fixtures/hplc_uvvis_jcamp_2.js +221 -0
  18. package/dist/__tests__/fixtures/ir_jcamp.js +148 -0
  19. package/dist/__tests__/fixtures/ir_result.js +46 -0
  20. package/dist/__tests__/fixtures/ir_svg.js +8 -0
  21. package/dist/__tests__/fixtures/ms_jcamp.js +64 -0
  22. package/dist/__tests__/fixtures/nmr13c_dept_jcamp.js +3543 -0
  23. package/dist/__tests__/fixtures/nmr13c_jcamp.js +1229 -0
  24. package/dist/__tests__/fixtures/nmr15n_jcamp.js +7177 -0
  25. package/dist/__tests__/fixtures/nmr19f_jcamp.js +6560 -0
  26. package/dist/__tests__/fixtures/nmr1h_2_jcamp.js +2005 -0
  27. package/dist/__tests__/fixtures/nmr1h_jcamp.js +4516 -0
  28. package/dist/__tests__/fixtures/nmr29si_jcamp.js +3029 -0
  29. package/dist/__tests__/fixtures/nmr31p_jcamp.js +3418 -0
  30. package/dist/__tests__/fixtures/nmr_result.js +68 -0
  31. package/dist/__tests__/fixtures/nmr_svg.js +8 -0
  32. package/dist/__tests__/fixtures/phenylalanin.js +142 -0
  33. package/dist/__tests__/fixtures/qDescValue.js +65 -0
  34. package/dist/__tests__/fixtures/raman_jcamp.js +410 -0
  35. package/dist/__tests__/fixtures/sec_1_jcamp.js +425 -0
  36. package/dist/__tests__/fixtures/sec_2_jcamp.js +407 -0
  37. package/dist/__tests__/fixtures/sec_3_jcamp.js +408 -0
  38. package/dist/__tests__/fixtures/sec_4_jcamp.js +407 -0
  39. package/dist/__tests__/fixtures/tga_jcamp.js +4157 -0
  40. package/dist/__tests__/fixtures/uv_vis_jcamp.js +249 -0
  41. package/dist/__tests__/fixtures/xrd_jcamp_1.js +436 -0
  42. package/dist/__tests__/fixtures/xrd_jcamp_2.js +955 -0
  43. package/dist/__tests__/fixtures/xrd_jcamp_3.js +1871 -0
  44. package/dist/__tests__/units/components/panel/graph_selection.test.js +72 -0
  45. package/dist/__tests__/units/components/panel/peaks.test.js +87 -0
  46. package/dist/actions/curve.js +15 -14
  47. package/dist/actions/cyclic_voltammetry.js +40 -60
  48. package/dist/actions/edit_peak.js +8 -12
  49. package/dist/actions/forecast.js +16 -24
  50. package/dist/actions/integration.js +12 -18
  51. package/dist/actions/jcamp.js +16 -24
  52. package/dist/actions/layout.js +4 -6
  53. package/dist/actions/manager.js +20 -30
  54. package/dist/actions/meta.js +4 -6
  55. package/dist/actions/multiplicity.js +24 -36
  56. package/dist/actions/scan.js +12 -18
  57. package/dist/actions/shift.js +8 -12
  58. package/dist/actions/status.js +12 -18
  59. package/dist/actions/submit.js +16 -24
  60. package/dist/actions/threshold.js +20 -30
  61. package/dist/actions/ui.js +25 -31
  62. package/dist/actions/wavelength.js +4 -6
  63. package/dist/app.js +25 -23
  64. package/dist/components/cmd_bar/01_viewer.js +24 -34
  65. package/dist/components/cmd_bar/02_zoom.js +18 -28
  66. package/dist/components/cmd_bar/03_peak.js +50 -66
  67. package/dist/components/cmd_bar/04_integration.js +70 -84
  68. package/dist/components/cmd_bar/05_multiplicity.js +42 -56
  69. package/dist/components/cmd_bar/06_undo_redo.js +22 -36
  70. package/dist/components/cmd_bar/07_pecker.js +24 -34
  71. package/dist/components/cmd_bar/common.js +11 -7
  72. package/dist/components/cmd_bar/index.js +17 -23
  73. package/dist/components/cmd_bar/r01_layout.js +79 -56
  74. package/dist/components/cmd_bar/r02_scan.js +70 -87
  75. package/dist/components/cmd_bar/r03_threshold.js +54 -68
  76. package/dist/components/cmd_bar/r04_submit.js +71 -83
  77. package/dist/components/cmd_bar/r05_submit_btn.js +64 -72
  78. package/dist/components/cmd_bar/r06_predict_btn.js +142 -152
  79. package/dist/components/cmd_bar/r07_wavelength_btn.js +28 -36
  80. package/dist/components/cmd_bar/tri_btn.js +91 -113
  81. package/dist/components/common/chem.js +2 -3
  82. package/dist/components/common/comps.js +2 -2
  83. package/dist/components/common/draw.js +30 -11
  84. package/dist/components/d3_line/index.js +154 -176
  85. package/dist/components/d3_line/line_focus.js +595 -739
  86. package/dist/components/d3_multi/index.js +153 -174
  87. package/dist/components/d3_multi/multi_focus.js +725 -850
  88. package/dist/components/d3_rect/index.js +112 -134
  89. package/dist/components/d3_rect/rect_focus.js +163 -208
  90. package/dist/components/forecast/comps.js +60 -68
  91. package/dist/components/forecast/ir_comps.js +49 -56
  92. package/dist/components/forecast/ir_viewer.js +61 -68
  93. package/dist/components/forecast/nmr_comps.js +62 -72
  94. package/dist/components/forecast/nmr_viewer.js +59 -68
  95. package/dist/components/forecast/section_loading.js +39 -63
  96. package/dist/components/forecast_viewer.js +109 -119
  97. package/dist/components/multi_jcamps_viewer.js +97 -113
  98. package/dist/components/panel/compare.js +183 -192
  99. package/dist/components/panel/cyclic_voltamery_data.js +149 -165
  100. package/dist/components/panel/graph_selection.js +143 -132
  101. package/dist/components/panel/index.js +112 -144
  102. package/dist/components/panel/info.js +125 -132
  103. package/dist/components/panel/multiplicity.js +215 -223
  104. package/dist/components/panel/multiplicity_coupling.js +108 -136
  105. package/dist/components/panel/multiplicity_select.js +43 -51
  106. package/dist/components/panel/peaks.js +130 -132
  107. package/dist/constants/action_type.js +23 -39
  108. package/dist/constants/list_layout.js +7 -4
  109. package/dist/constants/list_shift.js +117 -103
  110. package/dist/constants/list_ui.js +3 -6
  111. package/dist/constants/list_wavelength.js +7 -8
  112. package/dist/fn.js +2 -3
  113. package/dist/helpers/brush.js +49 -65
  114. package/dist/helpers/calc.js +2 -4
  115. package/dist/helpers/carbonFeatures.js +22 -20
  116. package/dist/helpers/cfg.js +49 -67
  117. package/dist/helpers/chem.js +450 -393
  118. package/dist/helpers/compass.js +92 -83
  119. package/dist/helpers/converter.js +52 -65
  120. package/dist/helpers/extractParams.js +60 -52
  121. package/dist/helpers/extractPeaksEdit.js +29 -25
  122. package/dist/helpers/focus.js +2 -6
  123. package/dist/helpers/format.js +416 -361
  124. package/dist/helpers/init.js +41 -37
  125. package/dist/helpers/integration.js +18 -21
  126. package/dist/helpers/mount.js +57 -61
  127. package/dist/helpers/multiplicity.js +19 -24
  128. package/dist/helpers/multiplicity_calc.js +39 -50
  129. package/dist/helpers/multiplicity_complat.js +21 -47
  130. package/dist/helpers/multiplicity_manual.js +49 -55
  131. package/dist/helpers/multiplicity_verify_basic.js +108 -111
  132. package/dist/helpers/shift.js +15 -23
  133. package/dist/helpers/zoom.js +7 -11
  134. package/dist/index.js +680 -630
  135. package/dist/layer_content.js +40 -43
  136. package/dist/layer_init.js +162 -184
  137. package/dist/layer_prism.js +38 -41
  138. package/dist/reducers/index.js +2 -3
  139. package/dist/reducers/reducer_curve.js +35 -26
  140. package/dist/reducers/reducer_edit_peak.js +122 -98
  141. package/dist/reducers/reducer_forecast.js +57 -44
  142. package/dist/reducers/reducer_integration.js +135 -103
  143. package/dist/reducers/reducer_jcamp.js +49 -44
  144. package/dist/reducers/reducer_layout.js +5 -6
  145. package/dist/reducers/reducer_manager.js +5 -6
  146. package/dist/reducers/reducer_meta.js +5 -6
  147. package/dist/reducers/reducer_multiplicity.js +100 -77
  148. package/dist/reducers/reducer_scan.js +17 -20
  149. package/dist/reducers/reducer_shift.js +115 -70
  150. package/dist/reducers/reducer_simulation.js +7 -8
  151. package/dist/reducers/reducer_status.js +5 -6
  152. package/dist/reducers/reducer_submit.js +12 -15
  153. package/dist/reducers/reducer_threshold.js +5 -6
  154. package/dist/reducers/reducer_ui.js +5 -6
  155. package/dist/reducers/reducer_voltammetry.js +156 -96
  156. package/dist/reducers/reducer_wavelength.js +5 -6
  157. package/dist/reducers/undo_redo_config.js +3 -5
  158. package/dist/sagas/index.js +2 -15
  159. package/dist/sagas/saga_edit_peak.js +54 -68
  160. package/dist/sagas/saga_manager.js +86 -130
  161. package/dist/sagas/saga_meta.js +25 -31
  162. package/dist/sagas/saga_multi_entities.js +40 -103
  163. package/dist/sagas/saga_multiplicity.js +336 -406
  164. package/dist/sagas/saga_ui.js +296 -475
  165. package/dist/setupTests.js +8 -0
  166. package/dist/third_party/jAnalyzer.js +66 -67
  167. package/dist/third_party/peakInterval.js +34 -34
  168. package/package.json +14 -14
  169. package/dist/components/cmd_bar/03_peak_bk.js +0 -139
  170. package/dist/components/cmd_bar/04_integration_bk.js +0 -180
  171. package/dist/components/cmd_bar/05_multiplicity_bk.js +0 -131
  172. package/dist/components/cmd_bar/r01_layout_bk.js +0 -186
  173. package/dist/components/cmd_bar/r06_predict_btn_bk.js +0 -220
  174. package/dist/components/d3_line/line_focus_bk.js +0 -825
  175. package/dist/components/d3_multi/index_bk.js +0 -210
  176. package/dist/components/d3_multi/multi_focus_bk.js +0 -533
  177. package/dist/components/panel/compare_bk.js +0 -256
  178. package/dist/components/panel/cyclic_voltamery_data_bk.js +0 -292
  179. package/dist/components/panel/index_bk.js +0 -178
  180. package/dist/components/panel/info_bk.js +0 -235
  181. package/dist/components/panel/multiplicity_bk.js +0 -280
  182. package/dist/helpers/carbonFeatures_bk.js +0 -45
  183. package/dist/helpers/cfg_bk.js +0 -80
  184. package/dist/helpers/chem_bk.js +0 -787
  185. package/dist/helpers/compass_bk.js +0 -149
  186. package/dist/helpers/converter_bk.js +0 -96
  187. package/dist/helpers/extractPeaksEdit_bk.js +0 -53
  188. package/dist/helpers/format_bk.js +0 -497
  189. package/dist/index_bk.js +0 -640
  190. package/dist/layer_content_bk.js +0 -105
  191. package/dist/layer_init_bk.js +0 -235
  192. package/dist/layer_prism_bk.js +0 -133
  193. package/dist/reducers/reducer_edit_peak_bk.js +0 -108
  194. package/dist/reducers/reducer_integration_bk.js +0 -134
  195. package/dist/reducers/reducer_jcamp_bk.js +0 -71
  196. package/dist/reducers/reducer_multiplicity_bk.js +0 -126
  197. package/dist/reducers/reducer_shift_bk.js +0 -88
  198. package/dist/reducers/reducer_voltammetry_bk.js +0 -287
  199. package/dist/sagas/saga_edit_peak_bk.js +0 -73
  200. package/dist/sagas/saga_multi_entities_bk.js +0 -106
  201. package/dist/sagas/saga_multiplicity_bk.js +0 -351
  202. package/dist/sagas/saga_ui_bk.js +0 -453
@@ -12,8 +12,7 @@ var _reactRedux = require("react-redux");
12
12
  var _redux = require("redux");
13
13
  var _reactSvgFileZoomPan = _interopRequireDefault(require("@complat/react-svg-file-zoom-pan"));
14
14
  var _reactQuill = _interopRequireDefault(require("react-quill"));
15
- var _ExpansionPanel = _interopRequireDefault(require("@material-ui/core/ExpansionPanel"));
16
- var _ExpansionPanelSummary = _interopRequireDefault(require("@material-ui/core/ExpansionPanelSummary"));
15
+ var _core = require("@material-ui/core");
17
16
  var _ExpandMore = _interopRequireDefault(require("@material-ui/icons/ExpandMore"));
18
17
  var _Divider = _interopRequireDefault(require("@material-ui/core/Divider"));
19
18
  var _Typography = _interopRequireDefault(require("@material-ui/core/Typography"));
@@ -22,147 +21,147 @@ var _format = _interopRequireDefault(require("../../helpers/format"));
22
21
  /* eslint-disable no-mixed-operators, react/function-component-definition,
23
22
  react/require-default-props */
24
23
 
25
- var styles = function styles() {
26
- return {
27
- chip: {
28
- margin: '1px 0 1px 0'
29
- },
30
- panel: {
31
- backgroundColor: '#eee',
32
- display: 'table-row'
33
- },
34
- panelSummary: {
35
- backgroundColor: '#eee',
36
- height: 32
37
- },
38
- panelDetail: {
39
- backgroundColor: '#fff',
40
- maxHeight: 'calc(90vh - 220px)',
41
- // ROI
42
- overflow: 'auto'
43
- },
44
- table: {
45
- width: 'auto'
46
- },
47
- rowRoot: {
48
- border: '1px solid #eee',
49
- height: 36,
50
- lineHeight: '36px',
51
- overflow: 'hidden',
52
- paddingLeft: 24,
53
- textAlign: 'left'
54
- },
55
- rowOdd: {
56
- backgroundColor: '#fff',
57
- textOverflow: 'ellipsis',
58
- whiteSpace: 'nowrap'
59
- },
60
- rowEven: {
61
- backgroundColor: '#fafafa',
62
- textOverflow: 'ellipsis',
63
- whiteSpace: 'nowrap'
64
- },
65
- rowOddSim: {
66
- backgroundColor: '#fff',
67
- height: 108,
68
- lineHeight: '24px',
69
- overflowY: 'scroll',
70
- overflowWrap: 'word-break'
71
- },
72
- tHead: {
73
- fontWeight: 'bold',
74
- float: 'left',
75
- fontSize: '0.8rem',
76
- fontFamily: 'Helvetica'
77
- },
78
- tTxt: {
79
- fontSize: '0.8rem',
80
- fontFamily: 'Helvetica',
81
- marginRight: 3
82
- },
83
- quill: {
84
- backgroundColor: '#fafafa',
85
- border: '1px solid #eee',
86
- fontSize: '0.8rem',
87
- fontFamily: 'Helvetica',
88
- padding: '0 10px 0 10px',
89
- textAlign: 'left'
90
- }
91
- };
92
- };
93
- var simTitle = function simTitle() {
94
- return 'Simulated signals from NMRshiftDB';
95
- };
96
- var simContent = function simContent(nmrSimPeaks) {
97
- return nmrSimPeaks && nmrSimPeaks.sort(function (a, b) {
98
- return a - b;
99
- }).join(', ');
100
- };
101
- var aucValue = function aucValue(integration) {
24
+ const styles = () => ({
25
+ chip: {
26
+ margin: '1px 0 1px 0'
27
+ },
28
+ panel: {
29
+ backgroundColor: '#eee',
30
+ display: 'table-row'
31
+ },
32
+ panelSummary: {
33
+ backgroundColor: '#eee',
34
+ height: 32
35
+ },
36
+ panelDetail: {
37
+ backgroundColor: '#fff',
38
+ maxHeight: 'calc(90vh - 220px)',
39
+ // ROI
40
+ overflow: 'auto'
41
+ },
42
+ table: {
43
+ width: 'auto'
44
+ },
45
+ rowRoot: {
46
+ border: '1px solid #eee',
47
+ height: 36,
48
+ lineHeight: '36px',
49
+ overflow: 'hidden',
50
+ paddingLeft: 24,
51
+ textAlign: 'left'
52
+ },
53
+ rowOdd: {
54
+ backgroundColor: '#fff',
55
+ textOverflow: 'ellipsis',
56
+ whiteSpace: 'nowrap'
57
+ },
58
+ rowEven: {
59
+ backgroundColor: '#fafafa',
60
+ textOverflow: 'ellipsis',
61
+ whiteSpace: 'nowrap'
62
+ },
63
+ rowOddSim: {
64
+ backgroundColor: '#fff',
65
+ height: 108,
66
+ lineHeight: '24px',
67
+ overflowY: 'scroll',
68
+ overflowWrap: 'word-break'
69
+ },
70
+ tHead: {
71
+ fontWeight: 'bold',
72
+ float: 'left',
73
+ fontSize: '0.8rem',
74
+ fontFamily: 'Helvetica'
75
+ },
76
+ tTxt: {
77
+ fontSize: '0.8rem',
78
+ fontFamily: 'Helvetica',
79
+ marginRight: 3
80
+ },
81
+ quill: {
82
+ backgroundColor: '#fafafa',
83
+ border: '1px solid #eee',
84
+ fontSize: '0.8rem',
85
+ fontFamily: 'Helvetica',
86
+ padding: '0 10px 0 10px',
87
+ textAlign: 'left'
88
+ }
89
+ });
90
+ const simTitle = () => 'Simulated signals from NMRshiftDB';
91
+ const simContent = nmrSimPeaks => nmrSimPeaks && nmrSimPeaks.sort((a, b) => a - b).join(', ');
92
+ const aucValue = integration => {
102
93
  if (!integration) {
103
94
  return '';
104
95
  }
105
- var values = [];
106
- var stackIntegration = integration.stack;
96
+ const values = [];
97
+ const stackIntegration = integration.stack;
107
98
  if (Array.isArray(stackIntegration)) {
108
- var sumVal = 0.0;
109
- stackIntegration.forEach(function (inte) {
99
+ let sumVal = 0.0;
100
+ stackIntegration.forEach(inte => {
110
101
  if (inte.absoluteArea) {
111
102
  sumVal += inte.absoluteArea;
112
103
  }
113
104
  });
114
105
  sumVal = sumVal.toFixed(2);
115
- stackIntegration.forEach(function (inte) {
106
+ stackIntegration.forEach(inte => {
116
107
  if (inte.absoluteArea) {
117
- var areaVal = inte.absoluteArea.toFixed(2);
118
- var percent = (areaVal * 100 / sumVal).toFixed(2);
119
- var valStr = areaVal + " (" + percent + "%)"; // eslint-disable-line
108
+ const areaVal = inte.absoluteArea.toFixed(2);
109
+ const percent = (areaVal * 100 / sumVal).toFixed(2);
110
+ const valStr = areaVal + " (" + percent + "%)"; // eslint-disable-line
120
111
  values.push(valStr);
121
112
  }
122
113
  });
123
114
  }
124
115
  return values.join(', ');
125
116
  };
126
- var InfoPanel = function InfoPanel(_ref) {
127
- var classes = _ref.classes,
128
- expand = _ref.expand,
129
- feature = _ref.feature,
130
- integration = _ref.integration,
131
- editorOnly = _ref.editorOnly,
132
- molSvg = _ref.molSvg,
133
- descriptions = _ref.descriptions,
134
- layoutSt = _ref.layoutSt,
135
- simulationSt = _ref.simulationSt,
136
- shiftSt = _ref.shiftSt,
137
- curveSt = _ref.curveSt,
138
- onExapnd = _ref.onExapnd,
139
- canChangeDescription = _ref.canChangeDescription,
140
- onDescriptionChanged = _ref.onDescriptionChanged;
117
+ const InfoPanel = _ref => {
118
+ let {
119
+ classes,
120
+ expand,
121
+ feature,
122
+ integration,
123
+ editorOnly,
124
+ molSvg,
125
+ descriptions,
126
+ layoutSt,
127
+ simulationSt,
128
+ shiftSt,
129
+ curveSt,
130
+ onExapnd,
131
+ canChangeDescription,
132
+ onDescriptionChanged
133
+ } = _ref;
141
134
  if (!feature) return null;
142
- var title = feature.title,
143
- observeFrequency = feature.observeFrequency,
144
- solventName = feature.solventName;
145
- var curveIdx = curveSt.curveIdx;
146
- var shifts = shiftSt.shifts;
147
- var selectedShift = shifts[curveIdx];
148
- var showSolvName = solventName;
135
+ const {
136
+ title,
137
+ observeFrequency,
138
+ solventName
139
+ } = feature;
140
+ const {
141
+ curveIdx
142
+ } = curveSt;
143
+ const {
144
+ shifts
145
+ } = shiftSt;
146
+ const selectedShift = shifts[curveIdx];
147
+ let showSolvName = solventName;
149
148
  if (selectedShift !== undefined) {
150
- var shiftName = selectedShift.ref.name;
149
+ const shiftName = selectedShift.ref.name;
151
150
  showSolvName = shiftName === '- - -' ? solventName : shiftName;
152
151
  }
153
- var originStack = null;
152
+ let originStack = null;
154
153
  if (integration) {
155
154
  originStack = integration.originStack; // eslint-disable-line
156
155
  }
157
156
 
158
- return /*#__PURE__*/_react.default.createElement(_ExpansionPanel.default, {
157
+ return /*#__PURE__*/_react.default.createElement(_core.Accordion, {
159
158
  expanded: expand,
160
159
  onChange: onExapnd,
161
160
  className: (0, _classnames.default)(classes.panel),
162
161
  TransitionProps: {
163
162
  unmountOnExit: true
164
163
  } // increase ExpansionPanel performance
165
- }, /*#__PURE__*/_react.default.createElement(_ExpansionPanelSummary.default, {
164
+ }, /*#__PURE__*/_react.default.createElement(_core.AccordionSummary, {
166
165
  expandIcon: /*#__PURE__*/_react.default.createElement(_ExpandMore.default, null),
167
166
  className: (0, _classnames.default)(classes.panelSummary)
168
167
  }, /*#__PURE__*/_react.default.createElement(_Typography.default, {
@@ -199,7 +198,7 @@ var InfoPanel = function InfoPanel(_ref) {
199
198
  className: (0, _classnames.default)(classes.tTxt, classes.tHead, 'txt-sv-panel-txt')
200
199
  }, "Area under curve (AUC):"), /*#__PURE__*/_react.default.createElement("br", null), /*#__PURE__*/_react.default.createElement("span", {
201
200
  className: (0, _classnames.default)(classes.tTxt, classes.tTxtSim, 'txt-sv-panel-txt')
202
- }, aucValue(integration))) : null), /*#__PURE__*/_react.default.createElement(_reactQuill.default, {
201
+ }, aucValue(integration))) : null), !_format.default.isCyclicVoltaLayout(layoutSt) ? /*#__PURE__*/_react.default.createElement(_reactQuill.default, {
203
202
  className: (0, _classnames.default)(classes.quill, 'card-sv-quill'),
204
203
  value: descriptions,
205
204
  modules: {
@@ -207,7 +206,7 @@ var InfoPanel = function InfoPanel(_ref) {
207
206
  },
208
207
  onChange: onDescriptionChanged,
209
208
  readOnly: canChangeDescription !== undefined ? !canChangeDescription : true
210
- }), /*#__PURE__*/_react.default.createElement("div", null, !editorOnly && _format.default.isNmrLayout(layoutSt) ? /*#__PURE__*/_react.default.createElement("div", {
209
+ }) : null, /*#__PURE__*/_react.default.createElement("div", null, !editorOnly && _format.default.isNmrLayout(layoutSt) ? /*#__PURE__*/_react.default.createElement("div", {
211
210
  className: (0, _classnames.default)(classes.rowRoot, classes.rowOddSim)
212
211
  }, /*#__PURE__*/_react.default.createElement("span", {
213
212
  className: (0, _classnames.default)(classes.tTxt, classes.tHead, 'txt-sv-panel-txt')
@@ -215,20 +214,15 @@ var InfoPanel = function InfoPanel(_ref) {
215
214
  className: (0, _classnames.default)(classes.tTxt, classes.tTxtSim, 'txt-sv-panel-txt')
216
215
  }, simContent(simulationSt.nmrSimPeaks))) : null));
217
216
  };
218
- var mapStateToProps = function mapStateToProps(state, props) {
219
- return (
220
- // eslint-disable-line
221
- {
222
- layoutSt: state.layout,
223
- simulationSt: state.simulation,
224
- shiftSt: state.shift,
225
- curveSt: state.curve
226
- }
227
- );
228
- };
229
- var mapDispatchToProps = function mapDispatchToProps(dispatch) {
230
- return (0, _redux.bindActionCreators)({}, dispatch);
231
- };
217
+ const mapStateToProps = (state, props) => (
218
+ // eslint-disable-line
219
+ {
220
+ layoutSt: state.layout,
221
+ simulationSt: state.simulation,
222
+ shiftSt: state.shift,
223
+ curveSt: state.curve
224
+ });
225
+ const mapDispatchToProps = dispatch => (0, _redux.bindActionCreators)({}, dispatch);
232
226
  InfoPanel.propTypes = {
233
227
  classes: _propTypes.default.object.isRequired,
234
228
  expand: _propTypes.default.bool.isRequired,
@@ -245,7 +239,6 @@ InfoPanel.propTypes = {
245
239
  canChangeDescription: _propTypes.default.bool.isRequired,
246
240
  onDescriptionChanged: _propTypes.default.func
247
241
  };
248
- var _default = (0, _reactRedux.connect)(
242
+ var _default = exports.default = (0, _reactRedux.connect)(
249
243
  // eslint-disable-line
250
- mapStateToProps, mapDispatchToProps)((0, _styles.withStyles)(styles)(InfoPanel)); // eslint-disable-line
251
- exports.default = _default;
244
+ mapStateToProps, mapDispatchToProps)((0, _styles.withStyles)(styles)(InfoPanel)); // eslint-disable-line