@complat/react-spectra-editor 1.3.5 → 1.4.0
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 +27 -62
- 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
package/dist/index.js
CHANGED
|
@@ -48,6 +48,7 @@ var _dls_acf_jcamp = _interopRequireDefault(require("./__tests__/fixtures/dls_ac
|
|
|
48
48
|
var _dls_intensity_jcamp = _interopRequireDefault(require("./__tests__/fixtures/dls_intensity_jcamp"));
|
|
49
49
|
var _qDescValue = require("./__tests__/fixtures/qDescValue");
|
|
50
50
|
require("./__tests__/style/svg.css");
|
|
51
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
51
52
|
/* eslint-disable prefer-object-spread, default-param-last, no-nested-ternary */
|
|
52
53
|
|
|
53
54
|
const nmr1HEntity = _app.FN.ExtractJcamp(_nmr1h_jcamp.default);
|
|
@@ -266,19 +267,18 @@ class DemoWriteIr extends _react.default.Component {
|
|
|
266
267
|
rmDollarSign(target) {
|
|
267
268
|
return target.replace(/\$/g, '');
|
|
268
269
|
}
|
|
269
|
-
formatPks(
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
} = _ref;
|
|
270
|
+
formatPks({
|
|
271
|
+
peaks,
|
|
272
|
+
layout,
|
|
273
|
+
shift,
|
|
274
|
+
isAscend,
|
|
275
|
+
decimal,
|
|
276
|
+
isIntensity,
|
|
277
|
+
integration,
|
|
278
|
+
waveLength,
|
|
279
|
+
cyclicvoltaSt,
|
|
280
|
+
curveSt
|
|
281
|
+
}) {
|
|
282
282
|
const entity = this.loadEntity();
|
|
283
283
|
const {
|
|
284
284
|
features
|
|
@@ -339,15 +339,14 @@ class DemoWriteIr extends _react.default.Component {
|
|
|
339
339
|
}
|
|
340
340
|
return desc;
|
|
341
341
|
}
|
|
342
|
-
formatMpy(
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
} = _ref2;
|
|
342
|
+
formatMpy({
|
|
343
|
+
multiplicity,
|
|
344
|
+
integration,
|
|
345
|
+
shift,
|
|
346
|
+
isAscend,
|
|
347
|
+
decimal,
|
|
348
|
+
layout
|
|
349
|
+
}) {
|
|
351
350
|
// obsv freq
|
|
352
351
|
const entity = this.loadEntity();
|
|
353
352
|
const {
|
|
@@ -409,15 +408,14 @@ class DemoWriteIr extends _react.default.Component {
|
|
|
409
408
|
const solvent = label ? `${name.split('(')[0].trim()} [${value.toFixed(decimal)} ppm], ` : '';
|
|
410
409
|
return `${layout} NMR (${freqStr}${solvent}ppm) δ = ${str}.`;
|
|
411
410
|
}
|
|
412
|
-
writeMpy(
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
} = _ref3;
|
|
411
|
+
writeMpy({
|
|
412
|
+
layout,
|
|
413
|
+
shift,
|
|
414
|
+
isAscend,
|
|
415
|
+
decimal,
|
|
416
|
+
multiplicity,
|
|
417
|
+
integration
|
|
418
|
+
}) {
|
|
421
419
|
if (!_app.FN.isNmrLayout(layout)) return;
|
|
422
420
|
const desc = this.formatMpy({
|
|
423
421
|
multiplicity,
|
|
@@ -431,19 +429,18 @@ class DemoWriteIr extends _react.default.Component {
|
|
|
431
429
|
desc
|
|
432
430
|
});
|
|
433
431
|
}
|
|
434
|
-
writePeak(
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
} = _ref4;
|
|
432
|
+
writePeak({
|
|
433
|
+
peaks,
|
|
434
|
+
layout,
|
|
435
|
+
shift,
|
|
436
|
+
isAscend,
|
|
437
|
+
decimal,
|
|
438
|
+
isIntensity,
|
|
439
|
+
integration,
|
|
440
|
+
waveLength,
|
|
441
|
+
cyclicvoltaSt,
|
|
442
|
+
curveSt
|
|
443
|
+
}) {
|
|
447
444
|
const desc = this.formatPks({
|
|
448
445
|
peaks,
|
|
449
446
|
layout,
|
|
@@ -461,19 +458,18 @@ class DemoWriteIr extends _react.default.Component {
|
|
|
461
458
|
desc
|
|
462
459
|
});
|
|
463
460
|
}
|
|
464
|
-
savePeaks(
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
} = _ref5;
|
|
461
|
+
savePeaks({
|
|
462
|
+
peaks,
|
|
463
|
+
layout,
|
|
464
|
+
shift,
|
|
465
|
+
isAscend,
|
|
466
|
+
decimal,
|
|
467
|
+
analysis,
|
|
468
|
+
isIntensity,
|
|
469
|
+
integration,
|
|
470
|
+
multiplicity,
|
|
471
|
+
waveLength
|
|
472
|
+
}) {
|
|
477
473
|
const entity = this.loadEntity();
|
|
478
474
|
const {
|
|
479
475
|
features
|
|
@@ -512,11 +508,10 @@ class DemoWriteIr extends _react.default.Component {
|
|
|
512
508
|
}
|
|
513
509
|
/*eslint-disable */
|
|
514
510
|
}
|
|
515
|
-
predictOp(
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
} = _ref6;
|
|
511
|
+
predictOp({
|
|
512
|
+
multiplicity,
|
|
513
|
+
curveSt
|
|
514
|
+
}) {
|
|
520
515
|
const {
|
|
521
516
|
curveIdx
|
|
522
517
|
} = curveSt;
|
|
@@ -593,224 +588,259 @@ class DemoWriteIr extends _react.default.Component {
|
|
|
593
588
|
};
|
|
594
589
|
const molSvg = ['nmr 1h', 'ir', 'cyclic volta'].indexOf(typ) >= 0 ? _phenylalanin.default.path : '';
|
|
595
590
|
const others = this.loadOthers();
|
|
596
|
-
return /*#__PURE__*/
|
|
591
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
597
592
|
style: {
|
|
598
593
|
width: Math.round(window.innerWidth * 0.96)
|
|
599
|
-
}
|
|
600
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
601
|
-
style: {
|
|
602
|
-
margin: '0 0 15px 55px'
|
|
603
|
-
}
|
|
604
|
-
}, /*#__PURE__*/_react.default.createElement(_material.Button, {
|
|
605
|
-
variant: "contained",
|
|
606
|
-
style: {
|
|
607
|
-
margin: '0 10px 0 10px'
|
|
608
|
-
},
|
|
609
|
-
onClick: this.onClick('nmr 1h')
|
|
610
|
-
}, "NMR 1H"), /*#__PURE__*/_react.default.createElement(_material.Button, {
|
|
611
|
-
variant: "contained",
|
|
612
|
-
style: {
|
|
613
|
-
margin: '0 10px 0 10px'
|
|
614
|
-
},
|
|
615
|
-
onClick: this.onClick('nmr 13c')
|
|
616
|
-
}, "NMR 13C"), /*#__PURE__*/_react.default.createElement(_material.Button, {
|
|
617
|
-
variant: "contained",
|
|
618
|
-
style: {
|
|
619
|
-
margin: '0 10px 0 10px'
|
|
620
|
-
},
|
|
621
|
-
onClick: this.onClick('nmr 13c dept')
|
|
622
|
-
}, "NMR 13C DEPT"), /*#__PURE__*/_react.default.createElement(_material.Button, {
|
|
623
|
-
variant: "contained",
|
|
624
|
-
style: {
|
|
625
|
-
margin: '0 10px 0 10px'
|
|
626
594
|
},
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
595
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
596
|
+
style: {
|
|
597
|
+
margin: '0 0 15px 55px'
|
|
598
|
+
},
|
|
599
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Button, {
|
|
600
|
+
variant: "contained",
|
|
601
|
+
style: {
|
|
602
|
+
margin: '0 10px 0 10px'
|
|
603
|
+
},
|
|
604
|
+
onClick: this.onClick('nmr 1h'),
|
|
605
|
+
children: "NMR 1H"
|
|
606
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Button, {
|
|
607
|
+
variant: "contained",
|
|
608
|
+
style: {
|
|
609
|
+
margin: '0 10px 0 10px'
|
|
610
|
+
},
|
|
611
|
+
onClick: this.onClick('nmr 13c'),
|
|
612
|
+
children: "NMR 13C"
|
|
613
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Button, {
|
|
614
|
+
variant: "contained",
|
|
615
|
+
style: {
|
|
616
|
+
margin: '0 10px 0 10px'
|
|
617
|
+
},
|
|
618
|
+
onClick: this.onClick('nmr 13c dept'),
|
|
619
|
+
children: "NMR 13C DEPT"
|
|
620
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Button, {
|
|
621
|
+
variant: "contained",
|
|
622
|
+
style: {
|
|
623
|
+
margin: '0 10px 0 10px'
|
|
624
|
+
},
|
|
625
|
+
onClick: this.onClick('nmr 19f'),
|
|
626
|
+
children: "NMR 19F"
|
|
627
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Button, {
|
|
628
|
+
variant: "contained",
|
|
629
|
+
style: {
|
|
630
|
+
margin: '0 10px 0 10px'
|
|
631
|
+
},
|
|
632
|
+
onClick: this.onClick('nmr 31p'),
|
|
633
|
+
children: "NMR 31P"
|
|
634
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Button, {
|
|
635
|
+
variant: "contained",
|
|
636
|
+
style: {
|
|
637
|
+
margin: '0 10px 0 10px'
|
|
638
|
+
},
|
|
639
|
+
onClick: this.onClick('nmr 15n'),
|
|
640
|
+
children: "NMR 15N"
|
|
641
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Button, {
|
|
642
|
+
variant: "contained",
|
|
643
|
+
style: {
|
|
644
|
+
margin: '0 10px 0 10px'
|
|
645
|
+
},
|
|
646
|
+
onClick: this.onClick('nmr 29si'),
|
|
647
|
+
children: "NMR 29Si"
|
|
648
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Button, {
|
|
649
|
+
variant: "contained",
|
|
650
|
+
style: {
|
|
651
|
+
margin: '0 10px 0 10px'
|
|
652
|
+
},
|
|
653
|
+
onClick: this.onClick('ir'),
|
|
654
|
+
children: "IR"
|
|
655
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Button, {
|
|
656
|
+
variant: "contained",
|
|
657
|
+
style: {
|
|
658
|
+
margin: '0 10px 0 10px'
|
|
659
|
+
},
|
|
660
|
+
onClick: this.onClick('raman'),
|
|
661
|
+
children: "RAMAN"
|
|
662
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Button, {
|
|
663
|
+
id: "btn-uv-vis",
|
|
664
|
+
variant: "contained",
|
|
665
|
+
style: {
|
|
666
|
+
margin: '0 10px 0 10px'
|
|
667
|
+
},
|
|
668
|
+
onClick: this.onClick('uv/vis'),
|
|
669
|
+
children: "UV/VIS"
|
|
670
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Button, {
|
|
671
|
+
id: "btn-hplc",
|
|
672
|
+
variant: "contained",
|
|
673
|
+
style: {
|
|
674
|
+
margin: '0 10px 0 10px'
|
|
675
|
+
},
|
|
676
|
+
onClick: this.onClick('hplc uv/vis'),
|
|
677
|
+
children: "HPLC UV/VIS"
|
|
678
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Button, {
|
|
679
|
+
id: "btn-tga",
|
|
680
|
+
variant: "contained",
|
|
681
|
+
style: {
|
|
682
|
+
margin: '0 10px 0 10px'
|
|
683
|
+
},
|
|
684
|
+
onClick: this.onClick('tga'),
|
|
685
|
+
children: "TGA"
|
|
686
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Button, {
|
|
687
|
+
id: "btn-dsc",
|
|
688
|
+
variant: "contained",
|
|
689
|
+
style: {
|
|
690
|
+
margin: '0 10px 0 10px'
|
|
691
|
+
},
|
|
692
|
+
onClick: this.onClick('dsc'),
|
|
693
|
+
children: "DSC"
|
|
694
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Button, {
|
|
695
|
+
id: "btn-xrd",
|
|
696
|
+
variant: "contained",
|
|
697
|
+
style: {
|
|
698
|
+
margin: '0 10px 0 10px'
|
|
699
|
+
},
|
|
700
|
+
onClick: this.onClick('xrd'),
|
|
701
|
+
children: "XRD"
|
|
702
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Button, {
|
|
703
|
+
id: "btn-cv",
|
|
704
|
+
variant: "contained",
|
|
705
|
+
style: {
|
|
706
|
+
margin: '0 10px 0 10px'
|
|
707
|
+
},
|
|
708
|
+
onClick: this.onClick('cyclic volta'),
|
|
709
|
+
children: "CV"
|
|
710
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Button, {
|
|
711
|
+
variant: "contained",
|
|
712
|
+
style: {
|
|
713
|
+
margin: '0 10px 0 10px'
|
|
714
|
+
},
|
|
715
|
+
onClick: this.onClick('cds'),
|
|
716
|
+
children: "CDS"
|
|
717
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Button, {
|
|
718
|
+
id: "btn-sec",
|
|
719
|
+
variant: "contained",
|
|
720
|
+
style: {
|
|
721
|
+
margin: '0 10px 0 10px'
|
|
722
|
+
},
|
|
723
|
+
onClick: this.onClick('sec'),
|
|
724
|
+
children: "SEC"
|
|
725
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Button, {
|
|
726
|
+
id: "btn-sec",
|
|
727
|
+
variant: "contained",
|
|
728
|
+
style: {
|
|
729
|
+
margin: '0 10px 0 10px'
|
|
730
|
+
},
|
|
731
|
+
onClick: this.onClick('gc'),
|
|
732
|
+
children: "GC"
|
|
733
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Button, {
|
|
734
|
+
id: "btn-sod",
|
|
735
|
+
variant: "contained",
|
|
736
|
+
style: {
|
|
737
|
+
margin: '0 10px 0 10px'
|
|
738
|
+
},
|
|
739
|
+
onClick: this.onClick('aif'),
|
|
740
|
+
children: "SORPTION-DESORPTION"
|
|
741
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Button, {
|
|
742
|
+
variant: "contained",
|
|
743
|
+
style: {
|
|
744
|
+
margin: '0 10px 0 10px'
|
|
745
|
+
},
|
|
746
|
+
onClick: this.onClick('emissions'),
|
|
747
|
+
children: "EMISSIONS"
|
|
748
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Button, {
|
|
749
|
+
variant: "contained",
|
|
750
|
+
style: {
|
|
751
|
+
margin: '0 10px 0 10px'
|
|
752
|
+
},
|
|
753
|
+
onClick: this.onClick('dls acf'),
|
|
754
|
+
children: "DLS ACF"
|
|
755
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Button, {
|
|
756
|
+
variant: "contained",
|
|
757
|
+
style: {
|
|
758
|
+
margin: '0 10px 0 10px'
|
|
759
|
+
},
|
|
760
|
+
onClick: this.onClick('dls intensity'),
|
|
761
|
+
children: "DLS intensity"
|
|
762
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Button, {
|
|
763
|
+
variant: "contained",
|
|
764
|
+
style: {
|
|
765
|
+
margin: '0 10px 0 10px'
|
|
766
|
+
},
|
|
767
|
+
onClick: this.onClick('ms'),
|
|
768
|
+
children: "MS"
|
|
769
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Button, {
|
|
770
|
+
variant: "contained",
|
|
771
|
+
style: {
|
|
772
|
+
margin: '0 10px 0 10px'
|
|
773
|
+
},
|
|
774
|
+
onClick: this.onClick('multi'),
|
|
775
|
+
children: "Multi NMR"
|
|
776
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Button, {
|
|
777
|
+
variant: "contained",
|
|
778
|
+
style: {
|
|
779
|
+
margin: '0 10px 0 10px'
|
|
780
|
+
},
|
|
781
|
+
onClick: this.onClick('multi ir'),
|
|
782
|
+
children: "Multi IR"
|
|
783
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Button, {
|
|
784
|
+
variant: "contained",
|
|
785
|
+
style: {
|
|
786
|
+
margin: '0 10px 0 10px'
|
|
787
|
+
},
|
|
788
|
+
onClick: this.onClick('multi hplc'),
|
|
789
|
+
children: "Multi HPLC"
|
|
790
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Button, {
|
|
791
|
+
variant: "contained",
|
|
792
|
+
style: {
|
|
793
|
+
margin: '0 10px 0 10px'
|
|
794
|
+
},
|
|
795
|
+
onClick: this.onClick('multi xrd'),
|
|
796
|
+
children: "Multi XRD"
|
|
797
|
+
})]
|
|
798
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_app.SpectraEditor, {
|
|
799
|
+
entity: entity,
|
|
800
|
+
multiEntities: multiEntities,
|
|
801
|
+
others: others,
|
|
802
|
+
editorOnly: false,
|
|
803
|
+
canChangeDescription: true,
|
|
804
|
+
onDescriptionChanged: this.onDescriptionChanged,
|
|
805
|
+
molSvg: molSvg,
|
|
806
|
+
exactMass: '123.0',
|
|
807
|
+
userManualLink: {
|
|
808
|
+
cv: "https://www.chemotion.net/chemotionsaurus/docs/eln/chemspectra/cvanalysis"
|
|
809
|
+
},
|
|
810
|
+
forecast: forecast,
|
|
811
|
+
operations: operations
|
|
812
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
813
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
814
|
+
children: "Description Changed"
|
|
815
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactQuill.default, {
|
|
816
|
+
className: 'card-sv-quill',
|
|
817
|
+
value: this.state.descChanged,
|
|
818
|
+
modules: {
|
|
819
|
+
toolbar: false
|
|
820
|
+
},
|
|
821
|
+
readOnly: true
|
|
822
|
+
})]
|
|
823
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Grid, {
|
|
824
|
+
container: true,
|
|
825
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Grid, {
|
|
826
|
+
item: true,
|
|
827
|
+
xs: 10,
|
|
828
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.InputBase, {
|
|
829
|
+
style: {
|
|
830
|
+
margin: '0 0 0 63px'
|
|
831
|
+
},
|
|
832
|
+
placeholder: "Description",
|
|
833
|
+
multiline: true,
|
|
834
|
+
fullWidth: true,
|
|
835
|
+
rows: "2",
|
|
836
|
+
margin: "dense",
|
|
837
|
+
value: desc
|
|
838
|
+
})
|
|
839
|
+
})
|
|
840
|
+
})]
|
|
841
|
+
});
|
|
812
842
|
}
|
|
813
843
|
}
|
|
814
844
|
|
|
815
845
|
// - - - DOM - - -
|
|
816
|
-
_reactDom.default.render(
|
|
846
|
+
_reactDom.default.render(/*#__PURE__*/(0, _jsxRuntime.jsx)(DemoWriteIr, {}), document.getElementById('root'));
|