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
|
@@ -51,21 +51,30 @@ function isSeparator(
|
|
|
51
51
|
|
|
52
52
|
type Direction = 'column' | 'row';
|
|
53
53
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
54
|
+
type AnchorTo = 'element' | 'cursor-x' | 'cursor-y' | 'cursor';
|
|
55
|
+
|
|
56
|
+
type AnchorPlacement = 'start' | 'end';
|
|
57
|
+
|
|
58
|
+
interface Position {
|
|
59
|
+
x: number;
|
|
60
|
+
y: number;
|
|
61
|
+
}
|
|
62
|
+
export interface ActionsButtonsPopoverProps
|
|
63
|
+
extends
|
|
64
|
+
Omit<
|
|
65
|
+
PopoverProps,
|
|
66
|
+
'interactionKind' | 'content' | 'modifiers' | 'renderTarget'
|
|
67
|
+
>,
|
|
68
|
+
Partial<Position> {
|
|
58
69
|
buttons: ActionButtonProps[];
|
|
59
70
|
contentStyle?: CSSProperties;
|
|
60
71
|
direction?: Direction;
|
|
61
72
|
space?: number;
|
|
62
73
|
offsetX?: number;
|
|
63
74
|
offsetY?: number;
|
|
64
|
-
|
|
65
|
-
offsetXMode?: 'fixed' | 'cursor';
|
|
66
|
-
x?: number;
|
|
67
|
-
y?: number;
|
|
75
|
+
anchorTo?: AnchorTo;
|
|
68
76
|
autoFlip?: boolean;
|
|
77
|
+
anchorPlacement?: AnchorPlacement;
|
|
69
78
|
}
|
|
70
79
|
|
|
71
80
|
function ActionButton(props: ButtonProps) {
|
|
@@ -90,6 +99,52 @@ function filterButtons(buttons: ActionButtonProps[]) {
|
|
|
90
99
|
return { visibleButtons, disablePopover };
|
|
91
100
|
}
|
|
92
101
|
|
|
102
|
+
interface OffsetOptions {
|
|
103
|
+
offsetX?: number;
|
|
104
|
+
offsetY?: number;
|
|
105
|
+
anchorTo?: AnchorTo;
|
|
106
|
+
cursorPosition: Position;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
function getOffset(options: OffsetOptions): [number, number] {
|
|
110
|
+
const { anchorTo, cursorPosition, offsetX = 0, offsetY = 0 } = options;
|
|
111
|
+
const isTrackX = anchorTo === 'cursor-x' || anchorTo === 'cursor';
|
|
112
|
+
const isTrackY = anchorTo === 'cursor-y' || anchorTo === 'cursor';
|
|
113
|
+
|
|
114
|
+
const x = isTrackX ? cursorPosition.x : 0;
|
|
115
|
+
const y = isTrackY ? cursorPosition.y : 0;
|
|
116
|
+
|
|
117
|
+
if (anchorTo === 'cursor-x') {
|
|
118
|
+
return [x + offsetX, -offsetY];
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
if (anchorTo === 'cursor-y') {
|
|
122
|
+
return [y + offsetY, offsetX];
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
if (anchorTo === 'cursor') {
|
|
126
|
+
return [x + offsetX, -(y + offsetY)];
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
return [offsetX, -offsetY];
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
function getPlacement(
|
|
133
|
+
anchorTo: AnchorTo,
|
|
134
|
+
anchorPlacement: AnchorPlacement,
|
|
135
|
+
): PopoverProps['placement'] {
|
|
136
|
+
switch (anchorTo) {
|
|
137
|
+
case 'cursor-x':
|
|
138
|
+
return `${anchorPlacement === 'start' ? 'top' : 'bottom'}-start`;
|
|
139
|
+
case 'cursor-y':
|
|
140
|
+
return `${anchorPlacement === 'start' ? 'left' : 'right'}-start`;
|
|
141
|
+
case 'cursor':
|
|
142
|
+
return 'top-start';
|
|
143
|
+
default:
|
|
144
|
+
return 'top-start';
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
93
148
|
export function ActionsButtonsPopover(props: ActionsButtonsPopoverProps) {
|
|
94
149
|
const {
|
|
95
150
|
targetTagName = 'div',
|
|
@@ -99,46 +154,48 @@ export function ActionsButtonsPopover(props: ActionsButtonsPopoverProps) {
|
|
|
99
154
|
space,
|
|
100
155
|
direction = 'column',
|
|
101
156
|
contentStyle = {},
|
|
102
|
-
offsetX
|
|
103
|
-
offsetY
|
|
157
|
+
offsetX = 0,
|
|
158
|
+
offsetY = 0,
|
|
104
159
|
x,
|
|
105
160
|
y,
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
autoFlip = true,
|
|
161
|
+
anchorTo = 'element',
|
|
162
|
+
autoFlip = false,
|
|
109
163
|
disabled,
|
|
164
|
+
anchorPlacement = 'end',
|
|
110
165
|
...otherProps
|
|
111
166
|
} = props;
|
|
112
167
|
|
|
113
|
-
const [
|
|
168
|
+
const [cursorPosition, setCursorPosition] = useState<Position>({
|
|
169
|
+
x: 0,
|
|
170
|
+
y: 0,
|
|
171
|
+
});
|
|
114
172
|
const Wrapper = targetTagName as any;
|
|
115
173
|
|
|
116
174
|
const { visibleButtons, disablePopover } = filterButtons(buttons);
|
|
117
175
|
|
|
118
|
-
const offsetY = offsetYMode === 'fixed' ? externalOffsetY : cursor.y;
|
|
119
|
-
const offsetX = offsetXMode === 'fixed' ? externalOffsetX : cursor.x;
|
|
120
|
-
|
|
121
176
|
function handleMouseEnter(event: any) {
|
|
122
177
|
const { clientX, clientY, currentTarget } = event;
|
|
123
178
|
if (!(currentTarget instanceof Element)) return;
|
|
124
179
|
const rect = currentTarget.getBoundingClientRect();
|
|
125
180
|
|
|
126
|
-
|
|
127
|
-
x:
|
|
128
|
-
y:
|
|
129
|
-
})
|
|
181
|
+
setCursorPosition({
|
|
182
|
+
x: clientX - rect.left,
|
|
183
|
+
y: clientY - rect.top,
|
|
184
|
+
});
|
|
130
185
|
}
|
|
131
186
|
|
|
187
|
+
const placement = getPlacement(anchorTo, anchorPlacement);
|
|
188
|
+
const offset = getOffset({ anchorTo, offsetX, offsetY, cursorPosition });
|
|
132
189
|
return (
|
|
133
190
|
<Popover
|
|
134
191
|
minimal
|
|
135
|
-
|
|
192
|
+
placement={placement}
|
|
136
193
|
popoverClassName="actions-buttons-popover"
|
|
137
194
|
interactionKind="hover"
|
|
138
195
|
enforceFocus={false}
|
|
139
196
|
onOpening={handleMouseEnter}
|
|
140
197
|
disabled={disablePopover || disabled}
|
|
141
|
-
renderTarget={({ onMouseEnter, ...otherProps }) => (
|
|
198
|
+
renderTarget={({ onMouseEnter, isOpen, ...otherProps }) => (
|
|
142
199
|
<Wrapper
|
|
143
200
|
{...targetProps}
|
|
144
201
|
{...otherProps}
|
|
@@ -155,8 +212,7 @@ export function ActionsButtonsPopover(props: ActionsButtonsPopoverProps) {
|
|
|
155
212
|
enabled: true,
|
|
156
213
|
data: { x, y },
|
|
157
214
|
options: {
|
|
158
|
-
offset
|
|
159
|
-
direction === 'column' ? [offsetY, offsetX] : [offsetX, offsetY],
|
|
215
|
+
offset,
|
|
160
216
|
},
|
|
161
217
|
},
|
|
162
218
|
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import type { ButtonProps } from '@blueprintjs/core';
|
|
2
|
-
import { Button,
|
|
2
|
+
import { Button, DialogBody, DialogFooter } from '@blueprintjs/core';
|
|
3
3
|
import styled from '@emotion/styled';
|
|
4
4
|
import type { ReactNode } from 'react';
|
|
5
5
|
import { createContext, useContext, useMemo, useState } from 'react';
|
|
6
6
|
|
|
7
|
+
import { StandardDialog } from './StandardDialog.tsx';
|
|
8
|
+
|
|
7
9
|
const Message = styled.p`
|
|
8
10
|
color: #af0000;
|
|
9
11
|
font-size: 14px;
|
|
@@ -39,7 +41,7 @@ const Body = styled(DialogBody)`
|
|
|
39
41
|
}
|
|
40
42
|
`;
|
|
41
43
|
|
|
42
|
-
const Alert = styled(
|
|
44
|
+
const Alert = styled(StandardDialog)`
|
|
43
45
|
border-top: 10px solid rgb(237 0 0);
|
|
44
46
|
`;
|
|
45
47
|
|
|
@@ -51,8 +51,8 @@ interface HeaderElement {
|
|
|
51
51
|
|
|
52
52
|
interface DraggableDialogProps
|
|
53
53
|
extends
|
|
54
|
-
Omit<DialogProps, 'hasBackdrop'>,
|
|
55
|
-
Pick<OverlayProps, 'hasBackdrop'>,
|
|
54
|
+
Omit<DialogProps, 'hasBackdrop' | 'isOpen'>,
|
|
55
|
+
Pick<OverlayProps, 'hasBackdrop' | 'isOpen'>,
|
|
56
56
|
HeaderElement {
|
|
57
57
|
placement?: DialogPlacement;
|
|
58
58
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { DialogProps } from '@blueprintjs/core';
|
|
2
|
+
import { Dialog } from '@blueprintjs/core';
|
|
3
|
+
|
|
4
|
+
export function StandardDialog(options: DialogProps) {
|
|
5
|
+
const { children, ...otherProps } = options;
|
|
6
|
+
return (
|
|
7
|
+
<Dialog canOutsideClickClose={false} {...otherProps}>
|
|
8
|
+
{children}
|
|
9
|
+
</Dialog>
|
|
10
|
+
);
|
|
11
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { MenuItemProps } from '@blueprintjs/core';
|
|
2
|
-
import { Menu, MenuItem, Tooltip } from '@blueprintjs/core';
|
|
1
|
+
import type { MenuDividerProps, MenuItemProps } from '@blueprintjs/core';
|
|
2
|
+
import { Menu, MenuDivider, MenuItem, Tooltip } from '@blueprintjs/core';
|
|
3
3
|
import type {
|
|
4
4
|
ToolbarItemProps,
|
|
5
5
|
ToolbarPopoverItemProps,
|
|
@@ -9,10 +9,16 @@ import { Toolbar, TooltipHelpContent } from 'react-science/ui';
|
|
|
9
9
|
|
|
10
10
|
export interface ToolbarPopoverMenuItem<T = object>
|
|
11
11
|
extends MenuItemProps, Pick<ToolbarItemProps, 'tooltipProps'> {
|
|
12
|
+
menuItemType?: 'item';
|
|
12
13
|
data?: T;
|
|
13
14
|
tooltip?: string | TooltipItem;
|
|
14
15
|
}
|
|
15
16
|
|
|
17
|
+
export interface ToolbarPopoverMenuDivider extends MenuDividerProps {
|
|
18
|
+
menuItemType: 'divider';
|
|
19
|
+
key: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
16
22
|
interface CustomToolbarPopoverItemProps<T = object>
|
|
17
23
|
extends
|
|
18
24
|
Omit<ToolbarPopoverItemProps, 'onClick' | 'content' | 'itemProps'>,
|
|
@@ -21,7 +27,7 @@ interface CustomToolbarPopoverItemProps<T = object>
|
|
|
21
27
|
'tooltip' | 'icon' | 'tooltipProps' | 'active' | 'id'
|
|
22
28
|
> {
|
|
23
29
|
itemProps?: Omit<ToolbarItemProps, 'onClick' | 'disabled'>;
|
|
24
|
-
options: Array<ToolbarPopoverMenuItem<T
|
|
30
|
+
options: Array<ToolbarPopoverMenuItem<T> | ToolbarPopoverMenuDivider>;
|
|
25
31
|
onClick?: (data?: T) => void;
|
|
26
32
|
}
|
|
27
33
|
|
|
@@ -49,12 +55,19 @@ export function ToolbarPopoverItem<T = object>(
|
|
|
49
55
|
content={
|
|
50
56
|
<Menu>
|
|
51
57
|
{options.map((option) => {
|
|
58
|
+
if (option.menuItemType === 'divider') {
|
|
59
|
+
const { menuItemType, key, children, ...dividerProps } = option;
|
|
60
|
+
|
|
61
|
+
return <MenuDivider key={key} {...dividerProps} />;
|
|
62
|
+
}
|
|
63
|
+
|
|
52
64
|
const {
|
|
53
65
|
data,
|
|
54
66
|
text,
|
|
55
67
|
tooltip = '',
|
|
56
68
|
tooltipProps,
|
|
57
69
|
disabled,
|
|
70
|
+
menuItemType,
|
|
58
71
|
...otherOptions
|
|
59
72
|
} = option;
|
|
60
73
|
return (
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
|
|
11
11
|
import { useChartData } from '../../context/ChartContext.js';
|
|
12
12
|
import { usePreferences } from '../../context/PreferencesContext.js';
|
|
13
|
-
import { useToaster } from '../../context/ToasterContext.
|
|
13
|
+
import { useToaster } from '../../context/ToasterContext.js';
|
|
14
14
|
import { useExportViewPort } from '../../hooks/useExport.js';
|
|
15
15
|
import { useWorkspaceExportSettings } from '../../hooks/useWorkspaceExportSettings.js';
|
|
16
16
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Button,
|
|
3
|
-
Dialog,
|
|
4
3
|
DialogFooter,
|
|
5
4
|
Radio,
|
|
6
5
|
RadioGroup,
|
|
@@ -22,6 +21,7 @@ import type { LabelStyle } from '../Label.js';
|
|
|
22
21
|
import Label from '../Label.js';
|
|
23
22
|
import { NumberInput2Controller } from '../NumberInput2Controller.js';
|
|
24
23
|
import { Select2Controller } from '../Select2Controller.js';
|
|
24
|
+
import { StandardDialog } from '../StandardDialog.tsx';
|
|
25
25
|
import { StyledDialogBody } from '../StyledDialogBody.js';
|
|
26
26
|
import type { SizeItem } from '../print/pageSize.js';
|
|
27
27
|
import { getSizesList } from '../print/pageSize.js';
|
|
@@ -150,7 +150,7 @@ function InnerExportOptionsModal(props: InnerExportOptionsModalProps) {
|
|
|
150
150
|
}, [handleSubmit, mode, onExportOptionsChange, setFocus]);
|
|
151
151
|
|
|
152
152
|
return (
|
|
153
|
-
<
|
|
153
|
+
<StandardDialog
|
|
154
154
|
isOpen
|
|
155
155
|
title="Export options"
|
|
156
156
|
onClose={onCloseDialog}
|
|
@@ -317,6 +317,6 @@ function InnerExportOptionsModal(props: InnerExportOptionsModalProps) {
|
|
|
317
317
|
/>
|
|
318
318
|
</div>
|
|
319
319
|
</DialogFooter>
|
|
320
|
-
</
|
|
320
|
+
</StandardDialog>
|
|
321
321
|
);
|
|
322
322
|
}
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Dialog,
|
|
3
|
-
DialogFooter,
|
|
4
|
-
Radio,
|
|
5
|
-
RadioGroup,
|
|
6
|
-
Tag,
|
|
7
|
-
} from '@blueprintjs/core';
|
|
1
|
+
import { DialogFooter, Radio, RadioGroup, Tag } from '@blueprintjs/core';
|
|
8
2
|
import type { PageSizeName, PrintPageOptions } from '@zakodium/nmrium-core';
|
|
9
3
|
import type { CSSProperties, ReactNode } from 'react';
|
|
10
4
|
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
@@ -16,6 +10,7 @@ import type { LabelStyle } from '../Label.js';
|
|
|
16
10
|
import Label from '../Label.js';
|
|
17
11
|
import { NumberInput2Controller } from '../NumberInput2Controller.js';
|
|
18
12
|
import { Select2Controller } from '../Select2Controller.js';
|
|
13
|
+
import { StandardDialog } from '../StandardDialog.tsx';
|
|
19
14
|
import { StyledDialogBody } from '../StyledDialogBody.js';
|
|
20
15
|
|
|
21
16
|
import { PrintProvider } from './PrintProvider.js';
|
|
@@ -342,7 +337,7 @@ function InnerPrintOptionsModal(props: InnerPrintOptionsModalProps) {
|
|
|
342
337
|
const layout = watch('layout');
|
|
343
338
|
const sizesList = getSizesList(layout);
|
|
344
339
|
return (
|
|
345
|
-
<
|
|
340
|
+
<StandardDialog
|
|
346
341
|
isOpen
|
|
347
342
|
title="Print options"
|
|
348
343
|
onClose={onCloseDialog}
|
|
@@ -387,6 +382,6 @@ function InnerPrintOptionsModal(props: InnerPrintOptionsModalProps) {
|
|
|
387
382
|
onCancel={() => onCloseDialog?.()}
|
|
388
383
|
/>
|
|
389
384
|
</DialogFooter>
|
|
390
|
-
</
|
|
385
|
+
</StandardDialog>
|
|
391
386
|
);
|
|
392
387
|
}
|
|
@@ -25,8 +25,8 @@ import { useSaveSettings } from '../hooks/useSaveSettings.js';
|
|
|
25
25
|
import { useWorkspaceAction } from '../hooks/useWorkspaceAction.js';
|
|
26
26
|
import { LogsHistoryModal } from '../modal/LogsHistoryModal.js';
|
|
27
27
|
import AboutUsModal from '../modal/aboutUs/AboutUsModal.js';
|
|
28
|
-
import GeneralSettingsModal from '../modal/setting/GeneralSettings.js';
|
|
29
28
|
import WorkspaceItem from '../modal/setting/WorkspaceItem.js';
|
|
29
|
+
import GeneralSettingsModal from '../modal/setting/general_settings.js';
|
|
30
30
|
import { options } from '../toolbar/ToolTypes.js';
|
|
31
31
|
import { renderCoreSlot } from '../utility/renderCoreSlot.js';
|
|
32
32
|
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import type { NmrData2DContent } from 'cheminfo-types';
|
|
2
|
+
|
|
3
|
+
import type { Reduce2DSpectrumOptions } from './use2DReducer.tsx';
|
|
4
|
+
|
|
5
|
+
export function reduce2DSpectrum(
|
|
6
|
+
data: NmrData2DContent,
|
|
7
|
+
options: Reduce2DSpectrumOptions = {},
|
|
8
|
+
) {
|
|
9
|
+
const {
|
|
10
|
+
minY: originalMinY,
|
|
11
|
+
minX: originalMinX,
|
|
12
|
+
maxY: originalMaxY,
|
|
13
|
+
maxX: originalMaxX,
|
|
14
|
+
z,
|
|
15
|
+
} = data;
|
|
16
|
+
const {
|
|
17
|
+
numberOfPoints = 512,
|
|
18
|
+
fromX = originalMinX,
|
|
19
|
+
fromY = originalMinY,
|
|
20
|
+
toX = originalMaxX,
|
|
21
|
+
toY = originalMaxY,
|
|
22
|
+
} = options;
|
|
23
|
+
const nbPointsY = z.length;
|
|
24
|
+
const nbPointsX = z[0]?.length || 0;
|
|
25
|
+
|
|
26
|
+
if (nbPointsX <= numberOfPoints && nbPointsY <= numberOfPoints) {
|
|
27
|
+
return data;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// need to find the indices in X and Y taking care that we are not out of bounds
|
|
31
|
+
const deltaX = (originalMaxX - originalMinX) / (nbPointsX - 1);
|
|
32
|
+
const deltaY = (originalMaxY - originalMinY) / (nbPointsY - 1);
|
|
33
|
+
|
|
34
|
+
const indexFromX = Math.max(0, Math.floor((fromX - originalMinX) / deltaX));
|
|
35
|
+
const indexToX = Math.min(
|
|
36
|
+
nbPointsX - 1,
|
|
37
|
+
Math.ceil((toX - originalMinX) / deltaX),
|
|
38
|
+
);
|
|
39
|
+
const indexFromY = Math.max(0, Math.floor((fromY - originalMinY) / deltaY));
|
|
40
|
+
const indexToY = Math.min(
|
|
41
|
+
nbPointsY - 1,
|
|
42
|
+
Math.ceil((toY - originalMinY) / deltaY),
|
|
43
|
+
);
|
|
44
|
+
|
|
45
|
+
const sourceNbPointsX = indexToX - indexFromX + 1;
|
|
46
|
+
const sourceNbPointsY = indexToY - indexFromY + 1;
|
|
47
|
+
const newNbPointsX = Math.min(sourceNbPointsX, numberOfPoints);
|
|
48
|
+
const newNbPointsY = Math.min(sourceNbPointsY, numberOfPoints);
|
|
49
|
+
|
|
50
|
+
// create the result object and fill with typed arrays
|
|
51
|
+
const reducedMatrix = [];
|
|
52
|
+
for (let i = 0; i < newNbPointsY; i++) {
|
|
53
|
+
reducedMatrix.push(new Float64Array(newNbPointsX));
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// Fill the reducedMatrix by aggregating the original values in each rectangle.
|
|
57
|
+
// If the sum of values in the rectangle is positive, take the max; otherwise take the min.
|
|
58
|
+
|
|
59
|
+
for (let newRow = 0; newRow < newNbPointsY; newRow++) {
|
|
60
|
+
const srcRowStart =
|
|
61
|
+
indexFromY + Math.floor((newRow * sourceNbPointsY) / newNbPointsY);
|
|
62
|
+
const srcRowEnd =
|
|
63
|
+
indexFromY + Math.floor(((newRow + 1) * sourceNbPointsY) / newNbPointsY);
|
|
64
|
+
|
|
65
|
+
for (let newCol = 0; newCol < newNbPointsX; newCol++) {
|
|
66
|
+
const srcColStart =
|
|
67
|
+
indexFromX + Math.floor((newCol * sourceNbPointsX) / newNbPointsX);
|
|
68
|
+
const srcColEnd =
|
|
69
|
+
indexFromX +
|
|
70
|
+
Math.floor(((newCol + 1) * sourceNbPointsX) / newNbPointsX);
|
|
71
|
+
|
|
72
|
+
let sum = 0;
|
|
73
|
+
let min = Number.POSITIVE_INFINITY;
|
|
74
|
+
let max = Number.NEGATIVE_INFINITY;
|
|
75
|
+
|
|
76
|
+
for (let row = srcRowStart; row < srcRowEnd; row++) {
|
|
77
|
+
const rowData = z[row];
|
|
78
|
+
for (let col = srcColStart; col < srcColEnd; col++) {
|
|
79
|
+
const value = rowData[col];
|
|
80
|
+
sum += value;
|
|
81
|
+
if (value < min) min = value;
|
|
82
|
+
if (value > max) max = value;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
reducedMatrix[newRow][newCol] = sum >= 0 ? max : min;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
return {
|
|
91
|
+
...data,
|
|
92
|
+
minX: originalMinX + indexFromX * deltaX,
|
|
93
|
+
maxX: originalMinX + indexToX * deltaX,
|
|
94
|
+
minY: originalMinY + indexFromY * deltaY,
|
|
95
|
+
maxY: originalMinY + indexToY * deltaY,
|
|
96
|
+
z: reducedMatrix,
|
|
97
|
+
};
|
|
98
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { Spectrum2D } from '@zakodium/nmrium-core';
|
|
2
|
+
import type { NmrData2DContent, NmrData2DFt } from 'cheminfo-types';
|
|
3
|
+
import { useMemo } from 'react';
|
|
4
|
+
|
|
5
|
+
import { isFt2DSpectrum } from '../../data/data2d/Spectrum2D/isSpectrum2D.ts';
|
|
6
|
+
import { useChartData } from '../context/ChartContext.tsx';
|
|
7
|
+
import { getSpectraByNucleus } from '../utility/getSpectraByNucleus.ts';
|
|
8
|
+
|
|
9
|
+
import { reduce2DSpectrum } from './reduce2DSpectrum.ts';
|
|
10
|
+
|
|
11
|
+
export interface SpectrumFTData extends Pick<Spectrum2D, 'display' | 'id'> {
|
|
12
|
+
data: NmrData2DContent;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export function use2DReducer(): SpectrumFTData[] {
|
|
16
|
+
const {
|
|
17
|
+
xDomain,
|
|
18
|
+
yDomain,
|
|
19
|
+
view: {
|
|
20
|
+
spectra: { activeTab },
|
|
21
|
+
},
|
|
22
|
+
data,
|
|
23
|
+
} = useChartData();
|
|
24
|
+
const [fromX, toX] = xDomain;
|
|
25
|
+
const [fromY, toY] = yDomain;
|
|
26
|
+
|
|
27
|
+
return useMemo(() => {
|
|
28
|
+
const outputSpectra: SpectrumFTData[] = [];
|
|
29
|
+
for (const spectrum of getSpectraByNucleus(activeTab, data).filter(
|
|
30
|
+
isFt2DSpectrum,
|
|
31
|
+
)) {
|
|
32
|
+
const { id, display, data } = spectrum;
|
|
33
|
+
const { rr } = data as NmrData2DFt;
|
|
34
|
+
const reducedData = reduce2DSpectrum(rr, {
|
|
35
|
+
fromX,
|
|
36
|
+
fromY,
|
|
37
|
+
toX,
|
|
38
|
+
toY,
|
|
39
|
+
});
|
|
40
|
+
outputSpectra.push({
|
|
41
|
+
data: reducedData,
|
|
42
|
+
id,
|
|
43
|
+
display,
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
return outputSpectra;
|
|
47
|
+
}, [activeTab, data, fromX, fromY, toX, toY]);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface Reduce2DSpectrumOptions {
|
|
51
|
+
numberOfPoints?: number;
|
|
52
|
+
fromX?: number;
|
|
53
|
+
toX?: number;
|
|
54
|
+
fromY?: number;
|
|
55
|
+
toY?: number;
|
|
56
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { RangesViewState } from '@zakodium/nmrium-core';
|
|
2
2
|
|
|
3
|
-
import { isProton } from '../../data/utilities/isProton.
|
|
3
|
+
import { isProton } from '../../data/utilities/isProton.js';
|
|
4
4
|
import { useInsetOptions } from '../1d/inset/InsetProvider.js';
|
|
5
5
|
import { useChartData } from '../context/ChartContext.js';
|
|
6
6
|
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { NmriumState } from '@zakodium/nmrium-core';
|
|
2
|
+
import { useCallback } from 'react';
|
|
3
|
+
|
|
4
|
+
import { toJSON } from '../../data/SpectraManager.ts';
|
|
5
|
+
import { useChartData } from '../context/ChartContext.tsx';
|
|
6
|
+
import { useCore } from '../context/CoreContext.tsx';
|
|
7
|
+
import { usePreferences } from '../context/PreferencesContext.tsx';
|
|
8
|
+
|
|
9
|
+
import type { SaveIncludeOptions } from './useExport.tsx';
|
|
10
|
+
|
|
11
|
+
export function useCreateNmriumZip() {
|
|
12
|
+
const state = useChartData();
|
|
13
|
+
const preferencesState = usePreferences();
|
|
14
|
+
const core = useCore();
|
|
15
|
+
|
|
16
|
+
return useCallback(
|
|
17
|
+
async (include: SaveIncludeOptions): Promise<Blob> => {
|
|
18
|
+
const nmriumState = toJSON(core, state, preferencesState, {
|
|
19
|
+
serialize: false,
|
|
20
|
+
exportTarget: 'nmrium',
|
|
21
|
+
}) as NmriumState;
|
|
22
|
+
const archive = await core.serializeNmriumArchive({
|
|
23
|
+
state: nmriumState,
|
|
24
|
+
aggregator: state.aggregator,
|
|
25
|
+
includeData: include.dataType !== 'NO_DATA',
|
|
26
|
+
externalData:
|
|
27
|
+
include.dataType === 'SELF_CONTAINED' ? 'embedded' : 'linked',
|
|
28
|
+
includeSettings: include.settings,
|
|
29
|
+
includeView: include.view,
|
|
30
|
+
});
|
|
31
|
+
return new Blob([archive], {
|
|
32
|
+
type: 'chemical/x-nmrium+zip',
|
|
33
|
+
});
|
|
34
|
+
},
|
|
35
|
+
[core, preferencesState, state],
|
|
36
|
+
);
|
|
37
|
+
}
|
|
@@ -42,7 +42,7 @@ export default function useDatumWithSpectraStatistics(): SpectrumWithStatisticsP
|
|
|
42
42
|
if (isFt) {
|
|
43
43
|
ftCounter++;
|
|
44
44
|
}
|
|
45
|
-
if (
|
|
45
|
+
if (dataInfo.id === activeSpectrum?.id) {
|
|
46
46
|
info = dataInfo.info;
|
|
47
47
|
datum = dataInfo.data;
|
|
48
48
|
}
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import type { NmriumState } from '@zakodium/nmrium-core';
|
|
2
1
|
import { useCallback } from 'react';
|
|
3
2
|
|
|
4
|
-
import { toJSON } from '../../data/SpectraManager.js';
|
|
5
3
|
import { useChartData } from '../context/ChartContext.js';
|
|
6
|
-
import { useCore } from '../context/CoreContext.js';
|
|
7
|
-
import { usePreferences } from '../context/PreferencesContext.js';
|
|
8
4
|
import { useToaster } from '../context/ToasterContext.js';
|
|
9
5
|
import {
|
|
10
6
|
browserNotSupportedErrorToast,
|
|
@@ -12,25 +8,29 @@ import {
|
|
|
12
8
|
exportAsPng,
|
|
13
9
|
exportAsSVG,
|
|
14
10
|
} from '../utility/export.js';
|
|
15
|
-
import { saveAs } from '../utility/save_as.
|
|
11
|
+
import { saveAs } from '../utility/save_as.js';
|
|
16
12
|
|
|
13
|
+
import { useCreateNmriumZip } from './useCreateNmriumZip.ts';
|
|
14
|
+
|
|
15
|
+
type DataType =
|
|
16
|
+
| 'NO_DATA'
|
|
17
|
+
| 'SELF_CONTAINED'
|
|
18
|
+
| 'SELF_CONTAINED_EXTERNAL_DATASOURCE';
|
|
19
|
+
|
|
20
|
+
export interface SaveIncludeOptions {
|
|
21
|
+
settings: boolean;
|
|
22
|
+
view: boolean;
|
|
23
|
+
dataType: DataType;
|
|
24
|
+
}
|
|
17
25
|
export interface SaveOptions {
|
|
18
|
-
include:
|
|
19
|
-
settings: boolean;
|
|
20
|
-
view: boolean;
|
|
21
|
-
dataType:
|
|
22
|
-
| 'NO_DATA'
|
|
23
|
-
| 'SELF_CONTAINED'
|
|
24
|
-
| 'SELF_CONTAINED_EXTERNAL_DATASOURCE';
|
|
25
|
-
};
|
|
26
|
+
include: SaveIncludeOptions;
|
|
26
27
|
name: string;
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
export function useExport() {
|
|
30
31
|
const toaster = useToaster();
|
|
31
32
|
const state = useChartData();
|
|
32
|
-
const
|
|
33
|
-
const core = useCore();
|
|
33
|
+
const createNmriumZip = useCreateNmriumZip();
|
|
34
34
|
|
|
35
35
|
const saveHandler = useCallback(
|
|
36
36
|
(options: SaveOptions) => {
|
|
@@ -43,22 +43,7 @@ export function useExport() {
|
|
|
43
43
|
});
|
|
44
44
|
setTimeout(async () => {
|
|
45
45
|
try {
|
|
46
|
-
const
|
|
47
|
-
serialize: false,
|
|
48
|
-
exportTarget: 'nmrium',
|
|
49
|
-
}) as NmriumState;
|
|
50
|
-
const archive = await core.serializeNmriumArchive({
|
|
51
|
-
state: nmriumState,
|
|
52
|
-
aggregator: state.aggregator,
|
|
53
|
-
includeData: include.dataType !== 'NO_DATA',
|
|
54
|
-
externalData:
|
|
55
|
-
include.dataType === 'SELF_CONTAINED' ? 'embedded' : 'linked',
|
|
56
|
-
includeSettings: include.settings,
|
|
57
|
-
includeView: include.view,
|
|
58
|
-
});
|
|
59
|
-
const zipBlob = new Blob([archive], {
|
|
60
|
-
type: 'chemical/x-nmrium+zip',
|
|
61
|
-
});
|
|
46
|
+
const zipBlob = await createNmriumZip(include);
|
|
62
47
|
saveAs({ blob: zipBlob, name, extension: '.nmrium.zip' });
|
|
63
48
|
} catch (error) {
|
|
64
49
|
toaster.show({
|
|
@@ -74,7 +59,7 @@ export function useExport() {
|
|
|
74
59
|
|
|
75
60
|
void handler();
|
|
76
61
|
},
|
|
77
|
-
[
|
|
62
|
+
[createNmriumZip, toaster],
|
|
78
63
|
);
|
|
79
64
|
|
|
80
65
|
const defaultName = state.data[0]?.info?.name || 'experiment';
|