nmrium 0.18.3 → 0.19.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/BaseLineZones.js +1 -1
- package/lib/component/1d/Chart1D.js +3 -1
- package/lib/component/1d/ExclusionZone.js +6 -3
- package/lib/component/1d/ExclusionZones.js +1 -1
- package/lib/component/1d/FooterBanner.js +8 -38
- package/lib/component/1d/Integral.d.ts +2 -8
- package/lib/component/1d/Integral.js +9 -31
- package/lib/component/1d/IntegralResizable.js +9 -6
- package/lib/component/1d/IntegralsSeries.js +6 -17
- package/lib/component/1d/Line.js +12 -14
- package/lib/component/1d/LinesSeries.js +3 -2
- package/lib/component/1d/PeakAnnotation.js +9 -6
- package/lib/component/1d/PeakAnnotations.js +7 -19
- package/lib/component/1d/Resizable.js +3 -3
- package/lib/component/1d/ResurrectedDatabaseRanges.d.ts +3 -0
- package/lib/component/1d/ResurrectedDatabaseRanges.js +57 -0
- package/lib/component/1d/SpectraTracker.js +10 -9
- package/lib/component/1d/Viewer1D.js +21 -33
- package/lib/component/1d/XAxis.js +1 -1
- package/lib/component/1d/YAxis.js +1 -1
- package/lib/component/1d/jCouplingGraph/JGraph.d.ts +2 -0
- package/lib/component/1d/jCouplingGraph/JGraph.js +46 -0
- package/lib/component/1d/jCouplingGraph/JGraphContext.d.ts +10 -0
- package/lib/component/1d/jCouplingGraph/JGraphContext.js +14 -0
- package/lib/component/1d/jCouplingGraph/JGraphVerticalAxis.d.ts +2 -0
- package/lib/component/1d/jCouplingGraph/JGraphVerticalAxis.js +11 -0
- package/lib/component/1d/jCouplingGraph/JsCoupling.d.ts +6 -0
- package/lib/component/1d/jCouplingGraph/JsCoupling.js +10 -0
- package/lib/component/1d/jCouplingGraph/JsCouplingLinks.d.ts +7 -0
- package/lib/component/1d/jCouplingGraph/JsCouplingLinks.js +26 -0
- package/lib/component/1d/jCouplingGraph/JsCouplings.d.ts +7 -0
- package/lib/component/1d/jCouplingGraph/JsCouplings.js +13 -0
- package/lib/component/1d/multiAnalysis/AnalysisRange.js +1 -1
- package/lib/component/1d/multiAnalysis/MultiAnalysisRanges.js +2 -2
- package/lib/component/1d/multiplicityTree/LevelNode.d.ts +2 -2
- package/lib/component/1d/multiplicityTree/MultiplicityTree.d.ts +2 -6
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js +44 -34
- package/lib/component/1d/multiplicityTree/StringNode.d.ts +2 -2
- package/lib/component/1d/multiplicityTree/StringNode.js +1 -1
- package/lib/component/1d/multiplicityTree/TreeNodes.js +1 -1
- package/lib/component/1d/multiplicityTree/buildTreeNode.d.ts +2 -1
- package/lib/component/1d/multiplicityTree/buildTreeNode.js +6 -2
- package/lib/component/1d/ranges/Range.d.ts +2 -2
- package/lib/component/1d/ranges/Range.js +7 -7
- package/lib/component/1d/ranges/RangeIntegral.d.ts +11 -0
- package/lib/component/1d/ranges/RangeIntegral.js +11 -0
- package/lib/component/1d/ranges/Ranges.js +13 -11
- package/lib/component/1d/tool/PeakPointer.js +18 -19
- package/lib/component/1d/tool/XLabelPointer.js +2 -2
- package/lib/component/1d/utilities/getVerticalShift.d.ts +5 -0
- package/lib/component/1d/utilities/getVerticalShift.js +9 -0
- package/lib/component/1d/utilities/scale.d.ts +6 -1
- package/lib/component/1d/utilities/scale.js +12 -4
- package/lib/component/1d/utilities/useIntegralPath.d.ts +4 -0
- package/lib/component/1d/utilities/useIntegralPath.js +64 -0
- package/lib/component/2d/Chart2D.d.ts +3 -8
- package/lib/component/2d/Chart2D.js +4 -4
- package/lib/component/2d/Contours.js +2 -2
- package/lib/component/2d/FooterBanner.js +5 -3
- package/lib/component/2d/Left1DChart.d.ts +2 -7
- package/lib/component/2d/Left1DChart.js +17 -11
- package/lib/component/2d/Top1DChart.d.ts +2 -7
- package/lib/component/2d/Top1DChart.js +16 -8
- package/lib/component/2d/Viewer2D.d.ts +6 -0
- package/lib/component/2d/Viewer2D.js +14 -19
- package/lib/component/2d/XAxis.js +1 -1
- package/lib/component/2d/YAxis.js +1 -1
- package/lib/component/2d/tools/XYLabelPointer.js +2 -2
- package/lib/component/2d/tools/slicing/HorizontalSliceChart.js +6 -7
- package/lib/component/2d/tools/slicing/SlicingView.js +2 -2
- package/lib/component/2d/tools/slicing/VerticalSliceChart.js +7 -10
- package/lib/component/2d/zones/Signal.d.ts +2 -2
- package/lib/component/2d/zones/Signal.js +4 -3
- package/lib/component/2d/zones/SignalCrosshair.d.ts +2 -2
- package/lib/component/2d/zones/Zone.d.ts +1 -1
- package/lib/component/2d/zones/Zone.js +7 -4
- package/lib/component/2d/zones/Zones.js +3 -3
- package/lib/component/ErrorOverlay.js +1 -1
- package/lib/component/EventsTrackers/BrushTracker.js +1 -1
- package/lib/component/EventsTrackers/KeysListenerTracker.js +28 -18
- package/lib/component/EventsTrackers/MouseTracker.js +1 -1
- package/lib/component/NMRium.d.ts +4 -4
- package/lib/component/NMRium.js +36 -59
- package/lib/component/assignment/index.js +1 -1
- package/lib/component/elements/Button.js +1 -1
- package/lib/component/elements/ButtonToolTip.js +1 -1
- package/lib/component/elements/CheckBox.d.ts +2 -1
- package/lib/component/elements/CheckBox.js +2 -2
- package/lib/component/elements/CloseButton.js +1 -1
- package/lib/component/elements/ColorInput.js +1 -1
- package/lib/component/elements/ContextMenu.js +1 -1
- package/lib/component/elements/DeleteButton.js +1 -1
- package/lib/component/elements/EditableColumn.js +1 -1
- package/lib/component/elements/Input.d.ts +5 -4
- package/lib/component/elements/Input.js +33 -13
- package/lib/component/elements/InputRange.js +3 -2
- package/lib/component/elements/IsotopesViewer.js +5 -3
- package/lib/component/elements/Label.d.ts +12 -0
- package/lib/component/elements/Label.js +12 -0
- package/lib/component/elements/Logo.js +1 -1
- package/lib/component/elements/MenuButton.js +6 -6
- package/lib/component/elements/MolecularFormulaInput.js +4 -1
- package/lib/component/elements/MoleculeSelection.d.ts +1 -0
- package/lib/component/elements/MoleculeSelection.js +6 -5
- package/lib/component/elements/NextPrev.js +7 -7
- package/lib/component/elements/NumberInput.d.ts +1 -1
- package/lib/component/elements/NumberInput.js +1 -1
- package/lib/component/elements/ReactTable/Elements/ReactTableHeader.d.ts +4 -3
- package/lib/component/elements/ReactTable/Elements/ReactTableHeader.js +4 -2
- package/lib/component/elements/ReactTable/Elements/ReactTableRow.d.ts +6 -2
- package/lib/component/elements/ReactTable/Elements/ReactTableRow.js +46 -19
- package/lib/component/elements/ReactTable/ReactTable.d.ts +15 -1
- package/lib/component/elements/ReactTable/ReactTable.js +118 -7
- package/lib/component/elements/ReactTable/ReactTableExpandable.js +3 -3
- package/lib/component/elements/ReactTable/ReactTableFlexLayout.js +5 -5
- package/lib/component/elements/ReactTable/Style.js +3 -3
- package/lib/component/elements/ReactTable/utility/ReactTableContext.d.ts +4 -0
- package/lib/component/elements/ReactTable/utility/ReactTableContext.js +10 -0
- package/lib/component/elements/ReactTable/utility/addCustomColumn.d.ts +18 -0
- package/lib/component/elements/ReactTable/utility/addCustomColumn.js +14 -0
- package/lib/component/elements/ReactTable/utility/useRowSpan.d.ts +2 -0
- package/lib/component/elements/ReactTable/utility/useRowSpan.js +39 -0
- package/lib/component/elements/SaveButton.js +1 -1
- package/lib/component/elements/Select.d.ts +6 -5
- package/lib/component/elements/Select.js +2 -1
- package/lib/component/elements/Tab/DeleteButton.js +1 -1
- package/lib/component/elements/Tab/Tab.js +2 -2
- package/lib/component/elements/Tab/Tabs.d.ts +1 -1
- package/lib/component/elements/Tab/Tabs.js +5 -3
- package/lib/component/elements/Table/Table.js +1 -1
- package/lib/component/elements/Table/TableBody.js +1 -1
- package/lib/component/elements/Table/TableCell.js +2 -2
- package/lib/component/elements/Table/TableHead.js +1 -1
- package/lib/component/elements/Table/TableRow.js +1 -1
- package/lib/component/elements/ToggleButton.d.ts +2 -1
- package/lib/component/elements/ToggleButton.js +5 -4
- package/lib/component/elements/ToolTip/ToolTip.js +4 -4
- package/lib/component/elements/ToolbarMenu.d.ts +8 -0
- package/lib/component/elements/ToolbarMenu.js +102 -0
- package/lib/component/elements/accordion/Accordion.js +1 -1
- package/lib/component/elements/accordion/AccordionItem.js +3 -3
- package/lib/component/elements/dropDownButton/DropDownButton.js +1 -1
- package/lib/component/elements/dropDownButton/DropDownList.js +1 -1
- package/lib/component/elements/formik/ErrorMessage.js +1 -1
- package/lib/component/elements/formik/FormikCheckBox.d.ts +6 -2
- package/lib/component/elements/formik/FormikCheckBox.js +2 -2
- package/lib/component/elements/formik/FormikColorInput.js +1 -1
- package/lib/component/elements/formik/FormikColumnFormatField.d.ts +1 -1
- package/lib/component/elements/formik/FormikColumnFormatField.js +2 -2
- package/lib/component/elements/formik/FormikErrorsSummary.js +3 -3
- package/lib/component/elements/formik/FormikForm.js +2 -2
- package/lib/component/elements/formik/FormikInput.js +4 -4
- package/lib/component/elements/formik/FormikNumberInput.js +1 -1
- package/lib/component/elements/formik/FormikSelect.js +1 -1
- package/lib/component/elements/formik/FormikSlider.js +1 -1
- package/lib/component/elements/formik/FormikTextarea.d.ts +9 -0
- package/lib/component/elements/formik/FormikTextarea.js +29 -0
- package/lib/component/elements/formik/Input.js +1 -1
- package/lib/component/elements/formik/SelectBox.js +2 -2
- package/lib/component/elements/linearAxis/LinearVerticalAxis.d.ts +21 -0
- package/lib/component/elements/linearAxis/LinearVerticalAxis.js +15 -0
- package/lib/component/elements/popup/Alert/Provider.js +8 -8
- package/lib/component/elements/popup/Modal/ConfirmDialog.js +1 -1
- package/lib/component/elements/popup/Modal/Modal.js +2 -2
- package/lib/component/elements/popup/Modal/ModalContent.js +3 -3
- package/lib/component/elements/popup/Modal/Provider.js +8 -8
- package/lib/component/elements/popup/Transition.js +2 -2
- package/lib/component/elements/popup/Wrapper.js +1 -1
- package/lib/component/elements/toggle/ToggleButton.d.ts +7 -10
- package/lib/component/elements/toggle/ToggleButton.js +7 -25
- package/lib/component/elements/toggle/ToggleButtonGroup.js +2 -3
- package/lib/component/header/AutoPeakPickingOptionPanel.js +2 -3
- package/lib/component/header/BaseLineCorrectionPanel.js +3 -1
- package/lib/component/header/Header.d.ts +3 -3
- package/lib/component/header/Header.js +13 -57
- package/lib/component/header/ManualPhaseCorrectionPanel.js +6 -5
- package/lib/component/header/RangesPickingOptionPanel.js +15 -8
- package/lib/component/header/ZeroFillingOptionsPanel.js +1 -1
- package/lib/component/header/Zones2DOptionPanel.js +2 -2
- package/lib/component/highlight/index.d.ts +42 -17
- package/lib/component/highlight/index.js +76 -59
- package/lib/component/hooks/useCheckExperimentalFeature.js +1 -1
- package/lib/component/hooks/useDatumWithSpectraStatistics.d.ts +2 -2
- package/lib/component/hooks/useExport.js +5 -5
- package/lib/component/hooks/useSpectraPerNucleus.d.ts +3 -3
- package/lib/component/hooks/useSpectrum.d.ts +3 -3
- package/lib/component/hooks/useToolsFunctions.js +12 -2
- package/lib/component/hooks/useXYReduce.d.ts +10 -0
- package/lib/component/hooks/useXYReduce.js +16 -0
- package/lib/component/loader/DefaultSpinnerComponent.js +1 -1
- package/lib/component/loader/DropZone.js +6 -1
- package/lib/component/loader/NoData.js +1 -1
- package/lib/component/modal/AboutUsModal.js +3 -3
- package/lib/component/modal/AlignSpectraModal.js +2 -1
- package/lib/component/modal/CopyClipboardModal.js +2 -2
- package/lib/component/modal/ExportAsMatrixModal.js +2 -1
- package/lib/component/modal/ImportPublicationStringModal.js +28 -7
- package/lib/component/modal/LoadJCAMPModal.js +1 -1
- package/lib/component/modal/MoleculeStructureEditorModal.js +1 -1
- package/lib/component/modal/MultipleSpectraFiltersModal/EquallySpacedFilter.js +3 -2
- package/lib/component/modal/MultipleSpectraFiltersModal/FromToFilter.js +2 -1
- package/lib/component/modal/MultipleSpectraFiltersModal/index.js +5 -1
- package/lib/component/modal/MultipletAnalysisModal.d.ts +4 -2
- package/lib/component/modal/MultipletAnalysisModal.js +12 -7
- package/lib/component/modal/PredictSpectraModal.js +2 -1
- package/lib/component/modal/SaveAsModal.js +18 -4
- package/lib/component/modal/changeSum/ChangeSumModal.d.ts +13 -5
- package/lib/component/modal/changeSum/ChangeSumModal.js +118 -14
- package/lib/component/modal/changeSum/SelectMolecule.d.ts +2 -4
- package/lib/component/modal/changeSum/SelectMolecule.js +42 -64
- package/lib/component/modal/editRange/EditRangeModal.js +1 -1
- package/lib/component/modal/editRange/forms/components/AddSignalFormTab.js +7 -7
- package/lib/component/modal/editRange/forms/components/CouplingsTable.js +6 -9
- package/lib/component/modal/editRange/forms/components/DeltaInput.js +4 -6
- package/lib/component/modal/editRange/forms/components/SignalFormTab.js +1 -1
- package/lib/component/modal/editRange/forms/components/SignalsForm.js +7 -7
- package/lib/component/modal/editRange/forms/validation/EditRangeValidation.d.ts +169 -169
- package/lib/component/modal/setting/ControllersTabContent.js +2 -2
- package/lib/component/modal/setting/DisplayTabContent.js +5 -1
- package/lib/component/modal/setting/FormattingTabContent.js +3 -3
- package/lib/component/modal/setting/GeneralSettings.js +3 -3
- package/lib/component/nmriumMode/basic.d.ts +1 -0
- package/lib/component/nmriumMode/basic.js +1 -0
- package/lib/component/nmriumMode/exercise1D.d.ts +1 -0
- package/lib/component/nmriumMode/exercise1D.js +1 -0
- package/lib/component/nmriumMode/process1D.d.ts +1 -0
- package/lib/component/nmriumMode/process1D.js +1 -0
- package/lib/component/panels/InformationPanel.js +6 -5
- package/lib/component/panels/IntegralsPanel/IntegralPanel.d.ts +2 -4
- package/lib/component/panels/IntegralsPanel/IntegralPanel.js +28 -26
- package/lib/component/panels/IntegralsPanel/IntegralTable.d.ts +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralTable.js +46 -41
- package/lib/component/panels/IntegralsPanel/IntegralsPreferences.js +6 -6
- package/lib/component/panels/MoleculesPanel/MoleculePanel.js +11 -15
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +2 -2
- package/lib/component/panels/MoleculesPanel/useAtomAssignment.js +4 -10
- package/lib/component/panels/MultipleSpectraAnalysisPanel/ColumnHeader.js +1 -1
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleAnalysisCodeEditor.js +3 -3
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPanel.d.ts +1 -2
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPanel.js +23 -17
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPreferences.js +3 -3
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisTable.js +20 -22
- package/lib/component/panels/Panels.d.ts +1 -0
- package/lib/component/panels/Panels.js +28 -31
- package/lib/component/panels/PeaksPanel/PeaksPanel.d.ts +1 -2
- package/lib/component/panels/PeaksPanel/PeaksPanel.js +21 -15
- package/lib/component/panels/PeaksPanel/PeaksPreferences.js +2 -2
- package/lib/component/panels/PeaksPanel/PeaksTable.js +62 -54
- package/lib/component/panels/RangesPanel/RangesHeader.d.ts +4 -5
- package/lib/component/panels/RangesPanel/RangesHeader.js +41 -40
- package/lib/component/panels/RangesPanel/RangesPanel.d.ts +1 -2
- package/lib/component/panels/RangesPanel/RangesPanel.js +44 -72
- package/lib/component/panels/RangesPanel/RangesPreferences.js +13 -13
- package/lib/component/panels/RangesPanel/RangesTable.js +2 -2
- package/lib/component/panels/RangesPanel/RangesTableRow.js +5 -5
- package/lib/component/panels/RangesPanel/TableColumns/AbsoluteColumn.js +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/ActionsColumn.js +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/CouplingColumn.js +2 -2
- package/lib/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.js +7 -6
- package/lib/component/panels/RangesPanel/TableColumns/RangeColumn.js +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/RelativeColumn.js +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentsColumn.js +2 -2
- package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.js +1 -1
- package/lib/component/panels/SpectrumsPanel/SpectraPanelHeader.d.ts +2 -2
- package/lib/component/panels/SpectrumsPanel/SpectraPanelHeader.js +2 -2
- package/lib/component/panels/SpectrumsPanel/SpectrumListItem.js +6 -7
- package/lib/component/panels/SpectrumsPanel/SpectrumListPanel.js +2 -1
- package/lib/component/panels/SpectrumsPanel/SpectrumsTabs.d.ts +2 -2
- package/lib/component/panels/SpectrumsPanel/SpectrumsTabs.js +3 -3
- package/lib/component/panels/SpectrumsPanel/base/ColorIndicator.js +2 -2
- package/lib/component/panels/SpectrumsPanel/base/ShowHideMarkersButton.js +2 -2
- package/lib/component/panels/SpectrumsPanel/base/ShowHideSpectrumButton.js +4 -4
- package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum1DHistogram.js +4 -4
- package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum1DSetting.js +1 -1
- package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum2DHistogram.js +4 -4
- package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum2DSetting.js +1 -1
- package/lib/component/panels/SpectrumsPanel/base/setting/SpectrumSetting.js +2 -2
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js +84 -89
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.d.ts +2 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.js +68 -21
- package/lib/component/panels/SummaryPanel/CorrelationTable/Constants.d.ts +6 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/Constants.js +7 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.d.ts +2 -2
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.js +10 -5
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.d.ts +2 -2
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js +85 -38
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/Confirmation.d.ts +6 -0
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/Confirmation.js +41 -0
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditLinkModal.d.ts +8 -0
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditLinkModal.js +115 -0
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.d.ts +10 -0
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.js +80 -0
- package/lib/component/panels/SummaryPanel/Overview.d.ts +1 -1
- package/lib/component/panels/SummaryPanel/Overview.js +17 -5
- package/lib/component/panels/SummaryPanel/SetMolecularFormulaModal.js +1 -1
- package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.js +44 -21
- package/lib/component/panels/SummaryPanel/SummaryPanel.js +134 -88
- package/lib/component/panels/SummaryPanel/Utilities.d.ts +23 -7
- package/lib/component/panels/SummaryPanel/Utilities.js +159 -50
- package/lib/component/panels/ZonesPanel/TableColumns/ActionsColumn.js +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.js +4 -4
- package/lib/component/panels/ZonesPanel/TableColumns/SignalDeltaColumn.js +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js +4 -4
- package/lib/component/panels/ZonesPanel/ZonesPanel.d.ts +1 -2
- package/lib/component/panels/ZonesPanel/ZonesPanel.js +39 -37
- package/lib/component/panels/ZonesPanel/ZonesPreferences.js +2 -2
- package/lib/component/panels/ZonesPanel/ZonesTable.js +1 -1
- package/lib/component/panels/ZonesPanel/ZonesTableRow.js +2 -2
- package/lib/component/panels/databasePanel/DatabasePanel.d.ts +5 -0
- package/lib/component/panels/databasePanel/DatabasePanel.js +200 -0
- package/lib/component/panels/databasePanel/DatabasePreferences.d.ts +3 -0
- package/lib/component/panels/databasePanel/DatabasePreferences.js +81 -0
- package/lib/component/panels/databasePanel/DatabaseTable.d.ts +8 -0
- package/lib/component/panels/databasePanel/DatabaseTable.js +116 -0
- package/lib/component/panels/extra/BasicPanelStyle.d.ts +1 -0
- package/lib/component/panels/extra/BasicPanelStyle.js +20 -0
- package/lib/component/panels/extra/placeholder/NoTableData.js +13 -7
- package/lib/component/panels/extra/preferences/defaultValues.d.ts +13 -2
- package/lib/component/panels/extra/preferences/defaultValues.js +14 -3
- package/lib/component/panels/filtersPanel/FilterPanel.js +1 -1
- package/lib/component/panels/filtersPanel/FiltersTable.js +2 -2
- package/lib/component/panels/header/DefaultPanelHeader.d.ts +5 -2
- package/lib/component/panels/header/DefaultPanelHeader.js +12 -21
- package/lib/component/panels/header/PreferencesHeader.js +1 -1
- package/lib/component/reducer/IgnoreActions.js +0 -1
- package/lib/component/reducer/Reducer.d.ts +305 -157
- package/lib/component/reducer/Reducer.js +42 -32
- package/lib/component/reducer/actions/CorrelationsActions.d.ts +7 -2
- package/lib/component/reducer/actions/CorrelationsActions.js +56 -6
- package/lib/component/reducer/actions/DatabaseActions.d.ts +4 -0
- package/lib/component/reducer/actions/DatabaseActions.js +11 -0
- package/lib/component/reducer/actions/DomainActions.d.ts +8 -4
- package/lib/component/reducer/actions/DomainActions.js +11 -32
- package/lib/component/reducer/actions/FiltersActions.js +2 -19
- package/lib/component/reducer/actions/IntegralsActions.d.ts +3 -4
- package/lib/component/reducer/actions/IntegralsActions.js +26 -47
- package/lib/component/reducer/actions/LoadActions.d.ts +1 -1
- package/lib/component/reducer/actions/LoadActions.js +38 -15
- package/lib/component/reducer/actions/MoleculeActions.js +28 -4
- package/lib/component/reducer/actions/PeaksActions.js +14 -10
- package/lib/component/reducer/actions/PreferencesActions.d.ts +5 -4
- package/lib/component/reducer/actions/PreferencesActions.js +32 -14
- package/lib/component/reducer/actions/RangesActions.d.ts +8 -5
- package/lib/component/reducer/actions/RangesActions.js +81 -34
- package/lib/component/reducer/actions/{SpectraAanalysisAction.d.ts → SpectraAnalysisAction.d.ts} +0 -0
- package/lib/component/reducer/actions/{SpectraAanalysisAction.js → SpectraAnalysisAction.js} +0 -0
- package/lib/component/reducer/actions/SpectrumsActions.d.ts +3 -2
- package/lib/component/reducer/actions/SpectrumsActions.js +14 -6
- package/lib/component/reducer/actions/ToolsActions.d.ts +7 -1
- package/lib/component/reducer/actions/ToolsActions.js +25 -42
- package/lib/component/reducer/actions/ZonesActions.d.ts +2 -1
- package/lib/component/reducer/actions/ZonesActions.js +38 -13
- package/lib/component/reducer/actions/Zoom.d.ts +2 -3
- package/lib/component/reducer/actions/Zoom.js +9 -22
- package/lib/component/reducer/preferencesReducer.d.ts +22 -4
- package/lib/component/reducer/preferencesReducer.js +1 -4
- package/lib/component/reducer/types/Types.d.ts +7 -2
- package/lib/component/reducer/types/Types.js +7 -2
- package/lib/component/tool/BrushX.js +2 -2
- package/lib/component/tool/BrushXY.js +3 -2
- package/lib/component/tool/CrossLinePointer.js +3 -2
- package/lib/component/toolbar/BasicToolBar.d.ts +2 -1
- package/lib/component/toolbar/BasicToolBar.js +22 -49
- package/lib/component/toolbar/FunctionToolBar.d.ts +2 -1
- package/lib/component/toolbar/FunctionToolBar.js +25 -57
- package/lib/component/toolbar/HistoryToolBar.js +4 -4
- package/lib/component/toolbar/ToolBar.js +3 -11
- package/lib/component/toolbar/ToolTypes.d.ts +1 -1
- package/lib/component/toolbar/ToolTypes.js +7 -1
- package/lib/component/utility/Evaluate.js +0 -1
- package/lib/component/utility/Export.js +0 -2
- package/lib/component/utility/FileUtility.js +2 -5
- package/lib/component/utility/util/nmredata/addRanges.js +2 -2
- package/lib/component/utility/util/nmredata/addZones.js +3 -3
- package/lib/component/utility/util/nmredata/get1DSignals.js +2 -2
- package/lib/data/PredictionManager.d.ts +4 -3
- package/lib/data/PredictionManager.js +13 -13
- package/lib/data/SpectraManager.d.ts +10 -2
- package/lib/data/SpectraManager.js +27 -12
- package/lib/data/data1d/Data1DManager.d.ts +3 -3
- package/lib/data/data1d/MultipleAnalysis.d.ts +2 -2
- package/lib/data/data1d/MultipleAnalysis.js +3 -4
- package/lib/data/data1d/Spectrum1D/SumManager.d.ts +34 -0
- package/lib/data/data1d/Spectrum1D/SumManager.js +84 -0
- package/lib/data/data1d/Spectrum1D/generateJGraphData.d.ts +21 -0
- package/lib/data/data1d/Spectrum1D/generateJGraphData.js +82 -0
- package/lib/data/data1d/Spectrum1D/generateSpectrumFromPublicationString.d.ts +3 -0
- package/lib/data/data1d/Spectrum1D/generateSpectrumFromPublicationString.js +6 -0
- package/lib/data/data1d/Spectrum1D/get1DDataXY.d.ts +15 -0
- package/lib/data/data1d/Spectrum1D/get1DDataXY.js +14 -0
- package/lib/data/data1d/{getReferenceShift.d.ts → Spectrum1D/getReferenceShift.d.ts} +1 -1
- package/lib/data/data1d/Spectrum1D/getReferenceShift.js +55 -0
- package/lib/data/data1d/Spectrum1D/index.d.ts +24 -0
- package/lib/data/data1d/Spectrum1D/index.js +24 -0
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.d.ts +2 -0
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.js +89 -0
- package/lib/data/data1d/Spectrum1D/integrals/changeIntegralsRelative.d.ts +5 -0
- package/lib/data/data1d/Spectrum1D/integrals/changeIntegralsRelative.js +23 -0
- package/lib/data/data1d/Spectrum1D/integrals/checkIntegralKind.d.ts +7 -0
- package/lib/data/data1d/Spectrum1D/integrals/checkIntegralKind.js +9 -0
- package/lib/data/data1d/Spectrum1D/integrals/updateIntegralsRelativeValues.d.ts +2 -0
- package/lib/data/data1d/Spectrum1D/integrals/updateIntegralsRelativeValues.js +5 -0
- package/lib/data/data1d/Spectrum1D/integrals/updateRelatives.d.ts +2 -0
- package/lib/data/data1d/Spectrum1D/integrals/updateRelatives.js +30 -0
- package/lib/data/data1d/Spectrum1D/isSpectrum1D.d.ts +3 -0
- package/lib/data/data1d/Spectrum1D/isSpectrum1D.js +3 -0
- package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.d.ts +2 -0
- package/lib/data/data1d/{autoPeakPicking.js → Spectrum1D/peaks/autoPeakPicking.js} +8 -9
- package/lib/data/data1d/Spectrum1D/peaks/lookupPeak.d.ts +17 -0
- package/lib/data/data1d/Spectrum1D/peaks/lookupPeak.js +18 -0
- package/lib/data/data1d/Spectrum1D/ranges/addRange.d.ts +8 -0
- package/lib/data/data1d/Spectrum1D/ranges/addRange.js +33 -0
- package/lib/data/data1d/Spectrum1D/ranges/autoRangesDetection.d.ts +2 -0
- package/lib/data/data1d/{autoRangesDetection.js → Spectrum1D/ranges/autoRangesDetection.js} +2 -2
- package/lib/data/data1d/Spectrum1D/ranges/changeRange.d.ts +2 -0
- package/lib/data/data1d/Spectrum1D/ranges/changeRange.js +18 -0
- package/lib/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.d.ts +12 -0
- package/lib/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.js +26 -0
- package/lib/data/data1d/Spectrum1D/ranges/changeRangeSignal.d.ts +8 -0
- package/lib/data/data1d/Spectrum1D/ranges/changeRangeSignal.js +13 -0
- package/lib/data/data1d/Spectrum1D/ranges/checkRangeKind.d.ts +2 -0
- package/lib/data/data1d/Spectrum1D/ranges/checkRangeKind.js +5 -0
- package/lib/data/data1d/Spectrum1D/ranges/detectRange.d.ts +7 -0
- package/lib/data/data1d/Spectrum1D/ranges/detectRange.js +22 -0
- package/lib/data/data1d/Spectrum1D/ranges/detectRanges.d.ts +20 -0
- package/lib/data/data1d/Spectrum1D/ranges/detectRanges.js +15 -0
- package/lib/data/data1d/{detectSignal.d.ts → Spectrum1D/ranges/detectSignal.d.ts} +0 -0
- package/lib/data/data1d/{detectSignal.js → Spectrum1D/ranges/detectSignal.js} +0 -0
- package/lib/data/data1d/Spectrum1D/ranges/generateSpectrumFromRanges.d.ts +9 -0
- package/lib/data/data1d/Spectrum1D/ranges/generateSpectrumFromRanges.js +24 -0
- package/lib/data/data1d/Spectrum1D/ranges/mapRanges.d.ts +2 -0
- package/lib/data/data1d/Spectrum1D/ranges/mapRanges.js +38 -0
- package/lib/data/data1d/Spectrum1D/ranges/updateRangesRelativeValues.d.ts +2 -0
- package/lib/data/data1d/Spectrum1D/ranges/updateRangesRelativeValues.js +5 -0
- package/lib/data/data1d/Spectrum1D/shift/getShiftX.d.ts +2 -0
- package/lib/data/data1d/Spectrum1D/shift/getShiftX.js +6 -0
- package/lib/data/data1d/Spectrum1D/shift/internal/updateIntegralXShift.d.ts +2 -0
- package/lib/data/data1d/Spectrum1D/shift/internal/updateIntegralXShift.js +7 -0
- package/lib/data/data1d/Spectrum1D/shift/internal/updatePeaksXShift.d.ts +2 -0
- package/lib/data/data1d/Spectrum1D/shift/internal/updatePeaksXShift.js +12 -0
- package/lib/data/data1d/Spectrum1D/shift/internal/updateRangesXShift.d.ts +2 -0
- package/lib/data/data1d/Spectrum1D/shift/internal/updateRangesXShift.js +12 -0
- package/lib/data/data1d/Spectrum1D/shift/updateXShift.d.ts +2 -0
- package/lib/data/data1d/Spectrum1D/shift/updateXShift.js +10 -0
- package/lib/data/data1d/Spectrum1D/toJSON.d.ts +26 -0
- package/lib/data/data1d/Spectrum1D/toJSON.js +27 -0
- package/lib/data/data1d/database.d.ts +30 -0
- package/lib/data/data1d/database.js +87 -0
- package/lib/data/data1d/filter1d/autoPhaseCorrection.d.ts +5 -1
- package/lib/data/data1d/filter1d/fft.js +1 -1
- package/lib/data/data2d/Data2DManager.d.ts +3 -3
- package/lib/data/data2d/Spectrum2D/getMissingProjection.d.ts +6 -0
- package/lib/data/data2d/Spectrum2D/getMissingProjection.js +40 -0
- package/lib/data/data2d/Spectrum2D/getSlice.d.ts +14 -0
- package/lib/data/data2d/Spectrum2D/getSlice.js +43 -0
- package/lib/data/data2d/Spectrum2D/index.d.ts +11 -0
- package/lib/data/data2d/Spectrum2D/index.js +11 -0
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.d.ts +2 -0
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.js +55 -0
- package/lib/data/data2d/Spectrum2D/isSpectrum2D.d.ts +3 -0
- package/lib/data/data2d/Spectrum2D/isSpectrum2D.js +3 -0
- package/lib/data/data2d/Spectrum2D/shift/getShift.d.ts +5 -0
- package/lib/data/data2d/Spectrum2D/shift/getShift.js +16 -0
- package/lib/data/data2d/Spectrum2D/shift/updateShift.d.ts +2 -0
- package/lib/data/data2d/Spectrum2D/shift/updateShift.js +18 -0
- package/lib/data/data2d/Spectrum2D/toJSON.d.ts +22 -0
- package/lib/data/data2d/Spectrum2D/toJSON.js +25 -0
- package/lib/data/data2d/Spectrum2D/zones/changeZoneSignal.d.ts +13 -0
- package/lib/data/data2d/Spectrum2D/zones/changeZoneSignal.js +26 -0
- package/lib/data/data2d/Spectrum2D/zones/detectZones.d.ts +3 -0
- package/lib/data/data2d/Spectrum2D/zones/detectZones.js +48 -0
- package/lib/data/data2d/Spectrum2D/zones/detectZonesManual.d.ts +14 -0
- package/lib/data/data2d/Spectrum2D/zones/detectZonesManual.js +44 -0
- package/lib/data/data2d/Spectrum2D/zones/getDetectionZones.d.ts +24 -0
- package/lib/data/data2d/Spectrum2D/zones/getDetectionZones.js +79 -0
- package/lib/data/migration/MigrationManager.d.ts +2 -0
- package/lib/data/migration/MigrationManager.js +14 -0
- package/lib/data/migration/changeKeys.d.ts +1 -0
- package/lib/data/migration/changeKeys.js +9 -0
- package/lib/data/migration/migrateToVersion1.d.ts +11 -0
- package/lib/data/migration/migrateToVersion1.js +32 -0
- package/lib/data/migration/migrateToVersion2.d.ts +1 -0
- package/lib/data/migration/migrateToVersion2.js +111 -0
- package/lib/data/types/common/File.d.ts +5 -0
- package/lib/data/types/common/File.js +1 -0
- package/lib/data/types/common/Source.d.ts +4 -0
- package/lib/data/types/common/Source.js +1 -0
- package/lib/data/types/data1d/Data1D.d.ts +5 -0
- package/lib/data/types/data1d/Data1D.js +1 -0
- package/lib/data/types/data1d/Datum1D.d.ts +22 -0
- package/lib/data/types/data1d/Datum1D.js +1 -0
- package/lib/data/types/data1d/Display1D.d.ts +7 -0
- package/lib/data/types/data1d/Display1D.js +1 -0
- package/lib/data/types/data1d/Info1D.d.ts +10 -0
- package/lib/data/types/data1d/Info1D.js +1 -0
- package/lib/data/types/data1d/Integral.d.ts +10 -0
- package/lib/data/types/data1d/Integral.js +1 -0
- package/lib/data/types/data1d/Integrals.d.ts +6 -0
- package/lib/data/types/data1d/Integrals.js +1 -0
- package/lib/data/types/data1d/Peak.d.ts +5 -0
- package/lib/data/types/data1d/Peak.js +1 -0
- package/lib/data/types/data1d/Peaks.d.ts +5 -0
- package/lib/data/types/data1d/Peaks.js +1 -0
- package/lib/data/types/data1d/Range.d.ts +11 -0
- package/lib/data/types/data1d/Range.js +1 -0
- package/lib/data/types/data1d/RangeDetectionResult.d.ts +6 -0
- package/lib/data/types/data1d/RangeDetectionResult.js +1 -0
- package/lib/data/types/data1d/Ranges.d.ts +6 -0
- package/lib/data/types/data1d/Ranges.js +1 -0
- package/lib/data/types/data1d/Signal1D.d.ts +5 -0
- package/lib/data/types/data1d/Signal1D.js +1 -0
- package/lib/data/types/data1d/SumOptions.d.ts +7 -0
- package/lib/data/types/data1d/SumOptions.js +1 -0
- package/lib/data/types/data1d/index.d.ts +13 -0
- package/lib/data/types/data1d/index.js +1 -0
- package/lib/data/types/data2d/Contour.d.ts +4 -0
- package/lib/data/types/data2d/Contour.js +1 -0
- package/lib/data/types/data2d/ContourOptions.d.ts +10 -0
- package/lib/data/types/data2d/ContourOptions.js +1 -0
- package/lib/data/types/data2d/Contours.d.ts +2 -0
- package/lib/data/types/data2d/Contours.js +1 -0
- package/lib/data/types/data2d/Data2D.d.ts +7 -0
- package/lib/data/types/data2d/Data2D.js +1 -0
- package/lib/data/types/data2d/Datum2D.d.ts +19 -0
- package/lib/data/types/data2d/Datum2D.js +1 -0
- package/lib/data/types/data2d/Display2D.d.ts +10 -0
- package/lib/data/types/data2d/Display2D.js +1 -0
- package/lib/data/types/data2d/Info2D.d.ts +8 -0
- package/lib/data/types/data2d/Info2D.js +1 -0
- package/lib/data/types/data2d/Signal2D.d.ts +7 -0
- package/lib/data/types/data2d/Signal2D.js +1 -0
- package/lib/data/types/data2d/Signal2DAxisData.d.ts +4 -0
- package/lib/data/types/data2d/Signal2DAxisData.js +1 -0
- package/lib/data/types/data2d/Zone.d.ts +9 -0
- package/lib/data/types/data2d/Zone.js +1 -0
- package/lib/data/types/data2d/Zone2DAxisData.d.ts +6 -0
- package/lib/data/types/data2d/Zone2DAxisData.js +1 -0
- package/lib/data/types/data2d/Zones.d.ts +7 -0
- package/lib/data/types/data2d/Zones.js +1 -0
- package/lib/data/types/data2d/index.d.ts +9 -0
- package/lib/data/types/data2d/index.js +1 -0
- package/lib/data/utilities/FindUtilities.d.ts +10 -0
- package/lib/data/utilities/FindUtilities.js +57 -0
- package/lib/data/utilities/RangeUtilities.d.ts +7 -6
- package/lib/data/utilities/RangeUtilities.js +15 -11
- package/lib/data/utilities/ZoneUtilities.d.ts +9 -8
- package/lib/data/utilities/ZoneUtilities.js +15 -15
- package/lib/data/utilities/getAtom.d.ts +1 -0
- package/lib/data/utilities/getAtom.js +3 -0
- package/lib/data/utilities/getSum.d.ts +8 -0
- package/lib/data/utilities/getSum.js +14 -0
- package/lib/types/UsedColors.d.ts +4 -0
- package/lib/types/UsedColors.js +1 -0
- package/lib/versionInfo.js +1 -1
- package/lib-cjs/component/1d/BaseLineZones.js +1 -1
- package/lib-cjs/component/1d/Chart1D.js +3 -1
- package/lib-cjs/component/1d/ExclusionZone.js +5 -2
- package/lib-cjs/component/1d/ExclusionZones.js +1 -1
- package/lib-cjs/component/1d/FooterBanner.js +8 -38
- package/lib-cjs/component/1d/Integral.js +8 -30
- package/lib-cjs/component/1d/IntegralResizable.js +8 -5
- package/lib-cjs/component/1d/IntegralsSeries.js +5 -16
- package/lib-cjs/component/1d/Line.js +31 -14
- package/lib-cjs/component/1d/LinesSeries.js +3 -2
- package/lib-cjs/component/1d/PeakAnnotation.js +8 -5
- package/lib-cjs/component/1d/PeakAnnotations.js +7 -19
- package/lib-cjs/component/1d/Resizable.js +3 -3
- package/lib-cjs/component/1d/ResurrectedDatabaseRanges.js +62 -0
- package/lib-cjs/component/1d/SpectraTracker.js +10 -9
- package/lib-cjs/component/1d/Viewer1D.js +19 -31
- package/lib-cjs/component/1d/XAxis.js +1 -1
- package/lib-cjs/component/1d/YAxis.js +1 -1
- package/lib-cjs/component/1d/jCouplingGraph/JGraph.js +52 -0
- package/lib-cjs/component/1d/jCouplingGraph/JGraphContext.js +18 -0
- package/lib-cjs/component/1d/jCouplingGraph/JGraphVerticalAxis.js +15 -0
- package/lib-cjs/component/1d/jCouplingGraph/JsCoupling.js +13 -0
- package/lib-cjs/component/1d/jCouplingGraph/JsCouplingLinks.js +29 -0
- package/lib-cjs/component/1d/jCouplingGraph/JsCouplings.js +19 -0
- package/lib-cjs/component/1d/multiAnalysis/AnalysisRange.js +1 -1
- package/lib-cjs/component/1d/multiAnalysis/MultiAnalysisRanges.js +2 -2
- package/lib-cjs/component/1d/multiplicityTree/MultiplicityTree.js +43 -33
- package/lib-cjs/component/1d/multiplicityTree/StringNode.js +1 -1
- package/lib-cjs/component/1d/multiplicityTree/TreeNodes.js +1 -1
- package/lib-cjs/component/1d/multiplicityTree/buildTreeNode.js +6 -2
- package/lib-cjs/component/1d/ranges/Range.js +6 -6
- package/lib-cjs/component/1d/ranges/RangeIntegral.js +16 -0
- package/lib-cjs/component/1d/ranges/Ranges.js +12 -10
- package/lib-cjs/component/1d/tool/PeakPointer.js +18 -19
- package/lib-cjs/component/1d/tool/XLabelPointer.js +2 -2
- package/lib-cjs/component/1d/utilities/getVerticalShift.js +12 -0
- package/lib-cjs/component/1d/utilities/scale.js +12 -3
- package/lib-cjs/component/1d/utilities/useIntegralPath.js +67 -0
- package/lib-cjs/component/2d/Chart2D.js +4 -4
- package/lib-cjs/component/2d/Contours.js +2 -2
- package/lib-cjs/component/2d/FooterBanner.js +5 -3
- package/lib-cjs/component/2d/Left1DChart.js +36 -11
- package/lib-cjs/component/2d/Top1DChart.js +35 -8
- package/lib-cjs/component/2d/Viewer2D.js +15 -18
- package/lib-cjs/component/2d/XAxis.js +1 -1
- package/lib-cjs/component/2d/YAxis.js +1 -1
- package/lib-cjs/component/2d/tools/XYLabelPointer.js +2 -2
- package/lib-cjs/component/2d/tools/slicing/HorizontalSliceChart.js +25 -7
- package/lib-cjs/component/2d/tools/slicing/SlicingView.js +2 -2
- package/lib-cjs/component/2d/tools/slicing/VerticalSliceChart.js +26 -10
- package/lib-cjs/component/2d/zones/Signal.js +4 -3
- package/lib-cjs/component/2d/zones/Zone.js +6 -3
- package/lib-cjs/component/2d/zones/Zones.js +3 -3
- package/lib-cjs/component/ErrorOverlay.js +1 -1
- package/lib-cjs/component/EventsTrackers/BrushTracker.js +1 -1
- package/lib-cjs/component/EventsTrackers/KeysListenerTracker.js +27 -17
- package/lib-cjs/component/EventsTrackers/MouseTracker.js +1 -1
- package/lib-cjs/component/NMRium.js +34 -57
- package/lib-cjs/component/assignment/index.js +1 -1
- package/lib-cjs/component/elements/Button.js +1 -1
- package/lib-cjs/component/elements/ButtonToolTip.js +1 -1
- package/lib-cjs/component/elements/CheckBox.js +2 -2
- package/lib-cjs/component/elements/CloseButton.js +1 -1
- package/lib-cjs/component/elements/ColorInput.js +1 -1
- package/lib-cjs/component/elements/ContextMenu.js +1 -1
- package/lib-cjs/component/elements/DeleteButton.js +1 -1
- package/lib-cjs/component/elements/EditableColumn.js +1 -1
- package/lib-cjs/component/elements/Input.js +33 -13
- package/lib-cjs/component/elements/InputRange.js +3 -2
- package/lib-cjs/component/elements/IsotopesViewer.js +5 -3
- package/lib-cjs/component/elements/Label.js +15 -0
- package/lib-cjs/component/elements/Logo.js +1 -1
- package/lib-cjs/component/elements/MenuButton.js +6 -6
- package/lib-cjs/component/elements/MolecularFormulaInput.js +4 -1
- package/lib-cjs/component/elements/MoleculeSelection.js +6 -5
- package/lib-cjs/component/elements/NextPrev.js +7 -7
- package/lib-cjs/component/elements/NumberInput.js +1 -1
- package/lib-cjs/component/elements/ReactTable/Elements/ReactTableHeader.js +4 -3
- package/lib-cjs/component/elements/ReactTable/Elements/ReactTableRow.js +45 -18
- package/lib-cjs/component/elements/ReactTable/ReactTable.js +136 -6
- package/lib-cjs/component/elements/ReactTable/ReactTableExpandable.js +3 -3
- package/lib-cjs/component/elements/ReactTable/ReactTableFlexLayout.js +5 -5
- package/lib-cjs/component/elements/ReactTable/Style.js +3 -3
- package/lib-cjs/component/elements/ReactTable/utility/ReactTableContext.js +14 -0
- package/lib-cjs/component/elements/ReactTable/utility/addCustomColumn.js +17 -0
- package/lib-cjs/component/elements/ReactTable/utility/useRowSpan.js +44 -0
- package/lib-cjs/component/elements/SaveButton.js +1 -1
- package/lib-cjs/component/elements/Select.js +2 -1
- package/lib-cjs/component/elements/Tab/DeleteButton.js +1 -1
- package/lib-cjs/component/elements/Tab/Tab.js +2 -2
- package/lib-cjs/component/elements/Tab/Tabs.js +4 -2
- package/lib-cjs/component/elements/Table/Table.js +1 -1
- package/lib-cjs/component/elements/Table/TableBody.js +1 -1
- package/lib-cjs/component/elements/Table/TableCell.js +2 -2
- package/lib-cjs/component/elements/Table/TableHead.js +1 -1
- package/lib-cjs/component/elements/Table/TableRow.js +1 -1
- package/lib-cjs/component/elements/ToggleButton.js +5 -4
- package/lib-cjs/component/elements/ToolTip/ToolTip.js +4 -4
- package/lib-cjs/component/elements/ToolbarMenu.js +105 -0
- package/lib-cjs/component/elements/accordion/Accordion.js +1 -1
- package/lib-cjs/component/elements/accordion/AccordionItem.js +3 -3
- package/lib-cjs/component/elements/dropDownButton/DropDownButton.js +1 -1
- package/lib-cjs/component/elements/dropDownButton/DropDownList.js +1 -1
- package/lib-cjs/component/elements/formik/ErrorMessage.js +1 -1
- package/lib-cjs/component/elements/formik/FormikCheckBox.js +2 -2
- package/lib-cjs/component/elements/formik/FormikColorInput.js +1 -1
- package/lib-cjs/component/elements/formik/FormikColumnFormatField.js +2 -2
- package/lib-cjs/component/elements/formik/FormikErrorsSummary.js +3 -3
- package/lib-cjs/component/elements/formik/FormikForm.js +1 -1
- package/lib-cjs/component/elements/formik/FormikInput.js +4 -4
- package/lib-cjs/component/elements/formik/FormikNumberInput.js +1 -1
- package/lib-cjs/component/elements/formik/FormikSelect.js +1 -1
- package/lib-cjs/component/elements/formik/FormikSlider.js +1 -1
- package/lib-cjs/component/elements/formik/FormikTextarea.js +34 -0
- package/lib-cjs/component/elements/formik/Input.js +1 -1
- package/lib-cjs/component/elements/formik/SelectBox.js +2 -2
- package/lib-cjs/component/elements/linearAxis/LinearVerticalAxis.js +19 -0
- package/lib-cjs/component/elements/popup/Alert/Provider.js +8 -8
- package/lib-cjs/component/elements/popup/Modal/ConfirmDialog.js +1 -1
- package/lib-cjs/component/elements/popup/Modal/Modal.js +2 -2
- package/lib-cjs/component/elements/popup/Modal/ModalContent.js +3 -3
- package/lib-cjs/component/elements/popup/Modal/Provider.js +8 -8
- package/lib-cjs/component/elements/popup/Transition.js +2 -2
- package/lib-cjs/component/elements/popup/Wrapper.js +1 -1
- package/lib-cjs/component/elements/toggle/ToggleButton.js +9 -26
- package/lib-cjs/component/elements/toggle/ToggleButtonGroup.js +1 -2
- package/lib-cjs/component/header/AutoPeakPickingOptionPanel.js +2 -3
- package/lib-cjs/component/header/BaseLineCorrectionPanel.js +3 -1
- package/lib-cjs/component/header/Header.js +19 -63
- package/lib-cjs/component/header/ManualPhaseCorrectionPanel.js +6 -5
- package/lib-cjs/component/header/RangesPickingOptionPanel.js +15 -8
- package/lib-cjs/component/header/ZeroFillingOptionsPanel.js +1 -1
- package/lib-cjs/component/header/Zones2DOptionPanel.js +2 -2
- package/lib-cjs/component/highlight/index.js +77 -60
- package/lib-cjs/component/hooks/useCheckExperimentalFeature.js +1 -1
- package/lib-cjs/component/hooks/useExport.js +5 -5
- package/lib-cjs/component/hooks/useToolsFunctions.js +12 -2
- package/lib-cjs/component/hooks/useXYReduce.js +20 -0
- package/lib-cjs/component/loader/DefaultSpinnerComponent.js +1 -1
- package/lib-cjs/component/loader/DropZone.js +6 -1
- package/lib-cjs/component/loader/NoData.js +1 -1
- package/lib-cjs/component/modal/AboutUsModal.js +3 -3
- package/lib-cjs/component/modal/AlignSpectraModal.js +2 -1
- package/lib-cjs/component/modal/CopyClipboardModal.js +2 -2
- package/lib-cjs/component/modal/ExportAsMatrixModal.js +2 -1
- package/lib-cjs/component/modal/ImportPublicationStringModal.js +47 -7
- package/lib-cjs/component/modal/LoadJCAMPModal.js +1 -1
- package/lib-cjs/component/modal/MoleculeStructureEditorModal.js +1 -1
- package/lib-cjs/component/modal/MultipleSpectraFiltersModal/EquallySpacedFilter.js +3 -2
- package/lib-cjs/component/modal/MultipleSpectraFiltersModal/FromToFilter.js +2 -1
- package/lib-cjs/component/modal/MultipleSpectraFiltersModal/index.js +5 -1
- package/lib-cjs/component/modal/MultipletAnalysisModal.js +12 -7
- package/lib-cjs/component/modal/PredictSpectraModal.js +2 -1
- package/lib-cjs/component/modal/SaveAsModal.js +18 -4
- package/lib-cjs/component/modal/changeSum/ChangeSumModal.js +136 -13
- package/lib-cjs/component/modal/changeSum/SelectMolecule.js +42 -64
- package/lib-cjs/component/modal/editRange/EditRangeModal.js +1 -1
- package/lib-cjs/component/modal/editRange/forms/components/AddSignalFormTab.js +7 -7
- package/lib-cjs/component/modal/editRange/forms/components/CouplingsTable.js +6 -9
- package/lib-cjs/component/modal/editRange/forms/components/DeltaInput.js +4 -6
- package/lib-cjs/component/modal/editRange/forms/components/SignalFormTab.js +1 -1
- package/lib-cjs/component/modal/editRange/forms/components/SignalsForm.js +7 -7
- package/lib-cjs/component/modal/setting/ControllersTabContent.js +2 -2
- package/lib-cjs/component/modal/setting/DisplayTabContent.js +5 -1
- package/lib-cjs/component/modal/setting/FormattingTabContent.js +3 -3
- package/lib-cjs/component/modal/setting/GeneralSettings.js +3 -3
- package/lib-cjs/component/nmriumMode/basic.js +1 -0
- package/lib-cjs/component/nmriumMode/exercise1D.js +1 -0
- package/lib-cjs/component/nmriumMode/process1D.js +1 -0
- package/lib-cjs/component/panels/InformationPanel.js +6 -5
- package/lib-cjs/component/panels/IntegralsPanel/IntegralPanel.js +28 -26
- package/lib-cjs/component/panels/IntegralsPanel/IntegralTable.js +45 -40
- package/lib-cjs/component/panels/IntegralsPanel/IntegralsPreferences.js +6 -6
- package/lib-cjs/component/panels/MoleculesPanel/MoleculePanel.js +11 -15
- package/lib-cjs/component/panels/MoleculesPanel/MoleculePanelHeader.js +2 -2
- package/lib-cjs/component/panels/MoleculesPanel/useAtomAssignment.js +3 -9
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/ColumnHeader.js +1 -1
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/MultipleAnalysisCodeEditor.js +3 -3
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPanel.js +35 -29
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPreferences.js +3 -3
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisTable.js +20 -22
- package/lib-cjs/component/panels/Panels.js +28 -30
- package/lib-cjs/component/panels/PeaksPanel/PeaksPanel.js +31 -25
- package/lib-cjs/component/panels/PeaksPanel/PeaksPreferences.js +2 -2
- package/lib-cjs/component/panels/PeaksPanel/PeaksTable.js +62 -54
- package/lib-cjs/component/panels/RangesPanel/RangesHeader.js +47 -46
- package/lib-cjs/component/panels/RangesPanel/RangesPanel.js +55 -83
- package/lib-cjs/component/panels/RangesPanel/RangesPreferences.js +12 -12
- package/lib-cjs/component/panels/RangesPanel/RangesTable.js +2 -2
- package/lib-cjs/component/panels/RangesPanel/RangesTableRow.js +4 -4
- package/lib-cjs/component/panels/RangesPanel/TableColumns/AbsoluteColumn.js +1 -1
- package/lib-cjs/component/panels/RangesPanel/TableColumns/ActionsColumn.js +1 -1
- package/lib-cjs/component/panels/RangesPanel/TableColumns/CouplingColumn.js +2 -2
- package/lib-cjs/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.js +6 -5
- package/lib-cjs/component/panels/RangesPanel/TableColumns/RangeColumn.js +1 -1
- package/lib-cjs/component/panels/RangesPanel/TableColumns/RelativeColumn.js +1 -1
- package/lib-cjs/component/panels/RangesPanel/TableColumns/SignalAssignmentsColumn.js +2 -2
- package/lib-cjs/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.js +1 -1
- package/lib-cjs/component/panels/SpectrumsPanel/SpectraPanelHeader.js +2 -2
- package/lib-cjs/component/panels/SpectrumsPanel/SpectrumListItem.js +6 -7
- package/lib-cjs/component/panels/SpectrumsPanel/SpectrumListPanel.js +2 -1
- package/lib-cjs/component/panels/SpectrumsPanel/SpectrumsTabs.js +3 -3
- package/lib-cjs/component/panels/SpectrumsPanel/base/ColorIndicator.js +2 -2
- package/lib-cjs/component/panels/SpectrumsPanel/base/ShowHideMarkersButton.js +2 -2
- package/lib-cjs/component/panels/SpectrumsPanel/base/ShowHideSpectrumButton.js +4 -4
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/Spectrum1DHistogram.js +4 -4
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/Spectrum1DSetting.js +1 -1
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/Spectrum2DHistogram.js +4 -4
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/Spectrum2DSetting.js +1 -1
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/SpectrumSetting.js +2 -2
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js +81 -86
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.js +69 -19
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/Constants.js +8 -1
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.js +10 -5
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js +83 -36
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/editLink/Confirmation.js +43 -0
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/editLink/EditLinkModal.js +121 -0
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.js +85 -0
- package/lib-cjs/component/panels/SummaryPanel/Overview.js +19 -7
- package/lib-cjs/component/panels/SummaryPanel/SetMolecularFormulaModal.js +1 -1
- package/lib-cjs/component/panels/SummaryPanel/SetShiftTolerancesModal.js +43 -20
- package/lib-cjs/component/panels/SummaryPanel/SummaryPanel.js +132 -86
- package/lib-cjs/component/panels/SummaryPanel/Utilities.js +164 -54
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/ActionsColumn.js +1 -1
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.js +4 -4
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/SignalDeltaColumn.js +1 -1
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js +4 -4
- package/lib-cjs/component/panels/ZonesPanel/ZonesPanel.js +52 -50
- package/lib-cjs/component/panels/ZonesPanel/ZonesPreferences.js +2 -2
- package/lib-cjs/component/panels/ZonesPanel/ZonesTable.js +1 -1
- package/lib-cjs/component/panels/ZonesPanel/ZonesTableRow.js +2 -2
- package/lib-cjs/component/panels/databasePanel/DatabasePanel.js +206 -0
- package/lib-cjs/component/panels/databasePanel/DatabasePreferences.js +86 -0
- package/lib-cjs/component/panels/databasePanel/DatabaseTable.js +121 -0
- package/lib-cjs/component/panels/extra/BasicPanelStyle.js +23 -0
- package/lib-cjs/component/panels/extra/placeholder/NoTableData.js +13 -7
- package/lib-cjs/component/panels/extra/preferences/defaultValues.js +16 -4
- package/lib-cjs/component/panels/filtersPanel/FilterPanel.js +1 -1
- package/lib-cjs/component/panels/filtersPanel/FiltersTable.js +2 -2
- package/lib-cjs/component/panels/header/DefaultPanelHeader.js +12 -21
- package/lib-cjs/component/panels/header/PreferencesHeader.js +1 -1
- package/lib-cjs/component/reducer/IgnoreActions.js +0 -1
- package/lib-cjs/component/reducer/Reducer.js +42 -32
- package/lib-cjs/component/reducer/actions/CorrelationsActions.js +57 -6
- package/lib-cjs/component/reducer/actions/DatabaseActions.js +14 -0
- package/lib-cjs/component/reducer/actions/DomainActions.js +11 -33
- package/lib-cjs/component/reducer/actions/FiltersActions.js +1 -18
- package/lib-cjs/component/reducer/actions/IntegralsActions.js +25 -47
- package/lib-cjs/component/reducer/actions/LoadActions.js +38 -15
- package/lib-cjs/component/reducer/actions/MoleculeActions.js +28 -4
- package/lib-cjs/component/reducer/actions/PeaksActions.js +14 -10
- package/lib-cjs/component/reducer/actions/PreferencesActions.js +32 -14
- package/lib-cjs/component/reducer/actions/RangesActions.js +83 -33
- package/lib-cjs/component/reducer/actions/{SpectraAanalysisAction.js → SpectraAnalysisAction.js} +0 -0
- package/lib-cjs/component/reducer/actions/SpectrumsActions.js +17 -8
- package/lib-cjs/component/reducer/actions/ToolsActions.js +24 -41
- package/lib-cjs/component/reducer/actions/ZonesActions.js +36 -10
- package/lib-cjs/component/reducer/actions/Zoom.js +9 -23
- package/lib-cjs/component/reducer/preferencesReducer.js +1 -4
- package/lib-cjs/component/reducer/types/Types.js +10 -5
- package/lib-cjs/component/tool/BrushX.js +2 -2
- package/lib-cjs/component/tool/BrushXY.js +3 -2
- package/lib-cjs/component/tool/CrossLinePointer.js +3 -2
- package/lib-cjs/component/toolbar/BasicToolBar.js +32 -59
- package/lib-cjs/component/toolbar/FunctionToolBar.js +33 -65
- package/lib-cjs/component/toolbar/HistoryToolBar.js +4 -4
- package/lib-cjs/component/toolbar/ToolBar.js +3 -11
- package/lib-cjs/component/toolbar/ToolTypes.js +7 -1
- package/lib-cjs/component/utility/Evaluate.js +0 -1
- package/lib-cjs/component/utility/Export.js +0 -2
- package/lib-cjs/component/utility/FileUtility.js +2 -5
- package/lib-cjs/component/utility/util/nmredata/addRanges.js +2 -2
- package/lib-cjs/component/utility/util/nmredata/addZones.js +3 -3
- package/lib-cjs/component/utility/util/nmredata/get1DSignals.js +2 -2
- package/lib-cjs/data/PredictionManager.js +12 -12
- package/lib-cjs/data/SpectraManager.js +29 -14
- package/lib-cjs/data/data1d/MultipleAnalysis.js +2 -3
- package/lib-cjs/data/data1d/Spectrum1D/SumManager.js +95 -0
- package/lib-cjs/data/data1d/Spectrum1D/generateJGraphData.js +88 -0
- package/lib-cjs/data/data1d/Spectrum1D/generateSpectrumFromPublicationString.js +10 -0
- package/lib-cjs/data/data1d/Spectrum1D/get1DDataXY.js +18 -0
- package/lib-cjs/data/data1d/Spectrum1D/getReferenceShift.js +62 -0
- package/lib-cjs/data/data1d/Spectrum1D/index.js +49 -0
- package/lib-cjs/data/data1d/Spectrum1D/initiateDatum1D.js +115 -0
- package/lib-cjs/data/data1d/Spectrum1D/integrals/changeIntegralsRelative.js +27 -0
- package/lib-cjs/data/data1d/Spectrum1D/integrals/checkIntegralKind.js +13 -0
- package/lib-cjs/data/data1d/Spectrum1D/integrals/updateIntegralsRelativeValues.js +9 -0
- package/lib-cjs/data/data1d/Spectrum1D/integrals/updateRelatives.js +34 -0
- package/lib-cjs/data/data1d/Spectrum1D/isSpectrum1D.js +7 -0
- package/lib-cjs/data/data1d/{autoPeakPicking.js → Spectrum1D/peaks/autoPeakPicking.js} +10 -10
- package/lib-cjs/data/data1d/Spectrum1D/peaks/lookupPeak.js +25 -0
- package/lib-cjs/data/data1d/Spectrum1D/ranges/addRange.js +40 -0
- package/lib-cjs/data/data1d/{autoRangesDetection.js → Spectrum1D/ranges/autoRangesDetection.js} +2 -2
- package/lib-cjs/data/data1d/Spectrum1D/ranges/changeRange.js +22 -0
- package/lib-cjs/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.js +30 -0
- package/lib-cjs/data/data1d/Spectrum1D/ranges/changeRangeSignal.js +17 -0
- package/lib-cjs/data/data1d/Spectrum1D/ranges/checkRangeKind.js +9 -0
- package/lib-cjs/data/data1d/Spectrum1D/ranges/detectRange.js +29 -0
- package/lib-cjs/data/data1d/Spectrum1D/ranges/detectRanges.js +22 -0
- package/lib-cjs/data/data1d/{detectSignal.js → Spectrum1D/ranges/detectSignal.js} +0 -0
- package/lib-cjs/data/data1d/Spectrum1D/ranges/generateSpectrumFromRanges.js +28 -0
- package/lib-cjs/data/data1d/Spectrum1D/ranges/mapRanges.js +45 -0
- package/lib-cjs/data/data1d/Spectrum1D/ranges/updateRangesRelativeValues.js +9 -0
- package/lib-cjs/data/data1d/Spectrum1D/shift/getShiftX.js +29 -0
- package/lib-cjs/data/data1d/Spectrum1D/shift/internal/updateIntegralXShift.js +11 -0
- package/lib-cjs/data/data1d/Spectrum1D/shift/internal/updatePeaksXShift.js +16 -0
- package/lib-cjs/data/data1d/Spectrum1D/shift/internal/updateRangesXShift.js +16 -0
- package/lib-cjs/data/data1d/Spectrum1D/shift/updateXShift.js +14 -0
- package/lib-cjs/data/data1d/Spectrum1D/toJSON.js +31 -0
- package/lib-cjs/data/data1d/database.js +96 -0
- package/lib-cjs/data/data1d/filter1d/fft.js +1 -1
- package/lib-cjs/data/data2d/Spectrum2D/getMissingProjection.js +44 -0
- package/lib-cjs/data/data2d/Spectrum2D/getSlice.js +47 -0
- package/lib-cjs/data/data2d/Spectrum2D/index.js +23 -0
- package/lib-cjs/data/data2d/Spectrum2D/initiateDatum2D.js +81 -0
- package/lib-cjs/data/data2d/Spectrum2D/isSpectrum2D.js +7 -0
- package/lib-cjs/data/data2d/Spectrum2D/shift/getShift.js +39 -0
- package/lib-cjs/data/data2d/Spectrum2D/shift/updateShift.js +22 -0
- package/lib-cjs/data/data2d/Spectrum2D/toJSON.js +29 -0
- package/lib-cjs/data/data2d/Spectrum2D/zones/changeZoneSignal.js +30 -0
- package/lib-cjs/data/data2d/Spectrum2D/zones/detectZones.js +55 -0
- package/lib-cjs/data/data2d/Spectrum2D/zones/detectZonesManual.js +51 -0
- package/lib-cjs/data/data2d/Spectrum2D/zones/getDetectionZones.js +83 -0
- package/lib-cjs/data/migration/MigrationManager.js +21 -0
- package/lib-cjs/data/migration/changeKeys.js +13 -0
- package/lib-cjs/data/migration/migrateToVersion1.js +35 -0
- package/lib-cjs/data/migration/migrateToVersion2.js +114 -0
- package/lib-cjs/data/types/common/File.js +2 -0
- package/lib-cjs/data/types/common/Source.js +2 -0
- package/lib-cjs/data/types/data1d/Data1D.js +2 -0
- package/lib-cjs/data/types/data1d/Datum1D.js +2 -0
- package/lib-cjs/data/types/data1d/Display1D.js +2 -0
- package/lib-cjs/data/types/data1d/Info1D.js +2 -0
- package/lib-cjs/data/types/data1d/Integral.js +2 -0
- package/lib-cjs/data/types/data1d/Integrals.js +2 -0
- package/lib-cjs/data/types/data1d/Peak.js +2 -0
- package/lib-cjs/data/types/data1d/Peaks.js +2 -0
- package/lib-cjs/data/types/data1d/Range.js +2 -0
- package/lib-cjs/data/types/data1d/RangeDetectionResult.js +2 -0
- package/lib-cjs/data/types/data1d/Ranges.js +2 -0
- package/lib-cjs/data/types/data1d/Signal1D.js +2 -0
- package/lib-cjs/data/types/data1d/SumOptions.js +2 -0
- package/lib-cjs/data/types/data1d/index.js +2 -0
- package/lib-cjs/data/types/data2d/Contour.js +2 -0
- package/lib-cjs/data/types/data2d/ContourOptions.js +2 -0
- package/lib-cjs/data/types/data2d/Contours.js +2 -0
- package/lib-cjs/data/types/data2d/Data2D.js +2 -0
- package/lib-cjs/data/types/data2d/Datum2D.js +2 -0
- package/lib-cjs/data/types/data2d/Display2D.js +2 -0
- package/lib-cjs/data/types/data2d/Info2D.js +2 -0
- package/lib-cjs/data/types/data2d/Signal2D.js +2 -0
- package/lib-cjs/data/types/data2d/Signal2DAxisData.js +2 -0
- package/lib-cjs/data/types/data2d/Zone.js +2 -0
- package/lib-cjs/data/types/data2d/Zone2DAxisData.js +2 -0
- package/lib-cjs/data/types/data2d/Zones.js +2 -0
- package/lib-cjs/data/types/data2d/index.js +2 -0
- package/lib-cjs/data/utilities/FindUtilities.js +65 -0
- package/lib-cjs/data/utilities/RangeUtilities.js +18 -14
- package/lib-cjs/data/utilities/ZoneUtilities.js +18 -18
- package/lib-cjs/data/utilities/getAtom.js +6 -0
- package/lib-cjs/data/utilities/getSum.js +18 -0
- package/lib-cjs/types/UsedColors.js +2 -0
- package/lib-cjs/versionInfo.js +1 -1
- package/package.json +53 -53
- package/lib/component/elements/popup/Help/Context.d.ts +0 -11
- package/lib/component/elements/popup/Help/Context.js +0 -30
- package/lib/component/elements/popup/Help/Provider.d.ts +0 -17
- package/lib/component/elements/popup/Help/Provider.js +0 -162
- package/lib/component/elements/popup/Help/index.d.ts +0 -3
- package/lib/component/elements/popup/Help/index.js +0 -3
- package/lib/component/modal/changeSum/NumberInput.d.ts +0 -7
- package/lib/component/modal/changeSum/NumberInput.js +0 -64
- package/lib/data/data1d/Spectrum1D.d.ts +0 -150
- package/lib/data/data1d/Spectrum1D.js +0 -355
- package/lib/data/data1d/autoPeakPicking.d.ts +0 -1
- package/lib/data/data1d/autoRangesDetection.d.ts +0 -1
- package/lib/data/data1d/baseline.d.ts +0 -5
- package/lib/data/data1d/baseline.js +0 -10
- package/lib/data/data1d/getReferenceShift.js +0 -25
- package/lib/data/data2d/Spectrum2D.d.ts +0 -181
- package/lib/data/data2d/Spectrum2D.js +0 -388
- package/lib/data/data2d/autoZonesDetection.d.ts +0 -1
- package/lib/data/data2d/autoZonesDetection.js +0 -17
- package/lib/data/migration.d.ts +0 -2
- package/lib/data/migration.js +0 -35
- package/lib-cjs/component/elements/popup/Help/Context.js +0 -35
- package/lib-cjs/component/elements/popup/Help/Provider.js +0 -167
- package/lib-cjs/component/elements/popup/Help/index.js +0 -11
- package/lib-cjs/component/modal/changeSum/NumberInput.js +0 -70
- package/lib-cjs/data/data1d/Spectrum1D.js +0 -400
- package/lib-cjs/data/data1d/baseline.js +0 -13
- package/lib-cjs/data/data1d/getReferenceShift.js +0 -28
- package/lib-cjs/data/data2d/Spectrum2D.js +0 -426
- package/lib-cjs/data/data2d/autoZonesDetection.js +0 -20
- package/lib-cjs/data/migration.js +0 -39
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
3
|
+
const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
4
|
+
/** @jsxImportSource @emotion/react */
|
|
5
|
+
const react_1 = require("@emotion/react");
|
|
4
6
|
const nmr_correlation_1 = require("nmr-correlation");
|
|
5
|
-
const
|
|
7
|
+
const react_2 = require("react");
|
|
6
8
|
const Constants_1 = require("./CorrelationTable/Constants");
|
|
9
|
+
const styles = (0, react_1.css) `
|
|
10
|
+
display: flex;
|
|
11
|
+
width: 100%;
|
|
12
|
+
font-size: 15px;
|
|
13
|
+
font-weight: 300;
|
|
14
|
+
white-space: nowrap;
|
|
15
|
+
span {
|
|
16
|
+
margin-left: 8px;
|
|
17
|
+
}
|
|
18
|
+
`;
|
|
7
19
|
function Overview({ correlationsData }) {
|
|
8
20
|
if (!correlationsData) {
|
|
9
21
|
return null;
|
|
@@ -15,7 +27,7 @@ function Overview({ correlationsData }) {
|
|
|
15
27
|
const errorColorIndex = error
|
|
16
28
|
? Constants_1.Errors.findIndex((_error) => error[_error] !== undefined)
|
|
17
29
|
: 'black';
|
|
18
|
-
return ((0, jsx_runtime_1.jsx)("span",
|
|
30
|
+
return ((0, jsx_runtime_1.jsx)("span", { style: {
|
|
19
31
|
color: stateAtomType
|
|
20
32
|
? stateAtomType.complete === true &&
|
|
21
33
|
(!error || Object.keys(error).length === 0)
|
|
@@ -24,8 +36,8 @@ function Overview({ correlationsData }) {
|
|
|
24
36
|
? Constants_1.ErrorColors[errorColorIndex].color
|
|
25
37
|
: 'black'
|
|
26
38
|
: 'black',
|
|
27
|
-
}
|
|
28
|
-
})) : ((0, jsx_runtime_1.jsx)("p",
|
|
29
|
-
return (0, jsx_runtime_1.jsx)(
|
|
39
|
+
}, children: `${atomType}: ${stateAtomType ? stateAtomType.current : '-'}/${atoms[atomType]} ` }, `molFormulaView_${i}`));
|
|
40
|
+
})) : ((0, jsx_runtime_1.jsx)("p", { style: { fontStyle: 'italic', color: 'orange' }, children: "Molecular formula is not set" }, void 0));
|
|
41
|
+
return (0, jsx_runtime_1.jsx)("div", { css: styles, children: elements }, void 0);
|
|
30
42
|
}
|
|
31
|
-
exports.default = (0,
|
|
43
|
+
exports.default = (0, react_2.memo)(Overview);
|
|
@@ -95,6 +95,6 @@ function SetMolecularFormulaModal({ onClose, onSave, molecules, previousMF, }) {
|
|
|
95
95
|
const onChangeHandlerMoleculeSelection = (0, react_2.useCallback)((index) => {
|
|
96
96
|
setCurrentIndex(index);
|
|
97
97
|
}, []);
|
|
98
|
-
return ((0, jsx_runtime_1.jsxs)("div",
|
|
98
|
+
return ((0, jsx_runtime_1.jsxs)("div", { css: modalContainer, children: [(0, jsx_runtime_1.jsx)("div", { className: "header handle", children: (0, jsx_runtime_1.jsx)(CloseButton_1.default, { onClick: onClose }, void 0) }, void 0), (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)("p", { className: "info", children: "Please type in a molecular formula!" }, void 0) }, void 0), (0, jsx_runtime_1.jsx)(MolecularFormulaInput_1.default, { onSave: onSaveHandlerMolecularFormulaInput, previousMF: previousMF }, void 0), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("p", { className: "optional", children: "OR" }, void 0), (0, jsx_runtime_1.jsx)("p", { className: "optional2", children: "Select a molecule as reference!" }, void 0)] }, void 0), (0, jsx_runtime_1.jsx)(MoleculeSelection_1.default, { molecules: molecules, onChange: onChangeHandlerMoleculeSelection }, void 0), (0, jsx_runtime_1.jsx)("button", { type: "button", onClick: onSaveHandlerMoleculeSelection, children: "Set" }, void 0)] }, void 0));
|
|
99
99
|
}
|
|
100
100
|
exports.default = SetMolecularFormulaModal;
|
|
@@ -9,14 +9,14 @@ const react_1 = require("@emotion/react");
|
|
|
9
9
|
const react_2 = require("react");
|
|
10
10
|
const CloseButton_1 = __importDefault(require("../../elements/CloseButton"));
|
|
11
11
|
const modalContainer = (0, react_1.css) `
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
height: 300px;
|
|
12
|
+
width: 220px;
|
|
13
|
+
height: 270px;
|
|
15
14
|
padding: 5px;
|
|
15
|
+
text-align: center;
|
|
16
|
+
|
|
16
17
|
button:focus {
|
|
17
18
|
outline: none;
|
|
18
19
|
}
|
|
19
|
-
text-align: center;
|
|
20
20
|
|
|
21
21
|
.header {
|
|
22
22
|
height: 24px;
|
|
@@ -24,6 +24,13 @@ const modalContainer = (0, react_1.css) `
|
|
|
24
24
|
display: flex;
|
|
25
25
|
align-items: center;
|
|
26
26
|
|
|
27
|
+
span {
|
|
28
|
+
color: #464646;
|
|
29
|
+
font-size: 15px;
|
|
30
|
+
flex: 1;
|
|
31
|
+
user-select: none;
|
|
32
|
+
}
|
|
33
|
+
|
|
27
34
|
button {
|
|
28
35
|
height: 36px;
|
|
29
36
|
margin: 2px;
|
|
@@ -50,27 +57,34 @@ const modalContainer = (0, react_1.css) `
|
|
|
50
57
|
background-color: gray;
|
|
51
58
|
}
|
|
52
59
|
|
|
53
|
-
|
|
54
|
-
margin-top:
|
|
55
|
-
margin-bottom: 10px;
|
|
56
|
-
padding: 0px 10px;
|
|
60
|
+
table {
|
|
61
|
+
margin-top: 10px;
|
|
57
62
|
width: 100%;
|
|
58
63
|
|
|
59
|
-
|
|
60
|
-
|
|
64
|
+
input::-webkit-outer-spin-button,
|
|
65
|
+
input::-webkit-inner-spin-button {
|
|
66
|
+
-webkit-appearance: none;
|
|
67
|
+
}
|
|
61
68
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
69
|
+
input {
|
|
70
|
+
width: 100px;
|
|
71
|
+
text-align: center;
|
|
72
|
+
border-radius: 5px;
|
|
73
|
+
border: 0.55px solid #c7c7c7;
|
|
74
|
+
}
|
|
67
75
|
}
|
|
68
76
|
`;
|
|
69
77
|
function SetShiftToleranceModal({ onClose, onSave, previousTolerance, }) {
|
|
70
78
|
const [tolerance, setTolerance] = (0, react_2.useState)();
|
|
79
|
+
const [isValid, setIsValid] = (0, react_2.useState)({});
|
|
71
80
|
(0, react_2.useEffect)(() => {
|
|
72
81
|
if (previousTolerance) {
|
|
73
82
|
setTolerance(previousTolerance);
|
|
83
|
+
const _isValid = {};
|
|
84
|
+
Object.keys(previousTolerance).forEach((atomType) => {
|
|
85
|
+
_isValid[atomType] = true;
|
|
86
|
+
});
|
|
87
|
+
setIsValid(_isValid);
|
|
74
88
|
}
|
|
75
89
|
else {
|
|
76
90
|
setTolerance(undefined);
|
|
@@ -80,14 +94,23 @@ function SetShiftToleranceModal({ onClose, onSave, previousTolerance, }) {
|
|
|
80
94
|
onSave?.(tolerance);
|
|
81
95
|
onClose?.();
|
|
82
96
|
}, [onClose, onSave, tolerance]);
|
|
83
|
-
const onChangeHandler = (0, react_2.useCallback)((e, atomType) =>
|
|
84
|
-
|
|
97
|
+
const onChangeHandler = (0, react_2.useCallback)((e, atomType) => {
|
|
98
|
+
const value = e.target.value;
|
|
99
|
+
if (value.trim().length > 0) {
|
|
100
|
+
setTolerance({ ...tolerance, [atomType]: Number(value) });
|
|
101
|
+
setIsValid({ ...isValid, [atomType]: true });
|
|
102
|
+
}
|
|
103
|
+
else {
|
|
104
|
+
setIsValid({ ...isValid, [atomType]: false });
|
|
105
|
+
}
|
|
106
|
+
}, [isValid, tolerance]);
|
|
107
|
+
const rows = (0, react_2.useMemo)(() => {
|
|
85
108
|
return tolerance
|
|
86
109
|
? Object.keys(tolerance).map((atomType) => {
|
|
87
|
-
return ((0, jsx_runtime_1.jsxs)("
|
|
110
|
+
return ((0, jsx_runtime_1.jsxs)("tr", { children: [(0, jsx_runtime_1.jsx)("td", { children: atomType }, void 0), (0, jsx_runtime_1.jsx)("td", { children: (0, jsx_runtime_1.jsx)("input", { type: "number", onChange: (e) => onChangeHandler(e, atomType), defaultValue: tolerance[atomType], style: !isValid[atomType] ? { backgroundColor: 'orange' } : {} }, void 0) }, void 0)] }, `tolerance_${atomType}`));
|
|
88
111
|
})
|
|
89
112
|
: undefined;
|
|
90
|
-
}, [onChangeHandler, tolerance]);
|
|
91
|
-
return ((0, jsx_runtime_1.jsxs)("div",
|
|
113
|
+
}, [isValid, onChangeHandler, tolerance]);
|
|
114
|
+
return ((0, jsx_runtime_1.jsxs)("div", { css: modalContainer, children: [(0, jsx_runtime_1.jsxs)("div", { className: "header handle", children: [(0, jsx_runtime_1.jsx)("span", { children: "Set Shift Tolerances" }, void 0), (0, jsx_runtime_1.jsx)(CloseButton_1.default, { onClick: onClose }, void 0)] }, void 0), (0, jsx_runtime_1.jsxs)("table", { children: [(0, jsx_runtime_1.jsx)("thead", { children: (0, jsx_runtime_1.jsxs)("tr", { children: [(0, jsx_runtime_1.jsx)("th", { children: "Atom" }, void 0), (0, jsx_runtime_1.jsx)("th", { children: "Value" }, void 0)] }, void 0) }, void 0), (0, jsx_runtime_1.jsx)("tbody", { children: rows }, void 0)] }, void 0), (0, jsx_runtime_1.jsx)("button", { type: "button", onClick: onSaveHandler, disabled: Object.keys(isValid).some((atomType) => !isValid[atomType]), children: "Set" }, void 0)] }, void 0));
|
|
92
115
|
}
|
|
93
116
|
exports.default = SetShiftToleranceModal;
|
|
@@ -6,8 +6,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
7
7
|
/** @jsxImportSource @emotion/react */
|
|
8
8
|
const react_1 = require("@emotion/react");
|
|
9
|
+
const nmr_correlation_1 = require("nmr-correlation");
|
|
9
10
|
const react_2 = require("react");
|
|
10
11
|
const fa_1 = require("react-icons/fa");
|
|
12
|
+
const FindUtilities_1 = require("../../../data/utilities/FindUtilities");
|
|
13
|
+
const assignment_1 = require("../../assignment");
|
|
11
14
|
const ChartContext_1 = require("../../context/ChartContext");
|
|
12
15
|
const DispatchContext_1 = require("../../context/DispatchContext");
|
|
13
16
|
const Select_1 = __importDefault(require("../../elements/Select"));
|
|
@@ -27,51 +30,45 @@ const panelStyle = (0, react_1.css) `
|
|
|
27
30
|
text-align: center;
|
|
28
31
|
height: 100%;
|
|
29
32
|
width: 100%;
|
|
30
|
-
justify-content: center,
|
|
31
|
-
align-items: 'center',
|
|
32
33
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
margin-top: 3px;
|
|
36
|
-
margin-left: 2px;
|
|
37
|
-
border: none;
|
|
38
|
-
height: 16px;
|
|
39
|
-
width: 18px;
|
|
40
|
-
font-size: 12px;
|
|
41
|
-
padding: 0;
|
|
42
|
-
background-color: transparent;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.overview-container {
|
|
34
|
+
.extra-header-content {
|
|
35
|
+
display: flex;
|
|
46
36
|
width: 100%;
|
|
47
|
-
margin-left: 15px;
|
|
48
|
-
white-space: nowrap;
|
|
49
|
-
span {
|
|
50
|
-
margin-left: 8px;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
37
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
margin-left:
|
|
38
|
+
.overview-container {
|
|
39
|
+
width: 100%;
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
margin-left: 10px;
|
|
59
43
|
}
|
|
60
|
-
}
|
|
61
44
|
|
|
45
|
+
.table-view-selection {
|
|
46
|
+
width: 100%;
|
|
47
|
+
display: flex;
|
|
48
|
+
align-items: center;
|
|
49
|
+
justify-content: flex-end;
|
|
50
|
+
margin-right: 2px;
|
|
51
|
+
|
|
52
|
+
white-space: nowrap;
|
|
62
53
|
|
|
54
|
+
label {
|
|
55
|
+
font-size: 13px;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
63
59
|
`;
|
|
64
60
|
function SummaryPanel() {
|
|
65
61
|
const { molecules, correlations: correlationsData, data: spectraData, xDomain, yDomain, displayerMode, activeTab, } = (0, ChartContext_1.useChartData)();
|
|
66
62
|
const dispatch = (0, DispatchContext_1.useDispatch)();
|
|
67
63
|
const modal = (0, Modal_1.useModal)();
|
|
64
|
+
const assignmentData = (0, assignment_1.useAssignmentData)();
|
|
68
65
|
const [additionalColumnData, setAdditionalColumnData] = (0, react_2.useState)([]);
|
|
69
|
-
const [selectedAdditionalColumnsAtomType, setSelectedAdditionalColumnsAtomType,] = (0, react_2.useState)('
|
|
66
|
+
const [selectedAdditionalColumnsAtomType, setSelectedAdditionalColumnsAtomType,] = (0, react_2.useState)('H');
|
|
70
67
|
const [showProtonsAsRows, setShowProtonsAsRows] = (0, react_2.useState)(false);
|
|
71
68
|
const [filterIsActive, setFilterIsActive] = (0, react_2.useState)(false);
|
|
72
69
|
const filteredCorrelationsData = (0, react_2.useMemo)(() => {
|
|
73
|
-
const isInView = (
|
|
74
|
-
if (
|
|
70
|
+
const isInView = (correlation) => {
|
|
71
|
+
if (correlation.pseudo === true) {
|
|
75
72
|
return false;
|
|
76
73
|
}
|
|
77
74
|
const atomTypesInView = activeTab
|
|
@@ -83,35 +80,47 @@ function SummaryPanel() {
|
|
|
83
80
|
const yDomain0 = yDomain[0] * factor;
|
|
84
81
|
const yDomain1 = yDomain[1] * factor;
|
|
85
82
|
if (displayerMode === Constants_1.DISPLAYER_MODE.DM_1D) {
|
|
86
|
-
const
|
|
87
|
-
|
|
83
|
+
const firstLink1D = correlation.link.find((link) => (0, nmr_correlation_1.getLinkDim)(link) === 1);
|
|
84
|
+
if (!firstLink1D) {
|
|
85
|
+
return false;
|
|
86
|
+
}
|
|
87
|
+
let delta = (0, nmr_correlation_1.getLinkDelta)(firstLink1D);
|
|
88
|
+
if (delta === undefined) {
|
|
89
|
+
return false;
|
|
90
|
+
}
|
|
91
|
+
delta *= factor;
|
|
92
|
+
const spectrum = (0, FindUtilities_1.findSpectrum)(spectraData, firstLink1D.experimentID, true);
|
|
88
93
|
if (spectrum &&
|
|
89
|
-
atomTypesInView[0] ===
|
|
94
|
+
atomTypesInView[0] === correlation.atomType &&
|
|
90
95
|
delta >= xDomain0 &&
|
|
91
96
|
delta <= xDomain1) {
|
|
92
97
|
return true;
|
|
93
98
|
}
|
|
94
99
|
// try to find a link which contains the belonging 2D signal in the spectra in view
|
|
95
|
-
if (
|
|
96
|
-
const spectrum = (0,
|
|
100
|
+
if (correlation.link.some((link) => {
|
|
101
|
+
const spectrum = (0, FindUtilities_1.findSpectrum)(spectraData, link.experimentID, true);
|
|
97
102
|
return (0, Utilities_1.findSignalMatch1D)(spectrum, link, factor, xDomain0, xDomain1);
|
|
98
103
|
})) {
|
|
99
104
|
return true;
|
|
100
105
|
}
|
|
101
106
|
}
|
|
102
107
|
else if (displayerMode === Constants_1.DISPLAYER_MODE.DM_2D) {
|
|
103
|
-
if (!atomTypesInView.includes(
|
|
108
|
+
if (!atomTypesInView.includes(correlation.atomType)) {
|
|
109
|
+
return false;
|
|
110
|
+
}
|
|
111
|
+
const firstLink2D = correlation.link.find((link) => (0, nmr_correlation_1.getLinkDim)(link) === 2);
|
|
112
|
+
if (!firstLink2D) {
|
|
104
113
|
return false;
|
|
105
114
|
}
|
|
106
|
-
const spectrum = (0,
|
|
115
|
+
const spectrum = (0, FindUtilities_1.findSpectrum)(spectraData, firstLink2D.experimentID, true);
|
|
107
116
|
// correlation is represented by a 2D signal
|
|
108
|
-
if ((0, Utilities_1.findSignalMatch2D)(spectrum,
|
|
117
|
+
if ((0, Utilities_1.findSignalMatch2D)(spectrum, firstLink2D, factor, xDomain0, xDomain1, yDomain0, yDomain1)) {
|
|
109
118
|
return true;
|
|
110
119
|
}
|
|
111
120
|
else {
|
|
112
121
|
// try to find a link which contains the belonging 2D signal in the spectra in view
|
|
113
|
-
if (
|
|
114
|
-
const spectrum = (0,
|
|
122
|
+
if (correlation.link.some((link) => {
|
|
123
|
+
const spectrum = (0, FindUtilities_1.findSpectrum)(spectraData, link.experimentID, true);
|
|
115
124
|
return (0, Utilities_1.findSignalMatch2D)(spectrum, link, factor, xDomain0, xDomain1, yDomain0, yDomain1);
|
|
116
125
|
})) {
|
|
117
126
|
return true;
|
|
@@ -123,7 +132,7 @@ function SummaryPanel() {
|
|
|
123
132
|
};
|
|
124
133
|
if (correlationsData) {
|
|
125
134
|
const _values = filterIsActive
|
|
126
|
-
? correlationsData.values.filter((
|
|
135
|
+
? correlationsData.values.filter((correlation) => isInView(correlation))
|
|
127
136
|
: correlationsData.values;
|
|
128
137
|
return { ...correlationsData, values: _values };
|
|
129
138
|
}
|
|
@@ -159,20 +168,11 @@ function SummaryPanel() {
|
|
|
159
168
|
modal.show((0, jsx_runtime_1.jsx)(SetShiftTolerancesModal_1.default, { onClose: () => modal.close(), onSave: handleOnSetShiftTolerance, previousTolerance: correlationsData.options.tolerance }, void 0));
|
|
160
169
|
}, [correlationsData, handleOnSetShiftTolerance, modal]);
|
|
161
170
|
const additionalColumnTypes = (0, react_2.useMemo)(() => {
|
|
162
|
-
const columnTypes = ['-'].concat(correlationsData
|
|
171
|
+
const columnTypes = ['H', 'H-H'].concat(correlationsData
|
|
163
172
|
? correlationsData.values
|
|
164
173
|
.map((correlation) => correlation.atomType)
|
|
165
|
-
.filter((atomType, i, array) => array.indexOf(atomType) === i)
|
|
174
|
+
.filter((atomType, i, array) => atomType !== 'H' && array.indexOf(atomType) === i)
|
|
166
175
|
: []);
|
|
167
|
-
if (columnTypes.includes('H')) {
|
|
168
|
-
columnTypes.push('H-H');
|
|
169
|
-
}
|
|
170
|
-
if (columnTypes.includes('H')) {
|
|
171
|
-
setSelectedAdditionalColumnsAtomType('H');
|
|
172
|
-
}
|
|
173
|
-
else {
|
|
174
|
-
setSelectedAdditionalColumnsAtomType('-');
|
|
175
|
-
}
|
|
176
176
|
return columnTypes.map((columnType) => {
|
|
177
177
|
return {
|
|
178
178
|
key: columnType,
|
|
@@ -204,8 +204,7 @@ function SummaryPanel() {
|
|
|
204
204
|
}, [dispatch]);
|
|
205
205
|
const editProtonsCountSaveHandler = (0, react_2.useCallback)((correlation, valuesString) => {
|
|
206
206
|
let values;
|
|
207
|
-
|
|
208
|
-
if (valuesString.match(/^([0-9],{0,1})+$/g)) {
|
|
207
|
+
if (/^(?:[0-9],{0,1})+$/g.test(valuesString)) {
|
|
209
208
|
// allow digits followed by optional comma only
|
|
210
209
|
values = valuesString
|
|
211
210
|
.split(',')
|
|
@@ -227,6 +226,9 @@ function SummaryPanel() {
|
|
|
227
226
|
protonsCount: values,
|
|
228
227
|
edited: { ...correlation.edited, protonsCount: true },
|
|
229
228
|
},
|
|
229
|
+
options: {
|
|
230
|
+
skipDataUpdate: true,
|
|
231
|
+
},
|
|
230
232
|
},
|
|
231
233
|
});
|
|
232
234
|
}
|
|
@@ -241,50 +243,94 @@ function SummaryPanel() {
|
|
|
241
243
|
hybridization: value,
|
|
242
244
|
edited: { ...correlation.edited, hybridization: true },
|
|
243
245
|
},
|
|
246
|
+
options: {
|
|
247
|
+
skipDataUpdate: true,
|
|
248
|
+
},
|
|
244
249
|
},
|
|
245
250
|
});
|
|
246
251
|
}, [dispatch]);
|
|
247
|
-
const
|
|
252
|
+
const setCorrelationsHandler = (0, react_2.useCallback)((correlations, options) => {
|
|
248
253
|
dispatch({
|
|
249
254
|
type: Types_1.SET_CORRELATIONS,
|
|
250
255
|
payload: {
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
{
|
|
254
|
-
...rowCorrelation,
|
|
255
|
-
edited: {
|
|
256
|
-
...rowCorrelation.edited,
|
|
257
|
-
additionalColumnField: true,
|
|
258
|
-
},
|
|
259
|
-
},
|
|
260
|
-
{
|
|
261
|
-
...columnCorrelation,
|
|
262
|
-
edited: {
|
|
263
|
-
...columnCorrelation.edited,
|
|
264
|
-
additionalColumnField: true,
|
|
265
|
-
},
|
|
266
|
-
},
|
|
267
|
-
],
|
|
256
|
+
correlations,
|
|
257
|
+
options,
|
|
268
258
|
},
|
|
269
259
|
});
|
|
270
260
|
}, [dispatch]);
|
|
261
|
+
const deleteCorrelationHandler = (0, react_2.useCallback)((correlation) => {
|
|
262
|
+
dispatch({
|
|
263
|
+
type: Types_1.DELETE_CORRELATION,
|
|
264
|
+
payload: {
|
|
265
|
+
correlation,
|
|
266
|
+
assignmentData,
|
|
267
|
+
},
|
|
268
|
+
});
|
|
269
|
+
}, [assignmentData, dispatch]);
|
|
270
|
+
const deleteSignalHandler = (0, react_2.useCallback)((link) => {
|
|
271
|
+
// remove linking signal in spectrum
|
|
272
|
+
const linkDim = (0, nmr_correlation_1.getLinkDim)(link);
|
|
273
|
+
if (linkDim === 1) {
|
|
274
|
+
const spectrum = (0, FindUtilities_1.findSpectrum)(spectraData, link.experimentID, false);
|
|
275
|
+
const range = (0, FindUtilities_1.findRange)(spectrum, link.signal.id);
|
|
276
|
+
const signal = (0, FindUtilities_1.findSignal1D)(spectrum, link.signal.id);
|
|
277
|
+
dispatch({
|
|
278
|
+
type: Types_1.DELETE_1D_SIGNAL,
|
|
279
|
+
payload: {
|
|
280
|
+
spectrum,
|
|
281
|
+
range,
|
|
282
|
+
signal,
|
|
283
|
+
assignmentData,
|
|
284
|
+
},
|
|
285
|
+
});
|
|
286
|
+
}
|
|
287
|
+
else if (linkDim === 2) {
|
|
288
|
+
const spectrum = (0, FindUtilities_1.findSpectrum)(spectraData, link.experimentID, false);
|
|
289
|
+
const zone = (0, FindUtilities_1.findZone)(spectrum, link.signal.id);
|
|
290
|
+
const signal = (0, FindUtilities_1.findSignal2D)(spectrum, link.signal.id);
|
|
291
|
+
dispatch({
|
|
292
|
+
type: Types_1.DELETE_2D_SIGNAL,
|
|
293
|
+
payload: {
|
|
294
|
+
spectrum,
|
|
295
|
+
zone,
|
|
296
|
+
signal,
|
|
297
|
+
assignmentData,
|
|
298
|
+
},
|
|
299
|
+
});
|
|
300
|
+
}
|
|
301
|
+
}, [assignmentData, dispatch, spectraData]);
|
|
302
|
+
const editCorrelationTableCellHandler = (0, react_2.useCallback)((editedCorrelations, action, link, options) => {
|
|
303
|
+
if (action === 'add' ||
|
|
304
|
+
action === 'move' ||
|
|
305
|
+
action === 'remove' ||
|
|
306
|
+
action === 'unmove') {
|
|
307
|
+
if (action === 'remove' && link && link.pseudo === false) {
|
|
308
|
+
deleteSignalHandler(link);
|
|
309
|
+
}
|
|
310
|
+
setCorrelationsHandler(editedCorrelations, options);
|
|
311
|
+
}
|
|
312
|
+
else if (action === 'removeAll') {
|
|
313
|
+
deleteCorrelationHandler(editedCorrelations[0]);
|
|
314
|
+
}
|
|
315
|
+
}, [deleteCorrelationHandler, deleteSignalHandler, setCorrelationsHandler]);
|
|
271
316
|
const handleOnFilter = (0, react_2.useCallback)(() => {
|
|
272
317
|
setFilterIsActive(!filterIsActive);
|
|
273
318
|
}, [filterIsActive]);
|
|
274
|
-
return ((0, jsx_runtime_1.jsxs)("div",
|
|
319
|
+
return ((0, jsx_runtime_1.jsxs)("div", { css: panelStyle, children: [(0, jsx_runtime_1.jsxs)(DefaultPanelHeader_1.default, { canDelete: false, counter: correlationsData ? correlationsData.values.length : 0, onFilter: handleOnFilter, filterToolTip: filterIsActive
|
|
275
320
|
? 'Show all correlations'
|
|
276
|
-
: 'Hide correlations out of view', filterIsActive: filterIsActive, counterFiltered: filteredCorrelationsData?.values.length
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
321
|
+
: 'Hide correlations out of view', filterIsActive: filterIsActive, counterFiltered: filteredCorrelationsData?.values.length, children: [(0, jsx_runtime_1.jsx)(ToolTip_1.default, { title: `Set molecular formula (${correlationsData.options.mf})`, popupPlacement: "right", children: (0, jsx_runtime_1.jsx)("button", { type: "button", onClick: showSetMolecularFormulaModal, children: (0, jsx_runtime_1.jsx)(fa_1.FaFlask, {}, void 0) }, void 0) }, void 0), (0, jsx_runtime_1.jsx)(ToolTip_1.default, { title: `Set shift tolerance`, popupPlacement: "right", children: (0, jsx_runtime_1.jsx)("button", { type: "button", onClick: showSetShiftToleranceModal, children: (0, jsx_runtime_1.jsx)(fa_1.FaSlidersH, {}, void 0) }, void 0) }, void 0), (0, jsx_runtime_1.jsxs)("div", { className: "extra-header-content", children: [(0, jsx_runtime_1.jsx)("div", { className: "overview-container", children: (0, jsx_runtime_1.jsx)(Overview_1.default, { correlationsData: correlationsData }, void 0) }, void 0), (0, jsx_runtime_1.jsx)("div", { className: "table-view-selection", children: (0, jsx_runtime_1.jsxs)("span", { children: [(0, jsx_runtime_1.jsx)("label", { children: "View:" }, void 0), (0, jsx_runtime_1.jsx)(Select_1.default, { onChange: (selection) => {
|
|
322
|
+
setSelectedAdditionalColumnsAtomType(selection);
|
|
323
|
+
if (selection === 'H-H') {
|
|
324
|
+
setShowProtonsAsRows(true);
|
|
325
|
+
}
|
|
326
|
+
else {
|
|
327
|
+
setShowProtonsAsRows(false);
|
|
328
|
+
}
|
|
329
|
+
}, data: additionalColumnTypes, defaultValue: selectedAdditionalColumnsAtomType, style: {
|
|
330
|
+
fontSize: '12px',
|
|
331
|
+
width: '70px',
|
|
332
|
+
height: '18px',
|
|
333
|
+
border: '1px solid grey',
|
|
334
|
+
} }, void 0)] }, void 0) }, void 0)] }, void 0)] }, void 0), (0, jsx_runtime_1.jsx)(CorrelationTable_1.default, { correlationsData: correlationsData, filteredCorrelationsData: filteredCorrelationsData, additionalColumnData: additionalColumnData, editEquivalencesSaveHandler: editEquivalencesSaveHandler, changeHybridizationSaveHandler: changeHybridizationSaveHandler, editProtonsCountSaveHandler: editProtonsCountSaveHandler, onEditCorrelationTableCellHandler: editCorrelationTableCellHandler, showProtonsAsRows: showProtonsAsRows, spectraData: spectraData }, void 0)] }, void 0));
|
|
289
335
|
}
|
|
290
336
|
exports.default = (0, react_2.memo)(SummaryPanel);
|