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,16 +1,19 @@
|
|
|
1
1
|
import type { MoleculeView } from '@zakodium/nmrium-core';
|
|
2
|
+
import { Molecule } from 'openchemlib';
|
|
3
|
+
import type { GroupedDiaID } from 'openchemlib-utils';
|
|
2
4
|
import { useRef } from 'react';
|
|
3
5
|
import type { MolfileSvgRendererProps } from 'react-ocl';
|
|
4
6
|
import { MolfileSvgRenderer } from 'react-ocl';
|
|
5
7
|
import type { OCLnmrProps } from 'react-ocl-nmr';
|
|
6
8
|
import OCLnmr from 'react-ocl-nmr';
|
|
7
9
|
|
|
8
|
-
import type { StateMoleculeExtended } from '../../../data/molecules/Molecule.
|
|
9
|
-
import { useDispatch } from '../../context/DispatchContext.
|
|
10
|
-
import {
|
|
10
|
+
import type { StateMoleculeExtended } from '../../../data/molecules/Molecule.js';
|
|
11
|
+
import { useDispatch } from '../../context/DispatchContext.js';
|
|
12
|
+
import { useTopicMolecule } from '../../context/TopicMoleculeContext.tsx';
|
|
13
|
+
import { useHighlightColor } from '../../hooks/useHighlightColor.js';
|
|
11
14
|
|
|
12
|
-
import useAtomAssignment from './hooks/useAtomAssignment.
|
|
13
|
-
import { useExtractAtomAssignmentLabel } from './hooks/useExtractAtomAssignmentLabel.
|
|
15
|
+
import useAtomAssignment from './hooks/useAtomAssignment.js';
|
|
16
|
+
import { useExtractAtomAssignmentLabel } from './hooks/useExtractAtomAssignmentLabel.js';
|
|
14
17
|
|
|
15
18
|
interface MoleculeStructureProps extends Pick<OCLnmrProps, 'width' | 'height'> {
|
|
16
19
|
moleculeView: MoleculeView;
|
|
@@ -20,6 +23,30 @@ interface MoleculeStructureProps extends Pick<OCLnmrProps, 'width' | 'height'> {
|
|
|
20
23
|
index?: number;
|
|
21
24
|
}
|
|
22
25
|
|
|
26
|
+
function getCustomLabels(groups: GroupedDiaID[]) {
|
|
27
|
+
return groups.flatMap((g) => g.customLabels).join(',');
|
|
28
|
+
}
|
|
29
|
+
function useCustomLabelChange() {
|
|
30
|
+
const topicMolecule = useTopicMolecule();
|
|
31
|
+
|
|
32
|
+
return (newMolfile: string, moleculeId: string) => {
|
|
33
|
+
const molecule = topicMolecule?.[moleculeId];
|
|
34
|
+
|
|
35
|
+
if (!molecule) return false;
|
|
36
|
+
|
|
37
|
+
const currentGroupedAtomIDs = molecule.getGroupedDiastereotopicAtomIDs();
|
|
38
|
+
const newMolecule = molecule.fromMolecule(Molecule.fromMolfile(newMolfile));
|
|
39
|
+
const updatedGroupedAtomIDs = newMolecule.getGroupedDiastereotopicAtomIDs();
|
|
40
|
+
|
|
41
|
+
if (!currentGroupedAtomIDs || !updatedGroupedAtomIDs) return;
|
|
42
|
+
|
|
43
|
+
return (
|
|
44
|
+
getCustomLabels(currentGroupedAtomIDs) !==
|
|
45
|
+
getCustomLabels(updatedGroupedAtomIDs)
|
|
46
|
+
);
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
|
|
23
50
|
export function MoleculeStructure(props: MoleculeStructureProps) {
|
|
24
51
|
const {
|
|
25
52
|
molecule,
|
|
@@ -42,6 +69,7 @@ export function MoleculeStructure(props: MoleculeStructureProps) {
|
|
|
42
69
|
useExtractAtomAssignmentLabel();
|
|
43
70
|
//TODO Temporary workaround to prevent other focused elements from being triggered by the space key
|
|
44
71
|
const containerRef = useRef<HTMLDivElement>(null);
|
|
72
|
+
const hasCustomLabelChanged = useCustomLabelChange();
|
|
45
73
|
|
|
46
74
|
const atomHighlightColor =
|
|
47
75
|
currentDiaIDsToHighlight?.length > 0 ? '#ff000080' : highlightColor;
|
|
@@ -89,6 +117,13 @@ export function MoleculeStructure(props: MoleculeStructureProps) {
|
|
|
89
117
|
const diaObject = getLastHoverAtom();
|
|
90
118
|
const assignmentObj = getAssignmentLabelByHover(molecule.id, molfile);
|
|
91
119
|
|
|
120
|
+
if (hasCustomLabelChanged(molfile, molecule.id)) {
|
|
121
|
+
dispatch({
|
|
122
|
+
type: 'CHANGE_MOLECULE_ANNOTATION',
|
|
123
|
+
payload: { id: molecule.id, atomAnnotation: 'custom-labels' },
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
|
|
92
127
|
if (assignmentObj && diaObject) {
|
|
93
128
|
dispatch({
|
|
94
129
|
type: 'CHANGE_ASSIGNMENT_LABEL_BY_DIAIDS',
|
|
@@ -3,30 +3,30 @@ import type { DiaIDAndInfo } from 'openchemlib-utils';
|
|
|
3
3
|
import type { MouseEvent } from 'react';
|
|
4
4
|
import { useMemo, useRef } from 'react';
|
|
5
5
|
|
|
6
|
-
import { isSpectrum1D } from '../../../../data/data1d/Spectrum1D/
|
|
7
|
-
import { isSpectrum2D } from '../../../../data/data2d/Spectrum2D/
|
|
8
|
-
import { ConcatenationString } from '../../../../data/utilities/Concatenation.
|
|
9
|
-
import checkModifierKeyActivated from '../../../../data/utilities/checkModifierKeyActivated.
|
|
10
|
-
import { useTracesSpectra } from '../../../2d/useTracesSpectra.
|
|
6
|
+
import { isSpectrum1D } from '../../../../data/data1d/Spectrum1D/index.js';
|
|
7
|
+
import { isSpectrum2D } from '../../../../data/data2d/Spectrum2D/index.js';
|
|
8
|
+
import { ConcatenationString } from '../../../../data/utilities/Concatenation.js';
|
|
9
|
+
import checkModifierKeyActivated from '../../../../data/utilities/checkModifierKeyActivated.js';
|
|
10
|
+
import { useTracesSpectra } from '../../../2d/useTracesSpectra.js';
|
|
11
11
|
import type {
|
|
12
12
|
Assignments,
|
|
13
13
|
Axis,
|
|
14
|
-
} from '../../../assignment/AssignmentsContext.
|
|
15
|
-
import { useAssignmentContext } from '../../../assignment/AssignmentsContext.
|
|
16
|
-
import { useChartData } from '../../../context/ChartContext.
|
|
17
|
-
import { useDispatch } from '../../../context/DispatchContext.
|
|
18
|
-
import { useToaster } from '../../../context/ToasterContext.
|
|
19
|
-
import type { HighlightEventSource } from '../../../highlight/index.
|
|
20
|
-
import { useHighlightData } from '../../../highlight/index.
|
|
21
|
-
import useSpectrum from '../../../hooks/useSpectrum.
|
|
22
|
-
import type { AtomData } from '../utilities/AtomData.
|
|
23
|
-
import { extractFromAtom } from '../utilities/extractFromAtom.
|
|
24
|
-
import { getAssignIds } from '../utilities/getAssignIds.
|
|
25
|
-
import { getCurrentDiaIDsToHighlight } from '../utilities/getCurrentDiaIDsToHighlight.
|
|
26
|
-
import { getHighlightsOnHover } from '../utilities/getHighlightsOnHover.
|
|
27
|
-
import { getUniqueDiaIDs } from '../utilities/getUniqueDiaIDs.
|
|
28
|
-
|
|
29
|
-
import { useExtractAtomAssignmentLabel } from './useExtractAtomAssignmentLabel.
|
|
14
|
+
} from '../../../assignment/AssignmentsContext.js';
|
|
15
|
+
import { useAssignmentContext } from '../../../assignment/AssignmentsContext.js';
|
|
16
|
+
import { useChartData } from '../../../context/ChartContext.js';
|
|
17
|
+
import { useDispatch } from '../../../context/DispatchContext.js';
|
|
18
|
+
import { useToaster } from '../../../context/ToasterContext.js';
|
|
19
|
+
import type { HighlightEventSource } from '../../../highlight/index.js';
|
|
20
|
+
import { useHighlightData } from '../../../highlight/index.js';
|
|
21
|
+
import useSpectrum from '../../../hooks/useSpectrum.js';
|
|
22
|
+
import type { AtomData } from '../utilities/AtomData.js';
|
|
23
|
+
import { extractFromAtom } from '../utilities/extractFromAtom.js';
|
|
24
|
+
import { getAssignIds } from '../utilities/getAssignIds.js';
|
|
25
|
+
import { getCurrentDiaIDsToHighlight } from '../utilities/getCurrentDiaIDsToHighlight.js';
|
|
26
|
+
import { getHighlightsOnHover } from '../utilities/getHighlightsOnHover.js';
|
|
27
|
+
import { getUniqueDiaIDs } from '../utilities/getUniqueDiaIDs.js';
|
|
28
|
+
|
|
29
|
+
import { useExtractAtomAssignmentLabel } from './useExtractAtomAssignmentLabel.js';
|
|
30
30
|
|
|
31
31
|
function flattenAssignedDiaIDs(assignments: Assignments) {
|
|
32
32
|
const assignedDiaIDs: string[] = [];
|
|
@@ -2,7 +2,7 @@ import { Molecule } from 'openchemlib';
|
|
|
2
2
|
import type { DiaIDAndInfo } from 'openchemlib-utils';
|
|
3
3
|
import { useRef } from 'react';
|
|
4
4
|
|
|
5
|
-
import { useTopicMolecule } from '../../../context/TopicMoleculeContext.
|
|
5
|
+
import { useTopicMolecule } from '../../../context/TopicMoleculeContext.js';
|
|
6
6
|
|
|
7
7
|
export function useExtractAtomAssignmentLabel() {
|
|
8
8
|
const topicMolecule = useTopicMolecule();
|
|
@@ -2,7 +2,7 @@ import type { DiaIDAndInfo } from 'openchemlib-utils';
|
|
|
2
2
|
|
|
3
3
|
import type { Axis } from '../../../assignment/AssignmentsContext.js';
|
|
4
4
|
|
|
5
|
-
import type { AtomData } from './AtomData.
|
|
5
|
+
import type { AtomData } from './AtomData.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Returns the OCL id(s) and number of atoms of an atom when hovering over
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Range, Zone } from '@zakodium/nmr-types';
|
|
2
2
|
import type { Spectrum } from '@zakodium/nmrium-core';
|
|
3
3
|
|
|
4
|
-
import { isSpectrum1D } from '../../../../data/data1d/Spectrum1D/isSpectrum1D.
|
|
4
|
+
import { isSpectrum1D } from '../../../../data/data1d/Spectrum1D/isSpectrum1D.js';
|
|
5
5
|
|
|
6
6
|
interface TargetAssignment {
|
|
7
7
|
key: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AssignmentContext } from '../../../assignment/AssignmentsContext.
|
|
1
|
+
import type { AssignmentContext } from '../../../assignment/AssignmentsContext.js';
|
|
2
2
|
|
|
3
3
|
export function getCurrentDiaIDsToHighlight(assignmentData: AssignmentContext) {
|
|
4
4
|
const { highlighted, data } = assignmentData;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Spectrum } from '@zakodium/nmrium-core';
|
|
2
2
|
|
|
3
|
+
import type { AssignmentContext } from '../../../assignment/AssignmentsContext.js';
|
|
3
4
|
import { assignmentAxes } from '../../../assignment/AssignmentsContext.js';
|
|
4
|
-
import type { AssignmentContext } from '../../../assignment/AssignmentsContext.ts';
|
|
5
5
|
|
|
6
|
-
import { getAssignIds } from './getAssignIds.
|
|
6
|
+
import { getAssignIds } from './getAssignIds.js';
|
|
7
7
|
|
|
8
8
|
export function getHighlightsOnHover(
|
|
9
9
|
assignments: AssignmentContext,
|
|
@@ -1,19 +1,14 @@
|
|
|
1
1
|
import styled from '@emotion/styled';
|
|
2
2
|
import type { NMRiumPanelPreferences } from '@zakodium/nmrium-core';
|
|
3
3
|
import { memo } from 'react';
|
|
4
|
-
import { FaRegEdit } from 'react-icons/fa';
|
|
5
|
-
import type { ToolbarItemProps } from 'react-science/ui';
|
|
6
4
|
import { Accordion, Toolbar } from 'react-science/ui';
|
|
7
5
|
|
|
8
6
|
import { usePreferences } from '../context/PreferencesContext.js';
|
|
9
|
-
import { useActiveSpectrum } from '../hooks/useActiveSpectrum.js';
|
|
10
|
-
import { useDialogToggle } from '../hooks/useDialogToggle.js';
|
|
11
7
|
|
|
12
8
|
import type { AccordionItem } from './accordionItems.js';
|
|
13
9
|
import { useAccordionItems } from './hooks/useAccordionItems.js';
|
|
14
10
|
import { useGetPanelOptions } from './hooks/useGetPanelOptions.js';
|
|
15
11
|
import { useTogglePanel } from './hooks/useTogglePanel.js';
|
|
16
|
-
import { InformationEditionModal } from './informationPanel/InformationEditionModal.js';
|
|
17
12
|
|
|
18
13
|
const Container = styled.div`
|
|
19
14
|
flex: 1 1 0%;
|
|
@@ -23,9 +18,7 @@ const Container = styled.div`
|
|
|
23
18
|
|
|
24
19
|
function PanelsInner() {
|
|
25
20
|
const getPanelPreferences = useGetPanelOptions();
|
|
26
|
-
|
|
27
|
-
informationModal: false,
|
|
28
|
-
});
|
|
21
|
+
|
|
29
22
|
const { dispatch } = usePreferences();
|
|
30
23
|
const items = useAccordionItems();
|
|
31
24
|
function isOpened(item: AccordionItem) {
|
|
@@ -43,10 +36,6 @@ function PanelsInner() {
|
|
|
43
36
|
|
|
44
37
|
return (
|
|
45
38
|
<Container>
|
|
46
|
-
<InformationEditionModal
|
|
47
|
-
isOpen={dialog.informationModal}
|
|
48
|
-
onCloseDialog={closeDialog}
|
|
49
|
-
/>
|
|
50
39
|
<Accordion>
|
|
51
40
|
{displayedPanels.map((item) => {
|
|
52
41
|
const { title, component, id } = item;
|
|
@@ -63,15 +52,7 @@ function PanelsInner() {
|
|
|
63
52
|
payload: { id, options: { open: isOpened } },
|
|
64
53
|
});
|
|
65
54
|
}}
|
|
66
|
-
renderToolbar={() =>
|
|
67
|
-
<RightButtons
|
|
68
|
-
id={id}
|
|
69
|
-
onEdit={(event) => {
|
|
70
|
-
event.stopPropagation();
|
|
71
|
-
openDialog('informationModal');
|
|
72
|
-
}}
|
|
73
|
-
/>
|
|
74
|
-
)}
|
|
55
|
+
renderToolbar={() => <RightButtons id={id} />}
|
|
75
56
|
>
|
|
76
57
|
{component}
|
|
77
58
|
</Accordion.Item>
|
|
@@ -82,12 +63,8 @@ function PanelsInner() {
|
|
|
82
63
|
);
|
|
83
64
|
}
|
|
84
65
|
|
|
85
|
-
function RightButtons(props: {
|
|
86
|
-
id
|
|
87
|
-
onEdit: ToolbarItemProps['onClick'];
|
|
88
|
-
}) {
|
|
89
|
-
const { onEdit, id } = props;
|
|
90
|
-
const activeSpectrum = useActiveSpectrum();
|
|
66
|
+
function RightButtons(props: { id: keyof NMRiumPanelPreferences }) {
|
|
67
|
+
const { id } = props;
|
|
91
68
|
const toggle = useTogglePanel();
|
|
92
69
|
function handleClosePanel(event: any) {
|
|
93
70
|
event?.stopPropagation();
|
|
@@ -96,19 +73,6 @@ function RightButtons(props: {
|
|
|
96
73
|
|
|
97
74
|
return (
|
|
98
75
|
<Toolbar>
|
|
99
|
-
{id === 'informationPanel' && (
|
|
100
|
-
<Toolbar.Item
|
|
101
|
-
disabled={!activeSpectrum}
|
|
102
|
-
tooltipProps={{ intent: !activeSpectrum ? 'danger' : 'none' }}
|
|
103
|
-
icon={<FaRegEdit />}
|
|
104
|
-
onClick={onEdit}
|
|
105
|
-
tooltip={
|
|
106
|
-
!activeSpectrum
|
|
107
|
-
? 'Select a spectrum to edit its meta information'
|
|
108
|
-
: 'Edit spectrum meta information'
|
|
109
|
-
}
|
|
110
|
-
/>
|
|
111
|
-
)}
|
|
112
76
|
<Toolbar.Item
|
|
113
77
|
icon="cross"
|
|
114
78
|
tooltip="Close panel"
|
|
@@ -17,32 +17,41 @@ import {
|
|
|
17
17
|
import { ImLink } from 'react-icons/im';
|
|
18
18
|
import { LuMessageSquareText } from 'react-icons/lu';
|
|
19
19
|
|
|
20
|
-
import { ClipboardFallbackModal } from '../../../utils/clipboard/clipboardComponents.js';
|
|
21
|
-
import { useClipboard } from '../../../utils/clipboard/clipboardHooks.js';
|
|
22
20
|
import { useDispatch } from '../../context/DispatchContext.js';
|
|
23
|
-
import { useToaster } from '../../context/ToasterContext.js';
|
|
24
21
|
import { useAlert } from '../../elements/Alert.js';
|
|
25
|
-
import type {
|
|
22
|
+
import type {
|
|
23
|
+
ToolbarPopoverMenuDivider,
|
|
24
|
+
ToolbarPopoverMenuItem,
|
|
25
|
+
} from '../../elements/ToolbarPopoverItem.js';
|
|
26
26
|
import { ToolbarPopoverItem } from '../../elements/ToolbarPopoverItem.js';
|
|
27
27
|
import { useActiveSpectrumRangesViewState } from '../../hooks/useActiveSpectrumRangesViewState.js';
|
|
28
28
|
import { useDialogToggle } from '../../hooks/useDialogToggle.js';
|
|
29
|
+
import useSpectrum from '../../hooks/useSpectrum.ts';
|
|
30
|
+
import { useActiveACSSettings } from '../../hooks/use_acs_settings.ts';
|
|
29
31
|
import { PublicationStringModal } from '../../modal/PublicationStringModal.js';
|
|
30
32
|
import ChangeSumModal from '../../modal/changeSum/ChangeSumModal.js';
|
|
31
33
|
import { booleanToString } from '../../utility/booleanToString.js';
|
|
32
34
|
import type { FilterType } from '../../utility/filterType.js';
|
|
33
|
-
import { saveAs } from '../../utility/save_as.
|
|
35
|
+
import { saveAs } from '../../utility/save_as.js';
|
|
34
36
|
import DefaultPanelHeader from '../header/DefaultPanelHeader.js';
|
|
35
37
|
|
|
36
38
|
type ExportRangesType = 'publicationString' | 'rangesToTSV';
|
|
37
39
|
interface ExportData {
|
|
38
40
|
id: ExportRangesType;
|
|
39
41
|
}
|
|
40
|
-
type ExportItem =
|
|
42
|
+
type ExportItem =
|
|
43
|
+
| ToolbarPopoverMenuItem<ExportData>
|
|
44
|
+
| ToolbarPopoverMenuDivider;
|
|
41
45
|
|
|
42
46
|
const EXPORT_MENU: ExportItem[] = [
|
|
47
|
+
{
|
|
48
|
+
key: 'export-divider',
|
|
49
|
+
menuItemType: 'divider',
|
|
50
|
+
title: 'Export',
|
|
51
|
+
},
|
|
43
52
|
{
|
|
44
53
|
icon: <FaCopy />,
|
|
45
|
-
text: '
|
|
54
|
+
text: 'Copy publication string',
|
|
46
55
|
data: {
|
|
47
56
|
id: 'publicationString',
|
|
48
57
|
},
|
|
@@ -78,7 +87,8 @@ function RangesHeader(props: RangesHeaderProps) {
|
|
|
78
87
|
} = props;
|
|
79
88
|
const dispatch = useDispatch();
|
|
80
89
|
const alert = useAlert();
|
|
81
|
-
const
|
|
90
|
+
const currentACSOptions = useActiveACSSettings();
|
|
91
|
+
const spectrum = useSpectrum();
|
|
82
92
|
const { openDialog, dialog, closeDialog } = useDialogToggle({
|
|
83
93
|
publicationStringModal: false,
|
|
84
94
|
});
|
|
@@ -180,15 +190,6 @@ function RangesHeader(props: RangesHeaderProps) {
|
|
|
180
190
|
});
|
|
181
191
|
}
|
|
182
192
|
|
|
183
|
-
const { rawWriteWithType, shouldFallback, cleanShouldFallback, text } =
|
|
184
|
-
useClipboard();
|
|
185
|
-
|
|
186
|
-
function saveToClipboardHandler(value: string) {
|
|
187
|
-
void rawWriteWithType(value, 'text/html').then(() =>
|
|
188
|
-
toaster.show({ message: 'Data copied to clipboard', intent: 'success' }),
|
|
189
|
-
);
|
|
190
|
-
}
|
|
191
|
-
|
|
192
193
|
function changeSumConstantFlagHandler() {
|
|
193
194
|
dispatch({
|
|
194
195
|
type: 'CHANGE_RANGES_SUM_FLAG',
|
|
@@ -211,9 +212,10 @@ function RangesHeader(props: RangesHeaderProps) {
|
|
|
211
212
|
|
|
212
213
|
function exportHandler(data?: ExportData) {
|
|
213
214
|
switch (data?.id) {
|
|
214
|
-
case 'publicationString':
|
|
215
|
+
case 'publicationString': {
|
|
215
216
|
openDialog('publicationStringModal');
|
|
216
217
|
break;
|
|
218
|
+
}
|
|
217
219
|
case 'rangesToTSV':
|
|
218
220
|
handleRangesToTSV();
|
|
219
221
|
break;
|
|
@@ -231,7 +233,7 @@ function RangesHeader(props: RangesHeaderProps) {
|
|
|
231
233
|
<ToolbarPopoverItem<ExportData>
|
|
232
234
|
disabled={!hasRanges}
|
|
233
235
|
icon={<FaFileExport />}
|
|
234
|
-
tooltip="Export
|
|
236
|
+
tooltip="Export"
|
|
235
237
|
options={EXPORT_MENU}
|
|
236
238
|
onClick={exportHandler}
|
|
237
239
|
/>
|
|
@@ -314,14 +316,17 @@ function RangesHeader(props: RangesHeaderProps) {
|
|
|
314
316
|
{
|
|
315
317
|
disabled: !hasRanges,
|
|
316
318
|
icon: <FaCopy />,
|
|
317
|
-
tooltip:
|
|
319
|
+
tooltip: booleanToString(!showPublicationString, {
|
|
320
|
+
trueLabel: 'Display publication string',
|
|
321
|
+
falseLabel: 'Hide publication string',
|
|
322
|
+
}),
|
|
318
323
|
onClick: handleShowPublicationString,
|
|
319
324
|
active: showPublicationString,
|
|
320
325
|
},
|
|
321
326
|
{
|
|
322
327
|
disabled: !hasRanges,
|
|
323
328
|
icon: <SvgNmrPeaksTopLabels />,
|
|
324
|
-
tooltip: `${booleanToString(!showRanges)}
|
|
329
|
+
tooltip: `${booleanToString(!showRanges, { trueLabel: 'Display' })} table`,
|
|
325
330
|
onClick: handleShowRanges,
|
|
326
331
|
active: showRanges,
|
|
327
332
|
},
|
|
@@ -331,8 +336,15 @@ function RangesHeader(props: RangesHeaderProps) {
|
|
|
331
336
|
<div>
|
|
332
337
|
<PublicationStringModal
|
|
333
338
|
isOpen={dialog.publicationStringModal}
|
|
334
|
-
onCopyClick={saveToClipboardHandler}
|
|
335
339
|
onClose={closeDialog}
|
|
340
|
+
acsExportOptions={currentACSOptions}
|
|
341
|
+
spectrum={spectrum}
|
|
342
|
+
publicationStringVisibility={{
|
|
343
|
+
isShown: showPublicationString,
|
|
344
|
+
toggle: handleShowPublicationString,
|
|
345
|
+
}}
|
|
346
|
+
saveLabel="Copy and apply"
|
|
347
|
+
copyOnSave
|
|
336
348
|
/>
|
|
337
349
|
<DefaultPanelHeader
|
|
338
350
|
total={total}
|
|
@@ -346,13 +358,6 @@ function RangesHeader(props: RangesHeaderProps) {
|
|
|
346
358
|
onSettingClick={onSettingClick}
|
|
347
359
|
leftButtons={lefButtons}
|
|
348
360
|
/>
|
|
349
|
-
|
|
350
|
-
<ClipboardFallbackModal
|
|
351
|
-
mode={shouldFallback}
|
|
352
|
-
onDismiss={cleanShouldFallback}
|
|
353
|
-
text={text}
|
|
354
|
-
label="Preview publication string"
|
|
355
|
-
/>
|
|
356
361
|
</div>
|
|
357
362
|
);
|
|
358
363
|
}
|
|
@@ -19,7 +19,7 @@ import ActionsColumn from './TableColumns/ActionsColumn.js';
|
|
|
19
19
|
import CouplingColumn from './TableColumns/CouplingColumn.js';
|
|
20
20
|
import RangeColumn from './TableColumns/RangeColumn.js';
|
|
21
21
|
import RelativeColumn from './TableColumns/RelativeColumn.js';
|
|
22
|
-
import { SignalAssignmentColumn } from './TableColumns/SignalAssignmentColumn.
|
|
22
|
+
import { SignalAssignmentColumn } from './TableColumns/SignalAssignmentColumn.js';
|
|
23
23
|
import SignalAssignmentsColumn from './TableColumns/SignalAssignmentsColumn.js';
|
|
24
24
|
import SignalDeltaColumn from './TableColumns/SignalDeltaColumn.js';
|
|
25
25
|
import SignalDeltaHzColumn from './TableColumns/SignalDeltaHzColumn.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { useDispatch } from '../../../context/DispatchContext.
|
|
2
|
-
import { EditableColumn } from '../../../elements/EditableColumn.
|
|
3
|
-
import type { BaseRangeColumnProps, OnHoverEvent } from '../RangesTableRow.
|
|
1
|
+
import { useDispatch } from '../../../context/DispatchContext.js';
|
|
2
|
+
import { EditableColumn } from '../../../elements/EditableColumn.js';
|
|
3
|
+
import type { BaseRangeColumnProps, OnHoverEvent } from '../RangesTableRow.js';
|
|
4
4
|
|
|
5
5
|
interface SignalAssignmentColumnProps
|
|
6
6
|
extends Omit<BaseRangeColumnProps, 'format'>, OnHoverEvent {
|
|
@@ -28,7 +28,7 @@ import type { Column } from '../../elements/ReactTable/ReactTable.js';
|
|
|
28
28
|
import ReactTable from '../../elements/ReactTable/ReactTable.js';
|
|
29
29
|
import { usePanelPreferences } from '../../hooks/usePanelPreferences.js';
|
|
30
30
|
import ExportAsJcampModal from '../../modal/ExportAsJcampModal.js';
|
|
31
|
-
import { saveAs } from '../../utility/save_as.
|
|
31
|
+
import { saveAs } from '../../utility/save_as.js';
|
|
32
32
|
|
|
33
33
|
import { RenderAsHTML } from './base/RenderAsHTML.js';
|
|
34
34
|
import type { OnChangeVisibilityEvent } from './base/ShowHideSpectrumButton.js';
|
|
@@ -15,15 +15,16 @@ export function Spectrum1DSetting({
|
|
|
15
15
|
data: SpectrumData,
|
|
16
16
|
onSubmit,
|
|
17
17
|
}: Spectrum1DSettingProps) {
|
|
18
|
+
const { display } = SpectrumData;
|
|
18
19
|
const { control, handleSubmit } = useForm({
|
|
19
|
-
defaultValues:
|
|
20
|
+
defaultValues: { display },
|
|
20
21
|
});
|
|
21
22
|
|
|
22
23
|
return (
|
|
23
24
|
<div style={{ display: 'flex', flexDirection: 'column', gap: '1.25rem' }}>
|
|
24
25
|
<div style={{ display: 'block', position: 'relative' }}>
|
|
25
26
|
<Controller
|
|
26
|
-
name="color"
|
|
27
|
+
name="display.color"
|
|
27
28
|
control={control}
|
|
28
29
|
render={({ field }) => {
|
|
29
30
|
const { value, onChange } = field;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { RangeSliderProps } from '@blueprintjs/core';
|
|
2
2
|
import { RangeSlider } from '@blueprintjs/core';
|
|
3
3
|
import styled from '@emotion/styled';
|
|
4
|
+
import type { Spectrum2D } from '@zakodium/nmrium-core';
|
|
4
5
|
import debounce from 'lodash/debounce.js';
|
|
5
6
|
import type { CSSProperties } from 'react';
|
|
6
7
|
import { useMemo } from 'react';
|
|
@@ -14,6 +15,7 @@ import {
|
|
|
14
15
|
import { ColorPicker } from 'react-science/ui';
|
|
15
16
|
|
|
16
17
|
import { COLORS } from '../../../../../data/utilities/generateColor.js';
|
|
18
|
+
import { useChartData } from '../../../../context/ChartContext.tsx';
|
|
17
19
|
import { NumberInput2 } from '../../../../elements/NumberInput2.js';
|
|
18
20
|
import { useFormValidateField } from '../../../../elements/useFormValidateField.js';
|
|
19
21
|
import { colorToHexWithAlpha } from '../../../../utility/colorToHexWithAlpha.js';
|
|
@@ -38,7 +40,7 @@ function ContoursRangeSlider(props: ContoursRangeSliderProps) {
|
|
|
38
40
|
}
|
|
39
41
|
|
|
40
42
|
interface Spectrum2DSettingProps {
|
|
41
|
-
data:
|
|
43
|
+
data: Spectrum2D;
|
|
42
44
|
onSubmit: (values: any) => void;
|
|
43
45
|
}
|
|
44
46
|
|
|
@@ -53,8 +55,14 @@ export function Spectrum2DSetting({
|
|
|
53
55
|
data: SpectrumData,
|
|
54
56
|
onSubmit,
|
|
55
57
|
}: Spectrum2DSettingProps) {
|
|
56
|
-
const {
|
|
57
|
-
const
|
|
58
|
+
const { id, display } = SpectrumData;
|
|
59
|
+
const {
|
|
60
|
+
view: { spectraContourLevels },
|
|
61
|
+
} = useChartData();
|
|
62
|
+
const methods = useForm({
|
|
63
|
+
defaultValues: { contourOptions: spectraContourLevels[id], display },
|
|
64
|
+
});
|
|
65
|
+
const { positiveColor, negativeColor } = display;
|
|
58
66
|
|
|
59
67
|
return (
|
|
60
68
|
<FormProvider {...methods}>
|
|
@@ -95,7 +103,7 @@ function Settings(props: SettingsProps) {
|
|
|
95
103
|
return (
|
|
96
104
|
<>
|
|
97
105
|
<Controller
|
|
98
|
-
name={
|
|
106
|
+
name={`display.${sign}Color`}
|
|
99
107
|
control={control}
|
|
100
108
|
render={({ field }) => {
|
|
101
109
|
const { value, onChange } = field;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DialogBody, Tab, Tabs } from '@blueprintjs/core';
|
|
2
2
|
import { yupResolver } from '@hookform/resolvers/yup';
|
|
3
3
|
import type { CSSProperties } from 'react';
|
|
4
4
|
import { useState } from 'react';
|
|
@@ -11,6 +11,7 @@ import { useDispatch } from '../../context/DispatchContext.js';
|
|
|
11
11
|
import Button from '../../elements/Button.js';
|
|
12
12
|
import { Input2Controller } from '../../elements/Input2Controller.js';
|
|
13
13
|
import MoleculeSelection from '../../elements/MoleculeSelection.js';
|
|
14
|
+
import { StandardDialog } from '../../elements/StandardDialog.tsx';
|
|
14
15
|
|
|
15
16
|
function isValidMf(value: string): boolean {
|
|
16
17
|
try {
|
|
@@ -80,7 +81,7 @@ function InnerSetMolecularFormulaModal({
|
|
|
80
81
|
}
|
|
81
82
|
|
|
82
83
|
return (
|
|
83
|
-
<
|
|
84
|
+
<StandardDialog
|
|
84
85
|
isOpen
|
|
85
86
|
title="Molecular formula"
|
|
86
87
|
style={{ width: 400 }}
|
|
@@ -100,7 +101,7 @@ function InnerSetMolecularFormulaModal({
|
|
|
100
101
|
/>
|
|
101
102
|
</Tabs>
|
|
102
103
|
</DialogBody>
|
|
103
|
-
</
|
|
104
|
+
</StandardDialog>
|
|
104
105
|
);
|
|
105
106
|
}
|
|
106
107
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DialogBody, DialogFooter } from '@blueprintjs/core';
|
|
2
2
|
import { yupResolver } from '@hookform/resolvers/yup';
|
|
3
3
|
import type { Tolerance } from 'nmr-correlation';
|
|
4
4
|
import { useMemo } from 'react';
|
|
@@ -12,6 +12,7 @@ import Button from '../../elements/Button.js';
|
|
|
12
12
|
import { NumberInput2Controller } from '../../elements/NumberInput2Controller.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
|
|
|
16
17
|
interface ToleranceItem {
|
|
17
18
|
atom: string;
|
|
@@ -115,7 +116,7 @@ function InnerSetShiftToleranceModal(props: InnerSetShiftToleranceModalProps) {
|
|
|
115
116
|
);
|
|
116
117
|
|
|
117
118
|
return (
|
|
118
|
-
<
|
|
119
|
+
<StandardDialog
|
|
119
120
|
isOpen
|
|
120
121
|
title="Shift tolerances"
|
|
121
122
|
onClose={onClose}
|
|
@@ -136,6 +137,6 @@ function InnerSetShiftToleranceModal(props: InnerSetShiftToleranceModalProps) {
|
|
|
136
137
|
Set shift tolerances
|
|
137
138
|
</Button.Done>
|
|
138
139
|
</DialogFooter>
|
|
139
|
-
</
|
|
140
|
+
</StandardDialog>
|
|
140
141
|
);
|
|
141
142
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import styled from '@emotion/styled';
|
|
2
2
|
import type { DatabaseNMREntry } from 'nmr-processing';
|
|
3
3
|
|
|
4
|
-
import { filterDatabaseInfoEntry } from '../../utility/filterDatabaseInfoEntry.
|
|
4
|
+
import { filterDatabaseInfoEntry } from '../../utility/filterDatabaseInfoEntry.js';
|
|
5
5
|
|
|
6
6
|
const Container = styled.div`
|
|
7
7
|
display: flex;
|
|
@@ -33,7 +33,7 @@ import { options } from '../../toolbar/ToolTypes.js';
|
|
|
33
33
|
import Events from '../../utility/Events.js';
|
|
34
34
|
import { exportAsJsonBlob } from '../../utility/export.js';
|
|
35
35
|
import nucleusToString from '../../utility/nucleusToString.js';
|
|
36
|
-
import { saveAs } from '../../utility/save_as.
|
|
36
|
+
import { saveAs } from '../../utility/save_as.js';
|
|
37
37
|
import { PanelNoData } from '../PanelNoData.js';
|
|
38
38
|
import { TablePanel } from '../extra/BasicPanelStyle.js';
|
|
39
39
|
import type { SettingsRef } from '../extra/utilities/settingImperativeHandle.js';
|
|
@@ -304,7 +304,9 @@ function DatabasePanelInner({
|
|
|
304
304
|
});
|
|
305
305
|
|
|
306
306
|
try {
|
|
307
|
-
const
|
|
307
|
+
const {
|
|
308
|
+
state: { data },
|
|
309
|
+
} = await core.readFromWebSource({
|
|
308
310
|
entries: [{ baseURL: url.origin, relativePath: url.pathname }],
|
|
309
311
|
});
|
|
310
312
|
const spectrum = data?.spectra?.[0] || null;
|
|
@@ -520,9 +522,9 @@ async function saveJcampAsJson(
|
|
|
520
522
|
const { index, baseURL, jcampURL, names, ocl = {}, smiles } = rowData;
|
|
521
523
|
const { ranges } = filteredData.data[index];
|
|
522
524
|
const url = new URL(jcampURL, baseURL);
|
|
523
|
-
const
|
|
524
|
-
{ data: { spectra
|
|
525
|
-
|
|
525
|
+
const {
|
|
526
|
+
state: { data: { spectra = [], sources = [] } = {}, version },
|
|
527
|
+
} = await core.readFromWebSource({
|
|
526
528
|
entries: [{ baseURL: url.origin, relativePath: url.pathname }],
|
|
527
529
|
});
|
|
528
530
|
|