nmrium 2.5.0 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/component/1d/BrushTracker1D.d.ts.map +1 -1
- package/lib/component/1d/BrushTracker1D.js +158 -173
- package/lib/component/1d/BrushTracker1D.js.map +1 -1
- package/lib/component/1d/FloatPublicationString.js +6 -6
- package/lib/component/1d/FloatPublicationString.js.map +1 -1
- package/lib/component/1d/PredictionErrorsNotations.js +1 -1
- package/lib/component/1d/PredictionErrorsNotations.js.map +1 -1
- package/lib/component/1d/SimilarityTree.js +2 -2
- package/lib/component/1d/SimilarityTree.js.map +1 -1
- package/lib/component/1d/baseline/BaselinePreview.d.ts.map +1 -1
- package/lib/component/1d/baseline/BaselinePreview.js +47 -22
- package/lib/component/1d/baseline/BaselinePreview.js.map +1 -1
- package/lib/component/1d/baseline/getMedianY.d.ts +5 -1
- package/lib/component/1d/baseline/getMedianY.d.ts.map +1 -1
- package/lib/component/1d/baseline/getMedianY.js +19 -5
- package/lib/component/1d/baseline/getMedianY.js.map +1 -1
- package/lib/component/1d/inset/DraggableInset.js +1 -1
- package/lib/component/1d/inset/DraggableInset.js.map +1 -1
- package/lib/component/1d/matrix/useMatrix.d.ts.map +1 -1
- package/lib/component/1d/matrix/useMatrix.js +2 -2
- package/lib/component/1d/matrix/useMatrix.js.map +1 -1
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js +3 -3
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js.map +1 -1
- package/lib/component/1d/peaks/PeakAnnotations.js +1 -1
- package/lib/component/1d/peaks/PeakAnnotations.js.map +1 -1
- package/lib/component/1d/ranges/AssignmentLabel.d.ts.map +1 -1
- package/lib/component/1d/ranges/AssignmentLabel.js.map +1 -1
- package/lib/component/1d/ranges/FloatingRanges.d.ts.map +1 -1
- package/lib/component/1d/ranges/FloatingRanges.js +2 -3
- package/lib/component/1d/ranges/FloatingRanges.js.map +1 -1
- package/lib/component/1d/ranges/Range.d.ts.map +1 -1
- package/lib/component/1d/ranges/Range.js +3 -2
- package/lib/component/1d/ranges/Range.js.map +1 -1
- package/lib/component/1d/ranges/Ranges.js +1 -1
- package/lib/component/1d/ranges/Ranges.js.map +1 -1
- package/lib/component/1d-2d/FieldEdition.d.ts +1 -1
- package/lib/component/1d-2d/FieldEdition.d.ts.map +1 -1
- package/lib/component/1d-2d/FieldEdition.js +35 -31
- package/lib/component/1d-2d/FieldEdition.js.map +1 -1
- package/lib/component/1d-2d/components/FloatMoleculeStructures/FloatMolecules.js +1 -1
- package/lib/component/1d-2d/components/FloatMoleculeStructures/FloatMolecules.js.map +1 -1
- package/lib/component/1d-2d/components/Signals1D.d.ts.map +1 -1
- package/lib/component/1d-2d/components/Signals1D.js +10 -8
- package/lib/component/1d-2d/components/Signals1D.js.map +1 -1
- package/lib/component/1d-2d/components/axis_unit_picker.d.ts.map +1 -1
- package/lib/component/1d-2d/components/axis_unit_picker.js +1 -1
- package/lib/component/1d-2d/components/axis_unit_picker.js.map +1 -1
- package/lib/component/1d-2d/tools/BrushXY.d.ts.map +1 -1
- package/lib/component/1d-2d/tools/BrushXY.js +40 -28
- package/lib/component/1d-2d/tools/BrushXY.js.map +1 -1
- package/lib/component/1d-2d/tools/CrossLinePointer.d.ts.map +1 -1
- package/lib/component/1d-2d/tools/CrossLinePointer.js +27 -22
- package/lib/component/1d-2d/tools/CrossLinePointer.js.map +1 -1
- package/lib/component/1d-2d/tools/DistanceLine.d.ts +29 -0
- package/lib/component/1d-2d/tools/DistanceLine.d.ts.map +1 -0
- package/lib/component/1d-2d/tools/DistanceLine.js +132 -0
- package/lib/component/1d-2d/tools/DistanceLine.js.map +1 -0
- package/lib/component/2d/1d-tracer/Left1DChart.js +3 -2
- package/lib/component/2d/1d-tracer/Left1DChart.js.map +1 -1
- package/lib/component/2d/1d-tracer/Top1DChart.js +3 -2
- package/lib/component/2d/1d-tracer/Top1DChart.js.map +1 -1
- package/lib/component/2d/BrushTracker2D.d.ts.map +1 -1
- package/lib/component/2d/BrushTracker2D.js +20 -10
- package/lib/component/2d/BrushTracker2D.js.map +1 -1
- package/lib/component/2d/FooterBanner.d.ts.map +1 -1
- package/lib/component/2d/FooterBanner.js +2 -2
- package/lib/component/2d/FooterBanner.js.map +1 -1
- package/lib/component/2d/IndirectAxis2D.js +1 -1
- package/lib/component/2d/IndirectAxis2D.js.map +1 -1
- package/lib/component/2d/SignalDeltaLine.js +1 -1
- package/lib/component/2d/SignalDeltaLine.js.map +1 -1
- package/lib/component/2d/Viewer2D.d.ts.map +1 -1
- package/lib/component/2d/Viewer2D.js +2 -1
- package/lib/component/2d/Viewer2D.js.map +1 -1
- package/lib/component/2d/fid/FidCanvas.js +2 -2
- package/lib/component/2d/fid/FidCanvas.js.map +1 -1
- package/lib/component/2d/fid/FidContainer.js +3 -3
- package/lib/component/2d/fid/FidContainer.js.map +1 -1
- package/lib/component/2d/ft/Contours.d.ts.map +1 -1
- package/lib/component/2d/ft/Contours.js +37 -1
- package/lib/component/2d/ft/Contours.js.map +1 -1
- package/lib/component/2d/ft/FTContainer.d.ts.map +1 -1
- package/lib/component/2d/ft/FTContainer.js +2 -3
- package/lib/component/2d/ft/FTContainer.js.map +1 -1
- package/lib/component/2d/useTracesSpectra.d.ts.map +1 -1
- package/lib/component/2d/useTracesSpectra.js +5 -3
- package/lib/component/2d/useTracesSpectra.js.map +1 -1
- package/lib/component/2d/utilities/extractSpectrumSignals.d.ts +2 -1
- package/lib/component/2d/utilities/extractSpectrumSignals.d.ts.map +1 -1
- package/lib/component/2d/utilities/extractSpectrumSignals.js +26 -25
- package/lib/component/2d/utilities/extractSpectrumSignals.js.map +1 -1
- package/lib/component/2d/utilities/scale.d.ts.map +1 -1
- package/lib/component/2d/utilities/scale.js +1 -1
- package/lib/component/2d/utilities/scale.js.map +1 -1
- package/lib/component/2d/zones/SignalsGuideLines.d.ts.map +1 -1
- package/lib/component/2d/zones/SignalsGuideLines.js +15 -18
- package/lib/component/2d/zones/SignalsGuideLines.js.map +1 -1
- package/lib/component/AnchorSVG.d.ts +1 -1
- package/lib/component/AnchorSVG.d.ts.map +1 -1
- package/lib/component/AnchorSVG.js +3 -2
- package/lib/component/AnchorSVG.js.map +1 -1
- package/lib/component/EventsTrackers/BrushTracker.d.ts.map +1 -1
- package/lib/component/EventsTrackers/BrushTracker.js +1 -1
- package/lib/component/EventsTrackers/BrushTracker.js.map +1 -1
- package/lib/component/EventsTrackers/KeysListenerTracker.d.ts.map +1 -1
- package/lib/component/EventsTrackers/KeysListenerTracker.js +5 -1
- package/lib/component/EventsTrackers/KeysListenerTracker.js.map +1 -1
- package/lib/component/assignment/utilities/getAssignments.js +1 -1
- package/lib/component/assignment/utilities/getAssignments.js.map +1 -1
- package/lib/component/context/DispatchContext.d.ts +2 -1
- package/lib/component/context/DispatchContext.d.ts.map +1 -1
- package/lib/component/context/DispatchContext.js.map +1 -1
- package/lib/component/context/FilterSyncOptionsContext.d.ts.map +1 -1
- package/lib/component/context/FilterSyncOptionsContext.js +13 -13
- package/lib/component/context/FilterSyncOptionsContext.js.map +1 -1
- package/lib/component/context/KeyModifierContext.d.ts +4 -12
- package/lib/component/context/KeyModifierContext.d.ts.map +1 -1
- package/lib/component/context/KeyModifierContext.js +17 -35
- package/lib/component/context/KeyModifierContext.js.map +1 -1
- package/lib/component/context/processings_mutations_context.api.d.ts +14 -0
- package/lib/component/context/processings_mutations_context.api.d.ts.map +1 -0
- package/lib/component/context/processings_mutations_context.api.js +275 -0
- package/lib/component/context/processings_mutations_context.api.js.map +1 -0
- package/lib/component/context/processings_mutations_context.d.ts +5 -0
- package/lib/component/context/processings_mutations_context.d.ts.map +1 -0
- package/lib/component/context/processings_mutations_context.js +16 -0
- package/lib/component/context/processings_mutations_context.js.map +1 -0
- package/lib/component/elements/NumberInput2Controller.d.ts +1 -0
- package/lib/component/elements/NumberInput2Controller.d.ts.map +1 -1
- package/lib/component/elements/NumberInput2Controller.js +14 -3
- package/lib/component/elements/NumberInput2Controller.js.map +1 -1
- package/lib/component/elements/Sections.d.ts.map +1 -1
- package/lib/component/elements/Sections.js +1 -1
- package/lib/component/elements/Sections.js.map +1 -1
- package/lib/component/elements/TableHeaderLabel.d.ts +9 -0
- package/lib/component/elements/TableHeaderLabel.d.ts.map +1 -0
- package/lib/component/elements/TableHeaderLabel.js +30 -0
- package/lib/component/elements/TableHeaderLabel.js.map +1 -0
- package/lib/component/elements/print/PrintContent.d.ts +1 -0
- package/lib/component/elements/print/PrintContent.d.ts.map +1 -1
- package/lib/component/elements/print/PrintContent.js +77 -72
- package/lib/component/elements/print/PrintContent.js.map +1 -1
- package/lib/component/header/AutoPeakPickingOptionPanel.d.ts.map +1 -1
- package/lib/component/header/AutoPeakPickingOptionPanel.js +4 -4
- package/lib/component/header/AutoPeakPickingOptionPanel.js.map +1 -1
- package/lib/component/header/Header.d.ts.map +1 -1
- package/lib/component/header/Header.js +59 -5
- package/lib/component/header/Header.js.map +1 -1
- package/lib/component/header/RangesPickingOptionPanel.js +2 -2
- package/lib/component/header/RangesPickingOptionPanel.js.map +1 -1
- package/lib/component/header/SimpleBaseLineCorrectionOptionsPanel.d.ts.map +1 -1
- package/lib/component/header/SimpleBaseLineCorrectionOptionsPanel.js +1 -1
- package/lib/component/header/SimpleBaseLineCorrectionOptionsPanel.js.map +1 -1
- package/lib/component/header/base/BaseSimpleZeroFillingOptionsPanel.d.ts.map +1 -1
- package/lib/component/header/base/BaseSimpleZeroFillingOptionsPanel.js +1 -1
- package/lib/component/header/base/BaseSimpleZeroFillingOptionsPanel.js.map +1 -1
- package/lib/component/highlight/index.d.ts.map +1 -1
- package/lib/component/highlight/index.js +10 -36
- package/lib/component/highlight/index.js.map +1 -1
- package/lib/component/hooks/use2DReducer.d.ts.map +1 -1
- package/lib/component/hooks/use2DReducer.js +2 -2
- package/lib/component/hooks/use2DReducer.js.map +1 -1
- package/lib/component/hooks/useCheckPointsNumberInWindowArea.d.ts.map +1 -1
- package/lib/component/hooks/useCheckPointsNumberInWindowArea.js +3 -1
- package/lib/component/hooks/useCheckPointsNumberInWindowArea.js.map +1 -1
- package/lib/component/hooks/useCheckToolsVisibility.d.ts.map +1 -1
- package/lib/component/hooks/useCheckToolsVisibility.js +6 -1
- package/lib/component/hooks/useCheckToolsVisibility.js.map +1 -1
- package/lib/component/hooks/useSpectraBottomMargin.js +1 -1
- package/lib/component/hooks/useSpectraBottomMargin.js.map +1 -1
- package/lib/component/hooks/useSpectrum.d.ts +4 -0
- package/lib/component/hooks/useSpectrum.d.ts.map +1 -1
- package/lib/component/hooks/useSpectrum.js +9 -1
- package/lib/component/hooks/useSpectrum.js.map +1 -1
- package/lib/component/hooks/useTextMetrics.d.ts +2 -4
- package/lib/component/hooks/useTextMetrics.d.ts.map +1 -1
- package/lib/component/hooks/useTextMetrics.js +3 -2
- package/lib/component/hooks/useTextMetrics.js.map +1 -1
- package/lib/component/hooks/use_axis_unit.d.ts +3 -3
- package/lib/component/hooks/use_axis_unit.d.ts.map +1 -1
- package/lib/component/hooks/use_axis_unit.js +2 -8
- package/lib/component/hooks/use_axis_unit.js.map +1 -1
- package/lib/component/hooks/use_publication_strings.d.ts.map +1 -1
- package/lib/component/hooks/use_publication_strings.js +2 -3
- package/lib/component/hooks/use_publication_strings.js.map +1 -1
- package/lib/component/hooks/use_view_spectra.d.ts +6 -0
- package/lib/component/hooks/use_view_spectra.d.ts.map +1 -0
- package/lib/component/hooks/use_view_spectra.js +13 -0
- package/lib/component/hooks/use_view_spectra.js.map +1 -0
- package/lib/component/hooks/use_visible_spectra_1d.d.ts.map +1 -1
- package/lib/component/hooks/use_visible_spectra_1d.js +4 -2
- package/lib/component/hooks/use_visible_spectra_1d.js.map +1 -1
- package/lib/component/main/InnerNMRium.d.ts.map +1 -1
- package/lib/component/main/InnerNMRium.js +6 -5
- package/lib/component/main/InnerNMRium.js.map +1 -1
- package/lib/component/main/NMRium.d.ts +2 -2
- package/lib/component/main/NMRium.d.ts.map +1 -1
- package/lib/component/main/NMRiumStateProvider.d.ts.map +1 -1
- package/lib/component/main/NMRiumStateProvider.js +2 -1
- package/lib/component/main/NMRiumStateProvider.js.map +1 -1
- package/lib/component/main/types.d.ts +1 -1
- package/lib/component/main/types.d.ts.map +1 -1
- package/lib/component/modal/EditPeakShapeModal.d.ts.map +1 -1
- package/lib/component/modal/EditPeakShapeModal.js +102 -60
- package/lib/component/modal/EditPeakShapeModal.js.map +1 -1
- package/lib/component/modal/LoadJCAMPModal.d.ts.map +1 -1
- package/lib/component/modal/LoadJCAMPModal.js +22 -21
- package/lib/component/modal/LoadJCAMPModal.js.map +1 -1
- package/lib/component/modal/PublicationStringModal.d.ts.map +1 -1
- package/lib/component/modal/PublicationStringModal.js +3 -3
- package/lib/component/modal/PublicationStringModal.js.map +1 -1
- package/lib/component/modal/aboutUs/AboutUsModal.js +1 -1
- package/lib/component/modal/aboutUs/AboutUsModal.js.map +1 -1
- package/lib/component/modal/editRange/EditRangeModal.js +1 -1
- package/lib/component/modal/editRange/forms/components/DeltaInput.d.ts +1 -3
- package/lib/component/modal/editRange/forms/components/DeltaInput.d.ts.map +1 -1
- package/lib/component/modal/editRange/forms/components/DeltaInput.js +12 -20
- package/lib/component/modal/editRange/forms/components/DeltaInput.js.map +1 -1
- package/lib/component/modal/editRange/forms/components/DeltaLabel.d.ts +6 -0
- package/lib/component/modal/editRange/forms/components/DeltaLabel.d.ts.map +1 -0
- package/lib/component/modal/editRange/forms/components/DeltaLabel.js +12 -0
- package/lib/component/modal/editRange/forms/components/DeltaLabel.js.map +1 -0
- package/lib/component/modal/editRange/forms/components/SignalTab.d.ts.map +1 -1
- package/lib/component/modal/editRange/forms/components/SignalTab.js +2 -16
- package/lib/component/modal/editRange/forms/components/SignalTab.js.map +1 -1
- package/lib/component/modal/editRange/forms/components/SignalsContent.d.ts.map +1 -1
- package/lib/component/modal/editRange/forms/components/SignalsContent.js +32 -7
- package/lib/component/modal/editRange/forms/components/SignalsContent.js.map +1 -1
- package/lib/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.js +1 -1
- package/lib/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.js.map +1 -1
- package/lib/component/modal/editRange/forms/validation/EditRangeValidation.d.ts.map +1 -1
- package/lib/component/modal/editRange/forms/validation/EditRangeValidation.js +18 -3
- package/lib/component/modal/editRange/forms/validation/EditRangeValidation.js.map +1 -1
- package/lib/component/modal/metaImportation/MetaImportationModal.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/errors/context.d.ts +93 -85
- package/lib/component/modal/setting/tanstack_general_settings/errors/context.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/errors/context.js +2 -1
- package/lib/component/modal/setting/tanstack_general_settings/errors/context.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/errors/renderer.d.ts +93 -85
- package/lib/component/modal/setting/tanstack_general_settings/errors/renderer.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.d.ts +93 -85
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.d.ts +49 -42
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.d.ts +49 -42
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.d.ts +8 -7
- package/lib/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.d.ts +49 -42
- package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/axis_tab.d.ts +49 -42
- package/lib/component/modal/setting/tanstack_general_settings/tabs/axis_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.d.ts +49 -42
- package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.js +2 -3
- package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.d.ts +49 -42
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.d.ts +4 -2
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.js +5 -4
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.d.ts +49 -42
- package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.js +2 -3
- package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.d.ts +49 -42
- package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.d.ts +49 -42
- package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.d.ts +49 -42
- package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.d.ts +49 -42
- package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.d.ts +49 -42
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.js +3 -4
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.d.ts +49 -42
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.d.ts +49 -42
- package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.d.ts +49 -42
- package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.js +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/ui/table.d.ts +3 -4
- package/lib/component/modal/setting/tanstack_general_settings/ui/table.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/ui/table.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation/auto_processing_tab_validation.d.ts +28 -28
- package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.d.ts +24 -24
- package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.js +4 -3
- package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.d.ts +6 -6
- package/lib/component/modal/setting/tanstack_general_settings/validation/import_filters_tab_validation.d.ts +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.d.ts +4 -4
- package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.js +3 -2
- package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.d.ts +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.js +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation.d.ts +44 -43
- package/lib/component/modal/setting/tanstack_general_settings/validation.d.ts.map +1 -1
- package/lib/component/panels/AutomaticAssignment/AutomaticAssignment.js +1 -1
- package/lib/component/panels/AutomaticAssignment/AutomaticAssignment.js.map +1 -1
- package/lib/component/panels/AutomaticAssignment/useAutoAssignments.d.ts.map +1 -1
- package/lib/component/panels/AutomaticAssignment/useAutoAssignments.js +25 -9
- package/lib/component/panels/AutomaticAssignment/useAutoAssignments.js.map +1 -1
- package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanelHeader.js +1 -1
- package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanelHeader.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.js +1 -2
- package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/utilities/getAssignIds.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/utilities/getAssignIds.js +1 -1
- package/lib/component/panels/MoleculesPanel/utilities/getAssignIds.js.map +1 -1
- package/lib/component/panels/PeaksPanel/PeaksPreferences.d.ts.map +1 -1
- package/lib/component/panels/PeaksPanel/PeaksPreferences.js +15 -3
- package/lib/component/panels/PeaksPanel/PeaksPreferences.js.map +1 -1
- package/lib/component/panels/PeaksPanel/PeaksTable.d.ts.map +1 -1
- package/lib/component/panels/PeaksPanel/PeaksTable.js +49 -27
- package/lib/component/panels/PeaksPanel/PeaksTable.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesTableRow.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/RangesTableRow.js +3 -0
- package/lib/component/panels/RangesPanel/RangesTableRow.js.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.js +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.js.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraPanelHeader.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraPanelHeader.js +8 -15
- package/lib/component/panels/SpectraPanel/SpectraPanelHeader.js.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTable.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTable.js +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTable.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/ApplyToAllSelected.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/ApplyToAllSelected.js +6 -3
- package/lib/component/panels/SpectraPanel/base/setting/ApplyToAllSelected.js.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.d.ts +8 -6
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js +12 -12
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.d.ts +2 -2
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.js +14 -13
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.js.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.d.ts +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.d.ts +2 -2
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js +18 -15
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditLinkModal.d.ts +2 -2
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditLinkModal.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditLinkModal.js +7 -5
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditLinkModal.js.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.d.ts +2 -2
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.js +4 -4
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.js.map +1 -1
- package/lib/component/panels/SummaryPanel/Overview.d.ts +3 -7
- package/lib/component/panels/SummaryPanel/Overview.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/Overview.js +2 -5
- package/lib/component/panels/SummaryPanel/Overview.js.map +1 -1
- package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.js.map +1 -1
- package/lib/component/panels/SummaryPanel/SummaryPanel.d.ts +2 -2
- package/lib/component/panels/SummaryPanel/SummaryPanel.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/SummaryPanel.js +17 -18
- package/lib/component/panels/SummaryPanel/SummaryPanel.js.map +1 -1
- package/lib/component/panels/SummaryPanel/utilities/Utilities.d.ts +7 -7
- package/lib/component/panels/SummaryPanel/utilities/Utilities.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/utilities/Utilities.js +34 -31
- package/lib/component/panels/SummaryPanel/utilities/Utilities.js.map +1 -1
- package/lib/component/panels/SummaryPanel/utilities/useInView.d.ts +1 -1
- package/lib/component/panels/SummaryPanel/utilities/useInView.d.ts.map +1 -1
- package/lib/component/panels/databasePanel/DatabasePanel.d.ts.map +1 -1
- package/lib/component/panels/databasePanel/DatabasePanel.js +122 -101
- package/lib/component/panels/databasePanel/DatabasePanel.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseSearchOptions.d.ts +3 -0
- package/lib/component/panels/databasePanel/DatabaseSearchOptions.d.ts.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseSearchOptions.js +14 -16
- package/lib/component/panels/databasePanel/DatabaseSearchOptions.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/BaseLineCorrectionOptionsPanel.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/BaseLineCorrectionOptionsPanel.js +3 -3
- package/lib/component/panels/filtersPanel/Filters/BaseLineCorrectionOptionsPanel.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.d.ts +1 -1
- package/lib/component/panels/filtersPanel/Filters/base/BaseZeroFillingOptions.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/base/BaseZeroFillingOptions.js +2 -2
- package/lib/component/panels/filtersPanel/Filters/base/BaseZeroFillingOptions.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.d.ts +10 -26
- package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.js +3 -4
- package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.d.ts +4 -19
- package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.js +4 -7
- package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.js.map +1 -1
- package/lib/component/panels/filtersPanel/processings/operator_edit_banner.d.ts +11 -0
- package/lib/component/panels/filtersPanel/processings/operator_edit_banner.d.ts.map +1 -0
- package/lib/component/panels/filtersPanel/processings/operator_edit_banner.js +34 -0
- package/lib/component/panels/filtersPanel/processings/operator_edit_banner.js.map +1 -0
- package/lib/component/panels/filtersPanel/processings/processing_item.d.ts +16 -0
- package/lib/component/panels/filtersPanel/processings/processing_item.d.ts.map +1 -0
- package/lib/component/panels/filtersPanel/processings/processing_item.js +88 -0
- package/lib/component/panels/filtersPanel/processings/processing_item.js.map +1 -0
- package/lib/component/panels/filtersPanel/processings/processing_item_extra.d.ts +12 -0
- package/lib/component/panels/filtersPanel/processings/processing_item_extra.d.ts.map +1 -0
- package/lib/component/panels/filtersPanel/processings/processing_item_extra.js +17 -0
- package/lib/component/panels/filtersPanel/processings/processing_item_extra.js.map +1 -0
- package/lib/component/panels/filtersPanel/processings/use_live_edit.d.ts +11 -0
- package/lib/component/panels/filtersPanel/processings/use_live_edit.d.ts.map +1 -0
- package/lib/component/panels/filtersPanel/processings/use_live_edit.js +31 -0
- package/lib/component/panels/filtersPanel/processings/use_live_edit.js.map +1 -0
- package/lib/component/panels/filtersPanel/processings/use_live_operation.d.ts +3 -0
- package/lib/component/panels/filtersPanel/processings/use_live_operation.d.ts.map +1 -0
- package/lib/component/panels/filtersPanel/processings/use_live_operation.js +15 -0
- package/lib/component/panels/filtersPanel/processings/use_live_operation.js.map +1 -0
- package/lib/component/panels/filtersPanel/processings_sections_panel.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/processings_sections_panel.js +35 -104
- package/lib/component/panels/filtersPanel/processings_sections_panel.js.map +1 -1
- package/lib/component/reducer/Reducer.d.ts +18 -2
- package/lib/component/reducer/Reducer.d.ts.map +1 -1
- package/lib/component/reducer/Reducer.js +26 -7
- package/lib/component/reducer/Reducer.js.map +1 -1
- package/lib/component/reducer/actions/AssignmentsActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/AssignmentsActions.js +1 -2
- package/lib/component/reducer/actions/AssignmentsActions.js.map +1 -1
- package/lib/component/reducer/actions/CorrelationsActions.d.ts +4 -4
- package/lib/component/reducer/actions/CorrelationsActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/CorrelationsActions.js +10 -11
- package/lib/component/reducer/actions/CorrelationsActions.js.map +1 -1
- package/lib/component/reducer/actions/DatabaseActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/DatabaseActions.js +25 -9
- package/lib/component/reducer/actions/DatabaseActions.js.map +1 -1
- package/lib/component/reducer/actions/DomainActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/DomainActions.js +25 -15
- package/lib/component/reducer/actions/DomainActions.js.map +1 -1
- package/lib/component/reducer/actions/FiltersActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/FiltersActions.js +36 -59
- package/lib/component/reducer/actions/FiltersActions.js.map +1 -1
- package/lib/component/reducer/actions/InsetActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/InsetActions.js +1 -1
- package/lib/component/reducer/actions/InsetActions.js.map +1 -1
- package/lib/component/reducer/actions/IntegralsActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/IntegralsActions.js +2 -1
- package/lib/component/reducer/actions/IntegralsActions.js.map +1 -1
- package/lib/component/reducer/actions/LoadAction.d.ts.map +1 -1
- package/lib/component/reducer/actions/LoadAction.js +3 -3
- package/lib/component/reducer/actions/LoadAction.js.map +1 -1
- package/lib/component/reducer/actions/MoleculeActions.d.ts +2 -6
- package/lib/component/reducer/actions/MoleculeActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/MoleculeActions.js +1 -2
- package/lib/component/reducer/actions/MoleculeActions.js.map +1 -1
- package/lib/component/reducer/actions/PeaksActions.d.ts +5 -2
- package/lib/component/reducer/actions/PeaksActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/PeaksActions.js +18 -3
- package/lib/component/reducer/actions/PeaksActions.js.map +1 -1
- package/lib/component/reducer/actions/PreferencesActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/PreferencesActions.js +5 -3
- package/lib/component/reducer/actions/PreferencesActions.js.map +1 -1
- package/lib/component/reducer/actions/RangesActions.d.ts +12 -3
- package/lib/component/reducer/actions/RangesActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/RangesActions.js +45 -13
- package/lib/component/reducer/actions/RangesActions.js.map +1 -1
- package/lib/component/reducer/actions/SpectraActions.d.ts +2 -8
- package/lib/component/reducer/actions/SpectraActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/SpectraActions.js +6 -11
- package/lib/component/reducer/actions/SpectraActions.js.map +1 -1
- package/lib/component/reducer/actions/ToolsActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/ToolsActions.js +3 -8
- package/lib/component/reducer/actions/ToolsActions.js.map +1 -1
- package/lib/component/reducer/actions/ZonesActions.d.ts +9 -2
- package/lib/component/reducer/actions/ZonesActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/ZonesActions.js +27 -12
- package/lib/component/reducer/actions/ZonesActions.js.map +1 -1
- package/lib/component/reducer/actions/processings_actions.d.ts +30 -0
- package/lib/component/reducer/actions/processings_actions.d.ts.map +1 -0
- package/lib/component/reducer/actions/processings_actions.js +50 -0
- package/lib/component/reducer/actions/processings_actions.js.map +1 -0
- package/lib/component/reducer/helper/ZoomHistoryManager.d.ts +1 -0
- package/lib/component/reducer/helper/ZoomHistoryManager.d.ts.map +1 -1
- package/lib/component/reducer/helper/ZoomHistoryManager.js +10 -0
- package/lib/component/reducer/helper/ZoomHistoryManager.js.map +1 -1
- package/lib/component/reducer/preferences/actions/initPreferences.d.ts.map +1 -1
- package/lib/component/reducer/preferences/actions/initPreferences.js +4 -1
- package/lib/component/reducer/preferences/actions/initPreferences.js.map +1 -1
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.d.ts.map +1 -1
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js +2 -0
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js.map +1 -1
- package/lib/component/reducer/preferences/preferencesReducer.d.ts +2 -2
- package/lib/component/reducer/preferences/preferencesReducer.d.ts.map +1 -1
- package/lib/component/reducer/preferences/preferencesReducer.js.map +1 -1
- package/lib/component/reducer/preferences/utilities/mapWorkspaces.d.ts +2 -4
- package/lib/component/reducer/preferences/utilities/mapWorkspaces.d.ts.map +1 -1
- package/lib/component/reducer/preferences/utilities/mapWorkspaces.js +2 -9
- package/lib/component/reducer/preferences/utilities/mapWorkspaces.js.map +1 -1
- package/lib/component/toolbar/ToolTypes.d.ts.map +1 -1
- package/lib/component/toolbar/ToolTypes.js +15 -0
- package/lib/component/toolbar/ToolTypes.js.map +1 -1
- package/lib/component/toolbar/nmr_toolbar.d.ts.map +1 -1
- package/lib/component/toolbar/nmr_toolbar.js +49 -22
- package/lib/component/toolbar/nmr_toolbar.js.map +1 -1
- package/lib/component/utility/core_slots/core_operator_expanded.d.ts +10 -0
- package/lib/component/utility/core_slots/core_operator_expanded.d.ts.map +1 -0
- package/lib/component/utility/{CoreSlot.js → core_slots/core_operator_expanded.js} +2 -21
- package/lib/component/utility/core_slots/core_operator_expanded.js.map +1 -0
- package/lib/component/utility/core_slots/core_operator_name.d.ts +9 -0
- package/lib/component/utility/core_slots/core_operator_name.d.ts.map +1 -0
- package/lib/component/utility/core_slots/core_operator_name.js +10 -0
- package/lib/component/utility/core_slots/core_operator_name.js.map +1 -0
- package/lib/component/utility/core_slots/core_operator_panel_tool.d.ts +9 -0
- package/lib/component/utility/core_slots/core_operator_panel_tool.d.ts.map +1 -0
- package/lib/component/utility/core_slots/core_operator_panel_tool.js +15 -0
- package/lib/component/utility/core_slots/core_operator_panel_tool.js.map +1 -0
- package/lib/component/utility/core_slots/core_operator_tool.d.ts +9 -0
- package/lib/component/utility/core_slots/core_operator_tool.d.ts.map +1 -0
- package/lib/component/utility/core_slots/core_operator_tool.js +15 -0
- package/lib/component/utility/core_slots/core_operator_tool.js.map +1 -0
- package/lib/component/utility/core_slots/core_operator_topbar.d.ts +8 -0
- package/lib/component/utility/core_slots/core_operator_topbar.d.ts.map +1 -0
- package/lib/component/utility/core_slots/core_operator_topbar.js +36 -0
- package/lib/component/utility/core_slots/core_operator_topbar.js.map +1 -0
- package/lib/component/utility/core_slots/core_slot.d.ts +17 -0
- package/lib/component/utility/core_slots/core_slot.d.ts.map +1 -0
- package/lib/component/utility/core_slots/core_slot.js +14 -0
- package/lib/component/utility/core_slots/core_slot.js.map +1 -0
- package/lib/component/utility/formatNumber.d.ts +2 -0
- package/lib/component/utility/formatNumber.d.ts.map +1 -1
- package/lib/component/utility/formatNumber.js +9 -2
- package/lib/component/utility/formatNumber.js.map +1 -1
- package/lib/component/utility/toolbar_item_error.d.ts +3 -0
- package/lib/component/utility/toolbar_item_error.d.ts.map +1 -0
- package/lib/component/utility/toolbar_item_error.js +14 -0
- package/lib/component/utility/toolbar_item_error.js.map +1 -0
- package/lib/component/workspaces/assignment.d.ts.map +1 -1
- package/lib/component/workspaces/assignment.js +1 -0
- package/lib/component/workspaces/assignment.js.map +1 -1
- package/lib/component/workspaces/basic.d.ts.map +1 -1
- package/lib/component/workspaces/basic.js +1 -0
- package/lib/component/workspaces/basic.js.map +1 -1
- package/lib/component/workspaces/exercise.d.ts.map +1 -1
- package/lib/component/workspaces/exercise.js +1 -0
- package/lib/component/workspaces/exercise.js.map +1 -1
- package/lib/component/workspaces/prediction.d.ts.map +1 -1
- package/lib/component/workspaces/prediction.js +1 -0
- package/lib/component/workspaces/prediction.js.map +1 -1
- package/lib/component/workspaces/process1D.d.ts.map +1 -1
- package/lib/component/workspaces/process1D.js +1 -0
- package/lib/component/workspaces/process1D.js.map +1 -1
- package/lib/component/workspaces/workspaceDefaultProperties.d.ts.map +1 -1
- package/lib/component/workspaces/workspaceDefaultProperties.js +1 -0
- package/lib/component/workspaces/workspaceDefaultProperties.js.map +1 -1
- package/lib/data/SpectraManager.d.ts.map +1 -1
- package/lib/data/SpectraManager.js +2 -3
- package/lib/data/SpectraManager.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/SumManager.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/SumManager.js +2 -1
- package/lib/data/data1d/Spectrum1D/SumManager.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/index.d.ts +0 -1
- package/lib/data/data1d/Spectrum1D/index.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/index.js +0 -1
- package/lib/data/data1d/Spectrum1D/index.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.js +5 -2
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/changePeakRelativeValue.d.ts +7 -0
- package/lib/data/data1d/Spectrum1D/peaks/changePeakRelativeValue.d.ts.map +1 -0
- package/lib/data/data1d/Spectrum1D/peaks/changePeakRelativeValue.js +14 -0
- package/lib/data/data1d/Spectrum1D/peaks/changePeakRelativeValue.js.map +1 -0
- package/lib/data/data1d/multipleSpectraAnalysis.d.ts.map +1 -1
- package/lib/data/data1d/multipleSpectraAnalysis.js +2 -2
- package/lib/data/data1d/multipleSpectraAnalysis.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/contours.d.ts +1 -2
- package/lib/data/data2d/Spectrum2D/contours.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/contours.js +2 -2
- package/lib/data/data2d/Spectrum2D/contours.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/getMissingProjection.d.ts +1 -1
- package/lib/data/data2d/Spectrum2D/getMissingProjection.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/getSlice.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/getSlice.js +3 -3
- package/lib/data/data2d/Spectrum2D/getSlice.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/index.d.ts +0 -1
- package/lib/data/data2d/Spectrum2D/index.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/index.js +0 -1
- package/lib/data/data2d/Spectrum2D/index.js.map +1 -1
- package/lib/data/get_view_spectra.d.ts +11 -0
- package/lib/data/get_view_spectra.d.ts.map +1 -0
- package/lib/data/get_view_spectra.js +10 -0
- package/lib/data/get_view_spectra.js.map +1 -0
- package/lib/data/utilities/FindUtilities.d.ts.map +1 -1
- package/lib/data/utilities/FindUtilities.js +1 -2
- package/lib/data/utilities/FindUtilities.js.map +1 -1
- package/lib/data/utilities/RangeUtilities.d.ts +1 -1
- package/lib/data/utilities/RangeUtilities.d.ts.map +1 -1
- package/lib/data/utilities/RangeUtilities.js +3 -1
- package/lib/data/utilities/RangeUtilities.js.map +1 -1
- package/lib/data/utilities/getPeakAbsoluteArea.d.ts +3 -0
- package/lib/data/utilities/getPeakAbsoluteArea.d.ts.map +1 -0
- package/lib/data/utilities/getPeakAbsoluteArea.js +6 -0
- package/lib/data/utilities/getPeakAbsoluteArea.js.map +1 -0
- package/lib/versionInfo.js +1 -1
- package/package.json +39 -42
- package/src/component/1d/BrushTracker1D.tsx +170 -185
- package/src/component/1d/FloatPublicationString.tsx +6 -6
- package/src/component/1d/PredictionErrorsNotations.tsx +1 -1
- package/src/component/1d/SimilarityTree.tsx +2 -2
- package/src/component/1d/baseline/BaselinePreview.tsx +43 -13
- package/src/component/1d/baseline/getMedianY.ts +23 -5
- package/src/component/1d/inset/DraggableInset.tsx +1 -1
- package/src/component/1d/matrix/useMatrix.ts +2 -2
- package/src/component/1d/multiplicityTree/MultiplicityTree.tsx +4 -3
- package/src/component/1d/peaks/PeakAnnotations.tsx +1 -1
- package/src/component/1d/ranges/AssignmentLabel.tsx +1 -0
- package/src/component/1d/ranges/FloatingRanges.tsx +3 -4
- package/src/component/1d/ranges/Range.tsx +3 -5
- package/src/component/1d/ranges/Ranges.tsx +1 -1
- package/src/component/1d-2d/FieldEdition.tsx +56 -63
- package/src/component/1d-2d/components/FloatMoleculeStructures/FloatMolecules.tsx +1 -1
- package/src/component/1d-2d/components/Signals1D.tsx +12 -8
- package/src/component/1d-2d/components/axis_unit_picker.tsx +1 -1
- package/src/component/1d-2d/tools/BrushXY.tsx +45 -28
- package/src/component/1d-2d/tools/CrossLinePointer.tsx +34 -22
- package/src/component/1d-2d/tools/DistanceLine.tsx +253 -0
- package/src/component/2d/1d-tracer/Left1DChart.tsx +3 -3
- package/src/component/2d/1d-tracer/Top1DChart.tsx +4 -4
- package/src/component/2d/BrushTracker2D.tsx +25 -13
- package/src/component/2d/FooterBanner.tsx +2 -5
- package/src/component/2d/IndirectAxis2D.tsx +1 -1
- package/src/component/2d/SignalDeltaLine.tsx +1 -1
- package/src/component/2d/Viewer2D.tsx +2 -0
- package/src/component/2d/fid/FidCanvas.tsx +2 -2
- package/src/component/2d/fid/FidContainer.tsx +4 -4
- package/src/component/2d/ft/Contours.tsx +93 -24
- package/src/component/2d/ft/FTContainer.tsx +3 -4
- package/src/component/2d/useTracesSpectra.ts +5 -3
- package/src/component/2d/utilities/extractSpectrumSignals.ts +34 -26
- package/src/component/2d/utilities/scale.ts +1 -1
- package/src/component/2d/zones/SignalsGuideLines.tsx +18 -25
- package/src/component/AnchorSVG.tsx +7 -7
- package/src/component/EventsTrackers/BrushTracker.tsx +1 -1
- package/src/component/EventsTrackers/KeysListenerTracker.tsx +6 -1
- package/src/component/assignment/utilities/getAssignments.ts +1 -1
- package/src/component/context/DispatchContext.tsx +3 -1
- package/src/component/context/FilterSyncOptionsContext.tsx +15 -15
- package/src/component/context/KeyModifierContext.tsx +36 -45
- package/src/component/context/processings_mutations_context.api.ts +371 -0
- package/src/component/context/processings_mutations_context.tsx +28 -0
- package/src/component/elements/NumberInput2Controller.tsx +20 -1
- package/src/component/elements/Sections.tsx +1 -1
- package/src/component/elements/TableHeaderLabel.tsx +50 -0
- package/src/component/elements/print/PrintContent.tsx +130 -122
- package/src/component/header/AutoPeakPickingOptionPanel.tsx +10 -4
- package/src/component/header/Header.tsx +99 -8
- package/src/component/header/RangesPickingOptionPanel.tsx +2 -2
- package/src/component/header/SimpleBaseLineCorrectionOptionsPanel.tsx +1 -3
- package/src/component/header/base/BaseSimpleZeroFillingOptionsPanel.tsx +7 -4
- package/src/component/highlight/index.tsx +11 -37
- package/src/component/hooks/use2DReducer.tsx +2 -2
- package/src/component/hooks/useCheckPointsNumberInWindowArea.ts +4 -2
- package/src/component/hooks/useCheckToolsVisibility.ts +11 -1
- package/src/component/hooks/useSpectraBottomMargin.ts +1 -1
- package/src/component/hooks/useSpectrum.ts +12 -1
- package/src/component/hooks/useTextMetrics.ts +10 -9
- package/src/component/hooks/use_axis_unit.ts +2 -8
- package/src/component/hooks/use_publication_strings.ts +2 -4
- package/src/component/hooks/use_view_spectra.ts +16 -0
- package/src/component/hooks/use_visible_spectra_1d.ts +5 -2
- package/src/component/main/InnerNMRium.tsx +50 -47
- package/src/component/main/NMRium.tsx +2 -2
- package/src/component/main/NMRiumStateProvider.tsx +4 -1
- package/src/component/main/types.ts +1 -1
- package/src/component/modal/EditPeakShapeModal.tsx +179 -118
- package/src/component/modal/LoadJCAMPModal.tsx +58 -57
- package/src/component/modal/PublicationStringModal.tsx +2 -3
- package/src/component/modal/aboutUs/AboutUsModal.tsx +1 -1
- package/src/component/modal/editRange/EditRangeModal.tsx +1 -1
- package/src/component/modal/editRange/forms/components/DeltaInput.tsx +17 -31
- package/src/component/modal/editRange/forms/components/DeltaLabel.tsx +19 -0
- package/src/component/modal/editRange/forms/components/SignalTab.tsx +5 -21
- package/src/component/modal/editRange/forms/components/SignalsContent.tsx +40 -6
- package/src/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.tsx +1 -1
- package/src/component/modal/editRange/forms/validation/EditRangeValidation.ts +75 -52
- package/src/component/modal/metaImportation/MetaImportationModal.tsx +3 -3
- package/src/component/modal/setting/tanstack_general_settings/errors/context.tsx +2 -1
- package/src/component/modal/setting/tanstack_general_settings/tabs/database_tab.tsx +2 -3
- package/src/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.tsx +10 -5
- package/src/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.tsx +2 -3
- package/src/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.tsx +8 -4
- package/src/component/modal/setting/tanstack_general_settings/tabs/tools_tab.tsx +3 -0
- package/src/component/modal/setting/tanstack_general_settings/ui/table.tsx +3 -4
- package/src/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.ts +4 -3
- package/src/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.ts +3 -2
- package/src/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.ts +1 -0
- package/src/component/panels/AutomaticAssignment/AutomaticAssignment.tsx +1 -1
- package/src/component/panels/AutomaticAssignment/useAutoAssignments.ts +29 -12
- package/src/component/panels/MatrixGenerationPanel/MatrixGenerationPanelHeader.tsx +1 -1
- package/src/component/panels/MoleculesPanel/hooks/useAtomAssignment.tsx +1 -2
- package/src/component/panels/MoleculesPanel/utilities/getAssignIds.ts +1 -2
- package/src/component/panels/PeaksPanel/PeaksPreferences.tsx +15 -3
- package/src/component/panels/PeaksPanel/PeaksTable.tsx +92 -29
- package/src/component/panels/RangesPanel/RangesTableRow.tsx +4 -0
- package/src/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.tsx +1 -1
- package/src/component/panels/SpectraPanel/SpectraPanelHeader.tsx +10 -18
- package/src/component/panels/SpectraPanel/SpectraTable.tsx +1 -1
- package/src/component/panels/SpectraPanel/base/setting/ApplyToAllSelected.tsx +6 -3
- package/src/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.tsx +45 -44
- package/src/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.tsx +23 -21
- package/src/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.tsx +1 -1
- package/src/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.tsx +33 -28
- package/src/component/panels/SummaryPanel/CorrelationTable/editLink/EditLinkModal.tsx +14 -11
- package/src/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.tsx +12 -10
- package/src/component/panels/SummaryPanel/Overview.tsx +4 -12
- package/src/component/panels/SummaryPanel/SetShiftTolerancesModal.tsx +2 -2
- package/src/component/panels/SummaryPanel/SummaryPanel.tsx +32 -33
- package/src/component/panels/SummaryPanel/utilities/Utilities.ts +60 -58
- package/src/component/panels/SummaryPanel/utilities/useInView.ts +1 -1
- package/src/component/panels/databasePanel/DatabasePanel.tsx +173 -121
- package/src/component/panels/databasePanel/DatabaseSearchOptions.tsx +41 -16
- package/src/component/panels/filtersPanel/Filters/BaseLineCorrectionOptionsPanel.tsx +3 -8
- package/src/component/panels/filtersPanel/Filters/base/BaseZeroFillingOptions.tsx +2 -4
- package/src/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.tsx +6 -8
- package/src/component/panels/filtersPanel/Filters/hooks/useZeroFilling.tsx +9 -13
- package/src/component/panels/filtersPanel/processings/operator_edit_banner.tsx +73 -0
- package/src/component/panels/filtersPanel/processings/processing_item.tsx +211 -0
- package/src/component/panels/filtersPanel/processings/processing_item_extra.tsx +63 -0
- package/src/component/panels/filtersPanel/processings/use_live_edit.ts +47 -0
- package/src/component/panels/filtersPanel/processings/use_live_operation.ts +22 -0
- package/src/component/panels/filtersPanel/processings_sections_panel.tsx +87 -254
- package/src/component/reducer/Reducer.ts +50 -9
- package/src/component/reducer/actions/AssignmentsActions.ts +1 -2
- package/src/component/reducer/actions/CorrelationsActions.ts +21 -19
- package/src/component/reducer/actions/DatabaseActions.ts +29 -15
- package/src/component/reducer/actions/DomainActions.ts +35 -24
- package/src/component/reducer/actions/FiltersActions.ts +56 -77
- package/src/component/reducer/actions/InsetActions.ts +1 -1
- package/src/component/reducer/actions/IntegralsActions.ts +1 -1
- package/src/component/reducer/actions/LoadAction.ts +8 -5
- package/src/component/reducer/actions/MoleculeActions.ts +1 -2
- package/src/component/reducer/actions/PeaksActions.ts +29 -2
- package/src/component/reducer/actions/PreferencesActions.ts +7 -4
- package/src/component/reducer/actions/RangesActions.ts +72 -17
- package/src/component/reducer/actions/SpectraActions.ts +8 -25
- package/src/component/reducer/actions/ToolsActions.ts +4 -10
- package/src/component/reducer/actions/ZonesActions.ts +44 -14
- package/src/component/reducer/actions/processings_actions.ts +130 -0
- package/src/component/reducer/helper/ZoomHistoryManager.ts +17 -0
- package/src/component/reducer/preferences/actions/initPreferences.ts +4 -1
- package/src/component/reducer/preferences/panelsPreferencesDefaultValues.ts +2 -0
- package/src/component/reducer/preferences/preferencesReducer.ts +3 -3
- package/src/component/reducer/preferences/utilities/mapWorkspaces.ts +9 -21
- package/src/component/toolbar/ToolTypes.ts +15 -0
- package/src/component/toolbar/nmr_toolbar.tsx +44 -4
- package/src/component/utility/{CoreSlot.tsx → core_slots/core_operator_expanded.tsx} +5 -57
- package/src/component/utility/core_slots/core_operator_name.tsx +21 -0
- package/src/component/utility/core_slots/core_operator_panel_tool.tsx +41 -0
- package/src/component/utility/core_slots/core_operator_tool.tsx +41 -0
- package/src/component/utility/core_slots/core_operator_topbar.tsx +65 -0
- package/src/component/utility/core_slots/core_slot.tsx +39 -0
- package/src/component/utility/formatNumber.ts +24 -2
- package/src/component/utility/toolbar_item_error.tsx +29 -0
- package/src/component/workspaces/assignment.ts +1 -0
- package/src/component/workspaces/basic.ts +1 -0
- package/src/component/workspaces/exercise.ts +1 -0
- package/src/component/workspaces/prediction.ts +1 -0
- package/src/component/workspaces/process1D.ts +1 -0
- package/src/component/workspaces/workspaceDefaultProperties.ts +1 -0
- package/src/data/SpectraManager.ts +2 -3
- package/src/data/data1d/Spectrum1D/SumManager.ts +1 -1
- package/src/data/data1d/Spectrum1D/index.ts +0 -1
- package/src/data/data1d/Spectrum1D/initiateDatum1D.ts +4 -2
- package/src/data/data1d/Spectrum1D/peaks/changePeakRelativeValue.ts +26 -0
- package/src/data/data1d/multipleSpectraAnalysis.ts +2 -1
- package/src/data/data2d/Spectrum2D/contours.ts +3 -5
- package/src/data/data2d/Spectrum2D/getSlice.ts +3 -4
- package/src/data/data2d/Spectrum2D/index.ts +0 -1
- package/src/data/get_view_spectra.ts +21 -0
- package/src/data/utilities/FindUtilities.ts +1 -3
- package/src/data/utilities/RangeUtilities.ts +5 -2
- package/src/data/utilities/getPeakAbsoluteArea.ts +7 -0
- package/src/versionInfo.ts +1 -1
- package/lib/component/panels/hooks/use_processings_mutation.d.ts +0 -10
- package/lib/component/panels/hooks/use_processings_mutation.d.ts.map +0 -1
- package/lib/component/panels/hooks/use_processings_mutation.js +0 -130
- package/lib/component/panels/hooks/use_processings_mutation.js.map +0 -1
- package/lib/component/utility/CoreSlot.d.ts +0 -27
- package/lib/component/utility/CoreSlot.d.ts.map +0 -1
- package/lib/component/utility/CoreSlot.js.map +0 -1
- package/lib/data/data1d/Spectrum1D/isSpectrum1D.d.ts +0 -5
- package/lib/data/data1d/Spectrum1D/isSpectrum1D.d.ts.map +0 -1
- package/lib/data/data1d/Spectrum1D/isSpectrum1D.js +0 -10
- package/lib/data/data1d/Spectrum1D/isSpectrum1D.js.map +0 -1
- package/lib/data/data2d/Spectrum2D/isSpectrum2D.d.ts +0 -14
- package/lib/data/data2d/Spectrum2D/isSpectrum2D.d.ts.map +0 -1
- package/lib/data/data2d/Spectrum2D/isSpectrum2D.js +0 -22
- package/lib/data/data2d/Spectrum2D/isSpectrum2D.js.map +0 -1
- package/src/component/panels/hooks/use_processings_mutation.ts +0 -171
- package/src/data/data1d/Spectrum1D/isSpectrum1D.ts +0 -19
- package/src/data/data2d/Spectrum2D/isSpectrum2D.ts +0 -36
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { Range, Zone } from '@zakodium/nmr-types';
|
|
2
2
|
import type { Spectrum } from '@zakodium/nmrium-core';
|
|
3
|
-
|
|
4
|
-
import { isSpectrum1D } from '../../../../data/data1d/Spectrum1D/isSpectrum1D.js';
|
|
3
|
+
import { isSpectrum1D } from '@zakodium/nmrium-core';
|
|
5
4
|
|
|
6
5
|
interface TargetAssignment {
|
|
7
6
|
key: string;
|
|
@@ -66,19 +66,31 @@ const formatFields: NucleusPreferenceField[] = [
|
|
|
66
66
|
formatFieldName: 'tablePreferences.mu.format',
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
|
-
id:
|
|
69
|
+
id: 9,
|
|
70
70
|
label: 'gamma :',
|
|
71
71
|
checkFieldName: 'tablePreferences.gamma.show',
|
|
72
72
|
formatFieldName: 'tablePreferences.gamma.format',
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
|
-
id:
|
|
75
|
+
id: 10,
|
|
76
|
+
label: 'Absolute area :',
|
|
77
|
+
checkFieldName: 'tablePreferences.absoluteArea.show',
|
|
78
|
+
formatFieldName: 'tablePreferences.absoluteArea.format',
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
id: 11,
|
|
82
|
+
label: 'Relative area :',
|
|
83
|
+
checkFieldName: 'tablePreferences.relativeArea.show',
|
|
84
|
+
formatFieldName: 'tablePreferences.relativeArea.format',
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
id: 12,
|
|
76
88
|
label: 'Delete action :',
|
|
77
89
|
checkFieldName: 'tablePreferences.showDeleteAction',
|
|
78
90
|
hideFormatField: true,
|
|
79
91
|
},
|
|
80
92
|
{
|
|
81
|
-
id:
|
|
93
|
+
id: 13,
|
|
82
94
|
label: 'Edit peak shape action :',
|
|
83
95
|
checkFieldName: 'tablePreferences.showEditPeakShapeAction',
|
|
84
96
|
hideFormatField: true,
|
|
@@ -4,6 +4,7 @@ import { memo, useCallback, useMemo, useState } from 'react';
|
|
|
4
4
|
import { FaEdit, FaRegTrashAlt } from 'react-icons/fa';
|
|
5
5
|
import type { CellProps, Row } from 'react-table';
|
|
6
6
|
|
|
7
|
+
import { getPeakAbsoluteArea } from '../../../data/utilities/getPeakAbsoluteArea.ts';
|
|
7
8
|
import { useDispatch } from '../../context/DispatchContext.js';
|
|
8
9
|
import { EditableColumn } from '../../elements/EditableColumn.js';
|
|
9
10
|
import { EmptyText } from '../../elements/EmptyText.js';
|
|
@@ -12,12 +13,20 @@ import type { ControlCustomColumn } from '../../elements/ReactTable/utility/addC
|
|
|
12
13
|
import addCustomColumn, {
|
|
13
14
|
createActionColumn,
|
|
14
15
|
} from '../../elements/ReactTable/utility/addCustomColumn.js';
|
|
16
|
+
import { TableHeaderLabel } from '../../elements/TableHeaderLabel.tsx';
|
|
15
17
|
import { usePanelPreferences } from '../../hooks/usePanelPreferences.js';
|
|
16
18
|
import { formatNumber } from '../../utility/formatNumber.js';
|
|
17
19
|
import { NoDataForFid } from '../extra/placeholder/NoDataForFid.js';
|
|
18
20
|
|
|
19
21
|
import type { PeakRecord } from './PeaksPanel.js';
|
|
20
22
|
|
|
23
|
+
function getFormattedNumber(
|
|
24
|
+
value: unknown,
|
|
25
|
+
format: Parameters<typeof formatNumber>[1],
|
|
26
|
+
) {
|
|
27
|
+
return typeof value === 'number' ? formatNumber(value, format) : '';
|
|
28
|
+
}
|
|
29
|
+
|
|
21
30
|
export function usePeaksTableColumns(activeTab: string) {
|
|
22
31
|
const dispatch = useDispatch();
|
|
23
32
|
const { tablePreferences } = usePanelPreferences('peaks', activeTab);
|
|
@@ -46,6 +55,16 @@ export function usePeaksTableColumns(activeTab: string) {
|
|
|
46
55
|
[dispatch],
|
|
47
56
|
);
|
|
48
57
|
|
|
58
|
+
const saveRelativeAreaHandler = useCallback(
|
|
59
|
+
(value: string | number, id: string) => {
|
|
60
|
+
dispatch({
|
|
61
|
+
type: 'CHANGE_PEAK_RELATIVE',
|
|
62
|
+
payload: { value: Number(value), id },
|
|
63
|
+
});
|
|
64
|
+
},
|
|
65
|
+
[dispatch],
|
|
66
|
+
);
|
|
67
|
+
|
|
49
68
|
const COLUMNS = useMemo<Array<ControlCustomColumn<PeakRecord>>>(
|
|
50
69
|
() => [
|
|
51
70
|
{
|
|
@@ -58,7 +77,16 @@ export function usePeaksTableColumns(activeTab: string) {
|
|
|
58
77
|
{
|
|
59
78
|
showWhen: 'deltaPPM.show',
|
|
60
79
|
index: 3,
|
|
61
|
-
Header:
|
|
80
|
+
Header: () => {
|
|
81
|
+
return (
|
|
82
|
+
<TableHeaderLabel
|
|
83
|
+
text="δ (ppm)"
|
|
84
|
+
shortText="δ"
|
|
85
|
+
fontSize={12}
|
|
86
|
+
fontWeight="bold"
|
|
87
|
+
/>
|
|
88
|
+
);
|
|
89
|
+
},
|
|
62
90
|
accessor: 'x',
|
|
63
91
|
Cell: ({ row }: CellProps<PeakRecord>) => (
|
|
64
92
|
<EditableColumn
|
|
@@ -107,48 +135,82 @@ export function usePeaksTableColumns(activeTab: string) {
|
|
|
107
135
|
showWhen: 'fwhm.show',
|
|
108
136
|
index: 8,
|
|
109
137
|
Header: 'fwhm',
|
|
110
|
-
accessor: (row) => row?.shape?.fwhm
|
|
111
|
-
Cell: ({ row }: CellProps<PeakRecord>) =>
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
return formatNumber(fwhm, tablePreferences.fwhm.format);
|
|
117
|
-
},
|
|
138
|
+
accessor: (row) => row?.shape?.fwhm ?? '',
|
|
139
|
+
Cell: ({ row }: CellProps<PeakRecord>) =>
|
|
140
|
+
getFormattedNumber(
|
|
141
|
+
row.original?.shape?.fwhm,
|
|
142
|
+
tablePreferences.fwhm.format,
|
|
143
|
+
),
|
|
118
144
|
},
|
|
119
145
|
{
|
|
120
146
|
showWhen: 'mu.show',
|
|
121
147
|
index: 9,
|
|
122
148
|
Header: 'mu',
|
|
123
149
|
accessor: (row) =>
|
|
124
|
-
|
|
150
|
+
row?.shape?.kind === 'pseudoVoigt' ? (row.shape.mu ?? '') : '',
|
|
125
151
|
Cell: ({ row }: CellProps<PeakRecord>) => {
|
|
126
|
-
const
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
if (typeof mu !== 'number') {
|
|
130
|
-
return '';
|
|
131
|
-
}
|
|
132
|
-
return formatNumber(mu, tablePreferences.mu.format);
|
|
152
|
+
const shape = row.original?.shape;
|
|
153
|
+
const mu = shape?.kind === 'pseudoVoigt' ? shape.mu : undefined;
|
|
154
|
+
return getFormattedNumber(mu, tablePreferences.mu.format);
|
|
133
155
|
},
|
|
134
156
|
},
|
|
135
157
|
{
|
|
136
158
|
showWhen: 'gamma.show',
|
|
137
|
-
index:
|
|
159
|
+
index: 10,
|
|
138
160
|
Header: 'gamma',
|
|
139
161
|
accessor: (row) =>
|
|
140
|
-
|
|
141
|
-
|
|
162
|
+
row?.shape?.kind === 'generalizedLorentzian'
|
|
163
|
+
? (row.shape.gamma ?? '')
|
|
164
|
+
: '',
|
|
142
165
|
Cell: ({ row }: CellProps<PeakRecord>) => {
|
|
166
|
+
const shape = row.original?.shape;
|
|
143
167
|
const gamma =
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
168
|
+
shape?.kind === 'generalizedLorentzian' ? shape.gamma : undefined;
|
|
169
|
+
return getFormattedNumber(gamma, tablePreferences.gamma.format);
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
showWhen: 'absoluteArea.show',
|
|
174
|
+
index: 11,
|
|
175
|
+
Header: 'Absolute area',
|
|
176
|
+
accessor: (row) => getPeakAbsoluteArea(row) ?? '',
|
|
177
|
+
Cell: ({ row }: CellProps<PeakRecord>) =>
|
|
178
|
+
getFormattedNumber(
|
|
179
|
+
getPeakAbsoluteArea(row.original),
|
|
180
|
+
tablePreferences.absoluteArea.format,
|
|
181
|
+
),
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
showWhen: 'relativeArea.show',
|
|
185
|
+
index: 12,
|
|
186
|
+
Header: () => {
|
|
187
|
+
return (
|
|
188
|
+
<TableHeaderLabel
|
|
189
|
+
text="Relative area"
|
|
190
|
+
shortText="Area"
|
|
191
|
+
fontSize={12}
|
|
192
|
+
fontWeight="bold"
|
|
193
|
+
/>
|
|
194
|
+
);
|
|
195
|
+
},
|
|
196
|
+
accessor: 'relativeArea',
|
|
197
|
+
Cell: ({ row }: CellProps<PeakRecord>) => {
|
|
198
|
+
const value = formatNumber(
|
|
199
|
+
row.original.relativeArea || 0,
|
|
200
|
+
tablePreferences.relativeArea.format,
|
|
201
|
+
);
|
|
150
202
|
|
|
151
|
-
return
|
|
203
|
+
return (
|
|
204
|
+
<EditableColumn
|
|
205
|
+
value={value}
|
|
206
|
+
onSave={(newValue) =>
|
|
207
|
+
saveRelativeAreaHandler(newValue, row.original.id)
|
|
208
|
+
}
|
|
209
|
+
validate={(val) => val !== ''}
|
|
210
|
+
type="number"
|
|
211
|
+
style={{ padding: '0.1rem 0.4rem' }}
|
|
212
|
+
/>
|
|
213
|
+
);
|
|
152
214
|
},
|
|
153
215
|
},
|
|
154
216
|
{
|
|
@@ -172,10 +234,11 @@ export function usePeaksTableColumns(activeTab: string) {
|
|
|
172
234
|
},
|
|
173
235
|
],
|
|
174
236
|
[
|
|
237
|
+
editPeakHandler,
|
|
238
|
+
deletePeakHandler,
|
|
175
239
|
tablePreferences,
|
|
176
240
|
saveDeltaPPMRefsHandler,
|
|
177
|
-
|
|
178
|
-
editPeakHandler,
|
|
241
|
+
saveRelativeAreaHandler,
|
|
179
242
|
],
|
|
180
243
|
);
|
|
181
244
|
|
|
@@ -115,6 +115,10 @@ export default function RangesTableRow(props: RangesTableRowProps) {
|
|
|
115
115
|
|
|
116
116
|
const signalIndex = tableMetaInfo.signalIndex;
|
|
117
117
|
|
|
118
|
+
if (typeof signalIndex !== 'number') {
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
|
|
118
122
|
dispatch({
|
|
119
123
|
type: 'UNASSIGN_1D_SIGNAL',
|
|
120
124
|
payload: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { assert } from '@zakodium/utils';
|
|
1
2
|
import { checkMultiplicity } from 'nmr-processing';
|
|
2
|
-
import { assert } from 'react-science/ui';
|
|
3
3
|
|
|
4
4
|
import { useDispatch } from '../../../context/DispatchContext.js';
|
|
5
5
|
import type { EditableColumnProps } from '../../../elements/EditableColumn.js';
|
|
@@ -6,14 +6,15 @@ import type {
|
|
|
6
6
|
Spectrum2D,
|
|
7
7
|
Spectrum,
|
|
8
8
|
} from '@zakodium/nmrium-core';
|
|
9
|
+
import { isSpectrum1D } from '@zakodium/nmrium-core';
|
|
9
10
|
import { SvgNmrResetScale, SvgNmrSameTop } from 'cheminfo-font';
|
|
10
11
|
import { memo, useCallback } from 'react';
|
|
11
12
|
import { AiOutlineApi } from 'react-icons/ai';
|
|
12
13
|
import { FaCreativeCommonsSamplingPlus } from 'react-icons/fa';
|
|
14
|
+
import { GrConnect } from 'react-icons/gr';
|
|
13
15
|
import { IoColorPaletteOutline } from 'react-icons/io5';
|
|
14
16
|
import { MdFormatColorFill, MdOutlineFormatColorText } from 'react-icons/md';
|
|
15
17
|
|
|
16
|
-
import { isSpectrum1D } from '../../../data/data1d/Spectrum1D/isSpectrum1D.ts';
|
|
17
18
|
import { useChartData } from '../../context/ChartContext.js';
|
|
18
19
|
import { useDispatch } from '../../context/DispatchContext.js';
|
|
19
20
|
import { usePreferences } from '../../context/PreferencesContext.js';
|
|
@@ -70,18 +71,6 @@ interface ExternalMenuOptions {
|
|
|
70
71
|
apiKey?: string;
|
|
71
72
|
}
|
|
72
73
|
|
|
73
|
-
const NO_SERVICES_ITEM: ToolbarPopoverMenuItem<ExternalMenuOptions> = {
|
|
74
|
-
icon: 'disable',
|
|
75
|
-
text: 'No services configured',
|
|
76
|
-
tooltip: {
|
|
77
|
-
title: 'No external services',
|
|
78
|
-
description:
|
|
79
|
-
'Add an external API in general settings to enable this feature.',
|
|
80
|
-
},
|
|
81
|
-
disabled: true,
|
|
82
|
-
tooltipProps: { intent: 'danger' },
|
|
83
|
-
};
|
|
84
|
-
|
|
85
74
|
type ExternalMenuItem = ToolbarPopoverMenuItem<ExternalMenuOptions>;
|
|
86
75
|
|
|
87
76
|
function useExternalApiMenuItems(): ExternalMenuItem[] {
|
|
@@ -118,7 +107,7 @@ function useExternalApiMenuItems(): ExternalMenuItem[] {
|
|
|
118
107
|
tooltipProps: { ...(isDisabled && { intent: 'danger' }) },
|
|
119
108
|
};
|
|
120
109
|
});
|
|
121
|
-
return items
|
|
110
|
+
return items;
|
|
122
111
|
}
|
|
123
112
|
function getMissingProjection(spectraData: any, activeTab: any) {
|
|
124
113
|
let nucleus = activeTab.split(',');
|
|
@@ -361,17 +350,20 @@ function SpectraPanelHeaderInner({
|
|
|
361
350
|
active: spectraLabel.visible,
|
|
362
351
|
onClick: toggleSpectraLabelHandler,
|
|
363
352
|
},
|
|
364
|
-
|
|
353
|
+
]);
|
|
354
|
+
|
|
355
|
+
if (externalApiMenuItems.length > 0) {
|
|
356
|
+
leftButtons.push({
|
|
365
357
|
component: (
|
|
366
358
|
<ToolbarPopoverItem
|
|
367
359
|
options={externalApiMenuItems}
|
|
368
360
|
onClick={handleServiceClick}
|
|
369
|
-
icon=
|
|
361
|
+
icon={<GrConnect />}
|
|
370
362
|
id="trigger-external-service"
|
|
371
363
|
/>
|
|
372
364
|
),
|
|
373
|
-
}
|
|
374
|
-
|
|
365
|
+
});
|
|
366
|
+
}
|
|
375
367
|
|
|
376
368
|
return (
|
|
377
369
|
<DefaultPanelHeader
|
|
@@ -8,6 +8,7 @@ import type {
|
|
|
8
8
|
Spectrum,
|
|
9
9
|
StateMolecule,
|
|
10
10
|
} from '@zakodium/nmrium-core';
|
|
11
|
+
import { isSpectrum1D } from '@zakodium/nmrium-core';
|
|
11
12
|
import type { CSSProperties, MouseEvent } from 'react';
|
|
12
13
|
import { useCallback, useMemo, useState } from 'react';
|
|
13
14
|
import { FaCopy, FaFileExport, FaRegTrashAlt } from 'react-icons/fa';
|
|
@@ -15,7 +16,6 @@ import { IoColorPaletteOutline } from 'react-icons/io5';
|
|
|
15
16
|
import type { CellProps } from 'react-table';
|
|
16
17
|
|
|
17
18
|
import { exportForCT } from '../../../data/SpectraManager.js';
|
|
18
|
-
import { isSpectrum1D } from '../../../data/data1d/Spectrum1D/index.js';
|
|
19
19
|
import { ClipboardFallbackModal } from '../../../utils/clipboard/clipboardComponents.js';
|
|
20
20
|
import { useClipboard } from '../../../utils/clipboard/clipboardHooks.js';
|
|
21
21
|
import { useChartData } from '../../context/ChartContext.js';
|
|
@@ -4,6 +4,10 @@ import { Controller, useFormContext, useWatch } from 'react-hook-form';
|
|
|
4
4
|
|
|
5
5
|
import { useSelectedSpectra } from '../../../../hooks/useSelectedSpectra.ts';
|
|
6
6
|
|
|
7
|
+
function shouldForwardProp(prop: string) {
|
|
8
|
+
return prop !== 'isActive';
|
|
9
|
+
}
|
|
10
|
+
|
|
7
11
|
const Container = styled.div<{ isActive: boolean; isDisabled: boolean }>`
|
|
8
12
|
display: flex;
|
|
9
13
|
align-items: center;
|
|
@@ -26,7 +30,7 @@ const LabelGroup = styled.div`
|
|
|
26
30
|
min-width: 0;
|
|
27
31
|
`;
|
|
28
32
|
|
|
29
|
-
const LabelIcon = styled(Icon)<{ isActive: boolean }>`
|
|
33
|
+
const LabelIcon = styled(Icon, { shouldForwardProp })<{ isActive: boolean }>`
|
|
30
34
|
color: ${({ isActive }) => (isActive ? '#E8621A' : '#888')};
|
|
31
35
|
flex-shrink: 0;
|
|
32
36
|
`;
|
|
@@ -41,7 +45,7 @@ const StyledSwitch = styled(Switch)`
|
|
|
41
45
|
margin: 0;
|
|
42
46
|
`;
|
|
43
47
|
|
|
44
|
-
const CountTag = styled(Tag)<{ isActive: boolean }>`
|
|
48
|
+
const CountTag = styled(Tag, { shouldForwardProp })<{ isActive: boolean }>`
|
|
45
49
|
color: ${({ isActive }) => (isActive ? '#E8621A' : '#666')} !important;
|
|
46
50
|
`;
|
|
47
51
|
|
|
@@ -92,7 +96,6 @@ export function ApplyToAllSelected() {
|
|
|
92
96
|
const { value, onChange } = field;
|
|
93
97
|
return (
|
|
94
98
|
<StyledSwitch
|
|
95
|
-
defaultChecked={value}
|
|
96
99
|
checked={value}
|
|
97
100
|
disabled={isDisabled}
|
|
98
101
|
onClick={(e) => {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import {
|
|
1
|
+
import type { MenuItemProps } from '@blueprintjs/core';
|
|
2
|
+
import type { Signal1D, Signal2D, Spectra } from '@zakodium/nmr-types';
|
|
3
|
+
import type { Correlation, CorrelationLink } from 'nmr-processing';
|
|
4
|
+
import { correlationApi } from 'nmr-processing';
|
|
3
5
|
import type { MouseEvent } from 'react';
|
|
4
6
|
import { useCallback, useMemo } from 'react';
|
|
5
7
|
|
|
@@ -17,11 +19,9 @@ import useInView from '../utilities/useInView.js';
|
|
|
17
19
|
import type { EditLinkDialogData } from './editLink/EditLinkModal.js';
|
|
18
20
|
import { EditLinkModal } from './editLink/EditLinkModal.js';
|
|
19
21
|
|
|
20
|
-
function getLinkText(link:
|
|
21
|
-
const {
|
|
22
|
-
|
|
23
|
-
edited,
|
|
24
|
-
} = link;
|
|
22
|
+
function getLinkText(link: CorrelationLink) {
|
|
23
|
+
const { signal, edited } = link;
|
|
24
|
+
const { x, y } = signal as Signal2D;
|
|
25
25
|
|
|
26
26
|
const deltaX = x?.delta?.toFixed(2) ?? '?';
|
|
27
27
|
const deltaY = y?.delta?.toFixed(2) ?? '?';
|
|
@@ -31,14 +31,16 @@ function getLinkText(link: Link) {
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
interface AdditionalColumnFieldProps {
|
|
34
|
-
rowCorrelation:
|
|
35
|
-
columnCorrelation:
|
|
36
|
-
commonLinks:
|
|
37
|
-
spectraData:
|
|
34
|
+
rowCorrelation: Correlation;
|
|
35
|
+
columnCorrelation: Correlation;
|
|
36
|
+
commonLinks: CorrelationLink[];
|
|
37
|
+
spectraData: Spectra;
|
|
38
38
|
onEdit: any;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
function AdditionalColumnField(
|
|
41
|
+
export default function AdditionalColumnField(
|
|
42
|
+
props: AdditionalColumnFieldProps,
|
|
43
|
+
) {
|
|
42
44
|
const {
|
|
43
45
|
rowCorrelation,
|
|
44
46
|
columnCorrelation,
|
|
@@ -50,7 +52,7 @@ function AdditionalColumnField(props: AdditionalColumnFieldProps) {
|
|
|
50
52
|
const { openDialog } = useDialog();
|
|
51
53
|
|
|
52
54
|
const highlightIDsCommonLinks = useMemo(() => {
|
|
53
|
-
return commonLinks.flatMap((link:
|
|
55
|
+
return commonLinks.flatMap((link: CorrelationLink) => {
|
|
54
56
|
const ids: string[] = [];
|
|
55
57
|
if (!link.pseudo) {
|
|
56
58
|
ids.push(link.signal.id, buildID(link.signal.id, 'Crosshair'));
|
|
@@ -90,24 +92,24 @@ function AdditionalColumnField(props: AdditionalColumnFieldProps) {
|
|
|
90
92
|
}
|
|
91
93
|
|
|
92
94
|
const handleEditPseudoHSQC = useCallback(
|
|
93
|
-
(action: 'add' | 'remove', link?:
|
|
95
|
+
(action: 'add' | 'remove', link?: CorrelationLink) => {
|
|
94
96
|
const pseudoLinkCountHSQC = rowCorrelation.link.filter(
|
|
95
|
-
(_link
|
|
97
|
+
(_link) =>
|
|
96
98
|
(_link.experimentType === 'hsqc' ||
|
|
97
99
|
_link.experimentType === 'hmqc') &&
|
|
98
|
-
_link.pseudo
|
|
100
|
+
_link.pseudo,
|
|
99
101
|
).length;
|
|
100
102
|
|
|
101
103
|
let _correlationDim1: Correlation;
|
|
102
104
|
let _correlationDim2: Correlation;
|
|
103
105
|
if (action === 'add') {
|
|
104
|
-
const commonPseudoLink = buildLink({
|
|
106
|
+
const commonPseudoLink = correlationApi.buildLink({
|
|
105
107
|
experimentType: 'hsqc',
|
|
106
108
|
experimentID: crypto.randomUUID(),
|
|
107
109
|
atomType: [columnCorrelation.atomType, rowCorrelation.atomType],
|
|
108
110
|
id: crypto.randomUUID(),
|
|
109
111
|
pseudo: true,
|
|
110
|
-
signal: { id: crypto.randomUUID(), sign: 0 }, // pseudo signal
|
|
112
|
+
signal: { id: crypto.randomUUID(), sign: 0 } as unknown as Signal1D, // pseudo signal
|
|
111
113
|
});
|
|
112
114
|
_correlationDim1 = cloneCorrelationAndEditLink(
|
|
113
115
|
columnCorrelation,
|
|
@@ -128,13 +130,13 @@ function AdditionalColumnField(props: AdditionalColumnFieldProps) {
|
|
|
128
130
|
} else {
|
|
129
131
|
_correlationDim1 = cloneCorrelationAndEditLink(
|
|
130
132
|
columnCorrelation,
|
|
131
|
-
link,
|
|
133
|
+
link as CorrelationLink,
|
|
132
134
|
'x',
|
|
133
135
|
'remove',
|
|
134
136
|
);
|
|
135
137
|
_correlationDim2 = cloneCorrelationAndEditLink(
|
|
136
138
|
rowCorrelation,
|
|
137
|
-
link,
|
|
139
|
+
link as CorrelationLink,
|
|
138
140
|
'y',
|
|
139
141
|
'remove',
|
|
140
142
|
);
|
|
@@ -154,37 +156,38 @@ function AdditionalColumnField(props: AdditionalColumnFieldProps) {
|
|
|
154
156
|
|
|
155
157
|
const contextMenu = useMemo(() => {
|
|
156
158
|
// allow the edition of correlations
|
|
157
|
-
const commonLinksMenu = commonLinks.flatMap(
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
159
|
+
const commonLinksMenu: MenuItemProps[] = commonLinks.flatMap(
|
|
160
|
+
(commonLink) => {
|
|
161
|
+
if (commonLink.pseudo) {
|
|
162
|
+
return [];
|
|
163
|
+
}
|
|
161
164
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
165
|
+
return [
|
|
166
|
+
{
|
|
167
|
+
text: `Edit ${getLinkText(commonLink)}`,
|
|
168
|
+
icon: 'edit',
|
|
169
|
+
data: {
|
|
170
|
+
link: commonLink,
|
|
171
|
+
correlationDim1: columnCorrelation,
|
|
172
|
+
correlationDim2: rowCorrelation,
|
|
173
|
+
},
|
|
170
174
|
},
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
175
|
+
];
|
|
176
|
+
},
|
|
177
|
+
);
|
|
174
178
|
// allow addition or removal of a pseudo HSQC link between pseudo heavy atom and proton
|
|
175
179
|
const commonPseudoLinkHSQC = commonLinks.find(
|
|
176
|
-
(commonLink
|
|
177
|
-
commonLink.pseudo === true && commonLink.experimentType === 'hsqc',
|
|
180
|
+
(commonLink) => commonLink.pseudo && commonLink.experimentType === 'hsqc',
|
|
178
181
|
);
|
|
179
|
-
if (rowCorrelation.pseudo
|
|
182
|
+
if (rowCorrelation.pseudo) {
|
|
180
183
|
if (commonPseudoLinkHSQC) {
|
|
181
184
|
commonLinksMenu.push({
|
|
182
|
-
|
|
185
|
+
text: 'remove pseudo HSQC',
|
|
183
186
|
onClick: () => handleEditPseudoHSQC('remove', commonPseudoLinkHSQC),
|
|
184
187
|
});
|
|
185
188
|
} else {
|
|
186
189
|
commonLinksMenu.push({
|
|
187
|
-
|
|
190
|
+
text: 'add pseudo HSQC',
|
|
188
191
|
onClick: () => handleEditPseudoHSQC('add'),
|
|
189
192
|
});
|
|
190
193
|
}
|
|
@@ -237,18 +240,16 @@ function AdditionalColumnField(props: AdditionalColumnFieldProps) {
|
|
|
237
240
|
);
|
|
238
241
|
}
|
|
239
242
|
|
|
240
|
-
function getTitle(commonLinks:
|
|
243
|
+
function getTitle(commonLinks: CorrelationLink[]) {
|
|
241
244
|
if (commonLinks?.length === 0) {
|
|
242
245
|
return '';
|
|
243
246
|
}
|
|
244
247
|
|
|
245
248
|
return [
|
|
246
249
|
...new Set(
|
|
247
|
-
commonLinks?.
|
|
250
|
+
commonLinks?.map((link) => {
|
|
248
251
|
return link.experimentType.toUpperCase();
|
|
249
252
|
}),
|
|
250
253
|
),
|
|
251
254
|
].join('/');
|
|
252
255
|
}
|
|
253
|
-
|
|
254
|
-
export default AdditionalColumnField;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import type { Signal1D } from '@zakodium/nmr-types';
|
|
1
2
|
import type { Spectrum } from '@zakodium/nmrium-core';
|
|
2
3
|
import type {
|
|
3
4
|
Correlation,
|
|
5
|
+
CorrelationBuildOptions,
|
|
4
6
|
CorrelationData,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from 'nmr-
|
|
8
|
-
import { getCorrelationDelta, getLinkDim } from 'nmr-correlation';
|
|
7
|
+
CorrelationLink,
|
|
8
|
+
} from 'nmr-processing';
|
|
9
|
+
import { correlationApi } from 'nmr-processing';
|
|
9
10
|
import type { MouseEvent } from 'react';
|
|
10
11
|
import { useCallback, useMemo } from 'react';
|
|
11
12
|
|
|
@@ -29,8 +30,8 @@ export interface AdditionalColumnHeaderProps {
|
|
|
29
30
|
onEdit: (
|
|
30
31
|
editedCorrelations: Correlation[],
|
|
31
32
|
action: string,
|
|
32
|
-
link?:
|
|
33
|
-
options?:
|
|
33
|
+
link?: CorrelationLink,
|
|
34
|
+
options?: CorrelationBuildOptions,
|
|
34
35
|
) => void;
|
|
35
36
|
}
|
|
36
37
|
|
|
@@ -41,12 +42,12 @@ function AdditionalColumnHeader(props: AdditionalColumnHeaderProps) {
|
|
|
41
42
|
|
|
42
43
|
const { openDialog } = useDialog();
|
|
43
44
|
const highlightIDsAdditionalColumn = useMemo(() => {
|
|
44
|
-
if (correlation.pseudo
|
|
45
|
+
if (correlation.pseudo) {
|
|
45
46
|
return [];
|
|
46
47
|
}
|
|
47
|
-
return correlation.link.flatMap((link
|
|
48
|
+
return correlation.link.flatMap((link) => {
|
|
48
49
|
const ids: string[] = [];
|
|
49
|
-
if (link.pseudo
|
|
50
|
+
if (!link.pseudo) {
|
|
50
51
|
ids.push(link.signal.id, buildID(link.signal.id, 'Crosshair_X'));
|
|
51
52
|
const _id = findRangeOrZoneID(
|
|
52
53
|
spectraData,
|
|
@@ -81,13 +82,13 @@ function AdditionalColumnHeader(props: AdditionalColumnHeaderProps) {
|
|
|
81
82
|
const isInView = useInView({ correlation });
|
|
82
83
|
|
|
83
84
|
const tableHeaderProps = useMemo(() => {
|
|
84
|
-
const correlationLinks = correlation.link.map((link
|
|
85
|
-
if (link.pseudo
|
|
85
|
+
const correlationLinks = correlation.link.map((link) => {
|
|
86
|
+
if (!link.pseudo) {
|
|
86
87
|
return link.experimentType.toUpperCase();
|
|
87
88
|
}
|
|
88
|
-
return undefined;
|
|
89
|
+
return 'undefined';
|
|
89
90
|
});
|
|
90
|
-
correlationLinks.sort();
|
|
91
|
+
correlationLinks.sort((l1, l2) => l1.localeCompare(l2));
|
|
91
92
|
const title = Array.from(new Set(correlationLinks)).join('/');
|
|
92
93
|
|
|
93
94
|
return {
|
|
@@ -99,7 +100,7 @@ function AdditionalColumnHeader(props: AdditionalColumnHeaderProps) {
|
|
|
99
100
|
? '#f5f5dc'
|
|
100
101
|
: 'inherit',
|
|
101
102
|
},
|
|
102
|
-
title: correlation.pseudo
|
|
103
|
+
title: !correlation.pseudo && title,
|
|
103
104
|
onMouseEnter: mouseEnterHandler,
|
|
104
105
|
onMouseLeave: mouseLeaveHandler,
|
|
105
106
|
};
|
|
@@ -125,7 +126,7 @@ function AdditionalColumnHeader(props: AdditionalColumnHeaderProps) {
|
|
|
125
126
|
}, [correlation]);
|
|
126
127
|
|
|
127
128
|
const contextMenu = useMemo(() => {
|
|
128
|
-
if (correlation.pseudo
|
|
129
|
+
if (correlation.pseudo) {
|
|
129
130
|
return [];
|
|
130
131
|
}
|
|
131
132
|
|
|
@@ -138,12 +139,13 @@ function AdditionalColumnHeader(props: AdditionalColumnHeaderProps) {
|
|
|
138
139
|
];
|
|
139
140
|
|
|
140
141
|
for (const link of correlation.link) {
|
|
141
|
-
const isValidLink = getLinkDim(link) === 1 && link.pseudo
|
|
142
|
+
const isValidLink = correlationApi.getLinkDim(link) === 1 && !link.pseudo;
|
|
142
143
|
|
|
143
144
|
if (isValidLink) {
|
|
145
|
+
const signalDelta = (link.signal as Signal1D).delta;
|
|
144
146
|
const contextMenu: ContextMenuItem = {
|
|
145
|
-
text: `Edit 1D (${
|
|
146
|
-
link.edited?.moved
|
|
147
|
+
text: `Edit 1D (${signalDelta.toFixed(3)}${
|
|
148
|
+
link.edited?.moved ? '[MOVED]' : ''
|
|
147
149
|
})`,
|
|
148
150
|
icon: 'edit',
|
|
149
151
|
data: {
|
|
@@ -164,7 +166,7 @@ function AdditionalColumnHeader(props: AdditionalColumnHeaderProps) {
|
|
|
164
166
|
function removeAllLinks() {
|
|
165
167
|
alert.showAlert({
|
|
166
168
|
message: `All signals of ${correlation.label.origin} (${(
|
|
167
|
-
getCorrelationDelta(correlation) as number
|
|
169
|
+
correlationApi.getCorrelationDelta(correlation) as number
|
|
168
170
|
).toFixed(2)}) will be deleted. Are you sure?`,
|
|
169
171
|
buttons: [
|
|
170
172
|
{
|
|
@@ -208,8 +210,8 @@ function AdditionalColumnHeader(props: AdditionalColumnHeaderProps) {
|
|
|
208
210
|
>
|
|
209
211
|
<p>{correlation.label.origin}</p>
|
|
210
212
|
<p>
|
|
211
|
-
{getCorrelationDelta(correlation)
|
|
212
|
-
? getCorrelationDelta(correlation)?.toFixed(2)
|
|
213
|
+
{correlationApi.getCorrelationDelta(correlation)
|
|
214
|
+
? correlationApi.getCorrelationDelta(correlation)?.toFixed(2)
|
|
213
215
|
: ''}
|
|
214
216
|
</p>
|
|
215
217
|
<p style={equivalenceTextStyle}>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import styled from '@emotion/styled';
|
|
2
2
|
import type { Spectrum } from '@zakodium/nmrium-core';
|
|
3
|
-
import type { Correlation, CorrelationData } from 'nmr-
|
|
3
|
+
import type { Correlation, CorrelationData } from 'nmr-processing';
|
|
4
4
|
import { useMemo } from 'react';
|
|
5
5
|
|
|
6
6
|
import { getLabelColor } from '../utilities/Utilities.js';
|