nmrium 0.38.1 → 0.39.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/lib/component/1d/ApodizationLine.js +27 -4
- package/lib/component/1d/ExclusionZoneAnnotation.js +1 -1
- package/lib/component/1d/ExclusionZonesAnnotations.js +1 -1
- package/lib/component/1d/FooterBanner.js +5 -5
- package/lib/component/1d/SpectraLegends.js +2 -3
- package/lib/component/1d/Viewer1D.js +1 -1
- package/lib/component/1d/integral/Integral.d.ts +1 -1
- package/lib/component/1d/integral/IntegralResizable.d.ts +1 -1
- package/lib/component/1d/jCouplingGraph/JsCouplings.d.ts +1 -1
- package/lib/component/1d/multiAnalysis/MultiAnalysisRanges.js +2 -2
- package/lib/component/1d/multiplicityTree/LevelNode.d.ts +1 -1
- package/lib/component/1d/multiplicityTree/MultiplicityTree.d.ts +1 -1
- package/lib/component/1d/multiplicityTree/StringNode.d.ts +1 -1
- package/lib/component/1d/multiplicityTree/buildTreeNode.d.ts +1 -1
- package/lib/component/1d/peaks/usePeakShapesPath.d.ts +2 -1
- package/lib/component/1d/ranges/Range.d.ts +1 -1
- package/lib/component/1d/tool/PeakPointer.js +6 -6
- package/lib/component/1d/tool/XLabelPointer.js +5 -5
- package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.d.ts +1 -1
- package/lib/component/1d-2d/components/FloatMoleculeStructures/index.d.ts +1 -1
- package/lib/component/1d-2d/tools/BrushX.js +2 -3
- package/lib/component/1d-2d/tools/BrushXY.js +2 -3
- package/lib/component/1d-2d/tools/CrossLinePointer.js +4 -5
- package/lib/component/2d/Chart2D.js +4 -4
- package/lib/component/2d/FooterBanner.js +5 -5
- package/lib/component/2d/Viewer2D.js +1 -1
- package/lib/component/2d/tools/XYLabelPointer.js +5 -5
- package/lib/component/2d/zones/Signal.d.ts +1 -1
- package/lib/component/2d/zones/SignalCrosshair.d.ts +1 -1
- package/lib/component/2d/zones/Zone.d.ts +1 -1
- package/lib/component/EventsTrackers/BrushTracker.d.ts +20 -12
- package/lib/component/EventsTrackers/BrushTracker.js +35 -22
- package/lib/component/EventsTrackers/KeysListenerTracker.js +90 -67
- package/lib/component/EventsTrackers/MouseTracker.d.ts +6 -2
- package/lib/component/EventsTrackers/MouseTracker.js +4 -1
- package/lib/component/NMRium.d.ts +5 -5
- package/lib/component/NMRium.js +15 -16
- package/lib/component/assignment/AssignmentsReducer.d.ts +2 -2
- package/lib/component/context/LoggerContext.js +5 -0
- package/lib/component/context/PreferencesContext.d.ts +10 -8
- package/lib/component/elements/Button.d.ts +13 -11
- package/lib/component/elements/Button.js +16 -25
- package/lib/component/elements/ColorInput.d.ts +0 -1
- package/lib/component/elements/ColorInput.js +2 -2
- package/lib/component/elements/EditableColumn.js +5 -2
- package/lib/component/elements/Input.js +2 -4
- package/lib/component/elements/Label.d.ts +1 -0
- package/lib/component/elements/Label.js +2 -2
- package/lib/component/elements/MolecularFormulaInput.d.ts +2 -2
- package/lib/component/elements/MolecularFormulaInput.js +15 -18
- package/lib/component/elements/NextPrev.d.ts +5 -3
- package/lib/component/elements/NextPrev.js +26 -8
- package/lib/component/elements/NumberInput.js +2 -2
- package/lib/component/elements/ReactTable/ReactTable.js +4 -4
- package/lib/component/elements/formik/FormikCheckBox.d.ts +2 -1
- package/lib/component/elements/formik/FormikCheckBox.js +2 -2
- package/lib/component/elements/formik/FormikColumnFormatField.d.ts +4 -0
- package/lib/component/elements/formik/FormikColumnFormatField.js +19 -16
- package/lib/component/elements/formik/FormikError.d.ts +8 -0
- package/lib/component/elements/formik/FormikError.js +22 -0
- package/lib/component/elements/formik/FormikInput.js +10 -6
- package/lib/component/elements/formik/FormikSelect.js +1 -1
- package/lib/component/header/ApodizationOptionsPanel.js +4 -3
- package/lib/component/header/AutoPeakPickingOptionPanel.js +16 -7
- package/lib/component/header/BaseLineCorrectionPanel.js +5 -2
- package/lib/component/header/PhaseCorrectionPanel.js +5 -2
- package/lib/component/header/RangesPickingOptionPanel.js +15 -7
- package/lib/component/header/ZeroFillingOptionsPanel.js +1 -1
- package/lib/component/highlight/index.d.ts +1 -1
- package/lib/component/hooks/useActiveSpectra.d.ts +1 -1
- package/lib/component/hooks/useActiveSpectrum.d.ts +1 -1
- package/lib/component/hooks/useActiveSpectrumPeaksViewState.d.ts +1 -1
- package/lib/component/hooks/useCheckPointsNumberInWindowArea.d.ts +2 -0
- package/lib/component/hooks/useCheckPointsNumberInWindowArea.js +17 -0
- package/lib/component/hooks/useCheckToolsVisibility.d.ts +2 -2
- package/lib/component/hooks/useDatumWithSpectraStatistics.d.ts +3 -2
- package/lib/component/hooks/useExport.js +1 -1
- package/lib/component/hooks/useFilter.d.ts +2 -1
- package/lib/component/hooks/usePanelPreferences.d.ts +3 -3
- package/lib/component/hooks/usePanelPreferences.js +4 -0
- package/lib/component/hooks/useSaveSettings.d.ts +1 -1
- package/lib/component/hooks/useSaveSettings.js +17 -15
- package/lib/component/hooks/useVerticalAlign.d.ts +1 -1
- package/lib/component/loader/DropZone.js +1 -2
- package/lib/component/modal/EditPeakShapeModal.d.ts +2 -2
- package/lib/component/modal/LoadJCAMPModal.d.ts +3 -3
- package/lib/component/modal/LoadJCAMPModal.js +56 -74
- package/lib/component/modal/ModalStyle.js +0 -10
- package/lib/component/modal/MoleculeStructureEditorModal.d.ts +2 -1
- package/lib/component/modal/MoleculeStructureEditorModal.js +12 -6
- package/lib/component/modal/MultipletAnalysisModal.d.ts +2 -2
- package/lib/component/modal/PredictSpectraModal.d.ts +4 -2
- package/lib/component/modal/PredictSpectraModal.js +53 -105
- package/lib/component/modal/SaveAsModal.d.ts +2 -0
- package/lib/component/modal/SaveAsModal.js +21 -14
- package/lib/component/modal/changeSum/ChangeSumModal.js +25 -38
- package/lib/component/modal/editRange/EditRangeModal.d.ts +7 -6
- package/lib/component/modal/editRange/EditRangeModal.js +33 -13
- package/lib/component/modal/editRange/forms/components/AddSignalFormTab.d.ts +1 -1
- package/lib/component/modal/editRange/forms/components/DeltaInput.js +2 -0
- package/lib/component/modal/editRange/forms/components/SignalsForm.d.ts +2 -2
- package/lib/component/modal/metaImportation/MetaImportationModal.js +15 -5
- package/lib/component/modal/setting/GeneralSettings.js +2 -7
- package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.d.ts +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralPanel.d.ts +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralTable.d.ts +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralsPreferences.js +7 -15
- package/lib/component/panels/MoleculesPanel/MoleculeHeader.js +2 -2
- package/lib/component/panels/MoleculesPanel/MoleculePanel.d.ts +1 -11
- package/lib/component/panels/MoleculesPanel/MoleculePanel.js +20 -25
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.d.ts +6 -11
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +71 -81
- package/lib/component/panels/MoleculesPanel/Utilities.d.ts +1 -1
- package/lib/component/panels/MoleculesPanel/Utilities.js +3 -1
- package/lib/component/panels/MultipleSpectraAnalysisPanel/base/AnalysisColumnHeader.js +6 -6
- package/lib/component/panels/MultipleSpectraAnalysisPanel/preferences/AnalysisTablePreferences.js +2 -2
- package/lib/component/panels/MultipleSpectraAnalysisPanel/preferences/index.js +2 -2
- package/lib/component/panels/Panels.js +2 -2
- package/lib/component/panels/PeaksPanel/PeaksPanel.d.ts +1 -1
- package/lib/component/panels/RangesPanel/RangesHeader.js +39 -53
- package/lib/component/panels/RangesPanel/RangesPreferences.d.ts +1 -1
- package/lib/component/panels/RangesPanel/RangesPreferences.js +7 -22
- package/lib/component/panels/RangesPanel/RangesTable.d.ts +2 -2
- package/lib/component/panels/RangesPanel/RangesTableRow.d.ts +2 -2
- package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaHzColumn.d.ts +1 -1
- package/lib/component/panels/RangesPanel/hooks/useEditRangeModal.d.ts +1 -1
- package/lib/component/panels/RangesPanel/hooks/useEditRangeModal.js +9 -12
- package/lib/component/panels/RangesPanel/hooks/useMapRanges.d.ts +1 -1
- package/lib/component/panels/SpectrumsPanel/SpectraTable.js +5 -1
- package/lib/component/panels/SpectrumsPanel/base/SpectraColumnsManager.js +10 -4
- package/lib/component/panels/SpectrumsPanel/base/setting/processSnapPlot.d.ts +2 -2
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditPathLength.d.ts +1 -1
- package/lib/component/panels/ZonesPanel/hooks/useMapZones.d.ts +1 -1
- package/lib/component/panels/databasePanel/DatabasePanel.d.ts +1 -1
- package/lib/component/panels/databasePanel/DatabasePanel.js +5 -24
- package/lib/component/panels/databasePanel/DatabasePreferences.js +2 -2
- package/lib/component/panels/header/DefaultPanelHeader.d.ts +2 -3
- package/lib/component/panels/header/DefaultPanelHeader.js +18 -26
- package/lib/component/panels/header/PanelHeader.d.ts +7 -0
- package/lib/component/panels/header/PanelHeader.js +12 -0
- package/lib/component/panels/predictionPanel/PredictionOptionsPanel.d.ts +9 -0
- package/lib/component/panels/predictionPanel/PredictionOptionsPanel.js +94 -0
- package/lib/component/panels/predictionPanel/PredictionPanel.d.ts +1 -1
- package/lib/component/panels/predictionPanel/PredictionPanel.js +109 -37
- package/lib/component/panels/predictionPanel/PredictionPreferences.d.ts +3 -0
- package/lib/component/panels/predictionPanel/PredictionPreferences.js +24 -0
- package/lib/component/panels/predictionPanel/PredictionSimpleOptions.d.ts +2 -0
- package/lib/component/panels/predictionPanel/PredictionSimpleOptions.js +44 -0
- package/lib/component/reducer/Reducer.d.ts +5 -87
- package/lib/component/reducer/Reducer.js +1 -29
- package/lib/component/reducer/actions/DatabaseActions.js +6 -4
- package/lib/component/reducer/actions/DomainActions.js +3 -0
- package/lib/component/reducer/actions/FiltersActions.d.ts +1 -2
- package/lib/component/reducer/actions/FiltersActions.js +47 -52
- package/lib/component/reducer/actions/HistoryActions.d.ts +4 -0
- package/lib/component/reducer/actions/HistoryActions.js +40 -0
- package/lib/component/reducer/actions/IntegralsActions.d.ts +1 -1
- package/lib/component/reducer/actions/IntegralsActions.js +3 -1
- package/lib/component/reducer/actions/LoadActions.d.ts +1 -2
- package/lib/component/reducer/actions/LoadActions.js +1 -1
- package/lib/component/reducer/actions/MoleculeActions.d.ts +7 -4
- package/lib/component/reducer/actions/MoleculeActions.js +57 -28
- package/lib/component/reducer/actions/PeaksActions.d.ts +1 -2
- package/lib/component/reducer/actions/PeaksActions.js +3 -3
- package/lib/component/reducer/actions/RangesActions.d.ts +4 -5
- package/lib/component/reducer/actions/RangesActions.js +5 -27
- package/lib/component/reducer/actions/SpectrumsActions.js +8 -8
- package/lib/component/reducer/actions/ToolsActions.d.ts +2 -2
- package/lib/component/reducer/actions/ToolsActions.js +3 -32
- package/lib/component/reducer/actions/ZonesActions.d.ts +2 -1
- package/lib/component/reducer/actions/ZonesActions.js +3 -6
- package/lib/component/reducer/helper/ZoomHistoryManager.d.ts +8 -0
- package/lib/component/reducer/helper/ZoomHistoryManager.js +35 -0
- package/lib/component/reducer/helper/getActiveSpectra.d.ts +1 -1
- package/lib/component/reducer/helper/getActiveSpectrum.d.ts +1 -1
- package/lib/component/reducer/helper/getVerticalAlign.d.ts +1 -1
- package/lib/component/reducer/preferences/actions/addWorkspace.js +2 -2
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.d.ts +1 -1
- package/lib/component/reducer/preferences/preferencesReducer.d.ts +3 -3
- package/lib/component/reducer/preferences/utilities/getActiveWorkspace.d.ts +1 -1
- package/lib/component/reducer/preferences/utilities/getPreferencesByWorkspace.d.ts +2 -3
- package/lib/component/reducer/preferences/utilities/initWorkspace.d.ts +1 -1
- package/lib/component/reducer/preferences/utilities/mapNucleiFormatting.d.ts +1 -1
- package/lib/component/reducer/preferences/utilities/mapWorkspaces.d.ts +1 -1
- package/lib/component/toolbar/BasicToolBar.js +6 -11
- package/lib/component/toolbar/ToolTypes.d.ts +2 -2
- package/lib/component/toolbar/ToolTypes.js +1 -1
- package/lib/component/workspaces/assignment.d.ts +1 -1
- package/lib/component/workspaces/basic.d.ts +1 -1
- package/lib/component/workspaces/embedded.d.ts +1 -1
- package/lib/component/workspaces/exercise.d.ts +1 -1
- package/lib/component/workspaces/index.d.ts +6 -6
- package/lib/component/workspaces/prediction.d.ts +1 -1
- package/lib/component/workspaces/prediction.js +193 -0
- package/lib/component/workspaces/process1D.d.ts +1 -1
- package/lib/component/workspaces/workspaceDefaultProperties.d.ts +1 -1
- package/lib/component/workspaces/workspaceDefaultProperties.js +1 -1
- package/lib/data/PredictionManager.d.ts +3 -1
- package/lib/data/PredictionManager.js +43 -3
- package/lib/data/SpectraManager.d.ts +1 -2
- package/lib/data/constants/DefaultApodizationOptions.d.ts +2 -0
- package/lib/data/constants/DefaultApodizationOptions.js +5 -0
- package/lib/data/data1d/Spectrum1D/SumManager.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/convertDataToFloat64Array.d.ts +2 -2
- package/lib/data/data1d/Spectrum1D/generateJGraphData.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/generateSpectrumFromPublicationString.d.ts +1 -2
- package/lib/data/data1d/Spectrum1D/index.d.ts +1 -5
- package/lib/data/data1d/Spectrum1D/index.js +1 -5
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.js +3 -3
- package/lib/data/data1d/Spectrum1D/integrals/initiateIntegrals.d.ts +3 -2
- package/lib/data/data1d/Spectrum1D/integrals/initiateIntegrals.js +1 -1
- package/lib/data/data1d/Spectrum1D/isRangeAssigned.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.d.ts +2 -1
- package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.js +1 -2
- package/lib/data/data1d/Spectrum1D/peaks/initiatePeaks.d.ts +3 -2
- package/lib/data/data1d/Spectrum1D/peaks/initiatePeaks.js +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/lookupPeak.d.ts +2 -2
- package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.d.ts +2 -1
- package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.js +1 -2
- package/lib/data/data1d/Spectrum1D/ranges/addRange.d.ts +7 -7
- package/lib/data/data1d/Spectrum1D/ranges/addRange.js +5 -24
- package/lib/data/data1d/Spectrum1D/ranges/autoRangesDetection.d.ts +2 -1
- package/lib/data/data1d/Spectrum1D/ranges/changeRange.d.ts +2 -1
- package/lib/data/data1d/Spectrum1D/ranges/changeRange.js +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/checkRangeKind.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectRange.js +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectRanges.js +1 -2
- package/lib/data/data1d/Spectrum1D/ranges/detectSignal.js +13 -6
- package/lib/data/data1d/Spectrum1D/ranges/generateSpectrumFromRanges.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/generateSpectrumFromRanges.js +23 -18
- package/lib/data/data1d/Spectrum1D/ranges/initiateRanges.d.ts +37 -2
- package/lib/data/data1d/Spectrum1D/ranges/initiateRanges.js +1 -1
- package/lib/data/data1d/database.js +2 -4
- package/lib/data/data1d/multipleSpectraAnalysis.d.ts +3 -30
- package/lib/data/data1d/multipleSpectraAnalysis.js +4 -15
- package/lib/data/data2d/Spectrum2D/getMissingProjection.d.ts +3 -2
- package/lib/data/data2d/Spectrum2D/getShift.js +1 -1
- package/lib/data/data2d/Spectrum2D/getSlice.d.ts +1 -1
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.js +1 -1
- package/lib/data/data2d/Spectrum2D/zones/detectZones.d.ts +1 -1
- package/lib/data/data2d/Spectrum2D/zones/detectZonesManual.d.ts +1 -1
- package/lib/data/data2d/Spectrum2D/zones/initiateZones.d.ts +3 -2
- package/lib/data/data2d/Spectrum2D/zones/isZoneExists.d.ts +2 -1
- package/lib/data/data2d/Spectrum2D/zones/mapZones.d.ts +3 -2
- package/lib/data/getDefaultMatrixFilters.d.ts +1 -1
- package/lib/data/types/data1d/ComplexData1D.d.ts +2 -2
- package/lib/data/types/data1d/RangeDetectionResult.d.ts +1 -1
- package/lib/data/utilities/FindUtilities.d.ts +2 -1
- package/lib/data/utilities/RangeUtilities.d.ts +1 -1
- package/lib/data/utilities/ZoneUtilities.d.ts +1 -1
- package/lib/data/utilities/calculateSanPlot.d.ts +2 -2
- package/lib/types/NMRiumDataReturn.d.ts +1 -3
- package/lib/versionInfo.js +1 -1
- package/lib-cjs/component/1d/ApodizationLine.js +28 -5
- package/lib-cjs/component/1d/ExclusionZoneAnnotation.js +3 -26
- package/lib-cjs/component/1d/ExclusionZonesAnnotations.js +5 -28
- package/lib-cjs/component/1d/FooterBanner.js +2 -2
- package/lib-cjs/component/1d/SpectraLegends.js +1 -2
- package/lib-cjs/component/1d/multiAnalysis/MultiAnalysisRanges.js +2 -2
- package/lib-cjs/component/1d/tool/PeakPointer.js +3 -3
- package/lib-cjs/component/1d/tool/XLabelPointer.js +2 -2
- package/lib-cjs/component/1d-2d/tools/BrushX.js +1 -2
- package/lib-cjs/component/1d-2d/tools/BrushXY.js +1 -2
- package/lib-cjs/component/1d-2d/tools/CrossLinePointer.js +2 -3
- package/lib-cjs/component/2d/Chart2D.js +4 -4
- package/lib-cjs/component/2d/FooterBanner.js +2 -2
- package/lib-cjs/component/2d/tools/XYLabelPointer.js +2 -2
- package/lib-cjs/component/EventsTrackers/BrushTracker.js +36 -22
- package/lib-cjs/component/EventsTrackers/KeysListenerTracker.js +90 -67
- package/lib-cjs/component/EventsTrackers/MouseTracker.js +4 -1
- package/lib-cjs/component/NMRium.js +12 -13
- package/lib-cjs/component/context/LoggerContext.js +5 -0
- package/lib-cjs/component/elements/Button.js +16 -25
- package/lib-cjs/component/elements/ColorInput.js +2 -2
- package/lib-cjs/component/elements/EditableColumn.js +5 -2
- package/lib-cjs/component/elements/Input.js +2 -4
- package/lib-cjs/component/elements/Label.js +2 -2
- package/lib-cjs/component/elements/MolecularFormulaInput.js +14 -16
- package/lib-cjs/component/elements/NextPrev.js +26 -8
- package/lib-cjs/component/elements/NumberInput.js +2 -2
- package/lib-cjs/component/elements/ReactTable/ReactTable.js +4 -4
- package/lib-cjs/component/elements/formik/FormikCheckBox.js +2 -2
- package/lib-cjs/component/elements/formik/FormikColumnFormatField.js +20 -16
- package/lib-cjs/component/elements/formik/FormikError.js +27 -0
- package/lib-cjs/component/elements/formik/FormikInput.js +10 -6
- package/lib-cjs/component/elements/formik/FormikSelect.js +1 -1
- package/lib-cjs/component/header/ApodizationOptionsPanel.js +6 -5
- package/lib-cjs/component/header/AutoPeakPickingOptionPanel.js +15 -6
- package/lib-cjs/component/header/BaseLineCorrectionPanel.js +6 -3
- package/lib-cjs/component/header/PhaseCorrectionPanel.js +6 -26
- package/lib-cjs/component/header/RangesPickingOptionPanel.js +15 -7
- package/lib-cjs/component/header/ZeroFillingOptionsPanel.js +2 -25
- package/lib-cjs/component/hooks/useCheckPointsNumberInWindowArea.js +24 -0
- package/lib-cjs/component/hooks/useExport.js +1 -1
- package/lib-cjs/component/hooks/usePanelPreferences.js +4 -0
- package/lib-cjs/component/hooks/useSaveSettings.js +16 -14
- package/lib-cjs/component/loader/DropZone.js +1 -2
- package/lib-cjs/component/modal/LoadJCAMPModal.js +81 -75
- package/lib-cjs/component/modal/ModalStyle.js +0 -10
- package/lib-cjs/component/modal/MoleculeStructureEditorModal.js +12 -6
- package/lib-cjs/component/modal/PredictSpectraModal.js +53 -126
- package/lib-cjs/component/modal/SaveAsModal.js +22 -14
- package/lib-cjs/component/modal/changeSum/ChangeSumModal.js +24 -37
- package/lib-cjs/component/modal/editRange/EditRangeModal.js +32 -12
- package/lib-cjs/component/modal/editRange/forms/components/DeltaInput.js +2 -0
- package/lib-cjs/component/modal/metaImportation/MetaImportationModal.js +15 -5
- package/lib-cjs/component/modal/setting/GeneralSettings.js +2 -7
- package/lib-cjs/component/panels/IntegralsPanel/IntegralsPreferences.js +6 -14
- package/lib-cjs/component/panels/MoleculesPanel/MoleculeHeader.js +2 -2
- package/lib-cjs/component/panels/MoleculesPanel/MoleculePanel.js +19 -24
- package/lib-cjs/component/panels/MoleculesPanel/MoleculePanelHeader.js +76 -86
- package/lib-cjs/component/panels/MoleculesPanel/Utilities.js +3 -1
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/base/AnalysisColumnHeader.js +6 -6
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/preferences/AnalysisTablePreferences.js +2 -2
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/preferences/index.js +2 -2
- package/lib-cjs/component/panels/Panels.js +2 -2
- package/lib-cjs/component/panels/RangesPanel/RangesHeader.js +38 -52
- package/lib-cjs/component/panels/RangesPanel/RangesPreferences.js +5 -20
- package/lib-cjs/component/panels/RangesPanel/hooks/useEditRangeModal.js +9 -12
- package/lib-cjs/component/panels/SpectrumsPanel/SpectraTable.js +5 -1
- package/lib-cjs/component/panels/SpectrumsPanel/base/SpectraColumnsManager.js +10 -4
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js +1 -1
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js +1 -1
- package/lib-cjs/component/panels/databasePanel/DatabasePanel.js +5 -24
- package/lib-cjs/component/panels/databasePanel/DatabasePreferences.js +25 -2
- package/lib-cjs/component/panels/header/DefaultPanelHeader.js +18 -26
- package/lib-cjs/component/panels/header/PanelHeader.js +15 -0
- package/lib-cjs/component/panels/predictionPanel/PredictionOptionsPanel.js +122 -0
- package/lib-cjs/component/panels/predictionPanel/PredictionPanel.js +109 -37
- package/lib-cjs/component/panels/predictionPanel/PredictionPreferences.js +29 -0
- package/lib-cjs/component/panels/predictionPanel/PredictionSimpleOptions.js +72 -0
- package/lib-cjs/component/reducer/Reducer.js +2 -31
- package/lib-cjs/component/reducer/actions/DatabaseActions.js +6 -4
- package/lib-cjs/component/reducer/actions/DomainActions.js +3 -0
- package/lib-cjs/component/reducer/actions/FiltersActions.js +66 -94
- package/lib-cjs/component/reducer/actions/HistoryActions.js +45 -0
- package/lib-cjs/component/reducer/actions/IntegralsActions.js +3 -1
- package/lib-cjs/component/reducer/actions/MoleculeActions.js +58 -32
- package/lib-cjs/component/reducer/actions/PeaksActions.js +3 -3
- package/lib-cjs/component/reducer/actions/RangesActions.js +7 -52
- package/lib-cjs/component/reducer/actions/SpectrumsActions.js +10 -33
- package/lib-cjs/component/reducer/actions/ToolsActions.js +26 -32
- package/lib-cjs/component/reducer/actions/ZonesActions.js +6 -32
- package/lib-cjs/component/reducer/helper/ZoomHistoryManager.js +37 -0
- package/lib-cjs/component/reducer/preferences/actions/addWorkspace.js +2 -2
- package/lib-cjs/component/toolbar/BasicToolBar.js +5 -10
- package/lib-cjs/component/toolbar/ToolTypes.js +9 -32
- package/lib-cjs/component/workspaces/prediction.js +193 -0
- package/lib-cjs/component/workspaces/workspaceDefaultProperties.js +21 -44
- package/lib-cjs/data/PredictionManager.js +43 -3
- package/lib-cjs/data/constants/DefaultApodizationOptions.js +8 -0
- package/lib-cjs/data/data1d/Spectrum1D/index.js +7 -11
- package/lib-cjs/data/data1d/Spectrum1D/initiateDatum1D.js +9 -32
- package/lib-cjs/data/data1d/Spectrum1D/integrals/initiateIntegrals.js +2 -2
- package/lib-cjs/data/data1d/Spectrum1D/peaks/autoPeakPicking.js +1 -2
- package/lib-cjs/data/data1d/Spectrum1D/peaks/initiatePeaks.js +2 -2
- package/lib-cjs/data/data1d/Spectrum1D/peaks/optimizePeaks.js +1 -2
- package/lib-cjs/data/data1d/Spectrum1D/ranges/addRange.js +7 -26
- package/lib-cjs/data/data1d/Spectrum1D/ranges/changeRange.js +2 -2
- package/lib-cjs/data/data1d/Spectrum1D/ranges/detectRange.js +2 -2
- package/lib-cjs/data/data1d/Spectrum1D/ranges/detectRanges.js +3 -4
- package/lib-cjs/data/data1d/Spectrum1D/ranges/detectSignal.js +13 -6
- package/lib-cjs/data/data1d/Spectrum1D/ranges/generateSpectrumFromRanges.js +23 -18
- package/lib-cjs/data/data1d/Spectrum1D/ranges/initiateRanges.js +2 -2
- package/lib-cjs/data/data1d/database.js +2 -4
- package/lib-cjs/data/data1d/multipleSpectraAnalysis.js +5 -16
- package/lib-cjs/data/data2d/Spectrum2D/getShift.js +3 -26
- package/lib-cjs/data/data2d/Spectrum2D/initiateDatum2D.js +2 -25
- package/lib-cjs/versionInfo.js +1 -1
- package/package.json +29 -29
- package/lib/component/panels/predictionPanel/PredictionOptions.d.ts +0 -7
- package/lib/component/panels/predictionPanel/PredictionOptions.js +0 -74
- package/lib/component/workspaces/Workspace.d.ts +0 -188
- package/lib/component/workspaces/Workspace.js +0 -1
- package/lib/data/Filters.d.ts +0 -12
- package/lib/data/Filters.js +0 -12
- package/lib/data/FiltersManager.d.ts +0 -30
- package/lib/data/FiltersManager.js +0 -175
- package/lib/data/data1d/Spectrum1D/getShiftX.d.ts +0 -2
- package/lib/data/data1d/Spectrum1D/getShiftX.js +0 -6
- package/lib/data/data1d/Spectrum1D/getSpectrumErrorValue.d.ts +0 -2
- package/lib/data/data1d/Spectrum1D/getSpectrumErrorValue.js +0 -4
- package/lib/data/data1d/Spectrum1D/integrals/checkIntegralKind.d.ts +0 -7
- package/lib/data/data1d/Spectrum1D/integrals/checkIntegralKind.js +0 -9
- package/lib/data/data1d/Spectrum1D/integrals/mapIntegrals.d.ts +0 -12
- package/lib/data/data1d/Spectrum1D/integrals/mapIntegrals.js +0 -36
- package/lib/data/data1d/Spectrum1D/integrals/updateIntegrals.d.ts +0 -2
- package/lib/data/data1d/Spectrum1D/integrals/updateIntegrals.js +0 -6
- package/lib/data/data1d/Spectrum1D/integrals/updateIntegralsRelativeValues.d.ts +0 -2
- package/lib/data/data1d/Spectrum1D/integrals/updateIntegralsRelativeValues.js +0 -5
- package/lib/data/data1d/Spectrum1D/integrals/updateRelatives.d.ts +0 -2
- package/lib/data/data1d/Spectrum1D/integrals/updateRelatives.js +0 -26
- package/lib/data/data1d/Spectrum1D/peaks/mapPeaks.d.ts +0 -3
- package/lib/data/data1d/Spectrum1D/peaks/mapPeaks.js +0 -45
- package/lib/data/data1d/Spectrum1D/peaks/updatePeaks.d.ts +0 -2
- package/lib/data/data1d/Spectrum1D/peaks/updatePeaks.js +0 -7
- package/lib/data/data1d/Spectrum1D/ranges/mapRanges.d.ts +0 -4
- package/lib/data/data1d/Spectrum1D/ranges/mapRanges.js +0 -78
- package/lib/data/data1d/Spectrum1D/ranges/updateRanges.d.ts +0 -2
- package/lib/data/data1d/Spectrum1D/ranges/updateRanges.js +0 -9
- package/lib/data/data1d/Spectrum1D/ranges/updateRangesRelativeValues.d.ts +0 -2
- package/lib/data/data1d/Spectrum1D/ranges/updateRangesRelativeValues.js +0 -5
- package/lib/data/data1d/filter1d/apodization.d.ts +0 -27
- package/lib/data/data1d/filter1d/apodization.js +0 -81
- package/lib/data/data1d/filter1d/baselineCorrection.d.ts +0 -33
- package/lib/data/data1d/filter1d/baselineCorrection.js +0 -51
- package/lib/data/data1d/filter1d/digitalFilter.d.ts +0 -20
- package/lib/data/data1d/filter1d/digitalFilter.js +0 -44
- package/lib/data/data1d/filter1d/equallySpaced.d.ts +0 -33
- package/lib/data/data1d/filter1d/equallySpaced.js +0 -52
- package/lib/data/data1d/filter1d/exclusionZones.d.ts +0 -15
- package/lib/data/data1d/filter1d/exclusionZones.js +0 -32
- package/lib/data/data1d/filter1d/fft.d.ts +0 -18
- package/lib/data/data1d/filter1d/fft.js +0 -90
- package/lib/data/data1d/filter1d/phaseCorrection.d.ts +0 -26
- package/lib/data/data1d/filter1d/phaseCorrection.js +0 -64
- package/lib/data/data1d/filter1d/shiftX.d.ts +0 -20
- package/lib/data/data1d/filter1d/shiftX.js +0 -26
- package/lib/data/data1d/filter1d/signalProcessing.d.ts +0 -26
- package/lib/data/data1d/filter1d/signalProcessing.js +0 -65
- package/lib/data/data1d/filter1d/utils/padDataToNextPowerOfTwo.d.ts +0 -2
- package/lib/data/data1d/filter1d/utils/padDataToNextPowerOfTwo.js +0 -35
- package/lib/data/data1d/filter1d/zeroFilling.d.ts +0 -22
- package/lib/data/data1d/filter1d/zeroFilling.js +0 -60
- package/lib/data/data2d/filter2d/shiftX.d.ts +0 -18
- package/lib/data/data2d/filter2d/shiftX.js +0 -27
- package/lib/data/data2d/filter2d/shiftY.d.ts +0 -18
- package/lib/data/data2d/filter2d/shiftY.js +0 -27
- package/lib/data/types/view-state/PeaksViewState.d.ts +0 -17
- package/lib/data/types/view-state/PeaksViewState.js +0 -1
- package/lib/types/NMRiumGeneralPreferences.d.ts +0 -7
- package/lib/types/NMRiumGeneralPreferences.js +0 -1
- package/lib/types/NMRiumPanelPreferences.d.ts +0 -17
- package/lib/types/NMRiumPanelPreferences.js +0 -1
- package/lib/types/NMRiumToolBarPreferences.d.ts +0 -22
- package/lib/types/NMRiumToolBarPreferences.js +0 -1
- package/lib/types/PanelPreferencesType.d.ts +0 -4
- package/lib/types/PanelPreferencesType.js +0 -1
- package/lib-cjs/component/panels/predictionPanel/PredictionOptions.js +0 -102
- package/lib-cjs/component/workspaces/Workspace.js +0 -2
- package/lib-cjs/data/Filters.js +0 -38
- package/lib-cjs/data/FiltersManager.js +0 -206
- package/lib-cjs/data/data1d/Spectrum1D/getShiftX.js +0 -33
- package/lib-cjs/data/data1d/Spectrum1D/getSpectrumErrorValue.js +0 -8
- package/lib-cjs/data/data1d/Spectrum1D/integrals/checkIntegralKind.js +0 -13
- package/lib-cjs/data/data1d/Spectrum1D/integrals/mapIntegrals.js +0 -40
- package/lib-cjs/data/data1d/Spectrum1D/integrals/updateIntegrals.js +0 -10
- package/lib-cjs/data/data1d/Spectrum1D/integrals/updateIntegralsRelativeValues.js +0 -9
- package/lib-cjs/data/data1d/Spectrum1D/integrals/updateRelatives.js +0 -30
- package/lib-cjs/data/data1d/Spectrum1D/peaks/mapPeaks.js +0 -49
- package/lib-cjs/data/data1d/Spectrum1D/peaks/updatePeaks.js +0 -11
- package/lib-cjs/data/data1d/Spectrum1D/ranges/mapRanges.js +0 -82
- package/lib-cjs/data/data1d/Spectrum1D/ranges/updateRanges.js +0 -13
- package/lib-cjs/data/data1d/Spectrum1D/ranges/updateRangesRelativeValues.js +0 -9
- package/lib-cjs/data/data1d/filter1d/apodization.js +0 -88
- package/lib-cjs/data/data1d/filter1d/baselineCorrection.js +0 -60
- package/lib-cjs/data/data1d/filter1d/digitalFilter.js +0 -50
- package/lib-cjs/data/data1d/filter1d/equallySpaced.js +0 -61
- package/lib-cjs/data/data1d/filter1d/exclusionZones.js +0 -38
- package/lib-cjs/data/data1d/filter1d/fft.js +0 -96
- package/lib-cjs/data/data1d/filter1d/phaseCorrection.js +0 -70
- package/lib-cjs/data/data1d/filter1d/shiftX.js +0 -32
- package/lib-cjs/data/data1d/filter1d/signalProcessing.js +0 -95
- package/lib-cjs/data/data1d/filter1d/utils/padDataToNextPowerOfTwo.js +0 -39
- package/lib-cjs/data/data1d/filter1d/zeroFilling.js +0 -66
- package/lib-cjs/data/data2d/filter2d/shiftX.js +0 -33
- package/lib-cjs/data/data2d/filter2d/shiftY.js +0 -33
- package/lib-cjs/data/types/view-state/PeaksViewState.js +0 -2
- package/lib-cjs/types/NMRiumGeneralPreferences.js +0 -2
- package/lib-cjs/types/NMRiumPanelPreferences.js +0 -2
- package/lib-cjs/types/NMRiumToolBarPreferences.js +0 -2
- package/lib-cjs/types/PanelPreferencesType.js +0 -2
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NmrData1D, NmrData2D } from 'cheminfo-types';
|
|
2
|
+
import { Info1D, Info2D } from 'nmr-processing';
|
|
2
3
|
interface SpectrumWithStatisticsProps {
|
|
3
4
|
info: Info1D | Info2D;
|
|
4
|
-
datum:
|
|
5
|
+
datum: NmrData1D | NmrData2D;
|
|
5
6
|
ftCounter: number;
|
|
6
7
|
fidCounter: number;
|
|
7
8
|
}
|
|
@@ -86,7 +86,7 @@ export default function useExport() {
|
|
|
86
86
|
modal.show(_jsx(SaveAsModal, { name: fileName, onSave: saveHandler }), {
|
|
87
87
|
isBackgroundBlur: false,
|
|
88
88
|
position: positions.TOP_CENTER,
|
|
89
|
-
width:
|
|
89
|
+
width: 500,
|
|
90
90
|
});
|
|
91
91
|
}, [modal, saveHandler, state.data]);
|
|
92
92
|
return {
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { Filter } from 'nmr-processing';
|
|
2
|
+
export declare function useFilter(filterID: string): Filter | null;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { MultipleSpectraAnalysisPreferences, PanelsPreferences, WorkSpacePanelPreferences } from 'nmr-load-save';
|
|
1
2
|
import { MatrixOptions } from '../../data/types/data1d/MatrixOptions';
|
|
2
|
-
|
|
3
|
-
type Panel = 'spectra' | 'peaks' | 'integrals' | 'zones' | 'ranges' | 'database' | 'multipleSpectraAnalysis' | 'matrixGeneration';
|
|
3
|
+
type Panel = 'spectra' | 'peaks' | 'integrals' | 'zones' | 'ranges' | 'database' | 'multipleSpectraAnalysis' | 'matrixGeneration' | 'prediction';
|
|
4
4
|
export declare function usePanelPreferences<T extends Panel>(panelKey: T, nucleus: string): T extends 'matrixGeneration' ? MatrixOptions : T extends 'multipleSpectraAnalysis' ? MultipleSpectraAnalysisPreferences : WorkSpacePanelPreferences[T];
|
|
5
|
-
export declare function usePanelPreferences<T extends 'database'>(panelKey: T): WorkSpacePanelPreferences[
|
|
5
|
+
export declare function usePanelPreferences<T extends 'database' | 'prediction'>(panelKey: T): WorkSpacePanelPreferences[T];
|
|
6
6
|
export type UsePanelPreferencesByNucleiResult<T extends Panel> = T extends 'spectra' ? PanelsPreferences['spectra'] : T extends 'peaks' ? PanelsPreferences['peaks'] : T extends 'integrals' ? PanelsPreferences['integrals'] : T extends 'zones' ? PanelsPreferences['zones'] : T extends 'ranges' ? PanelsPreferences['ranges'] : T extends 'multipleSpectraAnalysis' ? PanelsPreferences['multipleSpectraAnalysis'] : T extends 'matrixGeneration' ? PanelsPreferences['matrixGeneration'] : void;
|
|
7
7
|
export declare function usePanelPreferencesByNuclei<T extends Panel>(panelKey: T, nuclei: string[]): UsePanelPreferencesByNucleiResult<T>;
|
|
8
8
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import has from 'lodash/has';
|
|
2
2
|
import { useMemo } from 'react';
|
|
3
|
+
import { defaultPredictionOptions } from '../../data/PredictionManager';
|
|
3
4
|
import { usePreferences } from '../context/PreferencesContext';
|
|
4
5
|
import { getIntegralDefaultValues, getPeaksDefaultValues, getZoneDefaultValues, getRangeDefaultValues, databaseDefaultValues, getMultipleSpectraAnalysisDefaultValues, getSpectraDefaultValues, } from '../reducer/preferences/panelsPreferencesDefaultValues';
|
|
5
6
|
import { getValue } from '../utility/LocalStorage';
|
|
@@ -20,6 +21,8 @@ function getDefaultPreferences(panelKey, nucleus) {
|
|
|
20
21
|
return databaseDefaultValues;
|
|
21
22
|
case 'multipleSpectraAnalysis':
|
|
22
23
|
return getMultipleSpectraAnalysisDefaultValues(nucleus);
|
|
24
|
+
case 'prediction':
|
|
25
|
+
return defaultPredictionOptions;
|
|
23
26
|
default:
|
|
24
27
|
return {};
|
|
25
28
|
}
|
|
@@ -57,6 +60,7 @@ function getPanelPreferences(preferences, panelKey, nucleus, returnOnlyNucleusPr
|
|
|
57
60
|
case 'matrixGeneration':
|
|
58
61
|
return nucleus ? panelPreferences[nucleus] : {};
|
|
59
62
|
case 'database':
|
|
63
|
+
case 'prediction':
|
|
60
64
|
return panelPreferences;
|
|
61
65
|
default:
|
|
62
66
|
return nucleus
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Formik } from 'formik';
|
|
3
|
-
import { useRef, forwardRef
|
|
3
|
+
import { useRef, forwardRef } from 'react';
|
|
4
4
|
import { Modal, useOnOff } from 'react-science/ui';
|
|
5
5
|
import * as Yup from 'yup';
|
|
6
6
|
import { usePreferences } from '../context/PreferencesContext';
|
|
@@ -23,30 +23,32 @@ const WorkspaceAddForm = forwardRef(({ className, message, onSave }, ref) => {
|
|
|
23
23
|
export function useSaveSettings() {
|
|
24
24
|
const alert = useAlert();
|
|
25
25
|
const [isOpenDialog, openDialog, closeDialog] = useOnOff(false);
|
|
26
|
-
const
|
|
26
|
+
const settingsRef = useRef();
|
|
27
27
|
const { dispatch, current } = usePreferences();
|
|
28
28
|
const formRef = useRef(null);
|
|
29
|
-
function addNewWorkspace(workspaceName
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
29
|
+
function addNewWorkspace({ workspaceName }) {
|
|
30
|
+
if (settingsRef.current) {
|
|
31
|
+
dispatch({
|
|
32
|
+
type: 'ADD_WORKSPACE',
|
|
33
|
+
payload: {
|
|
34
|
+
workspaceKey: workspaceName,
|
|
35
|
+
data: settingsRef.current,
|
|
36
|
+
},
|
|
37
|
+
});
|
|
38
|
+
closeDialog();
|
|
39
|
+
alert.success('Preferences saved successfully');
|
|
40
|
+
}
|
|
39
41
|
}
|
|
40
42
|
return {
|
|
41
43
|
saveSettings: (values) => {
|
|
42
|
-
|
|
44
|
+
settingsRef.current = values;
|
|
43
45
|
if (current.source !== 'user') {
|
|
44
46
|
openDialog();
|
|
45
47
|
}
|
|
46
48
|
else {
|
|
47
49
|
dispatch({
|
|
48
50
|
type: 'SET_PREFERENCES',
|
|
49
|
-
payload: values,
|
|
51
|
+
...(values && { payload: values }),
|
|
50
52
|
});
|
|
51
53
|
closeDialog();
|
|
52
54
|
}
|
|
@@ -54,7 +56,7 @@ export function useSaveSettings() {
|
|
|
54
56
|
SaveSettingsModal: () => {
|
|
55
57
|
const alertConfig = {
|
|
56
58
|
message: 'Please enter a new user workspace name in order to save your changes locally',
|
|
57
|
-
render: (props) => (_jsx(WorkspaceAddForm, { ...props, onSave:
|
|
59
|
+
render: (props) => (_jsx(WorkspaceAddForm, { ...props, onSave: addNewWorkspace, ref: formRef })),
|
|
58
60
|
buttons: [
|
|
59
61
|
{
|
|
60
62
|
text: 'Save',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function useVerticalAlign():
|
|
1
|
+
export declare function useVerticalAlign(): any;
|
|
@@ -70,7 +70,7 @@ function DropZone(props) {
|
|
|
70
70
|
const { nmrLoaders: sourceSelector } = preferences.current;
|
|
71
71
|
const { nmriumState, containsNmrium } = await readDropFiles(fileCollection, {
|
|
72
72
|
sourceSelector,
|
|
73
|
-
logger: logger.child({ context: 'nmr-
|
|
73
|
+
logger: logger.child({ context: 'nmr-processing' }),
|
|
74
74
|
});
|
|
75
75
|
if (nmriumState?.settings) {
|
|
76
76
|
dispatchPreferences({
|
|
@@ -95,7 +95,6 @@ function DropZone(props) {
|
|
|
95
95
|
catch (error) {
|
|
96
96
|
alert.error(error.message);
|
|
97
97
|
logger.error(error);
|
|
98
|
-
reportError(error);
|
|
99
98
|
}
|
|
100
99
|
finally {
|
|
101
100
|
dispatch({ type: 'SET_LOADING_FLAG', payload: { isLoading: false } });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { PeaksNucleusPreferences } from 'nmr-load-save';
|
|
2
|
+
import { Peak1D } from 'nmr-processing';
|
|
3
3
|
interface EditPeakShapeModalProps {
|
|
4
4
|
onClose?: (element?: string) => void;
|
|
5
5
|
peak: Peak1D;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
interface LoadJCAMPModalProps {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
onCloseDialog: () => void;
|
|
3
|
+
isOpen: boolean;
|
|
4
4
|
}
|
|
5
|
-
export
|
|
5
|
+
export declare function LoadJCAMPModal({ onCloseDialog, isOpen }: LoadJCAMPModalProps): import("@emotion/react/jsx-runtime").JSX.Element | undefined;
|
|
6
6
|
export {};
|
|
@@ -1,88 +1,70 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
2
2
|
/** @jsxImportSource @emotion/react */
|
|
3
|
-
import {
|
|
3
|
+
import { Formik } from 'formik';
|
|
4
4
|
import { readFromWebSource } from 'nmr-load-save';
|
|
5
|
-
import { useRef
|
|
5
|
+
import { useRef } from 'react';
|
|
6
|
+
import { Modal } from 'react-science/ui';
|
|
7
|
+
import * as Yup from 'yup';
|
|
6
8
|
import { useDispatch } from '../context/DispatchContext';
|
|
7
9
|
import Button from '../elements/Button';
|
|
8
|
-
import
|
|
10
|
+
import Label from '../elements/Label';
|
|
11
|
+
import FormikError from '../elements/formik/FormikError';
|
|
12
|
+
import FormikInput from '../elements/formik/FormikInput';
|
|
9
13
|
import { useAlert } from '../elements/popup/Alert/Context';
|
|
10
|
-
import { extractFileMetaFromPath } from '../utility/FileUtility';
|
|
11
|
-
const styles = css `
|
|
12
|
-
display: flex;
|
|
13
|
-
flex-direction: column;
|
|
14
|
-
width: 450px;
|
|
15
|
-
padding: 5px;
|
|
16
|
-
|
|
17
|
-
button:focus {
|
|
18
|
-
outline: none;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.header {
|
|
22
|
-
height: 24px;
|
|
23
|
-
border-bottom: 1px solid #f0f0f0;
|
|
24
|
-
display: flex;
|
|
25
|
-
|
|
26
|
-
span {
|
|
27
|
-
color: #464646;
|
|
28
|
-
font-size: 15px;
|
|
29
|
-
flex: 1;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
button {
|
|
33
|
-
background-color: transparent;
|
|
34
|
-
border: none;
|
|
35
|
-
|
|
36
|
-
svg {
|
|
37
|
-
height: 16px;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.container {
|
|
43
|
-
display: flex;
|
|
44
|
-
margin: 30px 5px;
|
|
45
|
-
align-items: center;
|
|
46
|
-
height: 36px;
|
|
47
|
-
|
|
48
|
-
input {
|
|
49
|
-
padding: 5px;
|
|
50
|
-
border: 1px solid gray;
|
|
51
|
-
border-radius: 5px;
|
|
52
|
-
margin: 2px;
|
|
53
|
-
flex: 10;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
button {
|
|
57
|
-
flex: 2;
|
|
58
|
-
height: 100%;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
`;
|
|
62
14
|
const allowedExtensions = new Set(['dx', 'jdx', 'jcamp']);
|
|
63
|
-
|
|
64
|
-
|
|
15
|
+
const loadFormValidation = Yup.object({
|
|
16
|
+
url: Yup.string()
|
|
17
|
+
.url()
|
|
18
|
+
.required()
|
|
19
|
+
.test('file type', 'Imported file must be one of those extensions [ .jdx, .dx, .jcamp ]', (url) => {
|
|
20
|
+
try {
|
|
21
|
+
const fileURL = new URL(url);
|
|
22
|
+
const extension = fileURL.pathname.split('.')?.[1] || '';
|
|
23
|
+
if (allowedExtensions.has(extension)) {
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
catch {
|
|
28
|
+
return false;
|
|
29
|
+
}
|
|
30
|
+
return false;
|
|
31
|
+
}),
|
|
32
|
+
});
|
|
33
|
+
const labelStyle = {
|
|
34
|
+
wrapper: { display: 'flex', height: '100%', flex: 1 },
|
|
35
|
+
};
|
|
36
|
+
export function LoadJCAMPModal({ onCloseDialog, isOpen }) {
|
|
65
37
|
const dispatch = useDispatch();
|
|
66
38
|
const alert = useAlert();
|
|
67
|
-
const
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
39
|
+
const ref = useRef(null);
|
|
40
|
+
if (!isOpen)
|
|
41
|
+
return;
|
|
42
|
+
async function loadJCAMPHandler({ url }) {
|
|
43
|
+
const hidLoading = await alert.showLoading('Load JCAMP from external URL in progress ...');
|
|
44
|
+
const { pathname, origin } = new URL(url);
|
|
45
|
+
try {
|
|
46
|
+
const nmriumState = await readFromWebSource({
|
|
74
47
|
entries: [{ relativePath: pathname, baseURL: origin }],
|
|
75
|
-
})
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
});
|
|
80
|
-
onClose?.();
|
|
48
|
+
});
|
|
49
|
+
dispatch({
|
|
50
|
+
type: 'LOAD_DROP_FILES',
|
|
51
|
+
payload: { nmriumState, resetSourceObject: false },
|
|
81
52
|
});
|
|
82
53
|
}
|
|
83
|
-
|
|
84
|
-
alert.error(
|
|
54
|
+
catch {
|
|
55
|
+
alert.error(`Failed to load ${url}`);
|
|
85
56
|
}
|
|
86
|
-
|
|
87
|
-
|
|
57
|
+
finally {
|
|
58
|
+
hidLoading();
|
|
59
|
+
onCloseDialog?.();
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
return (_jsxs(Modal, { hasCloseButton: true, isOpen: true, onRequestClose: onCloseDialog, children: [_jsx(Modal.Header, { children: "Load JCAMP Dialog" }), _jsx(Modal.Body, { children: _jsx("div", { style: { minWidth: '400px', padding: '1.5em' }, children: _jsx(Formik, { initialValues: { url: '' }, validationSchema: loadFormValidation, onSubmit: loadJCAMPHandler, innerRef: ref, children: _jsx(Label, { title: "URL", style: labelStyle, children: _jsx(FormikError, { name: "url", style: { container: { flex: 1 } }, children: _jsx(FormikInput, { name: "url", type: "string", style: {
|
|
63
|
+
input: {
|
|
64
|
+
padding: '0.8em',
|
|
65
|
+
textAlign: 'left',
|
|
66
|
+
width: '100%',
|
|
67
|
+
},
|
|
68
|
+
inputWrapper: { width: '100%' },
|
|
69
|
+
}, placeholder: "Enter URL to JCAMP-DX file" }) }) }) }) }) }), _jsx(Modal.Footer, { children: _jsx("div", { style: { display: 'flex', flexDirection: 'row-reverse' }, children: _jsx(Button.Done, { onClick: () => ref.current?.submitForm(), children: "Load" }) }) })] }));
|
|
88
70
|
}
|
|
@@ -66,16 +66,6 @@ export const ModalStyles = css `
|
|
|
66
66
|
margin: 10px;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
.input {
|
|
70
|
-
font-size: 14px;
|
|
71
|
-
border-radius: 5px;
|
|
72
|
-
border: 1px solid #cccccc;
|
|
73
|
-
padding: 5px;
|
|
74
|
-
width: 100px;
|
|
75
|
-
margin-right: 10px;
|
|
76
|
-
height: initial !important;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
69
|
.close-bt {
|
|
80
70
|
border: none;
|
|
81
71
|
color: red;
|
|
@@ -2,7 +2,8 @@ import { StateMoleculeExtended } from '../../data/molecules/Molecule';
|
|
|
2
2
|
interface MoleculeStructureEditorModalProps {
|
|
3
3
|
onClose?: (element?: string) => void;
|
|
4
4
|
selectedMolecule?: StateMoleculeExtended;
|
|
5
|
+
floatMoleculeOnSave?: boolean;
|
|
5
6
|
}
|
|
6
7
|
declare function MoleculeStructureEditorModal(props: MoleculeStructureEditorModalProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
|
-
export declare function useMoleculeEditor(): (molecule?: StateMoleculeExtended) => void;
|
|
8
|
+
export declare function useMoleculeEditor(floatMoleculeOnSave?: boolean): (molecule?: StateMoleculeExtended) => void;
|
|
8
9
|
export default MoleculeStructureEditorModal;
|
|
@@ -8,7 +8,7 @@ import { useModal } from '../elements/popup/Modal';
|
|
|
8
8
|
import { positions } from '../elements/popup/options';
|
|
9
9
|
import { ModalStyles } from './ModalStyle';
|
|
10
10
|
function MoleculeStructureEditorModal(props) {
|
|
11
|
-
const { onClose = () => null, selectedMolecule } = props;
|
|
11
|
+
const { onClose = () => null, selectedMolecule, floatMoleculeOnSave = false, } = props;
|
|
12
12
|
const [molfile, setMolfile] = useState(null);
|
|
13
13
|
const dispatch = useDispatch();
|
|
14
14
|
useEffect(() => {
|
|
@@ -45,21 +45,27 @@ function MoleculeStructureEditorModal(props) {
|
|
|
45
45
|
onClose('replace');
|
|
46
46
|
}
|
|
47
47
|
else {
|
|
48
|
-
dispatch({
|
|
48
|
+
dispatch({
|
|
49
|
+
type: 'ADD_MOLECULE',
|
|
50
|
+
payload: {
|
|
51
|
+
molfile,
|
|
52
|
+
floatMoleculeOnSave,
|
|
53
|
+
},
|
|
54
|
+
});
|
|
49
55
|
onClose('new');
|
|
50
56
|
}
|
|
51
57
|
}
|
|
52
|
-
}, [
|
|
58
|
+
}, [molfile, selectedMolecule, dispatch, floatMoleculeOnSave, onClose]);
|
|
53
59
|
return (_jsxs("div", { css: ModalStyles, children: [_jsx(StructureEditor, { initialMolfile: selectedMolecule?.molfile, svgMenu: true, fragment: false, onChange: cb }), _jsx("div", { className: "footer-container", children: _jsx(ActionButtons, { style: { flexDirection: 'row-reverse', margin: 0 }, onDone: handleSave, doneLabel: "Save", onCancel: handleClose }) })] }));
|
|
54
60
|
}
|
|
55
|
-
export function useMoleculeEditor() {
|
|
61
|
+
export function useMoleculeEditor(floatMoleculeOnSave = false) {
|
|
56
62
|
const modal = useModal();
|
|
57
63
|
return useCallback((molecule) => {
|
|
58
|
-
modal.show(_jsx(MoleculeStructureEditorModal, { selectedMolecule: molecule }), {
|
|
64
|
+
modal.show(_jsx(MoleculeStructureEditorModal, { selectedMolecule: molecule, floatMoleculeOnSave: floatMoleculeOnSave }), {
|
|
59
65
|
position: positions.TOP_CENTER,
|
|
60
66
|
width: 700,
|
|
61
67
|
height: 500,
|
|
62
68
|
});
|
|
63
|
-
}, [modal]);
|
|
69
|
+
}, [floatMoleculeOnSave, modal]);
|
|
64
70
|
}
|
|
65
71
|
export default MoleculeStructureEditorModal;
|
|
@@ -2,11 +2,11 @@ import { Spectrum } from 'nmr-load-save';
|
|
|
2
2
|
import { ActiveSpectrum } from '../reducer/Reducer';
|
|
3
3
|
interface MultipletAnalysisModalProps {
|
|
4
4
|
data: Spectrum[];
|
|
5
|
-
activeSpectrum: ActiveSpectrum;
|
|
5
|
+
activeSpectrum: ActiveSpectrum | null;
|
|
6
6
|
scaleX: any;
|
|
7
7
|
startX: any;
|
|
8
8
|
endX: any;
|
|
9
|
-
onClose
|
|
9
|
+
onClose?: (element?: string) => void;
|
|
10
10
|
}
|
|
11
11
|
export default function MultipletAnalysisModal({ data, activeSpectrum, scaleX, startX, endX, onClose, }: MultipletAnalysisModalProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
12
12
|
export {};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { StateMoleculeExtended } from '../../data/molecules/Molecule';
|
|
1
2
|
interface PredictSpectraModalProps {
|
|
2
3
|
onClose?: (element?: string) => void;
|
|
3
|
-
|
|
4
|
+
molecule: StateMoleculeExtended;
|
|
4
5
|
}
|
|
5
|
-
declare function PredictSpectraModal({ onClose,
|
|
6
|
+
declare function PredictSpectraModal({ onClose, molecule, }: PredictSpectraModalProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare function usePredictSpectraModal(): (molecule: StateMoleculeExtended) => void;
|
|
6
8
|
export default PredictSpectraModal;
|
|
@@ -1,50 +1,25 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
2
2
|
/** @jsxImportSource @emotion/react */
|
|
3
3
|
import { css } from '@emotion/react';
|
|
4
|
-
import { Formik } from 'formik';
|
|
5
4
|
import { useCallback, useRef, useState, useMemo } from 'react';
|
|
6
|
-
import
|
|
7
|
-
import { defaultPredictionOptions, FREQUENCIES, } from '../../data/PredictionManager';
|
|
8
|
-
import generateNumbersPowerOfX from '../../data/utilities/generateNumbersPowerOfX';
|
|
5
|
+
import { defaultPredictionOptions, predictSpectra, } from '../../data/PredictionManager';
|
|
9
6
|
import { useChartData } from '../context/ChartContext';
|
|
10
7
|
import { useDispatch } from '../context/DispatchContext';
|
|
8
|
+
import { useLogger } from '../context/LoggerContext';
|
|
11
9
|
import Button from '../elements/Button';
|
|
12
10
|
import CheckBox from '../elements/CheckBox';
|
|
13
11
|
import CloseButton from '../elements/CloseButton';
|
|
14
|
-
import IsotopesViewer from '../elements/IsotopesViewer';
|
|
15
|
-
import Label from '../elements/Label';
|
|
16
|
-
import FormikCheckBox from '../elements/formik/FormikCheckBox';
|
|
17
|
-
import FormikErrorsSummary from '../elements/formik/FormikErrorsSummary';
|
|
18
|
-
import FormikInput from '../elements/formik/FormikInput';
|
|
19
|
-
import FormikSelect from '../elements/formik/FormikSelect';
|
|
20
12
|
import { useAlert } from '../elements/popup/Alert';
|
|
13
|
+
import { useModal } from '../elements/popup/Modal';
|
|
14
|
+
import { positions } from '../elements/popup/options';
|
|
15
|
+
import PredictionPreferences from '../panels/predictionPanel/PredictionOptionsPanel';
|
|
21
16
|
import { useStateWithLocalStorage } from '../utility/LocalStorage';
|
|
22
17
|
import { ModalStyles } from './ModalStyle';
|
|
23
18
|
const styles = css `
|
|
24
|
-
.row {
|
|
25
|
-
align-items: center;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
19
|
.inner-content {
|
|
29
20
|
flex: 1;
|
|
30
21
|
}
|
|
31
22
|
|
|
32
|
-
.custom-label {
|
|
33
|
-
width: 160px;
|
|
34
|
-
font-weight: 500;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.nucleus-label {
|
|
38
|
-
padding: 0 10px;
|
|
39
|
-
color: black;
|
|
40
|
-
font-weight: 700;
|
|
41
|
-
|
|
42
|
-
&.disabled {
|
|
43
|
-
opacity: 0.5;
|
|
44
|
-
color: black;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
23
|
.warning {
|
|
49
24
|
color: #c40000;
|
|
50
25
|
font-weight: bold;
|
|
@@ -61,59 +36,8 @@ const styles = css `
|
|
|
61
36
|
margin: 5px 5px 5px 0;
|
|
62
37
|
}
|
|
63
38
|
}
|
|
64
|
-
|
|
65
|
-
.middle-x {
|
|
66
|
-
padding: 0 10px;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.group-label {
|
|
70
|
-
width: 100%;
|
|
71
|
-
display: block;
|
|
72
|
-
border-bottom: 1px solid #efefef;
|
|
73
|
-
padding-bottom: 5px;
|
|
74
|
-
font-weight: 600;
|
|
75
|
-
color: #005d9e;
|
|
76
|
-
}
|
|
77
39
|
`;
|
|
78
|
-
|
|
79
|
-
const NUMBER_OF_POINTS_2D = generateNumbersPowerOfX(10, 10, {
|
|
80
|
-
format: (value) => value,
|
|
81
|
-
});
|
|
82
|
-
const predictionFormValidation = Yup.object().shape({
|
|
83
|
-
name: Yup.string().required().label('Name'),
|
|
84
|
-
frequency: Yup.number().integer().required().label('Frequency'),
|
|
85
|
-
'1d': Yup.object({
|
|
86
|
-
'1H': Yup.object({
|
|
87
|
-
from: Yup.number().required().label("1H ' From ' "),
|
|
88
|
-
to: Yup.number().required().label("1H ' To ' "),
|
|
89
|
-
}),
|
|
90
|
-
'13C': Yup.object().shape({
|
|
91
|
-
from: Yup.number().required().label("13C ' From ' "),
|
|
92
|
-
to: Yup.number().required().label("13C ' To ' "),
|
|
93
|
-
}),
|
|
94
|
-
lineWidth: Yup.number().integer().min(1).required().label('Line Width'),
|
|
95
|
-
nbPoints: Yup.number().integer().required().label('1D Number Of Points'),
|
|
96
|
-
}),
|
|
97
|
-
'2d': Yup.object({
|
|
98
|
-
nbPoints: Yup.object({
|
|
99
|
-
x: Yup.number().integer().required().label('2D Number Of Points'),
|
|
100
|
-
y: Yup.number().integer().required().label('2D Number Of Points'),
|
|
101
|
-
}),
|
|
102
|
-
}),
|
|
103
|
-
spectra: Yup.object({
|
|
104
|
-
proton: Yup.boolean(),
|
|
105
|
-
carbon: Yup.boolean(),
|
|
106
|
-
cosy: Yup.boolean(),
|
|
107
|
-
hsqc: Yup.boolean(),
|
|
108
|
-
hmbc: Yup.boolean(),
|
|
109
|
-
}).test('check-options', 'You must check one of the options to start prediction', (obj) => {
|
|
110
|
-
if (Object.values(obj).includes(true)) {
|
|
111
|
-
return true;
|
|
112
|
-
}
|
|
113
|
-
return false;
|
|
114
|
-
}),
|
|
115
|
-
});
|
|
116
|
-
function PredictSpectraModal({ onClose = () => null, molfile, }) {
|
|
40
|
+
function PredictSpectraModal({ onClose = () => null, molecule, }) {
|
|
117
41
|
const refForm = useRef();
|
|
118
42
|
const dispatch = useDispatch();
|
|
119
43
|
const alert = useAlert();
|
|
@@ -130,37 +54,61 @@ function PredictSpectraModal({ onClose = () => null, molfile, }) {
|
|
|
130
54
|
name: `Prediction ${predictionIndex + 1}`,
|
|
131
55
|
});
|
|
132
56
|
}, [predictionPreferences, predictionIndex]);
|
|
57
|
+
const { logger } = useLogger();
|
|
133
58
|
const submitHandler = useCallback((values) => {
|
|
134
59
|
void (async () => {
|
|
135
|
-
if (
|
|
60
|
+
if (molecule) {
|
|
61
|
+
const { molfile } = molecule;
|
|
136
62
|
setPredictionPreferences({ ...values, isApproved });
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
payload: {
|
|
140
|
-
isLoading: true,
|
|
141
|
-
},
|
|
142
|
-
});
|
|
143
|
-
const predictedSpectra = Object.entries(values.spectra)
|
|
144
|
-
.map(([key, value]) => {
|
|
63
|
+
const predictedSpectra = [];
|
|
64
|
+
for (const [key, value] of Object.entries(values.spectra)) {
|
|
145
65
|
if (value) {
|
|
146
|
-
|
|
66
|
+
predictedSpectra.push(key);
|
|
147
67
|
}
|
|
148
|
-
|
|
149
|
-
})
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
68
|
+
}
|
|
69
|
+
const hideLoading = await alert.showLoading(`Predict ${predictedSpectra.join(',')} in progress`);
|
|
70
|
+
try {
|
|
71
|
+
const data = await predictSpectra(molfile, logger);
|
|
72
|
+
dispatch({
|
|
73
|
+
type: 'PREDICT_SPECTRA',
|
|
74
|
+
payload: {
|
|
75
|
+
predictedSpectra: data.spectra,
|
|
76
|
+
options: values,
|
|
77
|
+
molecule,
|
|
78
|
+
},
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
catch (error) {
|
|
82
|
+
alert.error(error?.message);
|
|
83
|
+
}
|
|
84
|
+
finally {
|
|
85
|
+
hideLoading();
|
|
86
|
+
onClose();
|
|
87
|
+
}
|
|
158
88
|
}
|
|
159
89
|
})();
|
|
160
|
-
}, [
|
|
90
|
+
}, [
|
|
91
|
+
alert,
|
|
92
|
+
dispatch,
|
|
93
|
+
isApproved,
|
|
94
|
+
molecule,
|
|
95
|
+
onClose,
|
|
96
|
+
logger,
|
|
97
|
+
setPredictionPreferences,
|
|
98
|
+
]);
|
|
161
99
|
const approveCheckHandler = useCallback((e) => {
|
|
162
100
|
setApproved(e.target.checked);
|
|
163
101
|
}, []);
|
|
164
|
-
return (_jsxs("div", { css: [ModalStyles, styles], children: [_jsxs("div", { className: "header handle", children: [_jsx("span", { children: "Prediction of NMR spectrum" }), _jsx(CloseButton, { onClick: onClose, className: "close-bt" })] }), _jsxs("div", { className: "inner-content", children: [_jsx(
|
|
102
|
+
return (_jsxs("div", { css: [ModalStyles, styles], children: [_jsxs("div", { className: "header handle", children: [_jsx("span", { children: "Prediction of NMR spectrum" }), _jsx(CloseButton, { onClick: onClose, className: "close-bt" })] }), _jsxs("div", { className: "inner-content", children: [_jsx(PredictionPreferences, { onSubmit: submitHandler, options: initValues, ref: refForm }), _jsx("p", { className: "warning", children: "In order to predict spectra we are calling an external service and the chemical structure will leave your browser! You should never predict spectra for confidential molecules." }), _jsxs("div", { className: "warning-container", children: [_jsx(CheckBox, { onChange: approveCheckHandler, checked: isApproved }, String(isApproved)), _jsx("p", { children: "I confirm that the chemical structure is not confidential." })] })] }), _jsx("div", { className: "footer-container", children: _jsx(Button.Done, { onClick: handleSave, disabled: !isApproved, children: "Predict spectrum" }) })] }));
|
|
103
|
+
}
|
|
104
|
+
export function usePredictSpectraModal() {
|
|
105
|
+
const modal = useModal();
|
|
106
|
+
return (molecule) => {
|
|
107
|
+
modal.show(_jsx(PredictSpectraModal, { molecule: molecule }), {
|
|
108
|
+
position: positions.TOP_CENTER,
|
|
109
|
+
enableResizing: true,
|
|
110
|
+
width: 600,
|
|
111
|
+
});
|
|
112
|
+
};
|
|
165
113
|
}
|
|
166
114
|
export default PredictSpectraModal;
|