nmrium 2.4.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/HorizontalAxis1D.d.ts.map +1 -1
- package/lib/component/1d/HorizontalAxis1D.js +4 -1
- package/lib/component/1d/HorizontalAxis1D.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/SVGContent1D.d.ts.map +1 -1
- package/lib/component/1d/SVGContent1D.js +2 -1
- package/lib/component/1d/SVGContent1D.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/Viewer1D.d.ts.map +1 -1
- package/lib/component/1d/Viewer1D.js +2 -1
- package/lib/component/1d/Viewer1D.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/integral/IntegralResizable.d.ts.map +1 -1
- package/lib/component/1d/integral/IntegralResizable.js +4 -4
- package/lib/component/1d/integral/IntegralResizable.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 +6 -5
- 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/ranges/Signals.d.ts +2 -0
- package/lib/component/1d/ranges/Signals.d.ts.map +1 -0
- package/lib/component/1d/ranges/Signals.js +16 -0
- package/lib/component/1d/ranges/Signals.js.map +1 -0
- 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/RangeIndicator.d.ts +13 -0
- package/lib/component/1d-2d/components/RangeIndicator.d.ts.map +1 -0
- package/lib/component/1d-2d/components/RangeIndicator.js +52 -0
- package/lib/component/1d-2d/components/RangeIndicator.js.map +1 -0
- package/lib/component/1d-2d/components/Signals1D.d.ts +19 -0
- package/lib/component/1d-2d/components/Signals1D.d.ts.map +1 -0
- package/lib/component/1d-2d/components/Signals1D.js +157 -0
- package/lib/component/1d-2d/components/Signals1D.js.map +1 -0
- 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 +16 -1
- package/lib/component/1d-2d/tools/CrossLinePointer.d.ts.map +1 -1
- package/lib/component/1d-2d/tools/CrossLinePointer.js +51 -36
- package/lib/component/1d-2d/tools/CrossLinePointer.js.map +1 -1
- package/lib/component/1d-2d/tools/CursorToolIcon.d.ts +9 -0
- package/lib/component/1d-2d/tools/CursorToolIcon.d.ts.map +1 -0
- package/lib/component/1d-2d/tools/CursorToolIcon.js +58 -0
- package/lib/component/1d-2d/tools/CursorToolIcon.js.map +1 -0
- 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.d.ts.map +1 -1
- package/lib/component/2d/1d-tracer/Left1DChart.js +5 -3
- package/lib/component/2d/1d-tracer/Left1DChart.js.map +1 -1
- package/lib/component/2d/1d-tracer/Ranges1D.d.ts.map +1 -1
- package/lib/component/2d/1d-tracer/Ranges1D.js +4 -60
- package/lib/component/2d/1d-tracer/Ranges1D.js.map +1 -1
- package/lib/component/2d/1d-tracer/Top1DChart.d.ts.map +1 -1
- package/lib/component/2d/1d-tracer/Top1DChart.js +5 -3
- 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/DirectAxis2D.d.ts.map +1 -1
- package/lib/component/2d/DirectAxis2D.js +4 -1
- package/lib/component/2d/DirectAxis2D.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.d.ts.map +1 -1
- package/lib/component/2d/IndirectAxis2D.js +5 -2
- 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 +3 -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 +6 -7
- package/lib/component/AnchorSVG.d.ts.map +1 -1
- package/lib/component/AnchorSVG.js +11 -7
- package/lib/component/AnchorSVG.js.map +1 -1
- package/lib/component/EventsTrackers/BrushTracker.d.ts.map +1 -1
- package/lib/component/EventsTrackers/BrushTracker.js +15 -5
- 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/EventsTrackers/MouseTracker.d.ts +3 -0
- package/lib/component/EventsTrackers/MouseTracker.d.ts.map +1 -1
- package/lib/component/EventsTrackers/MouseTracker.js +15 -0
- package/lib/component/EventsTrackers/MouseTracker.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 +5 -12
- package/lib/component/context/KeyModifierContext.d.ts.map +1 -1
- package/lib/component/context/KeyModifierContext.js +25 -27
- 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/D3Axis.d.ts.map +1 -1
- package/lib/component/elements/D3Axis.js +4 -3
- package/lib/component/elements/D3Axis.js.map +1 -1
- 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 +59 -31
- 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.d.ts.map +1 -1
- package/lib/component/header/RangesPickingOptionPanel.js +34 -19
- 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/useAddMultipletSignal.d.ts +7 -0
- package/lib/component/hooks/useAddMultipletSignal.d.ts.map +1 -0
- package/lib/component/hooks/useAddMultipletSignal.js +28 -0
- package/lib/component/hooks/useAddMultipletSignal.js.map +1 -0
- 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/useFilter.d.ts.map +1 -1
- package/lib/component/hooks/useFilter.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 +7 -1
- package/lib/component/hooks/useSpectrum.d.ts.map +1 -1
- package/lib/component/hooks/useSpectrum.js +10 -2
- package/lib/component/hooks/useSpectrum.js.map +1 -1
- package/lib/component/hooks/useSpectrumWithDataSource.d.ts +1 -1
- package/lib/component/hooks/useSpectrumWithDataSource.d.ts.map +1 -1
- package/lib/component/hooks/useSpectrumWithDataSource.js.map +1 -1
- package/lib/component/hooks/useTempSpectrum.d.ts +1 -1
- package/lib/component/hooks/useTempSpectrum.d.ts.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_ticks_config.d.ts +1 -4
- package/lib/component/hooks/use_ticks_config.d.ts.map +1 -1
- package/lib/component/hooks/use_ticks_config.js +1 -6
- package/lib/component/hooks/use_ticks_config.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 +1 -1
- package/lib/component/modal/PublicationStringModal.d.ts.map +1 -1
- package/lib/component/modal/PublicationStringModal.js +4 -4
- 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 +211 -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 +211 -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 +211 -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 +145 -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 +145 -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 +24 -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 +145 -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 +145 -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/axis_tab.js +12 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/axis_tab.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.d.ts +145 -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 +145 -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 +145 -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 +145 -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 +145 -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 +145 -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 +145 -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 +145 -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 +145 -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 +145 -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 +145 -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/axis_tab_validation.d.ts +22 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/axis_tab_validation.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation/axis_tab_validation.js +15 -2
- package/lib/component/modal/setting/tanstack_general_settings/validation/axis_tab_validation.js.map +1 -1
- 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 +66 -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 +2 -3
- 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/RangesPanel.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/RangesPanel.js +1 -3
- package/lib/component/panels/RangesPanel/RangesPanel.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesTableRow.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/RangesTableRow.js +12 -11
- package/lib/component/panels/RangesPanel/RangesTableRow.js.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentsColumn.d.ts +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentsColumn.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentsColumn.js +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentsColumn.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 +38 -117
- package/lib/component/panels/filtersPanel/processings_sections_panel.js.map +1 -1
- package/lib/component/panels/informationPanel/InformationPanel.js +1 -1
- package/lib/component/panels/informationPanel/InformationPanel.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 +27 -6
- 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 +11 -12
- 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 +2 -0
- package/lib/component/reducer/actions/FiltersActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/FiltersActions.js +37 -60
- 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 +57 -36
- package/lib/component/reducer/actions/RangesActions.js.map +1 -1
- package/lib/component/reducer/actions/SpectraActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/SpectraActions.js +5 -5
- 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/actions/setPreferences.d.ts +2 -2
- package/lib/component/reducer/preferences/actions/setPreferences.d.ts.map +1 -1
- package/lib/component/reducer/preferences/actions/setPreferences.js +8 -5
- package/lib/component/reducer/preferences/actions/setPreferences.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 +3 -3
- 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 +21 -1
- package/lib/component/toolbar/ToolTypes.d.ts.map +1 -1
- package/lib/component/toolbar/ToolTypes.js +55 -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 +54 -53
- 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 +20 -2
- 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 +17 -6
- 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/data2d/Spectrum2D/initiateDatum2D.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.js +12 -4
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.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 -6
- package/lib/data/utilities/RangeUtilities.d.ts.map +1 -1
- package/lib/data/utilities/RangeUtilities.js +12 -27
- 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 +42 -44
- package/src/component/1d/BrushTracker1D.tsx +170 -185
- package/src/component/1d/FloatPublicationString.tsx +6 -6
- package/src/component/1d/HorizontalAxis1D.tsx +12 -2
- package/src/component/1d/PredictionErrorsNotations.tsx +1 -1
- package/src/component/1d/SVGContent1D.tsx +2 -0
- package/src/component/1d/SimilarityTree.tsx +2 -2
- package/src/component/1d/Viewer1D.tsx +2 -0
- 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/integral/IntegralResizable.tsx +6 -6
- 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 +9 -11
- package/src/component/1d/ranges/Ranges.tsx +1 -1
- package/src/component/1d/ranges/Signals.tsx +28 -0
- 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/RangeIndicator.tsx +106 -0
- package/src/component/1d-2d/components/Signals1D.tsx +310 -0
- 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 +109 -54
- package/src/component/1d-2d/tools/CursorToolIcon.tsx +110 -0
- package/src/component/1d-2d/tools/DistanceLine.tsx +253 -0
- package/src/component/2d/1d-tracer/Left1DChart.tsx +7 -5
- package/src/component/2d/1d-tracer/Ranges1D.tsx +4 -100
- package/src/component/2d/1d-tracer/Top1DChart.tsx +8 -6
- package/src/component/2d/BrushTracker2D.tsx +25 -13
- package/src/component/2d/DirectAxis2D.tsx +12 -3
- package/src/component/2d/FooterBanner.tsx +2 -5
- package/src/component/2d/IndirectAxis2D.tsx +9 -5
- package/src/component/2d/SignalDeltaLine.tsx +1 -1
- package/src/component/2d/Viewer2D.tsx +7 -2
- 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 +33 -34
- package/src/component/EventsTrackers/BrushTracker.tsx +22 -8
- package/src/component/EventsTrackers/KeysListenerTracker.tsx +6 -1
- package/src/component/EventsTrackers/MouseTracker.tsx +21 -0
- 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 +48 -38
- 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/D3Axis.tsx +31 -9
- 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 +179 -102
- package/src/component/header/Header.tsx +99 -8
- package/src/component/header/RangesPickingOptionPanel.tsx +72 -59
- 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/useAddMultipletSignal.tsx +32 -0
- package/src/component/hooks/useCheckPointsNumberInWindowArea.ts +4 -2
- package/src/component/hooks/useCheckToolsVisibility.ts +11 -1
- package/src/component/hooks/useFilter.ts +2 -1
- package/src/component/hooks/useSpectraBottomMargin.ts +1 -1
- package/src/component/hooks/useSpectrum.ts +19 -2
- package/src/component/hooks/useSpectrumWithDataSource.ts +16 -8
- 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_ticks_config.ts +1 -7
- 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 +4 -5
- 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/axis_tab.tsx +76 -12
- 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/axis_tab_validation.ts +16 -2
- 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 +2 -3
- 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/RangesPanel.tsx +1 -3
- package/src/component/panels/RangesPanel/RangesTableRow.tsx +13 -11
- package/src/component/panels/RangesPanel/TableColumns/SignalAssignmentsColumn.tsx +2 -2
- 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 +92 -276
- package/src/component/panels/informationPanel/InformationPanel.tsx +1 -1
- package/src/component/reducer/Reducer.ts +51 -8
- package/src/component/reducer/actions/AssignmentsActions.ts +1 -2
- package/src/component/reducer/actions/CorrelationsActions.ts +22 -20
- 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 +57 -78
- 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 +85 -41
- package/src/component/reducer/actions/SpectraActions.ts +7 -5
- 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/actions/setPreferences.ts +18 -10
- package/src/component/reducer/preferences/panelsPreferencesDefaultValues.ts +2 -0
- package/src/component/reducer/preferences/preferencesReducer.ts +4 -4
- package/src/component/reducer/preferences/utilities/mapWorkspaces.ts +9 -21
- package/src/component/toolbar/ToolTypes.ts +107 -1
- package/src/component/toolbar/nmr_toolbar.tsx +56 -73
- 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 +20 -2
- 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 +17 -9
- 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/data2d/Spectrum2D/initiateDatum2D.ts +12 -4
- package/src/data/get_view_spectra.ts +21 -0
- package/src/data/utilities/FindUtilities.ts +1 -3
- package/src/data/utilities/RangeUtilities.ts +14 -35
- package/src/data/utilities/getPeakAbsoluteArea.ts +7 -0
- package/src/versionInfo.ts +1 -1
- package/lib/component/1d/integral/IntegralIndicator.d.ts +0 -9
- package/lib/component/1d/integral/IntegralIndicator.d.ts.map +0 -1
- package/lib/component/1d/integral/IntegralIndicator.js +0 -22
- package/lib/component/1d/integral/IntegralIndicator.js.map +0 -1
- package/lib/component/2d/1d-tracer/Signals1D.d.ts +0 -11
- package/lib/component/2d/1d-tracer/Signals1D.d.ts.map +0 -1
- package/lib/component/2d/1d-tracer/Signals1D.js +0 -90
- package/lib/component/2d/1d-tracer/Signals1D.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/1d/integral/IntegralIndicator.tsx +0 -43
- package/src/component/2d/1d-tracer/Signals1D.tsx +0 -145
- package/src/data/data1d/Spectrum1D/isSpectrum1D.ts +0 -19
- package/src/data/data2d/Spectrum2D/isSpectrum2D.ts +0 -36
|
@@ -46,6 +46,26 @@ import DatabaseTable from './DatabaseTable.js';
|
|
|
46
46
|
|
|
47
47
|
export type Databases = Array<LocalDatabase | Database>;
|
|
48
48
|
|
|
49
|
+
function resolveNucleus(
|
|
50
|
+
nucleus: string | undefined,
|
|
51
|
+
currentPick: string | undefined,
|
|
52
|
+
distinctNuclei: string[],
|
|
53
|
+
): string | undefined {
|
|
54
|
+
if (nucleus) return nucleus;
|
|
55
|
+
if (currentPick && distinctNuclei.includes(currentPick)) return currentPick;
|
|
56
|
+
return distinctNuclei[0];
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
function getDistinctNuclei(entries: DatabaseNMREntry[]): string[] {
|
|
60
|
+
const nuclei = new Set<string>();
|
|
61
|
+
for (const record of entries) {
|
|
62
|
+
if (record.nucleus) {
|
|
63
|
+
nuclei.add(record.nucleus);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return Array.from(nuclei);
|
|
67
|
+
}
|
|
68
|
+
|
|
49
69
|
function getMolfile(options: {
|
|
50
70
|
ocl?: { idCode?: string; coordinates?: string };
|
|
51
71
|
smiles?: string;
|
|
@@ -65,7 +85,7 @@ function getMolfile(options: {
|
|
|
65
85
|
}
|
|
66
86
|
|
|
67
87
|
interface DatabaseInnerProps {
|
|
68
|
-
nucleus
|
|
88
|
+
nucleus?: string;
|
|
69
89
|
selectedTool: string;
|
|
70
90
|
databases: Databases;
|
|
71
91
|
defaultDatabase: string;
|
|
@@ -125,7 +145,13 @@ function DatabasePanelInner({
|
|
|
125
145
|
const dispatch = useDispatch();
|
|
126
146
|
const toaster = useToaster();
|
|
127
147
|
|
|
128
|
-
const
|
|
148
|
+
const [availableNuclei, setAvailableNuclei] = useState<string[]>([]);
|
|
149
|
+
const [selectedNucleus, setSelectedNucleus] = useState<string | undefined>(
|
|
150
|
+
nucleus,
|
|
151
|
+
);
|
|
152
|
+
const effectiveNucleus = nucleus ?? selectedNucleus;
|
|
153
|
+
|
|
154
|
+
const format = useFormatNumberByNucleus(effectiveNucleus);
|
|
129
155
|
const [isFlipped, setFlipStatus] = useState(false);
|
|
130
156
|
const [
|
|
131
157
|
isOpenSearchByStructure,
|
|
@@ -133,16 +159,20 @@ function DatabasePanelInner({
|
|
|
133
159
|
closeSearchByStructure,
|
|
134
160
|
] = useOnOff(false);
|
|
135
161
|
const settingRef = useRef<SettingsRef | null>(null);
|
|
162
|
+
|
|
136
163
|
const [keywords, setKeywords] =
|
|
137
164
|
useState<DatabaseSearchKeywords>(emptyKeywords);
|
|
165
|
+
const [idCode, setIdCode] = useState<string>();
|
|
166
|
+
|
|
138
167
|
const databaseInstance = useRef<InitiateDatabaseResult | null>(null);
|
|
139
168
|
const databaseDataRef = useRef<DatabaseNMREntry[]>([]);
|
|
169
|
+
const isPrimaryKeyActivated = useMapKeyModifiers();
|
|
170
|
+
|
|
140
171
|
const [result, setResult] = useState<DatabaseSearchResultEntry>({
|
|
141
172
|
data: [],
|
|
142
173
|
databases: [],
|
|
143
174
|
solvents: [],
|
|
144
175
|
});
|
|
145
|
-
const [idCode, setIdCode] = useState<string>();
|
|
146
176
|
|
|
147
177
|
function settingsPanelHandler() {
|
|
148
178
|
setFlipStatus((flag) => !flag);
|
|
@@ -150,161 +180,187 @@ function DatabasePanelInner({
|
|
|
150
180
|
|
|
151
181
|
async function saveSettingHandler() {
|
|
152
182
|
const isSettingValid = await settingRef.current?.saveSetting();
|
|
153
|
-
if (isSettingValid)
|
|
154
|
-
setFlipStatus(false);
|
|
155
|
-
}
|
|
183
|
+
if (isSettingValid) setFlipStatus(false);
|
|
156
184
|
}
|
|
157
185
|
|
|
158
|
-
const
|
|
159
|
-
(
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
message: 'Preparing of the Result',
|
|
182
|
-
});
|
|
183
|
-
if (solvent === '-1' && !searchKeywords) {
|
|
184
|
-
const solvents = mapSolventsToSelect(
|
|
185
|
-
databaseInstance.current.getSolvents(),
|
|
186
|
-
);
|
|
187
|
-
search(solvents);
|
|
188
|
-
} else {
|
|
189
|
-
search();
|
|
190
|
-
}
|
|
191
|
-
hideLoading();
|
|
192
|
-
}
|
|
193
|
-
};
|
|
194
|
-
|
|
195
|
-
void runner();
|
|
196
|
-
}, [idCode, keywords, search, toaster]);
|
|
197
|
-
const { getModifiersKey, primaryKeyIdentifier } = useMapKeyModifiers();
|
|
198
|
-
|
|
199
|
-
useEffect(() => {
|
|
200
|
-
function handle(event: BrushTrackerData & { range: [number, number] }) {
|
|
201
|
-
const keyModifiers = getModifiersKey(event);
|
|
202
|
-
if (
|
|
203
|
-
selectedTool !== options.databaseRangesSelection.id ||
|
|
204
|
-
keyModifiers !== primaryKeyIdentifier
|
|
205
|
-
) {
|
|
206
|
-
return;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
setKeywords((prevState) => {
|
|
210
|
-
const oldKeywords = prevState.searchKeywords
|
|
211
|
-
? prevState.searchKeywords.split(' ')
|
|
212
|
-
: [];
|
|
213
|
-
const [from, to] = event.range;
|
|
214
|
-
const searchKeywords = [
|
|
215
|
-
...oldKeywords,
|
|
216
|
-
`delta:${format(from)}..${format(to)}`,
|
|
217
|
-
].join(' ');
|
|
218
|
-
return { ...prevState, searchKeywords };
|
|
186
|
+
const runSearch = useCallback(
|
|
187
|
+
(options?: {
|
|
188
|
+
keywords?: DatabaseSearchKeywords;
|
|
189
|
+
idCode?: string;
|
|
190
|
+
solvents?: any[];
|
|
191
|
+
}) => {
|
|
192
|
+
const instance = databaseInstance.current;
|
|
193
|
+
if (!instance) return;
|
|
194
|
+
|
|
195
|
+
const {
|
|
196
|
+
keywords: overrideKeywords,
|
|
197
|
+
idCode: overrideIdCode,
|
|
198
|
+
solvents,
|
|
199
|
+
} = options ?? {};
|
|
200
|
+
|
|
201
|
+
const { solvent, searchKeywords } = overrideKeywords ?? keywords;
|
|
202
|
+
const effectiveIdCode =
|
|
203
|
+
overrideIdCode !== undefined ? overrideIdCode : idCode;
|
|
204
|
+
|
|
205
|
+
const keywordArray = mapKeywordsToArray(searchKeywords, solvent);
|
|
206
|
+
const data = instance.search({
|
|
207
|
+
keywords: keywordArray,
|
|
208
|
+
idCode: effectiveIdCode,
|
|
219
209
|
});
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
Events.on('brushEnd', handle);
|
|
223
|
-
|
|
224
|
-
return () => {
|
|
225
|
-
Events.off('brushEnd', handle);
|
|
226
|
-
};
|
|
227
|
-
}, [format, getModifiersKey, primaryKeyIdentifier, selectedTool]);
|
|
228
210
|
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
211
|
+
setResult((prev) => ({
|
|
212
|
+
...prev,
|
|
213
|
+
data,
|
|
214
|
+
...(solvents && { solvents }),
|
|
215
|
+
}));
|
|
216
|
+
},
|
|
217
|
+
[keywords, idCode],
|
|
218
|
+
);
|
|
219
|
+
const buildInstanceAndSearch = useCallback(
|
|
220
|
+
async (data: DatabaseNMREntry[], nucleusToUse: string) => {
|
|
233
221
|
const hideLoading = await toaster.showAsyncLoading({
|
|
234
222
|
message: 'Loading the database',
|
|
235
223
|
});
|
|
236
224
|
|
|
237
|
-
databaseInstance.current = initiateDatabase(
|
|
238
|
-
|
|
239
|
-
|
|
225
|
+
databaseInstance.current = initiateDatabase(data, nucleusToUse);
|
|
226
|
+
const solvents = mapSolventsToSelect(
|
|
227
|
+
databaseInstance.current.getSolvents(),
|
|
240
228
|
);
|
|
241
|
-
hideLoading();
|
|
242
|
-
setKeywords({ ...emptyKeywords });
|
|
243
|
-
};
|
|
244
229
|
|
|
245
|
-
|
|
246
|
-
|
|
230
|
+
setKeywords(emptyKeywords);
|
|
231
|
+
setIdCode(undefined);
|
|
232
|
+
runSearch({ keywords: emptyKeywords, solvents });
|
|
233
|
+
hideLoading();
|
|
234
|
+
},
|
|
235
|
+
[toaster, runSearch],
|
|
236
|
+
);
|
|
247
237
|
|
|
248
238
|
const handleChangeDatabase = useCallback(
|
|
249
239
|
(databaseKey: any) => {
|
|
250
240
|
const database = databases.find((item) => item.key === databaseKey);
|
|
251
241
|
|
|
252
242
|
setTimeout(async () => {
|
|
243
|
+
let data: DatabaseNMREntry[];
|
|
244
|
+
|
|
253
245
|
if (database?.url) {
|
|
254
246
|
const { url, label } = database;
|
|
255
|
-
|
|
256
247
|
const hideLoading = await toaster.showAsyncLoading({
|
|
257
248
|
message: `load ${label} database`,
|
|
258
249
|
});
|
|
259
|
-
|
|
260
250
|
try {
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
.then((databaseRecords: any) =>
|
|
264
|
-
databaseRecords.map((record: any) => ({
|
|
265
|
-
...record,
|
|
266
|
-
baseURL: url,
|
|
267
|
-
})),
|
|
268
|
-
);
|
|
251
|
+
const records = await fetch(url).then((r) => r.json());
|
|
252
|
+
data = records.map((record: any) => ({ ...record, baseURL: url }));
|
|
269
253
|
} catch {
|
|
270
254
|
toaster.show({
|
|
271
255
|
message: `Failed to load ${url}`,
|
|
272
256
|
intent: 'danger',
|
|
273
257
|
});
|
|
258
|
+
hideLoading();
|
|
259
|
+
return;
|
|
274
260
|
} finally {
|
|
275
261
|
hideLoading();
|
|
276
262
|
}
|
|
277
263
|
} else {
|
|
278
|
-
|
|
279
|
-
?.value as DatabaseNMREntry[];
|
|
264
|
+
data =
|
|
265
|
+
((database as LocalDatabase)?.value as DatabaseNMREntry[]) ?? [];
|
|
280
266
|
}
|
|
281
267
|
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
268
|
+
databaseDataRef.current = data;
|
|
269
|
+
|
|
270
|
+
const distinctNuclei = getDistinctNuclei(data);
|
|
271
|
+
setAvailableNuclei(distinctNuclei);
|
|
285
272
|
|
|
286
|
-
|
|
287
|
-
databaseDataRef.current,
|
|
273
|
+
const nucleusToUse = resolveNucleus(
|
|
288
274
|
nucleus,
|
|
275
|
+
selectedNucleus,
|
|
276
|
+
distinctNuclei,
|
|
289
277
|
);
|
|
278
|
+
setSelectedNucleus(nucleusToUse);
|
|
290
279
|
|
|
291
|
-
|
|
280
|
+
if (!nucleusToUse) {
|
|
281
|
+
databaseInstance.current = null;
|
|
282
|
+
setKeywords(emptyKeywords);
|
|
283
|
+
setResult({ data: [], databases: [], solvents: [] });
|
|
284
|
+
return;
|
|
285
|
+
}
|
|
292
286
|
|
|
293
|
-
|
|
287
|
+
await buildInstanceAndSearch(data, nucleusToUse);
|
|
294
288
|
}, 0);
|
|
295
289
|
},
|
|
296
|
-
[databases, nucleus, toaster],
|
|
290
|
+
[databases, nucleus, selectedNucleus, toaster, buildInstanceAndSearch],
|
|
291
|
+
);
|
|
292
|
+
|
|
293
|
+
const handleNucleusChange = useCallback(
|
|
294
|
+
(newNucleus: string) => {
|
|
295
|
+
setSelectedNucleus(newNucleus);
|
|
296
|
+
void buildInstanceAndSearch(databaseDataRef.current, newNucleus);
|
|
297
|
+
},
|
|
298
|
+
[buildInstanceAndSearch],
|
|
297
299
|
);
|
|
298
300
|
|
|
301
|
+
const handleKeywordsChange = useCallback(
|
|
302
|
+
(partial: Partial<DatabaseSearchKeywords>) => {
|
|
303
|
+
setKeywords((prev) => {
|
|
304
|
+
const next = { ...prev, ...partial };
|
|
305
|
+
runSearch({ keywords: next });
|
|
306
|
+
return next;
|
|
307
|
+
});
|
|
308
|
+
},
|
|
309
|
+
[runSearch],
|
|
310
|
+
);
|
|
311
|
+
|
|
312
|
+
const searchByStructureHandler = useCallback(
|
|
313
|
+
(idCodeValue: string) => {
|
|
314
|
+
const molecule = Molecule.fromIDCode(idCodeValue);
|
|
315
|
+
const atoms = molecule.getAllAtoms();
|
|
316
|
+
const nextIdCode = atoms > 0 ? idCodeValue : '';
|
|
317
|
+
setIdCode(nextIdCode);
|
|
318
|
+
runSearch({ idCode: nextIdCode });
|
|
319
|
+
},
|
|
320
|
+
[runSearch],
|
|
321
|
+
);
|
|
322
|
+
|
|
323
|
+
useEffect(() => {
|
|
324
|
+
function handle(event: BrushTrackerData & { range: [number, number] }) {
|
|
325
|
+
if (
|
|
326
|
+
selectedTool !== options.databaseRangesSelection.id ||
|
|
327
|
+
!isPrimaryKeyActivated(event)
|
|
328
|
+
) {
|
|
329
|
+
return;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
setKeywords((prevState) => {
|
|
333
|
+
const oldKeywords = prevState.searchKeywords
|
|
334
|
+
? prevState.searchKeywords.split(' ')
|
|
335
|
+
: [];
|
|
336
|
+
const [from, to] = event.range;
|
|
337
|
+
const nextKeywords = {
|
|
338
|
+
...prevState,
|
|
339
|
+
searchKeywords: [
|
|
340
|
+
...oldKeywords,
|
|
341
|
+
`delta:${format(from)}..${format(to)}`,
|
|
342
|
+
].join(' '),
|
|
343
|
+
};
|
|
344
|
+
runSearch({ keywords: nextKeywords });
|
|
345
|
+
return nextKeywords;
|
|
346
|
+
});
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
Events.on('brushEnd', handle);
|
|
350
|
+
|
|
351
|
+
return () => {
|
|
352
|
+
Events.off('brushEnd', handle);
|
|
353
|
+
};
|
|
354
|
+
}, [format, selectedTool, runSearch, isPrimaryKeyActivated]);
|
|
355
|
+
|
|
299
356
|
useEffect(() => {
|
|
300
357
|
if (defaultDatabase && !databaseInstance.current) {
|
|
301
358
|
handleChangeDatabase(defaultDatabase);
|
|
302
359
|
}
|
|
303
|
-
|
|
360
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
361
|
+
}, [defaultDatabase]);
|
|
304
362
|
|
|
305
|
-
const tableData = useMemo(() =>
|
|
306
|
-
return prepareData(result.data);
|
|
307
|
-
}, [result.data]);
|
|
363
|
+
const tableData = useMemo(() => prepareData(result.data), [result.data]);
|
|
308
364
|
|
|
309
365
|
const core = useCore();
|
|
310
366
|
const resurrectHandler = useCallback(
|
|
@@ -408,11 +464,6 @@ function DatabasePanelInner({
|
|
|
408
464
|
},
|
|
409
465
|
});
|
|
410
466
|
}, [dispatch]);
|
|
411
|
-
const searchByStructureHandler = (idCodeValue: string) => {
|
|
412
|
-
const molecule = Molecule.fromIDCode(idCodeValue);
|
|
413
|
-
const atoms = molecule.getAllAtoms();
|
|
414
|
-
setIdCode(atoms > 0 ? idCodeValue : '');
|
|
415
|
-
};
|
|
416
467
|
|
|
417
468
|
return (
|
|
418
469
|
<TablePanel isFlipped={isFlipped}>
|
|
@@ -425,13 +476,14 @@ function DatabasePanelInner({
|
|
|
425
476
|
keywords={keywords}
|
|
426
477
|
result={result}
|
|
427
478
|
total={databaseInstance.current?.data.length || 0}
|
|
428
|
-
onKeywordsChange={
|
|
429
|
-
setKeywords((prevKeywords) => ({ ...prevKeywords, ...options }))
|
|
430
|
-
}
|
|
479
|
+
onKeywordsChange={handleKeywordsChange}
|
|
431
480
|
onSettingClick={settingsPanelHandler}
|
|
432
481
|
onStructureClick={openSearchByStructure}
|
|
433
482
|
onDatabaseChange={handleChangeDatabase}
|
|
434
483
|
onRemoveAll={removeAllHandler}
|
|
484
|
+
onNucleiChange={handleNucleusChange}
|
|
485
|
+
availableNuclei={availableNuclei}
|
|
486
|
+
selectedNucleus={selectedNucleus}
|
|
435
487
|
/>
|
|
436
488
|
{isOpenSearchByStructure && (
|
|
437
489
|
<DatabaseStructureSearchModal
|
|
@@ -491,7 +543,7 @@ export default function PeaksPanel() {
|
|
|
491
543
|
data.filter((datum) => datum.enabled),
|
|
492
544
|
) as Databases;
|
|
493
545
|
|
|
494
|
-
if (
|
|
546
|
+
if (displayerMode !== '1D') {
|
|
495
547
|
return (
|
|
496
548
|
<PanelNoData>
|
|
497
549
|
Databases are only available when 1D experimental spectrum is displayed.
|
|
@@ -501,7 +553,7 @@ export default function PeaksPanel() {
|
|
|
501
553
|
}
|
|
502
554
|
return (
|
|
503
555
|
<MemoizedDatabasePanel
|
|
504
|
-
nucleus={activeTab}
|
|
556
|
+
nucleus={activeTab || undefined}
|
|
505
557
|
selectedTool={selectedTool}
|
|
506
558
|
databases={databases}
|
|
507
559
|
defaultDatabase={defaultDatabase}
|
|
@@ -26,10 +26,13 @@ interface DatabaseSearchOptionsProps {
|
|
|
26
26
|
result: DatabaseSearchResultEntry;
|
|
27
27
|
idCode?: string;
|
|
28
28
|
total: number;
|
|
29
|
+
availableNuclei: string[];
|
|
30
|
+
selectedNucleus?: string;
|
|
29
31
|
onKeywordsChange: (k: Partial<DatabaseSearchKeywords>) => void;
|
|
30
32
|
onSettingClick: () => void;
|
|
31
33
|
onStructureClick: ToolbarItemProps['onClick'];
|
|
32
34
|
onDatabaseChange: (databaseKey: string) => void;
|
|
35
|
+
onNucleiChange: (nucleus: string) => void;
|
|
33
36
|
onRemoveAll: () => void;
|
|
34
37
|
}
|
|
35
38
|
|
|
@@ -41,35 +44,41 @@ export function DatabaseSearchOptions(props: DatabaseSearchOptionsProps) {
|
|
|
41
44
|
result,
|
|
42
45
|
idCode,
|
|
43
46
|
total,
|
|
47
|
+
availableNuclei,
|
|
48
|
+
selectedNucleus,
|
|
44
49
|
onKeywordsChange,
|
|
45
50
|
onSettingClick,
|
|
46
51
|
onStructureClick,
|
|
47
52
|
onDatabaseChange,
|
|
53
|
+
onNucleiChange,
|
|
48
54
|
onRemoveAll,
|
|
49
55
|
} = props;
|
|
50
56
|
|
|
51
57
|
const { handleChangeOption } = useToolsFunctions();
|
|
52
58
|
const {
|
|
53
59
|
view: {
|
|
54
|
-
spectra: { showSimilarityTree },
|
|
60
|
+
spectra: { showSimilarityTree, activeTab },
|
|
55
61
|
},
|
|
56
62
|
toolOptions: { selectedTool },
|
|
57
63
|
} = useChartData();
|
|
58
64
|
const dispatch = useDispatch();
|
|
59
|
-
|
|
60
|
-
|
|
65
|
+
|
|
66
|
+
function enableFilterHandler() {
|
|
67
|
+
const tool =
|
|
68
|
+
selectedTool === options.databaseRangesSelection.id
|
|
69
|
+
? options.zoom.id
|
|
70
|
+
: options.databaseRangesSelection.id;
|
|
61
71
|
handleChangeOption(tool);
|
|
62
72
|
}
|
|
63
73
|
|
|
64
|
-
function
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}
|
|
74
|
+
function handleSolventChange(value: string | number) {
|
|
75
|
+
onKeywordsChange({ solvent: String(value) });
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
function handleKeywordsInputChange(
|
|
79
|
+
event: React.ChangeEvent<HTMLInputElement>,
|
|
80
|
+
) {
|
|
81
|
+
onKeywordsChange({ searchKeywords: event.target.value });
|
|
73
82
|
}
|
|
74
83
|
|
|
75
84
|
function clearHandler() {
|
|
@@ -80,10 +89,12 @@ export function DatabaseSearchOptions(props: DatabaseSearchOptionsProps) {
|
|
|
80
89
|
dispatch({ type: 'TOGGLE_SIMILARITY_TREE' });
|
|
81
90
|
}
|
|
82
91
|
|
|
92
|
+
const nucleusItems = availableNuclei.map((n) => ({ key: n, label: n }));
|
|
93
|
+
|
|
83
94
|
return (
|
|
84
95
|
<>
|
|
85
96
|
<PanelHeader
|
|
86
|
-
onClickSettings={
|
|
97
|
+
onClickSettings={onSettingClick}
|
|
87
98
|
current={result.data.length}
|
|
88
99
|
total={total || 0}
|
|
89
100
|
>
|
|
@@ -110,21 +121,35 @@ export function DatabaseSearchOptions(props: DatabaseSearchOptionsProps) {
|
|
|
110
121
|
placeholder="Select database"
|
|
111
122
|
defaultValue={defaultDatabase}
|
|
112
123
|
/>
|
|
124
|
+
|
|
125
|
+
{!activeTab && nucleusItems.length > 0 && (
|
|
126
|
+
<Select
|
|
127
|
+
style={{ flex: 2, marginLeft: '5px' }}
|
|
128
|
+
items={nucleusItems}
|
|
129
|
+
itemTextField="label"
|
|
130
|
+
itemValueField="key"
|
|
131
|
+
onChange={onNucleiChange}
|
|
132
|
+
value={selectedNucleus}
|
|
133
|
+
placeholder="Select nucleus"
|
|
134
|
+
/>
|
|
135
|
+
)}
|
|
136
|
+
|
|
113
137
|
<Select
|
|
114
138
|
style={{ flex: 4, margin: '0px 5px' }}
|
|
115
139
|
items={result.solvents}
|
|
116
140
|
placeholder="Solvent"
|
|
117
|
-
onChange={
|
|
141
|
+
onChange={handleSolventChange}
|
|
118
142
|
value={keywords.solvent}
|
|
119
143
|
/>
|
|
120
144
|
</div>
|
|
121
145
|
</PanelHeader>
|
|
146
|
+
|
|
122
147
|
<div style={{ display: 'flex', justifyContent: 'space-between' }}>
|
|
123
148
|
<ToolbarButton
|
|
124
149
|
tooltip="Filter by select ranges"
|
|
125
150
|
icon={<FaICursor />}
|
|
126
151
|
active={selectedTool === options.databaseRangesSelection.id}
|
|
127
|
-
onClick={enableFilterHandler}
|
|
152
|
+
onClick={() => enableFilterHandler()}
|
|
128
153
|
/>
|
|
129
154
|
|
|
130
155
|
<Input
|
|
@@ -135,7 +160,7 @@ export function DatabaseSearchOptions(props: DatabaseSearchOptionsProps) {
|
|
|
135
160
|
type="text"
|
|
136
161
|
debounceTime={250}
|
|
137
162
|
placeholder="Search for parameter..."
|
|
138
|
-
onChange={
|
|
163
|
+
onChange={handleKeywordsInputChange}
|
|
139
164
|
onClear={clearHandler}
|
|
140
165
|
canClear
|
|
141
166
|
/>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Button, Switch } from '@blueprintjs/core';
|
|
2
2
|
import { Select } from '@blueprintjs/select';
|
|
3
3
|
import type { BaselineCorrectionOptions } from '@zakodium/nmr-types';
|
|
4
|
+
import { isSpectrum1D } from '@zakodium/nmrium-core';
|
|
4
5
|
import { getBaselineAnchors } from 'nmr-processing';
|
|
5
6
|
import type { MouseEvent } from 'react';
|
|
6
7
|
import type { Control } from 'react-hook-form';
|
|
@@ -8,7 +9,6 @@ import { BiReset } from 'react-icons/bi';
|
|
|
8
9
|
import { MdRemoveCircleOutline } from 'react-icons/md';
|
|
9
10
|
import { Toolbar } from 'react-science/ui';
|
|
10
11
|
|
|
11
|
-
import { isSpectrum1D } from '../../../../data/data1d/Spectrum1D/isSpectrum1D.ts';
|
|
12
12
|
import type { ExtractFilterEntry } from '../../../../data/types/common/ExtractFilterEntry.js';
|
|
13
13
|
import { useFilterSyncOptions } from '../../../context/FilterSyncOptionsContext.tsx';
|
|
14
14
|
import Label from '../../../elements/Label.js';
|
|
@@ -53,18 +53,13 @@ export default function BaseLineCorrectionOptionsPanel(
|
|
|
53
53
|
useFilterSyncOptions<BaselineAlgorithmOptions>();
|
|
54
54
|
const spectrum = useTempSpectrum();
|
|
55
55
|
const {
|
|
56
|
-
register,
|
|
57
|
-
reset,
|
|
56
|
+
form: { handleSubmit, register, formState, getValues, reset, control },
|
|
58
57
|
onAlgorithmChange,
|
|
59
58
|
submitHandler,
|
|
60
|
-
handleSubmit,
|
|
61
59
|
handleApplyFilter,
|
|
62
60
|
handleCancelFilter,
|
|
63
|
-
control,
|
|
64
61
|
algorithm,
|
|
65
62
|
defaultAlgorithmSelectProps,
|
|
66
|
-
formState: { isDirty },
|
|
67
|
-
getValues,
|
|
68
63
|
} = useBaselineCorrection(filter);
|
|
69
64
|
|
|
70
65
|
function handleConfirm(event: MouseEvent<HTMLElement>) {
|
|
@@ -81,7 +76,7 @@ export default function BaseLineCorrectionOptionsPanel(
|
|
|
81
76
|
register('livePreview');
|
|
82
77
|
const disabledAction =
|
|
83
78
|
!!filter.value &&
|
|
84
|
-
!isDirty &&
|
|
79
|
+
!formState.isDirty &&
|
|
85
80
|
filter.value.algorithm === getValues().algorithm;
|
|
86
81
|
const AlgorithmFields = algorithm?.value
|
|
87
82
|
? BaselineAlgorithmFields[algorithm.value]
|
|
@@ -21,11 +21,9 @@ export function BaseZeroFillingOptions(
|
|
|
21
21
|
const { filter, enableEdit = true, onCancel, onConfirm, onEditStart } = props;
|
|
22
22
|
|
|
23
23
|
const {
|
|
24
|
-
control,
|
|
24
|
+
form: { register, formState, control },
|
|
25
25
|
submitHandler,
|
|
26
|
-
register,
|
|
27
26
|
handleCancelFilter,
|
|
28
|
-
formState: { isDirty },
|
|
29
27
|
} = useZeroFilling(filter);
|
|
30
28
|
|
|
31
29
|
function handleConfirm(event: MouseEvent<HTMLElement>) {
|
|
@@ -41,7 +39,7 @@ export function BaseZeroFillingOptions(
|
|
|
41
39
|
const { onChange: onLivePreviewFieldChange, ...livePreviewFieldOptions } =
|
|
42
40
|
register('livePreview');
|
|
43
41
|
|
|
44
|
-
const disabledAction = filter.value && !isDirty;
|
|
42
|
+
const disabledAction = filter.value && !formState.isDirty;
|
|
45
43
|
|
|
46
44
|
const nbPointsList = getZeroFillingNbPoints(filter);
|
|
47
45
|
return (
|
|
@@ -187,11 +187,11 @@ export function useBaselineCorrection(
|
|
|
187
187
|
|
|
188
188
|
const { resolver, values } = getBaselineData(algorithm?.value, filter?.value);
|
|
189
189
|
|
|
190
|
-
const
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
190
|
+
const form = useForm<BaselineAlgorithmOptions>({
|
|
191
|
+
defaultValues: values,
|
|
192
|
+
resolver: resolver as any,
|
|
193
|
+
});
|
|
194
|
+
const { reset, handleSubmit } = form;
|
|
195
195
|
|
|
196
196
|
function syncWatch(sharedFilterOptions: any) {
|
|
197
197
|
const { algorithm } = sharedFilterOptions;
|
|
@@ -266,11 +266,9 @@ export function useBaselineCorrection(
|
|
|
266
266
|
algorithm,
|
|
267
267
|
defaultAlgorithmSelectProps,
|
|
268
268
|
onAlgorithmChange,
|
|
269
|
-
handleSubmit,
|
|
270
269
|
submitHandler,
|
|
271
270
|
handleApplyFilter,
|
|
272
271
|
handleCancelFilter,
|
|
273
|
-
|
|
274
|
-
...otherFormOptions,
|
|
272
|
+
form,
|
|
275
273
|
};
|
|
276
274
|
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import type { ZeroFillingOptions as BaseZeroFillingOptions } from '@zakodium/nmr-types';
|
|
2
|
+
import { isSpectrum1D, isSpectrum2D } from '@zakodium/nmrium-core';
|
|
2
3
|
import type { NmrData2DFid } from 'cheminfo-types';
|
|
3
4
|
import { useCallback, useEffect, useRef } from 'react';
|
|
4
5
|
import { useForm } from 'react-hook-form';
|
|
5
6
|
|
|
6
|
-
import { isSpectrum1D } from '../../../../../data/data1d/Spectrum1D/index.js';
|
|
7
|
-
import { isSpectrum2D } from '../../../../../data/data2d/Spectrum2D/index.js';
|
|
8
7
|
import type { ExtractFilterEntry } from '../../../../../data/types/common/ExtractFilterEntry.js';
|
|
9
8
|
import generateNumbersPowerOfX from '../../../../../data/utilities/generateNumbersPowerOfX.js';
|
|
10
9
|
import { useDispatch } from '../../../../context/DispatchContext.js';
|
|
@@ -131,13 +130,13 @@ export const useZeroFilling = (
|
|
|
131
130
|
useDispatchZeroFilling(filter);
|
|
132
131
|
const previousPreviewRef = useRef<boolean>(true);
|
|
133
132
|
|
|
134
|
-
const
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
133
|
+
const form = useForm({
|
|
134
|
+
defaultValues: {
|
|
135
|
+
nbPoints: filter?.value?.nbPoints || defaultNbPoints,
|
|
136
|
+
livePreview: true,
|
|
137
|
+
},
|
|
138
|
+
});
|
|
139
|
+
const { getValues, reset, handleSubmit } = form;
|
|
141
140
|
|
|
142
141
|
function syncWatch(sharedFilterOptions: any) {
|
|
143
142
|
reset({ ...getValues(), ...sharedFilterOptions });
|
|
@@ -194,12 +193,9 @@ export const useZeroFilling = (
|
|
|
194
193
|
}, [applyFilterOnload, handleSubmit, onChange]);
|
|
195
194
|
|
|
196
195
|
return {
|
|
197
|
-
handleSubmit,
|
|
198
|
-
register,
|
|
199
|
-
control,
|
|
200
196
|
submitHandler,
|
|
201
197
|
handleApplyFilter,
|
|
202
198
|
handleCancelFilter,
|
|
203
|
-
|
|
199
|
+
form,
|
|
204
200
|
};
|
|
205
201
|
};
|