@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
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _react = _interopRequireDefault(require("react"));
|
|
5
|
+
var _react2 = require("@testing-library/react");
|
|
6
|
+
var _graph_selection = _interopRequireDefault(require("../../../../components/panel/graph_selection"));
|
|
7
|
+
var _reduxMockStore = _interopRequireDefault(require("redux-mock-store"));
|
|
8
|
+
var _reactRedux = require("react-redux");
|
|
9
|
+
require("@testing-library/jest-dom");
|
|
10
|
+
const mockStore = (0, _reduxMockStore.default)([]);
|
|
11
|
+
const emptyStore = mockStore({
|
|
12
|
+
curve: {},
|
|
13
|
+
layout: ''
|
|
14
|
+
});
|
|
15
|
+
const store = mockStore({
|
|
16
|
+
curve: {
|
|
17
|
+
curveIdx: 0,
|
|
18
|
+
listCurves: []
|
|
19
|
+
},
|
|
20
|
+
layout: 'CYCLIC VOLTAMMETRY'
|
|
21
|
+
});
|
|
22
|
+
const dispatchMock = () => Promise.resolve({});
|
|
23
|
+
emptyStore.dispatch = jest.fn(dispatchMock);
|
|
24
|
+
store.dispatch = jest.fn(dispatchMock);
|
|
25
|
+
|
|
26
|
+
/*
|
|
27
|
+
Charaterization Tests
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
describe('GraphSelectionPanel', () => {
|
|
31
|
+
let AppWrapper;
|
|
32
|
+
beforeEach(() => {
|
|
33
|
+
AppWrapper = _ref => {
|
|
34
|
+
let {
|
|
35
|
+
store,
|
|
36
|
+
children
|
|
37
|
+
} = _ref;
|
|
38
|
+
return /*#__PURE__*/_react.default.createElement(_reactRedux.Provider, {
|
|
39
|
+
store: store
|
|
40
|
+
}, " ", children, " ");
|
|
41
|
+
};
|
|
42
|
+
});
|
|
43
|
+
afterEach(() => {
|
|
44
|
+
(0, _react2.cleanup)();
|
|
45
|
+
});
|
|
46
|
+
test('Render with empty store', () => {
|
|
47
|
+
const renderer = /*#__PURE__*/_react.default.createElement(AppWrapper, {
|
|
48
|
+
store: emptyStore
|
|
49
|
+
}, /*#__PURE__*/_react.default.createElement(_graph_selection.default, {
|
|
50
|
+
expand: false,
|
|
51
|
+
onExapnd: () => {},
|
|
52
|
+
entityFileNames: []
|
|
53
|
+
}));
|
|
54
|
+
const {
|
|
55
|
+
queryByTestId
|
|
56
|
+
} = (0, _react2.render)(renderer);
|
|
57
|
+
expect(queryByTestId('GraphSelectionPanel')).toBeNull();
|
|
58
|
+
});
|
|
59
|
+
test('Render with store', () => {
|
|
60
|
+
const renderer = /*#__PURE__*/_react.default.createElement(AppWrapper, {
|
|
61
|
+
store: store
|
|
62
|
+
}, /*#__PURE__*/_react.default.createElement(_graph_selection.default, {
|
|
63
|
+
expand: false,
|
|
64
|
+
onExapnd: () => {},
|
|
65
|
+
entityFileNames: []
|
|
66
|
+
}));
|
|
67
|
+
const {
|
|
68
|
+
queryByTestId
|
|
69
|
+
} = (0, _react2.render)(renderer);
|
|
70
|
+
expect(queryByTestId('GraphSelectionPanel')).toBeInTheDocument();
|
|
71
|
+
});
|
|
72
|
+
});
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _react = _interopRequireDefault(require("react"));
|
|
5
|
+
var _react2 = require("@testing-library/react");
|
|
6
|
+
var _peaks = _interopRequireDefault(require("../../../../components/panel/peaks"));
|
|
7
|
+
var _reduxMockStore = _interopRequireDefault(require("redux-mock-store"));
|
|
8
|
+
var _reactRedux = require("react-redux");
|
|
9
|
+
require("@testing-library/jest-dom");
|
|
10
|
+
var _list_layout = require("../../../../constants/list_layout");
|
|
11
|
+
const mockStore = (0, _reduxMockStore.default)([]);
|
|
12
|
+
const store = mockStore({
|
|
13
|
+
editPeak: {
|
|
14
|
+
present: {
|
|
15
|
+
selectedIdx: 0,
|
|
16
|
+
peaks: [{
|
|
17
|
+
prevOffset: 0,
|
|
18
|
+
pos: [],
|
|
19
|
+
neg: []
|
|
20
|
+
}]
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
curve: {
|
|
24
|
+
listCurves: [{
|
|
25
|
+
feature: {}
|
|
26
|
+
}],
|
|
27
|
+
curveIdx: 0
|
|
28
|
+
},
|
|
29
|
+
layout: _list_layout.LIST_LAYOUT.SEC
|
|
30
|
+
});
|
|
31
|
+
const failedStore = mockStore({
|
|
32
|
+
editPeak: {
|
|
33
|
+
present: {
|
|
34
|
+
selectedIdx: 0,
|
|
35
|
+
peaks: [{
|
|
36
|
+
prevOffset: 0,
|
|
37
|
+
pos: [],
|
|
38
|
+
neg: []
|
|
39
|
+
}]
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
curve: {
|
|
43
|
+
listCurves: [{}],
|
|
44
|
+
curveIdx: 1
|
|
45
|
+
},
|
|
46
|
+
layout: _list_layout.LIST_LAYOUT.SEC
|
|
47
|
+
});
|
|
48
|
+
const dispatchMock = () => Promise.resolve({});
|
|
49
|
+
store.dispatch = jest.fn(dispatchMock);
|
|
50
|
+
describe("<Peaks />", () => {
|
|
51
|
+
let AppWrapper;
|
|
52
|
+
beforeEach(() => {
|
|
53
|
+
AppWrapper = _ref => {
|
|
54
|
+
let {
|
|
55
|
+
store,
|
|
56
|
+
children
|
|
57
|
+
} = _ref;
|
|
58
|
+
return /*#__PURE__*/_react.default.createElement(_reactRedux.Provider, {
|
|
59
|
+
store: store
|
|
60
|
+
}, " ", children, " ");
|
|
61
|
+
};
|
|
62
|
+
});
|
|
63
|
+
test('Render peaks panel info', () => {
|
|
64
|
+
const renderer = /*#__PURE__*/_react.default.createElement(AppWrapper, {
|
|
65
|
+
store: store
|
|
66
|
+
}, /*#__PURE__*/_react.default.createElement(_peaks.default, {
|
|
67
|
+
expand: false,
|
|
68
|
+
onExapnd: () => {}
|
|
69
|
+
}));
|
|
70
|
+
const {
|
|
71
|
+
queryByTestId
|
|
72
|
+
} = (0, _react2.render)(renderer);
|
|
73
|
+
expect(queryByTestId('PeaksPanelInfo')).toBeInTheDocument();
|
|
74
|
+
});
|
|
75
|
+
test('Render peaks panel with invalid store list', () => {
|
|
76
|
+
const renderer = /*#__PURE__*/_react.default.createElement(AppWrapper, {
|
|
77
|
+
store: failedStore
|
|
78
|
+
}, /*#__PURE__*/_react.default.createElement(_peaks.default, {
|
|
79
|
+
expand: false,
|
|
80
|
+
onExapnd: () => {}
|
|
81
|
+
}));
|
|
82
|
+
const {
|
|
83
|
+
queryByTestId
|
|
84
|
+
} = (0, _react2.render)(renderer);
|
|
85
|
+
expect(queryByTestId('PeaksPanelInfo')).not.toBeInTheDocument();
|
|
86
|
+
});
|
|
87
|
+
});
|
package/dist/actions/curve.js
CHANGED
|
@@ -3,19 +3,20 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.setAllCurves = exports.selectCurve = void 0;
|
|
6
|
+
exports.toggleShowAllCurves = exports.setAllCurves = exports.selectCurve = void 0;
|
|
7
7
|
var _action_type = require("../constants/action_type");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
};
|
|
13
|
-
};
|
|
8
|
+
const selectCurve = payload => ({
|
|
9
|
+
type: _action_type.CURVE.SELECT_WORKING_CURVE,
|
|
10
|
+
payload
|
|
11
|
+
});
|
|
14
12
|
exports.selectCurve = selectCurve;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
13
|
+
const setAllCurves = payload => ({
|
|
14
|
+
type: _action_type.CURVE.SET_ALL_CURVES,
|
|
15
|
+
payload
|
|
16
|
+
});
|
|
17
|
+
exports.setAllCurves = setAllCurves;
|
|
18
|
+
const toggleShowAllCurves = payload => ({
|
|
19
|
+
type: _action_type.CURVE.SET_SHOULD_SHOW_ALL_CURVES,
|
|
20
|
+
payload
|
|
21
|
+
});
|
|
22
|
+
exports.toggleShowAllCurves = toggleShowAllCurves;
|
|
@@ -5,73 +5,53 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.setWorkWithMaxPeak = exports.selectPairPeak = exports.removeCylicVoltaPecker = exports.removeCylicVoltaPairPeak = exports.removeCylicVoltaMinPeak = exports.removeCylicVoltaMaxPeak = exports.addNewCylicVoltaPairPeak = exports.addCylicVoltaPecker = exports.addCylicVoltaMinPeak = exports.addCylicVoltaMaxPeak = void 0;
|
|
7
7
|
var _action_type = require("../constants/action_type");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
};
|
|
13
|
-
};
|
|
8
|
+
const addNewCylicVoltaPairPeak = payload => ({
|
|
9
|
+
type: _action_type.CYCLIC_VOLTA_METRY.ADD_PAIR_PEAKS,
|
|
10
|
+
payload
|
|
11
|
+
});
|
|
14
12
|
exports.addNewCylicVoltaPairPeak = addNewCylicVoltaPairPeak;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
};
|
|
20
|
-
};
|
|
13
|
+
const removeCylicVoltaPairPeak = payload => ({
|
|
14
|
+
type: _action_type.CYCLIC_VOLTA_METRY.REMOVE_PAIR_PEAKS,
|
|
15
|
+
payload
|
|
16
|
+
});
|
|
21
17
|
exports.removeCylicVoltaPairPeak = removeCylicVoltaPairPeak;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
};
|
|
27
|
-
};
|
|
18
|
+
const addCylicVoltaMaxPeak = payload => ({
|
|
19
|
+
type: _action_type.CYCLIC_VOLTA_METRY.ADD_MAX_PEAK,
|
|
20
|
+
payload
|
|
21
|
+
});
|
|
28
22
|
exports.addCylicVoltaMaxPeak = addCylicVoltaMaxPeak;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
};
|
|
34
|
-
};
|
|
23
|
+
const removeCylicVoltaMaxPeak = payload => ({
|
|
24
|
+
type: _action_type.CYCLIC_VOLTA_METRY.REMOVE_MAX_PEAK,
|
|
25
|
+
payload
|
|
26
|
+
});
|
|
35
27
|
exports.removeCylicVoltaMaxPeak = removeCylicVoltaMaxPeak;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
};
|
|
41
|
-
};
|
|
28
|
+
const addCylicVoltaMinPeak = payload => ({
|
|
29
|
+
type: _action_type.CYCLIC_VOLTA_METRY.ADD_MIN_PEAK,
|
|
30
|
+
payload
|
|
31
|
+
});
|
|
42
32
|
exports.addCylicVoltaMinPeak = addCylicVoltaMinPeak;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
};
|
|
48
|
-
};
|
|
33
|
+
const removeCylicVoltaMinPeak = payload => ({
|
|
34
|
+
type: _action_type.CYCLIC_VOLTA_METRY.REMOVE_MIN_PEAK,
|
|
35
|
+
payload
|
|
36
|
+
});
|
|
49
37
|
exports.removeCylicVoltaMinPeak = removeCylicVoltaMinPeak;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
};
|
|
55
|
-
};
|
|
38
|
+
const setWorkWithMaxPeak = payload => ({
|
|
39
|
+
type: _action_type.CYCLIC_VOLTA_METRY.WORK_WITH_MAX_PEAK,
|
|
40
|
+
payload
|
|
41
|
+
});
|
|
56
42
|
exports.setWorkWithMaxPeak = setWorkWithMaxPeak;
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
};
|
|
62
|
-
};
|
|
43
|
+
const selectPairPeak = payload => ({
|
|
44
|
+
type: _action_type.CYCLIC_VOLTA_METRY.SELECT_PAIR_PEAK,
|
|
45
|
+
payload
|
|
46
|
+
});
|
|
63
47
|
exports.selectPairPeak = selectPairPeak;
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
};
|
|
69
|
-
};
|
|
48
|
+
const addCylicVoltaPecker = payload => ({
|
|
49
|
+
type: _action_type.CYCLIC_VOLTA_METRY.ADD_PECKER,
|
|
50
|
+
payload
|
|
51
|
+
});
|
|
70
52
|
exports.addCylicVoltaPecker = addCylicVoltaPecker;
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
};
|
|
76
|
-
};
|
|
53
|
+
const removeCylicVoltaPecker = payload => ({
|
|
54
|
+
type: _action_type.CYCLIC_VOLTA_METRY.REMOVE_PECKER,
|
|
55
|
+
payload
|
|
56
|
+
});
|
|
77
57
|
exports.removeCylicVoltaPecker = removeCylicVoltaPecker;
|
|
@@ -5,17 +5,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.rmFromPosList = exports.rmFromNegList = void 0;
|
|
7
7
|
var _action_type = require("../constants/action_type");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
};
|
|
13
|
-
};
|
|
8
|
+
const rmFromPosList = payload => ({
|
|
9
|
+
type: _action_type.EDITPEAK.RM_POSITIVE,
|
|
10
|
+
payload
|
|
11
|
+
});
|
|
14
12
|
exports.rmFromPosList = rmFromPosList;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
};
|
|
20
|
-
};
|
|
13
|
+
const rmFromNegList = payload => ({
|
|
14
|
+
type: _action_type.EDITPEAK.RM_NEGATIVE,
|
|
15
|
+
payload
|
|
16
|
+
});
|
|
21
17
|
exports.rmFromNegList = rmFromNegList;
|
package/dist/actions/forecast.js
CHANGED
|
@@ -5,31 +5,23 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.setNmrStatus = exports.setIrStatus = exports.initForecastStatus = exports.clearForecastStatus = void 0;
|
|
7
7
|
var _action_type = require("../constants/action_type");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
};
|
|
13
|
-
};
|
|
8
|
+
const initForecastStatus = payload => ({
|
|
9
|
+
type: _action_type.FORECAST.INIT_STATUS,
|
|
10
|
+
payload
|
|
11
|
+
});
|
|
14
12
|
exports.initForecastStatus = initForecastStatus;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
};
|
|
20
|
-
};
|
|
13
|
+
const setIrStatus = payload => ({
|
|
14
|
+
type: _action_type.FORECAST.SET_IR_STATUS,
|
|
15
|
+
payload
|
|
16
|
+
});
|
|
21
17
|
exports.setIrStatus = setIrStatus;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
};
|
|
27
|
-
};
|
|
18
|
+
const setNmrStatus = payload => ({
|
|
19
|
+
type: _action_type.FORECAST.SET_NMR_STATUS,
|
|
20
|
+
payload
|
|
21
|
+
});
|
|
28
22
|
exports.setNmrStatus = setNmrStatus;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
};
|
|
34
|
-
};
|
|
23
|
+
const clearForecastStatus = payload => ({
|
|
24
|
+
type: _action_type.FORECAST.CLEAR_STATUS,
|
|
25
|
+
payload
|
|
26
|
+
});
|
|
35
27
|
exports.clearForecastStatus = clearForecastStatus;
|
|
@@ -5,26 +5,20 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.sweepIntegration = exports.setIntegrationFkr = exports.clearIntegrationAll = void 0;
|
|
7
7
|
var _action_type = require("../constants/action_type");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
};
|
|
13
|
-
};
|
|
8
|
+
const sweepIntegration = payload => ({
|
|
9
|
+
type: _action_type.INTEGRATION.SWEEP,
|
|
10
|
+
payload
|
|
11
|
+
});
|
|
14
12
|
exports.sweepIntegration = sweepIntegration;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
};
|
|
20
|
-
};
|
|
13
|
+
const setIntegrationFkr = payload => ({
|
|
14
|
+
type: _action_type.INTEGRATION.SET_FKR,
|
|
15
|
+
payload
|
|
16
|
+
});
|
|
21
17
|
exports.setIntegrationFkr = setIntegrationFkr;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
};
|
|
27
|
-
};
|
|
18
|
+
const clearIntegrationAll = payload => ({
|
|
19
|
+
type: _action_type.INTEGRATION.CLEAR_ALL,
|
|
20
|
+
payload
|
|
21
|
+
});
|
|
28
22
|
|
|
29
23
|
// eslint-disable-line
|
|
30
24
|
exports.clearIntegrationAll = clearIntegrationAll;
|
package/dist/actions/jcamp.js
CHANGED
|
@@ -5,31 +5,23 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.toggleShow = exports.rmOthersOne = exports.clearAll = exports.addOthers = void 0;
|
|
7
7
|
var _action_type = require("../constants/action_type");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
};
|
|
13
|
-
};
|
|
8
|
+
const addOthers = payload => ({
|
|
9
|
+
type: _action_type.JCAMP.ADD_OTHERS,
|
|
10
|
+
payload
|
|
11
|
+
});
|
|
14
12
|
exports.addOthers = addOthers;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
};
|
|
20
|
-
};
|
|
13
|
+
const rmOthersOne = payload => ({
|
|
14
|
+
type: _action_type.JCAMP.RM_OTHERS_ONE,
|
|
15
|
+
payload
|
|
16
|
+
});
|
|
21
17
|
exports.rmOthersOne = rmOthersOne;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
};
|
|
27
|
-
};
|
|
18
|
+
const toggleShow = payload => ({
|
|
19
|
+
type: _action_type.JCAMP.TOGGLE_SHOW,
|
|
20
|
+
payload
|
|
21
|
+
});
|
|
28
22
|
exports.toggleShow = toggleShow;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
};
|
|
34
|
-
};
|
|
23
|
+
const clearAll = payload => ({
|
|
24
|
+
type: _action_type.JCAMP.CLEAR_ALL,
|
|
25
|
+
payload
|
|
26
|
+
});
|
|
35
27
|
exports.clearAll = clearAll;
|
package/dist/actions/layout.js
CHANGED
|
@@ -5,12 +5,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.updateLayout = void 0;
|
|
7
7
|
var _action_type = require("../constants/action_type");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
};
|
|
13
|
-
};
|
|
8
|
+
const updateLayout = payload => ({
|
|
9
|
+
type: _action_type.LAYOUT.UPDATE,
|
|
10
|
+
payload
|
|
11
|
+
});
|
|
14
12
|
|
|
15
13
|
// eslint-disable-line
|
|
16
14
|
exports.updateLayout = updateLayout;
|
package/dist/actions/manager.js
CHANGED
|
@@ -5,40 +5,30 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.resetInitNmr = exports.resetInitMs = exports.resetInitCommonWithIntergation = exports.resetInitCommon = exports.resetAll = void 0;
|
|
7
7
|
var _action_type = require("../constants/action_type");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
};
|
|
13
|
-
};
|
|
8
|
+
const resetAll = payload => ({
|
|
9
|
+
type: _action_type.MANAGER.RESETALL,
|
|
10
|
+
payload
|
|
11
|
+
});
|
|
14
12
|
exports.resetAll = resetAll;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
};
|
|
20
|
-
};
|
|
13
|
+
const resetInitCommon = payload => ({
|
|
14
|
+
type: _action_type.MANAGER.RESET_INIT_COMMON,
|
|
15
|
+
payload
|
|
16
|
+
});
|
|
21
17
|
exports.resetInitCommon = resetInitCommon;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
};
|
|
27
|
-
};
|
|
18
|
+
const resetInitNmr = payload => ({
|
|
19
|
+
type: _action_type.MANAGER.RESET_INIT_NMR,
|
|
20
|
+
payload
|
|
21
|
+
});
|
|
28
22
|
exports.resetInitNmr = resetInitNmr;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
};
|
|
34
|
-
};
|
|
23
|
+
const resetInitMs = payload => ({
|
|
24
|
+
type: _action_type.MANAGER.RESET_INIT_MS,
|
|
25
|
+
payload
|
|
26
|
+
});
|
|
35
27
|
exports.resetInitMs = resetInitMs;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
};
|
|
41
|
-
};
|
|
28
|
+
const resetInitCommonWithIntergation = payload => ({
|
|
29
|
+
type: _action_type.MANAGER.RESET_INIT_COMMON_WITH_INTERGATION,
|
|
30
|
+
payload
|
|
31
|
+
});
|
|
42
32
|
|
|
43
33
|
// eslint-disable-line
|
|
44
34
|
exports.resetInitCommonWithIntergation = resetInitCommonWithIntergation;
|
package/dist/actions/meta.js
CHANGED
|
@@ -5,10 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.updateMetaPeaks = void 0;
|
|
7
7
|
var _action_type = require("../constants/action_type");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
};
|
|
13
|
-
};
|
|
8
|
+
const updateMetaPeaks = payload => ({
|
|
9
|
+
type: _action_type.META.UPDATE_PEAKS,
|
|
10
|
+
payload
|
|
11
|
+
});
|
|
14
12
|
exports.updateMetaPeaks = updateMetaPeaks;
|
|
@@ -5,47 +5,35 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.updateMpyJ = exports.selectMpyType = exports.rmMpyPeakByPanel = exports.resetMpyOne = exports.clickMpyOne = exports.clearMpyAll = void 0;
|
|
7
7
|
var _action_type = require("../constants/action_type");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
};
|
|
13
|
-
};
|
|
8
|
+
const clickMpyOne = payload => ({
|
|
9
|
+
type: _action_type.MULTIPLICITY.ONE_CLICK,
|
|
10
|
+
payload
|
|
11
|
+
});
|
|
14
12
|
exports.clickMpyOne = clickMpyOne;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
};
|
|
20
|
-
};
|
|
13
|
+
const rmMpyPeakByPanel = payload => ({
|
|
14
|
+
type: _action_type.MULTIPLICITY.PEAK_RM_BY_PANEL,
|
|
15
|
+
payload
|
|
16
|
+
});
|
|
21
17
|
exports.rmMpyPeakByPanel = rmMpyPeakByPanel;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
};
|
|
27
|
-
};
|
|
18
|
+
const selectMpyType = payload => ({
|
|
19
|
+
type: _action_type.MULTIPLICITY.TYPE_SELECT,
|
|
20
|
+
payload
|
|
21
|
+
});
|
|
28
22
|
exports.selectMpyType = selectMpyType;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
};
|
|
34
|
-
};
|
|
23
|
+
const clearMpyAll = payload => ({
|
|
24
|
+
type: _action_type.MULTIPLICITY.CLEAR_ALL,
|
|
25
|
+
payload
|
|
26
|
+
});
|
|
35
27
|
exports.clearMpyAll = clearMpyAll;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
};
|
|
41
|
-
};
|
|
28
|
+
const resetMpyOne = payload => ({
|
|
29
|
+
type: _action_type.MULTIPLICITY.RESET_ONE,
|
|
30
|
+
payload
|
|
31
|
+
});
|
|
42
32
|
exports.resetMpyOne = resetMpyOne;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
};
|
|
48
|
-
};
|
|
33
|
+
const updateMpyJ = payload => ({
|
|
34
|
+
type: _action_type.MULTIPLICITY.UPDATE_J,
|
|
35
|
+
payload
|
|
36
|
+
});
|
|
49
37
|
|
|
50
38
|
// eslint-disable-line
|
|
51
39
|
exports.updateMpyJ = updateMpyJ;
|