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,7 +1,7 @@
|
|
|
1
1
|
import type { Spectrum1D } from '@zakodium/nmrium-core';
|
|
2
2
|
import type { Draft } from 'immer';
|
|
3
3
|
|
|
4
|
-
import { isSpectrum1D } from '../../../data/data1d/Spectrum1D/index.
|
|
4
|
+
import { isSpectrum1D } from '../../../data/data1d/Spectrum1D/index.js';
|
|
5
5
|
import groupByInfoKey from '../../utility/groupByInfoKey.js';
|
|
6
6
|
import nucleusToString from '../../utility/nucleusToString.js';
|
|
7
7
|
import type { State, VerticalAlignment } from '../Reducer.js';
|
|
@@ -25,10 +25,10 @@ import {
|
|
|
25
25
|
updateRangesRelativeValues,
|
|
26
26
|
} from '../../../data/data1d/Spectrum1D/index.js';
|
|
27
27
|
import type { ChangeRangeRelativeValueProps } from '../../../data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.js';
|
|
28
|
-
import type { DetectRangesOptions } from '../../../data/data1d/Spectrum1D/ranges/detectRanges.
|
|
28
|
+
import type { DetectRangesOptions } from '../../../data/data1d/Spectrum1D/ranges/detectRanges.js';
|
|
29
29
|
import { unlink } from '../../../data/utilities/RangeUtilities.js';
|
|
30
|
-
import { isProton } from '../../../data/utilities/isProton.
|
|
31
|
-
import type { TargetAssignKeys } from '../../panels/MoleculesPanel/utilities/getAssignIds.
|
|
30
|
+
import { isProton } from '../../../data/utilities/isProton.js';
|
|
31
|
+
import type { TargetAssignKeys } from '../../panels/MoleculesPanel/utilities/getAssignIds.js';
|
|
32
32
|
import type { RangeData } from '../../panels/RangesPanel/hooks/useMapRanges.js';
|
|
33
33
|
import type { FilterType } from '../../utility/filterType.js';
|
|
34
34
|
import type { State } from '../Reducer.js';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { NMRRange } from '@zakodium/nmr-types';
|
|
2
2
|
import type {
|
|
3
3
|
Color2D,
|
|
4
|
+
ContourLevel,
|
|
4
5
|
Display1D,
|
|
5
6
|
Display2D,
|
|
6
7
|
SpectraColors,
|
|
@@ -30,6 +31,7 @@ import {
|
|
|
30
31
|
getMissingProjection,
|
|
31
32
|
isSpectrum2D,
|
|
32
33
|
} from '../../../data/data2d/Spectrum2D/index.js';
|
|
34
|
+
import { isFt2DSpectrum } from '../../../data/data2d/Spectrum2D/isSpectrum2D.ts';
|
|
33
35
|
import {
|
|
34
36
|
adjustAlpha,
|
|
35
37
|
generateColor,
|
|
@@ -40,7 +42,7 @@ import type { State } from '../Reducer.js';
|
|
|
40
42
|
import { setZoom } from '../helper/Zoom1DManager.js';
|
|
41
43
|
import { getActiveSpectra } from '../helper/getActiveSpectra.js';
|
|
42
44
|
import { getActiveSpectraAsObject } from '../helper/getActiveSpectraAsObject.js';
|
|
43
|
-
import { getSpectrum } from '../helper/getSpectrum.
|
|
45
|
+
import { getSpectrum } from '../helper/getSpectrum.js';
|
|
44
46
|
import { removeSpectrumRelatedObjectsById } from '../helper/removeSpectrumRelatedObjectsById.js';
|
|
45
47
|
import type { ActionType } from '../types/ActionType.js';
|
|
46
48
|
|
|
@@ -87,10 +89,15 @@ type ChangeActiveSpectrumAction = ActionType<
|
|
|
87
89
|
>;
|
|
88
90
|
type ChangeSpectrumSettingAction = ActionType<
|
|
89
91
|
'CHANGE_SPECTRUM_SETTING',
|
|
90
|
-
{
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
| {
|
|
93
|
+
id: string;
|
|
94
|
+
display: Display1D | Display2D;
|
|
95
|
+
}
|
|
96
|
+
| {
|
|
97
|
+
id: string;
|
|
98
|
+
display: Display2D;
|
|
99
|
+
contourOptions: ContourLevel;
|
|
100
|
+
}
|
|
94
101
|
>;
|
|
95
102
|
type DeleteSpectraAction = ActionType<
|
|
96
103
|
'DELETE_SPECTRA',
|
|
@@ -443,8 +450,9 @@ function handleChangeSpectrumSetting(
|
|
|
443
450
|
if (!spectrum) return;
|
|
444
451
|
|
|
445
452
|
spectrum.display = display;
|
|
446
|
-
if (
|
|
447
|
-
|
|
453
|
+
if (isFt2DSpectrum(spectrum) && 'contourOptions' in action.payload) {
|
|
454
|
+
draft.view.spectraContourLevels[id] = action.payload.contourOptions;
|
|
455
|
+
const { checkLevel } = contoursManager(draft.view.spectraContourLevels[id]);
|
|
448
456
|
checkLevel();
|
|
449
457
|
}
|
|
450
458
|
}
|
|
@@ -3,7 +3,7 @@ import type { Spectrum1D, Spectrum2D, Spectrum } from '@zakodium/nmrium-core';
|
|
|
3
3
|
import { zoomIdentity } from 'd3-zoom';
|
|
4
4
|
import type { Draft } from 'immer';
|
|
5
5
|
|
|
6
|
-
import { isSpectrum1D } from '../../../data/data1d/Spectrum1D/index.
|
|
6
|
+
import { isSpectrum1D } from '../../../data/data1d/Spectrum1D/index.js';
|
|
7
7
|
import { contoursManager } from '../../../data/data2d/Spectrum2D/contours.js';
|
|
8
8
|
import { getXScale } from '../../1d/utilities/scale.js';
|
|
9
9
|
import type { Layout } from '../../2d/utilities/DimensionLayout.js';
|
|
@@ -25,7 +25,7 @@ import zoomHistoryManager, {
|
|
|
25
25
|
addToBrushHistory,
|
|
26
26
|
} from '../helper/ZoomHistoryManager.js';
|
|
27
27
|
import { getActiveSpectra } from '../helper/getActiveSpectra.js';
|
|
28
|
-
import { getSpectrum } from '../helper/getSpectrum.
|
|
28
|
+
import { getSpectrum } from '../helper/getSpectrum.js';
|
|
29
29
|
import { getTwoDimensionPhaseCorrectionOptions } from '../helper/getTwoDimensionPhaseCorrectionOptions.js';
|
|
30
30
|
import { getVerticalAlign } from '../helper/getVerticalAlign.js';
|
|
31
31
|
import { setIntegralsViewProperty } from '../helper/setIntegralsViewProperty.js';
|
|
@@ -697,7 +697,9 @@ function levelChangeHandler(draft: Draft<State>, action: LevelChangeAction) {
|
|
|
697
697
|
|
|
698
698
|
try {
|
|
699
699
|
for (const spectrum of spectra as Spectrum2D[]) {
|
|
700
|
-
const zoom = contoursManager(
|
|
700
|
+
const zoom = contoursManager(
|
|
701
|
+
draft.view.spectraContourLevels[spectrum.id],
|
|
702
|
+
);
|
|
701
703
|
zoom.wheel(deltaY, { altKey, invertScroll });
|
|
702
704
|
}
|
|
703
705
|
} catch (error) {
|
|
@@ -15,19 +15,19 @@ import {
|
|
|
15
15
|
import { unlink } from '../../../data/utilities/ZoneUtilities.js';
|
|
16
16
|
import type { Axis } from '../../assignment/AssignmentsContext.js';
|
|
17
17
|
import { defaultZonesViewState } from '../../hooks/useActiveSpectrumZonesViewState.js';
|
|
18
|
-
import type { TargetAssignKeys } from '../../panels/MoleculesPanel/utilities/getAssignIds.
|
|
18
|
+
import type { TargetAssignKeys } from '../../panels/MoleculesPanel/utilities/getAssignIds.js';
|
|
19
19
|
import type { ZoneData } from '../../panels/ZonesPanel/hooks/useMapZones.js';
|
|
20
20
|
import type { FilterType } from '../../utility/filterType.js';
|
|
21
21
|
import type { State } from '../Reducer.js';
|
|
22
22
|
import type { ZoneBoundary } from '../helper/get2DRange.js';
|
|
23
23
|
import get2DRange from '../helper/get2DRange.js';
|
|
24
24
|
import { getActiveSpectrum } from '../helper/getActiveSpectrum.js';
|
|
25
|
-
import { getSpectrum } from '../helper/getSpectrum.
|
|
25
|
+
import { getSpectrum } from '../helper/getSpectrum.js';
|
|
26
26
|
import type { ActionType } from '../types/ActionType.js';
|
|
27
27
|
|
|
28
28
|
import { handleUpdateCorrelations } from './CorrelationsActions.js';
|
|
29
29
|
import { setDomain } from './DomainActions.js';
|
|
30
|
-
import { rollbackSpectrumByFilter } from './FiltersActions.
|
|
30
|
+
import { rollbackSpectrumByFilter } from './FiltersActions.js';
|
|
31
31
|
|
|
32
32
|
interface DeleteSignal2DProps {
|
|
33
33
|
spectrumId: string;
|
|
@@ -3,7 +3,6 @@ import type { Draft } from 'immer';
|
|
|
3
3
|
import type {
|
|
4
4
|
ApplyGeneralPreferences,
|
|
5
5
|
PreferencesState,
|
|
6
|
-
WorkspaceWithSource,
|
|
7
6
|
} from '../preferencesReducer.js';
|
|
8
7
|
|
|
9
8
|
export function applyGeneralPreferences(
|
|
@@ -12,5 +11,5 @@ export function applyGeneralPreferences(
|
|
|
12
11
|
) {
|
|
13
12
|
const { data } = action.payload;
|
|
14
13
|
|
|
15
|
-
draft.workspaces[draft.workspace.current] = data
|
|
14
|
+
draft.workspaces[draft.workspace.current] = data;
|
|
16
15
|
}
|
|
@@ -3,8 +3,8 @@ import type { Draft } from 'immer';
|
|
|
3
3
|
import type {
|
|
4
4
|
PreferencesState,
|
|
5
5
|
ToggleSplitPanelAction,
|
|
6
|
-
} from '../preferencesReducer.
|
|
7
|
-
import { getActiveWorkspace } from '../utilities/getActiveWorkspace.
|
|
6
|
+
} from '../preferencesReducer.js';
|
|
7
|
+
import { getActiveWorkspace } from '../utilities/getActiveWorkspace.js';
|
|
8
8
|
|
|
9
9
|
export function toggleOpenSplitPanel(
|
|
10
10
|
draft: Draft<PreferencesState>,
|
|
@@ -9,7 +9,7 @@ import type {
|
|
|
9
9
|
Zones2DNucleusPreferences,
|
|
10
10
|
} from '@zakodium/nmrium-core';
|
|
11
11
|
|
|
12
|
-
import { isProton } from '../../../data/utilities/isProton.
|
|
12
|
+
import { isProton } from '../../../data/utilities/isProton.js';
|
|
13
13
|
import { is2DNucleus } from '../../utility/nucleusToString.js';
|
|
14
14
|
|
|
15
15
|
function getPreferences<T>(data: T, nucleus?: string) {
|
|
@@ -32,8 +32,8 @@ import {
|
|
|
32
32
|
setSpectraAnalysisPanelsPreferences,
|
|
33
33
|
} from './actions/analyzeSpectra.js';
|
|
34
34
|
import { applyGeneralPreferences } from './actions/applyGeneralPreferences.js';
|
|
35
|
-
import { changeDefaultMoleculeSettings } from './actions/changeDefaultMoleculeSettings.
|
|
36
|
-
import { changeExportAcsSettings } from './actions/changeExportAcsSettings.
|
|
35
|
+
import { changeDefaultMoleculeSettings } from './actions/changeDefaultMoleculeSettings.js';
|
|
36
|
+
import { changeExportAcsSettings } from './actions/changeExportAcsSettings.js';
|
|
37
37
|
import { changeExportSettings } from './actions/changeExportSettings.js';
|
|
38
38
|
import { changeInformationBlockPosition } from './actions/changeInformationBlockPosition.js';
|
|
39
39
|
import { changePeaksLabelPosition } from './actions/changePeaksLabelPosition.js';
|
|
@@ -55,7 +55,7 @@ import { setPreferences } from './actions/setPreferences.js';
|
|
|
55
55
|
import { setVerticalSplitterPosition } from './actions/setVerticalSplitterPosition.js';
|
|
56
56
|
import { setWorkspace } from './actions/setWorkspace.js';
|
|
57
57
|
import { toggleInformationBlock } from './actions/toggleInformationBlock.js';
|
|
58
|
-
import { toggleOpenSplitPanel } from './actions/toggleOpenSplitPanel.
|
|
58
|
+
import { toggleOpenSplitPanel } from './actions/toggleOpenSplitPanel.js';
|
|
59
59
|
import { togglePanel } from './actions/togglePanel.js';
|
|
60
60
|
import { mapWorkspaces } from './utilities/mapWorkspaces.js';
|
|
61
61
|
|
|
@@ -69,7 +69,7 @@ export const WORKSPACES_KEYS = {
|
|
|
69
69
|
export interface Settings {
|
|
70
70
|
version: number;
|
|
71
71
|
workspaces: Record<string, WorkspaceWithSource>;
|
|
72
|
-
currentWorkspace:
|
|
72
|
+
currentWorkspace: NMRiumWorkspace;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
type InitPreferencesAction = ActionType<
|
|
@@ -106,8 +106,8 @@ export type AddWorkspaceAction = ActionType<
|
|
|
106
106
|
{ workspaceKey: string; data?: Omit<Workspace, 'version' | 'label'> }
|
|
107
107
|
>;
|
|
108
108
|
export type ApplyGeneralPreferences = ActionType<
|
|
109
|
-
'
|
|
110
|
-
{ data:
|
|
109
|
+
'APPLY_GENERAL_PREFERENCES',
|
|
110
|
+
{ data: WorkspaceWithSource }
|
|
111
111
|
>;
|
|
112
112
|
export type AnalyzeSpectraAction = ActionType<
|
|
113
113
|
'ANALYZE_SPECTRA',
|
|
@@ -301,7 +301,7 @@ function innerPreferencesReducer(
|
|
|
301
301
|
return addWorkspace(draft, action);
|
|
302
302
|
case 'REMOVE_WORKSPACE':
|
|
303
303
|
return removeWorkspace(draft, action);
|
|
304
|
-
case '
|
|
304
|
+
case 'APPLY_GENERAL_PREFERENCES':
|
|
305
305
|
return applyGeneralPreferences(draft, action);
|
|
306
306
|
case 'ANALYZE_SPECTRA':
|
|
307
307
|
return analyzeSpectra(draft, action);
|
|
@@ -484,7 +484,12 @@ export default function ToolBar() {
|
|
|
484
484
|
},
|
|
485
485
|
{
|
|
486
486
|
id: 'inset',
|
|
487
|
-
tooltip:
|
|
487
|
+
tooltip: {
|
|
488
|
+
title: options.inset.label,
|
|
489
|
+
shortcuts: ['n'],
|
|
490
|
+
description:
|
|
491
|
+
'Drag a rectangle over the spectrum region to create an inset.',
|
|
492
|
+
},
|
|
488
493
|
icon: <PiSelectionPlusDuotone />,
|
|
489
494
|
},
|
|
490
495
|
];
|
|
@@ -7,7 +7,7 @@ import type {
|
|
|
7
7
|
import { BlobWriter, TextReader, ZipWriter } from '@zip.js/zip.js';
|
|
8
8
|
import dlv from 'dlv';
|
|
9
9
|
|
|
10
|
-
import { saveAs } from './save_as.
|
|
10
|
+
import { saveAs } from './save_as.js';
|
|
11
11
|
|
|
12
12
|
export const browserNotSupportedErrorToast: ToastProps = {
|
|
13
13
|
message:
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import type { WorkspacePreferences } from '@zakodium/nmrium-core';
|
|
1
|
+
import type { TextStyle, WorkspacePreferences } from '@zakodium/nmrium-core';
|
|
2
2
|
import { Filters1D } from 'nmr-processing';
|
|
3
3
|
|
|
4
4
|
import { color2D } from '../../data/data2d/Spectrum2D/get2DColor.js';
|
|
5
5
|
|
|
6
|
+
const defaultTextStyle: TextStyle = {};
|
|
7
|
+
|
|
6
8
|
export const workspaceDefaultProperties: Required<WorkspacePreferences> = {
|
|
7
9
|
display: {
|
|
8
10
|
general: {
|
|
@@ -112,6 +114,15 @@ export const workspaceDefaultProperties: Required<WorkspacePreferences> = {
|
|
|
112
114
|
},
|
|
113
115
|
infoBlock: {
|
|
114
116
|
visible: false,
|
|
117
|
+
nameStyle: {
|
|
118
|
+
fontSize: 11,
|
|
119
|
+
fill: 'black',
|
|
120
|
+
fontWeight: 'bold',
|
|
121
|
+
},
|
|
122
|
+
valueStyle: {
|
|
123
|
+
fontSize: 12,
|
|
124
|
+
fill: 'black',
|
|
125
|
+
},
|
|
115
126
|
fields: [
|
|
116
127
|
{ label: 'Name', jpath: ['info', 'name'], visible: true, format: '' },
|
|
117
128
|
{
|
|
@@ -267,6 +278,7 @@ export const workspaceDefaultProperties: Required<WorkspacePreferences> = {
|
|
|
267
278
|
format: 'D',
|
|
268
279
|
couplingFormat: '0.0',
|
|
269
280
|
deltaFormat: '0.0',
|
|
281
|
+
textStyle: { ...defaultTextStyle },
|
|
270
282
|
},
|
|
271
283
|
'1H': {
|
|
272
284
|
signalKind: 'signal',
|
|
@@ -274,6 +286,7 @@ export const workspaceDefaultProperties: Required<WorkspacePreferences> = {
|
|
|
274
286
|
format: 'IMJA',
|
|
275
287
|
couplingFormat: '0.00',
|
|
276
288
|
deltaFormat: '0.00',
|
|
289
|
+
textStyle: { ...defaultTextStyle },
|
|
277
290
|
},
|
|
278
291
|
},
|
|
279
292
|
defaultMoleculeSettings: {
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
} from './data1d/Spectrum1D/index.js';
|
|
29
29
|
import { initiateDatum2D } from './data2d/Spectrum2D/index.js';
|
|
30
30
|
import { adjustAlpha } from './utilities/generateColor.js';
|
|
31
|
-
import { isProton } from './utilities/isProton.
|
|
31
|
+
import { isProton } from './utilities/isProton.js';
|
|
32
32
|
|
|
33
33
|
export type Experiment = 'proton' | 'carbon' | 'cosy' | 'hsqc' | 'hmbc';
|
|
34
34
|
type SpectraPredictionOptions = Record<Experiment, boolean>;
|
|
@@ -87,8 +87,11 @@ export const FREQUENCIES: Array<{ value: number; label: string }> = [
|
|
|
87
87
|
{ value: 400, label: '400 MHz' },
|
|
88
88
|
{ value: 500, label: '500 MHz' },
|
|
89
89
|
{ value: 600, label: '600 MHz' },
|
|
90
|
+
{ value: 700, label: '700 MHz' },
|
|
90
91
|
{ value: 800, label: '800 MHz' },
|
|
92
|
+
{ value: 950, label: '950 MHz' },
|
|
91
93
|
{ value: 1000, label: '1000 MHz' },
|
|
94
|
+
{ value: 1100, label: '1100 MHz' },
|
|
92
95
|
{ value: 1200, label: '1200 MHz' },
|
|
93
96
|
];
|
|
94
97
|
|
|
@@ -17,7 +17,7 @@ import * as OCL from 'openchemlib';
|
|
|
17
17
|
import { assert } from 'react-science/ui';
|
|
18
18
|
|
|
19
19
|
import type { State } from '../component/reducer/Reducer.js';
|
|
20
|
-
import { saveAs } from '../component/utility/save_as.
|
|
20
|
+
import { saveAs } from '../component/utility/save_as.js';
|
|
21
21
|
|
|
22
22
|
import { initiateDatum1D, isSpectrum1D } from './data1d/Spectrum1D/index.js';
|
|
23
23
|
import { initiateDatum2D } from './data2d/Spectrum2D/index.js';
|
|
@@ -69,7 +69,7 @@ export type DataExportOptions =
|
|
|
69
69
|
|
|
70
70
|
type ExportTarget = 'nmrium' | 'onChange';
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+
interface ExportOptions {
|
|
73
73
|
dataType?: DataExportOptions;
|
|
74
74
|
view?: boolean;
|
|
75
75
|
settings?: boolean;
|
|
@@ -3,7 +3,7 @@ import type { Spectrum1D } from '@zakodium/nmrium-core';
|
|
|
3
3
|
import type { OptionsXYAutoRangesPicking } from 'nmr-processing';
|
|
4
4
|
import { xyAutoRangesPicking } from 'nmr-processing';
|
|
5
5
|
|
|
6
|
-
import { isProton } from '../../../utilities/isProton.
|
|
6
|
+
import { isProton } from '../../../utilities/isProton.js';
|
|
7
7
|
|
|
8
8
|
const defaultPeakPickingOptions: Omit<
|
|
9
9
|
OptionsXYAutoRangesPicking['peakPicking'],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Spectrum1D } from '@zakodium/nmrium-core';
|
|
2
2
|
import { mapRanges, updateRangesRelativeValues } from 'nmr-processing';
|
|
3
3
|
|
|
4
|
-
import { isProton } from '../../../utilities/isProton.
|
|
4
|
+
import { isProton } from '../../../utilities/isProton.js';
|
|
5
5
|
import type { SumParams } from '../SumManager.js';
|
|
6
6
|
import { initSumOptions } from '../SumManager.js';
|
|
7
7
|
|
|
@@ -2,9 +2,13 @@ import type { Spectrum2D } from '@zakodium/nmrium-core';
|
|
|
2
2
|
import type { NmrData2DFt } from 'cheminfo-types';
|
|
3
3
|
import { Conrec } from 'ml-conrec';
|
|
4
4
|
import { xMaxAbsoluteValue } from 'ml-spectra-processing';
|
|
5
|
+
import type { Spectrum } from 'nmr-correlation';
|
|
5
6
|
|
|
7
|
+
import type { SpectrumFTData } from '../../../component/hooks/use2DReducer.tsx';
|
|
6
8
|
import { calculateSanPlot } from '../../utilities/calculateSanPlot.js';
|
|
7
9
|
|
|
10
|
+
import { isFt2DSpectrum } from './isSpectrum2D.ts';
|
|
11
|
+
|
|
8
12
|
interface Level {
|
|
9
13
|
positive: ContourItem;
|
|
10
14
|
negative: ContourItem;
|
|
@@ -91,8 +95,8 @@ function getDefaultContoursLevel(spectrum: Spectrum2D, quadrant = 'rr') {
|
|
|
91
95
|
return defaultLevel;
|
|
92
96
|
}
|
|
93
97
|
|
|
94
|
-
function contoursManager(
|
|
95
|
-
const contourOptions = { ...
|
|
98
|
+
function contoursManager(options: ContourOptions): ReturnContoursManager {
|
|
99
|
+
const contourOptions = { ...options };
|
|
96
100
|
|
|
97
101
|
const wheel = (value: any, options: any) =>
|
|
98
102
|
prepareWheel(value, { ...options, contourOptions });
|
|
@@ -194,9 +198,8 @@ function range(from: number, to: number, step: number) {
|
|
|
194
198
|
|
|
195
199
|
function drawContours(
|
|
196
200
|
level: ContourItem,
|
|
197
|
-
spectrum:
|
|
201
|
+
spectrum: SpectrumFTData,
|
|
198
202
|
negative = false,
|
|
199
|
-
quadrant = 'rr',
|
|
200
203
|
) {
|
|
201
204
|
const { contourLevels, numberOfLayers } = level;
|
|
202
205
|
|
|
@@ -204,8 +207,7 @@ function drawContours(
|
|
|
204
207
|
negative,
|
|
205
208
|
boundary: contourLevels,
|
|
206
209
|
nbLevels: numberOfLayers,
|
|
207
|
-
|
|
208
|
-
data: spectrum.data[quadrant],
|
|
210
|
+
data: spectrum.data,
|
|
209
211
|
});
|
|
210
212
|
}
|
|
211
213
|
|
|
@@ -270,10 +272,24 @@ function calculateValueOfLevel(level: number, max: number, invert = false) {
|
|
|
270
272
|
return (max * (2 ** (level / 10) - 1)) / (2 ** 10 - 1);
|
|
271
273
|
}
|
|
272
274
|
|
|
273
|
-
export {
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
275
|
+
export function initializeContoursLevels(spectrum: any) {
|
|
276
|
+
const { data } = spectrum;
|
|
277
|
+
|
|
278
|
+
if ('rr' in data) return getDefaultContoursLevel(spectrum);
|
|
279
|
+
|
|
280
|
+
return DEFAULT_CONTOURS_OPTIONS;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
export function initializeContours(spectra: Spectrum[]) {
|
|
284
|
+
const contoursOptions: Record<string, ContourOptions> = {};
|
|
285
|
+
for (const spectrum of spectra) {
|
|
286
|
+
if (isFt2DSpectrum(spectrum)) {
|
|
287
|
+
const spectrum2D = spectrum as Spectrum2D;
|
|
288
|
+
contoursOptions[spectrum2D.id] = initializeContoursLevels(spectrum2D);
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
return contoursOptions;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
export { contoursManager, drawContours };
|
|
279
295
|
export type { LevelSign };
|
|
@@ -7,10 +7,6 @@ import { Filters2DManager } from 'nmr-processing';
|
|
|
7
7
|
import type { UsedColors } from '../../../types/UsedColors.js';
|
|
8
8
|
import { initiateFilters } from '../../initiateFilters.js';
|
|
9
9
|
|
|
10
|
-
import {
|
|
11
|
-
DEFAULT_CONTOURS_OPTIONS,
|
|
12
|
-
getDefaultContoursLevel,
|
|
13
|
-
} from './contours.js';
|
|
14
10
|
import { get2DColor } from './get2DColor.js';
|
|
15
11
|
import { initiateZones } from './zones/initiateZones.js';
|
|
16
12
|
|
|
@@ -42,18 +38,6 @@ function initiateInfo(spectrum: any) {
|
|
|
42
38
|
...spectrum.info,
|
|
43
39
|
};
|
|
44
40
|
}
|
|
45
|
-
function initiateContoursLevels(spectrum: any) {
|
|
46
|
-
const {
|
|
47
|
-
display: { contourOptions },
|
|
48
|
-
data,
|
|
49
|
-
} = spectrum;
|
|
50
|
-
|
|
51
|
-
if (contourOptions) return contourOptions;
|
|
52
|
-
|
|
53
|
-
if ('rr' in data) return getDefaultContoursLevel(spectrum);
|
|
54
|
-
|
|
55
|
-
return DEFAULT_CONTOURS_OPTIONS;
|
|
56
|
-
}
|
|
57
41
|
|
|
58
42
|
export function initiateDatum2D(
|
|
59
43
|
spectrum: any,
|
|
@@ -82,7 +66,7 @@ export function initiateDatum2D(
|
|
|
82
66
|
//reapply filters after load the original data
|
|
83
67
|
Filters2DManager.reapplyFilters(datum);
|
|
84
68
|
|
|
85
|
-
datum.display.contourOptions =
|
|
69
|
+
// datum.display.contourOptions = initializeSpectrumContoursOptions(datum);
|
|
86
70
|
|
|
87
71
|
return datum;
|
|
88
72
|
}
|
|
@@ -31,15 +31,25 @@ export const DRAGGABLE_STRUCTURE_INITIAL_BOUNDING_REACT: MoleculeBoundingRect =
|
|
|
31
31
|
|
|
32
32
|
export type MoleculesView = Record<string, MoleculeView>;
|
|
33
33
|
|
|
34
|
+
type InitializeMoleculeOptions = { text: string } & Omit<
|
|
35
|
+
Partial<StateMolecule>,
|
|
36
|
+
'molfile'
|
|
37
|
+
>;
|
|
38
|
+
|
|
34
39
|
export function initMolecule(
|
|
35
|
-
options:
|
|
40
|
+
options: InitializeMoleculeOptions,
|
|
36
41
|
): StateMoleculeExtended {
|
|
37
|
-
const id =
|
|
38
|
-
|
|
39
|
-
const
|
|
42
|
+
const { id = crypto.randomUUID(), label = 'p#', text } = options;
|
|
43
|
+
|
|
44
|
+
const molecule = Molecule.fromText(text);
|
|
40
45
|
|
|
41
|
-
|
|
42
|
-
|
|
46
|
+
if (!molecule) {
|
|
47
|
+
throw new Error(
|
|
48
|
+
'Failed to parse SMILES or molfile. Please paste a valid format',
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
const molfile = molecule.toMolfileV3();
|
|
52
|
+
const mfInfo = molecule.getMolecularFormula();
|
|
43
53
|
|
|
44
54
|
return {
|
|
45
55
|
id,
|
|
@@ -49,7 +59,7 @@ export function initMolecule(
|
|
|
49
59
|
mf: mfInfo.formula,
|
|
50
60
|
em: mfInfo.absoluteWeight,
|
|
51
61
|
mw: mfInfo.relativeWeight,
|
|
52
|
-
svg:
|
|
62
|
+
svg: molecule.toSVG(50, 50),
|
|
53
63
|
atoms: getAtomsFromMF(mfInfo.formula),
|
|
54
64
|
};
|
|
55
65
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { StateMolecule } from '@zakodium/nmrium-core';
|
|
2
|
-
import { readSDF
|
|
2
|
+
import { readSDF } from '@zakodium/nmrium-core-plugins';
|
|
3
3
|
import { Molecule } from 'openchemlib';
|
|
4
4
|
|
|
5
5
|
import type { StateMoleculeExtended } from './Molecule.js';
|
|
@@ -14,22 +14,23 @@ export function fromJSON(
|
|
|
14
14
|
|
|
15
15
|
const molecules: StateMoleculeExtended[] = [];
|
|
16
16
|
for (const mol of mols) {
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
|
|
17
|
+
const {
|
|
18
|
+
molfile,
|
|
19
|
+
label = `P${getLabelNumber(reservedNumbers)}`,
|
|
20
|
+
id,
|
|
21
|
+
...others
|
|
22
|
+
} = mol;
|
|
25
23
|
const moleculeOverride = {
|
|
26
|
-
...
|
|
27
|
-
|
|
28
|
-
label
|
|
29
|
-
id
|
|
24
|
+
...others,
|
|
25
|
+
text: molfile,
|
|
26
|
+
label,
|
|
27
|
+
id,
|
|
30
28
|
};
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
try {
|
|
30
|
+
molecules.push(initMolecule(moleculeOverride));
|
|
31
|
+
} catch {
|
|
32
|
+
continue;
|
|
33
|
+
}
|
|
33
34
|
}
|
|
34
35
|
|
|
35
36
|
return molecules;
|
|
@@ -49,10 +50,9 @@ export function addMolfile(
|
|
|
49
50
|
|
|
50
51
|
// try to parse molfile
|
|
51
52
|
// this will throw if the molecule can not be parsed !
|
|
52
|
-
const molecule = Molecule.fromMolfile(molfile);
|
|
53
53
|
molecules.push(
|
|
54
54
|
initMolecule({
|
|
55
|
-
|
|
55
|
+
text: molfile,
|
|
56
56
|
label: label ?? `P${getLabelNumber(reservedNumbers)}`,
|
|
57
57
|
id,
|
|
58
58
|
}),
|
|
@@ -66,9 +66,8 @@ export function setMolfile(
|
|
|
66
66
|
const { molfile, id, label } = currentMolecule;
|
|
67
67
|
// try to parse molfile
|
|
68
68
|
// this will throw if the molecule can not be parsed !
|
|
69
|
-
const molecule = Molecule.fromMolfile(molfile);
|
|
70
69
|
const _mol = initMolecule({
|
|
71
|
-
|
|
70
|
+
text: molfile,
|
|
72
71
|
id,
|
|
73
72
|
label,
|
|
74
73
|
});
|
|
@@ -137,20 +136,23 @@ function validateMolecules(molecules: StateMolecule[]) {
|
|
|
137
136
|
* @param text - text containing one or several molecules in SMILES, molfile or SDF format
|
|
138
137
|
* @returns
|
|
139
138
|
*/
|
|
140
|
-
export function getMolecules(text?: string) {
|
|
141
|
-
if (!text?.trim()) {
|
|
142
|
-
throw new Error(parseErrorMessage);
|
|
143
|
-
}
|
|
144
139
|
|
|
145
|
-
|
|
146
|
-
let molecules = [];
|
|
147
|
-
const parse = /v[23]000/i.test(text) ? readSDF : readSMILES;
|
|
140
|
+
function parseSDF(text: string) {
|
|
148
141
|
try {
|
|
149
|
-
molecules =
|
|
142
|
+
const molecules = readSDF(text);
|
|
143
|
+
validateMolecules(molecules);
|
|
144
|
+
return molecules;
|
|
150
145
|
} catch (error) {
|
|
151
146
|
throw new Error(parseErrorMessage, { cause: error });
|
|
152
147
|
}
|
|
148
|
+
}
|
|
153
149
|
|
|
154
|
-
|
|
155
|
-
|
|
150
|
+
export function getMolecules(text?: string) {
|
|
151
|
+
if (!text?.trim()) {
|
|
152
|
+
throw new Error(parseErrorMessage);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
const isSDF = /v[23]000/i.test(text);
|
|
156
|
+
|
|
157
|
+
return isSDF ? parseSDF(text) : [initMolecule({ text })];
|
|
156
158
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Range, Signal1D, Signal2D, Zone } from '@zakodium/nmr-types';
|
|
2
2
|
import type { Spectrum1D, Spectrum2D, Spectrum } from '@zakodium/nmrium-core';
|
|
3
3
|
|
|
4
|
-
import { isSpectrum1D } from '../data1d/Spectrum1D/index.
|
|
5
|
-
import { isSpectrum2D } from '../data2d/Spectrum2D/index.
|
|
4
|
+
import { isSpectrum1D } from '../data1d/Spectrum1D/index.js';
|
|
5
|
+
import { isSpectrum2D } from '../data2d/Spectrum2D/index.js';
|
|
6
6
|
|
|
7
7
|
function findSpectrum(
|
|
8
8
|
spectraData: Spectrum[],
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Dialog } from '@blueprintjs/core';
|
|
2
1
|
import styled from '@emotion/styled';
|
|
3
2
|
import type { FormEvent } from 'react';
|
|
4
3
|
import { useCallback, useEffect, useMemo, useRef } from 'react';
|
|
5
4
|
|
|
6
5
|
import Button from '../../component/elements/Button.js';
|
|
6
|
+
import { StandardDialog } from '../../component/elements/StandardDialog.tsx';
|
|
7
7
|
import { StyledDialogBody } from '../../component/elements/StyledDialogBody.js';
|
|
8
8
|
|
|
9
9
|
import type { ClipboardMode } from './types.js';
|
|
@@ -126,11 +126,11 @@ export function ClipboardFallbackModal(props: ClipboardFallbackProps) {
|
|
|
126
126
|
};
|
|
127
127
|
|
|
128
128
|
return (
|
|
129
|
-
<
|
|
129
|
+
<StandardDialog isOpen onClose={props.onDismiss} title={titles[props.mode]}>
|
|
130
130
|
<StyledDialogBody padding="0px">
|
|
131
131
|
<ClipboardFallback {...props} />
|
|
132
132
|
</StyledDialogBody>
|
|
133
|
-
</
|
|
133
|
+
</StandardDialog>
|
|
134
134
|
);
|
|
135
135
|
}
|
|
136
136
|
|
package/src/versionInfo.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default { version: '
|
|
1
|
+
export default { version: 'v2.0.0' };
|