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
|
@@ -5,7 +5,7 @@ import { useMemo } from 'react';
|
|
|
5
5
|
|
|
6
6
|
import { useChartData } from '../../context/ChartContext.js';
|
|
7
7
|
import { useScaleChecked } from '../../context/ScaleContext.js';
|
|
8
|
-
import { useActiveNucleusTab } from '../../hooks/useActiveNucleusTab.
|
|
8
|
+
import { useActiveNucleusTab } from '../../hooks/useActiveNucleusTab.js';
|
|
9
9
|
import { usePanelPreferences } from '../../hooks/usePanelPreferences.js';
|
|
10
10
|
import { PathBuilder } from '../../utility/PathBuilder.js';
|
|
11
11
|
import { getYScaleWithRation } from '../utilities/scale.js';
|
|
@@ -4,7 +4,7 @@ import { useCallback } from 'react';
|
|
|
4
4
|
import { usePreferences } from '../../context/PreferencesContext.js';
|
|
5
5
|
import { useScaleChecked } from '../../context/ScaleContext.js';
|
|
6
6
|
import { ResizerWithScale } from '../../elements/ResizerWithScale.js';
|
|
7
|
-
import type { Position } from '../../elements/resizer/SVGResizer.
|
|
7
|
+
import type { Position } from '../../elements/resizer/SVGResizer.js';
|
|
8
8
|
import { useHighlight } from '../../highlight/index.js';
|
|
9
9
|
import { useResizerStatus } from '../../hooks/useResizerStatus.js';
|
|
10
10
|
|
|
@@ -12,10 +12,10 @@ import { useDispatch } from '../../context/DispatchContext.js';
|
|
|
12
12
|
import { useScaleChecked } from '../../context/ScaleContext.js';
|
|
13
13
|
import { ActionsButtonsPopover } from '../../elements/ActionsButtonsPopover.js';
|
|
14
14
|
import { useHighlight } from '../../highlight/index.js';
|
|
15
|
-
import { useActiveSpectrum } from '../../hooks/useActiveSpectrum.
|
|
15
|
+
import { useActiveSpectrum } from '../../hooks/useActiveSpectrum.js';
|
|
16
16
|
import useSpectrum from '../../hooks/useSpectrum.js';
|
|
17
17
|
import { useIsInset } from '../inset/InsetProvider.js';
|
|
18
|
-
import { useAssignmentsPopoverActionsButtons } from '../ranges/useAssignmentsPopoverActionsButtons.
|
|
18
|
+
import { useAssignmentsPopoverActionsButtons } from '../ranges/useAssignmentsPopoverActionsButtons.js';
|
|
19
19
|
|
|
20
20
|
import type { TreeNodes } from './generateTreeNodes.js';
|
|
21
21
|
import { generateTreeNodes } from './generateTreeNodes.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useScaleChecked } from '../../context/ScaleContext.js';
|
|
2
2
|
import { useHighlight } from '../../highlight/index.js';
|
|
3
3
|
import { useActiveSpectrum } from '../../hooks/useActiveSpectrum.js';
|
|
4
|
-
import { useTextMetrics } from '../../hooks/useTextMetrics.
|
|
4
|
+
import { useTextMetrics } from '../../hooks/useTextMetrics.js';
|
|
5
5
|
import { formatNumber } from '../../utility/formatNumber.js';
|
|
6
6
|
|
|
7
7
|
import { PeakEditionListener } from './PeakEditionManager.js';
|
|
@@ -55,7 +55,7 @@ function resolveYOverlaps(
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
function useDetectPeakOverlaps(peaks: Peak[], format: string) {
|
|
58
|
-
const { getTextWidth } = useTextMetrics(textSize);
|
|
58
|
+
const { getTextWidth } = useTextMetrics({ labelSize: textSize });
|
|
59
59
|
const overlapPeaksById: Record<string, boolean> = {};
|
|
60
60
|
|
|
61
61
|
let cluster: Peak[] = [];
|
|
@@ -121,8 +121,8 @@ function PeakAnnotationsSpreadMode(props: PeakAnnotationsSpreadModeProps) {
|
|
|
121
121
|
direction="row"
|
|
122
122
|
{...(isDragActive && { isOpen: true })}
|
|
123
123
|
y={y}
|
|
124
|
-
|
|
125
|
-
|
|
124
|
+
anchorTo="cursor-x"
|
|
125
|
+
anchorPlacement="start"
|
|
126
126
|
autoFlip={false}
|
|
127
127
|
>
|
|
128
128
|
<g className="peaks">
|
|
@@ -2,9 +2,9 @@ import type { NMRPeak1D, Peak1D, Range } from '@zakodium/nmr-types';
|
|
|
2
2
|
import type { Spectrum1D } from '@zakodium/nmrium-core';
|
|
3
3
|
import { memo, useMemo } from 'react';
|
|
4
4
|
|
|
5
|
-
import { getOpacityBasedOnSignalKind } from '../../../data/utilities/RangeUtilities.
|
|
5
|
+
import { getOpacityBasedOnSignalKind } from '../../../data/utilities/RangeUtilities.js';
|
|
6
6
|
import { useChartData } from '../../context/ChartContext.js';
|
|
7
|
-
import { useScaleChecked } from '../../context/ScaleContext.
|
|
7
|
+
import { useScaleChecked } from '../../context/ScaleContext.js';
|
|
8
8
|
import { useActiveSpectrumPeaksViewState } from '../../hooks/useActiveSpectrumPeaksViewState.js';
|
|
9
9
|
import { useActiveSpectrumRangesViewState } from '../../hooks/useActiveSpectrumRangesViewState.js';
|
|
10
10
|
import { usePanelPreferences } from '../../hooks/usePanelPreferences.js';
|
|
@@ -18,21 +18,21 @@ import { useLogger } from '../../context/LoggerContext.js';
|
|
|
18
18
|
import { ActionsButtonsPopover } from '../../elements/ActionsButtonsPopover.js';
|
|
19
19
|
import { useDialogData } from '../../elements/DialogManager.js';
|
|
20
20
|
import { ResizerWithScale } from '../../elements/ResizerWithScale.js';
|
|
21
|
-
import type { Position } from '../../elements/resizer/SVGResizer.
|
|
21
|
+
import type { Position } from '../../elements/resizer/SVGResizer.js';
|
|
22
22
|
import { useHighlight } from '../../highlight/index.js';
|
|
23
23
|
import { useActiveSpectrumRangesViewState } from '../../hooks/useActiveSpectrumRangesViewState.js';
|
|
24
24
|
import { useHighlightColor } from '../../hooks/useHighlightColor.js';
|
|
25
25
|
import { useResizerStatus } from '../../hooks/useResizerStatus.js';
|
|
26
26
|
import useSpectrum from '../../hooks/useSpectrum.js';
|
|
27
27
|
import { EditRangeModal } from '../../modal/editRange/EditRangeModal.js';
|
|
28
|
-
import type { StackOverlappingLabelsMapReturnType } from '../../utility/stackOverlappingLabels.
|
|
28
|
+
import type { StackOverlappingLabelsMapReturnType } from '../../utility/stackOverlappingLabels.js';
|
|
29
29
|
import { useIsInset } from '../inset/InsetProvider.js';
|
|
30
30
|
import { IntegralIndicator } from '../integral/IntegralIndicator.js';
|
|
31
31
|
import { useScaleX } from '../utilities/scale.js';
|
|
32
32
|
|
|
33
|
-
import { AssignmentLabel } from './AssignmentLabel.
|
|
33
|
+
import { AssignmentLabel } from './AssignmentLabel.js';
|
|
34
34
|
import { Atoms } from './Atoms.js';
|
|
35
|
-
import { useAssignmentsPopoverActionsButtons } from './useAssignmentsPopoverActionsButtons.
|
|
35
|
+
import { useAssignmentsPopoverActionsButtons } from './useAssignmentsPopoverActionsButtons.js';
|
|
36
36
|
|
|
37
37
|
interface RangeProps {
|
|
38
38
|
selectedTool: string;
|
|
@@ -156,7 +156,7 @@ function Range(options: RangeProps) {
|
|
|
156
156
|
onClosed={() => {
|
|
157
157
|
isAssignBtnTrigged.current = false;
|
|
158
158
|
}}
|
|
159
|
-
|
|
159
|
+
anchorTo="cursor-y"
|
|
160
160
|
>
|
|
161
161
|
<g
|
|
162
162
|
data-testid="range"
|
|
@@ -9,7 +9,7 @@ import { useChartData } from '../../context/ChartContext.js';
|
|
|
9
9
|
import { useScaleChecked } from '../../context/ScaleContext.js';
|
|
10
10
|
import { usePanelPreferences } from '../../hooks/usePanelPreferences.js';
|
|
11
11
|
import useSpectrum from '../../hooks/useSpectrum.js';
|
|
12
|
-
import { useTextMetrics } from '../../hooks/useTextMetrics.
|
|
12
|
+
import { useTextMetrics } from '../../hooks/useTextMetrics.js';
|
|
13
13
|
import { stackOverlappingLabelsMap } from '../../utility/stackOverlappingLabels.js';
|
|
14
14
|
|
|
15
15
|
import Range from './Range.js';
|
|
@@ -32,7 +32,7 @@ type ProcessedRange = RangeType & {
|
|
|
32
32
|
function useStackRangesAssignmentsLabels(ranges: RangeType[]) {
|
|
33
33
|
const { scaleX } = useScaleChecked();
|
|
34
34
|
|
|
35
|
-
const { getTextWidth } = useTextMetrics(labelSize);
|
|
35
|
+
const { getTextWidth } = useTextMetrics({ labelSize });
|
|
36
36
|
|
|
37
37
|
if (ranges.length === 0) return null;
|
|
38
38
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Spectrum1D } from '@zakodium/nmrium-core';
|
|
2
2
|
import { xyIntegral, xyMaxY } from 'ml-spectra-processing';
|
|
3
3
|
|
|
4
|
-
import { getOpacityBasedOnSignalKind } from '../../../data/utilities/RangeUtilities.
|
|
4
|
+
import { getOpacityBasedOnSignalKind } from '../../../data/utilities/RangeUtilities.js';
|
|
5
5
|
import { useChartData } from '../../context/ChartContext.js';
|
|
6
6
|
import { useActiveSpectrumRangesViewState } from '../../hooks/useActiveSpectrumRangesViewState.js';
|
|
7
7
|
import useIntegralPath from '../../hooks/useIntegralPath.js';
|
|
@@ -2,11 +2,11 @@ import { FaSitemap } from 'react-icons/fa';
|
|
|
2
2
|
import { LuLink, LuUnlink } from 'react-icons/lu';
|
|
3
3
|
import { PiTextTBold, PiTextTSlashBold } from 'react-icons/pi';
|
|
4
4
|
|
|
5
|
-
import { useDispatch } from '../../context/DispatchContext.
|
|
6
|
-
import { useShareData } from '../../context/ShareDataContext.
|
|
7
|
-
import type { ActionsButtonsPopoverProps } from '../../elements/ActionsButtonsPopover.
|
|
8
|
-
import { useActiveSpectrumRangesViewState } from '../../hooks/useActiveSpectrumRangesViewState.
|
|
9
|
-
import { booleanToString } from '../../utility/booleanToString.
|
|
5
|
+
import { useDispatch } from '../../context/DispatchContext.js';
|
|
6
|
+
import { useShareData } from '../../context/ShareDataContext.js';
|
|
7
|
+
import type { ActionsButtonsPopoverProps } from '../../elements/ActionsButtonsPopover.js';
|
|
8
|
+
import { useActiveSpectrumRangesViewState } from '../../hooks/useActiveSpectrumRangesViewState.js';
|
|
9
|
+
import { booleanToString } from '../../utility/booleanToString.js';
|
|
10
10
|
|
|
11
11
|
interface UseAssignmentsPopoverActionsButtonsOptions {
|
|
12
12
|
isAssignButtonVisible?: boolean;
|
|
@@ -4,7 +4,7 @@ import { useChartData } from '../../context/ChartContext.js';
|
|
|
4
4
|
import { useDispatch } from '../../context/DispatchContext.js';
|
|
5
5
|
import { useScaleChecked } from '../../context/ScaleContext.js';
|
|
6
6
|
import { ResizerWithScale } from '../../elements/ResizerWithScale.js';
|
|
7
|
-
import type { Position } from '../../elements/resizer/SVGResizer.
|
|
7
|
+
import type { Position } from '../../elements/resizer/SVGResizer.js';
|
|
8
8
|
import { useHighlight } from '../../highlight/index.js';
|
|
9
9
|
import { useResizerStatus } from '../../hooks/useResizerStatus.js';
|
|
10
10
|
import { useIsInset } from '../inset/InsetProvider.js';
|
|
@@ -18,9 +18,9 @@ import { ActionsButtonsPopover } from '../../../elements/ActionsButtonsPopover.j
|
|
|
18
18
|
import { useSVGUnitConverter } from '../../../hooks/useSVGUnitConverter.js';
|
|
19
19
|
import { useCheckExportStatus } from '../../../hooks/useViewportSize.js';
|
|
20
20
|
import { useMoleculeEditor } from '../../../modal/MoleculeStructureEditorModal.js';
|
|
21
|
-
import { MoleculeStructure } from '../../../panels/MoleculesPanel/MoleculeStructure.
|
|
22
|
-
import { useMoleculeAnnotationCore } from '../../../panels/hooks/useMoleculeAnnotationCore.
|
|
23
|
-
import { booleanToString } from '../../../utility/booleanToString.
|
|
21
|
+
import { MoleculeStructure } from '../../../panels/MoleculesPanel/MoleculeStructure.js';
|
|
22
|
+
import { useMoleculeAnnotationCore } from '../../../panels/hooks/useMoleculeAnnotationCore.js';
|
|
23
|
+
import { booleanToString } from '../../../utility/booleanToString.js';
|
|
24
24
|
|
|
25
25
|
interface DraggableStructureProps {
|
|
26
26
|
moleculeView: MoleculeView;
|
|
@@ -187,7 +187,6 @@ export function DraggableStructure(props: DraggableStructureProps) {
|
|
|
187
187
|
buttons={actionsButtons}
|
|
188
188
|
fill
|
|
189
189
|
positioningStrategy="fixed"
|
|
190
|
-
position="top-left"
|
|
191
190
|
direction="row"
|
|
192
191
|
targetProps={{ style: { width: '100%', height: '100%' } }}
|
|
193
192
|
space={2}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { Spectrum } from '@zakodium/nmrium-core';
|
|
2
2
|
import dlv from 'dlv';
|
|
3
|
-
import type { CSSProperties } from 'react';
|
|
4
3
|
import { useState } from 'react';
|
|
5
4
|
import { useResizeObserver } from 'react-d3-utils';
|
|
6
5
|
import { BsArrowsMove } from 'react-icons/bs';
|
|
7
6
|
import { FaTimes } from 'react-icons/fa';
|
|
7
|
+
import { SVGStyledText } from 'react-science/ui';
|
|
8
8
|
|
|
9
|
-
import { useIsInset } from '../../1d/inset/InsetProvider.
|
|
9
|
+
import { useIsInset } from '../../1d/inset/InsetProvider.js';
|
|
10
10
|
import { useChartData } from '../../context/ChartContext.js';
|
|
11
11
|
import { useGlobal } from '../../context/GlobalContext.js';
|
|
12
12
|
import { usePreferences } from '../../context/PreferencesContext.js';
|
|
@@ -22,22 +22,6 @@ const verticalSpace = 5;
|
|
|
22
22
|
const boxPadding = 0;
|
|
23
23
|
const dragShiftY = 24;
|
|
24
24
|
|
|
25
|
-
const styles: Record<'value' | 'label' | 'colorIndicator', CSSProperties> = {
|
|
26
|
-
label: {
|
|
27
|
-
fontSize: '11px',
|
|
28
|
-
fill: 'black',
|
|
29
|
-
fontWeight: 'bold',
|
|
30
|
-
},
|
|
31
|
-
value: {
|
|
32
|
-
fontSize: '12px',
|
|
33
|
-
fill: 'black',
|
|
34
|
-
},
|
|
35
|
-
colorIndicator: {
|
|
36
|
-
width: '10px',
|
|
37
|
-
height: '2px',
|
|
38
|
-
},
|
|
39
|
-
};
|
|
40
|
-
|
|
41
25
|
function getInfoValue(
|
|
42
26
|
spectrum: Spectrum,
|
|
43
27
|
field: { jpath: string[]; format: string },
|
|
@@ -81,9 +65,10 @@ function SpectrumInfoBlock() {
|
|
|
81
65
|
x: number;
|
|
82
66
|
y: number;
|
|
83
67
|
}>(coordinate);
|
|
68
|
+
|
|
84
69
|
const {
|
|
85
70
|
current: {
|
|
86
|
-
infoBlock: { visible, fields },
|
|
71
|
+
infoBlock: { visible, fields, nameStyle, valueStyle },
|
|
87
72
|
},
|
|
88
73
|
} = usePreferences();
|
|
89
74
|
|
|
@@ -95,10 +80,12 @@ function SpectrumInfoBlock() {
|
|
|
95
80
|
: infoFields?.length - (infoFields?.length % 2)
|
|
96
81
|
? 2
|
|
97
82
|
: 1) || 0);
|
|
83
|
+
|
|
98
84
|
const [
|
|
99
85
|
ref,
|
|
100
86
|
{ width: boxWidth, height: boxHeight } = { width: 0, height: 0 },
|
|
101
87
|
] = useResizeObserver();
|
|
88
|
+
|
|
102
89
|
const { onPointerDown } = useDraggable({
|
|
103
90
|
position: coordinate,
|
|
104
91
|
onChange: (dragEvent) => {
|
|
@@ -190,7 +177,6 @@ function SpectrumInfoBlock() {
|
|
|
190
177
|
targetTagName="g"
|
|
191
178
|
buttons={actionsButtons}
|
|
192
179
|
positioningStrategy="fixed"
|
|
193
|
-
position="top-left"
|
|
194
180
|
direction="row"
|
|
195
181
|
space={2}
|
|
196
182
|
{...(isMoveActive && { isOpen: true })}
|
|
@@ -216,12 +202,13 @@ function SpectrumInfoBlock() {
|
|
|
216
202
|
space={verticalSpace}
|
|
217
203
|
key={field.jpath + field.label}
|
|
218
204
|
>
|
|
219
|
-
<
|
|
205
|
+
<SVGStyledText {...nameStyle} alignmentBaseline="middle">
|
|
220
206
|
{field.label} :
|
|
221
|
-
</
|
|
222
|
-
|
|
207
|
+
</SVGStyledText>
|
|
208
|
+
|
|
209
|
+
<SVGStyledText {...valueStyle} alignmentBaseline="middle">
|
|
223
210
|
{getInfoValue(spectrum, field)}
|
|
224
|
-
</
|
|
211
|
+
</SVGStyledText>
|
|
225
212
|
</SVGGroup>
|
|
226
213
|
);
|
|
227
214
|
})}
|
|
@@ -15,7 +15,7 @@ import { useActiveSpectrum } from '../hooks/useActiveSpectrum.js';
|
|
|
15
15
|
import { useFormatNumberByNucleus } from '../hooks/useFormatNumberByNucleus.js';
|
|
16
16
|
import { options } from '../toolbar/ToolTypes.js';
|
|
17
17
|
|
|
18
|
-
import type { Spectrum1DTraces } from './useTracesSpectra.
|
|
18
|
+
import type { Spectrum1DTraces } from './useTracesSpectra.js';
|
|
19
19
|
import type { Get2DDimensionLayoutReturn } from './utilities/DimensionLayout.js';
|
|
20
20
|
import { LAYOUT, getLayoutID } from './utilities/DimensionLayout.js';
|
|
21
21
|
import { get1DYScale, get2DXScale, get2DYScale } from './utilities/scale.js';
|
|
@@ -6,7 +6,7 @@ import XAxis from './XAxis.js';
|
|
|
6
6
|
import YAxis from './YAxis.js';
|
|
7
7
|
import { FidContainer } from './fid/FidContainer.js';
|
|
8
8
|
import { FTContainer } from './ft/FTContainer.js';
|
|
9
|
-
import type { Spectrum1DTraces } from './useTracesSpectra.
|
|
9
|
+
import type { Spectrum1DTraces } from './useTracesSpectra.js';
|
|
10
10
|
import { SignalsGuideLines } from './zones/SignalsGuideLines.js';
|
|
11
11
|
import Zones from './zones/Zones.js';
|
|
12
12
|
import ZonesAssignmentsLabels from './zones/ZonesAssignmentsLabels.js';
|
|
@@ -3,8 +3,8 @@ import { useLinearPrimaryTicks } from 'react-d3-utils';
|
|
|
3
3
|
|
|
4
4
|
import { useChartData } from '../context/ChartContext.js';
|
|
5
5
|
import { D3Axis } from '../elements/D3Axis.js';
|
|
6
|
-
import { useActiveNucleusTab } from '../hooks/useActiveNucleusTab.
|
|
7
|
-
import { useTextMetrics } from '../hooks/useTextMetrics.
|
|
6
|
+
import { useActiveNucleusTab } from '../hooks/useActiveNucleusTab.js';
|
|
7
|
+
import { useTextMetrics } from '../hooks/useTextMetrics.js';
|
|
8
8
|
|
|
9
9
|
import { useScale2DY } from './utilities/scale.js';
|
|
10
10
|
|
|
@@ -25,7 +25,7 @@ function YAxis(props: YAxisProps) {
|
|
|
25
25
|
const { width, height, margin } = useChartData();
|
|
26
26
|
const nucleusStr = useActiveNucleusTab();
|
|
27
27
|
const [, unit] = nucleusStr.split(',');
|
|
28
|
-
const { getTextWidth } = useTextMetrics(10);
|
|
28
|
+
const { getTextWidth } = useTextMetrics({ labelSize: 10 });
|
|
29
29
|
|
|
30
30
|
const scaleY = useScale2DY();
|
|
31
31
|
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { Spectrum2D } from '@zakodium/nmrium-core';
|
|
2
1
|
import debounce from 'lodash/debounce.js';
|
|
3
2
|
import { memo, useMemo, useRef } from 'react';
|
|
4
3
|
|
|
@@ -7,27 +6,25 @@ import { drawContours } from '../../../data/data2d/Spectrum2D/contours.js';
|
|
|
7
6
|
import { useChartData } from '../../context/ChartContext.js';
|
|
8
7
|
import { usePreferences } from '../../context/PreferencesContext.js';
|
|
9
8
|
import { useToaster } from '../../context/ToasterContext.js';
|
|
9
|
+
import type { SpectrumFTData } from '../../hooks/use2DReducer.tsx';
|
|
10
|
+
import { use2DReducer } from '../../hooks/use2DReducer.tsx';
|
|
10
11
|
import { useActiveSpectrum } from '../../hooks/useActiveSpectrum.js';
|
|
11
12
|
import { PathBuilder } from '../../utility/PathBuilder.js';
|
|
12
|
-
import { getSpectraByNucleus } from '../../utility/getSpectraByNucleus.js';
|
|
13
13
|
import { useScale2DX, useScale2DY } from '../utilities/scale.js';
|
|
14
14
|
|
|
15
15
|
interface ContoursPathsProps {
|
|
16
16
|
id: string;
|
|
17
17
|
color: string;
|
|
18
18
|
sign: LevelSign;
|
|
19
|
-
spectrum:
|
|
19
|
+
spectrum: SpectrumFTData;
|
|
20
20
|
onTimeout: () => void;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
interface ContoursInnerProps {
|
|
24
|
-
spectra:
|
|
24
|
+
spectra: SpectrumFTData[];
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
function usePath(
|
|
28
|
-
spectrum: Spectrum2D,
|
|
29
|
-
contours: ReturnType<typeof drawContours>['contours'],
|
|
30
|
-
) {
|
|
27
|
+
function usePath(contours: ReturnType<typeof drawContours>['contours']) {
|
|
31
28
|
const scaleX = useScale2DX();
|
|
32
29
|
const scaleY = useScale2DY();
|
|
33
30
|
|
|
@@ -49,11 +46,12 @@ function usePath(
|
|
|
49
46
|
return pathBuilder.toString();
|
|
50
47
|
}
|
|
51
48
|
|
|
52
|
-
const useContoursLevel = (
|
|
49
|
+
const useContoursLevel = (spectrumID: string, sign: LevelSign) => {
|
|
53
50
|
const {
|
|
54
|
-
|
|
55
|
-
} =
|
|
56
|
-
|
|
51
|
+
view: { spectraContourLevels },
|
|
52
|
+
} = useChartData();
|
|
53
|
+
const level = spectraContourLevels[spectrumID]?.[sign];
|
|
54
|
+
return level;
|
|
57
55
|
};
|
|
58
56
|
|
|
59
57
|
function ContoursPaths({
|
|
@@ -65,7 +63,7 @@ function ContoursPaths({
|
|
|
65
63
|
}: ContoursPathsProps) {
|
|
66
64
|
const activeSpectrum = useActiveSpectrum();
|
|
67
65
|
const preferences = usePreferences();
|
|
68
|
-
const level = useContoursLevel(
|
|
66
|
+
const level = useContoursLevel(spectrumID, sign);
|
|
69
67
|
|
|
70
68
|
const contours = useMemo(() => {
|
|
71
69
|
const { contours, timeout } = drawContours(
|
|
@@ -79,7 +77,7 @@ function ContoursPaths({
|
|
|
79
77
|
return contours;
|
|
80
78
|
}, [spectrum, level, onTimeout, sign]);
|
|
81
79
|
|
|
82
|
-
const path = usePath(
|
|
80
|
+
const path = usePath(contours);
|
|
83
81
|
|
|
84
82
|
const opacity =
|
|
85
83
|
activeSpectrum === null || spectrumID === activeSpectrum.id
|
|
@@ -147,18 +145,7 @@ function ContoursInner({ spectra }: ContoursInnerProps) {
|
|
|
147
145
|
const MemoizedContours = memo(ContoursInner);
|
|
148
146
|
|
|
149
147
|
export default function Contours() {
|
|
150
|
-
const
|
|
151
|
-
data: spectra,
|
|
152
|
-
displayerKey,
|
|
153
|
-
view: {
|
|
154
|
-
spectra: { activeTab },
|
|
155
|
-
},
|
|
156
|
-
} = useChartData();
|
|
157
|
-
const spectra2d = useMemo<Spectrum2D[]>(() => {
|
|
158
|
-
return getSpectraByNucleus(activeTab, spectra).filter(
|
|
159
|
-
(datum) => datum.info.isFt,
|
|
160
|
-
) as Spectrum2D[];
|
|
161
|
-
}, [activeTab, spectra]);
|
|
148
|
+
const spectra = use2DReducer();
|
|
162
149
|
|
|
163
|
-
return <MemoizedContours {
|
|
150
|
+
return <MemoizedContours spectra={spectra} />;
|
|
164
151
|
}
|
|
@@ -3,7 +3,7 @@ import { ClipPathContainer } from '../../1d-2d/components/ClipPathContainer.js';
|
|
|
3
3
|
import useSpectrum from '../../hooks/useSpectrum.js';
|
|
4
4
|
import Left1DChart from '../1d-tracer/Left1DChart.js';
|
|
5
5
|
import Top1DChart from '../1d-tracer/Top1DChart.js';
|
|
6
|
-
import type { Spectrum1DTraces } from '../useTracesSpectra.
|
|
6
|
+
import type { Spectrum1DTraces } from '../useTracesSpectra.js';
|
|
7
7
|
|
|
8
8
|
import Contours from './Contours.js';
|
|
9
9
|
|
|
@@ -6,7 +6,7 @@ import { useMouseTracker } from '../../EventsTrackers/MouseTracker.js';
|
|
|
6
6
|
import { useChartData } from '../../context/ChartContext.js';
|
|
7
7
|
import { useActiveSpectrum } from '../../hooks/useActiveSpectrum.js';
|
|
8
8
|
import { useFormatNumberByNucleus } from '../../hooks/useFormatNumberByNucleus.js';
|
|
9
|
-
import type { Spectrum1DTraces } from '../useTracesSpectra.
|
|
9
|
+
import type { Spectrum1DTraces } from '../useTracesSpectra.js';
|
|
10
10
|
import type { Get2DDimensionLayoutReturn } from '../utilities/DimensionLayout.js';
|
|
11
11
|
import { LAYOUT, getLayoutID } from '../utilities/DimensionLayout.js';
|
|
12
12
|
import { get1DYScale, useScale2DX, useScale2DY } from '../utilities/scale.js';
|
|
@@ -5,7 +5,7 @@ import type {
|
|
|
5
5
|
} from '@zakodium/nmrium-core';
|
|
6
6
|
import { useMemo } from 'react';
|
|
7
7
|
|
|
8
|
-
import { isFt1DSpectrum } from '../../data/data1d/Spectrum1D/isSpectrum1D.
|
|
8
|
+
import { isFt1DSpectrum } from '../../data/data1d/Spectrum1D/isSpectrum1D.js';
|
|
9
9
|
import { useChartData } from '../context/ChartContext.js';
|
|
10
10
|
|
|
11
11
|
export interface GetTracesSpectraOptions {
|
|
@@ -5,7 +5,7 @@ import { useRef } from 'react';
|
|
|
5
5
|
import { LuLink, LuUnlink } from 'react-icons/lu';
|
|
6
6
|
import { PiTextTBold, PiTextTSlashBold } from 'react-icons/pi';
|
|
7
7
|
|
|
8
|
-
import { isAssigned } from '../../../data/data1d/Spectrum1D/isRangeAssigned.
|
|
8
|
+
import { isAssigned } from '../../../data/data1d/Spectrum1D/isRangeAssigned.js';
|
|
9
9
|
import { FieldEdition } from '../../1d-2d/FieldEdition.js';
|
|
10
10
|
import {
|
|
11
11
|
useAssignment,
|
|
@@ -21,8 +21,8 @@ import {
|
|
|
21
21
|
import type { ActionsButtonsPopoverProps } from '../../elements/ActionsButtonsPopover.js';
|
|
22
22
|
import { ActionsButtonsPopover } from '../../elements/ActionsButtonsPopover.js';
|
|
23
23
|
import { useHighlight } from '../../highlight/index.js';
|
|
24
|
-
import { useHighlightColor } from '../../hooks/useHighlightColor.
|
|
25
|
-
import { useTextMetrics } from '../../hooks/useTextMetrics.
|
|
24
|
+
import { useHighlightColor } from '../../hooks/useHighlightColor.js';
|
|
25
|
+
import { useTextMetrics } from '../../hooks/useTextMetrics.js';
|
|
26
26
|
import { useTriggerNewAssignmentLabel } from '../../hooks/useTriggerNewAssignmentLabel.js';
|
|
27
27
|
import { stackOverlappingLabelsArray } from '../../utility/stackOverlappingLabels.js';
|
|
28
28
|
import { useTracesSpectra } from '../useTracesSpectra.js';
|
|
@@ -67,7 +67,7 @@ function useSignalsOverlap(axis: IndicationLinesAxis, spectrum: Spectrum1D) {
|
|
|
67
67
|
});
|
|
68
68
|
const scaleX = useScale2DX();
|
|
69
69
|
const scaleY = useScale2DY();
|
|
70
|
-
const { getTextWidth } = useTextMetrics(labelSize);
|
|
70
|
+
const { getTextWidth } = useTextMetrics({ labelSize });
|
|
71
71
|
|
|
72
72
|
if (!signals) return null;
|
|
73
73
|
|
|
@@ -312,7 +312,7 @@ function IndicationLine(props: IndicationLineProps) {
|
|
|
312
312
|
targetTagName="g"
|
|
313
313
|
buttons={actionsButtons}
|
|
314
314
|
space={2}
|
|
315
|
-
|
|
315
|
+
anchorTo={isOverXAxis ? 'cursor-y' : 'cursor-x'}
|
|
316
316
|
onClosed={() => {
|
|
317
317
|
isAssignBtnTrigged.current = false;
|
|
318
318
|
}}
|
|
@@ -12,7 +12,7 @@ import { useActiveSpectrumZonesViewState } from '../../hooks/useActiveSpectrumZo
|
|
|
12
12
|
import { useScale2DX, useScale2DY } from '../utilities/scale.js';
|
|
13
13
|
|
|
14
14
|
import Signal from './Signal.js';
|
|
15
|
-
import { SignalCrosshair } from './SignalCrosshair.
|
|
15
|
+
import { SignalCrosshair } from './SignalCrosshair.js';
|
|
16
16
|
|
|
17
17
|
interface ZoneProps {
|
|
18
18
|
zoneData: ZoneType;
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from 'react';
|
|
18
18
|
import { assert } from 'react-science/ui';
|
|
19
19
|
|
|
20
|
-
import type { EventModifierKeys } from '../context/KeyModifierContext.
|
|
20
|
+
import type { EventModifierKeys } from '../context/KeyModifierContext.js';
|
|
21
21
|
import type { ActionType } from '../reducer/types/ActionType.js';
|
|
22
22
|
|
|
23
23
|
type AdvanceOmit<T, K extends keyof any> = T extends any ? Omit<T, K> : never;
|
|
@@ -35,6 +35,15 @@ interface LoggerProviderProps {
|
|
|
35
35
|
children: ReactNode;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
+
export type LoggerType =
|
|
39
|
+
| 'fatal'
|
|
40
|
+
| 'error'
|
|
41
|
+
| 'warn'
|
|
42
|
+
| 'info'
|
|
43
|
+
| 'debug'
|
|
44
|
+
| 'trace'
|
|
45
|
+
| 'silent';
|
|
46
|
+
|
|
38
47
|
export const LOGGER_LEVELS = {
|
|
39
48
|
fatal: 60,
|
|
40
49
|
error: 50,
|
|
@@ -37,7 +37,7 @@ export function usePreferences(): PreferencesContextData {
|
|
|
37
37
|
}, [workspaces, workspace, context]);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
type ExtendedWorkspace = WorkspaceWithSource & {
|
|
40
|
+
export type ExtendedWorkspace = WorkspaceWithSource & {
|
|
41
41
|
key: string;
|
|
42
42
|
visible: boolean;
|
|
43
43
|
};
|