nmrium 0.36.0 → 0.38.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/FooterBanner.js +1 -1
- package/lib/component/1d/Viewer1D.js +26 -21
- package/lib/component/1d/integral/Integral.d.ts +2 -6
- package/lib/component/1d/integral/IntegralResizable.d.ts +2 -6
- package/lib/component/1d/integral/IntegralResizable.js +2 -3
- package/lib/component/1d/multiAnalysis/MultiAnalysisRanges.js +1 -1
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js +7 -9
- package/lib/component/1d/peaks/PeakAnnotation.js +1 -2
- package/lib/component/1d/ranges/Range.js +9 -8
- package/lib/component/1d/ranges/Ranges.js +5 -7
- package/lib/component/1d/tool/BaseLineZones.js +1 -2
- package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.js +4 -5
- package/lib/component/1d-2d/components/FloatMoleculeStructures/index.js +13 -17
- package/lib/component/2d/1d-tracer/Left1DChart.js +1 -1
- package/lib/component/2d/1d-tracer/VerticalSliceChart.js +1 -1
- package/lib/component/2d/Chart2D.js +1 -1
- package/lib/component/2d/Viewer2D.js +10 -9
- package/lib/component/2d/fid/FidCanvas.js +4 -6
- package/lib/component/2d/ft/Contours.js +1 -7
- package/lib/component/2d/utilities/DimensionLayout.d.ts +9 -24
- package/lib/component/2d/utilities/scale.d.ts +2 -1
- package/lib/component/2d/utilities/scale.js +1 -1
- package/lib/component/2d/zones/Zones.js +1 -1
- package/lib/component/EventsTrackers/KeysListenerTracker.js +28 -21
- package/lib/component/NMRium.d.ts +2 -0
- package/lib/component/NMRium.js +22 -15
- package/lib/component/assignment/AssignmentsReducer.d.ts +1 -1
- package/lib/component/context/DispatchContext.d.ts +23 -3
- package/lib/component/context/DispatchContext.js +1 -1
- package/lib/component/context/LoggerContext.js +1 -1
- package/lib/component/elements/Button.js +7 -9
- package/lib/component/elements/IsotopesViewer.js +1 -1
- package/lib/component/elements/ReactTable/ReactTable.js +1 -2
- package/lib/component/elements/RemoveAssignmentsButton.d.ts +4 -0
- package/lib/component/{panels/RangesPanel/TableColumns → elements}/RemoveAssignmentsButton.js +14 -1
- package/lib/component/elements/formik/FormikCheckBox.js +1 -1
- package/lib/component/elements/formik/FormikColorInput.js +1 -1
- package/lib/component/elements/formik/FormikColorPicker.js +1 -1
- package/lib/component/elements/formik/FormikColumnFormatField.js +1 -1
- package/lib/component/elements/formik/FormikInput.js +1 -1
- package/lib/component/elements/formik/FormikSelect.js +2 -2
- package/lib/component/elements/formik/FormikSlider.js +1 -1
- package/lib/component/elements/formik/FormikTextarea.js +2 -2
- package/lib/component/header/ApodizationOptionsPanel.js +4 -5
- package/lib/component/header/AutoPeakPickingOptionPanel.js +1 -2
- package/lib/component/header/BaseLineCorrectionPanel.js +4 -5
- package/lib/component/header/Header.js +5 -7
- package/lib/component/header/PhaseCorrectionPanel.js +7 -8
- package/lib/component/header/RangesPickingOptionPanel.js +1 -2
- package/lib/component/header/ZeroFillingOptionsPanel.js +3 -11
- package/lib/component/header/Zones2DOptionPanel.js +5 -6
- package/lib/component/hooks/useExport.js +1 -0
- package/lib/component/hooks/useToolsFunctions.js +8 -10
- package/lib/component/loader/DropZone.js +4 -5
- package/lib/component/loader/NoData.js +1 -1
- package/lib/component/modal/AboutPredictionModal.d.ts +2 -0
- package/lib/component/modal/AboutPredictionModal.js +49 -0
- package/lib/component/modal/AlignSpectraModal.js +1 -2
- package/lib/component/modal/EditPeakShapeModal.js +1 -2
- package/lib/component/modal/ImportPublicationStringModal.js +1 -2
- package/lib/component/modal/LoadJCAMPModal.js +2 -3
- package/lib/component/modal/MoleculeStructureEditorModal.js +24 -19
- package/lib/component/modal/PredictSpectraModal.js +24 -21
- package/lib/component/modal/changeSum/SelectMolecule.js +1 -1
- package/lib/component/modal/editRange/EditRangeModal.js +3 -4
- package/lib/component/modal/editRange/forms/components/AddSignalFormTab.js +2 -2
- package/lib/component/modal/editRange/forms/components/CouplingsTable.js +1 -1
- package/lib/component/modal/metaImportation/MetaImportationModal.js +2 -3
- package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.js +4 -4
- package/lib/component/modal/setting/settings-tabs/FormattingTabContent.js +2 -2
- package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.js +2 -2
- package/lib/component/panels/AutomaticAssignment/AutomaticAssignmentTable.js +1 -2
- package/lib/component/panels/AutomaticAssignment/useAutoAssignments.js +7 -6
- package/lib/component/panels/InformationPanel.js +6 -6
- package/lib/component/panels/IntegralsPanel/IntegralPanel.js +11 -20
- package/lib/component/panels/IntegralsPanel/IntegralTable.js +27 -23
- package/lib/component/panels/IntegralsPanel/IntegralsPreferences.js +8 -5
- package/lib/component/panels/MatrixGenerationPanel/ExclusionsZonesTable.js +1 -1
- package/lib/component/panels/MatrixGenerationPanel/FiltersOptions.js +4 -4
- package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.js +1 -2
- package/lib/component/panels/MoleculesPanel/MoleculeHeader.js +1 -2
- package/lib/component/panels/MoleculesPanel/MoleculePanel.js +10 -13
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.d.ts +1 -0
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +7 -7
- package/lib/component/panels/MoleculesPanel/Utilities.d.ts +4 -1
- package/lib/component/panels/MoleculesPanel/Utilities.js +2 -2
- package/lib/component/panels/MoleculesPanel/useAtomAssignment.js +8 -9
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPanel.js +3 -4
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisTable.js +1 -2
- package/lib/component/panels/MultipleSpectraAnalysisPanel/preferences/AnalysisTablePreferences.js +2 -2
- package/lib/component/panels/MultipleSpectraAnalysisPanel/preferences/LegendsPreferences.js +2 -2
- package/lib/component/panels/MultipleSpectraAnalysisPanel/preferences/MultipleAnalysisCodeEditor.js +1 -1
- package/lib/component/panels/Panels.js +1 -1
- package/lib/component/panels/PeaksPanel/PeaksPanel.js +4 -5
- package/lib/component/panels/PeaksPanel/PeaksTable.js +4 -5
- package/lib/component/panels/RangesPanel/RangesHeader.js +12 -15
- package/lib/component/panels/RangesPanel/RangesPanel.js +24 -29
- package/lib/component/panels/RangesPanel/RangesTableRow.d.ts +0 -1
- package/lib/component/panels/RangesPanel/RangesTableRow.js +0 -11
- package/lib/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.js +2 -3
- package/lib/component/panels/RangesPanel/TableColumns/RelativeColumn.js +3 -3
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentsColumn.js +2 -3
- package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.js +1 -2
- package/lib/component/panels/RangesPanel/hooks/useEditRangeModal.d.ts +1 -1
- package/lib/component/panels/RangesPanel/hooks/useEditRangeModal.js +16 -14
- package/lib/component/panels/SpectrumsPanel/SpectraPanelHeader.js +16 -16
- package/lib/component/panels/SpectrumsPanel/SpectraPreferences.js +2 -2
- package/lib/component/panels/SpectrumsPanel/SpectraTable.js +7 -5
- package/lib/component/panels/SpectrumsPanel/SpectrumsTabs.js +4 -5
- package/lib/component/panels/SpectrumsPanel/base/ShowHideSpectrumButton.js +3 -7
- package/lib/component/panels/SpectrumsPanel/base/SpectraColumnsManager.js +1 -1
- package/lib/component/panels/SpectrumsPanel/base/setting/SpectrumSetting.js +4 -2
- package/lib/component/panels/SpectrumsPanel/base/setting/processSnapPlot.js +2 -2
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js +4 -8
- package/lib/component/panels/SummaryPanel/SummaryPanel.js +39 -34
- package/lib/component/panels/SummaryPanel/utilities/Utilities.js +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ActionsColumn.d.ts +2 -21
- package/lib/component/panels/ZonesPanel/TableColumns/ActionsColumn.js +22 -20
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.d.ts +4 -5
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.js +12 -16
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumns.d.ts +3 -7
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumns.js +2 -2
- package/lib/component/panels/ZonesPanel/TableColumns/SignalDeltaColumn.d.ts +2 -2
- package/lib/component/panels/ZonesPanel/TableColumns/SignalDeltaColumn.js +6 -7
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.d.ts +4 -5
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js +27 -19
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumns.d.ts +3 -7
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumns.js +2 -2
- package/lib/component/panels/ZonesPanel/ZonesPanel.js +15 -18
- package/lib/component/panels/ZonesPanel/ZonesTable.js +2 -51
- package/lib/component/panels/ZonesPanel/ZonesTableRow.d.ts +3 -3
- package/lib/component/panels/ZonesPanel/ZonesTableRow.js +2 -22
- package/lib/component/panels/ZonesPanel/hooks/useMapZones.d.ts +16 -0
- package/lib/component/panels/ZonesPanel/hooks/useMapZones.js +52 -0
- package/lib/component/panels/databasePanel/DatabasePanel.js +9 -7
- package/lib/component/panels/filtersPanel/FilterPanel.js +1 -2
- package/lib/component/panels/filtersPanel/FiltersTable.js +8 -9
- package/lib/component/panels/header/DefaultPanelHeader.js +1 -1
- package/lib/component/panels/header/SpectraAutomaticPickingButton.js +2 -3
- package/lib/component/panels/predictionPanel/PredictionPanel.js +10 -6
- package/lib/component/reducer/IgnoreActions.d.ts +2 -1
- package/lib/component/reducer/IgnoreActions.js +35 -32
- package/lib/component/reducer/Reducer.d.ts +8 -5
- package/lib/component/reducer/Reducer.js +199 -221
- package/lib/component/reducer/actions/AssignmentsActions.d.ts +7 -6
- package/lib/component/reducer/actions/AssignmentsActions.js +2 -2
- package/lib/component/reducer/actions/CorrelationsActions.d.ts +21 -13
- package/lib/component/reducer/actions/CorrelationsActions.js +25 -20
- package/lib/component/reducer/actions/DatabaseActions.d.ts +15 -2
- package/lib/component/reducer/actions/DatabaseActions.js +5 -2
- package/lib/component/reducer/actions/DimensionsActions.d.ts +8 -3
- package/lib/component/reducer/actions/DimensionsActions.js +3 -5
- package/lib/component/reducer/actions/DomainActions.d.ts +11 -5
- package/lib/component/reducer/actions/DomainActions.js +13 -19
- package/lib/component/reducer/actions/FiltersActions.d.ts +70 -23
- package/lib/component/reducer/actions/FiltersActions.js +250 -255
- package/lib/component/reducer/actions/GlobalActions.d.ts +7 -2
- package/lib/component/reducer/actions/GlobalActions.js +3 -3
- package/lib/component/reducer/actions/IntegralsActions.d.ts +28 -7
- package/lib/component/reducer/actions/IntegralsActions.js +16 -15
- package/lib/component/reducer/actions/LoadActions.d.ts +23 -5
- package/lib/component/reducer/actions/LoadActions.js +65 -57
- package/lib/component/reducer/actions/MoleculeActions.d.ts +38 -9
- package/lib/component/reducer/actions/MoleculeActions.js +53 -20
- package/lib/component/reducer/actions/PeaksActions.d.ts +39 -8
- package/lib/component/reducer/actions/PeaksActions.js +19 -11
- package/lib/component/reducer/actions/PreferencesActions.d.ts +8 -3
- package/lib/component/reducer/actions/PreferencesActions.js +22 -7
- package/lib/component/reducer/actions/RangesActions.d.ts +85 -18
- package/lib/component/reducer/actions/RangesActions.js +80 -65
- package/lib/component/reducer/actions/SpectraAnalysisAction.d.ts +7 -1
- package/lib/component/reducer/actions/SpectrumsActions.d.ts +57 -24
- package/lib/component/reducer/actions/SpectrumsActions.js +69 -60
- package/lib/component/reducer/actions/ToolsActions.d.ts +59 -21
- package/lib/component/reducer/actions/ToolsActions.js +54 -32
- package/lib/component/reducer/actions/ZonesActions.d.ts +79 -15
- package/lib/component/reducer/actions/ZonesActions.js +68 -49
- package/lib/component/reducer/helper/Zoom1DManager.d.ts +6 -5
- package/lib/component/reducer/helper/Zoom1DManager.js +1 -1
- package/lib/component/reducer/helper/ZoomHistoryManager.js +2 -2
- package/lib/component/reducer/helper/get2DRange.d.ts +7 -1
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js +1 -0
- package/lib/component/reducer/preferences/preferencesReducer.d.ts +1 -1
- package/lib/component/reducer/types/ActionType.d.ts +6 -0
- package/lib/component/reducer/types/ActionType.js +1 -0
- package/lib/component/toolbar/BasicToolBar.js +6 -9
- package/lib/component/toolbar/FunctionToolBar.js +4 -9
- package/lib/component/toolbar/ToolBar.js +1 -1
- package/lib/component/toolbar/ToolTypes.d.ts +2 -2
- package/lib/component/utility/Events.d.ts +4 -4
- package/lib/component/utility/Events.js +2 -2
- package/lib/component/utility/GroupByInfoKey.js +1 -1
- package/lib/component/utility/getSpectraObjectPaths.js +1 -1
- package/lib/component/workspaces/Workspace.d.ts +2 -1
- package/lib/component/workspaces/exercise.js +31 -0
- package/lib/component/workspaces/workspaceDefaultProperties.js +1 -0
- package/lib/data/PredictionManager.d.ts +5 -8
- package/lib/data/PredictionManager.js +3 -3
- package/lib/data/data1d/Spectrum1D/getSpectrumErrorValue.js +1 -1
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.js +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.d.ts +2 -3
- package/lib/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.js +5 -4
- package/lib/data/data1d/Spectrum1D/ranges/generateSpectrumFromRanges.d.ts +5 -3
- package/lib/data/data1d/Spectrum1D/ranges/initiateRanges.d.ts +1 -35
- package/lib/data/data1d/Spectrum1D/ranges/mapRanges.d.ts +2 -35
- package/lib/data/data1d/filter1d/baselineCorrection.d.ts +7 -10
- package/lib/data/data1d/multipleSpectraAnalysis.d.ts +1 -1
- package/lib/data/data2d/Processing2D.d.ts +3 -3
- package/lib/data/data2d/Spectrum2D/contours.d.ts +1 -4
- package/lib/data/data2d/Spectrum2D/contours.js +0 -1
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.js +1 -1
- package/lib/data/data2d/Spectrum2D/zones/changeZoneSignal.d.ts +5 -1
- package/lib/data/data2d/Spectrum2D/zones/changeZoneSignal.js +6 -8
- package/lib/data/data2d/Spectrum2D/zones/detectZonesManual.d.ts +2 -0
- package/lib/data/data2d/Spectrum2D/zones/initiateZones.d.ts +2 -0
- package/lib/data/data2d/Spectrum2D/zones/mapZones.d.ts +2 -0
- package/lib/data/matrixGeneration.js +4 -2
- package/lib/data/molecules/Molecule.d.ts +3 -3
- package/lib/data/molecules/MoleculeManager.d.ts +5 -5
- package/lib/data/molecules/MoleculeManager.js +1 -1
- package/lib/data/utilities/ZoneUtilities.js +0 -1
- package/lib/data/utilities/generateColor.js +1 -1
- package/lib/data/utilities/isNumber.d.ts +1 -0
- package/lib/data/utilities/isNumber.js +3 -0
- package/lib/types/NMRiumGeneralPreferences.d.ts +1 -0
- package/lib/versionInfo.js +1 -1
- package/lib-cjs/component/1d/FooterBanner.js +1 -1
- package/lib-cjs/component/1d/Viewer1D.js +25 -20
- package/lib-cjs/component/1d/integral/IntegralResizable.js +2 -3
- package/lib-cjs/component/1d/multiAnalysis/MultiAnalysisRanges.js +1 -1
- package/lib-cjs/component/1d/multiplicityTree/MultiplicityTree.js +7 -9
- package/lib-cjs/component/1d/peaks/PeakAnnotation.js +1 -2
- package/lib-cjs/component/1d/ranges/Range.js +9 -8
- package/lib-cjs/component/1d/ranges/Ranges.js +5 -7
- package/lib-cjs/component/1d/tool/BaseLineZones.js +1 -2
- package/lib-cjs/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.js +4 -5
- package/lib-cjs/component/1d-2d/components/FloatMoleculeStructures/index.js +13 -17
- package/lib-cjs/component/2d/1d-tracer/Left1DChart.js +1 -1
- package/lib-cjs/component/2d/1d-tracer/VerticalSliceChart.js +1 -1
- package/lib-cjs/component/2d/Chart2D.js +1 -1
- package/lib-cjs/component/2d/Viewer2D.js +10 -9
- package/lib-cjs/component/2d/fid/FidCanvas.js +4 -6
- package/lib-cjs/component/2d/ft/Contours.js +1 -7
- package/lib-cjs/component/2d/utilities/scale.js +1 -1
- package/lib-cjs/component/2d/zones/Zones.js +1 -1
- package/lib-cjs/component/EventsTrackers/KeysListenerTracker.js +28 -21
- package/lib-cjs/component/NMRium.js +19 -12
- package/lib-cjs/component/context/DispatchContext.js +1 -1
- package/lib-cjs/component/context/LoggerContext.js +1 -1
- package/lib-cjs/component/elements/Button.js +7 -9
- package/lib-cjs/component/elements/IsotopesViewer.js +1 -1
- package/lib-cjs/component/elements/ReactTable/ReactTable.js +1 -2
- package/lib-cjs/component/{panels/RangesPanel/TableColumns → elements}/RemoveAssignmentsButton.js +15 -2
- package/lib-cjs/component/elements/Tab/Tabs.js +1 -1
- package/lib-cjs/component/elements/formik/FormikCheckBox.js +1 -1
- package/lib-cjs/component/elements/formik/FormikColorInput.js +1 -1
- package/lib-cjs/component/elements/formik/FormikColorPicker.js +1 -1
- package/lib-cjs/component/elements/formik/FormikColumnFormatField.js +1 -1
- package/lib-cjs/component/elements/formik/FormikInput.js +1 -1
- package/lib-cjs/component/elements/formik/FormikSelect.js +2 -2
- package/lib-cjs/component/elements/formik/FormikSlider.js +1 -1
- package/lib-cjs/component/elements/formik/FormikTextarea.js +2 -2
- package/lib-cjs/component/header/ApodizationOptionsPanel.js +3 -4
- package/lib-cjs/component/header/AutoPeakPickingOptionPanel.js +1 -2
- package/lib-cjs/component/header/BaseLineCorrectionPanel.js +4 -5
- package/lib-cjs/component/header/Header.js +5 -7
- package/lib-cjs/component/header/PhaseCorrectionPanel.js +7 -8
- package/lib-cjs/component/header/RangesPickingOptionPanel.js +1 -2
- package/lib-cjs/component/header/ZeroFillingOptionsPanel.js +3 -11
- package/lib-cjs/component/header/Zones2DOptionPanel.js +5 -6
- package/lib-cjs/component/highlight/index.js +1 -1
- package/lib-cjs/component/hooks/useExport.js +1 -0
- package/lib-cjs/component/hooks/useTableSortBy.js +1 -1
- package/lib-cjs/component/hooks/useToolsFunctions.js +8 -10
- package/lib-cjs/component/hooks/useXYReduce.js +1 -1
- package/lib-cjs/component/loader/DropZone.js +4 -5
- package/lib-cjs/component/loader/NoData.js +1 -1
- package/lib-cjs/component/modal/AboutPredictionModal.js +54 -0
- package/lib-cjs/component/modal/AlignSpectraModal.js +1 -2
- package/lib-cjs/component/modal/EditPeakShapeModal.js +1 -2
- package/lib-cjs/component/modal/ImportPublicationStringModal.js +1 -2
- package/lib-cjs/component/modal/LoadJCAMPModal.js +2 -3
- package/lib-cjs/component/modal/MoleculeStructureEditorModal.js +24 -19
- package/lib-cjs/component/modal/PredictSpectraModal.js +24 -21
- package/lib-cjs/component/modal/changeSum/SelectMolecule.js +1 -1
- package/lib-cjs/component/modal/editRange/EditRangeModal.js +3 -4
- package/lib-cjs/component/modal/editRange/forms/components/AddSignalFormTab.js +2 -2
- package/lib-cjs/component/modal/editRange/forms/components/CouplingsTable.js +1 -1
- package/lib-cjs/component/modal/metaImportation/MetaImportationModal.js +2 -3
- package/lib-cjs/component/modal/setting/settings-tabs/DatabasesTabContent.js +4 -4
- package/lib-cjs/component/modal/setting/settings-tabs/FormattingTabContent.js +2 -2
- package/lib-cjs/component/modal/setting/settings-tabs/InfoBlockTabContent.js +2 -2
- package/lib-cjs/component/panels/AutomaticAssignment/AutomaticAssignmentTable.js +1 -2
- package/lib-cjs/component/panels/AutomaticAssignment/useAutoAssignments.js +7 -6
- package/lib-cjs/component/panels/InformationPanel.js +6 -6
- package/lib-cjs/component/panels/IntegralsPanel/IntegralPanel.js +11 -20
- package/lib-cjs/component/panels/IntegralsPanel/IntegralTable.js +27 -23
- package/lib-cjs/component/panels/IntegralsPanel/IntegralsPreferences.js +7 -4
- package/lib-cjs/component/panels/MatrixGenerationPanel/ExclusionsZonesTable.js +1 -1
- package/lib-cjs/component/panels/MatrixGenerationPanel/FiltersOptions.js +4 -4
- package/lib-cjs/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.js +1 -2
- package/lib-cjs/component/panels/MoleculesPanel/MoleculeHeader.js +1 -2
- package/lib-cjs/component/panels/MoleculesPanel/MoleculePanel.js +10 -13
- package/lib-cjs/component/panels/MoleculesPanel/MoleculePanelHeader.js +7 -7
- package/lib-cjs/component/panels/MoleculesPanel/Utilities.js +2 -2
- package/lib-cjs/component/panels/MoleculesPanel/useAtomAssignment.js +8 -9
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPanel.js +3 -4
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisTable.js +1 -2
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/preferences/AnalysisTablePreferences.js +2 -2
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/preferences/LegendsPreferences.js +2 -2
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/preferences/MultipleAnalysisCodeEditor.js +1 -1
- package/lib-cjs/component/panels/Panels.js +1 -1
- package/lib-cjs/component/panels/PeaksPanel/PeaksPanel.js +4 -5
- package/lib-cjs/component/panels/PeaksPanel/PeaksTable.js +4 -5
- package/lib-cjs/component/panels/RangesPanel/RangesHeader.js +12 -15
- package/lib-cjs/component/panels/RangesPanel/RangesPanel.js +24 -29
- package/lib-cjs/component/panels/RangesPanel/RangesTableRow.js +0 -12
- package/lib-cjs/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.js +2 -3
- package/lib-cjs/component/panels/RangesPanel/TableColumns/RelativeColumn.js +3 -3
- package/lib-cjs/component/panels/RangesPanel/TableColumns/SignalAssignmentsColumn.js +2 -3
- package/lib-cjs/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.js +1 -2
- package/lib-cjs/component/panels/RangesPanel/hooks/useEditRangeModal.js +16 -14
- package/lib-cjs/component/panels/SpectrumsPanel/SpectraPanelHeader.js +16 -16
- package/lib-cjs/component/panels/SpectrumsPanel/SpectraPreferences.js +2 -2
- package/lib-cjs/component/panels/SpectrumsPanel/SpectraTable.js +7 -5
- package/lib-cjs/component/panels/SpectrumsPanel/SpectrumsTabs.js +4 -5
- package/lib-cjs/component/panels/SpectrumsPanel/base/ShowHideSpectrumButton.js +3 -7
- package/lib-cjs/component/panels/SpectrumsPanel/base/SpectraColumnsManager.js +1 -1
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/SpectrumSetting.js +4 -2
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/processSnapPlot.js +2 -2
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js +4 -8
- package/lib-cjs/component/panels/SummaryPanel/SummaryPanel.js +39 -34
- package/lib-cjs/component/panels/SummaryPanel/utilities/Utilities.js +1 -1
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/ActionsColumn.js +22 -20
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.js +12 -19
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumns.js +2 -2
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/SignalDeltaColumn.js +6 -7
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js +27 -22
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumns.js +2 -2
- package/lib-cjs/component/panels/ZonesPanel/ZonesPanel.js +15 -18
- package/lib-cjs/component/panels/ZonesPanel/ZonesTable.js +2 -51
- package/lib-cjs/component/panels/ZonesPanel/ZonesTableRow.js +1 -21
- package/lib-cjs/component/panels/ZonesPanel/hooks/useMapZones.js +56 -0
- package/lib-cjs/component/panels/databasePanel/DatabasePanel.js +8 -6
- package/lib-cjs/component/panels/filtersPanel/FilterPanel.js +1 -2
- package/lib-cjs/component/panels/filtersPanel/FiltersTable.js +8 -9
- package/lib-cjs/component/panels/header/DefaultPanelHeader.js +1 -1
- package/lib-cjs/component/panels/header/SpectraAutomaticPickingButton.js +2 -3
- package/lib-cjs/component/panels/predictionPanel/PredictionPanel.js +10 -6
- package/lib-cjs/component/reducer/IgnoreActions.js +35 -55
- package/lib-cjs/component/reducer/Reducer.js +199 -221
- package/lib-cjs/component/reducer/actions/AssignmentsActions.js +3 -3
- package/lib-cjs/component/reducer/actions/CorrelationsActions.js +23 -18
- package/lib-cjs/component/reducer/actions/DatabaseActions.js +4 -1
- package/lib-cjs/component/reducer/actions/DimensionsActions.js +3 -6
- package/lib-cjs/component/reducer/actions/DomainActions.js +15 -23
- package/lib-cjs/component/reducer/actions/FiltersActions.js +267 -272
- package/lib-cjs/component/reducer/actions/GlobalActions.js +4 -4
- package/lib-cjs/component/reducer/actions/IntegralsActions.js +19 -18
- package/lib-cjs/component/reducer/actions/LoadActions.js +68 -60
- package/lib-cjs/component/reducer/actions/MoleculeActions.js +56 -23
- package/lib-cjs/component/reducer/actions/PeaksActions.js +23 -15
- package/lib-cjs/component/reducer/actions/PreferencesActions.js +24 -9
- package/lib-cjs/component/reducer/actions/RangesActions.js +81 -64
- package/lib-cjs/component/reducer/actions/SpectrumsActions.js +77 -67
- package/lib-cjs/component/reducer/actions/ToolsActions.js +54 -31
- package/lib-cjs/component/reducer/actions/ZonesActions.js +73 -52
- package/lib-cjs/component/reducer/core/Constants.js +1 -1
- package/lib-cjs/component/reducer/helper/Zoom1DManager.js +2 -2
- package/lib-cjs/component/reducer/helper/ZoomHistoryManager.js +2 -2
- package/lib-cjs/component/reducer/preferences/panelsPreferencesDefaultValues.js +1 -0
- package/lib-cjs/component/reducer/types/ActionType.js +2 -0
- package/lib-cjs/component/toolbar/BasicToolBar.js +6 -9
- package/lib-cjs/component/toolbar/FunctionToolBar.js +4 -9
- package/lib-cjs/component/toolbar/ToolBar.js +1 -1
- package/lib-cjs/component/utility/GroupByInfoKey.js +1 -1
- package/lib-cjs/component/utility/getSpectraObjectPaths.js +1 -1
- package/lib-cjs/component/workspaces/exercise.js +31 -0
- package/lib-cjs/component/workspaces/workspaceDefaultProperties.js +1 -0
- package/lib-cjs/data/PredictionManager.js +3 -3
- package/lib-cjs/data/SpectraManager.js +1 -1
- package/lib-cjs/data/data1d/Spectrum1D/getSpectrumErrorValue.js +1 -1
- package/lib-cjs/data/data1d/Spectrum1D/initiateDatum1D.js +1 -1
- package/lib-cjs/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.js +5 -4
- package/lib-cjs/data/data1d/multipleSpectraAnalysis.js +2 -2
- package/lib-cjs/data/data2d/Spectrum2D/contours.js +0 -1
- package/lib-cjs/data/data2d/Spectrum2D/initiateDatum2D.js +1 -1
- package/lib-cjs/data/data2d/Spectrum2D/zones/changeZoneSignal.js +6 -8
- package/lib-cjs/data/matrixGeneration.js +4 -2
- package/lib-cjs/data/molecules/MoleculeManager.js +1 -1
- package/lib-cjs/data/utilities/ZoneUtilities.js +0 -1
- package/lib-cjs/data/utilities/generateColor.js +1 -1
- package/lib-cjs/data/utilities/isNumber.js +7 -0
- package/lib-cjs/versionInfo.js +1 -1
- package/package.json +35 -34
- package/lib/component/panels/RangesPanel/TableColumns/RemoveAssignmentsButton.d.ts +0 -3
- package/lib/component/reducer/actions/HistoryActions.d.ts +0 -4
- package/lib/component/reducer/actions/HistoryActions.js +0 -40
- package/lib/component/reducer/types/HistoryTypes.d.ts +0 -4
- package/lib/component/reducer/types/HistoryTypes.js +0 -4
- package/lib/component/reducer/types/Types.d.ts +0 -132
- package/lib/component/reducer/types/Types.js +0 -126
- package/lib/component/toolbar/HistoryToolBar.d.ts +0 -8
- package/lib/component/toolbar/HistoryToolBar.js +0 -30
- package/lib/data/utilities/isMolFileEmpty.d.ts +0 -1
- package/lib/data/utilities/isMolFileEmpty.js +0 -6
- package/lib-cjs/component/reducer/actions/HistoryActions.js +0 -45
- package/lib-cjs/component/reducer/types/HistoryTypes.js +0 -7
- package/lib-cjs/component/reducer/types/Types.js +0 -131
- package/lib-cjs/component/toolbar/HistoryToolBar.js +0 -35
- package/lib-cjs/data/utilities/isMolFileEmpty.js +0 -10
|
@@ -89,7 +89,7 @@ var PositionsEnum;
|
|
|
89
89
|
(function (PositionsEnum) {
|
|
90
90
|
PositionsEnum["TOP"] = "TOP";
|
|
91
91
|
PositionsEnum["LEFT"] = "LEFT";
|
|
92
|
-
})(PositionsEnum
|
|
92
|
+
})(PositionsEnum || (exports.PositionsEnum = PositionsEnum = {}));
|
|
93
93
|
function Tabs({ children, onClick, position, onDelete = () => null, activeTab, }) {
|
|
94
94
|
function handleClickTab(tab) {
|
|
95
95
|
const { title, tabid } = tab;
|
|
@@ -17,7 +17,7 @@ function FormikCheckBox(props) {
|
|
|
17
17
|
const changeHandler = (0, react_1.useCallback)((e) => {
|
|
18
18
|
e.persist();
|
|
19
19
|
onChange(e);
|
|
20
|
-
setFieldValue(name, reverse ? value : !value);
|
|
20
|
+
void setFieldValue(name, reverse ? value : !value);
|
|
21
21
|
}, [name, onChange, reverse, setFieldValue, value]);
|
|
22
22
|
return ((0, jsx_runtime_1.jsxs)("div", { className: `${className} check-${value}`, style: style.container || {}, children: [label && ((0, jsx_runtime_1.jsx)("label", { htmlFor: name, className: "checkbox-label", style: style.label || {}, children: label })), (0, jsx_runtime_1.jsx)(CheckBox_1.default, { ...resProps, name: name, checked: value, onChange: changeHandler, style: style.checkbox || {} })] }));
|
|
23
23
|
}
|
|
@@ -13,7 +13,7 @@ function FormikColorPicker(props) {
|
|
|
13
13
|
const { values, setFieldValue } = (0, formik_1.useFormikContext)();
|
|
14
14
|
const colorChangeHandler = (0, react_1.useCallback)((color) => {
|
|
15
15
|
onColorChange(color);
|
|
16
|
-
setFieldValue(name, color.hex);
|
|
16
|
+
void setFieldValue(name, color.hex);
|
|
17
17
|
}, [name, onColorChange, setFieldValue]);
|
|
18
18
|
return ((0, jsx_runtime_1.jsx)(ColorInput_1.default, { ...colorPickerProps, name: name, onColorChange: colorChangeHandler, value: (0, get_1.default)(values, name) }));
|
|
19
19
|
}
|
|
@@ -13,7 +13,7 @@ function FormikColorPicker(props) {
|
|
|
13
13
|
const { onColorChange = () => null, name } = props;
|
|
14
14
|
const { values, setFieldValue } = (0, formik_1.useFormikContext)();
|
|
15
15
|
function colorChangeHandler(color) {
|
|
16
|
-
setFieldValue(name, `${color.hex}${Math.round(color.rgb.a * 255).toString(16)}`, false);
|
|
16
|
+
void setFieldValue(name, `${color.hex}${Math.round(color.rgb.a * 255).toString(16)}`, false);
|
|
17
17
|
onColorChange(color);
|
|
18
18
|
}
|
|
19
19
|
return ((0, jsx_runtime_1.jsx)(ui_1.ColorPicker, { color: { hex: (0, get_1.default)(values, name, '#000') }, presetColors: generateColor_1.COLORS, onChangeComplete: colorChangeHandler, style: { boxShadow: 'none' } }));
|
|
@@ -32,7 +32,7 @@ function FormikColumnFormatField(props) {
|
|
|
32
32
|
handleChange(e);
|
|
33
33
|
}, [handleChange]);
|
|
34
34
|
const checkChangeHandler = (0, react_1.useCallback)((e) => {
|
|
35
|
-
setFieldValue(e.target.name, e.target.checked);
|
|
35
|
+
void setFieldValue(e.target.name, e.target.checked);
|
|
36
36
|
}, [setFieldValue]);
|
|
37
37
|
return ((0, jsx_runtime_1.jsxs)("div", { style: styles.row, children: [(0, jsx_runtime_1.jsx)("span", { style: styles.inputLabel, children: label }), (0, jsx_runtime_1.jsxs)("div", { style: {
|
|
38
38
|
flex: 4,
|
|
@@ -13,11 +13,11 @@ const FormikSelect = function FormikSelect(props) {
|
|
|
13
13
|
const { values, errors, touched, setFieldValue } = (0, formik_1.useFormikContext)();
|
|
14
14
|
const changeHandler = (0, react_1.useCallback)((value) => {
|
|
15
15
|
onChange(value);
|
|
16
|
-
setFieldValue(name, value);
|
|
16
|
+
void setFieldValue(name, value);
|
|
17
17
|
}, [name, onChange, setFieldValue]);
|
|
18
18
|
(0, react_1.useEffect)(() => {
|
|
19
19
|
if (value) {
|
|
20
|
-
setFieldValue(name, value);
|
|
20
|
+
void setFieldValue(name, value);
|
|
21
21
|
}
|
|
22
22
|
}, [name, setFieldValue, value]);
|
|
23
23
|
let isInvalid = (0, get_1.default)(errors, name);
|
|
@@ -13,7 +13,7 @@ function FormikSlider(props) {
|
|
|
13
13
|
const { name, debounceTime = 0 } = props;
|
|
14
14
|
const { values, setFieldValue } = (0, formik_1.useFormikContext)();
|
|
15
15
|
const debounceOnChange = (0, react_1.useRef)((0, debounce_1.default)((value) => {
|
|
16
|
-
setFieldValue(name, value);
|
|
16
|
+
void setFieldValue(name, value);
|
|
17
17
|
}, debounceTime)).current;
|
|
18
18
|
return ((0, jsx_runtime_1.jsx)(react_slider_1.default, { className: "horizontal-slider", thumbClassName: "thumb", trackClassName: "track", defaultValue: (0, get_1.default)(values, name, [0, 100]), onAfterChange: (value) => debounceOnChange(value), renderThumb: (props, state) => ((0, jsx_runtime_1.jsx)("div", { ...props, children: (0, jsx_runtime_1.jsx)("span", { children: state.valueNow }) })), pearling: true, minDistance: 10 }));
|
|
19
19
|
}
|
|
@@ -16,13 +16,13 @@ function FormikTextarea(props) {
|
|
|
16
16
|
}, [handleChange, onChange]);
|
|
17
17
|
(0, react_1.useEffect)(() => {
|
|
18
18
|
if (value) {
|
|
19
|
-
setFieldValue(name, value);
|
|
19
|
+
void setFieldValue(name, value);
|
|
20
20
|
}
|
|
21
21
|
}, [name, setFieldValue, value]);
|
|
22
22
|
const isInvalid = (0, react_1.useMemo)(() => {
|
|
23
23
|
return (0, get_1.default)(errors, name);
|
|
24
24
|
}, [errors, name]);
|
|
25
|
-
return ((0, jsx_runtime_1.jsx)("textarea", {
|
|
25
|
+
return ((0, jsx_runtime_1.jsx)("textarea", { name, className, placeholder, value: value || (0, get_1.default)(values, name), onChange: changeHandler, style: {
|
|
26
26
|
...style,
|
|
27
27
|
...(isInvalid && {
|
|
28
28
|
borderColor: 'red',
|
|
@@ -39,7 +39,6 @@ const FormikCheckBox_1 = __importDefault(require("../elements/formik/FormikCheck
|
|
|
39
39
|
const FormikInput_1 = __importDefault(require("../elements/formik/FormikInput"));
|
|
40
40
|
const FormikOnChange_1 = __importDefault(require("../elements/formik/FormikOnChange"));
|
|
41
41
|
const useFilter_1 = require("../hooks/useFilter");
|
|
42
|
-
const Types_1 = require("../reducer/types/Types");
|
|
43
42
|
const Header_1 = require("./Header");
|
|
44
43
|
const HeaderContainer_1 = require("./HeaderContainer");
|
|
45
44
|
const inputStyle = {
|
|
@@ -61,20 +60,20 @@ function ApodizationOptionsInnerPanel(props) {
|
|
|
61
60
|
const { livePreview, ...filterOptions } = values;
|
|
62
61
|
if (livePreview && triggerSource === 'onChange') {
|
|
63
62
|
dispatch({
|
|
64
|
-
type:
|
|
63
|
+
type: 'CALCULATE_APODIZATION_FILTER',
|
|
65
64
|
payload: filterOptions,
|
|
66
65
|
});
|
|
67
66
|
}
|
|
68
67
|
else if (triggerSource === 'apply') {
|
|
69
68
|
dispatch({
|
|
70
|
-
type:
|
|
69
|
+
type: 'APPLY_APODIZATION_FILTER',
|
|
71
70
|
payload: filterOptions,
|
|
72
71
|
});
|
|
73
72
|
}
|
|
74
73
|
}
|
|
75
74
|
function handleCancelFilter() {
|
|
76
75
|
dispatch({
|
|
77
|
-
type:
|
|
76
|
+
type: 'RESET_SELECTED_TOOL',
|
|
78
77
|
});
|
|
79
78
|
}
|
|
80
79
|
let formData = initialValues;
|
|
@@ -35,7 +35,6 @@ const Button_1 = __importDefault(require("../elements/Button"));
|
|
|
35
35
|
const Label_1 = __importDefault(require("../elements/Label"));
|
|
36
36
|
const FormikNumberInput_1 = __importDefault(require("../elements/formik/FormikNumberInput"));
|
|
37
37
|
const FormikSelect_1 = __importDefault(require("../elements/formik/FormikSelect"));
|
|
38
|
-
const Types_1 = require("../reducer/types/Types");
|
|
39
38
|
const Header_1 = require("./Header");
|
|
40
39
|
const HeaderContainer_1 = require("./HeaderContainer");
|
|
41
40
|
const inputStyle = {
|
|
@@ -70,7 +69,7 @@ function AutoPeakPickingOptionPanel() {
|
|
|
70
69
|
const dispatch = (0, DispatchContext_1.useDispatch)();
|
|
71
70
|
const handlePeakPicking = (0, react_1.useCallback)((values) => {
|
|
72
71
|
dispatch({
|
|
73
|
-
type:
|
|
72
|
+
type: 'AUTO_PEAK_PICKING',
|
|
74
73
|
payload: values,
|
|
75
74
|
});
|
|
76
75
|
}, [dispatch]);
|
|
@@ -39,7 +39,6 @@ const FormikCheckBox_1 = __importDefault(require("../elements/formik/FormikCheck
|
|
|
39
39
|
const FormikInput_1 = __importDefault(require("../elements/formik/FormikInput"));
|
|
40
40
|
const FormikOnChange_1 = __importDefault(require("../elements/formik/FormikOnChange"));
|
|
41
41
|
const useFilter_1 = require("../hooks/useFilter");
|
|
42
|
-
const Types_1 = require("../reducer/types/Types");
|
|
43
42
|
const Header_1 = require("./Header");
|
|
44
43
|
const HeaderContainer_1 = require("./HeaderContainer");
|
|
45
44
|
const getAlgorithmsList = () => {
|
|
@@ -97,14 +96,14 @@ function BaseLineCorrectionInnerPanel(props) {
|
|
|
97
96
|
const handleApplyFilter = (values, triggerSource = 'apply') => {
|
|
98
97
|
dispatch({
|
|
99
98
|
type: triggerSource === 'onChange'
|
|
100
|
-
?
|
|
101
|
-
:
|
|
102
|
-
|
|
99
|
+
? 'CALCULATE_BASE_LINE_CORRECTION_FILTER'
|
|
100
|
+
: 'APPLY_BASE_LINE_CORRECTION_FILTER',
|
|
101
|
+
payload: values,
|
|
103
102
|
});
|
|
104
103
|
};
|
|
105
104
|
const handleCancelFilter = () => {
|
|
106
105
|
dispatch({
|
|
107
|
-
type:
|
|
106
|
+
type: 'RESET_SELECTED_TOOL',
|
|
108
107
|
});
|
|
109
108
|
};
|
|
110
109
|
function handleChangeAlgorithm(selectedAlgorithm) {
|
|
@@ -106,7 +106,7 @@ function HeaderInner(props) {
|
|
|
106
106
|
alignItems: 'center',
|
|
107
107
|
}, children: [(0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(ui_1.Toolbar, { orientation: "horizontal", children: (0, jsx_runtime_1.jsx)(AboutUsModal_1.default, {}) }) }), (0, jsx_runtime_1.jsx)("div", { className: "toolOptionsPanel", style: { flex: 1 }, children: selectedPanel })] }), (0, jsx_runtime_1.jsxs)(HeaderContainer_1.HeaderContainer, { style: {
|
|
108
108
|
alignItems: 'center',
|
|
109
|
-
}, children: [!hideGeneralSettings && ((0, jsx_runtime_1.jsx)(DropDownButton_1.default, { data: workspacesList, selectedKey: workspace.current, onSelect: changeWorkspaceHandler, renderItem: renderItem })
|
|
109
|
+
}, children: [!hideGeneralSettings && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(DropDownButton_1.default, { data: workspacesList, selectedKey: workspace.current, onSelect: changeWorkspaceHandler, renderItem: renderItem }), (0, jsx_runtime_1.jsx)(SaveButton, {})] })), !general?.hideLogs && (0, jsx_runtime_1.jsx)(LogsHistory_1.LogsHistory, {}), (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsxs)(ui_1.Toolbar, { orientation: "horizontal", children: [(0, jsx_runtime_1.jsx)(ui_1.Toolbar.Item, { id: "user-manual", title: "User manual", onClick: () => window.open(constants_1.docsBaseUrl, '_blank'), children: (0, jsx_runtime_1.jsx)(fa_1.FaQuestionCircle, {}) }), !hideGeneralSettings && ((0, jsx_runtime_1.jsx)(GeneralSettings_1.default, { height: height / 2 })), !isFullscreen && ((0, jsx_runtime_1.jsx)(ui_1.Toolbar.Item, { id: "full-screen", onClick: onMaximize, title: "Full Screen", className: "windowButton", children: (0, jsx_runtime_1.jsx)(fa_1.FaRegWindowMaximize, {}) }))] }) })] })] }) }));
|
|
110
110
|
}
|
|
111
111
|
function SaveButton() {
|
|
112
112
|
const { workspace, workspaces, originalWorkspaces } = (0, PreferencesContext_1.usePreferences)();
|
|
@@ -125,11 +125,9 @@ function SaveButton() {
|
|
|
125
125
|
const MemoizedHeader = (0, react_2.memo)(HeaderInner);
|
|
126
126
|
function HeaderWrapper({ isFullscreen, onMaximize }) {
|
|
127
127
|
const { toolOptions: { selectedOptionPanel }, height, } = (0, ChartContext_1.useChartData)();
|
|
128
|
-
return ((0, jsx_runtime_1.jsx)(MemoizedHeader, {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
height,
|
|
133
|
-
} }));
|
|
128
|
+
return ((0, jsx_runtime_1.jsx)(MemoizedHeader, { selectedOptionPanel,
|
|
129
|
+
isFullscreen,
|
|
130
|
+
onMaximize,
|
|
131
|
+
height }));
|
|
134
132
|
}
|
|
135
133
|
exports.default = HeaderWrapper;
|
|
@@ -38,7 +38,6 @@ const Label_1 = __importDefault(require("../elements/Label"));
|
|
|
38
38
|
const Select_1 = __importDefault(require("../elements/Select"));
|
|
39
39
|
const useFilter_1 = require("../hooks/useFilter");
|
|
40
40
|
const useSpectrum_1 = __importDefault(require("../hooks/useSpectrum"));
|
|
41
|
-
const Types_1 = require("../reducer/types/Types");
|
|
42
41
|
const Header_1 = require("./Header");
|
|
43
42
|
const HeaderContainer_1 = require("./HeaderContainer");
|
|
44
43
|
const selectStyle = {
|
|
@@ -102,20 +101,20 @@ function PhaseCorrectionPanel() {
|
|
|
102
101
|
switch (phaseCorrectionType) {
|
|
103
102
|
case phaseCorrectionTypes.automatic: {
|
|
104
103
|
dispatch({
|
|
105
|
-
type:
|
|
104
|
+
type: 'APPLY_AUTO_PHASE_CORRECTION_FILTER',
|
|
106
105
|
});
|
|
107
106
|
break;
|
|
108
107
|
}
|
|
109
108
|
case phaseCorrectionTypes.manual: {
|
|
110
109
|
dispatch({
|
|
111
|
-
type:
|
|
112
|
-
value,
|
|
110
|
+
type: 'APPLY_MANUAL_PHASE_CORRECTION_FILTER',
|
|
111
|
+
payload: value,
|
|
113
112
|
});
|
|
114
113
|
break;
|
|
115
114
|
}
|
|
116
115
|
case phaseCorrectionTypes.absolute: {
|
|
117
116
|
dispatch({
|
|
118
|
-
type:
|
|
117
|
+
type: 'APPLY_ABSOLUTE_FILTER',
|
|
119
118
|
});
|
|
120
119
|
break;
|
|
121
120
|
}
|
|
@@ -131,8 +130,8 @@ function PhaseCorrectionPanel() {
|
|
|
131
130
|
diff0 - (diff1 * (data.re.length - pivot?.index)) / data.re.length;
|
|
132
131
|
}
|
|
133
132
|
dispatch({
|
|
134
|
-
type:
|
|
135
|
-
|
|
133
|
+
type: 'CALCULATE_MANUAL_PHASE_CORRECTION_FILTER',
|
|
134
|
+
payload: newValues,
|
|
136
135
|
});
|
|
137
136
|
}, [data.re, dispatch, pivot?.index]);
|
|
138
137
|
const updateInputRangeInitialValue = (0, react_1.useCallback)((value) => {
|
|
@@ -161,7 +160,7 @@ function PhaseCorrectionPanel() {
|
|
|
161
160
|
}, [calcPhaseCorrectionHandler, updateInputRangeInitialValue]);
|
|
162
161
|
const handleCancelFilter = (0, react_1.useCallback)(() => {
|
|
163
162
|
dispatch({
|
|
164
|
-
type:
|
|
163
|
+
type: 'RESET_SELECTED_TOOL',
|
|
165
164
|
});
|
|
166
165
|
}, [dispatch]);
|
|
167
166
|
const onChangeHandler = (0, react_1.useCallback)((val) => {
|
|
@@ -35,7 +35,6 @@ const Button_1 = __importDefault(require("../elements/Button"));
|
|
|
35
35
|
const Label_1 = __importDefault(require("../elements/Label"));
|
|
36
36
|
const FormikCheckBox_1 = __importDefault(require("../elements/formik/FormikCheckBox"));
|
|
37
37
|
const FormikNumberInput_1 = __importDefault(require("../elements/formik/FormikNumberInput"));
|
|
38
|
-
const Types_1 = require("../reducer/types/Types");
|
|
39
38
|
const Header_1 = require("./Header");
|
|
40
39
|
const HeaderContainer_1 = require("./HeaderContainer");
|
|
41
40
|
const validationSchema = Yup.object().shape({
|
|
@@ -49,7 +48,7 @@ function RangesPickingOptionPanel() {
|
|
|
49
48
|
const dispatch = (0, DispatchContext_1.useDispatch)();
|
|
50
49
|
const handleRangesPicking = (0, react_1.useCallback)((values) => {
|
|
51
50
|
dispatch({
|
|
52
|
-
type:
|
|
51
|
+
type: 'AUTO_RANGES_DETECTION',
|
|
53
52
|
payload: values,
|
|
54
53
|
});
|
|
55
54
|
}, [dispatch]);
|
|
@@ -37,8 +37,6 @@ const Label_1 = __importDefault(require("../elements/Label"));
|
|
|
37
37
|
const Select_1 = __importDefault(require("../elements/Select"));
|
|
38
38
|
const useFilter_1 = require("../hooks/useFilter");
|
|
39
39
|
const useSpectrum_1 = __importDefault(require("../hooks/useSpectrum"));
|
|
40
|
-
const Types_1 = require("../reducer/types/Types");
|
|
41
|
-
const ToolTypes_1 = require("../toolbar/ToolTypes");
|
|
42
40
|
const Header_1 = require("./Header");
|
|
43
41
|
const HeaderContainer_1 = require("./HeaderContainer");
|
|
44
42
|
const Sizes = (0, generateNumbersPowerOfX_1.default)(8, 21);
|
|
@@ -59,7 +57,7 @@ function ZeroFillingOptionsInnerPanel(props) {
|
|
|
59
57
|
const [size, setSize] = (0, react_1.useState)(props.size);
|
|
60
58
|
function handleApplyFilter() {
|
|
61
59
|
dispatch({
|
|
62
|
-
type:
|
|
60
|
+
type: 'APPLY_ZERO_FILLING_FILTER',
|
|
63
61
|
payload: {
|
|
64
62
|
nbPoints: size,
|
|
65
63
|
},
|
|
@@ -67,12 +65,12 @@ function ZeroFillingOptionsInnerPanel(props) {
|
|
|
67
65
|
}
|
|
68
66
|
function handleCancelFilter() {
|
|
69
67
|
dispatch({
|
|
70
|
-
type:
|
|
68
|
+
type: 'RESET_SELECTED_TOOL',
|
|
71
69
|
});
|
|
72
70
|
}
|
|
73
71
|
function dispatchLiveChanges(nbPoints) {
|
|
74
72
|
dispatch({
|
|
75
|
-
type:
|
|
73
|
+
type: 'CALCULATE_ZERO_FILLING_FILTER',
|
|
76
74
|
payload: {
|
|
77
75
|
nbPoints,
|
|
78
76
|
},
|
|
@@ -91,12 +89,6 @@ function ZeroFillingOptionsInnerPanel(props) {
|
|
|
91
89
|
function checkChangeHandler(event) {
|
|
92
90
|
const checked = event.target.checked;
|
|
93
91
|
setLivePreview(checked);
|
|
94
|
-
if (!checked) {
|
|
95
|
-
//disable filter Live preview
|
|
96
|
-
dispatch({
|
|
97
|
-
payload: { selectedTool: ToolTypes_1.options.zeroFilling.id },
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
92
|
}
|
|
101
93
|
return ((0, jsx_runtime_1.jsxs)(HeaderContainer_1.HeaderContainer, { children: [(0, jsx_runtime_1.jsx)(Label_1.default, { title: "Size: ", style: Header_1.headerLabelStyle, children: (0, jsx_runtime_1.jsx)(Select_1.default, { items: Sizes, style: { marginLeft: 10, marginRight: 10 }, value: size, onChange: handleChangeSizeHandler }) }), (0, jsx_runtime_1.jsx)(Label_1.default, { title: "Live preview ", htmlFor: "livePreview", style: Header_1.headerLabelStyle, children: (0, jsx_runtime_1.jsx)(CheckBox_1.default, { name: "livePreview", defaultChecked: true, onChange: checkChangeHandler }) }), (0, jsx_runtime_1.jsx)(ActionButtons_1.default, { onDone: handleApplyFilter, onCancel: handleCancelFilter })] }));
|
|
102
94
|
}
|
|
@@ -35,26 +35,25 @@ const Button_1 = __importDefault(require("../elements/Button"));
|
|
|
35
35
|
const Label_1 = __importDefault(require("../elements/Label"));
|
|
36
36
|
const FormikNumberInput_1 = __importDefault(require("../elements/formik/FormikNumberInput"));
|
|
37
37
|
const FormikOnChange_1 = __importDefault(require("../elements/formik/FormikOnChange"));
|
|
38
|
-
const Types_1 = require("../reducer/types/Types");
|
|
39
38
|
const Header_1 = require("./Header");
|
|
40
39
|
const HeaderContainer_1 = require("./HeaderContainer");
|
|
41
40
|
const validationSchema = Yup.object().shape({
|
|
42
|
-
|
|
41
|
+
zonesNoiseFactor: Yup.number().min(0).required(),
|
|
43
42
|
});
|
|
44
43
|
const initialValues = {
|
|
45
|
-
|
|
44
|
+
zonesNoiseFactor: 1,
|
|
46
45
|
};
|
|
47
46
|
function Zones2DOptionPanel() {
|
|
48
47
|
const dispatch = (0, DispatchContext_1.useDispatch)();
|
|
49
48
|
const handleZonesPicking = (0, react_1.useCallback)((values) => {
|
|
50
49
|
dispatch({
|
|
51
|
-
type:
|
|
50
|
+
type: 'AUTO_ZONES_DETECTION',
|
|
52
51
|
payload: values,
|
|
53
52
|
});
|
|
54
53
|
}, [dispatch]);
|
|
55
54
|
const handleChangeNoiseFactory = (0, react_1.useCallback)((values) => {
|
|
56
|
-
dispatch({ type:
|
|
55
|
+
dispatch({ type: 'CHANGE_ZONES_NOISE_FACTOR', payload: values });
|
|
57
56
|
}, [dispatch]);
|
|
58
|
-
return ((0, jsx_runtime_1.jsx)(HeaderContainer_1.HeaderContainer, { children: (0, jsx_runtime_1.jsx)(formik_1.Formik, { onSubmit: handleZonesPicking, initialValues: initialValues, validationSchema: validationSchema, children: ({ handleSubmit, isValid }) => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Label_1.default, { title: "Noise factor :", htmlFor: "livePreview", style: Header_1.headerLabelStyle, children: (0, jsx_runtime_1.jsx)(FormikNumberInput_1.default, { name: "
|
|
57
|
+
return ((0, jsx_runtime_1.jsx)(HeaderContainer_1.HeaderContainer, { children: (0, jsx_runtime_1.jsx)(formik_1.Formik, { onSubmit: handleZonesPicking, initialValues: initialValues, validationSchema: validationSchema, children: ({ handleSubmit, isValid }) => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Label_1.default, { title: "Noise factor :", htmlFor: "livePreview", style: Header_1.headerLabelStyle, children: (0, jsx_runtime_1.jsx)(FormikNumberInput_1.default, { name: "zonesNoiseFactor", style: { width: '50px' }, min: 0 }) }), (0, jsx_runtime_1.jsx)(FormikOnChange_1.default, { enableValidation: true, onChange: handleChangeNoiseFactory }), (0, jsx_runtime_1.jsx)(Button_1.default.Done, { onClick: () => handleSubmit(), style: { margin: '0 10px' }, disabled: !isValid, children: "Auto Zones Picking" })] })) }) }));
|
|
59
58
|
}
|
|
60
59
|
exports.default = Zones2DOptionPanel;
|
|
@@ -16,7 +16,7 @@ var HighlightEventSource;
|
|
|
16
16
|
HighlightEventSource["DATABASE"] = "DATABASE";
|
|
17
17
|
HighlightEventSource["ATOM"] = "ATOM";
|
|
18
18
|
HighlightEventSource["UNKNOWN"] = "UNKNOWN";
|
|
19
|
-
})(HighlightEventSource
|
|
19
|
+
})(HighlightEventSource || (exports.HighlightEventSource = HighlightEventSource = {}));
|
|
20
20
|
const HightLightStyle = {
|
|
21
21
|
backgroundColor: '#ff6f0091',
|
|
22
22
|
};
|
|
@@ -38,6 +38,7 @@ function useExport() {
|
|
|
38
38
|
const fileName = state.data[0]?.info?.name;
|
|
39
39
|
const exportedData = (0, SpectraManager_1.toJSON)(state, preferencesState, {
|
|
40
40
|
exportTarget: 'nmrium',
|
|
41
|
+
view: true,
|
|
41
42
|
});
|
|
42
43
|
await (0, export_1.exportAsJSON)(exportedData, fileName, spaceIndent, isCompressed);
|
|
43
44
|
hideLoading();
|
|
@@ -11,7 +11,7 @@ var SortType;
|
|
|
11
11
|
SortType["ASCENDING"] = "asc";
|
|
12
12
|
SortType["DESCENDING"] = "desc";
|
|
13
13
|
SortType["ORIGINAL"] = "original";
|
|
14
|
-
})(SortType
|
|
14
|
+
})(SortType || (exports.SortType = SortType = {}));
|
|
15
15
|
function useTableSortBy(items, config = null) {
|
|
16
16
|
const [sortConfig, setSortConfig] = (0, react_1.useState)(config);
|
|
17
17
|
const sortedItems = (0, react_1.useMemo)(() => {
|
|
@@ -10,8 +10,6 @@ const ui_1 = require("react-science/ui");
|
|
|
10
10
|
const DispatchContext_1 = require("../context/DispatchContext");
|
|
11
11
|
const Alert_1 = require("../elements/popup/Alert");
|
|
12
12
|
const Panels_1 = require("../panels/Panels");
|
|
13
|
-
const Zoom1DManager_1 = require("../reducer/helper/Zoom1DManager");
|
|
14
|
-
const Types_1 = require("../reducer/types/Types");
|
|
15
13
|
const ToolTypes_1 = require("../toolbar/ToolTypes");
|
|
16
14
|
function useToolsFunctions() {
|
|
17
15
|
const dispatch = (0, DispatchContext_1.useDispatch)();
|
|
@@ -33,15 +31,15 @@ function useToolsFunctions() {
|
|
|
33
31
|
openPanel(Panels_1.TOOLS_PANELS_ACCORDION[selectedTool]);
|
|
34
32
|
}
|
|
35
33
|
dispatch({
|
|
36
|
-
type:
|
|
34
|
+
type: 'SET_SELECTED_TOOL',
|
|
37
35
|
payload: { selectedTool: selectedTool || ToolTypes_1.options.zoom.id },
|
|
38
36
|
});
|
|
39
37
|
}, [alert, dispatch, openPanel]);
|
|
40
38
|
const handleFullZoomOut = (0, react_1.useCallback)(() => {
|
|
41
39
|
if (debounceClickEventsRef.current.clicks.length === 0) {
|
|
42
40
|
dispatch({
|
|
43
|
-
type:
|
|
44
|
-
zoomType:
|
|
41
|
+
type: 'FULL_ZOOM_OUT',
|
|
42
|
+
payload: { zoomType: 'HORIZONTAL' },
|
|
45
43
|
});
|
|
46
44
|
}
|
|
47
45
|
const callback = (0, debounce_1.default)(() => {
|
|
@@ -53,25 +51,25 @@ function useToolsFunctions() {
|
|
|
53
51
|
(0, map_1.default)(debounceClickEventsRef.current.clicks, (debounce) => debounce.cancel());
|
|
54
52
|
debounceClickEventsRef.current.clicks = [];
|
|
55
53
|
dispatch({
|
|
56
|
-
type:
|
|
54
|
+
type: 'FULL_ZOOM_OUT',
|
|
55
|
+
payload: {},
|
|
57
56
|
});
|
|
58
57
|
}
|
|
59
58
|
}, [dispatch, debounceClickEventsRef]);
|
|
60
59
|
const changeDisplayViewModeHandler = (0, react_1.useCallback)(() => {
|
|
61
60
|
dispatch({
|
|
62
|
-
type:
|
|
61
|
+
type: 'CHANGE_SPECTRUM_DISPLAY_VIEW_MODE',
|
|
63
62
|
});
|
|
64
63
|
}, [dispatch]);
|
|
65
64
|
const changeSpectrumViewHandler = (0, react_1.useCallback)(() => {
|
|
66
65
|
dispatch({
|
|
67
|
-
type:
|
|
68
|
-
isRealSpectrumVisible: !isRealSpectrumShown,
|
|
66
|
+
type: 'TOGGLE_REAL_IMAGINARY_VISIBILITY',
|
|
69
67
|
});
|
|
70
68
|
setIsRealSpectrumShown(!isRealSpectrumShown);
|
|
71
69
|
}, [dispatch, isRealSpectrumShown]);
|
|
72
70
|
const alignSpectrumsVerticallyHandler = (0, react_1.useCallback)(() => {
|
|
73
71
|
dispatch({
|
|
74
|
-
type:
|
|
72
|
+
type: 'SET_SPECTRUMS_VERTICAL_ALIGN',
|
|
75
73
|
});
|
|
76
74
|
}, [dispatch]);
|
|
77
75
|
return {
|
|
@@ -8,7 +8,7 @@ var XYReducerDomainAxis;
|
|
|
8
8
|
(function (XYReducerDomainAxis) {
|
|
9
9
|
XYReducerDomainAxis["XAxis"] = "XAxis";
|
|
10
10
|
XYReducerDomainAxis["YAxis"] = "YAxis";
|
|
11
|
-
})(XYReducerDomainAxis
|
|
11
|
+
})(XYReducerDomainAxis || (exports.XYReducerDomainAxis = XYReducerDomainAxis = {}));
|
|
12
12
|
function useXYReduce(domainAxis) {
|
|
13
13
|
const { width, xDomain, yDomain } = (0, ChartContext_1.useChartData)();
|
|
14
14
|
return (0, react_1.useCallback)((data) => {
|
|
@@ -17,7 +17,6 @@ const PreferencesContext_1 = require("../context/PreferencesContext");
|
|
|
17
17
|
const Alert_1 = require("../elements/popup/Alert");
|
|
18
18
|
const useCheckToolsVisibility_1 = require("../hooks/useCheckToolsVisibility");
|
|
19
19
|
const index_1 = require("../modal/metaImportation/index");
|
|
20
|
-
const Types_1 = require("../reducer/types/Types");
|
|
21
20
|
const style = (0, react_1.css) `
|
|
22
21
|
height: 100%;
|
|
23
22
|
background-color: #b5b5b599;
|
|
@@ -85,9 +84,9 @@ function DropZone(props) {
|
|
|
85
84
|
});
|
|
86
85
|
}
|
|
87
86
|
dispatch({
|
|
88
|
-
type:
|
|
87
|
+
type: 'LOAD_DROP_FILES',
|
|
89
88
|
payload: {
|
|
90
|
-
|
|
89
|
+
nmriumState,
|
|
91
90
|
containsNmrium,
|
|
92
91
|
onLoadProcessing: current.onLoadProcessing,
|
|
93
92
|
parseMetaFileResult,
|
|
@@ -101,11 +100,11 @@ function DropZone(props) {
|
|
|
101
100
|
reportError(error);
|
|
102
101
|
}
|
|
103
102
|
finally {
|
|
104
|
-
dispatch({ type:
|
|
103
|
+
dispatch({ type: 'SET_LOADING_FLAG', payload: { isLoading: false } });
|
|
105
104
|
}
|
|
106
105
|
}
|
|
107
106
|
function onDrop(droppedFiles) {
|
|
108
|
-
dispatch({ type:
|
|
107
|
+
dispatch({ type: 'SET_LOADING_FLAG', payload: { isLoading: true } });
|
|
109
108
|
void loadFilesHandler(droppedFiles);
|
|
110
109
|
}
|
|
111
110
|
const isImportEnabled = isToolEnabled('import');
|
|
@@ -33,7 +33,7 @@ function NoData({ isEmpty = true, emptyText = 'Drag and drop here a JCAMP-DX, Br
|
|
|
33
33
|
if (!isEmpty) {
|
|
34
34
|
return null;
|
|
35
35
|
}
|
|
36
|
-
return ((0, jsx_runtime_1.jsx)("div", { style: { ...styles.container, ...style }, ...(canOpenLoader && { onClick: openLoader }), children: (0, jsx_runtime_1.jsx)("
|
|
36
|
+
return ((0, jsx_runtime_1.jsx)("div", { style: { ...styles.container, ...style }, ...(canOpenLoader && { onClick: openLoader }), children: (0, jsx_runtime_1.jsx)("div", { style: styles.text, children: isToolEnabled('import')
|
|
37
37
|
? emptyText
|
|
38
38
|
: 'Importation feature has been disabled' }) }));
|
|
39
39
|
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
7
|
+
/** @jsxImportSource @emotion/react */
|
|
8
|
+
const react_1 = require("@emotion/react");
|
|
9
|
+
const fa_1 = require("react-icons/fa");
|
|
10
|
+
const ui_1 = require("react-science/ui");
|
|
11
|
+
const Button_1 = __importDefault(require("../elements/Button"));
|
|
12
|
+
const styles = (0, react_1.css) `
|
|
13
|
+
width: 600px;
|
|
14
|
+
|
|
15
|
+
.content {
|
|
16
|
+
padding: 2em;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
ul {
|
|
20
|
+
list-style-type: disc;
|
|
21
|
+
margin-left: 25px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
p,
|
|
25
|
+
li {
|
|
26
|
+
user-select: text;
|
|
27
|
+
font-size: 1.1em;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
a {
|
|
31
|
+
color: #00bcd4;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
a:hover,
|
|
35
|
+
a:focus {
|
|
36
|
+
text-decoration: underline;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.header span {
|
|
40
|
+
color: #464646;
|
|
41
|
+
font-size: 15px;
|
|
42
|
+
flex: 1;
|
|
43
|
+
user-select: none;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
p {
|
|
47
|
+
padding: 0.8em 0;
|
|
48
|
+
}
|
|
49
|
+
`;
|
|
50
|
+
function AboutPredictionModal() {
|
|
51
|
+
const [isOpenDialog, openDialog, closeDialog] = (0, ui_1.useOnOff)(false);
|
|
52
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Button_1.default.BarButton, { onClick: openDialog, tooltipOrientation: "horizontal", toolTip: "About Prediction", children: (0, jsx_runtime_1.jsx)(fa_1.FaInfo, {}) }), (0, jsx_runtime_1.jsx)(ui_1.Modal, { hasCloseButton: true, isOpen: isOpenDialog, onRequestClose: closeDialog, children: (0, jsx_runtime_1.jsxs)("div", { css: styles, children: [(0, jsx_runtime_1.jsx)(ui_1.Modal.Header, { children: (0, jsx_runtime_1.jsx)("div", { className: "header", children: (0, jsx_runtime_1.jsx)("span", { children: "About Prediction" }) }) }), (0, jsx_runtime_1.jsx)(ui_1.Modal.Body, { children: (0, jsx_runtime_1.jsxs)("div", { className: "content", children: [(0, jsx_runtime_1.jsx)("p", { children: "If you are using our tools please cite us:" }), (0, jsx_runtime_1.jsxs)("ul", { children: [(0, jsx_runtime_1.jsxs)("li", { children: ["Banfi, D.; Patiny, L.", ' ', (0, jsx_runtime_1.jsx)("a", { href: "http://dx.doi.org/10.2533/chimia.2008.280", target: "_blank", rel: "noreferrer", children: "www.nmrdb.org: Resurrecting and processing NMR spectra on-line" }), ' ', "Chimia, 2008, 62(4), 280-281."] }), (0, jsx_runtime_1.jsxs)("li", { children: ["Andr\u00E9s M. Castillo, Luc Patiny and Julien Wist.", ' ', (0, jsx_runtime_1.jsx)("a", { href: "http://dx.doi.org/10.1016/j.jmr.2010.12.008", target: "_blank", rel: "noreferrer", children: "Fast and Accurate Algorithm for the Simulation of NMR spectra of Large Spin Systems" }), ". Journal of Magnetic Resonance 2011."] })] }), (0, jsx_runtime_1.jsx)("p", { children: "1H NMR prediction was possible thanks to the tool of the FCT-Universidade NOVA de Lisboa developed by Yuri Binev and Joao Aires-de-Sousa:" }), (0, jsx_runtime_1.jsxs)("ul", { children: [(0, jsx_runtime_1.jsxs)("li", { children: ["Y. Binev, M.M. Marques, J. Aires-de-Sousa,", ' ', (0, jsx_runtime_1.jsx)("a", { href: "http://dx.doi.org/10.1021/ci700172n", target: "_blank", rel: "noreferrer", children: "Prediction of 1H NMR coupling constants with associative neural networks trained for chemical shifts" }), ' ', "J. Chem. Inf. Model. 2007, 47/(6), 2089-2097."] }), (0, jsx_runtime_1.jsxs)("li", { children: ["Aires-de-Sousa, M. Hemmer, J. Gasteiger,", ' ', (0, jsx_runtime_1.jsx)("a", { href: "http://dx.doi.org/10.1021/ac010737m", target: "_blank", rel: "noreferrer", children: "\u201C Prediction of 1H NMR Chemical Shifts Using Neural Networks\u201D" }), ", Analytical Chemistry, 2002, 74(1), 80-90."] })] }), (0, jsx_runtime_1.jsx)("p", { children: "13 NMR prediction was possible thanks to NMRshiftDB:" }), (0, jsx_runtime_1.jsx)("ul", { children: (0, jsx_runtime_1.jsxs)("li", { children: ["Steinbeck, Christoph, Stefan Krause, and Stefan Kuhn.", ' ', (0, jsx_runtime_1.jsx)("a", { href: "http://dx.doi.org/10.1021/ci0341363", target: "_blank", rel: "noreferrer", children: "NMRShiftDB Constructing a Free Chemical Information System with Open-Source Components." }), ' ', "Journal of chemical information and computer sciences, 2003, 43(6): 1733-1739."] }) })] }) })] }) })] }));
|
|
53
|
+
}
|
|
54
|
+
exports.default = AboutPredictionModal;
|
|
@@ -14,7 +14,6 @@ const CloseButton_1 = __importDefault(require("../elements/CloseButton"));
|
|
|
14
14
|
const Label_1 = __importDefault(require("../elements/Label"));
|
|
15
15
|
const Select_1 = __importDefault(require("../elements/Select"));
|
|
16
16
|
const FormikInput_1 = __importDefault(require("../elements/formik/FormikInput"));
|
|
17
|
-
const Types_1 = require("../reducer/types/Types");
|
|
18
17
|
const Events_1 = __importDefault(require("../utility/Events"));
|
|
19
18
|
const ModalStyle_1 = require("./ModalStyle");
|
|
20
19
|
const baseList = [{ key: 1, value: 'manual', label: 'Manual' }];
|
|
@@ -34,7 +33,7 @@ function AlignSpectraModal({ onClose = () => null, nucleus, }) {
|
|
|
34
33
|
refForm.current.submitForm();
|
|
35
34
|
}, []);
|
|
36
35
|
const submitHandler = (0, react_1.useCallback)((values) => {
|
|
37
|
-
dispatch({ type:
|
|
36
|
+
dispatch({ type: 'ALIGN_SPECTRA', payload: values });
|
|
38
37
|
onClose();
|
|
39
38
|
}, [dispatch, onClose]);
|
|
40
39
|
(0, react_1.useEffect)(() => {
|
|
@@ -38,7 +38,6 @@ const CloseButton_1 = __importDefault(require("../elements/CloseButton"));
|
|
|
38
38
|
const Label_1 = __importDefault(require("../elements/Label"));
|
|
39
39
|
const Select_1 = __importDefault(require("../elements/Select"));
|
|
40
40
|
const FormikInput_1 = __importDefault(require("../elements/formik/FormikInput"));
|
|
41
|
-
const Types_1 = require("../reducer/types/Types");
|
|
42
41
|
const formatNumber_1 = require("../utility/formatNumber");
|
|
43
42
|
const ModalStyle_1 = require("./ModalStyle");
|
|
44
43
|
const styles = (0, react_1.css) `
|
|
@@ -96,7 +95,7 @@ function EditPeakShapeModal({ onClose = () => null, peak, peaksPreferences, }) {
|
|
|
96
95
|
const [kind, setKind] = (0, react_2.useState)(peak.shape?.kind);
|
|
97
96
|
const changePeakShapeHandler = (0, react_2.useCallback)((values) => {
|
|
98
97
|
dispatch({
|
|
99
|
-
type:
|
|
98
|
+
type: 'CHANGE_PEAK_SHAPE',
|
|
100
99
|
payload: {
|
|
101
100
|
id: peak.id,
|
|
102
101
|
shape: {
|
|
@@ -37,7 +37,6 @@ const Button_1 = __importDefault(require("../elements/Button"));
|
|
|
37
37
|
const CloseButton_1 = __importDefault(require("../elements/CloseButton"));
|
|
38
38
|
const FormikTextarea_1 = __importDefault(require("../elements/formik/FormikTextarea"));
|
|
39
39
|
const Alert_1 = require("../elements/popup/Alert");
|
|
40
|
-
const Types_1 = require("../reducer/types/Types");
|
|
41
40
|
const ModalStyle_1 = require("./ModalStyle");
|
|
42
41
|
const styles = (0, react_1.css) `
|
|
43
42
|
width: 600px;
|
|
@@ -70,7 +69,7 @@ function ImportPublicationStringModal({ onClose, }) {
|
|
|
70
69
|
const hideLoading = await alert.showLoading('Generate spectrum from publication string in progress');
|
|
71
70
|
setTimeout(() => {
|
|
72
71
|
dispatch({
|
|
73
|
-
type:
|
|
72
|
+
type: 'GENERATE_SPECTRUM_FROM_PUBLICATION_STRING',
|
|
74
73
|
payload: values,
|
|
75
74
|
});
|
|
76
75
|
hideLoading();
|