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
|
@@ -1,46 +1,44 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
-
|
|
3
|
+
const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
4
|
+
/** @jsxImportSource @emotion/react */
|
|
8
5
|
const react_1 = require("react");
|
|
9
|
-
const fa_1 = require("react-icons/fa");
|
|
10
6
|
const highlight_1 = require("../../../highlight");
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
const RangesTableRow_1 = require("../RangesTableRow");
|
|
8
|
+
const RemoveAssignmentsButton_1 = require("./RemoveAssignmentsButton");
|
|
9
|
+
const columnStyle = {
|
|
10
|
+
padding: 0,
|
|
11
|
+
textAlign: 'center',
|
|
12
|
+
verticalAlign: 'middle',
|
|
14
13
|
};
|
|
15
|
-
function
|
|
16
|
-
|
|
17
|
-
return
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
return ((0, jsx_runtime_1.jsx)("td", { ...rowSpanTags,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}, onClick: (e) => onUnlink?.(e, true), children: (0, jsx_runtime_1.jsx)(fa_1.FaMinusCircle, { color: "red" }) }) })] })) : assignment.isActive ? ((0, jsx_runtime_1.jsxs)("div", { children: [`${rowData.nbAtoms} (`, (0, jsx_runtime_1.jsx)("span", { style: spanStyle, children: "0" }), ')'] })) : (rowData.nbAtoms)) : assignment.isActive ? ((0, jsx_runtime_1.jsxs)("div", { children: ['0 (', (0, jsx_runtime_1.jsx)("span", { style: spanStyle, children: "0" }), ')'] })) : ('') }));
|
|
14
|
+
function getStyle(flag, isCompletelyAssigned) {
|
|
15
|
+
if (flag) {
|
|
16
|
+
return {
|
|
17
|
+
color: 'red',
|
|
18
|
+
fontWeight: 'bold',
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
else if (isCompletelyAssigned) {
|
|
22
|
+
return { color: 'green', fontWeight: 'bold' };
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
return { color: 'black', fontWeight: 'normal' };
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
function RangeAssignmentsColumn({ row, assignment, highlight, onLink, onUnlink, rowSpanTags, onHover, highlightData, }) {
|
|
29
|
+
const diaIDs = row.diaIDs || [];
|
|
30
|
+
const flag = assignment.isActive ||
|
|
31
|
+
assignment.isOver ||
|
|
32
|
+
(highlight.isActive &&
|
|
33
|
+
highlightData.highlight.sourceData?.type !== highlight_1.HighlightEventSource.SIGNAL);
|
|
34
|
+
const isCompletelyAssigned = Math.round(row.integration) === row?.nbAtoms;
|
|
35
|
+
let totalNumberOfAtoms = row?.nbAtoms || 0;
|
|
36
|
+
for (const signal of row?.signals || []) {
|
|
37
|
+
totalNumberOfAtoms += signal?.nbAtoms || 0;
|
|
38
|
+
}
|
|
39
|
+
return ((0, jsx_runtime_1.jsx)("td", { ...rowSpanTags, style: {
|
|
40
|
+
...columnStyle,
|
|
41
|
+
...rowSpanTags.style,
|
|
42
|
+
}, ...onHover, ...{ onClick: (e) => onLink?.(e, assignment) }, css: !assignment.isActive && RangesTableRow_1.AssignmentColumnCssStyle, children: (totalNumberOfAtoms > 0 || assignment.isActive) && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [totalNumberOfAtoms, " ", ' ( ', (0, jsx_runtime_1.jsx)("span", { style: getStyle(flag, isCompletelyAssigned), children: diaIDs?.length || 0 }), ' ) ', (0, jsx_runtime_1.jsx)(RemoveAssignmentsButton_1.RemoveAssignmentsButton, { onClick: (e) => onUnlink?.(e, true) })] })) }));
|
|
45
43
|
}
|
|
46
44
|
exports.default = (0, react_1.memo)(RangeAssignmentsColumn);
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
-
const react_1 = require("react");
|
|
5
4
|
const formatNumber_1 = require("../../../utility/formatNumber");
|
|
6
|
-
function RangeColumn({ value, rowSpanTags,
|
|
7
|
-
return ((0, jsx_runtime_1.jsx)("td", { ...rowSpanTags, ...
|
|
5
|
+
function RangeColumn({ value, rowSpanTags, onHover, format, }) {
|
|
6
|
+
return ((0, jsx_runtime_1.jsx)("td", { ...rowSpanTags, ...onHover, children: (0, formatNumber_1.formatNumber)(value, format) }));
|
|
8
7
|
}
|
|
9
|
-
exports.default =
|
|
8
|
+
exports.default = RangeColumn;
|
|
@@ -4,27 +4,24 @@ 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 react_1 = require("react");
|
|
8
7
|
const RangeUtilities_1 = require("../../../../data/utilities/RangeUtilities");
|
|
9
8
|
const DispatchContext_1 = require("../../../context/DispatchContext");
|
|
10
9
|
const EditableColumn_1 = __importDefault(require("../../../elements/EditableColumn"));
|
|
11
10
|
const Types_1 = require("../../../reducer/types/Types");
|
|
12
11
|
const formatNumber_1 = require("../../../utility/formatNumber");
|
|
13
|
-
function RelativeColumn({
|
|
12
|
+
function RelativeColumn({ row, rowSpanTags, onHover, format, }) {
|
|
14
13
|
const dispatch = (0, DispatchContext_1.useDispatch)();
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}, [format, rowData]);
|
|
20
|
-
const saveHandler = (0, react_1.useCallback)((event) => {
|
|
14
|
+
const flag = (0, RangeUtilities_1.checkRangeKind)(row);
|
|
15
|
+
const formattedValue = (0, formatNumber_1.formatNumber)(row.integration, format);
|
|
16
|
+
const integralVal = flag ? formattedValue : `[ ${formattedValue} ]`;
|
|
17
|
+
function saveHandler(event) {
|
|
21
18
|
dispatch({
|
|
22
19
|
type: Types_1.CHANGE_RANGE_RELATIVE,
|
|
23
20
|
payload: {
|
|
24
|
-
data: { value: event.target.value, id:
|
|
21
|
+
data: { value: event.target.value, id: row.id },
|
|
25
22
|
},
|
|
26
23
|
});
|
|
27
|
-
}
|
|
28
|
-
return ((0, jsx_runtime_1.jsx)("td", { ...rowSpanTags, ...
|
|
24
|
+
}
|
|
25
|
+
return ((0, jsx_runtime_1.jsx)("td", { ...rowSpanTags, ...onHover, children: (0, jsx_runtime_1.jsx)(EditableColumn_1.default, { value: integralVal, onSave: saveHandler, type: "number", style: { padding: '0.1rem 0.4rem' } }) }));
|
|
29
26
|
}
|
|
30
27
|
exports.default = RelativeColumn;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RemoveAssignmentsButton = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const fa_1 = require("react-icons/fa");
|
|
6
|
+
function RemoveAssignmentsButton({ onClick }) {
|
|
7
|
+
return ((0, jsx_runtime_1.jsx)("sup", { className: "remove-assignment", children: (0, jsx_runtime_1.jsx)("button", { type: "button", style: {
|
|
8
|
+
padding: 0,
|
|
9
|
+
margin: 0,
|
|
10
|
+
}, onClick: onClick, children: (0, jsx_runtime_1.jsx)(fa_1.FaMinusCircle, { color: "red" }) }) }));
|
|
11
|
+
}
|
|
12
|
+
exports.RemoveAssignmentsButton = RemoveAssignmentsButton;
|
|
@@ -3,32 +3,23 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
|
+
const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
7
|
+
/** @jsxImportSource @emotion/react */
|
|
7
8
|
const get_1 = __importDefault(require("lodash/get"));
|
|
8
9
|
const react_1 = require("react");
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
: undefined;
|
|
21
|
-
}, [assignment.isActive, highlight.isActive]);
|
|
22
|
-
const visibilityChangeHandler = (0, react_1.useCallback)((flag) => {
|
|
23
|
-
onUnlinkVisibilityChange?.(flag);
|
|
24
|
-
}, [onUnlinkVisibilityChange]);
|
|
25
|
-
const assignHandler = (0, react_1.useCallback)((e) => {
|
|
10
|
+
const RangesTableRow_1 = require("../RangesTableRow");
|
|
11
|
+
const RemoveAssignmentsButton_1 = require("./RemoveAssignmentsButton");
|
|
12
|
+
function SignalAssignmentsColumn({ row, onHover, assignment, highlight, onLink, onUnlink, }) {
|
|
13
|
+
const diaIDs = (0, get_1.default)(row, 'tableMetaInfo.signal.diaIDs', []);
|
|
14
|
+
const tdCss = assignment.isActive || highlight.isActive
|
|
15
|
+
? {
|
|
16
|
+
color: 'red',
|
|
17
|
+
fontWeight: 'bold',
|
|
18
|
+
}
|
|
19
|
+
: {};
|
|
20
|
+
function assignHandler(e) {
|
|
26
21
|
onLink?.(e, assignment);
|
|
27
|
-
}
|
|
28
|
-
return ((0, jsx_runtime_1.jsx)("td", { ...onHover, onClick: assignHandler, style: tdCss,
|
|
29
|
-
visibility: unlinkVisibility ? 'visible' : 'hidden',
|
|
30
|
-
padding: 0,
|
|
31
|
-
margin: 0,
|
|
32
|
-
}, onClick: (e) => onUnlink?.(e, false), children: (0, jsx_runtime_1.jsx)(fa_1.FaMinusCircle, { color: "red" }) }) })] })) : assignment.isActive ? ('0') : ('') }));
|
|
22
|
+
}
|
|
23
|
+
return ((0, jsx_runtime_1.jsx)("td", { ...onHover, onClick: assignHandler, style: { padding: '0', ...tdCss }, css: !assignment.isActive && RangesTableRow_1.AssignmentColumnCssStyle, children: (diaIDs?.length > 0 || assignment.isActive) && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("span", { children: diaIDs?.length || 0 }), (0, jsx_runtime_1.jsx)(RemoveAssignmentsButton_1.RemoveAssignmentsButton, { onClick: (e) => onUnlink?.(e, false) })] })) }));
|
|
33
24
|
}
|
|
34
25
|
exports.default = (0, react_1.memo)(SignalAssignmentsColumn);
|
|
@@ -4,27 +4,26 @@ 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 react_1 = require("react");
|
|
8
7
|
const DispatchContext_1 = require("../../../context/DispatchContext");
|
|
9
8
|
const EditableColumn_1 = __importDefault(require("../../../elements/EditableColumn"));
|
|
10
9
|
const Types_1 = require("../../../reducer/types/Types");
|
|
11
10
|
const formatNumber_1 = require("../../../utility/formatNumber");
|
|
12
11
|
const MultiplicityUtilities_1 = require("../../extra/utilities/MultiplicityUtilities");
|
|
13
|
-
function SignalDeltaColumn({
|
|
12
|
+
function SignalDeltaColumn({ row, onHover, format, rowSpanTags, }) {
|
|
14
13
|
const dispatch = (0, DispatchContext_1.useDispatch)();
|
|
15
|
-
const signal =
|
|
16
|
-
|
|
14
|
+
const signal = row.tableMetaInfo.signal;
|
|
15
|
+
function saveHandler(event) {
|
|
17
16
|
dispatch({
|
|
18
17
|
type: Types_1.CHANGE_RANGE_SIGNAL_VALUE,
|
|
19
18
|
payload: {
|
|
20
19
|
value: event.target.value,
|
|
21
|
-
rangeID:
|
|
20
|
+
rangeID: row.id,
|
|
22
21
|
signalID: signal.id,
|
|
23
22
|
},
|
|
24
23
|
});
|
|
25
|
-
}
|
|
24
|
+
}
|
|
26
25
|
if (!signal)
|
|
27
26
|
return (0, jsx_runtime_1.jsx)("td", { children: '' });
|
|
28
|
-
return ((0, jsx_runtime_1.jsx)("td", { ...
|
|
27
|
+
return ((0, jsx_runtime_1.jsx)("td", { ...rowSpanTags, ...onHover, children: !(0, MultiplicityUtilities_1.checkMultiplicity)(signal.multiplicity, ['m']) ? (`${(0, formatNumber_1.formatNumber)(row.from, format)} - ${(0, formatNumber_1.formatNumber)(row.to, format)}`) : ((0, jsx_runtime_1.jsx)(EditableColumn_1.default, { value: (0, formatNumber_1.formatNumber)(signal.delta, format), onSave: saveHandler, type: "number", style: { padding: '0.1rem 0.4rem' } })) }));
|
|
29
28
|
}
|
|
30
29
|
exports.default = SignalDeltaColumn;
|
|
@@ -3,14 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
4
|
const formatNumber_1 = require("../../../utility/formatNumber");
|
|
5
5
|
const MultiplicityUtilities_1 = require("../../extra/utilities/MultiplicityUtilities");
|
|
6
|
-
function SignalDeltaHzColumn({
|
|
7
|
-
const signal =
|
|
6
|
+
function SignalDeltaHzColumn({ row, onHover, format, info, rowSpanTags, }) {
|
|
7
|
+
const signal = row.tableMetaInfo.signal;
|
|
8
8
|
if (!signal)
|
|
9
9
|
return (0, jsx_runtime_1.jsx)("td", { children: '' });
|
|
10
|
-
return ((0, jsx_runtime_1.jsx)("td", { ...
|
|
11
|
-
? `${(0, formatNumber_1.formatNumber)(
|
|
10
|
+
return ((0, jsx_runtime_1.jsx)("td", { ...rowSpanTags, ...onHover, children: !(0, MultiplicityUtilities_1.checkMultiplicity)(signal.multiplicity, ['m'])
|
|
11
|
+
? `${(0, formatNumber_1.formatNumber)(row.from * info.originFrequency, format)} - ${(0, formatNumber_1.formatNumber)(row.to * info.originFrequency, format)}`
|
|
12
12
|
: info?.originFrequency
|
|
13
|
-
? (0, formatNumber_1.formatNumber)(signal.delta * info.originFrequency,
|
|
13
|
+
? (0, formatNumber_1.formatNumber)(signal.delta * info.originFrequency, format)
|
|
14
14
|
: '' }));
|
|
15
15
|
}
|
|
16
16
|
exports.default = SignalDeltaHzColumn;
|
|
@@ -17,7 +17,7 @@ function useEditRangeModal(range) {
|
|
|
17
17
|
const modal = (0, Modal_1.useModal)();
|
|
18
18
|
const assignmentData = (0, AssignmentsContext_1.useAssignmentData)();
|
|
19
19
|
const zoomRange = (0, react_1.useCallback)((modalRange) => {
|
|
20
|
-
const _range = modalRange
|
|
20
|
+
const _range = modalRange || range;
|
|
21
21
|
if (_range) {
|
|
22
22
|
const { from, to } = _range;
|
|
23
23
|
const margin = Math.abs(from - to);
|
|
@@ -32,7 +32,7 @@ function useEditRangeModal(range) {
|
|
|
32
32
|
dispatch({
|
|
33
33
|
type: Types_1.DELETE_RANGE,
|
|
34
34
|
payload: {
|
|
35
|
-
data: { id: id
|
|
35
|
+
data: { id: id || range?.id, assignmentData },
|
|
36
36
|
resetSelectTool,
|
|
37
37
|
},
|
|
38
38
|
});
|
|
@@ -4,10 +4,10 @@ const uuid_1 = require("@lukeed/uuid");
|
|
|
4
4
|
const react_1 = require("react");
|
|
5
5
|
function useMapRanges(data) {
|
|
6
6
|
return (0, react_1.useMemo)(() => {
|
|
7
|
-
const
|
|
8
|
-
data.
|
|
7
|
+
const rangesData = [];
|
|
8
|
+
for (const [i, range] of data.entries()) {
|
|
9
9
|
if (range.signals.length === 1) {
|
|
10
|
-
|
|
10
|
+
rangesData.push({
|
|
11
11
|
rowKey: (0, uuid_1.v4)(),
|
|
12
12
|
...range,
|
|
13
13
|
tableMetaInfo: {
|
|
@@ -20,7 +20,7 @@ function useMapRanges(data) {
|
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
22
|
else if (range.signals.length > 1) {
|
|
23
|
-
range.signals.
|
|
23
|
+
for (const [j, signal] of range.signals.entries()) {
|
|
24
24
|
let hide = false;
|
|
25
25
|
let rowSpan = null;
|
|
26
26
|
if (j < range.signals.length - 1) {
|
|
@@ -34,7 +34,7 @@ function useMapRanges(data) {
|
|
|
34
34
|
else {
|
|
35
35
|
hide = true;
|
|
36
36
|
}
|
|
37
|
-
|
|
37
|
+
rangesData.push({
|
|
38
38
|
rowKey: (0, uuid_1.v4)(),
|
|
39
39
|
...range,
|
|
40
40
|
tableMetaInfo: {
|
|
@@ -47,10 +47,10 @@ function useMapRanges(data) {
|
|
|
47
47
|
id: signal.id,
|
|
48
48
|
},
|
|
49
49
|
});
|
|
50
|
-
}
|
|
50
|
+
}
|
|
51
51
|
}
|
|
52
|
-
}
|
|
53
|
-
return
|
|
52
|
+
}
|
|
53
|
+
return rangesData;
|
|
54
54
|
}, [data]);
|
|
55
55
|
}
|
|
56
56
|
exports.default = useMapRanges;
|
|
@@ -7,23 +7,39 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
7
7
|
const cheminfo_font_1 = require("cheminfo-font");
|
|
8
8
|
const react_1 = require("react");
|
|
9
9
|
const fa_1 = require("react-icons/fa");
|
|
10
|
+
const io5_1 = require("react-icons/io5");
|
|
10
11
|
const ChartContext_1 = require("../../context/ChartContext");
|
|
11
12
|
const DispatchContext_1 = require("../../context/DispatchContext");
|
|
12
|
-
const
|
|
13
|
+
const Button_1 = __importDefault(require("../../elements/Button"));
|
|
13
14
|
const Alert_1 = require("../../elements/popup/Alert");
|
|
14
15
|
const Modal_1 = require("../../elements/popup/Modal");
|
|
15
|
-
const
|
|
16
|
+
const useActiveSpectra_1 = require("../../hooks/useActiveSpectra");
|
|
17
|
+
const useSpectrum_1 = __importDefault(require("../../hooks/useSpectrum"));
|
|
16
18
|
const Constants_1 = require("../../reducer/core/Constants");
|
|
17
19
|
const Types_1 = require("../../reducer/types/Types");
|
|
20
|
+
const getSpectraByNucleus_1 = require("../../utility/getSpectraByNucleus");
|
|
18
21
|
const DefaultPanelHeader_1 = __importDefault(require("../header/DefaultPanelHeader"));
|
|
19
22
|
const SpectraAutomaticPickingButton_1 = require("../header/SpectraAutomaticPickingButton");
|
|
20
|
-
function
|
|
23
|
+
function getMissingProjection(SpectrumsData, activeTab) {
|
|
24
|
+
let nucleus = activeTab.split(',');
|
|
25
|
+
nucleus = nucleus[0] === nucleus[1] ? [nucleus[0]] : nucleus;
|
|
26
|
+
const missingNucleus = [];
|
|
27
|
+
for (const n of nucleus) {
|
|
28
|
+
const hasSpectrums = SpectrumsData.some((d) => d.info.nucleus === n);
|
|
29
|
+
if (!hasSpectrums) {
|
|
30
|
+
missingNucleus.push(n);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return missingNucleus;
|
|
34
|
+
}
|
|
35
|
+
function SpectraPanelHeaderInner({ data, activeSpectrum, activeSpectra, activeTab, displayerMode, onSettingClick, }) {
|
|
21
36
|
const modal = (0, Modal_1.useModal)();
|
|
22
37
|
const alert = (0, Alert_1.useAlert)();
|
|
23
38
|
const dispatch = (0, DispatchContext_1.useDispatch)();
|
|
39
|
+
const spectra = (0, getSpectraByNucleus_1.getSpectraByNucleus)(activeTab, data);
|
|
24
40
|
const handleDelete = (0, react_1.useCallback)(() => {
|
|
25
41
|
modal.showConfirmDialog({
|
|
26
|
-
message: '
|
|
42
|
+
message: ((0, jsx_runtime_1.jsxs)("span", { children: ["You are about to delete", (0, jsx_runtime_1.jsxs)("span", { style: { color: 'black' }, children: [" ", activeSpectra?.length, " "] }), "spectra, Are you sure?"] })),
|
|
27
43
|
buttons: [
|
|
28
44
|
{
|
|
29
45
|
text: 'Yes',
|
|
@@ -34,55 +50,55 @@ function SpectraPanelHeaderInner({ data, activeSpectrum, activeTab, displayerMod
|
|
|
34
50
|
{ text: 'No' },
|
|
35
51
|
],
|
|
36
52
|
});
|
|
37
|
-
}, [dispatch, modal]);
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
53
|
+
}, [activeSpectra?.length, dispatch, modal]);
|
|
54
|
+
function showAllSpectrumsHandler() {
|
|
55
|
+
dispatch({
|
|
56
|
+
type: Types_1.CHANGE_VISIBILITY,
|
|
57
|
+
payload: { nucleus: activeTab, flag: true },
|
|
41
58
|
});
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
const missingNucleus = [];
|
|
52
|
-
for (const n of nucleus) {
|
|
53
|
-
const hasSpectrums = SpectrumsData.some((d) => d.info.nucleus === n);
|
|
54
|
-
if (!hasSpectrums) {
|
|
55
|
-
missingNucleus.push(n);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
return missingNucleus;
|
|
59
|
-
}
|
|
60
|
-
const missingNucleus = getMissingProjection(data);
|
|
59
|
+
}
|
|
60
|
+
function hideAllSpectrumsHandler() {
|
|
61
|
+
dispatch({
|
|
62
|
+
type: Types_1.CHANGE_VISIBILITY,
|
|
63
|
+
payload: { nucleus: activeTab, flag: false },
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
function addMissingProjectionHandler() {
|
|
67
|
+
const missingNucleus = getMissingProjection(data, activeTab);
|
|
61
68
|
if (missingNucleus.length > 0) {
|
|
62
69
|
dispatch({ type: Types_1.ADD_MISSING_PROJECTION, nucleus: missingNucleus });
|
|
63
70
|
}
|
|
64
71
|
else {
|
|
65
72
|
alert.error('Nothing to calculate');
|
|
66
73
|
}
|
|
67
|
-
}
|
|
68
|
-
|
|
74
|
+
}
|
|
75
|
+
function setSameTopHandler() {
|
|
69
76
|
dispatch({ type: Types_1.SET_SPECTRA_SAME_TOP });
|
|
70
|
-
}
|
|
71
|
-
|
|
77
|
+
}
|
|
78
|
+
function resetScaleHandler() {
|
|
72
79
|
dispatch({ type: Types_1.RESET_SPECTRA_SCALE });
|
|
73
|
-
}
|
|
74
|
-
|
|
80
|
+
}
|
|
81
|
+
function recolorSpectraHandler() {
|
|
82
|
+
dispatch({
|
|
83
|
+
type: Types_1.RECOLOR_SPECTRA_COLOR,
|
|
84
|
+
payload: {},
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
const hasActiveSpectra = activeSpectra && activeSpectra?.length > 0;
|
|
88
|
+
return ((0, jsx_runtime_1.jsxs)(DefaultPanelHeader_1.default, { onDelete: handleDelete, counter: spectra?.length, deleteToolTip: "Delete selected spectra", disableDelete: !hasActiveSpectra, showSettingButton: true, onSettingClick: onSettingClick, children: [(0, jsx_runtime_1.jsx)(Button_1.default.BarButton, { toolTip: "Hide selected spectra", onClick: hideAllSpectrumsHandler, tooltipOrientation: "horizontal", disabled: !hasActiveSpectra, children: (0, jsx_runtime_1.jsx)(fa_1.FaEyeSlash, {}) }), (0, jsx_runtime_1.jsx)(Button_1.default.BarButton, { onClick: showAllSpectrumsHandler, toolTip: "Show selected spectra", tooltipOrientation: "horizontal", disabled: !hasActiveSpectra, children: (0, jsx_runtime_1.jsx)(fa_1.FaEye, {}) }), displayerMode === Constants_1.DISPLAYER_MODE.DM_2D && activeSpectrum?.info.isFt && ((0, jsx_runtime_1.jsx)(Button_1.default.BarButton, { toolTip: "Add missing projection", tooltipOrientation: "horizontal", onClick: addMissingProjectionHandler, children: (0, jsx_runtime_1.jsx)(fa_1.FaCreativeCommonsSamplingPlus, {}) })), displayerMode === Constants_1.DISPLAYER_MODE.DM_1D && spectra.length > 1 && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Button_1.default.BarButton, { tooltipOrientation: "horizontal", toolTip: "Reset scale", onClick: resetScaleHandler, children: (0, jsx_runtime_1.jsx)(cheminfo_font_1.SvgNmrResetScale, {}) }), (0, jsx_runtime_1.jsx)(Button_1.default.BarButton, { tooltipOrientation: "horizontal", toolTip: "Same top", onClick: setSameTopHandler, children: (0, jsx_runtime_1.jsx)(cheminfo_font_1.SvgNmrSameTop, {}) })] })), (0, jsx_runtime_1.jsx)(SpectraAutomaticPickingButton_1.SpectraAutomaticPickingButton, {}), (0, jsx_runtime_1.jsx)(Button_1.default.BarButton, { tooltipOrientation: "horizontal", toolTip: "Recolor spectra", onClick: recolorSpectraHandler, children: (0, jsx_runtime_1.jsx)(io5_1.IoColorPaletteOutline, {}) })] }));
|
|
75
89
|
}
|
|
76
90
|
const MemoizedSpectraPanelHeader = (0, react_1.memo)(SpectraPanelHeaderInner);
|
|
77
|
-
function SpectrumsTabs({
|
|
91
|
+
function SpectrumsTabs({ onSettingClick, }) {
|
|
78
92
|
const { data, view: { spectra: { activeTab }, }, displayerMode, } = (0, ChartContext_1.useChartData)();
|
|
79
|
-
const
|
|
93
|
+
const spectrum = (0, useSpectrum_1.default)();
|
|
94
|
+
const activeSpectra = (0, useActiveSpectra_1.useActiveSpectra)();
|
|
80
95
|
return ((0, jsx_runtime_1.jsx)(MemoizedSpectraPanelHeader, { ...{
|
|
81
96
|
data,
|
|
82
|
-
activeSpectrum,
|
|
97
|
+
activeSpectrum: spectrum,
|
|
98
|
+
activeSpectra,
|
|
83
99
|
activeTab,
|
|
84
100
|
displayerMode,
|
|
85
|
-
|
|
101
|
+
onSettingClick,
|
|
86
102
|
} }));
|
|
87
103
|
}
|
|
88
104
|
exports.default = SpectrumsTabs;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
const formik_1 = require("formik");
|
|
8
|
+
const react_1 = require("react");
|
|
9
|
+
const ChartContext_1 = require("../../context/ChartContext");
|
|
10
|
+
const PreferencesContext_1 = require("../../context/PreferencesContext");
|
|
11
|
+
const useNucleus_1 = __importDefault(require("../../hooks/useNucleus"));
|
|
12
|
+
const usePanelPreferences_1 = require("../../hooks/usePanelPreferences");
|
|
13
|
+
const convertPathArrayToString_1 = require("../../utility/convertPathArrayToString");
|
|
14
|
+
const getSpectraObjectPaths_1 = require("../../utility/getSpectraObjectPaths");
|
|
15
|
+
const NucleusGroup_1 = require("../extra/preferences/NucleusGroup");
|
|
16
|
+
const PreferencesContainer_1 = require("../extra/preferences/PreferencesContainer");
|
|
17
|
+
const SpectraColumnsManager_1 = require("./base/SpectraColumnsManager");
|
|
18
|
+
function SpectraPreferences(props, ref) {
|
|
19
|
+
const formRef = (0, react_1.useRef)(null);
|
|
20
|
+
const { data } = (0, ChartContext_1.useChartData)();
|
|
21
|
+
const preferences = (0, PreferencesContext_1.usePreferences)();
|
|
22
|
+
const nuclei = (0, useNucleus_1.default)();
|
|
23
|
+
const preferencesByNuclei = (0, usePanelPreferences_1.usePanelPreferencesByNuclei)('spectra', nuclei);
|
|
24
|
+
const { datalist, paths } = (0, react_1.useMemo)(() => (0, getSpectraObjectPaths_1.getSpectraObjectPaths)(data), [data]);
|
|
25
|
+
function saveHandler(values) {
|
|
26
|
+
preferences.dispatch({
|
|
27
|
+
type: 'SET_PANELS_PREFERENCES',
|
|
28
|
+
payload: { key: 'spectra', value: values },
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
(0, react_1.useImperativeHandle)(ref, () => ({
|
|
32
|
+
saveSetting: () => {
|
|
33
|
+
formRef.current.submitForm();
|
|
34
|
+
},
|
|
35
|
+
}), []);
|
|
36
|
+
const handleAdd = (0, react_1.useCallback)((nucleus, index) => {
|
|
37
|
+
const data = formRef.current.values;
|
|
38
|
+
let columns = data.nuclei[nucleus].columns;
|
|
39
|
+
columns = [
|
|
40
|
+
...columns.slice(0, index),
|
|
41
|
+
{
|
|
42
|
+
jpath: [],
|
|
43
|
+
label: '',
|
|
44
|
+
visible: true,
|
|
45
|
+
},
|
|
46
|
+
...columns.slice(index),
|
|
47
|
+
];
|
|
48
|
+
formRef.current.setValues({
|
|
49
|
+
...data,
|
|
50
|
+
nuclei: {
|
|
51
|
+
...data.nuclei,
|
|
52
|
+
[nucleus]: {
|
|
53
|
+
...data[nucleus],
|
|
54
|
+
columns,
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
});
|
|
58
|
+
}, []);
|
|
59
|
+
const handleDelete = (0, react_1.useCallback)((nucleus, index) => {
|
|
60
|
+
const data = formRef.current.values;
|
|
61
|
+
const columns = data.nuclei[nucleus].columns.filter((_, columnIndex) => columnIndex !== index);
|
|
62
|
+
formRef.current.setValues({
|
|
63
|
+
...data,
|
|
64
|
+
nuclei: {
|
|
65
|
+
...data.nuclei,
|
|
66
|
+
[nucleus]: {
|
|
67
|
+
...data[nucleus],
|
|
68
|
+
columns,
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
});
|
|
72
|
+
}, []);
|
|
73
|
+
const mapOnChangeValueHandler = (0, react_1.useCallback)((key) => paths[key], [paths]);
|
|
74
|
+
const mapValue = (0, react_1.useCallback)((value) => (0, convertPathArrayToString_1.convertPathArrayToString)(value), []);
|
|
75
|
+
return ((0, jsx_runtime_1.jsx)(PreferencesContainer_1.PreferencesContainer, { children: (0, jsx_runtime_1.jsx)(formik_1.Formik, { innerRef: formRef, onSubmit: saveHandler, initialValues: preferencesByNuclei, children: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: nuclei?.map((n) => ((0, jsx_runtime_1.jsx)(NucleusGroup_1.NucleusGroup, { nucleus: n, children: (0, jsx_runtime_1.jsx)(SpectraColumnsManager_1.SpectraColumnsManager, { nucleus: n, onAdd: handleAdd, onDelete: handleDelete, mapOnChangeValue: mapOnChangeValueHandler, mapValue: mapValue, datalist: datalist }) }, n))) }) }) }));
|
|
76
|
+
}
|
|
77
|
+
exports.default = (0, react_1.memo)((0, react_1.forwardRef)(SpectraPreferences));
|