@complat/react-spectra-editor 0.11.2 → 0.11.3
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/app.js
CHANGED
|
@@ -75,7 +75,8 @@ var SpectraEditor = function SpectraEditor(_ref) {
|
|
|
75
75
|
onDescriptionChanged = _ref.onDescriptionChanged,
|
|
76
76
|
multiEntities = _ref.multiEntities,
|
|
77
77
|
multiMolSvgs = _ref.multiMolSvgs,
|
|
78
|
-
entityFileNames = _ref.entityFileNames
|
|
78
|
+
entityFileNames = _ref.entityFileNames,
|
|
79
|
+
userManualLink = _ref.userManualLink;
|
|
79
80
|
return _react2.default.createElement(
|
|
80
81
|
_reactRedux.Provider,
|
|
81
82
|
{ store: store },
|
|
@@ -83,6 +84,7 @@ var SpectraEditor = function SpectraEditor(_ref) {
|
|
|
83
84
|
entity: entity,
|
|
84
85
|
multiEntities: multiEntities,
|
|
85
86
|
entityFileNames: entityFileNames,
|
|
87
|
+
userManualLink: userManualLink,
|
|
86
88
|
others: others,
|
|
87
89
|
cLabel: cLabel,
|
|
88
90
|
xLabel: xLabel,
|
|
@@ -114,7 +116,8 @@ SpectraEditor.propTypes = {
|
|
|
114
116
|
multiMolSvgs: _propTypes2.default.array,
|
|
115
117
|
editorOnly: _propTypes2.default.bool,
|
|
116
118
|
canChangeDescription: _propTypes2.default.bool,
|
|
117
|
-
onDescriptionChanged: _propTypes2.default.func
|
|
119
|
+
onDescriptionChanged: _propTypes2.default.func,
|
|
120
|
+
userManualLink: _propTypes2.default.object
|
|
118
121
|
};
|
|
119
122
|
|
|
120
123
|
SpectraEditor.defaultProps = {
|
|
@@ -130,7 +133,8 @@ SpectraEditor.defaultProps = {
|
|
|
130
133
|
molSvg: '',
|
|
131
134
|
multiMolSvgs: [],
|
|
132
135
|
editorOnly: false,
|
|
133
|
-
canChangeDescription: false
|
|
136
|
+
canChangeDescription: false,
|
|
137
|
+
userManualLink: {}
|
|
134
138
|
};
|
|
135
139
|
|
|
136
140
|
exports.SpectraEditor = SpectraEditor;
|
|
@@ -80,7 +80,8 @@ var MultiJcampsViewer = function (_React$Component) {
|
|
|
80
80
|
curvSt = _props.curvSt,
|
|
81
81
|
operations = _props.operations,
|
|
82
82
|
entityFileNames = _props.entityFileNames,
|
|
83
|
-
entities = _props.entities
|
|
83
|
+
entities = _props.entities,
|
|
84
|
+
userManualLink = _props.userManualLink;
|
|
84
85
|
|
|
85
86
|
if (!entities || entities.length === 0) return _react2.default.createElement('div', null);
|
|
86
87
|
|
|
@@ -122,6 +123,7 @@ var MultiJcampsViewer = function (_React$Component) {
|
|
|
122
123
|
_react2.default.createElement(_index2.default, {
|
|
123
124
|
jcampIdx: curvSt.curveIdx,
|
|
124
125
|
entityFileNames: entityFileNames,
|
|
126
|
+
userManualLink: userManualLink,
|
|
125
127
|
feature: feature,
|
|
126
128
|
molSvg: molSvg,
|
|
127
129
|
descriptions: '',
|
|
@@ -169,7 +171,8 @@ MultiJcampsViewer.propTypes = {
|
|
|
169
171
|
addNewCylicVoltaPairPeakAct: _propTypes2.default.func.isRequired,
|
|
170
172
|
addCylicVoltaMaxPeakAct: _propTypes2.default.func.isRequired,
|
|
171
173
|
addCylicVoltaMinPeakAct: _propTypes2.default.func.isRequired,
|
|
172
|
-
operations: _propTypes2.default.func.isRequired
|
|
174
|
+
operations: _propTypes2.default.func.isRequired,
|
|
175
|
+
userManualLink: _propTypes2.default.object
|
|
173
176
|
};
|
|
174
177
|
|
|
175
178
|
MultiJcampsViewer.defaultProps = {
|
|
@@ -36,6 +36,10 @@ var _Info = require('@material-ui/icons/Info');
|
|
|
36
36
|
|
|
37
37
|
var _Info2 = _interopRequireDefault(_Info);
|
|
38
38
|
|
|
39
|
+
var _Help = require('@material-ui/icons/Help');
|
|
40
|
+
|
|
41
|
+
var _Help2 = _interopRequireDefault(_Help);
|
|
42
|
+
|
|
39
43
|
var _Tooltip = require('@material-ui/core/Tooltip');
|
|
40
44
|
|
|
41
45
|
var _Tooltip2 = _interopRequireDefault(_Tooltip);
|
|
@@ -98,12 +102,30 @@ var styles = function styles() {
|
|
|
98
102
|
padding: 10
|
|
99
103
|
},
|
|
100
104
|
infoIcon: {
|
|
101
|
-
width: '
|
|
102
|
-
height: '
|
|
105
|
+
width: '15px',
|
|
106
|
+
height: '16px'
|
|
103
107
|
},
|
|
104
108
|
txtToolTip: {
|
|
105
109
|
lineHeight: 'normal !important',
|
|
106
110
|
fontSize: '14px !important'
|
|
111
|
+
},
|
|
112
|
+
rowRoot: {
|
|
113
|
+
border: '1px solid #eee',
|
|
114
|
+
height: 36,
|
|
115
|
+
lineHeight: '36px',
|
|
116
|
+
overflow: 'hidden',
|
|
117
|
+
paddingLeft: 24,
|
|
118
|
+
textAlign: 'left'
|
|
119
|
+
},
|
|
120
|
+
rowOdd: {
|
|
121
|
+
backgroundColor: '#fff',
|
|
122
|
+
textOverflow: 'ellipsis',
|
|
123
|
+
whiteSpace: 'nowrap'
|
|
124
|
+
},
|
|
125
|
+
rowEven: {
|
|
126
|
+
backgroundColor: '#fafafa',
|
|
127
|
+
textOverflow: 'ellipsis',
|
|
128
|
+
whiteSpace: 'nowrap'
|
|
107
129
|
}
|
|
108
130
|
};
|
|
109
131
|
};
|
|
@@ -118,7 +140,8 @@ var CyclicVoltammetryPanel = function CyclicVoltammetryPanel(_ref) {
|
|
|
118
140
|
removePairPeakAct = _ref.removePairPeakAct,
|
|
119
141
|
sweepTypeSt = _ref.sweepTypeSt,
|
|
120
142
|
setUiSweepTypeAct = _ref.setUiSweepTypeAct,
|
|
121
|
-
jcampIdx = _ref.jcampIdx
|
|
143
|
+
jcampIdx = _ref.jcampIdx,
|
|
144
|
+
userManualLink = _ref.userManualLink;
|
|
122
145
|
var spectraList = cyclicVotaSt.spectraList;
|
|
123
146
|
|
|
124
147
|
var spectra = spectraList[jcampIdx];
|
|
@@ -236,7 +259,7 @@ var CyclicVoltammetryPanel = function CyclicVoltammetryPanel(_ref) {
|
|
|
236
259
|
{ className: (0, _classnames2.default)(classes.txtToolTip) },
|
|
237
260
|
'Baseline correction value for I ratio ',
|
|
238
261
|
_react2.default.createElement('br', null),
|
|
239
|
-
'(
|
|
262
|
+
'(a.k.a y value of pecker)'
|
|
240
263
|
)
|
|
241
264
|
},
|
|
242
265
|
_react2.default.createElement(_Info2.default, { className: (0, _classnames2.default)(classes.infoIcon) })
|
|
@@ -361,6 +384,30 @@ var CyclicVoltammetryPanel = function CyclicVoltammetryPanel(_ref) {
|
|
|
361
384
|
);
|
|
362
385
|
})
|
|
363
386
|
)
|
|
387
|
+
),
|
|
388
|
+
_react2.default.createElement(
|
|
389
|
+
'div',
|
|
390
|
+
{ className: (0, _classnames2.default)(classes.rowRoot, classes.rowEven) },
|
|
391
|
+
_react2.default.createElement(
|
|
392
|
+
_Tooltip2.default,
|
|
393
|
+
{
|
|
394
|
+
title: _react2.default.createElement(
|
|
395
|
+
'span',
|
|
396
|
+
{ className: (0, _classnames2.default)(classes.txtToolTip) },
|
|
397
|
+
'Click here to open the User manual document'
|
|
398
|
+
)
|
|
399
|
+
},
|
|
400
|
+
_react2.default.createElement(
|
|
401
|
+
'span',
|
|
402
|
+
null,
|
|
403
|
+
_react2.default.createElement(
|
|
404
|
+
'a',
|
|
405
|
+
{ target: '_blank', rel: 'noopener noreferrer', href: userManualLink },
|
|
406
|
+
'How-To'
|
|
407
|
+
),
|
|
408
|
+
_react2.default.createElement(_Help2.default, { className: (0, _classnames2.default)(classes.infoIcon) })
|
|
409
|
+
)
|
|
410
|
+
)
|
|
364
411
|
)
|
|
365
412
|
);
|
|
366
413
|
};
|
|
@@ -398,7 +445,8 @@ CyclicVoltammetryPanel.propTypes = {
|
|
|
398
445
|
selectPairPeakAct: _propTypes2.default.func.isRequired,
|
|
399
446
|
removePairPeakAct: _propTypes2.default.func.isRequired,
|
|
400
447
|
setUiSweepTypeAct: _propTypes2.default.func.isRequired,
|
|
401
|
-
sweepTypeSt: _propTypes2.default.string.isRequired
|
|
448
|
+
sweepTypeSt: _propTypes2.default.string.isRequired,
|
|
449
|
+
userManualLink: _propTypes2.default.string
|
|
402
450
|
};
|
|
403
451
|
|
|
404
452
|
CyclicVoltammetryPanel.defaultProps = {
|
|
@@ -129,7 +129,8 @@ var PanelViewer = function (_React$Component) {
|
|
|
129
129
|
layoutSt = _props.layoutSt,
|
|
130
130
|
canChangeDescription = _props.canChangeDescription,
|
|
131
131
|
jcampIdx = _props.jcampIdx,
|
|
132
|
-
entityFileNames = _props.entityFileNames
|
|
132
|
+
entityFileNames = _props.entityFileNames,
|
|
133
|
+
userManualLink = _props.userManualLink;
|
|
133
134
|
|
|
134
135
|
var onExapndInfo = function onExapndInfo() {
|
|
135
136
|
return _this2.onExapnd('info');
|
|
@@ -173,7 +174,7 @@ var PanelViewer = function (_React$Component) {
|
|
|
173
174
|
_cfg2.default.hidePanelPeak(layoutSt) ? null : _react2.default.createElement(_peaks2.default, { expand: expand === 'peak', onExapnd: onExapndPeak }),
|
|
174
175
|
_cfg2.default.hidePanelMpy(layoutSt) ? null : _react2.default.createElement(_multiplicity2.default, { expand: expand === 'mpy', onExapnd: onExapndMpy }),
|
|
175
176
|
_cfg2.default.hidePanelCompare(layoutSt) ? null : _react2.default.createElement(_compare2.default, { expand: expand === 'compare', onExapnd: onExapndCompare }),
|
|
176
|
-
_cfg2.default.hidePanelCyclicVolta(layoutSt) ? null : _react2.default.createElement(_cyclic_voltamery_data2.default, { jcampIdx: jcampIdx, feature: feature, expand: expand === 'cyclicvolta', onExapnd: onExapndCyclicVolta })
|
|
177
|
+
_cfg2.default.hidePanelCyclicVolta(layoutSt) ? null : _react2.default.createElement(_cyclic_voltamery_data2.default, { jcampIdx: jcampIdx, feature: feature, expand: expand === 'cyclicvolta', onExapnd: onExapndCyclicVolta, userManualLink: userManualLink ? userManualLink.cv : undefined })
|
|
177
178
|
)
|
|
178
179
|
);
|
|
179
180
|
}
|
|
@@ -204,7 +205,8 @@ PanelViewer.propTypes = {
|
|
|
204
205
|
layoutSt: _propTypes2.default.string.isRequired,
|
|
205
206
|
canChangeDescription: _propTypes2.default.bool.isRequired,
|
|
206
207
|
onDescriptionChanged: _propTypes2.default.func,
|
|
207
|
-
entityFileNames: _propTypes2.default.array
|
|
208
|
+
entityFileNames: _propTypes2.default.array,
|
|
209
|
+
userManualLink: _propTypes2.default.object
|
|
208
210
|
};
|
|
209
211
|
|
|
210
212
|
exports.default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)((0, _styles.withStyles)(styles)(PanelViewer));
|
package/dist/index.js
CHANGED
|
@@ -713,7 +713,8 @@ var DemoWriteIr = function (_React$Component) {
|
|
|
713
713
|
others: others,
|
|
714
714
|
editorOnly: false,
|
|
715
715
|
canChangeDescription: true,
|
|
716
|
-
onDescriptionChanged: this.onDescriptionChanged
|
|
716
|
+
onDescriptionChanged: this.onDescriptionChanged,
|
|
717
|
+
userManualLink: { cv: "https://www.chemotion.net/chemotionsaurus/docs/eln/chemspectra/cvanalysis" }
|
|
717
718
|
}),
|
|
718
719
|
_react2.default.createElement(
|
|
719
720
|
'div',
|
package/dist/layer_init.js
CHANGED
|
@@ -182,7 +182,8 @@ var LayerInit = function (_React$Component) {
|
|
|
182
182
|
canChangeDescription = _props5.canChangeDescription,
|
|
183
183
|
onDescriptionChanged = _props5.onDescriptionChanged,
|
|
184
184
|
multiEntities = _props5.multiEntities,
|
|
185
|
-
entityFileNames = _props5.entityFileNames
|
|
185
|
+
entityFileNames = _props5.entityFileNames,
|
|
186
|
+
userManualLink = _props5.userManualLink;
|
|
186
187
|
|
|
187
188
|
var target = entity.spectra[0];
|
|
188
189
|
|
|
@@ -196,6 +197,7 @@ var LayerInit = function (_React$Component) {
|
|
|
196
197
|
return _react2.default.createElement(_multi_jcamps_viewer2.default, {
|
|
197
198
|
multiEntities: multiEntities,
|
|
198
199
|
entityFileNames: entityFileNames,
|
|
200
|
+
userManualLink: userManualLink,
|
|
199
201
|
molSvg: molSvg,
|
|
200
202
|
operations: operations
|
|
201
203
|
});
|
|
@@ -203,6 +205,7 @@ var LayerInit = function (_React$Component) {
|
|
|
203
205
|
return _react2.default.createElement(_multi_jcamps_viewer2.default, {
|
|
204
206
|
multiEntities: [entity],
|
|
205
207
|
entityFileNames: entityFileNames,
|
|
208
|
+
userManualLink: userManualLink,
|
|
206
209
|
molSvg: molSvg,
|
|
207
210
|
operations: operations
|
|
208
211
|
});
|
|
@@ -268,7 +271,8 @@ LayerInit.propTypes = {
|
|
|
268
271
|
addOthersAct: _propTypes2.default.func.isRequired,
|
|
269
272
|
canChangeDescription: _propTypes2.default.bool.isRequired,
|
|
270
273
|
onDescriptionChanged: _propTypes2.default.func,
|
|
271
|
-
setAllCurvesAct: _propTypes2.default.func.isRequired
|
|
274
|
+
setAllCurvesAct: _propTypes2.default.func.isRequired,
|
|
275
|
+
userManualLink: _propTypes2.default.object
|
|
272
276
|
};
|
|
273
277
|
|
|
274
278
|
exports.default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)((0, _styles.withStyles)(styles)(LayerInit));
|