nmrium 1.11.0 → 2.0.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/FloatPublicationString.d.ts.map +1 -1
- package/lib/component/1d/FloatPublicationString.js +170 -109
- package/lib/component/1d/FloatPublicationString.js.map +1 -1
- package/lib/component/1d/FloatingRanges.d.ts.map +1 -1
- package/lib/component/1d/FloatingRanges.js +2 -2
- package/lib/component/1d/FloatingRanges.js.map +1 -1
- package/lib/component/1d/SVGContent1D.js +1 -1
- package/lib/component/1d/SVGContent1D.js.map +1 -1
- package/lib/component/1d/database/DatabaseSpectrum.d.ts.map +1 -1
- package/lib/component/1d/database/DatabaseSpectrum.js +1 -1
- package/lib/component/1d/database/DatabaseSpectrum.js.map +1 -1
- package/lib/component/1d/inset/DraggableInset.d.ts.map +1 -1
- package/lib/component/1d/inset/DraggableInset.js +3 -3
- package/lib/component/1d/inset/DraggableInset.js.map +1 -1
- package/lib/component/1d/matrix/Boxplot.js +1 -1
- package/lib/component/1d/matrix/Stocsy.js +1 -1
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js +2 -2
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js.map +1 -1
- package/lib/component/1d/peaks/PeakAnnotations.js +2 -2
- package/lib/component/1d/peaks/PeakAnnotations.js.map +1 -1
- package/lib/component/1d/peaks/PeakAnnotationsSpreadMode.js +1 -1
- package/lib/component/1d/peaks/PeakAnnotationsSpreadMode.js.map +1 -1
- package/lib/component/1d/peaks/Peaks.js +2 -2
- package/lib/component/1d/peaks/Peaks.js.map +1 -1
- package/lib/component/1d/ranges/Range.d.ts +1 -1
- package/lib/component/1d/ranges/Range.js +3 -3
- package/lib/component/1d/ranges/Range.js.map +1 -1
- package/lib/component/1d/ranges/Ranges.js +2 -2
- package/lib/component/1d/ranges/Ranges.js.map +1 -1
- package/lib/component/1d/ranges/RangesIntegrals.js +1 -1
- package/lib/component/1d/ranges/useAssignmentsPopoverActionsButtons.d.ts +1 -1
- package/lib/component/1d/ranges/useAssignmentsPopoverActionsButtons.d.ts.map +1 -1
- package/lib/component/1d/ranges/useAssignmentsPopoverActionsButtons.js +4 -4
- package/lib/component/1d/ranges/useAssignmentsPopoverActionsButtons.js.map +1 -1
- package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.d.ts.map +1 -1
- package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.js +4 -4
- package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.js.map +1 -1
- package/lib/component/1d-2d/components/SpectrumInfoBlock.d.ts.map +1 -1
- package/lib/component/1d-2d/components/SpectrumInfoBlock.js +5 -19
- package/lib/component/1d-2d/components/SpectrumInfoBlock.js.map +1 -1
- package/lib/component/2d/FooterBanner.d.ts +1 -1
- package/lib/component/2d/SVGContent2D.d.ts +1 -1
- package/lib/component/2d/YAxis.js +3 -3
- package/lib/component/2d/YAxis.js.map +1 -1
- package/lib/component/2d/ft/Contours.d.ts.map +1 -1
- package/lib/component/2d/ft/Contours.js +10 -12
- package/lib/component/2d/ft/Contours.js.map +1 -1
- package/lib/component/2d/ft/FTContainer.d.ts +1 -1
- package/lib/component/2d/tools/XYLabelPointer.d.ts +1 -1
- package/lib/component/2d/useTracesSpectra.js +1 -1
- package/lib/component/2d/zones/SignalsGuideLines.js +5 -5
- package/lib/component/2d/zones/SignalsGuideLines.js.map +1 -1
- package/lib/component/2d/zones/Zone.js +1 -1
- package/lib/component/2d/zones/Zone.js.map +1 -1
- package/lib/component/EventsTrackers/BrushTracker.d.ts +1 -1
- package/lib/component/EventsTrackers/BrushTracker.d.ts.map +1 -1
- package/lib/component/EventsTrackers/KeysListenerTracker.d.ts.map +1 -1
- package/lib/component/EventsTrackers/KeysListenerTracker.js +6 -0
- package/lib/component/EventsTrackers/KeysListenerTracker.js.map +1 -1
- package/lib/component/context/LoggerContext.d.ts +1 -0
- package/lib/component/context/LoggerContext.d.ts.map +1 -1
- package/lib/component/context/LoggerContext.js.map +1 -1
- package/lib/component/context/PreferencesContext.d.ts +1 -1
- package/lib/component/context/PreferencesContext.d.ts.map +1 -1
- package/lib/component/elements/ActionsButtonsPopover.d.ts +9 -5
- package/lib/component/elements/ActionsButtonsPopover.d.ts.map +1 -1
- package/lib/component/elements/ActionsButtonsPopover.js +42 -10
- package/lib/component/elements/ActionsButtonsPopover.js.map +1 -1
- package/lib/component/elements/Alert.d.ts.map +1 -1
- package/lib/component/elements/Alert.js +3 -2
- package/lib/component/elements/Alert.js.map +1 -1
- package/lib/component/elements/DraggableDialog.d.ts +1 -1
- package/lib/component/elements/DraggableDialog.d.ts.map +1 -1
- package/lib/component/elements/StandardDialog.d.ts +3 -0
- package/lib/component/elements/StandardDialog.d.ts.map +1 -0
- package/lib/component/elements/StandardDialog.js +7 -0
- package/lib/component/elements/StandardDialog.js.map +1 -0
- package/lib/component/elements/ToolbarPopoverItem.d.ts +7 -2
- package/lib/component/elements/ToolbarPopoverItem.d.ts.map +1 -1
- package/lib/component/elements/ToolbarPopoverItem.js +6 -2
- package/lib/component/elements/ToolbarPopoverItem.js.map +1 -1
- package/lib/component/elements/export/ExportManager.js +1 -1
- package/lib/component/elements/export/ExportManager.js.map +1 -1
- package/lib/component/elements/export/ExportOptionsModal.js +3 -2
- package/lib/component/elements/export/ExportOptionsModal.js.map +1 -1
- package/lib/component/elements/print/PrintContent.d.ts.map +1 -1
- package/lib/component/elements/print/PrintContent.js +3 -2
- package/lib/component/elements/print/PrintContent.js.map +1 -1
- package/lib/component/header/Header.js +1 -1
- package/lib/component/header/Header.js.map +1 -1
- package/lib/component/hooks/reduce2DSpectrum.d.ts +4 -0
- package/lib/component/hooks/reduce2DSpectrum.d.ts.map +1 -0
- package/lib/component/hooks/reduce2DSpectrum.js +60 -0
- package/lib/component/hooks/reduce2DSpectrum.js.map +1 -0
- package/lib/component/hooks/use2DReducer.d.ts +14 -0
- package/lib/component/hooks/use2DReducer.d.ts.map +1 -0
- package/lib/component/hooks/use2DReducer.js +30 -0
- package/lib/component/hooks/use2DReducer.js.map +1 -0
- package/lib/component/hooks/useActiveNucleusTab.js +1 -1
- package/lib/component/hooks/useActiveNucleusTab.js.map +1 -1
- package/lib/component/hooks/useActiveSpectrumRangesViewState.js +1 -1
- package/lib/component/hooks/useCreateNmriumZip.d.ts +3 -0
- package/lib/component/hooks/useCreateNmriumZip.d.ts.map +1 -0
- package/lib/component/hooks/useCreateNmriumZip.js +28 -0
- package/lib/component/hooks/useCreateNmriumZip.js.map +1 -0
- package/lib/component/hooks/useDatumWithSpectraStatistics.js +1 -1
- package/lib/component/hooks/useDatumWithSpectraStatistics.js.map +1 -1
- package/lib/component/hooks/useExport.d.ts +8 -5
- package/lib/component/hooks/useExport.d.ts.map +1 -1
- package/lib/component/hooks/useExport.js +5 -22
- package/lib/component/hooks/useExport.js.map +1 -1
- package/lib/component/hooks/useSVGUnitConverter.d.ts.map +1 -1
- package/lib/component/hooks/useSVGUnitConverter.js +12 -9
- package/lib/component/hooks/useSVGUnitConverter.js.map +1 -1
- package/lib/component/hooks/useSaveSettings.d.ts.map +1 -1
- package/lib/component/hooks/useSaveSettings.js +3 -2
- package/lib/component/hooks/useSaveSettings.js.map +1 -1
- package/lib/component/hooks/useSetActiveSpectrumAction.js +1 -1
- package/lib/component/hooks/useSetActiveSpectrumAction.js.map +1 -1
- package/lib/component/hooks/useTextMetrics.d.ts +16 -1
- package/lib/component/hooks/useTextMetrics.d.ts.map +1 -1
- package/lib/component/hooks/useTextMetrics.js +43 -15
- package/lib/component/hooks/useTextMetrics.js.map +1 -1
- package/lib/component/hooks/useToggleSpectraVisibility.js +1 -1
- package/lib/component/hooks/use_acs_settings.d.ts +4 -0
- package/lib/component/hooks/use_acs_settings.d.ts.map +1 -0
- package/lib/component/hooks/use_acs_settings.js +21 -0
- package/lib/component/hooks/use_acs_settings.js.map +1 -0
- package/lib/component/hooks/use_publication_strings.d.ts +9 -0
- package/lib/component/hooks/use_publication_strings.d.ts.map +1 -0
- package/lib/component/hooks/use_publication_strings.js +42 -0
- package/lib/component/hooks/use_publication_strings.js.map +1 -0
- package/lib/component/loader/useLoadFiles.d.ts.map +1 -1
- package/lib/component/loader/useLoadFiles.js +4 -5
- package/lib/component/loader/useLoadFiles.js.map +1 -1
- package/lib/component/main/InnerNMRium.d.ts.map +1 -1
- package/lib/component/main/InnerNMRium.js +2 -2
- package/lib/component/main/InnerNMRium.js.map +1 -1
- package/lib/component/main/NMRium.d.ts +48 -3
- package/lib/component/main/NMRium.d.ts.map +1 -1
- package/lib/component/main/NMRium.js.map +1 -1
- package/lib/component/main/NMRiumRefAPI.d.ts +2 -0
- package/lib/component/main/NMRiumRefAPI.d.ts.map +1 -1
- package/lib/component/main/NMRiumRefAPI.js +4 -1
- package/lib/component/main/NMRiumRefAPI.js.map +1 -1
- package/lib/component/main/NMRiumStateProvider.d.ts +5 -2
- package/lib/component/main/NMRiumStateProvider.d.ts.map +1 -1
- package/lib/component/main/NMRiumStateProvider.js +36 -30
- package/lib/component/main/NMRiumStateProvider.js.map +1 -1
- package/lib/component/main/NMRiumViewer.js +1 -1
- package/lib/component/main/NMRiumViewer.js.map +1 -1
- package/lib/component/main/NMRiumViewerWrapper.d.ts.map +1 -1
- package/lib/component/main/NMRiumViewerWrapper.js +3 -5
- package/lib/component/main/NMRiumViewerWrapper.js.map +1 -1
- package/lib/component/modal/AboutPredictionModal.js +2 -2
- package/lib/component/modal/AboutPredictionModal.js.map +1 -1
- package/lib/component/modal/AboutSpectrumSimulationModal.js +2 -2
- package/lib/component/modal/AboutSpectrumSimulationModal.js.map +1 -1
- package/lib/component/modal/EditPeakShapeModal.d.ts.map +1 -1
- package/lib/component/modal/EditPeakShapeModal.js +4 -3
- package/lib/component/modal/EditPeakShapeModal.js.map +1 -1
- package/lib/component/modal/ExportAsJcampModal.d.ts.map +1 -1
- package/lib/component/modal/ExportAsJcampModal.js +3 -2
- package/lib/component/modal/ExportAsJcampModal.js.map +1 -1
- package/lib/component/modal/ImportPublicationStringModal.d.ts.map +1 -1
- package/lib/component/modal/ImportPublicationStringModal.js +3 -2
- package/lib/component/modal/ImportPublicationStringModal.js.map +1 -1
- package/lib/component/modal/LoadJCAMPModal.d.ts.map +1 -1
- package/lib/component/modal/LoadJCAMPModal.js +7 -6
- package/lib/component/modal/LoadJCAMPModal.js.map +1 -1
- package/lib/component/modal/LogsHistoryModal.d.ts.map +1 -1
- package/lib/component/modal/LogsHistoryModal.js +3 -2
- package/lib/component/modal/LogsHistoryModal.js.map +1 -1
- package/lib/component/modal/MoleculeAutoLabelsDatabaseModal.d.ts.map +1 -1
- package/lib/component/modal/MoleculeAutoLabelsDatabaseModal.js +4 -3
- package/lib/component/modal/MoleculeAutoLabelsDatabaseModal.js.map +1 -1
- package/lib/component/modal/MoleculeStructureEditorModal.d.ts.map +1 -1
- package/lib/component/modal/MoleculeStructureEditorModal.js +4 -3
- package/lib/component/modal/MoleculeStructureEditorModal.js.map +1 -1
- package/lib/component/modal/MultipletAnalysisModal.d.ts.map +1 -1
- package/lib/component/modal/MultipletAnalysisModal.js +2 -2
- package/lib/component/modal/MultipletAnalysisModal.js.map +1 -1
- package/lib/component/modal/PredictSpectraModal.d.ts.map +1 -1
- package/lib/component/modal/PredictSpectraModal.js +3 -2
- package/lib/component/modal/PredictSpectraModal.js.map +1 -1
- package/lib/component/modal/PublicationStringModal.d.ts +10 -1
- package/lib/component/modal/PublicationStringModal.d.ts.map +1 -1
- package/lib/component/modal/PublicationStringModal.js +89 -77
- package/lib/component/modal/PublicationStringModal.js.map +1 -1
- package/lib/component/modal/SaveAsModal.d.ts.map +1 -1
- package/lib/component/modal/SaveAsModal.js +3 -2
- package/lib/component/modal/SaveAsModal.js.map +1 -1
- package/lib/component/modal/aboutUs/AboutUsModal.js +2 -2
- package/lib/component/modal/aboutUs/AboutUsModal.js.map +1 -1
- package/lib/component/modal/changeSum/ChangeSumModal.d.ts.map +1 -1
- package/lib/component/modal/changeSum/ChangeSumModal.js +2 -2
- package/lib/component/modal/changeSum/ChangeSumModal.js.map +1 -1
- package/lib/component/modal/editRange/EditRangeModal.js +1 -1
- package/lib/component/modal/editRange/forms/components/NewSignalTab.js +1 -1
- package/lib/component/modal/metaImportation/MetaImportationModal.d.ts.map +1 -1
- package/lib/component/modal/metaImportation/MetaImportationModal.js +3 -2
- package/lib/component/modal/metaImportation/MetaImportationModal.js.map +1 -1
- package/lib/component/modal/setting/{GeneralSettings.d.ts → general_settings.d.ts} +1 -1
- package/lib/component/modal/setting/general_settings.d.ts.map +1 -0
- package/lib/component/modal/setting/{GeneralSettings.js → general_settings.js} +12 -6
- package/lib/component/modal/setting/general_settings.js.map +1 -0
- package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.js +1 -1
- package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/DisplayTabContent.js +1 -1
- package/lib/component/modal/setting/settings-tabs/DisplayTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/ExternalAPIsTabContent.js +1 -1
- package/lib/component/modal/setting/settings-tabs/ExternalAPIsTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/GeneralTabContent.js +1 -1
- package/lib/component/modal/setting/settings-tabs/GeneralTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.js +1 -1
- package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/NucleiTabContent.js +1 -1
- package/lib/component/modal/setting/settings-tabs/NucleiTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.js +1 -1
- package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/SpectraColorsTabContent.js +1 -1
- package/lib/component/modal/setting/settings-tabs/SpectraColorsTabContent.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/general_settings.d.ts +10 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings.js +82 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.d.ts +1356 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.js +50 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.d.ts +1356 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.js +22 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.d.ts +1354 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.js +61 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header_actions_buttons.d.ts +1354 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header_actions_buttons.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header_actions_buttons.js +110 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header_actions_buttons.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.d.ts +466 -0
- package/lib/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.js +59 -0
- package/lib/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.d.ts +1354 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.js +32 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.d.ts +1354 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.js +80 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.d.ts +1354 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.d.ts +55 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.js +151 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.js +11 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.d.ts +1354 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.js +58 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.d.ts +1354 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.js +34 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.d.ts +1354 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.js +26 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.d.ts +1354 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.js +76 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.d.ts +1354 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.js +40 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.d.ts +1354 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.js +142 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.d.ts +1354 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.js +112 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.d.ts +1354 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.js +38 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/ui/table.d.ts +68 -0
- package/lib/component/modal/setting/tanstack_general_settings/ui/table.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/ui/table.js +133 -0
- package/lib/component/modal/setting/tanstack_general_settings/ui/table.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/ui/table_section.d.ts +10 -0
- package/lib/component/modal/setting/tanstack_general_settings/ui/table_section.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/ui/table_section.js +31 -0
- package/lib/component/modal/setting/tanstack_general_settings/ui/table_section.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/auto_processing_tab_validation.d.ts +71 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/auto_processing_tab_validation.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/auto_processing_tab_validation.js +67 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/auto_processing_tab_validation.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/check_unique_by_key.d.ts +10 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/check_unique_by_key.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/check_unique_by_key.js +40 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/check_unique_by_key.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/database_tab_validation.d.ts +11 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/database_tab_validation.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/database_tab_validation.js +20 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/database_tab_validation.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.d.ts +166 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.js +58 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/external_apis_validation.d.ts +32 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/external_apis_validation.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/external_apis_validation.js +11 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/external_apis_validation.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.d.ts +42 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.js +34 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/import_filters_tab_validation.d.ts +37 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/import_filters_tab_validation.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/import_filters_tab_validation.js +26 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/import_filters_tab_validation.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.d.ts +17 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.js +19 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.d.ts +187 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.js +77 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/spectra_colors_tab_validation.d.ts +54 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/spectra_colors_tab_validation.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/spectra_colors_tab_validation.js +22 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/spectra_colors_tab_validation.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/title_block_tab_validation.d.ts +55 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/title_block_tab_validation.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/title_block_tab_validation.js +18 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/title_block_tab_validation.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.d.ts +32 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.js +34 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/utils.d.ts +13 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/utils.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/utils.js +20 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/utils.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation.d.ts +558 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation.js +40 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation.js.map +1 -0
- package/lib/component/panels/MoleculesPanel/MoleculeOptionsPanel.js +2 -2
- package/lib/component/panels/MoleculesPanel/MoleculeOptionsPanel.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanel.js +2 -2
- package/lib/component/panels/MoleculesPanel/MoleculePanel.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +7 -7
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculeStructure.d.ts +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculeStructure.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculeStructure.js +31 -4
- package/lib/component/panels/MoleculesPanel/MoleculeStructure.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.js +17 -17
- package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/hooks/useExtractAtomAssignmentLabel.js +1 -1
- package/lib/component/panels/MoleculesPanel/hooks/useExtractAtomAssignmentLabel.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/utilities/extractFromAtom.d.ts +1 -1
- package/lib/component/panels/MoleculesPanel/utilities/getAssignIds.js +1 -1
- package/lib/component/panels/MoleculesPanel/utilities/getCurrentDiaIDsToHighlight.d.ts +1 -1
- package/lib/component/panels/MoleculesPanel/utilities/getHighlightsOnHover.d.ts +1 -1
- package/lib/component/panels/MoleculesPanel/utilities/getHighlightsOnHover.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/utilities/getHighlightsOnHover.js +1 -1
- package/lib/component/panels/MoleculesPanel/utilities/getHighlightsOnHover.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/utilities/getUniqueDiaIDs.d.ts +1 -1
- package/lib/component/panels/Panels.d.ts.map +1 -1
- package/lib/component/panels/Panels.js +12 -25
- package/lib/component/panels/Panels.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesHeader.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/RangesHeader.js +23 -15
- package/lib/component/panels/RangesPanel/RangesHeader.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesTableRow.js +1 -1
- package/lib/component/panels/RangesPanel/RangesTableRow.js.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.d.ts +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.js +2 -2
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.js.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTable.js +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.js +3 -2
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.d.ts +2 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.js +8 -3
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/SpectrumSetting.js +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/SpectrumSetting.js.map +1 -1
- package/lib/component/panels/SummaryPanel/SetMolecularFormulaModal.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/SetMolecularFormulaModal.js +3 -2
- package/lib/component/panels/SummaryPanel/SetMolecularFormulaModal.js.map +1 -1
- package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.js +3 -2
- package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseInfo.js +1 -1
- package/lib/component/panels/databasePanel/DatabasePanel.d.ts.map +1 -1
- package/lib/component/panels/databasePanel/DatabasePanel.js +3 -3
- package/lib/component/panels/databasePanel/DatabasePanel.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseStructureSearchModal.js +2 -2
- package/lib/component/panels/databasePanel/DatabaseStructureSearchModal.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseTable.js +1 -1
- package/lib/component/panels/databasePanel/DatabaseTable.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.d.ts +1 -1
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js +27 -34
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.js +1 -1
- package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.js.map +1 -1
- package/lib/component/panels/header/DefaultPanelHeader.d.ts.map +1 -1
- package/lib/component/panels/header/DefaultPanelHeader.js +2 -1
- package/lib/component/panels/header/DefaultPanelHeader.js.map +1 -1
- package/lib/component/panels/hooks/useMoleculeAnnotationCore.js +1 -1
- package/lib/component/panels/hooks/useMoleculeAnnotationCore.js.map +1 -1
- package/lib/component/panels/informationPanel/InformationEditionModal.d.ts.map +1 -1
- package/lib/component/panels/informationPanel/InformationEditionModal.js +3 -2
- package/lib/component/panels/informationPanel/InformationEditionModal.js.map +1 -1
- package/lib/component/panels/informationPanel/InformationPanel.d.ts.map +1 -1
- package/lib/component/panels/informationPanel/InformationPanel.js +38 -3
- package/lib/component/panels/informationPanel/InformationPanel.js.map +1 -1
- package/lib/component/reducer/Reducer.d.ts.map +1 -1
- package/lib/component/reducer/Reducer.js +1 -3
- package/lib/component/reducer/Reducer.js.map +1 -1
- package/lib/component/reducer/actions/AssignmentsActions.js +3 -3
- package/lib/component/reducer/actions/CorrelationsActions.js +2 -2
- package/lib/component/reducer/actions/DatabaseActions.js +1 -1
- package/lib/component/reducer/actions/DomainActions.js +1 -1
- package/lib/component/reducer/actions/FiltersActions.d.ts +2 -4
- package/lib/component/reducer/actions/FiltersActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/FiltersActions.js +14 -5
- package/lib/component/reducer/actions/FiltersActions.js.map +1 -1
- package/lib/component/reducer/actions/InsetActions.js +2 -2
- package/lib/component/reducer/actions/LoadAction.d.ts +1 -4
- package/lib/component/reducer/actions/LoadAction.d.ts.map +1 -1
- package/lib/component/reducer/actions/LoadAction.js +12 -21
- package/lib/component/reducer/actions/LoadAction.js.map +1 -1
- package/lib/component/reducer/actions/MoleculeActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/MoleculeActions.js +6 -3
- package/lib/component/reducer/actions/MoleculeActions.js.map +1 -1
- package/lib/component/reducer/actions/PreferencesActions.js +1 -1
- package/lib/component/reducer/actions/RangesActions.d.ts +1 -1
- package/lib/component/reducer/actions/RangesActions.js +1 -1
- package/lib/component/reducer/actions/SpectraActions.d.ts +5 -1
- package/lib/component/reducer/actions/SpectraActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/SpectraActions.js +5 -3
- 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 -3
- package/lib/component/reducer/actions/ToolsActions.js.map +1 -1
- package/lib/component/reducer/actions/ZonesActions.d.ts +1 -1
- package/lib/component/reducer/actions/ZonesActions.js +2 -2
- package/lib/component/reducer/helper/get2DRange.d.ts +1 -1
- package/lib/component/reducer/preferences/actions/applyGeneralPreferences.d.ts.map +1 -1
- package/lib/component/reducer/preferences/actions/applyGeneralPreferences.js.map +1 -1
- package/lib/component/reducer/preferences/actions/toggleOpenSplitPanel.d.ts +1 -1
- package/lib/component/reducer/preferences/actions/toggleOpenSplitPanel.js +1 -1
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js +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 +4 -4
- package/lib/component/toolbar/ToolBar.d.ts.map +1 -1
- package/lib/component/toolbar/ToolBar.js +5 -1
- package/lib/component/toolbar/ToolBar.js.map +1 -1
- package/lib/component/utility/export.js +1 -1
- package/lib/component/workspaces/workspaceDefaultProperties.d.ts.map +1 -1
- package/lib/component/workspaces/workspaceDefaultProperties.js +12 -0
- package/lib/component/workspaces/workspaceDefaultProperties.js.map +1 -1
- package/lib/data/PredictionManager.d.ts.map +1 -1
- package/lib/data/PredictionManager.js +4 -1
- package/lib/data/PredictionManager.js.map +1 -1
- package/lib/data/SpectraManager.d.ts +1 -1
- package/lib/data/SpectraManager.d.ts.map +1 -1
- package/lib/data/SpectraManager.js +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/autoRangesDetection.js +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectRanges.js +1 -1
- package/lib/data/data2d/Spectrum2D/contours.d.ts +7 -6
- package/lib/data/data2d/Spectrum2D/contours.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/contours.js +22 -6
- package/lib/data/data2d/Spectrum2D/contours.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.js +1 -10
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.js.map +1 -1
- package/lib/data/molecules/Molecule.d.ts +5 -1
- package/lib/data/molecules/Molecule.d.ts.map +1 -1
- package/lib/data/molecules/Molecule.js +9 -7
- package/lib/data/molecules/Molecule.js.map +1 -1
- package/lib/data/molecules/MoleculeManager.d.ts +0 -6
- package/lib/data/molecules/MoleculeManager.d.ts.map +1 -1
- package/lib/data/molecules/MoleculeManager.js +25 -25
- package/lib/data/molecules/MoleculeManager.js.map +1 -1
- package/lib/data/utilities/FindUtilities.js +2 -2
- package/lib/utils/clipboard/clipboardComponents.js +2 -2
- package/lib/utils/clipboard/clipboardComponents.js.map +1 -1
- package/lib/versionInfo.d.ts.map +1 -1
- package/lib/versionInfo.js +1 -1
- package/lib/versionInfo.js.map +1 -1
- package/package.json +44 -43
- package/src/component/1d/FloatPublicationString.tsx +275 -176
- package/src/component/1d/FloatingRanges.tsx +1 -2
- package/src/component/1d/SVGContent1D.tsx +1 -1
- package/src/component/1d/database/DatabaseSpectrum.tsx +3 -1
- package/src/component/1d/inset/DraggableInset.tsx +2 -3
- package/src/component/1d/integral/IntegralResizable.tsx +1 -1
- package/src/component/1d/matrix/Boxplot.tsx +1 -1
- package/src/component/1d/matrix/Stocsy.tsx +1 -1
- package/src/component/1d/multiAnalysis/AnalysisRange.tsx +1 -1
- package/src/component/1d/multiplicityTree/MultiplicityTree.tsx +2 -2
- package/src/component/1d/peaks/PeakAnnotations.tsx +2 -2
- package/src/component/1d/peaks/PeakAnnotationsSpreadMode.tsx +2 -2
- package/src/component/1d/peaks/Peaks.tsx +2 -2
- package/src/component/1d/ranges/Range.tsx +5 -5
- package/src/component/1d/ranges/Ranges.tsx +2 -2
- package/src/component/1d/ranges/RangesIntegrals.tsx +1 -1
- package/src/component/1d/ranges/useAssignmentsPopoverActionsButtons.tsx +5 -5
- package/src/component/1d/tool/BaseLineZones.tsx +1 -1
- package/src/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.tsx +3 -4
- package/src/component/1d-2d/components/SpectrumInfoBlock.tsx +11 -24
- package/src/component/2d/FooterBanner.tsx +1 -1
- package/src/component/2d/SVGContent2D.tsx +1 -1
- package/src/component/2d/YAxis.tsx +3 -3
- package/src/component/2d/ft/Contours.tsx +14 -27
- package/src/component/2d/ft/FTContainer.tsx +1 -1
- package/src/component/2d/tools/XYLabelPointer.tsx +1 -1
- package/src/component/2d/useTracesSpectra.ts +1 -1
- package/src/component/2d/zones/SignalsGuideLines.tsx +5 -5
- package/src/component/2d/zones/Zone.tsx +1 -1
- package/src/component/EventsTrackers/BrushTracker.tsx +1 -1
- package/src/component/EventsTrackers/KeysListenerTracker.tsx +6 -0
- package/src/component/context/LoggerContext.tsx +9 -0
- package/src/component/context/PreferencesContext.tsx +1 -1
- package/src/component/elements/ActionsButtonsPopover.tsx +81 -25
- package/src/component/elements/Alert.tsx +4 -2
- package/src/component/elements/DraggableDialog.tsx +2 -2
- package/src/component/elements/StandardDialog.tsx +11 -0
- package/src/component/elements/ToolbarPopoverItem.tsx +16 -3
- package/src/component/elements/export/ExportManager.tsx +1 -1
- package/src/component/elements/export/ExportOptionsModal.tsx +3 -3
- package/src/component/elements/print/PrintContent.tsx +4 -9
- package/src/component/header/Header.tsx +1 -1
- package/src/component/hooks/reduce2DSpectrum.ts +98 -0
- package/src/component/hooks/use2DReducer.tsx +56 -0
- package/src/component/hooks/useActiveNucleusTab.ts +1 -1
- package/src/component/hooks/useActiveSpectrumRangesViewState.ts +1 -1
- package/src/component/hooks/useCreateNmriumZip.ts +37 -0
- package/src/component/hooks/useDatumWithSpectraStatistics.ts +1 -1
- package/src/component/hooks/useExport.tsx +17 -32
- package/src/component/hooks/useSVGUnitConverter.ts +13 -9
- package/src/component/hooks/useSaveSettings.tsx +4 -3
- package/src/component/hooks/useSetActiveSpectrumAction.ts +1 -1
- package/src/component/hooks/useTextMetrics.ts +66 -18
- package/src/component/hooks/useToggleSpectraVisibility.tsx +1 -1
- package/src/component/hooks/use_acs_settings.ts +27 -0
- package/src/component/hooks/use_publication_strings.ts +67 -0
- package/src/component/loader/useLoadFiles.ts +6 -10
- package/src/component/main/InnerNMRium.tsx +4 -2
- package/src/component/main/NMRium.tsx +50 -2
- package/src/component/main/NMRiumRefAPI.ts +7 -1
- package/src/component/main/NMRiumStateProvider.tsx +57 -35
- package/src/component/main/NMRiumViewer.tsx +1 -1
- package/src/component/main/NMRiumViewerWrapper.tsx +3 -5
- package/src/component/modal/AboutPredictionModal.tsx +3 -3
- package/src/component/modal/AboutSpectrumSimulationModal.tsx +3 -3
- package/src/component/modal/EditPeakShapeModal.tsx +5 -4
- package/src/component/modal/ExportAsJcampModal.tsx +4 -3
- package/src/component/modal/ImportPublicationStringModal.tsx +4 -3
- package/src/component/modal/LoadJCAMPModal.tsx +8 -7
- package/src/component/modal/LogsHistoryModal.tsx +4 -3
- package/src/component/modal/MoleculeAutoLabelsDatabaseModal.tsx +5 -4
- package/src/component/modal/MoleculeStructureEditorModal.tsx +9 -4
- package/src/component/modal/MultipletAnalysisModal.tsx +3 -3
- package/src/component/modal/PredictSpectraModal.tsx +4 -3
- package/src/component/modal/PublicationStringModal.tsx +234 -134
- package/src/component/modal/SaveAsModal.tsx +4 -9
- package/src/component/modal/aboutUs/AboutUsModal.tsx +3 -3
- package/src/component/modal/changeSum/ChangeSumModal.tsx +4 -3
- package/src/component/modal/editRange/EditRangeModal.tsx +1 -1
- package/src/component/modal/editRange/forms/components/NewSignalTab.tsx +1 -1
- package/src/component/modal/metaImportation/MetaImportationModal.tsx +4 -3
- package/src/component/modal/setting/{GeneralSettings.tsx → general_settings.tsx} +36 -5
- package/src/component/modal/setting/settings-tabs/DatabasesTabContent.tsx +1 -1
- package/src/component/modal/setting/settings-tabs/DisplayTabContent.tsx +1 -1
- package/src/component/modal/setting/settings-tabs/ExternalAPIsTabContent.tsx +1 -1
- package/src/component/modal/setting/settings-tabs/GeneralTabContent.tsx +1 -1
- package/src/component/modal/setting/settings-tabs/InfoBlockTabContent.tsx +1 -1
- package/src/component/modal/setting/settings-tabs/NucleiTabContent.tsx +1 -1
- package/src/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.tsx +1 -1
- package/src/component/modal/setting/settings-tabs/SpectraColorsTabContent.tsx +1 -1
- package/src/component/modal/setting/tanstack_general_settings/general_settings.tsx +132 -0
- package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.tsx +116 -0
- package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.tsx +39 -0
- package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.tsx +105 -0
- package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_header_actions_buttons.tsx +199 -0
- package/src/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.ts +95 -0
- package/src/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.tsx +81 -0
- package/src/component/modal/setting/tanstack_general_settings/tabs/database_tab.tsx +210 -0
- package/src/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.tsx +271 -0
- package/src/component/modal/setting/tanstack_general_settings/tabs/export_tab.tsx +24 -0
- package/src/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.tsx +150 -0
- package/src/component/modal/setting/tanstack_general_settings/tabs/general_tab.tsx +94 -0
- package/src/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.tsx +72 -0
- package/src/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.tsx +192 -0
- package/src/component/modal/setting/tanstack_general_settings/tabs/panels_tab.tsx +150 -0
- package/src/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.tsx +352 -0
- package/src/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.tsx +248 -0
- package/src/component/modal/setting/tanstack_general_settings/tabs/tools_tab.tsx +155 -0
- package/src/component/modal/setting/tanstack_general_settings/ui/table.tsx +163 -0
- package/src/component/modal/setting/tanstack_general_settings/ui/table_section.tsx +52 -0
- package/src/component/modal/setting/tanstack_general_settings/validation/auto_processing_tab_validation.ts +73 -0
- package/src/component/modal/setting/tanstack_general_settings/validation/check_unique_by_key.ts +55 -0
- package/src/component/modal/setting/tanstack_general_settings/validation/database_tab_validation.ts +23 -0
- package/src/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.ts +63 -0
- package/src/component/modal/setting/tanstack_general_settings/validation/external_apis_validation.ts +12 -0
- package/src/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.ts +40 -0
- package/src/component/modal/setting/tanstack_general_settings/validation/import_filters_tab_validation.ts +26 -0
- package/src/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.ts +24 -0
- package/src/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.ts +88 -0
- package/src/component/modal/setting/tanstack_general_settings/validation/spectra_colors_tab_validation.ts +29 -0
- package/src/component/modal/setting/tanstack_general_settings/validation/title_block_tab_validation.ts +26 -0
- package/src/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.ts +34 -0
- package/src/component/modal/setting/tanstack_general_settings/validation/utils.ts +30 -0
- package/src/component/modal/setting/tanstack_general_settings/validation.ts +51 -0
- package/src/component/panels/MoleculesPanel/MoleculeOptionsPanel.tsx +2 -2
- package/src/component/panels/MoleculesPanel/MoleculePanel.tsx +2 -2
- package/src/component/panels/MoleculesPanel/MoleculePanelHeader.tsx +14 -8
- package/src/component/panels/MoleculesPanel/MoleculeStructure.tsx +40 -5
- package/src/component/panels/MoleculesPanel/hooks/useAtomAssignment.tsx +21 -21
- package/src/component/panels/MoleculesPanel/hooks/useExtractAtomAssignmentLabel.ts +1 -1
- package/src/component/panels/MoleculesPanel/utilities/extractFromAtom.ts +1 -1
- package/src/component/panels/MoleculesPanel/utilities/getAssignIds.ts +1 -1
- package/src/component/panels/MoleculesPanel/utilities/getCurrentDiaIDsToHighlight.ts +1 -1
- package/src/component/panels/MoleculesPanel/utilities/getHighlightsOnHover.ts +2 -2
- package/src/component/panels/MoleculesPanel/utilities/getUniqueDiaIDs.ts +1 -1
- package/src/component/panels/Panels.tsx +4 -40
- package/src/component/panels/RangesPanel/RangesHeader.tsx +34 -29
- package/src/component/panels/RangesPanel/RangesTableRow.tsx +1 -1
- package/src/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.tsx +3 -3
- package/src/component/panels/SpectraPanel/SpectraTable.tsx +1 -1
- package/src/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.tsx +3 -2
- package/src/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.tsx +12 -4
- package/src/component/panels/SpectraPanel/base/setting/SpectrumSetting.tsx +1 -1
- package/src/component/panels/SummaryPanel/SetMolecularFormulaModal.tsx +4 -3
- package/src/component/panels/SummaryPanel/SetShiftTolerancesModal.tsx +4 -3
- package/src/component/panels/databasePanel/DatabaseInfo.tsx +1 -1
- package/src/component/panels/databasePanel/DatabasePanel.tsx +7 -5
- package/src/component/panels/databasePanel/DatabaseStructureSearchModal.tsx +3 -3
- package/src/component/panels/databasePanel/DatabaseTable.tsx +1 -1
- package/src/component/panels/filtersPanel/Filters/FiltersSectionsPanel.tsx +35 -50
- package/src/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.tsx +1 -1
- package/src/component/panels/header/DefaultPanelHeader.tsx +2 -1
- package/src/component/panels/hooks/useMoleculeAnnotationCore.ts +1 -1
- package/src/component/panels/informationPanel/InformationEditionModal.tsx +4 -3
- package/src/component/panels/informationPanel/InformationPanel.tsx +83 -2
- package/src/component/reducer/Reducer.ts +1 -3
- package/src/component/reducer/actions/AssignmentsActions.ts +3 -3
- package/src/component/reducer/actions/CorrelationsActions.ts +2 -2
- package/src/component/reducer/actions/DatabaseActions.ts +1 -1
- package/src/component/reducer/actions/DomainActions.ts +1 -1
- package/src/component/reducer/actions/FiltersActions.ts +16 -10
- package/src/component/reducer/actions/InsetActions.ts +2 -2
- package/src/component/reducer/actions/LoadAction.ts +16 -31
- package/src/component/reducer/actions/MoleculeActions.ts +6 -3
- package/src/component/reducer/actions/PreferencesActions.ts +1 -1
- package/src/component/reducer/actions/RangesActions.ts +3 -3
- package/src/component/reducer/actions/SpectraActions.ts +15 -7
- package/src/component/reducer/actions/ToolsActions.ts +5 -3
- package/src/component/reducer/actions/ZonesActions.ts +3 -3
- package/src/component/reducer/helper/get2DRange.ts +1 -1
- package/src/component/reducer/preferences/actions/applyGeneralPreferences.ts +1 -2
- package/src/component/reducer/preferences/actions/toggleOpenSplitPanel.ts +2 -2
- package/src/component/reducer/preferences/panelsPreferencesDefaultValues.ts +1 -1
- package/src/component/reducer/preferences/preferencesReducer.ts +7 -7
- package/src/component/toolbar/ToolBar.tsx +6 -1
- package/src/component/utility/export.ts +1 -1
- package/src/component/workspaces/workspaceDefaultProperties.ts +14 -1
- package/src/data/PredictionManager.ts +4 -1
- package/src/data/SpectraManager.ts +2 -2
- package/src/data/data1d/Spectrum1D/ranges/autoRangesDetection.ts +1 -1
- package/src/data/data1d/Spectrum1D/ranges/detectRanges.ts +1 -1
- package/src/data/data2d/Spectrum2D/contours.ts +28 -12
- package/src/data/data2d/Spectrum2D/initiateDatum2D.ts +1 -17
- package/src/data/molecules/Molecule.ts +17 -7
- package/src/data/molecules/MoleculeManager.ts +31 -29
- package/src/data/utilities/FindUtilities.ts +2 -2
- package/src/utils/clipboard/clipboardComponents.tsx +3 -3
- package/src/versionInfo.ts +1 -1
- package/lib/component/modal/setting/GeneralSettings.d.ts.map +0 -1
- package/lib/component/modal/setting/GeneralSettings.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Dialog } from '@blueprintjs/core';
|
|
2
1
|
import { useState } from 'react';
|
|
3
2
|
import type { CanvasEditorOnChangeMolecule } from 'react-ocl';
|
|
4
3
|
import { CanvasMoleculeEditor } from 'react-ocl';
|
|
5
4
|
|
|
5
|
+
import { StandardDialog } from '../../elements/StandardDialog.tsx';
|
|
6
6
|
import { StyledDialogBody } from '../../elements/StyledDialogBody.js';
|
|
7
7
|
|
|
8
8
|
interface DatabaseStructureSearchModalProps {
|
|
@@ -18,7 +18,7 @@ export function DatabaseStructureSearchModal({
|
|
|
18
18
|
}: DatabaseStructureSearchModalProps) {
|
|
19
19
|
const [idCode] = useState(initialIdCode);
|
|
20
20
|
return (
|
|
21
|
-
<
|
|
21
|
+
<StandardDialog
|
|
22
22
|
isOpen
|
|
23
23
|
onClose={() => {
|
|
24
24
|
onClose?.();
|
|
@@ -38,6 +38,6 @@ export function DatabaseStructureSearchModal({
|
|
|
38
38
|
height={450}
|
|
39
39
|
/>
|
|
40
40
|
</StyledDialogBody>
|
|
41
|
-
</
|
|
41
|
+
</StandardDialog>
|
|
42
42
|
);
|
|
43
43
|
}
|
|
@@ -19,7 +19,7 @@ import { usePanelPreferences } from '../../hooks/usePanelPreferences.js';
|
|
|
19
19
|
import useSpectraByActiveNucleus from '../../hooks/useSpectraPerNucleus.js';
|
|
20
20
|
import { formatNumber } from '../../utility/formatNumber.js';
|
|
21
21
|
|
|
22
|
-
import { DatabaseInfo } from './DatabaseInfo.
|
|
22
|
+
import { DatabaseInfo } from './DatabaseInfo.js';
|
|
23
23
|
|
|
24
24
|
interface ToggleEvent {
|
|
25
25
|
onAdd: (row: any) => void;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Switch } from '@blueprintjs/core';
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
3
|
import { Filters1D, Filters2D } from 'nmr-processing';
|
|
4
|
-
import { memo,
|
|
4
|
+
import { memo, useMemo, useRef, useState } from 'react';
|
|
5
5
|
import { FaRegTrashAlt } from 'react-icons/fa';
|
|
6
6
|
import { ObjectInspector } from 'react-inspector';
|
|
7
7
|
import { Button } from 'react-science/ui';
|
|
8
8
|
|
|
9
9
|
import { getFilterLabel } from '../../../../data/getFilterLabel.js';
|
|
10
|
-
import type { FilterEntry
|
|
10
|
+
import type { FilterEntry } from '../../../../data/types/common/FilterEntry.js';
|
|
11
11
|
import { useChartData } from '../../../context/ChartContext.js';
|
|
12
12
|
import { useDispatch } from '../../../context/DispatchContext.js';
|
|
13
13
|
import { useFilterSyncOptions } from '../../../context/FilterSyncOptionsContext.js';
|
|
@@ -16,18 +16,18 @@ import type { AlertButton } from '../../../elements/Alert.js';
|
|
|
16
16
|
import { useAlert } from '../../../elements/Alert.js';
|
|
17
17
|
import { EmptyText } from '../../../elements/EmptyText.js';
|
|
18
18
|
import { Sections } from '../../../elements/Sections.js';
|
|
19
|
-
import { useActiveSpectrum } from '../../../hooks/useActiveSpectrum.
|
|
19
|
+
import { useActiveSpectrum } from '../../../hooks/useActiveSpectrum.js';
|
|
20
20
|
import useSpectraByActiveNucleus from '../../../hooks/useSpectraPerNucleus.js';
|
|
21
21
|
import useSpectrum from '../../../hooks/useSpectrum.js';
|
|
22
22
|
import { getDefaultFilterOptions } from '../../../utility/getDefaultFilterOptions.js';
|
|
23
23
|
|
|
24
24
|
import { filterOptionPanels } from './index.js';
|
|
25
25
|
|
|
26
|
-
export const nonRemovableFilters = new Set<
|
|
26
|
+
export const nonRemovableFilters = new Set<FilterEntry['name']>([
|
|
27
27
|
'digitalFilter',
|
|
28
28
|
'digitalFilter2D',
|
|
29
29
|
]);
|
|
30
|
-
const readOnlyFilters = new Set<
|
|
30
|
+
const readOnlyFilters = new Set<FilterEntry['name']>([
|
|
31
31
|
'digitalFilter',
|
|
32
32
|
'shiftX',
|
|
33
33
|
'exclusionZones',
|
|
@@ -46,10 +46,6 @@ const Filters = {
|
|
|
46
46
|
...Filters1D,
|
|
47
47
|
...Filters2D,
|
|
48
48
|
};
|
|
49
|
-
|
|
50
|
-
type FilterEntry = Omit<BaseFilterEntry, 'value'> & {
|
|
51
|
-
value: null | BaseFilterEntry['value'];
|
|
52
|
-
};
|
|
53
49
|
interface FilterElementsProps {
|
|
54
50
|
filter: FilterEntry;
|
|
55
51
|
spectraCounter: number;
|
|
@@ -75,7 +71,7 @@ function FilterElements(props: FilterElementsProps) {
|
|
|
75
71
|
const label = getFilterLabel(name);
|
|
76
72
|
|
|
77
73
|
function handleFilterCheck(
|
|
78
|
-
id:
|
|
74
|
+
id: string,
|
|
79
75
|
event: React.ChangeEvent<HTMLInputElement>,
|
|
80
76
|
) {
|
|
81
77
|
const enabled = event.target.checked;
|
|
@@ -169,6 +165,7 @@ function FilterElements(props: FilterElementsProps) {
|
|
|
169
165
|
innerLabel="Off"
|
|
170
166
|
checked={enabled || false}
|
|
171
167
|
onChange={(event) => {
|
|
168
|
+
if (!id) return;
|
|
172
169
|
handleFilterCheck(id, event);
|
|
173
170
|
}}
|
|
174
171
|
/>
|
|
@@ -187,20 +184,16 @@ function FiltersInner(props: FiltersInnerProps) {
|
|
|
187
184
|
const {
|
|
188
185
|
toolOptions: { selectedTool },
|
|
189
186
|
} = useChartData();
|
|
190
|
-
const [
|
|
187
|
+
const [manualSection, setManualSection] = useState<string | null>(null);
|
|
188
|
+
|
|
191
189
|
const { updateFilterOptions } = useFilterSyncOptions();
|
|
192
190
|
|
|
193
|
-
const [selectedSection, openSection] = useState<string | null>();
|
|
194
191
|
const dispatch = useDispatch();
|
|
195
192
|
const toaster = useToaster();
|
|
196
|
-
const selectedFilterIndex = useRef<number>();
|
|
193
|
+
const selectedFilterIndex = useRef<number | null>();
|
|
197
194
|
const activeSpectrum = useActiveSpectrum();
|
|
198
195
|
|
|
199
|
-
function
|
|
200
|
-
openSection(selectedSection === sectionKey ? '' : sectionKey);
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
function filterSnapShotHandler(filter: any, index: any) {
|
|
196
|
+
function filterSnapShotHandler(filter: FilterEntry, index: number) {
|
|
204
197
|
selectedFilterIndex.current =
|
|
205
198
|
selectedFilterIndex.current && index === selectedFilterIndex.current
|
|
206
199
|
? null
|
|
@@ -210,7 +203,7 @@ function FiltersInner(props: FiltersInnerProps) {
|
|
|
210
203
|
//Clear the filter sync object
|
|
211
204
|
updateFilterOptions(null);
|
|
212
205
|
//Close the opened section
|
|
213
|
-
|
|
206
|
+
setManualSection(null);
|
|
214
207
|
}
|
|
215
208
|
const hideLoading = toaster.showLoading({
|
|
216
209
|
message: 'Filter snapshot process in progress',
|
|
@@ -224,7 +217,7 @@ function FiltersInner(props: FiltersInnerProps) {
|
|
|
224
217
|
}, 0);
|
|
225
218
|
}
|
|
226
219
|
|
|
227
|
-
function getStyle(filter:
|
|
220
|
+
function getStyle(filter: FilterEntry, index: number) {
|
|
228
221
|
const { id, error } = filter;
|
|
229
222
|
|
|
230
223
|
if (error) {
|
|
@@ -245,38 +238,34 @@ function FiltersInner(props: FiltersInnerProps) {
|
|
|
245
238
|
return {};
|
|
246
239
|
}
|
|
247
240
|
|
|
248
|
-
|
|
249
|
-
const isFilterExists = filters.some(
|
|
250
|
-
(filter) => filter.name === selectedTool,
|
|
251
|
-
);
|
|
252
|
-
|
|
253
|
-
// TODO: The types of selectedTool and Filters are completely incompatible
|
|
254
|
-
// I think we need a propper mapping between the two
|
|
241
|
+
const newFilter = useMemo<FilterEntry | null>(() => {
|
|
242
|
+
const isFilterExists = filters.some((f) => f.name === selectedTool);
|
|
255
243
|
if (!isFilterExists && (Filters as any)?.[selectedTool]) {
|
|
256
244
|
const { name } = (Filters as any)[selectedTool];
|
|
257
|
-
|
|
258
|
-
} else {
|
|
259
|
-
setNewFilter((previousNewFilter) => {
|
|
260
|
-
if (previousNewFilter) {
|
|
261
|
-
openSection('');
|
|
262
|
-
}
|
|
263
|
-
return null;
|
|
264
|
-
});
|
|
245
|
+
return getDefaultFilterOptions(name);
|
|
265
246
|
}
|
|
247
|
+
return null;
|
|
266
248
|
}, [filters, selectedTool]);
|
|
267
249
|
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
return;
|
|
272
|
-
}
|
|
250
|
+
const selectedSection = useMemo(() => {
|
|
251
|
+
// New filter tool is selected
|
|
252
|
+
if ((Filters as any)?.[selectedTool]) return selectedTool;
|
|
273
253
|
|
|
274
|
-
|
|
254
|
+
//An existing filter is being edited
|
|
255
|
+
const filter = filters.find((f) => f.id === activeFilterID);
|
|
256
|
+
if (filter) return filter.name;
|
|
275
257
|
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
258
|
+
// otherwise, fallback to the manual selected section
|
|
259
|
+
return manualSection;
|
|
260
|
+
}, [selectedTool, activeFilterID, filters, manualSection]);
|
|
261
|
+
|
|
262
|
+
function toggleSection(sectionKey: string) {
|
|
263
|
+
setManualSection((prev) => (prev === sectionKey ? null : sectionKey));
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
function handleClose() {
|
|
267
|
+
setManualSection(null);
|
|
268
|
+
}
|
|
280
269
|
|
|
281
270
|
const filtersList = [...filters];
|
|
282
271
|
|
|
@@ -295,11 +284,7 @@ function FiltersInner(props: FiltersInnerProps) {
|
|
|
295
284
|
return <EmptyText text="No Filters" />;
|
|
296
285
|
}
|
|
297
286
|
|
|
298
|
-
function
|
|
299
|
-
openSection(null);
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
function handleReorderFilters(sourceIndex: any, targetIndex: any) {
|
|
287
|
+
function handleReorderFilters(sourceIndex: number, targetIndex: number) {
|
|
303
288
|
dispatch({
|
|
304
289
|
type: 'REORDER_FILTERS',
|
|
305
290
|
payload: { sourceIndex, targetIndex },
|
|
@@ -9,6 +9,7 @@ const styles: Record<'leftContainer', CSSProperties> = {
|
|
|
9
9
|
display: 'flex',
|
|
10
10
|
flexDirection: 'row',
|
|
11
11
|
flex: 1,
|
|
12
|
+
width: '100%',
|
|
12
13
|
},
|
|
13
14
|
};
|
|
14
15
|
|
|
@@ -74,7 +75,7 @@ function DefaultPanelHeader(props: DefaultPanelHeaderProps) {
|
|
|
74
75
|
total={hideCounter ? undefined : total}
|
|
75
76
|
>
|
|
76
77
|
<div style={styles.leftContainer}>
|
|
77
|
-
<Toolbar>
|
|
78
|
+
<Toolbar overflow="collapse">
|
|
78
79
|
{onDelete && (
|
|
79
80
|
<Toolbar.Item
|
|
80
81
|
id="delete-button"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Classes,
|
|
1
|
+
import { Classes, DialogFooter } from '@blueprintjs/core';
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
3
|
import { yupResolver } from '@hookform/resolvers/yup';
|
|
4
4
|
import { useCallback, useMemo } from 'react';
|
|
@@ -12,6 +12,7 @@ import { useDispatch } from '../../context/DispatchContext.js';
|
|
|
12
12
|
import { Input2Controller } from '../../elements/Input2Controller.js';
|
|
13
13
|
import type { Column } from '../../elements/ReactTable/ReactTable.js';
|
|
14
14
|
import ReactTable from '../../elements/ReactTable/ReactTable.js';
|
|
15
|
+
import { StandardDialog } from '../../elements/StandardDialog.tsx';
|
|
15
16
|
import { StyledDialogBody } from '../../elements/StyledDialogBody.js';
|
|
16
17
|
import useSpectrum from '../../hooks/useSpectrum.js';
|
|
17
18
|
import { checkUniqueByKey } from '../../utility/checkUniqueByKey.js';
|
|
@@ -69,7 +70,7 @@ export function InformationEditionModal(props: InformationEditionModalProps) {
|
|
|
69
70
|
}));
|
|
70
71
|
|
|
71
72
|
return (
|
|
72
|
-
<
|
|
73
|
+
<StandardDialog
|
|
73
74
|
isOpen
|
|
74
75
|
title="Edit spectrum meta information"
|
|
75
76
|
onClose={onCloseDialog}
|
|
@@ -79,7 +80,7 @@ export function InformationEditionModal(props: InformationEditionModalProps) {
|
|
|
79
80
|
metaInfo={metaInfo}
|
|
80
81
|
onCloseDialog={onCloseDialog}
|
|
81
82
|
/>
|
|
82
|
-
</
|
|
83
|
+
</StandardDialog>
|
|
83
84
|
);
|
|
84
85
|
}
|
|
85
86
|
|
|
@@ -1,13 +1,48 @@
|
|
|
1
|
+
import type { TooltipProps } from '@blueprintjs/core';
|
|
1
2
|
import { useMemo } from 'react';
|
|
3
|
+
import { FaRegEdit } from 'react-icons/fa';
|
|
4
|
+
import { TbTableShortcut } from 'react-icons/tb';
|
|
2
5
|
import type { InfoPanelData } from 'react-science/ui';
|
|
3
|
-
import { InfoPanel } from 'react-science/ui';
|
|
6
|
+
import { InfoPanel, Toolbar } from 'react-science/ui';
|
|
4
7
|
|
|
8
|
+
import { usePreferences } from '../../context/PreferencesContext.js';
|
|
9
|
+
import { useActiveSpectrum } from '../../hooks/useActiveSpectrum.js';
|
|
10
|
+
import { useDialogToggle } from '../../hooks/useDialogToggle.js';
|
|
5
11
|
import useSpectrum from '../../hooks/useSpectrum.js';
|
|
12
|
+
import { booleanToString } from '../../utility/booleanToString.js';
|
|
13
|
+
|
|
14
|
+
import { InformationEditionModal } from './InformationEditionModal.js';
|
|
6
15
|
|
|
7
16
|
const emptyData = { info: {}, meta: {} };
|
|
8
17
|
|
|
18
|
+
function getToggleInformationBlock(
|
|
19
|
+
isVisible: boolean,
|
|
20
|
+
isSpectrumSelected: boolean,
|
|
21
|
+
) {
|
|
22
|
+
if (!isSpectrumSelected) {
|
|
23
|
+
return 'Select a spectrum to display the information block';
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
return `${booleanToString(!isVisible, { trueLabel: 'Display' })} information block}`;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function getEditTooltip(isSpectrumSelected: boolean) {
|
|
30
|
+
if (!isSpectrumSelected) {
|
|
31
|
+
return 'Select a spectrum to edit its meta information';
|
|
32
|
+
}
|
|
33
|
+
return 'Edit spectrum meta information';
|
|
34
|
+
}
|
|
35
|
+
|
|
9
36
|
export function InformationPanel() {
|
|
10
37
|
const { info, meta, customInfo } = useSpectrum(emptyData);
|
|
38
|
+
const activeSpectrum = useActiveSpectrum();
|
|
39
|
+
const {
|
|
40
|
+
dispatch,
|
|
41
|
+
current: { infoBlock },
|
|
42
|
+
} = usePreferences();
|
|
43
|
+
const { dialog, openDialog, closeDialog } = useDialogToggle({
|
|
44
|
+
informationModal: false,
|
|
45
|
+
});
|
|
11
46
|
const data: InfoPanelData[] = useMemo(
|
|
12
47
|
() => [
|
|
13
48
|
{ description: 'Custom information', data: customInfo || {} },
|
|
@@ -17,5 +52,51 @@ export function InformationPanel() {
|
|
|
17
52
|
[customInfo, info, meta],
|
|
18
53
|
);
|
|
19
54
|
|
|
20
|
-
|
|
55
|
+
const toolTipProps: Omit<TooltipProps, 'content'> = {
|
|
56
|
+
intent: !activeSpectrum ? 'danger' : 'none',
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
function handleToggleInformationBlock() {
|
|
60
|
+
dispatch({
|
|
61
|
+
type: 'TOGGLE_INFORMATION_BLOCK',
|
|
62
|
+
payload: {},
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
return (
|
|
67
|
+
<>
|
|
68
|
+
<InformationEditionModal
|
|
69
|
+
isOpen={dialog.informationModal}
|
|
70
|
+
onCloseDialog={closeDialog}
|
|
71
|
+
/>
|
|
72
|
+
<InfoPanel
|
|
73
|
+
leftElement={
|
|
74
|
+
<Toolbar>
|
|
75
|
+
<Toolbar.Item
|
|
76
|
+
disabled={!activeSpectrum}
|
|
77
|
+
tooltipProps={toolTipProps}
|
|
78
|
+
icon={<TbTableShortcut />}
|
|
79
|
+
onClick={handleToggleInformationBlock}
|
|
80
|
+
active={infoBlock.visible}
|
|
81
|
+
tooltip={getToggleInformationBlock(
|
|
82
|
+
infoBlock.visible,
|
|
83
|
+
!!activeSpectrum,
|
|
84
|
+
)}
|
|
85
|
+
/>
|
|
86
|
+
<Toolbar.Item
|
|
87
|
+
disabled={!activeSpectrum}
|
|
88
|
+
tooltipProps={toolTipProps}
|
|
89
|
+
icon={<FaRegEdit />}
|
|
90
|
+
onClick={() => {
|
|
91
|
+
openDialog('informationModal');
|
|
92
|
+
}}
|
|
93
|
+
tooltip={getEditTooltip(!!activeSpectrum)}
|
|
94
|
+
/>
|
|
95
|
+
</Toolbar>
|
|
96
|
+
}
|
|
97
|
+
data={data}
|
|
98
|
+
title=""
|
|
99
|
+
/>
|
|
100
|
+
</>
|
|
101
|
+
);
|
|
21
102
|
}
|
|
@@ -104,9 +104,7 @@ export function getDefaultViewState(): ViewState {
|
|
|
104
104
|
showSimilarityTree: false,
|
|
105
105
|
selectReferences: {},
|
|
106
106
|
},
|
|
107
|
-
|
|
108
|
-
levels: {},
|
|
109
|
-
},
|
|
107
|
+
spectraContourLevels: {},
|
|
110
108
|
verticalAlign: {},
|
|
111
109
|
predictions: {},
|
|
112
110
|
currentSimulatedSpectrumKey: null,
|
|
@@ -2,10 +2,10 @@ import type { Range, Zone } from '@zakodium/nmr-types';
|
|
|
2
2
|
import type { Draft } from 'immer';
|
|
3
3
|
import type { SpectraData1D, SpectraData2D } from 'nmr-processing';
|
|
4
4
|
|
|
5
|
-
import { isSpectrum1D } from '../../../data/data1d/Spectrum1D/index.
|
|
6
|
-
import { isSpectrum2D } from '../../../data/data2d/Spectrum2D/index.
|
|
5
|
+
import { isSpectrum1D } from '../../../data/data1d/Spectrum1D/index.js';
|
|
6
|
+
import { isSpectrum2D } from '../../../data/data2d/Spectrum2D/index.js';
|
|
7
7
|
import type { State } from '../Reducer.js';
|
|
8
|
-
import { getSpectrum } from '../helper/getSpectrum.
|
|
8
|
+
import { getSpectrum } from '../helper/getSpectrum.js';
|
|
9
9
|
import type { ActionType } from '../types/ActionType.js';
|
|
10
10
|
|
|
11
11
|
type SetAutomaticAssignmentsAction = ActionType<
|
|
@@ -10,8 +10,8 @@ import type {
|
|
|
10
10
|
} from 'nmr-correlation';
|
|
11
11
|
import { buildCorrelationData, setCorrelation } from 'nmr-correlation';
|
|
12
12
|
|
|
13
|
-
import { isSpectrum1D } from '../../../data/data1d/Spectrum1D/index.
|
|
14
|
-
import { isSpectrum2D } from '../../../data/data2d/Spectrum2D/index.
|
|
13
|
+
import { isSpectrum1D } from '../../../data/data1d/Spectrum1D/index.js';
|
|
14
|
+
import { isSpectrum2D } from '../../../data/data2d/Spectrum2D/index.js';
|
|
15
15
|
import {
|
|
16
16
|
findRange,
|
|
17
17
|
findSignal1D,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
resurrectSpectrumFromRanges,
|
|
13
13
|
resurrectSpectrumFromSignals,
|
|
14
14
|
} from '../../../data/data1d/Spectrum1D/ranges/resurrectSpectrum.js';
|
|
15
|
-
import { filterDatabaseInfoEntry } from '../../utility/filterDatabaseInfoEntry.
|
|
15
|
+
import { filterDatabaseInfoEntry } from '../../utility/filterDatabaseInfoEntry.js';
|
|
16
16
|
import type { State } from '../Reducer.js';
|
|
17
17
|
import { setZoom } from '../helper/Zoom1DManager.js';
|
|
18
18
|
import zoomHistoryManager from '../helper/ZoomHistoryManager.js';
|
|
@@ -26,7 +26,7 @@ import type { State } from '../Reducer.js';
|
|
|
26
26
|
import { rescaleToSameTop } from '../helper/Zoom1DManager.js';
|
|
27
27
|
import { addToBrushHistory } from '../helper/ZoomHistoryManager.js';
|
|
28
28
|
import { getActiveSpectra } from '../helper/getActiveSpectra.js';
|
|
29
|
-
import { getSpectrum } from '../helper/getSpectrum.
|
|
29
|
+
import { getSpectrum } from '../helper/getSpectrum.js';
|
|
30
30
|
import type { ActionType } from '../types/ActionType.js';
|
|
31
31
|
|
|
32
32
|
type NumberExtent = [number, number];
|
|
@@ -25,13 +25,11 @@ import {
|
|
|
25
25
|
|
|
26
26
|
import { isSpectrum1D } from '../../../data/data1d/Spectrum1D/index.js';
|
|
27
27
|
import { isFid1DSpectrum } from '../../../data/data1d/Spectrum1D/isSpectrum1D.js';
|
|
28
|
-
import {
|
|
28
|
+
import { initializeContoursLevels } from '../../../data/data2d/Spectrum2D/contours.js';
|
|
29
29
|
import { getProjection } from '../../../data/data2d/Spectrum2D/getMissingProjection.js';
|
|
30
30
|
import { isSpectrum2D } from '../../../data/data2d/Spectrum2D/index.js';
|
|
31
|
-
import {
|
|
32
|
-
|
|
33
|
-
isFt2DSpectrum,
|
|
34
|
-
} from '../../../data/data2d/Spectrum2D/isSpectrum2D.js';
|
|
31
|
+
import { isFid2DSpectrum } from '../../../data/data2d/Spectrum2D/isSpectrum2D.js';
|
|
32
|
+
import type { FilterEntry } from '../../../data/types/common/FilterEntry.ts';
|
|
35
33
|
import type { ExclusionZone } from '../../../data/types/data1d/ExclusionZone.js';
|
|
36
34
|
import { getXScale } from '../../1d/utilities/scale.js';
|
|
37
35
|
import { get2DXScale, get2DYScale } from '../../2d/utilities/scale.js';
|
|
@@ -185,7 +183,7 @@ type DeleteSpectraFilterAction = ActionType<
|
|
|
185
183
|
type SetFilterSnapshotAction = ActionType<
|
|
186
184
|
'SET_FILTER_SNAPSHOT',
|
|
187
185
|
{
|
|
188
|
-
filter:
|
|
186
|
+
filter: FilterEntry;
|
|
189
187
|
tempRollback: boolean;
|
|
190
188
|
triggerSource?: 'none' | 'processedToggle';
|
|
191
189
|
}
|
|
@@ -736,8 +734,18 @@ function beforeRollback(draft: Draft<State>, filterKey: any) {
|
|
|
736
734
|
}
|
|
737
735
|
}
|
|
738
736
|
function afterRollback(draft: Draft<State>, filterKey: any) {
|
|
737
|
+
const activeSpectrum = getActiveSpectrum(draft);
|
|
738
|
+
|
|
739
739
|
switch (filterKey) {
|
|
740
740
|
//specify the filters here
|
|
741
|
+
case fftDimension1:
|
|
742
|
+
case fftDimension2: {
|
|
743
|
+
if (!activeSpectrum) return;
|
|
744
|
+
const spectrum = current(draft).data[activeSpectrum.index];
|
|
745
|
+
draft.view.spectraContourLevels[spectrum.id] =
|
|
746
|
+
initializeContoursLevels(spectrum);
|
|
747
|
+
break;
|
|
748
|
+
}
|
|
741
749
|
default:
|
|
742
750
|
break;
|
|
743
751
|
}
|
|
@@ -1345,10 +1353,6 @@ function applyFFTTwoDimensionFilter(
|
|
|
1345
1353
|
|
|
1346
1354
|
const spectrum = draft.data[index];
|
|
1347
1355
|
|
|
1348
|
-
if (isFt2DSpectrum(spectrum)) {
|
|
1349
|
-
spectrum.display.contourOptions = getDefaultContoursLevel(spectrum);
|
|
1350
|
-
}
|
|
1351
|
-
|
|
1352
1356
|
updateView(draft, domainUpdateRules);
|
|
1353
1357
|
|
|
1354
1358
|
//clear zoom history
|
|
@@ -1356,6 +1360,8 @@ function applyFFTTwoDimensionFilter(
|
|
|
1356
1360
|
|
|
1357
1361
|
draft.toolOptions.selectedOptionPanel = null;
|
|
1358
1362
|
draft.toolOptions.selectedTool = 'zoom';
|
|
1363
|
+
draft.view.spectraContourLevels[spectrum.id] =
|
|
1364
|
+
initializeContoursLevels(spectrum);
|
|
1359
1365
|
}
|
|
1360
1366
|
|
|
1361
1367
|
function handleApplyFFtDimension1Filter(draft: Draft<State>) {
|
|
@@ -7,7 +7,7 @@ import { scaleLinear } from 'd3-scale';
|
|
|
7
7
|
import { zoomIdentity } from 'd3-zoom';
|
|
8
8
|
import type { Draft } from 'immer';
|
|
9
9
|
|
|
10
|
-
import { isSpectrum1D } from '../../../data/data1d/Spectrum1D/index.
|
|
10
|
+
import { isSpectrum1D } from '../../../data/data1d/Spectrum1D/index.js';
|
|
11
11
|
import { insetMargin } from '../../1d/inset/InsetProvider.js';
|
|
12
12
|
import type {
|
|
13
13
|
Inset,
|
|
@@ -29,7 +29,7 @@ import type { ZoomType } from '../helper/Zoom1DManager.js';
|
|
|
29
29
|
import { toScaleRatio, wheelZoom } from '../helper/Zoom1DManager.js';
|
|
30
30
|
import { preparePop } from '../helper/ZoomHistoryManager.js';
|
|
31
31
|
import getRange from '../helper/getRange.js';
|
|
32
|
-
import { getSpectrum } from '../helper/getSpectrum.
|
|
32
|
+
import { getSpectrum } from '../helper/getSpectrum.js';
|
|
33
33
|
import type { ActionType } from '../types/ActionType.js';
|
|
34
34
|
|
|
35
35
|
import type { MoveOptions } from './DomainActions.js';
|
|
@@ -15,6 +15,7 @@ import { buildCorrelationData } from 'nmr-correlation';
|
|
|
15
15
|
import type { ParseResult } from 'papaparse';
|
|
16
16
|
|
|
17
17
|
import { initiateDatum1D } from '../../../data/data1d/Spectrum1D/index.js';
|
|
18
|
+
import { initializeContours } from '../../../data/data2d/Spectrum2D/contours.ts';
|
|
18
19
|
import { initiateDatum2D } from '../../../data/data2d/Spectrum2D/index.js';
|
|
19
20
|
import type { StateMoleculeExtended } from '../../../data/molecules/Molecule.js';
|
|
20
21
|
import * as MoleculeManager from '../../../data/molecules/MoleculeManager.js';
|
|
@@ -25,7 +26,7 @@ import type { State } from '../Reducer.js';
|
|
|
25
26
|
import { getDefaultViewState, getInitialState } from '../Reducer.js';
|
|
26
27
|
import type { ActionType } from '../types/ActionType.js';
|
|
27
28
|
|
|
28
|
-
import { initMoleculeViewProperties } from './MoleculeActions.
|
|
29
|
+
import { initMoleculeViewProperties } from './MoleculeActions.js';
|
|
29
30
|
import { changeSpectrumVerticalAlignment } from './PreferencesActions.js';
|
|
30
31
|
import { setSpectraMetaInfo } from './SpectraActions.js';
|
|
31
32
|
import { setActiveTab } from './ToolsActions.js';
|
|
@@ -35,15 +36,12 @@ interface InitiateProps {
|
|
|
35
36
|
nmriumState: Partial<NmriumState>;
|
|
36
37
|
aggregator: FileCollection;
|
|
37
38
|
}
|
|
38
|
-
interface InputProps extends
|
|
39
|
+
interface InputProps extends InitiateProps {
|
|
39
40
|
containsNmrium?: boolean;
|
|
40
41
|
usedColors?: UsedColors;
|
|
41
42
|
parseMetaFileResult?: ParseResult<any> | null;
|
|
42
43
|
resetSourceObject?: boolean;
|
|
43
44
|
spectraColors?: SpectraColors;
|
|
44
|
-
fileCollection?: FileCollection;
|
|
45
|
-
selectorRoot?: string;
|
|
46
|
-
aggregator?: FileCollection;
|
|
47
45
|
defaultMoleculeSettings?: MoleculeView;
|
|
48
46
|
}
|
|
49
47
|
|
|
@@ -131,9 +129,9 @@ function setData(draft: Draft<State>, input: InputProps | InitiateProps) {
|
|
|
131
129
|
const defaultViewState = getDefaultViewState();
|
|
132
130
|
// TODO: Refactor to find the spectrum index in each call rather than saving it in state.
|
|
133
131
|
// For now, we will clear the activeSpectra and selectReferences
|
|
134
|
-
view
|
|
135
|
-
|
|
136
|
-
|
|
132
|
+
draft.view = lodashMerge(defaultViewState, view, {
|
|
133
|
+
spectra: { activeSpectra: {}, selectReferences: {} },
|
|
134
|
+
});
|
|
137
135
|
}
|
|
138
136
|
|
|
139
137
|
if (sources && sources.length > 0) {
|
|
@@ -155,26 +153,11 @@ function setData(draft: Draft<State>, input: InputProps | InitiateProps) {
|
|
|
155
153
|
}
|
|
156
154
|
}
|
|
157
155
|
|
|
158
|
-
if (input.
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
} else {
|
|
162
|
-
draft.aggregator = FileCollection.fromCollection(draft.aggregator);
|
|
163
|
-
draft.aggregator.appendFileCollection(input.aggregator, '');
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
if (
|
|
168
|
-
'fileCollection' in input &&
|
|
169
|
-
input.fileCollection &&
|
|
170
|
-
'selectorRoot' in input &&
|
|
171
|
-
input.selectorRoot
|
|
172
|
-
) {
|
|
156
|
+
if ('forceInitialize' in input && input.forceInitialize) {
|
|
157
|
+
draft.aggregator = input.aggregator;
|
|
158
|
+
} else {
|
|
173
159
|
draft.aggregator = FileCollection.fromCollection(draft.aggregator);
|
|
174
|
-
draft.aggregator.appendFileCollection(
|
|
175
|
-
input.fileCollection,
|
|
176
|
-
input.selectorRoot,
|
|
177
|
-
);
|
|
160
|
+
draft.aggregator.appendFileCollection(input.aggregator, '');
|
|
178
161
|
}
|
|
179
162
|
|
|
180
163
|
const newMolecules = MoleculeManager.fromJSON(molecules, draft.molecules);
|
|
@@ -195,6 +178,9 @@ function setData(draft: Draft<State>, input: InputProps | InitiateProps) {
|
|
|
195
178
|
spectraColors,
|
|
196
179
|
}),
|
|
197
180
|
);
|
|
181
|
+
|
|
182
|
+
draft.view.spectraContourLevels = initializeContours(draft.data);
|
|
183
|
+
|
|
198
184
|
setCorrelation(draft, correlations);
|
|
199
185
|
|
|
200
186
|
if (parseMetaFileResult) {
|
|
@@ -285,10 +271,9 @@ function initData(
|
|
|
285
271
|
initialDraft.actionType = action.type;
|
|
286
272
|
});
|
|
287
273
|
} else {
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
}
|
|
274
|
+
draft.aggregator = FileCollection.fromCollection(draft.aggregator);
|
|
275
|
+
draft.aggregator.appendFileCollection(action.payload.aggregator, '');
|
|
276
|
+
|
|
292
277
|
if (view) {
|
|
293
278
|
const defaultViewState = getDefaultViewState();
|
|
294
279
|
draft.view = lodashMerge(defaultViewState, view);
|
|
@@ -13,14 +13,15 @@ import type {
|
|
|
13
13
|
} from '../../../data/PredictionManager.js';
|
|
14
14
|
import { generateSpectra } from '../../../data/PredictionManager.js';
|
|
15
15
|
import { changeSpectraRelativeSum } from '../../../data/data1d/Spectrum1D/SumManager.js';
|
|
16
|
-
import { isSpectrum1D } from '../../../data/data1d/Spectrum1D/isSpectrum1D.
|
|
16
|
+
import { isSpectrum1D } from '../../../data/data1d/Spectrum1D/isSpectrum1D.js';
|
|
17
|
+
import { initializeContoursLevels } from '../../../data/data2d/Spectrum2D/contours.ts';
|
|
17
18
|
import type { MoleculeBoundingRect } from '../../../data/molecules/Molecule.js';
|
|
18
19
|
import { DRAGGABLE_STRUCTURE_INITIAL_BOUNDING_REACT } from '../../../data/molecules/Molecule.js';
|
|
19
20
|
import * as MoleculeManager from '../../../data/molecules/MoleculeManager.js';
|
|
20
21
|
import { generateColor } from '../../../data/utilities/generateColor.js';
|
|
21
22
|
import { convertPixelToPercent } from '../../hooks/useSVGUnitConverter.js';
|
|
22
|
-
import { extractFromAtom } from '../../panels/MoleculesPanel/utilities/extractFromAtom.
|
|
23
|
-
import nucleusToString from '../../utility/nucleusToString.
|
|
23
|
+
import { extractFromAtom } from '../../panels/MoleculesPanel/utilities/extractFromAtom.js';
|
|
24
|
+
import nucleusToString from '../../utility/nucleusToString.js';
|
|
24
25
|
import type { State } from '../Reducer.js';
|
|
25
26
|
import { MARGIN } from '../core/Constants.js';
|
|
26
27
|
import type { ActionType } from '../types/ActionType.js';
|
|
@@ -304,6 +305,8 @@ function handlePredictSpectraFromMolecule(
|
|
|
304
305
|
)) {
|
|
305
306
|
draft.data.push(spectrum);
|
|
306
307
|
spectraIds.push(spectrum.id);
|
|
308
|
+
draft.view.spectraContourLevels[spectrum.id] =
|
|
309
|
+
initializeContoursLevels(spectrum);
|
|
307
310
|
}
|
|
308
311
|
let id = molecule?.id;
|
|
309
312
|
//if the id object is not exits add a new molecule
|