nmrium 0.33.0 → 0.34.0-pre.1683183916
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/component/1d/ApodizationLine.d.ts +2 -2
- package/lib/component/1d/ApodizationLine.js +6 -4
- package/lib/component/1d/Chart1D.js +6 -3
- package/lib/component/1d/ExclusionZoneAnnotation.d.ts +2 -1
- package/lib/component/1d/ExclusionZoneAnnotation.js +7 -3
- package/lib/component/1d/ExclusionZonesAnnotations.js +22 -7
- package/lib/component/1d/FooterBanner.js +24 -11
- package/lib/component/1d/Line.js +4 -10
- package/lib/component/1d/LinesSeries.js +6 -7
- package/lib/component/1d/SpectraLegends.d.ts +3 -0
- package/lib/component/1d/SpectraLegends.js +60 -0
- package/lib/component/1d/Viewer1D.js +43 -13
- package/lib/component/1d/XAxis.js +5 -5
- package/lib/component/1d/YAxis.js +3 -7
- package/lib/component/1d/database/DatabaseSpectrum.js +11 -10
- package/lib/component/1d/database/ResurrectedDatabaseRanges.js +5 -3
- package/lib/component/1d/integral/IntegralIndicator.js +1 -7
- package/lib/component/1d/integral/IntegralResizable.js +6 -2
- package/lib/component/1d/integral/IntegralsSeries.js +2 -2
- package/lib/component/1d/jCouplingGraph/JGraph.js +6 -9
- package/lib/component/1d/jCouplingGraph/JsCouplings.d.ts +1 -1
- package/lib/component/1d/multiAnalysis/AnalysisRange.d.ts +2 -1
- package/lib/component/1d/multiAnalysis/AnalysisRange.js +17 -17
- package/lib/component/1d/multiAnalysis/MultiAnalysisRanges.js +10 -14
- package/lib/component/1d/multiplicityTree/LevelNode.d.ts +1 -1
- package/lib/component/1d/multiplicityTree/MultiplicityTree.d.ts +5 -6
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js +143 -158
- package/lib/component/1d/multiplicityTree/StringNode.d.ts +1 -1
- package/lib/component/1d/multiplicityTree/buildTreeNode.d.ts +1 -1
- package/lib/component/1d/multiplicityTree/buildTreeNode.js +3 -3
- package/lib/component/1d/peaks/PeakAnnotation.js +4 -7
- package/lib/component/1d/peaks/PeakAnnotations.js +18 -10
- package/lib/component/1d/peaks/PeaksShapes.js +8 -7
- package/lib/component/1d/peaks/usePeakShapesPath.d.ts +5 -5
- package/lib/component/1d/peaks/usePeakShapesPath.js +10 -6
- package/lib/component/1d/ranges/AssignmentActionsButtons.d.ts +11 -0
- package/lib/component/1d/ranges/AssignmentActionsButtons.js +11 -0
- package/lib/component/1d/ranges/Range.d.ts +3 -10
- package/lib/component/1d/ranges/Range.js +30 -41
- package/lib/component/1d/ranges/Ranges.d.ts +1 -1
- package/lib/component/1d/ranges/Ranges.js +8 -6
- package/lib/component/1d/tool/BaseLineZones.js +3 -2
- package/lib/component/1d/tool/PeakPointer.js +8 -14
- package/lib/component/1d/tool/XLabelPointer.js +1 -1
- package/lib/component/1d/utilities/scale.js +2 -2
- package/lib/component/1d-2d/components/FloatMoleculeStructures/ActionsButton.js +7 -0
- package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.d.ts +14 -0
- package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.js +77 -0
- package/lib/component/{tool → 1d-2d/components}/FloatMoleculeStructures/index.d.ts +4 -5
- package/lib/component/{tool → 1d-2d/components}/FloatMoleculeStructures/index.js +14 -12
- package/lib/component/1d-2d/components/SpectrumInfoBlock.d.ts +3 -0
- package/lib/component/1d-2d/components/SpectrumInfoBlock.js +35 -0
- package/lib/component/{tool → 1d-2d/tools}/BrushX.js +6 -6
- package/lib/component/{tool → 1d-2d/tools}/BrushXY.js +9 -8
- package/lib/component/{tool → 1d-2d/tools}/CrossLinePointer.js +8 -7
- package/lib/component/2d/{tools/slicing → 1d-tracer}/HorizontalSliceChart.d.ts +2 -1
- package/lib/component/2d/{tools/slicing → 1d-tracer}/HorizontalSliceChart.js +17 -8
- package/lib/component/2d/{Left1DChart.d.ts → 1d-tracer/Left1DChart.d.ts} +3 -3
- package/lib/component/2d/{Left1DChart.js → 1d-tracer/Left1DChart.js} +7 -7
- package/lib/component/2d/{Top1DChart.d.ts → 1d-tracer/Top1DChart.d.ts} +2 -2
- package/lib/component/2d/{Top1DChart.js → 1d-tracer/Top1DChart.js} +4 -4
- package/lib/component/2d/{tools/slicing → 1d-tracer}/VerticalSliceChart.d.ts +2 -1
- package/lib/component/2d/{tools/slicing → 1d-tracer}/VerticalSliceChart.js +18 -9
- package/lib/component/2d/Chart2D.d.ts +2 -2
- package/lib/component/2d/Chart2D.js +8 -7
- package/lib/component/2d/FooterBanner.js +26 -17
- package/lib/component/2d/{tools/slicing/SlicingView.js → SlicingView.js} +8 -8
- package/lib/component/2d/Viewer2D.js +15 -24
- package/lib/component/2d/XAxis.d.ts +0 -1
- package/lib/component/2d/XAxis.js +12 -19
- package/lib/component/2d/YAxis.js +8 -11
- package/lib/component/2d/fid/FidCanvas.d.ts +2 -0
- package/lib/component/2d/fid/FidCanvas.js +109 -0
- package/lib/component/2d/fid/FidContainer.d.ts +2 -0
- package/lib/component/2d/fid/FidContainer.js +32 -0
- package/lib/component/2d/ft/Contours.js +81 -0
- package/lib/component/2d/ft/FTContainer.d.ts +7 -0
- package/lib/component/2d/ft/FTContainer.js +13 -0
- package/lib/component/2d/tools/XYLabelPointer.js +18 -7
- package/lib/component/2d/utilities/scale.d.ts +1 -1
- package/lib/component/2d/utilities/scale.js +5 -2
- package/lib/component/2d/zones/IndicationLines.js +5 -8
- package/lib/component/2d/zones/Signal.d.ts +1 -1
- package/lib/component/2d/zones/Signal.js +1 -2
- package/lib/component/2d/zones/SignalCrosshair.d.ts +1 -1
- package/lib/component/2d/zones/SignalCrosshair.js +0 -1
- package/lib/component/2d/zones/Zone.d.ts +2 -2
- package/lib/component/2d/zones/Zone.js +9 -7
- package/lib/component/EventsTrackers/KeysListenerTracker.js +65 -55
- package/lib/component/EventsTrackers/MouseTracker.js +2 -2
- package/lib/component/NMRium.d.ts +13 -20
- package/lib/component/NMRium.js +76 -55
- package/lib/component/SplitPaneWrapper.js +12 -4
- package/lib/component/assignment/AssignmentsContext.d.ts +4 -4
- package/lib/component/assignment/AssignmentsReducer.d.ts +8 -9
- package/lib/component/assignment/actions/initAssignment.js +17 -17
- package/lib/component/assignment/actions/removeAssignment.js +2 -2
- package/lib/component/assignment/actions/toggleAssignment.js +1 -1
- package/lib/component/assignment/index.js +2 -2
- package/lib/component/context/LoggerContext.d.ts +19 -0
- package/lib/component/context/LoggerContext.js +42 -0
- package/lib/component/context/PreferencesContext.d.ts +85 -18
- package/lib/component/context/PreferencesContext.js +15 -15
- package/lib/component/context/ScaleContext.d.ts +1 -1
- package/lib/component/elements/ActiveButton.js +12 -6
- package/lib/component/elements/Button.d.ts +15 -5
- package/lib/component/elements/Button.js +101 -30
- package/lib/component/elements/ButtonToolTip.js +1 -1
- package/lib/component/elements/CheckBoxCell.js +1 -1
- package/lib/component/elements/ColorInput.js +43 -45
- package/lib/component/elements/ColumnWrapper.d.ts +6 -0
- package/lib/component/elements/ColumnWrapper.js +8 -0
- package/lib/component/elements/ContextMenu.js +5 -5
- package/lib/component/elements/EditableColumn.js +3 -5
- package/lib/component/elements/GroupPane.d.ts +13 -0
- package/lib/component/elements/GroupPane.js +14 -0
- package/lib/component/elements/Header.d.ts +11 -0
- package/lib/component/elements/Header.js +17 -0
- package/lib/component/elements/Input.d.ts +3 -1
- package/lib/component/elements/Input.js +49 -50
- package/lib/component/elements/InputRange.d.ts +1 -0
- package/lib/component/elements/InputRange.js +3 -3
- package/lib/component/elements/IsotopesViewer.js +4 -1
- package/lib/component/elements/Label.d.ts +3 -1
- package/lib/component/elements/Label.js +8 -6
- package/lib/component/elements/MenuButton.js +4 -4
- package/lib/component/elements/Message.d.ts +16 -0
- package/lib/component/elements/Message.js +35 -0
- package/lib/component/elements/MolecularFormulaInput.js +3 -2
- package/lib/component/elements/MoleculeSelection.js +9 -7
- package/lib/component/elements/NextPrev.js +6 -2
- package/lib/component/elements/NumberInput.d.ts +4 -12
- package/lib/component/elements/NumberInput.js +10 -40
- package/lib/component/elements/ReactTable/Elements/EmptyDataRow.d.ts +2 -0
- package/lib/component/elements/ReactTable/Elements/EmptyDataRow.js +11 -0
- package/lib/component/elements/ReactTable/Elements/ReactTableHeader.d.ts +7 -5
- package/lib/component/elements/ReactTable/Elements/ReactTableHeader.js +24 -4
- package/lib/component/elements/ReactTable/Elements/ReactTableRow.d.ts +6 -6
- package/lib/component/elements/ReactTable/Elements/ReactTableRow.js +36 -48
- package/lib/component/elements/ReactTable/ReactTable.d.ts +42 -15
- package/lib/component/elements/ReactTable/ReactTable.js +170 -80
- package/lib/component/elements/ReactTable/ReactTableFlexLayout.d.ts +7 -4
- package/lib/component/elements/ReactTable/ReactTableFlexLayout.js +19 -9
- package/lib/component/elements/ReactTable/Style.d.ts +1 -1
- package/lib/component/elements/ReactTable/Style.js +0 -8
- package/lib/component/elements/ReactTable/utility/ReactTableContext.d.ts +3 -3
- package/lib/component/elements/ReactTable/utility/addCustomColumn.d.ts +4 -17
- package/lib/component/elements/ReactTable/utility/addCustomColumn.js +4 -5
- package/lib/component/elements/ReactTable/utility/useRowSpan.d.ts +6 -1
- package/lib/component/elements/ReactTable/utility/useRowSpan.js +3 -7
- package/lib/component/elements/SVGGroup.d.ts +8 -0
- package/lib/component/elements/SVGGroup.js +31 -0
- package/lib/component/elements/SaveButton.js +1 -0
- package/lib/component/elements/Select.d.ts +1 -0
- package/lib/component/elements/Select.js +27 -24
- package/lib/component/elements/Tab/DeleteButton.d.ts +3 -2
- package/lib/component/elements/Tab/DeleteButton.js +7 -7
- package/lib/component/elements/Tab/Tab.d.ts +14 -21
- package/lib/component/elements/Tab/Tab.js +15 -18
- package/lib/component/elements/Tab/Tabs.d.ts +2 -4
- package/lib/component/elements/Tab/Tabs.js +11 -9
- package/lib/component/elements/ToolbarMenu.js +5 -5
- package/lib/component/elements/accordion/Accordion.js +2 -2
- package/lib/component/elements/accordion/AccordionItem.js +0 -1
- package/lib/component/elements/{draggble → draggable}/SVGDraggable.d.ts +2 -2
- package/lib/component/elements/{draggble → draggable}/useDraggable.d.ts +1 -1
- package/lib/component/elements/{draggble → draggable}/useDraggable.js +1 -3
- package/lib/component/elements/dropDownButton/DropDownButton.d.ts +10 -6
- package/lib/component/elements/dropDownButton/DropDownButton.js +13 -7
- package/lib/component/elements/dropDownButton/DropDownList.d.ts +5 -2
- package/lib/component/elements/dropDownButton/DropDownList.js +21 -9
- package/lib/component/elements/formik/FormikCheckBox.js +1 -1
- package/lib/component/elements/formik/FormikColorPicker.js +2 -2
- package/lib/component/elements/formik/FormikErrorsSummary.js +2 -2
- package/lib/component/elements/formik/FormikInput.d.ts +5 -1
- package/lib/component/elements/formik/FormikInput.js +18 -5
- package/lib/component/elements/formik/FormikNumberInput.d.ts +1 -1
- package/lib/component/elements/formik/FormikNumberInput.js +13 -3
- package/lib/component/elements/formik/FormikOnChange.d.ts +2 -0
- package/lib/component/elements/formik/FormikOnChange.js +12 -9
- package/lib/component/elements/formik/FormikSelect.d.ts +1 -0
- package/lib/component/elements/formik/FormikSelect.js +7 -3
- package/lib/component/elements/formik/FormikTextarea.js +1 -1
- package/lib/component/elements/linearAxis/LinearVerticalAxis.d.ts +1 -1
- package/lib/component/elements/linearAxis/LinearVerticalAxis.js +2 -2
- package/lib/component/elements/popup/Alert/ProgressIndicator.js +5 -2
- package/lib/component/elements/popup/Alert/Provider.js +36 -27
- package/lib/component/elements/popup/Alert/index.d.ts +3 -4
- package/lib/component/elements/popup/Alert/index.js +3 -4
- package/lib/component/elements/popup/Modal/ConfirmDialog.d.ts +15 -8
- package/lib/component/elements/popup/Modal/ConfirmDialog.js +19 -26
- package/lib/component/elements/popup/Modal/ModalContent.js +3 -1
- package/lib/component/elements/popup/Modal/Provider.js +64 -68
- package/lib/component/elements/popup/Modal/index.d.ts +4 -5
- package/lib/component/elements/popup/Modal/index.js +4 -5
- package/lib/component/elements/popup/Transition.d.ts +1 -1
- package/lib/component/elements/resizer/Resizer.d.ts +2 -2
- package/lib/component/elements/resizer/SVGResizer.js +1 -3
- package/lib/component/elements/resizer/useResizer.d.ts +1 -1
- package/lib/component/elements/resizer/useResizer.js +1 -1
- package/lib/component/elements/toggle/ToggleButton.js +1 -1
- package/lib/component/header/ApodizationOptionsPanel.js +18 -37
- package/lib/component/header/AutoPeakPickingOptionPanel.js +14 -23
- package/lib/component/header/BaseLineCorrectionPanel.js +17 -50
- package/lib/component/header/Header.d.ts +3 -2
- package/lib/component/header/Header.js +76 -41
- package/lib/component/header/HeaderContainer.js +0 -2
- package/lib/component/header/LogsHistory.d.ts +2 -0
- package/lib/component/header/LogsHistory.js +106 -0
- package/lib/component/header/PhaseCorrectionPanel.d.ts +2 -0
- package/lib/component/header/{ManualPhaseCorrectionPanel.js → PhaseCorrectionPanel.js} +27 -25
- package/lib/component/header/RangesPickingOptionPanel.js +18 -41
- package/lib/component/header/ZeroFillingOptionsPanel.d.ts +1 -2
- package/lib/component/header/ZeroFillingOptionsPanel.js +45 -36
- package/lib/component/header/Zones2DOptionPanel.js +17 -29
- package/lib/component/highlight/index.d.ts +7 -5
- package/lib/component/highlight/index.js +5 -0
- package/lib/component/hooks/useActiveSpectra.d.ts +1 -0
- package/lib/component/hooks/useActiveSpectra.js +6 -0
- package/lib/component/hooks/useActiveSpectrum.d.ts +1 -0
- package/lib/component/hooks/useActiveSpectrum.js +6 -0
- package/lib/component/hooks/useActiveSpectrumPeaksViewState.d.ts +3 -0
- package/lib/component/hooks/useActiveSpectrumPeaksViewState.js +17 -0
- package/lib/component/hooks/useActiveSpectrumStyleOptions.js +5 -4
- package/lib/component/hooks/useCheckExperimentalFeature.js +1 -6
- package/lib/component/hooks/useCheckToolsVisibility.d.ts +2 -3
- package/lib/component/hooks/useCheckToolsVisibility.js +27 -9
- package/lib/component/hooks/useCombinedRefs.js +2 -2
- package/lib/component/hooks/useDatumWithSpectraStatistics.d.ts +2 -3
- package/lib/component/hooks/useDatumWithSpectraStatistics.js +1 -1
- package/lib/component/hooks/useExport.d.ts +1 -1
- package/lib/component/hooks/useExport.js +31 -25
- package/lib/component/hooks/useFilter.d.ts +1 -1
- package/lib/component/hooks/useFormatNumberByNucleus.d.ts +1 -1
- package/lib/component/hooks/useFormatNumberByNucleus.js +6 -4
- package/lib/component/hooks/useIntegralPath.js +4 -2
- package/lib/component/hooks/usePanelPreferences.d.ts +5 -4
- package/lib/component/hooks/usePanelPreferences.js +45 -13
- package/lib/component/hooks/useSaveSettings.d.ts +6 -0
- package/lib/component/hooks/useSaveSettings.js +74 -0
- package/lib/component/hooks/useSpectraPerNucleus.d.ts +2 -3
- package/lib/component/hooks/useSpectrum.d.ts +2 -3
- package/lib/component/hooks/useSpectrum.js +2 -2
- package/lib/component/hooks/useToolsFunctions.js +3 -2
- package/lib/component/hooks/useVerticalAlign.d.ts +1 -0
- package/lib/component/hooks/useVerticalAlign.js +6 -0
- package/lib/component/hooks/useXYReduce.d.ts +1 -1
- package/lib/component/loader/DefaultSpinnerComponent.js +3 -4
- package/lib/component/loader/DropZone.js +61 -17
- package/lib/component/loader/NoData.js +1 -1
- package/lib/component/modal/AboutUsModal.d.ts +1 -4
- package/lib/component/modal/AboutUsModal.js +41 -35
- package/lib/component/modal/AlignSpectraModal.js +4 -4
- package/lib/component/modal/CopyClipboardModal.js +5 -4
- package/lib/component/modal/EditPeakShapeModal.d.ts +2 -2
- package/lib/component/modal/EditPeakShapeModal.js +3 -3
- package/lib/component/modal/ExportAsJcampModal.d.ts +8 -0
- package/lib/component/modal/ExportAsJcampModal.js +62 -0
- package/lib/component/modal/ImportPublicationStringModal.js +3 -3
- package/lib/component/modal/LoadJCAMPModal.d.ts +1 -2
- package/lib/component/modal/LoadJCAMPModal.js +31 -20
- package/lib/component/modal/ModalStyle.d.ts +1 -1
- package/lib/component/modal/ModalStyle.js +0 -13
- package/lib/component/modal/MultipletAnalysisModal.d.ts +2 -2
- package/lib/component/modal/MultipletAnalysisModal.js +12 -6
- package/lib/component/modal/PredictSpectraModal.js +14 -12
- package/lib/component/modal/SaveAsModal.js +17 -15
- package/lib/component/modal/changeSum/ChangeSumModal.d.ts +2 -2
- package/lib/component/modal/changeSum/ChangeSumModal.js +7 -3
- package/lib/component/modal/changeSum/SelectMolecule.js +5 -5
- package/lib/component/modal/editRange/EditRangeModal.js +11 -9
- package/lib/component/modal/editRange/forms/components/AddSignalFormTab.js +11 -12
- package/lib/component/modal/editRange/forms/components/CouplingsTable.js +2 -2
- package/lib/component/modal/editRange/forms/components/SignalFormInfo.js +1 -1
- package/lib/component/modal/editRange/forms/components/SignalsForm.d.ts +1 -1
- package/lib/component/modal/editRange/forms/validation/EditRangeValidation.d.ts +11 -263
- package/lib/component/modal/editRange/forms/validation/EditRangeValidation.js +21 -25
- package/lib/component/modal/editZone/EditPathLengthFormik.js +12 -17
- package/lib/component/modal/editZone/EditZoneModal.js +8 -5
- package/lib/component/modal/editZone/SignalsForm.js +1 -11
- package/lib/component/modal/editZone/validation/EditZoneValidation.d.ts +13 -533
- package/lib/component/modal/editZone/validation/EditZoneValidation.js +12 -15
- package/lib/component/modal/metaImportation/MetaImportationModal.d.ts +6 -0
- package/lib/component/modal/metaImportation/MetaImportationModal.js +189 -0
- package/lib/component/modal/metaImportation/index.d.ts +2 -0
- package/lib/component/modal/metaImportation/index.js +17 -0
- package/lib/component/modal/metaImportation/utils/mapColumnToSelectItems.d.ts +1 -0
- package/lib/component/modal/metaImportation/utils/mapColumnToSelectItems.js +9 -0
- package/lib/component/modal/setting/GeneralSettings.d.ts +4 -4
- package/lib/component/modal/setting/GeneralSettings.js +139 -53
- package/lib/component/modal/setting/WorkspaceItem.d.ts +6 -4
- package/lib/component/modal/setting/WorkspaceItem.js +88 -51
- package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.d.ts +9 -0
- package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.js +77 -0
- package/lib/component/modal/setting/{DisplayTabContent.js → settings-tabs/DisplayTabContent.js} +29 -31
- package/lib/component/modal/setting/settings-tabs/FormattingTabContent.js +80 -0
- package/lib/component/modal/setting/settings-tabs/GeneralTabContent.js +40 -0
- package/lib/component/modal/setting/settings-tabs/ImportationFiltersTabContent.d.ts +3 -0
- package/lib/component/modal/setting/settings-tabs/ImportationFiltersTabContent.js +85 -0
- package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.d.ts +3 -0
- package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.js +92 -0
- package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.d.ts +3 -0
- package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.js +39 -0
- package/lib/component/modal/setting/{ToolsTabContent.js → settings-tabs/ToolsTabContent.js} +25 -22
- package/lib/component/modal/setting/settingsValidation.d.ts +1 -164
- package/lib/component/modal/setting/settingsValidation.js +30 -21
- package/lib/component/panels/AutomaticAssignment/AutomaticAssignment.js +14 -2
- package/lib/component/panels/AutomaticAssignment/AutomaticAssignmentTable.js +3 -5
- package/lib/component/panels/AutomaticAssignment/useAutoAssignments.d.ts +2 -2
- package/lib/component/panels/AutomaticAssignment/useAutoAssignments.js +14 -17
- package/lib/component/panels/InformationPanel.js +84 -59
- package/lib/component/panels/IntegralsPanel/IntegralPanel.d.ts +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralPanel.js +3 -3
- package/lib/component/panels/IntegralsPanel/IntegralTable.d.ts +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralTable.js +13 -11
- package/lib/component/panels/IntegralsPanel/IntegralsPreferences.d.ts +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralsPreferences.js +17 -17
- package/lib/component/panels/MatrixGenerationPanel/ExclusionsZonesTable.d.ts +1 -0
- package/lib/component/panels/MatrixGenerationPanel/ExclusionsZonesTable.js +47 -0
- package/lib/component/panels/MatrixGenerationPanel/FiltersOptions.d.ts +1 -0
- package/lib/component/panels/MatrixGenerationPanel/FiltersOptions.js +104 -0
- package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.d.ts +5 -1
- package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.js +93 -25
- package/lib/component/panels/MoleculesPanel/MoleculePanel.js +5 -5
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.d.ts +3 -3
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +59 -26
- package/lib/component/panels/MoleculesPanel/Utilities.d.ts +2 -3
- package/lib/component/panels/MoleculesPanel/Utilities.js +6 -6
- package/lib/component/panels/MoleculesPanel/useAtomAssignment.js +16 -18
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPanel.js +19 -25
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisTable.d.ts +5 -4
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisTable.js +60 -29
- package/lib/component/panels/MultipleSpectraAnalysisPanel/base/AnalysisCell.d.ts +8 -0
- package/lib/component/panels/MultipleSpectraAnalysisPanel/base/AnalysisCell.js +18 -0
- package/lib/component/panels/MultipleSpectraAnalysisPanel/base/AnalysisColumnHeader.d.ts +13 -0
- package/lib/component/panels/MultipleSpectraAnalysisPanel/base/AnalysisColumnHeader.js +53 -0
- package/lib/component/panels/MultipleSpectraAnalysisPanel/preferences/AnalysisTablePreferences.d.ts +2 -0
- package/lib/component/panels/MultipleSpectraAnalysisPanel/preferences/AnalysisTablePreferences.js +55 -0
- package/lib/component/panels/MultipleSpectraAnalysisPanel/preferences/LegendsPreferences.d.ts +3 -0
- package/lib/component/panels/MultipleSpectraAnalysisPanel/preferences/LegendsPreferences.js +81 -0
- package/lib/component/panels/MultipleSpectraAnalysisPanel/{MultipleAnalysisCodeEditor.js → preferences/MultipleAnalysisCodeEditor.js} +2 -2
- package/lib/component/panels/MultipleSpectraAnalysisPanel/preferences/index.d.ts +9 -0
- package/lib/component/panels/MultipleSpectraAnalysisPanel/preferences/index.js +106 -0
- package/lib/component/panels/PanelNoData.d.ts +6 -0
- package/lib/component/panels/PanelNoData.js +24 -0
- package/lib/component/panels/Panels.js +5 -6
- package/lib/component/panels/PeaksPanel/PeaksPanel.d.ts +5 -0
- package/lib/component/panels/PeaksPanel/PeaksPanel.js +18 -19
- package/lib/component/panels/PeaksPanel/PeaksPreferences.d.ts +1 -1
- package/lib/component/panels/PeaksPanel/PeaksPreferences.js +5 -11
- package/lib/component/panels/PeaksPanel/PeaksTable.js +31 -10
- package/lib/component/panels/RangesPanel/RangesHeader.js +6 -6
- package/lib/component/panels/RangesPanel/RangesPanel.js +12 -7
- package/lib/component/panels/RangesPanel/RangesPreferences.d.ts +1 -1
- package/lib/component/panels/RangesPanel/RangesPreferences.js +7 -10
- package/lib/component/panels/RangesPanel/RangesTable.d.ts +4 -5
- package/lib/component/panels/RangesPanel/RangesTable.js +17 -22
- package/lib/component/panels/RangesPanel/RangesTableRow.d.ts +24 -4
- package/lib/component/panels/RangesPanel/RangesTableRow.js +15 -11
- package/lib/component/panels/RangesPanel/TableColumns/AbsoluteColumn.d.ts +3 -14
- package/lib/component/panels/RangesPanel/TableColumns/AbsoluteColumn.js +2 -2
- package/lib/component/panels/RangesPanel/TableColumns/ActionsColumn.d.ts +5 -17
- package/lib/component/panels/RangesPanel/TableColumns/ActionsColumn.js +4 -4
- package/lib/component/panels/RangesPanel/TableColumns/CouplingColumn.d.ts +3 -14
- package/lib/component/panels/RangesPanel/TableColumns/CouplingColumn.js +4 -4
- package/lib/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.d.ts +7 -11
- package/lib/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.js +38 -37
- package/lib/component/panels/RangesPanel/TableColumns/RangeColumn.d.ts +5 -14
- package/lib/component/panels/RangesPanel/TableColumns/RangeColumn.js +3 -4
- package/lib/component/panels/RangesPanel/TableColumns/RelativeColumn.d.ts +2 -6
- package/lib/component/panels/RangesPanel/TableColumns/RelativeColumn.js +8 -11
- package/lib/component/panels/RangesPanel/TableColumns/RemoveAssignmentsButton.d.ts +4 -0
- package/lib/component/panels/RangesPanel/TableColumns/RemoveAssignmentsButton.js +8 -0
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentsColumn.d.ts +4 -9
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentsColumn.js +16 -25
- package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.d.ts +2 -9
- package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.js +6 -7
- package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaHzColumn.d.ts +4 -9
- package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaHzColumn.js +5 -5
- package/lib/component/panels/RangesPanel/hooks/useEditRangeModal.js +2 -2
- package/lib/component/panels/RangesPanel/hooks/useMapRanges.d.ts +1 -1
- package/lib/component/panels/RangesPanel/hooks/useMapRanges.js +8 -8
- package/lib/component/panels/SpectrumsPanel/SpectraPanelHeader.d.ts +2 -4
- package/lib/component/panels/SpectrumsPanel/SpectraPanelHeader.js +55 -39
- package/lib/component/panels/SpectrumsPanel/SpectraPreferences.d.ts +3 -0
- package/lib/component/panels/SpectrumsPanel/SpectraPreferences.js +72 -0
- package/lib/component/panels/SpectrumsPanel/SpectraTable.d.ts +13 -0
- package/lib/component/panels/SpectrumsPanel/SpectraTable.js +228 -0
- package/lib/component/panels/SpectrumsPanel/SpectrumListPanel.js +14 -7
- package/lib/component/panels/SpectrumsPanel/SpectrumsTabs.d.ts +1 -12
- package/lib/component/panels/SpectrumsPanel/SpectrumsTabs.js +34 -100
- package/lib/component/panels/SpectrumsPanel/base/ColorIndicator.d.ts +5 -21
- package/lib/component/panels/SpectrumsPanel/base/ColorIndicator.js +14 -8
- package/lib/component/panels/SpectrumsPanel/base/ShowHideSpectrumButton.d.ts +8 -16
- package/lib/component/panels/SpectrumsPanel/base/ShowHideSpectrumButton.js +63 -39
- package/lib/component/panels/SpectrumsPanel/base/SpectraColumnsManager.d.ts +10 -0
- package/lib/component/panels/SpectrumsPanel/base/SpectraColumnsManager.js +58 -0
- package/lib/component/panels/SpectrumsPanel/base/SpectrumName.d.ts +7 -0
- package/lib/component/panels/SpectrumsPanel/base/SpectrumName.js +37 -0
- package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum1DSetting.js +3 -3
- package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum2DHistogram.js +1 -1
- package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum2DSetting.js +4 -3
- package/lib/component/panels/SpectrumsPanel/base/setting/SpectrumSetting.js +14 -20
- package/lib/component/panels/SpectrumsPanel/base/setting/processSnapPlot.d.ts +2 -3
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js +17 -18
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.js +16 -17
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.js +15 -10
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js +20 -21
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/Confirmation.js +4 -5
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditLinkModal.js +17 -19
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditPathLength.d.ts +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditPathLength.js +0 -2
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.js +12 -13
- package/lib/component/panels/SummaryPanel/Overview.js +2 -1
- package/lib/component/panels/SummaryPanel/SetMolecularFormulaModal.js +21 -21
- package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.js +17 -21
- package/lib/component/panels/SummaryPanel/SummaryPanel.js +0 -1
- package/lib/component/panels/SummaryPanel/utilities/Utilities.d.ts +4 -5
- package/lib/component/panels/SummaryPanel/utilities/Utilities.js +105 -94
- package/lib/component/panels/SummaryPanel/utilities/useInView.js +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js +1 -1
- package/lib/component/panels/ZonesPanel/ZonesPanel.js +2 -1
- package/lib/component/panels/ZonesPanel/ZonesPreferences.d.ts +1 -1
- package/lib/component/panels/ZonesPanel/ZonesPreferences.js +7 -10
- package/lib/component/panels/ZonesPanel/ZonesTable.d.ts +1 -2
- package/lib/component/panels/ZonesPanel/ZonesTable.js +31 -34
- package/lib/component/panels/ZonesPanel/ZonesTableRow.d.ts +3 -3
- package/lib/component/panels/ZonesPanel/ZonesTableRow.js +5 -4
- package/lib/component/panels/databasePanel/DatabasePanel.js +90 -16
- package/lib/component/panels/databasePanel/DatabasePreferences.d.ts +1 -1
- package/lib/component/panels/databasePanel/DatabasePreferences.js +4 -7
- package/lib/component/panels/databasePanel/DatabaseStructureSearchModal.js +1 -1
- package/lib/component/panels/databasePanel/DatabaseTable.d.ts +3 -1
- package/lib/component/panels/databasePanel/DatabaseTable.js +36 -13
- package/lib/component/panels/extra/BasicPanelStyle.d.ts +1 -1
- package/lib/component/panels/extra/preferences/NucleusGroup.d.ts +14 -0
- package/lib/component/panels/extra/preferences/NucleusGroup.js +19 -0
- package/lib/component/panels/extra/preferences/NucleusPreferences.d.ts +4 -6
- package/lib/component/panels/extra/preferences/NucleusPreferences.js +5 -19
- package/lib/component/panels/extra/preferences/PreferencesContainer.d.ts +3 -2
- package/lib/component/panels/extra/preferences/PreferencesContainer.js +3 -3
- package/lib/component/panels/extra/utilities/MultiplicityUtilities.d.ts +2 -2
- package/lib/component/panels/extra/utilities/MultiplicityUtilities.js +5 -3
- package/lib/component/panels/filtersPanel/FilterPanel.d.ts +1 -5
- package/lib/component/panels/filtersPanel/FilterPanel.js +27 -60
- package/lib/component/panels/filtersPanel/FiltersTable.js +82 -45
- package/lib/component/panels/header/DefaultPanelHeader.d.ts +3 -1
- package/lib/component/panels/header/DefaultPanelHeader.js +6 -5
- package/lib/component/panels/header/PreferencesHeader.js +3 -2
- package/lib/component/panels/header/SpectraAutomaticPickingButton.js +3 -3
- package/lib/component/panels/predictionPanel/PredictionOptions.js +4 -4
- package/lib/component/panels/predictionPanel/PredictionPanel.js +1 -1
- package/lib/component/reducer/IgnoreActions.js +4 -8
- package/lib/component/reducer/Reducer.d.ts +32 -815
- package/lib/component/reducer/Reducer.js +45 -87
- package/lib/component/reducer/actions/AssignmentsActions.js +2 -4
- package/lib/component/reducer/actions/CorrelationsActions.js +4 -4
- package/lib/component/reducer/actions/DatabaseActions.js +10 -11
- package/lib/component/reducer/actions/DomainActions.d.ts +7 -8
- package/lib/component/reducer/actions/DomainActions.js +83 -78
- package/lib/component/reducer/actions/FiltersActions.d.ts +16 -20
- package/lib/component/reducer/actions/FiltersActions.js +414 -298
- package/lib/component/reducer/actions/HistoryActions.js +5 -5
- package/lib/component/reducer/actions/IntegralsActions.js +3 -2
- package/lib/component/reducer/actions/LoadActions.d.ts +10 -5
- package/lib/component/reducer/actions/LoadActions.js +92 -63
- package/lib/component/reducer/actions/MoleculeActions.d.ts +2 -1
- package/lib/component/reducer/actions/MoleculeActions.js +42 -25
- package/lib/component/reducer/actions/PeaksActions.d.ts +3 -3
- package/lib/component/reducer/actions/PeaksActions.js +24 -9
- package/lib/component/reducer/actions/PreferencesActions.d.ts +1 -2
- package/lib/component/reducer/actions/PreferencesActions.js +18 -39
- package/lib/component/reducer/actions/RangesActions.d.ts +1 -1
- package/lib/component/reducer/actions/RangesActions.js +29 -22
- package/lib/component/reducer/actions/SpectraAnalysisAction.d.ts +2 -6
- package/lib/component/reducer/actions/SpectraAnalysisAction.js +20 -31
- package/lib/component/reducer/actions/SpectrumsActions.d.ts +11 -3
- package/lib/component/reducer/actions/SpectrumsActions.js +239 -72
- package/lib/component/reducer/actions/ToolsActions.d.ts +7 -2
- package/lib/component/reducer/actions/ToolsActions.js +146 -101
- package/lib/component/reducer/actions/ZonesActions.d.ts +1 -1
- package/lib/component/reducer/actions/ZonesActions.js +17 -11
- package/lib/component/reducer/core/Constants.d.ts +0 -1
- package/lib/component/reducer/core/Constants.js +0 -1
- package/lib/component/reducer/helper/GetClosestNumber.js +2 -1
- package/lib/component/reducer/helper/Zoom1DManager.js +12 -10
- package/lib/component/reducer/helper/ZoomHistoryManager.d.ts +1 -1
- package/lib/component/reducer/helper/ZoomHistoryManager.js +6 -3
- package/lib/component/reducer/helper/getActiveSpectra.d.ts +3 -0
- package/lib/component/reducer/helper/getActiveSpectra.js +4 -0
- package/lib/component/reducer/helper/getActiveSpectraAsObject.d.ts +4 -0
- package/lib/component/reducer/helper/getActiveSpectraAsObject.js +14 -0
- package/lib/component/reducer/helper/getActiveSpectrum.js +5 -1
- package/lib/component/reducer/helper/getRange.d.ts +1 -0
- package/lib/component/reducer/helper/getRange.js +8 -5
- package/lib/component/reducer/helper/getSpectrum.js +5 -6
- package/lib/component/reducer/helper/getStrongestPeak.d.ts +1 -1
- package/lib/component/reducer/helper/getStrongestPeak.js +4 -4
- package/lib/component/reducer/helper/getVerticalAlign.d.ts +3 -0
- package/lib/component/reducer/helper/getVerticalAlign.js +4 -0
- package/lib/component/reducer/preferences/actions/addWorkspace.js +11 -7
- package/lib/component/reducer/preferences/actions/analyzeSpectra.d.ts +6 -0
- package/lib/component/reducer/preferences/actions/analyzeSpectra.js +48 -0
- package/lib/component/reducer/preferences/actions/applyGeneralPreferences.d.ts +3 -0
- package/lib/component/reducer/preferences/actions/applyGeneralPreferences.js +4 -0
- package/lib/component/reducer/preferences/actions/initPreferences.js +49 -48
- package/lib/component/reducer/preferences/actions/matrixGeneration.d.ts +6 -0
- package/lib/component/reducer/preferences/actions/matrixGeneration.js +42 -0
- package/lib/component/reducer/preferences/actions/removeWorkspace.js +5 -12
- package/lib/component/reducer/preferences/actions/setActiveWorkspace.d.ts +3 -0
- package/lib/component/reducer/preferences/actions/setActiveWorkspace.js +10 -0
- package/lib/component/reducer/preferences/actions/setPanelsPreferences.js +11 -6
- package/lib/component/reducer/preferences/actions/setPreferences.js +19 -22
- package/lib/component/reducer/preferences/actions/setVerticalSplitterPosition.d.ts +3 -0
- package/lib/component/reducer/preferences/actions/setVerticalSplitterPosition.js +6 -0
- package/lib/component/reducer/preferences/actions/setWorkspace.d.ts +2 -2
- package/lib/component/reducer/preferences/actions/setWorkspace.js +14 -4
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.d.ts +3 -1
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js +61 -1
- package/lib/component/reducer/preferences/preferencesReducer.d.ts +77 -258
- package/lib/component/reducer/preferences/preferencesReducer.js +54 -3
- package/lib/component/reducer/preferences/utilities/getPreferencesByWorkspace.d.ts +3 -2
- package/lib/component/reducer/preferences/utilities/getPreferencesByWorkspace.js +2 -3
- package/lib/component/reducer/preferences/utilities/initWorkspace.d.ts +5 -0
- package/lib/component/reducer/preferences/utilities/initWorkspace.js +5 -0
- package/lib/component/reducer/preferences/utilities/isReadOnlyWorkspace.d.ts +3 -0
- package/lib/component/reducer/preferences/utilities/isReadOnlyWorkspace.js +3 -0
- package/lib/component/reducer/preferences/utilities/mapNucleiFormatting.d.ts +1 -4
- package/lib/component/reducer/preferences/utilities/mapNucleiFormatting.js +7 -5
- package/lib/component/reducer/preferences/utilities/mapWorkspaces.d.ts +8 -0
- package/lib/component/reducer/preferences/utilities/mapWorkspaces.js +18 -0
- package/lib/component/reducer/scaleReducer.d.ts +3 -1
- package/lib/component/reducer/scaleReducer.js +8 -0
- package/lib/component/reducer/types/Types.d.ts +10 -18
- package/lib/component/reducer/types/Types.js +9 -17
- package/lib/component/toolbar/BasicToolBar.js +30 -30
- package/lib/component/toolbar/FunctionToolBar.js +6 -18
- package/lib/component/toolbar/ToolBar.js +2 -2
- package/lib/component/toolbar/ToolTypes.d.ts +14 -4
- package/lib/component/toolbar/ToolTypes.js +172 -30
- package/lib/component/utility/Evaluate.js +2 -2
- package/lib/component/utility/FileUtility.d.ts +2 -28
- package/lib/component/utility/FileUtility.js +5 -59
- package/lib/component/utility/GroupByInfoKey.d.ts +1 -1
- package/lib/component/utility/GroupByInfoKey.js +11 -13
- package/lib/component/utility/PathBuilder.js +1 -1
- package/lib/component/utility/PreferencesHelper.js +2 -3
- package/lib/component/utility/convertPathArrayToString.d.ts +1 -0
- package/lib/component/utility/convertPathArrayToString.js +3 -0
- package/lib/component/utility/export.d.ts +1 -1
- package/lib/component/utility/export.js +48 -32
- package/lib/component/utility/formatNumber.d.ts +1 -1
- package/lib/component/utility/formatNumber.js +6 -4
- package/lib/component/utility/getSpectraByNucleus.d.ts +2 -3
- package/lib/component/utility/getSpectraObjectPaths.d.ts +5 -0
- package/lib/component/utility/getSpectraObjectPaths.js +22 -0
- package/lib/component/utility/jpathToArray.d.ts +1 -0
- package/lib/component/utility/jpathToArray.js +23 -0
- package/lib/component/utility/parseColor.d.ts +4 -0
- package/lib/component/utility/parseColor.js +15 -0
- package/lib/component/workspaces/Workspace.d.ts +90 -7
- package/lib/component/workspaces/assignment.d.ts +2 -0
- package/lib/component/workspaces/assignment.js +33 -0
- package/lib/component/workspaces/basic.js +5 -3
- package/lib/component/workspaces/embedded.js +3 -2
- package/lib/component/workspaces/exercise.js +1 -1
- package/lib/component/workspaces/index.d.ts +1 -0
- package/lib/component/workspaces/index.js +9 -1
- package/lib/component/workspaces/prediction.js +2 -1
- package/lib/component/workspaces/process1D.js +5 -2
- package/lib/component/workspaces/workspaceDefaultProperties.d.ts +2 -2
- package/lib/component/workspaces/workspaceDefaultProperties.js +106 -2
- package/lib/data/Filters.d.ts +12 -17
- package/lib/data/Filters.js +12 -17
- package/lib/data/FiltersManager.d.ts +25 -12
- package/lib/data/FiltersManager.js +65 -30
- package/lib/data/PredictionManager.d.ts +2 -3
- package/lib/data/PredictionManager.js +20 -19
- package/lib/data/SpectraManager.d.ts +26 -7
- package/lib/data/SpectraManager.js +85 -57
- package/lib/data/constants/Multiplets.js +1 -0
- package/lib/data/data1d/Spectrum1D/SumManager.d.ts +2 -3
- package/lib/data/data1d/Spectrum1D/SumManager.js +1 -1
- package/lib/data/data1d/Spectrum1D/cloneDatum1D.d.ts +5 -0
- package/lib/data/data1d/Spectrum1D/cloneDatum1D.js +4 -0
- package/lib/data/data1d/Spectrum1D/convertDataToFloat64Array.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/generateJGraphData.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/generateJGraphData.js +1 -1
- package/lib/data/data1d/Spectrum1D/generateSpectrumFromPublicationString.d.ts +2 -2
- package/lib/data/data1d/Spectrum1D/get1DColor.d.ts +3 -0
- package/lib/data/data1d/Spectrum1D/get1DColor.js +14 -0
- package/lib/data/data1d/Spectrum1D/get1DDataXY.d.ts +2 -2
- package/lib/data/data1d/Spectrum1D/get1DDataXY.js +1 -1
- package/lib/data/data1d/Spectrum1D/getShiftX.d.ts +2 -0
- package/lib/data/data1d/Spectrum1D/getShiftX.js +6 -0
- package/lib/data/data1d/Spectrum1D/getSpectrumErrorValue.d.ts +2 -2
- package/lib/data/data1d/Spectrum1D/getSpectrumErrorValue.js +2 -2
- package/lib/data/data1d/Spectrum1D/index.d.ts +23 -25
- package/lib/data/data1d/Spectrum1D/index.js +23 -25
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.d.ts +7 -2
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.js +48 -58
- package/lib/data/data1d/Spectrum1D/integrals/changeIntegralsRelative.d.ts +2 -2
- package/lib/data/data1d/Spectrum1D/integrals/changeIntegralsRelative.js +12 -11
- package/lib/data/data1d/Spectrum1D/integrals/checkIntegralKind.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/integrals/initiateIntegrals.d.ts +14 -3
- package/lib/data/data1d/Spectrum1D/integrals/initiateIntegrals.js +5 -2
- package/lib/data/data1d/Spectrum1D/integrals/mapIntegrals.d.ts +12 -0
- package/lib/data/data1d/Spectrum1D/integrals/mapIntegrals.js +36 -0
- package/lib/data/data1d/Spectrum1D/integrals/updateIntegrals.d.ts +2 -0
- package/lib/data/data1d/Spectrum1D/integrals/updateIntegrals.js +6 -0
- package/lib/data/data1d/Spectrum1D/integrals/updateIntegralsRelativeValues.d.ts +2 -2
- package/lib/data/data1d/Spectrum1D/integrals/updateIntegralsRelativeValues.js +2 -2
- package/lib/data/data1d/Spectrum1D/integrals/updateRelatives.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/integrals/updateRelatives.js +9 -11
- package/lib/data/data1d/Spectrum1D/isSpectrum1D.d.ts +2 -3
- package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.d.ts +2 -2
- package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.js +5 -6
- package/lib/data/data1d/Spectrum1D/peaks/initiatePeaks.d.ts +3 -3
- package/lib/data/data1d/Spectrum1D/peaks/initiatePeaks.js +2 -2
- package/lib/data/data1d/Spectrum1D/peaks/lookupPeak.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/lookupPeak.js +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/mapPeaks.d.ts +3 -2
- package/lib/data/data1d/Spectrum1D/peaks/mapPeaks.js +26 -9
- package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.d.ts +3 -3
- package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.js +9 -7
- package/lib/data/data1d/Spectrum1D/peaks/updatePeaks.d.ts +2 -0
- package/lib/data/data1d/Spectrum1D/peaks/updatePeaks.js +7 -0
- package/lib/data/data1d/Spectrum1D/ranges/addRange.d.ts +8 -9
- package/lib/data/data1d/Spectrum1D/ranges/addRange.js +20 -9
- package/lib/data/data1d/Spectrum1D/ranges/autoRangesDetection.d.ts +2 -2
- package/lib/data/data1d/Spectrum1D/ranges/autoRangesDetection.js +4 -13
- package/lib/data/data1d/Spectrum1D/ranges/changeRange.d.ts +2 -2
- package/lib/data/data1d/Spectrum1D/ranges/changeRange.js +27 -7
- package/lib/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.d.ts +3 -3
- package/lib/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.js +9 -9
- package/lib/data/data1d/Spectrum1D/ranges/changeRangeSignal.d.ts +2 -2
- package/lib/data/data1d/Spectrum1D/ranges/changeRangeSignal.js +6 -5
- package/lib/data/data1d/Spectrum1D/ranges/checkRangeKind.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectRange.d.ts +3 -2
- package/lib/data/data1d/Spectrum1D/ranges/detectRange.js +4 -4
- package/lib/data/data1d/Spectrum1D/ranges/detectRanges.d.ts +10 -9
- package/lib/data/data1d/Spectrum1D/ranges/detectRanges.js +6 -6
- package/lib/data/data1d/Spectrum1D/ranges/detectSignal.d.ts +10 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectSignal.js +20 -5
- package/lib/data/data1d/Spectrum1D/ranges/generateSpectrumFromRanges.d.ts +2 -2
- package/lib/data/data1d/Spectrum1D/ranges/generateSpectrumFromRanges.js +3 -4
- package/lib/data/data1d/Spectrum1D/ranges/initiateRanges.d.ts +37 -3
- package/lib/data/data1d/Spectrum1D/ranges/initiateRanges.js +2 -2
- package/lib/data/data1d/Spectrum1D/ranges/mapRanges.d.ts +37 -2
- package/lib/data/data1d/Spectrum1D/ranges/mapRanges.js +56 -21
- package/lib/data/data1d/Spectrum1D/ranges/updateRanges.d.ts +2 -0
- package/lib/data/data1d/Spectrum1D/ranges/updateRanges.js +9 -0
- package/lib/data/data1d/Spectrum1D/ranges/updateRangesRelativeValues.d.ts +2 -2
- package/lib/data/data1d/Spectrum1D/ranges/updateRangesRelativeValues.js +2 -2
- package/lib/data/data1d/database.d.ts +18 -3
- package/lib/data/data1d/database.js +50 -31
- package/lib/data/data1d/filter1d/apodization.d.ts +11 -9
- package/lib/data/data1d/filter1d/apodization.js +26 -8
- package/lib/data/data1d/filter1d/baselineCorrection.d.ts +8 -6
- package/lib/data/data1d/filter1d/baselineCorrection.js +4 -0
- package/lib/data/data1d/filter1d/digitalFilter.d.ts +12 -5
- package/lib/data/data1d/filter1d/digitalFilter.js +22 -14
- package/lib/data/data1d/filter1d/equallySpaced.d.ts +5 -5
- package/lib/data/data1d/filter1d/equallySpaced.js +10 -10
- package/lib/data/data1d/filter1d/exclusionZones.d.ts +7 -5
- package/lib/data/data1d/filter1d/exclusionZones.js +13 -9
- package/lib/data/data1d/filter1d/fft.d.ts +9 -4
- package/lib/data/data1d/filter1d/fft.js +41 -26
- package/lib/data/data1d/filter1d/phaseCorrection.d.ts +14 -4
- package/lib/data/data1d/filter1d/phaseCorrection.js +46 -18
- package/lib/data/data1d/filter1d/shiftX.d.ts +11 -5
- package/lib/data/data1d/filter1d/shiftX.js +12 -5
- package/lib/data/data1d/filter1d/signalProcessing.d.ts +26 -0
- package/lib/data/data1d/filter1d/signalProcessing.js +65 -0
- package/lib/data/data1d/filter1d/utils/padDataToNextPowerOfTwo.d.ts +2 -2
- package/lib/data/data1d/filter1d/utils/padDataToNextPowerOfTwo.js +6 -6
- package/lib/data/data1d/filter1d/zeroFilling.d.ts +14 -6
- package/lib/data/data1d/filter1d/zeroFilling.js +31 -22
- package/lib/data/data1d/multipleSpectraAnalysis.d.ts +68 -0
- package/lib/data/data1d/multipleSpectraAnalysis.js +211 -0
- package/lib/data/data2d/Processing2D.d.ts +3 -3
- package/lib/data/data2d/Processing2D.js +7 -18
- package/lib/data/data2d/Spectrum2D/cloneDatum2D.d.ts +1 -0
- package/lib/data/data2d/Spectrum2D/cloneDatum2D.js +9 -0
- package/lib/data/data2d/Spectrum2D/contours.d.ts +3 -3
- package/lib/data/data2d/Spectrum2D/contours.js +6 -5
- package/lib/data/data2d/Spectrum2D/get2DColor.d.ts +2 -0
- package/lib/data/data2d/Spectrum2D/get2DColor.js +17 -0
- package/lib/data/data2d/Spectrum2D/get2DSpectrumErrorValue.d.ts +6 -0
- package/lib/data/data2d/Spectrum2D/get2DSpectrumErrorValue.js +9 -0
- package/lib/data/data2d/Spectrum2D/getMissingProjection.d.ts +2 -2
- package/lib/data/data2d/Spectrum2D/getMissingProjection.js +12 -12
- package/lib/data/data2d/Spectrum2D/getShift.d.ts +6 -0
- package/lib/data/data2d/Spectrum2D/getShift.js +15 -0
- package/lib/data/data2d/Spectrum2D/getSlice.d.ts +4 -4
- package/lib/data/data2d/Spectrum2D/getSlice.js +17 -14
- package/lib/data/data2d/Spectrum2D/index.d.ts +9 -11
- package/lib/data/data2d/Spectrum2D/index.js +9 -11
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.d.ts +2 -2
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.js +19 -31
- package/lib/data/data2d/Spectrum2D/isSpectrum2D.d.ts +2 -3
- package/lib/data/data2d/Spectrum2D/zones/changeZoneSignal.d.ts +2 -2
- package/lib/data/data2d/Spectrum2D/zones/changeZoneSignal.js +4 -4
- package/lib/data/data2d/Spectrum2D/zones/detectZones.d.ts +1 -1
- package/lib/data/data2d/Spectrum2D/zones/detectZones.js +2 -44
- package/lib/data/data2d/Spectrum2D/zones/detectZonesManual.d.ts +31 -2
- package/lib/data/data2d/Spectrum2D/zones/detectZonesManual.js +2 -29
- package/lib/data/data2d/Spectrum2D/zones/getDetectionZones.d.ts +2 -2
- package/lib/data/data2d/Spectrum2D/zones/getDetectionZones.js +7 -7
- package/lib/data/data2d/Spectrum2D/zones/initiateZones.d.ts +43 -0
- package/lib/data/data2d/Spectrum2D/zones/initiateZones.js +14 -0
- package/lib/data/data2d/Spectrum2D/zones/isZoneExists.d.ts +3 -0
- package/lib/data/data2d/Spectrum2D/zones/isZoneExists.js +15 -0
- package/lib/data/data2d/Spectrum2D/zones/mapZones.d.ts +33 -0
- package/lib/data/data2d/Spectrum2D/zones/mapZones.js +63 -0
- package/lib/data/data2d/Spectrum2D/zones/updateZones.d.ts +2 -0
- package/lib/data/data2d/Spectrum2D/zones/updateZones.js +7 -0
- package/lib/data/data2d/filter2d/shiftX.d.ts +8 -4
- package/lib/data/data2d/filter2d/shiftX.js +12 -5
- package/lib/data/data2d/filter2d/shiftY.d.ts +7 -3
- package/lib/data/data2d/filter2d/shiftY.js +11 -4
- package/lib/data/getDefaultMatrixFilters.d.ts +16 -0
- package/lib/data/getDefaultMatrixFilters.js +20 -0
- package/lib/data/matrixGeneration.d.ts +41 -0
- package/lib/data/matrixGeneration.js +120 -0
- package/lib/data/molecules/Molecule.d.ts +21 -12
- package/lib/data/molecules/Molecule.js +6 -0
- package/lib/data/molecules/MoleculeManager.d.ts +1 -1
- package/lib/data/molecules/MoleculeManager.js +3 -3
- package/lib/data/parseMeta/index.d.ts +5 -0
- package/lib/data/parseMeta/index.js +4 -0
- package/lib/data/parseMeta/isMetaFile.d.ts +2 -0
- package/lib/data/parseMeta/isMetaFile.js +7 -0
- package/lib/data/parseMeta/linkMetaWithSpectra.d.ts +29 -0
- package/lib/data/parseMeta/linkMetaWithSpectra.js +87 -0
- package/lib/data/parseMeta/mapErrors.d.ts +2 -0
- package/lib/data/parseMeta/mapErrors.js +7 -0
- package/lib/data/parseMeta/parseMetaFile.d.ts +3 -0
- package/lib/data/parseMeta/parseMetaFile.js +12 -0
- package/lib/data/parseMeta/prepareKey.d.ts +1 -0
- package/lib/data/parseMeta/prepareKey.js +6 -0
- package/lib/data/types/{data1d/Info1D.d.ts → common/Info.d.ts} +4 -4
- package/lib/data/types/common/MapOptions.d.ts +5 -0
- package/lib/data/types/common/Nucleus.d.ts +2 -0
- package/lib/data/types/data1d/ComplexData1D.d.ts +2 -0
- package/lib/data/types/data1d/MatrixOptions.d.ts +28 -0
- package/lib/data/types/data1d/RangeDetectionResult.d.ts +1 -1
- package/lib/data/types/data1d/index.d.ts +1 -13
- package/lib/data/types/data2d/index.d.ts +1 -9
- package/lib/data/types/view-state/PeaksViewState.d.ts +17 -0
- package/lib/data/utilities/FindUtilities.d.ts +7 -9
- package/lib/data/utilities/RangeUtilities.d.ts +7 -2
- package/lib/data/utilities/RangeUtilities.js +22 -25
- package/lib/data/utilities/ZoneUtilities.d.ts +1 -1
- package/lib/data/utilities/ZoneUtilities.js +23 -19
- package/lib/data/utilities/calculateSanPlot.d.ts +2 -3
- package/lib/data/utilities/calculateSanPlot.js +0 -1
- package/lib/data/utilities/checkModifierKeyActivated.js +0 -4
- package/lib/data/utilities/convertSpectraListToObject.d.ts +2 -0
- package/lib/data/utilities/convertSpectraListToObject.js +6 -0
- package/lib/data/utilities/generateChar.js +8 -6
- package/lib/data/utilities/generateColor.d.ts +5 -0
- package/lib/data/utilities/{getColor.js → generateColor.js} +6 -6
- package/lib/data/utilities/getAtom.js +1 -1
- package/lib/data/utilities/getAtomsFromMF.js +2 -2
- package/lib/data/utilities/getSum.js +6 -3
- package/lib/types/NMRiumDataReturn.d.ts +11 -10
- package/lib/types/NMRiumGeneralPreferences.d.ts +0 -2
- package/lib/types/NMRiumPanelPreferences.d.ts +2 -1
- package/lib/types/NMRiumToolBarPreferences.d.ts +2 -1
- package/lib/versionInfo.js +1 -1
- package/lib-cjs/component/1d/ApodizationLine.js +7 -5
- package/lib-cjs/component/1d/Chart1D.js +5 -2
- package/lib-cjs/component/1d/ExclusionZoneAnnotation.js +30 -3
- package/lib-cjs/component/1d/ExclusionZonesAnnotations.js +22 -7
- package/lib-cjs/component/1d/FooterBanner.js +24 -11
- package/lib-cjs/component/1d/Line.js +4 -10
- package/lib-cjs/component/1d/LinesSeries.js +6 -7
- package/lib-cjs/component/1d/SpectraLegends.js +65 -0
- package/lib-cjs/component/1d/Viewer1D.js +43 -13
- package/lib-cjs/component/1d/XAxis.js +5 -5
- package/lib-cjs/component/1d/YAxis.js +3 -7
- package/lib-cjs/component/1d/database/DatabaseSpectrum.js +11 -10
- package/lib-cjs/component/1d/database/ResurrectedDatabaseRanges.js +5 -3
- package/lib-cjs/component/1d/integral/IntegralIndicator.js +1 -7
- package/lib-cjs/component/1d/integral/IntegralResizable.js +6 -2
- package/lib-cjs/component/1d/integral/IntegralsSeries.js +3 -3
- package/lib-cjs/component/1d/jCouplingGraph/JGraph.js +5 -8
- package/lib-cjs/component/1d/multiAnalysis/AnalysisRange.js +16 -16
- package/lib-cjs/component/1d/multiAnalysis/MultiAnalysisRanges.js +9 -13
- package/lib-cjs/component/1d/multiplicityTree/MultiplicityTree.js +145 -158
- package/lib-cjs/component/1d/multiplicityTree/buildTreeNode.js +3 -3
- package/lib-cjs/component/1d/peaks/PeakAnnotation.js +4 -7
- package/lib-cjs/component/1d/peaks/PeakAnnotations.js +19 -11
- package/lib-cjs/component/1d/peaks/PeaksShapes.js +9 -8
- package/lib-cjs/component/1d/peaks/usePeakShapesPath.js +10 -6
- package/lib-cjs/component/1d/ranges/AssignmentActionsButtons.js +18 -0
- package/lib-cjs/component/1d/ranges/Range.js +29 -40
- package/lib-cjs/component/1d/ranges/Ranges.js +8 -6
- package/lib-cjs/component/1d/tool/BaseLineZones.js +3 -2
- package/lib-cjs/component/1d/tool/PeakPointer.js +9 -15
- package/lib-cjs/component/1d/tool/XLabelPointer.js +2 -2
- package/lib-cjs/component/1d/utilities/scale.js +2 -2
- package/lib-cjs/component/1d-2d/components/FloatMoleculeStructures/ActionsButton.js +13 -0
- package/lib-cjs/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.js +84 -0
- package/lib-cjs/component/{tool → 1d-2d/components}/FloatMoleculeStructures/index.js +13 -11
- package/lib-cjs/component/1d-2d/components/SpectrumInfoBlock.js +40 -0
- package/lib-cjs/component/{tool → 1d-2d/tools}/BrushX.js +6 -6
- package/lib-cjs/component/{tool → 1d-2d/tools}/BrushXY.js +9 -8
- package/lib-cjs/component/{tool → 1d-2d/tools}/CrossLinePointer.js +8 -7
- package/lib-cjs/component/2d/{tools/slicing → 1d-tracer}/HorizontalSliceChart.js +17 -8
- package/lib-cjs/component/2d/{Left1DChart.js → 1d-tracer/Left1DChart.js} +7 -7
- package/lib-cjs/component/2d/{Top1DChart.js → 1d-tracer/Top1DChart.js} +4 -4
- package/lib-cjs/component/2d/{tools/slicing → 1d-tracer}/VerticalSliceChart.js +18 -9
- package/lib-cjs/component/2d/Chart2D.js +8 -7
- package/lib-cjs/component/2d/FooterBanner.js +27 -18
- package/lib-cjs/component/2d/{tools/slicing/SlicingView.js → SlicingView.js} +9 -9
- package/lib-cjs/component/2d/Viewer2D.js +15 -24
- package/lib-cjs/component/2d/XAxis.js +15 -19
- package/lib-cjs/component/2d/YAxis.js +11 -11
- package/lib-cjs/component/2d/fid/FidCanvas.js +116 -0
- package/lib-cjs/component/2d/fid/FidContainer.js +39 -0
- package/lib-cjs/component/2d/{Contours.js → ft/Contours.js} +29 -31
- package/lib-cjs/component/2d/ft/FTContainer.js +20 -0
- package/lib-cjs/component/2d/tools/XYLabelPointer.js +22 -8
- package/lib-cjs/component/2d/utilities/scale.js +5 -2
- package/lib-cjs/component/2d/zones/IndicationLines.js +5 -8
- package/lib-cjs/component/2d/zones/Signal.js +1 -2
- package/lib-cjs/component/2d/zones/SignalCrosshair.js +0 -1
- package/lib-cjs/component/2d/zones/Zone.js +9 -7
- package/lib-cjs/component/EventsTrackers/KeysListenerTracker.js +64 -54
- package/lib-cjs/component/EventsTrackers/MouseTracker.js +2 -2
- package/lib-cjs/component/NMRium.js +79 -56
- package/lib-cjs/component/SplitPaneWrapper.js +12 -4
- package/lib-cjs/component/assignment/actions/initAssignment.js +17 -17
- package/lib-cjs/component/assignment/actions/removeAssignment.js +2 -2
- package/lib-cjs/component/assignment/actions/toggleAssignment.js +1 -1
- package/lib-cjs/component/assignment/index.js +2 -2
- package/lib-cjs/component/context/LoggerContext.js +47 -0
- package/lib-cjs/component/context/PreferencesContext.js +14 -17
- package/lib-cjs/component/elements/ActiveButton.js +12 -6
- package/lib-cjs/component/elements/Button.js +100 -29
- package/lib-cjs/component/elements/ButtonToolTip.js +1 -1
- package/lib-cjs/component/elements/CheckBoxCell.js +1 -1
- package/lib-cjs/component/elements/ColorInput.js +43 -45
- package/lib-cjs/component/elements/ColumnWrapper.js +12 -0
- package/lib-cjs/component/elements/ContextMenu.js +5 -5
- package/lib-cjs/component/elements/EditableColumn.js +3 -5
- package/lib-cjs/component/elements/GroupPane.js +18 -0
- package/lib-cjs/component/elements/Header.js +21 -0
- package/lib-cjs/component/elements/Input.js +48 -49
- package/lib-cjs/component/elements/InputRange.js +2 -2
- package/lib-cjs/component/elements/IsotopesViewer.js +4 -1
- package/lib-cjs/component/elements/Label.js +11 -6
- package/lib-cjs/component/elements/MenuButton.js +4 -4
- package/lib-cjs/component/elements/Message.js +38 -0
- package/lib-cjs/component/elements/MolecularFormulaInput.js +3 -2
- package/lib-cjs/component/elements/MoleculeSelection.js +9 -7
- package/lib-cjs/component/elements/NextPrev.js +6 -2
- package/lib-cjs/component/elements/NumberInput.js +8 -38
- package/lib-cjs/component/elements/ReactTable/Elements/EmptyDataRow.js +15 -0
- package/lib-cjs/component/elements/ReactTable/Elements/ReactTableHeader.js +24 -4
- package/lib-cjs/component/elements/ReactTable/Elements/ReactTableRow.js +35 -47
- package/lib-cjs/component/elements/ReactTable/ReactTable.js +166 -76
- package/lib-cjs/component/elements/ReactTable/ReactTableFlexLayout.js +18 -8
- package/lib-cjs/component/elements/ReactTable/Style.js +0 -8
- package/lib-cjs/component/elements/ReactTable/utility/addCustomColumn.js +4 -5
- package/lib-cjs/component/elements/ReactTable/utility/useRowSpan.js +3 -7
- package/lib-cjs/component/elements/SVGGroup.js +35 -0
- package/lib-cjs/component/elements/SaveButton.js +1 -0
- package/lib-cjs/component/elements/Select.js +27 -24
- package/lib-cjs/component/elements/Tab/DeleteButton.js +7 -7
- package/lib-cjs/component/elements/Tab/Tab.js +14 -19
- package/lib-cjs/component/elements/Tab/Tabs.js +13 -8
- package/lib-cjs/component/elements/ToolbarMenu.js +6 -6
- package/lib-cjs/component/elements/accordion/Accordion.js +2 -2
- package/lib-cjs/component/elements/accordion/AccordionItem.js +0 -1
- package/lib-cjs/component/elements/{draggble → draggable}/useDraggable.js +1 -3
- package/lib-cjs/component/elements/dropDownButton/DropDownButton.js +13 -7
- package/lib-cjs/component/elements/dropDownButton/DropDownList.js +21 -9
- package/lib-cjs/component/elements/formik/FormikCheckBox.js +1 -1
- package/lib-cjs/component/elements/formik/FormikColorPicker.js +3 -3
- package/lib-cjs/component/elements/formik/FormikErrorsSummary.js +2 -2
- package/lib-cjs/component/elements/formik/FormikInput.js +18 -5
- package/lib-cjs/component/elements/formik/FormikNumberInput.js +13 -3
- package/lib-cjs/component/elements/formik/FormikOnChange.js +15 -9
- package/lib-cjs/component/elements/formik/FormikSelect.js +7 -3
- package/lib-cjs/component/elements/formik/FormikTextarea.js +1 -1
- package/lib-cjs/component/elements/linearAxis/LinearVerticalAxis.js +2 -2
- package/lib-cjs/component/elements/popup/Alert/ProgressIndicator.js +5 -2
- package/lib-cjs/component/elements/popup/Alert/Provider.js +37 -28
- package/lib-cjs/component/elements/popup/Alert/index.js +5 -5
- package/lib-cjs/component/elements/popup/Modal/ConfirmDialog.js +19 -26
- package/lib-cjs/component/elements/popup/Modal/ModalContent.js +3 -1
- package/lib-cjs/component/elements/popup/Modal/Provider.js +64 -68
- package/lib-cjs/component/elements/popup/Modal/index.js +7 -7
- package/lib-cjs/component/elements/resizer/SVGResizer.js +1 -3
- package/lib-cjs/component/elements/resizer/useResizer.js +1 -1
- package/lib-cjs/component/elements/toggle/ToggleButton.js +2 -2
- package/lib-cjs/component/header/ApodizationOptionsPanel.js +15 -34
- package/lib-cjs/component/header/AutoPeakPickingOptionPanel.js +35 -21
- package/lib-cjs/component/header/BaseLineCorrectionPanel.js +14 -47
- package/lib-cjs/component/header/Header.js +79 -43
- package/lib-cjs/component/header/HeaderContainer.js +0 -2
- package/lib-cjs/component/header/LogsHistory.js +113 -0
- package/lib-cjs/component/header/{ManualPhaseCorrectionPanel.js → PhaseCorrectionPanel.js} +28 -26
- package/lib-cjs/component/header/RangesPickingOptionPanel.js +39 -39
- package/lib-cjs/component/header/ZeroFillingOptionsPanel.js +43 -33
- package/lib-cjs/component/header/Zones2DOptionPanel.js +38 -27
- package/lib-cjs/component/highlight/index.js +5 -0
- package/lib-cjs/component/hooks/useActiveSpectra.js +10 -0
- package/lib-cjs/component/hooks/useActiveSpectrum.js +10 -0
- package/lib-cjs/component/hooks/useActiveSpectrumPeaksViewState.js +21 -0
- package/lib-cjs/component/hooks/useActiveSpectrumStyleOptions.js +5 -4
- package/lib-cjs/component/hooks/useCheckExperimentalFeature.js +1 -9
- package/lib-cjs/component/hooks/useCheckToolsVisibility.js +27 -9
- package/lib-cjs/component/hooks/useCombinedRefs.js +2 -2
- package/lib-cjs/component/hooks/useDatumWithSpectraStatistics.js +2 -2
- package/lib-cjs/component/hooks/useExport.js +31 -25
- package/lib-cjs/component/hooks/useFormatNumberByNucleus.js +6 -4
- package/lib-cjs/component/hooks/useIntegralPath.js +6 -4
- package/lib-cjs/component/hooks/usePanelPreferences.js +44 -12
- package/lib-cjs/component/hooks/useSaveSettings.js +104 -0
- package/lib-cjs/component/hooks/useSpectrum.js +3 -3
- package/lib-cjs/component/hooks/useToolsFunctions.js +4 -3
- package/lib-cjs/component/hooks/useVerticalAlign.js +10 -0
- package/lib-cjs/component/loader/DefaultSpinnerComponent.js +3 -4
- package/lib-cjs/component/loader/DropZone.js +61 -17
- package/lib-cjs/component/loader/NoData.js +1 -1
- package/lib-cjs/component/modal/AboutUsModal.js +41 -35
- package/lib-cjs/component/modal/AlignSpectraModal.js +3 -3
- package/lib-cjs/component/modal/CopyClipboardModal.js +5 -4
- package/lib-cjs/component/modal/EditPeakShapeModal.js +2 -2
- package/lib-cjs/component/modal/ExportAsJcampModal.js +67 -0
- package/lib-cjs/component/modal/ImportPublicationStringModal.js +3 -3
- package/lib-cjs/component/modal/LoadJCAMPModal.js +30 -19
- package/lib-cjs/component/modal/ModalStyle.js +0 -13
- package/lib-cjs/component/modal/MultipletAnalysisModal.js +12 -6
- package/lib-cjs/component/modal/PredictSpectraModal.js +13 -11
- package/lib-cjs/component/modal/SaveAsModal.js +15 -13
- package/lib-cjs/component/modal/changeSum/ChangeSumModal.js +7 -3
- package/lib-cjs/component/modal/changeSum/SelectMolecule.js +5 -5
- package/lib-cjs/component/modal/editRange/EditRangeModal.js +9 -7
- package/lib-cjs/component/modal/editRange/forms/components/AddSignalFormTab.js +9 -10
- package/lib-cjs/component/modal/editRange/forms/components/CouplingsTable.js +2 -2
- package/lib-cjs/component/modal/editRange/forms/components/SignalFormInfo.js +1 -1
- package/lib-cjs/component/modal/editRange/forms/validation/EditRangeValidation.js +21 -25
- package/lib-cjs/component/modal/editZone/EditPathLengthFormik.js +12 -17
- package/lib-cjs/component/modal/editZone/EditZoneModal.js +6 -3
- package/lib-cjs/component/modal/editZone/SignalsForm.js +1 -11
- package/lib-cjs/component/modal/editZone/validation/EditZoneValidation.js +12 -15
- package/lib-cjs/component/modal/metaImportation/MetaImportationModal.js +217 -0
- package/lib-cjs/component/modal/metaImportation/index.js +25 -0
- package/lib-cjs/component/modal/metaImportation/utils/mapColumnToSelectItems.js +13 -0
- package/lib-cjs/component/modal/setting/GeneralSettings.js +137 -51
- package/lib-cjs/component/modal/setting/WorkspaceItem.js +89 -52
- package/lib-cjs/component/modal/setting/settings-tabs/DatabasesTabContent.js +82 -0
- package/lib-cjs/component/modal/setting/{DisplayTabContent.js → settings-tabs/DisplayTabContent.js} +29 -31
- package/lib-cjs/component/modal/setting/settings-tabs/FormattingTabContent.js +85 -0
- package/lib-cjs/component/modal/setting/settings-tabs/GeneralTabContent.js +45 -0
- package/lib-cjs/component/modal/setting/settings-tabs/ImportationFiltersTabContent.js +90 -0
- package/lib-cjs/component/modal/setting/settings-tabs/InfoBlockTabContent.js +97 -0
- package/lib-cjs/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.js +44 -0
- package/lib-cjs/component/modal/setting/{ToolsTabContent.js → settings-tabs/ToolsTabContent.js} +25 -22
- package/lib-cjs/component/modal/setting/settingsValidation.js +30 -44
- package/lib-cjs/component/panels/AutomaticAssignment/AutomaticAssignment.js +14 -2
- package/lib-cjs/component/panels/AutomaticAssignment/AutomaticAssignmentTable.js +3 -5
- package/lib-cjs/component/panels/AutomaticAssignment/useAutoAssignments.js +13 -16
- package/lib-cjs/component/panels/InformationPanel.js +82 -57
- package/lib-cjs/component/panels/IntegralsPanel/IntegralPanel.js +3 -3
- package/lib-cjs/component/panels/IntegralsPanel/IntegralTable.js +13 -11
- package/lib-cjs/component/panels/IntegralsPanel/IntegralsPreferences.js +17 -17
- package/lib-cjs/component/panels/MatrixGenerationPanel/ExclusionsZonesTable.js +54 -0
- package/lib-cjs/component/panels/MatrixGenerationPanel/FiltersOptions.js +111 -0
- package/lib-cjs/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.js +113 -21
- package/lib-cjs/component/panels/MoleculesPanel/MoleculePanel.js +5 -5
- package/lib-cjs/component/panels/MoleculesPanel/MoleculePanelHeader.js +58 -25
- package/lib-cjs/component/panels/MoleculesPanel/Utilities.js +6 -6
- package/lib-cjs/component/panels/MoleculesPanel/useAtomAssignment.js +16 -18
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPanel.js +17 -23
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisTable.js +58 -27
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/base/AnalysisCell.js +20 -0
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/base/AnalysisColumnHeader.js +58 -0
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/preferences/AnalysisTablePreferences.js +62 -0
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/preferences/LegendsPreferences.js +86 -0
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/{MultipleAnalysisCodeEditor.js → preferences/MultipleAnalysisCodeEditor.js} +2 -2
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/preferences/index.js +134 -0
- package/lib-cjs/component/panels/PanelNoData.js +28 -0
- package/lib-cjs/component/panels/Panels.js +7 -8
- package/lib-cjs/component/panels/PeaksPanel/PeaksPanel.js +16 -17
- package/lib-cjs/component/panels/PeaksPanel/PeaksPreferences.js +3 -9
- package/lib-cjs/component/panels/PeaksPanel/PeaksTable.js +31 -10
- package/lib-cjs/component/panels/RangesPanel/RangesHeader.js +5 -5
- package/lib-cjs/component/panels/RangesPanel/RangesPanel.js +12 -7
- package/lib-cjs/component/panels/RangesPanel/RangesPreferences.js +6 -9
- package/lib-cjs/component/panels/RangesPanel/RangesTable.js +17 -22
- package/lib-cjs/component/panels/RangesPanel/RangesTableRow.js +15 -10
- package/lib-cjs/component/panels/RangesPanel/TableColumns/AbsoluteColumn.js +2 -2
- package/lib-cjs/component/panels/RangesPanel/TableColumns/ActionsColumn.js +4 -4
- package/lib-cjs/component/panels/RangesPanel/TableColumns/CouplingColumn.js +4 -4
- package/lib-cjs/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.js +37 -39
- package/lib-cjs/component/panels/RangesPanel/TableColumns/RangeColumn.js +3 -4
- package/lib-cjs/component/panels/RangesPanel/TableColumns/RelativeColumn.js +8 -11
- package/lib-cjs/component/panels/RangesPanel/TableColumns/RemoveAssignmentsButton.js +12 -0
- package/lib-cjs/component/panels/RangesPanel/TableColumns/SignalAssignmentsColumn.js +15 -24
- package/lib-cjs/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.js +6 -7
- package/lib-cjs/component/panels/RangesPanel/TableColumns/SignalDeltaHzColumn.js +5 -5
- package/lib-cjs/component/panels/RangesPanel/hooks/useEditRangeModal.js +2 -2
- package/lib-cjs/component/panels/RangesPanel/hooks/useMapRanges.js +8 -8
- package/lib-cjs/component/panels/SpectrumsPanel/SpectraPanelHeader.js +53 -37
- package/lib-cjs/component/panels/SpectrumsPanel/SpectraPreferences.js +77 -0
- package/lib-cjs/component/panels/SpectrumsPanel/SpectraTable.js +235 -0
- package/lib-cjs/component/panels/SpectrumsPanel/SpectrumListPanel.js +12 -5
- package/lib-cjs/component/panels/SpectrumsPanel/SpectrumsTabs.js +39 -105
- package/lib-cjs/component/panels/SpectrumsPanel/base/ColorIndicator.js +14 -8
- package/lib-cjs/component/panels/SpectrumsPanel/base/ShowHideSpectrumButton.js +62 -38
- package/lib-cjs/component/panels/SpectrumsPanel/base/SpectraColumnsManager.js +65 -0
- package/lib-cjs/component/panels/SpectrumsPanel/base/SpectrumName.js +41 -0
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/Spectrum1DSetting.js +2 -2
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/Spectrum2DHistogram.js +1 -1
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/Spectrum2DSetting.js +3 -2
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/SpectrumSetting.js +14 -20
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js +17 -18
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.js +16 -17
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.js +15 -10
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js +20 -21
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/editLink/Confirmation.js +4 -5
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/editLink/EditLinkModal.js +17 -19
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/editLink/EditPathLength.js +0 -2
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.js +12 -13
- package/lib-cjs/component/panels/SummaryPanel/Overview.js +2 -1
- package/lib-cjs/component/panels/SummaryPanel/SetMolecularFormulaModal.js +21 -21
- package/lib-cjs/component/panels/SummaryPanel/SetShiftTolerancesModal.js +17 -21
- package/lib-cjs/component/panels/SummaryPanel/SummaryPanel.js +0 -1
- package/lib-cjs/component/panels/SummaryPanel/utilities/Utilities.js +105 -94
- package/lib-cjs/component/panels/SummaryPanel/utilities/useInView.js +2 -2
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js +1 -1
- package/lib-cjs/component/panels/ZonesPanel/ZonesPanel.js +2 -1
- package/lib-cjs/component/panels/ZonesPanel/ZonesPreferences.js +6 -9
- package/lib-cjs/component/panels/ZonesPanel/ZonesTable.js +30 -33
- package/lib-cjs/component/panels/ZonesPanel/ZonesTableRow.js +5 -4
- package/lib-cjs/component/panels/databasePanel/DatabasePanel.js +91 -17
- package/lib-cjs/component/panels/databasePanel/DatabasePreferences.js +3 -6
- package/lib-cjs/component/panels/databasePanel/DatabaseStructureSearchModal.js +1 -1
- package/lib-cjs/component/panels/databasePanel/DatabaseTable.js +34 -11
- package/lib-cjs/component/panels/extra/preferences/NucleusGroup.js +26 -0
- package/lib-cjs/component/panels/extra/preferences/NucleusPreferences.js +4 -18
- package/lib-cjs/component/panels/extra/preferences/PreferencesContainer.js +3 -3
- package/lib-cjs/component/panels/extra/utilities/MultiplicityUtilities.js +5 -3
- package/lib-cjs/component/panels/filtersPanel/FilterPanel.js +28 -61
- package/lib-cjs/component/panels/filtersPanel/FiltersTable.js +81 -44
- package/lib-cjs/component/panels/header/DefaultPanelHeader.js +6 -5
- package/lib-cjs/component/panels/header/PreferencesHeader.js +3 -2
- package/lib-cjs/component/panels/header/SpectraAutomaticPickingButton.js +3 -3
- package/lib-cjs/component/panels/predictionPanel/PredictionOptions.js +3 -3
- package/lib-cjs/component/panels/predictionPanel/PredictionPanel.js +2 -2
- package/lib-cjs/component/reducer/IgnoreActions.js +4 -8
- package/lib-cjs/component/reducer/Reducer.js +46 -88
- package/lib-cjs/component/reducer/actions/AssignmentsActions.js +2 -4
- package/lib-cjs/component/reducer/actions/CorrelationsActions.js +4 -4
- package/lib-cjs/component/reducer/actions/DatabaseActions.js +9 -10
- package/lib-cjs/component/reducer/actions/DomainActions.js +83 -78
- package/lib-cjs/component/reducer/actions/FiltersActions.js +414 -298
- package/lib-cjs/component/reducer/actions/HistoryActions.js +5 -5
- package/lib-cjs/component/reducer/actions/IntegralsActions.js +3 -2
- package/lib-cjs/component/reducer/actions/LoadActions.js +95 -64
- package/lib-cjs/component/reducer/actions/MoleculeActions.js +44 -26
- package/lib-cjs/component/reducer/actions/PeaksActions.js +25 -10
- package/lib-cjs/component/reducer/actions/PreferencesActions.js +17 -38
- package/lib-cjs/component/reducer/actions/RangesActions.js +28 -21
- package/lib-cjs/component/reducer/actions/SpectraAnalysisAction.js +21 -62
- package/lib-cjs/component/reducer/actions/SpectrumsActions.js +239 -69
- package/lib-cjs/component/reducer/actions/ToolsActions.js +146 -100
- package/lib-cjs/component/reducer/actions/ZonesActions.js +16 -10
- package/lib-cjs/component/reducer/core/Constants.js +1 -2
- package/lib-cjs/component/reducer/helper/GetClosestNumber.js +2 -1
- package/lib-cjs/component/reducer/helper/Zoom1DManager.js +12 -10
- package/lib-cjs/component/reducer/helper/ZoomHistoryManager.js +6 -3
- package/lib-cjs/component/reducer/helper/getActiveSpectra.js +8 -0
- package/lib-cjs/component/reducer/helper/getActiveSpectraAsObject.js +19 -0
- package/lib-cjs/component/reducer/helper/getActiveSpectrum.js +5 -1
- package/lib-cjs/component/reducer/helper/getRange.js +10 -5
- package/lib-cjs/component/reducer/helper/getSpectrum.js +5 -6
- package/lib-cjs/component/reducer/helper/getStrongestPeak.js +4 -4
- package/lib-cjs/component/reducer/helper/getVerticalAlign.js +8 -0
- package/lib-cjs/component/reducer/preferences/actions/addWorkspace.js +14 -7
- package/lib-cjs/component/reducer/preferences/actions/analyzeSpectra.js +78 -0
- package/lib-cjs/component/reducer/preferences/actions/applyGeneralPreferences.js +8 -0
- package/lib-cjs/component/reducer/preferences/actions/initPreferences.js +48 -50
- package/lib-cjs/component/reducer/preferences/actions/matrixGeneration.js +47 -0
- package/lib-cjs/component/reducer/preferences/actions/removeWorkspace.js +5 -12
- package/lib-cjs/component/reducer/preferences/actions/setActiveWorkspace.js +14 -0
- package/lib-cjs/component/reducer/preferences/actions/setPanelsPreferences.js +11 -6
- package/lib-cjs/component/reducer/preferences/actions/setPreferences.js +19 -22
- package/lib-cjs/component/reducer/preferences/actions/setVerticalSplitterPosition.js +10 -0
- package/lib-cjs/component/reducer/preferences/actions/setWorkspace.js +14 -4
- package/lib-cjs/component/reducer/preferences/panelsPreferencesDefaultValues.js +63 -1
- package/lib-cjs/component/reducer/preferences/preferencesReducer.js +54 -3
- package/lib-cjs/component/reducer/preferences/utilities/getPreferencesByWorkspace.js +2 -3
- package/lib-cjs/component/reducer/preferences/utilities/initWorkspace.js +12 -0
- package/lib-cjs/component/reducer/preferences/utilities/isReadOnlyWorkspace.js +7 -0
- package/lib-cjs/component/reducer/preferences/utilities/mapNucleiFormatting.js +7 -5
- package/lib-cjs/component/reducer/preferences/utilities/mapWorkspaces.js +25 -0
- package/lib-cjs/component/reducer/scaleReducer.js +8 -0
- package/lib-cjs/component/reducer/types/Types.js +12 -20
- package/lib-cjs/component/toolbar/BasicToolBar.js +29 -29
- package/lib-cjs/component/toolbar/FunctionToolBar.js +6 -41
- package/lib-cjs/component/toolbar/ToolBar.js +2 -2
- package/lib-cjs/component/toolbar/ToolTypes.js +172 -30
- package/lib-cjs/component/utility/Evaluate.js +2 -2
- package/lib-cjs/component/utility/FileUtility.js +5 -63
- package/lib-cjs/component/utility/GroupByInfoKey.js +11 -13
- package/lib-cjs/component/utility/PathBuilder.js +1 -1
- package/lib-cjs/component/utility/PreferencesHelper.js +2 -3
- package/lib-cjs/component/utility/convertPathArrayToString.js +7 -0
- package/lib-cjs/component/utility/export.js +48 -55
- package/lib-cjs/component/utility/formatNumber.js +6 -4
- package/lib-cjs/component/utility/getSpectraObjectPaths.js +26 -0
- package/lib-cjs/component/utility/jpathToArray.js +27 -0
- package/lib-cjs/component/utility/parseColor.js +19 -0
- package/lib-cjs/component/workspaces/assignment.js +36 -0
- package/lib-cjs/component/workspaces/basic.js +5 -3
- package/lib-cjs/component/workspaces/embedded.js +3 -2
- package/lib-cjs/component/workspaces/exercise.js +1 -1
- package/lib-cjs/component/workspaces/index.js +9 -1
- package/lib-cjs/component/workspaces/prediction.js +2 -1
- package/lib-cjs/component/workspaces/process1D.js +5 -2
- package/lib-cjs/component/workspaces/workspaceDefaultProperties.js +129 -2
- package/lib-cjs/data/Filters.js +13 -33
- package/lib-cjs/data/FiltersManager.js +66 -30
- package/lib-cjs/data/PredictionManager.js +21 -20
- package/lib-cjs/data/SpectraManager.js +86 -59
- package/lib-cjs/data/constants/Multiplets.js +1 -0
- package/lib-cjs/data/data1d/Spectrum1D/SumManager.js +1 -1
- package/lib-cjs/data/data1d/Spectrum1D/cloneDatum1D.js +8 -0
- package/lib-cjs/data/data1d/Spectrum1D/generateJGraphData.js +1 -1
- package/lib-cjs/data/data1d/Spectrum1D/get1DColor.js +18 -0
- package/lib-cjs/data/data1d/Spectrum1D/get1DDataXY.js +3 -3
- package/lib-cjs/data/data1d/Spectrum1D/{shift/getShiftX.js → getShiftX.js} +5 -5
- package/lib-cjs/data/data1d/Spectrum1D/getSpectrumErrorValue.js +2 -2
- package/lib-cjs/data/data1d/Spectrum1D/index.js +25 -27
- package/lib-cjs/data/data1d/Spectrum1D/initiateDatum1D.js +48 -61
- package/lib-cjs/data/data1d/Spectrum1D/integrals/changeIntegralsRelative.js +12 -11
- package/lib-cjs/data/data1d/Spectrum1D/integrals/initiateIntegrals.js +5 -2
- package/lib-cjs/data/data1d/Spectrum1D/integrals/mapIntegrals.js +40 -0
- package/lib-cjs/data/data1d/Spectrum1D/integrals/updateIntegrals.js +10 -0
- package/lib-cjs/data/data1d/Spectrum1D/integrals/updateIntegralsRelativeValues.js +2 -2
- package/lib-cjs/data/data1d/Spectrum1D/integrals/updateRelatives.js +9 -11
- package/lib-cjs/data/data1d/Spectrum1D/peaks/autoPeakPicking.js +5 -6
- package/lib-cjs/data/data1d/Spectrum1D/peaks/initiatePeaks.js +2 -2
- package/lib-cjs/data/data1d/Spectrum1D/peaks/lookupPeak.js +1 -1
- package/lib-cjs/data/data1d/Spectrum1D/peaks/mapPeaks.js +26 -9
- package/lib-cjs/data/data1d/Spectrum1D/peaks/optimizePeaks.js +9 -7
- package/lib-cjs/data/data1d/Spectrum1D/peaks/updatePeaks.js +11 -0
- package/lib-cjs/data/data1d/Spectrum1D/ranges/addRange.js +20 -9
- package/lib-cjs/data/data1d/Spectrum1D/ranges/autoRangesDetection.js +4 -13
- package/lib-cjs/data/data1d/Spectrum1D/ranges/changeRange.js +30 -7
- package/lib-cjs/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.js +9 -9
- package/lib-cjs/data/data1d/Spectrum1D/ranges/changeRangeSignal.js +6 -5
- package/lib-cjs/data/data1d/Spectrum1D/ranges/detectRange.js +4 -4
- package/lib-cjs/data/data1d/Spectrum1D/ranges/detectRanges.js +6 -6
- package/lib-cjs/data/data1d/Spectrum1D/ranges/detectSignal.js +20 -5
- package/lib-cjs/data/data1d/Spectrum1D/ranges/generateSpectrumFromRanges.js +3 -4
- package/lib-cjs/data/data1d/Spectrum1D/ranges/initiateRanges.js +2 -2
- package/lib-cjs/data/data1d/Spectrum1D/ranges/mapRanges.js +56 -21
- package/lib-cjs/data/data1d/Spectrum1D/ranges/updateRanges.js +13 -0
- package/lib-cjs/data/data1d/Spectrum1D/ranges/updateRangesRelativeValues.js +2 -2
- package/lib-cjs/data/data1d/database.js +50 -31
- package/lib-cjs/data/data1d/filter1d/apodization.js +27 -9
- package/lib-cjs/data/data1d/filter1d/baselineCorrection.js +5 -1
- package/lib-cjs/data/data1d/filter1d/digitalFilter.js +23 -15
- package/lib-cjs/data/data1d/filter1d/equallySpaced.js +10 -10
- package/lib-cjs/data/data1d/filter1d/exclusionZones.js +14 -10
- package/lib-cjs/data/data1d/filter1d/fft.js +41 -26
- package/lib-cjs/data/data1d/filter1d/phaseCorrection.js +46 -18
- package/lib-cjs/data/data1d/filter1d/shiftX.js +13 -6
- package/lib-cjs/data/data1d/filter1d/signalProcessing.js +95 -0
- package/lib-cjs/data/data1d/filter1d/utils/padDataToNextPowerOfTwo.js +6 -6
- package/lib-cjs/data/data1d/filter1d/zeroFilling.js +32 -23
- package/lib-cjs/data/data1d/multipleSpectraAnalysis.js +226 -0
- package/lib-cjs/data/data2d/Processing2D.js +7 -18
- package/lib-cjs/data/data2d/Spectrum2D/cloneDatum2D.js +13 -0
- package/lib-cjs/data/data2d/Spectrum2D/contours.js +6 -5
- package/lib-cjs/data/data2d/Spectrum2D/get2DColor.js +21 -0
- package/lib-cjs/data/data2d/Spectrum2D/get2DSpectrumErrorValue.js +13 -0
- package/lib-cjs/data/data2d/Spectrum2D/getMissingProjection.js +12 -12
- package/lib-cjs/data/data2d/Spectrum2D/{shift/getShift.js → getShift.js} +8 -9
- package/lib-cjs/data/data2d/Spectrum2D/getSlice.js +17 -14
- package/lib-cjs/data/data2d/Spectrum2D/index.js +11 -13
- package/lib-cjs/data/data2d/Spectrum2D/initiateDatum2D.js +19 -31
- package/lib-cjs/data/data2d/Spectrum2D/zones/changeZoneSignal.js +4 -4
- package/lib-cjs/data/data2d/Spectrum2D/zones/detectZones.js +2 -44
- package/lib-cjs/data/data2d/Spectrum2D/zones/detectZonesManual.js +2 -29
- package/lib-cjs/data/data2d/Spectrum2D/zones/getDetectionZones.js +7 -7
- package/lib-cjs/data/data2d/Spectrum2D/zones/initiateZones.js +21 -0
- package/lib-cjs/data/data2d/Spectrum2D/zones/isZoneExists.js +19 -0
- package/lib-cjs/data/data2d/Spectrum2D/zones/mapZones.js +67 -0
- package/lib-cjs/data/data2d/Spectrum2D/zones/updateZones.js +11 -0
- package/lib-cjs/data/data2d/filter2d/shiftX.js +13 -6
- package/lib-cjs/data/data2d/filter2d/shiftY.js +12 -5
- package/lib-cjs/data/getDefaultMatrixFilters.js +27 -0
- package/lib-cjs/data/matrixGeneration.js +128 -0
- package/lib-cjs/data/molecules/Molecule.js +7 -1
- package/lib-cjs/data/molecules/MoleculeManager.js +3 -3
- package/lib-cjs/data/parseMeta/index.js +14 -0
- package/lib-cjs/data/parseMeta/isMetaFile.js +11 -0
- package/lib-cjs/data/parseMeta/linkMetaWithSpectra.js +96 -0
- package/lib-cjs/data/parseMeta/mapErrors.js +11 -0
- package/lib-cjs/data/parseMeta/parseMetaFile.js +16 -0
- package/lib-cjs/data/parseMeta/prepareKey.js +10 -0
- package/lib-cjs/data/utilities/RangeUtilities.js +22 -25
- package/lib-cjs/data/utilities/ZoneUtilities.js +23 -19
- package/lib-cjs/data/utilities/calculateSanPlot.js +0 -1
- package/lib-cjs/data/utilities/checkModifierKeyActivated.js +0 -4
- package/lib-cjs/data/utilities/convertSpectraListToObject.js +10 -0
- package/lib-cjs/data/utilities/generateChar.js +8 -6
- package/lib-cjs/data/utilities/{getColor.js → generateColor.js} +9 -9
- package/lib-cjs/data/utilities/getAtom.js +1 -1
- package/lib-cjs/data/utilities/getAtomsFromMF.js +2 -2
- package/lib-cjs/data/utilities/getSum.js +6 -3
- package/lib-cjs/versionInfo.js +1 -1
- package/package.json +62 -47
- package/lib/component/1d/SpectraTracker.d.ts +0 -3
- package/lib/component/1d/SpectraTracker.js +0 -66
- package/lib/component/1d/utilities/getVerticalShift.d.ts +0 -5
- package/lib/component/1d/utilities/getVerticalShift.js +0 -9
- package/lib/component/2d/Contours.js +0 -83
- package/lib/component/elements/ReactTable/ReactTableExpandable.d.ts +0 -11
- package/lib/component/elements/ReactTable/ReactTableExpandable.js +0 -27
- package/lib/component/elements/formik/FormikForm.d.ts +0 -10
- package/lib/component/elements/formik/FormikForm.js +0 -8
- package/lib/component/elements/popup/helpers.d.ts +0 -1
- package/lib/component/elements/popup/helpers.js +0 -9
- package/lib/component/header/ManualPhaseCorrectionPanel.d.ts +0 -2
- package/lib/component/modal/ExportAsMatrixModal.d.ts +0 -5
- package/lib/component/modal/ExportAsMatrixModal.js +0 -36
- package/lib/component/modal/MultipleSpectraFiltersModal/EquallySpacedFilter.d.ts +0 -7
- package/lib/component/modal/MultipleSpectraFiltersModal/EquallySpacedFilter.js +0 -15
- package/lib/component/modal/MultipleSpectraFiltersModal/FromToFilter.d.ts +0 -7
- package/lib/component/modal/MultipleSpectraFiltersModal/FromToFilter.js +0 -11
- package/lib/component/modal/MultipleSpectraFiltersModal/index.d.ts +0 -6
- package/lib/component/modal/MultipleSpectraFiltersModal/index.js +0 -119
- package/lib/component/modal/setting/DatabasesTabContent.d.ts +0 -7
- package/lib/component/modal/setting/DatabasesTabContent.js +0 -73
- package/lib/component/modal/setting/FormattingTabContent.js +0 -76
- package/lib/component/modal/setting/GeneralTabContent.js +0 -7
- package/lib/component/panels/MultipleSpectraAnalysisPanel/ColumnHeader.d.ts +0 -11
- package/lib/component/panels/MultipleSpectraAnalysisPanel/ColumnHeader.js +0 -59
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPreferences.d.ts +0 -6
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPreferences.js +0 -138
- package/lib/component/panels/SpectrumsPanel/SpectrumListItem.d.ts +0 -13
- package/lib/component/panels/SpectrumsPanel/SpectrumListItem.js +0 -67
- package/lib/component/panels/SpectrumsPanel/base/ShowHideMarkersButton.d.ts +0 -18
- package/lib/component/panels/SpectrumsPanel/base/ShowHideMarkersButton.js +0 -16
- package/lib/component/reducer/helper/getActiveSpectrumOrFail.d.ts +0 -3
- package/lib/component/reducer/helper/getActiveSpectrumOrFail.js +0 -6
- package/lib/component/tool/FloatMoleculeStructures/ActionsButton.js +0 -7
- package/lib/component/tool/FloatMoleculeStructures/DraggableStructure.d.ts +0 -20
- package/lib/component/tool/FloatMoleculeStructures/DraggableStructure.js +0 -59
- package/lib/data/data1d/MultipleAnalysis.d.ts +0 -53
- package/lib/data/data1d/MultipleAnalysis.js +0 -209
- package/lib/data/data1d/Spectrum1D/shift/getShiftX.d.ts +0 -2
- package/lib/data/data1d/Spectrum1D/shift/getShiftX.js +0 -6
- package/lib/data/data1d/Spectrum1D/shift/internal/updateIntegralXShift.d.ts +0 -2
- package/lib/data/data1d/Spectrum1D/shift/internal/updateIntegralXShift.js +0 -7
- package/lib/data/data1d/Spectrum1D/shift/internal/updatePeaksXShift.d.ts +0 -2
- package/lib/data/data1d/Spectrum1D/shift/internal/updatePeaksXShift.js +0 -12
- package/lib/data/data1d/Spectrum1D/shift/internal/updateRangesXShift.d.ts +0 -2
- package/lib/data/data1d/Spectrum1D/shift/internal/updateRangesXShift.js +0 -12
- package/lib/data/data1d/Spectrum1D/shift/updateXShift.d.ts +0 -2
- package/lib/data/data1d/Spectrum1D/shift/updateXShift.js +0 -10
- package/lib/data/data1d/Spectrum1D/toJSON.d.ts +0 -28
- package/lib/data/data1d/Spectrum1D/toJSON.js +0 -28
- package/lib/data/data1d/filter1d/autoPhaseCorrection.d.ts +0 -13
- package/lib/data/data1d/filter1d/autoPhaseCorrection.js +0 -40
- package/lib/data/data1d/filter1d/centerMean.d.ts +0 -13
- package/lib/data/data1d/filter1d/centerMean.js +0 -37
- package/lib/data/data1d/filter1d/fromTo.d.ts +0 -13
- package/lib/data/data1d/filter1d/fromTo.js +0 -31
- package/lib/data/data1d/filter1d/pareto.d.ts +0 -13
- package/lib/data/data1d/filter1d/pareto.js +0 -29
- package/lib/data/data1d/filter1d/standardDeviation.d.ts +0 -13
- package/lib/data/data1d/filter1d/standardDeviation.js +0 -37
- package/lib/data/data1d/filter1d/zeroFillingAndApodization.d.ts +0 -9
- package/lib/data/data1d/filter1d/zeroFillingAndApodization.js +0 -24
- package/lib/data/data2d/Spectrum2D/shift/getShift.d.ts +0 -5
- package/lib/data/data2d/Spectrum2D/shift/getShift.js +0 -16
- package/lib/data/data2d/Spectrum2D/shift/updateShift.d.ts +0 -2
- package/lib/data/data2d/Spectrum2D/shift/updateShift.js +0 -18
- package/lib/data/data2d/Spectrum2D/toJSON.d.ts +0 -24
- package/lib/data/data2d/Spectrum2D/toJSON.js +0 -26
- package/lib/data/types/common/Source.d.ts +0 -6
- package/lib/data/types/data1d/Data1D.d.ts +0 -5
- package/lib/data/types/data1d/Datum1D.d.ts +0 -22
- package/lib/data/types/data1d/Display1D.d.ts +0 -7
- package/lib/data/types/data1d/Integral.d.ts +0 -10
- package/lib/data/types/data1d/Integrals.d.ts +0 -6
- package/lib/data/types/data1d/Integrals.js +0 -1
- package/lib/data/types/data1d/Peak.d.ts +0 -5
- package/lib/data/types/data1d/Peak.js +0 -1
- package/lib/data/types/data1d/Peaks.d.ts +0 -5
- package/lib/data/types/data1d/Peaks.js +0 -1
- package/lib/data/types/data1d/Range.d.ts +0 -11
- package/lib/data/types/data1d/Range.js +0 -1
- package/lib/data/types/data1d/Ranges.d.ts +0 -6
- package/lib/data/types/data1d/Ranges.js +0 -1
- package/lib/data/types/data1d/Signal1D.d.ts +0 -5
- package/lib/data/types/data1d/Signal1D.js +0 -1
- package/lib/data/types/data1d/SumOptions.d.ts +0 -7
- package/lib/data/types/data1d/SumOptions.js +0 -1
- package/lib/data/types/data2d/Data2D.d.ts +0 -9
- package/lib/data/types/data2d/Data2D.js +0 -1
- package/lib/data/types/data2d/Datum2D.d.ts +0 -18
- package/lib/data/types/data2d/Datum2D.js +0 -1
- package/lib/data/types/data2d/Display2D.d.ts +0 -10
- package/lib/data/types/data2d/Display2D.js +0 -1
- package/lib/data/types/data2d/Info2D.d.ts +0 -8
- package/lib/data/types/data2d/Info2D.js +0 -1
- package/lib/data/types/data2d/Signal2D.d.ts +0 -7
- package/lib/data/types/data2d/Signal2D.js +0 -1
- package/lib/data/types/data2d/Signal2DAxisData.d.ts +0 -4
- package/lib/data/types/data2d/Signal2DAxisData.js +0 -1
- package/lib/data/types/data2d/Zone.d.ts +0 -9
- package/lib/data/types/data2d/Zone.js +0 -1
- package/lib/data/types/data2d/Zone2DAxisData.d.ts +0 -6
- package/lib/data/types/data2d/Zone2DAxisData.js +0 -1
- package/lib/data/types/data2d/Zones.d.ts +0 -7
- package/lib/data/types/data2d/Zones.js +0 -1
- package/lib/data/utilities/getColor.d.ts +0 -9
- package/lib/types/Preferences.d.ts +0 -5
- package/lib/types/Preferences.js +0 -1
- package/lib-cjs/component/1d/SpectraTracker.js +0 -71
- package/lib-cjs/component/1d/utilities/getVerticalShift.js +0 -12
- package/lib-cjs/component/elements/ReactTable/ReactTableExpandable.js +0 -32
- package/lib-cjs/component/elements/formik/FormikForm.js +0 -10
- package/lib-cjs/component/elements/popup/helpers.js +0 -13
- package/lib-cjs/component/modal/ExportAsMatrixModal.js +0 -41
- package/lib-cjs/component/modal/MultipleSpectraFiltersModal/EquallySpacedFilter.js +0 -20
- package/lib-cjs/component/modal/MultipleSpectraFiltersModal/FromToFilter.js +0 -16
- package/lib-cjs/component/modal/MultipleSpectraFiltersModal/index.js +0 -147
- package/lib-cjs/component/modal/setting/DatabasesTabContent.js +0 -78
- package/lib-cjs/component/modal/setting/FormattingTabContent.js +0 -81
- package/lib-cjs/component/modal/setting/GeneralTabContent.js +0 -12
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/ColumnHeader.js +0 -64
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPreferences.js +0 -166
- package/lib-cjs/component/panels/SpectrumsPanel/SpectrumListItem.js +0 -72
- package/lib-cjs/component/panels/SpectrumsPanel/base/ShowHideMarkersButton.js +0 -19
- package/lib-cjs/component/reducer/helper/getActiveSpectrumOrFail.js +0 -10
- package/lib-cjs/component/tool/FloatMoleculeStructures/ActionsButton.js +0 -13
- package/lib-cjs/component/tool/FloatMoleculeStructures/DraggableStructure.js +0 -66
- package/lib-cjs/data/data1d/MultipleAnalysis.js +0 -223
- package/lib-cjs/data/data1d/Spectrum1D/shift/internal/updateIntegralXShift.js +0 -11
- package/lib-cjs/data/data1d/Spectrum1D/shift/internal/updatePeaksXShift.js +0 -16
- package/lib-cjs/data/data1d/Spectrum1D/shift/internal/updateRangesXShift.js +0 -16
- package/lib-cjs/data/data1d/Spectrum1D/shift/updateXShift.js +0 -14
- package/lib-cjs/data/data1d/Spectrum1D/toJSON.js +0 -32
- package/lib-cjs/data/data1d/filter1d/autoPhaseCorrection.js +0 -46
- package/lib-cjs/data/data1d/filter1d/centerMean.js +0 -43
- package/lib-cjs/data/data1d/filter1d/fromTo.js +0 -37
- package/lib-cjs/data/data1d/filter1d/pareto.js +0 -35
- package/lib-cjs/data/data1d/filter1d/standardDeviation.js +0 -43
- package/lib-cjs/data/data1d/filter1d/zeroFillingAndApodization.js +0 -30
- package/lib-cjs/data/data2d/Spectrum2D/shift/updateShift.js +0 -22
- package/lib-cjs/data/data2d/Spectrum2D/toJSON.js +0 -30
- package/lib-cjs/data/types/data1d/Integrals.js +0 -2
- package/lib-cjs/data/types/data1d/Peak.js +0 -2
- package/lib-cjs/data/types/data1d/Peaks.js +0 -2
- package/lib-cjs/data/types/data1d/Range.js +0 -2
- package/lib-cjs/data/types/data1d/Ranges.js +0 -2
- package/lib-cjs/data/types/data1d/Signal1D.js +0 -2
- package/lib-cjs/data/types/data1d/SumOptions.js +0 -2
- package/lib-cjs/data/types/data2d/Data2D.js +0 -2
- package/lib-cjs/data/types/data2d/Datum2D.js +0 -2
- package/lib-cjs/data/types/data2d/Display2D.js +0 -2
- package/lib-cjs/data/types/data2d/Info2D.js +0 -2
- package/lib-cjs/data/types/data2d/Signal2D.js +0 -2
- package/lib-cjs/data/types/data2d/Signal2DAxisData.js +0 -2
- package/lib-cjs/data/types/data2d/Zone.js +0 -2
- package/lib-cjs/data/types/data2d/Zone2DAxisData.js +0 -2
- package/lib-cjs/data/types/data2d/Zones.js +0 -2
- package/lib-cjs/types/Preferences.js +0 -2
- /package/lib/component/{tool → 1d-2d/components}/FloatMoleculeStructures/ActionsButton.d.ts +0 -0
- /package/lib/component/{tool → 1d-2d/tools}/BrushX.d.ts +0 -0
- /package/lib/component/{tool → 1d-2d/tools}/BrushXY.d.ts +0 -0
- /package/lib/component/{tool → 1d-2d/tools}/CrossLinePointer.d.ts +0 -0
- /package/lib/component/2d/{tools/slicing/SlicingView.d.ts → SlicingView.d.ts} +0 -0
- /package/lib/component/2d/{Contours.d.ts → ft/Contours.d.ts} +0 -0
- /package/lib/component/2d/{tools/slicing → utilities}/SliceScale.d.ts +0 -0
- /package/lib/component/2d/{tools/slicing → utilities}/SliceScale.js +0 -0
- /package/lib/component/elements/{draggble → draggable}/SVGDraggable.js +0 -0
- /package/lib/component/modal/setting/{DisplayTabContent.d.ts → settings-tabs/DisplayTabContent.d.ts} +0 -0
- /package/lib/component/modal/setting/{FormattingTabContent.d.ts → settings-tabs/FormattingTabContent.d.ts} +0 -0
- /package/lib/component/modal/setting/{GeneralTabContent.d.ts → settings-tabs/GeneralTabContent.d.ts} +0 -0
- /package/lib/component/modal/setting/{ToolsTabContent.d.ts → settings-tabs/ToolsTabContent.d.ts} +0 -0
- /package/lib/component/panels/MultipleSpectraAnalysisPanel/{MultipleAnalysisCodeEditor.d.ts → preferences/MultipleAnalysisCodeEditor.d.ts} +0 -0
- /package/lib/data/types/common/{Source.js → Info.js} +0 -0
- /package/lib/data/types/{data1d/Data1D.js → common/MapOptions.js} +0 -0
- /package/lib/data/types/{data1d/Datum1D.js → common/Nucleus.js} +0 -0
- /package/lib/data/types/data1d/{Display1D.js → ComplexData1D.js} +0 -0
- /package/lib/data/types/data1d/{Info1D.js → MatrixOptions.js} +0 -0
- /package/lib/data/types/{data1d/Integral.js → view-state/PeaksViewState.js} +0 -0
- /package/lib-cjs/component/2d/{tools/slicing → utilities}/SliceScale.js +0 -0
- /package/lib-cjs/component/elements/{draggble → draggable}/SVGDraggable.js +0 -0
- /package/lib-cjs/data/types/common/{Source.js → Info.js} +0 -0
- /package/lib-cjs/data/types/{data1d/Data1D.js → common/MapOptions.js} +0 -0
- /package/lib-cjs/data/types/{data1d/Datum1D.js → common/Nucleus.js} +0 -0
- /package/lib-cjs/data/types/data1d/{Display1D.js → ComplexData1D.js} +0 -0
- /package/lib-cjs/data/types/data1d/{Info1D.js → MatrixOptions.js} +0 -0
- /package/lib-cjs/data/types/{data1d/Integral.js → view-state/PeaksViewState.js} +0 -0
|
@@ -15,9 +15,25 @@ const modalContainer = (0, react_1.css) `
|
|
|
15
15
|
width: 400px;
|
|
16
16
|
height: 550px;
|
|
17
17
|
padding: 5px;
|
|
18
|
+
|
|
19
|
+
button {
|
|
20
|
+
flex: 2;
|
|
21
|
+
padding: 5px;
|
|
22
|
+
border: 1px solid gray;
|
|
23
|
+
border-radius: 5px;
|
|
24
|
+
height: 30px;
|
|
25
|
+
margin: 0 auto;
|
|
26
|
+
margin-top: 15px;
|
|
27
|
+
display: block;
|
|
28
|
+
width: 20%;
|
|
29
|
+
color: white;
|
|
30
|
+
background-color: gray;
|
|
31
|
+
}
|
|
32
|
+
|
|
18
33
|
button:focus {
|
|
19
34
|
outline: none;
|
|
20
35
|
}
|
|
36
|
+
|
|
21
37
|
.header {
|
|
22
38
|
height: 24px;
|
|
23
39
|
border-bottom: 1px solid #f0f0f0;
|
|
@@ -29,51 +45,35 @@ const modalContainer = (0, react_1.css) `
|
|
|
29
45
|
margin: 2px;
|
|
30
46
|
background-color: transparent;
|
|
31
47
|
border: none;
|
|
48
|
+
|
|
32
49
|
svg {
|
|
33
50
|
height: 16px;
|
|
34
51
|
}
|
|
35
52
|
}
|
|
36
53
|
}
|
|
37
54
|
|
|
38
|
-
button {
|
|
39
|
-
flex: 2;
|
|
40
|
-
padding: 5px;
|
|
41
|
-
border: 1px solid gray;
|
|
42
|
-
border-radius: 5px;
|
|
43
|
-
height: 30px;
|
|
44
|
-
margin: 0 auto;
|
|
45
|
-
margin-top: 15px;
|
|
46
|
-
display: block;
|
|
47
|
-
width: 20%;
|
|
48
|
-
|
|
49
|
-
color: white;
|
|
50
|
-
background-color: gray;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
55
|
.info {
|
|
54
56
|
margin-top: 0;
|
|
55
57
|
margin-bottom: 10px;
|
|
56
|
-
padding:
|
|
58
|
+
padding: 0 10px;
|
|
57
59
|
width: 100%;
|
|
58
|
-
|
|
59
60
|
text-align: center;
|
|
60
61
|
}
|
|
61
62
|
|
|
62
63
|
.optional {
|
|
63
64
|
margin-top: 20px;
|
|
64
65
|
margin-bottom: 5px;
|
|
65
|
-
padding:
|
|
66
|
-
|
|
66
|
+
padding: 0 10px;
|
|
67
67
|
text-align: center;
|
|
68
68
|
font-size: 18px;
|
|
69
69
|
font-weight: bold;
|
|
70
70
|
}
|
|
71
|
+
|
|
71
72
|
.optional2 {
|
|
72
73
|
margin-top: 5px;
|
|
73
74
|
margin-bottom: 25px;
|
|
74
|
-
padding:
|
|
75
|
+
padding: 0 10px;
|
|
75
76
|
width: 100%;
|
|
76
|
-
|
|
77
77
|
text-align: center;
|
|
78
78
|
}
|
|
79
79
|
`;
|
|
@@ -14,6 +14,20 @@ const modalContainer = (0, react_1.css) `
|
|
|
14
14
|
padding: 5px;
|
|
15
15
|
text-align: center;
|
|
16
16
|
|
|
17
|
+
button {
|
|
18
|
+
flex: 2;
|
|
19
|
+
padding: 5px;
|
|
20
|
+
border: 1px solid gray;
|
|
21
|
+
border-radius: 5px;
|
|
22
|
+
height: 30px;
|
|
23
|
+
margin: 0 auto;
|
|
24
|
+
margin-top: 15px;
|
|
25
|
+
display: block;
|
|
26
|
+
width: 20%;
|
|
27
|
+
color: white;
|
|
28
|
+
background-color: gray;
|
|
29
|
+
}
|
|
30
|
+
|
|
17
31
|
button:focus {
|
|
18
32
|
outline: none;
|
|
19
33
|
}
|
|
@@ -36,34 +50,20 @@ const modalContainer = (0, react_1.css) `
|
|
|
36
50
|
margin: 2px;
|
|
37
51
|
background-color: transparent;
|
|
38
52
|
border: none;
|
|
53
|
+
|
|
39
54
|
svg {
|
|
40
55
|
height: 16px;
|
|
41
56
|
}
|
|
42
57
|
}
|
|
43
58
|
}
|
|
44
59
|
|
|
45
|
-
button {
|
|
46
|
-
flex: 2;
|
|
47
|
-
padding: 5px;
|
|
48
|
-
border: 1px solid gray;
|
|
49
|
-
border-radius: 5px;
|
|
50
|
-
height: 30px;
|
|
51
|
-
margin: 0 auto;
|
|
52
|
-
margin-top: 15px;
|
|
53
|
-
display: block;
|
|
54
|
-
width: 20%;
|
|
55
|
-
|
|
56
|
-
color: white;
|
|
57
|
-
background-color: gray;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
60
|
table {
|
|
61
61
|
margin-top: 10px;
|
|
62
62
|
width: 100%;
|
|
63
63
|
|
|
64
64
|
input::-webkit-outer-spin-button,
|
|
65
65
|
input::-webkit-inner-spin-button {
|
|
66
|
-
|
|
66
|
+
appearance: none;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
input {
|
|
@@ -80,11 +80,7 @@ function SetShiftToleranceModal({ onClose, onSave, previousTolerance, }) {
|
|
|
80
80
|
(0, react_2.useEffect)(() => {
|
|
81
81
|
if (previousTolerance) {
|
|
82
82
|
setTolerance(previousTolerance);
|
|
83
|
-
|
|
84
|
-
Object.keys(previousTolerance).forEach((atomType) => {
|
|
85
|
-
_isValid[atomType] = true;
|
|
86
|
-
});
|
|
87
|
-
setIsValid(_isValid);
|
|
83
|
+
setIsValid(Object.fromEntries(Object.keys(previousTolerance).map((atomType) => [atomType, true])));
|
|
88
84
|
}
|
|
89
85
|
else {
|
|
90
86
|
setTolerance(undefined);
|
|
@@ -59,26 +59,36 @@ function findSignalMatch2D(spectrum, link, factor, xDomain0, xDomain1, yDomain0,
|
|
|
59
59
|
exports.findSignalMatch2D = findSignalMatch2D;
|
|
60
60
|
function getAbbreviation(link) {
|
|
61
61
|
let abbreviation = 'X';
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
62
|
+
switch (link.experimentType) {
|
|
63
|
+
case 'hsqc':
|
|
64
|
+
case 'hmqc': {
|
|
65
|
+
abbreviation =
|
|
66
|
+
!link.signal || link.signal.sign === 0
|
|
67
|
+
? 'S'
|
|
68
|
+
: `S${link.signal.sign === 1 ? '+' : '-'}`;
|
|
69
|
+
break;
|
|
70
|
+
}
|
|
71
|
+
case 'hmbc':
|
|
72
|
+
case 'cosy':
|
|
73
|
+
case 'tocsy': {
|
|
74
|
+
abbreviation = 'M';
|
|
75
|
+
break;
|
|
76
|
+
}
|
|
77
|
+
case 'noesy':
|
|
78
|
+
case 'roesy': {
|
|
79
|
+
abbreviation = 'NOE';
|
|
80
|
+
break;
|
|
81
|
+
}
|
|
82
|
+
case 'inadequate': {
|
|
83
|
+
abbreviation = 'I';
|
|
84
|
+
break;
|
|
85
|
+
}
|
|
86
|
+
case 'adequate': {
|
|
87
|
+
abbreviation = 'A';
|
|
88
|
+
break;
|
|
89
|
+
}
|
|
90
|
+
// TODO: handle default?
|
|
91
|
+
// No default
|
|
82
92
|
}
|
|
83
93
|
const pathLength = link.signal.j?.pathLength;
|
|
84
94
|
if (pathLength) {
|
|
@@ -137,89 +147,90 @@ function getEditedCorrelations({ correlationDim1, correlationDim2, selectedCorre
|
|
|
137
147
|
const linkDim = (0, nmr_correlation_1.getLinkDim)(link);
|
|
138
148
|
const editedCorrelations = [];
|
|
139
149
|
const buildCorrelationDataOptions = {};
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
150
|
+
switch (action) {
|
|
151
|
+
case 'move': {
|
|
152
|
+
if (linkDim === 1) {
|
|
153
|
+
// modify current cell correlation
|
|
154
|
+
const _correlationDim1 = cloneCorrelationAndEditLink(correlationDim1, link, 'x', 'remove');
|
|
155
|
+
// modify selected correlation
|
|
156
|
+
let newCorrelationDim1;
|
|
157
|
+
if (selectedCorrelationDim1) {
|
|
158
|
+
newCorrelationDim1 = cloneCorrelationAndEditLink(hasChangedDim1 ? selectedCorrelationDim1 : _correlationDim1, link, 'x', 'add');
|
|
159
|
+
}
|
|
160
|
+
else {
|
|
161
|
+
newCorrelationDim1 = (0, nmr_correlation_1.buildCorrelation)({
|
|
162
|
+
atomType: correlationDim1.atomType,
|
|
163
|
+
link: [buildNewLink1D(link)],
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
editedCorrelations.push(_correlationDim1, newCorrelationDim1);
|
|
167
|
+
buildCorrelationDataOptions.skipDataUpdate = true;
|
|
148
168
|
}
|
|
149
|
-
else {
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
169
|
+
else if (linkDim === 2) {
|
|
170
|
+
// modify current cell correlations
|
|
171
|
+
const _correlationDim1 = cloneCorrelationAndEditLink(correlationDim1, link, 'x', 'remove');
|
|
172
|
+
editedCorrelations.push(_correlationDim1);
|
|
173
|
+
const _correlationDim2 = cloneCorrelationAndEditLink(correlationDim2, link, 'y', 'remove');
|
|
174
|
+
editedCorrelations.push(_correlationDim2);
|
|
175
|
+
// modify selected correlations
|
|
176
|
+
if (selectedCorrelationDim1 && selectedCorrelationDim2) {
|
|
177
|
+
editedCorrelations.push(cloneCorrelationAndEditLink(hasChangedDim1 ? selectedCorrelationDim1 : _correlationDim1, link, 'x', 'add'), cloneCorrelationAndEditLink(hasChangedDim2 ? selectedCorrelationDim2 : _correlationDim2, link, 'y', 'add'));
|
|
178
|
+
}
|
|
179
|
+
else if (selectedCorrelationDim1 &&
|
|
180
|
+
selectedCorrelationIdDim2 === 'new') {
|
|
181
|
+
editedCorrelations.push(cloneCorrelationAndEditLink(hasChangedDim1 ? selectedCorrelationDim1 : _correlationDim1, link, 'x', 'add'), (0, nmr_correlation_1.buildCorrelation)({
|
|
182
|
+
atomType: correlationDim2.atomType,
|
|
183
|
+
link: [buildNewLink2D(link, 'y')],
|
|
184
|
+
}));
|
|
185
|
+
}
|
|
186
|
+
else if (selectedCorrelationIdDim1 === 'new' &&
|
|
187
|
+
selectedCorrelationDim2) {
|
|
188
|
+
editedCorrelations.push((0, nmr_correlation_1.buildCorrelation)({
|
|
189
|
+
atomType: correlationDim1.atomType,
|
|
190
|
+
link: [buildNewLink2D(link, 'x')],
|
|
191
|
+
}), cloneCorrelationAndEditLink(hasChangedDim2 ? selectedCorrelationDim2 : _correlationDim2, link, 'y', 'add'));
|
|
192
|
+
}
|
|
193
|
+
else if (selectedCorrelationIdDim1 === 'new' &&
|
|
194
|
+
selectedCorrelationIdDim2 === 'new') {
|
|
195
|
+
editedCorrelations.push((0, nmr_correlation_1.buildCorrelation)({
|
|
196
|
+
atomType: correlationDim1.atomType,
|
|
197
|
+
link: [buildNewLink2D(link, 'x')],
|
|
198
|
+
}), (0, nmr_correlation_1.buildCorrelation)({
|
|
199
|
+
atomType: correlationDim2.atomType,
|
|
200
|
+
link: [buildNewLink2D(link, 'y')],
|
|
201
|
+
}));
|
|
202
|
+
}
|
|
203
|
+
buildCorrelationDataOptions.skipDataUpdate = true;
|
|
154
204
|
}
|
|
155
|
-
|
|
156
|
-
buildCorrelationDataOptions.skipDataUpdate = true;
|
|
205
|
+
break;
|
|
157
206
|
}
|
|
158
|
-
|
|
159
|
-
// modify current cell correlations
|
|
207
|
+
case 'remove': {
|
|
160
208
|
const _correlationDim1 = cloneCorrelationAndEditLink(correlationDim1, link, 'x', 'remove');
|
|
161
209
|
editedCorrelations.push(_correlationDim1);
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
if (selectedCorrelationDim1 && selectedCorrelationDim2) {
|
|
166
|
-
editedCorrelations.push(cloneCorrelationAndEditLink(hasChangedDim1 ? selectedCorrelationDim1 : _correlationDim1, link, 'x', 'add'));
|
|
167
|
-
editedCorrelations.push(cloneCorrelationAndEditLink(hasChangedDim2 ? selectedCorrelationDim2 : _correlationDim2, link, 'y', 'add'));
|
|
210
|
+
if ((0, nmr_correlation_1.getLinkDim)(link) === 2) {
|
|
211
|
+
const _correlationDim2 = cloneCorrelationAndEditLink(correlationDim2, link, 'y', 'remove');
|
|
212
|
+
editedCorrelations.push(_correlationDim2);
|
|
168
213
|
}
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
}
|
|
214
|
+
break;
|
|
215
|
+
}
|
|
216
|
+
case 'unmove': {
|
|
217
|
+
if (linkDim === 1) {
|
|
218
|
+
if (selectedCorrelationDim1) {
|
|
219
|
+
editedCorrelations.push(cloneCorrelationAndEditLink(selectedCorrelationDim1, link, 'x', 'unmove'));
|
|
220
|
+
}
|
|
176
221
|
}
|
|
177
|
-
else if (
|
|
222
|
+
else if (linkDim === 2 &&
|
|
223
|
+
selectedCorrelationDim1 &&
|
|
178
224
|
selectedCorrelationDim2) {
|
|
179
|
-
editedCorrelations.push((
|
|
180
|
-
atomType: correlationDim1.atomType,
|
|
181
|
-
link: [buildNewLink2D(link, 'x')],
|
|
182
|
-
}));
|
|
183
|
-
editedCorrelations.push(cloneCorrelationAndEditLink(hasChangedDim2 ? selectedCorrelationDim2 : _correlationDim2, link, 'y', 'add'));
|
|
184
|
-
}
|
|
185
|
-
else if (selectedCorrelationIdDim1 === 'new' &&
|
|
186
|
-
selectedCorrelationIdDim2 === 'new') {
|
|
187
|
-
editedCorrelations.push((0, nmr_correlation_1.buildCorrelation)({
|
|
188
|
-
atomType: correlationDim1.atomType,
|
|
189
|
-
link: [buildNewLink2D(link, 'x')],
|
|
190
|
-
}));
|
|
191
|
-
editedCorrelations.push((0, nmr_correlation_1.buildCorrelation)({
|
|
192
|
-
atomType: correlationDim2.atomType,
|
|
193
|
-
link: [buildNewLink2D(link, 'y')],
|
|
194
|
-
}));
|
|
225
|
+
editedCorrelations.push(cloneCorrelationAndEditLink(selectedCorrelationDim1, link, 'x', 'unmove'), cloneCorrelationAndEditLink(selectedCorrelationDim2, link, 'y', 'unmove'));
|
|
195
226
|
}
|
|
196
|
-
|
|
227
|
+
break;
|
|
197
228
|
}
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
editedCorrelations.push(_correlationDim1);
|
|
202
|
-
if ((0, nmr_correlation_1.getLinkDim)(link) === 2) {
|
|
203
|
-
const _correlationDim2 = cloneCorrelationAndEditLink(correlationDim2, link, 'y', 'remove');
|
|
204
|
-
editedCorrelations.push(_correlationDim2);
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
else if (action === 'unmove') {
|
|
208
|
-
if (linkDim === 1) {
|
|
209
|
-
if (selectedCorrelationDim1) {
|
|
210
|
-
editedCorrelations.push(cloneCorrelationAndEditLink(selectedCorrelationDim1, link, 'x', 'unmove'));
|
|
211
|
-
}
|
|
229
|
+
case 'setPathLength': {
|
|
230
|
+
editedCorrelations.push(cloneCorrelationAndSetPathLength(correlationDim1, link, 'x'), cloneCorrelationAndSetPathLength(correlationDim2, link, 'y'));
|
|
231
|
+
break;
|
|
212
232
|
}
|
|
213
|
-
|
|
214
|
-
if (selectedCorrelationDim1 && selectedCorrelationDim2) {
|
|
215
|
-
editedCorrelations.push(cloneCorrelationAndEditLink(selectedCorrelationDim1, link, 'x', 'unmove'));
|
|
216
|
-
editedCorrelations.push(cloneCorrelationAndEditLink(selectedCorrelationDim2, link, 'y', 'unmove'));
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
else if (action === 'setPathLength') {
|
|
221
|
-
editedCorrelations.push(cloneCorrelationAndSetPathLength(correlationDim1, link, 'x'));
|
|
222
|
-
editedCorrelations.push(cloneCorrelationAndSetPathLength(correlationDim2, link, 'y'));
|
|
233
|
+
// No default
|
|
223
234
|
}
|
|
224
235
|
return { editedCorrelations, buildCorrelationDataOptions };
|
|
225
236
|
}
|
|
@@ -262,13 +273,13 @@ function convertValuesString(valuesString, key) {
|
|
|
262
273
|
.join(',');
|
|
263
274
|
valuesString = valuesString.replaceAll('sp', '');
|
|
264
275
|
let values = [];
|
|
265
|
-
const regex = /^(
|
|
276
|
+
const regex = /^(?:\d,{0,1})+$/g;
|
|
266
277
|
if (regex.test(valuesString)) {
|
|
267
278
|
// allow digits followed by optional comma only
|
|
268
279
|
values = valuesString
|
|
269
280
|
.split(',')
|
|
270
281
|
.filter((char) => char.length > 0)
|
|
271
|
-
.map(
|
|
282
|
+
.map(Number);
|
|
272
283
|
}
|
|
273
284
|
// allow key specific values only
|
|
274
285
|
// protonsCount: [0, 1, 2, 3, ...], hybridization: [1, 2, 3]
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const react_1 = require("react");
|
|
4
4
|
const ChartContext_1 = require("../../../context/ChartContext");
|
|
5
|
-
const
|
|
5
|
+
const useActiveSpectrum_1 = require("../../../hooks/useActiveSpectrum");
|
|
6
6
|
const Utilities_1 = require("./Utilities");
|
|
7
7
|
function useInView({ correlation }) {
|
|
8
8
|
const { data: spectraData, xDomain, yDomain, displayerMode, view: { spectra: { activeTab }, }, } = (0, ChartContext_1.useChartData)();
|
|
9
|
-
const activeSpectrum = (0,
|
|
9
|
+
const activeSpectrum = (0, useActiveSpectrum_1.useActiveSpectrum)();
|
|
10
10
|
return (0, react_1.useMemo)(() => (0, Utilities_1.isInView)(spectraData, activeTab, activeSpectrum, xDomain, yDomain, displayerMode, correlation), [
|
|
11
11
|
activeSpectrum,
|
|
12
12
|
activeTab,
|
|
@@ -7,7 +7,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
7
7
|
const get_1 = __importDefault(require("lodash/get"));
|
|
8
8
|
const fa_1 = require("react-icons/fa");
|
|
9
9
|
function ZoneAssignmentColumn({ rowData, assignment, highlight, onHover, onClick, onUnlink, axis, showUnlinkButton, setShowUnlinkButton, rowSpanTags, }) {
|
|
10
|
-
return ((0, jsx_runtime_1.jsx)("td", { ...rowSpanTags, ...onHover, ...{ onClick: (e) => onClick(e, assignment, axis) }, children: (0, get_1.default)(rowData, `${axis}.nbAtoms`, 0) > 0 ? ((0, get_1.default)(rowData, `${axis}.diaIDs`,
|
|
10
|
+
return ((0, jsx_runtime_1.jsx)("td", { ...rowSpanTags, ...onHover, ...{ onClick: (e) => onClick(e, assignment, axis) }, children: (0, get_1.default)(rowData, `${axis}.nbAtoms`, 0) > 0 ? ((0, get_1.default)(rowData, `${axis}.diaIDs`, []).length > 0 ? ((0, jsx_runtime_1.jsxs)("div", { onMouseEnter: () => setShowUnlinkButton(true), onMouseLeave: () => setShowUnlinkButton(false), children: [rowData[axis].nbAtoms, " ", `(`, (0, jsx_runtime_1.jsx)("span", { style: (assignment.isActive && assignment.activated?.axis === axis) ||
|
|
11
11
|
(assignment.isOver && assignment.highlighted?.axis === axis) ||
|
|
12
12
|
highlight.isActive
|
|
13
13
|
? {
|
|
@@ -35,6 +35,7 @@ const style = (0, react_1.css) `
|
|
|
35
35
|
padding: 0;
|
|
36
36
|
background-color: transparent;
|
|
37
37
|
}
|
|
38
|
+
|
|
38
39
|
.toggle {
|
|
39
40
|
width: 22px;
|
|
40
41
|
height: 22px;
|
|
@@ -145,7 +146,7 @@ function ZonesPanelInner({ zones, activeTab, xDomain, yDomain, experiment, showZ
|
|
|
145
146
|
position: relative;
|
|
146
147
|
}
|
|
147
148
|
`,
|
|
148
|
-
], children: [!isFlipped && ((0, jsx_runtime_1.jsxs)(DefaultPanelHeader_1.default, { counter: zones.values ? zones.values.length : 0, onDelete: handleDeleteAll, deleteToolTip: "Delete All Zones", onFilter: handleOnFilter, filterToolTip: filterIsActive ? 'Show all zones' : 'Hide zones out of view', filterIsActive: filterIsActive, counterFiltered: tableData?.length, showSettingButton: true, onSettingClick: settingsPanelHandler, children: [(0, jsx_runtime_1.jsx)(ToolTip_1.default, { title: `Remove all
|
|
149
|
+
], children: [!isFlipped && ((0, jsx_runtime_1.jsxs)(DefaultPanelHeader_1.default, { counter: zones.values ? zones.values.length : 0, onDelete: handleDeleteAll, deleteToolTip: "Delete All Zones", onFilter: handleOnFilter, filterToolTip: filterIsActive ? 'Show all zones' : 'Hide zones out of view', filterIsActive: filterIsActive, counterFiltered: tableData?.length, showSettingButton: true, onSettingClick: settingsPanelHandler, children: [(0, jsx_runtime_1.jsx)(ToolTip_1.default, { title: `Remove all assignments`, popupPlacement: "right", children: (0, jsx_runtime_1.jsx)("button", { className: "remove-assignments-btn", type: "button", onClick: handleOnRemoveAssignments, disabled: !zones.values || zones.values.length === 0, children: (0, jsx_runtime_1.jsx)(fa_1.FaUnlink, {}) }) }), (0, jsx_runtime_1.jsx)(ActiveButton_1.default, { popupTitle: "Show/Hide zones", popupPlacement: "right", value: showZones, onClick: handleSetShowZones, children: (0, jsx_runtime_1.jsx)("span", { style: { fontSize: '12px', pointerEvents: 'none' }, children: "z" }) }), (0, jsx_runtime_1.jsx)(ActiveButton_1.default, { popupTitle: "Show/Hide signals", popupPlacement: "right", value: showSignals, onClick: handleSetShowSignals, children: (0, jsx_runtime_1.jsx)("span", { style: { fontSize: '12px', pointerEvents: 'none' }, children: "s" }) }), (0, jsx_runtime_1.jsx)(ActiveButton_1.default, { popupTitle: "Show/Hide peaks", popupPlacement: "right", value: showPeaks, onClick: handleSetShowPeaks, children: (0, jsx_runtime_1.jsx)("span", { style: { fontSize: '12px', pointerEvents: 'none' }, children: "p" }) })] })), isFlipped && ((0, jsx_runtime_1.jsx)(PreferencesHeader_1.default, { onSave: saveSettingHandler, onClose: settingsPanelHandler })), (0, jsx_runtime_1.jsx)("div", { className: "inner-container", children: !isFlipped ? ((0, jsx_runtime_1.jsx)("div", { className: "table-container", children: tableData && tableData.length > 0 ? ((0, jsx_runtime_1.jsx)(ZonesTable_1.default, { tableData: tableData, onUnlink: unlinkZoneHandler, nuclei: activeTab && activeTab.split(',').length === 2
|
|
149
150
|
? activeTab.split(',')
|
|
150
151
|
: ['?', '?'], experiment: experiment })) : ((0, jsx_runtime_1.jsx)(NoTableData_1.default, {})) })) : ((0, jsx_runtime_1.jsx)(ZonesPreferences_1.default, { ref: settingRef })) })] }));
|
|
151
152
|
}
|
|
@@ -4,10 +4,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
const formik_1 = require("formik");
|
|
7
8
|
const react_1 = require("react");
|
|
8
9
|
const PreferencesContext_1 = require("../../context/PreferencesContext");
|
|
9
|
-
const FormikForm_1 = __importDefault(require("../../elements/formik/FormikForm"));
|
|
10
|
-
const Alert_1 = require("../../elements/popup/Alert");
|
|
11
10
|
const useNucleus_1 = __importDefault(require("../../hooks/useNucleus"));
|
|
12
11
|
const usePanelPreferences_1 = require("../../hooks/usePanelPreferences");
|
|
13
12
|
const getUniqueNuclei_1 = require("../../utility/getUniqueNuclei");
|
|
@@ -23,27 +22,25 @@ const formatFields = [
|
|
|
23
22
|
},
|
|
24
23
|
];
|
|
25
24
|
function ZonesPreferences(props, ref) {
|
|
26
|
-
const
|
|
27
|
-
const formRef = (0, react_1.useRef)();
|
|
25
|
+
const formRef = (0, react_1.useRef)(null);
|
|
28
26
|
const preferences = (0, PreferencesContext_1.usePreferences)();
|
|
29
27
|
const nucleus = (0, useNucleus_1.default)();
|
|
30
28
|
const nuclei = (0, react_1.useMemo)(() => (0, getUniqueNuclei_1.getUniqueNuclei)(nucleus), [nucleus]);
|
|
31
29
|
const zonesPreferences = (0, usePanelPreferences_1.usePanelPreferencesByNuclei)('zones', nuclei);
|
|
32
30
|
(0, react_1.useEffect)(() => {
|
|
33
|
-
formRef.current
|
|
31
|
+
formRef.current?.setValues(zonesPreferences);
|
|
34
32
|
}, [zonesPreferences]);
|
|
35
33
|
const saveHandler = (0, react_1.useCallback)((values) => {
|
|
36
34
|
preferences.dispatch({
|
|
37
35
|
type: 'SET_PANELS_PREFERENCES',
|
|
38
36
|
payload: { key: 'zones', value: values },
|
|
39
37
|
});
|
|
40
|
-
|
|
41
|
-
}, [alert, preferences]);
|
|
38
|
+
}, [preferences]);
|
|
42
39
|
(0, react_1.useImperativeHandle)(ref, () => ({
|
|
43
40
|
saveSetting: () => {
|
|
44
|
-
formRef.current
|
|
41
|
+
void formRef.current?.submitForm();
|
|
45
42
|
},
|
|
46
43
|
}), []);
|
|
47
|
-
return ((0, jsx_runtime_1.jsx)(PreferencesContainer_1.PreferencesContainer, { children: (0, jsx_runtime_1.jsx)(
|
|
44
|
+
return ((0, jsx_runtime_1.jsx)(PreferencesContainer_1.PreferencesContainer, { children: (0, jsx_runtime_1.jsx)(formik_1.Formik, { initialValues: {}, onSubmit: saveHandler, innerRef: formRef, children: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: nuclei?.map((n) => ((0, jsx_runtime_1.jsx)(NucleusPreferences_1.NucleusPreferences, { nucleus: n, fields: formatFields }, n))) }) }) }));
|
|
48
45
|
}
|
|
49
46
|
exports.default = (0, react_1.memo)((0, react_1.forwardRef)(ZonesPreferences));
|
|
@@ -8,8 +8,6 @@ const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
|
8
8
|
const react_1 = require("@emotion/react");
|
|
9
9
|
const react_2 = require("react");
|
|
10
10
|
const fa_1 = require("react-icons/fa");
|
|
11
|
-
const checkModifierKeyActivated_1 = __importDefault(require("../../../data/utilities/checkModifierKeyActivated"));
|
|
12
|
-
const ContextMenu_1 = __importDefault(require("../../elements/ContextMenu"));
|
|
13
11
|
const usePanelPreferences_1 = require("../../hooks/usePanelPreferences");
|
|
14
12
|
const useTableSortBy_1 = __importDefault(require("../../hooks/useTableSortBy"));
|
|
15
13
|
const ZonesTableRow_1 = __importDefault(require("./ZonesTableRow"));
|
|
@@ -18,27 +16,17 @@ const tableStyle = (0, react_1.css) `
|
|
|
18
16
|
border: 1px solid #dedede;
|
|
19
17
|
width: 100%;
|
|
20
18
|
font-size: 12px;
|
|
19
|
+
|
|
21
20
|
.react-contextmenu-wrapper {
|
|
22
21
|
display: contents;
|
|
23
22
|
}
|
|
24
|
-
|
|
25
|
-
:last-child {
|
|
26
|
-
td {
|
|
27
|
-
border-bottom: 0;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
thead tr:nth-of-type(1) th {
|
|
32
|
-
top: 0;
|
|
33
|
-
}
|
|
34
|
-
thead tr:nth-of-type(2) th {
|
|
35
|
-
top: 21px;
|
|
36
|
-
}
|
|
23
|
+
|
|
37
24
|
th {
|
|
38
25
|
position: sticky;
|
|
39
26
|
background-color: white;
|
|
40
27
|
z-index: 2;
|
|
41
28
|
}
|
|
29
|
+
|
|
42
30
|
th,
|
|
43
31
|
td {
|
|
44
32
|
white-space: nowrap;
|
|
@@ -51,26 +39,36 @@ const tableStyle = (0, react_1.css) `
|
|
|
51
39
|
:last-child {
|
|
52
40
|
border-right: 0;
|
|
53
41
|
}
|
|
42
|
+
|
|
54
43
|
button {
|
|
55
44
|
background-color: transparent;
|
|
56
45
|
border: none;
|
|
57
46
|
padding: 0 5px;
|
|
58
47
|
}
|
|
59
48
|
}
|
|
49
|
+
|
|
50
|
+
tr {
|
|
51
|
+
:last-child {
|
|
52
|
+
td {
|
|
53
|
+
border-bottom: 0;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
thead tr:nth-of-type(1) th {
|
|
59
|
+
top: 0;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
thead tr:nth-of-type(2) th {
|
|
63
|
+
top: 21px;
|
|
64
|
+
}
|
|
60
65
|
`;
|
|
61
|
-
function ZonesTable({ tableData, onUnlink,
|
|
62
|
-
const contextRef = (0, react_2.useRef)(null);
|
|
63
|
-
const contextMenuHandler = (0, react_2.useCallback)((e, rowData) => {
|
|
64
|
-
if (!(0, checkModifierKeyActivated_1.default)(e)) {
|
|
65
|
-
e.preventDefault();
|
|
66
|
-
contextRef.current.handleContextMenu(e, rowData);
|
|
67
|
-
}
|
|
68
|
-
}, [contextRef]);
|
|
66
|
+
function ZonesTable({ tableData, onUnlink, nuclei, experiment, }) {
|
|
69
67
|
const data = (0, react_2.useMemo)(() => {
|
|
70
|
-
const
|
|
71
|
-
tableData.
|
|
68
|
+
const data = [];
|
|
69
|
+
for (const [i, zone] of tableData.entries()) {
|
|
72
70
|
if (zone.signals.length === 1) {
|
|
73
|
-
|
|
71
|
+
data.push({
|
|
74
72
|
...zone,
|
|
75
73
|
tableMetaInfo: {
|
|
76
74
|
...zone.tableMetaInfo,
|
|
@@ -84,7 +82,7 @@ function ZonesTable({ tableData, onUnlink, context, nuclei, experiment, }) {
|
|
|
84
82
|
});
|
|
85
83
|
}
|
|
86
84
|
else if (zone.signals.length > 1) {
|
|
87
|
-
zone.signals.
|
|
85
|
+
for (const [j, signal] of zone.signals.entries()) {
|
|
88
86
|
let hide = false;
|
|
89
87
|
let rowSpan = null;
|
|
90
88
|
if (j < zone.signals.length - 1) {
|
|
@@ -98,7 +96,7 @@ function ZonesTable({ tableData, onUnlink, context, nuclei, experiment, }) {
|
|
|
98
96
|
else {
|
|
99
97
|
hide = true;
|
|
100
98
|
}
|
|
101
|
-
|
|
99
|
+
data.push({
|
|
102
100
|
...zone,
|
|
103
101
|
tableMetaInfo: {
|
|
104
102
|
...zone.tableMetaInfo,
|
|
@@ -111,16 +109,15 @@ function ZonesTable({ tableData, onUnlink, context, nuclei, experiment, }) {
|
|
|
111
109
|
experiment,
|
|
112
110
|
},
|
|
113
111
|
});
|
|
114
|
-
}
|
|
112
|
+
}
|
|
115
113
|
}
|
|
116
|
-
}
|
|
117
|
-
return
|
|
114
|
+
}
|
|
115
|
+
return data;
|
|
118
116
|
}, [experiment, nuclei, tableData]);
|
|
119
117
|
const { items: sortedData, isSortedDesc, onSort } = (0, useTableSortBy_1.default)(data);
|
|
120
118
|
const { deltaPPM: deltaX } = (0, usePanelPreferences_1.usePanelPreferences)('zones', nuclei[0]);
|
|
121
119
|
const { deltaPPM: deltaY } = (0, usePanelPreferences_1.usePanelPreferences)('zones', nuclei[1]);
|
|
122
|
-
|
|
123
|
-
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)("table", { css: tableStyle, children: [(0, jsx_runtime_1.jsxs)("thead", { children: [(0, jsx_runtime_1.jsxs)("tr", { children: [(0, jsx_runtime_1.jsx)("th", { rowSpan: 2, children: "#" }), (0, jsx_runtime_1.jsx)("th", { colSpan: 2, children: "\u03B4 (ppm)" }), (0, jsx_runtime_1.jsx)("th", { colSpan: 2, children: (0, jsx_runtime_1.jsx)(fa_1.FaLink, {}) }), (0, jsx_runtime_1.jsx)("th", { colSpan: 2, children: "\u03A3" }), (0, jsx_runtime_1.jsx)("th", { rowSpan: 2, children: "Kind" }), (0, jsx_runtime_1.jsx)("th", { rowSpan: 2, children: '' })] }), (0, jsx_runtime_1.jsxs)("tr", { children: [(0, jsx_runtime_1.jsx)("th", { id: "tableMetaInfo.signal.x.delta", ...onSort, children: (0, jsx_runtime_1.jsxs)(SurroundedText, { text: "F2", children: [nuclei[0], ' ', isSortedDesc('tableMetaInfo.signal.x.delta').content] }) }), (0, jsx_runtime_1.jsx)("th", { id: "tableMetaInfo.signal.y.delta", ...onSort, children: (0, jsx_runtime_1.jsxs)(SurroundedText, { text: "F1", children: [nuclei[1], ' ', isSortedDesc('tableMetaInfo.signal.y.delta').content] }) }), (0, jsx_runtime_1.jsx)("th", { children: (0, jsx_runtime_1.jsx)(SurroundedText, { text: "F2", children: nuclei[0] }) }), (0, jsx_runtime_1.jsx)("th", { children: (0, jsx_runtime_1.jsx)(SurroundedText, { text: "F1", children: nuclei[1] }) }), (0, jsx_runtime_1.jsx)("th", { children: (0, jsx_runtime_1.jsx)(SurroundedText, { text: "F2", children: nuclei[0] }) }), (0, jsx_runtime_1.jsx)("th", { children: (0, jsx_runtime_1.jsx)(SurroundedText, { text: "F1", children: nuclei[1] }) })] })] }), (0, jsx_runtime_1.jsx)("tbody", { children: rows })] }), (0, jsx_runtime_1.jsx)(ContextMenu_1.default, { ref: contextRef, context: context })] }));
|
|
120
|
+
return ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsxs)("table", { css: tableStyle, children: [(0, jsx_runtime_1.jsxs)("thead", { children: [(0, jsx_runtime_1.jsxs)("tr", { children: [(0, jsx_runtime_1.jsx)("th", { rowSpan: 2, children: "#" }), (0, jsx_runtime_1.jsx)("th", { colSpan: 2, children: "\u03B4 (ppm)" }), (0, jsx_runtime_1.jsx)("th", { colSpan: 2, children: (0, jsx_runtime_1.jsx)(fa_1.FaLink, {}) }), (0, jsx_runtime_1.jsx)("th", { colSpan: 2, children: "\u03A3" }), (0, jsx_runtime_1.jsx)("th", { rowSpan: 2, children: "Kind" }), (0, jsx_runtime_1.jsx)("th", { rowSpan: 2, children: '' })] }), (0, jsx_runtime_1.jsxs)("tr", { children: [(0, jsx_runtime_1.jsx)("th", { id: "tableMetaInfo.signal.x.delta", ...onSort, children: (0, jsx_runtime_1.jsxs)(SurroundedText, { text: "F2", children: [nuclei[0], ' ', isSortedDesc('tableMetaInfo.signal.x.delta').content] }) }), (0, jsx_runtime_1.jsx)("th", { id: "tableMetaInfo.signal.y.delta", ...onSort, children: (0, jsx_runtime_1.jsxs)(SurroundedText, { text: "F1", children: [nuclei[1], ' ', isSortedDesc('tableMetaInfo.signal.y.delta').content] }) }), (0, jsx_runtime_1.jsx)("th", { children: (0, jsx_runtime_1.jsx)(SurroundedText, { text: "F2", children: nuclei[0] }) }), (0, jsx_runtime_1.jsx)("th", { children: (0, jsx_runtime_1.jsx)(SurroundedText, { text: "F1", children: nuclei[1] }) }), (0, jsx_runtime_1.jsx)("th", { children: (0, jsx_runtime_1.jsx)(SurroundedText, { text: "F2", children: nuclei[0] }) }), (0, jsx_runtime_1.jsx)("th", { children: (0, jsx_runtime_1.jsx)(SurroundedText, { text: "F1", children: nuclei[1] }) })] })] }), (0, jsx_runtime_1.jsx)("tbody", { children: sortedData.map((rowData, index) => ((0, jsx_runtime_1.jsx)(ZonesTableRow_1.default, { rowIndex: index, rowData: rowData, onUnlink: onUnlink, format: { x: deltaX.format, y: deltaY.format } }, `${rowData.tableMetaInfo.id}`))) })] }) }));
|
|
124
121
|
}
|
|
125
122
|
function SurroundedText(props) {
|
|
126
123
|
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("div", { style: {
|