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,3 +1,5 @@
|
|
|
1
|
+
import { useMemo } from 'react';
|
|
2
|
+
|
|
1
3
|
import { useChartData } from '../context/ChartContext.js';
|
|
2
4
|
|
|
3
5
|
function truncate(value: any, numberOfDigits = 0) {
|
|
@@ -15,14 +17,16 @@ export function convertPercentToPixel(value: number, baseValue: number) {
|
|
|
15
17
|
export function useSVGUnitConverter() {
|
|
16
18
|
const { width, height } = useChartData();
|
|
17
19
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
return useMemo(() => {
|
|
21
|
+
function pixelToPercent(value: number, axis: 'x' | 'y') {
|
|
22
|
+
const size = axis === 'x' ? width : height;
|
|
23
|
+
return convertPixelToPercent(value, size);
|
|
24
|
+
}
|
|
25
|
+
function percentToPixel(value: number, axis: 'x' | 'y') {
|
|
26
|
+
const size = axis === 'x' ? width : height;
|
|
27
|
+
return convertPercentToPixel(value, size);
|
|
28
|
+
}
|
|
26
29
|
|
|
27
|
-
|
|
30
|
+
return { pixelToPercent, percentToPixel };
|
|
31
|
+
}, [width, height]);
|
|
28
32
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Button,
|
|
1
|
+
import { Button, DialogBody, DialogFooter } from '@blueprintjs/core';
|
|
2
2
|
import { revalidateLogic } from '@tanstack/react-form';
|
|
3
3
|
import type { Workspace } from '@zakodium/nmrium-core';
|
|
4
4
|
import { useRef } from 'react';
|
|
@@ -7,6 +7,7 @@ import { z } from 'zod/v4';
|
|
|
7
7
|
|
|
8
8
|
import { usePreferences } from '../context/PreferencesContext.js';
|
|
9
9
|
import { useToaster } from '../context/ToasterContext.js';
|
|
10
|
+
import { StandardDialog } from '../elements/StandardDialog.tsx';
|
|
10
11
|
|
|
11
12
|
import { useWorkspaceAction } from './useWorkspaceAction.js';
|
|
12
13
|
|
|
@@ -56,7 +57,7 @@ export function useSaveSettings() {
|
|
|
56
57
|
saveSettings,
|
|
57
58
|
SaveSettingsModal: () => {
|
|
58
59
|
return (
|
|
59
|
-
<
|
|
60
|
+
<StandardDialog
|
|
60
61
|
style={{ width: 500 }}
|
|
61
62
|
onClose={closeDialog}
|
|
62
63
|
isOpen={isOpenDialog}
|
|
@@ -104,7 +105,7 @@ export function useSaveSettings() {
|
|
|
104
105
|
}
|
|
105
106
|
/>
|
|
106
107
|
</form>
|
|
107
|
-
</
|
|
108
|
+
</StandardDialog>
|
|
108
109
|
);
|
|
109
110
|
},
|
|
110
111
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useChartData } from '../context/ChartContext.
|
|
1
|
+
import { useChartData } from '../context/ChartContext.js';
|
|
2
2
|
import { useDispatch } from '../context/DispatchContext.js';
|
|
3
3
|
import type { EventModifierKeys } from '../context/KeyModifierContext.js';
|
|
4
4
|
import { getModifiers } from '../context/KeyModifierContext.js';
|
|
@@ -1,27 +1,75 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useEffect, useMemo } from 'react';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
interface UseTextMetricsOptions {
|
|
4
|
+
labelSize?: number;
|
|
5
|
+
labelStyle?: string;
|
|
6
|
+
labelWeight?: string;
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Dev purpose only.
|
|
10
|
+
* Set a width to see the canvas used to measure text.
|
|
11
|
+
*/
|
|
12
|
+
debugCanvasWidth?: number;
|
|
9
13
|
}
|
|
10
14
|
|
|
11
|
-
export function useTextMetrics(
|
|
12
|
-
const
|
|
15
|
+
export function useTextMetrics(options: UseTextMetricsOptions = {}) {
|
|
16
|
+
const {
|
|
17
|
+
labelSize = 12,
|
|
18
|
+
labelStyle = 'normal',
|
|
19
|
+
labelWeight = 'normal',
|
|
20
|
+
debugCanvasWidth,
|
|
21
|
+
} = options;
|
|
22
|
+
const canvas = useCanvas(debugCanvasWidth);
|
|
13
23
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
contextRef.current = canvas.getContext('2d');
|
|
17
|
-
if (contextRef.current) {
|
|
18
|
-
contextRef.current.font = `${labelSize}px Arial`;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
24
|
+
const ctx = canvas.getContext('2d');
|
|
25
|
+
if (ctx) ctx.font = `${labelStyle} ${labelWeight} ${labelSize}px Arial`;
|
|
21
26
|
|
|
22
27
|
function getTextWidth(text: string): number {
|
|
23
|
-
return measureTextWidth(
|
|
28
|
+
return measureTextWidth(ctx, text);
|
|
24
29
|
}
|
|
25
30
|
|
|
26
|
-
return {
|
|
31
|
+
return {
|
|
32
|
+
getTextWidth,
|
|
33
|
+
/**
|
|
34
|
+
* @deprecated Use only for debug mode
|
|
35
|
+
*/
|
|
36
|
+
ctx,
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function useCanvas(width: number | undefined) {
|
|
41
|
+
const canvas = useMemo(() => {
|
|
42
|
+
const canvas = document.createElement('canvas');
|
|
43
|
+
if (width) {
|
|
44
|
+
canvas.width = width;
|
|
45
|
+
canvas.height = 450;
|
|
46
|
+
}
|
|
47
|
+
canvas.style.position = 'absolute';
|
|
48
|
+
canvas.style.bottom = '0';
|
|
49
|
+
canvas.style.left = '0';
|
|
50
|
+
canvas.style.zIndex = '100';
|
|
51
|
+
canvas.style.opacity = '50%';
|
|
52
|
+
canvas.style.background = 'white';
|
|
53
|
+
return canvas;
|
|
54
|
+
}, [width]);
|
|
55
|
+
|
|
56
|
+
useEffect(() => {
|
|
57
|
+
if (!width) return;
|
|
58
|
+
|
|
59
|
+
document.body.append(canvas);
|
|
60
|
+
|
|
61
|
+
return () => {
|
|
62
|
+
canvas.remove();
|
|
63
|
+
};
|
|
64
|
+
}, [canvas, width]);
|
|
65
|
+
|
|
66
|
+
return canvas;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
function measureTextWidth(
|
|
70
|
+
context: CanvasRenderingContext2D | null,
|
|
71
|
+
text: string,
|
|
72
|
+
) {
|
|
73
|
+
if (!context) return 0;
|
|
74
|
+
return Math.round(context.measureText(text).width);
|
|
27
75
|
}
|
|
@@ -6,7 +6,7 @@ import { useDispatch } from '../context/DispatchContext.js';
|
|
|
6
6
|
import type { ToolbarItemProps } from '../panels/header/DefaultPanelHeader.js';
|
|
7
7
|
import type { SpectraSelectedMode } from '../reducer/actions/SpectraActions.js';
|
|
8
8
|
|
|
9
|
-
import { useActiveNucleusTab } from './useActiveNucleusTab.
|
|
9
|
+
import { useActiveNucleusTab } from './useActiveNucleusTab.js';
|
|
10
10
|
|
|
11
11
|
interface ToggleSpectraVisibility {
|
|
12
12
|
enableShowAll: boolean;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { ACSExportOptions } from '@zakodium/nmrium-core';
|
|
2
|
+
|
|
3
|
+
import { usePreferences } from '../context/PreferencesContext.tsx';
|
|
4
|
+
|
|
5
|
+
import { useActiveNucleusTab } from './useActiveNucleusTab.ts';
|
|
6
|
+
|
|
7
|
+
const defaultOptions: ACSExportOptions = {
|
|
8
|
+
signalKind: 'signal',
|
|
9
|
+
ascending: true,
|
|
10
|
+
format: 'IMJA',
|
|
11
|
+
couplingFormat: '0.00',
|
|
12
|
+
deltaFormat: '0.00',
|
|
13
|
+
textStyle: {},
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export function useActiveACSSettings() {
|
|
17
|
+
const nucleus = useActiveNucleusTab();
|
|
18
|
+
|
|
19
|
+
return useACSSettings(nucleus);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export function useACSSettings(nucleus: string | undefined) {
|
|
23
|
+
const { current } = usePreferences();
|
|
24
|
+
if (!nucleus) return structuredClone(defaultOptions);
|
|
25
|
+
|
|
26
|
+
return current.acsExportSettings[nucleus] || structuredClone(defaultOptions);
|
|
27
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type { ACSExportOptions, Spectrum } from '@zakodium/nmrium-core';
|
|
2
|
+
import type { RangesToACSOptions } from 'nmr-processing';
|
|
3
|
+
import { rangesToACS } from 'nmr-processing';
|
|
4
|
+
import { assert } from 'react-science/ui';
|
|
5
|
+
|
|
6
|
+
import { isSpectrum1D } from '../../data/data1d/Spectrum1D/index.ts';
|
|
7
|
+
|
|
8
|
+
import useSpectraByActiveNucleus from './useSpectraPerNucleus.ts';
|
|
9
|
+
import { useActiveACSSettings } from './use_acs_settings.ts';
|
|
10
|
+
|
|
11
|
+
export function usePublicationStrings() {
|
|
12
|
+
const spectra = useSpectraByActiveNucleus();
|
|
13
|
+
const acs = useActiveACSSettings();
|
|
14
|
+
|
|
15
|
+
const output: Record<string, string> = {};
|
|
16
|
+
|
|
17
|
+
for (const spectrum of spectra) {
|
|
18
|
+
if (!isSpectrum1D(spectrum)) continue;
|
|
19
|
+
|
|
20
|
+
const { id, ranges } = spectrum;
|
|
21
|
+
|
|
22
|
+
if (!Array.isArray(ranges?.values) || ranges.values.length === 0) {
|
|
23
|
+
continue;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
output[id] = buildPublicationString({ spectrum, acs });
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
return output;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
interface BuildPublicationStringOptions {
|
|
33
|
+
spectrum: Spectrum;
|
|
34
|
+
acs: ACSExportOptions;
|
|
35
|
+
}
|
|
36
|
+
export function buildPublicationString(options: BuildPublicationStringOptions) {
|
|
37
|
+
const { spectrum, acs } = options;
|
|
38
|
+
assert(isSpectrum1D(spectrum));
|
|
39
|
+
|
|
40
|
+
const {
|
|
41
|
+
info,
|
|
42
|
+
ranges: { values },
|
|
43
|
+
} = spectrum;
|
|
44
|
+
const { originFrequency, nucleus } = info;
|
|
45
|
+
const { signalKind, format, couplingFormat, ...otherOptions } = acs;
|
|
46
|
+
|
|
47
|
+
const ranges =
|
|
48
|
+
signalKind === 'all'
|
|
49
|
+
? values
|
|
50
|
+
: values.filter((range) =>
|
|
51
|
+
range.signals?.some((signal) => signal.kind === 'signal'),
|
|
52
|
+
);
|
|
53
|
+
|
|
54
|
+
const rangesToACSOptions: RangesToACSOptions = {
|
|
55
|
+
nucleus,
|
|
56
|
+
observedFrequency: originFrequency,
|
|
57
|
+
...otherOptions,
|
|
58
|
+
format: '',
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
if (format !== 'D') {
|
|
62
|
+
rangesToACSOptions.format = format;
|
|
63
|
+
rangesToACSOptions.couplingFormat = couplingFormat;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
return rangesToACS(ranges, rangesToACSOptions);
|
|
67
|
+
}
|
|
@@ -48,12 +48,10 @@ export function useLoadFiles(onOpenMetaInformation?: (file: File) => void) {
|
|
|
48
48
|
|
|
49
49
|
const loadNmriumArchives = useCallback(
|
|
50
50
|
async (file: File, parsingOptions: Partial<ParsingOptions>) => {
|
|
51
|
-
const
|
|
52
|
-
file.stream(),
|
|
53
|
-
parsingOptions,
|
|
54
|
-
);
|
|
51
|
+
const { state, aggregator, containsNmrium } =
|
|
52
|
+
await core.readNMRiumArchive(file.stream(), parsingOptions);
|
|
55
53
|
|
|
56
|
-
dispatchPayload({ nmriumState, aggregator, containsNmrium
|
|
54
|
+
dispatchPayload({ nmriumState: state, aggregator, containsNmrium });
|
|
57
55
|
},
|
|
58
56
|
[core, dispatchPayload],
|
|
59
57
|
);
|
|
@@ -68,10 +66,9 @@ export function useLoadFiles(onOpenMetaInformation?: (file: File) => void) {
|
|
|
68
66
|
? await parseMetaFile(metaFile)
|
|
69
67
|
: null;
|
|
70
68
|
const {
|
|
71
|
-
nmriumState,
|
|
69
|
+
state: nmriumState,
|
|
72
70
|
containsNmrium,
|
|
73
|
-
|
|
74
|
-
fileCollection: sanitizedCollection,
|
|
71
|
+
aggregator,
|
|
75
72
|
} = await core.read(fileCollection, parsingOptions);
|
|
76
73
|
const resetSourceObject = containsNmrium;
|
|
77
74
|
|
|
@@ -79,8 +76,7 @@ export function useLoadFiles(onOpenMetaInformation?: (file: File) => void) {
|
|
|
79
76
|
nmriumState,
|
|
80
77
|
containsNmrium,
|
|
81
78
|
parseMetaFileResult,
|
|
82
|
-
|
|
83
|
-
selectorRoot,
|
|
79
|
+
aggregator,
|
|
84
80
|
resetSourceObject,
|
|
85
81
|
});
|
|
86
82
|
},
|
|
@@ -38,7 +38,8 @@ type InnerNMRiumProps = Omit<NMRiumProps, 'onError'> & {
|
|
|
38
38
|
|
|
39
39
|
export function InnerNMRium(props: InnerNMRiumProps) {
|
|
40
40
|
const {
|
|
41
|
-
|
|
41
|
+
state,
|
|
42
|
+
aggregator,
|
|
42
43
|
workspace,
|
|
43
44
|
customWorkspaces,
|
|
44
45
|
preferences,
|
|
@@ -110,7 +111,8 @@ export function InnerNMRium(props: InnerNMRiumProps) {
|
|
|
110
111
|
<SortSpectraProvider>
|
|
111
112
|
<NMRiumStateProvider
|
|
112
113
|
onChange={onChange}
|
|
113
|
-
|
|
114
|
+
state={state}
|
|
115
|
+
aggregator={aggregator}
|
|
114
116
|
>
|
|
115
117
|
<TopicMoleculeProvider>
|
|
116
118
|
<DialogProvider>
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type {
|
|
2
2
|
CustomWorkspaces,
|
|
3
3
|
NMRiumCore,
|
|
4
|
+
NmriumState,
|
|
4
5
|
WorkspacePreferences as NMRiumPreferences,
|
|
5
6
|
} from '@zakodium/nmrium-core';
|
|
7
|
+
import type { FileCollection } from 'file-collection';
|
|
6
8
|
import type { ReactElement, ReactNode } from 'react';
|
|
7
9
|
import { forwardRef, memo } from 'react';
|
|
8
10
|
import type { ErrorBoundaryPropsWithComponent } from 'react-error-boundary';
|
|
@@ -12,10 +14,56 @@ import { RootLayout } from 'react-science/ui';
|
|
|
12
14
|
import ErrorOverlay from './ErrorOverlay.js';
|
|
13
15
|
import { InnerNMRium } from './InnerNMRium.js';
|
|
14
16
|
import type { NMRiumRefAPI } from './NMRiumRefAPI.js';
|
|
15
|
-
import type { NMRiumChangeCb,
|
|
17
|
+
import type { NMRiumChangeCb, NMRiumWorkspace } from './types.js';
|
|
16
18
|
|
|
17
19
|
export interface NMRiumProps {
|
|
18
|
-
|
|
20
|
+
/**
|
|
21
|
+
* If you choose to bind the state to the component, you have to use a valid one.
|
|
22
|
+
* - It must have the latest version supported by the core used by the NMRium component.
|
|
23
|
+
* - It must come from a read api of `nmrium-core`.
|
|
24
|
+
* - It will be transmitted as-is to the state reducer of `NMRium` component.
|
|
25
|
+
* - `aggregator` must also be provided.
|
|
26
|
+
*/
|
|
27
|
+
state?: Partial<NmriumState>;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Each of the core read apis returns a file collection.
|
|
31
|
+
* Sometimes with the `fileCollection` name (not in aggregated form), sometimes with `ium` or `aggregator` name (already aggregated).
|
|
32
|
+
* `aggregator` is a meta file collection. Each user source of data is placed in his dedicated uuid folder.
|
|
33
|
+
* In the UI, it means one drag n drop (with possibly multiple files) = one uuid folder.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```ts
|
|
37
|
+
* const {nmriumState, fileCollection, containsNmrium, selectorRoot} = core.read();
|
|
38
|
+
* const aggregator = containsNmrium
|
|
39
|
+
* ? fileCollection
|
|
40
|
+
* : new FileCollection().appendFileCollection(fileCollection, selectorRoot);
|
|
41
|
+
*
|
|
42
|
+
* <NMRium state={nmriumState} aggregator={aggregator} />
|
|
43
|
+
* ```
|
|
44
|
+
*
|
|
45
|
+
* ```ts
|
|
46
|
+
* const [state, ium] = core.readNMRiumArchive();
|
|
47
|
+
*
|
|
48
|
+
* <NMRium state={state} aggregator={ium} />
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* ```ts
|
|
52
|
+
* const [state, aggregator] = core.readNMRiumObject();
|
|
53
|
+
* // const [state, aggregator] = core.readNMRiumFile();
|
|
54
|
+
*
|
|
55
|
+
* <NMRium state={state} aggregator={aggregator} />
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* ```ts
|
|
59
|
+
* const [state, fileCollection, selectorRoot] = core.readFromWebSource();
|
|
60
|
+
* const aggregator = new FileCollection().appendFileCollection(fileCollection, selectorRoot);
|
|
61
|
+
*
|
|
62
|
+
* <NMRium state={state} aggregator={aggregator} />
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
aggregator?: FileCollection;
|
|
66
|
+
|
|
19
67
|
onChange?: NMRiumChangeCb;
|
|
20
68
|
noErrorBoundary?: boolean;
|
|
21
69
|
onError?: ErrorBoundaryPropsWithComponent['onError'];
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import type { ForwardedRef, RefObject } from 'react';
|
|
2
2
|
import { useImperativeHandle } from 'react';
|
|
3
3
|
|
|
4
|
+
import { useCreateNmriumZip } from '../hooks/useCreateNmriumZip.ts';
|
|
5
|
+
import type { SaveIncludeOptions } from '../hooks/useExport.tsx';
|
|
4
6
|
import { useLoadFiles } from '../loader/useLoadFiles.js';
|
|
5
7
|
import type { BlobObject } from '../utility/export.js';
|
|
6
8
|
import { getBlob } from '../utility/export.js';
|
|
7
9
|
|
|
8
10
|
export interface NMRiumRefAPI {
|
|
9
11
|
getSpectraViewerAsBlob: () => BlobObject | null;
|
|
12
|
+
getNMRiumFile: (option: SaveIncludeOptions) => Promise<Blob>;
|
|
10
13
|
loadFiles: (files: File[]) => void;
|
|
11
14
|
}
|
|
12
15
|
|
|
@@ -15,6 +18,8 @@ export function useNMRiumRefAPI(
|
|
|
15
18
|
rootRef: RefObject<HTMLDivElement>,
|
|
16
19
|
) {
|
|
17
20
|
const loadFiles = useLoadFiles();
|
|
21
|
+
const createNmriumZip = useCreateNmriumZip();
|
|
22
|
+
|
|
18
23
|
useImperativeHandle(
|
|
19
24
|
ref,
|
|
20
25
|
() => ({
|
|
@@ -24,7 +29,8 @@ export function useNMRiumRefAPI(
|
|
|
24
29
|
: null;
|
|
25
30
|
},
|
|
26
31
|
loadFiles,
|
|
32
|
+
getNMRiumFile: (options) => createNmriumZip(options),
|
|
27
33
|
}),
|
|
28
|
-
[rootRef,
|
|
34
|
+
[loadFiles, rootRef, createNmriumZip],
|
|
29
35
|
);
|
|
30
36
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { NmriumState } from '@zakodium/nmrium-core';
|
|
2
|
+
import { FileCollection } from 'file-collection';
|
|
2
3
|
import { produce } from 'immer';
|
|
3
4
|
import type { ReactNode } from 'react';
|
|
4
5
|
import { useCallback, useEffect, useMemo, useReducer, useRef } from 'react';
|
|
@@ -17,20 +18,22 @@ import {
|
|
|
17
18
|
spectrumReducer,
|
|
18
19
|
} from '../reducer/Reducer.js';
|
|
19
20
|
|
|
20
|
-
import type { NMRiumChangeCb
|
|
21
|
+
import type { NMRiumChangeCb } from './types.js';
|
|
21
22
|
|
|
22
23
|
interface NMRiumStateProviderProps {
|
|
23
24
|
children: ReactNode;
|
|
24
25
|
onChange: NMRiumChangeCb | undefined;
|
|
25
|
-
|
|
26
|
+
state: Partial<NmriumState> | undefined;
|
|
27
|
+
aggregator: FileCollection | undefined;
|
|
26
28
|
}
|
|
27
29
|
|
|
28
|
-
const defaultData: NMRiumData = {
|
|
29
|
-
spectra: [],
|
|
30
|
-
};
|
|
31
|
-
|
|
32
30
|
export default function NMRiumStateProvider(props: NMRiumStateProviderProps) {
|
|
33
|
-
const {
|
|
31
|
+
const {
|
|
32
|
+
children,
|
|
33
|
+
onChange,
|
|
34
|
+
state: externalState,
|
|
35
|
+
aggregator: externalAggregator,
|
|
36
|
+
} = props;
|
|
34
37
|
|
|
35
38
|
const core = useCore();
|
|
36
39
|
const { logger } = useLogger();
|
|
@@ -110,41 +113,60 @@ export default function NMRiumStateProvider(props: NMRiumStateProviderProps) {
|
|
|
110
113
|
handleChange.current?.(stateRef.current as NmriumState, 'settings');
|
|
111
114
|
}, [preferencesState]);
|
|
112
115
|
|
|
116
|
+
const loggerRef = useRef(logger);
|
|
117
|
+
useEffect(() => void (loggerRef.current = logger));
|
|
113
118
|
useEffect(() => {
|
|
119
|
+
const logger = loggerRef.current;
|
|
120
|
+
|
|
114
121
|
dispatch({
|
|
115
122
|
type: 'SET_LOADING_FLAG',
|
|
116
123
|
payload: { isLoading: true },
|
|
117
124
|
});
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
}
|
|
144
|
-
reportError(error);
|
|
125
|
+
|
|
126
|
+
function loadingEmptyState() {
|
|
127
|
+
dispatch({
|
|
128
|
+
type: 'INITIATE',
|
|
129
|
+
payload: { nmriumState: {}, aggregator: new FileCollection() },
|
|
130
|
+
});
|
|
131
|
+
dispatch({ type: 'SET_LOADING_FLAG', payload: { isLoading: false } });
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
if (externalState && externalAggregator) {
|
|
135
|
+
if (externalState.version !== core.version) {
|
|
136
|
+
logger.warn(
|
|
137
|
+
externalState,
|
|
138
|
+
`The provided state is for a different version of NMRium (${externalState.version}) than the current version (${core.version}). The provided state is ignored.`,
|
|
139
|
+
);
|
|
140
|
+
loadingEmptyState();
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
if (externalState.settings) {
|
|
145
|
+
dispatchPreferences({
|
|
146
|
+
type: 'SET_WORKSPACE',
|
|
147
|
+
payload: {
|
|
148
|
+
data: externalState.settings,
|
|
149
|
+
workspaceSource: 'nmriumFile',
|
|
150
|
+
},
|
|
145
151
|
});
|
|
152
|
+
}
|
|
153
|
+
dispatch({
|
|
154
|
+
type: 'INITIATE',
|
|
155
|
+
payload: { nmriumState: externalState, aggregator: externalAggregator },
|
|
156
|
+
});
|
|
157
|
+
dispatch({ type: 'SET_LOADING_FLAG', payload: { isLoading: false } });
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
if (externalState && !externalAggregator) {
|
|
162
|
+
logger.warn(
|
|
163
|
+
externalState,
|
|
164
|
+
'`aggregator` is mandatory with `state` props. The provided `state` is ignored',
|
|
165
|
+
);
|
|
146
166
|
}
|
|
147
|
-
|
|
167
|
+
|
|
168
|
+
loadingEmptyState();
|
|
169
|
+
}, [dispatch, dispatchPreferences, core, externalState, externalAggregator]);
|
|
148
170
|
const { sortOptions } = useSortSpectra();
|
|
149
171
|
|
|
150
172
|
const spectra = useMemo(() => {
|
|
@@ -10,7 +10,7 @@ import { SVGRootContainer } from '../1d-2d/components/SVGRootContainer.js';
|
|
|
10
10
|
import Viewer2D from '../2d/Viewer2D.js';
|
|
11
11
|
import { useChartData } from '../context/ChartContext.js';
|
|
12
12
|
import { useExportSettings } from '../elements/export/index.js';
|
|
13
|
-
import { usePrintPage } from '../elements/print/
|
|
13
|
+
import { usePrintPage } from '../elements/print/index.js';
|
|
14
14
|
import {
|
|
15
15
|
useCheckExportStatus,
|
|
16
16
|
useViewportSize,
|
|
@@ -34,12 +34,10 @@ export function NMRiumViewerWrapper(props: NMRiumViewerWrapperProps) {
|
|
|
34
34
|
},
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
|
-
function handleToggleSplitPanel(
|
|
37
|
+
function handleToggleSplitPanel() {
|
|
38
38
|
dispatch({
|
|
39
39
|
type: 'TOGGLE_SPLIT_PANEL',
|
|
40
|
-
payload: {
|
|
41
|
-
isOpen,
|
|
42
|
-
},
|
|
40
|
+
payload: {},
|
|
43
41
|
});
|
|
44
42
|
}
|
|
45
43
|
|
|
@@ -64,7 +62,7 @@ export function NMRiumViewerWrapper(props: NMRiumViewerWrapperProps) {
|
|
|
64
62
|
defaultOpen={isOpen}
|
|
65
63
|
closeThreshold={verticalSplitterCloseThreshold}
|
|
66
64
|
onSizeChange={resizeHandler}
|
|
67
|
-
onOpenChange={
|
|
65
|
+
onOpenChange={handleToggleSplitPanel}
|
|
68
66
|
>
|
|
69
67
|
<NMRiumViewer emptyText={emptyText} viewerRef={viewerRef} />
|
|
70
68
|
<Panels />
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Dialog } from '@blueprintjs/core';
|
|
2
1
|
import styled from '@emotion/styled';
|
|
3
2
|
import { FaInfo } from 'react-icons/fa';
|
|
4
3
|
import { Toolbar, useOnOff } from 'react-science/ui';
|
|
5
4
|
|
|
5
|
+
import { StandardDialog } from '../elements/StandardDialog.tsx';
|
|
6
6
|
import { StyledDialogBody } from '../elements/StyledDialogBody.js';
|
|
7
7
|
|
|
8
8
|
const DialogBody = styled(StyledDialogBody)`
|
|
@@ -47,7 +47,7 @@ function AboutPredictionModal() {
|
|
|
47
47
|
onClick={openDialog}
|
|
48
48
|
tooltip="About prediction"
|
|
49
49
|
/>
|
|
50
|
-
<
|
|
50
|
+
<StandardDialog
|
|
51
51
|
isOpen={isOpenDialog}
|
|
52
52
|
onClose={closeDialog}
|
|
53
53
|
title="About prediction"
|
|
@@ -130,7 +130,7 @@ function AboutPredictionModal() {
|
|
|
130
130
|
</li>
|
|
131
131
|
</ul>
|
|
132
132
|
</DialogBody>
|
|
133
|
-
</
|
|
133
|
+
</StandardDialog>
|
|
134
134
|
</>
|
|
135
135
|
);
|
|
136
136
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Dialog } from '@blueprintjs/core';
|
|
2
1
|
import styled from '@emotion/styled';
|
|
3
2
|
import { FaInfo } from 'react-icons/fa';
|
|
4
3
|
import { Toolbar, useOnOff } from 'react-science/ui';
|
|
5
4
|
|
|
5
|
+
import { StandardDialog } from '../elements/StandardDialog.tsx';
|
|
6
6
|
import { StyledDialogBody } from '../elements/StyledDialogBody.js';
|
|
7
7
|
|
|
8
8
|
const DialogBody = styled(StyledDialogBody)`
|
|
@@ -51,7 +51,7 @@ function AboutSpectrumSimulationModal() {
|
|
|
51
51
|
icon={<FaInfo />}
|
|
52
52
|
/>
|
|
53
53
|
</Toolbar>
|
|
54
|
-
<
|
|
54
|
+
<StandardDialog
|
|
55
55
|
isOpen={isOpenDialog}
|
|
56
56
|
onClose={closeDialog}
|
|
57
57
|
title="About spectrum simulation"
|
|
@@ -74,7 +74,7 @@ function AboutSpectrumSimulationModal() {
|
|
|
74
74
|
</li>
|
|
75
75
|
</ul>
|
|
76
76
|
</DialogBody>
|
|
77
|
-
</
|
|
77
|
+
</StandardDialog>
|
|
78
78
|
</>
|
|
79
79
|
);
|
|
80
80
|
}
|