nmrium 1.10.1 → 1.12.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/BrushTracker1D.d.ts.map +1 -1
- package/lib/component/1d/BrushTracker1D.js +7 -0
- package/lib/component/1d/BrushTracker1D.js.map +1 -1
- 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 +3 -3
- 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/inset/DraggableInset.d.ts.map +1 -1
- package/lib/component/1d/inset/DraggableInset.js +4 -4
- 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 +14 -5
- 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 +2 -2
- 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/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 +9 -3
- 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/NextPrev.d.ts.map +1 -1
- package/lib/component/elements/NextPrev.js +23 -4
- package/lib/component/elements/NextPrev.js.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/export/utilities/exportOptionValidationSchema.d.ts +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/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/useDatumWithSpectraStatistics.js +1 -1
- package/lib/component/hooks/useDatumWithSpectraStatistics.js.map +1 -1
- package/lib/component/hooks/useExport.d.ts +7 -7
- package/lib/component/hooks/useExport.d.ts.map +1 -1
- package/lib/component/hooks/useExport.js +23 -43
- 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.d.ts.map +1 -1
- package/lib/component/hooks/useSetActiveSpectrumAction.js +3 -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 +81 -86
- package/lib/component/loader/useLoadFiles.js.map +1 -1
- package/lib/component/main/ErrorOverlay.d.ts.map +1 -1
- package/lib/component/main/ErrorOverlay.js +6 -1
- package/lib/component/main/ErrorOverlay.js.map +1 -1
- package/lib/component/main/InnerNMRiumContents.d.ts.map +1 -1
- package/lib/component/main/InnerNMRiumContents.js +1 -2
- package/lib/component/main/InnerNMRiumContents.js.map +1 -1
- package/lib/component/main/NMRiumViewer.js +2 -2
- 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 +9 -3
- 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 +3 -2
- 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 +6 -0
- package/lib/component/modal/MoleculeAutoLabelsDatabaseModal.d.ts.map +1 -0
- package/lib/component/modal/MoleculeAutoLabelsDatabaseModal.js +128 -0
- package/lib/component/modal/MoleculeAutoLabelsDatabaseModal.js.map +1 -0
- 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 +6 -9
- 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/changeSum/SelectMolecule.js +4 -1
- package/lib/component/modal/changeSum/SelectMolecule.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} +11 -5
- 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 +8 -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 +65 -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 +624 -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 +42 -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 +624 -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 +7 -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 +50 -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 +7 -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 +105 -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/tabs/export_tab.d.ts +622 -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 +123 -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/general_tab.d.ts +622 -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 +622 -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 +622 -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 +123 -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 +622 -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/utils/checkUniqueByKey.d.ts +10 -0
- package/lib/component/modal/setting/tanstack_general_settings/utils/checkUniqueByKey.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/utils/checkUniqueByKey.js +40 -0
- package/lib/component/modal/setting/tanstack_general_settings/utils/checkUniqueByKey.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/general_tab_validation.d.ts +40 -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 +37 -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 +9 -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 +18 -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 +167 -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 +69 -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.d.ts +342 -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 +51 -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 +75 -20
- 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.js +4 -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 +0 -9
- package/lib/component/panels/Panels.d.ts.map +1 -1
- package/lib/component/panels/Panels.js +13 -54
- 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/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.js +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 +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/hooks/useTogglePanel.d.ts.map +1 -1
- package/lib/component/panels/hooks/useTogglePanel.js +4 -3
- package/lib/component/panels/hooks/useTogglePanel.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/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/InsetActions.js +2 -2
- package/lib/component/reducer/actions/LoadAction.d.ts.map +1 -1
- package/lib/component/reducer/actions/LoadAction.js +8 -2
- package/lib/component/reducer/actions/LoadAction.js.map +1 -1
- package/lib/component/reducer/actions/MoleculeActions.d.ts +23 -1
- package/lib/component/reducer/actions/MoleculeActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/MoleculeActions.js +5 -5
- 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 +2 -2
- package/lib/component/reducer/actions/RangesActions.js.map +1 -1
- package/lib/component/reducer/actions/SpectraActions.d.ts +2 -1
- package/lib/component/reducer/actions/SpectraActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/SpectraActions.js +3 -3
- package/lib/component/reducer/actions/SpectraActions.js.map +1 -1
- package/lib/component/reducer/actions/ToolsActions.js +2 -2
- 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/analyzeSpectra.d.ts +2 -1
- package/lib/component/reducer/preferences/actions/analyzeSpectra.d.ts.map +1 -1
- package/lib/component/reducer/preferences/actions/analyzeSpectra.js +10 -0
- package/lib/component/reducer/preferences/actions/analyzeSpectra.js.map +1 -1
- package/lib/component/reducer/preferences/actions/toggleOpenSplitPanel.d.ts +4 -0
- package/lib/component/reducer/preferences/actions/toggleOpenSplitPanel.d.ts.map +1 -0
- package/lib/component/reducer/preferences/actions/toggleOpenSplitPanel.js +9 -0
- package/lib/component/reducer/preferences/actions/toggleOpenSplitPanel.js.map +1 -0
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js +1 -1
- package/lib/component/reducer/preferences/preferencesReducer.d.ts +8 -1
- package/lib/component/reducer/preferences/preferencesReducer.d.ts.map +1 -1
- package/lib/component/reducer/preferences/preferencesReducer.js +8 -3
- package/lib/component/reducer/preferences/preferencesReducer.js.map +1 -1
- package/lib/component/toolbar/ToolBar.d.ts.map +1 -1
- package/lib/component/toolbar/ToolBar.js +11 -8
- package/lib/component/toolbar/ToolBar.js.map +1 -1
- package/lib/component/toolbar/toolbarMenu.d.ts +5 -1
- package/lib/component/toolbar/toolbarMenu.d.ts.map +1 -1
- package/lib/component/toolbar/toolbarMenu.js +1 -1
- package/lib/component/toolbar/toolbarMenu.js.map +1 -1
- package/lib/component/utility/export.d.ts +2 -1
- package/lib/component/utility/export.d.ts.map +1 -1
- package/lib/component/utility/export.js +6 -2
- package/lib/component/utility/export.js.map +1 -1
- package/lib/component/workspaces/workspaceDefaultProperties.d.ts.map +1 -1
- package/lib/component/workspaces/workspaceDefaultProperties.js +3 -0
- package/lib/component/workspaces/workspaceDefaultProperties.js.map +1 -1
- package/lib/data/PredictionManager.js +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/data1d/multipleSpectraAnalysis.d.ts +1 -0
- package/lib/data/data1d/multipleSpectraAnalysis.d.ts.map +1 -1
- package/lib/data/data1d/multipleSpectraAnalysis.js +14 -0
- package/lib/data/data1d/multipleSpectraAnalysis.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/contours.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/contours.js +13 -6
- package/lib/data/data2d/Spectrum2D/contours.js.map +1 -1
- package/lib/data/molecules/MoleculeManager.d.ts +6 -1
- package/lib/data/molecules/MoleculeManager.d.ts.map +1 -1
- package/lib/data/molecules/MoleculeManager.js +3 -2
- 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.js +1 -1
- package/package.json +45 -45
- package/src/component/1d/BrushTracker1D.tsx +8 -0
- package/src/component/1d/FloatPublicationString.tsx +275 -177
- package/src/component/1d/FloatingRanges.tsx +1 -3
- package/src/component/1d/SVGContent1D.tsx +1 -1
- package/src/component/1d/inset/DraggableInset.tsx +2 -4
- 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 +14 -6
- package/src/component/1d-2d/components/SpectrumInfoBlock.tsx +1 -2
- 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/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 +9 -3
- package/src/component/context/LoggerContext.tsx +9 -0
- package/src/component/context/PreferencesContext.tsx +1 -1
- package/src/component/elements/ActionsButtonsPopover.tsx +80 -24
- package/src/component/elements/Alert.tsx +4 -2
- package/src/component/elements/DraggableDialog.tsx +2 -2
- package/src/component/elements/NextPrev.tsx +28 -4
- 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/useActiveNucleusTab.ts +1 -1
- package/src/component/hooks/useActiveSpectrumRangesViewState.ts +1 -1
- package/src/component/hooks/useDatumWithSpectraStatistics.ts +1 -1
- package/src/component/hooks/useExport.tsx +36 -66
- package/src/component/hooks/useSVGUnitConverter.ts +13 -9
- package/src/component/hooks/useSaveSettings.tsx +4 -3
- package/src/component/hooks/useSetActiveSpectrumAction.ts +3 -2
- 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 +134 -111
- package/src/component/main/ErrorOverlay.tsx +11 -2
- package/src/component/main/InnerNMRiumContents.tsx +6 -9
- package/src/component/main/NMRiumViewer.tsx +3 -3
- package/src/component/main/NMRiumViewerWrapper.tsx +12 -6
- 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 +4 -3
- package/src/component/modal/LogsHistoryModal.tsx +4 -3
- package/src/component/modal/MoleculeAutoLabelsDatabaseModal.tsx +220 -0
- 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 +18 -50
- package/src/component/modal/aboutUs/AboutUsModal.tsx +3 -3
- package/src/component/modal/changeSum/ChangeSumModal.tsx +5 -4
- package/src/component/modal/changeSum/SelectMolecule.tsx +23 -23
- 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} +34 -4
- 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 +106 -0
- package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.tsx +69 -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 +98 -0
- package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_header_actions_buttons.tsx +218 -0
- package/src/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.tsx +231 -0
- package/src/component/modal/setting/tanstack_general_settings/tabs/export_tab.tsx +24 -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 +261 -0
- package/src/component/modal/setting/tanstack_general_settings/tabs/panels_tab.tsx +150 -0
- package/src/component/modal/setting/tanstack_general_settings/utils/checkUniqueByKey.ts +55 -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/general_tab_validation.ts +42 -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 +21 -0
- package/src/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.ts +80 -0
- package/src/component/modal/setting/tanstack_general_settings/validation.ts +66 -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 +106 -21
- package/src/component/panels/MoleculesPanel/MoleculeStructure.tsx +5 -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 +5 -93
- 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/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 +1 -1
- 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 +1 -1
- package/src/component/panels/header/DefaultPanelHeader.tsx +2 -1
- package/src/component/panels/hooks/useMoleculeAnnotationCore.ts +1 -1
- package/src/component/panels/hooks/useTogglePanel.ts +4 -3
- package/src/component/panels/informationPanel/InformationEditionModal.tsx +4 -3
- package/src/component/panels/informationPanel/InformationPanel.tsx +83 -2
- 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/InsetActions.ts +2 -2
- package/src/component/reducer/actions/LoadAction.ts +17 -3
- package/src/component/reducer/actions/MoleculeActions.ts +7 -5
- package/src/component/reducer/actions/PreferencesActions.ts +1 -1
- package/src/component/reducer/actions/RangesActions.ts +4 -4
- package/src/component/reducer/actions/SpectraActions.ts +7 -3
- package/src/component/reducer/actions/ToolsActions.ts +2 -2
- package/src/component/reducer/actions/ZonesActions.ts +3 -3
- package/src/component/reducer/helper/get2DRange.ts +1 -1
- package/src/component/reducer/preferences/actions/analyzeSpectra.ts +16 -0
- package/src/component/reducer/preferences/actions/toggleOpenSplitPanel.ts +18 -0
- package/src/component/reducer/preferences/panelsPreferencesDefaultValues.ts +1 -1
- package/src/component/reducer/preferences/preferencesReducer.ts +24 -3
- package/src/component/toolbar/ToolBar.tsx +15 -10
- package/src/component/toolbar/toolbarMenu.tsx +13 -2
- package/src/component/utility/export.ts +7 -1
- package/src/component/workspaces/workspaceDefaultProperties.ts +5 -1
- package/src/data/PredictionManager.ts +1 -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/data1d/multipleSpectraAnalysis.ts +20 -0
- package/src/data/data2d/Spectrum2D/contours.ts +16 -6
- package/src/data/molecules/MoleculeManager.ts +7 -2
- package/src/data/utilities/FindUtilities.ts +2 -2
- package/src/utils/clipboard/clipboardComponents.tsx +3 -3
- package/src/versionInfo.ts +1 -1
- package/lib/component/modal/setting/GeneralSettings.d.ts.map +0 -1
- package/lib/component/modal/setting/GeneralSettings.js.map +0 -1
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ParsingOptions } from '@zakodium/nmrium-core';
|
|
2
|
+
import type { FileItem } from 'file-collection';
|
|
2
3
|
import { FileCollection } from 'file-collection';
|
|
3
|
-
import type { ParseResult } from 'papaparse';
|
|
4
4
|
import { useCallback } from 'react';
|
|
5
5
|
|
|
6
6
|
import { isMetaFile, parseMetaFile } from '../../data/parseMeta/index.js';
|
|
7
7
|
import { useCore } from '../context/CoreContext.js';
|
|
8
|
+
import type { Action } from '../context/DispatchContext.js';
|
|
8
9
|
import { useDispatch } from '../context/DispatchContext.js';
|
|
9
10
|
import { useLogger } from '../context/LoggerContext.js';
|
|
10
11
|
import { usePreferences } from '../context/PreferencesContext.js';
|
|
11
12
|
import { useToaster } from '../context/ToasterContext.js';
|
|
12
13
|
import useCheckExperimentalFeature from '../hooks/useCheckExperimentalFeature.js';
|
|
13
14
|
|
|
15
|
+
type Payload = Extract<Action, { type: 'LOAD_DROP_FILES' }>['payload'];
|
|
16
|
+
|
|
14
17
|
export function useLoadFiles(onOpenMetaInformation?: (file: File) => void) {
|
|
15
18
|
const dispatch = useDispatch();
|
|
16
19
|
const preferences = usePreferences();
|
|
@@ -21,110 +24,116 @@ export function useLoadFiles(onOpenMetaInformation?: (file: File) => void) {
|
|
|
21
24
|
const experimentalFeatures = useCheckExperimentalFeature();
|
|
22
25
|
const core = useCore();
|
|
23
26
|
|
|
24
|
-
|
|
25
|
-
(
|
|
26
|
-
|
|
27
|
+
const dispatchPayload = useCallback(
|
|
28
|
+
(payload: Omit<Payload, 'spectraColors' | 'defaultMoleculeSettings'>) => {
|
|
29
|
+
const { nmriumState } = payload;
|
|
30
|
+
const { spectraColors, defaultMoleculeSettings } = workspacePreferences;
|
|
27
31
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
files.length === 1 &&
|
|
32
|
-
isMetaFile(files[0])
|
|
33
|
-
) {
|
|
34
|
-
onOpenMetaInformation(files[0]);
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
const nmriumArchiveFiles: File[] = [];
|
|
39
|
-
const otherFiles: File[] = [];
|
|
40
|
-
let nmriumState: Partial<NmriumState>;
|
|
41
|
-
let containsNmrium: boolean;
|
|
42
|
-
let parseMetaFileResult: ParseResult<any> | null = null;
|
|
43
|
-
const { onLoadProcessing, spectraColors, defaultMoleculeSettings } =
|
|
44
|
-
workspacePreferences;
|
|
45
|
-
const { nmrLoaders: selector } = preferences.current;
|
|
46
|
-
|
|
47
|
-
const parsingOptions: Partial<ParsingOptions> = {
|
|
48
|
-
selector,
|
|
49
|
-
logger: logger.child({ context: 'nmr-processing' }),
|
|
50
|
-
onLoadProcessing,
|
|
51
|
-
experimentalFeatures,
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
let aggregator: FileCollection | undefined;
|
|
55
|
-
let fileCollection: FileCollection | undefined;
|
|
56
|
-
let selectorRoot: string | undefined;
|
|
57
|
-
let resetSourceObject = false;
|
|
58
|
-
|
|
59
|
-
if (files.length === 1 && files[0].name.endsWith('.nmrium.zip')) {
|
|
60
|
-
const [state, ium] = await core.readNMRiumArchive(
|
|
61
|
-
files[0].stream(),
|
|
62
|
-
parsingOptions,
|
|
63
|
-
);
|
|
64
|
-
nmriumState = state;
|
|
65
|
-
containsNmrium = true;
|
|
66
|
-
aggregator = ium;
|
|
67
|
-
} else {
|
|
68
|
-
for (const file of files) {
|
|
69
|
-
if (file.name.endsWith('.nmrium.zip')) {
|
|
70
|
-
nmriumArchiveFiles.push(file);
|
|
71
|
-
} else {
|
|
72
|
-
otherFiles.push(file);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
if (nmriumArchiveFiles.length > 0) {
|
|
77
|
-
await Promise.all(
|
|
78
|
-
nmriumArchiveFiles.map((file) => loadFiles([file])),
|
|
79
|
-
);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
fileCollection = await new FileCollection().appendFileList(
|
|
83
|
-
otherFiles,
|
|
84
|
-
);
|
|
85
|
-
|
|
86
|
-
const metaFile = Object.values(fileCollection.files).find((file) =>
|
|
87
|
-
isMetaFile(file),
|
|
88
|
-
);
|
|
89
|
-
|
|
90
|
-
if (metaFile) {
|
|
91
|
-
parseMetaFileResult = await parseMetaFile(metaFile);
|
|
92
|
-
}
|
|
93
|
-
({ nmriumState, containsNmrium, selectorRoot } = await core.read(
|
|
94
|
-
fileCollection,
|
|
95
|
-
parsingOptions,
|
|
96
|
-
));
|
|
97
|
-
if (containsNmrium) {
|
|
98
|
-
resetSourceObject = true;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
if (nmriumState.settings) {
|
|
103
|
-
dispatchPreferences({
|
|
104
|
-
type: 'SET_WORKSPACE',
|
|
105
|
-
payload: {
|
|
106
|
-
data: nmriumState.settings,
|
|
107
|
-
workspaceSource: 'nmriumFile',
|
|
108
|
-
},
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
dispatch({
|
|
112
|
-
type: 'LOAD_DROP_FILES',
|
|
32
|
+
if (nmriumState.settings) {
|
|
33
|
+
dispatchPreferences({
|
|
34
|
+
type: 'SET_WORKSPACE',
|
|
113
35
|
payload: {
|
|
114
|
-
nmriumState,
|
|
115
|
-
|
|
116
|
-
parseMetaFileResult,
|
|
117
|
-
spectraColors,
|
|
118
|
-
aggregator,
|
|
119
|
-
fileCollection,
|
|
120
|
-
selectorRoot,
|
|
121
|
-
resetSourceObject,
|
|
122
|
-
defaultMoleculeSettings,
|
|
36
|
+
data: nmriumState.settings,
|
|
37
|
+
workspaceSource: 'nmriumFile',
|
|
123
38
|
},
|
|
124
39
|
});
|
|
125
40
|
}
|
|
41
|
+
dispatch({
|
|
42
|
+
type: 'LOAD_DROP_FILES',
|
|
43
|
+
payload: { ...payload, spectraColors, defaultMoleculeSettings },
|
|
44
|
+
});
|
|
45
|
+
},
|
|
46
|
+
[dispatch, dispatchPreferences, workspacePreferences],
|
|
47
|
+
);
|
|
48
|
+
|
|
49
|
+
const loadNmriumArchives = useCallback(
|
|
50
|
+
async (file: File, parsingOptions: Partial<ParsingOptions>) => {
|
|
51
|
+
const [nmriumState, aggregator] = await core.readNMRiumArchive(
|
|
52
|
+
file.stream(),
|
|
53
|
+
parsingOptions,
|
|
54
|
+
);
|
|
55
|
+
|
|
56
|
+
dispatchPayload({ nmriumState, aggregator, containsNmrium: true });
|
|
57
|
+
},
|
|
58
|
+
[core, dispatchPayload],
|
|
59
|
+
);
|
|
60
|
+
|
|
61
|
+
const loadFileCollection = useCallback(
|
|
62
|
+
async (
|
|
63
|
+
fileCollection: FileCollection,
|
|
64
|
+
metaFile: FileItem | undefined,
|
|
65
|
+
parsingOptions: Partial<ParsingOptions>,
|
|
66
|
+
) => {
|
|
67
|
+
const parseMetaFileResult = metaFile
|
|
68
|
+
? await parseMetaFile(metaFile)
|
|
69
|
+
: null;
|
|
70
|
+
const {
|
|
71
|
+
nmriumState,
|
|
72
|
+
containsNmrium,
|
|
73
|
+
selectorRoot,
|
|
74
|
+
fileCollection: sanitizedCollection,
|
|
75
|
+
} = await core.read(fileCollection, parsingOptions);
|
|
76
|
+
const resetSourceObject = containsNmrium;
|
|
77
|
+
|
|
78
|
+
dispatchPayload({
|
|
79
|
+
nmriumState,
|
|
80
|
+
containsNmrium,
|
|
81
|
+
parseMetaFileResult,
|
|
82
|
+
fileCollection: sanitizedCollection,
|
|
83
|
+
selectorRoot,
|
|
84
|
+
resetSourceObject,
|
|
85
|
+
});
|
|
86
|
+
},
|
|
87
|
+
[core, dispatchPayload],
|
|
88
|
+
);
|
|
89
|
+
|
|
90
|
+
const currentPreferences = preferences.current;
|
|
91
|
+
const loadUserFiles = useCallback(
|
|
92
|
+
async (files: File[]) => {
|
|
93
|
+
if (onOpenMetaInformation && files.length === 1 && isMetaFile(files[0])) {
|
|
94
|
+
onOpenMetaInformation(files[0]);
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
const { onLoadProcessing } = workspacePreferences;
|
|
99
|
+
const { nmrLoaders: selector } = currentPreferences;
|
|
100
|
+
|
|
101
|
+
const parsingOptions: Partial<ParsingOptions> = {
|
|
102
|
+
selector,
|
|
103
|
+
logger: logger.child({ context: 'nmr-processing' }),
|
|
104
|
+
onLoadProcessing,
|
|
105
|
+
experimentalFeatures,
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
const groupedFiles = await groupFiles(files);
|
|
109
|
+
const { nmriumArchiveFiles, fileCollection, metaFile } = groupedFiles;
|
|
110
|
+
|
|
111
|
+
if (nmriumArchiveFiles.length > 0) {
|
|
112
|
+
await Promise.all(
|
|
113
|
+
nmriumArchiveFiles.map((file) =>
|
|
114
|
+
loadNmriumArchives(file, parsingOptions),
|
|
115
|
+
),
|
|
116
|
+
);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
await loadFileCollection(fileCollection, metaFile, parsingOptions);
|
|
120
|
+
},
|
|
121
|
+
[
|
|
122
|
+
experimentalFeatures,
|
|
123
|
+
loadFileCollection,
|
|
124
|
+
loadNmriumArchives,
|
|
125
|
+
logger,
|
|
126
|
+
onOpenMetaInformation,
|
|
127
|
+
currentPreferences,
|
|
128
|
+
workspacePreferences,
|
|
129
|
+
],
|
|
130
|
+
);
|
|
126
131
|
|
|
127
|
-
|
|
132
|
+
return useCallback(
|
|
133
|
+
(files: File[]) => {
|
|
134
|
+
dispatch({ type: 'SET_LOADING_FLAG', payload: { isLoading: true } });
|
|
135
|
+
|
|
136
|
+
loadUserFiles(files)
|
|
128
137
|
.catch((error: unknown) => {
|
|
129
138
|
toaster.show({ message: (error as Error).message, intent: 'danger' });
|
|
130
139
|
logger.error(error as Error);
|
|
@@ -133,16 +142,30 @@ export function useLoadFiles(onOpenMetaInformation?: (file: File) => void) {
|
|
|
133
142
|
dispatch({ type: 'SET_LOADING_FLAG', payload: { isLoading: false } });
|
|
134
143
|
});
|
|
135
144
|
},
|
|
136
|
-
[
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
145
|
+
[dispatch, loadUserFiles, logger, toaster],
|
|
146
|
+
);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
async function groupFiles(files: File[]) {
|
|
150
|
+
const nmriumArchiveFiles: File[] = [];
|
|
151
|
+
const otherFiles: File[] = [];
|
|
152
|
+
|
|
153
|
+
for (const file of files) {
|
|
154
|
+
// eslint-disable-next-line no-await-in-loop
|
|
155
|
+
const header = await file.slice(0, 128).arrayBuffer();
|
|
156
|
+
|
|
157
|
+
if (FileCollection.isIum(header, 'chemical/x-nmrium+zip')) {
|
|
158
|
+
nmriumArchiveFiles.push(file);
|
|
159
|
+
continue;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
otherFiles.push(file);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
const fileCollection = await new FileCollection().appendFileList(otherFiles);
|
|
166
|
+
const metaFile = Object.values(fileCollection.files).find((file) =>
|
|
167
|
+
isMetaFile(file),
|
|
147
168
|
);
|
|
169
|
+
|
|
170
|
+
return { nmriumArchiveFiles, fileCollection, metaFile };
|
|
148
171
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import styled from '@emotion/styled';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
2
3
|
import type { FallbackProps } from 'react-error-boundary';
|
|
3
4
|
|
|
4
5
|
const WrongP = styled.p`
|
|
@@ -19,12 +20,20 @@ const Details = styled.details`
|
|
|
19
20
|
`;
|
|
20
21
|
|
|
21
22
|
export default function ErrorOverlay(props: FallbackProps) {
|
|
23
|
+
const error = props.error;
|
|
24
|
+
const message =
|
|
25
|
+
error && typeof error === 'object' && 'message' in error
|
|
26
|
+
? error.message
|
|
27
|
+
: null;
|
|
28
|
+
const stack =
|
|
29
|
+
error && typeof error === 'object' && 'stack' in error ? error.stack : null;
|
|
30
|
+
|
|
22
31
|
return (
|
|
23
32
|
<div style={{ margin: 25 }}>
|
|
24
33
|
<WrongP>Something went wrong.</WrongP>
|
|
25
34
|
<Details>
|
|
26
|
-
<p style={{ textDecoration: 'underline' }}>{
|
|
27
|
-
{
|
|
35
|
+
<p style={{ textDecoration: 'underline' }}>{message as ReactNode}</p>
|
|
36
|
+
{stack as ReactNode}
|
|
28
37
|
</Details>
|
|
29
38
|
</div>
|
|
30
39
|
);
|
|
@@ -13,7 +13,6 @@ import { ExportManagerController } from '../elements/export/ExportManager.js';
|
|
|
13
13
|
import { PrintContent } from '../elements/print/PrintContent.js';
|
|
14
14
|
import { Header } from '../header/Header.js';
|
|
15
15
|
import DropZone from '../loader/DropZone.js';
|
|
16
|
-
import { PanelOpenProviderProvider } from '../panels/Panels.js';
|
|
17
16
|
import { PanelsBar } from '../panels/PanelsBar.js';
|
|
18
17
|
import ToolBar from '../toolbar/ToolBar.js';
|
|
19
18
|
|
|
@@ -145,14 +144,12 @@ export function InnerNMRiumContents(props: InnerNMRiumContentsProps) {
|
|
|
145
144
|
>
|
|
146
145
|
<KeysListenerTracker mainDivRef={mainDivRef} />
|
|
147
146
|
|
|
148
|
-
<
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
<PanelsBar />
|
|
155
|
-
</PanelOpenProviderProvider>
|
|
147
|
+
<ToolBar />
|
|
148
|
+
<NMRiumViewerWrapper
|
|
149
|
+
viewerRef={viewerRef}
|
|
150
|
+
emptyText={emptyText}
|
|
151
|
+
/>
|
|
152
|
+
<PanelsBar />
|
|
156
153
|
<div
|
|
157
154
|
ref={elementsWrapperRef}
|
|
158
155
|
key={String(isFullScreen)}
|
|
@@ -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,
|
|
@@ -91,11 +91,11 @@ export function NMRiumViewer(props: NMRiumViewerProps) {
|
|
|
91
91
|
...style,
|
|
92
92
|
}}
|
|
93
93
|
>
|
|
94
|
+
<Viewer emptyText={emptyText} />
|
|
94
95
|
<FloatingRanges />
|
|
95
96
|
<FloatPublicationString />
|
|
96
|
-
<FloatMolecules />
|
|
97
97
|
<SpectraInsets />
|
|
98
|
-
<
|
|
98
|
+
<FloatMolecules />
|
|
99
99
|
</div>
|
|
100
100
|
);
|
|
101
101
|
}
|
|
@@ -3,7 +3,7 @@ import type { SplitPaneSize } from 'react-science/ui';
|
|
|
3
3
|
import { SplitPane } from 'react-science/ui';
|
|
4
4
|
|
|
5
5
|
import { usePreferences } from '../context/PreferencesContext.js';
|
|
6
|
-
import { Panels
|
|
6
|
+
import { Panels } from '../panels/Panels.js';
|
|
7
7
|
import { useAccordionItems } from '../panels/hooks/useAccordionItems.js';
|
|
8
8
|
import { useGetPanelOptions } from '../panels/hooks/useGetPanelOptions.js';
|
|
9
9
|
|
|
@@ -19,8 +19,6 @@ export function NMRiumViewerWrapper(props: NMRiumViewerWrapperProps) {
|
|
|
19
19
|
const { emptyText, viewerRef } = props;
|
|
20
20
|
const { current, dispatch } = usePreferences();
|
|
21
21
|
const getPanelPreferences = useGetPanelOptions();
|
|
22
|
-
const { closeSplitPane, openSplitPane, isSplitPaneOpen } =
|
|
23
|
-
usePanelOpenState();
|
|
24
22
|
|
|
25
23
|
const {
|
|
26
24
|
general: { verticalSplitterPosition, verticalSplitterCloseThreshold },
|
|
@@ -36,6 +34,12 @@ export function NMRiumViewerWrapper(props: NMRiumViewerWrapperProps) {
|
|
|
36
34
|
},
|
|
37
35
|
});
|
|
38
36
|
}
|
|
37
|
+
function handleToggleSplitPanel() {
|
|
38
|
+
dispatch({
|
|
39
|
+
type: 'TOGGLE_SPLIT_PANEL',
|
|
40
|
+
payload: {},
|
|
41
|
+
});
|
|
42
|
+
}
|
|
39
43
|
|
|
40
44
|
const displayedPanels = items.filter((item) => {
|
|
41
45
|
const panelOptions = getPanelPreferences(item);
|
|
@@ -47,16 +51,18 @@ export function NMRiumViewerWrapper(props: NMRiumViewerWrapperProps) {
|
|
|
47
51
|
return <NMRiumViewer emptyText={emptyText} viewerRef={viewerRef} />;
|
|
48
52
|
}
|
|
49
53
|
|
|
54
|
+
const isOpen = !general?.hidePanelOnLoad;
|
|
55
|
+
|
|
50
56
|
return (
|
|
51
57
|
<SplitPane
|
|
52
58
|
size={verticalSplitterPosition}
|
|
53
59
|
direction="horizontal"
|
|
54
60
|
controlledSide="end"
|
|
55
|
-
open={
|
|
56
|
-
defaultOpen={
|
|
61
|
+
open={isOpen}
|
|
62
|
+
defaultOpen={isOpen}
|
|
57
63
|
closeThreshold={verticalSplitterCloseThreshold}
|
|
58
64
|
onSizeChange={resizeHandler}
|
|
59
|
-
onOpenChange={
|
|
65
|
+
onOpenChange={handleToggleSplitPanel}
|
|
60
66
|
>
|
|
61
67
|
<NMRiumViewer emptyText={emptyText} viewerRef={viewerRef} />
|
|
62
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
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DialogFooter } from '@blueprintjs/core';
|
|
2
2
|
import { yupResolver } from '@hookform/resolvers/yup';
|
|
3
3
|
import type { Peak1D } from '@zakodium/nmr-types';
|
|
4
4
|
import { useState } from 'react';
|
|
@@ -11,8 +11,9 @@ import type { LabelStyle } from '../elements/Label.js';
|
|
|
11
11
|
import Label from '../elements/Label.js';
|
|
12
12
|
import { NumberInput2Controller } from '../elements/NumberInput2Controller.js';
|
|
13
13
|
import { Select2 } from '../elements/Select2.js';
|
|
14
|
+
import { StandardDialog } from '../elements/StandardDialog.tsx';
|
|
14
15
|
import { StyledDialogBody } from '../elements/StyledDialogBody.js';
|
|
15
|
-
import { useActiveNucleusTab } from '../hooks/useActiveNucleusTab.
|
|
16
|
+
import { useActiveNucleusTab } from '../hooks/useActiveNucleusTab.js';
|
|
16
17
|
import { usePanelPreferences } from '../hooks/usePanelPreferences.js';
|
|
17
18
|
import { formatNumber } from '../utility/formatNumber.js';
|
|
18
19
|
|
|
@@ -124,7 +125,7 @@ function InnerEditPeakShapeModal(props: Required<EditPeakShapeModalProps>) {
|
|
|
124
125
|
const valuePPM = formatNumber(peak.x, peaksPreferences.deltaPPM.format);
|
|
125
126
|
|
|
126
127
|
return (
|
|
127
|
-
<
|
|
128
|
+
<StandardDialog
|
|
128
129
|
isOpen
|
|
129
130
|
style={{ width: 400 }}
|
|
130
131
|
onClose={onCloseDialog}
|
|
@@ -169,6 +170,6 @@ function InnerEditPeakShapeModal(props: Required<EditPeakShapeModalProps>) {
|
|
|
169
170
|
onCancel={() => onCloseDialog?.()}
|
|
170
171
|
/>
|
|
171
172
|
</DialogFooter>
|
|
172
|
-
</
|
|
173
|
+
</StandardDialog>
|
|
173
174
|
);
|
|
174
175
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DialogFooter } from '@blueprintjs/core';
|
|
2
2
|
import type { Spectrum } from '@zakodium/nmrium-core';
|
|
3
3
|
import { useRef } from 'react';
|
|
4
4
|
|
|
@@ -9,6 +9,7 @@ import ActionButtons from '../elements/ActionButtons.js';
|
|
|
9
9
|
import type { LabelStyle } from '../elements/Label.js';
|
|
10
10
|
import Label from '../elements/Label.js';
|
|
11
11
|
import { Select2 } from '../elements/Select2.js';
|
|
12
|
+
import { StandardDialog } from '../elements/StandardDialog.tsx';
|
|
12
13
|
import { StyledDialogBody } from '../elements/StyledDialogBody.js';
|
|
13
14
|
import useSpectrum from '../hooks/useSpectrum.js';
|
|
14
15
|
|
|
@@ -119,7 +120,7 @@ function InnerExportAsJcampModal(props: Required<InnerExportAsJCAMPProps>) {
|
|
|
119
120
|
}
|
|
120
121
|
|
|
121
122
|
return (
|
|
122
|
-
<
|
|
123
|
+
<StandardDialog
|
|
123
124
|
isOpen
|
|
124
125
|
style={{ width: 400 }}
|
|
125
126
|
onClose={closeDialog}
|
|
@@ -144,7 +145,7 @@ function InnerExportAsJcampModal(props: Required<InnerExportAsJCAMPProps>) {
|
|
|
144
145
|
}}
|
|
145
146
|
/>
|
|
146
147
|
</DialogFooter>
|
|
147
|
-
</
|
|
148
|
+
</StandardDialog>
|
|
148
149
|
);
|
|
149
150
|
}
|
|
150
151
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Button,
|
|
1
|
+
import { Button, DialogFooter, TextArea } from '@blueprintjs/core';
|
|
2
2
|
import type { ChangeEvent, LogEntry } from 'fifo-logger';
|
|
3
3
|
import { FifoLogger } from 'fifo-logger';
|
|
4
4
|
import debounce from 'lodash/debounce.js';
|
|
@@ -11,6 +11,7 @@ import { useToaster } from '../context/ToasterContext.js';
|
|
|
11
11
|
import { GroupPane } from '../elements/GroupPane.js';
|
|
12
12
|
import type { Column } from '../elements/ReactTable/ReactTable.js';
|
|
13
13
|
import ReactTable from '../elements/ReactTable/ReactTable.js';
|
|
14
|
+
import { StandardDialog } from '../elements/StandardDialog.tsx';
|
|
14
15
|
import { StyledDialogBody } from '../elements/StyledDialogBody.js';
|
|
15
16
|
|
|
16
17
|
interface InnerImportPublicationStringModalProps {
|
|
@@ -141,7 +142,7 @@ function InnerImportPublicationStringModal(
|
|
|
141
142
|
);
|
|
142
143
|
|
|
143
144
|
return (
|
|
144
|
-
<
|
|
145
|
+
<StandardDialog
|
|
145
146
|
title="Generate spectrum from publication string"
|
|
146
147
|
isOpen
|
|
147
148
|
onClose={onClose}
|
|
@@ -203,6 +204,6 @@ function InnerImportPublicationStringModal(
|
|
|
203
204
|
</Button>
|
|
204
205
|
</div>
|
|
205
206
|
</DialogFooter>
|
|
206
|
-
</
|
|
207
|
+
</StandardDialog>
|
|
207
208
|
);
|
|
208
209
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Button,
|
|
1
|
+
import { Button, DialogFooter } from '@blueprintjs/core';
|
|
2
2
|
import { yupResolver } from '@hookform/resolvers/yup';
|
|
3
3
|
import { useForm } from 'react-hook-form';
|
|
4
4
|
import * as Yup from 'yup';
|
|
@@ -9,6 +9,7 @@ import { useToaster } from '../context/ToasterContext.js';
|
|
|
9
9
|
import { Input2Controller } from '../elements/Input2Controller.js';
|
|
10
10
|
import type { LabelStyle } from '../elements/Label.js';
|
|
11
11
|
import Label from '../elements/Label.js';
|
|
12
|
+
import { StandardDialog } from '../elements/StandardDialog.tsx';
|
|
12
13
|
import { StyledDialogBody } from '../elements/StyledDialogBody.js';
|
|
13
14
|
|
|
14
15
|
const allowedExtensions = new Set(['dx', 'jdx', 'jcamp']);
|
|
@@ -89,7 +90,7 @@ function InnerLoadJCAMPModal({ onCloseDialog }: InnerLoadJCAMPModalProps) {
|
|
|
89
90
|
}
|
|
90
91
|
|
|
91
92
|
return (
|
|
92
|
-
<
|
|
93
|
+
<StandardDialog
|
|
93
94
|
isOpen
|
|
94
95
|
onClose={onCloseDialog}
|
|
95
96
|
title="Load JCAMP"
|
|
@@ -116,6 +117,6 @@ function InnerLoadJCAMPModal({ onCloseDialog }: InnerLoadJCAMPModalProps) {
|
|
|
116
117
|
</Button>
|
|
117
118
|
</div>
|
|
118
119
|
</DialogFooter>
|
|
119
|
-
</
|
|
120
|
+
</StandardDialog>
|
|
120
121
|
);
|
|
121
122
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DialogFooter } from '@blueprintjs/core';
|
|
2
2
|
import type { LogEntry } from 'fifo-logger';
|
|
3
3
|
import { useMemo } from 'react';
|
|
4
4
|
import { FaRegTrashAlt } from 'react-icons/fa';
|
|
@@ -12,6 +12,7 @@ import Button from '../elements/Button.js';
|
|
|
12
12
|
import { ColumnWrapper } from '../elements/ColumnWrapper.js';
|
|
13
13
|
import type { Column } from '../elements/ReactTable/ReactTable.js';
|
|
14
14
|
import ReactTable from '../elements/ReactTable/ReactTable.js';
|
|
15
|
+
import { StandardDialog } from '../elements/StandardDialog.tsx';
|
|
15
16
|
import { StyledDialogBody } from '../elements/StyledDialogBody.js';
|
|
16
17
|
|
|
17
18
|
const logsDataFormat = new Intl.DateTimeFormat('default', {
|
|
@@ -161,7 +162,7 @@ export function LogsHistoryModal(props: LogsHistoryModalProps) {
|
|
|
161
162
|
</Button.BarButton>
|
|
162
163
|
)}
|
|
163
164
|
|
|
164
|
-
<
|
|
165
|
+
<StandardDialog
|
|
165
166
|
isOpen={isOpenDialog}
|
|
166
167
|
onClose={() => {
|
|
167
168
|
markAsRead();
|
|
@@ -187,7 +188,7 @@ export function LogsHistoryModal(props: LogsHistoryModalProps) {
|
|
|
187
188
|
</div>
|
|
188
189
|
</Button.Danger>
|
|
189
190
|
</DialogFooter>
|
|
190
|
-
</
|
|
191
|
+
</StandardDialog>
|
|
191
192
|
</>
|
|
192
193
|
);
|
|
193
194
|
}
|